/*! JW Player version 8.33.2 Copyright (c) 2024, JW Player, All Rights Reserved This source code and its use and distribution is subject to the terms and conditions of the applicable license agreement. https://www.jwplayer.com/tos/ This product includes portions of other software. For the full text of licenses, see https://ssl.p.jwpcdn.com/player/v/8.33.2/notice.txt */ (self.webpackChunkjwplayer=self.webpackChunkjwplayer||[]).push([[581,681,716],{8377:(t,e,i)=>{"use strict";i.d(e,{M:()=>n,_:()=>s});const n=function(t,e){let i;const n=t.kind||"cc";return i=t.default||t.defaulttrack?"default":t._id||t.file||n+e,i},s=function(t,e){let i=t.label||t.name||t.language;return i||(i="CC",(e+=1)>1&&(i+=` [${e}]`)),{label:i,unknownCount:e}}},6103:(t,e,i)=>{"use strict";i.d(e,{VS:()=>w,xl:()=>p});var n=i(7477),s=i(2894),o=i(6886),a=i(7941),r=i(7387),l=i(2957),c=i(4446);const d=t=>{throw new c.rG(null,t)};const h=function(t){return t.map((t=>new n.Z(t.begin,t.end,t.text)))},u=function(t,e,n,o){let u,p,w=t.responseXML?t.responseXML.firstChild:null;if(w)for("xml"===(0,a.r1)(w)&&(w=w.nextSibling);w&&w.nodeType===w.COMMENT_NODE;)w=w.nextSibling;try{if(w&&"tt"===(0,a.r1)(w)){if(!t.responseXML)throw new Error("Empty XML response");u=function(t){t||d(306007);const e=[];let i=t.getElementsByTagName("p"),n=30;const s=t.getElementsByTagName("tt");if(null!=s&&s[0]){const t=parseFloat(s[0].getAttribute("ttp:frameRate")||"");isNaN(t)||(n=t)}i||d(306005),i.length||(i=t.getElementsByTagName("tt:p"),i.length||(i=t.getElementsByTagName("tts:p")));for(let s=0;s\s+<").replace(/(<\/?)tts?:/g,"$1").replace(//g,"\r\n");if(c){const t=o.getAttribute("begin")||"",i=o.getAttribute("dur")||"",s=o.getAttribute("end")||"",a={begin:(0,l.m9)(t,n),text:c};s?a.end=(0,l.m9)(s,n):i&&(a.end=(a.begin||0)+(0,l.m9)(i,n)),e.push(a)}}return e.length||d(306005),e}(t.responseXML),p=h(u),delete e.xhr,n(p)}else{const a=t.responseText;a.indexOf("WEBVTT")>=0?i.e(347).then(function(t){return i(2776).default}.bind(null,i)).catch((0,s.Jt)(301131)).then((t=>{const i=new t(window);p=[],i.oncue=function(t){p.push(t)},i.onflush=function(){delete e.xhr,n(p)},i.parse(a)})).catch((t=>{delete e.xhr,o((0,c.Mm)(null,c.Y7,t))})):(u=(0,r.Z)(a),p=h(u),delete e.xhr,n(p))}}catch(t){delete e.xhr,o((0,c.Mm)(null,c.Y7,t))}},p=function(t,e,i){t.xhr=(0,o.h)(t.file,(function(n){u(n,t,e,i)}),((t,e,n,s)=>{i((0,c.l9)(s,c.Y7))}))},w=function(t){t&&t.forEach((t=>{const e=t.xhr;e&&(e.onload=null,e.onreadystatechange=null,e.onerror=null,"abort"in e&&e.abort()),delete t.xhr}))}},7387:(t,e,i)=>{"use strict";i.d(e,{Z:()=>o});var n=i(2957);const s=t=>{const e={};let i=t.split("\r\n");1===i.length&&(i=t.split("\n"));let s=1;if(i[0].indexOf(" --\x3e ")>0&&(s=0),i.length>s+1&&i[s+1]){const t=i[s],o=t.indexOf(" --\x3e ");o>0&&(e.begin=(0,n.m9)(t.substr(0,o)),e.end=(0,n.m9)(t.substr(o+5)),e.text=i.slice(s+1).join("\r\n"))}return e};function o(t){const e=[];let i=(t=(0,n.fy)(t)).split("\r\n\r\n");1===i.length&&(i=t.split("\n\n"));for(let t=0;t{"use strict";i.d(e,{Z:()=>o});let n=window.VTTCue;const s=t=>{if("string"!=typeof t)return!1;return!!{start:!0,middle:!0,end:!0,left:!0,right:!0}[t.toLowerCase()]&&t.toLowerCase()};if(!n){const t="auto";n=function(e,i,n){const o=this;o.hasBeenReset=!1;let a="",r=!1,l=e,c=i,d=n,h=null,u="",p=!0,w=t,g="start",m=t,j=100,f="middle";Object.defineProperty(o,"id",{enumerable:!0,get:()=>a,set(t){a=`${t}`}}),Object.defineProperty(o,"pauseOnExit",{enumerable:!0,get:()=>r,set(t){r=Boolean(t)}}),Object.defineProperty(o,"startTime",{enumerable:!0,get:()=>l,set(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");l=t,this.hasBeenReset=!0}}),Object.defineProperty(o,"endTime",{enumerable:!0,get:()=>c,set(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");c=t,this.hasBeenReset=!0}}),Object.defineProperty(o,"text",{enumerable:!0,get:()=>d,set(t){d=`${t}`,this.hasBeenReset=!0}}),Object.defineProperty(o,"region",{enumerable:!0,get:()=>h,set(t){h=t,this.hasBeenReset=!0}}),Object.defineProperty(o,"vertical",{enumerable:!0,get:()=>u,set(t){const e=(t=>"string"==typeof t&&(!!{"":!0,lr:!0,rl:!0}[t.toLowerCase()]&&t.toLowerCase()))(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");u=e,this.hasBeenReset=!0}}),Object.defineProperty(o,"snapToLines",{enumerable:!0,get:()=>p,set(t){p=Boolean(t),this.hasBeenReset=!0}}),Object.defineProperty(o,"line",{enumerable:!0,get:()=>w,set(e){if("number"!=typeof e&&e!==t)throw new SyntaxError("An invalid number or illegal string was specified.");w=e,this.hasBeenReset=!0}}),Object.defineProperty(o,"lineAlign",{enumerable:!0,get:()=>g,set(t){const e=s(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");g=e,this.hasBeenReset=!0}}),Object.defineProperty(o,"position",{enumerable:!0,get:()=>m,set(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");m=t,this.hasBeenReset=!0}}),Object.defineProperty(o,"size",{enumerable:!0,get:()=>j,set(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");j=t,this.hasBeenReset=!0}}),Object.defineProperty(o,"align",{enumerable:!0,get:()=>f,set(t){const e=s(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");f=e,this.hasBeenReset=!0}}),o.displayState=void 0},n.prototype.getCueAsHTML=function(){return window.WebVTT.convertCueToDOMTree(window,this.text)}}const o=n},5099:(t,e,i)=>{"use strict";i.d(e,{Z:()=>s});const n=(t,e,i)=>{const n=new Error(i);return n.name=t,n.code=e,n};function s(t){return new Promise((function(e,i){if(t.paused)return i(n("NotAllowedError",0,"play() failed."));let s;const o=function(t){if(s(),"playing"!==t.type){const e=`The play() request was interrupted by a "${t.type}" event.`;return"error"===t.type?i(n("NotSupportedError",9,e)):i(n("AbortError",20,e))}e()},a=function(){t.addEventListener("playing",o),t.addEventListener("abort",o),t.addEventListener("error",o),t.addEventListener("pause",o)};s=function(){t.removeEventListener("play",a),t.removeEventListener("playing",o),t.removeEventListener("pause",o),t.removeEventListener("abort",o),t.removeEventListener("error",o)},t.addEventListener("play",a)}))}},686:(t,e,i)=>{"use strict";i.d(e,{s:()=>s,v:()=>o});const n=t=>void 0===t?120:Math.max(t,0),s=(t,e)=>t!==1/0&&Math.abs(t)>=Math.max(n(e),0),o=(t,e)=>{let i="VOD";return t===1/0?i="LIVE":t<0&&(i=s(t,n(e))?"DVR":"LIVE"),i}},5678:(t,e,i)=>{"use strict";i.d(e,{e:()=>n});const n=t=>{var e;const i=1e3*(null==t||null==(e=t.video)?void 0:e.currentTime);return null!=t&&t.startDateTime&&i?new Date(t.startDateTime+i):null}},4667:(t,e,i)=>{"use strict";i.d(e,{Z:()=>o});var n=i(2799);let s;function o(t){return s||(s=new DOMParser),(0,n.gB)((0,n.oH)(s.parseFromString(t,"image/svg+xml").documentElement))}},1831:(t,e,i)=>{"use strict";i.d(e,{R:()=>h,Z:()=>p});var n=i(8348),s=i(2894),o=i(328),a=i(1643),r=i(974),l=i(2799),c=i(6042);let d;const h={back:!0,backgroundOpacity:50,edgeStyle:null,fontSize:14,fontOpacity:100,fontScale:.05,preprocessor:c.yR,windowOpacity:0},u=function(t){const e=t.player;let o,u,p,w,g,m,j,f;const b=document.createElement("div");b.className="jw-captions jw-reset";const y=()=>{const t=e.get("containerHeight");if(!t)return;let i;if(e.get("fullscreen")&&n.OS.iOS)i=null;else{const s=t*j;i=Math.round(10*(t=>{const i=e.get("mediaElement");if(null!=i&&i.videoHeight){const{videoWidth:t,videoHeight:s}=i,o=t/s;let a=e.get("containerHeight"),r=e.get("containerWidth");if(e.get("fullscreen")&&n.OS.mobile){const{screen:t}=window;t.orientation&&(a=t.availHeight,r=t.availWidth)}if(r&&a&&t&&s)return(r/a>o?a:s*r/t)*j}return t})(s))/10}e.get("renderCaptionsNatively")?((t,e)=>{const i=`#${t} .jw-video::-webkit-media-text-track-display`;e&&(e+="px",n.OS.iOS&&(0,r.iv)(i,{fontSize:"inherit"},t,!0)),f.fontSize=e,(0,r.iv)(i,f,t,!0)})(e.get("id"),i):(0,r.oB)(b,{fontSize:i})},v=()=>{if(!(0,c.xV)(o.fontSize))return;e.get("containerHeight")?j=h.fontScale*(o.userFontScale||1)*o.fontSize/h.fontSize:e.once("change:containerHeight",v,this)},x=(t,e,i)=>{const n=(0,r.HY)("#000000",i);"dropShadow"===t?e.textShadow=`0 2px 1px ${n}`:"raised"===t?e.textShadow=`0 0 5px ${n}, 0 1px 5px ${n}, 0 2px 5px ${n}`:"depressed"===t?e.textShadow=`0 -2px 1px ${n}`:"uniform"===t&&(e.textShadow=`-2px 0 1px ${n},2px 0 1px ${n},0 -2px 1px ${n},0 2px 1px ${n},-1px 1px 1px ${n},1px 1px 1px ${n},1px -1px 1px ${n},1px 1px 1px ${n}`)},k=(t,e)=>{y(),((t,e)=>{n.Browser.safari&&(0,r.iv)(`#${t} .jw-video::-webkit-media-text-track-display-backdrop`,{backgroundColor:e.backgroundColor},t,!0),(0,r.iv)(`#${t} .jw-video::-webkit-media-text-track-display`,f,t,!0),(0,r.iv)(`#${t} .jw-video::cue`,e,t,!0)})(t,e),((t,e)=>{(0,r.iv)(`#${t} .jw-text-track-display`,f,t),(0,r.iv)(`#${t} .jw-text-track-cue`,e,t)})(t,e)};this.show=function(){(0,l.cn)(b,"jw-captions-enabled")},this.hide=function(){(0,l.IV)(b,"jw-captions-enabled")},this.populate=function(t){e.get("renderCaptionsNatively")||(p=[],u=t,t?this.selectCues(t,w):this.renderCues())},this.resize=function(){y(),this.renderCues(!0)},this.renderCues=function(t){t=Boolean(t),d&&d.processCues(window,p,b,t)},this.selectCues=function(t,i){if(!t||!t.data||!i||e.get("renderCaptionsNatively"))return;const n=this.getAlignmentPosition(t,i);!1!==n&&(p=this.getCurrentCues(t.data,n),this.renderCues(!0))},this.getCurrentCues=function(t,e){return(0,c.hX)(t,(function(t){return e>=t.startTime&&(!t.endTime||e<=t.endTime)}))},this.getAlignmentPosition=function(t,e){const i=t.source,n=e.metadata;let s=e.currentTime;return i&&n&&(0,c.hj)(n[i])&&(s=n[i]),s},this.clear=function(){(0,l.cS)(b)},this.setup=function(t,i){g=document.createElement("div"),m=document.createElement("span"),g.className="jw-captions-window jw-reset",m.className="jw-captions-text jw-reset",o=Object.assign({},h,i),j=h.fontScale;const n=()=>{v(o.fontSize);const e=o.windowColor,i=o.windowOpacity,n=o.edgeStyle;f={};const s={};((t,e)=>{const i=e.color,n=e.fontOpacity;if((i||n!==h.fontOpacity)&&(t.color=(0,r.HY)(i||"#ffffff",n)),e.back){const i=e.backgroundColor,n=e.backgroundOpacity;i===h.backgroundColor&&n===h.backgroundOpacity||(t.backgroundColor=(0,r.HY)(i,n))}else t.background="transparent";e.fontFamily&&(t.fontFamily=e.fontFamily),e.fontStyle&&(t.fontStyle=e.fontStyle),e.fontWeight&&(t.fontWeight=e.fontWeight),e.textDecoration&&(t.textDecoration=e.textDecoration)})(s,o),(e||i!==h.windowOpacity)&&(f.backgroundColor=(0,r.HY)(e||"#000000",i)),x(n,s,o.fontOpacity),o.back||null!==n||x("uniform",s),(0,r.oB)(g,f),(0,r.oB)(m,s),k(t,s)};n(),g.appendChild(m),b.appendChild(g),e.change("captionsTrack",(function(t,e){this.populate(e)}),this),e.set("captions",o),e.on("change:captions",((t,e)=>{o=e,n()}))},this.element=function(){return b},this.destroy=function(){e.off(null,null,this),this.off()};const C=t=>{w=t,this.selectCues(u,w)},M=(t,e)=>{1!==e.length&&(t.get("renderCaptionsNatively")||d||(i.e(63).then(function(t){d=i(8698).default}.bind(null,i)).catch((0,s.Jt)(301121)).catch((t=>{this.trigger(a.cM,t)})),t.off("change:captionsList",M,this)))};e.on("change:playlistItem",(function(){w=null,p=[]}),this),e.on(a.NZ,(function(t){p=[],C(t)}),this),e.on(a.R2,C,this),e.on("subtitlesTrackData",(function(){this.selectCues(u,w)}),this),e.on("change:captionsList",M,this)};Object.assign(u.prototype,o.ZP);const p=u},8165:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var n=i(4667),s=i(4429),o=i(5646);function a(t,e,i,a){const r=document.createElement("div");r.className=`jw-icon jw-icon-inline jw-button-color jw-reset ${t}`,r.setAttribute("role","button"),r.setAttribute("tabindex","0"),i&&r.setAttribute("aria-label",i),r.style.display="none";const l=(0,o.Z)(r,e||s.Z.noop);return a&&Array.prototype.forEach.call(a,(t=>{"string"==typeof t?r.appendChild((0,n.Z)(t)):r.appendChild(t)})),{ui:l,element:()=>r,toggle(t){t?this.show():this.hide()},show(){r.style.display=""},hide(){r.style.display="none"}}}},8168:(t,e,i)=>{"use strict";i.d(e,{Z:()=>l,w:()=>r});var n=i(974),s=i(4667),o=i(5646);const a={},r=function(t){if(!a[t]){const e=Object.keys(a);e.length>10&&delete a[e[0]];const i=(0,s.Z)(t);a[t]=i}return a[t].cloneNode(!0)};const l=class{constructor(t,e,i,s,a){const l=document.createElement("div");let c;l.className=`jw-icon jw-icon-inline jw-button-color jw-reset ${a||""}`,l.setAttribute("button",s),l.setAttribute("role","button"),l.setAttribute("tabindex","0"),e&&l.setAttribute("aria-label",e),t&&"{t.preventDefault()})),this.id=s,this.buttonElement=l}element(){return this.buttonElement}toggle(t){t?this.show():this.hide()}show(){this.buttonElement.style.display=""}hide(){this.buttonElement.style.display="none"}}},3946:(t,e,i)=>{"use strict";i.d(e,{M:()=>n});class n{constructor(t,e,i){this.begin="number"==typeof t?t:parseFloat(t),this.time=t,this.text=e,this.cueType=i}makeEl(){this.el=document.createElement("div");let t="jw-cue jw-reset";this.cueType&&"string"==typeof this.cueType&&(t+=` jw-cue-type-${this.cueType}`),this.el.className=t}align(t){let e;if("%"===this.time.toString().slice(-1))e=this.time;else{e=`${this.time/t*100}%`}this.el&&(this.el.style.left=e)}}},3477:(t,e,i)=>{"use strict";i.d(e,{k:()=>r,s:()=>a});var n=i(2799),s=i(3163),o=i(5646);class a{constructor(t,e,i=s.Ge){this.el=(0,n.az)(i(t)),this.ui=(0,o.Z)(this.el,e,this)}destroy(){this.el.parentNode&&this.el.parentNode.removeChild(this.el),this.ui.destroy()}}class r extends a{constructor(t,e,i=s.dr){super(t,e,i)}activate(){this.active||((0,n.og)(this.el,"jw-settings-item-active",!0),this.el.setAttribute("aria-checked","true"),this.active=!0)}deactivate(){this.active&&((0,n.og)(this.el,"jw-settings-item-active",!1),this.el.setAttribute("aria-checked","false"),this.active=!1)}}},7284:(t,e,i)=>{"use strict";i.d(e,{Z:()=>w});var n=i(5882),s=i(328),o=i(2799),a=i(8165),r=i(7191),l=i(3477),c=i(7509),d=i(2810),h=i(5349);const u=t=>{const{name:e,title:i}=t,n={captions:"cc-off",audioTracks:"audio-tracks",quality:"quality-100",playbackRates:"playback-rate"}[e];if(!n&&!t.icon)return;const s=(0,a.Z)(`jw-settings-${e} jw-submenu-${e}`,(e=>{t.open(e)}),i,[t.icon&&(0,o.az)(t.icon)||(0,r.W)(n)]),l=s.element();return l.setAttribute("name",e),l.setAttribute("role","button"),l.setAttribute("type","button"),l.setAttribute("aria-expanded","false"),l.setAttribute("aria-controls",t.el.id),"ontouchstart"in window||(s.tooltip=(0,h.m)(l,e,i)),s.ui.directSelect=!0,s};var p=i(8518);class w extends s.ZP{constructor(t,e,i,n,s,a=c.qF){super(),this.open=this.open.bind(this),this.close=this.close.bind(this),this.toggle=this.toggle.bind(this),this.name=e,this.title=i||e,this.localizedPrevious=s.prev,this.isSubmenu=Boolean(n),this.el=(0,o.az)(a(t,this.isSubmenu,e,this.title)),this.buttonContainer=this.el.querySelector(`.jw-${this.name}-topbar-buttons`),this.children={},this.openMenus=[],this.items=[],this.visible=!1,this.parentMenu=n,this.mainMenu=this.parentMenu?this.parentMenu.mainMenu:this,this.categoryButton=null,this.closeButton=this.mainMenu.closeButton,this.isSubmenu&&(this.parentMenu.name===this.mainMenu.name&&(this.categoryButton=this.createCategoryButton()),this.parentMenu.parentMenu&&!this.mainMenu.backButton&&(this.mainMenu.backButton=this.createBackButton(this.localizedPrevious)),this.itemsContainer=this.createItemsContainer(),this.parentMenu.appendMenu(this))}createItemsContainer(){var t,e,i,s,a;const r=this.el.querySelector(".jw-settings-submenu-items"),l=null==this||null==(t=this.mainMenu)||null==(e=t.closeButton)||null==e.element?void 0:e.element(),c=null==this||null==(i=this.mainMenu)||null==(s=i.backButton)||null==s.element?void 0:s.element(),h=null==this||null==(a=this.categoryButton)||null==a.element?void 0:a.element(),u=()=>{var t;return null==this||null==(t=this.topbar)?void 0:t.firstChild},p=new n.ZP(r);return p.on("keydown",(t=>{if(event.target.parentNode!==r)return;const{sourceEvent:e,target:i}=t,n=u(),s=document.getElementsByClassName("jw-icon-settings")[0],a=h?(0,o.AH)(h):l,p=h?(0,o.i3)(h):c,w=(0,o.AH)(i)||n||r.firstChild,g=(0,o.i3)(i)||n||r.lastChild,m=e&&(0,d.ku)(e.key);let j;switch(m){case"Tab":j=e.shiftKey?p:a;break;case"Left":j=p||this.close(t)&&s;break;case"Up":j=g;break;case"Right":j=a;break;case"Down":j=w;break;case"Esc":j=s,this.mainMenu.close(event)}j&&j.focus(),e.preventDefault(),"Esc"!==m&&e.stopPropagation()})),p}createCategoryButton(){return u(this)}createBackButton(t){const e=()=>this.mainMenu.backButtonTarget,i=(0,a.Z)("jw-settings-back",(t=>{const i=e();i&&i.open(t)}),t,[(0,r.W)("arrow-left")]);return(0,o.SH)(this.mainMenu.topbar.el,i.element()),i}setBackButtonAriaLabel(t){const e=this.mainMenu.backButton.element(),i=t?`${this.localizedPrevious} - ${t}`:this.localizedPrevious;e.setAttribute("aria-label",i)}createTopbar(){const t=(0,o.az)('
'),e=this.itemsContainer.el,i=this.mainMenu,s=this.categoryButton;return this.topbarUI=new n.ZP(t).on("keydown",(t=>{const n=t.sourceEvent,a=()=>{s?((0,o.i3)(s.element()).focus(),n.preventDefault()):i.backButton.element().focus()},r=()=>{s?((0,o.AH)(s.element()).focus(),n.preventDefault()):i.closeButton.element().focus()};switch((0,d.ku)(n.key)){case"Up":e.lastChild.focus();break;case"Down":e.firstChild.focus();break;case"Left":a();break;case"Right":r();break;case"Tab":n.shiftKey?a():r()}})),(0,o.SH)(this.el,t),t}createItems(t,e,i={},n=l.k){const s=this.name;return t.map(((t,a)=>{let r,l,c,d;switch(s){case"quality":"Auto"===t.label&&0===a?(r=`${i.defaultText}`,c=' '):r=t.label;break;case"captions":r="Off"!==t.label&&"off"!==t.id||0!==a?t.label:i.defaultText;break;case"playbackRates":l=t,r=(0,p.t6)(i.tooltipText)?`x${t}`:`${t}x`;break;case"audioTracks":r=t.name}r||(r=t,"object"==typeof t&&(r.options=i));return d=new n(r,(t=>{if((0!==t.pageX||0!==t.pageY)&&!d.active){if(d.deactivate){this.items.filter((t=>!0===t.active)).forEach((t=>{t.deactivate()}));const e=this.mainMenu.backButtonTarget;e?e.open(t):this.mainMenu.close(t)}d.activate&&d.activate(),e(l||a)}}).bind(this)),c&&d.el.appendChild((0,o.az)(c)),d}))}setMenuItems(t,e){t?(this.destroyItems(),t.forEach((t=>{this.items.push(t),this.itemsContainer.el.appendChild(t.el)})),e>-1&&this.items[e].activate(),this.categoryButton&&this.categoryButton.show()):this.removeMenu()}appendMenu(t){if(!t)return;const{el:e,name:i,categoryButton:n}=t;if(this.children[i]=t,n){const t=this.mainMenu.buttonContainer,e=t.querySelector(".jw-settings-sharing"),s="quality"===i?t.firstChild:e||this.closeButton.element();t.insertBefore(n.element(),s)}this.mainMenu.el.appendChild(e),this.mainMenu.trigger("menuAppended",i)}removeMenu(t){if(!t)return this.parentMenu.removeMenu(this.name);const e=this.children[t];e&&(delete this.children[t],e.destroy(),this.mainMenu.trigger("menuRemoved",t))}open(t){const e=this.mainMenu.visible;let i;if(!this.items.length)return;const n=null==t?void 0:t.sourceEvent,s=this.itemsContainer?this.itemsContainer.el.firstChild:this.items[0].el,o=this.itemsContainer?this.itemsContainer.el.lastChild:this.items[this.items.length-1].el,a=n&&"keydown"===n.type,r="Up"===(a&&(0,d.ku)(n.key))?o:s;if(this.visible&&!this.openMenus.length)return void(this.items.length&&a&&(this._openTimeout&&clearTimeout(this._openTimeout),this._openTimeout=setTimeout((()=>{r.focus(),this._openTimeout=null}))));const{mainMenu:l,parentMenu:c,categoryButton:h}=this;if(c.openMenus.push(this.name),c.openMenus.length>1&&c.closeChildren(this.name),h&&h.element().setAttribute("aria-expanded","true"),c.isSubmenu){c.el.classList.remove("jw-settings-submenu-active"),l.topbar.el.classList.add("jw-nested-menu-open");const t=l.topbar.el.querySelector(".jw-settings-topbar-text");t.setAttribute("name",this.title),t.innerText=this.title;const e=c.title;this.setBackButtonAriaLabel(e),l.backButton.show(),this.mainMenu.backButtonTarget=this.parentMenu,this.buttonContainer&&this.buttonContainer.el.setAttribute("aria-expanded",!0),i=t}else l.topbar.el.classList.remove("jw-nested-menu-open"),l.backButton&&l.backButton.hide(),this.mainMenu.backButtonTarget&&(this.mainMenu.backButtonTarget=null);this.el.classList.add("jw-settings-submenu-active"),e&&a?i=r:e||(l.open(t),i=h.element(),null!=h&&h.tooltip&&!a&&(h.tooltip.suppress=!0)),this.openMenus.length&&this.closeChildren(),this.el.scrollTop=0,this.visible=!0,this.el.setAttribute("aria-expanded","true"),i&&(this._openTimeout&&clearTimeout(this._openTimeout),this._openTimeout=setTimeout((()=>{i.focus(),this._openTimeout=null})))}close(t){this._openTimeout&&(clearTimeout(this._openTimeout),this._openTimeout=null),this.visible&&(this.visible=!1,this.el.setAttribute("aria-expanded","false"),this.el.classList.remove("jw-settings-submenu-active"),this.buttonContainer&&this.buttonContainer.el.setAttribute("aria-expanded",!1),this.categoryButton&&this.categoryButton.element().setAttribute("aria-expanded","false"),this.parentMenu.openMenus=this.parentMenu.openMenus.filter((t=>t!==this.name)),!this.mainMenu.openMenus.length&&this.mainMenu.visible&&this.mainMenu.close(t),this.openMenus.length&&this.closeChildren())}closeChildren(t){this.openMenus.forEach((e=>{if(e===t)return;const i=this.children[e];i&&i.close()}))}toggle(t,e){if(e&&this.mainMenu.visible)return this.mainMenu.close(t);this.visible?this.close(t):this.open(t)}destroyItems(){this.items.forEach((t=>{t.destroy()})),this.items=[]}destroy(){this._openTimeout&&(clearTimeout(this._openTimeout),this._openTimeout=null),Object.keys(this.children).forEach((t=>{this.children[t].destroy()})),this.categoryButton&&(this.parentMenu.buttonContainer.removeChild(this.categoryButton.element()),this.categoryButton.ui.destroy()),this.topbarUI&&this.topbarUI.destroy(),this.destroyItems(),this.itemsContainer.destroy();const t=this.parentMenu.openMenus,e=t.indexOf(this.name);t.length&&e>-1&&this.openMenus.splice(e,1),delete this.parentMenu,this.visible=!1,this.el.parentNode&&this.el.parentNode.removeChild(this.el),this.off()}}},2810:(t,e,i)=>{"use strict";i.d(e,{JU:()=>h,MR:()=>p,dt:()=>w,ku:()=>u});const n=["#ffffff","#000000","#ff0000","#00ff00","#0000ff","#ffff00","ff00ff","#00ffff"],s=["Arial","Courier","Georgia","Impact","Lucida Console","Tahoma","Times New Roman","Trebuchet MS","Verdana"],o=["100%","75%","50%","25%","0%"],a=[100,75,50,25,0];let r,l;const c=t=>{const{white:e,black:i,red:n,green:s,blue:o,yellow:a,magenta:l,cyan:c}=t;return r=[e,i,n,s,o,a,l,c],r},d=t=>{const{none:e,raised:i,depressed:n,uniform:s,dropShadow:o}=t;return l=[e,i,n,s,o],l},h=t=>[{name:"color",label:t.color,options:r||c(t),values:n,defaultVal:"#ffffff"},{name:"fontOpacity",label:t.fontOpacity,options:["100%","75%","50%","25%"],values:[100,75,50,25],defaultVal:100},{name:"userFontScale",label:t.userFontScale,options:["200%","175%","150%","125%","100%","75%","50%"],values:[2,1.75,1.5,1.25,1,.75,.5],defaultVal:1},{name:"fontFamily",label:t.fontFamily,options:s,values:s,defaultVal:"Arial"},{name:"edgeStyle",label:t.edgeStyle,options:l||d(t),values:["none","raised","depressed","uniform","dropShadow"],defaultVal:"none"},{name:"backgroundColor",label:t.backgroundColor,options:r||c(t),values:n,defaultVal:"#000000"},{name:"backgroundOpacity",label:t.backgroundOpacity,options:o,values:a,defaultVal:50},{name:"windowColor",label:t.windowColor,options:r||c(t),values:n,defaultVal:"#000000"},{name:"windowOpacity",label:t.windowOpacity,options:["100%","75%","50%","25%","0%"],values:a,defaultVal:0}],u=t=>null==t||null==t.replace?void 0:t.replace(/(Arrow|ape)/,""),p=function(){this._destroyed||(this._destroyed=!0,Object.keys(this.children).forEach((t=>{this.children[t].destroy()})),this.children={},this.model&&(this.model.off(null,null,this),delete this.model),this.off())},w=function(t,e){t&&e>-1&&(t.items.forEach((t=>{t.deactivate()})),t.items[e].activate())}},5349:(t,e,i)=>{"use strict";i.d(e,{m:()=>s});var n=i(2799);const s=function(t,e,i,s,o){const a=document.createElement("div");a.className=`jw-reset-text jw-tooltip jw-tooltip-${e}`,a.setAttribute("dir","auto");const r=document.createElement("div");let l;r.className="jw-text",a.appendChild(r),t.appendChild(a);const c=t=>{t&&l.dirty&&((0,n.nh)(r,l.text),l.dirty=!1),l.opened=t,(0,n.og)(a,"jw-open",t)};return l={dirty:Boolean(i),opened:!1,text:i,touchEvent:!1,suppress:!1,open(){l.touchEvent||(l.suppress?l.suppress=!1:(c(!0),s&&s()))},close(){l.touchEvent||(c(!1),o&&o())},setText(t){t!==l.text&&(l.text=t,l.dirty=!0),l.opened&&c(!0)}},t.addEventListener("mouseover",l.open),t.addEventListener("focus",l.open),t.addEventListener("blur",l.close),t.addEventListener("mouseout",l.close),t.addEventListener("touchstart",(()=>{l.touchEvent=!0}),{passive:!0}),l}},4244:(t,e,i)=>{"use strict";i.d(e,{Z:()=>d});var n=i(8348),s=i(328),o=i(5882),a=i(1261),r=i(2799);const l=function(t){const e=(0,r.A8)(t),i=window.pageXOffset;return i&&n.OS.android&&document.body.parentElement&&document.body.parentElement.getBoundingClientRect().left>=0&&(e.left-=i,e.right-=i),e};class c extends s.ZP{constructor(t,e){super(),this.className=`${t} jw-background-color jw-reset`,this.orientation=e}setup(){this.el=(0,r.az)(((t="",e="")=>``)(this.className,`jw-slider-${this.orientation}`)),this.elementRail=this.el.getElementsByClassName("jw-slider-container")[0],this.elementBuffer=this.el.getElementsByClassName("jw-buffer")[0],this.elementProgress=this.el.getElementsByClassName("jw-progress")[0],this.elementThumb=this.el.getElementsByClassName("jw-knob")[0],this.ui=new o.ZP(this.element(),{preventScrolling:!0}).on("dragStart",this.dragStart,this).on("drag",this.dragMove,this).on("dragEnd",this.dragEnd,this).on("click",this.tap,this)}dragStart(){this.trigger("dragStart"),this.railBounds=l(this.elementRail)}dragEnd(t){this.dragMove(t),this.trigger("dragEnd")}dragMove(t){const e=this.railBounds=this.railBounds?this.railBounds:l(this.elementRail);let i,n;return"pointercancel"===t.sourceEvent.type||("horizontal"===this.orientation?(i=t.pageX,n=ie.right?100:100*(0,a.v)((i-e.left)/e.width,0,1)):(i=t.pageY,n=i>=e.bottom?0:i<=e.top?100:100*(0,a.v)((e.height-(i-e.top))/e.height,0,1)),this.render(n),this.update(n)),!1}tap(t){this.railBounds=l(this.elementRail),this.dragMove(t)}limit(t){return t}update(t){this.trigger("update",{percentage:t})}render(t){t=Math.max(0,Math.min(t,100));const e=this.elementThumb,i=this.elementProgress;"horizontal"===this.orientation?(e.style.left=`${t}%`,i.style.width=`${t}%`):(e.style.bottom=`${t}%`,i.style.height=`${t}%`)}updateBuffer(t){this.elementBuffer.style.width=`${t}%`}element(){return this.el}}const d=c},8993:(t,e,i)=>{"use strict";i.d(e,{Z:()=>y});var n=i(6042),s=i(1261),o=i(974),a=i(9888),r=i(2799);const l=(t,e)=>{let i=0;return Object.assign((function(...n){if(i++,i{i=0},shush:()=>{i=1/0}})};var c=i(5882),d=i(4244),h=i(520),u=i(3946),p=i(6886),w=i(7387),g=i(8381),m=i(1643);const j=function(t){this.begin=t.begin,this.end=t.end,this.img=t.text};class f extends h.Z{setup(){this.textChapter=document.createElement("span"),this.textChapter.className="jw-time-chapter jw-text jw-reset",this.textChapter.style.display="none",this.textTime=document.createElement("span"),this.textTime.className="jw-time-time jw-text jw-reset",this.img=document.createElement("div"),this.img.className="jw-time-thumb jw-reset",this.containerWidth=0,this.textLength=0,this.dragJustReleased=!1;const t=document.createElement("div");t.className="jw-time-tip jw-reset",t.appendChild(this.img),t.appendChild(this.textChapter),t.appendChild(this.textTime),this.addContent(t)}image(t){(0,o.oB)(this.img,t)}update(t,e){this.textTime&&(this.textTime.textContent=t,e?this.textChapter&&(this.textChapter.textContent=e,this.textChapter.style.removeProperty("display")):this.textChapter&&(this.textChapter.style.display="none",this.textChapter.textContent=""))}getWidth(){return this.containerWidth||this.setWidth(),this.containerWidth}setWidth(t){t?this.containerWidth=t+16:this.tooltip&&(this.containerWidth=(0,r.A8)(this.container).width+16)}resetWidth(){this.containerWidth=0}}class b extends d.Z{constructor(t,e,i){super("jw-slider-time","horizontal"),this._model=t,this._api=e,this.timeUpdateKeeper=i,this.timeTip=new f("jw-tooltip-time",null,!0),this.timeTip.setup(),this.cues=[],this.seekThrottled=(0,n.P2)(this.performSeek,400),this._updateAriaTextLimitedThrottled=l((0,n.P2)(this.updateAriaText,1e3),4),this.sliderOptions=this._model.get("timeSlider")}_onDvrSeekLimitChange(){this.updateTime(this._model.get("position"),this._model.get("duration"))}setup(){super.setup(),this._model.on("change:duration",this.onDuration,this).on("change:cues",this.updateCues,this).on("change:chapters",this.onChapters,this).on("seeked",(()=>{this._model.get("scrubbing")||(this._updateAriaTextLimitedThrottled.reset(),this._updateAriaTextLimitedThrottled())}),this).on("change:controlsEnabled",(t=>{t.get("controls")&&!this.cues.length&&this.updateCues(null,this._model.getCues())}),this),this._model.change("position",this.onPosition,this).change("buffer",this.onBuffer,this).change("streamType",this.onStreamType,this),this._model.player.change("playlistItem",this.onPlaylistItem,this),this._model.change("dvrSeekLimit",this._onDvrSeekLimitChange,this);const t=this.el;(0,r.P$)(t,"tabindex","0"),(0,r.P$)(t,"role","slider"),(0,r.P$)(t,"aria-label",this._model.get("localization").slider),t.removeAttribute("aria-hidden"),this.elementRail.appendChild(this.timeTip.element()),this.ui=(this.ui||new c.ZP(t)).on("move drag",this.showTimeTooltip,this).on("dragEnd out",this.hideTimeTooltip,this).on("click",(()=>t.focus())).on("focus",(()=>this._updateAriaTextLimitedThrottled.reset())).on("blur",(()=>this._updateAriaTextLimitedThrottled.shush())),this.sliderOptions&&!this.sliderOptions.showKnob&&(this.elementThumb.style.opacity="0")}update(t){this.seekTo=t,this.seekThrottled(),super.update.apply(this,[t])}dragStart(){this._model.set("scrubbing",!0),super.dragStart.call(this)}dragEnd(t){super.dragEnd.apply(this,[t]),this._model.set("scrubbing",!1)}onBuffer(t,e){this.updateBuffer(e)}onPosition(t,e){this.updateChapter(e),this.updateTime(e,t.get("duration"))}onDuration(t,e){this.updateTime(t.get("position"),e),(0,r.P$)(this.el,"aria-valuemin",0),(0,r.P$)(this.el,"aria-valuemax",Math.abs(e)),this.updateCues(null,t.getCues())}onStreamType(t,e){this.streamType=e}onChapters(){this.updateCues(null,this._model.getCues())}updateTime(t,e){let i=0;const n=Boolean(this._model.get("instreamMode"));if(e)if("DVR"!==this.streamType||n)"VOD"!==this.streamType&&this.streamType&&!n||(i=t/e*100);else{const n=this._model.get("dvrSeekLimit"),s=e+n;i=(s-(t+n))/s*100}this._updateAriaTextLimitedThrottled(),this.render(i)}onPlaylistItem(t,e){this.reset();const i=t.getCues();!this.cues.length&&i.length&&this.updateCues(null,i);const s=e.tracks;(0,n.S6)(s,(t=>{var e,i;"thumbnails"===(null==t||null==(e=t.kind)||null==e.toLowerCase?void 0:e.toLowerCase())?this.loadThumbnails(t.file):"chapters"===(null==t||null==(i=t.kind)||null==i.toLowerCase?void 0:i.toLowerCase())&&this.loadChapters(t.file)}))}performSeek(){const t=this.seekTo,e=this._model.get("duration");let i;if(0===e)this._api.play({reason:"interaction"});else if("DVR"===this.streamType){i=e*((100-t)/100),i-=this._model.get("dvrSeekLimit"),this._api.seek(i,{reason:"interaction"})}else i=t/100*e,this._api.seek(Math.min(i,e-.25),{reason:"interaction"})}showTimeTooltip(t){let e=this._model.get("duration");if(0===e)return;const i=this._model.get("containerWidth"),n=(0,r.A8)(this.elementRail);let l=t.pageX?t.pageX-n.left:t.x;l=(0,s.v)(l,0,n.width);const c=l/n.width;let d,h=e*c;if(e<0){e+=this._model.get("dvrSeekLimit"),h=e*c,h=e-h}const u=(0,a.timeFormat)(h,!0),p=this.timeTip,w=this.getActiveCue(h);if(w)p.update(u,w.text),d=w.text.length+u.length;else{let t=u;e<0&&h>-1&&(t="Live"),p.update(t),d=t.length}this.textLength!==d&&(this.textLength=d,p.resetWidth()),this.showThumbnail(h),(0,r.cn)(p.el,"jw-open");const g=p.getWidth(),m=i-n.width;let j=0;g>m&&(j=(g-m)/2);const f=Math.round(4*Math.min(n.width-j,Math.max(j,l)))/4;(0,o.vs)(p.el,`translateX(${f}px)`)}hideTimeTooltip(){(0,r.IV)(this.timeTip.el,"jw-open")}getCuesInRange(t,e,i){var n,s;const o=/^post$|^\d+%$/,a=t.filter((t=>t.begin>=e&&t.begin"ads"===t.cueType));return Object.keys(r).length>=1&&this._model.trigger("countdownAdCues",r),null!=(n=this.sliderOptions)&&n.showAdMarkers||null==(s=this._model.get("advertising"))||!s.showCountdown?a:a.filter((t=>"ads"!==t.cueType))}updateCues(t,e){this.resetCues();const i=this._model.get("duration"),n=this.getCuesInRange(e,0,i);null!=n&&n.length&&(n.forEach((t=>{this.addCue(t)})),this.drawCues())}updateAriaText(){const t=this._model,e=this.el;let i=t.get("position"),n=t.get("duration");"DVR"===this.streamType&&(n=Math.abs(n),i=n+i);const s=`${(0,a.timeFormatAria)(i)} of ${(0,a.timeFormatAria)(n)}`;this.timeUpdateKeeper.textContent=s,(0,r.P$)(e,"aria-valuetext",s),(0,r.P$)(e,"aria-valuenow",i)}reset(){this.resetThumbnails(),this.timeTip.resetWidth(),this.textLength=0,this._updateAriaTextLimitedThrottled.reset()}loadThumbnails(t){t&&(this.vttPath=t.split("?")[0].split("/").slice(0,-1).join("/"),this.individualImage=null,(0,p.h)(t,this.thumbnailsLoaded.bind(this),this.thumbnailsFailed.bind(this),{plainText:!0}))}thumbnailsLoaded(t){const e=(0,w.Z)(t.responseText);Array.isArray(e)&&(e.forEach((t=>{this.thumbnails.push(new j(t))})),this.drawCues(),this.showThumbnail(0))}thumbnailsFailed(){}chooseThumbnail(t){const e=this.thumbnails;if(!e||!e.length)return"";let i=(0,n.e1)(e,{end:t},(0,n.Cb)("end"));i>=e.length&&(i=e.length-1);let s=e[i].img;return s.indexOf("://")<0&&(s=this.vttPath?`${this.vttPath}/${s}`:s),s}loadThumbnail(t){let e=this.chooseThumbnail(t);const i={width:"0px",height:"0px",margin:"0 auto",backgroundImage:"",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:""};if(!e||!e.length)return i;if(e.indexOf("#xywh")>0)try{const t=/(.+)#xywh=(\d+),(\d+),(\d+),(\d+)/.exec(e);if(!t)throw new Error("No match for expected thumbnail pattern");e=t[1];const n=parseFloat(t[2]),s=parseFloat(t[3]);i.backgroundPosition=`${-1*n}px ${-1*s}px`,i.width=t[4],this.timeTip.setWidth(Number(i.width)),i.height=t[5]}catch(t){return}else i.backgroundSize="contain",i.width="120px",i.height="68px",this.timeTip.setWidth(120);if(i.backgroundImage=`url("${e}")`,!this.individualImage){const t=this.individualImage=new Image;t.onload=()=>{t.onload=null,this.timeTip.image({width:i.width,height:i.height}),this.timeTip.setWidth(120)},t.src=e}return i}showThumbnail(t){this._model.get("containerWidth")<=420||this.timeTip.image(this.loadThumbnail(t))}resetThumbnails(){this.timeTip.image({backgroundImage:"",width:0,height:0}),this.thumbnails=[]}loadChapters(t){(0,p.h)(t,this.chaptersLoaded.bind(this),this.chaptersFailed,{plainText:!0})}chaptersLoaded(t){const e=(0,w.Z)(t.responseText);if(Array.isArray(e)){const t=this._model.get("playlistItem")||{};if(!t.chapters||!t.chapters.timestamps||!t.chapters.timestamps.length){const i=(0,g._b)(e,t.chapters);t.chapters=i,this._model.set("playlistItem",t),i.timestamps[0]&&0===i.timestamps[0].time&&this._api.trigger(m.t6,i.timestamps[0])}}this.updateCues(null,this._model.getCues())}chaptersFailed(){}addCue(t){const e=new u.M(t.begin,t.text,t.cueType);e.makeEl(),this.cues.push(e)}drawCues(){const t=this._model.get("duration");!t||t<=0||this.cues.forEach((e=>{e.align(t),e.el&&this.elementRail.appendChild(e.el)}))}getActiveCue(t){return this.cues.reduce(((e,i)=>te.time?i:e:i),null)}resetCues(){this.cues.forEach((t=>{var e;null!=t&&null!=(e=t.el)&&e.parentNode&&t.el.parentNode.removeChild(t.el)})),this.cues.length=0}updateChapter(t){const e=(this._model.get("playlistItem")||{}).chapters;if(!e||!e.timestamps)return;const i=(0,g.Mf)(t,e.timestamps);i&&i!==this.activeChapter&&(this.activeChapter=i,this._api.trigger(m.t6,i))}destroy(){this._model.off(null,null,this)}}const y=b},520:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var n=i(328);var s=i(2799),o=i(4667);class a extends n.ZP{constructor(t,e,i,n){super(),this.el=document.createElement("div");let s=`jw-icon jw-icon-tooltip ${t} jw-button-color jw-reset`;var a,r;i||(s+=" jw-hidden"),e&&(a=this.el,r=e,a&&r&&(a.setAttribute("aria-label",r),a.setAttribute("role","button"),a.setAttribute("tabindex","0"))),this.el.className=s,this.tooltip=document.createElement("div"),this.tooltip.className="jw-overlay jw-reset",this.openClass="jw-open",this.componentType="tooltip",this.el.appendChild(this.tooltip),n&&n.length>0&&Array.prototype.forEach.call(n,(t=>{"string"==typeof t?this.el.appendChild((0,o.Z)(t)):this.el.appendChild(t)}))}addContent(t){this.content&&this.removeContent(),this.content=t,this.tooltip.appendChild(t)}removeContent(){this.content&&(this.tooltip.removeChild(this.content),this.content=null)}hasContent(){return Boolean(this.content)}element(){return this.el}openTooltip(t){this.isOpen||(this.trigger(`open-${this.componentType}`,t,{isOpen:!0}),this.isOpen=!0,(0,s.og)(this.el,this.openClass,this.isOpen))}closeTooltip(t){this.isOpen&&(this.trigger(`close-${this.componentType}`,t,{isOpen:!1}),this.isOpen=!1,(0,s.og)(this.el,this.openClass,this.isOpen))}toggleOpenState(t){this.isOpen?this.closeTooltip(t):this.openTooltip(t)}}},8268:(t,e,i)=>{"use strict";i.d(e,{Z:()=>I});var n=i(8348),s=i(1643),o=i(7191),a=i(8168),r=i(8993),l=i(2799),c=i(3946);class d{constructor(t,e,i,n,s,o,a){this.begin=t,this.time=t,this.end=e,this.text=i,this.first=n,this.last=s,this.cueType="chapters",this.image=a,null!=o&&o.length&&(this.ads=o.map((t=>{const e=(t.begin-this.begin)/(this.end-this.begin)*100;return new c.M(`${e}%`,t.text,t.cueType)})))}align(t){}makeEl(){var t,e,i,n,s;this.el=(0,l.az)(''),this.paddingEl=null==(t=this.el)?void 0:t.querySelector(".jw-timesegment-resetter"),this.containerEl=null==(e=this.el)?void 0:e.querySelector(".jw-timesegment-container"),this.bufferedEl=null==(i=this.el)?void 0:i.querySelector(".jw-timesegment-buffered"),this.progressEl=null==(n=this.el)?void 0:n.querySelector(".jw-timesegment-progress"),null!=this&&null!=(s=this.ads)&&s.length&&this.ads.forEach((t=>{t.makeEl(),t.align(0),this.containerEl&&this.progressEl&&t.el&&this.containerEl.insertBefore(t.el,this.progressEl)})),this.paddingEl&&(this.first||(this.paddingEl.style.paddingLeft="1px"),this.last||(this.paddingEl.style.paddingRight="2px")),this.el&&(this.el.style.flexGrow=String(Math.abs(Math.round(this.end-this.begin))))}setProgress(t){this.progressEl&&(this.progressEl.style.width=`${t}%`)}setBuffered(t){this.bufferedEl&&(this.bufferedEl.style.width=`${t}%`)}}class h extends r.Z{constructor(t,e,i){super(t,e,i),this.cues=[],this.className="jw-slider-time jw-chapter-slider-time jw-background-color jw-reset"}setup(){super.setup(),this.elementActualRail=this.el.getElementsByClassName("jw-rail")[0],this.elementActualRail.classList.remove("jw-rail"),this.elementActualRail.classList.add("jw-old-rail"),this.elementBuffer.classList.remove("jw-buffer"),this.elementBuffer.classList.add("jw-old-buffer"),this.elementProgress.classList.remove("jw-progress"),this.elementProgress.classList.add("jw-old-progress")}sizeSegmentsFromElement(t,e){const i=(0,l.A8)(t);this.cues.forEach((t=>{if("chapters"===t.cueType){const n=(0,l.A8)(t.el),s=(i.right-n.left)/n.width,o=100*Math.max(0,Math.min(s,1));t[e](o)}}))}onBuffer(t,e){super.onBuffer(t,e),this.sizeSegmentsFromElement(this.elementBuffer,"setBuffered")}updateTime(t,e){super.updateTime(t,e),this.sizeSegmentsFromElement(this.elementProgress,"setProgress")}updateCues(t,e){if(!this.elementActualRail)return;this.resetCues();let i=[],n=[];e&&(i=e.filter((t=>"chapters"===t.cueType)).sort(((t,e)=>t.begin-e.begin)),n=e.filter((t=>"ads"===t.cueType)).sort(((t,e)=>t.begin-e.begin)));const s=this._model.get("duration");let o=!1;if(i.length&&!this._model.get("instreamMode")){if(0!==i[0].begin){const t={begin:0,end:i[0].begin,text:"",first:!0,last:!1,ads:this.getCuesInRange(n,0,i[0].begin),image:void 0};this.addCue(t),o=!0}i.forEach(((t,e)=>{const a=e+1===i.length,r={begin:t.begin,end:t.end,text:t.text,first:!1,last:!1,ads:this.getCuesInRange(n,t.begin,t.end),image:t.image};a&&void 0!==t.end&&t.end>=s&&(r.last=!0),o||(o=!0,r.first=!0),this.addCue(r)}));const t=i[i.length-1];if(void 0!==t.end&&t.endt=e.begin));return e||null}drawCues(){this._model.get("duration")&&(this.cues.forEach((t=>{"chapters"===t.cueType&&this.elementActualRail&&t.el&&this.elementActualRail.appendChild(t.el)})),this.sizeSegmentsFromElement(this.elementBuffer,"setBuffered"),this.sizeSegmentsFromElement(this.elementProgress,"setProgress"))}chooseThumbnail(t){var e;const i=super.chooseThumbnail(t),n=this.getActiveCue(t);let s=!i;return null!=this&&null!=(e=this.sliderOptions)&&e.preferChapterImages&&(s=!0),s&&n&&n.image?n.image:i}}const u=h;var p=i(520),w=i(4244),g=i(5882);class m extends w.Z{constructor(t,e,i){let n="jw-slider-volume";"vertical"===t&&(n+=" jw-volume-tip"),super(n,t),this.setup(),this.element().classList.remove("jw-background-color"),(0,l.P$)(i,"tabindex","0"),(0,l.P$)(i,"aria-label",e),(0,l.P$)(i,"aria-orientation",t),(0,l.P$)(i,"aria-valuemin",0),(0,l.P$)(i,"aria-valuemax",100),(0,l.P$)(i,"role","slider"),this.uiOver=new g.ZP(i).on("click",(function(){}))}}class j extends p.Z{constructor(t,e,i,n,s){super(e,i,!0,n),this._model=t,this.horizontalContainer=s;const o=t.get("localization").volumeSlider;this.horizontalSlider=new m("horizontal",o,s),this.verticalSlider=new m("vertical",o,this.tooltip),s.appendChild(this.horizontalSlider.element()),this.addContent(this.verticalSlider.element()),this.verticalSlider.on("update",(function(t){this.trigger("update",t)}),this),this.horizontalSlider.on("update",(function(t){this.trigger("update",t)}),this),this.horizontalSlider.uiOver.on("keydown",(t=>{const e=t.sourceEvent;switch(e.keyCode){case 37:e.stopPropagation(),this.trigger("adjustVolume",-10);break;case 39:e.stopPropagation(),this.trigger("adjustVolume",10)}})),this.ui=new g.ZP(this.el,{directSelect:!0}).on("click",this.handleClick,this).on("enter",(()=>this.trigger("toggleValue"))),this.addSliderHandlers(this.ui),this.addSliderHandlers(this.horizontalSlider.uiOver),this.addSliderHandlers(this.verticalSlider.uiOver),this._model.change("audioMode",this.updateSlider,this)}updateSlider(t,e){const i=t.get("horizontalVolumeSlider")||e;(0,l.og)(this.element(),"jw-flag-horizontal-slider",Boolean(i))}addSliderHandlers(t){const{openSlider:e,closeSlider:i}=this;t.on("over",e,this).on("out",i,this).on("focus",e,this).on("blur",i,this)}openSlider(t){super.openTooltip(t),(0,l.og)(this.horizontalContainer,this.openClass,!0)}closeSlider(t){super.closeTooltip(t),(0,l.og)(this.horizontalContainer,this.openClass,!1),this.horizontalContainer.blur()}handleClick(t){n.OS.mobile?this.toggleOpenState(t):this.trigger("toggleValue")}destroy(){this.horizontalSlider.uiOver.destroy(),this.verticalSlider.uiOver.destroy(),this.ui.destroy()}}var f=i(8165),b=i(5349),y=i(328),v=i(2268),x=i(9888),k=i(6234),C=i(5646);const M=(t,e)=>{const i=document.createElement("span");return i.className=`jw-text jw-reset-text ${t}`,e&&(0,l.P$)(i,"role",e),(0,l.P$)(i,"dir","auto"),i},_=(t,e)=>{const i=document.createElement("div");return i.className=`jw-icon jw-icon-inline jw-text jw-reset ${t}`,e&&(0,l.P$)(i,"role",e),i},T=t=>{const e=document.createElement("div");return e.className=`jw-reset ${t}`,e},S=(t,e,i,s)=>{if("WebKitPlaybackTargetAvailabilityEvent"in window){const i=(0,f.Z)("jw-icon-airplay jw-off",t,e.airplay,(0,o.o)("airplay-off,airplay-on"));return(0,b.m)(i.element(),"airplay",e.airplay),i}if(n.Browser.chrome&&window.chrome){const t=document.createElement("google-cast-launcher");t.addEventListener("click",(t=>{var e;i.get("interceptCast")&&(t.stopImmediatePropagation(),s.trigger("castIntercepted",{isCasting:(null==(e=i.get("castState"))?void 0:e.active)||!1}))})),(0,l.P$)(t,"tabindex","-1"),t.className+=" jw-reset";const n=(0,f.Z)("jw-icon-cast",null,e.cast);n.ui.off();const o=n.element();return o.style.cursor="pointer",o.appendChild(t),n.button=t,(0,b.m)(o,"chromecast",e.cast),n}},E=(t,e,i)=>{if("disabled"!==t&&(n.Browser.chrome&&!(0,v.yS)()||n.Browser.edge||n.Browser.safari)){const t=(0,f.Z)("jw-icon-pip jw-off",e,i.pipIcon,(0,o.o)("pip-on,pip-off"));return(0,b.m)(t.element(),"pip",i.pipIcon),t}},A=(t,e)=>t.filter((t=>!e.some((e=>e.id+e.btnClass===t.id+t.btnClass&&t.callback===e.callback)))),P=(t,e)=>{e.forEach((e=>{e.element&&(e=e.element()),t.appendChild(e)}))};class I{constructor(t,e,i){var a;Object.assign(this,y.ZP),this._api=t,this._model=e,this._isMobile=n.OS.mobile,this._volumeAnnouncer=i.querySelector(".jw-volume-update");const c=e.get("localization"),d=e.get("timeSlider"),h=new(null!=d&&d.legacy?r.Z:u)(e,t,i.querySelector(".jw-time-update"));h.setup();const p=this.menus=[];let w,m,v;this.ui=[];let x="";const A=c.volume;if(this._isMobile){if(!(e.get("sdkplatform")||n.OS.iOS&&n.OS.version.major<10)){const e=(0,o.o)("volume-0,volume-100");v=(0,f.Z)("jw-icon-volume",(()=>{t.setMute()}),A,e)}}else{m=document.createElement("div"),m.className="jw-horizontal-volume-container",w=new j(e,"jw-icon-volume",A,(0,o.o)("volume-0,volume-50,volume-100"),m);const t=w.element();p.push(w),(0,l.P$)(t,"role","group"),e.change("mute",((e,i)=>{const n=i?c.unmute:c.mute;(0,l.P$)(t,"aria-label",`${n} button`)}),this)}const I=(0,f.Z)("jw-icon-next",(()=>{t.next({feedShownId:x,reason:"interaction"})}),c.next,(0,o.o)("next")),z=(0,f.Z)("jw-icon-settings jw-settings-submenu-button",(t=>{this.trigger("settingsInteraction","quality",!0,t)}),c.settings,(0,o.o)("settings"));(0,l.P$)(z.element(),"aria-controls",`jw-${t.id}-settings-menu`),(0,l.P$)(z.element(),"aria-expanded",!1);const L=(0,f.Z)("jw-icon-cc jw-settings-submenu-button",(t=>{this.trigger("settingsInteraction","captions",!1,t)}),c.cc,(0,o.o)("cc-off,cc-on"));(0,l.P$)(L.element(),"aria-controls",`jw-${t.id}-settings-submenu-captions`);const B=(0,f.Z)("jw-text-live",(()=>{this.goToLiveEdge()}),c.liveBroadcast);B.element().textContent=c.liveBroadcast;const V=this.elements={alt:M("jw-text-alt","status"),play:(0,f.Z)("jw-icon-playback",(()=>{t.playToggle({reason:"interaction"})}),c.play,(0,o.o)("play,pause,stop")),rewind:(0,f.Z)("jw-icon-rewind",(()=>{this.rewind()}),c.rewind,(0,o.o)("rewind")),live:B,next:I,elapsed:_("jw-text-elapsed","timer"),countdown:_("jw-text-countdown","timer"),time:h,duration:_("jw-text-duration","timer"),mute:v,volumetooltip:w,horizontalVolumeContainer:m,cast:S((()=>{t.castToggle()}),c,e,t),pip:E(e.get("pipIcon"),(()=>{t.setPip()}),c),imaFullscreen:(0,f.Z)("jw-icon-fullscreen",(()=>{t.setFullscreen()}),c.fullscreen,(0,o.o)("fullscreen-off,fullscreen-on")),fullscreen:(0,f.Z)("jw-icon-fullscreen",(()=>{t.setFullscreen()}),c.fullscreen,(0,o.o)("fullscreen-off,fullscreen-on")),spacer:T("jw-spacer"),buttonContainer:T("jw-button-container"),settingsButton:z,captionsButton:L},F=(0,b.m)(L.element(),"captions",c.cc),$=t=>{const e=t.get("captionsList")[t.get("captionsIndex")];let i=c.cc;e&&"Off"!==e.label&&(i=e.label),F.setText(i)},O=(0,b.m)(V.play.element(),"play",c.play);this.setPlayText=t=>{O.setText(t)};const R=V.next.element(),H=(0,b.m)(R,"next",c.nextUp,(()=>{const t=e.get("nextUp");t&&(x=(0,k.B)(k.F),this.trigger("nextShown",{mode:t.mode,ui:"nextup",itemsShown:[t],feedData:t.feedData,reason:"hover",feedShownId:x}))}),(()=>{x=""}));(0,l.P$)(R,"dir","auto"),(0,b.m)(V.rewind.element(),"rewind",c.rewind),(0,b.m)(V.settingsButton.element(),"settings",c.settings);const Z=[(0,b.m)(V.fullscreen.element(),"fullscreen",c.fullscreen),(0,b.m)(V.imaFullscreen.element())];(0,l.cn)(V.imaFullscreen.element(),"jw-fullscreen-ima");const N=[V.play,V.rewind,V.next,V.volumetooltip,V.horizontalVolumeContainer,V.imaFullscreen,V.mute,V.alt,V.live,V.elapsed,V.countdown,V.duration,V.spacer,V.cast,V.captionsButton,V.settingsButton,V.pip,V.fullscreen].filter((t=>t)),q=[V.time,V.buttonContainer].filter((t=>t));this.el=document.createElement("div"),this.el.className="jw-controlbar jw-reset",P(V.buttonContainer,N),P(this.el,q);const U=e.get("logo");if(U&&"control-bar"===U.position&&this.addLogo(U),V.play.show(),V.fullscreen.show(),V.imaFullscreen.show(),V.mute&&V.mute.show(),V.pip&&V.pip.show(),e.change("volume",this.onVolume,this),e.change("mute",((t,e)=>{this.renderVolume(e,t.get("volume"))}),this),e.change("state",this.onState,this),e.change("duration",this.onDuration,this),e.change("position",this.onElapsed,this),e.change("dvrSeekLimit",this.onElapsed,this),e.change("fullscreen",((t,e)=>{const i=[this.elements.fullscreen.element(),this.elements.imaFullscreen.element()];for(let n=0;n{this.elements.pip&&(0,l.og)(this.elements.pip.element(),"jw-off",e)}),this),e.change("mediaType",((t,e)=>{this.elements.pip&&this.elements.pip.toggle("audio"!==e)}),this),e.change("streamType",this.onStreamTypeChange,this),e.change("dvrLive",((t,e)=>{const{liveBroadcast:i,notLive:n}=c,s=this.elements.live.element(),o=!1===e;(0,l.og)(s,"jw-dvr-live",o),(0,l.P$)(s,"aria-label",o?n:i),s.textContent=o?n:i}),this),e.change("altText",this.setAltText,this),e.change("customButtons",this.updateButtons,this),e.on("change:captionsIndex",$,this),e.on("change:captionsList",$,this),e.change("nextUp",((t,e)=>{x=(0,k.B)(k.F);let i=c.nextUp;null!=e&&e.title&&(i+=`: ${e.title}`),H.setText(i),V.next.toggle(Boolean(e))}),this),e.change("audioMode",this.onAudioMode,this),V.cast&&(e.change("castAvailable",this.onCastAvailable,this),e.change("castActive",this.onCastActive,this)),V.volumetooltip&&(V.volumetooltip.on("update",(function(t){const e=t.percentage;this._api.setVolume(e)}),this),V.volumetooltip.on("toggleValue",(function(){this._api.setMute()}),this),V.volumetooltip.on("adjustVolume",(function(t){this.trigger("adjustVolume",t)}),this)),null!=V&&null!=(a=V.cast)&&a.button){const t=V.cast.ui.on("click enter",(function(t){"keydown"===t.type&&V.cast.button.click(),this._model.set("castClicked",!0)}),this);this.ui.push(t)}const D=(0,C.Z)(V.duration,(function(){if("DVR"===this._model.get("streamType")){const t=this._model.get("position"),e=this._model.get("dvrSeekLimit");this._api.seek(Math.max(-e,t),{reason:"interaction"})}}),this);this.ui.push(D);const W=new g.ZP(this.el).on("click drag",(function(){this.trigger(s.xf)}),this);this.ui.push(W),p.forEach((t=>{t.on("open-tooltip",this.closeMenus,this)}))}onVolume(t,e){this.renderVolume(t.get("mute"),e)}renderVolume(t,e){const i=this.elements.mute,n=this.elements.volumetooltip;if(i&&((0,l.og)(i.element(),"jw-off",t),(0,l.og)(i.element(),"jw-full",!t)),n){const i=t?0:e,s=n.element();n.verticalSlider.render(i),n.horizontalSlider.render(i);const{tooltip:o,horizontalContainer:a}=n;(0,l.og)(s,"jw-off",t),(0,l.og)(s,"jw-full",e>=75&&!t),(0,l.P$)(o,"aria-valuenow",i),(0,l.P$)(a,"aria-valuenow",i);const r=`Volume ${i}%`;(0,l.P$)(o,"aria-valuetext",r),(0,l.P$)(a,"aria-valuetext",r),document.activeElement!==o&&document.activeElement!==a&&(this._volumeAnnouncer.textContent=r)}}onCastAvailable(t,e){this.elements.cast.toggle(e)}onCastActive(t,e){this.elements.fullscreen.toggle(!e),this.elements.imaFullscreen.toggle(!e),this.elements.pip&&this.elements.pip.toggle(!e),this.elements.cast.button&&(0,l.og)(this.elements.cast.button,"jw-off",!e)}onElapsed(t,e){let i,n;const s=t.get("duration");if("DVR"===t.get("streamType")){const s=Math.ceil(e),o=-this._model.get("dvrSeekLimit")*1.2;i=n="",t.set("dvrLive",s>=o)}else i=(0,x.timeFormat)(e),n=(0,x.timeFormat)(s-e);this.elements.elapsed.textContent=i,this.elements.countdown.textContent=n}onDuration(t,e){this.elements.duration.textContent=(0,x.timeFormat)(Math.abs(e))}onAudioMode(t,e){const i=this.elements.time.element();e?this.elements.buttonContainer.insertBefore(i,this.elements.elapsed):(0,l.SH)(this.el,i)}element(){return this.el}setAltText(t,e){this.elements.alt.textContent=e}closeMenus(t){this.menus.forEach((e=>{t&&t.target===e.el||e.closeTooltip(t)}))}rewind(){let t,e=0;const i=this._model.get("currentTime");i?t=i-10:(t=this._model.get("position")-10,"DVR"===this._model.get("streamType")&&(e=this._model.get("duration"))),this._api.seek(Math.max(t,e),{reason:"interaction"})}onState(t,e){const i=t.get("localization");let n=i.play;this.setPlayText(n),e===s.r0&&("LIVE"!==t.get("streamType")?(n=i.pause,this.setPlayText(n)):(n=i.stop,this.setPlayText(n))),(0,l.P$)(this.elements.play.element(),"aria-label",n)}onAllowFullscreenToggle(t,e){[this.elements.fullscreen.element(),this.elements.imaFullscreen.element()].forEach((t=>{(0,l.og)(t,"jw-fullscreen-disallowed",!e)}))}onStreamTypeChange(t,e){const i="LIVE"===e,n="DVR"===e;this.elements.rewind&&this.elements.rewind.toggle(!i),this.elements.live.toggle(i||n),(0,l.P$)(this.elements.live.element(),"tabindex",i?"-1":"0"),this.elements.duration.style.display=n?"none":"",this.onDuration(t,t.get("duration")),this.onState(t,t.get("state"))}addLogo(t){const e=this.elements.buttonContainer,i=new a.Z(t.file,this._model.get("localization").logo,(()=>{t.link&&(0,l.nG)(t.link,"_blank",{rel:"noreferrer"})}),"logo","jw-logo-button");t.link||(0,l.P$)(i.element(),"tabindex","-1"),e.insertBefore(i.element(),e.querySelector(".jw-spacer").nextSibling)}goToLiveEdge(){if("DVR"===this._model.get("streamType")){const t=Math.min(this._model.get("position"),-1),e=this._model.get("dvrSeekLimit");this._api.seek(Math.max(-e,t),{reason:"interaction"}),this._api.play({reason:"interaction"})}}updateButtons(t,e,i){if(!e)return;const n=this.elements.buttonContainer;let s,o;e!==i&&i?(s=A(e,i),o=A(i,e),this.removeButtons(n,o)):s=e;for(let t=s.length-1;t>=0;t--){const e=s[t],i=new a.Z(e.img,e.tooltip,e.callback,e.id,e.btnClass);let o;e.tooltip&&(0,b.m)(i.element(),e.id,e.tooltip),"related"===i.id?o=this.elements.settingsButton.element():"share"===i.id?o=n.querySelector('[button="related"]')||this.elements.settingsButton.element():(o=this.elements.spacer.nextSibling,o&&"logo"===o.getAttribute("button")&&(o=o.nextSibling)),n.insertBefore(i.element(),o)}}removeButtons(t,e){for(let i=e.length;i--;){const n=t.querySelector(`[button="${e[i].id}"]`);n&&t.removeChild(n)}}toggleCaptionsButtonState(t){const e=this.elements.captionsButton;e&&(0,l.og)(e.element(),"jw-off",!t)}destroy(){this._model.off(null,null,this),Object.keys(this.elements).forEach((t=>{const e=this.elements[t];e&&"function"==typeof e.destroy&&this.elements[t].destroy()})),this.ui.forEach((t=>{t.destroy()})),this.ui=[]}}},4697:(t,e,i)=>{"use strict";i.d(e,{Z:()=>u});const n=(t="",e="")=>`
`;var s=i(5646);class o{constructor(t,e,i){const n=i.querySelector(".jw-icon");this.el=i,this.ui=(0,s.Z)(n,(function(){const i=t.get("position"),n=t.get("duration"),s=i-10;let o=0;"DVR"===t.get("streamType")&&(o=n),e.seek(Math.max(s,o))}))}element(){return this.el}}var a=i(328),r=i(2799);class l extends a.ZP{constructor(t,e,i){super();const n=t.get("localization"),o=i.querySelector(".jw-icon");if(this.icon=o,this.el=i,this.ui=(0,s.Z)(o,(t=>{this.trigger(t.type)})),t.on("change:state",((t,e)=>{let i;switch(e){case"buffering":i=n.buffer;break;case"playing":i=n.pause;break;case"idle":case"paused":i=n.playback;break;case"complete":i=n.replay;break;default:i=""}""!==i?o.setAttribute("aria-label",i):o.removeAttribute("aria-label")})),t.get("displayPlaybackLabel")){let t=this.icon.getElementsByClassName("jw-idle-icon-text")[0];t||(t=(0,r.az)(`
${n.playback}
`),(0,r.cn)(this.icon,"jw-idle-label"),this.icon.appendChild(t))}}element(){return this.el}}class c{constructor(t,e,i){const n=i.querySelector(".jw-icon");this.ui=(0,s.Z)(n,(function(){e.next({reason:"interaction"})})),t.change("nextUp",(function(t,e){i.style.visibility=e?"":"hidden"})),this.el=i}element(){return this.el}}var d=i(7191);const h=function(t,e,i,n,s,o,a){const r=n.querySelector(`.jw-display-icon-${t}`),l=n.querySelector(`.jw-icon-${t}`);e.forEach((t=>{l.appendChild(t)})),s[t]=new i(o,a,r)};class u{constructor(t,e){var i;this.el=(0,r.az)((i=t.get("localization"),'
'+n("rewind",i.rewind)+n("display",i.playback)+n("next",i.next)+"
"));const s=this.el.querySelector(".jw-display-controls"),a={};h("rewind",(0,d.o)("rewind"),o,s,a,t,e),h("display",(0,d.o)("play,pause,buffer,replay"),l,s,a,t,e),h("next",(0,d.o)("next"),c,s,a,t,e),this.container=s,this.buttons=a}element(){return this.el}destroy(){const t=this.buttons;Object.keys(t).forEach((e=>{t[e].ui&&t[e].ui.destroy()}))}}},7191:(t,e,i)=>{"use strict";i.d(e,{W:()=>dt,o:()=>ht});var n=i(147),s=i.n(n),o=i(4886),a=i.n(o),r=i(4777),l=i.n(r),c=i(6084),d=i.n(c),h=i(2521),u=i.n(h),p=i(6207),w=i.n(p),g=i(6641),m=i.n(g),j=i(3498),f=i.n(j),b=i(3918),y=i.n(b),v=i(3356),x=i.n(v),k=i(8157),C=i.n(k),M=i(5806),_=i.n(M),T=i(7766),S=i.n(T),E=i(4851),A=i.n(E),P=i(3207),I=i.n(P),z=i(7938),L=i.n(z),B=i(4060),V=i.n(B),F=i(4119),$=i.n(F),O=i(9992),R=i.n(O),H=i(6038),Z=i.n(H),N=i(5058),q=i.n(N),U=i(7459),D=i.n(U),W=i(4606),Q=i.n(W),Y=i(1438),K=i.n(Y),J=i(5147),X=i.n(J),G=i(9863),tt=i.n(G),et=i(2494),it=i.n(et),nt=i(544),st=i.n(nt),ot=i(4667);let at=null;const rt=function(){return at||(at=(0,ot.Z)(`${s()}${a()}${l()}${d()}${u()}${w()}${m()}${f()}${y()}${x()}${C()}${_()}${S()}${A()}${I()}${L()}${V()}${$()}${R()}${Z()}${q()}${K()}${X()}${D()}${Q()}${tt()}${it()}${st()}`)),at},lt=function(t){return`.jw-svg-icon-${t}`},ct=function(t){return t.cloneNode(!0)},dt=function(t){const e=rt().querySelector(lt(t));return e?ct(e):null},ht=function(t){const e=rt().querySelectorAll(t.split(",").map(lt).join(","));return Array.prototype.map.call(e,(t=>ct(t)))}},3163:(t,e,i)=>{"use strict";i.d(e,{Ge:()=>o,dr:()=>r,v2:()=>a});var n=i(4060),s=i.n(n);const o=t=>``,a=({label:t,currentSelection:e})=>``,r=t=>``},7509:(t,e,i)=>{"use strict";i.d(e,{E6:()=>s,Z2:()=>o,qF:()=>n});const n=(t,e,i)=>e?``:``,s=(t,e,i)=>e?``:``,o=(t,e,i,n)=>`
${n}
`},5187:(t,e,i)=>{"use strict";i.d(e,{Z:()=>o});var n=i(974),s=i(2799);const o=class{constructor(t){this.model=t.player}hide(){(0,n.oB)(this.el,{display:"none"})}show(){(0,n.oB)(this.el,{display:""})}setup(t){if(this.el=t,!this.el)return;const e=this.el.getElementsByTagName("div");this.title=e[0],this.description=e[1],this.model.on("change:logoWidth",this.update,this),this.model.change("playlistItem",this.playlistItem,this)}update(t){const e={},i=t.get("logo");if(i){const n=1*parseInt(`${i.margin}`.replace("px",""),10),s=t.get("logoWidth")+(isNaN(n)?0:n+10);"top-left"===i.position?e.paddingLeft=s:"top-right"===i.position&&(e.paddingRight=s)}(0,n.oB)(this.el,e)}playlistItem(t,e){if(e)if(t.get("displaytitle")||t.get("displaydescription")){let i="",n="";"string"==typeof e.title&&t.get("displaytitle")&&(i=e.title),"string"==typeof e.description&&t.get("displaydescription")&&(n=e.description),this.updateText(i,n)}else this.hide()}updateText(t,e){this.title&&this.description&&((0,s.nh)(this.title,(0,s.Ww)(t)),(0,s.nh)(this.description,(0,s.Ww)(e)),this.title.firstChild||this.description.firstChild?this.show():this.hide())}element(){return this.el}}},5646:(t,e,i)=>{"use strict";i.d(e,{Z:()=>s});var n=i(5882);const s=function(t,e,i){return new n.ZP(t).on("click enter",e,i)}},6436:(t,e,i)=>{"use strict";i.d(e,{d:()=>o,i:()=>s});var n=i(2799);const s=function(t){let e=-1;return t>=1280?e=7:t>=960?e=6:t>=800?e=5:t>=640?e=4:t>=540?e=3:t>=420?e=2:t>=320?e=1:t>=250&&(e=0),e},o=function(t,e){const i=`jw-breakpoint-${e}`;(0,n.L_)(t,/jw-breakpoint--?\d+/,i)}},8446:(t,e,i)=>{"use strict";i.d(e,{FM:()=>o,Sf:()=>r,xq:()=>a});var n=i(2957),s=i(974);const o=t=>t.replace(/^(.*\/)?(.*)-?.*\.(css).*$/,"$2"),a=t=>{t||(t={});const e=t.active,i=t.inactive,n=t.background,o={};return o.controlbar=(t=>{if(t||e||i||n){const s={};return t=t||{},s.iconsActive=t.iconsActive||e,s.icons=t.icons||i,s.text=t.text||i,s.background=t.background||n,s}})(t.controlbar),o.timeslider=(t=>{if(t||e){const i={};return t=t||{},i.progress=t.progress||e,i.rail=t.rail,i.buffer=t.buffer,!i.buffer&&i.progress&&(i.buffer=(0,s.HY)(i.progress,50)),i.knob=t.knob||i.progress,i.ads=t.ads||n,i}})(t.timeslider),o.menus=(t=>{if(t||e||i||n){const s={};return t=t||{},s.text=t.text||i,s.textActive=t.textActive||e,s.background=t.background||n,s}})(t.menus),o.tooltips=(t=>{if(t||i||n){const e={};return t=t||{},e.text=t.text||i,e.background=t.background||n,e}})(t.tooltips),o},r=(t,e)=>{if(!e)return;const i=(e,i,o,a)=>{if(!o)return;e=(0,n.O4)(e,`#${t}${a?"":" "}`);const r={};r[i]=o,(0,s.iv)(e.join(", "),r,t)};var o;e.controlbar&&(o=e.controlbar,i([".jw-controlbar .jw-icon-inline.jw-text",".jw-title-primary",".jw-title-secondary"],"color",o.text),o.icons&&(i([".jw-button-color:not(.jw-icon-cast)",".jw-button-color.jw-toggle.jw-off:not(.jw-icon-cast)"],"color",o.icons),i([".jw-display-icon-container .jw-button-color"],"color",o.icons),(0,s.iv)(`#${t} .jw-icon-cast google-cast-launcher.jw-off`,`{--disconnected-color: ${o.icons}}`,t)),o.iconsActive&&(i([".jw-display-icon-container .jw-button-color:hover",".jw-display-icon-container .jw-button-color:focus"],"color",o.iconsActive),i([".jw-button-color.jw-toggle:not(.jw-icon-cast)",".jw-button-color:hover:not(.jw-icon-cast)",".jw-button-color:focus:not(.jw-icon-cast)",".jw-button-color.jw-toggle.jw-off:hover:not(.jw-icon-cast)"],"color",o.iconsActive),i([".jw-svg-icon-buffer"],"fill",o.icons),(0,s.iv)(`#${t} .jw-icon-cast:hover google-cast-launcher.jw-off`,`{--disconnected-color: ${o.iconsActive}}`,t),(0,s.iv)(`#${t} .jw-icon-cast:focus google-cast-launcher.jw-off`,`{--disconnected-color: ${o.iconsActive}}`,t),(0,s.iv)(`#${t} .jw-icon-cast google-cast-launcher.jw-off:focus`,`{--disconnected-color: ${o.iconsActive}}`,t),(0,s.iv)(`#${t} .jw-icon-cast google-cast-launcher`,`{--connected-color: ${o.iconsActive}}`,t),(0,s.iv)(`#${t} .jw-icon-cast google-cast-launcher:focus`,`{--connected-color: ${o.iconsActive}}`,t),(0,s.iv)(`#${t} .jw-icon-cast:hover google-cast-launcher`,`{--connected-color: ${o.iconsActive}}`,t),(0,s.iv)(`#${t} .jw-icon-cast:focus google-cast-launcher`,`{--connected-color: ${o.iconsActive}}`,t)),i([" .jw-settings-topbar",":not(.jw-state-idle) .jw-controlbar",".jw-flag-audio-player .jw-controlbar"],"background",o.background,!0)),e.timeslider&&(t=>{const{progress:e,buffer:n,rail:o,knob:a,ads:r}=t;e&&"none"!==e&&(i([".jw-progress"],"background-color",e),i([".jw-slider-volume .jw-buffer"],"background-color",(0,s.HY)(e,50))),n&&"none"!==n&&i([".jw-slider-time .jw-buffer"],"background-color",n),r&&"none"!==r&&i([".jw-slider-time .jw-cue-type-ads"],"background-color",r),a&&"none"!==a&&i([".jw-knob"],"background-color",a),o&&"none"!==o&&i([".jw-rail"],"background-color",o),i([".jw-background-color.jw-slider-time",".jw-slider-time .jw-cue"],"background-color",t.background)})(e.timeslider),e.menus&&(t=>{i([".jw-option",".jw-toggle.jw-off",".jw-skip .jw-skip-icon",".jw-nextup-tooltip",".jw-nextup-close",".jw-settings-content-item",".jw-related-title"],"color",t.text),i([".jw-option.jw-active-option",".jw-option:not(.jw-active-option):hover",".jw-option:not(.jw-active-option):focus",".jw-settings-content-item:hover",".jw-nextup-tooltip:hover",".jw-nextup-tooltip:focus",".jw-nextup-close:hover"],"color",t.textActive),i([".jw-nextup",".jw-settings-menu"],"background",t.background)})(e.menus),e.tooltips&&(t=>{i([".jw-skip",".jw-tooltip .jw-text",".jw-time-tip .jw-text"],"background-color",t.background),i([".jw-time-tip",".jw-tooltip"],"color",t.background),i([".jw-skip"],"border","none"),i([".jw-skip .jw-text",".jw-skip .jw-icon",".jw-time-tip .jw-text",".jw-tooltip .jw-text"],"color",t.text)})(e.tooltips),e.menus&&(e=>{if(e.textActive){const i={color:e.textActive,borderColor:e.textActive,stroke:e.textActive};(0,s.iv)(`#${t} .jw-color-active`,i,t),(0,s.iv)(`#${t} .jw-color-active-hover:hover`,i,t)}if(e.text){const i={color:e.text,borderColor:e.text,stroke:e.text};(0,s.iv)(`#${t} .jw-color-inactive`,i,t),(0,s.iv)(`#${t} .jw-color-inactive-hover:hover`,i,t)}})(e.menus)}},7047:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>$e});var n=i(1918),s=i(1643),o=i(6391),a=i(623),r=i(5191);const l=["notVisible","always","never"];var c=i(9128),d=i(7263),h=i(8320),u=i(658),p=i(2957),w=i(328),g=i(2303);class m{constructor(t){this.callback=t}async async(...t){if(null!==this.callback)return this.callback(...t)}cancel(){this.callback=null}cancelled(){return null===this.callback}}const j=function(t){return new m(t)};const f=class{constructor(t){this.cancelableOps=[]}add(t){let e;return e=j(((...i)=>(this.remove(e),t(...i)))),this.cancelableOps.push(e),(...t)=>e.async(...t)}remove(t){const e=this.cancelableOps.indexOf(t);-1!==e&&this.cancelableOps.splice(e,1)}cancelAll(){this.cancelableOps.forEach((t=>t.cancel())),this.cancelableOps.length=0}};var b=i(4446),y=i(6042);const v=function(t,e){const i=this.mediaModel,n=Object.assign({},e,{type:t});switch(t){case s.oZ:if(i.get(s.oZ)===n.mediaType)return;i.set(s.oZ,n.mediaType);break;case s.AQ:i.set(s.AQ,e);break;case s.ug:return void i.set(s.ug,Object.assign({},e));case s.gy:if(e[s.gy]===this.model.getMute())return;break;case s.uc:{const{newstate:t}=e;t===s.bc&&(this.thenPlayPromise.cancel(),i.srcReset());const n=i.attributes.mediaState;i.attributes.mediaState=t,i.trigger("change:mediaState",i,t,n);break}case s.Ms:return this.beforeComplete=!0,this.trigger(s.s$,n),void(this.attached&&!this.background&&this._playbackComplete());case s.Ew:i.get("setup")?(this.thenPlayPromise.cancel(),i.srcReset()):(t=s.cM,n.code+=1e5);break;case s.rx:{const{duration:t,metadataType:o,seekRange:a,programDateTime:r}=e;o||(n.metadataType="unknown"),r&&!i.get(s.AQ)&&(i.set(s.AQ,{ready:!0,startDateTime:r}),this.trigger(s.AQ)),(0,y.qh)(t)&&(i.set("seekRange",a),i.set("duration",t));break}case s.uT:i.set("buffer",e.bufferPercent);case s.R2:{const n=e;i.set("seekRange",n.seekRange),i.set("position",n.position),i.set("currentTime",n.currentTime);const o=n.duration;(0,y.qh)(o)&&i.set("duration",o),t===s.R2&&"starttime"in this.item&&delete this.item.starttime;break}case s.aQ:{const t=this.mediaElement;null!=t&&t.paused&&i.set("mediaState","paused");break}case s.UZ:i.set(s.UZ,e.levels);case s.aM:{const{currentQuality:t,levels:n}=e;t>-1&&n.length>1&&i.set("currentLevel",parseInt(t,10));break}case s.j0:i.set(s.j0,e.tracks);case s._B:{const{currentTrack:t,tracks:n}=e;t>-1&&n.length>0&&t{t[i]=e[i]})),t.instreamMode=Boolean(t.instream),delete t.instream,delete t.mediaModel,t}persistQualityLevel(t,e){const i=e[t]||{},{label:n}=i,s=(0,y.qh)(i.bitrate)?i.bitrate:null;this.set("bitrateSelection",s),this.set("qualityLabel",n)}setActiveItem(t){const e=this.get("playlist")[t];this.resetItem(e),this.attributes.playlistItem=null,this.set("item",t),this.set("minDvrWindow",e.minDvrWindow),this._lastItemSeekLimit=e.dvrSeekLimit||0,this.set("dvrSeekLimit",this._lastItemSeekLimit),this.set("playlistItem",e)}setMediaModel(t){this.mediaModel&&this.mediaModel!==t&&this.mediaModel.off(),t=t||new T,this.mediaModel=t,function(t){const e=t.get("mediaState");t.trigger("change:mediaState",t,e,e)}(t)}destroy(){this.attributes._destroyed=!0,this.off(),this._provider&&(this._provider.off(null,null,this),this._provider.destroy(),this._provider=null),this.mediaModel&&this.mediaModel.off(),this.providerController=null}getVideo(){return this._provider}setFullscreen(t){(t=Boolean(t))!==this.get("fullscreen")&&this.set("fullscreen",t)}getProviders(){return this.providerController}setVolume(t){if(!(0,y.qh)(t))return;const e=Math.min(Math.max(0,t),100);this.set("volume",e);const i=0===e;i!==this.getMute()&&this.setMute(i)}getMute(){return this.get("autostartMuted")||this.get("mute")}setMute(t){if(void 0===t&&(t=!this.getMute()),this.set("mute",Boolean(t)),!t){const t=Math.max(10,this.get("volume"));this.set("autostartMuted",!1),this.setVolume(t)}}setStreamType(t){this.set("streamType",t),"LIVE"===t&&this.setPlaybackRate(1),"DVR"===t&&this.set("dvrSeekLimit",this._lastItemSeekLimit||M.OG)}setProvider(t){this._provider=t,((t,e)=>{t.set("provider",e.getName()),!0===t.get("instreamMode")&&(e.instreamMode=!0),t.setPlaybackRate(t.get("defaultPlaybackRate")),t.set("supportsPlaybackRate",e.supportsPlaybackRate),t.set("playbackRate",e.getPlaybackRate()),t.set("renderCaptionsNatively",e.renderNatively)})(this,t)}resetProvider(){this._provider=null,this.set("provider",void 0)}setPlaybackRate(t){var e;(0,y.hj)(t)&&(t=Math.max(Math.min(t,4),.25),"LIVE"===this.get("streamType")&&(t=1),this.set("defaultPlaybackRate",t),null==this||null==(e=this._provider)||null==e.setPlaybackRate||e.setPlaybackRate(t))}persistCaptionsTrack(){const t=this.get("captionsTrack");t?this.set("captionLabel",t.name):this.set("captionLabel","Off")}setVideoSubtitleTrack(t,e){this.set("captionsIndex",t),t&&e&&t<=e.length&&e[t-1].data&&this.set("captionsTrack",e[t-1])}persistVideoSubtitleTrack(t,e){this.setVideoSubtitleTrack(t,e),this.persistCaptionsTrack()}setAutoStart(t){void 0!==t&&this.set("autostart",t);const e=Boolean(k.OS.mobile&&this.get("autostart"));this.set("playOnViewable",e||"viewable"===this.get("autostart"))}setCues(t){const e=this.get("playlistItem");e.chapters=(0,_._b)(t,e.chapters);const i=t.filter((t=>"chapters"!==t.cueType));this.set("cues",i),this.set("playlistItem",e),this.trigger("change:chapters",this)}getCues(){const t=this.get("playlistItem").chapters,e=(0,_.$W)(t,this.mediaModel.get("duration"));return(this.get("cues")||[]).concat(e)}resetItem(t){const e=t?(0,p.m9)(t.starttime):0,i=t?(0,p.m9)(t.duration):0,n=this.mediaModel;this.set("playRejected",!1),this.attributes.itemMeta={},n.set("position",e),n.set("currentTime",0),n.set("duration",i)}persistBandwidthEstimate(t){(0,y.qh)(t)&&this.set("bandwidthEstimate",t)}_normalizeConfig(t){const e=t.floating;e&&Boolean(e.disabled)&&delete t.floating}}const E=S;class A extends w.ZP{constructor(t,e){super(),this.attached=!0,this.beforeComplete=!1,this.item=null,this.mediaModel=new T,this.model=e,this.provider=t,this.providerListener=v,this.thenPlayPromise=j((()=>{})),t.off(),t.on("all",this.providerListener,this),this.eventQueue=new c.Z(this,["trigger"],(()=>!this.attached||this.background)),this.playPromise=Promise.resolve(),this.cancelableOps=new f}play(t){const{item:e,model:i,mediaModel:n,provider:s}=this;return this.cancelableOps.cancelAll(),t||(t=i.get("playReason")),i.set("playRejected",!1),n.get("setup")?s.play()||Promise.resolve():(n.set("setup",!0),this.playPromise=this._loadAndPlay(e,s),n.get("started")?this.playPromise:this._playAttempt(this.playPromise,t))}stop(){const{provider:t}=this;this.beforeComplete=!1;const e=this.cancelableOps.add((()=>t.stop()));this.playPromise.then(e).catch((t=>{}))}pause(){const{provider:t}=this,e=this.cancelableOps.add((()=>t.pause()));this.playPromise.then(e)}preload(){const{item:t,mediaModel:e,provider:i}=this;!t||t&&"none"===t.preload||!this.attached||this.setup||this.preloaded||(e.set("preloaded",!0),i.preload(t))}destroy(){const{provider:t,mediaModel:e}=this;this.off(),e.off(),t.off(),this.eventQueue.destroy(),this.detach(),t.getContainer()&&t.remove(),this.eventQueue&&this.eventQueue.destroy(),delete t.instreamMode,this.thenPlayPromise&&this.thenPlayPromise.cancel(),this.provider=this.mediaModel=this.model=this.eventQueue=this.item=this.providerListener=this.playPromise=this.thenPlayPromise=null}attach(){const{model:t,provider:e}=this;t.setPlaybackRate(t.get("defaultPlaybackRate")),e.attachMedia(),this.attached=!0,this.eventQueue.flush(),this.beforeComplete&&this._playbackComplete()}detach(){const{provider:t}=this;this.thenPlayPromise.cancel();const e=t.detachMedia();return this.attached=!1,e}_playAttempt(t,e){const{item:i,mediaModel:n,model:o,provider:a}=this,r=a?a.video:null;return this.trigger(s.cq,{item:i,playReason:e}),(r?r.paused:o.get(s.uc)!==s.r0)||o.set(s.uc,s.Kb),t.then((()=>{n.get("setup")&&(n.set("started",!0),n===o.mediaModel&&(t=>{const e=t.get("mediaState");t.trigger("change:mediaState",t,e,e)})(n))})).catch((t=>{if(this.item&&n===o.mediaModel){o.set("playRejected",!0);if(null==r?void 0:r.paused){if(r.src===location.href)return this._loadAndPlay(i,a);n.set("mediaState",s._5)}const l=Object.assign(new b.rG(null,(0,b.nm)(t),t),{error:t,item:i,playReason:e});throw delete l.key,this.trigger(s.Je,l),t}}))}_playbackComplete(){const{item:t,provider:e}=this;t&&delete t.starttime,this.beforeComplete=!1,e.setState(s.xQ),this.trigger(s.Ms,{})}_loadAndPlay(){const{item:t,provider:e}=this,i=e.load(t);if(i){const t=j((()=>this.provider.play()||Promise.resolve()));return this.thenPlayPromise=t,i.then((()=>t.async()))}return e.play()||Promise.resolve()}get audioTracks(){return this.provider.getAudioTracks()}get mediaElement(){return this.provider.video}get preloaded(){return this.mediaModel.get("preloaded")}get qualities(){return this.provider.getQualityLevels()}get setup(){return this.mediaModel.get("setup")}get started(){return this.mediaModel.get("started")}get activeItem(){return this.provider.activeItem}set activeItem(t){const e=this.mediaModel=new T,i=t?(0,p.m9)(t.starttime):0,n=t?(0,p.m9)(t.duration):0,s=e.attributes;e.srcReset(),s.position=i,s.duration=n,this.item=t,this.provider.init(t)}get audioTrack(){return this.provider.getCurrentAudioTrack()}set audioTrack(t){this.provider.setCurrentAudioTrack(t)}get background(){if(!this.attached)return!1;const t=this.provider;if(!t.video)return!1;const e=t.getContainer();return!e||e&&!e.contains(t.video)}set background(t){const e=this.provider;if(!e.video)return void(t?this.detach():this.attach());const i=e.getContainer();i&&(t?this.background||(this.thenPlayPromise.cancel(),this.pause(),e.removeFromContainer?e.removeFromContainer():i.removeChild(e.video),this.container=null):(this.eventQueue.flush(),this.beforeComplete&&this._playbackComplete()))}get container(){return this.provider.getContainer()}set container(t){const{provider:e}=this;e.setContainer(t)}get controls(){return this.provider.controls}set controls(t){this.provider.setControls(t)}get mute(){return this.provider.getMute()}set mute(t){this.provider.mute(t)}get position(){return this.provider.position}set position(t){const{provider:e}=this;this.model.get("scrubbing")&&e.fastSeek?e.fastSeek(t):e.seek(t)}get quality(){return this.provider.getCurrentQuality()}set quality(t){this.provider.setCurrentQuality(t)}get subtitles(){return this.provider.subtitles}set subtitles(t){this.provider.setSubtitlesTrack&&this.provider.setSubtitlesTrack(t)}get volume(){return this.provider.volume}set volume(t){this.provider.volume(t)}}var P=i(393);class I extends Error{constructor(t){super(t),this.code=b._M}}class z{constructor(t,e,i){this.index=t,this.model=e,this.api=i,this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e})),this.async=null,this.asyncPromise=null,this.rejected=!1}set callback(t){this.async=t}get skipped(){return this.rejected}run(){const{api:t,async:e,index:i,model:n,resolve:s,reject:o,promise:a}=this,r=n.get("playlist"),l=this.getItem(i);if(!l){const t=-1===i?"No recs item":`No playlist item at index ${i}`;this.rejected=!0,o(new Error(t))}if(e){this.clear();const a=this.asyncPromise=e.call(t,l,i);null!=a&&a.then?a.then((t=>{if(t&&t!==l&&r===n.get("playlist")){const e=this.replace(t);if(e)return void s(e)}s(l)})).catch((t=>{const e=new I("Item skipped by playlist item callback");e.sourceError=t,this.rejected=!0,o(e)})):this.asyncPromise=null}return this.asyncPromise||s(l),a}getItem(t){const{model:e}=this;if(-1===t)return e.get("nextUp");return e.get("playlist")[t]}replace(t){const{index:e,model:i}=this,n=(0,h.YF)(i,new P.Z(t),t.feedData||{});if(n){if(-1===e)i.set("nextUp",n);else{i.get("playlist")[e]=n}return n}}clear(){this.async=null}destroy(){this.model=this.api=this.promise=this.resolve=this.reject=this.async=this.asyncPromise=null}}const L=(t,e)=>{t.off().on("all",e.mediaControllerListener,e)},B=t=>{var e;return null==t||null==(e=t.sources)?void 0:e[0]};class V extends w.ZP{constructor(t,e,i){super(),this.adPlaying=!1,this.apiContext=i,this.background=function(){let t=null,e=null;return{setNext(t,i){e={item:t,loadPromise:i}},isNext:t=>Boolean(e&&JSON.stringify(e.item.sources[0])===JSON.stringify(t.sources[0])),updateNext(t){e&&(e.item=t)},clearNext(){e=null},get nextLoadPromise(){return e?e.loadPromise:null},get currentMedia(){return t},set currentMedia(e){t=e}}}(),this.mediaPool=e,this.mediaController=null,this.mediaControllerListener=x,this.model=t,this.providers=new g.Z(t.getConfiguration()),this.loadPromise=null,this.backgroundLoading=t.get("backgroundLoading"),this.asyncItems=[],this.itemSetContext=0,this.backgroundLoading||t.set("mediaElement",this.mediaPool.getPrimedElement())}asyncActiveItem(t){const{model:e}=this,i=setTimeout((()=>{e.set(s.uc,s.Kb)}),50);return this.getAsyncItem(t).run().then((t=>(clearTimeout(i),t))).catch((n=>{if(clearTimeout(i),tnull));throw n}))}setActiveItem(t){const{background:e,mediaController:i,model:n}=this,s=n.get("playlist")[t];n.attributes.itemReady=!1,i&&(i.mediaModel.off(),n.attributes.mediaModel=new T,n.mediaModel.attributes=i.mediaModel.clone()),e.isNext(s)||this._destroyBackgroundMedia();const o=this.itemSetContext=Math.random();return this.loadPromise=this.asyncActiveItem(t).then((s=>{if(null===s||o!==this.itemSetContext||null===this.providers)return null;n.setActiveItem(t);const a=B(s);if(!a)return Promise.reject(new b.rG(b.ul,b.o2));if(e.isNext(s))return this._destroyActiveMedia(),this._activateBackgroundMedia();if(i){if(n.get("castActive")||this._providerCanPlay(i.provider,a))return i.activeItem=s,this._setActiveMedia(i),i;this._destroyActiveMedia()}return this._setupMediaController(a).then((t=>{if(o===this.itemSetContext)return t.activeItem=s,this._setActiveMedia(t),t})).catch((t=>{throw this._destroyActiveMedia(),t}))}))}setAttached(t){const{mediaController:e}=this;if(this.attached=t,e){if(!t){const t=e.detach(),{item:i,mediaModel:n}=e,s=n.get("position");return s&&(i.starttime=s),t}e.attach()}}playVideo(t){const{mediaController:e,model:i}=this;let n;if(!i.get("playlistItem"))return Promise.reject(new Error("No media"));if(t||(t=i.get("playReason")),e)n=e.play(t);else{i.set(s.uc,s.Kb);const e=j((e=>{if(this.mediaController&&this.mediaController.mediaModel===e.mediaModel)return e.play(t);throw new Error("Playback cancelled.")}));n=(this.loadPromise||Promise.resolve()).catch((t=>{throw e.cancel(),t})).then((()=>e.async()))}return n}stopVideo(){const{mediaController:t,model:e}=this,i=e.get("playlist")[e.get("item")];e.attributes.playlistItem=i,e.resetItem(i),t&&t.stop()}preloadVideo(){const{background:t,mediaController:e}=this,i=e||t.currentMedia;i&&i.preload()}pause(){const{mediaController:t}=this;t&&t.pause()}castVideo(t,e){const{model:i}=this;i.attributes.itemReady=!1;const n=Object.assign({},e),s=n.starttime=i.mediaModel.get("currentTime");n.duration=i.mediaModel.get("duration")||null,this._destroyActiveMedia();const o=new A(t,i);o.activeItem=n,this._setActiveMedia(o),i.mediaModel.set("currentTime",s)}requestCast(t,e){try{(null==e?void 0:e.castProvider)||(this.model.set("castClicked",!0),e.switchProviders("requestCast")),e.castProvider.sendCommand("requestCast",t)}catch(t){throw new Error("No cast controller and/or provider available.")}}stopCast(){const{model:t}=this,e=t.get("item");t.get("playlist")[e].starttime=t.mediaModel.get("currentTime"),this.stopVideo(),this.setActiveItem(e).catch((()=>{}))}backgroundActiveMedia(){this.adPlaying=!0;const{background:t,mediaController:e}=this;e&&(t.currentMedia&&this._destroyMediaController(t.currentMedia),e.background=!0,t.currentMedia=e,this.mediaController=null)}restoreBackgroundMedia(){this.adPlaying=!1;const{background:t,mediaController:e}=this,i=t.currentMedia;if(!i)return;if(e&&e!==i)return this._destroyMediaController(i),void(t.currentMedia=null);const n=i.mediaModel.attributes;n.mediaState===s.bc?n.mediaState=s._5:n.mediaState!==s._5&&(n.mediaState=s.Kb),this._setActiveMedia(i),i.background=!1,t.currentMedia=null}backgroundLoad(t,e){const{background:i}=this,n=this.getAsyncItem(e).run().then((t=>{i.updateNext(t);const e=B(t);return this._setupMediaController(e).then((e=>(e.activeItem=t,e.preload(),e)))})).catch((()=>{i.clearNext()}));i.setNext(t,n)}forwardEvents(){const{mediaController:t}=this;t&&L(t,this)}routeEvents(t){const{mediaController:e}=this;e&&(e.off(),t&&L(e,t))}destroy(){this.off(),this._destroyBackgroundMedia(),this._destroyActiveMedia(),this.asyncItems&&this.asyncItems.forEach((t=>{t&&t.destroy()})),this.asyncItems=this.loadPromise=this.mediaControllerListener=this.model=this.providers=this.apiContext=null}_setActiveMedia(t){const{model:e}=this,{mediaModel:i,provider:n}=t;((t,e)=>{const i=t.get("mediaContainer");i?e.container=i:t.once("change:mediaContainer",((t,i)=>{e.container=i}))})(e,t),this.mediaController=t,e.set("mediaElement",t.mediaElement),e.setMediaModel(i),e.setProvider(n),L(t,this),e.set("itemReady",!0)}_destroyActiveMedia(){const{mediaController:t,model:e}=this;t&&t.provider&&(t.detach(),this._destroyMediaController(t),e.resetProvider(),this.mediaController=null)}_destroyBackgroundMedia(){const{background:t}=this;this._destroyMediaController(t.currentMedia),t.currentMedia=null,this._destroyBackgroundLoadingMedia()}_destroyMediaController(t){const{mediaPool:e}=this;t&&t.provider&&(e.recycle(t.mediaElement),t.destroy())}_setupMediaController(t){const{model:e,providers:i}=this,n=t=>new A(new t(e.get("id"),e.getConfiguration(),this.primedElement),e),{provider:s,name:o}=i.choose(t);return s?Promise.resolve(n(s)):i.load(o).then((t=>n(t)))}_activateBackgroundMedia(){const{background:t,background:{nextLoadPromise:e},model:i}=this;return this._destroyMediaController(t.currentMedia),t.currentMedia=null,e.then((e=>{if(e)return t.clearNext(),this.adPlaying?(i.attributes.itemReady=!0,t.currentMedia=e):(this._setActiveMedia(e),e.background=!1),e}))}_destroyBackgroundLoadingMedia(){const{background:t,background:{nextLoadPromise:e}}=this;e&&e.then((e=>{this._destroyMediaController(e),t.clearNext()}))}_providerCanPlay(t,e){const{provider:i}=this.providers.choose(e);return i&&t&&t instanceof i}get audioTracks(){const{mediaController:t}=this;if(t)return t.audioTracks}get mediaElement(){if(this.mediaController)return this.mediaController.mediaElement}get beforeComplete(){const{mediaController:t,background:{currentMedia:e}}=this;return!(!t&&!e)&&(t?t.beforeComplete:e.beforeComplete)}get primedElement(){if(!this.backgroundLoading){const{model:t}=this;return t.get("mediaElement")}return this.mediaPool.getPrimedElement()}get qualities(){const{mediaController:t}=this;return t?t.qualities:null}get audioTrack(){const{mediaController:t}=this;return t?t.audioTrack:-1}set audioTrack(t){const{mediaController:e}=this;e&&(e.audioTrack=parseInt(t,10)||0)}get position(){return this.mediaController.position}set position(t){const{mediaController:e}=this;e&&(e.item.starttime=t,e.attached&&(e.position=t))}get quality(){return this.mediaController?this.mediaController.quality:-1}set quality(t){const{mediaController:e}=this;e&&(e.quality=parseInt(t,10)||0)}set subtitles(t){const{mediaController:e}=this;e&&(e.subtitles=t)}get subtitles(){return this.mediaController.subtitles}setMute(t){const{background:e,mediaController:i,mediaPool:n}=this;i&&(i.mute=t),e.currentMedia&&(e.currentMedia.mute=t),n.syncMute(t)}setVolume(t){const{background:e,mediaController:i,mediaPool:n}=this;i&&(i.volume=t),e.currentMedia&&(e.currentMedia.volume=t),n.syncVolume(t)}set itemCallback(t){this.model.set("playlistItemCallback",t),this.asyncItems.forEach((e=>{e&&(e.callback=t)}))}get itemCallback(){return this.model.get("playlistItemCallback")}getAsyncItem(t){let e=this.asyncItems[t];return e||(e=this.asyncItems[t]=new z(t,this.model,this.apiContext),e.callback=this.model.get("playlistItemCallback")),e}clearItemPromises(){this.asyncItems.forEach((t=>{t&&t.reject(new Error("Item playback aborted"))})),this.asyncItems.length=0}}const F=V,$=t=>t===s.xQ||t===s.Vy?s.bc:t;function O(t,e,i){if((e=$(e))!==(i=$(i))){const n=e.replace(/(?:ing|d)$/,""),o=((t,e)=>t===s.Kb?e===s.nQ?e:s.ik:e)(e,t.mediaModel.get("mediaState")),a={type:n,newstate:e,oldstate:i,reason:o};"play"===n?a.playReason=t.get("playReason"):"pause"===n&&(a.pauseReason=t.get("pauseReason")),this.trigger(n,a)}}var R=i(4609);class H extends F{constructor(t,e){super(t,e);const i=this.model=new E;this.playerModel=t,this.provider=null,this.backgroundLoading=t.get("backgroundLoading"),i.mediaModel.attributes.mediaType="video";{let n;if(this.backgroundLoading)n=e.getAdElement();else{n=t.get("mediaElement"),i.attributes.mediaElement=n,i.attributes.mediaSrc=n.src;const e=this.srcResetListener=()=>{this.srcReset()};n.addEventListener("emptied",e),n.playbackRate=n.defaultPlaybackRate=1}this.mediaPool=(0,R.Z)(n,e)}}setup(){const{model:t,playerModel:e,primedElement:i}=this,n=e.attributes,o=e.mediaModel;t.setup({id:n.id,volume:n.volume,instreamMode:!0,edition:n.edition,mediaContext:o,mute:n.mute,streamType:"VOD",autostartMuted:n.autostartMuted,autostart:n.autostart,advertising:n.advertising,sdkplatform:n.sdkplatform,skipButton:!1}),t.on("change:state",O,this),t.on(s.pn,(function(t){this.trigger(s.pn,t)}),this),i.paused||i.pause()}setActiveItem(t){return this.adPlaying=!0,this.stopVideo(),this.provider=null,super.setActiveItem(t).then((t=>(this.trigger(s.$_),this._setProvider(t.provider),this.playVideo())))}usePsuedoProvider(t){t&&(this._setProvider(t),t.off(s.pn),t.on(s.pn,(function(t){this.trigger(s.pn,t)}),this))}_setProvider(t){if(!t||!this.mediaPool)return;this.provider=t;const{model:e,playerModel:i}=this,n="vpaid"===t.type;t.off(),t.on("all",(function(t,e){n&&t===s.Ms||this.trigger(t,Object.assign({},e,{type:t}))}),this);const o=e.mediaModel;t.on(s.uc,(t=>{t.oldstate=t.oldstate||e.get(s.uc),o.set("mediaState",t.newstate)})),t.on(s.h7,this._nativeFullscreenHandler,this),o.on("change:mediaState",((t,e)=>{this._stateHandler(e)})),t.attachMedia(),t.volume(i.get("volume")),t.mute(i.getMute()),t.setPlaybackRate&&t.setPlaybackRate(1),i.on("change:volume",(function(t,e){this.volume=e}),this),i.on("change:mute",(function(t,e){this.mute=e,e||(this.volume=i.get("volume"))}),this),i.on("change:autostartMuted",(function(t,n){n||(e.set("autostartMuted",n),this.mute=i.get("mute"))}),this)}destroy(){this.adPlaying=!1;const{model:t,mediaPool:e,playerModel:i}=this;t.off(),this.provider=null;const n=e.getPrimedElement();if(this.backgroundLoading){e.clean();const t=i.get("mediaContainer");n.parentNode===t&&t.removeChild(n)}else n&&(n.removeEventListener("emptied",this.srcResetListener),n.src!==t.get("mediaSrc")&&this.srcReset())}srcReset(){const{playerModel:t}=this,e=t.get("mediaModel"),i=t.getVideo();e.srcReset(),i&&(i.src=null)}_nativeFullscreenHandler(t){this.model.trigger(s.h7,t),this.trigger(s.UW,{fullscreen:t.jwstate})}_stateHandler(t){const{model:e}=this;switch(t){case s.r0:case s._5:e.set(s.uc,t)}}get mute(){return this.provider.getMute()}set mute(t){const{mediaController:e,model:i,provider:n}=this;i.set("mute",t),super.setMute(t),e||n.mute(t)}get volume(){return this.provider.volume}set volume(t){const{mediaController:e,model:i,provider:n}=this;i.set("volume",t),super.setVolume(t),e||n.volume(t)}}const Z={skipoffset:null,tag:null},N=function(t,e,i,n){let o,a,r=new H(e,n),l=0,c={},d=null,h={};const w=()=>{l++,this.loadItem(o).catch((function(){}))},g=function(t){c={},o&&l+1{v||((t=t||{}).hasControls=Boolean(e.get("controls")),this.trigger(s.l5,t),r.model.get("state")===s._5?t.hasControls&&r.playVideo().catch((function(){})):r.pause())},_=()=>{v||r.model.get("state")===s._5&&e.get("controls")&&(t.setFullscreen(),t.play())},T=function(e){const{duration:i,position:n}=e,s=r.model.mediaModel||r.model;s.set("duration",i),s.set("position",n),f||(f=((0,p.U5)(j,i)||i)-u.l_),!y&&n>=Math.max(f,u.HB)&&(t.preloadNextItem(),y=!0)},S=function(t,e){"complete"!==t&&(e=e||{},h.tag&&!e.tag&&(e.tag=h.tag),this.trigger(t,e),"mediaError"!==t&&"error"!==t||this.loadNextItemOnError())},E=function(){r.model.set("playRejected",!0)},A=function(n){n.width&&n.height&&i&&i.resizeMedia(),e.get("pip")&&t.requestPip(r.primedElement)},P=function(e){const{newstate:i}=e;i===s.r0?t.trigger(s.WE,e):i===s._5&&t.trigger(s.Ax,e)},I=function(t){const{newstate:e}=t,i=t.oldstate||r.model.get("state");"buffering"===i&&"playing"===e&&this.resolveAdPlayPromise&&this.resolveAdPlayPromise(),i!==e&&P(Object.assign({oldstate:i},c,t))};this.initAdPlayPromise=function(){return C=!1,this.adPlayPromise=new Promise(((t,e)=>{this.resolveAdPlayPromise=this.didAdPlay.bind(this,!0,t),this.rejectAdPlayPromise=this.didAdPlay.bind(this,!1,e)})),this.adPlayPromise},this.didAdPlay=function(t,i){this.resolveAdPlayPromise=null,this.rejectAdPlayPromise=null,e.set("instream",t?r:null),i()},this.init=function(){var n,o;if(x||v)return;x=!0,c={},r.setup(),r.on("all",S,this),r.on(s.Je,E,this),r.on(s.R2,T,this),r.on(s.Ms,m,this),r.on(s.rx,A,this),r.on(s.uc,I,this),d=t.detachMedia();{const t=r.primedElement;e.get("mediaContainer").appendChild(t)}if(C&&e.set("instream",r),r.model.set("state",s.Kb),i){const t=i.clickHandler();t&&t.setAlternateClickHandlers((()=>{}),null)}const a=C?null==(n=e.get("localization"))||null==(o=n.advertising)?void 0:o.loadingAd:null;return this.setText(a),k=t.isBeforeComplete()||e.get("state")===s.xQ,this};const z=n=>{if(!i)return;const o=i.clickHandler();o&&o.setAlternateClickHandlers((i=>{v||((i=i||{}).hasControls=Boolean(e.get("controls")),this.trigger(s.l5,i),n&&(e.get("state")===s._5?t.playVideo():(t.pause(),n&&(t.trigger(s.Rt,{clickThroughUrl:n}),window.open(n)))))}),null)};this.enableAdsMode=function(i){if(!x&&!v)return t.routeEvents({mediaControllerListener:(t,e)=>{this.trigger(t,e)}}),e.set("instream",r),r.model.set("state",s.r0),z(i),this},this.setEventData=function(t){c=t},this.setState=function(t){const{newstate:e}=t,i=r.model;t.oldstate=i.get("state"),i.set("state",e),P(t)},this.setTime=function(e){T(e),t.trigger(s.uL,e)},this.loadNextItemOnError=function(){o&&l+1{if(v||!x)return Promise.reject(new Error("Instream not setup"));c={};let n=t;Array.isArray(t)?(o=t,a=i||a,t=o[l],a&&(i=a[l])):n=[t];const u=r.model;u.set("playlist",n),e.set("hideAdsControls",!1),t.starttime=0,this.trigger(s.gO,{index:l,item:t}),h=Object.assign({},Z,i),L(),u.set("skipButton",!1);const p=!e.get("backgroundLoading")&&d?d.then((()=>r.setActiveItem(l))):r.setActiveItem(l);return y=!1,j=t.skipoffset||h.skipoffset,void 0!==j&&this.setupSkipButton(j,h),p},this.setupSkipButton=function(t,e,i){const n=r.model;b=i||g,n.set("skipMessage",e.skipmessage),n.set("skipText",e.skiptext),n.set("skipOffset",t),n.attributes.skipButton=!1,n.set("skipButton",!0)},this.applyProviderListeners=function(t){r.usePsuedoProvider(t),L()},this.play=function(){c={},r.playVideo()},this.pause=function(){c={},r&&r.pause()},this.skipAd=function(t){const i=e.get("autoPause").pauseAds,n="autostart"===e.get("playReason"),o=e.get("viewable");!i||n||o||(this.noResume=!0);const a=s.k3;this.trigger(a,t),b.call(this,{type:a})},this.replacePlaylistItem=function(t){v||(e.set("playlistItem",t),r.srcReset())},this.destroy=()=>{v||(this.setText(""),v=!0,this.adPlayPromise&&this.rejectAdPlayPromise&&this.rejectAdPlayPromise(),this.adPlayPromise=null,this.trigger("destroyed"),this.off(),null!=i&&null!=i.clickHandler&&i.clickHandler()&&i.clickHandler().revertAlternateClickHandlers(),e.off(null,null,r),r.off(null,null,this),r.destroy(),x&&e.get("instream")&&(e.attributes.state=s._5),t.forwardEvents(),e.set("instream",null),r=null,c={},d=null,x&&!e.attributes._destroyed&&(t.attachMedia(),e.get("pip")&&t.requestPip(),this.noResume||k||t.playVideo()))},this.getState=function(){return!v&&r.model.get("state")},this.setText=function(t){if(!this.resolveAdPlayPromise&&!this.rejectAdPlayPromise)return v||!i||i.setAltText(t||""),this},this.hide=function(){v||e.set("hideAdsControls",!0)},this.getMediaElement=function(){return v?null:r.primedElement},this.setSkipOffset=function(t){j=t>0?t:null,r&&r.model.set("skipOffset",j)}};Object.assign(N.prototype,w.ZP);const q=N;var U=i(6103),D=i(8377);class W{constructor(t){this._model=t,this._tracks=[],this._tracksById={},this._unknownCount=0,this._defaultIndex=0,this._model.on("change:playlistItem",(t=>{this._tracks=[],this._tracksById={},this._unknownCount=0;const e=t.attributes;e.captionsIndex=0,e.captionsList=this._captionsMenu(),t.set("captionsTrack",null)}),this),this._model.on("change:itemReady",(()=>{this._model.get("castActive")&&(this._tracks=[],this._tracksById={},this._unknownCount=0);const t=this._model.get("playlistItem").tracks,e=null==t?void 0:t.length;if(e&&!this._model.get("renderCaptionsNatively"))for(let i=0;i{this._addVTTCuesToTrack(e,t)}),(t=>{this.trigger(s.cM,t)})))}this._setCaptionsList()}),this),this._model.on("change:captionsIndex",((t,e)=>{let i=null;0!==e&&(i=this._tracks[e-1]),t.set("captionsTrack",i)}),this)}setSubtitlesTracks(t){Array.isArray(t)&&(t.length?(t.forEach((t=>this._addTrack(t))),this._tracks.sort(((e,i)=>{const n=t.indexOf(e);if(-1===n)return 1;const s=t.indexOf(i);return-1===s?-1:n-s}))):(this._tracks=[],this._tracksById={},this._unknownCount=0),this._setCaptionsList())}_kindSupported(t){return"subtitles"===t||"captions"===t}_addVTTCuesToTrack(t,e){t.data=e}_addTrack(t){t.data=t.data||[],t.name=t.label||t.name||t.language;const e=(0,D.M)(t,this._tracks.length);if(this._tracksById[e]&&(t.name=this._tracksById[e].name),!t.name){const e=(0,D._)(t,this._unknownCount);t.name=e.label,this._unknownCount=e.unknownCount}t._id=e,this._tracksById[e]=t,this._tracks=this._tracks.filter((t=>t._id!==e)),this._tracks.push(t)}_captionsMenu(){const t=[{id:"off",label:"Off"}];this._model.get("castActive")&&(this._tracks=this._tracks.filter((t=>-1!==t._id.indexOf("nativesubtitles"))));for(let e=0;e`${t.id}-${t.label}`)).join(",")}getCurrentIndex(){return this._model.get("captionsIndex")}getCaptionsList(){return this._model.get("captionsList")}destroy(){this.off(null,null,this)}}Object.assign(W.prototype,w.ZP);const Q=W;var Y=i(4225);var K=i(4671);const J=t=>{try{return t.getBoundingClientRect()}catch(t){}},X=(t,e)=>{const i=Math.max(t.top,e.top),n=Math.min(t.bottom,e.bottom),s=Math.max(t.left,e.left),o=Math.min(t.right,e.right),a=o-s,r=n-i;return a>=0&&r>=0&&{top:i,bottom:n,left:s,right:o,width:a,height:r}};function G(t,e){if(t.get("fullscreen"))return 1;if(!t.get("activeTab"))return 0;if(t.get("isFloating"))return 1;let i=t.get("intersectionRatio");return void 0===i&&(i=(t=>{const e=document.documentElement,i=document.body,n={top:0,left:0,right:e.clientWidth||i.clientWidth,width:e.clientWidth||i.clientWidth,bottom:e.clientHeight||i.clientHeight,height:e.clientHeight||i.clientHeight};if(!i.contains(t))return 0;if("none"===window.getComputedStyle(t).display)return 0;const s=J(t);if(!s)return 0;let o=s,a=t.parentNode,r=!1;for(;!r;){let t=null;if(a===i||a===e||1!==a.nodeType?(r=!0,t=n):"visible"!==window.getComputedStyle(a).overflow&&(t=J(a)),t&&(o=X(t,o),!o))return 0;a=a.parentNode}const l=s.width*s.height,c=o.width*o.height;return l?c/l:0})(e),window.top!==window.self&&i)?0:i}var tt=i(6875),et=i(1776),it=i(6436),nt=i(8446),st=i(4601),ot=i(2799),at=i(2268),rt=i(974);const lt=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"];var ct=i(7010);let dt,ht={};function ut(t,e,i){const n=function(t,e,i){const n=t.requestFullscreen||t.webkitRequestFullscreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullscreen,s=e.exitFullscreen||e.webkitExitFullscreen||e.webkitCancelFullScreen||e.mozCancelFullScreen||e.msExitFullscreen,o=Boolean(n&&s);for(let t=lt.length;t--;)e.addEventListener(lt[t],i);return{events:lt,supportsDomFullscreen:()=>o,requestFullscreen(){n.call(t,{navigationUI:"hide"})},exitFullscreen(){null!==this.fullscreenElement()&&s.apply(e)},fullscreenElement(){const{fullscreenElement:t,webkitCurrentFullScreenElement:i,mozFullScreenElement:n,msFullscreenElement:s}=e;return null===t?t:t||i||n||s},destroy(){for(let t=lt.length;t--;)e.removeEventListener(lt[t],i)}}}(t,e,i),s=ht.requestFullscreen||n.requestFullscreen,o=ht.exitFullscreen||n.exitFullscreen,a=dt||(()=>(0,ct.Z)()&&!k.OS.iOS&&!k.Browser.safari);return n.requestFullscreen=function(){if(!a())return s.call(n)},n.exitFullscreen=function(){if(!a())return o.call(n)},n}const pt=function(t,e){t.getContainer().querySelectorAll(".jw-icon-fullscreen").forEach((i=>{t.utils.style(i,{display:e})}))},wt=function(t){pt(t,"none")};var gt=i(5882);class mt extends w.ZP{constructor(t,e){super(),this.revertAlternateClickHandlers(),this.domElement=e,this.model=t,this.ui=new gt.ZP(e).on("click",this.clickHandler,this).on("doubleClick",(function(){this.alternateDoubleClickHandler?this.alternateDoubleClickHandler():this.trigger("doubleClick")}),this)}destroy(){this.ui&&(this.ui.destroy(),this.ui=null,this.domElement=null,this.model=null,this.revertAlternateClickHandlers())}clickHandler(t){this.model&&(this.alternateClickHandler?this.alternateClickHandler(t):this.trigger(s.ot))}element(){return this.domElement}setAlternateClickHandlers(t,e){this.alternateClickHandler=t,this.alternateDoubleClickHandler=e||null}revertAlternateClickHandlers(){this.alternateClickHandler=null,this.alternateDoubleClickHandler=null}}var jt=i(1831);var ft=i(5646);const bt={linktarget:"_blank",margin:8,hide:!1,position:"top-right"};function yt(t){let e,i;Object.assign(this,w.ZP);const n=new Image;this.setup=function(){var o,a;(i=Object.assign({},bt,t.get("logo")),i.position=i.position||bt.position,i.hide="true"===i.hide.toString(),i.file&&"control-bar"!==i.position)&&(e||(e=(0,ot.az)((o=i.position,a=i.hide,``))),t.set("logo",i),n.onload=function(){let n=this.height,s=this.width;const o={backgroundImage:`url("${this.src}")`};if(i.margin!==bt.margin){const t=/(\w+)-(\w+)/.exec(i.position);3===t.length&&(o[`margin-${t[1]}`]=i.margin,o[`margin-${t[2]}`]=i.margin)}const a=.15*t.get("containerHeight"),r=.15*t.get("containerWidth");if(n>a||s>r){const t=s/n;r/a>t?(n=a,s=a*t):(s=r,n=r/t)}o.width=Math.round(s),o.height=Math.round(n),(0,rt.oB)(e,o),t.set("logoWidth",o.width)},n.src=i.file,i.link&&(e.setAttribute("tabindex","0"),e.setAttribute("aria-label",t.get("localization").logo)),this.ui=(0,ft.Z)(e,(function(){this.trigger(s.Ib,{link:i.link,linktarget:i.linktarget})}),this))},this.setContainer=function(t){e&&t.appendChild(e)},this.element=function(){return e},this.position=function(){return i.position},this.destroy=function(){n.onload=null,this.ui&&this.ui.destroy()}}const vt=class{constructor(t){this.model=t,this.image=null}setup(t){this.el=t}setImage(t){let e=this.image;e&&(e.onload=null),this.image=null;let i="";"string"==typeof t&&t.length>0&&(i=`url("${t}")`,e=this.image=new Image,e.src=t),(0,rt.oB)(this.el,{backgroundImage:i})}resize(t,e,i){if("uniform"===i){if(t&&(this.playerAspectRatio=t/e),!this.playerAspectRatio||!this.image||"complete"!==(n=this.model.get("state"))&&"idle"!==n&&"error"!==n&&"buffering"!==n)return;const s=this.image;let o=null;if(s){if(0===s.width)return void(s.onload=()=>{this.resize(t,e,i)});const n=s.width/s.height;Math.abs(this.playerAspectRatio-n)<.09&&(o="cover")}(0,rt.oB)(this.el,{backgroundSize:o})}var n}element(){return this.el}};var xt=i(3296);const kt=function(t){let e=new vt(t),i=!t.get("autostart");const n=e.setImage.bind(e);return e=Object.assign(e,w.ZP),e.deferSetImage=(n,o,a)=>{t.once("change:playRejected change:autostart",(()=>{t.get("state")===s.bc&&(i=!0,e.setImage(n,o,a))}))},e.setPreviewImageForAdLoading=t=>n(t),e.setImage=(s,o,a)=>{if(t.get("isAudioFile")&&(i=!0),!i)return e.deferSetImage(s,o,a);if(n(s),o){new xt.Z("posterItem",e.el,a,t,(()=>{e.trigger("videoThumbnailFirstFrame",{feedData:a.feedData,target:a,ui:"poster",viewable:t.get("viewable")})})).init()}},e};var Ct=i(5187);const Mt=(t,e,i)=>t-e-i,_t=(t,e,i,n,s)=>Math.max(Math.min(t+e-i,n),s),Tt=(t,e)=>(0,rt.oB)(t,{willChange:e});class St{constructor(t){this.container=t}disable(){var t,e,i,n;this.container&&((0,ot.IV)(this.container,"jw-floating-dragged"),(0,ot.IV)(this.container,"jw-floating-dragging"),Tt(this.container,"auto")),this.uiMedia=null==this||null==(t=this.uiMedia)||null==t.destroy?void 0:t.destroy(),this.uiBar=null==this||null==(e=this.uiBar)||null==e.destroy?void 0:e.destroy(),this.uiTitle=null==this||null==(i=this.uiTitle)||null==i.destroy?void 0:i.destroy(),this.uiIcon=null==this||null==(n=this.uiIcon)||null==n.destroy?void 0:n.destroy()}enable(){this.inputMedia=this.container.querySelector(".jw-media"),this.inputBar=this.container.querySelector(".jw-float-bar"),this.inputTitle=this.container.querySelector(".jw-float-bar-title"),this.inputIcon=this.container.querySelector(".jw-float-bar-icon"),this.x=0,this.y=0,this.uiMedia=new gt.ZP(this.inputMedia,{preventScrolling:!0}).on("dragStart",this.dragStart,this).on("drag",this.drag,this).on("dragEnd",this.dragEnd,this),this.uiBar=new gt.ZP(this.inputBar,{preventScrolling:!0,directSelect:!0}).on("dragStart",this.dragStart,this).on("drag",this.drag,this).on("dragEnd",this.dragEnd,this),this.uiTitle=new gt.ZP(this.inputTitle,{preventScrolling:!0,directSelect:!0}).on("dragStart",this.dragStart,this).on("drag",this.drag,this).on("dragEnd",this.dragEnd,this),this.uiIcon=new gt.ZP(this.inputIcon,{preventScrolling:!0,directSelect:!0}).on("dragStart",this.dragStart,this).on("drag",this.drag,this).on("dragEnd",this.dragEnd,this)}dragStart(t){const{pageX:e,pageY:i}=t,{innerWidth:n,innerHeight:s}=window,o=this.container.querySelector(".jw-float-bar"),a=(null==o?void 0:o.offsetHeight)||0,{offsetLeft:r,offsetTop:l,offsetWidth:c,offsetHeight:d}=this.container;this.startX=e,this.startY=i,this.minDeltaX=-r,this.minDeltaY=-l,this.maxDeltaX=Mt(n,r,c),this.maxDeltaY=Mt(s,l,d+a),(0,ot.cn)(this.container,"jw-floating-dragged"),(0,ot.cn)(this.container,"jw-floating-dragging"),Tt(this.container,"transform")}drag(t){const{pageX:e,pageY:i}=t;this.deltaX=_t(this.x,e,this.startX,this.maxDeltaX,this.minDeltaX),this.deltaY=_t(this.y,i,this.startY,this.maxDeltaY,this.minDeltaY),(0,rt.vs)(this.container,`translate(${this.deltaX}px, ${this.deltaY}px)`)}dragEnd(){(0,ot.IV)(this.container,"jw-floating-dragging"),Tt(this.container,"auto"),this.x=this.deltaX,this.y=this.deltaY}}const Et=function(t,e,i,n){const s={width:e};if(n&&void 0!==i&&t.set("aspectratio",null),!t.get("aspectratio")){let t=i;(0,y.hj)(t)&&0!==t&&(t=Math.max(t,44)),s.height=t}return s};const At=[],Pt=t=>{const e=At.indexOf(t);-1!==e&&At.splice(e,1)};let It=null;const zt={floatingPlayer:It};Object.defineProperty(zt,"floatingPlayer",{get:()=>It,set:t=>{if(t===It)return;It=t;const e=At.slice();At.length=0,e.forEach((t=>{t.startFloating()}))}});class Lt{constructor(t,e,i,n=k.OS.mobile){this._playerEl=i.player,this._wrapperEl=i.wrapper,this._preview=i.preview,this._model=t,this._floatingUI=new St(this._wrapperEl),this._floatingStoppedForever=!1,this._lastIntRatio=0,this._playerBounds=e,this._isMobile=n,this._mobileCheckCanFire=!0,this._inTransition=!1,this._timers=[],this._boundThrottledMobileFloatScrollHandler=this.throttledMobileFloatScrollHandler.bind(this),this._boundInitFloatingBehavior=this.initFloatingBehavior.bind(this)}setup(){this._model.change("floating",this._boundInitFloatingBehavior)}initFloatingBehavior(){if(!this._floatingStoppedForever&&(K.Z.removeScrollHandler(this._boundThrottledMobileFloatScrollHandler),Pt(this),this.getFloatingConfig())){const t=this.getFloatMode();"notVisible"===t?this._isMobile?(K.Z.addScrollHandler(this._boundThrottledMobileFloatScrollHandler),this._boundThrottledMobileFloatScrollHandler()):this.checkFloatIntersection():"always"===t?this.startFloating():"never"===t&&this.stopFloating()}}updatePlayerBounds(t){this._playerBounds=t}getFloatingConfig(){return this._model.get("floating")}getFloatMode(){const t=this.getFloatingConfig();return(null==t?void 0:t.mode)||"notVisible"}resize(){this._model.get("isFloating")&&this.updateFloatingSize()}fosMobileBehavior(){return this._isMobile&&!(0,ot.UM)()&&!this._model.get("fullscreen")}shouldFloatOnViewable(){const t=this._model.get("state");return t!==s.bc&&t!==s.Vy&&t!==s.xQ}startFloating(t){const e=this._playerBounds;var i;if(!this._model.get("isFloating"))if(null!==this.getFloatingPlayer()||!this._wrapperEl.querySelector(".jw-float-bar")&&this._model.get("controlsEnabled"))this.getFloatingPlayer()!==this._playerEl&&"always"===this.getFloatMode()&&(i=this,-1===At.indexOf(i)&&At.push(i));else{this._clearTimers(),this.setFloatingPlayer(this._playerEl),this.transitionFloating(!0),this._model.set("isFloating",!0),(0,ot.cn)(this._playerEl,"jw-flag-floating"),this._floatDirection().down&&this._isMobile&&(0,ot.cn)(this._wrapperEl,"jw-float-to-top"),t?((0,rt.oB)(this._wrapperEl,{transform:`translateY(-${62-e.top}px)`}),this._timers.push(window.setTimeout((()=>{(0,rt.oB)(this._wrapperEl,{transform:"translateY(0)",transition:"transform 150ms cubic-bezier(0, 0.25, 0.25, 1)"})})))):(0,rt.oB)(this._wrapperEl,{transform:"translate(0)"}),this._timers.push(window.setTimeout((()=>{this.transitionFloating(!1)}),50));const i=this._preview.el;(0,rt.oB)(this._playerEl,{backgroundImage:i.style.backgroundImage}),this.updateFloatingSize(),this._model.get("instreamMode")||this._floatingUI.enable(),this._iosZoomedVideoFix()}}_clearTimers(){this._timers.length&&(this._timers.forEach((t=>{window.clearTimeout(t)})),this._timers.length=0)}stopFloating(t,e){if(t&&(this._floatingStoppedForever=!0,K.Z.removeScrollHandler(this._boundThrottledMobileFloatScrollHandler)),!this._model.get("isFloating"))return;if(this.getFloatingPlayer()!==this._playerEl)return;this._clearTimers(),this.transitionFloating(!0),this.setFloatingPlayer(null),this._model.set("isFloating",!1);const i=this._playerBounds,n=()=>{(0,ot.IV)(this._playerEl,"jw-flag-floating"),(0,ot.IV)(this._wrapperEl,"jw-float-to-top"),this._model.trigger("forceAspectRatioChange",{}),(0,rt.oB)(this._playerEl,{backgroundImage:null}),(0,rt.oB)(this._wrapperEl,{maxWidth:null,width:null,height:null,transform:null,transition:null,"transition-timing-function":null}),this._timers.push(window.setTimeout((()=>{this.transitionFloating(!1)}),50))};e?((0,rt.oB)(this._wrapperEl,{transform:`translateY(-${62-i.top}px)`,"transition-timing-function":"ease-out"}),this._timers.push(window.setTimeout(n,150))):n(),this.disableFloatingUI(),this._iosZoomedVideoFix()}transitionFloating(t){this._inTransition=t;const e=this._wrapperEl;(0,rt.oB)(e,{display:t?"none":null}),t||this._model.trigger("forceResponsiveListener",{})}isInTransition(){return this._inTransition}updateFloatingSize(){const t=this._playerBounds,e=this._model.get("width"),i=this._model.get("height"),n=Et(this._model,e);if(n.maxWidth=Math.min(400,t.width),!this._model.get("aspectratio")){const n=t.width;let s=t.height/n||.5625;(0,y.hj)(e)&&(0,y.hj)(i)&&(s=i/e),this._model.trigger("forceAspectRatioChange",{ratio:100*s+"%"})}(0,rt.oB)(this._wrapperEl,n)}enableFloatingUI(){this._floatingUI.enable()}disableFloatingUI(){this._floatingUI.disable()}setFloatingPlayer(t){zt.floatingPlayer=t}getFloatingPlayer(){return zt.floatingPlayer}destroy(){this.getFloatingPlayer()===this._playerEl&&this.setFloatingPlayer(null),this._clearTimers(),this._updateFloatingTimeout&&(window.clearTimeout(this._updateFloatingTimeout),this._updateFloatingTimeout=void 0),this.getFloatingConfig()&&this._isMobile&&K.Z.removeScrollHandler(this._boundThrottledMobileFloatScrollHandler),this._floatingUI.disable(),Pt(this),this._model.off("change:floating",this._boundInitFloatingBehavior)}_iosZoomedVideoFix(){k.OS.iOS&&this._timers.push(window.setTimeout((()=>{this._wrapperEl.style.zoom=1.01,this._timers.push(window.setTimeout((()=>{this._wrapperEl.style.zoom=1}),100))}),100))}updateFloating(t,e){t<.5&&!(0,at.cL)()&&this.shouldFloatOnViewable()?this.startFloating(e):this.stopFloating(!1,e)}_floatDirection(){const t=this._playerBounds,e=t.height/2,i=window.scrollY||window.pageYOffset,n=i<=t.top+e-window.innerHeight,s=i>=t.top+e;return{up:n,down:s,any:n||s}}checkFloatOnScroll(){if("notVisible"!==this.getFloatMode()||!function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)}(this._playerBounds,"top"))return;const t=this._playerBounds,e=t.top-62>0&&t.bottom+62{this._mobileCheckCanFire=!0}),50)))}checkFloatIntersection(t){const e="number"==typeof t,i=e?t:this._lastIntRatio;this._canFloat=this._canFloat||i>=.5,!this.getFloatingConfig()||"notVisible"!==this.getFloatMode()||this.fosMobileBehavior()||this._floatingStoppedForever||this._canFloat&&this.updateFloating(i),e&&(this._lastIntRatio=t)}updateStyles(){!this._floatingStoppedForever&&this.getFloatingConfig()&&"notVisible"===this.getFloatMode()&&this._boundThrottledMobileFloatScrollHandler()}}var Bt=i(9926);let Vt;i(5430);const Ft=k.OS.mobile,$t=k.Browser.ie,Ot=function(t,e){const i=Object.assign(this,w.ZP,{isSetup:!1,api:t,model:e}),n=e.get("localization"),o=(0,ot.az)((a=e.get("id"),r=n.player,`
`));var a,r;const l=o.querySelector(".jw-wrapper"),c=o.querySelector(".jw-media"),d=new kt(e,t),h=new Ct.Z(e),u=new jt.Z(e);let p,g,m,j;u.on("all",i.trigger,i);let f=-1,b=-1,v=-1;const x=e.get("floating");this.dismissible=null==x?void 0:x.dismissible;let C={};const M=new Lt(e,C,{player:o,wrapper:l,preview:d});let _,T,S,E=null,A=null,P=!1,I=null;const z=()=>e.get("isFloating")?l:o,L=()=>{i.isSetup&&!M.isInTransition()&&(i.updateBounds(),i.updateStyles(),i.checkResized())},B=()=>{(0,et.W)(b),b=(0,et.U)(L)};this.responsiveListener=B;const V=(t,i)=>{if((0,y.hj)(t)&&(0,y.hj)(i)){const e=(0,it.i)(t);(0,it.d)(o,e);const n=e<2;(0,ot.og)(o,"jw-flag-small-player",n),(0,ot.og)(o,"jw-orientation-portrait",i>t)}if(e.get("controls")){const t=function(t){const e=t.get("height");if(t.get("aspectratio"))return!1;if("string"==typeof e&&e.indexOf("%")>-1)return!1;let i=Number(e)||NaN;return i=isNaN(i)?t.get("containerHeight"):i,!!i&&Boolean(i&&i<=44)}(e);if(t)e.set("horizontalVolumeSlider",!0);else{var n;const t=(null==(n=e.get("setupConfig"))?void 0:n.horizontalVolumeSlider)||!1;e.set("horizontalVolumeSlider",t)}(0,ot.og)(o,"jw-flag-audio-player",t),e.set("audioMode",t)}},F=(t,i)=>{if((!t||isNaN(Number(t)))&&!(t=e.get("containerWidth")))return;if((!i||isNaN(Number(i)))&&!(i=e.get("containerHeight")))return;d&&d.resize(t,i,e.get("stretching"));const n=e.getVideo();n&&n.resize(t,i,e.get("stretching"))},$=()=>{e.get("pip")||e.set("visibility",G(e,o))},O=i=>{i.link?(t.pause({reason:"interaction"}),t.setFullscreen(!1),(0,ot.nG)(i.link,i.linktarget,{rel:"noreferrer"})):e.get("controls")&&t.playToggle({reason:"interaction"})},R=t=>{A&&A.mouseMove(t)},H=t=>{A&&!A.showing&&"IFRAME"===t.target.nodeName&&A.userActive()},Z=t=>{var e;null!=(e=A)&&e.showing&&(t.relatedTarget&&!o.contains(t.relatedTarget)||!t.relatedTarget&&k.Features.iframe)&&A.userActive()},N=(t,e,n)=>{const a=new mt(e,n),r=e.get("controls");return a.on({click:()=>{if(i.trigger(s.cy),z().focus(),A){if(k.OS.mobile){const i=e.get("state");if(r&&(i===s.bc||i===s.xQ||e.get("instream")&&i===s._5)&&t.playToggle({reason:"interaction"}),r&&i===s._5){if(e.get("instream")||e.get("castActive")||"audio"===e.get("mediaType"))return;(0,ot.og)(o,"jw-flag-controls-hidden"),u.renderCues(!0)}else A.showing?A.userInactive():A.userActive();return}(()=>{var t;const e=null==(t=A)?void 0:t.settingsMenu;return Boolean(null==e?void 0:e.visible)})()?A.settingsMenu.close():e.get("displayStats")?e.set("displayStats",!1):t.playToggle({reason:"interaction"})}},doubleClick:()=>A&&t.setFullscreen()}),Ft||(o.addEventListener("mousemove",R),o.addEventListener("mouseover",H),o.addEventListener("mouseout",Z)),a},q=t=>{const i=e.get("fullscreen"),n=void 0!==t.jwstate?t.jwstate:(()=>{if(T.supportsDomFullscreen()){const t=T.fullscreenElement();return Boolean(t&&t===o)}return e.getVideo().getFullScreen()})();i!==n&&e.set("fullscreen",n),k.OS.android&&n&&(()=>{const t=e.get("fullscreenOrientationLock");"none"===t?screen.orientation.lock("any"):"portrait"===t?screen.orientation.lock("portrait"):screen.orientation.lock("landscape")})(),B(),clearTimeout(f),f=setTimeout(F,200)},U=t=>{k.OS.mobile&&((0,ot.og)(o,"jw-flag-ios-fullscreen",t.jwstate),q(t))},D=(t,e)=>{if(!e)return void h.playlistItem(t,t.get("playlistItem"));const i=(0,Y.Z)(t,e);Y.Z.cloneIcon&&i.querySelector(".jw-icon").appendChild(Y.Z.cloneIcon("error")),h.hide(),o.appendChild(i.firstChild),(0,ot.og)(o,"jw-flag-audio-player",Boolean(t.get("audioMode")))},W=t=>{switch(e.get("controls")&&t!==s._5&&(0,ot.pv)(o,"jw-flag-controls-hidden")&&(0,ot.IV)(o,"jw-flag-controls-hidden"),(0,ot.L_)(o,/jw-state-\S+/,`jw-state-${t}`),t){case s.Vy:i.stopFloating();case s.bc:case s.xQ:u&&u.hide();break;default:u&&(u.show(),t===s._5&&A&&!A.showing&&u.renderCues(!0))}},Q=(t,e,n)=>{if(i.isSetup){if(n===s.Vy){const t=o.querySelector(".jw-error-msg");t&&t.parentNode.removeChild(t)}(0,et.W)(v),e===s.r0?W(e):v=(0,et.U)((()=>W(e)))}},J=(t,e)=>{(0,ot.L_)(o,/jw-stretch-\S+/,`jw-stretch-${e}`)},X=(t,e)=>{(0,ot.og)(o,"jw-flag-aspect-mode",Boolean(e));const n=o.querySelectorAll(".jw-aspect");(0,rt.oB)(n,{paddingTop:e||null}),i.isSetup&&e&&!t.get("isFloating")&&(0,rt.oB)(o,Et(t,t.get("width")))},lt=(t,e)=>{(0,ot.og)(t,"jw-flag-fullscreen",e),(0,rt.oB)(document.body,{overflowY:e?"hidden":""}),e&&A&&A.userActive(),F(),B()},ct=function(e,i){if(i&&A&&e.get("autostartMuted")&&A.unmuteAutoplay(t,e),T.supportsDomFullscreen())i?T.requestFullscreen():T.exitFullscreen(),lt(o,i);else if($t)lt(o,i);else{const t=e.get("instream"),n=t?t.provider:null,s=e.getVideo()||n;null!=s&&s.setFullscreen&&s.setFullscreen(i)}},dt=function(t,e){e?i.requestPip():document.pictureInPictureElement&&document.exitPictureInPicture()},ht=()=>{if(I){const{video:t,enter:e,leave:i}=I;t.removeEventListener("loadedmetadata",e),t.removeEventListener("leavepictureinpicture",i)}},ft=()=>{const t=new Vt(document,i.element());i.addControls(t)},bt=(t,e)=>{const n={controls:e};e?(Vt=st.v.controls,Vt?ft():(n.loadPromise=(0,st.z)().then((function(e){Vt=e;const i=t.get("controls");return i&&ft(),i})),n.loadPromise.catch((function(t){i.trigger(s.cM,t)})))):i.removeControls(),g&&m&&i.trigger(s.Hy,n)},vt=(t,e,n)=>{e&&!n&&(Q(0,t.get("state")),i.updateStyles())},xt=function(){(0,ot.cn)(o,"jw-flag-ads"),A&&A.setupInstream(),k.OS.iOS&&wt(t),M.disableFloatingUI()},Mt=function(){if(!_)return;A&&A.destroyInstream(e),k.OS.iOS&&function(t){pt(t,"")}(t),M.getFloatingPlayer()!==o||(0,at.cL)()||M.enableFloatingUI(),i.setAltText(""),(0,ot.IV)(o,["jw-flag-ads","jw-flag-ads-hide-controls"]),e.set("hideAdsControls",!1);const n=e.getVideo();n&&n.setContainer(c),_.revertAlternateClickHandlers()},_t=(t,e)=>{const i="LIVE"===e;(0,ot.og)(o,"jw-flag-live",i)},Tt=(t,e)=>{const i="audio"===e,n=t.get("isAudioFile"),s=t.get("playlistItem");n!==i&&(t.set("isAudioFile",i),d.setImage(null==s?void 0:s.image)),(0,ot.og)(o,"jw-flag-media-audio",i),i&&t.get("pip")&&t.set("pip",!1);const a=i?c:c.nextSibling;d.el.parentNode.insertBefore(d.el,a)},St=(t,e)=>{this.setPosterImage(e,d),Ft&&((t,e)=>{const i=t.get("mediaElement");if(!i)return;const n=(0,ot.bJ)(e.title||"");i.setAttribute("title",n.textContent)})(t,e)};this.updateBounds=function(){(0,et.W)(b);const t=z(),i=document.body.contains(t),n=(0,ot.A8)(t),s=Math.round(n.width),a=Math.round(n.height);if(C=(0,ot.A8)(o),M.updatePlayerBounds(C),s===g&&a===m)return g&&m||B(),void e.set("inDom",i);s&&a||g&&m||B(),(s||a||i)&&(e.set("containerWidth",s),e.set("containerHeight",a)),e.set("inDom",i),i&&K.Z.observe(o)},this.updateStyles=function(){const t=e.get("containerWidth"),i=e.get("containerHeight");V(t,i),A&&A.resize(t,i),F(t,i),u.resize(),M.updateStyles()},this.checkResized=function(){const t=e.get("containerWidth"),n=e.get("containerHeight"),o=e.get("isFloating");if(t!==g||n!==m){this.resizeListener||(this.resizeListener=new Bt.Z(l,this,e)),g=t,m=n,i.trigger(s.sF,{width:t,height:n});const o=(0,it.i)(t);E!==o&&(E=o,i.trigger(s.Bs,{breakpoint:E}))}o!==j&&(j=o,i.trigger(s.RF,{floating:o}),$())},this.setup=function(){d.setup(o.querySelector(".jw-preview")),h.setup(o.querySelector(".jw-title")),p=new yt(e),p.setup(),p.setContainer(l),p.on(s.Ib,O),u.setup(o.id,e.get("captions")),h.element().parentNode.insertBefore(u.element(),h.element()),_=N(t,e,c),S=new gt.ZP(o).on("click",(function(){})),T=ut(o,document,q),e.on("change:hideAdsControls",(function(t,e){(0,ot.og)(o,"jw-flag-ads-hide-controls",e)})),e.on("change:scrubbing",(function(t,e){(0,ot.og)(o,"jw-flag-dragging",e)})),e.on("change:playRejected",(function(t,e){(0,ot.og)(o,"jw-flag-play-rejected",e)})),e.on(s.h7,U),e.on(`change:${s.ug}`,(()=>{F(),u.resize()}));e.player.on("change:errorEvent",D),e.change("stretching",J);const i=e.get("width"),n=e.get("height"),a=Et(e,i,n);(0,rt.oB)(o,a),e.change("aspectratio",X),V(i,n),e.get("controls")||(0,ot.cn)(o,"jw-flag-controls-hidden"),$t&&(0,ot.cn)(o,"jw-ie");const r=e.get("skin")||{};r.name&&(0,ot.L_)(o,/jw-skin-\S+/,`jw-skin-${r.name}`);const w=(0,nt.xq)(r);(0,nt.Sf)(e.get("id"),w),e.set("mediaContainer",c),e.set("iFrame",k.Features.iframe),e.set("activeTab",(0,tt.Z)()),e.set("touchMode",Ft&&("string"==typeof n||n>=44)),K.Z.add(this),this.isSetup=!0,e.trigger("viewSetup",o);const g=document.body.contains(o);g&&K.Z.observe(o),e.set("inDom",g),e.on("forceAspectRatioChange",(t=>{const i=t.ratio||e.get("aspectratio");X(e,i)})),e.on("forceResponsiveListener",B),e.on("dismissFloating",this.dismissFloat,this),M.setup()},this.checkVisibility=t=>{t.viewable&&$()},this.init=function(){this.updateBounds(),e.on("change:fullscreen",ct),e.on("change:pip",dt),e.on("change:activeTab",$),e.on("change:fullscreen",$),e.on("change:intersectionRatio",$),e.on("change:visibility",vt),e.on("instreamMode",(t=>{t?xt():Mt()})),$(),1!==K.Z.size()||e.get("visibility")||vt(e,1,0);const t=e.player;e.change("state",Q),t.change("controls",bt),e.change("streamType",_t),e.change("mediaType",Tt),t.change("playlistItem",((t,e)=>{St(t,e)})),g=m=null,this.initFloatingBehavior(),this.checkResized()},this.keepThumbnail=function(){(0,ot.cn)(o,"jw-keep-thumbnail"),t.once("adPlay adBreakEnd",this.removeThumbnail)},this.removeThumbnail=function(){(0,ot.IV)(o,"jw-keep-thumbnail")},this.setupInstream=xt,this.setPreviewImageForAdLoading=d.setPreviewImageForAdLoading,this.initFloatingBehavior=function(){M.initFloatingBehavior()},this.addControls=function(n){A=n,(0,ot.IV)(o,"jw-flag-controls-hidden"),n.enable(t,e),m&&(V(g,m),n.resize(g,m),u.renderCues(!0)),n.on("userActive userInactive",(function(){const t=e.get("state");t!==s.r0&&t!==s.Kb||u.renderCues(!0)})),n.on("all",i.trigger,i),e.get("instream")&&(A.setupInstream(),k.OS.iOS&&wt(t))},this.dismissFloat=function(i){this.stopFloating(!0),this.trigger("dismissFloating",i),e.get("autoPause")&&!e.get("autoPause").pauseAds&&Boolean(e.get("instream"))||t.pause({reason:"interaction"})},this.removeControls=function(){A&&(A.disable(e),A=null),(0,ot.cn)(o,"jw-flag-controls-hidden")},this.resize=function(t,i){const n=Et(e,t,i,!0);void 0!==t&&void 0!==i&&(e.set("width",t),e.set("height",i)),(0,rt.oB)(o,n),M.resize(),L()},this.resizeMedia=F,this.setPosterImage=function(t,e){e.setImage(null==t?void 0:t.image)},this.requestPip=function(t){const n=t||e.get("mediaElement");if(n.requestPictureInPicture){const t=()=>{n.removeEventListener("leavepictureinpicture",t),(0,ot.IV)(o,"jw-flag-pip"),P&&(P=!1,i.trigger("pipLeave",{video:n}),e.set("pip",!1),document.pictureInPictureElement&&document.exitPictureInPicture())};ht();const s=()=>{ht(),(0,ot.cn)(o,"jw-flag-pip"),n.requestPictureInPicture().then((()=>{P||(P=!0,i.trigger("pipEnter",{video:n})),n.addEventListener("leavepictureinpicture",t)})),n.removeEventListener("loadedmetadata",s)};n.readyState?s():n.addEventListener("loadedmetadata",s),I={video:n,enter:s,leave:t}}},this.setAltText=function(t){e.set("altText",t)},this.clickHandler=function(){return _},this.getContainer=this.element=function(){return o},this.getWrapper=function(){return l},this.controlsContainer=function(){return A?A.element():null},this.getSafeRegion=function(t=!0){const e={x:0,y:0,width:g||0,height:m||0};return A&&t&&(e.height-=A.controlbarHeight()),e},this.setCaptions=function(t){u.clear(),u.setup(e.get("id"),t),u.resize()},this.setContainerViewability=function(t){e.get("containerViewable",t)!==t&&e.set("containerViewable",t)},this.setIntersection=function(t){const i=Math.round(100*t.intersectionRatio)/100;e.set("intersectionRatio",i),this.checkFloatIntersection(i),this.setContainerViewability(Math.round(i))},this.checkFloatIntersection=function(t){M.checkFloatIntersection(t)},this.stopFloating=function(t,e){M.stopFloating(t,e)},this.destroy=function(){e.destroy(),K.Z.unobserve(o),K.Z.remove(this),this.isSetup=!1,this.off(),(0,et.W)(b),clearTimeout(f),S&&(S.destroy(),S=null),T&&(T.destroy(),T=null),A&&A.disable(e),_&&(_.destroy(),o.removeEventListener("mousemove",R),o.removeEventListener("mouseout",Z),o.removeEventListener("mouseover",H),_=null),u.destroy(),p&&(p.destroy(),p=null),(0,rt.oI)(e.get("id")),this.resizeListener&&(this.resizeListener.destroy(),delete this.resizeListener),M.destroy()}};let Rt=!1;const Ht=window.$sf,Zt=function(t,e){this.playerElement=t,this.wrapperElement=e};Object.assign(Zt.prototype,{setup(t){const e=(0,ot.az)((t=>`${t}`)(t));this.wrapperElement.appendChild(e),(0,ot.cn)(this.playerElement,"jw-flag-top")}});const Nt=Zt;var qt=i(544),Ut=i.n(qt),Dt=i(8168),Wt=i(2977);let Qt;const Yt=function(t,e,n){const o="free"===e.get("edition");let a,r;o&&!Qt&&(i(678),Qt=!0,null!=n&&n.cssInjected&&n.cssInjected()),null!=n&&n.View?(a=n.View,r=a(t,e)):(a=Ot,r=new a(t,e));const l=r.setup;if(r.setPosterImage=(i,n)=>{const s=(0,Wt.Cz)(i.images);let o=null==i?void 0:i.image;const a=r.model.get("containerWidth");a&&(o=(0,Wt.Bf)(i,(0,Wt.IJ)(a))),s?(k.OS.mobile||s.reverse(),i.videoThumbnail=s[0].src,n.on("videoThumbnailFirstFrame",(e=>{t.trigger("videoThumbFirstFrame",e)})),n.setImage(o,!0,i,e)):n.setImage(o)},r.setup=function(){if(l.call(this),e.get("displayHeading")){new Nt(r.getContainer(),r.getContainer().querySelector(".jw-top")).setup(e.get("localization").advertising.displayHeading)}e.change("castAvailable",((t,e)=>{const i=t.get("cast");Object(i)===i&&(0,ot.og)(this.getContainer(),"jw-flag-cast-available",e)}),this),e.change("castActive",((t,e)=>{const i=t.get("airplayActive"),n=this.getContainer();(0,ot.og)(n,"jw-flag-casting",e||!1),(0,ot.og)(n,"jw-flag-airplay-casting",i||!1)}),this)},o){const t=r.addControls;r.addControls=function(e){t.call(this,e);const i=document.querySelector(".jw-logo-button");if(i){const t=(0,Dt.w)(Ut());i.appendChild(t)}}}const c=e.get("advertising");return null!=c&&c.outstream&&function(t,e){Rt||(Rt=!0,i(8206));const n=e.model,o=e.getSafeRegion;e.getSafeRegion=function(t){const e=o.call(this,t);return e.height=this.api.getHeight(),e},n.on("change:mediaState",((i,a)=>{if(a===s.ik||a===s.r0){var r,l;if(n.off("change:mediaState",null,e),null!=Ht&&null!=(r=Ht.ext)&&null!=r.supports&&null!=(l=r.supports())&&l["exp-push"]){const{exp:e,self:i}=Ht.ext.geom(),n=Math.min(t.getHeight()-i.h,e.yx?1/0:e.b),s=Math.min(t.getWidth()-i.w,e.xs?1/0:e.r);(n>0||s>0)&&Ht.ext.expand({b:Math.max(0,n),r:Math.max(0,s),push:!0})}(0,ot.IV)(e.getContainer(),"jw-flag-outstream-pending"),e.getSafeRegion=o,e.responsiveListener()}}),e);const a=e.setup;e.setup=function(){a.call(this),(0,ot.cn)(this.getContainer(),"jw-flag-outstream jw-flag-outstream-pending")};const r=n.get("advertising");r.dismissible&&(e.dismissible=!0,e.on("dismissFloating",(()=>{t.remove()}))),null!=Ht&&Ht.ext&&t.once(s.Rc,(function(){Ht.ext.register(t.getWidth(),t.getHeight())})),t.once(s.V$,(()=>{e.stopFloating(!0),"close"===r.endstate&&((0,ot.cn)(e.getContainer(),"jw-flag-outstream-close"),null!=Ht&&Ht.ext&&Ht.ext.collapse())}))}(t,r),r},Kt=/^change:(.+)$/,Jt=function(t,e,i){Object.keys(e).forEach((n=>{n in e&&e[n]!==i[n]&&t.trigger(`change:${n}`,t,e[n],i[n])}))},Xt=function(t,e){t&&t.off(null,null,e)};class Gt extends C.Z{constructor(t,e){super(),this._model=t,this._mediaModel=null,Object.assign(t.attributes,{altText:"",fullscreen:!1,logoWidth:0,scrubbing:!1}),t.on("all",((i,n,s,o)=>{n===t&&(n=this),e&&!e(i,n,s,o)||this.trigger(i,n,s,o)}),this),t.on("change:mediaModel",((t,e)=>{this.mediaModel=e}),this)}set mediaModel(t){const e=this._mediaModel;Xt(e,this),this._mediaModel=t,t.on("all",((e,i,n,s)=>{i===t&&(i=this),this.trigger(e,i,n,s)}),this),e&&Jt(this,t.attributes,e.attributes)}get(t){const e=this._mediaModel;return e&&t in e.attributes?e.get(t):this._model.get(t)}set(t,e){return this._model.set(t,e)}getCues(){return this._model.getCues()}getVideo(){return this._model.getVideo()}destroy(){Xt(this._model,this),Xt(this._mediaModel,this),this.off()}}class te extends Gt{constructor(t){super(t,(t=>{const e=this._instreamModel;if(e){const i=Kt.exec(t);if(i){if(i[1]in e.attributes)return!1}}return!0})),this._instreamModel=null,this._playerViewModel=new Gt(this._model),t.on("change:instream",((t,e)=>{const i=e?e.model:null;this._model.set("instreamMode",Boolean(i)),this.instreamModel=i}),this)}get player(){return this._playerViewModel}set instreamModel(t){const e=this._instreamModel;if(e||t)if(Xt(e,this),this._model.off("change:mediaModel",null,this),this._instreamModel=t,this.trigger("instreamMode",Boolean(t)),t)t.on("all",((e,i,n,s)=>{i===t&&(i=this),this.trigger(e,i,n,s)}),this),t.change("mediaModel",((t,e)=>{this.mediaModel=e}),this),Jt(this,t.attributes,this._model.attributes);else if(e){this._model.change("mediaModel",((t,e)=>{this.mediaModel=e}),this);const t=Object.assign({},this._model.attributes,e.attributes);Jt(this,this._model.attributes,t)}}get(t){const e=this._mediaModel;if(e&&t in e.attributes)return e.get(t);const i=this._instreamModel;return i&&t in i.attributes?i.get(t):this._model.get(t)}getVideo(){const t=this._instreamModel;return null!=t&&t.getVideo()?t.getVideo():super.getVideo()}destroy(){super.destroy(),Xt(this._instreamModel,this)}}var ee=i(5099);const ie=null!=(ne=window)&&null!=(se=ne.URL)&&se.createObjectURL?ne.URL:ne.webkitURL||ne.mozURL;var ne,se;let oe;const ae=window.Blob,re=(t,{muted:e})=>{if(!oe)try{oe=new ae([new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,109,112,52,49,0,0,0,8,102,114,101,101,0,0,2,239,109,100,97,116,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,0,0,2,194,109,111,111,118,0,0,0,108,109,118,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,232,0,0,0,47,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,1,236,116,114,97,107,0,0,0,92,116,107,104,100,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,101,100,116,115,0,0,0,28,101,108,115,116,0,0,0,0,0,0,0,1,0,0,0,47,0,0,0,0,0,1,0,0,0,0,1,100,109,100,105,97,0,0,0,32,109,100,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,68,0,0,8,0,85,196,0,0,0,0,0,45,104,100,108,114,0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0,0,0,1,15,109,105,110,102,0,0,0,16,115,109,104,100,0,0,0,0,0,0,0,0,0,0,0,36,100,105,110,102,0,0,0,28,100,114,101,102,0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1,0,0,0,211,115,116,98,108,0,0,0,103,115,116,115,100,0,0,0,0,0,0,0,1,0,0,0,87,109,112,52,97,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,2,0,16,0,0,0,0,172,68,0,0,0,0,0,51,101,115,100,115,0,0,0,0,3,128,128,128,34,0,2,0,4,128,128,128,20,64,21,0,0,0,0,1,244,0,0,1,243,249,5,128,128,128,2,18,16,6,128,128,128,1,2,0,0,0,24,115,116,116,115,0,0,0,0,0,0,0,1,0,0,0,2,0,0,4,0,0,0,0,28,115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49])],{type:"video/mp4"})}catch(t){return Promise.resolve()}return k.OS.tizen?Promise.resolve():(t.muted=e,t.src=ie.createObjectURL(oe),t.play()||(0,ee.Z)(t))},le="autoplayMuted",ce="autoplayDisabled",de={},he=(t,{cancelable:e,muted:i=!1,allowMuted:n=!1,timeout:s=1e4})=>{const o=t.getTestElement(),a=i?"muted":`${n}`;let r;de[a]||(de[a]=re(o,{muted:i}).catch((t=>{if(!e.cancelled()&&!1===i&&n)return re(o,{muted:i=!0});throw t})).then((()=>i?(de[a]=null,le):"autoplayEnabled")).catch((t=>{throw clearTimeout(r),de[a]=null,t.reason=ce,t})));const l=de[a].then((t=>{if(clearTimeout(r),e.cancelled()){const t=new Error("Autoplay test was cancelled");throw t.reason="cancelled",t}return t})),c=new Promise(((t,e)=>{r=setTimeout((()=>{de[a]=null;const t=new Error("Autoplay test timed out");t.reason="timeout",e(t)}),s)}));return Promise.race([l,c])};var ue=i(686),pe=i(7543),we=i(7411);const ge="tabVisible";class me extends we.Z{getFirstFrame(){const t=this.between(s.cq,s.FU),e=this.between(ge,s.FU);return e&&t&&e>0&&e{i&&e.trigger(s.ug,i)}),o),je(t,e)},t._onTime=function(t){let e=0;return function(i){const n=i.position;n>e&&t(i),e=n}}(t._triggerFirstFrame),t._onPlayAttempt=function(){this._qoeItem.tick(s.cq)},t._onTabVisible=function(t,e){e?t._qoeItem.tick(ge):t._qoeItem.tick("tabHidden")},t.on("change:activeTab",t._onTabVisible),e.on(s.cq,t._onPlayAttempt,t),e.once(s.Gj,t._triggerFirstFrame),e.on(s.R2,t._onTime)}(t,e),i.on("change:mediaState",(function(e,i,n){i!==n&&(t._qoeItem.end(n),t._qoeItem.start(i))}))}))};var be=i(5950),ye=i(2557),ve=i(5678);const xe=function(){},ke=function(){};Object.assign(xe.prototype,{destroy(){var t,e;this.off(),this.stop(),(0,a.c2)(this,this.originalContainer),this._view&&this._view.destroy(),this._model&&(t=this._model,e=this._programController,t._onTabVisible&&je(t,e),t._qoeItem=t._triggerFirstFrame=t._onTime=t._onPlayAttempt=t._onTabVisible=null,this._model.destroy()),this._apiQueue&&this._apiQueue.destroy(),this._captions&&this._captions.destroy(),this._programController&&this._programController.destroy(),this.instreamDestroy(!0),this._view=this._model=this._apiQueue=this._captions=this._programController=null,this.clearSetupVars&&this.clearSetupVars()},playerSetup(t,e,i,n,p,g){let m,f,v=this,x=v._model=new E;x.set("jwStart",(0,be._N)(window.location.search)),x.set("isReady",!1);let C,M,T,S=!1,A=!1,P=null,I=j(U),z=j(ke);v.originalContainer=v.currentContainer=i,v._events=n,v.trigger=function(t,e){const i=function(t,e,i){let n=i;switch(e){case"time":case"beforePlay":case"pause":case"play":case"ready":{const e=t.get("viewable");void 0!==e&&(n=Object.assign({},i,{viewable:e}));break}}return n}(x,t,e);return w.ZP.trigger.call(this,t,i)};let L=new c.Z(v,["trigger"],(()=>!0));const B=(t,e)=>{v.trigger(t,e)};x.setup(t);const V=x.get("backgroundLoading");{const t=new te(x);m=this._view=new Yt(e,t),m.on("all",((t,e)=>{null!=e&&e.doNotForward||B(t,e)}),v),t.on("viewSetup",(t=>{(0,a.c2)(this,t)}))}let $=this._programController=new F(x,g,e._publicApi);jt(),$.on("all",B,v).on("subtitlesTracks",(t=>{if(!f)return;f.setSubtitlesTracks(t.tracks);const e=f.getCurrentIndex();e>0&&wt(e,t.tracks)}),v).on(s.Ms,(()=>{Promise.resolve().then(pt)}),v).on(s.Ew,v.triggerError,v),fe(x,$),v.clearSetupVars=function(){L&&L.destroy(),v=$=x=m=I=z=T=L=null},x.on(s.pn,v.triggerError,v),x.on("change:state",((t,e,i)=>{tt()||O.call(this,t,e,i)}),this),x.on("change:castState",(function(t,e){v.trigger(s.pi,e)})),x.on("change:fullscreen",(function(t,e){v.trigger(s.UW,{fullscreen:e}),e&&t.set("playOnViewable",!1)})),x.on("change:volume",(function(t,e){v.trigger(s.yH,{volume:e})})),x.on("change:mute",(function(t){v.trigger(s.gy,{mute:t.getMute()})})),x.on("change:playbackRate",(function(t,e){v.trigger(s.QF,{playbackRate:e,position:t.get("position")})}));const R=function(t,e){"clickthrough"===e||"interaction"===e||"external"===e?(x.set("playOnViewable",!1),x.off("change:playReason change:pauseReason",R)):!e&&x.get("autostart")&&"playing"===tt()&&x.set("playReason","autostart")};function H(){x.change("visibility",Z),x.change("containerViewable",N),L.off(),x.set("isReady",!0),v.trigger(s.Rc,{setupTime:0}),x.change("playlist",(function(t,e){if(e.length){const t={playlist:e},i=x.get("feedData");i&&(t.feedData=Object.assign({},i)),v.trigger(s.Ow,t)}})),x.change("playlistItem",(function(t,e){if(e){const{title:i,image:n}=e;if("mediaSession"in navigator&&window.MediaMetadata&&(i||n))try{navigator.mediaSession.metadata=new window.MediaMetadata({title:i,artist:window.location.hostname,artwork:[{src:n||""}]})}catch(t){}e.chapters||t.setCues([]),v.trigger(s.gO,{index:x.get("item"),item:e})}})),L.flush(),L.destroy(),L=null,x.change("viewable",D),x.change("viewable",J),x.get("autoPause").viewability?x.change("viewable",G):x.once("change:autostartFailed change:mute",(function(t){t.off("change:viewable",J)})),U(),x.on("change:itemReady",((t,e)=>{e&&(T.flush(),x.get("pip")&&!v._instreamAdapter&&m.requestPip())}))}function Z(t,e){(0,y.o8)(e)||x.set("viewable",Math.round(e))}function N(t,e){(0,y.o8)(e)||(x.set("containerViewable",e),v.trigger("containerViewable",{viewable:e}))}function U(){T&&(x.get("generateSEOMetadata")&&x.get("jwStart")>=0?(v._model.setAutoStart("viewable"),v._model.set("playReason","jwstart"),x.get("viewable")?J(x,x.get("viewable")):G(x,x.get("viewable"))):!0!==x.get("autostart")||x.get("playOnViewable")||ot("autostart"),T.flush())}function D(t,e){v.trigger("viewable",{viewable:e}),W()}function W(){if((o.Z[0]===e||1===x.get("viewable"))&&"idle"===x.get("state")&&!1===x.get("autostart"))if(!g.primed()&&k.OS.android){const t=g.getTestElement(),e=v.getMute();Promise.resolve().then((()=>re(t,{muted:e}))).then((()=>{"idle"===x.get("state")&&$.preloadVideo()})).catch(ke)}else $.preloadVideo()}function Y(t){v._instreamAdapter.noResume=!t,t||rt({reason:"viewable"})}function K(t){t||(v.pause({reason:"viewable"}),x.set("playOnViewable",!t))}function J(t,e){const i=tt();if(t.get("playOnViewable")){if(e){const e="viewable",n=t.get("autoPause").pauseAds,o=t.get("pauseReason");et()===s.bc?ot(e):i&&!n||"interaction"===o||it({reason:e})}else k.OS.mobile&&!i&&t.get("autoPause").viewability&&(v.pause({reason:"autostart"}),x.set("playOnViewable",!0));k.OS.mobile&&i&&Y(e)}}function X(t,e){t.get("floating")&&"never"!==t.get("floating").mode&&t.get("intersectionRatio")<=.5&&t.get("activeTab")&&(e=1),K(e)}function G(t,e){const i=t.get("state"),n=tt(),o=t.get("playReason");n?t.get("autoPause").pauseAds?X(t,e):Y(e):i===s.r0||i===s.Kb?X(t,e):i===s.bc&&"playlist"===o&&t.once("change:state",(()=>{K(e)}))}function tt(){const t=v._instreamAdapter;return!!t&&t.getState()}function et(){const t=tt();return t||x.get("state")}function it(t){if(I.cancel(),A=!1,x.get("state")===s.Vy)return Promise.resolve();const i=st(t);x.set("playReason",i);const n=tt();return n?n===s.Kb&&v.get("buffer")>0?nt(t,i):(x.get("autostart")&&"paused"===n&&x.set("playReason","autostart"),v._instreamAdapter.off("state",dt,v),e.pauseAd(!1,t),Promise.resolve()):x.get("state")===s.xQ?(at(!0),v.setItemIndex(0).then((()=>nt(t,i)))):nt(t,i)}function nt(t,e){if(!S&&(S=!0,v.trigger(s.$j,{playReason:e,startTime:null!=t&&t.startTime?t.startTime:x.get("playlistItem").starttime}),S=!1,(0,pe.C)()&&!g.primed()&&g.prime(),"playlist"===e&&x.get("autoPause").viewability&&G(x,x.get("viewable")),M)){if((0,pe.C)()&&!V){const t=x.get("mediaElement");v._instreamAdapter&&(t.preload="none"),t.load()}return M=!1,C=null,Promise.resolve()}return $.playVideo(e).then(g.played)}function st(t){return null!=t&&t.reason?t.reason:null!=t&&t.startTime?"jwstart":"unknown"}function ot(t){if(et()!==s.bc)return;I=j(U);const e=x.get("advertising");he(g,{cancelable:I,muted:v.getMute(),allowMuted:!e||e.autoplayadsmuted}).then((e=>(x.set("canAutoplay",e),e!==le||v.getMute()||(x.set("autostartMuted",!0),jt(),x.once("change:autostartMuted",(function(t){x.get("autoPause").viewability||x.get("playOnViewable")||t.off("change:viewable",J),v.trigger(s.gy,{mute:x.getMute()})}))),f&&v.getMute()&&x.get("enableDefaultCaptions")&&f.selectDefaultIndex(1),it({reason:t}).catch((()=>{v._instreamAdapter||x.set("autostartFailed",!0),C=null}))))).catch((t=>{if(x.set("canAutoplay",ce),x.set("autostart",!1),!I.cancelled()){const e=(0,b.nm)(t);v.trigger(s.wh,{reason:t.reason,code:e,error:t})}}))}function at(t){I.cancel(),T.empty(),!x.get("autostart")&&x.get("playOnViewable")&&x.set("playOnViewable",!1);if(tt()){const t=v._instreamAdapter;return t&&(t.noResume=!0),void(C=()=>{C=null,$.stopVideo()})}C=null,!t&&(A=!0),S&&(M=!0),x.set("errorEvent",void 0),$.stopVideo()}function rt(t){const e=st(t);x.set("pauseReason",e),x.set("playOnViewable","viewable"===e)}function lt(t){C=null,I.cancel();const i=v.get("buffer"),n=tt();if(n&&n!==s._5)return rt(t),void(n===s.Kb?(m.once("dismissFloating",ct),i>0&&v._instreamAdapter.once("state",(i=>{i.oldstate!==s.Kb&&i.oldstate!==s.ik||i.newstate!==s.r0||e.pauseAd(!0,t)}))):e.pauseAd(!0,t));switch(x.get("state")){case s.Vy:return;case s.r0:rt(t),$.pause();break;case s.Kb:rt(t),$.pause(),0===i&&(M=!0);break;default:S&&(M=!0)}}function ct(){v._instreamAdapter.once("state",dt),v._instreamAdapter.noResume=!0}function dt(){const t=x.get("pauseReason");e.pauseAd(!0,{reason:t})}function ht(t,e){v.instreamDestroy(),at(!0),v.setItemIndex(t),v.play(e)}function ut(t){ht(x.get("item")+1,t)}function pt(){v.completeCancelled()||(C=v.completeHandler,v.shouldAutoAdvance()?v.nextItem():x.get("repeat")?ut({reason:"repeat"}):(k.OS.iOS&&mt(!1),x.set("playOnViewable",!1),x.set("state",s.xQ),v.trigger(s.V$,{})))}function wt(t,e){t=parseInt(t,10)||0,x.persistVideoSubtitleTrack(t,e),$.subtitles=t,v.trigger(s.Z_,{tracks:gt(),track:t})}function gt(){return f?f.getCaptionsList():[]}function mt(t){var e,i;x.get("pip")&&x.set("pip",!1),(0,y.jn)(t)||(t=!x.get("fullscreen")),!x.get("allowFullscreen")&&t||(x.set("fullscreen",t),null!=(e=v)&&null!=(i=e._instreamAdapter)&&i._adModel&&v._instreamAdapter._adModel.set("fullscreen",t))}function jt(){$.setMute(x.getMute()),$.setVolume(x.get("volume"))}x.on("change:playReason change:pauseReason",R),v.on(s.WE,(t=>R(null,t.playReason))),v.on(s.Ax,(t=>R(null,t.pauseReason))),x.on("change:scrubbing",(function(t,e){e?(P=x.get("state")!==s._5,lt({reason:"interaction"})):P&&it({reason:"interaction"})})),x.on("change:captionsList",(function(t,e){v.trigger(s.SL,{tracks:e,track:x.get("captionsIndex")||0})})),x.on("change:mediaModel",(function(t,e){var i;t.set("errorEvent",void 0),e.change("mediaState",(function(e,i){var n;t.get("errorEvent")||t.set(s.uc,(n=i)===s.ik||n===s.nQ?s.Kb:n)}),this),e.change("duration",(function(e,i){if(0===i)return;const n=t.get("minDvrWindow"),s=(0,ue.v)(i,n);t.setStreamType(s)}),this);const n="autoplay"===(null==t||null==t.get||null==(i=t.get("related"))?void 0:i.oncomplete);let o=t.get("item")+1,a=t.get("playlist")[o];if(a||n){const t=(i,s)=>{n&&!a&&(o=-1,a=x.get("nextUp"));if(!(a&&!a.daiSetting))return;const r=e.get("duration");s&&r>0&&s>=r-u.l_&&(e.off("change:position",t,this),V?$.backgroundLoad(a,o):$.getAsyncItem(o).run())};e.on("change:position",t,this)}})),f=this._captions=new Q(x),f.on("all",B,v),this.initView=function(t){null!=t&&t.adId&&m.setupInstream(),m.init(),this.removeShowUIOnContentEventListeners()},this.onAutostartFailed=function(){var t;const e=null==(t=x.get("playlistItem"))?void 0:t.image;m.setPreviewImageForAdLoading(e),this.initView()},this.addShowUIOnContentEventListeners=function(){x.once("change:autostartFailed",this.onAutostartFailed),v.once(s.wh,this.onAutostartFailed),v.once(s.WE,this.initView),v.once("play",this.initView),v.on("containerViewable",m.checkVisibility)},this.removeShowUIOnContentEventListeners=function(){x.off("change:autostartFailed",this.onAutostartFailed),v.off(s.wh,this.onAutostartFailed),v.off(s.WE,this.initView),v.off("play",this.initView),v.off("containerViewable",m.checkVisibility)},this.showUIOnContent=function(){this.addShowUIOnContentEventListeners(),H()},this.playerReady=function(){v.on("playlistItem",(t=>{var e;const i=null==(e=t.item)?void 0:e.image;m.setPreviewImageForAdLoading(i),m.keepThumbnail()})),x.get("autostart")&&"onContent"===x.get("showUIWhen")?this.showUIOnContent():(m.once(s.sF,(()=>{try{H()}catch(t){v.triggerError((0,b.Mm)(b.ud,b.YQ,t))}})),this.initView())},this.preload=W,this.load=function(t,e){const i=v._instreamAdapter;let n;switch(i&&(i.noResume=!0),v.trigger("destroyPlugin",{}),at(!0),$.clearItemPromises(),I.cancel(),I=j(U),z.cancel(),(0,pe.C)()&&g.prime(),typeof t){case"string":x.attributes.item=0,x.attributes.itemReady=!1,z=j((t=>{if(t)return v.updatePlaylist((0,h.ZP)(t.playlist),t)})),n=function(t){return new Promise(((e,i)=>{const n=new d.Z;n.on(s.Ow,(function(t){e(t)})),n.on(s.pn,i,this),n.load(t)}))}(t).then((t=>z.async(t)));break;case"object":x.attributes.item=0,n=v.updatePlaylist((0,h.ZP)(t),e||{});break;case"number":n=v.setItemIndex(t);break;default:return}n.catch((t=>{v.triggerError((0,b.l9)(t,b.DD))})),n.then((()=>I.async())).catch(ke)},this.play=t=>it(t).catch(ke),this.pause=lt,this.seek=function(t,e){const i=x.get("state");if(i===s.Vy)return;e&&i===s.r0&&x.get("playReason")!==e.reason&&x.set("playReason",e.reason),$.position=t;const n=i===s.bc;x.get("scrubbing")||!n&&i!==s.xQ||(n&&((e=e||{}).startTime=t),this.play(e))},this.stop=at,this.playlistItem=ht,this.playlistNext=ut,this.playlistPrev=function(t){ht(x.get("item")-1,t)},this.setCurrentCaptions=wt,this.setCurrentQuality=function(t){$.quality=t},this.setFullscreen=mt,this.setAllowFullscreen=function(t){x.set("allowFullscreen",t),!t&&x.get("fullscreen")&&v.setFullscreen(!1)},this.setPip=function(t){x.get("fullscreen")&&x.set("fullscreen",!1),(0,y.jn)(t)||(t=!x.get("pip")),x.set("pip",t)},this.getCurrentQuality=function(){return $.quality},this.getQualityLevels=function(){return $.qualities},this.setCurrentAudioTrack=function(t){$.audioTrack=t},this.getCurrentAudioTrack=function(){return $.audioTrack},this.getAudioTracks=function(){return $.audioTracks},this.getCurrentCaptions=function(){return f?f.getCurrentIndex():-1},this.getCaptionsList=gt,this.getVisualQuality=function(){const t=this._model.get("mediaModel");return t?t.get(s.ug):null},this.getConfig=function(){return this._model?this._model.getConfiguration():void 0},this.getState=et,this.next=ke,this.completeHandler=pt,this.completeCancelled=function(){return!function(){const t=x.get("state");return t===s.bc||t===s.xQ||t===s.Vy}()||!!A&&(A=!1,!0)},this.shouldAutoAdvance=function(){return x.get("item")!==x.get("playlist").length-1},this.getAbsolutePosition=()=>{var t;return(0,ve.e)(null==(t=x)?void 0:t._provider)},this.nextItem=()=>{ut({reason:"playlist"})},this.setConfig=t=>{((t,e)=>{const i=t._model,n=i.attributes;if(e.height&&(e.height=(0,r.a)(e.height),e.width=e.width||n.width),e.width&&(e.width=(0,r.a)(e.width),e.aspectratio?(n.width=e.width,delete e.width):e.height=n.height),e.width&&e.height&&!e.aspectratio&&t._view.resize(e.width,e.height),e.floating){const t=i.get("floating")||{},n=Object.assign({},t,e.floating);-1===l.indexOf(n.mode)?delete e.floating:e.floating=n}Object.keys(e).forEach((s=>{const o=e[s];if(void 0!==o)switch(s){case"aspectratio":i.set(s,(0,r.R)(o,n.width));break;case"autostart":!function(t,e,i){t.setAutoStart(i),"idle"===t.get("state")&&!0===i&&e.play({reason:"autostart"})}(i,t,o);break;case"mute":t.setMute(o);break;case"volume":t.setVolume(o);break;case"playbackRateControls":case"playbackRates":case"repeat":case"stretching":case"floating":i.set(s,o)}}))})(v,t)},this.setItemIndex=t=>{const e=x.get("playlist").length,i=(0,h.bx)(t,e);return $.setActiveItem(i).catch((t=>{if(t.code===b._M){if($.asyncItems.reduce(((t,e)=>t&&e.skipped),!0))throw t;const e=this.shouldAutoAdvance;return this.shouldAutoAdvance=()=>!1,pt(),x.attributes.itemReady=!0,void(this.shouldAutoAdvance=e)}t.code>=151&&t.code<=162&&(t=(0,b.l9)(t,b.EY)),this.triggerError((0,b.Mm)(b.ul,b.tJ,t))}))},this.getMediaElement=()=>{if($)return $.mediaElement},this.detachMedia=function(){return x.get("enableAdLoadingUI")||S||this.isBeforeComplete()?(S&&(M=!0),x.get("autoPause").viewability&&G(x,x.get("viewable")),V?void $.backgroundActiveMedia():$.setAttached(!1)):function(){x.get("autoPause").viewability&&G(x,x.get("viewable"));v._instreamAdapter.initAdPlayPromise().then((()=>{$.backgroundActiveMedia()})).catch((t=>{}))}()},this.attachMedia=function(){V?$.restoreBackgroundMedia():$.setAttached(!0),"function"==typeof C&&C()},this.routeEvents=t=>$.routeEvents(t),this.forwardEvents=()=>$.forwardEvents(),this.playVideo=t=>$.playVideo(t),this.stopVideo=()=>$.stopVideo(),this.castVideo=(t,e)=>$.castVideo(t,e),this.requestCast=t=>$.requestCast(t,this._castController||null),this.stopCast=()=>$.stopCast(),this.backgroundActiveMedia=()=>$.backgroundActiveMedia(),this.restoreBackgroundMedia=()=>$.restoreBackgroundMedia(),this.preloadNextItem=()=>{$.background.currentMedia&&$.preloadVideo()},this.isBeforeComplete=()=>$.beforeComplete,this.setVolume=t=>{x.setVolume(t),jt()},this.setMute=t=>{x.setMute(t),jt()},this.setPlaybackRate=t=>{x.setPlaybackRate(t)},this.getProvider=()=>x.get("provider"),this.getWidth=()=>x.get("containerWidth"),this.getHeight=()=>x.get("containerHeight"),this.getItemQoe=()=>x._qoeItem,this.setItemCallback=function(t){$.itemCallback=t},this.getItemPromise=function(t){const e=x.get("playlist");if(t<-1||t>e.length-1||isNaN(t))return null;const i=$.getAsyncItem(t);return i?i.promise:null},this.addButton=function(t,e,i,n,s){let o=x.get("customButtons")||[],a=!1;const r={img:t,tooltip:e,callback:i,id:n,btnClass:s};o=o.reduce(((t,e)=>(e.id===n?(a=!0,t.push(r)):t.push(e),t)),[]),a||o.unshift(r),x.set("customButtons",o)},this.removeButton=function(t){let e=x.get("customButtons")||[];e=e.filter((e=>e.id!==t)),x.set("customButtons",e)},this.resize=m.resize,this.getSafeRegion=m.getSafeRegion,this.setCaptions=m.setCaptions,this.checkBeforePlay=function(){return S},this.setControls=function(t){(0,y.jn)(t)||(t=!x.get("controls")),x.set("controls",t),$.controls=t},this.addCues=function(t){this.setCues(x.getCues().concat(t))},this.setCues=function(t){x.setCues(t)},this.getCues=function(){return x.getCues()},this.getChapters=function(){return x.get("playlistItem").chapters.timestamps},this.getCurrentChapter=function(){const t=x.get("state"),e=x.get("playlistItem").chapters.timestamps;if(!e||!e.length||t===s.xQ)return null;if(t===s.bc)return e[0];const i=this.get("currentTime");return(0,_.Mf)(i,e)},this.setChapter=function(t){try{if("object"!=typeof t||Number.isNaN(t.time)||!t.title)return!1;const e=x.get("playlistItem"),i=e.chapters.timestamps;if(!i)return;t instanceof ye.u||(t=new ye.u(t));let n=-1;for(let e=0;e!this._model.get("itemReady")||L)),T.queue.push(...p),m&&m.setup()},requestPip(t){this._view&&this._view.requestPip(t)},get(t){if(t in M.L4){const e=this._model.get("mediaModel");return e?e.get(t):M.L4[t]}return this._model.get(t)},getContainer(){return this.currentContainer||this.originalContainer},getMute(){return this._model.getMute()},triggerError(t){const e=this._model;t.message=e.get("localization").errors[t.key],delete t.key,e.set("errorEvent",t),e.set("state",s.Vy),e.once("change:state",(function(){this.set("errorEvent",void 0)}),e),this.trigger(s.pn,t)},updatePlaylist(t,e){const i=this._model;try{const n=(0,h.s7)(t,i,e);(0,h._)(n);const s=Object.assign({},e);delete s.playlist,i.set("feedData",s),i.set("playlist",n)}catch(t){return Promise.reject(t)}return 1===t.length&&1===t[0].sources.length&&"mp4"===t[0].sources[0].type&&i.get("repeat")&&!i.get("advertising")?(i.set("repeat",!1),i.set("loop",!0)):i.set("loop",!1),this.setItemIndex(i.get("item"))}});const Ce=xe,Me="afs_ads ad-placement",_e=(t,e)=>{let i,n=!1;t&&(i=(()=>{const t=document.createElement("div");return t.className=Me,t.innerHTML=" ",t.style.width="1px",t.style.height="1px",t.style.position="absolute",t.style.background="transparent",t})(),t.element().appendChild(i));return{onReady:()=>{if(n)return!0;t&&document.body.contains(t.element())&&(null!==i.offsetParent&&i.className===Me&&""!==i.innerHTML&&0!==i.clientHeight||(n=!0)),n&&e.trigger("adBlock")},getAdBlock:()=>n}};var Te=i(6593),Se=i(6245),Ee=i(2894),Ae=i(4101),Pe=i(7164);const Ie=(t,e,n,o)=>{if(((t,e,i)=>{const n=t.get("related"),s=e.getPlaylist(),o=Boolean(null==n?void 0:n.file)||Boolean(i.recommendations);return(s.length>1||o)&&(!1!==t.get("controls")||!n.disableRelated)})(t,e,o))return((t,e)=>i.e(365).then((n=>{if(t.attributes._destroyed||e.getPlugin("related"))return;const s=new Ae.Z;return s.name="related",s.js=i(3092).default,s}).bind(null,i)).catch((0,Ee.Ep)(301129)))(t,e).then((i=>{let s=e.getPlugin("related");if(s)return;const o=t.get("related");s=(0,Pe.MK)(i,o,e),s.on("nextUp",(e=>{let i=null;e===Object(e)&&(i=(0,P.Z)(e),i.sources=(0,h.T5)(i,t),i.feedType=e.feedType),t.set("nextUp",i)})),s.on("warning",(t=>{n.trigger("warning",t)})),s.setup(t)})).catch((e=>(e.message=e.message||t.get("localization").errors[e.key],delete e.key,n.trigger(s.cM,e),e)))};var ze=i(560);const Le="__jw-ld-json",Be=function(t){const e=t.getElementById(Le);if(null!=e&&e.innerText)try{let t=JSON.parse(e.innerText);return Array.isArray(t)||(t=[t]),t}catch(t){}return[]},Ve=function(t,e){if(!t.length||!e)return-1;const i=JSON.stringify(e);for(let e=0;e{var n;const s={"@context":"https://schema.org","@type":"VideoObject",name:t.title,description:t.description,thumbnailUrl:t.image,potentialAction:{"@type":"SeekToAction",target:(0,be.O9)(i.location.href),"startOffset-input":"required name=seek_to_second_number"}};if(t.pubdate&&(s.uploadDate=new Date(1e3*t.pubdate).toISOString()),null!=t&&null!=(n=t.sources)&&n.length){const e=(0,y.sE)(t.sources,(t=>"video/mp4"===t.type))||t.sources[0];e&&(s.contentUrl=e.file)}const o=e.getConfig();(0,ze.Z)()?t.mediaid&&o.pid&&(s.embedUrl=`https://cdn.jwplayer.com/players/${t.mediaid}-${o.pid}.html`):s.embedUrl=i.location.href;const a=e.get("duration");return a&&(s.duration=`PT${Math.floor(a/60)}M${Math.round(a)%60}S`),s})(this.item_,this.controller_);const t=Be(this.document_).concat([this.metadata_]);let e=this.document_.getElementById(Le);if(e||(e=this.document_.createElement("script"),e.setAttribute("type","application/ld+json"),e.setAttribute("id",Le),this.document_.head.appendChild(e)),e.innerText=JSON.stringify(t.length>1?t:t[0]),(0,ze.Z)())try{this.window_.parent.postMessage({type:"metadata",generateSEOMetadata:!0,metadata:this.metadata_},"*")}catch(t){}}removeMetadata(){const t=this.document_.getElementById(Le),e=this.metadata_;if(this.metadata_=null,!e||!t)return;const i=Be(this.document_),n=Ve(i,e);n>=0&&(i.splice(n,1),i.length?t.innerText=JSON.stringify(i.length>1?i:i[0]):t.parentElement&&t.parentElement.removeChild(t))}updateDurationAsync(t){!this.metadata_.duration&&t&&(this.metadataToUpdate_.duration=`PT${Math.floor(t/60)}M${Math.round(t)%60}S`)}updateChapterCuesAsync(t){var e;if(this.metadata_.hasPart)return;let i;null!=(e=t=t.filter((t=>"ads"!==t.cueType)))&&e.length&&(i=t.map((t=>({"@type":"Clip",name:t.text||"",startOffset:t.begin,endOffset:t.end,url:(0,be.O9)(window.location.href,Math.floor(t.begin))}))),this.metadataToUpdate_.hasPart=i)}updateScriptTag(){if(!Object.keys(this.metadataToUpdate_).length)return;const t=Be(this.document_),e=Ve(t,this.metadata_),i=this.document_.getElementById(Le);if(e>=0&&t.length){if(this.metadata_=Object.assign(this.metadata_,this.metadataToUpdate_),t[e]=this.metadata_,i.innerText=JSON.stringify(t),(0,ze.Z)())try{this.window_.parent.postMessage({type:"metadata",generateSEOMetadata:!0,metadata:this.metadata_},"*")}catch(t){}this.metadataToUpdate_={}}}destroy(){this.destroyed_||(this.destroyed_=!0,this.removeMetadata(),this.window_=null,this.document_=null,this.item_=null,this.controller_=null)}}Ce.prototype.osPlayerSetup=Ce.prototype.playerSetup,Ce.prototype.playerSetup=function(t,e,o,a,r,l){var c;this.osPlayerSetup(t,e,o,a,r,l);const d=this.shouldAutoAdvance,{_model:h,_view:u,modelShim:p}=this,w=_e(u,this),g=h.get("advertising");if(null!=p&&null!=(c=p.attributes)&&c.ampController){const t=p.attributes.ampController,e=this.playerReady;this.ampController=t,delete p.attributes.ampController,this.playerReady=function(...i){e.apply(this,i),t.ready(h)}}let m;t.analytics&&(t.sdkplatform=t.sdkplatform||t.analytics.sdkplatform);{h.once("change:visibility",(()=>{w.onReady.call(this)}));const t=(t,e,i,n)=>{if(!t)return;const s=h.get("nextUp");s&&this.trigger(e,{mode:s.mode,ui:"nextup",feedShownId:i,target:s,itemsShown:[s],feedData:s.feedData}),"function"==typeof n&&n()};this.next=function(i){i=i||{};const n=e.getPlugin("related");t.call(this,n,"nextClick",i.feedShownId,(()=>n.next(i)))};const i=this.nextItem;this.nextItem=function(){const n=e.getPlugin("related");t.call(this,n,"nextAutoAdvance"),i.call(this)}}this.updatePlaylist=function(t,i){const s=[];return h.get("mobileSdk")||!(t=>window.WebGLRenderingContext&&t.some((t=>t.stereomode&&t.stereomode.length>0)))(t)||e.getPlugin("vr")||console.warn("Playlist contains 360° or VR media. JW Player 360°/VR support is now deprecated"),(0,n.w0)(t)&&s.push((0,n.lD)(h.get("edition"))),(0,Se.g)(t,"images","image"),s.length?(h.attributes.itemReady=!1,Promise.all(s).then((()=>Ce.prototype.updatePlaylist.call(this,t,i)))):Ce.prototype.updatePlaylist.call(this,t,i)},this.shouldAutoAdvance=function(){const t=h.get("related"),e=h.get("nextUp");return e&&"playlist"===e.mode?Boolean(t.shouldAutoAdvance):d.call(this)};const j=(t,i)=>{w.onReady(),Ie(h,e,this,i)},f=()=>(m||(m=i.e(926).then((t=>new(0,i(8460).default)(u,h,e)).bind(null,i)).catch((t=>{throw t})).catch((t=>{console.error("jwplayer.stats:",t)}))),m),b=t=>{this.trigger(s.cM,t)},v=()=>{if(window.chrome&&k.Browser.chrome)return((t,e,n)=>{i.e(977).then((n=>{const s=new(0,i(5016).default)(t,e);return t.castToggle=s.castToggle.bind(t._castController),t._castController=s,t.stopCasting=s.stopCasting,s.init()}).bind(null,i)).catch((0,Ee.Jt)(301161)).catch(n)})(this,h,b)},x=()=>{const t=h.getVideo();null!=t&&t.video&&(t.video.webkitWirelessVideoPlaybackDisabled=!0)},C=()=>{if(window.WebKitPlaybackTargetAvailabilityEvent&&!h.get("playlist").some((t=>!(0,Te.H)(t.sources[0]))))return((t,e,n)=>i.e(520).then((n=>{const s=i(6342).default;t._airplayController=new s(t,e),t.castToggle=t._airplayController.airplayToggle.bind(t._airplayController)}).bind(null,i)).catch((0,Ee.Jt)(301162)).catch(n))(this,h,b);x()};e.getAdBlock=w.getAdBlock,this.once(s.gO,(t=>{h.on("change:playlistItem",j,this);if(!(null==g?void 0:g.outstream)&&h.get("cast")){const t=h.get("cast")||{};(t.customAppId||t.appid||!(0,n.w0)(h.get("playlist")))&&v.apply(this),C.apply(this)}else x();Ie(h,e,this,t.item),h.get("generateSEOMetadata")&&(this._seoMetadataManager=new Fe(t.item,this),this._seoMetadataManager.addMetadata(),this.updateMetadataAsync=setTimeout((()=>{if(!this._seoMetadataManager)return;const t=h.getCues();null!=t&&t.length&&this._seoMetadataManager.updateChapterCuesAsync(t),this._seoMetadataManager.updateDurationAsync(this.get("duration")),this._seoMetadataManager.updateScriptTag()}),4e3)),this.getContainer().addEventListener("keydown",(t=>{"n"===t.key&&(h.set("displayStats",!h.get("displayStats")),f())}),this),h.on("change:displayStats",((t,e)=>{e?f().then((t=>t.show())):!1===e&&f().then((t=>t.hide()))}),this)}),this),null!=g&&g.outstream&&function(t,e){const{_model:i,_view:n}=t;let o=!1,a=e.height,r=e.width;const l=t.getHeight;t.getHeight=function(){const t=i.get("aspectratio");return t?Math.round(i.get("containerWidth")*parseFloat(t)/100):a};const c=t.getWidth;let d;t.getWidth=function(){return(0,y.hj)(r)?r:c.call(this)},t.getSafeRegion=function(t){return n.getSafeRegion(t)},t.resize=function(t,e){return n.resize(t,e)},d=n.resize,n.resize=function(t,e){return a=e,r=t,d.call(n,t,e)},i.setAutoStart("viewable"),t.setMute(!0),t.setItemIndex=function(){return i.setActiveItem(0),Promise.resolve()},t.updatePlaylist=function(){return i.set("playlist",[{sources:[{}]}]),i.attributes.itemReady=!0,this.setItemIndex(0)};const h=t.attachMedia;t.attachMedia=t.playerDestroy;const u=()=>(o||i.set("repeat",!1),i.get("backgroundLoading")||t._programController.mediaPool.clean(),i.set("state",s.xQ),t._programController.trigger(s.Ms,{}),h.call(t));t._programController.playVideo=function(){return Promise.resolve()};const p=t.createInstream;t.createInstream=function(){const e=p.call(this);return e.noResume=!0,o=!1,e.on("state",(({newstate:e})=>{e!==s.ik&&e!==s.r0||(t.attachMedia=u,t.getHeight=l,t.getWidth=c,n&&(n.resize=d),o=!0)})),e}}(this,t)},Ce.prototype.osDestroy=Ce.prototype.destroy,Ce.prototype.destroy=function(){this._seoMetadataManager&&(this._seoMetadataManager.destroy(),this._seoMetadataManager=null,this.updateMetadataAsync&&clearTimeout(this.updateMetadataAsync)),this.osDestroy()};const $e=Ce},3414:(t,e,i)=>{"use strict";i.d(e,{B:()=>n,K:()=>s});const n=[40,120,320,480,640,720,1280,1920],s=4500},2977:(t,e,i)=>{"use strict";i.d(e,{Bf:()=>a,Cz:()=>s,IJ:()=>o});var n=i(3414);const s=t=>{if(null!=t&&t.length){const e=t.filter((t=>{var e;return null==t||null==(e=t.type)||null==e.match?void 0:e.match(/video/)}));if(null!=e&&e.length)return e}return!1},o=t=>{let e=0,i=n.B[e];for(;it||e?t&&new RegExp(`jwplayer.com/v2/media/${t}`).test(e)?`https://cdn.jwplayer.com/v2/media/${t}/poster.jpg?width=${i}`:e:""},6245:(t,e,i)=>{"use strict";i.d(e,{g:()=>o});var n=i(6234);let s;const o=(t,e,i)=>{const o=(()=>{try{s=window.localStorage.jwplayerLocalId}catch(t){}return s=s||(0,n.B)(12)})();t.forEach((t=>{const{variations:n}=t;if(null!=n&&n[e]){n.selected=n.selected||{};const s=((t,e)=>{const i=(t=>{let e=1794770992;for(let i=0,n=t.length;i>>0})(t)%2520,n=e.reduce(((t,e)=>t+e.weight),0);let s=0;for(let t=0;ti)return o}})(o,n[e]),a=s[i];a&&(t[i]=a,n.selected[e]=s)}}))}},3296:(t,e,i)=>{"use strict";i.d(e,{Z:()=>l});var n=i(2799),s=i(8348),o=i(1776),a=i(7683),r=i(5099);class l{constructor(t,e,i,n,s){this.hoverElement=e,this.item=i,this.model=n,this.onView=s,this.type=t,this.container=null,this.played=!1,this.seeking=!1,this.completed=!1,this.src=i.videoThumbnail,this.video=(0,a.V)({class:"jw-reset jw-video-thumbnail"}),this.video.muted=!0,this.onPlay=this.onPlay.bind(this),this.onPause=this.onPause.bind(this),this.onEnded=this.onEnded.bind(this),this.onError=this.onError.bind(this)}adapt(){var t;const{video:e}=this;switch(this.type){case"overlayItem":this.container=this.hoverElement.querySelector(".jw-related-item-poster"),null!=this&&null!=(t=this.container)&&t.parentElement&&!this.hoverElement.className.match(/jw-related-item-next-up/)&&(this.hoverElement=this.container.parentElement);break;case"widgetItem":this.container=this.hoverElement.querySelector(".jw-related-shelf-item-image");break;case"shelfItem":default:break;case"posterItem":e.setAttribute("loop","")}this.container||(this.container=(0,n.az)('
'))}onPlay(){const{video:t}=this;return this.src?((0,n.cn)(this.video,"jw-video-thumbnail-visible"),t&&!t.src&&(t.src=this.src,t.load()),this.completed&&(t.currentTime=0,(0,n.IV)(t,"jw-video-thumbnail-completed"),this.completed=!1),s.OS.iOS?Promise.resolve(this.seekPlay()):this.asyncPlay()):this.destroy()}onPause(){(0,n.IV)(this.video,"jw-video-thumbnail-visible"),this.seeking=!1,this.video.pause()}onEnded(){"posterItem"!==this.type&&(0,n.cn)(this.video,"jw-video-thumbnail-completed"),this.completed=!0,this.seeking=!1}onFirstFrame(){this.played=!0,"function"==typeof this.onView&&this.onView(this.item)}onError(){this.destroy()}onViewPoster(t,e){if(e)return this.onPlay();this.onPause()}asyncPlay(){const t=this.video;return(t.play()||(0,r.Z)(t)).then((()=>{this.played||this.onFirstFrame()})).catch((t=>{if(20!==t.code)return 9!==t.code&&"Failed to load because no supported source was found."!==t.message?this.seekPlay():void this.destroy()}))}seekPlay(){const t=this.video,e=t.hasAttribute("loop");let i=0;const n=this.seek=s=>{if(!this.seeking)return;if(!t.duration)return(0,o.U)(n);i||(i=s);let a=(s-i)/1e3;e?a%=t.duration:a=Math.min(a,t.duration),t.currentTime=a,t.duration>a||e?(0,o.U)(n):this.onEnded()},s=this.handleSeek=()=>{this.onFirstFrame(),this.video.removeEventListener("seeked",s)};this.played||this.video.addEventListener("seeked",s),this.seeking=!0,(0,o.U)(n)}addEventListeners(){"posterItem"===this.type?(this.model.once("change:state",this.destroy,this),this.model.on("change:viewable",this.onViewPoster,this)):(s.OS.mobile||(this.hoverElement.addEventListener("mouseenter",this.onPlay),this.hoverElement.addEventListener("mouseleave",this.onPause)),this.video.addEventListener("ended",this.onEnded)),this.video.addEventListener("error",this.onError)}removeEventListeners(){"posterItem"===this.type?(this.model.off("change: state",this.destroy,this),this.model.off("change:viewable",this.onViewPoster,this)):(s.OS.mobile||(this.hoverElement.removeEventListener("mouseenter",this.onPlay),this.hoverElement.removeEventListener("mouseleave",this.onPause)),this.video.removeEventListener("ended",this.onEnded)),this.video.removeEventListener("error",this.onError),this.handleSeek&&this.video.removeEventListener("seeked",this.handleSeek)}init(){this.adapt(this.hoverElement.className),(0,n.cn)(this.container,"jw-video-thumbnail-container"),"widgetItem"===this.type?(0,n.SH)(this.container,this.video):this.container.appendChild(this.video),this.container.parentElement&&"posterItem"!==this.type?"shelfItem"===this.type&&(0,n.SH)(this.hoverElement,this.container):this.hoverElement.appendChild(this.container),this.addEventListeners(),"posterItem"===this.type&&this.model.get("viewable")&&this.onViewPoster(null,!0)}isDestroyed(){return!this.video}destroy(){this.isDestroyed()||(this.removeEventListeners(),this.seeking=!1,this.seek&&(0,o.W)(this.seek),this.onPause(),this.video.removeAttribute("src"),this.video.load(),this.container.removeChild(this.video),this.video=null,this.container.className.match(/jw-video-thumbnail-generated/)?this.container.parentNode.removeChild(this.container):(0,n.IV)(this.container,"jw-video-thumbnail-container"),this.container=null)}}},5827:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>Lt});var n={};i.r(n),i.d(n,{email:()=>jt,embed:()=>bt,facebook:()=>ht,link:()=>ft,linkedin:()=>pt,pinterest:()=>wt,reddit:()=>gt,tumblr:()=>mt,twitter:()=>ut});var s=i(8348),o=i(1643),a=i(328),r=i(1261),l=i(2799),c=i(5004),d=i(8165),h=i(8268),u=i(4697);var p=i(974),w=i(5882),g=i(7191),m=i(2957),j=i(6234),f=i(9888),b=i(5646);class y{constructor(t,e,i){Object.assign(this,a.ZP),this._model=t,this._api=e,this._playerElement=i,this.localization=t.get("localization"),this.state="tooltip",this.enabled=!1,this.shown=!1,this.feedShownId="",this.closeUi=null,this.tooltipUi=null,this.reset()}setup(t){this.container=t.createElement("div"),this.container.className="jw-nextup-container jw-reset";const e=(0,l.az)(((t="",e="",i="",n="")=>`
${t}
${e}
${i}
`)());e.querySelector(".jw-nextup-close").appendChild((0,g.W)("close")),this.addContent(e),this.closeButton=this.content.querySelector(".jw-nextup-close"),this.closeButton.setAttribute("aria-label",this.localization.close),this.tooltip=this.content.querySelector(".jw-nextup-tooltip");const i=this._model,n=i.player;this.enabled=!1,i.on("change:nextUp",this.onNextUp,this),n.change("duration",this.onDuration,this),n.change("position",this.onElapsed,this),n.change("streamType",this.onStreamType,this),n.change("state",(function(t,e){"complete"===e&&this.toggle(!1)}),this),this.closeUi=(0,b.Z)(this.closeButton,(function(){this.nextUpSticky=!1,this.toggle(!1)}),this),this.tooltipUi=new w.ZP(this.tooltip).on("click",this.click,this)}loadThumbnail(t){return this.nextUpImage=new Image,this.nextUpImage.onload=function(){this.nextUpImage.onload=null}.bind(this),this.nextUpImage.src=t,{backgroundImage:`url("${t}")`}}click(){const{feedShownId:t}=this;this.reset(),this._api.next({feedShownId:t,reason:"interaction"})}toggle(t,e){if(this.enabled&&((0,l.og)(this.container,"jw-nextup-sticky",Boolean(this.nextUpSticky)),this.shown!==t)){this.shown=t,(0,l.og)(this.container,"jw-nextup-container-visible",t),(0,l.og)(this._playerElement,"jw-flag-nextup",t);const i=this._model.get("nextUp");t&&i?(this.feedShownId=(0,j.B)(j.F),this.trigger("nextShown",{mode:i.mode,ui:"nextup",itemsShown:[i],feedData:i.feedData,reason:e,feedShownId:this.feedShownId})):this.feedShownId=""}}setNextUpItem(t){setTimeout((()=>{const{mediaid:e,image:i,title:n,duration:s}=t;if(this.thumbnail=this.content.querySelector(".jw-nextup-thumbnail"),(0,l.og)(this.content,"jw-nextup-thumbnail-visible",Boolean(i)),i||e){let t;t=e?`https://cdn.jwplayer.com/v2/media/${e}/poster.jpg?width=120`:i;const n=this.loadThumbnail(t);(0,p.oB)(this.thumbnail,n)}this.header=this.content.querySelector(".jw-nextup-header"),this.header.textContent=(0,l.az)(this.localization.nextUp).textContent,this.title=this.content.querySelector(".jw-nextup-title"),this.title.textContent=n?(0,l.az)(n).textContent:"",s&&(this.duration=this.content.querySelector(".jw-nextup-duration"),this.duration.textContent="number"==typeof s?(0,f.timeFormat)(s):s)}),500)}onNextUp(t,e){this.reset(),e||(e={showNextUp:!1}),this.enabled=Boolean(e.title||e.image),this.enabled&&(e.showNextUp||(this.nextUpSticky=!1,this.toggle(!1)),this.setNextUpItem(e))}onDuration(t,e){if(!e)return;const i=t.get("nextupoffset");let n=-10;i&&(n=(0,m.U5)(i,e)),n<0&&(n+=e),(0,m.zz)(i)&&e-5=this.offset;n&&void 0===i?(this.nextUpSticky=n,this.toggle(n,"time")):!n&&i&&this.reset()}onStreamType(t,e){"VOD"!==e&&(this.nextUpSticky=!1,this.toggle(!1))}element(){return this.container}addContent(t){this.content&&this.removeContent(),this.content=t,this.container.appendChild(t)}removeContent(){this.content&&(this.container.removeChild(this.content),this.content=null)}reset(){this.nextUpSticky=void 0,this.toggle(!1)}destroy(){this.off(),this._model.off(null,null,this),this.closeUi&&this.closeUi.destroy(),this.tooltipUi&&this.tooltipUi.destroy()}}const v={link:({link:t,title:e,logo:i})=>`${i}${e||""}`,share:(t,e)=>``,pip:(t,e)=>``,keyboardShortcuts:(t,e)=>``,button:({title:t,button:e})=>``},x=(t,e)=>{const{items:i=[]}=t,n=i.map((t=>((t,e)=>{const{featured:i,showLogo:n,type:s}=t;return t.logo=n?'':"",`
  • ${v[s](t,e)}
  • `})(t,e)));return`
      ${n.join("")}
    `};var k=i(6601),C=i(2268),M=i(8518);const _={free:0,pro:1,premium:2,ads:3,invalid:4,enterprise:6,trial:7,platinum:8,starter:9,business:10,developer:11},T=t=>{const e=(0,l.az)(t),i=e.querySelector(".jw-rightclick-logo");return i&&i.appendChild((0,g.W)("jwplayer-logo")),e};class S{constructor(t){this.shortcutsTooltip=t}buildArray(){const t=k.i.split("+")[0],e=this.model,i=e.get("edition"),n=e.get("localization").poweredBy,o=`JW Player ${t}`,a={items:[{title:(0,M.t6)(n)?`${o} ${n}`:`${n} ${o}`,type:"link",featured:!0,showLogo:!0,link:`https://jwplayer.com/learn-more?e=${_[i]}`}]},r=a.items;return this.shortcutsTooltip&&r.splice(r.length-1,0,{type:"keyboardShortcuts"}),this.pipMenu=!s.OS.mobile&&"disabled"!==e.get("pipIcon")&&(s.Browser.chrome&&!(0,C.yS)()||s.Browser.edge||s.Browser.safari),this.pipMenu&&r.splice(r.length-1,0,{type:"pip"}),a}rightClick(t){if(this.lazySetup(),this.mouseOverContext)return!1;this.hideMenu(),this.showMenu(t),this.addHideMenuHandlers()}getOffset(t){const e=(0,l.A8)(this.wrapperElement),i=t.pageX-e.left;let n=t.pageY-e.top;return this.model.get("touchMode")&&(n-=100),{x:i,y:n}}showMenu(t){const e=this.getOffset(t);return this.el.style.left=`${e.x}px`,this.el.style.top=`${e.y}px`,this.outCount=0,(0,l.cn)(this.playerContainer,"jw-flag-rightclick-open"),(0,l.cn)(this.el,"jw-open"),clearTimeout(this._menuTimeout),this._menuTimeout=setTimeout((()=>this.hideMenu()),3e3),!1}hideMenu(t){t&&this.el&&this.el.contains(t.target)||((0,l.IV)(this.playerContainer,"jw-flag-rightclick-open"),(0,l.IV)(this.el,"jw-open"))}lazySetup(){const t=x(this.buildArray(),this.model.get("localization"));if(this.el){if(this.html!==t){this.html=t;const e=T(t);(0,l.EU)(this.el);for(let t=e.childNodes.length;t--;)this.el.appendChild(e.firstChild)}}else this.html=t,this.el=T(this.html),this.wrapperElement.appendChild(this.el),this.hideMenuHandler=t=>{(0,w.dO)(t)||this.hideMenu(t)},this.overHandler=()=>{this.mouseOverContext=!0},this.outHandler=t=>{this.mouseOverContext=!1,t.relatedTarget&&!this.el.contains(t.relatedTarget)&&++this.outCount>1&&this.hideMenu()},this.pipHandler=()=>{this.model.set("pip",!this.model.get("pip"))},this.shortcutsTooltipHandler=()=>{this.mouseOverContext=!1,this.hideMenu(),this.shortcutsTooltip.open()}}setup(t,e,i){this.wrapperElement=i,this.model=t,this.mouseOverContext=!1,this.playerContainer=e,this.ui=new w.ZP(i).on("longPress",this.rightClick,this)}addHideMenuHandlers(){this.removeHideMenuHandlers(),this.wrapperElement.addEventListener("touchstart",this.hideMenuHandler),document.addEventListener("touchstart",this.hideMenuHandler),s.OS.mobile||(this.wrapperElement.addEventListener("click",this.hideMenuHandler),document.addEventListener("click",this.hideMenuHandler),this.el.addEventListener("mouseover",this.overHandler),this.el.addEventListener("mouseout",this.outHandler)),this.pipMenu&&this.el.querySelector(".jw-pip-item").addEventListener("click",this.pipHandler),this.shortcutsTooltip&&this.el.querySelector(".jw-shortcuts-item").addEventListener("click",this.shortcutsTooltipHandler)}removeHideMenuHandlers(){this.wrapperElement&&(this.wrapperElement.removeEventListener("click",this.hideMenuHandler),this.wrapperElement.removeEventListener("touchstart",this.hideMenuHandler)),this.el&&(this.el.removeEventListener("mouseover",this.overHandler),this.el.removeEventListener("mouseout",this.outHandler),this.pipMenu&&this.el.querySelector(".jw-pip-item").removeEventListener("click",this.pipHandler),this.shortcutsTooltip&&this.el.querySelector(".jw-shortcuts-item").removeEventListener("click",this.shortcutsTooltipHandler)),document.removeEventListener("click",this.hideMenuHandler),document.removeEventListener("touchstart",this.hideMenuHandler)}destroy(){clearTimeout(this._menuTimeout),this.removeHideMenuHandlers(),this.el&&(this.hideMenu(),this.hideMenuHandler=null,this.el=null),this.wrapperElement&&(this.wrapperElement.oncontextmenu=null,this.wrapperElement=null),this.model&&(this.model=null),this.ui&&(this.ui.destroy(),this.ui=null)}}class E extends S{buildArray(){const{model:t}=this,e=super.buildArray(),{abouttext:i,videoInfo:n}=t.get("localization"),{items:s}=e;if(i){let e,n;for(let t=0;t{this.mouseOverContext=!1,this.hideMenu(),t()}}addHideMenuHandlers(){super.addHideMenuHandlers();const t=this.el.querySelector(".jw-share-item");t&&t.addEventListener("click",this.shareHandler);const e=this.el.querySelector(".jw-stats-item");e&&(this.statsHandler=()=>{const{model:t}=this;this.mouseOverContext=!1,this.hideMenu(),t.set("displayStats",!t.get("displayStats"))},e.addEventListener("click",this.statsHandler))}removeHideMenuHandlers(){if(super.removeHideMenuHandlers(),!this.el)return;const t=this.el.querySelector(".jw-share-item");t&&t.removeEventListener("click",this.shareHandler);const e=this.el.querySelector(".jw-stats-item");e&&e.removeEventListener("click",this.statsHandler)}}var A=i(7284),P=i(3477),I=i(3163),z=i(1831),L=i(2810),B=i(6436);const V=(t,e,i,n)=>{var s;if(!t||"Auto"!==t[0].label||null==i||null==(s=i.items)||!s.length)return;const o=i.items[0].el.querySelector(".jw-auto-label"),a=t[e.index]||{label:""};o.textContent=n?"":a.label},F=t=>{const e=t.closeButton,i=t.el.querySelector(".jw-settings-topbar");return new w.ZP(i).on("keydown",(function(i){const{sourceEvent:n,target:s}=i,o=(0,l.AH)(s),a=(0,l.i3)(s),r=e=>{a?e||a.focus():t.close(i)};switch((0,L.ku)(n.key)){case"Esc":t.close(i);break;case"Left":r();break;case"Right":o&&e.element()&&s!==e.element()&&o.focus();break;case"Tab":n.shiftKey&&r(!0);break;case"Up":case"Down":case"Enter":(()=>{var e;const n=s.getAttribute("name");let o=t.children[n];!o&&n&&t.backButtonTarget&&(o=t.backButtonTarget.children[n]),null!=(e=o)&&e.open&&o.open(i)})()}if(n.stopPropagation(),/13|32|37|38|39|40/.test(n.keyCode))return n.preventDefault(),!1}))};class $ extends A.Z{constructor(t,e,i,n){super(t.id,"settings",n.settings,null,n),this.setCaptionStyles=(t,e,i)=>{const n=i.get("captions"),s=t.name,o=t.values[e],a=Object.assign({},n);a[s]=o,i.set("captions",a)},this.api=t,this.model=e,this.localization=n,this.controlbar=i,this.closeButton=((t,e,i)=>{const n=(0,d.Z)("jw-settings-close",e,i.close,[(0,g.W)("close")]);return n.show(),n.ui.on("keydown",(t=>{const i=t.sourceEvent,n=(0,L.ku)(i.key);("Enter"===n||"Right"===n||"Tab"===n&&!i.shiftKey)&&e(t)}),void 0),t.appendChild(n.element()),n})(this.el.querySelector(`.jw-${this.name}-topbar-buttons`),this.close,n),this.backButtonTarget=null,this.defaultChild=null,this.topbar=F(this),this.onDocumentClick=this.onDocumentClick.bind(this),this.addEventListeners()}setupMenu(t,e,i,n,s,o){var a,r;if(!i||i.length<=1)return void this.removeMenu(t);let l=this.children[t];l||(l=new A.Z(this.api.id,t,e,this,this.localization)),l.setMenuItems(l.createItems(i,n,o),s);const c=null==(a=l)||null==(r=a.categoryButton)||null==r.element?void 0:r.element();this.buttonContainer.firstChild===c&&(this.defaultChild=l)}onLevels(t,e){const i={defaultText:this.localization.auto};this.setupMenu("quality",this.localization.hd,e,(t=>this.api.setCurrentQuality(t)),t.get("currentLevel")||0,i)}onCurrentLevel(t,e){const{children:i}=this,n=i.quality,s=t.get("visualQuality");s&&n&&V(t.get("levels"),s.level,n,e),n.items[e].active||(0,L.dt)(n,e)}onVisualQuality(t,e){const i=this.children.quality;e&&i&&V(t.get("levels"),e.level,i,t.get("currentLevel"))}onAudioTracks(t,e){this.setupMenu("audioTracks",this.localization.audioTracks,e,(t=>this.api.setCurrentAudioTrack(t)),t.get("currentAudioTrack"))}onAudioTrackIndex(t,e){this.children.audioTracks&&(0,L.dt)(this.children.audioTracks,e)}onCaptionsList(t,e){const i={defaultText:this.localization.off},n=t.get("captionsIndex");this.setupMenu("captions",this.localization.cc,e,(t=>this.api.setCurrentCaptions(t)),n,i);const s=this.children.captions;if(!s||s.children.captionsSettings)return;s.topbar=s.topbar||s.createTopbar(),(0,l.EU)(s.topbar);const o=this.localization.captionsStyles,a=new A.Z(this.api.id,"captionsSettings",o.subtitleSettings,s,this.localization),r=a.open;a.open=t=>{const e=a.visible;r.call(a,t),e||this.trigger("captionStylesOpened")};const c=a.destroy;a.destroy=t=>{s.topbar.parentNode.removeChild(s.topbar),s.topbar=null,s.topbarUI.destroy(),c.call(a,t)};const d=new P.s(this.localization.settings,a.open);s.topbar.appendChild(d.el);const h=t.get("captions"),u=t=>{const e=new P.s(this.localization.reset,(()=>{this.model.set("captions",Object.assign({},z.R)),u(!0)}));e.el.classList.add("jw-settings-reset");const i=[];(0,L.JU)(o).forEach((e=>{!t&&h&&h[e.name]?e.val=h[e.name]:e.val=e.defaultVal;const n=e.values.indexOf(e.val);e.currentSelection=e.options[n];const s=new A.Z(this.api.id,e.name,e.label,a,this.localization),o=new P.s(e,s.open,I.v2);o.el.setAttribute("aria-controls",`jw-${this.api.id}-settings-submenu-${e.name}`),s.buttonContainer=o;const r=s.createItems(e.options,(t=>{const i=o.el.querySelector(".jw-settings-content-item-value");this.setCaptionStyles(e,t,this.model),i.innerText=e.options[t]}),null);s.setMenuItems(r,e.values.indexOf(e.val)||0),i.push(o)})),i.push(e),a.setMenuItems(i)};u()}onPlaylistItem(){this.removeMenu("captions"),this.removeMenu("audioTracks"),this.removeMenu("quality"),this.controlbar.elements.captionsButton.hide(),this.visible&&this.close()}onCaptionsIndex(t,e){const i=this.children.captions;i&&(0,L.dt)(i,e),this.controlbar.toggleCaptionsButtonState(Boolean(e))}onPlaybackRates(t,e){!e&&t&&(e=t.get("playbackRates"));const{localization:i,children:n}=this;if(!(t.get("supportsPlaybackRate")&&"LIVE"!==t.get("streamType")&&t.get("playbackRateControls")))return void(n.playbackRates&&this.removeMenu("playbackRates"));const s=e.indexOf(t.get("playbackRate")),o={tooltipText:i.playbackRates};this.setupMenu("playbackRates",this.localization.playbackRates,e,(t=>this.api.setPlaybackRate(t)),s,o)}onPlaybackRate(t,e){const i=t.get("playbackRates");let n=-1;i&&(n=i.indexOf(e)),(0,L.dt)(this.children.playbackRates,n)}onPlaybackRateControls(t){this.onPlaybackRates(t)}onCastActive(t,e,i){e!==i&&(e?(this.removeMenu("audioTracks"),this.removeMenu("quality"),this.removeMenu("playbackRates"),this.children.captions&&this.children.captions.removeMenu("captionsSettings")):(this.onAudioTracks(t,t.get("audioTracks")),this.onLevels(t,t.get("levels")),this.onPlaybackRates(t,t.get("playbackRates")),this.onCaptionsList(t,t.get("captionsList"))))}onChangeStreamType(){this.onPlaybackRates(this.model)}onDocumentClick(t){/jw-(settings|video|nextup-close|sharing-link|share-item)/.test(t.target.className)||this.close()}addEventListeners(){const{updateControlbarButtons:t,model:e}=this;this.on("menuAppended menuRemoved",t,this),e.change("levels",this.onLevels,this),e.on("change:currentLevel",this.onCurrentLevel,this),e.on("change:visualQuality",this.onVisualQuality,this),e.change("audioTracks",this.onAudioTracks,this),e.on("change:currentAudioTrack",this.onAudioTrackIndex,this),e.change("captionsList",this.onCaptionsList,this),e.on("change:playlistItem",this.onPlaylistItem,this),e.change("captionsIndex",this.onCaptionsIndex,this),e.change("playbackRates",this.onPlaybackRates,this),e.change("playbackRate",this.onPlaybackRate,this),e.on("change:playbackRateControls",this.onPlaybackRateControls,this),e.on("change:castActive",this.onCastActive,this),e.on("change:streamType",this.onChangeStreamType,this)}open(t){const e=(0,B.i)(this.model.get("containerWidth"));if(this.visible)return;e<2&&"LIVE"!==this.model.get("streamType")&&(this.mediaStateWhenOpened=this.model.get("state"),this.api.pause());const i=this.controlbar.elements.settingsButton.element();i&&i.setAttribute("aria-expanded",!0),this.el.parentNode.classList.add("jw-settings-open"),this.trigger("visibility",{visible:!0,evt:t}),document.addEventListener("click",this.onDocumentClick),this.el.setAttribute("aria-expanded","true"),this.visible=!0}close(t){var e;const i=(0,L.ku)(null==t||null==(e=t.sourceEvent)?void 0:e.key),n=this.controlbar.elements.settingsButton.element(),s=(0,B.i)(this.model.get("containerWidth"));let a;switch(n&&n.setAttribute("aria-expanded",!1),s<2&&(this.mediaStateWhenOpened!==o.r0&&this.mediaStateWhenOpened!==o.Kb||this.api.play()),this.el.setAttribute("aria-expanded","false"),this.el.parentNode.classList.remove("jw-settings-open"),this.trigger("visibility",{visible:!1,evt:t}),document.removeEventListener("click",this.onDocumentClick),this.visible=!1,this.openMenus.length&&this.closeChildren(),i){case"Right":a=(0,l.AH)(n);break;case"Left":a=(0,l.i3)(n);break;case"Tab":if(t.shiftKey){a=(0,l.i3)(n);break}case"Enter":case"Esc":a=n}a&&a.focus({preventScroll:!event})}updateControlbarButtons(t){const{children:e,controlbar:i,model:n}=this,s=Boolean(e.quality)||Boolean(e.playbackRates)||Boolean(e.audioTracks)||Object.keys(e).length>1;i.elements.settingsButton.toggle(s),e.captions&&i.toggleCaptionsButtonState(Boolean(n.get("captionsIndex")));const o=i.elements[`${t}Button`];if(o){const i=Boolean(e[t]);o.toggle(i)}else if(s){const t=Object.keys(this.children);for(let e=0;e`
    Press shift question mark to access a list of keyboard shortcuts
    ${i}
    ${e.map((t=>`
    ${t.description}${t.key}
    `)).join("")}
    `)(e.id,function(t){const{playPause:e,volumeToggle:i,fullscreenToggle:n,seekPercent:s,increaseVolume:o,decreaseVolume:a,seekForward:r,seekBackward:l,spacebar:c,captionsToggle:d}=t;return[{key:"/ or ?",description:"Shortcuts Open/Close"},{key:c,description:e},{key:"↑",description:o},{key:"↓",description:a},{key:"→",description:r},{key:"←",description:l},{key:"c",description:d},{key:"f",description:n},{key:"m",description:i},{key:"-",description:"Decrease Caption Size"},{key:"+ or =",description:"Increase Caption Size"},{key:"0-9",description:s}]}(o),o.keyboardShortcuts)),r=new w.ZP(a.querySelector(".jw-switch"));let c;const h=()=>{(0,l.IV)(a,"jw-open"),document.removeEventListener("click",c),s=!1,n(!1)};c=t=>{const e=t.target;/jw-shortcuts|jw-switch/.test(e.className)||h()};const u=()=>{r.el.setAttribute("aria-checked",i.get("enableShortcuts")),(0,l.cn)(a,"jw-open"),a.querySelector(".jw-shortcuts-close").focus(),document.addEventListener("click",c),s=!0,n(!0)},p=t=>{const e=t.currentTarget,n="true"!==e.getAttribute("aria-checked");e.setAttribute("aria-checked",n.toString()),i.set("enableShortcuts",n)};return(()=>{const e=(0,d.Z)("jw-shortcuts-close",h,i.get("localization").close,[(0,g.W)("close")]);(0,l.SH)(a,e.element()),e.show(),t.appendChild(a),r.on("click",p)})(),{el:a,open:u,close:h,destroy:()=>{h(),r.destroy()},toggleVisibility:()=>{s?h():u()}}}class N extends a.ZP{constructor(t,e,i){super(),this.element=(0,l.az)(((t,e)=>`
    \n
    ${e}
    \n
    \n
    \n
    `)(e,i));const n=this.element.querySelector(".jw-float-bar-icon");n.appendChild((0,g.W)("floating-close")),this.ui=(0,b.Z)(n,(()=>{this.trigger(o.xf)})),this.title=this.element.querySelector(".jw-float-bar-title"),t.appendChild(this.element)}destroy(){this.element&&(this.ui.destroy(),this.element.parentNode.removeChild(this.element),this.element=null),this.off()}setTitle(t){t?(this.title.innerText=t,this.title.setAttribute("aria-label",t)):(this.title.innerHTML=" ",this.title.setAttribute("aria-label",""))}}i(9725),i(1334);const q=s.OS.mobile?4e3:2e3,U=[27];R.Z.cloneIcon=g.W,H.Z.forEach((t=>{if(t.getState()===o.Vy){const e=t.getContainer().querySelector(".jw-error-msg .jw-icon");e&&!e.hasChildNodes()&&e.appendChild(R.Z.cloneIcon("error"))}}));class D extends a.ZP{constructor(t,e){super(),this.activeTimeout=-1,this.inactiveTime=0,this.context=t,this.controlbar=null,this.displayContainer=null,this.backdrop=null,this.enabled=!0,this.instreamState=null,this.keydownCallback=null,this.keyupCallback=null,this.blurCallback=null,this.mute=null,this.nextUpToolTip=null,this.playerContainer=e,this.wrapperElement=e.querySelector(".jw-wrapper"),this.rightClickMenu=null,this.settingsMenu=null,this.shortcutsTooltip=null,this.showing=!1,this.muteChangeCallback=null,this.unmuteCallback=null,this.logo=null,this.div=null,this.dimensions={},this.userInactiveTimeout=()=>{const t=this.inactiveTime-(0,c.z)();this.inactiveTime&&t>16?this.activeTimeout=setTimeout(this.userInactiveTimeout,t):this.playerContainer.querySelector(".jw-tab-focus")?this.resetActiveTimeout():this.userInactive()}}resetActiveTimeout(){clearTimeout(this.activeTimeout),this.activeTimeout=-1,this.inactiveTime=0}enable(t,e){const i=this.context.createElement("div");i.className="jw-controls jw-reset",this.div=i;const n=this.context.createElement("div");n.className="jw-controls-backdrop jw-reset",this.backdrop=n,this.logo=this.playerContainer.querySelector(".jw-logo");const a=e.get("touchMode");if(this.focusPlayerElement=()=>{var t;e.get("isFloating")?null==(t=this.wrapperElement.querySelector("video"))||t.focus({preventScroll:!0}):this.playerContainer.focus({preventScroll:!0})},!this.displayContainer){const i=new u.Z(e,t);i.buttons.display.on("click enter",(()=>{this.trigger(o.cy),this.userActive(1e3),t.playToggle({reason:"interaction"}),this.focusPlayerElement()})),this.div.appendChild(i.element()),this.displayContainer=i}s.OS.mobile||(this.shortcutsTooltip=new Z(this.wrapperElement,t,e,(t=>{t||this.focusPlayerElement()}))),this.rightClickMenu=new E(this.shortcutsTooltip),a&&(0,l.cn)(this.playerContainer,"jw-flag-touch"),this.rightClickMenu.setup(e,this.playerContainer,this.wrapperElement),this.setupFloating(t,e);const c=this.controlbar=new h.Z(t,e,this.playerContainer.querySelector(".jw-hidden-accessibility"));c.on(o.xf,(()=>{this.off("userInactive",this.focusPlayerElement,this),this.once("userInactive",this.focusPlayerElement,this),this.userActive()})),c.on("nextShown",(function(t){this.trigger("nextShown",t)}),this);const p=i=>{const n=(0,r.v)(e.get("volume")+i,0,100);t.setVolume(n)};if(c.on("adjustVolume",p,this),e.get("nextUpDisplay")&&!c.nextUpToolTip){const i=new y(e,t,this.playerContainer);i.on("all",this.trigger,this),i.setup(this.context),c.nextUpToolTip=i,this.div.appendChild(i.element())}this.div.appendChild(c.element());const w=e.get("localization"),m=this.settingsMenu=new O(t,e.player,this.controlbar,w);let j=null;m.on("menuVisibility",(({visible:i,evt:n})=>{var s;const a=e.get("state"),r={reason:"settingsInteraction"},l=this.controlbar.elements.settingsButton,c="keydown"===((null==n||null==(s=n.sourceEvent)?void 0:s.type)||(null==n?void 0:n.type)||""),d=i||c?0:q;this.userActive(d),(0,B.i)(e.get("containerWidth"))<2&&(i&&a===o.r0?t.pause(r):i||a!==o._5||j!==o.r0||t.play(r)),j=a,!i&&c&&l?l.element().focus():n&&this.focusPlayerElement()})),m.on("captionStylesOpened",(()=>this.trigger("captionStylesOpened"))),c.on("settingsInteraction",((t,e,i)=>{if(e)return m.defaultChild.toggle(i,!0);m.children[t].toggle(i)})),s.OS.mobile?this.div.appendChild(m.el):(this.playerContainer.setAttribute("aria-describedby",`jw-${t.id}-shortcuts-tooltip-explanation`),this.div.insertBefore(m.el,c.element()));const f=e=>{if(e.get("autostartMuted")){const i=()=>this.unmuteAutoplay(t,e),n=(t,e)=>{e||i()};s.OS.mobile&&(this.mute=(0,d.Z)("jw-autostart-mute jw-off",i,e.get("localization").unmute,[(0,g.W)("volume-0")]),this.mute.show(),this.div.appendChild(this.mute.element())),c.renderVolume(!0,e.get("volume")),(0,l.cn)(this.playerContainer,"jw-flag-autostart"),e.on("change:autostartFailed",i,this),e.on("change:autostartMuted change:mute",n,this),this.muteChangeCallback=n,this.unmuteCallback=i}};e.once("change:autostartMuted",f),f(e);const b=i=>{let n=0,s=e.get("duration");const o=e.get("position");if("DVR"===e.get("streamType")){const t=e.get("dvrSeekLimit");n=s,s=Math.max(o,-t)}const a=(0,r.v)(o+i,n,s);t.seek(a,{reason:"interaction"})},v=(t,e)=>{var i,n,s,o,a,r;const l=null==m||null==(i=m.children)||null==(n=i.captions)||null==(s=n.children)||null==(o=s.captionsSettings)||null==(a=o.children)||null==(r=a.userFontScale)?void 0:r.items;if(!Array.isArray(l))return;const c=l.length-1,d=(t,e,i)=>Math.max(t,Math.min(i,e));let h=l.findIndex((t=>t.active));if(h<0)return;"increase"===t?h=d(0,c,h-1):"decrease"===t&&(h=d(0,c,h+1));const u=Object.assign({},e,{key:"Enter",keyCode:13});l[h].ui.trigger("enter",u)},x=i=>{if(i.ctrlKey||i.metaKey)return!0;const n=!this.settingsMenu||!this.settingsMenu.visible,s=!0===e.get("enableShortcuts"),o=this.instreamState;if(s||-1!==U.indexOf(i.keyCode)){switch(i.key){case"Escape":if(e.get("fullscreen"))t.setFullscreen(!1),this.playerContainer.blur(),this.userInactive();else{const e=t.getPlugin("related");e&&e.close({type:"escape"})}this.rightClickMenu.el&&this.rightClickMenu.hideMenuHandler(),e.get("displayStats")&&e.set("displayStats",!1),this.shortcutsTooltip&&this.shortcutsTooltip.close();break;case"Enter":case" ":if(document.activeElement.classList.contains("jw-switch")&&"Enter"===i.key)return!0;t.playToggle({reason:"interaction"});break;case"ArrowLeft":!o&&n&&b(-5);break;case"ArrowRight":!o&&n&&b(5);break;case"ArrowUp":n&&p(10);break;case"ArrowDown":n&&p(-10);break;case"c":{const e=t.getCaptionsList().length;if(e){const i=(t.getCurrentCaptions()+1)%e;t.setCurrentCaptions(i)}break}case"m":t.setMute();break;case"f":t.setFullscreen();break;case"?":case"/":this.shortcutsTooltip&&this.shortcutsTooltip.toggleVisibility();break;case"+":case"=":v("increase",i);break;case"-":v("decrease",i);break;default:if(i.keyCode>=48&&i.keyCode<=59){const n=(i.keyCode-48)/10*e.get("duration");t.seek(n,{reason:"interaction"})}}return/13|32|37|38|39|40/.test(i.keyCode)?(i.preventDefault(),!1):void 0}};this.playerContainer.addEventListener("keydown",x),this.keydownCallback=x;const k=t=>{switch(t.keyCode){case 9:{const e=this.playerContainer.contains(t.target)?0:q;this.userActive(e);break}case 32:t.preventDefault()}};this.playerContainer.addEventListener("keyup",k),this.keyupCallback=k;const C=t=>{this.off("userInactive",this.focusPlayerElement,this);const e=t.relatedTarget||document.querySelector(":focus");if(!e)return;this.playerContainer.contains(e)||this.userInactive()};this.playerContainer.addEventListener("blur",C,!0),this.blurCallback=C;const M=()=>{this.playerContainer.getAttribute("aria-describedby")===`jw-${t.id}-shortcuts-tooltip-explanation`&&this.playerContainer.removeAttribute("aria-describedby"),this.playerContainer.removeEventListener("blur",M,!0)};this.shortcutsTooltip&&(this.playerContainer.addEventListener("blur",M,!0),this.onRemoveShortcutsDescription=M),this.userActive(),this.addControls(),this.addBackdrop(),e.set("controlsEnabled",!0)}addControls(){this.wrapperElement.appendChild(this.div)}disable(t){const{nextUpToolTip:e,settingsMenu:i,controlbar:n,rightClickMenu:s,shortcutsTooltip:o,playerContainer:a,div:r,countdownUI:c}=this;clearTimeout(this.activeTimeout),this.activeTimeout=-1,this.off(),t.off(null,null,this),t.set("controlsEnabled",!1),r.parentNode&&((0,l.IV)(a,"jw-flag-touch"),r.parentNode.removeChild(r)),n&&n.destroy(),s&&s.destroy(),this.keydownCallback&&a.removeEventListener("keydown",this.keydownCallback),this.keyupCallback&&a.removeEventListener("keyup",this.keyupCallback),this.blurCallback&&a.removeEventListener("blur",this.blurCallback),this.onRemoveShortcutsDescription&&a.removeEventListener("blur",this.onRemoveShortcutsDescription),this.displayContainer&&this.displayContainer.destroy(),e&&e.destroy(),i&&i.destroy(),t.get("displayStats")&&t.set("displayStats",!1),o&&o.destroy(),c&&c.destroy(),this.removeBackdrop()}controlbarHeight(){return this.dimensions.cbHeight||(this.dimensions.cbHeight=this.controlbar.element().clientHeight),this.dimensions.cbHeight}element(){return this.div}resize(){this.dimensions={}}unmuteAutoplay(t,e){const i=!e.get("autostartFailed");let n=e.get("mute");i?n=!1:e.set("playOnViewable",!1),this.muteChangeCallback&&(e.off("change:autostartMuted change:mute",this.muteChangeCallback),this.muteChangeCallback=null),this.unmuteCallback&&(e.off("change:autostartFailed",this.unmuteCallback),this.unmuteCallback=null),e.set("autostartFailed",void 0),e.set("autostartMuted",void 0),t.setMute(n),this.controlbar.renderVolume(n,e.get("volume")),this.mute&&this.mute.hide(),(0,l.IV)(this.playerContainer,"jw-flag-autostart"),this.userActive()}mouseMove(t){var e,i,n,s;const o=this.controlbar.element().contains(t.target),a=null==this||null==(e=this.controlbar)||null==(i=e.nextUpToolTip)||null==i.element||null==(n=i.element())?void 0:n.contains(t.target),r=null==(s=this.logo)||null==s.contains?void 0:s.contains(t.target),l=o||a||r?0:q;this.userActive(l)}userActive(t=q){t>0?(this.inactiveTime=(0,c.z)()+t,-1===this.activeTimeout&&(this.activeTimeout=setTimeout(this.userInactiveTimeout,t))):this.resetActiveTimeout(),this.showing||((0,l.IV)(this.playerContainer,"jw-flag-user-inactive"),this.showing=!0,this.trigger("userActive"))}userInactive(){clearTimeout(this.activeTimeout),this.activeTimeout=-1,this.settingsMenu.visible||(this.inactiveTime=0,this.showing=!1,(0,l.cn)(this.playerContainer,"jw-flag-user-inactive"),this.trigger("userInactive"))}addBackdrop(){const t=this.instreamState?this.div:this.wrapperElement.querySelector(".jw-captions");this.wrapperElement.insertBefore(this.backdrop,t)}removeBackdrop(){const t=this.backdrop.parentNode;t&&t.removeChild(this.backdrop)}setupInstream(){this.instreamState=!0,this.userActive(),this.addBackdrop(),this.settingsMenu&&this.settingsMenu.close(),(0,l.IV)(this.playerContainer,"jw-flag-autostart"),this.controlbar.elements.time.element().setAttribute("tabindex","-1")}destroyInstream(t){this.instreamState=null,this.addBackdrop(),t.get("autostartMuted")&&(0,l.cn)(this.playerContainer,"jw-flag-autostart"),this.controlbar.elements.time.element().setAttribute("tabindex","0")}setupFloating(t,e){const i=e.get("localization"),n=e.get("advertising"),s=e.get("floating"),a=()=>e.trigger("dismissFloating",{doNotForward:true}),r=()=>t.remove(),c=()=>{const t=e.get("playlistItem").title;return s&&s.showTitle?this.instreamState?null!=i&&null!=(n=i.advertising)&&n.displayHeading?i.advertising.displayHeading:" ":t:" ";var n},d=new N(this.wrapperElement,i.close,c());null!=n&&n.outstream&&null!=n&&n.dismissible?d.on(o.xf,r):d.on(o.xf,a);s&&!1!==s.dismissible&&(0,l.cn)(this.playerContainer,"jw-floating-dismissible"),e.on("change:playlistItem",(()=>{d.setTitle(c())}),this),e.on("instreamMode",(()=>{d.setTitle(c())}),this)}}var W=i(8711),Q=i.n(W),Y=i(1983),K=i.n(Y),J=i(1277),X=i.n(J),G=i(7928),tt=i.n(G),et=i(5484),it=i.n(et),nt=i(6598),st=i.n(nt),ot=i(8053),at=i.n(ot),rt=i(1666),lt=i.n(rt),ct=i(4375),dt=i.n(ct);const ht={label:"facebook",src:"http://www.facebook.com/sharer/sharer.php?u=[URL]",svg:Q(),jwsource:"fb"},ut={label:"twitter",src:"http://twitter.com/intent/tweet?url=[URL]",svg:st(),jwsource:"twi"},pt={label:"linkedin",src:"https://www.linkedin.com/cws/share?url=[URL]",svg:K(),jwsource:"lkn"},wt={label:"pinterest",src:"http://pinterest.com/pin/create/button/?url=[URL]",svg:X(),jwsource:"pin"},gt={label:"reddit",src:"http://www.reddit.com/submit?url=[URL]",svg:tt(),jwsource:"rdt"},mt={label:"tumblr",src:"http://tumblr.com/widgets/share/tool?canonicalUrl=[URL]",svg:it(),jwsource:"tbr"},jt={label:"email",src:"mailto:?body=[URL]",svg:at(),jwsource:"em"},ft={label:"link",svg:lt(),jwsource:"cl"},bt={label:"embed",svg:dt(),jwsource:"ceb"};var yt=i(549),vt=i.n(yt),xt=i(6042);let kt=!1;const Ct=function(t,e,s,o,r){const c=(null==r?void 0:r.openLink)||l.nG;Object.assign(this,a.ZP);let d,h,u=[ht,ut,jt];const p=t=>{s.trigger("settingsInteraction","sharing",!1,t)};(()=>{if(Array.isArray(e.sites)){const t=[];(0,xt.S6)(e.sites,(function(e){(0,xt.HD)(e)&&n[e]?t.push(n[e]):(0,xt.Kn)(e)&&t.push(e)})),u=t}t.addButton(vt(),o,p,"share","jw-settings-sharing");const i=s.el.querySelector(".jw-settings-sharing");i.setAttribute("aria-controls",`jw-${t.id}-settings-submenu-sharing`),i.setAttribute("role","button")})();const w=(t,e)=>{const i=t.indexOf("MEDIAID");return i>0&&e?t.replace("MEDIAID",e):-1===i?t:void 0},g=(t,i)=>{if(i)return i;if(e.link){const i=w(e.link,t);if(i)return i}return window.top===window?window.location.toString():document.referrer},m=()=>{const i=t.getPlaylistItem(),n=u.filter((t=>"link"===t.label))[0],{mediaid:s,link:o}=i;d=g(s,o),n?-1===n.src.indexOf(d)&&(n.src=d):u.push(Object.assign({src:d},ft));const a=u.filter((t=>"embed"===t.label));h=(t=>{let i=null;if(e.code){i=w(e.code,t)||i}return i})(i.mediaid)||e.code,a[0]?a[0].src=decodeURIComponent(h):e.code&&u.push(Object.assign({src:decodeURIComponent(h)},bt))},j=t=>{this.trigger("click",{method:t})};return this.getShareMethods=function(){return m(),u},this.getLink=(t,e)=>g(t,e),this.getHeading=()=>o,this.onSubmenuToggle=(t,e="interaction")=>{t&&!kt&&(kt=!0,i(3484)),this.trigger(t?"open":"close",{visible:t,method:e})},this.action=function(e){const i=u[e].label;"embed"!==i&&"link"!==i?(e=>{const{src:i}=e;if((0,xt.mf)(i))i(d);else if(null!=i){const e=encodeURIComponent(d||"share");let n=i.replace(/\[URL\]/gi,e);i===n&&(n=i+e),t.pause({reason:"sharing"}),c(n,"_blank",{rel:"noreferrer"}),window.focus()}j(e.label)})(u[e]):j(i)},this.open=function(){s.trigger("sharingApi",!0)},this.close=function(){s.trigger("sharingApi",!1)},this},Mt=function(t,e){const i=(0,l.az)('
    ');i.querySelector(".jw-icon").appendChild((0,g.W)("next")),this.el=i,this.skiptext=this.el.querySelector(".jw-skiptext"),this.skipUI=(0,b.Z)(this.el,this.skipAd,this),this.model=t,this.skipMessage=t.get("skipText")||"",this.skipMessageCountdown=t.get("skipMessage")||"",this.waitTime=(0,m.U5)(t.get("skipOffset")),t.change("duration",((i,n)=>{n&&(this.waitTime||(this.waitTime=(0,m.U5)(i.get("skipOffset"),n)),this.el.parentNode!==e&&this.waitTime+2{const i=this.waitTime-(e||0);i>0?this.updateMessage(this.skipMessageCountdown.replace(/(\b)xx(s?\b)/gi,`$1${Math.ceil(i)}$2`)):null!==this.waitTime&&(this.updateMessage(this.skipMessage),this.skippable=!0,(0,l.cn)(this.el,"jw-skippable"))}),this),e.appendChild(this.el)))}),this)};Object.assign(Mt.prototype,a.ZP,{updateMessage(t){(0,l.nh)(this.skiptext,t),this.el.setAttribute("aria-label",t)},skipAd(){this.skippable&&(this.skipUI.off(),this.trigger(o.k3))},destroy(){var t;this.model.off(null,null,this),this.skipUI&&this.skipUI.destroy(),null!=this&&null!=(t=this.el)&&t.parentNode&&this.el.parentNode.removeChild(this.el)}});const _t=Mt,Tt=function(t,e,i){this.api=t,this.playerElement=e,this.wrapperElement=i};Object.assign(Tt.prototype,{setup(t){this.element=(0,l.az)((t=>`
    `)(t)),this.element.appendChild((0,g.W)("close")),this.ui=(0,b.Z)(this.element,(()=>{this.api.remove()}),this),this.wrapperElement.insertBefore(this.element,this.wrapperElement.firstChild),(0,l.cn)(this.playerElement,"jw-flag-top")},destroy(){this.element&&(this.ui.destroy(),this.wrapperElement.removeChild(this.element),this.element=null)}});const St=Tt,Et=t=>{const{label:e,src:i,options:n,displayText:s,svg:o="",icon:a=""}=t,r=a?``:o;return"link"===e||"embed"===e?`
    ${n.copyText}
    `:``};class At extends P.s{constructor(t,e,i=Et){super(t,e,i),this.content=t,this.el&&t.label&&(this.el.setAttribute("aria-label",t.label),this.el.setAttribute("role","button"),this.el.setAttribute("tabindex","0"))}activate(){if("embed"!==this.content.label&&"link"!==this.content.label)return;const t=this.el.querySelector(".jw-sharing-textarea");if(t.select(),document.execCommand("copy")){const e=t.nextSibling;(0,l.cn)(e,"jw-open"),setTimeout((function(){(0,l.IV)(e,"jw-open")}),1e3)}else window.prompt("Copy the text below",this.content.src);t.blur()}destroy(){this.ui.destroy()}}const Pt=At;class It extends A.Z{createCategoryButton(){return"sharing"===this.name&&(this.icon=vt()),super.createCategoryButton(this.title)}createItems(t,e,i,n){return"sharing"===this.name&&(n=Pt),super.createItems.apply(this,[t,e,i,n])}}class zt{constructor(t,e,i,n,s){this._player=t,this._model=e,this.div=i,this.currentTime=null,this.adRules=s||null,this.count=5,this.isVisible=!1,this.adsPlayed=[],this.countdownMessage=n||"Ad in "}setup(){this.container=document.createElement("div"),this.container.className="jw-countdown-container jw-reset",this.addCountdownUI(),this._model.on("time",this.evaluateCurrentTime,this),this._model.on("instreamMode",this.hide,this),this._model.on("countdownAdCues",this.parseAdCues,this),this._model.on("change:playlistItem",this.resetAdsPlayed,this),this._player.on("previousAdCompleteTime",(t=>{this.previousAdCompleteTime=t.time}))}addCountdownUI(){const t=(0,l.az)(`
    ${this.countdownMessage}
    `);this.container.appendChild(t),this.div.appendChild(this.container)}show(){var t;this.isVisible||(this.isVisible=!0,null==(t=this.container)||t.classList.add("jw-countdown-show"))}hide(){var t;this.isVisible&&(this.isVisible=!1,null==(t=this.container)||t.classList.remove("jw-countdown-show"))}parseAdCues(t){const e=[];for(const i in t)if("type"!==i){const n=t[i];let s;if("number"==typeof n.begin)s=n.begin;else{const t=this._model.get("duration");s="post"===n.begin?t:t*(parseFloat(n.begin)/100)}const o=s-5,a=n.adId;e.push({begin:s,fireAt:o,adId:a})}this.adCues=e.sort(((t,e)=>t.begin-e.begin))}timeBetweenAdAllows(t){var e;if(null==(e=this.adRules)||!e.timeBetweenAds)return!0;return!((Date.now()-this.previousAdCompleteTime)/1e3<=this.adRules.timeBetweenAds-t)}evaluateCurrentTime(t){const e=Math.floor(t.currentTime),i=this.nextAdCue(e);if(!i)return;const n=Math.floor(i.begin-e);this.timeBetweenAdAllows(n)&&(n<=5&&n>0?(this.setCount(n),this.show()):this.hide())}nextAdCue(t){if(this.adCues&&this.adCues.length)return this.adCues.reduce(((e,i)=>(i.begint&&!this.adsPlayed.includes(i.adId)?i:e)),null)}resetAdsPlayed(){this.adsPlayed=[]}setCount(t){const e=this.div.querySelector(".jw-count");e&&(e.ariaLabel=t,e.innerHTML=t)}destroy(){this.div.removeChild(this.container),this.container=null,this.adsPlayed=[],this._model.off("time",this.evaluateCurrentTime),this._model.off("instreamMode",this.hide),this._model.off("countdownAdCues",this.parseAdCues),this._model.off("change:playlistItem",this.resetAdsPlayed,this)}}const Lt=class extends D{constructor(t,e){super(t,e),this.playerContainer=e,this.sharing=null,this.sharingApi=!1,this.dismissButton=null,this.skipButton=null}disable(t){super.disable.call(this,t),this.dismissButton&&(this.dismissButton.destroy(),this.dismissButton=null)}enable(t,e){super.enable.call(this,t,e),e.change("instream",((t,e)=>{!e&&this.skipButton&&this._destroySkipButton()})),e.change("skipButton",((e,i)=>{this._destroySkipButton(),i&&(this.skipButton=new _t(e,this.div),this.skipButton.on(o.k3,(function(){e.set("skipButton",!1),t.skipAd()})),this.controlbar.adSkipButton=this.skipButton)}));const i=e.get("localization"),n=e.get("advertising");null!=n&&n.outstream&&null!=n&&n.dismissible&&(this.dismissButton=new St(t,this.playerContainer,this.playerContainer.querySelector(".jw-top")),this.dismissButton.setup(i.close));var s;(null==n?void 0:n.showCountdown)&&!this.countdownUI&&(this.countdownUI=new zt(t,e,this.div,null==i||null==(s=i.advertising)?void 0:s.countdownMessage,null==n?void 0:n.rules),this.countdownUI.setup());const a=e.get("sharing");if(!this.sharing&&a){const{controlbar:n,settingsMenu:s}=this,o=i.sharing;this.sharing=new Ct(t,a,n,o.heading),t.addPlugin("sharing",this.sharing),e.change("playlistItem",(()=>{const e=this.sharing.getShareMethods().map((t=>{const e=o[t.label];return e&&(t.displayText=e),t}));s.removeMenu("sharing");const n=new It(t.id,"sharing",i.sharing.heading,s,i),a=n.open,r=n.close,l=i.sharing.copied;n.open=t=>{n.visible||this._onSharingActive(!0),a(t)},n.close=t=>{n.visible&&this._onSharingActive(!1),r(t)},n.setMenuItems(n.createItems(e,this.sharing.action,{copyText:l})),n.el.classList.add("jw-sharing-menu")})),this._addSharingApiEvent(n,s),this.rightClickMenu.enableSharing(this.sharing.open)}}_destroySkipButton(){this.skipButton&&(this.skipButton.destroy(),this.skipButton=null,this.controlbar.adSkipButton=null)}_addSharingApiEvent(t,e){t.on("sharingApi",(t=>{const i=e.children.sharing;i&&(this.sharingApi=!0,t&&!i.visible?(e.children.sharing.open(),this.sharing.onSubmenuToggle(!0,"api")):!t&&i.visible&&(e.close(),this.sharing.onSubmenuToggle(!1,"api")))}))}_onSharingActive(t){this.sharingApi?this.sharingApi=!1:this.sharing.onSubmenuToggle(t)}}},4542:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(8081),s=i.n(n),o=i(3645),a=i.n(o)()(s());a.push([t.id,'.jw-controls,.jw-controls-backdrop,.jw-flag-small-player .jw-settings-menu,.jw-settings-submenu{height:100%;width:100%}.jw-icon-settings::after,.jw-icon-volume::after,.jw-settings-menu .jw-icon.jw-button-color::after,.jw-settings-menu .jw-icon::after{position:absolute;right:0}.jw-controls,.jw-controls-backdrop,.jw-settings-item-active::before{top:0;position:absolute;left:0}.jw-icon-settings::after,.jw-icon-volume::after,.jw-settings-menu .jw-icon.jw-button-color::after,.jw-settings-menu .jw-icon::after{position:absolute;bottom:0;left:0}.jw-nextup-close{position:absolute;top:0;right:0}.jw-controls,.jw-flag-small-player .jw-settings-menu{position:absolute;bottom:0;right:0}.jw-controlbar .jw-tooltip::after,.jw-icon-settings::after,.jw-icon-volume::after,.jw-settings-menu .jw-icon.jw-button-color::after,.jw-settings-menu .jw-icon::after,.jw-settings-menu .jw-tooltip::after,.jw-text-live::before,.jw-time-tip::after{content:"";display:block}.jw-svg-icon{height:24px;width:24px;fill:currentColor;pointer-events:none}.jw-icon{height:44px;width:44px;background-color:transparent;outline:0}.jw-icon.jw-tab-focus:focus{border:solid 2px #4d90fe}.jw-icon-airplay .jw-svg-icon-airplay-off{display:none}.jw-off.jw-icon-airplay .jw-svg-icon-airplay-off{display:block}.jw-icon-airplay .jw-svg-icon-airplay-on{display:block}.jw-off.jw-icon-airplay .jw-svg-icon-airplay-on{display:none}.jw-icon-cc .jw-svg-icon-cc-off{display:none}.jw-off.jw-icon-cc .jw-svg-icon-cc-off{display:block}.jw-icon-cc .jw-svg-icon-cc-on{display:block}.jw-off.jw-icon-cc .jw-svg-icon-cc-on{display:none}.jw-icon-fullscreen .jw-svg-icon-fullscreen-off{display:none}.jw-off.jw-icon-fullscreen .jw-svg-icon-fullscreen-off{display:block}.jw-icon-fullscreen .jw-svg-icon-fullscreen-on{display:block}.jw-off.jw-icon-fullscreen .jw-svg-icon-fullscreen-on{display:none}.jw-icon-pip .jw-svg-icon-pip-off{display:none}.jw-off.jw-icon-pip .jw-svg-icon-pip-off{display:block}.jw-icon-pip .jw-svg-icon-pip-on{display:block}.jw-off.jw-icon-pip .jw-svg-icon-pip-on{display:none}.jw-icon-volume .jw-svg-icon-volume-0{display:none}.jw-off.jw-icon-volume .jw-svg-icon-volume-0{display:block}.jw-icon-volume .jw-svg-icon-volume-100{display:none}.jw-full.jw-icon-volume .jw-svg-icon-volume-100{display:block}.jw-icon-volume .jw-svg-icon-volume-50{display:block}.jw-full.jw-icon-volume .jw-svg-icon-volume-50,.jw-off.jw-icon-volume .jw-svg-icon-volume-50{display:none}.jw-icon-settings::after,.jw-icon-volume::after,.jw-settings-menu .jw-icon::after{height:100%;width:24px;box-shadow:inset 0 -3px 0 -1px currentColor;margin:auto;opacity:0;transition:opacity 150ms cubic-bezier(0,.25,.25,1)}.jw-icon-volume.jw-open::after,.jw-settings-menu .jw-icon[aria-checked=true]::after,.jw-settings-open .jw-icon-settings::after{opacity:1}.jwplayer.jw-breakpoint--1:not(.jw-flag-audio-player) .jw-icon-audio-tracks,.jwplayer.jw-breakpoint--1:not(.jw-flag-audio-player) .jw-icon-cc,.jwplayer.jw-breakpoint--1:not(.jw-flag-audio-player) .jw-icon-fullscreen,.jwplayer.jw-breakpoint--1:not(.jw-flag-audio-player) .jw-icon-hd,.jwplayer.jw-breakpoint--1:not(.jw-flag-audio-player) .jw-icon-settings,.jwplayer.jw-breakpoint--1:not(.jw-flag-audio-player) .jw-settings-sharing,.jwplayer.jw-breakpoint--1:not(.jw-flag-audio-player).jw-flag-cast-available .jw-icon-airplay,.jwplayer.jw-breakpoint--1:not(.jw-flag-audio-player).jw-flag-cast-available .jw-icon-cast{display:none}.jwplayer.jw-breakpoint--1:not(.jw-flag-audio-player) .jw-icon-volume,.jwplayer.jw-breakpoint--1:not(.jw-flag-audio-player) .jw-text-live{bottom:6px}.jwplayer.jw-breakpoint--1:not(.jw-flag-audio-player) .jw-icon-volume::after{display:none}.jw-controls{pointer-events:none;overflow:hidden}.jw-flag-small-player .jw-controls{text-align:center}.jw-controls-backdrop{display:block;background:linear-gradient(to bottom,transparent,rgba(0,0,0,.4) 77%,rgba(0,0,0,.4) 100%) 100% 100%/100% 240px no-repeat transparent;transition:opacity 250ms cubic-bezier(0,.25,.25,1),background-size 250ms cubic-bezier(0,.25,.25,1);pointer-events:none}.jw-overlays{cursor:auto}.jw-text{height:1em;font-family:Arial,Helvetica,sans-serif;font-size:.75em;font-style:normal;font-weight:400;color:#fff;text-align:center;font-variant:normal;font-stretch:normal}.jw-autostart-mute,.jw-controlbar,.jw-display-icon-container .jw-icon,.jw-nextup-container,.jw-skip{pointer-events:all}.jw-error .jw-display-icon-container,.jwplayer .jw-display-icon-container{width:auto;height:auto;box-sizing:content-box}.jw-display{display:flex;flex-direction:column;justify-content:center;height:100%;padding:57px 0;position:relative;width:100%}.jw-flag-dragging .jw-display{display:none}.jw-state-idle:not(.jw-flag-cast-available) .jw-display{padding:0}.jw-display-container{text-align:center}.jw-keep-thumbnail.jw-flag-ads .jw-display-container{display:none}.jw-display-controls{display:inline-block}.jwplayer .jw-display-icon-container{float:left}.jw-display-icon-container{display:inline-block;padding:5.5px;margin:0 22px}.jw-display-icon-container .jw-icon{height:75px;width:75px;cursor:pointer;display:flex;justify-content:center;align-items:center}.jw-display-icon-container .jw-icon .jw-svg-icon{height:33px;width:33px;padding:0;position:relative}.jw-display-icon-container .jw-icon .jw-svg-icon-rewind{padding:.2em .05em}.jw-breakpoint--1 .jw-nextup-container{display:none}.jw-breakpoint--1 .jw-display-icon-next,.jw-breakpoint--1 .jw-display-icon-rewind,.jw-breakpoint-0 .jw-display-icon-next,.jw-breakpoint-0 .jw-display-icon-rewind{display:none}.jw-breakpoint--1.jw-flag-touch .jw-display .jw-icon,.jw-breakpoint--1.jw-flag-touch .jw-display .jw-svg-icon,.jw-breakpoint-0.jw-flag-touch .jw-display .jw-icon,.jw-breakpoint-0.jw-flag-touch .jw-display .jw-svg-icon{z-index:100;position:relative}.jw-breakpoint--1 .jw-display .jw-icon,.jw-breakpoint--1 .jw-display .jw-svg-icon,.jw-breakpoint-0 .jw-display .jw-icon,.jw-breakpoint-0 .jw-display .jw-svg-icon{width:44px;height:44px;line-height:44px}.jw-breakpoint--1 .jw-display .jw-icon:before,.jw-breakpoint--1 .jw-display .jw-svg-icon:before,.jw-breakpoint-0 .jw-display .jw-icon:before,.jw-breakpoint-0 .jw-display .jw-svg-icon:before{width:22px;height:22px}.jw-breakpoint-1 .jw-display .jw-icon,.jw-breakpoint-1 .jw-display .jw-svg-icon{width:44px;height:44px;line-height:44px}.jw-breakpoint-1 .jw-display .jw-icon:before,.jw-breakpoint-1 .jw-display .jw-svg-icon:before{width:22px;height:22px}.jw-breakpoint-1 .jw-display .jw-icon.jw-icon-rewind:before{width:33px;height:33px}.jw-breakpoint-2 .jw-display .jw-icon,.jw-breakpoint-2 .jw-display .jw-svg-icon,.jw-breakpoint-3 .jw-display .jw-icon,.jw-breakpoint-3 .jw-display .jw-svg-icon{width:77px;height:77px;line-height:77px}.jw-breakpoint-2 .jw-display .jw-icon:before,.jw-breakpoint-2 .jw-display .jw-svg-icon:before,.jw-breakpoint-3 .jw-display .jw-icon:before,.jw-breakpoint-3 .jw-display .jw-svg-icon:before{width:38.5px;height:38.5px}.jw-breakpoint-4 .jw-display .jw-icon,.jw-breakpoint-4 .jw-display .jw-svg-icon,.jw-breakpoint-5 .jw-display .jw-icon,.jw-breakpoint-5 .jw-display .jw-svg-icon,.jw-breakpoint-6 .jw-display .jw-icon,.jw-breakpoint-6 .jw-display .jw-svg-icon,.jw-breakpoint-7 .jw-display .jw-icon,.jw-breakpoint-7 .jw-display .jw-svg-icon{width:88px;height:88px;line-height:88px}.jw-breakpoint-4 .jw-display .jw-icon:before,.jw-breakpoint-4 .jw-display .jw-svg-icon:before,.jw-breakpoint-5 .jw-display .jw-icon:before,.jw-breakpoint-5 .jw-display .jw-svg-icon:before,.jw-breakpoint-6 .jw-display .jw-icon:before,.jw-breakpoint-6 .jw-display .jw-svg-icon:before,.jw-breakpoint-7 .jw-display .jw-icon:before,.jw-breakpoint-7 .jw-display .jw-svg-icon:before{width:44px;height:44px}.jw-controlbar{display:flex;flex-flow:row wrap;align-items:center;justify-content:center;position:absolute;left:0;bottom:0;width:100%;border:none;border-radius:0;background-size:auto;box-shadow:none;max-height:72px;transition:250ms cubic-bezier(0,.25,.25,1);transition-property:opacity,visibility;transition-delay:0s}.jw-flag-touch.jw-breakpoint-0 .jw-controlbar .jw-icon-inline{height:40px}.jw-breakpoint-7:not(.jw-flag-audio-player) .jw-controlbar{max-height:140px}.jw-breakpoint-7:not(.jw-flag-audio-player) .jw-controlbar .jw-button-container .jw-tooltip{margin-bottom:-7px}.jw-breakpoint-7:not(.jw-flag-audio-player) .jw-controlbar .jw-button-container .jw-icon-volume .jw-overlay{padding-bottom:40%}.jw-breakpoint-7:not(.jw-flag-audio-player) .jw-controlbar .jw-button-container .jw-text.jw-text-elapsed{justify-content:flex-end}.jw-breakpoint-7:not(.jw-flag-audio-player) .jw-controlbar .jw-button-container .jw-icon-inline:not(.jw-text-live),.jw-breakpoint-7:not(.jw-flag-audio-player) .jw-controlbar .jw-button-container .jw-icon-volume{height:60px;width:60px}.jw-breakpoint-7:not(.jw-flag-audio-player) .jw-controlbar .jw-button-container .jw-icon-inline:not(.jw-text-live) .jw-svg-icon,.jw-breakpoint-7:not(.jw-flag-audio-player) .jw-controlbar .jw-button-container .jw-icon-volume .jw-svg-icon{height:30px;width:30px}.jw-controlbar .jw-button-image{background:no-repeat 50% 50%;background-size:contain;max-height:24px}.jw-controlbar .jw-spacer{margin:0 auto}.jw-controlbar .jw-icon.jw-button-color:hover{color:#fff}.jw-keep-thumbnail.jw-flag-ads .jw-controlbar{display:none}.jw-button-container{display:flex;flex-flow:row nowrap;flex:1 1 auto;align-items:center;justify-content:flex-start;width:100%;padding:0 12px}.jw-slider-horizontal{background-color:transparent}.jw-icon-inline{position:relative}.jw-icon-inline,.jw-icon-tooltip{height:44px;width:44px;align-items:center;display:flex;justify-content:center}.jw-icon-inline:not(.jw-text),.jw-icon-tooltip,.jw-slider-horizontal{cursor:pointer}.jw-text-duration,.jw-text-elapsed{justify-content:flex-start;width:-moz-fit-content;width:fit-content}.jw-icon-tooltip{position:relative}.jw-icon-display:hover,.jw-icon-inline:hover,.jw-icon-tooltip:hover,.jw-knob:hover,.jw-option:before:hover{color:#fff}.jw-controlbar .jw-tooltip,.jw-settings-menu .jw-tooltip,.jw-time-tip{pointer-events:none}.jw-icon-cast{display:none;margin:0;padding:0}.jw-icon-cast google-cast-launcher{background-color:transparent;border:none;padding:0;width:24px;height:24px;cursor:pointer}.jw-fullscreen-ima{display:none}.jw-icon-inline.jw-icon-volume{display:none}.jwplayer .jw-text-countdown{display:none}.jw-flag-small-player .jw-display{padding-top:0;padding-bottom:0}.jw-flag-small-player:not(.jw-flag-audio-player):not(.jw-flag-ads) .jw-controlbar .jw-button-container>.jw-icon-next,.jw-flag-small-player:not(.jw-flag-audio-player):not(.jw-flag-ads) .jw-controlbar .jw-button-container>.jw-icon-playback,.jw-flag-small-player:not(.jw-flag-audio-player):not(.jw-flag-ads) .jw-controlbar .jw-button-container>.jw-icon-rewind{display:none}.jw-flag-ads-vpaid:not(.jw-flag-media-audio):not(.jw-flag-audio-player):not(.jw-flag-ads-vpaid-controls):not(.jw-flag-casting) .jw-controlbar,.jw-flag-user-inactive.jw-state-buffering:not(.jw-flag-media-audio):not(.jw-flag-audio-player):not(.jw-flag-ads-vpaid-controls):not(.jw-flag-casting) .jw-controlbar,.jw-flag-user-inactive.jw-state-playing:not(.jw-flag-media-audio):not(.jw-flag-audio-player):not(.jw-flag-ads-vpaid-controls):not(.jw-flag-casting) .jw-controlbar{visibility:hidden;pointer-events:none;opacity:0;transition-delay:0s,250ms}.jw-flag-ads-vpaid:not(.jw-flag-media-audio):not(.jw-flag-audio-player):not(.jw-flag-ads-vpaid-controls):not(.jw-flag-casting) .jw-controls-backdrop,.jw-flag-user-inactive.jw-state-buffering:not(.jw-flag-media-audio):not(.jw-flag-audio-player):not(.jw-flag-ads-vpaid-controls):not(.jw-flag-casting) .jw-controls-backdrop,.jw-flag-user-inactive.jw-state-playing:not(.jw-flag-media-audio):not(.jw-flag-audio-player):not(.jw-flag-ads-vpaid-controls):not(.jw-flag-casting) .jw-controls-backdrop{opacity:0}.jwplayer:not(.jw-flag-ads):not(.jw-flag-live).jw-breakpoint-0 .jw-text-countdown{display:flex}.jwplayer:not(.jw-flag-ads):not(.jw-flag-live).jw-breakpoint--1 .jw-text-duration,.jwplayer:not(.jw-flag-ads):not(.jw-flag-live).jw-breakpoint--1 .jw-text-elapsed,.jwplayer:not(.jw-flag-ads):not(.jw-flag-live).jw-breakpoint-0 .jw-text-duration,.jwplayer:not(.jw-flag-ads):not(.jw-flag-live).jw-breakpoint-0 .jw-text-elapsed{display:none}.jwplayer.jw-breakpoint--1:not(.jw-flag-ads):not(.jw-flag-audio-player) .jw-related-btn,.jwplayer.jw-breakpoint--1:not(.jw-flag-ads):not(.jw-flag-audio-player) .jw-slider-volume,.jwplayer.jw-breakpoint--1:not(.jw-flag-ads):not(.jw-flag-audio-player) .jw-text-countdown{display:none}.jwplayer.jw-breakpoint--1:not(.jw-flag-ads):not(.jw-flag-audio-player) .jw-controlbar{flex-direction:column-reverse}.jwplayer.jw-breakpoint--1:not(.jw-flag-ads):not(.jw-flag-audio-player) .jw-button-container{height:30px}.jw-breakpoint--1.jw-flag-ads:not(.jw-flag-audio-player) .jw-icon-fullscreen,.jw-breakpoint--1.jw-flag-ads:not(.jw-flag-audio-player) .jw-icon-volume{display:none}.jwplayer:not(.jw-breakpoint--1) .jw-text-duration:before,.jwplayer:not(.jw-breakpoint-0) .jw-text-duration:before{content:"/";padding-right:1ch;padding-left:1ch}.jwplayer:not(.jw-flag-user-inactive) .jw-controlbar{will-change:transform}.jwplayer:not(.jw-flag-user-inactive) .jw-controlbar .jw-text{transform-style:preserve-3d}.jwplayer:not(.jw-flag-fullscreen) .jw-fullscreen-disallowed{display:none}.jw-slider-container{display:flex;align-items:center;position:relative;touch-action:none}.jw-buffer,.jw-progress,.jw-rail{position:absolute;cursor:pointer}.jw-progress{background-color:#f2f2f2}.jw-rail{background-color:rgba(255,255,255,.3)}.jw-buffer{background-color:rgba(255,255,255,.3)}.jw-knob{height:13px;width:13px;background-color:#fff;border-radius:50%;box-shadow:0 0 10px rgba(0,0,0,.4);opacity:1;pointer-events:none;position:absolute;transform:translate(-50%,-50%) scale(0);transition:150ms cubic-bezier(0,.25,.25,1);transition-property:opacity,transform}.jw-flag-dragging .jw-slider-time .jw-knob,.jw-icon-volume:active .jw-slider-volume .jw-knob{box-shadow:0 0 26px rgba(0,0,0,.2),0 0 10px rgba(0,0,0,.4),0 0 0 6px rgba(255,255,255,.2)}.jw-slider-horizontal,.jw-slider-vertical{display:flex}.jw-slider-horizontal .jw-slider-container{height:5px;width:100%}.jw-slider-horizontal .jw-buffer,.jw-slider-horizontal .jw-cue,.jw-slider-horizontal .jw-knob,.jw-slider-horizontal .jw-progress,.jw-slider-horizontal .jw-rail{top:50%}.jw-slider-horizontal .jw-buffer,.jw-slider-horizontal .jw-cue,.jw-slider-horizontal .jw-progress,.jw-slider-horizontal .jw-rail{transform:translate(0,-50%)}.jw-slider-horizontal .jw-buffer,.jw-slider-horizontal .jw-progress,.jw-slider-horizontal .jw-rail{height:5px}.jw-slider-horizontal .jw-rail{width:100%}.jw-slider-vertical{align-items:center;flex-direction:column}.jw-slider-vertical .jw-slider-container{height:88px;width:5px}.jw-slider-vertical .jw-buffer,.jw-slider-vertical .jw-knob,.jw-slider-vertical .jw-progress,.jw-slider-vertical .jw-rail{left:50%}.jw-slider-vertical .jw-buffer,.jw-slider-vertical .jw-progress,.jw-slider-vertical .jw-rail{height:100%;width:5px;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translate(-50%,0);transition:transform 150ms ease-in-out;bottom:0}.jw-slider-vertical .jw-knob{transform:translate(-50%,50%)}.jw-slider-time.jw-tab-focus:focus .jw-rail{outline:solid 2px #4d90fe}.jw-horizontal-volume-container .jw-slider-volume,.jw-slider-time:not(.jw-chapter-slider-time){height:17px;width:100%;align-items:center;background:transparent none;padding:0 12px}.jw-slider-time .jw-cue{background-color:rgba(33,33,33,.8);cursor:pointer;position:absolute;width:6px}.jw-horizontal-volume-container,.jw-slider-time:not(.jw-chapter-slider-time){z-index:1;outline:0}.jw-horizontal-volume-container .jw-buffer,.jw-horizontal-volume-container .jw-cue,.jw-horizontal-volume-container .jw-progress,.jw-horizontal-volume-container .jw-rail,.jw-slider-time:not(.jw-chapter-slider-time) .jw-buffer,.jw-slider-time:not(.jw-chapter-slider-time) .jw-cue,.jw-slider-time:not(.jw-chapter-slider-time) .jw-progress,.jw-slider-time:not(.jw-chapter-slider-time) .jw-rail{-webkit-backface-visibility:hidden;backface-visibility:hidden;height:100%;transform:translate(0,-50%) scale(1,.6);transition:transform 150ms ease-in-out}.jw-flag-dragging .jw-horizontal-volume-container .jw-buffer,.jw-flag-dragging .jw-horizontal-volume-container .jw-cue,.jw-flag-dragging .jw-horizontal-volume-container .jw-progress,.jw-flag-dragging .jw-horizontal-volume-container .jw-rail,.jw-flag-dragging .jw-slider-time:not(.jw-chapter-slider-time) .jw-buffer,.jw-flag-dragging .jw-slider-time:not(.jw-chapter-slider-time) .jw-cue,.jw-flag-dragging .jw-slider-time:not(.jw-chapter-slider-time) .jw-progress,.jw-flag-dragging .jw-slider-time:not(.jw-chapter-slider-time) .jw-rail,.jw-flag-touch .jw-horizontal-volume-container .jw-buffer,.jw-flag-touch .jw-horizontal-volume-container .jw-cue,.jw-flag-touch .jw-horizontal-volume-container .jw-progress,.jw-flag-touch .jw-horizontal-volume-container .jw-rail,.jw-flag-touch .jw-slider-time:not(.jw-chapter-slider-time) .jw-buffer,.jw-flag-touch .jw-slider-time:not(.jw-chapter-slider-time) .jw-cue,.jw-flag-touch .jw-slider-time:not(.jw-chapter-slider-time) .jw-progress,.jw-flag-touch .jw-slider-time:not(.jw-chapter-slider-time) .jw-rail,.jw-horizontal-volume-container:focus .jw-buffer,.jw-horizontal-volume-container:focus .jw-cue,.jw-horizontal-volume-container:focus .jw-progress,.jw-horizontal-volume-container:focus .jw-rail,.jw-horizontal-volume-container:hover .jw-buffer,.jw-horizontal-volume-container:hover .jw-cue,.jw-horizontal-volume-container:hover .jw-progress,.jw-horizontal-volume-container:hover .jw-rail,.jw-slider-time:not(.jw-chapter-slider-time):focus .jw-buffer,.jw-slider-time:not(.jw-chapter-slider-time):focus .jw-cue,.jw-slider-time:not(.jw-chapter-slider-time):focus .jw-progress,.jw-slider-time:not(.jw-chapter-slider-time):focus .jw-rail,.jw-slider-time:not(.jw-chapter-slider-time):hover .jw-buffer,.jw-slider-time:not(.jw-chapter-slider-time):hover .jw-cue,.jw-slider-time:not(.jw-chapter-slider-time):hover .jw-progress,.jw-slider-time:not(.jw-chapter-slider-time):hover .jw-rail{transform:translate(0,-50%) scale(1,1)}.jw-horizontal-volume-container:focus .jw-knob,.jw-horizontal-volume-container:hover .jw-knob,.jw-slider-time:not(.jw-chapter-slider-time):focus .jw-knob,.jw-slider-time:not(.jw-chapter-slider-time):hover .jw-knob{transform:translate(-50%,-50%) scale(1)}.jw-horizontal-volume-container .jw-rail,.jw-slider-time:not(.jw-chapter-slider-time) .jw-rail{background-color:rgba(255,255,255,.2)}.jw-horizontal-volume-container .jw-buffer,.jw-slider-time:not(.jw-chapter-slider-time) .jw-buffer{background-color:rgba(255,255,255,.4)}.jw-flag-touch .jw-horizontal-volume-container::before,.jw-flag-touch .jw-slider-time:not(.jw-chapter-slider-time)::before{height:44px;width:100%;content:"";position:absolute;display:block;bottom:calc(100% - 17px);left:0}.jw-breakpoint-0.jw-flag-touch .jw-horizontal-volume-container::before,.jw-breakpoint-0.jw-flag-touch .jw-slider-time:not(.jw-chapter-slider-time)::before{height:34px}.jw-horizontal-volume-container.jw-tab-focus:focus .jw-rail,.jw-slider-time:not(.jw-chapter-slider-time).jw-tab-focus:focus .jw-rail{outline:solid 2px #4d90fe}.jw-flag-horizontal-slider .jw-overlay{display:none}.jw-flag-audio-player .jw-flag-horizontal-slider~.jw-horizontal-volume-container,.jwplayer:not(.jw-flag-small-player) .jw-flag-horizontal-slider~.jw-horizontal-volume-container{display:flex;transition:width .3s cubic-bezier(0,.25,.25,1);width:0}.jw-flag-audio-player .jw-flag-horizontal-slider~.jw-horizontal-volume-container.jw-open,.jwplayer:not(.jw-flag-small-player) .jw-flag-horizontal-slider~.jw-horizontal-volume-container.jw-open{width:140px}.jw-flag-audio-player .jw-flag-horizontal-slider~.jw-horizontal-volume-container.jw-open .jw-slider-volume,.jwplayer:not(.jw-flag-small-player) .jw-flag-horizontal-slider~.jw-horizontal-volume-container.jw-open .jw-slider-volume{padding-right:12px;opacity:1}.jw-flag-audio-player .jw-flag-horizontal-slider~.jw-horizontal-volume-container .jw-slider-volume,.jwplayer:not(.jw-flag-small-player) .jw-flag-horizontal-slider~.jw-horizontal-volume-container .jw-slider-volume{transition:opacity .3s;opacity:0}.jw-flag-audio-player .jw-flag-horizontal-slider~.jw-horizontal-volume-container .jw-slider-volume .jw-knob,.jwplayer:not(.jw-flag-small-player) .jw-flag-horizontal-slider~.jw-horizontal-volume-container .jw-slider-volume .jw-knob{transform:translate(-50%,-50%)}.jw-flag-audio-player .jw-button-container .jw-icon,.jwplayer:not(.jw-flag-small-player) .jw-button-container .jw-icon{flex:0 0 auto}.jw-breakpoint--1:not(.jw-flag-audio-player) .jw-slider-time{height:17px;padding:0}.jw-breakpoint--1:not(.jw-flag-audio-player) .jw-slider-time .jw-slider-container{height:10px}.jw-breakpoint--1:not(.jw-flag-audio-player) .jw-slider-time .jw-knob{border-radius:0;border:1px solid rgba(0,0,0,.75);height:12px;width:10px}.jw-breakpoint-0 .jw-slider-time{height:11px}.jw-horizontal-volume-container{display:none}.jw-slider-horizontal.jw-chapter-slider-time{height:16px;width:100%;align-items:center;background:transparent none;padding:0 12px;outline:0}.jw-slider-horizontal.jw-chapter-slider-time .jw-old-buffer,.jw-slider-horizontal.jw-chapter-slider-time .jw-old-progress,.jw-slider-horizontal.jw-chapter-slider-time .jw-old-rail{position:absolute;cursor:pointer}.jw-slider-horizontal.jw-chapter-slider-time .jw-old-rail{width:100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;height:100%;display:flex;background-color:rgba(0,0,0,0)}.jw-slider-horizontal.jw-chapter-slider-time .jw-old-buffer,.jw-slider-horizontal.jw-chapter-slider-time .jw-old-progress{opacity:0;pointer-events:none}.jw-slider-horizontal.jw-chapter-slider-time .jw-cue{width:3px;height:100%}.jw-slider-horizontal.jw-chapter-slider-time .jw-slider-container{z-index:1;height:100%}.jw-slider-horizontal.jw-chapter-slider-time .jw-slider-container:hover .jw-knob{transform:translate(-50%,-50%) scale(1)}.jw-slider-horizontal.jw-chapter-slider-time .jw-slider-container .jw-horizontal-volume-container{display:none}.jw-slider-horizontal.jw-chapter-slider-time .jw-slider-container .jw-timesegment{position:relative;flex:0 0 0px;height:100%}.jw-slider-horizontal.jw-chapter-slider-time .jw-slider-container .jw-timesegment:hover .jw-timesegment-resetter{transform:translate(0,-50%) scale(1,1)}.jw-slider-horizontal.jw-chapter-slider-time .jw-slider-container .jw-timesegment:hover .jw-timesegment-background{background-color:rgba(255,255,255,.49)}.jw-slider-horizontal.jw-chapter-slider-time .jw-slider-container .jw-timesegment:hover .jw-timesegment-buffered{background-color:rgba(0,0,0,0)}.jw-slider-horizontal.jw-chapter-slider-time .jw-slider-container .jw-timesegment-resetter{height:5px;width:100%;top:50%;position:relative;transform:translate(0,-50%) scale(1,.6)}.jw-slider-horizontal.jw-chapter-slider-time .jw-slider-container .jw-timesegment-container{height:100%;position:relative}.jw-slider-horizontal.jw-chapter-slider-time .jw-slider-container .jw-timesegment-bar{height:100%;position:absolute}.jw-slider-horizontal.jw-chapter-slider-time .jw-slider-container .jw-timesegment-background{width:100%;background-color:rgba(255,255,255,.3)}.jw-slider-horizontal.jw-chapter-slider-time .jw-slider-container .jw-timesegment-buffered{width:0%;background-color:rgba(255,255,255,.3)}.jw-slider-horizontal.jw-chapter-slider-time .jw-slider-container .jw-timesegment-progress{width:0%;background-color:#f2f2f2}.jw-flag-touch .jw-slider-horizontal.jw-chapter-slider-time .jw-slider-container::before{height:44px;width:100%;content:"";position:absolute;display:block;bottom:calc(100% - 17px);left:0}.jw-breakpoint-0.jw-flag-touch .jw-slider-horizontal.jw-chapter-slider-time::before{height:34px}.jw-flag-dragging .jw-slider-horizontal.jw-chapter-slider-time .jw-timesegment-resetter,.jw-flag-touch .jw-slider-horizontal.jw-chapter-slider-time .jw-timesegment-resetter{transform:translate(0,-50%) scale(1,1)}.jw-slider-horizontal.jw-chapter-slider-time:focus .jw-knob,.jw-slider-horizontal.jw-chapter-slider-time:hover .jw-knob{transform:translate(-50%,-50%) scale(1)}.jw-slider-horizontal.jw-chapter-slider-time.jw-tab-focus:focus .jw-old-rail{outline:solid 2px #4d90fe}.jw-breakpoint--1:not(.jw-flag-audio-player) .jw-slider-horizontal.jw-chapter-slider-time .jw-slider-container{height:100%}.jw-breakpoint--1:not(.jw-flag-audio-player) .jw-slider-horizontal.jw-chapter-slider-time .jw-timesegment-resetter{height:10px}.jw-breakpoint--1:not(.jw-flag-audio-player) .jw-slider-horizontal.jw-chapter-slider-time .jw-knob{border-radius:0;border:1px solid rgba(0,0,0,.75);height:12px;width:10px}.jw-breakpoint-0 .jw-slider-horizontal.jw-chapter-slider-time{height:11px}.jw-breakpoint-7:not(.jw-flag-audio-player) .jw-controlbar .jw-slider-horizontal.jw-chapter-slider-time .jw-slider-container{height:100%}.jw-breakpoint-7:not(.jw-flag-audio-player) .jw-controlbar .jw-slider-horizontal.jw-chapter-slider-time .jw-timesegment-resetter{height:10px}.jw-modal{width:284px}.jw-breakpoint-5 .jw-modal,.jw-breakpoint-6 .jw-modal,.jw-breakpoint-7 .jw-modal{height:232px}.jw-breakpoint-3 .jw-modal,.jw-breakpoint-4 .jw-modal{height:192px}.jw-breakpoint-2 .jw-modal,.jw-flag-small-player .jw-modal{bottom:0;right:0;height:100%;width:100%;max-height:none;max-width:none;z-index:2}.jwplayer .jw-rightclick{display:none;position:absolute;white-space:nowrap}.jwplayer .jw-rightclick.jw-open{display:block}.jwplayer .jw-rightclick .jw-rightclick-list{border-radius:1px;list-style:none;margin:0;padding:0}.jwplayer .jw-rightclick .jw-rightclick-list .jw-rightclick-item{background-color:rgba(0,0,0,.8);border-bottom:1px solid #444;margin:0}.jwplayer .jw-rightclick .jw-rightclick-list .jw-rightclick-item .jw-rightclick-logo{color:#fff;display:inline-flex;padding:0 10px 0 0;vertical-align:middle}.jwplayer .jw-rightclick .jw-rightclick-list .jw-rightclick-item .jw-rightclick-logo .jw-svg-icon{height:20px;width:20px}.jwplayer .jw-rightclick .jw-rightclick-list .jw-rightclick-item .jw-rightclick-link{border:none;color:#fff;display:block;font-size:11px;font-weight:400;line-height:1em;padding:15px 23px;text-align:start;text-decoration:none;width:100%}.jwplayer .jw-rightclick .jw-rightclick-list .jw-rightclick-item:last-child{border-bottom:none}.jwplayer .jw-rightclick .jw-rightclick-list .jw-rightclick-item:hover{cursor:pointer}.jwplayer .jw-rightclick .jw-rightclick-list .jw-featured{vertical-align:middle}.jwplayer .jw-rightclick .jw-rightclick-list .jw-featured .jw-rightclick-link{color:#fff}.jwplayer .jw-rightclick .jw-rightclick-list .jw-featured .jw-rightclick-link span{color:#fff;font-size:12px}.jwplayer .jw-rightclick .jw-rightclick-link{border:none;background-color:transparent;outline:0;cursor:pointer}.jw-icon-tooltip.jw-open .jw-overlay{opacity:1;pointer-events:auto;transition-delay:0s}.jw-icon-tooltip.jw-open .jw-overlay:focus{outline:0}.jw-icon-tooltip.jw-open .jw-overlay:focus.jw-tab-focus{outline:solid 2px #4d90fe}.jw-slider-time .jw-overlay:before{height:1em;top:auto}.jw-slider-time .jw-icon-tooltip.jw-open .jw-overlay{pointer-events:none}.jw-volume-tip{padding:13px 0 26px}.jw-controlbar .jw-tooltip,.jw-settings-menu .jw-tooltip,.jw-time-tip{height:auto;width:100%;box-shadow:0 0 10px rgba(0,0,0,.4);color:#fff;display:block;margin:0 0 14px;pointer-events:none;position:relative;z-index:0;background-color:#fff}.jw-controlbar .jw-tooltip::after,.jw-settings-menu .jw-tooltip::after,.jw-time-tip::after{top:100%;position:absolute;left:50%;height:14px;width:14px;border-radius:1px;background-color:currentColor;transform-origin:75% 50%;transform:translate(-50%,-50%) rotate(45deg);z-index:-1}.jw-controlbar .jw-tooltip .jw-text,.jw-settings-menu .jw-tooltip .jw-text,.jw-time-tip .jw-text{background-color:#fff;border-radius:1px;color:#000;font-size:10px;height:auto;line-height:1;padding:7px 10px;display:inline-block;min-width:100%;vertical-align:middle;min-height:2.4em}.jw-controlbar .jw-overlay{position:absolute;bottom:100%;left:50%;margin:0;min-height:44px;min-width:44px;opacity:0;pointer-events:none;transition:150ms cubic-bezier(0,.25,.25,1);transition-property:opacity,visibility;transition-delay:0s,150ms;transform:translate(-50%,0);width:100%;z-index:1}.jw-controlbar .jw-overlay .jw-contents{position:relative}.jw-controlbar .jw-option{position:relative;white-space:nowrap;cursor:pointer;list-style:none;height:1.5em;font-family:inherit;line-height:1.5em;padding:0 .5em;font-size:.8em;margin:0}.jw-controlbar .jw-option::before{padding-right:.125em}.jw-controlbar .jw-tooltip,.jw-settings-menu .jw-tooltip{position:absolute;bottom:100%;left:50%;opacity:0;transform:translate(-50%,0);transition:.1s 0s cubic-bezier(0,.25,.25,1);transition-property:opacity,transform,visibility;visibility:hidden;white-space:nowrap;width:auto;z-index:1}.jw-controlbar .jw-tooltip.jw-open,.jw-settings-menu .jw-tooltip.jw-open{opacity:1;transform:translate(-50%,-10px);transition-duration:150ms;transition-delay:.5s,0s,.5s;visibility:visible}.jw-controlbar .jw-tooltip.jw-tooltip-fullscreen,.jw-settings-menu .jw-tooltip.jw-tooltip-fullscreen{left:auto;right:0;transform:translate(0,0)}.jw-controlbar .jw-tooltip.jw-tooltip-fullscreen.jw-open,.jw-settings-menu .jw-tooltip.jw-tooltip-fullscreen.jw-open{transform:translate(0,-10px)}.jw-controlbar .jw-tooltip.jw-tooltip-fullscreen::after,.jw-settings-menu .jw-tooltip.jw-tooltip-fullscreen::after{left:auto;right:9px}.jw-tooltip-time{height:auto;width:0;bottom:100%;line-height:normal;padding:0;pointer-events:none;-webkit-user-select:none;user-select:none}.jw-tooltip-time .jw-overlay{bottom:0;min-height:0;width:auto}.jw-tooltip{bottom:57px;display:none;position:absolute}.jw-tooltip .jw-text{height:100%;white-space:nowrap;text-overflow:ellipsis;direction:unset;max-width:246px;overflow:hidden}.jw-flag-audio-player .jw-tooltip{display:none}.jw-flag-small-player .jw-time-thumb{display:none}.jw-chapter-slider-time .jw-tooltip-time .jw-overlay:before{height:1em;top:auto}.jw-chapter-slider-time .jw-tooltip-time .jw-icon-tooltip.jw-open .jw-overlay{pointer-events:none}.jwplayer .jw-shortcuts-tooltip{top:50%;position:absolute;left:50%;background:rgba(38,38,38,.8);transform:translate(-50%,-50%);display:none;color:#fff;pointer-events:all;-webkit-user-select:text;user-select:text;overflow:hidden;flex-direction:column;z-index:1}.jwplayer .jw-shortcuts-tooltip.jw-open{display:flex}.jwplayer .jw-shortcuts-tooltip .jw-shortcuts-close{flex:0 0 auto;margin:5px 5px 5px auto}.jwplayer .jw-shortcuts-tooltip .jw-shortcuts-container{display:flex;flex:1 1 auto;flex-flow:column;font-size:12px;margin:0 20px 20px;overflow-y:auto;padding:5px}.jwplayer .jw-shortcuts-tooltip .jw-shortcuts-container::-webkit-scrollbar{background-color:transparent;width:6px}.jwplayer .jw-shortcuts-tooltip .jw-shortcuts-container::-webkit-scrollbar-thumb{background-color:#fff;border:1px solid #262626;border-radius:6px}.jwplayer .jw-shortcuts-tooltip .jw-shortcuts-container .jw-shortcuts-title{font-weight:700}.jwplayer .jw-shortcuts-tooltip .jw-shortcuts-container .jw-shortcuts-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:10px}.jwplayer .jw-shortcuts-tooltip .jw-shortcuts-container .jw-shortcuts-tooltip-list{display:flex;max-width:340px;margin:0 10px}.jwplayer .jw-shortcuts-tooltip .jw-shortcuts-container .jw-shortcuts-tooltip-list .jw-shortcuts-tooltip-descriptions{width:100%}.jwplayer .jw-shortcuts-tooltip .jw-shortcuts-container .jw-shortcuts-tooltip-list .jw-shortcuts-row{display:flex;align-items:center;justify-content:space-between;margin:10px 0;width:100%}.jwplayer .jw-shortcuts-tooltip .jw-shortcuts-container .jw-shortcuts-tooltip-list .jw-shortcuts-row .jw-shortcuts-description{margin-right:10px;max-width:70%}.jwplayer .jw-shortcuts-tooltip .jw-shortcuts-container .jw-shortcuts-tooltip-list .jw-shortcuts-row .jw-shortcuts-key{background:#fefefe;color:#333;overflow:hidden;padding:7px 10px;text-overflow:ellipsis;white-space:nowrap}.jw-skip{color:rgba(255,255,255,.8);cursor:default;position:absolute;display:flex;right:.75em;bottom:56px;padding:.5em;border:1px solid #333;background-color:#000;align-items:center;height:2em}.jw-skip.jw-tab-focus:focus{outline:solid 2px #4d90fe}.jw-skip.jw-skippable{cursor:pointer;padding:.25em .75em}.jw-skip.jw-skippable:hover{cursor:pointer;color:#fff}.jw-skip.jw-skippable .jw-skip-icon{display:inline;height:24px;width:24px;margin:0}.jw-breakpoint-7 .jw-skip{padding:1.35em 1em;bottom:130px}.jw-breakpoint-7 .jw-skip .jw-text{font-size:1em;font-weight:400}.jw-breakpoint-7 .jw-skip .jw-icon-inline{height:30px;width:30px}.jw-breakpoint-7 .jw-skip .jw-icon-inline .jw-svg-icon{height:30px;width:30px}.jw-skip .jw-skip-icon{display:none;margin-left:-.75em;padding:0 .5em;pointer-events:none}.jw-skip .jw-skip-icon .jw-svg-icon-next{display:block;padding:0}.jw-skip .jw-skip-icon,.jw-skip .jw-text{vertical-align:middle;font-size:.7em}.jw-skip .jw-text{font-weight:700}.jw-cast{background-size:cover;display:none;height:100%;position:relative;width:100%}.jw-cast-container{background:linear-gradient(180deg,rgba(25,25,25,.75),rgba(25,25,25,.25),rgba(25,25,25,0));left:0;padding:20px 20px 80px;position:absolute;top:0;width:100%}.jw-cast-text{color:#fff;font-size:1.6em}.jw-breakpoint--1 .jw-cast-text,.jw-breakpoint-0 .jw-cast-text{font-size:1.15em}.jw-breakpoint-1 .jw-cast-text,.jw-breakpoint-2 .jw-cast-text,.jw-breakpoint-3 .jw-cast-text{font-size:1.3em}.jw-nextup-container{position:absolute;bottom:66px;left:0;background-color:transparent;cursor:pointer;margin:0 auto;padding:12px;pointer-events:none;right:0;text-align:right;visibility:hidden;width:100%}.jw-info-open .jw-nextup-container,.jw-settings-open .jw-nextup-container{display:none}.jw-breakpoint-7 .jw-nextup-container{padding:60px}.jw-flag-small-player .jw-nextup-container{padding:0 12px 0 0}.jw-flag-small-player .jw-nextup-container .jw-nextup-close,.jw-flag-small-player .jw-nextup-container .jw-nextup-duration,.jw-flag-small-player .jw-nextup-container .jw-nextup-title{display:none}.jw-flag-small-player .jw-nextup-container .jw-nextup-tooltip{height:30px}.jw-flag-small-player .jw-nextup-container .jw-nextup-header{font-size:12px}.jw-flag-small-player .jw-nextup-container .jw-nextup-body{justify-content:center;align-items:center;padding:.75em .3em}.jw-flag-small-player .jw-nextup-container .jw-nextup-thumbnail{width:50%}.jw-flag-small-player .jw-nextup-container .jw-nextup{max-width:65px}.jw-flag-small-player .jw-nextup-container .jw-nextup.jw-nextup-thumbnail-visible{max-width:120px}.jw-nextup{background:rgba(38,38,38,.8);border-radius:0;box-shadow:0 0 10px rgba(0,0,0,.5);color:rgba(255,255,255,.8);display:inline-block;max-width:280px;overflow:hidden;opacity:0;position:relative;width:64%;pointer-events:all;transform:translate(0,-5px);transition:150ms cubic-bezier(0,.25,.25,1);transition-property:opacity,transform;transition-delay:0s}.jw-nextup:hover .jw-nextup-tooltip{color:#fff}.jw-nextup.jw-nextup-thumbnail-visible{max-width:400px}.jw-nextup.jw-nextup-thumbnail-visible .jw-nextup-thumbnail{display:block}.jw-nextup-container-visible{visibility:visible}.jw-nextup-container-visible .jw-nextup{opacity:1;transform:translate(0,0);transition-delay:0s,0s,150ms}.jw-nextup-tooltip{display:flex;height:80px}.jw-nextup-thumbnail{width:120px;background-position:center;background-size:cover;flex:0 0 auto;display:none}.jw-nextup-body{flex:1 1 auto;overflow:hidden;padding:.75em .875em;display:flex;flex-flow:column wrap;justify-content:space-between}.jw-nextup-header,.jw-nextup-title{font-size:14px;line-height:1.35}.jw-nextup-header{font-weight:700}.jw-nextup-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.jw-nextup-duration{align-self:flex-end;text-align:right;font-size:12px}.jw-nextup-close{height:24px;width:24px;border:none;color:rgba(255,255,255,.8);cursor:pointer;margin:6px;visibility:hidden}.jw-nextup-close:hover{color:#fff}.jw-nextup-sticky .jw-nextup-close{visibility:visible}.jw-nextup-firefox-pip-fix{background:#262626}.jw-countdown-container{position:absolute;top:28px;right:28px;background-color:rgba(33,33,33,.8);cursor:none;margin:0 auto;padding:12px;pointer-events:none;text-align:center;visibility:hidden}.jw-countdown{color:#fff}.jw-countdown-show{visibility:visible}.jw-autostart-mute{position:absolute;bottom:0;right:12px;height:44px;width:44px;background-color:rgba(33,33,33,.4);padding:5px 4px 5px 6px;display:none}.jwplayer.jw-flag-autostart:not(.jw-flag-media-audio) .jw-nextup{display:none}.jw-settings-menu{position:absolute;bottom:57px;right:12px;align-items:flex-start;background-color:#262626;display:none;flex-flow:column nowrap;max-width:284px;pointer-events:auto}.jw-settings-open .jw-settings-menu{display:flex}.jw-breakpoint-7 .jw-settings-menu{bottom:130px;right:60px;max-height:none;max-width:none;height:35%;width:25%;min-height:200px}.jw-breakpoint-7 .jw-settings-menu .jw-settings-topbar:not(.jw-nested-menu-open) .jw-icon-inline{height:60px;width:60px}.jw-breakpoint-7 .jw-settings-menu .jw-settings-topbar:not(.jw-nested-menu-open) .jw-icon-inline .jw-svg-icon{height:30px;width:30px}.jw-breakpoint-7 .jw-settings-menu .jw-settings-topbar:not(.jw-nested-menu-open) .jw-icon-inline .jw-tooltip .jw-text{font-size:1em}.jw-breakpoint-7 .jw-settings-menu .jw-settings-back{min-width:60px}.jw-breakpoint-5 .jw-settings-menu,.jw-breakpoint-6 .jw-settings-menu{height:232px;width:284px;max-height:232px}.jw-breakpoint-3 .jw-settings-menu,.jw-breakpoint-4 .jw-settings-menu{height:192px;width:284px;max-height:192px}.jw-breakpoint-2 .jw-settings-menu{height:179px;width:284px;max-height:179px}.jw-flag-small-player .jw-settings-menu{max-width:none}.jw-settings-menu .jw-icon.jw-button-color::after{height:100%;width:24px;box-shadow:inset 0 -3px 0 -1px currentColor;margin:auto;opacity:0;transition:opacity 150ms cubic-bezier(0,.25,.25,1)}.jw-settings-menu .jw-icon.jw-button-color[aria-expanded=true]::after{opacity:1}.jw-settings-menu .jw-settings-reset{text-decoration:underline}.jw-settings-topbar{align-items:center;background-color:rgba(0,0,0,.4);display:flex;flex:0 0 auto;padding:3px 5px 0;width:100%}.jw-settings-topbar.jw-nested-menu-open{padding:0}.jw-settings-topbar.jw-nested-menu-open .jw-icon:not(.jw-settings-close):not(.jw-settings-back){display:none}.jw-settings-topbar.jw-nested-menu-open .jw-svg-icon-close{width:20px}.jw-settings-topbar.jw-nested-menu-open .jw-svg-icon-arrow-left{height:12px}.jw-settings-topbar.jw-nested-menu-open .jw-settings-topbar-text{display:block;outline:0}.jw-settings-topbar .jw-settings-back{min-width:44px}.jw-settings-topbar .jw-settings-topbar-buttons{display:inherit;width:100%;height:100%}.jw-settings-topbar .jw-settings-topbar-text{display:none;color:#fff;font-size:13px;width:100%}.jw-settings-topbar .jw-settings-close{margin-left:auto}.jw-settings-submenu{display:none;flex:1 1 auto;overflow-y:auto;padding:8px 20px 0 5px}.jw-settings-submenu::-webkit-scrollbar{background-color:transparent;width:6px}.jw-settings-submenu::-webkit-scrollbar-thumb{background-color:#fff;border:1px solid #262626;border-radius:6px}.jw-settings-submenu.jw-settings-submenu-active{display:block}.jw-settings-submenu .jw-submenu-topbar{box-shadow:0 2px 9px 0 #1d1d1d;background-color:#2f2d2d;margin:-8px -20px 0 -5px}.jw-settings-submenu .jw-submenu-topbar .jw-settings-content-item{cursor:pointer;text-align:right;padding-right:15px;text-decoration:underline}.jw-settings-submenu .jw-settings-value-wrapper{float:right;display:flex;align-items:center}.jw-settings-submenu .jw-settings-value-wrapper .jw-settings-content-item-arrow{display:flex}.jw-settings-submenu .jw-settings-value-wrapper .jw-svg-icon-arrow-right{width:8px;margin-left:5px;height:12px}.jw-breakpoint-7 .jw-settings-submenu .jw-settings-content-item{font-size:1em;padding:11px 15px 11px 30px}.jw-breakpoint-7 .jw-settings-submenu .jw-settings-content-item .jw-settings-item-active::before{justify-content:flex-end}.jw-breakpoint-7 .jw-settings-submenu .jw-settings-content-item .jw-auto-label{font-size:.85em;padding-left:10px}.jw-flag-touch .jw-settings-submenu{overflow-y:scroll;-webkit-overflow-scrolling:touch}.jw-auto-label{font-size:10px;font-weight:initial;opacity:.75;padding-left:5px}.jw-settings-content-item{position:relative;color:rgba(255,255,255,.8);cursor:pointer;font-size:12px;line-height:1;padding:7px 0 7px 15px;width:100%;text-align:left;outline:0}.jw-settings-content-item:hover{color:#fff}.jw-settings-content-item:focus{font-weight:700}.jw-flag-small-player .jw-settings-content-item{line-height:1.75}.jw-settings-content-item.jw-tab-focus:focus{border:solid 2px #4d90fe}.jw-settings-item-active{font-weight:700;position:relative}.jw-settings-item-active::before{height:100%;width:1em;align-items:center;content:"\\2022";display:inline-flex;justify-content:center}.jw-breakpoint-2 .jw-settings-open .jw-display-container,.jw-flag-small-player .jw-settings-open .jw-display-container,.jw-flag-touch .jw-settings-open .jw-display-container{display:none}.jw-breakpoint-2 .jw-settings-open.jw-controls,.jw-flag-small-player .jw-settings-open.jw-controls,.jw-flag-touch .jw-settings-open.jw-controls{z-index:1}.jw-flag-small-player .jw-settings-open .jw-controlbar{display:none}.jw-settings-open .jw-icon-settings::after{opacity:1}.jw-settings-open .jw-tooltip-settings{display:none}.jw-sharing-link{cursor:pointer}.jw-shortcuts-container .jw-switch{position:relative;display:flex;align-items:center;transition:ease-out .15s;transition-property:opacity,background;border-radius:18px;width:80px;height:20px;padding:10px;background:rgba(80,80,80,.8);cursor:pointer;font-size:inherit;vertical-align:middle;outline:0}.jw-shortcuts-container .jw-switch.jw-tab-focus{border:solid 2px #4d90fe}.jw-shortcuts-container .jw-switch .jw-switch-knob{position:absolute;left:1px;transition:ease-out .15s;box-shadow:0 0 10px rgba(0,0,0,.4);border-radius:13px;width:15px;height:15px;background:#fefefe}.jw-shortcuts-container .jw-switch .jw-switch-disabled,.jw-shortcuts-container .jw-switch .jw-switch-enabled{position:absolute;transition:inherit;color:#fefefe}.jw-shortcuts-container .jw-switch .jw-switch-disabled{right:8px}.jw-shortcuts-container .jw-switch .jw-switch-enabled{left:8px;opacity:0}.jw-shortcuts-container .jw-switch[aria-checked=true]{background:#475470}.jw-shortcuts-container .jw-switch[aria-checked=true] .jw-switch-disabled{opacity:0}.jw-shortcuts-container .jw-switch[aria-checked=true] .jw-switch-enabled{opacity:1}.jw-shortcuts-container .jw-switch[aria-checked=true] .jw-switch-knob{left:60px}.jw-idle-icon-text{display:none;line-height:1;position:absolute;text-align:center;text-indent:.35em;top:100%;white-space:nowrap;left:50%;transform:translateX(-50%)}.jw-idle-label{border-radius:50%;color:#fff;filter:drop-shadow(1px 1px 5px rgba(12, 26, 71, .25));font:400 16px/1 Arial,Helvetica,sans-serif;position:relative;transition:background-color 150ms cubic-bezier(0,.25,.25,1);transition-property:background-color,filter;-webkit-font-smoothing:antialiased}.jw-state-idle .jw-icon-display.jw-idle-label .jw-idle-icon-text{display:block}.jw-state-idle .jw-icon-display.jw-idle-label .jw-svg-icon-play{transform:scale(.7,.7)}.jw-breakpoint--1.jw-state-idle .jw-icon-display.jw-idle-label,.jw-breakpoint-0.jw-state-idle .jw-icon-display.jw-idle-label{font-size:12px}.jw-video-thumbnail-container{position:relative;overflow:hidden}.jw-video-thumbnail-container:not(.jw-related-shelf-item-image){height:100%;width:100%}.jw-video-thumbnail-container.jw-video-thumbnail-generated{position:absolute;top:0;left:0}.jw-related-item-content:hover .jw-video-thumbnail-container,.jw-related-shelf-item:hover .jw-video-thumbnail-container,.jw-video-thumbnail-container:hover{cursor:pointer}.jw-related-item-content:hover .jw-video-thumbnail-container .jw-video-thumbnail:not(.jw-video-thumbnail-completed),.jw-related-shelf-item:hover .jw-video-thumbnail-container .jw-video-thumbnail:not(.jw-video-thumbnail-completed),.jw-video-thumbnail-container:hover .jw-video-thumbnail:not(.jw-video-thumbnail-completed){opacity:1}.jw-video-thumbnail-container .jw-video-thumbnail{position:absolute;top:50%;left:50%;bottom:unset;transform:translate(-50%,-50%);width:100%;height:auto;min-width:100%;min-height:100%;opacity:0;transition:opacity .3s ease;object-fit:cover;background:#000}.jw-related-item-next-up .jw-video-thumbnail-container .jw-video-thumbnail{height:100%;width:auto}.jw-video-thumbnail-container .jw-video-thumbnail.jw-video-thumbnail-visible:not(.jw-video-thumbnail-completed){opacity:1}.jw-video-thumbnail-container .jw-video-thumbnail.jw-video-thumbnail-completed{opacity:0}.jw-video-thumbnail-container .jw-video-thumbnail~.jw-svg-icon-play{display:none}.jw-video-thumbnail-container .jw-video-thumbnail+.jw-related-shelf-item-aspect{pointer-events:none}.jw-video-thumbnail-container .jw-video-thumbnail+.jw-related-item-poster-content{pointer-events:none}.jw-state-idle:not(.jw-flag-cast-available) .jw-display{padding:0}.jw-state-idle .jw-controls{background:rgba(0,0,0,.4)}.jw-state-idle.jw-flag-cardboard-available .jw-controlbar .jw-icon:not(.jw-icon-cardboard):not(.jw-icon-cast):not(.jw-icon-airplay),.jw-state-idle.jw-flag-cardboard-available .jw-controlbar .jw-slider-time,.jw-state-idle.jw-flag-cast-available:not(.jw-flag-audio-player) .jw-controlbar .jw-icon:not(.jw-icon-cardboard):not(.jw-icon-cast):not(.jw-icon-airplay),.jw-state-idle.jw-flag-cast-available:not(.jw-flag-audio-player) .jw-controlbar .jw-slider-time{display:none}.jwplayer.jw-state-buffering .jw-display-icon-display .jw-icon:focus{border:none}.jwplayer.jw-state-buffering .jw-display-icon-display .jw-icon .jw-svg-icon-buffer{animation:jw-spin 2s linear infinite;display:block}@keyframes jw-spin{100%{transform:rotate(360deg)}}.jwplayer.jw-state-buffering .jw-icon-playback .jw-svg-icon-play{display:none}.jwplayer.jw-state-buffering .jw-icon-display .jw-svg-icon-pause{display:none}.jwplayer.jw-state-playing .jw-display .jw-icon-display .jw-svg-icon-play,.jwplayer.jw-state-playing .jw-icon-playback .jw-svg-icon-play{display:none}.jwplayer.jw-state-playing .jw-display .jw-icon-display .jw-svg-icon-pause,.jwplayer.jw-state-playing .jw-icon-playback .jw-svg-icon-pause{display:block}.jwplayer.jw-state-playing.jw-flag-user-inactive:not(.jw-flag-audio-player):not(.jw-flag-casting):not(.jw-flag-media-audio) .jw-controls-backdrop{opacity:0}.jwplayer.jw-state-playing.jw-flag-user-inactive:not(.jw-flag-audio-player):not(.jw-flag-casting):not(.jw-flag-media-audio) .jw-logo-bottom-left,.jwplayer.jw-state-playing.jw-flag-user-inactive:not(.jw-flag-audio-player):not(.jw-flag-casting):not(.jw-flag-media-audio):not(.jw-flag-autostart) .jw-logo-bottom-right{bottom:0}.jwplayer .jw-icon-playback .jw-svg-icon-stop{display:none}.jwplayer.jw-state-complete .jw-svg-icon-pause,.jwplayer.jw-state-error .jw-svg-icon-pause,.jwplayer.jw-state-idle .jw-svg-icon-pause,.jwplayer.jw-state-paused .jw-svg-icon-pause{display:none}.jwplayer.jw-state-buffering .jw-icon-display .jw-svg-icon-play,.jwplayer.jw-state-complete .jw-icon-display .jw-svg-icon-play,.jwplayer.jw-state-error .jw-icon-display .jw-svg-icon-play{display:none}.jwplayer:not(.jw-state-buffering) .jw-svg-icon-buffer{display:none}.jwplayer:not(.jw-state-complete) .jw-svg-icon-replay{display:none}.jwplayer:not(.jw-state-error) .jw-svg-icon-error{display:none}.jwplayer.jw-state-complete .jw-display .jw-icon-display .jw-svg-icon-replay{display:block}.jwplayer.jw-state-complete .jw-display .jw-text{display:none}.jwplayer.jw-state-complete .jw-controls{background:rgba(0,0,0,.4);height:100%}.jw-state-idle .jw-icon-display .jw-svg-icon-pause,.jwplayer.jw-state-complete .jw-icon-playback .jw-svg-icon-pause,.jwplayer.jw-state-paused .jw-icon-display .jw-svg-icon-pause,.jwplayer.jw-state-paused .jw-icon-playback .jw-svg-icon-pause{display:none}.jw-state-idle .jw-display-icon-next,.jw-state-idle .jw-display-icon-rewind,.jwplayer.jw-state-buffering .jw-display-icon-next,.jwplayer.jw-state-buffering .jw-display-icon-rewind,.jwplayer.jw-state-complete .jw-display-icon-next,.jwplayer.jw-state-complete .jw-display-icon-rewind,body .jw-error .jw-display-icon-next,body .jw-error .jw-display-icon-rewind,body .jwplayer.jw-state-error .jw-display-icon-next,body .jwplayer.jw-state-error .jw-display-icon-rewind{display:none}body .jw-error .jw-icon-display,body .jwplayer.jw-state-error .jw-icon-display{cursor:default}body .jw-error .jw-icon-display .jw-svg-icon-error,body .jwplayer.jw-state-error .jw-icon-display .jw-svg-icon-error{display:block}body .jw-error .jw-icon-container{position:absolute;width:100%;height:100%;top:0;left:0;bottom:0;right:0}body .jwplayer.jw-state-error.jw-flag-audio-player .jw-preview{display:none}body .jwplayer.jw-state-error.jw-flag-audio-player .jw-title{padding-top:4px}body .jwplayer.jw-state-error.jw-flag-audio-player .jw-title-primary{width:auto;display:inline-block;padding-right:.5ch}body .jwplayer.jw-state-error.jw-flag-audio-player .jw-title-secondary{width:auto;display:inline-block;padding-left:0}.jwplayer.jw-state-idle:not(.jw-flag-audio-player):not(.jw-flag-cast-available):not(.jw-flag-cardboard-available) .jw-controlbar,body .jwplayer.jw-state-error .jw-controlbar{display:none}.jwplayer.jw-state-idle:not(.jw-flag-audio-player):not(.jw-flag-cast-available):not(.jw-flag-cardboard-available) .jw-settings-menu,body .jwplayer.jw-state-error .jw-settings-menu{height:100%;top:50%;left:50%;transform:translate(-50%,-50%)}.jwplayer.jw-state-idle:not(.jw-flag-audio-player):not(.jw-flag-cast-available):not(.jw-flag-cardboard-available) .jw-display,body .jwplayer.jw-state-error .jw-display{padding:0}.jwplayer.jw-state-idle:not(.jw-flag-audio-player):not(.jw-flag-cast-available):not(.jw-flag-cardboard-available) .jw-logo-bottom-left,.jwplayer.jw-state-idle:not(.jw-flag-audio-player):not(.jw-flag-cast-available):not(.jw-flag-cardboard-available) .jw-logo-bottom-right,body .jwplayer.jw-state-error .jw-logo-bottom-left,body .jwplayer.jw-state-error .jw-logo-bottom-right{bottom:0}.jwplayer.jw-state-playing.jw-flag-user-inactive .jw-display{visibility:hidden;pointer-events:none;opacity:0}.jwplayer.jw-state-paused:not(.jw-flag-touch):not(.jw-flag-small-player):not(.jw-flag-casting):not(.jw-flag-play-rejected) .jw-display,.jwplayer.jw-state-playing:not(.jw-flag-touch):not(.jw-flag-small-player):not(.jw-flag-casting) .jw-display{display:none}.jwplayer.jw-state-paused.jw-flag-play-rejected:not(.jw-flag-touch):not(.jw-flag-small-player):not(.jw-flag-casting) .jw-display-icon-next,.jwplayer.jw-state-paused.jw-flag-play-rejected:not(.jw-flag-touch):not(.jw-flag-small-player):not(.jw-flag-casting) .jw-display-icon-rewind{display:none}.jwplayer.jw-state-buffering .jw-display-icon-display .jw-text,.jwplayer.jw-state-complete .jw-display .jw-text{display:none}.jwplayer.jw-flag-casting:not(.jw-flag-audio-player) .jw-cast{display:block}.jwplayer.jw-flag-casting .jw-captions,.jwplayer.jw-flag-casting .jw-icon-audio-tracks,.jwplayer.jw-flag-casting .jw-icon-fullscreen,.jwplayer.jw-flag-casting .jw-icon-hd{display:none}.jwplayer.jw-flag-casting.jw-flag-airplay-casting .jw-icon-airplay{color:#fff}.jw-state-paused.jw-flag-casting:not(.jw-flag-audio-player) .jw-display,.jw-state-playing.jw-flag-casting:not(.jw-flag-audio-player) .jw-display{display:flex}.jwplayer.jw-flag-cast-available .jw-icon-airplay,.jwplayer.jw-flag-cast-available .jw-icon-cast{display:flex}.jwplayer.jw-flag-cardboard-available .jw-icon-cardboard{display:flex}.jwplayer.jw-flag-live .jw-display-icon-rewind{visibility:hidden}.jwplayer.jw-flag-live .jw-controlbar .jw-slider-time,.jwplayer.jw-flag-live .jw-controlbar .jw-text-countdown,.jwplayer.jw-flag-live .jw-controlbar .jw-text-duration,.jwplayer.jw-flag-live .jw-controlbar .jw-text-elapsed{display:none}.jwplayer.jw-flag-live .jw-controlbar .jw-text-alt{display:flex}.jwplayer.jw-flag-live .jw-controlbar .jw-overlay:after{display:none}.jwplayer.jw-flag-live .jw-nextup-container{bottom:44px}.jwplayer.jw-flag-live .jw-text-duration,.jwplayer.jw-flag-live .jw-text-elapsed{display:none}.jwplayer.jw-flag-live .jw-text-live{cursor:default}.jwplayer.jw-flag-live .jw-text-live:hover{color:rgba(255,255,255,.8)}.jwplayer.jw-flag-live.jw-state-buffering .jw-icon-playback .jw-svg-icon-stop,.jwplayer.jw-flag-live.jw-state-playing .jw-icon-playback .jw-svg-icon-stop{display:block}.jwplayer.jw-flag-live.jw-state-buffering .jw-icon-playback .jw-svg-icon-pause,.jwplayer.jw-flag-live.jw-state-playing .jw-icon-playback .jw-svg-icon-pause{display:none}.jw-text-live{height:24px;width:auto;align-items:center;border-radius:1px;color:rgba(255,255,255,.8);display:flex;font-size:12px;font-weight:700;margin-right:10px;padding:0 1ch;text-rendering:geometricPrecision;text-transform:uppercase;transition:150ms cubic-bezier(0,.25,.25,1);transition-property:box-shadow,color}.jw-text-live::before{height:8px;width:8px;background-color:currentColor;border-radius:50%;margin-right:6px;opacity:1;transition:opacity 150ms cubic-bezier(0,.25,.25,1)}.jw-text-live.jw-dvr-live{box-shadow:inset 0 0 0 2px currentColor}.jw-text-live.jw-dvr-live::before{opacity:.5}.jw-text-live.jw-dvr-live:hover{color:#fff}.jwplayer.jw-flag-controls-hidden .jw-logo.jw-hide{visibility:hidden;pointer-events:none;opacity:0}.jwplayer.jw-flag-controls-hidden:not(.jw-flag-casting) .jw-logo-top-right{top:0}.jwplayer.jw-flag-controls-hidden:not(.jw-flag-touch.jw-breakpoint-4):not(.jw-flag-touch.jw-breakpoint-5):not(.jw-flag-touch.jw-breakpoint-6):not(.jw-flag-touch.jw-breakpoint-7) .jw-nextup-container{transform:translateY(66px)}.jwplayer.jw-flag-controls-hidden.jw-flag-touch.jw-state-playing.jw-breakpoint-4 .jw-nextup-container,.jwplayer.jw-flag-controls-hidden.jw-flag-touch.jw-state-playing.jw-breakpoint-5 .jw-nextup-container,.jwplayer.jw-flag-controls-hidden.jw-flag-touch.jw-state-playing.jw-breakpoint-6 .jw-nextup-container,.jwplayer.jw-flag-controls-hidden.jw-flag-touch.jw-state-playing.jw-breakpoint-7 .jw-nextup-container{transform:translateY(4.25em)}.jw-flag-controls-hidden .jw-controlbar,.jw-flag-controls-hidden .jw-display{visibility:hidden;pointer-events:none;opacity:0;transition-delay:0s,250ms}.jw-flag-controls-hidden .jw-controls-backdrop{opacity:0}.jw-flag-controls-hidden .jw-logo{visibility:visible}.jwplayer.jw-flag-user-inactive:not(.jw-flag-media-audio).jw-state-playing .jw-logo.jw-hide{visibility:hidden;pointer-events:none;opacity:0}.jwplayer.jw-flag-user-inactive:not(.jw-flag-media-audio).jw-state-playing:not(.jw-flag-casting) .jw-logo-top-right{top:0}.jwplayer.jw-flag-user-inactive:not(.jw-flag-media-audio).jw-state-playing:not(.jw-flag-touch.jw-breakpoint-4):not(.jw-flag-touch.jw-breakpoint-5):not(.jw-flag-touch.jw-breakpoint-6):not(.jw-flag-touch.jw-breakpoint-7) .jw-nextup-container{transform:translateY(66px)}.jwplayer.jw-flag-user-inactive:not(.jw-flag-media-audio).jw-state-playing.jw-flag-touch.jw-state-playing.jw-breakpoint-4 .jw-nextup-container,.jwplayer.jw-flag-user-inactive:not(.jw-flag-media-audio).jw-state-playing.jw-flag-touch.jw-state-playing.jw-breakpoint-5 .jw-nextup-container,.jwplayer.jw-flag-user-inactive:not(.jw-flag-media-audio).jw-state-playing.jw-flag-touch.jw-state-playing.jw-breakpoint-6 .jw-nextup-container,.jwplayer.jw-flag-user-inactive:not(.jw-flag-media-audio).jw-state-playing.jw-flag-touch.jw-state-playing.jw-breakpoint-7 .jw-nextup-container{transform:translateY(4.25em)}.jwplayer.jw-flag-user-inactive:not(.jw-flag-media-audio).jw-state-playing:not(.jw-flag-controls-hidden) .jw-media{cursor:none;-webkit-cursor-visibility:auto-hide}.jwplayer.jw-flag-user-inactive:not(.jw-flag-media-audio).jw-state-playing.jw-flag-casting .jw-display{display:flex}.jwplayer.jw-flag-user-inactive:not(.jw-flag-media-audio).jw-state-playing:not(.jw-flag-ads) .jw-autostart-mute{display:flex}.jwplayer.jw-flag-user-inactive:not(.jw-flag-media-audio).jw-flag-casting .jw-nextup-container{bottom:66px}.jwplayer.jw-flag-user-inactive:not(.jw-flag-media-audio).jw-flag-casting.jw-state-idle .jw-nextup-container{display:none}.jw-flag-media-audio .jw-preview{display:block}.jwplayer.jw-flag-rightclick-open{overflow:visible}.jwplayer.jw-flag-rightclick-open .jw-rightclick{z-index:16777215}.jw-flag-touch.jw-breakpoint-4 .jw-captions,.jw-flag-touch.jw-breakpoint-4 .jw-nextup-container,.jw-flag-touch.jw-breakpoint-5 .jw-captions,.jw-flag-touch.jw-breakpoint-5 .jw-nextup-container,.jw-flag-touch.jw-breakpoint-6 .jw-captions,.jw-flag-touch.jw-breakpoint-6 .jw-nextup-container,.jw-flag-touch.jw-breakpoint-7 .jw-captions,.jw-flag-touch.jw-breakpoint-7 .jw-nextup-container{bottom:4.25em}.jw-flag-touch .jw-controlbar .jw-icon-volume{display:flex}.jw-flag-touch .jw-display,.jw-flag-touch .jw-display-container,.jw-flag-touch .jw-display-controls{pointer-events:none}.jw-flag-touch.jw-state-paused:not(.jw-breakpoint-1) .jw-display-icon-next,.jw-flag-touch.jw-state-paused:not(.jw-breakpoint-1) .jw-display-icon-rewind,.jw-flag-touch.jw-state-playing:not(.jw-breakpoint-1) .jw-display-icon-next,.jw-flag-touch.jw-state-playing:not(.jw-breakpoint-1) .jw-display-icon-rewind{display:none}.jw-flag-touch.jw-state-paused.jw-flag-dragging .jw-display{display:none}.jw-flag-audio-player{background-color:#000}.jw-flag-audio-player .jw-media{visibility:hidden}.jw-flag-audio-player .jw-title{background:0 0}.jw-flag-audio-player:not(.jw-flag-live) .jw-spacer{display:none}.jw-flag-audio-player .jw-display,.jw-flag-audio-player .jw-nextup-container,.jw-flag-audio-player .jw-preview,.jw-flag-audio-player .jw-title{display:none}.jw-flag-audio-player .jw-controlbar{position:relative}.jw-flag-audio-player .jw-controlbar .jw-button-container{padding-right:3px;padding-left:0;justify-content:flex-start}.jw-flag-audio-player .jw-controlbar .jw-icon-inline,.jw-flag-audio-player .jw-controlbar .jw-icon-tooltip{display:none}.jw-flag-audio-player .jw-controlbar .jw-icon-airplay,.jw-flag-audio-player .jw-controlbar .jw-icon-cast,.jw-flag-audio-player .jw-controlbar .jw-icon-next,.jw-flag-audio-player .jw-controlbar .jw-icon-playback,.jw-flag-audio-player .jw-controlbar .jw-icon-rewind,.jw-flag-audio-player .jw-controlbar .jw-icon-volume,.jw-flag-audio-player .jw-controlbar .jw-logo-button,.jw-flag-audio-player .jw-controlbar .jw-text-duration,.jw-flag-audio-player .jw-controlbar .jw-text-elapsed,.jw-flag-audio-player .jw-controlbar .jw-text-live{display:flex;flex:0 0 auto}.jw-flag-audio-player .jw-controlbar .jw-text-countdown,.jw-flag-audio-player .jw-controlbar .jw-text-duration{padding-right:10px}.jw-flag-audio-player .jw-controlbar .jw-chapter-slider-time,.jw-flag-audio-player .jw-controlbar .jw-slider-time{flex:0 1 auto;align-items:center;display:flex;order:1}.jw-flag-audio-player .jw-controlbar .jw-icon-volume{margin-right:0;transition:margin-right 150ms cubic-bezier(0,.25,.25,1)}.jw-flag-audio-player .jw-controlbar .jw-icon-volume .jw-overlay{display:none}.jw-flag-audio-player .jw-controlbar .jw-horizontal-volume-container~.jw-chapter-slider-time,.jw-flag-audio-player .jw-controlbar .jw-horizontal-volume-container~.jw-slider-time{transition:opacity .3s,width .3s}.jw-flag-audio-player .jw-controlbar .jw-horizontal-volume-container.jw-open~.jw-chapter-slider-time,.jw-flag-audio-player .jw-controlbar .jw-horizontal-volume-container.jw-open~.jw-slider-time{flex:1 1 auto;width:auto}.jw-flag-audio-player .jw-controlbar .jw-slider-volume~.jw-icon-volume{margin-right:140px}.jw-flag-audio-player.jw-breakpoint-1 .jw-horizontal-volume-container.jw-open~.jw-chapter-slider-time,.jw-flag-audio-player.jw-breakpoint-1 .jw-horizontal-volume-container.jw-open~.jw-slider-time,.jw-flag-audio-player.jw-breakpoint-2 .jw-horizontal-volume-container.jw-open~.jw-chapter-slider-time,.jw-flag-audio-player.jw-breakpoint-2 .jw-horizontal-volume-container.jw-open~.jw-slider-time{opacity:0}.jw-flag-audio-player.jw-flag-small-player .jw-text-duration,.jw-flag-audio-player.jw-flag-small-player .jw-text-elapsed{display:none}.jw-flag-audio-player.jw-flag-ads .jw-chapter-slider-time,.jw-flag-audio-player.jw-flag-ads .jw-slider-time{display:none}.jw-hidden{display:none}',""]);const r=a},8901:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(8081),s=i.n(n),o=i(3645),a=i.n(o)()(s());a.push([t.id,'.jw-reset{text-align:left;direction:ltr}.jw-reset,.jw-reset-text{color:inherit;background-color:transparent;padding:0;margin:0;float:none;font-family:Arial,Helvetica,sans-serif;font-size:1em;line-height:1em;list-style:none;text-transform:none;vertical-align:baseline;border:0;font-variant:inherit;font-stretch:inherit;-webkit-tap-highlight-color:rgba(255,255,255,0)}.jw-overlays,body .jw-error,body .jwplayer.jw-state-error{height:100%;width:100%}.jw-title{position:absolute;top:0}.jw-overlays{top:0;position:absolute;left:0}.jw-overlays{position:absolute;bottom:0;right:0}.jw-background-color{background:rgba(0,0,0,.4)}.jw-text{color:rgba(255,255,255,.8)}.jw-knob{color:rgba(255,255,255,.8);background-color:#fff}.jw-button-color{color:rgba(255,255,255,.8)}:not(.jw-flag-touch) .jw-button-color:not(.jw-logo-button):focus,:not(.jw-flag-touch) .jw-button-color:not(.jw-logo-button):hover{color:#fff}.jw-toggle{color:#fff}.jw-toggle.jw-off{color:rgba(255,255,255,.8)}.jw-toggle.jw-off:focus{color:#fff}.jw-toggle:focus{outline:0}:not(.jw-flag-touch) .jw-toggle.jw-off:hover{color:#fff}.jw-rail{background:rgba(255,255,255,.3)}.jw-buffer{background:rgba(255,255,255,.3)}.jw-progress{background:#f2f2f2}.jw-time-tip,.jw-volume-tip{border:0}.jw-slider-volume.jw-volume-tip.jw-background-color.jw-slider-vertical{background:0 0}.jw-skip{padding:.5em;outline:0}.jw-skip .jw-skip-icon,.jw-skip .jw-skiptext{color:rgba(255,255,255,.8)}.jw-skip.jw-skippable:focus .jw-skip-icon,.jw-skip.jw-skippable:hover .jw-skip-icon{color:#fff}.jw-icon-cast google-cast-launcher{--connected-color:#fff;--disconnected-color:rgba(255, 255, 255, 0.8)}.jw-icon-cast google-cast-launcher:focus{outline:0}.jw-icon-cast google-cast-launcher.jw-off{--connected-color:rgba(255, 255, 255, 0.8)}.jw-icon-cast:focus google-cast-launcher{--connected-color:#fff;--disconnected-color:#fff}.jw-icon-cast:hover google-cast-launcher{--connected-color:#fff;--disconnected-color:#fff}.jw-nextup-container{bottom:2.5em;padding:5px .5em}.jw-nextup{border-radius:0}.jw-color-active{color:#fff;stroke:#fff;border-color:#fff}:not(.jw-flag-touch) .jw-color-active-hover:focus,:not(.jw-flag-touch) .jw-color-active-hover:hover{color:#fff;stroke:#fff;border-color:#fff}.jw-color-inactive{color:rgba(255,255,255,.8);stroke:rgba(255,255,255,.8);border-color:rgba(255,255,255,.8)}:not(.jw-flag-touch) .jw-color-inactive-hover:hover{color:rgba(255,255,255,.8);stroke:rgba(255,255,255,.8);border-color:rgba(255,255,255,.8)}.jw-option{color:rgba(255,255,255,.8)}.jw-option.jw-active-option{color:#fff;background-color:rgba(255,255,255,.1)}:not(.jw-flag-touch) .jw-option:hover{color:#fff}.jwplayer{width:100%;font-size:16px;position:relative;display:block;min-height:0;overflow:hidden;box-sizing:border-box;font-family:Arial,Helvetica,sans-serif;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;outline:0}.jwplayer *{box-sizing:inherit}.jwplayer.jw-tab-focus:focus{outline:solid 2px #4d90fe}.jwplayer.jw-flag-aspect-mode{height:auto!important}.jwplayer.jw-flag-aspect-mode .jw-aspect{display:block}.jwplayer .jw-aspect{display:none}.jw-overlays{pointer-events:none;cursor:auto}.jw-media,.jw-preview{position:absolute;width:100%;height:100%;top:0;left:0;bottom:0;right:0}.jw-media{overflow:hidden;cursor:pointer}.jw-captions,.jw-preview,.jw-title{pointer-events:none}.jw-logo,.jw-media{pointer-events:all}.jw-wrapper{background-color:#000;position:absolute;top:0;left:0;right:0;bottom:0}.jw-hidden-accessibility{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.jw-contract-trigger::before{content:"";overflow:hidden;width:200%;height:200%;display:block;position:absolute;top:0;left:0}.jwplayer .jw-media video{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:auto;background:0 0;-webkit-tap-highlight-color:transparent;-webkit-focus-ring-color:transparent;outline:0}.jwplayer .jw-media video::-webkit-media-controls-start-playback-button{display:none}.jwplayer.jw-stretch-uniform .jw-media video{object-fit:contain}.jwplayer.jw-stretch-none .jw-media video{object-fit:none}.jwplayer.jw-stretch-fill .jw-media video{object-fit:cover}.jwplayer.jw-stretch-exactfit .jw-media video{object-fit:fill}.jw-preview{position:absolute;display:none;opacity:1;visibility:visible;width:100%;height:100%;background:#000 no-repeat 50% 50%}.jw-error .jw-preview,.jwplayer .jw-preview{background-size:contain}.jw-stretch-none .jw-preview{background-size:auto auto}.jw-stretch-fill .jw-preview{background-size:cover}.jw-stretch-exactfit .jw-preview{background-size:100% 100%}.jw-title{display:none;padding-top:20px;width:100%;z-index:1}.jw-title-primary,.jw-title-secondary{color:#fff;padding-left:20px;padding-right:20px;padding-bottom:.5em;overflow:hidden;text-overflow:ellipsis;direction:unset;white-space:nowrap;width:100%}.jw-title-primary{font-size:1.625em}.jw-breakpoint-2 .jw-title-primary,.jw-breakpoint-3 .jw-title-primary{font-size:1.5em}.jw-flag-small-player .jw-title-primary{font-size:1.25em}.jw-flag-small-player .jw-title-secondary,.jw-title-secondary:empty{display:none}.jw-captions{position:absolute;width:100%;height:100%;text-align:center;display:none;letter-spacing:normal;word-spacing:normal;text-transform:none;text-indent:0;text-decoration:none;pointer-events:none;overflow:hidden;top:0}.jw-captions.jw-captions-enabled{display:block}.jw-captions-window{display:none;padding:.25em;border-radius:.25em}.jw-captions-window.jw-captions-window-active{display:inline-block}.jw-captions-text{display:inline-block;color:#fff;background-color:#000;word-wrap:normal;word-break:normal;white-space:pre-line;font-style:normal;font-weight:400;text-align:center;text-decoration:none}.jw-text-track-display{font-size:inherit;line-height:1.5;padding:0 .1em}.jw-text-track-cue{background-color:rgba(0,0,0,.5);color:#fff;padding:.1em 0}.jwplayer video::-webkit-media-controls{display:none;justify-content:flex-start}.jwplayer video::-webkit-media-text-track-display{min-width:-webkit-min-content}.jwplayer video::cue{background-color:rgba(0,0,0,.5)}.jwplayer video::-webkit-media-controls-panel-container{display:none}.jwplayer.jw-flag-media-audio.jw-state-playing .jw-captions,.jwplayer.jw-state-playing:not(.jw-flag-user-inactive):not(.jw-flag-controls-hidden) .jw-captions,.jwplayer:not(.jw-flag-controls-hidden):not(.jw-state-playing) .jw-captions{max-height:calc(100% - 60px)}.jwplayer.jw-flag-media-audio.jw-state-playing:not(.jw-flag-ios-fullscreen) video::-webkit-media-text-track-container,.jwplayer.jw-state-playing:not(.jw-flag-user-inactive):not(.jw-flag-controls-hidden):not(.jw-flag-ios-fullscreen) video::-webkit-media-text-track-container,.jwplayer:not(.jw-flag-controls-hidden):not(.jw-state-playing):not(.jw-flag-ios-fullscreen) video::-webkit-media-text-track-container{max-height:calc(100% - 60px)}.jw-logo{position:absolute;margin:20px;cursor:pointer;pointer-events:all;background-repeat:no-repeat;background-size:contain;top:auto;right:auto;left:auto;bottom:auto;outline:0}.jw-logo.jw-tab-focus:focus{outline:solid 2px #4d90fe}.jw-flag-audio-player .jw-logo{display:none}.jw-logo-top-right{top:0;right:0}.jw-logo-top-left{top:0;left:0}.jw-logo-bottom-left{left:0}.jw-logo-bottom-right{right:0}.jw-logo-bottom-left,.jw-logo-bottom-right{bottom:44px;transition:bottom 150ms cubic-bezier(0,.25,.25,1)}.jw-state-idle .jw-logo{z-index:1}.jw-state-setup .jw-wrapper{background-color:inherit}.jw-state-setup .jw-controls,.jw-state-setup .jw-controls-backdrop,.jw-state-setup .jw-logo{visibility:hidden}span.jw-break{display:block}body .jw-error,body .jwplayer.jw-state-error{background-color:#333;color:#fff;font-size:16px;display:table;opacity:1;position:relative}body .jw-error .jw-display,body .jwplayer.jw-state-error .jw-display{display:none}body .jw-error .jw-media,body .jwplayer.jw-state-error .jw-media{cursor:default}body .jw-error .jw-preview,body .jwplayer.jw-state-error .jw-preview{background-color:#333}body .jw-error .jw-error-msg,body .jwplayer.jw-state-error .jw-error-msg{background-color:#000;border-radius:2px;display:flex;flex-direction:row;align-items:stretch;padding:20px}body .jw-error .jw-error-msg .jw-icon,body .jwplayer.jw-state-error .jw-error-msg .jw-icon{height:30px;width:30px;margin-right:20px;flex:0 0 auto;align-self:center}body .jw-error .jw-error-msg .jw-icon:empty,body .jwplayer.jw-state-error .jw-error-msg .jw-icon:empty{display:none}body .jw-error .jw-error-msg .jw-info-container,body .jwplayer.jw-state-error .jw-error-msg .jw-info-container{margin:0;padding:0}body .jw-error:not(.jw-flag-audio-player).jw-breakpoint-2 .jw-error-msg,body .jw-error:not(.jw-flag-audio-player).jw-flag-small-player .jw-error-msg,body .jwplayer.jw-state-error:not(.jw-flag-audio-player).jw-breakpoint-2 .jw-error-msg,body .jwplayer.jw-state-error:not(.jw-flag-audio-player).jw-flag-small-player .jw-error-msg{flex-direction:column}body .jw-error:not(.jw-flag-audio-player).jw-breakpoint-2 .jw-error-msg .jw-error-text,body .jw-error:not(.jw-flag-audio-player).jw-flag-small-player .jw-error-msg .jw-error-text,body .jwplayer.jw-state-error:not(.jw-flag-audio-player).jw-breakpoint-2 .jw-error-msg .jw-error-text,body .jwplayer.jw-state-error:not(.jw-flag-audio-player).jw-flag-small-player .jw-error-msg .jw-error-text{text-align:center}body .jw-error:not(.jw-flag-audio-player).jw-breakpoint-2 .jw-error-msg .jw-icon,body .jw-error:not(.jw-flag-audio-player).jw-flag-small-player .jw-error-msg .jw-icon,body .jwplayer.jw-state-error:not(.jw-flag-audio-player).jw-breakpoint-2 .jw-error-msg .jw-icon,body .jwplayer.jw-state-error:not(.jw-flag-audio-player).jw-flag-small-player .jw-error-msg .jw-icon{flex:.5 0 auto;margin-right:0;margin-bottom:20px}.jwplayer.jw-state-error.jw-breakpoint-2 .jw-error-msg .jw-break,.jwplayer.jw-state-error.jw-flag-audio-player .jw-error-msg .jw-break,.jwplayer.jw-state-error.jw-flag-small-player .jw-error-msg .jw-break{display:inline}.jwplayer.jw-state-error.jw-breakpoint-2 .jw-error-msg .jw-break:before,.jwplayer.jw-state-error.jw-flag-audio-player .jw-error-msg .jw-break:before,.jwplayer.jw-state-error.jw-flag-small-player .jw-error-msg .jw-break:before{content:" "}.jwplayer.jw-state-error.jw-flag-audio-player .jw-error-msg{height:100%;width:100%;top:0;position:absolute;left:0;background:#000;transform:none;padding:4px 16px;z-index:1}.jwplayer.jw-state-error.jw-flag-audio-player .jw-error-msg.jw-info-overlay{max-width:none;max-height:none}.jw-state-idle .jw-title,.jwplayer.jw-state-complete:not(.jw-flag-casting):not(.jw-flag-audio-player):not(.jw-flag-overlay-open-related) .jw-title,body .jwplayer.jw-state-error .jw-title{display:block}.jw-state-idle .jw-preview,.jwplayer.jw-state-complete:not(.jw-flag-casting):not(.jw-flag-audio-player):not(.jw-flag-overlay-open-related) .jw-preview,body .jwplayer.jw-state-error .jw-preview{display:block}.jw-state-idle .jw-captions,.jwplayer.jw-state-complete .jw-captions,body .jwplayer.jw-state-error .jw-captions{display:none}.jw-state-idle video::-webkit-media-text-track-container,.jwplayer.jw-state-complete video::-webkit-media-text-track-container,body .jwplayer.jw-state-error video::-webkit-media-text-track-container{display:none}.jwplayer.jw-flag-fullscreen{width:100%!important;height:100%!important;top:0;right:0;bottom:0;left:0;z-index:1000;margin:0;position:fixed}.jwplayer.jw-flag-controls-hidden .jw-media{cursor:default}.jw-flag-audio-player .jw-media{visibility:hidden}.jw-flag-audio-player .jw-title{background:0 0}.jw-flag-floating{background-size:cover;background-color:#000}.jw-flag-floating.jw-floating-dismissible .jw-wrapper{bottom:3rem}.jw-flag-floating .jw-wrapper{position:fixed;z-index:2147483647;top:auto;bottom:1rem;left:auto;right:1rem;max-width:400px;max-height:400px;margin:0 auto}@media screen and (min-width:481px){.jw-flag-floating .jw-wrapper:not(.jw-floating-dragged){animation:jw-float-to-bottom 150ms cubic-bezier(0,.25,.25,1) forwards 1}}@media screen and (max-width:480px){.jw-flag-floating .jw-wrapper{width:100%;left:0;right:0}}.jw-flag-floating .jw-wrapper.jw-float-to-top{animation:jw-float-to-top-anim 150ms cubic-bezier(0,.25,.25,1) forwards 1;bottom:auto;top:1rem}.jw-flag-floating .jw-wrapper.jw-floating-dragging{transition:none!important}.jw-flag-floating .jw-wrapper .jw-media{touch-action:none}.jw-flag-floating .jw-icon{margin:0;padding:0}.jw-flag-floating .jw-float-bar-icon{pointer-events:all;cursor:pointer;display:flex;height:24px;width:24px}.jw-flag-floating .jw-float-bar-icon:hover{background:#1d1d1d;border-radius:100px}.jw-flag-floating .jw-float-bar-icon .jw-svg-icon{display:block;margin:auto;padding:0;height:10px;width:10px}.jw-flag-floating.jw-floating-dismissible .jw-dismiss-icon{display:none}.jw-flag-floating.jw-floating-dismissible .jw-float-bar{display:inline-flex;flex-direction:row;align-items:center;position:fixed;z-index:2147483647;top:100%;height:32px;width:100%;max-height:32px;margin:0 auto}@media screen and (min-width:481px){.jw-flag-floating.jw-floating-dismissible .jw-float-bar:not(.jw-floating-dragged){animation:jw-float-to-bottom 150ms cubic-bezier(0,.25,.25,1) forwards 1}}@media screen and (max-width:480px){.jw-flag-floating.jw-floating-dismissible .jw-float-bar{left:0;right:0;top:auto}}.jw-flag-floating.jw-floating-dismissible.jw-state-paused .jw-logo,.jw-flag-floating.jw-floating-dismissible:not(.jw-flag-user-inactive) .jw-logo{display:none}.jw-float-bar{display:none;position:absolute;padding:4px 8px;background:#2f2d2d;touch-action:none}.jw-float-bar-title{width:100%;max-height:24px;font-family:Arial,sans-serif;font-style:normal;font-weight:700;font-size:13px;line-height:16px;margin-left:0;padding-right:22px;color:rgba(255,255,255,.8)!important;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.jw-flag-pip.jw-flag-floating .jw-wrapper{visibility:hidden}@keyframes jw-float-to-bottom{from{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes jw-float-to-top{from{transform:translateY(0)}to{transform:translateY(100%)}}.jw-flag-top{margin-top:2em;overflow:visible}.jw-top{height:2em;line-height:2;pointer-events:none;text-align:center;opacity:.8;position:absolute;top:-2em;width:100%}.jw-top .jw-icon{cursor:pointer;pointer-events:all;height:auto;width:auto}.jw-top .jw-text{color:#555}.jwplayer.jw-flag-ads .jw-captions.jw-captions-enabled,.jwplayer.jw-flag-ads .jw-logo,.jwplayer.jw-flag-ads .jw-nextup-container,.jwplayer.jw-flag-ads .jw-preview,.jwplayer.jw-flag-ads .jw-text-duration,.jwplayer.jw-flag-ads .jw-text-elapsed{display:none}.jwplayer.jw-flag-ads video::-webkit-media-text-track-container{display:none}.jwplayer.jw-flag-ads.jw-flag-small-player .jw-display-icon-display,.jwplayer.jw-flag-ads.jw-flag-small-player .jw-display-icon-next,.jwplayer.jw-flag-ads.jw-flag-small-player .jw-display-icon-rewind{display:none}.jwplayer.jw-flag-ads.jw-flag-small-player.jw-state-buffering .jw-display-icon-display{display:inline-block}.jwplayer.jw-flag-ads .jw-controlbar{flex-direction:column-reverse}.jwplayer.jw-flag-ads .jw-controlbar .jw-slider-time{padding:0;pointer-events:none}.jwplayer.jw-flag-ads .jw-controlbar .jw-slider-time .jw-slider-container{height:5px}.jwplayer.jw-flag-ads .jw-controlbar .jw-slider-time .jw-buffer,.jwplayer.jw-flag-ads .jw-controlbar .jw-slider-time .jw-cue,.jwplayer.jw-flag-ads .jw-controlbar .jw-slider-time .jw-icon-settings,.jwplayer.jw-flag-ads .jw-controlbar .jw-slider-time .jw-knob,.jwplayer.jw-flag-ads .jw-controlbar .jw-slider-time .jw-rail{display:none}.jwplayer.jw-flag-ads .jw-controlbar .jw-slider-time .jw-progress{transform:none;top:auto}.jwplayer.jw-flag-ads .jw-controlbar .jw-icon-inline:not(.jw-icon-playback):not(.jw-icon-fullscreen):not(.jw-icon-volume),.jwplayer.jw-flag-ads .jw-controlbar .jw-icon-tooltip:not(.jw-icon-volume),.jwplayer.jw-flag-ads .jw-controlbar .jw-tooltip{display:none}.jwplayer.jw-flag-ads .jw-controlbar .jw-volume-tip{padding:13px 0}.jwplayer.jw-flag-ads .jw-controlbar .jw-text-alt{display:flex}.jwplayer.jw-flag-ads .jw-fullscreen-ima{display:none}.jwplayer.jw-flag-ads.jw-flag-ads.jw-state-playing.jw-flag-touch:not(.jw-flag-ads-vpaid) .jw-controls .jw-controlbar,.jwplayer.jw-flag-ads.jw-flag-ads.jw-state-playing.jw-flag-touch:not(.jw-flag-ads-vpaid).jw-flag-autostart .jw-controls .jw-controlbar{display:flex;pointer-events:all;visibility:visible;opacity:1}.jwplayer.jw-flag-ads.jw-flag-ads.jw-state-playing.jw-flag-touch:not(.jw-flag-ads-vpaid).jw-flag-autostart.jw-flag-user-inactive .jw-controls-backdrop,.jwplayer.jw-flag-ads.jw-flag-ads.jw-state-playing.jw-flag-touch:not(.jw-flag-ads-vpaid).jw-flag-user-inactive .jw-controls-backdrop{opacity:1;background-size:100% 60px}.jwplayer.jw-flag-ads-vpaid .jw-display-container,.jwplayer.jw-flag-ads-vpaid .jw-skip,.jwplayer.jw-flag-touch.jw-flag-ads-vpaid .jw-display-container,.jwplayer.jw-flag-touch.jw-flag-ads-vpaid .jw-skip{display:none}.jwplayer.jw-flag-ads-vpaid.jw-flag-small-player .jw-controls{background:0 0}.jwplayer.jw-flag-ads-vpaid.jw-flag-small-player .jw-controls::after{content:none}.jwplayer.jw-flag-ads-hide-controls .jw-controls,.jwplayer.jw-flag-ads-hide-controls .jw-controls-backdrop{display:none!important}.jwplayer.jw-flag-ads.jw-keep-thumbnail .jw-preview{display:block}.jw-flag-overlay-open-related .jw-controls,.jw-flag-overlay-open-related .jw-logo,.jw-flag-overlay-open-related .jw-title{display:none}.jwplayer.jw-flag-controls-hidden .jw-plugin{bottom:.5em}.jw-overlays .jw-plugin{pointer-events:all}.jw-plugin{position:absolute;bottom:66px}.jw-breakpoint-7 .jw-plugin{bottom:132px}.jw-plugin .jw-banner{max-width:100%;opacity:0;cursor:pointer;position:absolute;margin:auto auto 0;left:0;right:0;bottom:0;display:block}',""]);const r=a},3591:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(8081),s=i.n(n),o=i(3645),a=i.n(o)()(s());a.push([t.id,".jw-logo-button{pointer-events:none;width:132px}.jw-svg-icon-watermark{color:#ff0046;width:96px}.jw-controlbar .jw-svg-icon-jwplayer-logo{display:none;color:#ff0046}.jw-flag-small-player .jw-logo-button{width:44px}.jw-flag-small-player .jw-svg-icon-watermark{display:none}.jw-flag-small-player .jw-controlbar .jw-svg-icon-jwplayer-logo{display:block}.jw-breakpoint--1:not(.jw-flag-audio-player) .jw-logo-button{bottom:6px}.jwplayer.jw-breakpoint-7 .jw-controlbar .jw-button-container .jw-icon-inline.jw-logo-button{width:186px}.jwplayer.jw-breakpoint-7 .jw-controlbar .jw-button-container .jw-icon-inline.jw-logo-button .jw-svg-icon.jw-svg-icon-watermark{width:150px}",""]);const r=a},2792:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(8081),s=i.n(n),o=i(3645),a=i.n(o)()(s());a.push([t.id,".jw-flag-outstream.jw-state-complete .jw-controls,.jw-flag-outstream.jw-state-complete .jw-controls-backdrop{display:none}.jw-flag-outstream.jw-state-complete .jw-media{pointer-events:none}.jw-flag-outstream.jw-state-complete .jw-preview{background-color:#f2f2f2}.jw-flag-outstream .jw-wrapper{transition:transform 250ms cubic-bezier(0,.25,.25,1)}.jw-flag-outstream .jw-dismiss-icon{position:absolute;right:0;bottom:0}.jw-flag-outstream-close{max-height:1px;animation:250ms jw-outstream-collapse 1 step-end}@keyframes jw-outstream-collapse{0%{max-height:initial}100%{max-height:1px}}.jw-flag-outstream-close .jw-wrapper{transform:scaleY(0)}.jw-flag-outstream-pending{max-height:1px;max-width:100%}.jw-flag-outstream-pending.jw-flag-top{margin-top:0;overflow:hidden}.jw-flag-outstream-pending .jw-wrapper{transform:scaleY(0)}",""]);const r=a},8406:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(8081),s=i.n(n),o=i(3645),a=i.n(o)()(s());a.push([t.id,'.jw-settings-content-item .jw-svg-icon{margin-right:1em;height:16px;width:16px;padding:0}.jw-settings-content-item .jw-tooltip{bottom:12px;left:50px;width:60px}.jw-settings-content-item .jw-tooltip.jw-open{transition:none}.jw-sharing-link{display:flex;align-items:center;line-height:16px;text-transform:capitalize}.jw-sharing-link:focus,.jw-sharing-link:hover{text-decoration:none}.jw-sharing-copy:after{background-color:#fff;border-radius:50px;bottom:20px;color:#000;content:"Copied";display:block;font-size:13px;font-weight:700;opacity:0;margin-left:-25px;left:50%;position:absolute;text-align:center;transform:translateY(10px);transition:all .2s ease-in-out;visibility:hidden;width:60px}.jw-sharing-copy-textarea-copied:after{opacity:1;transform:translateY(0);visibility:visible}.jw-sharing-copy .jw-sharing-link{padding:0}.jw-sharing-copy .jw-sharing-link:focus,.jw-sharing-copy .jw-sharing-link:hover{color:#fff}.jw-sharing-copy:focus,.jw-sharing-link:focus{outline:0}.jw-sharing-copy:active,.jw-sharing-link:active{color:#fff;font-weight:700}.jw-sharing-textarea{display:flex;opacity:0;height:1px;cursor:pointer}',""]);const r=a},3645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,s,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var r=0;r0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=o),i&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=i):d[2]=i),s&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=s):d[4]="".concat(s)),e.push(d))}},e}},8081:t=>{"use strict";t.exports=function(t){return t[1]}},1334:()=>{!function(){if("undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof HTMLElement){var t=!1;try{var e=document.createElement("div");e.addEventListener("focus",(function(t){t.preventDefault(),t.stopPropagation()}),!0),e.focus(Object.defineProperty({},"preventScroll",{get:function(){t=!0}}))}catch(t){}if(void 0===HTMLElement.prototype.nativeFocus&&!t){HTMLElement.prototype.nativeFocus=HTMLElement.prototype.focus;var i=function(t){for(var e=0;e{"use strict";i.r(e),i.d(e,{default:()=>j});var n=i(3379),s=i.n(n),o=i(7795),a=i.n(o),r=i(569),l=i.n(r),c=i(3565),d=i.n(c),h=i(9216),u=i.n(h),p=i(4589),w=i.n(p),g=i(4542),m={};m.styleTagTransform=w(),m.setAttributes=d(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=u();s()(g.Z,m);const j=g.Z&&g.Z.locals?g.Z.locals:void 0},5430:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>j});var n=i(3379),s=i.n(n),o=i(7795),a=i.n(o),r=i(569),l=i.n(r),c=i(3565),d=i.n(c),h=i(9216),u=i.n(h),p=i(4589),w=i.n(p),g=i(8901),m={};m.styleTagTransform=w(),m.setAttributes=d(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=u();s()(g.Z,m);const j=g.Z&&g.Z.locals?g.Z.locals:void 0},678:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>j});var n=i(3379),s=i.n(n),o=i(7795),a=i.n(o),r=i(569),l=i.n(r),c=i(3565),d=i.n(c),h=i(9216),u=i.n(h),p=i(4589),w=i.n(p),g=i(3591),m={};m.styleTagTransform=w(),m.setAttributes=d(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=u();s()(g.Z,m);const j=g.Z&&g.Z.locals?g.Z.locals:void 0},8206:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>j});var n=i(3379),s=i.n(n),o=i(7795),a=i.n(o),r=i(569),l=i.n(r),c=i(3565),d=i.n(c),h=i(9216),u=i.n(h),p=i(4589),w=i.n(p),g=i(2792),m={};m.styleTagTransform=w(),m.setAttributes=d(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=u();s()(g.Z,m);const j=g.Z&&g.Z.locals?g.Z.locals:void 0},3484:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>j});var n=i(3379),s=i.n(n),o=i(7795),a=i.n(o),r=i(569),l=i.n(r),c=i(3565),d=i.n(c),h=i(9216),u=i.n(h),p=i(4589),w=i.n(p),g=i(8406),m={};m.styleTagTransform=w(),m.setAttributes=d(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=u();s()(g.Z,m);const j=g.Z&&g.Z.locals?g.Z.locals:void 0},3379:t=>{"use strict";var e=[];function i(t){for(var i=-1,n=0;n{"use strict";var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},9216:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},3565:(t,e,i)=>{"use strict";t.exports=function(t){var e=i.nc;e&&t.setAttribute("nonce",e)}},7795:t=>{"use strict";t.exports=function(t){var e=t.insertStyleElement(t);return{update:function(i){!function(t,e,i){var n="";i.supports&&(n+="@supports (".concat(i.supports,") {")),i.media&&(n+="@media ".concat(i.media," {"));var s=void 0!==i.layer;s&&(n+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),n+=i.css,s&&(n+="}"),i.media&&(n+="}"),i.supports&&(n+="}");var o=i.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(n,t,e.options)}(e,t,i)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},4589:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},3207:t=>{t.exports=''},4851:t=>{t.exports=''},7938:t=>{t.exports=''},4060:t=>{t.exports=''},6038:t=>{t.exports=''},147:t=>{t.exports=''},7766:t=>{t.exports=''},5806:t=>{t.exports=''},9863:t=>{t.exports=''},2494:t=>{t.exports=''},7459:t=>{t.exports=''},4606:t=>{t.exports=''},544:t=>{t.exports=''},6641:t=>{t.exports=''},2521:t=>{t.exports=''},5147:t=>{t.exports=''},1438:t=>{t.exports=''},6084:t=>{t.exports=''},4777:t=>{t.exports=''},4119:t=>{t.exports=''},5058:t=>{t.exports=''},4886:t=>{t.exports=''},6207:t=>{t.exports=''},9992:t=>{t.exports=''},3498:t=>{t.exports=''},3918:t=>{t.exports=''},8157:t=>{t.exports=''},3356:t=>{t.exports=''},8053:t=>{t.exports=''},8711:t=>{t.exports=''},1983:t=>{t.exports=''},1277:t=>{t.exports=''},7928:t=>{t.exports=''},5484:t=>{t.exports=''},6598:t=>{t.exports=''},4375:t=>{t.exports=''},1666:t=>{t.exports=''},549:t=>{t.exports=''}}]);