Your IP : 18.221.116.226


Current Path : /var/www/www-root/data/www/info.monolith-realty.ru/bitrix/js/fileman/player/videojs/
Upload File :
Current File : /var/www/www-root/data/www/info.monolith-realty.ru/bitrix/js/fileman/player/videojs/video.min.js

/**
 * @license
 * Video.js 5.16.0 <http://videojs.com/>
 * Copyright Brightcove, Inc. <https://www.brightcove.com/>
 * Available under Apache License Version 2.0
 * <https://github.com/videojs/video.js/blob/master/LICENSE>
 *
 * Includes vtt.js <https://github.com/mozilla/vtt.js>
 * Available under Apache License Version 2.0
 * <https://github.com/mozilla/vtt.js/blob/master/LICENSE>
 */
(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 e(t,r,n){function o(a,s){if(!r[a]){if(!t[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=r[a]={exports:{}};t[a][0].call(c.exports,(function(e){var r=t[a][1][e];return o(r?r:e)}),c,c.exports,e,t,r,n)}return r[a].exports}var i=typeof require=="function"&&require;for(var a=0;a<n.length;a++)o(n[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 e(){return"vjs-big-play-button"};t.prototype.handleClick=function e(t){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 e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"button";var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r=(0,l.assign)({className:this.buildCSSClass()},r);if(t!=="button"){u["default"].warn("Creating a Button with an HTML element of "+t+" is deprecated; use ClickableComponent instead.");r=(0,l.assign)({tabIndex:0},r);n=(0,l.assign)({role:"button"},n)}n=(0,l.assign)({type:"button","aria-live":"polite"},n);var o=a["default"].prototype.createEl.call(this,t,r,n);this.createControlTextEl(o);return o};t.prototype.addChild=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=this.constructor.name;u["default"].warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead.");return a["default"].prototype.addChild.call(this,t,r)};t.prototype.enable=function t(){e.prototype.enable.call(this);this.el_.removeAttribute("disabled")};t.prototype.disable=function t(){e.prototype.disable.call(this);this.el_.setAttribute("disabled","disabled")};t.prototype.handleKeyPress=function t(r){if(r.which===32||r.which===13){return}e.prototype.handleKeyPress.call(this,r)};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=_(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=_(f);var h=e(94);var d=_(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 _(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 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 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 T=function(e){m(t,e);function t(r,n){g(this,t);var o=b(this,e.call(this,r,n));o.emitTapEvents();o.enable();return o}t.prototype.createEl=function t(){var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"div";var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var o=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};n=(0,v.assign)({className:this.buildCSSClass(),tabIndex:0},n);if(r==="button"){p["default"].error("Creating a ClickableComponent with an HTML element of "+r+" is not supported; use a Button instead.")}o=(0,v.assign)({role:"button","aria-live":"polite"},o);this.tabIndex_=n.tabIndex;var i=e.prototype.createEl.call(this,r,n,o);this.createControlTextEl(i);return i};t.prototype.createControlTextEl=function e(t){this.controlTextEl_=a.createEl("span",{className:"vjs-control-text"});if(t){t.appendChild(this.controlTextEl_)}this.controlText(this.controlText_,t);return this.controlTextEl_};t.prototype.controlText=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.el();if(!t){return this.controlText_||"Need Text"}var n=this.localize(t);this.controlText_=t;this.controlTextEl_.innerHTML=n;r.setAttribute("title",n);return this};t.prototype.buildCSSClass=function t(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)};t.prototype.enable=function e(){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 e(){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 e(t){};t.prototype.handleFocus=function e(t){u.on(d["default"],"keydown",c.bind(this,this.handleKeyPress))};t.prototype.handleKeyPress=function t(r){if(r.which===32||r.which===13){r.preventDefault();this.handleClick(r)}else if(e.prototype.handleKeyPress){e.prototype.handleKeyPress.call(this,r)}};t.prototype.handleBlur=function e(t){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 t(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)};t.prototype.handleClick=function e(t){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=m(n);var i=e(81);var a=b(i);var s=e(83);var u=b(s);var l=e(85);var c=b(l);var f=e(82);var p=b(f);var h=e(86);var d=m(h);var v=e(91);var y=m(v);var _=e(87);var g=m(_);function b(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 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,g["default"])({},this.options_);r=this.options_=(0,g["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 e(){this.trigger({type:"dispose",bubbles:false});if(this.children_){for(var t=this.children_.length-1;t>=0;t--){if(this.children_[t].dispose){this.children_[t].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 e(){return this.player_};e.prototype.options=function e(t){d["default"].warn("this.options() has been deprecated and will be moved to the constructor in 6.0");if(!t){return this.options_}this.options_=(0,g["default"])(this.options_,t);return this.options_};e.prototype.el=function e(){return this.el_};e.prototype.createEl=function e(t,r,n){return a.createEl(t,r,n)};e.prototype.localize=function e(t){var r=this.player_.language&&this.player_.language();var n=this.player_.languages&&this.player_.languages();if(!r||!n){return t}var o=n[r];if(o&&o[t]){return o[t]}var i=r.split("-")[0];var a=n[i];if(a&&a[t]){return a[t]}return t};e.prototype.contentEl=function e(){return this.contentEl_||this.el_};e.prototype.id=function e(){return this.id_};e.prototype.name=function e(){return this.name_};e.prototype.children=function e(){return this.children_};e.prototype.getChildById=function e(t){return this.childIndex_[t]};e.prototype.getChild=function e(t){if(!t){return}t=(0,y["default"])(t);return this.childNameIndex_[t]};e.prototype.addChild=function t(r){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var o=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this.children_.length;var i=void 0;var a=void 0;if(typeof r==="string"){a=(0,y["default"])(r);if(!n){n={}}if(n===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`.");n={}}var s=n.componentClass||a;n.name=a;var u=e.getComponent(s);if(!u){throw new Error("Component "+s+" does not exist")}if(typeof u!=="function"){return null}i=new u(this.player_||this,n)}else{i=r}this.children_.splice(o,0,i);if(typeof i.id==="function"){this.childIndex_[i.id()]=i}a=a||i.name&&i.name();if(a){this.childNameIndex_[a]=i}if(typeof i.el==="function"&&i.el()){var l=this.contentEl().children;var c=l[o]||null;this.contentEl().insertBefore(i.el(),c)}return i};e.prototype.removeChild=function e(t){if(typeof t==="string"){t=this.getChild(t)}if(!t||!this.children_){return}var r=false;for(var n=this.children_.length-1;n>=0;n--){if(this.children_[n]===t){r=true;this.children_.splice(n,1);break}}if(!r){return}this.childIndex_[t.id()]=null;this.childNameIndex_[t.name()]=null;var o=t.el();if(o&&o.parentNode===this.contentEl()){this.contentEl().removeChild(t.el())}};e.prototype.initChildren=function t(){var r=this;var n=this.options_.children;if(n){(function(){var t=r.options_;var o=function e(n){var o=n.name;var i=n.opts;if(t[o]!==undefined){i=t[o]}if(i===false){return}if(i===true){i={}}i.playerOptions=r.options_.playerOptions;var a=r.addChild(o,i);if(a){r[o]=a}};var i=void 0;var a=e.getComponent("Tech");if(Array.isArray(n)){i=n}else{i=Object.keys(n)}i.concat(Object.keys(r.options_).filter((function(e){return!i.some((function(t){if(typeof t==="string"){return e===t}return e===t.name}))}))).map((function(e){var t=void 0;var o=void 0;if(typeof e==="string"){t=e;o=n[t]||r.options_[t]||{}}else{t=e.name;o=e}return{name:t,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 e(){return""};e.prototype.on=function e(t,r,n){var o=this;if(typeof t==="string"||Array.isArray(t)){p.on(this.el_,t,u.bind(this,r))}else{(function(){var e=t;var i=r;var a=u.bind(o,n);var s=function t(){return o.off(e,i,a)};s.guid=a.guid;o.on("dispose",s);var l=function e(){return o.off("dispose",s)};l.guid=a.guid;if(t.nodeName){p.on(e,i,a);p.on(e,"dispose",l)}else if(typeof t.on==="function"){e.on(i,a);e.on("dispose",l)}})()}return this};e.prototype.off=function e(t,r,n){if(!t||typeof t==="string"||Array.isArray(t)){p.off(this.el_,t,r)}else{var o=t;var i=r;var a=u.bind(this,n);this.off("dispose",a);if(t.nodeName){p.off(o,i,a);p.off(o,"dispose",a)}else{o.off(i,a);o.off("dispose",a)}}return this};e.prototype.one=function e(t,r,n){var o=this,i=arguments;if(typeof t==="string"||Array.isArray(t)){p.one(this.el_,t,u.bind(this,r))}else{(function(){var e=t;var a=r;var s=u.bind(o,n);var l=function t(){o.off(e,a,t);s.apply(null,i)};l.guid=s.guid;o.on(e,a,l)})()}return this};e.prototype.trigger=function e(t,r){p.trigger(this.el_,t,r);return this};e.prototype.ready=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(t){if(this.isReady_){if(r){t.call(this)}else{this.setTimeout(t,1)}}else{this.readyQueue_=this.readyQueue_||[];this.readyQueue_.push(t)}}return this};e.prototype.triggerReady=function e(){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 e(t,r){return a.$(t,r||this.contentEl())};e.prototype.$$=function e(t,r){return a.$$(t,r||this.contentEl())};e.prototype.hasClass=function e(t){return a.hasElClass(this.el_,t)};e.prototype.addClass=function e(t){a.addElClass(this.el_,t);return this};e.prototype.removeClass=function e(t){a.removeElClass(this.el_,t);return this};e.prototype.toggleClass=function e(t,r){a.toggleElClass(this.el_,t,r);return this};e.prototype.show=function e(){this.removeClass("vjs-hidden");return this};e.prototype.hide=function e(){this.addClass("vjs-hidden");return this};e.prototype.lockShowing=function e(){this.addClass("vjs-lock-showing");return this};e.prototype.unlockShowing=function e(){this.removeClass("vjs-lock-showing");return this};e.prototype.getAttribute=function e(t){return a.getAttribute(this.el_,t)};e.prototype.setAttribute=function e(t,r){a.setAttribute(this.el_,t,r);return this};e.prototype.removeAttribute=function e(t){a.removeAttribute(this.el_,t);return this};e.prototype.width=function e(t,r){return this.dimension("width",t,r)};e.prototype.height=function e(t,r){return this.dimension("height",t,r)};e.prototype.dimensions=function e(t,r){return this.width(t,true).height(r)};e.prototype.dimension=function e(t,r,n){if(r!==undefined){if(r===null||r!==r){r=0}if((""+r).indexOf("%")!==-1||(""+r).indexOf("px")!==-1){this.el_.style[t]=r}else if(r==="auto"){this.el_.style[t]=""}else{this.el_.style[t]=r+"px"}if(!n){this.trigger("resize")}return this}if(!this.el_){return 0}var o=this.el_.style[t];var i=o.indexOf("px");if(i!==-1){return parseInt(o.slice(0,i),10)}return parseInt(this.el_["offset"+(0,y["default"])(t)],10)};e.prototype.currentDimension=function e(t){var r=0;if(t!=="width"&&t!=="height"){throw new Error("currentDimension only accepts width or height value")}if(typeof o["default"].getComputedStyle==="function"){var n=o["default"].getComputedStyle(this.el_);r=n.getPropertyValue(t)||n[t]}r=parseFloat(r);if(r===0){var i="offset"+(0,y["default"])(t);r=this.el_[i]}return r};e.prototype.currentDimensions=function e(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}};e.prototype.currentWidth=function e(){return this.currentDimension("width")};e.prototype.currentHeight=function e(){return this.currentDimension("height")};e.prototype.emitTapEvents=function e(){var t=0;var r=null;var n=10;var o=200;var i=void 0;this.on("touchstart",(function(e){if(e.touches.length===1){r={pageX:e.touches[0].pageX,pageY:e.touches[0].pageY};t=(new Date).getTime();i=true}}));this.on("touchmove",(function(e){if(e.touches.length>1){i=false}else if(r){var t=e.touches[0].pageX-r.pageX;var o=e.touches[0].pageY-r.pageY;var a=Math.sqrt(t*t+o*o);if(a>n){i=false}}}));var a=function e(){i=false};this.on("touchleave",a);this.on("touchcancel",a);this.on("touchend",(function(e){r=null;if(i===true){var n=(new Date).getTime()-t;if(n<o){e.preventDefault();this.trigger("tap")}}}))};e.prototype.enableTouchActivity=function e(){if(!this.player()||!this.player().reportUserActivity){return}var t=u.bind(this.player(),this.player().reportUserActivity);var r=void 0;this.on("touchstart",(function(){t();this.clearInterval(r);r=this.setInterval(t,250)}));var n=function e(n){t();this.clearInterval(r)};this.on("touchmove",t);this.on("touchend",n);this.on("touchcancel",n)};e.prototype.setTimeout=function e(t,r){t=u.bind(this,t);var n=o["default"].setTimeout(t,r);var i=function e(){this.clearTimeout(n)};i.guid="vjs-timeout-"+n;this.on("dispose",i);return n};e.prototype.clearTimeout=function e(t){o["default"].clearTimeout(t);var r=function e(){};r.guid="vjs-timeout-"+t;this.off("dispose",r);return t};e.prototype.setInterval=function e(t,r){t=u.bind(this,t);var n=o["default"].setInterval(t,r);var i=function e(){this.clearInterval(n)};i.guid="vjs-interval-"+n;this.on("dispose",i);return n};e.prototype.clearInterval=function e(t){o["default"].clearInterval(t);var r=function e(){};r.guid="vjs-interval-"+t;this.off("dispose",r);return t};e.registerComponent=function t(r,n){if(!r){return}r=(0,y["default"])(r);if(!e.components_){e.components_={}}if(r==="Player"&&e.components_[r]){(function(){var t=e.components_[r];if(t.players&&Object.keys(t.players).length>0&&Object.keys(t.players).map((function(e){return t.players[e]})).every(Boolean)){throw new Error("Can not register Player component after player has been created")}})()}e.components_[r]=n;return n};e.getComponent=function t(r){if(!r){return}r=(0,y["default"])(r);if(e.components_&&e.components_[r]){return e.components_[r]}if(o["default"]&&o["default"].videojs&&o["default"].videojs[r]){d["default"].warn("The "+r+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)");return o["default"].videojs[r]}};e.extend=function t(r){r=r||{};d["default"].warn("Component.extend({}) has been deprecated, "+" use videojs.extend(Component, {}) instead");var n=r.init||r.init||this.prototype.init||this.prototype.init||function(){};var o=function e(){n.apply(this,arguments)};o.prototype=Object.create(this.prototype);o.prototype.constructor=o;o.extend=e.extend;for(var i in r){if(r.hasOwnProperty(i)){o.prototype[i]=r[i]}}return o};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 t(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)};t.prototype.createItems=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var r=this.player_.audioTracks&&this.player_.audioTracks();if(!r){return t}for(var n=0;n<r.length;n++){var o=r[n];t.push(new u["default"](this.player_,{track:o,selectable:true}))}return t};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 t(r){var n=this.player_.audioTracks();e.prototype.handleClick.call(this,r);if(!n){return}for(var o=0;o<n.length;o++){var i=n[o];i.enabled=i===this.track}};t.prototype.handleTracksChange=function e(t){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 t(){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 t(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)};t.prototype.handleFullscreenChange=function e(t){if(this.player_.isFullscreen()){this.controlText("Non-Fullscreen")}else{this.controlText("Fullscreen")}};t.prototype.handleClick=function e(t){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 t(){var r=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"});r.appendChild(this.contentEl_);return r};t.prototype.updateShowing=function e(t){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 t(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)};t.prototype.handleClick=function e(t){this.player_.muted(this.player_.muted()?false:true)};t.prototype.update=function e(t){var r=this.player_.volume();var n=3;if(r===0||this.player_.muted()){n=0}else if(r<.33){n=1}else if(r<.67){n=2}var o=this.player_.muted()?"Unmute":"Mute";if(this.controlText()!==o){this.controlText(o)}for(var i=0;i<4;i++){u.removeElClass(this.el_,"vjs-vol-"+i)}u.addElClass(this.el_,"vjs-vol-"+n)};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 t(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)};t.prototype.handleClick=function e(t){if(this.player_.paused()){this.player_.play()}else{this.player_.pause()}};t.prototype.handlePlay=function e(t){this.removeClass("vjs-paused");this.addClass("vjs-playing");this.controlText("Pause")};t.prototype.handlePause=function e(t){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 _(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 g=function(e){_(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 t(){var r=e.prototype.createEl.call(this);this.labelEl_=p.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1});r.appendChild(this.labelEl_);return r};t.prototype.buildCSSClass=function t(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)};t.prototype.createMenu=function e(){var t=new a["default"](this.player());var r=this.playbackRates();if(r){for(var n=r.length-1;n>=0;n--){t.addChild(new u["default"](this.player(),{rate:r[n]+"x"}))}}return t};t.prototype.updateARIAAttributes=function e(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())};t.prototype.handleClick=function e(t){var r=this.player().playbackRate();var n=this.playbackRates();var o=n[0];for(var i=0;i<n.length;i++){if(n[i]>r){o=n[i];break}}this.player().playbackRate(o)};t.prototype.playbackRates=function e(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates};t.prototype.playbackRateSupported=function e(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0};t.prototype.updateVisibility=function e(t){if(this.playbackRateSupported()){this.removeClass("vjs-hidden")}else{this.addClass("vjs-hidden")}};t.prototype.updateLabel=function e(t){if(this.playbackRateSupported()){this.labelEl_.innerHTML=this.player().playbackRate()+"x"}};return t}(o["default"]);g.prototype.controlText_="Playback Rate";c["default"].registerComponent("PlaybackRateMenuButton",g);r["default"]=g},{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 t(r){e.prototype.handleClick.call(this);this.player().playbackRate(this.rate)};t.prototype.update=function e(t){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 t(){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 e(t){var r=this.player_.buffered();var n=this.player_.duration();var o=this.player_.bufferedEnd();var i=this.partEls_;var s=function e(t,r){var n=t/r||0;return(n>=1?1:n)*100+"%"};this.el_.style.width=s(o,n);for(var u=0;u<r.length;u++){var l=r.start(u);var c=r.end(u);var f=i[u];if(!f){f=this.el_.appendChild(a.createEl());i[u]=f}f.style.left=s(l,o);f.style.width=s(c-l,o)}for(var p=i.length;p>r.length;p--){this.el_.removeChild(i[p-1])}i.length=r.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 _(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 g=function(e){_(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 t(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})};t.prototype.handleMouseMove=function e(t){var r=this.player_.duration();var n=this.calculateDistance(t)*r;var o=t.pageX-a.findElPosition(this.el().parentNode).left;this.update(n,o)};t.prototype.update=function e(t,r){var n=(0,c["default"])(t,this.player_.duration());this.el().style.left=r+"px";this.el().setAttribute("data-current-time",n);if(this.keepTooltipsInside){var o=this.clampPosition_(r);var i=r-o+1;var a=parseFloat((0,p["default"])(this.tooltip,"width"));var s=a/2;this.tooltip.innerHTML=n;this.tooltip.style.right="-"+(s-i)+"px"}};t.prototype.calculateDistance=function e(t){return a.getPointerPosition(this.el().parentNode,t).x};t.prototype.clampPosition_=function e(t){if(!this.keepTooltipsInside){return t}var r=parseFloat((0,p["default"])(this.player().el(),"width"));var n=parseFloat((0,p["default"])(this.tooltip,"width"));var o=n/2;var i=t;if(t<o){i=Math.ceil(o)}else if(t>r-o){i=Math.floor(r-o)}return i};return t}(o["default"]);o["default"].registerComponent("MouseTimeDisplay",g);r["default"]=g},{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 t(){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 e(t){var r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",(0,u["default"])(r,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 t(){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 _(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 g=function(e){_(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 t(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})};t.prototype.updateProgress=function e(t){this.updateAriaAttributes(this.el_);if(this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_);this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var r=parseFloat((0,p["default"])(this.player().el(),"width"));var n=parseFloat((0,p["default"])(this.tooltipProgressBar.tooltip,"width"));var o=this.tooltipProgressBar.el().style;o.maxWidth=Math.floor(r-n/2)+"px";o.minWidth=Math.ceil(n/2)+"px";o.right="-"+n/2+"px"}};t.prototype.updateAriaAttributes=function e(t){var r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();t.setAttribute("aria-valuenow",(this.getPercent()*100).toFixed(2));t.setAttribute("aria-valuetext",(0,c["default"])(r,this.player_.duration()))};t.prototype.getPercent=function e(){var t=this.player_.currentTime()/this.player_.duration();return t>=1?1:t};t.prototype.handleMouseDown=function t(r){this.player_.scrubbing(true);this.videoWasPlaying=!this.player_.paused();this.player_.pause();e.prototype.handleMouseDown.call(this,r)};t.prototype.handleMouseMove=function e(t){var r=this.calculateDistance(t)*this.player_.duration();if(r===this.player_.duration()){r=r-.1}this.player_.currentTime(r)};t.prototype.handleMouseUp=function t(r){e.prototype.handleMouseUp.call(this,r);this.player_.scrubbing(false);if(this.videoWasPlaying){this.player_.play()}};t.prototype.stepForward=function e(){this.player_.currentTime(this.player_.currentTime()+5)};t.prototype.stepBack=function e(){this.player_.currentTime(this.player_.currentTime()-5)};return t}(o["default"]);g.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"};g.prototype.playerEvent="timeupdate";a["default"].registerComponent("SeekBar",g);r["default"]=g},{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 t(){var r=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=r.querySelector(".vjs-time-tooltip");return r};t.prototype.updateDataAttr=function e(t){var r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();var n=(0,u["default"])(r,this.player_.duration());this.el_.setAttribute("data-current-time",n);this.tooltip.innerHTML=n};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 t(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)};t.prototype.createEl=function t(){var r=e.prototype.createEl.call(this,{className:this.buildCSSClass()});r.innerHTML="&nbsp;";return r};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 t(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)};t.prototype.createEl=function t(){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 e(t){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 t(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)};t.prototype.update=function t(r){var n=2;e.prototype.update.call(this);if(this.player().tech_&&this.player().tech_.featuresNativeTextTracks){n=1}if(this.items&&this.items.length>n){this.show()}else{this.hide()}};t.prototype.createItems=function t(){var r=[];if(!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)){r.push(new u["default"](this.player_,{kind:this.kind_}))}return e.prototype.createItems.call(this,r)};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 t(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)};t.prototype.update=function t(r){if(!this.track_||r&&(r.type==="addtrack"||r.type==="removetrack")){this.setTrack(this.findChaptersTrack())}e.prototype.update.call(this)};t.prototype.setTrack=function e(t){if(this.track_===t){return}if(!this.updateHandler_){this.updateHandler_=this.update.bind(this)}if(this.track_){var r=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);if(r){r.removeEventListener("load",this.updateHandler_)}this.track_=null}this.track_=t;if(this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);if(n){n.addEventListener("load",this.updateHandler_)}}};t.prototype.findChaptersTrack=function e(){var t=this.player_.textTracks()||[];for(var r=t.length-1;r>=0;r--){var n=t[r];if(n.kind===this.kind_){return n}}};t.prototype.getMenuCaption=function e(){if(this.track_&&this.track_.label){return this.track_.label}return this.localize((0,c["default"])(this.kind_))};t.prototype.createMenu=function t(){this.options_.title=this.getMenuCaption();return e.prototype.createMenu.call(this)};t.prototype.createItems=function e(){var t=[];if(!this.track_){return t}var r=this.track_.cues;if(!r){return t}for(var n=0,o=r.length;n<o;n++){var i=r[n];var a=new u["default"](this.player_,{track:this.track_,cue:i});t.push(a)}return t};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 t(r){e.prototype.handleClick.call(this);this.player_.currentTime(this.cue.startTime);this.update(this.cue.startTime)};t.prototype.update=function e(t){var r=this.cue;var n=this.player_.currentTime();this.selected(r.startTime<=n&&n<r.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 e(t){var r=this.player().textTracks();var n=false;for(var o=0,i=r.length;o<i;o++){var a=r[o];if(a.kind!==this.kind_&&a.mode==="showing"){n=true;break}}if(n){this.disable()}else{this.enable()}};t.prototype.buildCSSClass=function t(){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 e(t){var r=this.player().textTracks();var n=true;for(var o=0,i=r.length;o<i;o++){var a=r[o];if(a.kind===this.track.kind&&a.mode==="showing"){n=false;break}}this.selected(n)};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 t(){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 e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];t.push(new c["default"](this.player_,{kind:this.kind_}));var r=this.player_.textTracks();if(!r){return t}for(var n=0;n<r.length;n++){var o=r[n];if(o.kind===this.kind_){t.push(new u["default"](this.player_,{track:o,selectable:true}))}}return t};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 _(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 b=function(e){g(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=_(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(e){}}if(!e){e=h["default"].createEvent("Event");e.initEvent("change",true,true)}a.dispatchEvent(e)}))})()}return s}t.prototype.handleClick=function t(r){var n=this.track.kind;var o=this.player_.textTracks();e.prototype.handleClick.call(this,r);if(!o){return}for(var i=0;i<o.length;i++){var a=o[i];if(a.kind!==n){continue}if(a===this.track){a.mode="showing"}else{a.mode="disabled"}}};t.prototype.handleTracksChange=function e(t){this.selected(this.track.mode==="showing")};return t}(i["default"]);s["default"].registerComponent("TextTrackMenuItem",b);r["default"]=b},{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 t(){var r=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"});r.appendChild(this.contentEl_);return r};t.prototype.updateContent=function e(t){var r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();var n=this.localize("Current Time");var o=(0,u["default"])(r,this.player_.duration());if(o!==this.formattedTime_){this.formattedTime_=o;this.contentEl_.innerHTML='<span class="vjs-control-text">'+n+"</span> "+o}};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 t(){var r=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"});r.appendChild(this.contentEl_);return r};t.prototype.updateContent=function e(t){var r=this.player_.duration();if(r&&this.duration_!==r){this.duration_=r;var n=this.localize("Duration Time");var o=(0,u["default"])(r);this.contentEl_.innerHTML='<span class="vjs-control-text">'+n+"</span> "+o}};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 t(){var r=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"});r.appendChild(this.contentEl_);return r};t.prototype.updateContent=function e(t){if(this.player_.duration()){var r=this.localize("Remaining Time");var n=(0,u["default"])(this.player_.remainingTime());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("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 t(){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 t(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})};t.prototype.handleMouseMove=function e(t){this.checkMuted();this.player_.volume(this.calculateDistance(t))};t.prototype.checkMuted=function e(){if(this.player_.muted()){this.player_.muted(false)}};t.prototype.getPercent=function e(){if(this.player_.muted()){return 0}return this.player_.volume()};t.prototype.stepForward=function e(){this.checkMuted();this.player_.volume(this.player_.volume()+.1)};t.prototype.stepBack=function e(){this.checkMuted();this.player_.volume(this.player_.volume()-.1)};t.prototype.updateARIAAttributes=function e(t){var r=(this.player_.volume()*100).toFixed(2);this.el_.setAttribute("aria-valuenow",r);this.el_.setAttribute("aria-valuetext",r+"%")};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 t(){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 t(){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 _(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 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 m=function(e){b(t,e);function t(r){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_(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=g(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 t(){var r="";if(this.options_.vertical){r="vjs-volume-menu-button-vertical"}else{r="vjs-volume-menu-button-horizontal"}return"vjs-volume-menu-button "+e.prototype.buildCSSClass.call(this)+" "+r};t.prototype.createPopup=function e(){var t=new u["default"](this.player_,{contentElType:"div"});var r=new d["default"](this.player_,this.options_.volumeBar);t.addChild(r);this.menuContent=t;this.volumeBar=r;this.attachVolumeBarEvents();return t};t.prototype.handleClick=function t(r){p["default"].prototype.handleClick.call(this);e.prototype.handleClick.call(this)};t.prototype.attachVolumeBarEvents=function e(){this.menuContent.on(["mousedown","touchdown"],o.bind(this,this.handleMouseDown))};t.prototype.handleMouseDown=function e(t){this.on(["mousemove","touchmove"],o.bind(this.volumeBar,this.volumeBar.handleMouseMove));this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)};t.prototype.handleMouseUp=function e(t){this.off(["mousemove","touchmove"],o.bind(this.volumeBar,this.volumeBar.handleMouseMove))};return t}(c["default"]);m.prototype.volumeUpdate=p["default"].prototype.update;m.prototype.controlText_="Mute";a["default"].registerComponent("VolumeMenuButton",m);r["default"]=m},{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 t(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)};t.prototype.content=function e(t){if(t&&this.el_&&this.el_.children&&this.el_.children[1]){this.el_.children[1].innerText=t}var r=this.player().error();return r?this.localize(r.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 e(){};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 e(t,r){if(typeof r!=="function"&&r!==null){throw new TypeError("Super expression must either be null or a function, not "+(typeof r==="undefined"?"undefined":n(r)))}t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}});if(r){t.super_=r}};var l=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=function e(){t.apply(this,arguments)};var o={};if((0,a.isObject)(r)){if(typeof r.init==="function"){i["default"].warn("Constructor logic via init() is deprecated; please use constructor() instead.");r.constructor=r.init}if(r.constructor!==Object.prototype.constructor){n=r.constructor}o=r}else if(typeof r==="function"){n=r}u(n,t);for(var s in o){if(o.hasOwnProperty(s)){n.prototype[s]=o[s]}}return n};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 t(){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 _(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 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 m=function(e){b(t,e);function t(r){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_(this,t);var o=g(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 e(){var t=this.createMenu();if(this.menu){this.removeChild(this.menu)}this.menu=t;this.addChild(t);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 e(){var t=new u["default"](this.player_);if(this.options_.title){var r=c.createEl("li",{className:"vjs-menu-title",innerHTML:(0,d["default"])(this.options_.title),tabIndex:-1});t.children_.unshift(r);c.insertElFirst(r,t.contentEl())}this.items=this.createItems();if(this.items){for(var n=0;n<this.items.length;n++){t.addItem(this.items[n])}}return t};t.prototype.createItems=function e(){};t.prototype.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})};t.prototype.buildCSSClass=function t(){var r="vjs-menu-button";if(this.options_.inline===true){r+="-inline"}else{r+="-popup"}return"vjs-menu-button "+r+" "+e.prototype.buildCSSClass.call(this)};t.prototype.handleClick=function e(t){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 t(r){if(r.which===27||r.which===9){if(this.buttonPressed_){this.unpressButton()}if(r.which!==9){r.preventDefault()}}else if(r.which===38||r.which===40){if(!this.buttonPressed_){this.pressButton();r.preventDefault()}}else{e.prototype.handleKeyPress.call(this,r)}};t.prototype.handleSubmenuKeyPress=function e(t){if(t.which===27||t.which===9){if(this.buttonPressed_){this.unpressButton()}if(t.which!==9){t.preventDefault()}}};t.prototype.pressButton=function e(){if(this.enabled_){this.buttonPressed_=true;this.menu.lockShowing();this.el_.setAttribute("aria-expanded","true");this.menu.focus()}};t.prototype.unpressButton=function e(){if(this.enabled_){this.buttonPressed_=false;this.menu.unlockShowing();this.el_.setAttribute("aria-expanded","false");this.el_.focus()}};t.prototype.disable=function t(){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 t(){this.enabled_=true;return e.prototype.enable.call(this)};return t}(o["default"]);a["default"].registerComponent("MenuButton",m);r["default"]=m},{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 t(r,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 e(t){this.selected(true)};t.prototype.selected=function e(t){if(this.selectable){if(t){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 e(t){this.addChild(t);t.on("click",u.bind(this,(function(e){this.unlockShowing()})))};t.prototype.createEl=function t(){var r=this.options_.contentElType||"ul";this.contentEl_=a.createEl(r,{className:"vjs-menu-content"});this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});n.setAttribute("role","presentation");n.appendChild(this.contentEl_);c.on(n,"click",(function(e){e.preventDefault();e.stopImmediatePropagation()}));return n};t.prototype.handleKeyPress=function e(t){if(t.which===37||t.which===40){t.preventDefault();this.stepForward()}else if(t.which===38||t.which===39){t.preventDefault();this.stepBack()}};t.prototype.stepForward=function e(){var t=0;if(this.focusedChild_!==undefined){t=this.focusedChild_+1}this.focus(t)};t.prototype.stepBack=function e(){var t=0;if(this.focusedChild_!==undefined){t=this.focusedChild_-1}this.focus(t)};t.prototype.focus=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var r=this.children().slice();var n=r.length&&r[0].className&&/vjs-menu-title/.test(r[0].className);if(n){r.shift()}if(r.length>0){if(t<0){t=0}else if(t>=r.length){t=r.length-1}this.focusedChild_=t;r[t].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 t(){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 t(){return d+" vjs-hidden "+e.prototype.buildCSSClass.call(this)};t.prototype.handleKeyPress=function e(t){if(t.which===v&&this.closeable()){this.close()}};t.prototype.label=function e(){return this.options_.label||this.localize("Modal Window")};t.prototype.description=function e(){var t=this.options_.description||this.localize("This is a modal window.");if(this.closeable()){t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")}return t};t.prototype.open=function e(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen");this.opened_=true;if(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_){this.fill()}this.wasPlaying_=!t.paused();if(this.wasPlaying_){t.pause()}if(this.closeable()){this.on(this.el_.ownerDocument,"keydown",a.bind(this,this.handleKeyPress))}t.controls(false);this.show();this.el().setAttribute("aria-hidden","false");this.trigger("modalopen");this.hasBeenOpened_=true}return this};t.prototype.opened=function e(t){if(typeof t==="boolean"){this[t?"open":"close"]()}return this.opened_};t.prototype.close=function e(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose");this.opened_=false;if(this.wasPlaying_){t.play()}if(this.closeable()){this.off(this.el_.ownerDocument,"keydown",a.bind(this,this.handleKeyPress))}t.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 e(t){if(typeof t==="boolean"){var e=this.closeable_=!!t;var r=this.getChild("closeButton");if(e&&!r){var n=this.contentEl_;this.contentEl_=this.el_;r=this.addChild("closeButton",{controlText:"Close Modal Dialog"});this.contentEl_=n;this.on(r,"close",this.close)}if(!e&&r){this.off(r,"close",this.close);this.removeChild(r);r.dispose()}}return this.closeable_};t.prototype.fill=function e(){return this.fillWith(this.content())};t.prototype.fillWith=function e(t){var r=this.contentEl();var n=r.parentNode;var i=r.nextSibling;this.trigger("beforemodalfill");this.hasBeenFilled_=true;n.removeChild(r);this.empty();o.insertContent(r,t);this.trigger("modalfill");if(i){n.insertBefore(r,i)}else{n.appendChild(r)}return this};t.prototype.empty=function e(){this.trigger("beforemodalempty");o.emptyEl(this.contentEl());this.trigger("modalempty");return this};t.prototype.content=function e(t){if(typeof t!=="undefined"){this.content_=t}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 _=e(78);var g=q(_);var b=e(86);var m=$(b);var T=e(91);var w=$(T);var E=e(90);var C=e(79);var k=e(89);var O=q(k);var j=e(44);var S=$(j);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{m["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")}else{s.addClass("vjs-video")}if(s.flexNotSupported_()){s.addClass("vjs-no-flex")}if(!g.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 t(){var r=this.tag;var n=void 0;var o=this.playerElIngest_=r.parentNode&&r.parentNode.hasAttribute&&r.parentNode.hasAttribute("data-vjs-player");if(o){n=this.el_=r.parentNode}else{n=this.el_=e.prototype.createEl.call(this,"div")}r.removeAttribute("width");r.removeAttribute("height");var i=p.getElAttributes(r);Object.getOwnPropertyNames(i).forEach((function(e){if(e==="class"){n.className+=" "+i[e]}else{n.setAttribute(e,i[e])}}));r.playerId=r.id;r.id+="_html5_api";r.className="vjs-tech";r.player=n.player=this;this.addClass("vjs-paused");if(u["default"].VIDEOJS_NO_DYNAMIC_STYLE!==true){this.styleEl_=O.createStyleElement("vjs-styles-dimensions");var a=p.$(".vjs-styles-defaults");var s=p.$("head");s.insertBefore(this.styleEl_,a?a.nextSibling:s.firstChild)}this.width(this.options_.width);this.height(this.options_.height);this.fluid(this.options_.fluid);this.aspectRatio(this.options_.aspectRatio);var l=r.getElementsByTagName("a");for(var c=0;c<l.length;c++){var f=l.item(c);p.addElClass(f,"vjs-hidden");f.setAttribute("hidden","hidden")}r.initNetworkState_=r.networkState;if(r.parentNode&&!o){r.parentNode.insertBefore(n,r)}p.insertElFirst(r,n);this.children_.unshift(r);this.el_=n;return n};t.prototype.width=function e(t){return this.dimension("width",t)};t.prototype.height=function e(t){return this.dimension("height",t)};t.prototype.dimension=function e(t,r){var n=t+"_";if(r===undefined){return this[n]||0}if(r===""){this[n]=undefined}else{var o=parseFloat(r);if(isNaN(o)){m["default"].error('Improper value "'+r+'" supplied for for '+t);return this}this[n]=o}this.updateStyleEl_();return this};t.prototype.fluid=function e(t){if(t===undefined){return!!this.fluid_}this.fluid_=!!t;if(t){this.addClass("vjs-fluid")}else{this.removeClass("vjs-fluid")}this.updateStyleEl_()};t.prototype.aspectRatio=function e(t){if(t===undefined){return this.aspectRatio_}if(!/^\d+\:\d+$/.test(t)){throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.")}this.aspectRatio_=t;this.fluid(true);this.updateStyleEl_()};t.prototype.updateStyleEl_=function e(){if(u["default"].VIDEOJS_NO_DYNAMIC_STYLE===true){var t=typeof this.width_==="number"?this.width_:this.options_.width;var r=typeof this.height_==="number"?this.height_:this.options_.height;var n=this.tech_&&this.tech_.el();if(n){if(t>=0){n.width=t}if(r>=0){n.height=r}}return}var o=void 0;var i=void 0;var a=void 0;var s=void 0;if(this.aspectRatio_!==undefined&&this.aspectRatio_!=="auto"){a=this.aspectRatio_}else if(this.videoWidth()>0){a=this.videoWidth()+":"+this.videoHeight()}else{a="16:9"}var l=a.split(":");var c=l[1]/l[0];if(this.width_!==undefined){o=this.width_}else if(this.height_!==undefined){o=this.height_/c}else{o=this.videoWidth()||300}if(this.height_!==undefined){i=this.height_}else{i=o*c}if(/^[^a-zA-Z]/.test(this.id())){s="dimensions-"+this.id()}else{s=this.id()+"-dimensions"}this.addClass(s);O.setTextContent(this.styleEl_,"\n      ."+s+" {\n        width: "+o+"px;\n        height: "+i+"px;\n      }\n\n      ."+s+".vjs-fluid {\n        padding-top: "+c*100+"%;\n      }\n    ")};t.prototype.loadTech_=function e(t,r){var n=this;if(this.tech_){this.unloadTech_()}if(t!=="Html5"&&this.tag){V["default"].getTech("Html5").disposeMediaElement(this.tag);this.tag.player=null;this.tag=null}this.techName_=t;this.isReady_=false;var i=(0,I.assign)({source:r,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+t+"_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_[t.toLowerCase()]);if(this.tag){i.tag=this.tag}if(r){this.currentType_=r.type;if(r.src===this.cache_.src&&this.cache_.currentTime>0){i.startTime=this.cache_.currentTime}this.cache_.sources=null;this.cache_.source=r;this.cache_.src=r.src}var a=V["default"].getTech(t);if(!a){a=o["default"].getComponent(t)}this.tech_=new a(i);this.tech_.ready(d.bind(this,this.handleTechReady_),true);L["default"].jsonToTextTracks(this.textTracksJson_||[],this.tech_);J.forEach((function(e){n.on(n.tech_,e,n["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()&&(t!=="Html5"||!this.tag)){p.insertElFirst(this.tech_.el(),this.el())}if(this.tag){this.tag.player=null;this.tag=null}};t.prototype.unloadTech_=function e(){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 e(t){if(t&&t.IWillNotUseThisInPlugins){return this.tech_}var r="\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(r);throw new Error(r)};t.prototype.addTechControlsListeners_=function e(){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 e(){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 e(){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,m["default"])("deleting tag.poster throws in some browsers",e)}this.play()}};t.prototype.handleTechLoadStart_=function e(){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 e(t){if(t!==undefined){if(this.hasStarted_!==t){this.hasStarted_=t;if(t){this.addClass("vjs-has-started");this.trigger("firstplay")}else{this.removeClass("vjs-has-started")}}return this}return!!this.hasStarted_};t.prototype.handleTechPlay_=function e(){this.removeClass("vjs-ended");this.removeClass("vjs-paused");this.addClass("vjs-playing");this.hasStarted(true);this.trigger("play")};t.prototype.handleTechWaiting_=function e(){var t=this;t.addClass("vjs-waiting");this.trigger("waiting");this.one("timeupdate",(function(){return t.removeClass("vjs-waiting")}))};t.prototype.handleTechCanPlay_=function e(){this.removeClass("vjs-waiting");this.trigger("canplay")};t.prototype.handleTechCanPlayThrough_=function e(){this.removeClass("vjs-waiting");this.trigger("canplaythrough")};t.prototype.handleTechPlaying_=function e(){this.removeClass("vjs-waiting");this.trigger("playing")};t.prototype.handleTechSeeking_=function e(){this.addClass("vjs-seeking");this.trigger("seeking")};t.prototype.handleTechSeeked_=function e(){this.removeClass("vjs-seeking");this.trigger("seeked")};t.prototype.handleTechFirstPlay_=function e(){if(this.options_.starttime){m["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 e(){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.trigger("pause")};t.prototype.handleTechEnded_=function e(){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 e(){this.duration(this.techGet_("duration"))};t.prototype.handleTechClick_=function e(t){if(t.button!==0){return}if(this.controls()){if(this.paused()){this.play()}else{this.pause()}}};t.prototype.handleTechTap_=function e(){this.userActive(!this.userActive())};t.prototype.handleTechTouchStart_=function e(){this.userWasActive=this.userActive()};t.prototype.handleTechTouchMove_=function e(){if(this.userWasActive){this.reportUserActivity()}};t.prototype.handleTechTouchEnd_=function e(t){t.preventDefault()};t.prototype.handleFullscreenChange_=function e(){if(this.isFullscreen()){this.addClass("vjs-fullscreen")}else{this.removeClass("vjs-fullscreen")}};t.prototype.handleStageClick_=function e(){this.reportUserActivity()};t.prototype.handleTechFullscreenChange_=function e(t,r){if(r){this.isFullscreen(r.isFullscreen)}this.trigger("fullscreenchange")};t.prototype.handleTechError_=function e(){var t=this.tech_.error();this.error(t)};t.prototype.handleTechTextData_=function e(){var t=null;if(arguments.length>1){t=arguments[1]}this.trigger("textdata",t)};t.prototype.getCache=function e(){return this.cache_};t.prototype.techCall_=function e(t,r){if(this.tech_&&!this.tech_.isReady_){this.tech_.ready((function(){this[t](r)}),true)}else{try{if(this.tech_){this.tech_[t](r)}}catch(e){(0,m["default"])(e);throw e}}};t.prototype.techGet_=function e(t){if(this.tech_&&this.tech_.isReady_){try{return this.tech_[t]()}catch(e){if(this.tech_[t]===undefined){(0,m["default"])("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e)}else if(e.name==="TypeError"){(0,m["default"])("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e);this.tech_.isReady_=false}else{(0,m["default"])(e)}throw e}}return};t.prototype.play=function e(){if(this.src()||this.currentSrc()){this.techCall_("play")}else{this.tech_.one("loadstart",(function(){this.play()}))}return this};t.prototype.pause=function e(){this.techCall_("pause");return this};t.prototype.paused=function e(){return this.techGet_("paused")===false?false:true};t.prototype.scrubbing=function e(t){if(t!==undefined){this.scrubbing_=!!t;if(t){this.addClass("vjs-scrubbing")}else{this.removeClass("vjs-scrubbing")}return this}return this.scrubbing_};t.prototype.currentTime=function e(t){if(t!==undefined){this.techCall_("setCurrentTime",t);return this}this.cache_.currentTime=this.techGet_("currentTime")||0;return this.cache_.currentTime};t.prototype.duration=function e(t){if(t===undefined){return this.cache_.duration||0}t=parseFloat(t)||0;if(t<0){t=Infinity}if(t!==this.cache_.duration){this.cache_.duration=t;if(t===Infinity){this.addClass("vjs-live")}else{this.removeClass("vjs-live")}this.trigger("durationchange")}return this};t.prototype.remainingTime=function e(){return this.duration()-this.currentTime()};t.prototype.buffered=function e(){var e=this.techGet_("buffered");if(!e||!e.length){e=(0,E.createTimeRange)(0,0)}return e};t.prototype.bufferedPercent=function e(){return(0,C.bufferedPercent)(this.buffered(),this.duration())};t.prototype.bufferedEnd=function e(){var t=this.buffered();var r=this.duration();var n=t.end(t.length-1);if(n>r){n=r}return n};t.prototype.volume=function e(t){var r=void 0;if(t!==undefined){r=Math.max(0,Math.min(1,parseFloat(t)));this.cache_.volume=r;this.techCall_("setVolume",r);return this}r=parseFloat(this.techGet_("volume"));return isNaN(r)?1:r};t.prototype.muted=function e(t){if(t!==undefined){this.techCall_("setMuted",t);return this}return this.techGet_("muted")||false};t.prototype.supportsFullScreen=function e(){return this.techGet_("supportsFullScreen")||false};t.prototype.isFullscreen=function e(t){if(t!==undefined){this.isFullscreen_=!!t;return this}return!!this.isFullscreen_};t.prototype.requestFullscreen=function e(){var t=S["default"];this.isFullscreen(true);if(t.requestFullscreen){c.on(a["default"],t.fullscreenchange,d.bind(this,(function e(r){this.isFullscreen(a["default"][t.fullscreenElement]);if(this.isFullscreen()===false){c.off(a["default"],t.fullscreenchange,e)}this.trigger("fullscreenchange")})));this.el_[t.requestFullscreen]()}else if(this.tech_.supportsFullScreen()){this.techCall_("enterFullScreen")}else{this.enterFullWindow();this.trigger("fullscreenchange")}return this};t.prototype.exitFullscreen=function e(){var t=S["default"];this.isFullscreen(false);if(t.requestFullscreen){a["default"][t.exitFullscreen]()}else if(this.tech_.supportsFullScreen()){this.techCall_("exitFullScreen")}else{this.exitFullWindow();this.trigger("fullscreenchange")}return this};t.prototype.enterFullWindow=function e(){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 e(t){if(t.keyCode===27){if(this.isFullscreen()===true){this.exitFullscreen()}else{this.exitFullWindow()}}};t.prototype.exitFullWindow=function e(){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 e(t){var r=void 0;for(var n=0,i=this.options_.techOrder;n<i.length;n++){var a=(0,w["default"])(i[n]);var s=V["default"].getTech(a);if(!s){s=o["default"].getComponent(a)}if(!s){m["default"].error('The "'+a+'" tech is undefined. Skipped browser support check for that tech.');continue}if(s.isSupported()){r=s.canPlayType(t);if(r){return r}}}return""};t.prototype.selectSource=function e(t){var r=this;var n=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()}m["default"].error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.');return false}));var i=function e(t,r,n){var o=void 0;t.some((function(e){return r.some((function(t){o=n(e,t);if(o){return true}}))}));return o};var a=void 0;var s=function e(t){return function(e,r){return t(r,e)}};var u=function e(t,n){var o=t[0],i=t[1];if(i.canPlaySource(n,r.options_[o.toLowerCase()])){return{source:n,tech:o}}};if(this.options_.sourceOrder){a=i(t,n,s(u))}else{a=i(n,t,u)}return a||false};t.prototype.src=function e(t){if(t===undefined){return this.techGet_("src")}var r=V["default"].getTech(this.techName_);if(!r){r=o["default"].getComponent(this.techName_)}if(Array.isArray(t)){this.sourceList_(t)}else if(typeof t==="string"){this.src({src:t})}else if(t instanceof Object){if(t.type&&!r.canPlaySource(t,this.options_[this.techName_.toLowerCase()])){this.sourceList_([t])}else{this.cache_.sources=null;this.cache_.source=t;this.cache_.src=t.src;this.currentType_=t.type||"";this.ready((function(){if(r.prototype.hasOwnProperty("setSource")){this.techCall_("setSource",t)}else{this.techCall_("src",t.src)}if(this.options_.preload==="auto"){this.load()}if(this.options_.autoplay){this.play()}}),true)}}return this};t.prototype.sourceList_=function e(t){var r=this.selectSource(t);if(r){if(r.tech===this.techName_){this.src(r.source)}else{this.loadTech_(r.tech,r.source)}this.cache_.sources=t}else{this.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0);this.triggerReady()}};t.prototype.load=function e(){this.techCall_("load");return this};t.prototype.reset=function e(){this.loadTech_((0,w["default"])(this.options_.techOrder[0]),null);this.techCall_("reset");return this};t.prototype.currentSources=function e(){var t=this.currentSource();var r=[];if(Object.keys(t).length!==0){r.push(t)}return this.cache_.sources||r};t.prototype.currentSource=function e(){var t={};var r=this.currentSrc();if(r){t.src=r}return this.cache_.source||t};t.prototype.currentSrc=function e(){return this.techGet_("currentSrc")||this.cache_.src||""};t.prototype.currentType=function e(){return this.currentType_||""};t.prototype.preload=function e(t){if(t!==undefined){this.techCall_("setPreload",t);this.options_.preload=t;return this}return this.techGet_("preload")};t.prototype.autoplay=function e(t){if(t!==undefined){this.techCall_("setAutoplay",t);this.options_.autoplay=t;return this}return this.techGet_("autoplay",t)};t.prototype.loop=function e(t){if(t!==undefined){this.techCall_("setLoop",t);this.options_.loop=t;return this}return this.techGet_("loop")};t.prototype.poster=function e(t){if(t===undefined){return this.poster_}if(!t){t=""}this.poster_=t;this.techCall_("setPoster",t);this.trigger("posterchange");return this};t.prototype.handleTechPosterChange_=function e(){if(!this.poster_&&this.tech_&&this.tech_.poster){this.poster_=this.tech_.poster()||"";this.trigger("posterchange")}};t.prototype.controls=function e(t){if(t!==undefined){t=!!t;if(this.controls_!==t){this.controls_=t;if(this.usingNativeControls()){this.techCall_("setControls",t)}if(t){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 e(t){if(t!==undefined){t=!!t;if(this.usingNativeControls_!==t){this.usingNativeControls_=t;if(t){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 e(t){if(t===undefined){return this.error_||null}if(t===null){this.error_=t;this.removeClass("vjs-error");if(this.errorDisplay){this.errorDisplay.close()}return this}if(t instanceof P["default"]&&t.code){if(this.options_.errorMessages&&this.options_.errorMessages[t.code]){t.message=this.options_.errorMessages[t.code]}}this.error_=new P["default"](t);this.addClass("vjs-error");m["default"]("(CODE:"+this.error_.code+" "+P["default"].errorTypes[this.error_.code]+")",this.error_.message,this.error_);this.trigger("error");return this};t.prototype.reportUserActivity=function e(t){this.userActivity_=true};t.prototype.userActive=function e(t){if(t!==undefined){t=!!t;if(t!==this.userActive_){this.userActive_=t;if(t){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 e(){var t=void 0;var r=void 0;var n=void 0;var o=d.bind(this,this.reportUserActivity);var i=function e(t){if(t.screenX!==r||t.screenY!==n){r=t.screenX;n=t.screenY;o()}};var a=function e(){o();this.clearInterval(t);t=this.setInterval(o,250)};var s=function e(r){o();this.clearInterval(t)};this.on("mousedown",a);this.on("mousemove",i);this.on("mouseup",s);this.on("keydown",o);this.on("keyup",o);var u=void 0;this.setInterval((function(){if(this.userActivity_){this.userActivity_=false;this.userActive(true);this.clearTimeout(u);var e=this.options_.inactivityTimeout;if(e>0){u=this.setTimeout((function(){if(!this.userActivity_){this.userActive(false)}}),e)}}}),250)};t.prototype.playbackRate=function e(t){if(t!==undefined){this.techCall_("setPlaybackRate",t);return this}if(this.tech_&&this.tech_.featuresPlaybackRate){return this.techGet_("playbackRate")}return 1};t.prototype.isAudio=function e(t){if(t!==undefined){this.isAudio_=!!t;return this}return!!this.isAudio_};t.prototype.videoTracks=function e(){if(!this.tech_){this.videoTracks_=this.videoTracks_||new X["default"];return this.videoTracks_}return this.tech_.videoTracks()};t.prototype.audioTracks=function e(){if(!this.tech_){this.audioTracks_=this.audioTracks_||new W["default"];return this.audioTracks_}return this.tech_.audioTracks()};t.prototype.textTracks=function e(){if(this.tech_){return this.tech_.textTracks()}};t.prototype.remoteTextTracks=function e(){if(this.tech_){return this.tech_.remoteTextTracks()}};t.prototype.remoteTextTrackEls=function e(){if(this.tech_){return this.tech_.remoteTextTrackEls()}};t.prototype.addTextTrack=function e(t,r,n){if(this.tech_){return this.tech_.addTextTrack(t,r,n)}};t.prototype.addRemoteTextTrack=function e(t,r){if(this.tech_){return this.tech_.addRemoteTextTrack(t,r)}};t.prototype.removeRemoteTextTrack=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},r=t.track,n=r===undefined?arguments[0]:r;if(this.tech_){return this.tech_.removeRemoteTextTrack(n)}};t.prototype.videoWidth=function e(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0};t.prototype.videoHeight=function e(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0};t.prototype.language=function e(t){if(t===undefined){return this.language_}this.language_=String(t).toLowerCase();return this};t.prototype.languages=function e(){return(0,N["default"])(t.prototype.options_.languages,this.languages_)};t.prototype.toJSON=function e(){var t=(0,N["default"])(this.options_);var r=t.tracks;t.tracks=[];for(var n=0;n<r.length;n++){var o=r[n];o=(0,N["default"])(o);o.player=undefined;t.tracks[n]=o}return t};t.prototype.createModal=function e(t,r){var n=this;r=r||{};r.content=t||"";var o=new B["default"](this,r);this.addChild(o);o.on("dispose",(function(){n.removeChild(o)}));return o.open()};t.getTagSettings=function e(t){var r={sources:[],tracks:[]};var n=p.getElAttributes(t);var o=n["data-setup"];if(p.hasElClass(t,"vjs-fluid")){n.fluid=true}if(o!==null){var i=(0,A["default"])(o||"{}"),a=i[0],s=i[1];if(a){m["default"].error(a)}(0,I.assign)(n,s)}(0,I.assign)(r,n);if(t.hasChildNodes()){var u=t.childNodes;for(var l=0,c=u.length;l<c;l++){var f=u[l];var h=f.nodeName.toLowerCase();if(h==="source"){r.sources.push(p.getElAttributes(f))}else if(h==="track"){r.tracks.push(p.getElAttributes(f))}}}return r};t.prototype.flexNotSupported_=function e(){var t=a["default"].createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.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 e(t,r){o["default"].prototype[t]=r};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 e(){var t=this.createPopup();if(this.popup){this.removeChild(this.popup)}this.popup=t;this.addChild(t);if(this.items&&this.items.length===0){this.hide()}else if(this.items&&this.items.length>1){this.show()}};t.prototype.createPopup=function e(){};t.prototype.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})};t.prototype.buildCSSClass=function t(){var r="vjs-menu-button";if(this.options_.inline===true){r+="-inline"}else{r+="-popup"}return"vjs-menu-button "+r+" "+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 e(t){this.addChild(t);t.on("click",u.bind(this,(function(){this.unlockShowing()})))};t.prototype.createEl=function t(){var r=this.options_.contentElType||"ul";this.contentEl_=a.createEl(r,{className:"vjs-menu-content"});var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});n.appendChild(this.contentEl_);c.on(n,"click",(function(e){e.preventDefault();e.stopImmediatePropagation()}));return n};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 _(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 g=function(e){_(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 t(){this.player().off("posterchange",this.update);e.prototype.dispose.call(this)};t.prototype.createEl=function e(){var t=c.createEl("div",{className:"vjs-poster",tabIndex:-1});if(!p.BACKGROUND_SIZE_SUPPORTED){this.fallbackImg_=c.createEl("img");t.appendChild(this.fallbackImg_)}return t};t.prototype.update=function e(t){var r=this.player().poster();this.setSrc(r);if(r){this.show()}else{this.hide()}};t.prototype.setSrc=function e(t){if(this.fallbackImg_){this.fallbackImg_.src=t}else{var r="";if(t){r='url("'+t+'")'}this.el_.style.backgroundImage=r}};t.prototype.handleClick=function e(t){if(!this.player_.controls()){return}if(this.player_.paused()){this.player_.play()}else{this.player_.pause()}};return t}(o["default"]);a["default"].registerComponent("PosterImage",g);r["default"]=g},{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 e(){if(!o.isReal()){return}var t=u["default"].getElementsByTagName("video");var r=u["default"].getElementsByTagName("audio");var n=[];if(t&&t.length>0){for(var i=0,a=t.length;i<a;i++){n.push(t[i])}}if(r&&r.length>0){for(var s=0,l=r.length;s<l;s++){n.push(r[s])}}if(n&&n.length>0){for(var c=0,f=n.length;c<f;c++){var p=n[c];if(p&&p.getAttribute){if(p.player===undefined){var v=p.getAttribute("data-setup");if(v!==null){d(p)}}}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 _=function e(){return h};r.autoSetup=v;r.autoSetupTimeout=y;r.hasLoaded=_},{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 t(r){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var o=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};n.className=n.className+" vjs-slider";n=(0,s.assign)({tabIndex:0},n);o=(0,s.assign)({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},o);return e.prototype.createEl.call(this,r,n,o)};t.prototype.handleMouseDown=function e(t){var r=this.bar.el_.ownerDocument;t.preventDefault();a.blockTextSelection();this.addClass("vjs-sliding");this.trigger("slideractive");this.on(r,"mousemove",this.handleMouseMove);this.on(r,"mouseup",this.handleMouseUp);this.on(r,"touchmove",this.handleMouseMove);this.on(r,"touchend",this.handleMouseUp);this.handleMouseMove(t)};t.prototype.handleMouseMove=function e(t){};t.prototype.handleMouseUp=function e(){var t=this.bar.el_.ownerDocument;a.unblockTextSelection();this.removeClass("vjs-sliding");this.trigger("sliderinactive");this.off(t,"mousemove",this.handleMouseMove);this.off(t,"mouseup",this.handleMouseUp);this.off(t,"touchmove",this.handleMouseMove);this.off(t,"touchend",this.handleMouseUp);this.update()};t.prototype.update=function e(){if(!this.el_){return}var t=this.getPercent();var r=this.bar;if(!r){return}if(typeof t!=="number"||t!==t||t<0||t===Infinity){t=0}var n=(t*100).toFixed(2)+"%";if(this.vertical()){r.el().style.height=n}else{r.el().style.width=n}};t.prototype.calculateDistance=function e(t){var r=a.getPointerPosition(this.el_,t);if(this.vertical()){return r.y}return r.x};t.prototype.handleFocus=function e(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)};t.prototype.handleKeyPress=function e(t){if(t.which===37||t.which===40){t.preventDefault();this.stepBack()}else if(t.which===38||t.which===39){t.preventDefault();this.stepForward()}};t.prototype.handleBlur=function e(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)};t.prototype.handleClick=function e(t){t.stopImmediatePropagation();t.preventDefault()};t.prototype.vertical=function e(t){if(t===undefined){return this.vertical_||false}this.vertical_=!!t;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=g(n);var i=e(81);var a=_(i);var s=e(92);var u=_(s);var l=e(90);var c=e(58);var f=g(c);var p=e(5);var h=g(p);var d=e(95);var v=g(d);var y=e(88);function _(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 b(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 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){b(this,t);var o=m(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 e(){var r=this.options_;if(!r.swf){var n="5.1.0";r.swf="//vjs.zencdn.net/swf/"+n+"/video-js.swf"}var o=r.techId;var i=(0,y.assign)({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:r.autoplay,preload:r.preload,loop:r.loop,muted:r.muted},r.flashVars);var a=(0,y.assign)({wmode:"opaque",bgcolor:"#000000"},r.params);var s=(0,y.assign)({id:o,name:o,class:"vjs-tech"},r.attributes);this.el_=t.embed(r.swf,i,a,s);this.el_.tech=this;return this.el_};t.prototype.play=function e(){if(this.ended()){this.setCurrentTime(0)}this.el_.vjs_play()};t.prototype.pause=function e(){this.el_.vjs_pause()};t.prototype.src=function e(t){if(t===undefined){return this.currentSrc()}return this.setSrc(t)};t.prototype.setSrc=function e(t){var r=this;t=u.getAbsoluteURL(t);this.el_.vjs_src(t);if(this.autoplay()){this.setTimeout((function(){return r.play()}),0)}};t.prototype.seeking=function e(){return this.lastSeekTarget_!==undefined};t.prototype.setCurrentTime=function t(r){var n=this.seekable();if(n.length){r=r>n.start(0)?r:n.start(0);r=r<n.end(n.length-1)?r:n.end(n.length-1);this.lastSeekTarget_=r;this.trigger("seeking");this.el_.vjs_setProperty("currentTime",r);e.prototype.setCurrentTime.call(this)}};t.prototype.currentTime=function e(){if(this.seeking()){return this.lastSeekTarget_||0}return this.el_.vjs_getProperty("currentTime")};t.prototype.currentSrc=function e(){if(this.currentSource_){return this.currentSource_.src}return this.el_.vjs_getProperty("currentSrc")};t.prototype.duration=function e(){if(this.readyState()===0){return NaN}var e=this.el_.vjs_getProperty("duration");return e>=0?e:Infinity};t.prototype.load=function e(){this.el_.vjs_load()};t.prototype.poster=function e(){this.el_.vjs_getProperty("poster")};t.prototype.setPoster=function e(){};t.prototype.seekable=function e(){var t=this.duration();if(t===0){return(0,l.createTimeRange)()}return(0,l.createTimeRange)(0,t)};t.prototype.buffered=function e(){var t=this.el_.vjs_getProperty("buffered");if(t.length===0){return(0,l.createTimeRange)()}return(0,l.createTimeRange)(t[0][0],t[0][1])};t.prototype.supportsFullScreen=function e(){return false};t.prototype.enterFullScreen=function e(){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 j(e){var t=e.charAt(0).toUpperCase()+e.slice(1);C["set"+t]=function(t){return this.el_.vjs_setProperty(e,t)}}function S(e){C[e]=function(){return this.el_.vjs_getProperty(e)}}for(var x=0;x<k.length;x++){S(k[x]);j(k[x])}for(var P=0;P<O.length;P++){S(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(e){}}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]+"&amp;"}))}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 _=e(98);var g=M(_);var b=e(78);var m=P(b);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 j=M(O);var S=e(91);var x=M(S);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 _=["audio","video"];_.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,g["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((m.TOUCH_ENABLED||m.IS_IPHONE||m.IS_NATIVE_ANDROID)&&r.nativeControlsForTouch===true){i.setControls(true)}i.proxyWebkitFullscreen_();i.triggerReady();return i}t.prototype.dispose=function r(){var n=this;["audio","video","text"].forEach((function(e){var t=(0,x["default"])(e);var r=n.el_[e+"Tracks"];if(r&&r.removeEventListener){r.removeEventListener("change",n["handle"+t+"TrackChange_"]);r.removeEventListener("addtrack",n["handle"+t+"TrackAdd_"]);r.removeEventListener("removetrack",n["handle"+t+"TrackRemove_"])}if(r){n.off("loadstart",n["removeOld"+t+"Tracks_"])}}));t.disposeMediaElement(this.el_);e.prototype.dispose.call(this)};t.prototype.createEl=function e(){var r=this.options_.tag;if(!r||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(r){var n=r.cloneNode(true);if(r.parentNode){r.parentNode.insertBefore(n,r)}t.disposeMediaElement(r);r=n}else{r=w["default"].createElement("video");var o=this.options_.tag&&c.getElAttributes(this.options_.tag);var i=(0,j["default"])({},o);if(!m.TOUCH_ENABLED||this.options_.nativeControlsForTouch!==true){delete i.controls}c.setElAttributes(r,(0,k.assign)(i,{id:this.options_.techId,class:"vjs-tech"}))}r.playerId=this.options_.playerId}var a=["autoplay","preload","loop","muted"];for(var s=a.length-1;s>=0;s--){var u=a[s];var l={};if(typeof this.options_[u]!=="undefined"){l[u]=this.options_[u]}c.setElAttributes(r,l)}return r};t.prototype.handleLateInit_=function e(t){var r=this;if(t.networkState===0||t.networkState===3){return}if(t.readyState===0){var o=function(){var e=false;var t=function t(){e=true};r.on("loadstart",t);var n=function t(){if(!e){this.trigger("loadstart")}};r.on("loadedmetadata",n);r.ready((function(){this.off("loadstart",t);this.off("loadedmetadata",n);if(!e){this.trigger("loadstart")}}));return{v:void 0}}();if((typeof o==="undefined"?"undefined":n(o))==="object")return o.v}var i=["loadstart"];i.push("loadedmetadata");if(t.readyState>=2){i.push("loadeddata")}if(t.readyState>=3){i.push("canplay")}if(t.readyState>=4){i.push("canplaythrough")}this.ready((function(){i.forEach((function(e){this.trigger(e)}),this)}))};t.prototype.proxyNativeTextTracks_=function e(){var t=this.el().textTracks;if(t){for(var r=0;r<t.length;r++){this.textTracks().addTrack_(t[r])}if(t.addEventListener){t.addEventListener("change",this.handleTextTrackChange_);t.addEventListener("addtrack",this.handleTextTrackAdd_);t.addEventListener("removetrack",this.handleTextTrackRemove_)}this.on("loadstart",this.removeOldTextTracks_)}};t.prototype.handleTextTrackChange=function e(t){var r=this.textTracks();this.textTracks().trigger({type:"change",target:r,currentTarget:r,srcElement:r})};t.prototype.handleTextTrackAdd=function e(t){this.textTracks().addTrack_(t.track)};t.prototype.handleTextTrackRemove=function e(t){this.textTracks().removeTrack_(t.track)};t.prototype.removeOldTracks_=function e(t,r){var n=[];if(!r){return}for(var o=0;o<t.length;o++){var i=t[o];var a=false;for(var s=0;s<r.length;s++){if(r[s]===i){a=true;break}}if(!a){n.push(i)}}for(var u=0;u<n.length;u++){var l=n[u];t.removeTrack_(l)}};t.prototype.removeOldTextTracks_=function e(t){var r=this.textTracks();var n=this.el().textTracks;this.removeOldTracks_(r,n)};t.prototype.play=function e(){var t=this.el_.play();if(t!==undefined&&typeof t.then==="function"){t.then(null,(function(e){}))}};t.prototype.setCurrentTime=function e(t){try{this.el_.currentTime=t}catch(e){(0,y["default"])(e,"Video is not ready. (Video.js)")}};t.prototype.duration=function e(){var t=this;if(this.el_.duration===Infinity&&!this.durationLoaded){this.el_.addEventListener("durationchange",(()=>{this.durationLoaded=true;this.el_.currentTime=0;this.trigger("durationchange")}),false);this.el_.currentTime=2*60*60}if(this.el_.duration===Infinity&&m.IS_ANDROID&&m.IS_CHROME){if(this.el_.currentTime===0){var r=function(){var e=function e(){if(t.el_.currentTime>0){if(t.el_.duration===Infinity){t.trigger("durationchange")}t.off("timeupdate",e)}};t.on("timeupdate",e);return{v:NaN}}();if((typeof r==="undefined"?"undefined":n(r))==="object")return r.v}}return this.el_.duration||NaN};t.prototype.width=function e(){return this.el_.offsetWidth};t.prototype.height=function e(){return this.el_.offsetHeight};t.prototype.proxyWebkitFullscreen_=function e(){var t=this;if(!("webkitDisplayingFullscreen"in this.el_)){return}var r=function e(){this.trigger("fullscreenchange",{isFullscreen:false})};var n=function e(){this.one("webkitendfullscreen",r);this.trigger("fullscreenchange",{isFullscreen:true})};this.on("webkitbeginfullscreen",n);this.on("dispose",(function(){t.off("webkitbeginfullscreen",n);t.off("webkitendfullscreen",r)}))};t.prototype.supportsFullScreen=function e(){if(typeof this.el_.webkitEnterFullScreen==="function"){var t=C["default"].navigator&&C["default"].navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t)){return true}}return false};t.prototype.enterFullScreen=function e(){var t=this.el_;if(t.paused&&t.networkState<=t.HAVE_METADATA){this.el_.play();this.setTimeout((function(){t.pause();t.webkitEnterFullScreen()}),0)}else{t.webkitEnterFullScreen()}};t.prototype.exitFullScreen=function e(){this.el_.webkitExitFullScreen()};t.prototype.src=function e(t){if(t===undefined){return this.el_.src}this.setSrc(t)};t.prototype.reset=function e(){t.resetMediaElement(this.el_)};t.prototype.currentSrc=function e(){if(this.currentSource_){return this.currentSource_.src}return this.el_.currentSrc};t.prototype.setControls=function e(t){this.el_.controls=!!t};t.prototype.addTextTrack=function t(r,n,o){if(!this.featuresNativeTextTracks){return e.prototype.addTextTrack.call(this,r,n,o)}return this.el_.addTextTrack(r,n,o)};t.prototype.createRemoteTextTrack=function t(r){if(!this.featuresNativeTextTracks){return e.prototype.createRemoteTextTrack.call(this,r)}var n=w["default"].createElement("track");if(r.kind){n.kind=r.kind}if(r.label){n.label=r.label}if(r.language||r.srclang){n.srclang=r.language||r.srclang}if(r["default"]){n["default"]=r["default"]}if(r.id){n.id=r.id}if(r.src){n.src=r.src}return n};t.prototype.addRemoteTextTrack=function t(r,n){var o=e.prototype.addRemoteTextTrack.call(this,r,n);if(this.featuresNativeTextTracks){this.el().appendChild(o)}return o};t.prototype.removeRemoteTextTrack=function t(r){e.prototype.removeRemoteTextTrack.call(this,r);if(this.featuresNativeTextTracks){var n=this.$$("track");var o=n.length;while(o--){if(r===n[o]||r===n[o].track){this.el().removeChild(n[o])}}}};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(e){return false}};D.canControlPlaybackRate=function(){if(m.IS_ANDROID&&m.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(e){return false}};D.supportsNativeTextTracks=function(){return m.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=!m.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(m.ANDROID_VERSION>=4&&!m.IS_FIREFOX){D.TEST_VID.constructor.prototype.canPlayType=function(e){if(e&&B.test(e)){return"maybe"}return F.call(this,e)}}else if(m.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(e){}})()}};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(e){}})()}};["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(e){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 _=R(y);var g=e(63);var b=R(g);var m=e(83);var T=I(m);var w=e(86);var E=R(w);var C=e(90);var k=e(79);var O=e(46);var j=R(O);var S=e(95);var x=R(S);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 e(){this.on("durationchange",this.onDurationChange);this.manualProgress=true;this.one("ready",this.trackProgress)};r.prototype.manualProgressOff=function e(){this.manualProgress=false;this.stopTrackingProgress();this.off("durationchange",this.onDurationChange)};r.prototype.trackProgress=function e(t){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 e(t){this.duration_=this.duration()};r.prototype.buffered=function e(){return(0,C.createTimeRange)(0,0)};r.prototype.bufferedPercent=function e(){return(0,k.bufferedPercent)(this.buffered(),this.duration_)};r.prototype.stopTrackingProgress=function e(){this.clearInterval(this.progressInterval)};r.prototype.manualTimeUpdatesOn=function e(){this.manualTimeUpdates=true;this.on("play",this.trackCurrentTime);this.on("pause",this.stopTrackingCurrentTime)};r.prototype.manualTimeUpdatesOff=function e(){this.manualTimeUpdates=false;this.stopTrackingCurrentTime();this.off("play",this.trackCurrentTime);this.off("pause",this.stopTrackingCurrentTime)};r.prototype.trackCurrentTime=function e(){if(this.currentTimeInterval){this.stopTrackingCurrentTime()}this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:true})}),250)};r.prototype.stopTrackingCurrentTime=function e(){this.clearInterval(this.currentTimeInterval);this.trigger({type:"timeupdate",target:this,manuallyTriggered:true})};r.prototype.dispose=function e(){this.clearTracks(["audio","video","text"]);if(this.manualProgress){this.manualProgressOff()}if(this.manualTimeUpdates){this.manualTimeUpdatesOff()}t.prototype.dispose.call(this)};r.prototype.clearTracks=function e(t){var r=this;t=[].concat(t);t.forEach((function(e){var t=r[e+"Tracks"]()||[];var n=t.length;while(n--){var o=t[n];if(e==="text"){r.removeRemoteTextTrack(o)}t.removeTrack_(o)}}))};r.prototype.cleanupAutoTextTracks=function e(){var t=this.autoRemoteTextTracks_||[];var r=t.length;while(r--){var n=t[r];this.removeRemoteTextTrack(n)}};r.prototype.reset=function e(){};r.prototype.error=function e(t){if(t!==undefined){this.error_=new j["default"](t);this.trigger("error")}return this.error_};r.prototype.played=function e(){if(this.hasStarted_){return(0,C.createTimeRange)(0,0)}return(0,C.createTimeRange)()};r.prototype.setCurrentTime=function e(){if(this.manualTimeUpdates){this.trigger({type:"timeupdate",target:this,manuallyTriggered:true})}};r.prototype.initTextTrackListeners=function e(){var t=T.bind(this,(function(){this.trigger("texttrackchange")}));var r=this.textTracks();if(!r){return}r.addEventListener("removetrack",t);r.addEventListener("addtrack",t);this.on("dispose",T.bind(this,(function(){r.removeEventListener("removetrack",t);r.removeEventListener("addtrack",t)})))};r.prototype.initTrackListeners=function e(){var t=this;var r=["video","audio"];r.forEach((function(e){var r=function r(){t.trigger(e+"trackchange")};var n=t[e+"Tracks"]();n.addEventListener("removetrack",r);n.addEventListener("addtrack",r);t.on("dispose",(function(){n.removeEventListener("removetrack",r);n.removeEventListener("addtrack",r)}))}))};r.prototype.addWebVttScript_=function t(){var r=this;if(!x["default"].WebVTT&&this.el().parentNode!==null&&this.el().parentNode!==undefined){var o=function(){var t=e(99);if(!r.options_["vtt.js"]&&(0,A.isPlain)(t)&&Object.keys(t).length>0){Object.keys(t).forEach((function(e){x["default"][e]=t[e]}));r.trigger("vttjsloaded");return{v:void 0}}var n=M["default"].createElement("script");n.src=r.options_["vtt.js"]||"https://cdn.rawgit.com/gkatsev/vtt.js/vjs-v0.12.1/dist/vtt.min.js";n.onload=function(){r.trigger("vttjsloaded")};n.onerror=function(){r.trigger("vttjserror")};r.on("dispose",(function(){n.onload=null;n.onerror=null}));x["default"].WebVTT=true;r.el().parentNode.appendChild(n)}();if((typeof o==="undefined"?"undefined":n(o))==="object")return o.v}};r.prototype.emulateTextTracks=function e(){var t=this;var r=this.textTracks();if(!r){return}this.remoteTextTracks().on("addtrack",(function(e){t.textTracks().addTrack_(e.track)}));this.remoteTextTracks().on("removetrack",(function(e){t.textTracks().removeTrack_(e.track)}));this.on("ready",this.addWebVttScript_);var n=function e(){return t.trigger("texttrackchange")};var o=function e(){n();for(var t=0;t<r.length;t++){var o=r[t];o.removeEventListener("cuechange",n);if(o.mode==="showing"){o.addEventListener("cuechange",n)}}};o();r.addEventListener("change",o);this.on("dispose",(function(){r.removeEventListener("change",o)}))};r.prototype.videoTracks=function e(){this.videoTracks_=this.videoTracks_||new _["default"];return this.videoTracks_};r.prototype.audioTracks=function e(){this.audioTracks_=this.audioTracks_||new b["default"];return this.audioTracks_};r.prototype.textTracks=function e(){this.textTracks_=this.textTracks_||new v["default"];return this.textTracks_};r.prototype.remoteTextTracks=function e(){this.remoteTextTracks_=this.remoteTextTracks_||new v["default"];return this.remoteTextTracks_};r.prototype.remoteTextTrackEls=function e(){this.remoteTextTrackEls_=this.remoteTextTrackEls_||new l["default"];return this.remoteTextTrackEls_};r.prototype.addTextTrack=function e(t,r,n){if(!t){throw new Error("TextTrack kind is required but was not provided")}return F(this,t,r,n)};r.prototype.createRemoteTextTrack=function e(t){var r=(0,f["default"])(t,{tech:this});return new s["default"](r)};r.prototype.addRemoteTextTrack=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var r=arguments[1];var n=this.createRemoteTextTrack(t);if(r!==true&&r!==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');r=true}this.remoteTextTrackEls().addTrackElement_(n);this.remoteTextTracks().addTrack_(n.track);if(r!==true){this.autoRemoteTextTracks_.addTrack_(n.track)}return n};r.prototype.removeRemoteTextTrack=function e(t){var r=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(r);this.remoteTextTracks().removeTrack_(t);this.autoRemoteTextTracks_.removeTrack_(t)};r.prototype.setPoster=function e(){};r.prototype.canPlayType=function e(){return""};r.isTech=function e(t){return t.prototype instanceof r||t instanceof r||t===r};r.registerTech=function e(t,n){if(!r.techs_){r.techs_={}}if(!r.isTech(n)){throw new Error("Tech "+t+" must be a Tech")}r.techs_[t]=n;return n};r.getTech=function e(t){if(r.techs_&&r.techs_[t]){return r.techs_[t]}if(x["default"]&&x["default"].videojs&&x["default"].videojs[t]){E["default"].warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)");return x["default"].videojs[t]}};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 e(t,r){for(var n=0;n<t.length;n++){if(r.id===t[n].id){continue}t[n].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 t(r){var n=this;if(r.enabled){d(this,r)}e.prototype.addTrack_.call(this,r);if(!r.addEventListener){return}r.addEventListener("enabledchange",(function(){if(n.changing_){return}n.changing_=true;d(n,r);n.changing_=false;n.trigger("change")}))};t.prototype.addTrack=function e(t){this.addTrack_(t)};t.prototype.removeTrack=function t(r){e.prototype.removeTrack_.call(this,r)};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 e(){return c},set:function e(t){if(typeof t!=="boolean"||t===c){return}c=t;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 e(){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 e(t){var r=this.trackElements_.length;if(!(""+r in this)){Object.defineProperty(this,r,{get:function e(){return this.trackElements_[r]}})}if(this.trackElements_.indexOf(t)===-1){this.trackElements_.push(t)}};e.prototype.getTrackElementByTrack_=function e(t){var r=void 0;for(var n=0,o=this.trackElements_.length;n<o;n++){if(t===this.trackElements_[n].track){r=this.trackElements_[n];break}}return r};e.prototype.removeTrackElement_=function e(t){for(var r=0,n=this.trackElements_.length;r<n;r++){if(t===this.trackElements_[r]){this.trackElements_.splice(r,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 _=1;var g=2;var b=3;var m=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 e(){return i}});Object.defineProperty(s,"track",{get:function e(){return l}});i=y;l.addEventListener("loadeddata",(function(){i=g;s.trigger({type:"load",target:s})}));if(o.IS_IE8){var f;return f=s,d(n,f)}return n}return t}(u["default"]);m.prototype.allowedEvents_={load:"load"};m.NONE=y;m.LOADING=_;m.LOADED=g;m.ERROR=b;r["default"]=m},{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 e(){return this.length_}});if(o.IS_IE8){return r}}e.prototype.setCues_=function e(t){var r=this.length||0;var n=0;var o=t.length;this.cues_=t;this.length_=t.length;var i=function e(t){if(!(""+t in this)){Object.defineProperty(this,""+t,{get:function e(){return this.cues_[t]}})}};if(r<o){n=r;for(;n<o;n++){i.call(this,n)}}};e.prototype.getCueById=function e(t){var r=null;for(var n=0,o=this.length;n<o;n++){var i=this[n];if(i.id===t){r=i;break}}return r};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 _(e,t){return"rgba("+parseInt(e[1]+e[1],16)+","+parseInt(e[2]+e[2],16)+","+parseInt(e[3]+e[3],16)+","+t+")"}function g(e,t,r){try{e.style[t]=r}catch(e){return}}var b=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 e(){if(this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks){this.hide()}else{this.show()}};t.prototype.createEl=function t(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})};t.prototype.clearDisplay=function e(){if(typeof u["default"].WebVTT==="function"){u["default"].WebVTT.processCues(u["default"],[],this.el_)}};t.prototype.updateDisplay=function e(){var t=this.player_.textTracks();this.clearDisplay();if(!t){return}var r=null;var n=null;var o=t.length;while(o--){var i=t[o];if(i.mode==="showing"){if(i.kind==="descriptions"){r=i}else{n=i}}}if(n){if(this.getAttribute("aria-live")!=="off"){this.setAttribute("aria-live","off")}this.updateForTrack(n)}else if(r){if(this.getAttribute("aria-live")!=="assertive"){this.setAttribute("aria-live","assertive")}this.updateForTrack(r)}};t.prototype.updateForTrack=function e(t){if(typeof u["default"].WebVTT!=="function"||!t.activeCues){return}var r=this.player_.textTrackSettings.getValues();var n=[];for(var o=0;o<t.activeCues.length;o++){n.push(t.activeCues[o])}u["default"].WebVTT.processCues(u["default"],n,this.el_);var i=n.length;while(i--){var a=n[i];if(!a){continue}var s=a.displayState;if(r.color){s.firstChild.style.color=r.color}if(r.textOpacity){g(s.firstChild,"color",_(r.color||"#fff",r.textOpacity))}if(r.backgroundColor){s.firstChild.style.backgroundColor=r.backgroundColor}if(r.backgroundOpacity){g(s.firstChild,"backgroundColor",_(r.backgroundColor||"#000",r.backgroundOpacity))}if(r.windowColor){if(r.windowOpacity){g(s,"backgroundColor",_(r.windowColor,r.windowOpacity))}else{s.style.backgroundColor=r.windowColor}}if(r.edgeStyle){if(r.edgeStyle==="dropshadow"){s.firstChild.style.textShadow="2px 2px 3px "+d+", 2px 2px 4px "+d+", 2px 2px 5px "+d}else if(r.edgeStyle==="raised"){s.firstChild.style.textShadow="1px 1px "+d+", 2px 2px "+d+", 3px 3px "+d}else if(r.edgeStyle==="depressed"){s.firstChild.style.textShadow="1px 1px "+v+", 0 1px "+v+", -1px -1px "+d+", 0 -1px "+d}else if(r.edgeStyle==="uniform"){s.firstChild.style.textShadow="0 0 4px "+d+", 0 0 4px "+d+", 0 0 4px "+d+", 0 0 4px "+d}}if(r.fontPercent&&r.fontPercent!==1){var l=u["default"].parseFloat(s.style.fontSize);s.style.fontSize=l*r.fontPercent+"px";s.style.height="auto";s.style.top="auto";s.style.bottom="2px"}if(r.fontFamily&&r.fontFamily!=="default"){if(r.fontFamily==="small-caps"){s.firstChild.style.fontVariant="small-caps"}else{s.firstChild.style.fontFamily=y[r.fontFamily]}}}};return t}(o["default"]);o["default"].registerComponent("TextTrackDisplay",b);r["default"]=b},{5:5,83:83,95:95}],69:[function(e,t,r){"use strict";r.__esModule=true;var n=function e(t){var r=["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((function(e,r,n){if(t[r]){e[r]=t[r]}return e}),{cues:t.cues&&Array.prototype.map.call(t.cues,(function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}}))});return r};var o=function e(t){var r=t.$$("track");var o=Array.prototype.map.call(r,(function(e){return e.track}));var i=Array.prototype.map.call(r,(function(e){var t=n(e.track);if(e.src){t.src=e.src}return t}));return i.concat(Array.prototype.filter.call(t.textTracks(),(function(e){return o.indexOf(e)===-1})).map(n))};var i=function e(t,r){t.forEach((function(e){var t=r.addRemoteTextTrack(e).track;if(!e.src&&e.cues){e.cues.forEach((function(e){return t.addCue(e)}))}}));return r.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 t(r){e.prototype.addTrack_.call(this,r);r.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 _(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 b="vjs-text-track-settings";var m=["#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 j=["#FF0","Yellow"];var S=["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:[m,O,k,E,T,j,C,w]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[S,x,P]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[O,m,k,E,T,j,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 e(t){return t==="1.00"?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[S,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,S]}};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){g(t,e);function t(r,n){y(this,t);var o=_(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 e(t){var r=this;var n=M[t];var o=n.id.replace("%s",this.id_);return[(0,s.createEl)("label",{className:"vjs-label",textContent:n.label},{for:o}),(0,s.createEl)("select",{id:o},undefined,n.options.map((function(e){return(0,s.createEl)("option",{textContent:r.localize(e[1]),value:e[0]})})))]};t.prototype.createElFgColor_=function e(){var t=(0,s.createEl)("legend",{textContent:this.localize("Text")});var r=this.createElSelect_("color");var n=(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,[t].concat(r,n))};t.prototype.createElBgColor_=function e(){var t=(0,s.createEl)("legend",{textContent:this.localize("Background")});var r=this.createElSelect_("backgroundColor");var n=(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,[t].concat(r,n))};t.prototype.createElWinColor_=function e(){var t=(0,s.createEl)("legend",{textContent:this.localize("Window")});var r=this.createElSelect_("windowColor");var n=(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,[t].concat(r,n))};t.prototype.createElColors_=function e(){return(0,s.createEl)("div",{className:"vjs-tracksettings-colors"},undefined,[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()])};t.prototype.createElFont_=function e(){var t=(0,s.createEl)("div",{className:"vjs-font-percent vjs-tracksetting"},undefined,this.createElSelect_("fontPercent"));var r=(0,s.createEl)("div",{className:"vjs-edge-style vjs-tracksetting"},undefined,this.createElSelect_("edgeStyle"));var n=(0,s.createEl)("div",{className:"vjs-font-family vjs-tracksetting"},undefined,this.createElSelect_("fontFamily"));return(0,s.createEl)("div",{className:"vjs-tracksettings-font"},undefined,[t,r,n])};t.prototype.createElControls_=function e(){var t=(0,s.createEl)("button",{className:"vjs-default-button",textContent:this.localize("Defaults")});var r=(0,s.createEl)("button",{className:"vjs-done-button",textContent:"Done"});return(0,s.createEl)("div",{className:"vjs-tracksettings-controls"},undefined,[t,r])};t.prototype.createEl=function e(){var t=(0,s.createEl)("div",{className:"vjs-tracksettings"},undefined,[this.createElColors_(),this.createElFont_(),this.createElControls_()]);var r=(0,s.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.id_,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"});var n=(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 o=(0,s.createEl)("div",undefined,{role:"document"},[r,n,t]);return(0,s.createEl)("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":r.id,"aria-describedby":n.id},o)};t.prototype.getValues=function e(){var t=this;return f.reduce(M,(function(e,r,n){var o=I(t.$(r.selector),r.parser);if(o!==undefined){e[n]=o}return e}),{})};t.prototype.setValues=function e(t){var r=this;f.each(M,(function(e,n){R(r.$(e.selector),t[n],e.parser)}))};t.prototype.setDefaults=function e(){var t=this;f.each(M,(function(e){var r=e.hasOwnProperty("default")?e["default"]:0;t.$(e.selector).selectedIndex=r}))};t.prototype.restoreSettings=function e(){var t=void 0;try{t=JSON.parse(o["default"].localStorage.getItem(b))}catch(e){h["default"].warn(e)}if(t){this.setValues(t)}};t.prototype.saveSettings=function e(){if(!this.options_.persistTextTrackSettings){return}var t=this.getValues();try{if(Object.keys(t).length){o["default"].localStorage.setItem(b,JSON.stringify(t))}else{o["default"].localStorage.removeItem(b)}}catch(e){h["default"].warn(e)}};t.prototype.updateDisplay=function e(){var t=this.player_.getChild("textTrackDisplay");if(t){t.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 _=e(87);var g=w(_);var b=e(78);var m=T(b);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 e(t,r){var n=new f["default"].WebVTT.Parser(f["default"],f["default"].vttjs,f["default"].WebVTT.StringDecoder());var o=[];n.oncue=function(e){r.addCue(e)};n.onparsingerror=function(e){o.push(e)};n.onflush=function(){r.trigger({type:"loadeddata",target:r})};n.parse(t);if(o.length>0){if(f["default"].console&&f["default"].console.groupCollapsed){f["default"].console.groupCollapsed("Text Track parsing errors for "+r.src)}o.forEach((function(e){return l["default"].error(e)}));if(f["default"].console&&f["default"].console.groupEnd){f["default"].console.groupEnd()}}n.flush()};var j=function e(t,r){var n={uri:t};var o=(0,d.isCrossOrigin)(t);if(o){n.cors=o}(0,y["default"])(n,a.bind(this,(function(e,t,n){if(e){return l["default"].error(e,t)}r.loaded_=true;if(typeof f["default"].WebVTT!=="function"){if(r.tech_){(function(){var e=function e(){return O(n,r)};r.tech_.on("vttjsloaded",e);r.tech_.on("vttjserror",(function(){l["default"].error("vttjs failed to load, stopping trying to process "+r.src);r.tech_.off("vttjsloaded",e)}))})()}}else{O(n,r)}})))};var S=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,g["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(m.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 e(){return c},set:function e(){}});Object.defineProperty(f,"mode",{get:function e(){return l},set:function e(t){if(!s.TextTrackMode[t]){return}l=t;if(l==="showing"){this.tech_.on("timeupdate",y)}this.trigger("modechange")}});Object.defineProperty(f,"cues",{get:function e(){if(!this.loaded_){return null}return h},set:function e(){}});Object.defineProperty(f,"activeCues",{get:function e(){if(!this.loaded_){return null}if(this.cues.length===0){return d}var t=this.tech_.currentTime();var r=[];for(var n=0,o=this.cues.length;n<o;n++){var i=this.cues[n];if(i.startTime<=t&&i.endTime>=t){r.push(i)}else if(i.startTime===i.endTime&&i.startTime<=t&&i.startTime+.5>=t){r.push(i)}}v=false;if(r.length!==this.activeCues_.length){v=true}else{for(var a=0;a<r.length;a++){if(this.activeCues_.indexOf(r[a])===-1){v=true}}}this.activeCues_=r;d.setCues_(this.activeCues_);return d},set:function e(){}});if(u.src){f.src=u.src;j(u.src,f)}else{f.loaded_=true}return n=f,C(r,n)}t.prototype.addCue=function e(t){var r=this.tech_.textTracks();if(r){for(var n=0;n<r.length;n++){if(r[n]!==this){r[n].removeCue(t)}}}this.cues_.push(t);this.cues.setCues_(this.cues_)};t.prototype.removeCue=function e(t){var r=false;for(var n=0,o=this.cues_.length;n<o;n++){var i=this.cues_[n];if(i===t){this.cues_.splice(n,1);r=true}}if(r){this.cues.setCues_(this.cues_)}};return t}(h["default"]);S.prototype.allowedEvents_={cuechange:"cuechange"};r["default"]=S},{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 e(){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 e(t){var r=this.tracks_.length;if(!(""+r in this)){Object.defineProperty(this,r,{get:function e(){return this.tracks_[r]}})}if(this.tracks_.indexOf(t)===-1){this.tracks_.push(t);this.trigger({track:t,type:"addtrack"})}};t.prototype.removeTrack_=function e(t){var r=void 0;for(var n=0,o=this.length;n<o;n++){if(this[n]===t){r=this[n];if(r.off){r.off()}this.tracks_.splice(n,1);break}}if(!r){return}this.trigger({track:r,type:"removetrack"})};t.prototype.getTrackById=function e(t){var r=null;for(var n=0,o=this.length;n<o;n++){var i=this[n];if(i.id===t){r=i;break}}return r};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 e(t){Object.defineProperty(s,t,{get:function e(){return c[t]},set:function e(){}})};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 e(t,r){for(var n=0;n<t.length;n++){if(r.id===t[n].id){continue}t[n].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 e(){for(var t=0;t<this.length;t++){if(this[t].selected){return t}}return-1},set:function e(){}});return n=s,p(r,n)}t.prototype.addTrack_=function t(r){var n=this;if(r.selected){d(this,r)}e.prototype.addTrack_.call(this,r);if(!r.addEventListener){return}r.addEventListener("selectedchange",(function(){if(n.changing_){return}n.changing_=true;d(n,r);n.changing_=false;n.trigger("change")}))};t.prototype.addTrack=function e(t){this.addTrack_(t)};t.prototype.removeTrack=function t(r){e.prototype.removeTrack_.call(this,r)};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 e(){return c},set:function e(t){if(typeof t!=="boolean"||t===c){return}c=t;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 _=r.IS_ANDROID=/Android/i.test(l);var g=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 b=r.IS_OLD_ANDROID=_&&/webkit/i.test(l)&&g<2.3;var m=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&&!_&&!w;var j=r.IS_ANY_SAFARI=O||v;var S=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=_(["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=j;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 _(e,t){e.raw=t;return e}function g(e){return typeof e==="string"&&/\S/.test(e)}function b(e){if(/\s/.test(e)){throw new Error("class has illegal whitespace characters")}}function m(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(!g(t)){return i["default"][e](null)}if(g(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 j(e,t){if(t.firstChild){t.insertBefore(e,t.firstChild)}else{t.appendChild(e)}}var S={};var x="vdata"+(new Date).getTime();function P(e){var t=e[x];if(!t){t=e[x]=l.newGUID()}if(!S[t]){S[t]={}}return S[t]}function M(e){var t=e[x];if(!t){return false}return!!Object.getOwnPropertyNames(S[t]).length}function A(e){var t=e[x];if(!t){return}delete S[t];try{delete e[x]}catch(t){if(e.removeAttribute){e.removeAttribute(x)}else{e[x]=null}}}function I(e,t){b(t);if(e.classList){return e.classList.contains(t)}return m(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{b(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=_;r.on=g;r.off=b;r.trigger=m;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 _(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 g(e,t,r){if(Array.isArray(t)){return y(g,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=_(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(e){u["default"].error(e)}}}}}}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 b(e,t,r){if(!o.hasElData(e)){return}var n=o.getElData(e);if(!n.handlers){return}if(Array.isArray(t)){return y(b,e,t,r)}var i=function t(r){n.handlers[r]=[];v(e,r)};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 m(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=_(t);if(n.dispatcher){n.dispatcher.call(e,t,r)}if(i&&!t.isPropagationStopped()&&t.bubbles===true){m.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 n(){b(e,t,n);r.apply(this,arguments)};n.guid=r.guid=r.guid||a.newGUID();g(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 e(t,r,o){if(!r.guid){r.guid=(0,n.newGUID)()}var i=function e(){return r.apply(t,arguments)};i.guid=o?o+"_"+r.guid:r.guid;return i};var i=r.throttle=function e(t,r){var n=Date.now();var o=function e(){var o=Date.now();if(o-n>=r){t.apply(undefined,arguments);n=o}};return o}},{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 e(t,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!!i.IE_VERSION&&i.IE_VERSION<11;if(t!=="log"){r.unshift(t.toUpperCase()+":")}u.history.push(r);r.unshift("VIDEOJS:");var s=o["default"].console&&o["default"].console[t];if(!s){return}if(n){r=r.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(!s.apply){s(r)}else{s[Array.isArray(r)?"apply":"call"](o["default"].console,r)}};u=function e(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++){r[n]=arguments[n]}l("log",r)};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 e(t){var r=o["default"].createElement("style");r.className=t;return r};var s=r.setTextContent=function e(t,r){if(t.styleSheet){t.styleSheet.cssText=r}else{t.textContent=r}}},{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 e(){throw new Error("This TimeRanges object is empty")},end:function e(){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 e(t){var r=["protocol","hostname","port","pathname","search","hash","host"];var n=o["default"].createElement("a");n.href=t;var i=n.host===""&&n.protocol!=="file:";var a=void 0;if(i){a=o["default"].createElement("div");a.innerHTML='<a href="'+t+'"></a>';n=a.firstChild;a.setAttribute("style","display:none; position:absolute;");o["default"].body.appendChild(a)}var s={};for(var u=0;u<r.length;u++){s[r[u]]=n[r[u]]}if(s.protocol==="http:"){s.host=s.host.replace(/:80$/,"")}if(s.protocol==="https:"){s.host=s.host.replace(/:443$/,"")}if(i){o["default"].body.removeChild(a)}return s};var l=r.getAbsoluteURL=function e(t){if(!t.match(/^https?:\/\//)){var r=o["default"].createElement("div");r.innerHTML='<a href="'+t+'">x</a>';t=r.firstChild.href}return t};var c=r.getFileExtension=function e(t){if(typeof t==="string"){var r=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i;var n=r.exec(t);if(n){return n.pop().toLowerCase()}}return""};var f=r.isCrossOrigin=function e(t){var r=a["default"].location;var n=u(t);var o=n.protocol===":"?r.protocol:n.protocol;var i=o+n.host!==r.protocol+r.host;return i}},{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 _=t(82);var g=Z(_);var b=t(51);var m=ee(b);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 j=t(72);var S=ee(j);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||m["default"].players[n.playerId]){return n.player||m["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=m["default"].prototype.options_;te.getPlayers=function(){return m["default"].players};te.players=m["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=g.on;te.one=g.one;te.off=g.off;te.trigger=g.trigger;te.xhr=Y["default"];te.TextTrack=S["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(e){n=e}return[n,r]}},{}],98:[function(e,t,r){function n(e){return e.replace(/\n\r?\s*/g,"")}t.exports=function e(t){var r="",o=0;for(;o<arguments.length;o++)r+=n(t[o])+(arguments[o+1]||"");return r}},{}],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)!=="--\x3e"){throw new r(r.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+s)}e=e.substr(3);c();t.endTime=u();c();l(e,t)}var s={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"\u200e","&rlm;":"\u200f","&nbsp;":"\xa0"};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(g=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/)){e=e.replace(g[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 _;if(y){_=e.document.createProcessingInstruction("timestamp",y);h.appendChild(_);continue}var g=d.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!g){continue}_=f(g[1],g[3]);if(!_){continue}if(!a(h,_)){continue}if(g[2]){_.className=g[2].substr(1).replace("."," ")}v.push(g[1]);h.appendChild(_);h=_;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 _(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}}_.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}};_.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top};_.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++){if(this.overlaps(e[t])){return true}}return false};_.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right};_.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}};_.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)};_.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}};_.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 g(e,t,r,n){function o(e,t){var o,i=new _(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 _(e);a=u}e=new _(i)}return o||i}var i=new _(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 _(t)}var y=o(i,u);t.move(y.toCSSCompatValues(r))}function b(){}b.StringDecoder=function(){return{decode:function(e){if(!e){return""}if(typeof e!=="string"){throw new Error("Error - expected string data.")}return decodeURIComponent(encodeURIComponent(e))}}};b.convertCueToDOMTree=function(e,t){if(!e||!t){return null}return f(e,t)};var m=.05;var T="sans-serif";var w="1.5%";b.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=_.getSimpleBoxPosition(n),u=Math.round(s.height*m*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);g(e,r,s,a);o.displayState=r.div;a.push(_.getSimpleBoxPosition(r))}})()};b.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=[]};b.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("--\x3e")===-1){t.cue.id=l;continue}case"CUE":try{a(l,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e);t.cue=null;t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var p=l.indexOf("--\x3e")!==-1;if(!l||p&&(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(e){t.reportOrThrowError(e);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=b})(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 _=true;var g="auto";var b="start";var m=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 _},set:function(e){_=!!e;this.hasBeenReset=true}}));Object.defineProperty(o,"line",s({},l,{get:function(){return g},set:function(e){if(typeof e!=="number"&&e!==r){throw new SyntaxError("An invalid number or illegal string was specified.")}g=e;this.hasBeenReset=true}}));Object.defineProperty(o,"lineAlign",s({},l,{get:function(){return b},set:function(e){var t=a(e);if(!t){throw new SyntaxError("An invalid or illegal string was specified.")}b=t;this.hasBeenReset=true}}));Object.defineProperty(o,"position",s({},l,{get:function(){return m},set:function(e){if(e<0||e>100){throw new Error("Position must be between 0 and 100.")}m=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 r(n,o,i){if(!t){t=true;e.callback(n,o,i)}};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(m){try{e=JSON.parse(e)}catch(e){}}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 _=e.body||e.data||null;var g=f.headers=e.headers||{};var b=!!e.sync;var m=false;var T;if("json"in e){m=true;g["accept"]||g["Accept"]||(g["Accept"]="application/json");if(y!=="GET"&&y!=="HEAD"){g["content-type"]||g["Content-Type"]||(g["Content-Type"]="application/json");_=JSON.stringify(e.json)}}f.onreadystatechange=n;f.onload=l;f.onerror=s;f.onprogress=function(){};f.ontimeout=s;f.open(y,v,!b,e.username,e.password);if(!b){f.withCredentials=!!e.withCredentials}if(!b&&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 g){if(g.hasOwnProperty(h)){f.setRequestHeader(h,g[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(_);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