text: !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.Playable={})}(this,function(t){"use strict";var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,i)};function i(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}var n=function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function o(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s}function r(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n}var s,a=function(t){function e(e){var i=t.call(this,e)||this;return Object.defineProperty(i,"message",{enumerable:!1,value:e}),Object.defineProperty(i,"name",{enumerable:!1,value:i.constructor.name}),Error.captureStackTrace(i,i.constructor),i}return i(e,t),e}(Error),l=function(t){function e(e,i,n){return t.call(this,"The function "+e+" expected a "+i+", "+n+" given.")||this}return i(e,t),e}(a);!function(t){t.SINGLETON="singleton",t.TRANSIENT="transient",t.SCOPED="scoped"}(s||(s={}));var c=s,p="dependencies",h=function(t){var e=function(e){return t.lifetime=e,t};return{setLifetime:e,transient:function(){return e(c.TRANSIENT)},scoped:function(){return e(c.SCOPED)},singleton:function(){return e(c.SINGLETON)}}},u=function(t){return{resolve:function(){return t},lifetime:c.TRANSIENT}},_=function(t,e){if("function"!=typeof t)throw new l("asFunction","function",typeof t);var i={lifetime:c.TRANSIENT};e=n({},i,e);var o=y(t),r={resolve:o,lifetime:e.lifetime};return r.resolve=o.bind(r),n(r,h(r)),r},d=function(t,e){if("function"!=typeof t)throw new l("asClass","class",typeof t);var i={lifetime:c.TRANSIENT};e=n({},i,e);var o=y(function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new(t.bind.apply(t,r([void 0],e)))},t),s={resolve:o,lifetime:e.lifetime};return s.resolve=o.bind(s),n(s,h(s)),s};function y(t,e){e||(e=t);var i=e[p]||[];return function(e){if(i.length>0){var n=i.reduce(function(t,i){return t[i]=e.resolve(i),t},{});return t(n,e)}return t(e)}}var m={asValue:u,asFunction:_,asClass:d},f=function(t,e,i){(e=e.slice()).push(t);var n=e.join(" -> "),o="Could not resolve '"+t+"'.";return i&&(o+=" "+i+" \n\n Resolution path: "+n),o},v=function(t){function e(e,i,n){return t.call(this,f(e,i,n))||this}return i(e,t),e}(a);function b(t,e){var i;return"object"!=typeof t?n(((i={})[t]=e,i)):t}var g="__familyTree__",E=function(){function t(t,e){this._registrations={},this._resolutionStack=[],this.options=n({},t),this._parentContainer=e||null,this[g]=this._parentContainer?[this].concat(this._parentContainer[g]):[this],this.cache={}}return Object.defineProperty(t.prototype,"registrations",{get:function(){return n({},this._parentContainer&&this._parentContainer.registrations,this._registrations)},enumerable:!0,configurable:!0}),t.prototype._registerAs=function(t,e,i,o,r){var s=this,a=b(i,o);return Object.keys(a).forEach(function(i){var o=a[i];r=n({},r),!e&&Array.isArray(o)&&(r=n({},r,o[1]),o=o[0]),s.register(i,t(o,r))}),this},t.prototype.createScope=function(){return new t(this.options,this)},t.prototype.register=function(t,e){var i=this,n=b(t,e);return Object.keys(n).forEach(function(t){i._registrations[t]=n[t]}),this},t.prototype.registerClass=function(t,e,i){return this._registerAs(d,!1,t,e,i)},t.prototype.registerFunction=function(t,e,i){return this._registerAs(_,!1,t,e,i)},t.prototype.registerValue=function(t,e,i){return this._registerAs(u,!0,t,e,i)},t.prototype.resolve=function(t){var e=this[g][this[g].length-1];try{var i=this.registrations[t];if(this._resolutionStack.indexOf(t)>-1)throw new v(t,this._resolutionStack,"Cyclic dependencies detected.");if(!i)throw new v(t,this._resolutionStack);this._resolutionStack.push(t);var n=void 0,o=void 0;switch(i.lifetime){case c.TRANSIENT:o=i.resolve(this);break;case c.SINGLETON:void 0===(n=e.cache[t])?(o=i.resolve(this),e.cache[t]=o):o=n;break;case c.SCOPED:for(var r=0,s=this[g];r<s.length;r++){if(void 0!==(n=s[r].cache[t])){o=n;break}}void 0===n&&(o=i.resolve(this),this.cache[t]=o);break;default:throw new v(t,this._resolutionStack,'Unknown lifetime "'+i.lifetime+'"')}return this._resolutionStack.pop(),o}catch(t){throw this._resolutionStack=[],t}},t}();var w=n({createContainer:function(t,e){return new E(t,e)},Lifetime:c},m),k=/iphone/i,x=/ipod/i,S=/ipad/i,T=/(android)/i,C=/^((?!chrome|android).)*safari/i,A=function(){return!!window.MSStream},I=function(){return window.navigator&&window.navigator.userAgent},L=function(){return!A()&&k.test(I())},O=function(){return!A()&&x.test(I())},P=function(){return!A()&&S.test(I())},N=function(){return L()||O()||P()},M=function(){return T.test(I())},D=function(){return C.test(I())},R=function(t){return N()?function(t){return n(n({},t),{disableControlWithClickOnPlayer:!0,disableControlWithKeyboard:!0,hideMainUI:!0,nativeBrowserControls:!0})}(t):M()?function(t){return n(n({},t),{disableControlWithClickOnPlayer:!0,disableControlWithKeyboard:!0})}(t):t},B=function(t){return function(e,i,n){var o,r,s=t||i;if(e.___playerAPI||(e.___playerAPI={}),e.___playerAPI[s]&&(o=e.___playerAPI[s],r=n,o.value!==r.value||o.get!==r.get||o.set!==r.set))throw new Error('Method "'+s+'" for public API in '+e.constructor.name+" is already defined");e.___playerAPI[s]=n}},$=function(){function t(t,e,i,n,o){void 0===i&&(i=[]),void 0===n&&(n=[]),this._scope=e,this._scope.registerValue({config:R(t)}),this._scope.registerValue({themeConfig:o}),this._config=this._scope.resolve("config"),this._resolveAdditionalModules(n),this._resolveDefaultModules(i)}return t.prototype._resolveDefaultModules=function(t){var e=this;this._defaultModules=t.reduce(function(t,i){if(e._additionalModules[i])return t;var n=e._scope.resolve(i);return e._addPlayerAPIFromModule(n),t[i]=n,t},{})},t.prototype._resolveAdditionalModules=function(t){var e=this;this._additionalModules=t.reduce(function(t,i){var n=e._scope.resolve(i);return e._addPlayerAPIFromModule(n),t[i]=n,t},{})},t.prototype._getWrappedCallToModuleFunction=function(t,e){var i=this;return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(i._destroyed)throw new Error("Player instance is destroyed");return e.apply(t,n)}},t.prototype._getPlayerAPIMethodDescriptor=function(t,e){var i={enumerable:!0,configurable:!0},n=e.get,o=e.set,r=e.value;return n&&(i.get=this._getWrappedCallToModuleFunction(t,n)),o&&(i.set=this._getWrappedCallToModuleFunction(t,o)),r&&(i.value=this._getWrappedCallToModuleFunction(t,r),i.writable=!0),i},t.prototype._addPlayerAPIFromModule=function(t){var e=this;t.___playerAPI&&Object.keys(t.___playerAPI).forEach(function(i){if(e[i])throw new Error("API method "+i+" is already defined in Player facade");Object.defineProperty(e,i,e._getPlayerAPIMethodDescriptor(t,t.___playerAPI[i]))})},t.prototype._clearPlayerAPIForModule=function(t){var e=this;t.___playerAPI&&Object.keys(t.___playerAPI).forEach(function(t){delete e[t]})},t.prototype.destroy=function(){var t=this;Object.keys(this._defaultModules).forEach(function(e){var i=t._defaultModules[e];t._clearPlayerAPIForModule(i),i.destroy()}),Object.keys(this._additionalModules).forEach(function(e){var i=t._additionalModules[e];t._clearPlayerAPIForModule(i),i.destroy&&i.destroy()}),this._defaultModules=null,this._additionalModules=null,this._config=null,this._scope=null,this._destroyed=!0},t}(),F=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some(function(t,n){return t[0]===e&&(i=n,!0)}),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),n=this.__entries__[i];return n&&n[1]},e.prototype.set=function(e,i){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,n=t(i,e);~n&&i.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,n=this.__entries__;i<n.length;i++){var o=n[i];t.call(e,o[1],o[0])}},e}()}(),V="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,U="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),H="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(U):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},W=2;var Y=20,z=["top","right","bottom","left","width","height","size","weight"],j="undefined"!=typeof MutationObserver,K=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var i=!1,n=!1,o=0;function r(){i&&(i=!1,t()),n&&a()}function s(){H(r)}function a(){var t=Date.now();if(i){if(t-o<W)return;n=!0}else i=!0,n=!1,setTimeout(s,e);o=t}return a}(this.refresh.bind(this),Y)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,i=e.indexOf(t);~i&&e.splice(i,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},t.prototype.connect_=function(){V&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),j?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){V&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;z.some(function(t){return!!~i.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),G=function(t,e){for(var i=0,n=Object.keys(e);i<n.length;i++){var o=n[i];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},q=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||U},X=it(0,0,0,0);function J(t){return parseFloat(t)||0}function Z(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return e.reduce(function(e,i){return e+J(t["border-"+i+"-width"])},0)}function Q(t){var e=t.clientWidth,i=t.clientHeight;if(!e&&!i)return X;var n=q(t).getComputedStyle(t),o=function(t){for(var e={},i=0,n=["top","right","bottom","left"];i<n.length;i++){var o=n[i],r=t["padding-"+o];e[o]=J(r)}return e}(n),r=o.left+o.right,s=o.top+o.bottom,a=J(n.width),l=J(n.height);if("border-box"===n.boxSizing&&(Math.round(a+r)!==e&&(a-=Z(n,"left","right")+r),Math.round(l+s)!==i&&(l-=Z(n,"top","bottom")+s)),!function(t){return t===q(t).document.documentElement}(t)){var c=Math.round(a+r)-e,p=Math.round(l+s)-i;1!==Math.abs(c)&&(a-=c),1!==Math.abs(p)&&(l-=p)}return it(o.left,o.top,a,l)}var tt="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof q(t).SVGGraphicsElement}:function(t){return t instanceof q(t).SVGElement&&"function"==typeof t.getBBox};function et(t){return V?tt(t)?function(t){var e=t.getBBox();return it(0,0,e.width,e.height)}(t):Q(t):X}function it(t,e,i,n){return{x:t,y:e,width:i,height:n}}var nt=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=it(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=et(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),ot=function(){return function(t,e){var i,n,o,r,s,a,l,c=(n=(i=e).x,o=i.y,r=i.width,s=i.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(a.prototype),G(l,{x:n,y:o,width:r,height:s,top:o,right:n+r,bottom:s+o,left:n}),l);G(this,{target:t,contentRect:c})}}(),rt=function(){function t(t,e,i){if(this.activeObservations_=[],this.observations_=new F,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=i}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof q(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new nt(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof q(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new ot(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),st="undefined"!=typeof WeakMap?new WeakMap:new F,at=function(){return function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=K.getInstance(),n=new rt(e,i,this);st.set(this,n)}}();["observe","unobserve","disconnect"].forEach(function(t){at.prototype[t]=function(){var e;return(e=st.get(this))[t].apply(e,arguments)}});var lt=void 0!==U.ResizeObserver?U.ResizeObserver:at,ct=0,pt=0,ht=["touchstart","pointerdown","MSPointerDown","mousedown"],ut=["touchend","touchcancel","pointerup","MSPointerUp","pointercancel","MSPointerCancel","mouseup"];function _t(){ct=0,pt=0}function dt(t){!1!==t.isPrimary&&(ct+=1)}function yt(t){!1!==t.isPrimary&&(t.touches?ct=t.touches.length:(window.setImmediate||window.setTimeout)(function(){ct=Math.max(ct-1,0)}))}function mt(t){switch(t.keyCode||t.which){case 16:case 17:case 18:case 91:case 93:return}pt+=1}function ft(t){switch(t.keyCode||t.which){case 16:case 17:case 18:case 91:case 93:return}(window.setImmediate||window.setTimeout)(function(){pt=Math.max(pt-1,0)})}function vt(){return{pointer:Boolean(ct),key:Boolean(pt)}}var bt,gt={engage:function(){return window.addEventListener("blur",_t,!1),document.documentElement.addEventListener("keydown",mt,!0),document.documentElement.addEventListener("keyup",ft,!0),ht.forEach(function(t){document.documentElement.addEventListener(t,dt,!0)}),ut.forEach(function(t){document.documentElement.addEventListener(t,yt,!0)}),{get:vt}},disengage:function(){ct=pt=0,window.removeEventListener("blur",_t,!1),document.documentElement.removeEventListener("keydown",mt,!0),document.documentElement.removeEventListener("keyup",ft,!0),ht.forEach(function(t){document.documentElement.removeEventListener(t,dt,!0)}),ut.forEach(function(t){document.documentElement.removeEventListener(t,yt,!0)})}},Et="undefined"!=typeof document&&"onfocusin"in document,wt=Et?"focusin":"focus",kt=Et?"focusout":"blur",xt=null,St=null,Tt={pointer:!1,key:!1,script:!1,initial:!1};function Ct(t){var e="";if(t.type===wt){var i=bt.get();e=St||i.pointer&&"pointer"||i.key&&"key"||"script"}else"initial"===t.type&&(e="initial");document.documentElement.setAttribute("data-playable-focus-source",e),t.type!==kt&&(Tt[e]=!0,xt=e)}function At(){return xt}function It(t){return Tt[t]}function Lt(t){St=t}function Ot(){St=!1}var Pt={engage:function(){return document.documentElement.addEventListener(wt,Ct,!0),document.documentElement.addEventListener(kt,Ct,!0),bt=gt.engage(),Ct({type:"initial"}),{used:It,current:At,lock:Lt,unlock:Ot}},disengage:function(){Ct({type:kt}),xt=St=null,Object.keys(Tt).forEach(function(t){Tt[t]=!1}),gt.disengage(),document.documentElement.removeEventListener(wt,Ct,!0),document.documentElement.removeEventListener(kt,Ct,!0),document.documentElement.removeAttribute("data-playable-focus-source")}},Nt="undefined"!=typeof window&&window.document&&"unknown"!=typeof window.document.activeElement;var Mt,Dt=function(t,e,i){var n,o,r,s,a=(s=function(){var s,a=Nt?document.activeElement:null;if(n=!1,o!==a){if(o=a,s=t,Array.prototype.slice.call(s.getElementsByClassName("focus-within")).forEach(function(t){t.classList.remove("focus-within")}),!t.contains(a))return void(r&&(r=!1,i()));r||(r=!0,e()),function(t,e){for(var i=e;i!==t&&void 0!==i.classList;)i.classList.add("focus-within"),i=i.parentNode}(t,a)}},function(){n||(requestAnimationFrame(s),n=!0)});return t.addEventListener("focus",a,!0),t.addEventListener("blur",a,!0),a(),function(){t.removeEventListener("focus",a,!0),t.removeEventListener("blur",a,!0)}};(Mt=t.MEDIA_STREAM_TYPES||(t.MEDIA_STREAM_TYPES={})).MP4="MP4",Mt.WEBM="WEBM",Mt.HLS="HLS",Mt.DASH="DASH",Mt.OGG="OGG",Mt.MOV="MOV",Mt.MKV="MKV";var Rt,Bt,$t={"application/x-mpegURL":t.MEDIA_STREAM_TYPES.HLS,"application/vnd.apple.mpegURL":t.MEDIA_STREAM_TYPES.HLS,"application/dash+xml":t.MEDIA_STREAM_TYPES.DASH,"video/mp4":t.MEDIA_STREAM_TYPES.MP4,"video/x-mp4":t.MEDIA_STREAM_TYPES.MP4,"x-video/mp4":t.MEDIA_STREAM_TYPES.MP4,"video/webm":t.MEDIA_STREAM_TYPES.WEBM,"video/ogg":t.MEDIA_STREAM_TYPES.OGG,"video/quicktime":t.MEDIA_STREAM_TYPES.MOV,"video/x-matroska":t.MEDIA_STREAM_TYPES.MKV};(Rt=t.MEDIA_STREAM_DELIVERY_PRIORITY||(t.MEDIA_STREAM_DELIVERY_PRIORITY={}))[Rt.NATIVE_PROGRESSIVE=0]="NATIVE_PROGRESSIVE",Rt[Rt.ADAPTIVE_VIA_MSE=1]="ADAPTIVE_VIA_MSE",Rt[Rt.NATIVE_ADAPTIVE=2]="NATIVE_ADAPTIVE",Rt[Rt.FORCED=3]="FORCED",function(t){t.PLAY_CLICK="ui-events/play-click",t.PLAY_OVERLAY_CLICK="ui-events/play-overlay-click",t.PAUSE_CLICK="ui-events/pause-click",t.PROGRESS_CHANGE="ui-events/progress-change",t.PROGRESS_DRAG_STARTED="ui-events/progress-drag-started",t.PROGRESS_DRAG_ENDED="ui-events/progress-drag-ended",t.PROGRESS_SYNC_BUTTON_MOUSE_ENTER="ui-events/progress-sync-button-mouse-enter",t.PROGRESS_SYNC_BUTTON_MOUSE_LEAVE="ui-events/progress-sync-button-mouse-leave",t.PROGRESS_USER_PREVIEWING_FRAME="ui-events/progress-user-previewing-frame",t.VOLUME_CHANGE="ui-events/volume-change",t.MUTE_CLICK="ui-events/mute-click",t.UNMUTE_CLICK="ui-events/unmute-click",t.ENTER_FULL_SCREEN_CLICK="ui-events/enter-full-screen-click",t.EXIT_FULL_SCREEN_CLICK="ui-events/exit-full-screen-click",t.ENTER_PICTURE_IN_PICTURE_CLICK="ui-events/enter-picture-in-picture-click",t.EXIT_PICTURE_IN_PICTURE_CLICK="ui-events/exit-picture-in-picture-click",t.MOUSE_ENTER_ON_PLAYER="ui-events/mouse-enter-on-player",t.MOUSE_MOVE_ON_PLAYER="ui-events/mouse-move-on-player",t.MOUSE_LEAVE_ON_PLAYER="ui-events/mouse-leave-on-player",t.FOCUS_ENTER_ON_PLAYER="ui-events/focus-enter-on-player",t.FOCUS_LEAVE_ON_PLAYER="ui-events/focus-leave-on-player",t.MAIN_BLOCK_HIDE="ui-events/main-block-hide",t.MAIN_BLOCK_SHOW="ui-events/main-block-show",t.LOADER_SHOW="ui-events/loader-show",t.LOADER_HIDE="ui-events/loader-hide",t.LOADING_COVER_SHOW="ui-events/loading-cover-show",t.LOADING_COVER_HIDE="ui-events/loading-cover-hide",t.TOGGLE_PLAYBACK_WITH_KEYBOARD="ui-events/toggle-playback-with-keyboard",t.GO_BACKWARD_WITH_KEYBOARD="ui-events/go-backward-with-keyboard",t.GO_FORWARD_WITH_KEYBOARD="ui-events/go-forward-with-keyboard",t.INCREASE_VOLUME_WITH_KEYBOARD="ui-events/increase-volume-with-keyboard",t.DECREASE_VOLUME_WITH_KEYBOARD="ui-events/decrease-volume-with-keyboard",t.MUTE_WITH_KEYBOARD="ui-events/mute-with-keyboard",t.UNMUTE_WITH_KEYBOARD="ui-events/unmute-with-keyboard",t.HIDE_INTERACTION_INDICATOR="ui-events/hide-interaction-indicator",t.PLAY_WITH_SCREEN_CLICK="ui-events/play-with-screen-click",t.PAUSE_WITH_SCREEN_CLICK="ui-events/pause-with-screen-click",t.ENTER_FULL_SCREEN_WITH_SCREEN_CLICK="ui-events/enter-full-screen-with-screen-click",t.EXIT_FULL_SCREEN_WITH_SCREEN_CLICK="ui-events/exit-full-screen-with-screen-click",t.CONTROL_DRAG_START="ui-events/control-drag-start",t.CONTROL_DRAG_END="ui-events/control-drag-end",t.KEYBOARD_KEYDOWN_INTERCEPTED="ui-events/keyboard-keydown-intercepted",t.FULL_SCREEN_STATE_CHANGED="ui-events/full-screen-state-changed",t.PICTURE_IN_PICTURE_STATUS_CHANGE="ui-events/picture-in-picture-status-changed",t.RESIZE="ui-events/resize"}(Bt||(Bt={}));var Ft,Vt=Bt;!function(t){t.ERROR="video-events/error",t.STATE_CHANGED="video-events/state-changed",t.LIVE_STATE_CHANGED="video-events/live-state-changed",t.DYNAMIC_CONTENT_ENDED="video-events/dynamic-content-ended",t.CHUNK_LOADED="video-events/chunk-loaded",t.CURRENT_TIME_UPDATED="video-events/current-time-updated",t.DURATION_UPDATED="video-events/duration-updated",t.SOUND_STATE_CHANGED="video-events/sound-state-changed",t.VOLUME_CHANGED="video-events/volume-changed",t.MUTE_CHANGED="video-events/mute-changed",t.SEEK_IN_PROGRESS="video-events/seek-in-progress",t.UPLOAD_STALLED="video-events/upload-stalled",t.UPLOAD_SUSPEND="video-events/upload-suspend",t.PLAY_REQUEST="video-events/play-request",t.PLAY_ABORTED="video-events/play-aborted",t.RESET="video-events/reset-playback"}(Ft||(Ft={}));var Ut,Ht=Ft;!function(t){t.SRC_PARSE="error-src-parse",t.MANIFEST_LOAD="error-manifest-load",t.MANIFEST_PARSE="error-manifest-parse",t.MANIFEST_INCOMPATIBLE="error-manifest-incompatible",t.LEVEL_LOAD="error-level-load",t.CONTENT_LOAD="error-content-load",t.CONTENT_PARSE="error-content-parse",t.MEDIA="error-media",t.UNKNOWN="error-unknown"}(Ut||(Ut={}));var Wt,Yt=Ut;!function(t){t.LOGO_LABEL="logo-label",t.LOGO_TOOLTIP="logo-tooltip",t.LIVE_INDICATOR_TEXT="live-indicator-text",t.LIVE_SYNC_LABEL="live-sync-button-label",t.LIVE_SYNC_TOOLTIP="live-sync-button-tooltip",t.ENTER_FULL_SCREEN_LABEL="enter-full-screen-label",t.ENTER_FULL_SCREEN_TOOLTIP="enter-full-screen-tooltip",t.EXIT_FULL_SCREEN_LABEL="exit-full-screen-label",t.EXIT_FULL_SCREEN_TOOLTIP="exit-full-screen-tooltip",t.ENTER_PICTURE_IN_PICTURE_LABEL="enter-picture-in-picture-button-label",t.ENTER_PICTURE_IN_PICTURE_TOOLTIP="enter-picture-in-picture-button-tooltip",t.EXIT_PICTURE_IN_PICTURE_LABEL="exit-picture-in-picture-button-label",t.EXIT_PICTURE_IN_PICTURE_TOOLTIP="exit-picture-in-picture-button-tooltip",t.PLAY_CONTROL_LABEL="play-control-label",t.PAUSE_CONTROL_LABEL="pause-control-label",t.PROGRESS_CONTROL_LABEL="progress-control-label",t.PROGRESS_CONTROL_VALUE="progress-control-value",t.UNMUTE_CONTROL_LABEL="unmute-control-label",t.UNMUTE_CONTROL_TOOLTIP="unmute-control-label",t.MUTE_CONTROL_LABEL="mute-control-label",t.MUTE_CONTROL_TOOLTIP="mute-control-tooltip",t.VOLUME_CONTROL_LABEL="volume-control-label",t.VOLUME_CONTROL_VALUE="volume-control-value",t.DOWNLOAD_BUTTON_LABEL="download-button-label",t.DOWNLOAD_BUTTON_TOOLTIP="download-button-tooltip"}(Wt||(Wt={}));var zt,jt=Wt;!function(t){t.SRC_SET="engine-state/src-set",t.LOAD_STARTED="engine-state/load-started",t.METADATA_LOADED="engine-state/metadata-loaded",t.READY_TO_PLAY="engine-state/ready-to-play",t.SEEK_IN_PROGRESS="engine-state/seek-in-progress",t.PLAY_REQUESTED="engine-state/play-requested",t.WAITING="engine-state/waiting",t.PLAYING="engine-state/playing",t.PAUSED="engine-state/paused",t.ENDED="engine-state/ended"}(zt||(zt={}));var Kt,Gt=zt;!function(t){t.NONE="live-state/none",t.INITIAL="live-state/initial",t.NOT_SYNC="live-state/not-sync",t.SYNC="live-state/sync",t.ENDED="live-state/ended"}(Kt||(Kt={}));var qt=Kt;function Xt(t){if(!t)throw new Error("HTML provided to htmlToElement is empty");var e=document.createElement("div");if(e.innerHTML=t.trim(),e.childElementCount>1)throw new Error("HTML provided to htmlToElement doesn't have root element");return e.firstChild}function Jt(t,e){return t(e={exports:{}},e.exports),e.exports}var Zt=Jt(function(t){!function(){var e={}.hasOwnProperty;function i(){for(var t=[],n=0;n<arguments.length;n++){var o=arguments[n];if(o){var r=typeof o;if("string"===r||"number"===r)t.push(o);else if(Array.isArray(o)&&o.length){var s=i.apply(null,o);s&&t.push(s)}else if("object"===r)for(var a in o)e.call(o,a)&&o[a]&&t.push(a)}}return t.join(" ")}t.exports?(i.default=i,t.exports=i):window.classNames=i}()});var Qt=function(){function t(t){this._themeStyles={};var e=this.constructor._moduleTheme;t&&e&&(t.registerModuleTheme(this,e),this._themeStyles=t.get(this))}return t.setTheme=function(t){this._moduleTheme=t},t.extendStyleNames=function(t){this._styles=function(t,e){var i=n({},t);return Object.keys(e).forEach(function(t){i[t]=i[t]?Zt(i[t],e[t]):e[t]}),i}(this._styles,t)},t.resetStyles=function(){this._styles={}},Object.defineProperty(t.prototype,"themeStyles",{get:function(){return this._themeStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"styleNames",{get:function(){return this.constructor._styles||{}},enumerable:!0,configurable:!0}),t._styles={},t}(),te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(Qt);function ee(t,e){void 0===e&&(e={});var i=e.insertAt;if(t&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===i&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}ee(".__3nLjS{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;cursor:pointer;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:opacity;transition-property:opacity;opacity:1;border:0;border-radius:0;outline:none;background-color:transparent;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__3nLjS:hover{opacity:.7}.__10ZXK{visibility:hidden!important;width:0!important;min-width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important}.___RXkJ{font-family:HelveticaNeueW01-45Ligh,HelveticaNeueW02-45Ligh,HelveticaNeueW10-45Ligh,Helvetica Neue,Helvetica,Arial,\\\\30e1\\30a4\\30ea\\30aa,meiryo,\\\\30d2\\30e9\\30ae\\30ce\\89d2\\30b4 pro w3,hiragino kaku gothic pro;position:relative;z-index:0;display:block;overflow:hidden;height:inherit;outline:none}.___RXkJ button{font-family:inherit;font-size:100%;line-height:1.15;overflow:visible;margin:0;text-transform:none;-webkit-appearance:button}.___RXkJ button::-moz-focus-inner{padding:0;border-style:none}.___RXkJ button:-moz-focusring{outline:1px dotted ButtonText}[data-playable-hook=player-container].___RXkJ [data-playable-component],[data-playable-hook=player-container].___RXkJ [data-playable-component] *,[data-playable-hook=player-container].___RXkJ [data-playable-component] :after,[data-playable-hook=player-container].___RXkJ [data-playable-component] :before{-webkit-box-sizing:content-box!important;box-sizing:content-box!important;outline:none!important}.__3oMwD,.__33wu6{width:100%!important;min-width:100%!important;height:100%!important;min-height:100%!important}[data-playable-focus-source=key] [data-playable-hook=player-container] button.focus-within,[data-playable-focus-source=key] [data-playable-hook=player-container] img.focus-within,[data-playable-focus-source=key] [data-playable-hook=player-container] input.focus-within,[data-playable-focus-source=script] [data-playable-hook=player-container] button.focus-within,[data-playable-focus-source=script] [data-playable-hook=player-container] img.focus-within,[data-playable-focus-source=script] [data-playable-hook=player-container] input.focus-within{-webkit-box-shadow:0 0 0 2px rgba(56,153,236,.8);box-shadow:0 0 0 2px rgba(56,153,236,.8)}");var ie=function(t){function e(e){var i,n=t.call(this)||this,o=e.width,r=e.height,s=e.fillAllSpace,a=e.callbacks,l=e.rtl;return n._callbacks=a,n._$rootElement=Xt('<div data-playable-hook="player-container" dir="ltr" data-playable-dir="'+(i={styles:n.styleNames}).direction+'" tabindex="0" class="'+i.styles.container+'"></div>'),n.setFillAllSpaceFlag(s),n.setRtl(l),n.setWidth(o),n.setHeight(r),n._bindEvents(),n}return i(e,t),e.prototype._bindEvents=function(){this._$rootElement.addEventListener("mouseenter",this._callbacks.onMouseEnter),this._$rootElement.addEventListener("mousemove",this._callbacks.onMouseMove),this._$rootElement.addEventListener("mouseleave",this._callbacks.onMouseLeave)},e.prototype._unbindEvents=function(){this._$rootElement.removeEventListener("mouseenter",this._callbacks.onMouseEnter),this._$rootElement.removeEventListener("mousemove",this._callbacks.onMouseMove),this._$rootElement.removeEventListener("mouseleave",this._callbacks.onMouseLeave)},e.prototype.setWidth=function(t){if(t){var e=t+"px";this._$rootElement.style.width=e,this._$rootElement.style.minWidth=e}},e.prototype.setHeight=function(t){if(t){var e=t+"px";this._$rootElement.style.height=e,this._$rootElement.style.minHeight=e}},e.prototype.getWidth=function(){return this._$rootElement.offsetWidth},e.prototype.getHeight=function(){return this._$rootElement.offsetHeight},e.prototype.show=function(){this._$rootElement.classList.remove(this.styleNames.hidden)},e.prototype.hide=function(){this._$rootElement.classList.add(this.styleNames.hidden)},e.prototype.appendComponentElement=function(t){this._$rootElement.appendChild(t)},e.prototype.getElement=function(){return this._$rootElement},e.prototype.setFullScreenState=function(t){t?(this._$rootElement.setAttribute("data-playable-in-full-screen","true"),this._$rootElement.classList.add(this.styleNames.fullScreen)):(this._$rootElement.setAttribute("data-playable-in-full-screen","false"),this._$rootElement.classList.remove(this.styleNames.fullScreen))},e.prototype.setFillAllSpaceFlag=function(t){void 0===t&&(t=!1),t?this._$rootElement.classList.add(this.styleNames.fillAllSpace):this._$rootElement.classList.remove(this.styleNames.fillAllSpace)},e.prototype.setRtl=function(t){this._$rootElement.setAttribute("data-playable-dir",t?"rtl":"ltr")},e.prototype.destroy=function(){this._unbindEvents(),this._$rootElement.parentNode&&this._$rootElement.parentNode.removeChild(this._$rootElement),this._$rootElement=null},e}(te);function ne(t,e,i){return Array.prototype.reduce.call(t,e,i)}function oe(t,e,i){for(var n=e.exec(t);null!==n;)i(n),n=e.exec(t)}ie.extendStyleNames({controlButton:"__3nLjS",hidden:"__10ZXK",container:"___RXkJ",fillAllSpace:"__33wu6",fullScreen:"__3oMwD"});var re,se=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector"];if("undefined"!=typeof HTMLElement)for(var ae=0;ae<se.length&&!(re=Element.prototype[se[ae]]);ae++);var le=re?function(t,e){return re.call(t,e)}:function(t,e){return-1!==Array.prototype.indexOf.call(document.querySelectorAll(e),t)},ce=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:[a-z-]+-)?(?:min|max)-width[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,pe=/\[[\s\t]*?(?:([a-z-]+)-)?(min|max)-width[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function he(t){var e=[];return-1===t.indexOf("min-width")&&-1===t.indexOf("max-width")?[]:(oe(t=t.replace(/'/g,'"'),ce,function(t){var i=t.slice(1),n=i[0],o=i[1],r=n+i[2];oe(o,pe,function(t){var i=t.slice(1),n=i[0],o=void 0===n?"":n,s=i[1],a=i[2];e.push({selector:r,prefix:o,mode:s,width:parseInt(a,10)})})}),e)}function ue(){return ne(document.styleSheets,function(t,e){try{var i=e.cssRules||e.rules;if(i)return t.concat(function(t){return ne(t,function(t,e){if(1===e.type){var i=e.selectorText||e.cssText;return t.concat(he(i))}return t},[])}(i));if(e.cssText)return t.concat(he(e.cssText))}catch(t){}return t},[])}var _e="data-playable",de=function(){function t(t,e){var i=(void 0===e?{}:e).prefix,n=void 0===i?_e:i;this._element=t,this._queryPrefix=n,this._queries=[]}return t.prototype._getQueryAttributeValue=function(t,e){return this._queries.filter(function(i){return i.mode===t&&("max"===t&&i.width>=e||"min"===t&&i.width<=e)}).map(function(t){return t.width+"px"}).join(" ")},t.prototype._setQueryAttribute=function(t,e){var i=this._queryPrefix?this._queryPrefix+"-"+t+"-width":t+"-width",n=this._getQueryAttributeValue(t,e);n?this._element.setAttribute(i,n):this._element.removeAttribute(i)},t.prototype.getQueries=function(){this._queries=function(t,e){void 0===e&&(e="");var i=new Map,n=[];return ue().forEach(function(o){i.has(o.selector)||i.set(o.selector,le(t,o.selector)),i.get(o.selector)&&(o.prefix!==e||n.some(function(t){return t.mode===o.mode&&t.width===o.width})||n.push({mode:o.mode,width:o.width}))}),n.sort(function(t,e){return t.width-e.width})}(this._element,this._queryPrefix)},t.prototype.setWidth=function(t){this._setQueryAttribute("min",t),this._setQueryAttribute("max",t)},t.prototype.destroy=function(){this._element=null},t}(),ye=!1,me=!1,fe=function(){function t(t){var e=t.eventEmitter,i=t.config;this._eventEmitter=e,this.isHidden=!1,this._bindCallbacks(),this._initUI(i),this._bindEvents()}return t.prototype.getElement=function(){return this.view.getElement()},t.prototype._bindCallbacks=function(){this._onResized=this._onResized.bind(this),this._broadcastMouseEnter=this._broadcastMouseEnter.bind(this),this._broadcastMouseMove=this._broadcastMouseMove.bind(this),this._broadcastMouseLeave=this._broadcastMouseLeave.bind(this),this._broadcastFocusEnter=this._broadcastFocusEnter.bind(this),this._broadcastFocusLeave=this._broadcastFocusLeave.bind(this)},t.prototype._bindEvents=function(){this._unbindEvents=this._eventEmitter.bindEvents([[Vt.FULL_SCREEN_STATE_CHANGED,this.view.setFullScreenState,this.view]],this)},t.prototype._initUI=function(t){this.view=new ie({callbacks:{onMouseEnter:this._broadcastMouseEnter,onMouseLeave:this._broadcastMouseLeave,onMouseMove:this._broadcastMouseMove},width:t.width||null,height:t.height||null,fillAllSpace:t.fillAllSpace||ye,rtl:t.rtl||me}),this._elementQueries=new de(this.getElement()),this._resizeObserver=new lt(this._onResized),this._resizeObserver.observe(this.getElement())},t.prototype.appendComponentElement=function(t){this.view.appendComponentElement(t)},t.prototype._broadcastMouseEnter=function(){this._eventEmitter.emitAsync(Vt.MOUSE_ENTER_ON_PLAYER)},t.prototype._broadcastMouseMove=function(){this._eventEmitter.emitAsync(Vt.MOUSE_MOVE_ON_PLAYER)},t.prototype._broadcastMouseLeave=function(){this._eventEmitter.emitAsync(Vt.MOUSE_LEAVE_ON_PLAYER)},t.prototype._broadcastFocusEnter=function(){this._eventEmitter.emitAsync(Vt.FOCUS_ENTER_ON_PLAYER)},t.prototype._broadcastFocusLeave=function(){this._eventEmitter.emitAsync(Vt.FOCUS_LEAVE_ON_PLAYER)},t.prototype._enableFocusInterceptors=function(){this._disengageFocusWithin||(this._disengageFocusWithin=Dt(this.getElement(),this._broadcastFocusEnter,this._broadcastFocusLeave)),this._disengageFocusSource||(Pt.engage(),this._disengageFocusSource=Pt.disengage)},t.prototype._disableFocusInterceptors=function(){this._disengageFocusSource&&(this._disengageFocusSource(),this._disengageFocusSource=null),this._disengageFocusWithin&&(this._disengageFocusWithin(),this._disengageFocusWithin=null)},t.prototype._onResized=function(){var t=this.view.getWidth(),e=this.view.getHeight();this._elementQueries.setWidth(t),this._eventEmitter.emitAsync(Vt.RESIZE,{width:t,height:e})},t.prototype.attachToElement=function(t){this._enableFocusInterceptors(),t.appendChild(this.getElement()),this._elementQueries.getQueries()},t.prototype.setWidth=function(t){this.view.setWidth(t)},t.prototype.getWidth=function(){return this.view.getWidth()},t.prototype.setHeight=function(t){this.view.setHeight(t)},t.prototype.getHeight=function(){return this.view.getHeight()},t.prototype.setFillAllSpace=function(t){this.view.setFillAllSpaceFlag(t)},t.prototype.setRtl=function(t){this.view.setRtl(t)},t.prototype.hide=function(){this.isHidden=!0,this.view.hide()},t.prototype.show=function(){this.isHidden=!1,this.view.show()},t.prototype.destroy=function(){this._unbindEvents(),this._disableFocusInterceptors(),this._resizeObserver.unobserve(this.getElement()),this._elementQueries.destroy(),this.view.destroy()},t.moduleName="rootContainer",t.dependencies=["eventEmitter","config"],o([B()],t.prototype,"getElement",null),o([B()],t.prototype,"attachToElement",null),o([B()],t.prototype,"setWidth",null),o([B()],t.prototype,"getWidth",null),o([B()],t.prototype,"setHeight",null),o([B()],t.prototype,"getHeight",null),o([B()],t.prototype,"setFillAllSpace",null),o([B()],t.prototype,"setRtl",null),o([B()],t.prototype,"hide",null),o([B()],t.prototype,"show",null),t}(),ve=Jt(function(t){var e=Object.prototype.hasOwnProperty,i="~";function n(){}function o(t,e,n,o,r){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new function(t,e,i){this.fn=t,this.context=e,this.once=i||!1}(n,o||t,r),a=i?i+e:e;return t._events[a]?t._events[a].fn?t._events[a]=[t._events[a],s]:t._events[a].push(s):(t._events[a]=s,t._eventsCount++),t}function r(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(i=!1)),s.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(i?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},s.prototype.listeners=function(t){var e=i?i+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,r=n.length,s=new Array(r);o<r;o++)s[o]=n[o].fn;return s},s.prototype.listenerCount=function(t){var e=i?i+t:t,n=this._events[e];return n?n.fn?1:n.length:0},s.prototype.emit=function(t,e,n,o,r,s){var a=i?i+t:t;if(!this._events[a])return!1;var l,c,p=this._events[a],h=arguments.length;if(p.fn){switch(p.once&&this.removeListener(t,p.fn,void 0,!0),h){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,e),!0;case 3:return p.fn.call(p.context,e,n),!0;case 4:return p.fn.call(p.context,e,n,o),!0;case 5:return p.fn.call(p.context,e,n,o,r),!0;case 6:return p.fn.call(p.context,e,n,o,r,s),!0}for(c=1,l=new Array(h-1);c<h;c++)l[c-1]=arguments[c];p.fn.apply(p.context,l)}else{var u,_=p.length;for(c=0;c<_;c++)switch(p[c].once&&this.removeListener(t,p[c].fn,void 0,!0),h){case 1:p[c].fn.call(p[c].context);break;case 2:p[c].fn.call(p[c].context,e);break;case 3:p[c].fn.call(p[c].context,e,n);break;case 4:p[c].fn.call(p[c].context,e,n,o);break;default:if(!l)for(u=1,l=new Array(h-1);u<h;u++)l[u-1]=arguments[u];p[c].fn.apply(p[c].context,l)}}return!0},s.prototype.on=function(t,e,i){return o(this,t,e,i,!1)},s.prototype.once=function(t,e,i){return o(this,t,e,i,!0)},s.prototype.removeListener=function(t,e,n,o){var s=i?i+t:t;if(!this._events[s])return this;if(!e)return r(this,s),this;var a=this._events[s];if(a.fn)a.fn!==e||o&&!a.once||n&&a.context!==n||r(this,s);else{for(var l=0,c=[],p=a.length;l<p;l++)(a[l].fn!==e||o&&!a[l].once||n&&a[l].context!==n)&&c.push(a[l]);c.length?this._events[s]=1===c.length?c[0]:c:r(this,s)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&r(this,e)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=i,s.EventEmitter=s,t.exports=s}).EventEmitter,be=!!function(){if("undefined"!=typeof global)return global;if("undefined"!=typeof window)return window;throw new Error("unable to locate global object")}().Promise,ge=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.on=function(e,i,n){return t.prototype.on.call(this,e,i,n)},e.prototype.once=function(e,i,n){return t.prototype.once.call(this,e,i,n)},e.prototype.off=function(e,i,n,o){return t.prototype.off.call(this,e,i,n,o)},e.prototype.bindEvents=function(t,e){var i=this,n=[];return t.forEach(function(t){var o=t[0],r=t[1],s=t[2],a=void 0===s?e:s;i.on(o,r,a),n.push(function(){i.off(o,r,a)})}),function(){n.forEach(function(t){t()})}},e.prototype.emitAsync=function(e){for(var i=this,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(be)return Promise.resolve().then(function(){return t.prototype.emit.apply(i,r([e],n))});setImmediate?setImmediate(function(){return t.prototype.emit.apply(i,r([e],n))}):setTimeout(function(){return t.prototype.emit.apply(i,r([e],n))})},e.prototype.destroy=function(){this.removeAllListeners()},e.moduleName="eventEmitter",o([B()],e.prototype,"on",null),o([B()],e.prototype,"once",null),o([B()],e.prototype,"off",null),e}(ve),Ee=function(){function t(t){var e=t.eventEmitter,i=t.nativeOutput,n=t.config;this._eventEmitter=e,this._config=n,this._defaultOutput=i,this._output=i,this._applyConfig(this._config)}return t.prototype._applyConfig=function(t){void 0===t&&(t={});var e=t.preload,i=t.autoplay,n=t.loop,o=t.muted,r=t.volume,s=t.playsinline,a=t.crossOrigin,l=t.src;this.setPreload(e),this.setAutoplay(i),this.setLoop(n),this.setMute(o),this.setVolume(r),this.setPlaysinline(s),this.setCrossOrigin(a),l&&this.setSrc(l)},t.prototype.getElement=function(){return this._output.getElement()},Object.defineProperty(t.prototype,"isDynamicContent",{get:function(){return this._output.isDynamicContent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDynamicContentEnded",{get:function(){return this._output.isDynamicContentEnded},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSeekAvailable",{get:function(){return this._output.isSeekAvailable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isMetadataLoaded",{get:function(){return this._output.isMetadataLoaded},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPreloadActive",{get:function(){return this._output.isPreloadActive},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAutoPlayActive",{get:function(){return this._output.isAutoPlayActive},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSyncWithLive",{get:function(){return this._output.isSyncWithLive},enumerable:!0,configurable:!0}),t.prototype.setSrc=function(t,e){t!==this.getSrc()&&this._output.setSrc(t,e)},t.prototype.getSrc=function(){return this._output.src},t.prototype.reset=function(){this.pause(),this.seekTo(0),this._eventEmitter.emitAsync(Ht.RESET)},t.prototype.play=function(){this._output.play()},t.prototype.pause=function(){this._output.pause()},t.prototype.togglePlayback=function(){this.isPaused?this.play():this.pause()},t.prototype.resetPlayback=function(){this.pause(),this.seekTo(0),this._eventEmitter.emitAsync(Ht.RESET)},Object.defineProperty(t.prototype,"isPaused",{get:function(){return this._output.isPaused},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEnded",{get:function(){return this._output.isEnded},enumerable:!0,configurable:!0}),t.prototype.syncWithLive=function(){this._output.syncWithLive()},t.prototype.seekForward=function(t){var e=this.getDuration();if(e){var i=this.getCurrentTime();this.seekTo(Math.min(i+t,e))}},t.prototype.seekBackward=function(t){if(this.getDuration()){var e=this.getCurrentTime();this.seekTo(Math.max(e-t,0))}},t.prototype.setVolume=function(t){var e=Number(t),i=isNaN(e)?1:Math.max(0,Math.min(Number(t)/100,1));this._output.setVolume(i)},t.prototype.getVolume=function(){return 100*this._output.volume},t.prototype.increaseVolume=function(t){this.setVolume(this.getVolume()+t)},t.prototype.decreaseVolume=function(t){this.setVolume(this.getVolume()-t)},t.prototype.setMute=function(t){this._output.setMute(t)},t.prototype.mute=function(){this.setMute(!0)},t.prototype.unmute=function(){this.setMute(!1)},Object.defineProperty(t.prototype,"isMuted",{get:function(){return this._output.isMuted},enumerable:!0,configurable:!0}),t.prototype.setAutoplay=function(t){this._output.setAutoplay(t)},t.prototype.getAutoplay=function(){return this._output.isAutoplay},t.prototype.setLoop=function(t){this._output.setLoop(t)},t.prototype.getLoop=function(){return this._output.isLoop},t.prototype.setPlaybackRate=function(t){this._output.setPlaybackRate(t)},t.prototype.getPlaybackRate=function(){return this._output.playbackRate},t.prototype.setPreload=function(t){this._output.setPreload(t)},t.prototype.getPreload=function(){return this._output.preload},t.prototype.getCurrentTime=function(){return this._output.currentTime},t.prototype.seekTo=function(t){this._output.setCurrentTime(t)},t.prototype.getDuration=function(){return this._output.duration||0},t.prototype.getVideoWidth=function(){return this._output.videoWidth},t.prototype.getVideoHeight=function(){return this._output.videoHeight},t.prototype.getBuffered=function(){return this._output.buffered},t.prototype.setPlaysinline=function(t){this._output.setInline(t)},t.prototype.getPlaysinline=function(){return this._output.isInline},t.prototype.setCrossOrigin=function(t){this._output.setCrossOrigin(t)},t.prototype.getCrossOrigin=function(){return this._output.crossOrigin},t.prototype.getCurrentState=function(){return this._output.currentState},t.prototype.getDebugInfo=function(){return this._output.getDebugInfo()},t.prototype.destroy=function(){},t.prototype.changeOutput=function(t,e){var i=this.getSrc();return this._output.pause(),this._output=t,this._applyConfig(this._config),this._output.setSrc(i,e)},t.prototype.resetOutput=function(){var t=!this._output.isPaused,e=this._output.currentTime;this._output=this._defaultOutput,this._output.setCurrentTime(e),t&&this._output.play()},t.moduleName="engine",t.dependencies=["eventEmitter","config","nativeOutput"],o([B()],t.prototype,"setSrc",null),o([B()],t.prototype,"getSrc",null),o([B()],t.prototype,"reset",null),o([B()],t.prototype,"play",null),o([B()],t.prototype,"pause",null),o([B()],t.prototype,"togglePlayback",null),o([B()],t.prototype,"resetPlayback",null),o([B()],t.prototype,"isPaused",null),o([B()],t.prototype,"isEnded",null),o([B()],t.prototype,"syncWithLive",null),o([B()],t.prototype,"seekForward",null),o([B()],t.prototype,"seekBackward",null),o([B()],t.prototype,"setVolume",null),o([B()],t.prototype,"getVolume",null),o([B()],t.prototype,"increaseVolume",null),o([B()],t.prototype,"decreaseVolume",null),o([B()],t.prototype,"mute",null),o([B()],t.prototype,"unmute",null),o([B()],t.prototype,"isMuted",null),o([B()],t.prototype,"setAutoplay",null),o([B()],t.prototype,"getAutoplay",null),o([B()],t.prototype,"setLoop",null),o([B()],t.prototype,"getLoop",null),o([B()],t.prototype,"setPlaybackRate",null),o([B()],t.prototype,"getPlaybackRate",null),o([B()],t.prototype,"setPreload",null),o([B()],t.prototype,"getPreload",null),o([B()],t.prototype,"getCurrentTime",null),o([B()],t.prototype,"seekTo",null),o([B()],t.prototype,"getDuration",null),o([B("getVideoRealWidth")],t.prototype,"getVideoWidth",null),o([B("getVideoRealHeight")],t.prototype,"getVideoHeight",null),o([B()],t.prototype,"setPlaysinline",null),o([B()],t.prototype,"getPlaysinline",null),o([B()],t.prototype,"setCrossOrigin",null),o([B()],t.prototype,"getCrossOrigin",null),o([B("getPlaybackState")],t.prototype,"getCurrentState",null),o([B()],t.prototype,"getDebugInfo",null),t}(),we=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,ke=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function xe(t,e){void 0===e&&(e=1);var i=function(t){var e=(t=t.replace(we,function(t,e,i,n){return e+e+i+i+n+n})).match(ke);if(e)return{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)};throw new Error("Playable.js: Color passed to theme should be in HEX format")}(t);return"rgba("+i.r+","+i.g+","+i.b+","+e+")"}function Se(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}var Te=new Map;function Ce(t){var e=Se(t);return""+e+function(t){if(Te.has(t)){var e=Te.get(t)+1;return Te.set(t,e),""+e}return Te.set(t,0),""}(e)}function Ae(t){return Object.keys(t).reduce(function(t,e){var i;return n(n({},t),((i={})[e]=function(t){return"wix-playable--"+Ce(t)}(e),i))},{})}var Ie,Le=function(){function t(){this._rulesByModule=new Map,this._classNamesByModule=new Map,this._data={}}return t.prototype.attach=function(){var t=this;this._styleNode=this._styleNode||document.createElement("style");var e=[];this._rulesByModule.forEach(function(i,n){e.push(t._getModuleCSS(n))}),this._styleNode.innerHTML=e.join(" "),document.getElementsByTagName("head")[0].appendChild(this._styleNode)},t.prototype.update=function(t){this._data=n(n({},this._data),t),this._styleNode&&this.attach()},t.prototype.registerModuleTheme=function(t,e){if(this._rulesByModule.get(t))throw new Error("can`t register multiple themes for one module");this._rulesByModule.set(t,e),this._classNamesByModule.set(t,Ae(e))},t.prototype.getModuleClassNames=function(t){return this._classNamesByModule.get(t)},t.prototype._getModuleCSS=function(t){var e=this,i=this._rulesByModule.get(t),n=this._classNamesByModule.get(t);return i&&n?Object.keys(i).map(function(t){return e._getRuleCSS(i[t],n[t])}).join(" "):""},t.prototype._getRuleCSS=function(t,e){var i=this;if(!t||!e)return"";var n=Object.keys(t).filter(function(e){return"object"==typeof t[e]}).map(function(t){return-1!==t.indexOf("&")?t:"& "+t}).map(function(n){return n.replace(/&/g,"."+e)+" {"+i._getRuleStyles(t[n])+"}"}).join(" ");return"."+e+" {"+this._getRuleStyles(t)+"} "+n},t.prototype._getRuleStyles=function(t){var e=this;return Object.keys(t).filter(function(e){return"object"!=typeof t[e]}).map(function(i){return Se(i)+": "+("function"==typeof t[i]?t[i](e._data):t[i])}).join("; ")},t}(),Oe={color:"#FFF",liveColor:"#ea492e",progressColor:"#FFF"},Pe=function(){function t(t){var e=this,i=t.themeConfig;this._styleSheet=new Le,this._styleSheet.update(n(n({},Oe),i)),window.setTimeout(function(){e._styleSheet&&e._styleSheet.attach()},0)}return t.prototype.updateTheme=function(t){this._styleSheet.update(t)},t.prototype.registerModuleTheme=function(t,e){this._styleSheet.registerModuleTheme(t,e)},t.prototype.get=function(t){return this._styleSheet.getModuleClassNames(t)},t.prototype.destroy=function(){this._styleSheet=null},t.moduleName="theme",t.dependencies=["themeConfig"],o([B()],t.prototype,"updateTheme",null),t}(),Ne=((Ie={})[jt.LOGO_LABEL]="Watch on site",Ie[jt.LOGO_TOOLTIP]="Watch On Site",Ie[jt.LIVE_INDICATOR_TEXT]=function(t){return t.isEnded?"Live Ended":"Live"},Ie[jt.LIVE_SYNC_LABEL]="Sync to live",Ie[jt.LIVE_SYNC_TOOLTIP]="Sync to Live",Ie[jt.PAUSE_CONTROL_LABEL]="Pause",Ie[jt.PLAY_CONTROL_LABEL]="Play",Ie[jt.PROGRESS_CONTROL_LABEL]="Progress control",Ie[jt.PROGRESS_CONTROL_VALUE]=function(t){return"Already played "+t.percent+"%"},Ie[jt.MUTE_CONTROL_LABEL]="Mute",Ie[jt.MUTE_CONTROL_TOOLTIP]="Mute",Ie[jt.UNMUTE_CONTROL_LABEL]="Unmute",Ie[jt.UNMUTE_CONTROL_TOOLTIP]="Unmute",Ie[jt.VOLUME_CONTROL_LABEL]="Volume control",Ie[jt.VOLUME_CONTROL_VALUE]=function(t){return"Volume is "+t.volume+"%"},Ie[jt.ENTER_FULL_SCREEN_LABEL]="Enter full screen",Ie[jt.ENTER_FULL_SCREEN_TOOLTIP]="Enter Full Screen",Ie[jt.EXIT_FULL_SCREEN_LABEL]="Exit full screen",Ie[jt.EXIT_FULL_SCREEN_TOOLTIP]="Exit Full Screen",Ie[jt.ENTER_PICTURE_IN_PICTURE_LABEL]="Play Picture-in-Picture",Ie[jt.ENTER_PICTURE_IN_PICTURE_TOOLTIP]="Play Picture-in-Picture",Ie[jt.EXIT_PICTURE_IN_PICTURE_LABEL]="Exit Picture-in-Picture",Ie[jt.EXIT_PICTURE_IN_PICTURE_TOOLTIP]="Exit Picture-in-Picture",Ie[jt.DOWNLOAD_BUTTON_LABEL]="Download video",Ie[jt.DOWNLOAD_BUTTON_TOOLTIP]="Download Video",Ie),Me=function(){function t(t){var e=t.config;this._textMap=n(n({},Ne),e.texts)}return t.prototype.get=function(t,e,i){if(this._textMap){var n=this._textMap[t]||i;return"function"==typeof n?n(e):n}},t.prototype.destroy=function(){this._textMap=null},t.moduleName="textMap",t.dependencies=["config"],t}(),De=[["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"]];var Re=function(){function t(t,e){this._$elem=t,this._callback=e,this._fullscreenFn=function(){for(var t={},e=0;e<De.length;e+=1)if(De[e][1]in document){for(var i=0;i<De[e].length;i+=1)t[De[0][i]]=De[e][i];return t}return!1}(),this._bindEvents()}return Object.defineProperty(t.prototype,"isAPIExist",{get:function(){return Boolean(this._fullscreenFn)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInFullScreen",{get:function(){return"boolean"!=typeof this._fullscreenFn&&Boolean(document[this._fullscreenFn.fullscreenElement])},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEnabled",{get:function(){return"boolean"!=typeof this._fullscreenFn&&(this.isAPIExist&&document[this._fullscreenFn.fullscreenEnabled])},enumerable:!0,configurable:!0}),t.prototype._bindEvents=function(){if("boolean"==typeof this._fullscreenFn)return!1;document.addEventListener(this._fullscreenFn.fullscreenchange,this._callback)},t.prototype._unbindEvents=function(){if("boolean"==typeof this._fullscreenFn)return!1;document.removeEventListener(this._fullscreenFn.fullscreenchange,this._callback)},t.prototype.request=function(){if(this.isEnabled){var t=this._fullscreenFn.requestFullscreen;/5\.1[.\d]* Safari/.test(navigator.userAgent)?this._$elem[t]():this._$elem[t](Element.ALLOW_KEYBOARD_INPUT)}},t.prototype.exit=function(){this.isEnabled&&document[this._fullscreenFn.exitFullscreen]()},t.prototype.destroy=function(){this._unbindEvents(),this._$elem=null},t}(),Be=!1,$e=function(){function t(t,e){this._$elem=t,this._callback=e,this._bindEvents(),this._enterWhenHasMetaData=this._enterWhenHasMetaData.bind(this)}return Object.defineProperty(t.prototype,"isAPIExist",{get:function(){return Boolean(this._$elem&&this._$elem.webkitSupportsFullscreen)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInFullScreen",{get:function(){return Boolean(this._$elem&&this._$elem.webkitDisplayingFullscreen)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this.isAPIExist},enumerable:!0,configurable:!0}),t.prototype._bindEvents=function(){this._$elem.addEventListener("webkitbeginfullscreen",this._callback),this._$elem.addEventListener("webkitendfullscreen",this._callback)},t.prototype._unbindEvents=function(){this._$elem.removeEventListener("webkitbeginfullscreen",this._callback),this._$elem.removeEventListener("webkitendfullscreen",this._callback),this._$elem.removeEventListener("loadedmetadata",this._enterWhenHasMetaData)},t.prototype._enterWhenHasMetaData=function(){this._$elem.removeEventListener("loadedmetadata",this._enterWhenHasMetaData),Be=!1,this.request()},t.prototype.request=function(){if(this.isEnabled&&!this.isInFullScreen&&!Be)try{this._$elem.webkitEnterFullscreen()}catch(t){this._$elem.readyState<1&&(this._$elem.addEventListener("loadedmetadata",this._enterWhenHasMetaData),Be=!0)}},t.prototype.exit=function(){this.isEnabled&&this.isInFullScreen&&this._$elem.webkitExitFullscreen()},t.prototype.destroy=function(){this._unbindEvents(),this._$elem=null},t}(),Fe={exitFullScreenOnEnd:!0,enterFullScreenOnPlay:!1,exitFullScreenOnPause:!1,pauseVideoOnFullScreenExit:!1},Ve=function(){function t(t){var e=t.eventEmitter,i=t.engine,o=t.rootContainer,r=t.config;if(this._exitFullScreenOnEnd=!1,this._enterFullScreenOnPlay=!1,this._exitFullScreenOnPause=!1,this._pauseVideoOnFullScreenExit=!1,this._eventEmitter=e,this._engine=i,r.disableFullScreen)this._isEnabled=!1;else{this._isEnabled=!0;var s=n({},Fe);this._exitFullScreenOnEnd=s.exitFullScreenOnEnd,this._enterFullScreenOnPlay=s.enterFullScreenOnPlay,this._exitFullScreenOnPause=s.exitFullScreenOnPause,this._pauseVideoOnFullScreenExit=s.pauseVideoOnFullScreenExit}this._onChange=this._onChange.bind(this),N()?(this._element=this._engine.getElement(),this._helper=new $e(this._engine.getElement(),this._onChange)):(this._element=o.getElement(),this._helper=new Re(o.getElement(),this._onChange)),this._bindEvents()}return t.prototype._onChange=function(t){t.target===this._element&&(!this._helper.isInFullScreen&&this._pauseVideoOnFullScreenExit&&this._engine.pause(),this._eventEmitter.emitAsync(Vt.FULL_SCREEN_STATE_CHANGED,this._helper.isInFullScreen))},t.prototype._bindEvents=function(){this._unbindEvents=this._eventEmitter.bindEvents([[Ht.STATE_CHANGED,this._processNextStateFromEngine],[Ht.PLAY_REQUEST,this._enterOnPlayRequested]],this)},t.prototype._exitOnEnd=function(){this._exitFullScreenOnEnd&&this.isInFullScreen&&this.exitFullScreen()},t.prototype._enterOnPlayRequested=function(){this._enterFullScreenOnPlay&&!this.isInFullScreen&&this.enterFullScreen()},t.prototype._exitOnPauseRequested=function(){this._exitFullScreenOnPause&&this.isInFullScreen&&this.exitFullScreen()},t.prototype._processNextStateFromEngine=function(t){switch(t.nextState){case Gt.ENDED:this._exitOnEnd();break;case Gt.PAUSED:this._exitOnPauseRequested()}},t.prototype.enableExitFullScreenOnPause=function(){this._exitFullScreenOnPause=!0},t.prototype.disableExitFullScreenOnPause=function(){this._exitFullScreenOnPause=!1},t.prototype.enableExitFullScreenOnEnd=function(){this._exitFullScreenOnEnd=!0},t.prototype.disableExitFullScreenOnEnd=function(){this._exitFullScreenOnPause=!1},t.prototype.enableEnterFullScreenOnPlay=function(){this._enterFullScreenOnPlay=!0},t.prototype.disableEnterFullScreenOnPlay=function(){this._enterFullScreenOnPlay=!1},t.prototype.enablePauseVideoOnFullScreenExit=function(){this._pauseVideoOnFullScreenExit=!0},t.prototype.disablePauseVideoOnFullScreenExit=function(){this._pauseVideoOnFullScreenExit=!1},t.prototype.enterFullScreen=function(){this.isEnabled&&this._helper.request()},t.prototype.exitFullScreen=function(){this.isEnabled&&this._helper.exit()},Object.defineProperty(t.prototype,"isInFullScreen",{get:function(){return!!this.isEnabled&&this._helper.isInFullScreen},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this._helper.isEnabled&&this._isEnabled},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._unbindEvents(),this._helper.destroy()},t.moduleName="fullScreenManager",t.dependencies=["eventEmitter","engine","rootContainer","config"],o([B()],t.prototype,"enableExitFullScreenOnPause",null),o([B()],t.prototype,"disableExitFullScreenOnPause",null),o([B()],t.prototype,"enableExitFullScreenOnEnd",null),o([B()],t.prototype,"disableExitFullScreenOnEnd",null),o([B()],t.prototype,"enableEnterFullScreenOnPlay",null),o([B()],t.prototype,"disableEnterFullScreenOnPlay",null),o([B()],t.prototype,"enablePauseVideoOnFullScreenExit",null),o([B()],t.prototype,"disablePauseVideoOnFullScreenExit",null),o([B()],t.prototype,"enterFullScreen",null),o([B()],t.prototype,"exitFullScreen",null),o([B()],t.prototype,"isInFullScreen",null),t}(),Ue=[Vt.GO_FORWARD_WITH_KEYBOARD,Vt.GO_BACKWARD_WITH_KEYBOARD,Vt.PROGRESS_CHANGE],He=function(){function t(t){var e=t.eventEmitter,i=t.engine;this._eventEmitter=e,this._engine=i,this._state=qt.NONE,this._isSeekedByUIWhilePlaying=null,this._bindEvents()}return Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),t.prototype._bindEvents=function(){var t=this;this._unbindEvents=this._eventEmitter.bindEvents(r([[Ht.STATE_CHANGED,this._processStateChange]],Ue.map(function(e){return[e,t._processSeekByUI]}),[[Ht.DYNAMIC_CONTENT_ENDED,this._onDynamicContentEnded]]),this)},t.prototype._processStateChange=function(t){var e=t.prevState,i=t.nextState;if(i!==Gt.SRC_SET){if(this._engine.isDynamicContent&&!this._engine.isDynamicContentEnded)switch(i){case Gt.METADATA_LOADED:this._setState(qt.INITIAL);break;case Gt.PLAY_REQUESTED:this._state===qt.INITIAL&&this._engine.syncWithLive();break;case Gt.PLAYING:(this._state===qt.INITIAL||this._state===qt.NOT_SYNC||this._isSeekedByUIWhilePlaying)&&(this._setState(this._engine.isSyncWithLive?qt.SYNC:qt.NOT_SYNC),this._isSeekedByUIWhilePlaying=!1);break;case Gt.PAUSED:e===Gt.PLAYING&&this._setState(qt.NOT_SYNC)}}else this._setState(qt.NONE)},t.prototype._processSeekByUI=function(){this._engine.isDynamicContent&&this._engine.getCurrentState()===Gt.PLAYING&&(this._isSeekedByUIWhilePlaying=!0)},t.prototype._onDynamicContentEnded=function(){this._setState(qt.ENDED)},t.prototype._setState=function(t){if(this._state!==t){var e=this._state,i=t;this._state=t,this._eventEmitter.emitAsync(Ht.LIVE_STATE_CHANGED,{prevState:e,nextState:i})}},t.prototype.destroy=function(){this._unbindEvents()},t.moduleName="liveStateEngine",t.dependencies=["eventEmitter","engine"],t}(),We=function(t){for(var e,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];(e=window.console).warn.apply(e,r([t],i))},Ye={SPACE_BAR:32,ENTER:13,TAB:9,LEFT_ARROW:37,RIGHT_ARROW:39,UP_ARROW:38,DOWN_ARROW:40,DEBUG_KEY:68},ze=function(){function t(t,e){this._eventEmitter=new ve,this._element=t,e&&this._attachCallbacks(e),this._bindCallbacks(),this._bindEvents()}return t.prototype._attachCallbacks=function(t){var e=this;Object.keys(t).forEach(function(i){var n=t[i];Array.isArray(n)?n.forEach(function(t){return e._eventEmitter.on(i,t)}):e._eventEmitter.on(i,n)})},t.prototype._unattachCallbacks=function(){this._eventEmitter.removeAllListeners()},t.prototype._bindCallbacks=function(){this._processKeyboardInput=this._processKeyboardInput.bind(this)},t.prototype._bindEvents=function(){this._element.addEventListener("keydown",this._processKeyboardInput,!1)},t.prototype._unbindEvents=function(){this._element.removeEventListener("keydown",this._processKeyboardInput,!1)},t.prototype.addCallbacks=function(t){this._attachCallbacks(t)},t.prototype._processKeyboardInput=function(t){this._eventEmitter.emit(t.keyCode,t)},Object.defineProperty(t.prototype,"_isDestroyed",{get:function(){return!this._element&&!this._eventEmitter},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._isDestroyed?We("KeyboardInterceptor.destroy called after already been destroyed"):(this._unbindEvents(),this._element=null,this._unattachCallbacks(),this._eventEmitter=null)},t}(),je=function(){function t(t){var e=t.config,i=t.eventEmitter,n=t.rootContainer,o=t.engine;this._eventEmitter=i,this._engine=o,L()||O()||P()||M()?this._isEnabled=!1:this._isEnabled=!1!==e.disableControlWithKeyboard,this._initInterceptor(n.getElement())}return t.prototype._initInterceptor=function(t){this._isEnabled&&(this._keyboardInterceptor=new ze(t),this._attachDefaultControls())},t.prototype._attachDefaultControls=function(){var t,e=this;this._keyboardInterceptor.addCallbacks(((t={})[Ye.TAB]=function(){e._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED)},t[Ye.SPACE_BAR]=function(t){t.preventDefault(),e._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED),e._eventEmitter.emitAsync(Vt.TOGGLE_PLAYBACK_WITH_KEYBOARD),e._engine.togglePlayback()},t[Ye.LEFT_ARROW]=function(t){e._engine.isSeekAvailable&&(t.preventDefault(),e._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED),e._eventEmitter.emitAsync(Vt.GO_BACKWARD_WITH_KEYBOARD),e._engine.seekBackward(5))},t[Ye.RIGHT_ARROW]=function(t){e._engine.isSeekAvailable&&(t.preventDefault(),e._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED),e._eventEmitter.emitAsync(Vt.GO_FORWARD_WITH_KEYBOARD),e._engine.seekForward(5))},t[Ye.UP_ARROW]=function(t){t.preventDefault(),e._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED),e._eventEmitter.emitAsync(Vt.INCREASE_VOLUME_WITH_KEYBOARD),e._engine.setMute(!1),e._engine.increaseVolume(10)},t[Ye.DOWN_ARROW]=function(t){t.preventDefault(),e._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED),e._eventEmitter.emitAsync(Vt.DECREASE_VOLUME_WITH_KEYBOARD),e._engine.setMute(!1),e._engine.decreaseVolume(10)},t))},t.prototype._destroyInterceptor=function(){this._keyboardInterceptor&&this._keyboardInterceptor.destroy()},t.prototype.addKeyControl=function(t,e){var i;this._isEnabled&&this._keyboardInterceptor.addCallbacks(((i={})[t]=e,i))},t.prototype.destroy=function(){this._destroyInterceptor()},t.moduleName="keyboardControl",t.dependencies=["engine","eventEmitter","rootContainer","config"],t}();function Ke(t,e){return t.querySelector('[data-playable-hook="'+e+'"]')}function Ge(t,e,i){i?t.classList.add(e):t.classList.remove(e)}ee(".__pG-WY{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;cursor:pointer;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:opacity;transition-property:opacity;opacity:1;border:0;border-radius:0;outline:none;background-color:transparent;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__pG-WY:hover{opacity:.7}.__1TRHR{visibility:hidden!important;width:0!important;min-width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important}.__116IW{position:absolute;z-index:10000;top:10px;left:10px;overflow:scroll;width:400px;height:250px;border-radius:3px;background-color:rgba(0,0,0,.95)}.__116IW .__claHV{position:absolute;top:10px;right:5px;cursor:pointer;color:#fff}.__116IW .__claHV:hover{opacity:.8}.__116IW .__-AZH_{font-size:8px;line-height:8px;margin:5px;padding:5px;color:#fff}.__116IW .__-AZH_ .__1Jfzp{color:green}.__116IW .__-AZH_ .__2WdLF{color:#ff8c00}.__116IW .__-AZH_ .__CpohN{color:blue}.__116IW .__-AZH_ .__2ZOuz{color:#f0f}.__116IW .__-AZH_ .__4avak{color:#fff}");var qe=function(t){function e(e){var i=t.call(this)||this,n=e.callbacks;return i._callbacks=n,i._initDOM(),i._bindEvents(),i}return i(e,t),e.prototype._initDOM=function(){var t;this._$rootElement=Xt('<div class="'+(t={styles:this.styleNames}).styles.debugPanel+'" data-playable-component> <div class="'+t.styles.closeButton+'" data-playable-hook="debug-panel-close-button" > x </div> <pre class="'+t.styles.infoContainer+'" data-playable-hook="debug-panel-info-container" > </pre></div>'),this._$closeButton=Ke(this._$rootElement,"debug-panel-close-button"),this._$infoContainer=Ke(this._$rootElement,"debug-panel-info-container")},e.prototype._bindEvents=function(){this._$closeButton.addEventListener("click",this._callbacks.onCloseButtonClick)},e.prototype._unbindEvents=function(){this._$closeButton.removeEventListener("click",this._callbacks.onCloseButtonClick)},e.prototype.show=function(){Ge(this._$rootElement,this.styleNames.hidden,!1)},e.prototype.hide=function(){Ge(this._$rootElement,this.styleNames.hidden,!0)},e.prototype.setInfo=function(t){var e,i;this._$infoContainer.innerHTML=(e=JSON.stringify(t,void 0,4),i=this.styleNames,(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(t){var e=i.number;return/^"/.test(t)?e=/:$/.test(t)?i.key:i.string:/true|false/.test(t)?e=i.boolean:/null/.test(t)&&(e=i.null),'<span class="'+e+'">'+t+"</span>"}))},e.prototype.getElement=function(){return this._$rootElement},e.prototype.destroy=function(){this._unbindEvents(),this._$rootElement.parentNode&&this._$rootElement.parentNode.removeChild(this._$rootElement),this._$rootElement=null,this._$closeButton=null,this._$infoContainer=null},e}(te);qe.extendStyleNames({controlButton:"__pG-WY",hidden:"__1TRHR",debugPanel:"__116IW",closeButton:"__claHV",infoContainer:"__-AZH_",string:"__1Jfzp",number:"__2WdLF",boolean:"__CpohN",null:"__2ZOuz",key:"__4avak"});var Xe,Je=function(){function e(t){var e=t.engine,i=t.rootContainer,n=t.keyboardControl;this._engine=e,this._bindCallbacks(),this._initUI(),this.hide(),i.appendComponentElement(this.getElement()),n.addKeyControl(Ye.DEBUG_KEY,this._keyControlCallback)}return e.prototype._keyControlCallback=function(t){t.ctrlKey&&t.shiftKey&&this.show()},e.prototype.getElement=function(){return this.view.getElement()},e.prototype._initUI=function(){this.view=new qe({callbacks:{onCloseButtonClick:this.hide}})},e.prototype._bindCallbacks=function(){this.updateInfo=this.updateInfo.bind(this),this.hide=this.hide.bind(this),this._keyControlCallback=this._keyControlCallback.bind(this)},e.prototype.getDebugInfo=function(){var e=this._engine.getDebugInfo();if("html5video"===e.output){var i=e,n=i.url,o=i.type,r=i.deliveryPriority,s=i.currentBitrate,a=i.overallBufferLength,l=i.nearestBufferSegInfo,c=i.viewDimensions,p=i.currentTime,h=i.duration,u=i.loadingStateTimestamps,_=i.bitrates,d=i.bwEstimate,y=i.output;return{url:n,type:o,deliveryPriority:t.MEDIA_STREAM_DELIVERY_PRIORITY[r],currentBitrate:s,overallBufferLength:a,nearestBufferSegInfo:l,viewDimensions:c,currentTime:p,duration:h,loadingStateTimestamps:u,bitrates:_,bwEstimate:d,output:y}}return e},e.prototype.updateInfo=function(){this.view.setInfo(this.getDebugInfo())},e.prototype.setUpdateInterval=function(){this.clearUpdateInterval(),this._interval=window.setInterval(this.updateInfo,1e3)},e.prototype.clearUpdateInterval=function(){window.clearInterval(this._interval)},e.prototype.show=function(){this.isHidden&&(this.updateInfo(),this.setUpdateInterval(),this.view.show(),this.isHidden=!1)},e.prototype.hide=function(){this.isHidden||(this.clearUpdateInterval(),this.view.hide(),this.isHidden=!0)},e.prototype.destroy=function(){this.clearUpdateInterval(),this.view.destroy()},e.moduleName="debugPanel",e.View=qe,e.dependencies=["engine","rootContainer","keyboardControl"],e}();(Xe=t.VIDEO_VIEW_MODES||(t.VIDEO_VIEW_MODES={})).REGULAR="REGULAR",Xe.BLUR="BLUR",Xe.FILL="FILL";ee(".__3BN2N{position:absolute;z-index:50;top:0;right:0;bottom:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;background-color:#000;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__3BN2N,.__3BN2N.__1Bv69 video,.__3BN2N.__Zianj video{width:100%;height:100%}.__3BN2N.__rToyv video{position:absolute}.__3BN2N.__1tr7O.__rToyv video{width:100%;height:auto!important}.__3BN2N.__1yh9M.__rToyv video{height:100%}.__3BN2N video{position:relative;z-index:1;-webkit-box-shadow:0 0 20px rgba(0,0,0,.2);box-shadow:0 0 20px rgba(0,0,0,.2)}.__3BN2N.__3-TwW{cursor:none}.__1PHZh{position:absolute;z-index:0;top:0;right:0;bottom:0;left:0;-webkit-filter:blur(14px);filter:blur(14px)}");var Ze=function(e){function n(i){var n,o=e.call(this)||this,r=i.callbacks,s=i.nativeControls,a=i.playbackViewElement;return o._callbacks=r,o._styleNamesByViewMode=((n={})[t.VIDEO_VIEW_MODES.REGULAR]=o.styleNames.regularMode,n[t.VIDEO_VIEW_MODES.BLUR]=o.styleNames.blurMode,n[t.VIDEO_VIEW_MODES.FILL]=o.styleNames.fillMode,n),o._bindCallbacks(),s&&a.setAttribute("controls","true"),o._initDOM(a),o._bindEvents(),o.setViewMode(t.VIDEO_VIEW_MODES.REGULAR),o}return i(n,e),n.prototype._bindCallbacks=function(){this._updateBackground=this._updateBackground.bind(this)},n.prototype._initDOM=function(t){var e;this._$rootElement=Xt('<div class="'+(e={styles:this.styleNames}).styles.screen+'" data-playable-hook="screen-block" data-playable-component> <canvas class="'+e.styles.backgroundCanvas+'" data-playable-hook="background-canvas"/></div>'),this._$playbackElement=t,this._$rootElement.appendChild(t),this._$canvas=Ke(this._$rootElement,"background-canvas")},n.prototype._bindEvents=function(){this._$rootElement.addEventListener("click",this._callbacks.onWrapperMouseClick),this._$rootElement.addEventListener("dblclick",this._callbacks.onWrapperMouseDblClick)},n.prototype._unbindEvents=function(){this._$rootElement.removeEventListener("click",this._callbacks.onWrapperMouseClick),this._$rootElement.removeEventListener("dblclick",this._callbacks.onWrapperMouseDblClick)},n.prototype.focusOnNode=function(){this._$rootElement.focus()},n.prototype.show=function(){Ge(this._$rootElement,this.styleNames.hidden,!1)},n.prototype.hide=function(){Ge(this._$rootElement,this.styleNames.hidden,!0)},n.prototype.getElement=function(){return this._$rootElement},n.prototype.hideCursor=function(){Ge(this._$rootElement,this.styleNames.hiddenCursor,!0)},n.prototype.showCursor=function(){Ge(this._$rootElement,this.styleNames.hiddenCursor,!1)},n.prototype.setViewMode=function(e){var i=this;this._styleNamesByViewMode[e]&&(this.resetBackground(),Object.keys(this._styleNamesByViewMode).forEach(function(t){Ge(i._$rootElement,i._styleNamesByViewMode[t],!1)}),Ge(this._$rootElement,this._styleNamesByViewMode[e],!0),e===t.VIDEO_VIEW_MODES.BLUR?this._startUpdatingBackground():this._stopUpdatingBackground(),this._currentMode=e)},n.prototype.setBackgroundSize=function(t,e){this.setBackgroundWidth(t),this.setBackgroundHeight(e)},n.prototype.setBackgroundWidth=function(t){this._$canvas.width=t},n.prototype.setBackgroundHeight=function(t){this._$canvas.height=t},n.prototype._startUpdatingBackground=function(){this._requestAnimationFrameID||this._updateBackground()},n.prototype._stopUpdatingBackground=function(){this._requestAnimationFrameID&&(cancelAnimationFrame(this._requestAnimationFrameID),this._requestAnimationFrameID=null)},n.prototype.resetAspectRatio=function(){var t=this._$playbackElement,e=t.videoWidth,i=t.videoHeight,n=this._$rootElement.getBoundingClientRect(),o=n.width,r=n.height;this._isHorizontalStripes=o/r<(i?e/i:0),Ge(this._$rootElement,this.styleNames.horizontalStripes,this._isHorizontalStripes),Ge(this._$rootElement,this.styleNames.verticalStripes,!this._isHorizontalStripes)},n.prototype.resetBackground=function(){this._currentMode===t.VIDEO_VIEW_MODES.BLUR&&this._clearBackground()},n.prototype._getSourceAreas=function(t,e){return this._isHorizontalStripes?[[0,0,t,1],[0,e-1,t,1]]:[[0,0,1,e],[t-1,0,1,e]]},n.prototype._getCanvasAreas=function(t,e){return this._isHorizontalStripes?[[0,0,t,e/2],[0,e/2,t,e/2]]:[[0,0,t/2,e],[t/2,0,t/2,e]]},n.prototype._drawAreaFromSource=function(t,e){var i=t[0],n=t[1],o=t[2],r=t[3],s=e[0],a=e[1],l=e[2],c=e[3];this._$canvas.getContext("2d").drawImage(this._$playbackElement,i,n,o,r,s,a,l,c)},n.prototype._drawBackground=function(){var t=this._$playbackElement,e=t.videoWidth,i=t.videoHeight,n=this._$canvas.width,o=this._$canvas.height,r=this._getSourceAreas(e,i),s=this._getCanvasAreas(n,o);this._drawAreaFromSource(r[0],s[0]),this._drawAreaFromSource(r[1],s[1])},n.prototype._updateBackground=function(){this._drawBackground(),this._requestAnimationFrameID=requestAnimationFrame(this._updateBackground)},n.prototype._clearBackground=function(){this._$canvas.getContext("2d").clearRect(0,0,this._$canvas.width,this._$canvas.height)},n.prototype.destroy=function(){this._stopUpdatingBackground(),this._unbindEvents(),this._$rootElement.parentNode&&this._$rootElement.parentNode.removeChild(this._$rootElement),this._$rootElement=null,this._$playbackElement=null,this._$canvas=null},n}(te);Ze.extendStyleNames({screen:"__3BN2N",regularMode:"__1Bv69",blurMode:"__Zianj",fillMode:"__rToyv",verticalStripes:"__1tr7O",horizontalStripes:"__1yh9M",hiddenCursor:"__3-TwW",backgroundCanvas:"__1PHZh"});var Qe=function(){function t(t){var e=t.config,i=t.eventEmitter,n=t.engine,o=t.fullScreenManager,r=t.interactionIndicator,s=t.rootContainer;this._eventEmitter=i,this._engine=n,this._fullScreenManager=o,this._interactionIndicator=r,this.isHidden=!1,this._delayedToggleVideoPlaybackTimeout=null,this._isClickProcessingDisabled=Boolean(e.disableControlWithClickOnPlayer),this._bindCallbacks(),this._initUI(e.nativeBrowserControls),this._bindEvents(),s.appendComponentElement(this.getElement())}return t.prototype.getElement=function(){return this.view.getElement()},t.prototype._bindCallbacks=function(){this._processClick=this._processClick.bind(this),this._processDblClick=this._processDblClick.bind(this),this._toggleVideoPlayback=this._toggleVideoPlayback.bind(this)},t.prototype._initUI=function(t){var e={nativeControls:t,callbacks:{onWrapperMouseClick:this._processClick,onWrapperMouseDblClick:this._processDblClick},playbackViewElement:this._engine.getElement()};this.view=new Ze(e)},t.prototype._bindEvents=function(){this._unbindEvents=this._eventEmitter.bindEvents([[Vt.PLAY_OVERLAY_CLICK,this.view.focusOnNode,this.view],[Vt.RESIZE,this._updateSizes],[Gt.SRC_SET,this.view.resetBackground,this.view],[Gt.METADATA_LOADED,this.view.resetAspectRatio,this.view]],this)},t.prototype._updateSizes=function(t){var e=t.width,i=t.height;this.view.setBackgroundSize(e,i),this.view.resetAspectRatio()},t.prototype.showCursor=function(){this.view.showCursor()},t.prototype.hideCursor=function(){this.view.hideCursor()},t.prototype._processClick=function(){this._isClickProcessingDisabled||(this._showPlaybackChangeIndicator(),this._fullScreenManager.isEnabled?this._setDelayedPlaybackToggle():this._toggleVideoPlayback())},t.prototype._processDblClick=function(){this._isClickProcessingDisabled||this._fullScreenManager.isEnabled&&(this._isDelayedPlaybackToggleExist&&(this._clearDelayedPlaybackToggle(),this._hideDelayedPlaybackChangeIndicator()),this._toggleFullScreen())},t.prototype._showPlaybackChangeIndicator=function(){var t=this._engine.getCurrentState();t===Gt.PLAY_REQUESTED||t===Gt.PLAYING?this._interactionIndicator.showPause():this._interactionIndicator.showPlay()},t.prototype._hideDelayedPlaybackChangeIndicator=function(){this._interactionIndicator.hideIcons()},t.prototype._setDelayedPlaybackToggle=function(){this._clearDelayedPlaybackToggle(),this._delayedToggleVideoPlaybackTimeout=window.setTimeout(this._toggleVideoPlayback,300)},t.prototype._clearDelayedPlaybackToggle=function(){window.clearTimeout(this._delayedToggleVideoPlaybackTimeout),this._delayedToggleVideoPlaybackTimeout=null},Object.defineProperty(t.prototype,"_isDelayedPlaybackToggleExist",{get:function(){return Boolean(this._delayedToggleVideoPlaybackTimeout)},enumerable:!0,configurable:!0}),t.prototype._toggleVideoPlayback=function(){this._clearDelayedPlaybackToggle();var t=this._engine.getCurrentState();t===Gt.PLAY_REQUESTED||t===Gt.PLAYING?(this._engine.pause(),this._eventEmitter.emitAsync(Vt.PAUSE_WITH_SCREEN_CLICK)):(this._engine.play(),this._eventEmitter.emitAsync(Vt.PLAY_WITH_SCREEN_CLICK))},t.prototype._toggleFullScreen=function(){this._fullScreenManager.isInFullScreen?(this._fullScreenManager.exitFullScreen(),this._eventEmitter.emitAsync(Vt.EXIT_FULL_SCREEN_WITH_SCREEN_CLICK)):(this._fullScreenManager.enterFullScreen(),this._eventEmitter.emitAsync(Vt.ENTER_FULL_SCREEN_WITH_SCREEN_CLICK))},t.prototype.hide=function(){this.isHidden||(this.view.hide(),this.isHidden=!0)},t.prototype.show=function(){this.isHidden&&(this.view.show(),this.isHidden=!1)},t.prototype.setVideoViewMode=function(t){this.view.setViewMode(t)},t.prototype.destroy=function(){this._unbindEvents(),this._clearDelayedPlaybackToggle(),this.view.destroy()},t.moduleName="screen",t.View=Ze,t.dependencies=["engine","eventEmitter","config","fullScreenManager","interactionIndicator","rootContainer"],o([B()],t.prototype,"setVideoViewMode",null),t}();ee(".__2Y9N6{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;cursor:pointer;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:opacity;transition-property:opacity;opacity:1;border:0;border-radius:0;outline:none;background-color:transparent;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__2Y9N6:hover{opacity:.7}.__2uTS-{visibility:hidden!important;width:0!important;min-width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important}.__2r3Wb{position:absolute;z-index:100;top:0;right:0;bottom:0;left:0;pointer-events:none}.__2r3Wb,.__2r3Wb .__1pjM4{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__2r3Wb .__1pjM4{font-size:9px;line-height:9px;position:relative;-webkit-animation-name:__P6kY6;animation-name:__P6kY6;opacity:0;border-radius:100px;background-color:rgba(0,0,0,.5)}.__2r3Wb .__1pjM4,.__2r3Wb .__3cK8N{-webkit-animation-duration:.5s;animation-duration:.5s}.__2r3Wb .__3cK8N{-webkit-animation-name:__IYB2z;animation-name:__IYB2z}.__2r3Wb .__1XtXN{position:relative;left:3px}.__2r3Wb .__qH2VX{margin:5px 0}.__2r3Wb .__2TlaJ{position:absolute;top:0;right:0;bottom:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;min-width:5px;min-height:8px;color:#fff;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__2r3Wb .__2TlaJ span{display:block}@-webkit-keyframes __IYB2z{0%{width:22px;height:22px}to{width:30px;height:30px}}@keyframes __IYB2z{0%{width:22px;height:22px}to{width:30px;height:30px}}@-webkit-keyframes __P6kY6{0%{width:22px;height:22px;padding:19px;opacity:.9}to{font-size:14px;line-height:14px;width:30px;height:30px;padding:25px;opacity:0}}@keyframes __P6kY6{0%{width:22px;height:22px;padding:19px;opacity:.9}to{font-size:14px;line-height:14px;width:30px;height:30px;padding:25px;opacity:0}}");var ti=5,ei=function(t){function e(){var e=t.call(this)||this;return e._$rootElement=Xt('<div class="'+{styles:e.styleNames}.styles.iconContainer+'" data-playable-component></div>'),e._playIcon=function(t){return'<div class="'+t.styles.icon+'"> <svg class="'+t.styles.playIcon+" "+t.styles.animatedIcon+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 14"> <path fill="#FFF" fill-rule="evenodd" d="M.079 0L0 14l10.5-7.181z"/> </svg></div>'}({styles:e.styleNames}),e._pauseIcon=function(t){return'<div class="'+t.styles.icon+'"> <svg class="'+t.styles.pauseIcon+" "+t.styles.animatedIcon+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 14"> <path fill="#FFF" fill-rule="evenodd" d="M7 0h3v14H7V0zM0 0h3v14H0V0z"/> </svg></div>'}({styles:e.styleNames}),e._forwardIcon=function(t){return'<div class="'+t.styles.icon+'"> <div class="'+t.styles.seconds+'"> <span>'+t.texts.SECONDS_COUNT+'</span> </div> <svg class="'+t.styles.animatedIcon+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34"> <path fill="#FFF" fill-rule="evenodd" d="M17 0c4.59 0 8.84 1.87 11.9 4.93V1.7h3.4v10.2H22.1V8.5h5.44C24.99 5.27 21.25 3.4 17 3.4 9.52 3.4 3.4 9.52 3.4 17c0 7.48 6.12 13.6 13.6 13.6 7.48 0 13.6-6.12 13.6-13.6H34c0 9.35-7.65 17-17 17S0 26.35 0 17 7.65 0 17 0z"/> </svg></div>'}({texts:{SECONDS_COUNT:ti},styles:e.styleNames}),e._rewindIcon=function(t){return'<div class="'+t.styles.icon+'"> <div class="'+t.styles.seconds+'"> <span>'+t.texts.SECONDS_COUNT+'</span> </div> <svg class="'+t.styles.animatedIcon+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34"> <path fill="#FFF" fill-rule="evenodd" d="M17 0C12.41 0 8.16 1.87 5.1 4.93V1.7H1.7v10.2h10.2V8.5H6.46C9.01 5.27 12.75 3.4 17 3.4c7.48 0 13.6 6.12 13.6 13.6 0 7.48-6.12 13.6-13.6 13.6-7.48 0-13.6-6.12-13.6-13.6H0c0 9.35 7.65 17 17 17s17-7.65 17-17S26.35 0 17 0z"/> </svg></div>'}({texts:{SECONDS_COUNT:ti},styles:e.styleNames}),e._increaseVolumeIcon=function(t){return'<div class="'+t.styles.icon+'"> <svg class="'+t.styles.animatedIcon+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 14"> <g fill="none" fill-rule="evenodd"> <path fill="#FFF" d="M0 3.919h2.993v5.97H0V3.92zm2.995-.015L7 .924v12L2.995 9.882v-5.98z"/> <path stroke="#FFF" d="M12.793 13.716a9.607 9.607 0 0 0 0-13.586M9.853 10.837a5.45 5.45 0 0 0 0-7.707"/> </g> </svg></div>'}({styles:e.styleNames}),e._decreaseVolumeIcon=function(t){return'<div class="'+t.styles.icon+'"> <svg class="'+t.styles.animatedIcon+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 14"> <g fill="none" fill-rule="evenodd"> <path fill="#FFF" d="M0 3.919h2.993v5.97H0V3.92zm2.995-.015L7 .924v12L2.995 9.882v-5.98z"/> <path stroke="#FFF" d="M9.853 10.837a5.45 5.45 0 0 0 0-7.707"/> </g> </svg></div>'}({styles:e.styleNames}),e._muteIcon=function(t){return'<div class="'+t.styles.icon+'"> <svg class="'+t.styles.animatedIcon+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 14"> <g fill="#FFF" fill-rule="evenodd"> <path fill="#FFF" d="M0 3.919h2.993v5.97H0V3.92zm2.995-.015L7 .924v12L2.995 9.882v-5.98z"/> <path stroke="#FFF" d="M13 6.257l-2.05-2.05-.743.743L12.257 7l-2.05 2.05.743.743L13 7.743l2.05 2.05.743-.743L13.743 7l2.05-2.05-.743-.743L13 6.257z"/> </g> </svg></div>'}({styles:e.styleNames}),e}return i(e,t),e.prototype.activatePlayIcon=function(){this._$rootElement.innerHTML=this._playIcon},e.prototype.activatePauseIcon=function(){this._$rootElement.innerHTML=this._pauseIcon},e.prototype.activateForwardIcon=function(){this._$rootElement.innerHTML=this._forwardIcon},e.prototype.activateRewindIcon=function(){this._$rootElement.innerHTML=this._rewindIcon},e.prototype.activateIncreaseVolumeIcon=function(){this._$rootElement.innerHTML=this._increaseVolumeIcon},e.prototype.activateDecreaseVolumeIcon=function(){this._$rootElement.innerHTML=this._decreaseVolumeIcon},e.prototype.activateMuteVolumeIcon=function(){this._$rootElement.innerHTML=this._muteIcon},e.prototype.deactivateIcon=function(){this._$rootElement.innerHTML=""},e.prototype.hide=function(){this._$rootElement.classList.add(this.styleNames.hidden)},e.prototype.show=function(){this._$rootElement.classList.remove(this.styleNames.hidden)},e.prototype.getElement=function(){return this._$rootElement},e.prototype.destroy=function(){this._$rootElement.parentNode&&this._$rootElement.parentNode.removeChild(this._$rootElement),this._$rootElement=null},e}(te);ei.extendStyleNames({controlButton:"__2Y9N6",hidden:"__2uTS-",iconContainer:"__2r3Wb",icon:"__1pjM4",fadeOut:"__P6kY6",animatedIcon:"__3cK8N",iconSize:"__IYB2z",playIcon:"__1XtXN",pauseIcon:"__qH2VX",seconds:"__2TlaJ"});var ii=function(){function t(t){var e=t.eventEmitter,i=t.engine,n=t.config,o=t.rootContainer;this._eventEmitter=e,this._engine=i,this._initUI(),this._bindEvents(),o.appendComponentElement(this.getElement()),n.hideMainUI&&this.hide()}return t.prototype.getElement=function(){return this.view.getElement()},t.prototype._initUI=function(){this.view=new ei},t.prototype._bindEvents=function(){this._unbindEvents=this._eventEmitter.bindEvents([[Vt.TOGGLE_PLAYBACK_WITH_KEYBOARD,this._showPlaybackChangeIndicator],[Vt.GO_BACKWARD_WITH_KEYBOARD,this.showRewind],[Vt.GO_FORWARD_WITH_KEYBOARD,this.showForward],[Vt.INCREASE_VOLUME_WITH_KEYBOARD,this.showIncreaseVolume],[Vt.DECREASE_VOLUME_WITH_KEYBOARD,this.showDecreaseVolume],[Vt.MUTE_WITH_KEYBOARD,this.showMute],[Vt.UNMUTE_WITH_KEYBOARD,this.showIncreaseVolume]],this)},t.prototype.showPause=function(){this.view.activatePauseIcon()},t.prototype.showPlay=function(){this.view.activatePlayIcon()},t.prototype.showRewind=function(){this.view.activateRewindIcon()},t.prototype.showForward=function(){this.view.activateForwardIcon()},t.prototype.showMute=function(){this.view.activateMuteVolumeIcon()},t.prototype.showIncreaseVolume=function(){this.view.activateIncreaseVolumeIcon()},t.prototype.showDecreaseVolume=function(){this.view.activateDecreaseVolumeIcon()},t.prototype.hideIcons=function(){this.view.deactivateIcon(),this._eventEmitter.emitAsync(Vt.HIDE_INTERACTION_INDICATOR)},t.prototype.show=function(){this.view.show()},t.prototype.hide=function(){this.view.hide()},t.prototype._showPlaybackChangeIndicator=function(){var t=this._engine.getCurrentState();t===Gt.PLAY_REQUESTED||t===Gt.PLAYING?this.view.activatePauseIcon():this.view.activatePlayIcon()},t.prototype.destroy=function(){this._unbindEvents(),this.view.destroy()},t.moduleName="interactionIndicator",t.View=ei,t.dependencies=["engine","eventEmitter","config","rootContainer"],t}();ee('.__1ASmF{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;cursor:pointer;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:opacity;transition-property:opacity;opacity:1;border:0;border-radius:0;outline:none;background-color:transparent;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__1ASmF:hover{opacity:.7}.__1Vt3d{visibility:hidden!important;width:0!important;min-width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important}.__3RC8o{position:absolute;z-index:100;top:0;right:0;bottom:0;left:0;display:none}.__3RC8o.__3k0Mi{display:-webkit-box;display:-ms-flexbox;display:flex}.__1mX3C,.__3RC8o.__3k0Mi{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__1mX3C{right:0;bottom:0;background:#000 no-repeat 50%;background-size:cover}.__1mX3C,.__1mX3C:before{position:absolute;top:0;left:0;width:100%;height:100%}.__1mX3C:before{content:"";background-color:rgba(0,0,0,.35)}.__3zDVy{position:relative;width:71px;height:71px;cursor:pointer;opacity:1}[data-playable-hook=player-container][data-playable-max-width~="550px"] .__3zDVy{width:54px;height:54px}[data-playable-hook=player-container][data-playable-max-width~="400px"] .__3zDVy{width:36px;height:36px}.__3zDVy:hover{opacity:.8}.__2CfdP{background:transparent}');var ni=function(t){function e(e){var i=t.call(this,e.theme)||this,n=e.callbacks;return i._callbacks=n,i._initDOM(),i._bindEvents(),i}return i(e,t),e.prototype._initDOM=function(){var t;this._$rootElement=Xt('<div class="'+(t={styles:this.styleNames,themeStyles:this.themeStyles}).styles.overlay+" "+t.styles.active+'" data-playable-hook="overlay" data-playable-component > <div class="'+t.styles.poster+'" data-playable-hook="overlay-content" > </div> <div class="'+t.styles.icon+'" data-playable-hook="overlay-play-button" > <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" preserveAspectRatio="xMidYMin slice" width="100%" style="padding-bottom: 100%; height: 1px; overflow: visible" > \x3c!-- padding-bottom: 100% * height/width --\x3e <g fill="none" fill-rule="evenodd" > <circle cx="18" cy="18" r="17" class="'+t.themeStyles.overlayPlaySvgStroke+'" stroke-width="2" /> <path class="'+t.themeStyles.overlayPlaySvgFill+'" d="M23.935 17.708l-10.313 6.033V11.676z" /> </g> </svg> </div></div>'),this._$content=Ke(this._$rootElement,"overlay-content"),this._$playButton=Ke(this._$rootElement,"overlay-play-button")},e.prototype._bindEvents=function(){this._$playButton.addEventListener("click",this._callbacks.onPlayClick)},e.prototype._unbindEvents=function(){this._$playButton.removeEventListener("click",this._callbacks.onPlayClick)},e.prototype.getElement=function(){return this._$rootElement},e.prototype.hideContent=function(){this._$rootElement.classList.remove(this.styleNames.active)},e.prototype.showContent=function(){this._$rootElement.classList.add(this.styleNames.active)},e.prototype.hide=function(){this._$rootElement.classList.add(this.styleNames.hidden)},e.prototype.show=function(){this._$rootElement.classList.remove(this.styleNames.hidden)},e.prototype.setPoster=function(t){this._$content.style.backgroundImage=t?"url('"+t+"')":"none"},e.prototype.turnOnOverlayTransparency=function(){this._$content.classList.add(this.styleNames.transparency)},e.prototype.turnOffOverlayTransparency=function(){this._$content.classList.remove(this.styleNames.transparency)},e.prototype.destroy=function(){this._unbindEvents(),this._$rootElement.parentNode&&this._$rootElement.parentNode.removeChild(this._$rootElement),this._$rootElement=null,this._$content=null,this._$playButton=null},e}(te);ni.setTheme({overlayPlaySvgFill:{fill:function(t){return t.color}},overlayPlaySvgStroke:{stroke:function(t){return t.color}}}),ni.extendStyleNames({controlButton:"__1ASmF",hidden:"__1Vt3d",overlay:"__3RC8o",active:"__3k0Mi",poster:"__1mX3C",icon:"__3zDVy",transparency:"__2CfdP"});var oi=function(){function t(t){var e=t.eventEmitter,i=t.engine,n=t.rootContainer,o=t.theme,r=t.config,s=t.mainUIBlock,a=t.loader;this.isHidden=!1,this._eventEmitter=e,this._engine=i,this._theme=o,this._mainUIBlock=s,this._loader=a,this._bindEvents(),this._initUI(),this.setPoster(r.poster),r.hideOverlay&&this.hide(),n.appendComponentElement(this.getElement())}return t.prototype.getElement=function(){return this.view.getElement()},t.prototype._initUI=function(){var e={callbacks:{onPlayClick:this._playVideo.bind(this)},theme:this._theme};this.view=new t.View(e)},t.prototype._bindEvents=function(){this._unbindEvents=this._eventEmitter.bindEvents([[Ht.STATE_CHANGED,this._updatePlayingState],[Ht.RESET,this._tryShowContent]],this)},t.prototype._updatePlayingState=function(t){var e=t.nextState;e===Gt.PLAY_REQUESTED?this._tryHideContent():e!==Gt.ENDED&&e!==Gt.SRC_SET||this._tryShowContent()},t.prototype._playVideo=function(){this._engine.play(),this._eventEmitter.emitAsync(Vt.PLAY_OVERLAY_CLICK)},t.prototype._tryShowContent=function(){this.isHidden||this._engine.isPaused&&this._showContent()},t.prototype._tryHideContent=function(){this.isHidden||this._hideContent()},t.prototype._hideContent=function(){this.view.hideContent(),this._loader.show(),this._mainUIBlock.enableShowingContent()},t.prototype._showContent=function(){this.view.showContent(),this._loader.hide(),this._mainUIBlock.disableShowingContent()},t.prototype.hide=function(){this.isHidden=!0,this.view.hide()},t.prototype.show=function(){this.isHidden=!1,this.view.show()},t.prototype.setPoster=function(t){this.view.setPoster(t)},t.prototype.turnOnOverlayTransparency=function(){this.view.turnOnOverlayTransparency()},t.prototype.turnOffOverlayTransparency=function(){this.view.turnOffOverlayTransparency()},t.prototype.destroy=function(){this._unbindEvents(),this.view.destroy()},t.moduleName="overlay",t.View=ni,t.dependencies=["engine","eventEmitter","rootContainer","theme","config","mainUIBlock","loader"],o([B("hideOverlay")],t.prototype,"hide",null),o([B("showOverlay")],t.prototype,"show",null),o([B()],t.prototype,"setPoster",null),o([B()],t.prototype,"turnOnOverlayTransparency",null),o([B()],t.prototype,"turnOffOverlayTransparency",null),t}();ee('.__1YHb4{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;cursor:pointer;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:opacity;transition-property:opacity;opacity:1;border:0;border-radius:0;outline:none;background-color:transparent;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__1YHb4:hover{opacity:.7}.__3MeyV{visibility:hidden!important;width:0!important;min-width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important}.__1J20N{position:absolute;z-index:90;top:50%;left:50%;display:none;clip:rect(0,48px,48px,24px);width:42px;height:42px;margin-top:-21px;margin-left:-21px;-webkit-animation:__3K3Iv 1s linear infinite;animation:__3K3Iv 1s linear infinite;color:#fff}.__1J20N.__29tvY{display:block}.__1J20N:after{clip:rect(4px,48px,48px,24px);-webkit-animation:__1RIdi 1s linear infinite;animation:__1RIdi 1s linear infinite}.__1J20N:after,.__1J20N:before{position:absolute;top:0;right:0;bottom:0;left:0;content:"";border:3px solid currentColor;border-radius:50%}.__1J20N:before{clip:rect(0,48px,48px,24px);-webkit-animation:__20o6x 1s linear infinite;animation:__20o6x 1s linear infinite}@-webkit-keyframes __1RIdi{50%{clip:rect(42px,48px,48px,24px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}}@keyframes __1RIdi{50%{clip:rect(42px,48px,48px,24px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}}@-webkit-keyframes __20o6x{50%{clip:rect(0,48px,9px,24px);-webkit-transform:rotate(135deg);transform:rotate(135deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}}@keyframes __20o6x{50%{clip:rect(0,48px,9px,24px);-webkit-transform:rotate(135deg);transform:rotate(135deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}}@-webkit-keyframes __3K3Iv{0%{-webkit-transform:rotate(0);transform:rotate(0);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}45%{-webkit-transform:rotate(18deg);transform:rotate(18deg);color:#fff}55%{-webkit-transform:rotate(54deg);transform:rotate(54deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes __3K3Iv{0%{-webkit-transform:rotate(0);transform:rotate(0);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}45%{-webkit-transform:rotate(18deg);transform:rotate(18deg);color:#fff}55%{-webkit-transform:rotate(54deg);transform:rotate(54deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}');var ri=function(t){function e(){var e,i=t.call(this)||this;return i._$rootElement=Xt('<div class="'+(e={styles:i.styleNames}).styles.loader+" "+e.styles.active+'" data-playable-component data-playable-hook="loader" ></div>'),i}return i(e,t),e.prototype.getElement=function(){return this._$rootElement},e.prototype.showContent=function(){this._$rootElement.classList.add(this.styleNames.active)},e.prototype.hideContent=function(){this._$rootElement.classList.remove(this.styleNames.active)},e.prototype.hide=function(){this._$rootElement.classList.add(this.styleNames.hidden)},e.prototype.show=function(){this._$rootElement.classList.remove(this.styleNames.hidden)},e.prototype.destroy=function(){this._$rootElement.parentNode&&this._$rootElement.parentNode.removeChild(this._$rootElement),this._$rootElement=null},e}(te);ri.extendStyleNames({controlButton:"__1YHb4",hidden:"__3MeyV",loader:"__1J20N",rotate:"__3K3Iv",active:"__29tvY",clip:"__1RIdi","clip-reverse":"__20o6x"});var si=function(){function t(t){var e=t.config,i=t.eventEmitter,n=t.engine,o=t.rootContainer;this._eventEmitter=i,this.isHidden=!1,this._engine=n,this._bindCallbacks(),this._initUI(),this._bindEvents(),this._hideContent(),o.appendComponentElement(this.getElement()),e.hideMainUI&&this.hide()}return t.prototype.getElement=function(){return this.view.getElement()},t.prototype._bindCallbacks=function(){this._showContent=this._showContent.bind(this),this._hideContent=this._hideContent.bind(this)},t.prototype._bindEvents=function(){this._unbindEvents=this._eventEmitter.bindEvents([[Ht.STATE_CHANGED,this._checkForWaitingState],[Ht.UPLOAD_SUSPEND,this.hide]],this)},t.prototype._checkForWaitingState=function(t){switch(t.nextState){case Gt.SEEK_IN_PROGRESS:case Gt.WAITING:this.startDelayedShow();break;case Gt.LOAD_STARTED:this._engine.isPreloadActive&&this._showContent();break;case Gt.READY_TO_PLAY:case Gt.PLAYING:case Gt.PAUSED:this.stopDelayedShow(),this._hideContent()}},t.prototype._initUI=function(){this.view=new t.View},t.prototype._showContent=function(){this.isHidden&&(this._eventEmitter.emitAsync(Vt.LOADER_SHOW),this.view.showContent(),this.isHidden=!1)},t.prototype._hideContent=function(){this.isHidden||(this._eventEmitter.emitAsync(Vt.LOADER_HIDE),this.view.hideContent(),this.isHidden=!0)},t.prototype.hide=function(){this.view.hide()},t.prototype.show=function(){this.view.show()},t.prototype.startDelayedShow=function(){this.isDelayedShowScheduled&&this.stopDelayedShow(),this._delayedShowTimeout=window.setTimeout(this._showContent,100)},t.prototype.stopDelayedShow=function(){window.clearTimeout(this._delayedShowTimeout),this._delayedShowTimeout=null},Object.defineProperty(t.prototype,"isDelayedShowScheduled",{get:function(){return Boolean(this._delayedShowTimeout)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._unbindEvents(),this.stopDelayedShow(),this.view.destroy()},t.moduleName="loader",t.View=ri,t.dependencies=["engine","eventEmitter","config","rootContainer"],t}();ee(".__3fUqI{position:absolute;top:0;right:0;bottom:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.__3fUqI .__3e2KW{position:relative;-webkit-box-flex:2;-ms-flex-positive:2;flex-grow:2}");var ai=function(t){function e(e){var i=t.call(this)||this;return i._initDOM(e.elements),i}return i(e,t),e.prototype._initDOM=function(t){this._$rootElement=Xt('<div class="'+{styles:this.styleNames}.styles.mainUiBlock+'" data-playable-component></div>');var e=document.createElement("div");e.classList.add(this.styleNames.tooltipContainerWrapper),e.appendChild(t.tooltipContainer),this._$rootElement.appendChild(t.topBlock),this._$rootElement.appendChild(e),this._$rootElement.appendChild(t.bottomBlock)},e.prototype.getElement=function(){return this._$rootElement},e.prototype.destroy=function(){this._$rootElement.parentNode&&this._$rootElement.parentNode.removeChild(this._$rootElement),this._$rootElement=null},e}(te);ai.extendStyleNames({mainUiBlock:"__3fUqI",tooltipContainerWrapper:"__3e2KW"});var li=function(){function t(t){this._hideTimeout=null,this._isContentShowingEnabled=!0,this._isContentShown=!1,this._shouldShowContent=!0,this._shouldAlwaysShow=!1,this._isDragging=!1;var e=t.config,i=t.eventEmitter,n=t.rootContainer,o=t.tooltipService,r=t.topBlock,s=t.bottomBlock,a=t.screen;this._eventEmitter=i,this._topBlock=r,this._bottomBlock=s,this._screen=a,this._tooltipService=o,this.isHidden=!1,this._shouldAlwaysShow=!1,this._initUI({tooltipContainer:o.tooltipContainerElement,topBlock:r.getElement(),bottomBlock:s.getElement()}),this._bindViewCallbacks(),this._bindEvents(),n.appendComponentElement(this.view.getElement()),e.hideMainUI&&this.hide()}return t.prototype.getElement=function(){return this.view.getElement()},t.prototype._initUI=function(e){this.view=new t.View({elements:e})},t.prototype._bindViewCallbacks=function(){this._startHideBlockTimeout=this._startHideBlockTimeout.bind(this),this._tryShowContent=this._tryShowContent.bind(this),this._tryHideContent=this._tryHideContent.bind(this)},t.prototype._bindEvents=function(){this._unbindEvents=this._eventEmitter.bindEvents([[Vt.MOUSE_MOVE_ON_PLAYER,this._startHideBlockTimeout],[Vt.MOUSE_LEAVE_ON_PLAYER,this._tryHideContent],[Vt.FOCUS_ENTER_ON_PLAYER,this._startHideBlockTimeout],[Vt.KEYBOARD_KEYDOWN_INTERCEPTED,this._startHideBlockTimeout],[Vt.LOADER_HIDE,this._startHideBlockTimeout],[Ht.STATE_CHANGED,this._updatePlayingState],[Vt.CONTROL_DRAG_START,this._onControlDragStart],[Vt.CONTROL_DRAG_END,this._onControlDragEnd]],this)},t.prototype._updatePlayingState=function(t){switch(t.nextState){case Gt.PLAY_REQUESTED:this._shouldShowContent=!1,this._startHideBlockTimeout();break;case Gt.ENDED:case Gt.PAUSED:case Gt.SRC_SET:this._shouldShowContent=!0,this._tryShowContent()}},Object.defineProperty(t.prototype,"_isBlockFocused",{get:function(){return this._bottomBlock.isFocused||this._topBlock.isFocused},enumerable:!0,configurable:!0}),t.prototype._startHideBlockTimeout=function(){this._stopHideBlockTimeout(),this._tryShowContent(),this._hideTimeout=window.setTimeout(this._tryHideContent,2e3)},t.prototype._stopHideBlockTimeout=function(){this._hideTimeout&&window.clearTimeout(this._hideTimeout)},t.prototype._tryShowContent=function(){this._isContentShowingEnabled&&this._showContent()},t.prototype._onControlDragStart=function(){this._isDragging=!0},t.prototype._onControlDragEnd=function(){this._isDragging=!1,this._tryHideContent()},t.prototype._showContent=function(){this.isHidden||this._isContentShown||(this._screen.showCursor(),this._eventEmitter.emitAsync(Vt.MAIN_BLOCK_SHOW),this._bottomBlock.showContent(),this._topBlock.showContent(),this._isContentShown=!0)},t.prototype._tryHideContent=function(){this._isBlockFocused||this._isDragging||this._shouldShowContent||this._shouldAlwaysShow||this._hideContent()},t.prototype._hideContent=function(){!this.isHidden&&this._isContentShown&&(this._isContentShowingEnabled&&this._screen.hideCursor(),this._eventEmitter.emitAsync(Vt.MAIN_BLOCK_HIDE),this._bottomBlock.hideContent(),this._topBlock.hideContent(),this._tooltipService.hide(),this._isContentShown=!1)},t.prototype.disableShowingContent=function(){this._isContentShowingEnabled=!1,this._hideContent()},t.prototype.enableShowingContent=function(){this._isContentShowingEnabled=!0,this._shouldShowContent&&this._showContent()},t.prototype.hide=function(){this.isHidden=!0,this._topBlock.hide(),this._bottomBlock.hide()},t.prototype.show=function(){this.isHidden=!1,this._topBlock.show(),this._bottomBlock.show()},t.prototype.setShouldAlwaysShow=function(t){this._shouldAlwaysShow=t,this._shouldAlwaysShow?this._tryShowContent():this._startHideBlockTimeout()},t.prototype.destroy=function(){this._stopHideBlockTimeout(),this._unbindEvents(),this.view.destroy()},t.moduleName="mainUIBlock",t.View=ai,t.dependencies=["config","screen","rootContainer","tooltipService","eventEmitter","topBlock","bottomBlock"],o([B("setMainUIShouldAlwaysShow")],t.prototype,"setShouldAlwaysShow",null),t}();ee('.__2Irx0{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;cursor:pointer;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:opacity;transition-property:opacity;opacity:1;border:0;border-radius:0;outline:none;background-color:transparent;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__2Irx0:hover{opacity:.7}.__JNzhk{visibility:hidden!important;width:0!important;min-width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important}.__2nOmO{position:relative;z-index:60}.__2nOmO::-moz-focus-inner{border:0}.__2nOmO.__2ThkU .__1gKBN,.__2nOmO.__2ThkU .__2RYBo{opacity:1}.__3wTlQ{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0}.__11-A7{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin-top:20px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}[data-playable-hook=player-container][data-playable-dir=ltr] .__11-A7{margin-left:20px}[data-playable-hook=player-container][data-playable-dir=rtl] .__11-A7{margin-right:20px;direction:rtl}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__11-A7{margin-top:30px}[data-playable-hook=player-container][data-playable-in-full-screen=true][data-playable-dir=ltr] .__11-A7{margin-left:30px}[data-playable-hook=player-container][data-playable-in-full-screen=true][data-playable-dir=rtl] .__11-A7{margin-right:30px;direction:rtl}[data-playable-hook=player-container][data-playable-max-width~="550px"] .__11-A7{margin-top:15px}[data-playable-hook=player-container][data-playable-max-width~="550px"][data-playable-dir=ltr] .__11-A7{margin-left:15px}[data-playable-hook=player-container][data-playable-max-width~="550px"][data-playable-dir=rtl] .__11-A7{margin-right:15px;direction:rtl}[data-playable-hook=player-container][data-playable-max-width~="280px"] .__11-A7{margin-top:12px}[data-playable-hook=player-container][data-playable-max-width~="280px"][data-playable-dir=ltr] .__11-A7{margin-left:12px}[data-playable-hook=player-container][data-playable-max-width~="280px"][data-playable-dir=rtl] .__11-A7{margin-right:12px;direction:rtl}.__1gKBN{max-width:calc(100% - 200px);-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.__1gKBN,.__2RYBo{-webkit-transition:opacity .2s;transition:opacity .2s;opacity:0}.__2RYBo{position:absolute;top:0;right:0;left:0;height:181px;pointer-events:none;background-image:-webkit-gradient(linear,left bottom,left top,from(transparent),color-stop(24%,rgba(0,0,0,.03)),color-stop(50%,rgba(0,0,0,.15)),color-stop(75%,rgba(0,0,0,.3)),to(rgba(0,0,0,.4)));background-image:linear-gradient(0deg,transparent,rgba(0,0,0,.03) 24%,rgba(0,0,0,.15) 50%,rgba(0,0,0,.3) 75%,rgba(0,0,0,.4));background-size:100% 182px}');var ci=function(t){function e(e){var i=t.call(this)||this,n=e.callbacks,o=e.elements;return i._callbacks=n,i._initDOM(o),i._bindEvents(),i}return i(e,t),e.prototype.getElement=function(){return this._$rootElement},e.prototype._initDOM=function(t){var e;this._$rootElement=Xt('<div data-playable-hook="top-block" class="'+(e={styles:this.styleNames}).styles.topBlock+'"> <div class="'+e.styles.background+'" data-playable-hook="screen-top-background"> </div> <div class="'+e.styles.elementsContainer+'"> <div class="'+e.styles.liveIndicatorContainer+'" data-playable-hook="live-indicator-container"> </div> <div class="'+e.styles.titleContainer+'" data-playable-hook="title-container"> </div> </div></div>'),this._$titleContainer=Ke(this._$rootElement,"title-container"),this._$liveIndicatorContainer=Ke(this._$rootElement,"live-indicator-container"),this._$titleContainer.appendChild(t.title),this._$liveIndicatorContainer.appendChild(t.liveIndicator)},e.prototype._preventClickPropagation=function(t){t.stopPropagation()},e.prototype._bindEvents=function(){this._$rootElement.addEventListener("click",this._preventClickPropagation),this._$rootElement.addEventListener("mousemove",this._callbacks.onBlockMouseMove),this._$rootElement.addEventListener("mouseleave",this._callbacks.onBlockMouseOut)},e.prototype._unbindEvents=function(){this._$rootElement.removeEventListener("click",this._preventClickPropagation),this._$rootElement.removeEventListener("mousemove",this._callbacks.onBlockMouseMove),this._$rootElement.removeEventListener("mouseleave",this._callbacks.onBlockMouseOut)},e.prototype.show=function(){this._$rootElement.classList.remove(this.styleNames.hidden)},e.prototype.hide=function(){this._$rootElement.classList.add(this.styleNames.hidden)},e.prototype.showContent=function(){this._$rootElement.classList.add(this.styleNames.activated)},e.prototype.hideContent=function(){this._$rootElement.classList.remove(this.styleNames.activated)},e.prototype.showTitle=function(){this._$titleContainer.classList.remove(this.styleNames.hidden)},e.prototype.hideTitle=function(){this._$titleContainer.classList.add(this.styleNames.hidden)},e.prototype.showLiveIndicator=function(){this._$liveIndicatorContainer.classList.remove(this.styleNames.hidden)},e.prototype.hideLiveIndicator=function(){this._$liveIndicatorContainer.classList.add(this.styleNames.hidden)},e.prototype.destroy=function(){this._unbindEvents(),this._$rootElement.parentNode&&this._$rootElement.parentNode.removeChild(this._$rootElement),this._$rootElement=null},e}(te);ci.extendStyleNames({controlButton:"__2Irx0",hidden:"__JNzhk",topBlock:"__2nOmO",activated:"__2ThkU",titleContainer:"__1gKBN",background:"__2RYBo",liveIndicatorContainer:"__3wTlQ",elementsContainer:"__11-A7"});var pi=function(){function t(t){this._isBlockFocused=!1,this.isHidden=!1,this._bindViewCallbacks(),this._initUI(this._getElements(t))}return t.prototype._bindViewCallbacks=function(){this._setFocusState=this._setFocusState.bind(this),this._removeFocusState=this._removeFocusState.bind(this)},t.prototype._initUI=function(e){var i={elements:e,callbacks:{onBlockMouseMove:this._setFocusState,onBlockMouseOut:this._removeFocusState}};this.view=new t.View(i)},t.prototype._getElements=function(t){var e=t.title,i=t.liveIndicator;return{title:e.getElement(),liveIndicator:i.getElement()}},t.prototype._setFocusState=function(){this._isBlockFocused=!0},t.prototype._removeFocusState=function(){this._isBlockFocused=!1},Object.defineProperty(t.prototype,"isFocused",{get:function(){return this._isBlockFocused},enumerable:!0,configurable:!0}),t.prototype.getElement=function(){return this.view.getElement()},t.prototype.hide=function(){this.isHidden=!0,this.view.hide()},t.prototype.show=function(){this.isHidden=!1,this.view.show()},t.prototype.showTitle=function(){this.view.showTitle()},t.prototype.hideTitle=function(){this.view.hideTitle()},t.prototype.showLiveIndicator=function(){this.view.showLiveIndicator()},t.prototype.hideLiveIndicator=function(){this.view.hideLiveIndicator()},t.prototype.showContent=function(){this.view.showContent()},t.prototype.hideContent=function(){this.view.hideContent()},t.prototype.destroy=function(){this.view.destroy()},t.moduleName="topBlock",t.View=ci,t.dependencies=["title","liveIndicator"],o([B()],t.prototype,"showTitle",null),o([B()],t.prototype,"hideTitle",null),o([B()],t.prototype,"showLiveIndicator",null),o([B()],t.prototype,"hideLiveIndicator",null),t}();ee('.__tyPdk{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;cursor:pointer;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:opacity;transition-property:opacity;opacity:1;border:0;border-radius:0;outline:none;background-color:transparent;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__tyPdk:hover{opacity:.7}.__3SyPm{visibility:hidden!important;width:0!important;min-width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important}.__324Zx{font-size:16px;line-height:17px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}[data-playable-hook=player-container][data-playable-max-width~="550px"] .__324Zx{font-size:14px;line-height:15px}[data-playable-hook=player-container][data-playable-max-width~="300px"] .__324Zx{font-size:12px;line-height:13px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__324Zx{font-size:20px;line-height:20px}.__324Zx.__2x3nu{cursor:pointer}');var hi=function(t){function e(e){var i=this,n=e.callbacks,o=e.theme;return(i=t.call(this,o)||this)._callbacks=n,i._initDOM(),i._bindEvents(),i}return i(e,t),e.prototype._initDOM=function(){var t;this._$rootElement=Xt('<div class="'+(t={styles:this.styleNames,themeStyles:this.themeStyles}).styles.title+" "+t.themeStyles.titleText+'" data-playable-hook="video-title"></div>')},e.prototype._bindEvents=function(){this._$rootElement.addEventListener("click",this._callbacks.onClick)},e.prototype._unbindEvents=function(){this._$rootElement.removeEventListener("click",this._callbacks.onClick)},e.prototype.setDisplayAsLink=function(t){Ge(this._$rootElement,this.styleNames.link,t)},e.prototype.setTitle=function(t){t?(this.show(),this._$rootElement.innerHTML=t):this.hide()},e.prototype.show=function(){this._$rootElement.classList.remove(this.styleNames.hidden)},e.prototype.hide=function(){this._$rootElement.classList.add(this.styleNames.hidden)},e.prototype.getElement=function(){return this._$rootElement},e.prototype.destroy=function(){this._unbindEvents(),this._$rootElement.parentNode&&this._$rootElement.parentNode.removeChild(this._$rootElement),this._$rootElement=null},e}(te);hi.setTheme({titleText:{color:function(t){return t.color}}}),hi.extendStyleNames({controlButton:"__tyPdk",hidden:"__3SyPm",title:"__324Zx",link:"__2x3nu"});var ui=function(){function t(t){var e=t.theme,i=t.config;this._theme=e,this._bindCallbacks(),this._initUI(),this.setTitle(i.title)}return t.prototype.getElement=function(){return this.view.getElement()},t.prototype._bindCallbacks=function(){this._triggerCallback=this._triggerCallback.bind(this)},t.prototype._initUI=function(){var e={theme:this._theme,callbacks:{onClick:this._triggerCallback}};this.view=new t.View(e),this.view.setTitle()},t.prototype.setTitle=function(t){this.view.setTitle(t)},t.prototype.setTitleClickCallback=function(t){this._callback=t,this.view.setDisplayAsLink(Boolean(this._callback))},t.prototype._triggerCallback=function(){this._callback&&this._callback()},t.prototype.hide=function(){this.isHidden=!0,this.view.hide()},t.prototype.show=function(){this.isHidden=!1,this.view.show()},t.prototype.destroy=function(){this.view.destroy()},t.moduleName="title",t.View=hi,t.dependencies=["config","theme"],o([B()],t.prototype,"setTitle",null),o([B()],t.prototype,"setTitleClickCallback",null),t}();ee('.__1FH60{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;cursor:pointer;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:opacity;transition-property:opacity;opacity:1;border:0;border-radius:0;outline:none;background-color:transparent;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__1FH60:hover{opacity:.7}.__1MQc0{visibility:hidden!important;width:0!important;min-width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important}.__3Vudz{position:relative;-webkit-transition:background-color .2s;transition:background-color .2s;background-color:#959595}[data-playable-hook=player-container][data-playable-dir=ltr] .__3Vudz{margin-right:15px;direction:ltr}[data-playable-hook=player-container][data-playable-dir=rtl] .__3Vudz{margin-left:15px;direction:rtl}[data-playable-hook=player-container][data-playable-in-full-screen=true][data-playable-dir=ltr] .__3Vudz{margin-right:20px}[data-playable-hook=player-container][data-playable-in-full-screen=true][data-playable-dir=rtl] .__3Vudz{margin-left:20px}[data-playable-hook=player-container][data-playable-max-width~="550px"][data-playable-dir=ltr] .__3Vudz{margin-right:10px}[data-playable-hook=player-container][data-playable-max-width~="550px"][data-playable-dir=rtl] .__3Vudz{margin-left:10px}[data-playable-hook=player-container][data-playable-max-width~="280px"] .__3Vudz{padding:2px 3px}[data-playable-hook=player-container][data-playable-max-width~="280px"][data-playable-dir=ltr] .__3Vudz{margin-right:10px}[data-playable-hook=player-container][data-playable-max-width~="280px"][data-playable-dir=rtl] .__3Vudz{margin-left:10px}.__3Vudz.__18KqE{cursor:default}.__3Vudz.__2Lobb,.__3Vudz:hover:not(.__18KqE){background-color:#ea492e}.__2efwz{cursor:pointer}button.__fQcZU{font-size:12px;line-height:14px;padding:5px 6px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-transform:uppercase!important;color:#fff;border:0;border-radius:0;outline:none;background-color:transparent}[data-playable-hook=player-container][data-playable-max-width~="280px"] button.__fQcZU{font-size:10px;line-height:12px}');var _i=function(t){function e(e){var i=t.call(this)||this;return i._callbacks=e.callbacks,i._textMap=e.textMap,i._tooltipService=e.tooltipService,i._initDOM(),i._bindEvents(),i}return i(e,t),e.prototype._initDOM=function(){var t;this._$rootElement=Xt('<div class="'+(t={styles:this.styleNames,themeStyles:this.themeStyles,texts:{}}).styles.liveIndicator+" "+t.styles.hidden+'"> <button tabindex="0" class="'+t.styles.liveIndicatorButton+'" aria-label="'+(t.texts.label||"")+'" data-playable-hook="live-indicator-button"> '+(t.texts.text||"")+" </button></div>"),this._$button=Ke(this._$rootElement,"live-indicator-button"),this._tooltipReference=this._tooltipService.createReference(this._$button,{text:this._textMap.get(jt.LIVE_SYNC_TOOLTIP)}),this.toggle(!1),this.toggleActive(!1),this.toggleEnded(!1)},e.prototype._bindEvents=function(){this._$rootElement.addEventListener("click",this._callbacks.onClick)},e.prototype._unbindEvents=function(){this._$rootElement.removeEventListener("click",this._callbacks.onClick)},e.prototype.toggleActive=function(t){Ge(this._$rootElement,this.styleNames.active,t),Ge(this._$button,this.styleNames.clickable,!t),t?(this._$button.setAttribute("disabled","true"),this._tooltipReference.disable()):(this._$button.removeAttribute("disabled"),this._tooltipReference.enable())},e.prototype.toggleEnded=function(t){Ge(this._$rootElement,this.styleNames.ended,t),this._$button.innerText=this._textMap.get(jt.LIVE_INDICATOR_TEXT,{isEnded:t}),this._$button.setAttribute("aria-label",t?"":this._textMap.get(jt.LIVE_SYNC_LABEL)),this._$button.setAttribute("disabled","true"),t?this._tooltipReference.disable():this._tooltipReference.enable()},e.prototype.show=function(){this.toggle(!0)},e.prototype.hide=function(){this.toggle(!1)},e.prototype.toggle=function(t){Ge(this._$rootElement,this.styleNames.hidden,!t)},e.prototype.getElement=function(){return this._$rootElement},e.prototype.destroy=function(){this._unbindEvents(),this._tooltipReference.destroy(),this._$rootElement.parentNode&&this._$rootElement.parentNode.removeChild(this._$rootElement),this._$rootElement=null,this._$button=null},e}(te);_i.extendStyleNames({controlButton:"__1FH60",hidden:"__1MQc0",liveIndicator:"__3Vudz",ended:"__18KqE",active:"__2Lobb",clickable:"__2efwz",liveIndicatorButton:"__fQcZU"});var di=function(){function t(t){var e=t.engine,i=t.eventEmitter,n=t.textMap,o=t.tooltipService;this._isHidden=!0,this._isActive=!1,this._isEnded=!1,this._engine=e,this._eventEmitter=i,this._textMap=n,this._tooltipService=o,this._bindCallbacks(),this._initUI(),this._bindEvents(),this._initInterceptor()}return t.prototype.getElement=function(){return this.view.getElement()},t.prototype._initInterceptor=function(){var t,e=this;this._interceptor=new ze(this.getElement(),((t={})[Ye.SPACE_BAR]=function(t){t.stopPropagation(),e._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED),e._syncWithLive()},t[Ye.ENTER]=function(t){t.stopPropagation(),e._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED),e._syncWithLive()},t))},Object.defineProperty(t.prototype,"isHidden",{get:function(){return this._isHidden},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActive",{get:function(){return this._isActive},enumerable:!0,configurable:!0}),t.prototype.show=function(){this._toggle(!0)},t.prototype.hide=function(){this._toggle(!1)},t.prototype._initUI=function(){this.view=new t.View({callbacks:{onClick:this._syncWithLive},textMap:this._textMap,tooltipService:this._tooltipService})},t.prototype._bindCallbacks=function(){this._syncWithLive=this._syncWithLive.bind(this)},t.prototype._bindEvents=function(){var t=this;this._unbindEvents=this._eventEmitter.bindEvents([[Ht.LIVE_STATE_CHANGED,this._processStateChange],[Vt.PROGRESS_SYNC_BUTTON_MOUSE_ENTER,function(){t.view.toggleActive(!0)}],[Vt.PROGRESS_SYNC_BUTTON_MOUSE_LEAVE,function(){t.view.toggleActive(t._isActive)}]],this)},t.prototype._processStateChange=function(t){switch(t.nextState){case qt.NONE:this._toggle(!1),this._toggleActive(!1),this._toggleEnded(!1);break;case qt.INITIAL:this._toggle(!0);break;case qt.SYNC:this._toggleActive(!0);break;case qt.NOT_SYNC:this._toggleActive(!1);break;case qt.ENDED:this._toggleActive(!1),this._toggleEnded(!0)}},t.prototype._syncWithLive=function(){this._isEnded||this._engine.syncWithLive()},t.prototype._toggle=function(t){this._isHidden=!t,this.view.toggle(t)},t.prototype._toggleActive=function(t){this._isActive=t,this.view.toggleActive(t)},t.prototype._toggleEnded=function(t){this._isEnded=t,this.view.toggleEnded(t)},t.prototype.destroy=function(){this._unbindEvents(),this._interceptor.destroy(),this.view.destroy()},t.moduleName="liveIndicator",t.View=_i,t.dependencies=["engine","eventEmitter","textMap","tooltipService"],t}();ee('.__2zYHZ{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;cursor:pointer;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:opacity;transition-property:opacity;opacity:1;border:0;border-radius:0;outline:none;background-color:transparent;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__2zYHZ:hover{opacity:.7}.__361S0{visibility:hidden!important;width:0!important;min-width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important}.__3Y_rW{z-index:60;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.__3Y_rW::-moz-focus-inner{border:0}.__3Y_rW.__2bJeD .__1esHz,.__3Y_rW.__YvJ-R .__1esHz,.__3Y_rW.__YvJ-R .__2CxAg,.__3Y_rW.__YvJ-R .__2Ozxp,.__3Y_rW.__YvJ-R .__2ZL6j,.__3Y_rW.__YvJ-R .__qaM9T{opacity:1}.__3Y_rW.__2N6oy .__3q_py{margin-right:14px}[data-playable-hook=player-container][data-playable-max-width~="550px"] .__3Y_rW.__2N6oy .__3q_py{margin-right:7px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__3Y_rW.__2N6oy .__3q_py{margin-right:25px}.__3Y_rW.__1jT2c .__3q_py,.__3Y_rW.__1mEi9 .__25g5A,.__3Y_rW.__1rhHL .__2CxAg,.__3Y_rW.__2N6oy .__1esHz,.__3Y_rW.__32pcE .__2N6cy,.__3Y_rW.__41JXw .__1Zwk-,.__3Y_rW.__qisqf .__2Gxyu,.__3Y_rW.__WY-f5 .__tOmqU{display:none}.__1MGej{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-flex:2;-ms-flex-positive:2;flex-grow:2}.__2CxAg{position:relative;top:2px;padding:0 20px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__2CxAg{top:3px;padding:0 30px}[data-playable-hook=player-container][data-playable-max-width~="550px"] .__2CxAg{padding:0 15px}[data-playable-hook=player-container][data-playable-max-width~="280px"] .__2CxAg{padding:0 12px}.__1esHz,.__2CxAg,.__2Ozxp,.__qaM9T{-webkit-transition:opacity .2s;transition:opacity .2s;opacity:0}.__2Ozxp,.__qaM9T{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;width:100%;max-width:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__qaM9T{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.__1esHz,.__2Ozxp,.__qaM9T{height:54px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__1esHz,[data-playable-hook=player-container][data-playable-in-full-screen=true] .__2Ozxp,[data-playable-hook=player-container][data-playable-in-full-screen=true] .__qaM9T{height:80px}[data-playable-hook=player-container][data-playable-max-width~="550px"] .__1esHz,[data-playable-hook=player-container][data-playable-max-width~="550px"] .__2Ozxp,[data-playable-hook=player-container][data-playable-max-width~="550px"] .__qaM9T{height:42px}[data-playable-hook=player-container][data-playable-max-width~="350px"] .__1esHz,[data-playable-hook=player-container][data-playable-max-width~="350px"] .__2Ozxp,[data-playable-hook=player-container][data-playable-max-width~="350px"] .__qaM9T{height:36px}.__25g5A{margin-right:8px;margin-left:13px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__25g5A{margin-right:20px;margin-left:20px}[data-playable-hook=player-container][data-playable-max-width~="550px"] .__25g5A{margin-left:7px}[data-playable-hook=player-container][data-playable-max-width~="280px"] .__25g5A{margin-left:4px}.__1Zwk-{margin-right:13px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__1Zwk-{margin-right:20px}.__2N6cy{margin-right:18px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__2N6cy{margin-right:30px}[data-playable-hook=player-container][data-playable-max-width~="400px"] .__2N6cy{display:none}.__2Gxyu{margin-right:8px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__2Gxyu{margin-right:18px}.__3q_py{margin-right:8px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__3q_py{margin-right:18px}.__tOmqU{margin-right:8px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__tOmqU{margin-right:18px}.__1esHz{display:-webkit-box;display:-ms-flexbox;display:flex;margin-right:14px}[data-playable-hook=player-container][data-playable-max-width~="550px"] .__1esHz{margin-right:9px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__1esHz{margin-right:23px}[data-playable-hook=player-container][data-playable-max-width~="280px"] .__1esHz{margin-right:12px}.__39M0e{margin-right:8px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__39M0e{margin-right:18px}.__2ZL6j{position:absolute;right:0;bottom:0;left:0;height:181px;-webkit-transition:opacity .2s;transition:opacity .2s;pointer-events:none;opacity:0;background-image:-webkit-gradient(linear,left top,left bottom,from(transparent),color-stop(24%,rgba(0,0,0,.03)),color-stop(50%,rgba(0,0,0,.15)),color-stop(75%,rgba(0,0,0,.3)),to(rgba(0,0,0,.4)));background-image:linear-gradient(180deg,transparent,rgba(0,0,0,.03) 24%,rgba(0,0,0,.15) 50%,rgba(0,0,0,.3) 75%,rgba(0,0,0,.4));background-size:100% 182px}');var yi=function(t){function e(e){var i=t.call(this)||this,n=e.callbacks,o=e.elements;return i._callbacks=n,i._initDOM(o),i._bindEvents(),i}return i(e,t),e.prototype._initDOM=function(t){var e;this._$rootElement=Xt('<div data-playable-hook="bottom-block" class="'+(e={styles:this.styleNames}).styles.bottomBlock+'"> <div class="'+e.styles.background+'" data-playable-hook="screen-bottom-background"> </div> <div class="'+e.styles.progressBarContainer+'" data-playable-hook="progress-bar-container"> </div> <div class="'+e.styles.elementsContainer+'"> <div class="'+e.styles.controlsContainerLeft+'" data-playable-hook="controls-container-left"> <div class="'+e.styles.playContainer+'" data-playable-hook="play-container"> </div> <div class="'+e.styles.volumeContainer+'" data-playable-hook="volume-container"> </div> <div class="'+e.styles.timeContainer+'" data-playable-hook="time-container"> </div> </div> <div class="'+e.styles.controlsContainerRight+'" data-playable-hook="controls-container-right"> <div class="'+e.styles.pictureInPictureContainer+'" data-playable-hook="picture-in-picture-container"> </div> <div class="'+e.styles.downloadContainer+'" data-playable-hook="download-container"> </div> <div class="'+e.styles.fullScreenContainer+'" data-playable-hook="full-screen-container"> </div> </div> <div class="'+e.styles.logoContainer+'" data-playable-hook="logo-container"> </div> </div></div>'),this._$leftControllsContainer=Ke(this._$rootElement,"controls-container-left"),this._$rightControllsContainer=Ke(this._$rootElement,"controls-container-right");var i=Ke(this._$rootElement,"play-container"),n=Ke(this._$rootElement,"volume-container"),o=Ke(this._$rootElement,"time-container"),r=Ke(this._$rootElement,"full-screen-container"),s=Ke(this._$rootElement,"logo-container"),a=Ke(this._$rootElement,"progress-bar-container"),l=Ke(this._$rootElement,"download-container"),c=Ke(this._$rootElement,"picture-in-picture-container");i.appendChild(t.play),n.appendChild(t.volume),o.appendChild(t.time),r.appendChild(t.fullScreen),s.appendChild(t.logo),a.appendChild(t.progress),l.appendChild(t.download),c.appendChild(t.pictureInPicture)},e.prototype._preventClickPropagation=function(t){t.stopPropagation()},e.prototype._bindEvents=function(){this._$rootElement.addEventListener("click",this._preventClickPropagation),this._$rootElement.addEventListener("mousemove",this._callbacks.onBlockMouseMove),this._$rootElement.addEventListener("mouseleave",this._callbacks.onBlockMouseOut)},e.prototype._unbindEvents=function(){this._$rootElement.removeEventListener("click",this._preventClickPropagation),this._$rootElement.removeEventListener("mousemove",this._callbacks.onBlockMouseMove),this._$rootElement.removeEventListener("mouseleave",this._callbacks.onBlockMouseOut)},e.prototype.addControl=function(t,e,i){var n=document.createElement("div");n.setAttribute("data-playable-hook","additional-"+t),n.classList.add(this.styleNames.additionalButton),n.appendChild(e),"left"!==i?this._$rightControllsContainer.insertBefore(n,this._$rightControllsContainer.children[0]):this._$leftControllsContainer.appendChild(n)},e.prototype.setShouldLogoShowAlwaysFlag=function(t){Ge(this._$rootElement,this.styleNames.showLogoAlways,t),this.showLogo()},e.prototype.showPlayControl=function(){this._$rootElement.classList.remove(this.styleNames.playControlHidden)},e.prototype.hidePlayControl=function(){this._$rootElement.classList.add(this.styleNames.playControlHidden)},e.prototype.showTimeControl=function(){this._$rootElement.classList.remove(this.styleNames.timeControlHidden)},e.prototype.hideTimeControl=function(){this._$rootElement.classList.add(this.styleNames.timeControlHidden)},e.prototype.showVolumeControl=function(){this._$rootElement.classList.remove(this.styleNames.volumeControlHidden)},e.prototype.hideVolumeControl=function(){this._$rootElement.classList.add(this.styleNames.volumeControlHidden)},e.prototype.showFullScreenControl=function(){this._$rootElement.classList.remove(this.styleNames.fullScreenControlHidden)},e.prototype.hideFullScreenControl=function(){this._$rootElement.classList.add(this.styleNames.fullScreenControlHidden)},e.prototype.showLogo=function(){this._$rootElement.classList.remove(this.styleNames.logoHidden)},e.prototype.hideLogo=function(){this._$rootElement.classList.add(this.styleNames.logoHidden)},e.prototype.showProgressControl=function(){this._$rootElement.classList.remove(this.styleNames.progressControlHidden)},e.prototype.hideProgressControl=function(){this._$rootElement.classList.add(this.styleNames.progressControlHidden)},e.prototype.showDownloadButton=function(){this._$rootElement.classList.remove(this.styleNames.downloadButtonHidden)},e.prototype.hidePictureInPictureControl=function(){this._$rootElement.classList.add(this.styleNames.pictureInPictureButtonHidden)},e.prototype.showPictureInPictureControl=function(){this._$rootElement.classList.remove(this.styleNames.pictureInPictureButtonHidden)},e.prototype.hideDownloadButton=function(){this._$rootElement.classList.add(this.styleNames.downloadButtonHidden)},e.prototype.show=function(){this._$rootElement.classList.remove(this.styleNames.hidden)},e.prototype.hide=function(){this._$rootElement.classList.add(this.styleNames.hidden)},e.prototype.getElement=function(){return this._$rootElement},e.prototype.showContent=function(){this._$rootElement.classList.add(this.styleNames.activated)},e.prototype.hideContent=function(){this._$rootElement.classList.remove(this.styleNames.activated)},e.prototype.destroy=function(){this._unbindEvents(),this._$rootElement.parentNode&&this._$rootElement.parentNode.removeChild(this._$rootElement),this._$rootElement=null},e}(te);yi.extendStyleNames({controlButton:"__2zYHZ",hidden:"__361S0",bottomBlock:"__3Y_rW",activated:"__YvJ-R",progressBarContainer:"__2CxAg",controlsContainerLeft:"__2Ozxp",controlsContainerRight:"__qaM9T",logoContainer:"__1esHz",background:"__2ZL6j",showLogoAlways:"__2bJeD",logoHidden:"__2N6oy",fullScreenContainer:"__3q_py",playControlHidden:"__1mEi9",playContainer:"__25g5A",timeControlHidden:"__32pcE",timeContainer:"__2N6cy",volumeControlHidden:"__41JXw",volumeContainer:"__1Zwk-",fullScreenControlHidden:"__1jT2c",progressControlHidden:"__1rhHL",downloadButtonHidden:"__qisqf",downloadContainer:"__2Gxyu",pictureInPictureButtonHidden:"__WY-f5",pictureInPictureContainer:"__tOmqU",elementsContainer:"__1MGej",additionalButton:"__39M0e"});var mi=function(){function t(t){this._isBlockFocused=!1,this.isHidden=!1;var e=t.eventEmitter;this._eventEmitter=e,this._bindViewCallbacks(),this._initUI(this._getControlElements(t)),this._bindEvents()}return t.prototype._getControlElements=function(t){var e=t.playControl,i=t.progressControl,n=t.timeControl,o=t.volumeControl,r=t.fullScreenControl,s=t.logo,a=t.downloadButton,l=t.pictureInPictureControl;return{play:e.getElement(),progress:i.getElement(),time:n.getElement(),volume:o.getElement(),fullScreen:r.getElement(),download:a.getElement(),logo:s.getElement(),pictureInPicture:l.getElement()}},t.prototype.getElement=function(){return this.view.getElement()},t.prototype.addControl=function(t,e,i){var n=(i||{}).position,o=void 0===n?"right":n;this.view.addControl(t,e,o)},t.prototype._initUI=function(e){var i={elements:e,callbacks:{onBlockMouseMove:this._setFocusState,onBlockMouseOut:this._removeFocusState}};this.view=new t.View(i),this.hideLogo(),this.hideDownloadButton()},t.prototype._bindEvents=function(){this._unbindEvents=this._eventEmitter.bindEvents([[Vt.FULL_SCREEN_STATE_CHANGED,this._removeFocusState]],this)},t.prototype._bindViewCallbacks=function(){this._setFocusState=this._setFocusState.bind(this),this._removeFocusState=this._removeFocusState.bind(this)},t.prototype._setFocusState=function(){this._isBlockFocused=!0},t.prototype._removeFocusState=function(){this._isBlockFocused=!1},Object.defineProperty(t.prototype,"isFocused",{get:function(){return this._isBlockFocused},enumerable:!0,configurable:!0}),t.prototype.showContent=function(){this.view.showContent()},t.prototype.hideContent=function(){this.view.hideContent()},t.prototype.hide=function(){this.isHidden=!0,this.view.hide()},t.prototype.show=function(){this.isHidden=!1,this.view.show()},t.prototype.setAlwaysShowLogo=function(t){this.view.setShouldLogoShowAlwaysFlag(t)},t.prototype.hideLogo=function(){this.view.hideLogo()},t.prototype.showLogo=function(){this.view.showLogo()},t.prototype.showPlayControl=function(){this.view.showPlayControl()},t.prototype.showVolumeControl=function(){this.view.showVolumeControl()},t.prototype.showTimeControl=function(){this.view.showTimeControl()},t.prototype.showFullScreenControl=function(){this.view.showFullScreenControl()},t.prototype.showPictureInPictureControl=function(){this.view.showPictureInPictureControl()},t.prototype.showProgressControl=function(){this.view.showProgressControl()},t.prototype.showDownloadButton=function(){this.view.showDownloadButton()},t.prototype.hidePlayControl=function(){this.view.hidePlayControl()},t.prototype.hideVolumeControl=function(){this.view.hideVolumeControl()},t.prototype.hideTimeControl=function(){this.view.hideTimeControl()},t.prototype.hideFullScreenControl=function(){this.view.hideFullScreenControl()},t.prototype.hidePictureInPictureControl=function(){this.view.hidePictureInPictureControl()},t.prototype.hideProgressControl=function(){this.view.hideProgressControl()},t.prototype.hideDownloadButton=function(){this.view.hideDownloadButton()},t.prototype.destroy=function(){this._unbindEvents(),this.view.destroy()},t.moduleName="bottomBlock",t.View=yi,t.dependencies=["playControl","progressControl","timeControl","volumeControl","fullScreenControl","logo","downloadButton","eventEmitter","pictureInPictureControl"],o([B()],t.prototype,"setAlwaysShowLogo",null),o([B()],t.prototype,"hideLogo",null),o([B()],t.prototype,"showLogo",null),o([B()],t.prototype,"showPlayControl",null),o([B()],t.prototype,"showVolumeControl",null),o([B()],t.prototype,"showTimeControl",null),o([B()],t.prototype,"showFullScreenControl",null),o([B()],t.prototype,"showPictureInPictureControl",null),o([B()],t.prototype,"showProgressControl",null),o([B()],t.prototype,"showDownloadButton",null),o([B()],t.prototype,"hidePlayControl",null),o([B()],t.prototype,"hideVolumeControl",null),o([B()],t.prototype,"hideTimeControl",null),o([B()],t.prototype,"hideFullScreenControl",null),o([B()],t.prototype,"hidePictureInPictureControl",null),o([B()],t.prototype,"hideProgressControl",null),o([B()],t.prototype,"hideDownloadButton",null),t}();ee(".__E3x3L{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;cursor:pointer;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:opacity;transition-property:opacity;opacity:1;border:0;border-radius:0;outline:none;background-color:transparent;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__E3x3L:hover{opacity:.7}.__3R_Au{visibility:hidden!important;width:0!important;min-width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important}.__1TO08{position:absolute;z-index:100;visibility:hidden;-webkit-transition:opacity .2s,visibility .2s;transition:opacity .2s,visibility .2s;opacity:0}.__1TO08.__3-qca{padding:4px 5px;background:rgba(0,0,0,.5)}.__1TO08.__37y2K{visibility:visible;opacity:1}.__3-qca .__2s85x{font-size:11px;line-height:12px;white-space:nowrap;color:#fff}");var fi,vi=function(t){function e(){var e=t.call(this)||this;return e._isHidden=!0,e._initDOM(),e}return i(e,t),e.prototype._initDOM=function(){var t;this._$rootElement=Xt('<div class="'+(t={styles:this.styleNames}).styles.tooltip+'" role="tooltip"> <div class="'+t.styles.tooltipInner+'" data-playable-hook="tooltip-inner"></div></div>'),this._$tooltipInner=Ke(this._$rootElement,"tooltip-inner")},e.prototype.getElement=function(){return this._$rootElement},Object.defineProperty(e.prototype,"isHidden",{get:function(){return this._isHidden},enumerable:!0,configurable:!0}),e.prototype.show=function(){this._isHidden&&(this._isHidden=!1,this._$rootElement.classList.add(this.styleNames.tooltipVisible))},e.prototype.hide=function(){this._isHidden||(this._isHidden=!0,this._$rootElement.classList.remove(this.styleNames.tooltipVisible))},e.prototype.setText=function(t){this.clearElement(),this._showAsText(),this._$tooltipInner.innerText=t},e.prototype.clearElement=function(){this._$tooltipInner.firstChild&&this._$tooltipInner.removeChild(this._$tooltipInner.firstChild)},e.prototype.setElement=function(t){t!==this._$tooltipInner.firstChild&&(this._showAsElement(),this.clearElement(),t&&this._$tooltipInner.appendChild(t))},e.prototype._showAsText=function(){this._$rootElement.classList.remove(this.styleNames.showAsElement),this._$rootElement.classList.add(this.styleNames.showAsText)},e.prototype._showAsElement=function(){this._$rootElement.classList.remove(this.styleNames.showAsText),this._$rootElement.classList.add(this.styleNames.showAsElement)},e.prototype.setStyle=function(t){var e=this;Object.keys(t).forEach(function(i){e._$rootElement.style[i]=t[i]})},e.prototype.destroy=function(){this._$rootElement=null,this._$tooltipInner=null},e}(Qt);function bi(t,e){return t+e/2}function gi(t,e,i){void 0===i&&(i=bi);var n=t.getBoundingClientRect(),o=e.getBoundingClientRect();return{placement:n.top>o.top?fi.BOTTOM:fi.TOP,x:i(n.left-o.left,n.width)}}vi.extendStyleNames({controlButton:"__E3x3L",hidden:"__3R_Au",tooltip:"__1TO08",showAsText:"__3-qca",tooltipVisible:"__37y2K",tooltipInner:"__2s85x"}),function(t){t.TOP="top",t.BOTTOM="bottom"}(fi||(fi={}));var Ei=["mouseenter","focus"],wi=["mouseleave","blur"],ki=function(){function t(t,e,i){this._$reference=t,this._options=i,this._tooltipService=e,this._eventListeners=[],this._bindEvents()}return t.prototype._bindEvents=function(){var t=this;Ei.forEach(function(e){var i=function(){t.show()};t._eventListeners.push({event:e,fn:i}),t._$reference.addEventListener(e,i)}),wi.forEach(function(e){var i=function(){t.hide()};t._eventListeners.push({event:e,fn:i}),t._$reference.addEventListener(e,i)})},Object.defineProperty(t.prototype,"isHidden",{get:function(){return this._tooltipService.isHidden},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this._isDisabled},enumerable:!0,configurable:!0}),t.prototype.show=function(){this._isDisabled||this._tooltipService.show({text:this._options.text,element:this._options.element,position:gi(this._$reference,this._tooltipService.tooltipContainerElement)})},t.prototype.hide=function(){this._tooltipService.hide()},t.prototype.setText=function(t){this._options.text=t,this._tooltipService.setText(t)},t.prototype.disable=function(){this._isDisabled=!0},t.prototype.enable=function(){this._isDisabled=!1},t.prototype.destroy=function(){var t=this;this._eventListeners.forEach(function(e){var i=e.event,n=e.fn;t._$reference.removeEventListener(i,n)}),this._eventListeners=null,this._$reference=null,this._tooltipService=null,this._options=null},t}();ee(".__2guVa{position:absolute;top:0;right:0;bottom:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;margin:10px 10px 6px}");var xi=function(t){function e(e){var i=t.call(this)||this;return i._tooltip=e,i._initDOM(),i}return i(e,t),e.prototype.getElement=function(){return this._$rootElement},e.prototype._initDOM=function(){this._$rootElement=Xt('<div class="'+{styles:this.styleNames}.styles.tooltipContainer+'" data-playable-component></div>'),this._$rootElement.appendChild(this._tooltip.getElement())},e.prototype.getTooltipPositionStyles=function(t){return"function"==typeof t&&(t=t(this._$rootElement)),t.placement===fi.TOP?{left:this._getTooltipLeftX(t.x)+"px",top:0,bottom:"initial"}:{left:this._getTooltipLeftX(t.x)+"px",top:"initial",bottom:0}},e.prototype.destroy=function(){this._tooltip=null,this._$rootElement=null},e.prototype._getTooltipLeftX=function(t){var e=this._tooltip.getElement().getBoundingClientRect(),i=this._$rootElement.getBoundingClientRect(),n=t-e.width/2;return n=Math.max(n,0),n=Math.min(n,i.width-e.width)},e}(Qt);xi.extendStyleNames({tooltipContainer:"__2guVa"});var Si=function(){function t(t){var e=t.eventEmitter;this._eventEmitter=e,this._tooltip=new vi,this._tooltipContainer=new xi(this._tooltip),this._bindEvents()}return Object.defineProperty(t.prototype,"isHidden",{get:function(){return this._tooltip.isHidden},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipContainerElement",{get:function(){return this._tooltipContainer.getElement()},enumerable:!0,configurable:!0}),t.prototype._bindEvents=function(){this._unbindEvents=this._eventEmitter.bindEvents([[Vt.FULL_SCREEN_STATE_CHANGED,this.hide]],this)},t.prototype.setText=function(t){this._tooltip.setText(t)},t.prototype.show=function(t){t.element?this._tooltip.setElement(t.element):this._tooltip.setText(t.text),this._tooltip.setStyle(this._tooltipContainer.getTooltipPositionStyles(t.position)),this._tooltip.show()},t.prototype.clearElement=function(){this._tooltip.clearElement()},t.prototype.hide=function(){this._tooltip.hide()},t.prototype.createReference=function(t,e){return new ki(t,this,e)},t.prototype.destroy=function(){this._unbindEvents(),this._tooltip.destroy(),this._tooltipContainer.destroy(),this._tooltip=null,this._tooltipContainer=null,this._eventEmitter=null},t.moduleName="tooltipService",t.dependencies=["eventEmitter"],t}();var Ti={progressPlayed:{backgroundColor:function(t){return t.progressColor}},progressSeekTo:{backgroundColor:function(t){return xe(t.progressColor,.5)}},progressSeekBtn:{backgroundColor:function(t){return t.progressColor}}};ee('.__2pi4V{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;cursor:pointer;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:opacity;transition-property:opacity;opacity:1;border:0;border-radius:0;outline:none;background-color:transparent;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__2pi4V:hover{opacity:.7}.__3Rjqh{visibility:hidden!important;width:0!important;min-width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important}.__V4YqW{position:relative;display:block;width:100%;height:6px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:opacity .2s,visibility .2s;transition:opacity .2s,visibility .2s;-ms-touch-action:none;touch-action:none}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__V4YqW{height:8px}.__V4YqW.__3324R .__1dShL{background-color:#ea492e}.__V4YqW.__3324R .__T0D_O{background-color:rgba(234,73,46,.5)}.__V4YqW.__3324R .__3N1QN{display:initial}.__V4YqW.__2Tcb5 .__1SSlL,.__V4YqW:hover .__1SSlL,[data-playable-hook=player-container][data-playable-in-full-screen=true] .__V4YqW.__2Tcb5 .__1SSlL,[data-playable-hook=player-container][data-playable-in-full-screen=true] .__V4YqW:hover .__1SSlL{-webkit-transform:scaleY(1);transform:scaleY(1)}.__V4YqW.__2Tcb5 .__1SSlL .__T0D_O,.__V4YqW:hover .__1SSlL .__T0D_O{opacity:1}.__V4YqW.__2Tcb5 .__1SSlL .__2wltB:after,.__V4YqW.__2Tcb5 .__3UtgF,.__V4YqW:hover .__1SSlL .__2wltB:after,.__V4YqW:hover .__3UtgF{-webkit-transform:scale(1);transform:scale(1)}.__V4YqW.__2Tcb5 .__3N1QN,.__V4YqW:hover .__3N1QN{-webkit-transform:scale(1.4);transform:scale(1.4)}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__V4YqW.__2Tcb5 .__3N1QN,[data-playable-hook=player-container][data-playable-in-full-screen=true] .__V4YqW:hover .__3N1QN{-webkit-transform:scale(1.33);transform:scale(1.33)}.__V4YqW.__2Tcb5 .__3N1QN.__PIvwF,.__V4YqW:hover .__3N1QN.__PIvwF{background-color:#fff}.__1TZ8Z{position:absolute;z-index:7;top:-3px;left:-6px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__1TZ8Z{top:-4px;left:-8px;width:16px;height:16px}.__3UtgF{width:12px;height:12px;content:"";cursor:pointer;-webkit-transition:-webkit-transform .1s cubic-bezier(0,0,.2,1);transition:-webkit-transform .1s cubic-bezier(0,0,.2,1);transition:transform .1s cubic-bezier(0,0,.2,1);transition:transform .1s cubic-bezier(0,0,.2,1),-webkit-transform .1s cubic-bezier(0,0,.2,1);-webkit-transform:scale(0);transform:scale(0);border-radius:50%;background-color:#fff}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__3UtgF{width:16px;height:16px}.__3N1QN{position:absolute;z-index:6;top:-2px;right:-5px;display:none;width:6px;height:6px;cursor:pointer;-webkit-transition:-webkit-transform .1s cubic-bezier(0,0,.2,1);transition:-webkit-transform .1s cubic-bezier(0,0,.2,1);transition:transform .1s cubic-bezier(0,0,.2,1);transition:transform .1s cubic-bezier(0,0,.2,1),-webkit-transform .1s cubic-bezier(0,0,.2,1);border:2px solid #bababa;border-radius:50%;background-color:#ea492e}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__3N1QN{top:-2px;right:-6px;width:8px;height:8px}.__3N1QN:hover{background-color:#fff}.__3N1QN.__3Rjqh{display:none}.__1SSlL{height:6px;-webkit-transition:-webkit-transform .1s cubic-bezier(0,0,.2,1);transition:-webkit-transform .1s cubic-bezier(0,0,.2,1);transition:transform .1s cubic-bezier(0,0,.2,1);transition:transform .1s cubic-bezier(0,0,.2,1),-webkit-transform .1s cubic-bezier(0,0,.2,1);-webkit-transform:scaleY(.34);transform:scaleY(.34)}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__1SSlL{height:8px;-webkit-transform:scaleY(.25);transform:scaleY(.25)}.__210E8{position:absolute;height:6px;padding:0}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__210E8{height:8px}.__1dShL{width:100%;-webkit-transform-origin:0 0;transform-origin:0 0;background-color:#fff}.__2LiZB{-webkit-transition:width .2s ease;transition:width .2s ease}.__2LiZB,.__lqeL2{background-color:hsla(0,0%,100%,.25)}.__lqeL2{width:100%}.__T0D_O{-webkit-transition:opacity .2s;transition:opacity .2s;background-color:hsla(0,0%,100%,.5)}.__c6h-a{overflow-x:hidden;width:100%;height:100%;background-color:transparent}.__2wltB,.__2wltB:after,.__c6h-a{position:absolute}.__2wltB:after{right:-3px;width:6px;height:6px;content:"";-webkit-transition:-webkit-transform .1s cubic-bezier(0,0,.2,1);transition:-webkit-transform .1s cubic-bezier(0,0,.2,1);transition:transform .1s cubic-bezier(0,0,.2,1);transition:transform .1s cubic-bezier(0,0,.2,1),-webkit-transform .1s cubic-bezier(0,0,.2,1);-webkit-transform:scale(0);transform:scale(0);opacity:.6;border-radius:50%;background-color:#fff}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__2wltB:after{right:-4px;width:8px;height:8px}.__2wltB:after:hover{opacity:1}.__xqdFP{position:relative;z-index:5;top:-11px;display:block;width:100%;height:16px;cursor:pointer;opacity:0}[data-playable-focus-source=key] [data-playable-hook=progress-control].focus-within,[data-playable-focus-source=script] [data-playable-hook=progress-control].focus-within{opacity:1;-webkit-box-shadow:0 0 0 2px rgba(56,153,236,.8);box-shadow:0 0 0 2px rgba(56,153,236,.8)}');var Ci=function(t,e){var i=e.getBoundingClientRect(),n=t.clientX;return n<i.left?0:n>i.left+i.width?100:(t.clientX-i.left)/i.width*100},Ai=function(t){function e(e){var i=this,n=e.callbacks,o=e.textMap,r=e.tooltipService,s=e.theme;return(i=t.call(this,s)||this)._callbacks=n,i._textMap=o,i._tooltipService=r,i._initDOM(),i._bindCallbacks(),i._bindEvents(),i._setPlayedDOMAttributes(0),i._setBufferedDOMAttributes(0),i.setUsualMode(),i}return i(e,t),e.prototype._initDOM=function(){var t;this._$rootElement=Xt('<div data-playable-hook="progress-control" class="'+(t={styles:this.styleNames,themeStyles:this.themeStyles}).styles.seekBlock+'" tabindex="0"> <div class="'+t.styles.progressBarsWrapper+'"> <div class="'+t.styles.progressBar+" "+t.styles.background+'"> </div> <div data-playable-hook="progress-buffered" class="'+t.styles.progressBar+" "+t.styles.buffered+'"> </div> <div data-playable-hook="progress-seek-to" class="'+t.styles.progressBar+" "+t.styles.seekTo+" "+t.themeStyles.progressSeekTo+'"> </div> <div data-playable-hook="progress-played" class="'+t.styles.progressBar+" "+t.styles.played+" "+t.themeStyles.progressPlayed+'"> </div> <div data-playable-hook="progress-time-indicators" class="'+t.styles.timeIndicators+'"> </div> </div> <div data-playable-hook="progress-hitbox" class="'+t.styles.hitbox+'"> </div> <div data-playable-hook="progress-seek-button" class="'+t.styles.seekButtonContainer+'"> <div class="'+t.styles.seekButton+" "+t.themeStyles.progressSeekBtn+'"> </div> </div> <div data-playable-hook="progress-sync-button" class="'+t.styles.syncButton+'"> </div></div>'),this._$played=Ke(this._$rootElement,"progress-played"),this._$buffered=Ke(this._$rootElement,"progress-buffered"),this._$seekTo=Ke(this._$rootElement,"progress-seek-to"),this._$timeIndicators=Ke(this._$rootElement,"progress-time-indicators"),this._$seekButton=Ke(this._$rootElement,"progress-seek-button"),this._$syncButton=Ke(this._$rootElement,"progress-sync-button"),this._syncButtonTooltipReference=this._tooltipService.createReference(this._$syncButton,{text:this._textMap.get(jt.LIVE_SYNC_TOOLTIP)}),this._$hitbox=Ke(this._$rootElement,"progress-hitbox")},e.prototype._bindCallbacks=function(){this._setPlayedByDrag=this._setPlayedByDrag.bind(this),this._startDragOnMouseDown=this._startDragOnMouseDown.bind(this),this._stopDragOnMouseUp=this._stopDragOnMouseUp.bind(this),this._startSeekToByMouse=this._startSeekToByMouse.bind(this),this._stopSeekToByMouse=this._stopSeekToByMouse.bind(this),this._syncWithLive=this._syncWithLive.bind(this)},e.prototype._bindEvents=function(){this._$seekButton.addEventListener("mousedown",this._startDragOnMouseDown),this._$seekButton.addEventListener("mousemove",this._startSeekToByMouse),this._$seekButton.addEventListener("mouseout",this._stopSeekToByMouse),this._$hitbox.addEventListener("mousedown",this._startDragOnMouseDown),this._$hitbox.addEventListener("mousemove",this._startSeekToByMouse),this._$hitbox.addEventListener("mouseout",this._stopSeekToByMouse),window.addEventListener("mousemove",this._setPlayedByDrag),window.addEventListener("mouseup",this._stopDragOnMouseUp),this._$syncButton.addEventListener("click",this._syncWithLive),this._$syncButton.addEventListener("mouseenter",this._callbacks.onSyncWithLiveMouseEnter),this._$syncButton.addEventListener("mouseleave",this._callbacks.onSyncWithLiveMouseLeave)},e.prototype._unbindEvents=function(){this._$seekButton.removeEventListener("mousedown",this._startDragOnMouseDown),this._$seekButton.removeEventListener("mousemove",this._startSeekToByMouse),this._$seekButton.removeEventListener("mouseout",this._stopSeekToByMouse),this._$hitbox.removeEventListener("mousedown",this._startDragOnMouseDown),this._$hitbox.removeEventListener("mousemove",this._startSeekToByMouse),this._$hitbox.removeEventListener("mouseout",this._stopSeekToByMouse),window.removeEventListener("mousemove",this._setPlayedByDrag),window.removeEventListener("mouseup",this._stopDragOnMouseUp),this._$syncButton.removeEventListener("click",this._syncWithLive),this._$syncButton.removeEventListener("mouseenter",this._callbacks.onSyncWithLiveMouseEnter),this._$syncButton.removeEventListener("mouseleave",this._callbacks.onSyncWithLiveMouseLeave)},e.prototype._startDragOnMouseDown=function(t){if(!(t.button>1)){var e=Ci(t,this._$hitbox);this._setPlayedDOMAttributes(e),this._callbacks.onChangePlayedPercent(e),this._startDrag()}},e.prototype._stopDragOnMouseUp=function(t){t.button>1||this._stopDrag()},e.prototype._startSeekToByMouse=function(t){var e=Ci(t,this._$hitbox);this._setSeekToDOMAttributes(e),this._callbacks.onSeekToByMouseStart(e)},e.prototype._stopSeekToByMouse=function(){this._setSeekToDOMAttributes(0),this._callbacks.onSeekToByMouseEnd()},e.prototype._setPlayedByDrag=function(t){if(this._isDragging){var e=Ci(t,this._$hitbox);this._setPlayedDOMAttributes(e),this._callbacks.onChangePlayedPercent(e)}},e.prototype._startDrag=function(){this._isDragging=!0,this._callbacks.onDragStart(),this._$rootElement.classList.add(this.styleNames.isDragging)},e.prototype._stopDrag=function(){this._isDragging&&(this._isDragging=!1,this._callbacks.onDragEnd(),this._$rootElement.classList.remove(this.styleNames.isDragging))},e.prototype._setSeekToDOMAttributes=function(t){this._$seekTo.setAttribute("style","width:"+t+"%;")},e.prototype._setPlayedDOMAttributes=function(t){this._$rootElement.setAttribute("aria-valuetext",this._textMap.get(jt.PROGRESS_CONTROL_VALUE,{percent:t})),this._$rootElement.setAttribute("aria-valuenow",t.toFixed(2)),this._$rootElement.setAttribute("data-playable-played-percent",t.toFixed(2)),this._setPlayedDOMPosition(t)},e.prototype._setPlayedDOMPosition=function(t){var e=t/100,i=this._$rootElement.getBoundingClientRect().width*e;this._$played.style.transform="scaleX("+e.toFixed(3)+")",this._$seekButton.style.transform="translateX("+i.toFixed(3)+"px)"},e.prototype._setBufferedDOMAttributes=function(t){this._$buffered.setAttribute("style","width:"+t+"%;")},e.prototype._syncWithLive=function(){this._callbacks.onSyncWithLiveClick()},e.prototype.updateOnResize=function(){this._setPlayedDOMPosition(this._currentPlayedPercent)},e.prototype.showSyncWithLive=function(){this._$syncButton.classList.remove(this.styleNames.hidden)},e.prototype.hideSyncWithLive=function(){this._$syncButton.classList.add(this.styleNames.hidden)},e.prototype.setLiveSyncState=function(t){Ge(this._$syncButton,this.styleNames.liveSync,t),t?(this._syncButtonTooltipReference.disable(),this._$played.setAttribute("style","width:100%;"),this._$seekButton.setAttribute("style","left:100%;")):this._syncButtonTooltipReference.enable()},e.prototype.showProgressTimeTooltip=function(t,e){var i=this;this._tooltipService.show({element:t,position:function(t){return function(t,e,i){return gi(e,i,function(e,i){return function(t,e,i){return e+t*i/100}(t,e,i)})}(e,i._$hitbox,t)}})},e.prototype.hideProgressTimeTooltip=function(){this._tooltipService.hide()},e.prototype.setLiveMode=function(){this._$rootElement.classList.add(this.styleNames.inLive),this.showSyncWithLive()},e.prototype.setUsualMode=function(){this._$rootElement.classList.remove(this.styleNames.inLive),this.hideSyncWithLive()},e.prototype.setPlayed=function(t){this._currentPlayedPercent=t,this._setPlayedDOMAttributes(t)},e.prototype.setBuffered=function(t){this._setBufferedDOMAttributes(t)},e.prototype.addTimeIndicator=function(t){var e;this._$timeIndicators.appendChild(Xt('<div class="'+(e={percent:t,styles:this.styleNames}).styles.timeIndicator+'" style="left: '+e.percent+'%"></div>'))},e.prototype.clearTimeIndicators=function(){this._$timeIndicators.innerHTML=""},e.prototype.hide=function(){this._$rootElement.classList.add(this.styleNames.hidden)},e.prototype.show=function(){this._$rootElement.classList.remove(this.styleNames.hidden)},e.prototype.getElement=function(){return this._$rootElement},e.prototype.destroy=function(){this._unbindEvents(),this._syncButtonTooltipReference.destroy(),this._$rootElement.parentNode&&this._$rootElement.parentNode.removeChild(this._$rootElement),this._$rootElement=null,this._$buffered=null,this._$hitbox=null,this._$played=null,this._$seekTo=null,this._$seekButton=null,this._$syncButton=null,this._$timeIndicators=null},e}(te);function Ii(t,e){return e?parseFloat((t/e*100).toFixed(2)):0}function Li(t,e){var i=0;if(!t||!t.length)return null;for(;i<t.length-1&&!(t.start(i)<=e&&e<=t.end(i));)i+=1;return{start:t.start(i),end:t.end(i)}}function Oi(t){var e=!isNaN(t)&&isFinite(t),i=e&&t<0,n=new Date(null);n.setSeconds(e?Math.abs(Math.floor(t)):0);var o=n.toISOString().substr(11,8).replace(/^00:/,"");return i?"-"+o:o}Ai.setTheme(Ti),Ai.extendStyleNames({controlButton:"__2pi4V",hidden:"__3Rjqh",seekBlock:"__V4YqW",inLive:"__3324R",played:"__1dShL",seekTo:"__T0D_O",syncButton:"__3N1QN",progressBarsWrapper:"__1SSlL",isDragging:"__2Tcb5",timeIndicator:"__2wltB",seekButton:"__3UtgF",liveSync:"__PIvwF",seekButtonContainer:"__1TZ8Z",progressBar:"__210E8",buffered:"__2LiZB",background:"__lqeL2",timeIndicators:"__c6h-a",hitbox:"__xqdFP"});var Pi=function(){function t(t){var e=t.engine,i=t.liveStateEngine,n=t.eventEmitter,o=t.textMap,r=t.tooltipService,s=t.theme,a=t.previewThumbnail,l=t.previewFullSize;this._engine=e,this._liveStateEngine=i,this._eventEmitter=n,this._textMap=o,this._tooltipService=r,this._previewThumbnail=a,this._previewFullSize=l,this._isUserDragging=!1,this._desiredSeekPosition=0,this._theme=s,this._timeIndicatorsToAdd=[],this._showFullScreenPreview=!1,this._bindCallbacks(),this._initUI(),this._bindEvents(),this.view.setPlayed(0),this.view.setBuffered(0),this._initInterceptor()}return t.prototype.getElement=function(){return this.view.getElement()},t.prototype._bindEvents=function(){this._unbindEvents=this._eventEmitter.bindEvents([[Ht.STATE_CHANGED,this._processStateChange],[Ht.LIVE_STATE_CHANGED,this._processLiveStateChange],[Ht.CHUNK_LOADED,this._updateBufferIndicator],[Ht.DURATION_UPDATED,this._updateAllIndicators],[Vt.RESIZE,this.view.updateOnResize,this.view]],this)},t.prototype._initUI=function(){var e={callbacks:{onSyncWithLiveClick:this._syncWithLive,onSyncWithLiveMouseEnter:this._onSyncWithLiveMouseEnter,onSyncWithLiveMouseLeave:this._onSyncWithLiveMouseLeave,onChangePlayedPercent:this._onChangePlayedPercent,onSeekToByMouseStart:this._showTooltipAndPreview,onSeekToByMouseEnd:this._hideTooltip,onDragStart:this._startProcessingUserDrag,onDragEnd:this._stopProcessingUserDrag},theme:this._theme,textMap:this._textMap,tooltipService:this._tooltipService};this.view=new t.View(e)},t.prototype._initInterceptor=function(){var t,e=this;this._interceptor=new ze(this.view.getElement(),((t={})[Ye.UP_ARROW]=function(t){t.stopPropagation(),t.preventDefault(),e._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED),e._eventEmitter.emitAsync(Vt.GO_FORWARD_WITH_KEYBOARD),e._engine.seekForward(5)},t[Ye.DOWN_ARROW]=function(t){t.stopPropagation(),t.preventDefault(),e._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED),e._eventEmitter.emitAsync(Vt.GO_BACKWARD_WITH_KEYBOARD),e._engine.seekBackward(5)},t[Ye.RIGHT_ARROW]=function(t){t.stopPropagation(),t.preventDefault(),e._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED),e._eventEmitter.emitAsync(Vt.GO_FORWARD_WITH_KEYBOARD),e._engine.seekForward(5)},t[Ye.LEFT_ARROW]=function(t){t.stopPropagation(),t.preventDefault(),e._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED),e._eventEmitter.emitAsync(Vt.GO_BACKWARD_WITH_KEYBOARD),e._engine.seekBackward(5)},t))},t.prototype._destroyInterceptor=function(){this._interceptor.destroy()},t.prototype._bindCallbacks=function(){this._syncWithLive=this._syncWithLive.bind(this),this._onSyncWithLiveMouseEnter=this._onSyncWithLiveMouseEnter.bind(this),this._onSyncWithLiveMouseLeave=this._onSyncWithLiveMouseLeave.bind(this),this._updateAllIndicators=this._updateAllIndicators.bind(this),this._onChangePlayedPercent=this._onChangePlayedPercent.bind(this),this._showTooltipAndPreview=this._showTooltipAndPreview.bind(this),this._hideTooltip=this._hideTooltip.bind(this),this._startProcessingUserDrag=this._startProcessingUserDrag.bind(this),this._stopProcessingUserDrag=this._stopProcessingUserDrag.bind(this)},t.prototype._startIntervalUpdates=function(){this._updateControlInterval&&this._stopIntervalUpdates(),this._updateAllIndicators(),this._updateControlInterval=window.setInterval(this._updateAllIndicators,1e3/60)},t.prototype._stopIntervalUpdates=function(){window.clearInterval(this._updateControlInterval),this._updateControlInterval=null},t.prototype._convertPlayedPercentToTime=function(t){return this._engine.getDuration()*t/100},t.prototype._onChangePlayedPercent=function(t){var e=this._convertPlayedPercentToTime(t);this._showFullScreenPreview?(this._desiredSeekPosition=e,this._eventEmitter.emitAsync(Vt.PROGRESS_USER_PREVIEWING_FRAME,e)):this._changeCurrentTimeOfVideo(e),this._isUserDragging&&this._showTooltipAndPreview(t)},t.prototype._showTooltipAndPreview=function(t){var e=this._engine.getDuration(),i=this._convertPlayedPercentToTime(t),n=this._engine.isDynamicContent?i-e:i;this._previewThumbnail.setTime(Oi(n)),this._previewThumbnail.showAt(i),this.view.showProgressTimeTooltip(this._previewThumbnail.getElement(),t),this._isUserDragging&&this._showFullScreenPreview&&this._previewFullSize.showAt(i)},t.prototype._hideTooltip=function(){this._isUserDragging||this.view.hideProgressTimeTooltip()},t.prototype._startProcessingUserDrag=function(){this._isUserDragging||(this._isUserDragging=!0,this._pauseVideoOnDragStart(),this._eventEmitter.emitAsync(Vt.PROGRESS_DRAG_STARTED),this._eventEmitter.emitAsync(Vt.CONTROL_DRAG_START))},t.prototype._stopProcessingUserDrag=function(){this._isUserDragging&&(this._isUserDragging=!1,this._showFullScreenPreview&&(this._shouldHidePreviewOnUpdate=!0),this._showFullScreenPreview&&this._changeCurrentTimeOfVideo(this._desiredSeekPosition),this._playVideoOnDragEnd(),this.view.hideProgressTimeTooltip(),this._eventEmitter.emitAsync(Vt.PROGRESS_DRAG_ENDED),this._eventEmitter.emitAsync(Vt.CONTROL_DRAG_END))},t.prototype._hidePreview=function(){this._shouldHidePreviewOnUpdate=!1,this._previewFullSize.hide()},t.prototype._processStateChange=function(t){switch(t.nextState){case Gt.SRC_SET:this._reset();break;case Gt.METADATA_LOADED:this._initTimeIndicators(),this._engine.isSeekAvailable?this.show():this.hide();break;case Gt.PLAYING:this._shouldHidePreviewOnUpdate&&this._hidePreview(),this._liveStateEngine.state===qt.SYNC?this.view.setPlayed(100):this._startIntervalUpdates();break;case Gt.PAUSED:this._shouldHidePreviewOnUpdate&&this._hidePreview(),this._stopIntervalUpdates();break;case Gt.SEEK_IN_PROGRESS:this._updateAllIndicators()}},t.prototype._processLiveStateChange=function(t){switch(t.nextState){case qt.NONE:this.view.setLiveSyncState(!1),this.view.setUsualMode();break;case qt.INITIAL:this.view.setLiveMode();break;case qt.SYNC:this.view.setLiveSyncState(!0);break;case qt.NOT_SYNC:this.view.setLiveSyncState(!1);break;case qt.ENDED:this.view.setLiveSyncState(!1),this.view.hideSyncWithLive(),this._engine.getCurrentState()===Gt.PLAYING?this._startIntervalUpdates():this._updateAllIndicators()}},t.prototype._changeCurrentTimeOfVideo=function(t){var e=this._engine.getDuration();this._engine.isDynamicContent&&e===t?this._engine.syncWithLive():this._engine.seekTo(t),this._eventEmitter.emitAsync(Vt.PROGRESS_CHANGE,t)},t.prototype._pauseVideoOnDragStart=function(){var t=this._engine.getCurrentState();t!==Gt.PLAYING&&t!==Gt.PLAY_REQUESTED||(this._shouldPlayAfterDragEnd=!0,this._engine.pause()),this._eventEmitter.emitAsync(Vt.PROGRESS_DRAG_STARTED)},t.prototype._playVideoOnDragEnd=function(){this._shouldPlayAfterDragEnd&&(this._engine.play(),this._shouldPlayAfterDragEnd=!1)},t.prototype._updateBufferIndicator=function(){var t=this._engine.getCurrentTime(),e=this._engine.getBuffered(),i=this._engine.getDuration();this._setBuffered(function(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=0),t&&t.length&&i?Ii(Li(t,e).end,i):0}(e,t,i))},t.prototype._updatePlayedIndicator=function(){if(this._liveStateEngine.state!==qt.SYNC){var t=this._engine.getCurrentTime(),e=this._engine.getDuration();this._setPlayed(function(t,e){return void 0===t&&(t=0),void 0===e&&(e=0),Ii(t,e)}(t,e))}},t.prototype._updateAllIndicators=function(){this._updatePlayedIndicator(),this._updateBufferIndicator()},t.prototype._initTimeIndicators=function(){var t=this;this._timeIndicatorsToAdd.forEach(function(e){t._addTimeIndicator(e)}),this._timeIndicatorsToAdd=[]},t.prototype._addTimeIndicator=function(t){var e=this._engine.getDuration();t>e||this.view.addTimeIndicator(Ii(t,e))},t.prototype._syncWithLive=function(){this._engine.syncWithLive()},t.prototype._onSyncWithLiveMouseEnter=function(){this._eventEmitter.emitAsync(Vt.PROGRESS_SYNC_BUTTON_MOUSE_ENTER)},t.prototype._onSyncWithLiveMouseLeave=function(){this._eventEmitter.emitAsync(Vt.PROGRESS_SYNC_BUTTON_MOUSE_LEAVE)},t.prototype._setPlayed=function(t){this.view.setPlayed(t)},t.prototype._setBuffered=function(t){this.view.setBuffered(t)},t.prototype._reset=function(){this._setPlayed(0),this._setBuffered(0),this.clearTimeIndicators()},t.prototype.showPreviewOnProgressDrag=function(){this._showFullScreenPreview=!0},t.prototype.seekOnProgressDrag=function(){this._showFullScreenPreview=!1},t.prototype.addTimeIndicator=function(t){this.addTimeIndicators([t])},t.prototype.addTimeIndicators=function(t){var e,i=this;this._engine.isMetadataLoaded?t.forEach(function(t){i._addTimeIndicator(t)}):(e=this._timeIndicatorsToAdd).push.apply(e,t)},t.prototype.clearTimeIndicators=function(){this.view.clearTimeIndicators()},t.prototype.hide=function(){this.isHidden=!0,this.view.hide()},t.prototype.show=function(){this.isHidden=!1,this.view.show()},t.prototype.destroy=function(){this._destroyInterceptor(),this._stopIntervalUpdates(),this._unbindEvents(),this.view.destroy()},t.moduleName="progressControl",t.View=Ai,t.dependencies=["engine","liveStateEngine","eventEmitter","textMap","tooltipService","theme","previewThumbnail","previewFullSize"],o([B()],t.prototype,"showPreviewOnProgressDrag",null),o([B()],t.prototype,"seekOnProgressDrag",null),o([B()],t.prototype,"addTimeIndicator",null),o([B()],t.prototype,"addTimeIndicators",null),o([B()],t.prototype,"clearTimeIndicators",null),t}();ee(".__3PoOY{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;cursor:pointer;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:opacity;transition-property:opacity;opacity:1;border:0;border-radius:0;outline:none;background-color:transparent;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__3PoOY:hover{opacity:.7}.__1tNO8{visibility:hidden!important;width:0!important;min-width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important}.__1AgWy{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.__3tzyO{width:26px;min-width:26px;height:26px;min-height:26px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__3tzyO{width:35px;min-width:35px;height:35px;min-height:35px;background-size:15px 21px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__3tzyO .__1z40F{width:16px;height:21px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__3tzyO.__2fI5f{background-size:16px 21px}.__3tzyO .__1z40F{width:11px;height:14px;padding-left:1px}.__3tzyO.__2fI5f .__1z40F{width:10px;height:15px;padding-left:2px}");var Ni=function(t){function e(e){var i,n=this,o=e.callbacks,r=e.textMap,s=e.theme;return(n=t.call(this,s)||this)._callbacks=o,n._textMap=r,n._$rootElement=Xt('<div class="'+(i={styles:n.styleNames,texts:{label:n._textMap.get(jt.PLAY_CONTROL_LABEL)}}).styles.playControl+'" data-playable-hook="playback-control"> <button class="'+i.styles.playbackToggle+" "+i.styles.controlButton+'" data-playable-hook="playback-control" aria-label="'+i.texts.label+'" type="button" tabindex="0"/></div>'),n._$playbackControl=Ke(n._$rootElement,"playback-control"),n.setPlayingState(!1),n._bindEvents(),n}return i(e,t),e.prototype._bindEvents=function(){this._onButtonClick=this._onButtonClick.bind(this),this._$playbackControl.addEventListener("click",this._onButtonClick)},e.prototype._unbindEvents=function(){this._$playbackControl.removeEventListener("click",this._onButtonClick)},e.prototype._onButtonClick=function(){this._$playbackControl.focus(),this._callbacks.onButtonClick()},e.prototype.setPlayingState=function(t){var e;t?(this._$playbackControl.classList.remove(this.styleNames.paused),this._$playbackControl.innerHTML='<div class="'+(e={styles:this.styleNames,themeStyles:this.themeStyles}).styles.icon+'"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 14" preserveAspectRatio="xMidYMin slice" width="100%" style="padding-bottom: 140%; height: 1px; overflow: visible" > \x3c!-- padding-bottom: 100% * height/width --\x3e <path class="'+e.themeStyles.playSvgFill+'" d="M7 0h3v14H7V0zM0 0h3v14H0V0z"/> </svg></div>',this._$playbackControl.setAttribute("aria-label",this._textMap.get(jt.PAUSE_CONTROL_LABEL))):(this._$playbackControl.classList.add(this.styleNames.paused),this._$playbackControl.innerHTML=function(t){return'<div class="'+t.styles.icon+'"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 13" preserveAspectRatio="xMidYMin slice" width="100%" style="padding-bottom: 127%; height: 1px; overflow: visible" > \x3c!-- padding-bottom: 100% * height/width --\x3e <path class="'+t.themeStyles.playSvgFill+'" d="M.079 0L0 14l10.5-7.181z"/> </svg></div>'}({styles:this.styleNames,themeStyles:this.themeStyles}),this._$playbackControl.setAttribute("aria-label",this._textMap.get(jt.PLAY_CONTROL_LABEL))),this._$rootElement.setAttribute("data-playable-is-playing",String(t))},e.prototype.show=function(){this._$rootElement.classList.remove(this.styleNames.hidden)},e.prototype.hide=function(){this._$rootElement.classList.add(this.styleNames.hidden)},e.prototype.getElement=function(){return this._$rootElement},e.prototype.destroy=function(){this._unbindEvents(),this._$rootElement.parentNode&&this._$rootElement.parentNode.removeChild(this._$rootElement),this._$playbackControl=null,this._$rootElement=null},e}(te);Ni.setTheme({playSvgFill:{fill:function(t){return t.color}}}),Ni.extendStyleNames({controlButton:"__3PoOY",hidden:"__1tNO8",playControl:"__1AgWy",playbackToggle:"__3tzyO",icon:"__1z40F",paused:"__2fI5f"});var Mi=function(){function t(t){var e=t.engine,i=t.eventEmitter,n=t.textMap,o=t.theme;this._engine=e,this._eventEmitter=i,this._textMap=n,this._theme=o,this._bindCallbacks(),this._initUI(),this._bindEvents(),this._initInterceptor()}return t.prototype.getElement=function(){return this.view.getElement()},t.prototype._initInterceptor=function(){var t,e=this;this._interceptor=new ze(this.getElement(),((t={})[Ye.SPACE_BAR]=function(t){t.stopPropagation(),e._eventEmitter.emitAsync(Vt.TOGGLE_PLAYBACK_WITH_KEYBOARD)},t[Ye.ENTER]=function(t){t.stopPropagation(),e._eventEmitter.emitAsync(Vt.TOGGLE_PLAYBACK_WITH_KEYBOARD)},t))},t.prototype._destroyInterceptor=function(){this._interceptor.destroy()},t.prototype._bindCallbacks=function(){this._togglePlayback=this._togglePlayback.bind(this)},t.prototype._bindEvents=function(){this._unbindEvents=this._eventEmitter.bindEvents([[Ht.STATE_CHANGED,this._updatePlayingState]],this)},t.prototype._togglePlayback=function(){this._engine.isPaused?this._playVideo():this._pauseVideo()},t.prototype._playVideo=function(){this._engine.play(),this._eventEmitter.emitAsync(Vt.PLAY_CLICK)},t.prototype._pauseVideo=function(){this._engine.pause(),this._eventEmitter.emitAsync(Vt.PAUSE_CLICK)},t.prototype._updatePlayingState=function(){this.view.setPlayingState(!this._engine.isPaused)},t.prototype._initUI=function(){var e={callbacks:{onButtonClick:this._togglePlayback},theme:this._theme,textMap:this._textMap};this.view=new t.View(e)},t.prototype.destroy=function(){this._destroyInterceptor(),this._unbindEvents(),this.view.destroy()},t.moduleName="playControl",t.View=Ni,t.dependencies=["engine","eventEmitter","textMap","theme"],t}();ee('.__mpXuO{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;cursor:pointer;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:opacity;transition-property:opacity;opacity:1;border:0;border-radius:0;outline:none;background-color:transparent;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__mpXuO:hover{opacity:.7}.__3xnRl{visibility:hidden!important;width:0!important;min-width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important}.__1r8hO{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;height:25px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__10Maj{font-size:12px;line-height:12px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__10Maj{font-size:14px;line-height:14px}.__3gaxd{margin-left:5px}.__3gaxd:before{margin-right:4px;content:"/"}.__2Nolg .__3gaxd,.__2Nolg .__hIpG9{display:none}');var Di=function(t){function e(e){var i=this,n=e.theme;return(i=t.call(this,n)||this)._initDOM(),i}return i(e,t),e.prototype._initDOM=function(){var t;this._$rootElement=Xt('<div data-playable-hook="time-control" class="'+(t={styles:this.styleNames,themeStyles:this.themeStyles}).styles.timeWrapper+" "+t.themeStyles.timeText+'"> <span data-playable-hook="current-time-indicator" class="'+t.styles.time+'"> </span> <span data-playable-hook="duration-time-indicator" class="'+t.styles.time+" "+t.styles.duration+'"> </span></div>'),this._$currentTime=Ke(this._$rootElement,"current-time-indicator"),this._$durationTime=Ke(this._$rootElement,"duration-time-indicator")},e.prototype.setDurationTime=function(t){t!==this._duration&&(this._duration=t,this._updateDurationTime())},e.prototype.setCurrentTime=function(t){t!==this._current&&(this._current=t,this._updateCurrentTime())},e.prototype.setCurrentTimeBackward=function(t){this._isBackward=t,this._updateCurrentTime()},e.prototype._updateDurationTime=function(){this._$durationTime.innerHTML=Oi(this._duration),this._$rootElement.setAttribute("data-playable-duration",this._duration?this._duration.toString():"0")},e.prototype._updateCurrentTime=function(){this._isBackward?this._$currentTime.innerHTML=Oi(this._current-this._duration):this._$currentTime.innerHTML=Oi(this._current),this._$rootElement.setAttribute("data-playable-current-time",this._current?this._current.toString():"0")},e.prototype.showDuration=function(){this._$durationTime.classList.remove(this.styleNames.hidden)},e.prototype.hideDuration=function(){this._$durationTime.classList.add(this.styleNames.hidden)},e.prototype.show=function(){this._$rootElement.classList.remove(this.styleNames.hidden)},e.prototype.hide=function(){this._$rootElement.classList.add(this.styleNames.hidden)},e.prototype.getElement=function(){return this._$rootElement},e.prototype.destroy=function(){this._$rootElement.parentNode&&this._$rootElement.parentNode.removeChild(this._$rootElement),this._$currentTime=null,this._$durationTime=null,this._$rootElement=null},e}(te);Di.setTheme({timeText:{color:function(t){return t.color}}}),Di.extendStyleNames({controlButton:"__mpXuO",hidden:"__3xnRl",timeWrapper:"__1r8hO",time:"__10Maj",duration:"__3gaxd",liveMode:"__2Nolg",separator:"__hIpG9"});var Ri=function(){function t(t){var e=t.eventEmitter,i=t.engine,n=t.theme;this._eventEmitter=e,this._engine=i,this._theme=n,this._bindCallbacks(),this._initUI(),this._bindEvents(),this._setCurrentTime(0),this._setDurationTime(0)}return t.prototype.getElement=function(){return this.view.getElement()},t.prototype._bindCallbacks=function(){this._updateCurrentTime=this._updateCurrentTime.bind(this),this._updateDurationTime=this._updateDurationTime.bind(this)},t.prototype._bindEvents=function(){this._unbindEvents=this._eventEmitter.bindEvents([[Vt.PROGRESS_USER_PREVIEWING_FRAME,this._updateTimeFromPreview],[Ht.STATE_CHANGED,this._toggleIntervalUpdates],[Ht.DURATION_UPDATED,this._updateDurationTime],[Ht.LIVE_STATE_CHANGED,this._processLiveStateChange]],this)},t.prototype._initUI=function(){var e={theme:this._theme};this.view=new t.View(e)},t.prototype._startIntervalUpdates=function(){this._updateControlInterval&&this._stopIntervalUpdates(),this._updateCurrentTime(),this._updateControlInterval=window.setInterval(this._updateCurrentTime,1e3/60)},t.prototype._stopIntervalUpdates=function(){window.clearInterval(this._updateControlInterval),this._updateControlInterval=null},t.prototype._processLiveStateChange=function(t){switch(t.nextState){case qt.NONE:this.show();break;case qt.INITIAL:this.hide();break;case qt.ENDED:this.show()}},t.prototype._toggleIntervalUpdates=function(t){switch(t.nextState){case Gt.SRC_SET:this.reset();break;case Gt.PLAYING:case Gt.SEEK_IN_PROGRESS:this._startIntervalUpdates();break;default:this._stopIntervalUpdates()}},t.prototype._updateDurationTime=function(){this._setDurationTime(this._engine.getDuration())},t.prototype._updateCurrentTime=function(){var t=this._engine.getCurrentTime();this._setCurrentTime(t)},t.prototype._updateTimeFromPreview=function(t){this.view.setCurrentTime(t)},t.prototype._setDurationTime=function(t){this.view.setDurationTime(t)},t.prototype._setCurrentTime=function(t){this.view.setCurrentTime(t)},t.prototype.hide=function(){this.isHidden=!0,this.view.hide()},t.prototype.show=function(){this.isHidden=!1,this.view.show()},t.prototype.reset=function(){this._setDurationTime(0),this._setCurrentTime(0),this.view.showDuration(),this.view.setCurrentTimeBackward(!1),this.show()},t.prototype.destroy=function(){this._stopIntervalUpdates(),this._unbindEvents(),this.view.destroy()},t.moduleName="timeControl",t.View=Di,t.dependencies=["engine","eventEmitter","theme"],t}();function Bi(t){return'<div class="'+t.styles.icon+'"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19 14" preserveAspectRatio="xMidYMin slice" width="100%" style="padding-bottom: 82%; height: 1px; overflow: visible" > \x3c!-- padding-bottom: 100% * height/width --\x3e \x3c!--width="16"--\x3e \x3c!--height="13"--\x3e <g class="'+t.themeStyles.volumeSvgFill+'"> <path d="M0 3.919h2.993v5.97H0V3.92zm2.995-.015L7 .924v12L2.995 9.882v-5.98z"/> <path fill-rule="nonzero" d="M13 6.257l-2.05-2.05-.743.743L12.257 7l-2.05 2.05.743.743L13 7.743l2.05 2.05.743-.743L13.743 7l2.05-2.05-.743-.743L13 6.257z"/> </g> </svg></div>'}var $i={volumeSvgFill:{fill:function(t){return t.color}},volumeSvgStroke:{stroke:function(t){return t.color}},volumeProgress:{backgroundColor:function(t){return t.color},"&:after":{backgroundColor:function(t){return t.color}}},volumeProgressBackground:{backgroundColor:function(t){return xe(t.color,.25)}}};ee('.__1XXXG{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;cursor:pointer;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:opacity;transition-property:opacity;opacity:1;border:0;border-radius:0;outline:none;background-color:transparent;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__1XXXG:hover{opacity:.7}.__504PW{visibility:hidden!important;width:0!important;min-width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important}.__1f_-O{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:width .2s;transition:width .2s;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-ms-flex-align:center;align-items:center}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__1f_-O{height:35px}.__1f_-O.__3mlpX .__EzZei,.__1f_-O:hover .__EzZei{width:50px;margin-right:5px;opacity:1}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__1f_-O.__3mlpX .__EzZei,[data-playable-hook=player-container][data-playable-in-full-screen=true] .__1f_-O:hover .__EzZei{width:90px;margin-right:10px}.__1d1Ei{width:26px;min-width:26px;height:26px;min-height:26px;padding:0}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__1d1Ei{width:35px;min-width:35px;height:35px;min-height:35px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__1d1Ei .__38qX4{width:25px;height:21px;padding-left:4px}.__1d1Ei .__38qX4{width:19px;height:14px;padding-left:5px}.__EzZei{position:relative;display:block;width:0;height:25px;margin-left:2px;-webkit-transition:opacity .2s,width .2s;transition:opacity .2s,width .2s;opacity:0}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__EzZei{margin-left:5px}.__1JJYW{position:absolute;top:11.5px;height:2px;padding:0}.__1XvBT:after{position:absolute;top:-3px;right:-4px;width:8px;height:8px;content:"";-webkit-transition:opacity .2s;transition:opacity .2s;border-radius:50%}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__1XvBT:after{top:-4px;right:-5px;width:10px;height:10px}.__1jBrF,.__2Mafo{width:100%}.__1jBrF{position:relative;z-index:5;display:block;height:25px;cursor:pointer;opacity:0}[data-playable-focus-source=key] [data-playable-hook=volume-control] .focus-within.__EzZei,[data-playable-focus-source=script] [data-playable-hook=volume-control] .focus-within.__EzZei{width:50px;margin-right:5px;opacity:1;-webkit-box-shadow:0 0 0 2px rgba(56,153,236,.8);box-shadow:0 0 0 2px rgba(56,153,236,.8)}[data-playable-hook=player-container][data-playable-in-full-screen=true] [data-playable-focus-source=key] [data-playable-hook=volume-control] .focus-within.__EzZei,[data-playable-hook=player-container][data-playable-in-full-screen=true] [data-playable-focus-source=script] [data-playable-hook=volume-control] .focus-within.__EzZei{width:90px;margin-right:10px}');var Fi=function(t,e){var i=e.getBoundingClientRect(),n=t.clientX;return n<i.left?0:n>i.left+i.width?100:(t.clientX-i.left)/i.width*100},Vi=function(t){function e(e){var i=this,n=e.callbacks,o=e.textMap,r=e.tooltipService,s=e.theme;return(i=t.call(this,s)||this)._callbacks=n,i._textMap=o,i._tooltipService=r,i._bindCallbacks(),i._initDOM(),i._bindEvents(),i}return i(e,t),e.prototype._initDOM=function(){var t;this._$rootElement=Xt('<div class="'+(t={styles:this.styleNames,themeStyles:this.themeStyles,texts:{muteLabel:this._textMap.get(jt.MUTE_CONTROL_LABEL),volumeLabel:this._textMap.get(jt.VOLUME_CONTROL_LABEL)}}).styles.volumeControl+'" data-playable-hook="volume-control"> <button class="'+t.styles.muteButton+" "+t.styles.controlButton+'" data-playable-hook="mute-button" aria-label="'+t.texts.muteLabel+'" type="button" tabindex="0"> </button> <div class="'+t.styles.volumeInputBlock+'" data-playable-hook="volume-input-block" aria-label="'+t.texts.volumeLabel+'" aria-valuemin="0" aria-valuenow="0" aria-valuemax="100" tabindex="0"> <div class="'+t.styles.progressBar+" "+t.styles.background+" "+t.themeStyles.volumeProgressBackground+'"> </div> <div class="'+t.styles.progressBar+" "+t.styles.volume+" "+t.themeStyles.volumeProgress+'" data-playable-hook="volume-input"> </div> <div class="'+t.styles.hitbox+'" data-playable-hook="volume-hitbox"> </div> </div></div>'),this._$muteButton=Ke(this._$rootElement,"mute-button"),this._$volumeContainer=Ke(this._$rootElement,"volume-input-block"),this._$hitbox=Ke(this._$rootElement,"volume-hitbox"),this._$volume=Ke(this._$rootElement,"volume-input"),this._muteButtonTooltipReference=this._tooltipService.createReference(this._$muteButton,{text:this._textMap.get(jt.MUTE_CONTROL_TOOLTIP)})},e.prototype._bindCallbacks=function(){this._onButtonClick=this._onButtonClick.bind(this),this._startDragOnMouseDown=this._startDragOnMouseDown.bind(this),this._stopDragOnMouseUp=this._stopDragOnMouseUp.bind(this),this._setVolumeByWheel=this._setVolumeByWheel.bind(this),this._setVolumeByClick=this._setVolumeByClick.bind(this),this._setVolumeByDrag=this._setVolumeByDrag.bind(this)},e.prototype._bindEvents=function(){this._$hitbox.addEventListener("wheel",this._setVolumeByWheel),this._$hitbox.addEventListener("mousedown",this._startDragOnMouseDown),window.addEventListener("mousemove",this._setVolumeByDrag),window.addEventListener("mouseup",this._stopDragOnMouseUp),this._$muteButton.addEventListener("click",this._onButtonClick)},e.prototype._unbindEvents=function(){this._$hitbox.removeEventListener("wheel",this._setVolumeByWheel),this._$hitbox.removeEventListener("mousedown",this._startDragOnMouseDown),window.removeEventListener("mousemove",this._setVolumeByDrag),window.removeEventListener("mouseup",this._stopDragOnMouseUp),this._$muteButton.removeEventListener("click",this._onButtonClick)},e.prototype._startDragOnMouseDown=function(t){t.button>1||(this._setVolumeByClick(t),this._startDrag())},e.prototype._stopDragOnMouseUp=function(t){t.button>1||this._stopDrag()},e.prototype._setVolumeByClick=function(t){this._$volumeContainer.focus();var e=Fi(t,this._$hitbox);this._callbacks.onVolumeLevelChangeFromInput(e)},e.prototype._setVolumeByDrag=function(t){var e=Fi(t,this._$hitbox);this._isDragging&&this._callbacks.onVolumeLevelChangeFromInput(e)},e.prototype._setVolumeByWheel=function(t){t.preventDefault();var e=t.deltaX||-1*t.deltaY;e&&this._callbacks.onVolumeLevelChangeFromWheel(e)},e.prototype._startDrag=function(){this._isDragging=!0,this._$rootElement.classList.add(this.styleNames.isDragging),this._callbacks.onDragStart()},e.prototype._stopDrag=function(){this._isDragging&&(this._isDragging=!1,this._$rootElement.classList.remove(this.styleNames.isDragging),this._callbacks.onDragEnd())},e.prototype._setVolumeDOMAttributes=function(t){this._$volumeContainer.setAttribute("value",String(t)),this._$volumeContainer.setAttribute("aria-valuetext",this._textMap.get(jt.VOLUME_CONTROL_VALUE,{percent:t})),this._$volumeContainer.setAttribute("aria-valuenow",String(t)),this._$volume.setAttribute("style","width:"+t+"%;"),this._$rootElement.setAttribute("data-playable-volume-percent",String(t));var e,i={styles:this.styleNames,themeStyles:this.themeStyles};this._$muteButton.innerHTML=t>=50?'<div class="'+(e=i).styles.icon+'"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19 14" preserveAspectRatio="xMidYMin slice" width="100%" style="padding-bottom: 82%; height: 1px; overflow: visible" > \x3c!-- padding-bottom: 100% * height/width --\x3e <g fill="none" fill-rule="evenodd"> <path class="'+e.themeStyles.volumeSvgFill+'" d="M0 3.919h2.993v5.97H0V3.92zm2.995-.015L7 .924v12L2.995 9.882v-5.98z"/> <path class="'+e.themeStyles.volumeSvgStroke+'" d="M12.793 13.716a9.607 9.607 0 0 0 0-13.586M9.853 10.837a5.45 5.45 0 0 0 0-7.707"/> </g> </svg></div>':t>0?function(t){return'<div class="'+t.styles.icon+'"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19 14" preserveAspectRatio="xMidYMin slice" width="100%" style="padding-bottom: 82%; height: 1px; overflow: visible" > \x3c!-- padding-bottom: 100% * height/width --\x3e <g fill="none" fill-rule="evenodd"> <path class="'+t.themeStyles.volumeSvgFill+'" d="M0 3.919h2.993v5.97H0V3.92zm2.995-.015L7 .924v12L2.995 9.882v-5.98z"/> <path class="'+t.themeStyles.volumeSvgStroke+'" d="M9.853 10.837a5.45 5.45 0 0 0 0-7.707"/> </g> </svg></div>'}(i):Bi(i)},e.prototype._onButtonClick=function(){this._$muteButton.focus(),this._callbacks.onToggleMuteClick()},e.prototype.setVolume=function(t){this._setVolumeDOMAttributes(t)},e.prototype.setMute=function(t){this._setMuteDOMAttributes(t)},e.prototype._setMuteDOMAttributes=function(t){t&&(this._$muteButton.innerHTML=Bi({styles:this.styleNames,themeStyles:this.themeStyles})),this._$muteButton.setAttribute("aria-label",t?this._textMap.get(jt.UNMUTE_CONTROL_LABEL):this._textMap.get(jt.MUTE_CONTROL_LABEL)),this._muteButtonTooltipReference.setText(t?this._textMap.get(jt.UNMUTE_CONTROL_TOOLTIP):this._textMap.get(jt.MUTE_CONTROL_TOOLTIP)),this._$rootElement.setAttribute("data-playable-is-muted",String(t))},e.prototype.show=function(){this._$rootElement.classList.remove(this.styleNames.hidden)},e.prototype.hide=function(){this._$rootElement.classList.add(this.styleNames.hidden)},e.prototype.getElement=function(){return this._$rootElement},e.prototype.getButtonElement=function(){return this._$muteButton},e.prototype.getInputElement=function(){return this._$volumeContainer},e.prototype.destroy=function(){this._unbindEvents(),this._muteButtonTooltipReference.destroy(),this._$rootElement.parentNode&&this._$rootElement.parentNode.removeChild(this._$rootElement),this._$muteButton=null,this._$rootElement=null},e}(te);Vi.setTheme($i),Vi.extendStyleNames({controlButton:"__1XXXG",hidden:"__504PW",volumeControl:"__1f_-O",volumeInputBlock:"__EzZei",isDragging:"__3mlpX",muteButton:"__1d1Ei",icon:"__38qX4",progressBar:"__1JJYW",volume:"__1XvBT",background:"__2Mafo",hitbox:"__1jBrF"});var Ui=function(){function t(t){var e=t.engine,i=t.eventEmitter,n=t.textMap,o=t.tooltipService,r=t.theme;this._engine=e,this._eventEmitter=i,this._textMap=n,this._tooltipService=o,this._theme=r,this._bindCallbacks(),this._initUI(),this._bindEvents(),this.view.setVolume(this._engine.getVolume()),this.view.setMute(this._engine.isMuted),this._initInterceptor()}return t.prototype.getElement=function(){return this.view.getElement()},t.prototype._initUI=function(){var e={callbacks:{onDragStart:this._broadcastDragStart,onDragEnd:this._broadcastDragEnd,onVolumeLevelChangeFromInput:this._getVolumeLevelFromInput,onVolumeLevelChangeFromWheel:this._getVolumeLevelFromWheel,onToggleMuteClick:this._toggleMuteState},theme:this._theme,textMap:this._textMap,tooltipService:this._tooltipService};this.view=new t.View(e)},t.prototype._initInterceptor=function(){var t,e,i=this;this._buttonInterceptor=new ze(this.view.getButtonElement(),((t={})[Ye.SPACE_BAR]=function(t){t.stopPropagation(),i._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED),i._eventEmitter.emitAsync(i._engine.isMuted?Vt.UNMUTE_WITH_KEYBOARD:Vt.MUTE_WITH_KEYBOARD)},t[Ye.ENTER]=function(t){t.stopPropagation(),i._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED),i._eventEmitter.emitAsync(i._engine.isMuted?Vt.UNMUTE_WITH_KEYBOARD:Vt.MUTE_WITH_KEYBOARD)},t)),this._inputInterceptor=new ze(this.view.getInputElement(),((e={})[Ye.RIGHT_ARROW]=function(t){t.stopPropagation(),t.preventDefault(),i._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED),i._eventEmitter.emitAsync(Vt.INCREASE_VOLUME_WITH_KEYBOARD),i._engine.setMute(!1),i._engine.increaseVolume(10)},e[Ye.LEFT_ARROW]=function(t){t.stopPropagation(),t.preventDefault(),i._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED),i._eventEmitter.emitAsync(Vt.DECREASE_VOLUME_WITH_KEYBOARD),i._engine.setMute(!1),i._engine.decreaseVolume(10)},e))},t.prototype._destroyInterceptor=function(){this._buttonInterceptor.destroy(),this._inputInterceptor.destroy()},t.prototype._bindEvents=function(){this._unbindEvents=this._eventEmitter.bindEvents([[Ht.SOUND_STATE_CHANGED,this._updateSoundState]],this)},t.prototype._bindCallbacks=function(){this._getVolumeLevelFromInput=this._getVolumeLevelFromInput.bind(this),this._toggleMuteState=this._toggleMuteState.bind(this),this._getVolumeLevelFromWheel=this._getVolumeLevelFromWheel.bind(this),this._broadcastDragStart=this._broadcastDragStart.bind(this),this._broadcastDragEnd=this._broadcastDragEnd.bind(this)},t.prototype._broadcastDragStart=function(){this._eventEmitter.emitAsync(Vt.CONTROL_DRAG_START)},t.prototype._broadcastDragEnd=function(){this._eventEmitter.emitAsync(Vt.CONTROL_DRAG_END)},t.prototype._changeVolumeLevel=function(t){this._engine.setVolume(t),this._eventEmitter.emitAsync(Vt.VOLUME_CHANGE,t),this._engine.isMuted&&this._toggleMuteState()},t.prototype._toggleMuteState=function(){var t=!this._engine.isMuted;this._engine.setMute(t),this._eventEmitter.emitAsync(t?Vt.MUTE_CLICK:Vt.UNMUTE_CLICK)},t.prototype._getVolumeLevelFromWheel=function(t){if(!this._engine.isMuted){var e=this._engine.getVolume()+t/10,i=Math.min(100,Math.max(0,e));this._changeVolumeLevel(i)}},t.prototype._getVolumeLevelFromInput=function(t){this._changeVolumeLevel(t)},t.prototype._updateSoundState=function(){this._setVolumeLevel(this._engine.getVolume()),this._setMuteState(this._engine.isMuted)},t.prototype._setVolumeLevel=function(t){this.view.setVolume(t),this.view.setMute(Boolean(!t))},t.prototype._setMuteState=function(t){var e=this._engine.getVolume();this.view.setVolume(t?0:e),this.view.setMute(t||Boolean(!e))},t.prototype.hide=function(){this.isHidden=!0,this.view.hide()},t.prototype.show=function(){this.isHidden=!1,this.view.show()},t.prototype.destroy=function(){this._destroyInterceptor(),this._unbindEvents(),this.view.destroy()},t.moduleName="volumeControl",t.View=Vi,t.dependencies=["engine","eventEmitter","textMap","tooltipService","theme"],t}();ee(".__3i-tz{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;cursor:pointer;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:opacity;transition-property:opacity;opacity:1;border:0;border-radius:0;outline:none;background-color:transparent;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__3i-tz:hover{opacity:.7}.__3BgVZ{visibility:hidden!important;width:0!important;min-width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important}.__ng08Y{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.__2T_-2{width:26px;min-width:26px;height:26px;min-height:26px;-webkit-transition:-webkit-transform .2s;transition:-webkit-transform .2s;transition:transform .2s;transition:transform .2s,-webkit-transform .2s}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__2T_-2{width:35px;height:35px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__2T_-2 .__3x8Mv{width:14px;height:23px;padding-right:6px}.__2T_-2 .__3x8Mv{width:13px;height:14px}.__2T_-2:hover{-webkit-transform:scale(1.18);transform:scale(1.18)}.__2T_-2.__3F0AO:hover{-webkit-transform:scale(.8);transform:scale(.8)}");var Hi=function(t){function e(e){var i,n=this,o=e.callbacks,r=e.textMap,s=e.tooltipService,a=e.theme;return(n=t.call(this,a)||this)._callbacks=o,n._textMap=r,n._$rootElement=Xt('<div class="'+(i={styles:n.styleNames,texts:{label:n._textMap.get(jt.ENTER_FULL_SCREEN_LABEL)}}).styles.fullScreenControl+'" data-playable-hook="full-screen-control"> <button class="'+i.styles.fullScreenToggle+" "+i.styles.controlButton+'" data-playable-hook="full-screen-button" aria-label="'+i.texts.label+'" type="button" tabindex="0"/></div>'),n._$toggleFullScreenControl=Ke(n._$rootElement,"full-screen-button"),n._tooltipReference=s.createReference(n._$toggleFullScreenControl,{text:n._textMap.get(jt.ENTER_FULL_SCREEN_TOOLTIP)}),n.setFullScreenState(!1),n._bindEvents(),n}return i(e,t),e.prototype._bindEvents=function(){this._onButtonClick=this._onButtonClick.bind(this),this._$toggleFullScreenControl.addEventListener("click",this._onButtonClick)},e.prototype._unbindEvents=function(){this._$toggleFullScreenControl.removeEventListener("click",this._onButtonClick)},e.prototype._onButtonClick=function(){this._$toggleFullScreenControl.focus(),this._callbacks.onButtonClick()},e.prototype.setFullScreenState=function(t){var e;t?(this._$toggleFullScreenControl.classList.add(this.styleNames.inFullScreen),this._$toggleFullScreenControl.innerHTML='<div class="'+(e={styles:this.styleNames,themeStyles:this.themeStyles}).styles.icon+'"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" preserveAspectRatio="xMidYMin slice" width="100%" style="padding-bottom: 100%; height: 1px; overflow: visible" > \x3c!-- padding-bottom: 100% * height/width --\x3e <path class="'+e.themeStyles.fullScreenSvgFill+'" fill-rule="evenodd" d="M4 21h2v-6H0v2h4v4zM6 0H4v4H0v2h6V0zm9 6h6V4h-4V0h-2v6zm2 11h4v-2h-6v6h2v-4z"/> </svg></div>',this._$toggleFullScreenControl.setAttribute("aria-label",this._textMap.get(jt.EXIT_FULL_SCREEN_LABEL)),this._tooltipReference.setText(this._textMap.get(jt.EXIT_FULL_SCREEN_TOOLTIP))):(this._$toggleFullScreenControl.classList.remove(this.styleNames.inFullScreen),this._$toggleFullScreenControl.innerHTML=function(t){return'<div class="'+t.styles.icon+'"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" preserveAspectRatio="xMidYMin slice" width="100%" style="padding-bottom: 100%; height: 1px; overflow: visible"> \x3c!-- padding-bottom: 100% * height/width --\x3e <path class="'+t.themeStyles.fullScreenSvgFill+'" fill-rule="evenodd" d="M2 10H0v4h4v-2H2v-2zM0 1v3h2V2h2V0H0v1zm14-1h-4v2h2v2h2V0zm-2 12h-2v2h4v-4h-2v2z"/> </svg></div>'}({styles:this.styleNames,themeStyles:this.themeStyles}),this._$toggleFullScreenControl.setAttribute("aria-label",this._textMap.get(jt.ENTER_FULL_SCREEN_LABEL)),this._tooltipReference.setText(this._textMap.get(jt.ENTER_FULL_SCREEN_TOOLTIP)))},e.prototype.hide=function(){this._$rootElement.classList.add(this.styleNames.hidden)},e.prototype.show=function(){this._$rootElement.classList.remove(this.styleNames.hidden)},e.prototype.getElement=function(){return this._$rootElement},e.prototype.destroy=function(){this._unbindEvents(),this._tooltipReference.destroy(),this._$rootElement.parentNode&&this._$rootElement.parentNode.removeChild(this._$rootElement),this._$toggleFullScreenControl=null,this._$rootElement=null},e}(te);Hi.setTheme({fullScreenSvgFill:{fill:function(t){return t.color}}}),Hi.extendStyleNames({controlButton:"__3i-tz",hidden:"__3BgVZ",fullScreenControl:"__ng08Y",fullScreenToggle:"__2T_-2",icon:"__3x8Mv",inFullScreen:"__3F0AO"});var Wi=function(){function t(t){var e=t.eventEmitter,i=t.fullScreenManager,n=t.textMap,o=t.tooltipService,r=t.theme;this._eventEmitter=e,this._fullScreenManager=i,this._textMap=n,this._theme=r,this._tooltipService=o,this._bindCallbacks(),this._initUI(),this._bindEvents(),this._fullScreenManager.isEnabled||this.hide(),this._initInterceptor()}return t.prototype.getElement=function(){return this.view.getElement()},t.prototype._bindCallbacks=function(){this._toggleFullScreen=this._toggleFullScreen.bind(this)},t.prototype._bindEvents=function(){this._unbindEvents=this._eventEmitter.bindEvents([[Vt.FULL_SCREEN_STATE_CHANGED,this.view.setFullScreenState]],this.view)},t.prototype._initUI=function(){var e={callbacks:{onButtonClick:this._toggleFullScreen},textMap:this._textMap,tooltipService:this._tooltipService,theme:this._theme};this.view=new t.View(e)},t.prototype._initInterceptor=function(){var t,e=this;this._interceptor=new ze(this.getElement(),((t={})[Ye.SPACE_BAR]=function(t){t.stopPropagation(),e._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED)},t[Ye.ENTER]=function(t){t.stopPropagation(),e._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED)},t))},t.prototype._destroyInterceptor=function(){this._interceptor.destroy()},t.prototype._toggleFullScreen=function(){this._fullScreenManager.isInFullScreen?(this._fullScreenManager.exitFullScreen(),this._eventEmitter.emitAsync(Vt.EXIT_FULL_SCREEN_CLICK)):(this._fullScreenManager.enterFullScreen(),this._eventEmitter.emitAsync(Vt.ENTER_FULL_SCREEN_CLICK))},t.prototype.hide=function(){this.isHidden=!0,this.view.hide()},t.prototype.show=function(){this.isHidden=!1,this.view.show()},t.prototype.destroy=function(){this._destroyInterceptor(),this._unbindEvents(),this.view.destroy()},t.moduleName="fullScreenControl",t.View=Hi,t.dependencies=["eventEmitter","fullScreenManager","textMap","tooltipService","theme"],t}();ee(".__1gCAB{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;cursor:pointer;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:opacity;transition-property:opacity;opacity:1;border:0;border-radius:0;outline:none;background-color:transparent;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__1gCAB:hover{opacity:.7}.__17cZh{visibility:hidden!important;width:0!important;min-width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important}.__3PS8W{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.__68YJ9{width:26px;min-width:26px;height:26px;min-height:26px;-webkit-transition:-webkit-transform .2s;transition:-webkit-transform .2s;transition:transform .2s;transition:transform .2s,-webkit-transform .2s}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__68YJ9{width:35px;min-width:35px;height:35px;min-height:21px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__68YJ9 .__HLiwK{width:24px;height:21px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__68YJ9 .__2lbgz{display:none}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__68YJ9 .__3eWYY{display:block}.__68YJ9 .__HLiwK{width:15px;height:13px}.__68YJ9 .__2lbgz{display:block}.__68YJ9 .__3eWYY{display:none}.__68YJ9:hover{-webkit-transform:scale(1.18);transform:scale(1.18)}.__68YJ9.__33ewm:hover{-webkit-transform:scale(.8);transform:scale(.8)}");var Yi=function(t){function e(e){var i,n=this,o=e.callbacks,r=e.textMap,s=e.tooltipService,a=e.theme;return(n=t.call(this,a)||this)._callbacks=o,n._textMap=r,n._$rootElement=Xt('<div class="'+(i={styles:n.styleNames,texts:{label:n._textMap.get(jt.ENTER_PICTURE_IN_PICTURE_LABEL)}}).styles.pictureInPictureControl+'" data-playable-hook="picture-in-picture-control" data-is-picture-in-picture="false"> <button class="'+i.styles.pictureInPictureToggle+" "+i.styles.controlButton+'" data-playable-hook="picture-in-picture-control" aria-label="'+i.texts.label+'" type="button" tabindex="0"/></div>'),n._$togglePictureInPictureControl=Ke(n._$rootElement,"picture-in-picture-control"),n._tooltipReference=s.createReference(n._$togglePictureInPictureControl,{text:n._textMap.get(jt.ENTER_PICTURE_IN_PICTURE_TOOLTIP)}),n.setPictureInPictureState(!1),n._bindEvents(),n}return i(e,t),e.prototype._bindEvents=function(){this._onButtonClick=this._onButtonClick.bind(this),this._$togglePictureInPictureControl.addEventListener("click",this._onButtonClick)},e.prototype._unbindEvents=function(){this._$togglePictureInPictureControl.removeEventListener("click",this._onButtonClick)},e.prototype._onButtonClick=function(){this._callbacks.onButtonClick()},e.prototype.setPictureInPictureState=function(t){var e;t?(this._$togglePictureInPictureControl.classList.add(this.styleNames.pictureInPicture),this._$togglePictureInPictureControl.innerHTML='<div class="'+(e={styles:this.styleNames,themeStyles:this.themeStyles}).styles.icon+'"> <svg class="'+e.styles.icon_small+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 15"> <g fill="#FFF" fill-rule="evenodd" class="'+e.themeStyles.pictureInPictureSvgFill+'"> <path d="M7 13H0V0h15v5h-2.006V2.003H2.019V11H7z"/> <path d="M16 9H9V7h7z"/> <path d="M11 14V7H9v7z"/> <path d="M16.364 12.95l-1.414 1.414L10 9.414 11.414 8z"/> </g> </svg> <svg class="'+e.styles.icon_big+'" viewBox="0 0 24 21" version="1" xmlns="http://www.w3.org/2000/svg"> <g fill="#FFF" fill-rule="evenodd"> <path d="M23 14h-8v-2h8z"/> <path d="M17 20v-8h-2v8z"/> <path d="M24 20l-1 1-7-6 2-2z"/> <path d="M12 19H0V0h22v9h-2V2H2v15h10z"/> </g> </svg></div>',this._$togglePictureInPictureControl.setAttribute("aria-label",this._textMap.get(jt.EXIT_PICTURE_IN_PICTURE_LABEL)),this._tooltipReference.setText(this._textMap.get(jt.EXIT_PICTURE_IN_PICTURE_TOOLTIP))):(this._$togglePictureInPictureControl.classList.remove(this.styleNames.pictureInPicture),this._$togglePictureInPictureControl.setAttribute("aria-label",this._textMap.get(jt.ENTER_PICTURE_IN_PICTURE_LABEL)),this._tooltipReference.setText(this._textMap.get(jt.ENTER_PICTURE_IN_PICTURE_TOOLTIP)),this._$togglePictureInPictureControl.innerHTML=function(t){return'<div class="'+t.styles.icon+'"> <svg class="'+t.styles.icon_small+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 15"> <g fill="#FFF" fill-rule="evenodd" class="'+t.themeStyles.pictureInPictureSvgFill+'"> <path d="M6 13H0V0h15v5h-1.992V1.96H2.027V11H6z"/> <path d="M8 7h9v8H8V7zm2 2v4h5V9h-5z"/> </g> </svg> <svg class="'+t.styles.icon_big+'" viewBox="0 0 24 21" version="1" xmlns="http://www.w3.org/2000/svg"> <g fill="#FFF" fill-rule="evenodd"> <path d="M12 10h12v11H12V10zm2 2v7h8v-7h-8z"/> <path d="M9 19H0V0h22v7h-2V2H2v15h7z"/> </g> </svg></div>'}({styles:this.styleNames,themeStyles:this.themeStyles}))},e.prototype.hide=function(){this._$rootElement.classList.add(this.styleNames.hidden)},e.prototype.show=function(){this._$rootElement.classList.remove(this.styleNames.hidden)},e.prototype.getElement=function(){return this._$rootElement},e.prototype.destroy=function(){this._unbindEvents(),this._tooltipReference.destroy(),this._$rootElement.parentNode&&this._$rootElement.parentNode.removeChild(this._$rootElement),this._$togglePictureInPictureControl=null,this._$rootElement=null},e}(te);Yi.setTheme({pictureInPictureSvgFill:{fill:function(t){return t.color}}}),Yi.extendStyleNames({controlButton:"__1gCAB",hidden:"__17cZh",pictureInPictureControl:"__3PS8W",pictureInPictureToggle:"__68YJ9",icon:"__HLiwK",icon_small:"__2lbgz",icon_big:"__3eWYY",inPictureInPicture:"__33ewm"});var zi=function(){function t(t){var e=t.eventEmitter,i=t.pictureInPicture,n=t.textMap,o=t.tooltipService,r=t.theme;this._eventEmitter=e,this._pictureInPictureManager=i,this._textMap=n,this._theme=r,this._tooltipService=o,this._bindCallbacks(),this._initUI(),this._bindEvents(),this._pictureInPictureManager.isEnabled||this.hide(),this._initInterceptor()}return t.prototype.getElement=function(){return this.view.getElement()},t.prototype._bindCallbacks=function(){this._togglePictureInPicture=this._togglePictureInPicture.bind(this)},t.prototype._bindEvents=function(){this._unbindEvents=this._eventEmitter.bindEvents([[Vt.PICTURE_IN_PICTURE_STATUS_CHANGE,this.view.setPictureInPictureState]],this.view)},t.prototype._initUI=function(){var e={callbacks:{onButtonClick:this._togglePictureInPicture},textMap:this._textMap,tooltipService:this._tooltipService,theme:this._theme};this.view=new t.View(e)},t.prototype._initInterceptor=function(){var t,e=this;this._interceptor=new ze(this.getElement(),((t={})[Ye.SPACE_BAR]=function(t){t.stopPropagation(),e._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED)},t[Ye.ENTER]=function(t){t.stopPropagation(),e._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED)},t))},t.prototype._destroyInterceptor=function(){this._interceptor.destroy()},t.prototype._togglePictureInPicture=function(){this._pictureInPictureManager.isInPictureInPicture?(this._pictureInPictureManager.exitPictureInPicture(),this._eventEmitter.emitAsync(Vt.EXIT_PICTURE_IN_PICTURE_CLICK)):(this._pictureInPictureManager.enterPictureInPicture(),this._eventEmitter.emitAsync(Vt.ENTER_PICTURE_IN_PICTURE_CLICK))},t.prototype.hide=function(){this.isHidden=!0,this.view.hide()},t.prototype.show=function(){this.isHidden=!1,this.view.show()},t.prototype.destroy=function(){this._destroyInterceptor(),this._unbindEvents(),this.view.destroy()},t.moduleName="pictureInPictureControl",t.View=Yi,t.dependencies=["eventEmitter","pictureInPicture","textMap","tooltipService","theme"],t}();ee('.__owdbK{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;cursor:pointer;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:opacity;transition-property:opacity;opacity:1;border:0;border-radius:0;outline:none;background-color:transparent;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__owdbK:hover{opacity:.7}.__Pm6t6{visibility:hidden!important;width:0!important;min-width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important}.__2HWRo{position:relative;z-index:3;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-transition:opacity .2s;transition:opacity .2s;-webkit-transition-duration:.2s;transition-duration:.2s;opacity:1;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__2HWRo:hover .__14fTk{opacity:.7}.__1N2ry{max-width:125px;max-height:26px;-webkit-transition:opacity .2s;transition:opacity .2s}[data-playable-hook=player-container][data-playable-max-width~="550px"] .__1N2ry{max-width:90px;max-height:20px}[data-playable-hook=player-container][data-playable-max-width~="350px"] .__1N2ry{max-width:70px;max-height:18px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__1N2ry{max-width:450px;max-height:36px}.__1N2ry.__Pm6t6{display:none}.__1JWF4{width:26px;min-width:26px;height:26px;min-height:26px;-webkit-transition:-webkit-transform .2s;transition:-webkit-transform .2s;transition:transform .2s;transition:transform .2s,-webkit-transform .2s}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__1JWF4{width:35px;min-width:35px;height:35px;min-height:35px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__1JWF4 .__39sTd{width:25px;height:21px;padding-left:4px}.__1JWF4 .__39sTd{width:16px;height:13px;padding-left:3px}.__1JWF4:hover{-webkit-transform:scale(1.2);transform:scale(1.2)}');var ji=function(t){function e(e){var i=this,n=e.callbacks,o=e.textMap,r=e.tooltipService,s=e.theme;return(i=t.call(this,s)||this)._callbacks=n,i._textMap=o,i._$rootElement=Xt('<div class="'+{styles:i.styleNames,texts:{label:i._textMap.get(jt.LOGO_LABEL)}}.styles.logoWrapper+'"></div>'),i._$logoImage=Xt(function(t){return'<img class="'+t.styles.logoImage+'" aria-label="'+t.texts.label+'"/>'}({styles:i.styleNames,texts:{label:i._textMap.get(jt.LOGO_LABEL)}})),i._$logoInput=Xt(function(t){return'<input type="image" class="'+t.styles.logoImage+'" aria-label="'+t.texts.label+'" tabindex="0" />'}({styles:i.styleNames,texts:{label:i._textMap.get(jt.LOGO_LABEL)}})),i._$logoButton=Xt(function(t){return'<button class="'+t.styles.logoButton+" "+t.styles.controlButton+'" aria-label="'+t.texts.label+'" type="button" tabindex="0"> <div class="'+t.styles.icon+'"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 15" preserveAspectRatio="xMidYMin slice" width="100%" style="padding-bottom: 127%; height: 1px; overflow: visible"> <path fill="#FFF" fill-rule="evenodd" class="'+t.themeStyles.logoButtonSvgFill+'" d="M2 12h10v-2h2v4H0V0h4v2H2v10zm10-8.515L7.414 8.071 6 6.657 10.657 2H9.004V0H14v5.005h-2v-1.52z"/> </svg> </div></button>'}({styles:i.styleNames,themeStyles:i.themeStyles,texts:{label:i._textMap.get(jt.LOGO_LABEL)}})),i._tooltipReference=r.createReference(i._$rootElement,{text:i._textMap.get(jt.LOGO_TOOLTIP)}),i.setLogo(e.logo),i._bindCallbacks(),i._bindEvents(),i.showAsButton(),i}return i(e,t),e.prototype.setLogo=function(t){t?(this._$logoImage.setAttribute("src",t),this._$logoInput.setAttribute("src",t)):(this._$logoImage.removeAttribute("src"),this._$logoInput.removeAttribute("src"))},e.prototype.showAsImage=function(){this._setChild(this._$logoImage),this._tooltipReference.disable()},e.prototype.showAsButton=function(){this._setChild(this._$logoButton),this._tooltipReference.enable()},e.prototype.showAsInput=function(){this._setChild(this._$logoInput),this._tooltipReference.enable()},e.prototype._setChild=function(t){this._$rootElement.firstChild&&this._$rootElement.removeChild(this._$rootElement.firstChild),this._$rootElement.appendChild(t)},e.prototype._bindCallbacks=function(){this._onClick=this._onClick.bind(this)},e.prototype._bindEvents=function(){this._$rootElement.addEventListener("click",this._onClick)},e.prototype._unbindEvents=function(){this._$rootElement.removeEventListener("click",this._onClick)},e.prototype._onClick=function(){this._$rootElement.focus(),this._callbacks.onLogoClick()},e.prototype.show=function(){this._$rootElement.classList.remove(this.styleNames.hidden)},e.prototype.hide=function(){this._$rootElement.classList.remove(this.styleNames.hidden)},e.prototype.getElement=function(){return this._$rootElement},e.prototype.destroy=function(){this._unbindEvents(),this._tooltipReference.destroy(),this._$rootElement.parentNode&&this._$rootElement.parentNode.removeChild(this._$rootElement),this._$rootElement=null,this._$logoImage=null,this._$logoInput=null,this._$logoButton=null},e}(te);ji.setTheme({logoButtonSvgFill:{fill:function(t){return t.color}}}),ji.extendStyleNames({controlButton:"__owdbK",hidden:"__Pm6t6",logoWrapper:"__2HWRo",logoPlaceholder:"__14fTk",logoImage:"__1N2ry",logoButton:"__1JWF4",icon:"__39sTd"});var Ki=function(){function t(t){var e=t.eventEmitter,i=t.textMap,n=t.tooltipService,o=t.theme;this._eventEmitter=e,this._textMap=i,this._theme=o,this._tooltipService=n,this._bindCallbacks(),this._initUI(),this._initInterceptor()}return t.prototype.getElement=function(){return this.view.getElement()},t.prototype._bindCallbacks=function(){this._triggerCallback=this._triggerCallback.bind(this)},t.prototype._initUI=function(){var e={theme:this._theme,callbacks:{onLogoClick:this._triggerCallback},textMap:this._textMap,tooltipService:this._tooltipService};this.view=new t.View(e)},t.prototype._initInterceptor=function(){var t,e=this;this._interceptor=new ze(this.getElement(),((t={})[Ye.SPACE_BAR]=function(t){t.stopPropagation(),e._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED),e._triggerCallback()},t[Ye.ENTER]=function(t){t.stopPropagation(),e._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED),e._triggerCallback()},t))},t.prototype._destroyInterceptor=function(){this._interceptor.destroy()},t.prototype._triggerCallback=function(){this._callback&&this._callback()},t.prototype.setLogo=function(t){this._logoSrc=t,this.view.setLogo(this._logoSrc),this._setProperDisplayState()},t.prototype.setLogoClickCallback=function(t){this._callback=t,this._setProperDisplayState()},t.prototype._setProperDisplayState=function(){this._callback?this._logoSrc?this.view.showAsInput():this.view.showAsButton():this._logoSrc?this.view.showAsImage():this.view.showAsButton()},t.prototype.hide=function(){this.isHidden=!0,this.view.hide()},t.prototype.show=function(){this.isHidden=!1,this.view.show()},t.prototype.destroy=function(){this._destroyInterceptor(),this.view.destroy()},t.moduleName="logo",t.View=ji,t.dependencies=["eventEmitter","textMap","tooltipService","theme"],o([B()],t.prototype,"setLogo",null),o([B()],t.prototype,"setLogoClickCallback",null),t}();ee(".__fk1Ma{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;cursor:pointer;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:opacity;transition-property:opacity;opacity:1;border:0;border-radius:0;outline:none;background-color:transparent;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__fk1Ma:hover{opacity:.7}.__36lL8{visibility:hidden!important;width:0!important;min-width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important}.__244Vz{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.__3J_rA{width:26px;min-width:26px;height:26px;min-height:26px;-webkit-transition:-webkit-transform .2s;transition:-webkit-transform .2s;transition:transform .2s;transition:transform .2s,-webkit-transform .2s}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__3J_rA{width:35px;min-width:35px;height:35px;min-height:21px}[data-playable-hook=player-container][data-playable-in-full-screen=true] .__3J_rA .__2Zjb8{width:18px;height:18px;padding-right:2px}.__3J_rA .__2Zjb8{width:14px;height:14px;padding-bottom:2px}.__3J_rA:hover{-webkit-transform:scale(1.18);transform:scale(1.18)}");var Gi=function(t){function e(e){var i,n=this,o=e.callbacks,r=e.textMap,s=e.tooltipService,a=e.theme;return(n=t.call(this,a)||this)._callbacks=o,n._textMap=r,n._$rootElement=Xt('<div class="'+(i={styles:n.styleNames,themeStyles:n.themeStyles,texts:{label:n._textMap.get(jt.DOWNLOAD_BUTTON_LABEL)}}).styles.buttonWrapper+'"> <button class="'+i.styles.downloadButton+" "+i.styles.controlButton+'" data-playable-hook="download-button" aria-label="'+i.texts.label+'" type="button" tabindex="0"> <div class="'+i.styles.icon+'"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 15"> <g fill="#FFF" fill-rule="evenodd"> <path d="M0 13h14v2H0zm3.586-8.828L7 7.525v2.708L2.172 5.586zM7 7.623l3.618-3.655 1.414 1.414L7 10.249z"/> <path d="M6 0h2v8l-1 2.225L6 8z"/> </g> </svg> </div> </button></div>'),n._$downloadButton=Ke(n._$rootElement,"download-button"),n._tooltipReference=s.createReference(n._$downloadButton,{text:n._textMap.get(jt.DOWNLOAD_BUTTON_TOOLTIP)}),n._bindEvents(),n}return i(e,t),e.prototype._bindEvents=function(){this._onButtonClick=this._onButtonClick.bind(this),this._$downloadButton.addEventListener("click",this._onButtonClick)},e.prototype._unbindEvents=function(){this._$downloadButton.removeEventListener("click",this._onButtonClick)},e.prototype._onButtonClick=function(){this._$rootElement.focus(),this._callbacks.onButtonClick()},e.prototype.hide=function(){this._$rootElement.classList.add(this.styleNames.hidden)},e.prototype.show=function(){this._$rootElement.classList.remove(this.styleNames.hidden)},e.prototype.getElement=function(){return this._$rootElement},e.prototype.destroy=function(){this._unbindEvents(),this._tooltipReference.destroy(),this._$rootElement.parentNode&&this._$rootElement.parentNode.removeChild(this._$rootElement),this._$downloadButton=null,this._$rootElement=null},e}(te);Gi.setTheme({downloadSvgFill:{fill:function(t){return t.color}}}),Gi.extendStyleNames({controlButton:"__fk1Ma",hidden:"__36lL8",buttonWrapper:"__244Vz",downloadButton:"__3J_rA",icon:"__2Zjb8"});var qi=function(){function t(t){var e=t.eventEmitter,i=t.textMap,n=t.tooltipService,o=t.theme;this._eventEmitter=e,this._textMap=i,this._theme=o,this._tooltipService=n,this._bindCallbacks(),this._initUI(),this._initInterceptor()}return t.prototype.getElement=function(){return this.view.getElement()},t.prototype._bindCallbacks=function(){this._triggerCallback=this._triggerCallback.bind(this)},t.prototype._initUI=function(){var e={callbacks:{onButtonClick:this._triggerCallback},textMap:this._textMap,tooltipService:this._tooltipService,theme:this._theme};this.view=new t.View(e)},t.prototype._initInterceptor=function(){var t,e=this;this._interceptor=new ze(this.getElement(),((t={})[Ye.SPACE_BAR]=function(t){t.stopPropagation(),e._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED),e._triggerCallback()},t[Ye.ENTER]=function(t){t.stopPropagation(),e._eventEmitter.emitAsync(Vt.KEYBOARD_KEYDOWN_INTERCEPTED),e._triggerCallback()},t))},t.prototype._destroyInterceptor=function(){this._interceptor.destroy()},t.prototype._triggerCallback=function(){this._callback&&this._callback()},t.prototype.setDownloadClickCallback=function(t){this._callback=t},t.prototype.hide=function(){this.isHidden=!0,this.view.hide()},t.prototype.show=function(){this.isHidden=!1,this.view.show()},t.prototype.destroy=function(){this._destroyInterceptor(),this.view.destroy()},t.moduleName="downloadButton",t.View=Gi,t.dependencies=["eventEmitter","textMap","tooltipService","theme"],o([B()],t.prototype,"setDownloadClickCallback",null),t}(),Xi=1,Ji=!1,Zi=function(){function t(t,e){var i=this;this._enterWhenHasMetaData=function(){i._$elem.removeEventListener("loadedmetadata",i._enterWhenHasMetaData),Ji=!1,i.request()},this.catchException=function(){i._$elem&&i._$elem.readyState<Xi&&(i._$elem.addEventListener("loadedmetadata",i._enterWhenHasMetaData),Ji=!0)},this._$elem=t,this._callback=e,this._bindEvents()}return Object.defineProperty(t.prototype,"isAPIExist",{get:function(){return Boolean("pictureInPictureEnabled"in document)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAPIEnabled",{get:function(){return Boolean(document.pictureInPictureEnabled)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInPictureInPicture",{get:function(){return Boolean(this._$elem&&this._$elem===document.pictureInPictureElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this.isAPIExist&&this.isAPIEnabled},enumerable:!0,configurable:!0}),t.prototype._bindEvents=function(){this._$elem.addEventListener("enterpictureinpicture",this._callback),this._$elem.addEventListener("leavepictureinpicture",this._callback)},t.prototype._unbindEvents=function(){this._$elem.removeEventListener("enterpictureinpicture",this._callback),this._$elem.removeEventListener("leavepictureinpicture",this._callback),this._$elem.removeEventListener("loadedmetadata",this._enterWhenHasMetaData)},t.prototype.request=function(){return!(!this.isEnabled||this.isInPictureInPicture||Ji)&&this._$elem.requestPictureInPicture().catch(this.catchException)},t.prototype.exit=function(){if(!this.isEnabled||!this.isInPictureInPicture)return!1;document.exitPictureInPicture()},t.prototype.destroy=function(){this._unbindEvents(),this._$elem=null},t}(),Qi=!1,tn=function(){function t(t,e){var i=this;this._enterWhenHasMetaData=function(){i._$elem.removeEventListener("loadedmetadata",i._enterWhenHasMetaData),Qi=!1,i.request()},this._$elem=t,this._callback=e,this._bindEvents()}return Object.defineProperty(t.prototype,"isAPIExist",{get:function(){return Boolean(this._$elem&&"function"==typeof this._$elem.webkitSetPresentationMode)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInPictureInPicture",{get:function(){return Boolean(this._$elem&&"picture-in-picture"===this._$elem.webkitPresentationMode)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this.isAPIExist},enumerable:!0,configurable:!0}),t.prototype._bindEvents=function(){this._$elem.addEventListener("webkitpresentationmodechanged",this._callback)},t.prototype._unbindEvents=function(){this._$elem.removeEventListener("webkitpresentationmodechanged",this._callback),this._$elem.removeEventListener("loadedmetadata",this._enterWhenHasMetaData)},t.prototype.request=function(){if(!this.isEnabled||this.isInPictureInPicture||Qi)return!1;try{this._$elem.webkitSetPresentationMode("picture-in-picture")}catch(t){this._$elem.readyState<1&&(this._$elem.addEventListener("loadedmetadata",this._enterWhenHasMetaData),Qi=!0)}},t.prototype.exit=function(){if(!this.isEnabled||!this.isInPictureInPicture)return!1;this._$elem.webkitSetPresentationMode("inline")},t.prototype.destroy=function(){this._unbindEvents(),this._$elem=null},t}(),en=function(){function t(t){var e=t.eventEmitter,i=t.engine;this._isEnabled=!0,this._eventEmitter=e,this._onChange=this._onChange.bind(this),D()?this._helper=new tn(i.getElement(),this._onChange):this._helper=new Zi(i.getElement(),this._onChange)}return t.prototype._onChange=function(){this._eventEmitter.emitAsync(Vt.PICTURE_IN_PICTURE_STATUS_CHANGE,this.isInPictureInPicture)},t.prototype.enterPictureInPicture=function(){this.isEnabled&&this._helper.request()},t.prototype.exitPictureInPicture=function(){this.isEnabled&&this._helper.exit()},t.prototype.disablePictureInPicture=function(){this._helper.exit(),this._isEnabled=!1},t.prototype.enablePictureInPicture=function(){this._isEnabled=!0},Object.defineProperty(t.prototype,"isInPictureInPicture",{get:function(){return!!this.isEnabled&&this._helper.isInPictureInPicture},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this._helper.isEnabled&&this._isEnabled},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._helper.destroy()},t.moduleName="pictureInPicture",t.dependencies=["eventEmitter","engine","config"],o([B()],t.prototype,"enterPictureInPicture",null),o([B()],t.prototype,"exitPictureInPicture",null),o([B()],t.prototype,"disablePictureInPicture",null),o([B()],t.prototype,"enablePictureInPicture",null),o([B()],t.prototype,"isInPictureInPicture",null),t}();function nn(t,e,i){var n=t.framesCount,o=Math.floor(e*n/i);return t.qualities.map(function(t){return function(t,e,i){var n=e.framesInSprite.vert*e.framesInSprite.horz,o=i%n,r=Math.floor(i/n),s=o%e.framesInSprite.horz,a=Math.floor(o/e.framesInSprite.vert),l=e.spriteUrlMask.replace("%d",r.toString());return{frameSize:e.frameSize,framesInSprite:(r+1)*n<=t?e.framesInSprite:{horz:e.framesInSprite.horz,vert:Math.ceil(t%n/e.framesInSprite.vert)},framePositionInSprite:{vert:a,horz:s},spriteUrl:l}}(n,t,o)})}var on=function(){function t(t){var e=t.engine;this._engine=e}return t.prototype.setFramesMap=function(t){this._framesMap=t},t.prototype.getAt=function(t){if(this._framesMap){var e=this._engine.getDuration();if(e)return nn(this._framesMap,t,e)}},t.prototype.destroy=function(){this._framesMap=null},t.moduleName="previewService",t.dependencies=["engine"],o([B()],t.prototype,"setFramesMap",null),t}();ee(".__1TmLX{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;width:180px;height:90px;border:2px solid rgba(0,0,0,.5);border-radius:2px;background-color:rgba(0,0,0,.5);-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__1TmLX.__LitJh{width:auto;height:auto;border:none;border-radius:0}.__fzXUI,.__sCDil{position:absolute;top:2px;right:2px;bottom:2px;left:2px;width:180px;height:90px}.__sCDil{z-index:2}.__fzXUI{z-index:1}.__LitJh .__VFKJP{background:none}.__LitJh .__fzXUI,.__LitJh .__sCDil{width:0;height:0}.__VFKJP{font-size:11px;line-height:12px;position:relative;z-index:3;padding:4px 5px;white-space:nowrap;color:#fff;background:rgba(0,0,0,.8)}");var rn=function(t){function e(){var e=t.call(this)||this;return e._initDOM(),e}return i(e,t),e.prototype._initDOM=function(){var t;this._$rootElement=Xt('<div class="'+(t={styles:this.styleNames}).styles.container+'" data-playable-component> <div class="'+t.styles.highQualityFrame+'" data-playable-hook="thumb-high-quality" > </div> <div class="'+t.styles.lowQualityFrame+'" data-playable-hook="thumb-low-quality"> </div> <div class="'+t.styles.thumbText+'" data-playable-hook="thumb-text-block"> </div></div>'),this._$timeText=Ke(this._$rootElement,"thumb-text-block"),this._$lowQualityThumb=Ke(this._$rootElement,"thumb-low-quality"),this._$highQualityThumb=Ke(this._$rootElement,"thumb-high-quality")},e.prototype.getElement=function(){return this._$rootElement},e.prototype.showAsEmpty=function(){this._$rootElement.classList.add(this.styleNames.empty)},e.prototype.showWithPreview=function(){this._$rootElement.classList.remove(this.styleNames.empty)},e.prototype.clearLowQualityPreview=function(){this._$lowQualityThumb.style.background=""},e.prototype.clearHighQualityPreview=function(){this._$highQualityThumb.style.background=""},e.prototype.setLowQualityPreview=function(t){this._applyQualityToThumbElement(this._$lowQualityThumb,t)},e.prototype.setHighQualityPreview=function(t){this._applyQualityToThumbElement(this._$highQualityThumb,t)},e.prototype._applyQualityToThumbElement=function(t,e){var i=t.offsetWidth,n=t.offsetHeight,o=i*e.framesInSprite.horz,r=n*e.framesInSprite.vert;t.style.background="url('"+e.spriteUrl+"') -"+i*e.framePositionInSprite.horz+"px -"+n*e.framePositionInSprite.vert+"px / "+o+"px "+r+"px"},e.prototype.setTime=function(t){this._$timeText.innerText=t},e.prototype.destroy=function(){this._$rootElement.parentNode&&this._$rootElement.parentNode.removeChild(this._$rootElement),this._$timeText=null,this._$lowQualityThumb=null,this._$highQualityThumb=null,this._$rootElement=null},e}(te);rn.extendStyleNames({container:"__1TmLX",empty:"__LitJh",highQualityFrame:"__sCDil",lowQualityFrame:"__fzXUI",thumbText:"__VFKJP"});var sn=function(){function t(t){var e=t.previewService;this._previewService=e,this._initUI()}return t.prototype._initUI=function(){this.view=new t.View},t.prototype.getElement=function(){return this.view.getElement()},t.prototype.showAt=function(t){var e=this._previewService.getAt(t);e?(this.view.showWithPreview(),this._currentFrames&&(this._currentFrames[0].spriteUrl!==e[0].spriteUrl&&this.view.clearLowQualityPreview(),this._currentFrames[1].spriteUrl!==e[1].spriteUrl&&this.view.clearHighQualityPreview()),this.view.setLowQualityPreview(e[0]),this.view.setHighQualityPreview(e[1]),this._currentFrames=e):this.view.showAsEmpty()},t.prototype.setTime=function(t){this.view.setTime(t)},t.prototype.destroy=function(){this.view.destroy()},t.moduleName="previewThumbnail",t.View=rn,t.dependencies=["previewService"],t}();ee(".__2sWjc{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;cursor:pointer;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:opacity;transition-property:opacity;opacity:1;border:0;border-radius:0;outline:none;background-color:transparent;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__2sWjc:hover{opacity:.7}.__1ZRC_{visibility:hidden!important;width:0!important;min-width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important}.__M_Ygb{z-index:50;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;pointer-events:none;background-color:#000;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.__3AEDD,.__M_Ygb{position:absolute;top:0;right:0;bottom:0;left:0}.__3AEDD{z-index:2;opacity:.5}");var an=function(t){function e(){var e=t.call(this)||this;return e._initDOM(),e}return i(e,t),e.prototype._initDOM=function(){var t;this._$rootElement=Xt('<div class="'+(t={styles:this.styleNames}).styles.container+'" data-playable-component> <div class="'+t.styles.frame+'" data-playable-hook="preview-full-size-frame" > </div></div>'),this._$frame=Ke(this._$rootElement,"preview-full-size-frame")},e.prototype.getElement=function(){return this._$rootElement},e.prototype.setPreview=function(t){this._applyFrame(t)},e.prototype._applyFrame=function(t){var e=this._$frame.offsetWidth,i=this._$frame.offsetHeight,n=e*t.framesInSprite.horz,o=i*t.framesInSprite.vert;this._$frame.style.background="url('"+t.spriteUrl+"') -"+e*t.framePositionInSprite.horz+"px -"+i*t.framePositionInSprite.vert+"px / "+n+"px "+o+"px"},e.prototype.clear=function(){this._$frame.style.background=""},e.prototype.show=function(){this._$rootElement.classList.remove(this.styleNames.hidden)},e.prototype.hide=function(){this._$rootElement.classList.add(this.styleNames.hidden)},e.prototype.destroy=function(){this._$rootElement.parentNode&&this._$rootElement.parentNode.removeChild(this._$rootElement),this._$frame=null,this._$rootElement=null},e}(te);an.extendStyleNames({controlButton:"__2sWjc",hidden:"__1ZRC_",container:"__M_Ygb",frame:"__3AEDD"});var ln,cn,pn=function(){function t(t){var e=t.previewService,i=t.rootContainer;this._previewService=e,this._initUI(),this.hide(),i.appendComponentElement(this.getElement())}return t.prototype._initUI=function(){this.view=new t.View},t.prototype.getElement=function(){return this.view.getElement()},t.prototype.showAt=function(t){this.view.show();var e=this._previewService.getAt(t);if(e){var i=e.pop();this._currentFrame&&this._currentFrame.spriteUrl!==i.spriteUrl&&this.view.clear(),this.view.setPreview(i),this._currentFrame=i}else this.view.clear()},t.prototype.hide=function(){this.view.hide()},t.prototype.destroy=function(){this.view.destroy()},t.moduleName="previewFullSize",t.View=an,t.dependencies=["previewService","rootContainer"],t}();(ln=t.PRELOAD_TYPES||(t.PRELOAD_TYPES={})).NONE="none",ln.METADATA="metadata",ln.AUTO="auto",(cn=t.CROSS_ORIGIN_VALUES||(t.CROSS_ORIGIN_VALUES={})).ANONYMUS="anonymous",cn.CREDENTIALS="use-credentials";var hn=["loadstart","loadedmetadata","canplay","play","playing","pause","ended","waiting","seeking","seeked"],un=function(){function t(t,e){this._eventEmitter=t,this._video=e,this._currentState=null,this._isMetadataLoaded=!1,this._statesTimestamps={},this._bindCallbacks(),this._bindEvents()}return t.prototype._bindCallbacks=function(){this._processEventFromVideo=this._processEventFromVideo.bind(this)},t.prototype._bindEvents=function(){var t=this;hn.forEach(function(e){t._video.addEventListener(e,t._processEventFromVideo)})},t.prototype._unbindEvents=function(){var t=this;hn.forEach(function(e){return t._video.removeEventListener(e,t._processEventFromVideo)})},t.prototype.clearTimestamps=function(){this._statesTimestamps={}},t.prototype._setInitialTimeStamp=function(){this._initialTimeStamp=Date.now()},t.prototype._setStateTimestamp=function(t){this._statesTimestamps[t]||(this._statesTimestamps[t]=Date.now()-this._initialTimeStamp,this._setInitialTimeStamp())},Object.defineProperty(t.prototype,"stateTimestamps",{get:function(){return this._statesTimestamps},enumerable:!0,configurable:!0}),t.prototype._processEventFromVideo=function(t){void 0===t&&(t={});var e=this._video;switch(t.type){case"loadstart":this._setInitialTimeStamp(),this.setState(Gt.LOAD_STARTED);break;case"loadedmetadata":this._setStateTimestamp(Gt.METADATA_LOADED),this.setState(Gt.METADATA_LOADED),this._isMetadataLoaded=!0;break;case"canplay":this._currentState===Gt.METADATA_LOADED&&(this._setStateTimestamp(Gt.READY_TO_PLAY),this.setState(Gt.READY_TO_PLAY));break;case"play":this.setState(Gt.PLAY_REQUESTED);break;case"playing":D()&&e.paused||this.setState(Gt.PLAYING);break;case"waiting":this.setState(Gt.WAITING);break;case"pause":D()?e.played.length&&this.setState(Gt.PAUSED):this.setState(Gt.PAUSED);break;case"ended":this.setState(Gt.ENDED);break;case"seeking":this.setState(Gt.SEEK_IN_PROGRESS);break;case"seeked":this.setState(e.paused?Gt.PAUSED:Gt.PLAYING)}},t.prototype.setState=function(t){t!==this._currentState&&(this._currentState!==Gt.METADATA_LOADED||t!==Gt.SEEK_IN_PROGRESS&&t!==Gt.PAUSED)&&(this._eventEmitter.emitAsync(Ht.STATE_CHANGED,{prevState:this._currentState,nextState:t}),this._eventEmitter.emitAsync(t),this._currentState=t)},Object.defineProperty(t.prototype,"isMetadataLoaded",{get:function(){return this._isMetadataLoaded},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._currentState},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._unbindEvents()},t}(),_n=["loadstart","progress","error","stalled","suspend","durationchange","timeupdate","volumechange","seeking"],dn=function(){function t(t,e){this._eventEmitter=t,this._video=e,this._currentMute=this._video.muted,this._currentVolume=this._video.volume,this._bindCallbacks(),this._bindEvents()}return t.prototype._bindCallbacks=function(){this._processEventFromVideo=this._processEventFromVideo.bind(this)},t.prototype._bindEvents=function(){var t=this;_n.forEach(function(e){return t._video.addEventListener(e,t._processEventFromVideo)})},t.prototype._unbindEvents=function(){var t=this;_n.forEach(function(e){return t._video.removeEventListener(e,t._processEventFromVideo)})},t.prototype._processEventFromVideo=function(t){void 0===t&&(t={});var e=this._video;switch(t.type){case"loadstart":this._shouldCheckVolume&&this._checkVolumeChanges();break;case"progress":this._eventEmitter.emitAsync(Ht.CHUNK_LOADED);break;case"stalled":this._eventEmitter.emitAsync(Ht.UPLOAD_STALLED);break;case"suspend":this._eventEmitter.emitAsync(Ht.UPLOAD_SUSPEND);break;case"seeking":this._eventEmitter.emitAsync(Ht.SEEK_IN_PROGRESS,e.currentTime);break;case"durationchange":this._eventEmitter.emitAsync(Ht.DURATION_UPDATED,e.duration);break;case"timeupdate":this._eventEmitter.emitAsync(Ht.CURRENT_TIME_UPDATED,e.currentTime);break;case"volumechange":this._shouldCheckVolume&&(this._shouldCheckVolume=!1),this._checkVolumeChanges()}},t.prototype._checkVolumeChanges=function(){var t=this._video;this._currentVolume!==t.volume&&(this._currentVolume=100*t.volume,this._eventEmitter.emitAsync(Ht.VOLUME_CHANGED,this._currentVolume)),this._currentMute!==t.muted&&(this._currentMute=t.muted,this._eventEmitter.emitAsync(Ht.MUTE_CHANGED,this._currentMute)),this._eventEmitter.emitAsync(Ht.SOUND_STATE_CHANGED,{volume:t.volume,muted:t.muted})},t.prototype.checkVolumeChangeAfterLoadStart=function(){this._shouldCheckVolume=!0},t.prototype.destroy=function(){this._unbindEvents()},t}();function yn(t,e){var i=[],n=function(t){var e={};return t.forEach(function(t){var i=t.type||$t[t.mimeType];i&&(Array.isArray(e[i])||(e[i]=[]),e[i].push({url:t.url,type:i}))}),e}(t),o=Object.keys(n);return e.forEach(function(t){for(var e=0;e<o.length;e+=1){var r=o[e];if(t.canPlay(r)){t.setMediaStreams(n[r]),i.push(t);break}}}),i.sort(function(t,e){return e.mediaStreamDeliveryPriority-t.mediaStreamDeliveryPriority}),i}var mn=Object.create(null);mn.mp4=t.MEDIA_STREAM_TYPES.MP4,mn.webm=t.MEDIA_STREAM_TYPES.WEBM,mn.m3u8=t.MEDIA_STREAM_TYPES.HLS,mn.mpd=t.MEDIA_STREAM_TYPES.DASH,mn.ogg=t.MEDIA_STREAM_TYPES.OGG,mn.mkv=t.MEDIA_STREAM_TYPES.MKV,mn.mov=t.MEDIA_STREAM_TYPES.MOV;var fn=function(){function t(t,e,i){var n=this;void 0===i&&(i=[]),this._video=e,this._eventEmitter=t,this._playableAdapters=[],this._availableAdapters=[],this._attachedAdapter=null,i.forEach(function(e){return e.isSupported()&&n._availableAdapters.push(new e(t))})}return t.prototype._autoDetectSourceTypes=function(t){var e=this;return t.map(function(t){if("string"==typeof t){var i=(n=t,(r=document.createElement("a")).href=n,mn[(o=r.pathname,o.split(".").pop().toLowerCase())]||!1);return i||e._eventEmitter.emitAsync(Ht.ERROR,{errorType:Yt.SRC_PARSE,streamSrc:t}),{url:t,type:i}}var n,o,r;return t})},t.prototype._resolvePlayableAdapters=function(t){if(t){var e=[].concat(t),i=this._autoDetectSourceTypes(e);this._playableAdapters=yn(i,this._availableAdapters)}else this._playableAdapters=[]},t.prototype._connectAdapterToVideo=function(){this._playableAdapters.length>0&&(this._attachedAdapter=this._playableAdapters[0],this._attachedAdapter.attach(this._video))},t.prototype._detachCurrentAdapter=function(){this._attachedAdapter&&(this._attachedAdapter.detach(),this._attachedAdapter=null)},Object.defineProperty(t.prototype,"attachedAdapter",{get:function(){return this._attachedAdapter},enumerable:!0,configurable:!0}),t.prototype.connectAdapter=function(t){this._detachCurrentAdapter(),this._resolvePlayableAdapters(t),this._connectAdapterToVideo()},t.prototype.destroy=function(){this._detachCurrentAdapter()},t}(),vn=function(){function e(t){var e=t.eventEmitter,i=t.config,n=t.availablePlaybackAdapters,o=void 0===n?[]:n;this._createVideoTag(i.videoElement),this._eventEmitter=e,this._availablePlaybackAdapters=o,this._stateEngine=new un(this._eventEmitter,this._video),this._nativeEventsBroadcaster=new dn(e,this._video),this._adapterStrategy=new fn(this._eventEmitter,this._video,this._availablePlaybackAdapters)}return e.prototype._createVideoTag=function(t){t&&"VIDEO"===t.tagName?this._video=t:this._video=document.createElement("video")},e.prototype.play=function(){var t=this;this._eventEmitter.emitAsync(Ht.PLAY_REQUEST),this._pauseRequested=!1,this._playPromise||(this._playPromise=this._video.play(),void 0!==this._playPromise&&this._playPromise.then(function(){t._playPromise=null,t._pauseRequested&&t.pause()}).catch(function(e){t._eventEmitter.emitAsync(Ht.PLAY_ABORTED,e),t._playPromise=null}))},e.prototype.pause=function(){this._playPromise?this._pauseRequested=!0:(this._video.pause(),this._pauseRequested=!1)},e.prototype.setMute=function(t){this._video.muted=t,this._nativeEventsBroadcaster.checkVolumeChangeAfterLoadStart()},e.prototype.setAutoplay=function(t){this._video.autoplay=t},e.prototype.setInline=function(t){t?this._video.setAttribute("playsinline","true"):this._video.removeAttribute("playsinline")},e.prototype.setCrossOrigin=function(t){t?this._video.setAttribute("crossorigin",t):this._video.removeAttribute("crossorigin")},e.prototype.setCurrentTime=function(t){this._video.currentTime=t},e.prototype.setVolume=function(t){this._video.volume=t,this._nativeEventsBroadcaster.checkVolumeChangeAfterLoadStart()},e.prototype.setLoop=function(t){this._video.loop=t},e.prototype.setPlaybackRate=function(t){this._video.playbackRate=t},e.prototype.setPreload=function(e){void 0===e&&(e=t.PRELOAD_TYPES.AUTO),this._video.preload=e||t.PRELOAD_TYPES.AUTO},e.prototype.setSrc=function(t,e){this._stateEngine.clearTimestamps(),this._adapterStrategy.connectAdapter(t),this._stateEngine.setState(Gt.SRC_SET),"function"==typeof e&&e()},e.prototype.syncWithLive=function(){this.attachedAdapter&&this.attachedAdapter.isDynamicContent&&!this.attachedAdapter.isDynamicContentEnded&&!this.isSyncWithLive&&(this.setCurrentTime(this.attachedAdapter.syncWithLiveTime),this.play())},e.prototype.getElement=function(){return this._video},e.prototype._getViewDimensions=function(){return{width:this._video.offsetWidth,height:this._video.offsetHeight}},Object.defineProperty(e.prototype,"volume",{get:function(){return this._video.volume},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentTime",{get:function(){return this._video.currentTime},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._video.duration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autoplay",{get:function(){return this._video.autoplay},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"crossOrigin",{get:function(){return this._video.getAttribute("crossorigin")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"playbackRate",{get:function(){return this._video.playbackRate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"buffered",{get:function(){return this._video.buffered},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preload",{get:function(){return this._video.preload},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isPaused",{get:function(){return this._video.paused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isMuted",{get:function(){return Boolean(this._video.muted)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEnded",{get:function(){return this._video.ended},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isInline",{get:function(){return Boolean(this._video.getAttribute("playsinline"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAutoplay",{get:function(){return this._video.autoplay},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoop",{get:function(){return this._video.loop},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isMetadataLoaded",{get:function(){return this._stateEngine.isMetadataLoaded},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDynamicContent",{get:function(){return!!this.attachedAdapter&&this.attachedAdapter.isDynamicContent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDynamicContentEnded",{get:function(){return!!this.attachedAdapter&&this.attachedAdapter.isDynamicContentEnded},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSeekAvailable",{get:function(){return!!this.attachedAdapter&&this.attachedAdapter.isSeekAvailable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSyncWithLive",{get:function(){return!!this.attachedAdapter&&this.attachedAdapter.isSyncWithLive},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isPreloadActive",{get:function(){return!(P()||L()||O()||M())&&"none"!==this.preload},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAutoPlayActive",{get:function(){return!(P()||L()||O()||M())&&this.isAutoplay},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"videoHeight",{get:function(){return this._video.videoHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"videoWidth",{get:function(){return this._video.videoWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"src",{get:function(){return this.attachedAdapter&&this.attachedAdapter.currentUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentState",{get:function(){return this._stateEngine.state},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"attachedAdapter",{get:function(){return this._adapterStrategy.attachedAdapter},enumerable:!0,configurable:!0}),e.prototype.getDebugInfo=function(){var t,e=this.duration,i=this.currentTime;return this.attachedAdapter&&(t=this.attachedAdapter.debugInfo),n(n({},t),{duration:e,currentTime:i,loadingStateTimestamps:this._stateEngine.stateTimestamps,viewDimensions:this._getViewDimensions(),output:"html5video"})},e.prototype.destroy=function(){this._nativeEventsBroadcaster.destroy(),this._adapterStrategy.destroy(),this._video.parentNode&&this._video.parentNode.removeChild(this._video),this._video=null},e.moduleName="nativeOutput",e.dependencies=["eventEmitter","config","availablePlaybackAdapters"],e}(),bn=w.asClass,gn={RootContainer:fe,EventEmitter:ge,Engine:Ee,ThemeService:Pe,TextMap:Me,NativeOutput:vn,FullScreenManager:Ve,PictureInPictureManager:en,LiveStateEngine:He,KeyboardControls:je,DebugPanel:Je,Screen:Qe,InteractionIndicator:ii,Overlay:oi,Loader:si,MainUIBlock:li,TopBlock:pi,LiveIndicator:di,Title:ui,BottomBlock:mi,ProgressControl:Pi,PlayControl:Mi,TimeControl:Ri,VolumeControl:Ui,FullScreenControl:Wi,PictureInPictureControl:zi,Logo:Ki,DownloadButton:qi,PreviewService:on,PreviewThumbnail:sn,PreviewFullSize:pn,TooltipService:Si},En=Object.keys(gn).reduce(function(t,e){var i=gn[e];if(!i.moduleName)throw new Error("No moduleName in module: "+e);return t[i.moduleName]=bn(i).scoped(),t},{}),wn="undefined"!=typeof window,kn={MSE:!1,HLS:!1,DASH:!1,MP4:!1,WEBM:!1,OGG:!1,MOV:!1,MKV:!1};!function(){if(wn){kn.MSE="WebKitMediaSource"in window||"MediaSource"in window;var t=document.createElement("video");"function"==typeof t.canPlayType&&((t.canPlayType("application/x-mpegURL")||t.canPlayType("application/vnd.apple.mpegURL"))&&(kn.HLS=!0),t.canPlayType("application/dash+xml")&&(kn.DASH=!0),t.canPlayType("video/mp4")&&(kn.MP4=!0),t.canPlayType("video/webm")&&(kn.WEBM=!0),t.canPlayType("video/ogg")&&(kn.OGG=!0),t.canPlayType("video/quicktime")&&(kn.MOV=!0),t.canPlayType("video/x-matroska")&&(kn.MKV=!0))}}();var xn={ABORTED:1,NETWORK:2,DECODE:3,SRC_NOT_SUPPORTED:4};function Sn(t,e){return function(){function i(t){this.mediaStreams=null,this.eventEmitter=t,this.currentLevel=0,this._bindCallbacks()}return i.isSupported=function(){return kn[t]},Object.defineProperty(i.prototype,"currentUrl",{get:function(){return this.mediaStreams[this.currentLevel].url},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"syncWithLiveTime",{get:function(){},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isDynamicContent",{get:function(){return!isFinite(this.video.duration)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isDynamicContentEnded",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isSyncWithLive",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isSeekAvailable",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mediaStreamDeliveryPriority",{get:function(){return e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mediaStreamType",{get:function(){return t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"debugInfo",{get:function(){if(this.video){var t=this.video,e=t.buffered,i=t.currentTime,o=function(t){var e=0;if(!t||!t.length)return e;for(var i=0;i<t.length;i+=1)e+=t.end(i)-t.start(i);return e}(e),r=Li(e,i);return n(n({},this.mediaStreams[0]),{deliveryPriority:this.mediaStreamDeliveryPriority,overallBufferLength:o,nearestBufferSegInfo:r})}return{}},enumerable:!0,configurable:!0}),i.prototype._bindCallbacks=function(){this._broadcastError=this._broadcastError.bind(this)},i.prototype.canPlay=function(e){return e===t},i.prototype.setMediaStreams=function(t){this.mediaStreams=t},i.prototype._logError=function(e,i){this.eventEmitter.emitAsync(Ht.ERROR,{errorType:e,streamType:t,streamProvider:"native",errorInstance:i})},i.prototype._broadcastError=function(){var t=this.video.error;if(t)switch(t.code){case xn.ABORTED:break;case xn.NETWORK:this._logError(Yt.CONTENT_LOAD,t);break;case xn.DECODE:this._logError(Yt.MEDIA,t);break;case xn.SRC_NOT_SUPPORTED:this._logError(Yt.CONTENT_LOAD,t);break;default:this._logError(Yt.UNKNOWN,t)}else this._logError(Yt.UNKNOWN,null)},i.prototype.attach=function(t){this.video=t,this.video.addEventListener("error",this._broadcastError),this.video.src=this.mediaStreams[this.currentLevel].url},i.prototype.detach=function(){this.video.removeEventListener("error",this._broadcastError),this.video.removeAttribute("src"),this.video=null},i}()}var Tn=[Sn(t.MEDIA_STREAM_TYPES.HLS,t.MEDIA_STREAM_DELIVERY_PRIORITY.NATIVE_ADAPTIVE),Sn(t.MEDIA_STREAM_TYPES.DASH,t.MEDIA_STREAM_DELIVERY_PRIORITY.NATIVE_ADAPTIVE),Sn(t.MEDIA_STREAM_TYPES.MP4,t.MEDIA_STREAM_DELIVERY_PRIORITY.NATIVE_PROGRESSIVE),Sn(t.MEDIA_STREAM_TYPES.WEBM,t.MEDIA_STREAM_DELIVERY_PRIORITY.NATIVE_PROGRESSIVE),Sn(t.MEDIA_STREAM_TYPES.OGG,t.MEDIA_STREAM_DELIVERY_PRIORITY.NATIVE_PROGRESSIVE),Sn(t.MEDIA_STREAM_TYPES.MOV,t.MEDIA_STREAM_DELIVERY_PRIORITY.NATIVE_PROGRESSIVE),Sn(t.MEDIA_STREAM_TYPES.MKV,t.MEDIA_STREAM_DELIVERY_PRIORITY.NATIVE_PROGRESSIVE)],Cn={},An=r(Tn),In=w.createContainer();In.register(En);var Ln=Object.keys(En);function On(t,e){Cn[t]=e}function Pn(t){An.push(t)}function Nn(){Cn={}}function Mn(){An=r(Tn)}function Dn(t,e){void 0===t&&(t={});var i=In.createScope(),n=Object.keys(Cn);return n.length&&n.forEach(function(t){return i.registerClass(t,Cn[t],{lifetime:w.Lifetime.SCOPED})}),i.registerValue("availablePlaybackAdapters",An),new $(t,i,Ln,n,e)}var Rn={create:Dn,registerModule:On,clearAdditionalModules:Nn,registerPlaybackAdapter:Pn,clearPlaybackAdapters:Mn,ERRORS:Yt,UI_EVENTS:Vt,VIDEO_EVENTS:Ht,TEXT_LABELS:jt,MEDIA_STREAM_TYPES:t.MEDIA_STREAM_TYPES,MEDIA_STREAM_DELIVERY_PRIORITY:t.MEDIA_STREAM_DELIVERY_PRIORITY,ENGINE_STATES:Gt,LIVE_STATES:qt,VIDEO_VIEW_MODES:t.VIDEO_VIEW_MODES,PRELOAD_TYPES:t.PRELOAD_TYPES,CROSS_ORIGIN_VALUES:t.CROSS_ORIGIN_VALUES,Tooltip:vi,playerAPIDecorator:B,DefaultModules:gn};t.create=Dn,t.registerModule=On,t.clearAdditionalModules=Nn,t.registerPlaybackAdapter=Pn,t.clearPlaybackAdapters=Mn,t.ERRORS=Yt,t.UI_EVENTS=Vt,t.VIDEO_EVENTS=Ht,t.TEXT_LABELS=jt,t.ENGINE_STATES=Gt,t.LIVE_STATES=qt,t.Tooltip=vi,t.playerAPIDecorator=B,t.DefaultModules=gn,t.default=Rn,Object.defineProperty(t,"__esModule",{value:!0})});
  