(window.webpackJsonp=window.webpackJsonp||[]).push([[4,7],{125:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBoundHandlers=function(e,t){return(0,n.default)(e,t),(0,r.default)(e,t)};var n=o(a(73)),r=o(a(220));function o(e){return e&&e.__esModule?e:{default:e}}},167:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0&&(a=a.replace(" Podcast","")),a+" Podcast"),s=t.itunesUrl,l=t.googlePodcastsUrl,u=t.rssUrl,c=t.nprOneUniversalUrl,d=t.amazonAlexaUrl,p=t.spotifyUrl,f=t.name?t.name.toLowerCase():"";return n.default.createElement("section",{className:o},n.default.createElement("div",{className:"callout__inner"},t.brandingUrl?n.default.createElement("div",{className:"callout__branding"},n.default.createElement("img",{className:"callout__branding-logo",src:t.brandingUrl,alt:"Podcast logo"})):"",n.default.createElement("div",{className:"callout__main"},n.default.createElement("h2",{className:"callout__header"},i),n.default.createElement("ul",{className:"callout__links"},c&&n.default.createElement("li",null,n.default.createElement(r.default,{href:c,className:"callout__link podcast-tools__item--NPR-one",metrics:{category:"podcast subscribe box",action:"click npr one universal",label:f},metricsGA4:{category:"podcast",action:"podcast_follow_click",clickName:"npr one",clickType:"podcast standard subscribe box"}},"NPR One")),s&&n.default.createElement("li",null,n.default.createElement(r.default,{href:s,className:"callout__link podcast-tools__item--apple-podcasts",metrics:{category:"podcast subscribe box",action:"click itunes",label:f},metricsGA4:{category:"podcast",action:"podcast_follow_click",clickName:"itunes",clickType:"podcast standard subscribe box"}},"Apple Podcasts")),p&&n.default.createElement("li",null,n.default.createElement(r.default,{href:p,className:"callout__link podcast-tools__item--spotify",metrics:{category:"podcast subscribe box",action:"click spotify",label:f},metricsGA4:{category:"podcast",action:"podcast_follow_click",clickName:"spotify",clickType:"podcast standard subscribe box"}},"Spotify")),l&&n.default.createElement("li",null,n.default.createElement(r.default,{href:l,className:"callout__link podcast-tools__item--google-podcasts",metrics:{category:"podcast subscribe box",action:"click google podcasts",label:f},metricsGA4:{category:"podcast",action:"podcast_follow_click",clickName:"google podcasts",clickType:"podcast standard subscribe box"}},"Google Podcasts")),d&&n.default.createElement("li",null,n.default.createElement(r.default,{href:d,className:"callout__link podcast-tools__item--amazon-alexa",metrics:{category:"podcast subscribe box",action:"click amazon alexa",label:f},metricsGA4:{category:"podcast",action:"podcast_follow_click",clickName:"amazon alexa",clickType:"podcast standard subscribe box"}},"Amazon Alexa")),u&&n.default.createElement("li",null,n.default.createElement(r.default,{href:u,className:"callout__link podcast-tools__item--rss",metrics:{category:"podcast subscribe box",action:"click rss",label:f},metricsGA4:{category:"podcast",action:"podcast_follow_click",clickName:"rss",clickType:"podcast standard subscribe box"}},"RSS"))))))}}},463:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a1||window.matchMedia&&window.matchMedia("(-webkit-min-device-pixel-ratio: 1.5),(-moz-min-device-pixel-ratio: 1.5),(min-device-pixel-ratio: 1.5)").matches;function r(){var t,a;e("source.lazyOnLoad, img.lazyOnLoad").each((function(){try{var t=e(this),a=t.data("original"),r=(i=[],e.each([".imagewrap",".bucketwrap"],(function(e,a){var n=t.closest(a);if(n.length>0)return i=n.get(0),!1})),e(i));a=o(a,"s",function(e){var t=e*(n?2:1);if(t<100)return 100;if(t>3e3)return 3e3;return 100*Math.ceil(t/100)}(r.length>0?r.width():t.width())),a=o(a,"c",85),e(this).attr("data-original",a)}catch(e){s.default.error(e)}var i})),t=function(){e(this).hide(),"source"===this.nodeName.toLowerCase()?e(this).attr("srcset",e(this).attr("data-original")):e(this).attr("src",e(this).attr("data-original")),e(this).show()},a=e("div[id^='slideshow__gallery--']"),e(a).each((function(){var a,n,r,o,i,s=e(this);n=(a=s).find(".slideshow__button--forward, .slideshow__button--back, .slideshow__button--fullscreen"),r=function(){e(a).trigger("interaction"),i()},o=function(e){e.preventDefault(),r()},i=function(){n.off("click",o),a.off("click",o),a.off("tap touchstart",r)},n.click(o),a.on("click",o),a.on("tap touchstart",r);var l=s.find("li:nth-child(n+4) img, li:nth-child(n+4) source");s.bind("interaction",(function(){e(l).each((function(){t.apply(this)}))})),e(l).each((function(){e(this).removeClass("lazyOnLoad")}))})),e("source.lazyOnLoad, img.lazyOnLoad").each((function(){try{e(this).attr("src")?e(this).attr("src",e(this).attr("data-original")).removeAttr("data-original").removeClass("lazyOnLoad"):e(this).attr("srcset")&&e(this).attr("srcset",e(this).attr("data-original")).removeAttr("data-original").removeClass("lazyOnLoad")}catch(e){s.default.error(e)}}))}function o(e,t,a){var n=document.createElement("a");n.href=e;var r=n.pathname;if(a){for(var o=r.substring(0,r.lastIndexOf(".")),i=r.substring(r.lastIndexOf(".")),s=o.split("-"),l=null,u=1;u1&&c.length<6){var d=c.substring(1);isNaN(d)||(l=c)}}r=l?r.replace("-"+l,"-"+t+a):o+"-"+t+a+i}var p=r.replace(/^\/*/g,"");return"//"+n.hostname+"/"+p}return a.onReady=function(){r(),e(document).on("infiniteScrollComplete",r)},a.onUnload=function(){e(document).off("infiniteScrollComplete",r),e("div[id^='slideshow__gallery--']","div[id^='slideshow__gallery--'] *").off()},a.register(),{lazyLoad:r,lazyLoadHiddenImages:function(){e('img[src*="-s100"]').addClass("lazyOnLoad"),r()},addParameterInImageUrl:o}}.apply(t,n))||(e.exports=r)}).call(this,a(85)(e))},466:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:{};this.props.dispatch(s.audioError(e,t))}},{key:"render",value:function(){var e={};return this.props.player.currentUid&&this.props.metadata[this.props.player.currentUid]&&(e=this.props.metadata[this.props.player.currentUid]),e?o.default.createElement(u.default,{player:this.props.player,handlers:this.handlers,audio:e}):null}}]),t}(r.Component);t.default=(0,i.connect)((function(e){return{player:e.player,metadata:(0,c.getDerivedMetadata)(e)}}))(h)},473:function(e,t,a){var n,r,o;r=[a(7)],void 0===(o="function"==typeof(n=function(e,t){e.fn.jPlayer=function(a){var n="jPlayer",r="string"==typeof a,o=Array.prototype.slice.call(arguments,1),i=this;return a=!r&&o.length?e.extend.apply(null,[!0,a].concat(o)):a,r&&"_"===a.charAt(0)||(r?this.each((function(){var r=e(this).data(n),s=r&&e.isFunction(r[a])?r[a].apply(r,o):r;if(s!==r&&s!==t)return i=s,!1})):this.each((function(){var t=e(this).data(n);t?t.option(a||{}):e(this).data(n,new e.jPlayer(a,this))}))),i},e.jPlayer=function(t,a){if(arguments.length){this.element=e(a),this.options=e.extend(!0,{},this.options,t);var n=this;this.element.bind("remove.jPlayer",(function(){n.destroy()})),this._init()}},"function"!=typeof e.fn.stop&&(e.fn.stop=function(){}),e.jPlayer.emulateMethods="load play pause",e.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate",e.jPlayer.emulateOptions="muted volume",e.jPlayer.reservedEvent="ready flashreset resize repeat error warning",e.jPlayer.event={},e.each(["ready","setmedia","flashreset","resize","repeat","click","error","warning","loadstart","progress","suspend","abort","emptied","stalled","play","pause","loadedmetadata","loadeddata","waiting","playing","canplay","canplaythrough","seeking","seeked","timeupdate","ended","ratechange","durationchange","volumechange"],(function(){e.jPlayer.event[this]="jPlayer_"+this})),e.jPlayer.htmlEvent=["loadstart","abort","emptied","stalled","loadedmetadata","canplay","canplaythrough"],e.jPlayer.pause=function(){e.jPlayer.prototype.destroyRemoved(),e.each(e.jPlayer.prototype.instances,(function(e,t){t.data("jPlayer").status.srcSet&&t.jPlayer("pause")}))},e.jPlayer.timeFormat={showHour:!1,showMin:!0,showSec:!0,padHour:!1,padMin:!0,padSec:!0,sepHour:":",sepMin:":",sepSec:""};var a=function(){this.init()};a.prototype={init:function(){this.options={timeFormat:e.jPlayer.timeFormat}},time:function(e){e=e&&"number"==typeof e?e:0;var t=new Date(1e3*e),a=t.getUTCHours(),n=this.options.timeFormat.showHour?t.getUTCMinutes():t.getUTCMinutes()+60*a,r=this.options.timeFormat.showMin?t.getUTCSeconds():t.getUTCSeconds()+60*n,o=this.options.timeFormat.padHour&&a<10?"0"+a:a,i=this.options.timeFormat.padMin&&n<10?"0"+n:n,s=this.options.timeFormat.padSec&&r<10?"0"+r:r,l="";return l+=this.options.timeFormat.showHour?o+this.options.timeFormat.sepHour:"",l+=this.options.timeFormat.showMin?i+this.options.timeFormat.sepMin:"",l+=this.options.timeFormat.showSec?s+this.options.timeFormat.sepSec:""}};var n=new a;e.jPlayer.convertTime=function(e){return n.time(e)},e.jPlayer.uaBrowser=function(e){var t=e.toLowerCase(),a=/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(t)||[];return{browser:a[1]||"",version:a[2]||"0"}},e.jPlayer.uaPlatform=function(e){var t=e.toLowerCase(),a=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/.exec(t)||[],n=/(ipad|playbook)/.exec(t)||!/(mobile)/.exec(t)&&/(android)/.exec(t)||[];return a[1]&&(a[1]=a[1].replace(/\s/g,"_")),{platform:a[1]||"",tablet:n[1]||""}},e.jPlayer.browser={},e.jPlayer.platform={};var r=e.jPlayer.uaBrowser(navigator.userAgent);r.browser&&(e.jPlayer.browser[r.browser]=!0,e.jPlayer.browser.version=r.version);var o=e.jPlayer.uaPlatform(navigator.userAgent);o.platform&&(e.jPlayer.platform[o.platform]=!0,e.jPlayer.platform.mobile=!o.tablet,e.jPlayer.platform.tablet=!!o.tablet),e.jPlayer.getDocMode=function(){var t;return e.jPlayer.browser.msie&&(document.documentMode?t=document.documentMode:(t=5,document.compatMode&&"CSS1Compat"===document.compatMode&&(t=7))),t},e.jPlayer.browser.documentMode=e.jPlayer.getDocMode(),e.jPlayer.nativeFeatures={init:function(){var e,t,a,n=document,r=n.createElement("video"),o={w3c:["fullscreenEnabled","fullscreenElement","requestFullscreen","exitFullscreen","fullscreenchange","fullscreenerror"],moz:["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror"],webkit:["","webkitCurrentFullScreenElement","webkitRequestFullScreen","webkitCancelFullScreen","webkitfullscreenchange",""],webkitVideo:["webkitSupportsFullscreen","webkitDisplayingFullscreen","webkitEnterFullscreen","webkitExitFullscreen","",""],ms:["","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError"]},i=["w3c","moz","webkit","webkitVideo","ms"];for(this.fullscreen=e={support:{w3c:!!n[o.w3c[0]],moz:!!n[o.moz[0]],webkit:"function"==typeof n[o.webkit[3]],webkitVideo:"function"==typeof r[o.webkitVideo[2]],ms:"function"==typeof r[o.ms[2]]},used:{}},t=0,a=i.length;t-1,a.flash.canPlay[n]=a.format[n].flashCanPlay&&a.flash.available})),this.html.desired=!1,this.aurora.desired=!1,this.flash.desired=!1,e.each(this.solutions,(function(t,n){if(0===t)a[n].desired=!0;else{var r=!1,o=!1;e.each(a.formats,(function(e,t){a[a.solutions[0]].canPlay[t]&&("video"===a.format[t].media?o=!0:r=!0)})),a[n].desired=a.require.audio&&!r||a.require.video&&!o}})),this.html.support={},this.aurora.support={},this.flash.support={},e.each(this.formats,(function(e,t){a.html.support[t]=a.html.canPlay[t]&&a.html.desired,a.aurora.support[t]=a.aurora.canPlay[t]&&a.aurora.desired,a.flash.support[t]=a.flash.canPlay[t]&&a.flash.desired})),this.html.used=!1,this.aurora.used=!1,this.flash.used=!1,e.each(this.solutions,(function(t,n){e.each(a.formats,(function(e,t){if(a[n].support[t])return a[n].used=!0,!1}))})),this._resetActive(),this._resetGate(),this._cssSelectorAncestor(this.options.cssSelectorAncestor),this.html.used||this.aurora.used||this.flash.used?this.css.jq.noSolution.length&&this.css.jq.noSolution.hide():(this._error({type:e.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:e.jPlayer.errorMsg.NO_SOLUTION,hint:e.jPlayer.errorHint.NO_SOLUTION}),this.css.jq.noSolution.length&&this.css.jq.noSolution.show()),this.flash.used){var n,r="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+"&muted="+this.options.muted;if(e.jPlayer.browser.msie&&(Number(e.jPlayer.browser.version)<9||e.jPlayer.browser.documentMode<9)){var o='',i=['','','','',''];n=document.createElement(o);for(var s=0;s0&&(n.internal.cmdsIgnored=!1),n._getHtmlStatus(t),n._updateInterface(),n._trigger(e.jPlayer.event.progress))}),!1),t.addEventListener("loadeddata",(function(){a.gate&&(n.androidFix.setMedia=!1,n.androidFix.play&&(n.androidFix.play=!1,n.play(n.androidFix.time)),n.androidFix.pause&&(n.androidFix.pause=!1,n.pause(n.androidFix.time)),n._trigger(e.jPlayer.event.loadeddata))}),!1),t.addEventListener("timeupdate",(function(){a.gate&&(n._getHtmlStatus(t),n._updateInterface(),n._trigger(e.jPlayer.event.timeupdate))}),!1),t.addEventListener("durationchange",(function(){a.gate&&(n._getHtmlStatus(t),n._updateInterface(),n._trigger(e.jPlayer.event.durationchange))}),!1),t.addEventListener("play",(function(){a.gate&&(n._updateButtons(!0),n._html_checkWaitForPlay(),n._trigger(e.jPlayer.event.play))}),!1),t.addEventListener("playing",(function(){a.gate&&(n._updateButtons(!0),n._seeked(),n._trigger(e.jPlayer.event.playing))}),!1),t.addEventListener("pause",(function(){a.gate&&(n._updateButtons(!1),n._trigger(e.jPlayer.event.pause))}),!1),t.addEventListener("waiting",(function(){a.gate&&(n._seeking(),n._trigger(e.jPlayer.event.waiting))}),!1),t.addEventListener("seeking",(function(){a.gate&&(n._seeking(),n._trigger(e.jPlayer.event.seeking))}),!1),t.addEventListener("seeked",(function(){a.gate&&(n._seeked(),n._trigger(e.jPlayer.event.seeked))}),!1),t.addEventListener("volumechange",(function(){a.gate&&(n.options.volume=t.volume,n.options.muted=t.muted,n._updateMute(),n._updateVolume(),n._trigger(e.jPlayer.event.volumechange))}),!1),t.addEventListener("ratechange",(function(){a.gate&&(n.options.defaultPlaybackRate=t.defaultPlaybackRate,n.options.playbackRate=t.playbackRate,n._updatePlaybackRate(),n._trigger(e.jPlayer.event.ratechange))}),!1),t.addEventListener("suspend",(function(){a.gate&&(n._seeked(),n._trigger(e.jPlayer.event.suspend))}),!1),t.addEventListener("ended",(function(){a.gate&&(e.jPlayer.browser.webkit||(n.htmlElement.media.currentTime=0),n.htmlElement.media.pause(),n._updateButtons(!1),n._getHtmlStatus(t,!0),n._updateInterface(),n._trigger(e.jPlayer.event.ended))}),!1),t.addEventListener("error",(function(){a.gate&&(n._updateButtons(!1),n._seeked(),n.status.srcSet&&(clearTimeout(n.internal.htmlDlyCmdId),n.status.waitForLoad=!0,n.status.waitForPlay=!0,n.status.video&&!n.status.nativeVideoControls&&n.internal.video.jq.css({width:"0px",height:"0px"}),n._validString(n.status.media.poster)&&!n.status.nativeVideoControls&&n.internal.poster.jq.show(),n.css.jq.videoPlay.length&&n.css.jq.videoPlay.show(),n._error({type:e.jPlayer.error.URL,context:n.status.src,message:e.jPlayer.errorMsg.URL,hint:e.jPlayer.errorHint.URL})))}),!1),e.each(e.jPlayer.htmlEvent,(function(r,o){t.addEventListener(this,(function(){a.gate&&n._trigger(e.jPlayer.event[o])}),!1)}))},_addAuroraEventListeners:function(t,a){var n=this;t.volume=100*this.options.volume,t.on("progress",(function(){a.gate&&(n.internal.cmdsIgnored&&this.readyState>0&&(n.internal.cmdsIgnored=!1),n._getAuroraStatus(t),n._updateInterface(),n._trigger(e.jPlayer.event.progress),t.duration>0&&n._trigger(e.jPlayer.event.timeupdate))}),!1),t.on("ready",(function(){a.gate&&n._trigger(e.jPlayer.event.loadeddata)}),!1),t.on("duration",(function(){a.gate&&(n._getAuroraStatus(t),n._updateInterface(),n._trigger(e.jPlayer.event.durationchange))}),!1),t.on("end",(function(){a.gate&&(n._updateButtons(!1),n._getAuroraStatus(t,!0),n._updateInterface(),n._trigger(e.jPlayer.event.ended))}),!1),t.on("error",(function(){a.gate&&(n._updateButtons(!1),n._seeked(),n.status.srcSet&&(n.status.waitForLoad=!0,n.status.waitForPlay=!0,n.status.video&&!n.status.nativeVideoControls&&n.internal.video.jq.css({width:"0px",height:"0px"}),n._validString(n.status.media.poster)&&!n.status.nativeVideoControls&&n.internal.poster.jq.show(),n.css.jq.videoPlay.length&&n.css.jq.videoPlay.show(),n._error({type:e.jPlayer.error.URL,context:n.status.src,message:e.jPlayer.errorMsg.URL,hint:e.jPlayer.errorHint.URL})))}),!1)},_getHtmlStatus:function(e,t){var a=0,n=0,r=0,o=0;isFinite(e.duration)&&(this.status.duration=e.duration),a=e.currentTime,n=this.status.duration>0?100*a/this.status.duration:0,"object"==typeof e.seekable&&e.seekable.length>0?(r=this.status.duration>0?100*e.seekable.end(e.seekable.length-1)/this.status.duration:100,o=this.status.duration>0?100*e.currentTime/e.seekable.end(e.seekable.length-1):0):(r=100,o=n),t&&(a=0,o=0,n=0),this.status.seekPercent=r,this.status.currentPercentRelative=o,this.status.currentPercentAbsolute=n,this.status.currentTime=a,this.status.remaining=this.status.duration-this.status.currentTime,this.status.videoWidth=e.videoWidth,this.status.videoHeight=e.videoHeight,this.status.readyState=e.readyState,this.status.networkState=e.networkState,this.status.playbackRate=e.playbackRate,this.status.ended=e.ended},_getAuroraStatus:function(e,t){var a=0,n=0,r=0,o=0;this.status.duration=e.duration/1e3,a=e.currentTime/1e3,n=this.status.duration>0?100*a/this.status.duration:0,e.buffered>0?(r=this.status.duration>0?e.buffered*this.status.duration/this.status.duration:100,o=this.status.duration>0?a/(e.buffered*this.status.duration):0):(r=100,o=n),t&&(a=0,o=0,n=0),this.status.seekPercent=r,this.status.currentPercentRelative=o,this.status.currentPercentAbsolute=n,this.status.currentTime=a,this.status.remaining=this.status.duration-this.status.currentTime,this.status.readyState=4,this.status.networkState=0,this.status.playbackRate=1,this.status.ended=!1},_resetStatus:function(){this.status=e.extend({},this.status,e.jPlayer.prototype.status)},_trigger:function(t,a,n){var r=e.Event(t);r.jPlayer={},r.jPlayer.version=e.extend({},this.version),r.jPlayer.options=e.extend(!0,{},this.options),r.jPlayer.status=e.extend(!0,{},this.status),r.jPlayer.html=e.extend(!0,{},this.html),r.jPlayer.aurora=e.extend(!0,{},this.aurora),r.jPlayer.flash=e.extend(!0,{},this.flash),a&&(r.jPlayer.error=e.extend({},a)),n&&(r.jPlayer.warning=e.extend({},n)),this.element.trigger(r)},jPlayerFlashEvent:function(t,a){if(t===e.jPlayer.event.ready)if(this.internal.ready){if(this.flash.gate){if(this.status.srcSet){var n=this.status.currentTime,r=this.status.paused;this.setMedia(this.status.media),this.volumeWorker(this.options.volume),n>0&&(r?this.pause(n):this.play(n))}this._trigger(e.jPlayer.event.flashreset)}}else this.internal.ready=!0,this.internal.flash.jq.css({width:"0px",height:"0px"}),this.version.flash=a.version,this.version.needFlash!==this.version.flash&&this._error({type:e.jPlayer.error.VERSION,context:this.version.flash,message:e.jPlayer.errorMsg.VERSION+this.version.flash,hint:e.jPlayer.errorHint.VERSION}),this._trigger(e.jPlayer.event.repeat),this._trigger(t);if(this.flash.gate)switch(t){case e.jPlayer.event.progress:case e.jPlayer.event.timeupdate:this._getFlashStatus(a),this._updateInterface(),this._trigger(t);break;case e.jPlayer.event.play:this._seeked(),this._updateButtons(!0),this._trigger(t);break;case e.jPlayer.event.pause:case e.jPlayer.event.ended:this._updateButtons(!1),this._trigger(t);break;case e.jPlayer.event.click:this._trigger(t);break;case e.jPlayer.event.error:this.status.waitForLoad=!0,this.status.waitForPlay=!0,this.status.video&&this.internal.flash.jq.css({width:"0px",height:"0px"}),this._validString(this.status.media.poster)&&this.internal.poster.jq.show(),this.css.jq.videoPlay.length&&this.status.video&&this.css.jq.videoPlay.show(),this.status.video?this._flash_setVideo(this.status.media):this._flash_setAudio(this.status.media),this._updateButtons(!1),this._error({type:e.jPlayer.error.URL,context:a.src,message:e.jPlayer.errorMsg.URL,hint:e.jPlayer.errorHint.URL});break;case e.jPlayer.event.seeking:this._seeking(),this._trigger(t);break;case e.jPlayer.event.seeked:this._seeked(),this._trigger(t);break;case e.jPlayer.event.ready:break;default:this._trigger(t)}return!1},_getFlashStatus:function(e){this.status.seekPercent=e.seekPercent,this.status.currentPercentRelative=e.currentPercentRelative,this.status.currentPercentAbsolute=e.currentPercentAbsolute,this.status.currentTime=e.currentTime,this.status.duration=e.duration,this.status.remaining=e.duration-e.currentTime,this.status.videoWidth=e.videoWidth,this.status.videoHeight=e.videoHeight,this.status.readyState=4,this.status.networkState=0,this.status.playbackRate=1,this.status.ended=!1},_updateButtons:function(e){e===t?e=!this.status.paused:this.status.paused=!e,e?this.addStateClass("playing"):this.removeStateClass("playing"),!this.status.noFullWindow&&this.options.fullWindow?this.addStateClass("fullScreen"):this.removeStateClass("fullScreen"),this.options.loop?this.addStateClass("looped"):this.removeStateClass("looped"),this.css.jq.play.length&&this.css.jq.pause.length&&(e?(this.css.jq.play.hide(),this.css.jq.pause.show()):(this.css.jq.play.show(),this.css.jq.pause.hide())),this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length&&(this.status.noFullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.hide()):this.options.fullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.show()):(this.css.jq.fullScreen.show(),this.css.jq.restoreScreen.hide())),this.css.jq.repeat.length&&this.css.jq.repeatOff.length&&(this.options.loop?(this.css.jq.repeat.hide(),this.css.jq.repeatOff.show()):(this.css.jq.repeat.show(),this.css.jq.repeatOff.hide()))},_updateInterface:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.width(this.status.seekPercent+"%"),this.css.jq.playBar.length&&(this.options.smoothPlayBar?this.css.jq.playBar.stop().animate({width:this.status.currentPercentAbsolute+"%"},250,"linear"):this.css.jq.playBar.width(this.status.currentPercentRelative+"%")),this.css.jq.currentTime.length&&this._convertTime(this.status.currentTime)!==this.css.jq.currentTime.text()&&this.css.jq.currentTime.text(this._convertTime(this.status.currentTime));var e="",t=this.status.duration,a=this.status.remaining;this.css.jq.duration.length&&("string"==typeof this.status.media.duration?e=this.status.media.duration:("number"==typeof this.status.media.duration&&(a=(t=this.status.media.duration)-this.status.currentTime),e=this.options.remainingDuration?(a>0?"-":"")+this._convertTime(a):this._convertTime(t)),e!==this.css.jq.duration.text()&&this.css.jq.duration.text(e))},_convertTime:a.prototype.time,_seeking:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.addClass("jp-seeking-bg"),this.addStateClass("seeking")},_seeked:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.removeClass("jp-seeking-bg"),this.removeStateClass("seeking")},_resetGate:function(){this.html.audio.gate=!1,this.html.video.gate=!1,this.aurora.gate=!1,this.flash.gate=!1},_resetActive:function(){this.html.active=!1,this.aurora.active=!1,this.flash.active=!1},_escapeHtml:function(e){return e.split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")},_qualifyURL:function(e){var t=document.createElement("div");return t.innerHTML='x',t.firstChild.href},_absoluteMediaUrls:function(t){var a=this;return e.each(t,(function(e,n){n&&a.format[e]&&"data:"!==n.substr(0,5)&&(t[e]=a._qualifyURL(n))})),t},addStateClass:function(e){this.ancestorJq.length&&this.ancestorJq.addClass(this.options.stateClass[e])},removeStateClass:function(e){this.ancestorJq.length&&this.ancestorJq.removeClass(this.options.stateClass[e])},setMedia:function(t){var a=this,n=!1,r=this.status.media.poster!==t.poster;this._resetMedia(),this._resetGate(),this._resetActive(),this.androidFix.setMedia=!1,this.androidFix.play=!1,this.androidFix.pause=!1,t=this._absoluteMediaUrls(t),e.each(this.formats,(function(r,o){var i="video"===a.format[o].media;if(e.each(a.solutions,(function(r,s){if(a[s].support[o]&&a._validString(t[o])){var l="html"===s,u="aurora"===s;return i?(l?(a.html.video.gate=!0,a._html_setVideo(t),a.html.active=!0):(a.flash.gate=!0,a._flash_setVideo(t),a.flash.active=!0),a.css.jq.videoPlay.length&&a.css.jq.videoPlay.show(),a.status.video=!0):(l?(a.html.audio.gate=!0,a._html_setAudio(t),a.html.active=!0,e.jPlayer.platform.android&&(a.androidFix.setMedia=!0)):u?(a.aurora.gate=!0,a._aurora_setAudio(t),a.aurora.active=!0):(a.flash.gate=!0,a._flash_setAudio(t),a.flash.active=!0),a.css.jq.videoPlay.length&&a.css.jq.videoPlay.hide(),a.status.video=!1),n=!0,!1}})),n)return!1})),n?(this.status.nativeVideoControls&&this.html.video.gate||this._validString(t.poster)&&(r?this.htmlElement.poster.src=t.poster:this.internal.poster.jq.show()),"string"==typeof t.title&&(this.css.jq.title.length&&this.css.jq.title.html(t.title),this.htmlElement.audio&&this.htmlElement.audio.setAttribute("title",t.title),this.htmlElement.video&&this.htmlElement.video.setAttribute("title",t.title)),this.status.srcSet=!0,this.status.media=e.extend({},t),this._updateButtons(!1),this._updateInterface(),this._trigger(e.jPlayer.event.setmedia)):this._error({type:e.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:e.jPlayer.errorMsg.NO_SUPPORT,hint:e.jPlayer.errorHint.NO_SUPPORT})},_resetMedia:function(){this._resetStatus(),this._updateButtons(!1),this._updateInterface(),this._seeked(),this.internal.poster.jq.hide(),clearTimeout(this.internal.htmlDlyCmdId),this.html.active?this._html_resetMedia():this.aurora.active?this._aurora_resetMedia():this.flash.active&&this._flash_resetMedia()},clearMedia:function(){this._resetMedia(),this.html.active?this._html_clearMedia():this.aurora.active?this._aurora_clearMedia():this.flash.active&&this._flash_clearMedia(),this._resetGate(),this._resetActive()},load:function(){this.status.srcSet?this.html.active?this._html_load():this.aurora.active?this._aurora_load():this.flash.active&&this._flash_load():this._urlNotSetError("load")},focus:function(){this.options.keyEnabled&&(e.jPlayer.focus=this)},play:function(e){"object"==typeof e&&this.options.useStateClassSkin&&!this.status.paused?this.pause(e):(e="number"==typeof e?e:NaN,this.status.srcSet?(this.focus(),this.html.active?this._html_play(e):this.aurora.active?this._aurora_play(e):this.flash.active&&this._flash_play(e)):this._urlNotSetError("play"))},videoPlay:function(){this.play()},pause:function(e){e="number"==typeof e?e:NaN,this.status.srcSet?this.html.active?this._html_pause(e):this.aurora.active?this._aurora_pause(e):this.flash.active&&this._flash_pause(e):this._urlNotSetError("pause")},tellOthers:function(t,a){var n=this,r="function"==typeof a,o=Array.prototype.slice.call(arguments);"string"==typeof t&&(r&&o.splice(1,1),e.jPlayer.prototype.destroyRemoved(),e.each(this.instances,(function(){n.element!==this&&(r&&!a.call(this.data("jPlayer"),n)||this.jPlayer.apply(this,o))})))},pauseOthers:function(e){this.tellOthers("pause",(function(){return this.status.srcSet}),e)},stop:function(){this.status.srcSet?this.html.active?this._html_pause(0):this.aurora.active?this._aurora_pause(0):this.flash.active&&this._flash_pause(0):this._urlNotSetError("stop")},playHead:function(e){e=this._limitValue(e,0,100),this.status.srcSet?this.html.active?this._html_playHead(e):this.aurora.active?this._aurora_playHead(e):this.flash.active&&this._flash_playHead(e):this._urlNotSetError("playHead")},_muted:function(e){this.mutedWorker(e),this.options.globalVolume&&this.tellOthers("mutedWorker",(function(){return this.options.globalVolume}),e)},mutedWorker:function(t){this.options.muted=t,this.html.used&&this._html_setProperty("muted",t),this.aurora.used&&this._aurora_mute(t),this.flash.used&&this._flash_mute(t),this.html.video.gate||this.html.audio.gate||(this._updateMute(t),this._updateVolume(this.options.volume),this._trigger(e.jPlayer.event.volumechange))},mute:function(e){"object"==typeof e&&this.options.useStateClassSkin&&this.options.muted?this._muted(!1):(e=e===t||!!e,this._muted(e))},unmute:function(e){e=e===t||!!e,this._muted(!e)},_updateMute:function(e){e===t&&(e=this.options.muted),e?this.addStateClass("muted"):this.removeStateClass("muted"),this.css.jq.mute.length&&this.css.jq.unmute.length&&(this.status.noVolume?(this.css.jq.mute.hide(),this.css.jq.unmute.hide()):e?(this.css.jq.mute.hide(),this.css.jq.unmute.show()):(this.css.jq.mute.show(),this.css.jq.unmute.hide()))},volume:function(e){this.volumeWorker(e),this.options.globalVolume&&this.tellOthers("volumeWorker",(function(){return this.options.globalVolume}),e)},volumeWorker:function(t){t=this._limitValue(t,0,1),this.options.volume=t,this.html.used&&this._html_setProperty("volume",t),this.aurora.used&&this._aurora_volume(t),this.flash.used&&this._flash_volume(t),this.html.video.gate||this.html.audio.gate||(this._updateVolume(t),this._trigger(e.jPlayer.event.volumechange))},volumeBar:function(t){if(this.css.jq.volumeBar.length){var a=e(t.currentTarget),n=a.offset(),r=t.pageX-n.left,o=a.width(),i=a.height()-t.pageY+n.top,s=a.height();this.options.verticalVolume?this.volume(i/s):this.volume(r/o)}this.options.muted&&this._muted(!1)},_updateVolume:function(e){e===t&&(e=this.options.volume),e=this.options.muted?0:e,this.status.noVolume?(this.addStateClass("noVolume"),this.css.jq.volumeBar.length&&this.css.jq.volumeBar.hide(),this.css.jq.volumeBarValue.length&&this.css.jq.volumeBarValue.hide(),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.hide()):(this.removeStateClass("noVolume"),this.css.jq.volumeBar.length&&this.css.jq.volumeBar.show(),this.css.jq.volumeBarValue.length&&(this.css.jq.volumeBarValue.show(),this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"](100*e+"%")),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.show())},volumeMax:function(){this.volume(1),this.options.muted&&this._muted(!1)},_cssSelectorAncestor:function(t){var a=this;this.options.cssSelectorAncestor=t,this._removeUiClass(),this.ancestorJq=t?e(t):[],t&&1!==this.ancestorJq.length&&this._warning({type:e.jPlayer.warning.CSS_SELECTOR_COUNT,context:t,message:e.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:e.jPlayer.warningHint.CSS_SELECTOR_COUNT}),this._addUiClass(),e.each(this.options.cssSelector,(function(e,t){a._cssSelector(e,t)})),this._updateInterface(),this._updateButtons(),this._updateAutohide(),this._updateVolume(),this._updateMute()},_cssSelector:function(t,a){var n=this;"string"==typeof a?e.jPlayer.prototype.options.cssSelector[t]?(this.css.jq[t]&&this.css.jq[t].length&&this.css.jq[t].unbind(".jPlayer"),this.options.cssSelector[t]=a,this.css.cs[t]=this.options.cssSelectorAncestor+" "+a,this.css.jq[t]=a?e(this.css.cs[t]):[],this.css.jq[t].length&&this[t]&&this.css.jq[t].bind("click.jPlayer",(function(a){a.preventDefault(),n[t](a),n.options.autoBlur?e(this).blur():e(this).focus()})),a&&1!==this.css.jq[t].length&&this._warning({type:e.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[t],message:e.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[t].length+" found for "+t+" method.",hint:e.jPlayer.warningHint.CSS_SELECTOR_COUNT})):this._warning({type:e.jPlayer.warning.CSS_SELECTOR_METHOD,context:t,message:e.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:e.jPlayer.warningHint.CSS_SELECTOR_METHOD}):this._warning({type:e.jPlayer.warning.CSS_SELECTOR_STRING,context:a,message:e.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:e.jPlayer.warningHint.CSS_SELECTOR_STRING})},duration:function(e){this.options.toggleDuration&&(this.options.captureDuration&&e.stopPropagation(),this._setOption("remainingDuration",!this.options.remainingDuration))},seekBar:function(t){if(this.css.jq.seekBar.length){var a=e(t.currentTarget),n=a.offset(),r=100*(t.pageX-n.left)/a.width();this.playHead(r)}},playbackRate:function(e){this._setOption("playbackRate",e)},playbackRateBar:function(t){if(this.css.jq.playbackRateBar.length){var a,n=e(t.currentTarget),r=n.offset(),o=t.pageX-r.left,i=n.width(),s=n.height()-t.pageY+r.top,l=n.height();a=(this.options.verticalPlaybackRate?s/l:o/i)*(this.options.maxPlaybackRate-this.options.minPlaybackRate)+this.options.minPlaybackRate,this.playbackRate(a)}},_updatePlaybackRate:function(){var e=(this.options.playbackRate-this.options.minPlaybackRate)/(this.options.maxPlaybackRate-this.options.minPlaybackRate);this.status.playbackRateEnabled?(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.show(),this.css.jq.playbackRateBarValue.length&&(this.css.jq.playbackRateBarValue.show(),this.css.jq.playbackRateBarValue[this.options.verticalPlaybackRate?"height":"width"](100*e+"%"))):(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.hide(),this.css.jq.playbackRateBarValue.length&&this.css.jq.playbackRateBarValue.hide())},repeat:function(e){"object"==typeof e&&this.options.useStateClassSkin&&this.options.loop?this._loop(!1):this._loop(!0)},repeatOff:function(){this._loop(!1)},_loop:function(t){this.options.loop!==t&&(this.options.loop=t,this._updateButtons(),this._trigger(e.jPlayer.event.repeat))},option:function(a,n){var r=a;if(0===arguments.length)return e.extend(!0,{},this.options);if("string"==typeof a){var o=a.split(".");if(n===t){for(var i=e.extend(!0,{},this.options),s=0;s0||Math.floor(n)>0):r=!0,e.internal.mouse={x:t.pageX,y:t.pageY},r&&e.css.jq.gui.fadeIn(e.options.autohide.fadeIn,(function(){clearTimeout(e.internal.autohideId),e.internal.autohideId=setTimeout((function(){e.css.jq.gui.fadeOut(e.options.autohide.fadeOut)}),e.options.autohide.hold)}))};this.css.jq.gui.length&&(this.css.jq.gui.stop(!0,!0),clearTimeout(this.internal.autohideId),delete this.internal.mouse,this.element.unbind(".jPlayerAutohide"),this.css.jq.gui.unbind(".jPlayerAutohide"),this.status.nativeVideoControls?this.css.jq.gui.hide():this.options.fullWindow&&this.options.autohide.full||!this.options.fullWindow&&this.options.autohide.restored?(this.element.bind(t,a),this.css.jq.gui.bind(t,a),this.css.jq.gui.hide()):this.css.jq.gui.show())},fullScreen:function(e){"object"==typeof e&&this.options.useStateClassSkin&&this.options.fullScreen?this._setOption("fullScreen",!1):this._setOption("fullScreen",!0)},restoreScreen:function(){this._setOption("fullScreen",!1)},_fullscreenAddEventListeners:function(){var t=this,a=e.jPlayer.nativeFeatures.fullscreen;a.api.fullscreenEnabled&&a.event.fullscreenchange&&("function"!=typeof this.internal.fullscreenchangeHandler&&(this.internal.fullscreenchangeHandler=function(){t._fullscreenchange()}),document.addEventListener(a.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1))},_fullscreenRemoveEventListeners:function(){var t=e.jPlayer.nativeFeatures.fullscreen;this.internal.fullscreenchangeHandler&&document.removeEventListener(t.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1)},_fullscreenchange:function(){this.options.fullScreen&&!e.jPlayer.nativeFeatures.fullscreen.api.fullscreenElement()&&this._setOption("fullScreen",!1)},_requestFullscreen:function(){var t=this.ancestorJq.length?this.ancestorJq[0]:this.element[0],a=e.jPlayer.nativeFeatures.fullscreen;a.used.webkitVideo&&(t=this.htmlElement.video),a.api.fullscreenEnabled&&a.api.requestFullscreen(t)},_exitFullscreen:function(){var t,a=e.jPlayer.nativeFeatures.fullscreen;a.used.webkitVideo&&(t=this.htmlElement.video),a.api.fullscreenEnabled&&a.api.exitFullscreen(t)},_html_initMedia:function(t){var a=e(this.htmlElement.media).empty();e.each(t.track||[],(function(e,t){var n=document.createElement("track");n.setAttribute("kind",t.kind?t.kind:""),n.setAttribute("src",t.src?t.src:""),n.setAttribute("srclang",t.srclang?t.srclang:""),n.setAttribute("label",t.label?t.label:""),t.def&&n.setAttribute("default",t.def),a.append(n)})),this.htmlElement.media.src=this.status.src,"none"!==this.options.preload&&this._html_load(),this._trigger(e.jPlayer.event.timeupdate)},_html_setFormat:function(t){var a=this;e.each(this.formats,(function(e,n){if(a.html.support[n]&&t[n])return a.status.src=t[n],a.status.format[n]=!0,a.status.formatType=n,!1}))},_html_setAudio:function(e){this._html_setFormat(e),this.htmlElement.media=this.htmlElement.audio,this._html_initMedia(e)},_html_setVideo:function(e){this._html_setFormat(e),this.status.nativeVideoControls&&(this.htmlElement.video.poster=this._validString(e.poster)?e.poster:""),this.htmlElement.media=this.htmlElement.video,this._html_initMedia(e)},_html_resetMedia:function(){this.htmlElement.media&&(this.htmlElement.media.id!==this.internal.video.id||this.status.nativeVideoControls||this.internal.video.jq.css({width:"0px",height:"0px"}),this.htmlElement.media.pause())},_html_clearMedia:function(){this.htmlElement.media&&(this.htmlElement.media.src="about:blank",this.htmlElement.media.load())},_html_load:function(){this.status.waitForLoad&&(this.status.waitForLoad=!1,this.htmlElement.media.load()),clearTimeout(this.internal.htmlDlyCmdId)},_html_play:function(e){var t=this,a=this.htmlElement.media;if(this.androidFix.pause=!1,this._html_load(),this.androidFix.setMedia)this.androidFix.play=!0,this.androidFix.time=e;else if(isNaN(e))a.play();else{this.internal.cmdsIgnored&&a.play();try{if(a.seekable&&!("object"==typeof a.seekable&&a.seekable.length>0))throw 1;a.currentTime=e,a.play()}catch(a){return void(this.internal.htmlDlyCmdId=setTimeout((function(){t.play(e)}),250))}}this._html_checkWaitForPlay()},_html_pause:function(e){var t=this,a=this.htmlElement.media;if(this.androidFix.play=!1,e>0?this._html_load():clearTimeout(this.internal.htmlDlyCmdId),a.pause(),this.androidFix.setMedia)this.androidFix.pause=!0,this.androidFix.time=e;else if(!isNaN(e))try{if(a.seekable&&!("object"==typeof a.seekable&&a.seekable.length>0))throw 1;a.currentTime=e}catch(a){return void(this.internal.htmlDlyCmdId=setTimeout((function(){t.pause(e)}),250))}e>0&&this._html_checkWaitForPlay()},_html_playHead:function(e){var t=this,a=this.htmlElement.media;this._html_load();try{if("object"==typeof a.seekable&&a.seekable.length>0)a.currentTime=e*a.seekable.end(a.seekable.length-1)/100;else{if(!(a.duration>0)||isNaN(a.duration))throw"e";a.currentTime=e*a.duration/100}}catch(a){return void(this.internal.htmlDlyCmdId=setTimeout((function(){t.playHead(e)}),250))}this.status.waitForLoad||this._html_checkWaitForPlay()},_html_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})))},_html_setProperty:function(e,t){this.html.audio.available&&(this.htmlElement.audio[e]=t),this.html.video.available&&(this.htmlElement.video[e]=t)},_aurora_setAudio:function(t){var a=this;e.each(this.formats,(function(e,n){if(a.aurora.support[n]&&t[n])return a.status.src=t[n],a.status.format[n]=!0,a.status.formatType=n,!1})),this.aurora.player=new AV.Player.fromURL(this.status.src),this._addAuroraEventListeners(this.aurora.player,this.aurora),"auto"===this.options.preload&&(this._aurora_load(),this.status.waitForLoad=!1)},_aurora_resetMedia:function(){this.aurora.player&&this.aurora.player.stop()},_aurora_clearMedia:function(){},_aurora_load:function(){this.status.waitForLoad&&(this.status.waitForLoad=!1,this.aurora.player.preload())},_aurora_play:function(t){this.status.waitForLoad||isNaN(t)||this.aurora.player.seek(t),this.aurora.player.playing||this.aurora.player.play(),this.status.waitForLoad=!1,this._aurora_checkWaitForPlay(),this._updateButtons(!0),this._trigger(e.jPlayer.event.play)},_aurora_pause:function(t){isNaN(t)||this.aurora.player.seek(1e3*t),this.aurora.player.pause(),t>0&&this._aurora_checkWaitForPlay(),this._updateButtons(!1),this._trigger(e.jPlayer.event.pause)},_aurora_playHead:function(e){this.aurora.player.duration>0&&this.aurora.player.seek(e*this.aurora.player.duration/100),this.status.waitForLoad||this._aurora_checkWaitForPlay()},_aurora_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1)},_aurora_volume:function(e){this.aurora.player.volume=100*e},_aurora_mute:function(e){e?(this.aurora.properties.lastvolume=this.aurora.player.volume,this.aurora.player.volume=0):this.aurora.player.volume=this.aurora.properties.lastvolume,this.aurora.properties.muted=e},_flash_setAudio:function(t){var a=this;try{e.each(this.formats,(function(e,n){if(a.flash.support[n]&&t[n]){switch(n){case"m4a":case"fla":a._getMovie().fl_setAudio_m4a(t[n]);break;case"mp3":a._getMovie().fl_setAudio_mp3(t[n]);break;case"rtmpa":a._getMovie().fl_setAudio_rtmp(t[n])}return a.status.src=t[n],a.status.format[n]=!0,a.status.formatType=n,!1}})),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(e){this._flashError(e)}},_flash_setVideo:function(t){var a=this;try{e.each(this.formats,(function(e,n){if(a.flash.support[n]&&t[n]){switch(n){case"m4v":case"flv":a._getMovie().fl_setVideo_m4v(t[n]);break;case"rtmpv":a._getMovie().fl_setVideo_rtmp(t[n])}return a.status.src=t[n],a.status.format[n]=!0,a.status.formatType=n,!1}})),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(e){this._flashError(e)}},_flash_resetMedia:function(){this.internal.flash.jq.css({width:"0px",height:"0px"}),this._flash_pause(NaN)},_flash_clearMedia:function(){try{this._getMovie().fl_clearMedia()}catch(e){this._flashError(e)}},_flash_load:function(){try{this._getMovie().fl_load()}catch(e){this._flashError(e)}this.status.waitForLoad=!1},_flash_play:function(e){try{this._getMovie().fl_play(e)}catch(e){this._flashError(e)}this.status.waitForLoad=!1,this._flash_checkWaitForPlay()},_flash_pause:function(e){try{this._getMovie().fl_pause(e)}catch(e){this._flashError(e)}e>0&&(this.status.waitForLoad=!1,this._flash_checkWaitForPlay())},_flash_playHead:function(e){try{this._getMovie().fl_play_head(e)}catch(e){this._flashError(e)}this.status.waitForLoad||this._flash_checkWaitForPlay()},_flash_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.flash.jq.css({width:this.status.width,height:this.status.height})))},_flash_volume:function(e){try{this._getMovie().fl_volume(e)}catch(e){this._flashError(e)}},_flash_mute:function(e){try{this._getMovie().fl_mute(e)}catch(e){this._flashError(e)}},_getMovie:function(){return document[this.internal.flash.id]},_getFlashPluginVersion:function(){var e,t=0;if(window.ActiveXObject)try{if(e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")){var a=e.GetVariable("$version");a&&(a=a.split(" ")[1].split(","),t=parseInt(a[0],10)+"."+parseInt(a[1],10))}}catch(e){}else navigator.plugins&&navigator.mimeTypes.length>0&&(e=navigator.plugins["Shockwave Flash"])&&(t=navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1"));return 1*t},_checkForFlash:function(e){var t=!1;return this._getFlashPluginVersion()>=e&&(t=!0),t},_validString:function(e){return e&&"string"==typeof e},_limitValue:function(e,t,a){return ea?a:e},_urlNotSetError:function(t){this._error({type:e.jPlayer.error.URL_NOT_SET,context:t,message:e.jPlayer.errorMsg.URL_NOT_SET,hint:e.jPlayer.errorHint.URL_NOT_SET})},_flashError:function(t){var a;a=this.internal.ready?"FLASH_DISABLED":"FLASH",this._error({type:e.jPlayer.error[a],context:this.internal.flash.swf,message:e.jPlayer.errorMsg[a]+t.message,hint:e.jPlayer.errorHint[a]}),this.internal.flash.jq.css({width:"1px",height:"1px"})},_error:function(t){this._trigger(e.jPlayer.event.error,t),this.options.errorAlerts&&this._alert("Error!"+(t.message?"\n"+t.message:"")+(t.hint?"\n"+t.hint:"")+"\nContext: "+t.context)},_warning:function(a){this._trigger(e.jPlayer.event.warning,t,a),this.options.warningAlerts&&this._alert("Warning!"+(a.message?"\n"+a.message:"")+(a.hint?"\n"+a.hint:"")+"\nContext: "+a.context)},_alert:function(e){var t="jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+e;this.options.consoleAlerts?window.console&&window.console.log&&window.console.log(t):alert(t)},_emulateHtmlBridge:function(){var t=this;e.each(e.jPlayer.emulateMethods.split(/\s+/g),(function(e,a){t.internal.domNode[a]=function(e){t[a](e)}})),e.each(e.jPlayer.event,(function(a,n){var r=!0;e.each(e.jPlayer.reservedEvent.split(/\s+/g),(function(e,t){if(t===a)return r=!1,!1})),r&&t.element.bind(n+".jPlayer.jPlayerHtml",(function(){t._emulateHtmlUpdate();var e=document.createEvent("Event");e.initEvent(a,!1,!0),t.internal.domNode.dispatchEvent(e)}))}))},_emulateHtmlUpdate:function(){var t=this;e.each(e.jPlayer.emulateStatus.split(/\s+/g),(function(e,a){t.internal.domNode[a]=t.status[a]})),e.each(e.jPlayer.emulateOptions.split(/\s+/g),(function(e,a){t.internal.domNode[a]=t.options[a]}))},_destroyHtmlBridge:function(){var t=this;this.element.unbind(".jPlayerHtml");var a=e.jPlayer.emulateMethods+" "+e.jPlayer.emulateStatus+" "+e.jPlayer.emulateOptions;e.each(a.split(/\s+/g),(function(e,a){delete t.internal.domNode[a]}))}},e.jPlayer.error={FLASH:"e_flash",FLASH_DISABLED:"e_flash_disabled",NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",VERSION:"e_version"},e.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",FLASH_DISABLED:"jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ",NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.",URL:"Media URL could not be loaded.",URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+e.jPlayer.prototype.version.script+" needs Jplayer.swf version "+e.jPlayer.prototype.version.needFlash+" but found "},e.jPlayer.errorHint={FLASH:"Check your swfPath option and that Jplayer.swf is there.",FLASH_DISABLED:"Check that you have not display:none; the jPlayer entity or any ancestor.",NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.",URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."},e.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method",CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"},e.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of css selectors found did not equal one: ",CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",OPTION_KEY:"The option requested in jPlayer('option') is undefined."},e.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.",CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."}})?n.apply(t,r):n)||(e.exports=o)},474:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mountAudioModules=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];c(e,t),d(e)},t.unmountAudioModules=function(){u.map((function(e){return e.unmountModules()}))};var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a(33)),r=l(a(515)),o=l(a(517)),i=l(a(520)),s=l(a(521));function l(e){return e&&e.__esModule?e:{default:e}}var u=[r.default,o.default,i.default,s.default];function c(e,t){var a,r=u.map((function(a){return a.retrieveMetadataFromDOM(e,t)})),o=(a=[]).concat.apply(a,function(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t0?p(i.pageDetected(u.PODCAST,e)):p(i.pageDetected(u.UNKNOWN,e)),t.hasClass("story-layout")&&a&&p(l.default.storyPageDetected(a))}},477:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=function(e){i=e,o=function(){if("undefined"!=typeof window&&void 0!==window.performance&&"function"==typeof window.performance.now)return function(){return window.performance.now()};return Date.now}(),r=o(),setInterval(s,1e3),s()};var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a(523));var r=void 0,o=void 0,i=void 0;function s(){var e=Date.now(),t=o(),a=t-r;i(n.timerTick(e,a)),r=t}},478:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a20&&(i+=" has-long-name"),o?n.default.createElement("b",null,n.default.createElement("img",{src:t,alt:"Station Logo"})):n.default.createElement("b",{className:i},r)}(g,_)),E=g.callLetters;b=n.default.createElement("button",{onClick:f.toggleDropDown,"data-metrics-category":"global navigation","data-metrics-action":"toggle station drawer","data-metrics-label":E},w)}var P=v?" is-localized":" is-not-localized";P+=m?" chosen":"";var S,O=y(p),k=d[p.org.id]||{},j=(0,r.default)(k,"streams[0]"),C=j&&a?a[j]:null;return b?n.default.createElement("div",{className:"stations"+P,onMouseEnter:f.handleMouseEnter,onMouseLeave:f.handleMouseLeave},b,n.default.createElement("div",{className:"subnav subnav-stations"},n.default.createElement(u.default,{logoUrl:(S=k,S.logoUrl||S.smallLogoUrl),orgCall:k.callLetters,name:k.name,donateUrl:k.donateUrl,metadata:a,handlers:f,audio:C,isLoggedIn:O,source:c.STATION_DRAWER}))):null}},486:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a ul > li.has-subnav > a","#nprfooter")).on("click",(function(a){a.preventDefault();var n=t(this).parent("li"),i=this,s=t.grep(e,(function(e){return e!==i}));n.children("ul").is(":visible")?o(n):r(n,s)})):(e=t(".primary > ul > li.has-subnav","#nprfooter")).hoverIntent(n)},n.onUnload=function(){t(".primary > ul > li","#nprfooter").off("click")},n.register()}.apply(t,n))||(e.exports=r)}).call(this,a(85)(e))},490:function(e,t,a){"use strict";var n=o(a(7)),r=o(a(24));function o(e){return e&&e.__esModule?e:{default:e}}a(491);var i=r.default.create();i.name="fitvids",i.onReady=function(){try{(0,n.default)(".bucketwrap.statichtml").fitVids({customSelector:'iframe[src^="https://www.facebook.com/plugins/video"], iframe[src*="www.funnyordie.com"]'})}catch(e){}},i.register()},491:function(e,t,a){(function(){ /*! * FitVids 1.1 * * Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com * Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ * Released under the WTFPL license - http://sam.zoy.org/wtfpl/ * */ !function(e){"use strict";e.fn.fitVids=function(t){var a={customSelector:null};if(!document.getElementById("fit-vids-style")){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("div");r.innerHTML='

x

',n.appendChild(r.childNodes[1])}return t&&e.extend(a,t),this.each((function(){var t=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"];a.customSelector&&t.push(a.customSelector);var n=e(this).find(t.join(","));(n=n.not("object object")).each((function(){var t=e(this);if(!("embed"===this.tagName.toLowerCase()&&t.parent("object").length||t.parent(".fluid-width-video-wrapper").length)){var a=("object"===this.tagName.toLowerCase()||t.attr("height")&&!isNaN(parseInt(t.attr("height"),10))?parseInt(t.attr("height"),10):t.height())/(isNaN(parseInt(t.attr("width"),10))?t.width():parseInt(t.attr("width"),10));if(!t.attr("id")){var n="fitvid"+Math.floor(999999*Math.random());t.attr("id",n)}t.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*a+"%"),t.removeAttr("height").removeAttr("width")}}))}))}}(a(7)||window.Zepto)}).call(window)},492:function(e,t,a){"use strict";n(a(7));function n(e){return e&&e.__esModule?e:{default:e}}var r=n(a(24)).default.create();r.name="nielsen",r.onReady=function(){var e=new Image(1,1);e.onerror=e.onload=function(){e.onerror=e.onload=null},e.src=["//secure-us.imrworldwide.com/cgi-bin/m?ci=us-803244h&cg=0&cc=1&si=",encodeURIComponent(window.location.href),"&rp=",encodeURIComponent(document.referrer),"&ts=compact&rnd=",(new Date).getTime()].join("")},r.register()},493:function(e,t,a){"use strict";var n,r=a(24);var o=((n=r)&&n.__esModule?n:{default:n}).default.create();function i(){return window.NPR&&window.NPR.serverVars&&window.NPR.serverVars.storyId?window.NPR.serverVars.storyId:""}function s(){switch(i()){case"1002":return"homep0";case"1001":return"newsn0";case"1008":return"artsn0";case"129554188":return"npr_e0";case"376751684":return"podca0";case"":switch(document.location.pathname){case"/programs":case"/programs/":return"progr0";case"/podcasts/organizations/1":case"/podcasts/organizations/s1":case"/podcasts/organizations/1/":case"/podcasts/organizations/s1/":return"podca00";default:return""}default:return"NPR Extra"===(window.NPR&&window.NPR.serverVars&&window.NPR.serverVars.blog?window.NPR.serverVars.blog:"")?"npr_e0":""}}o.name="metrics/doubleclickFloodlight",o.onReady=function(){var e=s();if(e){var t="1002"===i()?"homep0":"secti0",a=(1e13*Math.random()).toString().split(".")[0],n=document.createElement("iframe");n.setAttribute("width","1"),n.setAttribute("height","1"),n.setAttribute("frameborder","0"),n.setAttribute("style","display:none"),n.setAttribute("src","https://6635101.fls.doubleclick.net/activityi;src=6635101;type="+t+";cat="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;ord="+a+"?");var r=document.getElementsByTagName("main");r.length&&r[0].appendChild(n)}},o.register()},494:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(a.push(i.value),!t||a.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=v(a(7)),o=v(a(24)),i=v(a(495)),s=v(a(145)),l=v(a(51)),u=v(a(6)),c=v(a(10)),d=y(a(496)),p=y(a(222)),f=y(a(147)),h=y(a(148)),m=y(a(126));function y(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function v(e){return e&&e.__esModule?e:{default:e}}var g=o.default.create();g.name="jw";var b=[],_=function(){var e=(0,r.default)("ul.playlist").height(),t=(0,r.default)(".playlist-item"),a=null,n=null;t.each((function(o,i){var s=(0,r.default)(this).position().top,l=(0,r.default)(this).height();s>-1&&null==a?(a=this,(0,r.default)(this).addClass("first").siblings().removeClass("first")):s+l>e&&null==n&&(n=(0,r.default)(t[o-1]),(0,r.default)(t[o]).addClass("last").siblings().removeClass("last"))}))},w=function(e,t){var a=void 0,n=void 0;return t.title?(a=t.title,n=E(t.file)):(n=E(e.playlist[0].sources[0].file),a=NPR.serverVars.title),[a,n]},E=function(e){return e=(e=e.substring(e.lastIndexOf("/")+1,e.length)).substring(0,e.indexOf("."))},P=function(e,t,o){a.e(90).then(function(y){var v=a(103);void 0===window.jwplayer&&(window.jwplayer=v),window.jwplayer.key=i.default.getKey(NPR.serverVars.aggIds);var g=window.jwplayer(e).setup(t);b.push(g);var _=!1,E=!1,P=!1,S=!1,O=0,k=1/0,j=!1;function C(){var e=g.getPlaylistItem(),a=Math.floor(g.getDuration()),r=Math.floor(g.getPosition()),o=w(t,e),i=n(o,2),s=i[0],l=i[1],u=h.getVideoCustomDimensions({duration:a,mediaId:l,provider:"jw player",currentTime:r,title:s}),c=f.createVideoVars(u);f.sendGTMEvent(m.VIDEO_SELECT_COMING_UP,c)}function T(e){var a=g.getPlaylistItem(),r=""+g.getDuration(),o=Math.floor(g.getDuration()),i=Math.round(e.offset),s=Math.round(i-k),l="Seek "+s+" seconds",u=a.resId?a.resId.toString():void 0,c=w(t,a),d=n(c,2),p=d[0],y=d[1];ga("send",{hitType:"event",eventCategory:"JW Player Video",eventAction:l,eventLabel:p,eventValue:i,dimension47:u,dimension48:p,dimension49:r});var v=h.getVideoCustomDimensions({currentTime:k,duration:o,mediaId:y,provider:"jw player",seekAmount:s,title:p}),b=f.createVideoVars(v);f.sendGTMEvent(m.VIDEO_SEEK,b),k=1/0}g.on("play",(function(){(0,r.default)("#"+e+" .jw-controlbar.jw-reset").css("display","block");var a=g.getPlaylistItem(),o=Math.floor(g.getDuration()),i=Math.floor(g.getPosition()),s=w(t,a),l=n(s,2),u=l[0],c=l[1];if(i>0&&j){var d=h.getVideoCustomDimensions({duration:o,mediaId:c,provider:"jw player",currentTime:i,title:u}),p=f.createVideoVars(d);f.sendGTMEvent(m.VIDEO_RESUME,p)}else if(0===i){_=!1,E=!1,P=!1,S=!1,j=!1;var y=h.getVideoCustomDimensions({duration:o,mediaId:c,provider:"jw player",title:u}),v=f.createVideoVars(y);f.sendGTMEvent(m.VIDEO_START,v)}})),g.on("ready",(function(){var e=g.getContainer().querySelector(".jw-nextup-container");e&&e.addEventListener("click",C)})),g.on("remove",(function(){var e=g.getContainer().querySelector(".jw-nextup-container");e&&(e.onclick=function(){e.removeEventListener("click",C)})})),g.on("pause",(function(){j=!0;var e=g.getPlaylistItem(),a=Math.floor(g.getDuration()),r=Math.floor(g.getPosition()),o=w(t,e),i=n(o,2),s=i[0],l=i[1],u=h.getVideoCustomDimensions({duration:a,mediaId:l,provider:"jw player",currentTime:r,title:s}),c=f.createVideoVars(u);f.sendGTMEvent(m.VIDEO_PAUSE,c)})),g.on("complete",(function(){var e=g.getPlaylistItem(),a=Math.floor(g.getDuration()),r=w(t,e),o=n(r,2),i=o[0],s=o[1],l=h.getVideoCustomDimensions({duration:a,mediaId:s,provider:"jw player",title:i}),u=f.createVideoVars(l);f.sendGTMEvent(m.VIDEO_COMPLETE,u)})),g.on("buffer",(function(){var e=g.getPlaylistItem(),a=Math.floor(g.getDuration()),r=Math.floor(g.getPosition()),o=w(t,e),i=n(o,2),s=i[0],l=i[1],u=h.getVideoCustomDimensions({duration:a,mediaId:l,provider:"jw player",currentTime:r,title:s}),c=f.createVideoVars(u);f.sendGTMEvent(m.VIDEO_BUFFER,c)})),g.on("time",(function(){var e=Math.floor(g.getPosition()),a=Math.floor(g.getDuration()),r=Math.floor(a/10),o=Math.floor(a/4),i=Math.floor(a/2),s=Math.floor(a/4*3);if(_||e!==r)if(E||e!==o)if(P||e!==i){if(!S&&e===s){var l=g.getPlaylistItem(),u=w(t,l),c=n(u,2),d=c[0],p=c[1],y=h.getVideoCustomDimensions({duration:a,mediaId:p,provider:"jw player",currentTime:e,percent:75,title:d}),v=f.createVideoVars(y);f.sendGTMEvent(m.VIDEO_PROGRESS,v),S=!0}}else{var b=g.getPlaylistItem(),O=w(t,b),k=n(O,2),j=k[0],C=k[1],N=h.getVideoCustomDimensions({duration:a,mediaId:C,provider:"jw player",currentTime:e,percent:50,title:j}),T=f.createVideoVars(N);f.sendGTMEvent(m.VIDEO_PROGRESS,T),P=!0}else{var M=g.getPlaylistItem(),A=w(t,M),R=n(A,2),L=R[0],I=R[1],x=h.getVideoCustomDimensions({duration:a,mediaId:I,provider:"jw player",currentTime:e,percent:25,title:L}),D=f.createVideoVars(x);f.sendGTMEvent(m.VIDEO_PROGRESS,D),E=!0}else{var q=g.getPlaylistItem(),F=w(t,q),U=n(F,2),B=U[0],V=U[1],H=h.getVideoCustomDimensions({duration:a,mediaId:V,provider:"jw player",currentTime:e,percent:10,title:B}),z=f.createVideoVars(H);f.sendGTMEvent(m.VIDEO_PROGRESS,z),_=!0}})),g.on("beforePlay",(function(){var e,a,n=(0,l.default)().getState(),r=(0,u.default)(n,"sponsorship").videoLastPlayedTimestamp;t.videoPrerollAdUrl&&(e=r,a=g.getCurrentTime(),(Date.now()/1e3-e>=p.SPONSORSHIP_INTERVAL||!e)&&0===a)?(c.default.info("JW: Attempting to play an ad. Last played timestamp: "+r),g.playAd(t.videoPrerollAdUrl)):c.default.info("JW: Not playing sponsorship. Last played at: "+r)})),g.on("adComplete",(function(){c.default.info("JW: Preroll ad complete."),(0,l.default)().dispatch(d.videoPrerollEnded())})),g.on("levelsChanged",(function(e){var a=g.getPlaylistItem(),r=""+g.getDuration(),o=Math.floor(g.getDuration()),i=e.levels[e.currentQuality].label,s=Math.floor(g.getPosition()),l=a.resId?a.resId.toString():void 0,u=w(t,a),c=n(u,2),d=c[0],p=c[1];ga("send",{hitType:"event",eventCategory:"JW Player Video",eventAction:"change video quality to "+i,eventLabel:d,dimension47:l,dimension48:d,dimension49:r});var y=h.getVideoCustomDimensions({currentTime:s,duration:o,mediaId:p,provider:"jw player",videoPixelQuality:i,title:d}),v=f.createVideoVars(y);f.sendGTMEvent(m.VIDEO_CHANGE_QUALITY,v)})),g.on("fullscreen",(function(){var e=g.getPlaylistItem(),a=""+g.getDuration(),r=Math.floor(g.getDuration()),o=jwplayer().getFullscreen()?"click fullscreen":"exit fullscreen",i=Math.floor(g.getPosition()),s=e.resId?e.resId.toString():void 0,l=w(t,e),u=n(l,2),c=u[0],d=u[1];ga("send",{hitType:"event",eventCategory:"JW Player Video",eventAction:o,eventLabel:c,dimension47:s,dimension48:c,dimension49:a});var p=h.getVideoCustomDimensions({currentTime:i,duration:r,mediaId:d,provider:"jw player",title:c}),y=f.createVideoVars(p);"click fullscreen"==o?f.sendGTMEvent(m.VIDEO_FULLSCREEN,y):f.sendGTMEvent(m.VIDEO_EXIT_FULLSCREEN,y)})),g.on("seek",(function(e){k===1/0&&(k=Math.floor(g.getPosition())),clearTimeout(O),O=setTimeout((function(e,t){e(t)}),1e3,T,e)})),g.on("volume",(0,s.default)((function(e){var a=g.getPlaylistItem(),r=""+g.getDuration(),o=Math.floor(g.getDuration()),i=Math.floor(g.getPosition()),s=a.resId?a.resId.toString():void 0,l=w(t,a),u=n(l,2),c=u[0],d=u[1];ga("send",{hitType:"event",eventCategory:"JW Player Video",eventAction:"adjust volume",eventLabel:c,eventValue:e.volume,dimension47:s,dimension48:c,dimension49:r});var p=h.getVideoCustomDimensions({currentTime:i,duration:o,mediaId:d,provider:"jw player",volumePosition:e.volume,title:c}),y=f.createVideoVars(p);f.sendGTMEvent(m.VIDEO_ADJUST_VOLUME,y)}),500)),o&&N(g,o)}.bind(null,a)).catch(a.oe)},S=window.matchMedia("(min-width: 768px)"),O=function(e,t){S.matches&&(0,r.default)(".playlist-wrapper").fadeIn().css("height",(0,r.default)(t).height());(0,r.default)(e+" ul.playlist");_(),(0,r.default)(e+" ul.playlist").scroll((function(){(0,r.default)("ul.playlist").scrollTop()>4?(0,r.default)(e+" .playlist__gradient--top").fadeIn():(0,r.default)(e+" .playlist__gradient--top").fadeOut(),(0,r.default)("ul.playlist")[0].scrollHeight-(0,r.default)("ul.playlist").height()<=(0,r.default)("ul.playlist").scrollTop()?(0,r.default)(".playlist__gradient--bottom").fadeOut():(0,r.default)(".playlist__gradient--bottom").fadeIn(),_()}))};function k(){(0,r.default)("[data-jwplayer]").each((function(e,t){var a=i.default.loadFromDiv(t).getConfig();if(a){var n=(0,r.default)(t);P(n.attr("id"),a),n.removeAttr("data-jwplayer")}}))}var j=function(e,t,a){var n=(0,r.default)(a.target).closest("a").data("mediaid"),o=e.findIndex((function(e){return n===e.mediaid}));a.preventDefault(),t.playlistItem(o)},C=function(e,t){var a=t.item.mediaid,n=(0,r.default)(e+" .playlist").find("[data-mediaid='"+a+"']").closest("li");n.addClass("active").siblings().removeClass("active");var o=(0,r.default)(e+" ul.playlist").scrollTop()+n.offset().top;if(o-=(0,r.default)(e+" ul.playlist").offset().top,S.matches)(0,r.default)(e+" ul.playlist").animate({scrollTop:o},400);else{var i=(0,r.default)(e+" ul.playlist").scrollLeft()+n.offset().left;i-=(0,r.default)(e+" ul.playlist").offset().left+10,(0,r.default)(e+" ul.playlist").animate({scrollLeft:i},400)}},N=function(e,t){var a={};a.playlist=e.getPlaylist(),(0,r.default)(t+" .playlist-wrapper").on("click",".playlist-item-link",j.bind(void 0,a.playlist,e)),e.on("playlistItem",C.bind(void 0,t))};function T(){var e=this;(0,r.default)("[data-jwplayer-playlist]").each((function(t,a){var n=i.default.loadPlaylistFromDiv(a).getPlaylistConfig();if(n){var o=(0,r.default)(a),s=o.attr("data-player-id"),l="#"+s,u="#"+o.attr("data-playlist-id");P(s,n,u),function e(t,a){(0,r.default)(t).height()?a():setTimeout((function(){e(t,a)}),100)}(l,O.bind(e,u,l)),o.removeAttr("data-jwplayer-playlist"),window.onresize=function(){S.matches?(0,r.default)(".playlist-wrapper").fadeIn().css("height",(0,r.default)("#"+s).height()):(0,r.default)(".playlist-wrapper").css("height","auto")}}}))}(0,r.default)(".playlist").keydown((function(e){13===e.which?document.activeElement.click():40===e.which?(0,r.default)(".playlist-item.active").next().find("a").trigger("click"):38===e.which&&(0,r.default)(".playlist-item.active").prev().find("a").trigger("click")})),g.onReady=function(){T(),k()},g.onUnload=function(){var e=void 0;if(b.length){for(e=0;e=0}))&&(t="music");e.sharing={link:this.webHost+"MEDIAID?jwsource=cl",code:''}}return e},u.prototype._addSharingForPlaylist=function(e){return this.embedLink&&(e.sharing={link:this.webHost+"MEDIAID?jwsource=cl"}),e},u.prototype._addSponsorship=function(e){return this.videoPrerollAdUrl&&(e.advertising={client:"googima",admessage:"Sponsor Message. Your video will begin shortly."},e.videoPrerollAdUrl=this.videoPrerollAdUrl),e};t.default={JWModel:u,loadFromDiv:function(e){return new u((0,o.default)(e).data("jwplayer"))},loadPlaylistFromDiv:function(e){var t=(0,o.default)(e).data("jwplayer-playlist"),a=new u(t[0]),n=function(e){var t=[];return e.forEach((function(e){t.push({image:e.image,sources:e.sources,tracks:e.tracks,title:e.title,description:e.description,duration:e.duration,mediaid:e.mediaid,resId:parseInt(e.resId,10)})})),t}(t);return a.playlist=n,a},getKey:function(e){if("undefined"!=typeof URL&&"undefined"!==window&&"undefined"!==window.location){var t=new URL(window.location).searchParams.get("jwMediaType");if(!e&&"music"!==t)return s.JW_KEY;if(e&&e.some((function(e){return l.indexOf(parseInt(e,10))>=0}))||"music"===t)return s.JW_MUSIC_KEY}return s.JW_KEY},Constants:s}},496:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.videoPrerollEnded=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a(2));t.videoPrerollEnded=function(){return{type:n.VIDEO_PREROLL_ENDED}}},497:function(e,t,a){"use strict";var n=f(a(1)),r=f(a(70)),o=a(14),i=f(a(7)),s=f(a(24)),l=f(a(51)),u=f(a(498)),c=f(a(472)),d=a(474);function p(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function f(e){return e&&e.__esModule?e:{default:e}}var h=[p(a(475)),p(a(476)),p(a(477)),p(a(524)),p(a(525)),p(a(527)),p(a(528))],m=s.default.create();m.name="persistent-audio";var y=(0,l.default)();m.init=function(){h.map((function(e){return e.init(y.dispatch)})),(0,i.default)(document).on("newAudioModules",(function(){return(0,d.mountAudioModules)(y)})),(0,i.default)("#globalheader").length&&((0,i.default)("#globalheader").before('
'),r.default.render(n.default.createElement("div",{className:"player-react-mount-inner"},n.default.createElement(o.Provider,{store:y},n.default.createElement(c.default,null)),n.default.createElement(o.Provider,{store:y},n.default.createElement(u.default,null))),document.getElementById("player-react-mount")))},m.onReady=function(){(0,d.mountAudioModules)(y)},m.onUnload=function(){(0,d.unmountAudioModules)()},m.register()},498:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a0&&!this.props.localOrg?o.default.createElement("div",null,o.default.createElement(d.default,{handlers:this.props.handlers,player:this.props.player,metadata:this.props.metadata})):this.props.orgStatus!==s.PENDING?o.default.createElement("div",null,o.default.createElement(l.default,{handlers:this.props.handlers,localOrg:this.props.localOrg,metadata:this.props.metadata,player:this.props.player})):o.default.createElement(p.default,null)}},{key:"render",value:function(){return o.default.createElement("div",{className:"player-initial"},this.getInitialComponent())}}]),t}(r.Component);t.default=g},500:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a10)};var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a(15))},505:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;ae.lastPlayPosition+1/600&&e.props.player.isPlaying&&(e.bufferingDetected=!1,e.props.handlers.onAudioBufferingFinished(e.props.audio)),e.lastPlayPosition=t}.bind(this),600)}},{key:"componentWillUpdate",value:function(e,t){var a=(0,i.default)(this.audioplayerRef.current).data().jPlayer,n=(0,c.getAudioUrlToPlay)(e.audio);if(this.state.didUpdateFirstTime){if(e.audio&&((!this.props.audio.isAudioReady&&e.audio.isAudioReady||e.audio.isAudioReady&&this.props.audio.uid!==e.audio.uid||e.audio.isAudioReady&&(0,s.default)(a.status.media))&&this.load(n,!1),(a.status.paused||a.status.waitForPlay)&&e.audio.isPlaying&&this.play(n),a.status.paused||e.audio.isPlaying||this.pause(),e.player.volume!==this.props.player.volume&&this.setAudioPlayerVolume(e.player.volume),this.props.player.env.isPageVisible&&Math.abs(e.player.position-this.props.player.position)>2*this.timeUpdateThreshold)){var r=e.player.position/this.props.audio.duration*100;this.seek(r)}}else this.setState({didUpdateFirstTime:!0})}},{key:"play",value:function(e){var t=(0,i.default)(this.audioplayerRef.current);this.props.audio.type===d.STREAM?(f||(t.jPlayer("clearMedia"),this.load(e,!0)),t.jPlayer("play")):t.jPlayer("play",this.props.player.position)}},{key:"pause",value:function(){(0,i.default)(this.audioplayerRef.current).jPlayer("pause")}},{key:"load",value:function(e,t){if(e){var a=t?u.default.addUrlParameter(e,"ck",(new Date).getTime()):e;(0,i.default)(this.audioplayerRef.current).jPlayer("setMedia",{mp3:a}),this.resetBuffering()}}},{key:"seek",value:function(e){(0,i.default)(this.audioplayerRef.current).jPlayer("playHead",e)}},{key:"setAudioPlayerVolume",value:function(e){(0,i.default)(this.audioplayerRef.current).jPlayer("volume",e)}},{key:"handleSuccessfulLoad",value:function(){this.props.player.userEverInvokedPlay&&this.props.handlers.onAudioLoaded(this.props.audio)}},{key:"handleError",value:function(e){var t=e.jPlayer.error,a=(0,c.getAudioUrlToPlay)(this.props.audio);switch(t.type){case i.default.jPlayer.error.FLASH:case i.default.jPlayer.error.FLASH_DISABLED:case i.default.jPlayer.error.NO_SOLUTION:l.default.error(new Error("Persistent audio player failed to start jPlayer."),{version:e.jPlayer.version});break;case i.default.jPlayer.error.NO_SUPPORT:case i.default.jPlayer.error.URL_NOT_SET:l.default.error(new Error("Failed to find any supported audio formats at "+a),{uid:this.props.audio.uid}),this.props.handlers.onAudioError(this.props.audio,{reason:"Audio temporarily unavailable"});break;case i.default.jPlayer.error.URL:l.default.error(new Error("Failed retrieving "+a+" for playback."),{uid:this.props.audio.uid}),this.props.handlers.onAudioError(this.props.audio,{reason:"Audio temporarily unavailable"});break;default:l.default.warning("Unhandled jPlayer error",{type:t.type,message:t.message})}}},{key:"render",value:function(){return o.default.createElement("div",{style:{width:0,height:0},id:"audio-player",ref:this.audioplayerRef})}}]),t}(r.Component);t.default=h},515:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0)||u.default.isEmail(t)},a.onSubscribe=a.onSubscribe.bind(a),a.doSubscribe=a.doSubscribe.bind(a),a.handlers=e.handlers,a.state={brandingLogo:null,isExternalNewsletter:!1,additionalHiddenFields:[],externalAction:null,emailInput:{},marketingHeader:"",emailFieldName:null,newsletterId:null,marketingShortDescription:"",stickyDescription:"",errorMessage:"",termsText:"",tempFormData:null};var n=a.props.newsletter,r=(n.newsletterId,n.organizationId),o={};((o=r!==p.NPR?d.default[r]:d.default[a.props.user.org.id])&&!o.enabled||!NPR.serverVars.isLocalStationStory||"false"===NPR.serverVars.isLocalStationStory)&&(o={});return a.state.isExternalNewsletter=(0,i.default)(o,"enabled",!1),a.state.externalAction=(0,i.default)(o,"url"),a.state.termsText=(0,i.default)(o,"termsText",'By subscribing, you agree to NPR\'s terms of use and privacy policy. NPR may share your name and email address with your NPR station. See Details.'),a.state.emailFieldName=(0,i.default)(o,"emailFieldName","email"),a.state.marketingHeader=(0,i.default)(o,"marketingHeader",a.props.newsletter.marketingHeader),a.state.stickyDescription=(0,i.default)(o,"stickyDescription",a.props.newsletter.stickyDescription),a.state.marketingShortDescription=(0,i.default)(o,"shortDescription",a.props.newsletter.shortDescription),a.state.newsletterId=(0,i.default)(o,"id",a.props.newsletter.newsletterId),a.state.organizationId=(0,i.default)(o,"organizationId",a.props.newsletter.organizationId),a.state.additionalHiddenFields=(0,i.default)(o,"hiddenFields",[]),a.state.additionalHiddenFields.push({name:"newsletterId",value:a.props.newsletter.newsletterId}),a.state.brandingLogo=(0,i.default)(o,"logo"),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"componentDidMount",value:function(){var e=this;window.onNewsletterSubmitRecaptcha=function(){e.onSubscribe()},window.onNewsletterErrorRecaptcha=function(){(0,f.loadCaptcha)()}}},{key:"componentWillUnmount",value:function(){window.onNewsletterSubmitRecaptcha=function(){},window.onNewsletterErrorRecaptcha=function(){}}},{key:"onSubscribe",value:function(){this.state.externalAction?this.doExternalSubscribe():this.doSubscribe()}},{key:"doExternalSubscribe",value:function(){var e=new FormData(this.state.tempFormData),t=this.state.emailInput.value;this.isValidEmail(t)?(this.setState({errorMessage:""}),this.handlers.onExternalSubscriptionRequested(t,this.state.newsletterId,this.state.organizationId,this.state.externalAction,e)):(this.setState({errorMessage:"Please enter a valid email address."}),(0,f.loadCaptcha)())}},{key:"doSubscribe",value:function(){var e=this.state.emailInput.value;this.isValidEmail(e)?(this.setState({errorMessage:""}),this.handlers.onSubscriptionRequested(e,this.state.newsletterId)):this.setState({errorMessage:"Please enter a valid email address."})}},{key:"render",value:function(){var e=this,t="callout callout--newsletter callout--"+this.state.newsletterId+" "+(this.state.isExternalNewsletter?"callout--newsletter-station":""),a=(0,u.default.isUserLoggedIn)(this.props.user),n="",r=!1,l="",d=!1;if(a&&(l=(0,i.default)(this.props.user,"view.data.attributes.email"),!this.state.isExternalNewsletter)){var p=(0,i.default)(this.props.user,"view.data.attributes.subscriptions");p&&(0,s.default)(p,this.state.newsletterId)>=0&&(d=!0)}var f=(0,i.default)(this.props.user,"newsletter.status");f===c.FAILED&&(n="An error has occurred. Please try subscribing again."),(d||f===c.RESOLVED)&&(r=!0);var h=function(){var t=e.state.additionalHiddenFields;return Object.keys(t).map((function(e){return o.default.createElement("input",{type:"hidden",id:t[e].id,name:t[e].name,value:t[e].value,key:e})}))},m=void 0,y=this.state.errorMessage||n;m=r?o.default.createElement("div",{className:"callout__subscribed"},o.default.createElement("div",{className:"callout__subscribed-text"},"Thank you for subscribing!"),o.default.createElement("a",{href:"//npr.org/newsletters",className:"callout__subscribed-more"},"See more newsletters")):l?o.default.createElement("form",{id:"callout__form--newsletter",className:"callout__form",onSubmit:e.triggerRecaptcha},l&&o.default.createElement("input",{ref:function(t){e.state.emailInput=t},className:"callout__input callout__input--populated",type:"text",name:e.state.emailFieldName,placeholder:"What's your email?",readOnly:!0,value:l}),h(),l&&o.default.createElement("div",{className:"g-recaptcha","data-sitekey":e.props.newsletter.recaptchaSiteKey,"data-callback":"onNewsletterSubmitRecaptcha","data-error-callback":"onNewsletterErrorRecaptcha","data-size":"invisible"}),l&&o.default.createElement("button",{className:"callout__submit callout__submit--populated",type:"submit",disabled:e.props.user.newsletter.status===c.PENDING},o.default.createElement("span",{className:"callout__submit-text"},e.props.user.newsletter.status===c.PENDING?"subscribing as "+l:"subscribe as "+l))):o.default.createElement("form",{id:"callout__form--newsletter",className:"callout__form",onSubmit:e.triggerRecaptcha},!l&&o.default.createElement("label",{htmlFor:"callout__input"},"E-mail address"),h(),!l&&o.default.createElement("input",{ref:function(t){e.state.emailInput=t},className:"callout__input",id:"callout__input",type:"email",name:e.state.emailFieldName,placeholder:"What's your email?"}),!l&&o.default.createElement("div",{className:"g-recaptcha","data-sitekey":e.props.newsletter.recaptchaSiteKey,"data-callback":"onNewsletterSubmitRecaptcha","data-error-callback":"onNewsletterErrorRecaptcha","data-size":"invisible"}),!l&&o.default.createElement("button",{className:"callout__submit",type:"submit",disabled:e.props.user.newsletter.status===c.PENDING},o.default.createElement("span",{className:"callout__submit-text"},e.props.user.newsletter.status===c.PENDING?"subscribing":"subscribe")));var v="";v=this.state.isExternalNewsletter?'This sign-up box is protected by reCAPTCHA, use of which is governed by the Google Privacy Policy and Terms of Service.':'This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.';var g=this.state.brandingLogo?"callout__main":"callout__main callout__main--no-image";return o.default.createElement("section",{className:t},o.default.createElement("div",{className:"callout__inner"},this.state.brandingLogo?o.default.createElement("div",{className:"callout__branding"},o.default.createElement("img",{className:"callout__branding-logo",src:this.state.brandingLogo,alt:"Newsletter logo"})):"",o.default.createElement("div",{className:g},this.props.isStickybar?o.default.createElement("div",null,o.default.createElement("h2",{className:"callout__header"},this.state.stickyDescription)):o.default.createElement("div",null,o.default.createElement("h2",{className:"callout__header"},this.state.marketingHeader)),this.props.isStickybar?"":o.default.createElement("div",null,o.default.createElement("p",{className:"callout__description",dangerouslySetInnerHTML:{__html:this.state.marketingShortDescription}})),y?o.default.createElement("b",{className:"callout__error"},this.state.errorMessage||n):"",m,r?"":o.default.createElement("footer",{className:"callout__footer"},o.default.createElement("p",{dangerouslySetInnerHTML:{__html:this.state.termsText+" "+v}})))))}}]),t}(r.Component);t.default=(0,l.connect)()(y)},533:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a-1?googletag.pubads().setTargeting("device","android"):e.match(/(iPad|iPhone|iPod)/i)&&googletag.pubads().setTargeting("device","ios"),googletag.pubads().enableLazyLoad({fetchMarginPercent:120,renderMarginPercent:120,mobileScaling:1}),googletag.pubads().enableSingleRequest(),googletag.pubads().collapseEmptyDivs(!0),googletag.pubads().disableInitialLoad(),"true"===h.default.getCcpaCookie()&&(s.default.info("DFP: ccpa rdp enabled"),googletag.pubads().setPrivacySettings({restrictDataProcessing:!0})),googletag.enableServices()}))},_.onReady=function(){var e=!0,t=[String(Math.floor(20*Math.random())+1)];googletag.cmd.push((function(){googletag.pubads().setTargeting("advelvet",t);var a=[];(0,n.default)("[data-ad-config]").each((function(){var e=(0,n.default)(this).data("ad-config"),t=new u.default(e);t.location===c.STANDARD?a.unshift(t):a.push(t)})),a.forEach((function(t){var n="";if(a.push(t),(0,g.shouldRenderLocation)(t.location)){t.location!==c.CENTERSTAGE&&t.location!==c.BACKSTAGE||(e=!1);var r=t.getAdSlotName();Object.prototype.hasOwnProperty.call(w,r)?(Object.assign(t,{slot:w[r]}),t.slot.clearTargeting()):t.createAdSlot(),P.push(t),n=t.slot.getSlotElementId();var o=Object.assign({},t.targets,(0,g.getAdditionalTargeting)(t.location));Object.getOwnPropertyNames(o).forEach((function(e){t.slot.setTargeting(e,o[e])})),googletag.display(r)}E[t.location]={slotElementId:n,site:t.site}})),(0,g.logSponsorship)(a,P),(0,g.visibilityCheck)((function(){var e;(e=new n.default.Deferred,P.forEach((function(t){!0===t.deferred?N.push(new r.default({element:(0,n.default)(t.getAdSelector()).get(0),handler:function(){return e.resolve()},offset:r.default.viewportHeight()+200})):e.resolve()})),e.promise()).done((function(){googletag.cmd.push((function(){var e=P.map((function(e){return e.slot}));C||(C=!0,googletag.pubads().addEventListener("slotRenderEnded",A)),(0,y.canHaveEventListener)()&&window.addEventListener("message",v.playerMessageEventCallback,!1),googletag.pubads().refresh(e)})),L()}))})),e&&(0,n.default)(window).trigger(j)}))},_.onUnload=function(){L(),window.removeEventListener("message",v.playerMessageEventCallback,!1),googletag.cmd.push((function(){var e=[];P.forEach((function(t){var a=t.getAdSlotName();e.push(t.slot),w[a]=t.slot})),P=[],googletag.pubads().clear(e)})),Object.keys(S).forEach((function(e){S[e].forEach((function(t){s.default.info("DFP: Cleaning up event of type: "+e),window.removeEventListener(e,t)})),S[e]=[]})),E={}},_.register()},536:function(e,t){e.exports=()=>{var e,t,a;e=document,t="script",a=e.createElement(t),e=e.getElementsByTagName(t)[0],a.async=1,a.src="https://abstractedauthority.com/v2chn2WmFPFMpJ_vETUrFZlfJf9hY36RmWwxWhlc5DWsBtcEgU12qDPjP82MA-1bN",e.parentNode.insertBefore(a,e),function(e,t){function a(){(a.q=a.q||[]).push(arguments)}a.v=1,e.admiral=e.admiral||a}(window),function(e,t,a,n){function r(a){(function(){try{return(localStorage.getItem("v4ac1eiZr0")||"").split(",")[4]>0}catch(e){}return!1})()&&(a=e[t].pubads())&&a.setTargeting("admiral-engaged","true")}(n=e[t]=e[t]||{}).cmd=n.cmd||[],typeof n.pubads===a?r():typeof n.cmd.unshift===a?n.cmd.unshift(r):n.cmd.push(r)}(window,"googletag","function")}},537:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t={sc:s.default.getUrlParameter("sc"),ft:s.default.getUrlParameter("ft"),utm_source:s.default.getUrlParameter("utm_source"),utm_medium:s.default.getUrlParameter("utm_medium")},a={orient:""};return""!==e&&(a.ad_location_name=m(e)),"string"==typeof t.sc&&t.sc.length>0?a.sc=t.sc:"string"==typeof document.referrer&&document.referrer.search("facebook.com")>-1?a.sc="fb":"string"==typeof t.ft&&(a.ft=t.ft),"string"==typeof t.utm_source&&t.utm_source.length>0&&(a.utm_source=t.utm_source),"string"==typeof t.utm_medium&&t.utm_medium.length>0&&(a.utm_medium=t.utm_medium),(i.default.isOnPhone()||i.default.isOnTablet())&&(0===window.orientation||180===window.orientation?a.orient="portrait":90!==window.orientation&&-90!==window.orientation||(a.orient="landscape")),a}},538:function(e,t,a){"use strict";var n=m(a(24)),r=m(a(1)),o=m(a(70)),i=m(a(539)),s=m(a(546)),l=a(172),u=m(a(7)),c=a(14),d=m(a(51)),p=a(176),f=a(131),h=a(339);function m(e){return e&&e.__esModule?e:{default:e}}var y=(0,d.default)(),v=n.default.create();v.name="global-alerts";var g=function e(){(0,h.getIsGlobalAlertLastSeenToday)(y.getState())?(0,u.default)(window).off("scroll",e):y.dispatch((0,l.checkGlobalAlerts)(window.scrollY))};v.init=function(){(0,u.default)(document).on("npr:globalAlerts:stickybar",(function(){return y.dispatch((0,l.showGlobalStickybar)())})),(0,u.default)(document).on("npr:globalAlerts:modal",(function(){return y.dispatch((0,l.showGlobalModal)())})),(0,u.default)(document).on("npr:globalAlerts:hide",(function(){return y.dispatch((0,l.hideGlobalAlerts)())}))},v.onReady=function(){var e=(0,p.isWithinAnyModalPeriod)(),t=(0,f.isWithinAnyStickybarPeriod)();(e||t)&&(0,u.default)(window).on("scroll",g);var a=document.getElementById("global-modal-mount");a&&o.default.render(r.default.createElement(c.Provider,{store:y},r.default.createElement(i.default,null)),a);var n=document.getElementById("global-stickybar-mount");n&&o.default.render(r.default.createElement(c.Provider,{store:y},r.default.createElement(s.default,null)),n)},v.onUnload=function(){var e=(0,p.isWithinAnyModalPeriod)(),t=(0,f.isWithinAnyStickybarPeriod)();(e||t)&&(0,u.default)(window).off("scroll",g);var a=document.getElementById("global-modal-mount");a&&o.default.unmountComponentAtNode(a);var n=document.getElementById("global-stickybar-mount");n&&o.default.unmountComponentAtNode(n)},v.register()},539:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=window.innerHeight})}},a.closeStickybar=function(e){a.props.hideGlobalAlerts(e)},a.closeStickybarWithoutMetrics=function(){a.setState({isLinkClicked:!0})},a.getStickybarComponent=function(){var e=a.props,t=e.isAlertDismissed,n=e.alertVariant,r=e.variantIDToShowOnThisPage,i=e.user,s=e.org;if(!t&&!a.state.isLinkClicked&&n===g.STICKYBAR){var h=(0,f.getStickybarNewsletterInfo)(),m=(0,f.getStickybarEmbeddedDonationInfo)(),y=(0,f.getStickybarDonationInfo)(),v=(0,f.getStickybarGenericInfo)(),_=(0,f.getStickyBarPlusInfo)(),w=r in h,E=r in y||r in m,P=r in v,S=r in _,O=s[i.org.id]||null,k="",j=null;if(E)r.includes(b.DONATION_EMBED)?(k="global-stickybar donation-portal-stickybar",j=o.default.createElement(c.default,{station:O,metricsCategory:g.STICKYBAR,onClick:function(){return a.closeStickybar("maybe later")}})):(k="global-stickybar donations-stickybar",j=o.default.createElement(u.default,{donation:y[r],station:O,metricsCategory:g.STICKYBAR,onClick:a.closeStickybarWithoutMetrics}));else if(w)if(k="global-stickybar newsletter-stickybar",h[r].newsletterInfo===(0,f.getStickybarUsePageNewsletter)()){var C=document.getElementById("newsletter-acquisition-callout-data"),N=C?C.getAttribute("data-newsletter"):null,T=JSON.parse(N)||null;T&&(j=o.default.createElement(l.default,{newsletter:T,user:i,isStickybar:!0}))}else j=o.default.createElement(l.default,{newsletter:h[r].newsletterInfo,user:i,isStickybar:!0});else P?(k="global-stickybar generic-stickybar",j=o.default.createElement(d.default,{variantID:r,headerText:v[r].genericInfo.headerText,subText:v[r].genericInfo.subText,buttonText:v[r].genericInfo.buttonText,buttonUrl:v[r].genericInfo.buttonUrl,metricsCategory:g.STICKYBAR,onClick:a.closeStickybarWithoutMetrics})):S&&(k="global-stickybar generic-stickybar",j=o.default.createElement(p.default,{headerText:_[r].genericInfo.headerText,subText:_[r].genericInfo.subText,buttonText:_[r].genericInfo.buttonText,buttonUrl:_[r].genericInfo.buttonUrl,eventLabel:_[r].genericInfo.eventLabel,onClick:a.closeStickybarWithoutMetrics}));if(a.state.isTallerThanViewport&&(k+=" is-tall"),j)return o.default.createElement("section",{className:k},o.default.createElement("button",{className:"global-stickybar__dismiss",onClick:function(){return a.closeStickybar()},"aria-label":"close dialog box"},"X"),o.default.createElement("div",{className:"global-stickybar__inner"},j))}return null},a.state={isLinkClicked:!1,isTallerThanViewport:!1},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"componentDidMount",value:function(){var e=this;v.default.bind(["esc"],(function(){return e.closeStickybar()})),window.addEventListener("resize",(0,y.default)(this.checkHeight,300))}},{key:"componentWillUnmount",value:function(){var e=this;v.default.unbind(["esc"],(function(){return e.closeStickybar()})),window.addEventListener("resize",(0,y.default)(this.checkHeight,300))}},{key:"render",value:function(){return o.default.createElement(m.CSSTransitionGroup,{transitionName:"a",transitionAppear:!0,transitionEnter:!0,transitionLeave:!0,transitionAppearTimeout:500,transitionEnterTimeout:500,transitionLeaveTimeout:500},this.getStickybarComponent())}}]),t}(r.Component);t.default=(0,i.connect)((function(e){var t=e.user,a=e.org;return{alertVariant:(0,h.getAlertVariant)(e),isAlertDismissed:(0,h.getAlertIsDismissed)(e),variantIDToShowOnThisPage:(0,h.getVariantIDToShowOnThisPage)(e),globalAlertAlreadyVisibleThisPage:(0,h.getGlobalAlertAlreadyVisibleThisPage)(e),user:t,org:a}}),(function(e){return{hideGlobalAlerts:function(t){return e(s.hideGlobalAlerts(t))}}}))(E)},547:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(a(1)),r=(o(a(4)),o(a(167)));function o(e){return e&&e.__esModule?e:{default:e}}var i=function(e){return n.default.createElement("section",{className:"callout callout--generic"},n.default.createElement("div",{className:"callout__inner"},n.default.createElement("div",null,n.default.createElement("p",{className:"callout__header"},e.headerText)),n.default.createElement("div",null,n.default.createElement("p",{className:"callout__description"},e.subText)),n.default.createElement("div",{className:"callout__links"},n.default.createElement(r.default,{className:"callout__link",metrics:{category:"generic "+e.metricsCategory,action:"click button",label:e.variantID},onClick:function(){return function(e,t,a){if(a(),e){var n=new URL(e);n.searchParams.set("utm_source","npr.org"),n.searchParams.set("utm_medium","referral"),n.searchParams.set("utm_term",t),window.open(n.href,"_blank")}}(e.buttonUrl,e.metricsCategory,e.onClick)}},n.default.createElement("span",null,e.buttonText)))))};i.defaultProps={onClick:function(){}},t.default=i},548:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(a(1)),r=(o(a(4)),o(a(167)));function o(e){return e&&e.__esModule?e:{default:e}}var i=function(e){return n.default.createElement("section",{className:"callout callout--generic"},n.default.createElement("div",{className:"callout__inner"},n.default.createElement("div",null,n.default.createElement("p",{className:"callout__header"},e.headerText)),n.default.createElement("div",null,n.default.createElement("p",{className:"callout__description"},e.subText)),n.default.createElement("div",{className:"callout__links"},n.default.createElement(r.default,{className:"callout__link",metrics:{category:"npr plus",action:"click stickybar promo",label:e.eventLabel},onClick:function(){return t=e.buttonUrl,(0,e.onClick)(),void(t&&window.open(t,"_blank"));var t}},n.default.createElement("span",null,e.buttonText)))))};i.defaultProps={onClick:function(){}},t.default=i},549:function(e,t,a){"use strict";(function(e){var n,r;n=[a(24),a(7)],void 0===(r=function(e,t){var a=e.create();a.name="we-are-hiring",a.init=function(){NPR.serverVars.isHiring&&console.log("\n%cWe are hiring!\n\n%chttps://n.pr/tech-jobs\n","font-size: 22px; font-family: Helvetica, Arial, sans-serif;","font-size: 12px")},a.register()}.apply(t,n))||(e.exports=r)}).call(this,a(85)(e))},60:function(e,t,a){"use strict";var n=i(a(7)),r=i(a(6)),o=i(a(330));function i(e){return e&&e.__esModule?e:{default:e}}var s=i(a(24)).default.create();s.name="auto-refresh";var l=void 0;function u(){return(0,r.default)(window,"NPR.serverVars.refresh",void 0)}function c(){var e=window.location.href;if(e.indexOf("refresh=true")<=0){var t=[];if(e.indexOf("?")>-1)t=e.substr(e.indexOf("?")+1).split("&");if(t.length>0){for(var a=!1,n=[],r=0;r-1&&(t[r]="refresh=true",a=!0),t[r].indexOf("=")>-1&&n.push(t[r]);a||n.push("refresh=true");var i=window.location.href.split("?")[0],s=n.join("&");o.default.navigateTo(i+"?"+s)}else o.default.navigateTo(e+"?refresh=true")}else o.default.navigateTo(window.location)}function d(){window.clearTimeout(l),l=window.setTimeout(c,1e3*u())}function p(){(0,n.default)(document).trigger("resetRefreshTimeout","window.focus")}function f(){(0,n.default)(document).trigger("resetRefreshTimeout","document.click")}s.onReady=function(){if(u()&&(l=window.setTimeout(c,1e3*u()),(0,n.default)(document).on("resetRefreshTimeout",d),(0,n.default)(window).on("focus",p),(0,n.default)(document).on("click",f),"function"==typeof window.jwplayer)){var e=window.jwplayer();e&&"function"==typeof e.onTime&&e.onTime((function(){Math.round(e.getPosition())%30==0&&(0,n.default)(document).trigger("resetRefreshTimeout","video timeupdate: "+e.getPosition())}))}},s.onUnload=function(){window.clearTimeout(l),(0,n.default)(document).off("resetRefreshTimeout",d),(0,n.default)(window).off("focus",p),(0,n.default)(document).off("click",f)},s.register()},71:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t