1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8187],{32720:(e,s,r)=>{let n;r.d(s,{$0:()=>a.Sa,PP:()=>a.fb,rE:()=>a.Va,y6:()=>a.Xa});var o,a=r(9553),h=r(78340),l="u">typeof globalThis?globalThis:"u">typeof self?self:void 0!==u?u:void 0!==h?h:void 0,u=l.window,c=l.document,d=(l.location,l.navigator,l.setTimeout),p=l.clearTimeout,v=l.setInterval,f=l.clearInterval,g=l.Error,m=l.TypeError,y=l.SyntaxError,C=l.Object,b=l.Math,k=l.parseInt,T=l.parseFloat,x=l.isNaN,E=l.Uint8Array;l.Worker,l.WorkerGlobalScope,l.XMLHttpRequest,(0,a.c)(),(0,a.c)(),(0,a.c)(),(0,a.c)();var S=[];function w(e){S.push(e)}var N=[];function L(e){N.push(e)}(0,a.c)(),(0,a.c)(),(0,a.c)(),(0,a.c)();var A=void 0!==u?u:void 0!==h?h:"u">typeof self?self:{},P=void 0!==c?c:{createElement:function(){}};function I(e,s){return s||(s=e.slice(0)),e.raw=s,e}var j=1,M,O=C.prototype.toString,D=function(e){return F(e)?C.keys(e):[]};function B(e,s){D(e).forEach(function(r){return s(e[r],r)})}function H(e){for(var s=arguments.length,r=Array(s>1?s-1:0),n=1;n<s;n++)r[n-1]=arguments[n];return C.assign?C.assign.apply(C,[e].concat(r)):(r.forEach(function(s){s&&B(s,function(s,r){e[r]=s})}),e)}function F(e){return!!e&&"object"==typeof e}function R(e){return F(e)&&"[object Object]"===O.call(e)&&e.constructor===C}var V=function(e,s,r){void 0===r&&(r=!!tU&&tU<11),"log"!==e&&s.unshift(e.toUpperCase()+":"),M.history.push(s),s.unshift("VIDEOJS:");var n=A.console&&A.console[e];n&&(r&&(s=s.map(function(e){if(F(e)||Array.isArray(e))try{return JSON.stringify(e)}catch(e){}return String(e)}).join(" ")),n.apply?n[Array.isArray(s)?"apply":"call"](A.console,s):n(s))};(M=function(){for(var e=arguments.length,s=Array(e),r=0;r<e;r++)s[r]=arguments[r];V("log",s)}).history=[],M.error=function(){for(var e=arguments.length,s=Array(e),r=0;r<e;r++)s[r]=arguments[r];return V("error",s)},M.warn=function(){for(var e=arguments.length,s=Array(e),r=0;r<e;r++)s[r]=arguments[r];return V("warn",s)};var U,$=M,z="u">typeof globalThis?globalThis:void 0!==u?u:void 0!==h?h:"u">typeof self?self:{},_=function(e){for(var s="",r=0;r<arguments.length;r++)s+=e[r].replace(/\n\r?\s*/g,"")+(arguments[r+1]||"");return s};function q(e){return"string"==typeof e&&/\S/.test(e)}function W(e){if(/\s/.test(e))throw new g("class has illegal whitespace characters")}function Y(){return P===A.document&&void 0!==P.createElement}function X(e){return F(e)&&1===e.nodeType}function G(e){return function(s,r){if(!q(s))return P[e](null);q(r)&&(r=P.querySelector(r));var n=X(r)?r:P;return n[e]&&n[e](s)}}function K(e,s,r,n){void 0===e&&(e="div"),void 0===s&&(s={}),void 0===r&&(r={});var o=P.createElement(e);return C.getOwnPropertyNames(s).forEach(function(e){var r=s[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?($.warn(_(U||(U=I(["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."])),e,r)),o.setAttribute(e,r)):"textContent"===e?J(o,r):o[e]=r}),C.getOwnPropertyNames(r).forEach(function(e){o.setAttribute(e,r[e])}),n&&tg(o,n),o}function J(e,s){return void 0===e.textContent?e.innerText=s:e.textContent=s,e}function Z(e,s){s.firstChild?s.insertBefore(e,s.firstChild):s.appendChild(e)}var Q={},tt="vdata"+(new Date).getTime();function te(e){var s=e[tt];return s||(s=e[tt]=j++),Q[s]||(Q[s]={}),Q[s]}function ti(e){var s=e[tt];return!!s&&!!C.getOwnPropertyNames(Q[s]).length}function ts(e){var s=e[tt];if(s){delete Q[s];try{delete e[tt]}catch(s){e.removeAttribute?e.removeAttribute(tt):e[tt]=null}}}function tr(e,s){return W(s),e.classList?e.classList.contains(s):RegExp("(^|\\s)"+s+"($|\\s)").test(e.className)}function tn(e,s){return e.classList?e.classList.add(s):tr(e,s)||(e.className=(e.className+" "+s).trim()),e}function to(e,s){return e.classList?e.classList.remove(s):(W(s),e.className=e.className.split(/\s+/).filter(function(e){return e!==s}).join(" ")),e}function ta(e,s,r){var n=tr(e,s);if("function"==typeof r&&(r=r(e,s)),"boolean"!=typeof r&&(r=!n),r!==n)return r?tn(e,s):to(e,s),e}
1function th(e,s){C.getOwnPropertyNames(s).forEach(function(r){var n=s[r];null==n||!1===n?e.removeAttribute(r):e.setAttribute(r,!0===n?"":n)})}function tl(e){var s={};if(e&&e.attributes&&e.attributes.length>0)for(var r=e.attributes,n=r.length-1;n>=0;n--){var o=r[n].name,a=r[n].value;"boolean"!=typeof e[o]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+o+",")||(a=null!==a),s[o]=a}return s}function tu(e,s,r){e.setAttribute(s,r)}function tc(e,s){e.removeAttribute(s)}function td(e){if(e.getBoundingClientRect&&e.parentNode&&(s=e.getBoundingClientRect()),!s)return{left:0,top:0};var s,r=P.documentElement,n=P.body,o=r.clientLeft||n.clientLeft||0,a=A.pageXOffset||n.scrollLeft,h=s.left+a-o,l=r.clientTop||n.clientTop||0,u=A.pageYOffset||n.scrollTop,c=s.top+u-l;return{left:b.round(h),top:b.round(c)}}function tp(e,s){var r={},n=td(e),o=e.offsetWidth,a=e.offsetHeight,h=n.top,l=n.left,u=s.pageY,c=s.pageX;return s.changedTouches&&(c=s.changedTouches[0].pageX,u=s.changedTouches[0].pageY),r.y=b.max(0,b.min(1,(h-u+a)/a)),r.x=b.max(0,b.min(1,(c-l)/o)),r}function tv(e){return F(e)&&3===e.nodeType}function tf(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function tg(e,s){var r;return("function"==typeof(r=s)&&(r=r()),(Array.isArray(r)?r:[r]).map(function(e){return"function"==typeof e&&(e=e()),X(e)||tv(e)?e:"string"==typeof e&&/\S/.test(e)?P.createTextNode(e):void 0}).filter(function(e){return e})).forEach(function(s){return e.appendChild(s)}),e}function tm(e,s){return tg(tf(e),s)}var ty,tC,tb,tk,tT=G("querySelector"),tx=G("querySelectorAll"),tE=A.navigator&&A.navigator.userAgent||"",tS=/AppleWebKit\/([\d.]+)/i.exec(tE),tw=tS?T(tS.pop()):null,tN=/iPad/i.test(tE),tL=/iPhone/i.test(tE)&&!tN,tA=/iPod/i.test(tE),tP=tL||tN||tA,tI=(tk=tE.match(/OS (\d+)_/i))&&tk[1]?tk[1]:null,tj=/Android/i.test(tE),tM=function(){var e=tE.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var s=e[1]&&T(e[1]),r=e[2]&&T(e[2]);return s&&r?T(e[1]+"."+e[2]):s||null}(),tO=tj&&/webkit/i.test(tE)&&tM<2.3,tD=tj&&tM<5&&tw<537,tB=/Firefox/i.test(tE),tH=/Edge/i.test(tE),tF=!tH&&/Chrome/i.test(tE),tR=(ty=tE.match(/Chrome\/(\d+)/))&&ty[1]?T(ty[1]):null,tV=/MSIE\s8\.0/.test(tE),tU=(!(tb=(tC=/MSIE\s(\d+)\.\d/.exec(tE))&&T(tC[1]))&&/Trident\/7.0/i.test(tE)&&/rv:11.0/.test(tE)&&(tb=11),tb),t$=/Safari/i.test(tE)&&!tF&&!tj&&!tH,tz=t$||tP,t_=Y()&&("ontouchstart"in A||A.DocumentTouch&&A.document instanceof A.DocumentTouch),tq=Y()&&"backgroundSize"in A.document.createElement("video").style,tW=C.freeze({__proto__:null,IS_IPAD:tN,IS_IPHONE:tL,IS_IPOD:tA,IS_IOS:tP,IOS_VERSION:tI,IS_ANDROID:tj,ANDROID_VERSION:tM,IS_OLD_ANDROID:tO,IS_NATIVE_ANDROID:tD,IS_FIREFOX:tB,IS_EDGE:tH,IS_CHROME:tF,CHROME_VERSION:tR,IS_IE8:tV,IE_VERSION:tU,IS_SAFARI:t$,IS_ANY_SAFARI:tz,TOUCH_ENABLED:t_,BACKGROUND_SIZE_SUPPORTED:tq});function tY(e,s){var r=te(e);0===r.handlers[s].length&&(delete r.handlers[s],e.removeEventListener?e.removeEventListener(s,r.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+s,r.dispatcher)),C.getOwnPropertyNames(r.handlers).length<=0&&(delete r.handlers,delete r.dispatcher,delete r.disabled),0===C.getOwnPropertyNames(r).length&&ts(e)}function tX(e,s,r,n){r.forEach(function(r){e(s,r,n)})}function tG(e){function s(){return!0}function r(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var n=e||A.event;for(var o in e={},n)"layerX"!==o&&"layerY"!==o&&"keyLocation"!==o&&"webkitMovementX"!==o&&"webkitMovementY"!==o&&"path"!==o&&("returnValue"===o&&n.preventDefault||(e[o]=n[o]));if(e.target||(e.target=e.srcElement||P),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){n.preventDefault&&n.preventDefault(),e.returnValue=!1,n.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),e.cancelBubble=!0,n.cancelBubble=!0,e.isPropagationStopped=s},e.isPropagationStopped=r,e.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),e.isImmediatePropagationStopped=s,e.stopPropagation()},e.isImmediatePropagationStopped=r,null!==e.clientX&&void 0!==e.clientX){var a=P.documentElement,h=P.body;e.pageX=e.clientX+(a&&a.scrollLeft||h&&h.scrollLeft||0)-(a&&a.clientLeft||h&&h.clientLeft||0),e.pageY=e.clientY+(a&&a.scrollTop||h&&h.scrollTop||0)-(a&&a.clientTop||h&&h.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e}var tK=!1;try{var tJ=C.defineProperty({},"passive",{get:function(){tK=!0}});A.addEventListener("test",null,tJ)}catch(e){}var tZ=["touchstart","touchmove"];function tQ(e,s,r){if(Array.isArray(s))return tX(tQ,e,s,r);var n=te(e);if(n.handlers||(n.handlers={}),n.handlers[s]||(n.handlers[s]=[]),r.guid||(r.guid=j++),n.handlers[s].push(r),n.dispatcher||(n.disabled=!1,n.dispatcher=function(s,r){if(!n.disabled){s=tG(s);var o=n.handlers[s.type];if(o)for(var a=o.slice(0),h=0,l=a.length;h<l&&!s.isImmediatePropagationStopped();h++)try{a[h].call(e,s,r)}catch(e){$.error(e)}}}),1===n.handlers[s].length)if(e.addEventListener){var o=!1;tK&&tZ.indexOf(s)>-1&&(o={passive:!0}),e.addEventListener(s,n.dispatcher,o)}else e.attachEvent&&e.attachEvent("on"+s,n.dispatcher)}function t0(e,s,r){if(ti(e)){var n=te(e);if(n.handlers){if(Array.isArray(s))return tX(t0,e,s,r);var o=function(s){n.handlers[s]=[],tY(e,s)};if(s){var a=n.handlers[s];if(a)if(r){if(r.guid)for(var h=0;h<a.length;h++)a[h].guid===r.guid&&a.splice(h--,1);tY(e,s)}else o(s)}else for(var l in n.handlers)o(l)}}}function t1(e,s,r){var n=ti(e)?te(e):{},o=e.parentNode||e.ownerDocument;if("string"==typeof s&&(s={type:s,target:e}),s=tG(s),n.dispatcher&&n.dispatcher.call(e,s,r),o&&!s.isPropagationStopped()&&!0===s.bubbles)t1.call(null,o,s,r);else if(!o&&!s.defaultPrevented){var a=te(s.target);s.target[s.type]&&(a.disabled=!0,"function"==typeof s.target[s.type]&&s.target[s.type](),a.disabled=!1)}return!s.defaultPrevented}function t2(e,s,r){if(Array.isArray(s))return tX(t2,e,s,r);var n=function n(){t0(e,s,n),r.apply(this,arguments)};n.guid=r.guid=r.guid||j++,tQ(e,s,n)}var t3,t5=!1,t4=function(){if(Y()){var e=P.getElementsByTagName("video"),s=P.getElementsByTagName("audio"),r=[];if(e&&e.length>0)for(var n=0,o=e.length;n<o;n++)r.push(e[n]);if(s&&s.length>0)for(var a=0,h=s.length;a<h;a++)r.push(s[a]);if(r&&r.length>0)for(var l=0,u=r.length;l<u;l++){var c=r[l];if(!c||!c.getAttribute){t6(1);break}void 0===c.player&&null!==c.getAttribute("data-setup")&&t3(c)}else t5||t6(1)}};function t6(e,s){s&&(t3=s),A.setTimeout(t4,e)}Y()&&"complete"===P.readyState?t5=!0:t2(A,"load",function(){t5=!0});var t9=function(e){var s=P.createElement("style");return s.className=e,s},t7=function(e,s){e.styleSheet?e.styleSheet.cssText=s:e.textContent=s},t8=function(e,s,r){s.guid||(s.guid=j++);var n=function(){return s.apply(e,arguments)};return n.guid=r?r+"_"+s.guid:s.guid,n};function et(e){return"string"!=typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}function ee(){for(var e={},s=arguments.length,r=Array(s),n=0;n<s;n++)r[n]=arguments[n];return r.forEach(function(s){s&&B(s,function(s,r){R(s)?(R(e[r])||(e[r]={}),e[r]=ee(e[r],s)):e[r]=s})}),e}var ei=function(){function e(e,s,r){if(!e&&this.play?this.t=e=this:this.t=e,this.h=ee({},this.h),s=this.h=ee(this.h,s),this.o=s.id||s.el&&s.el.id,!this.o){var n=e&&e.id&&e.id()||"no_player";this.o=n+"u"+j++}this.l=s.name||null,s.el?this.v=s.el:!1!==s.createEl&&(this.v=this.createEl()),this.m=[],this.k={},this.C={},!1!==s.initChildren&&this.initChildren(),this.ready(r),!1!==s.reportTouchActivity&&this.enableTouchActivity()}var s=e.prototype;return s.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.m)for(var e=this.m.length-1;e>=0;e--)this.m[e].dispose&&this.m[e].dispose();this.m=null,this.k=null,this.C=null,this.off(),this.v.parentNode&&this.v.parentNode.removeChild(this.v),ts(this.v),this.v=null},s.player=function(){return this.t},s.options=function(e){return $.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),e&&(this.h=ee(this.h,e)),this.h},s.el=function(){return this.v},s.createEl=function(e,s,r){return K(e,s,r)},s.localize=function(e){var s=this.t.language&&this.t.language(),r=this.t.languages&&this.t.languages();if(!s||!r)return e;var n=r[s];if(n&&n[e])return n[e];var o=r[s.split("-")[0]];return o&&o[e]?o[e]:e}
1,s.contentEl=function(){return this.S||this.v},s.id=function(){return this.o},s.name=function(){return this.l},s.children=function(){return this.m},s.getChildById=function(e){return this.k[e]},s.getChild=function(e){if(e)return e=et(e),this.C[e]},s.addChild=function(s,r,n){var o,a;if(void 0===r&&(r={}),void 0===n&&(n=this.m.length),"string"==typeof s){a=et(s),r||(r={}),!0===r&&($.warn("Initializing a child component with `true` is deprecated.Children should be defined in an array when possible, but if necessary use an object instead of `true`."),r={});var h=r.componentClass||a;r.name=a;var l=e.getComponent(h);if(!l)throw new g("Component "+h+" does not exist");if("function"!=typeof l)return null;o=new l(this.t||this,r)}else o=s;if(this.m.splice(n,0,o),"function"==typeof o.id&&(this.k[o.id()]=o),(a=a||o.name&&et(o.name()))&&(this.C[a]=o),"function"==typeof o.el&&o.el()){var u=this.contentEl().children[n]||null;this.contentEl().insertBefore(o.el(),u)}return o},s.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.m){for(var s=!1,r=this.m.length-1;r>=0;r--)if(this.m[r]===e){s=!0,this.m.splice(r,1);break}if(s){this.k[e.id()]=null,this.C[e.name()]=null;var n=e.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},s.initChildren=function(){var s=this,r=this.h.children;if(r){var n,o=this.h,a=e.getComponent("Tech");(n=Array.isArray(r)?r:C.keys(r)).concat(C.keys(this.h).filter(function(e){return!n.some(function(s){return"string"==typeof s?e===s:e===s.name})})).map(function(e){var n,o;return"string"==typeof e?o=r[n=e]||s.h[n]||{}:(n=e.name,o=e),{name:n,opts:o}}).filter(function(s){var r=e.getComponent(s.opts.componentClass||et(s.name));return r&&!a.isTech(r)}).forEach(function(e){var r=e.name,n=e.opts;if(void 0!==o[r]&&(n=o[r]),!1!==n){!0===n&&(n={}),n.playerOptions=s.h.playerOptions;var a=s.addChild(r,n);a&&(s[r]=a)}})}},s.buildCSSClass=function(){return""},s.on=function(e,s,r){var n=this;if("string"==typeof e||Array.isArray(e))tQ(this.v,e,t8(this,s));else{var o=t8(this,r),a=function(){return n.off(e,s,o)};a.guid=o.guid,this.on("dispose",a);var h=function(){return n.off("dispose",a)};h.guid=o.guid,e.nodeName?(tQ(e,s,o),tQ(e,"dispose",h)):"function"==typeof e.on&&(e.on(s,o),e.on("dispose",h))}return this},s.off=function(e,s,r){if(!e||"string"==typeof e||Array.isArray(e))t0(this.v,e,s);else{var n=t8(this,r);this.off("dispose",n),e.nodeName?(t0(e,s,n),t0(e,"dispose",n)):(e.off(s,n),e.off("dispose",n))}return this},s.one=function(e,s,r){var n=arguments,o=this;if("string"==typeof e||Array.isArray(e))t2(this.v,e,t8(this,s));else{var a=t8(this,r),h=function r(){o.off(e,s,r),a.apply(null,n)};h.guid=a.guid,this.on(e,s,h)}return this},s.trigger=function(e,s){return t1(this.v,e,s),this},s.ready=function(e,s){return void 0===s&&(s=!1),e&&(this.j?s?e.call(this):this.setTimeout(e,1):(this.T=this.T||[],this.T.push(e))),this},s.triggerReady=function(){this.j=!0,this.setTimeout(function(){var e=this.T;this.T=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},s.$=function(e,s){return tT(e,s||this.contentEl())},s.$$=function(e,s){return tx(e,s||this.contentEl())},s.hasClass=function(e){return tr(this.v,e)},s.addClass=function(e){return tn(this.v,e),this},s.removeClass=function(e){return to(this.v,e),this},s.toggleClass=function(e,s){return ta(this.v,e,s),this},s.show=function(){return this.removeClass("vjs-hidden"),this},s.hide=function(){return this.addClass("vjs-hidden"),this},s.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},s.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},s.getAttribute=function(e){var s;return s=this.v,s.getAttribute(e)},s.setAttribute=function(e,s){return tu(this.v,e,s),this},s.removeAttribute=function(e){return tc(this.v,e),this},s.width=function(e,s){return this.dimension("width",e,s)},s.height=function(e,s){return this.dimension("height",e,s)},s.dimensions=function(e,s){return this.width(e,!0).height(s)},s.dimension=function(e,s,r){if(void 0!==s)return null!==s&&s==s||(s=0),-1!==(""+s).indexOf("%")||-1!==(""+s).indexOf("px")?this.v.style[e]=s:this.v.style[e]="auto"===s?"":s+"px",r||this.trigger("resize"),this;if(!this.v)return 0;var n=this.v.style[e],o=n.indexOf("px");return k(-1!==o?n.slice(0,o):this.v["offset"+et(e)],10)},s.currentDimension=function(e){var s=0;if("width"!==e&&"height"!==e)throw new g("currentDimension only accepts width or height value");if("function"==typeof A.getComputedStyle){var r=A.getComputedStyle(this.v);s=r.getPropertyValue(e)||r[e]}if(0===(s=T(s))){var n="offset"+et(e);s=this.v[n]}return s},s.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},s.currentWidth=function(){return this.currentDimension("width")},s.currentHeight=function(){return this.currentDimension("height")},s.focus=function(){this.v.focus()},s.blur=function(){this.v.blur()},s.emitTapEvents=function(){var e,s=0,r=null;this.on("touchstart",function(n){1===n.touches.length&&(r={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},s=(new Date).getTime(),e=!0)}),this.on("touchmove",function(s){if(s.touches.length>1)e=!1;else if(r){var n=s.touches[0].pageX-r.pageX,o=s.touches[0].pageY-r.pageY;b.sqrt(n*n+o*o)>10&&(e=!1)}});var n=function(){e=!1};this.on("touchleave",n),this.on("touchcancel",n),this.on("touchend",function(n){r=null,!0===e&&(new Date).getTime()-s<200&&(n.preventDefault(),this.trigger("tap"))})},s.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,s=t8(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){s(),this.clearInterval(e),e=this.setInterval(s,250)});var r=function(r){s(),this.clearInterval(e)};this.on("touchmove",s),this.on("touchend",r),this.on("touchcancel",r)}},s.setTimeout=function(e,s){e=t8(this,e);var r=A.setTimeout(e,s),n=function(){this.clearTimeout(r)};return n.guid="vjs-timeout-"+r,this.on("dispose",n),r},s.clearTimeout=function(e){A.clearTimeout(e);var s=function(){};return s.guid="vjs-timeout-"+e,this.off("dispose",s),e},s.setInterval=function(e,s){e=t8(this,e);var r=A.setInterval(e,s),n=function(){this.clearInterval(r)};return n.guid="vjs-interval-"+r,this.on("dispose",n),r},s.clearInterval=function(e){A.clearInterval(e);var s=function(){};return s.guid="vjs-interval-"+e,this.off("dispose",s),e},e.registerComponent=function(s,r){if(s){if(s=et(s),e.M||(e.M={}),"Player"===s&&e.M[s]){var n=e.M[s];
1if(n.players&&C.keys(n.players).length>0&&C.keys(n.players).map(function(e){return n.players[e]}).every(Boolean))throw new g("Can not register Player component after player has been created")}return e.M[s]=r,r}},e.getComponent=function(s){if(s)return s=et(s),e.M&&e.M[s]?e.M[s]:A&&A.videojs&&A.videojs[s]?($.warn("The "+s+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),A.videojs[s]):void 0},e.extend=function(s){s=s||{},$.warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var r=s.init||s.init||this.prototype.init||this.prototype.init||function(){},n=function(){r.apply(this,arguments)};for(var o in(n.prototype=C.create(this.prototype)).constructor=n,n.extend=e.extend,s)s.hasOwnProperty(o)&&(n.prototype[o]=s[o]);return n},e}();ei.registerComponent("Component",ei);var es=function(){};function er(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function en(e,s){return(en=C.setPrototypeOf?C.setPrototypeOf.bind():function(e,s){return e.__proto__=s,e})(e,s)}function eo(e,s){e.prototype=C.create(s.prototype),e.prototype.constructor=e,en(e,s)}function ea(e,s,r,n){return void 0===n&&($.warn("DEPRECATED: Function '"+e+"' on 'TimeRanges' called without an index argument."),n=0),function(e,s,r){if(s<0||s>r)throw new g("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+s+") is greater than or equal to the maximum bound ("+r+").")}(e,n,r.length-1),r[n][s]}function eh(e){return void 0===e||0===e.length?{length:0,start:function(){throw new g("This TimeRanges object is empty")},end:function(){throw new g("This TimeRanges object is empty")}}:{length:e.length,start:ea.bind(null,"start",0,e),end:ea.bind(null,"end",1,e)}}function el(e,s){return Array.isArray(e)?eh(e):void 0===e||void 0===s?eh():eh([[e,s]])}function eu(e,s){var r,n,o=0;if(!s)return 0;e&&e.length||(e=el(0,0));for(var a=0;a<e.length;a++)r=e.start(a),(n=e.end(a))>s&&(n=s),o+=n-r;return o/s}es.prototype.A={},es.prototype.on=function(e,s){var r=this.addEventListener;this.addEventListener=function(){},tQ(this,e,s),this.addEventListener=r},es.prototype.addEventListener=es.prototype.on,es.prototype.off=function(e,s){t0(this,e,s)},es.prototype.removeEventListener=es.prototype.off,es.prototype.one=function(e,s){var r=this.addEventListener;this.addEventListener=function(){},t2(this,e,s),this.addEventListener=r},es.prototype.trigger=function(e){var s=e.type||e;"string"==typeof e&&(e={type:s}),e=tG(e),this.A[s]&&this["on"+s]&&this["on"+s](e),t1(this,e)},es.prototype.dispatchEvent=es.prototype.trigger;var ec,ed,ep,ev,ef={prefixed:!0},eg=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],em=eg[0];for(ed=0;ed<eg.length;ed++)if(eg[ed][1]in P){ec=eg[ed];break}if(ec){for(ep=0;ep<ec.length;ep++)ef[em[ep]]=ec[ep];ef.prefixed=ec[0]!==em[0]}function ey(e){if(e instanceof ey)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:F(e)&&("number"==typeof e.code&&(this.code=e.code),H(this,e)),this.message||(this.message=ey.defaultMessages[this.code]||"")}for(ey.prototype.code=0,ey.prototype.message="",ey.prototype.status=null,ey.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],ey.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."},ev=0;ev<ey.errorTypes.length;ev++)ey[ey.errorTypes[ev]]=ev,ey.prototype[ey.errorTypes[ev]]=ev;var eC=function(e,s){var r,n=null;try{r=JSON.parse(e,s)}catch(e){n=e}return[n,r]},eb=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(s,r,n){return e[r]&&(s[r]=e[r]),s},{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})},ek=function(e){var s=e.$$("track"),r=Array.prototype.map.call(s,function(e){return e.track});return Array.prototype.map.call(s,function(e){var s=eb(e.track);return e.src&&(s.src=e.src),s}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return -1===r.indexOf(e)}).map(eb))},eT="vjs-modal-dialog",ex=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).P=n.N=n.B=!1,n.closeable(!n.h.uncloseable),n.c
1ontent(n.h.content),n.S=K("div",{className:eT+"-content"},{role:"document"}),n.I=K("p",{className:eT+"-description vjs-offscreen",id:n.el().getAttribute("aria-describedby")}),J(n.I,n.description()),n.v.appendChild(n.I),n.v.appendChild(n.S),n.on(s,"languagechange",n.handleLanguagechange),n}eo(s,e);var r=s.prototype;return r.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"F","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},r.buildCSSClass=function(){return eT+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},r.handleKeyPress=function(e){27===e.which&&this.closeable()&&this.close()},r.label=function(){return this.h.label||this.localize("Modal Window")},r.description=function(){var e=this.h.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},r.open=function(){if(!this.P){var e=this.player();this.trigger("beforemodalopen"),this.P=!0,!this.h.fillAlways&&(this.N||this.B)||this.fill(),this.D=!e.paused(),this.h.pauseOnOpen&&this.D&&e.pause(),this.closeable()&&this.on(this.v.ownerDocument,"keydown",t8(this,this.handleKeyPress)),e.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.N=!0}return this},r.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.P},r.close=function(){if(this.P){var e=this.player();this.trigger("beforemodalclose"),this.P=!1,this.D&&this.h.pauseOnOpen&&e.play(),this.closeable()&&this.off(this.v.ownerDocument,"keydown",t8(this,this.handleKeyPress)),e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.h.temporary&&this.dispose()}return this},r.closeable=function(e){if("boolean"==typeof e){var s=this.U=!!e,r=this.getChild("closeButton");if(s&&!r){var n=this.S;this.S=this.v,r=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.S=n,this.on(r,"close",this.close)}!s&&r&&(this.off(r,"close",this.close),this.removeChild(r),r.dispose())}return this.U},r.fill=function(){return this.fillWith(this.content())}
1,r.fillWith=function(e){var s=this.contentEl(),r=s.parentNode,n=s.nextSibling;return this.trigger("beforemodalfill"),this.B=!0,r.removeChild(s),this.empty(),tm(s,e),this.trigger("modalfill"),n?r.insertBefore(s,n):r.appendChild(s),this},r.empty=function(){return this.trigger("beforemodalempty"),tf(this.contentEl()),this.trigger("modalempty"),this},r.content=function(e){return void 0!==e&&(this.R=e),this.R},r.handleLanguagechange=function(){this.v.setAttribute("aria-label",this.label()),J(this.I,this.description()),this.opened()?this.fill():(this.N||this.B)&&(this.N=!1,this.B=!1,this.empty())},s}(ei);ex.prototype.h={pauseOnOpen:!0,temporary:!0},ei.registerComponent("ModalDialog",ex);var eE=function(){function e(s){var r=this;if(tV)for(var n in r=P.createElement("custom"),e.prototype)"constructor"!==n&&(r[n]=e.prototype[n]);if(e.prototype.O.call(r,s),C.defineProperty(r,"length",{get:function(){return this.V}}),tV)return r}var s=e.prototype;return s.O=function(e){var s=this.length||0,r=0,n=e.length;this.L=e,this.V=e.length;var o=function(e){""+e in this||C.defineProperty(this,""+e,{get:function(){return this.L[e]}})};if(s<n)for(r=s;r<n;r++)o.call(this,r)},s.getCueById=function(e){for(var s=null,r=0,n=this.length;r<n;r++){var o=this[r];if(o.id===e){s=o;break}}return s},e}(),eS={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},ew={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},eN={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},eL={disabled:"disabled",hidden:"hidden",showing:"showing"},eA=function(e){function s(r){void 0===r&&(r={});var n,o=er(n=e.call(this)||this);if(tV)for(var a in o=P.createElement("custom"),s.prototype)"constructor"!==a&&(o[a]=s.prototype[a]);var h={id:r.id||["vjs_track",j++].join("_"),kind:r.kind||"",label:r.label||"",language:r.language||""},l=function(e){C.defineProperty(o,e,{get:function(){return h[e]},set:function(){}})};for(var u in h)l(u);return o||er(n)}return eo(s,e),s}(es),eP=function(e){var s=["protocol","hostname","port","pathname","search","hash","host"],r=P.createElement("a");r.href=e;var n,o=""===r.host&&"file:"!==r.protocol;o&&((n=P.createElement("div")).innerHTML='<a href="'+e+'"></a>',r=n.firstChild,n.setAttribute("style","display:none; position:absolute;"),P.body.appendChild(n));for(var a={},h=0;h<s.length;h++)a[s[h]]=r[s[h]];return"http:"===a.protocol&&(a.host=a.host.replace(/:80$/,"")),"https:"===a.protocol&&(a.host=a.host.replace(/:443$/,"")),o&&P.body.removeChild(n),a},eI=function(e){var s=A.location,r=eP(e);return(":"===r.protocol?s.protocol:r.protocol)+r.host!==s.protocol+s.host},ej={exports:{}};void 0!==u?ej.exports=u:void 0!==z?ej.exports=z:"u">typeof self?ej.exports=self:ej.exports={};var eM,eO,eD,eB,eH,eF,eR,eV,eU,e$,ez,e_=C.prototype.toString,eq=Array.prototype.slice,eW=C.prototype.toString,eY=Function.prototype.bind||function(e){var s=this;if("function"!=typeof s||"[object Function]"!==eW.call(s))throw new m("Function.prototype.bind called on incompatible "+s);for(var r,n=eq.call(arguments,1),o=b.max(0,s.length-n.length),a=[],h=0;h<o;h++)a.push("$"+h);if(r=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof r){var o=s.apply(this,n.concat(eq.call(arguments)));return C(o)===o?o:this}return s.apply(e,n.concat(eq.call(arguments)))}),s.prototype){var l=function(){};l.prototype=s.prototype,r.prototype=new l,l.prototype=null}return r},eX=C.prototype.toString,eG=function(e){var s=eX.call(e),r="[object Arguments]"===s;return r||(r="[object Array]"!==s&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===eX.call(e.callee)),r};C.keys||(eO=C.prototype.hasOwnProperty,eD=C.prototype.toString,eH=!(eB=C.prototype.propertyIsEnumerable).call({toString:null},"toString"),eF=eB.call(function(){},"prototype"),eR=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],eV=function(e){var s=e.constructor;return s&&s.prototype===e},eU={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHe
1ight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},e$=function(){if(void 0===u)return!1;for(var e in u)try{if(!eU["$"+e]&&eO.call(u,e)&&null!==u[e]&&"object"==typeof u[e])try{eV(u[e])}catch(e){return!0}}catch(e){return!0}return!1}(),ez=function(e){if(void 0===u||!e$)return eV(e);try{return eV(e)}catch(e){return!1}},eM=function(e){var s=null!==e&&"object"==typeof e,r="[object Function]"===eD.call(e),n=eG(e),o=s&&"[object String]"===eD.call(e),a=[];if(!s&&!r&&!n)throw new m("Object.keys called on a non-object");var h=eF&&r;if(o&&e.length>0&&!eO.call(e,0))for(var l=0;l<e.length;++l)a.push(String(l));if(n&&e.length>0)for(var u=0;u<e.length;++u)a.push(String(u));else for(var c in e)h&&"prototype"===c||!eO.call(e,c)||a.push(String(c));if(eH)for(var d=ez(e),p=0;p<eR.length;++p)d&&"constructor"===eR[p]||!eO.call(e,eR[p])||a.push(eR[p]);return a});var eK=eM,eJ=Array.prototype.slice,eZ=C.keys,eQ=eZ?function(e){return eZ(e)}:eK,e0=C.keys;eQ.shim=function(){return C.keys?function(){var e=C.keys(arguments);return e&&e.length===arguments.length}(1,2)||(C.keys=function(e){return eG(e)?e0(eJ.call(e)):e0(e)}):C.keys=eQ,C.keys||eQ};var e1="function"==typeof a.a&&"symbol"==typeof(0,a.a)("foo"),e2=C.prototype.toString,e3=Array.prototype.concat,e5=C.defineProperty,e4=e5&&function(){var e={};try{for(var s in e5(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),e6=function(e,s,r,n){(!(s in e)||"function"==typeof n&&"[object Function]"===e2.call(n)&&n())&&(e4?e5(e,s,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[s]=r)},e9=function(e,s){var r=arguments.length>2?arguments[2]:{},n=eQ(s);e1&&(n=e3.call(n,C.getOwnPropertySymbols(s)));for(var o=0;o<n.length;o+=1)e6(e,n[o],s[n[o]],r[n[o]])};e9.supportsDescriptors=!!e4;var e7,e8=C.getOwnPropertyDescriptor?function(){return C.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new m},it="function"==typeof a.a&&"symbol"==typeof a.b,ie=C.getPrototypeOf||function(e){return e.__proto__},ii=void 0===E?e7:ie(E),is={"$ %Array%":Array,"$ %ArrayBuffer%":"u"<typeof ArrayBuffer?e7:ArrayBuffer,"$ %ArrayBufferPrototype%":"u"<typeof ArrayBuffer?e7:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":it?ie([][a.b]()):e7,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":e7,"$ %AsyncFunction%":e7,"$ %AsyncFunctionPrototype%":e7,"$ %AsyncGenerator%":e7,"$ %AsyncGeneratorFunction%":e7,"$ %AsyncGeneratorPrototype%":e7,"$ %AsyncIteratorPrototype%":e7,"$ %Atomics%":"u"<typeof Atomics?e7:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"u"<typeof DataView?e7:DataView,"$ %DataViewPrototype%":"u"<typeof DataView?e7:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":g,"$ %ErrorPrototype%":g.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"u"<typeof Float32Array?e7:Float32Array,"$ %Float32ArrayPrototype%":"u"<typeof Float32Array?e7:Float32Array.prototype,"$ %Float64Array%":"u"<typeof Float64Array?e7:Float64Array,"$ %Float64ArrayPrototype%":"u"<typeof Float64Array?e7:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":e7,"$ %GeneratorFunction%":e7,"$ %GeneratorPrototype%":e7,"$ %Int8Array%":"u"<typeof Int8Array?e7:Int8Array,"$ %Int8ArrayPrototype%":"u"<typeof Int8Array?e7:Int8Array.prototype,"$ %Int16Array%":"u"<typeof Int16Array?e7:Int16Array,"$ %Int16ArrayPrototype%":"u"<typeof Int16Array?e7:Int8Array.prototype,"$ %Int32Array%":"u"<typeof Int32Array?e7:Int32Array,"$ %Int32ArrayPrototype%":"u"<typeof Int32Array?e7:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":x,"$ %IteratorPrototype%":it?ie(ie([][a.b]())):e7,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"u"<typeof Map?e7:Map,"$ %MapIteratorPrototype%":"u">typeof Map&&it?ie((new Map)[a.b]()):e7,"$ %MapPrototype%":"u"<typeof Map?e7:Map.prototype,"$ %Math%":b,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":C,"$ %ObjectPrototype%":C.prototype,"$ %ObjProto_toString%":C.prototype.toString,"$ %ObjProto_valueOf%":C.prototype.valueOf,"$ %parseFloat%":T,"$ %parseInt%":k,"$ %Promise%":"u"<typeof Promise?e7:Promise,"$ %PromisePrototype%":"u"<typeof Promise?e7:Promise.prototype,"$ %PromiseProto_then%":"u"<typeof Promise?e7:Promise.prototype.then,"$ %Promise_all%":"u"<typeof Promise?e7:Promise.all,"$ %Promise_reject%":"u"<typeof Promise?e7:Promise.reject,"$ %Promise_resolve%":"u"<typeof Promise?e7:Promise.resolve,"$ %Proxy%":"u"<typeof Proxy?e7:Proxy,"$ %RangeError%":R
1angeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"u"<typeof Reflect?e7:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"u"<typeof Set?e7:Set,"$ %SetIteratorPrototype%":"u">typeof Set&&it?ie((new Set)[a.b]()):e7,"$ %SetPrototype%":"u"<typeof Set?e7:Set.prototype,"$ %SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?e7:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"u"<typeof SharedArrayBuffer?e7:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":it?ie(""[a.b]()):e7,"$ %StringPrototype%":String.prototype,"$ %Symbol%":it?a.a:e7,"$ %SymbolPrototype%":it?a.a.prototype:e7,"$ %SyntaxError%":y,"$ %SyntaxErrorPrototype%":y.prototype,"$ %ThrowTypeError%":e8,"$ %TypedArray%":ii,"$ %TypedArrayPrototype%":ii?ii.prototype:e7,"$ %TypeError%":m,"$ %TypeErrorPrototype%":m.prototype,"$ %Uint8Array%":void 0===E?e7:E,"$ %Uint8ArrayPrototype%":void 0===E?e7:E.prototype,"$ %Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?e7:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"u"<typeof Uint8ClampedArray?e7:Uint8ClampedArray.prototype,"$ %Uint16Array%":"u"<typeof Uint16Array?e7:Uint16Array,"$ %Uint16ArrayPrototype%":"u"<typeof Uint16Array?e7:Uint16Array.prototype,"$ %Uint32Array%":"u"<typeof Uint32Array?e7:Uint32Array,"$ %Uint32ArrayPrototype%":"u"<typeof Uint32Array?e7:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"u"<typeof WeakMap?e7:WeakMap,"$ %WeakMapPrototype%":"u"<typeof WeakMap?e7:WeakMap.prototype,"$ %WeakSet%":"u"<typeof WeakSet?e7:WeakSet,"$ %WeakSetPrototype%":"u"<typeof WeakSet?e7:WeakSet.prototype},ir=function(e,s){if(arguments.length>1&&"boolean"!=typeof s)throw new m('"allowMissing" argument must be a boolean');var r="$ "+e;if(!(r in is))throw new y("intrinsic "+e+" does not exist!");if(void 0===is[r]&&!s)throw new m("intrinsic "+e+" exists, but is not available. Please file an issue!");return is[r]},io=eY.call(Function.call,C.prototype.hasOwnProperty),ia=ir("%TypeError%"),ih=ir("%SyntaxError%"),il={"Property Descriptor":function(e,s){if("Object"!==e.Type(s))return!1;var r={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in s)if(io(s,n)&&!r[n])return!1;var o=io(s,"[[Value]]"),a=io(s,"[[Get]]")||io(s,"[[Set]]");if(o&&a)throw new ia("Property Descriptors may not be both accessor and data descriptors");return!0}},iu=Number.isNaN||function(e){return e!=e},ic=Number.isNaN||function(e){return e!=e},id=Number.isFinite||function(e){return"number"==typeof e&&!ic(e)&&e!==1/0&&e!==-1/0},ip=Function.prototype.toString,iv=/^\s*class\b/,ig=function(e){try{var s=ip.call(e);return iv.test(s)}catch(e){return!1}},im=C.prototype.toString,iy="function"==typeof a.a&&"symbol"==typeof a.a.toStringTag,iC=function(e){if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(iy)try{return!ig(e)&&(ip.call(e),!0)}catch(e){return!1}if(ig(e))return!1;var s=im.call(e);return"[object Function]"===s||"[object GeneratorFunction]"===s},ib=C.prototype.toString,ik=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e},iT=function(e){var s;if((s=arguments.length>1?arguments[1]:"[object Date]"===ib.call(e)?String:Number)===String||s===Number){var r,n,o=s===String?["toString","valueOf"]:["valueOf","toString"];for(n=0;n<o.length;++n)if(iC(e[o[n]])&&ik(r=e[o[n]]()))return r;throw new m("No default value")}throw new m("invalid [[DefaultValue]] hint supplied")},ix=ir("%Object%"),iE=ir("%TypeError%"),iS=ir("%String%"),iw=function(e,s,r,n){var o=il[s];if("function"!=typeof o)throw new ih("unknown record type: "+s);if(!o(e,n))throw new ia(r+" must be a "+s);console.log(o(e,n),n)},iN=function(e){return e>=0?1:-1},iL=function(e,s){var r=e%s;return b.floor(r>=0?r:r+s)},iA={ToPrimitive:function(e){return ik(e)?e:arguments.length>1?iT(e,arguments[1]):iT(e)},ToBoolean:function(e){return!!e},ToNumber:function(e){return+e},ToInteger:function(e){var s=this.ToNumber(e);return iu(s)?0:0!==s&&id(s)?iN(s)*b.floor(b.abs(s)):s},ToInt32:function(e){return 0|this.ToNumber(e)},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var s=this.ToNumber(e);return iu(s)||0===s||!id(s)?0:iL(iN(s)*b.floor(b.abs(s)),65536)},ToString:function(e){return iS(e)},ToObject:function(e){return this.CheckObjectCoercible(e),ix(e)},CheckObjectCoercible:function(e,s){if(null==e)throw new iE(s||"Cannot call method on "+e);return e},IsCallable:iC,SameValue:function(e,s){return e===s?0!==e||1/e==1/s:iu(e)&&iu(s)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var s={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in e)if(io(e,r)&&!s[r])return!1;var n=io(e,"[[Value]]"),o=io(e,"[[Get]]")||io(e,"[[Set]]");if(n&&o)throw new iE("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(iw(this,"Property Descriptor","Desc",e),!(!io(e,"[[Get]]")&&!io(e,"[[Set]]")))},IsDataDescriptor:function(e){return void 0!==e&&(iw(this,"Property Descriptor","Desc",e),!(!io(e,"[[Value]]")&&!io(e,"[[Writable]]")))},IsGenericDescriptor:function(e){return void 0!==e&&(iw(this,"Property Descriptor","Desc",e),!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(iw(this,"Property Descriptor","Desc",e),this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new iE("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new iE("ToPropertyDescriptor requires an object");var s={};if(io(e,"enumerable")&&(s["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),io(e,"configurable")&&(s["[[Configurable]]"]=this.ToBoolean(e.configurable)),io(e,"value")&&(s["[[Value]]"]=e.value),io(e,"writable")&&(s["[[Writable]]"]=this.ToBoolean(e.writable)),io(e,"get")){var r=e.get;
1if(void 0!==r&&!this.IsCallable(r))throw new m("getter must be a function");s["[[Get]]"]=r}if(io(e,"set")){var n=e.set;if(void 0!==n&&!this.IsCallable(n))throw new iE("setter must be a function");s["[[Set]]"]=n}if((io(s,"[[Get]]")||io(s,"[[Set]]"))&&(io(s,"[[Value]]")||io(s,"[[Writable]]")))throw new iE("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return s}},iP=eY.call(Function.call,String.prototype.replace),iI=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,ij=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,iM=function(){return iP(iP(iA.ToString(iA.CheckObjectCoercible(this)),iI,""),ij,"")},iO=function(){return String.prototype.trim&&"â"==="â".trim()?String.prototype.trim:iM},iD=eY.call(Function.call,iO());e9(iD,{getPolyfill:iO,implementation:iM,shim:function(){var e=iO();return e9(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}});var iB=C.prototype.toString,iH=C.prototype.hasOwnProperty,iF=function(e,s,r){var n;if(!iC(s))throw new m("iterator must be a function");arguments.length>=3&&(n=r),"[object Array]"===iB.call(e)?function(e,s,r){for(var n=0,o=e.length;n<o;n++)iH.call(e,n)&&(null==r?s(e[n],n,e):s.call(r,e[n],n,e))}(e,s,n):"string"==typeof e?function(e,s,r){for(var n=0,o=e.length;n<o;n++)null==r?s(e.charAt(n),n,e):s.call(r,e.charAt(n),n,e)}(e,s,n):function(e,s,r){for(var n in e)iH.call(e,n)&&(null==r?s(e[n],n,e):s.call(r,e[n],n,e))}(e,s,n)},iR=C.prototype.hasOwnProperty,iV=ej.exports,iU=function(e){var s=e_.call(e);return"[object Function]"===s||"function"==typeof e&&"[object RegExp]"!==s||void 0!==u&&(e===u.setTimeout||e===u.alert||e===u.confirm||e===u.prompt)},i$=function(e){if(!e)return{};var s={};return iF(iD(e).split("\n"),function(e){var r,n=e.indexOf(":"),o=iD(e.slice(0,n)).toLowerCase(),a=iD(e.slice(n+1));void 0===s[o]?s[o]=a:(r=s[o],"[object Array]"!==C.prototype.toString.call(r))?s[o]=[s[o],a]:s[o].push(a)}),s},iz=function(){for(var e={},s=0;s<arguments.length;s++){var r=arguments[s];for(var n in r)iR.call(r,n)&&(e[n]=r[n])}return e},i_=iW;function iq(e,s,r){var n=e;return iU(s)?(r=s,"string"==typeof e&&(n={uri:e})):n=iz(s,{uri:e}),n.callback=r,n}function iW(e,s,r){return iY(s=iq(e,s,r))}function iY(e){if(void 0===e.callback)throw new g("callback argument missing");var s=!1,r=function(r,n,o){s||(s=!0,e.callback(r,n,o))},n={body:void 0,headers:{},statusCode:0,method:f,url:v,rawRequest:u};function o(e){return p(c),e instanceof g||(e=new g(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,r(e,n)}function a(){if(!l){p(c);var s,o=n,a=null;return 0!==(s=e.useXDR&&void 0===u.status?200:1223===u.status?204:u.status)?(o={body:function(){var e=void 0;if(e=u.response?u.response:u.responseText||function(e){if("document"===e.responseType)return e.responseXML;var s=204===e.status&&e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;return""!==e.responseType||s?null:e.responseXML}(u),b)try{e=JSON.parse(e)}catch(e){}return e}(),statusCode:s,method:f,headers:{},url:v,rawRequest:u},u.getAllResponseHeaders&&(o.headers=i$(u.getAllResponseHeaders()))):a=new g("Internal XMLHttpRequest Error"),r(a,o,o.body)}}var h,l,u=e.xhr||null;u||(u=e.cors||e.useXDR?new iW.XDomainRequest:new iW.XMLHttpRequest);var c,v=u.url=e.uri||e.url,f=u.method=e.method||"GET",m=e.body||e.data||null,y=u.headers=e.headers||{},C=!!e.sync,b=!1;if("json"in e&&(b=!0,y.accept||y.Accept||(y.Accept="application/json"),"GET"!==f&&"HEAD"!==f&&(y["content-type"]||y["Content-Type"]||(y["Content-Type"]="application/json"),m=JSON.stringify(e.json))),u.onreadystatechange=function(){4===u.readyState&&a()},u.onload=a,u.onerror=o,u.onprogress=function(){},u.ontimeout=o,u.open(f,v,!C,e.username,e.password),C||(u.withCredentials=!!e.withCredentials),!C&&e.timeout>0&&(c=d(function(){l=!0,u.abort("timeout");var e=new g("XMLHttpRequest timeout");e.code="ETIMEDOUT",o(e)},e.timeout)),u.setRequestHeader)for(h in y)y.hasOwnProperty(h)&&u.setRequestHeader(h,y[h]);else if(e.headers&&!function(e){for(var s in e)if(e.hasOwnProperty(s))return!1;return!0}(e.headers))throw new g("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(u.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(u),u.send(m),u}iW.XMLHttpRequest=iV.XMLHttpRequest||function(){}
1,iW.XDomainRequest="withCredentials"in new iW.XMLHttpRequest?iW.XMLHttpRequest:iV.XDomainRequest,function(e,s){for(var r=0;r<e.length;r++)s(e[r])}(["get","put","post","patch","head","delete"],function(e){iW["delete"===e?"del":e]=function(s,r,n){return(r=iq(s,r,n)).method=e.toUpperCase(),iY(r)}});var iX=function(e,s){var r=new A.WebVTT.Parser(A,A.vttjs,A.WebVTT.StringDecoder()),n=[];r.oncue=function(e){s.addCue(e)},r.onparsingerror=function(e){n.push(e)},r.onflush=function(){s.trigger({type:"loadeddata",target:s})},r.parse(e),n.length>0&&(A.console&&A.console.groupCollapsed&&A.console.groupCollapsed("Text Track parsing errors for "+s.src),n.forEach(function(e){return $.error(e)}),A.console&&A.console.groupEnd&&A.console.groupEnd()),r.flush()},iG=function(e){function s(r){if(void 0===r&&(r={}),!r.tech)throw new g("A tech was not provided.");var n,o=ee(r,{kind:eN[r.kind]||"subtitles",language:r.language||r.srclang||""}),a=eL[o.mode]||"disabled",h=o.default;"metadata"!==o.kind&&"chapters"!==o.kind||(a="hidden");var l=n=e.call(this,o)||this;if(l.H=o.tech,tV)for(var u in s.prototype)"constructor"!==u&&(l[u]=s.prototype[u]);l.L=[],l.q=[];var c=new eE(l.L),d=new eE(l.q),p=!1,v=t8(l,function(){this.activeCues,p&&(this.trigger("cuechange"),p=!1)});return"disabled"!==a&&l.H.ready(function(){l.H.on("timeupdate",v)},!0),C.defineProperty(l,"default",{get:function(){return h},set:function(){}}),C.defineProperty(l,"mode",{get:function(){return a}
1,set:function(e){var s=this;eL[e]&&("showing"===(a=e)&&this.H.ready(function(){s.H.on("timeupdate",v)},!0),this.trigger("modechange"))}}),C.defineProperty(l,"cues",{get:function(){return this.W?c:null},set:function(){}}),C.defineProperty(l,"activeCues",{get:function(){if(!this.W)return null;if(0===this.cues.length)return d;for(var e=this.H.currentTime(),s=[],r=0,n=this.cues.length;r<n;r++){var o=this.cues[r];(o.startTime<=e&&o.endTime>=e||o.startTime===o.endTime&&o.startTime<=e&&o.startTime+.5>=e)&&s.push(o)}if(p=!1,s.length!==this.q.length)p=!0;else for(var a=0;a<s.length;a++)-1===this.q.indexOf(s[a])&&(p=!0);return this.q=s,d.O(this.q),d},set:function(){}}),o.src?(l.src=o.src,function(e,s){var r={uri:e},n=eI(e);n&&(r.cors=n),i_(r,t8(this,function(e,r,n){if(e)return $.error(e,r);if(s.W=!0,"function"!=typeof A.WebVTT){if(s.H){var o=function(){return iX(n,s)};s.H.on("vttjsloaded",o),s.H.on("vttjserror",function(){$.error("vttjs failed to load, stopping trying to process "+s.src),s.H.off("vttjsloaded",o)})}}else iX(n,s)}))}(o.src,l)):l.W=!0,l||er(n)}eo(s,e);var r=s.prototype;return r.addCue=function(e){var s=e;if(A.vttjs&&!(e instanceof A.vttjs.VTTCue)){for(var r in s=new A.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)r in s||(s[r]=e[r]);s.id=e.id,s.G=e}var n=this.H.textTracks();if(n)for(var o=0;o<n.length;o++)n[o]!==this&&n[o].removeCue(s);this.L.push(s),this.cues.O(this.L)},r.removeCue=function(e){for(var s=this.L.length;s--;){var r=this.L[s];if(r===e||r.G&&r.G===e){this.L.splice(s,1),this.cues.O(this.L);break}}},s}(eA);iG.prototype.A={cuechange:"cuechange"};var iK=function(e){function s(r){void 0===r&&(r={});var n,o,a=er(n=e.call(this)||this);if(tV)for(var h in a=P.createElement("custom"),s.prototype)"constructor"!==h&&(a[h]=s.prototype[h]);var l=new iG(r);return a.kind=l.kind,a.src=l.src,a.srclang=l.language,a.label=l.label,a.default=l.default,C.defineProperty(a,"readyState",{get:function(){return o}}),C.defineProperty(a,"track",{get:function(){return l}}),o=0,l.addEventListener("loadeddata",function(){o=2,a.trigger({type:"load",target:a})}),tV?a||er(n):n}return eo(s,e),s}(es);iK.prototype.A={load:"load"},iK.NONE=0,iK.LOADING=1,iK.LOADED=2,iK.ERROR=3;var iJ,iZ=function(){function e(s){void 0===s&&(s=[]);var r=this;if(tV)for(var n in r=P.createElement("custom"),e.prototype)"constructor"!==n&&(r[n]=e.prototype[n]);r.X=[],C.defineProperty(r,"length",{get:function(){return this.X.length}});for(var o=0,a=s.length;o<a;o++)r.J(s[o]);if(tV)return r}var s=e.prototype;return s.J=function(e){var s=this.X.length;""+s in this||C.defineProperty(this,s,{get:function(){return this.X[s]}}),-1===this.X.indexOf(e)&&this.X.push(e)},s.Y=function(e){for(var s,r=0,n=this.X.length;r<n;r++)if(e===this.X[r].track){s=this.X[r];break}return s},s.K=function(e){for(var s=0,r=this.X.length;s<r;s++)if(e===this.X[s]){this.X.splice(s,1);break}},e}(),iQ=function(e){function s(r,n){var o;if(void 0===r&&(r=[]),void 0===n&&(n=null),o=e.call(this)||this,!n&&(n=er(o),tV))for(var a in n=P.createElement("custom"),s.prototype)"constructor"!==a&&(n[a]=s.prototype[a]);n.Z=[],C.defineProperty(n,"length",{get:function(){return this.Z.length}});for(var h=0;h<r.length;h++)n.tt(r[h]);return n||er(o)}eo(s,e);var r=s.prototype;return r.tt=function(e){var s=this.Z.length;""+s in this||C.defineProperty(this,s,{get:function(){return this.Z[s]}}),-1===this.Z.indexOf(e)&&(this.Z.push(e),this.trigger({track:e,type:"addtrack"}))},r.it=function(e){for(var s,r=0,n=this.length;r<n;r++)if(this[r]===e){(s=this[r]).off&&s.off(),this.Z.splice(r,1);break}s&&this.trigger({track:s,type:"removetrack"})},r.getTrackById=function(e){for(var s=null,r=0,n=this.length;r<n;r++){var o=this[r];if(o.id===e){s=o;break}}return s},s}(es);for(iJ in iQ.prototype.A={change:"change",addtrack:"addtrack",removetrack:"removetrack"},iQ.prototype.A)iQ.prototype["on"+iJ]=null;var i0=function(e){function s(r){var n,o;if(void 0===r&&(r=[]),tV){for(var a in o=P.createElement("custom"),iQ.prototype)"constructor"!==a&&(o[a]=iQ.prototype[a]);for(var h in s.prototype)"constructor"!==h&&(o[h]=s.prototype[h])}return(o=n=e.call(this,r,o)||this)||er(n)}return eo(s,e),s.prototype.tt=function(s){e.prototype.tt.call(this,s),s.addEventListener("modechange",t8(this,function(){this.trigger("change")}))},s}(iQ),i1=function(e,s){for(var r=0;r<e.length;r++)s.id!==e[r].id&&(e[r].selected=!1)},i2=function(e){function s(r){var n,o;void 0===r&&(r=[]);for(var a=r.length-1;a>=0;a--)if(r[a].selected){i1(r,r[a]);break}if(tV){for(var h in o=P.createElement("custom"),iQ.prototype)"constructor"!==h&&(o[h]=iQ.prototype[h]);for(var l in s.prototype)"constructor"!==l&&(o[l]=s.prototype[l])}return(o=n=e.call(this,r,o)||this).st=!1,C.defineProperty(o,"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return -1},set:function(){}}),o||er(n)}eo(s,e);var r=s.prototype;return r.tt=function(s){var r=this;s.selected&&i1(this,s),e.prototype.tt.call(this,s),s.addEventListener&&s.addEventListener("selectedchange",function(){r.st||(r.st=!0,i1(r,s),r.st=!1,r.trigger("change"))})},r.addTrack=function(e){this.tt(e)},r.removeTrack=function(s){e.prototype.it.call(this,s)},s}(iQ),i3=function(e,s){for(var r=0;r<e.length;r++)s.id!==e[r].id&&(e[r].enabled=!1)},i5=function(e){function s(r){var n,o;void 0===r&&(r=[]);for(var a=r.length-1;a>=0;a--)if(r[a].enabled){i3(r,r[a]);break}if(tV){for(var h in o=P.createElement("custom"),iQ.prototype)"constructor"!==h&&(o[h]=iQ.prototype[h]);for(var l in s.prototype)"constructor"!==l&&(o[l]=s.prototype[l])}return(o=n=e.call(this,r,o)||this).st=!1,o||er(n)}eo(s,e);var r=s.prototype;return r.tt=function(s){var r=this;s.enabled&&i3(this,s),e.prototype.tt.call(this,s),s.addEventListener&&s.addEventListener("enabledchange",function(){r.st||(r.st=!0,i3(r,s),r.st=!1,r.trigger("change"))})},r.addTrack=function(e){this.tt(e)},r.removeTrack=function(s){e.prototype.it.call(this,s)},s}(iQ),i4=void 0,i6=function(e){function s(s,r){var n;return void 0===s&&(s={}),void 0===r&&(r=function(){}),s.reportTouchActivity=!1,(n=e.call(this,null,s,r)||this).et=!1,n.on("playing",function(){this.et=!0}),n.on("loadstart",function(){this.et=!1}),n.nt=s.textTracks,n.rt=s.videoTracks,n.ht=s.audioTracks,n.featuresProgressEvents||n.manualProgressOn(),n.featuresTimeupdateEvents||n.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(e){!1===s["native"+e+"Tracks"]&&(n["featuresNative"+e+"Tracks"]=!1)}),!1===s.nativeCaptions&&(n.featuresNativeTextTracks=!1),n.featuresNativeTextTracks||n.emulateTextTracks(),n.ot=new i0,n.initTextTrackListeners(),n.initTrackListeners(),s.nativeControlsForTouch||n.emitTapEvents(),n.constructor&&(n.l=n.constructor.name||"Unknown Tech"),n}eo(s,e);var r=s.prototype;return r.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},r.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},r.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(t8(this,function(){var e=this.bufferedPercent();this.ut!==e&&this.trigger("progress"),this.ut=e,1===e&&this.stopTrackingProgress()}),500)},r.onDurationChange=function(e){this.ct=this.duration()},r.buffered=function(){return el(0,0)},r.bufferedPercent=function(){return eu(this.buffered(),this.ct)},r.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},r.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},r.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},r.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},r.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},r.dispose=function(){this.clearTracks(["audio","video","text"]),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},r.clearTracks=function(e){var s=this;
1(e=[].concat(e)).forEach(function(e){for(var r=s[e+"Tracks"]()||[],n=r.length;n--;){var o=r[n];"text"===e&&s.removeRemoteTextTrack(o),r.it(o)}})},r.cleanupAutoTextTracks=function(){for(var e=this.ot||[],s=e.length;s--;){var r=e[s];this.removeRemoteTextTrack(r)}},r.reset=function(){},r.error=function(e){return void 0!==e&&(this.lt=new ey(e),this.trigger("error")),this.lt},r.played=function(){return this.et?el(0,0):el()},r.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},r.initTextTrackListeners=function(){var e=t8(this,function(){this.trigger("texttrackchange")}),s=this.textTracks();s&&(s.addEventListener("removetrack",e),s.addEventListener("addtrack",e),this.on("dispose",t8(this,function(){s.removeEventListener("removetrack",e),s.removeEventListener("addtrack",e)})))},r.initTrackListeners=function(){var e=this;["video","audio"].forEach(function(s){var r=function(){e.trigger(s+"trackchange")},n=e[s+"Tracks"]();n.addEventListener("removetrack",r),n.addEventListener("addtrack",r),e.on("dispose",function(){n.removeEventListener("removetrack",r),n.removeEventListener("addtrack",r)})})},r.dt=function(){var e=this;if(!A.WebVTT)if(P.body.contains(this.el())){if(!this.h["vtt.js"]&&R(i4)&&C.keys(i4).length>0)return void this.trigger("vttjsloaded");var s=P.createElement("script");s.src=this.h["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",s.onload=function(){e.trigger("vttjsloaded")},s.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){s.onload=null,s.onerror=null}),A.WebVTT=!0,this.el().parentNode.appendChild(s)}else this.ready(this.dt)},r.emulateTextTracks=function(){var e=this,s=this.textTracks();if(s){var r=this.remoteTextTracks(),n=function(e){return s.tt(e.track)},o=function(e){return s.it(e.track)};r.on("addtrack",n),r.on("removetrack",o),this.dt();var a=function(){return e.trigger("texttrackchange")},h=function(){a();for(var e=0;e<s.length;e++){var r=s[e];r.removeEventListener("cuechange",a),"showing"===r.mode&&r.addEventListener("cuechange",a)}};h(),s.addEventListener("change",h),s.addEventListener("addtrack",h),s.addEventListener("removetrack",h),this.on("dispose",function(){r.off("addtrack",n),r.off("removetrack",o),s.removeEventListener("change",h),s.removeEventListener("addtrack",h),s.removeEventListener("removetrack",h);for(var e=0;e<s.length;e++)s[e].removeEventListener("cuechange",a)})}},r.videoTracks=function(){return this.rt=this.rt||new i2,this.rt},r.audioTracks=function(){return this.ht=this.ht||new i5,this.ht},r.textTracks=function(){return this.nt=this.nt||new i0,this.nt},r.remoteTextTracks=function(){return this.ft=this.ft||new i0,this.ft},r.remoteTextTrackEls=function(){return this.vt=this.vt||new iZ,this.vt},r.addTextTrack=function(e,s,r){var n,o,a;if(!e)throw new g("TextTrack kind is required but was not provided");return void 0===n&&(n={}),o=this.textTracks(),n.kind=e,s&&(n.label=s),r&&(n.language=r),n.tech=this,a=new iG(n),o.tt(a),a},r.createRemoteTextTrack=function(e){return new iK(ee(e,{tech:this}))},r.addRemoteTextTrack=function(e,s){void 0===e&&(e={});var r=this.createRemoteTextTrack(e);return!0!==s&&!1!==s&&($.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),s=!0),this.remoteTextTrackEls().J(r),this.remoteTextTracks().tt(r.track),!0!==s&&this.ot.tt(r.track),r},r.removeRemoteTextTrack=function(e){var s=this.remoteTextTrackEls().Y(e);this.remoteTextTrackEls().K(s),this.remoteTextTracks().it(e),this.ot.it(e)},r.getVideoPlaybackQuality=function(){return{}},r.setPoster=function(){},r.playsinline=function(){},r.setPlaysinline=function(){},r.canPlayType=function(){return""},s.isTech=function(e){return e.prototype instanceof s||e instanceof s||e===s},s.registerTech=function(e,r){if(s.gt||(s.gt={}),!s.isTech(r))throw new g("Tech "+e+" must be a Tech");return s.gt[e]=r,r},s.getTech=function(e){return s.gt&&s.gt[e]?s.gt[e]:A&&A.videojs&&A.videojs[e]?($.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),A.videojs[e]):void 0},s}(ei);i6.prototype.nt,i6.prototype.ht,i6.prototype.rt,i6.prototype.featuresVolumeControl=!0,i6.prototype.featuresFullscreenResize=!1,i6.prototype.featuresPlaybackRate=!1,i6.prototype.featuresProgressEvents=!1,i6.prototype.featuresTimeupdateEvents=!1,i6.prototype.featuresNativeTextTracks=!1,i6.withSourceHandlers=function(e){e.registerSourceHandler=function(s,r){var n=e.sourceHandlers;n||(n=e.sourceHandlers=[]),void 0===r&&(r=n.length),n.splice(r,0,s)},e.canPlayType=function(s){for(var r,n=e.sourceHandlers||[],o=0;o<n.length;o++)if(r=n[o].canPlayType(s))return r;return""},e.selectSourceHandler=function(s,r){for(var n=e.sourceHandlers||[],o=0;o<n.length;o++)if(n[o].canHandleSource(s,r))return n[o];return null},e.canPlaySource=function(s,r){var n=e.selectSourceHandler(s,r);return n?n.canHandleSource(s,r):""},["seekable","duration"].forEach(function(e){var s=this[e];"function"==typeof s&&(this[e]=function(){return this.yt&&this.yt[e]?this.yt[e].apply(this.yt,arguments):s.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(s){var r=e.selectSourceHandler(s,this.h);return r||(e.nativeSourceHandler?r=e.nativeSourceHandler:$.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),r!==e.nativeSourceHandler&&(this.bt=s,this.off(this.v,"loadstart",e.prototype.kt),this.off(this.v,"loadstart",e.prototype.wt),this.one(this.v,"loadstart",e.prototype.kt)),this.yt=r.handleSource(s,this,this.h),this.on("dispose",this.disposeSourceHandler),this},e.prototype.kt=function(){this.one(this.v,"loadstart",e.prototype.wt)},e.prototype.wt=function(){this.disposeSourceHandler(),this.one(this.v,"loadstart",e.prototype.wt)},e.prototype.disposeSourceHandler=function(){this.bt&&(this.clearTracks(["audio","video"]),this.bt=null),this.cleanupAutoTextTracks(),this.yt&&(this.off(this.v,"loadstart",e.prototype.kt),this.off(this.v,"loadstart",e.prototype.wt),this.yt.dispose&&this.yt.dispose(),this.yt=null)}},ei.registerComponent("Tech",i6),ei.registerComponent("MediaTechController",i6),i6.registerTech("Tech",i6);var i9=function(e){function s(s,r,n){var o;
1if(o=e.call(this,s,r,n)||this,r.playerOptions.sources&&0!==r.playerOptions.sources.length)s.src(r.playerOptions.sources);else for(var a=0,h=r.playerOptions.techOrder;a<h.length;a++){var l=et(h[a]),u=i6.getTech(l);if(l||(u=ei.getComponent(l)),u&&u.isSupported()){s._t(l);break}}return o}return eo(s,e),s}(ei);ei.registerComponent("MediaLoader",i9);var i7=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).emitTapEvents(),n.on(s,"languagechange",n.handleLanguagechange),n.enable(),n}eo(s,e);var r=s.prototype;return r.createEl=function(s,r,n){void 0===s&&(s="div"),void 0===r&&(r={}),void 0===n&&(n={}),r=H({className:this.buildCSSClass(),tabIndex:0},r),"button"===s&&$.error("Creating a ClickableComponent with an HTML element of "+s+" is not supported; use a Button instead."),n=H({role:"button","aria-live":"polite"},n),this.xt=r.tabIndex;var o=e.prototype.createEl.call(this,s,r,n);return this.createControlTextEl(o),o},r.createControlTextEl=function(e){return this.Ct=K("span",{className:"vjs-control-text"}),e&&e.appendChild(this.Ct),this.controlText(this.St,e),this.Ct},r.controlText=function(e,s){if(void 0===s&&(s=this.el()),void 0===e)return this.St||"Need Text";var r=this.localize(e);return this.St=e,this.Ct.innerHTML=r,this.nonIconControl||s.setAttribute("title",r),this},r.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},r.enable=function(){return this.removeClass("vjs-disabled"),this.v.setAttribute("aria-disabled","false"),void 0!==this.xt&&this.v.setAttribute("tabIndex",this.xt),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this},r.disable=function(){return this.addClass("vjs-disabled"),this.v.setAttribute("aria-disabled","true"),void 0!==this.xt&&this.v.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this},r.handleLanguagechange=function(){this.controlText(this.St)},r.handleClick=function(e){},r.handleFocus=function(e){tQ(P,"keydown",t8(this,this.handleKeyPress))},r.handleKeyPress=function(s){32===s.which||13===s.which?(s.preventDefault(),this.handleClick(s)):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,s)},r.handleBlur=function(e){t0(P,"keydown",t8(this,this.handleKeyPress))},s}(ei);ei.registerComponent("ClickableComponent",i7);var i8=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).update(),s.on("posterchange",t8(er(n),n.update)),n}eo(s,e);var r=s.prototype;return r.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},r.createEl=function(){var e=K("div",{className:"vjs-poster",tabIndex:-1});return tq||(this.jt=K("img"),e.appendChild(this.jt)),e},r.update=function(e){var s=this.player().poster();this.setSrc(s),s?this.show():this.hide()},r.setSrc=function(e){if(this.jt)this.jt.src=e;else{var s="";e&&(s='url("'+e+'")'),this.v.style.backgroundImage=s}},r.handleClick=function(e){this.t.controls()&&(this.t.paused()?this.t.play():this.t.pause())},s}(i7);ei.registerComponent("PosterImage",i8);var st="#222",se={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function si(e,s){return"rgba("+k(e[1]+e[1],16)+","+k(e[2]+e[2],16)+","+k(e[3]+e[3],16)+","+s+")"}function ss(e,s,r){try{e.style[s]=r}catch(e){return}}var sr=function(e){function s(s,r,n){var o;return o=e.call(this,s,r,n)||this,s.on("loadstart",t8(er(o),o.toggleDisplay)),s.on("texttrackchange",t8(er(o),o.updateDisplay)),s.ready(t8(er(o),function(){if(s.H&&s.H.featuresNativeTextTracks)this.hide();else{s.on("fullscreenchange",t8(this,this.updateDisplay));for(var e=this.h.playerOptions.tracks||[],r=0;r<e.length;r++)this.t.addRemoteTextTrack(e[r],!0);var n,o,a={captions:1,subtitles:1},h=this.t.textTracks();if(h){for(var l=0;l<h.length;l++){var u=h[l];
1u.default&&("descriptions"!==u.kind||n?u.kind in a&&!o&&(o=u):n=u)}o?o.mode="showing":n&&(n.mode="showing")}}})),o}eo(s,e);var r=s.prototype;return r.toggleDisplay=function(){this.t.H&&this.t.H.featuresNativeTextTracks?this.hide():this.show()},r.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},r.clearDisplay=function(){"function"==typeof A.WebVTT&&A.WebVTT.processCues(A,[],this.v)},r.updateDisplay=function(){var e=this.t.textTracks();if(this.clearDisplay(),e){for(var s=null,r=null,n=e.length;n--;){var o=e[n];"showing"===o.mode&&("descriptions"===o.kind?s=o:r=o)}r?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(r)):s&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(s))}},r.updateForTrack=function(e){if("function"==typeof A.WebVTT&&e.activeCues){for(var s=this.t.textTrackSettings.getValues(),r=[],n=0;n<e.activeCues.length;n++)r.push(e.activeCues[n]);A.WebVTT.processCues(A,r,this.v);for(var o=r.length;o--;){var a=r[o];if(a){var h=a.displayState;if(s.color&&(h.firstChild.style.color=s.color),s.textOpacity&&ss(h.firstChild,"color",si(s.color||"#fff",s.textOpacity)),s.backgroundColor&&(h.firstChild.style.backgroundColor=s.backgroundColor),s.backgroundOpacity&&ss(h.firstChild,"backgroundColor",si(s.backgroundColor||"#000",s.backgroundOpacity)),s.windowColor&&(s.windowOpacity?ss(h,"backgroundColor",si(s.windowColor,s.windowOpacity)):h.style.backgroundColor=s.windowColor),s.edgeStyle&&("dropshadow"===s.edgeStyle?h.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px "+st:"raised"===s.edgeStyle?h.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px "+st:"depressed"===s.edgeStyle?h.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px "+st:"uniform"===s.edgeStyle&&(h.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px "+st)),s.fontPercent&&1!==s.fontPercent){var l=A.parseFloat(h.style.fontSize);h.style.fontSize=l*s.fontPercent+"px",h.style.height="auto",h.style.top="auto",h.style.bottom="2px"}s.fontFamily&&"default"!==s.fontFamily&&("small-caps"===s.fontFamily?h.firstChild.style.fontVariant="small-caps":h.firstChild.style.fontFamily=se[s.fontFamily])}}}},s}(ei);ei.registerComponent("TextTrackDisplay",sr);var sn=function(e){function s(){return e.apply(this,arguments)||this}return eo(s,e),s.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},s}(ei);ei.registerComponent("LoadingSpinner",sn);var so=function(e){function s(){return e.apply(this,arguments)||this}eo(s,e);var r=s.prototype;return r.createEl=function(e,s,r){void 0===e&&(e="button"),void 0===s&&(s={}),void 0===r&&(r={}),s=H({className:this.buildCSSClass()},s),"button"!==e&&($.warn("Creating a Button with an HTML element of "+e+" is deprecated; use ClickableComponent instead."),s=H({tabIndex:0},s),r=H({role:"button"},r)),r=H({type:"button","aria-live":"polite"},r);var n=ei.prototype.createEl.call(this,e,s,r);return this.createControlTextEl(n),n},r.addChild=function(e,s){void 0===s&&(s={});var r=this.constructor.name;return $.warn("Adding an actionable (user controllable) child to a Button ("+r+") is not supported; use a ClickableComponent instead."),ei.prototype.addChild.call(this,e,s)},r.enable=function(){e.prototype.enable.call(this),this.v.removeAttribute("disabled")},r.disable=function(){e.prototype.disable.call(this),this.v.setAttribute("disabled","disabled")},r.handleKeyPress=function(s){32!==s.which&&13!==s.which&&e.prototype.handleKeyPress.call(this,s)},s}(i7);ei.registerComponent("Button",so);var sa=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).Tt=!1,n.on("mousedown",n.handleMouseDown),n}eo(s,e);var r=s.prototype;return r.buildCSSClass=function(){return"vjs-big-play-button"},r.handleClick=function(e){var s=this;if(this.Tt&&e.clientX&&e.clientY)this.t.play();else{var r=this.t.getChild("controlBar"),n=r&&r.getChild("playToggle");
1this.one(this.t,"play",function(){n?n.focus():s.t.focus()}),this.t.play()}},r.handleKeyPress=function(s){this.Tt=!1,e.prototype.handleKeyPress.call(this,s)},r.handleMouseDown=function(e){this.Tt=!0},s}(so);sa.prototype.St="Play Video",ei.registerComponent("BigPlayButton",sa);var sh=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).controlText(r&&r.controlText||"Close"),n}eo(s,e);var r=s.prototype;return r.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},r.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},s}(so);ei.registerComponent("CloseButton",sh);var sl=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).on(s,"play",n.handlePlay),n.on(s,"pause",n.handlePause),n}eo(s,e);var r=s.prototype;return r.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},r.handleClick=function(e){this.t.paused()?this.t.play():this.t.pause()},r.handlePlay=function(e){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},r.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},s}(so);function su(e,s){void 0===s&&(s=e),e=e<0?0:e;var r=b.floor(e%60),n=b.floor(e/60%60),o=b.floor(e/3600),a=b.floor(s/60%60),h=b.floor(s/3600);return(x(e)||e===1/0)&&(o=n=r="-"),(o=o>0||h>0?o+":":"")+(n=((o||a>=10)&&n<10?"0"+n:n)+":")+(r=r<10?"0"+r:r)}sl.prototype.St="Play",ei.registerComponent("PlayToggle",sl);var sc=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).on(s,"timeupdate",n.updateContent),n.on(s,"languagechange",n.updateContent),n}eo(s,e);var r=s.prototype;return r.createEl=function(){var s=e.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.S=K("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>0:00'},{"aria-live":"off"}),s.appendChild(this.S),s},r.updateContent=function(e){var s=this.t.scrubbing()?this.t.getCache().currentTime:this.t.currentTime(),r=this.localize("Current Time"),n=su(s,this.t.duration());n!==this.Mt&&(this.Mt=n,this.S.innerHTML='<span class="vjs-control-text">'+r+"</span> "+n)},s}(ei);ei.registerComponent("CurrentTimeDisplay",sc);var sd=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).on(s,"durationchange",n.updateContent),n.on(s,"timeupdate",n.updateContent),n.on(s,"loadedmetadata",n.updateContent),n.on(s,"languagechange",n.updateContent),n}eo(s,e);var r=s.prototype;return r.createEl=function(){var s=e.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.S=K("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"</span> 0:00"},{"aria-live":"off"}),s.appendChild(this.S),s},r.updateContent=function(e){var s=this.t.duration();if(s&&this.ct!==s){this.ct=s;var r=this.localize("Duration Time"),n=su(s);this.S.innerHTML='<span class="vjs-control-text">'+r+"</span> "+n}},s}(ei);ei.registerComponent("DurationDisplay",sd);var sp=function(e){function s(){return e.apply(this,arguments)||this}return eo(s,e),s.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},s}(ei);ei.registerComponent("TimeDivider",sp);var sv=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).on(s,"timeupdate",n.updateContent),n.on(s,"durationchange",n.updateContent),n.on(s,"languagechange",n.updateContent),n}eo(s,e);var r=s.prototype;return r.createEl=function(){var s=e.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.S=K("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"</span> -0:00"},{"aria-live":"off"}),s.appendChild(this.S),s},r.updateContent=function(e){if(this.t.duration()){var s=this.localize("Remaining Time"),r=su(this.t.remainingTime());r!==this.Mt&&(this.Mt=r,this.S.innerHTML='<span class="vjs-control-text">'+s+"</span> -"+r)}},s}(ei);ei.registerComponent("RemainingTimeDisplay",sv);var sf=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).updateShowing(),n.on(n.player(),"durationchange",n.updateShowing),n.on(n.player(),"languagechange",n.handleLanguagechange),n}eo(s,e);var r=s.prototype;return r.createEl=function(){var s=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.S=K("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.Ct=K("span",{className:"vjs-control-text",innerHTML:this.localize("Stream Type")}),this.At=P.createTextNode(this.localize("LIVE")),this.S.appendChild(this.Ct),this.S.appendChild(this.At),s.appendChild(this.S),s},r.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},r.handleLanguagechange=function(){this.Ct.innerHTML=this.localize("Stream Type"),this.At.innerHTML=this.localize("LIVE")},s}(ei);ei.registerComponent("LiveDisplay",sf);var sg=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).bar=n.getChild(n.h.barName),n.vertical(!!n.h.vertical),n.on("mousedown",n.handleMouseDown),n.on("touchstart",n.handleMouseDown),n.on("focus",n.handleFocus),n.on("blur",n.handleBlur),n.on("click",n.handleClick),n.on(s,"controlsvisible",n.update),n.on(s,n.playerEvent,n.update),n}eo(s,e);var r=s.prototype;return r.createEl=function(s,r,n){return void 0===r&&(r={}),void 0===n&&(n={}),r.className=r.className+" vjs-slider",r=H({tabIndex:0},r),n=H({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0}
1,n),e.prototype.createEl.call(this,s,r,n)},r.handleMouseDown=function(e){var s=this.bar.v.ownerDocument;e.preventDefault(),P.body.focus(),P.onselectstart=function(){return!1},this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(s,"mousemove",this.handleMouseMove),this.on(s,"mouseup",this.handleMouseUp),this.on(s,"touchmove",this.handleMouseMove),this.on(s,"touchend",this.handleMouseUp),this.handleMouseMove(e)},r.handleMouseMove=function(e){},r.handleMouseUp=function(){var e=this.bar.v.ownerDocument;P.onselectstart=function(){return!0},this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},r.update=function(){if(this.v){var e=this.getPercent(),s=this.bar;if(s){("number"!=typeof e||e!=e||e<0||e===1/0)&&(e=0);var r=(100*e).toFixed(2)+"%";this.vertical()?s.el().style.height=r:s.el().style.width=r}}},r.calculateDistance=function(e){var s=tp(this.v,e);return this.vertical()?s.y:s.x},r.handleFocus=function(){this.on(this.bar.v.ownerDocument,"keydown",this.handleKeyPress)},r.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepBack()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepForward())},r.handleBlur=function(){this.off(this.bar.v.ownerDocument,"keydown",this.handleKeyPress)},r.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},r.vertical=function(e){return void 0===e?this.Pt||!1:(this.Pt=!!e,this.Pt?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},s}(ei);function sm(e,s){if(!e||!s)return"";if("function"==typeof A.getComputedStyle){var r=A.getComputedStyle(e);return r?r[s]:""}return e.currentStyle[s]||""}ei.registerComponent("Slider",sg);var sy=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).Nt=[],n.on(s,"progress",n.update),n.on(s,"languagechange",n.handleLanguagechange),n}eo(s,e);var r=s.prototype;return r.createEl=function(){var s=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"});return this.Et=K("span",{innerHTML:this.localize("Loaded")}),this.Bt=P.createTextNode(": 0%"),this.Ct=K("span",{className:"vjs-control-text"}),this.Ct.appendChild(this.Et),this.Ct.appendChild(this.Bt),s.appendChild(this.Ct),s},r.update=function(e){var s=this.t.buffered(),r=this.t.duration(),n=this.t.bufferedEnd(),o=this.Nt,a=function(e,s){var r=e/s||0;return 100*(r>=1?1:r)+"%"};this.v.style.width=a(n,r);for(var h=0;h<s.length;h++){var l=s.start(h),u=s.end(h),c=o[h];c||(c=this.v.appendChild(K()),o[h]=c),c.style.left=a(l,n),c.style.width=a(u-l,n)}for(var d=o.length;d>s.length;d--)this.v.removeChild(o[d-1]);o.length=s.length},r.handleLanguagechange=function(){this.Et.innerHTML=this.localize("Loaded")},s}(ei);ei.registerComponent("LoadProgressBar",sy);var sC=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).updateDataAttr(),n.on(s,"timeupdate",n.updateDataAttr),n.on(s,"languagechange",n.handleLanguagechange),s.ready(t8(er(n),n.updateDataAttr)),r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(n.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside),n.keepTooltipsInside&&n.addClass("vjs-keep-tooltips-inside"),n}eo(s,e);var r=s.prototype;return r.createEl=function(){var s=e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"});return this.It=K("span",{innerHTML:this.localize("Progress")}),this.Ft=P.createTextNode(": 0%"),this.Ct=K("span",{className:"vjs-control-text"}),this.Ct.appendChild(this.It),this.Ct.appendChild(this.Ft),s.appendChild(this.Ct),s},r.updateDataAttr=function(e){var s=this.t.scrubbing()?this.t.getCache().currentTime:this.t.currentTime();this.v.setAttribute("data-current-time",su(s,this.t.duration()))},r.handleLanguagechange=function(){this.It.innerHTML=this.localize("Progress")},s}(ei);ei.registerComponent("PlayProgressBar",sC);var sb=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).updateDataAttr(),n.on(s,"timeupdate",n.updateDataAttr),n.on(s,"languagechange",n.handleLanguagechange),s.ready(t8(er(n),n.updateDataAttr)),n}eo(s,e);var r=s.prototype;return r.createEl=function(){var s=e.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar"});return this.tooltip=K("div",{className:"vjs-time-tooltip"}),this.It=K("span",{innerHTML:this.localize("Progress")}),this.Ft=P.createTextNode(": 0%"),this.Ct=K("span",{className:"vjs-control-text"}),this.Ct.appendChild(this.It),this.Ct.appendChild(this.Ft),s.appendChild(this.tooltip),s.appendChild(this.Ct),s},r.updateDataAttr=function(e){var s=su(this.t.scrubbing()?this.t.getCache().currentTime:this.t.currentTime(),this.t.duration());this.v.setAttribute("data-current-time",s),this.tooltip.innerHTML=s},r.handleLanguagechange=function(){this.It.innerHTML=this.localize("Progress")},s}(ei);ei.registerComponent("TooltipProgressBar",sb);var sk=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).on(s,"timeupdate",n.updateProgress),n.on(s,"ended",n.updateProgress),s.ready(t8(er(n),n.updateProgress)),r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(n.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside),n.keepTooltipsInside&&(n.tooltipProgressBar=n.addChild("TooltipProgressBar")),n}eo(s,e);var r=s.prototype;return r.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},r.updateProgress=function(e){if(this.updateAriaAttributes(this.v),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.v),this.tooltipProgressBar.v.style.width=this.bar.v.style.width;var s=T(sm(this.player().el(),"width")),r=T(sm(this.tooltipProgressBar.tooltip,"width")),n=this.tooltipProgressBar.el().style;n.maxWidth=b.floor(s-r/2)+"px",n.minWidth=b.ceil(r/2)+"px",n.right="-"+r/2+"px"}},r.updateAriaAttributes=function(e){var s=this.t.scrubbing()?this.t.getCache().currentTime:this.t.currentTime();e.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),e.setAttribute("aria-valuetext",su(s,this.t.duration()))},r.getPercent=function(){var e=this.t.currentTime()/this.t.duration();return e>=1?1:e},r.handleMouseDown=function(s){this.t.scrubbing(!0),this.videoWasPlaying=!this.t.paused(),this.t.pause(),e.prototype.handleMouseDown.call(this,s)},r.handleMouseMove=function(e){var s=this.calculateDistance(e)*this.t.duration();s===this.t.duration()&&(s-=.1),this.t.currentTime(s)},r.handleMouseUp=function(s){e.prototype.handleMouseUp.call(this,s),this.t.scrubbing(!1),this.videoWasPlaying&&this.t.play()},r.stepForward=function(){this.t.currentTime(this.t.currentTime()+5)},r.stepBack=function(){this.t.currentTime(this.t.currentTime()-5)},s}(sg);sk.prototype.h={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},sk.prototype.playerEvent="timeupdate",ei.registerComponent("SeekBar",sk);var sT=function(e){function s(s,r){var n;return n=e.call(this,s,r)||this,r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(n.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside),n.keepTooltipsInside&&(n.tooltip=K("div",{className:"vjs-time-tooltip"}),n.el().appendChild(n.tooltip),n.addClass("vjs-keep-tooltips-inside")),n.update(0,0),s.on("ready",function(){var e,r;n.on(s.controlBar.progressControl.el(),"mousemove",(e=t8(er(n),n.handleMouseMove),r=Date.now(),function(){var s=Date.now();s-r>=25&&(e.apply(void 0,arguments),r=s)}))}),n}eo(s,e);var r=s.prototype;return r.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},r.handleMouseMove=function(e){var s=this.t.duration(),r=this.calculateDistance(e)*s,n=e.pageX-td(this.el().parentNode).left;this.update(r,n)},r.update=function(e,s){var r=su(e,this.t.duration());if(this.el().style.left=s+"px",this.el().setAttribute("data-current-time",r),this.keepTooltipsInside){var n=s-this.Dt(s)+1,o=T(sm(this.tooltip,"width"))/2;this.tooltip.innerHTML=r,this.tooltip.style.right="-"+(o-n)+"px"}},r.calculateDistance=function(e){return tp(this.el().parentNode,e).x},r.Dt=function(e){if(!this.keepTooltipsInside)return e;var s=T(sm(this.player().el(),"width")),r=T(sm(this.tooltip,"width"))/2,n=e;return e<r?n=b.ceil(r):e>s-r&&(n=b.floor(s-r)),n},s}(ei);ei.registerComponent("MouseTimeDisplay",sT);var sx=function(e){function s(){return e.apply(this,arguments)||this}return eo(s,e),s.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},s}(ei);sx.prototype.h={children:["seekBar"]},ei.registerComponent("ProgressControl",sx);var sE=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).on(s,"fullscreenchange",n.handleFullscreenChange),n}eo(s,e);var r=s.prototype;return r.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},r.handleFullscreenChange=function(e){this.t.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},r.handleClick=function(e){this.t.isFullscreen()?this.t.exitFullscreen():this.t.requestFullscreen()},s}(so);sE.prototype.St="Fullscreen",ei.registerComponent("FullscreenToggle",sE);var sS=function(e){function s(){return e.apply(this,arguments)||this}return eo(s,e),s.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},s}(ei);
1ei.registerComponent("VolumeLevel",sS);var sw=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).on(s,"volumechange",n.updateARIAAttributes),s.ready(t8(er(n),n.updateARIAAttributes)),n}eo(s,e);var r=s.prototype;return r.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},r.handleMouseMove=function(e){this.checkMuted(),this.t.volume(this.calculateDistance(e))},r.checkMuted=function(){this.t.muted()&&this.t.muted(!1)},r.getPercent=function(){return this.t.muted()?0:this.t.volume()},r.stepForward=function(){this.checkMuted(),this.t.volume(this.t.volume()+.1)},r.stepBack=function(){this.checkMuted(),this.t.volume(this.t.volume()-.1)},r.updateARIAAttributes=function(e){var s=(100*this.t.volume()).toFixed(2);this.v.setAttribute("aria-valuenow",s),this.v.setAttribute("aria-valuetext",s+"%")},s}(sg);sw.prototype.h={children:["volumeLevel"],barName:"volumeLevel"},sw.prototype.playerEvent="volumechange",ei.registerComponent("VolumeBar",sw);var sN=function(e){function s(s,r){var n;return n=e.call(this,s,r)||this,s.H&&!1===s.H.featuresVolumeControl&&n.addClass("vjs-hidden"),n.on(s,"loadstart",function(){!1===s.H.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),n}return eo(s,e),s.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},s}(ei);sN.prototype.h={children:["volumeBar"]},ei.registerComponent("VolumeControl",sN);var sL=function(e){function s(){return e.apply(this,arguments)||this}eo(s,e);var r=s.prototype;return r.addItem=function(e){this.addChild(e),e.on("click",t8(this,function(){this.unlockShowing()}))},r.createEl=function(){var s=this.h.contentElType||"ul";this.S=K(s,{className:"vjs-menu-content"});var r=e.prototype.createEl.call(this,"div",{append:this.S,className:"vjs-menu"});return r.appendChild(this.S),tQ(r,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),r},s}(ei);ei.registerComponent("Popup",sL);var sA=function(e){function s(s,r){var n;return void 0===r&&(r={}),(n=e.call(this,s,r)||this).update(),n}eo(s,e);var r=s.prototype;return r.update=function(){var e=this.createPopup();this.popup&&this.removeChild(this.popup),this.popup=e,this.addChild(e),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},r.createPopup=function(){},r.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},r.buildCSSClass=function(){var s="vjs-menu-button";return!0===this.h.inline?s+="-inline":s+="-popup","vjs-menu-button "+s+" "+e.prototype.buildCSSClass.call(this)},s}(i7);ei.registerComponent("PopupButton",sA);var sP=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).on(s,"volumechange",n.update),s.H&&!1===s.H.featuresVolumeControl&&n.addClass("vjs-hidden"),n.on(s,"loadstart",function(){this.update(),!1===s.H.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),n}eo(s,e);var r=s.prototype;return r.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},r.handleClick=function(e){this.t.muted(!this.t.muted())},r.update=function(e){var s=this.t.volume(),r=3;this.t.muted()?r=0:s<.33?r=1:s<.67&&(r=2);var n=this.t.muted()?"Unmute":"Mute";this.controlText()!==n&&this.controlText(n);for(var o=0;o<4;o++)to(this.v,"vjs-vol-"+o);tn(this.v,"vjs-vol-"+r)},s}(so);sP.prototype.St="Mute",ei.registerComponent("MuteToggle",sP);var sI=function(e){function s(s,r){var n;function o(){s.H&&!1===s.H.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}return void 0===r&&(r={}),void 0===r.inline&&(r.inline=!0),void 0===r.vertical&&(r.inline?r.vertical=!1:r.vertical=!0),r.volumeBar=r.volumeBar||{},r.volumeBar.vertical=!!r.vertical,(n=e.call(this,s,r)||this).on(s,"volumechange",n.volumeUpdate),n.on(s,"loadstart",n.volumeUpdate),o.call(er(n)),n.on(s,"loadstart",o),n.on(n.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),n.on(n.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),n.on(n.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),n.on(n.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")}),n}eo(s,e);var r=s.prototype;return r.buildCSSClass=function(){var s="";return s=this.h.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+e.prototype.buildCSSClass.call(this)+" "+s},r.createPopup=function(){var e=new sL(this.t,{contentElType:"div"}),s=new sw(this.t,this.h.volumeBar);return e.addChild(s),this.menuContent=e,this.volumeBar=s,this.attachVolumeBarEvents(),e},r.handleClick=function(s){sP.prototype.handleClick.call(this),e.prototype.handleClick.call(this)},r.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],t8(this,this.handleMouseDown))},r.handleMouseDown=function(e){this.on(["mousemove","touchmove"],t8(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.v.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},r.handleMouseUp=function(e){this.off(["mousemove","touchmove"],t8(this.volumeBar,this.volumeBar.handleMouseMove))},s}(sA);sI.prototype.volumeUpdate=sP.prototype.update,sI.prototype.St="Mute",ei.registerComponent("
1VolumeMenuButton",sI);var sj=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).$t=-1,n.on("keydown",n.handleKeyPress),n}eo(s,e);var r=s.prototype;return r.addItem=function(e){this.addChild(e),e.on("click",t8(this,function(e){this.unlockShowing()}))},r.createEl=function(){var s=this.h.contentElType||"ul";this.S=K(s,{className:"vjs-menu-content"}),this.S.setAttribute("role","menu");var r=e.prototype.createEl.call(this,"div",{append:this.S,className:"vjs-menu"});return r.setAttribute("role","presentation"),r.appendChild(this.S),tQ(r,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),r},r.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepForward()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepBack())},r.stepForward=function(){var e=0;void 0!==this.$t&&(e=this.$t+1),this.focus(e)},r.stepBack=function(){var e=0;void 0!==this.$t&&(e=this.$t-1),this.focus(e)},r.focus=function(e){void 0===e&&(e=0);var s=this.children().slice();s.length&&s[0].className&&/vjs-menu-title/.test(s[0].className)&&s.shift(),s.length>0&&(e<0?e=0:e>=s.length&&(e=s.length-1),this.$t=e,s[e].v.focus())},s}(ei);ei.registerComponent("Menu",sj);var sM=function(e){function s(s,r){var n;return void 0===r&&(r={}),(n=e.call(this,s,r)||this).update(),n.Ut=!0,n.v.setAttribute("aria-haspopup","true"),n.v.setAttribute("role","menuitem"),n.on("keydown",n.handleSubmenuKeyPress),n}eo(s,e);var r=s.prototype;return r.update=function(){var e=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=e,this.addChild(e),this.Rt=!1,this.v.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.Ot?this.hide():this.show()},r.createMenu=function(){var e=new sj(this.t);if(this.Ot=0,this.h.title){var s=K("li",{className:"vjs-menu-title",innerHTML:et(this.h.title),tabIndex:-1});this.Ot+=1,e.m.unshift(s),Z(s,e.contentEl())}if(this.items=this.createItems(),this.items)for(var r=0;r<this.items.length;r++)e.addItem(this.items[r]);return e},r.createItems=function(){},r.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},r.buildCSSClass=function(){var s="vjs-menu-button";return!0===this.h.inline?s+="-inline":s+="-popup","vjs-menu-button "+s+" "+e.prototype.buildCSSClass.call(this)},r.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",t8(this,function(e){this.unpressButton(),this.v.blur()})),this.Rt?this.unpressButton():this.pressButton()},r.handleKeyPress=function(s){27===s.which||9===s.which?(this.Rt&&this.unpressButton(),9!==s.which&&s.preventDefault()):38===s.which||40===s.which?this.Rt||(this.pressButton(),s.preventDefault()):e.prototype.handleKeyPress.call(this,s)},r.handleSubmenuKeyPress=function(e){27!==e.which&&9!==e.which||(this.Rt&&this.unpressButton(),9!==e.which&&e.preventDefault())},r.pressButton=function(){this.Ut&&(this.Rt=!0,this.menu.lockShowing(),this.v.setAttribute("aria-expanded","true"),this.menu.focus())},r.unpressButton=function(){this.Ut&&(this.Rt=!1,this.menu.unlockShowing(),this.v.setAttribute("aria-expanded","false"),this.v.focus())},r.disable=function(){return this.Rt=!1,this.menu.unlockShowing(),this.v.setAttribute("aria-expanded","false"),this.Ut=!1,e.prototype.disable.call(this)},r.enable=function(){return this.Ut=!0,e.prototype.enable.call(this)},s}(i7);ei.registerComponent("MenuButton",sM);var sO=function(e){function s(s,r){var n,o=r.tracks;if((n=e.call(this,s,r)||this).items.length<=1&&n.hide(),!o)return er(n);var a=t8(er(n),n.update);return o.addEventListener("removetrack",a),o.addEventListener("addtrack",a),n.t.on("dispose",function(){o.removeEventListener("removetrack",a),o.removeEventListener("addtrack",a)}),n}return eo(s,e),s}(sM);ei.registerComponent("TrackButton",sO);var sD=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).selectable=r.selectable,n.selected(r.selected),n.selectable?n.v.setAttribute("role","menuitemcheckbox"):n.v.setAttribute("role","menuitem"),n}eo(s,e);var r=s.prototype;return r.createEl=function(s,r,n){this.nonIconControl=!0;var o=e.prototype.createEl.call(this,"li",H({className:"vjs-menu-item",tabIndex:-1},r),n);return this.Vt=P.createTextNode(this.localize(this.h.label)),o.appendChild(this.Vt),o},r.handleClick=function(e){this.selected(!0)},r.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.v.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.v.setAttribute("aria-checked","fal
1se"),this.controlText("")))},r.handleLanguagechange=function(){e.prototype.handleLanguagechange.call(this),this.Vt.innerHTML=this.localize(this.h.label)},s}(i7);ei.registerComponent("MenuItem",sD);var sB=function(e){function s(s,r){var n,o,a=r.track,h=s.textTracks();if(r.label=a.label||a.language||"Unknown",r.selected=a.default||"showing"===a.mode,(n=e.call(this,s,r)||this).track=a,h){var l=t8(er(n),n.handleTracksChange);s.on(["loadstart","texttrackchange"],l),h.addEventListener("change",l),n.on("dispose",function(){h.removeEventListener("change",l)})}return h&&void 0===h.onchange&&n.on(["tap","click"],function(){if("object"!=typeof A.Event)try{o=new A.Event("change")}catch(e){}o||(o=P.createEvent("Event")).initEvent("change",!0,!0),h.dispatchEvent(o)}),n}eo(s,e);var r=s.prototype;return r.handleClick=function(s){var r=this.track.kind,n=this.t.textTracks();if(e.prototype.handleClick.call(this,s),n)for(var o=0;o<n.length;o++){var a=n[o];a.kind===r&&(a===this.track?"showing"!==a.mode&&(a.mode="showing"):"disabled"!==a.mode&&(a.mode="disabled"))}},r.handleTracksChange=function(e){this.selected("showing"===this.track.mode)},s}(sD);ei.registerComponent("TextTrackMenuItem",sB);var sH=function(e){function s(s,r){var n;return r.track={player:s,kind:r.kind,label:r.kind+" off",default:!1,mode:"disabled"},r.selectable=!0,(n=e.call(this,s,r)||this).selected(!0),n}return eo(s,e),s.prototype.handleTracksChange=function(e){for(var s=this.player().textTracks(),r=!0,n=0,o=s.length;n<o;n++){var a=s[n];if(a.kind===this.track.kind&&"showing"===a.mode){r=!1;break}}this.selected(r)},s}(sB);ei.registerComponent("OffTextTrackMenuItem",sH);var sF=function(e){function s(s,r){return void 0===r&&(r={}),r.tracks=s.textTracks(),e.call(this,s,r)||this}return eo(s,e),s.prototype.createItems=function(e){void 0===e&&(e=[]),e.push(new sH(this.t,{kind:this.Lt})),this.Ot+=1;var s=this.t.textTracks();if(!s)return e;for(var r=0;r<s.length;r++){var n=s[r];n.kind===this.Lt&&e.push(new sB(this.t,{track:n,selectable:!0}))}return e},s}(sO);ei.registerComponent("TextTrackButton",sF);var sR=function(e){function s(s,r){var n,o=r.track,a=r.cue,h=s.currentTime();return r.selectable=!0,r.label=a.text,r.selected=a.startTime<=h&&h<a.endTime,(n=e.call(this,s,r)||this).track=o,n.cue=a,o.addEventListener("cuechange",t8(er(n),n.update)),n}eo(s,e);var r=s.prototype;return r.handleClick=function(s){e.prototype.handleClick.call(this),this.t.currentTime(this.cue.startTime),this.update(this.cue.startTime)},r.update=function(e){var s=this.cue,r=this.t.currentTime();this.selected(s.startTime<=r&&r<s.endTime)},s}(sD);ei.registerComponent("ChaptersTrackMenuItem",sR);var sV=function(e){function s(s,r,n){var o;return(o=e.call(this,s,r,n)||this).v.setAttribute("aria-label","Chapters Menu"),o}eo(s,e);var r=s.prototype;return r.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},r.update=function(s){this.Ht&&(!s||"addtrack"!==s.type&&"removetrack"!==s.type)||this.setTrack(this.findChaptersTrack()),e.prototype.update.call(this)},r.setTrack=function(e){if(this.Ht!==e){if(this.qt||(this.qt=this.update.bind(this)),this.Ht){var s=this.t.remoteTextTrackEls().Y(this.Ht);s&&s.removeEventListener("load",this.qt),this.Ht=null}if(this.Ht=e,this.Ht){this.Ht.mode="hidden";var r=this.t.remoteTextTrackEls().Y(this.Ht);r&&r.addEventListener("load",this.qt)}}}
1,r.findChaptersTrack=function(){for(var e=this.t.textTracks()||[],s=e.length-1;s>=0;s--){var r=e[s];if(r.kind===this.Lt)return r}},r.getMenuCaption=function(){return this.Ht&&this.Ht.label?this.Ht.label:this.localize(et(this.Lt))},r.createMenu=function(){return this.h.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},r.createItems=function(){var e=[];if(!this.Ht)return e;var s=this.Ht.cues;if(!s)return e;for(var r=0,n=s.length;r<n;r++){var o=s[r],a=new sR(this.t,{track:this.Ht,cue:o});e.push(a)}return e},s}(sF);sV.prototype.Lt="chapters",sV.prototype.St="Chapters",ei.registerComponent("ChaptersButton",sV);var sU=function(e){function s(s,r,n){(o=e.call(this,s,r,n)||this).v.setAttribute("aria-label","Descriptions Menu");var o,a=s.textTracks();if(a){var h=t8(er(o),o.handleTracksChange);a.addEventListener("change",h),o.on("dispose",function(){a.removeEventListener("change",h)})}return o}eo(s,e);var r=s.prototype;return r.handleTracksChange=function(e){for(var s=this.player().textTracks(),r=!1,n=0,o=s.length;n<o;n++){var a=s[n];if(a.kind!==this.Lt&&"showing"===a.mode){r=!0;break}}r?this.disable():this.enable()},r.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},s}(sF);sU.prototype.Lt="descriptions",sU.prototype.St="Descriptions",ei.registerComponent("DescriptionsButton",sU);var s$=function(e){function s(s,r,n){var o;return(o=e.call(this,s,r,n)||this).v.setAttribute("aria-label","Subtitles Menu"),o}return eo(s,e),s.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},s}(sF);s$.prototype.Lt="subtitles",s$.prototype.St="Subtitles",ei.registerComponent("SubtitlesButton",s$);var sz=function(e){function s(s,r){var n;return r.track={player:s,kind:r.kind,label:r.kind+" settings",selectable:!1,default:!1,mode:"disabled"},r.selectable=!1,(n=e.call(this,s,r)||this).addClass("vjs-texttrack-settings"),n.controlText(", opens "+r.kind+" settings dialog"),n}return eo(s,e),s.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").v.focus()},s}(sB);ei.registerComponent("CaptionSettingsMenuItem",sz);var s_=function(e){function s(s,r,n){var o;return(o=e.call(this,s,r,n)||this).v.setAttribute("aria-label","Captions Menu"),o}eo(s,e);var r=s.prototype;return r.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},r.createItems=function(){var s=[];return this.player().H&&this.player().H.featuresNativeTextTracks||(s.push(new sz(this.t,{kind:this.Lt})),this.Ot+=1),e.prototype.createItems.call(this,s)},s}(sF);
1s_.prototype.Lt="captions",s_.prototype.St="Captions",ei.registerComponent("CaptionsButton",s_);var sq=function(e){function s(s,r){var n,o=r.track,a=s.audioTracks();if(r.label=o.label||o.language||"Unknown",r.selected=o.enabled,(n=e.call(this,s,r)||this).track=o,a){var h=t8(er(n),n.handleTracksChange);a.addEventListener("change",h),n.on("dispose",function(){a.removeEventListener("change",h)})}return n}eo(s,e);var r=s.prototype;return r.handleClick=function(s){var r=this.t.audioTracks();if(e.prototype.handleClick.call(this,s),r)for(var n=0;n<r.length;n++){var o=r[n];o.enabled=o===this.track}},r.handleTracksChange=function(e){this.selected(this.track.enabled)},s}(sD);ei.registerComponent("AudioTrackMenuItem",sq);var sW=function(e){function s(s,r){var n;return void 0===r&&(r={}),r.tracks=s.audioTracks&&s.audioTracks(),(n=e.call(this,s,r)||this).v.setAttribute("aria-label","Audio Menu"),n}eo(s,e);var r=s.prototype;return r.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},r.createItems=function(e){void 0===e&&(e=[]),this.Ot=1;var s=this.t.audioTracks&&this.t.audioTracks();if(!s)return e;for(var r=0;r<s.length;r++){var n=s[r];e.push(new sq(this.t,{track:n,selectable:!0}))}return e},s}(sO);sW.prototype.St="Audio Track",ei.registerComponent("AudioTrackButton",sW);var sY=function(e){function s(s,r){var n,o=r.rate,a=T(o,10);return r.label=o,r.selected=1===a,r.selectable=!0,(n=e.call(this,s,r)||this).label=o,n.rate=a,n.on(s,"ratechange",n.update),n}eo(s,e);var r=s.prototype;return r.handleClick=function(s){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},r.update=function(e){this.selected(this.player().playbackRate()===this.rate)},s}(sD);sY.prototype.contentElType="button",ei.registerComponent("PlaybackRateMenuItem",sY);var sX=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).updateVisibility(),n.updateLabel(),n.on(s,"loadstart",n.updateVisibility),n.on(s,"ratechange",n.updateLabel),n}eo(s,e);var r=s.prototype;return r.createEl=function(){var s=e.prototype.createEl.call(this);return this.Vt=K("div",{className:"vjs-playback-rate-value",innerHTML:1}),s.appendChild(this.Vt),s},r.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},r.createMenu=function(){var e=new sj(this.player()),s=this.playbackRates();if(s)for(var r=s.length-1;r>=0;r--)e.addChild(new sY(this.player(),{rate:s[r]+"x"}));return e},r.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},r.handleClick=function(e){for(var s=this.player().playbackRate(),r=this.playbackRates(),n=r[0],o=0;o<r.length;o++)if(r[o]>s){n=r[o];break}this.player().playbackRate(n)},r.playbackRates=function(){return this.h.playbackRates||this.h.playerOptions&&this.h.playerOptions.playbackRates},r.playbackRateSupported=function(){return this.player().H&&this.player().H.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},r.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},r.updateLabel=function(e){this.playbackRateSupported()&&(this.Vt.innerHTML=this.player().playbackRate()+"x")},s}(sM);sX.prototype.St="Playback Rate",ei.registerComponent("PlaybackRateMenuButton",sX);var sG=function(e){function s(){return e.apply(this,arguments)||this}eo(s,e);var r=s.prototype;return r.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},r.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},s}(ei);ei.registerComponent("Spacer",sG);var sK=function(e){function s(){return e.apply(this,arguments)||this}eo(s,e);var r=s.prototype;return r.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},r.createEl=function(){var s=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return s.innerHTML=" ",s},s}(sG);ei.registerComponent("CustomControlSpacer",sK);var sJ=function(e){function s(){return e.apply(this,arguments)||this}return eo(s,e),s.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},s}(ei);sJ.prototype.h={children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]},ei.registerComponent("ControlBar",sJ);var sZ=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).on(s,"error",n.open),n}eo(s,e);var r=s.prototype;return r.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},r.content=function(){var e=this.player().error();return e?this.localize(e.message):""},s}(ex);
1sZ.prototype.h=ee(ex.prototype.h,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),ei.registerComponent("ErrorDisplay",sZ);var sQ="vjs-text-track-settings",s0=["#000","Black"],s1=["#00F","Blue"],s2=["#0FF","Cyan"],s3=["#0F0","Green"],s5=["#F0F","Magenta"],s4=["#F00","Red"],s6=["#FFF","White"],s9=["#FF0","Yellow"],s7=["1","Opaque"],s8=["0.5","Semi-Transparent"],rt=["0","Transparent"],re={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[s0,s6,s4,s3,s1,s9,s5,s2]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[s7,s8,rt]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[s6,s0,s4,s3,s1,s9,s5,s2]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[s7,s8]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[rt,s8,s7]}};function ri(e,s){if(s&&(e=s(e)),e&&"none"!==e)return e}re.windowColor.options=re.backgroundColor.options;var rs,rr=function(e){function s(s,r){var n;return(n=e.call(this,s,r)||this).setDefaults(),n.hide(),n.updateDisplay=t8(er(n),n.updateDisplay),void 0===r.persistTextTrackSettings&&(n.h.persistTextTrackSettings=n.h.playerOptions.persistTextTrackSettings),n.on(n.$(".vjs-done-button"),"click",function(){n.saveSettings(),n.hide()}),n.on(n.$(".vjs-default-button"),"click",function(){n.setDefaults(),n.updateDisplay()}),B(re,function(e){n.on(n.$(e.selector),"change",n.updateDisplay)}),n.h.persistTextTrackSettings&&n.restoreSettings(),n}eo(s,e);var r=s.prototype;return r.zt=function(e){var s=this,r=re[e],n=r.id.replace("%s",this.o);return[K("label",{className:"vjs-label",textContent:r.label},{for:n}),K("select",{id:n},void 0,r.options.map(function(e){return K("option",{textContent:s.localize(e[1]),value:e[0]})}))]},r.Wt=function(){var e=K("legend",{textContent:this.localize("Text")}),s=this.zt("color"),r=K("span",{className:"vjs-text-opacity vjs-opacity"},void 0,this.zt("textOpacity"));return K("fieldset",{className:"vjs-fg-color vjs-tracksetting"},void 0,[e].concat(s,r))},r.Gt=function(){var e=K("legend",{textContent:this.localize("Background")}),s=this.zt("backgroundColor"),r=K("span",{className:"vjs-bg-opacity vjs-opacity"},void 0,this.zt("backgroundOpacity"));return K("fieldset",{className:"vjs-bg-color vjs-tracksetting"},void 0,[e].concat(s,r))},r.Xt=function(){var e=K("legend",{textContent:this.localize("Window")}),s=this.zt("windowColor"),r=K("span",{className:"vjs-window-opacity vjs-opacity"},void 0,this.zt("windowOpacity"));return K("fieldset",{className:"vjs-window-color vjs-tracksetting"},void 0,[e].concat(s,r))},r.Jt=function(){return K("div",{className:"vjs-tracksettings-colors"},void 0,[this.Wt(),this.Gt(),this.Xt()])},r.Qt=function(){var e=K("div",{className:"vjs-font-percent vjs-tracksetting"},void 0,this.zt("fontPercent")),s=K("div",{className:"vjs-edge-style vjs-tracksetting"},void 0,this.zt("edgeStyle")),r=K("div",{className:"vjs-font-family vjs-tracksetting"},void 0,this.zt("fontFamily"));return K("div",{className:"vjs-tracksettings-font"},void 0,[e,s,r])},r.Yt=function(){var e=K("button",{className:"vjs-default-button",textContent:this.localize("Defaults")}),s=K("button",{className:"vjs-done-button",textContent:"Done"});return K("div",{className:"vjs-tracksettings-controls"},void 0,[e,s])},r.createEl=function(){var e=K("div",{className:"vjs-tracksettings"},void 0,[this.Jt(),this.Qt(),this.Yt()]),s=K("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.o,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"}),r=K("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.o,textContent:"Beginning of dialog window. Escape will cancel and close the window."}),n=K("div",void 0,{role:"document"},[s,r,e]);return K("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":s.id,"aria-describedby":r.id},n)},r.getValues=function(){var e,s,r=this;return e=function(e,s,n){var o,a,h=(o=r.$(s.selector),a=s.parser,ri(o.options[o.options.selectedIndex].value,a));return void 0!==h&&(e[n]=h),e},s={},D(re).reduce(function(s,r){return e(s,re[r],r)},s)},r.setValues=function(e){var s=this;B(re,function(r,n){!function(e,s,r){if(s){for(var n=0;n<e.options.length;n++)if(ri(e.options[n].value,r)===s){e.selectedIndex=n;break}}}(s.$(r.selector),e[n],r.parser)})},r.setDefaults=function(){var e=this;
1B(re,function(s){var r=s.hasOwnProperty("default")?s.default:0;e.$(s.selector).selectedIndex=r})},r.restoreSettings=function(){var e;try{e=JSON.parse(A.localStorage.getItem(sQ))}catch(e){$.warn(e)}e&&this.setValues(e)},r.saveSettings=function(){if(this.h.persistTextTrackSettings){var e=this.getValues();try{C.keys(e).length?A.localStorage.setItem(sQ,JSON.stringify(e)):A.localStorage.removeItem(sQ)}catch(e){$.warn(e)}}},r.updateDisplay=function(){var e=this.t.getChild("textTrackDisplay");e&&e.updateDisplay()},s}(ei);ei.registerComponent("TextTrackSettings",rr);var rn,ro=function(e){function s(s,r){var n=e.call(this,s,r)||this,o=s.source,a=!1;if(o&&(n.v.currentSrc!==o.src||s.tag&&3===s.tag.Kt)?n.setSource(o):n.Zt(n.v),n.v.hasChildNodes()){for(var h=n.v.childNodes,l=h.length,u=[];l--;){var c=h[l];"track"===c.nodeName.toLowerCase()&&(n.featuresNativeTextTracks?(n.remoteTextTrackEls().J(c),n.remoteTextTracks().tt(c.track),a||n.v.hasAttribute("crossorigin")||!eI(c.src)||(a=!0)):u.push(c))}for(var d=0;d<u.length;d++)n.v.removeChild(u[d])}return["audio","video"].forEach(function(e){var s=n.el()[e+"Tracks"],r=n[e+"Tracks"](),o=et(e);n["featuresNative"+o+"Tracks"]&&s&&s.addEventListener&&(n["handle"+o+"ti"]=function(e){r.trigger({type:"change",target:r,currentTarget:r,srcElement:r})},n["handle"+o+"ii"]=function(e){return r.addTrack(e.track)},n["handle"+o+"si"]=function(e){return r.removeTrack(e.track)},s.addEventListener("change",n["handle"+o+"ti"]),s.addEventListener("addtrack",n["handle"+o+"ii"]),s.addEventListener("removetrack",n["handle"+o+"si"]),n["removeOld"+o+"ei"]=function(e){return n.ni(r,s)},n.on("loadstart",n["removeOld"+o+"ei"]))}),n.featuresNativeTextTracks&&(a&&$.warn(_(rs||(rs=I(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."])))),n.ri=t8(er(n),n.handleTextTrackChange),n.hi=t8(er(n),n.handleTextTrackAdd),n.oi=t8(er(n),n.handleTextTrackRemove),n.ai()),n.ci(),(t_||tL||tD)&&!0===s.nativeControlsForTouch&&n.setControls(!0),n.di(),n.triggerReady(),n}eo(s,e);var r=s.prototype;return r.dispose=function(){var r=this;["audio","video","text"].forEach(function(e){var s=et(e),n=r.v[e+"Tracks"];n&&n.removeEventListener&&(n.removeEventListener("change",r["handle"+s+"ti"]),n.removeEventListener("addtrack",r["handle"+s+"ii"]),n.removeEventListener("removetrack",r["handle"+s+"si"])),n&&r.off("loadstart",r["removeOld"+s+"ei"])}),s.disposeMediaElement(this.v),e.prototype.dispose.call(this)},r.ci=function(){var e,s=this.textTracks(),r=function(){e=[];for(var r=0;r<s.length;r++){var n=s[r];"metadata"===n.kind&&e.push({track:n,storedMode:n.mode})}};r(),s.addEventListener("change",r);var n=function r(){for(var n=0;n<e.length;n++){var o=e[n];"disabled"===o.track.mode&&o.track.mode!==o.storedMode&&(o.track.mode=o.storedMode)}s.removeEventListener("change",r)};this.on("webkitbeginfullscreen",function(){s.removeEventListener("change",r),s.removeEventListener("change",n),s.addEventListener("change",n)}),this.on("webkitendfullscreen",function(){s.removeEventListener("change",r),s.addEventListener("change",r),s.removeEventListener("change",n)})},r.createEl=function(){var e=this.h.tag;if(!e||!this.h.playerElIngest&&!this.movingMediaElementInDOM){if(e){var r=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(r,e),s.disposeMediaElement(e),e=r}else{e=P.createElement("video");var n=ee({},this.h.tag&&tl(this.h.tag));t_&&!0===this.h.nativeControlsForTouch||delete n.controls,th(e,H(n,{id:this.h.techId,class:"vjs-tech"}))}e.playerId=this.h.playerId}void 0!==this.h.preload&&tu(e,"preload",this.h.preload);for(var o=["loop","muted","playsinline","autoplay"],a=o.length-1;a>=0;a--){var h=o[a],l=this.h[h];void 0!==l&&(l?tu(e,h,h):tc(e,h),e[h]=l)}return e},r.Zt=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var s=!1,r=function(){s=!0};this.on("loadstart",r);var n=function(){s||this.trigger("loadstart")};return this.on("loadedmetadata",n),void this.ready(function(){this.off("loadstart",r),this.off("loadedmetadata",n),s||this.trigger("loadstart")})}var o=["loadstart"];o.push("loadedmetadata"),e.readyState>=2&&o.push("loadeddata"),e.readyState>=3&&o.push("canplay"),e.readyState>=4&&o.push("canplaythrough"),this.ready(function(){o.forEach(function(e){this.trigger(e)},this)})}},r.ai=function(){var e=this.el().textTracks;
1if(e){for(var s=0;s<e.length;s++)this.textTracks().tt(e[s]);e.addEventListener&&(e.addEventListener("change",this.ri),e.addEventListener("addtrack",this.hi),e.addEventListener("removetrack",this.oi)),this.on("loadstart",this.fi)}},r.handleTextTrackChange=function(e){var s=this.textTracks();this.textTracks().trigger({type:"change",target:s,currentTarget:s,srcElement:s})},r.handleTextTrackAdd=function(e){this.textTracks().tt(e.track)},r.handleTextTrackRemove=function(e){this.textTracks().it(e.track)},r.ni=function(e,s){var r=[];if(s){for(var n=0;n<e.length;n++){for(var o=e[n],a=!1,h=0;h<s.length;h++)if(s[h]===o){a=!0;break}a||r.push(o)}for(var l=0;l<r.length;l++){var u=r[l];e.it(u)}}},r.fi=function(e){var s=this.textTracks(),r=this.el().textTracks;this.ni(s,r)},r.play=function(){var e=this.v.play();void 0!==e&&"function"==typeof e.then&&e.then(null,function(e){})},r.setCurrentTime=function(e){try{this.v.currentTime=e}catch(e){$(e,"Video is not ready. (Video.js)")}},r.duration=function(){var e=this;return this.v.duration===1/0&&tj&&tF&&0===this.v.currentTime?(this.on("timeupdate",function s(){e.v.currentTime>0&&(e.v.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",s))}),NaN):this.v.duration||NaN},r.width=function(){return this.v.offsetWidth},r.height=function(){return this.v.offsetHeight},r.di=function(){var e=this;if("webkitDisplayingFullscreen"in this.v){var s=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},r=function(){"webkitPresentationMode"in this.v&&"picture-in-picture"!==this.v.webkitPresentationMode&&(this.one("webkitendfullscreen",s),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",r),this.on("dispose",function(){e.off("webkitbeginfullscreen",r),e.off("webkitendfullscreen",s)})}},r.supportsFullScreen=function(){if("function"==typeof this.v.webkitEnterFullScreen){var e=A.navigator&&A.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},r.enterFullScreen=function(){var e=this.v;e.paused&&e.networkState<=e.HAVE_METADATA?(this.v.play(),this.setTimeout(function(){e.pause(),e.webkitEnterFullScreen()},0)):e.webkitEnterFullScreen()},r.exitFullScreen=function(){this.v.webkitExitFullScreen()},r.src=function(e){if(void 0===e)return this.v.src;this.setSrc(e)},r.reset=function(){s.resetMediaElement(this.v)},r.currentSrc=function(){return this.bt?this.bt.src:this.v.currentSrc},r.setControls=function(e){this.v.controls=!!e},r.addTextTrack=function(s,r,n){return this.featuresNativeTextTracks?this.v.addTextTrack(s,r,n):e.prototype.addTextTrack.call(this,s,r,n)},r.createRemoteTextTrack=function(s){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,s);var r=P.createElement("track");return s.kind&&(r.kind=s.kind),s.label&&(r.label=s.label),(s.language||s.srclang)&&(r.srclang=s.language||s.srclang),s.default&&(r.default=s.default),s.id&&(r.id=s.id),s.src&&(r.src=s.src),r},r.addRemoteTextTrack=function(s,r){var n=e.prototype.addRemoteTextTrack.call(this,s,r);return this.featuresNativeTextTracks&&this.el().appendChild(n),n},r.removeRemoteTextTrack=function(s){if(e.prototype.removeRemoteTextTrack.call(this,s),this.featuresNativeTextTracks)for(var r=this.$$("track"),n=r.length;n--;)s!==r[n]&&s!==r[n].track||this.el().removeChild(r[n])},r.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),A.performance&&"function"==typeof A.performance.now?e.creationTime=A.performance.now():A.performance&&A.performance.timing&&"number"==typeof A.performance.timing.navigationStart&&(e.creationTime=A.Date.now()-A.performance.timing.navigationStart),e},s}(i6);Y()&&(ro.TEST_VID=P.createElement("video"),(rn=P.createElement("track")).kind="captions",rn.srclang="en",rn.label="English",ro.TEST_VID.appendChild(rn)),ro.isSupported=function(){try{ro.TEST_
1VID.volume=.5}catch(e){return!1}return!(!ro.TEST_VID||!ro.TEST_VID.canPlayType)},ro.canControlVolume=function(){try{var e=ro.TEST_VID.volume;return ro.TEST_VID.volume=e/2+.1,e!==ro.TEST_VID.volume}catch(e){return!1}},ro.canControlPlaybackRate=function(){if(tj&&tF&&tR<58)return!1;try{var e=ro.TEST_VID.playbackRate;return ro.TEST_VID.playbackRate=e/2+.1,e!==ro.TEST_VID.playbackRate}catch(e){return!1}},ro.supportsNativeTextTracks=function(){return tz},ro.supportsNativeVideoTracks=function(){return!(!ro.TEST_VID||!ro.TEST_VID.videoTracks)},ro.supportsNativeAudioTracks=function(){return!(!ro.TEST_VID||!ro.TEST_VID.audioTracks)},ro.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],ro.prototype.featuresVolumeControl=ro.canControlVolume(),ro.prototype.featuresPlaybackRate=ro.canControlPlaybackRate(),ro.prototype.movingMediaElementInDOM=!tP,ro.prototype.featuresFullscreenResize=!0,ro.prototype.featuresProgressEvents=!0,ro.prototype.featuresTimeupdateEvents=!0,ro.prototype.featuresNativeTextTracks=ro.supportsNativeTextTracks(),ro.prototype.featuresNativeVideoTracks=ro.supportsNativeVideoTracks(),ro.prototype.featuresNativeAudioTracks=ro.supportsNativeAudioTracks();var ra=ro.TEST_VID&&ro.TEST_VID.constructor.prototype.canPlayType,rh=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,rl=/^video\/mp4/i;ro.patchCanPlayType=function(){tM>=4&&!tB?ro.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&rh.test(e)?"maybe":ra.call(this,e)}:tO&&(ro.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&rl.test(e)?"maybe":ra.call(this,e)})},ro.unpatchCanPlayType=function(){var e=ro.TEST_VID.constructor.prototype.canPlayType;return ro.TEST_VID.constructor.prototype.canPlayType=ra,e},ro.patchCanPlayType(),ro.disposeMediaElement=function(e){if(e){var s=e.nodeName.toLowerCase();if("video"===s||"audio"===s){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}}},ro.resetMediaElement=function(e){if(e){for(var s=e.querySelectorAll("source"),r=s.length;r--;)e.removeChild(s[r]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){ro.prototype[e]=function(){return this.v[e]||this.v.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){ro.prototype["set"+et(e)]=function(s){this.v[e]=s,s?this.v.setAttribute(e,e):this.v.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(e){ro.prototype[e]=function(){return this.v[e]}}),["volume","src","poster","preload","playbackRate"].forEach(function(e){ro.prototype["set"+et(e)]=function(s){this.v[e]=s}}),["pause","load"].forEach(function(e){ro.prototype[e]=function(){return this.v[e]()}}),i6.withSourceHandlers(ro),ro.nativeSourceHandler={},ro.nativeSourceHandler.canPlayType=function(e){try{return ro.TEST_VID.canPlayType(e)}catch(e){return""}},ro.nativeSourceHandler.canHandleSource=function(e,s){if(e.type)return ro.nativeSourceHandler.canPlayType(e.type);if(e.src){var r=function(e){if("string"==typeof e){var s=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(e);if(s)return s.pop().toLowerCase()}return""}(e.src);return ro.nativeSourceHandler.canPlayType("video/"+r)}return""},ro.nativeSourceHandler.handleSource=function(e,s,r){s.setSrc(e.src)},ro.nativeSourceHandler.dispose=function(){},ro.registerSourceHandler(ro.nativeSourceHandler),ei.registerComponent("Html5",ro),i6.registerTech("Html5",ro);var ru=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"],rc=function(e){function s(r,n,o){if(r.id=r.id||["vjs_video",j++].join("_"),
1(n=H(s.getTagSettings(r),n)).initChildren=!1,n.createEl=!1,n.reportTouchActivity=!1,!n.language)if("function"==typeof r.closest){var a,h=r.closest("[lang]");h&&(n.language=h.getAttribute("lang"))}else for(var l=r;l&&1===l.nodeType;){if(tl(l).hasOwnProperty("lang")){n.language=l.getAttribute("lang");break}l=l.parentNode}if(!(a=e.call(this,null,n,o)||this).h||!a.h.techOrder||!a.h.techOrder.length)throw new g("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(a.tag=r,a.tagAttributes=r&&tl(r),a.language(a.h.language),n.languages){var u={};C.getOwnPropertyNames(n.languages).forEach(function(e){u[e.toLowerCase()]=n.languages[e]}),a.pi=u}else a.pi=s.prototype.h.languages;a.mi={},a.gi=n.poster||"",a.yi=!!n.controls,r.controls=!1,a.bi=!1,a.v=a.createEl();var c=ee(a.h);if(n.plugins){var d=n.plugins;C.getOwnPropertyNames(d).forEach(function(e){"function"==typeof this[e]?this[e](d[e]):$.error("Unable to find plugin:",e)},er(a))}a.h.playerOptions=c,a.initChildren(),a.isAudio("audio"===r.nodeName.toLowerCase()),a.controls()?a.addClass("vjs-controls-enabled"):a.addClass("vjs-controls-disabled"),a.v.setAttribute("role","region"),a.isAudio()?a.v.setAttribute("aria-label","audio player"):a.v.setAttribute("aria-label","video player"),a.isAudio()&&a.addClass("vjs-audio"),a.ki()&&a.addClass("vjs-no-flex"),tP||a.addClass("vjs-workinghover"),s.players[a.o]=er(a);var p="5.20.6-opentelly.14".split(".")[0];return a.addClass("vjs-v"+p),a.userActive(!0),a.reportUserActivity(),a.wi(),a.on("fullscreenchange",a._i),a.on("stageclick",a.xi),a}eo(s,e);var r=s.prototype;return r.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.Ci&&this.Ci.parentNode&&this.Ci.parentNode.removeChild(this.Ci),s.players[this.o]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.v&&this.v.player&&(this.v.player=null),this.H&&this.H.dispose(),e.prototype.dispose.call(this)},r.createEl=function(){var s,r=this.tag,n=this.Si=r.parentNode&&r.parentNode.hasAttribute&&r.parentNode.hasAttribute("data-vjs-player");s=this.v=n?r.parentNode:e.prototype.createEl.call(this,"div"),r.setAttribute("tabindex","-1"),r.removeAttribute("width"),r.removeAttribute("height");var o=tl(r);if(C.getOwnPropertyNames(o).forEach(function(e){"class"===e?s.className+=" "+o[e]:s.setAttribute(e,o[e])}),r.playerId=r.id,r.id+="ji",r.className="vjs-tech",r.player=s.player=this,this.addClass("vjs-paused"),!0!==A.VIDEOJS_NO_DYNAMIC_STYLE){this.Ci=t9("vjs-styles-dimensions");var a=tT(".vjs-styles-defaults"),h=tT("head");h.insertBefore(this.Ci,a?a.nextSibling:h.firstChild)}this.width(this.h.width),this.height(this.h.height),this.fluid(this.h.fluid),this.aspectRatio(this.h.aspectRatio);for(var l=r.getElementsByTagName("a"),u=0;u<l.length;u++){var c=l.item(u);tn(c,"vjs-hidden"),c.setAttribute("hidden","hidden")}return r.Kt=r.networkState,r.parentNode&&!n&&r.parentNode.insertBefore(s,r),Z(r,s),this.m.unshift(r),this.v=s,s},r.width=function(e){return this.dimension("width",e)},r.height=function(e){return this.dimension("height",e)},r.dimension=function(e,s){var r="width"===e?"Ti":"Mi";if(void 0===s)return this[r]||0;if(""===s)this[r]=void 0;else{var n=T(s);if(x(n))return $.error('Improper value "'+s+'" supplied for for '+e),this;this[r]=n}return this.Ai(),this},r.fluid=function(e){if(void 0===e)return!!this.Pi;this.Pi=!!e,e?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.Ai()},r.aspectRatio=function(e){if(void 0===e)return this.Ni;if(!/^\d+\:\d+$/.test(e))throw new g("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.Ni=e,this.fluid(!0),this.Ai()},r.Ai=function(){if(!0!==A.VIDEOJS_NO_DYNAMIC_STYLE){var e,s,r,n=(void 0!==this.Ni&&"auto"!==this.Ni?this.Ni:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),o=n[1]/n[0];e=void 0!==this.Ti?this.Ti:void 0!==this.Mi?this.Mi/o:this.videoWidth()||300,s=void 0!==this.Mi?this.Mi:e*o,r=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(r),t7(this.Ci,"\n ."+r+" {\n width: "+e+"px;\n height: "+s+"px;\n }\n\n ."+r+".vjs-fluid {\n padding-top: "+100*o+"%;\n }\n ")}else{var a="number"==typeof this.Ti?this.Ti:this.h.width,h="number"==typeof this.Mi?this.Mi:this.h.height,l=this.H&&this.H.el();l&&(a>=0&&(l.width=a),h>=0&&(l.height=h))}},r._t=function(e,s){var r,n,o=this;this.H&&this.Ei(),"Html5"!==e&&this.tag&&(i6.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.Bi=e,this.j=!1;var a=H({source:s,nativeControlsForTouch:this.h.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+e+"Ii",videoTracks:this.rt,textTracks:this.nt,audioTracks:this.ht,autoplay:this.h.autoplay,playsinline:this.h.playsinline,preload:this.h.preload,loop:this.h.loop,muted:this.h.muted,poster:this.poster(),language:this.language(),playerElIngest:this.Si||!1,"vtt.js":this.h["vtt.js"]},this.h[e.toLowerCase()]);this.tag&&(a.tag=this.tag),s&&(this.Fi=s.type,s.src===this.mi.src&&this.mi.currentTime>0&&(a.startTime=this.mi.currentTime),this.mi.sources=null,this.mi.source=s,this.mi.src=s.src);var h=i6.getTech(e);h||(h=ei.getComponent(e)),this.H=new h(a),this.H.ready(t8(this,this.Di),!0),r=this.$i||[],n=this.H,r.forEach(function(e){var s=n.addRemoteTextTrack(e).track;
1!e.src&&e.cues&&e.cues.forEach(function(e){return s.addCue(e)})}),n.textTracks(),ru.forEach(function(e){o.on(o.H,e,o["handleTech"+et(e)+"_"])}),this.on(this.H,"loadstart",this.Ui),this.on(this.H,"waiting",this.Ri),this.on(this.H,"canplay",this.Oi),this.on(this.H,"canplaythrough",this.Vi),this.on(this.H,"playing",this.Li),this.on(this.H,"ended",this.Hi),this.on(this.H,"seeking",this.qi),this.on(this.H,"seeked",this.zi),this.on(this.H,"play",this.Wi),this.on(this.H,"firstplay",this.Gi),this.on(this.H,"pause",this.Xi),this.on(this.H,"durationchange",this.Ji),this.on(this.H,"fullscreenchange",this.Qi),this.on(this.H,"error",this.Yi),this.on(this.H,"loadedmetadata",this.Ai),this.on(this.H,"resize",this.Ai),this.on(this.H,"posterchange",this.Ki),this.on(this.H,"textdata",this.Zi),this.usingNativeControls(this.ts("controls")),this.controls()&&!this.usingNativeControls()&&this.ss(),this.H.el().parentNode===this.contentEl()||"Html5"===e&&this.tag||Z(this.H.el(),this.contentEl()),this.tag&&(this.tag.player=null,this.tag=null)},r.Ei=function(){this.rt=this.videoTracks(),this.nt=this.textTracks(),this.ht=this.audioTracks(),this.$i=ek(this.H),this.j=!1,this.H.dispose(),this.H=!1},r.tech=function(e){if(e&&e.IWillNotUseThisInPlugins)return this.H;var s="\n Please make sure that you are not using this inside of a plugin.\n To disable this alert and error, please pass in an object with\n `IWillNotUseThisInPlugins` to the `tech` method. See\n https://github.com/videojs/video.js/issues/2617 for more info.\n ";throw A.alert(s),new g(s)},r.ss=function(){this.es(),this.on(this.H,"mousedown",this.ns),this.on(this.H,"touchstart",this.rs),this.on(this.H,"touchmove",this.hs),this.on(this.H,"touchend",this.us),this.on(this.H,"tap",this.cs)},r.es=function(){this.off(this.H,"tap",this.cs),this.off(this.H,"touchstart",this.rs),this.off(this.H,"touchmove",this.hs),this.off(this.H,"touchend",this.us),this.off(this.H,"mousedown",this.ns)},r.Di=function(){if(this.triggerReady(),this.mi.volume&&this.ls("setVolume",this.mi.volume),this.Ki(),this.Ji(),(this.src()||this.currentSrc())&&this.tag&&this.h.autoplay&&this.paused()){try{delete this.tag.poster}catch(e){$("deleting tag.poster throws in some browsers",e)}this.play()}},r.Ui=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},r.hasStarted=function(e){return void 0!==e?(this.et!==e&&(this.et=e,e?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.et},r.Wi=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},r.Ri=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return e.removeClass("vjs-waiting")})},r.Oi=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},r.Vi=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},r.Li=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},r.qi=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},r.zi=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},r.Gi=function(){this.h.starttime&&($.warn("Passing the `starttime` option to the player will be deprecated
1in 6.0"),this.currentTime(this.h.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},r.Xi=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},r.Hi=function(){this.addClass("vjs-ended"),this.h.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},r.Ji=function(){this.duration(this.ts("duration"))},r.ns=function(e){0===e.button&&this.controls()&&(void 0!==this.h&&void 0!==this.h.userActions&&void 0!==this.h.userActions.click&&!1===this.h.userActions.click||(void 0!==this.h&&void 0!==this.h.userActions&&"function"==typeof this.h.userActions.click?this.h.userActions.click.call(this,e):this.paused()?this.play():this.pause()))},r.cs=function(){this.userActive(!this.userActive())},r.rs=function(){this.userWasActive=this.userActive()},r.hs=function(){this.userWasActive&&this.reportUserActivity()},r.us=function(e){e.cancelable&&e.preventDefault()},r._i=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},r.xi=function(){this.reportUserActivity()},r.Qi=function(e,s){s&&(this.toggleClass("vjs-ios-native-fs",!(!s.nativeIOSFullscreen||!s.isFullscreen)),this.isFullscreen(s.isFullscreen)),this.trigger("fullscreenchange")},r.Yi=function(){var e=this.H.error();this.error(e)},r.Zi=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},r.getCache=function(){return this.mi},r.ls=function(e,s){if(this.H&&!this.H.j)this.H.ready(function(){this[e](s)},!0);else try{this.H&&this.H[e](s)}catch(e){throw $(e),e}},r.ts=function(e){if(this.H&&this.H.j)try{return this.H[e]()}catch(s){throw void 0===this.H[e]?$("Video.js: "+e+" method not defined for "+this.Bi+" playback technology.",s):"TypeError"===s.name?($("Video.js: "+e+" unavailable on "+this.Bi+" playback technology element.",s),this.H.j=!1):$(s),s}},r.play=function(){return this.src()||this.currentSrc()?this.ls("play"):this.H.one("loadstart",function(){this.play()}),this},r.pause=function(){return this.ls("pause"),this},r.paused=function(){return!1!==this.ts("paused")},r.scrubbing=function(e){return void 0!==e?(this.bi=!!e,e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.bi},r.currentTime=function(e){return void 0!==e?(this.ls("setCurrentTime",e),this):(this.mi.currentTime=this.ts("currentTime")||0,this.mi.currentTime)},r.duration=function(e){return void 0===e?void 0!==this.mi.duration?this.mi.duration:NaN:((e=T(e))<0&&(e=1/0),e!==this.mi.duration&&(this.mi.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},r.remainingTime=function(){return this.duration()-this.currentTime()},r.buffered=function(){var e=this.ts("buffered");return e&&e.length||(e=el(0,0)),e},r.bufferedPercent=function(){return eu(this.buffered(),this.duration())},r.bufferedEnd=function(){var e=this.buffered(),s=this.duration(),r=e.end(e.length-1);return r>s&&(r=s),r},r.volume=function(e){var s;return void 0!==e?(s=b.max(0,b.min(1,T(e))),this.mi.volume=s,this.ls("setVolume",s),this):x(s=T(this.ts("volume")))?1:s},r.muted=function(e){return void 0!==e?(this.ls("setMuted",e),this):this.ts("muted")||!1},r.supportsFullScreen=function(){return this.ts("supportsFullScreen")||!1},r.isFullscreen=function(e){return void 0!==e?(this.ds=!!e,this):!!this.ds},r.requestFullscreen=function(e){var s;return this.isFullscreen(!0),ef.requestFullscreen?(tQ(P,ef.fullscreenchange,t8(this,function e(s){this.isFullscreen(P[ef.fullscreenElement]),!1===this.isFullscreen()&&t0(P,ef.fullscreenchange,e),this.trigger("fullscreenchange")})),ef.prefixed||(s=this.h.fullscreenOptions,void 0!==e&&(s=e)),this.v[ef.requestFullscreen](s)):this.H.supportsFullScreen()?this.ls("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},r.exitFullscreen=function(){return this.isFullscreen(!1),ef.requestFullscreen?P[ef.exitFullscreen]():this.H.supportsFullScreen()?this.ls("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},r.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=P.documentElement.style.overflow,tQ(P,"keydown",t8(this,this.fullWindowOnEscKey)),P.documentElement.style.overflow="hidden",tn(P.body,"vjs-full-window"),this.trigger("enterFullWindow")}
1,r.fullWindowOnEscKey=function(e){27===e.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},r.exitFullWindow=function(){this.isFullWindow=!1,t0(P,"keydown",this.fullWindowOnEscKey),P.documentElement.style.overflow=this.docOrigOverflow,to(P.body,"vjs-full-window"),this.trigger("exitFullWindow")},r.canPlayType=function(e){for(var s,r=0,n=this.h.techOrder;r<n.length;r++){var o=et(n[r]),a=i6.getTech(o);if(a||(a=ei.getComponent(o)),a){if(a.isSupported()&&(s=a.canPlayType(e)))return s}else $.error('The "'+o+'" tech is undefined. Skipped browser support check for that tech.')}return""},r.selectSource=function(e){var s=this,r=this.h.techOrder.map(et).map(function(e){return[e,i6.getTech(e)||ei.getComponent(e)]}).filter(function(e){var s=e[0],r=e[1];return r?r.isSupported():($.error('The "'+s+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),n=function(e,s,r){var n;return e.some(function(e){return s.some(function(s){if(n=r(e,s))return!0})}),n},o=function(e,r){var n=e[0];if(e[1].canPlaySource(r,s.h[n.toLowerCase()]))return{source:r,tech:n}};return(this.h.sourceOrder?n(e,r,function(e,s){return o(s,e)}):n(r,e,o))||!1},r.src=function(e){if(void 0===e)return this.ts("src");var s=i6.getTech(this.Bi);return s||(s=ei.getComponent(this.Bi)),Array.isArray(e)?this.fs(e):"string"==typeof e?this.src({src:e}):e instanceof C&&(e.type&&!s.canPlaySource(e,this.h[this.Bi.toLowerCase()])?this.fs([e]):(this.mi.sources=null,this.mi.source=e,this.mi.src=e.src,this.Fi=e.type||"",this.ready(function(){s.prototype.hasOwnProperty("setSource")?this.ls("setSource",e):this.ls("src",e.src),"auto"===this.h.preload&&this.load(),this.h.autoplay&&this.play()},!0))),this},r.fs=function(e){var s=this.selectSource(e);s?(s.tech===this.Bi?this.src(s.source):this._t(s.tech,s.source),this.mi.sources=e):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.h.notSupportedMessage)})},0),this.triggerReady())},r.load=function(){return this.ls("load"),this},r.reset=function(){return this._t(et(this.h.techOrder[0]),null),this.ls("reset"),this},r.currentSources=function(){var e=this.currentSource(),s=[];return 0!==C.keys(e).length&&s.push(e),this.mi.sources||s},r.currentSource=function(){var e={},s=this.currentSrc();return s&&(e.src=s),this.mi.source||e},r.currentSrc=function(){return this.ts("currentSrc")||this.mi.src||""},r.currentType=function(){return this.Fi||""},r.preload=function(e){return void 0!==e?(this.ls("setPreload",e),this.h.preload=e,this):this.ts("preload")},r.autoplay=function(e){return void 0!==e?(this.ls("setAutoplay",e),this.h.autoplay=e,this):this.ts("autoplay",e)},r.playsinline=function(e){return void 0!==e?(this.ls("setPlaysinline",e),this.h.playsinline=e,this):this.ts("playsinline")},r.loop=function(e){return void 0!==e?(this.ls("setLoop",e),this.h.loop=e,this):this.ts("loop")},r.poster=function(e){return void 0===e?this.gi:(e||(e=""),this.gi=e,this.ls("setPoster",e),this.trigger("posterchange"),this)},r.Ki=function(){!this.gi&&this.H&&this.H.poster&&(this.gi=this.H.poster()||"",this.trigger("posterchange"))},r.controls=function(e){return void 0!==e?(e=!!e,this.yi!==e&&(this.yi=e,this.usingNativeControls()&&this.ls("setControls",e),e?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.ss()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.es())
1),this):!!this.yi},r.usingNativeControls=function(e){return void 0!==e?(e=!!e,this.vs!==e&&(this.vs=e,e?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.vs},r.error=function(e){return void 0===e?this.lt||null:(null===e?(this.lt=e,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close()):(this.lt=new ey(e),this.addClass("vjs-error"),$.error("(CODE:"+this.lt.code+" "+ey.errorTypes[this.lt.code]+")",this.lt.message,this.lt),this.trigger("error")),this)},r.reportUserActivity=function(e){this.ps=!0},r.userActive=function(e){return void 0!==e?((e=!!e)!==this.gs&&(this.gs=e,e?(this.ps=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.ps=!1,this.H&&this.H.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive"))),this):this.gs},r.wi=function(){var e,s,r,n,o=t8(this,this.reportUserActivity);this.on("mousedown",function(){o(),this.clearInterval(e),e=this.setInterval(o,250)}),this.on("mousemove",function(e){e.screenX===s&&e.screenY===r||(s=e.screenX,r=e.screenY,o())}),this.on("mouseup",function(s){o(),this.clearInterval(e)}),this.on("keydown",o),this.on("keyup",o),this.setInterval(function(){if(this.ps){this.ps=!1,this.userActive(!0),this.clearTimeout(n);var e=this.h.inactivityTimeout;e>0&&(n=this.setTimeout(function(){this.ps||this.userActive(!1)},e))}},250)},r.playbackRate=function(e){return void 0!==e?(this.ls("setPlaybackRate",e),this):this.H&&this.H.featuresPlaybackRate?this.ts("playbackRate"):1},r.isAudio=function(e){return void 0!==e?(this.ys=!!e,this):!!this.ys},r.videoTracks=function(){return this.H?this.H.videoTracks():(this.rt=this.rt||new i2,this.rt)},r.audioTracks=function(){return this.H?this.H.audioTracks():(this.ht=this.ht||new i5,this.ht)},r.textTracks=function(){if(this.H)return this.H.textTracks()},r.remoteTextTracks=function(){if(this.H)return this.H.remoteTextTracks()},r.remoteTextTrackEls=function(){if(this.H)return this.H.remoteTextTrackEls()},r.addTextTrack=function(e,s,r){if(this.H)return this.H.addTextTrack(e,s,r)},r.addRemoteTextTrack=function(e,s){if(this.H)return this.H.addRemoteTextTrack(e,s)},r.removeRemoteTextTrack=function(e){var s=(void 0===e?{}:e).track,r=void 0===s?arguments[0]:s;if(this.H)return this.H.removeRemoteTextTrack(r)},r.getVideoPlaybackQuality=function(){return this.ts("getVideoPlaybackQuality")},r.videoWidth=function(){return this.H&&this.H.videoWidth&&this.H.videoWidth()||0},r.videoHeight=function(){return this.H&&this.H.videoHeight&&this.H.videoHeight()||0},r.language=function(e){return void 0===e?this.bs:(this.bs!==String(e).toLowerCase()&&(this.bs=String(e).toLowerCase(),void 0!==this.v&&this.trigger("languagechange")),this)},r.languages=function(){return ee(s.prototype.h.languages,this.pi)},r.toJSON=function(){var e=ee(this.h),s=e.tracks;e.tracks=[];for(var r=0;r<s.length;r++){var n=s[r];(n=ee(n)).player=void 0,e.tracks[r]=n}return e},r.createModal=function(e,s){var r=this;(s=s||{}).content=e||"";var n=new ex(this,s);return this.addChild(n),n.on("dispose",function(){r.removeChild(n)}),n.open()},s.getTagSettings=function(e){var s={sources:[],tracks:[]},r=tl(e),n=r["data-setup"];if(tr(e,"vjs-fluid")&&(r.fluid=!0),null!==n){var o=eC(n||"{}"),a=o[0],h=o[1];a&&$.error(a),H(r,h)}if(H(s,r),e.hasChildNodes())for(var l=e.childNodes,u=0,c=l.length;u<c;u++){var d=l[u],p=d.nodeName.toLowerCase();"source"===p?s.sources.push(tl(d)):"track"===p&&s.tracks.push(tl(d))}return s},r.ki=function(){var e=P.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},s}(ei);rc.players={};var rd=A.navigator;rc.prototype.h={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:rd&&(rd.languages&&rd.languages[0]||rd.userLanguage||rd.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",fullscreenOptions:{navigationUI:"hide"}},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){rc.prototype[e]=function(){return this.ts(e)}}),ru.forEach(function(e){rc.prototype["handleTech"+et(e)+"_"]=function(){return this.trigger(e)}}),ei.registerComponent("Player",rc);var rp,rv,rf=function(e){function s(r){void 0===r&&(r={});var n,o=ee(r,{kind:ew[r.kind]||""}),a=n=e.call(this,o)||this,h=!1;if(tV)for(var l in s.prototype)"constructor"!==l&&(a[l]=s.prototype[l]);return C.defineProperty(a,"enabled",{get:function(){return h},set:function(e){"boolean"==typeof e&&e!==h&&(h=e,this.trigger("enabledchange"))}}),o.enabled&&(a.enabled=o.enabled),a.W=!0,a||er(n)}return eo(s,e),s}(eA),rg=function(e){function s(r){void 0===r&&(r={});var n,o=ee(r,{kind:eS[r.kind]||""}),a=n=e.call(this,o)||this,h=!1;if(tV)for(var l in s.prototype)"constructor"!==l&&(a[l]=s.prototype[l]);return C.defineProperty(a,"selected",{get:function(){return h},set:function(e){"boolean"==typeof e&&e!==h&&(h=e,this.trigger("selectedchange"))}}),o.selected&&(a.selected=o.selected),a||er(n)}return eo(s,e),s}(eA);function rm(e,s,r){if("string"==typeof e){var n;if(0===e.indexOf("#")&&(e=e.slice(1)),rm.getPlayers()[e])return s&&$.warn('Player "'+e+'" is already initialised. Options will not be applied.'),r&&rm.getPlayers()[e].ready(r),rm.getPlayers()[e];0===(n=e).indexOf("#")&&(n=n.slice(1)),o=P.getElementById(n)}else o=e;
1if(!o||!o.nodeName)throw new m("The element or ID supplied is not valid. (videojs)");if(o.player||rc.players[o.playerId])return o.player||rc.players[o.playerId];s=s||{},rm.hooks("beforesetup").forEach(function(e){var r=e(o,ee(s));F(r)&&!Array.isArray(r)?s=ee(s,r):$.error("please return an object in beforesetup hooks")});var o,a=new(ei.getComponent("Player"))(o,s,r);return rm.hooks("setup").forEach(function(e){return e(a)}),a}function ry(e){let s=e.duration;if(x(s)){var r;let s=null==(r=e.source)?void 0:r.streamType;return"live"===s||"dvr"===s}return s===1/0}function rC(e){return e.scrubbing()?e.getCache().currentTime:e.currentTime()}function rb(e){let s=rx(e);return ry(e)?s.end(s.length-1):s.start(0)}function rk(e){return rx(e).start(0)}function rT(e){let s=rx(e);return s.end(s.length-1)-s.start(0)}function rx(e){let s=e.seekable;if(s&&s.length)return s;let r=e.duration;return r=isFinite(r)?r:0,new a.ga([0,r])._s()}function rE(e,s){void 0===s&&(s=e);let r=e<0?"-":"";e=b.abs(e);let n=b.floor(e%60),o=b.floor(e/60%60),a=b.floor(e/3600),h=b.floor(s/60%60),l=b.floor(s/3600);return(x(e)||e===1/0)&&(a=o=n="-"),o=(((a=Number(a)>0||l>0?a+":":"")||h>=10)&&10>Number(o)?"0"+o:o)+":",r+a+o+(n=10>Number(n)?"0"+n:n)}function rS(e){return class extends e{get xs(){var e;return null!=(e=this.Cs)?e:this.Cs=rw(this.player())}dispose(){this.Cs=void 0,super.dispose()}constructor(...e){super(...e),this.Cs=void 0}}}function rw(e){return e.tech({IWillNotUseThisInPlugins:!0}).theoplayer()}function rN(e,s,r){e.toggleClass("theo-ad-playing",s),e.toggleClass("theo-dai-ad-playing",s&&r)}function rL(){this.userActive(!1)}"u"<typeof HTMLVideoElement&&Y()&&(P.createElement("video"),P.createElement("audio"),P.createElement("track")),rm.ks={},rm.hooks=function(e,s){return rm.ks[e]=rm.ks[e]||[],s&&(rm.ks[e]=rm.ks[e].concat(s)),rm.ks[e]},rm.hook=function(e,s){rm.hooks(e,s)},rm.removeHook=function(e,s){var r=rm.hooks(e).indexOf(s);return!(r<=-1)&&(rm.ks[e]=rm.ks[e].slice(),rm.ks[e].splice(r,1),!0)},!0!==A.VIDEOJS_NO_DYNAMIC_STYLE&&Y()&&((rp=tT(".vjs-styles-defaults"))||(rp=t9("vjs-styles-defaults"),(rv=tT("head"))&&rv.insertBefore(rp,rv.firstChild),t7(rp,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n "))),t6(1,rm),rm.VERSION="5.20.6-opentelly.14",rm.options=rc.prototype.h,rm.getPlayers=function(){return rc.players},rm.players=rc.players,rm.getComponent=ei.getComponent,rm.registerComponent=function(e,s){i6.isTech(s)&&$.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),ei.registerComponent.call(ei,e,s)},rm.getTech=i6.getTech,rm.registerTech=i6.registerTech,rm.browser=tW,rm.TOUCH_ENABLED=t_,rm.extend=function(e,s){void 0===s&&(s={});var r=function(){e.apply(this,arguments)},n={};for(var o in F(s)?("function"==typeof s.init&&($.warn("Constructor logic via init() is deprecated; please use constructor() instead."),s.constructor=s.init),s.constructor!==C.prototype.constructor&&(r=s.constructor),n=s):"function"==typeof s&&(r=s),function(e,s){if("function"!=typeof s&&null!==s)throw new m("Super expression must either be null or a function, not "+typeof s);e.prototype=C.create(s&&s.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),s&&(e.ws=s)}(r,e),n)n.hasOwnProperty(o)&&(r.prototype[o]=n[o]);return r},rm.mergeOptions=ee,rm.bind=t8,rm.plugin=function(e,s){rc.prototype[e]=s},rm.addLanguage=function(e,s){var r;return e=(""+e).toLowerCase(),rm.options.languages=ee(rm.options.languages,((r={})[e]=s,r)),rm.options.languages[e]},rm.log=$,rm.createTimeRange=rm.createTimeRanges=el,rm.formatTime=su,rm.parseUrl=eP,rm.isCrossOrigin=eI,rm.EventTarget=es,rm.on=tQ,rm.one=t2,rm.off=t0,rm.trigger=t1,rm.xhr=i_,rm.TextTrack=iG,rm.AudioTrack=rf,rm.VideoTrack=rg,rm.isEl=X,rm.isTextNode=tv,rm.createEl=K,rm.hasClass=tr,rm.addClass=tn,rm.removeClass=to,rm.toggleClass=ta,rm.setAttributes=th,rm.getAttributes=tl,rm.emptyEl=tf,rm.appendContent=tg,rm.insertContent=tm,rm.computedStyle=sm,(0,a.c)(),(0,a.c)(),(0,a.c)(),(0,a.c)(),(0,a.c)(),(0,a.c)(),(0,a.c)();var rA=class{constructor(e,s){this.type=void 0,this.target=void 0,this.playerEvent=void 0,this.type=e.type,this.target=s,this.playerEvent=e}},rP=["loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange","resize"],rI=rm.getTech("Tech"),rj=rm.getTech("Html5"),rM=class extends rI{Ss(){var e;
1for(let e of rP)this.xs.addEventListener(e,this.js);this.xs.addEventListener("error",this.Ts),this.xs.addEventListener("contentprotectionerror",this.Ts),this.xs.addEventListener("sourcechange",this.Ms),this.xs.addEventListener("loadstart",this.As),null==(e=this.xs.presentation)||e.addEventListener(a.ya.MODE_CHANGE,this.Ps),this.xs.textTracks.addEventListener("addtrack",this.Ns),this.xs.textTracks.addEventListener("removetrack",this.Es),this.xs.textTracks.addEventListener("change",this.Bs),this.xs.audioTracks.addEventListener("addtrack",this.Is),this.xs.audioTracks.addEventListener("removetrack",this.Fs),this.xs.audioTracks.addEventListener("change",this.Ds)}$s(){var e;for(let e of rP)this.xs.removeEventListener(e,this.js);this.xs.removeEventListener("error",this.Ts),this.xs.removeEventListener("contentprotectionerror",this.Ts),this.xs.removeEventListener("sourcechange",this.Ms),this.xs.removeEventListener("loadstart",this.As),null==(e=this.xs.presentation)||e.removeEventListener(a.ya.MODE_CHANGE,this.Ps),this.xs.textTracks.removeEventListener("addtrack",this.Ns),this.xs.textTracks.removeEventListener("removetrack",this.Es),this.xs.textTracks.removeEventListener("change",this.Bs),this.xs.audioTracks.removeEventListener("addtrack",this.Is),this.xs.audioTracks.removeEventListener("removetrack",this.Fs),this.xs.audioTracks.removeEventListener("change",this.Ds)}Us(e){this.trigger(new rA(e,this))}createEl(){let e=this.h,s=e.player;if(!s)throw new g(this.localize('Missing required tech option "player"'));let r=s.element;return rm.setAttributes(r,{id:e.techId}),r}theoplayer(){return this.xs}addTextTrack(e,s,r){return super.addTextTrack(e,s,r)}buffered(){return this.xs.buffered}played(){return this.xs.played}reset(){this.xs.stop()}play(){this.xs.play()}pause(){this.xs.pause()}paused(){return this.xs.paused}currentTime(){return this.xs.currentTime}setCurrentTime(e){this.xs.currentTime=e}duration(){return this.xs.duration}volume(){return this.xs.volume}setVolume(e){this.xs.volume=e}muted(){return this.xs.muted}setMuted(e){this.xs.muted=e}src(e){if(void 0!==e)this.setSrc(e);else{if(this.xs.src)return this.xs.src;if(this.xs.source){if(!(0,a.oa)(this.xs.source.ads))return this.xs.source.ads[0].sources;if((0,a.hb)(this.xs.source))return"This source is managed by the Uplynk integration extension.";if((0,a.cb)(this.xs.source))return"This source is managed by the DAI integration extension.";if((0,a.ha)(this.xs.source))return"This source is managed by Millicast."}}}setSrc(e){return this.setSource({src:e})}setSource(e){this.lt=null,this.trigger("error")}currentSrc(){return this.xs.src}load(){this.setPreload("auto")}preload(){return this.xs.preload}setPreload(e){this.xs.preload=e}autoplay(){return this.xs.autoplay}setAutoplay(e){this.xs.autoplay=!!e}seeking(){return this.xs.seeking}seekable(){return this.xs.seekable}ended(){return this.xs.ended}playbackRate(){return this.xs.playbackRate}setPlaybackRate(e){this.xs.playbackRate=e}readyState(){return this.xs.readyState}networkState(){return 0}controls(){return!1}videoHeight(){return this.xs.videoHeight}videoWidth(){return this.xs.videoWidth}supportsFullScreen(){return this.xs.presentation.supportsMode(a.la.FULLSCREEN)}enterFullScreen(){this.xs.presentation.requestMode(a.la.FULLSCREEN)}exitFullScreen(){this.xs.presentation.requestMode(a.la.INLINE)}Rs(){let e=this.xs.ads;if(e&&e.playing)return!0;let s=this.xs.vr;return!(!s||s.state===a.eb.Os)}initTextTrackListeners(){return this.on("touchend",e=>{this.Rs()&&(e.preventDefault=()=>{})}),super.initTextTrackListeners()}Zt(){if(!this.src())return;let e=this.readyState();if(0===e){let e=!1,s=()=>{e=!0};this.on("loadstart",s);let r=()=>{e||this.trigger("loadstart")};return this.on("loadedmetadata",r),void this.ready(()=>{this.off("loadstart",s),this.off("loadedmetadata",r),e||this.trigger("loadstart")})}let s=["loadstart"];s.push("loadedmetadata"),e>=2&&s.push("loadeddata"),e>=3&&s.push("canplay"),e>=4&&s.push("canplaythrough"),this.ready(()=>{for(let e of s)this.trigger(e)})}dispose(){this.$s(),this.xs=null,super.dispose()}static isSupported(){return!0}static canPlayType(){return"maybe"}static canPlaySource(e){return"maybe"}get featuresVolumeControl(){return a.G}constructor(e={},s){super(e,s),this.xs=void 0,this.js=e=>this.Us(e),this.Vs=!1,this.Ms=()=>{void 0===this.xs.errorObject&&(this.Us(new a.ja(this.xs.currentTime,this.xs.readyState)),this.Us(new a.Ca),this.Us(new a.ka(this.xs.duration)))},this.As=()=>{this.Us(new a.ca(this.xs.currentTime))},this.Ns=e=>{this.textTracks().tt(e.track)},this.Is=e=>{this.audioTracks().tt(e.track)},this.Es=e=>{this.textTracks().it(e.track)},this.Fs=e=>{this.audioTracks().it(e.track)},this.Bs=()=>{let e=this.textTracks();e.trigger({type:"change",target:e,currentTarget:e,srcElement:e})},this.Ds=()=>{let e=this.audioTracks();e.trigger({type:"change",target:e,currentTarget:e,srcElement:e})},this.Ps=()=>
1{if(!this.supportsFullScreen())return;let e=this.Vs,s=this.xs.presentation.currentMode===a.la.FULLSCREEN;e!==s&&(this.Vs=s,this.trigger("fullscreenchange",{isFullscreen:s,nativeIOSFullscreen:!0}))},this.Ts=()=>{let e=this.xs.errorObject,s=e&&(0,a.W)(e.code)||-1,r=e&&e.message||"An unknown error occurred.";this.error({code:s,message:this.localize(r)})},this.xs=this.h.player,this.Ss();const r=!this.paused();r&&this.pause(),e.preload&&this.setPreload(e.preload),e.autoplay&&this.setAutoplay(e.autoplay),e.muted&&this.setMuted(e.muted),e.source?this.setSrc(e.source):this.Zt(),r&&this.ready(()=>this.play()),this.triggerReady()}};rM.prototype.featuresFullscreenResize=rj.prototype.featuresFullscreenResize,rM.prototype.featuresPlaybackRate=rj.prototype.featuresPlaybackRate,rM.prototype.featuresProgressEvents=!0,rM.prototype.featuresTimeupdateEvents=!0,rM.prototype.featuresNativeTextTracks=!0,rm.registerTech("THEOplayer",rM),(0,a.c)(),(0,a.c)(),(0,a.c)(),(0,a.c)();var rO=class{constructor(e){this.Ls=void 0,this.Hs=e=>{(0,a.l)(this.Ls,"theo-mobile-button-hover"),e.stopImmediatePropagation()},this.qs=e=>{(0,a.m)(this.Ls,"theo-mobile-button-hover")},this.zs=e=>{this.Ls.blur()},this.Ls=e,e.addEventListener("touchstart",this.Hs),e.addEventListener("touchend",this.qs),e.addEventListener("focusin",this.zs)}};(0,a.c)(),(0,a.c)(),(0,a.c)(),(0,a.c)();var rD=rm.getComponent("Menu"),rB=class extends rS(rD){get Ws(){return this.player().el()}Gs(){(0,a.l)(this.Ws,"theo-menu-opened")}Xs(){(0,a.m)(this.Ws,"theo-menu-opened")}constructor(e,s){super(e,s)}};(0,a.c)();var rH=rm.getComponent("MenuItem"),rF=class extends rS(rH){get parentMenu(){return this.Js}buildCSSClass(){return"theo-menu-item vjs-menu-item"}createEl(){let e=super.createEl("li",{className:this.buildCSSClass(),tabIndex:0},{"aria-live":"off","aria-label":""});return e.innerHTML="",e}handleClick(e){this.Qs||(this.parentMenu.Ys(this),"tap"!==e.type&&"keydown"!==e.type||(this.Qs=!0,this.trigger("click"),this.Qs=!1))}dispose(){a.r.Zs.Ks&&(this.el().removeEventListener("touchstart",this.Hs),this.el().removeEventListener("touchend",this.qs)),super.dispose()}constructor(e,s,r){super(e,(0,a.I)({selectable:!0},s)),this.Js=void 0,this.Qs=!1,this.Hs=e=>{(0,a.l)(this.el(),"theo-mobile-menu-item-hover"),e.stopImmediatePropagation()},this.qs=e=>{(0,a.m)(this.el(),"theo-mobile-menu-item-hover")},this.Js=r,a.r.Zs.Ks&&(this.el().addEventListener("touchstart",this.Hs),this.el().addEventListener("touchend",this.qs))}};(0,a.c)();var rR=rm.getComponent("ClickableComponent"),rV=class extends rR{get parentMenu(){return this.Js}get te(){return this.ie}set te(e){this.ie=e,this.el().setAttribute("tabindex",this.te?"0":"-1"),this.se()}buildCSSClass(){return"theo-primary-background theo-menu-header"}createEl(){let e=super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-live":"off","aria-label":""});return e.innerHTML="",e}handleClick(e){!this.Qs&&this.te&&(this.Js.ee(),"tap"===e.type&&(this.Qs=!0,this.trigger("click"),this.Qs=!1))}se(){this.te?this.el().setAttribute("aria-label",this.localize("Go back to the previous menu")):this.el().setAttribute("aria-label","")}constructor(e,s,r){super(e,s),this.Js=void 0,this.Qs=!1,this.ie=!1,this.Js=r,this.on(e,"languagechange",this.se)}},rU=class extends rB{get menuHeader(){return this.ne}get menuItems(){return this.children()}addMenuItem(e){e=(0,a.I)({playerOptions:this.h.playerOptions},e);let s=new rF(this.player(),e,this);return this.addChild(s,void 0,e.index),this.trigger("menuchange"),s}addSubMenuItem(e){e=(0,a.I)({playerOptions:this.h.playerOptions},e);let s=this.re(this.player(),e);return this.addChild(s,void 0,e.index),this.trigger("menuchange"),s}removeMenuItem(e){this.removeChild(e),this.trigger("menuchange")}buildCSSClass(){return"theo-menu vjs-menu"}Gs(){super.Gs(),u.removeEventListener("resize",this.he),u.addEventListener("resize",this.he),this.show()}oe(){let e=this.ae();if(!e)return;let s=e.getClientRects();a.r.Zs.Ks?this.ue(e,s):this.ce(e,s)}ae(){var e;return null!=(e=this.contentEl().parentElement)?e:void 0}ce(e,s){}ue(e,s){}Xs(){u.removeEventListener("resize",this.he),super.Xs(),this.hide(),a.r.Zs.Ks&&(this.el().removeAttribute("style"),this.contentEl().removeAttribute("style"))}createEl(){let e=super.createEl();e.className=this.buildCSSClass();let s=this.contentEl();(0,a.l)(s,"theo-menu-content");let r=new rV(this.player(),this.h,this);return s.parentNode.insertBefore(r.el(),s),this.ne=r,e}Ys(e){}show(){return this.oe(),super.show()}dispose(){this.ne&&this.ne.dispose(),super.dispose()}constructor(e,s){super(e,s),this.le=void 0,this.he=()=>this.oe(),this.le=this.player().el(),this.hide(),this.on("menuchange",this.oe)}},r$=class extends rU{get de(){return this.fe}set de(e){this.fe&&this.fe.ve(this),this.fe=e,e&&e.pe(this)}me(e){this.de.ge(e,"replace")}ye(e){e.de.ge(this,"restore")}be(){(0,a.m)(this.ke,"vjs-hidden"),this.ke.style.opacity="1",super.show()}we(){(0,a.l)(this.ke,"vjs-hidden")}Gs(){this.de&&this.de.Gs(),super.Gs()}Xs(){this.de&&this.de.Xs(),super.Xs(),(0,a.l)(this.ke,"vjs-hidden")}ae(){if(this.de&&this.de._e)return this.de._e.ke}ce(e,s){if(s.length>0){let e=s[0].height,r=s[0].width;this.fe.xe.style.height=e+"px",this.fe.xe.style.width=r+"px"}super.ce(e,s)}constructor(e,s){super(e,s)}};(0,a.c)();var rz=class{get xe(){return this.Ls}get _e(){return this.Ce}pe(e){e.we(),this.Ls.appendChild(e.ke)}ve(e){this.Ls.removeChild(e.ke)}ge(e,s){if(e==this.Ce)return;let r=this.Ce;if(this.Ce=e,this.Ce.be(),this._e.focus(),a.r.Zs.Ks)r.we();else{let e=(0,a.ta)("transform");r.ke.style.opacity="0",r.ke.style[e]="replace"===s?"translateX(-100%)":"translateX(100%)",this.Ce.ke.style.opacity="1",this.Ce.ke.style[e]="",d(()=>{r.we(),r.ke.style[e]=""},300)}}Gs(){this.Se(),this.Ce.be(),this.je()}Xs(){this.Se(),this.Ce.we(),this.Te.we(),this.Ce=this.Te,this.je()}je(){(0,a.qa)(()=>{(0,a.m)(this.Ls,"theo-no-transition"),(0,a.m)(this.Ce.ke,"theo-no-transition")})}Se(){(0,a.l)(this.Ls,"theo-no-transition"),(0,a.l)(this.Ce.ke,"theo-no-transition")}constructor(e){this.Ce=void 0,this.Te=void 0,this.Ls=void 0,this.le=void 0,this.Te=this.Ce=e,this.Ls=c.createElement("div"),this.Ls.className="theo-tertiary-background theo-menu-animation-container",this.Ls.appendChild(this.Te.ke),this.le=this.Ce.player().el()}};(0,a.c)(),(0,a.c)();var r_=class extends r${get ke(){return this.el()}get parentMenu(){return this.Me}re(e,s){let r=new rq(e,s,this);return r.subMenu.de=this.de,r}ee(){this.Ae()}Ys(e){super.Ys(e),this.Ae()}Ae(){this.parentMenu.ye(this)}buildCSSClass(){return"theo-submenu "+(this.Pe?"":"theo-leaf-submenu ")+"theo-menu-content theo-menu-content-animatable "+super.buildCSSClass()}addSubMenuItem(e){this.Pe=!0;let s=super.addSubMenuItem(e);return this.removeClass("theo-leaf-submenu"),s}constructor(e,s,r){super(e,s),this.Me=void 0,this.Pe=!1,this.Me=r,this.menuHeader.te=!0}},rq=class extends rF{get subMenu(){return this.Ne}
1handleClick(e){this.parentMenu.me(this.subMenu)}constructor(e,s,r){super(e,(0,a.I)({selectable:!1},s),r),this.Ne=void 0,this.Ne=new r_(e,s,r)}},rW=class extends r${get menuButton(){return this.Ee}createEl(){let e=rm.createEl("div",{className:this.buildCSSClass()});return this.Be=super.createEl(),this.Be.className=super.buildCSSClass(),(0,a.l)(this.Be,"theo-menu-content-animatable"),e.appendChild(this.Be),this.de=new rz(this),e.appendChild(this.de.xe),e}buildCSSClass(){return"theo-menu-animatable "+super.buildCSSClass()}re(e,s){let r=new rq(e,s,this);return r.subMenu.de=this.de,r}ce(e,s){super.ce(e,s);let r=this.le.getClientRects(),n=r.length>0?r[0]:void 0,o=T(getComputedStyle(this.el()).fontSize);(0,a.Ka)(this.el(),this.Ee.el(),n,o)}get ke(){return this.Be}ee(){this.Ee.closeMenu()}dispose(){this.Ie||(this.Ie=!0,super.dispose())}constructor(e,s,r){super(e,s),this.Ee=void 0,this.Ie=!1,this.Ee=r}};(0,a.c)();var rY=class{set Fe(e){this.De.innerHTML=this.$e.localize(e),this.Ue()&&this.Re(),(0,a.p)(this.$e.el())}get Fe(){return this.De.textContent||""}Ue(){return!(0,a.k)(this.De,"vjs-hidden")}Oe(){this.$e.off("mouseover",this.Re),this.$e.off("mouseout",this.Ve),this.$e.off("dispose",this.Le),(0,a.i)(this.De)}constructor(e,s){this.De=void 0,this.$e=void 0,this.Re=()=>{(0,a.m)(this.De,"vjs-hidden");let e=this.$e.player().contentEl().getClientRects(),s=e.length>0?e[0]:void 0,r=T(getComputedStyle(this.De).fontSize);(0,a.Ka)(this.De,this.$e.el(),s,r)},this.Ve=()=>{(0,a.l)(this.De,"vjs-hidden")},this.Le=()=>this.Oe(),this.$e=e,(0,a.p)(e.el()),(0,a.q)(e.el()),this.De=c.createElement("span"),this.De.innerHTML=this.$e.localize(s),this.De.className="theo-button-tooltip vjs-hidden",this.De.setAttribute("aria-hidden","true"),this.$e.el().appendChild(this.De),this.$e.on("mouseover",this.Re),this.$e.on("mouseout",this.Ve),this.$e.on("dispose",this.Le)}},rX=rm.getComponent("Button"),rG=class extends rS(rX){get He(){let e=this.el().parentElement;return!!e&&null!==e.querySelector(".theo-mobile-menu-background")}get menu(){return this.qe}isMenuOpen(){return this.ze}openMenu(){this.We&&!this.ze&&(this.qe.Gs(),this.el().setAttribute("aria-expanded","true"),this.ze=!0,this.qe.focus())}closeMenu(){this.We&&this.ze&&(this.qe.Xs(),this.el().setAttribute("aria-expanded","false"),this.ze=!1)}set minimumMenuItems(e){this.Ge=e,this.Xe()}buildCSSClass(){return"theo-controlbar-button vjs-menu-button vjs-menu-button-popup "+super.buildCSSClass()}createEl(e,s,r){return super.createEl("button",{},{"aria-live":"off"})}handleClick(){this.ze?this.closeMenu():this.openMenu()}enable(){return this.We=!0,super.enable()}disable(){return this.closeMenu(),this.We=!1,super.disable()}se(){this.De.Fe=this.controlText()}dispose(){this.player().removeChild(this.qe),this.qe.dispose(),this.De.Oe(),this.xs.removeEventListener("seeking",this.Je),super.dispose()}constructor(e,s){super(e,s),this.qe=void 0,this.De=void 0,this.ze=!1,this.Ge=1,this.We=!0,this.Qe=e=>{var s;let r=this.el().contains(e.target),n=this.qe.el().contains(e.target),o=!1;a.r.Zs.Ks&&this.He&&(o=(null==(s=this.el().parentElement)?void 0:s.querySelector(".theo-mobile-menu-background"))===e.target),r||n||!this.ze||(o&&e.preventDefault(),this.closeMenu())},this.Ye=e=>{27===e.which&&(this.closeMenu(),this.focus())},this.Je=()=>{this.ze&&this.closeMenu()},this.Xe=()=>{this.qe.menuItems.length>=this.Ge?this.show():(this.closeMenu(),this.hide())},this.qe=new rW(e,s,this),this.player().getChild("controlBarMenuContainer").addChild(this.qe),this.De=new rY(this,this.controlText()),this.el().setAttribute("aria-haspopup","true"),a.r.Zs.Ke?(this.on(c,"touchend",this.Qe),new rO(this.el())):(this.on(c,"click",this.Qe),this.on(c,"keydown",this.Ye),a.wa&&this.on(c,a.wa.Ze,this.closeMenu)),this.xs.addEventListener("seeking",this.Je),this.on(this.qe,"menuchange",this.Xe),this.on(e,"languagechange",this.se),this.Xe()}},rK=rm.getComponent("Component"),rJ=class extends rm.getComponent("ControlBar"){addMenuButton(e){e=(0,a.I)({playerOptions:this.h.playerOptions},e);let s=new rG(this.player(),e);return this.addChild(s),s}removeMenuButton(e){this.removeChild(e)}createEl(){let e=super.createEl();return e.className=this.buildCSSClass(),e}buildCSSClass(){return"theo-secondary-color vjs-control-bar "+super.buildCSSClass()}constructor(e,s){super(e,s),this.addChild("THEOControlBarShadow",void 0,0)}};rm.registerComponent("THEOControlBarShadow",class extends rK{createEl(){return super.createEl("div",{className:this.buildCSSClass()})}buildCSSClass(){return"theo-tertiary-color theo-control-bar-shadow"}}),(0,a.c)(),(0,a.c)();
1var rZ=rm.getComponent("VolumeBar"),rQ=class extends rZ{handleFocus(e){super.handleFocus(e),this.tn.addClass("focus-within")}handleBlur(e){super.handleBlur(e),this.tn.removeClass("focus-within")}constructor(e,s){super(e,s),this.tn=void 0,this.tn=s.sn}};(0,a.c)();var r0=rm.getComponent("VolumeControl"),r1=class extends r0{constructor(e,s){super(e,s),this.nn=void 0,this.nn=new rQ(e,{sn:this}),this.addChild(this.nn)}};r1.prototype.h=(0,a.I)({},r0.prototype.h,{children:[]}),rm.registerComponent("VolumeControl",r1);var r2=class extends rS(rJ){rn(){this.hn(this.an())}un(){0===this.cn&&(this.cn=d(this.ln,100))}dn(e){"opacity"===e.propertyName&&(0!==this.cn&&(p(this.cn),this.cn=0),this.hn(!0))}fn(e){"opacity"===e.propertyName&&(this.an()||this.hn(!1))}an(){return"0"!==u.getComputedStyle(this.el()).opacity}hn(e){this.vn!==e&&(this.vn=e,e?this.pn():this.xs.textTrackStyle.marginBottom=void 0)}pn(){let e=this.el().getBoundingClientRect().height;this.xs.textTrackStyle.marginBottom!==e&&(this.xs.textTrackStyle.marginBottom=e)}dispose(){p(this.cn),this.cn=0,this.gn.mn(a.ra.yn,this.bn),this.gn.kn(),super.dispose()}constructor(e,s){super(e,s),this.gn=void 0,this.vn=!1,this.cn=0,this.ln=()=>{0!==this.cn&&(this.cn=0,this.hn(this.an()))},this.bn=()=>{this.vn&&this.pn()},this.on(e,"ready",this.rn),this.on(e,"pause",this.rn),this.on(e,"useractive",this.rn),this.on(e,"firstplay",this.un),this.on(e,"play",this.un),this.on(e,"userinactive",this.un),this.on("transitionstart",this.dn),this.on("transitionend",this.fn),this.gn=new a.ua(this.el()),this.gn.wn(a.ra.yn,this.bn),this.gn._n(!0)}};r2.prototype.h=(0,a.I)({},rJ.prototype.h,{children:["progressControl","playToggle","muteToggle","volumeControl","currentTimeDisplay","timeDivider","durationDisplay","liveDisplay","remainingTimeDisplay","customControlSpacer","activeQualityLabel","vrButton","descriptionsButton","subtitlesButton","chromecastButton","airplayButton","multiViewButton","audioTrackButton","SettingsButton","fullscreenToggle"]}),rm.registerComponent("ControlBar",r2),(0,a.c)();var r3=class extends rJ{buildCSSClass(){return"theo-top-controlbar "+super.buildCSSClass()}constructor(e,s){super(e,s),e.topControlBar=this}};r3.prototype.h=(0,a.I)({},rJ.prototype.h,{children:[]}),rm.registerComponent("TopControlBar",r3),(0,a.c)();var r5=rm.getComponent("CurrentTimeDisplay"),r4=class extends rS(r5){updateContent(){let e=rC(this.player()),s=this.xs,r=rk(s),n=this.localize("Current Time"),o=rE(b.max(0,e-r),rT(s));o!==this.Mt&&(this.Mt=o,this.contentEl().innerHTML='<span class="vjs-control-text">'+n+"</span> "+o)}constructor(e,s){super(e,s),this.on(e,"timeupdate",this.updateContent),this.on(e,"emptied",this.updateContent)}};rm.registerComponent("CurrentTimeDisplay",r4),(0,a.c)();var r6=rm.getComponent("DurationDisplay"),r9=class extends rS(r6){updateContent(){let e=this.xs,s=x(e.duration)?NaN:rT(e),r=e.clip.endTime-e.clip.startTime,n=b.min(s,r)||0;if(this.ct!==n){this.ct=n;let e=this.localize("Duration Time"),s=rE(n);this.S.innerHTML='<span class="vjs-control-text">'+e+"</span> "+s}}dispose(){var e;null==(e=this.xs)||e.clip.removeEventListener("change",this.xn),super.dispose()}constructor(e,s){var r;super(e,s),this.xn=()=>this.updateContent(),this.off(e,"durationchange",this.updateContent),this.on(e,"durationchange",this.updateContent),this.off(e,"timeupdate",this.updateContent),this.on(e,"timeupdate",this.updateContent),this.off(e,"emptied",this.updateContent),this.on(e,"emptied",this.updateContent),null==(r=this.xs)||r.clip.addEventListener("change",this.xn)}};rm.registerComponent("DurationDisplay",r9),(0,a.c)();var r7=rm.getComponent("Button"),r8=class extends rS(r7){buildCSSClass(){return"theo-live-control "+super.buildCSSClass()}createEl(){let e=super.createEl("button",{},{"aria-live":"off"});return this.Cn=rm.createEl("span",{className:"theo-live-control-indicator"}),(0,a.j)(e,this.Cn),e}createControlTextEl(e){let s=super.createControlTextEl(e);return rm.removeClass(s,"vjs-control-text"),rm.addClass(s,"theo-live-control-text"),s}handleClick(){var e;let s=this.xs;if(void 0!==(null==(e=s.hesp)?void 0:e.manifest))s.hesp.goLive();else{let e=this.player();e.currentTime(1/0),e.play()}}Sn(){ry(this.xs)?this.show():this.hide()}constructor(e,s){super(e,s),this.controlText("Live"),this.Sn(),this.on(e,"emptied",this.Sn),this.on(e,"durationchange",this.Sn),a.r.Zs.Ke&&new rO(this.el())}};rm.registerComponent("LiveDisplay",r8),(0,a.c)();var nt=rm.getComponent("LoadingSpinner");rm.registerComponent("LoadingSpinner",class extends nt{buildCSSClass(){return"theo-secondary-color vjs-loading-spinner "+super.buildCSSClass()}createEl(){let e=super.createEl();e.className=this.buildCSSClass();let s=rm.createEl("div",{className:"theo-loading-spinner-rotator"}),r=rm.createEl("div",{className:"theo-loading-spinner-circle-left"}),n=rm.createEl("div",{className:"theo-loading-spinner-circle-right"});return s.appendChild(r),s.appendChild(n),e.appendChild(s),e}constructor(e,s){super(e,s)}}),(0,a.c)();var ne=rm.getComponent("LoadProgressBar"),ni=class extends rS(ne){update(
1){let e=this.xs,s=a.ga.jn(rx(e)),r=s.Tn(0),n=a.ga.jn(e.buffered).Mn(s),o=s.An(0)-r,h=n.V&&n.An(n.V-1)||0;h=b.max(0,h-r);let l=this.el(),u=this.Pn;l.style.width=ns(h,o);for(let e=0;e<n.V;e++){let s=n.Tn(e),o=n.An(e),a=u[e];a||(a=c.createElement("div"),u.push(a),l.appendChild(a)),a.style.left=ns(s-r,h),a.style.width=ns(o-s,h)}for(let e=u.length;e>n.V;e--)l.removeChild(u[e-1]);u.length=n.V}constructor(e,s){super(e,s),this.Pn=[],this.on(e,"emptied",this.update)}};function ns(e,s){let r=e/s||0;return 100*(r>=1?1:r)+"%"}rm.registerComponent("LoadProgressBar",ni),(0,a.c)();var nr=rm.getComponent("MouseTimeDisplay"),nn=class extends rS(nr){handleMouseMove(e){let s=this.xs,r=rk(s)+this.calculateDistance(e)*rT(s),n=e.pageX-(0,a.Ja)(this.el().parentNode).left;this.update(r,n+"px")}handleTouchMove(e){let s=this.xs,r=rk(s)+this.calculateDistance(e)*rT(s),n=e.touches[0].pageX-(0,a.Ja)(this.el().parentNode).left;this.update(r,n+"px")}createEl(){let e=super.createEl();return this.Nn=rm.createEl("span",{className:"theo-time-tooltip-text"}),e}update(e,s){this.En=e;let r=this.Bn(e);this.el().style.left=s,this.el().setAttribute("data-current-time",r),this.keepTooltipsInside&&((0,a.Na)(this.Nn,r),this.In())}In(){if(this.keepTooltipsInside&&this.tooltip.offsetParent){let e=this.player().contentEl(),s=e.getClientRects(),r=s.length>0?s[0]:void 0,n=T(getComputedStyle(e).fontSize);(0,a.Ka)(this.tooltip,this.el(),r,n)}}Bn(e){let s=this.xs,r=e-rb(s);return rE(ry(s)?b.min(r,0):r,rT(s))}dispose(){var e;this.xs.removeEventListener("dimensionchange",this.Fn),null==(e=this.xs.presentation)||e.removeEventListener(a.ya.MODE_CHANGE,this.Fn),super.dispose()}constructor(e,s){var r;super(e,s),this.En=NaN,this.Fn=()=>{let e=rC(this.player()),s=this.xs,r=(e-rk(s))/rT(s)||0;r=(0,a.w)(r,0,1),this.update(e,100*r+"%")},this.keepTooltipsInside&&(rm.addClass(this.tooltip,"theo-secondary-color"),this.tooltip.appendChild(this.Nn)),this.on(e,"ready",()=>{this.on(e.controlBar.progressControl,"mouseenter",this.handleMouseMove)}),a.d.Ks&&(this.on(e,"firstplay",this.Fn),this.on(e,"play",this.Fn),this.on(e,"seeking",this.Fn),this.on(e,"seeked",this.Fn),this.on(e,"timeupdate",this.Fn),this.xs.addEventListener("dimensionchange",this.Fn),null==(r=this.xs.presentation)||r.addEventListener(a.ya.MODE_CHANGE,this.Fn),this.on(e,"ready",()=>{this.on(e.controlBar.progressControl,"touchstart",this.handleTouchMove),this.on(e.controlBar.progressControl,"touchmove",(0,a.t)(e=>this.handleTouchMove(e),25)),this.Fn()}))}};rm.registerComponent("MouseTimeDisplay",nn),(0,a.c)();var no=rm.getComponent("PlayProgressBar"),na=class extends rS(no){updateDataAttr(){let e=rC(this.player());this.el().setAttribute("data-current-time",this.Bn(e))}Bn(e){let s=this.xs;return rE(e-rb(s),rT(s))}createEl(){let e=super.createEl();return e.className=this.buildCSSClass(),e}buildCSSClass(){return"theo-primary-color vjs-play-progress vjs-slider-bar "+super.buildCSSClass()}constructor(e,s){super(e,s)}};rm.registerComponent("PlayProgressBar",na),(0,a.c)();var nh=rm.getComponent("RemainingTimeDisplay"),nl=class extends rS(nh){updateContent(){let e=this.xs,s=rT(e);if(s){let r=rx(e).end(0),n=this.localize("Remaining Time"),o=rE(b.max(0,r-this.player().currentTime()),s);o!==this.Mt&&(this.Mt=o,this.contentEl().innerHTML='<span class="vjs-control-text">'+n+"</span> -"+o)}}constructor(e,s){super(e,s),this.on(e,"timeupdate",this.updateContent),this.on(e,"emptied",this.updateContent)}};rm.registerComponent("RemainingTimeDisplay",nl),(0,a.c)(),(0,a.c)();var nu=class{get xs(){var e;return null!=(e=this.Cs)?e:this.Cs=rw(this.Dn)}$n(){let e=this.Un;if(!e)return;let s=this.xs;if(0===s.seekable.length)return;let r=e.cues.slice();this.On.Rn(r);for(let e=0;e<r.length;e++){let n=r[e],o=r[e+1],a=!o||n.endTime!==o.startTime,h=new nc(n,s,a);this.Vn.push(h),this.Ln.appendChild(h.xe)}}Hn(){this.xs.addEventListener("loadedmetadata",this.qn),this.xs.addEventListener("loadeddata",this.qn),this.xs.addEventListener("sourcechange",this.qn),this.xs.addEventListener("durationchange",this.zn),this.xs.clip.addEventListener("change",this.zn),this.xs.textTracks.addEventListener("addtrack",this.Wn),this.xs.textTracks.addEventListener("removetrack",this.Gn),this.xs.textTracks.addEventListener("change",this.qn)}Xn(){this.xs.removeEventListener("loadedmetadata",this.qn),this.xs.removeEventListener("loadeddata",this.qn),this.xs.removeEventListener("sourcechange",this.qn),this.xs.removeEventListener("durationchange",this.zn
1),this.xs.clip.removeEventListener("change",this.zn),this.xs.textTracks.removeEventListener("addtrack",this.Wn),this.xs.textTracks.removeEventListener("removetrack",this.Gn),this.xs.textTracks.removeEventListener("change",this.qn)}Jn(){if(!(this.xs.readyState<a.ba.Qn)){for(let e of this.xs.textTracks)if(e.kind===a._.Yn&&e.mode===a.Z.Kn&&e.cues.length>0&&e.readyState!==a.X.ERROR)return e}}Zn(e){let s=this.Un;e!==s&&(s&&(this.tr(),s.removeEventListener("cuechange",this.ir)),this.Un=e,e&&(e.addEventListener("cuechange",this.ir),this.zn()))}sr(e){this.On.er(e)}nr(){this.On.be()}rr(){this.On.we()}tr(){for(let e of this.Vn)e.Oe();this.On.hr(),this.Vn=[],this.ar=void 0}Oe(){this.Xn(),this.ur.removeEventListener("mousemove",this.cr),this.ur.removeEventListener("mouseenter",this.lr),this.ur.removeEventListener("mouseleave",this.dr),this.Zn(void 0),this.On.Oe(),this.Cs=void 0}constructor(e,s){this.Dn=void 0,this.Ln=void 0,this.On=void 0,this.ur=void 0,this.Un=void 0,this.Vn=void 0,this.ar=void 0,this.Cs=void 0,this.qn=void 0,this.Wn=void 0,this.Gn=void 0,this.cr=void 0,this.dr=void 0,this.lr=void 0,this.zn=void 0,this.ir=void 0,this.Dn=s,this.Vn=[],this.Cs=void 0,this.qn=()=>{this.Zn(this.Jn())},this.Wn=e=>{let s=e.track;s.kind===a._.Yn&&(s.addEventListener("addcue",this.qn),s.addEventListener("removecue",this.qn),s.addEventListener("readystatechange",this.qn)),this.qn()},this.Gn=e=>{let s=e.track;s.kind===a._.Yn&&(s.removeEventListener("addcue",this.qn),s.removeEventListener("removecue",this.qn),s.removeEventListener("readystatechange",this.qn)),this.qn()},this.cr=e=>{var s;let r,n,o,h,l,u,c,d,p=this.xs,v=(s=this.Ln,o=(0,a.Ja)(s),h=s.offsetWidth,l=s.offsetHeight,u=o.top,c=o.left,void 0===e.changedTouches?(n=e.pageX,r=e.pageY):(n=e.changedTouches[0].pageX,r=e.changedTouches[0].pageY),d=(0,a.w)((u-r+l)/l,0,1),{x:(0,a.w)((n-c)/h,0,1),y:d}),f=rk(p)+v.x*rT(p);f===p.duration&&(f-=.1),this.sr(f)},this.dr=()=>{this.On.we()},this.lr=()=>{this.On.be()},this.zn=()=>{this.Un&&(this.tr(),this.$n(),this.ir())},this.ir=()=>{var e,s,r;let n=null==(s=this.Un)||null==(e=s.activeCues)?void 0:e[0],o=(0,a.z)(this.Vn,e=>e.pr===n);o!==this.ar&&(null==(r=this.ar)||r.mr(),this.ar=o,null==o||o.gr())},this.ur=e,this.On=new nd,this.Dn.contentEl().appendChild(this.On.xe),this.Ln=c.createElement("div"),(0,a.l)(this.Ln,"theoplayer-chapterbar"),this.ur.appendChild(this.Ln),this.ur.addEventListener("mousemove",this.cr),this.ur.addEventListener("mouseenter",this.lr),this.ur.addEventListener("mouseleave",this.dr),this.Hn()}},nc=class{get xe(){return this.Ls}gr(){(0,a.l)(this.Ls,"theoplayer-chapter-indicator-active")}mr(){(0,a.m)(this.Ls,"theoplayer-chapter-indicator-active")}yr(e,s){let r=e.seekable.start(0),n=e.seekable.end(e.seekable.length-1),o=n-r,h=this.pr.startTime,l=this.pr.endTime,u=(0,a.w)(h-r,0,o),d=(0,a.w)(l-r,0,o),p=b.max(0,d-u),v=c.createElement("div");(0,a.l)(v,"theoplayer-chapter-indicator");let f=c.createElement("div");(0,a.l)(f,"theoplayer-chapter-indicator-highlight"),v.appendChild(f),s&&(0,a.l)(v,"theoplayer-chapter-indicator-discontinuous");let g=u/o*100,m=p/o*100;return v.style.display=l>=r&&h<=n?"":"none",v.style.width=m+"%",v.style.left=g+"%",v}Oe(){(0,a.i)(this.Ls)}constructor(e,s,r){this.pr=void 0,this.Ls=void 0,this.pr=e,this.Ls=this.yr(s,r)}},nd=class{we(){this.br--,0===this.br&&(0,a.m)(this.xe,"theoplayer-chapter-hovering")}Rn(e){this.kr=e||[],this.kr.length>0&&(this.xe.style.display="")}wr(e){(0,a.Na)(this._r,e.content)}hr(){this.kr=[],(0,a.Na)(this._r,""),this.xe.style.display="none"}be(){this.br++,this.br>0&&(0,a.l)(this.xe,"theoplayer-chapter-hovering")}er(e){for(let n of this.kr){var s,r;if(s=n,r=e,new a.ga([s.startTime,s.endTime]).Cr(r)){this.wr(n);break}}}Oe(){(0,a.i)(this.xe)}constructor(){this.kr=[],this.xe=void 0,this._r=void 0,this.br=0,this.xe=c.createElement("div"),(0,a.l)(this.xe,"theoplayer-chaptertitle"),this.xe.style.display="none",this._r=c.createElement("p"),this.xe.appendChild(this._r)}},np=rm.getComponent("SeekBar"),nv=class extends rS(np){updateAriaAttributes(e){let s=rC(this.player()),r=this.xs;e.setAttribute("aria-valuenow",(100*this.Sr(s)).toFixed(2)),e.setAttribute("aria-valuetext",rE(s-rb(r),rT(r)))}getPercent(){return this.Sr(this.player().currentTime())}handleMouseMove(e){if(this.xs&&this.xs.ads&&this.xs.ads.playing)return;let s=this.xs,r=rk(s)+this.calculateDistance(e)*rT(s);r>=s.duration&&(r=s.duration-.1),this.Ln.sr(r),this.player().currentTime(r)}handleMouseDown(e){this.playingStates.push(!this.player().paused()),this.Ln.nr(),super.handleMouseDown(e)}handleMouseUp(e){this.videoWasPlaying=!!this.playingStates.pop(),this.Ln.rr(),super.handleMouseUp(e)}Sr(e){let s=this.xs,r=(e-rk(s))/rT(s);return(0,a.w)(r,0,1)}dispose(){this.Ln.Oe(),(0,a.C)(this.playingStates)}constructor(e,s){super(e,s),this.Ln=void 0,this.playingStates=[],this.on(e,"emptied",this.update),this.on(e,"seeking",this.update),this.Ln=new nu(this.el(),e)}};rm.registerComponent("SeekBar",nv),(0,a.c)();var nf=rm.getComponent("ProgressControl");a.r.Zs.Ks&&rm.registerComponent("ProgressControl",class extends nf{createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(e){this.seekBar.handleMouseMove(e)}handleMouseDown(e){null==e.preventDefault||e.preventDefault.call(e),this.seekBar.handleMouseDown(e)}handleMouseUp(e){null==e.preventDefault||e.preventDefault.call(e),this.seekBar.handleMouseUp(e)}constructor(e,s){super(e,s),this.on(this,"touchmove",this.handleMouseMove),this.on("touchstart",this.handleMouseDown),this.on("touchend",this.handleMouseUp),this.seekBar.off(["touchmove","touchstart","touchend"])}}),(0,a.c)();var ng=rm.getComponent("TooltipProgressBar"),nm=class extends rS(ng){updateDataAttr(){let e=rC(this.player()),s=this.Bn(e);this.el().setAttribute("data-current-time",s),this.tooltip.innerHTML=s}Bn(e){let s=this.xs;return rE(e-rb(s),rT(s))}createEl(){let e=super.createEl();return e.className=this.buildCSSClass(),e}buildCSSClass(){return"theo-primary-color vjs-tooltip-progress-bar vjs-slider-bar "+super.buildCSSClass()}constructor(e,s){super(e,s)}};function ny(e){for(let s of e)if(s.enabled)return s}function nC(e){if(e){var s;return e.label&&""!==e.label?{name:e.label,hd:!1}:{name:(s=e).height?s.height+"p":s.bandwidth?nb(s):"",description:nb(e),hd:!!e.height&&e.height>=720}}}function nb(e){return e.bandwidth?e.bandwidth>1e7?(e.bandwidth/1e6).toFixed(0)+"Mbps":e.bandwidth>1e6?(e.bandwidth/1e6).toFixed(1)+"Mbps":(e.bandwidth/1e3).toFixed(0)+"kbps":""}rm.registerComponent("TooltipProgressBar",nm),(0,a.c)(),(0,a.c)(),(0,a.c)(),(0,a.c)(),(0,a.c)();var nk=class{get jr(){return this.Tr}set jr(e){let s=this.Tr;for(let r=s.length-1;r>=0;r--){let n=s[r];(0,a.B)(e,n)||this.Mr(n)}for(let s of e)this.Ar(s);this.Pr.oe()}get Nr(){return this.Pr.menuItems}Er(e){let s=this.Nr;if(s){for(let r of s)if(r.Br===e)return r}}Ir(e){let s=this.Pr.addMenuItem();return s.Br=e,s.on("click",()=>this.Fr(s)),s.el().setAttribute("role","menuitemradio"),s}Dr(e){e.dispose()}$r(e){return!0}Ar(e){if(this.$r(e)){(0,a.B)(this.Tr,e)||this.Tr.push(e);let s=this.Er(e)||this.Ir(e);return this.Ur(s),s}this.Mr(e)}Mr(e){let s=this.Er(e);s&&(this.Pr.removeMenuItem(s),this.Dr(s)),(0,a.A)(this.Tr,e)}Oe(){let e=[];for(let s of this.Tr)e.push(s);for(let s of e)this.Mr(s);(0,a.C)(e)}constructor(e){this.Pr=void 0,this.Tr=[],this.Pr=e}},nT=class extends nk{Rr(){return this.Or=c.createElement("span"),this.Or.className="theo-settings-control-menu-item-title",(0,a.Na)(this.Or,this.Vr.localize("Quality")),this.Or}Lr(){return this.Hr=c.createElement("span"),this.Hr.className="theo-settings-control-menu-quality-automatic",(0,a.Na)(this.Hr,this.Vr.localize("Automatic")),this.Hr}qr(){return this.zr=c.createElement("span"),(0,a.Na)(this.zr,this.Vr.localize("Automatic")),this.zr}Wr(){return this.Gr=c.createElement("span"),this.Gr.className="theo-primary-color theo-settings-control-menu-item-hd-label",(0,a.Na)(this.Gr,this.Vr.localize("HD")),this.Gr}
1Xr(){let e=c.createElement("span");e.className="theo-primary-color theo-settings-control-menu-item-value",e.appendChild(this.Hr),e.appendChild(c.createTextNode(" ")),e.appendChild(this.zr),e.appendChild(c.createTextNode(" ")),e.appendChild(this.Gr),this.Jr.el().appendChild(this.Or),this.Jr.el().appendChild(e),this.Jr.el().setAttribute("aria-label",this.Vr.localize("Open the video quality settings menu"))}Qr(){let e=this.Yr,s=e&&nL(e.targetQuality),r=e&&e.activeQuality,n=nC(this.Kr(s||r))||{name:this.Vr.localize("Automatic")};(0,a.Na)(this.zr,n.name),(0,a.n)(this.Hr,"vjs-hidden",!!s),(0,a.n)(this.Gr,"vjs-hidden",!n.hd)}Ur(e){let s=nC(e.Br)||{name:this.Vr.localize("Automatic")},r=s.name;s.hd&&(r+='<span class="theo-primary-color theo-settings-control-menu-item-hd-label">'+this.Vr.localize("HD")+"</span>"),s.description&&(r+='<span class="theo-settings-control-submenu-item-alternate-value">'+s.description+"</span>"),e.el().innerHTML=r,e.el().setAttribute("aria-label",this.Vr.localize("Set video quality to ")+s.name),e.Br?e.selected(e.Br===this.Zr):e.selected(!this.Zr)}Fr(e){this.Yr&&(this.Yr.targetQuality=e.Br&&e.Br.videoQualities)}Kr(e,s){for(let r of s||this.jr)if(e&&r&&-1!==r.videoQualities.indexOf(e))return r}Oe(){this.Cs.videoTracks.removeEventListener(["addtrack","removetrack","change"],this.th),this.Vr.off("languagechange",this.se),this.Yr&&(this.Yr.removeEventListener("activequalitychanged",this.ih),this.Yr.removeEventListener("targetqualitychanged",this.sh),this.Yr.removeEventListener("update",this.eh)),super.Oe()}constructor(e,s,r){super(e.subMenu),this.Jr=void 0,this.Cs=void 0,this.Vr=void 0,this.Yr=void 0,this.Zr=void 0,this.Or=void 0,this.Hr=void 0,this.zr=void 0,this.Gr=void 0,this.th=()=>{let e=ny(this.Cs.videoTracks);if(e===this.Yr)return;let s=[];if(this.Yr&&(this.Yr.removeEventListener("activequalitychanged",this.ih),this.Yr.removeEventListener("targetqualitychanged",this.sh),this.Yr.removeEventListener("update",this.eh)),this.Yr=e,e){e.addEventListener("activequalitychanged",this.ih),e.addEventListener("targetqualitychanged",this.sh),e.addEventListener("update",this.eh);let r=nE(nN(e.qualities.filter(e=>e.available)));s=r.length>1?[void 0,...r]:[void 0]}this.jr=s,this.sh(),this.ih()},this.eh=e=>{let s,r=e.track;if(r!==this.Yr)return;let n=nE(nN(r.qualities.filter(e=>e.available))),o=r&&nL(r.targetQuality);this.Zr=this.Kr(o,n),s=n.length>1?[void 0,...n]:[void 0],this.jr=s,this.Qr()},this.ih=()=>{this.Ar(void 0),this.Qr()},this.sh=()=>{let e=ny(this.Cs.videoTracks),s=e&&nL(e.targetQuality),r=this.Kr(s),n=this.Zr;r!==n&&(this.Zr=r,r&&n||this.Ar(void 0),n&&(0,a.B)(this.jr,n)&&this.Ar(n),s&&this.Ar(r),this.Qr())},this.se=()=>{for(let e of((0,a.Na)(this.Pr.menuHeader.el(),this.Vr.localize("Quality")),(0,a.Na)(this.Or,this.Vr.localize("Quality")),(0,a.Na)(this.Hr,this.Vr.localize("Automatic")),(0,a.Na)(this.zr,this.Vr.localize("Automatic")),(0,a.Na)(this.Gr,this.Vr.localize("HD")),this.Jr.el().setAttribute("aria-label",this.Vr.localize("Open the video quality settings menu")),this.Nr))this.Ur(e);this.Qr()},this.Jr=e,this.Cs=s,this.Vr=r,this.Or=this.Rr(),this.Hr=this.Lr(),this.zr=this.qr(),this.Gr=this.Wr(),this.Xr(),(0,a.Na)(this.Pr.menuHeader.el(),this.Vr.localize("Quality")),this.jr=[void 0],this.Cs.videoTracks.addEventListener(["addtrack","removetrack","change"],this.th),this.Vr.on("languagechange",this.se),this.th()}},nx=class{get height(){return this.nh[0].height}get bandwidth(){return this.nh[0].bandwidth}get videoQualities(){return this.nh}get label(){return this.nh[0].label}add(e){this.nh.push(e)}constructor(e){this.nh=void 0,this.nh=e}};function nE(e){let s=[];for(let o of e){let e=!1;for(let h of s){var r,n;if(r=h,n=o,r.label&&n.label&&r.label===n.label||(0,a.S)(nC(r),nC(n))){h.add(o),e=!0;break}}e||s.push(new nx([o]))}return s}function nS(e,s){return e&&s?(0,a.y)(e,s):a.x.rh}function nw(e,s){return e===s?a.x.rh:nS(e.height,s.height)||nS(e.width,s.width)||nS(e.bandwidth,s.bandwidth)}function nN(e){return(0,a.v)(e,nw).reverse()}function nL(e){return(0,a.f)(e)?1===e.length?e[0]:void 0:e}function nA(e){return 1===e?"Normal":""+b.round(100*e)/100}(0,a.c)();var nP=class extends nk{Rr(){return this.Or=c.createElement("span"),this.Or.className="theo-settings-control-menu-item-title",(0,a.Na)(this.Or,this.Vr.localize("Speed")),this.Or}
1Xr(){let e=c.createElement("span");return e.className="theo-primary-color theo-settings-control-menu-item-value",this.Jr.el().appendChild(this.Or),this.Jr.el().appendChild(e),this.Jr.el().setAttribute("aria-label",this.Vr.localize("Open the video speed settings menu")),e}Ir(e){let s=super.Ir(e);return this.Ur(s),s}Ur(e){let s=e.Br,r=this.Vr.localize(nA(s));(0,a.Na)(e.el(),r),e.el().setAttribute("aria-label",this.Vr.localize("Set video speed to ")+r),e.selected(e.Br===this.Cs.playbackRate)}Fr(e){this.Cs.playbackRate=e.Br}Oe(){this.Cs.removeEventListener("ratechange",this.hh),this.Vr.off("languagechange",this.se),super.Oe()}constructor(e,s,r,n){super(e.subMenu),this.Jr=void 0,this.Cs=void 0,this.Vr=void 0,this.oh=void 0,this.Or=void 0,this.ah=void 0,this.hh=()=>{this.oh&&this.Ar(this.oh);let e=this.Cs.playbackRate;this.oh=e,(0,a.Na)(this.ah,this.Vr.localize(nA(e))),e&&this.Ar(e)},this.se=()=>{for(let e of((0,a.Na)(this.Pr.menuHeader.el(),this.Vr.localize("Speed")),(0,a.Na)(this.Or,this.Vr.localize("Speed")),this.Jr.el().setAttribute("aria-label",this.Vr.localize("Open the video speed settings menu")),this.Nr))this.Ur(e);this.hh()},this.Jr=e,this.Cs=s,this.Vr=r,this.Or=this.Rr(),this.ah=this.Xr(),(0,a.Na)(this.Pr.menuHeader.el(),this.Vr.localize("Speed")),this.jr=n,this.Cs.addEventListener("ratechange",this.hh),this.Vr.on("languagechange",this.se),this.hh()}};rm.registerComponent("SettingsButton",class extends rG{createEl(){let e=super.createEl();return this.uh=rm.createEl("span",{className:"theo-settings-control-label-hd theo-primary-background"}),(0,a.Na)(this.uh,this.localize("HD")),e.appendChild(this.uh),e}buildCSSClass(){return"vjs-icon-cog theo-settings-control-button "+super.buildCSSClass()}se(){super.se(),(0,a.Na)(this.uh,this.localize("HD")),(0,a.Na)(this.menu.menuHeader.el(),this.localize("Settings"))}dispose(){this.Yr&&(this.Yr.removeEventListener("activequalitychanged",this.ih),this.Yr=void 0),this.xs.videoTracks.removeEventListener(["addtrack","removetrack","change"],this.dh),this.fh.Oe(),this.ph.Oe(),super.dispose()}constructor(e,s){var r,n;super(e,s),this.mh=void 0,this.fh=void 0,this.gh=void 0,this.ph=void 0,this.Yr=void 0,this.dh=()=>{let e=ny(this.xs.videoTracks);e!==this.Yr&&(this.Yr&&this.Yr.removeEventListener("activequalitychanged",this.ih),this.Yr=e,e&&e.addEventListener("activequalitychanged",this.ih),this.ih())},this.ih=()=>{var e;let s=null==(e=this.Yr)?void 0:e.activeQuality,r=!!(s&&s.height>=720);this.player().toggleClass("theo-hd",r)},(0,a.l)(this.menu.el(),"theo-settings-control-menu"),(0,a.Na)(this.menu.menuHeader.el(),e.localize("Settings")),this.controlText("Settings"),this.De.Fe=this.controlText(),this.mh=this.menu.addSubMenuItem({name:"QualityMenuItem"}),this.fh=new nT(this.mh,this.xs,e);const o=null!=(n=null==s||null==(r=s.playerOptions)?void 0:r.playbackRates)?n:[];this.gh=this.menu.addSubMenuItem({name:"PlaybackRateMenuItem"}),this.ph=new nP(this.gh,this.xs,e,o),this.xs.videoTracks.addEventListener(["addtrack","removetrack","change"],this.dh),this.dh()}}),(0,a.c)(),(0,a.c)(),(0,a.c)();var nI=class extends nk{yh(e){let s=e.label;if(s)return s;let r=e.language;if(r){let e=(0,a.Za)(r);if(e)return e.bh}return r||""}kh(){this.jr=this.wh}Oe(){this.wh.removeEventListener("addtrack",this._h),this.wh.removeEventListener("removetrack",this.xh),this.wh.removeEventListener("change",this.Ch),super.Oe()}constructor(e,s){super(e),this.wh=void 0,this._h=e=>{let s=e.track;this.Ar(s),s.addEventListener("update",this.Sh)},this.xh=e=>{let s=e.track;this.Mr(s),s.removeEventListener("update",this.Sh)},this.Ch=e=>this.kh(),this.Sh=()=>{for(let e of this.jr)this.Ar(e)},this.wh=s,this.wh.addEventListener("addtrack",this._h),this.wh.addEventListener("removetrack",this.xh),this.wh.addEventListener("change",this.Ch),this.kh()}},nj=class extends nI{Ur(e){let s=e.Br,r=this.Vr.localize(this.yh(s));(0,a.Na)(e.el(),r),e.el().setAttribute("aria-label",this.Vr.localize("Set the audio language to")+" "+r),e.selected(s.enabled)}Fr(e){let s=e.Br;for(let e of this.xs.audioTracks)e!==s&&(e.enabled=!1);s.enabled=!0}Oe(){this.Vr.off("languagechange",this.se),super.Oe()}constructor(e,s,r){super(e,s.audioTracks),this.xs=void 0,this.Vr=void 0,this.se=()=>
1{for(let e of((0,a.Na)(this.Pr.menuHeader.el(),this.Vr.localize("Language")),this.Nr))this.Ur(e)},this.xs=s,this.Vr=r,(0,a.Na)(this.Pr.menuHeader.el(),this.Vr.localize("Language")),this.Vr.on("languagechange",this.se)}};rm.registerComponent("audioTrackButton",class extends rG{buildCSSClass(){return"vjs-icon-audio theo-audio-track-control-button "+super.buildCSSClass()}dispose(){this.jh.Oe(),super.dispose()}constructor(e,s){super(e,s),this.jh=void 0,this.minimumMenuItems=2,this.jh=new nj(this.menu,this.xs,e),this.controlText("Language"),this.De.Fe=this.controlText()}}),(0,a.c)(),(0,a.c)();var nM=class extends nI{$r(e){return!!super.$r(e)&&!e.forced&&(0,a.aa)(e.kind)}Ir(e){let s=super.Ir(e);(0,a.l)(s.el(),"theo-text-track-menu-item");let r=c.createElement("span");s.Th=r;let n=c.createElement("div");n.className="theo-text-track-menu-item-toggle",s.Mh=n;let o=e=>this.Ah(e,s);s.Ph=o,n.addEventListener("click",o);let h=c.createElement("div");return h.className="theo-text-track-menu-item-toggle-slider",n.appendChild(h),s.el().appendChild(r),s.el().appendChild(n),s}Ur(e){let s=e.Br,r=this.Vr.localize(this.yh(s));(0,a.Na)(e.Th,r),e.el().setAttribute("aria-label",this.Vr.localize("Set the subtitle language to")+" "+r),e.el().setAttribute("role","menuitemcheckbox"),e.selected(s.mode===a.Z.Kn)}Dr(e){e.Mh.removeEventListener("click",e.Ph),super.Dr(e)}Fr(e){let s=e.Br;for(let e of this.xs.textTracks)e!==s&&(0,a.$)(e.kind,s.kind)&&(e.mode=a.Z.Nh);s.mode!==a.Z.Kn?s.mode=a.Z.Kn:s.mode=a.Z.Nh}Ah(e,s){e.stopImmediatePropagation(),this.Fr(s)}Oe(){this.Vr.off("languagechange",this.se),super.Oe()}constructor(e,s,r){super(e,s.textTracks),this.xs=void 0,this.Vr=void 0,this.se=()=>{for(let e of((0,a.Na)(this.Pr.menuHeader.el(),this.Vr.localize("Subtitles")),this.Nr))this.Ur(e)},this.xs=s,this.Vr=r,(0,a.Na)(this.Pr.menuHeader.el(),r.localize("Subtitles")),this.Vr.on("languagechange",this.se)}};rm.registerComponent("subtitlesButton",class extends rG{buildCSSClass(){return"vjs-icon-subtitles theo-text-track-control-button "+super.buildCSSClass()}dispose(){this.jh.Oe(),super.dispose()}constructor(e,s){super(e,s),this.jh=void 0,this.jh=new nM(this.menu,this.xs,e),this.controlText("Subtitles"),this.De.Fe=this.controlText()}}),(0,a.c)();var nO=rm.getComponent("playToggle"),nD=class extends rS(nO){handleClick(e){this.xs.muted||this.xs.prepareWithUserAction(),super.handleClick(e)}handlePlay(e){super.handlePlay(e),this.controlText("Pause"),this.De.Fe=this.controlText()}handlePause(e){this.xs.ended||(super.handlePause(e),this.controlText("Play"),this.De.Fe=this.controlText())}se(){this.De.Fe=this.controlText()}dispose(){this.De.Oe(),this.xs.removeEventListener("ended",this.Eh),super.dispose()}constructor(e,s){super(e,s),this.De=void 0,this.Eh=()=>{this.controlText("Replay"),this.De.Fe=this.controlText()},this.controlText("Play"),this.De=new rY(this,this.controlText()),this.xs.addEventListener("ended",this.Eh),this.on(e,"languagechange",this.se),a.r.Zs.Ke&&new rO(this.el())}};rm.registerComponent("playToggle",nD),(0,a.c)();var nB=rm.getComponent("fullscreenToggle"),nH=class extends rS(nB){handleClick(e){this.xs.prepareWithUserAction(),super.handleClick(e)}handleFullscreenChange(e){super.handleFullscreenChange(e),this.updateContent()}updateContent(){let e=this.player().isFullscreen()?"Exit fullscreen":"Fullscreen";this.controlText(e),this.De.Fe=this.controlText()}dispose(){this.De.Oe(),super.dispose()}constructor(e,s){super(e,s),this.De=void 0,this.controlText("Fullscreen"),this.De=new rY(this,this.controlText()),a.r.Zs.Ke&&new rO(this.el()),this.on(e,"languagechange",this.updateContent)}};rm.registerComponent("fullscreenToggle",nH),(0,a.c)();var nF=rm.getComponent("muteToggle"),nR=class extends rS(nF){handleClick(e){this.xs.muted&&!this.xs.paused&&this.xs.prepareWithUserAction(),super.handleClick(e)}update(e){super.update(e),this.se()}se(){let e=this.player().muted()?"Unmute":"Mute";this.controlText(e),this.De.Fe=this.controlText()}dispose(){this.De.Oe(),super.dispose()}constructor(e,s){super(e,s),this.De=void 0,this.controlText("Mute"),this.De=new rY(this,this.controlText()),a.r.Zs.Ke&&new rO(this.el()),this.on(e,"languagechange",this.se),a.F&&(this.removeClass("vjs-hidden"),this.on(e,"loadstart",()=>{this.removeClass("vjs-hidden")}))}};rm.registerComponent("muteToggle",nR),(0,a.c)();var nV=rm.getComponent("BigPlayButton"),nU="theo-play-svg-circle",n$='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150" fill="currentColor">\n <circle cx="75" cy="75" r="73" fill="#000" fill-opacity="0.2"></circle>\n <circle cx="75" cy="75" r="73" class="'+nU+'" stroke-width="4" stroke="currentColor" fill="none" transform="rotate(-90,75,75)"></circle>\n <g transform="translate(85,75) scale(0.5625) translate(-75,-75)">\n <path d="m 123.89639,85.432 c -12.865,9.167 -29.482997,19.402 -49.848997,30.7 -19.634,11.035 -36.851,19.7 -51.65,26 l -16.3990002,6.099 c -1.033,-4.433 -2,-11.002 -2.9,-19.7 -2.033,-17.333 -3.04999998,-36.466 -3.04999998,-57.399 0,-19.167 1.38199998,-37.081 4.14799998,-53.75 l 4.0019995,-19.1499994 17.3990007,5.849 c 15.068,5.9999994 31.401,14.5169994 49,25.5509994 18.631,11.666 34.616997,22.766 47.948997,33.3 6.663,5.3 11.463,9.383 14.396,12.25 l -13.046,10.25"></path>\n </g>\n</svg>',nz=class extends rS(nV){createEl(){let e=super.createEl(),s=rm.createEl("div",{className:"theo-big-play-button-svg-container"});return s.innerHTML=n$,e.appendChild(s),e}buildCSSClass(){return"theo-primary-color "+super.buildCSSClass()}handleClick(e){this.xs.muted||this.xs.prepareWithUserAction(),super.handleClick(e),void 0!==this.xs.vr&&"unavailable"!==this.xs.vr.state&&(this.xs.vr.useDeviceMotionControls=!0)}};rm.registerComponent("BigPlayButton",nz),(0,a.c)();var n_=/^([^#]*)#xywh=(\d+),(\d+),(\d+),(\d+)\s*$/;rm.registerComponent("MouseTimeDisplay",class extends nn{Bh(e){let s=e.track;"metadata"===s.kind&&"thumbnails"===s.label&&void 0===this.Ih&&(this.Ih=s,this.Fh=s.src?a.r.Dh(s.src).href:void 0,this.Ih.addEventListener(["addcue","removecue"],this.$h),this.Uh())}Rh(e){e.track===this.Ih&&this.Oh()}createEl(){let e=super.createEl();return this.Vh=rm.createEl("img",{className:"theo-time-tooltip-thumbn
1ail"}),this.Lh=rm.createEl("canvas",{className:"theo-time-tooltip-thumbnail"}),e}update(e,s){super.update(e,s),this.keepTooltipsInside&&this.Hh(e)}Hh(e){let s;if(this.Ih&&this.Ih.cues){let r=function(e,s){let r=e[0];for(let n of e)if(n.startTime<=s)r=n;else if(s>=n.endTime)break;return r}(this.Ih.cues,e);s=r&&r.content}if(s===this.qh)return;if(this.qh=s,rm.toggleClass(this.el(),"theo-time-tooltip-has-thumbnail",!!s),!s)return void this.zh();let r=s.match(n_);if(r){let[,e,s,n,o,a]=r;e=this.Wh(e);let h={Gh:Number(s),Xh:Number(n),Ti:Number(o),Mi:Number(a)};this.Jh(e,h)}else{let e=this.Wh(s);this.Jh(e)}}Uh(){x(this.En)||this.Hh(this.En)}Wh(e){return this.Ih&&this.Fh?a.r.Dh(e,this.Fh).href:e}Jh(e,s){this.Vh&&(this.Vh.src!==e?(this.Vh.onload=()=>{this.Qh(s)},this.Vh.src="",this.Vh.src=e):this.Qh(s))}Qh(e){if(!this.Lh||!this.Vh)return;let s=this.Lh.getContext("2d");s&&(null!=e||(e={Gh:0,Xh:0,Ti:this.Vh.naturalWidth,Mi:this.Vh.naturalHeight}),this.Lh.width=e.Ti,this.Lh.height=e.Mi,s.drawImage(this.Vh,e.Gh,e.Xh,e.Ti,e.Mi,0,0,e.Ti,e.Mi),this.Yh(this.Lh))}Yh(e){this.Kh||((0,a.j)(this.tooltip,e),this.Kh=e),this.In()}zh(){this.Kh&&(this.tooltip.removeChild(this.Kh),this.Kh=void 0,this.In())}Oh(){void 0!==this.Ih&&(this.Ih.removeEventListener(["addcue","removecue"],this.$h),this.Ih=void 0),this.Fh=void 0,this.zh(),this.qh=void 0}dispose(){this.Oh(),super.dispose()}constructor(e,s){super(e,s),this.Kh=void 0,this.Ih=void 0,this.Fh=void 0,this.Zh=e=>this.Bh(e),this.io=e=>this.Rh(e),this.$h=e=>this.Uh(),this.qh=void 0,this.showThumbnails=()=>{this.Kh&&this.Kh.hidden&&(this.Kh.hidden=!1,this.In())},this.hideThumbnails=()=>{!this.Kh||this.Kh.hidden||this.player().scrubbing()||(this.Kh.hidden=!0,this.In())},this.on(this.player().textTracks(),"addtrack",this.Zh),this.on(this.player().textTracks(),"removetrack",this.io),a.d.Ks&&(this.on(e,"seeking",this.showThumbnails),this.on(e,"seeked",this.hideThumbnails))}}),(0,a.c)();var nq=rm.getComponent("VolumeLevel");rm.registerComponent("VolumeLevel",class extends nq{createEl(){let e=super.createEl();return e.className=this.buildCSSClass(),e}buildCSSClass(){return"theo-primary-color vjs-volume-level "+super.buildCSSClass()}}),(0,a.c)(),(0,a.c)();var nW=rm.getComponent("Component"),nY=class extends nW{createEl(){let e=super.createEl();return e.className=this.buildCSSClass(),e}buildCSSClass(){return"theo-menu-container "+super.buildCSSClass()}};nY.prototype.h=(0,a.I)({},nY.prototype.h,{children:[]}),rm.registerComponent("controlBarMenuContainer",nY);var nX=rm.getComponent("Player"),nG=class extends nX{dispose(){let e=this.el(),s=this.contentEl(),r
1=e.parentNode,n=e.nextSibling;super.dispose(),(0,a.i)(s),this.Si&&r&&(n?r.insertBefore(e,n):r.appendChild(e)),c.body.removeEventListener("keydown",this.handleKeyPress),c.body.removeEventListener("click",this.handleClick)}constructor(e,s,r){super(e,s,r),this.handleKeyPress=e=>{9===e.which&&this.addClass("theo-probably-keyboard-focus")},this.handleClick=e=>{0===e.x&&0===e.y||this.removeClass("theo-probably-keyboard-focus")},c.body.addEventListener("keydown",this.handleKeyPress),c.body.addEventListener("click",this.handleClick)}};nG.prototype.h=(0,a.I)({},nX.prototype.h,{children:["bigPlayButton","AdControlPanel","TopControlBar","mediaLoader","upNextContainer","posterImage","chromecastOverlay","upcomingAdNotificationText","controlBarMenuContainer","controlBar","textTrackDisplay","loadingSpinner","errorDisplay","textTrackSettings","xrCompass"]}),rm.registerComponent("Player",nG),(0,a.c)(),(0,a.c)();var nK=rm.getComponent("Player"),nJ=nK.prototype.ns;nK.prototype.ns=function(e){if(!(this.H&&this.H.Rs&&this.H.Rs()))return nJ.call(this,e)};var nZ=nK.prototype.createEl;nK.prototype.createEl=function(){let e=nZ.call(this),s=rm.createEl("div");for(s.className="theo-player-wrapper";e.firstChild;)s.appendChild(e.firstChild);return e.appendChild(s),this.S=s,e},(0,a.c)(),(0,a.c)(),(0,a.c)(),(0,a.c)();var nQ=rm.getComponent("Button"),n0="THEOPiPCloseButton";rm.registerComponent(n0,class extends nQ{buildCSSClass(){return"theo-close-button theo-pip-close"}handleClick(){this.no.eo()}constructor(e,s){if(super(e,s),this.no=void 0,this.controlText("Close Picture-in-Picture"),!function(e){return!!e&&!!e.no}(s))throw new g("Invalid Picture-in-picture options.");this.no=s.no}});var n1=class extends a.L{get ro(){return this.ho}get oo(){return this.t.ds()}ao(){this.t.wn(a.N.uo,this.co),this.lo||this.t.wn(a.N.do,this.fo),this.t.vo.on("languagechange",this.se)}po(){var e;return"theo-pip-"+(null!=(e=this.mo)?e:"bottom-right")}yo(e){let s=this.bo;s&&!this.oo&&(this.ko||this.wo(),this._o(),(0,a.l)(s,"theo-pip"),(0,a.l)(s,this.po()),this.ho=!0,this.xo=e,this.Co=!1,this.So(new a.za(a.la.PICTURE_IN_PICTURE)))}jo(e){let s=this.bo;s&&(this.To(),(0,a.m)(s,"theo-pip"),(0,a.m)(s,this.po()),this.ho=!1,this.Co=e,this.Mo=this.xo,this.xo=!1,this.So(new a.za(a.la.INLINE)))}wo(){if(!this.ko){let e=this.t.vo;e.addChild(n0,{no:this});let s=c.createElement("div");s.className="theo-pip-overlay",this.Ao=c.createElement("div"),this.Ao.className="theo-pip-overlay-text",(0,a.Na)(this.Ao,e.localize("Video playing in Picture-in-Picture mode")),s.appendChild(this.Ao),(0,a.j)(e.el(),s),this.Po=s,this.ko=!0}}No(){this.Eo&&!this.Bo&&this.t.Io&&(this.Fo=this.t.Io.Do(a.Oa,this.$o),this.Bo=!0)}Uo(){this.Fo&&this.t.Io&&(this.t.Io.Ro(this.Fo),this.Bo=!1)}_o(){let e=this.t.vo.contentEl(),s=e.getBoundingClientRect(),r=c.documentElement.clientWidth,n=c.documentElement.clientHeight;e.style.top=s.top+"px",e.style.bottom=n-s.bottom+"px",e.style.right=r-s.right+"px",e.style.left=s.left+"px",e.style.width=s.width+"px",e.style.height=s.height+"px",e.style.position="fixed"}To(){let e=this.t.vo.contentEl();e.style.top="",e.style.bottom="",e.style.right="",e.style.left="",e.style.width="",e.style.height="",e.style.position=""}Oo(){(0,a.m)(this.bo,"theo-pip"),this.ro&&this.mo&&(0,a.m)(this.bo,"theo-pip-"+this.mo),this.Po&&((0,a.i)(this.Po),this.Po=void 0)}kn(){this.Oo(),this.Uo(),this.Vo(),this.t.mn(a.N.uo,this.co),this.t.mn(a.N.do,this.fo),this.t.vo.off("languagechange",this.se),this.t=void 0}constructor(e,s,r){super(),this.Lo=void 0,this.mo=void 0,this.lo=void 0,this.t=void 0,this.bo=void 0,this.Ho=!1,this.ho=!1,this.Co=!1,this.xo=!1,this.ko=!1,this.eo=void 0,this.Bo=!1,this.Fo=void 0,this.Po=void 0,this.Ao=void 0,this.Mo=!1,this.Eo=void 0,this.co=()=>{this.Ho=!0,this.Eo&&!this.ro&&this.Fo&&this.Lo&&this.Fo.qo<=this.Lo&&this.yo(!1)},this.fo=()=>{this.lo||(this.Ho=!1,this.eo(),this.jo(!1))},this.se=()=>{if(this.Ao){let e=this.t.vo;(0,a.Na)(this.Ao,e.localize("Video playing in Picture-in-Picture mode"))}},this.$o=e=>{!this.xo&&this.Eo&&(x(e)||(this.Lo&&e<=this.Lo||this.Mo?this.ho||this.Co||this.yo(!1):this.ho?this.jo(!1):this.Co=!1))},this.Lo=s.visibility,this.mo=s.position,this.lo=s.retainPresentationModeOnSourceChange,this.Eo=void 0!==this.Lo,this.t=e,this.bo=e.zo,this.eo=r,this.ao()}},n2=class extends a.Ba{Wo(){let e=super.Wo();return e===a.la.INLINE&&this.Go.ro?a.la.PICTURE_IN_PICTURE:e}Xo(e){return e===a.la.PICTURE_IN_PICTURE||super.Xo(e)}Jo(e){this.Qo=this.Yo,e===a.la.FULLSCREEN||e===a.la.NATIVE_PICTURE_IN_PICTURE?this.Go.Uo():this.Go.No(),super.Jo(e)}Ko(e){super.Ko(e),e===a.la.PICTURE_IN_PICTURE?(0,a.E)(this.ta.Zo(e=>this.ia(e))):e===a.la.FULLSCREEN?this.Go.jo(!1):this.Go.jo(!0)}async ia(e){(0,a.D)(e),await Promise.all([this.sa(),this.ea.jo()]).catch(a.s),(0,a.D)(e),this.Go.yo(!this.na),this.So(new a.za(this.Yo)),this.na=!1,this.ra=!1}_i(){this.ra||(this.Go.ro&&this.ha.ds?this.Jo(a.la.FULLSCREEN):this.Qo!==a.la.PICTURE_IN_PICTURE||this.ha.ds?super._i():(this.na=!0,this.Jo(a.la.PICTURE_IN_PICTURE)))}kn(){super.kn(),this.Go.kn(),this.oa.mn(a.N.uo,this.aa),this.oa=void 0}constructor(e,s,r,n){super(s,r),this.oa=void 0,this.Go=void 0,this.Qo=a.la.INLINE,this.na=!1,this.eo=()=>{this.Yo===a.la.PICTURE_IN_PICTURE&&this.Jo(a.la.INLINE)},this.ua=e=>{this.ra||(this.Yo!==a.la.PICTURE_IN_PICTURE||this.Go.ro?this.Yo!==a.la.PICTURE_IN_PICTURE&&this.Go.ro&&(this.na=!0,this.Jo(a.la.PICTURE_IN_PICTURE)):this.Jo(a.la.INLINE))},this.aa=()=>{this.Wo()!==a.la.PICTURE_IN_PICTURE&&this.Wo()!==a.la.INLINE||this.Go.No(),this.oa.mn(a.N.uo,this.aa)},this.oa=e,this.Go=new n1(e,n.pip,this.eo),this.Go.wn(a.ya.MODE_CHANGE,this.ua),this.oa.wn(a.N.uo,this.aa)}};(0,a.c)();var n3=class extends a.L{get ca(){return a.xa.la(this.vo.el())||this.vo.supportsFullScreen()}get ds(){return this.vo.isFullscreen()||this.da}yo(){this.vo.requestFullscreen()}jo(){this.vo.exitFullscreen(),this.fa.jo()}kn(){this.Vo(),this.vo.off("fullscreenchange",this.va),this.fa.mn(a.pa.pa,this.va),this.fa.mn(a.pa.ma,this.Us),this.vo.isFullWindow&&this.vo.exitFullscreen()}constructor(e,s){super(),this.vo=void 0,this.fa=void 0,this.Vs=!1,this.da=!1,this.ga=!1,this.va=()=>
1{if(this.ga)return;let e=this.Vs,s=this.ds;e!==s&&(this.Vs=s,this.So(new a.va))},this.ya=()=>{this.da=this.fa.ds,this.va()},this.ba=()=>{this.ga||(this.vo.isFullWindow&&this.vo.supportsFullScreen()||this.da&&!this.vo.supportsFullScreen())&&(this.ga=!0,this.vo.exitFullscreen(),this.vo.requestFullscreen(),this.ga=!1,this.va())},this.vo=e,this.fa=s,this.vo.on("fullscreenchange",this.va),this.fa.wn(a.pa.pa,this.ya),this.fa.wn(a.pa.ka,this.ba),this.fa.wn(a.pa.ma,this.Us),this.va()}};(0,a.c)(),(0,a.c)(),(0,a.u)(()=>{var e;let s=(e=(0,a.Ra)(),class extends e{get Io(){return this.wa}ds(){return this._a.Wo()===a.la.FULLSCREEN}xa(){var e,s;let r,n;return e=this.Sa,s=this,r=C.create(e),n=s.vo,(0,a.R)(r,{get controls(){return n.controls()},set controls(t){n.controls((0,a.U)(t))},get presentation(){return s._a.Ca},get presentationMode(){return s._a.Wo()},set presentationMode(t){let e=(0,a.na)(t);e&&s._a.Jo(e)},get ui(){return n},get visibility(){return s.Io.Ca}})}kn(){super.kn(),this._a.kn(),this.ja.kn(),this.vo.dispose(),this.wa.kn()}Ta(e){this.vo.src(""),super.Ta(e)}constructor(e,s,r){super(s,r),this.zo=void 0,this.vo=void 0,this.Sa=void 0,this.wa=void 0,this._a=void 0,this.ja=void 0,this.zo=e,this.wa=new a.Pa(e),this.Sa=super.xa(),C.defineProperty(this.Sa,"constructor",{value:a.Sa}),this.vo=function(e,s,r){let n=(0,a.I)({controls:!0,playbackRates:[.25,.5,1,1.25,1.5,2]},r);n.controlBar=(0,a.I)({progressControl:{keepTooltipsInside:!0}},n.controlBar);let o=n.techOrder||(n.techOrder=[]);-1===o.indexOf("THEOplayer")&&o.unshift("THEOplayer"),(n.theoplayer||(n.theoplayer={})).player=e,r&&(0,a.g)(r.language)&&(n.languages=(0,a.I)({},n.languages,{[a.Ya]:r.language}),n.language=a.Ya),s.setAttribute("data-vjs-player","");let h=s.getAttribute("style"),l=rm(e.element,n,void 0);return l.ready(()=>{let s,r;s=rw(l),r=()=>{let e=rC(l);l.toggleClass("theo-at-live",function(e,s){if(ry(e)){let r=e.seekable;return 0===r.length||r.end(r.length-1)-s<10}return!1}(s,e)),l.toggleClass("vjs-live",ry(s)),l.toggleClass("theo-dvr","dvr"===(0,a._a)(s.duration,s.seekable,s.source))},l.on("emptied",r),l.on("timeupdate",r),l.on("durationchange",r),function(e,s){if(s){let r=s.ads;if(r){let n=s=>{rN(e,"adbreakbegin"===s.type,s.adBreak.integration===a.$a.so)};r.addEventListener("adbreakbegin",n),r.addEventListener("adbreakend",n),s.addEventListener("destroy",()=>{r.removeEventListener("adbreakbegin",n),r.removeEventListener("adbreakend",n)})}let n=s.uplynk;if(n){let r=s=>{rN(e,"adbreakbegin"===s.type,!1)},o=e=>{e.adBreak.addEventListener("adbreakbegin",r),e.adBreak.addEventListener("adbreakend",r)};for(let e of n.ads.adBreaks)e.addEventListener("adbreakbegin",r),e.addEventListener("adbreakend",r);n.ads.adBreaks.addEventListener("addadbreak",o),s.addEventListener("destroy",()=>{for(let e of n.ads.adBreaks)e.removeEventListener("adbreakbegin",r),e.removeEventListener("adbreakend",r);n.ads.adBreaks.removeEventListener("addadbreak",o)})}s.addEventListener("sourcechange",()=>{rN(e,!1,!1)})}}(l,e),l.on("mouseleave",rL)}),s.removeAttribute("data-vjs-player"),h?s.setAttribute("style",h):s.removeAttribute("style"),a.r.Zs.Ks&&((0,a.l)(s,"theo-mobile"),u.outerHeight>u.outerWidth?((0,a.m)(s,"theo-mobile-landscape"),(0,a.l)(s,"theo-mobile-portrait")):((0,a.m)(s,"theo-mobile-portrait"),(0,a.l)(s,"theo-mobile-landscape"))),l.on("seeking",()=>{(0,a.k)(l.el(),"vjs-ended")&&l.currentTime()!==l.duration()&&l.play()}),l}(this.Sa,this.zo,r.ui),this.ja=new n3(this.vo,this.Ma),this._a=new n2(this,this.ja,this.Pa.Aa(),r),this._a.wn(a.ya.MODE_CHANGE,this.Us)}}),r=s;for(let e of S)r=e(r);return r}),(0,a.c)(),(0,a.c)(),(0,a.c)();var n5="theo-cast-",n4=rm.getComponent("Button"),n6=class extends rS(n4){get Ia(){throw new g("Fa")}get Da(){return this.h.Da}get $a(){return this.h.$a}buildCSSClass(){return n5+"button theo-"+this.$a+"-button theo-controlbar-button "+super.buildCSSClass()}createEl(e,s,r){let n=super.createEl(),o=c.createElement("div");o.className="theo-button-icon-blur";let a=c.createElement("div");return a.className=n5+"svg-container",a.innerHTML=this.Da,n.appendChild(o),n.appendChild(a),n}handleClick(e){var s,r;(super.handleClick(e),this.Ua===a.ia.AVAILABLE)?null==(s=this.Ia)||s.start():(this.Ua===a.ia.CONNECTED||this.Ua===a.ia.CONNECTING)&&(null==(r=this.Ia)||r.stop())}Ra(e){(0,a.m)(this.bo,"theo-"+this.$a+"-"+this.Ua),this.Ua=e,(0,a.l)(this.bo,"theo-"+this.$a+"-"+this.Ua),this.se()}se(){this.Oa(this.Ua),this.De.Fe=this.controlText()}Oa(e){e===a.ia.CONNECTED?this.controlText("Stop Casting"):e===a.ia.AVAILABLE?this.controlText("Start Casting"):e===a.ia.CONNECTING?this.controlText("Connecting"):this.controlText("Unavailable")}constructor(e,s){var r;super(e,s),this.bo=void 0,this.Ua=void 0,this.De=void 0,this.Va=void 0,this.bo=e.el(),this.Ua=a.ia.UNAVAILABLE,this.controlText("Unavailable"),this.De=new rY(this,this.controlText()),null==(r=this.Ia)||r.addEventListener("statechange",e=>{this.Ra(e.state)}),a.r.Zs.Ke&&(this.Va=new rO(this.el())),this.Ra(this.Ia?this.Ia.state:a.ia.UNAVAILABLE),this.on(e,"languagechange",this.se)}},n9=0;rm.registerComponent("chromecastButton",class extends n6{get Ia(){var e;return null==(e=this.xs.cast)?void 0:e.chromecast}constructor(e,s){super(e,(0,a.I)({},s,{$a:"chromecast",Da:function(){let e='\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="currentColor">\n <defs>\n <clipPath id="theo-chromecast-rings-mask-'+n9+'">\n <path d="M0-36h44V0H0z"/>\n </clipPath>\n </defs>\n <path class="theo-chromecast-outer" d="M2 10a4 4 0 0 1 4-4h36a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H28v-4h14V10H6v6H2z"/>\n <path class="theo-chromecast-inner" d="M10 14h28v20H26.74A26 26 0 0 0 10 17.26z"/>\n <g class="theo-chromecast-rings" fill="none" stroke="currentColor" stroke-width="4" transform="translate(2 42)" clip-path="url(#theo-chromecast-rings-mask-'+n9+')">\n <circle stroke="none" cx="0" cy="0" r="30" />\n <circle class="theo-chromecast-ring theo-chromecast-ring1" stroke-width="6" cx="0" cy="0" r="3" />\n <circle class="theo-chromecast-ring theo-chromecast-ring2" cx="0" cy="0" r="12" />\n <circle class="theo-chromecast-ring theo-chromecast-ring3" cx="0" cy="0" r="20"/>\n <path class="theo-chromecast-ring theo-chromecast-ring4" stroke-linecap="round" d="M0-20A20 20 0 0 1 20 0" />\n </g>\n </svg>';return n9++,e}()}))}}),(0,a.c)();var n7="theo-chromecast-",n8=rm.getComponent("Component"),ot=class e extends rS(n8){buildCSSClass(){return n7+"overlay "+super.buildCSSClass()}createEl(){let s=super.createEl();(0,a.l)(s,n7+"overlay");let r=rm.createEl("div",{className:n7+"status-icon",innerHTML:e.ICON_SVG}),n=rm.createEl("div",{className:n7+"status-info"});(0,a.Na)(n,"Playing on");let o=rm.createEl("div",{className:n7+"status-title"}),h=rm.createEl("div",{className:n7+"status"});return this._r=o,h.appendChild(r),h.appendChild(n),h.appendChild(o),s.appendChild(h),s}dispose(){var e;null==(e=this.La)||e.removeEventListener("statechange",this.update),this.La=void 0,this.xs.removeEventListener("play",this.update),super.dispose()}constructor(e,s){var r,n;super(e,s),this.La=void 0,this.update=()=>{this.La?(this._r&&(0,a.Na)(this._r,this.La.receiverName||""),this.La.state===a.ia.CONNECTED?this.show():this.hide()):this.hide()},this.La=null==(r=this.xs.cast)?void 0:r.chromecast,null==(n=this.La)||n.addEventListener("statechange",this.update),this.xs.addEventListener("play",this.update),this.update()}};ot.ICON_SVG='\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" fill="currentColor">\n <path d="M7 24v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H11v1.63c3.96 1.28 7.09 4.41 8.37 8.37H25V13zM7 16v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H9c-1.1 0-2 .9-2 2v3h2v-3h18v14h-7v2h7c1.1 0 2-.9 2-2V11c0-1.1-.9-2-2-2z"/>\n</svg>',rm.registerComponent("chromecastOverlay",ot),(0,a.c)(),(0,a.c)(),rm.registerComponent("airplayButton",class extends n6{dispose(){var e,s;null==(e=this.xs.ads)||e.removeEventListener("adbreakbegin",this.Ha),null==(s=this.xs.ads)||s.removeEventListener("adbreakend",this.qa),this.xs.removeEventListener("currentsourcechange",this.qa),super.dispose()}get Ia(){var e;return null==(e=this.xs.cast)?void 0:e.airplay}constructor(e,s){var r,n;super(e,(0,a.I)({},s,{$a:"airplay",Da:'\n<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24">\n <path class="theo-cast-inner" d="M5 7h14v8H5z"/>\n <path d="M6 22h12l-6-6zM21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V5h18v12h-4v2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/>\n</svg>'})),this.qa=()=>{this.enable()},this.Ha=e=>{"theoads"!==e.adBreak.integration&&"google-dai"!==e.adBreak.integration&&this.disable()},null==(r=this.xs.ads)||r.addEventListener("adbreakbegin",this.Ha),null==(n=this.xs.ads)||n.addEventListener("adbreakend",this.qa),this.xs.addEventListener("currentsourcechange",this.qa)}}),(0,a.c)(),(0,a.c)(),(0,a.c)();var oe=rm.getComponent("Button"),oi=class extends rS(oe){buildCSSClass(){return"theo-vr-button theo-controlbar-button "+super.buildCSSClass()}handleClick(){this.xs.vr.stereo=!this.xs.vr.stereo,this.se()}Sn(){let e=this.xs.vr;e&&e.state!==a.eb.Os?(this.show(),e.canPresentVR?this.enable():this.disable()):this.hide(),this.se()}se(){let e=this.xs.vr;e&&e.state!==a.eb.Os&&(e.stereo?this.controlText("Stop watching in VR"):e.canPresentVR?this.controlText("Watch in VR"):this.controlText("No VR capable device found"),this.za.Fe=this.controlText())}dispose(){var e;null==(e=this.xs.vr)||e.removeEventListener(["statechange","stereochange"],this.Wa),super.dispose()}constructor(e,s){var r;super(e,s),this.za=void 0,this.Va=void 0,this.Wa=()=>this.Sn(),this.controlText("Watch in VR"),this.za=new rY(this,this.controlText()),null==(r=this.xs.vr)||r.addEventListener(["statechange","stereochange"],this.Wa),this.Sn(),a.r.Zs.Ke&&(this.Va=new rO(this.el())),this.on(e,"languagechange",this.se)}};rm.registerComponent("vrButton",oi),(0,a.c)();var os=rm.getComponent("Component"),or=class extends os{createEl(){let e=super.createEl("div",{className:this.buildCSSClass()}),s=rm.createEl("div",{className:"theo-360-fov"});return e.appendChild(s),this.Ga=s,e}buildCSSClass(){return"theo-360-compass "+super.buildCSSClass()}Sn(){this.xs.vr.state===a.eb.Os?this.hide():this.show()}Xa(){let e=-this.xs.vr.direction.yaw+40;this.Ga.style[(0,a.ta)("transform")]="scale(0.875) rotate("+e+"deg) skew(-10deg)"}dispose(){this.xs.vr.removeEventListener("statechange",this.Wa),this.xs.vr.removeEventListener("directionchange",this.Ja),super.dispose()}constructor(e,s,r){super(e,s),this.xs=void 0,this.Wa=()=>this.Sn(),this.Ja=()=>this.Xa(),this.xs=r,this.xs.vr.addEventListener("statechange",this.Wa),this.xs.vr.addEventListener("directionchange",this.Ja),this.Sn(),this.Xa()}};(0,a.c)();var on=rm.getComponent("Component"),oo=class extends on{Qa(){this.xs.vr.state===a.eb.Ya?this.Ka():this.Za()}Ka(){if(this.tu)return;this.tu=!0;let e=this.xs.element;this.iu=e.style.zIndex||"",e.style.zIndex="2147483647",this.su=this.player().isFullscreen(),this.player().requestFullscreen()}Za(){this.tu&&(this.tu=!1,this.xs.element.style.zIndex=this.iu,this.su?this.player().requestFullscreen():this.player().exitFullscreen())}dispose(){this.Za(),this.xs.vr.removeEventListener("statechange",this.eu),super.dispose()}constructor(e,s,r){super(e,s),this.xs=void 0,this.tu=!1,this.su=!1,this.iu="",this.eu=()=>this.Qa(),this.xs=r,this.xs.vr.addEventListener("statechange",this.eu),this.Qa()}};L(function(e){let s=e.Ca;if(!s.vr)return;let r=e.vo,n=new or(r,{},s);if(e.wn(a.N.do,()=>{var s;r.removeChild(n);let o=null==(s=e.nu())?void 0:s.vr;void 0===o||o.nativeVR||r.addChild(n)}),a.d.ru){let e=new oo(r,{},s);r.addChild(e)}}),(0,a.c)(),(0,a.c)(),(0,a.c)();var oa=class extends a.M{constructor(){super("relatedchange")}},oh=["relatedchange"],ol=class extends a.L{get Ca(){var e;let s,r;return this.hu||(this.hu=(e=this,r={get sources(){return e.ou},set sources(i){e.ou=i},addEventListener(e,r){s.wn(e,r)},removeEventListener(e,r){s.mn(e,r)}},(s=new a.Aa(oh,!0,r)).au(e),r)),this.hu}get ou(){return this.uu}set ou(e){this.uu=e.filter(e=>e&&((0,a.h)(e.link)||(0,a.T)(e,["source"]))),e.length>this.uu.length&&console.warn("One or more of the configured related content sources are invalid. Check if they have a source or a link."),this.So(new oa)}kn(){this.Vo(),this.uu=[]}constructor(...e){super(...e),this.hu=void 0,this.uu=[]}};(0,a.ea)(function(e){return class extends e{xa(){let e=this.cu;return(0,a.R)(super.xa(),{get related(){return e.Ca}})}kn(){this.cu.kn(),super.kn()}constructor(e,s){super(e,s),this.cu=void 0,this.cu=new ol}}},a.da.lu),(0,a.c)(),(0,a.c)();var ou=rm.getComponent("Button"),oc=class extends ou{buildCSSClass(){return"vjs-icon-view-grid theo-related-button "+super.buildCSSClass()}
1handleClick(){this.fu.du?this.fu.we():this.fu.be()}se(){this.De.Fe=this.controlText()}dispose(){this.player().topControlBar.removeChild(this),super.dispose()}constructor(e,s,r){super(e,r),this.bo=void 0,this.fu=void 0,this.De=void 0,this.bo=e.el(),this.fu=s,this.player().topControlBar.addChild(this),this.hide(),this.controlText(this.localize("Related content")),this.De=new rY(this,this.controlText()),this.on(e,"languagechange",this.se)}};(0,a.c)(),(0,a.c)();var od=rm.getComponent("Button"),op=class extends od{buildCSSClass(){return"theo-secondary-background theo-close-button"}handleClick(){this.vu.hide()}constructor(e,s){super(e),this.vu=void 0,this.vu=s}},ov=((n=c.createElement("div")).className="theo-related-grid-tile",n.innerHTML='<a class="theo-related-grid-tile-content"><div class="theo-related-grid-tile-image"></div><span class="theo-related-grid-tile-title theo-primary-border theo-tertiary-background"></span><span class="theo-related-grid-tile-duration"></span></a>',n),of=[15,12,9,8,6,4,3,2,1],og=class{get pu(){return"theo-"+this.mu+"-item-grid"}gu(){this.yu.focus()}bu(e){for(let s of(this.ku(),function(e){if(e.length){for(let s of of)if(e.length>=s){e.length=s;break}}}(e),this.wu(e.length),e)){let e=function(e,s,r){let n=ov.cloneNode(!0),o=n.querySelector(".theo-related-grid-tile-content");(0,a.T)(r,["source"])?(o.style.cursor="pointer",o.addEventListener("click",()=>{e.source=r.source,s.we()})):(0,a.h)(r.link)&&o.setAttribute("href",r.link);let h=n.querySelector(".theo-related-grid-tile-image");h.style.backgroundImage='url("'+(0,a.K)(r.image)+'")',h.removeAttribute("id");let l=n.querySelector(".theo-related-grid-tile-title");r.title?((0,a.Na)(l,r.title),l.removeAttribute("id")):(0,a.i)(l);let u=n.querySelector(".theo-related-grid-tile-duration");return r.duration?((0,a.Na)(u,r.duration),u.removeAttribute("id")):(0,a.i)(u),n}(this._u.Ca,this.xu,s);this.Cu.appendChild(e)}}ku(){this.Cu.innerHTML=""}Su(){let e=c.createElement("div");e.className="theo-overlay-panel";let s=c.createElement("div");return s.className="theo-related-grid",this.ju.className="theo-related",this.yu.controlText("Close Related Content"),this.Tu.appendChild(this.ju),this.ju.appendChild(e),e.appendChild(this.yu.el()),e.appendChild(s),s}wu(e){(0,a.m)(this.Cu,this.pu),this.mu=e,(0,a.l)(this.Cu,this.pu)}kn(){(0,a.i)(this.ju),this.Mu.kn(),this.Au.kn(),this.yu.dispose(),this._u=void 0}constructor(e,s,r,n,o){this._u=void 0,this.Pu=void 0,this.xu=void 0,this.Tu=void 0,this.mu=void 0,this.yu=void 0,this.Cu=void 0,this.ju=void 0,this.Mu=void 0,this.Au=void 0,this.Nu=void 0,this._u=e,this.Pu=s,this.xu=r,this.Tu=n,this.mu=12,this.Nu=e=>{this.Cu.style.width=e.width+"px"},this.ju=c.createElement("div"),this.yu=new op(this.Pu,{hide:()=>{this.xu.we()}}),this.Cu=this.Su(),this.Au=new om(o),this.Au.wn(a.ra.yn,this.Nu),this.Mu=new a.ab(this.Cu,this.Au),this.wu(12)}},om=class extends a.L{get Eu(){return this.Bu||0}get Iu(){return this.Fu.Iu}kn(){this.Vo(),this.Fu.mn(a.ra.yn,this.Du)}constructor(e){super(),this.Fu=void 0,this.Bu=void 0,this.Du=void 0,this.Fu=e,this.Du=e=>{let s=e.width;9*(e.width/16)>e.height&&(s=16*(e.height/9)),this.Bu=s,this.So(new a.sa(this.Eu,e.height))},this.Fu.wn(a.ra.yn,this.Du)}};(0,a.c)();var oy=class extends a.M{constructor(){super("show")}};(0,a.c)();var oC=class extends a.M{constructor(){super("hide")}},ob="theo-related-available",ok="theo-related-showing",oT=[...oh,"show","hide"],ox=class extends a.L{get Ca(){var e;let s,r;return this.hu||(this.hu=(e=this,r={get sources(){return e.ou},set sources(i){e.ou=i},get showing(){return e.du},show(){e.be()},hide(){e.we()},addEventListener(e,r){s.wn(e,r)},removeEventListener(e,r){s.mn(e,r)}},(s=new a.Aa(oT,!0,r)).au(e),r)),this.hu}get ou(){return this.$u.ou}set ou(e){this.$u.ou=e}get du(){return this.Uu}be(){let e=this.Uu;this.Uu=!0,this.Ru(ok),this.Ou.gu(),this.Pu.paused()?this.Vu=!0:this.Pu.pause(),e!==this.Uu&&this.So(new oy)}we(){let e=this.Uu;this.Uu=!1,this.Lu(ok),this.Hu.focus(),this.Vu||this.Pu.play(),this.Vu=!1,e!==this.Uu&&this.So(new oC)}Ru(e){this.Pu.el().classList.add(e)}Lu(e){this.Pu.el().classList.remove(e)}kn(){this.Vo(),this.Ou.kn()}constructor(e,s,r,n){super(),this.$u=void 0,this.Hu=void 0,this.hu=void 0,this.Pu=void 0,this.Ou=void 0,this.Uu=!1,this.Vu=!1,this.qu=e=>{let s=this.ou;this.Ou.bu(s),s.length?(this.Ru(ob),this.Hu.show()):(this.Lu(ob),this.Hu.hide()),this.So(e)},this.$u=s,this.$u.wn("relatedchange",this.qu),this.Pu=r,this.Ou=new og(e,this.Pu,this,r.contentEl(),n),this.Hu=new oc(r,this,{})}};w(function(e){return class extends e{xa(){let e=this.zu;return(0,a.R)(super.xa(),{get related(){return e.Ca}})}kn(){this.zu.kn(),super.kn()}constructor(e,s,r){super(e,s,r),this.zu=void 0,this.zu=new ox(this,this.cu,this.vo,this.Wu)}}}),(0,a.c)(),(0,a.c)(),(0,a.c)();var oE=rm.getComponent("Button"),oS=class extends oE{buildCSSClass(){return"vjs-icon-s
1hare theo-social-button "+super.buildCSSClass()}handleClick(){this.Gu.showing?this.Gu.hide():this.Gu.show()}se(){this.De.Fe=this.controlText()}dispose(){this.player().topControlBar.removeChild(this),super.dispose()}constructor(e,s,r){super(e,r),this.bo=void 0,this.Gu=void 0,this.De=void 0,this.bo=e.el(),this.Gu=s,this.player().topControlBar.addChild(this),this.hide(),this.controlText("Share Video"),this.De=new rY(this,this.controlText()),this.on(e,"languagechange",this.se)}};(0,a.c)();var ow="<URL>",oN=class{get xe(){return this.ju}Ju(e){for(let s of(this.ku(),e))this.Qu(s)}gu(){this.yu.focus()}Qu(e){var s;let r=(s=this.xu.Yu,e.src?(0,a.J)(e.src,ow)?e.src.replace(ow,s):e.src:s),n=function(e){if(e)return e.icon?"iconurl":e.text?"text":"texturl"}(e),o=function(e,s,r){var n,o,h,l;switch(s){case"iconurl":let u,d;return(u=c.createElement("a")).className="theo-social-iconurl",u.title=null!=(n=e.label)?n:"",u.target="Xu",u.href=r,(d=c.createElement("img")).src=null!=(o=e.icon)?o:"",d.alt=null!=(h=e.label)?h:"",d.width=25,d.height=25,u.appendChild(d),u;case"text":let p=c.createElement("div");if(p.className="theo-social-text",e.label){let s=c.createElement("h5");s.className="theo-primary-background theo-social-label",(0,a.Na)(s,e.label),p.appendChild(s)}let v=c.createElement("p");return v.className="theo-social-content-container theo-tertiary-background",v.tabIndex=0,(0,a.Na)(v,null!=(l=e.text)?l:""),p.appendChild(v),p;case"texturl":let f=c.createElement("div");if(f.className="theo-social-texturl",e.label){let s=c.createElement("h5");s.className="theo-primary-background theo-social-label",(0,a.Na)(s,e.label),f.appendChild(s)}let g=c.createElement("div");g.className="theo-social-content-container theo-tertiary-background";let m=c.createElement("a");return m.target="Xu",m.href=r,(0,a.Na)(m,r),g.appendChild(m),f.appendChild(g),f}}(e,n,r);o&&("iconurl"===n?this.Ku.appendChild(o):this.Zu.appendChild(o))}ku(){this.Ku.innerHTML="",this.Zu.innerHTML=""}kn(){(0,a.i)(this.ju),this.tc.kn()}constructor(e,s,r,n){this.oa=void 0,this.xu=void 0,this.Tu=void 0,this.sc=void 0,this.yu=void 0,this.Ou=void 0,this.ju=void 0,this.Ku=void 0,this.Zu=void 0,this.tc=void 0,this.oa=e,this.xu=s,this.Tu=r,this.sc=n;const o=c.createElement("div");o.className="theo-overlay-panel",this.yu=new op(this.oa,this.xu.Ca),this.yu.controlText("Close Share"),this.Ou=c.createElement("div"),this.Ou.className="theo-social-container",this.ju=c.createElement("div"),this.ju.className="theo-social",this.Ku=c.createElement("div"),this.Ku.className="theo-social-icon-container",this.Zu=c.createElement("div"),this.Zu.className="theo-social-text-container",this.Tu.appendChild(this.ju),this.ju.appendChild(o),this.Ou.appendChild(this.Ku),this.Ou.appendChild(this.Zu),o.appendChild(this.yu.el()),o.appendChild(this.Ou),this.tc=new a.ab(this.ju,this.sc)}},oL="theo-social-available",oA="theo-social-showing",oP=class{get Ca(){return this.hu}get du(){return this.Uu}get ec(){return this.nc}set ec(e){this.nc=e,this.Ou.Ju(e),e.length?(this.Ru(oL),this.Hu.show()):(this.Lu(oL),this.Hu.hide())}get Yu(){return this.rc||(0,a.H)()}set Yu(e){this.rc=e}be(){this.Uu=!0,this.Ru(oA),this.Ou.gu(),this.hc.paused()?this.Vu=!0:this.hc.pause()}we(){this.Uu=!1,this.Lu(oA),this.Hu.focus(),this.Vu||this.hc.play(),this.Vu=!1}Ru(e){this.hc.el().classList.add(e)}Lu(e){this.hc.el().classList.remove(e)}kn(){this.Hu.dispose(),this.Ou.kn()}constructor(e,s){this.Hu=void 0,this.hu=void 0,this.hc=void 0,this.Ou=void 0,this.Uu=!1,this.nc=[],this.rc=void 0,this.Vu=!1,this.hu=function(e){return{get showing(){return e.du},get items(){return e.ec},set items(i){e.ec=i},get url(){return e.Yu},set url(i){e.Yu=i},show(){e.be()},hide(){e.we()}}}(this),this.hc=e,this.Ou=new oN(this.hc,this,e.contentEl(),s),this.Hu=new oS(e,this.hu,{})}};w(function(e){return class extends e{xa(){let e=this.Gu;return(0,a.R)(super.xa(),{get social(){return e.Ca}})}constructor(e,s,r){super(e,s,r),this.Gu=void 0,this.Gu=new oP(this.vo,this.Wu)}}}),(0,a.c)(),(0,a.c)();var oI=rm.getComponent("Component"),oj=class extends oI{createEl(){let e=super.createEl();return e.className=this.buildCSSClass(),e}buildCSSClass(){return"theo-upnext-container "+super.buildCSSClass()}};oj.prototype.h=(0,a.I)({},oj.prototype.h,{children:[]}),rm.registerComponent("upNextContainer",oj),(0,a.c)(),(0,a.c)();var oM="theo-upnext-bar-",oO=rm.getComponent("Component"),oD=class extends oO{get du(){return this.Uu}set du(e){this.Uu=e,this.oc&&(this.oc.tabIndex=e?0:-1)}get ac(){return this.uc}set ac(e){this.uc=e}Ta(e){this.ku(),this.cc(e)}cc(e){if(e&&e.link&&e.image){let s=c.createElement("div");(0,a.l)(s,oM+"content"),s.onclick=()=>{this.lc.next()},s.onkeypress=e=>{13===e.which&&this.lc.next()};let r=c.createElement("div");if(r.style.backgroundImage='url("'+(0,a.K)(e.image)+'")',(0,a.l)(r,oM+"image"),s.appendChild(r),e.duration){let s=c.createElement("span");(0,a.l)(s,oM+"duration"),s.innerHTML=""+e.duration,r.appendChild(s)}let n=c.createElement("div");(0,a.l)(n,oM+"text");let o=c.createElement("div");if((0,a.l)(o,oM+"upnext"),(0,a.Na)(o,this.localize("Up Next")),n.appendChild(o),e.title){let s=c.createElement("div");
1(0,a.l)(s,oM+"title"),(0,a.Na)(s,e.title),n.appendChild(s)}s.appendChild(n),this.oc=s,this.dc=o,this.el().appendChild(this.oc)}}ku(){this.el().innerHTML="",this.oc=void 0,this.dc=void 0}se(){this.dc&&(0,a.Na)(this.dc,this.localize("Up Next"))}createEl(){return super.createEl("div",{className:this.buildCSSClass()})}buildCSSClass(){return"theo-upnext-bar "+super.buildCSSClass()}dispose(){this.tc.kn(),super.dispose()}constructor(e,s,r,n){super(e,r),this.lc=void 0,this.tc=void 0,this.Uu=void 0,this.uc=void 0,this.oc=void 0,this.dc=void 0,this.lc=s,this.tc=new a.ab(this.el(),n),this.Uu=!1,this.uc=10,this.on(e,"languagechange",this.se)}};(0,a.c)();var oB="theo-upnext-panel-",oH=rm.getComponent("Component"),oF=class extends oH{get du(){return this.Uu}set du(e){this.Uu=e}get fc(){return this.vc}set fc(e){this.vc=e}get mc(){return this.gc}set mc(e){this.gc=e}Ta(e){this.ku(),this.yc(e)}yc(e){if(e&&e.link&&e.image){let s=c.createElement("div");s.className=oB+"content";let r=c.createElement("div");r.style.backgroundImage='url("'+(0,a.K)(e.image)+'")',r.className=oB+"image",s.appendChild(r);let n=c.createElement("div");n.className=oB+"text";let o=c.createElement("div");if(o.className=oB+"upnext",(0,a.Na)(o,this.localize("Up Next")),n.appendChild(o),e.title){let s=c.createElement("div");s.className=oB+"title",(0,a.Na)(s,e.title),n.appendChild(s)}s.appendChild(n),this.bc=c.createElement("div"),this.bc.className=oB+"autoplay",this.bc.innerHTML=n$;let h=this.bc.querySelector("svg");h.onclick=()=>{this.lc.next()},h.tabIndex=0,h.onkeypress=e=>{13===e.which&&this.lc.next()},this.kc=o,this.wc=this.bc.querySelector("."+nU),s.appendChild(this.bc),this.el().appendChild(s)}}get _c(){return this.xc}set _c(e){this.xc=e,this.wc.style.strokeDashoffset=""+b.round(1e5*e)/1e5}ku(){this.el().innerHTML="",this.kc=void 0,this.wc=void 0}se(){this.kc&&(0,a.Na)(this.kc,this.localize("Up Next"))}createEl(){return super.createEl("div",{className:this.buildCSSClass()})}buildCSSClass(){return"theo-upnext-panel "+super.buildCSSClass()}dispose(){this.tc.kn(),super.dispose()}constructor(e,s,r,n){super(e,r),this.lc=void 0,this.tc=void 0,this.kc=void 0,this.bc=void 0,this.wc=void 0,this.xc=0,this.Uu=void 0,this.vc=void 0,this.gc=void 0,this.lc=s,this.tc=new a.ab(this.el(),n),this.Uu=!1,this.vc=10,this.gc=!0,this.on(e,"languagechange",this.se)}},oR="theo-upnext-panel-showing",oV="theo-upnext-bar-showing",oU=2*b.PI*73,o$=class e{get Ca(){return this.hu}get Cc(){return this.Sc}get jc(){return this.Tc}get Mc(){return this.Ac}set Mc(e){this.Ac=e,this.Ou.Ta(e),this.Pc.Ta(e),this.hc.off("timeupdate",this.Nc),this.hc.off("ended",this.Ec),e&&(this.hc.on("timeupdate",this.Nc),this.hc.on("ended",this.Ec))}Bc(){this.Ou.fc?this.Ic=(0,a.V)(this.Ou.fc):0===this.Ou.fc?this.Ic=0:this.Ic=10,0!==this.Ic?(isFinite(this.Ic)&&(this.Fc=!0),this.Ou.du=!0,this.Ru(oR),this.Fc&&(this.Ou._c=oU-oU/this.Ic,this.Dc=v(this.$c,1e3))):this.Uc()}Rc(){this.Ou.du=!1,this.Lu(oR),this.Fc&&(f(this.Dc),this.Oc=1,this.Ou._c=oU)}Vc(){this.Pc.du=!0,this.Ru(oV)}Lc(){this.Pc.du=!1,this.Lu(oV)}Uc(){f(this.Dc),this.Mc&&(u.location.href=this.Mc.link)}Ru(e){this.hc.el().classList.add(e)}Lu(e){this.hc.el().classList.remove(e)}Hc(e,s){let r=e>=s&&!(this.qc&&this.qc.zc);this.Pc.du&&!r?this.Lc():!this.Pc.du&&r&&this.Vc()}Wc(e,s){this.Ou.du&&e<s&&!this.hc.ended()&&this.Rc()}static Gc(e,s){let r=(0,a.V)(e);if(!x(r))return s-r;let n=(""+e).match(/^([1-9]?\d|100)%$/);if(n)return s*(1-k(n[1],10)/100)}kn(){this.Dc&&f(this.Dc),this.hc.getChild("upNextContainer").removeChild(this.Ou),this.hc.getChild("upNextContainer").removeChild(this.Pc),this.Ou.dispose(),this.Pc.dispose()}constructor(s,r,n){this.Pc=void 0,this.Ou=void 0,this.hu=void 0,this.Sc=void 0,this.Tc=void 0,this.hc=void 0,this.Ac=void 0,this.Ic=10,this.Oc=1,this.Dc=void 0,this.Fc=!0,this.qc=void 0,this.$c=()=>{this.Oc!==this.Ic?(this.Ou._c-=oU/this.Ic,this.Oc+=1):this.Uc()},this.Ec=()=>{this.Ou.du||this.Bc()},this.Nc=()=>{let s=this.hc.currentTime(),r=this.hc.duration(),n=r?e.Gc(this.Pc.ac,r):void 0;void 0!==n&&this.Hc(s,n),this.Ou.mc&&this.Wc(s,r)},this.hu=function(e){return{get source(){return e.Mc},set source(i){e.Mc=i},get bar(){return e.Cc},get panel(){return e.jc},next(){e.Uc()}}}(this),this.Pc=new oD(s,this.hu,{},r),this.Ou=new oF(s,this.hu,{},r),this.Sc=function(e,s){return{get showing(){return s.du},get offset(){return s.ac},set offset(t){s.ac=t},show(){e.Vc()},hide(){e.Lc()}}}(this,this.Pc),this.Tc=function(e,s){return{get showing(){return s.du},get countdownDuration(){return s.fc},set countdownDuration(t){s.fc=t},get showUpNextPanel(){return s.mc},set showUpNextPanel(t){s.mc=t},show(){e.Bc()},hide(){e.Rc()}}}(this,this.Ou),this.hc=s,this.qc=n,s.getChild("upNextContainer").addChild(this.Pc,{}),s.getChild("upNextContainer").addChild(this.Ou,{})}};w(function(e){return class extends e{xa(){let e=this.Xc;return(0,a.R)(super.xa(),{get upnext(){return e.Ca}})}kn(){this.Xc.kn(),super.kn()}constructor(e,s,r){super(e,s,r),this.Xc=void 0,this.Xc=new o$(this.vo,this.Wu,this.Jc)}}}),(0,a.c)(),(0,a.c)();var oz=rm.getComponent("Component"),o_=class extends oz{createEl(){let e=super.createEl("ul",{className:"theo-context-menu"}),s=c.createElement("li"),r=c.createElement("a"),n=c.createElement("div");r.className="theo-context-menu-a",s.appendChild(r),n.className="theo-context-menu-logo",n.innerHTML='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n width="507.262px" height="399.16px" viewBox="0 0.1 507.262 399.16" enable-background="new 0 0.1 507.262 399.16"\n xml:space="preserve" class=\'theo-context-menu-logo-svg\'>\n <g transform="matrix(1.90897, 0, 0, 1.90897, 212.4, 144.6)">\n <path fill="#FFFFFF" d="M-38.416-53.802C-53.351-38.867-60.82-20.814-60.82,0.353c0,21.253,7.466,39.392,22.404,54.413\n c6.83,6.658,13.827,11.778,20.996,15.363c5.122,2.561,10.583,4.397,16.388,5.507v1.024h-78.481\n c-21.168,0-31.752-10.584-31.752-31.752v-88.724c0-21.252,10.584-31.879,31.752-31.879h79.377v0.896\n c-6.145,1.196-11.95,3.116-17.411,5.762C-24.632-65.538-31.586-60.46-38.416-53.802"/>\n </g>\n <g transform="matrix(0.535073, 0, 0, 0.535073, 242.35, 104.7)">\n <path fill="#FFFFFF" d="M188.354,104.104c-32.941,23.472-75.492,49.679-127.641,78.61c-50.275,28.254-94.358,50.44-132.254,66.572l-41.989,15.616\n c-2.645-11.348-5.122-28.17-7.426-50.44c-5.205-44.383-7.809-93.375-7.809-146.975c0-49.079,3.538-94.947,10.622-137.631\n l10.249-49.034l44.551,14.978C-24.762-88.838,17.06-67.03,62.124-38.777c47.705,29.871,88.638,58.294,122.773,85.266\n c17.061,13.571,29.351,24.028,36.862,31.367L188.354,104.104"/>\n </g>\n <g transform="matrix(1.91028, 0, 0, 1.91028, 327.15, 144.6)">\n <path fill="#FFFFFF" d="M94.286-43.816v88.723c0,21.168-10.583,31.751-31.751,31.751h-80.018v-1.025\n c14.683-2.816,27.527-9.77,38.537-20.867c14.936-15.024,22.405-33.16,22.405-54.413c0-21.168-7.467-39.22-22.405-54.156\n C9.871-64.985-3.188-71.939-18.123-74.671v-1.024h80.658C83.702-75.696,94.286-65.069,94.286-43.816"/>\n </g>\n</svg>\n',r.appendChild(n);let o=c.createElement("div");return o.className="theo-context-version",(0,a.Na)(o,"Powered by THEOplayer 11.9.1"),r.appendChild(o),r.href="https://www.theoplayer.com/player-referral",r.target="Xu",e.appendChild(s),e}Qc(e){e.preventDefault(),this.show(),this.el().style.left="0",this.el().style.top="0";
1let s=this.player().contentEl(),r=s.getClientRects(),n=r.length>0?r[0]:void 0,o=e.clientX-s.getBoundingClientRect().left,h=T(getComputedStyle(this.el()).fontSize);(0,a.La)(this.el(),o,n,h);let l=e.clientY-s.getBoundingClientRect().top;(0,a.Ma)(this.el(),l,n,h),this.Yc()}Kc(){this.hide(),this.clearTimeout(this.Zc)}Yc(){this.Zc=this.setTimeout(this.Kc,4e3)}tl(){this.clearTimeout(this.Zc)}dispose(){this.Kc(),this.off(this.player(),"contextmenu",this.Qc),this.el().removeEventListener("mousedown",oq,!0),this.off(c,"mousedown",this.Kc),this.off("mouseout",this.Yc),this.off("mouseover",this.tl),super.dispose()}constructor(e,s){super(e,s),this.Zc=0,this.on(this.player(),"contextmenu",this.Qc),this.el().addEventListener("mousedown",oq,!0),this.on(c,"mousedown",this.Kc),this.on("mouseout",this.Yc),this.on("mouseover",this.tl),this.Kc()}};function oq(e){e.stopPropagation()}L(function(e){let s=new o_(e.vo,{});e.vo.addChild(s),e.vo.on("dispose",()=>{e.vo.removeChild(s),s.dispose()})}),(0,a.c)(),(0,a.c)(),(0,a.c)(),(0,a.c)();var oW={Default:"","Monospaced Serif":a.Da.il,"Proportional Serif":a.Da.sl,"Monospaced Sans-Serif":a.Da.nl,"Proportional Sans-Serif":a.Da.rl},oY={White:"#ffffff",Yellow:"#ffff00",Green:"#00ff00",Cyan:"#00ffff",Blue:"#0000ff",Magenta:"#ff00ff",Red:"#ff0000",Black:"#000000"},oX=[50,75,100,150,200];function oG(e){return{label:e+"%",value:e}}function oK(e){return C.keys(e).map(s=>({label:s,value:e[s]}))}oX.map(function(e){return{label:e+"%",value:e/100+"em"}});var oJ=oX.map(function(e){return{label:e+"%",value:e+"%"}}),oZ=[25,50,75,100].map(oG),oQ=[0,25,50,75,100].map(oG),o0=oK(oY),o1=oK(oW),o2=oK({None:"none","Drop Shadow":"dropshadow",Raised:"raised",Depressed:"depressed",Uniform:"uniform"}),o3="#000000",o5="#FFFFFF",o4="#000000";(0,a.c)();var o6=class extends nk{hl(){let e=this.Vr.localize(this.ol);(0,a.Na)(this.al.subMenu.menuHeader.el(),e),this.Or=c.createElement("span"),this.Or.className="theo-settings-control-menu-item-title",(0,a.Na)(this.Or,e);let s=c.createElement("span");return s.className="theo-primary-color theo-settings-control-menu-item-value",(0,a.l)(this.al.el(),"theo-subtitle-options-menu-item"),this.al.el().appendChild(this.Or),this.al.el().appendChild(s),s}cl(e){let s=this.Er(e);s&&this.ll(s)}dl(){return this.jr}Fr(e){this.fl(e.Br)}ll(e){for(let e of this.Pr.menuItems)e.selected(!1);e?(e.selected(!0),this.vl(e.Br.label)):this.vl("Custom")}vl(e){this.pl=e,(0,a.Na)(this.ml,this.Vr.localize(e)),this.al.parentMenu.oe()}Ir(e){let s=super.Ir(e);return(0,a.l)(s.el(),"theo-subtitle-options-menu-item"),this.Ur(s),s}Ur(e){let s=this.Vr.localize(e.Br.label);(0,a.Na)(e.el(),s);let r=this.Vr.localize("Set "+this.ol+" to ")+s;e.el().setAttribute("aria-label",r)}Oe(){this.Vr.off("languagechange",this.se),super.Oe()}constructor(e,s,r,n){super(e.subMenu),this.al=void 0,this.Vr=void 0,this.ol=void 0,this.Or=void 0,this.ml=void 0,this.pl=void 0,this.fl=void 0,this.se=void 0,this.al=e,this.Vr=n,this.pl="",this.se=()=>{let e=this.Vr.localize(this.ol);for(let s of((0,a.Na)(this.al.subMenu.menuHeader.el(),e),(0,a.Na)(this.Or,e),this.vl(this.pl),this.Nr))this.Ur(s)},this.ol=s,this.fl=r.gl,this.ml=this.hl(),this.jr=r.yl,this.Vr.on("languagechange",this.se)}};(0,a.c)();var o9=class e{static bl(e,s,r,n){if(void 0!==e||void 0!==s)return(0,a.Ia)(void 0===e?r:e,void 0===s?n:s)}constructor(s){this.kl=void 0,this.wl=void 0,this._l=void 0,this.xl=void 0,this.Cl=void 0,this.Sl=void 0,this.jl=void 0,this.Tl=void 0,this.Ml=void 0,this.Al=void 0,this.Pl=void 0,this.Nl=void 0,this.El=void 0,this.Bl=void 0,this.Il=void 0,this.Fl=void 0,this.kl=s,this.Tl=e=>{this.kl.fontFamily=e.value},this.Ml=e=>{this.kl.fontSize=e.value},this.Al=s=>{this.wl=s.value,this.kl.fontColor=e.bl(this._l,this.wl,o5,100)},this.Pl=s=>{this._l=s.value,this.kl.fontColor=e.bl(this._l,this.wl,o5,100)},this.Nl=s=>{this.Cl=s.value,this.kl.backgroundColor=e.bl(this.Cl,this.xl,o3,100)},this.El=s=>{this.xl=s.value,this.kl.backgroundColor=e.bl(this.Cl,this.xl,o3,100)},this.Bl=s=>{this.jl=s.value,this.kl.windowColor=e.bl(this.jl,this.Sl,o4,100)},this.Il=s=>{this.Sl=s.value,this.kl.windowColor=e.bl(this.jl,this.Sl,o4,100)},this.Fl=e=>{this.kl.edgeStyle=e.value}}};(0,a.c)();var o7=class{Dl(e,s){let r=this.$l(e,s.dl());r&&s.cl(r)}$l(e,s){return(0,a.z)(s,s=>s.value===e)}Ul(e,s,r){let n,o;
1if(void 0===e)n=this.$l(void 0,s.dl()),o=this.$l(void 0,r.dl());else if(e){let h=function(e){let s=(0,a.Ha)(e);if(s||(s=(0,a.Ha)(e.slice(0,e.length-1).replace("rgb","rgba")+",1)")),s||(s=(0,a.Ea)((0,a.Fa)(e),1)),!s){let r=e.charAt(0).toUpperCase()+e.toLowerCase().slice(1);s=(0,a.Ea)((0,a.Fa)(oY[r]),1)}return s}(e);if(h){let e=(0,a.Ga)(h),l=100*h.Rl;n=this.$l(e,s.dl()),o=this.$l(l,r.dl())}}n&&s.cl(n),o&&r.cl(o)}constructor(e,s){this.kl=void 0,this.Ol=void 0,this.Vl=void 0,this.kl=e,this.Ol=s,this.Vl=()=>{let e=this.kl.fontFamily;this.Dl(e,this.Ol["Font family"]);let s=this.kl.fontColor;this.Ul(s,this.Ol["Font color"],this.Ol["Font opacity"]);let r=this.kl.fontSize;this.Dl(r,this.Ol["Font size"]);let n=this.kl.backgroundColor;this.Ul(n,this.Ol["Background color"],this.Ol["Background opacity"]);let o=this.kl.windowColor;this.Ul(o,this.Ol["Window color"],this.Ol["Window opacity"]);let a=this.kl.edgeStyle;this.Dl(a,this.Ol["Character edge style"])},this.kl.addEventListener("change",this.Vl),this.Vl()}},o8=class extends nk{Ll(){return{"Font family":{yl:at(o1),gl:this.Hl.Tl},"Font color":{yl:at(o0),gl:this.Hl.Pl},"Font opacity":{yl:at(oZ),gl:this.Hl.Al},"Font size":{yl:at(oJ),gl:this.Hl.Ml},"Background color":{yl:at(o0),gl:this.Hl.Nl},"Background opacity":{yl:at(oQ),gl:this.Hl.El},"Window color":{yl:at(o0),gl:this.Hl.Bl},"Window opacity":{yl:at(oQ),gl:this.Hl.Il},"Character edge style":{yl:at(o2),gl:this.Hl.Fl}}}ql(){this.Or=c.createElement("span"),this.Or.className="theo-settings-control-menu-item-title",this.zl=c.createElement("span"),this.zl.className="theo-primary-color theo-settings-control-menu-item-value",this.Jr.el().appendChild(this.Or),this.Jr.el().appendChild(this.zl),this.se()}Ir(e){let s=this.Pr.addSubMenuItem();return s.Br=e,this.Ol[e]=new o6(s,e,this.Wl[e],this.Vr),s}Ur(e){}Fr(e){}Oe(){this.Vr.off("languagechange",this.se),this.Gl.removeEventListener(["addtrack","removetrack"],this.Xl),super.Oe()}constructor(e,s,r,n){super(e.subMenu),this.Jr=void 0,this.Gl=void 0,this.Vr=void 0,this.Hl=void 0,this.Jl=void 0,this.Wl=void 0,this.Ol=void 0,this.Or=void 0,this.zl=void 0,this.Xl=void 0,this.se=void 0,this.Jr=e,this.Gl=s,this.Vr=n,this.Ol={},this.Xl=()=>{this.Gl.some(e=>(0,a.aa)(e.kind))?this.Jr.show():this.Jr.hide()},this.se=()=>{(0,a.Na)(this.Pr.menuHeader.el(),this.Vr.localize("Subtitle Options")),(0,a.Na)(this.Or,this.Vr.localize("Subtitle")),(0,a.Na)(this.zl,this.Vr.localize("Options")),this.Jr.el().setAttribute("aria-label",this.Vr.localize("Open the subtitle options menu"))},this.Hl=new o9(r),this.Wl=this.Ll(),this.jr=C.keys(this.Wl),this.ql(),this.Jl=new o7(r,this.Ol),this.Vr.on("languagechange",this.se),this.Gl.addEventListener(["addtrack","removetrack"],this.Xl),this.Xl()}};function at(e){let s=[{label:"Default",value:void 0}];for(let r of e)"Default"!==r.label&&s.push(r);return s}L(function(e){let s=e.vo.controlBar.getChild("SettingsButton").menu,r=s.addSubMenuItem({name:"TextTrackOptionsMenuItem"}),n=new o8(r,e.nt.Ca,e.Ql.Ca,e.vo);e.vo.on("dispose",()=>{s.removeMenuItem(r),r.dispose(),n.Oe(),s.dispose()})}),(0,a.c)(),(0,a.c)();var ae=rm.getComponent("Component"),ai=class extends ae{buildCSSClass(){return"theo-ad-control-panel"}createEl(){let e=super.createEl();return e.className=this.buildCSSClass(),e}constructor(e,s){super(e,s),e.adControlBar=this}};ai.prototype.h=(0,a.I)({},ae.prototype.h,{children:[]}),rm.registerComponent("AdControlPanel",ai),(0,a.c)(),(0,a.c)();var as=rm.getComponent("Component"),ar="theo-dai-countdown",an=class extends as{buildCSSClass(){return ar}createEl(e,s,r){let n=c.createElement("div");return n.className=ar,n}Yl(e,s){s.addEventListener("adbreakbegin",()=>this.show()),s.addEventListener("adbreakend",()=>this.hide()),e.addEventListener("timeupdate",this.se)}constructor(e,s,r){super(e,r),this.oa=void 0,this.hu=void 0,this.se=void 0,this.oa=e,this.hu=s,this.se=()=>{let e=this.hu.ads;e.playing&&e.currentAdBreak&&e.currentAds.length&&(0,a.Na)(this.contentEl(),function(e,s,r){let n=e.ads,o="",a=n.length;if(a>1){let e=n.indexOf(s)+1;o=r("Ad")+" "+e+"/"+a+". "}let h=b.ceil(e.maxRemainingDuration);return o+r("The content will resume in {1} seconds.").replace("{1}",""+h)}(e.currentAdBreak,e.currentAds[0],e=>this.oa.localize(e)))},this.Yl(s,s.ads),this.on(e,"languagechange",this.se)}};(0,a.c)();var ao=rm.getComponent("ClickableComponent"),aa=class extends ao{buildCSSClass(){return a.db}createEl(e,s,r){return this.h.Ca.element.querySelector("."+a.db)}emitTapEvents(){}se(){(0,a.Na)(this.el(),this.localize("Learn more"))}constructor(e,s){super(e,s),(0,a.Na)(this.el(),e.localize("Learn more")),this.on(e,"languagechange",this.se)}};L(function(e){let s=e.Ca.ads;if(s&&s.dai){let s=e.vo,r=new an(s,e.Ca);if(s.adControlBar.addChild(r),e.Ca.element.querySelector("."+a.db)){let r=new aa(s,{Ca:e.Ca});s.adControlBar.addChild(r)}}}),(0,a.c)(),(0,a.c)();var ah=rm.getComponent("Component"),al=["addtrack","removetrack","change"],au=class extends rS(ah){createEl(){let e=super.createEl();
1return this.qualityLabel=rm.createEl("div",{className:"theo-quality-label-text"}),e.appendChild(this.qualityLabel),(0,a.p)(this.qualityLabel),e}dispose(){this.Yr&&(this.Yr.removeEventListener("activequalitychanged",this.Kl),this.Yr=void 0),this.xs.videoTracks.removeEventListener(al,this.dh),super.dispose()}constructor(e,s){super(e,s),this.qualityLabel=void 0,this.Yr=void 0,this.startFadeOutID=void 0,this.removeLabelClassesID=void 0,this.dh=()=>{let e=ny(this.xs.videoTracks);e!==this.Yr&&(this.Yr&&this.Yr.removeEventListener("activequalitychanged",this.Kl),this.Yr=e,e&&e.addEventListener("activequalitychanged",this.Kl),this.Kl())},this.Kl=()=>{let e=this.Yr&&this.Yr.activeQuality;if(!this.qualityLabel||!e)return;let s=e.label?e.label:e.height?e.height+"p":void 0;s&&((0,a.Na)(this.qualityLabel,s),this.addClass("theo-quality-label-show"),this.hideActiveQualityLabel())},this.hideActiveQualityLabel=()=>{this.resetTimeout(),this.startFadeOutID=this.setTimeout(this.fadeoutLabel,3750),this.removeLabelClassesID=this.setTimeout(this.hideLabel,4e3)},this.resetTimeout=()=>{this.startFadeOutID&&this.clearTimeout(this.startFadeOutID),this.removeLabelClassesID&&this.clearTimeout(this.removeLabelClassesID)},this.fadeoutLabel=()=>{this.addClass("theo-quality-label-fadeout")},this.hideLabel=()=>{this.removeClass("theo-quality-label-show"),this.removeClass("theo-quality-label-fadeout")},super.addClass("theo-quality-label"),this.xs.videoTracks&&(this.xs.videoTracks.addEventListener(al,this.dh),this.dh())}};rm.registerComponent("activeQualityLabel",au),(0,a.c)(),(0,a.c)();var ac="theo-upcoming-ad-notification",ad=["adbreakbegin","adbreakend","adadded","adloaded","adbegin","adend"],ap=class extends rS(rK){createEl(){let e=rm.createEl("div",{className:ac});return this.notificationText=rm.createEl("div",{className:ac+"text"}),e.appendChild(this.notificationText),e}Zl(){if(!this.xs.ads)return;let e=this.xs.ads.scheduledAdBreaks,s,r=1/0;for(let n=0;n<e.length;n++){let o=e[n],a=o.timeOffset;-1!==a&&a<r&&(r=a,s=o)}this.currentAdBreak=s,this.currentAdBreakValid=void 0!==s&&void 0!==s.ads&&s.ads.some(e=>"linear"===e.type)}td(){if(!this.xs.ads||this.xs.ads.playing||!this.currentAdBreak||!this.currentAdBreakValid||0===this.currentAdBreak.timeOffset)return void this.sd();let e=this.xs.currentTime;if(this.currentAdBreak.timeOffset>e+10)return void this.sd();let s=b.ceil(this.currentAdBreak.timeOffset-e);s<0?this.sd():this.ed(s)}ed(e){this.nd!==e&&((0,a.Na)(this.notificationText,"Your video will be temporarily interrupted in 0:"+(e<10?"0"+e:e)),this.nd=e,this.show())}sd(){this.nd=NaN,this.hide()}dispose(){var e;this.xs.removeEventListener("timeupdate",this.handleTimeUpdate),null==(e=this.xs.ads)||e.removeEventListener(ad,this.handleAdEvent),this.currentAdBreak=void 0,super.dispose()}constructor(e,s){super(e,s),this.currentAdBreak=void 0,this.currentAdBreakValid=!1,this.nd=NaN,this.handleTimeUpdate=()=>{this.td()},this.handleAdEvent=()=>{this.Zl(),this.td()},this.xs.ads&&(this.hide(),this.xs.addEventListener("timeupdate",this.handleTimeUpdate),this.xs.ads.addEventListener(ad,this.handleAdEvent))}};rm.registerComponent("upcomingAdNotificationText",ap),(0,a.c)(),(0,a.c)();var av=rm.getComponent("Component");rm.registerComponent("UplynkAdBreakBar",class extends av{createEl(){let e=c.createElement("div");return e.className="theoplayer-ad-overlay-component theo-ad-remaining-container",e}get rd(){return this.h.adBreakProvider()}se(e,s){if(this.rd&&this.rd.endTime){let r=b.max(this.rd.endTime-e,0);(0,a.Na)(s,"Content will resume in "+b.ceil(r)+"s"),this.show()}else this.hide()}constructor(e,s){super(e,s),this.od=()=>{this.se(this.player().currentTime(),this.el())},this.on(e,"timeupdate",this.od)}}),(0,a.c)();var af=rm.getComponent("ClickableComponent");rm.registerComponent("UplynkAdSkipButton",class extends af{createEl(){let e=c.createElement("div");return e.className="theoplayer-ad-overlay-component theoplayer-ad-skip theoplayer-ad-skip-countdown",this.ad=c.createElement("span"),e.appendChild(this.ad),this.se(e,this.ad),e}handleClick(){this.h.skipCallback()}se(e,s){this.ud<=a.Y.dd.ld?((0,a.m)(e,"theoplayer-ad-skip-countdown"),(0,a.l)(e,"theoplayer-ad-skip-button"),(0,a.Na)(s,"Skip ads")):(0,a.Na)(s,"Skip ads in "+b.ceil(this.ud)+"s")}get ud(){return this.h.adBreak.startTime+this.h.adBreak.skipOffset-this.player().currentTime()}constructor(e,s){super(e,s),this.od=()=>{this.se(this.el(),this.ad)},this.on(e,"timeupdate",this.od)}}),(0,a.c)(),(0,a.c)();var ag=rm.getComponent("Component"),am=class extends ag{buildCSSClass(){return"theo-uplynk-marker-bar"}createEl(e,s,r){let n=c.createElement("div");return n.className=this.buildCSSClass(),n}updateMarkers(e){let s=this.children().slice(),r=0,n=0;for(;r<s.length&&n<e.length;r++,n++){let o=s[r],a=e[n];o.marker===a?o.updateMarker():(this.removeChild(o),this.addChild(this.fd,{marker:a}))}for(;r<s.length;r++)this.removeChild(s[r]);for(;n<e.length;n++){let s=e[n];this.addChild(this.fd,{marker:s})}}constructor(e,s){super(e,s)}};(0,a.c)();var ay=((o={}).vd="UplynkAdBreakBar",o.pd="UplynkAdSkipButton",o.md="UplynkAdBreakMarkerBar",o.gd="UplynkAdBreakMarker",o.yd="Upl
1ynkAssetMarkerBar",o.bd="UplynkAssetMarker",o.kd="UplynkContentNotificationBar",o.wd="UplynkContentNotification",o);function aC(e,s){let r=e.uplynk;return!!(e&&void 0===r)||!!(e&&r&&void 0===r.ui)||!!(e&&r&&r.ui&&void 0===r.ui[s])||!!(e&&r&&r.ui&&!0===r.ui[s])}w(function(e){return class extends e{get _d(){return this.vo.controlBar.progressControl.seekBar}Ta(e){this.xd=!1,this.Ca.removeEventListener("timeupdate",this.Cd),this.Ca.removeEventListener("loadeddata",this.Sd),this.vo.removeChild("UplynkAdBreakBar"),this.vo.removeChild("UplynkAdSkipButton"),this._d.removeChild("UplynkAdBreakMarkerBar"),this._d.removeChild("UplynkAssetMarkerBar"),this.vo.removeChild("UplynkContentNotificationBar"),this.Ca.uplynk&&e&&(0,a.gb)(e)&&this.Ca.addEventListener("loadeddata",this.Sd),super.Ta(e)}jd(){if(!aC(this.Td,"assetMarkers")||!this.xd)return;let e=this._d.getChild("UplynkAssetMarkerBar");e||(e=this._d.addChild("UplynkAssetMarkerBar")),e.updateMarkers(this.Ca.uplynk.assets)}Md(){if(!aC(this.Td,"contentNotification"))return;let e=this.vo.getChild("UplynkContentNotificationBar");e||(e=this.vo.addChild("UplynkContentNotificationBar")),e.updateAssets(this.Ca.uplynk.assets)}kn(){this.Ca.removeEventListener("timeupdate",this.Cd),this.Ca.removeEventListener("loadeddata",this.Sd);let e=this.Ca.uplynk;null==e||e.ads.adBreaks.removeEventListener("addadbreak",this.Pd),null==e||e.ads.adBreaks.removeEventListener("removeadbreak",this.Nd),null==e||e.assets.removeEventListener("addasset",this.Ed),null==e||e.assets.removeEventListener("removeasset",this.Ed),super.kn()}constructor(e,s,r){super(e,s,r),this.xd=!1,this.Sd=()=>{this.xd=!0,isFinite(this.Bd())||this.Ca.addEventListener("timeupdate",this.Cd),this.Cd(),this.jd(),this.Md()},this.Pd=e=>{e.adBreak.addEventListener("adbreakbegin",this.Id),e.adBreak.addEventListener("adbreakend",this.Fd),this.Cd()},this.Nd=e=>{e.adBreak.removeEventListener("adbreakbegin",this.Id),e.adBreak.removeEventListener("adbreakend",this.Fd),this.Cd()},this.Cd=()=>{if(!aC(this.Td,"adBreakMarkers")||!this.xd)return;let e=this._d.getChild("UplynkAdBreakMarkerBar");e||(e=this._d.addChild("UplynkAdBreakMarkerBar")),e.updateMarkers(this.Ca.uplynk.ads.adBreaks)},this.Id=()=>{if(aC(this.Td,"adNotification")){let e=this.Ca.uplynk,s=e.ads.currentAdBreak;this.vo.addChild("UplynkAdBreakBar",{adBreakProvider:this.Dd}),-1!==s.skipOffset&&this.vo.addChild("UplynkAdSkipButton",{adBreak:s,skipCallback:e.ads.skip})}},this.Dd=()=>this.Ca.uplynk.ads.currentAdBreak,this.Fd=()=>{this.vo.removeChild("UplynkAdBreakBar"),this.vo.removeChild("UplynkAdSkipButton")},this.Ed=()=>{this.jd(),this.Md()};const n=this.Ca.uplynk;null==n||n.ads.adBreaks.addEventListener("addadbreak",this.Pd),null==n||n.ads.adBreaks.addEventListener("removeadbreak",this.Nd),null==n||n.assets.addEventListener("addasset",this.Ed),null==n||n.assets.addEventListener("removeasset",this.Ed)}}}),rm.registerComponent("UplynkAdBreakMarkerBar",class extends am{buildCSSClass(){return super.buildCSSClass()+" theo-uplynk-marker-bar-adbreak"}get fd(){return ay.gd}}),(0,a.c)(),(0,a.c)();var ab=rm.getComponent("Component"),ak=class extends ab{get marker(){return this.h.marker}get seekable(){return this.player().seekable()}buildCSSClass(){return"theo-uplynk-marker"}createEl(e,s,r){let n=c.createElement("div");return n.className=this.buildCSSClass(),this.updateMarker(n),n}updateMarker(e){void 0===e&&(e=this.el());let s=this.seekable.start(0),r=this.seekable.end(this.seekable.length-1),n=b.max(this.marker.startTime-s,0),o=void 0!==this.marker.endTime?b.max(r-this.marker.endTime,0):0,a=r-s;e.style.left=n/a*100+"%",e.style.right=o/a*100+"%"}constructor(e,s){super(e,s)}};rm.registerComponent("UplynkAdBreakMarker",class extends ak{buildCSSClass(){return super.buildCSSClass()+" theo-uplynk-marker-adbreak"}}),(0,a.c)(),rm.registerComponent("UplynkAssetMarkerBar",class extends am{buildCSSClass(){return super.buildCSSClass()+" theo-uplynk-marker-bar-asset"}get fd(){return ay.bd}}),(0,a.c)(),rm.registerComponent("UplynkAssetMarker",class extends ak{buildCSSClass(){return super.buildCSSClass()+" theo-uplynk-marker-asset"}}),(0,a.c)();var aT=rm.getComponent("Component");rm.registerComponent("UplynkContentNotificationBar",class extends aT{buildCSSClass(){let e="theo-uplynk-content-notification-bar";return e+(a.d.ru||a.d.$d?" "+e+"-ios":"")}createEl(e,s,r){let n=c.createElement("div");return n.className=this.buildCSSClass(),n}updateAssets(e){let s=this.children().slice(),r=0,n=0;for(;r<s.length&&n<e.length;r++,n++){let o=s[r],a=e[n];o.Ud===a?o.updateCountdown():(this.removeChild(o),this.addChild(ay.wd,{asset:a}))}for(;r<s.length;r++)this.removeChild(s[r]);for(;n<e.length;n++){let s=e[n];this.addChild(ay.wd,{asset:s})}}constructor(e,s){super(e,s)}}),(0,a.c)();var ax=rm.getComponent("Component");rm.registerComponent("UplynkContentNotification",class extends ax{get Ud(){return this.h.asset}buildCSSClass(){return"theo-uplynk-content-notification"}createEl(e,s,r){let n=c.createElement("div");return n.className=this.buildCSSClass(),n}
1wo(){let e=c.createElement("img");e.src=this.Ud.posterUrl,e.className=this.buildCSSClass()+"-thumbnail",this.el().appendChild(e);let s=c.createElement("div");s.className=this.buildCSSClass()+"-description";let r="Next: "+this.Ud.description;(0,a.Na)(s,r),this.el().appendChild(s),this.Rd=c.createElement("div"),this.Rd.className=this.buildCSSClass()+"-countdown",(0,a.Na)(this.Rd,this.Od),this.el().appendChild(this.Rd)}get Od(){let e=b.min(10,this.Vd);return"Starting in "+b.ceil(e)+" seconds"}get Vd(){return b.max(0,this.Ud.startTime-this.player().currentTime())}updateCountdown(){let e=this.Vd;e>10||e<=0?this.hide():((0,a.Na)(this.Rd,this.Od),this.show())}constructor(e,s){super(e,s),this.Rd=void 0,this.wo(),this.on(e,"timeupdate",this.updateCountdown),this.hide()}})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.