!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).videojs=t()}}(function(){return function t(e,o,n){function r(s,a){if(!o[s]){if(!e[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=o[s]={exports:{}};e[s][0].call(c.exports,function(t){var o=e[s][1][t];return r(o||t)},c,c.exports,t,e,o,n)}return o[s].exports}for(var i="function"==typeof require&&require,s=0;se?m(f,l):h=setTimeout(b,t)}function _(){m(v,h)}function j(){if(a=arguments,c=r(),p=this,f=v&&(h||!g),!1===y)var o=g&&!h;else{l||g||(d=c);var n=y-(c-d),i=n<=0||n>y;i?(l&&(l=clearTimeout(l)),d=c,u=t.apply(p,a)):l||(l=setTimeout(_,n))}return i&&h?h=clearTimeout(h):h||e===y||(h=setTimeout(b,e)),o&&(i=!0,u=t.apply(p,a)),!i||h||l||(a=p=void 0),u}return j.cancel=function(){h&&clearTimeout(h),l&&clearTimeout(l),d=0,l=h=f=void 0},j}},{"../date/now":4,"../lang/isObject":33}],6:[function(t,e,o){var n="Expected a function",r=Math.max;e.exports=function(t,e){if("function"!=typeof t)throw new TypeError(n);return e=r(void 0===e?t.length-1:+e||0,0),function(){for(var o=arguments,n=-1,i=r(o.length-e,0),s=Array(i);++n2?o[s-2]:void 0,l=s>2?o[2]:void 0,u=s>1?o[s-1]:void 0;for("function"==typeof a?(a=n(a,u,5),s-=2):s-=(a="function"==typeof u?u:void 0)?1:0,l&&r(o[0],o[1],l)&&(a=s<3?void 0:a,s=1);++i-1&&t%1==0&&t-1&&t%1==0&&t<=n}},{}],26:[function(t,e,o){e.exports=function(t){return!!t&&"object"==typeof t}},{}],27:[function(t,e,o){var n=t("../lang/isArguments"),r=t("../lang/isArray"),i=t("./isIndex"),s=t("./isLength"),a=t("../lang/isString"),l=t("../object/keysIn"),u=Object.prototype.hasOwnProperty;e.exports=function(t){for(var e=l(t),o=e.length,c=o&&t.length,p=!!c&&s(c)&&(r(t)||n(t)||a(t)),h=-1,f=[];++h0,E=p.enumErrorProps&&(t===v||t instanceof Error),x=p.enumPrototypes&&s(t);++n2?arguments[2]:{},s=n(e);i&&(s=s.concat(Object.getOwnPropertySymbols(e))),r(s,function(n){l(t,n,e[n],o[n])})};u.supportsDescriptors=!!a,e.exports=u},{foreach:47,"object-keys":49}],47:[function(t,e,o){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(t,e,o){if("[object Function]"!==r.call(e))throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var s=0;s0&&!n.call(t,0))for(var y=0;y0)for(var v=0;v=0&&"[object Function]"===n.call(t.callee)),o}},{}],51:[function(t,e,o){"use strict";var n=t("./implementation");e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),o={},n=0;n0&&(h=setTimeout(function(){c=!0,p.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",i(t)},t.timeout)),p.setRequestHeader)for(l in v)v.hasOwnProperty(l)&&p.setRequestHeader(l,v[l]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(p.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(p),p.send(y),p}e.exports=u,u.XMLHttpRequest=n.XMLHttpRequest||function(){},u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var o=0;o=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),s.removeElData(this.el_),this.el_=null},t.prototype.player=function(){return this.player_},t.prototype.options=function(t){return c.default.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.options_=f.default(this.options_,t),this.options_):this.options_},t.prototype.el=function(){return this.el_},t.prototype.createEl=function(t,e,o){return s.createEl(t,e,o)},t.prototype.localize=function(t){var e=this.player_.language&&this.player_.language(),o=this.player_.languages&&this.player_.languages();if(!e||!o)return t;var n=o[e];if(n&&n[t])return n[t];var r=o[e.split("-")[0]];return r&&r[t]?r[t]:t},t.prototype.contentEl=function(){return this.contentEl_||this.el_},t.prototype.id=function(){return this.id_},t.prototype.name=function(){return this.name_},t.prototype.children=function(){return this.children_},t.prototype.getChildById=function(t){return this.childIndex_[t]},t.prototype.getChild=function(t){return this.childNameIndex_[t]},t.prototype.addChild=function(e){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=void 0,r=void 0;if("string"==typeof e){r=e,o||(o={}),!0===o&&(c.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`."),o={});var i=o.componentClass||p.default(r);o.name=r;var s=t.getComponent(i);if(!s)throw new Error("Component "+i+" does not exist");if("function"!=typeof s)return null;n=new s(this.player_||this,o)}else n=e;return this.children_.push(n),"function"==typeof n.id&&(this.childIndex_[n.id()]=n),(r=r||n.name&&n.name())&&(this.childNameIndex_[r]=n),"function"==typeof n.el&&n.el()&&this.contentEl().appendChild(n.el()),n},t.prototype.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,o=this.children_.length-1;o>=0;o--)if(this.children_[o]===t){e=!0,this.children_.splice(o,1);break}if(e){this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var n=t.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},t.prototype.initChildren=function(){var e,o,n,r=this,i=this.options_.children;i&&(e=r.options_,o=void 0,n=t.getComponent("Tech"),(o=Array.isArray(i)?i:Object.keys(i)).concat(Object.keys(r.options_).filter(function(t){return!o.some(function(e){return"string"==typeof e?t===e:t===e.name})})).map(function(t){var e=void 0,o=void 0;return"string"==typeof t?o=i[e=t]||r.options_[e]||{}:(e=t.name,o=t),{name:e,opts:o}}).filter(function(e){var o=t.getComponent(e.opts.componentClass||p.default(e.name));return o&&!n.isTech(o)}).forEach(function(t){var o=t.name,n=t.opts;if(void 0!==e[o]&&(n=e[o]),!1!==n){!0===n&&(n={}),n.playerOptions=r.options_.playerOptions;var i=r.addChild(o,n);i&&(r[o]=i)}}))},t.prototype.buildCSSClass=function(){return""},t.prototype.on=function(t,e,o){var n=this;return"string"==typeof t||Array.isArray(t)?u.on(this.el_,t,a.bind(this,e)):function(){var r=t,i=e,s=a.bind(n,o),l=function(){return n.off(r,i,s)};l.guid=s.guid,n.on("dispose",l);var c=function(){return n.off("dispose",l)};c.guid=s.guid,t.nodeName?(u.on(r,i,s),u.on(r,"dispose",c)):"function"==typeof t.on&&(r.on(i,s),r.on("dispose",c))}(),this},t.prototype.off=function(t,e,o){if(!t||"string"==typeof t||Array.isArray(t))u.off(this.el_,t,e);else{var n=t,r=e,i=a.bind(this,o);this.off("dispose",i),t.nodeName?(u.off(n,r,i),u.off(n,"dispose",i)):(n.off(r,i),n.off("dispose",i))}return this},t.prototype.one=function(t,e,o){var n,r,i,s,l=this,c=arguments;return"string"==typeof t||Array.isArray(t)?u.one(this.el_,t,a.bind(this,e)):(n=t,r=e,i=a.bind(l,o),(s=function t(){l.off(n,r,t),i.apply(null,c)}).guid=i.guid,l.on(n,r,s)),this},t.prototype.trigger=function(t,e){return u.trigger(this.el_,t,e),this},t.prototype.ready=function(t){var e=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];return t&&(this.isReady_?e?t.call(this):this.setTimeout(t,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(t))),this},t.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},t.prototype.$=function(t,e){return s.$(t,e||this.contentEl())},t.prototype.$$=function(t,e){return s.$$(t,e||this.contentEl())},t.prototype.hasClass=function(t){return s.hasElClass(this.el_,t)},t.prototype.addClass=function(t){return s.addElClass(this.el_,t),this},t.prototype.removeClass=function(t){return s.removeElClass(this.el_,t),this},t.prototype.toggleClass=function(t,e){return s.toggleElClass(this.el_,t,e),this},t.prototype.show=function(){return this.removeClass("vjs-hidden"),this},t.prototype.hide=function(){return this.addClass("vjs-hidden"),this},t.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},t.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},t.prototype.width=function(t,e){return this.dimension("width",t,e)},t.prototype.height=function(t,e){return this.dimension("height",t,e)},t.prototype.dimensions=function(t,e){return this.width(t,!0).height(e)},t.prototype.dimension=function(t,e,o){if(void 0!==e)return null!==e&&e==e||(e=0),-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?this.el_.style[t]=e:this.el_.style[t]="auto"===e?"":e+"px",o||this.trigger("resize"),this;if(!this.el_)return 0;var n=this.el_.style[t],r=n.indexOf("px");return-1!==r?parseInt(n.slice(0,r),10):parseInt(this.el_["offset"+p.default(t)],10)},t.prototype.emitTapEvents=function(){var t=0,e=null,o=void 0;this.on("touchstart",function(n){1===n.touches.length&&(e=h.default({},n.touches[0]),t=(new Date).getTime(),o=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)o=!1;else if(e){var n=t.touches[0].pageX-e.pageX,r=t.touches[0].pageY-e.pageY;Math.sqrt(n*n+r*r)>10&&(o=!1)}});var n=function(){o=!1};this.on("touchleave",n),this.on("touchcancel",n),this.on("touchend",function(n){(e=null,!0===o)&&((new Date).getTime()-t<200&&(n.preventDefault(),this.trigger("tap")))})},t.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t=a.bind(this.player(),this.player().reportUserActivity),e=void 0;this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var o=function(o){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",o),this.on("touchcancel",o)}},t.prototype.setTimeout=function(t,e){t=a.bind(this,t);var o=i.default.setTimeout(t,e),n=function(){this.clearTimeout(o)};return n.guid="vjs-timeout-"+o,this.on("dispose",n),o},t.prototype.clearTimeout=function(t){i.default.clearTimeout(t);var e=function(){};return e.guid="vjs-timeout-"+t,this.off("dispose",e),t},t.prototype.setInterval=function(t,e){t=a.bind(this,t);var o=i.default.setInterval(t,e),n=function(){this.clearInterval(o)};return n.guid="vjs-interval-"+o,this.on("dispose",n),o},t.prototype.clearInterval=function(t){i.default.clearInterval(t);var e=function(){};return e.guid="vjs-interval-"+t,this.off("dispose",e),t},t.registerComponent=function(e,o){return t.components_||(t.components_={}),t.components_[e]=o,o},t.getComponent=function(e){return t.components_&&t.components_[e]?t.components_[e]:i.default&&i.default.videojs&&i.default.videojs[e]?(c.default.warn("The "+e+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),i.default.videojs[e]):void 0},t.extend=function(e){e=e||{},c.default.warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var o=e.init||e.init||this.prototype.init||this.prototype.init||function(){},n=function(){o.apply(this,arguments)};for(var r in(n.prototype=Object.create(this.prototype)).constructor=n,n.extend=t.extend,e)e.hasOwnProperty(r)&&(n.prototype[r]=e[r]);return n},t}();d.registerComponent("Component",d),o.default=d,e.exports=o.default},{"./utils/dom.js":131,"./utils/events.js":132,"./utils/fn.js":133,"./utils/guid.js":135,"./utils/log.js":136,"./utils/merge-options.js":137,"./utils/to-title-case.js":140,"global/window":2,"object.assign":45}],67:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=n(t("../component.js")),i=(n(t("./play-toggle.js")),n(t("./time-controls/current-time-display.js")),n(t("./time-controls/duration-display.js")),n(t("./time-controls/time-divider.js")),n(t("./time-controls/remaining-time-display.js")),n(t("./live-display.js")),n(t("./progress-control/progress-control.js")),n(t("./fullscreen-toggle.js")),n(t("./volume-control/volume-control.js")),n(t("./volume-menu-button.js")),n(t("./mute-toggle.js")),n(t("./text-track-controls/chapters-button.js")),n(t("./text-track-controls/subtitles-button.js")),n(t("./text-track-controls/captions-button.js")),n(t("./playback-rate-menu/playback-rate-menu-button.js")),n(t("./spacer-controls/custom-control-spacer.js")),function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar"},{role:"group"})},e}(r.default));i.prototype.options_={loadEvent:"play",children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","subtitlesButton","captionsButton","fullscreenToggle"]},r.default.registerComponent("ControlBar",i),o.default=i,e.exports=o.default},{"../component.js":66,"./fullscreen-toggle.js":68,"./live-display.js":69,"./mute-toggle.js":70,"./play-toggle.js":71,"./playback-rate-menu/playback-rate-menu-button.js":72,"./progress-control/progress-control.js":77,"./spacer-controls/custom-control-spacer.js":79,"./text-track-controls/captions-button.js":82,"./text-track-controls/chapters-button.js":83,"./text-track-controls/subtitles-button.js":86,"./time-controls/current-time-display.js":89,"./time-controls/duration-display.js":90,"./time-controls/remaining-time-display.js":91,"./time-controls/time-divider.js":92,"./volume-control/volume-control.js":94,"./volume-menu-button.js":96}],68:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=n(t("../button.js")),i=n(t("../component.js")),s=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.player_.isFullscreen()?(this.player_.exitFullscreen(),this.controlText("Fullscreen")):(this.player_.requestFullscreen(),this.controlText("Non-Fullscreen"))},e}(r.default);s.prototype.controlText_="Fullscreen",i.default.registerComponent("FullscreenToggle",s),o.default=s,e.exports=o.default},{"../button.js":63,"../component.js":66}],69:[function(t,e,o){"use strict";o.__esModule=!0;var n,r=t("../component"),i=(n=r)&&n.__esModule?n:{default:n},s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(t("../utils/dom.js")),a=function(t){function e(o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,o,n),this.updateShowing(),this.on(this.player(),"durationchange",this.updateShowing)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=s.createEl("div",{className:"vjs-live-display",innerHTML:''+this.localize("Stream Type")+""+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateShowing=function(){this.player().duration()===1/0?this.show():this.hide()},e}(i.default);i.default.registerComponent("LiveDisplay",a),o.default=a,e.exports=o.default},{"../component":66,"../utils/dom.js":131}],70:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=n(t("../button")),i=n(t("../component")),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(t("../utils/dom.js")),a=function(t){function e(o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,o,n),this.on(o,"volumechange",this.update),o.tech_&&!1===o.tech_.featuresVolumeControl&&this.addClass("vjs-hidden"),this.on(o,"loadstart",function(){this.update(),!1===o.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.player_.muted(!this.player_.muted())},e.prototype.update=function(){var t=this.player_.volume(),e=3;0===t||this.player_.muted()?e=0:t<.33?e=1:t<.67&&(e=2);var o=this.player_.muted()?"Unmute":"Mute";this.controlText()!==o&&this.controlText(o);for(var n=0;n<4;n++)s.removeElClass(this.el_,"vjs-vol-"+n);s.addElClass(this.el_,"vjs-vol-"+e)},e}(r.default);a.prototype.controlText_="Mute",i.default.registerComponent("MuteToggle",a),o.default=a,e.exports=o.default},{"../button":63,"../component":66,"../utils/dom.js":131}],71:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=n(t("../button.js")),i=n(t("../component.js")),s=function(t){function e(o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,o,n),this.on(o,"play",this.handlePlay),this.on(o,"pause",this.handlePause)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},e.prototype.handlePlay=function(){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},e.prototype.handlePause=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},e}(r.default);s.prototype.controlText_="Play",i.default.registerComponent("PlayToggle",s),o.default=s,e.exports=o.default},{"../button.js":63,"../component.js":66}],72:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=n(t("../../menu/menu-button.js")),i=n(t("../../menu/menu.js")),s=n(t("./playback-rate-menu-item.js")),a=n(t("../../component.js")),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(t("../../utils/dom.js")),u=function(t){function e(o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,o,n),this.updateVisibility(),this.updateLabel(),this.on(o,"loadstart",this.updateVisibility),this.on(o,"ratechange",this.updateLabel)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this);return this.labelEl_=l.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),e.appendChild(this.labelEl_),e},e.prototype.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},e.prototype.createMenu=function(){var t=new i.default(this.player()),e=this.playbackRates();if(e)for(var o=e.length-1;o>=0;o--)t.addChild(new s.default(this.player(),{rate:e[o]+"x"}));return t},e.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},e.prototype.handleClick=function(){for(var t=this.player().playbackRate(),e=this.playbackRates(),o=e[0],n=0;nt){o=e[n];break}this.player().playbackRate(o)},e.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},e.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},e.prototype.updateVisibility=function(){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},e.prototype.updateLabel=function(){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},e}(r.default);u.prototype.controlText_="Playback Rate",a.default.registerComponent("PlaybackRateMenuButton",u),o.default=u,e.exports=o.default},{"../../component.js":66,"../../menu/menu-button.js":103,"../../menu/menu.js":105,"../../utils/dom.js":131,"./playback-rate-menu-item.js":73}],73:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=n(t("../../menu/menu-item.js")),i=n(t("../../component.js")),s=function(t){function e(o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=n.rate,i=parseFloat(r,10);n.label=r,n.selected=1===i,t.call(this,o,n),this.label=r,this.rate=i,this.on(o,"ratechange",this.update)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},e.prototype.update=function(){this.selected(this.player().playbackRate()===this.rate)},e}(r.default);s.prototype.contentElType="button",i.default.registerComponent("PlaybackRateMenuItem",s),o.default=s,e.exports=o.default},{"../../component.js":66,"../../menu/menu-item.js":104}],74:[function(t,e,o){"use strict";o.__esModule=!0;var n,r=t("../../component.js"),i=(n=r)&&n.__esModule?n:{default:n},s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(t("../../utils/dom.js")),a=function(t){function e(o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,o,n),this.on(o,"progress",this.update)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:''+this.localize("Loaded")+": 0%"})},e.prototype.update=function(){var t=this.player_.buffered(),e=this.player_.duration(),o=this.player_.bufferedEnd(),n=this.el_.children,r=function(t,e){var o=t/e||0;return 100*(o>=1?1:o)+"%"};this.el_.style.width=r(o,e);for(var i=0;it.length;i--)this.el_.removeChild(n[i-1])},e}(i.default);i.default.registerComponent("LoadProgressBar",a),o.default=a,e.exports=o.default},{"../../component.js":66,"../../utils/dom.js":131}],75:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var i=r(t("../../component.js")),s=n(t("../../utils/dom.js")),a=n(t("../../utils/fn.js")),l=r(t("../../utils/format-time.js")),u=r(t("lodash-compat/function/throttle")),c=function(t){function e(o,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,o,n),this.update(0,0),o.on("ready",function(){r.on(o.controlBar.progressControl.el(),"mousemove",u.default(a.bind(r,r.handleMouseMove),25))})}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},e.prototype.handleMouseMove=function(t){var e=this.player_.duration(),o=this.calculateDistance(t)*e,n=t.pageX-s.findElPosition(this.el().parentNode).left;this.update(o,n)},e.prototype.update=function(t,e){var o=l.default(t,this.player_.duration());this.el().style.left=e+"px",this.el().setAttribute("data-current-time",o)},e.prototype.calculateDistance=function(t){return s.getPointerPosition(this.el().parentNode,t).x},e}(i.default);i.default.registerComponent("MouseTimeDisplay",c),o.default=c,e.exports=o.default},{"../../component.js":66,"../../utils/dom.js":131,"../../utils/fn.js":133,"../../utils/format-time.js":134,"lodash-compat/function/throttle":7}],76:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=n(t("../../component.js")),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(t("../../utils/fn.js")),s=n(t("../../utils/format-time.js")),a=function(t){function e(o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,o,n),this.updateDataAttr(),this.on(o,"timeupdate",this.updateDataAttr),o.ready(i.bind(this,this.updateDataAttr))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:''+this.localize("Progress")+": 0%"})},e.prototype.updateDataAttr=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",s.default(t,this.player_.duration()))},e}(r.default);r.default.registerComponent("PlayProgressBar",a),o.default=a,e.exports=o.default},{"../../component.js":66,"../../utils/fn.js":133,"../../utils/format-time.js":134}],77:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=n(t("../../component.js")),i=(n(t("./seek-bar.js")),n(t("./mouse-time-display.js")),function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},e}(r.default));i.prototype.options_={children:["seekBar"]},r.default.registerComponent("ProgressControl",i),o.default=i,e.exports=o.default},{"../../component.js":66,"./mouse-time-display.js":75,"./seek-bar.js":78}],78:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=n(t("../../slider/slider.js")),i=n(t("../../component.js")),s=(n(t("./load-progress-bar.js")),n(t("./play-progress-bar.js")),function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(t("../../utils/fn.js"))),a=n(t("../../utils/format-time.js")),l=(n(t("object.assign")),function(t){function e(o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,o,n),this.on(o,"timeupdate",this.updateARIAAttributes),o.ready(s.bind(this,this.updateARIAAttributes))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"video progress bar"})},e.prototype.updateARIAAttributes=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),this.el_.setAttribute("aria-valuetext",a.default(t,this.player_.duration()))},e.prototype.getPercent=function(){var t=this.player_.currentTime()/this.player_.duration();return t>=1?1:t},e.prototype.handleMouseDown=function(e){t.prototype.handleMouseDown.call(this,e),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause()},e.prototype.handleMouseMove=function(t){var e=this.calculateDistance(t)*this.player_.duration();e===this.player_.duration()&&(e-=.1),this.player_.currentTime(e)},e.prototype.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),this.player_.scrubbing(!1),this.videoWasPlaying&&this.player_.play()},e.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},e.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},e}(r.default));l.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},l.prototype.playerEvent="timeupdate",i.default.registerComponent("SeekBar",l),o.default=l,e.exports=o.default},{"../../component.js":66,"../../slider/slider.js":113,"../../utils/fn.js":133,"../../utils/format-time.js":134,"./load-progress-bar.js":74,"./play-progress-bar.js":76,"object.assign":45}],79:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=n(t("./spacer.js")),i=n(t("../../component.js")),s=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML=" ",e},e}(r.default);i.default.registerComponent("CustomControlSpacer",s),o.default=s,e.exports=o.default},{"../../component.js":66,"./spacer.js":80}],80:[function(t,e,o){"use strict";o.__esModule=!0;var n,r=t("../../component.js"),i=(n=r)&&n.__esModule?n:{default:n},s=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e}(i.default);i.default.registerComponent("Spacer",s),o.default=s,e.exports=o.default},{"../../component.js":66}],81:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=n(t("./text-track-menu-item.js")),i=n(t("../../component.js")),s=function(t){function e(o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n.track={kind:n.kind,player:o,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,t.call(this,o,n),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+n.kind+" settings dialog")}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").el_.focus()},e}(r.default);i.default.registerComponent("CaptionSettingsMenuItem",s),o.default=s,e.exports=o.default},{"../../component.js":66,"./text-track-menu-item.js":88}],82:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=n(t("./text-track-button.js")),i=n(t("../../component.js")),s=n(t("./caption-settings-menu-item.js")),a=function(t){function e(o,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,o,n,r),this.el_.setAttribute("aria-label","Captions Menu")}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},e.prototype.update=function(){var e=2;t.prototype.update.call(this),this.player().tech_&&this.player().tech_.featuresNativeTextTracks&&(e=1),this.items&&this.items.length>e?this.show():this.hide()},e.prototype.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||e.push(new s.default(this.player_,{kind:this.kind_})),t.prototype.createItems.call(this,e)},e}(r.default);a.prototype.kind_="captions",a.prototype.controlText_="Captions",i.default.registerComponent("CaptionsButton",a),o.default=a,e.exports=o.default},{"../../component.js":66,"./caption-settings-menu-item.js":81,"./text-track-button.js":87}],83:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var i=r(t("./text-track-button.js")),s=r(t("../../component.js")),a=r(t("./text-track-menu-item.js")),l=r(t("./chapters-track-menu-item.js")),u=r(t("../../menu/menu.js")),c=n(t("../../utils/dom.js")),p=(n(t("../../utils/fn.js")),r(t("../../utils/to-title-case.js"))),h=(r(t("global/window")),function(t){function e(o,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,o,n,r),this.el_.setAttribute("aria-label","Chapters Menu")}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},e.prototype.createItems=function(){var t=[],e=this.player_.textTracks();if(!e)return t;for(var o=0;o0){for(var f=o.cues,d=void 0,y=(r=0,f.length);r0&&this.show(),a},e}(i.default));h.prototype.kind_="chapters",h.prototype.controlText_="Chapters",s.default.registerComponent("ChaptersButton",h),o.default=h,e.exports=o.default},{"../../component.js":66,"../../menu/menu.js":105,"../../utils/dom.js":131,"../../utils/fn.js":133,"../../utils/to-title-case.js":140,"./chapters-track-menu-item.js":84,"./text-track-button.js":87,"./text-track-menu-item.js":88,"global/window":2}],84:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=n(t("../../menu/menu-item.js")),i=n(t("../../component.js")),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(t("../../utils/fn.js")),a=function(t){function e(o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=n.track,i=n.cue,a=o.currentTime();n.label=i.text,n.selected=i.startTime<=a&&aCurrent Time 0:00'},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),e=this.localize("Current Time"),o=s.default(t,this.player_.duration());this.contentEl_.innerHTML=''+e+" "+o},e}(r.default);r.default.registerComponent("CurrentTimeDisplay",a),o.default=a,e.exports=o.default},{"../../component.js":66,"../../utils/dom.js":131,"../../utils/format-time.js":134}],90:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=n(t("../../component.js")),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(t("../../utils/dom.js")),s=n(t("../../utils/format-time.js")),a=function(t){function e(o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,o,n),this.on(o,"timeupdate",this.updateContent),this.on(o,"loadedmetadata",this.updateContent)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=i.createEl("div",{className:"vjs-duration-display",innerHTML:''+this.localize("Duration Time")+" 0:00"},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(){var t=this.player_.duration();if(t){var e=this.localize("Duration Time"),o=s.default(t);this.contentEl_.innerHTML=''+e+" "+o}},e}(r.default);r.default.registerComponent("DurationDisplay",a),o.default=a,e.exports=o.default},{"../../component.js":66,"../../utils/dom.js":131,"../../utils/format-time.js":134}],91:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=n(t("../../component.js")),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(t("../../utils/dom.js")),s=n(t("../../utils/format-time.js")),a=function(t){function e(o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,o,n),this.on(o,"timeupdate",this.updateContent)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=i.createEl("div",{className:"vjs-remaining-time-display",innerHTML:''+this.localize("Remaining Time")+" -0:00"},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(){if(this.player_.duration()){var t=this.localize("Remaining Time"),e=s.default(this.player_.remainingTime());this.contentEl_.innerHTML=''+t+" -"+e}},e}(r.default);r.default.registerComponent("RemainingTimeDisplay",a),o.default=a,e.exports=o.default},{"../../component.js":66,"../../utils/dom.js":131,"../../utils/format-time.js":134}],92:[function(t,e,o){"use strict";o.__esModule=!0;var n,r=t("../../component.js"),i=(n=r)&&n.__esModule?n:{default:n},s=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"
/
"})},e}(i.default);i.default.registerComponent("TimeDivider",s),o.default=s,e.exports=o.default},{"../../component.js":66}],93:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=n(t("../../slider/slider.js")),i=n(t("../../component.js")),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(t("../../utils/fn.js")),a=(n(t("./volume-level.js")),function(t){function e(o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,o,n),this.on(o,"volumechange",this.updateARIAAttributes),o.ready(s.bind(this,this.updateARIAAttributes))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},e.prototype.handleMouseMove=function(t){this.checkMuted(),this.player_.volume(this.calculateDistance(t))},e.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},e.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},e.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},e.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},e.prototype.updateARIAAttributes=function(){var t=(100*this.player_.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},e}(r.default));a.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},a.prototype.playerEvent="volumechange",i.default.registerComponent("VolumeBar",a),o.default=a,e.exports=o.default},{"../../component.js":66,"../../slider/slider.js":113,"../../utils/fn.js":133,"./volume-level.js":95}],94:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=n(t("../../component.js")),i=(n(t("./volume-bar.js")),function(t){function e(o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,o,n),o.tech_&&!1===o.tech_.featuresVolumeControl&&this.addClass("vjs-hidden"),this.on(o,"loadstart",function(){!1===o.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},e}(r.default));i.prototype.options_={children:["volumeBar"]},r.default.registerComponent("VolumeControl",i),o.default=i,e.exports=o.default},{"../../component.js":66,"./volume-bar.js":93}],95:[function(t,e,o){"use strict";o.__esModule=!0;var n,r=t("../../component.js"),i=(n=r)&&n.__esModule?n:{default:n},s=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:''})},e}(i.default);i.default.registerComponent("VolumeLevel",s),o.default=s,e.exports=o.default},{"../../component.js":66}],96:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(t("../utils/fn.js")),i=n(t("../component.js")),s=n(t("../popup/popup.js")),a=n(t("../popup/popup-button.js")),l=n(t("./mute-toggle.js")),u=n(t("./volume-control/volume-bar.js")),c=n(t("global/document")),p=function(t){function e(o){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];function r(){o.tech_&&!1===o.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),void 0===n.inline&&(n.inline=!0),void 0===n.vertical&&(n.inline?n.vertical=!1:n.vertical=!0),n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=!!n.vertical,t.call(this,o,n),this.on(o,"volumechange",this.volumeUpdate),this.on(o,"loadstart",this.volumeUpdate),r.call(this),this.on(o,"loadstart",r),this.on(this.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),this.on(this.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),this.on(this.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),this.on(this.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")})}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){var e="";return e=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+t.prototype.buildCSSClass.call(this)+" "+e},e.prototype.createPopup=function(){var t=new s.default(this.player_,{contentElType:"div"}),e=new u.default(this.player_,this.options_.volumeBar);return t.addChild(e),this.volumeBar=e,this.attachVolumeBarEvents(),t},e.prototype.handleClick=function(){l.default.prototype.handleClick.call(this),t.prototype.handleClick.call(this)},e.prototype.attachVolumeBarEvents=function(){this.on(["mousedown","touchdown"],this.handleMouseDown)},e.prototype.handleMouseDown=function(t){this.on(["mousemove","touchmove"],r.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(c.default,["mouseup","touchend"],this.handleMouseUp)},e.prototype.handleMouseUp=function(t){this.off(["mousemove","touchmove"],r.bind(this.volumeBar,this.volumeBar.handleMouseMove))},e}(a.default);p.prototype.volumeUpdate=l.default.prototype.update,p.prototype.controlText_="Mute",i.default.registerComponent("VolumeMenuButton",p),o.default=p,e.exports=o.default},{"../component.js":66,"../popup/popup-button.js":109,"../popup/popup.js":110,"../utils/fn.js":133,"./mute-toggle.js":70,"./volume-control/volume-bar.js":93,"global/document":1}],97:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=n(t("./component")),i=n(t("./modal-dialog")),s=(function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);e.default=t}(t("./utils/dom")),n(t("./utils/merge-options"))),a=function(t){function e(o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,o,n),this.on(o,"error",this.open)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},e.prototype.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(i.default);a.prototype.options_=s.default(i.default.prototype.options_,{fillAlways:!0,temporary:!1,uncloseable:!0}),r.default.registerComponent("ErrorDisplay",a),o.default=a,e.exports=o.default},{"./component":66,"./modal-dialog":106,"./utils/dom":131,"./utils/merge-options":137}],98:[function(t,e,o){"use strict";o.__esModule=!0;var n=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(t("./utils/events.js")),r=function(){};r.prototype.allowedEvents_={},r.prototype.on=function(t,e){var o=this.addEventListener;this.addEventListener=Function.prototype,n.on(this,t,e),this.addEventListener=o},r.prototype.addEventListener=r.prototype.on,r.prototype.off=function(t,e){n.off(this,t,e)},r.prototype.removeEventListener=r.prototype.off,r.prototype.one=function(t,e){n.one(this,t,e)},r.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&&(t={type:e}),t=n.fixEvent(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),n.trigger(this,t)},r.prototype.dispatchEvent=r.prototype.trigger,o.default=r,e.exports=o.default},{"./utils/events.js":132}],99:[function(t,e,o){"use strict";o.__esModule=!0;var n,r=t("./utils/log"),i=(n=r)&&n.__esModule?n:{default:n};o.default=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=function(){t.apply(this,arguments)},n={};for(var r in"object"==typeof e?("function"==typeof e.init&&(i.default.warn("Constructor logic via init() is deprecated; please use constructor() instead."),e.constructor=e.init),e.constructor!==Object.prototype.constructor&&(o=e.constructor),n=e):"function"==typeof e&&(o=e),function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.super_=e)}(o,t),n)n.hasOwnProperty(r)&&(o.prototype[r]=n[r]);return o},e.exports=o.default},{"./utils/log":136}],100:[function(t,e,o){"use strict";o.__esModule=!0;for(var n,r=t("global/document"),i=(n=r)&&n.__esModule?n:{default:n},s={},a=[["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"]],l=a[0],u=void 0,c=0;c1&&this.show()},e.prototype.createMenu=function(){var t=new a.default(this.player_);if(this.options_.title&&t.contentEl().appendChild(l.createEl("li",{className:"vjs-menu-title",innerHTML:c.default(this.options_.title),tabIndex:-1})),this.items=this.createItems(),this.items)for(var e=0;e0&&(t<0?t=0:t>=e.length&&(t=e.length-1),this.focusedChild_=t,e[t].el_.focus())},e}(s.default);s.default.registerComponent("Menu",c),o.default=c,e.exports=o.default},{"../component.js":66,"../utils/dom.js":131,"../utils/events.js":132,"../utils/fn.js":133}],106:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var i=r(t("global/document")),s=n(t("./utils/dom")),a=n(t("./utils/fn")),l=(r(t("./utils/log")),r(t("./component"))),u=(r(t("./close-button")),"vjs-modal-dialog"),c=function(t){function e(o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,o,n),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=s.createEl("div",{className:u+"-content"},{role:"document"}),this.descEl_=s.createEl("p",{className:u+"-description vjs-offscreen",id:this.el().getAttribute("aria-describedby")}),s.textContent(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},e.prototype.buildCSSClass=function(){return u+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},e.prototype.handleKeyPress=function(t){27===t.which&&this.closeable()&&this.close()},e.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},e.prototype.description=function(){var t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},e.prototype.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!t.paused(),this.wasPlaying_&&t.pause(),this.closeable()&&this.on(i.default,"keydown",a.bind(this,this.handleKeyPress)),t.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}return this},e.prototype.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.opened_},e.prototype.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&t.play(),this.closeable()&&this.off(i.default,"keydown",a.bind(this,this.handleKeyPress)),t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.options_.temporary&&this.dispose()}return this},e.prototype.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,o=this.getChild("closeButton");if(e&&!o){var n=this.contentEl_;this.contentEl_=this.el_,o=this.addChild("closeButton"),this.contentEl_=n,this.on(o,"close",this.close)}!e&&o&&(this.off(o,"close",this.close),this.removeChild(o),o.dispose())}return this.closeable_},e.prototype.fill=function(){return this.fillWith(this.content())},e.prototype.fillWith=function(t){var e=this.contentEl(),o=e.parentNode,n=e.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,o.removeChild(e),this.empty(),s.insertContent(e,t),this.trigger("modalfill"),n?o.insertBefore(e,n):o.appendChild(e),this},e.prototype.empty=function(){return this.trigger("beforemodalempty"),s.emptyEl(this.contentEl()),this.trigger("modalempty"),this},e.prototype.content=function(t){return void 0!==t&&(this.content_=t),this.content_},e}(l.default);c.prototype.options_={temporary:!0},l.default.registerComponent("ModalDialog",c),o.default=c,e.exports=o.default},{"./close-button":65,"./component":66,"./utils/dom":131,"./utils/fn":133,"./utils/log":136,"global/document":1}],107:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var i=r(t("./component.js")),s=r(t("global/document")),a=r(t("global/window")),l=n(t("./utils/events.js")),u=n(t("./utils/dom.js")),c=n(t("./utils/fn.js")),p=n(t("./utils/guid.js")),h=(n(t("./utils/browser.js")),r(t("./utils/log.js"))),f=r(t("./utils/to-title-case.js")),d=t("./utils/time-ranges.js"),y=t("./utils/buffer.js"),v=n(t("./utils/stylesheet.js")),g=r(t("./fullscreen-api.js")),m=r(t("./media-error.js")),b=r(t("safe-json-parse/tuple")),_=r(t("object.assign")),j=r(t("./utils/merge-options.js")),T=r(t("./tracks/text-track-list-converter.js")),w=(r(t("./tech/loader.js")),r(t("./poster-image.js")),r(t("./tracks/text-track-display.js")),r(t("./loading-spinner.js")),r(t("./big-play-button.js")),r(t("./control-bar/control-bar.js")),r(t("./error-display.js")),r(t("./tracks/text-track-settings.js")),r(t("./modal-dialog"))),k=r(t("./tech/tech.js")),C=(r(t("./tech/html5.js")),function(t){function e(o,n,r){var i,s=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o.id=o.id||"vjs_video_"+p.newGUID(),(n=_.default(e.getTagSettings(o),n)).initChildren=!1,n.createEl=!1,n.reportTouchActivity=!1,t.call(this,null,n,r),!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");this.tag=o,this.tagAttributes=o&&u.getElAttributes(o),this.language(this.options_.language),n.languages?(i={},Object.getOwnPropertyNames(n.languages).forEach(function(t){i[t.toLowerCase()]=n.languages[t]}),s.languages_=i):this.languages_=e.prototype.options_.languages,this.cache_={},this.poster_=n.poster||"",this.controls_=!!n.controls,o.controls=!1,this.scrubbing_=!1,this.el_=this.createEl();var a,l=j.default(this.options_);n.plugins&&(a=n.plugins,Object.getOwnPropertyNames(a).forEach(function(t){"function"==typeof this[t]?this[t](a[t]):h.default.error("Unable to find plugin:",t)},s)),this.options_.playerOptions=l,this.initChildren(),this.isAudio("audio"===o.nodeName.toLowerCase()),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.isAudio()&&this.addClass("vjs-audio"),this.flexNotSupported_()&&this.addClass("vjs-no-flex"),e.players[this.id_]=this,this.userActive(!0),this.reportUserActivity(),this.listenForUserActivity_(),this.on("fullscreenchange",this.handleFullscreenChange_),this.on("stageclick",this.handleStageClick_)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_),e.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&this.tech_.dispose(),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var e=this.el_=t.prototype.createEl.call(this,"div"),o=this.tag;o.removeAttribute("width"),o.removeAttribute("height");var n=u.getElAttributes(o);Object.getOwnPropertyNames(n).forEach(function(t){"class"===t?e.className=n[t]:e.setAttribute(t,n[t])}),o.playerId=o.id,o.id+="_html5_api",o.className="vjs-tech",o.player=e.player=this,this.addClass("vjs-paused"),this.styleEl_=v.createStyleElement("vjs-styles-dimensions");var r=u.$(".vjs-styles-defaults"),i=u.$("head");return i.insertBefore(this.styleEl_,r?r.nextSibling:i.firstChild),this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),o.initNetworkState_=o.networkState,o.parentNode&&o.parentNode.insertBefore(e,o),u.insertElFirst(o,e),this.el_=e,e},e.prototype.width=function(t){return this.dimension("width",t)},e.prototype.height=function(t){return this.dimension("height",t)},e.prototype.dimension=function(t,e){var o=t+"_";if(void 0===e)return this[o]||0;if(""===e)this[o]=void 0;else{var n=parseFloat(e);if(isNaN(n))return h.default.error('Improper value "'+e+'" supplied for for '+t),this;this[o]=n}return this.updateStyleEl_(),this},e.prototype.fluid=function(t){if(void 0===t)return!!this.fluid_;this.fluid_=!!t,t?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid")},e.prototype.aspectRatio=function(t){if(void 0===t)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(!0),this.updateStyleEl_()},e.prototype.updateStyleEl_=function(){var t=void 0,e=void 0,o=void 0,n=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),r=n[1]/n[0];t=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/r:this.videoWidth()||300,e=void 0!==this.height_?this.height_:t*r,o=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(o),v.setTextContent(this.styleEl_,"\n ."+o+" {\n width: "+t+"px;\n height: "+e+"px;\n }\n\n ."+o+".vjs-fluid {\n padding-top: "+100*r+"%;\n }\n ")},e.prototype.loadTech_=function(t,e){this.tech_&&this.unloadTech_(),"Html5"!==t&&this.tag&&(k.default.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=t,this.isReady_=!1;var o=_.default({nativeControlsForTouch:this.options_.nativeControlsForTouch,source:e,playerId:this.id(),techId:this.id()+"_"+t+"_api",textTracks:this.textTracks_,autoplay:this.options_.autoplay,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),"vtt.js":this.options_["vtt.js"]},this.options_[t.toLowerCase()]);this.tag&&(o.tag=this.tag),e&&(this.currentType_=e.type,e.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime),this.cache_.src=e.src);var n=k.default.getTech(t);n||(n=i.default.getComponent(t)),this.tech_=new n(o),this.tech_.ready(c.bind(this,this.handleTechReady_),!0),T.default.jsonToTextTracks(this.textTracksJson_||[],this.tech_),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_,"progress",this.handleTechProgress_),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_,"suspend",this.handleTechSuspend_),this.on(this.tech_,"abort",this.handleTechAbort_),this.on(this.tech_,"emptied",this.handleTechEmptied_),this.on(this.tech_,"stalled",this.handleTechStalled_),this.on(this.tech_,"loadedmetadata",this.handleTechLoadedMetaData_),this.on(this.tech_,"loadeddata",this.handleTechLoadedData_),this.on(this.tech_,"timeupdate",this.handleTechTimeUpdate_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.on(this.tech_,"volumechange",this.handleTechVolumeChange_),this.on(this.tech_,"texttrackchange",this.handleTechTextTrackChange_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===t&&this.tag||u.insertElFirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},e.prototype.unloadTech_=function(){this.textTracks_=this.textTracks(),this.textTracksJson_=T.default.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},e.prototype.tech=function(t){if(t&&t.IWillNotUseThisInPlugins)return this.tech_;var e="\n Please make sure that you are not using this inside of a plugin.\n To disable this alert and error, please pass in an object with\n `IWillNotUseThisInPlugins` to the `tech` method. See\n https://github.com/videojs/video.js/issues/2617 for more info.\n ";throw a.default.alert(e),new Error(e)},e.prototype.addTechControlsListeners_=function(){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_)},e.prototype.removeTechControlsListeners_=function(){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_)},e.prototype.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),this.src()&&this.tag&&this.options_.autoplay&&this.paused()&&(delete this.tag.poster,this.play())},e.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},e.prototype.hasStarted=function(t){return void 0!==t?(this.hasStarted_!==t&&(this.hasStarted_=t,t?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},e.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},e.prototype.handleTechWaiting_=function(){this.addClass("vjs-waiting"),this.trigger("waiting")},e.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},e.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},e.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},e.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},e.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},e.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime),this.addClass("vjs-has-started"),this.trigger("firstplay")},e.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},e.prototype.handleTechProgress_=function(){this.trigger("progress")},e.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},e.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},e.prototype.handleTechClick_=function(t){0===t.button&&this.controls()&&(this.paused()?this.play():this.pause())},e.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},e.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},e.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},e.prototype.handleTechTouchEnd_=function(t){t.preventDefault()},e.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},e.prototype.handleStageClick_=function(){this.reportUserActivity()},e.prototype.handleTechFullscreenChange_=function(t,e){e&&this.isFullscreen(e.isFullscreen),this.trigger("fullscreenchange")},e.prototype.handleTechError_=function(){var t=this.tech_.error();this.error(t&&t.code)},e.prototype.handleTechSuspend_=function(){this.trigger("suspend")},e.prototype.handleTechAbort_=function(){this.trigger("abort")},e.prototype.handleTechEmptied_=function(){this.trigger("emptied")},e.prototype.handleTechStalled_=function(){this.trigger("stalled")},e.prototype.handleTechLoadedMetaData_=function(){this.trigger("loadedmetadata")},e.prototype.handleTechLoadedData_=function(){this.trigger("loadeddata")},e.prototype.handleTechTimeUpdate_=function(){this.trigger("timeupdate")},e.prototype.handleTechRateChange_=function(){this.trigger("ratechange")},e.prototype.handleTechVolumeChange_=function(){this.trigger("volumechange")},e.prototype.handleTechTextTrackChange_=function(){this.trigger("texttrackchange")},e.prototype.getCache=function(){return this.cache_},e.prototype.techCall_=function(t,e){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[t](e)},!0);else try{this.tech_[t](e)}catch(t){throw h.default(t),t}},e.prototype.techGet_=function(t){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[t]()}catch(e){throw void 0===this.tech_[t]?h.default("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e):"TypeError"===e.name?(h.default("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1):h.default(e),e}},e.prototype.play=function(){return this.techCall_("play"),this},e.prototype.pause=function(){return this.techCall_("pause"),this},e.prototype.paused=function(){return!1!==this.techGet_("paused")},e.prototype.scrubbing=function(t){return void 0!==t?(this.scrubbing_=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},e.prototype.currentTime=function(t){return void 0!==t?(this.techCall_("setCurrentTime",t),this):this.cache_.currentTime=this.techGet_("currentTime")||0},e.prototype.duration=function(t){return void 0===t?this.cache_.duration||0:((t=parseFloat(t)||0)<0&&(t=1/0),t!==this.cache_.duration&&(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},e.prototype.remainingTime=function(){return this.duration()-this.currentTime()},e.prototype.buffered=function(){var t=this.techGet_("buffered");return t&&t.length||(t=d.createTimeRange(0,0)),t},e.prototype.bufferedPercent=function(){return y.bufferedPercent(this.buffered(),this.duration())},e.prototype.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),o=t.end(t.length-1);return o>e&&(o=e),o},e.prototype.volume=function(t){var e=void 0;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),this):(e=parseFloat(this.techGet_("volume")),isNaN(e)?1:e)},e.prototype.muted=function(t){return void 0!==t?(this.techCall_("setMuted",t),this):this.techGet_("muted")||!1},e.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},e.prototype.isFullscreen=function(t){return void 0!==t?(this.isFullscreen_=!!t,this):!!this.isFullscreen_},e.prototype.requestFullscreen=function(){var t=g.default;return this.isFullscreen(!0),t.requestFullscreen?(l.on(s.default,t.fullscreenchange,c.bind(this,function e(o){this.isFullscreen(s.default[t.fullscreenElement]),!1===this.isFullscreen()&&l.off(s.default,t.fullscreenchange,e),this.trigger("fullscreenchange")})),this.el_[t.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},e.prototype.exitFullscreen=function(){var t=g.default;return this.isFullscreen(!1),t.requestFullscreen?s.default[t.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},e.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=s.default.documentElement.style.overflow,l.on(s.default,"keydown",c.bind(this,this.fullWindowOnEscKey)),s.default.documentElement.style.overflow="hidden",u.addElClass(s.default.body,"vjs-full-window"),this.trigger("enterFullWindow")},e.prototype.fullWindowOnEscKey=function(t){27===t.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},e.prototype.exitFullWindow=function(){this.isFullWindow=!1,l.off(s.default,"keydown",this.fullWindowOnEscKey),s.default.documentElement.style.overflow=this.docOrigOverflow,u.removeElClass(s.default.body,"vjs-full-window"),this.trigger("exitFullWindow")},e.prototype.canPlayType=function(t){for(var e=void 0,o=0,n=this.options_.techOrder;o0&&(r=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},t))}},250)},e.prototype.playbackRate=function(t){return void 0!==t?(this.techCall_("setPlaybackRate",t),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},e.prototype.isAudio=function(t){return void 0!==t?(this.isAudio_=!!t,this):!!this.isAudio_},e.prototype.networkState=function(){return this.techGet_("networkState")},e.prototype.readyState=function(){return this.techGet_("readyState")},e.prototype.textTracks=function(){return this.tech_&&this.tech_.textTracks()},e.prototype.remoteTextTracks=function(){return this.tech_&&this.tech_.remoteTextTracks()},e.prototype.remoteTextTrackEls=function(){return this.tech_&&this.tech_.remoteTextTrackEls()},e.prototype.addTextTrack=function(t,e,o){return this.tech_&&this.tech_.addTextTrack(t,e,o)},e.prototype.addRemoteTextTrack=function(t){return this.tech_&&this.tech_.addRemoteTextTrack(t)},e.prototype.removeRemoteTextTrack=function(t){this.tech_&&this.tech_.removeRemoteTextTrack(t)},e.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},e.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},e.prototype.language=function(t){return void 0===t?this.language_:(this.language_=(""+t).toLowerCase(),this)},e.prototype.languages=function(){return j.default(e.prototype.options_.languages,this.languages_)},e.prototype.toJSON=function(){var t=j.default(this.options_),e=t.tracks;t.tracks=[];for(var o=0;o1&&this.show()},e.prototype.createPopup=function(){},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e.prototype.buildCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+t.prototype.buildCSSClass.call(this)},e}(i.default));s.default.registerComponent("PopupButton",a),o.default=a,e.exports=o.default},{"../clickable-component.js":64,"../component.js":66,"../utils/dom.js":131,"../utils/fn.js":133,"../utils/to-title-case.js":140,"./popup.js":110}],110:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}o.__esModule=!0;var r,i=t("../component.js"),s=(r=i)&&r.__esModule?r:{default:r},a=n(t("../utils/dom.js")),l=n(t("../utils/fn.js")),u=n(t("../utils/events.js")),c=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addItem=function(t){this.addChild(t),t.on("click",l.bind(this,function(){this.unlockShowing()}))},e.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=a.createEl(e,{className:"vjs-menu-content"});var o=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return o.appendChild(this.contentEl_),u.on(o,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),o},e}(s.default);s.default.registerComponent("Popup",c),o.default=c,e.exports=o.default},{"../component.js":66,"../utils/dom.js":131,"../utils/events.js":132,"../utils/fn.js":133}],111:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var i=r(t("./clickable-component.js")),s=r(t("./component.js")),a=n(t("./utils/fn.js")),l=n(t("./utils/dom.js")),u=n(t("./utils/browser.js")),c=function(t){function e(o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,o,n),this.update(),o.on("posterchange",a.bind(this,this.update))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var t=l.createEl("div",{className:"vjs-poster",tabIndex:-1});return u.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=l.createEl("img"),t.appendChild(this.fallbackImg_)),t},e.prototype.update=function(){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},e.prototype.setSrc=function(t){if(this.fallbackImg_)this.fallbackImg_.src=t;else{var e="";t&&(e='url("'+t+'")'),this.el_.style.backgroundImage=e}},e.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},e}(i.default);s.default.registerComponent("PosterImage",c),o.default=c,e.exports=o.default},{"./clickable-component.js":64,"./component.js":66,"./utils/browser.js":128,"./utils/dom.js":131,"./utils/fn.js":133}],112:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(t("./utils/events.js")),i=n(t("global/document")),s=n(t("global/window")),a=!1,l=void 0,u=function(){var t=i.default.getElementsByTagName("video"),e=i.default.getElementsByTagName("audio"),o=[];if(t&&t.length>0)for(var n=0,r=t.length;n0)for(n=0,r=e.length;n0)for(n=0,r=o.length;no.start(0)?e:o.start(0))=10},i.default.withSourceHandlers(d),d.nativeSourceHandler={},d.nativeSourceHandler.canPlayType=function(t){return t in d.formats?"maybe":""},d.nativeSourceHandler.canHandleSource=function(t){var e,o,n;return t.type?e=t.type.replace(/;.*/,"").toLowerCase():(o=t.src,e=(n=a.getFileExtension(o))?"video/"+n:""),d.nativeSourceHandler.canPlayType(e)},d.nativeSourceHandler.handleSource=function(t,e){e.setSrc(t.src)},d.nativeSourceHandler.dispose=function(){},d.registerSourceHandler(d.nativeSourceHandler),d.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},d.onReady=function(t){var e=s.getEl(t),o=e&&e.tech;o&&o.el()&&d.checkReady(o)},d.checkReady=function(t){t.el()&&(t.el().vjs_getProperty?t.triggerReady():this.setTimeout(function(){d.checkReady(t)},50))},d.onEvent=function(t,e){s.getEl(t).tech.trigger(e)},d.onError=function(t,e){var o=s.getEl(t).tech;if("srcnotfound"===e)return o.error(4);o.error("FLASH: "+e)},d.version=function(){var t="0,0,0";try{t=new p.default.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(e){try{f.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(t=(f.plugins["Shockwave Flash 2.0"]||f.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(t){}}return t.split(",")},d.embed=function(t,e,o,n){var r=d.getEmbedCode(t,e,o,n);return s.createEl("div",{innerHTML:r}).childNodes[0]},d.getEmbedCode=function(t,e,o,n){var r="",i="",s="";return e&&Object.getOwnPropertyNames(e).forEach(function(t){r+=t+"="+e[t]+"&"}),o=h.default({movie:t,flashvars:r,allowScriptAccess:"always",allowNetworking:"all"},o),Object.getOwnPropertyNames(o).forEach(function(t){i+=''}),n=h.default({data:t,width:"100%",height:"100%"},n),Object.getOwnPropertyNames(n).forEach(function(t){s+=t+'="'+n[t]+'" '}),'"+i+""},u.default(d),c.default.registerComponent("Flash",d),i.default.registerTech("Flash",d),o.default=d,e.exports=o.default},{"../component":66,"../utils/dom.js":131,"../utils/time-ranges.js":139,"../utils/url.js":141,"./flash-rtmp":114,"./tech":118,"global/window":2,"object.assign":45}],116:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var i=r(t("./tech.js")),s=r(t("../component")),a=n(t("../utils/dom.js")),l=n(t("../utils/url.js")),u=n(t("../utils/fn.js")),c=r(t("../utils/log.js")),p=n(t("../utils/browser.js")),h=r(t("global/document")),f=r(t("global/window")),d=r(t("object.assign")),y=r(t("../utils/merge-options.js")),v=function(t){function e(o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,o,n);var r=o.source;if(r&&(this.el_.currentSrc!==r.src||o.tag&&3===o.tag.initNetworkState_)?this.setSource(r):this.handleLateInit_(this.el_),this.el_.hasChildNodes()){for(var i=this.el_.childNodes,s=i.length,a=[];s--;){var l=i[s];"track"===l.nodeName.toLowerCase()&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(l),this.remoteTextTracks().addTrack_(l.track)):a.push(l))}for(var c=0;c=0;s--){var l=i[s],u={};void 0!==this.options_[l]&&(u[l]=this.options_[l]),a.setElAttributes(t,u)}return t},e.prototype.handleLateInit_=function(t){var e=this;if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var o=function(){var t=!1,o=function(){t=!0};e.on("loadstart",o);var n=function(){t||this.trigger("loadstart")};return e.on("loadedmetadata",n),e.ready(function(){this.off("loadstart",o),this.off("loadedmetadata",n),t||this.trigger("loadstart")}),{v:void 0}}();if("object"==typeof o)return o.v}var n=["loadstart"];n.push("loadedmetadata"),t.readyState>=2&&n.push("loadeddata"),t.readyState>=3&&n.push("canplay"),t.readyState>=4&&n.push("canplaythrough"),this.ready(function(){n.forEach(function(t){this.trigger(t)},this)})}},e.prototype.proxyNativeTextTracks_=function(){var t=this.el().textTracks;t&&t.addEventListener&&(t.addEventListener("change",this.handleTextTrackChange_),t.addEventListener("addtrack",this.handleTextTrackAdd_),t.addEventListener("removetrack",this.handleTextTrackRemove_))},e.prototype.handleTextTrackChange=function(t){var e=this.textTracks();this.textTracks().trigger({type:"change",target:e,currentTarget:e,srcElement:e})},e.prototype.handleTextTrackAdd=function(t){this.textTracks().addTrack_(t.track)},e.prototype.handleTextTrackRemove=function(t){this.textTracks().removeTrack_(t.track)},e.prototype.play=function(){this.el_.play()},e.prototype.pause=function(){this.el_.pause()},e.prototype.paused=function(){return this.el_.paused},e.prototype.currentTime=function(){return this.el_.currentTime},e.prototype.setCurrentTime=function(t){try{this.el_.currentTime=t}catch(t){c.default(t,"Video is not ready. (Video.js)")}},e.prototype.duration=function(){return this.el_.duration||0},e.prototype.buffered=function(){return this.el_.buffered},e.prototype.volume=function(){return this.el_.volume},e.prototype.setVolume=function(t){this.el_.volume=t},e.prototype.muted=function(){return this.el_.muted},e.prototype.setMuted=function(t){this.el_.muted=t},e.prototype.width=function(){return this.el_.offsetWidth},e.prototype.height=function(){return this.el_.offsetHeight},e.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var t=f.default.navigator.userAgent;if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},e.prototype.enterFullScreen=function(){var t=this.el_;"webkitDisplayingFullscreen"in t&&this.one("webkitbeginfullscreen",function(){this.one("webkitendfullscreen",function(){this.trigger("fullscreenchange",{isFullscreen:!1})}),this.trigger("fullscreenchange",{isFullscreen:!0})}),t.paused&&t.networkState<=t.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){t.pause(),t.webkitEnterFullScreen()},0)):t.webkitEnterFullScreen()},e.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},e.prototype.src=function(t){if(void 0===t)return this.el_.src;this.setSrc(t)},e.prototype.setSrc=function(t){this.el_.src=t},e.prototype.load=function(){this.el_.load()},e.prototype.reset=function(){e.resetMediaElement(this.el_)},e.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},e.prototype.poster=function(){return this.el_.poster},e.prototype.setPoster=function(t){this.el_.poster=t},e.prototype.preload=function(){return this.el_.preload},e.prototype.setPreload=function(t){this.el_.preload=t},e.prototype.autoplay=function(){return this.el_.autoplay},e.prototype.setAutoplay=function(t){this.el_.autoplay=t},e.prototype.controls=function(){return this.el_.controls},e.prototype.setControls=function(t){this.el_.controls=!!t},e.prototype.loop=function(){return this.el_.loop},e.prototype.setLoop=function(t){this.el_.loop=t},e.prototype.error=function(){return this.el_.error},e.prototype.seeking=function(){return this.el_.seeking},e.prototype.seekable=function(){return this.el_.seekable},e.prototype.ended=function(){return this.el_.ended},e.prototype.defaultMuted=function(){return this.el_.defaultMuted},e.prototype.playbackRate=function(){return this.el_.playbackRate},e.prototype.played=function(){return this.el_.played},e.prototype.setPlaybackRate=function(t){this.el_.playbackRate=t},e.prototype.networkState=function(){return this.el_.networkState},e.prototype.readyState=function(){return this.el_.readyState},e.prototype.videoWidth=function(){return this.el_.videoWidth},e.prototype.videoHeight=function(){return this.el_.videoHeight},e.prototype.textTracks=function(){return t.prototype.textTracks.call(this)},e.prototype.addTextTrack=function(e,o,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,o,n):t.prototype.addTextTrack.call(this,e,o,n)},e.prototype.addRemoteTextTrack=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(!this.featuresNativeTextTracks)return t.prototype.addRemoteTextTrack.call(this,e);var o=h.default.createElement("track");return e.kind&&(o.kind=e.kind),e.label&&(o.label=e.label),(e.language||e.srclang)&&(o.srclang=e.language||e.srclang),e.default&&(o.default=e.default),e.id&&(o.id=e.id),e.src&&(o.src=e.src),this.el().appendChild(o),this.remoteTextTrackEls().addTrackElement_(o),this.remoteTextTracks().addTrack_(o.track),o},e.prototype.removeRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return t.prototype.removeRemoteTextTrack.call(this,e);var o,n=void 0,r=this.remoteTextTrackEls().getTrackElementByTrack_(e);for(this.remoteTextTrackEls().removeTrackElement_(r),this.remoteTextTracks().removeTrack_(e),n=(o=this.$$("track")).length;n--;)e!==o[n]&&e!==o[n].track||this.el().removeChild(o[n])},e}(i.default);v.TEST_VID=h.default.createElement("video");var g=h.default.createElement("track");g.kind="captions",g.srclang="en",g.label="English",v.TEST_VID.appendChild(g),v.isSupported=function(){try{v.TEST_VID.volume=.5}catch(t){return!1}return!!v.TEST_VID.canPlayType},i.default.withSourceHandlers(v),v.nativeSourceHandler={},v.nativeSourceHandler.canPlayType=function(t){try{return v.TEST_VID.canPlayType(t)}catch(t){return""}},v.nativeSourceHandler.canHandleSource=function(t){var e;return t.type?v.nativeSourceHandler.canPlayType(t.type):t.src?(e=l.getFileExtension(t.src),v.nativeSourceHandler.canPlayType("video/"+e)):""},v.nativeSourceHandler.handleSource=function(t,e){e.setSrc(t.src)},v.nativeSourceHandler.dispose=function(){},v.registerSourceHandler(v.nativeSourceHandler),v.canControlVolume=function(){var t=v.TEST_VID.volume;return v.TEST_VID.volume=t/2+.1,t!==v.TEST_VID.volume},v.canControlPlaybackRate=function(){var t=v.TEST_VID.playbackRate;return v.TEST_VID.playbackRate=t/2+.1,t!==v.TEST_VID.playbackRate},v.supportsNativeTextTracks=function(){var t;return(t=!!v.TEST_VID.textTracks)&&v.TEST_VID.textTracks.length>0&&(t="number"!=typeof v.TEST_VID.textTracks[0].mode),t&&p.IS_FIREFOX&&(t=!1),!t||"onremovetrack"in v.TEST_VID.textTracks||(t=!1),t},v.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],v.prototype.featuresVolumeControl=v.canControlVolume(),v.prototype.featuresPlaybackRate=v.canControlPlaybackRate(),v.prototype.movingMediaElementInDOM=!p.IS_IOS,v.prototype.featuresFullscreenResize=!0,v.prototype.featuresProgressEvents=!0,v.prototype.featuresNativeTextTracks=v.supportsNativeTextTracks();var m=void 0,b=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,_=/^video\/mp4/i;v.patchCanPlayType=function(){p.ANDROID_VERSION>=4&&(m||(m=v.TEST_VID.constructor.prototype.canPlayType),v.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&b.test(t)?"maybe":m.call(this,t)}),p.IS_OLD_ANDROID&&(m||(m=v.TEST_VID.constructor.prototype.canPlayType),v.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&_.test(t)?"maybe":m.call(this,t)})},v.unpatchCanPlayType=function(){var t=v.TEST_VID.constructor.prototype.canPlayType;return v.TEST_VID.constructor.prototype.canPlayType=m,m=null,t},v.patchCanPlayType(),v.disposeMediaElement=function(t){if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},v.resetMediaElement=function(t){if(t){for(var e=t.querySelectorAll("source"),o=e.length;o--;)t.removeChild(e[o]);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},s.default.registerComponent("Html5",v),i.default.registerTech("Html5",v),o.default=v,e.exports=o.default},{"../component":66,"../utils/browser.js":128,"../utils/dom.js":131,"../utils/fn.js":133,"../utils/log.js":136,"../utils/merge-options.js":137,"../utils/url.js":141,"./tech.js":118,"global/document":1,"global/window":2,"object.assign":45}],117:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=n(t("../component.js")),i=n(t("./tech.js")),s=(n(t("global/window")),n(t("../utils/to-title-case.js"))),a=function(t){function e(o,n,a){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,o,n,a),n.playerOptions.sources&&0!==n.playerOptions.sources.length)o.src(n.playerOptions.sources);else for(var l=0,u=n.playerOptions.techOrder;l select").selectedIndex=0,this.$(".vjs-bg-color > select").selectedIndex=0,this.$(".window-color > select").selectedIndex=0,this.$(".vjs-text-opacity > select").selectedIndex=0,this.$(".vjs-bg-opacity > select").selectedIndex=0,this.$(".vjs-window-opacity > select").selectedIndex=0,this.$(".vjs-edge-style select").selectedIndex=0,this.$(".vjs-font-family select").selectedIndex=0,this.$(".vjs-font-percent select").selectedIndex=2,this.updateDisplay()})),s.on(this.$(".vjs-fg-color > select"),"change",a.bind(this,this.updateDisplay)),s.on(this.$(".vjs-bg-color > select"),"change",a.bind(this,this.updateDisplay)),s.on(this.$(".window-color > select"),"change",a.bind(this,this.updateDisplay)),s.on(this.$(".vjs-text-opacity > select"),"change",a.bind(this,this.updateDisplay)),s.on(this.$(".vjs-bg-opacity > select"),"change",a.bind(this,this.updateDisplay)),s.on(this.$(".vjs-window-opacity > select"),"change",a.bind(this,this.updateDisplay)),s.on(this.$(".vjs-font-percent select"),"change",a.bind(this,this.updateDisplay)),s.on(this.$(".vjs-edge-style select"),"change",a.bind(this,this.updateDisplay)),s.on(this.$(".vjs-font-family select"),"change",a.bind(this,this.updateDisplay)),this.options_.persistTextTrackSettings&&this.restoreSettings()}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:('
\n
\n
\n \n \n \n \n \n
\x3c!-- vjs-fg-color --\x3e\n
\n \n \n \n \n \n
\x3c!-- vjs-bg-color --\x3e\n
\n \n \n \n \n \n
\x3c!-- vjs-window-color --\x3e\n
\x3c!-- vjs-tracksettings --\x3e\n
\n
\n \n \n
\x3c!-- vjs-font-percent --\x3e\n
\n \n \n
\x3c!-- vjs-edge-style --\x3e\n
\n \n \n
\x3c!-- vjs-font-family --\x3e\n
\n
\n
\n \n \n
','
\n
\n
\n \n \n \n \n \n
\x3c!-- vjs-fg-color --\x3e\n
\n \n \n \n \n \n
\x3c!-- vjs-bg-color --\x3e\n
\n \n \n \n \n \n
\x3c!-- vjs-window-color --\x3e\n
\x3c!-- vjs-tracksettings --\x3e\n
\n
\n \n \n
\x3c!-- vjs-font-percent --\x3e\n
\n \n \n
\x3c!-- vjs-edge-style --\x3e\n
\n \n \n
\x3c!-- vjs-font-family --\x3e\n
\n
\n
\n \n \n
')})},e.prototype.getValues=function(){var t=h(this.$(".vjs-edge-style select")),e=h(this.$(".vjs-font-family select")),o=h(this.$(".vjs-fg-color > select")),n=h(this.$(".vjs-text-opacity > select")),r=h(this.$(".vjs-bg-color > select")),i=h(this.$(".vjs-bg-opacity > select")),s=h(this.$(".window-color > select")),a={backgroundOpacity:i,textOpacity:n,windowOpacity:h(this.$(".vjs-window-opacity > select")),edgeStyle:t,fontFamily:e,color:o,backgroundColor:r,windowColor:s,fontPercent:c.default.parseFloat(h(this.$(".vjs-font-percent > select")))};for(var l in a)(""===a[l]||"none"===a[l]||"fontPercent"===l&&1===a[l])&&delete a[l];return a},e.prototype.setValues=function(t){f(this.$(".vjs-edge-style select"),t.edgeStyle),f(this.$(".vjs-font-family select"),t.fontFamily),f(this.$(".vjs-fg-color > select"),t.color),f(this.$(".vjs-text-opacity > select"),t.textOpacity),f(this.$(".vjs-bg-color > select"),t.backgroundColor),f(this.$(".vjs-bg-opacity > select"),t.backgroundOpacity),f(this.$(".window-color > select"),t.windowColor),f(this.$(".vjs-window-opacity > select"),t.windowOpacity);var e=t.fontPercent;e&&(e=e.toFixed(2)),f(this.$(".vjs-font-percent > select"),e)},e.prototype.restoreSettings=function(){var t=u.default(c.default.localStorage.getItem("vjs-text-track-settings")),e=t[0],o=t[1];e&&l.default.error(e),o&&this.setValues(o)},e.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.getOwnPropertyNames(t).length>0?c.default.localStorage.setItem("vjs-text-track-settings",JSON.stringify(t)):c.default.localStorage.removeItem("vjs-text-track-settings")}catch(t){}}},e.prototype.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()},e}(i.default);function h(t){var e=void 0;return t.selectedOptions?e=t.selectedOptions[0]:t.options&&(e=t.options[t.options.selectedIndex]),e.value}function f(t,e){if(e){var o=void 0;for(o=0;o=t?e.push(r):r.startTime===r.endTime&&r.startTime<=t&&r.startTime+.5>=t&&e.push(r)}if(g=!1,e.length!==this.activeCues_.length)g=!0;else for(o=0;o>>0;if(0===n)return-1;var r=+e||0;if(Math.abs(r)===1/0&&(r=0),r>=n)return-1;for(var i=Math.max(r>=0?r:n-Math.abs(r),0);ie&&(r=e),i+=r-o;return i/e};var n=t("./time-ranges.js")},{"./time-ranges.js":139}],130:[function(t,e,o){"use strict";o.__esModule=!0;var n,r=t("./log.js"),i=(n=r)&&n.__esModule?n:{default:n},s={get:function(t,e){return t[e]},set:function(t,e,o){return t[e]=o,!0}};o.default=function(t){var e,o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if("function"==typeof Proxy){var n=(e={},Object.keys(o).forEach(function(t){s.hasOwnProperty(t)&&(e[t]=function(){return i.default.warn(o[t]),s[t].apply(this,arguments)})}),{v:new Proxy(t,e)});if("object"==typeof n)return n.v}return t},e.exports=o.default},{"./log.js":136}],131:[function(t,e,o){"use strict";o.__esModule=!0,o.getEl=function(t){0===t.indexOf("#")&&(t=t.slice(1));return s.default.getElementById(t)},o.createEl=function(){var t=arguments.length<=0||void 0===arguments[0]?"div":arguments[0],e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],n=s.default.createElement(t);return Object.getOwnPropertyNames(e).forEach(function(t){var o=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(u.default.warn(c.default(r,t,o)),n.setAttribute(t,o)):n[t]=o}),Object.getOwnPropertyNames(o).forEach(function(t){o[t],n.setAttribute(t,o[t])}),n},o.textContent=function(t,e){void 0===t.textContent?t.innerText=e:t.textContent=e},o.insertElFirst=function(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)},o.getElData=function(t){var e=t[y];e||(e=t[y]=l.newGUID());d[e]||(d[e]={});return d[e]},o.hasElData=function(t){var e=t[y];if(!e)return!1;return!!Object.getOwnPropertyNames(d[e]).length},o.removeElData=function(t){var e=t[y];if(!e)return;delete d[e];try{delete t[y]}catch(e){t.removeAttribute?t.removeAttribute(y):t[y]=null}},o.hasElClass=v,o.addElClass=g,o.removeElClass=m,o.toggleElClass=function(t,e,o){var n=v(t,e);"function"==typeof o&&(o=o(t,e));"boolean"!=typeof o&&(o=!n);if(o===n)return;o?g(t,e):m(t,e);return t},o.setElAttributes=function(t,e){Object.getOwnPropertyNames(e).forEach(function(o){var n=e[o];null==n||!1===n?t.removeAttribute(o):t.setAttribute(o,!0===n?"":n)})},o.getElAttributes=function(t){var e,o,n,r,i;if(e={},o=",autoplay,controls,loop,muted,default,",t&&t.attributes&&t.attributes.length>0)for(var s=(n=t.attributes).length-1;s>=0;s--)r=n[s].name,i=n[s].value,"boolean"!=typeof t[r]&&-1===o.indexOf(","+r+",")||(i=null!==i),e[r]=i;return e},o.blockTextSelection=function(){s.default.body.focus(),s.default.onselectstart=function(){return!1}},o.unblockTextSelection=function(){s.default.onselectstart=function(){return!0}},o.findElPosition=b,o.getPointerPosition=function(t,e){var o={},n=b(t),r=t.offsetWidth,i=t.offsetHeight,s=n.top,a=n.left,l=e.pageY,u=e.pageX;e.changedTouches&&(u=e.changedTouches[0].pageX,l=e.changedTouches[0].pageY);return o.y=Math.max(0,Math.min(1,(s-l+i)/i)),o.x=Math.max(0,Math.min(1,(u-a)/r)),o},o.isEl=_,o.isTextNode=j,o.emptyEl=T,o.normalizeContent=w,o.appendContent=k,o.insertContent=function(t,e){return k(T(t),e)};var n,r=((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 ","."]).raw=["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 ","."],n);function i(t){return t&&t.__esModule?t:{default:t}}var s=i(t("global/document")),a=i(t("global/window")),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(t("./guid.js")),u=i(t("./log.js")),c=i(t("tsml"));function p(t){return"string"==typeof t&&/\S/.test(t)}function h(t){if(/\s/.test(t))throw new Error("class has illegal whitespace characters")}function f(t){return function(e,o){return p(e)?(p(o)&&(o=s.default.querySelector(o)),(_(o)?o:s.default)[t](e)):s.default[t](null)}}var d={},y="vdata"+(new Date).getTime();function v(t,e){return t.classList?t.classList.contains(e):(h(e),(o=e,new RegExp("(^|\\s)"+o+"($|\\s)")).test(t.className));var o}function g(t,e){return t.classList?t.classList.add(e):v(t,e)||(t.className=(t.className+" "+e).trim()),t}function m(t,e){return t.classList?t.classList.remove(e):(h(e),t.className=t.className.split(/\s+/).filter(function(t){return t!==e}).join(" ")),t}function b(t){var e=void 0;if(t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var o=s.default.documentElement,n=s.default.body,r=o.clientLeft||n.clientLeft||0,i=a.default.pageXOffset||n.scrollLeft,l=e.left+i-r,u=o.clientTop||n.clientTop||0,c=a.default.pageYOffset||n.scrollTop,p=e.top+c-u;return{left:Math.round(l),top:Math.round(p)}}function _(t){return!!t&&"object"==typeof t&&1===t.nodeType}function j(t){return!!t&&"object"==typeof t&&3===t.nodeType}function T(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function w(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&&(t=t()),_(t)||j(t)?t:"string"==typeof t&&/\S/.test(t)?s.default.createTextNode(t):void 0}).filter(function(t){return t})}function k(t,e){return w(e).forEach(function(e){return t.appendChild(e)}),t}var C=f("querySelector");o.$=C;var E=f("querySelectorAll");o.$$=E},{"./guid.js":135,"./log.js":136,"global/document":1,"global/window":2,tsml:54}],132:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}o.__esModule=!0,o.on=u,o.off=c,o.trigger=function t(e,o,n){var r=i.hasElData(e)?i.getElData(e):{};var s=e.parentNode||e.ownerDocument;"string"==typeof o&&(o={type:o,target:e});o=p(o);r.dispatcher&&r.dispatcher.call(e,o,n);if(s&&!o.isPropagationStopped()&&!0===o.bubbles)t.call(null,s,o,n);else if(!s&&!o.defaultPrevented){var a=i.getElData(o.target);o.target[o.type]&&(a.disabled=!0,"function"==typeof o.target[o.type]&&o.target[o.type](),a.disabled=!1)}return!o.defaultPrevented},o.one=function t(e,o,n){if(Array.isArray(o))return f(t,e,o,n);var r=function t(){c(e,o,t),n.apply(this,arguments)};r.guid=n.guid=n.guid||s.newGUID();u(e,o,r)},o.fixEvent=p;var i=r(t("./dom.js")),s=r(t("./guid.js")),a=n(t("global/window")),l=n(t("global/document"));function u(t,e,o){if(Array.isArray(e))return f(u,t,e,o);var n=i.getElData(t);n.handlers||(n.handlers={}),n.handlers[e]||(n.handlers[e]=[]),o.guid||(o.guid=s.newGUID()),n.handlers[e].push(o),n.dispatcher||(n.disabled=!1,n.dispatcher=function(e,o){if(!n.disabled){e=p(e);var r=n.handlers[e.type];if(r)for(var i=r.slice(0),s=0,a=i.length;s0||s>0?r+":":"")+(n=((r||i>=10)&&n<10?"0"+n:n)+":")+(o=o<10?"0"+o:o)}()},e.exports=o.default},{}],135:[function(t,e,o){"use strict";o.__esModule=!0,o.newGUID=function(){return n++};var n=1},{}],136:[function(t,e,o){"use strict";o.__esModule=!0;var n,r=t("global/window"),i=(n=r)&&n.__esModule?n:{default:n},s=function(){a(null,arguments)};function a(t,e){var o=Array.prototype.slice.call(e),n=function(){},r=i.default.console||{log:n,warn:n,error:n};t?o.unshift(t.toUpperCase()+":"):t="log",s.history.push(o),o.unshift("VIDEOJS:"),r[t].apply?r[t].apply(r,o):r[t](o.join(" "))}s.history=[],s.error=function(){a("error",arguments)},s.warn=function(){a("warn",arguments)},o.default=s,e.exports=o.default},{"global/window":2}],137:[function(t,e,o){"use strict";o.__esModule=!0,o.default=l;var n,r=t("lodash-compat/object/merge"),i=(n=r)&&n.__esModule?n:{default:n};function s(t){return!!t&&"object"==typeof t&&"[object Object]"===t.toString()&&t.constructor===Object}var a=function(t,e){return s(e)?s(t)?void 0:l(e):e};function l(){var t=Array.prototype.slice.call(arguments);return t.unshift({}),t.push(a),i.default.apply(null,t),t[0]}e.exports=o.default},{"lodash-compat/object/merge":40}],138:[function(t,e,o){"use strict";o.__esModule=!0;var n,r=t("global/document"),i=(n=r)&&n.__esModule?n:{default:n};o.createStyleElement=function(t){var e=i.default.createElement("style");return e.className=t,e};o.setTextContent=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e}},{"global/document":1}],139:[function(t,e,o){"use strict";o.__esModule=!0,o.createTimeRanges=s;var n,r=t("./log.js"),i=(n=r)&&n.__esModule?n:{default:n};function s(t,e){return Array.isArray(t)?a(t):void 0===t||void 0===e?a():a([[t,e]])}function a(t){return void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:l.bind(null,"start",0,t),end:l.bind(null,"end",1,t)}}function l(t,e,o,n){return void 0===n&&(i.default.warn("DEPRECATED: Function '"+t+"' on 'TimeRanges' called without an index argument."),n=0),function(t,e,o){if(e<0||e>o)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is greater than or equal to the maximum bound ("+o+").")}(t,n,o.length-1),o[n][e]}o.createTimeRange=s},{"./log.js":136}],140:[function(t,e,o){"use strict";o.__esModule=!0,o.default=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},e.exports=o.default},{}],141:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=n(t("global/document")),i=n(t("global/window")),s=function(t){var e=["protocol","hostname","port","pathname","search","hash","host"],o=r.default.createElement("a");o.href=t;var n=""===o.host&&"file:"!==o.protocol,i=void 0;n&&((i=r.default.createElement("div")).innerHTML='',o=i.firstChild,i.setAttribute("style","display:none; position:absolute;"),r.default.body.appendChild(i));for(var s={},a=0;ax',t=e.firstChild.href}return t};o.getFileExtension=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(e)return e.pop().toLowerCase()}return""};o.isCrossOrigin=function(t){var e=i.default.location,o=s(t);return(":"===o.protocol?e.protocol:o.protocol)+o.host!==e.protocol+e.host}},{"global/document":1,"global/window":2}],142:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var i=r(t("global/document")),s=n(t("./setup")),a=n(t("./utils/stylesheet.js")),l=r(t("./component")),u=r(t("./event-target")),c=n(t("./utils/events.js")),p=r(t("./player")),h=r(t("./plugins.js")),f=r(t("../../src/js/utils/merge-options.js")),d=n(t("./utils/fn.js")),y=r(t("./tracks/text-track.js")),v=(r(t("object.assign")),t("./utils/time-ranges.js")),g=r(t("./utils/format-time.js")),m=r(t("./utils/log.js")),b=n(t("./utils/dom.js")),_=n(t("./utils/browser.js")),j=n(t("./utils/url.js")),T=r(t("./extend.js")),w=r(t("lodash-compat/object/merge")),k=r(t("./utils/create-deprecation-proxy.js")),C=r(t("xhr")),E=r(t("./tech/tech.js"));r(t("./tech/html5.js")),r(t("./tech/flash.js"));"undefined"==typeof HTMLVideoElement&&(i.default.createElement("video"),i.default.createElement("audio"),i.default.createElement("track"));var x=function t(e,o,n){var r=void 0;if("string"==typeof e){if(0===e.indexOf("#")&&(e=e.slice(1)),t.getPlayers()[e])return o&&m.default.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&t.getPlayers()[e].ready(n),t.getPlayers()[e];r=b.getEl(e)}else r=e;if(!r||!r.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return r.player||p.default.players[r.playerId]||new p.default(r,o,n)},O=b.$(".vjs-styles-defaults");if(!O){O=a.createStyleElement("vjs-styles-defaults");var S=b.$("head");S.insertBefore(O,S.firstChild),a.setTextContent(O,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}s.autoSetupTimeout(1,x),x.VERSION="5.6.0",x.options=p.default.prototype.options_,x.getPlayers=function(){return p.default.players},x.players=k.default(p.default.players,{get:"Access to videojs.players is deprecated; use videojs.getPlayers instead",set:"Modification of videojs.players is deprecated"}),x.getComponent=l.default.getComponent,x.registerComponent=function(t,e){E.default.isTech(e)&&m.default.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),l.default.registerComponent.call(l.default,t,e)},x.getTech=E.default.getTech,x.registerTech=E.default.registerTech,x.browser=_,x.TOUCH_ENABLED=_.TOUCH_ENABLED,x.extend=T.default,x.mergeOptions=f.default,x.bind=d.bind,x.plugin=h.default,x.addLanguage=function(t,e){var o;return t=(""+t).toLowerCase(),w.default(x.options.languages,(o={},o[t]=e,o))[t]},x.log=m.default,x.createTimeRange=x.createTimeRanges=v.createTimeRanges,x.formatTime=g.default,x.parseUrl=j.parseUrl,x.isCrossOrigin=j.isCrossOrigin,x.EventTarget=u.default,x.on=c.on,x.one=c.one,x.off=c.off,x.trigger=c.trigger,x.xhr=C.default,x.TextTrack=y.default,x.isEl=b.isEl,x.isTextNode=b.isTextNode,x.createEl=b.createEl,x.hasClass=b.hasElClass,x.addClass=b.addElClass,x.removeClass=b.removeElClass,x.toggleClass=b.toggleElClass,x.setAttributes=b.setElAttributes,x.getAttributes=b.getElAttributes,x.emptyEl=b.emptyEl,x.appendContent=b.appendContent,x.insertContent=b.insertContent,"object"==typeof o&&"object"==typeof e&&(e.exports=x),o.default=x,e.exports=o.default},{"../../src/js/utils/merge-options.js":137,"./component":66,"./event-target":98,"./extend.js":99,"./player":107,"./plugins.js":108,"./setup":112,"./tech/flash.js":115,"./tech/html5.js":116,"./tech/tech.js":118,"./tracks/text-track.js":127,"./utils/browser.js":128,"./utils/create-deprecation-proxy.js":130,"./utils/dom.js":131,"./utils/events.js":132,"./utils/fn.js":133,"./utils/format-time.js":134,"./utils/log.js":136,"./utils/stylesheet.js":138,"./utils/time-ranges.js":139,"./utils/url.js":141,"global/document":1,"lodash-compat/object/merge":40,"object.assign":45,xhr:55}]},{},[142])(142)}),function(t){var e=t.vttjs={},o=e.VTTCue,n=e.VTTRegion,r=t.VTTCue,i=t.VTTRegion;e.shim=function(){e.VTTCue=o,e.VTTRegion=n},e.restore=function(){e.VTTCue=r,e.VTTRegion=i}}(this),function(t,e){var o="auto",n={"":!0,lr:!0,rl:!0},r={start:!0,middle:!0,end:!0,left:!0,right:!0};function i(t){return"string"==typeof t&&(!!r[t.toLowerCase()]&&t.toLowerCase())}function s(t){for(var e=1;e100)throw new Error("Position must be between 0 and 100.");_=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"positionAlign",s({},u,{get:function(){return j},set:function(t){var e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");j=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"size",s({},u,{get:function(){return T},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");T=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"align",s({},u,{get:function(){return w},set:function(t){var e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");w=e,this.hasBeenReset=!0}})),a.displayState=void 0,l)return a}a.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.VTTCue=t.VTTCue||a,e.VTTCue=a}(this,this.vttjs||{}),function(t,e){var o={"":!0,up:!0};function n(t){return"number"==typeof t&&t>=0&&t<=100}function r(){var t=100,e=3,r=0,i=100,s=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!n(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return i},set:function(t){if(!n(t))throw new Error("RegionAnchorX must be between 0 and 100.");i=t}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(t){if(!n(t))throw new Error("RegionAnchorY must be between 0 and 100.");r=t}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!n(t))throw new Error("ViewportAnchorY must be between 0 and 100.");a=t}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(t){if(!n(t))throw new Error("ViewportAnchorX must be between 0 and 100.");s=t}},scroll:{enumerable:!0,get:function(){return l},set:function(t){var e=function(t){return"string"==typeof t&&!!o[t.toLowerCase()]&&t.toLowerCase()}(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");l=e}}})}t.VTTRegion=t.VTTRegion||r,e.VTTRegion=r}(this,this.vttjs||{}),function(t){var e=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function o(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function n(t){function e(t,e,o,n){return 3600*(0|t)+60*(0|e)+(0|o)+(0|n)/1e3}var o=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return o?o[3]?e(o[1],o[2],o[3].replace(":",""),o[4]):o[1]>59?e(o[1],o[2],0,o[4]):e(0,o[1],o[2],o[4]):null}function r(){this.values=e(null)}function i(t,e,o,n){var r=n?t.split(n):[t];for(var i in r)if("string"==typeof r[i]){var s=r[i].split(o);if(2===s.length)e(s[0],s[1])}}function s(t,e,s){var a=t;function l(){var e=n(t);if(null===e)throw new o(o.Errors.BadTimeStamp,"Malformed timestamp: "+a);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function u(){t=t.replace(/^\s+/,"")}if(u(),e.startTime=l(),u(),"--\x3e"!==t.substr(0,3))throw new o(o.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+a);t=t.substr(3),u(),e.endTime=l(),u(),function(t,e){var o=new r;i(t,function(t,e){switch(t){case"region":for(var n=s.length-1;n>=0;n--)if(s[n].id===e){o.set(t,s[n].region);break}break;case"vertical":o.alt(t,e,["rl","lr"]);break;case"line":var r=e.split(","),i=r[0];o.integer(t,i),o.percent(t,i)&&o.set("snapToLines",!1),o.alt(t,i,["auto"]),2===r.length&&o.alt("lineAlign",r[1],["start","middle","end"]);break;case"position":r=e.split(","),o.percent(t,r[0]),2===r.length&&o.alt("positionAlign",r[1],["start","middle","end"]);break;case"size":o.percent(t,e);break;case"align":o.alt(t,e,["start","middle","end","left","right"])}},/:/,/\s/),e.region=o.get("region",null),e.vertical=o.get("vertical",""),e.line=o.get("line","auto"),e.lineAlign=o.get("lineAlign","start"),e.snapToLines=o.get("snapToLines",!0),e.size=o.get("size",100),e.align=o.get("align","middle"),e.position=o.get("position",{start:0,left:0,middle:50,end:100,right:100},e.align),e.positionAlign=o.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},e.align)}(t,e)}o.prototype=e(Error.prototype),o.prototype.constructor=o,o.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},r.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,o){return o?this.has(t)?this.values[t]:e[o]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,o){for(var n=0;n=0&&e<=100)&&(this.set(t,e),!0)}};var a={"&":"&","<":"<",">":">","‎":"‎","‏":"‏"," ":" "},l={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},u={v:"title",lang:"lang"},c={rt:"ruby"};function p(t,e){function o(){if(!e)return null;var t,o=e.match(/^([^<]*)(<[^>]+>?)?/);return t=o[1]?o[1]:o[2],e=e.substr(t.length),t}function r(t){return a[t]}function i(t){for(;m=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(m[0],r);return t}function s(t,e){return!c[e.localName]||c[e.localName]===t.localName}function p(e,o){var n=l[e];if(!n)return null;var r=t.document.createElement(n);r.localName=n;var i=u[e];return i&&o&&(r[i]=o.trim()),r}for(var h,f=t.document.createElement("div"),d=f,y=[];null!==(h=o());)if("<"!==h[0])d.appendChild(t.document.createTextNode(i(h)));else{if("/"===h[1]){y.length&&y[y.length-1]===h.substr(2).replace(">","")&&(y.pop(),d=d.parentNode);continue}var v,g=n(h.substr(1,h.length-2));if(g){v=t.document.createProcessingInstruction("timestamp",g),d.appendChild(v);continue}var m=h.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!m)continue;if(!(v=p(m[1],m[3])))continue;if(!s(d,v))continue;m[2]&&(v.className=m[2].substr(1).replace("."," ")),y.push(m[1]),d.appendChild(v),d=v}return f}var h=[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 f(){}function d(t,e,o){var n=/MSIE\s8\.0/.test(navigator.userAgent),r="rgba(255, 255, 255, 1)",i="rgba(0, 0, 0, 0.8)";n&&(r="rgb(255, 255, 255)",i="rgb(0, 0, 0)"),f.call(this),this.cue=e,this.cueDiv=p(t,e.text);var s={color:r,backgroundColor:i,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};n||(s.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",s.unicodeBidi="plaintext"),this.applyStyles(s,this.cueDiv),this.div=t.document.createElement("div"),s={textAlign:"middle"===e.align?"center":e.align,font:o.font,whiteSpace:"pre-line",position:"absolute"},n||(s.direction=function(t){var e,o=[],n="";if(!t||!t.childNodes)return"ltr";function r(t,e){for(var o=e.childNodes.length-1;o>=0;o--)t.push(e.childNodes[o])}function i(t){if(!t||!t.length)return null;var e=t.pop(),o=e.textContent||e.innerText;if(o){var n=o.match(/^.*(\n|\r)/);return n?(t.length=0,n[0]):o}return"ruby"===e.tagName?i(t):e.childNodes?(r(t,e),i(t)):void 0}for(r(o,t);n=i(o);)for(var s=0;s=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,o=e.textTrackList,n=0,r=0;rp&&(c=c<0?-1:1,c*=Math.ceil(p/u)*u),s<0&&(c+=""===i.vertical?o.height:o.width,a=a.reverse()),r.move(h,c)}else{var f=r.lineHeight/o.height*100;switch(i.lineAlign){case"middle":s-=f/2;break;case"end":s-=f}switch(i.vertical){case"":e.applyStyles({top:e.formatStyle(s,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(s,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(s,"%")})}a=["+y","-x","+x","-y"],r=new y(e)}var d=function(t,e){for(var r,i=new y(t),s=1,a=0;al&&(r=new y(t),s=l),t=new y(i)}return r||i}(r,a);e.move(d.toCSSCompatValues(o))}function g(){}f.prototype.applyStyles=function(t,e){for(var o in e=e||this.div,t)t.hasOwnProperty(o)&&(e.style[o]=t[o])},f.prototype.formatStyle=function(t,e){return 0===t?0:t+e},d.prototype=e(f.prototype),d.prototype.constructor=d,y.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},y.prototype.overlaps=function(t){return this.leftt.left&&this.topt.top},y.prototype.overlapsAny=function(t){for(var e=0;e=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},y.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},y.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},y.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},y.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,o=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||o}},g.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},g.convertCueToDOMTree=function(t,e){return t&&e?p(t,e):null};g.processCues=function(t,e,o){if(!t||!e||!o)return null;for(;o.firstChild;)o.removeChild(o.firstChild);var n=t.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",o.appendChild(n),function(t){for(var e=0;e.01||(i=e.location,s=e.videojs||{},t.src="//www.google-analytics.com/__utm.gif?utmwv=5.4.2&utmac=UA-16505296-3&utmn=1&utmhn="+n(i.hostname)+"&utmsr="+e.screen.availWidth+"x"+e.screen.availHeight+"&utmul="+(o.language||o.userLanguage||"").toLowerCase()+"&utmr="+n(i.href)+"&utmp="+n(i.hostname+i.pathname)+"&utmcc=__utma%3D1."+r.floor(1e10*r.random())+".1.1.1.1%3B&utme=8(vjsv*cdnv)9("+s.VERSION+"*"+s.CDN_VERSION+")"))}(); function SetPlayer(e){var t=videojs("my-video");whereYouAt=t.currentTime(),t.src({type:"video/mp4",src:e}),t.play(),t.on("loadedmetadata",function(){t.currentTime(whereYouAt)})}!function(){"use strict";var e=null;e=void 0===window.videojs&&"function"==typeof require?require("video.js"):window.videojs,function(e,t){var s,i={},n={},r={};function o(e,t,s,i){return n={label:s,sources:t},"function"==typeof i?i(e,t,s):e.src(t.map(function(e){return{src:e.src,type:e.type,res:e.res}}))}var l=t.getComponent("MenuItem"),c=t.extend(l,{constructor:function(e,t,s,i){this.onClickListener=s,this.label=i,l.call(this,e,t),this.src=t.src,this.on("click",this.onClick),this.on("touchstart",this.onClick),t.initialySelected&&(this.showAsLabel(),this.selected(!0),this.addClass("vjs-selected"))},showAsLabel:function(){this.label&&(this.label.innerHTML=this.options_.label)},onClick:function(e){this.onClickListener(this);var t=this.player_.currentTime(),s=this.player_.paused();this.showAsLabel(),this.addClass("vjs-selected"),s||this.player_.bigPlayButton.hide(),"function"!=typeof e&&"function"==typeof this.options_.customSourcePicker&&(e=this.options_.customSourcePicker);var i="loadeddata";"none"===this.player_.preload()&&"Flash"!==this.player_.techName_&&(i="timeupdate"),o(this.player_,this.src,this.options_.label,e).one(i,function(){this.player_.currentTime(t),this.player_.handleTechSeeked_(),s||this.player_.play().handleTechSeeked_(),this.player_.trigger("resolutionchange")})}}),a=t.getComponent("MenuButton"),u=t.extend(a,{constructor:function(e,t,s,i){if(this.sources=t.sources,this.label=i,this.label.innerHTML=t.initialySelectedLabel,a.call(this,e,t,s),this.controlText("Quality"),s.dynamicLabel)this.el().appendChild(i);else{var n=document.createElement("span");n.classList.add("vjs-resolution-button-staticlabel"),this.el().appendChild(n)}},createItems:function(){var e=[],t=this.sources&&this.sources.label||{},s=function(t){e.map(function(e){e.selected(e===t),e.removeClass("vjs-selected")})};for(var i in t)t.hasOwnProperty(i)&&(e.push(new c(this.player_,{label:i,src:t[i],initialySelected:i===this.options_.initialySelectedLabel,customSourcePicker:this.options_.customSourcePicker},s,this.label)),r[i]=e[e.length-1]);return e}});s=function(e){var s=t.mergeOptions(i,e),l=this,c=document.createElement("span"),a={};function h(e,t){return e.res&&t.res?+t.res-+e.res:0}function d(e,t,s){null==e[t][s[t]]&&(e[t][s[t]]=[])}function p(e,t,s){e[t][s[t]].push(s)}c.classList.add("vjs-resolution-button-label"),l.updateSrc=function(e){if(!e)return l.src();l.controlBar.resolutionSwitcher&&(l.controlBar.resolutionSwitcher.dispose(),delete l.controlBar.resolutionSwitcher),e=e.sort(h);var t=function(e,t){var i=s.default,n="";"high"===i?(i=t[0].res,n=t[0].label):"low"===i||null==i?(i=t[t.length-1].res,n=t[t.length-1].label):e.res[i]&&(n=e.res[i][0].label);if(void 0===i)return{res:i,label:n,sources:e.label[n]};return{res:i,label:n,sources:e.res[i]}}(a=function(e){var t={label:{},res:{},type:{}};return e.map(function(e){d(t,"label",e),d(t,"res",e),d(t,"type",e),p(t,"label",e),p(t,"res",e),p(t,"type",e)}),t}(e),e),i=new u(l,{sources:a,initialySelectedLabel:t.label,initialySelectedRes:t.res,customSourcePicker:s.customSourcePicker},s,c);return i.el().classList.add("vjs-resolution-button"),l.controlBar.resolutionSwitcher=l.controlBar.el_.insertBefore(i.el_,l.controlBar.getChild("fullscreenToggle").el_),o(l,t.sources,t.label)},l.currentResolution=function(e,t){return null==e?n:(null!=r[e]&&r[e].onClick(t),l)},l.getGroupedSrc=function(){return a},l.options_.sources.length>1&&l.ready(function(){l.updateSrc(l.options_.sources)})},t.plugin("videoJsResolutionSwitcher",s)}(window,e)}(); !function(o){var r={autoDisable:!1};o.plugin("disableProgress",function(o){var e=this,s=!1,n=function(o){var r,e,s;for(e=1;e