PageSourceSearch

https://cdn.grove.wgbh.org/resource/00000185-e551-d942-afb5-effd98….min.50fa49633cf6b6d3e8ebd4ef23cd5359.gz.js

js wgbh.org collected 2026-10-01 08:35:20 UTC 158,034 bytes, 2 lines download raw bytes

1/*! For license information please see All.min.js.LICENSE.txt */
2!function(){var e,t,n={745:function(e,t){"use strict";t.A={setCookie:(e,t,n)=>{let r="";if(n){const e=new Date;e.setTime(e.getTime()+24*n*60*60*1e3),r="; expires="+e.toUTCString()}document.cookie=e+"="+(t||"")+r+"; path=/"},getCookie:e=>{const t=e+"=",n=document.cookie.split(";");let r,o;for(r=0;r<n.length;r++){for(o=n[r];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return!1},eraseCookie:e=>{document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"}}},1640:function(e,t,n){"use strict";function r(e,t,n){let r;return function(){let o=this,i=arguments,a=n&&!r;clearTimeout(r),r=setTimeout(()=>{r=null,n||t.apply(o,i)},e),a&&t.apply(o,i)}}n.d(t,{s:function(){return r}})},2139:function(e,t,n){"use strict";function r(e,t){if(e<=0)return t;let n,r,o=0;return function(){if(r=arguments,n)return;let i=this,a=+Date.now(),s=e-a+o;s<=0?(o=a,t.apply(i,r)):n=setTimeout(function(){o=a,n=null,t.apply(i,r)},s)}}n.d(t,{n:function(){return r}})},3842:function(){!function(){"use strict";function e(e){var t=!0,n=!1,r=null,o={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function i(e){return!!(e&&e!==document&&"HTML"!==e.nodeName&&"BODY"!==e.nodeName&&"classList"in e&&"contains"in e.classList)}function a(e){e.classList.contains("focus-visible")||(e.classList.add("focus-visible"),e.setAttribute("data-focus-visible-added",""))}function s(e){t=!1}function u(){document.addEventListener("mousemove",c),document.addEventListener("mousedown",c),document.addEventListener("mouseup",c),document.addEventListener("pointermove",c),document.addEventListener("pointerdown",c),document.addEventListener("pointerup",c),document.addEventListener("touchmove",c),document.addEventListener("touchstart",c),document.addEventListener("touchend",c)}function c(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(t=!1,document.removeEventListener("mousemove",c),document.removeEventListener("mousedown",c),document.removeEventListener("mouseup",c),document.removeEventListener("pointermove",c),document.removeEventListener("pointerdown",c),document.removeEventListener("pointerup",c),document.removeEventListener("touchmove",c),document.removeEventListener("touchstart",c),document.removeEventListener("touchend",c))}document.addEventListener("keydown",function(n){n.metaKey||n.altKey||n.ctrlKey||(i(e.activeElement)&&a(e.activeElement),t=!0)},!0),document.addEventListener("mousedown",s,!0),document.addEventListener("pointerdown",s,!0),document.addEventListener("touchstart",s,!0),document.addEventListener("visibilitychange",function(e){"hidden"===document.visibilityState&&(n&&(t=!0),u())},!0),u(),e.addEventListener("focus",function(e){var n,r,s;i(e.target)&&(t||(n=e.target,r=n.type,"INPUT"===(s=n.tagName)&&o[r]&&!n.readOnly||"TEXTAREA"===s&&!n.readOnly||n.isContentEditable))&&a(e.target)},!0),e.addEventListener("blur",function(e){var t;i(e.target)&&(e.target.classList.contains("focus-visible")||e.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(r),r=window.setTimeout(function(){n=!1},100),(t=e.target).hasAttribute("data-focus-visible-added")&&(t.classList.remove("focus-visible"),t.removeAttribute("data-focus-visible-added")))},!0),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host?e.host.setAttribute("data-js-focus-visible",""):e.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var t;window.applyFocusVisiblePolyfill=e;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(e){(t=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}"undefined"!=typeof document&&e(document)}()},3263:function(e,t,n){!function(t){"use strict";var r=n(7510),o=function(e,t,n){var o,i,a,s,u={},c=0,l=0,d={sensitivity:7,interval:100,timeout:0};function h(t,n,r){var u=function(e){o=e.clientX,i=e.clientY};return l&&(l=clearTimeout(l)),r?(a=t.clientX,s=t.clientY,e.addEventListener("mousemove",u,!1),1!==c&&(l=setTimeout(function(){f(e,n,t)},d.interval))):(e.removeEventListener("mousemove",u,!1),1===c&&(l=setTimeout(function(){!function(e,t,n){l&&(l=clearTimeout(l)),c=0,t.call(e,n)}(e,n,t)},d.timeout))),this}function f(e,t,n){if(l&&(l=clearTimeout(l)),Math.abs(a-o)+Math.abs(s-i)<d.sensitivity)return c=1,t.call(e,n);a=o,s=i,l=setTimeout(function(){f(e,t,n)},d.interval)}function p(e){h(e,t,!0)}function m(e){h(e,n)}return u.options=function(e){d=r({},d,e)},u.remove=function(){e&&(e.removeEventListener("mouseover",p,!1),e.removeEventListener("mouseout",m,!1))},e&&(e.addEventListener("mouseover",p,!1),e.addEventListener("mouseout",m,!1)),u};t.hoverintent=o,e.exports&&(e.exports=o)}(this)},4196:function(e,t,n){var r;!function(){"use strict";var o=function(){this.init()};o.prototype={init:function(){var e=this||i;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||i;if(e=parseFloat(e),t.ctx||f(),void 0!==e&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,i.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var r=t._howls[n]._getSoundIds(),o=0;o<r.length;o++){var a=t._howls[n]._soundById(r[o]);a&&a._node&&(a._node.volume=a._volume*e)}return t}return t._volume},mute:function(e){var t=this||i;t.ctx||f(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,i.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var r=t._howls[n]._getSoundIds(),o=0;o<r.length;o++){var a=t._howls[n]._soundById(r[o]);a&&a._node&&(a._node.muted=!!e||a._muted)}return t},stop:function(){for(var e=this||i,t=0;t<e._howls.length;t++)e._howls[t].stop();return e},unload:function(){for(var e=this||i,t=e._howls.length-1;t>=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,f()),e},codecs:function(e){return(this||i)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||i;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(e){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||i,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(t){return e}if(!t||"function"!=typeof t.canPlayType)return e;var n=t.canPlayType("audio/mpeg;").replace(/^no$/,""),r=e._navigator?e._navigator.userAgent:"",o=r.match(/OPR\/(\d+)/g),a=o&&parseInt(o[0].split("/")[1],10)<33,s=-1!==r.indexOf("Safari")&&-1===r.indexOf("Chrome"),u=r.match(/Version\/(.*?) /),c=s&&u&&parseInt(u[1],10)<15;return e._codecs={mp3:!(a||!n&&!t.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!n,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(t.canPlayType('audio/wav; codecs="1"')||t.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(t.canPlayType("audio/x-m4b;")||t.canPlayType("audio/m4b;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(c||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(c||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||i;if(!e._audioUnlocked&&e.ctx){e._audioUnlocked=!1,e.autoUnlock=!1,e._mobileUnloaded||44100===e.ctx.sampleRate||(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function(n){for(;e._html5AudioPool.length<e.html5PoolSize;)try{var r=new Audio;r._unlocked=!0,e._releaseHtml5Audio(r)}catch(n){e.noAudio=!0;break}for(var o=0;o<e._howls.length;o++)if(!e._howls[o]._webAudio)for(var i=e._howls[o]._getSoundIds(),a=0;a<i.length;a++){var s=e._howls[o]._soundById(i[a]);s&&s._node&&!s._node._unlocked&&(s._node._unlocked=!0,s._node.load())}e._autoResume();var u=e.ctx.createBufferSource();u.buffer=e._scratchBuffer,u.connect(e.ctx.destination),void 0===u.start?u.noteOn(0):u.start(0),"function"==typeof e.ctx.resume&&e.ctx.resume(),u.onended=function(){u.disconnect(0),e._audioUnlocked=!0,document.removeEventListener("touchstart",t,!0),document.removeEventListener("touchend",t,!0),document.removeEventListener("click",t,!0),document.removeEventListener("keydown",t,!0);for(var n=0;n<e._howls.length;n++)e._howls[n]._emit("unlock")}};return document.addEventListener("touchstart",t,!0),document.addEventListener("touchend",t,!0),document.addEventListener("click",t,!0),document.addEventListener("keydown",t,!0),e}},_obtainHtml5Audio:function(){var e=this||i;if(e._html5AudioPool.length)return e._html5AudioPool.pop();var t=(new Audio).play();return t&&"undefined"!=typeof Promise&&(t instanceof Promise||"function"==typeof t.then)&&t.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(e){var t=this||i;
vendor: 27,755 bytes, line 2
2return e._unlocked&&t._html5AudioPool.push(e),t},_autoSuspend:function(){var e=this;if(e.autoSuspend&&e.ctx&&void 0!==e.ctx.suspend&&i.usingWebAudio){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio)for(var n=0;n<e._howls[t]._sounds.length;n++)if(!e._howls[t]._sounds[n]._paused)return e;return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout(function(){if(e.autoSuspend){e._suspendTimer=null,e.state="suspending";var t=function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())};e.ctx.suspend().then(t,t)}},3e4),e}},_autoResume:function(){var e=this;if(e.ctx&&void 0!==e.ctx.resume&&i.usingWebAudio)return"running"===e.state&&"interrupted"!==e.ctx.state&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):"suspended"===e.state||"running"===e.state&&"interrupted"===e.ctx.state?(e.ctx.resume().then(function(){e.state="running";for(var t=0;t<e._howls.length;t++)e._howls[t]._emit("resume")}),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):"suspending"===e.state&&(e._resumeAfterSuspend=!0),e}};var i=new o,a=function(e){e.src&&0!==e.src.length?this.init(e):console.error("An array of source files must be passed with any new Howl.")};a.prototype={init:function(e){var t=this;return i.ctx||f(),t._autoplay=e.autoplay||!1,t._format="string"!=typeof e.format?e.format:[e.format],t._html5=e.html5||!1,t._muted=e.mute||!1,t._loop=e.loop||!1,t._pool=e.pool||5,t._preload="boolean"!=typeof e.preload&&"metadata"!==e.preload||e.preload,t._rate=e.rate||1,t._sprite=e.sprite||{},t._src="string"!=typeof e.src?e.src:[e.src],t._volume=void 0!==e.volume?e.volume:1,t._xhr={method:e.xhr&&e.xhr.method?e.xhr.method:"GET",headers:e.xhr&&e.xhr.headers?e.xhr.headers:null,withCredentials:!(!e.xhr||!e.xhr.withCredentials)&&e.xhr.withCredentials},t._duration=0,t._state="unloaded",t._sounds=[],t._endTimers={},t._queue=[],t._playLock=!1,t._onend=e.onend?[{fn:e.onend}]:[],t._onfade=e.onfade?[{fn:e.onfade}]:[],t._onload=e.onload?[{fn:e.onload}]:[],t._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],t._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],t._onpause=e.onpause?[{fn:e.onpause}]:[],t._onplay=e.onplay?[{fn:e.onplay}]:[],t._onstop=e.onstop?[{fn:e.onstop}]:[],t._onmute=e.onmute?[{fn:e.onmute}]:[],t._onvolume=e.onvolume?[{fn:e.onvolume}]:[],t._onrate=e.onrate?[{fn:e.onrate}]:[],t._onseek=e.onseek?[{fn:e.onseek}]:[],t._onunlock=e.onunlock?[{fn:e.onunlock}]:[],t._onresume=[],t._webAudio=i.usingWebAudio&&!t._html5,void 0!==i.ctx&&i.ctx&&i.autoUnlock&&i._unlockAudio(),i._howls.push(t),t._autoplay&&t._queue.push({event:"play",action:function(){t.play()}}),t._preload&&"none"!==t._preload&&t.load(),t},load:function(){var e=this,t=null;if(i.noAudio)e._emit("loaderror",null,"No audio support.");else{"string"==typeof e._src&&(e._src=[e._src]);for(var n=0;n<e._src.length;n++){var r,o;if(e._format&&e._format[n])r=e._format[n];else{if("string"!=typeof(o=e._src[n])){e._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}(r=/^data:audio\/([^;,]+);/i.exec(o))||(r=/\.([^.]+)$/.exec(o.split("?",1)[0])),r&&(r=r[1].toLowerCase())}if(r||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),r&&i.codecs(r)){t=e._src[n];break}}if(t)return e._src=t,e._state="loading","https:"===window.location.protocol&&"http:"===t.slice(0,5)&&(e._html5=!0,e._webAudio=!1),new s(e),e._webAudio&&c(e),e;e._emit("loaderror",null,"No codec support for selected audio sources.")}},play:function(e,t){var n=this,r=null;if("number"==typeof e)r=e,e=null;else{if("string"==typeof e&&"loaded"===n._state&&!n._sprite[e])return null;if(void 0===e&&(e="__default",!n._playLock)){for(var o=0,a=0;a<n._sounds.length;a++)n._sounds[a]._paused&&!n._sounds[a]._ended&&(o++,r=n._sounds[a]._id);1===o?e=null:r=null}}var s=r?n._soundById(r):n._inactiveSound();if(!s)return null;if(r&&!e&&(e=s._sprite||"__default"),"loaded"!==n._state){s._sprite=e,s._ended=!1;var u=s._id;return n._queue.push({event:"play",action:function(){n.play(u)}}),u}if(r&&!s._paused)return t||n._loadQueue("play"),s._id;n._webAudio&&i._autoResume();var c=Math.max(0,s._seek>0?s._seek:n._sprite[e][0]/1e3),l=Math.max(0,(n._sprite[e][0]+n._sprite[e][1])/1e3-c),d=1e3*l/Math.abs(s._rate),h=n._sprite[e][0]/1e3,f=(n._sprite[e][0]+n._sprite[e][1])/1e3;s._sprite=e,s._ended=!1;var p=function(){s._paused=!1,s._seek=c,s._start=h,s._stop=f,s._loop=!(!s._loop&&!n._sprite[e][2])};if(!(c>=f)){var m=s._node;if(n._webAudio){var v=function(){n._playLock=!1,p(),n._refreshBuffer(s);var e=s._muted||n._muted?0:s._volume;m.gain.setValueAtTime(e,i.ctx.currentTime),s._playStart=i.ctx.currentTime,void 0===m.bufferSource.start?s._loop?m.bufferSource.noteGrainOn(0,c,86400):m.bufferSource.noteGrainOn(0,c,l):s._loop?m.bufferSource.start(0,c,86400):m.bufferSource.start(0,c,l),d!==1/0&&(n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),d)),t||setTimeout(function(){n._emit("play",s._id),n._loadQueue()},0)};"running"===i.state&&"interrupted"!==i.ctx.state?v():(n._playLock=!0,n.once("resume",v),n._clearTimer(s._id))}else{var g=function(){m.currentTime=c,m.muted=s._muted||n._muted||i._muted||m.muted,m.volume=s._volume*i.volume(),m.playbackRate=s._rate;try{var r=m.play();if(r&&"undefined"!=typeof Promise&&(r instanceof Promise||"function"==typeof r.then)?(n._playLock=!0,p(),r.then(function(){n._playLock=!1,m._unlocked=!0,t?n._loadQueue():n._emit("play",s._id)}).catch(function(){n._playLock=!1,n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),s._ended=!0,s._paused=!0})):t||(n._playLock=!1,p(),n._emit("play",s._id)),m.playbackRate=s._rate,m.paused)return void n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==e||s._loop?n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),d):(n._endTimers[s._id]=function(){n._ended(s),m.removeEventListener("ended",n._endTimers[s._id],!1)},m.addEventListener("ended",n._endTimers[s._id],!1))}catch(e){n._emit("playerror",s._id,e)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===m.src&&(m.src=n._src,m.load());var y=window&&window.ejecta||!m.readyState&&i._navigator.isCocoonJS;if(m.readyState>=3||y)g();else{n._playLock=!0,n._state="loading";var _=function(){n._state="loaded",g(),m.removeEventListener(i._canPlayEvent,_,!1)};m.addEventListener(i._canPlayEvent,_,!1),n._clearTimer(s._id)}}return s._id}n._ended(s)},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),r=0;r<n.length;r++){t._clearTimer(n[r]);var o=t._soundById(n[r]);if(o&&!o._paused&&(o._seek=t.seek(n[r]),o._rateSeek=0,o._paused=!0,t._stopFade(n[r]),o._node))if(t._webAudio){if(!o._node.bufferSource)continue;void 0===o._node.bufferSource.stop?o._node.bufferSource.noteOff(0):o._node.bufferSource.stop(0),t._cleanBuffer(o._node)}else isNaN(o._node.duration)&&o._node.duration!==1/0||o._node.pause();arguments[1]||t._emit("pause",o?o._id:null)}return t},stop:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"stop",action:function(){n.stop(e)}}),n;for(var r=n._getSoundIds(e),o=0;o<r.length;o++){n._clearTimer(r[o]);var i=n._soundById(r[o]);i&&(i._seek=i._start||0,i._rateSeek=0,i._paused=!0,i._ended=!0,n._stopFade(r[o]),i._node&&(n._webAudio?i._node.bufferSource&&(void 0===i._node.bufferSource.stop?i._node.bufferSource.noteOff(0):i._node.bufferSource.stop(0),n._cleanBuffer(i._node)):isNaN(i._node.duration)&&i._node.duration!==1/0||(i._node.currentTime=i._start||0,i._node.pause(),i._node.duration===1/0&&n._clearSound(i._node))),t||n._emit("stop",i._id))}return n},mute:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"mute",action:function(){n.mute(e,t)}}),n;if(void 0===t){if("boolean"!=typeof e)return n._muted;n._muted=e}for(var r=n._getSoundIds(t),o=0;o<r.length;o++){var a=n._soundById(r[o]);a&&(a._muted=e,a._interval&&n._stopFade(a._id),n._webAudio&&a._node?a._node.gain.setValueAtTime(e?0:a._volume,i.ctx.currentTime):a._node&&(a._node.muted=!!i._muted||e),n._emit("mute",a._id))}return n},volume:function(){var e,t,n,r=this,o=arguments;if(0===o.length)return r._volume;if(1===o.length||2===o.length&&void 0===o[1]?r._getSoundIds().indexOf(o[0])>=0?t=parseInt(o[0],10):e=parseFloat(o[0]):o.length>=2&&(e=parseFloat(o[0]),t=parseInt(o[1],10)),!(void 0!==e&&e>=0&&e<=1))return(n=t?r._soundById(t):r._sounds[0])?n._volume:0;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"volume",action:function(){r.volume.apply(r,o)}}),r;void 0===t&&(r._volume=e),t=r._getSoundIds(t);for(var a=0;a<t.length;a++)(n=r._soundById(t[a]))&&(n._volume=e,o[2]||r._stopFade(t[a]),r._webAudio&&n._node&&!n._muted?n._node.gain.setValueAtTime(e,i.ctx.currentTime):n._node&&!n._muted&&(n._node.volume=e*i.volume()),r._emit("volume",n._id));return r},fade:function(e,t,n,r){var o=this;if("loaded"!==o._state||o._playLock)return o._queue.push({event:"fade",action:function(){o.fade(e,t,n,r)}}),o;e=Math.min(Math.max(0,parseFloat(e)),1),t=Math.min(Math.max(0,parseFloat(t)),1),n=parseFloat(n),o.volume(e,r);for(var a=o._getSoundIds(r),s=0;s<a.length;s++){var u=o._soundById(a[s]);if(u){if(r||o._stopFade(a[s]),o._webAudio&&!u._muted){var c=i.ctx.currentTime,l=c+n/1e3;u._volume=e,u._node.gain.setValueAtTime(e,c),u._node.gain.linearRampToValueAtTime(t,l)}o._startFadeInterval(u,e,t,n,a[s],void 0===r)}}return o},_startFadeInterval:function(e,t,n,r,o,i){var a=this,s=t,u=n-t,c=Math.abs(u/.01),l=Math.max(4,c>0?r/c:r),d=Date.now();e._fadeTo=n,e._interval=setInterval(function(){var o=(Date.now()-d)/r;d=Date.now(),s+=u*o,s=Math.round(100*s)/100,s=u<0?Math.max(n,s):Math.min(n,s),a._webAudio?e._volume=s:a.volume(s,e._id,!0),i&&(a._volume=s),(n<t&&s<=n||n>t&&s>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,a.volume(n,e._id),a._emit("fade",e._id))},l)},_stopFade:function(e){var t=this,n=t._soundById(e);return n&&n._interval&&(t._webAudio&&n._node.gain.cancelScheduledValues(i.ctx.currentTime),clearInterval(n._interval),n._interval=null,t.volume(n._fadeTo,e),n._fadeTo=null,t._emit("fade",e)),t},loop:function(){var e,t,n,r=this,o=arguments;if(0===o.length)return r._loop;if(1===o.length){if("boolean"!=typeof o[0])return!!(n=r._soundById(parseInt(o[0],10)))&&n._loop;e=o[0],r._loop=e}else 2===o.length&&(e=o[0],t=parseInt(o[1],10));for(var i=r._getSoundIds(t),a=0;a<i.length;a++)(n=r._soundById(i[a]))&&(n._loop=e,r._webAudio&&n._node&&n._node.bufferSource&&(n._node.bufferSource.loop=e,e&&(n._node.bufferSource.loopStart=n._start||0,n._node.bufferSource.loopEnd=n._stop,r.playing(i[a])&&(r.pause(i[a],!0),r.play(i[a],!0)))));return r},rate:function(){var e,t,n,r=this,o=arguments;if(0===o.length?t=r._sounds[0]._id:1===o.length?r._getSoundIds().indexOf(o[0])>=0?t=parseInt(o[0],10):e=parseFloat(o[0]):2===o.length&&(e=parseFloat(o[0]),t=parseInt(o[1],10)),"number"!=typeof e)return(n=r._soundById(t))?n._rate:r._rate;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"rate",action:function(){r.rate.apply(r,o)}}),r;void 0===t&&(r._rate=e),t=r._getSoundIds(t);for(var a=0;a<t.length;a++)if(n=r._soundById(t[a])){r.playing(t[a])&&(n._rateSeek=r.seek(t[a]),n._playStart=r._webAudio?i.ctx.currentTime:n._playStart),n._rate=e,r._webAudio&&n._node&&n._node.bufferSource?n._node.bufferSource.playbackRate.setValueAtTime(e,i.ctx.currentTime):n._node&&(n._node.playbackRate=e);var s=r.seek(t[a]),u=1e3*((r._sprite[n._sprite][0]+r._sprite[n._sprite][1])/1e3-s)/Math.abs(n._rate);!r._endTimers[t[a]]&&n._paused||(r._clearTimer(t[a]),r._endTimers[t[a]]=setTimeout(r._ended.bind(r,n),u)),r._emit("rate",n._id)}return r},seek:function(){var e,t,n=this,r=arguments;if(0===r.length?n._sounds.length&&(t=n._sounds[0]._id):1===r.length?n._getSoundIds().indexOf(r[0])>=0?t=parseInt(r[0],10):n._sounds.length&&(t=n._sounds[0]._id,e=parseFloat(r[0])):2===r.length&&(e=parseFloat(r[0]),t=parseInt(r[1],10)),void 0===t)return 0;if("number"==typeof e&&("loaded"!==n._state||n._playLock))return n._queue.push({event:"seek",action:function(){n.seek.apply(n,r)}}),n;var o=n._soundById(t);if(o){if(!("number"==typeof e&&e>=0)){if(n._webAudio){var a=n.playing(t)?i.ctx.currentTime-o._playStart:0,s=o._rateSeek?o._rateSeek-o._seek:0;return o._seek+(s+a*Math.abs(o._rate))}return o._node.currentTime}var u=n.playing(t);u&&n.pause(t,!0),o._seek=e,o._ended=!1,n._clearTimer(t),n._webAudio||!o._node||isNaN(o._node.duration)||(o._node.currentTime=e);var c=function(){u&&n.play(t,!0),n._emit("seek",t)};if(u&&!n._webAudio){var l=function(){n._playLock?setTimeout(l,0):c()};setTimeout(l,0)}else c()}return n},playing:function(e){var t=this;if("number"==typeof e){var n=t._soundById(e);return!!n&&!n._paused}for(var r=0;r<t._sounds.length;r++)if(!t._sounds[r]._paused)return!0;return!1},duration:function(e){var t=this,n=t._duration,r=t._soundById(e);return r&&(n=t._sprite[r._sprite][1]/1e3),n},state:function(){return this._state},unload:function(){for(var e=this,t=e._sounds,n=0;n<t.length;n++)t[n]._paused||e.stop(t[n]._id),e._webAudio||(e._clearSound(t[n]._node),t[n]._node.removeEventListener("error",t[n]._errorFn,!1),t[n]._node.removeEventListener(i._canPlayEvent,t[n]._loadFn,!1),t[n]._node.removeEventListener("ended",t[n]._endFn,!1),i._releaseHtml5Audio(t[n]._node)),delete t[n]._node,e._clearTimer(t[n]._id);var r=i._howls.indexOf(e);r>=0&&i._howls.splice(r,1);var o=!0;for(n=0;n<i._howls.length;n++)if(i._howls[n]._src===e._src||e._src.indexOf(i._howls[n]._src)>=0){o=!1;break}return u&&o&&delete u[e._src],i.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,r){var o=this["_on"+e];return"function"==typeof t&&o.push(r?{id:n,fn:t,once:r}:{id:n,fn:t}),this},off:function(e,t,n){var r=this,o=r["_on"+e],i=0;if("number"==typeof t&&(n=t,t=null),t||n)for(i=0;i<o.length;i++){var a=n===o[i].id;if(t===o[i].fn&&a||!t&&a){o.splice(i,1);break}}else if(e)r["_on"+e]=[];else{var s=Object.keys(r);for(i=0;i<s.length;i++)0===s[i].indexOf("_on")&&Array.isArray(r[s[i]])&&(r[s[i]]=[])}return r},once:function(e,t,n){return this.on(e,t,n,1),this},_emit:function(e,t,n){for(var r=this,o=r["_on"+e],i=o.length-1;i>=0;i--)o[i].id&&o[i].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,n)}.bind(r,o[i].fn),0),o[i].once&&r.off(e,o[i].fn,o[i].id));return r._loadQueue(e),r},_loadQueue:function(e){var t=this;if(t._queue.length>0){var n=t._queue[0];n.event===e&&(t._queue.shift(),t._loadQueue()),e||n.action()}return t},_ended:function(e){var t=this,n=e._sprite;if(!t._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop)return setTimeout(t._ended.bind(t,e),100),t;var r=!(!e._loop&&!t._sprite[n][2]);if(t._emit("end",e._id),!t._webAudio&&r&&t.stop(e._id,!0).play(e._id),t._webAudio&&r){t._emit("play",e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=i.ctx.currentTime;var o=1e3*(e._stop-e._start)/Math.abs(e._rate);t._endTimers[e._id]=setTimeout(t._ended.bind(t,e),o)}return t._webAudio&&!r&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,t._clearTimer(e._id),t._cleanBuffer(e._node),i._autoSuspend()),t._webAudio||r||t.stop(e._id,!0),t},_clearTimer:function(e){var t=this;if(t._endTimers[e]){if("function"!=typeof t._endTimers[e])clearTimeout(t._endTimers[e]);else{var n=t._soundById(e);n&&n._node&&n._node.removeEventListener("ended",t._endTimers[e],!1)}delete t._endTimers[e]}return t},_soundById:function(e){for(var t=this,n=0;n<t._sounds.length;n++)if(e===t._sounds[n]._id)return t._sounds[n];return null},_inactiveSound:function(){var e=this;e._drain();for(var t=0;t<e._sounds.length;t++)if(e._sounds[t]._ended)return e._sounds[t].reset();return new s(e)},_drain:function(){var e=this,t=e._pool,n=0,r=0;if(!(e._sounds.length<t)){for(r=0;r<e._sounds.length;r++)e._sounds[r]._ended&&n++;for(r=e._sounds.length-1;r>=0;r--){if(n<=t)return;e._sounds[r]._ended&&(e._webAudio&&e._sounds[r]._node&&e._sounds[r]._node.disconnect(0),e._sounds.splice(r,1),n--)}}},_getSoundIds:function(e){if(void 0===e){for(var t=[],n=0;n<this._sounds.length;n++)t.push(this._sounds[n]._id);return t}return[e]},_refreshBuffer:function(e){return e._node.bufferSource=i.ctx.createBufferSource(),e._node.bufferSource.buffer=u[this._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,i.ctx.currentTime),this},_cleanBuffer:function(e){var t=i._navigator&&i._navigator.vendor.indexOf("Apple")>=0;if(!e.bufferSource)return this;if(i._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),t))try{e.bufferSource.buffer=i._scratchBuffer}catch(e){}return e.bufferSource=null,this},_clearSound:function(e){/MSIE |Trident\//.test(i._navigator&&i._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var s=function(e){this._parent=e,this.init()};s.prototype={init:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++i._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,n=i._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=void 0===i.ctx.createGain?i.ctx.createGainNode():i.ctx.createGain(),e._node.gain.setValueAtTime(n,i.ctx.currentTime),e._node.paused=!0,e._node.connect(i.masterGain)):i.noAudio||(e._node=i._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(i._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener("ended",e._endFn,!1),e._node.src=t._src,e._node.preload=!0===t._preload?"auto":t._preload,e._node.volume=n*i.volume(),e._node.load()),e},reset:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++i._counter,e},_errorListener:function(){var e=this;e._parent._emit("loaderror",e._id,e._node.error?e._node.error.code:0),e._node.removeEventListener("error",e._errorFn,!1)},_loadListener:function(){var e=this,t=e._parent;t._duration=Math.ceil(10*e._node.duration)/10,0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue()),e._node.removeEventListener(i._canPlayEvent,e._loadFn,!1)},_endListener:function(){var e=this,t=e._parent;t._duration===1/0&&(t._duration=Math.ceil(10*e._node.duration)/10,t._sprite.__default[1]===1/0&&(t._sprite.__default[1]=1e3*t._duration),t._ended(e)),e._node.removeEventListener("ended",e._endFn,!1)}};var u={},c=function(e){var t=e._src;if(u[t])return e._duration=u[t].duration,void h(e);if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),r=new Uint8Array(n.length),o=0;o<n.length;++o)r[o]=n.charCodeAt(o);d(r.buffer,e)}else{var i=new XMLHttpRequest;i.open(e._xhr.method,t,!0),i.withCredentials=e._xhr.withCredentials,i.responseType="arraybuffer",e._xhr.headers&&Object.keys(e._xhr.headers).forEach(function(t){i.setRequestHeader(t,e._xhr.headers[t])}),i.onload=function(){var t=(i.status+"")[0];"0"===t||"2"===t||"3"===t?d(i.response,e):e._emit("loaderror",null,"Failed loading audio file with status: "+i.status+".")},i.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete u[t],e.load())},l(i)}},l=function(e){try{e.send()}catch(t){e.onerror()}},d=function(e,t){var n=function(){t._emit("loaderror",null,"Decoding audio data failed.")},r=function(e){e&&t._sounds.length>0?(u[t._src]=e,h(t,e)):n()};"undefined"!=typeof Promise&&1===i.ctx.decodeAudioData.length?i.ctx.decodeAudioData(e).then(r).catch(n):i.ctx.decodeAudioData(e,r,n)},h=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},f=function(){if(i.usingWebAudio){try{"undefined"!=typeof AudioContext?i.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?i.ctx=new webkitAudioContext:i.usingWebAudio=!1}catch(e){i.usingWebAudio=!1}i.ctx||(i.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(i._navigator&&i._navigator.platform),t=i._navigator&&i._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),n=t?parseInt(t[1],10):null;if(e&&n&&n<9){var r=/safari/.test(i._navigator&&i._navigator.userAgent.toLowerCase());i._navigator&&!r&&(i.usingWebAudio=!1)}i.usingWebAudio&&(i.masterGain=void 0===i.ctx.createGain?i.ctx.createGainNode():i.ctx.createGain(),i.masterGain.gain.setValueAtTime(i._muted?0:i._volume,i.ctx.currentTime),i.masterGain.connect(i.ctx.destination)),i._setup()}};void 0===(r=function(){return{Howler:i,Howl:a}}.apply(t,[]))||(e.exports=r),t.Howler=i,t.Howl=a,void 0!==n.g?(n.g.HowlerGlobal=o,n.g.Howler=i,n.g.Howl=a,n.g.Sound=s):"undefined"!=typeof window&&(window.HowlerGlobal=o,window.Howler=i,window.Howl=a,window.Sound=s)}(),function(){"use strict";var e;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){var t=this;if(!t.ctx||!t.ctx.listener)return t;for(var n=t._howls.length-1;n>=0;n--)t._howls[n].stereo(e);return t},HowlerGlobal.prototype.pos=function(e,t,n){var r=this;return r.ctx&&r.ctx.listener?(t="number"!=typeof t?r._pos[1]:t,n="number"!=typeof n?r._pos[2]:n,"number"!=typeof e?r._pos:(r._pos=[e,t,n],void 0!==r.ctx.listener.positionX?(r.ctx.listener.positionX.setTargetAtTime(r._pos[0],Howler.ctx.currentTime,.1),r.ctx.listener.positionY.setTargetAtTime(r._pos[1],Howler.ctx.currentTime,.1),r.ctx.listener.positionZ.setTargetAtTime(r._pos[2],Howler.ctx.currentTime,.1)):r.ctx.listener.setPosition(r._pos[0],r._pos[1],r._pos[2]),r)):r},HowlerGlobal.prototype.orientation=function(e,t,n,r,o,i){var a=this;if(!a.ctx||!a.ctx.listener)return a;var s=a._orientation;return t="number"!=typeof t?s[1]:t,n="number"!=typeof n?s[2]:n,r="number"!=typeof r?s[3]:r,o="number"!=typeof o?s[4]:o,i="number"!=typeof i?s[5]:i,"number"!=typeof e?s:(a._orientation=[e,t,n,r,o,i],void 0!==a.ctx.listener.forwardX?(a.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),a.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),a.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),a.ctx.listener.upX.setTargetAtTime(r,Howler.ctx.currentTime,.1),a.ctx.listener.upY.setTargetAtTime(o,Howler.ctx.currentTime,.1),a.ctx.listener.upZ.setTargetAtTime(i,Howler.ctx.currentTime,.1)):a.ctx.listener.setOrientation(e,t,n,r,o,i),a)},Howl.prototype.init=(e=Howl.prototype.init,function(t){var n=this;return n._orientation=t.orientation||[1,0,0],n._stereo=t.stereo||null,n._pos=t.pos||null,n._pannerAttr={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:360,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:360,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:0,distanceModel:void 0!==t.distanceModel?t.distanceModel:"inverse",maxDistance:void 0!==t.maxDistance?t.maxDistance:1e4,panningModel:void 0!==t.panningModel?t.panningModel:"HRTF",refDistance:void 0!==t.refDistance?t.refDistance:1,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:1},n._onstereo=t.onstereo?[{fn:t.onstereo}]:[],n._onpos=t.onpos?[{fn:t.onpos}]:[],n._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}),Howl.prototype.stereo=function(e,n){var r=this;if(!r._webAudio)return r;if("loaded"!==r._state)return r._queue.push({event:"stereo",action:function(){r.stereo(e,n)}}),r;var o=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===n){if("number"!=typeof e)return r._stereo;r._stereo=e,r._pos=[e,0,0]}for(var i=r._getSoundIds(n),a=0;a<i.length;a++){var s=r._soundById(i[a]);if(s){if("number"!=typeof e)return s._stereo;s._stereo=e,s._pos=[e,0,0],s._node&&(s._pannerAttr.panningModel="equalpower",s._panner&&s._panner.pan||t(s,o),"spatial"===o?void 0!==s._panner.positionX?(s._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),s._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):s._panner.setPosition(e,0,0):s._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),r._emit("stereo",s._id)}}return r},Howl.prototype.pos=function(e,n,r,o){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"pos",action:function(){i.pos(e,n,r,o)}}),i;if(n="number"!=typeof n?0:n,r="number"!=typeof r?-.5:r,void 0===o){if("number"!=typeof e)return i._pos;i._pos=[e,n,r]}for(var a=i._getSoundIds(o),s=0;s<a.length;s++){var u=i._soundById(a[s]);if(u){if("number"!=typeof e)return u._pos;u._pos=[e,n,r],u._node&&(u._panner&&!u._panner.pan||t(u,"spatial"),void 0!==u._panner.positionX?(u._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),u._panner.positionY.setValueAtTime(n,Howler.ctx.currentTime),u._panner.positionZ.setValueAtTime(r,Howler.ctx.currentTime)):u._panner.setPosition(e,n,r)),i._emit("pos",u._id)}}return i},Howl.prototype.orientation=function(e,n,r,o){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"orientation",action:function(){i.orientation(e,n,r,o)}}),i;if(n="number"!=typeof n?i._orientation[1]:n,r="number"!=typeof r?i._orientation[2]:r,void 0===o){if("number"!=typeof e)return i._orientation;i._orientation=[e,n,r]}for(var a=i._getSoundIds(o),s=0;s<a.length;s++){var u=i._soundById(a[s]);if(u){if("number"!=typeof e)return u._orientation;u._orientation=[e,n,r],u._node&&(u._panner||(u._pos||(u._pos=i._pos||[0,0,-.5]),t(u,"spatial")),void 0!==u._panner.orientationX?(u._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),u._panner.orientationY.setValueAtTime(n,Howler.ctx.currentTime),u._panner.orientationZ.setValueAtTime(r,Howler.ctx.currentTime)):u._panner.setOrientation(e,n,r)),i._emit("orientation",u._id)}}return i},Howl.prototype.pannerAttr=function(){var e,n,r,o=this,i=arguments;if(!o._webAudio)return o;if(0===i.length)return o._pannerAttr;if(1===i.length){if("object"!=typeof i[0])return(r=o._soundById(parseInt(i[0],10)))?r._pannerAttr:o._pannerAttr;e=i[0],void 0===n&&(e.pannerAttr||(e.pannerAttr={coneInnerAngle:e.coneInnerAngle,coneOuterAngle:e.coneOuterAngle,coneOuterGain:e.coneOuterGain,distanceModel:e.distanceModel,maxDistance:e.maxDistance,refDistance:e.refDistance,rolloffFactor:e.rolloffFactor,panningModel:e.panningModel}),o._pannerAttr={coneInnerAngle:void 0!==e.pannerAttr.coneInnerAngle?e.pannerAttr.coneInnerAngle:o._coneInnerAngle,coneOuterAngle:void 0!==e.pannerAttr.coneOuterAngle?e.pannerAttr.coneOuterAngle:o._coneOuterAngle,coneOuterGain:void 0!==e.pannerAttr.coneOuterGain?e.pannerAttr.coneOuterGain:o._coneOuterGain,distanceModel:void 0!==e.pannerAttr.distanceModel?e.pannerAttr.distanceModel:o._distanceModel,maxDistance:void 0!==e.pannerAttr.maxDistance?e.pannerAttr.maxDistance:o._maxDistance,refDistance:void 0!==e.pannerAttr.refDistance?e.pannerAttr.refDistance:o._refDistance,rolloffFactor:void 0!==e.pannerAttr.rolloffFactor?e.pannerAttr.rolloffFactor:o._rolloffFactor,panningModel:void 0!==e.pannerAttr.panningModel?e.pannerAttr.panningModel:o._panningModel})}else 2===i.length&&(e=i[0],n=parseInt(i[1],10));for(var a=o._getSoundIds(n),s=0;s<a.length;
2s++)if(r=o._soundById(a[s])){var u=r._pannerAttr;u={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:u.coneInnerAngle,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:u.coneOuterAngle,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:u.coneOuterGain,distanceModel:void 0!==e.distanceModel?e.distanceModel:u.distanceModel,maxDistance:void 0!==e.maxDistance?e.maxDistance:u.maxDistance,refDistance:void 0!==e.refDistance?e.refDistance:u.refDistance,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:u.rolloffFactor,panningModel:void 0!==e.panningModel?e.panningModel:u.panningModel};var c=r._panner;c||(r._pos||(r._pos=o._pos||[0,0,-.5]),t(r,"spatial"),c=r._panner),c.coneInnerAngle=u.coneInnerAngle,c.coneOuterAngle=u.coneOuterAngle,c.coneOuterGain=u.coneOuterGain,c.distanceModel=u.distanceModel,c.maxDistance=u.maxDistance,c.refDistance=u.refDistance,c.rolloffFactor=u.rolloffFactor,c.panningModel=u.panningModel}return o},Sound.prototype.init=function(e){return function(){var t=this,n=t._parent;t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,e.call(this),t._stereo?n.stereo(t._stereo):t._pos&&n.pos(t._pos[0],t._pos[1],t._pos[2],t._id)}}(Sound.prototype.init),Sound.prototype.reset=function(e){return function(){var t=this,n=t._parent;return t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,t._stereo?n.stereo(t._stereo):t._pos?n.pos(t._pos[0],t._pos[1],t._pos[2],t._id):t._panner&&(t._panner.disconnect(0),t._panner=void 0,n._refreshBuffer(t)),e.call(this)}}(Sound.prototype.reset);var t=function(e,t){"spatial"===(t=t||"spatial")?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,void 0!==e._panner.positionX?(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)):e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]),void 0!==e._panner.orientationX?(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime)):e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2])):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}}()},7510:function(e){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var o in r)t.call(r,o)&&(e[o]=r[o])}return e};var t=Object.prototype.hasOwnProperty},9306:function(e,t,n){"use strict";var r=n(4901),o=n(6823),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a function")}},6469:function(e,t,n){"use strict";var r=n(8227),o=n(2360),i=n(4913).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},679:function(e,t,n){"use strict";var r=n(1625),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new o("Incorrect invocation")}},8551:function(e,t,n){"use strict";var r=n(34),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},9617:function(e,t,n){"use strict";var r=n(5397),o=n(5610),i=n(6198),a=function(e){return function(t,n,a){var s=r(t),u=i(s);if(0===u)return!e&&-1;var c,l=o(a,u);if(e&&n!=n){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},6319:function(e,t,n){"use strict";var r=n(8551),o=n(9539);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},2195:function(e,t,n){"use strict";var r=n(9504),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}}
vendor: 20,912 bytes, line 2
2,6955:function(e,t,n){"use strict";var r=n(2140),o=n(4901),i=n(2195),a=n(8227)("toStringTag"),s=Object,u="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:u?i(t):"Object"===(r=i(t))&&o(t.callee)?"Arguments":r}},7740:function(e,t,n){"use strict";var r=n(9297),o=n(5031),i=n(7347),a=n(4913);e.exports=function(e,t,n){for(var s=o(t),u=a.f,c=i.f,l=0;l<s.length;l++){var d=s[l];r(e,d)||n&&r(n,d)||u(e,d,c(t,d))}}},2211:function(e,t,n){"use strict";var r=n(9039);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},2529:function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},6699:function(e,t,n){"use strict";var r=n(3724),o=n(4913),i=n(6980);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},6980:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4659:function(e,t,n){"use strict";var r=n(3724),o=n(4913),i=n(6980);e.exports=function(e,t,n){r?o.f(e,t,i(0,n)):e[t]=n}},2106:function(e,t,n){"use strict";var r=n(283),o=n(4913);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},6840:function(e,t,n){"use strict";var r=n(4901),o=n(4913),i=n(283),a=n(9433);e.exports=function(e,t,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&i(n,c,s),s.global)u?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6279:function(e,t,n){"use strict";var r=n(6840);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},9433:function(e,t,n){"use strict";var r=n(4576),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},3724:function(e,t,n){"use strict";var r=n(9039);e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:function(e,t,n){"use strict";var r=n(4576),o=n(34),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},8727:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839:function(e,t,n){"use strict";var r=n(4576).navigator,o=r&&r.userAgent;e.exports=o?String(o):""},9519:function(e,t,n){"use strict";var r,o,i=n(4576),a=n(2839),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},6518:function(e,t,n){"use strict";var r=n(4576),o=n(7347).f,i=n(6699),a=n(6840),s=n(9433),u=n(7740),c=n(2796);e.exports=function(e,t){var n,l,d,h,f,p=e.target,m=e.global,v=e.stat;if(n=m?r:v?r[p]||s(p,{}):r[p]&&r[p].prototype)for(l in t){if(h=t[l],d=e.dontCallGetSet?(f=o(n,l))&&f.value:n[l],!c(m?l:p+(v?".":"#")+l,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;u(h,d)}(e.sham||d&&d.sham)&&i(h,"sham",!0),a(n,l,h,e)}}},9039:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},6080:function(e,t,n){"use strict";var r=n(7476),o=n(9306),i=n(616),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},616:function(e,t,n){"use strict";var r=n(9039);e.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},9565:function(e,t,n){"use strict";var r=n(616),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},350:function(e,t,n){"use strict";var r=n(3724),o=n(9297),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},7476:function(e,t,n){"use strict";var r=n(2195),o=n(9504);e.exports=function(e){if("Function"===r(e))return o(e)}},9504:function(e,t,n){"use strict";var r=n(616),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},7751:function(e,t,n){"use strict";var r=n(4576),o=n(4901);e.exports=function(e,t){return arguments.length<2?(n=r[e],o(n)?n:void 0):r[e]&&r[e][t];var n}},1767:function(e){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},8563:function(e,t,n){"use strict";var r=n(9565),o=n(4901),i=n(8551),a=n(6823),s=n(3085),u=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(o(n))return i(r(n,e));throw new u(a(e)+" is not iterable")}},3085:function(e,t,n){"use strict";var r=n(2195),o=n(4117),i=n(5966),a=n(8227)("iterator"),s=Array.prototype;e.exports=function(e){if(!o(e))return i(e,a)||i(e,"@@iterator")||("Arguments"===r(e)?s[a]:void 0)}},5966:function(e,t,n){"use strict";var r=n(9306),o=n(4117);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},4576:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(e,t,n){"use strict";var r=n(9504),o=n(8981),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},421:function(e){"use strict";e.exports={}},397:function(e,t,n){"use strict";var r=n(7751);e.exports=r("document","documentElement")},5917:function(e,t,n){"use strict";var r=n(3724),o=n(9039),i=n(4055);e.exports=!r&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},7055:function(e,t,n){"use strict";var r=n(9504),o=n(9039),i=n(2195),a=Object,s=r("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?s(e,""):a(e)}:a},3706:function(e,t,n){"use strict";var r=n(9504),o=n(4901),i=n(7629),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},1181:function(e,t,n){"use strict";var r,o,i,a=n(8622),s=n(4576),u=n(34),c=n(6699),l=n(9297),d=n(7629),h=n(6119),f=n(421),p="Object already initialized",m=s.TypeError,v=s.WeakMap;if(a||d.state){var g=d.state||(d.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new m(p);return t.facade=e,g.set(e,t),t},o=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=h("state");f[y]=!0,r=function(e,t){if(l(e,y))throw new m(p);return t.facade=e,c(e,y,t),t},o=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}}}},4209:function(e,t,n){"use strict";var r=n(8227),o=n(6269),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},4376:function(e,t,n){"use strict";var r=n(2195);e.exports=Array.isArray||function(e){return"Array"===r(e)}},4901:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},2796:function(e,t,n){"use strict";var r=n(9039),o=n(4901),i=/#|\.prototype\./,a=function(e,t){var n=u[s(e)];return n===l||n!==c&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},4117:function(e){"use strict";e.exports=function(e){return null==e}},34:function(e,t,n){"use strict";var r=n(4901);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},6395:function(e){"use strict";e.exports=!1},5810:function(e,t,n){"use strict";var r=n(34),o=n(1181).get;e.exports=function(e){if(!r(e))return!1;var t=o(e);return!!t&&"RawJSON"===t.type}},757:function(e,t,n){"use strict";var r=n(7751),o=n(4901),i=n(1625),a=n(7040),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},2652:function(e,t,n){"use strict";var r=n(6080),o=n(9565),i=n(8551),a=n(6823),s=n(4209),u=n(6198),c=n(1625),l=n(8563),d=n(3085),h=n(9539),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;e.exports=function(e,t,n){var v,g,y,_,b,w,S,A=n&&n.that,E=!(!n||!n.AS_ENTRIES),T=!(!n||!n.IS_RECORD),x=!(!n||!n.IS_ITERATOR),L=!(!n||!n.INTERRUPTED),I=r(t,A),k=function(e){var t=v;return v=void 0,t&&h(t,"normal"),new p(!0,e)},C=function(e){return E?(i(e),L?I(e[0],e[1],k):I(e[0],e[1])):L?I(e,k):I(e)};if(T)v=e.iterator;else if(x)v=e;else{if(!(g=d(e)))throw new f(a(e)+" is not iterable");if(s(g)){for(y=0,_=u(e);_>y;y++)if((b=C(e[y]))&&c(m,b))return b;return new p(!1)}v=l(e,g)}for(w=T?e.next:v.next;!(S=o(w,v)).done;){var P=S.value;try{b=C(P)}catch(e){if(!v)throw e;h(v,"throw",e)}if("object"==typeof b&&b&&c(m,b))return b}return new p(!1)}},6859:function(e){"use strict";e.exports=function(e){e.iterator=e.next=e.nextHandler=e.mapper=e.predicate=e.inner=e.iterables=e.iters=e.openIters=e.padding=e.finishResults=e.buffer=null}},1385:function(e,t,n){"use strict";var r=n(9539);e.exports=function(e,t,n){for(var o=e.length-1;o>=0;o--)if(void 0!==e[o])try{n=r(e[o].iterator,t,n)}catch(e){t="throw",n=e}if("throw"===t)throw n;return n}},9539:function(e,t,n){"use strict";var r=n(9565),o=n(8551),i=n(5966);e.exports=function(e,t,n){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return o(a),n}},9462:function(e,t,n){"use strict";var r=n(9565),o=n(2360),i=n(6699),a=n(6279),s=n(8227),u=n(1181),c=n(5966),l=n(7657).IteratorPrototype,d=n(2529),h=n(9539),f=n(1385),p=n(6859),m=s("toStringTag"),v="IteratorHelper",g="WrapForValidIterator",y="normal",_="throw",b=u.set,w=function(e){var t=u.getterFor(e?g:v);return a(o(l),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return d(void 0,!0);try{var r=n.nextHandler();return n.done&&p(n),n.returnHandlerResult?r:d(r,n.done)}catch(e){throw n.done=!0,p(n),e}},return:function(){var n=t(this),o=n.iterator,i=n.inner,a=n.openIters,s=n.done;if(n.done=!0,e){var u=c(o,"return");return u?r(u,o):d(void 0,!0)}if(p(n),s)return d(void 0,!0);if(i)try{h(i.iterator,y)}catch(e){return h(o,_,e)}if(a)try{f(a,y)}catch(e){if(o)return h(o,_,e);throw e}return o&&h(o,y),d(void 0,!0)}})},S=w(!0),A=w(!1);i(A,m,"Iterator Helper"),e.exports=function(e,t,n){var r=function(r,o){o?(o.iterator=r.iterator,o.next=r.next):o=r,o.type=t?g:v,o.returnHandlerResult=!!n,o.nextHandler=e,o.counter=0,o.done=!1,b(this,o)};return r.prototype=t?S:A,r}},684:function(e){"use strict";e.exports=function(e,t){var n="function"==typeof Iterator&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(e){return!0}}},4549:function(e,t,n){"use strict";var r=n(4576);e.exports=function(e,t){var n=r.Iterator,o=n&&n.prototype,i=o&&o[e],a=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){a=!0}},-1)}catch(e){e instanceof t||(a=!1)}if(!a)return i}},7657:function(e,t,n){"use strict";var r,o,i,a=n(9039),s=n(4901),u=n(34),c=n(2360),l=n(2787),d=n(6840),h=n(8227),f=n(6395),p=h("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):m=!0),!u(r)||a(function(){var e={};return r[p].call(e)!==e})?r={}:f&&(r=c(r)),s(r[p])||d(r,p,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},6269:function(e){"use strict";e.exports=Object.create?Object.create(null):{}},6198:function(e,t,n){"use strict";var r=n(8014);e.exports=function(e){return r(e.length)}},283:function(e,t,n){"use strict";var r=n(9504),o=n(9039),i=n(4901),a=n(9297),s=n(3724),u=n(350).CONFIGURABLE,c=n(3706),l=n(1181),d=l.enforce,h=l.get,f=String,p=Object.defineProperty,m=r("".slice),v=r("".replace),g=r([].join),y=s&&!o(function(){return 8!==p(function(){},"length",{value:8}).length}),_=String(String).split("String"),b=e.exports=function(e,t,n){"Symbol("===m(f(t),0,7)&&(t="["+v(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return a(r,"source")||(r.source=g(_,"string"==typeof t?t:"")),e};Function.prototype.toString=b(function(){return i(this)&&h(this).source||c(this)},"toString")},741:function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},7819:function(e,t,n){"use strict";var r=n(9039);e.exports=!r(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})},2360:function(e,t,n){"use strict";var r,o=n(8551),i=n(6801),a=n(8727),s=n(421),u=n(397),c=n(4055),l=n(6119),d="prototype",h="script",f=l("IE_PROTO"),p=function(){},m=function(e){return"<"+h+">"+e+"</"+h+">"},v=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;g="undefined"!=typeof document?document.domain&&r?v(r):(t=c("iframe"),n="java"+h+":",t.style.display="none",u.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):v(r);for(var o=a.length;o--;)delete g[d][a[o]];return g()};s[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[d]=o(e),n=new p,p[d]=null,n[f]=e):n=g(),void 0===t?n:i.f(n,t)}},6801:function(e,t,n){"use strict";var r=n(3724),o=n(8686),i=n(4913),a=n(8551),s=n(5397),u=n(1072);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=u(t),c=o.length,l=0;c>l;)i.f(e,n=o[l++],r[n]);return e}},4913:function(e,t,n){"use strict";var r=n(3724),o=n(5917),i=n(8686),a=n(8551),s=n(6969),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",f="writable";t.f=r?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=l(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:d in n?n[d]:r[d],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},7347:function(e,t,n){"use strict";var r=n(3724),o=n(9565),i=n(8773),a=n(6980),s=n(5397),u=n(6969),c=n(9297),l=n(5917),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=u(t),l)try{return d(e,t)}catch(e){}if(c(e,t))return a(!o(i.f,e,t),e[t])}},8480:function(e,t,n){"use strict";var r=n(1828),o=n(8727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},3717:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},2787:function(e,t,n){"use strict";var r=n(9297),o=n(4901),i=n(8981),a=n(6119),s=n(2211),u=a("IE_PROTO"),c=Object,l=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(r(t,u))return t[u];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof c?l:null}},1625:function(e,t,n){"use strict";var r=n(9504);e.exports=r({}.isPrototypeOf)},1828:function(e,t,n){"use strict";var r=n(9504),o=n(9297),i=n(5397),a=n(9617).indexOf,s=n(421),u=r([].push);e.exports=function(e,t){var n,r=i(e),c=0,l=[];for(n in r)!o(s,n)&&o(r,n)&&u(l,n);for(;t.length>c;)o(r,n=t[c++])&&(~a(l,n)||u(l,n));return l}},1072:function(e,t,n){"use strict";var r=n(1828),o=n(8727);e.exports=Object.keys||function(e){return r(e,o)}},8773:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},4270:function(e,t,n){"use strict";var r=n(9565),o=n(4901),i=n(34),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},5031:function(e,t,n){"use strict";var r=n(7751),o=n(9504),i=n(8480),a=n(3717),s=n(8551),u=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?u(t,n(e)):t}},8235:function(e,t,n){"use strict";var r=n(9504),o=n(9297),i=SyntaxError,a=parseInt,s=String.fromCharCode,u=r("".charAt),c=r("".slice),l=r(/./.exec),d={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},h=/^[\da-f]{4}$/i,f=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var n=!0,r="";t<e.length;){var p=u(e,t);if("\\"===p){var m=c(e,t,t+2);if(o(d,m))r+=d[m],t+=2;else{if("\\u"!==m)throw new i('Unknown escape sequence: "'+m+'"');var v=c(e,t+=2,t+4);if(!l(h,v))throw new i("Bad Unicode escape at: "+t);r+=s(a(v,16)),t+=4}}else{if('"'===p){n=!1,t++;break}if(l(f,p))throw new i("Bad control character in string literal at: "+t);r+=p,t++}}if(n)throw new i("Unterminated string at: "+t);return{value:r,end:t}}},7750:function(e,t,n){"use strict";var r=n(4117),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},6119:function(e,t,n){"use strict";var r=n(5745),o=n(3392),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},7629:function(e,t,n){"use strict";var r=n(6395),o=n(4576),i=n(9433),a="__core-js_shared__",s=e.exports=o[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.50.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(e,t,n){"use strict";var r=n(7629),o=Object.create||Object;e.exports=function(e,t){return r[e]||(r[e]=t||o(null))}},4495:function(e,t,n){"use strict";var r=n(9519),o=n(9039),i=n(4576).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},1240:function(e,t,n){"use strict";var r=n(9504);e.exports=r(1.1.valueOf)},5610:function(e,t,n){"use strict";var r=n(1291),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},5397:function(e,t,n){"use strict";var r=n(7055),o=n(7750);e.exports=function(e){return r(o(e))}},1291:function(e,t,n){"use strict";var r=n(741);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8014:function(e,t,n){"use strict";var r=n(1291),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},8981:function(e,t,n){"use strict";var r=n(7750),o=Object;e.exports=function(e){return o(r(e))}},2777:function(e,t,n){"use strict";var r=n(9565),o=n(34),i=n(757),a=n(5966),s=n(4270),u=n(8227),c=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,u=a(e,l);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!o(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},6969:function(e,t,n){"use strict";var r=n(2777),o=n(757);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},2140:function(e,t,n){"use strict";var r={};r[n(8227)("toStringTag")]="z",e.exports="[object z]"===String(r)},655:function(e,t,n){"use strict";var r=n(6955),o=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},6823:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},3392:function(e,t,n){"use strict";var r=n(9504),o=0,i=Math.random(),a=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},7040:function(e,t,n){"use strict";var r=n(4495);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(e,t,n){"use strict";var r=n(3724),o=n(9039);e.exports=r&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8622:function(e,t,n){"use strict";var r=n(4576),o=n(4901),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},8227:function(e,t,n){"use strict";var r=n(4576),o=n(5745),i=n(9297),a=n(3392),s=n(4495),u=n(7040),c=r.Symbol,l=o("wks"),d=u?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return i(l,e)||(l[e]=s&&i(c,e)?c[e]:d("Symbol."+e)),l[e]}},4423:function(e,t,n){"use strict";var r=n(6518),o=n(9617).includes,i=n(9039),a=n(6469),s=i(function(){return!Array(1).includes()}
2),u=i(function(){return[,1].includes(void 0,1)});r({target:"Array",proto:!0,forced:s||u},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},8111:function(e,t,n){"use strict";var r=n(6518),o=n(4576),i=n(679),a=n(8551),s=n(4901),u=n(2787),c=n(2106),l=n(4659),d=n(9039),h=n(9297),f=n(8227),p=n(7657).IteratorPrototype,m=n(3724),v=n(6395),g="constructor",y="Iterator",_=f("toStringTag"),b=TypeError,w=o[y],S=v||!s(w)||w.prototype!==p||!d(function(){w({})}),A=function(){if(i(this,p),u(this)===p)throw new b("Abstract class Iterator not directly constructable")},E=function(e,t){m?c(p,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===p)throw new b("You can't redefine this property");h(this,e)?this[e]=t:l(this,e,t)}}):p[e]=t};h(p,_)||E(_,y),!S&&h(p,g)&&p[g]!==Object||E(g,A),A.prototype=p,r({global:!0,constructor:!0,forced:S},{Iterator:A})},2489:function(e,t,n){"use strict";var r=n(6518),o=n(9565),i=n(9306),a=n(8551),s=n(1767),u=n(9462),c=n(6319),l=n(6395),d=n(9539),h=n(684),f=n(4549),p=!l&&!h("filter",function(){}),m=!l&&!p&&f("filter",TypeError),v=l||p||m,g=u(function(){for(var e,t,n=this.iterator,r=this.predicate,i=this.next;;){if(e=a(o(i,n)),this.done=!!e.done)return;if(t=e.value,c(n,r,[t,this.counter++],!0))return t}});r({target:"Iterator",proto:!0,real:!0,forced:v},{filter:function(e){a(this);try{i(e)}catch(e){d(this,"throw",e)}return m?o(m,this,e):new g(s(this),{predicate:e})}})},116:function(e,t,n){"use strict";var r=n(6518),o=n(9565),i=n(2652),a=n(9306),s=n(8551),u=n(1767),c=n(9539),l=n(4549)("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:l},{find:function(e){s(this);try{a(e)}catch(e){c(this,"throw",e)}if(l)return o(l,this,e);var t=u(this),n=0;return i(t,function(t,r){if(e(t,n++))return r(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},7588:function(e,t,n){"use strict";var r=n(6518),o=n(9565),i=n(2652),a=n(9306),s=n(8551),u=n(1767),c=n(9539),l=n(4549)("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:l},{forEach:function(e){s(this);try{a(e)}catch(e){c(this,"throw",e)}if(l)return o(l,this,e);var t=u(this),n=0;i(t,function(t){e(t,n++)},{IS_RECORD:!0})}})},3579:function(e,t,n){"use strict";var r=n(6518),o=n(9565),i=n(2652),a=n(9306),s=n(8551),u=n(1767),c=n(9539),l=n(4549)("some",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:l},{some:function(e){s(this);try{a(e)}catch(e){c(this,"throw",e)}if(l)return o(l,this,e);var t=u(this),n=0;return i(t,function(t,r){if(e(t,n++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},3110:function(e,t,n){"use strict";var r=n(6518),o=n(7751),i=n(9565),a=n(9504),s=n(9039),u=n(4376),c=n(4901),l=n(34),d=n(2360),h=n(5810),f=n(757),p=n(2195),m=n(1240),v=n(9617).includes,g=n(9297),y=n(655),_=n(8235),b=n(3392),w=n(4495),S=n(7819),A=String,E=TypeError,T=o("JSON","stringify"),x=o("BigInt"),L=a("".valueOf),I=a((!0).valueOf),k=x&&a(x.prototype.valueOf),C=a(/./.exec),P=a("".charAt),O=a("".charCodeAt),M=a("".replace),N=a("".slice),D=a([].push),B=a([].pop),H=a(1.1.toString),q=/[\uD800-\uDFFF]/g,R=/^[\uD800-\uDBFF]$/,F=/^[\uDC00-\uDFFF]$/,j=/^\d+$/,$=b(),U=b(),V=b(),z=$.length,G=U.length,W=!w||s(function(){var e=o("Symbol")("stringify detection");return"[null]"!==T([e])||"{}"!==T({a:e})||"{}"!==T(Object(e))}),Y=s(function(){return'"\\udf06\\ud834"'!==T("\udf06\ud834")||'"\\udead"'!==T("\udead")}),X=S?o("JSON","isRawJSON"):h,Q=W?function(e,t,n){return T(e,function(e,n){var r=i(t,this,e,n);if(!f(r))return r},n)}:T,J=function(e,t,n){var r=P(n,t-1),o=P(n,t+1);return C(R,e)&&!C(F,o)||C(F,e)&&!C(R,r)?"\\u"+H(O(e,0),16):e},K=function(e,t){try{return e(t),!0}catch(e){return!1}},Z=function(e,t){return{toJSON:function(){var n=e[t];if(l(n)||"bigint"==typeof n){var r=n.toJSON;c(r)&&(n=i(r,n,t))}return n}}};T&&r({target:"JSON",stat:!0,arity:3,forced:W||Y||!S},{stringify:function(e,t,n){var r,o=c(t)?t:void 0,a=o?void 0:function(e){if(u(e)){for(var t=e.length,n=[],r=d(null),o=0;o<t;o++){var i,a=e[o];if("string"==typeof a)i=a;else{if("number"!=typeof a&&"Number"!==p(a)&&"String"!==p(a))continue;i=y(a)}g(r,i)||(r[i]=!0,D(n,i))}return n}}(t),s=a&&function(e){for(var t=0,n=e.length;t<n;t++)if(C(j,e[t]))return U;return""}(a),h=[],f=[],b=[],w=!1,T=!0,x=Q(e,function(e,t){if(e=A(e),a){if(e===V)return B(f),void(r=B(b));if(T)T=!1;else if(this!==r&&!u(this)&&!v(a,e))return}else o&&(t=i(o,this,e,t));if(X(t))return S?t:(w=!0,$+(D(h,t.rawJSON)-1));if(a&&function(e){if(!l(e)||c(e)||u(e))return!1;try{return!function(e){var t=p(e);return"Number"===t&&K(m,e)||"String"===t&&K(L,e)||"Boolean"===t&&K(I,e)||!!k&&"BigInt"===t&&K(k,e)}(e)}catch(e){return!0}}(t)){if(v(f,t))throw new E("Converting circular structure to JSON");var n=function(e,t,n){for(var r=d(null),o=0,i=t.length;o<i;o++){var a=t[o];r[n+a]=Z(e,a)}return r[V]=null,r}(t,a,s);return D(f,t),D(b,r),r=n,s&&(w=!0),n}return t},n);if("string"!=typeof x)return x;if(Y&&(x=M(x,q,J)),!w)return x;for(var O="",H=x.length,R=0;R<H;R++){var F=P(x,R);if('"'===F){var W=_(x,++R).end-1,ee=N(x,R,W);N(ee,0,z)===$?O+=h[N(ee,z)]:N(ee,0,G)===U?O+='"'+N(ee,G)+'"':O+='"'+ee+'"',R=W}else O+=F}return O}})},8992:function(e,t,n){"use strict";n(8111)},4520:function(e,t,n){"use strict";n(2489)},2577:function(e,t,n){"use strict";n(116)},3949:function(e,t,n){"use strict";n(7588)},7550:function(e,t,n){"use strict";n(3579)}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}
2o.m=n,o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=function(e){return Promise.all(Object.keys(o.f).reduce(function(t,n){return o.f[n](e,t),t},[]))},o.u=function(e){return"chunks/"+({93:"youtubePlayer",120:"searchFilters",131:"accordion",168:"amountSelector",216:"listLoadMore",235:"searchResultsModule",240:"gbhEmailInput",265:"videoSeasonFilter",321:"transcript",361:"carouselList",370:"stateSelect",410:"sectionNavigation",436:"tvShowHead",477:"liveblog",513:"gbhFormRecaptcha",520:"blogLoadMore",575:"tabs",625:"streamOverlay",662:"pledgePopup",683:"html5AudioProgressBar",684:"gbhSelect",698:"psToggler",745:"checkboxGroup",786:"leavingSiteInterstitial",811:"gbhTextInput",835:"recaptchaSubscribeForm",897:"carousel",918:"gbhForm",937:"html5VideoPlayer",942:"gbhFormSubmit"}[e]||e)+"."+{93:"c07170f778354ed7d9ff",120:"e21dd56113386016c9e1",131:"12e7dd2e46cdf2fbedc1",168:"f7ec198e038ee50d34ad",216:"f38aea07b006b1f03772",235:"ddd903f8b57c8b52c0d2",240:"eb0ef623f2d2c04b703c",265:"1f68f271d1547e7ff362",321:"7010125bd94775bb71f5",361:"e1fe98410a4995adf54a",370:"89e061c6fe0b9b475cf3",410:"725ba861c53b6ed131e1",436:"6b9f60b941b7fc0a7fa8",454:"92aec4765323d4cd56b6",477:"ee49075b62cf70560df9",513:"c74b1b955075b0dfd150",520:"9c72a0bbeff0622195ff",522:"633535cd61eaef356e14",575:"7706d1ac8cee5fa9915b",625:"aa532f2931e8d8bf84cd",662:"24173cfb37bda9cc0ffe",670:"9522dff7bbd8f49e0e2d",683:"355670723d08e7c67fa3",684:"d5838f8057433c01a37b",698:"c2932ec1fd3705650c8f",745:"11efceb39a40dc0def7e",786:"1e9377afbabf255ca417",811:"aa9f557926e2b37df981",835:"06049cda066b241bd4be",897:"195c8108bc24c3acfe2f",918:"b0a31de1b56798f0a89e",937:"484eae95c6b5e619f4bf",942:"3cb21f91424212169b97"}[e]+".js"},o.miniCssF=function(e){},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e={},t="gbh-theme-falcon:",o.l=function(n,r,i,a){if(e[n])e[n].push(r);else{var s,u;if(void 0!==i)for(var c=document.getElementsByTagName("script"),l=0;l<c.length;l++){var d=c[l];if(d.getAttribute("src")==n||d.getAttribute("data-webpack")==t+i){s=d;break}}s||(u=!0,(s=document.createElement("script")).charset="utf-8",o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+i),s.src=n),e[n]=[r];var h=function(t,r){s.onerror=s.onload=null,clearTimeout(f);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(function(e){return e(r)}),t)return t(r)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),u&&document.head.appendChild(s)}},o.p="/styleguide/",function(){var e={1:0};o.f.j=function(t,n){var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(function(n,o){r=e[t]=[n,o]});n.push(r[2]=i);var a=o.p+o.u(t),s=new Error;o.l(a,function(n){if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,r[1](s)}},"chunk-"+t,t)}};var t=function(t,n){var r,i,a=n[0],s=n[1],u=n[2],c=0;if(a.some(function(t){return 0!==e[t]})){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);u&&u(o)}for(t&&t(n);c<a.length;c++)i=a[c],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkgbh_theme_falcon=self.webpackChunkgbh_theme_falcon||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}(),function(){"use strict";function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.apply(this,arguments)}function t(e,t){const n=t.width,r=t.height,o=t.inlineSize,i=t.blockSize;switch(e){case 1:return null!=n?{type:3,value:n,unit:"px"}:{type:1};case 3:return null!=o?{type:3,value:o,unit:"px"}:{type:1};case 2:return null!=r?{type:3,value:r,unit:"px"}:{type:1};case 4:return null!=i?{type:3,value:i,unit:"px"}:{type:1};case 5:return null!=n&&null!=r&&r>0?{type:2,value:n/r}:{type:1};case 6:return null!=n&&null!=r?{type:4,value:r>=n?"portrait":"landscape"}:{type:1}}}function n(e,t){switch(e.type){case 1:case 2:case 3:case 4:return l(e,t);case 5:{const n=t.sizeFeatures.get(e.feature);return null==n?{type:1}:n}case 6:return e.value}}function r(e){return{type:5,value:e}}function i(e,t,n){return r(function(e,t,n){switch(n){case 1:return e===t;case 2:return e>t;case 3:return e>=t;case 4:return e<t;case 5:return e<=t}}(e,t,n))}function a(e,t,n){return null==e?t:null==t?e:n(e,t)}function s(e,t){switch(e){case"cqw":return t.cqw;case"cqh":return t.cqh;case"cqi":return 0===t.writingAxis?t.cqw:t.cqh;case"cqb":return 1===t.writingAxis?t.cqw:t.cqh;case"cqmin":return a(s("cqi",t),s("cqb",t),Math.min);case"cqmax":return a(s("cqi",t),s("cqb",t),Math.max)}}function u(e,{treeContext:t}){switch(e.unit){case"px":return e.value;case"rem":return e.value*t.rootFontSize;case"em":return e.value*t.fontSize;case"cqw":case"cqh":case"cqi":case"cqb":case"cqmin":case"cqmax":return a(e.value,s(e.unit,t),(e,t)=>e*t)}return null}function c(e,t){switch(e.type){case 2:return 0===e.value?0:null;case 3:return u(e,t)}return null}function l(e,t){switch(e.type){case 4:return function(e,t){const o=n(e.left,t),a=n(e.right,t),s=e.operator;if(4===o.type&&4===a.type||5===o.type&&5===a.type)return function(e,t,n){return 1===n?r(e.value===t.value):{type:1}}(o,a,s);if(3===o.type||3===a.type){const e=c(o,t),n=c(a,t);
vendor: 27,705 bytes, line 2
2if(null!=e&&null!=n)return i(e,n,s)}else if(2===o.type&&2===a.type)return i(o.value,a.value,s);return{type:1}}(e,t);case 2:return function(e,t){const n=l(e.left,t);return 5!==n.type||!0!==n.value?n:l(e.right,t)}(e,t);case 3:return function(e,t){const n=l(e.left,t);return 5===n.type&&!0===n.value?n:l(e.right,t)}(e,t);case 1:{const n=l(e.value,t);return 5===n.type?{type:5,value:!n.value}:{type:1}}case 5:return d(n(e,t));case 6:return d(e.value)}}function d(e){switch(e.type){case 5:return e;case 2:case 3:return{type:5,value:e.value>0}}return{type:1}}o(3842);const h=Array.from({length:4},()=>Math.floor(256*Math.random()).toString(16)).join(""),f=S("container"),p=S("container-type"),m=S("container-name"),v=`data-cqs-${h}`,g=`data-cqc-${h}`,y=S("cqw"),_=S("cqh"),b=S("cqi"),w=S("cqb");function S(e){return`--cq-${e}-${h}`}const A=Symbol();function E(e,t){const n={value:t,errorIndices:[],index:-1,at(r){const o=n.index+r;return o>=e.length?t:e[o]},consume:e=>(n.index+=e,n.value=n.at(0),n.value),reconsume(){n.index-=1},error(){n.errorIndices.push(n.index)}};return n}function T(e){return E(e,{type:0})}function*x(e){const t=[];let n=!1;for(const r of e){const e=r.codePointAt(0);n&&10!==e&&(n=!1,t.push(10)),0===e||e>=55296&&e<=57343?t.push(65533):13===e?n=!0:t.push(e)}const r=E(t,-1),{at:o,consume:i,error:a,reconsume:s}=r;function u(){return String.fromCodePoint(r.value)}function c(){return{type:13,value:u()}}function l(){for(;C(o(1));)i(1)}function d(){for(;-1!==r.value;)if(i(1),42===o(0)&&47===o(1))return void i(1);a()}function h(){const[e,t]=function(){let e=0,t="",n=o(1);for(43!==n&&45!==n||(i(1),t+=u());L(o(1));)i(1),t+=u();if(46===o(1)&&L(o(2)))for(e=1,i(1),t+=u();L(o(1));)i(1),t+=u();if(n=o(1),69===n||101===n){const n=o(2);if(L(n))for(e=1,i(1),t+=u();L(o(1));)i(1),t+=u();else if((45===n||43===n)&&L(o(3)))for(e=1,i(1),t+=u(),i(1),t+=u();L(o(1));)i(1),t+=u()}return[t,e]}(),n=o(1);return v(n,o(1),o(2))?{type:15,value:e,flag:t,unit:y()}:37===n?(i(1),{type:16,value:e}):{type:17,value:e,flag:t}}function f(){const e=y();let t=o(1);if("url"===e.toLowerCase()&&40===t){for(i(1);C(o(1))&&C(o(2));)i(1);t=o(1);const n=o(2);return 34===t||39===t?{type:23,value:e}:!C(t)||34!==n&&39!==n?function(){let e="";for(l();;){const n=i(1);if(41===n)return{type:20,value:e};if(-1===n)return a(),{type:20,value:e};if(C(n)){l();const t=o(1);return 41===t||-1===t?(i(1),-1===n&&a(),{type:20,value:e}):(_(),{type:21})}if(34===n||39===n||40===n||(t=n)>=0&&t<=8||11===t||t>=14&&t<=31||127===t)return a(),_(),{type:21};if(92===n){if(!O(n,o(1)))return a(),{type:21};e+=m()}else e+=u()}var t}():{type:23,value:e}}return 40===t?(i(1),{type:23,value:e}):{type:24,value:e}}function p(e){let t="";for(;;){const n=i(1);if(-1===n||n===e)return-1===n&&a(),{type:2,value:t};if(k(n))return a(),s(),{type:3};if(92===n){const e=o(1);if(-1===e)continue;k(e)?i(1):t+=m()}else t+=u()}}function m(){const e=i(1);if(I(e)){const t=[e];for(let e=0;e<5;e++){const e=o(1);if(!I(e))break;t.push(e),i(1)}C(o(1))&&i(1);let n=parseInt(String.fromCodePoint(...t),16);return(0===n||n>=55296&&n<=57343||n>1114111)&&(n=65533),String.fromCodePoint(n)}return-1===e?(a(),String.fromCodePoint(65533)):u()}function v(e,t,n){return 45===e?P(t)||45===t||O(t,n):!!P(e)}function g(e,t,n){return 43===e||45===e?L(t)||46===t&&L(n):!(46!==e||!L(t))||!!L(e)}function y(){let e="";for(;;){const t=i(1);if(M(t))e+=u();else{if(!O(t,o(1)))return s(),e;e+=m()}}}function _(){for(;;){const e=i(1);if(-1===e)return;O(e,o(1))&&m()}}for(;;){const e=i(1);if(47===e&&42===o(1))i(2),d();else if(C(e))l(),yield{type:1};else if(34===e)yield p(e);else if(35===e){const e=o(1);M(e)||O(e,o(2))?yield{type:14,flag:v(o(1),o(2),o(3))?1:0,value:y()}:yield c()}else if(39===e)yield p(e);else if(40===e)yield{type:4};else if(41===e)yield{type:5};else if(43===e)g(e,o(1),o(2))?(s(),yield h()):yield c();else if(44===e)yield{type:6};else if(45===e){const t=o(1),n=o(2);g(e,t,n)?(s(),yield h()):45===t&&62===n?(i(2),yield{type:19}):v(e,t,n)?(s(),yield f()):yield c()}else if(46===e)g(e,o(1),o(2))?(s(),yield h()):yield c();else if(58===e)yield{type:7};else if(59===e)yield{type:8};else if(60===e)33===o(1)&&45===o(2)&&45===o(3)?yield{type:18}:yield c();else if(64===e)if(v(o(1),o(2),o(3))){const e=y();yield{type:22,value:e}}else yield c();else if(91===e)yield{type:9};else if(92===e)O(e,o(1))?(s(),yield f()):(a(),yield c());else if(93===e)yield{type:10};else if(123===e)yield{type:11};else if(125===e)yield{type:12};else if(L(e))s(),yield h();else if(P(e))s(),yield f();else{if(-1===e)return yield{type:0},r.errorIndices;yield{type:13,value:u()}}}}function L(e){return e>=48&&e<=57}function I(e){return L(e)||e>=65&&e<=70||e>=97&&e<=102}function k(e){return 10===e||13===e||12===e}function C(e){return k(e)||9===e||32===e}function P(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128||95===e}function O(e,t){return 92===e&&!k(t)}function M(e){return P(e)||L(e)||45===e}const N={11:12,9:10,4:5};function D(t,n){const r=function(e,t){const n=[];for(;;)switch(e.consume(1).type){case 1:break;case 0:return{type:3,value:n};case 18:case 19:if(!1!==t){e.reconsume();const t=F(e);t!==A&&n.push(t)}break;case 22:e.reconsume(),n.push(R(e));break;default:{e.reconsume();const t=F(e);t!==A&&n.push(t);break}}}(T(t),!0===n);return e({},r,{value:r.value.map(t=>26===t.type?function(t){return 0===t.value.value.type?e({},t,{value:e({},t.value,{value:H(t.value.value.value)})}):t}(t):t)})}function B(e){const t=T(e),n=[];for(;;){if(0===t.consume(1).type)return n;t.reconsume(),n.push($(t))}}function H(e){return function(e){const t=[],n=[];for(;;){const r=e.consume(1);switch(r.type){case 1:case 8:break;case 0:return{type:1,value:[...n,...t]};case 22:e.reconsume(),t.push(R(e));break;case 24:{const t=[r];let o=e.at(1);for(;8!==o.type&&0!==o.type;)t.push($(e)),o=e.at(1);const i=j(T(t));i!==A&&n.push(i);break}case 13:if("&"===r.value){e.reconsume();const n=F(e);n!==A&&t.push(n);break}default:{e.error(),e.reconsume();let t=e.at(1);for(;8!==t.type&&0!==t.type;)$(e),t=e.at(1);break}}}}(T(e))}function q(e){for(;1===e.at(1).type;)e.consume(1)}function R(e){let t=e.consume(1);if(22!==t.type)throw new Error(`Unexpected type ${t.type}`);const n=t.value,r=[];for(;;)switch(t=e.consume(1),t.type){case 8:return{type:25,name:n,prelude:r,value:null};case 0:return e.error(),{type:25,name:n,prelude:r,value:null};case 11:return{type:25,name:n,prelude:r,value:U(e)};case 28:if(11===t.source.type)return{type:25,name:n,prelude:r,value:t};default:e.reconsume(),r.push($(e))}}function F(e){let t=e.value;const n=[];for(;;)switch(t=e.consume(1),t.type){case 0:return e.error(),A;case 11:return{type:26,prelude:n,value:U(e)};case 28:if(11===t.source.type)return{type:26,prelude:n,value:t};default:e.reconsume(),n.push($(e))}}function j(e){const t=e.consume(1);if(24!==t.type)throw new Error(`Unexpected type ${t.type}`);const n=t.value,r=[];let o=!1;if(q(e),7!==e.at(1).type)return e.error(),A;for(e.consume(1),q(e);0!==e.at(1).type;)r.push($(e));const i=r[r.length-2],a=r[r.length-1];return i&&13===i.type&&"!"===i.value&&24===a.type&&"important"===a.value.toLowerCase()&&(o=!0,r.splice(r.length-2)),{type:29,name:n,value:r,important:o}}function $(e){const t=e.consume(1);switch(t.type){case 11:case 9:case 4:return U(e);case 23:return function(e){let t=e.value;if(23!==t.type)throw new Error(`Unexpected type ${t.type}`);const n=t.value,r=[];for(;;)switch(t=e.consume(1),t.type){case 5:return{type:27,name:n,value:r};case 0:return e.error(),{type:27,name:n,value:r};default:e.reconsume(),r.push($(e))}}(e);default:return t}}function U(e){let t=e.value;const n=t,r=N[n.type];if(!r)throw new Error(`Unexpected type ${t.type}`);const o=[];for(;;)switch(t=e.consume(1),t.type){case r:return{type:28,source:n,value:{type:0,value:o}};case 0:return e.error(),{type:28,source:n,value:{type:0,value:o}};default:e.reconsume(),o.push($(e))}}function V(e){return q(e),0===e.at(1).type}const z={11:["{","}"],9:["[","]"],4:["(",")"]};function G(e,t){switch(e.type){case 25:return`@${CSS.escape(e.name)} ${e.prelude.map(e=>G(e)).join("")}${e.value?G(e.value):";"}`;case 26:return`${e.prelude.map(e=>G(e)).join("")}${G(e.value)}`;case 28:{const[t,n]=z[e.source.type];return`${t}${W(e.value)}${n}`}case 27:return`${CSS.escape(e.name)}(${e.value.map(e=>G(e)).join("")})`;case 29:return`${CSS.escape(e.name)}:${e.value.map(e=>G(e)).join("")}${e.important?" !important":""}`;case 1:return" ";case 8:return";";case 7:return":";case 14:return"#"+CSS.escape(e.value);case 24:return CSS.escape(e.value);case 15:return e.value+CSS.escape(e.unit);case 13:case 17:return e.value;case 2:return`"${CSS.escape(e.value)}"`;case 6:return",";case 20:return"url("+CSS.escape(e.value)+")";case 22:return"@"+CSS.escape(e.value);case 16:return e.value+"%";default:throw new Error(`Unsupported token ${e.type}`)}}function W(e,t){return e.value.map(t=>{let n=G(t);return 29===t.type&&0!==e.type&&(n+=";"),n}).join("")}function Y(e){return G(e)}function X(e){const t=e.at(1);return 13===t.type&&"="===t.value&&(e.consume(1),!0)}function Q(e,t){const n=[];for(;;){const r=e.at(1);if(0===r.type||t&&7===r.type||13===r.type&&(">"===r.value||"<"===r.value||"="===r.value))break;n.push(e.consume(1))}return n}function J(e){q(e);const t=e.consume(1);return 13!==t.type?A:">"===t.value?X(e)?3:2:"<"===t.value?X(e)?5:4:"="===t.value?1:A}function K(e){return 4===e||5===e}function Z(e){return 2===e||3===e}function ee(e,t,n){const r=function(e){q(e);const t=e.consume(1);return q(e),24!==t.type||0!==e.at(1).type?A:t.value}(T(e));if(r===A)return A;let o=r.toLowerCase();return o=n?n(o):o,t.has(o)?o:A}function te(e){return{type:13,value:e}}function ne(e,t){return{type:29,name:e,value:t,important:!1}}function re(e){return{type:24,value:e}}function oe(e,t){return{type:27,name:e,value:t}}function ie(e){return oe("var",[re(e)])}function ae(e,t){q(e);let n=!1,r=e.at(1);if(24===r.type){if("not"!==r.value.toLowerCase())return A;e.consume(1),q(e),n=!0}let o=function(e){const t=e.consume(1);switch(t.type){case 28:{if(4!==t.source.type)return A;const e=ae(T(t.value.value),null);return e!==A?e:{type:4,value:t}}case 27:return{type:4,value:t};default:return A}}(e);if(o===A)return A;o=n?{type:1,value:o}:o,q(e),r=e.at(1);const i=24===r.type?r.value.toLowerCase():null;if(null!==i){if(e.consume(1),q(e),"and"!==i&&"or"!==i||null!==t&&i!==t)return A;const n=ae(e,i);return n===A?A:{type:"and"===i?2:3,left:o,right:n}}return V(e)?o:A}function se(e){return ae(e,null)}function ue(e){switch(e.type){case 1:return[re("not"),{type:1},...ue(e.value)];case 2:case 3:return[...ue(e.left),{type:1},re(2===e.type?"and":"or"),{type:1},...ue(e.right)];case 4:return[e.value]}}const ce={width:1,height:2,"inline-size":3,"block-size":4,"aspect-ratio":5,orientation:6},le=new Set(Object.keys(ce)),de=new Set(["none","and","not","or","normal","auto"]),he=new Set(["initial","inherit","revert","revert-layer","unset"]),fe=new Set(["size","inline-size"]);function pe(e,t,n,r){const o=n();if(o===A)return A;let i=[o,null];q(e);const a=e.at(1);if(13===a.type){if(a.value!==t)return A;e.consume(1),q(e);const n=r();q(e),n!==A&&(i=[o,n])}return V(e)?i:A}function me(e){const t=e.consume(1);return 17===t.type?parseInt(t.value):A}function ve(e){const t=T(e);q(t);const n=t.consume(1);let r=A;switch(n.type){case 17:t.reconsume(),r=function(e){const t=pe(e,"/",()=>me(e),()=>me(e));return t===A?A:{type:2,value:t[0]/(null!==t[1]?t[1]:1)}}(t);break;case 15:r={type:3,value:parseInt(n.value),unit:n.unit.toLowerCase()};break;case 24:{const e=n.value.toLowerCase();switch(e){case"landscape":case"portrait":r={type:4,value:e}}}}return r===A?A:V(t)?{type:6,value:r}:A}function ge(e){return!be(e=e.toLowerCase())&&!de.has(e)}function ye(e,t){const n=[];for(;;){q(e);const r=e.at(1);if(24!==r.type||!t(r.value))return n;e.consume(1),n.push(r.value)}}function _e(e){const t=[];for(;;){q(e);const n=e.at(1);if(24!==n.type)break;const r=n.value;if(!ge(r))break;e.consume(1),t.push(r)}return t}function be(e){return he.has(e)}function we(e){return e.map(e=>"cq-"+e)}function Se(e){const t=ye(e,e=>be(e));return 1===t.length?we(t):A}function Ae(e,t){const n=ye(e,e=>"none"===e);if(1===n.length)return we(n);if(0!==n.length)return A;if(t){const t=Se(e);if(t!==A)return t}const r=_e(e);return r.length>0&&(!t||V(e))?r:A}function Ee(e,t){if(t){const t=Se(e);if(t!==A)return t}return function(e){const t=ye(e,e=>"normal"===e);if(1===t.length)return we(t);if(0!==t.length)return A;const n=ye(e,e=>fe.has(e));return n.length>0&&V(e)?n:A}(e)}function Te(e){const t=T(e),n=Se(t);if(n!==A)return[n,n];const r=pe(t,"/",()=>Ae(t,!1),()=>Ee(t,!1));return r!==A&&V(t)?[r[0],r[1]||[]]:A}function xe(e){const t=T(e),n=_e(t);if(!n||n.length>1)return A;const r=se(t);if(r===A)return A;const o={features:new Set},i=Le(r,o);return V(t)?{name:n.length>0?n[0]:null,condition:i,features:o.features}:A}function Le(e,t){switch(e.type){case 1:return{type:1,value:Le(e.value,t)};case 2:case 3:return{type:2===e.type?2:3,left:Le(e.left,t),right:Le(e.right,t)};case 4:if(28===e.value.type){const n=function(e,t){const n=function(e,t){const n=Q(e,!0),r=e.at(1);if(0===r.type){const e=ee(n,t);return e!==A&&t.has(e)?{type:1,feature:e}:A}if(7===r.type){e.consume(1);const r=Q(e,!1);let o=1;const i=ee(n,t,e=>e.startsWith("min-")?(o=3,e.substring(4)):e.startsWith("max-")?(o=5,e.substring(4)):e);return i!==A?{type:2,feature:i,bounds:[null,[o,r]]}:A}const o=J(e);if(o===A)return A;const i=Q(e,!1);if(0===e.at(1).type){const e=ee(n,t);if(e!==A)return{type:2,feature:e,bounds:[null,[o,i]]};const r=ee(i,t);return r!==A?{type:2,feature:r,bounds:[[o,n],null]}:A}const a=J(e);if(a===A||!(Z(o)&&Z(a)||K(o)&&K(a)))return A;const s=Q(e,!1),u=ee(i,t);return u!==A?{type:2,feature:u,bounds:[[o,n],[a,s]]}:A}(e,le);if(n===A)return A;const r=ce[n.feature];if(null==r)return A;if(t.features.add(r),1===n.type)return{type:5,feature:r};{const e={type:5,feature:r};let t=A;if(null!==n.bounds[0]){const r=ve(n.bounds[0][1]);if(r===A)return A;t={type:4,operator:n.bounds[0][0],left:r,right:e}}if(null!==n.bounds[1]){const r=ve(n.bounds[1][1]);if(r===A)return A;const o={type:4,operator:n.bounds[1][0],left:e,right:r};t=t!==A?{type:2,left:t,right:o}:o}return t}}(T(e.value.value.value),t);if(n!==A)return n}return{type:6,value:{type:1}}}}let Ie=0;const ke={cqw:y,cqh:_,cqi:b,cqb:w},Ce=CSS.supports("selector(:where(div))"),Pe=":not(.container-query-polyfill)";B(Array.from(x(Pe)));const Oe=document.createElement("div"),Me=new Set(["before","after","first-line","first-letter"]);function Ne(e,t){return oe("calc",[{type:17,flag:e.flag,value:e.value},te("*"),t])}function De(t){return t.map(t=>{switch(t.type){case 15:return function(e){const t=e.unit,n=ke[t];return null!=n?Ne(e,ie(n)):"cqmin"===t||"cqmax"===t?Ne(e,oe(e.unit.slice(2),[ie(b),{type:6},ie(w)])):e}(t);case 27:return e({},t,{value:De(t.value)})}return t})}function Be(t){switch(t.name){case"container":return Te(t.value)?e({},t,{name:f}):t;case"container-name":return Ae(T(t.value),!0)?e({},t,{name:m}):t;case"container-type":return null!=Ee(T(t.value),!0)?e({},t,{name:p}):t}return e({},t,{value:De(t.value)})}function He(t,n){return e({},t,{value:t.value.map(t=>{switch(t.type){case 25:return Ue(t,n);case 26:return function(t,n){return n.transformStyleRule(e({},t,{value:Fe(t.value,n)}))}(t,n);default:return t}})})}function qe(e){return 0===e.type||6===e.type}function Re(e){for(let t=e.length-1;t>=0;t--)if(1!==e[t].type)return e.slice(0,t+1);return e}function Fe(t,n){return function(t,n){const r=[];let o=null,i=null;for(const e of t.value.value)switch(e.type){case 25:{const t=n?n(e):e;t&&r.push(t)}break;case 29:{const t=Be(e);switch(t.name){case f:{const t=Te(e.value);t!==A&&(o=t[0],i=t[1]);break}case m:{const t=Ae(T(e.value),!0);t!==A&&(o=t);break}case p:{const t=Ee(T(e.value),!0);t!==A&&(i=t);break}default:r.push(t)}}}return o&&o.length>0&&r.push(ne(m,[re(o.join(" "))])),i&&i.length>0&&r.push(ne(p,[re(i.join(" "))])),e({},t,{value:{type:2,value:r}})}(t,e=>Ue(e,n))}function je(t){if(1===t.type)return e({},t,{value:je(t.value)});if(2===t.type||3===t.type)return e({},t,{left:je(t.left),right:je(t.right)});if(4===t.type&&28===t.value.type){const n=function(e){const t=T(e);return q(t),24!==t.at(1).type?A:j(t)||A}(t.value.value.value);if(n!==A)return e({},t,{value:e({},t.value,{value:{type:0,value:[Be(n)]}})})}return t}function $e(t,n){let r=se(T(t.prelude));return r=r!==A?je(r):A,e({},t,{prelude:r!==A?ue(r):t.prelude,value:t.value?e({},t.value,{value:He(D(t.value.value.value),n)}):null})}function Ue(t,n){switch(t.name.toLocaleLowerCase()){case"media":case"layer":return function(t,n){return e({},t,{value:t.value?e({},t.value,{value:He(D(t.value.value.value),n)}):null})}(t,n);case"keyframes":return function(t,n){let r=null;return t.value&&(r=e({},t.value,{value:{type:3,value:D(t.value.value.value).value.map(t=>{switch(t.type){case 26:return function(t,n){return e({},t,{value:Fe(t.value,n)})}(t,n);case 25:return Ue(t,n)}})}})),e({},t,{value:r})}(t,n);case"supports":return $e(t,n);case"container":return function(t,n){if(t.value){const r=xe(t.prelude);if(r!==A){const o={rule:r,selector:null,parent:n.parent,uid:"c"+Ie++},i=new Set,a=[],s=He(D(t.value.value.value),{descriptors:n.descriptors,parent:o,transformStyleRule:t=>{const[n,r]=function(e,t){const n=T(e),r=[],o=[];for(;;){if(0===n.at(1).type)return[r,o];const u=Math.max(0,n.index);for(;i=n.at(1),s=n.at(2),!(qe(i)||7===i.type&&(7===s.type||24===s.type&&Me.has(s.value.toLowerCase())));)n.consume(1);const c=n.index+1,l=e.slice(u,c),d=l.length>0?Re(l):[te("*")];for(;!qe(n.at(1));)n.consume(1);const h=e.slice(c,Math.max(0,n.index+1));let f=d,p=[{type:28,source:{type:9},value:{type:0,value:[re(h.length>0?v:g),te("~"),te("="),{type:2,value:t}]}}];if(Ce)p=[te(":"),oe("where",p)];else{const e=d.map(Y).join("");e.endsWith(Pe)?f=B(Array.from(x(e.substring(0,e.length-31)))):a.push({actual:e,expected:e+Pe})}r.push(...d),o.push(...f),o.push(...p),o.push(...h),n.consume(1)}var i,s}(t.prelude,o.uid);if(a.length>0)return t;const s=n.map(Y).join("");try{Oe.matches(s),i.add(s)}catch(e){}return e({},t,{prelude:r})}}).value;if(a.length>0){const e=new Set,t=[];let n=0;for(const{actual:e}of a)n=Math.max(n,e.length);const r=Array.from({length:n},()=>" ").join("");for(const{actual:o,expected:i}of a)e.has(o)||(t.push(`${o}${r.substring(0,n-o.length)} => ${i}`),e.add(o));console.warn(`The :where() pseudo-class is not supported by this browser. To use the Container Query Polyfill, you must modify the selectors under your @container rules:\n\n${t.join("\n")}`)}return i.size>0&&(o.selector=Array.from(i).join(", ")),n.descriptors.push(o),{type:25,name:"media",prelude:[re("all")],value:e({},t.value,{value:{type:3,value:s}})}}}return t}(t,n)}return t}class Ve{constructor(e){this.value=void 0,this.value=e}}function ze(e,t){if(e===t)return!0;if(typeof e==typeof t&&null!==e&&null!==t&&"object"==typeof e){if(Array.isArray(e)){if(!Array.isArray(t)||t.length!==e.length)return!1;for(let n=0,r=e.length;n<r;n++)if(!ze(e[n],t[n]))return!1;return!0}if(e instanceof Ve)return t instanceof Ve&&e.value===t.value;{const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0,o=n.length;r<o;r++){const o=n[r];if(!ze(e[o],t[o]))return!1}return!0}}return!1}const Ge=Symbol("CQ_INSTANCE"),We=Symbol("CQ_STYLESHEET"),Ye=CSS.supports("width: 1svh"),Xe=new Set(["vertical-lr","vertical-rl","sideways-rl","sideways-lr","tb","tb-lr","tb-rl"]),Qe=["padding-left","padding-right","border-left-width","border-right-width"],Je=["padding-top","padding-bottom","border-top-width","border-bottom-width"],Ke=/(\w*(\s|-))?(table|ruby)(-\w*)?/;class Ze{constructor(e){this.node=void 0,this.node=e}connected(){}disconnected(){}updated(){}}class et extends Ze{constructor(e,t){super(e),this.context=void 0,this.controller=null,this.styleSheet=null,this.context=t}connected(){var e=this;const t=this.node;if("stylesheet"===t.rel){const n=new URL(t.href,document.baseURI);n.origin===location.origin&&(this.controller=ot(async function(r){const o=await fetch(n.toString(),{signal:r}),i=await o.text(),a=e.styleSheet=await e.context.registerStyleSheet({source:i,url:n,signal:r}),s=new Blob([a.source],{type:"text/css"}),u=new Image;u.onload=u.onerror=a.refresh,u.src=t.href=URL.createObjectURL(s)}))}}disconnected(){var e,t;null==(e=this.controller)||e.abort(),this.controller=null,null==(t=this.styleSheet)||t.dispose(),this.styleSheet=null}}class tt extends Ze{constructor(e,t){super(e),this.context=void 0,this.controller=null,this.styleSheet=null,this.context=t}connected(){var e=this;this.controller=ot(async function(t){const n=e.node,r=e.styleSheet=await e.context.registerStyleSheet({source:n.innerHTML,signal:t});n.innerHTML=r.source,r.refresh()})}disconnected(){var e,t;null==(e=this.controller)||e.abort(),this.controller=null,null==(t=this.styleSheet)||t.dispose(),this.styleSheet=null}}class nt extends Ze{connected(){const e=`* { ${p}: cq-normal; ${m}: cq-none; }`;this.node.innerHTML=void 0===window.CSSLayerBlockRule?e:`@layer cq-polyfill-${h} { ${e} }`}}class rt extends Ze{constructor(e,t){super(e),this.context=void 0,this.styles=void 0,this.context=t,this.styles=window.getComputedStyle(e)}connected(){this.node.style.cssText="position: fixed; top: 0; left: 0; visibility: hidden; "+(Ye?"width: 1svw; height: 1svh;":"width: 1%; height: 1%;")}updated(){const e=ct(e=>this.styles.getPropertyValue(e));this.context.viewportChanged({width:e.width,height:e.height})}}function ot(e){const t=new AbortController;return e(t.signal).catch(e=>{if(!(e instanceof DOMException&&"AbortError"===e.message))throw e}),t}function it(e){let t=0;if(0===e.length)return t;if(e.startsWith("cq-")&&("normal"===(e=e.substring(3))||be(e)))return t;const n=e.split(" ");for(const e of n)switch(e){case"size":t|=3;break;case"inline-size":t|=1;break;default:return 0}return t}function at(e){let t=0;return"none"!==e&&(t|=1,"contents"===e||"inline"===e||Ke.test(e)||(t|=2)),t}function st(e,t){return parseFloat(e(t))}function ut(e,t){return t.reduce((t,n)=>t+st(e,n),0)}function ct(e){let t=0,n=0;return"border-box"===e("box-sizing")&&(t=ut(e,Qe),n=ut(e,Je)),{fontSize:st(e,"font-size"),width:st(e,"width")-t,height:st(e,"height")-n}}function lt(e){return{containerType:it(e(p).trim()),containerNames:(n=e(m).trim(),n.startsWith("cq-")&&("none"===(n=n.substring(3))||be(n))?new Set([]):new Set(0===n.length?[]:n.split(" "))),writingAxis:(t=e("writing-mode").trim(),Xe.has(t)?1:0),displayFlags:at(e("display").trim())};var t,n}function dt(e,t,n){null!=n?n!=e.getPropertyValue(t)&&e.setProperty(t,n):e.removeProperty(t)}function ht(e){const t=e[We];return null!=t?t:[]}function ft(e,t){e[We]=t}new Promise(e=>{}),window.CQPolyfill={version:"1.0.2"},"container"in document.documentElement.style||function(){function n(e){return e[Ge]||null}const r=document.documentElement;if(n(r))return;const o=document.createElement(`cq-polyfill-${h}`),i=document.createElement("style");new MutationObserver(e=>{for(const t of e){for(const e of t.removedNodes){const t=n(e);null==t||t.disconnect()}t.target.nodeType!==Node.DOCUMENT_NODE&&t.target.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&null===t.target.parentNode||"attributes"===t.type&&t.attributeName&&(t.attributeName===v||t.attributeName===g||t.target instanceof Element&&t.target.getAttribute(t.attributeName)===t.oldValue)||(T(t.target).mutate(),p())}}).observe(r,{childList:!0,subtree:!0,attributes:!0,attributeOldValue:!0});const a=new ResizeObserver(e=>{for(const t of e)T(t.target).resize();T(r).update(A())}),s=new Ze(r);async function u(e,{source:t,url:n,signal:o}){const i=function(e,t){try{const n=Array.from(x(e));if(t)for(let e=0;e<n.length;e++){const r=n[e];if(20===r.type)r.value=new URL(r.value,t).toString();else if(23===r.type&&"url"===r.value.toLowerCase()){const r=e+1<n.length?n[e+1]:null;r&&2===r.type&&(r.value=new URL(r.value,t).toString())}}const r={descriptors:[],parent:null,transformStyleRule:e=>e};return{source:W(He(D(n,!0),r)),descriptors:r.descriptors}}catch(t){return console.warn("An error occurred while transpiling stylesheet: "+t),{source:e,descriptors:[]}}}(t,n?n.toString():void 0);let a=()=>{},s=()=>{};const u=T(r);let c=!1;return null!=o&&o.aborted||(s=()=>{if(!c){const{sheet:t}=e;null!=t&&(ft(t,i.descriptors),c=!0,a=()=>{ft(t),u.mutate(),p()},u.mutate(),p())}}),{source:i.source,dispose:a,refresh:s}}const c={cqw:null,cqh:null};function d({width:e,height:t}){c.cqw=e,c.cqh=t}function f(e,t,n){if(e instanceof Element&&t){let r="";for(const[n,o]of t.conditions){const t=n.value;null!=t.selector&&null!=o&&!(2&~o)&&e.matches(t.selector)&&(r.length>0&&(r+=" "),r+=t.uid)}r.length>0?e.setAttribute(n,r):e.removeAttribute(n)}}function p(){a.unobserve(r),a.observe(r)}const m=()=>{const e=[];for(const t of document.styleSheets)for(const n of ht(t))e.push([new Ve(n),0]);return e},S=window.getComputedStyle(r),A=()=>{const t=e=>S.getPropertyValue(e),n=lt(t),r=ct(t);return{parentState:null,conditions:m(),context:e({},c,{fontSize:r.fontSize,rootFontSize:r.fontSize,writingAxis:n.writingAxis}),displayFlags:n.displayFlags,isQueryContainer:!1}},E=e=>e;function T(c){let h=n(c);if(!h){let p,m=null,S=!1;c===r?(p=s,m=E):c===o?(S=!0,p=new rt(o,{viewportChanged:d})):p=c===i?new nt(i):c instanceof HTMLLinkElement?new et(c,{registerStyleSheet:t=>u(c,e({},t))}):c instanceof HTMLStyleElement?new tt(c,{registerStyleSheet:t=>u(c,e({},t))}):new Ze(c);let A=Symbol();if(null==m&&c instanceof Element){const n=function(n){const r=window.getComputedStyle(n);return function(){let n=null;return(...o)=>{if(null==n||!ze(n[0],o)){const i=(n=>{const{context:o,conditions:i}=n,a=e=>r.getPropertyValue(e),s=lt(a),u=e({},o,{writingAxis:s.writingAxis});let c=i,d=!1,h=s.displayFlags;!(1&n.displayFlags)&&(h=0);const{containerType:f,containerNames:p}=s;if(f>0){const e=f>0&&!(2&~h),n=new Map(i.map(e=>[e[0].value,e[1]]));if(c=[],d=!0,e){const e=ct(a);u.fontSize=e.fontSize;const r=function(e,t){const n={value:t.width},r={value:t.height};let o=n,i=r;if(1===e.writingAxis){const e=o;o=i,i=e}return!!(2&~e.containerType)&&(i.value=void 0),{width:n.value,height:r.value,inlineSize:o.value,blockSize:i.value}}(s,e),d={sizeFeatures:r,treeContext:u},h=e=>{const{rule:r}=e,o=r.name,i=null==o||p.has(o)?function(e,n){const r=new Map,o=n.sizeFeatures;for(const n of e.features){const e=t(n,o);if(1===e.type)return null;r.set(n,e)}const i=l(e.condition,{sizeFeatures:r,treeContext:n.treeContext});return 5===i.type?i.value:null}(r,d):null;var a;return null==i?1===((null!=(a=n.get(e))?a:0)&&1):!0===i},f=(e,t)=>{let n=e.get(t);if(null==n){const r=h(t);n=(r?1:0)|(!0!==r||null!=t.parent&&1&~f(e,t.parent)?0:2),e.set(t,n)}return n},m=new Map;for(const e of i)c.push([e[0],f(m,e[0].value)]);u.cqw=null!=r.width?r.width/100:o.cqw,u.cqh=null!=r.height?r.height/100:o.cqh}}return{parentState:new Ve(n),conditions:c,context:u,displayFlags:h,isQueryContainer:d}})(...o);null!=n&&ze(n[1],i)||(n=[o,i])}return n[1]}}()}(c);m=e=>n(e,A)}const x=m||E;let L=null;const I=e=>{const t=L,n=x(e);return L=n,[L,L!==t]},k=c instanceof HTMLElement||c instanceof SVGElement?c.style:null;let C=!1;h={connect(){for(let e=c.firstChild;null!=e;e=e.nextSibling)T(e);p.connected()},disconnect(){c instanceof Element&&(a.unobserve(c),c.removeAttribute(v),c.removeAttribute(g)),k&&(k.removeProperty(b),k.removeProperty(w),k.removeProperty(y),k.removeProperty(_));for(let e=c.firstChild;null!=e;e=e.nextSibling){const t=n(e);null==t||t.disconnect()}p.disconnected(),delete c[Ge]},update(e){const[t,n]=I(e);if(n){if(f(c,e,g),f(c,t,v),c instanceof Element){const e=S||t.isQueryContainer;e&&!C?(a.observe(c),C=!0):!e&&C&&(a.unobserve(c),C=!1)}if(k){const n=t.context,r=n.writingAxis;let o=null,i=null,a=null,s=null;(r!==e.context.writingAxis||t.isQueryContainer)&&(o=`var(${0===r?y:_})`,i=`var(${1===r?y:_}
2)`),e&&!t.isQueryContainer||(n.cqw&&(a=n.cqw+"px"),n.cqh&&(s=n.cqh+"px")),dt(k,b,o),dt(k,w,i),dt(k,y,a),dt(k,_,s)}p.updated()}for(let e=c.firstChild;null!=e;e=e.nextSibling)T(e).update(t)},resize(){A=Symbol()},mutate(){A=Symbol();for(let e=c.firstChild;null!=e;e=e.nextSibling)T(e).mutate()}},c[Ge]=h,h.connect()}return h}r.prepend(i,o),T(r),p()}();class pt{constructor(){window.dataLayer||=[],this.createEventListeners()}send(e){window.dataLayer.push(e)}createEventListeners(){document.addEventListener("DATA_LAYER_READY",()=>{const e=window.dataLayer?.findLast(e=>e&&"gtmUserStatus"in e)?.gtmUserStatus,t={event:"virtualPageView",page:{url:window.location.href,path:window.location.pathname,title:document.title},user_status:e};this.send(t)})}}var mt=o(1640);function vt(...e){try{const t=window.location.search;new URLSearchParams(t).get("_debug")&&console.log(...e)}catch(e){}}function gt(){let e=window.getComputedStyle(document.querySelector("body"),"::before").getPropertyValue("content")||!1;return!!e&&e.replace(/["']/g,"")}class yt{constructor(){if(Array.isArray(window.dataLayer))for(let e=0;e<window.dataLayer.length;e++){let t=window.dataLayer[e];if(t?.gtmPageType){this.type=t.gtmPageType;break}}this.currentMediaQuery=gt(),vt("Ad manager - setting up event listeners"),this.setEventListeners(),document.dispatchEvent(new Event("AD_MANAGER_READY"))}setEventListeners(){window.slotsReady?(vt("Slots are ready, calling for ads"),window.googletag.cmd.push(function(){window.googletag.pubads().refresh()})):(vt("Listening for slots ready event"),document.addEventListener("PAGE_SLOTS_READY",()=>{vt("Slots ready, calling for ads"),window.googletag.cmd.push(function(){window.googletag.pubads().refresh()})})),window.addEventListener("resize",(0,mt.s)(1e3,()=>{gt()!==this.currentMediaQuery&&(this.currentMediaQuery=gt(),window.googletag.pubads().refresh())}))}}o(8992),o(4520),o(3949),o(2577),o(7550);var _t=o(745);class bt{constructor(e=document.body){this.setManager(e),this.callbacks=[],this.addEventDelegation()}setManager(e){this.manager=e}addEventDelegation(){}bind(e){this.callbacks.push(e)}executeCallbacks(e,t){this.callbacks.forEach(n=>{n(e,t)})}}const wt={gbh:{host:"wgbh.org"},pledgeCart:{host:"pledgecart.org"},jobs:{host:"publicmedia.wd1.myworkdayjobs.com"},galaForm:{host:"forms.office.com",path:"/r/s257atb4xZ"}};let St=new class extends bt{addEventDelegation(){this.manager&&this.manager.addEventListener("click",e=>{const t=e.target.closest("a");if(!t||!t.href||!t.getAttribute("href").trim())return;if("_blank"===t.target)return;const n=new URL(t.href);n.hostname!==window.location.hostname?this.handleExternalLink(e,t,n):this.handleInternalLink(e,t)})}isWhitelisted(e){const t=e.hostname,n=this.normalizePathname(e.pathname);return Object.values(wt).some(e=>{if(e.path){const r=this.normalizePathname(e.path);return t===e.host&&n===r}return t.endsWith(e.host)})}normalizePathname(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}handleExternalLink(e,t,n){const r="true"===_t.A.getCookie("disableInterstitial");if(this.isWhitelisted(n)||r)return void(window.location.href=n.href);const o=document.querySelector(".modal-overlay"),i=o?.querySelector(".go-external");o&&i&&(e.preventDefault(),o.removeAttribute("hidden"),i.setAttribute("href",n.href),o.dispatchEvent(new CustomEvent("modalOpened",{bubbles:!0})))}handleRecaptchaLink(e){e.preventDefault()}handleInternalLink(e,t){e.preventDefault(),this.executeCallbacks(e,t)}};const At="History:Rendered",Et=".Page-header",Tt="gbh-pledge-modal",xt=".GbhSessionLink",Lt="psUrl";class It{constructor(){this._state="uninitialized",this.refreshBodyScripts=this.refreshBodyScripts.bind(this),this._debugFromMeta=!1,window.historyManagerInitialized?this._state="proxy-ready":(this.state="initializing",this.addEvents(),this.replaceState(),window.historyManagerInitialized=!0,this.state="ready")}get state(){return this._state}set state(e){this._state=e,this.debugEnabled&&console.log("HM state: "+this._state)}get debugEnabled(){return this._debugFromMeta}dispatchPageLoaded=(e=window.location.href)=>{document.dispatchEvent(new CustomEvent("PAGE_LOADED",{bubbles:!0,composed:!0,detail:{url:e}}))};addEvents=()=>{document.addEventListener("DOMContentLoaded",()=>this.dispatchPageLoaded()),window.addEventListener("popstate",e=>{this.state="popping state",history.state&&history.state[Lt]&&this.replaceHtml(history.state[Lt]).catch(e=>{console.error("Popstate navigation failed:",e)})}),window.onpageshow=function(e){e.persisted&&window.location.reload()},St.bind((e,t)=>this.processLink(e,t))};processExternalUrl=e=>this.processLink(null,null,e);processLink=(e,t,n)=>{let r;if(t?r=t.href:n&&(r=n.toString()),this.state="processing link "+r,t?.hasAttribute("data-logout"))return void(window.location.href=r);const o=window.location.pathname;this.currentHref=window.location.href;const i=new window.URL(r);if(i.hash&&o===i.pathname){let e=i.hash.replace("#",""),t=document.getElementById(e);return t&&(t.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}),this.pushState(r)),this.state="ready",Promise.resolve(!0)}return this.replaceHtml(r).then(e=>(e&&this.pushState(r),e)).catch(e=>{throw console.error("Event link delegator failed: ",e),e}).finally(()=>{this.state="ready"})};pushState(e=window.location.href,t={}){this.state="updating history";const n=history.state?.[Lt];t[Lt]=e,history.pushState(t,"",e),e!==n&&this.dispatchPageLoaded(e),this.state="ready"}refresh(e=window.location.href){return this.replaceHtml(e).catch(e=>{console.error("Refresh failed:",e)})}replaceState(e=window.location.href,t={}){this.state="replacing state",t[Lt]=e,history.replaceState(t,"",e)}async replaceHtml(e){this.state="replacing html";const t=window.location.protocol+"//"+window.location.host+window.location.pathname,n=new window.URL(e),r=n.protocol+"//"+n.host+n.pathname;this.state="checking for bypass";const o=Object.assign({},window.externallyControlledHashTags||{}),i=!!n.hash&&Object.keys(o).find(e=>0===n.hash.search(e));if(t===r&&i)return console.log("myHASH",o,i),o[i]&&(window.location=`${r}${i}`),this.state="ready",!1;let a;document.dispatchEvent(new Event("BEGIN_PAGE_TRANSITION",{bubbles:!0,composed:!0})),this.state="beginning transition",this.header=document.querySelector(Et);try{a=await function(e,t="GET",n="include"){return new Promise((r,o)=>{fetch(e,{credentials:n,method:t}).then(e=>e.text()).then(e=>{let t=(new DOMParser).parseFromString(e,"text/html");return t||o(),r(t)}).catch(e=>{o(e)})})}(e)}catch(e){return console.error("Failed to fetch page HTML:",e),alert("There was a problem loading that page"),window.location.href=this.currentHref,!1}this.state="data received",this.destroyDfpAdSlots(),this.state="cloning data";const s=a.cloneNode(!0);let u=a.body;if(!u)return this.state="new body FAIL",console.error(new Error("HistoryManager: No <body> found in fetched HTML")),alert("There was a problem loading that page"),window.location.href=this.currentHref,!1;let c=a.head;if(!c)return this.state="new <head> FAIL",console.error(new Error("HistoryManager: No <head> found in fetched HTML")),alert("There was a problem loading that page"),window.location.href=this.currentHref,!1;let l=u.querySelector(Et);if(!l)return this.state="new <header> FAIL",console.error(new Error("HistoryManager: No <header> found in fetched HTML")),alert("There was a problem loading that page."),window.location.href=this.currentHref,!1;if(this.header){try{this.stripBody(),this.replaceTagAttributes("html",s),this.replaceTagAttributes("body",s),this.refreshHeadTags(c),this.refreshCriticalStyles(c),this.refreshPlayerAd(),this.refreshBrightspotDataLayer(),this.refreshGtm(),this.refreshBodyNodes(u,l),this.refreshBodyScripts(),this.refreshLoginForms(l),this.refreshPledgePopup(l)}catch(e){return console.error("replaceHtml failed: ",e),alert("Sorry, something went wrong with that link - reloading your current page."),window.location.href=this.currentHref,!1}finally{document.body.style.visibility="visible",this.state="body visible"}this.reloadOTBanner(),this.state="dispatching render complete";let t=new window.CustomEvent(At,{detail:{response:s,newUrl:e}});document.body.dispatchEvent(t),this.scrollToView(e,n)}return!0}stripBody=()=>{this.state="removing body elements except header",document.body.style.visibility="hidden";const e=document.querySelector(".grecaptcha-badge"),t=[this.header,e].filter(
2Boolean);Array.from(document.body.children).forEach(e=>{t.some(t=>t===e||e.contains(t))||e.remove()})};refreshHeadTags=e=>{let t=e.querySelector("title");t&&(document.title=t.textContent);let n=e.querySelectorAll("meta");n.length&&(document.querySelectorAll("head meta").forEach(e=>{e.parentNode.removeChild(e)}),n.forEach(e=>{document.head.appendChild(e)}))};refreshCriticalStyles=e=>{const t=Array.from(e.querySelectorAll("style[data-critical-style]"));document.head.querySelectorAll("head > style[data-critical-style]").forEach(e=>{e.remove()});const n=document.head.querySelector("title");t.reverse().forEach(e=>{n.after(e)})};refreshPlayerAd=()=>{this.state="refreshing player ad";let e=document.getElementById("playerAdSlot");if(e){let t=e,n=t.parentElement;t.remove(),n&&n.prepend(t)}};refreshPledgePopup=e=>{this.state="refreshing pledge popup";const t=this.header.querySelector(Tt);t?.remove();const n=e?.querySelector(Tt);n&&this.header.appendChild(n)};refreshLoginForms=e=>{this.state="refreshing login forms";const t=e.querySelector(xt);t&&this.header.querySelectorAll(xt).forEach(e=>{const n=e.parentElement;if(n){const r=t.cloneNode(!0);n.replaceChild(r,e)}})};refreshBrightspotDataLayer=()=>{this.state="refreshing bsp data layer";let e=document.head.querySelector('meta[name="brightspot-dataLayer"]');e&&(window.brightspotDataLayer=JSON.parse(e.content))};refreshGtm=()=>{this.state="refreshing gtm data layer";const e=document.head.querySelector('meta[name="gtm-dataLayer"]');if(e)try{const t=JSON.parse(e.content);window.dataLayer=window.dataLayer||[],window.dataLayer.length=0,window.dataLayer.push({...t}),this.state="gtm data layer refreshed"}catch(e){console.error("Failed to parse new GTM meta content",e)}};refreshBodyNodes=(e,t)=>{this.state="updating body content",Array.from(e.childNodes).forEach(e=>{e!==t&&document.body.append(e)})};async refreshBodyScripts(){this.state="refreshing body scripts";const e=Array.from(document.body.querySelectorAll("script"));for(const t of e){if(t.hasAttribute("data-persist"))continue;const e=t.getAttribute("src");if(e)await this.refreshScript(t).catch(t=>console.warn("Script failed to refresh:",e,t));else{const e=document.createElement("script");e.textContent=t.textContent,document.head.appendChild(e),e.remove()}}}refreshScript=e=>new Promise((t,n)=>{const r=e.getAttribute("src");if(!r)return n(new Error("No src found on script"));const o=document.createElement("script");Array.from(e.attributes).forEach(e=>{o.setAttribute(e.name,e.value)}),o.onload=()=>t(o),o.onerror=()=>n(new Error(`Load error: ${r}`)),e&&e.parentNode?e.parentNode.replaceChild(o,e):document.head.appendChild(o)});removeScriptBySrc=e=>{document.querySelectorAll(`script[src="${CSS.escape(e.split("?")[0])}"]`).forEach(e=>e.remove())};destroyDfpAdSlots=()=>{window.googletag&&void 0!==window.googletag.destroySlots&&(this.state="destroying ad slots",window.googletag.destroySlots())};replaceTagAttributes=(e,t)=>{this.state="replacing "+e+" attributes";const n=document.querySelector(e);if(!n)return void console.error("Missing tag element "+e);for(;n.attributes.length>0;)n.removeAttribute(n.attributes[0].name);if(!t)return void console.error("Missing data");let r=t.querySelector(e).attributes;Array.from(r).forEach(e=>{n.setAttribute(e.name,e.value)})};reloadOTBanner=()=>{this.state="reloading onetrust banner";var e=document.getElementById("onetrust-consent-sdk");e&&e.remove(),null!=window.OneTrust&&(window.OneTrust.Init(),setTimeout(function(){window.OneTrust.LoadBanner();for(var e=document.getElementsByClassName("ot-sdk-show-settings"),t=0;t<e.length;t++)e[t].onclick=function(e){e.stopImmediatePropagation(),window.OneTrust.ToggleInfoDisplay()}},1e3))};scrollToView=(e,t)=>{if(this.state="scrolling view",-1===e.indexOf("#"))document.body.scrollIntoView({behavior:"auto",block:"start"});else{let e=t.hash.replace("#",""),n=(e,t)=>{if(0===t)return void console.error("ERROR - no anchor found for ",e);let r=document.getElementById(e);r?setTimeout(()=>{r.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},500):setTimeout(function(){n(e,t-1)},100)};n(e,30)}}}class kt{constructor(){this.init()}init(){"IntersectionObserver"in window?"loading"in HTMLImageElement.prototype==0?(this.modernBrowsers(),document.body.addEventListener("Ajax:Rendered",()=>{this.modernBrowsers()}),document.body.addEventListener(At,()=>{this.modernBrowsers()})):(this.nativeLazyloadBrowsers(),window.addEventListener("load",()=>{this.nativeLazyloadBrowsers()},{once:!0}),document.body.addEventListener("Ajax:Rendered",()=>{this.nativeLazyloadBrowsers()}),document.body.addEventListener(At,()=>{this.nativeLazyloadBrowsers()})):(this.oldskool(),document.body.addEventListener("Ajax:Rendered",()=>{this.oldskool()}),document.addEventListener(At,()=>{this.oldskool()}))}nativeLazyloadBrowsers(){[].slice.call(document.querySelectorAll('[loading="lazy"]')).forEac
2h(e=>{e.dataset.src&&(e.src=e.dataset.src),e.dataset.srcset&&(e.srcset=e.dataset.srcset),e.removeAttribute("loading")})}modernBrowsers(){const e=[].slice.call(document.querySelectorAll('[loading="lazy"]')),t=new window.IntersectionObserver(function(e){e.forEach(function(e){if(e.isIntersecting){const n=e.target;n.dataset.src&&(n.src=n.dataset.src),n.dataset.srcset&&(n.srcset=n.dataset.srcset),n.removeAttribute("loading"),t.unobserve(n)}})});e.forEach(e=>{t.observe(e)})}oldskool(){let e=!1,t=[].slice.call(document.querySelectorAll('[loading="lazy"]'));const n=function(){!1===e&&(e=!0,setTimeout(function(){t.forEach(function(e){e.getBoundingClientRect().top<=window.innerHeight&&e.getBoundingClientRect().bottom>=0&&"none"!==window.getComputedStyle(e).display&&(e.dataset.src&&(e.src=e.dataset.src),e.dataset.srcset&&(e.srcset=e.dataset.srcset),e.removeAttribute("loading"),t=t.filter(function(t){return t!==e}),0===t.length&&(document.removeEventListener("scroll",n),window.removeEventListener("resize",n),window.removeEventListener("orientationchange",n)))}),e=!1},200))};document.addEventListener("scroll",n),window.addEventListener("resize",n),window.addEventListener("orientationchange",n),n()}}class Ct{constructor(e=window.recaptchaSiteKey){this.siteKey=e,this.baseUrl=new URL("/_ajax/recaptcha/check",window.location.origin),this.siteKey||console.error("No reCAPTCHA site key found"),this.readyPromise=this.ensureGrecaptcha(),window.dispatchEvent(new CustomEvent("RECAPTCHA_CLIENT_READY",{detail:this}))}async ensureGrecaptcha(){return new Promise((e,t)=>{const n=Date.now(),r=()=>{window.grecaptcha&&window.grecaptcha.ready?window.grecaptcha.ready(()=>{e(!0)}):Date.now()-n>1e4?t(new Error("reCAPTCHA timed out loading")):setTimeout(r,50)};r()})}async getToken(){if(await this.readyPromise,"function"!=typeof window.grecaptcha?.execute)throw new Error("reCAPTCHA client loaded but execute method is missing");return Promise.race([window.grecaptcha.execute(this.siteKey,{action:"submit"}),new Promise((e,t)=>setTimeout(()=>t(new Error("Recaptcha execution hung")),8e3))])}}class Pt extends bt{constructor(){super(),this._isInitialized=!1}addEventDelegation(){this._isInitialized||(this.manager?(this.manager.addEventListener("click",this.handleClickEvents.bind(this)),this._isInitialized=!0):document.addEventListener("DOMContentLoaded",()=>this.addEventDelegation(),{once:!0}))}createEventObject(e,t,n){return{event:e.getAttribute("data-event-type"),gbhData:{destination:t||e.getAttribute("data-destination"),elementLocation:e.getAttribute("data-element-location"),pageSection:this.getPageLocation(e),additionalData:n||e.getAttribute("data-event-data")}}}handleClickEvents(e){const t=e.target.closest("[data-event-type]");if(!t||!document.contains(t))return;const n=e.target.closest("a");if(!n)return;let r,o=n.href;if(!o)return;t.classList.contains("PromoA")&&(r=n.closest(".related-stories")?"promo_a_related":"promo_a_primary");const i=this.createEventObject(t,o,r);this.updateDataLayer(i)}updateDataLayer(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)}getPageLocation=e=>{const t=e.closest("ps-header, header, main, aside, footer");if(!t)return"unknown";const n=t.tagName.toLowerCase();return"ps-header"===n||"header"===n?"header":n}}let Ot;"undefined"!=typeof window?(window.__gbh_tracking_instance||(window.__gbh_tracking_instance=new Pt),Ot=window.__gbh_tracking_instance):Ot=new Pt;const Mt=Ot;class Nt extends Error{constructor(e){super(e?.errorMessage||"Recaptcha validation failed"),this.name="RecaptchaError",this.responseData=e}}class Dt extends bt{constructor(){super(),this._isInitialized=!1,this.baseUrl=new URL("/_ajax/recaptcha/check",window.location.origin)}addEventDelegation(){this._isInitialized||(this.manager?(this.manager.addEventListener("click",this.handleRecaptchaLinks.bind(this)),this._isInitialized=!0):document.addEventListener("DOMContentLoaded",()=>this.addEventDelegation(),{once:!0}))}handleRecaptchaLinks(e){const t=e.target.closest("a.recaptcha");t&&this.submitRecaptcha(e,t)}submitRecaptcha(e,t){e.preventDefault();const n={encryptedUrl:t.dataset.encryptedUrl},r=()=>{this.executeRecaptcha(t,n)};window.recaptchaClient?r():window.addEventListener("RECAPTCHA_CLIENT_READY",()=>r(),{once:!0})}async executeRecaptcha(e,t){let n=await window.recaptchaClient.getToken();const r=document.querySelector('meta[name="CSRF_TOKEN"]');if(!r)return void console.error("No CSRF token is available");const o=r.getAttribute("content"),i=new URLSearchParams;i.set("CSRF_TOKEN",o),i.set("encryptedUrl",t.encryptedUrl),i.set("recaptchaToken",n);const a=this.baseUrl;try{const t=await fetch(a.toString(),{method:"POST",body:i});if(!t.ok){let e;try{e=await t.json()}catch{e={error:`Server error: ${t.status}`}}throw new Nt(e)}const n=await t.json(),r=n?.data?.url;if(!r)throw new Error("No destination URL found in response");this.handleTracking(e,r),window.location.href=r}catch(e){console.error("Recaptcha Client Error:",e);const t=e instanceof Nt?e.message:"A network error occurred. Please try again.";alert(t)}}handleTracking(e,t){const n=e.closest("[data-event-type]");if(!n)return;const r=Mt.createEventObject(n,t);Mt.updateDataLayer(r)}}let Bt;"undefined"!=typeof window?(window.__gbh_recaptcha_instance||(window.__gbh_recaptcha_instance=new Dt),Bt=window.__gbh_recaptcha_instance):Bt=new Dt;const Ht=Bt;class qt extends HTMLElement{connectedCallback(){vt("Ad unit loaded"),this.init()}init(){this.currentMediaQuery=gt(),this.ad=this.querySelector(window.AD_SELECTOR),this.ad&&(this.isAside=null!==this.ad.closest("aside"),this.isInjected=null!==this.ad.closest("article"),vt("Ad unit init-ed",this.ad),this.processAd(this.ad))}processAd(e){vt("Setting up ad",this.ad);let t=!0,n=e.getAttribute("data-out-of-page")||!1;"mq-xs"!==this.currentMediaQuery&&"mq-sm"!==this.currentMediaQuery&&"mq-md"!==this.currentMediaQuery||
2(t=!1);const r=this.getContentType();if(this.isInjected&&"NewsStory"===r&&t)return void e.closest(".AdModule").remove();var o=e.getAttribute("data-targeting-data"),i=o?JSON.parse(unescape(o)):null;let a,s=e.id,u=e.getAttribute("data-slot-name")||"",c=e.getAttribute("data-slot-sizes")||"",l=e.getAttribute("data-slot-adSizeMap")||"";if(void 0!==window.googletag&&null!==window.googletag){if(window.matchMedia("(max-width: 728px)").matches&&"true"===e.getAttribute("data-hide-on-mobile"))return!1;if(window.matchMedia("(min-width: 728px)").matches&&"true"===e.getAttribute("data-hide-on-desktop"))return!1;vt("Pushing ad cmd to googletag"),window.googletag.cmd.push(()=>{var t,r;if(a=n?window.googletag.defineOutOfPageSlot(u,s).addService(window.googletag.pubads()):window.googletag.defineSlot(u,JSON.parse(c),s).addService(window.googletag.pubads()),vt("Running ad cmd"),i)for(t in i)Object.hasOwnProperty.call(i,t)&&(r=i[t])&&(Array.isArray(r)&&r.length||!Array.isArray(r))&&a.setTargeting(t,r);let o=-1,d=-1,h=window.innerWidth;if(null!=l&&l.length>0){vt("Configuring size mapping");let e=window.googletag.sizeMapping();JSON.parse(l).forEach(function(t){let n=t.slice(1),r=t[0][0],i=!0;1===n.length&&0===n[0][0]&&0===n[0][1]&&(n=[],i=!1),void 0!==r&&r<=h&&(i&&r>d?d=r:!i&&r>o&&(o=r)),vt("Configured ad sizes",t[0],n),e.addSize(t[0],n)}),a.defineSizeMapping(e.build())}o>=0&&o>d&&e.setAttribute("data-ad-size-map-hidden",!0),window.googletag.display(s),vt("Pushing ad slot: ",s),window.dfpAdSlots.push(a)})}}getContentType(){return document.querySelector('meta[name="brightspot.contentType"]')?.getAttribute("content")}}class Rt extends HTMLElement{connectedCallback(){this.ident=this.dataset.ident,this.closeButton=this.querySelector(".close"),this.closeButton.addEventListener("click",this.closeBulletin);const e=`bulletin-bar-${this.ident}`,t=_t.A.getCookie(e);t&&"hide"===t?this.removeAttribute("data-show"):setTimeout(()=>{this.setAttribute("data-show","")},50),this.enforceCharacterLimits()}disconnectedCallback(){this.closeButton.removeEventListener("click",this.closeBulletin)}closeBulletin=()=>{const e=`bulletin-bar-${this.ident}`;_t.A.setCookie(e,"hide",1),this.removeAttribute("data-show")};enforceCharacterLimits=()=>{let e;e=this.querySelector(".BulletinBar").classList.contains("marcomm-alert")?40:25;const t=this.querySelector("h2");t&&(t.textContent=this.htmlSafeTruncate(t.textContent??"",e));const n=this.querySelector(".message");n&&(n.innerHTML=this.htmlSafeTruncate(n.innerHTML??"",130))};htmlSafeTruncate=(e,t)=>{let n=0,r="",o=!1,i="",a=[];for(let s=0;s<e.length;s++){let u=e[s];if("<"!==u)if(o){if(i+=u,">"===u)if(o=!1,r+=i,i.startsWith("</"))a.pop();else{const e=i.match(/<([a-zA-Z1-6]+)/);e&&a.push(e[1])}}else{if(!(n<t)){for(r+="...";a.length>0;)r+=`</${a.pop()}>`;break}r+=u,n++}else o=!0,i="<"}return r}}class Ft extends HTMLElement{isRefreshing=!1;connectedCallback(){this.iframe=this.querySelector("iframe"),document.addEventListener("NEW_ACTIVE_AUDIO_SOURCE",this.stopForNewAudio),window.addEventListener("blur",this.handleBlur)}disconnectedCallback(){document.removeEventListener("NEW_ACTIVE_AUDIO_SOURCE",this.stopForNewAudio),window.removeEventListener("blur",this.handleBlur)}_runDebouncedDispatch=(0,mt.s)(250,()=>{document.dispatchEvent(new CustomEvent("NEW_ACTIVE_AUDIO_SOURCE",{detail:{active:this}}))});sendDispatch=()=>{this._runDebouncedDispatch()};handleBlur=()=>{this.isRefreshing||setTimeout(()=>{document.activeElement===this.iframe&&this.sendDispatch()},50)};stopForNewAudio=e=>{e.detail&&e.detail.active!==this&&this.iframe&&this.iframe.contentWindow&&this.iframe.contentWindow.postMessage("pause","https://player.pbs.org")}}var jt=o(3263),$t=o.n(jt),Ut=o(2139);class Vt extends HTMLElement{#e=null;constructor(){super(),this._handlersInitialized=!1}connectedCallback(){this.#e=new AbortController,this.cacheElements(),this._handlersInitialized||this.setupHandlers(),this.addListeners(),this.setTabbing()}disconnectedCallback(){this.removeListeners()}cacheElements(){this.menuButton=this.querySelector(".menu-trigger"),this.navBar=this.querySelector(".nav-bar"),this.searchButton=this.querySelector(".search-button"),this.searchInput=this.querySelector(".search-overlay input"),this.searchClose=this.querySelector(".search-close"),this.hamburgerMenu=this.querySelector(".hamburger-menu"),this.menuWrapper=this.querySelector(".hamburger-menu
2-wrapper"),this.menuClose=this.querySelector(".hamburger-menu .close"),this.navigationItems=[...this.navBar?.querySelectorAll(".NavigationItem")||[]],this.burgerMenuItems=[...this.hamburgerMenu?.querySelectorAll(".NavigationItem")||[]],this.subNavLinks=[...this.hamburgerMenu?.querySelectorAll(".NavigationLink")||[]],this.headerBar=this.querySelector(".top-bar"),this.headerBar?.setAttribute("data-search-open","false"),this.backToTopButton=document.querySelector(".BackToTop"),this.footer=document.querySelector(".Page-footer"),this._footerTop=this.footer?.offsetTop||0,this._allNavItems=[...this.navigationItems,...this.burgerMenuItems],this._allNavItems.forEach(e=>{e._more=e.querySelector(".more"),e._hasMore=!!e._more}),this._burgerInteractive=this.hamburgerMenu?.querySelectorAll("a, button, input")||[],this.logoButtonInHamburger=this.querySelector(".hamburger-menu .top .logo"),this.loginButtonInHamburger=this.querySelector(".hamburger-menu .sign-in"),this.logoutButtonInHamburger=this.querySelector(".hamburger-menu .sign-out"),this.logoutButton=document.getElementById("sign-out")}setupHandlers(){this._onLoad=()=>{this._startScroll=window.scrollY,this._lastScrollPos=window.scrollY,this._scrollBack=0},this._onScroll=(0,Ut.n)(50,()=>{this.checkHeaderLocation()}),this._onResize=(0,Ut.n)(500,()=>{this.setTabbing(),this.closeAllNavItems(),this._footerTop=this.footer?.offsetTop||0}),this._docClick=e=>this.setClickTarget(e),this._menuClick=e=>{e.preventDefault(),this.isMenuOpen()?this.closeMenu():this.openMenu()},this._menuCloseClick=e=>{e.preventDefault(),this.closeMenu()},this._searchClick=e=>{e.preventDefault(),this.isSearchOpen()?this.closeSearch():this.openSearch()},this._searchCloseClick=e=>{e.preventDefault(),this.closeSearch()},this._logoutClick=e=>{document.body.removeAttribute("data-logged-in"),this.closeMenu()},this.checkHeaderLocation=()=>{const e=.9*window.innerHeight,t=.3*e,n=window.scrollY,r=n-(this._lastScrollPos??n);this._startScroll??=n,this._scrollBack??=0,n>e&&n>this._startScroll+t&&(this.style.top=-this.offsetHeight+"px"),r<0?(this._scrollBack+=Math.abs(r),this._scrollBack>t&&(this.style.top="0",this._startScroll=n)):this._scrollBack=0,this._footerTop||(this.footer=document.querySelector(".Page-footer"),this._footerTop=this.footer?.offsetTop||0),this.backToTopButton&&(window.scrollY>1.2*e&&this._footerTop-window.scrollY-e>-40?this.backToTopButton?.classList.add("show"):this.backToTopButton?.classList.remove("show")),this._lastScrollPos=window.scrollY},this._handlersInitialized=!0}addListeners(){const{signal:e}=this.#e;window.addEventListener("load",this._onLoad,{signal:e}),window.addEventListener("scroll",this._onScroll,{signal:e}),window.addEventListener("resize",this._onResize,{signal:e}),document.addEventListener("click",this._docClick,{signal:e}),this.menuButton?.addEventListener("click",this._menuClick,{signal:e}),this.menuClose?.addEventListener("click",this._menuCloseClick,{signal:e}),this.searchButton?.addEventListener("click",this._searchClick,{signal:e}),this.searchClose?.addEventListener("click",this._searchCloseClick,{signal:e}),this.logoutButton?.addEventListener("click",this._logoutClick,{signal:e}),this.subNavLinks.forEach(t=>{t.addEventListener("click",()=>{const e=t.closest(".NavigationItem");e&&this.closeNavItem(e),this.closeMenu()},{signal:e})}),this.addDesktopNavListeners(),this.addMobileNavListeners(),this.initHover(),this.initHamburgerExtras()}removeListeners(){this.#e?.abort(),this.#e=null,this._hoverListeners?.forEach(e=>e.destroy?.()),this._hoverListeners=[]}initHover(){this._hoverListeners?.forEach(e=>e.destroy?.()),this._hoverListeners=[],this.navigationItems.forEach(e=>{if(!e._hasMore)return;const t=$t()(e,()=>{this.openNavItem(e)},()=>{this.closeNavItem(e)});this._hoverListeners.push(t)})}initHamburgerExtras(){const{signal:e}=this.#e;this.logoButtonInHamburger?.addEventListener("click",this._menuCloseClick,{signal:e}),this.loginButtonInHamburger?.addEventListener("click",this._menuCloseClick,{signal:e}),this.logoutButtonInHamburger?.addEventListener("click",this._logoutClick,{signal:e}
2),this.burgerMenuItems.forEach(t=>{t._hasMore||t.addEventListener("click",()=>{this.isMenuOpen()&&this.closeMenu()},{signal:e})})}addDesktopNavListeners(){const{signal:e}=this.#e;this.navigationItems.forEach(t=>{t._hasMore&&t._more?.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),this.toggleNavItem(t)},{signal:e})})}addMobileNavListeners(){const{signal:e}=this.#e;this.burgerMenuItems.forEach(t=>{t._hasMore&&t.addEventListener("click",e=>{e.target.closest(".subnav a")||(e.preventDefault(),e.stopPropagation(),this.toggleNavItem(t))},{signal:e})})}openNavItem(e){e&&(this.closeAllNavItems(),e.setAttribute("data-nav-item-action","open"),e.setAttribute("aria-expanded","true"))}closeNavItem(e){e&&(e.removeAttribute("data-nav-item-action"),e.setAttribute("aria-expanded","false"))}toggleNavItem(e){"open"===e.getAttribute("data-nav-item-action")?this.closeNavItem(e):this.openNavItem(e)}closeAllNavItems(){this._allNavItems.forEach(e=>{this.closeNavItem(e)})}setClickTarget(e){this.menuWrapper&&this.headerBar&&(this.contains(e.target)||this.closeMenu())}openMenu(){document.body.setAttribute("data-active-header-element","hamburger-menu"),this.setAttribute("data-active-header-element","hamburger-menu"),this.menuButton?.setAttribute("aria-expanded","true"),this.menuClose?.setAttribute("aria-expanded","true"),this.setBurgerTabbing(!0),this.menuClose?.focus()}closeMenu(){this.isMenuOpen()&&(document.body.removeAttribute("data-active-header-element"),document.documentElement.removeAttribute("data-overlay-overflow"),this.removeAttribute("data-active-header-element"),this.setBurgerTabbing(!1),this.menuButton?.setAttribute("aria-expanded","false"),this.menuClose?.setAttribute("aria-expanded","false"),this.menuButton?.focus())}openSearch(){document.body.setAttribute("data-active-header-element","search-overlay"),this.setAttribute("data-active-header-element","search-overlay"),this.searchInput?.focus(),this.headerBar?.setAttribute("data-search-open","true")}closeSearch(){this.isSearchOpen()&&(document.body.removeAttribute("data-active-header-element"),this.removeAttribute("data-active-header-element"),this.headerBar?.setAttribute("data-search-open","false"))}setTabbing(){if(!this.hamburgerMenu)return;const e="none"!==window.getComputedStyle(this.hamburgerMenu).display;this.setBurgerTabbing(!e)}setBurgerTabbing(e){this._burgerInteractive.forEach(t=>{e?t.removeAttribute("tabindex"):t.setAttribute("tabindex","-1")})}isMenuOpen(){return"hamburger-menu"===document.body.getAttribute("data-active-header-element")}isSearchOpen(){return"search-overlay"===document.body.getAttribute("data-active-header-element")}}class zt extends HTMLElement{constructor(){super(),this.form=this.querySelector("form"),this.formInput=this.form.querySelector("input")}connectedCallback(){this.form.addEventListener("submit",this.handleSubmit)}disconnectedCallback(){this.form.removeEventListener("submit",this.handleSubmit)}handleSubmit=async e=>{e.preventDefault();const t=this.form.getAttribute("action")||this.form.action||window.location.href,n=new URL(t,window.location.href);n.searchParams.set("q",this.formInput.value);try{const e=window.historyManager;if(!e)return void console.warn("HistoryManager not initialized yet");if(!await e.processExternalUrl(n))return}catch(e){return void console.error("Search navigation failed, input not cleared:",e)}this.formInput.value=""}}o(3110);class Gt{constructor(e){if(!e)throw new Error("No Cadence domain available");this.baseUrl=`https://${e}/api/cadence/widget`}async load(e,t=!1){if(!e)throw new Error("No channel ID specified");const n=`${this.baseUrl}/${e}?format=json`;try{const e=await fetch(n);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const r=await e.json();return this.formatResponse(r,t)}catch(e){throw new Error(`Failed to load Cadence data: ${e.message}`)}}formatResponse(e,t=!1){let n={};return e&&e.onNow&&e.onNow.programName?(n.programName=e.onNow.programName,t&&(n.rawData=e),n):{error:"Missing onNow or programName",rawData:e}}}var Wt=o(4196);class Yt{static durationInSeconds=e=>{if(!e.onDemand)return null;let t=0;const n=e.duration?.split(":");
2return n?(n.reverse().forEach((e,n)=>{let r=parseFloat(e);0===n?t+=r:1===n?t+=60*r:2===n&&(t+=3600*r)}),t):null};static formatTrackTime(e){const t=Math.floor(e||0);if(t<1)return"0:00";const n=Math.floor(t/3600),r=Math.floor(t%3600/60),o=t%60;return n>0?`${n}:${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`:`${r}:${String(o).padStart(2,"0")}`}static urlBaseName(e){return e.split("/").pop().split("?")[0]}}const Xt="Player:Play",Qt="Player:Pause",Jt="Player:Stop",Kt="persistentplayer_click",Zt="data-control-drawer-load-state",en="data-toggle-playing",tn="has-schedule",nn="has-song",rn="hide-name",on="data-schedule-program-name",an="data-schedule-start-time",sn="data-songinfo-album",un="data-songinfo-artist",cn="data-songinfo-image",ln="data-songinfo-song",dn="data-show-persistent-player-drawer",hn="streams-opt-out-url",fn="text-on-air",pn="text-playing",mn=".BrightspotPersistentPlayer .drawer",vn=`${mn} [data-last-stream] ps-stream`,gn=".BrightspotPersistentPlayer .player [data-stream-program-name]",yn="brightspot-persistent-player
2-state",_n="data-is-live",bn="data-is-ondemand",wn="data-track-current-time",Sn="state",An="playing",En="paused";let Tn=!1;const xn=window.location.href.indexOf("_event_debug")>=0,Ln=window.location.href.indexOf("_howler_debug")>=0;class In extends HTMLElement{#e=null;constructor(){super(),this.numStreams=0,this.stepTimer=null,this.timeDisplay=null,this.currentTime=null,this.isOnDemand=!1,this.duration=null,this.sliderViewportOriginX=null,this.currentSlider=null,this._dragIsSetUp=!1}get state(){return this.getAttribute(Sn)}set state(e){this.setAttribute(Sn,e)}get hasSchedule(){return this.hasAttribute(tn)}set hasSchedule(e){e?this.setAttribute(tn,""):this.removeAttribute(tn)}get hasSong(){return this.hasAttribute(nn)}set hasSong(e){e?this.setAttribute(nn,""):this.removeAttribute(nn)}get textOnAir(){return this.getAttribute(fn)}set textOnAir(e){this.setAttribute(fn,e)}get textPlaying(){return this.getAttribute(pn)}set textPlaying(e){this.setAttribute(pn,e)}get streamsOptOutUrl(){return this.getAttribute(hn)}set streamsOptOutUrl(e){this.setAttribute(hn,e)}get defaultStream(){return this.querySelectorAll(vn).item(0)}connectedCallback(){this.#e=new AbortController,this.cacheElements(),this.setAttribute(Sn,"load"),this.addEvents(),this.loadPreviousState(),this.setStreamRefreshInterval(),this.numStreams=this.querySelectorAll(".BrightspotPersistentPlayer .streamsList .item").length}disconnectedCallback(){this.#e.abort(),this._dragIsSetUp=!1}cacheElements=()=>{this.player=this.querySelector("[data-player]"),this.toggleBtnEl=this.querySelector("[data-control-toggle]"),this.drawerBtnEl=this.querySelector("[data-control-drawer]"),this.mobileScrubber=document.getElementById("thumb-mobile"),this.desktopScrubber=document.getElementById("thumb-desktop"),this.mobileSlider=document.getElementById("slider-mobile"),this.desktopSlider=document.getElementById("slider-desktop"),this.trackSliders=document.querySelectorAll(".BrightspotPersistentPlayer .trackSlider"),this.streamNameContainer=this.querySelector(".streamInfo .stream-metadata .name"),this.streamProgramName=this.querySelector(`${gn}`),this.scheduleStartTime=this.querySelector(`[${an}]`),this.scheduleProgramName=this.querySelector(`[${on}]`)};stopForNewAudio=e=>{e.detail.active!==this&&(this.pause(!1,!0),this.toggleBtnEl.removeAttribute(en))};addEvents=()=>{const{signal:e}=this.#e;document.addEventListener(Xt,this.handlePlay,{signal:e}),document.addEventListener(Qt,this.handlePause,{signal:e}),document.addEventListener(Jt,this.handleStop,{signal:e}),document.addEventListener(At,this.handleRefreshMeta,{signal:e}),document.addEventListener("keydown",this.handleGlobalKeyboardEvents,{signal:e}),document.addEventListener("NEW_ACTIVE_AUDIO_SOURCE",this.stopForNewAudio,{signal:e});const t=this.querySelectorAll(".skip");t&&t.forEach(t=>{["click","keypress"].forEach(n=>{t.addEventListener(n,this.handleSkip,{signal:e})})}),this.drawerBtnEl&&this.drawerBtnEl.addEventListener("click",this.toggleDrawer,{signal:e});const n=this.querySelector("[data-control-drawer-close]");n&&n.addEventListener("click",this.toggleDrawer,{signal:e});const r=this.querySelector("[data-control-drawer-overlay]");r&&r.addEventListener("click",this.handleDrawerOverlay,{signal:e});const o=this.querySelector("[data-last-stream]");o&&o.addEventListener("focusout",this.handleLastStreamDefocus,{signal:e}),this.toggleBtnEl&&this.toggleBtnEl.addEventListener("click",this.handlePlayPauseToggle,{signal:e}),this.trackSliders.forEach(t=>{t.querySelector(".scrub-trigger").addEventListener("click",this.handleScrubbing,{signal:e})});const i=this.querySelector(mn);i&&i.addEventListener("transitionend",this.handleDrawerState,{signal:e})};handlePause=e=>{this.pause(!1,e.detail.external),this.setToggle("paused"),xn&&console.log("player PAUSE")};handlePlay=e=>{this.loadAudioSource(e.detail.stream),this.play(),this.setToggle("playing"),xn&&console.log("player PLAY"),document.dispatchEvent(new CustomEvent("NEW_ACTIVE_AUDIO_SOURCE",{detail:{active:this}}))};handleStop=e=>{this.pause(!1,e.detail.external),this.setToggle("paused"),xn&&console.log("player STOP-PAUSE")};handleSkip=e=>{const t=e.currentTarget.classList.contains("forward")?15:-15;this.skip(t)};handleDrawerOverlay=e=>{e.stopPropagation(),e.preventDefault(),this.toggleDrawer()};handleDrawerState=e=>{document.documentElement.hasAttribute(dn)||this.setAttribute(Zt,"")};handleLastStreamDefocus=e=>{e.relatedTarget&&e.relatedTarget.classList.contains("button-audio-play-pause")||(this.closeDrawer(),this.drawerBtnEl&&this.drawerBtnEl.focus())};handleScrubbing=e=>{e.preventDefault(),this.scrub(e),xn&&console.log("click-scrub")};setStreamRefreshInterval=()=>{this._refreshInterval=setInterval(()=>{this.updateStreamInfo()},3e4)};toggleDrawer=()=>{document.documentElement.hasAttribute(dn)?this.closeDrawer():this.openDrawer()};loadAudioSource=e=>{let t=!1;const n=this.loadPreviousOnDemandState();if(this.removeAttribute(bn),this.removeAttribute(_n),this.audioSource&&e&&this.audioSource.id!==e.id&&(t=!0),this.player&&e){let t=[];
2e.urls.forEach(e=>{t.push(e.url)}),Ln&&console.log("Howler - Audio Source URLS:",t);const n=navigator.userAgent.indexOf("Firefox")>0,r=n;n&&(window.Howler._canPlayEvent="canplay");const o=new Wt.Howl({src:t,html5:!0,autoplay:!1,preload:r,onseek:e=>{this.updateTrackInfo()},onend:e=>{this.completeClearAndStop()}});this.createHowlAudioEl(o,e),e.onDemand&&(this.isOnDemand=!0,this._dragIsSetUp||this.dragSetup())}n&&(this.currentTime=n.currentTime),t&&(this.gaEvent("switch",Kt),this.currentTime=0),this.savePlayerStateToSession()};dragSetup=()=>{if(this._dragIsSetUp)return;this._dragIsSetUp=!0;const{signal:e}=this.#e;this.mobileScrubber.addEventListener("touchstart",this.dragStart,{signal:e}),this.desktopScrubber.addEventListener("mousedown",this.dragStart,{signal:e}),this.halfScrubber=window.getComputedStyle(document.querySelector(".thumb")).width.replace("px","")/2,xn&&console.log("drag-scrub setup")};dragStart=e=>{e=e||window.event,Tn=!0,e.preventDefault(),this.currentSlider=e.target.parentElement,this.sliderViewportOriginX=this.currentSlider.getBoundingClientRect().left,document.addEventListener("pointerup",this.dragEnd),document.addEventListener("pointermove",this.dragScrub),xn&&console.log("drag-scrub start",e)};dragScrub=e=>{(e=e||window.event).preventDefault(),xn&&console.log("drag-scrub go",e,this.sliderViewportOriginX);let t=e.clientX-this.sliderViewportOriginX-this.halfScrubber;const n=this.currentSlider.offsetWidth;let r=0;t<0&&(t=0),t>n&&(t=n),r=t/n,this.currentTime=r*this.howlAudioElement.duration(),this.updateTrackInfo()};dragEnd=e=>{xn&&console.log("drag-scrub end"),this.howlAudioElement.seek(this.currentTime),this.updateTrackInfo(),this.savePlayerStateToSession(),document.removeEventListener("pointerup",this.dragEnd),document.removeEventListener("pointermove",this.dragScrub),Tn=!1};closeDrawer=()=>{this.gaEvent("collapse"),document.documentElement.removeAttribute(dn)};openDrawer=()=>{this.removeAttribute(Zt),this.gaEvent("expand"),document.documentElement.setAttribute(dn,"")};createHowlAudioEl=(e,t)=>{this.howlAudioElement&&(this.howlAudioElement.unload(),this.howlAudioElement=null),this.howlAudioElement=e,this.audioSource=t,this.loaded=!0};step=()=>{Tn||this.isOnDemand&&(this.currentTime=this.howlAudioElement.seek(),this.updateTrackInfo(),this.savePlayerStateToSession())};scrub=e=>{let t=e.offsetX;const n=e.target.offsetWidth;let r=0;t<0&&(t=0),t>n&&(t=n),r=t/n,this.isOnDemand&&(this.currentTime=r*this.howlAudioElement.duration(),this.howlAudioElement.seek(this.currentTime),this.updateTrackInfo(),this.savePlayerStateToSession())};updateTrackInfo=()=>{this.updateSlider(),this.updateDisplayTime(),this.savePlayerStateToSession()};updateSlider=(e,t)=>{if(!this.trackSliders)return;const n=e||this.currentTime,r=t||this.howlAudioElement.duration(),o=r&&r>0?100*n/r+"%":0;this.trackSliders.forEach(e=>{e.querySelector(".thumb").style.left=o,e.querySelector(".progressBar").style.width=o})};updateDisplayTime=e=>{if(this.timeDisplay=this.querySelector(`[${wn}]`),this.timeDisplay){const t=Math.floor(e)||Math.floor(this.currentTime);this.timeDisplay.innerHTML=Yt.formatTrackTime(t)}};togglePlayPause=()=>{this.getAttribute(Sn)===An?this.pause():this.getAttribute(Sn)===En&&this.play()};skip=e=>{if(this.howlAudioElement&&this.isOnDemand)if(this.getAttribute(Sn)===An)this.currentTime=this.howlAudioElement.seek()||0,e<0?this.howlAudioElement.seek(Math.max(this.currentTime+e,0)):this.howlAudioElement.seek(Math.min(this.currentTime+e,this.howlAudioElement.duration()));else{const t=this.loadPreviousOnDemandState();if(!t)return;let n=t.currentTime;n=e<0?Math.max(n+e,0):Math.min(n+e,t.duration),t.currentTime=n,this.updateDisplayTime(n),this.updateSlider(n,t.duration),sessionStorage.setItem(yn,JSON.stringify(t))}};triggerPlayerEvent=e=>{this.audioSource&&document.dispatchEvent(new CustomEvent(e,{detail:{stream:this.audioSource}}))};loadPreviousState=()=>{let e=sessionStorage.getItem(yn);e?(e=JSON.parse(e),e.currentTime&&(this._previousCurrentTime=e.currentTime),e.stream&&(this.loadAudioSource(e.stream),this.pause(!0)),this.handleRefreshMeta()):this.loadDefaultStream()};loadPreviousOnDemandState=()=>{const e=sessionStorage.getItem(yn);return e?JSON.parse(e):null};loadDefaultStream=()=>{const e=this.defaultStream;if(e){const t=e.stream;this.loadAudioSource(t),this.pause(!0)}};
2savePlayerStateToSession=()=>{let e={};const t=sessionStorage.getItem(yn);t&&(e=JSON.parse(t)),this.audioSource&&(e.stream=this.audioSource,this.isOnDemand?e.duration=Yt.durationInSeconds(this.audioSource):e.duration=null),this.howlAudioElement&&(e.currentTime=this.currentTime),e.stream&&sessionStorage.setItem(yn,JSON.stringify(e))};pause=(e=!1,t=!1)=>{this.howlAudioElement&&this.howlAudioElement.duration()&&(this.updateSlider(this.currentTime,Math.floor(this.howlAudioElement.duration())),this.savePlayerStateToSession(),window.clearInterval(this.stepTimer),this.howlAudioElement.pause(),this.setAttribute(Sn,En)),e||this.gaEvent("pause",Kt),this.updateStreamInfo()};play=(e=!1,t=!1)=>{if(this.howlAudioElement.play(),this.setAttribute(Sn,An),this.audioSource.onDemand&&this.audioSource.duration){this.setAttribute(bn,"");const e=this.loadPreviousOnDemandState();e?.currentTime&&this.howlAudioElement.seek(e.currentTime);const t=this.querySelector("[data-track-duration]");t&&(t.innerHTML=this.audioSource.duration)}else this.setAttribute(_n,"");this.stepTimer=window.setInterval(this.step.bind(this),250),e||this.gaEvent("play",Kt),this.updateStreamInfo()};completeClearAndStop=()=>{this.gaEvent("complete",Kt),this.triggerPlayerEvent(Qt),this.setAttribute(Sn,"completed"),this.howlAudioElement.stop(),this.timeDisplay=this.querySelector(`[${wn}]`),this.currentTime=0,this.timeDisplay.innerHTML="0:00",sessionStorage.removeItem(yn)};updateStreamInfo=()=>{if(this.clearStreamInfo(),this.audioSource.channelId){const e=this.dataset.cadenceDomain,t=this.audioSource.name;new Gt(e).load(this.audioSource.channelId).then(e=>{this.clearStreamInfo(),this.updateStreamInfoFromNowPlayingApi(e,t)}).catch(()=>{this.clearStreamInfo(),this.setStreamInfoFallback()})}else this.updateStreamInfoFromCmsData(this.audioSource.programName)};setStreamInfoFallback=()=>{this.streamNameContainer.innerHTML="Stream info unavailable"};updateStreamInfoFromNowPlayingApi=(e,t)=>{if(!this.scheduleProgramName||!this.scheduleStartTime||!this.streamProgramName)return;let n=this.querySelector(`[${sn}]`),r=this.querySelector(`[${un}]`),o=this.querySelector(`[${cn}]`),i=this.querySelector(`[${ln}]`);if(t&&n&&r&&o&&i)if(e.programName&&(this.streamNameContainer?(this.streamNameContainer.innerHTML=`<span class="live">Live</span> ${t}`,this.streamProgramName.innerHTML=e.programName):(this.streamNameContainer?this.streamNameContainer.innerHTML=t:this.streamNameContainer.innerHTML=this.textPlaying,this.streamProgramName.innerHTML=e.name),this.removeAttribute(rn)),e.song){if(e.song.artworkUrl60){let t=document.createElement("img");t.src=e.song.artworkUrl60,o.appendChild(t)}e.song.collectionName?n.innerHTML=e.song.collectionName:e.song.ensembles&&(n.innerHTML=e.song.ensembles),e.song.artistName?r.innerHTML=e.song.artistName:e.song.composerName&&(r.innerHTML=e.song.composerName),(e.song.artistName||e.song.composerName)&&(e.song.collectionName||e.song.ensembles)&&(n.innerHTML+=" - "),i.innerHTML=e.song.trackName,this.hasSong=!0}else e.next&&(this.scheduleProgramName.innerHTML=e.next.name,this.scheduleStartTime.innerHTML=e.next.start_time,this.hasSchedule=!0)};clearStreamInfo=()=>{this.hasSchedule=!1,this.hasSong=!1,[`[${on}]`,`[${an}]`,".BrightspotPersistentPlayer .player [data-stream-name]",`${gn}`,`[${sn}]`,`[${un}]`,`[${cn}]`,`[${ln}]`].forEach(e=>{let t=this.querySelector(e);t&&(t.innerHTML="")}),this.setAttribute(rn,"")};updateStreamInfoFromCmsData=e=>{this.streamProgramName&&this.streamNameContainer&&(e||this.audioSource.programName?(this.streamProgramName.innerHTML=e||this.audioSource.programName,this.audioSource.name&&this.streamNameContainer?this.streamNameContainer.innerHTML=`<span class="live">Live</span> ${this.audioSource.name}`:this.streamNameContainer.innerHTML=`${this.textPlaying}`):this.audioSource.name?(this.streamProgramName.innerHTML=this.audioSource.name,this.streamNameContainer.innerHTML=`${this.textPlaying}`):this.audioSource.urls&&this.audioSource.urls[0]&&this.audioSource.urls[0].url&&(this.streamProgramName.innerHTML=Yt.urlBaseName(this.audioSource.urls[0].url),this.streamNameContainer.innerHTML=`${this.textPlaying}`),this.removeAttribute(rn))};updateScheduleProgramNameAndStartTime=(e,t)=>
2{e&&t&&this.scheduleProgramName&&this.scheduleStartTime&&(this.scheduleProgramName.innerHTML=e,this.scheduleStartTime.innerHTML=function(e){let t=e.split(":");if(2===t.length){let e=1*t[0],n=1*t[1],r="AM",o="";return e>=12&&(r="PM"),e>12&&(e-=12),n<10&&(o="0"),`${e}:${o}${n} ${r}`}return e}(t),this.hasSchedule=!0)};handleGlobalKeyboardEvents=e=>{const t=navigator.platform.toUpperCase().indexOf("MAC")>=0;let n=e.ctrlKey;const r=e.code.toUpperCase();t&&(n=e.metaKey),e.shiftKey&&n&&("SPACE"===r?this.togglePlayPause():"ARROWRIGHT"===r?this.skip(15):"ARROWLEFT"===r?this.skip(-15):"ARROWUP"===r?this.openDrawer():"ARROWDOWN"===r&&this.closeDrawer())};handlePlayPauseToggle=()=>{this.getAttribute(Sn)===An?this.triggerPlayerEvent(Jt):this.triggerPlayerEvent(Xt)};setToggle=e=>{"playing"===e?this.toggleBtnEl.setAttribute(en,""):"paused"===e&&this.toggleBtnEl.hasAttribute(en)&&this.toggleBtnEl.removeAttribute(en)};handleRefreshMeta=()=>{this.audioSource&&this.audioSource.id&&Mn.findAllStreamsInPlayer(this).forEach(e=>{let t=e.stream;t&&this.audioSource.id===t.id&&(this.audioSource=t,this.updateStreamInfo())})};gaEvent(e,t="e_player"){let n="";this.audioSource&&(n=this.audioSource.name),function(e,t=250,n=1e4){return new Promise((r,o)=>{if(e)r();else{let i=0,a=setInterval(()=>{e?(r(),clearInterval(a)):i>=n&&o(),i+=t},t)}})}(window.dataLayer).then(()=>{window.dataLayer.push({event:t,action:e,name:n})}).catch(()=>{})}}class kn extends HTMLElement{get format(){return this.getAttribute("data-stream-format")}get url(){return this.getAttribute("data-stream-url")}static findUrlsInStream(e){return e.querySelectorAll("ps-stream-url")}constructor(){super()}}const Cn="external",Pn="playing",On="data-toggle-playing";class Mn extends HTMLElement{#e;get external(){return this.hasAttribute(Cn)}set external(e){e?this.setAttribute(Cn,""):this.removeAttribute(Cn)}get name(){return this.getAttribute("data-stream-name")}get id(){return this.getAttribute("data-stream-id")}get channelId(){return this.getAttribute("data-stream-channelId")}get duration(){return this.getAttribute("data-stream-duration")}get playing(){return this.hasAttribute(Pn)}set playing(e){return this.toggleAttribute(Pn,e)}get programName(){return this.getAttribute("data-stream-program-name")}get urls(){return kn.findUrlsInStream(this)}get onDemand(){return this.hasAttribute("on-demand")}get stream(){let e={name:this.name,id:this.id,channelId:this.channelId,programName:this.programName,onDemand:this.onDemand,duration:this.duration},t=[];return this.urls.forEach(e=>{let n={format:e.format,url:e.url};t.push(n)}),e.urls=t,e}constructor(){super()}connectedCallback(){this.#e=new AbortController,this.addEvents(),this.instanceIdentifier=Symbol("stream instance")}disconnectedCallback(){this.#e.abort()}addEvents=()=>{const{signal:e}=this.#e;document.addEventListener(Xt,this.respondToPlayEvent,{signal:e}),document.addEventListener(Qt,this.respondToPauseStopEvents,{signal:e}),document.addEventListener(Jt,this.respondToPauseStopEvents,{signal:e}),this.addEventListener("click",this.handlerClick,{signal:e})};handlerClick=()=>{this.playing?(this.triggerPlayerEvent(Qt),this.playing=!1,this.setButtonDisplayState("paused")):(this.triggerPlayerEvent("Player:LoadAudio"),this.triggerPlayerEvent(Xt),this.playing=!0,this.setButtonDisplayState("playing"))};setButtonDisplayState=e=>{"paused"===e?this.getAttribute(On)&&this.removeAttribute(On):"playing"===e&&this.setAttribute(On,"")};triggerPlayerEvent=e=>{if(this.stream){let t=new CustomEvent(e,{detail:{external:this.external,stream:this.stream}});document.dispatchEvent(t)}};respondToPlayEvent=e=>{if(!e.detail)return;const t=e.detail.stream;t&&t.id===this.stream.id?this.playing=!0:this.playing=!1};respondToPauseStopEvents=e=>{this.playing=!1};static findAllStreamsInPlayer=e=>e.querySelectorAll("ps-stream")}function Nn(e){e.forEach(({object:e,tag:t})=>{customElements.get(t)||customElements.define(t,e)})}o(4423);const Dn={IMMEDIATE:"immediate",VISIBLE:"visible"},Bn=Dn.VISIBLE,Hn={"gbh-accordion":{loader:()=>o.e(131).then(o.bind(o,6297)).then(e=>e.Accordion),strategy:Dn.VISIBLE},"gbh-amount-selector":{loader:()=>o.e(168).then(o.bind(o,6448)).then(e=>e.AmountSelector),strategy:Dn.IMMEDIATE},"gbh-carousel-list":{loader:()=>Promise.all([o.e(454),o.e(522),o.e(361)]).then(o.bind(o,654)).then(e=>e.CarouselList),strategy:Dn.VISIBLE},"gbh-interstitial":{loader:()=>o.e(786).then(o.bind(o,7775)).then(e=>e.LeavingSiteInterstitial),strategy:Dn.IMMEDIATE},"gbh-liveblog-posts":{loader:()=>o.e(520).then(o.bind(o,2460)).then(e=>e.BlogLoadMore),strategy:Dn.VISIBLE},"gbh-newsletter-recaptcha-subscribe-form":{loader:()=>o.e(835).then(o.bind(o,6636)).then(e=>e.NewsletterRecaptchaSubscribeForm),strategy:Dn.VISIBLE},"gbh-pledge-popup":{loader:()=>o.e(662).then(o.bind(o,6889)).then(e=>e.PledgePopup),strategy:Dn.IMMEDIATE},"gbh-season-filter":{loader:()=>o.e(265).then(o.bind(o,2073)).then(e=>e.VideoSeasonFilter),strategy:Dn.IMMEDIATE},"gbh-streamoverlay":{loader:()=>o.e(625).then(o.bind(o,9374)).then(e=>e.StreamOverlay),strategy:Dn.VISIBLE},"gbh-tabs":{loader:()=>Promise.all([o.e(522),o.e(575)]).then(o.bind(o,6927)).then(e=>e.Tabs),strategy:Dn.VISIBLE},"gbh-transcript":{loader:()=>o.e(321).then(o.bind(o,7971)).then(e=>e.Transcript),strategy:Dn.VISIBLE},"gbh-tvshow-head":{loader:()=>o.e(436).then(o.bind(o,6650)).then(e=>e.TVShowHead),strategy:Dn.VISIBLE},"ps-audio-progress-bar":{loader:()=>o.e(683).then(o.bind(o,3923)).then(e=>e.HTML5AudioProgressBar),strategy:Dn.IMMEDIATE},"ps-carousel":{loader:()=>Promise.all([o.e(522),o.e(897)]).then(o.bind(o,5097)).then(e=>e.Carousel),strategy:Dn.VISIBLE},"ps-html5player":{loader:()=>o.e(937).then(o.bind(o,52)).then(e=>e.HTML5VideoPlayer),strategy:Dn.VISIBLE},"ps-liveblog":{loader:()=>
2o.e(477).then(o.bind(o,6876)).then(e=>e.LiveBlog),strategy:Dn.VISIBLE},"ps-list-loadmore":{loader:()=>o.e(216).then(o.bind(o,7828)).then(e=>e.ListLoadMore),strategy:Dn.VISIBLE},"ps-search-filters":{loader:()=>Promise.all([o.e(454),o.e(120)]).then(o.bind(o,9637)).then(e=>e.SearchFilters),strategy:Dn.VISIBLE},"ps-search-results-module":{loader:()=>Promise.all([o.e(454),o.e(670),o.e(235)]).then(o.bind(o,1375)).then(e=>e.SearchResultsModule),strategy:Dn.VISIBLE},"ps-section-nav":{loader:()=>Promise.all([o.e(522),o.e(410)]).then(o.bind(o,5342)).then(e=>e.SectionNavigation),strategy:Dn.IMMEDIATE},"ps-toggler":{loader:()=>o.e(698).then(o.bind(o,4977)).then(e=>e.PsToggler),strategy:Dn.IMMEDIATE},"ps-youtubeplayer":{loader:()=>o.e(93).then(o.bind(o,1863)).then(e=>e.YouTubeVideoPlayer),strategy:Dn.VISIBLE},"gbh-checkbox-group":{loader:()=>Promise.all([o.e(454),o.e(745)]).then(o.bind(o,1513)).then(e=>e.CheckBoxGroup),strategy:Dn.VISIBLE},"gbh-email-input":{loader:()=>o.e(240).then(o.bind(o,2387)).then(e=>e.EmailInput),strategy:Dn.VISIBLE},"gbh-form":{loader:()=>o.e(918).then(o.bind(o,2390)).then(e=>e.GbhForm),strategy:Dn.VISIBLE},"gbh-form-recaptcha":{loader:()=>o.e(513).then(o.bind(o,6125)).then(e=>e.GbhFormRecaptcha),strategy:Dn.VISIBLE},"gbh-select":{loader:()=>o.e(684).then(o.bind(o,2750)).then(e=>e.Select),strategy:Dn.VISIBLE},"gbh-state-select":{loader:()=>Promise.all([o.e(454),o.e(370)]).then(o.bind(o,3129)).then(e=>e.StateSelect),strategy:Dn.VISIBLE},"gbh-submit":{loader:()=>o.e(942).then(o.bind(o,1409)).then(e=>e.FormSubmit),strategy:Dn.VISIBLE},"gbh-text-input":{loader:()=>o.e(811).then(o.bind(o,9454)).then(e=>e.TextInput),strategy:Dn.VISIBLE}},qn=new Map,Rn=e=>{const t="function"==typeof e?{loader:e,strategy:Bn}:e,n=Object.values(Dn).includes(t.strategy)?t.strategy:Bn;return{loader:t.loader,strategy:n}},Fn=e=>{if(customElements.get(e))return Promise.resolve();if(qn.has(e))return qn.get(e);const t=Hn[e];if(!t)return Promise.resolve();const{loader:n}=Rn(t),r=n().then(t=>{if(!t)throw new Error(`[componentLoader] No custom element export found for ${e}`);customElements.get(e)||customElements.define(e,t),(e=>{jn&&document.querySelectorAll(e).forEach(e=>{jn.unobserve(e)})})(e)}).catch(t=>{throw console.error(`[componentLoader] Failed to load ${e}`,t),t}).finally(()=>{qn.delete(e)});return qn.set(e,r),r};let jn;const $n=(e=document)=>{let t=null;"IntersectionObserver"in window&&(t=jn||(jn=new IntersectionObserver(e=>{e.forEach(e=>{if(!e.isIntersecting)return;const t=e.target.tagName.toLowerCase();Fn(t).catch(()=>{}),jn.unobserve(e.target)})},{rootMargin:"200px"}),jn)),Object.entries(Hn).forEach(([n,r])=>{if(customElements.get(n))return;const o=e.querySelectorAll(n);if(!o.length)return;const{strategy:i}=Rn(r),a=i===Dn.IMMEDIATE||[...o].some(e=>e.hasAttribute("data-immediate")||e.hasAttribute("data-critical"));!t||a?Fn(n).catch(()=>{}):o.forEach(e=>{t.observe(e)})})};!function(){if(window.historyManager)return window.historyManager;const e=new It;window.historyManager=e,window.historyManagerInitialized=!0}();const Un=()=>{vt("Setting up ad media query and ad manager"),window.googleAdManager=new yt,window.googleTagUtility=new pt,window.eventDelegatorTracking=Mt,window.eventDelegatorRecaptcha=Ht,new kt,window.recaptchaSiteKey&&(window.recaptchaClient=new Ct),Nn([{object:qt,tag:"ps-google-dfp-ad"},{object:Vt,tag:"ps-header"},{object:zt,tag:"gbh-search-form"},{object:Rt,tag:"gbh-bulletin-bar"},{object:Mn,tag:"ps-stream"},{object:kn,tag:"ps-stream-url"},{object:In,tag:"ps-brightspot-persistent-player"}]),Nn([{object:Ft,tag:"pbs-partner-player"}]),$n()};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Un):Un(),document.addEventListener("PAGE_LOADED",()=>{requestAnimationFrame(()=>{$n()})})}()}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.