Current Path : /var/www/html/clients/wodo.e-nk.ru/bitrix/components/bitrix/player/videojs/ |
Current File : /var/www/html/clients/wodo.e-nk.ru/bitrix/components/bitrix/player/videojs/video.min.js |
(function(e){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=e()}else if(typeof define==="function"&&define.amd){define([],e)}else{var t;if(typeof window!=="undefined"){t=window}else if(typeof global!=="undefined"){t=global}else if(typeof self!=="undefined"){t=self}else{t=this}t.videojs=e()}})(function(){var e,t,r;return function n(e,t,r){function o(a,s){if(!t[a]){if(!e[a]){var u=typeof require=="function"&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=t[a]={exports:{}};e[a][0].call(c.exports,function(t){var r=e[a][1][t];return o(r?r:t)},c,c.exports,n,e,t,r)}return t[a].exports}var i=typeof require=="function"&&require;for(var a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,r){"use strict";r.__esModule=true;var n=e(2);var o=s(n);var i=e(5);var a=s(i);function s(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function c(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var f=function(e){c(t,e);function t(){u(this,t);return l(this,e.apply(this,arguments))}t.prototype.buildCSSClass=function r(){return"vjs-big-play-button"};t.prototype.handleClick=function n(e){this.player_.play()};return t}(o["default"]);f.prototype.controlText_="Play Video";a["default"].registerComponent("BigPlayButton",f);r["default"]=f},{2:2,5:5}],2:[function(e,t,r){"use strict";r.__esModule=true;var n=e(3);var o=c(n);var i=e(5);var a=c(i);var s=e(86);var u=c(s);var l=e(88);function c(e){return e&&e.__esModule?e:{"default":e}}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function p(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function h(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var d=function(e){h(t,e);function t(){f(this,t);return p(this,e.apply(this,arguments))}t.prototype.createEl=function r(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"button";var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};t=(0,l.assign)({className:this.buildCSSClass()},t);if(e!=="button"){u["default"].warn("Creating a Button with an HTML element of "+e+" is deprecated; use ClickableComponent instead.");t=(0,l.assign)({tabIndex:0},t);r=(0,l.assign)({role:"button"},r)}r=(0,l.assign)({type:"button","aria-live":"polite"},r);var n=a["default"].prototype.createEl.call(this,e,t,r);this.createControlTextEl(n);return n};t.prototype.addChild=function n(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=this.constructor.name;u["default"].warn("Adding an actionable (user controllable) child to a Button ("+r+") is not supported; use a ClickableComponent instead.");return a["default"].prototype.addChild.call(this,e,t)};t.prototype.enable=function o(){e.prototype.enable.call(this);this.el_.removeAttribute("disabled")};t.prototype.disable=function i(){e.prototype.disable.call(this);this.el_.setAttribute("disabled","disabled")};t.prototype.handleKeyPress=function s(t){if(t.which===32||t.which===13){return}e.prototype.handleKeyPress.call(this,t)};return t}(o["default"]);a["default"].registerComponent("Button",d);r["default"]=d},{3:3,5:5,86:86,88:88}],3:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=g(n);var i=e(81);var a=y(i);var s=e(82);var u=y(s);var l=e(83);var c=y(l);var f=e(86);var p=g(f);var h=e(94);var d=g(h);var v=e(88);function y(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function g(e){return e&&e.__esModule?e:{"default":e}}function _(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function m(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function b(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var T=function(e){b(t,e);function t(r,n){_(this,t);var o=m(this,e.call(this,r,n));o.emitTapEvents();o.enable();return o}t.prototype.createEl=function r(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"div";var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r=(0,v.assign)({className:this.buildCSSClass(),tabIndex:0},r);if(t==="button"){p["default"].error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead.")}n=(0,v.assign)({role:"button","aria-live":"polite"},n);this.tabIndex_=r.tabIndex;var o=e.prototype.createEl.call(this,t,r,n);this.createControlTextEl(o);return o};t.prototype.createControlTextEl=function n(e){this.controlTextEl_=a.createEl("span",{className:"vjs-control-text"});if(e){e.appendChild(this.controlTextEl_)}this.controlText(this.controlText_,e);return this.controlTextEl_};t.prototype.controlText=function o(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.el();if(!e){return this.controlText_||"Need Text"}var r=this.localize(e);this.controlText_=e;this.controlTextEl_.innerHTML=r;t.setAttribute("title",r);return this};t.prototype.buildCSSClass=function i(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)};t.prototype.enable=function s(){this.removeClass("vjs-disabled");this.el_.setAttribute("aria-disabled","false");if(typeof this.tabIndex_!=="undefined"){this.el_.setAttribute("tabIndex",this.tabIndex_)}this.on("tap",this.handleClick);this.on("click",this.handleClick);this.on("focus",this.handleFocus);this.on("blur",this.handleBlur);return this};t.prototype.disable=function l(){this.addClass("vjs-disabled");this.el_.setAttribute("aria-disabled","true");if(typeof this.tabIndex_!=="undefined"){this.el_.removeAttribute("tabIndex")}this.off("tap",this.handleClick);this.off("click",this.handleClick);this.off("focus",this.handleFocus);this.off("blur",this.handleBlur);return this};t.prototype.handleClick=function f(e){};t.prototype.handleFocus=function h(e){u.on(d["default"],"keydown",c.bind(this,this.handleKeyPress))};t.prototype.handleKeyPress=function y(t){if(t.which===32||t.which===13){t.preventDefault();this.handleClick(t)}else if(e.prototype.handleKeyPress){e.prototype.handleKeyPress.call(this,t)}};t.prototype.handleBlur=function g(e){u.off(d["default"],"keydown",c.bind(this,this.handleKeyPress))};return t}(o["default"]);o["default"].registerComponent("ClickableComponent",T);r["default"]=T},{5:5,81:81,82:82,83:83,86:86,88:88,94:94}],4:[function(e,t,r){"use strict";r.__esModule=true;var n=e(2);var o=s(n);var i=e(5);var a=s(i);function s(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function c(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var f=function(e){c(t,e);function t(r,n){u(this,t);var o=l(this,e.call(this,r,n));o.controlText(n&&n.controlText||o.localize("Close"));return o}t.prototype.buildCSSClass=function r(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)};t.prototype.handleClick=function n(e){this.trigger({type:"close",bubbles:false})};return t}(o["default"]);a["default"].registerComponent("CloseButton",f);r["default"]=f},{2:2,5:5}],5:[function(e,t,r){"use strict";r.__esModule=true;var n=e(95);var o=b(n);var i=e(81);var a=m(i);var s=e(83);var u=m(s);var l=e(85);var c=m(l);var f=e(82);var p=m(f);var h=e(86);var d=b(h);var v=e(91);var y=b(v);var g=e(87);var _=b(g);function m(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function b(e){return e&&e.__esModule?e:{"default":e}}function T(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var w=function(){function e(t,r,n){T(this,e);if(!t&&this.play){this.player_=t=this}else{this.player_=t}this.options_=(0,_["default"])({},this.options_);r=this.options_=(0,_["default"])(this.options_,r);this.id_=r.id||r.el&&r.el.id;if(!this.id_){var o=t&&t.id&&t.id()||"no_player";this.id_=o+"_component_"+c.newGUID()}this.name_=r.name||null;if(r.el){this.el_=r.el}else if(r.createEl!==false){this.el_=this.createEl()}this.children_=[];this.childIndex_={};this.childNameIndex_={};if(r.initChildren!==false){this.initChildren()}this.ready(n);if(r.reportTouchActivity!==false){this.enableTouchActivity()}}e.prototype.dispose=function t(){this.trigger({type:"dispose",bubbles:false});if(this.children_){for(var e=this.children_.length-1;e>=0;e--){if(this.children_[e].dispose){this.children_[e].dispose()}}}this.children_=null;this.childIndex_=null;this.childNameIndex_=null;this.off();if(this.el_.parentNode){this.el_.parentNode.removeChild(this.el_)}a.removeElData(this.el_);this.el_=null};e.prototype.player=function r(){return this.player_};e.prototype.options=function n(e){d["default"].warn("this.options() has been deprecated and will be moved to the constructor in 6.0");if(!e){return this.options_}this.options_=(0,_["default"])(this.options_,e);return this.options_};e.prototype.el=function i(){return this.el_};e.prototype.createEl=function s(e,t,r){return a.createEl(e,t,r)};e.prototype.localize=function l(e){var t=this.player_.language&&this.player_.language();var r=this.player_.languages&&this.player_.languages();if(!t||!r){return e}var n=r[t];if(n&&n[e]){return n[e]}var o=t.split("-")[0];var i=r[o];if(i&&i[e]){return i[e]}return e};e.prototype.contentEl=function f(){return this.contentEl_||this.el_};e.prototype.id=function h(){return this.id_};e.prototype.name=function v(){return this.name_};e.prototype.children=function g(){return this.children_};e.prototype.getChildById=function m(e){return this.childIndex_[e]};e.prototype.getChild=function b(e){if(!e){return}e=(0,y["default"])(e);return this.childNameIndex_[e]};e.prototype.addChild=function w(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this.children_.length;var o=void 0;var i=void 0;if(typeof t==="string"){i=(0,y["default"])(t);if(!r){r={}}if(r===true){d["default"].warn("Initializing a child component with `true` is deprecated."+"Children should be defined in an array when possible, "+"but if necessary use an object instead of `true`.");r={}}var a=r.componentClass||i;r.name=i;var s=e.getComponent(a);if(!s){throw new Error("Component "+a+" does not exist")}if(typeof s!=="function"){return null}o=new s(this.player_||this,r)}else{o=t}this.children_.splice(n,0,o);if(typeof o.id==="function"){this.childIndex_[o.id()]=o}i=i||o.name&&o.name();if(i){this.childNameIndex_[i]=o}if(typeof o.el==="function"&&o.el()){var u=this.contentEl().children;var l=u[n]||null;this.contentEl().insertBefore(o.el(),l)}return o};e.prototype.removeChild=function E(e){if(typeof e==="string"){e=this.getChild(e)}if(!e||!this.children_){return}var t=false;for(var r=this.children_.length-1;r>=0;r--){if(this.children_[r]===e){t=true;this.children_.splice(r,1);break}}if(!t){return}this.childIndex_[e.id()]=null;this.childNameIndex_[e.name()]=null;var n=e.el();if(n&&n.parentNode===this.contentEl()){this.contentEl().removeChild(e.el())}};e.prototype.initChildren=function C(){var t=this;var r=this.options_.children;if(r){(function(){var n=t.options_;var o=function s(e){var r=e.name;var o=e.opts;if(n[r]!==undefined){o=n[r]}if(o===false){return}if(o===true){o={}}o.playerOptions=t.options_.playerOptions;var i=t.addChild(r,o);if(i){t[r]=i}};var i=void 0;var a=e.getComponent("Tech");if(Array.isArray(r)){i=r}else{i=Object.keys(r)}i.concat(Object.keys(t.options_).filter(function(e){return!i.some(function(t){if(typeof t==="string"){return e===t}return e===t.name})})).map(function(e){var n=void 0;var o=void 0;if(typeof e==="string"){n=e;o=r[n]||t.options_[n]||{}}else{n=e.name;o=e}return{name:n,opts:o}}).filter(function(t){var r=e.getComponent(t.opts.componentClass||(0,y["default"])(t.name));return r&&!a.isTech(r)}).forEach(o)})()}};e.prototype.buildCSSClass=function k(){return""};e.prototype.on=function O(e,t,r){var n=this;if(typeof e==="string"||Array.isArray(e)){p.on(this.el_,e,u.bind(this,t))}else{(function(){var o=e;var i=t;var a=u.bind(n,r);var s=function c(){return n.off(o,i,a)};s.guid=a.guid;n.on("dispose",s);var l=function f(){return n.off("dispose",s)};l.guid=a.guid;if(e.nodeName){p.on(o,i,a);p.on(o,"dispose",l)}else if(typeof e.on==="function"){o.on(i,a);o.on("dispose",l)}})()}return this};e.prototype.off=function S(e,t,r){if(!e||typeof e==="string"||Array.isArray(e)){p.off(this.el_,e,t)}else{var n=e;var o=t;var i=u.bind(this,r);this.off("dispose",i);if(e.nodeName){p.off(n,o,i);p.off(n,"dispose",i)}else{n.off(o,i);n.off("dispose",i)}}return this};e.prototype.one=function j(e,t,r){var n=this,o=arguments;if(typeof e==="string"||Array.isArray(e)){p.one(this.el_,e,u.bind(this,t))}else{(function(){var i=e;var a=t;var s=u.bind(n,r);var l=function c(){n.off(i,a,c);s.apply(null,o)};l.guid=s.guid;n.on(i,a,l)})()}return this};e.prototype.trigger=function x(e,t){p.trigger(this.el_,e,t);return this};e.prototype.ready=function P(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(e){if(this.isReady_){if(t){e.call(this)}else{this.setTimeout(e,1)}}else{this.readyQueue_=this.readyQueue_||[];this.readyQueue_.push(e)}}return this};e.prototype.triggerReady=function M(){this.isReady_=true;this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[];if(e&&e.length>0){e.forEach(function(e){e.call(this)},this)}this.trigger("ready")},1)};e.prototype.$=function A(e,t){return a.$(e,t||this.contentEl())};e.prototype.$$=function I(e,t){return a.$$(e,t||this.contentEl())};e.prototype.hasClass=function R(e){return a.hasElClass(this.el_,e)};e.prototype.addClass=function N(e){a.addElClass(this.el_,e);return this};e.prototype.removeClass=function D(e){a.removeElClass(this.el_,e);return this};e.prototype.toggleClass=function L(e,t){a.toggleElClass(this.el_,e,t);return this};e.prototype.show=function F(){this.removeClass("vjs-hidden");return this};e.prototype.hide=function B(){this.addClass("vjs-hidden");return this};e.prototype.lockShowing=function H(){this.addClass("vjs-lock-showing");return this};e.prototype.unlockShowing=function V(){this.removeClass("vjs-lock-showing");return this};e.prototype.getAttribute=function U(e){return a.getAttribute(this.el_,e)};e.prototype.setAttribute=function W(e,t){a.setAttribute(this.el_,e,t);return this};e.prototype.removeAttribute=function z(e){a.removeAttribute(this.el_,e);return this};e.prototype.width=function X(e,t){return this.dimension("width",e,t)};e.prototype.height=function q(e,t){return this.dimension("height",e,t)};e.prototype.dimensions=function $(e,t){return this.width(e,true).height(t)};e.prototype.dimension=function G(e,t,r){if(t!==undefined){if(t===null||t!==t){t=0}if((""+t).indexOf("%")!==-1||(""+t).indexOf("px")!==-1){this.el_.style[e]=t}else if(t==="auto"){this.el_.style[e]=""}else{this.el_.style[e]=t+"px"}if(!r){this.trigger("resize")}return this}if(!this.el_){return 0}var n=this.el_.style[e];var o=n.indexOf("px");if(o!==-1){return parseInt(n.slice(0,o),10)}return parseInt(this.el_["offset"+(0,y["default"])(e)],10)};e.prototype.currentDimension=function K(e){var t=0;if(e!=="width"&&e!=="height"){throw new Error("currentDimension only accepts width or height value")}if(typeof o["default"].getComputedStyle==="function"){var r=o["default"].getComputedStyle(this.el_);t=r.getPropertyValue(e)||r[e]}t=parseFloat(t);if(t===0){var n="offset"+(0,y["default"])(e);t=this.el_[n]}return t};e.prototype.currentDimensions=function Y(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}};e.prototype.currentWidth=function J(){return this.currentDimension("width")};e.prototype.currentHeight=function Q(){return this.currentDimension("height")};e.prototype.emitTapEvents=function Z(){var e=0;var t=null;var r=10;var n=200;var o=void 0;this.on("touchstart",function(r){if(r.touches.length===1){t={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY};e=(new Date).getTime();o=true}});this.on("touchmove",function(e){if(e.touches.length>1){o=false}else if(t){var n=e.touches[0].pageX-t.pageX;var i=e.touches[0].pageY-t.pageY;var a=Math.sqrt(n*n+i*i);if(a>r){o=false}}});var i=function a(){o=false};this.on("touchleave",i);this.on("touchcancel",i);this.on("touchend",function(r){t=null;if(o===true){var i=(new Date).getTime()-e;if(i<n){r.preventDefault();this.trigger("tap")}}})};e.prototype.enableTouchActivity=function ee(){if(!this.player()||!this.player().reportUserActivity){return}var e=u.bind(this.player(),this.player().reportUserActivity);var t=void 0;this.on("touchstart",function(){e();this.clearInterval(t);t=this.setInterval(e,250)});var r=function n(r){e();this.clearInterval(t)};this.on("touchmove",e);this.on("touchend",r);this.on("touchcancel",r)};e.prototype.setTimeout=function te(e,t){e=u.bind(this,e);var r=o["default"].setTimeout(e,t);var n=function i(){this.clearTimeout(r)};n.guid="vjs-timeout-"+r;this.on("dispose",n);return r};e.prototype.clearTimeout=function re(e){o["default"].clearTimeout(e);var t=function r(){};t.guid="vjs-timeout-"+e;this.off("dispose",t);return e};e.prototype.setInterval=function ne(e,t){e=u.bind(this,e);var r=o["default"].setInterval(e,t);var n=function i(){this.clearInterval(r)};n.guid="vjs-interval-"+r;this.on("dispose",n);return r};e.prototype.clearInterval=function oe(e){o["default"].clearInterval(e);var t=function r(){};t.guid="vjs-interval-"+e;this.off("dispose",t);return e};e.registerComponent=function ie(t,r){if(!t){return}t=(0,y["default"])(t);if(!e.components_){e.components_={}}if(t==="Player"&&e.components_[t]){(function(){var r=e.components_[t];if(r.players&&Object.keys(r.players).length>0&&Object.keys(r.players).map(function(e){return r.players[e]}).every(Boolean)){throw new Error("Can not register Player component after player has been created")}})()}e.components_[t]=r;return r};e.getComponent=function ae(t){if(!t){return}t=(0,y["default"])(t);if(e.components_&&e.components_[t]){return e.components_[t]}if(o["default"]&&o["default"].videojs&&o["default"].videojs[t]){d["default"].warn("The "+t+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)");return o["default"].videojs[t]}};e.extend=function se(t){t=t||{};d["default"].warn("Component.extend({}) has been deprecated, "+" use videojs.extend(Component, {}) instead");var r=t.init||t.init||this.prototype.init||this.prototype.init||function(){};var n=function i(){r.apply(this,arguments)};n.prototype=Object.create(this.prototype);n.prototype.constructor=n;n.extend=e.extend;for(var o in t){if(t.hasOwnProperty(o)){n.prototype[o]=t[o]}}return n};return e}();w.registerComponent("Component",w);r["default"]=w},{81:81,82:82,83:83,85:85,86:86,87:87,91:91,95:95}],6:[function(e,t,r){"use strict";r.__esModule=true;var n=e(36);var o=l(n);var i=e(5);var a=l(i);var s=e(7);var u=l(s);function l(e){return e&&e.__esModule?e:{"default":e}}function c(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function f(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function p(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var h=function(e){p(t,e);function t(r){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};c(this,t);n.tracks=r.audioTracks&&r.audioTracks();var o=f(this,e.call(this,r,n));o.el_.setAttribute("aria-label","Audio Menu");return o}t.prototype.buildCSSClass=function r(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)};t.prototype.createItems=function n(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var t=this.player_.audioTracks&&this.player_.audioTracks();if(!t){return e}for(var r=0;r<t.length;r++){var n=t[r];e.push(new u["default"](this.player_,{track:n,selectable:true}))}return e};return t}(o["default"]);h.prototype.controlText_="Audio Track";a["default"].registerComponent("AudioTrackButton",h);r["default"]=h},{36:36,5:5,7:7}],7:[function(e,t,r){"use strict";r.__esModule=true;var n=e(48);var o=c(n);var i=e(5);var a=c(i);var s=e(83);var u=l(s);function l(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function c(e){return e&&e.__esModule?e:{"default":e}}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function p(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function h(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var d=function(e){h(t,e);function t(r,n){f(this,t);var o=n.track;var i=r.audioTracks();n.label=o.label||o.language||"Unknown";n.selected=o.enabled;var a=p(this,e.call(this,r,n));a.track=o;if(i){(function(){var e=u.bind(a,a.handleTracksChange);i.addEventListener("change",e);a.on("dispose",function(){i.removeEventListener("change",e)})})()}return a}t.prototype.handleClick=function r(t){var r=this.player_.audioTracks();e.prototype.handleClick.call(this,t);if(!r){return}for(var n=0;n<r.length;n++){var o=r[n];o.enabled=o===this.track}};t.prototype.handleTracksChange=function n(e){this.selected(this.track.enabled)};return t}(o["default"]);a["default"].registerComponent("AudioTrackMenuItem",d);r["default"]=d},{48:48,5:5,83:83}],8:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=i(n);e(12);e(32);e(33);e(35);e(34);e(10);e(18);e(9);e(38);e(40);e(11);e(25);e(27);e(29);e(24);e(6);e(13);e(21);function i(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function u(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var l=function(e){u(t,e);function t(){a(this,t);return s(this,e.apply(this,arguments))}t.prototype.createEl=function r(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})};return t}(o["default"]);l.prototype.options_={children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]};o["default"].registerComponent("ControlBar",l);r["default"]=l},{10:10,11:11,12:12,13:13,18:18,21:21,24:24,25:25,27:27,29:29,32:32,33:33,34:34,35:35,38:38,40:40,5:5,6:6,9:9}],9:[function(e,t,r){"use strict";r.__esModule=true;var n=e(2);var o=s(n);var i=e(5);var a=s(i);function s(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function c(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var f=function(e){c(t,e);function t(r,n){u(this,t);var o=l(this,e.call(this,r,n));o.on(r,"fullscreenchange",o.handleFullscreenChange);return o}t.prototype.buildCSSClass=function r(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)};t.prototype.handleFullscreenChange=function n(e){if(this.player_.isFullscreen()){this.controlText("Non-Fullscreen")}else{this.controlText("Fullscreen")}};t.prototype.handleClick=function o(e){if(!this.player_.isFullscreen()){this.player_.requestFullscreen()}else{this.player_.exitFullscreen()}};return t}(o["default"]);f.prototype.controlText_="Fullscreen";a["default"].registerComponent("FullscreenToggle",f);r["default"]=f},{2:2,5:5}],10:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=u(n);var i=e(81);var a=s(i);function s(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function u(e){return e&&e.__esModule?e:{"default":e}}function l(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function c(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function f(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var p=function(e){f(t,e);function t(r,n){l(this,t);var o=c(this,e.call(this,r,n));o.updateShowing();o.on(o.player(),"durationchange",o.updateShowing);return o}t.prototype.createEl=function r(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});this.contentEl_=a.createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"</span>"+this.localize("LIVE")},{"aria-live":"off"});t.appendChild(this.contentEl_);return t};t.prototype.updateShowing=function n(e){if(this.player().duration()===Infinity){this.show()}else{this.hide()}};return t}(o["default"]);o["default"].registerComponent("LiveDisplay",p);r["default"]=p},{5:5,81:81}],11:[function(e,t,r){"use strict";r.__esModule=true;var n=e(2);var o=c(n);var i=e(5);var a=c(i);var s=e(81);var u=l(s);function l(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function c(e){return e&&e.__esModule?e:{"default":e}}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function p(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function h(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var d=function(e){h(t,e);function t(r,n){f(this,t);var o=p(this,e.call(this,r,n));o.on(r,"volumechange",o.update);if(r.tech_&&r.tech_.featuresVolumeControl===false){o.addClass("vjs-hidden")}o.on(r,"loadstart",function(){this.update();if(r.tech_.featuresVolumeControl===false){this.addClass("vjs-hidden")}else{this.removeClass("vjs-hidden")}});return o}t.prototype.buildCSSClass=function r(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)};t.prototype.handleClick=function n(e){this.player_.muted(this.player_.muted()?false:true)};t.prototype.update=function o(e){var t=this.player_.volume();var r=3;if(t===0||this.player_.muted()){r=0}else if(t<.33){r=1}else if(t<.67){r=2}var n=this.player_.muted()?"Unmute":"Mute";if(this.controlText()!==n){this.controlText(n)}for(var o=0;o<4;o++){u.removeElClass(this.el_,"vjs-vol-"+o)}u.addElClass(this.el_,"vjs-vol-"+r)};return t}(o["default"]);d.prototype.controlText_="Mute";a["default"].registerComponent("MuteToggle",d);r["default"]=d},{2:2,5:5,81:81}],12:[function(e,t,r){"use strict";r.__esModule=true;var n=e(2);var o=s(n);var i=e(5);var a=s(i);function s(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function c(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var f=function(e){c(t,e);function t(r,n){u(this,t);var o=l(this,e.call(this,r,n));o.on(r,"play",o.handlePlay);o.on(r,"pause",o.handlePause);return o}t.prototype.buildCSSClass=function r(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)};t.prototype.handleClick=function n(e){if(this.player_.paused()){this.player_.play()}else{this.player_.pause()}};t.prototype.handlePlay=function o(e){this.removeClass("vjs-paused");this.addClass("vjs-playing");this.controlText("Pause")};t.prototype.handlePause=function i(e){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.controlText("Play")};return t}(o["default"]);f.prototype.controlText_="Play";a["default"].registerComponent("PlayToggle",f);r["default"]=f},{2:2,5:5}],13:[function(e,t,r){"use strict";r.__esModule=true;var n=e(47);var o=d(n);var i=e(49);var a=d(i);var s=e(14);var u=d(s);var l=e(5);var c=d(l);var f=e(81);var p=h(f);function h(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]; }}t["default"]=e;return t}}function d(e){return e&&e.__esModule?e:{"default":e}}function v(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function y(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function g(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var _=function(e){g(t,e);function t(r,n){v(this,t);var o=y(this,e.call(this,r,n));o.updateVisibility();o.updateLabel();o.on(r,"loadstart",o.updateVisibility);o.on(r,"ratechange",o.updateLabel);return o}t.prototype.createEl=function r(){var t=e.prototype.createEl.call(this);this.labelEl_=p.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1});t.appendChild(this.labelEl_);return t};t.prototype.buildCSSClass=function n(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)};t.prototype.createMenu=function o(){var e=new a["default"](this.player());var t=this.playbackRates();if(t){for(var r=t.length-1;r>=0;r--){e.addChild(new u["default"](this.player(),{rate:t[r]+"x"}))}}return e};t.prototype.updateARIAAttributes=function i(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())};t.prototype.handleClick=function s(e){var t=this.player().playbackRate();var r=this.playbackRates();var n=r[0];for(var o=0;o<r.length;o++){if(r[o]>t){n=r[o];break}}this.player().playbackRate(n)};t.prototype.playbackRates=function l(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates};t.prototype.playbackRateSupported=function c(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0};t.prototype.updateVisibility=function f(e){if(this.playbackRateSupported()){this.removeClass("vjs-hidden")}else{this.addClass("vjs-hidden")}};t.prototype.updateLabel=function h(e){if(this.playbackRateSupported()){this.labelEl_.innerHTML=this.player().playbackRate()+"x"}};return t}(o["default"]);_.prototype.controlText_="Playback Rate";c["default"].registerComponent("PlaybackRateMenuButton",_);r["default"]=_},{14:14,47:47,49:49,5:5,81:81}],14:[function(e,t,r){"use strict";r.__esModule=true;var n=e(48);var o=s(n);var i=e(5);var a=s(i);function s(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function c(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var f=function(e){c(t,e);function t(r,n){u(this,t);var o=n.rate;var i=parseFloat(o,10);n.label=o;n.selected=i===1;var a=l(this,e.call(this,r,n));a.label=o;a.rate=i;a.on(r,"ratechange",a.update);return a}t.prototype.handleClick=function r(t){e.prototype.handleClick.call(this);this.player().playbackRate(this.rate)};t.prototype.update=function n(e){this.selected(this.player().playbackRate()===this.rate)};return t}(o["default"]);f.prototype.contentElType="button";a["default"].registerComponent("PlaybackRateMenuItem",f);r["default"]=f},{48:48,5:5}],15:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=u(n);var i=e(81);var a=s(i);function s(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function u(e){return e&&e.__esModule?e:{"default":e}}function l(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function c(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function f(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var p=function(e){f(t,e);function t(r,n){l(this,t);var o=c(this,e.call(this,r,n));o.partEls_=[];o.on(r,"progress",o.update);return o}t.prototype.createEl=function r(){return e.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})};t.prototype.update=function n(e){var t=this.player_.buffered();var r=this.player_.duration();var n=this.player_.bufferedEnd();var o=this.partEls_;var i=function p(e,t){var r=e/t||0;return(r>=1?1:r)*100+"%"};this.el_.style.width=i(n,r);for(var s=0;s<t.length;s++){var u=t.start(s);var l=t.end(s);var c=o[s];if(!c){c=this.el_.appendChild(a.createEl());o[s]=c}c.style.left=i(u,n);c.style.width=i(l-u,n)}for(var f=o.length;f>t.length;f--){this.el_.removeChild(o[f-1])}o.length=t.length};return t}(o["default"]);o["default"].registerComponent("LoadProgressBar",p);r["default"]=p},{5:5,81:81}],16:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=d(n);var i=e(81);var a=h(i);var s=e(83);var u=h(s);var l=e(84);var c=d(l);var f=e(80);var p=d(f);function h(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function d(e){return e&&e.__esModule?e:{"default":e}}function v(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function y(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function g(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var _=function(e){g(t,e);function t(r,n){v(this,t);var o=y(this,e.call(this,r,n));if(n.playerOptions&&n.playerOptions.controlBar&&n.playerOptions.controlBar.progressControl&&n.playerOptions.controlBar.progressControl.keepTooltipsInside){o.keepTooltipsInside=n.playerOptions.controlBar.progressControl.keepTooltipsInside}if(o.keepTooltipsInside){o.tooltip=a.createEl("div",{className:"vjs-time-tooltip"});o.el().appendChild(o.tooltip);o.addClass("vjs-keep-tooltips-inside")}o.update(0,0);r.on("ready",function(){o.on(r.controlBar.progressControl.el(),"mousemove",u.throttle(u.bind(o,o.handleMouseMove),25))});return o}t.prototype.createEl=function r(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})};t.prototype.handleMouseMove=function n(e){var t=this.player_.duration();var r=this.calculateDistance(e)*t;var n=e.pageX-a.findElPosition(this.el().parentNode).left;this.update(r,n)};t.prototype.update=function o(e,t){var r=(0,c["default"])(e,this.player_.duration());this.el().style.left=t+"px";this.el().setAttribute("data-current-time",r);if(this.keepTooltipsInside){var n=this.clampPosition_(t);var o=t-n+1;var i=parseFloat((0,p["default"])(this.tooltip,"width"));var a=i/2;this.tooltip.innerHTML=r;this.tooltip.style.right="-"+(a-o)+"px"}};t.prototype.calculateDistance=function i(e){return a.getPointerPosition(this.el().parentNode,e).x};t.prototype.clampPosition_=function s(e){if(!this.keepTooltipsInside){return e}var t=parseFloat((0,p["default"])(this.player().el(),"width"));var r=parseFloat((0,p["default"])(this.tooltip,"width"));var n=r/2;var o=e;if(e<n){o=Math.ceil(n)}else if(e>t-n){o=Math.floor(t-n)}return o};return t}(o["default"]);o["default"].registerComponent("MouseTimeDisplay",_);r["default"]=_},{5:5,80:80,81:81,83:83,84:84}],17:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=c(n);var i=e(83);var a=l(i);var s=e(84);var u=c(s);function l(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function c(e){return e&&e.__esModule?e:{"default":e}}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function p(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function h(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var d=function(e){h(t,e);function t(r,n){f(this,t);var o=p(this,e.call(this,r,n));o.updateDataAttr();o.on(r,"timeupdate",o.updateDataAttr);r.ready(a.bind(o,o.updateDataAttr));if(n.playerOptions&&n.playerOptions.controlBar&&n.playerOptions.controlBar.progressControl&&n.playerOptions.controlBar.progressControl.keepTooltipsInside){o.keepTooltipsInside=n.playerOptions.controlBar.progressControl.keepTooltipsInside}if(o.keepTooltipsInside){o.addClass("vjs-keep-tooltips-inside")}return o}t.prototype.createEl=function r(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})};t.prototype.updateDataAttr=function n(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",(0,u["default"])(t,this.player_.duration()))};return t}(o["default"]);o["default"].registerComponent("PlayProgressBar",d);r["default"]=d},{5:5,83:83,84:84}],18:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=i(n);e(19);e(16);function i(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function u(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var l=function(e){u(t,e);function t(){a(this,t);return s(this,e.apply(this,arguments))}t.prototype.createEl=function r(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})};return t}(o["default"]);l.prototype.options_={children:["seekBar"]};o["default"].registerComponent("ProgressControl",l);r["default"]=l},{16:16,19:19,5:5}],19:[function(e,t,r){"use strict";r.__esModule=true;var n=e(57);var o=d(n);var i=e(5);var a=d(i);var s=e(83);var u=h(s);var l=e(84);var c=d(l);var f=e(80);var p=d(f);e(15);e(17);e(20);function h(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function d(e){return e&&e.__esModule?e:{"default":e}}function v(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function y(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function g(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var _=function(e){g(t,e);function t(r,n){v(this,t);var o=y(this,e.call(this,r,n));o.on(r,"timeupdate",o.updateProgress);o.on(r,"ended",o.updateProgress);r.ready(u.bind(o,o.updateProgress));if(n.playerOptions&&n.playerOptions.controlBar&&n.playerOptions.controlBar.progressControl&&n.playerOptions.controlBar.progressControl.keepTooltipsInside){o.keepTooltipsInside=n.playerOptions.controlBar.progressControl.keepTooltipsInside}if(o.keepTooltipsInside){o.tooltipProgressBar=o.addChild("TooltipProgressBar")}return o}t.prototype.createEl=function r(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})};t.prototype.updateProgress=function n(e){this.updateAriaAttributes(this.el_);if(this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_);this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var t=parseFloat((0,p["default"])(this.player().el(),"width"));var r=parseFloat((0,p["default"])(this.tooltipProgressBar.tooltip,"width"));var n=this.tooltipProgressBar.el().style;n.maxWidth=Math.floor(t-r/2)+"px";n.minWidth=Math.ceil(r/2)+"px";n.right="-"+r/2+"px"}};t.prototype.updateAriaAttributes=function o(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();e.setAttribute("aria-valuenow",(this.getPercent()*100).toFixed(2));e.setAttribute("aria-valuetext",(0,c["default"])(t,this.player_.duration()))};t.prototype.getPercent=function i(){var e=this.player_.currentTime()/this.player_.duration();return e>=1?1:e};t.prototype.handleMouseDown=function a(t){this.player_.scrubbing(true);this.videoWasPlaying=!this.player_.paused();this.player_.pause();e.prototype.handleMouseDown.call(this,t)};t.prototype.handleMouseMove=function s(e){var t=this.calculateDistance(e)*this.player_.duration();if(t===this.player_.duration()){t=t-.1}this.player_.currentTime(t)};t.prototype.handleMouseUp=function l(t){e.prototype.handleMouseUp.call(this,t);this.player_.scrubbing(false);if(this.videoWasPlaying){this.player_.play()}};t.prototype.stepForward=function f(){this.player_.currentTime(this.player_.currentTime()+5)};t.prototype.stepBack=function h(){this.player_.currentTime(this.player_.currentTime()-5)};return t}(o["default"]);_.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"};_.prototype.playerEvent="timeupdate";a["default"].registerComponent("SeekBar",_);r["default"]=_},{15:15,17:17,20:20,5:5,57:57,80:80,83:83,84:84}],20:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=c(n);var i=e(83);var a=l(i);var s=e(84);var u=c(s);function l(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function c(e){return e&&e.__esModule?e:{"default":e}}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function p(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function h(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var d=function(e){h(t,e);function t(r,n){f(this,t);var o=p(this,e.call(this,r,n));o.updateDataAttr();o.on(r,"timeupdate",o.updateDataAttr);r.ready(a.bind(o,o.updateDataAttr));return o}t.prototype.createEl=function r(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar",innerHTML:'<div class="vjs-time-tooltip"></div>\n <span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"});this.tooltip=t.querySelector(".vjs-time-tooltip");return t};t.prototype.updateDataAttr=function n(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();var r=(0,u["default"])(t,this.player_.duration());this.el_.setAttribute("data-current-time",r);this.tooltip.innerHTML=r};return t}(o["default"]);o["default"].registerComponent("TooltipProgressBar",d);r["default"]=d},{5:5,83:83,84:84}],21:[function(e,t,r){"use strict";r.__esModule=true;var n=e(22);var o=s(n);var i=e(5);var a=s(i);function s(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function c(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var f=function(e){c(t,e);function t(){u(this,t);return l(this,e.apply(this,arguments))}t.prototype.buildCSSClass=function r(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)};t.prototype.createEl=function n(){var t=e.prototype.createEl.call(this,{className:this.buildCSSClass()});t.innerHTML=" ";return t};return t}(o["default"]);a["default"].registerComponent("CustomControlSpacer",f);r["default"]=f},{22:22,5:5}],22:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=i(n);function i(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function u(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var l=function(e){u(t,e);function t(){a(this,t);return s(this,e.apply(this,arguments))}t.prototype.buildCSSClass=function r(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)};t.prototype.createEl=function n(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})};return t}(o["default"]);o["default"].registerComponent("Spacer",l);r["default"]=l},{5:5}],23:[function(e,t,r){"use strict";r.__esModule=true;var n=e(31);var o=s(n);var i=e(5);var a=s(i);function s(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function c(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var f=function(e){c(t,e);function t(r,n){u(this,t);n.track={player:r,kind:n.kind,label:n.kind+" settings",selectable:false,"default":false,mode:"disabled"};n.selectable=false;var o=l(this,e.call(this,r,n));o.addClass("vjs-texttrack-settings");o.controlText(", opens "+n.kind+" settings dialog");return o}t.prototype.handleClick=function r(e){this.player().getChild("textTrackSettings").show();this.player().getChild("textTrackSettings").el_.focus()};return t}(o["default"]);a["default"].registerComponent("CaptionSettingsMenuItem",f);r["default"]=f},{31:31,5:5}],24:[function(e,t,r){"use strict";r.__esModule=true;var n=e(30);var o=l(n);var i=e(5);var a=l(i);var s=e(23);var u=l(s);function l(e){return e&&e.__esModule?e:{"default":e}}function c(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function f(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function p(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var h=function(e){p(t,e);function t(r,n,o){c(this,t);var i=f(this,e.call(this,r,n,o));i.el_.setAttribute("aria-label","Captions Menu");return i}t.prototype.buildCSSClass=function r(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)};t.prototype.update=function n(t){var r=2;e.prototype.update.call(this);if(this.player().tech_&&this.player().tech_.featuresNativeTextTracks){r=1}if(this.items&&this.items.length>r){this.show()}else{this.hide()}};t.prototype.createItems=function o(){var t=[];if(!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)){t.push(new u["default"](this.player_,{kind:this.kind_}))}return e.prototype.createItems.call(this,t)};return t}(o["default"]);h.prototype.kind_="captions";h.prototype.controlText_="Captions";a["default"].registerComponent("CaptionsButton",h);r["default"]=h},{23:23,30:30,5:5}],25:[function(e,t,r){"use strict";r.__esModule=true;var n=e(30);var o=f(n);var i=e(5);var a=f(i);var s=e(26);var u=f(s);var l=e(91);var c=f(l);function f(e){return e&&e.__esModule?e:{"default":e}}function p(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function h(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function d(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var v=function(e){d(t,e);function t(r,n,o){p(this,t);var i=h(this,e.call(this,r,n,o));i.el_.setAttribute("aria-label","Chapters Menu");return i}t.prototype.buildCSSClass=function r(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)};t.prototype.update=function n(t){if(!this.track_||t&&(t.type==="addtrack"||t.type==="removetrack")){this.setTrack(this.findChaptersTrack())}e.prototype.update.call(this)};t.prototype.setTrack=function o(e){if(this.track_===e){return}if(!this.updateHandler_){this.updateHandler_=this.update.bind(this)}if(this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);if(t){t.removeEventListener("load",this.updateHandler_)}this.track_=null}this.track_=e;if(this.track_){this.track_.mode="hidden";var r=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);if(r){r.addEventListener("load",this.updateHandler_)}}};t.prototype.findChaptersTrack=function i(){var e=this.player_.textTracks()||[];for(var t=e.length-1;t>=0;t--){var r=e[t];if(r.kind===this.kind_){return r}}};t.prototype.getMenuCaption=function a(){if(this.track_&&this.track_.label){return this.track_.label}return this.localize((0,c["default"])(this.kind_))};t.prototype.createMenu=function s(){this.options_.title=this.getMenuCaption();return e.prototype.createMenu.call(this)};t.prototype.createItems=function l(){var e=[];if(!this.track_){return e}var t=this.track_.cues;if(!t){return e}for(var r=0,n=t.length;r<n;r++){var o=t[r];var i=new u["default"](this.player_,{track:this.track_,cue:o});e.push(i)}return e};return t}(o["default"]);v.prototype.kind_="chapters";v.prototype.controlText_="Chapters";a["default"].registerComponent("ChaptersButton",v);r["default"]=v},{26:26,30:30,5:5,91:91}],26:[function(e,t,r){"use strict";r.__esModule=true;var n=e(48);var o=c(n);var i=e(5);var a=c(i);var s=e(83);var u=l(s);function l(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function c(e){return e&&e.__esModule?e:{"default":e}}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function p(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function h(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var d=function(e){h(t,e);function t(r,n){f(this,t);var o=n.track;var i=n.cue;var a=r.currentTime();n.selectable=true;n.label=i.text;n.selected=i.startTime<=a&&a<i.endTime;var s=p(this,e.call(this,r,n));s.track=o;s.cue=i;o.addEventListener("cuechange",u.bind(s,s.update));return s}t.prototype.handleClick=function r(t){e.prototype.handleClick.call(this);this.player_.currentTime(this.cue.startTime);this.update(this.cue.startTime)};t.prototype.update=function n(e){var t=this.cue;var r=this.player_.currentTime();this.selected(t.startTime<=r&&r<t.endTime)};return t}(o["default"]);a["default"].registerComponent("ChaptersTrackMenuItem",d);r["default"]=d},{48:48,5:5,83:83}],27:[function(e,t,r){"use strict";r.__esModule=true;var n=e(30);var o=c(n);var i=e(5);var a=c(i);var s=e(83);var u=l(s);function l(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function c(e){return e&&e.__esModule?e:{"default":e}}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function p(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function h(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var d=function(e){h(t,e);function t(r,n,o){f(this,t);var i=p(this,e.call(this,r,n,o));i.el_.setAttribute("aria-label","Descriptions Menu");var a=r.textTracks();if(a){(function(){var e=u.bind(i,i.handleTracksChange);a.addEventListener("change",e);i.on("dispose",function(){a.removeEventListener("change",e)})})()}return i}t.prototype.handleTracksChange=function r(e){var t=this.player().textTracks();var r=false;for(var n=0,o=t.length;n<o;n++){var i=t[n];if(i.kind!==this.kind_&&i.mode==="showing"){r=true;break}}if(r){this.disable()}else{this.enable()}};t.prototype.buildCSSClass=function n(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)};return t}(o["default"]);d.prototype.kind_="descriptions";d.prototype.controlText_="Descriptions";a["default"].registerComponent("DescriptionsButton",d);r["default"]=d},{30:30,5:5,83:83}],28:[function(e,t,r){"use strict";r.__esModule=true;var n=e(31);var o=s(n);var i=e(5);var a=s(i);function s(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function c(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var f=function(e){c(t,e);function t(r,n){u(this,t);n.track={player:r,kind:n.kind,label:n.kind+" off","default":false,mode:"disabled"};n.selectable=true;var o=l(this,e.call(this,r,n));o.selected(true);return o}t.prototype.handleTracksChange=function r(e){var t=this.player().textTracks();var r=true;for(var n=0,o=t.length;n<o;n++){var i=t[n];if(i.kind===this.track.kind&&i.mode==="showing"){r=false;break}}this.selected(r)};return t}(o["default"]);a["default"].registerComponent("OffTextTrackMenuItem",f);r["default"]=f},{31:31,5:5}],29:[function(e,t,r){"use strict";r.__esModule=true;var n=e(30);var o=s(n);var i=e(5);var a=s(i);function s(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function c(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var f=function(e){c(t,e);function t(r,n,o){u(this,t);var i=l(this,e.call(this,r,n,o));i.el_.setAttribute("aria-label","Subtitles Menu");return i}t.prototype.buildCSSClass=function r(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)};return t}(o["default"]);f.prototype.kind_="subtitles";f.prototype.controlText_="Subtitles";a["default"].registerComponent("SubtitlesButton",f);r["default"]=f},{30:30,5:5}],30:[function(e,t,r){"use strict";r.__esModule=true;var n=e(36);var o=f(n);var i=e(5);var a=f(i);var s=e(31);var u=f(s);var l=e(28);var c=f(l);function f(e){return e&&e.__esModule?e:{"default":e}}function p(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function h(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function d(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var v=function(e){d(t,e);function t(r){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};p(this,t);n.tracks=r.textTracks();return h(this,e.call(this,r,n))}t.prototype.createItems=function r(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];e.push(new c["default"](this.player_,{kind:this.kind_}));var t=this.player_.textTracks();if(!t){return e}for(var r=0;r<t.length;r++){var n=t[r];if(n.kind===this.kind_){e.push(new u["default"](this.player_,{track:n,selectable:true}))}}return e};return t}(o["default"]);a["default"].registerComponent("TextTrackButton",v);r["default"]=v},{28:28,31:31,36:36,5:5}],31:[function(e,t,r){"use strict";r.__esModule=true;var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var o=e(48);var i=v(o);var a=e(5);var s=v(a);var u=e(83);var l=d(u);var c=e(95); var f=v(c);var p=e(94);var h=v(p);function d(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function v(e){return e&&e.__esModule?e:{"default":e}}function y(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function g(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function _(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var m=function(e){_(t,e);function t(r,o){y(this,t);var i=o.track;var a=r.textTracks();o.label=i.label||i.language||"Unknown";o.selected=i["default"]||i.mode==="showing";var s=g(this,e.call(this,r,o));s.track=i;if(a){(function(){var e=l.bind(s,s.handleTracksChange);a.addEventListener("change",e);s.on("dispose",function(){a.removeEventListener("change",e)})})()}if(a&&a.onchange===undefined){(function(){var e=void 0;s.on(["tap","click"],function(){if(n(f["default"].Event)!=="object"){try{e=new f["default"].Event("change")}catch(t){}}if(!e){e=h["default"].createEvent("Event");e.initEvent("change",true,true)}a.dispatchEvent(e)})})()}return s}t.prototype.handleClick=function r(t){var r=this.track.kind;var n=this.player_.textTracks();e.prototype.handleClick.call(this,t);if(!n){return}for(var o=0;o<n.length;o++){var i=n[o];if(i.kind!==r){continue}if(i===this.track){i.mode="showing"}else{i.mode="disabled"}}};t.prototype.handleTracksChange=function o(e){this.selected(this.track.mode==="showing")};return t}(i["default"]);s["default"].registerComponent("TextTrackMenuItem",m);r["default"]=m},{48:48,5:5,83:83,94:94,95:95}],32:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=c(n);var i=e(81);var a=l(i);var s=e(84);var u=c(s);function l(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function c(e){return e&&e.__esModule?e:{"default":e}}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function p(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function h(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var d=function(e){h(t,e);function t(r,n){f(this,t);var o=p(this,e.call(this,r,n));o.on(r,"timeupdate",o.updateContent);return o}t.prototype.createEl=function r(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});this.contentEl_=a.createEl("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>'+"0:00"},{"aria-live":"off"});t.appendChild(this.contentEl_);return t};t.prototype.updateContent=function n(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();var r=this.localize("Current Time");var n=(0,u["default"])(t,this.player_.duration());if(n!==this.formattedTime_){this.formattedTime_=n;this.contentEl_.innerHTML='<span class="vjs-control-text">'+r+"</span> "+n}};return t}(o["default"]);o["default"].registerComponent("CurrentTimeDisplay",d);r["default"]=d},{5:5,81:81,84:84}],33:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=c(n);var i=e(81);var a=l(i);var s=e(84);var u=c(s);function l(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function c(e){return e&&e.__esModule?e:{"default":e}}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function p(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function h(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var d=function(e){h(t,e);function t(r,n){f(this,t);var o=p(this,e.call(this,r,n));o.on(r,"durationchange",o.updateContent);o.on(r,"timeupdate",o.updateContent);o.on(r,"loadedmetadata",o.updateContent);return o}t.prototype.createEl=function r(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});this.contentEl_=a.createEl("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"</span> 0:00"},{"aria-live":"off"});t.appendChild(this.contentEl_);return t};t.prototype.updateContent=function n(e){var t=this.player_.duration();if(t&&this.duration_!==t){this.duration_=t;var r=this.localize("Duration Time");var n=(0,u["default"])(t);this.contentEl_.innerHTML='<span class="vjs-control-text">'+r+"</span> "+n}};return t}(o["default"]);o["default"].registerComponent("DurationDisplay",d);r["default"]=d},{5:5,81:81,84:84}],34:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=c(n);var i=e(81);var a=l(i);var s=e(84);var u=c(s);function l(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function c(e){return e&&e.__esModule?e:{"default":e}}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function p(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function h(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var d=function(e){h(t,e);function t(r,n){f(this,t);var o=p(this,e.call(this,r,n));o.on(r,"timeupdate",o.updateContent);o.on(r,"durationchange",o.updateContent);return o}t.prototype.createEl=function r(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});this.contentEl_=a.createEl("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"</span> -0:00"},{"aria-live":"off"});t.appendChild(this.contentEl_);return t};t.prototype.updateContent=function n(e){if(this.player_.duration()){var t=this.localize("Remaining Time");var r=(0,u["default"])(this.player_.remainingTime());if(r!==this.formattedTime_){this.formattedTime_=r;this.contentEl_.innerHTML='<span class="vjs-control-text">'+t+"</span> -"+r}}};return t}(o["default"]);o["default"].registerComponent("RemainingTimeDisplay",d);r["default"]=d},{5:5,81:81,84:84}],35:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=i(n);function i(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function u(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var l=function(e){u(t,e);function t(){a(this,t);return s(this,e.apply(this,arguments))}t.prototype.createEl=function r(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})};return t}(o["default"]);o["default"].registerComponent("TimeDivider",l);r["default"]=l},{5:5}],36:[function(e,t,r){"use strict";r.__esModule=true;var n=e(47);var o=c(n);var i=e(5);var a=c(i);var s=e(83);var u=l(s);function l(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function c(e){return e&&e.__esModule?e:{"default":e}}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function p(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function h(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var d=function(e){h(t,e);function t(r,n){f(this,t);var o=n.tracks;var i=p(this,e.call(this,r,n));if(i.items.length<=1){i.hide()}if(!o){return p(i)}var a=u.bind(i,i.update);o.addEventListener("removetrack",a);o.addEventListener("addtrack",a);i.player_.on("dispose",function(){o.removeEventListener("removetrack",a);o.removeEventListener("addtrack",a)});return i}return t}(o["default"]);a["default"].registerComponent("TrackButton",d);r["default"]=d},{47:47,5:5,83:83}],37:[function(e,t,r){"use strict";r.__esModule=true;var n=e(57);var o=c(n);var i=e(5);var a=c(i);var s=e(83);var u=l(s);e(39);function l(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function c(e){return e&&e.__esModule?e:{"default":e}}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function p(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function h(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var d=function(e){h(t,e);function t(r,n){f(this,t);var o=p(this,e.call(this,r,n));o.on(r,"volumechange",o.updateARIAAttributes);r.ready(u.bind(o,o.updateARIAAttributes));return o}t.prototype.createEl=function r(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})};t.prototype.handleMouseMove=function n(e){this.checkMuted();this.player_.volume(this.calculateDistance(e))};t.prototype.checkMuted=function o(){if(this.player_.muted()){this.player_.muted(false)}};t.prototype.getPercent=function i(){if(this.player_.muted()){return 0}return this.player_.volume()};t.prototype.stepForward=function a(){this.checkMuted();this.player_.volume(this.player_.volume()+.1)};t.prototype.stepBack=function s(){this.checkMuted();this.player_.volume(this.player_.volume()-.1)};t.prototype.updateARIAAttributes=function l(e){var t=(this.player_.volume()*100).toFixed(2);this.el_.setAttribute("aria-valuenow",t);this.el_.setAttribute("aria-valuetext",t+"%")};return t}(o["default"]);d.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};d.prototype.playerEvent="volumechange";a["default"].registerComponent("VolumeBar",d);r["default"]=d},{39:39,5:5,57:57,83:83}],38:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=i(n);e(37);function i(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function u(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var l=function(e){u(t,e);function t(r,n){a(this,t);var o=s(this,e.call(this,r,n));if(r.tech_&&r.tech_.featuresVolumeControl===false){o.addClass("vjs-hidden")}o.on(r,"loadstart",function(){if(r.tech_.featuresVolumeControl===false){this.addClass("vjs-hidden")}else{this.removeClass("vjs-hidden")}});return o}t.prototype.createEl=function r(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})};return t}(o["default"]);l.prototype.options_={children:["volumeBar"]};o["default"].registerComponent("VolumeControl",l);r["default"]=l},{37:37,5:5}],39:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=i(n);function i(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function u(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var l=function(e){u(t,e);function t(){a(this,t);return s(this,e.apply(this,arguments))}t.prototype.createEl=function r(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})};return t}(o["default"]);o["default"].registerComponent("VolumeLevel",l);r["default"]=l},{5:5}],40:[function(e,t,r){"use strict";r.__esModule=true;var n=e(83);var o=y(n);var i=e(5);var a=v(i);var s=e(54);var u=v(s);var l=e(53);var c=v(l);var f=e(11);var p=v(f);var h=e(37);var d=v(h);function v(e){return e&&e.__esModule?e:{"default":e}}function y(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function g(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function m(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var b=function(e){m(t,e);function t(r){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};g(this,t);if(n.inline===undefined){n.inline=true}if(n.vertical===undefined){if(n.inline){n.vertical=false}else{n.vertical=true}}n.volumeBar=n.volumeBar||{};n.volumeBar.vertical=!!n.vertical;var o=_(this,e.call(this,r,n));o.on(r,"volumechange",o.volumeUpdate);o.on(r,"loadstart",o.volumeUpdate);function i(){if(r.tech_&&r.tech_.featuresVolumeControl===false){this.addClass("vjs-hidden")}else{this.removeClass("vjs-hidden")}}i.call(o);o.on(r,"loadstart",i);o.on(o.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")});o.on(o.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")});o.on(o.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")});o.on(o.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")});return o}t.prototype.buildCSSClass=function r(){var t="";if(this.options_.vertical){t="vjs-volume-menu-button-vertical"}else{t="vjs-volume-menu-button-horizontal"}return"vjs-volume-menu-button "+e.prototype.buildCSSClass.call(this)+" "+t};t.prototype.createPopup=function n(){var e=new u["default"](this.player_,{contentElType:"div"});var t=new d["default"](this.player_,this.options_.volumeBar);e.addChild(t);this.menuContent=e;this.volumeBar=t;this.attachVolumeBarEvents();return e};t.prototype.handleClick=function i(t){p["default"].prototype.handleClick.call(this);e.prototype.handleClick.call(this)};t.prototype.attachVolumeBarEvents=function a(){this.menuContent.on(["mousedown","touchdown"],o.bind(this,this.handleMouseDown))};t.prototype.handleMouseDown=function s(e){this.on(["mousemove","touchmove"],o.bind(this.volumeBar,this.volumeBar.handleMouseMove));this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)};t.prototype.handleMouseUp=function l(e){this.off(["mousemove","touchmove"],o.bind(this.volumeBar,this.volumeBar.handleMouseMove))};return t}(c["default"]);b.prototype.volumeUpdate=p["default"].prototype.update;b.prototype.controlText_="Mute";a["default"].registerComponent("VolumeMenuButton",b);r["default"]=b},{11:11,37:37,5:5,53:53,54:54,83:83}],41:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=l(n);var i=e(50);var a=l(i);var s=e(87);var u=l(s);function l(e){return e&&e.__esModule?e:{"default":e}}function c(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function f(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function p(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var h=function(e){p(t,e);function t(r,n){c(this,t);var o=f(this,e.call(this,r,n));o.on(r,"error",o.open);return o}t.prototype.buildCSSClass=function r(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)};t.prototype.content=function n(){var e=this.player().error();return e?this.localize(e.message):""};return t}(a["default"]);h.prototype.options_=(0,u["default"])(a["default"].prototype.options_,{fillAlways:true,temporary:false,uncloseable:true});o["default"].registerComponent("ErrorDisplay",h);r["default"]=h},{5:5,50:50,87:87}],42:[function(e,t,r){"use strict";r.__esModule=true;var n=e(82);var o=i(n);function i(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}var a=function s(){};a.prototype.allowedEvents_={};a.prototype.on=function(e,t){var r=this.addEventListener;this.addEventListener=function(){};o.on(this,e,t);this.addEventListener=r};a.prototype.addEventListener=a.prototype.on;a.prototype.off=function(e,t){o.off(this,e,t)};a.prototype.removeEventListener=a.prototype.off;a.prototype.one=function(e,t){var r=this.addEventListener;this.addEventListener=function(){};o.one(this,e,t);this.addEventListener=r};a.prototype.trigger=function(e){var t=e.type||e;if(typeof e==="string"){e={type:t}}e=o.fixEvent(e);if(this.allowedEvents_[t]&&this["on"+t]){this["on"+t](e)}o.trigger(this,e)};a.prototype.dispatchEvent=a.prototype.trigger;r["default"]=a},{82:82}],43:[function(e,t,r){"use strict";r.__esModule=true;var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var o=e(86);var i=s(o);var a=e(88);function s(e){return e&&e.__esModule?e:{"default":e}}var u=function c(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+(typeof t==="undefined"?"undefined":n(t)))}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t){e.super_=t}};var l=function f(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=function s(){e.apply(this,arguments)};var n={};if((0,a.isObject)(t)){if(typeof t.init==="function"){i["default"].warn("Constructor logic via init() is deprecated; please use constructor() instead.");t.constructor=t.init}if(t.constructor!==Object.prototype.constructor){r=t.constructor}n=t}else if(typeof t==="function"){r=t}u(r,e);for(var o in n){if(n.hasOwnProperty(o)){r.prototype[o]=n[o]}}return r};r["default"]=l},{86:86,88:88}],44:[function(e,t,r){"use strict";r.__esModule=true;var n=e(94);var o=i(n);function i(e){return e&&e.__esModule?e:{"default":e}}var a={};var s=[["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 u=s[0];var l=void 0;for(var c=0;c<s.length;c++){if(s[c][1]in o["default"]){l=s[c];break}}if(l){for(var f=0;f<l.length;f++){a[u[f]]=l[f]}}r["default"]=a},{94:94}],45:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=i(n);function i(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function s(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function u(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var l=function(e){u(t,e);function t(){a(this,t);return s(this,e.apply(this,arguments))}t.prototype.createEl=function r(){return e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})};return t}(o["default"]);o["default"].registerComponent("LoadingSpinner",l);r["default"]=l},{5:5}],46:[function(e,t,r){"use strict";r.__esModule=true;var n=e(88);function o(e){if(e instanceof o){return e}if(typeof e==="number"){this.code=e}else if(typeof e==="string"){this.message=e}else if((0,n.isObject)(e)){if(typeof e.code==="number"){this.code=e.code}(0,n.assign)(this,e)}if(!this.message){this.message=o.defaultMessages[this.code]||""}}o.prototype.code=0;o.prototype.message="";o.prototype.status=null;o.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"];o.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var i=0;i<o.errorTypes.length;i++){o[o.errorTypes[i]]=i;o.prototype[o.errorTypes[i]]=i}r["default"]=o},{88:88}],47:[function(e,t,r){"use strict";r.__esModule=true;var n=e(3);var o=y(n);var i=e(5);var a=y(i);var s=e(49);var u=y(s);var l=e(81);var c=v(l);var f=e(83);var p=v(f);var h=e(91);var d=y(h);function v(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function y(e){return e&&e.__esModule?e:{"default":e}}function g(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function m(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var b=function(e){m(t,e);function t(r){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};g(this,t);var o=_(this,e.call(this,r,n));o.update();o.enabled_=true;o.el_.setAttribute("aria-haspopup","true");o.el_.setAttribute("role","menuitem");o.on("keydown",o.handleSubmenuKeyPress);return o}t.prototype.update=function r(){var e=this.createMenu();if(this.menu){this.removeChild(this.menu)}this.menu=e;this.addChild(e);this.buttonPressed_=false;this.el_.setAttribute("aria-expanded","false");if(this.items&&this.items.length===0){this.hide()}else if(this.items&&this.items.length>1){this.show()}};t.prototype.createMenu=function n(){var e=new u["default"](this.player_);if(this.options_.title){var t=c.createEl("li",{className:"vjs-menu-title",innerHTML:(0,d["default"])(this.options_.title),tabIndex:-1});e.children_.unshift(t);c.insertElFirst(t,e.contentEl())}this.items=this.createItems();if(this.items){for(var r=0;r<this.items.length;r++){e.addItem(this.items[r])}}return e};t.prototype.createItems=function o(){};t.prototype.createEl=function i(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})};t.prototype.buildCSSClass=function a(){var t="vjs-menu-button";if(this.options_.inline===true){t+="-inline"}else{t+="-popup"}return"vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)};t.prototype.handleClick=function s(e){this.one(this.menu.contentEl(),"mouseleave",p.bind(this,function(e){this.unpressButton();this.el_.blur()}));if(this.buttonPressed_){this.unpressButton()}else{this.pressButton()}};t.prototype.handleKeyPress=function l(t){if(t.which===27||t.which===9){if(this.buttonPressed_){this.unpressButton()}if(t.which!==9){t.preventDefault()}}else if(t.which===38||t.which===40){if(!this.buttonPressed_){this.pressButton();t.preventDefault()}}else{e.prototype.handleKeyPress.call(this,t)}};t.prototype.handleSubmenuKeyPress=function f(e){if(e.which===27||e.which===9){if(this.buttonPressed_){this.unpressButton()}if(e.which!==9){e.preventDefault()}}};t.prototype.pressButton=function h(){if(this.enabled_){this.buttonPressed_=true;this.menu.lockShowing();this.el_.setAttribute("aria-expanded","true");this.menu.focus()}};t.prototype.unpressButton=function v(){if(this.enabled_){this.buttonPressed_=false;this.menu.unlockShowing();this.el_.setAttribute("aria-expanded","false");this.el_.focus()}};t.prototype.disable=function y(){this.buttonPressed_=false;this.menu.unlockShowing();this.el_.setAttribute("aria-expanded","false");this.enabled_=false;return e.prototype.disable.call(this)};t.prototype.enable=function b(){this.enabled_=true;return e.prototype.enable.call(this)};return t}(o["default"]);a["default"].registerComponent("MenuButton",b);r["default"]=b},{3:3,49:49,5:5,81:81,83:83,91:91}],48:[function(e,t,r){"use strict";r.__esModule=true;var n=e(3);var o=u(n);var i=e(5);var a=u(i);var s=e(88);function u(e){return e&&e.__esModule?e:{"default":e}}function l(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function c(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function f(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var p=function(e){f(t,e);function t(r,n){l(this,t);var o=c(this,e.call(this,r,n));o.selectable=n.selectable;o.selected(n.selected);if(o.selectable){o.el_.setAttribute("role","menuitemcheckbox")}else{o.el_.setAttribute("role","menuitem")}return o}t.prototype.createEl=function r(t,n,o){return e.prototype.createEl.call(this,"li",(0,s.assign)({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label),tabIndex:-1},n),o)};t.prototype.handleClick=function n(e){this.selected(true)};t.prototype.selected=function o(e){if(this.selectable){if(e){this.addClass("vjs-selected");this.el_.setAttribute("aria-checked","true");this.controlText(", selected")}else{this.removeClass("vjs-selected");this.el_.setAttribute("aria-checked","false");this.controlText(" ")}}};return t}(o["default"]);a["default"].registerComponent("MenuItem",p);r["default"]=p},{3:3,5:5,88:88}],49:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=p(n);var i=e(81);var a=f(i);var s=e(83);var u=f(s);var l=e(82);var c=f(l);function f(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function p(e){return e&&e.__esModule?e:{"default":e}}function h(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function d(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function v(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var y=function(e){v(t,e);function t(r,n){h(this,t);var o=d(this,e.call(this,r,n));o.focusedChild_=-1;o.on("keydown",o.handleKeyPress);return o}t.prototype.addItem=function r(e){this.addChild(e);e.on("click",u.bind(this,function(e){this.unlockShowing()}))};t.prototype.createEl=function n(){var t=this.options_.contentElType||"ul";this.contentEl_=a.createEl(t,{className:"vjs-menu-content"});this.contentEl_.setAttribute("role","menu");var r=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});r.setAttribute("role","presentation");r.appendChild(this.contentEl_);c.on(r,"click",function(e){e.preventDefault();e.stopImmediatePropagation()});return r};t.prototype.handleKeyPress=function o(e){if(e.which===37||e.which===40){e.preventDefault();this.stepForward()}else if(e.which===38||e.which===39){e.preventDefault();this.stepBack()}};t.prototype.stepForward=function i(){var e=0;if(this.focusedChild_!==undefined){e=this.focusedChild_+1}this.focus(e)};t.prototype.stepBack=function s(){var e=0;if(this.focusedChild_!==undefined){e=this.focusedChild_-1}this.focus(e)};t.prototype.focus=function l(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var t=this.children().slice();var r=t.length&&t[0].className&&/vjs-menu-title/.test(t[0].className);if(r){t.shift()}if(t.length>0){if(e<0){e=0}else if(e>=t.length){e=t.length-1}this.focusedChild_=e;t[e].el_.focus(); }};return t}(o["default"]);o["default"].registerComponent("Menu",y);r["default"]=y},{5:5,81:81,82:82,83:83}],50:[function(e,t,r){"use strict";r.__esModule=true;var n=e(81);var o=c(n);var i=e(83);var a=c(i);var s=e(5);var u=l(s);function l(e){return e&&e.__esModule?e:{"default":e}}function c(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function p(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function h(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var d="vjs-modal-dialog";var v=27;var y=function(e){h(t,e);function t(r,n){f(this,t);var i=p(this,e.call(this,r,n));i.opened_=i.hasBeenOpened_=i.hasBeenFilled_=false;i.closeable(!i.options_.uncloseable);i.content(i.options_.content);i.contentEl_=o.createEl("div",{className:d+"-content"},{role:"document"});i.descEl_=o.createEl("p",{className:d+"-description vjs-offscreen",id:i.el().getAttribute("aria-describedby")});o.textContent(i.descEl_,i.description());i.el_.appendChild(i.descEl_);i.el_.appendChild(i.contentEl_);return i}t.prototype.createEl=function r(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})};t.prototype.buildCSSClass=function n(){return d+" vjs-hidden "+e.prototype.buildCSSClass.call(this)};t.prototype.handleKeyPress=function i(e){if(e.which===v&&this.closeable()){this.close()}};t.prototype.label=function s(){return this.options_.label||this.localize("Modal Window")};t.prototype.description=function u(){var e=this.options_.description||this.localize("This is a modal window.");if(this.closeable()){e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")}return e};t.prototype.open=function l(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen");this.opened_=true;if(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_){this.fill()}this.wasPlaying_=!e.paused();if(this.wasPlaying_){e.pause()}if(this.closeable()){this.on(this.el_.ownerDocument,"keydown",a.bind(this,this.handleKeyPress))}e.controls(false);this.show();this.el().setAttribute("aria-hidden","false");this.trigger("modalopen");this.hasBeenOpened_=true}return this};t.prototype.opened=function c(e){if(typeof e==="boolean"){this[e?"open":"close"]()}return this.opened_};t.prototype.close=function y(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose");this.opened_=false;if(this.wasPlaying_){e.play()}if(this.closeable()){this.off(this.el_.ownerDocument,"keydown",a.bind(this,this.handleKeyPress))}e.controls(true);this.hide();this.el().setAttribute("aria-hidden","true");this.trigger("modalclose");if(this.options_.temporary){this.dispose()}}return this};t.prototype.closeable=function g(e){if(typeof e==="boolean"){var g=this.closeable_=!!e;var t=this.getChild("closeButton");if(g&&!t){var r=this.contentEl_;this.contentEl_=this.el_;t=this.addChild("closeButton",{controlText:"Close Modal Dialog"});this.contentEl_=r;this.on(t,"close",this.close)}if(!g&&t){this.off(t,"close",this.close);this.removeChild(t);t.dispose()}}return this.closeable_};t.prototype.fill=function _(){return this.fillWith(this.content())};t.prototype.fillWith=function m(e){var t=this.contentEl();var r=t.parentNode;var n=t.nextSibling;this.trigger("beforemodalfill");this.hasBeenFilled_=true;r.removeChild(t);this.empty();o.insertContent(t,e);this.trigger("modalfill");if(n){r.insertBefore(t,n)}else{r.appendChild(t)}return this};t.prototype.empty=function b(){this.trigger("beforemodalempty");o.emptyEl(this.contentEl());this.trigger("modalempty");return this};t.prototype.content=function T(e){if(typeof e!=="undefined"){this.content_=e}return this.content_};return t}(u["default"]);y.prototype.options_={temporary:true};u["default"].registerComponent("ModalDialog",y);r["default"]=y},{5:5,81:81,83:83}],51:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=$(n);var i=e(94);var a=$(i);var s=e(95);var u=$(s);var l=e(82);var c=q(l);var f=e(81);var p=q(f);var h=e(83);var d=q(h);var v=e(85);var y=q(v);var g=e(78);var _=q(g);var m=e(86);var b=$(m);var T=e(91);var w=$(T);var E=e(90);var C=e(79);var k=e(89);var O=q(k);var S=e(44);var j=$(S);var x=e(46);var P=$(x);var M=e(97);var A=$(M);var I=e(88);var R=e(87);var N=$(R);var D=e(69);var L=$(D);var F=e(50);var B=$(F);var H=e(62);var V=$(H);var U=e(63);var W=$(U);var z=e(76);var X=$(z);e(61);e(59);e(55);e(68);e(45);e(1);e(4);e(8);e(41);e(71);e(60);function q(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function $(e){return e&&e.__esModule?e:{"default":e}}function G(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function K(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function Y(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var J=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"];var Q=function(e){Y(t,e);function t(r,n,o){G(this,t);r.id=r.id||"vjs_video_"+y.newGUID();n=(0,I.assign)(t.getTagSettings(r),n);n.initChildren=false;n.createEl=false;n.reportTouchActivity=false;if(!n.language){if(typeof r.closest==="function"){var i=r.closest("[lang]");if(i){n.language=i.getAttribute("lang")}}else{var a=r;while(a&&a.nodeType===1){if(p.getElAttributes(a).hasOwnProperty("lang")){n.language=a.getAttribute("lang");break}a=a.parentNode}}}var s=K(this,e.call(this,null,n,o));if(!s.options_||!s.options_.techOrder||!s.options_.techOrder.length){throw new Error("No techOrder specified. Did you overwrite "+"videojs.options instead of just changing the "+"properties you want to override?")}s.tag=r;s.tagAttributes=r&&p.getElAttributes(r);s.language(s.options_.language);if(n.languages){(function(){var e={};Object.getOwnPropertyNames(n.languages).forEach(function(t){e[t.toLowerCase()]=n.languages[t]});s.languages_=e})()}else{s.languages_=t.prototype.options_.languages}s.cache_={};s.poster_=n.poster||"";s.controls_=!!n.controls;r.controls=false;s.scrubbing_=false;s.el_=s.createEl();var u=(0,N["default"])(s.options_);if(n.plugins){(function(){var e=n.plugins;Object.getOwnPropertyNames(e).forEach(function(t){if(typeof this[t]==="function"){this[t](e[t])}else{b["default"].error("Unable to find plugin:",t)}},s)})()}s.options_.playerOptions=u;s.initChildren();s.isAudio(r.nodeName.toLowerCase()==="audio");if(s.controls()){s.addClass("vjs-controls-enabled")}else{s.addClass("vjs-controls-disabled")}s.el_.setAttribute("role","region");if(s.isAudio()){s.el_.setAttribute("aria-label","audio player")}else{s.el_.setAttribute("aria-label","video player")}if(s.isAudio()){s.addClass("vjs-audio")}if(s.flexNotSupported_()){s.addClass("vjs-no-flex")}if(!_.IS_IOS){s.addClass("vjs-workinghover")}t.players[s.id_]=s;s.userActive(true);s.reportUserActivity();s.listenForUserActivity_();s.on("fullscreenchange",s.handleFullscreenChange_);s.on("stageclick",s.handleStageClick_);return s}t.prototype.dispose=function r(){this.trigger("dispose");this.off("dispose");if(this.styleEl_&&this.styleEl_.parentNode){this.styleEl_.parentNode.removeChild(this.styleEl_)}t.players[this.id_]=null;if(this.tag&&this.tag.player){this.tag.player=null}if(this.el_&&this.el_.player){this.el_.player=null}if(this.tech_){this.tech_.dispose()}e.prototype.dispose.call(this)};t.prototype.createEl=function n(){var t=this.tag;var r=void 0;var n=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player");if(n){r=this.el_=t.parentNode}else{r=this.el_=e.prototype.createEl.call(this,"div")}t.removeAttribute("width");t.removeAttribute("height");var o=p.getElAttributes(t);Object.getOwnPropertyNames(o).forEach(function(e){if(e==="class"){r.className+=" "+o[e]}else{r.setAttribute(e,o[e])}});t.playerId=t.id;t.id+="_html5_api";t.className="vjs-tech";t.player=r.player=this;this.addClass("vjs-paused");if(u["default"].VIDEOJS_NO_DYNAMIC_STYLE!==true){this.styleEl_=O.createStyleElement("vjs-styles-dimensions");var i=p.$(".vjs-styles-defaults");var a=p.$("head");a.insertBefore(this.styleEl_,i?i.nextSibling:a.firstChild)}this.width(this.options_.width);this.height(this.options_.height);this.fluid(this.options_.fluid);this.aspectRatio(this.options_.aspectRatio);var s=t.getElementsByTagName("a");for(var l=0;l<s.length;l++){var c=s.item(l);p.addElClass(c,"vjs-hidden");c.setAttribute("hidden","hidden")}t.initNetworkState_=t.networkState;if(t.parentNode&&!n){t.parentNode.insertBefore(r,t)}p.insertElFirst(t,r);this.children_.unshift(t);this.el_=r;return r};t.prototype.width=function i(e){return this.dimension("width",e)};t.prototype.height=function s(e){return this.dimension("height",e)};t.prototype.dimension=function l(e,t){var r=e+"_";if(t===undefined){return this[r]||0}if(t===""){this[r]=undefined}else{var n=parseFloat(t);if(isNaN(n)){b["default"].error('Improper value "'+t+'" supplied for for '+e);return this}this[r]=n}this.updateStyleEl_();return this};t.prototype.fluid=function f(e){if(e===undefined){return!!this.fluid_}this.fluid_=!!e;if(e){this.addClass("vjs-fluid")}else{this.removeClass("vjs-fluid")}this.updateStyleEl_()};t.prototype.aspectRatio=function h(e){if(e===undefined){return this.aspectRatio_}if(!/^\d+\:\d+$/.test(e)){throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.")}this.aspectRatio_=e;this.fluid(true);this.updateStyleEl_()};t.prototype.updateStyleEl_=function v(){if(u["default"].VIDEOJS_NO_DYNAMIC_STYLE===true){var e=typeof this.width_==="number"?this.width_:this.options_.width;var t=typeof this.height_==="number"?this.height_:this.options_.height;var r=this.tech_&&this.tech_.el();if(r){if(e>=0){r.width=e}if(t>=0){r.height=t}}return}var n=void 0;var o=void 0;var i=void 0;var a=void 0;if(this.aspectRatio_!==undefined&&this.aspectRatio_!=="auto"){i=this.aspectRatio_}else if(this.videoWidth()>0){i=this.videoWidth()+":"+this.videoHeight()}else{i="16:9"}var s=i.split(":");var l=s[1]/s[0];if(this.width_!==undefined){n=this.width_}else if(this.height_!==undefined){n=this.height_/l}else{n=this.videoWidth()||300}if(this.height_!==undefined){o=this.height_}else{o=n*l}if(/^[^a-zA-Z]/.test(this.id())){a="dimensions-"+this.id()}else{a=this.id()+"-dimensions"}this.addClass(a);O.setTextContent(this.styleEl_,"\n ."+a+" {\n width: "+n+"px;\n height: "+o+"px;\n }\n\n ."+a+".vjs-fluid {\n padding-top: "+l*100+"%;\n }\n ")};t.prototype.loadTech_=function g(e,t){var r=this;if(this.tech_){this.unloadTech_()}if(e!=="Html5"&&this.tag){V["default"].getTech("Html5").disposeMediaElement(this.tag);this.tag.player=null;this.tag=null}this.techName_=e;this.isReady_=false;var n=(0,I.assign)({source:t,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+e+"_api",videoTracks:this.videoTracks_,textTracks:this.textTracks_,audioTracks:this.audioTracks_,autoplay:this.options_.autoplay,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||false,"vtt.js":this.options_["vtt.js"]},this.options_[e.toLowerCase()]);if(this.tag){n.tag=this.tag}if(t){this.currentType_=t.type;if(t.src===this.cache_.src&&this.cache_.currentTime>0){n.startTime=this.cache_.currentTime}this.cache_.sources=null;this.cache_.source=t;this.cache_.src=t.src}var i=V["default"].getTech(e);if(!i){i=o["default"].getComponent(e)}this.tech_=new i(n);this.tech_.ready(d.bind(this,this.handleTechReady_),true);L["default"].jsonToTextTracks(this.textTracksJson_||[],this.tech_);J.forEach(function(e){r.on(r.tech_,e,r["handleTech"+(0,w["default"])(e)+"_"])});this.on(this.tech_,"loadstart",this.handleTechLoadStart_);this.on(this.tech_,"waiting",this.handleTechWaiting_);this.on(this.tech_,"canplay",this.handleTechCanPlay_);this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_);this.on(this.tech_,"playing",this.handleTechPlaying_);this.on(this.tech_,"ended",this.handleTechEnded_);this.on(this.tech_,"seeking",this.handleTechSeeking_);this.on(this.tech_,"seeked",this.handleTechSeeked_);this.on(this.tech_,"play",this.handleTechPlay_);this.on(this.tech_,"firstplay",this.handleTechFirstPlay_);this.on(this.tech_,"pause",this.handleTechPause_);this.on(this.tech_,"durationchange",this.handleTechDurationChange_);this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_);this.on(this.tech_,"error",this.handleTechError_);this.on(this.tech_,"loadedmetadata",this.updateStyleEl_);this.on(this.tech_,"posterchange",this.handleTechPosterChange_);this.on(this.tech_,"textdata",this.handleTechTextData_);this.usingNativeControls(this.techGet_("controls"));if(this.controls()&&!this.usingNativeControls()){this.addTechControlsListeners_()}if(this.tech_.el().parentNode!==this.el()&&(e!=="Html5"||!this.tag)){p.insertElFirst(this.tech_.el(),this.el())}if(this.tag){this.tag.player=null;this.tag=null}};t.prototype.unloadTech_=function m(){this.videoTracks_=this.videoTracks();this.textTracks_=this.textTracks();this.audioTracks_=this.audioTracks();this.textTracksJson_=L["default"].textTracksToJson(this.tech_);this.isReady_=false;this.tech_.dispose();this.tech_=false};t.prototype.tech=function T(e){if(e&&e.IWillNotUseThisInPlugins){return this.tech_}var t="\n Please make sure that you are not using this inside of a plugin.\n To disable this alert and error, please pass in an object with\n `IWillNotUseThisInPlugins` to the `tech` method. See\n https://github.com/videojs/video.js/issues/2617 for more info.\n ";u["default"].alert(t);throw new Error(t)};t.prototype.addTechControlsListeners_=function k(){this.removeTechControlsListeners_();this.on(this.tech_,"mousedown",this.handleTechClick_);this.on(this.tech_,"touchstart",this.handleTechTouchStart_);this.on(this.tech_,"touchmove",this.handleTechTouchMove_);this.on(this.tech_,"touchend",this.handleTechTouchEnd_);this.on(this.tech_,"tap",this.handleTechTap_)};t.prototype.removeTechControlsListeners_=function S(){this.off(this.tech_,"tap",this.handleTechTap_);this.off(this.tech_,"touchstart",this.handleTechTouchStart_);this.off(this.tech_,"touchmove",this.handleTechTouchMove_);this.off(this.tech_,"touchend",this.handleTechTouchEnd_);this.off(this.tech_,"mousedown",this.handleTechClick_)};t.prototype.handleTechReady_=function x(){this.triggerReady();if(this.cache_.volume){this.techCall_("setVolume",this.cache_.volume)}this.handleTechPosterChange_();this.handleTechDurationChange_();if((this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused()){try{delete this.tag.poster}catch(e){(0,b["default"])("deleting tag.poster throws in some browsers",e)}this.play()}};t.prototype.handleTechLoadStart_=function M(){this.removeClass("vjs-ended");this.removeClass("vjs-seeking");this.error(null);if(!this.paused()){this.trigger("loadstart");this.trigger("firstplay")}else{this.hasStarted(false);this.trigger("loadstart")}};t.prototype.hasStarted=function R(e){if(e!==undefined){if(this.hasStarted_!==e){this.hasStarted_=e;if(e){this.addClass("vjs-has-started");this.trigger("firstplay")}else{this.removeClass("vjs-has-started")}}return this}return!!this.hasStarted_};t.prototype.handleTechPlay_=function D(){this.removeClass("vjs-ended");this.removeClass("vjs-paused");this.addClass("vjs-playing");this.hasStarted(true);this.trigger("play")};t.prototype.handleTechWaiting_=function F(){var e=this;this.addClass("vjs-waiting");this.trigger("waiting");this.one("timeupdate",function(){return e.removeClass("vjs-waiting")})};t.prototype.handleTechCanPlay_=function H(){this.removeClass("vjs-waiting");this.trigger("canplay")};t.prototype.handleTechCanPlayThrough_=function U(){this.removeClass("vjs-waiting");this.trigger("canplaythrough")};t.prototype.handleTechPlaying_=function z(){this.removeClass("vjs-waiting");this.trigger("playing")};t.prototype.handleTechSeeking_=function q(){this.addClass("vjs-seeking");this.trigger("seeking")};t.prototype.handleTechSeeked_=function $(){this.removeClass("vjs-seeking");this.trigger("seeked")};t.prototype.handleTechFirstPlay_=function Q(){if(this.options_.starttime){b["default"].warn("Passing the `starttime` option to the player will be deprecated in 6.0");this.currentTime(this.options_.starttime)}this.addClass("vjs-has-started");this.trigger("firstplay")};t.prototype.handleTechPause_=function Z(){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.trigger("pause")};t.prototype.handleTechEnded_=function ee(){this.addClass("vjs-ended");if(this.options_.loop){this.currentTime(0);this.play()}else if(!this.paused()){this.pause()}this.trigger("ended")};t.prototype.handleTechDurationChange_=function te(){this.duration(this.techGet_("duration"))};t.prototype.handleTechClick_=function re(e){if(e.button!==0){return}if(this.controls()){if(this.paused()){this.play()}else{this.pause()}}};t.prototype.handleTechTap_=function ne(){this.userActive(!this.userActive())};t.prototype.handleTechTouchStart_=function oe(){this.userWasActive=this.userActive()};t.prototype.handleTechTouchMove_=function ie(){if(this.userWasActive){this.reportUserActivity()}};t.prototype.handleTechTouchEnd_=function ae(e){e.preventDefault()};t.prototype.handleFullscreenChange_=function se(){if(this.isFullscreen()){this.addClass("vjs-fullscreen")}else{this.removeClass("vjs-fullscreen")}};t.prototype.handleStageClick_=function ue(){this.reportUserActivity()};t.prototype.handleTechFullscreenChange_=function le(e,t){if(t){this.isFullscreen(t.isFullscreen)}this.trigger("fullscreenchange")};t.prototype.handleTechError_=function ce(){var e=this.tech_.error();this.error(e)};t.prototype.handleTechTextData_=function fe(){var e=null;if(arguments.length>1){e=arguments[1]}this.trigger("textdata",e)};t.prototype.getCache=function pe(){return this.cache_};t.prototype.techCall_=function he(e,t){if(this.tech_&&!this.tech_.isReady_){this.tech_.ready(function(){this[e](t)},true)}else{try{if(this.tech_){this.tech_[e](t)}}catch(r){(0,b["default"])(r);throw r}}};t.prototype.techGet_=function de(e){if(this.tech_&&this.tech_.isReady_){try{return this.tech_[e]()}catch(t){if(this.tech_[e]===undefined){(0,b["default"])("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t)}else if(t.name==="TypeError"){(0,b["default"])("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t);this.tech_.isReady_=false}else{(0,b["default"])(t)}throw t}}return};t.prototype.play=function ve(){if(this.src()||this.currentSrc()){this.techCall_("play")}else{this.tech_.one("loadstart",function(){this.play()})}return this};t.prototype.pause=function ye(){this.techCall_("pause");return this};t.prototype.paused=function ge(){return this.techGet_("paused")===false?false:true};t.prototype.scrubbing=function _e(e){if(e!==undefined){this.scrubbing_=!!e;if(e){this.addClass("vjs-scrubbing")}else{this.removeClass("vjs-scrubbing")}return this}return this.scrubbing_};t.prototype.currentTime=function me(e){if(e!==undefined){this.techCall_("setCurrentTime",e);return this}this.cache_.currentTime=this.techGet_("currentTime")||0;return this.cache_.currentTime};t.prototype.duration=function be(e){if(e===undefined){return this.cache_.duration||0}e=parseFloat(e)||0;if(e<0){e=Infinity}if(e!==this.cache_.duration){this.cache_.duration=e;if(e===Infinity){this.addClass("vjs-live")}else{this.removeClass("vjs-live")}this.trigger("durationchange")}return this};t.prototype.remainingTime=function Te(){return this.duration()-this.currentTime()};t.prototype.buffered=function we(){var we=this.techGet_("buffered");if(!we||!we.length){we=(0,E.createTimeRange)(0,0)}return we};t.prototype.bufferedPercent=function Ee(){return(0,C.bufferedPercent)(this.buffered(),this.duration())};t.prototype.bufferedEnd=function Ce(){var e=this.buffered();var t=this.duration();var r=e.end(e.length-1);if(r>t){r=t}return r};t.prototype.volume=function ke(e){var t=void 0;if(e!==undefined){t=Math.max(0,Math.min(1,parseFloat(e)));this.cache_.volume=t;this.techCall_("setVolume",t);return this}t=parseFloat(this.techGet_("volume"));return isNaN(t)?1:t};t.prototype.muted=function Oe(e){if(e!==undefined){this.techCall_("setMuted",e);return this}return this.techGet_("muted")||false};t.prototype.supportsFullScreen=function Se(){return this.techGet_("supportsFullScreen")||false};t.prototype.isFullscreen=function je(e){if(e!==undefined){this.isFullscreen_=!!e;return this}return!!this.isFullscreen_};t.prototype.requestFullscreen=function xe(){var e=j["default"];this.isFullscreen(true);if(e.requestFullscreen){c.on(a["default"],e.fullscreenchange,d.bind(this,function t(r){this.isFullscreen(a["default"][e.fullscreenElement]);if(this.isFullscreen()===false){c.off(a["default"],e.fullscreenchange,t)}this.trigger("fullscreenchange")}));this.el_[e.requestFullscreen]()}else if(this.tech_.supportsFullScreen()){this.techCall_("enterFullScreen")}else{this.enterFullWindow();this.trigger("fullscreenchange")}return this};t.prototype.exitFullscreen=function Pe(){var e=j["default"];this.isFullscreen(false);if(e.requestFullscreen){a["default"][e.exitFullscreen]()}else if(this.tech_.supportsFullScreen()){this.techCall_("exitFullScreen")}else{this.exitFullWindow();this.trigger("fullscreenchange")}return this};t.prototype.enterFullWindow=function Me(){this.isFullWindow=true;this.docOrigOverflow=a["default"].documentElement.style.overflow;c.on(a["default"],"keydown",d.bind(this,this.fullWindowOnEscKey));a["default"].documentElement.style.overflow="hidden";p.addElClass(a["default"].body,"vjs-full-window");this.trigger("enterFullWindow")};t.prototype.fullWindowOnEscKey=function Ae(e){if(e.keyCode===27){if(this.isFullscreen()===true){this.exitFullscreen()}else{this.exitFullWindow()}}};t.prototype.exitFullWindow=function Ie(){this.isFullWindow=false;c.off(a["default"],"keydown",this.fullWindowOnEscKey);a["default"].documentElement.style.overflow=this.docOrigOverflow;p.removeElClass(a["default"].body,"vjs-full-window");this.trigger("exitFullWindow")};t.prototype.canPlayType=function Re(e){var t=void 0;for(var r=0,n=this.options_.techOrder;r<n.length;r++){var i=(0,w["default"])(n[r]);var a=V["default"].getTech(i);if(!a){a=o["default"].getComponent(i)}if(!a){b["default"].error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.');continue}if(a.isSupported()){t=a.canPlayType(e);if(t){return t}}}return""};t.prototype.selectSource=function Ne(e){var t=this;var r=this.options_.techOrder.map(w["default"]).map(function(e){return[e,V["default"].getTech(e)||o["default"].getComponent(e)]}).filter(function(e){var t=e[0],r=e[1];if(r){return r.isSupported()}b["default"].error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.');return false});var n=function u(e,t,r){var n=void 0;e.some(function(e){return t.some(function(t){n=r(e,t);if(n){return true}})});return n};var i=void 0;var a=function l(e){return function(t,r){return e(r,t)}};var s=function c(e,r){var n=e[0],o=e[1];if(o.canPlaySource(r,t.options_[n.toLowerCase()])){return{source:r,tech:n}}};if(this.options_.sourceOrder){i=n(e,r,a(s))}else{i=n(r,e,s)}return i||false};t.prototype.src=function De(e){if(e===undefined){return this.techGet_("src")}var t=V["default"].getTech(this.techName_);if(!t){t=o["default"].getComponent(this.techName_)}if(Array.isArray(e)){this.sourceList_(e)}else if(typeof e==="string"){this.src({src:e})}else if(e instanceof Object){if(e.type&&!t.canPlaySource(e,this.options_[this.techName_.toLowerCase()])){this.sourceList_([e])}else{this.cache_.sources=null;this.cache_.source=e;this.cache_.src=e.src;this.currentType_=e.type||"";this.ready(function(){if(t.prototype.hasOwnProperty("setSource")){this.techCall_("setSource",e)}else{this.techCall_("src",e.src)}if(this.options_.preload==="auto"){this.load()}if(this.options_.autoplay){this.play()}},true)}}return this};t.prototype.sourceList_=function Le(e){var t=this.selectSource(e);if(t){if(t.tech===this.techName_){this.src(t.source)}else{this.loadTech_(t.tech,t.source)}this.cache_.sources=e}else{this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0);this.triggerReady()}};t.prototype.load=function Fe(){this.techCall_("load");return this};t.prototype.reset=function Be(){this.loadTech_((0,w["default"])(this.options_.techOrder[0]),null);this.techCall_("reset");return this};t.prototype.currentSources=function He(){var e=this.currentSource();var t=[];if(Object.keys(e).length!==0){t.push(e)}return this.cache_.sources||t};t.prototype.currentSource=function Ve(){var e={};var t=this.currentSrc();if(t){e.src=t}return this.cache_.source||e};t.prototype.currentSrc=function Ue(){return this.techGet_("currentSrc")||this.cache_.src||""};t.prototype.currentType=function We(){return this.currentType_||""};t.prototype.preload=function ze(e){if(e!==undefined){this.techCall_("setPreload",e);this.options_.preload=e;return this}return this.techGet_("preload")};t.prototype.autoplay=function Xe(e){if(e!==undefined){this.techCall_("setAutoplay",e);this.options_.autoplay=e;return this}return this.techGet_("autoplay",e)};t.prototype.loop=function qe(e){if(e!==undefined){this.techCall_("setLoop",e);this.options_.loop=e;return this}return this.techGet_("loop")};t.prototype.poster=function $e(e){if(e===undefined){return this.poster_}if(!e){e=""}this.poster_=e;this.techCall_("setPoster",e);this.trigger("posterchange");return this};t.prototype.handleTechPosterChange_=function Ge(){if(!this.poster_&&this.tech_&&this.tech_.poster){this.poster_=this.tech_.poster()||"";this.trigger("posterchange")}};t.prototype.controls=function Ke(e){if(e!==undefined){e=!!e;if(this.controls_!==e){this.controls_=e;if(this.usingNativeControls()){this.techCall_("setControls",e)}if(e){this.removeClass("vjs-controls-disabled");this.addClass("vjs-controls-enabled");this.trigger("controlsenabled");if(!this.usingNativeControls()){this.addTechControlsListeners_()}}else{this.removeClass("vjs-controls-enabled");this.addClass("vjs-controls-disabled");this.trigger("controlsdisabled");if(!this.usingNativeControls()){this.removeTechControlsListeners_()}}}return this}return!!this.controls_};t.prototype.usingNativeControls=function Ye(e){if(e!==undefined){e=!!e;if(this.usingNativeControls_!==e){this.usingNativeControls_=e;if(e){this.addClass("vjs-using-native-controls");this.trigger("usingnativecontrols")}else{this.removeClass("vjs-using-native-controls");this.trigger("usingcustomcontrols")}}return this}return!!this.usingNativeControls_};t.prototype.error=function Je(e){if(e===undefined){return this.error_||null}if(e===null){this.error_=e;this.removeClass("vjs-error");if(this.errorDisplay){this.errorDisplay.close()}return this}this.error_=new P["default"](e);this.addClass("vjs-error");b["default"].error("(CODE:"+this.error_.code+" "+P["default"].errorTypes[this.error_.code]+")",this.error_.message,this.error_);this.trigger("error");return this};t.prototype.reportUserActivity=function Qe(e){this.userActivity_=true};t.prototype.userActive=function Ze(e){if(e!==undefined){e=!!e;if(e!==this.userActive_){this.userActive_=e;if(e){this.userActivity_=true;this.removeClass("vjs-user-inactive");this.addClass("vjs-user-active");this.trigger("useractive")}else{this.userActivity_=false;if(this.tech_){this.tech_.one("mousemove",function(e){e.stopPropagation();e.preventDefault()})}this.removeClass("vjs-user-active");this.addClass("vjs-user-inactive");this.trigger("userinactive")}}return this}return this.userActive_};t.prototype.listenForUserActivity_=function et(){var e=void 0;var t=void 0;var r=void 0;var n=d.bind(this,this.reportUserActivity);var o=function u(e){if(e.screenX!==t||e.screenY!==r){t=e.screenX;r=e.screenY;n()}};var i=function l(){n();this.clearInterval(e);e=this.setInterval(n,250)};var a=function c(t){n();this.clearInterval(e)};this.on("mousedown",i);this.on("mousemove",o);this.on("mouseup",a);this.on("keydown",n);this.on("keyup",n);var s=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=false;this.userActive(true);this.clearTimeout(s);var e=this.options_.inactivityTimeout;if(e>0){s=this.setTimeout(function(){if(!this.userActivity_){this.userActive(false)}},e)}}},250)};t.prototype.playbackRate=function tt(e){if(e!==undefined){this.techCall_("setPlaybackRate",e);return this}if(this.tech_&&this.tech_.featuresPlaybackRate){return this.techGet_("playbackRate")}return 1};t.prototype.isAudio=function rt(e){if(e!==undefined){this.isAudio_=!!e;return this}return!!this.isAudio_};t.prototype.videoTracks=function nt(){if(!this.tech_){this.videoTracks_=this.videoTracks_||new X["default"];return this.videoTracks_}return this.tech_.videoTracks()};t.prototype.audioTracks=function ot(){if(!this.tech_){this.audioTracks_=this.audioTracks_||new W["default"];return this.audioTracks_}return this.tech_.audioTracks()};t.prototype.textTracks=function it(){if(this.tech_){return this.tech_.textTracks()}};t.prototype.remoteTextTracks=function at(){if(this.tech_){return this.tech_.remoteTextTracks()}};t.prototype.remoteTextTrackEls=function st(){if(this.tech_){return this.tech_.remoteTextTrackEls()}};t.prototype.addTextTrack=function ut(e,t,r){if(this.tech_){return this.tech_.addTextTrack(e,t,r)}};t.prototype.addRemoteTextTrack=function lt(e,t){if(this.tech_){return this.tech_.addRemoteTextTrack(e,t)}};t.prototype.removeRemoteTextTrack=function ct(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},t=e.track,r=t===undefined?arguments[0]:t;if(this.tech_){return this.tech_.removeRemoteTextTrack(r)}};t.prototype.videoWidth=function ft(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0};t.prototype.videoHeight=function pt(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0};t.prototype.language=function ht(e){if(e===undefined){return this.language_}this.language_=String(e).toLowerCase();return this};t.prototype.languages=function dt(){return(0,N["default"])(t.prototype.options_.languages,this.languages_)};t.prototype.toJSON=function vt(){var e=(0,N["default"])(this.options_);var t=e.tracks;e.tracks=[];for(var r=0;r<t.length;r++){var n=t[r];n=(0,N["default"])(n);n.player=undefined;e.tracks[r]=n}return e};t.prototype.createModal=function yt(e,t){var r=this;t=t||{};t.content=e||"";var n=new B["default"](this,t);this.addChild(n);n.on("dispose",function(){r.removeChild(n)});return n.open()};t.getTagSettings=function gt(e){var t={sources:[],tracks:[]};var r=p.getElAttributes(e);var n=r["data-setup"];if(p.hasElClass(e,"vjs-fluid")){r.fluid=true}if(n!==null){var o=(0,A["default"])(n||"{}"),i=o[0],a=o[1];if(i){b["default"].error(i)}(0,I.assign)(r,a)}(0,I.assign)(t,r);if(e.hasChildNodes()){var s=e.childNodes;for(var u=0,l=s.length;u<l;u++){var c=s[u];var f=c.nodeName.toLowerCase();if(f==="source"){t.sources.push(p.getElAttributes(c))}else if(f==="track"){t.tracks.push(p.getElAttributes(c)); }}}return t};t.prototype.flexNotSupported_=function _t(){var e=a["default"].createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)};return t}(o["default"]);Q.players={};var Z=u["default"].navigator;Q.prototype.options_={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:Z&&(Z.languages&&Z.languages[0]||Z.userLanguage||Z.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."};["ended","seeking","seekable","networkState","readyState"].forEach(function(e){Q.prototype[e]=function(){return this.techGet_(e)}});J.forEach(function(e){Q.prototype["handleTech"+(0,w["default"])(e)+"_"]=function(){return this.trigger(e)}});o["default"].registerComponent("Player",Q);r["default"]=Q},{1:1,4:4,41:41,44:44,45:45,46:46,5:5,50:50,55:55,59:59,60:60,61:61,62:62,63:63,68:68,69:69,71:71,76:76,78:78,79:79,8:8,81:81,82:82,83:83,85:85,86:86,87:87,88:88,89:89,90:90,91:91,94:94,95:95,97:97}],52:[function(e,t,r){"use strict";r.__esModule=true;var n=e(51);var o=i(n);function i(e){return e&&e.__esModule?e:{"default":e}}var a=function s(e,t){o["default"].prototype[e]=t};r["default"]=a},{51:51}],53:[function(e,t,r){"use strict";r.__esModule=true;var n=e(3);var o=s(n);var i=e(5);var a=s(i);function s(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function l(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function c(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var f=function(e){c(t,e);function t(r){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};u(this,t);var o=l(this,e.call(this,r,n));o.update();return o}t.prototype.update=function r(){var e=this.createPopup();if(this.popup){this.removeChild(this.popup)}this.popup=e;this.addChild(e);if(this.items&&this.items.length===0){this.hide()}else if(this.items&&this.items.length>1){this.show()}};t.prototype.createPopup=function n(){};t.prototype.createEl=function o(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})};t.prototype.buildCSSClass=function i(){var t="vjs-menu-button";if(this.options_.inline===true){t+="-inline"}else{t+="-popup"}return"vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)};return t}(o["default"]);a["default"].registerComponent("PopupButton",f);r["default"]=f},{3:3,5:5}],54:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=p(n);var i=e(81);var a=f(i);var s=e(83);var u=f(s);var l=e(82);var c=f(l);function f(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function p(e){return e&&e.__esModule?e:{"default":e}}function h(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function d(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function v(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var y=function(e){v(t,e);function t(){h(this,t);return d(this,e.apply(this,arguments))}t.prototype.addItem=function r(e){this.addChild(e);e.on("click",u.bind(this,function(){this.unlockShowing()}))};t.prototype.createEl=function n(){var t=this.options_.contentElType||"ul";this.contentEl_=a.createEl(t,{className:"vjs-menu-content"});var r=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});r.appendChild(this.contentEl_);c.on(r,"click",function(e){e.preventDefault();e.stopImmediatePropagation()});return r};return t}(o["default"]);o["default"].registerComponent("Popup",y);r["default"]=y},{5:5,81:81,82:82,83:83}],55:[function(e,t,r){"use strict";r.__esModule=true;var n=e(3);var o=d(n);var i=e(5);var a=d(i);var s=e(83);var u=h(s);var l=e(81);var c=h(l);var f=e(78);var p=h(f);function h(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function d(e){return e&&e.__esModule?e:{"default":e}}function v(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function y(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function g(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var _=function(e){g(t,e);function t(r,n){v(this,t);var o=y(this,e.call(this,r,n));o.update();r.on("posterchange",u.bind(o,o.update));return o}t.prototype.dispose=function r(){this.player().off("posterchange",this.update);e.prototype.dispose.call(this)};t.prototype.createEl=function n(){var e=c.createEl("div",{className:"vjs-poster",tabIndex:-1});if(!p.BACKGROUND_SIZE_SUPPORTED){this.fallbackImg_=c.createEl("img");e.appendChild(this.fallbackImg_)}return e};t.prototype.update=function o(e){var t=this.player().poster();this.setSrc(t);if(t){this.show()}else{this.hide()}};t.prototype.setSrc=function i(e){if(this.fallbackImg_){this.fallbackImg_.src=e}else{var t="";if(e){t='url("'+e+'")'}this.el_.style.backgroundImage=t}};t.prototype.handleClick=function a(e){if(!this.player_.controls()){return}if(this.player_.paused()){this.player_.play()}else{this.player_.pause()}};return t}(o["default"]);a["default"].registerComponent("PosterImage",_);r["default"]=_},{3:3,5:5,78:78,81:81,83:83}],56:[function(e,t,r){"use strict";r.__esModule=true;r.hasLoaded=r.autoSetupTimeout=r.autoSetup=undefined;var n=e(81);var o=p(n);var i=e(82);var a=p(i);var s=e(94);var u=f(s);var l=e(95);var c=f(l);function f(e){return e&&e.__esModule?e:{"default":e}}function p(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}var h=false;var d=void 0;var v=function _(){if(!o.isReal()){return}var e=u["default"].getElementsByTagName("video");var t=u["default"].getElementsByTagName("audio");var r=[];if(e&&e.length>0){for(var n=0,i=e.length;n<i;n++){r.push(e[n])}}if(t&&t.length>0){for(var a=0,s=t.length;a<s;a++){r.push(t[a])}}if(r&&r.length>0){for(var l=0,c=r.length;l<c;l++){var f=r[l];if(f&&f.getAttribute){if(f.player===undefined){var p=f.getAttribute("data-setup");if(p!==null){d(f)}}}else{y(1);break}}}else if(!h){y(1)}};function y(e,t){if(t){d=t}c["default"].setTimeout(v,e)}if(o.isReal()&&u["default"].readyState==="complete"){h=true}else{a.one(c["default"],"load",function(){h=true})}var g=function m(){return h};r.autoSetup=v;r.autoSetupTimeout=y;r.hasLoaded=g},{81:81,82:82,94:94,95:95}],57:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=l(n);var i=e(81);var a=u(i);var s=e(88);function u(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function l(e){return e&&e.__esModule?e:{"default":e}}function c(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function f(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function p(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var h=function(e){p(t,e);function t(r,n){c(this,t);var o=f(this,e.call(this,r,n));o.bar=o.getChild(o.options_.barName);o.vertical(!!o.options_.vertical);o.on("mousedown",o.handleMouseDown);o.on("touchstart",o.handleMouseDown);o.on("focus",o.handleFocus);o.on("blur",o.handleBlur);o.on("click",o.handleClick);o.on(r,"controlsvisible",o.update);o.on(r,o.playerEvent,o.update);return o}t.prototype.createEl=function r(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.className=r.className+" vjs-slider";r=(0,s.assign)({tabIndex:0},r);n=(0,s.assign)({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},n);return e.prototype.createEl.call(this,t,r,n)};t.prototype.handleMouseDown=function n(e){var t=this.bar.el_.ownerDocument;e.preventDefault();a.blockTextSelection();this.addClass("vjs-sliding");this.trigger("slideractive");this.on(t,"mousemove",this.handleMouseMove);this.on(t,"mouseup",this.handleMouseUp);this.on(t,"touchmove",this.handleMouseMove);this.on(t,"touchend",this.handleMouseUp);this.handleMouseMove(e)};t.prototype.handleMouseMove=function o(e){};t.prototype.handleMouseUp=function i(){var e=this.bar.el_.ownerDocument;a.unblockTextSelection();this.removeClass("vjs-sliding");this.trigger("sliderinactive");this.off(e,"mousemove",this.handleMouseMove);this.off(e,"mouseup",this.handleMouseUp);this.off(e,"touchmove",this.handleMouseMove);this.off(e,"touchend",this.handleMouseUp);this.update()};t.prototype.update=function u(){if(!this.el_){return}var e=this.getPercent();var t=this.bar;if(!t){return}if(typeof e!=="number"||e!==e||e<0||e===Infinity){e=0}var r=(e*100).toFixed(2)+"%";if(this.vertical()){t.el().style.height=r}else{t.el().style.width=r}};t.prototype.calculateDistance=function l(e){var t=a.getPointerPosition(this.el_,e);if(this.vertical()){return t.y}return t.x};t.prototype.handleFocus=function h(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)};t.prototype.handleKeyPress=function d(e){if(e.which===37||e.which===40){e.preventDefault();this.stepBack()}else if(e.which===38||e.which===39){e.preventDefault();this.stepForward()}};t.prototype.handleBlur=function v(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)};t.prototype.handleClick=function y(e){e.stopImmediatePropagation();e.preventDefault()};t.prototype.vertical=function g(e){if(e===undefined){return this.vertical_||false}this.vertical_=!!e;if(this.vertical_){this.addClass("vjs-slider-vertical")}else{this.addClass("vjs-slider-horizontal")}return this};return t}(o["default"]);o["default"].registerComponent("Slider",h);r["default"]=h},{5:5,81:81,88:88}],58:[function(e,t,r){"use strict";r.__esModule=true;function n(e){e.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"};e.streamFromParts=function(e,t){return e+"&"+t};e.streamToParts=function(e){var t={connection:"",stream:""};if(!e){return t}var r=e.search(/&(?!\w+=)/);var n=void 0;if(r!==-1){n=r+1}else{r=n=e.lastIndexOf("/")+1;if(r===0){r=n=e.length}}t.connection=e.substring(0,r);t.stream=e.substring(n,e.length);return t};e.isStreamingType=function(t){return t in e.streamingFormats};e.RTMP_RE=/^rtmp[set]?:\/\//i;e.isStreamingSrc=function(t){return e.RTMP_RE.test(t)};e.rtmpSourceHandler={};e.rtmpSourceHandler.canPlayType=function(t){if(e.isStreamingType(t)){return"maybe"}return""};e.rtmpSourceHandler.canHandleSource=function(t,r){var n=e.rtmpSourceHandler.canPlayType(t.type);if(n){return n}if(e.isStreamingSrc(t.src)){return"maybe"}return""};e.rtmpSourceHandler.handleSource=function(t,r,n){var o=e.streamToParts(t.src);r.setRtmpConnection(o.connection);r.setRtmpStream(o.stream)};e.registerSourceHandler(e.rtmpSourceHandler);return e}r["default"]=n},{}],59:[function(e,t,r){"use strict";r.__esModule=true;var n=e(62);var o=_(n);var i=e(81);var a=g(i);var s=e(92);var u=g(s);var l=e(90);var c=e(58);var f=_(c);var p=e(5);var h=_(p);var d=e(95);var v=_(d);var y=e(88);function g(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function _(e){return e&&e.__esModule?e:{"default":e}}function m(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function b(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function T(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var w=v["default"].navigator;var E=function(e){T(t,e);function t(r,n){m(this,t);var o=b(this,e.call(this,r,n));if(r.source){o.ready(function(){this.setSource(r.source)},true)}if(r.startTime){o.ready(function(){this.load();this.play();this.currentTime(r.startTime)},true)}v["default"].videojs=v["default"].videojs||{};v["default"].videojs.Flash=v["default"].videojs.Flash||{};v["default"].videojs.Flash.onReady=t.onReady;v["default"].videojs.Flash.onEvent=t.onEvent;v["default"].videojs.Flash.onError=t.onError;o.on("seeked",function(){this.lastSeekTarget_=undefined});return o}t.prototype.createEl=function r(){var e=this.options_;if(!e.swf){var r="5.1.0";e.swf="//vjs.zencdn.net/swf/"+r+"/video-js.swf"}var n=e.techId;var o=(0,y.assign)({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:e.autoplay,preload:e.preload,loop:e.loop,muted:e.muted},e.flashVars);var i=(0,y.assign)({wmode:"opaque",bgcolor:"#000000"},e.params);var a=(0,y.assign)({id:n,name:n,"class":"vjs-tech"},e.attributes);this.el_=t.embed(e.swf,o,i,a);this.el_.tech=this;return this.el_};t.prototype.play=function n(){if(this.ended()){this.setCurrentTime(0)}this.el_.vjs_play()};t.prototype.pause=function o(){this.el_.vjs_pause()};t.prototype.src=function i(e){if(e===undefined){return this.currentSrc()}return this.setSrc(e)};t.prototype.setSrc=function a(e){var t=this;e=u.getAbsoluteURL(e);this.el_.vjs_src(e);if(this.autoplay()){this.setTimeout(function(){return t.play()},0)}};t.prototype.seeking=function s(){return this.lastSeekTarget_!==undefined};t.prototype.setCurrentTime=function c(t){var r=this.seekable();if(r.length){t=t>r.start(0)?t:r.start(0);t=t<r.end(r.length-1)?t:r.end(r.length-1);this.lastSeekTarget_=t;this.trigger("seeking");this.el_.vjs_setProperty("currentTime",t);e.prototype.setCurrentTime.call(this)}};t.prototype.currentTime=function f(){if(this.seeking()){return this.lastSeekTarget_||0}return this.el_.vjs_getProperty("currentTime")};t.prototype.currentSrc=function p(){if(this.currentSource_){return this.currentSource_.src}return this.el_.vjs_getProperty("currentSrc")};t.prototype.duration=function h(){if(this.readyState()===0){return NaN}var h=this.el_.vjs_getProperty("duration");return h>=0?h:Infinity};t.prototype.load=function d(){this.el_.vjs_load()};t.prototype.poster=function g(){this.el_.vjs_getProperty("poster")};t.prototype.setPoster=function _(){};t.prototype.seekable=function w(){var e=this.duration();if(e===0){return(0,l.createTimeRange)()}return(0,l.createTimeRange)(0,e)};t.prototype.buffered=function E(){var e=this.el_.vjs_getProperty("buffered");if(e.length===0){return(0,l.createTimeRange)()}return(0,l.createTimeRange)(e[0][0],e[0][1])};t.prototype.supportsFullScreen=function C(){return false};t.prototype.enterFullScreen=function k(){return false};return t}(o["default"]);var C=E.prototype;var k="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(",");var O="networkState,readyState,initialTime,startOffsetTime,paused,ended,videoWidth,videoHeight".split(",");function S(e){var t=e.charAt(0).toUpperCase()+e.slice(1);C["set"+t]=function(t){return this.el_.vjs_setProperty(e,t)}}function j(e){C[e]=function(){return this.el_.vjs_getProperty(e)}}for(var x=0;x<k.length;x++){j(k[x]);S(k[x])}for(var P=0;P<O.length;P++){j(O[P])}E.isSupported=function(){return E.version()[0]>=10};o["default"].withSourceHandlers(E);E.nativeSourceHandler={};E.nativeSourceHandler.canPlayType=function(e){if(e in E.formats){return"maybe"}return""};E.nativeSourceHandler.canHandleSource=function(e,t){var r=void 0;function n(e){var t=u.getFileExtension(e);if(t){return"video/"+t}return""}if(!e.type){r=n(e.src)}else{r=e.type.replace(/;.*/,"").toLowerCase()}return E.nativeSourceHandler.canPlayType(r)};E.nativeSourceHandler.handleSource=function(e,t,r){t.setSrc(e.src)};E.nativeSourceHandler.dispose=function(){};E.registerSourceHandler(E.nativeSourceHandler);E.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"};E.onReady=function(e){var t=a.getEl(e);var r=t&&t.tech;if(r&&r.el()){E.checkReady(r)}};E.checkReady=function(e){if(!e.el()){return}if(e.el().vjs_getProperty){e.triggerReady()}else{this.setTimeout(function(){E.checkReady(e)},50)}};E.onEvent=function(e,t){var r=a.getEl(e).tech;var n=Array.prototype.slice.call(arguments,2);r.setTimeout(function(){r.trigger(t,n)},1)};E.onError=function(e,t){var r=a.getEl(e).tech;if(t==="srcnotfound"){return r.error(4)}r.error("FLASH: "+t)};E.version=function(){var e="0,0,0";try{e=new v["default"].ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(t){try{if(w.mimeTypes["application/x-shockwave-flash"].enabledPlugin){e=(w.plugins["Shockwave Flash 2.0"]||w.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}}catch(r){}}return e.split(",")};E.embed=function(e,t,r,n){var o=E.getEmbedCode(e,t,r,n);var i=a.createEl("div",{innerHTML:o}).childNodes[0];return i};E.getEmbedCode=function(e,t,r,n){var o='<object type="application/x-shockwave-flash" ';var i="";var a="";var s="";if(t){Object.getOwnPropertyNames(t).forEach(function(e){i+=e+"="+t[e]+"&"})}r=(0,y.assign)({movie:e,flashvars:i,allowScriptAccess:"always",allowNetworking:"all"},r);Object.getOwnPropertyNames(r).forEach(function(e){a+='<param name="'+e+'" value="'+r[e]+'" />'});n=(0,y.assign)({data:e,width:"100%",height:"100%"},n);Object.getOwnPropertyNames(n).forEach(function(e){s+=e+'="'+n[e]+'" '});return""+o+s+">"+a+"</object>"};(0,f["default"])(E);h["default"].registerComponent("Flash",E);o["default"].registerTech("Flash",E);r["default"]=E},{5:5,58:58,62:62,81:81,88:88,90:90,92:92,95:95}],60:[function(e,t,r){"use strict";r.__esModule=true;var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var o=A(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."],["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."]);var i=e(62);var a=M(i);var s=e(5);var u=M(s);var l=e(81);var c=P(l);var f=e(92);var p=P(f);var h=e(83);var d=P(h);var v=e(86);var y=M(v);var g=e(98);var _=M(g);var m=e(78);var b=P(m);var T=e(94);var w=M(T);var E=e(95);var C=M(E);var k=e(88);var O=e(87);var S=M(O);var j=e(91);var x=M(j);function P(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function M(e){return e&&e.__esModule?e:{"default":e}}function A(e,t){e.raw=t;return e}function I(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function R(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function N(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var D=function(e){N(t,e);function t(r,n){I(this,t);var i=R(this,e.call(this,r,n));var a=r.source;var s=false;if(a&&(i.el_.currentSrc!==a.src||r.tag&&r.tag.initNetworkState_===3)){i.setSource(a)}else{i.handleLateInit_(i.el_)}if(i.el_.hasChildNodes()){var u=i.el_.childNodes;var l=u.length;var c=[];while(l--){var f=u[l];var h=f.nodeName.toLowerCase();if(h==="track"){if(!i.featuresNativeTextTracks){c.push(f)}else{i.remoteTextTrackEls().addTrackElement_(f);i.remoteTextTracks().addTrack_(f.track);if(!s&&!i.el_.hasAttribute("crossorigin")&&p.isCrossOrigin(f.src)){s=true}}}}for(var v=0;v<c.length;v++){i.el_.removeChild(c[v])}}var g=["audio","video"];g.forEach(function(e){var t=i.el()[e+"Tracks"];var r=i[e+"Tracks"]();var n=(0,x["default"])(e);if(!i["featuresNative"+n+"Tracks"]||!t||!t.addEventListener){return}i["handle"+n+"TrackChange_"]=function(e){r.trigger({type:"change",target:r,currentTarget:r,srcElement:r})};i["handle"+n+"TrackAdd_"]=function(e){return r.addTrack(e.track)};i["handle"+n+"TrackRemove_"]=function(e){return r.removeTrack(e.track)};t.addEventListener("change",i["handle"+n+"TrackChange_"]);t.addEventListener("addtrack",i["handle"+n+"TrackAdd_"]);t.addEventListener("removetrack",i["handle"+n+"TrackRemove_"]);i["removeOld"+n+"Tracks_"]=function(e){return i.removeOldTracks_(r,t)};i.on("loadstart",i["removeOld"+n+"Tracks_"])});if(i.featuresNativeTextTracks){if(s){y["default"].warn((0,_["default"])(o))}i.handleTextTrackChange_=d.bind(i,i.handleTextTrackChange);i.handleTextTrackAdd_=d.bind(i,i.handleTextTrackAdd);i.handleTextTrackRemove_=d.bind(i,i.handleTextTrackRemove);i.proxyNativeTextTracks_()}if((b.TOUCH_ENABLED||b.IS_IPHONE||b.IS_NATIVE_ANDROID)&&r.nativeControlsForTouch===true){i.setControls(true)}i.proxyWebkitFullscreen_();i.triggerReady();return i}t.prototype.dispose=function r(){var r=this;["audio","video","text"].forEach(function(e){var t=(0,x["default"])(e);var n=r.el_[e+"Tracks"];if(n&&n.removeEventListener){n.removeEventListener("change",r["handle"+t+"TrackChange_"]);n.removeEventListener("addtrack",r["handle"+t+"TrackAdd_"]);n.removeEventListener("removetrack",r["handle"+t+"TrackRemove_"])}if(n){r.off("loadstart",r["removeOld"+t+"Tracks_"])}});t.disposeMediaElement(this.el_);e.prototype.dispose.call(this)};t.prototype.createEl=function i(){var e=this.options_.tag;if(!e||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(e){var r=e.cloneNode(true);if(e.parentNode){e.parentNode.insertBefore(r,e)}t.disposeMediaElement(e);e=r}else{e=w["default"].createElement("video");var n=this.options_.tag&&c.getElAttributes(this.options_.tag);var o=(0,S["default"])({},n);if(!b.TOUCH_ENABLED||this.options_.nativeControlsForTouch!==true){delete o.controls}c.setElAttributes(e,(0,k.assign)(o,{id:this.options_.techId,"class":"vjs-tech"}))}e.playerId=this.options_.playerId}var i=["autoplay","preload","loop","muted"];for(var a=i.length-1;a>=0;a--){var s=i[a];var u={};if(typeof this.options_[s]!=="undefined"){u[s]=this.options_[s]}c.setElAttributes(e,u)}return e};t.prototype.handleLateInit_=function a(e){var t=this;if(e.networkState===0||e.networkState===3){return}if(e.readyState===0){var r=function(){var e=false;var r=function o(){e=true};t.on("loadstart",r);var n=function i(){if(!e){this.trigger("loadstart")}};t.on("loadedmetadata",n);t.ready(function(){this.off("loadstart",r);this.off("loadedmetadata",n);if(!e){this.trigger("loadstart")}});return{v:void 0}}();if((typeof r==="undefined"?"undefined":n(r))==="object")return r.v}var o=["loadstart"];o.push("loadedmetadata");if(e.readyState>=2){o.push("loadeddata")}if(e.readyState>=3){o.push("canplay")}if(e.readyState>=4){o.push("canplaythrough")}this.ready(function(){o.forEach(function(e){this.trigger(e)},this)})};t.prototype.proxyNativeTextTracks_=function s(){var e=this.el().textTracks;if(e){for(var t=0;t<e.length;t++){this.textTracks().addTrack_(e[t])}if(e.addEventListener){e.addEventListener("change",this.handleTextTrackChange_);e.addEventListener("addtrack",this.handleTextTrackAdd_);e.addEventListener("removetrack",this.handleTextTrackRemove_)}this.on("loadstart",this.removeOldTextTracks_)}};t.prototype.handleTextTrackChange=function u(e){var t=this.textTracks();this.textTracks().trigger({type:"change",target:t,currentTarget:t,srcElement:t})};t.prototype.handleTextTrackAdd=function l(e){this.textTracks().addTrack_(e.track)};t.prototype.handleTextTrackRemove=function f(e){this.textTracks().removeTrack_(e.track)};t.prototype.removeOldTracks_=function h(e,t){var r=[];if(!t){return}for(var n=0;n<e.length;n++){var o=e[n];var i=false;for(var a=0;a<t.length;a++){if(t[a]===o){i=true;break}}if(!i){r.push(o)}}for(var s=0;s<r.length;s++){var u=r[s];e.removeTrack_(u)}};t.prototype.removeOldTextTracks_=function v(e){var t=this.textTracks();var r=this.el().textTracks;this.removeOldTracks_(t,r)};t.prototype.play=function g(){var e=this.el_.play();if(e!==undefined&&typeof e.then==="function"){e.then(null,function(e){})}};t.prototype.setCurrentTime=function m(e){try{this.el_.currentTime=e}catch(t){(0,y["default"])(t,"Video is not ready. (Video.js)")}};t.prototype.duration=function T(){var e=this;if(this.el_.duration===Infinity&&b.IS_ANDROID&&b.IS_CHROME){if(this.el_.currentTime===0){var t=function(){var t=function r(){if(e.el_.currentTime>0){if(e.el_.duration===Infinity){e.trigger("durationchange")}e.off("timeupdate",r)}};e.on("timeupdate",t);return{v:NaN}}();if((typeof t==="undefined"?"undefined":n(t))==="object")return t.v}}return this.el_.duration||NaN};t.prototype.width=function E(){return this.el_.offsetWidth};t.prototype.height=function O(){return this.el_.offsetHeight};t.prototype.proxyWebkitFullscreen_=function j(){var e=this;if(!("webkitDisplayingFullscreen"in this.el_)){return}var t=function n(){this.trigger("fullscreenchange",{isFullscreen:false})};var r=function o(){this.one("webkitendfullscreen",t);this.trigger("fullscreenchange",{isFullscreen:true})};this.on("webkitbeginfullscreen",r);this.on("dispose",function(){e.off("webkitbeginfullscreen",r);e.off("webkitendfullscreen",t)})};t.prototype.supportsFullScreen=function P(){if(typeof this.el_.webkitEnterFullScreen==="function"){var e=C["default"].navigator&&C["default"].navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e)){return true}}return false};t.prototype.enterFullScreen=function M(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA){this.el_.play();this.setTimeout(function(){e.pause();e.webkitEnterFullScreen()},0)}else{e.webkitEnterFullScreen()}};t.prototype.exitFullScreen=function A(){this.el_.webkitExitFullScreen()};t.prototype.src=function D(e){if(e===undefined){return this.el_.src}this.setSrc(e)};t.prototype.reset=function L(){t.resetMediaElement(this.el_)};t.prototype.currentSrc=function F(){if(this.currentSource_){return this.currentSource_.src}return this.el_.currentSrc};t.prototype.setControls=function B(e){this.el_.controls=!!e};t.prototype.addTextTrack=function H(t,r,n){if(!this.featuresNativeTextTracks){return e.prototype.addTextTrack.call(this,t,r,n)}return this.el_.addTextTrack(t,r,n)};t.prototype.createRemoteTextTrack=function V(t){if(!this.featuresNativeTextTracks){return e.prototype.createRemoteTextTrack.call(this,t)}var r=w["default"].createElement("track");if(t.kind){r.kind=t.kind}if(t.label){r.label=t.label}if(t.language||t.srclang){r.srclang=t.language||t.srclang}if(t["default"]){r["default"]=t["default"]}if(t.id){r.id=t.id}if(t.src){r.src=t.src}return r};t.prototype.addRemoteTextTrack=function U(t,r){var n=e.prototype.addRemoteTextTrack.call(this,t,r);if(this.featuresNativeTextTracks){this.el().appendChild(n)}return n};t.prototype.removeRemoteTextTrack=function W(t){e.prototype.removeRemoteTextTrack.call(this,t);if(this.featuresNativeTextTracks){var r=this.$$("track");var n=r.length;while(n--){if(t===r[n]||t===r[n].track){this.el().removeChild(r[n])}}}};return t}(a["default"]);if(c.isReal()){D.TEST_VID=w["default"].createElement("video");var L=w["default"].createElement("track");L.kind="captions";L.srclang="en";L.label="English";D.TEST_VID.appendChild(L)}D.isSupported=function(){try{D.TEST_VID.volume=.5}catch(e){return false}return!!(D.TEST_VID&&D.TEST_VID.canPlayType)};D.canControlVolume=function(){try{var e=D.TEST_VID.volume;D.TEST_VID.volume=e/2+.1;return e!==D.TEST_VID.volume}catch(t){return false}};D.canControlPlaybackRate=function(){if(b.IS_ANDROID&&b.IS_CHROME){return false}try{var e=D.TEST_VID.playbackRate;D.TEST_VID.playbackRate=e/2+.1;return e!==D.TEST_VID.playbackRate}catch(t){return false}};D.supportsNativeTextTracks=function(){return b.IS_ANY_SAFARI};D.supportsNativeVideoTracks=function(){return!!(D.TEST_VID&&D.TEST_VID.videoTracks)};D.supportsNativeAudioTracks=function(){return!!(D.TEST_VID&&D.TEST_VID.audioTracks)};D.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"];D.prototype.featuresVolumeControl=D.canControlVolume();D.prototype.featuresPlaybackRate=D.canControlPlaybackRate();D.prototype.movingMediaElementInDOM=!b.IS_IOS;D.prototype.featuresFullscreenResize=true;D.prototype.featuresProgressEvents=true;D.prototype.featuresTimeupdateEvents=true;D.prototype.featuresNativeTextTracks=D.supportsNativeTextTracks();D.prototype.featuresNativeVideoTracks=D.supportsNativeVideoTracks();D.prototype.featuresNativeAudioTracks=D.supportsNativeAudioTracks();var F=D.TEST_VID&&D.TEST_VID.constructor.prototype.canPlayType;var B=/^application\/(?:x-|vnd\.apple\.)mpegurl/i;var H=/^video\/mp4/i;D.patchCanPlayType=function(){if(b.ANDROID_VERSION>=4&&!b.IS_FIREFOX){D.TEST_VID.constructor.prototype.canPlayType=function(e){if(e&&B.test(e)){return"maybe"}return F.call(this,e)}}else if(b.IS_OLD_ANDROID){D.TEST_VID.constructor.prototype.canPlayType=function(e){if(e&&H.test(e)){return"maybe"}return F.call(this,e)}}};D.unpatchCanPlayType=function(){var e=D.TEST_VID.constructor.prototype.canPlayType;D.TEST_VID.constructor.prototype.canPlayType=F;return e};D.patchCanPlayType();D.disposeMediaElement=function(e){if(!e){return}if(e.parentNode){e.parentNode.removeChild(e)}while(e.hasChildNodes()){e.removeChild(e.firstChild)}e.removeAttribute("src");if(typeof e.load==="function"){(function(){try{e.load()}catch(t){}})()}};D.resetMediaElement=function(e){if(!e){return}var t=e.querySelectorAll("source");var r=t.length;while(r--){e.removeChild(t[r])}e.removeAttribute("src");if(typeof e.load==="function"){(function(){try{e.load()}catch(t){}})()}};["paused","currentTime","buffered","volume","muted","poster","preload","autoplay","controls","loop","error","seeking","seekable","ended","defaultMuted","playbackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(e){D.prototype[e]=function(){return this.el_[e]}});["volume","muted","src","poster","preload","autoplay","loop","playbackRate"].forEach(function(e){D.prototype["set"+(0, x["default"])(e)]=function(t){this.el_[e]=t}});["pause","load"].forEach(function(e){D.prototype[e]=function(){return this.el_[e]()}});a["default"].withSourceHandlers(D);D.nativeSourceHandler={};D.nativeSourceHandler.canPlayType=function(e){try{return D.TEST_VID.canPlayType(e)}catch(t){return""}};D.nativeSourceHandler.canHandleSource=function(e,t){if(e.type){return D.nativeSourceHandler.canPlayType(e.type)}else if(e.src){var r=p.getFileExtension(e.src);return D.nativeSourceHandler.canPlayType("video/"+r)}return""};D.nativeSourceHandler.handleSource=function(e,t,r){t.setSrc(e.src)};D.nativeSourceHandler.dispose=function(){};D.registerSourceHandler(D.nativeSourceHandler);u["default"].registerComponent("Html5",D);a["default"].registerTech("Html5",D);r["default"]=D},{5:5,62:62,78:78,81:81,83:83,86:86,87:87,88:88,91:91,92:92,94:94,95:95,98:98}],61:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=l(n);var i=e(62);var a=l(i);var s=e(91);var u=l(s);function l(e){return e&&e.__esModule?e:{"default":e}}function c(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function f(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function p(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var h=function(e){p(t,e);function t(r,n,i){c(this,t);var s=f(this,e.call(this,r,n,i));if(!n.playerOptions.sources||n.playerOptions.sources.length===0){for(var l=0,p=n.playerOptions.techOrder;l<p.length;l++){var h=(0,u["default"])(p[l]);var d=a["default"].getTech(h);if(!h){d=o["default"].getComponent(h)}if(d&&d.isSupported()){r.loadTech_(h);break}}}else{r.src(n.playerOptions.sources)}return s}return t}(o["default"]);o["default"].registerComponent("MediaLoader",h);r["default"]=h},{5:5,62:62,91:91}],62:[function(e,t,r){"use strict";r.__esModule=true;var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var o=e(5);var i=R(o);var a=e(66);var s=R(a);var u=e(65);var l=R(u);var c=e(87);var f=R(c);var p=e(72);var h=R(p);var d=e(70);var v=R(d);var y=e(76);var g=R(y);var _=e(63);var m=R(_);var b=e(83);var T=I(b);var w=e(86);var E=R(w);var C=e(90);var k=e(79);var O=e(46);var S=R(O);var j=e(95);var x=R(j);var P=e(94);var M=R(P);var A=e(88);function I(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function R(e){return e&&e.__esModule?e:{"default":e}}function N(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function D(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function L(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}function F(e,t,r,n){var o=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{};var i=e.textTracks();o.kind=t;if(r){o.label=r}if(n){o.language=n}o.tech=e;var a=new h["default"](o);i.addTrack_(a);return a}var B=function(t){L(r,t);function r(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:function(){};N(this,r);e.reportTouchActivity=false;var o=D(this,t.call(this,null,e,n));o.hasStarted_=false;o.on("playing",function(){this.hasStarted_=true});o.on("loadstart",function(){this.hasStarted_=false});o.textTracks_=e.textTracks;o.videoTracks_=e.videoTracks;o.audioTracks_=e.audioTracks;if(!o.featuresProgressEvents){o.manualProgressOn()}if(!o.featuresTimeupdateEvents){o.manualTimeUpdatesOn()}["Text","Audio","Video"].forEach(function(t){if(e["native"+t+"Tracks"]===false){o["featuresNative"+t+"Tracks"]=false}});if(e.nativeCaptions===false){o.featuresNativeTextTracks=false}if(!o.featuresNativeTextTracks){o.emulateTextTracks()}o.autoRemoteTextTracks_=new v["default"];o.initTextTrackListeners();o.initTrackListeners();if(!e.nativeControlsForTouch){o.emitTapEvents()}if(o.constructor){o.name_=o.constructor.name||"Unknown Tech"}return o}r.prototype.manualProgressOn=function o(){this.on("durationchange",this.onDurationChange);this.manualProgress=true;this.one("ready",this.trackProgress)};r.prototype.manualProgressOff=function i(){this.manualProgress=false;this.stopTrackingProgress();this.off("durationchange",this.onDurationChange)};r.prototype.trackProgress=function a(e){this.stopTrackingProgress();this.progressInterval=this.setInterval(T.bind(this,function(){var e=this.bufferedPercent();if(this.bufferedPercent_!==e){this.trigger("progress")}this.bufferedPercent_=e;if(e===1){this.stopTrackingProgress()}}),500)};r.prototype.onDurationChange=function u(e){this.duration_=this.duration()};r.prototype.buffered=function c(){return(0,C.createTimeRange)(0,0)};r.prototype.bufferedPercent=function p(){return(0,k.bufferedPercent)(this.buffered(),this.duration_)};r.prototype.stopTrackingProgress=function h(){this.clearInterval(this.progressInterval)};r.prototype.manualTimeUpdatesOn=function d(){this.manualTimeUpdates=true;this.on("play",this.trackCurrentTime);this.on("pause",this.stopTrackingCurrentTime)};r.prototype.manualTimeUpdatesOff=function y(){this.manualTimeUpdates=false;this.stopTrackingCurrentTime();this.off("play",this.trackCurrentTime);this.off("pause",this.stopTrackingCurrentTime)};r.prototype.trackCurrentTime=function _(){if(this.currentTimeInterval){this.stopTrackingCurrentTime()}this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:true})},250)};r.prototype.stopTrackingCurrentTime=function b(){this.clearInterval(this.currentTimeInterval);this.trigger({type:"timeupdate",target:this,manuallyTriggered:true})};r.prototype.dispose=function w(){this.clearTracks(["audio","video","text"]);if(this.manualProgress){this.manualProgressOff()}if(this.manualTimeUpdates){this.manualTimeUpdatesOff()}t.prototype.dispose.call(this)};r.prototype.clearTracks=function O(e){var t=this;e=[].concat(e);e.forEach(function(e){var r=t[e+"Tracks"]()||[];var n=r.length;while(n--){var o=r[n];if(e==="text"){t.removeRemoteTextTrack(o)}r.removeTrack_(o)}})};r.prototype.cleanupAutoTextTracks=function j(){var e=this.autoRemoteTextTracks_||[];var t=e.length;while(t--){var r=e[t];this.removeRemoteTextTrack(r)}};r.prototype.reset=function P(){};r.prototype.error=function I(e){if(e!==undefined){this.error_=new S["default"](e);this.trigger("error")}return this.error_};r.prototype.played=function R(){if(this.hasStarted_){return(0,C.createTimeRange)(0,0)}return(0,C.createTimeRange)()};r.prototype.setCurrentTime=function B(){if(this.manualTimeUpdates){this.trigger({type:"timeupdate",target:this,manuallyTriggered:true})}};r.prototype.initTextTrackListeners=function H(){var e=T.bind(this,function(){this.trigger("texttrackchange")});var t=this.textTracks();if(!t){return}t.addEventListener("removetrack",e);t.addEventListener("addtrack",e);this.on("dispose",T.bind(this,function(){t.removeEventListener("removetrack",e);t.removeEventListener("addtrack",e)}))};r.prototype.initTrackListeners=function V(){var e=this;var t=["video","audio"];t.forEach(function(t){var r=function o(){e.trigger(t+"trackchange")};var n=e[t+"Tracks"]();n.addEventListener("removetrack",r);n.addEventListener("addtrack",r);e.on("dispose",function(){n.removeEventListener("removetrack",r);n.removeEventListener("addtrack",r)})})};r.prototype.addWebVttScript_=function U(){var t=this;if(!x["default"].WebVTT&&this.el().parentNode!==null&&this.el().parentNode!==undefined){var r=function(){var r=e(99);if(!t.options_["vtt.js"]&&(0,A.isPlain)(r)&&Object.keys(r).length>0){Object.keys(r).forEach(function(e){x["default"][e]=r[e]});t.trigger("vttjsloaded");return{v:void 0}}var n=M["default"].createElement("script");n.src=t.options_["vtt.js"]||"https://cdn.rawgit.com/gkatsev/vtt.js/vjs-v0.12.1/dist/vtt.min.js";n.onload=function(){t.trigger("vttjsloaded")};n.onerror=function(){t.trigger("vttjserror")};t.on("dispose",function(){n.onload=null;n.onerror=null});x["default"].WebVTT=true;t.el().parentNode.appendChild(n)}();if((typeof r==="undefined"?"undefined":n(r))==="object")return r.v}};r.prototype.emulateTextTracks=function W(){var e=this;var t=this.textTracks();if(!t){return}this.remoteTextTracks().on("addtrack",function(t){e.textTracks().addTrack_(t.track)});this.remoteTextTracks().on("removetrack",function(t){e.textTracks().removeTrack_(t.track)});this.on("ready",this.addWebVttScript_);var r=function o(){return e.trigger("texttrackchange")};var n=function i(){r();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",r);if(n.mode==="showing"){n.addEventListener("cuechange",r)}}};n();t.addEventListener("change",n);this.on("dispose",function(){t.removeEventListener("change",n)})};r.prototype.videoTracks=function z(){this.videoTracks_=this.videoTracks_||new g["default"];return this.videoTracks_};r.prototype.audioTracks=function X(){this.audioTracks_=this.audioTracks_||new m["default"];return this.audioTracks_};r.prototype.textTracks=function q(){this.textTracks_=this.textTracks_||new v["default"];return this.textTracks_};r.prototype.remoteTextTracks=function $(){this.remoteTextTracks_=this.remoteTextTracks_||new v["default"];return this.remoteTextTracks_};r.prototype.remoteTextTrackEls=function G(){this.remoteTextTrackEls_=this.remoteTextTrackEls_||new l["default"];return this.remoteTextTrackEls_};r.prototype.addTextTrack=function K(e,t,r){if(!e){throw new Error("TextTrack kind is required but was not provided")}return F(this,e,t,r)};r.prototype.createRemoteTextTrack=function Y(e){var t=(0,f["default"])(e,{tech:this});return new s["default"](t)};r.prototype.addRemoteTextTrack=function J(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=arguments[1];var r=this.createRemoteTextTrack(e);if(t!==true&&t!==false){E["default"].warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js');t=true}this.remoteTextTrackEls().addTrackElement_(r);this.remoteTextTracks().addTrack_(r.track);if(t!==true){this.autoRemoteTextTracks_.addTrack_(r.track)}return r};r.prototype.removeRemoteTextTrack=function Q(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t);this.remoteTextTracks().removeTrack_(e);this.autoRemoteTextTracks_.removeTrack_(e)};r.prototype.setPoster=function Z(){};r.prototype.canPlayType=function ee(){return""};r.isTech=function te(e){return e.prototype instanceof r||e instanceof r||e===r};r.registerTech=function re(e,t){if(!r.techs_){r.techs_={}}if(!r.isTech(t)){throw new Error("Tech "+e+" must be a Tech")}r.techs_[e]=t;return t};r.getTech=function ne(e){if(r.techs_&&r.techs_[e]){return r.techs_[e]}if(x["default"]&&x["default"].videojs&&x["default"].videojs[e]){E["default"].warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)");return x["default"].videojs[e]}};return r}(i["default"]);B.prototype.textTracks_;B.prototype.audioTracks_;B.prototype.videoTracks_;B.prototype.featuresVolumeControl=true;B.prototype.featuresFullscreenResize=false;B.prototype.featuresPlaybackRate=false;B.prototype.featuresProgressEvents=false;B.prototype.featuresTimeupdateEvents=false;B.prototype.featuresNativeTextTracks=false;B.withSourceHandlers=function(e){e.registerSourceHandler=function(t,r){var n=e.sourceHandlers;if(!n){n=e.sourceHandlers=[]}if(r===undefined){r=n.length}n.splice(r,0,t)};e.canPlayType=function(t){var r=e.sourceHandlers||[];var n=void 0;for(var o=0;o<r.length;o++){n=r[o].canPlayType(t);if(n){return n}}return""};e.selectSourceHandler=function(t,r){var n=e.sourceHandlers||[];var o=void 0;for(var i=0;i<n.length;i++){o=n[i].canHandleSource(t,r);if(o){return n[i]}}return null};e.canPlaySource=function(t,r){var n=e.selectSourceHandler(t,r);if(n){return n.canHandleSource(t,r)}return""};var t=["seekable","duration"];t.forEach(function(e){var t=this[e];if(typeof t!=="function"){return}this[e]=function(){if(this.sourceHandler_&&this.sourceHandler_[e]){return this.sourceHandler_[e].apply(this.sourceHandler_,arguments)}return t.apply(this,arguments)}},e.prototype);e.prototype.setSource=function(t){var r=e.selectSourceHandler(t,this.options_);if(!r){if(e.nativeSourceHandler){r=e.nativeSourceHandler}else{E["default"].error("No source hander found for the current source.")}}this.disposeSourceHandler();this.off("dispose",this.disposeSourceHandler);if(r!==e.nativeSourceHandler){this.currentSource_=t;this.off(this.el_,"loadstart",e.prototype.firstLoadStartListener_);this.off(this.el_,"loadstart",e.prototype.successiveLoadStartListener_);this.one(this.el_,"loadstart",e.prototype.firstLoadStartListener_)}this.sourceHandler_=r.handleSource(t,this,this.options_);this.on("dispose",this.disposeSourceHandler);return this};e.prototype.firstLoadStartListener_=function(){this.one(this.el_,"loadstart",e.prototype.successiveLoadStartListener_)};e.prototype.successiveLoadStartListener_=function(){this.disposeSourceHandler();this.one(this.el_,"loadstart",e.prototype.successiveLoadStartListener_)};e.prototype.disposeSourceHandler=function(){if(this.currentSource_){this.clearTracks(["audio","video"]);this.currentSource_=null}this.cleanupAutoTextTracks();if(this.sourceHandler_){this.off(this.el_,"loadstart",e.prototype.firstLoadStartListener_);this.off(this.el_,"loadstart",e.prototype.successiveLoadStartListener_);if(this.sourceHandler_.dispose){this.sourceHandler_.dispose()}this.sourceHandler_=null}}};i["default"].registerComponent("Tech",B);i["default"].registerComponent("MediaTechController",B);B.registerTech("Tech",B);r["default"]=B},{46:46,5:5,63:63,65:65,66:66,70:70,72:72,76:76,79:79,83:83,86:86,87:87,88:88,90:90,94:94,95:95,99:99}],63:[function(e,t,r){"use strict";r.__esModule=true;var n=e(74);var o=c(n);var i=e(78);var a=l(i);var s=e(94);var u=c(s);function l(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function c(e){return e&&e.__esModule?e:{"default":e}}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function p(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function h(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var d=function y(e,t){for(var r=0;r<e.length;r++){if(t.id===e[r].id){continue}e[r].enabled=false}};var v=function(e){h(t,e);function t(){var r,n;var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];f(this,t);var s=void 0;for(var l=i.length-1;l>=0;l--){if(i[l].enabled){d(i,i[l]);break}}if(a.IS_IE8){s=u["default"].createElement("custom");for(var c in o["default"].prototype){if(c!=="constructor"){s[c]=o["default"].prototype[c]}}for(var h in t.prototype){if(h!=="constructor"){s[h]=t.prototype[h]}}}s=(r=p(this,e.call(this,i,s)),r);s.changing_=false;return n=s,p(r,n)}t.prototype.addTrack_=function r(t){var r=this;if(t.enabled){d(this,t)}e.prototype.addTrack_.call(this,t);if(!t.addEventListener){return}t.addEventListener("enabledchange",function(){if(r.changing_){return}r.changing_=true;d(r,t);r.changing_=false;r.trigger("change")})};t.prototype.addTrack=function n(e){this.addTrack_(e)};t.prototype.removeTrack=function i(t){e.prototype.removeTrack_.call(this,t)};return t}(o["default"]);r["default"]=v},{74:74,78:78,94:94}],64:[function(e,t,r){"use strict";r.__esModule=true;var n=e(73);var o=e(75);var i=f(o);var a=e(87);var s=f(a);var u=e(78);var l=c(u);function c(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function f(e){return e&&e.__esModule?e:{"default":e}}function p(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function h(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function d(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var v=function(e){d(t,e);function t(){var r,o;var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};p(this,t);var a=(0,s["default"])(i,{kind:n.AudioTrackKind[i.kind]||""});var u=(r=h(this,e.call(this,a)),r);var c=false;if(l.IS_IE8){for(var f in t.prototype){if(f!=="constructor"){u[f]=t.prototype[f]}}}Object.defineProperty(u,"enabled",{get:function d(){return c},set:function v(e){if(typeof e!=="boolean"||e===c){return}c=e;this.trigger("enabledchange")}});if(a.enabled){u.enabled=a.enabled}u.loaded_=true;return o=u,h(r,o)}return t}(i["default"]);r["default"]=v},{73:73,75:75,78:78,87:87}],65:[function(e,t,r){"use strict";r.__esModule=true;var n=e(78);var o=u(n);var i=e(94);var a=s(i);function s(e){return e&&e.__esModule?e:{"default":e}}function u(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function l(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var c=function(){function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];l(this,e);var r=this;if(o.IS_IE8){r=a["default"].createElement("custom");for(var n in e.prototype){if(n!=="constructor"){r[n]=e.prototype[n]}}}r.trackElements_=[];Object.defineProperty(r,"length",{get:function u(){return this.trackElements_.length}});for(var i=0,s=t.length;i<s;i++){r.addTrackElement_(t[i])}if(o.IS_IE8){return r}}e.prototype.addTrackElement_=function t(e){var t=this.trackElements_.length;if(!(""+t in this)){Object.defineProperty(this,t,{get:function r(){return this.trackElements_[t]}})}if(this.trackElements_.indexOf(e)===-1){this.trackElements_.push(e)}};e.prototype.getTrackElementByTrack_=function r(e){var t=void 0;for(var r=0,n=this.trackElements_.length;r<n;r++){if(e===this.trackElements_[r].track){t=this.trackElements_[r];break}}return t};e.prototype.removeTrackElement_=function n(e){for(var t=0,r=this.trackElements_.length;t<r;t++){if(e===this.trackElements_[t]){this.trackElements_.splice(t,1);break}}};return e}();r["default"]=c},{78:78,94:94}],66:[function(e,t,r){"use strict";r.__esModule=true;var n=e(78);var o=p(n);var i=e(94);var a=f(i);var s=e(42);var u=f(s);var l=e(72);var c=f(l);function f(e){return e&&e.__esModule?e:{"default":e}}function p(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function h(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function d(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function v(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var y=0;var g=1;var _=2;var m=3;var b=function(e){v(t,e);function t(){var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};h(this,t);var n=d(this,e.call(this));var i=void 0;var s=n;if(o.IS_IE8){s=a["default"].createElement("custom");for(var u in t.prototype){if(u!=="constructor"){s[u]=t.prototype[u]}}}var l=new c["default"](r);s.kind=l.kind;s.src=l.src;s.srclang=l.language;s.label=l.label;s["default"]=l["default"];Object.defineProperty(s,"readyState",{get:function p(){return i}});Object.defineProperty(s,"track",{get:function v(){return l}});i=y;l.addEventListener("loadeddata",function(){i=_;s.trigger({type:"load",target:s})});if(o.IS_IE8){var f;return f=s,d(n,f)}return n}return t}(u["default"]);b.prototype.allowedEvents_={load:"load"};b.NONE=y;b.LOADING=g;b.LOADED=_;b.ERROR=m;r["default"]=b},{42:42,72:72,78:78,94:94}],67:[function(e,t,r){"use strict";r.__esModule=true;var n=e(78);var o=u(n);var i=e(94);var a=s(i);function s(e){return e&&e.__esModule?e:{"default":e}}function u(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function l(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var c=function(){function e(t){l(this,e);var r=this;if(o.IS_IE8){r=a["default"].createElement("custom");for(var n in e.prototype){if(n!=="constructor"){r[n]=e.prototype[n]}}}e.prototype.setCues_.call(r,t);Object.defineProperty(r,"length",{get:function i(){return this.length_}});if(o.IS_IE8){return r}}e.prototype.setCues_=function t(e){var t=this.length||0;var r=0;var n=e.length;this.cues_=e;this.length_=e.length;var o=function i(e){if(!(""+e in this)){Object.defineProperty(this,""+e,{get:function t(){return this.cues_[e]}})}};if(t<n){r=t;for(;r<n;r++){o.call(this,r)}}};e.prototype.getCueById=function r(e){var t=null;for(var r=0,n=this.length;r<n;r++){var o=this[r];if(o.id===e){t=o;break}}return t};return e}();r["default"]=c},{78:78,94:94}],68:[function(e,t,r){"use strict";r.__esModule=true;var n=e(5);var o=c(n);var i=e(83);var a=l(i);var s=e(95);var u=c(s);function l(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function c(e){return e&&e.__esModule?e:{"default":e}}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function p(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function h(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var d="#222";var v="#ccc";var y={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function g(e,t){return"rgba("+parseInt(e[1]+e[1],16)+","+parseInt(e[2]+e[2],16)+","+parseInt(e[3]+e[3],16)+","+t+")"}function _(e,t,r){try{e.style[t]=r}catch(n){return}}var m=function(e){h(t,e);function t(r,n,o){f(this,t);var i=p(this,e.call(this,r,n,o));r.on("loadstart",a.bind(i,i.toggleDisplay));r.on("texttrackchange",a.bind(i,i.updateDisplay));r.ready(a.bind(i,function(){if(r.tech_&&r.tech_.featuresNativeTextTracks){this.hide();return}r.on("fullscreenchange",a.bind(this,this.updateDisplay));var e=this.options_.playerOptions.tracks||[];for(var t=0;t<e.length;t++){this.player_.addRemoteTextTrack(e[t],true)}var n={captions:1,subtitles:1};var o=this.player_.textTracks();var i=void 0;var s=void 0;if(o){for(var u=0;u<o.length;u++){var l=o[u];if(l["default"]){if(l.kind==="descriptions"&&!i){i=l}else if(l.kind in n&&!s){s=l}}}if(s){s.mode="showing"}else if(i){i.mode="showing"}}}));return i}t.prototype.toggleDisplay=function r(){if(this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks){this.hide()}else{this.show()}};t.prototype.createEl=function n(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})};t.prototype.clearDisplay=function o(){if(typeof u["default"].WebVTT==="function"){u["default"].WebVTT.processCues(u["default"],[],this.el_)}};t.prototype.updateDisplay=function i(){var e=this.player_.textTracks();this.clearDisplay();if(!e){return}var t=null;var r=null;var n=e.length;while(n--){var o=e[n];if(o.mode==="showing"){if(o.kind==="descriptions"){t=o}else{r=o}}}if(r){if(this.getAttribute("aria-live")!=="off"){this.setAttribute("aria-live","off")}this.updateForTrack(r)}else if(t){if(this.getAttribute("aria-live")!=="assertive"){this.setAttribute("aria-live","assertive")}this.updateForTrack(t)}};t.prototype.updateForTrack=function s(e){if(typeof u["default"].WebVTT!=="function"||!e.activeCues){return}var t=this.player_.textTrackSettings.getValues();var r=[];for(var n=0;n<e.activeCues.length;n++){r.push(e.activeCues[n])}u["default"].WebVTT.processCues(u["default"],r,this.el_);var o=r.length;while(o--){var i=r[o];if(!i){continue}var a=i.displayState;if(t.color){a.firstChild.style.color=t.color}if(t.textOpacity){_(a.firstChild,"color",g(t.color||"#fff",t.textOpacity))}if(t.backgroundColor){a.firstChild.style.backgroundColor=t.backgroundColor}if(t.backgroundOpacity){_(a.firstChild,"backgroundColor",g(t.backgroundColor||"#000",t.backgroundOpacity))}if(t.windowColor){if(t.windowOpacity){_(a,"backgroundColor",g(t.windowColor,t.windowOpacity))}else{a.style.backgroundColor=t.windowColor}}if(t.edgeStyle){if(t.edgeStyle==="dropshadow"){a.firstChild.style.textShadow="2px 2px 3px "+d+", 2px 2px 4px "+d+", 2px 2px 5px "+d}else if(t.edgeStyle==="raised"){a.firstChild.style.textShadow="1px 1px "+d+", 2px 2px "+d+", 3px 3px "+d}else if(t.edgeStyle==="depressed"){a.firstChild.style.textShadow="1px 1px "+v+", 0 1px "+v+", -1px -1px "+d+", 0 -1px "+d}else if(t.edgeStyle==="uniform"){a.firstChild.style.textShadow="0 0 4px "+d+", 0 0 4px "+d+", 0 0 4px "+d+", 0 0 4px "+d}}if(t.fontPercent&&t.fontPercent!==1){var s=u["default"].parseFloat(a.style.fontSize);a.style.fontSize=s*t.fontPercent+"px";a.style.height="auto";a.style.top="auto";a.style.bottom="2px"}if(t.fontFamily&&t.fontFamily!=="default"){if(t.fontFamily==="small-caps"){a.firstChild.style.fontVariant="small-caps"}else{a.firstChild.style.fontFamily=y[t.fontFamily]}}}};return t}(o["default"]);o["default"].registerComponent("TextTrackDisplay",m);r["default"]=m},{5:5,83:83,95:95}],69:[function(e,t,r){"use strict";r.__esModule=true;var n=function a(e){var t=["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,r,n){if(e[r]){t[r]=e[r]}return t},{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})});return t};var o=function s(e){var t=e.$$("track");var r=Array.prototype.map.call(t,function(e){return e.track});var o=Array.prototype.map.call(t,function(e){var t=n(e.track);if(e.src){t.src=e.src}return t});return o.concat(Array.prototype.filter.call(e.textTracks(),function(e){return r.indexOf(e)===-1}).map(n))};var i=function u(e,t){e.forEach(function(e){var r=t.addRemoteTextTrack(e).track;if(!e.src&&e.cues){e.cues.forEach(function(e){return r.addCue(e)})}});return t.textTracks()};r["default"]={textTracksToJson:o,jsonToTextTracks:i,trackToJson_:n}},{}],70:[function(e,t,r){"use strict";r.__esModule=true;var n=e(74);var o=p(n);var i=e(83);var a=f(i);var s=e(78);var u=f(s);var l=e(94);var c=p(l);function f(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function p(e){return e&&e.__esModule?e:{"default":e}}function h(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function d(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function v(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var y=function(e){v(t,e);function t(){var r,n;var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];h(this,t);var a=void 0;if(u.IS_IE8){a=c["default"].createElement("custom");for(var s in o["default"].prototype){if(s!=="constructor"){a[s]=o["default"].prototype[s]}}for(var l in t.prototype){if(l!=="constructor"){a[l]=t.prototype[l]}}}a=(r=d(this,e.call(this,i,a)),r);return n=a,d(r,n)}t.prototype.addTrack_=function r(t){e.prototype.addTrack_.call(this,t);t.addEventListener("modechange",a.bind(this,function(){this.trigger("change")}))};return t}(o["default"]);r["default"]=y},{74:74,78:78,83:83,94:94}],71:[function(e,t,r){"use strict";r.__esModule=true;var n=e(95);var o=v(n);var i=e(5);var a=v(i);var s=e(81);var u=e(83);var l=d(u);var c=e(88);var f=d(c);var p=e(86);var h=v(p);function d(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function v(e){return e&&e.__esModule?e:{"default":e}}function y(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function g(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function _(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var m="vjs-text-track-settings";var b=["#000","Black"];var T=["#00F","Blue"];var w=["#0FF","Cyan"];var E=["#0F0","Green"];var C=["#F0F","Magenta"];var k=["#F00","Red"];var O=["#FFF","White"];var S=["#FF0","Yellow"];var j=["1","Opaque"];var x=["0.5","Semi-Transparent"];var P=["0","Transparent"];var M={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[b,O,k,E,T,S,C,w]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[j,x,P]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[O,b,k,E,T,S,C,w]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]] },fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],"default":2,parser:function D(e){return e==="1.00"?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[j,x]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[P,x,j]}};M.windowColor.options=M.backgroundColor.options;function A(e,t){if(t){e=t(e)}if(e&&e!=="none"){return e}}function I(e,t){var r=e.options[e.options.selectedIndex].value;return A(r,t)}function R(e,t,r){if(!t){return}for(var n=0;n<e.options.length;n++){if(A(e.options[n].value,r)===t){e.selectedIndex=n;break}}}var N=function(e){_(t,e);function t(r,n){y(this,t);var o=g(this,e.call(this,r,n));o.setDefaults();o.hide();o.updateDisplay=l.bind(o,o.updateDisplay);if(n.persistTextTrackSettings===undefined){o.options_.persistTextTrackSettings=o.options_.playerOptions.persistTextTrackSettings}o.on(o.$(".vjs-done-button"),"click",function(){o.saveSettings();o.hide()});o.on(o.$(".vjs-default-button"),"click",function(){o.setDefaults();o.updateDisplay()});f.each(M,function(e){o.on(o.$(e.selector),"change",o.updateDisplay)});if(o.options_.persistTextTrackSettings){o.restoreSettings()}return o}t.prototype.createElSelect_=function r(e){var t=this;var r=M[e];var n=r.id.replace("%s",this.id_);return[(0,s.createEl)("label",{className:"vjs-label",textContent:r.label},{"for":n}),(0,s.createEl)("select",{id:n},undefined,r.options.map(function(e){return(0,s.createEl)("option",{textContent:t.localize(e[1]),value:e[0]})}))]};t.prototype.createElFgColor_=function n(){var e=(0,s.createEl)("legend",{textContent:this.localize("Text")});var t=this.createElSelect_("color");var r=(0,s.createEl)("span",{className:"vjs-text-opacity vjs-opacity"},undefined,this.createElSelect_("textOpacity"));return(0,s.createEl)("fieldset",{className:"vjs-fg-color vjs-tracksetting"},undefined,[e].concat(t,r))};t.prototype.createElBgColor_=function i(){var e=(0,s.createEl)("legend",{textContent:this.localize("Background")});var t=this.createElSelect_("backgroundColor");var r=(0,s.createEl)("span",{className:"vjs-bg-opacity vjs-opacity"},undefined,this.createElSelect_("backgroundOpacity"));return(0,s.createEl)("fieldset",{className:"vjs-bg-color vjs-tracksetting"},undefined,[e].concat(t,r))};t.prototype.createElWinColor_=function a(){var e=(0,s.createEl)("legend",{textContent:this.localize("Window")});var t=this.createElSelect_("windowColor");var r=(0,s.createEl)("span",{className:"vjs-window-opacity vjs-opacity"},undefined,this.createElSelect_("windowOpacity"));return(0,s.createEl)("fieldset",{className:"vjs-window-color vjs-tracksetting"},undefined,[e].concat(t,r))};t.prototype.createElColors_=function u(){return(0,s.createEl)("div",{className:"vjs-tracksettings-colors"},undefined,[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()])};t.prototype.createElFont_=function c(){var e=(0,s.createEl)("div",{className:"vjs-font-percent vjs-tracksetting"},undefined,this.createElSelect_("fontPercent"));var t=(0,s.createEl)("div",{className:"vjs-edge-style vjs-tracksetting"},undefined,this.createElSelect_("edgeStyle"));var r=(0,s.createEl)("div",{className:"vjs-font-family vjs-tracksetting"},undefined,this.createElSelect_("fontFamily"));return(0,s.createEl)("div",{className:"vjs-tracksettings-font"},undefined,[e,t,r])};t.prototype.createElControls_=function p(){var e=(0,s.createEl)("button",{className:"vjs-default-button",textContent:this.localize("Defaults")});var t=(0,s.createEl)("button",{className:"vjs-done-button",textContent:"Done"});return(0,s.createEl)("div",{className:"vjs-tracksettings-controls"},undefined,[e,t])};t.prototype.createEl=function d(){var e=(0,s.createEl)("div",{className:"vjs-tracksettings"},undefined,[this.createElColors_(),this.createElFont_(),this.createElControls_()]);var t=(0,s.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.id_,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"});var r=(0,s.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.id_,textContent:"Beginning of dialog window. Escape will cancel and close the window."});var n=(0,s.createEl)("div",undefined,{role:"document"},[t,r,e]);return(0,s.createEl)("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":t.id,"aria-describedby":r.id},n)};t.prototype.getValues=function v(){var e=this;return f.reduce(M,function(t,r,n){var o=I(e.$(r.selector),r.parser);if(o!==undefined){t[n]=o}return t},{})};t.prototype.setValues=function b(e){var t=this;f.each(M,function(r,n){R(t.$(r.selector),e[n],r.parser)})};t.prototype.setDefaults=function T(){var e=this;f.each(M,function(t){var r=t.hasOwnProperty("default")?t["default"]:0;e.$(t.selector).selectedIndex=r})};t.prototype.restoreSettings=function w(){var e=void 0;try{e=JSON.parse(o["default"].localStorage.getItem(m))}catch(t){h["default"].warn(t)}if(e){this.setValues(e)}};t.prototype.saveSettings=function E(){if(!this.options_.persistTextTrackSettings){return}var e=this.getValues();try{if(Object.keys(e).length){o["default"].localStorage.setItem(m,JSON.stringify(e))}else{o["default"].localStorage.removeItem(m)}}catch(t){h["default"].warn(t)}};t.prototype.updateDisplay=function C(){var e=this.player_.getChild("textTrackDisplay");if(e){e.updateDisplay()}};return t}(a["default"]);a["default"].registerComponent("TextTrackSettings",N);r["default"]=N},{5:5,81:81,83:83,86:86,88:88,95:95}],72:[function(e,t,r){"use strict";r.__esModule=true;var n=e(67);var o=w(n);var i=e(83);var a=T(i);var s=e(73);var u=e(86);var l=w(u);var c=e(95);var f=w(c);var p=e(75);var h=w(p);var d=e(92);var v=e(105);var y=w(v);var g=e(87);var _=w(g);var m=e(78);var b=T(m);function T(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function w(e){return e&&e.__esModule?e:{"default":e}}function E(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function C(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function k(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var O=function x(e,t){var r=new f["default"].WebVTT.Parser(f["default"],f["default"].vttjs,f["default"].WebVTT.StringDecoder());var n=[];r.oncue=function(e){t.addCue(e)};r.onparsingerror=function(e){n.push(e)};r.onflush=function(){t.trigger({type:"loadeddata",target:t})};r.parse(e);if(n.length>0){if(f["default"].console&&f["default"].console.groupCollapsed){f["default"].console.groupCollapsed("Text Track parsing errors for "+t.src)}n.forEach(function(e){return l["default"].error(e)});if(f["default"].console&&f["default"].console.groupEnd){f["default"].console.groupEnd()}}r.flush()};var S=function P(e,t){var r={uri:e};var n=(0,d.isCrossOrigin)(e);if(n){r.cors=n}(0,y["default"])(r,a.bind(this,function(e,r,n){if(e){return l["default"].error(e,r)}t.loaded_=true;if(typeof f["default"].WebVTT!=="function"){if(t.tech_){(function(){var e=function r(){return O(n,t)};t.tech_.on("vttjsloaded",e);t.tech_.on("vttjserror",function(){l["default"].error("vttjs failed to load, stopping trying to process "+t.src);t.tech_.off("vttjsloaded",e)})})()}}else{O(n,t)}}))};var j=function(e){k(t,e);function t(){var r,n;var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};E(this,t);if(!i.tech){throw new Error("A tech was not provided.")}var u=(0,_["default"])(i,{kind:s.TextTrackKind[i.kind]||"subtitles",language:i.language||i.srclang||""});var l=s.TextTrackMode[u.mode]||"disabled";var c=u["default"];if(u.kind==="metadata"||u.kind==="chapters"){l="hidden"}var f=(r=C(this,e.call(this,u)),r);f.tech_=u.tech;if(b.IS_IE8){for(var p in t.prototype){if(p!=="constructor"){f[p]=t.prototype[p]}}}f.cues_=[];f.activeCues_=[];var h=new o["default"](f.cues_);var d=new o["default"](f.activeCues_);var v=false;var y=a.bind(f,function(){this.activeCues;if(v){this.trigger("cuechange");v=false}});if(l!=="disabled"){f.tech_.on("timeupdate",y)}Object.defineProperty(f,"default",{get:function g(){return c},set:function m(){}});Object.defineProperty(f,"mode",{get:function T(){return l},set:function w(e){if(!s.TextTrackMode[e]){return}l=e;if(l==="showing"){this.tech_.on("timeupdate",y)}this.trigger("modechange")}});Object.defineProperty(f,"cues",{get:function k(){if(!this.loaded_){return null}return h},set:function O(){}});Object.defineProperty(f,"activeCues",{get:function j(){if(!this.loaded_){return null}if(this.cues.length===0){return d}var e=this.tech_.currentTime();var t=[];for(var r=0,n=this.cues.length;r<n;r++){var o=this.cues[r];if(o.startTime<=e&&o.endTime>=e){t.push(o)}else if(o.startTime===o.endTime&&o.startTime<=e&&o.startTime+.5>=e){t.push(o)}}v=false;if(t.length!==this.activeCues_.length){v=true}else{for(var i=0;i<t.length;i++){if(this.activeCues_.indexOf(t[i])===-1){v=true}}}this.activeCues_=t;d.setCues_(this.activeCues_);return d},set:function x(){}});if(u.src){f.src=u.src;S(u.src,f)}else{f.loaded_=true}return n=f,C(r,n)}t.prototype.addCue=function r(e){var t=this.tech_.textTracks();if(t){for(var r=0;r<t.length;r++){if(t[r]!==this){t[r].removeCue(e)}}}this.cues_.push(e);this.cues.setCues_(this.cues_)};t.prototype.removeCue=function n(e){var t=false;for(var r=0,n=this.cues_.length;r<n;r++){var o=this.cues_[r];if(o===e){this.cues_.splice(r,1);t=true}}if(t){this.cues.setCues_(this.cues_)}};return t}(h["default"]);j.prototype.allowedEvents_={cuechange:"cuechange"};r["default"]=j},{105:105,67:67,73:73,75:75,78:78,83:83,86:86,87:87,92:92,95:95}],73:[function(e,t,r){"use strict";r.__esModule=true;var n=r.VideoTrackKind={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"};var o=r.AudioTrackKind={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"};var i=r.TextTrackKind={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"};var a=r.TextTrackMode={disabled:"disabled",hidden:"hidden",showing:"showing"}},{}],74:[function(e,t,r){"use strict";r.__esModule=true;var n=e(42);var o=c(n);var i=e(78);var a=l(i);var s=e(94);var u=c(s);function l(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function c(e){return e&&e.__esModule?e:{"default":e}}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function p(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function h(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var d=function(e){h(t,e);function t(){var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var n;var o=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;f(this,t);var i=p(this,e.call(this));if(!o){o=i;if(a.IS_IE8){o=u["default"].createElement("custom");for(var s in t.prototype){if(s!=="constructor"){o[s]=t.prototype[s]}}}}o.tracks_=[];Object.defineProperty(o,"length",{get:function c(){return this.tracks_.length}});for(var l=0;l<r.length;l++){o.addTrack_(r[l])}return n=o,p(i,n)}t.prototype.addTrack_=function r(e){var t=this.tracks_.length;if(!(""+t in this)){Object.defineProperty(this,t,{get:function r(){return this.tracks_[t]}})}if(this.tracks_.indexOf(e)===-1){this.tracks_.push(e);this.trigger({track:e,type:"addtrack"})}};t.prototype.removeTrack_=function n(e){var t=void 0;for(var r=0,n=this.length;r<n;r++){if(this[r]===e){t=this[r];if(t.off){t.off()}this.tracks_.splice(r,1);break}}if(!t){return}this.trigger({track:t,type:"removetrack"})};t.prototype.getTrackById=function o(e){var t=null;for(var r=0,n=this.length;r<n;r++){var o=this[r];if(o.id===e){t=o;break}}return t};return t}(o["default"]);d.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(var v in d.prototype.allowedEvents_){d.prototype["on"+v]=null}r["default"]=d},{42:42,78:78,94:94}],75:[function(e,t,r){"use strict";r.__esModule=true;var n=e(78);var o=p(n);var i=e(94);var a=f(i);var s=e(85);var u=p(s);var l=e(42);var c=f(l);function f(e){return e&&e.__esModule?e:{"default":e}}function p(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function h(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function d(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function v(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var y=function(e){v(t,e);function t(){var r;var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};h(this,t);var i=d(this,e.call(this));var s=i;if(o.IS_IE8){s=a["default"].createElement("custom");for(var l in t.prototype){if(l!=="constructor"){s[l]=t.prototype[l]}}}var c={id:n.id||"vjs_track_"+u.newGUID(),kind:n.kind||"",label:n.label||"",language:n.language||""};var f=function v(e){Object.defineProperty(s,e,{get:function t(){return c[e]},set:function r(){}})};for(var p in c){f(p)}return r=s,d(i,r)}return t}(c["default"]);r["default"]=y},{42:42,78:78,85:85,94:94}],76:[function(e,t,r){"use strict";r.__esModule=true;var n=e(74);var o=c(n);var i=e(78);var a=l(i);var s=e(94);var u=c(s);function l(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function c(e){return e&&e.__esModule?e:{"default":e}}function f(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function p(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function h(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var d=function y(e,t){for(var r=0;r<e.length;r++){if(t.id===e[r].id){continue}e[r].selected=false}};var v=function(e){h(t,e);function t(){var r,n;var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];f(this,t);var s=void 0;for(var l=i.length-1;l>=0;l--){if(i[l].selected){d(i,i[l]);break}}if(a.IS_IE8){s=u["default"].createElement("custom");for(var c in o["default"].prototype){if(c!=="constructor"){s[c]=o["default"].prototype[c]}}for(var h in t.prototype){if(h!=="constructor"){s[h]=t.prototype[h]}}}s=(r=p(this,e.call(this,i,s)),r);s.changing_=false;Object.defineProperty(s,"selectedIndex",{get:function v(){for(var e=0;e<this.length;e++){if(this[e].selected){return e}}return-1},set:function y(){}});return n=s,p(r,n)}t.prototype.addTrack_=function r(t){var r=this;if(t.selected){d(this,t)}e.prototype.addTrack_.call(this,t);if(!t.addEventListener){return}t.addEventListener("selectedchange",function(){if(r.changing_){return}r.changing_=true;d(r,t);r.changing_=false;r.trigger("change")})};t.prototype.addTrack=function n(e){this.addTrack_(e)};t.prototype.removeTrack=function i(t){e.prototype.removeTrack_.call(this,t)};return t}(o["default"]);r["default"]=v},{74:74,78:78,94:94}],77:[function(e,t,r){"use strict";r.__esModule=true;var n=e(73);var o=e(75);var i=f(o);var a=e(87);var s=f(a);var u=e(78);var l=c(u);function c(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function f(e){return e&&e.__esModule?e:{"default":e}}function p(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function h(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function d(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var v=function(e){d(t,e);function t(){var r,o;var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};p(this,t);var a=(0,s["default"])(i,{kind:n.VideoTrackKind[i.kind]||""});var u=(r=h(this,e.call(this,a)),r);var c=false;if(l.IS_IE8){for(var f in t.prototype){if(f!=="constructor"){u[f]=t.prototype[f]}}}Object.defineProperty(u,"selected",{get:function d(){return c},set:function v(e){if(typeof e!=="boolean"||e===c){return}c=e;this.trigger("selectedchange")}});if(a.selected){u.selected=a.selected}return o=u,h(r,o)}return t}(i["default"]);r["default"]=v},{73:73,75:75,78:78,87:87}],78:[function(e,t,r){"use strict";r.__esModule=true;r.BACKGROUND_SIZE_SUPPORTED=r.TOUCH_ENABLED=r.IS_ANY_SAFARI=r.IS_SAFARI=r.IE_VERSION=r.IS_IE8=r.IS_CHROME=r.IS_EDGE=r.IS_FIREFOX=r.IS_NATIVE_ANDROID=r.IS_OLD_ANDROID=r.ANDROID_VERSION=r.IS_ANDROID=r.IOS_VERSION=r.IS_IOS=r.IS_IPOD=r.IS_IPHONE=r.IS_IPAD=undefined;var n=e(81);var o=u(n);var i=e(95);var a=s(i);function s(e){return e&&e.__esModule?e:{"default":e}}function u(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}var l=a["default"].navigator&&a["default"].navigator.userAgent||"";var c=/AppleWebKit\/([\d.]+)/i.exec(l);var f=c?parseFloat(c.pop()):null;var p=r.IS_IPAD=/iPad/i.test(l);var h=r.IS_IPHONE=/iPhone/i.test(l)&&!p;var d=r.IS_IPOD=/iPod/i.test(l);var v=r.IS_IOS=h||p||d;var y=r.IOS_VERSION=function(){var e=l.match(/OS (\d+)_/i);if(e&&e[1]){return e[1]}return null}();var g=r.IS_ANDROID=/Android/i.test(l);var _=r.ANDROID_VERSION=function(){var e=l.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e){return null}var t=e[1]&&parseFloat(e[1]);var r=e[2]&&parseFloat(e[2]);if(t&&r){return parseFloat(e[1]+"."+e[2])}else if(t){return t}return null}();var m=r.IS_OLD_ANDROID=g&&/webkit/i.test(l)&&_<2.3;var b=r.IS_NATIVE_ANDROID=g&&_<5&&f<537;var T=r.IS_FIREFOX=/Firefox/i.test(l);var w=r.IS_EDGE=/Edge/i.test(l);var E=r.IS_CHROME=!w&&/Chrome/i.test(l);var C=r.IS_IE8=/MSIE\s8\.0/.test(l);var k=r.IE_VERSION=function(e){return e&&parseFloat(e[1])}(/MSIE\s(\d+)\.\d/.exec(l));var O=r.IS_SAFARI=/Safari/i.test(l)&&!E&&!g&&!w;var S=r.IS_ANY_SAFARI=O||v;var j=r.TOUCH_ENABLED=o.isReal()&&("ontouchstart"in a["default"]||a["default"].DocumentTouch&&a["default"].document instanceof a["default"].DocumentTouch);var x=r.BACKGROUND_SIZE_SUPPORTED=o.isReal()&&"backgroundSize"in a["default"].document.createElement("video").style},{81:81,95:95}],79:[function(e,t,r){"use strict";r.__esModule=true;r.bufferedPercent=o;var n=e(90);function o(e,t){var r=0;var o=void 0;var i=void 0;if(!t){return 0}if(!e||!e.length){e=(0,n.createTimeRange)(0,0)}for(var a=0;a<e.length;a++){o=e.start(a);i=e.end(a);if(i>t){i=t}r+=i-o}return r/t}},{90:90}],80:[function(e,t,r){"use strict";r.__esModule=true;r["default"]=a;var n=e(95);var o=i(n);function i(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!e||!t){return""}if(typeof o["default"].getComputedStyle==="function"){var r=o["default"].getComputedStyle(e);return r?r[t]:""}return e.currentStyle[t]||""}},{95:95}],81:[function(e,t,r){"use strict";r.__esModule=true;r.$$=r.$=undefined;var n=g(["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."]);r.isReal=T;r.isEl=w;r.getEl=C;r.createEl=k;r.textContent=O;r.insertElFirst=S;r.getElData=P;r.hasElData=M;r.removeElData=A;r.hasElClass=I;r.addElClass=R;r.removeElClass=N;r.toggleElClass=D;r.setElAttributes=L;r.getElAttributes=F;r.getAttribute=B;r.setAttribute=H;r.removeAttribute=V;r.blockTextSelection=U;r.unblockTextSelection=W;r.findElPosition=z;r.getPointerPosition=X;r.isTextNode=q;r.emptyEl=$;r.normalizeContent=G;r.appendContent=K;r.insertContent=Y;var o=e(94);var i=y(o);var a=e(95);var s=y(a);var u=e(85);var l=v(u);var c=e(86);var f=y(c);var p=e(98);var h=y(p);var d=e(88);function v(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function y(e){return e&&e.__esModule?e:{"default":e}}function g(e,t){e.raw=t;return e}function _(e){return typeof e==="string"&&/\S/.test(e)}function m(e){if(/\s/.test(e)){throw new Error("class has illegal whitespace characters")}}function b(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}function T(){return i["default"]===s["default"].document&&typeof i["default"].createElement!=="undefined"}function w(e){return(0,d.isObject)(e)&&e.nodeType===1}function E(e){return function(t,r){if(!_(t)){return i["default"][e](null)}if(_(r)){r=i["default"].querySelector(r)}var n=w(r)?r:i["default"];return n[e]&&n[e](t)}}function C(e){if(e.indexOf("#")===0){e=e.slice(1)}return i["default"].getElementById(e)}function k(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"div";var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var o=arguments[3];var a=i["default"].createElement(e);Object.getOwnPropertyNames(t).forEach(function(e){var r=t[e];if(e.indexOf("aria-")!==-1||e==="role"||e==="type"){f["default"].warn((0,h["default"])(n,e,r));a.setAttribute(e,r)}else if(e==="textContent"){O(a,r)}else{a[e]=r}});Object.getOwnPropertyNames(r).forEach(function(e){a.setAttribute(e,r[e])});if(o){K(a,o)}return a}function O(e,t){if(typeof e.textContent==="undefined"){e.innerText=t}else{e.textContent=t}return e}function S(e,t){if(t.firstChild){t.insertBefore(e,t.firstChild)}else{t.appendChild(e)}}var j={};var x="vdata"+(new Date).getTime();function P(e){var t=e[x];if(!t){t=e[x]=l.newGUID()}if(!j[t]){j[t]={}}return j[t]}function M(e){var t=e[x];if(!t){return false}return!!Object.getOwnPropertyNames(j[t]).length}function A(e){var t=e[x];if(!t){return}delete j[t];try{delete e[x]}catch(r){if(e.removeAttribute){e.removeAttribute(x)}else{e[x]=null}}}function I(e,t){m(t);if(e.classList){return e.classList.contains(t)}return b(t).test(e.className)}function R(e,t){if(e.classList){e.classList.add(t)}else if(!I(e,t)){e.className=(e.className+" "+t).trim()}return e}function N(e,t){if(e.classList){e.classList.remove(t)}else{m(t);e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")}return e}function D(e,t,r){var n=I(e,t);if(typeof r==="function"){r=r(e,t)}if(typeof r!=="boolean"){r=!n}if(r===n){return}if(r){R(e,t)}else{N(e,t)}return e}function L(e,t){Object.getOwnPropertyNames(t).forEach(function(r){var n=t[r];if(n===null||typeof n==="undefined"||n===false){e.removeAttribute(r)}else{e.setAttribute(r,n===true?"":n)}})}function F(e){var t={};var r=","+"autoplay,controls,loop,muted,default"+",";if(e&&e.attributes&&e.attributes.length>0){var n=e.attributes;for(var o=n.length-1;o>=0;o--){var i=n[o].name;var a=n[o].value;if(typeof e[i]==="boolean"||r.indexOf(","+i+",")!==-1){a=a!==null?true:false}t[i]=a}}return t}function B(e,t){return e.getAttribute(t)}function H(e,t,r){e.setAttribute(t,r)}function V(e,t){e.removeAttribute(t)}function U(){i["default"].body.focus();i["default"].onselectstart=function(){return false}}function W(){i["default"].onselectstart=function(){return true}}function z(e){var t=void 0;if(e.getBoundingClientRect&&e.parentNode){t=e.getBoundingClientRect()}if(!t){return{left:0,top:0}}var r=i["default"].documentElement;var n=i["default"].body;var o=r.clientLeft||n.clientLeft||0;var a=s["default"].pageXOffset||n.scrollLeft;var u=t.left+a-o;var l=r.clientTop||n.clientTop||0;var c=s["default"].pageYOffset||n.scrollTop;var f=t.top+c-l;return{left:Math.round(u),top:Math.round(f)}}function X(e,t){var r={};var n=z(e);var o=e.offsetWidth;var i=e.offsetHeight;var a=n.top;var s=n.left;var u=t.pageY;var l=t.pageX;if(t.changedTouches){l=t.changedTouches[0].pageX;u=t.changedTouches[0].pageY}r.y=Math.max(0,Math.min(1,(a-u+i)/i));r.x=Math.max(0,Math.min(1,(l-s)/o));return r}function q(e){return(0,d.isObject)(e)&&e.nodeType===3}function $(e){while(e.firstChild){e.removeChild(e.firstChild)}return e}function G(e){if(typeof e==="function"){e=e()}return(Array.isArray(e)?e:[e]).map(function(e){if(typeof e==="function"){e=e()}if(w(e)||q(e)){return e}if(typeof e==="string"&&/\S/.test(e)){return i["default"].createTextNode(e)}}).filter(function(e){return e})}function K(e,t){G(t).forEach(function(t){return e.appendChild(t)});return e}function Y(e,t){return K($(e),t)}var J=r.$=E("querySelector");var Q=r.$$=E("querySelectorAll")},{85:85,86:86,88:88,94:94,95:95,98:98}],82:[function(e,t,r){"use strict";r.__esModule=true;r.fixEvent=g;r.on=_;r.off=m;r.trigger=b;r.one=T;var n=e(81);var o=d(n);var i=e(85);var a=d(i);var s=e(86);var u=h(s);var l=e(95);var c=h(l);var f=e(94);var p=h(f);function h(e){return e&&e.__esModule?e:{"default":e}}function d(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function v(e,t){var r=o.getElData(e);if(r.handlers[t].length===0){delete r.handlers[t];if(e.removeEventListener){e.removeEventListener(t,r.dispatcher,false)}else if(e.detachEvent){e.detachEvent("on"+t,r.dispatcher)}}if(Object.getOwnPropertyNames(r.handlers).length<=0){delete r.handlers;delete r.dispatcher;delete r.disabled}if(Object.getOwnPropertyNames(r).length===0){o.removeElData(e)}}function y(e,t,r,n){r.forEach(function(r){e(t,r,n)})}function g(e){function t(){return true}function r(){return false}if(!e||!e.isPropagationStopped){(function(){var n=e||c["default"].event;e={};for(var o in n){if(o!=="layerX"&&o!=="layerY"&&o!=="keyLocation"&&o!=="webkitMovementX"&&o!=="webkitMovementY"){if(!(o==="returnValue"&&n.preventDefault)){e[o]=n[o]}}}if(!e.target){e.target=e.srcElement||p["default"]}if(!e.relatedTarget){e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement}e.preventDefault=function(){if(n.preventDefault){n.preventDefault()}e.returnValue=false;n.returnValue=false;e.defaultPrevented=true};e.defaultPrevented=false;e.stopPropagation=function(){if(n.stopPropagation){n.stopPropagation()}e.cancelBubble=true;n.cancelBubble=true;e.isPropagationStopped=t};e.isPropagationStopped=r;e.stopImmediatePropagation=function(){if(n.stopImmediatePropagation){n.stopImmediatePropagation()}e.isImmediatePropagationStopped=t;e.stopPropagation()};e.isImmediatePropagationStopped=r;if(e.clientX!==null&&e.clientX!==undefined){var i=p["default"].documentElement;var a=p["default"].body;e.pageX=e.clientX+(i&&i.scrollLeft||a&&a.scrollLeft||0)-(i&&i.clientLeft||a&&a.clientLeft||0);e.pageY=e.clientY+(i&&i.scrollTop||a&&a.scrollTop||0)-(i&&i.clientTop||a&&a.clientTop||0)}e.which=e.charCode||e.keyCode;if(e.button!==null&&e.button!==undefined){e.button=e.button&1?0:e.button&4?1:e.button&2?2:0}})()}return e}function _(e,t,r){if(Array.isArray(t)){return y(_,e,t,r)}var n=o.getElData(e);if(!n.handlers){n.handlers={}}if(!n.handlers[t]){n.handlers[t]=[]}if(!r.guid){r.guid=a.newGUID()}n.handlers[t].push(r);if(!n.dispatcher){n.disabled=false;n.dispatcher=function(t,r){if(n.disabled){return}t=g(t);var o=n.handlers[t.type];if(o){var i=o.slice(0);for(var a=0,s=i.length;a<s;a++){if(t.isImmediatePropagationStopped()){break}else{try{i[a].call(e,t,r)}catch(l){u["default"].error(l)}}}}}}if(n.handlers[t].length===1){if(e.addEventListener){e.addEventListener(t,n.dispatcher,false)}else if(e.attachEvent){e.attachEvent("on"+t,n.dispatcher)}}}function m(e,t,r){if(!o.hasElData(e)){return}var n=o.getElData(e);if(!n.handlers){return}if(Array.isArray(t)){return y(m,e,t,r)}var i=function l(t){n.handlers[t]=[];v(e,t)};if(!t){for(var a in n.handlers){i(a)}return}var s=n.handlers[t];if(!s){return}if(!r){i(t);return}if(r.guid){for(var u=0;u<s.length;u++){if(s[u].guid===r.guid){s.splice(u--,1)}}}v(e,t)}function b(e,t,r){var n=o.hasElData(e)?o.getElData(e):{};var i=e.parentNode||e.ownerDocument;if(typeof t==="string"){t={type:t,target:e}}t=g(t);if(n.dispatcher){n.dispatcher.call(e,t,r)}if(i&&!t.isPropagationStopped()&&t.bubbles===true){b.call(null,i,t,r)}else if(!i&&!t.defaultPrevented){var a=o.getElData(t.target);if(t.target[t.type]){a.disabled=true;if(typeof t.target[t.type]==="function"){t.target[t.type]()}a.disabled=false}}return!t.defaultPrevented}function T(e,t,r){if(Array.isArray(t)){return y(T,e,t,r)}var n=function o(){m(e,t,o);r.apply(this,arguments)};n.guid=r.guid=r.guid||a.newGUID();_(e,t,n)}},{81:81,85:85,86:86,94:94,95:95}],83:[function(e,t,r){"use strict";r.__esModule=true;r.throttle=r.bind=undefined;var n=e(85);var o=r.bind=function a(e,t,r){if(!t.guid){t.guid=(0,n.newGUID)()}var o=function i(){return t.apply(e,arguments)};o.guid=r?r+"_"+t.guid:t.guid;return o};var i=r.throttle=function s(e,t){var r=Date.now();var n=function o(){var n=Date.now();if(n-r>=t){e.apply(undefined,arguments);r=n}};return n}},{85:85}],84:[function(e,t,r){"use strict";r.__esModule=true;function n(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:e;e=e<0?0:e;var r=Math.floor(e%60);var n=Math.floor(e/60%60);var o=Math.floor(e/3600);var i=Math.floor(t/60%60);var a=Math.floor(t/3600);if(isNaN(e)||e===Infinity){o=n=r="-"}o=o>0||a>0?o+":":"";n=((o||i>=10)&&n<10?"0"+n:n)+":";r=r<10?"0"+r:r;return o+n+r}r["default"]=n},{}],85:[function(e,t,r){"use strict";r.__esModule=true;r.newGUID=o;var n=1;function o(){return n++}},{}],86:[function(e,t,r){"use strict";r.__esModule=true;r.logByType=undefined;var n=e(95);var o=s(n);var i=e(78);var a=e(88);function s(e){return e&&e.__esModule?e:{"default":e}}var u=void 0;var l=r.logByType=function c(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!!i.IE_VERSION&&i.IE_VERSION<11;if(e!=="log"){t.unshift(e.toUpperCase()+":")}u.history.push(t);t.unshift("VIDEOJS:");var n=o["default"].console&&o["default"].console[e];if(!n){return}if(r){t=t.map(function(e){if((0,a.isObject)(e)||Array.isArray(e)){try{return JSON.stringify(e)}catch(t){return String(e)}}return String(e)}).join(" ")}if(!n.apply){n(t)}else{n[Array.isArray(t)?"apply":"call"](o["default"].console,t)} };u=function f(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++){t[r]=arguments[r]}l("log",t)};u.history=[];u.error=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++){t[r]=arguments[r]}return l("error",t)};u.warn=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++){t[r]=arguments[r]}return l("warn",t)};r["default"]=u},{78:78,88:88,95:95}],87:[function(e,t,r){"use strict";r.__esModule=true;r["default"]=o;var n=e(88);function o(){var e={};for(var t=arguments.length,r=Array(t),i=0;i<t;i++){r[i]=arguments[i]}r.forEach(function(t){if(!t){return}(0,n.each)(t,function(t,r){if(!(0,n.isPlain)(t)){e[r]=t;return}if(!(0,n.isPlain)(e[r])){e[r]={}}e[r]=o(e[r],t)})});return e}},{88:88}],88:[function(e,t,r){"use strict";r.__esModule=true;var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r.each=i;r.reduce=a;r.assign=s;r.isObject=u;r.isPlain=l;var o=Object.prototype.toString;function i(e,t){Object.keys(e).forEach(function(r){return t(e[r],r)})}function a(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;return Object.keys(e).reduce(function(r,n){return t(r,e[n],n)},r)}function s(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++){r[n-1]=arguments[n]}if(Object.assign){return Object.assign.apply(Object,[e].concat(r))}r.forEach(function(t){if(!t){return}i(t,function(t,r){e[r]=t})});return e}function u(e){return!!e&&(typeof e==="undefined"?"undefined":n(e))==="object"}function l(e){return u(e)&&o.call(e)==="[object Object]"&&e.constructor===Object}},{}],89:[function(e,t,r){"use strict";r.__esModule=true;r.setTextContent=r.createStyleElement=undefined;var n=e(94);var o=i(n);function i(e){return e&&e.__esModule?e:{"default":e}}var a=r.createStyleElement=function u(e){var t=o["default"].createElement("style");t.className=e;return t};var s=r.setTextContent=function l(e,t){if(e.styleSheet){e.styleSheet.cssText=t}else{e.textContent=t}}},{94:94}],90:[function(e,t,r){"use strict";r.__esModule=true;r.createTimeRange=undefined;r.createTimeRanges=l;var n=e(86);var o=i(n);function i(e){return e&&e.__esModule?e:{"default":e}}function a(e,t,r){if(t<0||t>r){throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is greater than or equal to the maximum bound ("+r+").")}}function s(e,t,r,n){if(n===undefined){o["default"].warn("DEPRECATED: Function '"+e+"' on 'TimeRanges' called without an index argument.");n=0}a(e,n,r.length-1);return r[n][t]}function u(e){if(e===undefined||e.length===0){return{length:0,start:function t(){throw new Error("This TimeRanges object is empty")},end:function r(){throw new Error("This TimeRanges object is empty")}}}return{length:e.length,start:s.bind(null,"start",0,e),end:s.bind(null,"end",1,e)}}function l(e,t){if(Array.isArray(e)){return u(e)}else if(e===undefined||t===undefined){return u()}return u([[e,t]])}r.createTimeRange=l},{86:86}],91:[function(e,t,r){"use strict";r.__esModule=true;function n(e){if(typeof e!=="string"){return e}return e.charAt(0).toUpperCase()+e.slice(1)}r["default"]=n},{}],92:[function(e,t,r){"use strict";r.__esModule=true;r.isCrossOrigin=r.getFileExtension=r.getAbsoluteURL=r.parseUrl=undefined;var n=e(94);var o=s(n);var i=e(95);var a=s(i);function s(e){return e&&e.__esModule?e:{"default":e}}var u=r.parseUrl=function p(e){var t=["protocol","hostname","port","pathname","search","hash","host"];var r=o["default"].createElement("a");r.href=e;var n=r.host===""&&r.protocol!=="file:";var i=void 0;if(n){i=o["default"].createElement("div");i.innerHTML='<a href="'+e+'"></a>';r=i.firstChild;i.setAttribute("style","display:none; position:absolute;");o["default"].body.appendChild(i)}var a={};for(var s=0;s<t.length;s++){a[t[s]]=r[t[s]]}if(a.protocol==="http:"){a.host=a.host.replace(/:80$/,"")}if(a.protocol==="https:"){a.host=a.host.replace(/:443$/,"")}if(n){o["default"].body.removeChild(i)}return a};var l=r.getAbsoluteURL=function h(e){if(!e.match(/^https?:\/\//)){var t=o["default"].createElement("div");t.innerHTML='<a href="'+e+'">x</a>';e=t.firstChild.href}return e};var c=r.getFileExtension=function d(e){if(typeof e==="string"){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i;var r=t.exec(e);if(r){return r.pop().toLowerCase()}}return""};var f=r.isCrossOrigin=function v(e){var t=a["default"].location;var r=u(e);var n=r.protocol===":"?t.protocol:r.protocol;var o=n+r.host!==t.protocol+t.host;return o}},{94:94,95:95}],93:[function(t,r,n){"use strict";n.__esModule=true;var o=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=t(95);var a=ee(i);var s=t(94);var u=ee(s);var l=t(56);var c=Z(l);var f=t(89);var p=Z(f);var h=t(5);var d=ee(h);var v=t(42);var y=ee(v);var g=t(82);var _=Z(g);var m=t(51);var b=ee(m);var T=t(52);var w=ee(T);var E=t(87);var C=ee(E);var k=t(83);var O=Z(k);var S=t(72);var j=ee(S);var x=t(64);var P=ee(x);var M=t(77);var A=ee(M);var I=t(90);var R=t(84);var N=ee(R);var D=t(86);var L=ee(D);var F=t(81);var B=Z(F);var H=t(78);var V=Z(H);var U=t(92);var W=Z(U);var z=t(88);var X=t(80);var q=ee(X);var $=t(43);var G=ee($);var K=t(105);var Y=ee(K);var J=t(62);var Q=ee(J);function Z(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}}function ee(e){return e&&e.__esModule?e:{"default":e}}if(typeof HTMLVideoElement==="undefined"&&B.isReal()){u["default"].createElement("video");u["default"].createElement("audio");u["default"].createElement("track")}function te(e,t,r){var n=void 0;if(typeof e==="string"){if(e.indexOf("#")===0){e=e.slice(1)}if(te.getPlayers()[e]){if(t){L["default"].warn('Player "'+e+'" is already initialised. Options will not be applied.')}if(r){te.getPlayers()[e].ready(r)}return te.getPlayers()[e]}n=B.getEl(e)}else{n=e}if(!n||!n.nodeName){throw new TypeError("The element or ID supplied is not valid. (videojs)")}if(n.player||b["default"].players[n.playerId]){return n.player||b["default"].players[n.playerId]}t=t||{};te.hooks("beforesetup").forEach(function(e){var r=e(n,(0,C["default"])(t));if(!(0,z.isObject)(r)||Array.isArray(r)){L["default"].error("please return an object in beforesetup hooks");return}t=(0,C["default"])(t,r)});var o=d["default"].getComponent("Player");var i=new o(n,t,r);te.hooks("setup").forEach(function(e){return e(i)});return i}te.hooks_={};te.hooks=function(e,t){te.hooks_[e]=te.hooks_[e]||[];if(t){te.hooks_[e]=te.hooks_[e].concat(t)}return te.hooks_[e]};te.hook=function(e,t){te.hooks(e,t)};te.removeHook=function(e,t){var r=te.hooks(e).indexOf(t);if(r<=-1){return false}te.hooks_[e]=te.hooks_[e].slice();te.hooks_[e].splice(r,1);return true};c.autoSetupTimeout(1,te);te.VERSION="5.16.0";te.options=b["default"].prototype.options_;te.getPlayers=function(){return b["default"].players};te.players=b["default"].players;te.getComponent=d["default"].getComponent;te.registerComponent=function(e,t){if(Q["default"].isTech(t)){L["default"].warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)")}d["default"].registerComponent.call(d["default"],e,t)};te.getTech=Q["default"].getTech;te.registerTech=Q["default"].registerTech;te.browser=V;te.TOUCH_ENABLED=V.TOUCH_ENABLED;te.extend=G["default"];te.mergeOptions=C["default"];te.bind=O.bind;te.plugin=w["default"];te.addLanguage=function(e,t){var r;e=(""+e).toLowerCase();te.options.languages=(0,C["default"])(te.options.languages,(r={},r[e]=t,r));return te.options.languages[e]};te.log=L["default"];te.createTimeRange=te.createTimeRanges=I.createTimeRanges;te.formatTime=N["default"];te.parseUrl=W.parseUrl;te.isCrossOrigin=W.isCrossOrigin;te.EventTarget=y["default"];te.on=_.on;te.one=_.one;te.off=_.off;te.trigger=_.trigger;te.xhr=Y["default"];te.TextTrack=j["default"];te.AudioTrack=P["default"];te.VideoTrack=A["default"];te.isEl=B.isEl;te.isTextNode=B.isTextNode;te.createEl=B.createEl;te.hasClass=B.hasElClass;te.addClass=B.addElClass;te.removeClass=B.removeElClass;te.toggleClass=B.toggleElClass;te.setAttributes=B.setElAttributes;te.getAttributes=B.getElAttributes;te.emptyEl=B.emptyEl;te.appendContent=B.appendContent;te.insertContent=B.insertContent;te.computedStyle=q["default"];if(typeof e==="function"&&e.amd){e("videojs",[],function(){return te})}else if((typeof n==="undefined"?"undefined":o(n))==="object"&&(typeof r==="undefined"?"undefined":o(r))==="object"){r.exports=te}n["default"]=te},{105:105,42:42,43:43,5:5,51:51,52:52,56:56,62:62,64:64,72:72,77:77,78:78,80:80,81:81,82:82,83:83,84:84,86:86,87:87,88:88,89:89,90:90,92:92,94:94,95:95}],94:[function(e,t,r){(function(r){var n=typeof r!=="undefined"?r:typeof window!=="undefined"?window:{};var o=e(96);if(typeof document!=="undefined"){t.exports=document}else{var i=n["__GLOBAL_DOCUMENT_CACHE@4"];if(!i){i=n["__GLOBAL_DOCUMENT_CACHE@4"]=o}t.exports=i}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{96:96}],95:[function(e,t,r){(function(e){if(typeof window!=="undefined"){t.exports=window}else if(typeof e!=="undefined"){t.exports=e}else if(typeof self!=="undefined"){t.exports=self}else{t.exports={}}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],96:[function(e,t,r){},{}],97:[function(e,t,r){t.exports=n;function n(e,t){var r;var n=null;try{r=JSON.parse(e,t)}catch(o){n=o}return[n,r]}},{}],98:[function(e,t,r){function n(e){return e.replace(/\n\r?\s*/g,"")}t.exports=function o(e){var t="",r=0;for(;r<arguments.length;r++)t+=n(e[r])+(arguments[r+1]||"");return t}},{}],99:[function(e,t,r){t.exports={WebVTT:e(100).WebVTT,VTTCue:e(101).VTTCue,VTTRegion:e(103).VTTRegion}},{100:100,101:101,103:103}],100:[function(e,t,r){(function(e){var t=Object.create||function(){function e(){}return function(t){if(arguments.length!==1){throw new Error("Object.create shim only accepts one parameter.")}e.prototype=t;return new e}}();function r(e,t){this.name="ParsingError";this.code=e.code;this.message=t||e.message}r.prototype=t(Error.prototype);r.prototype.constructor=r;r.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};function n(e){function t(e,t,r,n){return(e|0)*3600+(t|0)*60+(r|0)+(n|0)/1e3}var r=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);if(!r){return null}if(r[3]){return t(r[1],r[2],r[3].replace(":",""),r[4])}else if(r[1]>59){return t(r[1],r[2],0,r[4])}else{return t(0,r[1],r[2],r[4])}}function o(){this.values=t(null)}o.prototype={set:function(e,t){if(!this.get(e)&&t!==""){this.values[e]=t}},get:function(e,t,r){if(r){return this.has(e)?this.values[e]:t[r]}return this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,r){for(var n=0;n<r.length;++n){if(t===r[n]){this.set(e,t);break}}},integer:function(e,t){if(/^-?\d+$/.test(t)){this.set(e,parseInt(t,10))}},percent:function(e,t){var r;if(r=t.match(/^([\d]{1,3})(\.[\d]*)?%$/)){t=parseFloat(t);if(t>=0&&t<=100){this.set(e,t);return true}}return false}};function i(e,t,r,n){var o=n?e.split(n):[e];for(var i in o){if(typeof o[i]!=="string"){continue}var a=o[i].split(r);if(a.length!==2){continue}var s=a[0];var u=a[1];t(s,u)}}function a(e,t,a){var s=e;function u(){var t=n(e);if(t===null){throw new r(r.Errors.BadTimeStamp,"Malformed timestamp: "+s)}e=e.replace(/^[^\sa-zA-Z-]+/,"");return t}function l(e,t){var r=new o;i(e,function(e,t){switch(e){case"region":for(var n=a.length-1;n>=0;n--){if(a[n].id===t){r.set(e,a[n].region);break}}break;case"vertical":r.alt(e,t,["rl","lr"]);break;case"line":var o=t.split(","),i=o[0];r.integer(e,i);r.percent(e,i)?r.set("snapToLines",false):null;r.alt(e,i,["auto"]);if(o.length===2){r.alt("lineAlign",o[1],["start","middle","end"])}break;case"position":o=t.split(",");r.percent(e,o[0]);if(o.length===2){r.alt("positionAlign",o[1],["start","middle","end"])}break;case"size":r.percent(e,t);break;case"align":r.alt(e,t,["start","middle","end","left","right"]);break}},/:/,/\s/);t.region=r.get("region",null);t.vertical=r.get("vertical","");t.line=r.get("line","auto");t.lineAlign=r.get("lineAlign","start");t.snapToLines=r.get("snapToLines",true);t.size=r.get("size",100);t.align=r.get("align","middle");t.position=r.get("position",{start:0,left:0,middle:50,end:100,right:100},t.align);t.positionAlign=r.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)}function c(){e=e.replace(/^\s+/,"")}c();t.startTime=u();c();if(e.substr(0,3)!=="-->"){throw new r(r.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+s)}e=e.substr(3);c();t.endTime=u();c();l(e,t)}var s={"&":"&","<":"<",">":">","‎":"","‏":""," ":"\u00a0"};var u={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"};var l={v:"title",lang:"lang"};var c={rt:"ruby"};function f(e,t){function r(){if(!t){return null}function e(e){t=t.substr(e.length);return e}var r=t.match(/^([^<]*)(<[^>]+>?)?/);return e(r[1]?r[1]:r[2])}function o(e){return s[e]}function i(e){while(_=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/)){e=e.replace(_[0],o)}return e}function a(e,t){return!c[t.localName]||c[t.localName]===e.localName}function f(t,r){var n=u[t];if(!n){return null}var o=e.document.createElement(n);o.localName=n;var i=l[t];if(i&&r){o[i]=r.trim()}return o}var p=e.document.createElement("div"),h=p,d,v=[];while((d=r())!==null){if(d[0]==="<"){if(d[1]==="/"){if(v.length&&v[v.length-1]===d.substr(2).replace(">","")){v.pop();h=h.parentNode}continue}var y=n(d.substr(1,d.length-2));var g;if(y){g=e.document.createProcessingInstruction("timestamp",y);h.appendChild(g);continue}var _=d.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!_){continue}g=f(_[1],_[3]);if(!g){continue}if(!a(h,g)){continue}if(_[2]){g.className=_[2].substr(1).replace("."," ")}v.push(_[1]);h.appendChild(g);h=g;continue}h.appendChild(e.document.createTextNode(i(d)))}return p}var p=[1470,1472,1475,1478,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1520,1521,1522,1523,1524,1544,1547,1549,1563,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1645,1646,1647,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1765,1766,1774,1775,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1807,1808,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1969,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2036,2037,2042,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2074,2084,2088,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2142,2208,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,8207,64285,64287,64288,64289,64290,64291,64292,64293,64294,64295,64296,64298,64299,64300,64301,64302,64303,64304,64305,64306,64307,64308,64309,64310,64312,64313,64314,64315,64316,64318,64320,64321,64323,64324,64326,64327,64328,64329,64330,64331,64332,64333,64334,64335,64336,64337,64338,64339,64340,64341,64342,64343,64344,64345,64346,64347,64348,64349,64350,64351,64352,64353,64354,64355,64356,64357,64358,64359,64360,64361,64362,64363,64364,64365,64366,64367,64368,64369,64370,64371,64372,64373,64374,64375,64376,64377,64378,64379,64380,64381,64382,64383,64384,64385,64386,64387,64388,64389,64390,64391,64392,64393,64394,64395,64396,64397,64398,64399,64400,64401,64402,64403,64404,64405,64406,64407,64408,64409,64410,64411,64412,64413,64414,64415,64416,64417,64418,64419,64420,64421,64422,64423,64424,64425,64426,64427,64428,64429,64430,64431,64432,64433,64434,64435,64436,64437,64438,64439,64440,64441,64442,64443,64444,64445,64446,64447,64448,64449,64467,64468,64469,64470,64471,64472,64473,64474,64475,64476,64477,64478,64479,64480,64481,64482,64483,64484,64485,64486,64487,64488,64489,64490,64491,64492,64493,64494,64495,64496,64497,64498,64499,64500,64501,64502,64503,64504,64505,64506,64507,64508,64509,64510,64511,64512,64513,64514,64515,64516,64517,64518,64519,64520,64521,64522,64523,64524,64525,64526,64527,64528,64529,64530,64531,64532,64533,64534,64535,64536,64537,64538,64539,64540,64541,64542,64543,64544,64545,64546,64547,64548,64549,64550,64551,64552,64553,64554,64555,64556,64557,64558,64559,64560,64561,64562,64563,64564,64565,64566,64567,64568,64569,64570,64571,64572,64573,64574,64575,64576,64577,64578,64579,64580,64581,64582,64583,64584,64585,64586,64587,64588,64589,64590,64591,64592,64593,64594,64595,64596,64597,64598,64599,64600,64601,64602,64603,64604,64605,64606,64607,64608,64609,64610,64611,64612,64613,64614,64615,64616,64617,64618,64619,64620,64621,64622,64623,64624,64625,64626,64627,64628,64629,64630,64631,64632,64633,64634,64635,64636,64637,64638,64639,64640,64641,64642,64643,64644,64645,64646,64647,64648,64649,64650,64651,64652,64653,64654,64655,64656,64657,64658,64659,64660,64661,64662,64663,64664,64665,64666,64667,64668,64669,64670,64671,64672,64673,64674,64675,64676,64677,64678,64679,64680,64681,64682,64683,64684,64685,64686,64687,64688,64689,64690,64691,64692,64693,64694,64695,64696,64697,64698,64699,64700,64701,64702,64703,64704,64705,64706,64707,64708,64709,64710,64711,64712,64713,64714,64715,64716,64717,64718,64719,64720,64721,64722,64723,64724,64725,64726,64727,64728,64729,64730,64731,64732,64733,64734,64735,64736,64737,64738,64739,64740,64741,64742,64743,64744,64745,64746,64747,64748,64749,64750,64751,64752,64753,64754,64755,64756,64757,64758,64759,64760,64761,64762,64763,64764,64765,64766,64767,64768,64769,64770,64771,64772,64773,64774,64775,64776,64777,64778,64779,64780,64781,64782,64783,64784,64785,64786,64787,64788,64789,64790,64791,64792,64793,64794,64795,64796,64797,64798,64799,64800,64801,64802,64803,64804,64805,64806,64807,64808,64809,64810,64811,64812,64813,64814,64815,64816,64817,64818,64819,64820,64821,64822,64823,64824,64825,64826,64827,64828,64829,64848,64849,64850,64851,64852,64853,64854,64855,64856,64857,64858,64859,64860,64861,64862,64863,64864,64865,64866,64867,64868,64869,64870,64871,64872,64873,64874,64875,64876,64877,64878,64879,64880,64881,64882,64883,64884,64885,64886,64887,64888,64889,64890,64891,64892,64893,64894,64895,64896,64897,64898,64899,64900,64901,64902,64903,64904,64905,64906,64907,64908,64909,64910,64911,64914,64915,64916,64917,64918,64919,64920,64921,64922,64923,64924,64925,64926,64927,64928,64929,64930,64931,64932,64933,64934,64935,64936,64937,64938,64939,64940,64941,64942,64943,64944,64945,64946,64947,64948,64949,64950,64951,64952,64953,64954,64955,64956,64957,64958,64959,64960,64961,64962,64963,64964,64965,64966,64967,65008,65009,65010,65011,65012,65013,65014,65015,65016,65017,65018,65019,65020,65136,65137,65138,65139,65140,65142,65143,65144,65145,65146,65147,65148,65149,65150,65151,65152,65153,65154,65155,65156,65157,65158,65159,65160,65161,65162,65163,65164,65165,65166,65167,65168,65169,65170,65171,65172,65173,65174,65175,65176,65177,65178,65179,65180,65181,65182,65183,65184,65185,65186,65187,65188,65189,65190,65191,65192,65193,65194,65195,65196,65197,65198,65199,65200,65201,65202,65203,65204,65205,65206,65207,65208,65209,65210,65211,65212,65213,65214,65215,65216,65217,65218,65219,65220,65221,65222,65223,65224,65225,65226,65227,65228,65229,65230,65231,65232,65233,65234,65235,65236,65237,65238,65239,65240,65241,65242,65243,65244,65245,65246,65247,65248,65249,65250,65251,65252,65253,65254,65255,65256,65257,65258,65259,65260,65261,65262,65263,65264,65265,65266,65267,65268,65269,65270,65271,65272,65273,65274,65275,65276,67584,67585,67586,67587,67588,67589,67592,67594,67595,67596,67597,67598,67599,67600,67601,67602,67603,67604,67605,67606,67607,67608,67609,67610,67611,67612,67613,67614,67615,67616,67617,67618,67619,67620,67621,67622,67623,67624,67625,67626,67627,67628,67629,67630,67631,67632,67633,67634,67635,67636,67637,67639,67640,67644,67647,67648,67649,67650,67651,67652,67653,67654,67655,67656,67657,67658,67659,67660,67661,67662,67663,67664,67665,67666,67667,67668,67669,67671,67672,67673,67674,67675,67676,67677,67678,67679,67840,67841,67842,67843,67844,67845,67846,67847,67848,67849,67850,67851,67852,67853,67854,67855,67856,67857,67858,67859,67860,67861,67862,67863,67864,67865,67866,67867,67872,67873,67874,67875,67876,67877,67878,67879,67880,67881,67882,67883,67884,67885,67886,67887,67888,67889,67890,67891,67892,67893,67894,67895,67896,67897,67903,67968,67969,67970,67971,67972,67973,67974,67975,67976,67977,67978,67979,67980,67981,67982,67983,67984,67985,67986,67987,67988,67989,67990,67991,67992,67993,67994,67995,67996,67997,67998,67999,68e3,68001,68002,68003,68004,68005,68006,68007,68008,68009,68010,68011,68012,68013,68014,68015,68016,68017,68018,68019,68020,68021,68022,68023,68030,68031,68096,68112,68113,68114,68115,68117,68118,68119,68121,68122,68123,68124,68125,68126,68127,68128,68129,68130,68131,68132,68133,68134,68135,68136,68137,68138,68139,68140,68141,68142,68143,68144,68145,68146,68147,68160,68161,68162,68163,68164,68165,68166,68167,68176,68177,68178,68179,68180,68181,68182,68183,68184,68192,68193,68194,68195,68196,68197,68198,68199,68200,68201,68202,68203,68204,68205,68206,68207,68208,68209,68210,68211,68212,68213,68214,68215,68216,68217,68218,68219,68220,68221,68222,68223,68352,68353,68354,68355,68356,68357,68358,68359,68360,68361,68362,68363,68364,68365,68366,68367,68368,68369,68370,68371,68372,68373,68374,68375,68376,68377,68378,68379,68380,68381,68382,68383,68384,68385,68386,68387,68388,68389,68390,68391,68392,68393,68394,68395,68396,68397,68398,68399,68400,68401,68402,68403,68404,68405,68416,68417,68418,68419,68420,68421,68422,68423,68424,68425,68426,68427,68428,68429,68430,68431,68432,68433,68434,68435,68436,68437,68440,68441,68442,68443,68444,68445,68446,68447,68448,68449,68450,68451,68452,68453,68454,68455,68456,68457,68458,68459,68460,68461,68462,68463,68464,68465,68466,68472,68473,68474,68475,68476,68477,68478,68479,68608,68609,68610,68611,68612,68613,68614,68615,68616,68617,68618,68619,68620,68621,68622,68623,68624,68625,68626,68627,68628,68629,68630,68631,68632,68633,68634,68635,68636,68637,68638,68639,68640,68641,68642,68643,68644,68645,68646,68647,68648,68649,68650,68651,68652,68653,68654,68655,68656,68657,68658,68659,68660,68661,68662,68663,68664,68665,68666,68667,68668,68669,68670,68671,68672,68673,68674,68675,68676,68677,68678,68679,68680,126464,126465,126466,126467,126469,126470,126471,126472,126473,126474,126475,126476,126477,126478,126479,126480,126481,126482,126483,126484,126485,126486,126487,126488,126489,126490,126491,126492,126493,126494,126495,126497,126498,126500,126503,126505,126506,126507,126508,126509,126510,126511,126512,126513,126514,126516,126517,126518,126519,126521,126523,126530,126535,126537,126539,126541,126542,126543,126545,126546,126548,126551,126553,126555,126557,126559,126561,126562,126564,126567,126568,126569,126570,126572,126573,126574,126575,126576,126577,126578,126580,126581,126582,126583,126585,126586,126587,126588,126590,126592,126593,126594,126595,126596,126597,126598,126599,126600,126601,126603,126604,126605,126606,126607,126608,126609,126610,126611,126612,126613,126614,126615,126616,126617,126618,126619,126625,126626,126627,126629,126630,126631,126632,126633,126635,126636,126637,126638,126639,126640,126641,126642,126643,126644,126645,126646,126647,126648,126649,126650,126651,1114109];function h(e){var t=[],r="",n;if(!e||!e.childNodes){return"ltr"}function o(e,t){for(var r=t.childNodes.length-1;r>=0;r--){e.push(t.childNodes[r])}}function i(e){if(!e||!e.length){return null}var t=e.pop(),r=t.textContent||t.innerText;if(r){var n=r.match(/^.*(\n|\r)/);if(n){e.length=0;return n[0]}return r}if(t.tagName==="ruby"){return i(e)}if(t.childNodes){o(e,t);return i(e)}}o(t,e);while(r=i(t)){for(var a=0;a<r.length;a++){n=r.charCodeAt(a);for(var s=0;s<p.length;s++){if(p[s]===n){return"rtl"}}}}return"ltr"}function d(e){if(typeof e.line==="number"&&(e.snapToLines||e.line>=0&&e.line<=100)){return e.line}if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement){return-1}var t=e.track,r=t.textTrackList,n=0;for(var o=0;o<r.length&&r[o]!==t;o++){if(r[o].mode==="showing"){n++}}return++n*-1}function v(){}v.prototype.applyStyles=function(e,t){t=t||this.div;for(var r in e){if(e.hasOwnProperty(r)){t.style[r]=e[r]}}};v.prototype.formatStyle=function(e,t){return e===0?0:e+t};function y(e,t,r){var n=/MSIE\s8\.0/.test(navigator.userAgent);var o="rgba(255, 255, 255, 1)";var i="rgba(0, 0, 0, 0.8)";if(n){o="rgb(255, 255, 255)";i="rgb(0, 0, 0)"}v.call(this);this.cue=t;this.cueDiv=f(e,t.text);var a={color:o,backgroundColor:i,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};if(!n){a.writingMode=t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl";a.unicodeBidi="plaintext"}this.applyStyles(a,this.cueDiv);this.div=e.document.createElement("div");a={textAlign:t.align==="middle"?"center":t.align,font:r.font,whiteSpace:"pre-line",position:"absolute"};if(!n){a.direction=h(this.cueDiv);a.writingMode=t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"}this.applyStyles(a);this.div.appendChild(this.cueDiv);var s=0;switch(t.positionAlign){case"start":s=t.position;break;case"middle":s=t.position-t.size/2;break;case"end":s=t.position-t.size;break}if(t.vertical===""){this.applyStyles({left:this.formatStyle(s,"%"),width:this.formatStyle(t.size,"%")})}else{this.applyStyles({top:this.formatStyle(s,"%"),height:this.formatStyle(t.size,"%")})}this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}y.prototype=t(v.prototype);y.prototype.constructor=y;function g(e){var t=/MSIE\s8\.0/.test(navigator.userAgent);var r,n,o,i;if(e.div){n=e.div.offsetHeight;o=e.div.offsetWidth;i=e.div.offsetTop;var a=(a=e.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();e=e.div.getBoundingClientRect();r=a?Math.max(a[0]&&a[0].height||0,e.height/a.length):0}this.left=e.left;this.right=e.right;this.top=e.top||i;this.height=e.height||n;this.bottom=e.bottom||i+(e.height||n);this.width=e.width||o;this.lineHeight=r!==undefined?r:e.lineHeight;if(t&&!this.lineHeight){this.lineHeight=13}}g.prototype.move=function(e,t){t=t!==undefined?t:this.lineHeight;switch(e){case"+x":this.left+=t;this.right+=t;break;case"-x":this.left-=t;this.right-=t;break;case"+y":this.top+=t;this.bottom+=t;break;case"-y":this.top-=t;this.bottom-=t;break}};g.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top};g.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++){if(this.overlaps(e[t])){return true}}return false};g.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right};g.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}};g.prototype.intersectPercentage=function(e){var t=Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left)),r=Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top)),n=t*r;return n/(this.height*this.width)};g.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}};g.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0;var r=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0;var n=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e;var o={left:e.left,right:e.right,top:e.top||n,height:e.height||t,bottom:e.bottom||n+(e.height||t),width:e.width||r};return o};function _(e,t,r,n){function o(e,t){var o,i=new g(e),a=1;for(var s=0;s<t.length;s++){while(e.overlapsOppositeAxis(r,t[s])||e.within(r)&&e.overlapsAny(n)){e.move(t[s])}if(e.within(r)){return e}var u=e.intersectPercentage(r);if(a>u){o=new g(e);a=u}e=new g(i)}return o||i}var i=new g(t),a=t.cue,s=d(a),u=[];if(a.snapToLines){var l;switch(a.vertical){case"":u=["+y","-y"];l="height";break;case"rl":u=["+x","-x"];l="width";break;case"lr":u=["-x","+x"];l="width";break}var c=i.lineHeight,f=c*Math.round(s),p=r[l]+c,h=u[0];if(Math.abs(f)>p){f=f<0?-1:1;f*=Math.ceil(p/c)*c}if(s<0){f+=a.vertical===""?r.height:r.width;u=u.reverse()}i.move(h,f)}else{var v=i.lineHeight/r.height*100;switch(a.lineAlign){case"middle":s-=v/2;break;case"end":s-=v;break}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(s,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(s,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(s,"%")});break}u=["+y","-x","+x","-y"];i=new g(t)}var y=o(i,u);t.move(y.toCSSCompatValues(r))}function m(){}m.StringDecoder=function(){return{decode:function(e){if(!e){return""}if(typeof e!=="string"){throw new Error("Error - expected string data.")}return decodeURIComponent(encodeURIComponent(e))}}};m.convertCueToDOMTree=function(e,t){if(!e||!t){return null}return f(e,t)};var b=.05;var T="sans-serif";var w="1.5%";m.processCues=function(e,t,r){if(!e||!t||!r){return null}while(r.firstChild){r.removeChild(r.firstChild)}var n=e.document.createElement("div");n.style.position="absolute";n.style.left="0";n.style.right="0";n.style.top="0";n.style.bottom="0";n.style.margin=w;r.appendChild(n);function o(e){for(var t=0;t<e.length;t++){if(e[t].hasBeenReset||!e[t].displayState){return true}}return false}if(!o(t)){for(var i=0;i<t.length;i++){n.appendChild(t[i].displayState)}return}var a=[],s=g.getSimpleBoxPosition(n),u=Math.round(s.height*b*100)/100;var l={font:u+"px "+T};(function(){var r,o;for(var i=0;i<t.length;i++){o=t[i];r=new y(e,o,l);n.appendChild(r.div);_(e,r,s,a);o.displayState=r.div;a.push(g.getSimpleBoxPosition(r))}})()};m.Parser=function(e,t,r){if(!r){r=t;t={}}if(!t){t={}}this.window=e;this.vttjs=t;this.state="INITIAL";this.buffer="";this.decoder=r||new TextDecoder("utf8");this.regionList=[]};m.Parser.prototype={reportOrThrowError:function(e){if(e instanceof r){this.onparsingerror&&this.onparsingerror(e); }else{throw e}},parse:function(e){var t=this;if(e){t.buffer+=t.decoder.decode(e,{stream:true})}function n(){var e=t.buffer;var r=0;while(r<e.length&&e[r]!=="\r"&&e[r]!=="\n"){++r}var n=e.substr(0,r);if(e[r]==="\r"){++r}if(e[r]==="\n"){++r}t.buffer=e.substr(r);return n}function s(e){var r=new o;i(e,function(e,t){switch(e){case"id":r.set(e,t);break;case"width":r.percent(e,t);break;case"lines":r.integer(e,t);break;case"regionanchor":case"viewportanchor":var n=t.split(",");if(n.length!==2){break}var i=new o;i.percent("x",n[0]);i.percent("y",n[1]);if(!i.has("x")||!i.has("y")){break}r.set(e+"X",i.get("x"));r.set(e+"Y",i.get("y"));break;case"scroll":r.alt(e,t,["up"]);break}},/=/,/\s/);if(r.has("id")){var n=new(t.vttjs.VTTRegion||t.window.VTTRegion);n.width=r.get("width",100);n.lines=r.get("lines",3);n.regionAnchorX=r.get("regionanchorX",0);n.regionAnchorY=r.get("regionanchorY",100);n.viewportAnchorX=r.get("viewportanchorX",0);n.viewportAnchorY=r.get("viewportanchorY",100);n.scroll=r.get("scroll","");t.onregion&&t.onregion(n);t.regionList.push({id:r.get("id"),region:n})}}function u(e){i(e,function(e,t){switch(e){case"Region":s(t);break}},/:/)}try{var l;if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer)){return this}l=n();var c=l.match(/^WEBVTT([ \t].*)?$/);if(!c||!c[0]){throw new r(r.Errors.BadSignature)}t.state="HEADER"}var f=false;while(t.buffer){if(!/\r\n|\n/.test(t.buffer)){return this}if(!f){l=n()}else{f=false}switch(t.state){case"HEADER":if(/:/.test(l)){u(l)}else if(!l){t.state="ID"}continue;case"NOTE":if(!l){t.state="ID"}continue;case"ID":if(/^NOTE($|[ \t])/.test(l)){t.state="NOTE";break}if(!l){continue}t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");t.state="CUE";if(l.indexOf("-->")===-1){t.cue.id=l;continue}case"CUE":try{a(l,t.cue,t.regionList)}catch(p){t.reportOrThrowError(p);t.cue=null;t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var h=l.indexOf("-->")!==-1;if(!l||h&&(f=true)){t.oncue&&t.oncue(t.cue);t.cue=null;t.state="ID";continue}if(t.cue.text){t.cue.text+="\n"}t.cue.text+=l;continue;case"BADCUE":if(!l){t.state="ID"}continue}}}catch(p){t.reportOrThrowError(p);if(t.state==="CUETEXT"&&t.cue&&t.oncue){t.oncue(t.cue)}t.cue=null;t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{e.buffer+=e.decoder.decode();if(e.cue||e.state==="HEADER"){e.buffer+="\n\n";e.parse()}if(e.state==="INITIAL"){throw new r(r.Errors.BadSignature)}}catch(t){e.reportOrThrowError(t)}e.onflush&&e.onflush();return this}};e.WebVTT=m})(this,this.vttjs||{})},{}],101:[function(e,t,r){if(typeof t!=="undefined"&&t.exports){this.VTTCue=this.VTTCue||e(102).VTTCue}(function(e){e.VTTCue.prototype.toJSON=function(){var e={},t=this;Object.keys(this).forEach(function(r){if(r!=="getCueAsHTML"&&r!=="hasBeenReset"&&r!=="displayState"){e[r]=t[r]}});return e};e.VTTCue.create=function(t){if(!t.hasOwnProperty("startTime")||!t.hasOwnProperty("endTime")||!t.hasOwnProperty("text")){throw new Error("You must at least have start time, end time, and text.")}var r=new e.VTTCue(t.startTime,t.endTime,t.text);for(var n in t){if(r.hasOwnProperty(n)){r[n]=t[n]}}return r};e.VTTCue.fromJSON=function(e){return this.create(JSON.parse(e))}})(this)},{102:102}],102:[function(e,t,r){(function(e,t){var r="auto";var n={"":true,lr:true,rl:true};var o={start:true,middle:true,end:true,left:true,right:true};function i(e){if(typeof e!=="string"){return false}var t=n[e.toLowerCase()];return t?e.toLowerCase():false}function a(e){if(typeof e!=="string"){return false}var t=o[e.toLowerCase()];return t?e.toLowerCase():false}function s(e){var t=1;for(;t<arguments.length;t++){var r=arguments[t];for(var n in r){e[n]=r[n]}}return e}function u(e,t,n){var o=this;var u=/MSIE\s8\.0/.test(navigator.userAgent);var l={};if(u){o=document.createElement("custom")}else{l.enumerable=true}o.hasBeenReset=false;var c="";var f=false;var p=e;var h=t;var d=n;var v=null;var y="";var g=true;var _="auto";var m="start";var b=50;var T="middle";var w=50;var E="middle";Object.defineProperty(o,"id",s({},l,{get:function(){return c},set:function(e){c=""+e}}));Object.defineProperty(o,"pauseOnExit",s({},l,{get:function(){return f},set:function(e){f=!!e}}));Object.defineProperty(o,"startTime",s({},l,{get:function(){return p},set:function(e){if(typeof e!=="number"){throw new TypeError("Start time must be set to a number.")}p=e;this.hasBeenReset=true}}));Object.defineProperty(o,"endTime",s({},l,{get:function(){return h},set:function(e){if(typeof e!=="number"){throw new TypeError("End time must be set to a number.")}h=e;this.hasBeenReset=true}}));Object.defineProperty(o,"text",s({},l,{get:function(){return d},set:function(e){d=""+e;this.hasBeenReset=true}}));Object.defineProperty(o,"region",s({},l,{get:function(){return v},set:function(e){v=e;this.hasBeenReset=true}}));Object.defineProperty(o,"vertical",s({},l,{get:function(){return y},set:function(e){var t=i(e);if(t===false){throw new SyntaxError("An invalid or illegal string was specified.")}y=t;this.hasBeenReset=true}}));Object.defineProperty(o,"snapToLines",s({},l,{get:function(){return g},set:function(e){g=!!e;this.hasBeenReset=true}}));Object.defineProperty(o,"line",s({},l,{get:function(){return _},set:function(e){if(typeof e!=="number"&&e!==r){throw new SyntaxError("An invalid number or illegal string was specified.")}_=e;this.hasBeenReset=true}}));Object.defineProperty(o,"lineAlign",s({},l,{get:function(){return m},set:function(e){var t=a(e);if(!t){throw new SyntaxError("An invalid or illegal string was specified.")}m=t;this.hasBeenReset=true}}));Object.defineProperty(o,"position",s({},l,{get:function(){return b},set:function(e){if(e<0||e>100){throw new Error("Position must be between 0 and 100.")}b=e;this.hasBeenReset=true}}));Object.defineProperty(o,"positionAlign",s({},l,{get:function(){return T},set:function(e){var t=a(e);if(!t){throw new SyntaxError("An invalid or illegal string was specified.")}T=t;this.hasBeenReset=true}}));Object.defineProperty(o,"size",s({},l,{get:function(){return w},set:function(e){if(e<0||e>100){throw new Error("Size must be between 0 and 100.")}w=e;this.hasBeenReset=true}}));Object.defineProperty(o,"align",s({},l,{get:function(){return E},set:function(e){var t=a(e);if(!t){throw new SyntaxError("An invalid or illegal string was specified.")}E=t;this.hasBeenReset=true}}));o.displayState=undefined;if(u){return o}}u.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};e.VTTCue=e.VTTCue||u;t.VTTCue=u})(this,this.vttjs||{})},{}],103:[function(e,t,r){if(typeof t!=="undefined"&&t.exports){this.VTTRegion=e(104).VTTRegion}(function(e){e.VTTRegion.create=function(t){var r=new e.VTTRegion;for(var n in t){if(r.hasOwnProperty(n)){r[n]=t[n]}}return r};e.VTTRegion.fromJSON=function(e){return this.create(JSON.parse(e))}})(this)},{104:104}],104:[function(e,t,r){(function(e,t){var r={"":true,up:true};function n(e){if(typeof e!=="string"){return false}var t=r[e.toLowerCase()];return t?e.toLowerCase():false}function o(e){return typeof e==="number"&&(e>=0&&e<=100)}function i(){var e=100;var t=3;var r=0;var i=100;var a=0;var s=100;var u="";Object.defineProperties(this,{width:{enumerable:true,get:function(){return e},set:function(t){if(!o(t)){throw new Error("Width must be between 0 and 100.")}e=t}},lines:{enumerable:true,get:function(){return t},set:function(e){if(typeof e!=="number"){throw new TypeError("Lines must be set to a number.")}t=e}},regionAnchorY:{enumerable:true,get:function(){return i},set:function(e){if(!o(e)){throw new Error("RegionAnchorX must be between 0 and 100.")}i=e}},regionAnchorX:{enumerable:true,get:function(){return r},set:function(e){if(!o(e)){throw new Error("RegionAnchorY must be between 0 and 100.")}r=e}},viewportAnchorY:{enumerable:true,get:function(){return s},set:function(e){if(!o(e)){throw new Error("ViewportAnchorY must be between 0 and 100.")}s=e}},viewportAnchorX:{enumerable:true,get:function(){return a},set:function(e){if(!o(e)){throw new Error("ViewportAnchorX must be between 0 and 100.")}a=e}},scroll:{enumerable:true,get:function(){return u},set:function(e){var t=n(e);if(t===false){throw new SyntaxError("An invalid or illegal string was specified.")}u=t}}})}e.VTTRegion=e.VTTRegion||i;t.VTTRegion=i})(this,this.vttjs||{})},{}],105:[function(e,t,r){"use strict";var n=e(95);var o=e(106);var i=e(109);var a=e(110);t.exports=c;c.XMLHttpRequest=n.XMLHttpRequest||h;c.XDomainRequest="withCredentials"in new c.XMLHttpRequest?c.XMLHttpRequest:n.XDomainRequest;s(["get","put","post","patch","head","delete"],function(e){c[e==="delete"?"del":e]=function(t,r,n){r=l(t,r,n);r.method=e.toUpperCase();return f(r)}});function s(e,t){for(var r=0;r<e.length;r++){t(e[r])}}function u(e){for(var t in e){if(e.hasOwnProperty(t))return false}return true}function l(e,t,r){var n=e;if(o(t)){r=t;if(typeof e==="string"){n={uri:e}}}else{n=a(t,{uri:e})}n.callback=r;return n}function c(e,t,r){t=l(e,t,r);return f(t)}function f(e){if(typeof e.callback==="undefined"){throw new Error("callback argument missing")}var t=false;var r=function w(r,n,o){if(!t){t=true;e.callback(r,n,o)}};function n(){if(f.readyState===4){l()}}function o(){var e=undefined;if(f.response){e=f.response}else{e=f.responseText||p(f)}if(b){try{e=JSON.parse(e)}catch(t){}}return e}var a={body:undefined,headers:{},statusCode:0,method:y,url:v,rawRequest:f};function s(e){clearTimeout(T);if(!(e instanceof Error)){e=new Error(""+(e||"Unknown XMLHttpRequest Error"))}e.statusCode=0;return r(e,a)}function l(){if(d)return;var t;clearTimeout(T);if(e.useXDR&&f.status===undefined){t=200}else{t=f.status===1223?204:f.status}var n=a;var s=null;if(t!==0){n={body:o(),statusCode:t,method:y,headers:{},url:v,rawRequest:f};if(f.getAllResponseHeaders){n.headers=i(f.getAllResponseHeaders())}}else{s=new Error("Internal XMLHttpRequest Error")}return r(s,n,n.body)}var f=e.xhr||null;if(!f){if(e.cors||e.useXDR){f=new c.XDomainRequest}else{f=new c.XMLHttpRequest}}var h;var d;var v=f.url=e.uri||e.url;var y=f.method=e.method||"GET";var g=e.body||e.data||null;var _=f.headers=e.headers||{};var m=!!e.sync;var b=false;var T;if("json"in e){b=true;_["accept"]||_["Accept"]||(_["Accept"]="application/json");if(y!=="GET"&&y!=="HEAD"){_["content-type"]||_["Content-Type"]||(_["Content-Type"]="application/json");g=JSON.stringify(e.json)}}f.onreadystatechange=n;f.onload=l;f.onerror=s;f.onprogress=function(){};f.ontimeout=s;f.open(y,v,!m,e.username,e.password);if(!m){f.withCredentials=!!e.withCredentials}if(!m&&e.timeout>0){T=setTimeout(function(){d=true;f.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT";s(e)},e.timeout)}if(f.setRequestHeader){for(h in _){if(_.hasOwnProperty(h)){f.setRequestHeader(h,_[h])}}}else if(e.headers&&!u(e.headers)){throw new Error("Headers cannot be set on an XDomainRequest object")}if("responseType"in e){f.responseType=e.responseType}if("beforeSend"in e&&typeof e.beforeSend==="function"){e.beforeSend(f)}f.send(g);return f}function p(e){if(e.responseType==="document"){return e.responseXML}var t=e.status===204&&e.responseXML&&e.responseXML.documentElement.nodeName==="parsererror";if(e.responseType===""&&!t){return e.responseXML}return null}function h(){}},{106:106,109:109,110:110,95:95}],106:[function(e,t,r){t.exports=o;var n=Object.prototype.toString;function o(e){var t=n.call(e);return t==="[object Function]"||typeof e==="function"&&t!=="[object RegExp]"||typeof window!=="undefined"&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}},{}],107:[function(e,t,r){var n=e(106);t.exports=a;var o=Object.prototype.toString;var i=Object.prototype.hasOwnProperty;function a(e,t,r){if(!n(t)){throw new TypeError("iterator must be a function")}if(arguments.length<3){r=this}if(o.call(e)==="[object Array]")s(e,t,r);else if(typeof e==="string")u(e,t,r);else l(e,t,r)}function s(e,t,r){for(var n=0,o=e.length;n<o;n++){if(i.call(e,n)){t.call(r,e[n],n,e)}}}function u(e,t,r){for(var n=0,o=e.length;n<o;n++){t.call(r,e.charAt(n),n,e)}}function l(e,t,r){for(var n in e){if(i.call(e,n)){t.call(r,e[n],n,e)}}}},{106:106}],108:[function(e,t,r){r=t.exports=n;function n(e){return e.replace(/^\s*|\s*$/g,"")}r.left=function(e){return e.replace(/^\s*/,"")};r.right=function(e){return e.replace(/\s*$/,"")}},{}],109:[function(e,t,r){var n=e(108),o=e(107),i=function(e){return Object.prototype.toString.call(e)==="[object Array]"};t.exports=function(e){if(!e)return{};var t={};o(n(e).split("\n"),function(e){var r=e.indexOf(":"),o=n(e.slice(0,r)).toLowerCase(),a=n(e.slice(r+1));if(typeof t[o]==="undefined"){t[o]=a}else if(i(t[o])){t[o].push(a)}else{t[o]=[t[o],a]}});return t}},{107:107,108:108}],110:[function(e,t,r){t.exports=o;var n=Object.prototype.hasOwnProperty;function o(){var e={};for(var t=0;t<arguments.length;t++){var r=arguments[t];for(var o in r){if(n.call(r,o)){e[o]=r[o]}}}return e}},{}]},{},[93])(93)}); //# sourceMappingURL=video.map.js