/** * @license * Video.js 5.19.2 * Copyright Brightcove, Inc. * Available under Apache License Version 2.0 * * * Includes vtt.js * Available under Apache License Version 2.0 * */(function(ft){if(typeof exports=="object"&&typeof module!="undefined")module.exports=ft();else if(typeof define=="function"&&define.amd)define([],ft);else{var s;s=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this,s.videojs=ft()}})(function(){var ft;return function s(U,h,w){function _(T,C){if(!h[T]){if(!U[T]){var b=typeof require=="function"&&require;if(!C&&b)return b(T,!0);if(m)return m(T,!0);var f=new Error("Cannot find module '"+T+"'");throw f.code="MODULE_NOT_FOUND",f}var i=h[T]={exports:{}};U[T][0].call(i.exports,function(p){var n=U[T][1][p];return _(n||p)},i,i.exports,s,U,h,w)}return h[T].exports}for(var m=typeof require=="function"&&require,E=0;E0&&arguments[0]!==void 0?arguments[0]:"button",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};l=(0,n.assign)({className:this.buildCSSClass()},l),r!=="button"&&(p.default.warn("Creating a Button with an HTML element of "+r+" is deprecated; use ClickableComponent instead."),l=(0,n.assign)({tabIndex:0},l),a=(0,n.assign)({role:"button"},a)),a=(0,n.assign)({type:"button","aria-live":"polite"},a);var v=f.default.prototype.createEl.call(this,r,l,a);return this.createControlTextEl(v),v},t.prototype.addChild=function(r){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.constructor.name;return p.default.warn("Adding an actionable (user controllable) child to a Button ("+a+") is not supported; use a ClickableComponent instead."),f.default.prototype.addChild.call(this,r,l)},t.prototype.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},t.prototype.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(r){r.which!==32&&r.which!==13&&e.prototype.handleKeyPress.call(this,r)},t}(C.default);f.default.registerComponent("Button",u),h.default=u},{3:3,5:5,86:86,88:88}],3:[function(s,U,h){"use strict";function w(y){if(y&&y.__esModule)return y;var g={};if(y!=null)for(var o in y)Object.prototype.hasOwnProperty.call(y,o)&&(g[o]=y[o]);return g.default=y,g}function _(y){return y&&y.__esModule?y:{default:y}}function m(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function E(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||typeof g!="object"&&typeof g!="function"?y:g}function T(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}h.__esModule=!0;var C=s(5),b=_(C),f=s(81),i=w(f),p=s(82),n=w(p),u=s(83),e=w(u),t=s(86),r=_(t),l=s(94),a=_(l),v=s(88),d=function(y){function g(o,c){m(this,g);var j=E(this,y.call(this,o,c));return j.emitTapEvents(),j.enable(),j}return T(g,y),g.prototype.createEl=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};c=(0,v.assign)({className:this.buildCSSClass(),tabIndex:0},c),o==="button"&&r.default.error("Creating a ClickableComponent with an HTML element of "+o+" is not supported; use a Button instead."),j=(0,v.assign)({role:"button","aria-live":"polite"},j),this.tabIndex_=c.tabIndex;var D=y.prototype.createEl.call(this,o,c,j);return this.createControlTextEl(D),D},g.prototype.createControlTextEl=function(o){return this.controlTextEl_=i.createEl("span",{className:"vjs-control-text"}),o&&o.appendChild(this.controlTextEl_),this.controlText(this.controlText_,o),this.controlTextEl_},g.prototype.controlText=function(o){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.el();if(!o)return this.controlText_||"Need Text";var j=this.localize(o);return this.controlText_=o,this.controlTextEl_.innerHTML=j,this.nonIconControl||c.setAttribute("title",j),this},g.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+y.prototype.buildCSSClass.call(this)},g.prototype.enable=function(){return this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),typeof this.tabIndex_!="undefined"&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on("tap",this.handleClick),this.on("click",this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this},g.prototype.disable=function(){return this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),typeof this.tabIndex_!="undefined"&&this.el_.removeAttribute("tabIndex"),this.off("tap",this.handleClick),this.off("click",this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this},g.prototype.handleClick=function(o){},g.prototype.handleFocus=function(o){n.on(a.default,"keydown",e.bind(this,this.handleKeyPress))},g.prototype.handleKeyPress=function(o){o.which===32||o.which===13?(o.preventDefault(),this.handleClick(o)):y.prototype.handleKeyPress&&y.prototype.handleKeyPress.call(this,o)},g.prototype.handleBlur=function(o){n.off(a.default,"keydown",e.bind(this,this.handleKeyPress))},g}(b.default);b.default.registerComponent("ClickableComponent",d),h.default=d},{5:5,81:81,82:82,83:83,86:86,88:88,94:94}],4:[function(s,U,h){"use strict";function w(p){return p&&p.__esModule?p:{default:p}}function _(p,n){if(!(p instanceof n))throw new TypeError("Cannot call a class as a function")}function m(p,n){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||typeof n!="object"&&typeof n!="function"?p:n}function E(p,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);p.prototype=Object.create(n&&n.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(p,n):p.__proto__=n)}h.__esModule=!0;var T=s(2),C=w(T),b=s(5),f=w(b),i=function(p){function n(u,e){_(this,n);var t=m(this,p.call(this,u,e));return t.controlText(e&&e.controlText||t.localize("Close")),t}return E(n,p),n.prototype.buildCSSClass=function(){return"vjs-close-button "+p.prototype.buildCSSClass.call(this)},n.prototype.handleClick=function(u){this.trigger({type:"close",bubbles:!1})},n}(C.default);f.default.registerComponent("CloseButton",i),h.default=i},{2:2,5:5}],5:[function(s,U,h){"use strict";function w(g){if(g&&g.__esModule)return g;var o={};if(g!=null)for(var c in g)Object.prototype.hasOwnProperty.call(g,c)&&(o[c]=g[c]);return o.default=g,o}function _(g){return g&&g.__esModule?g:{default:g}}function m(g,o){if(!(g instanceof o))throw new TypeError("Cannot call a class as a function")}h.__esModule=!0;var E=s(95),T=_(E),C=s(81),b=w(C),f=s(83),i=w(f),p=s(85),n=w(p),u=s(82),e=w(u),t=s(86),r=_(t),l=s(91),a=_(l),v=s(87),d=_(v),y=function(){function g(o,c,j){if(m(this,g),!o&&this.play?this.player_=o=this:this.player_=o,this.options_=(0,d.default)({},this.options_),c=this.options_=(0,d.default)(this.options_,c),this.id_=c.id||c.el&&c.el.id,!this.id_){var D=o&&o.id&&o.id()||"no_player";this.id_=D+"_component_"+n.newGUID()}this.name_=c.name||null,c.el?this.el_=c.el:c.createEl!==!1&&(this.el_=this.createEl()),this.children_=[],this.childIndex_={},this.childNameIndex_={},c.initChildren!==!1&&this.initChildren(),this.ready(j),c.reportTouchActivity!==!1&&this.enableTouchActivity()}return g.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var o=this.children_.length-1;o>=0;o--)this.children_[o].dispose&&this.children_[o].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),b.removeElData(this.el_),this.el_=null},g.prototype.player=function(){return this.player_},g.prototype.options=function(o){return r.default.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),o?(this.options_=(0,d.default)(this.options_,o),this.options_):this.options_},g.prototype.el=function(){return this.el_},g.prototype.createEl=function(o,c,j){return b.createEl(o,c,j)},g.prototype.localize=function(o){var c=this.player_.language&&this.player_.language(),j=this.player_.languages&&this.player_.languages();if(!c||!j)return o;var D=j[c];if(D&&D[o])return D[o];var B=c.split("-")[0],R=j[B];return R&&R[o]?R[o]:o},g.prototype.contentEl=function(){return this.contentEl_||this.el_},g.prototype.id=function(){return this.id_},g.prototype.name=function(){return this.name_},g.prototype.children=function(){return this.children_},g.prototype.getChildById=function(o){return this.childIndex_[o]},g.prototype.getChild=function(o){if(o)return o=(0,a.default)(o),this.childNameIndex_[o]},g.prototype.addChild=function(o){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.children_.length,D=void 0,B=void 0;if(typeof o=="string"){B=(0,a.default)(o),c||(c={}),c===!0&&(r.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`."),c={});var R=c.componentClass||B;c.name=B;var L=g.getComponent(R);if(!L)throw new Error("Component "+R+" does not exist");if(typeof L!="function")return null;D=new L(this.player_||this,c)}else D=o;if(this.children_.splice(j,0,D),typeof D.id=="function"&&(this.childIndex_[D.id()]=D),B=B||D.name&&(0,a.default)(D.name()),B&&(this.childNameIndex_[B]=D),typeof D.el=="function"&&D.el()){var O=this.contentEl().children,P=O[j]||null;this.contentEl().insertBefore(D.el(),P)}return D},g.prototype.removeChild=function(o){if(typeof o=="string"&&(o=this.getChild(o)),o&&this.children_){for(var c=!1,j=this.children_.length-1;j>=0;j--)if(this.children_[j]===o){c=!0,this.children_.splice(j,1);break}if(c){this.childIndex_[o.id()]=null,this.childNameIndex_[o.name()]=null;var D=o.el();D&&D.parentNode===this.contentEl()&&this.contentEl().removeChild(o.el())}}},g.prototype.initChildren=function(){var o=this,c=this.options_.children;if(c){var j=this.options_,D=function(L){var O=L.name,P=L.opts;if(j[O]!==void 0&&(P=j[O]),P!==!1){P===!0&&(P={}),P.playerOptions=o.options_.playerOptions;var N=o.addChild(O,P);N&&(o[O]=N)}},B=void 0,R=g.getComponent("Tech");B=Array.isArray(c)?c:Object.keys(c),B.concat(Object.keys(this.options_).filter(function(L){return!B.some(function(O){return typeof O=="string"?L===O:L===O.name})})).map(function(L){var O=void 0,P=void 0;return typeof L=="string"?(O=L,P=c[O]||o.options_[O]||{}):(O=L.name,P=L),{name:O,opts:P}}).filter(function(L){var O=g.getComponent(L.opts.componentClass||(0,a.default)(L.name));return O&&!R.isTech(O)}).forEach(D)}},g.prototype.buildCSSClass=function(){return""},g.prototype.on=function(o,c,j){var D=this;if(typeof o=="string"||Array.isArray(o))e.on(this.el_,o,i.bind(this,c));else{var B=o,R=c,L=i.bind(this,j),O=function(){return D.off(B,R,L)};O.guid=L.guid,this.on("dispose",O);var P=function(){return D.off("dispose",O)};P.guid=L.guid,o.nodeName?(e.on(B,R,L),e.on(B,"dispose",P)):typeof o.on=="function"&&(B.on(R,L),B.on("dispose",P))}return this},g.prototype.off=function(o,c,j){if(!o||typeof o=="string"||Array.isArray(o))e.off(this.el_,o,c);else{var D=o,B=c,R=i.bind(this,j);this.off("dispose",R),o.nodeName?(e.off(D,B,R),e.off(D,"dispose",R)):(D.off(B,R),D.off("dispose",R))}return this},g.prototype.one=function(o,c,j){var D=this,B=arguments;if(typeof o=="string"||Array.isArray(o))e.one(this.el_,o,i.bind(this,c));else{var R=o,L=c,O=i.bind(this,j),P=function N(){D.off(R,L,N),O.apply(null,B)};P.guid=O.guid,this.on(R,L,P)}return this},g.prototype.trigger=function(o,c){return e.trigger(this.el_,o,c),this},g.prototype.ready=function(o){var c=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return o&&(this.isReady_?c?o.call(this):this.setTimeout(o,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(o))),this},g.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var o=this.readyQueue_;this.readyQueue_=[],o&&o.length>0&&o.forEach(function(c){c.call(this)},this),this.trigger("ready")},1)},g.prototype.$=function(o,c){return b.$(o,c||this.contentEl())},g.prototype.$$=function(o,c){return b.$$(o,c||this.contentEl())},g.prototype.hasClass=function(o){return b.hasElClass(this.el_,o)},g.prototype.addClass=function(o){return b.addElClass(this.el_,o),this},g.prototype.removeClass=function(o){return b.removeElClass(this.el_,o),this},g.prototype.toggleClass=function(o,c){return b.toggleElClass(this.el_,o,c),this},g.prototype.show=function(){return this.removeClass("vjs-hidden"),this},g.prototype.hide=function(){return this.addClass("vjs-hidden"),this},g.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},g.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},g.prototype.getAttribute=function(o){return b.getAttribute(this.el_,o)},g.prototype.setAttribute=function(o,c){return b.setAttribute(this.el_,o,c),this},g.prototype.removeAttribute=function(o){return b.removeAttribute(this.el_,o),this},g.prototype.width=function(o,c){return this.dimension("width",o,c)},g.prototype.height=function(o,c){return this.dimension("height",o,c)},g.prototype.dimensions=function(o,c){return this.width(o,!0).height(c)},g.prototype.dimension=function(o,c,j){if(c!==void 0)return c!==null&&c===c||(c=0),(""+c).indexOf("%")!==-1||(""+c).indexOf("px")!==-1?this.el_.style[o]=c:this.el_.style[o]=c==="auto"?"":c+"px",j||this.trigger("resize"),this;if(!this.el_)return 0;var D=this.el_.style[o],B=D.indexOf("px");return parseInt(B!==-1?D.slice(0,B):this.el_["offset"+(0,a.default)(o)],10)},g.prototype.currentDimension=function(o){var c=0;if(o!=="width"&&o!=="height")throw new Error("currentDimension only accepts width or height value");if(typeof T.default.getComputedStyle=="function"){var j=T.default.getComputedStyle(this.el_);c=j.getPropertyValue(o)||j[o]}if(c=parseFloat(c),c===0){var D="offset"+(0,a.default)(o);c=this.el_[D]}return c},g.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},g.prototype.currentWidth=function(){return this.currentDimension("width")},g.prototype.currentHeight=function(){return this.currentDimension("height")},g.prototype.focus=function(){this.el_.focus()},g.prototype.blur=function(){this.el_.blur()},g.prototype.emitTapEvents=function(){var o=0,c=null,j=void 0;this.on("touchstart",function(B){B.touches.length===1&&(c={pageX:B.touches[0].pageX,pageY:B.touches[0].pageY},o=new Date().getTime(),j=!0)}),this.on("touchmove",function(B){if(B.touches.length>1)j=!1;else if(c){var R=B.touches[0].pageX-c.pageX,L=B.touches[0].pageY-c.pageY,O=Math.sqrt(R*R+L*L);O>10&&(j=!1)}});var D=function(){j=!1};this.on("touchleave",D),this.on("touchcancel",D),this.on("touchend",function(B){c=null,j===!0&&new Date().getTime()-o<200&&(B.preventDefault(),this.trigger("tap"))})},g.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var o=i.bind(this.player(),this.player().reportUserActivity),c=void 0;this.on("touchstart",function(){o(),this.clearInterval(c),c=this.setInterval(o,250)});var j=function(D){o(),this.clearInterval(c)};this.on("touchmove",o),this.on("touchend",j),this.on("touchcancel",j)}},g.prototype.setTimeout=function(o,c){o=i.bind(this,o);var j=T.default.setTimeout(o,c),D=function(){this.clearTimeout(j)};return D.guid="vjs-timeout-"+j,this.on("dispose",D),j},g.prototype.clearTimeout=function(o){T.default.clearTimeout(o);var c=function(){};return c.guid="vjs-timeout-"+o,this.off("dispose",c),o},g.prototype.setInterval=function(o,c){o=i.bind(this,o);var j=T.default.setInterval(o,c),D=function(){this.clearInterval(j)};return D.guid="vjs-interval-"+j,this.on("dispose",D),j},g.prototype.clearInterval=function(o){T.default.clearInterval(o);var c=function(){};return c.guid="vjs-interval-"+o,this.off("dispose",c),o},g.registerComponent=function(o,c){if(o){if(o=(0,a.default)(o),g.components_||(g.components_={}),o==="Player"&&g.components_[o]){var j=g.components_[o];if(j.players&&Object.keys(j.players).length>0&&Object.keys(j.players).map(function(D){return j.players[D]}).every(Boolean))throw new Error("Can not register Player component after player has been created")}return g.components_[o]=c,c}},g.getComponent=function(o){if(o)return o=(0,a.default)(o),g.components_&&g.components_[o]?g.components_[o]:T.default&&T.default.videojs&&T.default.videojs[o]?(r.default.warn("The "+o+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),T.default.videojs[o]):void 0},g.extend=function(o){o=o||{},r.default.warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var c=o.init||o.init||this.prototype.init||this.prototype.init||function(){},j=function(){c.apply(this,arguments)};j.prototype=Object.create(this.prototype),j.prototype.constructor=j,j.extend=g.extend;for(var D in o)o.hasOwnProperty(D)&&(j.prototype[D]=o[D]);return j},g}();y.registerComponent("Component",y),h.default=y},{81:81,82:82,83:83,85:85,86:86,87:87,91:91,95:95}],6:[function(s,U,h){"use strict";function w(u){return u&&u.__esModule?u:{default:u}}function _(u,e){if(!(u instanceof e))throw new TypeError("Cannot call a class as a function")}function m(u,e){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||typeof e!="object"&&typeof e!="function"?u:e}function E(u,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);u.prototype=Object.create(e&&e.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(u,e):u.__proto__=e)}h.__esModule=!0;var T=s(36),C=w(T),b=s(5),f=w(b),i=s(7),p=w(i),n=function(u){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_(this,e),r.tracks=t.audioTracks&&t.audioTracks();var l=m(this,u.call(this,t,r));return l.el_.setAttribute("aria-label","Audio Menu"),l}return E(e,u),e.prototype.buildCSSClass=function(){return"vjs-audio-button "+u.prototype.buildCSSClass.call(this)},e.prototype.createItems=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.hideThreshold_=1;var r=this.player_.audioTracks&&this.player_.audioTracks();if(!r)return t;for(var l=0;l'+this.localize("Stream Type")+""+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},u.prototype.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},u}(b.default);b.default.registerComponent("LiveDisplay",p),h.default=p},{5:5,81:81}],11:[function(s,U,h){"use strict";function w(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function _(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||typeof t!="object"&&typeof t!="function"?e:t}function T(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}h.__esModule=!0;var C=s(2),b=_(C),f=s(5),i=_(f),p=s(81),n=w(p),u=function(e){function t(r,l){m(this,t);var a=E(this,e.call(this,r,l));return a.on(r,"volumechange",a.update),r.tech_&&r.tech_.featuresVolumeControl===!1&&a.addClass("vjs-hidden"),a.on(r,"loadstart",function(){this.update(),r.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),a}return T(t,e),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(r){this.player_.muted(!this.player_.muted())},t.prototype.update=function(r){var l=this.player_.volume(),a=3;l===0||this.player_.muted()?a=0:l<.33?a=1:l<.67&&(a=2);var v=this.player_.muted()?"Unmute":"Mute";this.controlText()!==v&&this.controlText(v);for(var d=0;d<4;d++)n.removeElClass(this.el_,"vjs-vol-"+d);n.addElClass(this.el_,"vjs-vol-"+a)},t}(b.default);u.prototype.controlText_="Mute",i.default.registerComponent("MuteToggle",u),h.default=u},{2:2,5:5,81:81}],12:[function(s,U,h){"use strict";function w(p){return p&&p.__esModule?p:{default:p}}function _(p,n){if(!(p instanceof n))throw new TypeError("Cannot call a class as a function")}function m(p,n){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||typeof n!="object"&&typeof n!="function"?p:n}function E(p,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);p.prototype=Object.create(n&&n.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(p,n):p.__proto__=n)}h.__esModule=!0;var T=s(2),C=w(T),b=s(5),f=w(b),i=function(p){function n(u,e){_(this,n);var t=m(this,p.call(this,u,e));return t.on(u,"play",t.handlePlay),t.on(u,"pause",t.handlePause),t}return E(n,p),n.prototype.buildCSSClass=function(){return"vjs-play-control "+p.prototype.buildCSSClass.call(this)},n.prototype.handleClick=function(u){this.player_.paused()?this.player_.play():this.player_.pause()},n.prototype.handlePlay=function(u){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.prototype.handlePause=function(u){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n}(C.default);i.prototype.controlText_="Play",f.default.registerComponent("PlayToggle",i),h.default=i},{2:2,5:5}],13:[function(s,U,h){"use strict";function w(a){if(a&&a.__esModule)return a;var v={};if(a!=null)for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(v[d]=a[d]);return v.default=a,v}function _(a){return a&&a.__esModule?a:{default:a}}function m(a,v){if(!(a instanceof v))throw new TypeError("Cannot call a class as a function")}function E(a,v){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!v||typeof v!="object"&&typeof v!="function"?a:v}function T(a,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);a.prototype=Object.create(v&&v.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(a,v):a.__proto__=v)}h.__esModule=!0;var C=s(47),b=_(C),f=s(49),i=_(f),p=s(14),n=_(p),u=s(5),e=_(u),t=s(81),r=w(t),l=function(a){function v(d,y){m(this,v);var g=E(this,a.call(this,d,y));return g.updateVisibility(),g.updateLabel(),g.on(d,"loadstart",g.updateVisibility),g.on(d,"ratechange",g.updateLabel),g}return T(v,a),v.prototype.createEl=function(){var d=a.prototype.createEl.call(this);return this.labelEl_=r.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),d.appendChild(this.labelEl_),d},v.prototype.buildCSSClass=function(){return"vjs-playback-rate "+a.prototype.buildCSSClass.call(this)},v.prototype.createMenu=function(){var d=new i.default(this.player()),y=this.playbackRates();if(y)for(var g=y.length-1;g>=0;g--)d.addChild(new n.default(this.player(),{rate:y[g]+"x"}));return d},v.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},v.prototype.handleClick=function(d){for(var y=this.player().playbackRate(),g=this.playbackRates(),o=g[0],c=0;cy){o=g[c];break}this.player().playbackRate(o)},v.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},v.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},v.prototype.updateVisibility=function(d){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},v.prototype.updateLabel=function(d){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},v}(b.default);l.prototype.controlText_="Playback Rate",e.default.registerComponent("PlaybackRateMenuButton",l),h.default=l},{14:14,47:47,49:49,5:5,81:81}],14:[function(s,U,h){"use strict";function w(p){return p&&p.__esModule?p:{default:p}}function _(p,n){if(!(p instanceof n))throw new TypeError("Cannot call a class as a function")}function m(p,n){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||typeof n!="object"&&typeof n!="function"?p:n}function E(p,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);p.prototype=Object.create(n&&n.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(p,n):p.__proto__=n)}h.__esModule=!0;var T=s(48),C=w(T),b=s(5),f=w(b),i=function(p){function n(u,e){_(this,n);var t=e.rate,r=parseFloat(t,10);e.label=t,e.selected=r===1,e.selectable=!0;var l=m(this,p.call(this,u,e));return l.label=t,l.rate=r,l.on(u,"ratechange",l.update),l}return E(n,p),n.prototype.handleClick=function(u){p.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.prototype.update=function(u){this.selected(this.player().playbackRate()===this.rate)},n}(C.default);i.prototype.contentElType="button",f.default.registerComponent("PlaybackRateMenuItem",i),h.default=i},{48:48,5:5}],15:[function(s,U,h){"use strict";function w(n){if(n&&n.__esModule)return n;var u={};if(n!=null)for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(u[e]=n[e]);return u.default=n,u}function _(n){return n&&n.__esModule?n:{default:n}}function m(n,u){if(!(n instanceof u))throw new TypeError("Cannot call a class as a function")}function E(n,u){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||typeof u!="object"&&typeof u!="function"?n:u}function T(n,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);n.prototype=Object.create(u&&u.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(n,u):n.__proto__=u)}h.__esModule=!0;var C=s(5),b=_(C),f=s(81),i=w(f),p=function(n){function u(e,t){m(this,u);var r=E(this,n.call(this,e,t));return r.partEls_=[],r.on(e,"progress",r.update),r}return T(u,n),u.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:''+this.localize("Loaded")+": 0%"})},u.prototype.update=function(e){var t=this.player_.buffered(),r=this.player_.duration(),l=this.player_.bufferedEnd(),a=this.partEls_,v=function(j,D){var B=j/D||0;return 100*(B>=1?1:B)+"%"};this.el_.style.width=v(l,r);for(var d=0;dt.length;c--)this.el_.removeChild(a[c-1]);a.length=t.length},u}(b.default);b.default.registerComponent("LoadProgressBar",p),h.default=p},{5:5,81:81}],16:[function(s,U,h){"use strict";function w(a){if(a&&a.__esModule)return a;var v={};if(a!=null)for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(v[d]=a[d]);return v.default=a,v}function _(a){return a&&a.__esModule?a:{default:a}}function m(a,v){if(!(a instanceof v))throw new TypeError("Cannot call a class as a function")}function E(a,v){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!v||typeof v!="object"&&typeof v!="function"?a:v}function T(a,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);a.prototype=Object.create(v&&v.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(a,v):a.__proto__=v)}h.__esModule=!0;var C=s(5),b=_(C),f=s(81),i=w(f),p=s(83),n=w(p),u=s(84),e=_(u),t=s(80),r=_(t),l=function(a){function v(d,y){m(this,v);var g=E(this,a.call(this,d,y));return y.playerOptions&&y.playerOptions.controlBar&&y.playerOptions.controlBar.progressControl&&y.playerOptions.controlBar.progressControl.keepTooltipsInside&&(g.keepTooltipsInside=y.playerOptions.controlBar.progressControl.keepTooltipsInside),g.keepTooltipsInside&&(g.tooltip=i.createEl("div",{className:"vjs-time-tooltip"}),g.el().appendChild(g.tooltip),g.addClass("vjs-keep-tooltips-inside")),g.update(0,0),d.on("ready",function(){g.on(d.controlBar.progressControl.el(),"mousemove",n.throttle(n.bind(g,g.handleMouseMove),25))}),g}return T(v,a),v.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},v.prototype.handleMouseMove=function(d){var y=this.player_.duration(),g=this.calculateDistance(d)*y,o=d.pageX-i.findElPosition(this.el().parentNode).left;this.update(g,o)},v.prototype.update=function(d,y){var g=(0,e.default)(d,this.player_.duration());if(this.el().style.left=y+"px",this.el().setAttribute("data-current-time",g),this.keepTooltipsInside){var o=this.clampPosition_(y),c=y-o+1,j=parseFloat((0,r.default)(this.tooltip,"width")),D=j/2;this.tooltip.innerHTML=g,this.tooltip.style.right="-"+(D-c)+"px"}},v.prototype.calculateDistance=function(d){return i.getPointerPosition(this.el().parentNode,d).x},v.prototype.clampPosition_=function(d){if(!this.keepTooltipsInside)return d;var y=parseFloat((0,r.default)(this.player().el(),"width")),g=parseFloat((0,r.default)(this.tooltip,"width")),o=g/2,c=d;return dy-o&&(c=Math.floor(y-o)),c},v}(b.default);b.default.registerComponent("MouseTimeDisplay",l),h.default=l},{5:5,80:80,81:81,83:83,84:84}],17:[function(s,U,h){"use strict";function w(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function _(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||typeof t!="object"&&typeof t!="function"?e:t}function T(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}h.__esModule=!0;var C=s(5),b=_(C),f=s(83),i=w(f),p=s(84),n=_(p),u=function(e){function t(r,l){m(this,t);var a=E(this,e.call(this,r,l));return a.updateDataAttr(),a.on(r,"timeupdate",a.updateDataAttr),r.ready(i.bind(a,a.updateDataAttr)),l.playerOptions&&l.playerOptions.controlBar&&l.playerOptions.controlBar.progressControl&&l.playerOptions.controlBar.progressControl.keepTooltipsInside&&(a.keepTooltipsInside=l.playerOptions.controlBar.progressControl.keepTooltipsInside),a.keepTooltipsInside&&a.addClass("vjs-keep-tooltips-inside"),a}return T(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:''+this.localize("Progress")+": 0%"})},t.prototype.updateDataAttr=function(r){var l=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",(0,n.default)(l,this.player_.duration()))},t}(b.default);b.default.registerComponent("PlayProgressBar",u),h.default=u},{5:5,83:83,84:84}],18:[function(s,U,h){"use strict";function w(f){return f&&f.__esModule?f:{default:f}}function _(f,i){if(!(f instanceof i))throw new TypeError("Cannot call a class as a function")}function m(f,i){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||typeof i!="object"&&typeof i!="function"?f:i}function E(f,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);f.prototype=Object.create(i&&i.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(f,i):f.__proto__=i)}h.__esModule=!0;var T=s(5),C=w(T);s(19),s(16);var b=function(f){function i(){return _(this,i),m(this,f.apply(this,arguments))}return E(i,f),i.prototype.createEl=function(){return f.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},i}(C.default);b.prototype.options_={children:["seekBar"]},C.default.registerComponent("ProgressControl",b),h.default=b},{16:16,19:19,5:5}],19:[function(s,U,h){"use strict";function w(a){if(a&&a.__esModule)return a;var v={};if(a!=null)for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(v[d]=a[d]);return v.default=a,v}function _(a){return a&&a.__esModule?a:{default:a}}function m(a,v){if(!(a instanceof v))throw new TypeError("Cannot call a class as a function")}function E(a,v){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!v||typeof v!="object"&&typeof v!="function"?a:v}function T(a,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);a.prototype=Object.create(v&&v.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(a,v):a.__proto__=v)}h.__esModule=!0;var C=s(57),b=_(C),f=s(5),i=_(f),p=s(83),n=w(p),u=s(84),e=_(u),t=s(80),r=_(t);s(15),s(17),s(20);var l=function(a){function v(d,y){m(this,v);var g=E(this,a.call(this,d,y));return g.on(d,"timeupdate",g.updateProgress),g.on(d,"ended",g.updateProgress),d.ready(n.bind(g,g.updateProgress)),y.playerOptions&&y.playerOptions.controlBar&&y.playerOptions.controlBar.progressControl&&y.playerOptions.controlBar.progressControl.keepTooltipsInside&&(g.keepTooltipsInside=y.playerOptions.controlBar.progressControl.keepTooltipsInside),g.keepTooltipsInside&&(g.tooltipProgressBar=g.addChild("TooltipProgressBar")),g}return T(v,a),v.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},v.prototype.updateProgress=function(d){if(this.updateAriaAttributes(this.el_),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_),this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var y=parseFloat((0,r.default)(this.player().el(),"width")),g=parseFloat((0,r.default)(this.tooltipProgressBar.tooltip,"width")),o=this.tooltipProgressBar.el().style;o.maxWidth=Math.floor(y-g/2)+"px",o.minWidth=Math.ceil(g/2)+"px",o.right="-"+g/2+"px"}},v.prototype.updateAriaAttributes=function(d){var y=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();d.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),d.setAttribute("aria-valuetext",(0,e.default)(y,this.player_.duration()))},v.prototype.getPercent=function(){var d=this.player_.currentTime()/this.player_.duration();return d>=1?1:d},v.prototype.handleMouseDown=function(d){this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),a.prototype.handleMouseDown.call(this,d)},v.prototype.handleMouseMove=function(d){var y=this.calculateDistance(d)*this.player_.duration();y===this.player_.duration()&&(y-=.1),this.player_.currentTime(y)},v.prototype.handleMouseUp=function(d){a.prototype.handleMouseUp.call(this,d),this.player_.scrubbing(!1),this.videoWasPlaying&&this.player_.play()},v.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},v.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},v}(b.default);l.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},l.prototype.playerEvent="timeupdate",i.default.registerComponent("SeekBar",l),h.default=l},{15:15,17:17,20:20,5:5,57:57,80:80,83:83,84:84}],20:[function(s,U,h){"use strict";function w(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function _(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||typeof t!="object"&&typeof t!="function"?e:t}function T(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}h.__esModule=!0;var C=s(5),b=_(C),f=s(83),i=w(f),p=s(84),n=_(p),u=function(e){function t(r,l){m(this,t);var a=E(this,e.call(this,r,l));return a.updateDataAttr(),a.on(r,"timeupdate",a.updateDataAttr),r.ready(i.bind(a,a.updateDataAttr)),a}return T(t,e),t.prototype.createEl=function(){var r=e.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar",innerHTML:`
`+this.localize("Progress")+": 0%"});return this.tooltip=r.querySelector(".vjs-time-tooltip"),r},t.prototype.updateDataAttr=function(r){var l=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),a=(0,n.default)(l,this.player_.duration());this.el_.setAttribute("data-current-time",a),this.tooltip.innerHTML=a},t}(b.default);b.default.registerComponent("TooltipProgressBar",u),h.default=u},{5:5,83:83,84:84}],21:[function(s,U,h){"use strict";function w(p){return p&&p.__esModule?p:{default:p}}function _(p,n){if(!(p instanceof n))throw new TypeError("Cannot call a class as a function")}function m(p,n){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||typeof n!="object"&&typeof n!="function"?p:n}function E(p,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);p.prototype=Object.create(n&&n.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(p,n):p.__proto__=n)}h.__esModule=!0;var T=s(22),C=w(T),b=s(5),f=w(b),i=function(p){function n(){return _(this,n),m(this,p.apply(this,arguments))}return E(n,p),n.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+p.prototype.buildCSSClass.call(this)},n.prototype.createEl=function(){var u=p.prototype.createEl.call(this,{className:this.buildCSSClass()});return u.innerHTML=" ",u},n}(C.default);f.default.registerComponent("CustomControlSpacer",i),h.default=i},{22:22,5:5}],22:[function(s,U,h){"use strict";function w(f){return f&&f.__esModule?f:{default:f}}function _(f,i){if(!(f instanceof i))throw new TypeError("Cannot call a class as a function")}function m(f,i){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||typeof i!="object"&&typeof i!="function"?f:i}function E(f,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);f.prototype=Object.create(i&&i.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(f,i):f.__proto__=i)}h.__esModule=!0;var T=s(5),C=w(T),b=function(f){function i(){return _(this,i),m(this,f.apply(this,arguments))}return E(i,f),i.prototype.buildCSSClass=function(){return"vjs-spacer "+f.prototype.buildCSSClass.call(this)},i.prototype.createEl=function(){return f.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},i}(C.default);C.default.registerComponent("Spacer",b),h.default=b},{5:5}],23:[function(s,U,h){"use strict";function w(p){return p&&p.__esModule?p:{default:p}}function _(p,n){if(!(p instanceof n))throw new TypeError("Cannot call a class as a function")}function m(p,n){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||typeof n!="object"&&typeof n!="function"?p:n}function E(p,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);p.prototype=Object.create(n&&n.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(p,n):p.__proto__=n)}h.__esModule=!0;var T=s(31),C=w(T),b=s(5),f=w(b),i=function(p){function n(u,e){_(this,n),e.track={player:u,kind:e.kind,label:e.kind+" settings",selectable:!1,default:!1,mode:"disabled"},e.selectable=!1;var t=m(this,p.call(this,u,e));return t.addClass("vjs-texttrack-settings"),t.controlText(", opens "+e.kind+" settings dialog"),t}return E(n,p),n.prototype.handleClick=function(u){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").el_.focus()},n}(C.default);f.default.registerComponent("CaptionSettingsMenuItem",i),h.default=i},{31:31,5:5}],24:[function(s,U,h){"use strict";function w(u){return u&&u.__esModule?u:{default:u}}function _(u,e){if(!(u instanceof e))throw new TypeError("Cannot call a class as a function")}function m(u,e){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||typeof e!="object"&&typeof e!="function"?u:e}function E(u,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);u.prototype=Object.create(e&&e.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(u,e):u.__proto__=e)}h.__esModule=!0;var T=s(30),C=w(T),b=s(5),f=w(b),i=s(23),p=w(i),n=function(u){function e(t,r,l){_(this,e);var a=m(this,u.call(this,t,r,l));return a.el_.setAttribute("aria-label","Captions Menu"),a}return E(e,u),e.prototype.buildCSSClass=function(){return"vjs-captions-button "+u.prototype.buildCSSClass.call(this)},e.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||(t.push(new p.default(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),u.prototype.createItems.call(this,t)},e}(C.default);n.prototype.kind_="captions",n.prototype.controlText_="Captions",f.default.registerComponent("CaptionsButton",n),h.default=n},{23:23,30:30,5:5}],25:[function(s,U,h){"use strict";function w(t){return t&&t.__esModule?t:{default:t}}function _(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function m(t,r){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||typeof r!="object"&&typeof r!="function"?t:r}function E(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r)}h.__esModule=!0;var T=s(30),C=w(T),b=s(5),f=w(b),i=s(26),p=w(i),n=s(91),u=w(n),e=function(t){function r(l,a,v){_(this,r);var d=m(this,t.call(this,l,a,v));return d.el_.setAttribute("aria-label","Chapters Menu"),d}return E(r,t),r.prototype.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},r.prototype.update=function(l){this.track_&&(!l||l.type!=="addtrack"&&l.type!=="removetrack")||this.setTrack(this.findChaptersTrack()),t.prototype.update.call(this)},r.prototype.setTrack=function(l){if(this.track_!==l){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var a=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);a&&a.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=l,this.track_){this.track_.mode="hidden";var v=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);v&&v.addEventListener("load",this.updateHandler_)}}},r.prototype.findChaptersTrack=function(){for(var l=this.player_.textTracks()||[],a=l.length-1;a>=0;a--){var v=l[a];if(v.kind===this.kind_)return v}},r.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize((0,u.default)(this.kind_))},r.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),t.prototype.createMenu.call(this)},r.prototype.createItems=function(){var l=[];if(!this.track_)return l;var a=this.track_.cues;if(!a)return l;for(var v=0,d=a.length;v1&&arguments[1]!==void 0?arguments[1]:{};return _(this,r),a.tracks=l.textTracks(),m(this,t.call(this,l,a))}return E(r,t),r.prototype.createItems=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.push(new u.default(this.player_,{kind:this.kind_})),this.hideThreshold_+=1;var a=this.player_.textTracks();if(!a)return l;for(var v=0;vCurrent Time 0:00'},{"aria-live":"off"}),r.appendChild(this.contentEl_),r},t.prototype.updateContent=function(r){var l=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),a=this.localize("Current Time"),v=(0,n.default)(l,this.player_.duration());v!==this.formattedTime_&&(this.formattedTime_=v,this.contentEl_.innerHTML=''+a+" "+v)},t}(b.default);b.default.registerComponent("CurrentTimeDisplay",u),h.default=u},{5:5,81:81,84:84}],33:[function(s,U,h){"use strict";function w(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function _(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||typeof t!="object"&&typeof t!="function"?e:t}function T(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}h.__esModule=!0;var C=s(5),b=_(C),f=s(81),i=w(f),p=s(84),n=_(p),u=function(e){function t(r,l){m(this,t);var a=E(this,e.call(this,r,l));return a.on(r,"durationchange",a.updateContent),a.on(r,"timeupdate",a.updateContent),a.on(r,"loadedmetadata",a.updateContent),a}return T(t,e),t.prototype.createEl=function(){var r=e.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"}),r.appendChild(this.contentEl_),r},t.prototype.updateContent=function(r){var l=this.player_.duration();if(l&&this.duration_!==l){this.duration_=l;var a=this.localize("Duration Time"),v=(0,n.default)(l);this.contentEl_.innerHTML=''+a+" "+v}},t}(b.default);b.default.registerComponent("DurationDisplay",u),h.default=u},{5:5,81:81,84:84}],34:[function(s,U,h){"use strict";function w(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function _(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||typeof t!="object"&&typeof t!="function"?e:t}function T(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}h.__esModule=!0;var C=s(5),b=_(C),f=s(81),i=w(f),p=s(84),n=_(p),u=function(e){function t(r,l){m(this,t);var a=E(this,e.call(this,r,l));return a.on(r,"timeupdate",a.updateContent),a.on(r,"durationchange",a.updateContent),a}return T(t,e),t.prototype.createEl=function(){var r=e.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"}),r.appendChild(this.contentEl_),r},t.prototype.updateContent=function(r){if(this.player_.duration()){var l=this.localize("Remaining Time"),a=(0,n.default)(this.player_.remainingTime());a!==this.formattedTime_&&(this.formattedTime_=a,this.contentEl_.innerHTML=''+l+" -"+a)}},t}(b.default);b.default.registerComponent("RemainingTimeDisplay",u),h.default=u},{5:5,81:81,84:84}],35:[function(s,U,h){"use strict";function w(f){return f&&f.__esModule?f:{default:f}}function _(f,i){if(!(f instanceof i))throw new TypeError("Cannot call a class as a function")}function m(f,i){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||typeof i!="object"&&typeof i!="function"?f:i}function E(f,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);f.prototype=Object.create(i&&i.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(f,i):f.__proto__=i)}h.__esModule=!0;var T=s(5),C=w(T),b=function(f){function i(){return _(this,i),m(this,f.apply(this,arguments))}return E(i,f),i.prototype.createEl=function(){return f.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"
/
"})},i}(C.default);C.default.registerComponent("TimeDivider",b),h.default=b},{5:5}],36:[function(s,U,h){"use strict";function w(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function _(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||typeof t!="object"&&typeof t!="function"?e:t}function T(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}h.__esModule=!0;var C=s(47),b=_(C),f=s(5),i=_(f),p=s(83),n=w(p),u=function(e){function t(r,l){m(this,t);var a=l.tracks,v=E(this,e.call(this,r,l));if(v.items.length<=1&&v.hide(),!a)return E(v);var d=n.bind(v,v.update);return a.addEventListener("removetrack",d),a.addEventListener("addtrack",d),v.player_.on("dispose",function(){a.removeEventListener("removetrack",d),a.removeEventListener("addtrack",d)}),v}return T(t,e),t}(b.default);i.default.registerComponent("TrackButton",u),h.default=u},{47:47,5:5,83:83}],37:[function(s,U,h){"use strict";function w(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function _(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||typeof t!="object"&&typeof t!="function"?e:t}function T(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}h.__esModule=!0;var C=s(57),b=_(C),f=s(5),i=_(f),p=s(83),n=w(p);s(39);var u=function(e){function t(r,l){m(this,t);var a=E(this,e.call(this,r,l));return a.on(r,"volumechange",a.updateARIAAttributes),r.ready(n.bind(a,a.updateARIAAttributes)),a}return T(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},t.prototype.handleMouseMove=function(r){this.checkMuted(),this.player_.volume(this.calculateDistance(r))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(r){var l=(100*this.player_.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",l),this.el_.setAttribute("aria-valuetext",l+"%")},t}(b.default);u.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},u.prototype.playerEvent="volumechange",i.default.registerComponent("VolumeBar",u),h.default=u},{39:39,5:5,57:57,83:83}],38:[function(s,U,h){"use strict";function w(f){return f&&f.__esModule?f:{default:f}}function _(f,i){if(!(f instanceof i))throw new TypeError("Cannot call a class as a function")}function m(f,i){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||typeof i!="object"&&typeof i!="function"?f:i}function E(f,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);f.prototype=Object.create(i&&i.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(f,i):f.__proto__=i)}h.__esModule=!0;var T=s(5),C=w(T);s(37);var b=function(f){function i(p,n){_(this,i);var u=m(this,f.call(this,p,n));return p.tech_&&p.tech_.featuresVolumeControl===!1&&u.addClass("vjs-hidden"),u.on(p,"loadstart",function(){p.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),u}return E(i,f),i.prototype.createEl=function(){return f.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},i}(C.default);b.prototype.options_={children:["volumeBar"]},C.default.registerComponent("VolumeControl",b),h.default=b},{37:37,5:5}],39:[function(s,U,h){"use strict";function w(f){return f&&f.__esModule?f:{default:f}}function _(f,i){if(!(f instanceof i))throw new TypeError("Cannot call a class as a function")}function m(f,i){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||typeof i!="object"&&typeof i!="function"?f:i}function E(f,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);f.prototype=Object.create(i&&i.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(f,i):f.__proto__=i)}h.__esModule=!0;var T=s(5),C=w(T),b=function(f){function i(){return _(this,i),m(this,f.apply(this,arguments))}return E(i,f),i.prototype.createEl=function(){return f.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:''})},i}(C.default);C.default.registerComponent("VolumeLevel",b),h.default=b},{5:5}],40:[function(s,U,h){"use strict";function w(d){return d&&d.__esModule?d:{default:d}}function _(d){if(d&&d.__esModule)return d;var y={};if(d!=null)for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(y[g]=d[g]);return y.default=d,y}function m(d,y){if(!(d instanceof y))throw new TypeError("Cannot call a class as a function")}function E(d,y){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||typeof y!="object"&&typeof y!="function"?d:y}function T(d,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);d.prototype=Object.create(y&&y.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(d,y):d.__proto__=y)}h.__esModule=!0;var C=s(83),b=_(C),f=s(5),i=w(f),p=s(54),n=w(p),u=s(53),e=w(u),t=s(11),r=w(t),l=s(37),a=w(l),v=function(d){function y(g){function o(){g.tech_&&g.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};m(this,y),c.inline===void 0&&(c.inline=!0),c.vertical===void 0&&(c.inline?c.vertical=!1:c.vertical=!0),c.volumeBar=c.volumeBar||{},c.volumeBar.vertical=!!c.vertical;var j=E(this,d.call(this,g,c));return j.on(g,"volumechange",j.volumeUpdate),j.on(g,"loadstart",j.volumeUpdate),o.call(j),j.on(g,"loadstart",o),j.on(j.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),j.on(j.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),j.on(j.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),j.on(j.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")}),j}return T(y,d),y.prototype.buildCSSClass=function(){var g="";return g=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+d.prototype.buildCSSClass.call(this)+" "+g},y.prototype.createPopup=function(){var g=new n.default(this.player_,{contentElType:"div"}),o=new a.default(this.player_,this.options_.volumeBar);return g.addChild(o),this.menuContent=g,this.volumeBar=o,this.attachVolumeBarEvents(),g},y.prototype.handleClick=function(g){r.default.prototype.handleClick.call(this),d.prototype.handleClick.call(this)},y.prototype.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],b.bind(this,this.handleMouseDown))},y.prototype.handleMouseDown=function(g){this.on(["mousemove","touchmove"],b.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},y.prototype.handleMouseUp=function(g){this.off(["mousemove","touchmove"],b.bind(this.volumeBar,this.volumeBar.handleMouseMove))},y}(e.default);v.prototype.volumeUpdate=r.default.prototype.update,v.prototype.controlText_="Mute",i.default.registerComponent("VolumeMenuButton",v),h.default=v},{11:11,37:37,5:5,53:53,54:54,83:83}],41:[function(s,U,h){"use strict";function w(u){return u&&u.__esModule?u:{default:u}}function _(u,e){if(!(u instanceof e))throw new TypeError("Cannot call a class as a function")}function m(u,e){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||typeof e!="object"&&typeof e!="function"?u:e}function E(u,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);u.prototype=Object.create(e&&e.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(u,e):u.__proto__=e)}h.__esModule=!0;var T=s(5),C=w(T),b=s(50),f=w(b),i=s(87),p=w(i),n=function(u){function e(t,r){_(this,e);var l=m(this,u.call(this,t,r));return l.on(t,"error",l.open),l}return E(e,u),e.prototype.buildCSSClass=function(){return"vjs-error-display "+u.prototype.buildCSSClass.call(this)},e.prototype.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(f.default);n.prototype.options_=(0,p.default)(f.default.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),C.default.registerComponent("ErrorDisplay",n),h.default=n},{5:5,50:50,87:87}],42:[function(s,U,h){"use strict";function w(T){if(T&&T.__esModule)return T;var C={};if(T!=null)for(var b in T)Object.prototype.hasOwnProperty.call(T,b)&&(C[b]=T[b]);return C.default=T,C}h.__esModule=!0;var _=s(82),m=w(_),E=function(){};E.prototype.allowedEvents_={},E.prototype.on=function(T,C){var b=this.addEventListener;this.addEventListener=function(){},m.on(this,T,C),this.addEventListener=b},E.prototype.addEventListener=E.prototype.on,E.prototype.off=function(T,C){m.off(this,T,C)},E.prototype.removeEventListener=E.prototype.off,E.prototype.one=function(T,C){var b=this.addEventListener;this.addEventListener=function(){},m.one(this,T,C),this.addEventListener=b},E.prototype.trigger=function(T){var C=T.type||T;typeof T=="string"&&(T={type:C}),T=m.fixEvent(T),this.allowedEvents_[C]&&this["on"+C]&&this["on"+C](T),m.trigger(this,T)},E.prototype.dispatchEvent=E.prototype.trigger,h.default=E},{82:82}],43:[function(s,U,h){"use strict";function w(f){return f&&f.__esModule?f:{default:f}}h.__esModule=!0;var _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},m=s(86),E=w(m),T=s(88),C=function(f,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+(i===void 0?"undefined":_(i)));f.prototype=Object.create(i&&i.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),i&&(f.super_=i)},b=function(f){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=function(){f.apply(this,arguments)},n={};(0,T.isObject)(i)?(typeof i.init=="function"&&(E.default.warn("Constructor logic via init() is deprecated; please use constructor() instead."),i.constructor=i.init),i.constructor!==Object.prototype.constructor&&(p=i.constructor),n=i):typeof i=="function"&&(p=i),C(p,f);for(var u in n)n.hasOwnProperty(u)&&(p.prototype[u]=n[u]);return p};h.default=b},{86:86,88:88}],44:[function(s,U,h){"use strict";function w(p){return p&&p.__esModule?p:{default:p}}h.__esModule=!0;for(var _=s(94),m=w(_),E={},T=[["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"]],C=T[0],b=void 0,f=0;f1&&arguments[1]!==void 0?arguments[1]:{};m(this,y);var c=E(this,d.call(this,g,o));return c.update(),c.enabled_=!0,c.el_.setAttribute("aria-haspopup","true"),c.el_.setAttribute("role","menuitem"),c.on("keydown",c.handleSubmenuKeyPress),c}return T(y,d),y.prototype.update=function(){var g=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=g,this.addChild(g),this.buttonPressed_=!1,this.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},y.prototype.createMenu=function(){var g=new n.default(this.player_);if(this.hideThreshold_=0,this.options_.title){var o=e.createEl("li",{className:"vjs-menu-title",innerHTML:(0,a.default)(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,g.children_.unshift(o),e.insertElFirst(o,g.contentEl())}if(this.items=this.createItems(),this.items)for(var c=0;c0&&arguments[0]!==void 0?arguments[0]:0,v=this.children().slice();v.length&&v[0].className&&/vjs-menu-title/.test(v[0].className)&&v.shift(),v.length>0&&(a<0?a=0:a>=v.length&&(a=v.length-1),this.focusedChild_=a,v[a].el_.focus())},l}(b.default);b.default.registerComponent("Menu",t),h.default=t},{5:5,81:81,82:82,83:83}],50:[function(s,U,h){"use strict";function w(e){return e&&e.__esModule?e:{default:e}}function _(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||typeof t!="object"&&typeof t!="function"?e:t}function T(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}h.__esModule=!0;var C=s(81),b=_(C),f=s(83),i=_(f),p=s(5),n=w(p),u=function(e){function t(r,l){m(this,t);var a=E(this,e.call(this,r,l));return a.opened_=a.hasBeenOpened_=a.hasBeenFilled_=!1,a.closeable(!a.options_.uncloseable),a.content(a.options_.content),a.contentEl_=b.createEl("div",{className:"vjs-modal-dialog-content"},{role:"document"}),a.descEl_=b.createEl("p",{className:"vjs-modal-dialog-description vjs-offscreen",id:a.el().getAttribute("aria-describedby")}),b.textContent(a.descEl_,a.description()),a.el_.appendChild(a.descEl_),a.el_.appendChild(a.contentEl_),a}return T(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.prototype.buildCSSClass=function(){return"vjs-modal-dialog vjs-hidden "+e.prototype.buildCSSClass.call(this)},t.prototype.handleKeyPress=function(r){r.which===27&&this.closeable()&&this.close()},t.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},t.prototype.description=function(){var r=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(r+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),r},t.prototype.open=function(){if(!this.opened_){var r=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!r.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&r.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",i.bind(this,this.handleKeyPress)),r.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}return this},t.prototype.opened=function(r){return typeof r=="boolean"&&this[r?"open":"close"](),this.opened_},t.prototype.close=function(){if(this.opened_){var r=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&r.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",i.bind(this,this.handleKeyPress)),r.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.options_.temporary&&this.dispose()}return this},t.prototype.closeable=function(l){if(typeof l=="boolean"){var a=this.closeable_=!!l,v=this.getChild("closeButton");if(a&&!v){var d=this.contentEl_;this.contentEl_=this.el_,v=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=d,this.on(v,"close",this.close)}!a&&v&&(this.off(v,"close",this.close),this.removeChild(v),v.dispose())}return this.closeable_},t.prototype.fill=function(){return this.fillWith(this.content())},t.prototype.fillWith=function(r){var l=this.contentEl(),a=l.parentNode,v=l.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,a.removeChild(l),this.empty(),b.insertContent(l,r),this.trigger("modalfill"),v?a.insertBefore(l,v):a.appendChild(l),this},t.prototype.empty=function(){return this.trigger("beforemodalempty"),b.emptyEl(this.contentEl()),this.trigger("modalempty"),this},t.prototype.content=function(r){return r!==void 0&&(this.content_=r),this.content_},t}(n.default);u.prototype.options_={pauseOnOpen:!0,temporary:!0},n.default.registerComponent("ModalDialog",u),h.default=u},{5:5,81:81,83:83}],51:[function(s,U,h){"use strict";function w(J){if(J&&J.__esModule)return J;var F={};if(J!=null)for(var k in J)Object.prototype.hasOwnProperty.call(J,k)&&(F[k]=J[k]);return F.default=J,F}function _(J){return J&&J.__esModule?J:{default:J}}function m(J,F){if(!(J instanceof F))throw new TypeError("Cannot call a class as a function")}function E(J,F){if(!J)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!F||typeof F!="object"&&typeof F!="function"?J:F}function T(J,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);J.prototype=Object.create(F&&F.prototype,{constructor:{value:J,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(J,F):J.__proto__=F)}h.__esModule=!0;var C=s(5),b=_(C),f=s(94),i=_(f),p=s(95),n=_(p),u=s(82),e=w(u),t=s(81),r=w(t),l=s(83),a=w(l),v=s(85),d=w(v),y=s(78),g=w(y),o=s(86),c=_(o),j=s(91),D=_(j),B=s(90),R=s(79),L=s(89),O=w(L),P=s(44),N=_(P),q=s(46),x=_(q),X=s(97),$=_(X),z=s(88),H=s(87),S=_(H),A=s(69),M=_(A),V=s(50),G=_(V),et=s(62),nt=_(et),ot=s(63),st=_(ot),ut=s(76),pt=_(ut);s(61),s(59),s(55),s(68),s(45),s(1),s(4),s(8),s(41),s(71),s(60);var W=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"],Y=function(J){function F(k,I,K){if(m(this,F),k.id=k.id||"vjs_video_"+d.newGUID(),I=(0,z.assign)(F.getTagSettings(k),I),I.initChildren=!1,I.createEl=!1,I.reportTouchActivity=!1,!I.language)if(typeof k.closest=="function"){var Z=k.closest("[lang]");Z&&(I.language=Z.getAttribute("lang"))}else for(var rt=k;rt&&rt.nodeType===1;){if(r.getElAttributes(rt).hasOwnProperty("lang")){I.language=rt.getAttribute("lang");break}rt=rt.parentNode}var Q=E(this,J.call(this,null,I,K));if(!Q.options_||!Q.options_.techOrder||!Q.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(Q.tag=k,Q.tagAttributes=k&&r.getElAttributes(k),Q.language(Q.options_.language),I.languages){var ct={};Object.getOwnPropertyNames(I.languages).forEach(function(at){ct[at.toLowerCase()]=I.languages[at]}),Q.languages_=ct}else Q.languages_=F.prototype.options_.languages;Q.cache_={},Q.poster_=I.poster||"",Q.controls_=!!I.controls,k.controls=!1,Q.scrubbing_=!1,Q.el_=Q.createEl();var lt=(0,S.default)(Q.options_);if(I.plugins){var it=I.plugins;Object.getOwnPropertyNames(it).forEach(function(at){typeof this[at]=="function"?this[at](it[at]):c.default.error("Unable to find plugin:",at)},Q)}return Q.options_.playerOptions=lt,Q.initChildren(),Q.isAudio(k.nodeName.toLowerCase()==="audio"),Q.controls()?Q.addClass("vjs-controls-enabled"):Q.addClass("vjs-controls-disabled"),Q.el_.setAttribute("role","region"),Q.isAudio()?Q.el_.setAttribute("aria-label","audio player"):Q.el_.setAttribute("aria-label","video player"),Q.isAudio()&&Q.addClass("vjs-audio"),Q.flexNotSupported_()&&Q.addClass("vjs-no-flex"),g.IS_IOS||Q.addClass("vjs-workinghover"),F.players[Q.id_]=Q,Q.userActive(!0),Q.reportUserActivity(),Q.listenForUserActivity_(),Q.on("fullscreenchange",Q.handleFullscreenChange_),Q.on("stageclick",Q.handleStageClick_),Q}return T(F,J),F.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_),F.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(),J.prototype.dispose.call(this)},F.prototype.createEl=function(){var k=this.tag,I=void 0,K=this.playerElIngest_=k.parentNode&&k.parentNode.hasAttribute&&k.parentNode.hasAttribute("data-vjs-player");I=this.el_=K?k.parentNode:J.prototype.createEl.call(this,"div"),k.setAttribute("tabindex","-1"),k.removeAttribute("width"),k.removeAttribute("height");var Z=r.getElAttributes(k);if(Object.getOwnPropertyNames(Z).forEach(function(at){at==="class"?I.className+=" "+Z[at]:I.setAttribute(at,Z[at])}),k.playerId=k.id,k.id+="_html5_api",k.className="vjs-tech",k.player=I.player=this,this.addClass("vjs-paused"),n.default.VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=O.createStyleElement("vjs-styles-dimensions");var rt=r.$(".vjs-styles-defaults"),Q=r.$("head");Q.insertBefore(this.styleEl_,rt?rt.nextSibling:Q.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var ct=k.getElementsByTagName("a"),lt=0;lt=0&&(K.width=k),I>=0&&(K.height=I)))}var Z=void 0,rt=void 0,Q=void 0,ct=void 0;Q=this.aspectRatio_!==void 0&&this.aspectRatio_!=="auto"?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";var lt=Q.split(":"),it=lt[1]/lt[0];Z=this.width_!==void 0?this.width_:this.height_!==void 0?this.height_/it:this.videoWidth()||300,rt=this.height_!==void 0?this.height_:Z*it,ct=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(ct),O.setTextContent(this.styleEl_,` .`+ct+` { width: `+Z+`px; height: `+rt+`px; } .`+ct+`.vjs-fluid { } `)},F.prototype.loadTech_=function(k,I){var K=this;this.tech_&&this.unloadTech_(),k!=="Html5"&&this.tag&&(nt.default.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=k,this.isReady_=!1;var Z=(0,z.assign)({source:I,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+k+"_api",videoTracks:this.videoTracks_,textTracks:this.textTracks_,audioTracks:this.audioTracks_,autoplay:this.options_.autoplay,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"]},this.options_[k.toLowerCase()]);this.tag&&(Z.tag=this.tag),I&&(this.currentType_=I.type,I.src===this.cache_.src&&this.cache_.currentTime>0&&(Z.startTime=this.cache_.currentTime),this.cache_.sources=null,this.cache_.source=I,this.cache_.src=I.src);var rt=nt.default.getTech(k);rt||(rt=b.default.getComponent(k)),this.tech_=new rt(Z),this.tech_.ready(a.bind(this,this.handleTechReady_),!0),M.default.jsonToTextTracks(this.textTracksJson_||[],this.tech_),W.forEach(function(Q){K.on(K.tech_,Q,K["handleTech"+(0,D.default)(Q)+"_"])}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||k==="Html5"&&this.tag||r.insertElFirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},F.prototype.unloadTech_=function(){this.videoTracks_=this.videoTracks(),this.textTracks_=this.textTracks(),this.audioTracks_=this.audioTracks(),this.textTracksJson_=M.default.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},F.prototype.tech=function(k){if(k&&k.IWillNotUseThisInPlugins)return this.tech_;var I=` Please make sure that you are not using this inside of a plugin. To disable this alert and error, please pass in an object with \`IWillNotUseThisInPlugins\` to the \`tech\` method. See https://github.com/videojs/video.js/issues/2617 for more info. `;throw n.default.alert(I),new Error(I)},F.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_)},F.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_)},F.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused()){try{delete this.tag.poster}catch(k){(0,c.default)("deleting tag.poster throws in some browsers",k)}this.play()}},F.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},F.prototype.hasStarted=function(k){return k!==void 0?(this.hasStarted_!==k&&(this.hasStarted_=k,k?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},F.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},F.prototype.handleTechWaiting_=function(){var k=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return k.removeClass("vjs-waiting")})},F.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},F.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},F.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},F.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},F.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},F.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&(c.default.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},F.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},F.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},F.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},F.prototype.handleTechClick_=function(k){k.button===0&&this.controls()&&(this.paused()?this.play():this.pause())},F.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},F.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},F.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},F.prototype.handleTechTouchEnd_=function(k){k.preventDefault()},F.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},F.prototype.handleStageClick_=function(){this.reportUserActivity()},F.prototype.handleTechFullscreenChange_=function(k,I){I&&this.isFullscreen(I.isFullscreen),this.trigger("fullscreenchange")},F.prototype.handleTechError_=function(){var k=this.tech_.error();this.error(k)},F.prototype.handleTechTextData_=function(){var k=null;arguments.length>1&&(k=arguments[1]),this.trigger("textdata",k)},F.prototype.getCache=function(){return this.cache_},F.prototype.techCall_=function(k,I){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[k](I)},!0);else try{this.tech_&&this.tech_[k](I)}catch(K){throw(0,c.default)(K),K}},F.prototype.techGet_=function(k){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[k]()}catch(I){throw this.tech_[k]===void 0?(0,c.default)("Video.js: "+k+" method not defined for "+this.techName_+" playback technology.",I):I.name==="TypeError"?((0,c.default)("Video.js: "+k+" unavailable on "+this.techName_+" playback technology element.",I),this.tech_.isReady_=!1):(0,c.default)(I),I}},F.prototype.play=function(){return this.src()||this.currentSrc()?this.techCall_("play"):this.tech_.one("loadstart",function(){this.play()}),this},F.prototype.pause=function(){return this.techCall_("pause"),this},F.prototype.paused=function(){return this.techGet_("paused")!==!1},F.prototype.scrubbing=function(k){return k!==void 0?(this.scrubbing_=!!k,k?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},F.prototype.currentTime=function(k){return k!==void 0?(this.techCall_("setCurrentTime",k),this):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},F.prototype.duration=function(k){return k===void 0?this.cache_.duration||0:(k=parseFloat(k)||0,k<0&&(k=1/0),k!==this.cache_.duration&&(this.cache_.duration=k,k===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},F.prototype.remainingTime=function(){return this.duration()-this.currentTime()},F.prototype.buffered=function(){var I=this.techGet_("buffered");return I&&I.length||(I=(0,B.createTimeRange)(0,0)),I},F.prototype.bufferedPercent=function(){return(0,R.bufferedPercent)(this.buffered(),this.duration())},F.prototype.bufferedEnd=function(){var k=this.buffered(),I=this.duration(),K=k.end(k.length-1);return K>I&&(K=I),K},F.prototype.volume=function(k){var I=void 0;return k!==void 0?(I=Math.max(0,Math.min(1,parseFloat(k))),this.cache_.volume=I,this.techCall_("setVolume",I),this):(I=parseFloat(this.techGet_("volume")),isNaN(I)?1:I)},F.prototype.muted=function(k){return k!==void 0?(this.techCall_("setMuted",k),this):this.techGet_("muted")||!1},F.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},F.prototype.isFullscreen=function(k){return k!==void 0?(this.isFullscreen_=!!k,this):!!this.isFullscreen_},F.prototype.requestFullscreen=function(){var k=N.default;return this.isFullscreen(!0),k.requestFullscreen?(e.on(i.default,k.fullscreenchange,a.bind(this,function I(K){this.isFullscreen(i.default[k.fullscreenElement]),this.isFullscreen()===!1&&e.off(i.default,k.fullscreenchange,I),this.trigger("fullscreenchange")})),this.el_[k.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},F.prototype.exitFullscreen=function(){var k=N.default;return this.isFullscreen(!1),k.requestFullscreen?i.default[k.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},F.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=i.default.documentElement.style.overflow,e.on(i.default,"keydown",a.bind(this,this.fullWindowOnEscKey)),i.default.documentElement.style.overflow="hidden",r.addElClass(i.default.body,"vjs-full-window"),this.trigger("enterFullWindow")},F.prototype.fullWindowOnEscKey=function(k){k.keyCode===27&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},F.prototype.exitFullWindow=function(){this.isFullWindow=!1,e.off(i.default,"keydown",this.fullWindowOnEscKey),i.default.documentElement.style.overflow=this.docOrigOverflow,r.removeElClass(i.default.body,"vjs-full-window"),this.trigger("exitFullWindow")},F.prototype.canPlayType=function(k){for(var I=void 0,K=0,Z=this.options_.techOrder;K0&&(lt=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},it))}},250)},F.prototype.playbackRate=function(k){return k!==void 0?(this.techCall_("setPlaybackRate",k),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},F.prototype.isAudio=function(k){return k!==void 0?(this.isAudio_=!!k,this):!!this.isAudio_},F.prototype.videoTracks=function(){return this.tech_?this.tech_.videoTracks():(this.videoTracks_=this.videoTracks_||new pt.default,this.videoTracks_)},F.prototype.audioTracks=function(){return this.tech_?this.tech_.audioTracks():(this.audioTracks_=this.audioTracks_||new st.default,this.audioTracks_)},F.prototype.textTracks=function(){if(this.tech_)return this.tech_.textTracks()},F.prototype.remoteTextTracks=function(){if(this.tech_)return this.tech_.remoteTextTracks()},F.prototype.remoteTextTrackEls=function(){if(this.tech_)return this.tech_.remoteTextTrackEls()},F.prototype.addTextTrack=function(k,I,K){if(this.tech_)return this.tech_.addTextTrack(k,I,K)},F.prototype.addRemoteTextTrack=function(k,I){if(this.tech_)return this.tech_.addRemoteTextTrack(k,I)},F.prototype.removeRemoteTextTrack=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=k.track,K=I===void 0?arguments[0]:I;if(this.tech_)return this.tech_.removeRemoteTextTrack(K)},F.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},F.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},F.prototype.language=function(k){return k===void 0?this.language_:(this.language_=String(k).toLowerCase(),this)},F.prototype.languages=function(){return(0,S.default)(F.prototype.options_.languages,this.languages_)},F.prototype.toJSON=function(){var k=(0,S.default)(this.options_),I=k.tracks;k.tracks=[];for(var K=0;K1&&arguments[1]!==void 0?arguments[1]:{};_(this,n);var t=m(this,p.call(this,u,e));return t.update(),t}return E(n,p),n.prototype.update=function(){var u=this.createPopup();this.popup&&this.removeChild(this.popup),this.popup=u,this.addChild(u),this.items&&this.items.length===0?this.hide():this.items&&this.items.length>1&&this.show()},n.prototype.createPopup=function(){},n.prototype.createEl=function(){return p.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},n.prototype.buildCSSClass=function(){var u="vjs-menu-button";return u+=this.options_.inline===!0?"-inline":"-popup","vjs-menu-button "+u+" "+p.prototype.buildCSSClass.call(this)},n}(C.default);f.default.registerComponent("PopupButton",i),h.default=i},{3:3,5:5}],54:[function(s,U,h){"use strict";function w(r){if(r&&r.__esModule)return r;var l={};if(r!=null)for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(l[a]=r[a]);return l.default=r,l}function _(r){return r&&r.__esModule?r:{default:r}}function m(r,l){if(!(r instanceof l))throw new TypeError("Cannot call a class as a function")}function E(r,l){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||typeof l!="object"&&typeof l!="function"?r:l}function T(r,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);r.prototype=Object.create(l&&l.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(r,l):r.__proto__=l)}h.__esModule=!0;var C=s(5),b=_(C),f=s(81),i=w(f),p=s(83),n=w(p),u=s(82),e=w(u),t=function(r){function l(){return m(this,l),E(this,r.apply(this,arguments))}return T(l,r),l.prototype.addItem=function(a){this.addChild(a),a.on("click",n.bind(this,function(){this.unlockShowing()}))},l.prototype.createEl=function(){var a=this.options_.contentElType||"ul";this.contentEl_=i.createEl(a,{className:"vjs-menu-content"});var v=r.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return v.appendChild(this.contentEl_),e.on(v,"click",function(d){d.preventDefault(),d.stopImmediatePropagation()}),v},l}(b.default);b.default.registerComponent("Popup",t),h.default=t},{5:5,81:81,82:82,83:83}],55:[function(s,U,h){"use strict";function w(a){if(a&&a.__esModule)return a;var v={};if(a!=null)for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(v[d]=a[d]);return v.default=a,v}function _(a){return a&&a.__esModule?a:{default:a}}function m(a,v){if(!(a instanceof v))throw new TypeError("Cannot call a class as a function")}function E(a,v){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!v||typeof v!="object"&&typeof v!="function"?a:v}function T(a,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);a.prototype=Object.create(v&&v.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(a,v):a.__proto__=v)}h.__esModule=!0;var C=s(3),b=_(C),f=s(5),i=_(f),p=s(83),n=w(p),u=s(81),e=w(u),t=s(78),r=w(t),l=function(a){function v(d,y){m(this,v);var g=E(this,a.call(this,d,y));return g.update(),d.on("posterchange",n.bind(g,g.update)),g}return T(v,a),v.prototype.dispose=function(){this.player().off("posterchange",this.update),a.prototype.dispose.call(this)},v.prototype.createEl=function(){var d=e.createEl("div",{className:"vjs-poster",tabIndex:-1});return r.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=e.createEl("img"),d.appendChild(this.fallbackImg_)),d},v.prototype.update=function(d){var y=this.player().poster();this.setSrc(y),y?this.show():this.hide()},v.prototype.setSrc=function(d){if(this.fallbackImg_)this.fallbackImg_.src=d;else{var y="";d&&(y='url("'+d+'")'),this.el_.style.backgroundImage=y}},v.prototype.handleClick=function(d){this.player_.controls()&&(this.player_.paused()?this.player_.play():this.player_.pause())},v}(b.default);i.default.registerComponent("PosterImage",l),h.default=l},{3:3,5:5,78:78,81:81,83:83}],56:[function(s,U,h){"use strict";function w(l){return l&&l.__esModule?l:{default:l}}function _(l){if(l&&l.__esModule)return l;var a={};if(l!=null)for(var v in l)Object.prototype.hasOwnProperty.call(l,v)&&(a[v]=l[v]);return a.default=l,a}function m(l,a){a&&(e=a),n.default.setTimeout(t,l)}h.__esModule=!0,h.hasLoaded=h.autoSetupTimeout=h.autoSetup=void 0;var E=s(81),T=_(E),C=s(82),b=_(C),f=s(94),i=w(f),p=s(95),n=w(p),u=!1,e=void 0,t=function(){if(T.isReal()){var l=i.default.getElementsByTagName("video"),a=i.default.getElementsByTagName("audio"),v=[];if(l&&l.length>0)for(var d=0,y=l.length;d0)for(var g=0,o=a.length;g0)for(var c=0,j=v.length;c1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return r.className=r.className+" vjs-slider",r=(0,p.assign)({tabIndex:0},r),l=(0,p.assign)({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},l),u.prototype.createEl.call(this,t,r,l)},e.prototype.handleMouseDown=function(t){var r=this.bar.el_.ownerDocument;t.preventDefault(),i.blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(r,"mousemove",this.handleMouseMove),this.on(r,"mouseup",this.handleMouseUp),this.on(r,"touchmove",this.handleMouseMove),this.on(r,"touchend",this.handleMouseUp),this.handleMouseMove(t)},e.prototype.handleMouseMove=function(t){},e.prototype.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;i.unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.update()},e.prototype.update=function(){if(this.el_){var t=this.getPercent(),r=this.bar;if(r){(typeof t!="number"||t!==t||t<0||t===1/0)&&(t=0);var l=(100*t).toFixed(2)+"%";this.vertical()?r.el().style.height=l:r.el().style.width=l}}},e.prototype.calculateDistance=function(t){var r=i.getPointerPosition(this.el_,t);return this.vertical()?r.y:r.x},e.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleKeyPress=function(t){t.which===37||t.which===40?(t.preventDefault(),this.stepBack()):t.which!==38&&t.which!==39||(t.preventDefault(),this.stepForward())},e.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleClick=function(t){t.stopImmediatePropagation(),t.preventDefault()},e.prototype.vertical=function(t){return t===void 0?this.vertical_||!1:(this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},e}(b.default);b.default.registerComponent("Slider",n),h.default=n},{5:5,81:81,88:88}],58:[function(s,U,h){"use strict";function w(_){return _.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},_.streamFromParts=function(m,E){return m+"&"+E},_.streamToParts=function(m){var E={connection:"",stream:""};if(!m)return E;var T=m.search(/&(?!\w+=)/),C=void 0;return T!==-1?C=T+1:(T=C=m.lastIndexOf("/")+1,T===0&&(T=C=m.length)),E.connection=m.substring(0,T),E.stream=m.substring(C,m.length),E},_.isStreamingType=function(m){return m in _.streamingFormats},_.RTMP_RE=/^rtmp[set]?:\/\//i,_.isStreamingSrc=function(m){return _.RTMP_RE.test(m)},_.rtmpSourceHandler={},_.rtmpSourceHandler.canPlayType=function(m){return _.isStreamingType(m)?"maybe":""},_.rtmpSourceHandler.canHandleSource=function(m,E){var T=_.rtmpSourceHandler.canPlayType(m.type);return T||(_.isStreamingSrc(m.src)?"maybe":"")},_.rtmpSourceHandler.handleSource=function(m,E,T){var C=_.streamToParts(m.src);E.setRtmpConnection(C.connection),E.setRtmpStream(C.stream)},_.registerSourceHandler(_.rtmpSourceHandler),_}h.__esModule=!0,h.default=w},{}],59:[function(s,U,h){"use strict";function w(O){if(O&&O.__esModule)return O;var P={};if(O!=null)for(var N in O)Object.prototype.hasOwnProperty.call(O,N)&&(P[N]=O[N]);return P.default=O,P}function _(O){return O&&O.__esModule?O:{default:O}}function m(O,P){if(!(O instanceof P))throw new TypeError("Cannot call a class as a function")}function E(O,P){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!P||typeof P!="object"&&typeof P!="function"?O:P}function T(O,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);O.prototype=Object.create(P&&P.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(O,P):O.__proto__=P)}function C(O){j["set"+(O.charAt(0).toUpperCase()+O.slice(1))]=function(P){return this.el_.vjs_setProperty(O,P)}}function b(O){j[O]=function(){return this.el_.vjs_getProperty(O)}}h.__esModule=!0;for(var f=s(62),i=_(f),p=s(81),n=w(p),u=s(92),e=w(u),t=s(90),r=s(58),l=_(r),a=s(5),v=_(a),d=s(95),y=_(d),g=s(88),o=y.default.navigator,c=function(O){function P(N,q){m(this,P);var x=E(this,O.call(this,N,q));return N.source&&x.ready(function(){this.setSource(N.source)},!0),N.startTime&&x.ready(function(){this.load(),this.play(),this.currentTime(N.startTime)},!0),y.default.videojs=y.default.videojs||{},y.default.videojs.Flash=y.default.videojs.Flash||{},y.default.videojs.Flash.onReady=P.onReady,y.default.videojs.Flash.onEvent=P.onEvent,y.default.videojs.Flash.onError=P.onError,x.on("seeked",function(){this.lastSeekTarget_=void 0}),x}return T(P,O),P.prototype.createEl=function(){var N=this.options_;N.swf||(N.swf="//vjs.zencdn.net/swf/5.3.0/video-js.swf");var q=N.techId,x=(0,g.assign)({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:N.autoplay,preload:N.preload,loop:N.loop,muted:N.muted,swfID:N.techId},N.flashVars),X=(0,g.assign)({wmode:"opaque",bgcolor:"#000000"},N.params),$=(0,g.assign)({id:q,name:q,class:"vjs-tech"},N.attributes);return this.el_=P.embed(N.swf,x,X,$),this.el_.tech=this,this.el_},P.prototype.play=function(){this.ended()&&this.setCurrentTime(0),this.el_.vjs_play()},P.prototype.pause=function(){this.el_.vjs_pause()},P.prototype.src=function(N){return N===void 0?this.currentSrc():this.setSrc(N)},P.prototype.setSrc=function(N){var q=this;N=e.getAbsoluteURL(N),this.el_.vjs_src(N),this.autoplay()&&this.setTimeout(function(){return q.play()},0)},P.prototype.seeking=function(){return this.lastSeekTarget_!==void 0},P.prototype.setCurrentTime=function(N){var q=this.seekable();q.length&&(N=N>q.start(0)?N:q.start(0),N=N=0?q:1/0},P.prototype.load=function(){this.el_.vjs_load()},P.prototype.poster=function(){this.el_.vjs_getProperty("poster")},P.prototype.setPoster=function(){},P.prototype.seekable=function(){var N=this.duration();return N===0?(0,t.createTimeRange)():(0,t.createTimeRange)(0,N)},P.prototype.buffered=function(){var N=this.el_.vjs_getProperty("buffered");return N.length===0?(0,t.createTimeRange)():(0,t.createTimeRange)(N[0][0],N[0][1])},P.prototype.supportsFullScreen=function(){return!1},P.prototype.enterFullScreen=function(){return!1},P}(i.default),j=c.prototype,D="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(","),B="networkState,readyState,initialTime,startOffsetTime,paused,ended,videoWidth,videoHeight".split(","),R=0;R=10},i.default.withSourceHandlers(c),c.nativeSourceHandler={},c.nativeSourceHandler.canPlayType=function(O){return O in c.formats?"maybe":""},c.nativeSourceHandler.canHandleSource=function(O,P){function N(x){var X=e.getFileExtension(x);return X?"video/"+X:""}var q=void 0;return q=O.type?O.type.replace(/;.*/,"").toLowerCase():N(O.src),c.nativeSourceHandler.canPlayType(q)},c.nativeSourceHandler.handleSource=function(O,P,N){P.setSrc(O.src)},c.nativeSourceHandler.dispose=function(){},c.registerSourceHandler(c.nativeSourceHandler),c.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},c.onReady=function(O){var P=n.getEl(O),N=P&&P.tech;N&&N.el()&&c.checkReady(N)},c.checkReady=function(O){O.el()&&(O.el().vjs_getProperty?O.triggerReady():this.setTimeout(function(){c.checkReady(O)},50))},c.onEvent=function(O,P){var N=n.getEl(O).tech,q=Array.prototype.slice.call(arguments,2);N.setTimeout(function(){N.trigger(P,q)},1)},c.onError=function(O,P){var N=n.getEl(O).tech;if(P==="srcnotfound")return N.error(4);N.error("FLASH: "+P)},c.version=function(){var O="0,0,0";try{O=new y.default.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(P){try{o.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(O=(o.plugins["Shockwave Flash 2.0"]||o.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(N){}}return O.split(",")},c.embed=function(O,P,N,q){var x=c.getEmbedCode(O,P,N,q);return n.createEl("div",{innerHTML:x}).childNodes[0]},c.getEmbedCode=function(O,P,N,q){var x="",X="",$="";return P&&Object.getOwnPropertyNames(P).forEach(function(z){x+=z+"="+P[z]+"&"}),N=(0,g.assign)({movie:O,flashvars:x,allowScriptAccess:"always",allowNetworking:"all"},N),Object.getOwnPropertyNames(N).forEach(function(z){X+=''}),q=(0,g.assign)({data:O,width:"100%",height:"100%"},q),Object.getOwnPropertyNames(q).forEach(function(z){$+=z+'="'+q[z]+'" '}),'"+X+""},(0,l.default)(c),v.default.registerComponent("Flash",c),i.default.registerTech("Flash",c),h.default=c},{5:5,58:58,62:62,81:81,88:88,90:90,92:92,95:95}],60:[function(s,U,h){"use strict";function w(S){if(S&&S.__esModule)return S;var A={};if(S!=null)for(var M in S)Object.prototype.hasOwnProperty.call(S,M)&&(A[M]=S[M]);return A.default=S,A}function _(S){return S&&S.__esModule?S:{default:S}}function m(S,A){return S.raw=A,S}function E(S,A){if(!(S instanceof A))throw new TypeError("Cannot call a class as a function")}function T(S,A){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!A||typeof A!="object"&&typeof A!="function"?S:A}function C(S,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);S.prototype=Object.create(A&&A.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(S,A):S.__proto__=A)}h.__esModule=!0;var b=m([`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used. This may prevent text tracks from loading.`],[`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used. This may prevent text tracks from loading.`]),f=s(62),i=_(f),p=s(5),n=_(p),u=s(81),e=w(u),t=s(92),r=w(t),l=s(83),a=w(l),v=s(86),d=_(v),y=s(98),g=_(y),o=s(78),c=w(o),j=s(94),D=_(j),B=s(95),R=_(B),L=s(88),O=s(87),P=_(O),N=s(91),q=_(N),x=function(S){function A(M,V){E(this,A);var G=T(this,S.call(this,M,V)),et=M.source,nt=!1;if(et&&(G.el_.currentSrc!==et.src||M.tag&&M.tag.initNetworkState_===3)?G.setSource(et):G.handleLateInit_(G.el_),G.el_.hasChildNodes()){for(var ot=G.el_.childNodes,st=ot.length,ut=[];st--;){var pt=ot[st];pt.nodeName.toLowerCase()==="track"&&(G.featuresNativeTextTracks?(G.remoteTextTrackEls().addTrackElement_(pt),G.remoteTextTracks().addTrack_(pt.track),nt||G.el_.hasAttribute("crossorigin")||!r.isCrossOrigin(pt.src)||(nt=!0)):ut.push(pt))}for(var W=0;W=0;ot--){var st=nt[ot],ut={};typeof this.options_[st]!="undefined"&&(ut[st]=this.options_[st]),e.setElAttributes(M,ut)}return M},A.prototype.handleLateInit_=function(M){if(M.networkState!==0&&M.networkState!==3){if(M.readyState===0){var V=!1,G=function(){V=!0};this.on("loadstart",G);var et=function(){V||this.trigger("loadstart")};return this.on("loadedmetadata",et),void this.ready(function(){this.off("loadstart",G),this.off("loadedmetadata",et),V||this.trigger("loadstart")})}var nt=["loadstart"];nt.push("loadedmetadata"),M.readyState>=2&&nt.push("loadeddata"),M.readyState>=3&&nt.push("canplay"),M.readyState>=4&&nt.push("canplaythrough"),this.ready(function(){nt.forEach(function(ot){this.trigger(ot)},this)})}},A.prototype.proxyNativeTextTracks_=function(){var M=this.el().textTracks;if(M){for(var V=0;V0&&(M.el_.duration===1/0&&M.trigger("durationchange"),M.off("timeupdate",G))};return this.on("timeupdate",V),NaN}return this.el_.duration||NaN},A.prototype.width=function(){return this.el_.offsetWidth},A.prototype.height=function(){return this.el_.offsetHeight},A.prototype.proxyWebkitFullscreen_=function(){var M=this;if("webkitDisplayingFullscreen"in this.el_){var V=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},G=function(){this.one("webkitendfullscreen",V),this.trigger("fullscreenchange",{isFullscreen:!0})};this.on("webkitbeginfullscreen",G),this.on("dispose",function(){M.off("webkitbeginfullscreen",G),M.off("webkitendfullscreen",V)})}},A.prototype.supportsFullScreen=function(){if(typeof this.el_.webkitEnterFullScreen=="function"){var M=R.default.navigator&&R.default.navigator.userAgent||"";if(/Android/.test(M)||!/Chrome|Mac OS X 10.5/.test(M))return!0}return!1},A.prototype.enterFullScreen=function(){var M=this.el_;M.paused&&M.networkState<=M.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){M.pause(),M.webkitEnterFullScreen()},0)):M.webkitEnterFullScreen()},A.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},A.prototype.src=function(M){if(M===void 0)return this.el_.src;this.setSrc(M)},A.prototype.reset=function(){A.resetMediaElement(this.el_)},A.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},A.prototype.setControls=function(M){this.el_.controls=!!M},A.prototype.addTextTrack=function(M,V,G){return this.featuresNativeTextTracks?this.el_.addTextTrack(M,V,G):S.prototype.addTextTrack.call(this,M,V,G)},A.prototype.createRemoteTextTrack=function(M){if(!this.featuresNativeTextTracks)return S.prototype.createRemoteTextTrack.call(this,M);var V=D.default.createElement("track");return M.kind&&(V.kind=M.kind),M.label&&(V.label=M.label),(M.language||M.srclang)&&(V.srclang=M.language||M.srclang),M.default&&(V.default=M.default),M.id&&(V.id=M.id),M.src&&(V.src=M.src),V},A.prototype.addRemoteTextTrack=function(M,V){var G=S.prototype.addRemoteTextTrack.call(this,M,V);return this.featuresNativeTextTracks&&this.el().appendChild(G),G},A.prototype.removeRemoteTextTrack=function(M){if(S.prototype.removeRemoteTextTrack.call(this,M),this.featuresNativeTextTracks)for(var V=this.$$("track"),G=V.length;G--;)M!==V[G]&&M!==V[G].track||this.el().removeChild(V[G])},A}(i.default);if(e.isReal()){x.TEST_VID=D.default.createElement("video");var X=D.default.createElement("track");X.kind="captions",X.srclang="en",X.label="English",x.TEST_VID.appendChild(X)}x.isSupported=function(){try{x.TEST_VID.volume=.5}catch(S){return!1}return!(!x.TEST_VID||!x.TEST_VID.canPlayType)},x.canControlVolume=function(){try{var S=x.TEST_VID.volume;return x.TEST_VID.volume=S/2+.1,S!==x.TEST_VID.volume}catch(A){return!1}},x.canControlPlaybackRate=function(){if(c.IS_ANDROID&&c.IS_CHROME)return!1;try{var S=x.TEST_VID.playbackRate;return x.TEST_VID.playbackRate=S/2+.1,S!==x.TEST_VID.playbackRate}catch(A){return!1}},x.supportsNativeTextTracks=function(){return c.IS_ANY_SAFARI},x.supportsNativeVideoTracks=function(){return!(!x.TEST_VID||!x.TEST_VID.videoTracks)},x.supportsNativeAudioTracks=function(){return!(!x.TEST_VID||!x.TEST_VID.audioTracks)},x.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],x.prototype.featuresVolumeControl=x.canControlVolume(),x.prototype.featuresPlaybackRate=x.canControlPlaybackRate(),x.prototype.movingMediaElementInDOM=!c.IS_IOS,x.prototype.featuresFullscreenResize=!0,x.prototype.featuresProgressEvents=!0,x.prototype.featuresTimeupdateEvents=!0,x.prototype.featuresNativeTextTracks=x.supportsNativeTextTracks(),x.prototype.featuresNativeVideoTracks=x.supportsNativeVideoTracks(),x.prototype.featuresNativeAudioTracks=x.supportsNativeAudioTracks();var $=x.TEST_VID&&x.TEST_VID.constructor.prototype.canPlayType,z=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,H=/^video\/mp4/i;x.patchCanPlayType=function(){c.ANDROID_VERSION>=4&&!c.IS_FIREFOX?x.TEST_VID.constructor.prototype.canPlayType=function(S){return S&&z.test(S)?"maybe":$.call(this,S)}:c.IS_OLD_ANDROID&&(x.TEST_VID.constructor.prototype.canPlayType=function(S){return S&&H.test(S)?"maybe":$.call(this,S)})},x.unpatchCanPlayType=function(){var S=x.TEST_VID.constructor.prototype.canPlayType;return x.TEST_VID.constructor.prototype.canPlayType=$,S},x.patchCanPlayType(),x.disposeMediaElement=function(S){if(S){for(S.parentNode&&S.parentNode.removeChild(S);S.hasChildNodes();)S.removeChild(S.firstChild);S.removeAttribute("src"),typeof S.load=="function"&&function(){try{S.load()}catch(A){}}()}},x.resetMediaElement=function(S){if(S){for(var A=S.querySelectorAll("source"),M=A.length;M--;)S.removeChild(A[M]);S.removeAttribute("src"),typeof S.load=="function"&&function(){try{S.load()}catch(V){}}()}},["paused","currentTime","buffered","volume","muted","poster","preload","autoplay","controls","loop","error","seeking","seekable","ended","defaultMuted","playbackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(S){x.prototype[S]=function(){return this.el_[S]}}),["volume","muted","src","poster","preload","autoplay","loop","playbackRate"].forEach(function(S){x.prototype["set"+(0,q.default)(S)]=function(A){this.el_[S]=A}}),["pause","load"].forEach(function(S){x.prototype[S]=function(){return this.el_[S]()}}),i.default.withSourceHandlers(x),x.nativeSourceHandler={},x.nativeSourceHandler.canPlayType=function(S){try{return x.TEST_VID.canPlayType(S)}catch(A){return""}},x.nativeSourceHandler.canHandleSource=function(S,A){if(S.type)return x.nativeSourceHandler.canPlayType(S.type);if(S.src){var M=r.getFileExtension(S.src);return x.nativeSourceHandler.canPlayType("video/"+M)}return""},x.nativeSourceHandler.handleSource=function(S,A,M){A.setSrc(S.src)},x.nativeSourceHandler.dispose=function(){},x.registerSourceHandler(x.nativeSourceHandler),n.default.registerComponent("Html5",x),i.default.registerTech("Html5",x),h.default=x},{5:5,62:62,78:78,81:81,83:83,86:86,87:87,88:88,91:91,92:92,94:94,95:95,98:98}],61:[function(s,U,h){"use strict";function w(u){return u&&u.__esModule?u:{default:u}}function _(u,e){if(!(u instanceof e))throw new TypeError("Cannot call a class as a function")}function m(u,e){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||typeof e!="object"&&typeof e!="function"?u:e}function E(u,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);u.prototype=Object.create(e&&e.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(u,e):u.__proto__=e)}h.__esModule=!0;var T=s(5),C=w(T),b=s(62),f=w(b),i=s(91),p=w(i),n=function(u){function e(t,r,l){_(this,e);var a=m(this,u.call(this,t,r,l));if(r.playerOptions.sources&&r.playerOptions.sources.length!==0)t.src(r.playerOptions.sources);else for(var v=0,d=r.playerOptions.techOrder;v4&&arguments[4]!==void 0?arguments[4]:{},G=H.textTracks();V.kind=S,A&&(V.label=A),M&&(V.language=M),V.tech=H;var et=new l.default(V);return G.addTrack_(et),et}h.__esModule=!0;var b=s(5),f=_(b),i=s(66),p=_(i),n=s(65),u=_(n),e=s(87),t=_(e),r=s(72),l=_(r),a=s(70),v=_(a),d=s(76),y=_(d),g=s(63),o=_(g),c=s(83),j=w(c),D=s(86),B=_(D),R=s(90),L=s(79),O=s(46),P=_(O),N=s(95),q=_(N),x=s(94),X=_(x),$=s(88),z=function(H){function S(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};m(this,S),A.reportTouchActivity=!1;var V=E(this,H.call(this,null,A,M));return V.hasStarted_=!1,V.on("playing",function(){this.hasStarted_=!0}),V.on("loadstart",function(){this.hasStarted_=!1}),V.textTracks_=A.textTracks,V.videoTracks_=A.videoTracks,V.audioTracks_=A.audioTracks,V.featuresProgressEvents||V.manualProgressOn(),V.featuresTimeupdateEvents||V.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(G){A["native"+G+"Tracks"]===!1&&(V["featuresNative"+G+"Tracks"]=!1)}),A.nativeCaptions===!1&&(V.featuresNativeTextTracks=!1),V.featuresNativeTextTracks||V.emulateTextTracks(),V.autoRemoteTextTracks_=new v.default,V.initTextTrackListeners(),V.initTrackListeners(),A.nativeControlsForTouch||V.emitTapEvents(),V.constructor&&(V.name_=V.constructor.name||"Unknown Tech"),V}return T(S,H),S.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},S.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},S.prototype.trackProgress=function(A){this.stopTrackingProgress(),this.progressInterval=this.setInterval(j.bind(this,function(){var M=this.bufferedPercent();this.bufferedPercent_!==M&&this.trigger("progress"),this.bufferedPercent_=M,M===1&&this.stopTrackingProgress()}),500)},S.prototype.onDurationChange=function(A){this.duration_=this.duration()},S.prototype.buffered=function(){return(0,R.createTimeRange)(0,0)},S.prototype.bufferedPercent=function(){return(0,L.bufferedPercent)(this.buffered(),this.duration_)},S.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},S.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},S.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},S.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},S.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},S.prototype.dispose=function(){this.clearTracks(["audio","video","text"]),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),H.prototype.dispose.call(this)},S.prototype.clearTracks=function(A){var M=this;A=[].concat(A),A.forEach(function(V){for(var G=M[V+"Tracks"]()||[],et=G.length;et--;){var nt=G[et];V==="text"&&M.removeRemoteTextTrack(nt),G.removeTrack_(nt)}})},S.prototype.cleanupAutoTextTracks=function(){for(var A=this.autoRemoteTextTracks_||[],M=A.length;M--;){var V=A[M];this.removeRemoteTextTrack(V)}},S.prototype.reset=function(){},S.prototype.error=function(A){return A!==void 0&&(this.error_=new P.default(A),this.trigger("error")),this.error_},S.prototype.played=function(){return this.hasStarted_?(0,R.createTimeRange)(0,0):(0,R.createTimeRange)()},S.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},S.prototype.initTextTrackListeners=function(){var A=j.bind(this,function(){this.trigger("texttrackchange")}),M=this.textTracks();M&&(M.addEventListener("removetrack",A),M.addEventListener("addtrack",A),this.on("dispose",j.bind(this,function(){M.removeEventListener("removetrack",A),M.removeEventListener("addtrack",A)})))},S.prototype.initTrackListeners=function(){var A=this;["video","audio"].forEach(function(M){var V=function(){A.trigger(M+"trackchange")},G=A[M+"Tracks"]();G.addEventListener("removetrack",V),G.addEventListener("addtrack",V),A.on("dispose",function(){G.removeEventListener("removetrack",V),G.removeEventListener("addtrack",V)})})},S.prototype.addWebVttScript_=function(){var A=this;if(!q.default.WebVTT)if(X.default.body.contains(this.el())){var M=s(105);if(!this.options_["vtt.js"]&&(0,$.isPlain)(M)&&Object.keys(M).length>0)return void this.trigger("vttjsloaded");var V=X.default.createElement("script");V.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.3/vtt.min.js",V.onload=function(){A.trigger("vttjsloaded")},V.onerror=function(){A.trigger("vttjserror")},this.on("dispose",function(){V.onload=null,V.onerror=null}),q.default.WebVTT=!0,this.el().parentNode.appendChild(V)}else this.ready(this.addWebVttScript_)},S.prototype.emulateTextTracks=function(){var A=this,M=this.textTracks();if(M){var V=this.remoteTextTracks(),G=function(st){return M.addTrack_(st.track)},et=function(st){return M.removeTrack_(st.track)};V.on("addtrack",G),V.on("removetrack",et),this.addWebVttScript_();var nt=function(){return A.trigger("texttrackchange")},ot=function(){nt();for(var st=0;st0&&arguments[0]!==void 0?arguments[0]:{},M=arguments[1],V=this.createRemoteTextTrack(A);return M!==!0&&M!==!1&&(B.default.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),M=!0),this.remoteTextTrackEls().addTrackElement_(V),this.remoteTextTracks().addTrack_(V.track),M!==!0&&this.autoRemoteTextTracks_.addTrack_(V.track),V},S.prototype.removeRemoteTextTrack=function(A){var M=this.remoteTextTrackEls().getTrackElementByTrack_(A);this.remoteTextTrackEls().removeTrackElement_(M),this.remoteTextTracks().removeTrack_(A),this.autoRemoteTextTracks_.removeTrack_(A)},S.prototype.setPoster=function(){},S.prototype.canPlayType=function(){return""},S.isTech=function(A){return A.prototype instanceof S||A instanceof S||A===S},S.registerTech=function(A,M){if(S.techs_||(S.techs_={}),!S.isTech(M))throw new Error("Tech "+A+" must be a Tech");return S.techs_[A]=M,M},S.getTech=function(A){return S.techs_&&S.techs_[A]?S.techs_[A]:q.default&&q.default.videojs&&q.default.videojs[A]?(B.default.warn("The "+A+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),q.default.videojs[A]):void 0},S}(f.default);z.prototype.textTracks_,z.prototype.audioTracks_,z.prototype.videoTracks_,z.prototype.featuresVolumeControl=!0,z.prototype.featuresFullscreenResize=!1,z.prototype.featuresPlaybackRate=!1,z.prototype.featuresProgressEvents=!1,z.prototype.featuresTimeupdateEvents=!1,z.prototype.featuresNativeTextTracks=!1,z.withSourceHandlers=function(H){H.registerSourceHandler=function(S,A){var M=H.sourceHandlers;M||(M=H.sourceHandlers=[]),A===void 0&&(A=M.length),M.splice(A,0,S)},H.canPlayType=function(S){for(var A=H.sourceHandlers||[],M=void 0,V=0;V0&&arguments[0]!==void 0?arguments[0]:[];m(this,r);for(var d=void 0,y=v.length-1;y>=0;y--)if(v[y].enabled){u(v,v[y]);break}if(i.IS_IE8){d=n.default.createElement("custom");for(var g in b.default.prototype)g!=="constructor"&&(d[g]=b.default.prototype[g]);for(var o in r.prototype)o!=="constructor"&&(d[o]=r.prototype[o])}return d=l=E(this,t.call(this,v,d)),d.changing_=!1,a=d,E(l,a)}return T(r,t),r.prototype.addTrack_=function(l){var a=this;l.enabled&&u(this,l),t.prototype.addTrack_.call(this,l),l.addEventListener&&l.addEventListener("enabledchange",function(){a.changing_||(a.changing_=!0,u(a,l),a.changing_=!1,a.trigger("change"))})},r.prototype.addTrack=function(l){this.addTrack_(l)},r.prototype.removeTrack=function(l){t.prototype.removeTrack_.call(this,l)},r}(b.default);h.default=e},{74:74,78:78,94:94}],64:[function(s,U,h){"use strict";function w(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(r[l]=t[l]);return r.default=t,r}function _(t){return t&&t.__esModule?t:{default:t}}function m(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function E(t,r){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||typeof r!="object"&&typeof r!="function"?t:r}function T(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r)}h.__esModule=!0;var C=s(73),b=s(75),f=_(b),i=s(87),p=_(i),n=s(78),u=w(n),e=function(t){function r(){var l,a,v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};m(this,r);var d=(0,p.default)(v,{kind:C.AudioTrackKind[v.kind]||""}),y=l=E(this,t.call(this,d)),g=!1;if(u.IS_IE8)for(var o in r.prototype)o!=="constructor"&&(y[o]=r.prototype[o]);return Object.defineProperty(y,"enabled",{get:function(){return g},set:function(c){typeof c=="boolean"&&c!==g&&(g=c,this.trigger("enabledchange"))}}),d.enabled&&(y.enabled=d.enabled),y.loaded_=!0,a=y,E(l,a)}return T(r,t),r}(f.default);h.default=e},{73:73,75:75,78:78,87:87}],65:[function(s,U,h){"use strict";function w(i){return i&&i.__esModule?i:{default:i}}function _(i){if(i&&i.__esModule)return i;var p={};if(i!=null)for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(p[n]=i[n]);return p.default=i,p}function m(i,p){if(!(i instanceof p))throw new TypeError("Cannot call a class as a function")}h.__esModule=!0;var E=s(78),T=_(E),C=s(94),b=w(C),f=function(){function i(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];m(this,i);var n=this;if(T.IS_IE8){n=b.default.createElement("custom");for(var u in i.prototype)u!=="constructor"&&(n[u]=i.prototype[u])}n.trackElements_=[],Object.defineProperty(n,"length",{get:function(){return this.trackElements_.length}});for(var e=0,t=p.length;e0&&arguments[0]!==void 0?arguments[0]:{};m(this,l);var v=E(this,r.call(this)),d=void 0,y=v;if(b.IS_IE8){y=i.default.createElement("custom");for(var g in l.prototype)g!=="constructor"&&(y[g]=l.prototype[g])}var o=new e.default(a);if(y.kind=o.kind,y.src=o.src,y.srclang=o.language,y.label=o.label,y.default=o.default,Object.defineProperty(y,"readyState",{get:function(){return d}}),Object.defineProperty(y,"track",{get:function(){return o}}),d=0,o.addEventListener("loadeddata",function(){d=2,y.trigger({type:"load",target:y})}),b.IS_IE8){var c;return c=y,E(v,c)}return v}return T(l,r),l}(n.default);t.prototype.allowedEvents_={load:"load"},t.NONE=0,t.LOADING=1,t.LOADED=2,t.ERROR=3,h.default=t},{42:42,72:72,78:78,94:94}],67:[function(s,U,h){"use strict";function w(i){return i&&i.__esModule?i:{default:i}}function _(i){if(i&&i.__esModule)return i;var p={};if(i!=null)for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(p[n]=i[n]);return p.default=i,p}function m(i,p){if(!(i instanceof p))throw new TypeError("Cannot call a class as a function")}h.__esModule=!0;var E=s(78),T=_(E),C=s(94),b=w(C),f=function(){function i(p){m(this,i);var n=this;if(T.IS_IE8){n=b.default.createElement("custom");for(var u in i.prototype)u!=="constructor"&&(n[u]=i.prototype[u])}if(i.prototype.setCues_.call(n,p),Object.defineProperty(n,"length",{get:function(){return this.length_}}),T.IS_IE8)return n}return i.prototype.setCues_=function(p){var n=this.length||0,u=0,e=p.length;this.cues_=p,this.length_=p.length;var t=function(r){""+r in this||Object.defineProperty(this,""+r,{get:function(){return this.cues_[r]}})};if(n0&&arguments[0]!==void 0?arguments[0]:[];m(this,l);var y=void 0;if(n.IS_IE8){y=e.default.createElement("custom");for(var g in b.default.prototype)g!=="constructor"&&(y[g]=b.default.prototype[g]);for(var o in l.prototype)o!=="constructor"&&(y[o]=l.prototype[o])}return y=a=E(this,r.call(this,d,y)),v=y,E(a,v)}return T(l,r),l.prototype.addTrack_=function(a){r.prototype.addTrack_.call(this,a),a.addEventListener("modechange",i.bind(this,function(){this.trigger("change")}))},l}(b.default);h.default=t},{74:74,78:78,83:83,94:94}],71:[function(s,U,h){"use strict";function w(x){if(x&&x.__esModule)return x;var X={};if(x!=null)for(var $ in x)Object.prototype.hasOwnProperty.call(x,$)&&(X[$]=x[$]);return X.default=x,X}function _(x){return x&&x.__esModule?x:{default:x}}function m(x,X){if(!(x instanceof X))throw new TypeError("Cannot call a class as a function")}function E(x,X){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!X||typeof X!="object"&&typeof X!="function"?x:X}function T(x,X){if(typeof X!="function"&&X!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof X);x.prototype=Object.create(X&&X.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),X&&(Object.setPrototypeOf?Object.setPrototypeOf(x,X):x.__proto__=X)}function C(x,X){if(X&&(x=X(x)),x&&x!=="none")return x}function b(x,X){return C(x.options[x.options.selectedIndex].value,X)}function f(x,X,$){if(X){for(var z=0;z select",id:"captions-background-color-%s",label:"Color",options:[y,B,D,c,g,R,j,o]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[L,O,P]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[B,y,D,c,g,R,j,o]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(x){return x==="1.00"?null:Number(x)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[L,O]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[P,O,L]}};N.windowColor.options=N.backgroundColor.options;var q=function(x){function X($,z){m(this,X);var H=E(this,x.call(this,$,z));return H.setDefaults(),H.hide(),H.updateDisplay=r.bind(H,H.updateDisplay),z.persistTextTrackSettings===void 0&&(H.options_.persistTextTrackSettings=H.options_.playerOptions.persistTextTrackSettings),H.on(H.$(".vjs-done-button"),"click",function(){H.saveSettings(),H.hide()}),H.on(H.$(".vjs-default-button"),"click",function(){H.setDefaults(),H.updateDisplay()}),a.each(N,function(S){H.on(H.$(S.selector),"change",H.updateDisplay)}),H.options_.persistTextTrackSettings&&H.restoreSettings(),H}return T(X,x),X.prototype.createElSelect_=function($){var z=this,H=N[$],S=H.id.replace("%s",this.id_);return[(0,e.createEl)("label",{className:"vjs-label",textContent:H.label},{for:S}),(0,e.createEl)("select",{id:S},void 0,H.options.map(function(A){return(0,e.createEl)("option",{textContent:z.localize(A[1]),value:A[0]})}))]},X.prototype.createElFgColor_=function(){var $=(0,e.createEl)("legend",{textContent:this.localize("Text")}),z=this.createElSelect_("color"),H=(0,e.createEl)("span",{className:"vjs-text-opacity vjs-opacity"},void 0,this.createElSelect_("textOpacity"));return(0,e.createEl)("fieldset",{className:"vjs-fg-color vjs-tracksetting"},void 0,[$].concat(z,H))},X.prototype.createElBgColor_=function(){var $=(0,e.createEl)("legend",{textContent:this.localize("Background")}),z=this.createElSelect_("backgroundColor"),H=(0,e.createEl)("span",{className:"vjs-bg-opacity vjs-opacity"},void 0,this.createElSelect_("backgroundOpacity"));return(0,e.createEl)("fieldset",{className:"vjs-bg-color vjs-tracksetting"},void 0,[$].concat(z,H))},X.prototype.createElWinColor_=function(){var $=(0,e.createEl)("legend",{textContent:this.localize("Window")}),z=this.createElSelect_("windowColor"),H=(0,e.createEl)("span",{className:"vjs-window-opacity vjs-opacity"},void 0,this.createElSelect_("windowOpacity"));return(0,e.createEl)("fieldset",{className:"vjs-window-color vjs-tracksetting"},void 0,[$].concat(z,H))},X.prototype.createElColors_=function(){return(0,e.createEl)("div",{className:"vjs-tracksettings-colors"},void 0,[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()])},X.prototype.createElFont_=function(){var $=(0,e.createEl)("div",{className:"vjs-font-percent vjs-tracksetting"},void 0,this.createElSelect_("fontPercent")),z=(0,e.createEl)("div",{className:"vjs-edge-style vjs-tracksetting"},void 0,this.createElSelect_("edgeStyle")),H=(0,e.createEl)("div",{className:"vjs-font-family vjs-tracksetting"},void 0,this.createElSelect_("fontFamily"));return(0,e.createEl)("div",{className:"vjs-tracksettings-font"},void 0,[$,z,H])},X.prototype.createElControls_=function(){var $=(0,e.createEl)("button",{className:"vjs-default-button",textContent:this.localize("Defaults")}),z=(0,e.createEl)("button",{className:"vjs-done-button",textContent:"Done"});return(0,e.createEl)("div",{className:"vjs-tracksettings-controls"},void 0,[$,z])},X.prototype.createEl=function(){var $=(0,e.createEl)("div",{className:"vjs-tracksettings"},void 0,[this.createElColors_(),this.createElFont_(),this.createElControls_()]),z=(0,e.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.id_,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"}),H=(0,e.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.id_,textContent:"Beginning of dialog window. Escape will cancel and close the window."}),S=(0,e.createEl)("div",void 0,{role:"document"},[z,H,$]);return(0,e.createEl)("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":z.id,"aria-describedby":H.id},S)},X.prototype.getValues=function(){var $=this;return a.reduce(N,function(z,H,S){var A=b($.$(H.selector),H.parser);return A!==void 0&&(z[S]=A),z},{})},X.prototype.setValues=function($){var z=this;a.each(N,function(H,S){f(z.$(H.selector),$[S],H.parser)})},X.prototype.setDefaults=function(){var $=this;a.each(N,function(z){var H=z.hasOwnProperty("default")?z.default:0;$.$(z.selector).selectedIndex=H})},X.prototype.restoreSettings=function(){var $=void 0;try{$=JSON.parse(p.default.localStorage.getItem("vjs-text-track-settings"))}catch(z){d.default.warn(z)}$&&this.setValues($)},X.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var $=this.getValues();try{Object.keys($).length?p.default.localStorage.setItem("vjs-text-track-settings",JSON.stringify($)):p.default.localStorage.removeItem("vjs-text-track-settings")}catch(z){d.default.warn(z)}}},X.prototype.updateDisplay=function(){var $=this.player_.getChild("textTrackDisplay");$&&$.updateDisplay()},X}(u.default);u.default.registerComponent("TextTrackSettings",q),h.default=q},{5:5,81:81,83:83,86:86,88:88,95:95}],72:[function(s,U,h){"use strict";function w(R){if(R&&R.__esModule)return R;var L={};if(R!=null)for(var O in R)Object.prototype.hasOwnProperty.call(R,O)&&(L[O]=R[O]);return L.default=R,L}function _(R){return R&&R.__esModule?R:{default:R}}function m(R,L){if(!(R instanceof L))throw new TypeError("Cannot call a class as a function")}function E(R,L){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!L||typeof L!="object"&&typeof L!="function"?R:L}function T(R,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);R.prototype=Object.create(L&&L.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(R,L):R.__proto__=L)}h.__esModule=!0;var C=s(67),b=_(C),f=s(83),i=w(f),p=s(73),n=s(86),u=_(n),e=s(95),t=_(e),r=s(75),l=_(r),a=s(92),v=s(99),d=_(v),y=s(87),g=_(y),o=s(78),c=w(o),j=function(R,L){var O=new t.default.WebVTT.Parser(t.default,t.default.vttjs,t.default.WebVTT.StringDecoder()),P=[];O.oncue=function(N){L.addCue(N)},O.onparsingerror=function(N){P.push(N)},O.onflush=function(){L.trigger({type:"loadeddata",target:L})},O.parse(R),P.length>0&&(t.default.console&&t.default.console.groupCollapsed&&t.default.console.groupCollapsed("Text Track parsing errors for "+L.src),P.forEach(function(N){return u.default.error(N)}),t.default.console&&t.default.console.groupEnd&&t.default.console.groupEnd()),O.flush()},D=function(R,L){var O={uri:R},P=(0,a.isCrossOrigin)(R);P&&(O.cors=P),(0,d.default)(O,i.bind(this,function(N,q,x){if(N)return u.default.error(N,q);if(L.loaded_=!0,typeof t.default.WebVTT!="function"){if(L.tech_){var X=function(){return j(x,L)};L.tech_.on("vttjsloaded",X),L.tech_.on("vttjserror",function(){u.default.error("vttjs failed to load, stopping trying to process "+L.src),L.tech_.off("vttjsloaded",X)})}}else j(x,L)}))},B=function(R){function L(){var O,P,N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(m(this,L),!N.tech)throw new Error("A tech was not provided.");var q=(0,g.default)(N,{kind:p.TextTrackKind[N.kind]||"subtitles",language:N.language||N.srclang||""}),x=p.TextTrackMode[q.mode]||"disabled",X=q.default;q.kind!=="metadata"&&q.kind!=="chapters"||(x="hidden");var $=O=E(this,R.call(this,q));if($.tech_=q.tech,c.IS_IE8)for(var z in L.prototype)z!=="constructor"&&($[z]=L.prototype[z]);$.cues_=[],$.activeCues_=[];var H=new b.default($.cues_),S=new b.default($.activeCues_),A=!1,M=i.bind($,function(){this.activeCues,A&&(this.trigger("cuechange"),A=!1)});return x!=="disabled"&&$.tech_.ready(function(){$.tech_.on("timeupdate",M)},!0),Object.defineProperty($,"default",{get:function(){return X},set:function(){}}),Object.defineProperty($,"mode",{get:function(){return x},set:function(V){var G=this;p.TextTrackMode[V]&&(x=V,x==="showing"&&this.tech_.ready(function(){G.tech_.on("timeupdate",M)},!0),this.trigger("modechange"))}}),Object.defineProperty($,"cues",{get:function(){return this.loaded_?H:null},set:function(){}}),Object.defineProperty($,"activeCues",{get:function(){if(!this.loaded_)return null;if(this.cues.length===0)return S;for(var V=this.tech_.currentTime(),G=[],et=0,nt=this.cues.length;et=V||ot.startTime===ot.endTime&&ot.startTime<=V&&ot.startTime+.5>=V)&&G.push(ot)}if(A=!1,G.length!==this.activeCues_.length)A=!0;else for(var st=0;st0&&arguments[0]!==void 0?arguments[0]:[],v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;m(this,r);var d=E(this,t.call(this));if(!v&&(v=d,i.IS_IE8)){v=n.default.createElement("custom");for(var y in r.prototype)y!=="constructor"&&(v[y]=r.prototype[y])}v.tracks_=[],Object.defineProperty(v,"length",{get:function(){return this.tracks_.length}});for(var g=0;g0&&arguments[0]!==void 0?arguments[0]:{};m(this,l);var d=E(this,r.call(this)),y=d;if(b.IS_IE8){y=i.default.createElement("custom");for(var g in l.prototype)g!=="constructor"&&(y[g]=l.prototype[g])}var o={id:v.id||"vjs_track_"+n.newGUID(),kind:v.kind||"",label:v.label||"",language:v.language||""},c=function(D){Object.defineProperty(y,D,{get:function(){return o[D]},set:function(){}})};for(var j in o)c(j);return a=y,E(d,a)}return T(l,r),l}(e.default);h.default=t},{42:42,78:78,85:85,94:94}],76:[function(s,U,h){"use strict";function w(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(r[l]=t[l]);return r.default=t,r}function _(t){return t&&t.__esModule?t:{default:t}}function m(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function E(t,r){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||typeof r!="object"&&typeof r!="function"?t:r}function T(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r)}h.__esModule=!0;var C=s(74),b=_(C),f=s(78),i=w(f),p=s(94),n=_(p),u=function(t,r){for(var l=0;l0&&arguments[0]!==void 0?arguments[0]:[];m(this,r);for(var d=void 0,y=v.length-1;y>=0;y--)if(v[y].selected){u(v,v[y]);break}if(i.IS_IE8){d=n.default.createElement("custom");for(var g in b.default.prototype)g!=="constructor"&&(d[g]=b.default.prototype[g]);for(var o in r.prototype)o!=="constructor"&&(d[o]=r.prototype[o])}return d=l=E(this,t.call(this,v,d)),d.changing_=!1,Object.defineProperty(d,"selectedIndex",{get:function(){for(var c=0;c0&&arguments[0]!==void 0?arguments[0]:{};m(this,r);var d=(0,p.default)(v,{kind:C.VideoTrackKind[v.kind]||""}),y=l=E(this,t.call(this,d)),g=!1;if(u.IS_IE8)for(var o in r.prototype)o!=="constructor"&&(y[o]=r.prototype[o]);return Object.defineProperty(y,"selected",{get:function(){return g},set:function(c){typeof c=="boolean"&&c!==g&&(g=c,this.trigger("selectedchange"))}}),d.selected&&(y.selected=d.selected),a=y,E(l,a)}return T(r,t),r}(f.default);h.default=e},{73:73,75:75,78:78,87:87}],78:[function(s,U,h){"use strict";function w(d){return d&&d.__esModule?d:{default:d}}function _(d){if(d&&d.__esModule)return d;var y={};if(d!=null)for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(y[g]=d[g]);return y.default=d,y}h.__esModule=!0,h.BACKGROUND_SIZE_SUPPORTED=h.TOUCH_ENABLED=h.IS_ANY_SAFARI=h.IS_SAFARI=h.IE_VERSION=h.IS_IE8=h.IS_CHROME=h.IS_EDGE=h.IS_FIREFOX=h.IS_NATIVE_ANDROID=h.IS_OLD_ANDROID=h.ANDROID_VERSION=h.IS_ANDROID=h.IOS_VERSION=h.IS_IOS=h.IS_IPOD=h.IS_IPHONE=h.IS_IPAD=void 0;var m=s(81),E=_(m),T=s(95),C=w(T),b=C.default.navigator&&C.default.navigator.userAgent||"",f=/AppleWebKit\/([\d.]+)/i.exec(b),i=f?parseFloat(f.pop()):null,p=h.IS_IPAD=/iPad/i.test(b),n=h.IS_IPHONE=/iPhone/i.test(b)&&!p,u=h.IS_IPOD=/iPod/i.test(b),e=h.IS_IOS=n||p||u,t=(h.IOS_VERSION=function(){var d=b.match(/OS (\d+)_/i);return d&&d[1]?d[1]:null}(),h.IS_ANDROID=/Android/i.test(b)),r=h.ANDROID_VERSION=function(){var d=b.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!d)return null;var y=d[1]&&parseFloat(d[1]),g=d[2]&&parseFloat(d[2]);return y&&g?parseFloat(d[1]+"."+d[2]):y||null}(),l=(h.IS_OLD_ANDROID=t&&/webkit/i.test(b)&&r<2.3,h.IS_NATIVE_ANDROID=t&&r<5&&i<537,h.IS_FIREFOX=/Firefox/i.test(b),h.IS_EDGE=/Edge/i.test(b)),a=h.IS_CHROME=!l&&/Chrome/i.test(b),v=(h.IS_IE8=/MSIE\s8\.0/.test(b),h.IE_VERSION=function(){var d=/MSIE\s(\d+)\.\d/.exec(b),y=d&&parseFloat(d[1]);return!y&&/Trident\/7.0/i.test(b)&&/rv:11.0/.test(b)&&(y=11),y}(),h.IS_SAFARI=/Safari/i.test(b)&&!a&&!t&&!l);h.IS_ANY_SAFARI=v||e,h.TOUCH_ENABLED=E.isReal()&&("ontouchstart"in C.default||C.default.DocumentTouch&&C.default.document instanceof C.default.DocumentTouch),h.BACKGROUND_SIZE_SUPPORTED=E.isReal()&&"backgroundSize"in C.default.document.createElement("video").style},{81:81,95:95}],79:[function(s,U,h){"use strict";function w(m,E){var T=0,C=void 0,b=void 0;if(!E)return 0;m&&m.length||(m=(0,_.createTimeRange)(0,0));for(var f=0;fE&&(b=E),T+=b-C;return T/E}h.__esModule=!0,h.bufferedPercent=w;var _=s(90)},{90:90}],80:[function(s,U,h){"use strict";function w(T){return T&&T.__esModule?T:{default:T}}function _(T,C){if(!T||!C)return"";if(typeof E.default.getComputedStyle=="function"){var b=E.default.getComputedStyle(T);return b?b[C]:""}return T.currentStyle[C]||""}h.__esModule=!0,h.default=_;var m=s(95),E=w(m)},{95:95}],81:[function(s,U,h){"use strict";function w(W){if(W&&W.__esModule)return W;var Y={};if(W!=null)for(var tt in W)Object.prototype.hasOwnProperty.call(W,tt)&&(Y[tt]=W[tt]);return Y.default=W,Y}function _(W){return W&&W.__esModule?W:{default:W}}function m(W,Y){return W.raw=Y,W}function E(W){return typeof W=="string"&&/\S/.test(W)}function T(W){if(/\s/.test(W))throw new Error("class has illegal whitespace characters")}function C(W){return new RegExp("(^|\\s)"+W+"($|\\s)")}function b(){return H.default===A.default.document&&typeof H.default.createElement!="undefined"}function f(W){return(0,st.isObject)(W)&&W.nodeType===1}function i(W){return function(Y,tt){if(!E(Y))return H.default[W](null);E(tt)&&(tt=H.default.querySelector(tt));var J=f(tt)?tt:H.default;return J[W]&&J[W](Y)}}function p(W){return W.indexOf("#")===0&&(W=W.slice(1)),H.default.getElementById(W)}function n(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},J=arguments[3],F=H.default.createElement(W);return Object.getOwnPropertyNames(Y).forEach(function(k){var I=Y[k];k.indexOf("aria-")!==-1||k==="role"||k==="type"?(et.default.warn((0,ot.default)($,k,I)),F.setAttribute(k,I)):k==="textContent"?u(F,I):F[k]=I}),Object.getOwnPropertyNames(tt).forEach(function(k){F.setAttribute(k,tt[k])}),J&&x(F,J),F}function u(W,Y){return typeof W.textContent=="undefined"?W.innerText=Y:W.textContent=Y,W}function e(W,Y){Y.firstChild?Y.insertBefore(W,Y.firstChild):Y.appendChild(W)}function t(W){var Y=W[pt];return Y||(Y=W[pt]=V.newGUID()),ut[Y]||(ut[Y]={}),ut[Y]}function r(W){var Y=W[pt];return!!Y&&!!Object.getOwnPropertyNames(ut[Y]).length}function l(W){var Y=W[pt];if(Y){delete ut[Y];try{delete W[pt]}catch(tt){W.removeAttribute?W.removeAttribute(pt):W[pt]=null}}}function a(W,Y){return T(Y),W.classList?W.classList.contains(Y):C(Y).test(W.className)}function v(W,Y){return W.classList?W.classList.add(Y):a(W,Y)||(W.className=(W.className+" "+Y).trim()),W}function d(W,Y){return W.classList?W.classList.remove(Y):(T(Y),W.className=W.className.split(/\s+/).filter(function(tt){return tt!==Y}).join(" ")),W}function y(W,Y,tt){var J=a(W,Y);if(typeof tt=="function"&&(tt=tt(W,Y)),typeof tt!="boolean"&&(tt=!J),tt!==J)return tt?v(W,Y):d(W,Y),W}function g(W,Y){Object.getOwnPropertyNames(Y).forEach(function(tt){var J=Y[tt];J==null||J===!1?W.removeAttribute(tt):W.setAttribute(tt,J===!0?"":J)})}function o(W){var Y={};if(W&&W.attributes&&W.attributes.length>0)for(var tt=W.attributes,J=tt.length-1;J>=0;J--){var F=tt[J].name,k=tt[J].value;typeof W[F]!="boolean"&&",autoplay,controls,loop,muted,default,".indexOf(","+F+",")===-1||(k=k!==null),Y[F]=k}return Y}function c(W,Y){return W.getAttribute(Y)}function j(W,Y,tt){W.setAttribute(Y,tt)}function D(W,Y){W.removeAttribute(Y)}function B(){H.default.body.focus(),H.default.onselectstart=function(){return!1}}function R(){H.default.onselectstart=function(){return!0}}function L(W){var Y=void 0;if(W.getBoundingClientRect&&W.parentNode&&(Y=W.getBoundingClientRect()),!Y)return{left:0,top:0};var tt=H.default.documentElement,J=H.default.body,F=tt.clientLeft||J.clientLeft||0,k=A.default.pageXOffset||J.scrollLeft,I=Y.left+k-F,K=tt.clientTop||J.clientTop||0,Z=A.default.pageYOffset||J.scrollTop,rt=Y.top+Z-K;return{left:Math.round(I),top:Math.round(rt)}}function O(W,Y){var tt={},J=L(W),F=W.offsetWidth,k=W.offsetHeight,I=J.top,K=J.left,Z=Y.pageY,rt=Y.pageX;return Y.changedTouches&&(rt=Y.changedTouches[0].pageX,Z=Y.changedTouches[0].pageY),tt.y=Math.max(0,Math.min(1,(I-Z+k)/k)),tt.x=Math.max(0,Math.min(1,(rt-K)/F)),tt}function P(W){return(0,st.isObject)(W)&&W.nodeType===3}function N(W){for(;W.firstChild;)W.removeChild(W.firstChild);return W}function q(W){return typeof W=="function"&&(W=W()),(Array.isArray(W)?W:[W]).map(function(Y){return typeof Y=="function"&&(Y=Y()),f(Y)||P(Y)?Y:typeof Y=="string"&&/\S/.test(Y)?H.default.createTextNode(Y):void 0}).filter(function(Y){return Y})}function x(W,Y){return q(Y).forEach(function(tt){return W.appendChild(tt)}),W}function X(W,Y){return x(N(W),Y)}h.__esModule=!0,h.$$=h.$=void 0;var $=m([`Setting attributes in the second argument of createEl() has been deprecated. Use the third argument instead. createEl(type, properties, attributes). Attempting to set `," to ","."],[`Setting attributes in the second argument of createEl() has been deprecated. Use the third argument instead. createEl(type, properties, attributes). Attempting to set `," to ","."]);h.isReal=b,h.isEl=f,h.getEl=p,h.createEl=n,h.textContent=u,h.insertElFirst=e,h.getElData=t,h.hasElData=r,h.removeElData=l,h.hasElClass=a,h.addElClass=v,h.removeElClass=d,h.toggleElClass=y,h.setElAttributes=g,h.getElAttributes=o,h.getAttribute=c,h.setAttribute=j,h.removeAttribute=D,h.blockTextSelection=B,h.unblockTextSelection=R,h.findElPosition=L,h.getPointerPosition=O,h.isTextNode=P,h.emptyEl=N,h.normalizeContent=q,h.appendContent=x,h.insertContent=X;var z=s(94),H=_(z),S=s(95),A=_(S),M=s(85),V=w(M),G=s(86),et=_(G),nt=s(98),ot=_(nt),st=s(88),ut={},pt="vdata"+new Date().getTime();h.$=i("querySelector"),h.$$=i("querySelectorAll")},{85:85,86:86,88:88,94:94,95:95,98:98}],82:[function(s,U,h){"use strict";function w(y){return y&&y.__esModule?y:{default:y}}function _(y){if(y&&y.__esModule)return y;var g={};if(y!=null)for(var o in y)Object.prototype.hasOwnProperty.call(y,o)&&(g[o]=y[o]);return g.default=y,g}function m(y,g){var o=n.getElData(y);o.handlers[g].length===0&&(delete o.handlers[g],y.removeEventListener?y.removeEventListener(g,o.dispatcher,!1):y.detachEvent&&y.detachEvent("on"+g,o.dispatcher)),Object.getOwnPropertyNames(o.handlers).length<=0&&(delete o.handlers,delete o.dispatcher,delete o.disabled),Object.getOwnPropertyNames(o).length===0&&n.removeElData(y)}function E(y,g,o,c){o.forEach(function(j){y(g,j,c)})}function T(y){function g(){return!0}function o(){return!1}if(!y||!y.isPropagationStopped){var c=y||a.default.event;y={};for(var j in c)j!=="layerX"&&j!=="layerY"&&j!=="keyLocation"&&j!=="webkitMovementX"&&j!=="webkitMovementY"&&(j==="returnValue"&&c.preventDefault||(y[j]=c[j]));if(y.target||(y.target=y.srcElement||d.default),y.relatedTarget||(y.relatedTarget=y.fromElement===y.target?y.toElement:y.fromElement),y.preventDefault=function(){c.preventDefault&&c.preventDefault(),y.returnValue=!1,c.returnValue=!1,y.defaultPrevented=!0},y.defaultPrevented=!1,y.stopPropagation=function(){c.stopPropagation&&c.stopPropagation(),y.cancelBubble=!0,c.cancelBubble=!0,y.isPropagationStopped=g},y.isPropagationStopped=o,y.stopImmediatePropagation=function(){c.stopImmediatePropagation&&c.stopImmediatePropagation(),y.isImmediatePropagationStopped=g,y.stopPropagation()},y.isImmediatePropagationStopped=o,y.clientX!==null&&y.clientX!==void 0){var D=d.default.documentElement,B=d.default.body;y.pageX=y.clientX+(D&&D.scrollLeft||B&&B.scrollLeft||0)-(D&&D.clientLeft||B&&B.clientLeft||0),y.pageY=y.clientY+(D&&D.scrollTop||B&&B.scrollTop||0)-(D&&D.clientTop||B&&B.clientTop||0)}y.which=y.charCode||y.keyCode,y.button!==null&&y.button!==void 0&&(y.button=1&y.button?0:4&y.button?1:2&y.button?2:0)}return y}function C(y,g,o){if(Array.isArray(g))return E(C,y,g,o);var c=n.getElData(y);c.handlers||(c.handlers={}),c.handlers[g]||(c.handlers[g]=[]),o.guid||(o.guid=e.newGUID()),c.handlers[g].push(o),c.dispatcher||(c.disabled=!1,c.dispatcher=function(j,D){if(!c.disabled){j=T(j);var B=c.handlers[j.type];if(B)for(var R=B.slice(0),L=0,O=R.length;L=m&&(_.apply(void 0,arguments),E=T)}}},{85:85}],84:[function(s,U,h){"use strict";function w(_){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_;_=_<0?0:_;var E=Math.floor(_%60),T=Math.floor(_/60%60),C=Math.floor(_/3600),b=Math.floor(m/60%60),f=Math.floor(m/3600);return(isNaN(_)||_===1/0)&&(C=T=E="-"),C=C>0||f>0?C+":":"",T=((C||b>=10)&&T<10?"0"+T:T)+":",E=E<10?"0"+E:E,C+T+E}h.__esModule=!0,h.default=w},{}],85:[function(s,U,h){"use strict";function w(){return _++}h.__esModule=!0,h.newGUID=w;var _=1},{}],86:[function(s,U,h){"use strict";function w(f){return f&&f.__esModule?f:{default:f}}h.__esModule=!0,h.logByType=void 0;var _=s(95),m=w(_),E=s(78),T=s(88),C=void 0,b=h.logByType=function(f,i){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!!E.IE_VERSION&&E.IE_VERSION<11;f!=="log"&&i.unshift(f.toUpperCase()+":"),C.history.push(i),i.unshift("VIDEOJS:");var n=m.default.console&&m.default.console[f];n&&(p&&(i=i.map(function(u){if((0,T.isObject)(u)||Array.isArray(u))try{return JSON.stringify(u)}catch(e){return String(u)}return String(u)}).join(" ")),n.apply?n[Array.isArray(i)?"apply":"call"](m.default.console,i):n(i))};C=function(){for(var f=arguments.length,i=Array(f),p=0;p2&&arguments[2]!==void 0?arguments[2]:0;return f(i).reduce(function(u,e){return p(u,i[e],e)},n)}function m(i){for(var p=arguments.length,n=Array(p>1?p-1:0),u=1;up)throw new Error("Failed to execute '"+f+"' on 'TimeRanges': The index provided ("+i+") is greater than or equal to the maximum bound ("+p+").")}function m(f,i,p,n){return n===void 0&&(b.default.warn("DEPRECATED: Function '"+f+"' on 'TimeRanges' called without an index argument."),n=0),_(f,n,p.length-1),p[n][i]}function E(f){return f===void 0||f.length===0?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:f.length,start:m.bind(null,"start",0,f),end:m.bind(null,"end",1,f)}}function T(f,i){return Array.isArray(f)?E(f):f===void 0||i===void 0?E():E([[f,i]])}h.__esModule=!0,h.createTimeRange=void 0,h.createTimeRanges=T;var C=s(86),b=w(C);h.createTimeRange=T},{86:86}],91:[function(s,U,h){"use strict";function w(_){return typeof _!="string"?_:_.charAt(0).toUpperCase()+_.slice(1)}h.__esModule=!0,h.default=w},{}],92:[function(s,U,h){"use strict";function w(b){return b&&b.__esModule?b:{default:b}}h.__esModule=!0,h.isCrossOrigin=h.getFileExtension=h.getAbsoluteURL=h.parseUrl=void 0;var _=s(94),m=w(_),E=s(95),T=w(E),C=h.parseUrl=function(b){var f=["protocol","hostname","port","pathname","search","hash","host"],i=m.default.createElement("a");i.href=b;var p=i.host===""&&i.protocol!=="file:",n=void 0;p&&(n=m.default.createElement("div"),n.innerHTML='',i=n.firstChild,n.setAttribute("style","display:none; position:absolute;"),m.default.body.appendChild(n));for(var u={},e=0;ex',b=f.firstChild.href}return b},h.getFileExtension=function(b){if(typeof b=="string"){var f=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,i=f.exec(b);if(i)return i.pop().toLowerCase()}return""},h.isCrossOrigin=function(b){var f=T.default.location,i=C(b);return(i.protocol===":"?f.protocol:i.protocol)+i.host!==f.protocol+f.host}},{94:94,95:95}],93:[function(s,U,h){"use strict";function w(I){if(I&&I.__esModule)return I;var K={};if(I!=null)for(var Z in I)Object.prototype.hasOwnProperty.call(I,Z)&&(K[Z]=I[Z]);return K.default=I,K}function _(I){return I&&I.__esModule?I:{default:I}}function m(I,K,Z){var rt=void 0;if(typeof I=="string"){if(I.indexOf("#")===0&&(I=I.slice(1)),m.getPlayers()[I])return K&&H.default.warn('Player "'+I+'" is already initialised. Options will not be applied.'),Z&&m.getPlayers()[I].ready(Z),m.getPlayers()[I];rt=A.getEl(I)}else rt=I;if(!rt||!rt.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");if(rt.player||y.default.players[rt.playerId])return rt.player||y.default.players[rt.playerId];K=K||{},m.hooks("beforesetup").forEach(function(lt){var it=lt(rt,(0,j.default)(K));if(!(0,nt.isObject)(it)||Array.isArray(it))return void H.default.error("please return an object in beforesetup hooks");K=(0,j.default)(K,it)});var Q=t.default.getComponent("Player"),ct=new Q(rt,K,Z);return m.hooks("setup").forEach(function(lt){return lt(ct)}),ct}h.__esModule=!0;var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},T=s(95),C=_(T),b=s(94),f=_(b),i=s(56),p=w(i),n=s(89),u=w(n),e=s(5),t=_(e),r=s(42),l=_(r),a=s(82),v=w(a),d=s(51),y=_(d),g=s(52),o=_(g),c=s(87),j=_(c),D=s(83),B=w(D),R=s(72),L=_(R),O=s(64),P=_(O),N=s(77),q=_(N),x=s(90),X=s(84),$=_(X),z=s(86),H=_(z),S=s(81),A=w(S),M=s(78),V=w(M),G=s(92),et=w(G),nt=s(88),ot=s(80),st=_(ot),ut=s(43),pt=_(ut),W=s(99),Y=_(W),tt=s(62),J=_(tt);if(typeof HTMLVideoElement=="undefined"&&A.isReal()&&(f.default.createElement("video"),f.default.createElement("audio"),f.default.createElement("track")),m.hooks_={},m.hooks=function(I,K){return m.hooks_[I]=m.hooks_[I]||[],K&&(m.hooks_[I]=m.hooks_[I].concat(K)),m.hooks_[I]},m.hook=function(I,K){m.hooks(I,K)},m.removeHook=function(I,K){var Z=m.hooks(I).indexOf(K);return!(Z<=-1)&&(m.hooks_[I]=m.hooks_[I].slice(),m.hooks_[I].splice(Z,1),!0)},C.default.VIDEOJS_NO_DYNAMIC_STYLE!==!0&&A.isReal()){var F=A.$(".vjs-styles-defaults");if(!F){F=u.createStyleElement("vjs-styles-defaults");var k=A.$("head");k&&k.insertBefore(F,k.firstChild),u.setTextContent(F,` .video-js { width: 300px; height: 150px; } .vjs-fluid { } `)}}p.autoSetupTimeout(1,m),m.VERSION="5.19.2",m.options=y.default.prototype.options_,m.getPlayers=function(){return y.default.players},m.players=y.default.players,m.getComponent=t.default.getComponent,m.registerComponent=function(I,K){J.default.isTech(K)&&H.default.warn("The "+I+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),t.default.registerComponent.call(t.default,I,K)},m.getTech=J.default.getTech,m.registerTech=J.default.registerTech,m.browser=V,m.TOUCH_ENABLED=V.TOUCH_ENABLED,m.extend=pt.default,m.mergeOptions=j.default,m.bind=B.bind,m.plugin=o.default,m.addLanguage=function(I,K){var Z;return I=(""+I).toLowerCase(),m.options.languages=(0,j.default)(m.options.languages,(Z={},Z[I]=K,Z)),m.options.languages[I]},m.log=H.default,m.createTimeRange=m.createTimeRanges=x.createTimeRanges,m.formatTime=$.default,m.parseUrl=et.parseUrl,m.isCrossOrigin=et.isCrossOrigin,m.EventTarget=l.default,m.on=v.on,m.one=v.one,m.off=v.off,m.trigger=v.trigger,m.xhr=Y.default,m.TextTrack=L.default,m.AudioTrack=P.default,m.VideoTrack=q.default,m.isEl=A.isEl,m.isTextNode=A.isTextNode,m.createEl=A.createEl,m.hasClass=A.hasElClass,m.addClass=A.addElClass,m.removeClass=A.removeElClass,m.toggleClass=A.toggleElClass,m.setAttributes=A.setElAttributes,m.getAttributes=A.getElAttributes,m.emptyEl=A.emptyEl,m.appendContent=A.appendContent,m.insertContent=A.insertContent,m.computedStyle=st.default,typeof ft=="function"&&ft.amd?ft("videojs",[],function(){return m}):(h===void 0?"undefined":E(h))==="object"&&(U===void 0?"undefined":E(U))==="object"&&(U.exports=m),h.default=m},{42:42,43:43,5:5,51:51,52:52,56:56,62:62,64:64,72:72,77:77,78:78,80:80,81:81,82:82,83:83,84:84,86:86,87:87,88:88,89:89,90:90,92:92,94:94,95:95,99:99}],94:[function(s,U,h){(function(w){var _=w!==void 0?w:typeof window!="undefined"?window:{},m=s(96);if(typeof document!="undefined")U.exports=document;else{var E=_["__GLOBAL_DOCUMENT_CACHE@4"];E||(E=_["__GLOBAL_DOCUMENT_CACHE@4"]=m),U.exports=E}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{96:96}],95:[function(s,U,h){(function(w){typeof window!="undefined"?U.exports=window:w!==void 0?U.exports=w:typeof self!="undefined"?U.exports=self:U.exports={}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],96:[function(s,U,h){},{}],97:[function(s,U,h){function w(_,m){var E,T=null;try{E=JSON.parse(_,m)}catch(C){T=C}return[T,E]}U.exports=w},{}],98:[function(s,U,h){function w(_){return _.replace(/\n\r?\s*/g,"")}U.exports=function(_){for(var m="",E=0;E0&&(o=setTimeout(function(){if(!g){g=!0,d.abort("timeout");var P=new Error("XMLHttpRequest timeout");P.code="ETIMEDOUT",r(P)}},u.timeout)),d.setRequestHeader)for(y in B)B.hasOwnProperty(y)&&d.setRequestHeader(y,B[y]);else if(u.headers&&!_(u.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in u&&(d.responseType=u.responseType),"beforeSend"in u&&typeof u.beforeSend=="function"&&u.beforeSend(d),d.send(D||null),d}function C(u){if(u.responseType==="document")return u.responseXML;var e=u.responseXML&&u.responseXML.documentElement.nodeName==="parsererror";return u.responseType!==""||e?null:u.responseXML}function b(){}var f=s(95),i=s(100),p=s(103),n=s(104);U.exports=E,E.XMLHttpRequest=f.XMLHttpRequest||b,E.XDomainRequest="withCredentials"in new E.XMLHttpRequest?E.XMLHttpRequest:f.XDomainRequest,w(["get","put","post","patch","head","delete"],function(u){E[u==="delete"?"del":u]=function(e,t,r){return t=m(e,t,r),t.method=u.toUpperCase(),T(t)}})},{100:100,103:103,104:104,95:95}],100:[function(s,U,h){function w(m){var E=_.call(m);return E==="[object Function]"||typeof m=="function"&&E!=="[object RegExp]"||typeof window!="undefined"&&(m===window.setTimeout||m===window.alert||m===window.confirm||m===window.prompt)}U.exports=w;var _=Object.prototype.toString},{}],101:[function(s,U,h){function w(f,i,p){if(!T(i))throw new TypeError("iterator must be a function");arguments.length<3&&(p=this),C.call(f)==="[object Array]"?_(f,i,p):typeof f=="string"?m(f,i,p):E(f,i,p)}function _(f,i,p){for(var n=0,u=f.length;n59?c(j[1],j[2],0,j[4]):c(0,j[1],j[2],j[4]):null}function E(){this.values=l(null)}function T(o,c,j,D){var B=D?o.split(D):[o];for(var R in B)if(typeof B[R]=="string"){var L=B[R].split(j);if(L.length===2){var O=L[0],P=L[1];c(O,P)}}}function C(o,c,j){function D(){var O=m(o);if(O===null)throw new _(_.Errors.BadTimeStamp,"Malformed timestamp: "+L);return o=o.replace(/^[^\sa-zA-Z-]+/,""),O}function B(O,P){var N=new E;T(O,function(q,x){switch(q){case"region":for(var X=j.length-1;X>=0;X--)if(j[X].id===x){N.set(q,j[X].region);break}break;case"vertical":N.alt(q,x,["rl","lr"]);break;case"line":var $=x.split(","),z=$[0];N.integer(q,z),N.percent(q,z)&&N.set("snapToLines",!1),N.alt(q,z,["auto"]),$.length===2&&N.alt("lineAlign",$[1],["start","middle","end"]);break;case"position":$=x.split(","),N.percent(q,$[0]),$.length===2&&N.alt("positionAlign",$[1],["start","middle","end"]);break;case"size":N.percent(q,x);break;case"align":N.alt(q,x,["start","middle","end","left","right"])}},/:/,/\s/),P.region=N.get("region",null),P.vertical=N.get("vertical",""),P.line=N.get("line","auto"),P.lineAlign=N.get("lineAlign","start"),P.snapToLines=N.get("snapToLines",!0),P.size=N.get("size",100),P.align=N.get("align","middle"),P.position=N.get("position",{start:0,left:0,middle:50,end:100,right:100},P.align),P.positionAlign=N.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},P.align)}function R(){o=o.replace(/^\s+/,"")}var L=o;if(R(),c.startTime=D(),R(),o.substr(0,3)!=="-->")throw new _(_.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+L);o=o.substr(3),R(),c.endTime=D(),R(),B(o,c)}function b(o,c){function j(){function z(S){return c=c.substr(S.length),S}if(!c)return null;var H=c.match(/^([^<]*)(<[^>]+>?)?/);return z(H[1]?H[1]:H[2])}function D(z){return a[z]}function B(z){for(;$=z.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)z=z.replace($[0],D);return z}function R(z,H){return!y[H.localName]||y[H.localName]===z.localName}function L(z,H){var S=v[z];if(!S)return null;var A=o.document.createElement(S);A.localName=S;var M=d[z];return M&&H&&(A[M]=H.trim()),A}for(var O,P=o.document.createElement("div"),N=P,q=[];(O=j())!==null;)if(O[0]!=="<")N.appendChild(o.document.createTextNode(B(O)));else{if(O[1]==="/"){q.length&&q[q.length-1]===O.substr(2).replace(">","")&&(q.pop(),N=N.parentNode);continue}var x,X=m(O.substr(1,O.length-2));if(X){x=o.document.createProcessingInstruction("timestamp",X),N.appendChild(x);continue}var $=O.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!$||(x=L($[1],$[3]),!x)||!R(N,x))continue;$[2]&&(x.className=$[2].substr(1).replace("."," ")),q.push($[1]),N.appendChild(x),N=x}return P}function f(o){for(var c=0;c=j[0]&&o<=j[1])return!0}return!1}function i(o){function c(O,P){for(var N=P.childNodes.length-1;N>=0;N--)O.push(P.childNodes[N])}function j(O){if(!O||!O.length)return null;var P=O.pop(),N=P.textContent||P.innerText;if(N){var q=N.match(/^.*(\n|\r)/);return q?(O.length=0,q[0]):N}return P.tagName==="ruby"?j(O):P.childNodes?(c(O,P),j(O)):void 0}var D,B=[],R="";if(!o||!o.childNodes)return"ltr";for(c(B,o);R=j(B);)for(var L=0;L=0&&o.line<=100))return o.line;if(!o.track||!o.track.textTrackList||!o.track.textTrackList.mediaElement)return-1;for(var c=o.track,j=c.textTrackList,D=0,B=0;Bnt&&(M=new e(S),G=nt),S=new e(V)}return M||V}var R=new e(c),L=c.cue,O=p(L),P=[];if(L.snapToLines){var N;switch(L.vertical){case"":P=["+y","-y"],N="height";break;case"rl":P=["+x","-x"],N="width";break;case"lr":P=["-x","+x"],N="width"}var q=R.lineHeight,x=q*Math.round(O),X=j[N]+q,$=P[0];Math.abs(x)>X&&(x=x<0?-1:1,x*=Math.ceil(X/q)*q),O<0&&(x+=L.vertical===""?j.height:j.width,P=P.reverse()),R.move($,x)}else{var z=R.lineHeight/j.height*100;switch(L.lineAlign){case"middle":O-=z/2;break;case"end":O-=z}switch(L.vertical){case"":c.applyStyles({top:c.formatStyle(O,"%")});break;case"rl":c.applyStyles({left:c.formatStyle(O,"%")});break;case"lr":c.applyStyles({right:c.formatStyle(O,"%")})}P=["+y","-x","+x","-y"],R=new e(c)}var H=B(R,P);c.move(H.toCSSCompatValues(j))}function r(){}var l=Object.create||function(){function o(){}return function(c){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return o.prototype=c,new o}}();_.prototype=l(Error.prototype),_.prototype.constructor=_,_.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},E.prototype={set:function(o,c){this.get(o)||c===""||(this.values[o]=c)},get:function(o,c,j){return j?this.has(o)?this.values[o]:c[j]:this.has(o)?this.values[o]:c},has:function(o){return o in this.values},alt:function(o,c,j){for(var D=0;D=0&&c<=100))&&(this.set(o,c),!0)}};var a={"&":"&","<":"<",">":">","‎":"\u200E","‏":"\u200F"," ":" "},v={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},d={v:"title",lang:"lang"},y={rt:"ruby"},g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];n.prototype.applyStyles=function(o,c){c=c||this.div;for(var j in o)o.hasOwnProperty(j)&&(c.style[j]=o[j])},n.prototype.formatStyle=function(o,c){return o===0?0:o+c},u.prototype=l(n.prototype),u.prototype.constructor=u,e.prototype.move=function(o,c){switch(c=c!==void 0?c:this.lineHeight,o){case"+x":this.left+=c,this.right+=c;break;case"-x":this.left-=c,this.right-=c;break;case"+y":this.top+=c,this.bottom+=c;break;case"-y":this.top-=c,this.bottom-=c}},e.prototype.overlaps=function(o){return this.lefto.left&&this.topo.top},e.prototype.overlapsAny=function(o){for(var c=0;c=o.top&&this.bottom<=o.bottom&&this.left>=o.left&&this.right<=o.right},e.prototype.overlapsOppositeAxis=function(o,c){switch(c){case"+x":return this.lefto.right;case"+y":return this.topo.bottom}},e.prototype.intersectPercentage=function(o){return Math.max(0,Math.min(this.right,o.right)-Math.max(this.left,o.left))*Math.max(0,Math.min(this.bottom,o.bottom)-Math.max(this.top,o.top))/(this.height*this.width)},e.prototype.toCSSCompatValues=function(o){return{top:this.top-o.top,bottom:o.bottom-this.bottom,left:this.left-o.left,right:o.right-this.right,height:this.height,width:this.width}},e.getSimpleBoxPosition=function(o){var c=o.div?o.div.offsetHeight:o.tagName?o.offsetHeight:0,j=o.div?o.div.offsetWidth:o.tagName?o.offsetWidth:0,D=o.div?o.div.offsetTop:o.tagName?o.offsetTop:0;return o=o.div?o.div.getBoundingClientRect():o.tagName?o.getBoundingClientRect():o,{left:o.left,right:o.right,top:o.top||D,height:o.height||c,bottom:o.bottom||D+(o.height||c),width:o.width||j}},r.StringDecoder=function(){return{decode:function(o){if(!o)return"";if(typeof o!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(o))}}},r.convertCueToDOMTree=function(o,c){return o&&c?b(o,c):null},r.processCues=function(o,c,j){function D(q){for(var x=0;x")===-1){R.cue.id=L;continue}case"CUE":try{C(L,R.cue,R.regionList)}catch(q){R.reportOrThrowError(q),R.cue=null,R.state="BADCUE";continue}R.state="CUETEXT";continue;case"CUETEXT":var N=L.indexOf("-->")!==-1;if(!L||N&&(P=!0)){R.oncue&&R.oncue(R.cue),R.cue=null,R.state="ID";continue}R.cue.text&&(R.cue.text+=` `),R.cue.text+=L;continue;case"BADCUE":L||(R.state="ID");continue}}}catch(q){R.reportOrThrowError(q),R.state==="CUETEXT"&&R.cue&&R.oncue&&R.oncue(R.cue),R.cue=null,R.state=R.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var o=this;try{if(o.buffer+=o.decoder.decode(),(o.cue||o.state==="HEADER")&&(o.buffer+=` `,o.parse()),o.state==="INITIAL")throw new _(_.Errors.BadSignature)}catch(c){o.reportOrThrowError(c)}return o.onflush&&o.onflush(),this}},w.WebVTT=r})(this,this.vttjs)},{}],107:[function(s,U,h){(function(w,_){function m(i){return typeof i=="string"&&!!b[i.toLowerCase()]&&i.toLowerCase()}function E(i){return typeof i=="string"&&!!f[i.toLowerCase()]&&i.toLowerCase()}function T(i){for(var p=1;p100)throw new Error("Position must be between 0 and 100.");D=O,this.hasBeenReset=!0}})),Object.defineProperty(u,"positionAlign",T({},t,{get:function(){return B},set:function(O){var P=E(O);if(!P)throw new SyntaxError("An invalid or illegal string was specified.");B=P,this.hasBeenReset=!0}})),Object.defineProperty(u,"size",T({},t,{get:function(){return R},set:function(O){if(O<0||O>100)throw new Error("Size must be between 0 and 100.");R=O,this.hasBeenReset=!0}})),Object.defineProperty(u,"align",T({},t,{get:function(){return L},set:function(O){var P=E(O);if(!P)throw new SyntaxError("An invalid or illegal string was specified.");L=P,this.hasBeenReset=!0}})),u.displayState=void 0,e)return u}var b={"":!0,lr:!0,rl:!0},f={start:!0,middle:!0,end:!0,left:!0,right:!0};C.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},w.VTTCue=w.VTTCue||C,_.VTTCue=C})(this,this.vttjs||{})},{}],108:[function(s,U,h){(function(w,_){function m(b){return typeof b=="string"&&!!C[b.toLowerCase()]&&b.toLowerCase()}function E(b){return typeof b=="number"&&b>=0&&b<=100}function T(){var b=100,f=3,i=0,p=100,n=0,u=100,e="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return b},set:function(t){if(!E(t))throw new Error("Width must be between 0 and 100.");b=t}},lines:{enumerable:!0,get:function(){return f},set:function(t){if(typeof t!="number")throw new TypeError("Lines must be set to a number.");f=t}},regionAnchorY:{enumerable:!0,get:function(){return p},set:function(t){if(!E(t))throw new Error("RegionAnchorX must be between 0 and 100.");p=t}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(t){if(!E(t))throw new Error("RegionAnchorY must be between 0 and 100.");i=t}},viewportAnchorY:{enumerable:!0,get:function(){return u},set:function(t){if(!E(t))throw new Error("ViewportAnchorY must be between 0 and 100.");u=t}},viewportAnchorX:{enumerable:!0,get:function(){return n},set:function(t){if(!E(t))throw new Error("ViewportAnchorX must be between 0 and 100.");n=t}},scroll:{enumerable:!0,get:function(){return e},set:function(t){var r=m(t);if(r===!1)throw new SyntaxError("An invalid or illegal string was specified.");e=r}}})}var C={"":!0,up:!0};w.VTTRegion=w.VTTRegion||T,_.VTTRegion=T})(this,this.vttjs||{})},{}],109:[function(s,U,h){arguments[4][95][0].apply(h,arguments)},{95:95}]},{},[93])(93)}),function(){(function(ft){var s=ft&&ft.videojs;if(s){s.CDN_VERSION="5.19.2";var U=ft.location.protocol==="https:"?"https://":"http://";s.options.flash.swf=U+"vjs.zencdn.net/swf/5.3.0/video-js.swf"}})(window),function(ft,s,U,h,w,_,m){s&&s.HELP_IMPROVE_VIDEOJS!==!1&&(w.random()>.01||(_=s.location,m=s.videojs||{},ft.src="//www.google-analytics.com/__utm.gif?utmwv=5.4.2&utmac=UA-16505296-3&utmn=1&utmhn="+h(_.hostname)+"&utmsr="+s.screen.availWidth+"x"+s.screen.availHeight+"&utmul="+(U.language||U.userLanguage||"").toLowerCase()+"&utmr="+h(_.href)+"&utmp="+h(_.hostname+_.pathname)+"&utmcc=__utma%3D1."+w.floor(1e10*w.random())+".1.1.1.1%3B&utme=8(vjsv*cdnv)9("+m.VERSION+"*"+m.CDN_VERSION+")"))}(new Image,window,navigator,encodeURIComponent,Math)}();