@theoplayer/extended 11.12.1 → 11.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THEOplayer.chromeless.d.ts +4 -3
- package/THEOplayer.chromeless.esm.js +3 -4
- package/THEOplayer.chromeless.js +21 -4
- package/THEOplayer.common.d.ts +9750 -9825
- package/THEOplayer.common.esm.js +22 -5
- package/THEOplayer.d.ts +193 -199
- package/THEOplayer.esm.js +38 -4
- package/THEOplayer.js +27 -4
- package/THEOplayer.transmux.asmjs.js +21 -4
- package/THEOplayer.transmux.js +21 -4
- package/THEOplayer.transmux.wasm +0 -0
- package/package.json +1 -1
- package/theoplayer.d.js +21 -4
package/THEOplayer.esm.js
CHANGED
|
@@ -34,7 +34,41 @@
|
|
|
34
34
|
THEOplayer is based on patented technology developed by
|
|
35
35
|
THEO Technologies (https://www.theoplayer.com).
|
|
36
36
|
|
|
37
|
-
Version: 11.
|
|
38
|
-
Created: 2026-
|
|
39
|
-
*/
|
|
40
|
-
var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==a?a:"undefined"!=typeof global?global:this,a=s.window,h=s.document,u=(s.location,s.navigator,s.setTimeout),c=s.clearTimeout,v=(s.setInterval,s.clearInterval,s.Error),p=s.TypeError,m=s.SyntaxError,g=s.Object,w=s.Math,k=s.parseInt,_=s.parseFloat,j=s.isNaN,x=s.Uint8Array;s.Worker,s.WorkerGlobalScope,s.XMLHttpRequest;import{$ as S,$a as T,A as C,Aa as P,Ab as M,B as A,Ba as I,Bb as E,C as D,Ca as N,Cb as F,D as B,Da as $,Db as R,E as O,Ea as V,Eb as U,F as L,Fa as H,Fb as z,G as W,Ga as q,Gb as G,H as X,Ha as J,I as Q,Ia as Y,J as K,Ja as Z,K as tt,Ka as it,L as st,La as et,M as nt,Ma as rt,N as ht,Na as ot,O as at,Oa as ut,P as ct,Pa as lt,Q as dt,Qa as ft,R as vt,Ra as pt,S as mt,Sa as gt,T as yt,Ta as bt,U as wt,Ua as kt,V as _t,Va as jt,W as xt,Wa as St,X as Tt,Xa as Ct,Y as Pt,Ya as Mt,Z as At,Za as It,_ as Et,_a as Dt,a as Nt,aa as Ft,ab as Bt,b as $t,ba as Rt,bb as Ot,c as Vt,ca as Ut,cb as Lt,d as Ht,da as zt,db as Wt,e as qt,ea as Gt,eb as Xt,f as Jt,fa as Qt,fb as Yt,g as Kt,ga as Zt,gb as ti,h as ii,ha as si,hb as ei,i as ni,ia as ri,ib as hi,j as oi,ja as ai,jb as ui,k as r,ka as ci,kb as li,l as di,la as fi,lb as vi,m as pi,ma as mi,mb as gi,n as yi,na as bi,nb as y,o as wi,oa as ki,ob as _i,p as ji,pa as xi,pb as Si,q as Ti,qa as Ci,qb as Pi,r as Mi,ra as Ai,rb as Ii,s as Ei,sa as Di,sb as Ni,t as Fi,ta as Bi,tb as $i,u as Ri,ua as Oi,ub as Vi,v as Ui,va as Li,vb as Hi,w as zi,wa as Wi,wb as qi,x as Gi,xa as Xi,xb as Ji,y as Qi,ya as Yi,yb as Ki,z as Zi,za as ts,zb as is}from"./THEOplayer.common.esm.js";Vt(),Vt(),Vt(),Vt();var ss=[];var es=[];Vt(),Vt(),Vt(),Vt();var ns=void 0!==a?a:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},rs=void 0!==h?h:{createElement:function(){}};function hs(t,i){return i||(i=t.slice(0)),t.raw=i,t}var os=1;function as(){return os++}var us,cs=g.prototype.toString,ls=function(t){return vs(t)?g.keys(t):[]};function ds(t,i){ls(t).forEach(function(s){return i(t[s],s)})}function fs(t){for(var i=arguments.length,s=new Array(i>1?i-1:0),e=1;e<i;e++)s[e-1]=arguments[e];return g.assign?g.assign.apply(g,[t].concat(s)):(s.forEach(function(i){i&&ds(i,function(i,s){t[s]=i})}),t)}function vs(t){return!!t&&"object"==typeof t}function ps(t){return vs(t)&&"[object Object]"===cs.call(t)&&t.constructor===g}var ms=function(t,i,s){void 0===s&&(s=!!ve&&ve<11),"log"!==t&&i.unshift(t.toUpperCase()+":"),us.history.push(i),i.unshift("VIDEOJS:");var e=ns.console&&ns.console[t];e&&(s&&(i=i.map(function(t){if(vs(t)||Array.isArray(t))try{return JSON.stringify(t)}catch(i){return String(t)}return String(t)}).join(" ")),e.apply?e[Array.isArray(i)?"apply":"call"](ns.console,i):e(i))};(us=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];ms("log",i)}).history=[],us.error=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return ms("error",i)},us.warn=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return ms("warn",i)};var gs=us,ys="undefined"!=typeof globalThis?globalThis:void 0!==a?a:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function bs(t){return t.replace(/\n\r?\s*/g,"")}var ws,ks=function(t){for(var i="",s=0;s<arguments.length;s++)i+=bs(t[s])+(arguments[s+1]||"");return i};function _s(t){return"string"==typeof t&&/\S/.test(t)}function js(t){if(/\s/.test(t))throw new v("class has illegal whitespace characters")}function xs(){return rs===ns.document&&void 0!==rs.createElement}function Ss(t){return vs(t)&&1===t.nodeType}function Ts(t){return function(i,s){if(!_s(i))return rs[t](null);_s(s)&&(s=rs.querySelector(s));var e=Ss(s)?s:rs;return e[t]&&e[t](i)}}function Cs(t,i,s,e){void 0===t&&(t="div"),void 0===i&&(i={}),void 0===s&&(s={});var n=rs.createElement(t);return g.getOwnPropertyNames(i).forEach(function(t){var s=i[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(gs.warn(ks(ws||(ws=hs(["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 ","."])),t,s)),n.setAttribute(t,s)):"textContent"===t?Ps(n,s):n[t]=s}),g.getOwnPropertyNames(s).forEach(function(t){n.setAttribute(t,s[t])}),e&&Gs(n,e),n}function Ps(t,i){return void 0===t.textContent?t.innerText=i:t.textContent=i,t}function Ms(t,i){i.firstChild?i.insertBefore(t,i.firstChild):i.appendChild(t)}var As={},Is="vdata"+(new Date).getTime();function Es(t){var i=t[Is];return i||(i=t[Is]=as()),As[i]||(As[i]={}),As[i]}function Ds(t){var i=t[Is];return!!i&&!!g.getOwnPropertyNames(As[i]).length}function Ns(t){var i=t[Is];if(i){delete As[i];try{delete t[Is]}catch(i){t.removeAttribute?t.removeAttribute(Is):t[Is]=null}}}function Fs(t,i){return js(i),t.classList?t.classList.contains(i):function(t){return new RegExp("(^|\\s)"+t+"($|\\s)")}(i).test(t.className)}function Bs(t,i){return t.classList?t.classList.add(i):Fs(t,i)||(t.className=(t.className+" "+i).trim()),t}function $s(t,i){return t.classList?t.classList.remove(i):(js(i),t.className=t.className.split(/\s+/).filter(function(t){return t!==i}).join(" ")),t}function Rs(t,i,s){var e=Fs(t,i);if("function"==typeof s&&(s=s(t,i)),"boolean"!=typeof s&&(s=!e),s!==e)return s?Bs(t,i):$s(t,i),t}function Os(t,i){g.getOwnPropertyNames(i).forEach(function(s){var e=i[s];null==e||!1===e?t.removeAttribute(s):t.setAttribute(s,!0===e?"":e)})}function Vs(t){var i={};if(t&&t.attributes&&t.attributes.length>0)for(var s=t.attributes,e=s.length-1;e>=0;e--){var n=s[e].name,r=s[e].value;"boolean"!=typeof t[n]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+n+",")||(r=null!==r),i[n]=r}return i}function Us(t,i,s){t.setAttribute(i,s)}function Ls(t,i){t.removeAttribute(i)}function Hs(t){var i;if(t.getBoundingClientRect&&t.parentNode&&(i=t.getBoundingClientRect()),!i)return{left:0,top:0};var s=rs.documentElement,e=rs.body,n=s.clientLeft||e.clientLeft||0,r=ns.pageXOffset||e.scrollLeft,h=i.left+r-n,o=s.clientTop||e.clientTop||0,a=ns.pageYOffset||e.scrollTop,u=i.top+a-o;return{left:w.round(h),top:w.round(u)}}function zs(t,i){var s={},e=Hs(t),n=t.offsetWidth,r=t.offsetHeight,h=e.top,o=e.left,a=i.pageY,u=i.pageX;return i.changedTouches&&(u=i.changedTouches[0].pageX,a=i.changedTouches[0].pageY),s.y=w.max(0,w.min(1,(h-a+r)/r)),s.x=w.max(0,w.min(1,(u-o)/n)),s}function Ws(t){return vs(t)&&3===t.nodeType}function qs(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function Gs(t,i){return function(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&&(t=t()),Ss(t)||Ws(t)?t:"string"==typeof t&&/\S/.test(t)?rs.createTextNode(t):void 0}).filter(function(t){return t})}(i).forEach(function(i){return t.appendChild(i)}),t}function Xs(t,i){return Gs(qs(t),i)}var b,Js=Ts("querySelector"),Qs=Ts("querySelectorAll"),Ys=ns.navigator&&ns.navigator.userAgent||"",Ks=/AppleWebKit\/([\d.]+)/i.exec(Ys),Zs=Ks?_(Ks.pop()):null,te=/iPad/i.test(Ys),ie=/iPhone/i.test(Ys)&&!te,se=/iPod/i.test(Ys),ee=ie||te||se,ne=(b=Ys.match(/OS (\d+)_/i))&&b[1]?b[1]:null,re=/Android/i.test(Ys),he=function(){var t=Ys.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var i=t[1]&&_(t[1]),s=t[2]&&_(t[2]);return i&&s?_(t[1]+"."+t[2]):i||null}(),oe=re&&/webkit/i.test(Ys)&&he<2.3,ae=re&&he<5&&Zs<537,ue=/Firefox/i.test(Ys),ce=/Edge/i.test(Ys),le=!ce&&/Chrome/i.test(Ys),de=function(){var t=Ys.match(/Chrome\/(\d+)/);return t&&t[1]?_(t[1]):null}(),fe=/MSIE\s8\.0/.test(Ys),ve=function(){var t=/MSIE\s(\d+)\.\d/.exec(Ys),i=t&&_(t[1]);return!i&&/Trident\/7.0/i.test(Ys)&&/rv:11.0/.test(Ys)&&(i=11),i}(),pe=/Safari/i.test(Ys)&&!le&&!re&&!ce,me=pe||ee,ge=xs()&&("ontouchstart"in ns||ns.DocumentTouch&&ns.document instanceof ns.DocumentTouch),ye=xs()&&"backgroundSize"in ns.document.createElement("video").style,be=g.freeze({__proto__:null,IS_IPAD:te,IS_IPHONE:ie,IS_IPOD:se,IS_IOS:ee,IOS_VERSION:ne,IS_ANDROID:re,ANDROID_VERSION:he,IS_OLD_ANDROID:oe,IS_NATIVE_ANDROID:ae,IS_FIREFOX:ue,IS_EDGE:ce,IS_CHROME:le,CHROME_VERSION:de,IS_IE8:fe,IE_VERSION:ve,IS_SAFARI:pe,IS_ANY_SAFARI:me,TOUCH_ENABLED:ge,BACKGROUND_SIZE_SUPPORTED:ye});function we(t,i){var s=Es(t);0===s.handlers[i].length&&(delete s.handlers[i],t.removeEventListener?t.removeEventListener(i,s.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+i,s.dispatcher)),g.getOwnPropertyNames(s.handlers).length<=0&&(delete s.handlers,delete s.dispatcher,delete s.disabled),0===g.getOwnPropertyNames(s).length&&Ns(t)}function ke(t,i,s,e){s.forEach(function(s){t(i,s,e)})}function _e(t){function i(){return!0}function s(){return!1}if(!t||!t.isPropagationStopped||!t.isImmediatePropagationStopped){var e=t||ns.event;for(var n in t={},e)"layerX"!==n&&"layerY"!==n&&"keyLocation"!==n&&"webkitMovementX"!==n&&"webkitMovementY"!==n&&"path"!==n&&("returnValue"===n&&e.preventDefault||(t[n]=e[n]));if(t.target||(t.target=t.srcElement||rs),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){e.preventDefault&&e.preventDefault(),t.returnValue=!1,e.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){e.stopPropagation&&e.stopPropagation(),t.cancelBubble=!0,e.cancelBubble=!0,t.isPropagationStopped=i},t.isPropagationStopped=s,t.stopImmediatePropagation=function(){e.stopImmediatePropagation&&e.stopImmediatePropagation(),t.isImmediatePropagationStopped=i,t.stopPropagation()},t.isImmediatePropagationStopped=s,null!==t.clientX&&void 0!==t.clientX){var r=rs.documentElement,h=rs.body;t.pageX=t.clientX+(r&&r.scrollLeft||h&&h.scrollLeft||0)-(r&&r.clientLeft||h&&h.clientLeft||0),t.pageY=t.clientY+(r&&r.scrollTop||h&&h.scrollTop||0)-(r&&r.clientTop||h&&h.clientTop||0)}t.which=t.charCode||t.keyCode,null!==t.button&&void 0!==t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t}var je=!1;!function(){try{var t=g.defineProperty({},"passive",{get:function(){je=!0}});ns.addEventListener("test",null,t)}catch(t){}}();var xe=["touchstart","touchmove"];function Se(t,i,s){if(Array.isArray(i))return ke(Se,t,i,s);var e=Es(t);if(e.handlers||(e.handlers={}),e.handlers[i]||(e.handlers[i]=[]),s.guid||(s.guid=as()),e.handlers[i].push(s),e.dispatcher||(e.disabled=!1,e.dispatcher=function(i,s){if(!e.disabled){i=_e(i);var n=e.handlers[i.type];if(n)for(var r=n.slice(0),h=0,o=r.length;h<o&&!i.isImmediatePropagationStopped();h++)try{r[h].call(t,i,s)}catch(t){gs.error(t)}}}),1===e.handlers[i].length)if(t.addEventListener){var n=!1;je&&xe.indexOf(i)>-1&&(n={passive:!0}),t.addEventListener(i,e.dispatcher,n)}else t.attachEvent&&t.attachEvent("on"+i,e.dispatcher)}function Te(t,i,s){if(Ds(t)){var e=Es(t);if(e.handlers){if(Array.isArray(i))return ke(Te,t,i,s);var n=function(i){e.handlers[i]=[],we(t,i)};if(i){var r=e.handlers[i];if(r)if(s){if(s.guid)for(var h=0;h<r.length;h++)r[h].guid===s.guid&&r.splice(h--,1);we(t,i)}else n(i)}else for(var o in e.handlers)n(o)}}}function Ce(t,i,s){var e=Ds(t)?Es(t):{},n=t.parentNode||t.ownerDocument;if("string"==typeof i&&(i={type:i,target:t}),i=_e(i),e.dispatcher&&e.dispatcher.call(t,i,s),n&&!i.isPropagationStopped()&&!0===i.bubbles)Ce.call(null,n,i,s);else if(!n&&!i.defaultPrevented){var r=Es(i.target);i.target[i.type]&&(r.disabled=!0,"function"==typeof i.target[i.type]&&i.target[i.type](),r.disabled=!1)}return!i.defaultPrevented}function Pe(t,i,s){if(Array.isArray(i))return ke(Pe,t,i,s);var e=function e(){Te(t,i,e),s.apply(this,arguments)};e.guid=s.guid=s.guid||as(),Se(t,i,e)}var Me,Ae=!1,Ie=function(){if(xs()){var t=rs.getElementsByTagName("video"),i=rs.getElementsByTagName("audio"),s=[];if(t&&t.length>0)for(var e=0,n=t.length;e<n;e++)s.push(t[e]);if(i&&i.length>0)for(var r=0,h=i.length;r<h;r++)s.push(i[r]);if(s&&s.length>0)for(var o=0,a=s.length;o<a;o++){var u=s[o];if(!u||!u.getAttribute){Ee(1);break}void 0===u.player&&null!==u.getAttribute("data-setup")&&Me(u)}else Ae||Ee(1)}};function Ee(t,i){i&&(Me=i),ns.setTimeout(Ie,t)}xs()&&"complete"===rs.readyState?Ae=!0:Pe(ns,"load",function(){Ae=!0});var De=function(t){var i=rs.createElement("style");return i.className=t,i},Ne=function(t,i){t.styleSheet?t.styleSheet.cssText=i:t.textContent=i},Fe=function(t,i,s){i.guid||(i.guid=as());var e=function(){return i.apply(t,arguments)};return e.guid=s?s+"_"+i.guid:i.guid,e};function Be(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}function $e(){for(var t={},i=arguments.length,s=new Array(i),e=0;e<i;e++)s[e]=arguments[e];return s.forEach(function(i){i&&ds(i,function(i,s){ps(i)?(ps(t[s])||(t[s]={}),t[s]=$e(t[s],i)):t[s]=i})}),t}var Re=function(){function t(t,i,s){if(!t&&this.play?this.t=t=this:this.t=t,this.h=$e({},this.h),i=this.h=$e(this.h,i),this.o=i.id||i.el&&i.el.id,!this.o){var e=t&&t.id&&t.id()||"no_player";this.o=e+"u"+as()}this.l=i.name||null,i.el?this.v=i.el:!1!==i.createEl&&(this.v=this.createEl()),this.m=[],this.k={},this.j={},!1!==i.initChildren&&this.initChildren(),this.ready(s),!1!==i.reportTouchActivity&&this.enableTouchActivity()}var i=t.prototype;return i.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.m)for(var t=this.m.length-1;t>=0;t--)this.m[t].dispose&&this.m[t].dispose();this.m=null,this.k=null,this.j=null,this.off(),this.v.parentNode&&this.v.parentNode.removeChild(this.v),Ns(this.v),this.v=null},i.player=function(){return this.t},i.options=function(t){return gs.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.h=$e(this.h,t),this.h):this.h},i.el=function(){return this.v},i.createEl=function(t,i,s){return Cs(t,i,s)},i.localize=function(t){var i=this.t.language&&this.t.language(),s=this.t.languages&&this.t.languages();if(!i||!s)return t;var e=s[i];if(e&&e[t])return e[t];var n=s[i.split("-")[0]];return n&&n[t]?n[t]:t},i.contentEl=function(){return this.S||this.v},i.id=function(){return this.o},i.name=function(){return this.l},i.children=function(){return this.m},i.getChildById=function(t){return this.k[t]},i.getChild=function(t){if(t)return t=Be(t),this.j[t]},i.addChild=function(i,s,e){var n,r;if(void 0===s&&(s={}),void 0===e&&(e=this.m.length),"string"==typeof i){r=Be(i),s||(s={}),!0===s&&(gs.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`."),s={});var h=s.componentClass||r;s.name=r;var o=t.getComponent(h);if(!o)throw new v("Component "+h+" does not exist");if("function"!=typeof o)return null;n=new o(this.t||this,s)}else n=i;if(this.m.splice(e,0,n),"function"==typeof n.id&&(this.k[n.id()]=n),(r=r||n.name&&Be(n.name()))&&(this.j[r]=n),"function"==typeof n.el&&n.el()){var a=this.contentEl().children[e]||null;this.contentEl().insertBefore(n.el(),a)}return n},i.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.m){for(var i=!1,s=this.m.length-1;s>=0;s--)if(this.m[s]===t){i=!0,this.m.splice(s,1);break}if(i){this.k[t.id()]=null,this.j[t.name()]=null;var e=t.el();e&&e.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},i.initChildren=function(){var i=this,s=this.h.children;if(s){var e,n=this.h,r=t.getComponent("Tech");(e=Array.isArray(s)?s:g.keys(s)).concat(g.keys(this.h).filter(function(t){return!e.some(function(i){return"string"==typeof i?t===i:t===i.name})})).map(function(t){var e,n;return"string"==typeof t?n=s[e=t]||i.h[e]||{}:(e=t.name,n=t),{name:e,opts:n}}).filter(function(i){var s=t.getComponent(i.opts.componentClass||Be(i.name));return s&&!r.isTech(s)}).forEach(function(t){var s=t.name,e=t.opts;if(void 0!==n[s]&&(e=n[s]),!1!==e){!0===e&&(e={}),e.playerOptions=i.h.playerOptions;var r=i.addChild(s,e);r&&(i[s]=r)}})}},i.buildCSSClass=function(){return""},i.on=function(t,i,s){var e=this;if("string"==typeof t||Array.isArray(t))Se(this.v,t,Fe(this,i));else{var n=t,r=i,h=Fe(this,s),o=function(){return e.off(n,r,h)};o.guid=h.guid,this.on("dispose",o);var a=function(){return e.off("dispose",o)};a.guid=h.guid,t.nodeName?(Se(n,r,h),Se(n,"dispose",a)):"function"==typeof t.on&&(n.on(r,h),n.on("dispose",a))}return this},i.off=function(t,i,s){if(!t||"string"==typeof t||Array.isArray(t))Te(this.v,t,i);else{var e=t,n=i,r=Fe(this,s);this.off("dispose",r),t.nodeName?(Te(e,n,r),Te(e,"dispose",r)):(e.off(n,r),e.off("dispose",r))}return this},i.one=function(t,i,s){var e=arguments,n=this;if("string"==typeof t||Array.isArray(t))Pe(this.v,t,Fe(this,i));else{var r=t,h=i,o=Fe(this,s),a=function t(){n.off(r,h,t),o.apply(null,e)};a.guid=o.guid,this.on(r,h,a)}return this},i.trigger=function(t,i){return Ce(this.v,t,i),this},i.ready=function(t,i){return void 0===i&&(i=!1),t&&(this.T?i?t.call(this):this.setTimeout(t,1):(this.C=this.C||[],this.C.push(t))),this},i.triggerReady=function(){this.T=!0,this.setTimeout(function(){var t=this.C;this.C=[],t&&t.length>0&&t.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},i.$=function(t,i){return Js(t,i||this.contentEl())},i.$$=function(t,i){return Qs(t,i||this.contentEl())},i.hasClass=function(t){return Fs(this.v,t)},i.addClass=function(t){return Bs(this.v,t),this},i.removeClass=function(t){return $s(this.v,t),this},i.toggleClass=function(t,i){return Rs(this.v,t,i),this},i.show=function(){return this.removeClass("vjs-hidden"),this},i.hide=function(){return this.addClass("vjs-hidden"),this},i.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},i.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},i.getAttribute=function(t){return function(t,i){return t.getAttribute(i)}(this.v,t)},i.setAttribute=function(t,i){return Us(this.v,t,i),this},i.removeAttribute=function(t){return Ls(this.v,t),this},i.width=function(t,i){return this.dimension("width",t,i)},i.height=function(t,i){return this.dimension("height",t,i)},i.dimensions=function(t,i){return this.width(t,!0).height(i)},i.dimension=function(t,i,s){if(void 0!==i)return null!==i&&i==i||(i=0),-1!==(""+i).indexOf("%")||-1!==(""+i).indexOf("px")?this.v.style[t]=i:this.v.style[t]="auto"===i?"":i+"px",s||this.trigger("resize"),this;if(!this.v)return 0;var e=this.v.style[t],n=e.indexOf("px");return k(-1!==n?e.slice(0,n):this.v["offset"+Be(t)],10)},i.currentDimension=function(t){var i=0;if("width"!==t&&"height"!==t)throw new v("currentDimension only accepts width or height value");if("function"==typeof ns.getComputedStyle){var s=ns.getComputedStyle(this.v);i=s.getPropertyValue(t)||s[t]}if(0===(i=_(i))){var e="offset"+Be(t);i=this.v[e]}return i},i.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},i.currentWidth=function(){return this.currentDimension("width")},i.currentHeight=function(){return this.currentDimension("height")},i.focus=function(){this.v.focus()},i.blur=function(){this.v.blur()},i.emitTapEvents=function(){var t,i=0,s=null;this.on("touchstart",function(e){1===e.touches.length&&(s={pageX:e.touches[0].pageX,pageY:e.touches[0].pageY},i=(new Date).getTime(),t=!0)}),this.on("touchmove",function(i){if(i.touches.length>1)t=!1;else if(s){var e=i.touches[0].pageX-s.pageX,n=i.touches[0].pageY-s.pageY;w.sqrt(e*e+n*n)>10&&(t=!1)}});var e=function(){t=!1};this.on("touchleave",e),this.on("touchcancel",e),this.on("touchend",function(e){(s=null,!0===t)&&((new Date).getTime()-i<200&&(e.preventDefault(),this.trigger("tap")))})},i.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t,i=Fe(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){i(),this.clearInterval(t),t=this.setInterval(i,250)});var s=function(s){i(),this.clearInterval(t)};this.on("touchmove",i),this.on("touchend",s),this.on("touchcancel",s)}},i.setTimeout=function(t,i){t=Fe(this,t);var s=ns.setTimeout(t,i),e=function(){this.clearTimeout(s)};return e.guid="vjs-timeout-"+s,this.on("dispose",e),s},i.clearTimeout=function(t){ns.clearTimeout(t);var i=function(){};return i.guid="vjs-timeout-"+t,this.off("dispose",i),t},i.setInterval=function(t,i){t=Fe(this,t);var s=ns.setInterval(t,i),e=function(){this.clearInterval(s)};return e.guid="vjs-interval-"+s,this.on("dispose",e),s},i.clearInterval=function(t){ns.clearInterval(t);var i=function(){};return i.guid="vjs-interval-"+t,this.off("dispose",i),t},t.registerComponent=function(i,s){if(i){if(i=Be(i),t.P||(t.P={}),"Player"===i&&t.P[i]){var e=t.P[i];if(e.players&&g.keys(e.players).length>0&&g.keys(e.players).map(function(t){return e.players[t]}).every(Boolean))throw new v("Can not register Player component after player has been created")}return t.P[i]=s,s}},t.getComponent=function(i){if(i)return i=Be(i),t.P&&t.P[i]?t.P[i]:ns&&ns.videojs&&ns.videojs[i]?(gs.warn("The "+i+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),ns.videojs[i]):void 0},t.extend=function(i){i=i||{},gs.warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var s=i.init||i.init||this.prototype.init||this.prototype.init||function(){},e=function(){s.apply(this,arguments)};for(var n in(e.prototype=g.create(this.prototype)).constructor=e,e.extend=t.extend,i)i.hasOwnProperty(n)&&(e.prototype[n]=i[n]);return e},t}();Re.registerComponent("Component",Re);var Oe=function(){};function Ve(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ue(t,i){return(Ue=g.setPrototypeOf?g.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t})(t,i)}function Le(t,i){t.prototype=g.create(i.prototype),t.prototype.constructor=t,Ue(t,i)}function He(t,i,s,e){return void 0===e&&(gs.warn("DEPRECATED: Function '"+t+"' on 'TimeRanges' called without an index argument."),e=0),function(t,i,s){if(i<0||i>s)throw new v("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+i+") is greater than or equal to the maximum bound ("+s+").")}(t,e,s.length-1),s[e][i]}function ze(t){return void 0===t||0===t.length?{length:0,start:function(){throw new v("This TimeRanges object is empty")},end:function(){throw new v("This TimeRanges object is empty")}}:{length:t.length,start:He.bind(null,"start",0,t),end:He.bind(null,"end",1,t)}}function We(t,i){return Array.isArray(t)?ze(t):void 0===t||void 0===i?ze():ze([[t,i]])}function qe(t,i){var s,e,n=0;if(!i)return 0;t&&t.length||(t=We(0,0));for(var r=0;r<t.length;r++)s=t.start(r),(e=t.end(r))>i&&(e=i),n+=e-s;return n/i}Oe.prototype.M={},Oe.prototype.on=function(t,i){var s=this.addEventListener;this.addEventListener=function(){},Se(this,t,i),this.addEventListener=s},Oe.prototype.addEventListener=Oe.prototype.on,Oe.prototype.off=function(t,i){Te(this,t,i)},Oe.prototype.removeEventListener=Oe.prototype.off,Oe.prototype.one=function(t,i){var s=this.addEventListener;this.addEventListener=function(){},Pe(this,t,i),this.addEventListener=s},Oe.prototype.trigger=function(t){var i=t.type||t;"string"==typeof t&&(t={type:i}),t=_e(t),this.M[i]&&this["on"+i]&&this["on"+i](t),Ce(this,t)},Oe.prototype.dispatchEvent=Oe.prototype.trigger;var Ge,Xe,Je,Qe,Ye={prefixed:!0},Ke=[["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"]],Ze=Ke[0];for(Xe=0;Xe<Ke.length;Xe++)if(Ke[Xe][1]in rs){Ge=Ke[Xe];break}if(Ge){for(Je=0;Je<Ge.length;Je++)Ye[Ze[Je]]=Ge[Je];Ye.prefixed=Ge[0]!==Ze[0]}function tn(t){if(t instanceof tn)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:vs(t)&&("number"==typeof t.code&&(this.code=t.code),fs(this,t)),this.message||(this.message=tn.defaultMessages[this.code]||"")}for(tn.prototype.code=0,tn.prototype.message="",tn.prototype.status=null,tn.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],tn.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."},Qe=0;Qe<tn.errorTypes.length;Qe++)tn[tn.errorTypes[Qe]]=Qe,tn.prototype[tn.errorTypes[Qe]]=Qe;var sn=function(t,i){var s,e=null;try{s=JSON.parse(t,i)}catch(t){e=t}return[e,s]};var en=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(i,s,e){return t[s]&&(i[s]=t[s]),i},{cues:t.cues&&Array.prototype.map.call(t.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})},nn=function(t){var i=t.$$("track"),s=Array.prototype.map.call(i,function(t){return t.track});return Array.prototype.map.call(i,function(t){var i=en(t.track);return t.src&&(i.src=t.src),i}).concat(Array.prototype.filter.call(t.textTracks(),function(t){return-1===s.indexOf(t)}).map(en))},rn=function(t,i){return t.forEach(function(t){var s=i.addRemoteTextTrack(t).track;!t.src&&t.cues&&t.cues.forEach(function(t){return s.addCue(t)})}),i.textTracks()},hn="vjs-modal-dialog",on=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).A=e.I=e.D=!1,e.closeable(!e.h.uncloseable),e.content(e.h.content),e.S=Cs("div",{className:hn+"-content"},{role:"document"}),e.N=Cs("p",{className:hn+"-description vjs-offscreen",id:e.el().getAttribute("aria-describedby")}),Ps(e.N,e.description()),e.v.appendChild(e.N),e.v.appendChild(e.S),e.on(i,"languagechange",e.handleLanguagechange),e}Le(i,t);var s=i.prototype;return s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"F","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},s.buildCSSClass=function(){return hn+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},s.handleKeyPress=function(t){27===t.which&&this.closeable()&&this.close()},s.label=function(){return this.h.label||this.localize("Modal Window")},s.description=function(){var t=this.h.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},s.open=function(){if(!this.A){var t=this.player();this.trigger("beforemodalopen"),this.A=!0,(this.h.fillAlways||!this.I&&!this.D)&&this.fill(),this.B=!t.paused(),this.h.pauseOnOpen&&this.B&&t.pause(),this.closeable()&&this.on(this.v.ownerDocument,"keydown",Fe(this,this.handleKeyPress)),t.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.I=!0}return this},s.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.A},s.close=function(){if(this.A){var t=this.player();this.trigger("beforemodalclose"),this.A=!1,this.B&&this.h.pauseOnOpen&&t.play(),this.closeable()&&this.off(this.v.ownerDocument,"keydown",Fe(this,this.handleKeyPress)),t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.h.temporary&&this.dispose()}return this},s.closeable=function(t){if("boolean"==typeof t){var i=this.R=!!t,s=this.getChild("closeButton");if(i&&!s){var e=this.S;this.S=this.v,s=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.S=e,this.on(s,"close",this.close)}!i&&s&&(this.off(s,"close",this.close),this.removeChild(s),s.dispose())}return this.R},s.fill=function(){return this.fillWith(this.content())},s.fillWith=function(t){var i=this.contentEl(),s=i.parentNode,e=i.nextSibling;return this.trigger("beforemodalfill"),this.D=!0,s.removeChild(i),this.empty(),Xs(i,t),this.trigger("modalfill"),e?s.insertBefore(i,e):s.appendChild(i),this},s.empty=function(){return this.trigger("beforemodalempty"),qs(this.contentEl()),this.trigger("modalempty"),this},s.content=function(t){return void 0!==t&&(this.O=t),this.O},s.handleLanguagechange=function(){this.v.setAttribute("aria-label",this.label()),Ps(this.N,this.description()),this.opened()?this.fill():(this.I||this.D)&&(this.I=!1,this.D=!1,this.empty())},i}(Re);on.prototype.h={pauseOnOpen:!0,temporary:!0},Re.registerComponent("ModalDialog",on);var an=function(){function t(i){var s=this;if(fe)for(var e in s=rs.createElement("custom"),t.prototype)"constructor"!==e&&(s[e]=t.prototype[e]);if(t.prototype.V.call(s,i),g.defineProperty(s,"length",{get:function(){return this.U}}),fe)return s}var i=t.prototype;return i.V=function(t){var i=this.length||0,s=0,e=t.length;this.L=t,this.U=t.length;var n=function(t){""+t in this||g.defineProperty(this,""+t,{get:function(){return this.L[t]}})};if(i<e)for(s=i;s<e;s++)n.call(this,s)},i.getCueById=function(t){for(var i=null,s=0,e=this.length;s<e;s++){var n=this[s];if(n.id===t){i=n;break}}return i},t}(),un={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},cn={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},ln={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},dn={disabled:"disabled",hidden:"hidden",showing:"showing"},fn=function(t){function i(s){var e;void 0===s&&(s={});var n=Ve(e=t.call(this)||this);if(fe)for(var r in n=rs.createElement("custom"),i.prototype)"constructor"!==r&&(n[r]=i.prototype[r]);var h={id:s.id||["vjs_track",as()].join("_"),kind:s.kind||"",label:s.label||"",language:s.language||""},o=function(t){g.defineProperty(n,t,{get:function(){return h[t]},set:function(){}})};for(var a in h)o(a);return n||Ve(e)}return Le(i,t),i}(Oe),vn=function(t){var i=["protocol","hostname","port","pathname","search","hash","host"],s=rs.createElement("a");s.href=t;var e,n=""===s.host&&"file:"!==s.protocol;n&&((e=rs.createElement("div")).innerHTML='<a href="'+t+'"></a>',s=e.firstChild,e.setAttribute("style","display:none; position:absolute;"),rs.body.appendChild(e));for(var r={},h=0;h<i.length;h++)r[i[h]]=s[i[h]];return"http:"===r.protocol&&(r.host=r.host.replace(/:80$/,"")),"https:"===r.protocol&&(r.host=r.host.replace(/:443$/,"")),n&&rs.body.removeChild(e),r},pn=function(t){var i=ns.location,s=vn(t);return(":"===s.protocol?i.protocol:s.protocol)+s.host!==i.protocol+i.host},mn={exports:{}};void 0!==a?mn.exports=a:void 0!==ys?mn.exports=ys:"undefined"!=typeof self?mn.exports=self:mn.exports={};var gn=function(t){var i=yn.call(t);return"[object Function]"===i||"function"==typeof t&&"[object RegExp]"!==i||void 0!==a&&(t===a.setTimeout||t===a.alert||t===a.confirm||t===a.prompt)},yn=g.prototype.toString;var bn,wn,kn,_n,jn,xn,Sn,Tn,Cn,Pn,Mn,An,In=Array.prototype.slice,En=g.prototype.toString,Dn=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==En.call(i))throw new p("Function.prototype.bind called on incompatible "+i);for(var s,e=In.call(arguments,1),n=w.max(0,i.length-e.length),r=[],h=0;h<n;h++)r.push("$"+h);if(s=Function("binder","return function ("+r.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof s){var n=i.apply(this,e.concat(In.call(arguments)));return g(n)===n?n:this}return i.apply(t,e.concat(In.call(arguments)))}),i.prototype){var o=function(){};o.prototype=i.prototype,s.prototype=new o,o.prototype=null}return s},Nn=Function.prototype.bind||Dn,Fn=g.prototype.toString,Bn=function(t){var i=Fn.call(t),s="[object Arguments]"===i;return s||(s="[object Array]"!==i&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===Fn.call(t.callee)),s};g.keys||(wn=g.prototype.hasOwnProperty,kn=g.prototype.toString,_n=Bn,jn=g.prototype.propertyIsEnumerable,xn=!jn.call({toString:null},"toString"),Sn=jn.call(function(){},"prototype"),Tn=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Cn=function(t){var i=t.constructor;return i&&i.prototype===t},Pn={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!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},Mn=function(){if(void 0===a)return!1;for(var t in a)try{if(!Pn["$"+t]&&wn.call(a,t)&&null!==a[t]&&"object"==typeof a[t])try{Cn(a[t])}catch(t){return!0}}catch(t){return!0}return!1}(),An=function(t){if(void 0===a||!Mn)return Cn(t);try{return Cn(t)}catch(t){return!1}},bn=function(t){var i=null!==t&&"object"==typeof t,s="[object Function]"===kn.call(t),e=_n(t),n=i&&"[object String]"===kn.call(t),r=[];if(!i&&!s&&!e)throw new p("Object.keys called on a non-object");var h=Sn&&s;if(n&&t.length>0&&!wn.call(t,0))for(var o=0;o<t.length;++o)r.push(String(o));if(e&&t.length>0)for(var a=0;a<t.length;++a)r.push(String(a));else for(var u in t)h&&"prototype"===u||!wn.call(t,u)||r.push(String(u));if(xn)for(var c=An(t),l=0;l<Tn.length;++l)c&&"constructor"===Tn[l]||!wn.call(t,Tn[l])||r.push(Tn[l]);return r});var $n=bn,Rn=Array.prototype.slice,On=Bn,Vn=g.keys,Un=Vn?function(t){return Vn(t)}:$n,Ln=g.keys;Un.shim=function(){if(g.keys){var t=function(){var t=g.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(g.keys=function(t){return On(t)?Ln(Rn.call(t)):Ln(t)})}else g.keys=Un;return g.keys||Un};var Hn=Un,zn="function"==typeof Nt&&"symbol"==typeof Nt("foo"),Wn=g.prototype.toString,qn=Array.prototype.concat,Gn=g.defineProperty,Xn=Gn&&function(){var t={};try{for(var i in Gn(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),Jn=function(t,i,s,e){(!(i in t)||function(t){return"function"==typeof t&&"[object Function]"===Wn.call(t)}(e)&&e())&&(Xn?Gn(t,i,{configurable:!0,enumerable:!1,value:s,writable:!0}):t[i]=s)},Qn=function(t,i){var s=arguments.length>2?arguments[2]:{},e=Hn(i);zn&&(e=qn.call(e,g.getOwnPropertySymbols(i)));for(var n=0;n<e.length;n+=1)Jn(t,e[n],i[e[n]],s[e[n]])};Qn.supportsDescriptors=!!Xn;var Yn,Kn=Qn,Zn=g.getOwnPropertyDescriptor?function(){return g.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new p},tr="function"==typeof Nt&&"symbol"==typeof $t,ir=g.getPrototypeOf||function(t){return t.__proto__},sr=Yn,er=Yn,nr=Yn,rr=void 0===x?Yn:ir(x),hr={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?Yn:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?Yn:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":tr?ir([][$t]()):Yn,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":Yn,"$ %AsyncFunction%":er,"$ %AsyncFunctionPrototype%":Yn,"$ %AsyncGenerator%":Yn,"$ %AsyncGeneratorFunction%":nr,"$ %AsyncGeneratorPrototype%":Yn,"$ %AsyncIteratorPrototype%":Yn,"$ %Atomics%":"undefined"==typeof Atomics?Yn:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?Yn:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?Yn:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":v,"$ %ErrorPrototype%":v.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?Yn:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?Yn:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?Yn:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?Yn:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":Yn,"$ %GeneratorFunction%":sr,"$ %GeneratorPrototype%":Yn,"$ %Int8Array%":"undefined"==typeof Int8Array?Yn:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?Yn:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?Yn:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?Yn:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?Yn:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?Yn:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":j,"$ %IteratorPrototype%":tr?ir(ir([][$t]())):Yn,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?Yn:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&tr?ir((new Map)[$t]()):Yn,"$ %MapPrototype%":"undefined"==typeof Map?Yn:Map.prototype,"$ %Math%":w,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":g,"$ %ObjectPrototype%":g.prototype,"$ %ObjProto_toString%":g.prototype.toString,"$ %ObjProto_valueOf%":g.prototype.valueOf,"$ %parseFloat%":_,"$ %parseInt%":k,"$ %Promise%":"undefined"==typeof Promise?Yn:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?Yn:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?Yn:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?Yn:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?Yn:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?Yn:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?Yn:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?Yn:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?Yn:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&tr?ir((new Set)[$t]()):Yn,"$ %SetPrototype%":"undefined"==typeof Set?Yn:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Yn:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?Yn:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":tr?ir(""[$t]()):Yn,"$ %StringPrototype%":String.prototype,"$ %Symbol%":tr?Nt:Yn,"$ %SymbolPrototype%":tr?Nt.prototype:Yn,"$ %SyntaxError%":m,"$ %SyntaxErrorPrototype%":m.prototype,"$ %ThrowTypeError%":Zn,"$ %TypedArray%":rr,"$ %TypedArrayPrototype%":rr?rr.prototype:Yn,"$ %TypeError%":p,"$ %TypeErrorPrototype%":p.prototype,"$ %Uint8Array%":void 0===x?Yn:x,"$ %Uint8ArrayPrototype%":void 0===x?Yn:x.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Yn:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?Yn:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?Yn:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?Yn:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?Yn:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?Yn:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?Yn:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?Yn:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?Yn:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?Yn:WeakSet.prototype},or=function(t,i){if(arguments.length>1&&"boolean"!=typeof i)throw new p('"allowMissing" argument must be a boolean');var s="$ "+t;if(!(s in hr))throw new m("intrinsic "+t+" does not exist!");if(void 0===hr[s]&&!i)throw new p("intrinsic "+t+" exists, but is not available. Please file an issue!");return hr[s]},ar=Nn.call(Function.call,g.prototype.hasOwnProperty),ur=or,cr=ur("%TypeError%"),lr=ur("%SyntaxError%"),dr=ar,fr={"Property Descriptor":function(t,i){if("Object"!==t.Type(i))return!1;var s={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var e in i)if(dr(i,e)&&!s[e])return!1;var n=dr(i,"[[Value]]"),r=dr(i,"[[Get]]")||dr(i,"[[Set]]");if(n&&r)throw new cr("Property Descriptors may not be both accessor and data descriptors");return!0}},vr=Number.isNaN||function(t){return t!=t},pr=Number.isNaN||function(t){return t!=t},mr=Number.isFinite||function(t){return"number"==typeof t&&!pr(t)&&t!==1/0&&t!==-1/0},gr=Function.prototype.toString,yr=/^\s*class\b/,br=function(t){try{var i=gr.call(t);return yr.test(i)}catch(t){return!1}},wr=g.prototype.toString,kr="function"==typeof Nt&&"symbol"==typeof Nt.toStringTag,_r=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;if(kr)return function(t){try{return!br(t)&&(gr.call(t),!0)}catch(t){return!1}}(t);if(br(t))return!1;var i=wr.call(t);return"[object Function]"===i||"[object GeneratorFunction]"===i},jr=g.prototype.toString,xr=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t},Sr=_r,Tr=function(t){var i;if((i=arguments.length>1?arguments[1]:"[object Date]"===jr.call(t)?String:Number)===String||i===Number){var s,e,n=i===String?["toString","valueOf"]:["valueOf","toString"];for(e=0;e<n.length;++e)if(Sr(t[n[e]])&&(s=t[n[e]](),xr(s)))return s;throw new p("No default value")}throw new p("invalid [[DefaultValue]] hint supplied")},Cr=or,Pr=Cr("%Object%"),Mr=Cr("%TypeError%"),Ar=Cr("%String%"),Ir=function(t,i,s,e){var n=fr[i];if("function"!=typeof n)throw new lr("unknown record type: "+i);if(!n(t,e))throw new cr(s+" must be a "+i);console.log(n(t,e),e)},Er=vr,Dr=mr,Nr=function(t){return t>=0?1:-1},Fr=function(t,i){var s=t%i;return w.floor(s>=0?s:s+i)},Br=ar,$r={ToPrimitive:function(t){return xr(t)?t:arguments.length>1?Tr(t,arguments[1]):Tr(t)},ToBoolean:function(t){return!!t},ToNumber:function(t){return+t},ToInteger:function(t){var i=this.ToNumber(t);return Er(i)?0:0!==i&&Dr(i)?Nr(i)*w.floor(w.abs(i)):i},ToInt32:function(t){return this.ToNumber(t)|0},ToUint32:function(t){return this.ToNumber(t)>>>0},ToUint16:function(t){var i=this.ToNumber(t);if(Er(i)||0===i||!Dr(i))return 0;var s=Nr(i)*w.floor(w.abs(i));return Fr(s,65536)},ToString:function(t){return Ar(t)},ToObject:function(t){return this.CheckObjectCoercible(t),Pr(t)},CheckObjectCoercible:function(t,i){if(null==t)throw new Mr(i||"Cannot call method on "+t);return t},IsCallable:_r,SameValue:function(t,i){return t===i?0!==t||1/t==1/i:Er(t)&&Er(i)},Type:function(t){return null===t?"Null":void 0===t?"Undefined":"function"==typeof t||"object"==typeof t?"Object":"number"==typeof t?"Number":"boolean"==typeof t?"Boolean":"string"==typeof t?"String":void 0},IsPropertyDescriptor:function(t){if("Object"!==this.Type(t))return!1;var i={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var s in t)if(Br(t,s)&&!i[s])return!1;var e=Br(t,"[[Value]]"),n=Br(t,"[[Get]]")||Br(t,"[[Set]]");if(e&&n)throw new Mr("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(t){return void 0!==t&&(Ir(this,"Property Descriptor","Desc",t),!(!Br(t,"[[Get]]")&&!Br(t,"[[Set]]")))},IsDataDescriptor:function(t){return void 0!==t&&(Ir(this,"Property Descriptor","Desc",t),!(!Br(t,"[[Value]]")&&!Br(t,"[[Writable]]")))},IsGenericDescriptor:function(t){return void 0!==t&&(Ir(this,"Property Descriptor","Desc",t),!this.IsAccessorDescriptor(t)&&!this.IsDataDescriptor(t))},FromPropertyDescriptor:function(t){if(void 0===t)return t;if(Ir(this,"Property Descriptor","Desc",t),this.IsDataDescriptor(t))return{value:t["[[Value]]"],writable:!!t["[[Writable]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};if(this.IsAccessorDescriptor(t))return{get:t["[[Get]]"],set:t["[[Set]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};throw new Mr("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(t){if("Object"!==this.Type(t))throw new Mr("ToPropertyDescriptor requires an object");var i={};if(Br(t,"enumerable")&&(i["[[Enumerable]]"]=this.ToBoolean(t.enumerable)),Br(t,"configurable")&&(i["[[Configurable]]"]=this.ToBoolean(t.configurable)),Br(t,"value")&&(i["[[Value]]"]=t.value),Br(t,"writable")&&(i["[[Writable]]"]=this.ToBoolean(t.writable)),Br(t,"get")){var s=t.get;if(void 0!==s&&!this.IsCallable(s))throw new p("getter must be a function");i["[[Get]]"]=s}if(Br(t,"set")){var e=t.set;if(void 0!==e&&!this.IsCallable(e))throw new Mr("setter must be a function");i["[[Set]]"]=e}if((Br(i,"[[Get]]")||Br(i,"[[Set]]"))&&(Br(i,"[[Value]]")||Br(i,"[[Writable]]")))throw new Mr("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return i}},Rr=Nn.call(Function.call,String.prototype.replace),Or=/^[\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]+/,Vr=/[\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]+$/,Ur=function(){var t=$r.ToString($r.CheckObjectCoercible(this));return Rr(Rr(t,Or,""),Vr,"")},Lr=Ur,Hr=function(){return String.prototype.trim&&"\u200b"==="\u200b".trim()?String.prototype.trim:Lr},zr=Kn,Wr=Hr,qr=Kn,Gr=Ur,Xr=Hr,Jr=function(){var t=Wr();return zr(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},Qr=Nn.call(Function.call,Xr());qr(Qr,{getPolyfill:Xr,implementation:Gr,shim:Jr});var Yr=Qr,Kr=_r,Zr=g.prototype.toString,th=g.prototype.hasOwnProperty,ih=Yr,sh=function(t,i,s){if(!Kr(i))throw new p("iterator must be a function");var e;arguments.length>=3&&(e=s),"[object Array]"===Zr.call(t)?function(t,i,s){for(var e=0,n=t.length;e<n;e++)th.call(t,e)&&(null==s?i(t[e],e,t):i.call(s,t[e],e,t))}(t,i,e):"string"==typeof t?function(t,i,s){for(var e=0,n=t.length;e<n;e++)null==s?i(t.charAt(e),e,t):i.call(s,t.charAt(e),e,t)}(t,i,e):function(t,i,s){for(var e in t)th.call(t,e)&&(null==s?i(t[e],e,t):i.call(s,t[e],e,t))}(t,i,e)},eh=function(){for(var t={},i=0;i<arguments.length;i++){var s=arguments[i];for(var e in s)nh.call(s,e)&&(t[e]=s[e])}return t},nh=g.prototype.hasOwnProperty;var rh=mn.exports,hh=gn,oh=function(t){if(!t)return{};var i={};return sh(ih(t).split("\n"),function(t){var s=t.indexOf(":"),e=ih(t.slice(0,s)).toLowerCase(),n=ih(t.slice(s+1));void 0===i[e]?i[e]=n:!function(t){return"[object Array]"===g.prototype.toString.call(t)}(i[e])?i[e]=[i[e],n]:i[e].push(n)}),i},ah=eh,uh=lh;function ch(t,i,s){var e=t;return hh(i)?(s=i,"string"==typeof t&&(e={uri:t})):e=ah(i,{uri:t}),e.callback=s,e}function lh(t,i,s){return dh(i=ch(t,i,s))}function dh(t){if(void 0===t.callback)throw new v("callback argument missing");var i=!1,s=function(s,e,n){i||(i=!0,t.callback(s,e,n))};function e(){var t=void 0;if(t=l.response?l.response:l.responseText||function(t){if("document"===t.responseType)return t.responseXML;var i=204===t.status&&t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!i)return t.responseXML;return null}(l),b)try{t=JSON.parse(t)}catch(t){}return t}var n={body:void 0,headers:{},statusCode:0,method:p,url:f,rawRequest:l};function r(t){return c(d),t instanceof v||(t=new v(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,s(t,n)}function h(){if(!a){var i;c(d),i=t.useXDR&&void 0===l.status?200:1223===l.status?204:l.status;var r=n,h=null;return 0!==i?(r={body:e(),statusCode:i,method:p,headers:{},url:f,rawRequest:l},l.getAllResponseHeaders&&(r.headers=oh(l.getAllResponseHeaders()))):h=new v("Internal XMLHttpRequest Error"),s(h,r,r.body)}}var o,a,l=t.xhr||null;l||(l=t.cors||t.useXDR?new lh.XDomainRequest:new lh.XMLHttpRequest);var d,f=l.url=t.uri||t.url,p=l.method=t.method||"GET",m=t.body||t.data||null,g=l.headers=t.headers||{},y=!!t.sync,b=!1;if("json"in t&&(b=!0,g.accept||g.Accept||(g.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(g["content-type"]||g["Content-Type"]||(g["Content-Type"]="application/json"),m=JSON.stringify(t.json))),l.onreadystatechange=function(){4===l.readyState&&h()},l.onload=h,l.onerror=r,l.onprogress=function(){},l.ontimeout=r,l.open(p,f,!y,t.username,t.password),y||(l.withCredentials=!!t.withCredentials),!y&&t.timeout>0&&(d=u(function(){a=!0,l.abort("timeout");var t=new v("XMLHttpRequest timeout");t.code="ETIMEDOUT",r(t)},t.timeout)),l.setRequestHeader)for(o in g)g.hasOwnProperty(o)&&l.setRequestHeader(o,g[o]);else if(t.headers&&!function(t){for(var i in t)if(t.hasOwnProperty(i))return!1;return!0}(t.headers))throw new v("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(l.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(l),l.send(m),l}lh.XMLHttpRequest=rh.XMLHttpRequest||function(){},lh.XDomainRequest="withCredentials"in new lh.XMLHttpRequest?lh.XMLHttpRequest:rh.XDomainRequest,function(t,i){for(var s=0;s<t.length;s++)i(t[s])}(["get","put","post","patch","head","delete"],function(t){lh["delete"===t?"del":t]=function(i,s,e){return(s=ch(i,s,e)).method=t.toUpperCase(),dh(s)}});var fh=function(t,i){var s=new ns.WebVTT.Parser(ns,ns.vttjs,ns.WebVTT.StringDecoder()),e=[];s.oncue=function(t){i.addCue(t)},s.onparsingerror=function(t){e.push(t)},s.onflush=function(){i.trigger({type:"loadeddata",target:i})},s.parse(t),e.length>0&&(ns.console&&ns.console.groupCollapsed&&ns.console.groupCollapsed("Text Track parsing errors for "+i.src),e.forEach(function(t){return gs.error(t)}),ns.console&&ns.console.groupEnd&&ns.console.groupEnd()),s.flush()},vh=function(t){function i(s){var e;if(void 0===s&&(s={}),!s.tech)throw new v("A tech was not provided.");var n=$e(s,{kind:ln[s.kind]||"subtitles",language:s.language||s.srclang||""}),r=dn[n.mode]||"disabled",h=n.default;"metadata"!==n.kind&&"chapters"!==n.kind||(r="hidden");var o=e=t.call(this,n)||this;if(o.H=n.tech,fe)for(var a in i.prototype)"constructor"!==a&&(o[a]=i.prototype[a]);o.L=[],o.W=[];var u=new an(o.L),c=new an(o.W),l=!1,d=Fe(o,function(){this.activeCues,l&&(this.trigger("cuechange"),l=!1)});return"disabled"!==r&&o.H.ready(function(){o.H.on("timeupdate",d)},!0),g.defineProperty(o,"default",{get:function(){return h},set:function(){}}),g.defineProperty(o,"mode",{get:function(){return r},set:function(t){var i=this;dn[t]&&("showing"===(r=t)&&this.H.ready(function(){i.H.on("timeupdate",d)},!0),this.trigger("modechange"))}}),g.defineProperty(o,"cues",{get:function(){return this.q?u:null},set:function(){}}),g.defineProperty(o,"activeCues",{get:function(){if(!this.q)return null;if(0===this.cues.length)return c;for(var t=this.H.currentTime(),i=[],s=0,e=this.cues.length;s<e;s++){var n=this.cues[s];(n.startTime<=t&&n.endTime>=t||n.startTime===n.endTime&&n.startTime<=t&&n.startTime+.5>=t)&&i.push(n)}if(l=!1,i.length!==this.W.length)l=!0;else for(var r=0;r<i.length;r++)-1===this.W.indexOf(i[r])&&(l=!0);return this.W=i,c.V(this.W),c},set:function(){}}),n.src?(o.src=n.src,function(t,i){var s={uri:t},e=pn(t);e&&(s.cors=e),uh(s,Fe(this,function(t,s,e){if(t)return gs.error(t,s);if(i.q=!0,"function"!=typeof ns.WebVTT){if(i.H){var n=function(){return fh(e,i)};i.H.on("vttjsloaded",n),i.H.on("vttjserror",function(){gs.error("vttjs failed to load, stopping trying to process "+i.src),i.H.off("vttjsloaded",n)})}}else fh(e,i)}))}(n.src,o)):o.q=!0,o||Ve(e)}Le(i,t);var s=i.prototype;return s.addCue=function(t){var i=t;if(ns.vttjs&&!(t instanceof ns.vttjs.VTTCue)){for(var s in i=new ns.vttjs.VTTCue(t.startTime,t.endTime,t.text),t)s in i||(i[s]=t[s]);i.id=t.id,i.G=t}var e=this.H.textTracks();if(e)for(var n=0;n<e.length;n++)e[n]!==this&&e[n].removeCue(i);this.L.push(i),this.cues.V(this.L)},s.removeCue=function(t){for(var i=this.L.length;i--;){var s=this.L[i];if(s===t||s.G&&s.G===t){this.L.splice(i,1),this.cues.V(this.L);break}}},i}(fn);vh.prototype.M={cuechange:"cuechange"};var ph=function(t){function i(s){var e,n;void 0===s&&(s={});var r=Ve(e=t.call(this)||this);if(fe)for(var h in r=rs.createElement("custom"),i.prototype)"constructor"!==h&&(r[h]=i.prototype[h]);var o=new vh(s);return r.kind=o.kind,r.src=o.src,r.srclang=o.language,r.label=o.label,r.default=o.default,g.defineProperty(r,"readyState",{get:function(){return n}}),g.defineProperty(r,"track",{get:function(){return o}}),n=0,o.addEventListener("loadeddata",function(){n=2,r.trigger({type:"load",target:r})}),fe?r||Ve(e):e}return Le(i,t),i}(Oe);ph.prototype.M={load:"load"},ph.NONE=0,ph.LOADING=1,ph.LOADED=2,ph.ERROR=3;var mh,gh=function(){function t(i){void 0===i&&(i=[]);var s=this;if(fe)for(var e in s=rs.createElement("custom"),t.prototype)"constructor"!==e&&(s[e]=t.prototype[e]);s.X=[],g.defineProperty(s,"length",{get:function(){return this.X.length}});for(var n=0,r=i.length;n<r;n++)s.J(i[n]);if(fe)return s}var i=t.prototype;return i.J=function(t){var i=this.X.length;""+i in this||g.defineProperty(this,i,{get:function(){return this.X[i]}}),-1===this.X.indexOf(t)&&this.X.push(t)},i.Y=function(t){for(var i,s=0,e=this.X.length;s<e;s++)if(t===this.X[s].track){i=this.X[s];break}return i},i.K=function(t){for(var i=0,s=this.X.length;i<s;i++)if(t===this.X[i]){this.X.splice(i,1);break}},t}(),yh=function(t){function i(s,e){var n;if(void 0===s&&(s=[]),void 0===e&&(e=null),n=t.call(this)||this,!e&&(e=Ve(n),fe))for(var r in e=rs.createElement("custom"),i.prototype)"constructor"!==r&&(e[r]=i.prototype[r]);e.Z=[],g.defineProperty(e,"length",{get:function(){return this.Z.length}});for(var h=0;h<s.length;h++)e.tt(s[h]);return e||Ve(n)}Le(i,t);var s=i.prototype;return s.tt=function(t){var i=this.Z.length;""+i in this||g.defineProperty(this,i,{get:function(){return this.Z[i]}}),-1===this.Z.indexOf(t)&&(this.Z.push(t),this.trigger({track:t,type:"addtrack"}))},s.it=function(t){for(var i,s=0,e=this.length;s<e;s++)if(this[s]===t){(i=this[s]).off&&i.off(),this.Z.splice(s,1);break}i&&this.trigger({track:i,type:"removetrack"})},s.getTrackById=function(t){for(var i=null,s=0,e=this.length;s<e;s++){var n=this[s];if(n.id===t){i=n;break}}return i},i}(Oe);for(mh in yh.prototype.M={change:"change",addtrack:"addtrack",removetrack:"removetrack"},yh.prototype.M)yh.prototype["on"+mh]=null;var bh=function(t){function i(s){var e,n;if(void 0===s&&(s=[]),fe){for(var r in n=rs.createElement("custom"),yh.prototype)"constructor"!==r&&(n[r]=yh.prototype[r]);for(var h in i.prototype)"constructor"!==h&&(n[h]=i.prototype[h])}return(n=e=t.call(this,s,n)||this)||Ve(e)}return Le(i,t),i.prototype.tt=function(i){t.prototype.tt.call(this,i),i.addEventListener("modechange",Fe(this,function(){this.trigger("change")}))},i}(yh),wh=function(t,i){for(var s=0;s<t.length;s++)i.id!==t[s].id&&(t[s].selected=!1)},kh=function(t){function i(s){var e,n;void 0===s&&(s=[]);for(var r=s.length-1;r>=0;r--)if(s[r].selected){wh(s,s[r]);break}if(fe){for(var h in n=rs.createElement("custom"),yh.prototype)"constructor"!==h&&(n[h]=yh.prototype[h]);for(var o in i.prototype)"constructor"!==o&&(n[o]=i.prototype[o])}return(n=e=t.call(this,s,n)||this).st=!1,g.defineProperty(n,"selectedIndex",{get:function(){for(var t=0;t<this.length;t++)if(this[t].selected)return t;return-1},set:function(){}}),n||Ve(e)}Le(i,t);var s=i.prototype;return s.tt=function(i){var s=this;i.selected&&wh(this,i),t.prototype.tt.call(this,i),i.addEventListener&&i.addEventListener("selectedchange",function(){s.st||(s.st=!0,wh(s,i),s.st=!1,s.trigger("change"))})},s.addTrack=function(t){this.tt(t)},s.removeTrack=function(i){t.prototype.it.call(this,i)},i}(yh),_h=function(t,i){for(var s=0;s<t.length;s++)i.id!==t[s].id&&(t[s].enabled=!1)},jh=function(t){function i(s){var e,n;void 0===s&&(s=[]);for(var r=s.length-1;r>=0;r--)if(s[r].enabled){_h(s,s[r]);break}if(fe){for(var h in n=rs.createElement("custom"),yh.prototype)"constructor"!==h&&(n[h]=yh.prototype[h]);for(var o in i.prototype)"constructor"!==o&&(n[o]=i.prototype[o])}return(n=e=t.call(this,s,n)||this).st=!1,n||Ve(e)}Le(i,t);var s=i.prototype;return s.tt=function(i){var s=this;i.enabled&&_h(this,i),t.prototype.tt.call(this,i),i.addEventListener&&i.addEventListener("enabledchange",function(){s.st||(s.st=!0,_h(s,i),s.st=!1,s.trigger("change"))})},s.addTrack=function(t){this.tt(t)},s.removeTrack=function(i){t.prototype.it.call(this,i)},i}(yh),xh=void 0;var Sh=function(t){function i(i,s){var e;return void 0===i&&(i={}),void 0===s&&(s=function(){}),i.reportTouchActivity=!1,(e=t.call(this,null,i,s)||this).et=!1,e.on("playing",function(){this.et=!0}),e.on("loadstart",function(){this.et=!1}),e.nt=i.textTracks,e.rt=i.videoTracks,e.ht=i.audioTracks,e.featuresProgressEvents||e.manualProgressOn(),e.featuresTimeupdateEvents||e.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(t){!1===i["native"+t+"Tracks"]&&(e["featuresNative"+t+"Tracks"]=!1)}),!1===i.nativeCaptions&&(e.featuresNativeTextTracks=!1),e.featuresNativeTextTracks||e.emulateTextTracks(),e.ot=new bh,e.initTextTrackListeners(),e.initTrackListeners(),i.nativeControlsForTouch||e.emitTapEvents(),e.constructor&&(e.l=e.constructor.name||"Unknown Tech"),e}Le(i,t);var s=i.prototype;return s.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},s.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},s.trackProgress=function(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Fe(this,function(){var t=this.bufferedPercent();this.ut!==t&&this.trigger("progress"),this.ut=t,1===t&&this.stopTrackingProgress()}),500)},s.onDurationChange=function(t){this.ct=this.duration()},s.buffered=function(){return We(0,0)},s.bufferedPercent=function(){return qe(this.buffered(),this.ct)},s.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},s.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},s.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},s.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},s.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},s.dispose=function(){this.clearTracks(["audio","video","text"]),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},s.clearTracks=function(t){var i=this;(t=[].concat(t)).forEach(function(t){for(var s=i[t+"Tracks"]()||[],e=s.length;e--;){var n=s[e];"text"===t&&i.removeRemoteTextTrack(n),s.it(n)}})},s.cleanupAutoTextTracks=function(){for(var t=this.ot||[],i=t.length;i--;){var s=t[i];this.removeRemoteTextTrack(s)}},s.reset=function(){},s.error=function(t){return void 0!==t&&(this.lt=new tn(t),this.trigger("error")),this.lt},s.played=function(){return this.et?We(0,0):We()},s.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},s.initTextTrackListeners=function(){var t=Fe(this,function(){this.trigger("texttrackchange")}),i=this.textTracks();i&&(i.addEventListener("removetrack",t),i.addEventListener("addtrack",t),this.on("dispose",Fe(this,function(){i.removeEventListener("removetrack",t),i.removeEventListener("addtrack",t)})))},s.initTrackListeners=function(){var t=this;["video","audio"].forEach(function(i){var s=function(){t.trigger(i+"trackchange")},e=t[i+"Tracks"]();e.addEventListener("removetrack",s),e.addEventListener("addtrack",s),t.on("dispose",function(){e.removeEventListener("removetrack",s),e.removeEventListener("addtrack",s)})})},s.dt=function(){var t=this;if(!ns.WebVTT)if(rs.body.contains(this.el())){if(!this.h["vtt.js"]&&ps(xh)&&g.keys(xh).length>0)return void this.trigger("vttjsloaded");var i=rs.createElement("script");i.src=this.h["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",i.onload=function(){t.trigger("vttjsloaded")},i.onerror=function(){t.trigger("vttjserror")},this.on("dispose",function(){i.onload=null,i.onerror=null}),ns.WebVTT=!0,this.el().parentNode.appendChild(i)}else this.ready(this.dt)},s.emulateTextTracks=function(){var t=this,i=this.textTracks();if(i){var s=this.remoteTextTracks(),e=function(t){return i.tt(t.track)},n=function(t){return i.it(t.track)};s.on("addtrack",e),s.on("removetrack",n),this.dt();var r=function(){return t.trigger("texttrackchange")},h=function(){r();for(var t=0;t<i.length;t++){var s=i[t];s.removeEventListener("cuechange",r),"showing"===s.mode&&s.addEventListener("cuechange",r)}};h(),i.addEventListener("change",h),i.addEventListener("addtrack",h),i.addEventListener("removetrack",h),this.on("dispose",function(){s.off("addtrack",e),s.off("removetrack",n),i.removeEventListener("change",h),i.removeEventListener("addtrack",h),i.removeEventListener("removetrack",h);for(var t=0;t<i.length;t++){i[t].removeEventListener("cuechange",r)}})}},s.videoTracks=function(){return this.rt=this.rt||new kh,this.rt},s.audioTracks=function(){return this.ht=this.ht||new jh,this.ht},s.textTracks=function(){return this.nt=this.nt||new bh,this.nt},s.remoteTextTracks=function(){return this.ft=this.ft||new bh,this.ft},s.remoteTextTrackEls=function(){return this.vt=this.vt||new gh,this.vt},s.addTextTrack=function(t,i,s){if(!t)throw new v("TextTrack kind is required but was not provided");return function(t,i,s,e,n){void 0===n&&(n={});var r=t.textTracks();n.kind=i,s&&(n.label=s),e&&(n.language=e),n.tech=t;var h=new vh(n);return r.tt(h),h}(this,t,i,s)},s.createRemoteTextTrack=function(t){var i=$e(t,{tech:this});return new ph(i)},s.addRemoteTextTrack=function(t,i){void 0===t&&(t={});var s=this.createRemoteTextTrack(t);return!0!==i&&!1!==i&&(gs.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),i=!0),this.remoteTextTrackEls().J(s),this.remoteTextTracks().tt(s.track),!0!==i&&this.ot.tt(s.track),s},s.removeRemoteTextTrack=function(t){var i=this.remoteTextTrackEls().Y(t);this.remoteTextTrackEls().K(i),this.remoteTextTracks().it(t),this.ot.it(t)},s.getVideoPlaybackQuality=function(){return{}},s.setPoster=function(){},s.playsinline=function(){},s.setPlaysinline=function(){},s.canPlayType=function(){return""},i.isTech=function(t){return t.prototype instanceof i||t instanceof i||t===i},i.registerTech=function(t,s){if(i.gt||(i.gt={}),!i.isTech(s))throw new v("Tech "+t+" must be a Tech");return i.gt[t]=s,s},i.getTech=function(t){return i.gt&&i.gt[t]?i.gt[t]:ns&&ns.videojs&&ns.videojs[t]?(gs.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),ns.videojs[t]):void 0},i}(Re);Sh.prototype.nt,Sh.prototype.ht,Sh.prototype.rt,Sh.prototype.featuresVolumeControl=!0,Sh.prototype.featuresFullscreenResize=!1,Sh.prototype.featuresPlaybackRate=!1,Sh.prototype.featuresProgressEvents=!1,Sh.prototype.featuresTimeupdateEvents=!1,Sh.prototype.featuresNativeTextTracks=!1,Sh.withSourceHandlers=function(t){t.registerSourceHandler=function(i,s){var e=t.sourceHandlers;e||(e=t.sourceHandlers=[]),void 0===s&&(s=e.length),e.splice(s,0,i)},t.canPlayType=function(i){for(var s,e=t.sourceHandlers||[],n=0;n<e.length;n++)if(s=e[n].canPlayType(i))return s;return""},t.selectSourceHandler=function(i,s){for(var e=t.sourceHandlers||[],n=0;n<e.length;n++)if(e[n].canHandleSource(i,s))return e[n];return null},t.canPlaySource=function(i,s){var e=t.selectSourceHandler(i,s);return e?e.canHandleSource(i,s):""};["seekable","duration"].forEach(function(t){var i=this[t];"function"==typeof i&&(this[t]=function(){return this.yt&&this.yt[t]?this.yt[t].apply(this.yt,arguments):i.apply(this,arguments)})},t.prototype),t.prototype.setSource=function(i){var s=t.selectSourceHandler(i,this.h);return s||(t.nativeSourceHandler?s=t.nativeSourceHandler:gs.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),s!==t.nativeSourceHandler&&(this.bt=i,this.off(this.v,"loadstart",t.prototype.wt),this.off(this.v,"loadstart",t.prototype.kt),this.one(this.v,"loadstart",t.prototype.wt)),this.yt=s.handleSource(i,this,this.h),this.on("dispose",this.disposeSourceHandler),this},t.prototype.wt=function(){this.one(this.v,"loadstart",t.prototype.kt)},t.prototype.kt=function(){this.disposeSourceHandler(),this.one(this.v,"loadstart",t.prototype.kt)},t.prototype.disposeSourceHandler=function(){this.bt&&(this.clearTracks(["audio","video"]),this.bt=null),this.cleanupAutoTextTracks(),this.yt&&(this.off(this.v,"loadstart",t.prototype.wt),this.off(this.v,"loadstart",t.prototype.kt),this.yt.dispose&&this.yt.dispose(),this.yt=null)}},Re.registerComponent("Tech",Sh),Re.registerComponent("MediaTechController",Sh),Sh.registerTech("Tech",Sh);var Th=function(t){function i(i,s,e){var n;if(n=t.call(this,i,s,e)||this,s.playerOptions.sources&&0!==s.playerOptions.sources.length)i.src(s.playerOptions.sources);else for(var r=0,h=s.playerOptions.techOrder;r<h.length;r++){var o=Be(h[r]),a=Sh.getTech(o);if(o||(a=Re.getComponent(o)),a&&a.isSupported()){i._t(o);break}}return n}return Le(i,t),i}(Re);Re.registerComponent("MediaLoader",Th);var Ch=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).emitTapEvents(),e.on(i,"languagechange",e.handleLanguagechange),e.enable(),e}Le(i,t);var s=i.prototype;return s.createEl=function(i,s,e){void 0===i&&(i="div"),void 0===s&&(s={}),void 0===e&&(e={}),s=fs({className:this.buildCSSClass(),tabIndex:0},s),"button"===i&&gs.error("Creating a ClickableComponent with an HTML element of "+i+" is not supported; use a Button instead."),e=fs({role:"button","aria-live":"polite"},e),this.jt=s.tabIndex;var n=t.prototype.createEl.call(this,i,s,e);return this.createControlTextEl(n),n},s.createControlTextEl=function(t){return this.xt=Cs("span",{className:"vjs-control-text"}),t&&t.appendChild(this.xt),this.controlText(this.St,t),this.xt},s.controlText=function(t,i){if(void 0===i&&(i=this.el()),void 0===t)return this.St||"Need Text";var s=this.localize(t);return this.St=t,this.xt.innerHTML=s,this.nonIconControl||i.setAttribute("title",s),this},s.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},s.enable=function(){return this.removeClass("vjs-disabled"),this.v.setAttribute("aria-disabled","false"),void 0!==this.jt&&this.v.setAttribute("tabIndex",this.jt),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},s.disable=function(){return this.addClass("vjs-disabled"),this.v.setAttribute("aria-disabled","true"),void 0!==this.jt&&this.v.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this},s.handleLanguagechange=function(){this.controlText(this.St)},s.handleClick=function(t){},s.handleFocus=function(t){Se(rs,"keydown",Fe(this,this.handleKeyPress))},s.handleKeyPress=function(i){32===i.which||13===i.which?(i.preventDefault(),this.handleClick(i)):t.prototype.handleKeyPress&&t.prototype.handleKeyPress.call(this,i)},s.handleBlur=function(t){Te(rs,"keydown",Fe(this,this.handleKeyPress))},i}(Re);Re.registerComponent("ClickableComponent",Ch);var Ph=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).update(),i.on("posterchange",Fe(Ve(e),e.update)),e}Le(i,t);var s=i.prototype;return s.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},s.createEl=function(){var t=Cs("div",{className:"vjs-poster",tabIndex:-1});return ye||(this.Tt=Cs("img"),t.appendChild(this.Tt)),t},s.update=function(t){var i=this.player().poster();this.setSrc(i),i?this.show():this.hide()},s.setSrc=function(t){if(this.Tt)this.Tt.src=t;else{var i="";t&&(i='url("'+t+'")'),this.v.style.backgroundImage=i}},s.handleClick=function(t){this.t.controls()&&(this.t.paused()?this.t.play():this.t.pause())},i}(Ch);Re.registerComponent("PosterImage",Ph);var Mh="#222",Ah={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 Ih(t,i){return"rgba("+k(t[1]+t[1],16)+","+k(t[2]+t[2],16)+","+k(t[3]+t[3],16)+","+i+")"}function Eh(t,i,s){try{t.style[i]=s}catch(t){return}}var Dh=function(t){function i(i,s,e){var n;return n=t.call(this,i,s,e)||this,i.on("loadstart",Fe(Ve(n),n.toggleDisplay)),i.on("texttrackchange",Fe(Ve(n),n.updateDisplay)),i.ready(Fe(Ve(n),function(){if(i.H&&i.H.featuresNativeTextTracks)this.hide();else{i.on("fullscreenchange",Fe(this,this.updateDisplay));for(var t=this.h.playerOptions.tracks||[],s=0;s<t.length;s++)this.t.addRemoteTextTrack(t[s],!0);var e,n,r={captions:1,subtitles:1},h=this.t.textTracks();if(h){for(var o=0;o<h.length;o++){var a=h[o];a.default&&("descriptions"!==a.kind||e?a.kind in r&&!n&&(n=a):e=a)}n?n.mode="showing":e&&(e.mode="showing")}}})),n}Le(i,t);var s=i.prototype;return s.toggleDisplay=function(){this.t.H&&this.t.H.featuresNativeTextTracks?this.hide():this.show()},s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},s.clearDisplay=function(){"function"==typeof ns.WebVTT&&ns.WebVTT.processCues(ns,[],this.v)},s.updateDisplay=function(){var t=this.t.textTracks();if(this.clearDisplay(),t){for(var i=null,s=null,e=t.length;e--;){var n=t[e];"showing"===n.mode&&("descriptions"===n.kind?i=n:s=n)}s?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):i&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(i))}},s.updateForTrack=function(t){if("function"==typeof ns.WebVTT&&t.activeCues){for(var i=this.t.textTrackSettings.getValues(),s=[],e=0;e<t.activeCues.length;e++)s.push(t.activeCues[e]);ns.WebVTT.processCues(ns,s,this.v);for(var n=s.length;n--;){var r=s[n];if(r){var h=r.displayState;if(i.color&&(h.firstChild.style.color=i.color),i.textOpacity&&Eh(h.firstChild,"color",Ih(i.color||"#fff",i.textOpacity)),i.backgroundColor&&(h.firstChild.style.backgroundColor=i.backgroundColor),i.backgroundOpacity&&Eh(h.firstChild,"backgroundColor",Ih(i.backgroundColor||"#000",i.backgroundOpacity)),i.windowColor&&(i.windowOpacity?Eh(h,"backgroundColor",Ih(i.windowColor,i.windowOpacity)):h.style.backgroundColor=i.windowColor),i.edgeStyle&&("dropshadow"===i.edgeStyle?h.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px "+Mh:"raised"===i.edgeStyle?h.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px "+Mh:"depressed"===i.edgeStyle?h.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px "+Mh:"uniform"===i.edgeStyle&&(h.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px "+Mh)),i.fontPercent&&1!==i.fontPercent){var o=ns.parseFloat(h.style.fontSize);h.style.fontSize=o*i.fontPercent+"px",h.style.height="auto",h.style.top="auto",h.style.bottom="2px"}i.fontFamily&&"default"!==i.fontFamily&&("small-caps"===i.fontFamily?h.firstChild.style.fontVariant="small-caps":h.firstChild.style.fontFamily=Ah[i.fontFamily])}}}},i}(Re);Re.registerComponent("TextTrackDisplay",Dh);var Nh=function(t){function i(){return t.apply(this,arguments)||this}return Le(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},i}(Re);Re.registerComponent("LoadingSpinner",Nh);var Fh=function(t){function i(){return t.apply(this,arguments)||this}Le(i,t);var s=i.prototype;return s.createEl=function(t,i,s){void 0===t&&(t="button"),void 0===i&&(i={}),void 0===s&&(s={}),i=fs({className:this.buildCSSClass()},i),"button"!==t&&(gs.warn("Creating a Button with an HTML element of "+t+" is deprecated; use ClickableComponent instead."),i=fs({tabIndex:0},i),s=fs({role:"button"},s)),s=fs({type:"button","aria-live":"polite"},s);var e=Re.prototype.createEl.call(this,t,i,s);return this.createControlTextEl(e),e},s.addChild=function(t,i){void 0===i&&(i={});var s=this.constructor.name;return gs.warn("Adding an actionable (user controllable) child to a Button ("+s+") is not supported; use a ClickableComponent instead."),Re.prototype.addChild.call(this,t,i)},s.enable=function(){t.prototype.enable.call(this),this.v.removeAttribute("disabled")},s.disable=function(){t.prototype.disable.call(this),this.v.setAttribute("disabled","disabled")},s.handleKeyPress=function(i){32!==i.which&&13!==i.which&&t.prototype.handleKeyPress.call(this,i)},i}(Ch);Re.registerComponent("Button",Fh);var Bh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).Ct=!1,e.on("mousedown",e.handleMouseDown),e}Le(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-big-play-button"},s.handleClick=function(t){var i=this;if(this.Ct&&t.clientX&&t.clientY)this.t.play();else{var s=this.t.getChild("controlBar"),e=s&&s.getChild("playToggle");this.one(this.t,"play",function(){e?e.focus():i.t.focus()}),this.t.play()}},s.handleKeyPress=function(i){this.Ct=!1,t.prototype.handleKeyPress.call(this,i)},s.handleMouseDown=function(t){this.Ct=!0},i}(Fh);Bh.prototype.St="Play Video",Re.registerComponent("BigPlayButton",Bh);var $h=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).controlText(s&&s.controlText||"Close"),e}Le(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},s.handleClick=function(t){this.trigger({type:"close",bubbles:!1})},i}(Fh);Re.registerComponent("CloseButton",$h);var Rh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"play",e.handlePlay),e.on(i,"pause",e.handlePause),e}Le(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},s.handleClick=function(t){this.t.paused()?this.t.play():this.t.pause()},s.handlePlay=function(t){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},s.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},i}(Fh);function Oh(t,i){void 0===i&&(i=t),t=t<0?0:t;var s=w.floor(t%60),e=w.floor(t/60%60),n=w.floor(t/3600),r=w.floor(i/60%60),h=w.floor(i/3600);return(j(t)||t===1/0)&&(n=e=s="-"),(n=n>0||h>0?n+":":"")+(e=((n||r>=10)&&e<10?"0"+e:e)+":")+(s=s<10?"0"+s:s)}Rh.prototype.St="Play",Re.registerComponent("PlayToggle",Rh);var Vh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"timeupdate",e.updateContent),e.on(i,"languagechange",e.updateContent),e}Le(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.S=Cs("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>0:00'},{"aria-live":"off"}),i.appendChild(this.S),i},s.updateContent=function(t){var i=this.t.scrubbing()?this.t.getCache().currentTime:this.t.currentTime(),s=this.localize("Current Time"),e=Oh(i,this.t.duration());e!==this.Pt&&(this.Pt=e,this.S.innerHTML='<span class="vjs-control-text">'+s+"</span> "+e)},i}(Re);Re.registerComponent("CurrentTimeDisplay",Vh);var Uh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"durationchange",e.updateContent),e.on(i,"timeupdate",e.updateContent),e.on(i,"loadedmetadata",e.updateContent),e.on(i,"languagechange",e.updateContent),e}Le(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.S=Cs("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"</span> 0:00"},{"aria-live":"off"}),i.appendChild(this.S),i},s.updateContent=function(t){var i=this.t.duration();if(i&&this.ct!==i){this.ct=i;var s=this.localize("Duration Time"),e=Oh(i);this.S.innerHTML='<span class="vjs-control-text">'+s+"</span> "+e}},i}(Re);Re.registerComponent("DurationDisplay",Uh);var Lh=function(t){function i(){return t.apply(this,arguments)||this}return Le(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},i}(Re);Re.registerComponent("TimeDivider",Lh);var Hh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"timeupdate",e.updateContent),e.on(i,"durationchange",e.updateContent),e.on(i,"languagechange",e.updateContent),e}Le(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.S=Cs("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"</span> -0:00"},{"aria-live":"off"}),i.appendChild(this.S),i},s.updateContent=function(t){if(this.t.duration()){var i=this.localize("Remaining Time"),s=Oh(this.t.remainingTime());s!==this.Pt&&(this.Pt=s,this.S.innerHTML='<span class="vjs-control-text">'+i+"</span> -"+s)}},i}(Re);Re.registerComponent("RemainingTimeDisplay",Hh);var zh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).updateShowing(),e.on(e.player(),"durationchange",e.updateShowing),e.on(e.player(),"languagechange",e.handleLanguagechange),e}Le(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.S=Cs("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.xt=Cs("span",{className:"vjs-control-text",innerHTML:this.localize("Stream Type")}),this.Mt=rs.createTextNode(this.localize("LIVE")),this.S.appendChild(this.xt),this.S.appendChild(this.Mt),i.appendChild(this.S),i},s.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},s.handleLanguagechange=function(){this.xt.innerHTML=this.localize("Stream Type"),this.Mt.innerHTML=this.localize("LIVE")},i}(Re);Re.registerComponent("LiveDisplay",zh);var Wh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).bar=e.getChild(e.h.barName),e.vertical(!!e.h.vertical),e.on("mousedown",e.handleMouseDown),e.on("touchstart",e.handleMouseDown),e.on("focus",e.handleFocus),e.on("blur",e.handleBlur),e.on("click",e.handleClick),e.on(i,"controlsvisible",e.update),e.on(i,e.playerEvent,e.update),e}Le(i,t);var s=i.prototype;return s.createEl=function(i,s,e){return void 0===s&&(s={}),void 0===e&&(e={}),s.className=s.className+" vjs-slider",s=fs({tabIndex:0},s),e=fs({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},e),t.prototype.createEl.call(this,i,s,e)},s.handleMouseDown=function(t){var i=this.bar.v.ownerDocument;t.preventDefault(),rs.body.focus(),rs.onselectstart=function(){return!1},this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(i,"mousemove",this.handleMouseMove),this.on(i,"mouseup",this.handleMouseUp),this.on(i,"touchmove",this.handleMouseMove),this.on(i,"touchend",this.handleMouseUp),this.handleMouseMove(t)},s.handleMouseMove=function(t){},s.handleMouseUp=function(){var t=this.bar.v.ownerDocument;rs.onselectstart=function(){return!0},this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.update()},s.update=function(){if(this.v){var t=this.getPercent(),i=this.bar;if(i){("number"!=typeof t||t!=t||t<0||t===1/0)&&(t=0);var s=(100*t).toFixed(2)+"%";this.vertical()?i.el().style.height=s:i.el().style.width=s}}},s.calculateDistance=function(t){var i=zs(this.v,t);return this.vertical()?i.y:i.x},s.handleFocus=function(){this.on(this.bar.v.ownerDocument,"keydown",this.handleKeyPress)},s.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepBack()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepForward())},s.handleBlur=function(){this.off(this.bar.v.ownerDocument,"keydown",this.handleKeyPress)},s.handleClick=function(t){t.stopImmediatePropagation(),t.preventDefault()},s.vertical=function(t){return void 0===t?this.At||!1:(this.At=!!t,this.At?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},i}(Re);function qh(t,i){if(!t||!i)return"";if("function"==typeof ns.getComputedStyle){var s=ns.getComputedStyle(t);return s?s[i]:""}return t.currentStyle[i]||""}Re.registerComponent("Slider",Wh);var Gh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).It=[],e.on(i,"progress",e.update),e.on(i,"languagechange",e.handleLanguagechange),e}Le(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-load-progress"});return this.Et=Cs("span",{innerHTML:this.localize("Loaded")}),this.Dt=rs.createTextNode(": 0%"),this.xt=Cs("span",{className:"vjs-control-text"}),this.xt.appendChild(this.Et),this.xt.appendChild(this.Dt),i.appendChild(this.xt),i},s.update=function(t){var i=this.t.buffered(),s=this.t.duration(),e=this.t.bufferedEnd(),n=this.It,r=function(t,i){var s=t/i||0;return 100*(s>=1?1:s)+"%"};this.v.style.width=r(e,s);for(var h=0;h<i.length;h++){var o=i.start(h),a=i.end(h),u=n[h];u||(u=this.v.appendChild(Cs()),n[h]=u),u.style.left=r(o,e),u.style.width=r(a-o,e)}for(var c=n.length;c>i.length;c--)this.v.removeChild(n[c-1]);n.length=i.length},s.handleLanguagechange=function(){this.Et.innerHTML=this.localize("Loaded")},i}(Re);Re.registerComponent("LoadProgressBar",Gh);var Xh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).updateDataAttr(),e.on(i,"timeupdate",e.updateDataAttr),e.on(i,"languagechange",e.handleLanguagechange),i.ready(Fe(Ve(e),e.updateDataAttr)),s.playerOptions&&s.playerOptions.controlBar&&s.playerOptions.controlBar.progressControl&&s.playerOptions.controlBar.progressControl.keepTooltipsInside&&(e.keepTooltipsInside=s.playerOptions.controlBar.progressControl.keepTooltipsInside),e.keepTooltipsInside&&e.addClass("vjs-keep-tooltips-inside"),e}Le(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"});return this.Nt=Cs("span",{innerHTML:this.localize("Progress")}),this.Ft=rs.createTextNode(": 0%"),this.xt=Cs("span",{className:"vjs-control-text"}),this.xt.appendChild(this.Nt),this.xt.appendChild(this.Ft),i.appendChild(this.xt),i},s.updateDataAttr=function(t){var i=this.t.scrubbing()?this.t.getCache().currentTime:this.t.currentTime();this.v.setAttribute("data-current-time",Oh(i,this.t.duration()))},s.handleLanguagechange=function(){this.Nt.innerHTML=this.localize("Progress")},i}(Re);Re.registerComponent("PlayProgressBar",Xh);var Jh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).updateDataAttr(),e.on(i,"timeupdate",e.updateDataAttr),e.on(i,"languagechange",e.handleLanguagechange),i.ready(Fe(Ve(e),e.updateDataAttr)),e}Le(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar"});return this.tooltip=Cs("div",{className:"vjs-time-tooltip"}),this.Nt=Cs("span",{innerHTML:this.localize("Progress")}),this.Ft=rs.createTextNode(": 0%"),this.xt=Cs("span",{className:"vjs-control-text"}),this.xt.appendChild(this.Nt),this.xt.appendChild(this.Ft),i.appendChild(this.tooltip),i.appendChild(this.xt),i},s.updateDataAttr=function(t){var i=Oh(this.t.scrubbing()?this.t.getCache().currentTime:this.t.currentTime(),this.t.duration());this.v.setAttribute("data-current-time",i),this.tooltip.innerHTML=i},s.handleLanguagechange=function(){this.Nt.innerHTML=this.localize("Progress")},i}(Re);Re.registerComponent("TooltipProgressBar",Jh);var Qh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"timeupdate",e.updateProgress),e.on(i,"ended",e.updateProgress),i.ready(Fe(Ve(e),e.updateProgress)),s.playerOptions&&s.playerOptions.controlBar&&s.playerOptions.controlBar.progressControl&&s.playerOptions.controlBar.progressControl.keepTooltipsInside&&(e.keepTooltipsInside=s.playerOptions.controlBar.progressControl.keepTooltipsInside),e.keepTooltipsInside&&(e.tooltipProgressBar=e.addChild("TooltipProgressBar")),e}Le(i,t);var s=i.prototype;return s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},s.updateProgress=function(t){if(this.updateAriaAttributes(this.v),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.v),this.tooltipProgressBar.v.style.width=this.bar.v.style.width;var i=_(qh(this.player().el(),"width")),s=_(qh(this.tooltipProgressBar.tooltip,"width")),e=this.tooltipProgressBar.el().style;e.maxWidth=w.floor(i-s/2)+"px",e.minWidth=w.ceil(s/2)+"px",e.right="-"+s/2+"px"}},s.updateAriaAttributes=function(t){var i=this.t.scrubbing()?this.t.getCache().currentTime:this.t.currentTime();t.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),t.setAttribute("aria-valuetext",Oh(i,this.t.duration()))},s.getPercent=function(){var t=this.t.currentTime()/this.t.duration();return t>=1?1:t},s.handleMouseDown=function(i){this.t.scrubbing(!0),this.videoWasPlaying=!this.t.paused(),this.t.pause(),t.prototype.handleMouseDown.call(this,i)},s.handleMouseMove=function(t){var i=this.calculateDistance(t)*this.t.duration();i===this.t.duration()&&(i-=.1),this.t.currentTime(i)},s.handleMouseUp=function(i){t.prototype.handleMouseUp.call(this,i),this.t.scrubbing(!1),this.videoWasPlaying&&this.t.play()},s.stepForward=function(){this.t.currentTime(this.t.currentTime()+5)},s.stepBack=function(){this.t.currentTime(this.t.currentTime()-5)},i}(Wh);Qh.prototype.h={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},Qh.prototype.playerEvent="timeupdate",Re.registerComponent("SeekBar",Qh);var Yh=function(t){function i(i,s){var e;return e=t.call(this,i,s)||this,s.playerOptions&&s.playerOptions.controlBar&&s.playerOptions.controlBar.progressControl&&s.playerOptions.controlBar.progressControl.keepTooltipsInside&&(e.keepTooltipsInside=s.playerOptions.controlBar.progressControl.keepTooltipsInside),e.keepTooltipsInside&&(e.tooltip=Cs("div",{className:"vjs-time-tooltip"}),e.el().appendChild(e.tooltip),e.addClass("vjs-keep-tooltips-inside")),e.update(0,0),i.on("ready",function(){e.on(i.controlBar.progressControl.el(),"mousemove",function(t,i){var s=Date.now();return function(){var e=Date.now();e-s>=i&&(t.apply(void 0,arguments),s=e)}}(Fe(Ve(e),e.handleMouseMove),25))}),e}Le(i,t);var s=i.prototype;return s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},s.handleMouseMove=function(t){var i=this.t.duration(),s=this.calculateDistance(t)*i,e=t.pageX-Hs(this.el().parentNode).left;this.update(s,e)},s.update=function(t,i){var s=Oh(t,this.t.duration());if(this.el().style.left=i+"px",this.el().setAttribute("data-current-time",s),this.keepTooltipsInside){var e=i-this.Bt(i)+1,n=_(qh(this.tooltip,"width"))/2;this.tooltip.innerHTML=s,this.tooltip.style.right="-"+(n-e)+"px"}},s.calculateDistance=function(t){return zs(this.el().parentNode,t).x},s.Bt=function(t){if(!this.keepTooltipsInside)return t;var i=_(qh(this.player().el(),"width")),s=_(qh(this.tooltip,"width"))/2,e=t;return t<s?e=w.ceil(s):t>i-s&&(e=w.floor(i-s)),e},i}(Re);Re.registerComponent("MouseTimeDisplay",Yh);var Kh=function(t){function i(){return t.apply(this,arguments)||this}return Le(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},i}(Re);Kh.prototype.h={children:["seekBar"]},Re.registerComponent("ProgressControl",Kh);var Zh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"fullscreenchange",e.handleFullscreenChange),e}Le(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},s.handleFullscreenChange=function(t){this.t.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},s.handleClick=function(t){this.t.isFullscreen()?this.t.exitFullscreen():this.t.requestFullscreen()},i}(Fh);Zh.prototype.St="Fullscreen",Re.registerComponent("FullscreenToggle",Zh);var to=function(t){function i(){return t.apply(this,arguments)||this}return Le(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},i}(Re);Re.registerComponent("VolumeLevel",to);var io=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"volumechange",e.updateARIAAttributes),i.ready(Fe(Ve(e),e.updateARIAAttributes)),e}Le(i,t);var s=i.prototype;return s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},s.handleMouseMove=function(t){this.checkMuted(),this.t.volume(this.calculateDistance(t))},s.checkMuted=function(){this.t.muted()&&this.t.muted(!1)},s.getPercent=function(){return this.t.muted()?0:this.t.volume()},s.stepForward=function(){this.checkMuted(),this.t.volume(this.t.volume()+.1)},s.stepBack=function(){this.checkMuted(),this.t.volume(this.t.volume()-.1)},s.updateARIAAttributes=function(t){var i=(100*this.t.volume()).toFixed(2);this.v.setAttribute("aria-valuenow",i),this.v.setAttribute("aria-valuetext",i+"%")},i}(Wh);io.prototype.h={children:["volumeLevel"],barName:"volumeLevel"},io.prototype.playerEvent="volumechange",Re.registerComponent("VolumeBar",io);var so=function(t){function i(i,s){var e;return e=t.call(this,i,s)||this,i.H&&!1===i.H.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(i,"loadstart",function(){!1===i.H.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),e}return Le(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},i}(Re);so.prototype.h={children:["volumeBar"]},Re.registerComponent("VolumeControl",so);var eo=function(t){function i(){return t.apply(this,arguments)||this}Le(i,t);var s=i.prototype;return s.addItem=function(t){this.addChild(t),t.on("click",Fe(this,function(){this.unlockShowing()}))},s.createEl=function(){var i=this.h.contentElType||"ul";this.S=Cs(i,{className:"vjs-menu-content"});var s=t.prototype.createEl.call(this,"div",{append:this.S,className:"vjs-menu"});return s.appendChild(this.S),Se(s,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),s},i}(Re);Re.registerComponent("Popup",eo);var no=function(t){function i(i,s){var e;return void 0===s&&(s={}),(e=t.call(this,i,s)||this).update(),e}Le(i,t);var s=i.prototype;return s.update=function(){var t=this.createPopup();this.popup&&this.removeChild(this.popup),this.popup=t,this.addChild(t),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},s.createPopup=function(){},s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},s.buildCSSClass=function(){var i="vjs-menu-button";return!0===this.h.inline?i+="-inline":i+="-popup","vjs-menu-button "+i+" "+t.prototype.buildCSSClass.call(this)},i}(Ch);Re.registerComponent("PopupButton",no);var ro=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"volumechange",e.update),i.H&&!1===i.H.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(i,"loadstart",function(){this.update(),!1===i.H.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),e}Le(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},s.handleClick=function(t){this.t.muted(!this.t.muted())},s.update=function(t){var i=this.t.volume(),s=3;this.t.muted()?s=0:i<.33?s=1:i<.67&&(s=2);var e=this.t.muted()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e);for(var n=0;n<4;n++)$s(this.v,"vjs-vol-"+n);Bs(this.v,"vjs-vol-"+s)},i}(Fh);ro.prototype.St="Mute",Re.registerComponent("MuteToggle",ro);var ho=function(t){function i(i,s){var e;function n(){i.H&&!1===i.H.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}return void 0===s&&(s={}),void 0===s.inline&&(s.inline=!0),void 0===s.vertical&&(s.inline?s.vertical=!1:s.vertical=!0),s.volumeBar=s.volumeBar||{},s.volumeBar.vertical=!!s.vertical,(e=t.call(this,i,s)||this).on(i,"volumechange",e.volumeUpdate),e.on(i,"loadstart",e.volumeUpdate),n.call(Ve(e)),e.on(i,"loadstart",n),e.on(e.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),e.on(e.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),e.on(e.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),e.on(e.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")}),e}Le(i,t);var s=i.prototype;return s.buildCSSClass=function(){var i="";return i=this.h.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+t.prototype.buildCSSClass.call(this)+" "+i},s.createPopup=function(){var t=new eo(this.t,{contentElType:"div"}),i=new io(this.t,this.h.volumeBar);return t.addChild(i),this.menuContent=t,this.volumeBar=i,this.attachVolumeBarEvents(),t},s.handleClick=function(i){ro.prototype.handleClick.call(this),t.prototype.handleClick.call(this)},s.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],Fe(this,this.handleMouseDown))},s.handleMouseDown=function(t){this.on(["mousemove","touchmove"],Fe(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.v.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},s.handleMouseUp=function(t){this.off(["mousemove","touchmove"],Fe(this.volumeBar,this.volumeBar.handleMouseMove))},i}(no);ho.prototype.volumeUpdate=ro.prototype.update,ho.prototype.St="Mute",Re.registerComponent("VolumeMenuButton",ho);var oo=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).$t=-1,e.on("keydown",e.handleKeyPress),e}Le(i,t);var s=i.prototype;return s.addItem=function(t){this.addChild(t),t.on("click",Fe(this,function(t){this.unlockShowing()}))},s.createEl=function(){var i=this.h.contentElType||"ul";this.S=Cs(i,{className:"vjs-menu-content"}),this.S.setAttribute("role","menu");var s=t.prototype.createEl.call(this,"div",{append:this.S,className:"vjs-menu"});return s.setAttribute("role","presentation"),s.appendChild(this.S),Se(s,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),s},s.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepForward()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepBack())},s.stepForward=function(){var t=0;void 0!==this.$t&&(t=this.$t+1),this.focus(t)},s.stepBack=function(){var t=0;void 0!==this.$t&&(t=this.$t-1),this.focus(t)},s.focus=function(t){void 0===t&&(t=0);var i=this.children().slice();i.length&&i[0].className&&/vjs-menu-title/.test(i[0].className)&&i.shift(),i.length>0&&(t<0?t=0:t>=i.length&&(t=i.length-1),this.$t=t,i[t].v.focus())},i}(Re);Re.registerComponent("Menu",oo);var ao=function(t){function i(i,s){var e;return void 0===s&&(s={}),(e=t.call(this,i,s)||this).update(),e.Rt=!0,e.v.setAttribute("aria-haspopup","true"),e.v.setAttribute("role","menuitem"),e.on("keydown",e.handleSubmenuKeyPress),e}Le(i,t);var s=i.prototype;return s.update=function(){var t=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=t,this.addChild(t),this.Ot=!1,this.v.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.Vt?this.hide():this.show()},s.createMenu=function(){var t=new oo(this.t);if(this.Vt=0,this.h.title){var i=Cs("li",{className:"vjs-menu-title",innerHTML:Be(this.h.title),tabIndex:-1});this.Vt+=1,t.m.unshift(i),Ms(i,t.contentEl())}if(this.items=this.createItems(),this.items)for(var s=0;s<this.items.length;s++)t.addItem(this.items[s]);return t},s.createItems=function(){},s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},s.buildCSSClass=function(){var i="vjs-menu-button";return!0===this.h.inline?i+="-inline":i+="-popup","vjs-menu-button "+i+" "+t.prototype.buildCSSClass.call(this)},s.handleClick=function(t){this.one(this.menu.contentEl(),"mouseleave",Fe(this,function(t){this.unpressButton(),this.v.blur()})),this.Ot?this.unpressButton():this.pressButton()},s.handleKeyPress=function(i){27===i.which||9===i.which?(this.Ot&&this.unpressButton(),9!==i.which&&i.preventDefault()):38===i.which||40===i.which?this.Ot||(this.pressButton(),i.preventDefault()):t.prototype.handleKeyPress.call(this,i)},s.handleSubmenuKeyPress=function(t){27!==t.which&&9!==t.which||(this.Ot&&this.unpressButton(),9!==t.which&&t.preventDefault())},s.pressButton=function(){this.Rt&&(this.Ot=!0,this.menu.lockShowing(),this.v.setAttribute("aria-expanded","true"),this.menu.focus())},s.unpressButton=function(){this.Rt&&(this.Ot=!1,this.menu.unlockShowing(),this.v.setAttribute("aria-expanded","false"),this.v.focus())},s.disable=function(){return this.Ot=!1,this.menu.unlockShowing(),this.v.setAttribute("aria-expanded","false"),this.Rt=!1,t.prototype.disable.call(this)},s.enable=function(){return this.Rt=!0,t.prototype.enable.call(this)},i}(Ch);Re.registerComponent("MenuButton",ao);var uo=function(t){function i(i,s){var e,n=s.tracks;if((e=t.call(this,i,s)||this).items.length<=1&&e.hide(),!n)return Ve(e);var r=Fe(Ve(e),e.update);return n.addEventListener("removetrack",r),n.addEventListener("addtrack",r),e.t.on("dispose",function(){n.removeEventListener("removetrack",r),n.removeEventListener("addtrack",r)}),e}return Le(i,t),i}(ao);Re.registerComponent("TrackButton",uo);var co=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).selectable=s.selectable,e.selected(s.selected),e.selectable?e.v.setAttribute("role","menuitemcheckbox"):e.v.setAttribute("role","menuitem"),e}Le(i,t);var s=i.prototype;return s.createEl=function(i,s,e){this.nonIconControl=!0;var n=t.prototype.createEl.call(this,"li",fs({className:"vjs-menu-item",tabIndex:-1},s),e);return this.Ut=rs.createTextNode(this.localize(this.h.label)),n.appendChild(this.Ut),n},s.handleClick=function(t){this.selected(!0)},s.selected=function(t){this.selectable&&(t?(this.addClass("vjs-selected"),this.v.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.v.setAttribute("aria-checked","false"),this.controlText("")))},s.handleLanguagechange=function(){t.prototype.handleLanguagechange.call(this),this.Ut.innerHTML=this.localize(this.h.label)},i}(Ch);Re.registerComponent("MenuItem",co);var lo=function(t){function i(i,s){var e,n,r=s.track,h=i.textTracks();if(s.label=r.label||r.language||"Unknown",s.selected=r.default||"showing"===r.mode,(e=t.call(this,i,s)||this).track=r,h){var o=Fe(Ve(e),e.handleTracksChange);i.on(["loadstart","texttrackchange"],o),h.addEventListener("change",o),e.on("dispose",function(){h.removeEventListener("change",o)})}h&&void 0===h.onchange&&e.on(["tap","click"],function(){if("object"!=typeof ns.Event)try{n=new ns.Event("change")}catch(t){}n||(n=rs.createEvent("Event")).initEvent("change",!0,!0),h.dispatchEvent(n)});return e}Le(i,t);var s=i.prototype;return s.handleClick=function(i){var s=this.track.kind,e=this.t.textTracks();if(t.prototype.handleClick.call(this,i),e)for(var n=0;n<e.length;n++){var r=e[n];r.kind===s&&(r===this.track?"showing"!==r.mode&&(r.mode="showing"):"disabled"!==r.mode&&(r.mode="disabled"))}},s.handleTracksChange=function(t){this.selected("showing"===this.track.mode)},i}(co);Re.registerComponent("TextTrackMenuItem",lo);var fo=function(t){function i(i,s){var e;return s.track={player:i,kind:s.kind,label:s.kind+" off",default:!1,mode:"disabled"},s.selectable=!0,(e=t.call(this,i,s)||this).selected(!0),e}return Le(i,t),i.prototype.handleTracksChange=function(t){for(var i=this.player().textTracks(),s=!0,e=0,n=i.length;e<n;e++){var r=i[e];if(r.kind===this.track.kind&&"showing"===r.mode){s=!1;break}}this.selected(s)},i}(lo);Re.registerComponent("OffTextTrackMenuItem",fo);var vo=function(t){function i(i,s){return void 0===s&&(s={}),s.tracks=i.textTracks(),t.call(this,i,s)||this}return Le(i,t),i.prototype.createItems=function(t){void 0===t&&(t=[]),t.push(new fo(this.t,{kind:this.Lt})),this.Vt+=1;var i=this.t.textTracks();if(!i)return t;for(var s=0;s<i.length;s++){var e=i[s];e.kind===this.Lt&&t.push(new lo(this.t,{track:e,selectable:!0}))}return t},i}(uo);Re.registerComponent("TextTrackButton",vo);var po=function(t){function i(i,s){var e,n=s.track,r=s.cue,h=i.currentTime();return s.selectable=!0,s.label=r.text,s.selected=r.startTime<=h&&h<r.endTime,(e=t.call(this,i,s)||this).track=n,e.cue=r,n.addEventListener("cuechange",Fe(Ve(e),e.update)),e}Le(i,t);var s=i.prototype;return s.handleClick=function(i){t.prototype.handleClick.call(this),this.t.currentTime(this.cue.startTime),this.update(this.cue.startTime)},s.update=function(t){var i=this.cue,s=this.t.currentTime();this.selected(i.startTime<=s&&s<i.endTime)},i}(co);Re.registerComponent("ChaptersTrackMenuItem",po);var mo=function(t){function i(i,s,e){var n;return(n=t.call(this,i,s,e)||this).v.setAttribute("aria-label","Chapters Menu"),n}Le(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},s.update=function(i){this.Ht&&(!i||"addtrack"!==i.type&&"removetrack"!==i.type)||this.setTrack(this.findChaptersTrack()),t.prototype.update.call(this)},s.setTrack=function(t){if(this.Ht!==t){if(this.zt||(this.zt=this.update.bind(this)),this.Ht){var i=this.t.remoteTextTrackEls().Y(this.Ht);i&&i.removeEventListener("load",this.zt),this.Ht=null}if(this.Ht=t,this.Ht){this.Ht.mode="hidden";var s=this.t.remoteTextTrackEls().Y(this.Ht);s&&s.addEventListener("load",this.zt)}}},s.findChaptersTrack=function(){for(var t=this.t.textTracks()||[],i=t.length-1;i>=0;i--){var s=t[i];if(s.kind===this.Lt)return s}},s.getMenuCaption=function(){return this.Ht&&this.Ht.label?this.Ht.label:this.localize(Be(this.Lt))},s.createMenu=function(){return this.h.title=this.getMenuCaption(),t.prototype.createMenu.call(this)},s.createItems=function(){var t=[];if(!this.Ht)return t;var i=this.Ht.cues;if(!i)return t;for(var s=0,e=i.length;s<e;s++){var n=i[s],r=new po(this.t,{track:this.Ht,cue:n});t.push(r)}return t},i}(vo);mo.prototype.Lt="chapters",mo.prototype.St="Chapters",Re.registerComponent("ChaptersButton",mo);var go=function(t){function i(i,s,e){var n;(n=t.call(this,i,s,e)||this).v.setAttribute("aria-label","Descriptions Menu");var r=i.textTracks();if(r){var h=Fe(Ve(n),n.handleTracksChange);r.addEventListener("change",h),n.on("dispose",function(){r.removeEventListener("change",h)})}return n}Le(i,t);var s=i.prototype;return s.handleTracksChange=function(t){for(var i=this.player().textTracks(),s=!1,e=0,n=i.length;e<n;e++){var r=i[e];if(r.kind!==this.Lt&&"showing"===r.mode){s=!0;break}}s?this.disable():this.enable()},s.buildCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildCSSClass.call(this)},i}(vo);go.prototype.Lt="descriptions",go.prototype.St="Descriptions",Re.registerComponent("DescriptionsButton",go);var yo=function(t){function i(i,s,e){var n;return(n=t.call(this,i,s,e)||this).v.setAttribute("aria-label","Subtitles Menu"),n}return Le(i,t),i.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},i}(vo);yo.prototype.Lt="subtitles",yo.prototype.St="Subtitles",Re.registerComponent("SubtitlesButton",yo);var bo=function(t){function i(i,s){var e;return s.track={player:i,kind:s.kind,label:s.kind+" settings",selectable:!1,default:!1,mode:"disabled"},s.selectable=!1,(e=t.call(this,i,s)||this).addClass("vjs-texttrack-settings"),e.controlText(", opens "+s.kind+" settings dialog"),e}return Le(i,t),i.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").v.focus()},i}(lo);Re.registerComponent("CaptionSettingsMenuItem",bo);var wo=function(t){function i(i,s,e){var n;return(n=t.call(this,i,s,e)||this).v.setAttribute("aria-label","Captions Menu"),n}Le(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},s.createItems=function(){var i=[];return this.player().H&&this.player().H.featuresNativeTextTracks||(i.push(new bo(this.t,{kind:this.Lt})),this.Vt+=1),t.prototype.createItems.call(this,i)},i}(vo);wo.prototype.Lt="captions",wo.prototype.St="Captions",Re.registerComponent("CaptionsButton",wo);var ko=function(t){function i(i,s){var e,n=s.track,r=i.audioTracks();if(s.label=n.label||n.language||"Unknown",s.selected=n.enabled,(e=t.call(this,i,s)||this).track=n,r){var h=Fe(Ve(e),e.handleTracksChange);r.addEventListener("change",h),e.on("dispose",function(){r.removeEventListener("change",h)})}return e}Le(i,t);var s=i.prototype;return s.handleClick=function(i){var s=this.t.audioTracks();if(t.prototype.handleClick.call(this,i),s)for(var e=0;e<s.length;e++){var n=s[e];n.enabled=n===this.track}},s.handleTracksChange=function(t){this.selected(this.track.enabled)},i}(co);Re.registerComponent("AudioTrackMenuItem",ko);var _o=function(t){function i(i,s){var e;return void 0===s&&(s={}),s.tracks=i.audioTracks&&i.audioTracks(),(e=t.call(this,i,s)||this).v.setAttribute("aria-label","Audio Menu"),e}Le(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},s.createItems=function(t){void 0===t&&(t=[]),this.Vt=1;var i=this.t.audioTracks&&this.t.audioTracks();if(!i)return t;for(var s=0;s<i.length;s++){var e=i[s];t.push(new ko(this.t,{track:e,selectable:!0}))}return t},i}(uo);_o.prototype.St="Audio Track",Re.registerComponent("AudioTrackButton",_o);var jo=function(t){function i(i,s){var e,n=s.rate,r=_(n,10);return s.label=n,s.selected=1===r,s.selectable=!0,(e=t.call(this,i,s)||this).label=n,e.rate=r,e.on(i,"ratechange",e.update),e}Le(i,t);var s=i.prototype;return s.handleClick=function(i){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},s.update=function(t){this.selected(this.player().playbackRate()===this.rate)},i}(co);jo.prototype.contentElType="button",Re.registerComponent("PlaybackRateMenuItem",jo);var xo=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).updateVisibility(),e.updateLabel(),e.on(i,"loadstart",e.updateVisibility),e.on(i,"ratechange",e.updateLabel),e}Le(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this);return this.Ut=Cs("div",{className:"vjs-playback-rate-value",innerHTML:1}),i.appendChild(this.Ut),i},s.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},s.createMenu=function(){var t=new oo(this.player()),i=this.playbackRates();if(i)for(var s=i.length-1;s>=0;s--)t.addChild(new jo(this.player(),{rate:i[s]+"x"}));return t},s.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},s.handleClick=function(t){for(var i=this.player().playbackRate(),s=this.playbackRates(),e=s[0],n=0;n<s.length;n++)if(s[n]>i){e=s[n];break}this.player().playbackRate(e)},s.playbackRates=function(){return this.h.playbackRates||this.h.playerOptions&&this.h.playerOptions.playbackRates},s.playbackRateSupported=function(){return this.player().H&&this.player().H.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},s.updateVisibility=function(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},s.updateLabel=function(t){this.playbackRateSupported()&&(this.Ut.innerHTML=this.player().playbackRate()+"x")},i}(ao);xo.prototype.St="Playback Rate",Re.registerComponent("PlaybackRateMenuButton",xo);var So=function(t){function i(){return t.apply(this,arguments)||this}Le(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},i}(Re);Re.registerComponent("Spacer",So);var To=function(t){function i(){return t.apply(this,arguments)||this}Le(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},s.createEl=function(){var i=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return i.innerHTML=" ",i},i}(So);Re.registerComponent("CustomControlSpacer",To);var Co=function(t){function i(){return t.apply(this,arguments)||this}return Le(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},i}(Re);Co.prototype.h={children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]},Re.registerComponent("ControlBar",Co);var Po=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"error",e.open),e}Le(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},s.content=function(){var t=this.player().error();return t?this.localize(t.message):""},i}(on);Po.prototype.h=$e(on.prototype.h,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Re.registerComponent("ErrorDisplay",Po);var Mo="vjs-text-track-settings",Ao=["#000","Black"],Io=["#00F","Blue"],Eo=["#0FF","Cyan"],Do=["#0F0","Green"],No=["#F0F","Magenta"],Fo=["#F00","Red"],Bo=["#FFF","White"],$o=["#FF0","Yellow"],Ro=["1","Opaque"],Oo=["0.5","Semi-Transparent"],Vo=["0","Transparent"],Uo={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Ao,Bo,Fo,Do,Io,$o,No,Eo]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Ro,Oo,Vo]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Bo,Ao,Fo,Do,Io,$o,No,Eo]},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(t){return"1.00"===t?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Ro,Oo]},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:[Vo,Oo,Ro]}};function Lo(t,i){if(i&&(t=i(t)),t&&"none"!==t)return t}Uo.windowColor.options=Uo.backgroundColor.options;var Ho,zo=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).setDefaults(),e.hide(),e.updateDisplay=Fe(Ve(e),e.updateDisplay),void 0===s.persistTextTrackSettings&&(e.h.persistTextTrackSettings=e.h.playerOptions.persistTextTrackSettings),e.on(e.$(".vjs-done-button"),"click",function(){e.saveSettings(),e.hide()}),e.on(e.$(".vjs-default-button"),"click",function(){e.setDefaults(),e.updateDisplay()}),ds(Uo,function(t){e.on(e.$(t.selector),"change",e.updateDisplay)}),e.h.persistTextTrackSettings&&e.restoreSettings(),e}Le(i,t);var s=i.prototype;return s.Wt=function(t){var i=this,s=Uo[t],e=s.id.replace("%s",this.o);return[Cs("label",{className:"vjs-label",textContent:s.label},{for:e}),Cs("select",{id:e},void 0,s.options.map(function(t){return Cs("option",{textContent:i.localize(t[1]),value:t[0]})}))]},s.qt=function(){var t=Cs("legend",{textContent:this.localize("Text")}),i=this.Wt("color"),s=Cs("span",{className:"vjs-text-opacity vjs-opacity"},void 0,this.Wt("textOpacity"));return Cs("fieldset",{className:"vjs-fg-color vjs-tracksetting"},void 0,[t].concat(i,s))},s.Gt=function(){var t=Cs("legend",{textContent:this.localize("Background")}),i=this.Wt("backgroundColor"),s=Cs("span",{className:"vjs-bg-opacity vjs-opacity"},void 0,this.Wt("backgroundOpacity"));return Cs("fieldset",{className:"vjs-bg-color vjs-tracksetting"},void 0,[t].concat(i,s))},s.Xt=function(){var t=Cs("legend",{textContent:this.localize("Window")}),i=this.Wt("windowColor"),s=Cs("span",{className:"vjs-window-opacity vjs-opacity"},void 0,this.Wt("windowOpacity"));return Cs("fieldset",{className:"vjs-window-color vjs-tracksetting"},void 0,[t].concat(i,s))},s.Jt=function(){return Cs("div",{className:"vjs-tracksettings-colors"},void 0,[this.qt(),this.Gt(),this.Xt()])},s.Qt=function(){var t=Cs("div",{className:"vjs-font-percent vjs-tracksetting"},void 0,this.Wt("fontPercent")),i=Cs("div",{className:"vjs-edge-style vjs-tracksetting"},void 0,this.Wt("edgeStyle")),s=Cs("div",{className:"vjs-font-family vjs-tracksetting"},void 0,this.Wt("fontFamily"));return Cs("div",{className:"vjs-tracksettings-font"},void 0,[t,i,s])},s.Yt=function(){var t=Cs("button",{className:"vjs-default-button",textContent:this.localize("Defaults")}),i=Cs("button",{className:"vjs-done-button",textContent:"Done"});return Cs("div",{className:"vjs-tracksettings-controls"},void 0,[t,i])},s.createEl=function(){var t=Cs("div",{className:"vjs-tracksettings"},void 0,[this.Jt(),this.Qt(),this.Yt()]),i=Cs("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.o,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"}),s=Cs("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.o,textContent:"Beginning of dialog window. Escape will cancel and close the window."}),e=Cs("div",void 0,{role:"document"},[i,s,t]);return Cs("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":i.id,"aria-describedby":s.id},e)},s.getValues=function(){var t=this;return function(t,i,s){return void 0===s&&(s=0),ls(t).reduce(function(s,e){return i(s,t[e],e)},s)}(Uo,function(i,s,e){var n=function(t,i){return Lo(t.options[t.options.selectedIndex].value,i)}(t.$(s.selector),s.parser);return void 0!==n&&(i[e]=n),i},{})},s.setValues=function(t){var i=this;ds(Uo,function(s,e){!function(t,i,s){if(i)for(var e=0;e<t.options.length;e++)if(Lo(t.options[e].value,s)===i){t.selectedIndex=e;break}}(i.$(s.selector),t[e],s.parser)})},s.setDefaults=function(){var t=this;ds(Uo,function(i){var s=i.hasOwnProperty("default")?i.default:0;t.$(i.selector).selectedIndex=s})},s.restoreSettings=function(){var t;try{t=JSON.parse(ns.localStorage.getItem(Mo))}catch(t){gs.warn(t)}t&&this.setValues(t)},s.saveSettings=function(){if(this.h.persistTextTrackSettings){var t=this.getValues();try{g.keys(t).length?ns.localStorage.setItem(Mo,JSON.stringify(t)):ns.localStorage.removeItem(Mo)}catch(t){gs.warn(t)}}},s.updateDisplay=function(){var t=this.t.getChild("textTrackDisplay");t&&t.updateDisplay()},i}(Re);Re.registerComponent("TextTrackSettings",zo);var Wo,e=function(t){function i(i,s){var e;e=t.call(this,i,s)||this;var n=i.source,r=!1;if(n&&(e.v.currentSrc!==n.src||i.tag&&3===i.tag.Kt)?e.setSource(n):e.Zt(e.v),e.v.hasChildNodes()){for(var h=e.v.childNodes,o=h.length,a=[];o--;){var u=h[o];"track"===u.nodeName.toLowerCase()&&(e.featuresNativeTextTracks?(e.remoteTextTrackEls().J(u),e.remoteTextTracks().tt(u.track),r||e.v.hasAttribute("crossorigin")||!pn(u.src)||(r=!0)):a.push(u))}for(var c=0;c<a.length;c++)e.v.removeChild(a[c])}return["audio","video"].forEach(function(t){var i=e.el()[t+"Tracks"],s=e[t+"Tracks"](),n=Be(t);e["featuresNative"+n+"Tracks"]&&i&&i.addEventListener&&(e["handle"+n+"ti"]=function(t){s.trigger({type:"change",target:s,currentTarget:s,srcElement:s})},e["handle"+n+"ii"]=function(t){return s.addTrack(t.track)},e["handle"+n+"si"]=function(t){return s.removeTrack(t.track)},i.addEventListener("change",e["handle"+n+"ti"]),i.addEventListener("addtrack",e["handle"+n+"ii"]),i.addEventListener("removetrack",e["handle"+n+"si"]),e["removeOld"+n+"ei"]=function(t){return e.ni(s,i)},e.on("loadstart",e["removeOld"+n+"ei"]))}),e.featuresNativeTextTracks&&(r&&gs.warn(ks(Ho||(Ho=hs(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."])))),e.ri=Fe(Ve(e),e.handleTextTrackChange),e.hi=Fe(Ve(e),e.handleTextTrackAdd),e.oi=Fe(Ve(e),e.handleTextTrackRemove),e.ai()),e.ci(),(ge||ie||ae)&&!0===i.nativeControlsForTouch&&e.setControls(!0),e.di(),e.triggerReady(),e}Le(i,t);var s=i.prototype;return s.dispose=function(){var s=this;["audio","video","text"].forEach(function(t){var i=Be(t),e=s.v[t+"Tracks"];e&&e.removeEventListener&&(e.removeEventListener("change",s["handle"+i+"ti"]),e.removeEventListener("addtrack",s["handle"+i+"ii"]),e.removeEventListener("removetrack",s["handle"+i+"si"])),e&&s.off("loadstart",s["removeOld"+i+"ei"])}),i.disposeMediaElement(this.v),t.prototype.dispose.call(this)},s.ci=function(){var t,i=this.textTracks(),s=function(){t=[];for(var s=0;s<i.length;s++){var e=i[s];"metadata"===e.kind&&t.push({track:e,storedMode:e.mode})}};s(),i.addEventListener("change",s);var e=function s(){for(var e=0;e<t.length;e++){var n=t[e];"disabled"===n.track.mode&&n.track.mode!==n.storedMode&&(n.track.mode=n.storedMode)}i.removeEventListener("change",s)};this.on("webkitbeginfullscreen",function(){i.removeEventListener("change",s),i.removeEventListener("change",e),i.addEventListener("change",e)}),this.on("webkitendfullscreen",function(){i.removeEventListener("change",s),i.addEventListener("change",s),i.removeEventListener("change",e)})},s.createEl=function(){var t=this.h.tag;if(!t||!this.h.playerElIngest&&!this.movingMediaElementInDOM){if(t){var s=t.cloneNode(!0);t.parentNode&&t.parentNode.insertBefore(s,t),i.disposeMediaElement(t),t=s}else{t=rs.createElement("video");var e=$e({},this.h.tag&&Vs(this.h.tag));ge&&!0===this.h.nativeControlsForTouch||delete e.controls,Os(t,fs(e,{id:this.h.techId,class:"vjs-tech"}))}t.playerId=this.h.playerId}void 0!==this.h.preload&&Us(t,"preload",this.h.preload);for(var n=["loop","muted","playsinline","autoplay"],r=n.length-1;r>=0;r--){var h=n[r],o=this.h[h];void 0!==o&&(o?Us(t,h,h):Ls(t,h),t[h]=o)}return t},s.Zt=function(t){if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var i=!1,s=function(){i=!0};this.on("loadstart",s);var e=function(){i||this.trigger("loadstart")};return this.on("loadedmetadata",e),void this.ready(function(){this.off("loadstart",s),this.off("loadedmetadata",e),i||this.trigger("loadstart")})}var n=["loadstart"];n.push("loadedmetadata"),t.readyState>=2&&n.push("loadeddata"),t.readyState>=3&&n.push("canplay"),t.readyState>=4&&n.push("canplaythrough"),this.ready(function(){n.forEach(function(t){this.trigger(t)},this)})}},s.ai=function(){var t=this.el().textTracks;if(t){for(var i=0;i<t.length;i++)this.textTracks().tt(t[i]);t.addEventListener&&(t.addEventListener("change",this.ri),t.addEventListener("addtrack",this.hi),t.addEventListener("removetrack",this.oi)),this.on("loadstart",this.fi)}},s.handleTextTrackChange=function(t){var i=this.textTracks();this.textTracks().trigger({type:"change",target:i,currentTarget:i,srcElement:i})},s.handleTextTrackAdd=function(t){this.textTracks().tt(t.track)},s.handleTextTrackRemove=function(t){this.textTracks().it(t.track)},s.ni=function(t,i){var s=[];if(i){for(var e=0;e<t.length;e++){for(var n=t[e],r=!1,h=0;h<i.length;h++)if(i[h]===n){r=!0;break}r||s.push(n)}for(var o=0;o<s.length;o++){var a=s[o];t.it(a)}}},s.fi=function(t){var i=this.textTracks(),s=this.el().textTracks;this.ni(i,s)},s.play=function(){var t=this.v.play();void 0!==t&&"function"==typeof t.then&&t.then(null,function(t){})},s.setCurrentTime=function(t){try{this.v.currentTime=t}catch(t){gs(t,"Video is not ready. (Video.js)")}},s.duration=function(){var t=this;if(this.v.duration===1/0&&re&&le&&0===this.v.currentTime){return this.on("timeupdate",function i(){t.v.currentTime>0&&(t.v.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",i))}),NaN}return this.v.duration||NaN},s.width=function(){return this.v.offsetWidth},s.height=function(){return this.v.offsetHeight},s.di=function(){var t=this;if("webkitDisplayingFullscreen"in this.v){var i=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},s=function(){"webkitPresentationMode"in this.v&&"picture-in-picture"!==this.v.webkitPresentationMode&&(this.one("webkitendfullscreen",i),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",s),this.on("dispose",function(){t.off("webkitbeginfullscreen",s),t.off("webkitendfullscreen",i)})}},s.supportsFullScreen=function(){if("function"==typeof this.v.webkitEnterFullScreen){var t=ns.navigator&&ns.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},s.enterFullScreen=function(){var t=this.v;t.paused&&t.networkState<=t.HAVE_METADATA?(this.v.play(),this.setTimeout(function(){t.pause(),t.webkitEnterFullScreen()},0)):t.webkitEnterFullScreen()},s.exitFullScreen=function(){this.v.webkitExitFullScreen()},s.src=function(t){if(void 0===t)return this.v.src;this.setSrc(t)},s.reset=function(){i.resetMediaElement(this.v)},s.currentSrc=function(){return this.bt?this.bt.src:this.v.currentSrc},s.setControls=function(t){this.v.controls=!!t},s.addTextTrack=function(i,s,e){return this.featuresNativeTextTracks?this.v.addTextTrack(i,s,e):t.prototype.addTextTrack.call(this,i,s,e)},s.createRemoteTextTrack=function(i){if(!this.featuresNativeTextTracks)return t.prototype.createRemoteTextTrack.call(this,i);var s=rs.createElement("track");return i.kind&&(s.kind=i.kind),i.label&&(s.label=i.label),(i.language||i.srclang)&&(s.srclang=i.language||i.srclang),i.default&&(s.default=i.default),i.id&&(s.id=i.id),i.src&&(s.src=i.src),s},s.addRemoteTextTrack=function(i,s){var e=t.prototype.addRemoteTextTrack.call(this,i,s);return this.featuresNativeTextTracks&&this.el().appendChild(e),e},s.removeRemoteTextTrack=function(i){if(t.prototype.removeRemoteTextTrack.call(this,i),this.featuresNativeTextTracks)for(var s=this.$$("track"),e=s.length;e--;)i!==s[e]&&i!==s[e].track||this.el().removeChild(s[e])},s.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var t={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(t.droppedVideoFrames=this.el().webkitDroppedFrameCount,t.totalVideoFrames=this.el().webkitDecodedFrameCount),ns.performance&&"function"==typeof ns.performance.now?t.creationTime=ns.performance.now():ns.performance&&ns.performance.timing&&"number"==typeof ns.performance.timing.navigationStart&&(t.creationTime=ns.Date.now()-ns.performance.timing.navigationStart),t},i}(Sh);xs()&&(e.TEST_VID=rs.createElement("video"),(Wo=rs.createElement("track")).kind="captions",Wo.srclang="en",Wo.label="English",e.TEST_VID.appendChild(Wo)),e.isSupported=function(){try{e.TEST_VID.volume=.5}catch(t){return!1}return!(!e.TEST_VID||!e.TEST_VID.canPlayType)},e.canControlVolume=function(){try{var t=e.TEST_VID.volume;return e.TEST_VID.volume=t/2+.1,t!==e.TEST_VID.volume}catch(t){return!1}},e.canControlPlaybackRate=function(){if(re&&le&&de<58)return!1;try{var t=e.TEST_VID.playbackRate;return e.TEST_VID.playbackRate=t/2+.1,t!==e.TEST_VID.playbackRate}catch(t){return!1}},e.supportsNativeTextTracks=function(){return me},e.supportsNativeVideoTracks=function(){return!(!e.TEST_VID||!e.TEST_VID.videoTracks)},e.supportsNativeAudioTracks=function(){return!(!e.TEST_VID||!e.TEST_VID.audioTracks)},e.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],e.prototype.featuresVolumeControl=e.canControlVolume(),e.prototype.featuresPlaybackRate=e.canControlPlaybackRate(),e.prototype.movingMediaElementInDOM=!ee,e.prototype.featuresFullscreenResize=!0,e.prototype.featuresProgressEvents=!0,e.prototype.featuresTimeupdateEvents=!0,e.prototype.featuresNativeTextTracks=e.supportsNativeTextTracks(),e.prototype.featuresNativeVideoTracks=e.supportsNativeVideoTracks(),e.prototype.featuresNativeAudioTracks=e.supportsNativeAudioTracks();var qo=e.TEST_VID&&e.TEST_VID.constructor.prototype.canPlayType,Go=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,Xo=/^video\/mp4/i;e.patchCanPlayType=function(){he>=4&&!ue?e.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&Go.test(t)?"maybe":qo.call(this,t)}:oe&&(e.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&Xo.test(t)?"maybe":qo.call(this,t)})},e.unpatchCanPlayType=function(){var t=e.TEST_VID.constructor.prototype.canPlayType;return e.TEST_VID.constructor.prototype.canPlayType=qo,t},e.patchCanPlayType(),e.disposeMediaElement=function(t){if(t){var i=t.nodeName.toLowerCase();if("video"===i||"audio"===i){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}}},e.resetMediaElement=function(t){if(t){for(var i=t.querySelectorAll("source"),s=i.length;s--;)t.removeChild(i[s]);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(t){e.prototype[t]=function(){return this.v[t]||this.v.hasAttribute(t)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(t){e.prototype["set"+Be(t)]=function(i){this.v[t]=i,i?this.v.setAttribute(t,t):this.v.removeAttribute(t)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(t){e.prototype[t]=function(){return this.v[t]}}),["volume","src","poster","preload","playbackRate"].forEach(function(t){e.prototype["set"+Be(t)]=function(i){this.v[t]=i}}),["pause","load"].forEach(function(t){e.prototype[t]=function(){return this.v[t]()}}),Sh.withSourceHandlers(e),e.nativeSourceHandler={},e.nativeSourceHandler.canPlayType=function(t){try{return e.TEST_VID.canPlayType(t)}catch(t){return""}},e.nativeSourceHandler.canHandleSource=function(t,i){if(t.type)return e.nativeSourceHandler.canPlayType(t.type);if(t.src){var s=function(t){if("string"==typeof t){var i=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(i)return i.pop().toLowerCase()}return""}(t.src);return e.nativeSourceHandler.canPlayType("video/"+s)}return""},e.nativeSourceHandler.handleSource=function(t,i,s){i.setSrc(t.src)},e.nativeSourceHandler.dispose=function(){},e.registerSourceHandler(e.nativeSourceHandler),Re.registerComponent("Html5",e),Sh.registerTech("Html5",e);var Jo=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"],Qo=function(t){function i(s,e,n){var r;if(s.id=s.id||["vjs_video",as()].join("_"),(e=fs(i.getTagSettings(s),e)).initChildren=!1,e.createEl=!1,e.reportTouchActivity=!1,!e.language)if("function"==typeof s.closest){var h=s.closest("[lang]");h&&(e.language=h.getAttribute("lang"))}else for(var o=s;o&&1===o.nodeType;){if(Vs(o).hasOwnProperty("lang")){e.language=o.getAttribute("lang");break}o=o.parentNode}if(!(r=t.call(this,null,e,n)||this).h||!r.h.techOrder||!r.h.techOrder.length)throw new v("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(r.tag=s,r.tagAttributes=s&&Vs(s),r.language(r.h.language),e.languages){var a={};g.getOwnPropertyNames(e.languages).forEach(function(t){a[t.toLowerCase()]=e.languages[t]}),r.pi=a}else r.pi=i.prototype.h.languages;r.mi={},r.gi=e.poster||"",r.yi=!!e.controls,s.controls=!1,r.bi=!1,r.v=r.createEl();var u=$e(r.h);if(e.plugins){var c=e.plugins;g.getOwnPropertyNames(c).forEach(function(t){"function"==typeof this[t]?this[t](c[t]):gs.error("Unable to find plugin:",t)},Ve(r))}r.h.playerOptions=u,r.initChildren(),r.isAudio("audio"===s.nodeName.toLowerCase()),r.controls()?r.addClass("vjs-controls-enabled"):r.addClass("vjs-controls-disabled"),r.v.setAttribute("role","region"),r.isAudio()?r.v.setAttribute("aria-label","audio player"):r.v.setAttribute("aria-label","video player"),r.isAudio()&&r.addClass("vjs-audio"),r.wi()&&r.addClass("vjs-no-flex"),ee||r.addClass("vjs-workinghover"),i.players[r.o]=Ve(r);var l="5.20.6-opentelly.14".split(".")[0];return r.addClass("vjs-v"+l),r.userActive(!0),r.reportUserActivity(),r.ki(),r.on("fullscreenchange",r._i),r.on("stageclick",r.ji),r}Le(i,t);var s=i.prototype;return s.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.xi&&this.xi.parentNode&&this.xi.parentNode.removeChild(this.xi),i.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(),t.prototype.dispose.call(this)},s.createEl=function(){var i,s=this.tag,e=this.Si=s.parentNode&&s.parentNode.hasAttribute&&s.parentNode.hasAttribute("data-vjs-player");i=this.v=e?s.parentNode:t.prototype.createEl.call(this,"div"),s.setAttribute("tabindex","-1"),s.removeAttribute("width"),s.removeAttribute("height");var n=Vs(s);if(g.getOwnPropertyNames(n).forEach(function(t){"class"===t?i.className+=" "+n[t]:i.setAttribute(t,n[t])}),s.playerId=s.id,s.id+="Ti",s.className="vjs-tech",s.player=i.player=this,this.addClass("vjs-paused"),!0!==ns.VIDEOJS_NO_DYNAMIC_STYLE){this.xi=De("vjs-styles-dimensions");var r=Js(".vjs-styles-defaults"),h=Js("head");h.insertBefore(this.xi,r?r.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 o=s.getElementsByTagName("a"),a=0;a<o.length;a++){var u=o.item(a);Bs(u,"vjs-hidden"),u.setAttribute("hidden","hidden")}return s.Kt=s.networkState,s.parentNode&&!e&&s.parentNode.insertBefore(i,s),Ms(s,i),this.m.unshift(s),this.v=i,i},s.width=function(t){return this.dimension("width",t)},s.height=function(t){return this.dimension("height",t)},s.dimension=function(t,i){var s="width"===t?"Ci":"Pi";if(void 0===i)return this[s]||0;if(""===i)this[s]=void 0;else{var e=_(i);if(j(e))return gs.error('Improper value "'+i+'" supplied for for '+t),this;this[s]=e}return this.Mi(),this},s.fluid=function(t){if(void 0===t)return!!this.Ai;this.Ai=!!t,t?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.Mi()},s.aspectRatio=function(t){if(void 0===t)return this.Ii;if(!/^\d+\:\d+$/.test(t))throw new v("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.Ii=t,this.fluid(!0),this.Mi()},s.Mi=function(){if(!0!==ns.VIDEOJS_NO_DYNAMIC_STYLE){var t,i,s,e=(void 0!==this.Ii&&"auto"!==this.Ii?this.Ii:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),n=e[1]/e[0];t=void 0!==this.Ci?this.Ci:void 0!==this.Pi?this.Pi/n:this.videoWidth()||300,i=void 0!==this.Pi?this.Pi:t*n,s=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(s),Ne(this.xi,"\n ."+s+" {\n width: "+t+"px;\n height: "+i+"px;\n }\n\n ."+s+".vjs-fluid {\n padding-top: "+100*n+"%;\n }\n ")}else{var r="number"==typeof this.Ci?this.Ci:this.h.width,h="number"==typeof this.Pi?this.Pi:this.h.height,o=this.H&&this.H.el();o&&(r>=0&&(o.width=r),h>=0&&(o.height=h))}},s._t=function(t,i){var s=this;this.H&&this.Ei(),"Html5"!==t&&this.tag&&(Sh.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.Di=t,this.T=!1;var e=fs({source:i,nativeControlsForTouch:this.h.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+t+"Ni",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[t.toLowerCase()]);this.tag&&(e.tag=this.tag),i&&(this.Fi=i.type,i.src===this.mi.src&&this.mi.currentTime>0&&(e.startTime=this.mi.currentTime),this.mi.sources=null,this.mi.source=i,this.mi.src=i.src);var n=Sh.getTech(t);n||(n=Re.getComponent(t)),this.H=new n(e),this.H.ready(Fe(this,this.Bi),!0),rn(this.$i||[],this.H),Jo.forEach(function(t){s.on(s.H,t,s["handleTech"+Be(t)+"_"])}),this.on(this.H,"loadstart",this.Ri),this.on(this.H,"waiting",this.Oi),this.on(this.H,"canplay",this.Vi),this.on(this.H,"canplaythrough",this.Ui),this.on(this.H,"playing",this.Li),this.on(this.H,"ended",this.Hi),this.on(this.H,"seeking",this.zi),this.on(this.H,"seeked",this.Wi),this.on(this.H,"play",this.qi),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.Mi),this.on(this.H,"resize",this.Mi),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"===t&&this.tag||Ms(this.H.el(),this.contentEl()),this.tag&&(this.tag.player=null,this.tag=null)},s.Ei=function(){this.rt=this.videoTracks(),this.nt=this.textTracks(),this.ht=this.audioTracks(),this.$i=nn(this.H),this.T=!1,this.H.dispose(),this.H=!1},s.tech=function(t){if(t&&t.IWillNotUseThisInPlugins)return this.H;var i="\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 ns.alert(i),new v(i)},s.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)},s.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)},s.Bi=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(t){gs("deleting tag.poster throws in some browsers",t)}this.play()}},s.Ri=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"))},s.hasStarted=function(t){return void 0!==t?(this.et!==t&&(this.et=t,t?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.et},s.qi=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},s.Oi=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return t.removeClass("vjs-waiting")})},s.Vi=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},s.Ui=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},s.Li=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},s.zi=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},s.Wi=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},s.Gi=function(){this.h.starttime&&(gs.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.h.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},s.Xi=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},s.Hi=function(){this.addClass("vjs-ended"),this.h.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},s.Ji=function(){this.duration(this.ts("duration"))},s.ns=function(t){0===t.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,t):this.paused()?this.play():this.pause()))},s.cs=function(){this.userActive(!this.userActive())},s.rs=function(){this.userWasActive=this.userActive()},s.hs=function(){this.userWasActive&&this.reportUserActivity()},s.us=function(t){t.cancelable&&t.preventDefault()},s._i=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},s.ji=function(){this.reportUserActivity()},s.Qi=function(t,i){i&&(this.toggleClass("vjs-ios-native-fs",!(!i.nativeIOSFullscreen||!i.isFullscreen)),this.isFullscreen(i.isFullscreen)),this.trigger("fullscreenchange")},s.Yi=function(){var t=this.H.error();this.error(t)},s.Zi=function(){var t=null;arguments.length>1&&(t=arguments[1]),this.trigger("textdata",t)},s.getCache=function(){return this.mi},s.ls=function(t,i){if(this.H&&!this.H.T)this.H.ready(function(){this[t](i)},!0);else try{this.H&&this.H[t](i)}catch(t){throw gs(t),t}},s.ts=function(t){if(this.H&&this.H.T)try{return this.H[t]()}catch(i){throw void 0===this.H[t]?gs("Video.js: "+t+" method not defined for "+this.Di+" playback technology.",i):"TypeError"===i.name?(gs("Video.js: "+t+" unavailable on "+this.Di+" playback technology element.",i),this.H.T=!1):gs(i),i}},s.play=function(){return this.src()||this.currentSrc()?this.ls("play"):this.H.one("loadstart",function(){this.play()}),this},s.pause=function(){return this.ls("pause"),this},s.paused=function(){return!1!==this.ts("paused")},s.scrubbing=function(t){return void 0!==t?(this.bi=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.bi},s.currentTime=function(t){return void 0!==t?(this.ls("setCurrentTime",t),this):(this.mi.currentTime=this.ts("currentTime")||0,this.mi.currentTime)},s.duration=function(t){return void 0===t?void 0!==this.mi.duration?this.mi.duration:NaN:((t=_(t))<0&&(t=1/0),t!==this.mi.duration&&(this.mi.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},s.remainingTime=function(){return this.duration()-this.currentTime()},s.buffered=function(){var t=this.ts("buffered");return t&&t.length||(t=We(0,0)),t},s.bufferedPercent=function(){return qe(this.buffered(),this.duration())},s.bufferedEnd=function(){var t=this.buffered(),i=this.duration(),s=t.end(t.length-1);return s>i&&(s=i),s},s.volume=function(t){var i;return void 0!==t?(i=w.max(0,w.min(1,_(t))),this.mi.volume=i,this.ls("setVolume",i),this):(i=_(this.ts("volume")),j(i)?1:i)},s.muted=function(t){return void 0!==t?(this.ls("setMuted",t),this):this.ts("muted")||!1},s.supportsFullScreen=function(){return this.ts("supportsFullScreen")||!1},s.isFullscreen=function(t){return void 0!==t?(this.ds=!!t,this):!!this.ds},s.requestFullscreen=function(t){var i,s=Ye;return this.isFullscreen(!0),s.requestFullscreen?(Se(rs,s.fullscreenchange,Fe(this,function t(i){this.isFullscreen(rs[s.fullscreenElement]),!1===this.isFullscreen()&&Te(rs,s.fullscreenchange,t),this.trigger("fullscreenchange")})),s.prefixed||(i=this.h.fullscreenOptions,void 0!==t&&(i=t)),this.v[s.requestFullscreen](i)):this.H.supportsFullScreen()?this.ls("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},s.exitFullscreen=function(){var t=Ye;return this.isFullscreen(!1),t.requestFullscreen?rs[t.exitFullscreen]():this.H.supportsFullScreen()?this.ls("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},s.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=rs.documentElement.style.overflow,Se(rs,"keydown",Fe(this,this.fullWindowOnEscKey)),rs.documentElement.style.overflow="hidden",Bs(rs.body,"vjs-full-window"),this.trigger("enterFullWindow")},s.fullWindowOnEscKey=function(t){27===t.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},s.exitFullWindow=function(){this.isFullWindow=!1,Te(rs,"keydown",this.fullWindowOnEscKey),rs.documentElement.style.overflow=this.docOrigOverflow,$s(rs.body,"vjs-full-window"),this.trigger("exitFullWindow")},s.canPlayType=function(t){for(var i,s=0,e=this.h.techOrder;s<e.length;s++){var n=Be(e[s]),r=Sh.getTech(n);if(r||(r=Re.getComponent(n)),r){if(r.isSupported()&&(i=r.canPlayType(t)))return i}else gs.error('The "'+n+'" tech is undefined. Skipped browser support check for that tech.')}return""},s.selectSource=function(t){var i,s=this,e=this.h.techOrder.map(Be).map(function(t){return[t,Sh.getTech(t)||Re.getComponent(t)]}).filter(function(t){var i=t[0],s=t[1];return s?s.isSupported():(gs.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),n=function(t,i,s){var e;return t.some(function(t){return i.some(function(i){if(e=s(t,i))return!0})}),e},r=function(t,i){var e=t[0];if(t[1].canPlaySource(i,s.h[e.toLowerCase()]))return{source:i,tech:e}};return(this.h.sourceOrder?n(t,e,(i=r,function(t,s){return i(s,t)})):n(e,t,r))||!1},s.src=function(t){if(void 0===t)return this.ts("src");var i=Sh.getTech(this.Di);return i||(i=Re.getComponent(this.Di)),Array.isArray(t)?this.fs(t):"string"==typeof t?this.src({src:t}):t instanceof g&&(t.type&&!i.canPlaySource(t,this.h[this.Di.toLowerCase()])?this.fs([t]):(this.mi.sources=null,this.mi.source=t,this.mi.src=t.src,this.Fi=t.type||"",this.ready(function(){i.prototype.hasOwnProperty("setSource")?this.ls("setSource",t):this.ls("src",t.src),"auto"===this.h.preload&&this.load(),this.h.autoplay&&this.play()},!0))),this},s.fs=function(t){var i=this.selectSource(t);i?(i.tech===this.Di?this.src(i.source):this._t(i.tech,i.source),this.mi.sources=t):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.h.notSupportedMessage)})},0),this.triggerReady())},s.load=function(){return this.ls("load"),this},s.reset=function(){return this._t(Be(this.h.techOrder[0]),null),this.ls("reset"),this},s.currentSources=function(){var t=this.currentSource(),i=[];return 0!==g.keys(t).length&&i.push(t),this.mi.sources||i},s.currentSource=function(){var t={},i=this.currentSrc();return i&&(t.src=i),this.mi.source||t},s.currentSrc=function(){return this.ts("currentSrc")||this.mi.src||""},s.currentType=function(){return this.Fi||""},s.preload=function(t){return void 0!==t?(this.ls("setPreload",t),this.h.preload=t,this):this.ts("preload")},s.autoplay=function(t){return void 0!==t?(this.ls("setAutoplay",t),this.h.autoplay=t,this):this.ts("autoplay",t)},s.playsinline=function(t){return void 0!==t?(this.ls("setPlaysinline",t),this.h.playsinline=t,this):this.ts("playsinline")},s.loop=function(t){return void 0!==t?(this.ls("setLoop",t),this.h.loop=t,this):this.ts("loop")},s.poster=function(t){return void 0===t?this.gi:(t||(t=""),this.gi=t,this.ls("setPoster",t),this.trigger("posterchange"),this)},s.Ki=function(){!this.gi&&this.H&&this.H.poster&&(this.gi=this.H.poster()||"",this.trigger("posterchange"))},s.controls=function(t){return void 0!==t?(t=!!t,this.yi!==t&&(this.yi=t,this.usingNativeControls()&&this.ls("setControls",t),t?(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())),this):!!this.yi},s.usingNativeControls=function(t){return void 0!==t?(t=!!t,this.vs!==t&&(this.vs=t,t?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.vs},s.error=function(t){return void 0===t?this.lt||null:null===t?(this.lt=t,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close(),this):(this.lt=new tn(t),this.addClass("vjs-error"),gs.error("(CODE:"+this.lt.code+" "+tn.errorTypes[this.lt.code]+")",this.lt.message,this.lt),this.trigger("error"),this)},s.reportUserActivity=function(t){this.ps=!0},s.userActive=function(t){return void 0!==t?((t=!!t)!==this.gs&&(this.gs=t,t?(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(t){t.stopPropagation(),t.preventDefault()}),this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive"))),this):this.gs},s.ki=function(){var t,i,s,e,n=Fe(this,this.reportUserActivity);this.on("mousedown",function(){n(),this.clearInterval(t),t=this.setInterval(n,250)}),this.on("mousemove",function(t){t.screenX===i&&t.screenY===s||(i=t.screenX,s=t.screenY,n())}),this.on("mouseup",function(i){n(),this.clearInterval(t)}),this.on("keydown",n),this.on("keyup",n),this.setInterval(function(){if(this.ps){this.ps=!1,this.userActive(!0),this.clearTimeout(e);var t=this.h.inactivityTimeout;t>0&&(e=this.setTimeout(function(){this.ps||this.userActive(!1)},t))}},250)},s.playbackRate=function(t){return void 0!==t?(this.ls("setPlaybackRate",t),this):this.H&&this.H.featuresPlaybackRate?this.ts("playbackRate"):1},s.isAudio=function(t){return void 0!==t?(this.ys=!!t,this):!!this.ys},s.videoTracks=function(){return this.H?this.H.videoTracks():(this.rt=this.rt||new kh,this.rt)},s.audioTracks=function(){return this.H?this.H.audioTracks():(this.ht=this.ht||new jh,this.ht)},s.textTracks=function(){if(this.H)return this.H.textTracks()},s.remoteTextTracks=function(){if(this.H)return this.H.remoteTextTracks()},s.remoteTextTrackEls=function(){if(this.H)return this.H.remoteTextTrackEls()},s.addTextTrack=function(t,i,s){if(this.H)return this.H.addTextTrack(t,i,s)},s.addRemoteTextTrack=function(t,i){if(this.H)return this.H.addRemoteTextTrack(t,i)},s.removeRemoteTextTrack=function(t){var i=(void 0===t?{}:t).track,s=void 0===i?arguments[0]:i;if(this.H)return this.H.removeRemoteTextTrack(s)},s.getVideoPlaybackQuality=function(){return this.ts("getVideoPlaybackQuality")},s.videoWidth=function(){return this.H&&this.H.videoWidth&&this.H.videoWidth()||0},s.videoHeight=function(){return this.H&&this.H.videoHeight&&this.H.videoHeight()||0},s.language=function(t){return void 0===t?this.bs:(this.bs!==String(t).toLowerCase()&&(this.bs=String(t).toLowerCase(),void 0!==this.v&&this.trigger("languagechange")),this)},s.languages=function(){return $e(i.prototype.h.languages,this.pi)},s.toJSON=function(){var t=$e(this.h),i=t.tracks;t.tracks=[];for(var s=0;s<i.length;s++){var e=i[s];(e=$e(e)).player=void 0,t.tracks[s]=e}return t},s.createModal=function(t,i){var s=this;(i=i||{}).content=t||"";var e=new on(this,i);return this.addChild(e),e.on("dispose",function(){s.removeChild(e)}),e.open()},i.getTagSettings=function(t){var i={sources:[],tracks:[]},s=Vs(t),e=s["data-setup"];if(Fs(t,"vjs-fluid")&&(s.fluid=!0),null!==e){var n=sn(e||"{}"),r=n[0],h=n[1];r&&gs.error(r),fs(s,h)}if(fs(i,s),t.hasChildNodes())for(var o=t.childNodes,a=0,u=o.length;a<u;a++){var c=o[a],l=c.nodeName.toLowerCase();"source"===l?i.sources.push(Vs(c)):"track"===l&&i.tracks.push(Vs(c))}return i},s.wi=function(){var t=rs.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},i}(Re);Qo.players={};var Yo=ns.navigator;Qo.prototype.h={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:Yo&&(Yo.languages&&Yo.languages[0]||Yo.userLanguage||Yo.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",fullscreenOptions:{navigationUI:"hide"}},["ended","seeking","seekable","networkState","readyState"].forEach(function(t){Qo.prototype[t]=function(){return this.ts(t)}}),Jo.forEach(function(t){Qo.prototype["handleTech"+Be(t)+"_"]=function(){return this.trigger(t)}}),Re.registerComponent("Player",Qo);var Ko,Zo,ta=function(t){function i(s){var e;void 0===s&&(s={});var n=$e(s,{kind:cn[s.kind]||""}),r=e=t.call(this,n)||this,h=!1;if(fe)for(var o in i.prototype)"constructor"!==o&&(r[o]=i.prototype[o]);return g.defineProperty(r,"enabled",{get:function(){return h},set:function(t){"boolean"==typeof t&&t!==h&&(h=t,this.trigger("enabledchange"))}}),n.enabled&&(r.enabled=n.enabled),r.q=!0,r||Ve(e)}return Le(i,t),i}(fn),ia=function(t){function i(s){var e;void 0===s&&(s={});var n=$e(s,{kind:un[s.kind]||""}),r=e=t.call(this,n)||this,h=!1;if(fe)for(var o in i.prototype)"constructor"!==o&&(r[o]=i.prototype[o]);return g.defineProperty(r,"selected",{get:function(){return h},set:function(t){"boolean"==typeof t&&t!==h&&(h=t,this.trigger("selectedchange"))}}),n.selected&&(r.selected=n.selected),r||Ve(e)}return Le(i,t),i}(fn);function sa(t,i,s){var e;if("string"==typeof t){if(0===t.indexOf("#")&&(t=t.slice(1)),sa.getPlayers()[t])return i&&gs.warn('Player "'+t+'" is already initialised. Options will not be applied.'),s&&sa.getPlayers()[t].ready(s),sa.getPlayers()[t];e=function(t){return 0===t.indexOf("#")&&(t=t.slice(1)),rs.getElementById(t)}(t)}else e=t;if(!e||!e.nodeName)throw new p("The element or ID supplied is not valid. (videojs)");if(e.player||Qo.players[e.playerId])return e.player||Qo.players[e.playerId];i=i||{},sa.hooks("beforesetup").forEach(function(t){var s=t(e,$e(i));vs(s)&&!Array.isArray(s)?i=$e(i,s):gs.error("please return an object in beforesetup hooks")});var n=new(Re.getComponent("Player"))(e,i,s);return sa.hooks("setup").forEach(function(t){return t(n)}),n}"undefined"==typeof HTMLVideoElement&&xs()&&(rs.createElement("video"),rs.createElement("audio"),rs.createElement("track")),sa.ws={},sa.hooks=function(t,i){return sa.ws[t]=sa.ws[t]||[],i&&(sa.ws[t]=sa.ws[t].concat(i)),sa.ws[t]},sa.hook=function(t,i){sa.hooks(t,i)},sa.removeHook=function(t,i){var s=sa.hooks(t).indexOf(i);return!(s<=-1)&&(sa.ws[t]=sa.ws[t].slice(),sa.ws[t].splice(s,1),!0)},!0!==ns.VIDEOJS_NO_DYNAMIC_STYLE&&xs()&&((Ko=Js(".vjs-styles-defaults"))||(Ko=De("vjs-styles-defaults"),(Zo=Js("head"))&&Zo.insertBefore(Ko,Zo.firstChild),Ne(Ko,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n "))),Ee(1,sa),sa.VERSION="5.20.6-opentelly.14",sa.options=Qo.prototype.h,sa.getPlayers=function(){return Qo.players},sa.players=Qo.players,sa.getComponent=Re.getComponent,sa.registerComponent=function(t,i){Sh.isTech(i)&&gs.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Re.registerComponent.call(Re,t,i)},sa.getTech=Sh.getTech,sa.registerTech=Sh.registerTech,sa.browser=be,sa.TOUCH_ENABLED=ge,sa.extend=function(t,i){void 0===i&&(i={});var s=function(){t.apply(this,arguments)},e={};for(var n in vs(i)?("function"==typeof i.init&&(gs.warn("Constructor logic via init() is deprecated; please use constructor() instead."),i.constructor=i.init),i.constructor!==g.prototype.constructor&&(s=i.constructor),e=i):"function"==typeof i&&(s=i),function(t,i){if("function"!=typeof i&&null!==i)throw new p("Super expression must either be null or a function, not "+typeof i);t.prototype=g.create(i&&i.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i&&(t.ks=i)}(s,t),e)e.hasOwnProperty(n)&&(s.prototype[n]=e[n]);return s},sa.mergeOptions=$e,sa.bind=Fe,sa.plugin=function(t,i){Qo.prototype[t]=i},sa.addLanguage=function(t,i){var s;return t=(""+t).toLowerCase(),sa.options.languages=$e(sa.options.languages,((s={})[t]=i,s)),sa.options.languages[t]},sa.log=gs,sa.createTimeRange=sa.createTimeRanges=We,sa.formatTime=Oh,sa.parseUrl=vn,sa.isCrossOrigin=pn,sa.EventTarget=Oe,sa.on=Se,sa.one=Pe,sa.off=Te,sa.trigger=Ce,sa.xhr=uh,sa.TextTrack=vh,sa.AudioTrack=ta,sa.VideoTrack=ia,sa.isEl=Ss,sa.isTextNode=Ws,sa.createEl=Cs,sa.hasClass=Fs,sa.addClass=Bs,sa.removeClass=$s,sa.toggleClass=Rs,sa.setAttributes=Os,sa.getAttributes=Vs,sa.emptyEl=qs,sa.appendContent=Gs,sa.insertContent=Xs,sa.computedStyle=qh,Vt(),Vt();function ea(t){const i=t.duration;if(j(i)){var s;const i=null==(s=t.source)?void 0:s.streamType;return"live"===i||"dvr"===i}return i===1/0}function na(t){return t.scrubbing()?t.getCache().currentTime:t.currentTime()}function ra(t){const i=aa(t);return ea(t)?i.end(i.length-1):i.start(0)}function ha(t){return aa(t).start(0)}function oa(t){const i=aa(t);return i.end(i.length-1)-i.start(0)}function aa(t){const i=t.seekable;if(i&&i.length)return i;let s=t.duration;return s=isFinite(s)?s:0,new ki([0,s])._s()}function ua(t,i){void 0===i&&(i=t);const s=t<0?"-":"";t=w.abs(t);let e=w.floor(t%60),n=w.floor(t/60%60),r=w.floor(t/3600);const h=w.floor(i/60%60),o=w.floor(i/3600);return(j(t)||t===1/0)&&(r=n=e="-"),r=Number(r)>0||o>0?r+":":"",n=((r||h>=10)&&Number(n)<10?"0"+n:n)+":",e=Number(e)<10?"0"+e:e,s+r+n+e}function ca(t){return class extends t{get js(){var t;return null!==(t=this.xs)&&void 0!==t?t:this.xs=la(this.player())}dispose(){this.xs=void 0,super.dispose()}constructor(...t){super(...t),this.xs=void 0}}}function la(t){return t.tech({IWillNotUseThisInPlugins:!0}).theoplayer()}function da(t){const i=la(t),s=()=>{const s=na(t);t.toggleClass("theo-at-live",function(t,i){if(ea(t)){const s=t.seekable;return 0===s.length||s.end(s.length-1)-i<10}return!1}(i,s)),t.toggleClass("vjs-live",ea(i)),t.toggleClass("theo-dvr",function(t){return"dvr"===F(t.duration,t.seekable,t.source)}(i))};t.on("emptied",s),t.on("timeupdate",s),t.on("durationchange",s)}Vt(),Vt();function fa(t,i,s){t.toggleClass("theo-ad-playing",i),t.toggleClass("theo-dai-ad-playing",i&&s)}function va(){this.userActive(!1)}Vt(),Vt(),Vt();var pa=class{constructor(t,i){this.type=void 0,this.target=void 0,this.playerEvent=void 0,this.type=t.type,this.target=i,this.playerEvent=t}};Vt();var ma=function(t){return t.Ss="unavailable",t.Ts="available",t.Cs="presenting",t}({});Vt(),Vt(),Vt(),Vt();var ga=["loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange","resize"],ya=sa.getTech("Tech"),ba=sa.getTech("Html5"),wa=class extends ya{Ps(){var t;for(const t of ga)this.js.addEventListener(t,this.Ms);this.js.addEventListener("error",this.As),this.js.addEventListener("contentprotectionerror",this.As),this.js.addEventListener("sourcechange",this.Is),this.js.addEventListener("loadstart",this.Es),null==(t=this.js.presentation)||t.addEventListener(jt.MODE_CHANGE,this.Ds),this.js.textTracks.addEventListener("addtrack",this.Ns),this.js.textTracks.addEventListener("removetrack",this.Fs),this.js.textTracks.addEventListener("change",this.Bs),this.js.audioTracks.addEventListener("addtrack",this.$s),this.js.audioTracks.addEventListener("removetrack",this.Rs),this.js.audioTracks.addEventListener("change",this.Os)}Vs(){var t;for(const t of ga)this.js.removeEventListener(t,this.Ms);this.js.removeEventListener("error",this.As),this.js.removeEventListener("contentprotectionerror",this.As),this.js.removeEventListener("sourcechange",this.Is),this.js.removeEventListener("loadstart",this.Es),null==(t=this.js.presentation)||t.removeEventListener(jt.MODE_CHANGE,this.Ds),this.js.textTracks.removeEventListener("addtrack",this.Ns),this.js.textTracks.removeEventListener("removetrack",this.Fs),this.js.textTracks.removeEventListener("change",this.Bs),this.js.audioTracks.removeEventListener("addtrack",this.$s),this.js.audioTracks.removeEventListener("removetrack",this.Rs),this.js.audioTracks.removeEventListener("change",this.Os)}Us(t){this.trigger(new pa(t,this))}createEl(){const t=this.h,i=t.player;if(!i)throw new v(this.localize('Missing required tech option "player"'));const s=i.element;return sa.setAttributes(s,{id:t.techId}),s}theoplayer(){return this.js}addTextTrack(t,i,s){return super.addTextTrack(t,i,s)}buffered(){return this.js.buffered}played(){return this.js.played}reset(){this.js.stop()}play(){this.js.play()}pause(){this.js.pause()}paused(){return this.js.paused}currentTime(){return this.js.currentTime}setCurrentTime(t){this.js.currentTime=t}duration(){return this.js.duration}volume(){return this.js.volume}setVolume(t){this.js.volume=t}muted(){return this.js.muted}setMuted(t){this.js.muted=t}src(t){if(void 0!==t)this.setSrc(t);else{if(this.js.src)return this.js.src;if(this.js.source){if(!q(this.js.source.ads))return this.js.source.ads[0].sources;if(function(t){return!!t.sources&&(Jt(t.sources)?t.sources.some(Ci):Ci(t.sources))}(this.js.source))return"This source is managed by the Uplynk integration extension.";if(function(t){if(t.sources)if(Jt(t.sources)){for(const i of t.sources)if(xi(i))return!0}else if(Kt(t.sources))return xi(t.sources);return!1}(this.js.source))return"This source is managed by the DAI integration extension.";if(Ai(this.js.source))return"This source is managed by Millicast."}}}setSrc(t){return this.setSource({src:t})}setSource(t){this.lt=null,this.trigger("error")}currentSrc(){return this.js.src}load(){this.setPreload("auto")}preload(){return this.js.preload}setPreload(t){this.js.preload=t}autoplay(){return this.js.autoplay}setAutoplay(t){this.js.autoplay=Boolean(t)}seeking(){return this.js.seeking}seekable(){return this.js.seekable}ended(){return this.js.ended}playbackRate(){return this.js.playbackRate}setPlaybackRate(t){this.js.playbackRate=t}readyState(){return this.js.readyState}networkState(){return 0}controls(){return!1}videoHeight(){return this.js.videoHeight}videoWidth(){return this.js.videoWidth}supportsFullScreen(){return this.js.presentation.supportsMode(N.FULLSCREEN)}enterFullScreen(){this.js.presentation.requestMode(N.FULLSCREEN)}exitFullScreen(){this.js.presentation.requestMode(N.INLINE)}Ls(){const t=this.js.ads;if(t&&t.playing)return!0;const i=this.js.vr;return!(!i||i.state===ma.Ss)}initTextTrackListeners(){return this.on("touchend",t=>{this.Ls()&&(t.preventDefault=()=>{})}),super.initTextTrackListeners()}Zt(){if(!this.src())return;const t=this.readyState();if(0===t){let t=!1;const i=()=>{t=!0};this.on("loadstart",i);const s=()=>{t||this.trigger("loadstart")};return this.on("loadedmetadata",s),void this.ready(()=>{this.off("loadstart",i),this.off("loadedmetadata",s),t||this.trigger("loadstart")})}const i=["loadstart"];i.push("loadedmetadata"),t>=2&&i.push("loadeddata"),t>=3&&i.push("canplay"),t>=4&&i.push("canplaythrough"),this.ready(()=>{for(const t of i)this.trigger(t)})}dispose(){this.Vs(),this.js=null,super.dispose()}static isSupported(){return!0}static canPlayType(){return"maybe"}static canPlaySource(t){return"maybe"}get featuresVolumeControl(){return W}constructor(t={},i){super(t,i),this.js=void 0,this.Ms=t=>this.Us(t),this.Hs=!1,this.Is=()=>{void 0===this.js.errorObject&&(this.Us(new Bi(this.js.currentTime,this.js.readyState)),this.Us(new Wt),this.Us(new Wi(this.js.duration)))},this.Es=()=>{this.Us(new si(this.js.currentTime))},this.Ns=t=>{this.textTracks().tt(t.track)},this.$s=t=>{this.audioTracks().tt(t.track)},this.Fs=t=>{this.textTracks().it(t.track)},this.Rs=t=>{this.audioTracks().it(t.track)},this.Bs=()=>{const t=this.textTracks();t.trigger({type:"change",target:t,currentTarget:t,srcElement:t})},this.Os=()=>{const t=this.audioTracks();t.trigger({type:"change",target:t,currentTarget:t,srcElement:t})},this.Ds=()=>{if(!this.supportsFullScreen())return;const t=this.Hs,i=this.js.presentation.currentMode===N.FULLSCREEN;t!==i&&(this.Hs=i,this.trigger("fullscreenchange",{isFullscreen:i,nativeIOSFullscreen:!0}))},this.As=()=>{const t=this.js.errorObject,i=t&&Tt(t.code)||-1,s=t&&t.message||"An unknown error occurred.";this.error({code:i,message:this.localize(s)})},this.js=this.h.player,this.Ps();const s=!this.paused();s&&this.pause(),t.preload&&this.setPreload(t.preload),t.autoplay&&this.setAutoplay(t.autoplay),t.muted&&this.setMuted(t.muted),t.source?this.setSrc(t.source):this.Zt(),s&&this.ready(()=>this.play()),this.triggerReady()}};wa.prototype.featuresFullscreenResize=ba.prototype.featuresFullscreenResize,wa.prototype.featuresPlaybackRate=ba.prototype.featuresPlaybackRate,wa.prototype.featuresProgressEvents=!0,wa.prototype.featuresTimeupdateEvents=!0,wa.prototype.featuresNativeTextTracks=!0,sa.registerTech("THEOplayer",wa),Vt(),Vt(),Vt(),Vt();var ka=class{constructor(t){this.zs=void 0,this.Ws=t=>{r(this.zs,"theo-mobile-button-hover"),t.stopImmediatePropagation()},this.qs=t=>{di(this.zs,"theo-mobile-button-hover")},this.Gs=t=>{this.zs.blur()},this.zs=t,t.addEventListener("touchstart",this.Ws),t.addEventListener("touchend",this.qs),t.addEventListener("focusin",this.Gs)}};Vt(),Vt(),Vt(),Vt();var _a=sa.getComponent("Menu"),ja=class extends(ca(_a)){get Xs(){return this.player().el()}Js(){r(this.Xs,"theo-menu-opened")}Qs(){di(this.Xs,"theo-menu-opened")}constructor(t,i){super(t,i)}};Vt();var xa=sa.getComponent("MenuItem"),Sa=class extends(ca(xa)){get parentMenu(){return this.Ys}buildCSSClass(){return"theo-menu-item vjs-menu-item"}createEl(){const t=super.createEl("li",{className:this.buildCSSClass(),tabIndex:0},{"aria-live":"off","aria-label":""});return t.innerHTML="",t}handleClick(t){this.Ks||(this.parentMenu.Zs(this),"tap"!==t.type&&"keydown"!==t.type||(this.Ks=!0,this.trigger("click"),this.Ks=!1))}dispose(){Ti.ie.te&&(this.el().removeEventListener("touchstart",this.Ws),this.el().removeEventListener("touchend",this.qs)),super.dispose()}constructor(t,i,s){super(t,X({selectable:!0},i)),this.Ys=void 0,this.Ks=!1,this.Ws=t=>{r(this.el(),"theo-mobile-menu-item-hover"),t.stopImmediatePropagation()},this.qs=t=>{di(this.el(),"theo-mobile-menu-item-hover")},this.Ys=s,Ti.ie.te&&(this.el().addEventListener("touchstart",this.Ws),this.el().addEventListener("touchend",this.qs))}};Vt();var Ta=sa.getComponent("ClickableComponent"),Ca=class extends Ta{get parentMenu(){return this.Ys}get se(){return this.ee}set se(t){this.ee=t,this.el().setAttribute("tabindex",this.se?"0":"-1"),this.ne()}buildCSSClass(){return"theo-primary-background theo-menu-header"}createEl(){const t=super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-live":"off","aria-label":""});return t.innerHTML="",t}handleClick(t){!this.Ks&&this.se&&(this.Ys.re(),"tap"===t.type&&(this.Ks=!0,this.trigger("click"),this.Ks=!1))}ne(){this.se?this.el().setAttribute("aria-label",this.localize("Go back to the previous menu")):this.el().setAttribute("aria-label","")}constructor(t,i,s){super(t,i),this.Ys=void 0,this.Ks=!1,this.ee=!1,this.Ys=s,this.on(t,"languagechange",this.ne)}},Pa=class extends ja{get menuHeader(){return this.he}get menuItems(){return this.children()}addMenuItem(t){t=X({playerOptions:this.h.playerOptions},t);const i=new Sa(this.player(),t,this);return this.addChild(i,void 0,t.index),this.trigger("menuchange"),i}addSubMenuItem(t){t=X({playerOptions:this.h.playerOptions},t);const i=this.oe(this.player(),t);return this.addChild(i,void 0,t.index),this.trigger("menuchange"),i}removeMenuItem(t){this.removeChild(t),this.trigger("menuchange")}buildCSSClass(){return"theo-menu vjs-menu"}Js(){super.Js(),a.removeEventListener("resize",this.ae),a.addEventListener("resize",this.ae),this.show()}ue(){const t=this.ce();if(!t)return;const i=t.getClientRects();Ti.ie.te?this.le(t,i):this.de(t,i)}ce(){var t;return null!==(t=this.contentEl().parentElement)&&void 0!==t?t:void 0}de(t,i){}le(t,i){}Qs(){a.removeEventListener("resize",this.ae),super.Qs(),this.hide(),Ti.ie.te&&(this.el().removeAttribute("style"),this.contentEl().removeAttribute("style"))}createEl(){const t=super.createEl();t.className=this.buildCSSClass();const i=this.contentEl();r(i,"theo-menu-content");const s=new Ca(this.player(),this.h,this);return i.parentNode.insertBefore(s.el(),i),this.he=s,t}Zs(t){}show(){return this.ue(),super.show()}dispose(){this.he&&this.he.dispose(),super.dispose()}constructor(t,i){super(t,i),this.fe=void 0,this.ae=()=>this.ue(),this.fe=this.player().el(),this.hide(),this.on("menuchange",this.ue)}},Ma=class extends Pa{get ve(){return this.pe}set ve(t){this.pe&&this.pe.me(this),this.pe=t,t&&t.ge(this)}ye(t){this.ve.be(t,"replace")}we(t){t.ve.be(this,"restore")}ke(){di(this._e,"vjs-hidden"),this._e.style.opacity="1",super.show()}je(){r(this._e,"vjs-hidden")}Js(){this.ve&&this.ve.Js(),super.Js()}Qs(){this.ve&&this.ve.Qs(),super.Qs(),r(this._e,"vjs-hidden")}ce(){if(this.ve&&this.ve.xe)return this.ve.xe._e}de(t,i){if(i.length>0){const t=i[0].height,s=i[0].width;this.pe.Se.style.height=t+"px",this.pe.Se.style.width=s+"px"}super.de(t,i)}constructor(t,i){super(t,i)}};Vt();var Aa=class{get Se(){return this.zs}get xe(){return this.Te}ge(t){t.je(),this.zs.appendChild(t._e)}me(t){this.zs.removeChild(t._e)}be(t,i){if(t==this.Te)return;const s=this.Te;if(this.Te=t,this.Te.ke(),this.xe.focus(),Ti.ie.te)s.je();else{const t="translateX(100%)",e="translateX(-100%)",n=ft("transform");s._e.style.opacity="0",s._e.style[n]="replace"===i?e:t,this.Te._e.style.opacity="1",this.Te._e.style[n]="",u(()=>{s.je(),s._e.style[n]=""},300)}}Js(){this.Ce(),this.Te.ke(),this.Pe()}Qs(){this.Ce(),this.Te.je(),this.Me.je(),this.Te=this.Me,this.Pe()}Pe(){ut(()=>{di(this.zs,"theo-no-transition"),di(this.Te._e,"theo-no-transition")})}Ce(){r(this.zs,"theo-no-transition"),r(this.Te._e,"theo-no-transition")}constructor(t){this.Te=void 0,this.Me=void 0,this.zs=void 0,this.fe=void 0,this.Me=this.Te=t,this.zs=h.createElement("div"),this.zs.className="theo-tertiary-background theo-menu-animation-container",this.zs.appendChild(this.Me._e),this.fe=this.Te.player().el()}};Vt(),Vt();var Ia=class extends Ma{get _e(){return this.el()}get parentMenu(){return this.Ae}oe(t,i){const s=new Ea(t,i,this);return s.subMenu.ve=this.ve,s}re(){this.Ie()}Zs(t){super.Zs(t),this.Ie()}Ie(){this.parentMenu.we(this)}buildCSSClass(){return"theo-submenu "+(this.Ee?"":"theo-leaf-submenu ")+"theo-menu-content theo-menu-content-animatable "+super.buildCSSClass()}addSubMenuItem(t){this.Ee=!0;const i=super.addSubMenuItem(t);return this.removeClass("theo-leaf-submenu"),i}constructor(t,i,s){super(t,i),this.Ae=void 0,this.Ee=!1,this.Ae=s,this.menuHeader.se=!0}},Ea=class extends Sa{get subMenu(){return this.De}handleClick(t){this.parentMenu.ye(this.subMenu)}constructor(t,i,s){super(t,X({selectable:!1},i),s),this.De=void 0,this.De=new Ia(t,i,s)}},Da=class extends Ma{get menuButton(){return this.Ne}createEl(){const t=sa.createEl("div",{className:this.buildCSSClass()});return this.Fe=super.createEl(),this.Fe.className=super.buildCSSClass(),r(this.Fe,"theo-menu-content-animatable"),t.appendChild(this.Fe),this.ve=new Aa(this),t.appendChild(this.ve.Se),t}buildCSSClass(){return"theo-menu-animatable "+super.buildCSSClass()}oe(t,i){const s=new Ea(t,i,this);return s.subMenu.ve=this.ve,s}de(t,i){super.de(t,i);const s=this.fe.getClientRects(),e=s.length>0?s[0]:void 0,n=_(getComputedStyle(this.el()).fontSize);gi(this.el(),this.Ne.el(),e,n)}get _e(){return this.Fe}re(){this.Ne.closeMenu()}dispose(){this.Be||(this.Be=!0,super.dispose())}constructor(t,i,s){super(t,i),this.Ne=void 0,this.Be=!1,this.Ne=s}};Vt();var Na=class{set $e(t){this.Re.innerHTML=this.Oe.localize(t),this.Ve()&&this.Ue(),wi(this.Oe.el())}get $e(){return this.Re.textContent||""}Ve(){return!oi(this.Re,"vjs-hidden")}Le(){this.Oe.off("mouseover",this.Ue),this.Oe.off("mouseout",this.He),this.Oe.off("dispose",this.ze),ii(this.Re)}constructor(t,i){this.Re=void 0,this.Oe=void 0,this.Ue=()=>{di(this.Re,"vjs-hidden");const t=this.Oe.player().contentEl().getClientRects(),i=t.length>0?t[0]:void 0,s=_(getComputedStyle(this.Re).fontSize);gi(this.Re,this.Oe.el(),i,s)},this.He=()=>{r(this.Re,"vjs-hidden")},this.ze=()=>this.Le(),this.Oe=t,wi(t.el()),ji(t.el()),this.Re=h.createElement("span"),this.Re.innerHTML=this.Oe.localize(i),this.Re.className="theo-button-tooltip vjs-hidden",this.Re.setAttribute("aria-hidden","true"),this.Oe.el().appendChild(this.Re),this.Oe.on("mouseover",this.Ue),this.Oe.on("mouseout",this.He),this.Oe.on("dispose",this.ze)}},Fa=sa.getComponent("Button"),Ba=class extends(ca(Fa)){get We(){const t=this.el().parentElement;return!!t&&null!==t.querySelector(".theo-mobile-menu-background")}get menu(){return this.qe}isMenuOpen(){return this.Ge}openMenu(){this.Xe&&!this.Ge&&(this.qe.Js(),this.el().setAttribute("aria-expanded","true"),this.Ge=!0,this.qe.focus())}closeMenu(){this.Xe&&this.Ge&&(this.qe.Qs(),this.el().setAttribute("aria-expanded","false"),this.Ge=!1)}set minimumMenuItems(t){this.Je=t,this.Qe()}buildCSSClass(){return"theo-controlbar-button vjs-menu-button vjs-menu-button-popup "+super.buildCSSClass()}createEl(t,i,s){return super.createEl("button",{},{"aria-live":"off"})}handleClick(){this.Ge?this.closeMenu():this.openMenu()}enable(){return this.Xe=!0,super.enable()}disable(){return this.closeMenu(),this.Xe=!1,super.disable()}ne(){this.Re.$e=this.controlText()}dispose(){this.player().removeChild(this.qe),this.qe.dispose(),this.Re.Le(),this.js.removeEventListener("seeking",this.Ye),super.dispose()}constructor(t,i){super(t,i),this.qe=void 0,this.Re=void 0,this.Ge=!1,this.Je=1,this.Xe=!0,this.Ke=t=>{const i=this.el().contains(t.target),s=this.qe.el().contains(t.target);let e=!1;var n;Ti.ie.te&&this.We&&(e=(null==(n=this.el().parentElement)?void 0:n.querySelector(".theo-mobile-menu-background"))===t.target);i||s||!this.Ge||(e&&t.preventDefault(),this.closeMenu())},this.Ze=t=>{27===t.which&&(this.closeMenu(),this.focus())},this.Ye=()=>{this.Ge&&this.closeMenu()},this.Qe=()=>{this.qe.menuItems.length>=this.Je?this.show():(this.closeMenu(),this.hide())},this.qe=new Da(t,i,this),this.player().getChild("controlBarMenuContainer").addChild(this.qe),this.Re=new Na(this,this.controlText()),this.el().setAttribute("aria-haspopup","true"),Ti.ie.tn?(this.on(h,"touchend",this.Ke),new ka(this.el())):(this.on(h,"click",this.Ke),this.on(h,"keydown",this.Ze),bt&&this.on(h,bt.sn,this.closeMenu)),this.js.addEventListener("seeking",this.Ye),this.on(this.qe,"menuchange",this.Qe),this.on(t,"languagechange",this.ne),this.Qe()}},$a=sa.getComponent("Component"),Ra=class extends(sa.getComponent("ControlBar")){addMenuButton(t){t=X({playerOptions:this.h.playerOptions},t);const i=new Ba(this.player(),t);return this.addChild(i),i}removeMenuButton(t){this.removeChild(t)}createEl(){const t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-secondary-color vjs-control-bar "+super.buildCSSClass()}constructor(t,i){super(t,i),this.addChild("THEOControlBarShadow",void 0,0)}};sa.registerComponent("THEOControlBarShadow",class extends $a{createEl(){return super.createEl("div",{className:this.buildCSSClass()})}buildCSSClass(){return"theo-tertiary-color theo-control-bar-shadow"}}),Vt(),Vt();var Oa=sa.getComponent("VolumeBar"),Va=class extends Oa{handleFocus(t){super.handleFocus(t),this.nn.addClass("focus-within")}handleBlur(t){super.handleBlur(t),this.nn.removeClass("focus-within")}constructor(t,i){super(t,i),this.nn=void 0,this.nn=i.rn}};Vt();var Ua=sa.getComponent("VolumeControl"),La=class extends Ua{constructor(t,i){super(t,i),this.hn=void 0,this.hn=new Va(t,{rn:this}),this.addChild(this.hn)}};La.prototype.h=nt(X({},Ua.prototype.h),{children:[]}),sa.registerComponent("VolumeControl",La);var Ha=class extends(ca(Ra)){an(){this.un(this.cn())}ln(){0===this.dn&&(this.dn=u(this.fn,100))}vn(t){"opacity"===t.propertyName&&(0!==this.dn&&(c(this.dn),this.dn=0),this.un(!0))}pn(t){"opacity"===t.propertyName&&(this.cn()||this.un(!1))}cn(){return"0"!==a.getComputedStyle(this.el()).opacity}un(t){this.mn!==t&&(this.mn=t,t?this.gn():this.js.textTrackStyle.marginBottom=void 0)}gn(){const t=this.el().getBoundingClientRect().height;this.js.textTrackStyle.marginBottom!==t&&(this.js.textTrackStyle.marginBottom=t)}dispose(){c(this.dn),this.dn=0,this.bn.yn(lt.wn,this.kn),this.bn._n(),super.dispose()}constructor(t,i){super(t,i),this.bn=void 0,this.mn=!1,this.dn=0,this.fn=()=>{0!==this.dn&&(this.dn=0,this.un(this.cn()))},this.kn=()=>{this.mn&&this.gn()},this.on(t,"ready",this.an),this.on(t,"pause",this.an),this.on(t,"useractive",this.an),this.on(t,"firstplay",this.ln),this.on(t,"play",this.ln),this.on(t,"userinactive",this.ln),this.on("transitionstart",this.vn),this.on("transitionend",this.pn),this.bn=new pt(this.el()),this.bn.jn(lt.wn,this.kn),this.bn.xn(!0)}};Ha.prototype.h=nt(X({},Ra.prototype.h),{children:["progressControl","playToggle","muteToggle","volumeControl","currentTimeDisplay","timeDivider","durationDisplay","liveDisplay","remainingTimeDisplay","customControlSpacer","activeQualityLabel","vrButton","descriptionsButton","subtitlesButton","chromecastButton","airplayButton","multiViewButton","audioTrackButton","SettingsButton","fullscreenToggle"]}),sa.registerComponent("ControlBar",Ha),Vt();var za=class extends Ra{buildCSSClass(){return"theo-top-controlbar "+super.buildCSSClass()}constructor(t,i){super(t,i),t.topControlBar=this}};za.prototype.h=nt(X({},Ra.prototype.h),{children:[]}),sa.registerComponent("TopControlBar",za),Vt();var Wa=sa.getComponent("CurrentTimeDisplay"),qa=class extends(ca(Wa)){updateContent(){const t=na(this.player()),i=this.js,s=ha(i),e=this.localize("Current Time"),n=ua(w.max(0,t-s),oa(i));n!==this.Pt&&(this.Pt=n,this.contentEl().innerHTML='<span class="vjs-control-text">'+e+"</span> "+n)}constructor(t,i){super(t,i),this.on(t,"timeupdate",this.updateContent),this.on(t,"emptied",this.updateContent)}};sa.registerComponent("CurrentTimeDisplay",qa),Vt();var Ga=sa.getComponent("DurationDisplay"),Xa=class extends(ca(Ga)){updateContent(){const t=this.js,i=j(t.duration)?NaN:oa(t),s=t.clip.endTime-t.clip.startTime,e=w.min(i,s)||0;if(this.ct!==e){this.ct=e;const t=this.localize("Duration Time"),i=ua(e);this.S.innerHTML='<span class="vjs-control-text">'+t+"</span> "+i}}dispose(){var t;null==(t=this.js)||t.clip.removeEventListener("change",this.Sn),super.dispose()}constructor(t,i){var s;super(t,i),this.Sn=()=>this.updateContent(),this.off(t,"durationchange",this.updateContent),this.on(t,"durationchange",this.updateContent),this.off(t,"timeupdate",this.updateContent),this.on(t,"timeupdate",this.updateContent),this.off(t,"emptied",this.updateContent),this.on(t,"emptied",this.updateContent),null==(s=this.js)||s.clip.addEventListener("change",this.Sn)}};sa.registerComponent("DurationDisplay",Xa),Vt();var Ja=sa.getComponent("Button"),Qa=class extends(ca(Ja)){buildCSSClass(){return"theo-live-control "+super.buildCSSClass()}createEl(){const t=super.createEl("button",{},{"aria-live":"off"});return this.Tn=sa.createEl("span",{className:"theo-live-control-indicator"}),ni(t,this.Tn),t}createControlTextEl(t){const i=super.createControlTextEl(t);return sa.removeClass(i,"vjs-control-text"),sa.addClass(i,"theo-live-control-text"),i}handleClick(){var t;const i=this.js;if(void 0!==(null==(t=i.hesp)?void 0:t.manifest))i.hesp.goLive();else{const t=this.player();t.currentTime(1/0),t.play()}}Cn(){ea(this.js)?this.show():this.hide()}constructor(t,i){super(t,i),this.controlText("Live"),this.Cn(),this.on(t,"emptied",this.Cn),this.on(t,"durationchange",this.Cn),Ti.ie.tn&&new ka(this.el())}};sa.registerComponent("LiveDisplay",Qa),Vt();var Ya=sa.getComponent("LoadingSpinner");sa.registerComponent("LoadingSpinner",class extends Ya{buildCSSClass(){return"theo-secondary-color vjs-loading-spinner "+super.buildCSSClass()}createEl(){const t=super.createEl();t.className=this.buildCSSClass();const i=sa.createEl("div",{className:"theo-loading-spinner-rotator"}),s=sa.createEl("div",{className:"theo-loading-spinner-circle-left"}),e=sa.createEl("div",{className:"theo-loading-spinner-circle-right"});return i.appendChild(s),i.appendChild(e),t.appendChild(i),t}constructor(t,i){super(t,i)}}),Vt();var Ka=sa.getComponent("LoadProgressBar"),Za=class extends(ca(Ka)){update(){const t=this.js,i=ki.Pn(aa(t)),s=i.Mn(0),e=ki.Pn(t.buffered).An(i),n=i.In(0)-s;let r=e.U&&e.In(e.U-1)||0;r=w.max(0,r-s);const o=this.el(),a=this.En;o.style.width=tu(r,n);for(let t=0;t<e.U;t++){const i=e.Mn(t),n=e.In(t);let u=a[t];u||(u=h.createElement("div"),a.push(u),o.appendChild(u)),u.style.left=tu(i-s,r),u.style.width=tu(n-i,r)}for(let t=a.length;t>e.U;t--)o.removeChild(a[t-1]);a.length=e.U}constructor(t,i){super(t,i),this.En=[],this.on(t,"emptied",this.update)}};function tu(t,i){const s=t/i||0;return 100*(s>=1?1:s)+"%"}sa.registerComponent("LoadProgressBar",Za),Vt();var iu=sa.getComponent("MouseTimeDisplay"),su=class extends(ca(iu)){handleMouseMove(t){const i=t,s=this.js,e=ha(s)+this.calculateDistance(i)*oa(s),n=i.pageX-vi(this.el().parentNode).left;this.update(e,n+"px")}handleTouchMove(t){const i=t,s=this.js,e=ha(s)+this.calculateDistance(i)*oa(s),n=i.touches[0].pageX-vi(this.el().parentNode).left;this.update(e,n+"px")}createEl(){const t=super.createEl();return this.Dn=sa.createEl("span",{className:"theo-time-tooltip-text"}),t}update(t,i){this.Nn=t;const s=this.Fn(t);this.el().style.left=i,this.el().setAttribute("data-current-time",s),this.keepTooltipsInside&&(y(this.Dn,s),this.Bn())}Bn(){if(this.keepTooltipsInside&&this.tooltip.offsetParent){const t=this.player().contentEl(),i=t.getClientRects(),s=i.length>0?i[0]:void 0,e=_(getComputedStyle(t).fontSize);gi(this.tooltip,this.el(),s,e)}}Fn(t){const i=this.js,s=t-ra(i);return ua(ea(i)?w.min(s,0):s,oa(i))}dispose(){var t;this.js.removeEventListener("dimensionchange",this.$n),null==(t=this.js.presentation)||t.removeEventListener(jt.MODE_CHANGE,this.$n),super.dispose()}constructor(t,i){var s;(super(t,i),this.Nn=NaN,this.$n=()=>{const t=na(this.player()),i=this.js;let s=(t-ha(i))/oa(i)||0;s=Ui(s,0,1),this.update(t,100*s+"%")},this.keepTooltipsInside&&(sa.addClass(this.tooltip,"theo-secondary-color"),this.tooltip.appendChild(this.Dn)),this.on(t,"ready",()=>{this.on(t.controlBar.progressControl,"mouseenter",this.handleMouseMove)}),Ht.te)&&(this.on(t,"firstplay",this.$n),this.on(t,"play",this.$n),this.on(t,"seeking",this.$n),this.on(t,"seeked",this.$n),this.on(t,"timeupdate",this.$n),this.js.addEventListener("dimensionchange",this.$n),null==(s=this.js.presentation)||s.addEventListener(jt.MODE_CHANGE,this.$n),this.on(t,"ready",()=>{this.on(t.controlBar.progressControl,"touchstart",this.handleTouchMove),this.on(t.controlBar.progressControl,"touchmove",Ei(t=>this.handleTouchMove(t),25)),this.$n()}))}};sa.registerComponent("MouseTimeDisplay",su),Vt();var eu=sa.getComponent("PlayProgressBar"),nu=class extends(ca(eu)){updateDataAttr(){const t=na(this.player());this.el().setAttribute("data-current-time",this.Fn(t))}Fn(t){const i=this.js;return ua(t-ra(i),oa(i))}createEl(){const t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-primary-color vjs-play-progress vjs-slider-bar "+super.buildCSSClass()}constructor(t,i){super(t,i)}};sa.registerComponent("PlayProgressBar",nu),Vt();var ru=sa.getComponent("RemainingTimeDisplay"),hu=class extends(ca(ru)){updateContent(){const t=this.js,i=oa(t);if(i){const s=aa(t).end(0),e=this.localize("Remaining Time"),n=ua(w.max(0,s-this.player().currentTime()),i);n!==this.Pt&&(this.Pt=n,this.contentEl().innerHTML='<span class="vjs-control-text">'+e+"</span> -"+n)}}constructor(t,i){super(t,i),this.on(t,"timeupdate",this.updateContent),this.on(t,"emptied",this.updateContent)}};sa.registerComponent("RemainingTimeDisplay",hu),Vt(),Vt();var ou=class{get js(){var t;return null!==(t=this.xs)&&void 0!==t?t:this.xs=la(this.Rn)}On(){const t=this.Vn;if(!t)return;const i=this.js;if(0===i.seekable.length)return;const s=t.cues.slice();this.Ln.Un(s);for(let t=0;t<s.length;t++){const e=s[t],n=s[t+1],r=!n||e.endTime!==n.startTime,h=new au(e,i,r);this.Hn.push(h),this.zn.appendChild(h.Se)}}Wn(){this.js.addEventListener("loadedmetadata",this.qn),this.js.addEventListener("loadeddata",this.qn),this.js.addEventListener("sourcechange",this.qn),this.js.addEventListener("durationchange",this.Gn),this.js.clip.addEventListener("change",this.Gn),this.js.textTracks.addEventListener("addtrack",this.Xn),this.js.textTracks.addEventListener("removetrack",this.Jn),this.js.textTracks.addEventListener("change",this.qn)}Qn(){this.js.removeEventListener("loadedmetadata",this.qn),this.js.removeEventListener("loadeddata",this.qn),this.js.removeEventListener("sourcechange",this.qn),this.js.removeEventListener("durationchange",this.Gn),this.js.clip.removeEventListener("change",this.Gn),this.js.textTracks.removeEventListener("addtrack",this.Xn),this.js.textTracks.removeEventListener("removetrack",this.Jn),this.js.textTracks.removeEventListener("change",this.qn)}Yn(){if(!(this.js.readyState<Gt.Kn))for(const t of this.js.textTracks)if(t.kind===S.Zn&&t.mode===At.tr&&t.cues.length>0&&t.readyState!==Pt.ERROR)return t}ir(t){const i=this.Vn;t!==i&&(i&&(this.sr(),i.removeEventListener("cuechange",this.er)),this.Vn=t,t&&(t.addEventListener("cuechange",this.er),this.Gn()))}nr(t){this.Ln.rr(t)}hr(){this.Ln.ke()}ar(){this.Ln.je()}sr(){for(const t of this.Hn)t.Le();this.Ln.ur(),this.Hn=[],this.cr=void 0}Le(){this.Qn(),this.lr.removeEventListener("mousemove",this.dr),this.lr.removeEventListener("mouseenter",this.pr),this.lr.removeEventListener("mouseleave",this.mr),this.ir(void 0),this.Ln.Le(),this.xs=void 0}constructor(t,i){this.Rn=void 0,this.zn=void 0,this.Ln=void 0,this.lr=void 0,this.Vn=void 0,this.Hn=void 0,this.cr=void 0,this.xs=void 0,this.qn=void 0,this.Xn=void 0,this.Jn=void 0,this.dr=void 0,this.mr=void 0,this.pr=void 0,this.Gn=void 0,this.er=void 0,this.Rn=i,this.Hn=[],this.xs=void 0,this.qn=()=>{this.ir(this.Yn())},this.Xn=t=>{const i=t.track;i.kind===S.Zn&&(i.addEventListener("addcue",this.qn),i.addEventListener("removecue",this.qn),i.addEventListener("readystatechange",this.qn)),this.qn()},this.Jn=t=>{const i=t.track;i.kind===S.Zn&&(i.removeEventListener("addcue",this.qn),i.removeEventListener("removecue",this.qn),i.removeEventListener("readystatechange",this.qn)),this.qn()},this.dr=t=>{const i=this.js,s=function(t,i){const s=vi(t),e=t.offsetWidth,n=t.offsetHeight,r=s.top,h=s.left;let o,a;!function(t){return void 0!==t.changedTouches}(i)?(a=i.pageX,o=i.pageY):(a=i.changedTouches[0].pageX,o=i.changedTouches[0].pageY);const u=Ui((r-o+n)/n,0,1),c=Ui((a-h)/e,0,1);return{x:c,y:u}}(this.zn,t);let e=ha(i)+s.x*oa(i);e===i.duration&&(e-=.1),this.nr(e)},this.mr=()=>{this.Ln.je()},this.pr=()=>{this.Ln.ke()},this.Gn=()=>{this.Vn&&(this.sr(),this.On(),this.er())},this.er=()=>{var t,i,s;const e=null==(i=this.Vn)||null==(t=i.activeCues)?void 0:t[0],n=Qi(this.Hn,t=>t.gr===e);n!==this.cr&&(null==(s=this.cr)||s.yr(),this.cr=n,null==n||n.br())},this.lr=t,this.Ln=new uu,this.Rn.contentEl().appendChild(this.Ln.Se),this.zn=h.createElement("div"),r(this.zn,"theoplayer-chapterbar"),this.lr.appendChild(this.zn),this.lr.addEventListener("mousemove",this.dr),this.lr.addEventListener("mouseenter",this.pr),this.lr.addEventListener("mouseleave",this.mr),this.Wn()}},au=class{get Se(){return this.zs}br(){r(this.zs,"theoplayer-chapter-indicator-active")}yr(){di(this.zs,"theoplayer-chapter-indicator-active")}wr(t,i){const s=t.seekable.start(0),e=t.seekable.end(t.seekable.length-1),n=e-s,o=this.gr.startTime,a=this.gr.endTime,u=a>=s&&o<=e,c=Ui(o-s,0,n),l=Ui(a-s,0,n),d=w.max(0,l-c),f=h.createElement("div");r(f,"theoplayer-chapter-indicator");const v=h.createElement("div");r(v,"theoplayer-chapter-indicator-highlight"),f.appendChild(v),i&&r(f,"theoplayer-chapter-indicator-discontinuous");const p=c/n*100,m=d/n*100;return f.style.display=u?"":"none",f.style.width=m+"%",f.style.left=p+"%",f}Le(){ii(this.zs)}constructor(t,i,s){this.gr=void 0,this.zs=void 0,this.gr=t,this.zs=this.wr(i,s)}},uu=class{je(){this.kr--,0===this.kr&&di(this.Se,"theoplayer-chapter-hovering")}Un(t){this._r=t||[],this._r.length>0&&(this.Se.style.display="")}jr(t){y(this.Sr,t.content)}ur(){this._r=[],y(this.Sr,""),this.Se.style.display="none"}ke(){this.kr++,this.kr>0&&r(this.Se,"theoplayer-chapter-hovering")}rr(t){for(const i of this._r)if(cu(i,t)){this.jr(i);break}}Le(){ii(this.Se)}constructor(){this._r=[],this.Se=void 0,this.Sr=void 0,this.kr=0,this.Se=h.createElement("div"),r(this.Se,"theoplayer-chaptertitle"),this.Se.style.display="none",this.Sr=h.createElement("p"),this.Se.appendChild(this.Sr)}};function cu(t,i){return new ki([t.startTime,t.endTime]).Tr(i)}var lu=sa.getComponent("SeekBar"),du=class extends(ca(lu)){updateAriaAttributes(t){const i=na(this.player()),s=this.js;t.setAttribute("aria-valuenow",(100*this.Cr(i)).toFixed(2)),t.setAttribute("aria-valuetext",ua(i-ra(s),oa(s)))}getPercent(){return this.Cr(this.player().currentTime())}handleMouseMove(t){if(this.js&&this.js.ads&&this.js.ads.playing)return;const i=this.js;let s=ha(i)+this.calculateDistance(t)*oa(i);s>=i.duration&&(s=i.duration-.1),this.zn.nr(s),this.player().currentTime(s)}handleMouseDown(t){this.playingStates.push(!this.player().paused()),this.zn.hr(),super.handleMouseDown(t)}handleMouseUp(t){this.videoWasPlaying=Boolean(this.playingStates.pop()),this.zn.ar(),super.handleMouseUp(t)}Cr(t){const i=this.js,s=(t-ha(i))/oa(i);return Ui(s,0,1)}dispose(){this.zn.Le(),A(this.playingStates)}constructor(t,i){super(t,i),this.zn=void 0,this.playingStates=[],this.on(t,"emptied",this.update),this.on(t,"seeking",this.update),this.zn=new ou(this.el(),t)}};sa.registerComponent("SeekBar",du),Vt();var fu=sa.getComponent("ProgressControl");Ti.ie.te&&sa.registerComponent("ProgressControl",class extends fu{createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(t){this.seekBar.handleMouseMove(t)}handleMouseDown(t){null==t.preventDefault||t.preventDefault.call(t),this.seekBar.handleMouseDown(t)}handleMouseUp(t){null==t.preventDefault||t.preventDefault.call(t),this.seekBar.handleMouseUp(t)}constructor(t,i){super(t,i),this.on(this,"touchmove",this.handleMouseMove),this.on("touchstart",this.handleMouseDown),this.on("touchend",this.handleMouseUp),this.seekBar.off(["touchmove","touchstart","touchend"])}}),Vt();var vu=sa.getComponent("TooltipProgressBar"),pu=class extends(ca(vu)){updateDataAttr(){const t=na(this.player()),i=this.Fn(t);this.el().setAttribute("data-current-time",i),this.tooltip.innerHTML=i}Fn(t){const i=this.js;return ua(t-ra(i),oa(i))}createEl(){const t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-primary-color vjs-tooltip-progress-bar vjs-slider-bar "+super.buildCSSClass()}constructor(t,i){super(t,i)}};function mu(t){for(const i of t)if(i.enabled)return i}function gu(t){if(t)return t.label&&""!==t.label?{name:t.label,hd:!1}:{name:yu(t),description:bu(t),hd:!!t.height&&t.height>=720}}function yu(t){return t.height?t.height+"p":t.bandwidth?bu(t):""}function bu(t){return t.bandwidth?t.bandwidth>1e7?(t.bandwidth/1e6).toFixed(0)+"Mbps":t.bandwidth>1e6?(t.bandwidth/1e6).toFixed(1)+"Mbps":(t.bandwidth/1e3).toFixed(0)+"kbps":""}sa.registerComponent("TooltipProgressBar",pu),Vt(),Vt(),Vt(),Vt(),Vt();var wu=class{get Pr(){return this.Mr}set Pr(t){const i=this.Mr;for(let s=i.length-1;s>=0;s--){const e=i[s];C(t,e)||this.Ar(e)}for(const i of t)this.Ir(i);this.Er.ue()}get Dr(){return this.Er.menuItems}Nr(t){const i=this.Dr;if(i)for(const s of i)if(s.Fr===t)return s}Br(t){const i=this.Er.addMenuItem();return i.Fr=t,i.on("click",()=>this.$r(i)),i.el().setAttribute("role","menuitemradio"),i}Rr(t){t.dispose()}Or(t){return!0}Ir(t){if(this.Or(t)){C(this.Mr,t)||this.Mr.push(t);const i=this.Nr(t)||this.Br(t);return this.Vr(i),i}this.Ar(t)}Ar(t){const i=this.Nr(t);i&&(this.Er.removeMenuItem(i),this.Rr(i)),Zi(this.Mr,t)}Le(){const t=[];for(const i of this.Mr)t.push(i);for(const i of t)this.Ar(i);A(t)}constructor(t){this.Er=void 0,this.Mr=[],this.Er=t}},ku=class extends wu{Ur(){return this.Lr=h.createElement("span"),this.Lr.className="theo-settings-control-menu-item-title",y(this.Lr,this.Hr.localize("Quality")),this.Lr}zr(){return this.Wr=h.createElement("span"),this.Wr.className="theo-settings-control-menu-quality-automatic",y(this.Wr,this.Hr.localize("Automatic")),this.Wr}qr(){return this.Gr=h.createElement("span"),y(this.Gr,this.Hr.localize("Automatic")),this.Gr}Xr(){return this.Jr=h.createElement("span"),this.Jr.className="theo-primary-color theo-settings-control-menu-item-hd-label",y(this.Jr,this.Hr.localize("HD")),this.Jr}Qr(){const t=h.createElement("span");t.className="theo-primary-color theo-settings-control-menu-item-value",t.appendChild(this.Wr),t.appendChild(h.createTextNode(" ")),t.appendChild(this.Gr),t.appendChild(h.createTextNode(" ")),t.appendChild(this.Jr),this.Yr.el().appendChild(this.Lr),this.Yr.el().appendChild(t),this.Yr.el().setAttribute("aria-label",this.Hr.localize("Open the video quality settings menu"))}Kr(){const t=this.Zr,i=t&&Pu(t.targetQuality),s=t&&t.activeQuality,e=gu(this.th(i||s))||{name:this.Hr.localize("Automatic")};y(this.Gr,e.name),pi(this.Wr,"vjs-hidden",Boolean(i)),pi(this.Jr,"vjs-hidden",!e.hd)}Vr(t){const i=gu(t.Fr)||{name:this.Hr.localize("Automatic")};let s=i.name;i.hd&&(s+='<span class="theo-primary-color theo-settings-control-menu-item-hd-label">'+this.Hr.localize("HD")+"</span>"),i.description&&(s+='<span class="theo-settings-control-submenu-item-alternate-value">'+i.description+"</span>"),t.el().innerHTML=s,t.el().setAttribute("aria-label",this.Hr.localize("Set video quality to ")+i.name),t.Fr?t.selected(t.Fr===this.ih):t.selected(!this.ih)}$r(t){this.Zr&&(this.Zr.targetQuality=t.Fr&&t.Fr.videoQualities)}th(t,i){const s=i||this.Pr;for(const i of s)if(t&&i&&-1!==i.videoQualities.indexOf(t))return i}Le(){this.xs.videoTracks.removeEventListener(["addtrack","removetrack","change"],this.sh),this.Hr.off("languagechange",this.ne),this.Zr&&(this.Zr.removeEventListener("activequalitychanged",this.eh),this.Zr.removeEventListener("targetqualitychanged",this.nh),this.Zr.removeEventListener("update",this.rh)),super.Le()}constructor(t,i,s){super(t.subMenu),this.Yr=void 0,this.xs=void 0,this.Hr=void 0,this.Zr=void 0,this.ih=void 0,this.Lr=void 0,this.Wr=void 0,this.Gr=void 0,this.Jr=void 0,this.sh=()=>{const t=mu(this.xs.videoTracks);if(t===this.Zr)return;let i=[];if(this.Zr&&(this.Zr.removeEventListener("activequalitychanged",this.eh),this.Zr.removeEventListener("targetqualitychanged",this.nh),this.Zr.removeEventListener("update",this.rh)),this.Zr=t,t){t.addEventListener("activequalitychanged",this.eh),t.addEventListener("targetqualitychanged",this.nh),t.addEventListener("update",this.rh);const s=ju(Tu(t.qualities.filter(t=>t.available)));i=s.length>1?[void 0,...s]:[void 0]}this.Pr=i,this.nh(),this.eh()},this.rh=t=>{const i=t.track;if(i!==this.Zr)return;const s=ju(Tu(i.qualities.filter(t=>t.available))),e=i&&Pu(i.targetQuality);let n;this.ih=this.th(e,s),n=s.length>1?[void 0,...s]:[void 0],this.Pr=n,this.Kr()},this.eh=()=>{this.Ir(void 0),this.Kr()},this.nh=()=>{const t=mu(this.xs.videoTracks),i=t&&Pu(t.targetQuality),s=this.th(i),e=this.ih;s!==e&&(this.ih=s,s&&e||this.Ir(void 0),e&&C(this.Pr,e)&&this.Ir(e),i&&this.Ir(s),this.Kr())},this.ne=()=>{y(this.Er.menuHeader.el(),this.Hr.localize("Quality")),y(this.Lr,this.Hr.localize("Quality")),y(this.Wr,this.Hr.localize("Automatic")),y(this.Gr,this.Hr.localize("Automatic")),y(this.Jr,this.Hr.localize("HD")),this.Yr.el().setAttribute("aria-label",this.Hr.localize("Open the video quality settings menu"));for(const t of this.Dr)this.Vr(t);this.Kr()},this.Yr=t,this.xs=i,this.Hr=s,this.Lr=this.Ur(),this.Wr=this.zr(),this.Gr=this.qr(),this.Jr=this.Xr(),this.Qr(),y(this.Er.menuHeader.el(),this.Hr.localize("Quality")),this.Pr=[void 0],this.xs.videoTracks.addEventListener(["addtrack","removetrack","change"],this.sh),this.Hr.on("languagechange",this.ne),this.sh()}},_u=class{get height(){return this.hh[0].height}get bandwidth(){return this.hh[0].bandwidth}get videoQualities(){return this.hh}get label(){return this.hh[0].label}add(t){this.hh.push(t)}constructor(t){this.hh=void 0,this.hh=t}};function ju(t){const i=[];for(const s of t){const t=s;let e=!1;for(const s of i)if(Cu(s,t)){s.add(t),e=!0;break}e||i.push(new _u([t]))}return i}function xu(t,i){return t&&i?Gi(t,i):zi.oh}function Su(t,i){return t===i?zi.oh:xu(t.height,i.height)||xu(t.width,i.width)||xu(t.bandwidth,i.bandwidth)}function Tu(t){return Ri(t,Su).reverse()}function Cu(t,i){return t.label&&i.label&&t.label===i.label||yt(gu(t),gu(i))}function Pu(t){return Jt(t)?1===t.length?t[0]:void 0:t}function Mu(t){return 1===t?"Normal":""+w.round(100*t)/100}Vt();var Au=class extends wu{Ur(){return this.Lr=h.createElement("span"),this.Lr.className="theo-settings-control-menu-item-title",y(this.Lr,this.Hr.localize("Speed")),this.Lr}Qr(){const t=h.createElement("span");return t.className="theo-primary-color theo-settings-control-menu-item-value",this.Yr.el().appendChild(this.Lr),this.Yr.el().appendChild(t),this.Yr.el().setAttribute("aria-label",this.Hr.localize("Open the video speed settings menu")),t}Br(t){const i=super.Br(t);return this.Vr(i),i}Vr(t){const i=t.Fr,s=this.Hr.localize(Mu(i));y(t.el(),s),t.el().setAttribute("aria-label",this.Hr.localize("Set video speed to ")+s),t.selected(t.Fr===this.xs.playbackRate)}$r(t){this.xs.playbackRate=t.Fr}Le(){this.xs.removeEventListener("ratechange",this.ah),this.Hr.off("languagechange",this.ne),super.Le()}constructor(t,i,s,e){super(t.subMenu),this.Yr=void 0,this.xs=void 0,this.Hr=void 0,this.uh=void 0,this.Lr=void 0,this.dh=void 0,this.ah=()=>{this.uh&&this.Ir(this.uh);const t=this.xs.playbackRate;this.uh=t,y(this.dh,this.Hr.localize(Mu(t))),t&&this.Ir(t)},this.ne=()=>{y(this.Er.menuHeader.el(),this.Hr.localize("Speed")),y(this.Lr,this.Hr.localize("Speed")),this.Yr.el().setAttribute("aria-label",this.Hr.localize("Open the video speed settings menu"));for(const t of this.Dr)this.Vr(t);this.ah()},this.Yr=t,this.xs=i,this.Hr=s,this.Lr=this.Ur(),this.dh=this.Qr(),y(this.Er.menuHeader.el(),this.Hr.localize("Speed")),this.Pr=e,this.xs.addEventListener("ratechange",this.ah),this.Hr.on("languagechange",this.ne),this.ah()}};sa.registerComponent("SettingsButton",class extends Ba{createEl(){const t=super.createEl();return this.fh=sa.createEl("span",{className:"theo-settings-control-label-hd theo-primary-background"}),y(this.fh,this.localize("HD")),t.appendChild(this.fh),t}buildCSSClass(){return"vjs-icon-cog theo-settings-control-button "+super.buildCSSClass()}ne(){super.ne(),y(this.fh,this.localize("HD")),y(this.menu.menuHeader.el(),this.localize("Settings"))}dispose(){this.Zr&&(this.Zr.removeEventListener("activequalitychanged",this.eh),this.Zr=void 0),this.js.videoTracks.removeEventListener(["addtrack","removetrack","change"],this.ph),this.mh.Le(),this.gh.Le(),super.dispose()}constructor(t,i){var s,e;super(t,i),this.yh=void 0,this.mh=void 0,this.bh=void 0,this.gh=void 0,this.Zr=void 0,this.ph=()=>{const t=mu(this.js.videoTracks);t!==this.Zr&&(this.Zr&&this.Zr.removeEventListener("activequalitychanged",this.eh),this.Zr=t,t&&t.addEventListener("activequalitychanged",this.eh),this.eh())},this.eh=()=>{var t;const i=null==(t=this.Zr)?void 0:t.activeQuality,s=Boolean(i&&i.height>=720);this.player().toggleClass("theo-hd",s)},r(this.menu.el(),"theo-settings-control-menu"),y(this.menu.menuHeader.el(),t.localize("Settings")),this.controlText("Settings"),this.Re.$e=this.controlText(),this.yh=this.menu.addSubMenuItem({name:"QualityMenuItem"}),this.mh=new ku(this.yh,this.js,t);const n=null!==(s=null==i||null==(e=i.playerOptions)?void 0:e.playbackRates)&&void 0!==s?s:[];this.bh=this.menu.addSubMenuItem({name:"PlaybackRateMenuItem"}),this.gh=new Au(this.bh,this.js,t,n),this.js.videoTracks.addEventListener(["addtrack","removetrack","change"],this.ph),this.ph()}}),Vt(),Vt(),Vt();var Iu=class extends wu{wh(t){const i=t.label;if(i)return i;const s=t.language;if(s){const t=E(s);if(t)return t.kh}return s||""}_h(){this.Pr=this.jh}Le(){this.jh.removeEventListener("addtrack",this.xh),this.jh.removeEventListener("removetrack",this.Sh),this.jh.removeEventListener("change",this.Th),super.Le()}constructor(t,i){super(t),this.jh=void 0,this.xh=t=>{const i=t.track;this.Ir(i),i.addEventListener("update",this.Ch)},this.Sh=t=>{const i=t.track;this.Ar(i),i.removeEventListener("update",this.Ch)},this.Th=t=>this._h(),this.Ch=()=>{for(const t of this.Pr)this.Ir(t)},this.jh=i,this.jh.addEventListener("addtrack",this.xh),this.jh.addEventListener("removetrack",this.Sh),this.jh.addEventListener("change",this.Th),this._h()}},Eu=class extends Iu{Vr(t){const i=t.Fr,s=this.Hr.localize(this.wh(i));y(t.el(),s),t.el().setAttribute("aria-label",this.Hr.localize("Set the audio language to")+" "+s),t.selected(i.enabled)}$r(t){const i=t.Fr;for(const t of this.js.audioTracks)t!==i&&(t.enabled=!1);i.enabled=!0}Le(){this.Hr.off("languagechange",this.ne),super.Le()}constructor(t,i,s){super(t,i.audioTracks),this.js=void 0,this.Hr=void 0,this.ne=()=>{y(this.Er.menuHeader.el(),this.Hr.localize("Language"));for(const t of this.Dr)this.Vr(t)},this.js=i,this.Hr=s,y(this.Er.menuHeader.el(),this.Hr.localize("Language")),this.Hr.on("languagechange",this.ne)}};sa.registerComponent("audioTrackButton",class extends Ba{buildCSSClass(){return"vjs-icon-audio theo-audio-track-control-button "+super.buildCSSClass()}dispose(){this.Ph.Le(),super.dispose()}constructor(t,i){super(t,i),this.Ph=void 0,this.minimumMenuItems=2,this.Ph=new Eu(this.menu,this.js,t),this.controlText("Language"),this.Re.$e=this.controlText()}}),Vt(),Vt();var Du=class extends Iu{Or(t){return!!super.Or(t)&&(!t.forced&&Rt(t.kind))}Br(t){const i=super.Br(t);r(i.el(),"theo-text-track-menu-item");const s=h.createElement("span");i.Mh=s;const e=h.createElement("div");e.className="theo-text-track-menu-item-toggle",i.Ah=e;const n=t=>this.Ih(t,i);i.Eh=n,e.addEventListener("click",n);const o=h.createElement("div");return o.className="theo-text-track-menu-item-toggle-slider",e.appendChild(o),i.el().appendChild(s),i.el().appendChild(e),i}Vr(t){const i=t,s=i.Fr,e=this.Hr.localize(this.wh(s));y(i.Mh,e),i.el().setAttribute("aria-label",this.Hr.localize("Set the subtitle language to")+" "+e),i.el().setAttribute("role","menuitemcheckbox"),i.selected(s.mode===At.tr)}Rr(t){const i=t;i.Ah.removeEventListener("click",i.Eh),super.Rr(t)}$r(t){const i=t.Fr;for(const t of this.js.textTracks)t!==i&&Ft(t.kind,i.kind)&&(t.mode=At.Dh);i.mode!==At.tr?i.mode=At.tr:i.mode=At.Dh}Ih(t,i){t.stopImmediatePropagation(),this.$r(i)}Le(){this.Hr.off("languagechange",this.ne),super.Le()}constructor(t,i,s){super(t,i.textTracks),this.js=void 0,this.Hr=void 0,this.ne=()=>{y(this.Er.menuHeader.el(),this.Hr.localize("Subtitles"));for(const t of this.Dr)this.Vr(t)},this.js=i,this.Hr=s,y(this.Er.menuHeader.el(),s.localize("Subtitles")),this.Hr.on("languagechange",this.ne)}};sa.registerComponent("subtitlesButton",class extends Ba{buildCSSClass(){return"vjs-icon-subtitles theo-text-track-control-button "+super.buildCSSClass()}dispose(){this.Ph.Le(),super.dispose()}constructor(t,i){super(t,i),this.Ph=void 0,this.Ph=new Du(this.menu,this.js,t),this.controlText("Subtitles"),this.Re.$e=this.controlText()}}),Vt();var Nu=sa.getComponent("playToggle"),Fu=class extends(ca(Nu)){handleClick(t){this.js.muted||this.js.prepareWithUserAction(),super.handleClick(t)}handlePlay(t){super.handlePlay(t),this.controlText("Pause"),this.Re.$e=this.controlText()}handlePause(t){this.js.ended||(super.handlePause(t),this.controlText("Play"),this.Re.$e=this.controlText())}ne(){this.Re.$e=this.controlText()}dispose(){this.Re.Le(),this.js.removeEventListener("ended",this.Nh),super.dispose()}constructor(t,i){super(t,i),this.Re=void 0,this.Nh=()=>{this.controlText("Replay"),this.Re.$e=this.controlText()},this.controlText("Play"),this.Re=new Na(this,this.controlText()),this.js.addEventListener("ended",this.Nh),this.on(t,"languagechange",this.ne),Ti.ie.tn&&new ka(this.el())}};sa.registerComponent("playToggle",Fu),Vt();var Bu=sa.getComponent("fullscreenToggle"),$u=class extends(ca(Bu)){handleClick(t){this.js.prepareWithUserAction(),super.handleClick(t)}handleFullscreenChange(t){super.handleFullscreenChange(t),this.updateContent()}updateContent(){const t=this.player().isFullscreen()?"Exit fullscreen":"Fullscreen";this.controlText(t),this.Re.$e=this.controlText()}dispose(){this.Re.Le(),super.dispose()}constructor(t,i){super(t,i),this.Re=void 0,this.controlText("Fullscreen"),this.Re=new Na(this,this.controlText()),Ti.ie.tn&&new ka(this.el()),this.on(t,"languagechange",this.updateContent)}};sa.registerComponent("fullscreenToggle",$u),Vt();var Ru=sa.getComponent("muteToggle"),Ou=class extends(ca(Ru)){handleClick(t){this.js.muted&&!this.js.paused&&this.js.prepareWithUserAction(),super.handleClick(t)}update(t){super.update(t),this.ne()}ne(){const t=this.player().muted()?"Unmute":"Mute";this.controlText(t),this.Re.$e=this.controlText()}dispose(){this.Re.Le(),super.dispose()}constructor(t,i){super(t,i),this.Re=void 0,this.controlText("Mute"),this.Re=new Na(this,this.controlText()),Ti.ie.tn&&new ka(this.el()),this.on(t,"languagechange",this.ne),L&&(this.removeClass("vjs-hidden"),this.on(t,"loadstart",()=>{this.removeClass("vjs-hidden")}))}};sa.registerComponent("muteToggle",Ou),Vt();var Vu=sa.getComponent("BigPlayButton"),Uu=class extends(ca(Vu)){createEl(){const t=super.createEl(),i=sa.createEl("div",{className:"theo-big-play-button-svg-container"});return i.innerHTML='<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="theo-play-svg-circle" 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>',t.appendChild(i),t}buildCSSClass(){return"theo-primary-color "+super.buildCSSClass()}handleClick(t){this.js.muted||this.js.prepareWithUserAction(),super.handleClick(t),void 0!==this.js.vr&&"unavailable"!==this.js.vr.state&&(this.js.vr.useDeviceMotionControls=!0)}};sa.registerComponent("BigPlayButton",Uu),Vt();var Lu=/^([^#]*)#xywh=(\d+),(\d+),(\d+),(\d+)\s*$/;sa.registerComponent("MouseTimeDisplay",class extends su{Fh(t){const i=t.track;"metadata"===i.kind&&"thumbnails"===i.label&&void 0===this.Bh&&(this.Bh=i,this.$h=i.src?Ti.Rh(i.src).href:void 0,this.Bh.addEventListener(["addcue","removecue"],this.Oh),this.Vh())}Uh(t){t.track===this.Bh&&this.Lh()}createEl(){const t=super.createEl();return this.Hh=sa.createEl("img",{className:"theo-time-tooltip-thumbnail"}),this.zh=sa.createEl("canvas",{className:"theo-time-tooltip-thumbnail"}),t}update(t,i){super.update(t,i),this.keepTooltipsInside&&this.Wh(t)}Wh(t){let i;if(this.Bh&&this.Bh.cues){const s=function(t,i){let s=t[0];for(const e of t)if(e.startTime<=i)s=e;else if(i>=e.endTime)return s;return s}(this.Bh.cues,t);i=s&&s.content}if(i===this.qh)return;if(this.qh=i,sa.toggleClass(this.el(),"theo-time-tooltip-has-thumbnail",Boolean(i)),!i)return void this.Gh();const s=i.match(Lu);if(s){let[,t,i,e,n,r]=s;t=this.Xh(t);const h={Jh:Number(i),Qh:Number(e),Ci:Number(n),Pi:Number(r)};this.Yh(t,h)}else{const t=this.Xh(i);this.Yh(t)}}Vh(){j(this.Nn)||this.Wh(this.Nn)}Xh(t){return this.Bh&&this.$h?Ti.Rh(t,this.$h).href:t}Yh(t,i){this.Hh&&(this.Hh.src!==t?(this.Hh.onload=()=>{this.Kh(i)},this.Hh.src="",this.Hh.src=t):this.Kh(i))}Kh(t){if(!this.zh||!this.Hh)return;const i=this.zh.getContext("2d");i&&(null!=t||(t={Jh:0,Qh:0,Ci:this.Hh.naturalWidth,Pi:this.Hh.naturalHeight}),this.zh.width=t.Ci,this.zh.height=t.Pi,i.drawImage(this.Hh,t.Jh,t.Qh,t.Ci,t.Pi,0,0,t.Ci,t.Pi),this.Zh(this.zh))}Zh(t){this.io||(ni(this.tooltip,t),this.io=t),this.Bn()}Gh(){this.io&&(this.tooltip.removeChild(this.io),this.io=void 0,this.Bn())}Lh(){void 0!==this.Bh&&(this.Bh.removeEventListener(["addcue","removecue"],this.Oh),this.Bh=void 0),this.$h=void 0,this.Gh(),this.qh=void 0}dispose(){this.Lh(),super.dispose()}constructor(t,i){super(t,i),this.io=void 0,this.Bh=void 0,this.$h=void 0,this.so=t=>this.Fh(t),this.eo=t=>this.Uh(t),this.Oh=t=>this.Vh(),this.qh=void 0,this.showThumbnails=()=>{this.io&&this.io.hidden&&(this.io.hidden=!1,this.Bn())},this.hideThumbnails=()=>{!this.io||this.io.hidden||this.player().scrubbing()||(this.io.hidden=!0,this.Bn())},this.on(this.player().textTracks(),"addtrack",this.so),this.on(this.player().textTracks(),"removetrack",this.eo),Ht.te&&(this.on(t,"seeking",this.showThumbnails),this.on(t,"seeked",this.hideThumbnails))}}),Vt();var Hu=sa.getComponent("VolumeLevel");sa.registerComponent("VolumeLevel",class extends Hu{createEl(){const t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-primary-color vjs-volume-level "+super.buildCSSClass()}}),Vt(),Vt();var zu=sa.getComponent("Component"),Wu=class extends zu{createEl(){const t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-menu-container "+super.buildCSSClass()}};Wu.prototype.h=nt(X({},Wu.prototype.h),{children:[]}),sa.registerComponent("controlBarMenuContainer",Wu);var qu=sa.getComponent("Player"),Gu=class extends qu{dispose(){const t=this.el(),i=this.contentEl(),s=t.parentNode,e=t.nextSibling;super.dispose(),ii(i),this.Si&&s&&(e?s.insertBefore(t,e):s.appendChild(t)),h.body.removeEventListener("keydown",this.handleKeyPress),h.body.removeEventListener("click",this.handleClick)}constructor(t,i,s){super(t,i,s),this.handleKeyPress=t=>{9===t.which&&this.addClass("theo-probably-keyboard-focus")},this.handleClick=t=>{0===t.x&&0===t.y||this.removeClass("theo-probably-keyboard-focus")},h.body.addEventListener("keydown",this.handleKeyPress),h.body.addEventListener("click",this.handleClick)}};Gu.prototype.h=nt(X({},qu.prototype.h),{children:["bigPlayButton","AdControlPanel","TopControlBar","mediaLoader","upNextContainer","posterImage","chromecastOverlay","upcomingAdNotificationText","controlBarMenuContainer","controlBar","textTrackDisplay","loadingSpinner","errorDisplay","textTrackSettings","xrCompass"]}),sa.registerComponent("Player",Gu),Vt(),Vt();var Xu=sa.getComponent("Player"),Ju=Xu.prototype.ns;Xu.prototype.ns=function(t){if(!(this.H&&this.H.Ls&&this.H.Ls()))return Ju.call(this,t)};var Qu=Xu.prototype.createEl;function Yu(t,i,s,e){const n=X({controls:!0,playbackRates:[.25,.5,1,1.25,1.5,2]},s);n.controlBar=X({progressControl:{keepTooltipsInside:!0}},n.controlBar);const h=n.techOrder||(n.techOrder=[]);-1===h.indexOf("THEOplayer")&&h.unshift("THEOplayer");(n.theoplayer||(n.theoplayer={})).player=t,s&&Kt(s.language)&&(n.languages=nt(X({},n.languages),{[M]:s.language}),n.language=M),i.setAttribute("data-vjs-player","");const o=i.getAttribute("style"),a=sa(t.element,n,e);return a.ready(()=>{da(a),function(t,i){if(i){const s=i.ads;if(s){const e=i=>{const s="adbreakbegin"===i.type,e=i.adBreak.integration===U.no;fa(t,s,e)};s.addEventListener("adbreakbegin",e),s.addEventListener("adbreakend",e),i.addEventListener("destroy",()=>{s.removeEventListener("adbreakbegin",e),s.removeEventListener("adbreakend",e)})}const e=i.uplynk;if(e){const s=i=>{const s="adbreakbegin"===i.type;fa(t,s,!1)},n=t=>{t.adBreak.addEventListener("adbreakbegin",s),t.adBreak.addEventListener("adbreakend",s)};for(const t of e.ads.adBreaks)t.addEventListener("adbreakbegin",s),t.addEventListener("adbreakend",s);e.ads.adBreaks.addEventListener("addadbreak",n),i.addEventListener("destroy",()=>{for(const t of e.ads.adBreaks)t.removeEventListener("adbreakbegin",s),t.removeEventListener("adbreakend",s);e.ads.adBreaks.removeEventListener("addadbreak",n)})}i.addEventListener("sourcechange",()=>{fa(t,!1,!1)})}}(a,t),function(t){t.on("mouseleave",va)}(a)}),i.removeAttribute("data-vjs-player"),o?i.setAttribute("style",o):i.removeAttribute("style"),Ti.ie.te&&(r(i,"theo-mobile"),Ku(i)),function(t){t.on("seeking",()=>{oi(t.el(),"vjs-ended")&&t.currentTime()!==t.duration()&&t.play()})}(a),a}function Ku(t){a.outerHeight>a.outerWidth?(di(t,"theo-mobile-landscape"),r(t,"theo-mobile-portrait")):(di(t,"theo-mobile-portrait"),r(t,"theo-mobile-landscape"))}Xu.prototype.createEl=function(){const t=Qu.call(this),i=sa.createEl("div");for(i.className="theo-player-wrapper";t.firstChild;)i.appendChild(t.firstChild);return t.appendChild(i),this.S=i,t},Vt(),Vt(),Vt(),Vt();var Zu=sa.getComponent("Button");var tc="THEOPiPCloseButton";sa.registerComponent(tc,class extends Zu{buildCSSClass(){return"theo-close-button theo-pip-close"}handleClick(){this.ho.ro()}constructor(t,i){if(super(t,i),this.ho=void 0,this.controlText("Close Picture-in-Picture"),!function(t){return!!t&&Boolean(t.ho)}(i))throw new v("Invalid Picture-in-picture options.");this.ho=i.ho}});var ic=class extends Q{get oo(){return this.ao}get uo(){return this.t.ds()}co(){this.t.jn(tt.lo,this.do),this.fo||this.t.jn(tt.vo,this.po),this.t.mo.on("languagechange",this.ne)}yo(){var t;return"theo-pip-"+(null!==(t=this.bo)&&void 0!==t?t:"bottom-right")}wo(t){const i=this.ko;i&&!this.uo&&(this._o||this.jo(),this.xo(),r(i,"theo-pip"),r(i,this.yo()),this.ao=!0,this.So=t,this.To=!1,this.Co(new St(N.PICTURE_IN_PICTURE)))}Po(t){const i=this.ko;i&&(this.Mo(),di(i,"theo-pip"),di(i,this.yo()),this.ao=!1,this.To=t,this.Ao=this.So,this.So=!1,this.Co(new St(N.INLINE)))}jo(){if(!this._o){const t=this.t.mo;t.addChild(tc,{ho:this});const i=h.createElement("div");i.className="theo-pip-overlay",this.Io=h.createElement("div"),this.Io.className="theo-pip-overlay-text",y(this.Io,t.localize("Video playing in Picture-in-Picture mode")),i.appendChild(this.Io),ni(t.el(),i),this.Eo=i,this._o=!0}}Do(){this.No&&!this.Fo&&this.t.Bo&&(this.$o=this.t.Bo.Ro(Si,this.Oo),this.Fo=!0)}Vo(){this.$o&&this.t.Bo&&(this.t.Bo.Uo(this.$o),this.Fo=!1)}xo(){const t=this.t.mo.contentEl(),i=t.getBoundingClientRect(),s=h.documentElement.clientWidth,e=h.documentElement.clientHeight;t.style.top=i.top+"px",t.style.bottom=e-i.bottom+"px",t.style.right=s-i.right+"px",t.style.left=i.left+"px",t.style.width=i.width+"px",t.style.height=i.height+"px",t.style.position="fixed"}Mo(){const t=this.t.mo.contentEl();t.style.top="",t.style.bottom="",t.style.right="",t.style.left="",t.style.width="",t.style.height="",t.style.position=""}Lo(){di(this.ko,"theo-pip"),this.oo&&this.bo&&di(this.ko,"theo-pip-"+this.bo),this.Eo&&(ii(this.Eo),this.Eo=void 0)}_n(){this.Lo(),this.Vo(),this.Ho(),this.t.yn(tt.lo,this.do),this.t.yn(tt.vo,this.po),this.t.mo.off("languagechange",this.ne),this.t=void 0}constructor(t,i,s){super(),this.zo=void 0,this.bo=void 0,this.fo=void 0,this.t=void 0,this.ko=void 0,this.Wo=!1,this.ao=!1,this.To=!1,this.So=!1,this._o=!1,this.ro=void 0,this.Fo=!1,this.$o=void 0,this.Eo=void 0,this.Io=void 0,this.Ao=!1,this.No=void 0,this.do=()=>{this.Wo=!0,this.No&&!this.oo&&this.$o&&this.zo&&this.$o.qo<=this.zo&&this.wo(!1)},this.po=()=>{this.fo||(this.Wo=!1,this.ro(),this.Po(!1))},this.ne=()=>{if(this.Io){const t=this.t.mo;y(this.Io,t.localize("Video playing in Picture-in-Picture mode"))}},this.Oo=t=>{!this.So&&this.No&&(j(t)||(this.zo&&t<=this.zo||this.Ao?this.ao||this.To||this.wo(!1):this.ao?this.Po(!1):this.To=!1))},this.zo=i.visibility,this.bo=i.position,this.fo=i.retainPresentationModeOnSourceChange,this.No=void 0!==this.zo,this.t=t,this.ko=t.Go,this.ro=s,this.co()}},sc=class extends Ct{Xo(){const t=super.Xo();return t===N.INLINE&&this.Jo.oo?N.PICTURE_IN_PICTURE:t}Qo(t){return t===N.PICTURE_IN_PICTURE||super.Qo(t)}Yo(t){this.Ko=this.Zo,t===N.FULLSCREEN||t===N.NATIVE_PICTURE_IN_PICTURE?this.Jo.Vo():this.Jo.Do(),super.Yo(t)}ta(t){super.ta(t),t===N.PICTURE_IN_PICTURE?O(this.sa.ia(t=>this.ea(t))):t===N.FULLSCREEN?this.Jo.Po(!1):this.Jo.Po(!0)}async ea(t){D(t),await Promise.all([this.na(),this.ra.Po()]).catch(Mi),D(t),this.Jo.wo(!this.ha),this.Co(new St(this.Zo)),this.ha=!1,this.oa=!1}_i(){this.oa||(this.Jo.oo&&this.aa.ds?this.Yo(N.FULLSCREEN):this.Ko!==N.PICTURE_IN_PICTURE||this.aa.ds?super._i():(this.ha=!0,this.Yo(N.PICTURE_IN_PICTURE)))}_n(){super._n(),this.Jo._n(),this.ua.yn(tt.lo,this.ca),this.ua=void 0}constructor(t,i,s,e){super(i,s),this.ua=void 0,this.Jo=void 0,this.Ko=N.INLINE,this.ha=!1,this.ro=()=>{this.Zo===N.PICTURE_IN_PICTURE&&this.Yo(N.INLINE)},this.la=t=>{this.oa||(this.Zo!==N.PICTURE_IN_PICTURE||this.Jo.oo?this.Zo!==N.PICTURE_IN_PICTURE&&this.Jo.oo&&(this.ha=!0,this.Yo(N.PICTURE_IN_PICTURE)):this.Yo(N.INLINE))},this.ca=()=>{this.Xo()!==N.PICTURE_IN_PICTURE&&this.Xo()!==N.INLINE||this.Jo.Do(),this.ua.yn(tt.lo,this.ca)},this.ua=t,this.Jo=new ic(t,e.pip,this.ro),this.Jo.jn(jt.MODE_CHANGE,this.la),this.ua.jn(tt.lo,this.ca)}};Vt();var ec=class extends Q{get da(){return kt.fa(this.mo.el())||this.mo.supportsFullScreen()}get ds(){return this.mo.isFullscreen()||this.va}wo(){this.mo.requestFullscreen()}Po(){this.mo.exitFullscreen(),this.pa.Po()}_n(){this.Ho(),this.mo.off("fullscreenchange",this.ma),this.pa.yn(Z.ga,this.ma),this.pa.yn(Z.ya,this.Us),this.mo.isFullWindow&&this.mo.exitFullscreen()}constructor(t,i){super(),this.mo=void 0,this.pa=void 0,this.Hs=!1,this.va=!1,this.ba=!1,this.ma=()=>{if(this.ba)return;const t=this.Hs,i=this.ds;t!==i&&(this.Hs=i,this.Co(new gt))},this.wa=()=>{this.va=this.pa.ds,this.ma()},this.ka=()=>{this.ba||(this.mo.isFullWindow&&this.mo.supportsFullScreen()||this.va&&!this.mo.supportsFullScreen())&&(this.ba=!0,this.mo.exitFullscreen(),this.mo.requestFullscreen(),this.ba=!1,this.ma())},this.mo=t,this.pa=i,this.mo.on("fullscreenchange",this.ma),this.pa.jn(Z.ga,this.wa),this.pa.jn(Z._a,this.ka),this.pa.jn(Z.ya,this.Us),this.ma()}};function nc(t){return class extends t{get Bo(){return this.ja}ds(){return this.xa.Xo()===N.FULLSCREEN}Sa(){return function(t,i){const s=g.create(t),e=i.mo;return mt(s,{get controls(){return e.controls()},set controls(t){e.controls(wt(t))},get presentation(){return i.xa.Ta},get presentationMode(){return i.xa.Xo()},set presentationMode(t){const s=H(t);s&&i.xa.Yo(s)},get related(){var t;return null==(t=i.Ca)?void 0:t.Ta},get social(){var t;return null==(t=i.Pa)?void 0:t.Ta},get ui(){return e},get upnext(){var t;return null==(t=i.Ma)?void 0:t.Ta},get visibility(){return i.Bo.Ta}})}(this.Aa,this)}_n(){super._n(),this.xa._n(),this.Ia._n(),this.mo.dispose(),this.ja._n()}Ea(t){this.mo.src(""),super.Ea(t)}constructor(t,i,s){super(i,s),this.Go=void 0,this.mo=void 0,this.Aa=void 0,this.ja=void 0,this.xa=void 0,this.Ia=void 0,this.Go=t,this.ja=new Pi(t),this.Aa=super.Sa(),g.defineProperty(this.Aa,"constructor",{value:Vi}),this.mo=Yu(this.Aa,this.Go,s.ui),this.Ia=new ec(this.mo,this.Da),this.xa=new sc(this,this.Ia,this.Fa.Na(),s),this.xa.jn(jt.MODE_CHANGE,this.Us)}}}function rc(t){return(t=t||{}).position=function(t){switch(t){case"top-left":case"top-right":case"bottom-left":case"bottom-right":return t;default:return}}(t.position),t.visibility=function(t){if(qt(t)&&!j(t))return Ui(t,0,1)}(t.visibility),t.retainPresentationModeOnSourceChange=wt(t.retainPresentationModeOnSourceChange),t}function hc(t){const i=V(t);return i.ui=i.ui||{},void 0!==(null==t?void 0:t.width)&&void 0===i.ui.width&&(i.ui.width=t.width),void 0!==(null==t?void 0:t.height)&&void 0===i.ui.height&&(i.ui.height=t.height),void 0!==(null==t?void 0:t.fluid)&&void 0===i.ui.fluid&&(i.ui.fluid=t.fluid),i.pip=rc(i.pip),i}Vt(),Vt();var oc=Fi(()=>{let t=nc($i());return t=function(t){let i=t;for(const t of ss)i=t(i);return i}(t),t});function ac(t,i){const s=hc(i),e=h.createElement("div");yi(e),t.appendChild(e);const n=new(oc())(t,e,s);n.Ba=n;let r=n.Ta;return n.$a(),n.Ra(Ii),g.defineProperty(r,"constructor",{value:ac}),r=vt(r),bi(n),function(t){for(const i of es)i(t)}(n),r}Vt(),Vt(),Vt();var uc="theo-cast-",cc=sa.getComponent("Button"),lc=class extends(ca(cc)){get Oa(){throw new v("Va")}get Ua(){return this.h.Ua}get La(){return this.h.La}buildCSSClass(){return uc+"button theo-"+this.La+"-button theo-controlbar-button "+super.buildCSSClass()}createEl(t,i,s){const e=super.createEl(),n=h.createElement("div");n.className="theo-button-icon-blur";const r=h.createElement("div");return r.className=uc+"svg-container",r.innerHTML=this.Ua,e.appendChild(n),e.appendChild(r),e}handleClick(t){var i;if(super.handleClick(t),this.Ha===Di.AVAILABLE)null==(i=this.Oa)||i.start();else if(this.Ha===Di.CONNECTED||this.Ha===Di.CONNECTING){var s;null==(s=this.Oa)||s.stop()}}za(t){di(this.ko,"theo-"+this.La+"-"+this.Ha),this.Ha=t,r(this.ko,"theo-"+this.La+"-"+this.Ha),this.ne()}ne(){this.Wa(this.Ha),this.Re.$e=this.controlText()}Wa(t){t===Di.CONNECTED?this.controlText("Stop Casting"):t===Di.AVAILABLE?this.controlText("Start Casting"):t===Di.CONNECTING?this.controlText("Connecting"):this.controlText("Unavailable")}constructor(t,i){var s;super(t,i),this.ko=void 0,this.Ha=void 0,this.Re=void 0,this.qa=void 0,this.ko=t.el(),this.Ha=Di.UNAVAILABLE,this.controlText("Unavailable"),this.Re=new Na(this,this.controlText()),null==(s=this.Oa)||s.addEventListener("statechange",t=>{const i=t;this.za(i.state)}),Ti.ie.tn&&(this.qa=new ka(this.el())),this.za(this.Oa?this.Oa.state:Di.UNAVAILABLE),this.on(t,"languagechange",this.ne)}},dc=0;function fc(){const t='\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-'+dc+'">\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-'+dc+')">\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 dc++,t}sa.registerComponent("chromecastButton",class extends lc{get Oa(){var t;return null==(t=this.js.cast)?void 0:t.chromecast}constructor(t,i){super(t,nt(X({},i),{La:"chromecast",Ua:fc()}))}}),Vt();var vc="theo-chromecast-",pc=sa.getComponent("Component"),mc=class t extends(ca(pc)){buildCSSClass(){return vc+"overlay "+super.buildCSSClass()}createEl(){const i=super.createEl();r(i,vc+"overlay");const s=sa.createEl("div",{className:vc+"status-icon",innerHTML:t.ICON_SVG}),e=sa.createEl("div",{className:vc+"status-info"});y(e,"Playing on");const n=sa.createEl("div",{className:vc+"status-title"}),h=sa.createEl("div",{className:vc+"status"});return this.Sr=n,h.appendChild(s),h.appendChild(e),h.appendChild(n),i.appendChild(h),i}dispose(){var t;null==(t=this.Ga)||t.removeEventListener("statechange",this.update),this.Ga=void 0,this.js.removeEventListener("play",this.update),super.dispose()}constructor(t,i){var s,e;super(t,i),this.Ga=void 0,this.update=()=>{this.Ga?(this.Sr&&y(this.Sr,this.Ga.receiverName||""),this.Ga.state===Di.CONNECTED?this.show():this.hide()):this.hide()},this.Ga=null==(s=this.js.cast)?void 0:s.chromecast,null==(e=this.Ga)||e.addEventListener("statechange",this.update),this.js.addEventListener("play",this.update),this.update()}};mc.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>',sa.registerComponent("chromecastOverlay",mc),Vt(),Vt();sa.registerComponent("airplayButton",class extends lc{dispose(){var t,i;null==(t=this.js.ads)||t.removeEventListener("adbreakbegin",this.Xa),null==(i=this.js.ads)||i.removeEventListener("adbreakend",this.Ja),this.js.removeEventListener("currentsourcechange",this.Ja),super.dispose()}get Oa(){var t;return null==(t=this.js.cast)?void 0:t.airplay}constructor(t,i){var s,e;super(t,nt(X({},i),{La:"airplay",Ua:'\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.Ja=()=>{this.enable()},this.Xa=t=>{"theoads"!==t.adBreak.integration&&"google-dai"!==t.adBreak.integration&&this.disable()},null==(s=this.js.ads)||s.addEventListener("adbreakbegin",this.Xa),null==(e=this.js.ads)||e.addEventListener("adbreakend",this.Ja),this.js.addEventListener("currentsourcechange",this.Ja)}}),Vt(),Vt(),Vt(),Vt();var gc={Default:"","Monospaced Serif":Yt.Qa,"Proportional Serif":Yt.Ya,"Monospaced Sans-Serif":Yt.Ka,"Proportional Sans-Serif":Yt.Za},yc={White:"#ffffff",Yellow:"#ffff00",Green:"#00ff00",Cyan:"#00ffff",Blue:"#0000ff",Magenta:"#ff00ff",Red:"#ff0000",Black:"#000000"},bc=[50,75,100,150,200];function wc(t){return{label:t+"%",value:t}}function kc(t){return g.keys(t).map(i=>({label:i,value:t[i]}))}bc.map(function(t){return{label:t+"%",value:t/100+"em"}});var _c=bc.map(function(t){return{label:t+"%",value:t+"%"}}),jc=[25,50,75,100].map(wc),xc=[0,25,50,75,100].map(wc),Sc=kc(yc),Tc=kc(gc),Cc=kc({None:"none","Drop Shadow":"dropshadow",Raised:"raised",Depressed:"depressed",Uniform:"uniform"}),Pc=100,Mc="#000000",Ac="#FFFFFF",Ic="#000000";Vt();var Ec=class extends wu{tu(){const t=this.Hr.localize(this.iu);y(this.su.subMenu.menuHeader.el(),t),this.Lr=h.createElement("span"),this.Lr.className="theo-settings-control-menu-item-title",y(this.Lr,t);const i=h.createElement("span");return i.className="theo-primary-color theo-settings-control-menu-item-value",r(this.su.el(),"theo-subtitle-options-menu-item"),this.su.el().appendChild(this.Lr),this.su.el().appendChild(i),i}eu(t){const i=this.Nr(t);i&&this.nu(i)}ru(){return this.Pr}$r(t){this.hu(t.Fr)}nu(t){for(const t of this.Er.menuItems)t.selected(!1);t?(t.selected(!0),this.ou(t.Fr.label)):this.ou("Custom")}ou(t){this.au=t,y(this.uu,this.Hr.localize(t)),this.su.parentMenu.ue()}Br(t){const i=super.Br(t);return r(i.el(),"theo-subtitle-options-menu-item"),this.Vr(i),i}Vr(t){const i=this.Hr.localize(t.Fr.label);y(t.el(),i);const s=this.Hr.localize("Set "+this.iu+" to ")+i;t.el().setAttribute("aria-label",s)}Le(){this.Hr.off("languagechange",this.ne),super.Le()}constructor(t,i,s,e){super(t.subMenu),this.su=void 0,this.Hr=void 0,this.iu=void 0,this.Lr=void 0,this.uu=void 0,this.au=void 0,this.hu=void 0,this.ne=void 0,this.su=t,this.Hr=e,this.au="",this.ne=()=>{const t=this.Hr.localize(this.iu);y(this.su.subMenu.menuHeader.el(),t),y(this.Lr,t),this.ou(this.au);for(const t of this.Dr)this.Vr(t)},this.iu=i,this.hu=s.cu,this.uu=this.tu(),this.Pr=s.lu,this.Hr.on("languagechange",this.ne)}};Vt();var Dc=class t{static du(t,i,s,e){if(void 0===t&&void 0===i)return;return li(void 0===t?s:t,void 0===i?e:i)}constructor(i){this.fu=void 0,this.vu=void 0,this.pu=void 0,this.mu=void 0,this.gu=void 0,this.yu=void 0,this.bu=void 0,this.wu=void 0,this.ku=void 0,this._u=void 0,this.ju=void 0,this.xu=void 0,this.Su=void 0,this.Tu=void 0,this.Cu=void 0,this.Pu=void 0,this.fu=i,this.wu=t=>{this.fu.fontFamily=t.value},this.ku=t=>{this.fu.fontSize=t.value},this._u=i=>{this.vu=i.value,this.fu.fontColor=t.du(this.pu,this.vu,Ac,Pc)},this.ju=i=>{this.pu=i.value,this.fu.fontColor=t.du(this.pu,this.vu,Ac,Pc)},this.xu=i=>{this.gu=i.value,this.fu.backgroundColor=t.du(this.gu,this.mu,Mc,Pc)},this.Su=i=>{this.mu=i.value,this.fu.backgroundColor=t.du(this.gu,this.mu,Mc,Pc)},this.Tu=i=>{this.bu=i.value,this.fu.windowColor=t.du(this.bu,this.yu,Ic,Pc)},this.Cu=i=>{this.yu=i.value,this.fu.windowColor=t.du(this.bu,this.yu,Ic,Pc)},this.Pu=t=>{this.fu.edgeStyle=t.value}}};Vt();var Nc=class{Mu(t,i){const s=this.Au(t,i.ru());s&&i.eu(s)}Au(t,i){return Qi(i,i=>i.value===t)}Iu(t,i,s){let e,n;if(void 0===t)e=this.Au(void 0,i.ru()),n=this.Au(void 0,s.ru());else if(t){const r=function(t){let i=ui(t);i||(i=ui(t.slice(0,t.length-1).replace("rgb","rgba")+",1)"));i||(i=ti(ei(t),1));if(!i){const s=t.charAt(0).toUpperCase()+t.toLowerCase().slice(1);i=ti(ei(yc[s]),1)}return i}(t);if(r){const t=hi(r),h=100*r.Eu;e=this.Au(t,i.ru()),n=this.Au(h,s.ru())}}e&&i.eu(e),n&&s.eu(n)}constructor(t,i){this.fu=void 0,this.Du=void 0,this.Nu=void 0,this.fu=t,this.Du=i,this.Nu=()=>{const t=this.fu.fontFamily;this.Mu(t,this.Du["Font family"]);const i=this.fu.fontColor;this.Iu(i,this.Du["Font color"],this.Du["Font opacity"]);const s=this.fu.fontSize;this.Mu(s,this.Du["Font size"]);const e=this.fu.backgroundColor;this.Iu(e,this.Du["Background color"],this.Du["Background opacity"]);const n=this.fu.windowColor;this.Iu(n,this.Du["Window color"],this.Du["Window opacity"]);const r=this.fu.edgeStyle;this.Mu(r,this.Du["Character edge style"])},this.fu.addEventListener("change",this.Nu),this.Nu()}};var Fc=class extends wu{Fu(){return{"Font family":{lu:Bc(Tc),cu:this.Bu.wu},"Font color":{lu:Bc(Sc),cu:this.Bu.ju},"Font opacity":{lu:Bc(jc),cu:this.Bu._u},"Font size":{lu:Bc(_c),cu:this.Bu.ku},"Background color":{lu:Bc(Sc),cu:this.Bu.xu},"Background opacity":{lu:Bc(xc),cu:this.Bu.Su},"Window color":{lu:Bc(Sc),cu:this.Bu.Tu},"Window opacity":{lu:Bc(xc),cu:this.Bu.Cu},"Character edge style":{lu:Bc(Cc),cu:this.Bu.Pu}}}$u(){this.Lr=h.createElement("span"),this.Lr.className="theo-settings-control-menu-item-title",this.Ru=h.createElement("span"),this.Ru.className="theo-primary-color theo-settings-control-menu-item-value",this.Yr.el().appendChild(this.Lr),this.Yr.el().appendChild(this.Ru),this.ne()}Br(t){const i=this.Er.addSubMenuItem();return i.Fr=t,this.Du[t]=new Ec(i,t,this.Ou[t],this.Hr),i}Vr(t){}$r(t){}Le(){this.Hr.off("languagechange",this.ne),this.Vu.removeEventListener(["addtrack","removetrack"],this.Uu),super.Le()}constructor(t,i,s,e){super(t.subMenu),this.Yr=void 0,this.Vu=void 0,this.Hr=void 0,this.Bu=void 0,this.Lu=void 0,this.Ou=void 0,this.Du=void 0,this.Lr=void 0,this.Ru=void 0,this.Uu=void 0,this.ne=void 0,this.Yr=t,this.Vu=i,this.Hr=e,this.Du={},this.Uu=()=>{this.Vu.some(t=>Rt(t.kind))?this.Yr.show():this.Yr.hide()},this.ne=()=>{y(this.Er.menuHeader.el(),this.Hr.localize("Subtitle Options")),y(this.Lr,this.Hr.localize("Subtitle")),y(this.Ru,this.Hr.localize("Options")),this.Yr.el().setAttribute("aria-label",this.Hr.localize("Open the subtitle options menu"))},this.Bu=new Dc(s),this.Ou=this.Fu(),this.Pr=g.keys(this.Ou),this.$u(),this.Lu=new Nc(s,this.Du),this.Hr.on("languagechange",this.ne),this.Vu.addEventListener(["addtrack","removetrack"],this.Uu),this.Uu()}};function Bc(t){const i=[{label:"Default",value:void 0}];for(const s of t)"Default"!==s.label&&i.push(s);return i}!function(t){es.push(t)}(function(t){const i=t.mo.controlBar.getChild("SettingsButton").menu,s=i.addSubMenuItem({name:"TextTrackOptionsMenuItem"}),e=new Fc(s,t.nt.Ta,t.Hu.Ta,t.mo);t.mo.on("dispose",()=>{i.removeMenuItem(s),s.dispose(),e.Le(),i.dispose()})}),Vt(),Vt(),Vt(),Vt(),Vt(),Vt();var $c=.02,Rc=class{zu(t){const i=t-this.qu.Wu-20,s=t-this.qu.Wu+20;if(0===this.qu.bo)return;const e=this.qu.t.currentProgramDateTime.valueOf();e>s?this.Gu(this.Xu):e<i?this.Gu(this.Ju):this.Gu(this.Qu)}Yu(t){const i=t-this.qu.Wu/1e3-$c,s=t-this.qu.Wu/1e3+$c;if(0===this.qu.bo)return;const e=this.qu.t.currentTime;e>s?this.Gu(this.Xu):e<i?this.Gu(this.Ju):this.Gu(this.Qu)}Ku(){this.Qu=this.ua.Zu,this.Xu=this.ua.Zu-.05,this.Ju=this.ua.Zu+.05}Gu(t){const i=this.qu.t;if(i.playbackRate!==t&&0!==i.playbackRate){t>=.2&&t<=2.05?i.playbackRate=t:this.ua.tc(this.qu)}}sc(){this.ua.yn(tt.ec,this.nc),this.ua.yn(tt.rc,this.hc)}constructor(t,i){this.ua=void 0,this.qu=void 0,this.Qu=1,this.Xu=1.05,this.Ju=.95,this.nc=()=>{this.Ku()},this.hc=()=>{if(!this.ua.oc)return;const t=this.ua.oc.Wu,i=this.ua.ac,s=this.ua.uc;null!==s?this.zu(s.valueOf()+t):this.Yu(i+t/1e3)},this.qu=t,this.ua=i,this.ua.jn(tt.ec,this.nc),this.ua.jn(tt.rc,this.hc)}},Oc=class{get t(){return this.ua}get Ta(){var t;return null!==(t=this.cc)&&void 0!==t?t:this.cc=function(t){return{get player(){return t.t},get label(){return t.Mh},get position(){return t.bo},set position(i){t.bo=i},get muted(){return t.lc},set muted(i){t.lc=i},get canResize(){return t.dc},get x(){return t.Jh},set x(i){t.Jh=i},get y(){return t.Qh},set y(i){t.Qh=i},get width(){return t.Ci},set width(i){t.Ci=i},get height(){return t.Pi},set height(i){t.Pi=i},get enabled(){return t.Rt},set enabled(i){t.Rt=i},get offset(){return t.Wu},set offset(i){t.Wu=i},remove(){t.fc()}}}(this)}get Mh(){return this.vc}get bo(){return this.gc.mc.indexOf(this)}set bo(t){this.gc.yc(this,t)}get lc(){return this.ua.muted}set lc(t){this.Rt&&(this.gc.bc=this,this.wc(t))}get dc(){return 0!==this.bo&&this.gc.kc===il.OVERLAY}get Jh(){return this._c}set Jh(t){this.dc&&(this.jc||(this.jc=!0),this._c=t>1-this.Ci?1-this.Ci:w.max(t,0),this.t.element.style.setProperty("left",100*this._c+"%"))}get Qh(){return this.xc}set Qh(t){this.dc&&(this.jc||(this.jc=!0),this.xc=t>1-this.Pi?1-this.Pi:w.max(t,0),this.t.element.style.setProperty("top",100*this.xc+"%"))}get Ci(){return this.Sc}set Ci(t){this.dc&&this.Tc(t)}get Pi(){return this.Cc}set Pi(t){this.dc&&this.Tc(t)}get Rt(){return this.Xe}set Rt(t){t!==this.Xe&&0!==this.bo&&(t?(O(this.gc.tc(this)),this.gc.Pc(this),this.t.element.style.setProperty("display","block")):(this.t.pause(),this.t.element.style.setProperty("display","none")),this.Xe=t,this.gc.Mc(this))}get Ac(){return this.jc}set Ac(t){this.jc=t}get Ic(){return this.Ec}set Ic(t){this.Ec=t}get Wu(){return this.Dc}set Wu(t){this.Dc=_t(t),this.Nc(this.gc.ac,this.gc.uc)}Fc(t,i,s,e,n){!this.jc&&n&&(this.jc=!0),this._c=t,this.xc=i,this.Sc=s,this.Cc=e}wc(t){this.ua.muted=t}fc(){0!==this.bo&&this.gc.Bc(this)}$c(){this.t.element.style.setProperty("top",100*this.xc+"%"),this.t.element.style.setProperty("left",100*this._c+"%"),this.t.element.style.setProperty("width",100*this.Sc+"%")}Tc(t){const i=this._c+this.Sc,s=w.min(t,i),e=.9-this.xc,n=w.min(t,e),r=w.max(w.min(s,n),.1),h=this.Sc-r;this.Sc=r,this.Cc=r,this.Jh+=h,this.t.element.style.setProperty("width",100*r+"%")}Nc(t,i){if(null!==i){const t=i.valueOf()-this.Wu;this.ua.currentProgramDateTime=new Date(t)}else this.ua.currentTime=t-this.Wu/1e3}Rc(t){const i=this.t.element.getElementsByClassName(Jc)[0],s=t?Yc:Qc;di(i,t?Qc:Yc),r(i,s)}sc(){this.Oc.sc(),this.ua.element.remove(),this.ua.destroy()}constructor(t,i,s,e){this.vc=void 0,this.ua=void 0,this.gc=void 0,this.Oc=void 0,this.Dc=void 0,this.Xe=!0,this.jc=!1,this.Ec=0,this.cc=void 0,this.Sc=void 0,this.Cc=void 0,this._c=void 0,this.xc=void 0,this.vc=t,this.ua=i,this.gc=s,this.Oc=new Rc(this,s),this.Dc=null!=e?e:0,this.Sc=.2,this.Cc=.2,this._c=.76,this.xc=0}};Vt();var Vc=class{get multiViewPlayer(){return this.gc}get abr(){}get audioTracks(){return this.Vc}get autoplay(){return this.gc.autoplay}set autoplay(t){this.gc.autoplay=t}get buffered(){return this.gc.buffered}get canvas(){}get clip(){return this.Uc.Ta}get currentProgramDateTime(){return null}get currentTime(){return this.gc.currentTime}set currentTime(t){this.gc.currentTime=t}get duration(){return this.gc.duration}get element(){return this.zs}get ended(){return this.gc.ended}get error(){}get errorObject(){return this.gc.errorObject}get latency(){}get loop(){return!1}get metrics(){}get millicast(){}get muted(){return this.gc.muted}set muted(t){this.gc.muted=t}get network(){}get paused(){return this.gc.paused}get playbackRate(){return this.gc.playbackRate}set playbackRate(t){this.gc.playbackRate=t}get played(){return this.gc.played}get poster(){return""}get preload(){return""}get presentation(){}get readyState(){return this.gc.readyState}get seekable(){return this.gc.seekable}get seeking(){return this.gc.seeking}get source(){}get src(){return"dummySource"}get textTrackStyle(){return this.Lc}get textTracks(){return this.Hc}addTextTrack(t){throw v("Not implemented")}get uid(){return 0}get videoHeight(){return 0}get videoTracks(){return this.Vc}get videoWidth(){return 0}get volume(){return this.gc.volume}set volume(t){this.gc.volume=t}get version(){return"11.12.1"}get views(){return this.gc.views}get visibility(){}get layout(){return this.gc.layout}set layout(t){this.gc.layout=t}play(){this.gc.play()}pause(){this.gc.pause()}stop(){this.gc.stop()}destroy(){this.gc.destroy()}prepareWithUserAction(){this.gc.prepareWithUserAction()}addEventListener(t,i){this.zc.jn(t,i)}removeEventListener(t,i){this.zc.yn(t,i)}setSource(t){}constructor(t,i){this.gc=void 0,this.zc=new Q,this.zs=void 0,this.Uc=void 0,this.Vc=void 0,this.Hc=void 0,this.Lc=void 0,this.gc=t,this.zs=i,this.Uc=new Dt,this.Vc=(new J).Ta,this.Hc=(new Y).Ta,this.Lc=(new Ot).Ta,this.gc.addEventListener(["play","pause","seeking","seeked","timeupdate","ended","playing","waiting","sourcechange","readystatechange","loadedmetadata","loadeddata","canplay","canplaythrough","loadstart","progress","durationchange","volumechange","ratechange","error"],this.zc.Us)}};Vt();var Uc=class extends K{constructor(t){super(tl.Wc),this.view=void 0,this.view=t}};Vt();var Lc=class extends K{constructor(t,i){super(tl.VIEW_POSITION_CHANGE),this.oldPosition=void 0,this.newPosition=void 0,this.oldPosition=t,this.newPosition=i}};Vt();var Hc=class extends K{constructor(t){super(tl.qc),this.view=void 0,this.view=t}};Vt();var zc=class extends K{constructor(t){super(tl.VIEW_CHANGE),this.view=void 0,this.view=t}};Vt();var Wc=class extends K{constructor(t){super(tl.Gc),this.layout=void 0,this.layout=t}};Vt();var qc=class extends Q{get ac(){return this.ua.ac}get Xc(){return this.ua.Xc}get lt(){return this.ua.Jc}get Qc(){return this.ua.Qc}get Yc(){return this.ua.Yc}get Kc(){return this.ua.Kc}get Zc(){return!1}get tl(){return!1}sc(){this.Ho()}constructor(t){super(),this.ua=void 0,this.il=t=>{this.Us(new Ni(t.source))},this.sl=t=>{this.Us(new Li(t.currentTime))},this.nl=t=>{this.Us(new Oi(t.currentTime))},this.rl=t=>{this.Us(new ts(t.currentTime))},this.hl=t=>{this.Us(new P(t.currentTime))},this.ol=t=>{this.Us(new dt(t.currentTime,t.currentProgramDateTime))},this.al=t=>{this.Us(new Yi(t.currentTime))},this.cl=t=>{this.Us(new ci(t.currentTime))},this.ll=t=>{this.Us(new si(t.currentTime))},this.dl=t=>{this.Us(new zt(t.currentTime,t.readyState))},this.fl=t=>{this.Us(new Qt(t.currentTime,this.Yc))},this.vl=t=>{this.Us(new Zt(t.currentTime,this.Yc))},this.pl=t=>{this.Us(new ri(t.currentTime,this.Yc))},this.ml=t=>{this.Us(new ai(t.currentTime,this.Yc))},this.gl=()=>{this.Us(new Wt)},this.yl=t=>{this.Us(new Lt(t.currentTime))},this.bl=t=>{this.Us(new Wi(t.duration))},this.wl=t=>{this.Us(new I(this.ac,t.volume))},this.kl=t=>{this.Us(new Xi(this.ac,t.playbackRate))},this._l=t=>{this.Us(new R(t.errorObject))},this.jl=()=>{this.Us(new gt)},this.ua=t,this.ua.jn("sourcechange",this.il),this.ua.jn("play",this.sl),this.ua.jn("pause",this.nl),this.ua.jn("seeking",this.rl),this.ua.jn("seeked",this.hl),this.ua.jn("timeupdate",this.ol),this.ua.jn("ended",this.al),this.ua.jn("playing",this.cl),this.ua.jn("waiting",this.ll),this.ua.jn("readystatechange",this.dl),this.ua.jn("loadedmetadata",this.fl),this.ua.jn("loadeddata",this.vl),this.ua.jn("canplay",this.pl),this.ua.jn("canplaythrough",this.ml),this.ua.jn("loadstart",this.gl),this.ua.jn("progress",this.yl),this.ua.jn("durationchange",this.bl),this.ua.jn("volumechange",this.wl),this.ua.jn("ratechange",this.kl),this.ua.jn("error",this._l),this.ua.jn("fullscreenchange",this.jl)}};Vt();var Gc=class{async xl(){const t=this.ua;if(!t.Sl||!t.Qc)return;const i=this.Tl.mutedAutoplay;switch(await this.Pl.Cl(t.lc)){case"allowed":t.lc||t.Ml(),t.Al();break;case"allowed-muted":(t.lc||i===$.ALL)&&(t.lc=!0,t.Al())}}_n(){this.Pl._n(),this.bn._n()}constructor(t,i,s){if(this.ua=void 0,this.Tl=void 0,this.bn=void 0,this.Lc=void 0,this.Pl=void 0,this.ua=t,this.Tl=s,this.Lc=new Ot,this.bn=new pt(i),s.overrideAutoplayCapability)this.Pl=new Mt(s.overrideAutoplayCapability);else{const t=new _i(this.bn,this.Lc,s,1,[xt.Il]);this.Pl=It(t)}}},Xc=[Ut.El,Ut.Dl,Ut.Nl,Ut.Fl],Jc="theo-switch-audio-button",Qc="vjs-icon-volume-mute",Yc="vjs-icon-volume-high",Kc="theo-main-view",Zc="theo-layout-",tl=function(t){return t.Wc="addview",t.qc="removeview",t.VIEW_CHANGE="viewchange",t.VIEW_POSITION_CHANGE="viewpositionchange",t.Gc="layoutchange",t}({}),il=function(t){return t.GALLERY="gallery",t.OVERLAY="overlay",t.SPOTLIGHT="spotlight",t}({}),sl=class extends Q{get Ta(){var t;return null!==(t=this.cc)&&void 0!==t?t:this.cc=function(t){return{load:(i,s,e,n)=>t.Un(i,s,e,n),get views(){return t.mc.map(t=>t.Ta)},get mainVideoView(){var i;return null==(i=t.oc)?void 0:i.Ta},get mainAudioView(){var i;return null==(i=t.bc)?void 0:i.Ta},get ui(){return t.mo},get layout(){return t.kc},set layout(i){t.kc=i},get buffered(){return t.Bl},get currentTime(){return t.ac},set currentTime(i){t.ac=i},get autoplay(){return t.Sl},set autoplay(i){t.Sl=i},get duration(){return t.ct},get ended(){return t.Xc},get errorObject(){return t.Jc},get muted(){return t.lc},set muted(i){t.lc=i},get paused(){return t.Qc},get playbackRate(){return t.Zu},set playbackRate(i){t.Zu=i},get played(){return t.$l},get readyState(){return t.Yc},get seekable(){return t.Rl},get seeking(){return t.Kc},get volume(){return t.Ol},set volume(i){t.Ol=i},get version(){return"11.12.1"},play(){t.Al()},pause(){t.Vl()},stop(){t.Ul()},destroy(){t.sc(),t=null},requestFullscreen(i){t.Ll(i)},exitFullscreen(){t.na()},prepareWithUserAction(){t.Ml()},addEventListener(i,s){t.jn(i,s)},removeEventListener(i,s){t.yn(i,s)}}}(this)}get mo(){return this.Hl}get mc(){return this.zl}get oc(){return this.Wl}get bc(){var t;return null!==(t=this.ql)&&void 0!==t?t:this.Wl}set bc(t){if(this.ql===t)return;const i=this.bc,s=null!=t?t:this.oc;i.t.removeEventListener(tt.Gl,this.Xl),i.Rc(!1),i.lc||(i.wc(!0),s.wc(!1)),s.t.addEventListener(tt.Gl,this.Xl),s.Rc(!0),this.ql=t}get kc(){return this.Jl}set kc(t){if(t!==this.Jl){if("overlay"===this.kc)for(const t of this.mc)t.t.element.style.setProperty("left","auto"),t.t.element.style.setProperty("top","auto"),t.t.element.style.removeProperty("z-index");di(this.zs,Zc+this.Jl),this.Jl=t,r(this.zs,Zc+this.Jl),this.$c(),this.Co(new Wc(t))}}get Bl(){if(0===this.mc.length)return ki.Ql()._s();return this.Yl().reduce((t,i)=>t.An(ki.Pn(i.t.buffered)),ki.Kl())._s()}get ac(){return this.Wl&&this.Zl?this.Wl.t.currentTime+this.Wl.Wu/1e3:0}set ac(t){this.td();const i=this.Yl();let s=null;if(null!==this.uc){s=this.uc;const i=t-this.ac;s.setSeconds(s.getSeconds()+i)}for(const e of i)e.Nc(t,s)}get uc(){if(!this.Wl)return null;return this.mc.every(t=>null!==t.t.currentProgramDateTime)?new Date(this.Wl.t.currentProgramDateTime.valueOf()+this.Wl.Wu):null}get Sl(){return this.sd}set Sl(t){this.sd=t,this.ed.xl()}get ct(){if(0===this.mc.length)return NaN;let t=1/0;for(const i of this.Yl())t=w.min(i.t.duration,t);return t}get Xc(){return this.mc.some(t=>t.t.ended)}get lt(){return this.Jc}get Jc(){if(this.nd)return this.nd;for(const t of this.mc){const i=t.t.errorObject;if(void 0!==i)return i}}get lc(){var t,i;return null!==(t=null==(i=this.bc)?void 0:i.lc)&&void 0!==t&&t}set lc(t){this.bc&&this.bc.wc(t),this.Xl()}get Qc(){if(!this.mc.length)return!0;return this.Yl().some(t=>t.t.paused)}get Zu(){var t,i,s;return null!==(t=null!==(i=this.rd)&&void 0!==i?i:null==(s=this.Wl)?void 0:s.t.playbackRate)&&void 0!==t?t:1}set Zu(t){if(void 0!==this.rd)this.rd=t;else for(const i of this.mc)i.t.playbackRate=t;this.od()}get $l(){return this.mc.reduce((t,i)=>t.ad(ki.Pn(i.t.played)),ki.Ql())._s()}get Yc(){if(0===this.mc.length)return Gt.ud;let t=Gt.ld;for(const i of this.Yl())i.t.readyState<t&&(t=i.t.readyState);return t}get Rl(){if(0===this.mc.length)return ki.Ql()._s();return this.Yl().reduce((t,i)=>t.An(ki.Pn(i.t.seekable)),ki.Kl())._s()}get Kc(){return this.mc.some(t=>t.t.seeking)}get Ol(){var t,i;return null!==(t=null==(i=this.bc)?void 0:i.t.volume)&&void 0!==t?t:1}set Ol(t){for(const i of this.mc)i.t.volume=t;this.Xl()}Un(t,i,s,e){if(this.dd)throw this.nd;const n=Qi(this.mc,i=>i.Mh===t);if(n)return n.Ta;const r=_t(e),h=j(r)?void 0:r;return this.fd(t,i,s,h)}Al(){if(!this.Wl||!this.Qc)return;this.td();const t=this.Yl();for(const i of t)i.t.play()}Vl(){const t=this.Yl();for(const i of t)i.t.pause()}Ul(){for(let t=this.mc.length-1;t>=0;t--)this.Bc(this.mc[t]);this.Wl=void 0,this.ql=void 0,this.nd=void 0,this.vd&&(this.vd.pd(),this.vd=void 0),this.md=!0,this.gd=!1,this.yd=!1,this.bd=-1,this.wd=Gt.ud,this.kd=!1,this.rd=void 0,this._d=!1,this.jd=-1,this.xd=!1,this.Sd=-1,this.Zl=!1,this.Td.ur(),this.Co(new Ni(void 0))}sc(){for(let t=this.mc.length-1;t>=0;t--)this.Bc(this.mc[t]);this.Ho(),this.Td._n(),this.Cd.sc(),this.Pd.sc(),this.ed._n(),this.mo.dispose()}Ll(t){this.Co(new gt),this.zs.requestFullscreen(t).catch(Mi)}na(){this.Co(new gt),h.exitFullscreen().catch(Mi)}Ml(){for(const t of this.mc)t.t.prepareWithUserAction()}fd(t,i,s,e){const n=h.createElement("div");r(n,"theo-view"),this.zs.appendChild(n);const o=new($i())(n,this.Tl).Ta;o.source=i;const a=new Oc(t,o,this,e);if(s){const t=h.createElement("div");t.className="theo-view-description";const i=h.createElement("span");i.textContent=s,t.appendChild(i),n.appendChild(t),a.t.addEventListener("dimensionchange",()=>{this.Md(t)})}return this.Ad(a),this.mc.push(a),1===this.mc.length?(this.Wl=a,this.Id(this.Wl),r(this.Wl.t.element,Kc)):(this.Ed(o),0!==this.ac&&O(this.tc(a,!0))),this.$c(),this.Co(new Uc(a.Ta)),a.Ta}Yl(){return this.mc.filter(t=>t.Rt)}Dd(){return this.mc.filter(t=>t.Rt&&t!==this.Wl)}Ed(t){t.volume=this.Wl.t.volume,t.muted=!0,t.playbackRate=this.Wl.t.playbackRate}Ad(t){t.Ic=this.mc.length;const i=t.t.element;i.addEventListener("dblclick",()=>{this.Nd(t)}),i.addEventListener("touchend",i=>{this.Fd>=i.timeStamp?(i.preventDefault(),this.Nd(t),this.Fd=0):this.Fd=i.timeStamp+500});const s=h.createElement("div"),e=0===this.mc.length?Yc:Qc;s.className="theo-primary-color "+Jc+" "+e,s.addEventListener("click",()=>{this.bc=t}),s.addEventListener("touchend",()=>{this.bc=t}),i.appendChild(s);const n=h.createElement("div");n.className="theo-primary-color theo-disable-button vjs-icon-close",n.addEventListener("click",()=>{t.Rt=!1}),n.addEventListener("touchend",()=>{t.Rt=!1}),i.appendChild(n),this.Bd(t,i),this.$d(t),this.Rd(t)}Bd(t,i){const s=h.createElement("div");let e=0;const n=i=>{if(this.Od=!0,this.Pc(t),i.preventDefault(),"touchstart"===i.type){e=i.changedTouches[0].clientX,h.addEventListener("touchmove",r),h.addEventListener("touchend",o),h.addEventListener("touchcancel",o)}else{e=i.x,h.addEventListener("mousemove",r),h.addEventListener("mouseup",o)}},r=i=>{let s;if("touchmove"===i.type){s=i.changedTouches[0].clientX}else{s=i.x}const n=e-s,r=t.t.element.parentElement.clientWidth,h=(t.t.element.clientWidth+n)/r;t.Ci=h,t.Pi=h,e=s},o=t=>{this.Od=!1,"mouseup"===t.type?(h.removeEventListener("mousemove",r),h.removeEventListener("mouseup",o)):(h.removeEventListener("touchmove",r),h.removeEventListener("touchend",o),h.removeEventListener("touchcancel",o))};s.addEventListener("mousedown",n),s.addEventListener("touchstart",n),s.className="theo-resize-button theo-primary-color vjs-icon-resize-handle-sw",i.appendChild(s)}Md(t){const i=t.parentElement.clientWidth/100,s=w.min(40,5.23*i);t.style.fontSize=s+"px"}$d(t){const i=t.t.element,s=i.parentElement;let e={x:0,y:0};const n=i=>{if(!this.Od&&t.dc)if(this.Pc(t),i.preventDefault(),"touchstart"===i.type){const t=i;e.x=t.changedTouches[0].clientX,e.y=t.changedTouches[0].clientY,h.addEventListener("touchmove",r),h.addEventListener("touchend",o),h.addEventListener("touchcancel",o)}else{const t=i;e.x=t.x,e.y=t.y,h.addEventListener("mousemove",r),h.addEventListener("mouseup",o)}},r=n=>{let r;if("touchmove"===n.type){const t=n;r={x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}}else{const t=n;r={x:t.x,y:t.y}}const h=r.x-e.x,o=r.y-e.y,a=i.offsetLeft,u=s.clientWidth;t.Jh=(a+h)/u;const c=s.offsetHeight,l=i.offsetTop;t.Qh=(l+o)/c,e=r},o=t=>{"mouseup"===t.type?(h.removeEventListener("mouseup",o),h.removeEventListener("mousemove",r)):(h.removeEventListener("touchmove",r),h.removeEventListener("touchend",o),h.removeEventListener("touchcancel",o))};i.addEventListener("mousedown",n),i.addEventListener("touchstart",n)}Pc(t){for(const i of this.mc)i.Ic>t.Ic&&(i.Ic-=1,i.t.element.style.setProperty("z-index",""+i.Ic));t.Ic=this.mc.length,t.t.element.style.setProperty("z-index",""+t.Ic)}td(){if(void 0!==this.rd)return;this.rd=this.Zu;const t=this.Yl();for(const i of t)i.t.playbackRate=0}Vd(){if(void 0===this.rd)return;if(this.Kc||this.Yc<Gt.Ud){if(this.Wl&&!this.Zl){this.Zl=!0;for(const t of this.Dd())this.Wl.Wu!==t.Wu&&t.Nc(this.ac,this.uc)}return}const t=this.Yl();for(const i of t)i.t.playbackRate=this.rd;this.rd=void 0,this.Zl=!0}Mc(t){t.Rt||t!==this.ql||(this.bc=void 0),this.Co(new zc(t.Ta)),this.$c()}async tc(t,i){void 0===i&&(i=!1),this.td();const s=t.t;i&&(this.vd=new st,s.addEventListener(tt.vo,this.Is),await this.vd.Ld,s.removeEventListener(tt.vo,this.Is)),s.readyState===Gt.ud&&(this._d=!0,s.play()),this.Qc?s.pause():s.play(),t.Nc(this.ac,this.uc)}$c(){const t=this.Yl();if(!t.length)return;let i=0;switch(this.kc){case"spotlight":{t.length>1?this.zs.style.gridTemplateColumns="80% 20%":this.zs.style.gridTemplateColumns="100%";let s=1/0;for(const e of t)if(i>=s+1)e.Rt=!1;else if(e.t.element.style.setProperty("width","100%"),i++,2===i){const i=e.t.element.clientHeight,n=e.t.element.parentElement.clientHeight,r=w.floor(n/i);s=w.min(t.length-1,r),this.zs.style.gridTemplateRows="repeat("+s+", 1fr)"}break}case"overlay":{let s=0;for(i=1;i<t.length;i++){const e=t[i];if(i>=5)e.Rt=!1;else{if(!e.Ac){const t=.04+.24*s;e.Fc(e.Jh,t,e.Ci,e.Pi,!1),this.Pc(e),s++}e.t.element.style.setProperty("z-index",""+e.Ic),e.$c()}}break}case"gallery":{const s=t.length,e=w.ceil(w.sqrt(s));for(const s of t)i>=16?s.Rt=!1:(s.t.element.style.setProperty("width",100/e+"%"),i++);break}}}yc(t,i){const s=i>=0?w.min(w.floor(i),this.mc.length-1):0,e=t.bo,n=w.min(e,s),r=w.max(e,s),h=0===n;if(!(!this.mc[n].Rt||!this.mc[r].Rt)||!h){if("overlay"===this.kc){const t=this.mc[r],i=this.mc[n],s=t.Jh,e=t.Qh,h=t.Ci,o=t.Pi,a=i.Ac||t.Ac;t.Fc(i.Jh,i.Qh,i.Ci,i.Pi,a),[this.mc[n],this.mc[r]]=[this.mc[r],this.mc[n]],i.Fc(s,e,h,o,a)}else[this.mc[n],this.mc[r]]=[this.mc[r],this.mc[n]];h&&this.Hd(this.mc[0]),this.Co(new Lc(e,s))}}Bc(t){t===this.ql&&(this.bc=void 0),t.sc(),Zi(this.mc,t),this.$c(),this.Co(new Hc(t.Ta))}Nd(t){this.Xc||0===this.$l.length||this.Wl===t||"gallery"===this.Jl||this.yc(t,0)}Hd(t,i){void 0===i&&(i=!1);let s=!1;const e=this.Wl;this.Wl=t,t.Ac=!1,this.zd(e),di(e.t.element,Kc),this.ql||(s=e.lc,e.wc(!0),e.Rc(!1),t.Rc(!0),i&&!s?this.Co(new I(this.ac,0)):t.wc(s)),this.Pc(e),r(this.Wl.t.element,Kc),this.Id(this.Wl),"overlay"===this.kc&&this.$c()}Rd(t){t.t.addEventListener(tt.Wd,this.qd),t.t.addEventListener(tt.Gd,this.Nh),t.t.addEventListener(tt.lo,this.Xd),t.t.addEventListener(tt.Jd,this.Qd),t.t.addEventListener(tt.Yd,this.Ye),t.t.addEventListener(tt.Kd,this.Zd),t.t.addEventListener(tt.tf,this.if),t.t.addEventListener(Ut.sf,this.ef),t.t.addEventListener(Et.ya,this.As)}Id(t){t.t.addEventListener(tt.nf,this.Us),t.t.addEventListener(tt.ec,this.od),t.t.addEventListener(tt.rc,this.rf),this.ql||t.t.addEventListener(tt.Gl,this.Xl)}zd(t){t.t.removeEventListener(tt.nf,this.Us),t.t.removeEventListener(tt.ec,this.od),t.t.removeEventListener(tt.rc,this.rf),this.ql||t.t.removeEventListener(tt.Gl,this.Xl)}constructor(t,i,s){super(),this.hf=void 0,this.zs=void 0,this.Tl=void 0,this.Hl=void 0,this.zl=[],this.Wl=void 0,this.ql=void 0,this.Jl="gallery",this.Od=!1,this.nd=void 0,this.vd=void 0,this.cc=void 0,this.af=void 0,this.Pd=void 0,this.uf=void 0,this.dd=!1,this.md=!0,this.gd=!1,this.yd=!1,this.bd=-1,this.wd=Gt.ud,this.kd=!1,this.Fd=0,this.rd=void 0,this._d=!1,this.sd=!1,this.jd=-1,this.xd=!1,this.Sd=-1,this.Zl=!1,this.Cd=void 0,this.Td=void 0,this.ed=void 0,this.cf=t=>{this.Vd(),B(()=>this.Us(t))},this.lf=t=>{this.td(),this.Us(t)},this.Is=()=>{var t;null==(t=this.vd)||t.df(),this.vd=void 0},this.od=()=>{const t=this.Zu;this.Sd!==t&&(this.Sd=t,this.Us(new Xi(this.ac,t)))},this.Xl=()=>{const t=this.Ol,i=this.lc;this.jd===t&&this.xd===i||(this.jd=t,this.xd=i,this.Us(new I(this.ac,t)))},this.rf=t=>{(this.Yc>Gt.ff||this.Kc)&&this.Us(t)},this.qd=t=>{this.Vd(),this.Kc||(this.gd=!1,this.Us(t))},this.if=t=>{const i=this.ct;this.bd!==i&&(this.bd=i,this.Us(t))},this.As=t=>{this.Us(t)},this.Xd=t=>{if(this.md){if(this._d)return void(this._d=!1);this.md=!1,this.yd=!1,this.Us(t)}},this.Ye=t=>{this.gd||(this.gd=!0,this.Us(t))},this.Qd=t=>{!this.md&&this.Qc&&(this.md=!0,this.Us(t))},this.Nh=t=>{this.yd||(this.yd=!0,this.Us(t))},this.Zd=t=>{this.kd||(this.kd=!0,this.Us(t))},this.ef=t=>{const i=this.Yc;this.wd!==i&&(this.wd=i,this.Us(t))},this.vf=async()=>{try{await this.uf.pf([it.MULTIVIEW])}catch(t){this.Ul(),this.nd=ct(t,ht.LICENSE_INVALID_FEATURE),this.dd=!0,this.Co(new mi(this.nd))}},this.hf=t,this.zs=i,this.Tl=s;const e=Ti.mf,n=new Bt,h=new ot("11.12.1",e,n),o=new rt(s.isEmbeddable,"11.12.1",et());if(this.uf=new T(e,o,h,n,s,et()),this.uf.gf().then(this.vf),this.af=new Vc(this.Ta,this.zs),this.Hl=Yu(this.af,this.hf,s.ui),r(this.zs,Zc+this.Jl),Ti.ie.te){const t=this.Hl.el();r(t,"theo-mobile"),Ku(t)}this.Pd=new qc(this),this.Cd=new Xt(this.Pd),this.Cd.jn(Ut.yf,this.cf),this.Td=new fi(this,!0),this.Td.jn(Xc,this.Us),this.Td.jn(Ut.bf,this.lf),this.ed=new Gc(this,t,s)}};function el(t,i){var s;const e=hc(nt(X({},i||{}),{allowNativeFullscreen:!1,ui:nt(X({},(null==i?void 0:i.ui)||{}),{userActions:nt(X({},(null==i||null==(s=i.ui)?void 0:s.userActions)||{}),{click:!1})}),abr:nt(X({},(null==i?void 0:i.abr)||{}),{restrictToPlayerSize:!0})})),n=h.createElement("div");yi(n),t.appendChild(n);let r=new sl(t,n,e).Ta;return g.defineProperty(r,"constructor",{value:el}),r=vt(r),r}Vt(),Vt();var nl="vjs-selected",rl=class extends wu{Vr(t){const i=t.Fr,s=this.Hr.localize(i.label);y(t.Mh,s),t.el().setAttribute("aria-label",this.Hr.localize("Enable/disable")+" "+s),t.el().setAttribute("role","menuitemcheckbox"),t.selected(i.enabled)}Br(t){const i=super.Br(t);r(i.el(),"theo-multi-view-menu-item"),2===this.Dr.length&&r(i.el(),"theo-multi-view-menu-item-position-zero");const s=h.createElement("span");i.Mh=s;const e=h.createElement("div");e.className="theo-multi-view-menu-item-toggle",i.Ah=e;const n=t=>this.Ih(t,i);i.Eh=n,e.addEventListener("click",n);const o=h.createElement("div");return o.className="theo-multi-view-menu-item-toggle-slider",e.appendChild(o),i.el().appendChild(s),i.el().appendChild(e),this.wf.before(i.el()),i}kf(){const t=this.Er.addMenuItem().el();r(t,"theo-multi-view-menu-item"),r(t,"theo-multi-view-menu-layout-select");const i=h.createElement("button");i.className="vjs-icon-view-grid",i.addEventListener("click",()=>{this.xs.layout=il.GALLERY}),t.appendChild(i),this._f=i;const s=h.createElement("button");s.className="vjs-icon-view-spotlight",s.addEventListener("click",()=>{this.xs.layout=il.SPOTLIGHT}),t.appendChild(s),this.jf=s;const e=h.createElement("button");return e.className="vjs-icon-multi-view",e.addEventListener("click",()=>{this.xs.layout=il.OVERLAY}),t.appendChild(e),this.xf=e,t}Ih(t,i){t.stopImmediatePropagation(),this.$r(i)}$r(t){const i=t.Fr;for(const t of this.xs.views)t===i&&(t.enabled=!t.enabled);this.Vr(t)}Rr(t){t.Ah.removeEventListener("click",t.Eh),super.Rr(t)}constructor(t,i,s){super(t),this.xs=void 0,this.Hr=void 0,this.wf=void 0,this._f=void 0,this.xf=void 0,this.jf=void 0,this.Sf=t=>{this.Ir(t.view)},this.Tf=t=>{this.Ar(t.view)},this.Cf=t=>{const i=t.oldPosition,s=t.newPosition,e=w.max(i,s),n=w.min(i,s),o=h.getElementsByClassName("theo-multi-view-menu-item");o[e].before(o[n]),o[n].before(o[e]),0===n&&(di(o[e],"theo-multi-view-menu-item-position-zero"),r(o[n],"theo-multi-view-menu-item-position-zero"))},this.Pf=()=>{const t=this.xs.layout;pi(this._f,nl,t===il.GALLERY),pi(this.jf,nl,t===il.SPOTLIGHT),pi(this.xf,nl,t===il.OVERLAY)},i.views&&(this.xs=i,this.Hr=s,this.xs.multiViewPlayer.addEventListener(tl.Wc,this.Sf),this.xs.multiViewPlayer.addEventListener(tl.qc,this.Tf),this.xs.multiViewPlayer.addEventListener(tl.VIEW_CHANGE,this.Sf),this.xs.multiViewPlayer.addEventListener(tl.VIEW_POSITION_CHANGE,this.Cf),this.xs.multiViewPlayer.addEventListener(tl.Gc,this.Pf),y(this.Er.menuHeader.el(),this.Hr.localize("MultiView")),this.wf=this.kf(),this.Pf())}};sa.registerComponent("multiViewButton",class extends Ba{buildCSSClass(){return"vjs-icon-view-grid "+super.buildCSSClass()}dispose(){this.Ph.Le(),super.dispose()}constructor(t,i){super(t,i),this.Ph=void 0,this.minimumMenuItems=3,this.Ph=new rl(this.menu,this.js,t),this.controlText(t.localize("Views")),this.Re.$e=this.controlText()}});export{Vi as ChromelessPlayer,at as ErrorCategory,ht as ErrorCode,el as MultiViewPlayer,ac as Player,G as cache,z as cast,qi as features,Ki as players,is as registerContentProtectionIntegration,Hi as utils,Ji as version,sa as videojs};
|
|
37
|
+
Version: 11.14.0
|
|
38
|
+
Created: 2026-10-21T09:53:41.829Z
|
|
39
|
+
*/var e,t,i,r,s,n,a,o,l,h,u,c,d,p,_="u">typeof globalThis?globalThis:"u">typeof self?self:void 0!==v?v:"u">typeof global?global:this,v=_.window,m=_.document,y=(_.location,_.navigator,_.setTimeout),f=_.clearTimeout,g=(_.setInterval,_.clearInterval,_.Error),b=_.TypeError,C=_.SyntaxError,T=_.Object,k=_.Math,E=_.parseInt,w=_.parseFloat,S=_.isNaN,x=_.Uint8Array;_.Worker,_.WorkerGlobalScope,_.XMLHttpRequest;var P=function(e){var t="function"==typeof e&&!!e.iterator;if(t&&e.for&&e.dispose&&e.asyncDispose)return e;var i=0,r=t?function(t){return e(t)}:function(e){return"r"+e+"_"+ ++i},s=t?e.for||e:function(e){return"r"+e};function n(i){return t&&e[i]||s("Symbol."+i)}return r.for=s,r.iterator=n("iterator"),r.asyncIterator=n("asyncIterator"),r.dispose=n("dispose"),r.asyncDispose=n("asyncDispose"),r}(_.Symbol);import{$ as M,$t as L,A as A,At as I,B as V,Bt as j,C as D,Ct as B,D as F,Dt as N,E as O,F as R,Ft as $,G as U,Gt as H,H as z,Ht as W,I as q,It as Q,J as G,Jt as X,K as K,Kt as Y,L as J,Lt as Z,M as ee,Mt as et,N as ei,Nt as er,O as es,P as en,Pt as ea,Qt as eo,R as el,Rt as eh,S as eu,St as ec,T as ed,Tt as ep,U as e_,Ut as ev,V as em,Vt as ey,W as ef,Wt as eg,X as eb,Xt as eC,Y as eT,Yt as ek,Z as eE,Zt as ew,_ as eS,_n as ex,_t as eP,a as eM,an as eL,at as eA,b as eI,bn as eV,bt as ej,c as eD,cn as eB,ct as eF,d as eN,dn as eO,dt as eR,en as e$,et as eU,f as eH,fn as ez,ft as eW,g as eq,gn as eQ,gt as eG,h as eX,hn as eK,ht as eY,i as eJ,in as eZ,it as e0,j as e1,k as e2,kt as e3,l as e5,ln as e4,lt as e6,m as e9,mn as e7,mt as e8,n as te,nn as tt,nt as ti,o as tr,on as ts,ot as tn,p as ta,pn as to,pt as tl,q as th,qt as tu,r as tc,rn as td,rt as tp,s as t_,sn as tv,st as tm,t as ty,tt as tf,u as tg,un as tb,ut as tC,v as tT,vn as tk,vt as tE,w as tw,x as tS,xn as tx,xt as tP,y as tM,yn as tL,yt as tA,z as tI,zt as tV}from"./THEOplayer.common.esm.js";let tj=[],tD=[];function tB(e){tD.push(e)}/**
|
|
40
|
+
* @license
|
|
41
|
+
* Video.js 5.20.6-opentelly.14 <http://videojs.com/>
|
|
42
|
+
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
|
|
43
|
+
* Available under Apache License Version 2.0
|
|
44
|
+
* <https://github.com/videojs/video.js/blob/master/LICENSE>
|
|
45
|
+
*/var tF=void 0!==v?v:"u">typeof global?global:"u">typeof self?self:{},tN=void 0!==m?m:{createElement:function(){}};function tO(e,t){return t||(t=e.slice(0)),e.raw=t,e}var tR=1,t$=T.prototype.toString,tU=function(e){return tW(e)?T.keys(e):[]};function tH(e,t){tU(e).forEach(function(i){return t(e[i],i)})}function tz(e){for(var t=arguments.length,i=Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return T.assign?T.assign.apply(T,[e].concat(i)):(i.forEach(function(t){t&&tH(t,function(t,i){e[i]=t})}),e)}function tW(e){return!!e&&"object"==typeof e}function tq(e){return tW(e)&&"[object Object]"===t$.call(e)&&e.constructor===T}var tQ=function(e,t,i){void 0===i&&(i=!!iD&&iD<11),"log"!==e&&t.unshift(e.toUpperCase()+":"),o.history.push(t),t.unshift("VIDEOJS:");var r=tF.console&&tF.console[e];r&&(i&&(t=t.map(function(e){if(tW(e)||Array.isArray(e))try{return JSON.stringify(e)}catch(e){}return String(e)}).join(" ")),r.apply?r[Array.isArray(t)?"apply":"call"](tF.console,t):r(t))};(o=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];tQ("log",t)}).history=[],o.error=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return tQ("error",t)},o.warn=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return tQ("warn",t)};var tG=o,tX="u">typeof globalThis?globalThis:void 0!==v?v:"u">typeof global?global:"u">typeof self?self:{},tK=function(e){for(var t="",i=0;i<arguments.length;i++)t+=e[i].replace(/\n\r?\s*/g,"")+(arguments[i+1]||"");return t};function tY(e){return"string"==typeof e&&/\S/.test(e)}function tJ(e){if(/\s/.test(e))throw new g("class has illegal whitespace characters")}function tZ(){return tN===tF.document&&void 0!==tN.createElement}function t0(e){return tW(e)&&1===e.nodeType}function t1(e){return function(t,i){if(!tY(t))return tN[e](null);tY(i)&&(i=tN.querySelector(i));var r=t0(i)?i:tN;return r[e]&&r[e](t)}}function t2(e,t,i,r){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===i&&(i={});var s=tN.createElement(e);return T.getOwnPropertyNames(t).forEach(function(e){var i=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(tG.warn(tK(l||(l=tO(["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,i)),s.setAttribute(e,i)):"textContent"===e?t3(s,i):s[e]=i}),T.getOwnPropertyNames(i).forEach(function(e){s.setAttribute(e,i[e])}),r&&ip(s,r),s}function t3(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function t5(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}var t4={},t6="vdata"+(new Date).getTime();function t9(e){var t=e[t6];return t||(t=e[t6]=tR++),t4[t]||(t4[t]={}),t4[t]}function t7(e){var t=e[t6];return!!t&&!!T.getOwnPropertyNames(t4[t]).length}function t8(e){var t=e[t6];if(t){delete t4[t];try{delete e[t6]}catch(t){e.removeAttribute?e.removeAttribute(t6):e[t6]=null}}}function ie(e,t){return(tJ(t),e.classList)?e.classList.contains(t):RegExp("(^|\\s)"+t+"($|\\s)").test(e.className)}function it(e,t){return e.classList?e.classList.add(t):ie(e,t)||(e.className=(e.className+" "+t).trim()),e}function ii(e,t){return e.classList?e.classList.remove(t):(tJ(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e}function ir(e,t,i){var r=ie(e,t);if("function"==typeof i&&(i=i(e,t)),"boolean"!=typeof i&&(i=!r),i!==r)return i?it(e,t):ii(e,t),e}function is(e,t){T.getOwnPropertyNames(t).forEach(function(i){var r=t[i];null==r||!1===r?e.removeAttribute(i):e.setAttribute(i,!0===r?"":r)})}function ia(e){var t={};if(e&&e.attributes&&e.attributes.length>0)for(var i=e.attributes,r=i.length-1;r>=0;r--){var s=i[r].name,n=i[r].value;("boolean"==typeof e[s]||-1!==",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+s+","))&&(n=null!==n),t[s]=n}return t}function io(e,t,i){e.setAttribute(t,i)}function il(e,t){e.removeAttribute(t)}function ih(e){if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var t,i=tN.documentElement,r=tN.body,s=i.clientLeft||r.clientLeft||0,n=tF.pageXOffset||r.scrollLeft,a=t.left+n-s,o=i.clientTop||r.clientTop||0,l=tF.pageYOffset||r.scrollTop,h=t.top+l-o;return{left:k.round(a),top:k.round(h)}}function iu(e,t){var i={},r=ih(e),s=e.offsetWidth,n=e.offsetHeight,a=r.top,o=r.left,l=t.pageY,h=t.pageX;return t.changedTouches&&(h=t.changedTouches[0].pageX,l=t.changedTouches[0].pageY),i.y=k.max(0,k.min(1,(a-l+n)/n)),i.x=k.max(0,k.min(1,(h-o)/s)),i}function ic(e){return tW(e)&&3===e.nodeType}function id(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function ip(e,t){var i;return("function"==typeof(i=t)&&(i=i()),(Array.isArray(i)?i:[i]).map(function(e){return("function"==typeof e&&(e=e()),t0(e)||ic(e))?e:"string"==typeof e&&/\S/.test(e)?tN.createTextNode(e):void 0}).filter(function(e){return e})).forEach(function(t){return e.appendChild(t)}),e}function i_(e,t){return ip(id(e),t)}var iv=t1("querySelector"),im=t1("querySelectorAll"),iy=tF.navigator&&tF.navigator.userAgent||"",ig=/AppleWebKit\/([\d.]+)/i.exec(iy),ib=ig?w(ig.pop()):null,iC=/iPad/i.test(iy),iT=/iPhone/i.test(iy)&&!iC,ik=/iPod/i.test(iy),iE=iT||iC||ik,iw=(e=iy.match(/OS (\d+)_/i))&&e[1]?e[1]:null,iS=/Android/i.test(iy),ix=function(){var e=iy.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&w(e[1]),i=e[2]&&w(e[2]);return t&&i?w(e[1]+"."+e[2]):t||null}(),iP=iS&&/webkit/i.test(iy)&&ix<2.3,iM=iS&&ix<5&&ib<537,iL=/Firefox/i.test(iy),iA=/Edge/i.test(iy),iI=!iA&&/Chrome/i.test(iy),iV=(t=iy.match(/Chrome\/(\d+)/))&&t[1]?w(t[1]):null,ij=/MSIE\s8\.0/.test(iy),iD=(!(r=(i=/MSIE\s(\d+)\.\d/.exec(iy))&&w(i[1]))&&/Trident\/7.0/i.test(iy)&&/rv:11.0/.test(iy)&&(r=11),r),iB=/Safari/i.test(iy)&&!iI&&!iS&&!iA,iF=iB||iE,iN=tZ()&&("ontouchstart"in tF||tF.DocumentTouch&&tF.document instanceof tF.DocumentTouch),iO=tZ()&&"backgroundSize"in tF.document.createElement("video").style,iR=T.freeze({__proto__:null,IS_IPAD:iC,IS_IPHONE:iT,IS_IPOD:ik,IS_IOS:iE,IOS_VERSION:iw,IS_ANDROID:iS,ANDROID_VERSION:ix,IS_OLD_ANDROID:iP,IS_NATIVE_ANDROID:iM,IS_FIREFOX:iL,IS_EDGE:iA,IS_CHROME:iI,CHROME_VERSION:iV,IS_IE8:ij,IE_VERSION:iD,IS_SAFARI:iB,IS_ANY_SAFARI:iF,TOUCH_ENABLED:iN,BACKGROUND_SIZE_SUPPORTED:iO});function i$(e,t){var i=t9(e);0===i.handlers[t].length&&(delete i.handlers[t],e.removeEventListener?e.removeEventListener(t,i.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,i.dispatcher)),T.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled),0===T.getOwnPropertyNames(i).length&&t8(e)}function iU(e,t,i,r){i.forEach(function(i){e(t,i,r)})}function iH(e){function t(){return!0}function i(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var r=e||tF.event;for(var s in e={},r)"layerX"===s||"layerY"===s||"keyLocation"===s||"webkitMovementX"===s||"webkitMovementY"===s||"path"===s||"returnValue"===s&&r.preventDefault||(e[s]=r[s]);if(e.target||(e.target=e.srcElement||tN),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){r.preventDefault&&r.preventDefault(),e.returnValue=!1,r.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),e.cancelBubble=!0,r.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=i,e.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=i,null!==e.clientX&&void 0!==e.clientX){var n=tN.documentElement,a=tN.body;e.pageX=e.clientX+(n&&n.scrollLeft||a&&a.scrollLeft||0)-(n&&n.clientLeft||a&&a.clientLeft||0),e.pageY=e.clientY+(n&&n.scrollTop||a&&a.scrollTop||0)-(n&&n.clientTop||a&&a.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 iz=!1;try{var iW=T.defineProperty({},"passive",{get:function(){iz=!0}});tF.addEventListener("test",null,iW)}catch(e){}var iq=["touchstart","touchmove"];function iQ(e,t,i){if(Array.isArray(t))return iU(iQ,e,t,i);var r=t9(e);if(r.handlers||(r.handlers={}),r.handlers[t]||(r.handlers[t]=[]),i.guid||(i.guid=tR++),r.handlers[t].push(i),r.dispatcher||(r.disabled=!1,r.dispatcher=function(t,i){if(!r.disabled){t=iH(t);var s=r.handlers[t.type];if(s)for(var n=s.slice(0),a=0,o=n.length;a<o;a++)if(t.isImmediatePropagationStopped())break;else try{n[a].call(e,t,i)}catch(e){tG.error(e)}}}),1===r.handlers[t].length)if(e.addEventListener){var s=!1;iz&&iq.indexOf(t)>-1&&(s={passive:!0}),e.addEventListener(t,r.dispatcher,s)}else e.attachEvent&&e.attachEvent("on"+t,r.dispatcher)}function iG(e,t,i){if(t7(e)){var r=t9(e);if(r.handlers){if(Array.isArray(t))return iU(iG,e,t,i);var s=function(t){r.handlers[t]=[],i$(e,t)};if(!t){for(var n in r.handlers)s(n);return}var a=r.handlers[t];if(a){if(!i)return void s(t);if(i.guid)for(var o=0;o<a.length;o++)a[o].guid===i.guid&&a.splice(o--,1);i$(e,t)}}}}function iX(e,t,i){var r=t7(e)?t9(e):{},s=e.parentNode||e.ownerDocument;if("string"==typeof t&&(t={type:t,target:e}),t=iH(t),r.dispatcher&&r.dispatcher.call(e,t,i),s&&!t.isPropagationStopped()&&!0===t.bubbles)iX.call(null,s,t,i);else if(!s&&!t.defaultPrevented){var n=t9(t.target);t.target[t.type]&&(n.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),n.disabled=!1)}return!t.defaultPrevented}function iK(e,t,i){if(Array.isArray(t))return iU(iK,e,t,i);var r=function r(){iG(e,t,r),i.apply(this,arguments)};r.guid=i.guid=i.guid||tR++,iQ(e,t,r)}var iY=!1,iJ=function(){if(tZ()){var e=tN.getElementsByTagName("video"),t=tN.getElementsByTagName("audio"),i=[];if(e&&e.length>0)for(var r=0,s=e.length;r<s;r++)i.push(e[r]);if(t&&t.length>0)for(var n=0,a=t.length;n<a;n++)i.push(t[n]);if(i&&i.length>0)for(var o=0,l=i.length;o<l;o++){var u=i[o];if(u&&u.getAttribute)void 0===u.player&&null!==u.getAttribute("data-setup")&&h(u);else{iZ(1);break}}else iY||iZ(1)}};function iZ(e,t){t&&(h=t),tF.setTimeout(iJ,e)}tZ()&&"complete"===tN.readyState?iY=!0:iK(tF,"load",function(){iY=!0});var i0=function(e){var t=tN.createElement("style");return t.className=e,t},i1=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},i2=function(e,t,i){t.guid||(t.guid=tR++);var r=function(){return t.apply(e,arguments)};return r.guid=i?i+"_"+t.guid:t.guid,r},i3=function(e,t){var i=Date.now();return function(){var r=Date.now();r-i>=t&&(e.apply(void 0,arguments),i=r)}};function i5(e){return"string"!=typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}function i4(){for(var e={},t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];return i.forEach(function(t){t&&tH(t,function(t,i){if(!tq(t)){e[i]=t;return}tq(e[i])||(e[i]={}),e[i]=i4(e[i],t)})}),e}var i6=function(){function e(e,t,i){if(!e&&this.play?this.R5=e=this:this.R5=e,this.e=i4({},this.e),t=this.e=i4(this.e,t),this.uZ=t.id||t.el&&t.el.id,!this.uZ){var r=e&&e.id&&e.id()||"no_player";this.uZ=r+"t"+tR++}this.h$=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),this.h4=[],this.s={},this.n={},!1!==t.initChildren&&this.initChildren(),this.ready(i),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.h4)for(var e=this.h4.length-1;e>=0;e--)this.h4[e].dispose&&this.h4[e].dispose();this.h4=null,this.s=null,this.n=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),t8(this.el_),this.el_=null},t.player=function(){return this.R5},t.options=function(e){return tG.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),e&&(this.e=i4(this.e,e)),this.e},t.el=function(){return this.el_},t.createEl=function(e,t,i){return t2(e,t,i)},t.localize=function(e){var t=this.R5.language&&this.R5.language(),i=this.R5.languages&&this.R5.languages();if(!t||!i)return e;var r=i[t];if(r&&r[e])return r[e];var s=i[t.split("-")[0]];return s&&s[e]?s[e]:e},t.contentEl=function(){return this.o||this.el_},t.id=function(){return this.uZ},t.name=function(){return this.h$},t.children=function(){return this.h4},t.getChildById=function(e){return this.s[e]},t.getChild=function(e){if(e)return e=i5(e),this.n[e]},t.addChild=function(t,i,r){if(void 0===i&&(i={}),void 0===r&&(r=this.h4.length),"string"==typeof t){n=i5(t),i||(i={}),!0===i&&(tG.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`."),i={});var s,n,a=i.componentClass||n;i.name=n;var o=e.getComponent(a);if(!o)throw new g("Component "+a+" does not exist");if("function"!=typeof o)return null;s=new o(this.R5||this,i)}else s=t;if(this.h4.splice(r,0,s),"function"==typeof s.id&&(this.s[s.id()]=s),(n=n||s.name&&i5(s.name()))&&(this.n[n]=s),"function"==typeof s.el&&s.el()){var l=this.contentEl().children[r]||null;this.contentEl().insertBefore(s.el(),l)}return s},t.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.h4){for(var t=!1,i=this.h4.length-1;i>=0;i--)if(this.h4[i]===e){t=!0,this.h4.splice(i,1);break}if(t){this.s[e.id()]=null,this.n[e.name()]=null;var r=e.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,i=this.e.children;if(i){var r,s=this.e,n=e.getComponent("Tech");(r=Array.isArray(i)?i:T.keys(i)).concat(T.keys(this.e).filter(function(e){return!r.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(e){var r,s;return"string"==typeof e?s=i[r=e]||t.e[r]||{}:(r=e.name,s=e),{name:r,opts:s}}).filter(function(t){var i=e.getComponent(t.opts.componentClass||i5(t.name));return i&&!n.isTech(i)}).forEach(function(e){var i=e.name,r=e.opts;if(void 0!==s[i]&&(r=s[i]),!1!==r){!0===r&&(r={}),r.playerOptions=t.e.playerOptions;var n=t.addChild(i,r);n&&(t[i]=n)}})}},t.buildCSSClass=function(){return""},t.on=function(e,t,i){var r=this;if("string"==typeof e||Array.isArray(e))iQ(this.el_,e,i2(this,t));else{var s=i2(this,i),n=function(){return r.off(e,t,s)};n.guid=s.guid,this.on("dispose",n);var a=function(){return r.off("dispose",n)};a.guid=s.guid,e.nodeName?(iQ(e,t,s),iQ(e,"dispose",a)):"function"==typeof e.on&&(e.on(t,s),e.on("dispose",a))}return this},t.off=function(e,t,i){if(!e||"string"==typeof e||Array.isArray(e))iG(this.el_,e,t);else{var r=i2(this,i);this.off("dispose",r),e.nodeName?(iG(e,t,r),iG(e,"dispose",r)):(e.off(t,r),e.off("dispose",r))}return this},t.one=function(e,t,i){var r=arguments,s=this;if("string"==typeof e||Array.isArray(e))iK(this.el_,e,i2(this,t));else{var n=i2(this,i),a=function i(){s.off(e,t,i),n.apply(null,r)};a.guid=n.guid,this.on(e,t,a)}return this},t.trigger=function(e,t){return iX(this.el_,e,t),this},t.ready=function(e,t){return void 0===t&&(t=!1),e&&(this.l?t?e.call(this):this.setTimeout(e,1):(this.h=this.h||[],this.h.push(e))),this},t.triggerReady=function(){this.l=!0,this.setTimeout(function(){var e=this.h;this.h=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},t.$=function(e,t){return iv(e,t||this.contentEl())},t.$$=function(e,t){return im(e,t||this.contentEl())},t.hasClass=function(e){return ie(this.el_,e)},t.addClass=function(e){return it(this.el_,e),this},t.removeClass=function(e){return ii(this.el_,e),this},t.toggleClass=function(e,t){return ir(this.el_,e,t),this},t.show=function(){return this.removeClass("vjs-hidden"),this},t.hide=function(){return this.addClass("vjs-hidden"),this},t.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},t.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},t.getAttribute=function(e){var t;return t=this.el_,t.getAttribute(e)},t.setAttribute=function(e,t){return io(this.el_,e,t),this},t.removeAttribute=function(e){return il(this.el_,e),this},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){return this.width(e,!0).height(t)},t.dimension=function(e,t,i){if(void 0!==t)return(null===t||t!=t)&&(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:"auto"===t?this.el_.style[e]="":this.el_.style[e]=t+"px",i||this.trigger("resize"),this;if(!this.el_)return 0;var r=this.el_.style[e],s=r.indexOf("px");return -1!==s?E(r.slice(0,s),10):E(this.el_["offset"+i5(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new g("currentDimension only accepts width or height value");if("function"==typeof tF.getComputedStyle){var i=tF.getComputedStyle(this.el_);t=i.getPropertyValue(e)||i[e]}if(0===(t=w(t))){var r="offset"+i5(e);t=this.el_[r]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.emitTapEvents=function(){var e,t=0,i=null;this.on("touchstart",function(r){1===r.touches.length&&(i={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},t=(new Date).getTime(),e=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)e=!1;else if(i){var r=t.touches[0].pageX-i.pageX,s=t.touches[0].pageY-i.pageY;k.sqrt(r*r+s*s)>10&&(e=!1)}});var r=function(){e=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",function(r){i=null,!0===e&&(new Date).getTime()-t<200&&(r.preventDefault(),this.trigger("tap"))})},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=i2(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var i=function(i){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",i),this.on("touchcancel",i)}},t.setTimeout=function(e,t){e=i2(this,e);var i=tF.setTimeout(e,t),r=function(){this.clearTimeout(i)};return r.guid="vjs-timeout-"+i,this.on("dispose",r),i},t.clearTimeout=function(e){tF.clearTimeout(e);var t=function(){};return t.guid="vjs-timeout-"+e,this.off("dispose",t),e},t.setInterval=function(e,t){e=i2(this,e);var i=tF.setInterval(e,t),r=function(){this.clearInterval(i)};return r.guid="vjs-interval-"+i,this.on("dispose",r),i},t.clearInterval=function(e){tF.clearInterval(e);var t=function(){};return t.guid="vjs-interval-"+e,this.off("dispose",t),e},e.registerComponent=function(t,i){if(t){if(t=i5(t),e.c||(e.c={}),"Player"===t&&e.c[t]){var r=e.c[t];if(r.players&&T.keys(r.players).length>0&&T.keys(r.players).map(function(e){return r.players[e]}).every(Boolean))throw new g("Can not register Player component after player has been created")}return e.c[t]=i,i}},e.getComponent=function(t){if(t){if(t=i5(t),e.c&&e.c[t])return e.c[t];if(tF&&tF.videojs&&tF.videojs[t])return tG.warn("The "+t+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),tF.videojs[t]}},e.extend=function(t){t=t||{},tG.warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var i=t.init||t.init||this.prototype.init||this.prototype.init||function(){},r=function(){i.apply(this,arguments)};for(var s in r.prototype=T.create(this.prototype),r.prototype.constructor=r,r.extend=e.extend,t)t.hasOwnProperty(s)&&(r.prototype[s]=t[s]);return r},e}();i6.registerComponent("Component",i6);var i9=function(){};function i7(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i8(e,t){return(i8=T.setPrototypeOf?T.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function re(e,t){e.prototype=T.create(t.prototype),e.prototype.constructor=e,i8(e,t)}function rt(e,t,i,r){void 0===r&&(tG.warn("DEPRECATED: Function '"+e+"' on 'TimeRanges' called without an index argument."),r=0);var s=r,n=i.length-1;if(s<0||s>n)throw new g("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+s+") is greater than or equal to the maximum bound ("+n+").");return i[r][t]}function ri(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:rt.bind(null,"start",0,e),end:rt.bind(null,"end",1,e)}}function rr(e,t){return Array.isArray(e)?ri(e):void 0===e||void 0===t?ri():ri([[e,t]])}function rs(e,t){var i,r,s=0;if(!t)return 0;e&&e.length||(e=rr(0,0));for(var n=0;n<e.length;n++)i=e.start(n),(r=e.end(n))>t&&(r=t),s+=r-i;return s/t}i9.prototype.d={},i9.prototype.on=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},iQ(this,e,t),this.addEventListener=i},i9.prototype.addEventListener=i9.prototype.on,i9.prototype.off=function(e,t){iG(this,e,t)},i9.prototype.removeEventListener=i9.prototype.off,i9.prototype.one=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},iK(this,e,t),this.addEventListener=i},i9.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=iH(e),this.d[t]&&this["on"+t]&&this["on"+t](e),iX(this,e)},i9.prototype.dispatchEvent=i9.prototype.trigger;for(var rn={prefixed:!0},ra=[["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"]],ro=ra[0],rl=0;rl<ra.length;rl++)if(ra[rl][1]in tN){u=ra[rl];break}if(u){for(var rh=0;rh<u.length;rh++)rn[ro[rh]]=u[rh];rn.prefixed=u[0]!==ro[0]}function ru(e){if(e instanceof ru)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:tW(e)&&("number"==typeof e.code&&(this.code=e.code),tz(this,e)),this.message||(this.message=ru.defaultMessages[this.code]||"")}ru.prototype.code=0,ru.prototype.message="",ru.prototype.status=null,ru.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],ru.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."};for(var rc=0;rc<ru.errorTypes.length;rc++)ru[ru.errorTypes[rc]]=rc,ru.prototype[ru.errorTypes[rc]]=rc;var rd=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,i,r){return e[i]&&(t[i]=e[i]),t},{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})},rp=function(e){var t=e.$$("track"),i=Array.prototype.map.call(t,function(e){return e.track});return Array.prototype.map.call(t,function(e){var t=rd(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return -1===i.indexOf(e)}).map(rd))},r_="vjs-modal-dialog",rv=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.v=r.m=r.f=!1,r.closeable(!r.e.uncloseable),r.content(r.e.content),r.o=t2("div",{className:r_+"-content"},{role:"document"}),r.g=t2("p",{className:r_+"-description vjs-offscreen",id:r.el().getAttribute("aria-describedby")}),t3(r.g,r.description()),r.el_.appendChild(r.g),r.el_.appendChild(r.o),r.on(t,"languagechange",r.handleLanguagechange),r}re(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"b","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},i.buildCSSClass=function(){return r_+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},i.handleKeyPress=function(e){27===e.which&&this.closeable()&&this.close()},i.label=function(){return this.e.label||this.localize("Modal Window")},i.description=function(){var e=this.e.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},i.open=function(){if(!this.v){var e=this.player();this.trigger("beforemodalopen"),this.v=!0,!this.e.fillAlways&&(this.m||this.f)||this.fill(),this.C=!e.paused(),this.e.pauseOnOpen&&this.C&&e.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",i2(this,this.handleKeyPress)),e.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.m=!0}return this},i.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.v},i.close=function(){if(this.v){var e=this.player();this.trigger("beforemodalclose"),this.v=!1,this.C&&this.e.pauseOnOpen&&e.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",i2(this,this.handleKeyPress)),e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.e.temporary&&this.dispose()}return this},i.closeable=function(e){if("boolean"==typeof e){var t=this.T=!!e,i=this.getChild("closeButton");if(t&&!i){var r=this.o;this.o=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.o=r,this.on(i,"close",this.close)}!t&&i&&(this.off(i,"close",this.close),this.removeChild(i),i.dispose())}return this.T},i.fill=function(){return this.fillWith(this.content())},i.fillWith=function(e){var t=this.contentEl(),i=t.parentNode,r=t.nextSibling;return this.trigger("beforemodalfill"),this.f=!0,i.removeChild(t),this.empty(),i_(t,e),this.trigger("modalfill"),r?i.insertBefore(t,r):i.appendChild(t),this},i.empty=function(){return this.trigger("beforemodalempty"),id(this.contentEl()),this.trigger("modalempty"),this},i.content=function(e){return void 0!==e&&(this.cP=e),this.cP},i.handleLanguagechange=function(){this.el_.setAttribute("aria-label",this.label()),t3(this.g,this.description()),this.opened()?this.fill():(this.m||this.f)&&(this.m=!1,this.f=!1,this.empty())},t}(i6);rv.prototype.e={pauseOnOpen:!0,temporary:!0},i6.registerComponent("ModalDialog",rv);var rm=function(){function e(t){var i=this;if(ij)for(var r in i=tN.createElement("custom"),e.prototype)"constructor"!==r&&(i[r]=e.prototype[r]);if(e.prototype.k.call(i,t),T.defineProperty(i,"length",{get:function(){return this.uH}}),ij)return i}var t=e.prototype;return t.k=function(e){var t=this.length||0,i=0,r=e.length;this.fA=e,this.uH=e.length;var s=function(e){""+e in this||T.defineProperty(this,""+e,{get:function(){return this.fA[e]}})};if(t<r)for(i=t;i<r;i++)s.call(this,i)},t.getCueById=function(e){for(var t=null,i=0,r=this.length;i<r;i++){var s=this[i];if(s.id===e){t=s;break}}return t},e}(),ry={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},rf={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},rg={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},rb={disabled:"disabled",hidden:"hidden",showing:"showing"},rC=function(e){function t(i){void 0===i&&(i={});var r=e.call(this)||this,s=i7(r);if(ij)for(var n in s=tN.createElement("custom"),t.prototype)"constructor"!==n&&(s[n]=t.prototype[n]);var a={id:i.id||["vjs_track",tR++].join("_"),kind:i.kind||"",label:i.label||"",language:i.language||""},o=function(e){T.defineProperty(s,e,{get:function(){return a[e]},set:function(){}})};for(var l in a)o(l);return s||i7(r)}return re(t,e),t}(i9),rT=function(e){var t,i=["protocol","hostname","port","pathname","search","hash","host"],r=tN.createElement("a");r.href=e;var s=""===r.host&&"file:"!==r.protocol;s&&((t=tN.createElement("div")).innerHTML='<a href="'+e+'"></a>',r=t.firstChild,t.setAttribute("style","display:none; position:absolute;"),tN.body.appendChild(t));for(var n={},a=0;a<i.length;a++)n[i[a]]=r[i[a]];return"http:"===n.protocol&&(n.host=n.host.replace(/:80$/,"")),"https:"===n.protocol&&(n.host=n.host.replace(/:443$/,"")),s&&tN.body.removeChild(t),n},rk=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(e);if(t)return t.pop().toLowerCase()}return""},rE=function(e){var t=tF.location,i=rT(e);return(":"===i.protocol?t.protocol:i.protocol)+i.host!==t.protocol+t.host},rw={exports:{}};void 0!==v?rw.exports=v:void 0!==tX?rw.exports=tX:"u">typeof self?rw.exports=self:rw.exports={};var rS=T.prototype.toString,rx=Array.prototype.slice,rP=T.prototype.toString,rM=Function.prototype.bind||function(e){var t,i=this;if("function"!=typeof i||"[object Function]"!==rP.call(i))throw new b("Function.prototype.bind called on incompatible "+i);for(var r=rx.call(arguments,1),s=k.max(0,i.length-r.length),n=[],a=0;a<s;a++)n.push("$"+a);if(t=Function("binder","return function ("+n.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(!(this instanceof t))return i.apply(e,r.concat(rx.call(arguments)));var s=i.apply(this,r.concat(rx.call(arguments)));return T(s)===s?s:this}),i.prototype){var o=function(){};o.prototype=i.prototype,t.prototype=new o,o.prototype=null}return t},rL=T.prototype.toString,rA=function(e){var t=rL.call(e),i="[object Arguments]"===t;return i||(i="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===rL.call(e.callee)),i};if(!T.keys){var rI=T.prototype.hasOwnProperty,rV=T.prototype.toString,rj=T.prototype.propertyIsEnumerable,rD=!rj.call({toString:null},"toString"),rB=rj.call(function(){},"prototype"),rF=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],rN=function(e){var t=e.constructor;return t&&t.prototype===e},rO={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!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},rR=function(){if(void 0===v)return!1;for(var e in v)try{if(!rO["$"+e]&&rI.call(v,e)&&null!==v[e]&&"object"==typeof v[e])try{rN(v[e])}catch(e){return!0}}catch(e){return!0}return!1}(),r$=function(e){if(void 0===v||!rR)return rN(e);try{return rN(e)}catch(e){return!1}};c=function(e){var t=null!==e&&"object"==typeof e,i="[object Function]"===rV.call(e),r=rA(e),s=t&&"[object String]"===rV.call(e),n=[];if(!t&&!i&&!r)throw new b("Object.keys called on a non-object");var a=rB&&i;if(s&&e.length>0&&!rI.call(e,0))for(var o=0;o<e.length;++o)n.push(String(o));if(r&&e.length>0)for(var l=0;l<e.length;++l)n.push(String(l));else for(var h in e)!(a&&"prototype"===h)&&rI.call(e,h)&&n.push(String(h));if(rD)for(var u=r$(e),c=0;c<rF.length;++c)!(u&&"constructor"===rF[c])&&rI.call(e,rF[c])&&n.push(rF[c]);return n}}var rU=c,rH=Array.prototype.slice,rz=T.keys,rW=rz?function(e){return rz(e)}:rU,rq=T.keys;rW.shim=function(){return T.keys?!function(){var e=T.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(T.keys=function(e){return rA(e)?rq(rH.call(e)):rq(e)}):T.keys=rW,T.keys||rW};var rQ="function"==typeof P&&"symbol"==typeof P("foo"),rG=T.prototype.toString,rX=Array.prototype.concat,rK=T.defineProperty,rY=rK&&function(){var e={};try{for(var t in rK(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),rJ=function(e,t,i,r){(!(t in e)||"function"==typeof r&&"[object Function]"===rG.call(r)&&r())&&(rY?rK(e,t,{configurable:!0,enumerable:!1,value:i,writable:!0}):e[t]=i)},rZ=function(e,t){var i=arguments.length>2?arguments[2]:{},r=rW(t);rQ&&(r=rX.call(r,T.getOwnPropertySymbols(t)));for(var s=0;s<r.length;s+=1)rJ(e,r[s],t[r[s]],i[r[s]])};rZ.supportsDescriptors=!!rY;var r0=T.getOwnPropertyDescriptor?function(){return T.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new b},r1="function"==typeof P&&"symbol"==typeof P.iterator,r2=T.getPrototypeOf||function(e){return e.__proto__},r3=void 0===x?d:r2(x),r5={"$ %Array%":Array,"$ %ArrayBuffer%":"u"<typeof ArrayBuffer?d:ArrayBuffer,"$ %ArrayBufferPrototype%":"u"<typeof ArrayBuffer?d:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":r1?r2([][P.iterator]()):d,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":d,"$ %AsyncFunction%":d,"$ %AsyncFunctionPrototype%":d,"$ %AsyncGenerator%":d,"$ %AsyncGeneratorFunction%":d,"$ %AsyncGeneratorPrototype%":d,"$ %AsyncIteratorPrototype%":d,"$ %Atomics%":"u"<typeof Atomics?d:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"u"<typeof DataView?d:DataView,"$ %DataViewPrototype%":"u"<typeof DataView?d: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?d:Float32Array,"$ %Float32ArrayPrototype%":"u"<typeof Float32Array?d:Float32Array.prototype,"$ %Float64Array%":"u"<typeof Float64Array?d:Float64Array,"$ %Float64ArrayPrototype%":"u"<typeof Float64Array?d:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":d,"$ %GeneratorFunction%":d,"$ %GeneratorPrototype%":d,"$ %Int8Array%":"u"<typeof Int8Array?d:Int8Array,"$ %Int8ArrayPrototype%":"u"<typeof Int8Array?d:Int8Array.prototype,"$ %Int16Array%":"u"<typeof Int16Array?d:Int16Array,"$ %Int16ArrayPrototype%":"u"<typeof Int16Array?d:Int8Array.prototype,"$ %Int32Array%":"u"<typeof Int32Array?d:Int32Array,"$ %Int32ArrayPrototype%":"u"<typeof Int32Array?d:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":S,"$ %IteratorPrototype%":r1?r2(r2([][P.iterator]())):d,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"u"<typeof Map?d:Map,"$ %MapIteratorPrototype%":"u">typeof Map&&r1?r2((new Map)[P.iterator]()):d,"$ %MapPrototype%":"u"<typeof Map?d:Map.prototype,"$ %Math%":k,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":T,"$ %ObjectPrototype%":T.prototype,"$ %ObjProto_toString%":T.prototype.toString,"$ %ObjProto_valueOf%":T.prototype.valueOf,"$ %parseFloat%":w,"$ %parseInt%":E,"$ %Promise%":"u"<typeof Promise?d:Promise,"$ %PromisePrototype%":"u"<typeof Promise?d:Promise.prototype,"$ %PromiseProto_then%":"u"<typeof Promise?d:Promise.prototype.then,"$ %Promise_all%":"u"<typeof Promise?d:Promise.all,"$ %Promise_reject%":"u"<typeof Promise?d:Promise.reject,"$ %Promise_resolve%":"u"<typeof Promise?d:Promise.resolve,"$ %Proxy%":"u"<typeof Proxy?d:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"u"<typeof Reflect?d:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"u"<typeof Set?d:Set,"$ %SetIteratorPrototype%":"u">typeof Set&&r1?r2((new Set)[P.iterator]()):d,"$ %SetPrototype%":"u"<typeof Set?d:Set.prototype,"$ %SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?d:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"u"<typeof SharedArrayBuffer?d:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":r1?r2(""[P.iterator]()):d,"$ %StringPrototype%":String.prototype,"$ %Symbol%":r1?P:d,"$ %SymbolPrototype%":r1?P.prototype:d,"$ %SyntaxError%":C,"$ %SyntaxErrorPrototype%":C.prototype,"$ %ThrowTypeError%":r0,"$ %TypedArray%":r3,"$ %TypedArrayPrototype%":r3?r3.prototype:d,"$ %TypeError%":b,"$ %TypeErrorPrototype%":b.prototype,"$ %Uint8Array%":void 0===x?d:x,"$ %Uint8ArrayPrototype%":void 0===x?d:x.prototype,"$ %Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?d:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"u"<typeof Uint8ClampedArray?d:Uint8ClampedArray.prototype,"$ %Uint16Array%":"u"<typeof Uint16Array?d:Uint16Array,"$ %Uint16ArrayPrototype%":"u"<typeof Uint16Array?d:Uint16Array.prototype,"$ %Uint32Array%":"u"<typeof Uint32Array?d:Uint32Array,"$ %Uint32ArrayPrototype%":"u"<typeof Uint32Array?d:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"u"<typeof WeakMap?d:WeakMap,"$ %WeakMapPrototype%":"u"<typeof WeakMap?d:WeakMap.prototype,"$ %WeakSet%":"u"<typeof WeakSet?d:WeakSet,"$ %WeakSetPrototype%":"u"<typeof WeakSet?d:WeakSet.prototype},r4=function(e,t){if(arguments.length>1&&"boolean"!=typeof t)throw new b('"allowMissing" argument must be a boolean');var i="$ "+e;if(!(i in r5))throw new C("intrinsic "+e+" does not exist!");if(void 0===r5[i]&&!t)throw new b("intrinsic "+e+" exists, but is not available. Please file an issue!");return r5[i]},r6=rM.call(Function.call,T.prototype.hasOwnProperty),r9=r4("%TypeError%"),r7=r4("%SyntaxError%"),r8={"Property Descriptor":function(e,t){if("Object"!==e.Type(t))return!1;var i={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(r6(t,r)&&!i[r])return!1;var s=r6(t,"[[Value]]"),n=r6(t,"[[Get]]")||r6(t,"[[Set]]");if(s&&n)throw new r9("Property Descriptors may not be both accessor and data descriptors");return!0}},se=Number.isNaN||function(e){return e!=e},st=Number.isNaN||function(e){return e!=e},si=Number.isFinite||function(e){return"number"==typeof e&&!st(e)&&1/0!==e&&-1/0!==e},sr=Function.prototype.toString,ss=/^\s*class\b/,sn=function(e){try{var t=sr.call(e);return ss.test(t)}catch(e){return!1}},sa=function(e){try{if(sn(e))return!1;return sr.call(e),!0}catch(e){return!1}},so=T.prototype.toString,sl="function"==typeof P&&"symbol"==typeof P.toStringTag,sh=function(e){if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(sl)return sa(e);if(sn(e))return!1;var t=so.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t},su=T.prototype.toString,sc=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e},sd=function(e){if(t=arguments.length>1?arguments[1]:"[object Date]"===su.call(e)?String:Number,t===String||t===Number){for(var t,i,r=t===String?["toString","valueOf"]:["valueOf","toString"],s=0;s<r.length;++s)if(sh(e[r[s]])&&sc(i=e[r[s]]()))return i;throw new b("No default value")}throw new b("invalid [[DefaultValue]] hint supplied")},sp=r4("%Object%"),s_=r4("%TypeError%"),sv=r4("%String%"),sm=function(e,t,i,r){var s=r8[t];if("function"!=typeof s)throw new r7("unknown record type: "+t);if(!s(e,r))throw new r9(i+" must be a "+t);console.log(s(e,r),r)},sy=function(e){return e>=0?1:-1},sf=function(e,t){var i=e%t;return k.floor(i>=0?i:i+t)},sg={ToPrimitive:function(e){return sc(e)?e:arguments.length>1?sd(e,arguments[1]):sd(e)},ToBoolean:function(e){return!!e},ToNumber:function(e){return+e},ToInteger:function(e){var t=this.ToNumber(e);return se(t)?0:0!==t&&si(t)?sy(t)*k.floor(k.abs(t)):t},ToInt32:function(e){return 0|this.ToNumber(e)},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);return se(t)||0===t||!si(t)?0:sf(sy(t)*k.floor(k.abs(t)),65536)},ToString:function(e){return sv(e)},ToObject:function(e){return this.CheckObjectCoercible(e),sp(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new s_(t||"Cannot call method on "+e);return e},IsCallable:sh,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:se(e)&&se(t)},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 t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var i in e)if(r6(e,i)&&!t[i])return!1;var r=r6(e,"[[Value]]"),s=r6(e,"[[Get]]")||r6(e,"[[Set]]");if(r&&s)throw new s_("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(sm(this,"Property Descriptor","Desc",e),!!r6(e,"[[Get]]")||!!r6(e,"[[Set]]"))},IsDataDescriptor:function(e){return void 0!==e&&(sm(this,"Property Descriptor","Desc",e),!!r6(e,"[[Value]]")||!!r6(e,"[[Writable]]"))},IsGenericDescriptor:function(e){return void 0!==e&&(sm(this,"Property Descriptor","Desc",e),!(this.IsAccessorDescriptor(e)||this.IsDataDescriptor(e)))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(sm(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 s_("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new s_("ToPropertyDescriptor requires an object");var t={};if(r6(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),r6(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),r6(e,"value")&&(t["[[Value]]"]=e.value),r6(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),r6(e,"get")){var i=e.get;if(void 0!==i&&!this.IsCallable(i))throw new b("getter must be a function");t["[[Get]]"]=i}if(r6(e,"set")){var r=e.set;if(void 0!==r&&!this.IsCallable(r))throw new s_("setter must be a function");t["[[Set]]"]=r}if((r6(t,"[[Get]]")||r6(t,"[[Set]]"))&&(r6(t,"[[Value]]")||r6(t,"[[Writable]]")))throw new s_("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},sb=rM.call(Function.call,String.prototype.replace),sC=/^[\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]+/,sT=/[\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]+$/,sk=function(){return sb(sb(sg.ToString(sg.CheckObjectCoercible(this)),sC,""),sT,"")},sE=function(){return String.prototype.trim&&"\u200B"==="\u200B".trim()?String.prototype.trim:sk},sw=rM.call(Function.call,sE());rZ(sw,{getPolyfill:sE,implementation:sk,shim:function(){var e=sE();return rZ(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}});var sS=T.prototype.toString,sx=T.prototype.hasOwnProperty,sP=function(e,t,i){for(var r=0,s=e.length;r<s;r++)sx.call(e,r)&&(null==i?t(e[r],r,e):t.call(i,e[r],r,e))},sM=function(e,t,i){for(var r=0,s=e.length;r<s;r++)null==i?t(e.charAt(r),r,e):t.call(i,e.charAt(r),r,e)},sL=function(e,t,i){for(var r in e)sx.call(e,r)&&(null==i?t(e[r],r,e):t.call(i,e[r],r,e))},sA=function(e,t,i){var r;if(!sh(t))throw new b("iterator must be a function");arguments.length>=3&&(r=i),"[object Array]"===sS.call(e)?sP(e,t,r):"string"==typeof e?sM(e,t,r):sL(e,t,r)},sI=T.prototype.hasOwnProperty,sV=rw.exports,sj=function(e){if(!e)return{};var t={};return sA(sw(e).split("\n"),function(e){var i,r=e.indexOf(":"),s=sw(e.slice(0,r)).toLowerCase(),n=sw(e.slice(r+1));void 0===t[s]?t[s]=n:(i=t[s],"[object Array]"===T.prototype.toString.call(i))?t[s].push(n):t[s]=[t[s],n]}),t},sD=sF;function sB(e,t,i){var r,s,n=e;return(r=t,"[object Function]"===(s=rS.call(r))||"function"==typeof r&&"[object RegExp]"!==s||void 0!==v&&(r===v.setTimeout||r===v.alert||r===v.confirm||r===v.prompt))?(i=t,"string"==typeof e&&(n={uri:e})):n=function(){for(var e={},t=0;t<arguments.length;t++){var i=arguments[t];for(var r in i)sI.call(i,r)&&(e[r]=i[r])}return e}(t,{uri:e}),n.callback=i,n}function sF(e,t,i){return sN(t=sB(e,t,i))}function sN(e){if(void 0===e.callback)throw new g("callback argument missing");var t,i,r,s=!1,n=function(t,i,r){s||(s=!0,e.callback(t,i,r))},a={body:void 0,headers:{},statusCode:0,method:c,url:u,rawRequest:h};function o(e){return f(r),e instanceof g||(e=new g(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,a)}function l(){if(!i){f(r);var t=e.useXDR&&void 0===h.status?200:1223===h.status?204:h.status,s=a,o=null;return 0!==t?(s={body:function(){var e=void 0;if(e=h.response?h.response:h.responseText||function(e){if("document"===e.responseType)return e.responseXML;var t=204===e.status&&e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;return""!==e.responseType||t?null:e.responseXML}(h),v)try{e=JSON.parse(e)}catch(e){}return e}(),statusCode:t,method:c,headers:{},url:u,rawRequest:h},h.getAllResponseHeaders&&(s.headers=sj(h.getAllResponseHeaders()))):o=new g("Internal XMLHttpRequest Error"),n(o,s,s.body)}}var h=e.xhr||null;h||(h=e.cors||e.useXDR?new sF.XDomainRequest:new sF.XMLHttpRequest);var u=h.url=e.uri||e.url,c=h.method=e.method||"GET",d=e.body||e.data||null,p=h.headers=e.headers||{},_=!!e.sync,v=!1;if("json"in e&&(v=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==c&&"HEAD"!==c&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),d=JSON.stringify(e.json))),h.onreadystatechange=function(){4===h.readyState&&l()},h.onload=l,h.onerror=o,h.onprogress=function(){},h.ontimeout=o,h.open(c,u,!_,e.username,e.password),_||(h.withCredentials=!!e.withCredentials),!_&&e.timeout>0&&(r=y(function(){i=!0,h.abort("timeout");var e=new g("XMLHttpRequest timeout");e.code="ETIMEDOUT",o(e)},e.timeout)),h.setRequestHeader)for(t in p)p.hasOwnProperty(t)&&h.setRequestHeader(t,p[t]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new g("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(h.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(h),h.send(d),h}sF.XMLHttpRequest=sV.XMLHttpRequest||function(){},sF.XDomainRequest="withCredentials"in new sF.XMLHttpRequest?sF.XMLHttpRequest:sV.XDomainRequest,function(e,t){for(var i=0;i<e.length;i++)t(e[i])}(["get","put","post","patch","head","delete"],function(e){sF["delete"===e?"del":e]=function(t,i,r){return(i=sB(t,i,r)).method=e.toUpperCase(),sN(i)}});var sO=function(e,t){var i=new tF.WebVTT.Parser(tF,tF.vttjs,tF.WebVTT.StringDecoder()),r=[];i.oncue=function(e){t.addCue(e)},i.onparsingerror=function(e){r.push(e)},i.onflush=function(){t.trigger({type:"loadeddata",target:t})},i.parse(e),r.length>0&&(tF.console&&tF.console.groupCollapsed&&tF.console.groupCollapsed("Text Track parsing errors for "+t.src),r.forEach(function(e){return tG.error(e)}),tF.console&&tF.console.groupEnd&&tF.console.groupEnd()),i.flush()},sR=function(e,t){var i={uri:e},r=rE(e);r&&(i.cors=r),sD(i,i2(this,function(e,i,r){if(e)return tG.error(e,i);if(t.elq=!0,"function"!=typeof tF.WebVTT){if(t.w){var s=function(){return sO(r,t)};t.w.on("vttjsloaded",s),t.w.on("vttjserror",function(){tG.error("vttjs failed to load, stopping trying to process "+t.src),t.w.off("vttjsloaded",s)})}}else sO(r,t)}))},s$=function(e){function t(i){if(void 0===i&&(i={}),!i.tech)throw new g("A tech was not provided.");var r,s=i4(i,{kind:rg[i.kind]||"subtitles",language:i.language||i.srclang||""}),n=rb[s.mode]||"disabled",a=s.default;("metadata"===s.kind||"chapters"===s.kind)&&(n="hidden");var o=r=e.call(this,s)||this;if(o.w=s.tech,ij)for(var l in t.prototype)"constructor"!==l&&(o[l]=t.prototype[l]);o.fA=[],o.wX=[];var h=new rm(o.fA),u=new rm(o.wX),c=!1,d=i2(o,function(){this.activeCues,c&&(this.trigger("cuechange"),c=!1)});return"disabled"!==n&&o.w.ready(function(){o.w.on("timeupdate",d)},!0),T.defineProperty(o,"default",{get:function(){return a},set:function(){}}),T.defineProperty(o,"mode",{get:function(){return n},set:function(e){var t=this;rb[e]&&("showing"===(n=e)&&this.w.ready(function(){t.w.on("timeupdate",d)},!0),this.trigger("modechange"))}}),T.defineProperty(o,"cues",{get:function(){return this.elq?h:null},set:function(){}}),T.defineProperty(o,"activeCues",{get:function(){if(!this.elq)return null;if(0===this.cues.length)return u;for(var e=this.w.currentTime(),t=[],i=0,r=this.cues.length;i<r;i++){var s=this.cues[i];s.startTime<=e&&s.endTime>=e?t.push(s):s.startTime===s.endTime&&s.startTime<=e&&s.startTime+.5>=e&&t.push(s)}if(c=!1,t.length!==this.wX.length)c=!0;else for(var n=0;n<t.length;n++)-1===this.wX.indexOf(t[n])&&(c=!0);return this.wX=t,u.k(this.wX),u},set:function(){}}),s.src?(o.src=s.src,sR(s.src,o)):o.elq=!0,o||i7(r)}re(t,e);var i=t.prototype;return i.addCue=function(e){var t=e;if(tF.vttjs&&!(e instanceof tF.vttjs.VTTCue)){for(var i in t=new tF.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)i in t||(t[i]=e[i]);t.id=e.id,t.S=e}var r=this.w.textTracks();if(r)for(var s=0;s<r.length;s++)r[s]!==this&&r[s].removeCue(t);this.fA.push(t),this.cues.k(this.fA)},i.removeCue=function(e){for(var t=this.fA.length;t--;){var i=this.fA[t];if(i===e||i.S&&i.S===e){this.fA.splice(t,1),this.cues.k(this.fA);break}}},t}(rC);s$.prototype.d={cuechange:"cuechange"};var sU=function(e){function t(i){void 0===i&&(i={});var r,s=e.call(this)||this,n=i7(s);if(ij)for(var a in n=tN.createElement("custom"),t.prototype)"constructor"!==a&&(n[a]=t.prototype[a]);var o=new s$(i);return(n.kind=o.kind,n.src=o.src,n.srclang=o.language,n.label=o.label,n.default=o.default,T.defineProperty(n,"readyState",{get:function(){return r}}),T.defineProperty(n,"track",{get:function(){return o}}),r=0,o.addEventListener("loadeddata",function(){r=2,n.trigger({type:"load",target:n})}),ij)?n||i7(s):s}return re(t,e),t}(i9);sU.prototype.d={load:"load"},sU.NONE=0,sU.LOADING=1,sU.LOADED=2,sU.ERROR=3;var sH=function(){function e(t){void 0===t&&(t=[]);var i=this;if(ij)for(var r in i=tN.createElement("custom"),e.prototype)"constructor"!==r&&(i[r]=e.prototype[r]);i.P=[],T.defineProperty(i,"length",{get:function(){return this.P.length}});for(var s=0,n=t.length;s<n;s++)i.M(t[s]);if(ij)return i}var t=e.prototype;return t.M=function(e){var t=this.P.length;""+t in this||T.defineProperty(this,t,{get:function(){return this.P[t]}}),-1===this.P.indexOf(e)&&this.P.push(e)},t.L=function(e){for(var t,i=0,r=this.P.length;i<r;i++)if(e===this.P[i].track){t=this.P[i];break}return t},t.A=function(e){for(var t=0,i=this.P.length;t<i;t++)if(e===this.P[t]){this.P.splice(t,1);break}},e}(),sz=function(e){function t(i,r){var s;if(void 0===i&&(i=[]),void 0===r&&(r=null),s=e.call(this)||this,!r&&(r=i7(s),ij))for(var n in r=tN.createElement("custom"),t.prototype)"constructor"!==n&&(r[n]=t.prototype[n]);r.py=[],T.defineProperty(r,"length",{get:function(){return this.py.length}});for(var a=0;a<i.length;a++)r.uG(i[a]);return r||i7(s)}re(t,e);var i=t.prototype;return i.uG=function(e){var t=this.py.length;""+t in this||T.defineProperty(this,t,{get:function(){return this.py[t]}}),-1===this.py.indexOf(e)&&(this.py.push(e),this.trigger({track:e,type:"addtrack"}))},i.uj=function(e){for(var t,i=0,r=this.length;i<r;i++)if(this[i]===e){(t=this[i]).off&&t.off(),this.py.splice(i,1);break}t&&this.trigger({track:t,type:"removetrack"})},i.getTrackById=function(e){for(var t=null,i=0,r=this.length;i<r;i++){var s=this[i];if(s.id===e){t=s;break}}return t},t}(i9);for(var sW in sz.prototype.d={change:"change",addtrack:"addtrack",removetrack:"removetrack"},sz.prototype.d)sz.prototype["on"+sW]=null;var sq=function(e){function t(i){var r,s;if(void 0===i&&(i=[]),ij){for(var n in s=tN.createElement("custom"),sz.prototype)"constructor"!==n&&(s[n]=sz.prototype[n]);for(var a in t.prototype)"constructor"!==a&&(s[a]=t.prototype[a])}return(s=r=e.call(this,i,s)||this)||i7(r)}return re(t,e),t.prototype.uG=function(t){e.prototype.uG.call(this,t),t.addEventListener("modechange",i2(this,function(){this.trigger("change")}))},t}(sz),sQ=function(e,t){for(var i=0;i<e.length;i++)t.id!==e[i].id&&(e[i].selected=!1)},sG=function(e){function t(i){void 0===i&&(i=[]);for(var r,s,n=i.length-1;n>=0;n--)if(i[n].selected){sQ(i,i[n]);break}if(ij){for(var a in s=tN.createElement("custom"),sz.prototype)"constructor"!==a&&(s[a]=sz.prototype[a]);for(var o in t.prototype)"constructor"!==o&&(s[o]=t.prototype[o])}return(s=r=e.call(this,i,s)||this).I=!1,T.defineProperty(s,"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return -1},set:function(){}}),s||i7(r)}re(t,e);var i=t.prototype;return i.uG=function(t){var i=this;t.selected&&sQ(this,t),e.prototype.uG.call(this,t),t.addEventListener&&t.addEventListener("selectedchange",function(){i.I||(i.I=!0,sQ(i,t),i.I=!1,i.trigger("change"))})},i.addTrack=function(e){this.uG(e)},i.removeTrack=function(t){e.prototype.uj.call(this,t)},t}(sz),sX=function(e,t){for(var i=0;i<e.length;i++)t.id!==e[i].id&&(e[i].enabled=!1)},sK=function(e){function t(i){void 0===i&&(i=[]);for(var r,s,n=i.length-1;n>=0;n--)if(i[n].enabled){sX(i,i[n]);break}if(ij){for(var a in s=tN.createElement("custom"),sz.prototype)"constructor"!==a&&(s[a]=sz.prototype[a]);for(var o in t.prototype)"constructor"!==o&&(s[o]=t.prototype[o])}return(s=r=e.call(this,i,s)||this).I=!1,s||i7(r)}re(t,e);var i=t.prototype;return i.uG=function(t){var i=this;t.enabled&&sX(this,t),e.prototype.uG.call(this,t),t.addEventListener&&t.addEventListener("enabledchange",function(){i.I||(i.I=!0,sX(i,t),i.I=!1,i.trigger("change"))})},i.addTrack=function(e){this.uG(e)},i.removeTrack=function(t){e.prototype.uj.call(this,t)},t}(sz),sY=void 0,sJ=function(e){function t(t,i){var r;return void 0===t&&(t={}),void 0===i&&(i=function(){}),t.reportTouchActivity=!1,(r=e.call(this,null,t,i)||this).j=!1,r.on("playing",function(){this.j=!0}),r.on("loadstart",function(){this.j=!1}),r.Ch=t.textTracks,r.CN=t.videoTracks,r.Cp=t.audioTracks,r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(e){!1===t["native"+e+"Tracks"]&&(r["featuresNative"+e+"Tracks"]=!1)}),!1===t.nativeCaptions&&(r.featuresNativeTextTracks=!1),r.featuresNativeTextTracks||r.emulateTextTracks(),r.D=new sq,r.initTextTrackListeners(),r.initTrackListeners(),t.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.h$=r.constructor.name||"Unknown Tech"),r}re(t,e);var i=t.prototype;return i.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},i.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},i.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(i2(this,function(){var e=this.bufferedPercent();this.B!==e&&this.trigger("progress"),this.B=e,1===e&&this.stopTrackingProgress()}),500)},i.onDurationChange=function(e){this.pC=this.duration()},i.buffered=function(){return rr(0,0)},i.bufferedPercent=function(){return rs(this.buffered(),this.pC)},i.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},i.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},i.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},i.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},i.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},i.dispose=function(){this.clearTracks(["audio","video","text"]),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},i.clearTracks=function(e){var t=this;(e=[].concat(e)).forEach(function(e){for(var i=t[e+"Tracks"]()||[],r=i.length;r--;){var s=i[r];"text"===e&&t.removeRemoteTextTrack(s),i.uj(s)}})},i.cleanupAutoTextTracks=function(){for(var e=this.D||[],t=e.length;t--;){var i=e[t];this.removeRemoteTextTrack(i)}},i.reset=function(){},i.error=function(e){return void 0!==e&&(this.nu=new ru(e),this.trigger("error")),this.nu},i.played=function(){return this.j?rr(0,0):rr()},i.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},i.initTextTrackListeners=function(){var e=i2(this,function(){this.trigger("texttrackchange")}),t=this.textTracks();t&&(t.addEventListener("removetrack",e),t.addEventListener("addtrack",e),this.on("dispose",i2(this,function(){t.removeEventListener("removetrack",e),t.removeEventListener("addtrack",e)})))},i.initTrackListeners=function(){var e=this;["video","audio"].forEach(function(t){var i=function(){e.trigger(t+"trackchange")},r=e[t+"Tracks"]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),e.on("dispose",function(){r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)})})},i.O=function(){var e=this;if(!tF.WebVTT)if(tN.body.contains(this.el())){if(!this.e["vtt.js"]&&tq(sY)&&T.keys(sY).length>0)return void this.trigger("vttjsloaded");var t=tN.createElement("script");t.src=this.e["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){t.onload=null,t.onerror=null}),tF.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.O)},i.emulateTextTracks=function(){var e=this,t=this.textTracks();if(t){var i=this.remoteTextTracks(),r=function(e){return t.uG(e.track)},s=function(e){return t.uj(e.track)};i.on("addtrack",r),i.on("removetrack",s),this.O();var n=function(){return e.trigger("texttrackchange")},a=function(){n();for(var e=0;e<t.length;e++){var i=t[e];i.removeEventListener("cuechange",n),"showing"===i.mode&&i.addEventListener("cuechange",n)}};a(),t.addEventListener("change",a),t.addEventListener("addtrack",a),t.addEventListener("removetrack",a),this.on("dispose",function(){i.off("addtrack",r),i.off("removetrack",s),t.removeEventListener("change",a),t.removeEventListener("addtrack",a),t.removeEventListener("removetrack",a);for(var e=0;e<t.length;e++)t[e].removeEventListener("cuechange",n)})}},i.videoTracks=function(){return this.CN=this.CN||new sG,this.CN},i.audioTracks=function(){return this.Cp=this.Cp||new sK,this.Cp},i.textTracks=function(){return this.Ch=this.Ch||new sq,this.Ch},i.remoteTextTracks=function(){return this.R=this.R||new sq,this.R},i.remoteTextTrackEls=function(){return this.H=this.H||new sH,this.H},i.addTextTrack=function(e,t,i){var r,s,n;if(!e)throw new g("TextTrack kind is required but was not provided");return void 0===r&&(r={}),s=this.textTracks(),r.kind=e,t&&(r.label=t),i&&(r.language=i),r.tech=this,n=new s$(r),s.uG(n),n},i.createRemoteTextTrack=function(e){return new sU(i4(e,{tech:this}))},i.addRemoteTextTrack=function(e,t){void 0===e&&(e={});var i=this.createRemoteTextTrack(e);return!0!==t&&!1!==t&&(tG.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().M(i),this.remoteTextTracks().uG(i.track),!0!==t&&this.D.uG(i.track),i},i.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().L(e);this.remoteTextTrackEls().A(t),this.remoteTextTracks().uj(e),this.D.uj(e)},i.getVideoPlaybackQuality=function(){return{}},i.setPoster=function(){},i.playsinline=function(){},i.setPlaysinline=function(){},i.canPlayType=function(){return""},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,i){if(t.z||(t.z={}),!t.isTech(i))throw new g("Tech "+e+" must be a Tech");return t.z[e]=i,i},t.getTech=function(e){return t.z&&t.z[e]?t.z[e]:tF&&tF.videojs&&tF.videojs[e]?(tG.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),tF.videojs[e]):void 0},t}(i6);sJ.prototype.Ch,sJ.prototype.Cp,sJ.prototype.CN,sJ.prototype.featuresVolumeControl=!0,sJ.prototype.featuresFullscreenResize=!1,sJ.prototype.featuresPlaybackRate=!1,sJ.prototype.featuresProgressEvents=!1,sJ.prototype.featuresTimeupdateEvents=!1,sJ.prototype.featuresNativeTextTracks=!1,sJ.withSourceHandlers=function(e){e.registerSourceHandler=function(t,i){var r=e.sourceHandlers;r||(r=e.sourceHandlers=[]),void 0===i&&(i=r.length),r.splice(i,0,t)},e.canPlayType=function(t){for(var i,r=e.sourceHandlers||[],s=0;s<r.length;s++)if(i=r[s].canPlayType(t))return i;return""},e.selectSourceHandler=function(t,i){for(var r=e.sourceHandlers||[],s=0;s<r.length;s++)if(r[s].canHandleSource(t,i))return r[s];return null},e.canPlaySource=function(t,i){var r=e.selectSourceHandler(t,i);return r?r.canHandleSource(t,i):""},["seekable","duration"].forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.W&&this.W[e]?this.W[e].apply(this.W,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){var i=e.selectSourceHandler(t,this.e);return i||(e.nativeSourceHandler?i=e.nativeSourceHandler:tG.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),i!==e.nativeSourceHandler&&(this.Cy=t,this.off(this.el_,"loadstart",e.prototype.q),this.off(this.el_,"loadstart",e.prototype.X),this.one(this.el_,"loadstart",e.prototype.q)),this.W=i.handleSource(t,this,this.e),this.on("dispose",this.disposeSourceHandler),this},e.prototype.q=function(){this.one(this.el_,"loadstart",e.prototype.X)},e.prototype.X=function(){this.disposeSourceHandler(),this.one(this.el_,"loadstart",e.prototype.X)},e.prototype.disposeSourceHandler=function(){this.Cy&&(this.clearTracks(["audio","video"]),this.Cy=null),this.cleanupAutoTextTracks(),this.W&&(this.off(this.el_,"loadstart",e.prototype.q),this.off(this.el_,"loadstart",e.prototype.X),this.W.dispose&&this.W.dispose(),this.W=null)}},i6.registerComponent("Tech",sJ),i6.registerComponent("MediaTechController",sJ),sJ.registerTech("Tech",sJ);var sZ=function(e){function t(t,i,r){var s=e.call(this,t,i,r)||this;if(i.playerOptions.sources&&0!==i.playerOptions.sources.length)t.src(i.playerOptions.sources);else for(var n=0,a=i.playerOptions.techOrder;n<a.length;n++){var o=i5(a[n]),l=sJ.getTech(o);if(o||(l=i6.getComponent(o)),l&&l.isSupported()){t.ee(o);break}}return s}return re(t,e),t}(i6);i6.registerComponent("MediaLoader",sZ);var s0=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.emitTapEvents(),r.on(t,"languagechange",r.handleLanguagechange),r.enable(),r}re(t,e);var i=t.prototype;return i.createEl=function(t,i,r){void 0===t&&(t="div"),void 0===i&&(i={}),void 0===r&&(r={}),i=tz({className:this.buildCSSClass(),tabIndex:0},i),"button"===t&&tG.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),r=tz({role:"button","aria-live":"polite"},r),this.et=i.tabIndex;var s=e.prototype.createEl.call(this,t,i,r);return this.createControlTextEl(s),s},i.createControlTextEl=function(e){return this.er=t2("span",{className:"vjs-control-text"}),e&&e.appendChild(this.er),this.controlText(this.es,e),this.er},i.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.es||"Need Text";var i=this.localize(e);return this.es=e,this.er.innerHTML=i,this.nonIconControl||t.setAttribute("title",i),this},i.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},i.enable=function(){return this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.et&&this.el_.setAttribute("tabIndex",this.et),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},i.disable=function(){return this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.et&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this},i.handleLanguagechange=function(){this.controlText(this.es)},i.handleClick=function(e){},i.handleFocus=function(e){iQ(tN,"keydown",i2(this,this.handleKeyPress))},i.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleClick(t)):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},i.handleBlur=function(e){iG(tN,"keydown",i2(this,this.handleKeyPress))},t}(i6);i6.registerComponent("ClickableComponent",s0);var s1=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.update(),t.on("posterchange",i2(i7(r),r.update)),r}re(t,e);var i=t.prototype;return i.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},i.createEl=function(){var e=t2("div",{className:"vjs-poster",tabIndex:-1});return iO||(this.eo=t2("img"),e.appendChild(this.eo)),e},i.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},i.setSrc=function(e){if(this.eo)this.eo.src=e;else{var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t}},i.handleClick=function(e){this.R5.controls()&&(this.R5.paused()?this.R5.play():this.R5.pause())},t}(s0);i6.registerComponent("PosterImage",s1);var s2="#222",s3="#ccc",s5={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 s4(e,t){return"rgba("+E(e[1]+e[1],16)+","+E(e[2]+e[2],16)+","+E(e[3]+e[3],16)+","+t+")"}function s6(e,t,i){try{e.style[t]=i}catch(e){return}}var s9=function(e){function t(t,i,r){var s=e.call(this,t,i,r)||this;return t.on("loadstart",i2(i7(s),s.toggleDisplay)),t.on("texttrackchange",i2(i7(s),s.updateDisplay)),t.ready(i2(i7(s),function(){if(t.w&&t.w.featuresNativeTextTracks)return void this.hide();t.on("fullscreenchange",i2(this,this.updateDisplay));for(var e,i,r=this.e.playerOptions.tracks||[],s=0;s<r.length;s++)this.R5.addRemoteTextTrack(r[s],!0);var n={captions:1,subtitles:1},a=this.R5.textTracks();if(a){for(var o=0;o<a.length;o++){var l=a[o];l.default&&("descriptions"!==l.kind||e?l.kind in n&&!i&&(i=l):e=l)}i?i.mode="showing":e&&(e.mode="showing")}})),s}re(t,e);var i=t.prototype;return i.toggleDisplay=function(){this.R5.w&&this.R5.w.featuresNativeTextTracks?this.hide():this.show()},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},i.clearDisplay=function(){"function"==typeof tF.WebVTT&&tF.WebVTT.processCues(tF,[],this.el_)},i.updateDisplay=function(){var e=this.R5.textTracks();if(this.clearDisplay(),e){for(var t=null,i=null,r=e.length;r--;){var s=e[r];"showing"===s.mode&&("descriptions"===s.kind?t=s:i=s)}i?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(i)):t&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(t))}},i.updateForTrack=function(e){if("function"==typeof tF.WebVTT&&e.activeCues){for(var t=this.R5.textTrackSettings.getValues(),i=[],r=0;r<e.activeCues.length;r++)i.push(e.activeCues[r]);tF.WebVTT.processCues(tF,i,this.el_);for(var s=i.length;s--;){var n=i[s];if(n){var a=n.displayState;if(t.color&&(a.firstChild.style.color=t.color),t.textOpacity&&s6(a.firstChild,"color",s4(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(a.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&s6(a.firstChild,"backgroundColor",s4(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?s6(a,"backgroundColor",s4(t.windowColor,t.windowOpacity)):a.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?a.firstChild.style.textShadow="2px 2px 3px "+s2+", 2px 2px 4px "+s2+", 2px 2px 5px "+s2:"raised"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px "+s2+", 2px 2px "+s2+", 3px 3px "+s2:"depressed"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px "+s3+", 0 1px "+s3+", -1px -1px "+s2+", 0 -1px "+s2:"uniform"===t.edgeStyle&&(a.firstChild.style.textShadow="0 0 4px "+s2+", 0 0 4px "+s2+", 0 0 4px "+s2+", 0 0 4px "+s2)),t.fontPercent&&1!==t.fontPercent){var o=tF.parseFloat(a.style.fontSize);a.style.fontSize=o*t.fontPercent+"px",a.style.height="auto",a.style.top="auto",a.style.bottom="2px"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=s5[t.fontFamily])}}}},t}(i6);i6.registerComponent("TextTrackDisplay",s9);var s7=function(e){function t(){return e.apply(this,arguments)||this}return re(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},t}(i6);i6.registerComponent("LoadingSpinner",s7);var s8=function(e){function t(){return e.apply(this,arguments)||this}re(t,e);var i=t.prototype;return i.createEl=function(e,t,i){void 0===e&&(e="button"),void 0===t&&(t={}),void 0===i&&(i={}),t=tz({className:this.buildCSSClass()},t),"button"!==e&&(tG.warn("Creating a Button with an HTML element of "+e+" is deprecated; use ClickableComponent instead."),t=tz({tabIndex:0},t),i=tz({role:"button"},i)),i=tz({type:"button","aria-live":"polite"},i);var r=i6.prototype.createEl.call(this,e,t,i);return this.createControlTextEl(r),r},i.addChild=function(e,t){void 0===t&&(t={});var i=this.constructor.name;return tG.warn("Adding an actionable (user controllable) child to a Button ("+i+") is not supported; use a ClickableComponent instead."),i6.prototype.addChild.call(this,e,t)},i.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},i.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},i.handleKeyPress=function(t){32!==t.which&&13!==t.which&&e.prototype.handleKeyPress.call(this,t)},t}(s0);i6.registerComponent("Button",s8);var ne=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.eu=!1,r.on("mousedown",r.handleMouseDown),r}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-big-play-button"},i.handleClick=function(e){var t=this;if(this.eu&&e.clientX&&e.clientY)return void this.R5.play();var i=this.R5.getChild("controlBar"),r=i&&i.getChild("playToggle");this.one(this.R5,"play",function(){r?r.focus():t.R5.focus()}),this.R5.play()},i.handleKeyPress=function(t){this.eu=!1,e.prototype.handleKeyPress.call(this,t)},i.handleMouseDown=function(e){this.eu=!0},t}(s8);ne.prototype.es="Play Video",i6.registerComponent("BigPlayButton",ne);var nt=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.controlText(i&&i.controlText||"Close"),r}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},i.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t}(s8);i6.registerComponent("CloseButton",nt);var ni=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.on(t,"play",r.handlePlay),r.on(t,"pause",r.handlePause),r}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},i.handleClick=function(e){this.R5.paused()?this.R5.play():this.R5.pause()},i.handlePlay=function(e){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},i.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t}(s8);function nr(e,t){void 0===t&&(t=e),e=e<0?0:e;var i=k.floor(e%60),r=k.floor(e/60%60),s=k.floor(e/3600),n=k.floor(t/60%60),a=k.floor(t/3600);return(S(e)||1/0===e)&&(s=r=i="-"),r=(((s=s>0||a>0?s+":":"")||n>=10)&&r<10?"0"+r:r)+":",s+r+(i=i<10?"0"+i:i)}ni.prototype.es="Play",i6.registerComponent("PlayToggle",ni);var ns=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.on(t,"timeupdate",r.updateContent),r.on(t,"languagechange",r.updateContent),r}re(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.o=t2("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>0:00'},{"aria-live":"off"}),t.appendChild(this.o),t},i.updateContent=function(e){var t=this.R5.scrubbing()?this.R5.getCache().currentTime:this.R5.currentTime(),i=this.localize("Current Time"),r=nr(t,this.R5.duration());r!==this.ec&&(this.ec=r,this.o.innerHTML='<span class="vjs-control-text">'+i+"</span> "+r)},t}(i6);i6.registerComponent("CurrentTimeDisplay",ns);var nn=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.on(t,"durationchange",r.updateContent),r.on(t,"timeupdate",r.updateContent),r.on(t,"loadedmetadata",r.updateContent),r.on(t,"languagechange",r.updateContent),r}re(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.o=t2("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"</span> 0:00"},{"aria-live":"off"}),t.appendChild(this.o),t},i.updateContent=function(e){var t=this.R5.duration();if(t&&this.pC!==t){this.pC=t;var i=this.localize("Duration Time"),r=nr(t);this.o.innerHTML='<span class="vjs-control-text">'+i+"</span> "+r}},t}(i6);i6.registerComponent("DurationDisplay",nn);var na=function(e){function t(){return e.apply(this,arguments)||this}return re(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},t}(i6);i6.registerComponent("TimeDivider",na);var no=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.on(t,"timeupdate",r.updateContent),r.on(t,"durationchange",r.updateContent),r.on(t,"languagechange",r.updateContent),r}re(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.o=t2("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"</span> -0:00"},{"aria-live":"off"}),t.appendChild(this.o),t},i.updateContent=function(e){if(this.R5.duration()){var t=this.localize("Remaining Time"),i=nr(this.R5.remainingTime());i!==this.ec&&(this.ec=i,this.o.innerHTML='<span class="vjs-control-text">'+t+"</span> -"+i)}},t}(i6);i6.registerComponent("RemainingTimeDisplay",no);var nl=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.updateShowing(),r.on(r.player(),"durationchange",r.updateShowing),r.on(r.player(),"languagechange",r.handleLanguagechange),r}re(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.o=t2("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.er=t2("span",{className:"vjs-control-text",innerHTML:this.localize("Stream Type")}),this.em=tN.createTextNode(this.localize("LIVE")),this.o.appendChild(this.er),this.o.appendChild(this.em),t.appendChild(this.o),t},i.updateShowing=function(e){1/0===this.player().duration()?this.show():this.hide()},i.handleLanguagechange=function(){this.er.innerHTML=this.localize("Stream Type"),this.em.innerHTML=this.localize("LIVE")},t}(i6);i6.registerComponent("LiveDisplay",nl);var nh=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.bar=r.getChild(r.e.barName),r.vertical(!!r.e.vertical),r.on("mousedown",r.handleMouseDown),r.on("touchstart",r.handleMouseDown),r.on("focus",r.handleFocus),r.on("blur",r.handleBlur),r.on("click",r.handleClick),r.on(t,"controlsvisible",r.update),r.on(t,r.playerEvent,r.update),r}re(t,e);var i=t.prototype;return i.createEl=function(t,i,r){return void 0===i&&(i={}),void 0===r&&(r={}),i.className=i.className+" vjs-slider",i=tz({tabIndex:0},i),r=tz({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),e.prototype.createEl.call(this,t,i,r)},i.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;e.preventDefault(),tN.body.focus(),tN.onselectstart=function(){return!1},this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e)},i.handleMouseMove=function(e){},i.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;tN.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()},i.update=function(){if(this.el_){var e=this.getPercent(),t=this.bar;if(t){("number"!=typeof e||e!=e||e<0||1/0===e)&&(e=0);var i=(100*e).toFixed(2)+"%";this.vertical()?t.el().style.height=i:t.el().style.width=i}}},i.calculateDistance=function(e){var t=iu(this.el_,e);return this.vertical()?t.y:t.x},i.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},i.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepBack()):(38===e.which||39===e.which)&&(e.preventDefault(),this.stepForward())},i.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},i.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},i.vertical=function(e){return void 0===e?this.cF||!1:(this.cF=!!e,this.cF?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},t}(i6);function nu(e,t){if(!e||!t)return"";if("function"==typeof tF.getComputedStyle){var i=tF.getComputedStyle(e);return i?i[t]:""}return e.currentStyle[t]||""}i6.registerComponent("Slider",nh);var nc=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.eq=[],r.on(t,"progress",r.update),r.on(t,"languagechange",r.handleLanguagechange),r}re(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"});return this.te=t2("span",{innerHTML:this.localize("Loaded")}),this.tt=tN.createTextNode(": 0%"),this.er=t2("span",{className:"vjs-control-text"}),this.er.appendChild(this.te),this.er.appendChild(this.tt),t.appendChild(this.er),t},i.update=function(e){var t=this.R5.buffered(),i=this.R5.duration(),r=this.R5.bufferedEnd(),s=this.eq,n=function(e,t){var i=e/t||0;return(i>=1?1:i)*100+"%"};this.el_.style.width=n(r,i);for(var a=0;a<t.length;a++){var o=t.start(a),l=t.end(a),h=s[a];h||(h=this.el_.appendChild(t2()),s[a]=h),h.style.left=n(o,r),h.style.width=n(l-o,r)}for(var u=s.length;u>t.length;u--)this.el_.removeChild(s[u-1]);s.length=t.length},i.handleLanguagechange=function(){this.te.innerHTML=this.localize("Loaded")},t}(i6);i6.registerComponent("LoadProgressBar",nc);var nd=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.updateDataAttr(),r.on(t,"timeupdate",r.updateDataAttr),r.on(t,"languagechange",r.handleLanguagechange),t.ready(i2(i7(r),r.updateDataAttr)),i.playerOptions&&i.playerOptions.controlBar&&i.playerOptions.controlBar.progressControl&&i.playerOptions.controlBar.progressControl.keepTooltipsInside&&(r.keepTooltipsInside=i.playerOptions.controlBar.progressControl.keepTooltipsInside),r.keepTooltipsInside&&r.addClass("vjs-keep-tooltips-inside"),r}re(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"});return this.ti=t2("span",{innerHTML:this.localize("Progress")}),this.tr=tN.createTextNode(": 0%"),this.er=t2("span",{className:"vjs-control-text"}),this.er.appendChild(this.ti),this.er.appendChild(this.tr),t.appendChild(this.er),t},i.updateDataAttr=function(e){var t=this.R5.scrubbing()?this.R5.getCache().currentTime:this.R5.currentTime();this.el_.setAttribute("data-current-time",nr(t,this.R5.duration()))},i.handleLanguagechange=function(){this.ti.innerHTML=this.localize("Progress")},t}(i6);i6.registerComponent("PlayProgressBar",nd);var np=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.updateDataAttr(),r.on(t,"timeupdate",r.updateDataAttr),r.on(t,"languagechange",r.handleLanguagechange),t.ready(i2(i7(r),r.updateDataAttr)),r}re(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar"});return this.tooltip=t2("div",{className:"vjs-time-tooltip"}),this.ti=t2("span",{innerHTML:this.localize("Progress")}),this.tr=tN.createTextNode(": 0%"),this.er=t2("span",{className:"vjs-control-text"}),this.er.appendChild(this.ti),this.er.appendChild(this.tr),t.appendChild(this.tooltip),t.appendChild(this.er),t},i.updateDataAttr=function(e){var t=nr(this.R5.scrubbing()?this.R5.getCache().currentTime:this.R5.currentTime(),this.R5.duration());this.el_.setAttribute("data-current-time",t),this.tooltip.innerHTML=t},i.handleLanguagechange=function(){this.ti.innerHTML=this.localize("Progress")},t}(i6);i6.registerComponent("TooltipProgressBar",np);var n_=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.on(t,"timeupdate",r.updateProgress),r.on(t,"ended",r.updateProgress),t.ready(i2(i7(r),r.updateProgress)),i.playerOptions&&i.playerOptions.controlBar&&i.playerOptions.controlBar.progressControl&&i.playerOptions.controlBar.progressControl.keepTooltipsInside&&(r.keepTooltipsInside=i.playerOptions.controlBar.progressControl.keepTooltipsInside),r.keepTooltipsInside&&(r.tooltipProgressBar=r.addChild("TooltipProgressBar")),r}re(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},i.updateProgress=function(e){if(this.updateAriaAttributes(this.el_),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_),this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var t=w(nu(this.player().el(),"width")),i=w(nu(this.tooltipProgressBar.tooltip,"width")),r=this.tooltipProgressBar.el().style;r.maxWidth=k.floor(t-i/2)+"px",r.minWidth=k.ceil(i/2)+"px",r.right="-"+i/2+"px"}},i.updateAriaAttributes=function(e){var t=this.R5.scrubbing()?this.R5.getCache().currentTime:this.R5.currentTime();e.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),e.setAttribute("aria-valuetext",nr(t,this.R5.duration()))},i.getPercent=function(){var e=this.R5.currentTime()/this.R5.duration();return e>=1?1:e},i.handleMouseDown=function(t){this.R5.scrubbing(!0),this.videoWasPlaying=!this.R5.paused(),this.R5.pause(),e.prototype.handleMouseDown.call(this,t)},i.handleMouseMove=function(e){var t=this.calculateDistance(e)*this.R5.duration();t===this.R5.duration()&&(t-=.1),this.R5.currentTime(t)},i.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),this.R5.scrubbing(!1),this.videoWasPlaying&&this.R5.play()},i.stepForward=function(){this.R5.currentTime(this.R5.currentTime()+5)},i.stepBack=function(){this.R5.currentTime(this.R5.currentTime()-5)},t}(nh);n_.prototype.e={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},n_.prototype.playerEvent="timeupdate",i6.registerComponent("SeekBar",n_);var nv=function(e){function t(t,i){var r=e.call(this,t,i)||this;return i.playerOptions&&i.playerOptions.controlBar&&i.playerOptions.controlBar.progressControl&&i.playerOptions.controlBar.progressControl.keepTooltipsInside&&(r.keepTooltipsInside=i.playerOptions.controlBar.progressControl.keepTooltipsInside),r.keepTooltipsInside&&(r.tooltip=t2("div",{className:"vjs-time-tooltip"}),r.el().appendChild(r.tooltip),r.addClass("vjs-keep-tooltips-inside")),r.update(0,0),t.on("ready",function(){r.on(t.controlBar.progressControl.el(),"mousemove",i3(i2(i7(r),r.handleMouseMove),25))}),r}re(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},i.handleMouseMove=function(e){var t=this.R5.duration(),i=this.calculateDistance(e)*t,r=e.pageX-ih(this.el().parentNode).left;this.update(i,r)},i.update=function(e,t){var i=nr(e,this.R5.duration());if(this.el().style.left=t+"px",this.el().setAttribute("data-current-time",i),this.keepTooltipsInside){var r=t-this.ts(t)+1,s=w(nu(this.tooltip,"width"))/2;this.tooltip.innerHTML=i,this.tooltip.style.right="-"+(s-r)+"px"}},i.calculateDistance=function(e){return iu(this.el().parentNode,e).x},i.ts=function(e){if(!this.keepTooltipsInside)return e;var t=w(nu(this.player().el(),"width")),i=w(nu(this.tooltip,"width"))/2,r=e;return e<i?r=k.ceil(i):e>t-i&&(r=k.floor(t-i)),r},t}(i6);i6.registerComponent("MouseTimeDisplay",nv);var nm=function(e){function t(){return e.apply(this,arguments)||this}return re(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t}(i6);nm.prototype.e={children:["seekBar"]},i6.registerComponent("ProgressControl",nm);var ny=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.on(t,"fullscreenchange",r.handleFullscreenChange),r}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},i.handleFullscreenChange=function(e){this.R5.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},i.handleClick=function(e){this.R5.isFullscreen()?this.R5.exitFullscreen():this.R5.requestFullscreen()},t}(s8);ny.prototype.es="Fullscreen",i6.registerComponent("FullscreenToggle",ny);var nf=function(e){function t(){return e.apply(this,arguments)||this}return re(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(i6);i6.registerComponent("VolumeLevel",nf);var ng=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.on(t,"volumechange",r.updateARIAAttributes),t.ready(i2(i7(r),r.updateARIAAttributes)),r}re(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},i.handleMouseMove=function(e){this.checkMuted(),this.R5.volume(this.calculateDistance(e))},i.checkMuted=function(){this.R5.muted()&&this.R5.muted(!1)},i.getPercent=function(){return this.R5.muted()?0:this.R5.volume()},i.stepForward=function(){this.checkMuted(),this.R5.volume(this.R5.volume()+.1)},i.stepBack=function(){this.checkMuted(),this.R5.volume(this.R5.volume()-.1)},i.updateARIAAttributes=function(e){var t=(100*this.R5.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},t}(nh);ng.prototype.e={children:["volumeLevel"],barName:"volumeLevel"},ng.prototype.playerEvent="volumechange",i6.registerComponent("VolumeBar",ng);var nb=function(e){function t(t,i){var r=e.call(this,t,i)||this;return t.w&&!1===t.w.featuresVolumeControl&&r.addClass("vjs-hidden"),r.on(t,"loadstart",function(){!1===t.w.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),r}return re(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},t}(i6);nb.prototype.e={children:["volumeBar"]},i6.registerComponent("VolumeControl",nb);var nC=function(e){function t(){return e.apply(this,arguments)||this}re(t,e);var i=t.prototype;return i.addItem=function(e){this.addChild(e),e.on("click",i2(this,function(){this.unlockShowing()}))},i.createEl=function(){var t=this.e.contentElType||"ul";this.o=t2(t,{className:"vjs-menu-content"});var i=e.prototype.createEl.call(this,"div",{append:this.o,className:"vjs-menu"});return i.appendChild(this.o),iQ(i,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),i},t}(i6);i6.registerComponent("Popup",nC);var nT=function(e){function t(t,i){var r;return void 0===i&&(i={}),(r=e.call(this,t,i)||this).update(),r}re(t,e);var i=t.prototype;return i.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()},i.createPopup=function(){},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},i.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.e.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},t}(s0);i6.registerComponent("PopupButton",nT);var nk=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.on(t,"volumechange",r.update),t.w&&!1===t.w.featuresVolumeControl&&r.addClass("vjs-hidden"),r.on(t,"loadstart",function(){this.update(),!1===t.w.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),r}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},i.handleClick=function(e){this.R5.muted(!this.R5.muted())},i.update=function(e){var t=this.R5.volume(),i=3;this.R5.muted()?i=0:t<.33?i=1:t<.67&&(i=2);var r=this.R5.muted()?"Unmute":"Mute";this.controlText()!==r&&this.controlText(r);for(var s=0;s<4;s++)ii(this.el_,"vjs-vol-"+s);it(this.el_,"vjs-vol-"+i)},t}(s8);nk.prototype.es="Mute",i6.registerComponent("MuteToggle",nk);var nE=function(e){function t(t,i){var r;function s(){t.w&&!1===t.w.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}return void 0===i&&(i={}),void 0===i.inline&&(i.inline=!0),void 0===i.vertical&&(i.inline?i.vertical=!1:i.vertical=!0),i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=!!i.vertical,(r=e.call(this,t,i)||this).on(t,"volumechange",r.volumeUpdate),r.on(t,"loadstart",r.volumeUpdate),s.call(i7(r)),r.on(t,"loadstart",s),r.on(r.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),r.on(r.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),r.on(r.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),r.on(r.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")}),r}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){var t="";return t=this.e.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+e.prototype.buildCSSClass.call(this)+" "+t},i.createPopup=function(){var e=new nC(this.R5,{contentElType:"div"}),t=new ng(this.R5,this.e.volumeBar);return e.addChild(t),this.menuContent=e,this.volumeBar=t,this.attachVolumeBarEvents(),e},i.handleClick=function(t){nk.prototype.handleClick.call(this),e.prototype.handleClick.call(this)},i.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],i2(this,this.handleMouseDown))},i.handleMouseDown=function(e){this.on(["mousemove","touchmove"],i2(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},i.handleMouseUp=function(e){this.off(["mousemove","touchmove"],i2(this.volumeBar,this.volumeBar.handleMouseMove))},t}(nT);nE.prototype.volumeUpdate=nk.prototype.update,nE.prototype.es="Mute",i6.registerComponent("VolumeMenuButton",nE);var nw=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.tn=-1,r.on("keydown",r.handleKeyPress),r}re(t,e);var i=t.prototype;return i.addItem=function(e){this.addChild(e),e.on("click",i2(this,function(e){this.unlockShowing()}))},i.createEl=function(){var t=this.e.contentElType||"ul";this.o=t2(t,{className:"vjs-menu-content"}),this.o.setAttribute("role","menu");var i=e.prototype.createEl.call(this,"div",{append:this.o,className:"vjs-menu"});return i.setAttribute("role","presentation"),i.appendChild(this.o),iQ(i,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),i},i.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepForward()):(38===e.which||39===e.which)&&(e.preventDefault(),this.stepBack())},i.stepForward=function(){var e=0;void 0!==this.tn&&(e=this.tn+1),this.focus(e)},i.stepBack=function(){var e=0;void 0!==this.tn&&(e=this.tn-1),this.focus(e)},i.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].className&&/vjs-menu-title/.test(t[0].className)&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.tn=e,t[e].el_.focus())},t}(i6);i6.registerComponent("Menu",nw);var nS=function(e){function t(t,i){var r;return void 0===i&&(i={}),(r=e.call(this,t,i)||this).update(),r.uX=!0,r.el_.setAttribute("aria-haspopup","true"),r.el_.setAttribute("role","menuitem"),r.on("keydown",r.handleSubmenuKeyPress),r}re(t,e);var i=t.prototype;return i.update=function(){var e=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=e,this.addChild(e),this.ta=!1,this.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.to?this.hide():this.show()},i.createMenu=function(){var e=new nw(this.R5);if(this.to=0,this.e.title){var t=t2("li",{className:"vjs-menu-title",innerHTML:i5(this.e.title),tabIndex:-1});this.to+=1,e.h4.unshift(t),t5(t,e.contentEl())}if(this.items=this.createItems(),this.items)for(var i=0;i<this.items.length;i++)e.addItem(this.items[i]);return e},i.createItems=function(){},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},i.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.e.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},i.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",i2(this,function(e){this.unpressButton(),this.el_.blur()})),this.ta?this.unpressButton():this.pressButton()},i.handleKeyPress=function(t){27===t.which||9===t.which?(this.ta&&this.unpressButton(),9!==t.which&&t.preventDefault()):38===t.which||40===t.which?this.ta||(this.pressButton(),t.preventDefault()):e.prototype.handleKeyPress.call(this,t)},i.handleSubmenuKeyPress=function(e){(27===e.which||9===e.which)&&(this.ta&&this.unpressButton(),9!==e.which&&e.preventDefault())},i.pressButton=function(){this.uX&&(this.ta=!0,this.menu.lockShowing(),this.el_.setAttribute("aria-expanded","true"),this.menu.focus())},i.unpressButton=function(){this.uX&&(this.ta=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.el_.focus())},i.disable=function(){return this.ta=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.uX=!1,e.prototype.disable.call(this)},i.enable=function(){return this.uX=!0,e.prototype.enable.call(this)},t}(s0);i6.registerComponent("MenuButton",nS);var nx=function(e){function t(t,i){var r,s=i.tracks;if((r=e.call(this,t,i)||this).items.length<=1&&r.hide(),!s)return i7(r);var n=i2(i7(r),r.update);return s.addEventListener("removetrack",n),s.addEventListener("addtrack",n),r.R5.on("dispose",function(){s.removeEventListener("removetrack",n),s.removeEventListener("addtrack",n)}),r}return re(t,e),t}(nS);i6.registerComponent("TrackButton",nx);var nP=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.selectable=i.selectable,r.selected(i.selected),r.selectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitem"),r}re(t,e);var i=t.prototype;return i.createEl=function(t,i,r){this.nonIconControl=!0;var s=e.prototype.createEl.call(this,"li",tz({className:"vjs-menu-item",tabIndex:-1},i),r);return this.tl=tN.createTextNode(this.localize(this.e.label)),s.appendChild(this.tl),s},i.handleClick=function(e){this.selected(!0)},i.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText("")))},i.handleLanguagechange=function(){e.prototype.handleLanguagechange.call(this),this.tl.innerHTML=this.localize(this.e.label)},t}(s0);i6.registerComponent("MenuItem",nP);var nM=function(e){function t(t,i){var r,s,n=i.track,a=t.textTracks();if(i.label=n.label||n.language||"Unknown",i.selected=n.default||"showing"===n.mode,(r=e.call(this,t,i)||this).track=n,a){var o=i2(i7(r),r.handleTracksChange);t.on(["loadstart","texttrackchange"],o),a.addEventListener("change",o),r.on("dispose",function(){a.removeEventListener("change",o)})}return a&&void 0===a.onchange&&r.on(["tap","click"],function(){if("object"!=typeof tF.Event)try{s=new tF.Event("change")}catch(e){}s||(s=tN.createEvent("Event")).initEvent("change",!0,!0),a.dispatchEvent(s)}),r}re(t,e);var i=t.prototype;return i.handleClick=function(t){var i=this.track.kind,r=this.R5.textTracks();if(e.prototype.handleClick.call(this,t),r)for(var s=0;s<r.length;s++){var n=r[s];n.kind===i&&(n===this.track?"showing"!==n.mode&&(n.mode="showing"):"disabled"!==n.mode&&(n.mode="disabled"))}},i.handleTracksChange=function(e){this.selected("showing"===this.track.mode)},t}(nP);i6.registerComponent("TextTrackMenuItem",nM);var nL=function(e){function t(t,i){var r;return i.track={player:t,kind:i.kind,label:i.kind+" off",default:!1,mode:"disabled"},i.selectable=!0,(r=e.call(this,t,i)||this).selected(!0),r}return re(t,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),i=!0,r=0,s=t.length;r<s;r++){var n=t[r];if(n.kind===this.track.kind&&"showing"===n.mode){i=!1;break}}this.selected(i)},t}(nM);i6.registerComponent("OffTextTrackMenuItem",nL);var nA=function(e){function t(t,i){return void 0===i&&(i={}),i.tracks=t.textTracks(),e.call(this,t,i)||this}return re(t,e),t.prototype.createItems=function(e){void 0===e&&(e=[]),e.push(new nL(this.R5,{kind:this.uJ})),this.to+=1;var t=this.R5.textTracks();if(!t)return e;for(var i=0;i<t.length;i++){var r=t[i];r.kind===this.uJ&&e.push(new nM(this.R5,{track:r,selectable:!0}))}return e},t}(nx);i6.registerComponent("TextTrackButton",nA);var nI=function(e){function t(t,i){var r,s=i.track,n=i.cue,a=t.currentTime();return i.selectable=!0,i.label=n.text,i.selected=n.startTime<=a&&a<n.endTime,(r=e.call(this,t,i)||this).track=s,r.cue=n,s.addEventListener("cuechange",i2(i7(r),r.update)),r}re(t,e);var i=t.prototype;return i.handleClick=function(t){e.prototype.handleClick.call(this),this.R5.currentTime(this.cue.startTime),this.update(this.cue.startTime)},i.update=function(e){var t=this.cue,i=this.R5.currentTime();this.selected(t.startTime<=i&&i<t.endTime)},t}(nP);i6.registerComponent("ChaptersTrackMenuItem",nI);var nV=function(e){function t(t,i,r){var s=e.call(this,t,i,r)||this;return s.el_.setAttribute("aria-label","Chapters Menu"),s}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},i.update=function(t){(!this.uF||t&&("addtrack"===t.type||"removetrack"===t.type))&&this.setTrack(this.findChaptersTrack()),e.prototype.update.call(this)},i.setTrack=function(e){if(this.uF!==e){if(this.th||(this.th=this.update.bind(this)),this.uF){var t=this.R5.remoteTextTrackEls().L(this.uF);t&&t.removeEventListener("load",this.th),this.uF=null}if(this.uF=e,this.uF){this.uF.mode="hidden";var i=this.R5.remoteTextTrackEls().L(this.uF);i&&i.addEventListener("load",this.th)}}},i.findChaptersTrack=function(){for(var e=this.R5.textTracks()||[],t=e.length-1;t>=0;t--){var i=e[t];if(i.kind===this.uJ)return i}},i.getMenuCaption=function(){return this.uF&&this.uF.label?this.uF.label:this.localize(i5(this.uJ))},i.createMenu=function(){return this.e.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},i.createItems=function(){var e=[];if(!this.uF)return e;var t=this.uF.cues;if(!t)return e;for(var i=0,r=t.length;i<r;i++){var s=t[i],n=new nI(this.R5,{track:this.uF,cue:s});e.push(n)}return e},t}(nA);nV.prototype.uJ="chapters",nV.prototype.es="Chapters",i6.registerComponent("ChaptersButton",nV);var nj=function(e){function t(t,i,r){var s=e.call(this,t,i,r)||this;s.el_.setAttribute("aria-label","Descriptions Menu");var n=t.textTracks();if(n){var a=i2(i7(s),s.handleTracksChange);n.addEventListener("change",a),s.on("dispose",function(){n.removeEventListener("change",a)})}return s}re(t,e);var i=t.prototype;return i.handleTracksChange=function(e){for(var t=this.player().textTracks(),i=!1,r=0,s=t.length;r<s;r++){var n=t[r];if(n.kind!==this.uJ&&"showing"===n.mode){i=!0;break}}i?this.disable():this.enable()},i.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},t}(nA);nj.prototype.uJ="descriptions",nj.prototype.es="Descriptions",i6.registerComponent("DescriptionsButton",nj);var nD=function(e){function t(t,i,r){var s=e.call(this,t,i,r)||this;return s.el_.setAttribute("aria-label","Subtitles Menu"),s}return re(t,e),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},t}(nA);nD.prototype.uJ="subtitles",nD.prototype.es="Subtitles",i6.registerComponent("SubtitlesButton",nD);var nB=function(e){function t(t,i){var r;return i.track={player:t,kind:i.kind,label:i.kind+" settings",selectable:!1,default:!1,mode:"disabled"},i.selectable=!1,(r=e.call(this,t,i)||this).addClass("vjs-texttrack-settings"),r.controlText(", opens "+i.kind+" settings dialog"),r}return re(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").el_.focus()},t}(nM);i6.registerComponent("CaptionSettingsMenuItem",nB);var nF=function(e){function t(t,i,r){var s=e.call(this,t,i,r)||this;return s.el_.setAttribute("aria-label","Captions Menu"),s}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},i.createItems=function(){var t=[];return this.player().w&&this.player().w.featuresNativeTextTracks||(t.push(new nB(this.R5,{kind:this.uJ})),this.to+=1),e.prototype.createItems.call(this,t)},t}(nA);nF.prototype.uJ="captions",nF.prototype.es="Captions",i6.registerComponent("CaptionsButton",nF);var nN=function(e){function t(t,i){var r,s=i.track,n=t.audioTracks();if(i.label=s.label||s.language||"Unknown",i.selected=s.enabled,(r=e.call(this,t,i)||this).track=s,n){var a=i2(i7(r),r.handleTracksChange);n.addEventListener("change",a),r.on("dispose",function(){n.removeEventListener("change",a)})}return r}re(t,e);var i=t.prototype;return i.handleClick=function(t){var i=this.R5.audioTracks();if(e.prototype.handleClick.call(this,t),i)for(var r=0;r<i.length;r++){var s=i[r];s.enabled=s===this.track}},i.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(nP);i6.registerComponent("AudioTrackMenuItem",nN);var nO=function(e){function t(t,i){var r;return void 0===i&&(i={}),i.tracks=t.audioTracks&&t.audioTracks(),(r=e.call(this,t,i)||this).el_.setAttribute("aria-label","Audio Menu"),r}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},i.createItems=function(e){void 0===e&&(e=[]),this.to=1;var t=this.R5.audioTracks&&this.R5.audioTracks();if(!t)return e;for(var i=0;i<t.length;i++){var r=t[i];e.push(new nN(this.R5,{track:r,selectable:!0}))}return e},t}(nx);nO.prototype.es="Audio Track",i6.registerComponent("AudioTrackButton",nO);var nR=function(e){function t(t,i){var r,s=i.rate,n=w(s,10);return i.label=s,i.selected=1===n,i.selectable=!0,(r=e.call(this,t,i)||this).label=s,r.rate=n,r.on(t,"ratechange",r.update),r}re(t,e);var i=t.prototype;return i.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},i.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(nP);nR.prototype.contentElType="button",i6.registerComponent("PlaybackRateMenuItem",nR);var n$=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.updateVisibility(),r.updateLabel(),r.on(t,"loadstart",r.updateVisibility),r.on(t,"ratechange",r.updateLabel),r}re(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this);return this.tl=t2("div",{className:"vjs-playback-rate-value",innerHTML:1}),t.appendChild(this.tl),t},i.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},i.createMenu=function(){var e=new nw(this.player()),t=this.playbackRates();if(t)for(var i=t.length-1;i>=0;i--)e.addChild(new nR(this.player(),{rate:t[i]+"x"}));return e},i.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},i.handleClick=function(e){for(var t=this.player().playbackRate(),i=this.playbackRates(),r=i[0],s=0;s<i.length;s++)if(i[s]>t){r=i[s];break}this.player().playbackRate(r)},i.playbackRates=function(){return this.e.playbackRates||this.e.playerOptions&&this.e.playerOptions.playbackRates},i.playbackRateSupported=function(){return this.player().w&&this.player().w.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},i.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},i.updateLabel=function(e){this.playbackRateSupported()&&(this.tl.innerHTML=this.player().playbackRate()+"x")},t}(nS);n$.prototype.es="Playback Rate",i6.registerComponent("PlaybackRateMenuButton",n$);var nU=function(e){function t(){return e.apply(this,arguments)||this}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(i6);i6.registerComponent("Spacer",nU);var nH=function(e){function t(){return e.apply(this,arguments)||this}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},i.createEl=function(){var t=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML=" ",t},t}(nU);i6.registerComponent("CustomControlSpacer",nH);var nz=function(e){function t(){return e.apply(this,arguments)||this}return re(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},t}(i6);nz.prototype.e={children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]},i6.registerComponent("ControlBar",nz);var nW=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.on(t,"error",r.open),r}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},i.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(rv);nW.prototype.e=i4(rv.prototype.e,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),i6.registerComponent("ErrorDisplay",nW);var nq="vjs-text-track-settings",nQ=["#000","Black"],nG=["#00F","Blue"],nX=["#0FF","Cyan"],nK=["#0F0","Green"],nY=["#F0F","Magenta"],nJ=["#F00","Red"],nZ=["#FFF","White"],n0=["#FF0","Yellow"],n1=["1","Opaque"],n2=["0.5","Semi-Transparent"],n3=["0","Transparent"],n5={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[nQ,nZ,nJ,nK,nG,n0,nY,nX]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[n1,n2,n3]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[nZ,nQ,nJ,nK,nG,n0,nY,nX]},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:[n1,n2]},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:[n3,n2,n1]}};function n4(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}n5.windowColor.options=n5.backgroundColor.options;var n6=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.setDefaults(),r.hide(),r.updateDisplay=i2(i7(r),r.updateDisplay),void 0===i.persistTextTrackSettings&&(r.e.persistTextTrackSettings=r.e.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",function(){r.saveSettings(),r.hide()}),r.on(r.$(".vjs-default-button"),"click",function(){r.setDefaults(),r.updateDisplay()}),tH(n5,function(e){r.on(r.$(e.selector),"change",r.updateDisplay)}),r.e.persistTextTrackSettings&&r.restoreSettings(),r}re(t,e);var i=t.prototype;return i.tv=function(e){var t=this,i=n5[e],r=i.id.replace("%s",this.uZ);return[t2("label",{className:"vjs-label",textContent:i.label},{for:r}),t2("select",{id:r},void 0,i.options.map(function(e){return t2("option",{textContent:t.localize(e[1]),value:e[0]})}))]},i.tm=function(){var e=t2("legend",{textContent:this.localize("Text")}),t=this.tv("color"),i=t2("span",{className:"vjs-text-opacity vjs-opacity"},void 0,this.tv("textOpacity"));return t2("fieldset",{className:"vjs-fg-color vjs-tracksetting"},void 0,[e].concat(t,i))},i.ty=function(){var e=t2("legend",{textContent:this.localize("Background")}),t=this.tv("backgroundColor"),i=t2("span",{className:"vjs-bg-opacity vjs-opacity"},void 0,this.tv("backgroundOpacity"));return t2("fieldset",{className:"vjs-bg-color vjs-tracksetting"},void 0,[e].concat(t,i))},i.tg=function(){var e=t2("legend",{textContent:this.localize("Window")}),t=this.tv("windowColor"),i=t2("span",{className:"vjs-window-opacity vjs-opacity"},void 0,this.tv("windowOpacity"));return t2("fieldset",{className:"vjs-window-color vjs-tracksetting"},void 0,[e].concat(t,i))},i.tb=function(){return t2("div",{className:"vjs-tracksettings-colors"},void 0,[this.tm(),this.ty(),this.tg()])},i.tk=function(){return t2("div",{className:"vjs-tracksettings-font"},void 0,[t2("div",{className:"vjs-font-percent vjs-tracksetting"},void 0,this.tv("fontPercent")),t2("div",{className:"vjs-edge-style vjs-tracksetting"},void 0,this.tv("edgeStyle")),t2("div",{className:"vjs-font-family vjs-tracksetting"},void 0,this.tv("fontFamily"))])},i.tw=function(){return t2("div",{className:"vjs-tracksettings-controls"},void 0,[t2("button",{className:"vjs-default-button",textContent:this.localize("Defaults")}),t2("button",{className:"vjs-done-button",textContent:"Done"})])},i.createEl=function(){var e=t2("div",{className:"vjs-tracksettings"},void 0,[this.tb(),this.tk(),this.tw()]),t=t2("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.uZ,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"}),i=t2("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.uZ,textContent:"Beginning of dialog window. Escape will cancel and close the window."}),r=t2("div",void 0,{role:"document"},[t,i,e]);return t2("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":t.id,"aria-describedby":i.id},r)},i.getValues=function(){var e,t,i=this;return e=function(e,t,r){var s,n,a=(s=i.$(t.selector),n=t.parser,n4(s.options[s.options.selectedIndex].value,n));return void 0!==a&&(e[r]=a),e},t={},tU(n5).reduce(function(t,i){return e(t,n5[i],i)},t)},i.setValues=function(e){var t=this;tH(n5,function(i,r){(function(e,t,i){if(t){for(var r=0;r<e.options.length;r++)if(n4(e.options[r].value,i)===t){e.selectedIndex=r;break}}})(t.$(i.selector),e[r],i.parser)})},i.setDefaults=function(){var e=this;tH(n5,function(t){var i=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=i})},i.restoreSettings=function(){var e;try{e=JSON.parse(tF.localStorage.getItem(nq))}catch(e){tG.warn(e)}e&&this.setValues(e)},i.saveSettings=function(){if(this.e.persistTextTrackSettings){var e=this.getValues();try{T.keys(e).length?tF.localStorage.setItem(nq,JSON.stringify(e)):tF.localStorage.removeItem(nq)}catch(e){tG.warn(e)}}},i.updateDisplay=function(){var e=this.R5.getChild("textTrackDisplay");e&&e.updateDisplay()},t}(i6);i6.registerComponent("TextTrackSettings",n6);var n9=function(e){function t(t,i){var r=e.call(this,t,i)||this,s=t.source,n=!1;if(s&&(r.el_.currentSrc!==s.src||t.tag&&3===t.tag.ie)?r.setSource(s):r.it(r.el_),r.el_.hasChildNodes()){for(var a=r.el_.childNodes,o=a.length,l=[];o--;){var h=a[o];"track"===h.nodeName.toLowerCase()&&(r.featuresNativeTextTracks?(r.remoteTextTrackEls().M(h),r.remoteTextTracks().uG(h.track),!n&&!r.el_.hasAttribute("crossorigin")&&rE(h.src)&&(n=!0)):l.push(h))}for(var u=0;u<l.length;u++)r.el_.removeChild(l[u])}return["audio","video"].forEach(function(e){var t=r.el()[e+"Tracks"],i=r[e+"Tracks"](),s=i5(e);r["featuresNative"+s+"Tracks"]&&t&&t.addEventListener&&(r["handle"+s+"ii"]=function(e){i.trigger({type:"change",target:i,currentTarget:i,srcElement:i})},r["handle"+s+"is"]=function(e){return i.addTrack(e.track)},r["handle"+s+"ia"]=function(e){return i.removeTrack(e.track)},t.addEventListener("change",r["handle"+s+"ii"]),t.addEventListener("addtrack",r["handle"+s+"is"]),t.addEventListener("removetrack",r["handle"+s+"ia"]),r["removeOld"+s+"io"]=function(e){return r.iu(i,t)},r.on("loadstart",r["removeOld"+s+"io"]))}),r.featuresNativeTextTracks&&(n&&tG.warn(tK(p||(p=tO(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."])))),r.ip=i2(i7(r),r.handleTextTrackChange),r.iv=i2(i7(r),r.handleTextTrackAdd),r.ig=i2(i7(r),r.handleTextTrackRemove),r.ik()),r.rt(),(iN||iT||iM)&&!0===t.nativeControlsForTouch&&r.setControls(!0),r.rn(),r.triggerReady(),r}re(t,e);var i=t.prototype;return i.dispose=function(){var i=this;["audio","video","text"].forEach(function(e){var t=i5(e),r=i.el_[e+"Tracks"];r&&r.removeEventListener&&(r.removeEventListener("change",i["handle"+t+"ii"]),r.removeEventListener("addtrack",i["handle"+t+"is"]),r.removeEventListener("removetrack",i["handle"+t+"ia"])),r&&i.off("loadstart",i["removeOld"+t+"io"])}),t.disposeMediaElement(this.el_),e.prototype.dispose.call(this)},i.rt=function(){var e,t=this.textTracks(),i=function(){e=[];for(var i=0;i<t.length;i++){var r=t[i];"metadata"===r.kind&&e.push({track:r,storedMode:r.mode})}};i(),t.addEventListener("change",i);var r=function i(){for(var r=0;r<e.length;r++){var s=e[r];"disabled"===s.track.mode&&s.track.mode!==s.storedMode&&(s.track.mode=s.storedMode)}t.removeEventListener("change",i)};this.on("webkitbeginfullscreen",function(){t.removeEventListener("change",i),t.removeEventListener("change",r),t.addEventListener("change",r)}),this.on("webkitendfullscreen",function(){t.removeEventListener("change",i),t.addEventListener("change",i),t.removeEventListener("change",r)})},i.createEl=function(){var e=this.e.tag;if(!e||!(this.e.playerElIngest||this.movingMediaElementInDOM)){if(e){var i=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(i,e),t.disposeMediaElement(e),e=i}else{e=tN.createElement("video");var r=i4({},this.e.tag&&ia(this.e.tag));iN&&!0===this.e.nativeControlsForTouch||delete r.controls,is(e,tz(r,{id:this.e.techId,class:"vjs-tech"}))}e.playerId=this.e.playerId}void 0!==this.e.preload&&io(e,"preload",this.e.preload);for(var s=["loop","muted","playsinline","autoplay"],n=s.length-1;n>=0;n--){var a=s[n],o=this.e[a];void 0!==o&&(o?io(e,a,a):il(e,a),e[a]=o)}return e},i.it=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,i=function(){t=!0};this.on("loadstart",i);var r=function(){t||this.trigger("loadstart")};this.on("loadedmetadata",r),this.ready(function(){this.off("loadstart",i),this.off("loadedmetadata",r),t||this.trigger("loadstart")});return}var s=["loadstart"];s.push("loadedmetadata"),e.readyState>=2&&s.push("loadeddata"),e.readyState>=3&&s.push("canplay"),e.readyState>=4&&s.push("canplaythrough"),this.ready(function(){s.forEach(function(e){this.trigger(e)},this)})}},i.ik=function(){var e=this.el().textTracks;if(e){for(var t=0;t<e.length;t++)this.textTracks().uG(e[t]);e.addEventListener&&(e.addEventListener("change",this.ip),e.addEventListener("addtrack",this.iv),e.addEventListener("removetrack",this.ig)),this.on("loadstart",this.ro)}},i.handleTextTrackChange=function(e){var t=this.textTracks();this.textTracks().trigger({type:"change",target:t,currentTarget:t,srcElement:t})},i.handleTextTrackAdd=function(e){this.textTracks().uG(e.track)},i.handleTextTrackRemove=function(e){this.textTracks().uj(e.track)},i.iu=function(e,t){var i=[];if(t){for(var r=0;r<e.length;r++){for(var s=e[r],n=!1,a=0;a<t.length;a++)if(t[a]===s){n=!0;break}n||i.push(s)}for(var o=0;o<i.length;o++){var l=i[o];e.uj(l)}}},i.ro=function(e){var t=this.textTracks(),i=this.el().textTracks;this.iu(t,i)},i.play=function(){var e=this.el_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,function(e){})},i.setCurrentTime=function(e){try{this.el_.currentTime=e}catch(e){tG(e,"Video is not ready. (Video.js)")}},i.duration=function(){var e=this;return 1/0===this.el_.duration&&iS&&iI&&0===this.el_.currentTime?(this.on("timeupdate",function t(){e.el_.currentTime>0&&(1/0===e.el_.duration&&e.trigger("durationchange"),e.off("timeupdate",t))}),0/0):this.el_.duration||0/0},i.width=function(){return this.el_.offsetWidth},i.height=function(){return this.el_.offsetHeight},i.rn=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},i=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",i),this.on("dispose",function(){e.off("webkitbeginfullscreen",i),e.off("webkitendfullscreen",t)})}},i.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=tF.navigator&&tF.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},i.enterFullScreen=function(){var e=this.el_;e.paused&&e.networkState<=e.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){e.pause(),e.webkitEnterFullScreen()},0)):e.webkitEnterFullScreen()},i.exitFullScreen=function(){this.el_.webkitExitFullScreen()},i.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},i.reset=function(){t.resetMediaElement(this.el_)},i.currentSrc=function(){return this.Cy?this.Cy.src:this.el_.currentSrc},i.setControls=function(e){this.el_.controls=!!e},i.addTextTrack=function(t,i,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,i,r):e.prototype.addTextTrack.call(this,t,i,r)},i.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var i=tN.createElement("track");return t.kind&&(i.kind=t.kind),t.label&&(i.label=t.label),(t.language||t.srclang)&&(i.srclang=t.language||t.srclang),t.default&&(i.default=t.default),t.id&&(i.id=t.id),t.src&&(i.src=t.src),i},i.addRemoteTextTrack=function(t,i){var r=e.prototype.addRemoteTextTrack.call(this,t,i);return this.featuresNativeTextTracks&&this.el().appendChild(r),r},i.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var i=this.$$("track"),r=i.length;r--;)(t===i[r]||t===i[r].track)&&this.el().removeChild(i[r])},i.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),tF.performance&&"function"==typeof tF.performance.now?e.creationTime=tF.performance.now():tF.performance&&tF.performance.timing&&"number"==typeof tF.performance.timing.navigationStart&&(e.creationTime=tF.Date.now()-tF.performance.timing.navigationStart),e},t}(sJ);if(tZ()){n9.TEST_VID=tN.createElement("video");var n7=tN.createElement("track");n7.kind="captions",n7.srclang="en",n7.label="English",n9.TEST_VID.appendChild(n7)}n9.isSupported=function(){try{n9.TEST_VID.volume=.5}catch(e){return!1}return!!(n9.TEST_VID&&n9.TEST_VID.canPlayType)},n9.canControlVolume=function(){try{var e=n9.TEST_VID.volume;return n9.TEST_VID.volume=e/2+.1,e!==n9.TEST_VID.volume}catch(e){return!1}},n9.canControlPlaybackRate=function(){if(iS&&iI&&iV<58)return!1;try{var e=n9.TEST_VID.playbackRate;return n9.TEST_VID.playbackRate=e/2+.1,e!==n9.TEST_VID.playbackRate}catch(e){return!1}},n9.supportsNativeTextTracks=function(){return iF},n9.supportsNativeVideoTracks=function(){return!!(n9.TEST_VID&&n9.TEST_VID.videoTracks)},n9.supportsNativeAudioTracks=function(){return!!(n9.TEST_VID&&n9.TEST_VID.audioTracks)},n9.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],n9.prototype.featuresVolumeControl=n9.canControlVolume(),n9.prototype.featuresPlaybackRate=n9.canControlPlaybackRate(),n9.prototype.movingMediaElementInDOM=!iE,n9.prototype.featuresFullscreenResize=!0,n9.prototype.featuresProgressEvents=!0,n9.prototype.featuresTimeupdateEvents=!0,n9.prototype.featuresNativeTextTracks=n9.supportsNativeTextTracks(),n9.prototype.featuresNativeVideoTracks=n9.supportsNativeVideoTracks(),n9.prototype.featuresNativeAudioTracks=n9.supportsNativeAudioTracks();var n8=n9.TEST_VID&&n9.TEST_VID.constructor.prototype.canPlayType,ae=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,at=/^video\/mp4/i;n9.patchCanPlayType=function(){ix>=4&&!iL?n9.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&ae.test(e)?"maybe":n8.call(this,e)}:iP&&(n9.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&at.test(e)?"maybe":n8.call(this,e)})},n9.unpatchCanPlayType=function(){var e=n9.TEST_VID.constructor.prototype.canPlayType;return n9.TEST_VID.constructor.prototype.canPlayType=n8,e},n9.patchCanPlayType(),n9.disposeMediaElement=function(e){if(e){var t=e.nodeName.toLowerCase();if("video"===t||"audio"===t){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){}}()}}},n9.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),i=t.length;i--;)e.removeChild(t[i]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){n9.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){n9.prototype["set"+i5(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(e){n9.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate"].forEach(function(e){n9.prototype["set"+i5(e)]=function(t){this.el_[e]=t}}),["pause","load"].forEach(function(e){n9.prototype[e]=function(){return this.el_[e]()}}),sJ.withSourceHandlers(n9),n9.nativeSourceHandler={},n9.nativeSourceHandler.canPlayType=function(e){try{return n9.TEST_VID.canPlayType(e)}catch(e){return""}},n9.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return n9.nativeSourceHandler.canPlayType(e.type);if(e.src){var i=rk(e.src);return n9.nativeSourceHandler.canPlayType("video/"+i)}return""},n9.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},n9.nativeSourceHandler.dispose=function(){},n9.registerSourceHandler(n9.nativeSourceHandler),i6.registerComponent("Html5",n9),sJ.registerTech("Html5",n9);var ai=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"],ar=function(e){function t(i,r,s){if(i.id=i.id||["vjs_video",tR++].join("_"),(r=tz(t.getTagSettings(i),r)).initChildren=!1,r.createEl=!1,r.reportTouchActivity=!1,!r.language)if("function"==typeof i.closest){var n,a=i.closest("[lang]");a&&(r.language=a.getAttribute("lang"))}else for(var o=i;o&&1===o.nodeType;){if(ia(o).hasOwnProperty("lang")){r.language=o.getAttribute("lang");break}o=o.parentNode}if(!(n=e.call(this,null,r,s)||this).e||!n.e.techOrder||!n.e.techOrder.length)throw new g("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(n.tag=i,n.tagAttributes=i&&ia(i),n.language(n.e.language),r.languages){var l={};T.getOwnPropertyNames(r.languages).forEach(function(e){l[e.toLowerCase()]=r.languages[e]}),n.rl=l}else n.rl=t.prototype.e.languages;n.eQn={},n.QR=r.poster||"",n.ru=!!r.controls,i.controls=!1,n.r_=!1,n.el_=n.createEl();var h=i4(n.e);if(r.plugins){var u=r.plugins;T.getOwnPropertyNames(u).forEach(function(e){"function"==typeof this[e]?this[e](u[e]):tG.error("Unable to find plugin:",e)},i7(n))}n.e.playerOptions=h,n.initChildren(),n.isAudio("audio"===i.nodeName.toLowerCase()),n.controls()?n.addClass("vjs-controls-enabled"):n.addClass("vjs-controls-disabled"),n.el_.setAttribute("role","region"),n.isAudio()?n.el_.setAttribute("aria-label","audio player"):n.el_.setAttribute("aria-label","video player"),n.isAudio()&&n.addClass("vjs-audio"),n.rm()&&n.addClass("vjs-no-flex"),iE||n.addClass("vjs-workinghover"),t.players[n.uZ]=i7(n);var c="5.20.6-opentelly.14".split(".")[0];return n.addClass("vjs-v"+c),n.userActive(!0),n.reportUserActivity(),n.rb(),n.on("fullscreenchange",n.DU),n.on("stageclick",n.rw),n}re(t,e);var i=t.prototype;return i.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.se&&this.se.parentNode&&this.se.parentNode.removeChild(this.se),t.players[this.uZ]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.w&&this.w.dispose(),e.prototype.dispose.call(this)},i.createEl=function(){var t,i=this.tag,r=this.st=i.parentNode&&i.parentNode.hasAttribute&&i.parentNode.hasAttribute("data-vjs-player");t=r?this.el_=i.parentNode:this.el_=e.prototype.createEl.call(this,"div"),i.setAttribute("tabindex","-1"),i.removeAttribute("width"),i.removeAttribute("height");var s=ia(i);if(T.getOwnPropertyNames(s).forEach(function(e){"class"===e?t.className+=" "+s[e]:t.setAttribute(e,s[e])}),i.playerId=i.id,i.id+="si",i.className="vjs-tech",i.player=t.player=this,this.addClass("vjs-paused"),!0!==tF.VIDEOJS_NO_DYNAMIC_STYLE){this.se=i0("vjs-styles-dimensions");var n=iv(".vjs-styles-defaults"),a=iv("head");a.insertBefore(this.se,n?n.nextSibling:a.firstChild)}this.width(this.e.width),this.height(this.e.height),this.fluid(this.e.fluid),this.aspectRatio(this.e.aspectRatio);for(var o=i.getElementsByTagName("a"),l=0;l<o.length;l++){var h=o.item(l);it(h,"vjs-hidden"),h.setAttribute("hidden","hidden")}return i.ie=i.networkState,i.parentNode&&!r&&i.parentNode.insertBefore(t,i),t5(i,t),this.h4.unshift(i),this.el_=t,t},i.width=function(e){return this.dimension("width",e)},i.height=function(e){return this.dimension("height",e)},i.dimension=function(e,t){var i="width"===e?"c8":"pq";if(void 0===t)return this[i]||0;if(""===t)this[i]=void 0;else{var r=w(t);if(S(r))return tG.error('Improper value "'+t+'" supplied for for '+e),this;this[i]=r}return this.sr(),this},i.fluid=function(e){if(void 0===e)return!!this.ss;this.ss=!!e,e?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.sr()},i.aspectRatio=function(e){if(void 0===e)return this.sn;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.sn=e,this.fluid(!0),this.sr()},i.sr=function(){if(!0===tF.VIDEOJS_NO_DYNAMIC_STYLE){var e,t,i,r="number"==typeof this.c8?this.c8:this.e.width,s="number"==typeof this.pq?this.pq:this.e.height,n=this.w&&this.w.el();n&&(r>=0&&(n.width=r),s>=0&&(n.height=s));return}var a=(void 0!==this.sn&&"auto"!==this.sn?this.sn:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),o=a[1]/a[0];e=void 0!==this.c8?this.c8:void 0!==this.pq?this.pq/o:this.videoWidth()||300,t=void 0!==this.pq?this.pq:e*o,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),i1(this.se,"\n ."+i+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+i+".vjs-fluid {\n padding-top: "+100*o+"%;\n }\n ")},i.ee=function(e,t){var i,r,s=this;this.w&&this.sa(),"Html5"!==e&&this.tag&&(sJ.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.so=e,this.l=!1;var n=tz({source:t,nativeControlsForTouch:this.e.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+e+"sl",videoTracks:this.CN,textTracks:this.Ch,audioTracks:this.Cp,autoplay:this.e.autoplay,playsinline:this.e.playsinline,preload:this.e.preload,loop:this.e.loop,muted:this.e.muted,poster:this.poster(),language:this.language(),playerElIngest:this.st||!1,"vtt.js":this.e["vtt.js"]},this.e[e.toLowerCase()]);this.tag&&(n.tag=this.tag),t&&(this.su=t.type,t.src===this.eQn.src&&this.eQn.currentTime>0&&(n.startTime=this.eQn.currentTime),this.eQn.sources=null,this.eQn.source=t,this.eQn.src=t.src);var a=sJ.getTech(e);a||(a=i6.getComponent(e)),this.w=new a(n),this.w.ready(i2(this,this.sc),!0),i=this.sd||[],r=this.w,i.forEach(function(e){var t=r.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return t.addCue(e)})}),r.textTracks(),ai.forEach(function(e){s.on(s.w,e,s["handleTech"+i5(e)+"_"])}),this.on(this.w,"loadstart",this.sv),this.on(this.w,"waiting",this.sm),this.on(this.w,"canplay",this.sf),this.on(this.w,"canplaythrough",this.sg),this.on(this.w,"playing",this.sk),this.on(this.w,"ended",this.sw),this.on(this.w,"seeking",this.sq),this.on(this.w,"seeked",this.ne),this.on(this.w,"play",this.nr),this.on(this.w,"firstplay",this.nn),this.on(this.w,"pause",this.na),this.on(this.w,"durationchange",this.no),this.on(this.w,"fullscreenchange",this.nl),this.on(this.w,"error",this.nd),this.on(this.w,"loadedmetadata",this.sr),this.on(this.w,"resize",this.sr),this.on(this.w,"posterchange",this.nv),this.on(this.w,"textdata",this.ny),this.usingNativeControls(this.ng("controls")),this.controls()&&!this.usingNativeControls()&&this.nb(),this.w.el().parentNode===this.contentEl()||"Html5"===e&&this.tag||t5(this.w.el(),this.contentEl()),this.tag&&(this.tag.player=null,this.tag=null)},i.sa=function(){this.CN=this.videoTracks(),this.Ch=this.textTracks(),this.Cp=this.audioTracks(),this.sd=rp(this.w),this.l=!1,this.w.dispose(),this.w=!1},i.tech=function(e){if(e&&e.IWillNotUseThisInPlugins)return this.w;var t="\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 tF.alert(t),new g(t)},i.nb=function(){this.ae(),this.on(this.w,"mousedown",this.at),this.on(this.w,"touchstart",this.ar),this.on(this.w,"touchmove",this.as),this.on(this.w,"touchend",this.an),this.on(this.w,"tap",this.aa)},i.ae=function(){this.off(this.w,"tap",this.aa),this.off(this.w,"touchstart",this.ar),this.off(this.w,"touchmove",this.as),this.off(this.w,"touchend",this.an),this.off(this.w,"mousedown",this.at)},i.sc=function(){if(this.triggerReady(),this.eQn.volume&&this.ad("setVolume",this.eQn.volume),this.nv(),this.no(),(this.src()||this.currentSrc())&&this.tag&&this.e.autoplay&&this.paused()){try{delete this.tag.poster}catch(e){tG("deleting tag.poster throws in some browsers",e)}this.play()}},i.sv=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"))},i.hasStarted=function(e){return void 0!==e?(this.j!==e&&(this.j=e,e?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.j},i.nr=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},i.sm=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return e.removeClass("vjs-waiting")})},i.sf=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},i.sg=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},i.sk=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},i.sq=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},i.ne=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},i.nn=function(){this.e.starttime&&(tG.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.e.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},i.na=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},i.sw=function(){this.addClass("vjs-ended"),this.e.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},i.no=function(){this.duration(this.ng("duration"))},i.at=function(e){0!==e.button||this.controls()&&(void 0===this.e||void 0===this.e.userActions||void 0===this.e.userActions.click||!1!==this.e.userActions.click)&&(void 0!==this.e&&void 0!==this.e.userActions&&"function"==typeof this.e.userActions.click?this.e.userActions.click.call(this,e):this.paused()?this.play():this.pause())},i.aa=function(){this.userActive(!this.userActive())},i.ar=function(){this.userWasActive=this.userActive()},i.as=function(){this.userWasActive&&this.reportUserActivity()},i.an=function(e){e.cancelable&&e.preventDefault()},i.DU=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},i.rw=function(){this.reportUserActivity()},i.nl=function(e,t){t&&(this.toggleClass("vjs-ios-native-fs",!!(t.nativeIOSFullscreen&&t.isFullscreen)),this.isFullscreen(t.isFullscreen)),this.trigger("fullscreenchange")},i.nd=function(){var e=this.w.error();this.error(e)},i.ny=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},i.getCache=function(){return this.eQn},i.ad=function(e,t){if(this.w&&!this.w.l)this.w.ready(function(){this[e](t)},!0);else try{this.w&&this.w[e](t)}catch(e){throw tG(e),e}},i.ng=function(e){if(this.w&&this.w.l)try{return this.w[e]()}catch(t){throw void 0===this.w[e]?tG("Video.js: "+e+" method not defined for "+this.so+" playback technology.",t):"TypeError"===t.name?(tG("Video.js: "+e+" unavailable on "+this.so+" playback technology element.",t),this.w.l=!1):tG(t),t}},i.play=function(){return this.src()||this.currentSrc()?this.ad("play"):this.w.one("loadstart",function(){this.play()}),this},i.pause=function(){return this.ad("pause"),this},i.paused=function(){return!1!==this.ng("paused")},i.scrubbing=function(e){return void 0!==e?(this.r_=!!e,e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.r_},i.currentTime=function(e){return void 0!==e?(this.ad("setCurrentTime",e),this):(this.eQn.currentTime=this.ng("currentTime")||0,this.eQn.currentTime)},i.duration=function(e){return void 0===e?void 0!==this.eQn.duration?this.eQn.duration:0/0:((e=w(e))<0&&(e=1/0),e!==this.eQn.duration&&(this.eQn.duration=e,1/0===e?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},i.remainingTime=function(){return this.duration()-this.currentTime()},i.buffered=function(){var e=this.ng("buffered");return e&&e.length||(e=rr(0,0)),e},i.bufferedPercent=function(){return rs(this.buffered(),this.duration())},i.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),i=e.end(e.length-1);return i>t&&(i=t),i},i.volume=function(e){var t;return void 0!==e?(t=k.max(0,k.min(1,w(e))),this.eQn.volume=t,this.ad("setVolume",t),this):S(t=w(this.ng("volume")))?1:t},i.muted=function(e){return void 0!==e?(this.ad("setMuted",e),this):this.ng("muted")||!1},i.supportsFullScreen=function(){return this.ng("supportsFullScreen")||!1},i.isFullscreen=function(e){return void 0!==e?(this.EU=!!e,this):!!this.EU},i.requestFullscreen=function(e){var t;return this.isFullscreen(!0),rn.requestFullscreen?(iQ(tN,rn.fullscreenchange,i2(this,function e(t){this.isFullscreen(tN[rn.fullscreenElement]),!1===this.isFullscreen()&&iG(tN,rn.fullscreenchange,e),this.trigger("fullscreenchange")})),rn.prefixed||(t=this.e.fullscreenOptions,void 0!==e&&(t=e)),this.el_[rn.requestFullscreen](t)):this.w.supportsFullScreen()?this.ad("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},i.exitFullscreen=function(){return this.isFullscreen(!1),rn.requestFullscreen?tN[rn.exitFullscreen]():this.w.supportsFullScreen()?this.ad("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},i.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=tN.documentElement.style.overflow,iQ(tN,"keydown",i2(this,this.fullWindowOnEscKey)),tN.documentElement.style.overflow="hidden",it(tN.body,"vjs-full-window"),this.trigger("enterFullWindow")},i.fullWindowOnEscKey=function(e){27===e.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},i.exitFullWindow=function(){this.isFullWindow=!1,iG(tN,"keydown",this.fullWindowOnEscKey),tN.documentElement.style.overflow=this.docOrigOverflow,ii(tN.body,"vjs-full-window"),this.trigger("exitFullWindow")},i.canPlayType=function(e){for(var t,i=0,r=this.e.techOrder;i<r.length;i++){var s=i5(r[i]),n=sJ.getTech(s);if(n||(n=i6.getComponent(s)),!n){tG.error('The "'+s+'" tech is undefined. Skipped browser support check for that tech.');continue}if(n.isSupported()&&(t=n.canPlayType(e)))return t}return""},i.selectSource=function(e){var t,i=this,r=this.e.techOrder.map(i5).map(function(e){return[e,sJ.getTech(e)||i6.getComponent(e)]}).filter(function(e){var t=e[0],i=e[1];return i?i.isSupported():(tG.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),s=function(e,t,i){var r;return e.some(function(e){return t.some(function(t){if(r=i(e,t))return!0})}),r},n=function(e,t){var r=e[0];if(e[1].canPlaySource(t,i.e[r.toLowerCase()]))return{source:t,tech:r}};return(t=this.e.sourceOrder?s(e,r,function(e,t){return n(t,e)}):s(r,e,n))||!1},i.src=function(e){if(void 0===e)return this.ng("src");var t=sJ.getTech(this.so);return t||(t=i6.getComponent(this.so)),Array.isArray(e)?this.a_(e):"string"==typeof e?this.src({src:e}):e instanceof T&&(e.type&&!t.canPlaySource(e,this.e[this.so.toLowerCase()])?this.a_([e]):(this.eQn.sources=null,this.eQn.source=e,this.eQn.src=e.src,this.su=e.type||"",this.ready(function(){t.prototype.hasOwnProperty("setSource")?this.ad("setSource",e):this.ad("src",e.src),"auto"===this.e.preload&&this.load(),this.e.autoplay&&this.play()},!0))),this},i.a_=function(e){var t=this.selectSource(e);t?(t.tech===this.so?this.src(t.source):this.ee(t.tech,t.source),this.eQn.sources=e):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.e.notSupportedMessage)})},0),this.triggerReady())},i.load=function(){return this.ad("load"),this},i.reset=function(){return this.ee(i5(this.e.techOrder[0]),null),this.ad("reset"),this},i.currentSources=function(){var e=this.currentSource(),t=[];return 0!==T.keys(e).length&&t.push(e),this.eQn.sources||t},i.currentSource=function(){var e={},t=this.currentSrc();return t&&(e.src=t),this.eQn.source||e},i.currentSrc=function(){return this.ng("currentSrc")||this.eQn.src||""},i.currentType=function(){return this.su||""},i.preload=function(e){return void 0!==e?(this.ad("setPreload",e),this.e.preload=e,this):this.ng("preload")},i.autoplay=function(e){return void 0!==e?(this.ad("setAutoplay",e),this.e.autoplay=e,this):this.ng("autoplay",e)},i.playsinline=function(e){return void 0!==e?(this.ad("setPlaysinline",e),this.e.playsinline=e,this):this.ng("playsinline")},i.loop=function(e){return void 0!==e?(this.ad("setLoop",e),this.e.loop=e,this):this.ng("loop")},i.poster=function(e){return void 0===e?this.QR:(e||(e=""),this.QR=e,this.ad("setPoster",e),this.trigger("posterchange"),this)},i.nv=function(){!this.QR&&this.w&&this.w.poster&&(this.QR=this.w.poster()||"",this.trigger("posterchange"))},i.controls=function(e){return void 0!==e?(e=!!e,this.ru!==e&&(this.ru=e,this.usingNativeControls()&&this.ad("setControls",e),e?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.nb()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.ae())),this):!!this.ru},i.usingNativeControls=function(e){return void 0!==e?(e=!!e,this.av!==e&&(this.av=e,e?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.av},i.error=function(e){return void 0===e?this.nu||null:(null===e?(this.nu=e,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close()):(this.nu=new ru(e),this.addClass("vjs-error"),tG.error("(CODE:"+this.nu.code+" "+ru.errorTypes[this.nu.code]+")",this.nu.message,this.nu),this.trigger("error")),this)},i.reportUserActivity=function(e){this.am=!0},i.userActive=function(e){return void 0!==e?((e=!!e)!==this.ay&&(this.ay=e,e?(this.am=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.am=!1,this.w&&this.w.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive"))),this):this.ay},i.rb=function(){var e,t,i,r,s=i2(this,this.reportUserActivity);this.on("mousedown",function(){s(),this.clearInterval(e),e=this.setInterval(s,250)}),this.on("mousemove",function(e){(e.screenX!==t||e.screenY!==i)&&(t=e.screenX,i=e.screenY,s())}),this.on("mouseup",function(t){s(),this.clearInterval(e)}),this.on("keydown",s),this.on("keyup",s),this.setInterval(function(){if(this.am){this.am=!1,this.userActive(!0),this.clearTimeout(r);var e=this.e.inactivityTimeout;e>0&&(r=this.setTimeout(function(){this.am||this.userActive(!1)},e))}},250)},i.playbackRate=function(e){return void 0!==e?(this.ad("setPlaybackRate",e),this):this.w&&this.w.featuresPlaybackRate?this.ng("playbackRate"):1},i.isAudio=function(e){return void 0!==e?(this.af=!!e,this):!!this.af},i.videoTracks=function(){return this.w?this.w.videoTracks():(this.CN=this.CN||new sG,this.CN)},i.audioTracks=function(){return this.w?this.w.audioTracks():(this.Cp=this.Cp||new sK,this.Cp)},i.textTracks=function(){if(this.w)return this.w.textTracks()},i.remoteTextTracks=function(){if(this.w)return this.w.remoteTextTracks()},i.remoteTextTrackEls=function(){if(this.w)return this.w.remoteTextTrackEls()},i.addTextTrack=function(e,t,i){if(this.w)return this.w.addTextTrack(e,t,i)},i.addRemoteTextTrack=function(e,t){if(this.w)return this.w.addRemoteTextTrack(e,t)},i.removeRemoteTextTrack=function(e){var t=(void 0===e?{}:e).track,i=void 0===t?arguments[0]:t;if(this.w)return this.w.removeRemoteTextTrack(i)},i.getVideoPlaybackQuality=function(){return this.ng("getVideoPlaybackQuality")},i.videoWidth=function(){return this.w&&this.w.videoWidth&&this.w.videoWidth()||0},i.videoHeight=function(){return this.w&&this.w.videoHeight&&this.w.videoHeight()||0},i.language=function(e){return void 0===e?this.u2:(this.u2!==String(e).toLowerCase()&&(this.u2=String(e).toLowerCase(),void 0!==this.el_&&this.trigger("languagechange")),this)},i.languages=function(){return i4(t.prototype.e.languages,this.rl)},i.toJSON=function(){var e=i4(this.e),t=e.tracks;e.tracks=[];for(var i=0;i<t.length;i++){var r=t[i];(r=i4(r)).player=void 0,e.tracks[i]=r}return e},i.createModal=function(e,t){var i=this;(t=t||{}).content=e||"";var r=new rv(this,t);return this.addChild(r),r.on("dispose",function(){i.removeChild(r)}),r.open()},t.getTagSettings=function(e){var t={sources:[],tracks:[]},i=ia(e),r=i["data-setup"];if(ie(e,"vjs-fluid")&&(i.fluid=!0),null!==r){var s=function(e){var t,i=null;try{t=JSON.parse(e,void 0)}catch(e){i=e}return[i,t]}(r||"{}"),n=s[0],a=s[1];n&&tG.error(n),tz(i,a)}if(tz(t,i),e.hasChildNodes())for(var o=e.childNodes,l=0,h=o.length;l<h;l++){var u=o[l],c=u.nodeName.toLowerCase();"source"===c?t.sources.push(ia(u)):"track"===c&&t.tracks.push(ia(u))}return t},i.rm=function(){var e=tN.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},t}(i6);ar.players={};var as=tF.navigator;ar.prototype.e={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:as&&(as.languages&&as.languages[0]||as.userLanguage||as.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",fullscreenOptions:{navigationUI:"hide"}},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){ar.prototype[e]=function(){return this.ng(e)}}),ai.forEach(function(e){ar.prototype["handleTech"+i5(e)+"_"]=function(){return this.trigger(e)}}),i6.registerComponent("Player",ar);var an=function(e){function t(i){void 0===i&&(i={});var r,s=i4(i,{kind:rf[i.kind]||""}),n=r=e.call(this,s)||this,a=!1;if(ij)for(var o in t.prototype)"constructor"!==o&&(n[o]=t.prototype[o]);return T.defineProperty(n,"enabled",{get:function(){return a},set:function(e){"boolean"==typeof e&&e!==a&&(a=e,this.trigger("enabledchange"))}}),s.enabled&&(n.enabled=s.enabled),n.elq=!0,n||i7(r)}return re(t,e),t}(rC),aa=function(e){function t(i){void 0===i&&(i={});var r,s=i4(i,{kind:ry[i.kind]||""}),n=r=e.call(this,s)||this,a=!1;if(ij)for(var o in t.prototype)"constructor"!==o&&(n[o]=t.prototype[o]);return T.defineProperty(n,"selected",{get:function(){return a},set:function(e){"boolean"==typeof e&&e!==a&&(a=e,this.trigger("selectedchange"))}}),s.selected&&(n.selected=s.selected),n||i7(r)}return re(t,e),t}(rC),ao=function(e,t){if("function"!=typeof t&&null!==t)throw new b("Super expression must either be null or a function, not "+typeof t);e.prototype=T.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.ab=t)};function al(e,t,i){if("string"==typeof e){var r;if(0===e.indexOf("#")&&(e=e.slice(1)),al.getPlayers()[e])return t&&tG.warn('Player "'+e+'" is already initialised. Options will not be applied.'),i&&al.getPlayers()[e].ready(i),al.getPlayers()[e];0===(r=e).indexOf("#")&&(r=r.slice(1)),s=tN.getElementById(r)}else s=e;if(!s||!s.nodeName)throw new b("The element or ID supplied is not valid. (videojs)");if(s.player||ar.players[s.playerId])return s.player||ar.players[s.playerId];t=t||{},al.hooks("beforesetup").forEach(function(e){var i=e(s,i4(t));!tW(i)||Array.isArray(i)?tG.error("please return an object in beforesetup hooks"):t=i4(t,i)});var s,n=new(i6.getComponent("Player"))(s,t,i);return al.hooks("setup").forEach(function(e){return e(n)}),n}if("u"<typeof HTMLVideoElement&&tZ()&&(tN.createElement("video"),tN.createElement("audio"),tN.createElement("track")),al.ak={},al.hooks=function(e,t){return al.ak[e]=al.ak[e]||[],t&&(al.ak[e]=al.ak[e].concat(t)),al.ak[e]},al.hook=function(e,t){al.hooks(e,t)},al.removeHook=function(e,t){var i=al.hooks(e).indexOf(t);return!(i<=-1)&&(al.ak[e]=al.ak[e].slice(),al.ak[e].splice(i,1),!0)},!0!==tF.VIDEOJS_NO_DYNAMIC_STYLE&&tZ()){var ah=iv(".vjs-styles-defaults");if(!ah){ah=i0("vjs-styles-defaults");var au=iv("head");au&&au.insertBefore(ah,au.firstChild),i1(ah,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}function ac(e){let t=e.duration;if(S(t)){var i;let t=null==(i=e.source)?void 0:i.streamType;return"live"===t||"dvr"===t}return 1/0===t}function ad(e){return e.scrubbing()?e.getCache().currentTime:e.currentTime()}function ap(e){let t=am(e);return ac(e)?t.end(t.length-1):t.start(0)}function a_(e){return am(e).start(0)}function av(e){let t=am(e);return t.end(t.length-1)-t.start(0)}function am(e){let t=e.seekable;if(t&&t.length)return t;let i=e.duration;return new tl([0,i=isFinite(i)?i:0]).Cg()}function ay(e,t=e){let i=e<0?"-":"";e=k.abs(e);let r=k.floor(e%60),s=k.floor(e/60%60),n=k.floor(e/3600),a=k.floor(t/60%60),o=k.floor(t/3600);return(S(e)||1/0===e)&&(n=s=r="-"),n=Number(n)>0||o>0?`${n}:`:"",s=`${(n||a>=10)&&10>Number(s)?`0${s}`:s}:`,i+n+s+(r=10>Number(r)?`0${r}`:r)}function af(e){return class extends e{constructor(...e){super(...e),this.az=void 0}get ot(){var e;return null!=(e=this.az)?e:this.az=ag(this.player())}dispose(){this.az=void 0,super.dispose()}}}function ag(e){return e.tech({IWillNotUseThisInPlugins:!0}).theoplayer()}function ab(e,t,i){e.toggleClass("theo-ad-playing",t),e.toggleClass("theo-dai-ad-playing",t&&i)}function aC(){this.userActive(!1)}iZ(1,al),al.VERSION="5.20.6-opentelly.14",al.options=ar.prototype.e,al.getPlayers=function(){return ar.players},al.players=ar.players,al.getComponent=i6.getComponent,al.registerComponent=function(e,t){sJ.isTech(t)&&tG.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),i6.registerComponent.call(i6,e,t)},al.getTech=sJ.getTech,al.registerTech=sJ.registerTech,al.browser=iR,al.TOUCH_ENABLED=iN,al.extend=function(e,t){void 0===t&&(t={});var i=function(){e.apply(this,arguments)},r={};for(var s in tW(t)?("function"==typeof t.init&&(tG.warn("Constructor logic via init() is deprecated; please use constructor() instead."),t.constructor=t.init),t.constructor!==T.prototype.constructor&&(i=t.constructor),r=t):"function"==typeof t&&(i=t),ao(i,e),r)r.hasOwnProperty(s)&&(i.prototype[s]=r[s]);return i},al.mergeOptions=i4,al.bind=i2,al.plugin=function(e,t){ar.prototype[e]=t},al.addLanguage=function(e,t){var i;return e=(""+e).toLowerCase(),al.options.languages=i4(al.options.languages,((i={})[e]=t,i)),al.options.languages[e]},al.log=tG,al.createTimeRange=al.createTimeRanges=rr,al.formatTime=nr,al.parseUrl=rT,al.isCrossOrigin=rE,al.EventTarget=i9,al.on=iQ,al.one=iK,al.off=iG,al.trigger=iX,al.xhr=sD,al.TextTrack=s$,al.AudioTrack=an,al.VideoTrack=aa,al.isEl=t0,al.isTextNode=ic,al.createEl=t2,al.hasClass=ie,al.addClass=it,al.removeClass=ii,al.toggleClass=ir,al.setAttributes=is,al.getAttributes=ia,al.emptyEl=id,al.appendContent=ip,al.insertContent=i_,al.computedStyle=nu;var aT=class{constructor(e,t){this.type=void 0,this.target=void 0,this.playerEvent=void 0,this.type=e.type,this.target=t,this.playerEvent=e}};let ak=["loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange","resize"],aE=al.getTech("Tech"),aw=al.getTech("Html5");var aS=class extends aE{constructor(e={},t){super(e,t),this.ot=void 0,this.or=e=>this.s$(e),this.os=!1,this.Ak=()=>{void 0===this.ot.errorObject&&(this.s$(new e6(this.ot.currentTime,this.ot.readyState)),this.s$(new e2),this.s$(new tn(this.ot.duration)))},this.eZq=()=>{this.s$(new ej(this.ot.currentTime))},this.oc=e=>{this.textTracks().uG(e.track)},this.om=e=>{this.audioTracks().uG(e.track)},this.ok=e=>{this.textTracks().uj(e.track)},this.oj=e=>{this.audioTracks().uj(e.track)},this.le=()=>{let e=this.textTracks();e.trigger({type:"change",target:e,currentTarget:e,srcElement:e})},this.lt=()=>{let e=this.audioTracks();e.trigger({type:"change",target:e,currentTarget:e,srcElement:e})},this.lr=()=>{if(!this.supportsFullScreen())return;let e=this.os,t="fullscreen"===this.ot.presentation.currentMode;e!==t&&(this.os=t,this.trigger("fullscreenchange",{isFullscreen:t,nativeIOSFullscreen:!0}))},this._A=()=>{let e=this.ot.errorObject,t=e&&I(e.code)||-1,i=e&&e.message||"An unknown error occurred.";this.error({code:t,message:this.localize(i)})},this.ot=this.e.player,this.ln();let i=!this.paused();i&&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.it(),i&&this.ready(()=>this.play()),this.triggerReady()}ln(){var e;for(let e of ak)this.ot.addEventListener(e,this.or);this.ot.addEventListener("error",this._A),this.ot.addEventListener("contentprotectionerror",this._A),this.ot.addEventListener("sourcechange",this.Ak),this.ot.addEventListener("loadstart",this.eZq),null==(e=this.ot.presentation)||e.addEventListener("presentationmodechange",this.lr),this.ot.textTracks.addEventListener("addtrack",this.oc),this.ot.textTracks.addEventListener("removetrack",this.ok),this.ot.textTracks.addEventListener("change",this.le),this.ot.audioTracks.addEventListener("addtrack",this.om),this.ot.audioTracks.addEventListener("removetrack",this.oj),this.ot.audioTracks.addEventListener("change",this.lt)}la(){var e;for(let e of ak)this.ot.removeEventListener(e,this.or);this.ot.removeEventListener("error",this._A),this.ot.removeEventListener("contentprotectionerror",this._A),this.ot.removeEventListener("sourcechange",this.Ak),this.ot.removeEventListener("loadstart",this.eZq),null==(e=this.ot.presentation)||e.removeEventListener("presentationmodechange",this.lr),this.ot.textTracks.removeEventListener("addtrack",this.oc),this.ot.textTracks.removeEventListener("removetrack",this.ok),this.ot.textTracks.removeEventListener("change",this.le),this.ot.audioTracks.removeEventListener("addtrack",this.om),this.ot.audioTracks.removeEventListener("removetrack",this.oj),this.ot.audioTracks.removeEventListener("change",this.lt)}s$(e){this.trigger(new aT(e,this))}createEl(){let e=this.e,t=e.player;if(!t)throw new g(this.localize('Missing required tech option "player"'));let i=t.element;return al.setAttributes(i,{id:e.techId}),i}theoplayer(){return this.ot}addTextTrack(e,t,i){return super.addTextTrack(e,t,i)}buffered(){return this.ot.buffered}played(){return this.ot.played}reset(){this.ot.stop()}play(){this.ot.play()}pause(){this.ot.pause()}paused(){return this.ot.paused}currentTime(){return this.ot.currentTime}setCurrentTime(e){this.ot.currentTime=e}duration(){return this.ot.duration}volume(){return this.ot.volume}setVolume(e){this.ot.volume=e}muted(){return this.ot.muted}setMuted(e){this.ot.muted=e}src(e){if(void 0===e){if(this.ot.src)return this.ot.src;if(this.ot.source){var t;if(!eE(this.ot.source.ads))return this.ot.source.ads[0].sources;if((t=this.ot.source).sources&&(tk(t.sources)?t.sources.some(eR):eR(t.sources)))return"This source is managed by the Uplynk integration extension.";if(function(e){if(e.sources){if(tk(e.sources)){for(let t of e.sources)if(tC(t))return!0}else if(eV(e.sources))return tC(e.sources)}return!1}(this.ot.source))return"This source is managed by the DAI integration extension.";if(eW(this.ot.source))return"This source is managed by Millicast."}return}this.setSrc(e)}setSrc(e){return this.setSource({src:e})}setSource(e){this.nu=null,this.trigger("error")}currentSrc(){return this.ot.src}load(){this.setPreload("auto")}preload(){return this.ot.preload}setPreload(e){this.ot.preload=e}autoplay(){return this.ot.autoplay}setAutoplay(e){this.ot.autoplay=!!e}seeking(){return this.ot.seeking}seekable(){return this.ot.seekable}ended(){return this.ot.ended}playbackRate(){return this.ot.playbackRate}setPlaybackRate(e){this.ot.playbackRate=e}readyState(){return this.ot.readyState}networkState(){return 0}controls(){return!1}videoHeight(){return this.ot.videoHeight}videoWidth(){return this.ot.videoWidth}supportsFullScreen(){return this.ot.presentation.supportsMode("fullscreen")}enterFullScreen(){this.ot.presentation.requestMode("fullscreen")}exitFullScreen(){this.ot.presentation.requestMode("inline")}lo(){let e=this.ot.ads;if(e&&e.playing)return!0;let t=this.ot.vr;return!!t&&"unavailable"!==t.state}initTextTrackListeners(){return this.on("touchend",e=>{this.lo()&&(e.preventDefault=()=>{})}),super.initTextTrackListeners()}it(){if(!this.src())return;let e=this.readyState();if(0===e){let e=!1,t=()=>{e=!0};this.on("loadstart",t);let i=()=>{e||this.trigger("loadstart")};this.on("loadedmetadata",i),this.ready(()=>{this.off("loadstart",t),this.off("loadedmetadata",i),e||this.trigger("loadstart")});return}let t=["loadstart"];t.push("loadedmetadata"),e>=2&&t.push("loadeddata"),e>=3&&t.push("canplay"),e>=4&&t.push("canplaythrough"),this.ready(()=>{for(let e of t)this.trigger(e)})}dispose(){this.la(),this.ot=null,super.dispose()}static isSupported(){return!0}static canPlayType(){return"maybe"}static canPlaySource(e){return"maybe"}get featuresVolumeControl(){return tu}};aS.prototype.featuresFullscreenResize=aw.prototype.featuresFullscreenResize,aS.prototype.featuresPlaybackRate=aw.prototype.featuresPlaybackRate,aS.prototype.featuresProgressEvents=!0,aS.prototype.featuresTimeupdateEvents=!0,aS.prototype.featuresNativeTextTracks=!0,al.registerTech("THEOplayer",aS);var ax=class{constructor(e){this.R8=void 0,this.lu=e=>{e4(this.R8,"theo-mobile-button-hover"),e.stopImmediatePropagation()},this.lv=e=>{ez(this.R8,"theo-mobile-button-hover")},this.lg=e=>{this.R8.blur()},this.R8=e,e.addEventListener("touchstart",this.lu),e.addEventListener("touchend",this.lv),e.addEventListener("focusin",this.lg)}};let aP=al.getComponent("Menu");var aM=class extends af(aP){constructor(e,t){super(e,t)}get lb(){return this.player().el()}l0(){e4(this.lb,"theo-menu-opened")}o5(){ez(this.lb,"theo-menu-opened")}};let aL=al.getComponent("MenuItem");var aA=class extends af(aL){constructor(e,t,i){super(e,H({selectable:!0},t)),this.l1=void 0,this.he=!1,this.lu=e=>{e4(this.el(),"theo-mobile-menu-item-hover"),e.stopImmediatePropagation()},this.lv=e=>{ez(this.el(),"theo-mobile-menu-item-hover")},this.l1=i,eB.sp.tA&&(this.el().addEventListener("touchstart",this.lu),this.el().addEventListener("touchend",this.lv))}get parentMenu(){return this.l1}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.he||(this.parentMenu.ht(this),("tap"===e.type||"keydown"===e.type)&&(this.he=!0,this.trigger("click"),this.he=!1))}dispose(){eB.sp.tA&&(this.el().removeEventListener("touchstart",this.lu),this.el().removeEventListener("touchend",this.lv)),super.dispose()}};let aI=al.getComponent("ClickableComponent");var aV=class extends aI{constructor(e,t,i){super(e,t),this.l1=void 0,this.he=!1,this.hi=!1,this.l1=i,this.on(e,"languagechange",this.hr)}get parentMenu(){return this.l1}get ha(){return this.hi}set ha(e){this.hi=e,this.el().setAttribute("tabindex",this.ha?"0":"-1"),this.hr()}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.he&&this.ha&&(this.l1.ho(),"tap"===e.type&&(this.he=!0,this.trigger("click"),this.he=!1))}hr(){this.ha?this.el().setAttribute("aria-label",this.localize("Go back to the previous menu")):this.el().setAttribute("aria-label","")}},aj=class extends aM{constructor(e,t){super(e,t),this.hu=void 0,this.hy=()=>this.Gx(),this.hu=this.player().el(),this.hide(),this.on("menuchange",this.Gx)}get menuHeader(){return this.hz}get menuItems(){return this.children()}addMenuItem(e){e=H({playerOptions:this.e.playerOptions},e);let t=new aA(this.player(),e,this);return this.addChild(t,void 0,e.index),this.trigger("menuchange"),t}addSubMenuItem(e){e=H({playerOptions:this.e.playerOptions},e);let t=this.ur(this.player(),e);return this.addChild(t,void 0,e.index),this.trigger("menuchange"),t}removeMenuItem(e){this.removeChild(e),this.trigger("menuchange")}buildCSSClass(){return"theo-menu vjs-menu"}l0(){super.l0(),v.removeEventListener("resize",this.hy),v.addEventListener("resize",this.hy),this.show()}Gx(){let e=this.ua();if(!e)return;let t=e.getClientRects();eB.sp.tA?this.up(e,t):this.ug(e,t)}ua(){var e;return null!=(e=this.contentEl().parentElement)?e:void 0}ug(e,t){}up(e,t){}o5(){v.removeEventListener("resize",this.hy),super.o5(),this.hide(),eB.sp.tA&&(this.el().removeAttribute("style"),this.contentEl().removeAttribute("style"))}createEl(){let e=super.createEl();e.className=this.buildCSSClass();let t=this.contentEl();e4(t,"theo-menu-content");let i=new aV(this.player(),this.e,this);return t.parentNode.insertBefore(i.el(),t),this.hz=i,e}ht(e){}show(){return this.Gx(),super.show()}dispose(){this.hz&&this.hz.dispose(),super.dispose()}},aD=class extends aj{constructor(e,t){super(e,t)}get uk(){return this.uz}set uk(e){this.uz&&this.uz.ce(this),this.uz=e,e&&e.cr(this)}cs(e){this.uk.ca(e,"replace")}co(e){e.uk.ca(this,"restore")}Cu(){ez(this.ch,"vjs-hidden"),this.ch.style.opacity="1",super.show()}Cq(){e4(this.ch,"vjs-hidden")}l0(){this.uk&&this.uk.l0(),super.l0()}o5(){this.uk&&this.uk.o5(),super.o5(),e4(this.ch,"vjs-hidden")}ua(){if(this.uk&&this.uk.cu)return this.uk.cu.ch}ug(e,t){if(t.length>0){let e=t[0].height,i=t[0].width;this.uz.Eo.style.height=`${e}px`,this.uz.Eo.style.width=`${i}px`}super.ug(e,t)}},aB=class{constructor(e){this.cv=void 0,this.cy=void 0,this.R8=void 0,this.hu=void 0,this.cy=this.cv=e,this.R8=m.createElement("div"),this.R8.className="theo-tertiary-background theo-menu-animation-container",this.R8.appendChild(this.cy.ch),this.hu=this.cv.player().el()}get Eo(){return this.R8}get cu(){return this.cv}cr(e){e.Cq(),this.R8.appendChild(e.ch)}ce(e){this.R8.removeChild(e.ch)}ca(e,t){if(e==this.cv)return;let i=this.cv;if(this.cv=e,this.cv.Cu(),this.cu.focus(),eB.sp.tA)i.Cq();else{let e=e_("transform");i.ch.style.opacity="0",i.ch.style[e]="replace"===t?"translateX(-100%)":"translateX(100%)",this.cv.ch.style.opacity="1",this.cv.ch.style[e]="",y(()=>{i.Cq(),i.ch.style[e]=""},300)}}l0(){this.de(),this.cv.Cu(),this.da()}o5(){this.de(),this.cv.Cq(),this.cy.Cq(),this.cv=this.cy,this.da()}da(){ef(()=>{ez(this.R8,"theo-no-transition"),ez(this.cv.ch,"theo-no-transition")})}de(){e4(this.R8,"theo-no-transition"),e4(this.cv.ch,"theo-no-transition")}},aF=class extends aD{constructor(e,t,i){super(e,t),this.dv=void 0,this.dz=!1,this.dv=i,this.menuHeader.ha=!0}get ch(){return this.el()}get parentMenu(){return this.dv}ur(e,t){let i=new aN(e,t,this);return i.subMenu.uk=this.uk,i}ho(){this.pt()}ht(e){super.ht(e),this.pt()}pt(){this.parentMenu.co(this)}buildCSSClass(){return`theo-submenu ${this.dz?"":"theo-leaf-submenu "}theo-menu-content theo-menu-content-animatable ${super.buildCSSClass()}`}addSubMenuItem(e){this.dz=!0;let t=super.addSubMenuItem(e);return this.removeClass("theo-leaf-submenu"),t}},aN=class extends aA{constructor(e,t,i){super(e,H({selectable:!1},t),i),this.pi=void 0,this.pi=new aF(e,t,i)}get subMenu(){return this.pi}handleClick(e){this.parentMenu.cs(this.subMenu)}},aO=class extends aD{constructor(e,t,i){super(e,t),this.ps=void 0,this.pa=!1,this.ps=i}get menuButton(){return this.ps}createEl(){let e=al.createEl("div",{className:this.buildCSSClass()});return this.pl=super.createEl(),this.pl.className=super.buildCSSClass(),e4(this.pl,"theo-menu-content-animatable"),e.appendChild(this.pl),this.uk=new aB(this),e.appendChild(this.uk.Eo),e}buildCSSClass(){return`theo-menu-animatable ${super.buildCSSClass()}`}ur(e,t){let i=new aN(e,t,this);return i.subMenu.uk=this.uk,i}ug(e,t){super.ug(e,t);let i=this.hu.getClientRects(),r=i.length>0?i[0]:void 0,s=w(getComputedStyle(this.el()).fontSize);eI(this.el(),this.ps.el(),r,s)}get ch(){return this.pl}ho(){this.ps.closeMenu()}dispose(){this.pa||(this.pa=!0,super.dispose())}},aR=class{constructor(e,t){this.p1=void 0,this.__=void 0,this.ve=()=>{ez(this.p1,"vjs-hidden");let e=this.__.player().contentEl().getClientRects(),t=e.length>0?e[0]:void 0,i=w(getComputedStyle(this.p1).fontSize);eI(this.p1,this.__.el(),t,i)},this.vi=()=>{e4(this.p1,"vjs-hidden")},this.vo=()=>this.v1(),this.__=e,eK(e.el()),e7(e.el()),this.p1=m.createElement("span"),this.p1.innerHTML=this.__.localize(t),this.p1.className="theo-button-tooltip vjs-hidden",this.p1.setAttribute("aria-hidden","true"),this.__.el().appendChild(this.p1),this.__.on("mouseover",this.ve),this.__.on("mouseout",this.vi),this.__.on("dispose",this.vo)}set v2(e){this.p1.innerHTML=this.__.localize(e),this.ei_()&&this.ve(),eK(this.__.el())}get v2(){return this.p1.textContent||""}ei_(){return!tb(this.p1,"vjs-hidden")}v1(){this.__.off("mouseover",this.ve),this.__.off("mouseout",this.vi),this.__.off("dispose",this.vo),to(this.p1)}};let a$=al.getComponent("Button");var aU=class extends af(a$){constructor(e,t){super(e,t),this.v3=void 0,this.p1=void 0,this.mt=!1,this.mi=1,this.cf=!0,this.mr=e=>{let t=this.el().contains(e.target),i=this.v3.el().contains(e.target),r=!1;if(eB.sp.tA&&this.ms){var s;r=(null==(s=this.el().parentElement)?void 0:s.querySelector(".theo-mobile-menu-background"))===e.target}t||i||!this.mt||(r&&e.preventDefault(),this.closeMenu())},this.mn=e=>{27===e.which&&(this.closeMenu(),this.focus())},this.x6=()=>{this.mt&&this.closeMenu()},this.ml=()=>{this.v3.menuItems.length>=this.mi?this.show():(this.closeMenu(),this.hide())},this.v3=new aO(e,t,this),this.player().getChild("controlBarMenuContainer").addChild(this.v3),this.p1=new aR(this,this.controlText()),this.el().setAttribute("aria-haspopup","true"),eB.sp.e4?(this.on(m,"touchend",this.mr),new ax(this.el())):(this.on(m,"click",this.mr),this.on(m,"keydown",this.mn),V&&this.on(m,V.Dh,this.closeMenu)),this.ot.addEventListener("seeking",this.x6),this.on(this.v3,"menuchange",this.ml),this.on(e,"languagechange",this.hr),this.ml()}get ms(){let e=this.el().parentElement;return!!e&&null!==e.querySelector(".theo-mobile-menu-background")}get menu(){return this.v3}isMenuOpen(){return this.mt}openMenu(){this.cf&&!this.mt&&(this.v3.l0(),this.el().setAttribute("aria-expanded","true"),this.mt=!0,this.v3.focus())}closeMenu(){this.cf&&this.mt&&(this.v3.o5(),this.el().setAttribute("aria-expanded","false"),this.mt=!1)}set minimumMenuItems(e){this.mi=e,this.ml()}buildCSSClass(){return`theo-controlbar-button vjs-menu-button vjs-menu-button-popup ${super.buildCSSClass()}`}createEl(e,t,i){return super.createEl("button",{},{"aria-live":"off"})}handleClick(){this.mt?this.closeMenu():this.openMenu()}enable(){return this.cf=!0,super.enable()}disable(){return this.closeMenu(),this.cf=!1,super.disable()}hr(){this.p1.v2=this.controlText()}dispose(){this.player().removeChild(this.v3),this.v3.dispose(),this.p1.v1(),this.ot.removeEventListener("seeking",this.x6),super.dispose()}};let aH=al.getComponent("Component");var az=class extends al.getComponent("ControlBar"){constructor(e,t){super(e,t),this.addChild("THEOControlBarShadow",void 0,0)}addMenuButton(e){e=H({playerOptions:this.e.playerOptions},e);let t=new aU(this.player(),e);return this.addChild(t),t}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()}`}};al.registerComponent("THEOControlBarShadow",class extends aH{createEl(){return super.createEl("div",{className:this.buildCSSClass()})}buildCSSClass(){return"theo-tertiary-color theo-control-bar-shadow"}});let aW=al.getComponent("VolumeBar");var aq=class extends aW{constructor(e,t){super(e,t),this.mh=void 0,this.mh=t.my}handleFocus(e){super.handleFocus(e),this.mh.addClass("focus-within")}handleBlur(e){super.handleBlur(e),this.mh.removeClass("focus-within")}};let aQ=al.getComponent("VolumeControl");var aG=class extends aQ{constructor(e,t){super(e,t),this.mg=void 0,this.mg=new aq(e,{my:this}),this.addChild(this.mg)}};aG.prototype.e=H(H({},aQ.prototype.e),{},{children:[]}),al.registerComponent("VolumeControl",aG);var aX=class extends af(az){constructor(e,t){super(e,t),this.eZ0=void 0,this.mk=!1,this.yi=0,this.yo=()=>{0!==this.yi&&(this.yi=0,this.y_(this.fi()))},this.eb6=()=>{this.mk&&this.fr()},this.on(e,"ready",this.fa),this.on(e,"pause",this.fa),this.on(e,"useractive",this.fa),this.on(e,"firstplay",this.fo),this.on(e,"play",this.fo),this.on(e,"userinactive",this.fo),this.on("transitionstart",this.fy),this.on("transitionend",this.ff),this.eZ0=new z(this.el()),this.eZ0.sZ("dimensionchange",this.eb6),this.eZ0._a(!0)}fa(){this.y_(this.fi())}fo(){0===this.yi&&(this.yi=y(this.yo,100))}fy(e){"opacity"===e.propertyName&&(0!==this.yi&&(f(this.yi),this.yi=0),this.y_(!0))}ff(e){"opacity"!==e.propertyName||this.fi()||this.y_(!1)}fi(){return"0"!==v.getComputedStyle(this.el()).opacity}y_(e){this.mk!==e&&(this.mk=e,e?this.fr():this.ot.textTrackStyle.marginBottom=void 0)}fr(){let e=this.el().getBoundingClientRect().height;this.ot.textTrackStyle.marginBottom!==e&&(this.ot.textTrackStyle.marginBottom=e)}dispose(){f(this.yi),this.yi=0,this.eZ0.s1("dimensionchange",this.eb6),this.eZ0._j(),super.dispose()}};aX.prototype.e=H(H({},az.prototype.e),{},{children:["progressControl","playToggle","muteToggle","volumeControl","currentTimeDisplay","timeDivider","durationDisplay","liveDisplay","remainingTimeDisplay","customControlSpacer","activeQualityLabel","vrButton","descriptionsButton","subtitlesButton","chromecastButton","airplayButton","multiViewButton","audioTrackButton","SettingsButton","fullscreenToggle"]}),al.registerComponent("ControlBar",aX);var aK=class extends az{constructor(e,t){super(e,t),e.topControlBar=this}buildCSSClass(){return`theo-top-controlbar ${super.buildCSSClass()}`}};aK.prototype.e=H(H({},az.prototype.e),{},{children:[]}),al.registerComponent("TopControlBar",aK);let aY=al.getComponent("CurrentTimeDisplay");var aJ=class extends af(aY){constructor(e,t){super(e,t),this.on(e,"timeupdate",this.updateContent),this.on(e,"emptied",this.updateContent)}updateContent(){let e=ad(this.player()),t=this.ot,i=a_(t),r=this.localize("Current Time"),s=ay(k.max(0,e-i),av(t));s!==this.ec&&(this.ec=s,this.contentEl().innerHTML=`<span class="vjs-control-text">${r}</span> ${s}`)}};al.registerComponent("CurrentTimeDisplay",aJ);let aZ=al.getComponent("DurationDisplay");var a0=class extends af(aZ){constructor(e,t){var i;super(e,t),this.fj=()=>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==(i=this.ot)||i.clip.addEventListener("change",this.fj)}updateContent(){let e=this.ot,t=S(e.duration)?0/0:av(e),i=e.clip.endTime-e.clip.startTime,r=k.min(t,i)||0;if(this.pC!==r){this.pC=r;let e=this.localize("Duration Time"),t=ay(r);this.o.innerHTML=`<span class="vjs-control-text">${e}</span> ${t}`}}dispose(){var e;null==(e=this.ot)||e.clip.removeEventListener("change",this.fj),super.dispose()}};al.registerComponent("DurationDisplay",a0);let a1=al.getComponent("Button");var a2=class extends af(a1){constructor(e,t){super(e,t),this.controlText("Live"),this.f1(),this.on(e,"emptied",this.f1),this.on(e,"durationchange",this.f1),eB.sp.e4&&new ax(this.el())}buildCSSClass(){return`theo-live-control ${super.buildCSSClass()}`}createEl(){let e=super.createEl("button",{},{"aria-live":"off"});return this.ge=al.createEl("span",{className:"theo-live-control-indicator"}),eO(e,this.ge),e}createControlTextEl(e){let t=super.createControlTextEl(e);return al.removeClass(t,"vjs-control-text"),al.addClass(t,"theo-live-control-text"),t}handleClick(){var e;let t=this.ot;if((null==(e=t.hesp)?void 0:e.manifest)!==void 0)t.hesp.goLive();else{let e=this.player();e.currentTime(1/0),e.play()}}f1(){ac(this.ot)?this.show():this.hide()}};al.registerComponent("LiveDisplay",a2);let a3=al.getComponent("LoadingSpinner");var a5=class extends a3{constructor(e,t){super(e,t)}buildCSSClass(){return`theo-secondary-color vjs-loading-spinner ${super.buildCSSClass()}`}createEl(){let e=super.createEl();e.className=this.buildCSSClass();let t=al.createEl("div",{className:"theo-loading-spinner-rotator"}),i=al.createEl("div",{className:"theo-loading-spinner-circle-left"}),r=al.createEl("div",{className:"theo-loading-spinner-circle-right"});return t.appendChild(i),t.appendChild(r),e.appendChild(t),e}};al.registerComponent("LoadingSpinner",a5);let a4=al.getComponent("LoadProgressBar");var a6=class extends af(a4){constructor(e,t){super(e,t),this.gt=[],this.on(e,"emptied",this.update)}update(){let e=this.ot,t=tl.PH(am(e)),i=t.bu(0),r=tl.PH(e.buffered).Pb(t),s=t.Pf(0)-i,n=r.uH&&r.Pf(r.uH-1)||0;n=k.max(0,n-i);let a=this.el(),o=this.gt;a.style.width=a9(n,s);for(let e=0;e<r.uH;e++){let t=r.bu(e),s=r.Pf(e),l=o[e];l||(l=m.createElement("div"),o.push(l),a.appendChild(l)),l.style.left=a9(t-i,n),l.style.width=a9(s-t,n)}for(let e=o.length;e>r.uH;e--)a.removeChild(o[e-1]);o.length=r.uH}};function a9(e,t){let i=e/t||0;return`${(i>=1?1:i)*100}%`}al.registerComponent("LoadProgressBar",a6);let a7=al.getComponent("MouseTimeDisplay");var a8=class extends af(a7){constructor(e,t){if(super(e,t),this.Vr=0/0,this.gn=()=>{let e=ad(this.player()),t=this.ot,i=(e-a_(t))/av(t)||0;i=td(i,0,1),this.update(e,`${100*i}%`)},this.keepTooltipsInside&&(al.addClass(this.tooltip,"theo-secondary-color"),this.tooltip.appendChild(this.ga)),this.on(e,"ready",()=>{this.on(e.controlBar.progressControl,"mouseenter",this.handleMouseMove)}),tx.tA){var i;this.on(e,"firstplay",this.gn),this.on(e,"play",this.gn),this.on(e,"seeking",this.gn),this.on(e,"seeked",this.gn),this.on(e,"timeupdate",this.gn),this.ot.addEventListener("dimensionchange",this.gn),null==(i=this.ot.presentation)||i.addEventListener("presentationmodechange",this.gn),this.on(e,"ready",()=>{this.on(e.controlBar.progressControl,"touchstart",this.handleTouchMove),this.on(e.controlBar.progressControl,"touchmove",tv(e=>this.handleTouchMove(e),25)),this.gn()})}}handleMouseMove(e){let t=this.ot,i=a_(t)+this.calculateDistance(e)*av(t),r=e.pageX-tS(this.el().parentNode).left;this.update(i,`${r}px`)}handleTouchMove(e){let t=this.ot,i=a_(t)+this.calculateDistance(e)*av(t),r=e.touches[0].pageX-tS(this.el().parentNode).left;this.update(i,`${r}px`)}createEl(){let e=super.createEl();return this.ga=al.createEl("span",{className:"theo-time-tooltip-text"}),e}update(e,t){this.Vr=e;let i=this.gl(e);this.el().style.left=t,this.el().setAttribute("data-current-time",i),this.keepTooltipsInside&&(eu(this.ga,i),this.gu())}gu(){if(this.keepTooltipsInside&&this.tooltip.offsetParent){let e=this.player().contentEl(),t=e.getClientRects(),i=t.length>0?t[0]:void 0,r=w(getComputedStyle(e).fontSize);eI(this.tooltip,this.el(),i,r)}}gl(e){let t=this.ot,i=e-ap(t);return ay(ac(t)?k.min(i,0):i,av(t))}dispose(){var e;this.ot.removeEventListener("dimensionchange",this.gn),null==(e=this.ot.presentation)||e.removeEventListener("presentationmodechange",this.gn),super.dispose()}};al.registerComponent("MouseTimeDisplay",a8);let oe=al.getComponent("PlayProgressBar");var ot=class extends af(oe){constructor(e,t){super(e,t)}updateDataAttr(){let e=ad(this.player());this.el().setAttribute("data-current-time",this.gl(e))}gl(e){let t=this.ot;return ay(e-ap(t),av(t))}createEl(){let e=super.createEl();return e.className=this.buildCSSClass(),e}buildCSSClass(){return`theo-primary-color vjs-play-progress vjs-slider-bar ${super.buildCSSClass()}`}};al.registerComponent("PlayProgressBar",ot);let oi=al.getComponent("RemainingTimeDisplay");var or=class extends af(oi){constructor(e,t){super(e,t),this.on(e,"timeupdate",this.updateContent),this.on(e,"emptied",this.updateContent)}updateContent(){let e=this.ot,t=av(e);if(t){let i=am(e).end(0),r=this.localize("Remaining Time"),s=ay(k.max(0,i-this.player().currentTime()),t);s!==this.ec&&(this.ec=s,this.contentEl().innerHTML=`<span class="vjs-control-text">${r}</span> -${s}`)}}};al.registerComponent("RemainingTimeDisplay",or);var os=class{constructor(e,t){this.gd=t,this.g_=void 0,this.gv=void 0,this.be=void 0,this.bi=void 0,this.br=[],this.bs=void 0,this.az=void 0,this.bn=()=>{this.ba(this.bo())},this.bl=e=>{let t=e.track;"chapters"===t.kind&&(t.addEventListener("addcue",this.bn),t.addEventListener("removecue",this.bn),t.addEventListener("readystatechange",this.bn)),this.bn()},this.bh=e=>{let t=e.track;"chapters"===t.kind&&(t.removeEventListener("addcue",this.bn),t.removeEventListener("removecue",this.bn),t.removeEventListener("readystatechange",this.bn)),this.bn()},this.b_=e=>{var t,i;let r,s,n,a,o,l,h,u,c=this.ot,d=(t=this.g_,i=e,n=tS(t),a=t.offsetWidth,o=t.offsetHeight,l=n.top,h=n.left,void 0!==i.changedTouches?(s=i.changedTouches[0].pageX,r=i.changedTouches[0].pageY):(s=i.pageX,r=i.pageY),u=td((l-r+o)/o,0,1),{x:td((s-h)/a,0,1),y:u}),p=a_(c)+d.x*av(c);p===c.duration&&(p-=.1),this.bm(p)},this.bg=()=>{this.gv.Cq()},this.CR=()=>{this.gv.Cu()},this.TR=()=>{this.bi&&(this.ki(),this.kr(),this.ks())},this.ks=()=>{var e,t;let i=null==(e=this.bi)||null==(e=e.activeCues)?void 0:e[0],r=eo(this.br,e=>e.kn===i);r!==this.bs&&(null==(t=this.bs)||t.Rw(),this.bs=r,null==r||r.Ry())},this.be=e,this.gv=new oa,this.gd.contentEl().appendChild(this.gv.Eo),this.g_=m.createElement("div"),e4(this.g_,"theoplayer-chapterbar"),this.be.appendChild(this.g_),this.be.addEventListener("mousemove",this.b_),this.be.addEventListener("mouseenter",this.CR),this.be.addEventListener("mouseleave",this.bg),this.ka()}get ot(){var e;return null!=(e=this.az)?e:this.az=ag(this.gd)}kr(){let e=this.bi;if(!e)return;let t=this.ot;if(0===t.seekable.length)return;let i=e.cues.slice();this.gv.o7(i);for(let e=0;e<i.length;e++){let r=i[e],s=i[e+1],n=!s||r.endTime!==s.startTime,a=new on(r,t,n);this.br.push(a),this.g_.appendChild(a.Eo)}}ka(){this.ot.addEventListener("loadedmetadata",this.bn),this.ot.addEventListener("loadeddata",this.bn),this.ot.addEventListener("sourcechange",this.bn),this.ot.addEventListener("durationchange",this.TR),this.ot.clip.addEventListener("change",this.TR),this.ot.textTracks.addEventListener("addtrack",this.bl),this.ot.textTracks.addEventListener("removetrack",this.bh),this.ot.textTracks.addEventListener("change",this.bn)}ko(){this.ot.removeEventListener("loadedmetadata",this.bn),this.ot.removeEventListener("loadeddata",this.bn),this.ot.removeEventListener("sourcechange",this.bn),this.ot.removeEventListener("durationchange",this.TR),this.ot.clip.removeEventListener("change",this.TR),this.ot.textTracks.removeEventListener("addtrack",this.bl),this.ot.textTracks.removeEventListener("removetrack",this.bh),this.ot.textTracks.removeEventListener("change",this.bn)}bo(){if(!(this.ot.readyState<1)){for(let e of this.ot.textTracks)if("chapters"===e.kind&&"showing"===e.mode&&e.cues.length>0&&3!==e.readyState)return e}}ba(e){let t=this.bi;e!==t&&(t&&(this.ki(),t.removeEventListener("cuechange",this.ks)),this.bi=e,e&&(e.addEventListener("cuechange",this.ks),this.TR()))}bm(e){this.gv._e(e)}kl(){this.gv.Cu()}ku(){this.gv.Cq()}ki(){for(let e of this.br)e.v1();this.gv._l(),this.br=[],this.bs=void 0}v1(){this.ko(),this.be.removeEventListener("mousemove",this.b_),this.be.removeEventListener("mouseenter",this.CR),this.be.removeEventListener("mouseleave",this.bg),this.ba(void 0),this.gv.v1(),this.az=void 0}},on=class{constructor(e,t,i){this.kn=e,this.R8=void 0,this.R8=this.ejt(t,i)}get Eo(){return this.R8}Ry(){e4(this.R8,"theoplayer-chapter-indicator-active")}Rw(){ez(this.R8,"theoplayer-chapter-indicator-active")}ejt(e,t){let i=e.seekable.start(0),r=e.seekable.end(e.seekable.length-1),s=r-i,n=this.kn.startTime,a=this.kn.endTime,o=td(n-i,0,s),l=td(a-i,0,s),h=k.max(0,l-o),u=m.createElement("div");e4(u,"theoplayer-chapter-indicator");let c=m.createElement("div");e4(c,"theoplayer-chapter-indicator-highlight"),u.appendChild(c),t&&e4(u,"theoplayer-chapter-indicator-discontinuous");let d=o/s*100,p=h/s*100;return u.style.display=a>=i&&n<=r?"":"none",u.style.width=`${p}%`,u.style.left=`${d}%`,u}v1(){to(this.R8)}},oa=class{constructor(){this.kv=[],this.Eo=void 0,this.km=void 0,this.ky=0,this.Eo=m.createElement("div"),e4(this.Eo,"theoplayer-chaptertitle"),this.Eo.style.display="none",this.km=m.createElement("p"),this.Eo.appendChild(this.km)}Cq(){this.ky--,0===this.ky&&ez(this.Eo,"theoplayer-chapter-hovering")}o7(e){this.kv=e||[],this.kv.length>0&&(this.Eo.style.display="")}KA(e){eu(this.km,e.content)}_l(){this.kv=[],eu(this.km,""),this.Eo.style.display="none"}Cu(){this.ky++,this.ky>0&&e4(this.Eo,"theoplayer-chapter-hovering")}_e(e){for(let r of this.kv){var t,i;if(t=r,i=e,new tl([t.startTime,t.endTime]).Cf(i)){this.KA(r);break}}}v1(){to(this.Eo)}};let oo=al.getComponent("SeekBar");var ol=class extends af(oo){constructor(e,t){super(e,t),this.g_=void 0,this.playingStates=[],this.on(e,"emptied",this.update),this.on(e,"seeking",this.update),this.g_=new os(this.el(),e)}updateAriaAttributes(e){let t=ad(this.player()),i=this.ot;e.setAttribute("aria-valuenow",(100*this.kg(t)).toFixed(2)),e.setAttribute("aria-valuetext",ay(t-ap(i),av(i)))}getPercent(){return this.kg(this.player().currentTime())}handleMouseMove(e){if(this.ot&&this.ot.ads&&this.ot.ads.playing)return;let t=this.ot,i=a_(t)+this.calculateDistance(e)*av(t);i>=t.duration&&(i=t.duration-.1),this.g_.bm(i),this.player().currentTime(i)}handleMouseDown(e){this.playingStates.push(!this.player().paused()),this.g_.kl(),super.handleMouseDown(e)}handleMouseUp(e){this.videoWasPlaying=!!this.playingStates.pop(),this.g_.ku(),super.handleMouseUp(e)}kg(e){let t=this.ot;return td((e-a_(t))/av(t),0,1)}dispose(){this.g_.v1(),e$(this.playingStates)}};al.registerComponent("SeekBar",ol);let oh=al.getComponent("ProgressControl");var ou=class extends oh{constructor(e,t){super(e,t),this.on(this,"touchmove",this.handleMouseMove),this.on("touchstart",this.handleMouseDown),this.on("touchend",this.handleMouseUp),this.seekBar.off(["touchmove","touchstart","touchend"])}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(e){this.seekBar.handleMouseMove(e)}handleMouseDown(e){var t;null==(t=e.preventDefault)||t.call(e),this.seekBar.handleMouseDown(e)}handleMouseUp(e){var t;null==(t=e.preventDefault)||t.call(e),this.seekBar.handleMouseUp(e)}};eB.sp.tA&&al.registerComponent("ProgressControl",ou);let oc=al.getComponent("TooltipProgressBar");var od=class extends af(oc){constructor(e,t){super(e,t)}updateDataAttr(){let e=ad(this.player()),t=this.gl(e);this.el().setAttribute("data-current-time",t),this.tooltip.innerHTML=t}gl(e){let t=this.ot;return ay(e-ap(t),av(t))}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()}`}};function op(e){for(let t of e)if(t.enabled)return t}function o_(e){if(e){var t;return e.label&&""!==e.label?{name:e.label,hd:!1}:{name:(t=e).height?`${t.height}p`:t.bandwidth?ov(t):"",description:ov(e),hd:!!e.height&&e.height>=720}}}function ov(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`:""}al.registerComponent("TooltipProgressBar",od);var om=class{constructor(e){this.kk=void 0,this.kw=[],this.kk=e}get kj(){return this.kw}set kj(e){let t=this.kw;for(let i=t.length-1;i>=0;i--){let r=t[i];ew(e,r)||this.ws(r)}for(let t of e)this.wa(t);this.kk.Gx()}get wo(){return this.kk.menuItems}SP(e){let t=this.wo;if(t){for(let i of t)if(i.elU===e)return i}}SI(e){let t=this.kk.addMenuItem();return t.elU=e,t.on("click",()=>this.SW(t)),t.el().setAttribute("role","menuitemradio"),t}xh(e){e.dispose()}x_(e){return!0}wa(e){if(!this.x_(e))return void this.ws(e);{ew(this.kw,e)||this.kw.push(e);let t=this.SP(e)||this.SI(e);return this.PC(t),t}}ws(e){let t=this.SP(e);t&&(this.kk.removeMenuItem(t),this.xh(t)),L(this.kw,e)}v1(){let e=[];for(let t of this.kw)e.push(t);for(let t of e)this.ws(t);e$(e)}},oy=class extends om{constructor(e,t,i){super(e.subMenu),this.PQ=void 0,this.az=void 0,this.ME=void 0,this.LG=void 0,this.AS=void 0,this.AD=void 0,this.IE=void 0,this.IV=void 0,this.ID=void 0,this.IN=()=>{let e=op(this.az.videoTracks);if(e===this.LG)return;let t=[];if(this.LG&&(this.LG.removeEventListener("activequalitychanged",this.x1),this.LG.removeEventListener("targetqualitychanged",this.VR),this.LG.removeEventListener("update",this.eO3)),this.LG=e,e){e.addEventListener("activequalitychanged",this.x1),e.addEventListener("targetqualitychanged",this.VR),e.addEventListener("update",this.eO3);let i=og(oT(e.qualities.filter(e=>e.available)));t=i.length>1?[void 0,...i]:[void 0]}this.kj=t,this.VR(),this.x1()},this.eO3=e=>{let t,i=e.track;if(i!==this.LG)return;let r=og(oT(i.qualities.filter(e=>e.available))),s=i&&ok(i.targetQuality);this.AS=this.ja(s,r),t=r.length>1?[void 0,...r]:[void 0],this.kj=t,this.jv()},this.x1=()=>{this.wa(void 0),this.jv()},this.VR=()=>{let e=op(this.az.videoTracks),t=e&&ok(e.targetQuality),i=this.ja(t),r=this.AS;i!==r&&(this.AS=i,i&&r||this.wa(void 0),r&&ew(this.kj,r)&&this.wa(r),t&&this.wa(i),this.jv())},this.hr=()=>{for(let e of(eu(this.kk.menuHeader.el(),this.ME.localize("Quality")),eu(this.AD,this.ME.localize("Quality")),eu(this.IE,this.ME.localize("Automatic")),eu(this.IV,this.ME.localize("Automatic")),eu(this.ID,this.ME.localize("HD")),this.PQ.el().setAttribute("aria-label",this.ME.localize("Open the video quality settings menu")),this.wo))this.PC(e);this.jv()},this.PQ=e,this.az=t,this.ME=i,this.AD=this.BS(),this.IE=this.BR(),this.IV=this.NO(),this.ID=this.OS(),this.OK(),eu(this.kk.menuHeader.el(),this.ME.localize("Quality")),this.kj=[void 0],this.az.videoTracks.addEventListener(["addtrack","removetrack","change"],this.IN),this.ME.on("languagechange",this.hr),this.IN()}BS(){return this.AD=m.createElement("span"),this.AD.className="theo-settings-control-menu-item-title",eu(this.AD,this.ME.localize("Quality")),this.AD}BR(){return this.IE=m.createElement("span"),this.IE.className="theo-settings-control-menu-quality-automatic",eu(this.IE,this.ME.localize("Automatic")),this.IE}NO(){return this.IV=m.createElement("span"),eu(this.IV,this.ME.localize("Automatic")),this.IV}OS(){return this.ID=m.createElement("span"),this.ID.className="theo-primary-color theo-settings-control-menu-item-hd-label",eu(this.ID,this.ME.localize("HD")),this.ID}OK(){let e=m.createElement("span");e.className="theo-primary-color theo-settings-control-menu-item-value",e.appendChild(this.IE),e.appendChild(m.createTextNode(" ")),e.appendChild(this.IV),e.appendChild(m.createTextNode(" ")),e.appendChild(this.ID),this.PQ.el().appendChild(this.AD),this.PQ.el().appendChild(e),this.PQ.el().setAttribute("aria-label",this.ME.localize("Open the video quality settings menu"))}jv(){let e=this.LG,t=e&&ok(e.targetQuality),i=e&&e.activeQuality,r=o_(this.ja(t||i))||{name:this.ME.localize("Automatic")};eu(this.IV,r.name),ex(this.IE,"vjs-hidden",!!t),ex(this.ID,"vjs-hidden",!r.hd)}PC(e){let t=o_(e.elU)||{name:this.ME.localize("Automatic")},i=t.name;t.hd&&(i+=`<span class="theo-primary-color theo-settings-control-menu-item-hd-label">${this.ME.localize("HD")}</span>`),t.description&&(i+=`<span class="theo-settings-control-submenu-item-alternate-value">${t.description}</span>`),e.el().innerHTML=i,e.el().setAttribute("aria-label",this.ME.localize("Set video quality to ")+t.name),e.elU?e.selected(e.elU===this.AS):e.selected(!this.AS)}SW(e){this.LG&&(this.LG.targetQuality=e.elU&&e.elU.videoQualities)}ja(e,t){for(let i of t||this.kj)if(e&&i&&-1!==i.videoQualities.indexOf(e))return i}v1(){this.az.videoTracks.removeEventListener(["addtrack","removetrack","change"],this.IN),this.ME.off("languagechange",this.hr),this.LG&&(this.LG.removeEventListener("activequalitychanged",this.x1),this.LG.removeEventListener("targetqualitychanged",this.VR),this.LG.removeEventListener("update",this.eO3)),super.v1()}},of=class{constructor(e){this.RT=e}get height(){return this.RT[0].height}get bandwidth(){return this.RT[0].bandwidth}get videoQualities(){return this.RT}get label(){return this.RT[0].label}add(e){this.RT.push(e)}};function og(e){let t=[];for(let s of e){let e=!1;for(let n of t){var i,r;if(i=n,r=s,i.label&&r.label&&i.label===r.label||ea(o_(i),o_(r))){n.add(s),e=!0;break}}e||t.push(new of([s]))}return t}function ob(e,t){return e&&t?tt(e,t):0}function oC(e,t){return e===t?0:ob(e.height,t.height)||ob(e.width,t.width)||ob(e.bandwidth,t.bandwidth)}function oT(e){return eZ(e,oC).reverse()}function ok(e){return tk(e)?1===e.length?e[0]:void 0:e}function oE(e){return 1===e?"Normal":`${k.round(100*e)/100}`}var ow=class extends om{constructor(e,t,i,r){super(e.subMenu),this.PQ=void 0,this.az=void 0,this.ME=void 0,this.$1=void 0,this.AD=void 0,this.UC=void 0,this.eFz=()=>{this.$1&&this.wa(this.$1);let e=this.az.playbackRate;this.$1=e,eu(this.UC,this.ME.localize(oE(e))),e&&this.wa(e)},this.hr=()=>{for(let e of(eu(this.kk.menuHeader.el(),this.ME.localize("Speed")),eu(this.AD,this.ME.localize("Speed")),this.PQ.el().setAttribute("aria-label",this.ME.localize("Open the video speed settings menu")),this.wo))this.PC(e);this.eFz()},this.PQ=e,this.az=t,this.ME=i,this.AD=this.BS(),this.UC=this.OK(),eu(this.kk.menuHeader.el(),this.ME.localize("Speed")),this.kj=r,this.az.addEventListener("ratechange",this.eFz),this.ME.on("languagechange",this.hr),this.eFz()}BS(){return this.AD=m.createElement("span"),this.AD.className="theo-settings-control-menu-item-title",eu(this.AD,this.ME.localize("Speed")),this.AD}OK(){let e=m.createElement("span");return e.className="theo-primary-color theo-settings-control-menu-item-value",this.PQ.el().appendChild(this.AD),this.PQ.el().appendChild(e),this.PQ.el().setAttribute("aria-label",this.ME.localize("Open the video speed settings menu")),e}SI(e){let t=super.SI(e);return this.PC(t),t}PC(e){let t=e.elU,i=this.ME.localize(oE(t));eu(e.el(),i),e.el().setAttribute("aria-label",this.ME.localize("Set video speed to ")+i),e.selected(e.elU===this.az.playbackRate)}SW(e){this.az.playbackRate=e.elU}v1(){this.az.removeEventListener("ratechange",this.eFz),this.ME.off("languagechange",this.hr),super.v1()}},oS=class extends aU{constructor(e,t){var i,r;super(e,t),this.HW=void 0,this.za=void 0,this.zh=void 0,this.zu=void 0,this.LG=void 0,this.Ct=()=>{let e=op(this.ot.videoTracks);e!==this.LG&&(this.LG&&this.LG.removeEventListener("activequalitychanged",this.x1),this.LG=e,e&&e.addEventListener("activequalitychanged",this.x1),this.x1())},this.x1=()=>{var e;let t=null==(e=this.LG)?void 0:e.activeQuality,i=!!(t&&t.height>=720);this.player().toggleClass("theo-hd",i)},e4(this.menu.el(),"theo-settings-control-menu"),eu(this.menu.menuHeader.el(),e.localize("Settings")),this.controlText("Settings"),this.p1.v2=this.controlText(),this.HW=this.menu.addSubMenuItem({name:"QualityMenuItem"}),this.za=new oy(this.HW,this.ot,e);let s=null!=(i=null==t||null==(r=t.playerOptions)?void 0:r.playbackRates)?i:[];this.zh=this.menu.addSubMenuItem({name:"PlaybackRateMenuItem"}),this.zu=new ow(this.zh,this.ot,e,s),this.ot.videoTracks.addEventListener(["addtrack","removetrack","change"],this.Ct),this.Ct()}createEl(){let e=super.createEl();return this.qu=al.createEl("span",{className:"theo-settings-control-label-hd theo-primary-background"}),eu(this.qu,this.localize("HD")),e.appendChild(this.qu),e}buildCSSClass(){return`vjs-icon-cog theo-settings-control-button ${super.buildCSSClass()}`}hr(){super.hr(),eu(this.qu,this.localize("HD")),eu(this.menu.menuHeader.el(),this.localize("Settings"))}dispose(){this.LG&&(this.LG.removeEventListener("activequalitychanged",this.x1),this.LG=void 0),this.ot.videoTracks.removeEventListener(["addtrack","removetrack","change"],this.Ct),this.za.v1(),this.zu.v1(),super.dispose()}};al.registerComponent("SettingsButton",oS);var ox=class extends om{constructor(e,t){super(e),this.eSy=void 0,this.XP=e=>{let t=e.track;this.wa(t),t.addEventListener("update",this.est)},this.esd=e=>{let t=e.track;this.ws(t),t.removeEventListener("update",this.est)},this.eng=e=>this.ell(),this.est=()=>{for(let e of this.kj)this.wa(e)},this.eSy=t,this.eSy.addEventListener("addtrack",this.XP),this.eSy.addEventListener("removetrack",this.esd),this.eSy.addEventListener("change",this.eng),this.ell()}eus(e){let t=e.label;if(t)return t;let i=e.language;if(i){let e=eM(i);if(e)return e.fR}return i||""}ell(){this.kj=this.eSy}v1(){this.eSy.removeEventListener("addtrack",this.XP),this.eSy.removeEventListener("removetrack",this.esd),this.eSy.removeEventListener("change",this.eng),super.v1()}},oP=class extends ox{constructor(e,t,i){super(e,t.audioTracks),this.ot=void 0,this.ME=void 0,this.hr=()=>{for(let e of(eu(this.kk.menuHeader.el(),this.ME.localize("Language")),this.wo))this.PC(e)},this.ot=t,this.ME=i,eu(this.kk.menuHeader.el(),this.ME.localize("Language")),this.ME.on("languagechange",this.hr)}PC(e){let t=e.elU,i=this.ME.localize(this.eus(t));eu(e.el(),i),e.el().setAttribute("aria-label",`${this.ME.localize("Set the audio language to")} ${i}`),e.selected(t.enabled)}SW(e){let t=e.elU;for(let e of this.ot.audioTracks)e!==t&&(e.enabled=!1);t.enabled=!0}v1(){this.ME.off("languagechange",this.hr),super.v1()}},oM=class extends aU{constructor(e,t){super(e,t),this.epo=void 0,this.minimumMenuItems=2,this.epo=new oP(this.menu,this.ot,e),this.controlText("Language"),this.p1.v2=this.controlText()}buildCSSClass(){return`vjs-icon-audio theo-audio-track-control-button ${super.buildCSSClass()}`}dispose(){this.epo.v1(),super.dispose()}};al.registerComponent("audioTrackButton",oM);var oL=class extends ox{constructor(e,t,i){super(e,t.textTracks),this.ot=void 0,this.ME=void 0,this.hr=()=>{for(let e of(eu(this.kk.menuHeader.el(),this.ME.localize("Subtitles")),this.wo))this.PC(e)},this.ot=t,this.ME=i,eu(this.kk.menuHeader.el(),i.localize("Subtitles")),this.ME.on("languagechange",this.hr)}x_(e){return!!super.x_(e)&&!e.forced&&ep(e.kind)}SI(e){let t=super.SI(e);e4(t.el(),"theo-text-track-menu-item");let i=m.createElement("span");t.u0=i;let r=m.createElement("div");r.className="theo-text-track-menu-item-toggle",t.eib=r;let s=e=>this.ewe(e,t);t.ext=s,r.addEventListener("click",s);let n=m.createElement("div");return n.className="theo-text-track-menu-item-toggle-slider",r.appendChild(n),t.el().appendChild(i),t.el().appendChild(r),t}PC(e){let t=e.elU,i=this.ME.localize(this.eus(t));eu(e.u0,i),e.el().setAttribute("aria-label",`${this.ME.localize("Set the subtitle language to")} ${i}`),e.el().setAttribute("role","menuitemcheckbox"),e.selected("showing"===t.mode)}xh(e){e.eib.removeEventListener("click",e.ext),super.xh(e)}SW(e){let t=e.elU;for(let e of this.ot.textTracks)e!==t&&N(e.kind,t.kind)&&(e.mode="disabled");"showing"!==t.mode?t.mode="showing":t.mode="disabled"}ewe(e,t){e.stopImmediatePropagation(),this.SW(t)}v1(){this.ME.off("languagechange",this.hr),super.v1()}},oA=class extends aU{constructor(e,t){super(e,t),this.epo=void 0,this.epo=new oL(this.menu,this.ot,e),this.controlText("Subtitles"),this.p1.v2=this.controlText()}buildCSSClass(){return`vjs-icon-subtitles theo-text-track-control-button ${super.buildCSSClass()}`}dispose(){this.epo.v1(),super.dispose()}};al.registerComponent("subtitlesButton",oA);let oI=al.getComponent("playToggle");var oV=((s=oV||{}).exp="Pause",s.eqz="Play",s.eYe="Replay",s),oj=class extends af(oI){constructor(e,t){super(e,t),this.p1=void 0,this.eIc=()=>{this.controlText("Replay"),this.p1.v2=this.controlText()},this.controlText("Play"),this.p1=new aR(this,this.controlText()),this.ot.addEventListener("ended",this.eIc),this.on(e,"languagechange",this.hr),eB.sp.e4&&new ax(this.el())}handleClick(e){this.ot.muted||this.ot.prepareWithUserAction(),super.handleClick(e)}handlePlay(e){super.handlePlay(e),this.controlText("Pause"),this.p1.v2=this.controlText()}handlePause(e){this.ot.ended||(super.handlePause(e),this.controlText("Play"),this.p1.v2=this.controlText())}hr(){this.p1.v2=this.controlText()}dispose(){this.p1.v1(),this.ot.removeEventListener("ended",this.eIc),super.dispose()}};al.registerComponent("playToggle",oj);let oD=al.getComponent("fullscreenToggle");var oB=((n=oB||{}).eYt="Exit fullscreen",n.eYi="Fullscreen",n),oF=class extends af(oD){constructor(e,t){super(e,t),this.p1=void 0,this.controlText("Fullscreen"),this.p1=new aR(this,this.controlText()),eB.sp.e4&&new ax(this.el()),this.on(e,"languagechange",this.updateContent)}handleClick(e){this.ot.prepareWithUserAction(),super.handleClick(e)}handleFullscreenChange(e){super.handleFullscreenChange(e),this.updateContent()}updateContent(){let e=this.player().isFullscreen()?"Exit fullscreen":"Fullscreen";this.controlText(e),this.p1.v2=this.controlText()}dispose(){this.p1.v1(),super.dispose()}};al.registerComponent("fullscreenToggle",oF);let oN=al.getComponent("muteToggle");var oO=((a=oO||{}).eYr="Unmute",a.eYs="Mute",a),oR=class extends af(oN){constructor(e,t){super(e,t),this.p1=void 0,this.controlText("Mute"),this.p1=new aR(this,this.controlText()),eB.sp.e4&&new ax(this.el()),this.on(e,"languagechange",this.hr),Y&&(this.removeClass("vjs-hidden"),this.on(e,"loadstart",()=>{this.removeClass("vjs-hidden")}))}handleClick(e){this.ot.muted&&!this.ot.paused&&this.ot.prepareWithUserAction(),super.handleClick(e)}update(e){super.update(e),this.hr()}hr(){let e=this.player().muted()?"Unmute":"Mute";this.controlText(e),this.p1.v2=this.controlText()}dispose(){this.p1.v1(),super.dispose()}};al.registerComponent("muteToggle",oR);let o$=al.getComponent("BigPlayButton"),oU=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150" fill="currentColor">
|
|
46
|
+
<circle cx="75" cy="75" r="73" fill="#000" fill-opacity="0.2"></circle>
|
|
47
|
+
<circle cx="75" cy="75" r="73" class="theo-play-svg-circle" stroke-width="4" stroke="currentColor" fill="none" transform="rotate(-90,75,75)"></circle>
|
|
48
|
+
<g transform="translate(85,75) scale(0.5625) translate(-75,-75)">
|
|
49
|
+
<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>
|
|
50
|
+
</g>
|
|
51
|
+
</svg>`;var oH=class extends af(o$){createEl(){let e=super.createEl(),t=al.createEl("div",{className:"theo-big-play-button-svg-container"});return t.innerHTML=oU,e.appendChild(t),e}buildCSSClass(){return`theo-primary-color ${super.buildCSSClass()}`}handleClick(e){this.ot.muted||this.ot.prepareWithUserAction(),super.handleClick(e),void 0!==this.ot.vr&&"unavailable"!==this.ot.vr.state&&(this.ot.vr.useDeviceMotionControls=!0)}};al.registerComponent("BigPlayButton",oH);let oz=/^([^#]*)#xywh=(\d+),(\d+),(\d+),(\d+)\s*$/;var oW=class extends a8{constructor(e,t){super(e,t),this.eYn=void 0,this.eYa=void 0,this.eYo=void 0,this.eYl=e=>this.eYh(e),this.eYu=e=>this.eYc(e),this.eYd=e=>this.eYp(),this.eY_=void 0,this.showThumbnails=()=>{this.eYn&&this.eYn.hidden&&(this.eYn.hidden=!1,this.gu())},this.hideThumbnails=()=>{!this.eYn||this.eYn.hidden||this.player().scrubbing()||(this.eYn.hidden=!0,this.gu())},this.on(this.player().textTracks(),"addtrack",this.eYl),this.on(this.player().textTracks(),"removetrack",this.eYu),tx.tA&&(this.on(e,"seeking",this.showThumbnails),this.on(e,"seeked",this.hideThumbnails))}eYh(e){let t=e.track;"metadata"===t.kind&&"thumbnails"===t.label&&void 0===this.eYa&&(this.eYa=t,this.eYo=t.src?eB.s_(t.src).href:void 0,this.eYa.addEventListener(["addcue","removecue"],this.eYd),this.eYp())}eYc(e){e.track===this.eYa&&this.eYv()}createEl(){let e=super.createEl();return this.eYm=al.createEl("img",{className:"theo-time-tooltip-thumbnail"}),this.eYy=al.createEl("canvas",{className:"theo-time-tooltip-thumbnail"}),e}update(e,t){super.update(e,t),this.keepTooltipsInside&&this.eYf(e)}eYf(e){let t;if(this.eYa&&this.eYa.cues){let i=function(e,t){let i=e[0];for(let r of e)if(r.startTime<=t)i=r;else if(t>=r.endTime)break;return i}(this.eYa.cues,e);t=i&&i.content}if(t===this.eY_)return;if(this.eY_=t,al.toggleClass(this.el(),"theo-time-tooltip-has-thumbnail",!!t),!t)return void this.eYg();let i=t.match(oz);if(i){let[,e,t,r,s,n]=i;e=this.eYb(e);let a={eeZ:Number(t),eeY:Number(r),c8:Number(s),pq:Number(n)};this.eYC(e,a)}else{let e=this.eYb(t);this.eYC(e)}}eYp(){S(this.Vr)||this.eYf(this.Vr)}eYb(e){return this.eYa&&this.eYo?eB.s_(e,this.eYo).href:e}eYC(e,t){this.eYm&&(this.eYm.src!==e?(this.eYm.onload=()=>{this.eYT(t)},this.eYm.src="",this.eYm.src=e):this.eYT(t))}eYT(e){if(!this.eYy||!this.eYm)return;let t=this.eYy.getContext("2d");t&&(null!=e||(e={eeZ:0,eeY:0,c8:this.eYm.naturalWidth,pq:this.eYm.naturalHeight}),this.eYy.width=e.c8,this.eYy.height=e.pq,t.drawImage(this.eYm,e.eeZ,e.eeY,e.c8,e.pq,0,0,e.c8,e.pq),this.eYk(this.eYy))}eYk(e){this.eYn||(eO(this.tooltip,e),this.eYn=e),this.gu()}eYg(){this.eYn&&(this.tooltip.removeChild(this.eYn),this.eYn=void 0,this.gu())}eYv(){void 0!==this.eYa&&(this.eYa.removeEventListener(["addcue","removecue"],this.eYd),this.eYa=void 0),this.eYo=void 0,this.eYg(),this.eY_=void 0}dispose(){this.eYv(),super.dispose()}};al.registerComponent("MouseTimeDisplay",oW);let oq=al.getComponent("VolumeLevel");var oQ=class extends oq{createEl(){let e=super.createEl();return e.className=this.buildCSSClass(),e}buildCSSClass(){return`theo-primary-color vjs-volume-level ${super.buildCSSClass()}`}};al.registerComponent("VolumeLevel",oQ);let oG=al.getComponent("Component");var oX=class extends oG{createEl(){let e=super.createEl();return e.className=this.buildCSSClass(),e}buildCSSClass(){return`theo-menu-container ${super.buildCSSClass()}`}};oX.prototype.e=H(H({},oX.prototype.e),{},{children:[]}),al.registerComponent("controlBarMenuContainer",oX);let oK=al.getComponent("Player");var oY=class extends oK{constructor(e,t,i){super(e,t,i),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")},m.body.addEventListener("keydown",this.handleKeyPress),m.body.addEventListener("click",this.handleClick)}dispose(){let e=this.el(),t=this.contentEl(),i=e.parentNode,r=e.nextSibling;super.dispose(),to(t),this.st&&i&&(r?i.insertBefore(e,r):i.appendChild(e)),m.body.removeEventListener("keydown",this.handleKeyPress),m.body.removeEventListener("click",this.handleClick)}};oY.prototype.e=H(H({},oK.prototype.e),{},{children:["bigPlayButton","AdControlPanel","TopControlBar","mediaLoader","upNextContainer","posterImage","chromecastOverlay","upcomingAdNotificationText","controlBarMenuContainer","controlBar","textTrackDisplay","loadingSpinner","errorDisplay","textTrackSettings","xrCompass"]}),al.registerComponent("Player",oY);let oJ=al.getComponent("Player"),oZ=oJ.prototype.at;oJ.prototype.at=function(e){if(!(this.w&&this.w.lo&&this.w.lo()))return oZ.call(this,e)};let o0=oJ.prototype.createEl;function o1(e,t,i,r){var s;let n=H({controls:!0,playbackRates:[.25,.5,1,1.25,1.5,2]},i);n.controlBar=H({progressControl:{keepTooltipsInside:!0}},n.controlBar);let a=n.techOrder||(n.techOrder=[]);-1===a.indexOf("THEOplayer")&&a.unshift("THEOplayer"),(n.theoplayer||(n.theoplayer={})).player=e,i&&eV(i.language)&&(n.languages=H(H({},n.languages),{},{und:i.language}),n.language="und"),t.setAttribute("data-vjs-player","");let o=t.getAttribute("style"),l=al(e.element,n,r);return l.ready(()=>{let t,i;t=ag(l),i=()=>{let e=ad(l);l.toggleClass("theo-at-live",function(e,t){if(ac(e)){let i=e.seekable;return 0===i.length||i.end(i.length-1)-t<10}return!1}(t,e)),l.toggleClass("vjs-live",ac(t)),l.toggleClass("theo-dvr","dvr"===eJ(t.duration,t.seekable,t.source))},l.on("emptied",i),l.on("timeupdate",i),l.on("durationchange",i),function(e,t){if(t){let i=t.ads;if(i){let r=t=>{ab(e,"adbreakbegin"===t.type,"google-dai"===t.adBreak.integration)};i.addEventListener("adbreakbegin",r),i.addEventListener("adbreakend",r),t.addEventListener("destroy",()=>{i.removeEventListener("adbreakbegin",r),i.removeEventListener("adbreakend",r)})}let r=t.uplynk;if(r){let i=t=>{ab(e,"adbreakbegin"===t.type,!1)},s=e=>{e.adBreak.addEventListener("adbreakbegin",i),e.adBreak.addEventListener("adbreakend",i)};for(let e of r.ads.adBreaks)e.addEventListener("adbreakbegin",i),e.addEventListener("adbreakend",i);r.ads.adBreaks.addEventListener("addadbreak",s),t.addEventListener("destroy",()=>{for(let e of r.ads.adBreaks)e.removeEventListener("adbreakbegin",i),e.removeEventListener("adbreakend",i);r.ads.adBreaks.removeEventListener("addadbreak",s)})}t.addEventListener("sourcechange",()=>{ab(e,!1,!1)})}}(l,e),l.on("mouseleave",aC)}),t.removeAttribute("data-vjs-player"),o?t.setAttribute("style",o):t.removeAttribute("style"),eB.sp.tA&&(e4(t,"theo-mobile"),o2(t)),(s=l).on("seeking",()=>{tb(s.el(),"vjs-ended")&&s.currentTime()!==s.duration()&&s.play()}),l}function o2(e){v.outerHeight>v.outerWidth?(ez(e,"theo-mobile-landscape"),e4(e,"theo-mobile-portrait")):(ez(e,"theo-mobile-portrait"),e4(e,"theo-mobile-landscape"))}oJ.prototype.createEl=function(){let e=o0.call(this),t=al.createEl("div");for(t.className="theo-player-wrapper";e.firstChild;)t.appendChild(e.firstChild);return e.appendChild(t),this.o=t,e};let o3=al.getComponent("Button"),o5="THEOPiPCloseButton";var o4=class extends o3{constructor(e,t){if(super(e,t),this.eYE=void 0,this.controlText("Close Picture-in-Picture"),!(t&&t.eYE))throw new g("Invalid Picture-in-picture options.");this.eYE=t.eYE}buildCSSClass(){return"theo-close-button theo-pip-close"}handleClick(){this.eYE.eYw()}};al.registerComponent(o5,o4);var o6=class extends eg{constructor(e,t,i){super(),this.jF=void 0,this.cD=void 0,this.eYS=void 0,this.R5=void 0,this.jx=void 0,this.HH=!1,this.cG=!1,this.eYx=!1,this.eYP=!1,this.RG=!1,this.eYw=void 0,this.eYM=!1,this.eYL=void 0,this.eYA=void 0,this.eYI=void 0,this.eYV=!1,this.eYj=void 0,this.eYD=()=>{this.HH=!0,this.eYj&&!this.cX&&this.eYL&&this.jF&&this.eYL.jw<=this.jF&&this.cx(!1)},this.eYB=()=>{this.eYS||(this.HH=!1,this.eYw(),this.cI(!1))},this.hr=()=>{if(this.eYI){let e=this.R5.eYF;eu(this.eYI,e.localize("Video playing in Picture-in-Picture mode"))}},this.ey9=e=>{!this.eYP&&this.eYj&&!S(e)&&(this.jF&&e<=this.jF||this.eYV?this.cG||this.eYx||this.cx(!1):this.cG?this.cI(!1):this.eYx=!1)},this.jF=t.visibility,this.cD=t.position,this.eYS=t.retainPresentationModeOnSourceChange,this.eYj=void 0!==this.jF,this.R5=e,this.jx=e.eYN,this.eYw=i,this.eYO()}get cX(){return this.cG}get eYR(){return this.R5.EU()}eYO(){this.R5.sZ("play",this.eYD),this.eYS||this.R5.sZ("sourcechange",this.eYB),this.R5.eYF.on("languagechange",this.hr)}eY$(){var e;return`theo-pip-${null!=(e=this.cD)?e:"bottom-right"}`}cx(e){let t=this.jx;t&&!this.eYR&&(this.RG||this.eGk(),this.eYU(),e4(t,"theo-pip"),e4(t,this.eY$()),this.cG=!0,this.eYP=e,this.eYx=!1,this.sX(new el("picture-in-picture")))}cI(e){let t=this.jx;t&&(this.eYH(),ez(t,"theo-pip"),ez(t,this.eY$()),this.cG=!1,this.eYx=e,this.eYV=this.eYP,this.eYP=!1,this.sX(new el("inline")))}eGk(){if(!this.RG){let e=this.R5.eYF;e.addChild(o5,{eYE:this});let t=m.createElement("div");t.className="theo-pip-overlay",this.eYI=m.createElement("div"),this.eYI.className="theo-pip-overlay-text",eu(this.eYI,e.localize("Video playing in Picture-in-Picture mode")),t.appendChild(this.eYI),eO(e.el(),t),this.eYA=t,this.RG=!0}}eG2(){this.eYj&&!this.eYM&&this.R5.A6&&(this.eYL=this.R5.A6.jM(tT,this.ey9),this.eYM=!0)}eG4(){this.eYL&&this.R5.A6&&(this.R5.A6.jq(this.eYL),this.eYM=!1)}eYU(){let e=this.R5.eYF.contentEl(),t=e.getBoundingClientRect(),i=m.documentElement.clientWidth,r=m.documentElement.clientHeight;e.style.top=`${t.top}px`,e.style.bottom=`${r-t.bottom}px`,e.style.right=`${i-t.right}px`,e.style.left=`${t.left}px`,e.style.width=`${t.width}px`,e.style.height=`${t.height}px`,e.style.position="fixed"}eYH(){let e=this.R5.eYF.contentEl();e.style.top="",e.style.bottom="",e.style.right="",e.style.left="",e.style.width="",e.style.height="",e.style.position=""}eYz(){ez(this.jx,"theo-pip"),this.cX&&this.cD&&ez(this.jx,`theo-pip-${this.cD}`),this.eYA&&(to(this.eYA),this.eYA=void 0)}_j(){this.eYz(),this.eG4(),this.s0(),this.R5.s1("play",this.eYD),this.R5.s1("sourcechange",this.eYB),this.R5.eYF.off("languagechange",this.hr),this.R5=void 0}},o9=class extends J{constructor(e,t,i,r){super(t,i),this.Sl=void 0,this.eYW=void 0,this.eYq="inline",this.eYQ=!1,this.eYw=()=>{"picture-in-picture"===this.DN&&this.Dz("inline")},this.eYG=e=>{!this.DO&&("picture-in-picture"!==this.DN||this.eYW.cX?"picture-in-picture"!==this.DN&&this.eYW.cX&&(this.eYQ=!0,this.Dz("picture-in-picture")):this.Dz("inline"))},this.eYX=()=>{("picture-in-picture"===this.DH()||"inline"===this.DH())&&this.eYW.eG2(),this.Sl.s1("play",this.eYX)},this.Sl=e,this.eYW=new o6(e,r.pip,this.eYw),this.eYW.sZ("presentationmodechange",this.eYG),this.Sl.sZ("play",this.eYX)}DH(){let e=super.DH();return"inline"===e&&this.eYW.cX?"picture-in-picture":e}DW(e){return"picture-in-picture"===e||super.DW(e)}Dz(e){this.eYq=this.DN,"fullscreen"===e||"native-picture-in-picture"===e?this.eYW.eG4():this.eYW.eG2(),super.Dz(e)}DG(e){super.DG(e),"picture-in-picture"===e?X(this.DF._G(e=>this.eYK(e))):"fullscreen"===e?this.eYW.cI(!1):this.eYW.cI(!0)}async eYK(e){eC(e),await Promise.all([this.D_(),this.Lf.cI()]).catch(ts),eC(e),this.eYW.cx(!this.eYQ),this.sX(new el(this.DN)),this.eYQ=!1,this.DO=!1}DU(){this.DO||(this.eYW.cX&&this.Lm.EU?this.Dz("fullscreen"):"picture-in-picture"!==this.eYq||this.Lm.EU?super.DU():(this.eYQ=!0,this.Dz("picture-in-picture")))}_j(){super._j(),this.eYW._j(),this.Sl.s1("play",this.eYX),this.Sl=void 0}},o7=class extends eg{constructor(e,t){super(),this.eYF=void 0,this.eYY=void 0,this.os=!1,this.eYJ=!1,this.DE=!1,this.eYZ=()=>{if(this.DE)return;let e=this.os,t=this.EU;e!==t&&(this.os=t,this.sX(new em))},this.eY0=()=>{this.eYJ=this.eYY.EU,this.eYZ()},this.eY1=()=>{!this.DE&&(this.eYF.isFullWindow&&this.eYF.supportsFullScreen()||this.eYJ&&!this.eYF.supportsFullScreen())&&(this.DE=!0,this.eYF.exitFullscreen(),this.eYF.requestFullscreen(),this.DE=!1,this.eYZ())},this.eYF=e,this.eYY=t,this.eYF.on("fullscreenchange",this.eYZ),this.eYY.sZ("fullscreenchange",this.eY0),this.eYY.sZ("fullscreensupportchange",this.eY1),this.eYY.sZ("fullscreenerror",this.s$),this.eYZ()}get L_(){return tI.Dg(this.eYF.el())||this.eYF.supportsFullScreen()}get EU(){return this.eYF.isFullscreen()||this.eYJ}cx(){this.eYF.requestFullscreen()}cI(){this.eYF.exitFullscreen(),this.eYY.cI()}_j(){this.s0(),this.eYF.off("fullscreenchange",this.eYZ),this.eYY.s1("fullscreenchange",this.eYZ),this.eYY.s1("fullscreenerror",this.s$),this.eYF.isFullWindow&&this.eYF.exitFullscreen()}};function o8(e){var t;let i=M(e);return i.ui=i.ui||{},(null==e?void 0:e.width)!==void 0&&void 0===i.ui.width&&(i.ui.width=e.width),(null==e?void 0:e.height)!==void 0&&void 0===i.ui.height&&(i.ui.height=e.height),(null==e?void 0:e.fluid)!==void 0&&void 0===i.ui.fluid&&(i.ui.fluid=e.fluid),(t=(t=i.pip)||{}).position=function(e){switch(e){case"top-left":case"top-right":case"bottom-left":case"bottom-right":return e;default:return}}(t.position),t.visibility=function(e){if(!(!tL(e)||S(e)))return td(e,0,1)}(t.visibility),t.retainPresentationModeOnSourceChange=et(t.retainPresentationModeOnSourceChange),i.pip=t,i}let le=eL(()=>{let e=(t=e9(),class extends t{constructor(e,t,i){super(t,i),this.eYN=void 0,this.eYF=void 0,this.eY2=void 0,this.eY3=void 0,this.eY5=void 0,this.eY4=void 0,this.eYN=e,this.eY3=new eS(e),this.eY2=super.uN(),T.defineProperty(this.eY2,"constructor",{value:ta}),this.eYF=o1(this.eY2,this.eYN,i.ui),this.eY4=new o7(this.eYF,this.C5),this.eY5=new o9(this,this.eY4,this.C7,i),this.eY5.sZ("presentationmodechange",this.s$)}get A6(){return this.eY3}EU(){return"fullscreen"===this.eY5.DH()}uN(){var e,t;let i,r;return e=this.eY2,t=this,i=T.create(e),r=t.eYF,Q(i,{get controls(){return r.controls()},set controls(e){r.controls(et(e))},get presentation(){return t.eY5.uM},get presentationMode(){return t.eY5.DH()},set presentationMode(e){let i=eU(e);i&&t.eY5.Dz(i)},get related(){var e;return null==(e=t.eY6)?void 0:e.uM},get social(){var e;return null==(e=t.eY9)?void 0:e.uM},get ui(){return r},get upnext(){var e;return null==(e=t.eY7)?void 0:e.uM},get visibility(){return t.A6.uM}})}_j(){super._j(),this.eY5._j(),this.eY4._j(),this.eYF.dispose(),this.eY3._j()}Cz(e){this.eYF.src(""),super.Cz(e)}});var t,i=e;let r=i;for(let e of tj)r=e(r);return r});function lt(e,t){let i=o8(t),r=m.createElement("div");eQ(r),e.appendChild(r);let s=new(le())(e,r,i);s.Ex=s;let n=s.uM;s.kC(),s.QU(eq),T.defineProperty(n,"constructor",{value:lt}),n=$(n),e8(s);for(let e of tD)e(s);return n}let li="theo-cast-",lr=al.getComponent("Button");var ls=class extends af(lr){constructor(e,t){var i;super(e,t),this.jx=void 0,this.ly=void 0,this.p1=void 0,this.eY8=void 0,this.jx=e.el(),this.ly="unavailable",this.controlText("Unavailable"),this.p1=new aR(this,this.controlText()),null==(i=this.eJe)||i.addEventListener("statechange",e=>{this.e$5(e.state)}),eB.sp.e4&&(this.eY8=new ax(this.el())),this.e$5(this.eJe?this.eJe.state:"unavailable"),this.on(e,"languagechange",this.hr)}get eJe(){throw new g("eJt")}get eJi(){return this.e.eJi}get eJr(){return this.e.eJr}buildCSSClass(){return`${li}button theo-${this.eJr}-button theo-controlbar-button ${super.buildCSSClass()}`}createEl(e,t,i){let r=super.createEl(),s=m.createElement("div");s.className="theo-button-icon-blur";let n=m.createElement("div");return n.className=`${li}svg-container`,n.innerHTML=this.eJi,r.appendChild(s),r.appendChild(n),r}handleClick(e){var t,i;super.handleClick(e),"available"===this.ly?null==(t=this.eJe)||t.start():("connected"===this.ly||"connecting"===this.ly)&&(null==(i=this.eJe)||i.stop())}e$5(e){ez(this.jx,`theo-${this.eJr}-${this.ly}`),this.ly=e,e4(this.jx,`theo-${this.eJr}-${this.ly}`),this.hr()}hr(){this.eJs(this.ly),this.p1.v2=this.controlText()}eJs(e){"connected"===e?this.controlText("Stop Casting"):"available"===e?this.controlText("Start Casting"):"connecting"===e?this.controlText("Connecting"):this.controlText("Unavailable")}};let ln=0;var la=class extends ls{constructor(e,t){let i;super(e,H(H({},t),{},{eJr:"chromecast",eJi:(i=`
|
|
52
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="currentColor">
|
|
53
|
+
<defs>
|
|
54
|
+
<clipPath id="theo-chromecast-rings-mask-${ln}">
|
|
55
|
+
<path d="M0-36h44V0H0z"/>
|
|
56
|
+
</clipPath>
|
|
57
|
+
</defs>
|
|
58
|
+
<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"/>
|
|
59
|
+
<path class="theo-chromecast-inner" d="M10 14h28v20H26.74A26 26 0 0 0 10 17.26z"/>
|
|
60
|
+
<g class="theo-chromecast-rings" fill="none" stroke="currentColor" stroke-width="4" transform="translate(2 42)" clip-path="url(#theo-chromecast-rings-mask-${ln})">
|
|
61
|
+
<circle stroke="none" cx="0" cy="0" r="30" />
|
|
62
|
+
<circle class="theo-chromecast-ring theo-chromecast-ring1" stroke-width="6" cx="0" cy="0" r="3" />
|
|
63
|
+
<circle class="theo-chromecast-ring theo-chromecast-ring2" cx="0" cy="0" r="12" />
|
|
64
|
+
<circle class="theo-chromecast-ring theo-chromecast-ring3" cx="0" cy="0" r="20"/>
|
|
65
|
+
<path class="theo-chromecast-ring theo-chromecast-ring4" stroke-linecap="round" d="M0-20A20 20 0 0 1 20 0" />
|
|
66
|
+
</g>
|
|
67
|
+
</svg>`,ln++,i)}))}get eJe(){var e;return null==(e=this.ot.cast)?void 0:e.chromecast}};al.registerComponent("chromecastButton",la);let lo="theo-chromecast-",ll=al.getComponent("Component");var lh=class e extends af(ll){constructor(e,t){var i,r;super(e,t),this.eJn=void 0,this.update=()=>{this.eJn?(this.km&&eu(this.km,this.eJn.receiverName||""),"connected"===this.eJn.state?this.show():this.hide()):this.hide()},this.eJn=null==(i=this.ot.cast)?void 0:i.chromecast,null==(r=this.eJn)||r.addEventListener("statechange",this.update),this.ot.addEventListener("play",this.update),this.update()}buildCSSClass(){return`${lo}overlay ${super.buildCSSClass()}`}createEl(){let t=super.createEl();e4(t,`${lo}overlay`);let i=al.createEl("div",{className:`${lo}status-icon`,innerHTML:e.ICON_SVG}),r=al.createEl("div",{className:`${lo}status-info`});eu(r,"Playing on");let s=al.createEl("div",{className:`${lo}status-title`}),n=al.createEl("div",{className:`${lo}status`});return this.km=s,n.appendChild(i),n.appendChild(r),n.appendChild(s),t.appendChild(n),t}dispose(){var e;null==(e=this.eJn)||e.removeEventListener("statechange",this.update),this.eJn=void 0,this.ot.removeEventListener("play",this.update),super.dispose()}};lh.ICON_SVG=`
|
|
68
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" fill="currentColor">
|
|
69
|
+
<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"/>
|
|
70
|
+
</svg>`,al.registerComponent("chromecastOverlay",lh);let lu=`
|
|
71
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24">
|
|
72
|
+
<path class="theo-cast-inner" d="M5 7h14v8H5z"/>
|
|
73
|
+
<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"/>
|
|
74
|
+
</svg>`;var lc=class extends ls{constructor(e,t){var i,r;super(e,H(H({},t),{},{eJr:"airplay",eJi:lu})),this.eJa=()=>{this.enable()},this.eJo=e=>{"theoads"!==e.adBreak.integration&&"google-dai"!==e.adBreak.integration&&this.disable()},null==(i=this.ot.ads)||i.addEventListener("adbreakbegin",this.eJo),null==(r=this.ot.ads)||r.addEventListener("adbreakend",this.eJa),this.ot.addEventListener("currentsourcechange",this.eJa)}dispose(){var e,t;null==(e=this.ot.ads)||e.removeEventListener("adbreakbegin",this.eJo),null==(t=this.ot.ads)||t.removeEventListener("adbreakend",this.eJa),this.ot.removeEventListener("currentsourcechange",this.eJa),super.dispose()}get eJe(){var e;return null==(e=this.ot.cast)?void 0:e.airplay}};al.registerComponent("airplayButton",lc);let ld=al.getComponent("Button");var lp=class extends af(ld){constructor(e,t){var i;super(e,t),this.eJl=void 0,this.eY8=void 0,this.eJh=()=>this.f1(),this.controlText("Watch in VR"),this.eJl=new aR(this,this.controlText()),null==(i=this.ot.vr)||i.addEventListener(["statechange","stereochange"],this.eJh),this.f1(),eB.sp.e4&&(this.eY8=new ax(this.el())),this.on(e,"languagechange",this.hr)}buildCSSClass(){return`theo-vr-button theo-controlbar-button ${super.buildCSSClass()}`}handleClick(){this.ot.vr.stereo=!this.ot.vr.stereo,this.hr()}f1(){let e=this.ot.vr;e&&"unavailable"!==e.state?(this.show(),e.canPresentVR?this.enable():this.disable()):this.hide(),this.hr()}hr(){let e=this.ot.vr;e&&"unavailable"!==e.state&&(e.stereo?this.controlText("Stop watching in VR"):e.canPresentVR?this.controlText("Watch in VR"):this.controlText("No VR capable device found"),this.eJl.v2=this.controlText())}dispose(){var e;null==(e=this.ot.vr)||e.removeEventListener(["statechange","stereochange"],this.eJh),super.dispose()}};al.registerComponent("vrButton",lp);let l_=al.getComponent("Component");var lv=class extends l_{constructor(e,t,i){super(e,t),this.ot=void 0,this.eJh=()=>this.f1(),this.eJu=()=>this.eJc(),this.ot=i,this.ot.vr.addEventListener("statechange",this.eJh),this.ot.vr.addEventListener("directionchange",this.eJu),this.f1(),this.eJc()}createEl(){let e=super.createEl("div",{className:this.buildCSSClass()}),t=al.createEl("div",{className:"theo-360-fov"});return e.appendChild(t),this.eJd=t,e}buildCSSClass(){return`theo-360-compass ${super.buildCSSClass()}`}f1(){"unavailable"===this.ot.vr.state?this.hide():this.show()}eJc(){let e=-this.ot.vr.direction.yaw+40;this.eJd.style[e_("transform")]=`scale(0.875) rotate(${e}deg) skew(-10deg)`}dispose(){this.ot.vr.removeEventListener("statechange",this.eJh),this.ot.vr.removeEventListener("directionchange",this.eJu),super.dispose()}};let lm=2**31-1,ly=al.getComponent("Component");var lf=class extends ly{constructor(e,t,i){super(e,t),this.ot=void 0,this.eJp=!1,this.eJ_=!1,this.eJv="",this.eJm=()=>this.eJy(),this.ot=i,this.ot.vr.addEventListener("statechange",this.eJm),this.eJy()}eJy(){"presenting"===this.ot.vr.state?this.eJf():this.eJg()}eJf(){if(this.eJp)return;this.eJp=!0;let e=this.ot.element;this.eJv=e.style.zIndex||"",e.style.zIndex=`${lm}`,this.eJ_=this.player().isFullscreen(),this.player().requestFullscreen()}eJg(){this.eJp&&(this.eJp=!1,this.ot.element.style.zIndex=this.eJv,this.eJ_?this.player().requestFullscreen():this.player().exitFullscreen())}dispose(){this.eJg(),this.ot.vr.removeEventListener("statechange",this.eJm),super.dispose()}};tB(function(e){let t=e.uM;if(!t.vr)return;let i=e.eYF,r=new lv(i,{},t);if(e.sZ("sourcechange",()=>{var t;i.removeChild(r);let s=null==(t=e.Eq())?void 0:t.vr;void 0===s||s.nativeVR||i.addChild(r)}),tx.tp){let e=new lf(i,{},t);i.addChild(e)}});let lg=al.getComponent("Component");var lb=class extends lg{constructor(e,t){super(e,t),e.adControlBar=this}buildCSSClass(){return"theo-ad-control-panel"}createEl(){let e=super.createEl();return e.className=this.buildCSSClass(),e}};lb.prototype.e=H(H({},lg.prototype.e),{},{children:[]}),al.registerComponent("AdControlPanel",lb);let lC=al.getComponent("Component"),lT="theo-dai-countdown";var lk=class extends lC{constructor(e,t,i){super(e,i),this.Sl=e,this.uD=t,this.hr=()=>{let e=this.uD.ads;e.playing&&e.currentAdBreak&&e.currentAds.length&&eu(this.contentEl(),function(e,t,i){let r=e.ads,s="",n=r.length;if(n>1){let e=r.indexOf(t)+1;s=`${i("Ad")} ${e}/${n}. `}let a=k.ceil(e.maxRemainingDuration);return s+i("The content will resume in {1} seconds.").replace("{1}",`${a}`)}(e.currentAdBreak,e.currentAds[0],e=>this.Sl.localize(e)))},this.eJb(t,t.ads),this.on(e,"languagechange",this.hr)}buildCSSClass(){return lT}createEl(e,t,i){let r=m.createElement("div");return r.className=lT,r}eJb(e,t){t.addEventListener("adbreakbegin",()=>this.show()),t.addEventListener("adbreakend",()=>this.hide()),e.addEventListener("timeupdate",this.hr)}};let lE="theo-dai-clickthrough",lw=al.getComponent("ClickableComponent");var lS=class extends lw{constructor(e,t){super(e,t),eu(this.el(),e.localize("Learn more")),this.on(e,"languagechange",this.hr)}buildCSSClass(){return lE}createEl(e,t,i){return this.e.uM.element.querySelector(`.${lE}`)}emitTapEvents(){}hr(){eu(this.el(),this.localize("Learn more"))}};tB(function(e){let t=e.uM.ads;if(t&&t.dai){let t=e.eYF,i=new lk(t,e.uM);if(t.adControlBar.addChild(i),e.uM.element.querySelector(".theo-dai-clickthrough")){let i=new lS(t,{uM:e.uM});t.adControlBar.addChild(i)}}});let lx=al.getComponent("Component");var lP=class extends lx{constructor(e,t){super(e,t),this.qi=()=>{this.hr(this.player().currentTime(),this.el())},this.on(e,"timeupdate",this.qi)}createEl(){let e=m.createElement("div");return e.className="theoplayer-ad-overlay-component theo-ad-remaining-container",e}get Id(){return this.e.adBreakProvider()}hr(e,t){if(this.Id&&this.Id.endTime){let i=k.max(this.Id.endTime-e,0);eu(t,`Content will resume in ${k.ceil(i)}s`),this.show()}else this.hide()}};al.registerComponent("UplynkAdBreakBar",lP);let lM=al.getComponent("ClickableComponent");var lL=class extends lM{constructor(e,t){super(e,t),this.qi=()=>{this.hr(this.el(),this.eFv)},this.on(e,"timeupdate",this.qi)}createEl(){let e=m.createElement("div");return e.className="theoplayer-ad-overlay-component theoplayer-ad-skip theoplayer-ad-skip-countdown",this.eFv=m.createElement("span"),e.appendChild(this.eFv),this.hr(e,this.eFv),e}handleClick(){this.e.skipCallback()}hr(e,t){this.eJC<=e3.m9.m2?(ez(e,"theoplayer-ad-skip-countdown"),e4(e,"theoplayer-ad-skip-button"),eu(t,"Skip ads")):eu(t,`Skip ads in ${k.ceil(this.eJC)}s`)}get eJC(){return this.e.adBreak.startTime+this.e.adBreak.skipOffset-this.player().currentTime()}};al.registerComponent("UplynkAdSkipButton",lL);let lA=al.getComponent("Component");var lI=class extends lA{constructor(e,t){super(e,t)}buildCSSClass(){return"theo-uplynk-marker-bar"}createEl(e,t,i){let r=m.createElement("div");return r.className=this.buildCSSClass(),r}updateMarkers(e){let t=this.children().slice(),i=0,r=0;for(;i<t.length&&r<e.length;i++,r++){let s=t[i],n=e[r];s.marker===n?s.updateMarker():(this.removeChild(s),this.addChild(this.eJT,{marker:n}))}for(;i<t.length;i++)this.removeChild(t[i]);for(;r<e.length;r++){let t=e[r];this.addChild(this.eJT,{marker:t})}}};function lV(e,t){let i=e.uplynk;return!!(e&&void 0===i)||!!(e&&i&&void 0===i.ui)||!!(e&&i&&i.ui&&void 0===i.ui[t])||!!(e&&i&&i.ui&&!0===i.ui[t])}tj.push(function(e){return class extends e{constructor(e,t,i){super(e,t,i),this.eJk=!1,this.eJE=()=>{this.eJk=!0,isFinite(this.Ea())||this.uM.addEventListener("timeupdate",this.eJw),this.eJw(),this.eJS(),this.eJx()},this.eJP=e=>{e.adBreak.addEventListener("adbreakbegin",this.Ic),e.adBreak.addEventListener("adbreakend",this.Im),this.eJw()},this.eJM=e=>{e.adBreak.removeEventListener("adbreakbegin",this.Ic),e.adBreak.removeEventListener("adbreakend",this.Im),this.eJw()},this.eJw=()=>{if(!lV(this._r,"adBreakMarkers")||!this.eJk)return;let e=this.eJL.getChild("UplynkAdBreakMarkerBar");e||(e=this.eJL.addChild("UplynkAdBreakMarkerBar")),e.updateMarkers(this.uM.uplynk.ads.adBreaks)},this.Ic=()=>{if(lV(this._r,"adNotification")){let e=this.uM.uplynk,t=e.ads.currentAdBreak;this.eYF.addChild("UplynkAdBreakBar",{adBreakProvider:this.eJA}),-1!==t.skipOffset&&this.eYF.addChild("UplynkAdSkipButton",{adBreak:t,skipCallback:e.ads.skip})}},this.eJA=()=>this.uM.uplynk.ads.currentAdBreak,this.Im=()=>{this.eYF.removeChild("UplynkAdBreakBar"),this.eYF.removeChild("UplynkAdSkipButton")},this.eJI=()=>{this.eJS(),this.eJx()};let r=this.uM.uplynk;null==r||r.ads.adBreaks.addEventListener("addadbreak",this.eJP),null==r||r.ads.adBreaks.addEventListener("removeadbreak",this.eJM),null==r||r.assets.addEventListener("addasset",this.eJI),null==r||r.assets.addEventListener("removeasset",this.eJI)}get eJL(){return this.eYF.controlBar.progressControl.seekBar}Cz(e){this.eJk=!1,this.uM.removeEventListener("timeupdate",this.eJw),this.uM.removeEventListener("loadeddata",this.eJE),this.eYF.removeChild("UplynkAdBreakBar"),this.eYF.removeChild("UplynkAdSkipButton"),this.eJL.removeChild("UplynkAdBreakMarkerBar"),this.eJL.removeChild("UplynkAssetMarkerBar"),this.eYF.removeChild("UplynkContentNotificationBar"),this.uM.uplynk&&e&&e.sources.some(e=>"uplynk"===e.integration)&&this.uM.addEventListener("loadeddata",this.eJE),super.Cz(e)}eJS(){if(!lV(this._r,"assetMarkers")||!this.eJk)return;let e=this.eJL.getChild("UplynkAssetMarkerBar");e||(e=this.eJL.addChild("UplynkAssetMarkerBar")),e.updateMarkers(this.uM.uplynk.assets)}eJx(){if(!lV(this._r,"contentNotification"))return;let e=this.eYF.getChild("UplynkContentNotificationBar");e||(e=this.eYF.addChild("UplynkContentNotificationBar")),e.updateAssets(this.uM.uplynk.assets)}_j(){this.uM.removeEventListener("timeupdate",this.eJw),this.uM.removeEventListener("loadeddata",this.eJE);let e=this.uM.uplynk;null==e||e.ads.adBreaks.removeEventListener("addadbreak",this.eJP),null==e||e.ads.adBreaks.removeEventListener("removeadbreak",this.eJM),null==e||e.assets.removeEventListener("addasset",this.eJI),null==e||e.assets.removeEventListener("removeasset",this.eJI),super._j()}}});var lj=class extends lI{buildCSSClass(){return`${super.buildCSSClass()} theo-uplynk-marker-bar-adbreak`}get eJT(){return"UplynkAdBreakMarker"}};al.registerComponent("UplynkAdBreakMarkerBar",lj);let lD=al.getComponent("Component");var lB=class extends lD{constructor(e,t){super(e,t)}get marker(){return this.e.marker}get seekable(){return this.player().seekable()}buildCSSClass(){return"theo-uplynk-marker"}createEl(e,t,i){let r=m.createElement("div");return r.className=this.buildCSSClass(),this.updateMarker(r),r}updateMarker(e=this.el()){let t=this.seekable.start(0),i=this.seekable.end(this.seekable.length-1),r=k.max(this.marker.startTime-t,0),s=void 0!==this.marker.endTime?k.max(i-this.marker.endTime,0):0,n=i-t;e.style.left=`${r/n*100}%`,e.style.right=`${s/n*100}%`}},lF=class extends lB{buildCSSClass(){return`${super.buildCSSClass()} theo-uplynk-marker-adbreak`}};al.registerComponent("UplynkAdBreakMarker",lF);var lN=class extends lI{buildCSSClass(){return`${super.buildCSSClass()} theo-uplynk-marker-bar-asset`}get eJT(){return"UplynkAssetMarker"}};al.registerComponent("UplynkAssetMarkerBar",lN);var lO=class extends lB{buildCSSClass(){return`${super.buildCSSClass()} theo-uplynk-marker-asset`}};al.registerComponent("UplynkAssetMarker",lO);let lR=al.getComponent("Component");var l$=class extends lR{constructor(e,t){super(e,t)}buildCSSClass(){let e="theo-uplynk-content-notification-bar";return`${e}${tx.tp||tx.tC?` ${e}-ios`:""}`}createEl(e,t,i){let r=m.createElement("div");return r.className=this.buildCSSClass(),r}updateAssets(e){let t=this.children().slice(),i=0,r=0;for(;i<t.length&&r<e.length;i++,r++){let s=t[i],n=e[r];s.eJV===n?s.updateCountdown():(this.removeChild(s),this.addChild("UplynkContentNotification",{asset:n}))}for(;i<t.length;i++)this.removeChild(t[i]);for(;r<e.length;r++){let t=e[r];this.addChild("UplynkContentNotification",{asset:t})}}};al.registerComponent("UplynkContentNotificationBar",l$);let lU=al.getComponent("Component");var lH=class extends lU{constructor(e,t){super(e,t),this.eJj=void 0,this.eGk(),this.on(e,"timeupdate",this.updateCountdown),this.hide()}get eJV(){return this.e.asset}buildCSSClass(){return"theo-uplynk-content-notification"}createEl(e,t,i){let r=m.createElement("div");return r.className=this.buildCSSClass(),r}eGk(){var e;let t=m.createElement("img");t.src=this.eJV.posterUrl,t.className=`${this.buildCSSClass()}-thumbnail`,this.el().appendChild(t);let i=m.createElement("div");i.className=`${this.buildCSSClass()}-description`,eu(i,(e=this.eJV.description,`Next: ${e}`)),this.el().appendChild(i),this.eJj=m.createElement("div"),this.eJj.className=`${this.buildCSSClass()}-countdown`,eu(this.eJj,this.eJD),this.el().appendChild(this.eJj)}get eJD(){let e=k.min(10,this.eJB);return`Starting in ${k.ceil(e)} seconds`}get eJB(){return k.max(0,this.eJV.startTime-this.player().currentTime())}updateCountdown(){let e=this.eJB;e>10||e<=0?this.hide():(eu(this.eJj,this.eJD),this.show())}};al.registerComponent("UplynkContentNotification",lH),tg(eN.UI);let lz={White:"#ffffff",Yellow:"#ffff00",Green:"#00ff00",Cyan:"#00ffff",Blue:"#0000ff",Magenta:"#ff00ff",Red:"#ff0000",Black:"#000000"},lW=[50,75,100,150,200];function lq(e){return{label:`${e}%`,value:e}}function lQ(e){return T.keys(e).map(t=>({label:t,value:e[t]}))}lW.map(function(e){return{label:`${e}%`,value:`${e/100}em`}});let lG=lW.map(function(e){return{label:`${e}%`,value:`${e}%`}}),lX=[25,50,75,100].map(lq),lK=[0,25,50,75,100].map(lq),lY=lQ(lz),lJ=lQ({Default:"","Monospaced Serif":'"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace',"Proportional Serif":'"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif',"Monospaced Sans-Serif":'"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace',"Proportional Sans-Serif":'Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}),lZ=lQ({None:"none","Drop Shadow":"dropshadow",Raised:"raised",Depressed:"depressed",Uniform:"uniform"}),l0="#000000",l1="#FFFFFF",l2="#000000";var l3=class extends om{constructor(e,t,i,r){super(e.subMenu),this.eJF=e,this.ME=r,this.eqZ=void 0,this.AD=void 0,this.eJN=void 0,this.eJO="",this.eJR=void 0,this.hr=()=>{let e=this.ME.localize(this.eqZ);for(let t of(eu(this.eJF.subMenu.menuHeader.el(),e),eu(this.AD,e),this.eJ$(this.eJO),this.wo))this.PC(t)},this.eqZ=t,this.eJR=i.eJU,this.eJN=this.eJH(),this.kj=i.eJz,this.ME.on("languagechange",this.hr)}eJH(){let e=this.ME.localize(this.eqZ);eu(this.eJF.subMenu.menuHeader.el(),e),this.AD=m.createElement("span"),this.AD.className="theo-settings-control-menu-item-title",eu(this.AD,e);let t=m.createElement("span");return t.className="theo-primary-color theo-settings-control-menu-item-value",e4(this.eJF.el(),"theo-subtitle-options-menu-item"),this.eJF.el().appendChild(this.AD),this.eJF.el().appendChild(t),t}eJW(e){let t=this.SP(e);t&&this.eJq(t)}eJQ(){return this.kj}SW(e){this.eJR(e.elU)}eJq(e){for(let e of this.kk.menuItems)e.selected(!1);e?(e.selected(!0),this.eJ$(e.elU.label)):this.eJ$("Custom")}eJ$(e){this.eJO=e,eu(this.eJN,this.ME.localize(e)),this.eJF.parentMenu.Gx()}SI(e){let t=super.SI(e);return e4(t.el(),"theo-subtitle-options-menu-item"),this.PC(t),t}PC(e){let t=this.ME.localize(e.elU.label);eu(e.el(),t);let i=this.ME.localize(`Set ${this.eqZ} to `)+t;e.el().setAttribute("aria-label",i)}v1(){this.ME.off("languagechange",this.hr),super.v1()}},l5=class e{constructor(t){this.eJG=t,this.eJX=void 0,this.eJK=void 0,this.eJY=void 0,this.eJJ=void 0,this.eJZ=void 0,this.eJ0=void 0,this.eJ1=e=>{this.eJG.fontFamily=e.value},this.eJ2=e=>{this.eJG.fontSize=e.value},this.eJ3=t=>{this.eJX=t.value,this.eJG.fontColor=e.eJ5(this.eJK,this.eJX,l1,100)},this.eJ4=t=>{this.eJK=t.value,this.eJG.fontColor=e.eJ5(this.eJK,this.eJX,l1,100)},this.eJ6=t=>{this.eJJ=t.value,this.eJG.backgroundColor=e.eJ5(this.eJJ,this.eJY,l0,100)},this.eJ9=t=>{this.eJY=t.value,this.eJG.backgroundColor=e.eJ5(this.eJJ,this.eJY,l0,100)},this.eJ7=t=>{this.eJ0=t.value,this.eJG.windowColor=e.eJ5(this.eJ0,this.eJZ,l2,100)},this.eJ8=t=>{this.eJZ=t.value,this.eJG.windowColor=e.eJ5(this.eJ0,this.eJZ,l2,100)},this.eZ2=e=>{this.eJG.edgeStyle=e.value}}static eJ5(e,t,i,r){if(void 0!==e||void 0!==t)return F(void 0===e?i:e,void 0===t?r:t)}},l4=class{constructor(e,t){this.eJG=e,this.eZ3=t,this.eZ5=()=>{let e=this.eJG.fontFamily;this.eZ4(e,this.eZ3["Font family"]);let t=this.eJG.fontColor;this.eZ6(t,this.eZ3["Font color"],this.eZ3["Font opacity"]);let i=this.eJG.fontSize;this.eZ4(i,this.eZ3["Font size"]);let r=this.eJG.backgroundColor;this.eZ6(r,this.eZ3["Background color"],this.eZ3["Background opacity"]);let s=this.eJG.windowColor;this.eZ6(s,this.eZ3["Window color"],this.eZ3["Window opacity"]);let n=this.eJG.edgeStyle;this.eZ4(n,this.eZ3["Character edge style"])},this.eJG.addEventListener("change",this.eZ5),this.eZ5()}eZ4(e,t){let i=this.eZ9(e,t.eJQ());i&&t.eJW(i)}eZ9(e,t){return eo(t,t=>t.value===e)}eZ6(e,t,i){let r,s;if(void 0===e)r=this.eZ9(void 0,t.eJQ()),s=this.eZ9(void 0,i.eJQ());else if(e){var n;let a,o=((a=ed(n=e))||(a=ed(`${n.slice(0,n.length-1).replace("rgb","rgba")},1)`)),a||(a=D(tw(n),1)),a||(a=D(tw(lz[n.charAt(0).toUpperCase()+n.toLowerCase().slice(1)]),1)),a);if(o){let e=O(o),n=100*o.G0;r=this.eZ9(e,t.eJQ()),s=this.eZ9(n,i.eJQ())}}r&&t.eJW(r),s&&i.eJW(s)}},l6=class extends om{constructor(e,t,i,r){super(e.subMenu),this.PQ=e,this.kI=t,this.ME=r,this.eZ7=void 0,this.eZ8=void 0,this.e0e=void 0,this.eZ3={},this.AD=void 0,this.e0t=void 0,this.e0i=()=>{this.kI.some(e=>ep(e.kind))?this.PQ.show():this.PQ.hide()},this.hr=()=>{eu(this.kk.menuHeader.el(),this.ME.localize("Subtitle Options")),eu(this.AD,this.ME.localize("Subtitle")),eu(this.e0t,this.ME.localize("Options")),this.PQ.el().setAttribute("aria-label",this.ME.localize("Open the subtitle options menu"))},this.eZ7=new l5(i),this.e0e=this.e0r(),this.kj=T.keys(this.e0e),this.e0s(),this.eZ8=new l4(i,this.eZ3),this.ME.on("languagechange",this.hr),this.kI.addEventListener(["addtrack","removetrack"],this.e0i),this.e0i()}e0r(){return{"Font family":{eJz:l9(lJ),eJU:this.eZ7.eJ1},"Font color":{eJz:l9(lY),eJU:this.eZ7.eJ4},"Font opacity":{eJz:l9(lX),eJU:this.eZ7.eJ3},"Font size":{eJz:l9(lG),eJU:this.eZ7.eJ2},"Background color":{eJz:l9(lY),eJU:this.eZ7.eJ6},"Background opacity":{eJz:l9(lK),eJU:this.eZ7.eJ9},"Window color":{eJz:l9(lY),eJU:this.eZ7.eJ7},"Window opacity":{eJz:l9(lK),eJU:this.eZ7.eJ8},"Character edge style":{eJz:l9(lZ),eJU:this.eZ7.eZ2}}}e0s(){this.AD=m.createElement("span"),this.AD.className="theo-settings-control-menu-item-title",this.e0t=m.createElement("span"),this.e0t.className="theo-primary-color theo-settings-control-menu-item-value",this.PQ.el().appendChild(this.AD),this.PQ.el().appendChild(this.e0t),this.hr()}SI(e){let t=this.kk.addSubMenuItem();return t.elU=e,this.eZ3[e]=new l3(t,e,this.e0e[e],this.ME),t}PC(e){}SW(e){}v1(){this.ME.off("languagechange",this.hr),this.kI.removeEventListener(["addtrack","removetrack"],this.e0i),super.v1()}};function l9(e){let t=[{label:"Default",value:void 0}];for(let i of e)"Default"!==i.label&&t.push(i);return t}tB(function(e){let t=e.eYF.controlBar.getChild("SettingsButton").menu,i=t.addSubMenuItem({name:"TextTrackOptionsMenuItem"}),r=new l6(i,e.Ch.uM,e.AY.uM,e.eYF);e.eYF.on("dispose",()=>{t.removeMenuItem(i),i.dispose(),r.v1(),t.dispose()})}),tg(eN.TEXTTRACKSTYLE_UI);var l7=class{constructor(e,t){this.Sl=void 0,this.di=void 0,this.e0n=1,this.e0a=1.05,this.e0o=.95,this.e0l=()=>{this.e0h()},this.e0u=()=>{if(!this.Sl.e0c)return;let e=this.Sl.e0c.nf,t=this.Sl.b6,i=this.Sl.kZ;null!==i?this.e0d(i.valueOf()+e):this.e0p(t+e/1e3)},this.di=e,this.Sl=t,this.Sl.sZ("ratechange",this.e0l),this.Sl.sZ("timeupdate",this.e0u)}e0d(e){let t=e-this.di.nf-20,i=e-this.di.nf+20;if(0===this.di.cD)return;let r=this.di.R5.currentProgramDateTime.valueOf();r>i?this.Ek(this.e0a):r<t?this.Ek(this.e0o):this.Ek(this.e0n)}e0p(e){let t=e-this.di.nf/1e3-.02,i=e-this.di.nf/1e3+.02;if(0===this.di.cD)return;let r=this.di.R5.currentTime;r>i?this.Ek(this.e0a):r<t?this.Ek(this.e0o):this.Ek(this.e0n)}e0h(){this.e0n=this.Sl.Cx,this.e0a=this.Sl.Cx-.05,this.e0o=this.Sl.Cx+.05}Ek(e){let t=this.di.R5;t.playbackRate!==e&&0!==t.playbackRate&&(e>=.2&&e<=2.05?t.playbackRate=e:this.Sl.e0_(this.di))}iO(){this.Sl.s1("ratechange",this.e0l),this.Sl.s1("timeupdate",this.e0u)}},l8=class{constructor(e,t,i,r){this.cc=void 0,this.Sl=void 0,this.e0v=void 0,this.e0m=void 0,this.nw=void 0,this.cf=!0,this.e0y=!1,this.e0f=0,this.uD=void 0,this.aY=void 0,this.aJ=void 0,this._x=void 0,this._y=void 0,this.cc=e,this.Sl=t,this.e0v=i,this.e0m=new l7(this,i),this.nw=null!=r?r:0,this.aY=.2,this.aJ=.2,this._x=.76,this._y=0}get R5(){return this.Sl}get uM(){var e,t;return null!=(e=this.uD)?e:this.uD=(t=this,{get player(){return t.R5},get label(){return t.u0},get position(){return t.cD},set position(e){t.cD=e},get muted(){return t.CE},set muted(e){t.CE=e},get canResize(){return t.e0g},get x(){return t.eeZ},set x(e){t.eeZ=e},get y(){return t.eeY},set y(e){t.eeY=e},get width(){return t.c8},set width(e){t.c8=e},get height(){return t.pq},set height(e){t.pq=e},get enabled(){return t.uX},set enabled(e){t.uX=e},get offset(){return t.nf},set offset(e){t.nf=e},remove(){t.o9()}})}get u0(){return this.cc}get cD(){return this.e0v.e0b.indexOf(this)}set cD(e){this.e0v.e0C(this,e)}get CE(){return this.Sl.muted}set CE(e){this.uX&&(this.e0v.e0T=this,this.e0k(e))}get e0g(){return 0!==this.cD&&"overlay"===this.e0v.e0E}get eeZ(){return this._x}set eeZ(e){this.e0g&&(this.e0y||(this.e0y=!0),this._x=e>1-this.c8?1-this.c8:k.max(e,0),this.R5.element.style.setProperty("left",`${100*this._x}%`))}get eeY(){return this._y}set eeY(e){this.e0g&&(this.e0y||(this.e0y=!0),this._y=e>1-this.pq?1-this.pq:k.max(e,0),this.R5.element.style.setProperty("top",`${100*this._y}%`))}get c8(){return this.aY}set c8(e){this.e0g&&this.e0w(e)}get pq(){return this.aJ}set pq(e){this.e0g&&this.e0w(e)}get uX(){return this.cf}set uX(e){e!==this.cf&&0!==this.cD&&(e?(X(this.e0v.e0_(this)),this.e0v.e0S(this),this.R5.element.style.setProperty("display","block")):(this.R5.pause(),this.R5.element.style.setProperty("display","none")),this.cf=e,this.e0v.e0x(this))}get e0P(){return this.e0y}set e0P(e){this.e0y=e}get e0M(){return this.e0f}set e0M(e){this.e0f=e}get nf(){return this.nw}set nf(e){this.nw=er(e),this.nS(this.e0v.b6,this.e0v.kZ)}e0L(e,t,i,r,s){!this.e0y&&s&&(this.e0y=!0),this._x=e,this._y=t,this.aY=i,this.aJ=r}e0k(e){this.Sl.muted=e}o9(){0!==this.cD&&this.e0v.e0A(this)}KW(){this.R5.element.style.setProperty("top",`${100*this._y}%`),this.R5.element.style.setProperty("left",`${100*this._x}%`),this.R5.element.style.setProperty("width",`${100*this.aY}%`)}e0w(e){let t=this._x+this.aY,i=k.min(e,t),r=.9-this._y,s=k.max(k.min(i,k.min(e,r)),.1),n=this.aY-s;this.aY=s,this.aJ=s,this.eeZ+=n,this.R5.element.style.setProperty("width",`${100*s}%`)}nS(e,t){if(null!==t){let e=t.valueOf()-this.nf;this.Sl.currentProgramDateTime=new Date(e)}else this.Sl.currentTime=e-this.nf/1e3}e0I(e){let t=this.R5.element.getElementsByClassName(hh)[0],i=e?hu:hc,r=e?hc:hu;ez(t,i),e4(t,r)}iO(){this.e0m.iO(),this.Sl.element.remove(),this.Sl.destroy()}},he=class{constructor(e,t){this.e0v=void 0,this.e0V=new eg,this.R8=void 0,this.M6=void 0,this.e0j=void 0,this.e0D=void 0,this.Lw=void 0,this.e0v=e,this.R8=t,this.M6=new en,this.e0j=new eb().uM,this.e0D=new eT().uM,this.Lw=new e1().uM,this.e0v.addEventListener(["play","pause","seeking","seeked","timeupdate","ended","playing","waiting","sourcechange","readystatechange","loadedmetadata","loadeddata","canplay","canplaythrough","loadstart","progress","durationchange","volumechange","ratechange","error"],this.e0V.s$)}get multiViewPlayer(){return this.e0v}get abr(){}get audioTracks(){return this.e0j}get autoplay(){return this.e0v.autoplay}set autoplay(e){this.e0v.autoplay=e}get buffered(){return this.e0v.buffered}get canvas(){}get clip(){return this.M6.uM}get currentProgramDateTime(){return null}get currentTime(){return this.e0v.currentTime}set currentTime(e){this.e0v.currentTime=e}get duration(){return this.e0v.duration}get element(){return this.R8}get ended(){return this.e0v.ended}get error(){}get errorObject(){return this.e0v.errorObject}get latency(){}get loop(){return!1}get metrics(){}get millicast(){}get muted(){return this.e0v.muted}set muted(e){this.e0v.muted=e}get network(){}get paused(){return this.e0v.paused}get playbackRate(){return this.e0v.playbackRate}set playbackRate(e){this.e0v.playbackRate=e}get played(){return this.e0v.played}get poster(){return""}get preload(){return""}get presentation(){}get readyState(){return this.e0v.readyState}get seekable(){return this.e0v.seekable}get seeking(){return this.e0v.seeking}get source(){}get src(){return"dummySource"}get textTrackStyle(){return this.Lw}get textTracks(){return this.e0D}addTextTrack(e){throw g("Not implemented")}get uid(){return 0}get videoHeight(){return 0}get videoTracks(){return this.e0j}get videoWidth(){return 0}get volume(){return this.e0v.volume}set volume(e){this.e0v.volume=e}get version(){return"11.14.0"}get views(){return this.e0v.views}get visibility(){}get layout(){return this.e0v.layout}set layout(e){this.e0v.layout=e}play(){this.e0v.play()}pause(){this.e0v.pause()}stop(){this.e0v.stop()}recreateMediaSource(){return Promise.reject(new eh(5e3,"Recreating the media source is not supported for this player."))}destroy(){this.e0v.destroy()}prepareWithUserAction(){this.e0v.prepareWithUserAction()}addEventListener(e,t){this.e0V.sZ(e,t)}removeEventListener(e,t){this.e0V.s1(e,t)}setSource(e){}},ht=class extends ev{constructor(e){super("addview"),this.view=e}},hi=class extends ev{constructor(e,t){super("viewpositionchange"),this.oldPosition=e,this.newPosition=t}},hr=class extends ev{constructor(e){super("removeview"),this.view=e}},hs=class extends ev{constructor(e){super("viewchange"),this.view=e}},hn=class extends ev{constructor(e){super("layoutchange"),this.layout=e}},ha=class extends eg{constructor(e){super(),this.Sl=void 0,this.e0B=e=>{this.s$(new eX(e.source))},this.e0F=e=>{this.s$(new tm(e.currentTime))},this.e0N=e=>{this.s$(new eF(e.currentTime))},this.eh7=e=>{this.s$(new tp(e.currentTime))},this.eh9=e=>{this.s$(new ti(e.currentTime))},this.e0O=e=>{this.s$(new Z(e.currentTime,e.currentProgramDateTime))},this.e0R=e=>{this.s$(new e0(e.currentTime))},this.e0$=e=>{this.s$(new eP(e.currentTime))},this.e0U=e=>{this.s$(new ej(e.currentTime))},this.e0H=e=>{this.s$(new B(e.currentTime,e.readyState))},this.e0z=e=>{this.s$(new ec(e.currentTime,this.w$))},this.e0W=e=>{this.s$(new tP(e.currentTime,this.w$))},this.e0q=e=>{this.s$(new tA(e.currentTime,this.w$))},this.e0Q=e=>{this.s$(new tE(e.currentTime,this.w$))},this.e0G=()=>{this.s$(new e2)},this.e0X=e=>{this.s$(new A(e.currentTime))},this.e0K=e=>{this.s$(new tn(e.duration))},this.e0Y=e=>{this.s$(new tf(this.b6,e.volume))},this.e0J=e=>{this.s$(new eA(this.b6,e.playbackRate))},this.kK=e=>{this.s$(new tc(e.errorObject))},this.e0Z=()=>{this.s$(new em)},this.Sl=e,this.Sl.sZ("sourcechange",this.e0B),this.Sl.sZ("play",this.e0F),this.Sl.sZ("pause",this.e0N),this.Sl.sZ("seeking",this.eh7),this.Sl.sZ("seeked",this.eh9),this.Sl.sZ("timeupdate",this.e0O),this.Sl.sZ("ended",this.e0R),this.Sl.sZ("playing",this.e0$),this.Sl.sZ("waiting",this.e0U),this.Sl.sZ("readystatechange",this.e0H),this.Sl.sZ("loadedmetadata",this.e0z),this.Sl.sZ("loadeddata",this.e0W),this.Sl.sZ("canplay",this.e0q),this.Sl.sZ("canplaythrough",this.e0Q),this.Sl.sZ("loadstart",this.e0G),this.Sl.sZ("progress",this.e0X),this.Sl.sZ("durationchange",this.e0K),this.Sl.sZ("volumechange",this.e0Y),this.Sl.sZ("ratechange",this.e0J),this.Sl.sZ("error",this.kK),this.Sl.sZ("fullscreenchange",this.e0Z)}get b6(){return this.Sl.b6}get S_(){return this.Sl.S_}get nu(){return this.Sl.CS}get Sr(){return this.Sl.Sr}get w$(){return this.Sl.w$}get CD(){return this.Sl.CD}get q0(){return!1}get q9(){return!1}iO(){this.s0()}},ho=class{constructor(e,t,i){if(this.Sl=void 0,this._R=void 0,this.eZ0=void 0,this.Lw=void 0,this.jX=void 0,this.Sl=e,this._R=i,this.Lw=new e1,this.eZ0=new z(t),i.overrideAutoplayCapability)this.jX=new R(i.overrideAutoplayCapability);else{let e=new tM(this.eZ0,this.Lw,i,1,["video"]);this.jX=q(e)}}async QI(){let e=this.Sl;if(!e.Aq||!e.Sr)return;let t=this._R.mutedAutoplay;switch(await this.jX.DZ(e.CE)){case"allowed":e.CE||e.W9(),e.CJ();break;case"allowed-muted":(e.CE||"all"===t)&&(e.CE=!0,e.CJ())}}_j(){this.jX._j(),this.eZ0._j()}};let hl=["canplay","canplaythrough","loadeddata","loadedmetadata"],hh="theo-switch-audio-button",hu="vjs-icon-volume-mute",hc="vjs-icon-volume-high",hd="theo-main-view",hp="theo-layout-";var h_=class extends eg{constructor(e,t,i){super(),this.e00=void 0,this.R8=void 0,this._R=void 0,this.e01=void 0,this.e02=[],this.e03=void 0,this.e05=void 0,this.e04="gallery",this.e06=!1,this.kD=void 0,this.e09=void 0,this.uD=void 0,this.e07=void 0,this.e08=void 0,this.e1e=void 0,this.e1t=!1,this.Lh=!0,this.Lc=!1,this.q$=!1,this.aO=-1,this.qX=0,this.e1i=!1,this.e1r=0,this.e1s=void 0,this.e1n=!1,this.jj=!1,this.e1a=-1,this.e1o=!1,this.e1l=-1,this.e1h=!1,this.HA=void 0,this.exG=void 0,this.e1u=void 0,this.k2=e=>{this.e1c(),ek(()=>this.s$(e))},this.P8=e=>{this.e1d(),this.s$(e)},this.Ak=()=>{var e;null==(e=this.e09)||e.nO(),this.e09=void 0},this.e1p=()=>{let e=this.Cx;this.e1l!==e&&(this.e1l=e,this.s$(new eA(this.b6,e)))},this.e1_=()=>{let e=this.pE,t=this.CE;(this.e1a!==e||this.e1o!==t)&&(this.e1a=e,this.e1o=t,this.s$(new tf(this.b6,e)))},this.e1v=e=>{(this.w$>2||this.CD)&&this.s$(e)},this.k0=e=>{this.e1c(),this.CD||(this.Lc=!1,this.s$(e))},this.eVH=e=>{let t=this.pC;this.aO!==t&&(this.aO=t,this.s$(e))},this._A=e=>{this.s$(e)},this.k1=e=>{if(this.Lh){if(this.e1n){this.e1n=!1;return}this.Lh=!1,this.q$=!1,this.s$(e)}},this.x6=e=>{this.Lc||(this.Lc=!0,this.s$(e))},this.x4=e=>{!this.Lh&&this.Sr&&(this.Lh=!0,this.s$(e))},this.eIc=e=>{this.q$||(this.q$=!0,this.s$(e))},this.e1m=e=>{this.e1i||(this.e1i=!0,this.s$(e))},this.e1y=e=>{let t=this.w$;this.qX!==t&&(this.qX=t,this.s$(e))},this.e1f=async()=>{try{await this.e1e.L0([G.MULTIVIEW])}catch(e){this.Ez(),this.kD=tV(e,2004),this.e1t=!0,this.sX(new eY(this.kD))}},this.e00=e,this.R8=t,this._R=i;let r=eB.uL,s=new ee,n=new U("11.14.0",r,s),a=new K(i.isEmbeddable,"11.14.0",th());if(this.e1e=new ei(r,a,n,s,i,th()),this.e1e.ND().then(this.e1f),this.e07=new he(this.uM,this.R8),this.e01=o1(this.e07,this.e00,i.ui),e4(this.R8,hp+this.e04),eB.sp.tA){let e=this.e01.el();e4(e,"theo-mobile"),o2(e)}this.e08=new ha(this),this.HA=new es(this.e08),this.HA.sZ("playing",this.k2),this.exG=new eG(this,!0),this.exG.sZ(hl,this.s$),this.exG.sZ("waiting",this.P8),this.e1u=new ho(this,e,i)}get uM(){var e,t;return null!=(e=this.uD)?e:this.uD=(t=this,{load:(e,i,r,s)=>t.o7(e,i,r,s),get views(){return t.e0b.map(e=>e.uM)},get mainVideoView(){var e;return null==(e=t.e0c)?void 0:e.uM},get mainAudioView(){var e;return null==(e=t.e0T)?void 0:e.uM},get ui(){return t.eYF},get layout(){return t.e0E},set layout(e){t.e0E=e},get buffered(){return t.Cm},get currentTime(){return t.b6},set currentTime(e){t.b6=e},get autoplay(){return t.Aq},set autoplay(e){t.Aq=e},get duration(){return t.pC},get ended(){return t.S_},get errorObject(){return t.CS},get muted(){return t.CE},set muted(e){t.CE=e},get paused(){return t.Sr},get playbackRate(){return t.Cx},set playbackRate(e){t.Cx=e},get played(){return t.CI},get readyState(){return t.w$},get seekable(){return t.CB},get seeking(){return t.CD},get volume(){return t.pE},set volume(e){t.pE=e},get version(){return"11.14.0"},play(){t.CJ()},pause(){t.C0()},stop(){t.Ez()},destroy(){t.iO(),t=null},requestFullscreen(e){t.Do(e)},exitFullscreen(){t.D_()},prepareWithUserAction(){t.W9()},addEventListener(e,i){t.sZ(e,i)},removeEventListener(e,i){t.s1(e,i)}})}get eYF(){return this.e01}get e0b(){return this.e02}get e0c(){return this.e03}get e0T(){var e;return null!=(e=this.e05)?e:this.e03}set e0T(e){if(this.e05===e)return;let t=this.e0T,i=null!=e?e:this.e0c;t.R5.removeEventListener("volumechange",this.e1_),t.e0I(!1),t.CE||(t.e0k(!0),i.e0k(!1)),i.R5.addEventListener("volumechange",this.e1_),i.e0I(!0),this.e05=e}get e0E(){return this.e04}set e0E(e){if(e!==this.e04){if("overlay"===this.e0E)for(let e of this.e0b)e.R5.element.style.setProperty("left","auto"),e.R5.element.style.setProperty("top","auto"),e.R5.element.style.removeProperty("z-index");ez(this.R8,hp+this.e04),this.e04=e,e4(this.R8,hp+this.e04),this.KW(),this.sX(new hn(e))}}get Cm(){return 0===this.e0b.length?tl.PK().Cg():this.e1g().reduce((e,t)=>e.Pb(tl.PH(t.R5.buffered)),tl.Pj()).Cg()}get b6(){return this.e03&&this.e1h?this.e03.R5.currentTime+this.e03.nf/1e3:0}set b6(e){this.e1d();let t=this.e1g(),i=null;if(null!==this.kZ){i=this.kZ;let t=e-this.b6;i.setSeconds(i.getSeconds()+t)}for(let r of t)r.nS(e,i)}get kZ(){return this.e03&&this.e0b.every(e=>null!==e.R5.currentProgramDateTime)?new Date(this.e03.R5.currentProgramDateTime.valueOf()+this.e03.nf):null}get Aq(){return this.jj}set Aq(e){this.jj=e,this.e1u.QI()}get pC(){if(0===this.e0b.length)return 0/0;let e=1/0;for(let t of this.e1g())e=k.min(t.R5.duration,e);return e}get S_(){return this.e0b.some(e=>e.R5.ended)}get nu(){return this.CS}get CS(){if(this.kD)return this.kD;for(let e of this.e0b){let t=e.R5.errorObject;if(void 0!==t)return t}}get CE(){var e,t;return null!=(e=null==(t=this.e0T)?void 0:t.CE)&&e}set CE(e){this.e0T&&this.e0T.e0k(e),this.e1_()}get Sr(){return!this.e0b.length||this.e1g().some(e=>e.R5.paused)}get Cx(){var e,t,i;return null!=(e=null!=(t=this.e1s)?t:null==(i=this.e03)?void 0:i.R5.playbackRate)?e:1}set Cx(e){if(void 0!==this.e1s)this.e1s=e;else for(let t of this.e0b)t.R5.playbackRate=e;this.e1p()}get CI(){return this.e0b.reduce((e,t)=>e.PE(tl.PH(t.R5.played)),tl.PK()).Cg()}get w$(){if(0===this.e0b.length)return 0;let e=4;for(let t of this.e1g())t.R5.readyState<e&&(e=t.R5.readyState);return e}get CB(){return 0===this.e0b.length?tl.PK().Cg():this.e1g().reduce((e,t)=>e.Pb(tl.PH(t.R5.seekable)),tl.Pj()).Cg()}get CD(){return this.e0b.some(e=>e.R5.seeking)}get pE(){var e,t;return null!=(e=null==(t=this.e0T)?void 0:t.R5.volume)?e:1}set pE(e){for(let t of this.e0b)t.R5.volume=e;this.e1_()}o7(e,t,i,r){if(this.e1t)throw this.kD;let s=eo(this.e0b,t=>t.u0===e);if(s)return s.uM;let n=er(r),a=S(n)?void 0:n;return this.e1b(e,t,i,a)}CJ(){if(this.e03&&this.Sr)for(let e of(this.e1d(),this.e1g()))e.R5.play()}C0(){for(let e of this.e1g())e.R5.pause()}Ez(){for(let e=this.e0b.length-1;e>=0;e--)this.e0A(this.e0b[e]);this.e03=void 0,this.e05=void 0,this.kD=void 0,this.e09&&(this.e09.iz(),this.e09=void 0),this.Lh=!0,this.Lc=!1,this.q$=!1,this.aO=-1,this.qX=0,this.e1i=!1,this.e1s=void 0,this.e1n=!1,this.e1a=-1,this.e1o=!1,this.e1l=-1,this.e1h=!1,this.exG._l(),this.sX(new eX(void 0))}iO(){for(let e=this.e0b.length-1;e>=0;e--)this.e0A(this.e0b[e]);this.s0(),this.exG._j(),this.HA.iO(),this.e08.iO(),this.e1u._j(),this.eYF.dispose()}Do(e){this.sX(new em),this.R8.requestFullscreen(e).catch(ts)}D_(){this.sX(new em),m.exitFullscreen().catch(ts)}W9(){for(let e of this.e0b)e.R5.prepareWithUserAction()}e1b(e,t,i,r){let s=m.createElement("div");e4(s,"theo-view"),this.R8.appendChild(s);let n=new(e9())(s,this._R).uM;n.source=t;let a=new l8(e,n,this,r);if(i){let e=m.createElement("div");e.className="theo-view-description";let t=m.createElement("span");t.textContent=i,e.appendChild(t),s.appendChild(e),a.R5.addEventListener("dimensionchange",()=>{this.e1C(e)})}return this.e1T(a),this.e0b.push(a),1===this.e0b.length?(this.e03=a,this.e1k(this.e03),e4(this.e03.R5.element,hd)):(this.e1E(n),0!==this.b6&&X(this.e0_(a,!0))),this.KW(),this.sX(new ht(a.uM)),a.uM}e1g(){return this.e0b.filter(e=>e.uX)}e1w(){return this.e0b.filter(e=>e.uX&&e!==this.e03)}e1E(e){e.volume=this.e03.R5.volume,e.muted=!0,e.playbackRate=this.e03.R5.playbackRate}e1T(e){e.e0M=this.e0b.length;let t=e.R5.element;t.addEventListener("dblclick",()=>{this.e1S(e)}),t.addEventListener("touchend",t=>{this.e1r>=t.timeStamp?(t.preventDefault(),this.e1S(e),this.e1r=0):this.e1r=t.timeStamp+500});let i=m.createElement("div"),r=0===this.e0b.length?hc:hu;i.className=`theo-primary-color ${hh} ${r}`,i.addEventListener("click",()=>{this.e0T=e}),i.addEventListener("touchend",()=>{this.e0T=e}),t.appendChild(i);let s=m.createElement("div");s.className="theo-primary-color theo-disable-button vjs-icon-close",s.addEventListener("click",()=>{e.uX=!1}),s.addEventListener("touchend",()=>{e.uX=!1}),t.appendChild(s),this.e1x(e,t),this.e1P(e),this.e1M(e)}e1x(e,t){let i=m.createElement("div"),r=0,s=t=>{this.e06=!0,this.e0S(e),t.preventDefault(),"touchstart"===t.type?(r=t.changedTouches[0].clientX,m.addEventListener("touchmove",n),m.addEventListener("touchend",a),m.addEventListener("touchcancel",a)):(r=t.x,m.addEventListener("mousemove",n),m.addEventListener("mouseup",a))},n=t=>{let i;i="touchmove"===t.type?t.changedTouches[0].clientX:t.x;let s=r-i,n=e.R5.element.parentElement.clientWidth,a=(e.R5.element.clientWidth+s)/n;e.c8=a,e.pq=a,r=i},a=e=>{this.e06=!1,"mouseup"===e.type?(m.removeEventListener("mousemove",n),m.removeEventListener("mouseup",a)):(m.removeEventListener("touchmove",n),m.removeEventListener("touchend",a),m.removeEventListener("touchcancel",a))};i.addEventListener("mousedown",s),i.addEventListener("touchstart",s),i.className="theo-resize-button theo-primary-color vjs-icon-resize-handle-sw",t.appendChild(i)}e1C(e){let t=e.parentElement.clientWidth/100,i=k.min(40,5.23*t);e.style.fontSize=`${i}px`}e1P(e){let t=e.R5.element,i=t.parentElement,r={x:0,y:0},s=t=>{!this.e06&&e.e0g&&(this.e0S(e),t.preventDefault(),"touchstart"===t.type?(r.x=t.changedTouches[0].clientX,r.y=t.changedTouches[0].clientY,m.addEventListener("touchmove",n),m.addEventListener("touchend",a),m.addEventListener("touchcancel",a)):(r.x=t.x,r.y=t.y,m.addEventListener("mousemove",n),m.addEventListener("mouseup",a)))},n=s=>{let n,a=(n="touchmove"===s.type?{x:s.changedTouches[0].clientX,y:s.changedTouches[0].clientY}:{x:s.x,y:s.y}).x-r.x,o=n.y-r.y;e.eeZ=(t.offsetLeft+a)/i.clientWidth;let l=i.offsetHeight;e.eeY=(t.offsetTop+o)/l,r=n},a=e=>{"mouseup"===e.type?(m.removeEventListener("mouseup",a),m.removeEventListener("mousemove",n)):(m.removeEventListener("touchmove",n),m.removeEventListener("touchend",a),m.removeEventListener("touchcancel",a))};t.addEventListener("mousedown",s),t.addEventListener("touchstart",s)}e0S(e){for(let t of this.e0b)t.e0M>e.e0M&&(t.e0M-=1,t.R5.element.style.setProperty("z-index",`${t.e0M}`));e.e0M=this.e0b.length,e.R5.element.style.setProperty("z-index",`${e.e0M}`)}e1d(){if(void 0===this.e1s)for(let e of(this.e1s=this.Cx,this.e1g()))e.R5.playbackRate=0}e1c(){if(void 0!==this.e1s){if(this.CD||this.w$<3){if(this.e03&&!this.e1h)for(let e of(this.e1h=!0,this.e1w()))this.e03.nf!==e.nf&&e.nS(this.b6,this.kZ);return}for(let e of this.e1g())e.R5.playbackRate=this.e1s;this.e1s=void 0,this.e1h=!0}}e0x(e){e.uX||e!==this.e05||(this.e0T=void 0),this.sX(new hs(e.uM)),this.KW()}async e0_(e,t=!1){this.e1d();let i=e.R5;t&&(this.e09=new W,i.addEventListener("sourcechange",this.Ak),await this.e09.nD,i.removeEventListener("sourcechange",this.Ak)),0===i.readyState&&(this.e1n=!0,i.play()),this.Sr?i.pause():i.play(),e.nS(this.b6,this.kZ)}KW(){let e=this.e1g();if(!e.length)return;let t=0;switch(this.e0E){case"spotlight":{e.length>1?this.R8.style.gridTemplateColumns="80% 20%":this.R8.style.gridTemplateColumns="100%";let i=1/0;for(let r of e){if(t>=i+1){r.uX=!1;continue}if(r.R5.element.style.setProperty("width","100%"),2==++t){let t=r.R5.element.clientHeight,s=r.R5.element.parentElement.clientHeight,n=k.floor(s/t);i=k.min(e.length-1,n),this.R8.style.gridTemplateRows=`repeat(${i}, 1fr)`}}break}case"overlay":{let i=0;for(t=1;t<e.length;t++){let r=e[t];if(t>=5){r.uX=!1;continue}if(!r.e0P){let e=.04+.24*i;r.e0L(r.eeZ,e,r.c8,r.pq,!1),this.e0S(r),i++}r.R5.element.style.setProperty("z-index",`${r.e0M}`),r.KW()}break}case"gallery":{let i=e.length,r=k.ceil(k.sqrt(i));for(let i of e){if(t>=16){i.uX=!1;continue}i.R5.element.style.setProperty("width",`${100/r}%`),t++}}}}e0C(e,t){let i=t>=0?k.min(k.floor(t),this.e0b.length-1):0,r=e.cD,s=k.min(r,i),n=k.max(r,i),a=0===s;if(this.e0b[s].uX&&this.e0b[n].uX||!a){if("overlay"===this.e0E){let e=this.e0b[n],t=this.e0b[s],i=e.eeZ,r=e.eeY,a=e.c8,o=e.pq,l=t.e0P||e.e0P;e.e0L(t.eeZ,t.eeY,t.c8,t.pq,l),[this.e0b[s],this.e0b[n]]=[this.e0b[n],this.e0b[s]],t.e0L(i,r,a,o,l)}else[this.e0b[s],this.e0b[n]]=[this.e0b[n],this.e0b[s]];a&&this.e1L(this.e0b[0]),this.sX(new hi(r,i))}}e0A(e){e===this.e05&&(this.e0T=void 0),e.iO(),L(this.e0b,e),this.KW(),this.sX(new hr(e.uM))}e1S(e){this.S_||0===this.CI.length||this.e03===e||"gallery"===this.e04||this.e0C(e,0)}e1L(e,t=!1){let i=!1,r=this.e03;this.e03=e,e.e0P=!1,this.e1A(r),ez(r.R5.element,hd),this.e05||(i=r.CE,r.e0k(!0),r.e0I(!1),e.e0I(!0),t&&!i?this.sX(new tf(this.b6,0)):e.e0k(i)),this.e0S(r),e4(this.e03.R5.element,hd),this.e1k(this.e03),"overlay"===this.e0E&&this.KW()}e1M(e){e.R5.addEventListener("seeked",this.k0),e.R5.addEventListener("ended",this.eIc),e.R5.addEventListener("play",this.k1),e.R5.addEventListener("pause",this.x4),e.R5.addEventListener("seeking",this.x6),e.R5.addEventListener("loadstart",this.e1m),e.R5.addEventListener("durationchange",this.eVH),e.R5.addEventListener("readystatechange",this.e1y),e.R5.addEventListener("error",this._A)}e1k(e){e.R5.addEventListener("progress",this.s$),e.R5.addEventListener("ratechange",this.e1p),e.R5.addEventListener("timeupdate",this.e1v),this.e05||e.R5.addEventListener("volumechange",this.e1_)}e1A(e){e.R5.removeEventListener("progress",this.s$),e.R5.removeEventListener("ratechange",this.e1p),e.R5.removeEventListener("timeupdate",this.e1v),this.e05||e.R5.removeEventListener("volumechange",this.e1_)}};function hv(e,t){var i;let r=o8(H(H({},t||{}),{},{allowNativeFullscreen:!1,ui:H(H({},(null==t?void 0:t.ui)||{}),{},{userActions:H(H({},(null==t||null==(i=t.ui)?void 0:i.userActions)||{}),{},{click:!1})}),abr:H(H({},(null==t?void 0:t.abr)||{}),{},{restrictToPlayerSize:!0})})),s=m.createElement("div");eQ(s),e.appendChild(s);let n=new h_(e,s,r).uM;return T.defineProperty(n,"constructor",{value:hv}),n=$(n)}let hm="vjs-selected";var hy=class extends om{constructor(e,t,i){if(super(e),this.az=void 0,this.ME=void 0,this.e1I=void 0,this.e1V=void 0,this.e1j=void 0,this.e1D=void 0,this.e1B=e=>{this.wa(e.view)},this.e1F=e=>{this.ws(e.view)},this.e1N=e=>{let t=e.oldPosition,i=e.newPosition,r=k.max(t,i),s=k.min(t,i),n=m.getElementsByClassName("theo-multi-view-menu-item");n[r].before(n[s]),n[s].before(n[r]),0===s&&(ez(n[r],"theo-multi-view-menu-item-position-zero"),e4(n[s],"theo-multi-view-menu-item-position-zero"))},this.e1O=()=>{let e=this.az.layout;ex(this.e1V,hm,"gallery"===e),ex(this.e1D,hm,"spotlight"===e),ex(this.e1j,hm,"overlay"===e)},!t.views)return;this.az=t,this.ME=i,this.az.multiViewPlayer.addEventListener("addview",this.e1B),this.az.multiViewPlayer.addEventListener("removeview",this.e1F),this.az.multiViewPlayer.addEventListener("viewchange",this.e1B),this.az.multiViewPlayer.addEventListener("viewpositionchange",this.e1N),this.az.multiViewPlayer.addEventListener("layoutchange",this.e1O),eu(this.kk.menuHeader.el(),this.ME.localize("MultiView")),this.e1I=this.e1R(),this.e1O()}PC(e){let t=e.elU,i=this.ME.localize(t.label);eu(e.u0,i),e.el().setAttribute("aria-label",`${this.ME.localize("Enable/disable")} ${i}`),e.el().setAttribute("role","menuitemcheckbox"),e.selected(t.enabled)}SI(e){let t=super.SI(e);e4(t.el(),"theo-multi-view-menu-item"),2===this.wo.length&&e4(t.el(),"theo-multi-view-menu-item-position-zero");let i=m.createElement("span");t.u0=i;let r=m.createElement("div");r.className="theo-multi-view-menu-item-toggle",t.eib=r;let s=e=>this.ewe(e,t);t.ext=s,r.addEventListener("click",s);let n=m.createElement("div");return n.className="theo-multi-view-menu-item-toggle-slider",r.appendChild(n),t.el().appendChild(i),t.el().appendChild(r),this.e1I.before(t.el()),t}e1R(){let e=this.kk.addMenuItem().el();e4(e,"theo-multi-view-menu-item"),e4(e,"theo-multi-view-menu-layout-select");let t=m.createElement("button");t.className="vjs-icon-view-grid",t.addEventListener("click",()=>{this.az.layout="gallery"}),e.appendChild(t),this.e1V=t;let i=m.createElement("button");i.className="vjs-icon-view-spotlight",i.addEventListener("click",()=>{this.az.layout="spotlight"}),e.appendChild(i),this.e1D=i;let r=m.createElement("button");return r.className="vjs-icon-multi-view",r.addEventListener("click",()=>{this.az.layout="overlay"}),e.appendChild(r),this.e1j=r,e}ewe(e,t){e.stopImmediatePropagation(),this.SW(t)}SW(e){let t=e.elU;for(let e of this.az.views)e===t&&(e.enabled=!e.enabled);this.PC(e)}xh(e){e.eib.removeEventListener("click",e.ext),super.xh(e)}},hf=class extends aU{constructor(e,t){super(e,t),this.epo=void 0,this.minimumMenuItems=3,this.epo=new hy(this.menu,this.ot,e),this.controlText(e.localize("Views")),this.p1.v2=this.controlText()}buildCSSClass(){return`vjs-icon-view-grid ${super.buildCSSClass()}`}dispose(){this.epo.v1(),super.dispose()}};al.registerComponent("multiViewButton",hf),tg(eN.MULTIVIEW);export{ta as ChromelessPlayer,j as ErrorCategory,ey as ErrorCode,hv as MultiViewPlayer,lt as Player,ty as cache,te as cast,e5 as features,tr as players,t_ as registerContentProtectionIntegration,eH as utils,eD as version,al as videojs};
|