(function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.videojs=t()}})(function(){var t;return function t(e,o,n){function r(s,a){if(!o[s]){if(!e[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=o[s]={exports:{}};e[s][0].call(c.exports,function(t){var o=e[s][1][t];return r(o||t)},c,c.exports,t,e,o,n)}return o[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)r(n[s]);return r}({1:[function(t,e,o){(function(o){var n=void 0!==o?o:"undefined"!=typeof window?window:{},r=t("min-document");if("undefined"!=typeof document)e.exports=document;else{var i=n["__GLOBAL_DOCUMENT_CACHE@4"];i||(i=n["__GLOBAL_DOCUMENT_CACHE@4"]=r),e.exports=i}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"min-document":3}],2:[function(t,e,o){(function(t){"undefined"!=typeof window?e.exports=window:void 0!==t?e.exports=t:"undefined"!=typeof self?e.exports=self:e.exports={}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(t,e,o){},{}],4:[function(t,e,o){var n=t("../internal/getNative"),r=n(Date,"now"),i=r||function(){return(new Date).getTime()};e.exports=i},{"../internal/getNative":20}],5:[function(t,e,o){function n(t,e,o){function n(){g&&clearTimeout(g),h&&clearTimeout(h),_=0,h=g=m=void 0}function l(e,o){o&&clearTimeout(o),h=g=m=void 0,e&&(_=i(),d=t.apply(v,f),g||h||(f=v=void 0))}function u(){var t=e-(i()-y);t<=0||t>e?l(m,h):g=setTimeout(u,t)}function c(){l(j,g)}function p(){if(f=arguments,y=i(),v=this,m=j&&(g||!T),!1===b)var o=T&&!g;else{h||T||(_=y);var n=b-(y-_),r=n<=0||n>b;r?(h&&(h=clearTimeout(h)),_=y,d=t.apply(v,f)):h||(h=setTimeout(c,n))}return r&&g?g=clearTimeout(g):g||e===b||(g=setTimeout(u,e)),o&&(r=!0,d=t.apply(v,f)),!r||g||h||(f=v=void 0),d}var f,h,d,y,v,g,m,_=0,b=!1,j=!0;if("function"!=typeof t)throw new TypeError(s);if(e=e<0?0:+e||0,!0===o){var T=!0;j=!1}else r(o)&&(T=!!o.leading,b="maxWait"in o&&a(+o.maxWait||0,e),j="trailing"in o?!!o.trailing:j);return p.cancel=n,p}var r=t("../lang/isObject"),i=t("../date/now"),s="Expected a function",a=Math.max;e.exports=n},{"../date/now":4,"../lang/isObject":33}],6:[function(t,e,o){function n(t,e){if("function"!=typeof t)throw new TypeError(r);return e=i(void 0===e?t.length-1:+e||0,0),function(){for(var o=arguments,n=-1,r=i(o.length-e,0),s=Array(r);++n<r;)s[n]=o[e+n];switch(e){case 0:return t.call(this,s);case 1:return t.call(this,o[0],s);case 2:return t.call(this,o[0],o[1],s)}var a=Array(e+1);for(n=-1;++n<e;)a[n]=o[n];return a[e]=s,t.apply(this,a)}}var r="Expected a function",i=Math.max;e.exports=n},{}],7:[function(t,e,o){function n(t,e,o){var n=!0,a=!0;if("function"!=typeof t)throw new TypeError(s);return!1===o?n=!1:i(o)&&(n="leading"in o?!!o.leading:n,a="trailing"in o?!!o.trailing:a),r(t,e,{leading:n,maxWait:+e,trailing:a})}var r=t("./debounce"),i=t("../lang/isObject"),s="Expected a function";e.exports=n},{"../lang/isObject":33,"./debounce":5}],8:[function(t,e,o){function n(t,e){var o=-1,n=t.length;for(e||(e=Array(n));++o<n;)e[o]=t[o];return e}e.exports=n},{}],9:[function(t,e,o){function n(t,e){for(var o=-1,n=t.length;++o<n&&!1!==e(t[o],o,t););return t}e.exports=n},{}],10:[function(t,e,o){function n(t,e,o){o||(o={});for(var n=-1,r=e.length;++n<r;){var i=e[n];o[i]=t[i]}return o}e.exports=n},{}],11:[function(t,e,o){var n=t("./createBaseFor"),r=n();e.exports=r},{"./createBaseFor":18}],12:[function(t,e,o){function n(t,e){return r(t,e,i)}var r=t("./baseFor"),i=t("../object/keysIn");e.exports=n},{"../object/keysIn":39,"./baseFor":11}],13:[function(t,e,o){function n(t,e,o,f,h){if(!l(t))return t;var d=a(e)&&(s(e)||c(e)),y=d?void 0:p(e);return r(y||e,function(r,s){if(y&&(s=r,r=e[s]),u(r))f||(f=[]),h||(h=[]),i(t,e,s,n,o,f,h);else{var a=t[s],l=o?o(a,r,s,t,e):void 0,c=void 0===l;c&&(l=r),void 0===l&&(!d||s in t)||!c&&(l==l?l===a:a!=a)||(t[s]=l)}}),t}var r=t("./arrayEach"),i=t("./baseMergeDeep"),s=t("../lang/isArray"),a=t("./isArrayLike"),l=t("../lang/isObject"),u=t("./isObjectLike"),c=t("../lang/isTypedArray"),p=t("../object/keys");e.exports=n},{"../lang/isArray":30,"../lang/isObject":33,"../lang/isTypedArray":36,"../object/keys":38,"./arrayEach":9,"./baseMergeDeep":14,"./isArrayLike":21,"./isObjectLike":26}],14:[function(t,e,o){function n(t,e,o,n,p,f,h){for(var d=f.length,y=e[o];d--;)if(f[d]==y)return void(t[o]=h[d]);var v=t[o],g=p?p(v,y,o,t,e):void 0,m=void 0===g;m&&(g=y,a(y)&&(s(y)||u(y))?g=s(v)?v:a(v)?r(v):[]:l(y)||i(y)?g=i(v)?c(v):l(v)?v:{}:m=!1),f.push(y),h.push(g),m?t[o]=n(g,y,p,f,h):(g==g?g!==v:v==v)&&(t[o]=g)}var r=t("./arrayCopy"),i=t("../lang/isArguments"),s=t("../lang/isArray"),a=t("./isArrayLike"),l=t("../lang/isPlainObject"),u=t("../lang/isTypedArray"),c=t("../lang/toPlainObject");e.exports=n},{"../lang/isArguments":29,"../lang/isArray":30,"../lang/isPlainObject":34,"../lang/isTypedArray":36,"../lang/toPlainObject":37,"./arrayCopy":8,"./isArrayLike":21}],15:[function(t,e,o){function n(t){return function(e){return null==e?void 0:r(e)[t]}}var r=t("./toObject");e.exports=n},{"./toObject":28}],16:[function(t,e,o){function n(t,e,o){if("function"!=typeof t)return r;if(void 0===e)return t;switch(o){case 1:return function(o){return t.call(e,o)};case 3:return function(o,n,r){return t.call(e,o,n,r)};case 4:return function(o,n,r,i){return t.call(e,o,n,r,i)};case 5:return function(o,n,r,i,s){return t.call(e,o,n,r,i,s)}}return function(){return t.apply(e,arguments)}}var r=t("../utility/identity");e.exports=n},{"../utility/identity":42}],17:[function(t,e,o){function n(t){return s(function(e,o){var n=-1,s=null==e?0:o.length,a=s>2?o[s-2]:void 0,l=s>2?o[2]:void 0,u=s>1?o[s-1]:void 0;for("function"==typeof a?(a=r(a,u,5),s-=2):(a="function"==typeof u?u:void 0,s-=a?1:0),l&&i(o[0],o[1],l)&&(a=s<3?void 0:a,s=1);++n<s;){var c=o[n];c&&t(e,c,a)}return e})}var r=t("./bindCallback"),i=t("./isIterateeCall"),s=t("../function/restParam");e.exports=n},{"../function/restParam":6,"./bindCallback":16,"./isIterateeCall":24}],18:[function(t,e,o){function n(t){return function(e,o,n){for(var i=r(e),s=n(e),a=s.length,l=t?a:-1;t?l--:++l<a;){var u=s[l];if(!1===o(i[u],u,i))break}return e}}var r=t("./toObject");e.exports=n},{"./toObject":28}],19:[function(t,e,o){var n=t("./baseProperty"),r=n("length");e.exports=r},{"./baseProperty":15}],20:[function(t,e,o){function n(t,e){var o=null==t?void 0:t[e];return r(o)?o:void 0}var r=t("../lang/isNative");e.exports=n},{"../lang/isNative":32}],21:[function(t,e,o){function n(t){return null!=t&&i(r(t))}var r=t("./getLength"),i=t("./isLength");e.exports=n},{"./getLength":19,"./isLength":25}],22:[function(t,e,o){var n=function(){try{Object({toString:0}+"")}catch(t){return function(){return!1}}return function(t){return"function"!=typeof t.toString&&"string"==typeof(t+"")}}();e.exports=n},{}],23:[function(t,e,o){function n(t,e){return t="number"==typeof t||r.test(t)?+t:-1,e=null==e?i:e,t>-1&&t%1==0&&t<e}var r=/^\d+$/,i=9007199254740991;e.exports=n},{}],24:[function(t,e,o){function n(t,e,o){if(!s(o))return!1;var n=typeof e;if("number"==n?r(o)&&i(e,o.length):"string"==n&&e in o){var a=o[e];return t==t?t===a:a!=a}return!1}var r=t("./isArrayLike"),i=t("./isIndex"),s=t("../lang/isObject");e.exports=n},{"../lang/isObject":33,"./isArrayLike":21,"./isIndex":23}],25:[function(t,e,o){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}var r=9007199254740991;e.exports=n},{}],26:[function(t,e,o){function n(t){return!!t&&"object"==typeof t}e.exports=n},{}],27:[function(t,e,o){function n(t){for(var e=u(t),o=e.length,n=o&&t.length,c=!!n&&a(n)&&(i(t)||r(t)||l(t)),f=-1,h=[];++f<o;){var d=e[f];(c&&s(d,n)||p.call(t,d))&&h.push(d)}return h}var r=t("../lang/isArguments"),i=t("../lang/isArray"),s=t("./isIndex"),a=t("./isLength"),l=t("../lang/isString"),u=t("../object/keysIn"),c=Object.prototype,p=c.hasOwnProperty;e.exports=n},{"../lang/isArguments":29,"../lang/isArray":30,"../lang/isString":35,"../object/keysIn":39,"./isIndex":23,"./isLength":25}],28:[function(t,e,o){function n(t){if(s.unindexedChars&&i(t)){for(var e=-1,o=t.length,n=Object(t);++e<o;)n[e]=t.charAt(e);return n}return r(t)?t:Object(t)}var r=t("../lang/isObject"),i=t("../lang/isString"),s=t("../support");e.exports=n},{"../lang/isObject":33,"../lang/isString":35,"../support":41}],29:[function(t,e,o){function n(t){return i(t)&&r(t)&&a.call(t,"callee")&&!l.call(t,"callee")}var r=t("../internal/isArrayLike"),i=t("../internal/isObjectLike"),s=Object.prototype,a=s.hasOwnProperty,l=s.propertyIsEnumerable;e.exports=n},{"../internal/isArrayLike":21,"../internal/isObjectLike":26}],30:[function(t,e,o){var n=t("../internal/getNative"),r=t("../internal/isLength"),i=t("../internal/isObjectLike"),s="[object Array]",a=Object.prototype,l=a.toString,u=n(Array,"isArray"),c=u||function(t){return i(t)&&r(t.length)&&l.call(t)==s};e.exports=c},{"../internal/getNative":20,"../internal/isLength":25,"../internal/isObjectLike":26}],31:[function(t,e,o){function n(t){return r(t)&&a.call(t)==i}var r=t("./isObject"),i="[object Function]",s=Object.prototype,a=s.toString;e.exports=n},{"./isObject":33}],32:[function(t,e,o){function n(t){return null!=t&&(r(t)?p.test(u.call(t)):s(t)&&(i(t)?p:a).test(t))}var r=t("./isFunction"),i=t("../internal/isHostObject"),s=t("../internal/isObjectLike"),a=/^\[object .+?Constructor\]$/,l=Object.prototype,u=Function.prototype.toString,c=l.hasOwnProperty,p=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=n},{"../internal/isHostObject":22,"../internal/isObjectLike":26,"./isFunction":31}],33:[function(t,e,o){function n(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}e.exports=n},{}],34:[function(t,e,o){function n(t){var e,o;return!(!a(t)||f.call(t)!=u||s(t)||i(t)||!(p.call(t,"constructor")||(e=t.constructor,"function"!=typeof e||e instanceof e)))&&(l.ownLast?(r(t,function(t,e,n){return o=p.call(n,e),!1}),!1!==o):(r(t,function(t,e){o=e}),void 0===o||p.call(t,o)))}var r=t("../internal/baseForIn"),i=t("./isArguments"),s=t("../internal/isHostObject"),a=t("../internal/isObjectLike"),l=t("../support"),u="[object Object]",c=Object.prototype,p=c.hasOwnProperty,f=c.toString;e.exports=n},{"../internal/baseForIn":12,"../internal/isHostObject":22,"../internal/isObjectLike":26,"../support":41,"./isArguments":29}],35:[function(t,e,o){function n(t){return"string"==typeof t||r(t)&&a.call(t)==i}var r=t("../internal/isObjectLike"),i="[object String]",s=Object.prototype,a=s.toString;e.exports=n},{"../internal/isObjectLike":26}],36:[function(t,e,o){function n(t){return i(t)&&r(t.length)&&!!S[M.call(t)]}var r=t("../internal/isLength"),i=t("../internal/isObjectLike"),s="[object Arguments]",a="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",p="[object Function]",f="[object Map]",h="[object Number]",d="[object Object]",y="[object RegExp]",v="[object Set]",g="[object String]",m="[object WeakMap]",_="[object ArrayBuffer]",b="[object Float32Array]",j="[object Float64Array]",T="[object Int8Array]",w="[object Int16Array]",k="[object Int32Array]",E="[object Uint8Array]",C="[object Uint8ClampedArray]",O="[object Uint16Array]",x="[object Uint32Array]",S={};S[b]=S[j]=S[T]=S[w]=S[k]=S[E]=S[C]=S[O]=S[x]=!0,S[s]=S[a]=S[_]=S[l]=S[u]=S[c]=S[p]=S[f]=S[h]=S[d]=S[y]=S[v]=S[g]=S[m]=!1;var P=Object.prototype,M=P.toString;e.exports=n},{"../internal/isLength":25,"../internal/isObjectLike":26}],37:[function(t,e,o){function n(t){return r(t,i(t))}var r=t("../internal/baseCopy"),i=t("../object/keysIn");e.exports=n},{"../internal/baseCopy":10,"../object/keysIn":39}],38:[function(t,e,o){var n=t("../internal/getNative"),r=t("../internal/isArrayLike"),i=t("../lang/isObject"),s=t("../internal/shimKeys"),a=t("../support"),l=n(Object,"keys"),u=l?function(t){var e=null==t?void 0:t.constructor;return"function"==typeof e&&e.prototype===t||("function"==typeof t?a.enumPrototypes:r(t))?s(t):i(t)?l(t):[]}:s;e.exports=u},{"../internal/getNative":20,"../internal/isArrayLike":21,"../internal/shimKeys":27,"../lang/isObject":33,"../support":41}],39:[function(t,e,o){function n(t){if(null==t)return[];c(t)||(t=Object(t));var e=t.length;e=e&&u(e)&&(s(t)||i(t)||p(t))&&e||0;for(var o=t.constructor,n=-1,r=a(o)&&o.prototype||k,h=r===t,d=Array(e),y=e>0,g=f.enumErrorProps&&(t===w||t instanceof Error),m=f.enumPrototypes&&a(t);++n<e;)d[n]=n+"";for(var b in t)m&&"prototype"==b||g&&("message"==b||"name"==b)||y&&l(b,e)||"constructor"==b&&(h||!C.call(t,b))||d.push(b);if(f.nonEnumShadows&&t!==k){var S=t===E?j:t===w?v:O.call(t),P=x[S]||x[_];for(S==_&&(r=k),e=T.length;e--;){b=T[e];var M=P[b];h&&M||(M?!C.call(t,b):t[b]===r[b])||d.push(b)}}return d}var r=t("../internal/arrayEach"),i=t("../lang/isArguments"),s=t("../lang/isArray"),a=t("../lang/isFunction"),l=t("../internal/isIndex"),u=t("../internal/isLength"),c=t("../lang/isObject"),p=t("../lang/isString"),f=t("../support"),h="[object Array]",d="[object Boolean]",y="[object Date]",v="[object Error]",g="[object Function]",m="[object Number]",_="[object Object]",b="[object RegExp]",j="[object String]",T=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],w=Error.prototype,k=Object.prototype,E=String.prototype,C=k.hasOwnProperty,O=k.toString,x={};x[h]=x[y]=x[m]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},x[d]=x[j]={constructor:!0,toString:!0,valueOf:!0},x[v]=x[g]=x[b]={constructor:!0,toString:!0},x[_]={constructor:!0},r(T,function(t){for(var e in x)if(C.call(x,e)){var o=x[e];o[t]=C.call(o,t)}}),e.exports=n},{"../internal/arrayEach":9,"../internal/isIndex":23,"../internal/isLength":25,"../lang/isArguments":29,"../lang/isArray":30,"../lang/isFunction":31,"../lang/isObject":33,"../lang/isString":35,"../support":41}],40:[function(t,e,o){var n=t("../internal/baseMerge"),r=t("../internal/createAssigner"),i=r(n);e.exports=i},{"../internal/baseMerge":13,"../internal/createAssigner":17}],41:[function(t,e,o){var n=Array.prototype,r=Error.prototype,i=Object.prototype,s=i.propertyIsEnumerable,a=n.splice,l={};(function(t){var e=function(){this.x=t},o={0:t,length:t},n=[];for(var i in e.prototype={valueOf:t,y:t},new e)n.push(i);l.enumErrorProps=s.call(r,"message")||s.call(r,"name"),l.enumPrototypes=s.call(e,"prototype"),l.nonEnumShadows=!/valueOf/.test(n),l.ownLast="x"!=n[0],l.spliceObjects=(a.call(o,0,1),!o[0]),l.unindexedChars="x"[0]+Object("x")[0]!="xx"})(1),e.exports=l},{}],42:[function(t,e,o){function n(t){return t}e.exports=n},{}],43:[function(t,e,o){"use strict";var n=t("object-keys");e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test");if("string"==typeof e)return!1;var o=42;for(e in t[e]=o,t)return!1;if(0!==n(t).length)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(i.value!==o||!0!==i.enumerable)return!1}return!0}},{"object-keys":50}],44:[function(t,e,o){"use strict";var n=t("object-keys"),r=t("function-bind"),i=function(t){return null!=t},s=t("./hasSymbols")(),a=Object,l=r.call(Function.call,Array.prototype.push),u=r.call(Function.call,Object.prototype.propertyIsEnumerable);e.exports=function(t,e){if(!i(t))throw new TypeError("target must be an object");var o,r,c,p,f,h,d,y=a(t);for(o=1;o<arguments.length;++o){if(r=a(arguments[o]),p=n(r),s&&Object.getOwnPropertySymbols)for(f=Object.getOwnPropertySymbols(r),c=0;c<f.length;++c)d=f[c],u(r,d)&&l(p,d);for(c=0;c<p.length;++c)d=p[c],h=r[d],u(r,d)&&(y[d]=h)}return y}},{"./hasSymbols":43,"function-bind":49,"object-keys":50}],45:[function(t,e,o){"use strict";var n=t("define-properties"),r=t("./implementation"),i=t("./polyfill"),s=t("./shim");n(r,{implementation:r,getPolyfill:i,shim:s}),e.exports=r},{"./implementation":44,"./polyfill":52,"./shim":53,"define-properties":46}],46:[function(t,e,o){"use strict";var n=t("object-keys"),r=t("foreach"),i="function"==typeof Symbol&&"symbol"==typeof Symbol(),s=Object.prototype.toString,a=function(t){return"function"==typeof t&&"[object Function]"===s.call(t)},l=function(){var t={};try{for(var e in Object.defineProperty(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}},u=Object.defineProperty&&l(),c=function(t,e,o,n){(!(e in t)||a(n)&&n())&&(u?Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:o,writable:!0}):t[e]=o)},p=function(t,e){var o=arguments.length>2?arguments[2]:{},s=n(e);i&&(s=s.concat(Object.getOwnPropertySymbols(e))),r(s,function(n){c(t,n,e[n],o[n])})};p.supportsDescriptors=!!u,e.exports=p},{foreach:47,"object-keys":50}],47:[function(t,e,o){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(t,e,o){if("[object Function]"!==r.call(e))throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var s=0;s<i;s++)e.call(o,t[s],s,t);else for(var a in t)n.call(t,a)&&e.call(o,t[a],a,t)}},{}],48:[function(t,e,o){var n="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,i=Object.prototype.toString,s="[object Function]";e.exports=function(t){var e=this;if("function"!=typeof e||i.call(e)!==s)throw new TypeError(n+e);for(var o,a=r.call(arguments,1),l=function(){if(this instanceof o){var n=e.apply(this,a.concat(r.call(arguments)));return Object(n)===n?n:this}return e.apply(t,a.concat(r.call(arguments)))},u=Math.max(0,e.length-a.length),c=[],p=0;p<u;p++)c.push("$"+p);if(o=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(l),e.prototype){var f=function(){};f.prototype=e.prototype,o.prototype=new f,f.prototype=null}return o}},{}],49:[function(t,e,o){var n=t("./implementation");e.exports=Function.prototype.bind||n},{"./implementation":48}],50:[function(t,e,o){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Array.prototype.slice,s=t("./isArguments"),a=!{toString:null}.propertyIsEnumerable("toString"),l=function(){}.propertyIsEnumerable("prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(t){var e=t.constructor;return e&&e.prototype===t},p={$console:!0,$frame:!0,$frameElement:!0,$frames:!0,$parent:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!p["$"+t]&&n.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{c(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),h=function(t){if("undefined"==typeof window||!f)return c(t);try{return c(t)}catch(t){return!1}},d=function(t){var e=null!==t&&"object"==typeof t,o="[object Function]"===r.call(t),i=s(t),c=e&&"[object String]"===r.call(t),p=[];if(!e&&!o&&!i)throw new TypeError("Object.keys called on a non-object");var f=l&&o;if(c&&t.length>0&&!n.call(t,0))for(var d=0;d<t.length;++d)p.push(String(d));if(i&&t.length>0)for(var y=0;y<t.length;++y)p.push(String(y));else for(var v in t)f&&"prototype"===v||!n.call(t,v)||p.push(String(v));if(a)for(var g=h(t),m=0;m<u.length;++m)g&&"constructor"===u[m]||!n.call(t,u[m])||p.push(u[m]);return p};d.shim=function(){if(Object.keys){var t=function(){return 2===(Object.keys(arguments)||"").length}(1,2);if(!t){var e=Object.keys;Object.keys=function(t){return s(t)?e(i.call(t)):e(t)}}}else Object.keys=d;return Object.keys||d},e.exports=d},{"./isArguments":51}],51:[function(t,e,o){"use strict";var n=Object.prototype.toString;e.exports=function(t){var e=n.call(t),o="[object Arguments]"===e;return o||(o="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===n.call(t.callee)),o}},{}],52:[function(t,e,o){"use strict";var n=t("./implementation"),r=function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),o={},n=0;n<e.length;++n)o[e[n]]=e[n];var r=Object.assign({},o),i="";for(var s in r)i+=s;return t!==i},i=function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch(e){return"y"===t[1]}};e.exports=function(){return Object.assign?r()?n:i()?n:Object.assign:n}},{"./implementation":44}],53:[function(t,e,o){"use strict";var n=t("define-properties"),r=t("./polyfill");e.exports=function(){var t=r();return n(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t}},{"./polyfill":52,"define-properties":46}],54:[function(t,e,o){function n(t,e){var o,n=null;try{o=JSON.parse(t,e)}catch(t){n=t}return[n,o]}e.exports=n},{}],55:[function(t,e,o){function n(t){return t.replace(/\n\r?\s*/g,"")}e.exports=function(t){for(var e="",o=0;o<arguments.length;o++)e+=n(t[o])+(arguments[o+1]||"");return e}},{}],56:[function(t,e,o){"use strict";function n(t,e){for(var o=0;o<t.length;o++)e(t[o])}function r(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function i(t,e,o){var n=t;return p(e)?(o=e,"string"==typeof t&&(n={uri:t})):n=h(e,{uri:t}),n.callback=o,n}function s(t,e,o){return e=i(t,e,o),a(e)}function a(t){function e(){4===h.readyState&&i()}function o(){var t=void 0;if(h.response?t=h.response:"text"!==h.responseType&&h.responseType||(t=h.responseText||h.responseXML),b)try{t=JSON.parse(t)}catch(t){}return t}function n(t){clearTimeout(d),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,a(t,p)}function i(){if(!u){var e;clearTimeout(d),e=t.useXDR&&void 0===h.status?200:1223===h.status?204:h.status;var n=p,r=null;0!==e?(n={body:o(),statusCode:e,method:v,headers:{},url:y,rawRequest:h},h.getAllResponseHeaders&&(n.headers=f(h.getAllResponseHeaders()))):r=new Error("Internal XMLHttpRequest Error"),a(r,n,n.body)}}var a=t.callback;if(void 0===a)throw new Error("callback argument missing");a=c(a);var l,u,p={body:void 0,headers:{},statusCode:0,method:v,url:y,rawRequest:h},h=t.xhr||null;h||(h=t.cors||t.useXDR?new s.XDomainRequest:new s.XMLHttpRequest);var d,y=h.url=t.uri||t.url,v=h.method=t.method||"GET",g=t.body||t.data||null,m=h.headers=t.headers||{},_=!!t.sync,b=!1;if("json"in t&&(b=!0,m.accept||m.Accept||(m.Accept="application/json"),"GET"!==v&&"HEAD"!==v&&(m["content-type"]||m["Content-Type"]||(m["Content-Type"]="application/json"),g=JSON.stringify(t.json))),h.onreadystatechange=e,h.onload=i,h.onerror=n,h.onprogress=function(){},h.ontimeout=n,h.open(v,y,!_,t.username,t.password),_||(h.withCredentials=!!t.withCredentials),!_&&t.timeout>0&&(d=setTimeout(function(){u=!0,h.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",n(t)},t.timeout)),h.setRequestHeader)for(l in m)m.hasOwnProperty(l)&&h.setRequestHeader(l,m[l]);else if(t.headers&&!r(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(h.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(h),h.send(g),h}function l(){}var u=t("global/window"),c=t("once"),p=t("is-function"),f=t("parse-headers"),h=t("xtend");e.exports=s,s.XMLHttpRequest=u.XMLHttpRequest||l,s.XDomainRequest="withCredentials"in new s.XMLHttpRequest?s.XMLHttpRequest:u.XDomainRequest,n(["get","put","post","patch","head","delete"],function(t){s["delete"===t?"del":t]=function(e,o,n){return o=i(e,o,n),o.method=t.toUpperCase(),a(o)}})},{"global/window":2,"is-function":57,once:58,"parse-headers":61,xtend:62}],57:[function(t,e,o){function n(t){var e=r.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)}e.exports=n;var r=Object.prototype.toString},{}],58:[function(t,e,o){function n(t){var e=!1;return function(){if(!e)return e=!0,t.apply(this,arguments)}}e.exports=n,n.proto=n(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0})})},{}],59:[function(t,e,o){function n(t,e,o){if(!a(e))throw new TypeError("iterator must be a function");arguments.length<3&&(o=this),"[object Array]"===l.call(t)?r(t,e,o):"string"==typeof t?i(t,e,o):s(t,e,o)}function r(t,e,o){for(var n=0,r=t.length;n<r;n++)u.call(t,n)&&e.call(o,t[n],n,t)}function i(t,e,o){for(var n=0,r=t.length;n<r;n++)e.call(o,t.charAt(n),n,t)}function s(t,e,o){for(var n in t)u.call(t,n)&&e.call(o,t[n],n,t)}var a=t("is-function");e.exports=n;var l=Object.prototype.toString,u=Object.prototype.hasOwnProperty},{"is-function":57}],60:[function(t,e,o){function n(t){return t.replace(/^\s*|\s*$/g,"")}o=e.exports=n,o.left=function(t){return t.replace(/^\s*/,"")},o.right=function(t){return t.replace(/\s*$/,"")}},{}],61:[function(t,e,o){var n=t("trim"),r=t("for-each"),i=function(t){return"[object Array]"===Object.prototype.toString.call(t)};e.exports=function(t){if(!t)return{};var e={};return r(n(t).split("\n"),function(t){var o=t.indexOf(":"),r=n(t.slice(0,o)).toLowerCase(),s=n(t.slice(o+1));void 0===e[r]?e[r]=s:i(e[r])?e[r].push(s):e[r]=[e[r],s]}),e}},{"for-each":59,trim:60}],62:[function(t,e,o){function n(){for(var t={},e=0;e<arguments.length;e++){var o=arguments[e];for(var n in o)r.call(o,n)&&(t[n]=o[n])}return t}e.exports=n;var r=Object.prototype.hasOwnProperty},{}],63:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("./button.js"),a=n(s),l=t("./component.js"),u=n(l),c=function(t){function e(o,n){r(this,e),t.call(this,o,n)}return i(e,t),e.prototype.buildCSSClass=function(){return"vjs-big-play-button"},e.prototype.handleClick=function(){this.player_.play()},e}(a.default);c.prototype.controlText_="Play Video",u.default.registerComponent("BigPlayButton",c),o.default=c,e.exports=o.default},{"./button.js":64,"./component.js":67}],64:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("./clickable-component.js"),l=r(a),u=t("./component"),c=r(u),p=t("./utils/events.js"),f=(n(p),t("./utils/fn.js")),h=(n(f),t("./utils/log.js")),d=r(h),y=t("global/document"),v=(r(y),t("object.assign")),g=r(v),m=function(t){function e(o,n){i(this,e),t.call(this,o,n)}return s(e,t),e.prototype.createEl=function(){var t=arguments.length<=0||void 0===arguments[0]?"button":arguments[0],e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];e=g.default({className:this.buildCSSClass()},e),"button"!==t&&(d.default.warn("Creating a Button with an HTML element of "+t+" is deprecated; use ClickableComponent instead."),e=g.default({tabIndex:0},e),o=g.default({role:"button"},o)),o=g.default({type:"button","aria-live":"polite"},o);var n=c.default.prototype.createEl.call(this,t,e,o);return this.createControlTextEl(n),n},e.prototype.addChild=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=this.constructor.name;return d.default.warn("Adding an actionable (user controllable) child to a Button ("+o+") is not supported; use a ClickableComponent instead."),c.default.prototype.addChild.call(this,t,e)},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which||t.prototype.handleKeyPress.call(this,e)},e}(l.default);c.default.registerComponent("Button",m),o.default=m,e.exports=o.default},{"./clickable-component.js":65,"./component":67,"./utils/events.js":144,"./utils/fn.js":145,"./utils/log.js":148,"global/document":1,"object.assign":45}],65:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("./component"),l=r(a),u=t("./utils/dom.js"),c=n(u),p=t("./utils/events.js"),f=n(p),h=t("./utils/fn.js"),d=n(h),y=t("./utils/log.js"),v=r(y),g=t("global/document"),m=r(g),_=t("object.assign"),b=r(_),j=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.emitTapEvents(),this.on("tap",this.handleClick),this.on("click",this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur)}return s(e,t),e.prototype.createEl=function(){var e=arguments.length<=0||void 0===arguments[0]?"div":arguments[0],o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];o=b.default({className:this.buildCSSClass(),tabIndex:0},o),"button"===e&&v.default.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),n=b.default({role:"button","aria-live":"polite"},n);var r=t.prototype.createEl.call(this,e,o,n);return this.createControlTextEl(r),r},e.prototype.createControlTextEl=function(t){return this.controlTextEl_=c.createEl("span",{className:"vjs-control-text"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_),this.controlTextEl_},e.prototype.controlText=function(t){return t?(this.controlText_=t,this.controlTextEl_.innerHTML=this.localize(this.controlText_),this):this.controlText_||"Need Text"},e.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},e.prototype.addChild=function(e){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return t.prototype.addChild.call(this,e,o)},e.prototype.enable=function(){return this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),this},e.prototype.disable=function(){return this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),this},e.prototype.handleClick=function(){},e.prototype.handleFocus=function(){f.on(m.default,"keydown",d.bind(this,this.handleKeyPress))},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which?(e.preventDefault(),this.handleClick(e)):t.prototype.handleKeyPress&&t.prototype.handleKeyPress.call(this,e)},e.prototype.handleBlur=function(){f.off(m.default,"keydown",d.bind(this,this.handleKeyPress))},e}(l.default);l.default.registerComponent("ClickableComponent",j),o.default=j,e.exports=o.default},{
"./component":67,"./utils/dom.js":143,"./utils/events.js":144,"./utils/fn.js":145,"./utils/log.js":148,"global/document":1,"object.assign":45}],66:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("./button"),a=n(s),l=t("./component"),u=n(l),c=function(t){function e(o,n){r(this,e),t.call(this,o,n),this.controlText(n&&n.controlText||this.localize("Close"))}return i(e,t),e.prototype.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.trigger({type:"close",bubbles:!1})},e}(a.default);u.default.registerComponent("CloseButton",c),o.default=c,e.exports=o.default},{"./button":64,"./component":67}],67:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}o.__esModule=!0;var s=t("global/window"),a=r(s),l=t("./utils/dom.js"),u=n(l),c=t("./utils/fn.js"),p=n(c),f=t("./utils/guid.js"),h=n(f),d=t("./utils/events.js"),y=n(d),v=t("./utils/log.js"),g=r(v),m=t("./utils/to-title-case.js"),_=r(m),b=t("object.assign"),j=r(b),T=t("./utils/merge-options.js"),w=r(T),k=function(){function t(e,o,n){if(i(this,t),!e&&this.play?this.player_=e=this:this.player_=e,this.options_=w.default({},this.options_),o=this.options_=w.default(this.options_,o),this.id_=o.id||o.el&&o.el.id,!this.id_){var r=e&&e.id&&e.id()||"no_player";this.id_=r+"_component_"+h.newGUID()}this.name_=o.name||null,o.el?this.el_=o.el:!1!==o.createEl&&(this.el_=this.createEl()),this.children_=[],this.childIndex_={},this.childNameIndex_={},!1!==o.initChildren&&this.initChildren(),this.ready(n),!1!==o.reportTouchActivity&&this.enableTouchActivity()}return t.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),u.removeElData(this.el_),this.el_=null},t.prototype.player=function(){return this.player_},t.prototype.options=function(t){return g.default.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.options_=w.default(this.options_,t),this.options_):this.options_},t.prototype.el=function(){return this.el_},t.prototype.createEl=function(t,e,o){return u.createEl(t,e,o)},t.prototype.localize=function(t){var e=this.player_.language&&this.player_.language(),o=this.player_.languages&&this.player_.languages();if(!e||!o)return t;var n=o[e];if(n&&n[t])return n[t];var r=e.split("-")[0],i=o[r];return i&&i[t]?i[t]:t},t.prototype.contentEl=function(){return this.contentEl_||this.el_},t.prototype.id=function(){return this.id_},t.prototype.name=function(){return this.name_},t.prototype.children=function(){return this.children_},t.prototype.getChildById=function(t){return this.childIndex_[t]},t.prototype.getChild=function(t){return this.childNameIndex_[t]},t.prototype.addChild=function(e){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]?this.children_.length:arguments[2],r=void 0,i=void 0;if("string"==typeof e){i=e,o||(o={}),!0===o&&(g.default.warn("Initializing a child component with `true` is deprecated. Children should be defined in an array when possible, but if necessary use an object instead of `true`."),o={});var s=o.componentClass||_.default(i);o.name=i;var a=t.getComponent(s);if(!a)throw new Error("Component "+s+" does not exist");if("function"!=typeof a)return null;r=new a(this.player_||this,o)}else r=e;if(this.children_.splice(n,0,r),"function"==typeof r.id&&(this.childIndex_[r.id()]=r),i=i||r.name&&r.name(),i&&(this.childNameIndex_[i]=r),"function"==typeof r.el&&r.el()){var l=this.contentEl().children,u=l[n]||null;this.contentEl().insertBefore(r.el(),u)}return r},t.prototype.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,o=this.children_.length-1;o>=0;o--)if(this.children_[o]===t){e=!0,this.children_.splice(o,1);break}if(e){this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var n=t.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},t.prototype.initChildren=function(){var e,o,n,r,i=this,s=this.options_.children;s&&(e=i.options_,o=function(t){var o=t.name,n=t.opts;if(void 0!==e[o]&&(n=e[o]),!1!==n){!0===n&&(n={}),n.playerOptions=i.options_.playerOptions;var r=i.addChild(o,n);r&&(i[o]=r)}},n=void 0,r=t.getComponent("Tech"),n=Array.isArray(s)?s:Object.keys(s),n.concat(Object.keys(i.options_).filter(function(t){return!n.some(function(e){return"string"==typeof e?t===e:t===e.name})})).map(function(t){var e=void 0,o=void 0;return"string"==typeof t?(e=t,o=s[e]||i.options_[e]||{}):(e=t.name,o=t),{name:e,opts:o}}).filter(function(e){var o=t.getComponent(e.opts.componentClass||_.default(e.name));return o&&!r.isTech(o)}).forEach(o))},t.prototype.buildCSSClass=function(){return""},t.prototype.on=function(t,e,o){var n=this;return"string"==typeof t||Array.isArray(t)?y.on(this.el_,t,p.bind(this,e)):function(){var r=t,i=e,s=p.bind(n,o),a=function(){return n.off(r,i,s)};a.guid=s.guid,n.on("dispose",a);var l=function(){return n.off("dispose",a)};l.guid=s.guid,t.nodeName?(y.on(r,i,s),y.on(r,"dispose",l)):"function"==typeof t.on&&(r.on(i,s),r.on("dispose",l))}(),this},t.prototype.off=function(t,e,o){if(!t||"string"==typeof t||Array.isArray(t))y.off(this.el_,t,e);else{var n=t,r=e,i=p.bind(this,o);this.off("dispose",i),t.nodeName?(y.off(n,r,i),y.off(n,"dispose",i)):(n.off(r,i),n.off("dispose",i))}return this},t.prototype.one=function(t,e,o){var n,r,i,s,a=this,l=arguments;return"string"==typeof t||Array.isArray(t)?y.one(this.el_,t,p.bind(this,e)):(n=t,r=e,i=p.bind(a,o),s=function t(){a.off(n,r,t),i.apply(null,l)},s.guid=i.guid,a.on(n,r,s)),this},t.prototype.trigger=function(t,e){return y.trigger(this.el_,t,e),this},t.prototype.ready=function(t){var e=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];return t&&(this.isReady_?e?t.call(this):this.setTimeout(t,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(t))),this},t.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},t.prototype.$=function(t,e){return u.$(t,e||this.contentEl())},t.prototype.$$=function(t,e){return u.$$(t,e||this.contentEl())},t.prototype.hasClass=function(t){return u.hasElClass(this.el_,t)},t.prototype.addClass=function(t){return u.addElClass(this.el_,t),this},t.prototype.removeClass=function(t){return u.removeElClass(this.el_,t),this},t.prototype.toggleClass=function(t,e){return u.toggleElClass(this.el_,t,e),this},t.prototype.show=function(){return this.removeClass("vjs-hidden"),this},t.prototype.hide=function(){return this.addClass("vjs-hidden"),this},t.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},t.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},t.prototype.width=function(t,e){return this.dimension("width",t,e)},t.prototype.height=function(t,e){return this.dimension("height",t,e)},t.prototype.dimensions=function(t,e){return this.width(t,!0).height(e)},t.prototype.dimension=function(t,e,o){if(void 0!==e)return null!==e&&e==e||(e=0),-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?this.el_.style[t]=e:this.el_.style[t]="auto"===e?"":e+"px",o||this.trigger("resize"),this;if(!this.el_)return 0;var n=this.el_.style[t],r=n.indexOf("px");return-1!==r?parseInt(n.slice(0,r),10):parseInt(this.el_["offset"+_.default(t)],10)},t.prototype.currentDimension=function(t){var e=0;if("width"!==t&&"height"!==t)throw new Error("currentDimension only accepts width or height value");if("function"==typeof a.default.getComputedStyle){var o=a.default.getComputedStyle(this.el_);e=o.getPropertyValue(t)||o[t]}else if(this.el_.currentStyle){var n="offset"+_.default(t);e=this.el_[n]}return e=parseFloat(e),e},t.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.prototype.currentWidth=function(){return this.currentDimension("width")},t.prototype.currentHeight=function(){return this.currentDimension("height")},t.prototype.emitTapEvents=function(){var t=0,e=null,o=10,n=200,r=void 0;this.on("touchstart",function(o){1===o.touches.length&&(e=j.default({},o.touches[0]),t=(new Date).getTime(),r=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)r=!1;else if(e){var n=t.touches[0].pageX-e.pageX,i=t.touches[0].pageY-e.pageY,s=Math.sqrt(n*n+i*i);s>o&&(r=!1)}});var i=function(){r=!1};this.on("touchleave",i),this.on("touchcancel",i),this.on("touchend",function(o){if(e=null,!0===r){var i=(new Date).getTime()-t;i<n&&(o.preventDefault(),this.trigger("tap"))}})},t.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t=p.bind(this.player(),this.player().reportUserActivity),e=void 0;this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var o=function(o){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",o),this.on("touchcancel",o)}},t.prototype.setTimeout=function(t,e){t=p.bind(this,t);var o=a.default.setTimeout(t,e),n=function(){this.clearTimeout(o)};return n.guid="vjs-timeout-"+o,this.on("dispose",n),o},t.prototype.clearTimeout=function(t){a.default.clearTimeout(t);var e=function(){};return e.guid="vjs-timeout-"+t,this.off("dispose",e),t},t.prototype.setInterval=function(t,e){t=p.bind(this,t);var o=a.default.setInterval(t,e),n=function(){this.clearInterval(o)};return n.guid="vjs-interval-"+o,this.on("dispose",n),o},t.prototype.clearInterval=function(t){a.default.clearInterval(t);var e=function(){};return e.guid="vjs-interval-"+t,this.off("dispose",e),t},t.registerComponent=function(e,o){return t.components_||(t.components_={}),t.components_[e]=o,o},t.getComponent=function(e){return t.components_&&t.components_[e]?t.components_[e]:a.default&&a.default.videojs&&a.default.videojs[e]?(g.default.warn("The "+e+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),a.default.videojs[e]):void 0},t.extend=function(e){e=e||{},g.default.warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var o=e.init||e.init||this.prototype.init||this.prototype.init||function(){},n=function(){o.apply(this,arguments)};for(var r in n.prototype=Object.create(this.prototype),n.prototype.constructor=n,n.extend=t.extend,e)e.hasOwnProperty(r)&&(n.prototype[r]=e[r]);return n},t}();k.registerComponent("Component",k),o.default=k,e.exports=o.default},{"./utils/dom.js":143,"./utils/events.js":144,"./utils/fn.js":145,"./utils/guid.js":147,"./utils/log.js":148,"./utils/merge-options.js":149,"./utils/to-title-case.js":152,"global/window":2,"object.assign":45}],68:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../track-button.js"),l=r(a),u=t("../../component.js"),c=r(u),p=t("../../utils/fn.js"),f=(n(p),t("./audio-track-menu-item.js")),h=r(f),d=function(t){function e(o){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];i(this,e),n.tracks=o.audioTracks&&o.audioTracks(),t.call(this,o,n),this.el_.setAttribute("aria-label","Audio Menu")}return s(e,t),e.prototype.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},e.prototype.createItems=function(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],e=this.player_.audioTracks&&this.player_.audioTracks();if(!e)return t;for(var o=0;o<e.length;o++){var n=e[o];t.push(new h.default(this.player_,{selectable:!0,track:n}))}return t},e}(l.default);c.default.registerComponent("AudioTrackButton",d),o.default=d,e.exports=o.default},{"../../component.js":67,"../../utils/fn.js":145,"../track-button.js":98,"./audio-track-menu-item.js":69}],69:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../../menu/menu-item.js"),l=r(a),u=t("../../component.js"),c=r(u),p=t("../../utils/fn.js"),f=n(p),h=function(t){function e(o,n){var r=this;i(this,e);var s,a=n.track,l=o.audioTracks();n.label=a.label||a.language||"Unknown",n.selected=a.enabled,t.call(this,o,n),this.track=a,l&&(s=f.bind(r,r.handleTracksChange),l.addEventListener("change",s),r.on("dispose",function(){l.removeEventListener("change",s)}))}return s(e,t),e.prototype.handleClick=function(e){var o=this.player_.audioTracks();if(t.prototype.handleClick.call(this,e),o)for(var n=0;n<o.length;n++){var r=o[n];r===this.track&&(r.enabled=!0)}},e.prototype.handleTracksChange=function(t){this.selected(this.track.enabled)},e}(l.default);c.default.registerComponent("AudioTrackMenuItem",h),o.default=h,e.exports=o.default},{"../../component.js":67,"../../menu/menu-item.js":110,"../../utils/fn.js":145}],70:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../component.js"),a=n(s),l=t("./play-toggle.js"),u=(n(l),t("./time-controls/current-time-display.js")),c=(n(u),t("./time-controls/duration-display.js")),p=(n(c),t("./time-controls/time-divider.js")),f=(n(p),t("./time-controls/remaining-time-display.js")),h=(n(f),t("./live-display.js")),d=(n(h),t("./progress-control/progress-control.js")),y=(n(d),t("./fullscreen-toggle.js")),v=(n(y),t("./volume-control/volume-control.js")),g=(n(v),t("./volume-menu-button.js")),m=(n(g),t("./mute-toggle.js")),_=(n(m),t("./text-track-controls/chapters-button.js")),b=(n(_),t("./text-track-controls/descriptions-button.js")),j=(n(b),t("./text-track-controls/subtitles-button.js")),T=(n(j),t("./text-track-controls/captions-button.js")),w=(n(T),t("./audio-track-controls/audio-track-button.js")),k=(n(w),t("./playback-rate-menu/playback-rate-menu-button.js")),E=(n(k),t("./spacer-controls/custom-control-spacer.js")),C=(n(E),function(t){function e(){r(this,e),t.apply(this,arguments)}return i(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},e}(a.default));C.prototype.options_={loadEvent:"play",children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]},a.default.registerComponent("ControlBar",C),o.default=C,e.exports=o.default},{"../component.js":67,"./audio-track-controls/audio-track-button.js":68,"./fullscreen-toggle.js":71,"./live-display.js":72,"./mute-toggle.js":73,"./play-toggle.js":74,"./playback-rate-menu/playback-rate-menu-button.js":75,"./progress-control/progress-control.js":80,"./spacer-controls/custom-control-spacer.js":83,"./text-track-controls/captions-button.js":86,"./text-track-controls/chapters-button.js":87,"./text-track-controls/descriptions-button.js":89,"./text-track-controls/subtitles-button.js":91,"./time-controls/current-time-display.js":94,"./time-controls/duration-display.js":95,"./time-controls/remaining-time-display.js":96,"./time-controls/time-divider.js":97,"./volume-control/volume-control.js":100,"./volume-menu-button.js":102}],71:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../button.js"),a=n(s),l=t("../component.js"),u=n(l),c=function(t){function e(){r(this,e),t.apply(this,arguments)}return i(e,t),e.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.player_.isFullscreen()?(this.player_.exitFullscreen(),this.controlText("Fullscreen")):(this.player_.requestFullscreen(),this.controlText("Non-Fullscreen"))},e}(a.default);c.prototype.controlText_="Fullscreen",u.default.registerComponent("FullscreenToggle",c),o.default=c,e.exports=o.default},{"../button.js":64,"../component.js":67}],72:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../component"),l=r(a),u=t("../utils/dom.js"),c=n(u),p=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.updateShowing(),this.on(this.player(),"durationchange",this.updateShowing)}return s(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=c.createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"</span>"+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateShowing=function(){this.player().duration()===1/0?this.show():this.hide()},e}(l.default);l.default.registerComponent("LiveDisplay",p),o.default=p,e.exports=o.default},{"../component":67,"../utils/dom.js":143}],73:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../button"),l=r(a),u=t("../component"),c=r(u),p=t("../utils/dom.js"),f=n(p),h=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.on(o,"volumechange",this.update),o.tech_&&!1===o.tech_.featuresVolumeControl&&this.addClass("vjs-hidden"),this.on(o,"loadstart",function(){this.update(),!1===o.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return s(e,t),e.prototype.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.player_.muted(!this.player_.muted())},e.prototype.update=function(){var t=this.player_.volume(),e=3;0===t||this.player_.muted()?e=0:t<.33?e=1:t<.67&&(e=2);var o=this.player_.muted()?"Unmute":"Mute";this.controlText()!==o&&this.controlText(o);for(var n=0;n<4;n++)f.removeElClass(this.el_,"vjs-vol-"+n);f.addElClass(this.el_,"vjs-vol-"+e)},e}(l.default);h.prototype.controlText_="Mute",c.default.registerComponent("MuteToggle",h),o.default=h,e.exports=o.default},{"../button":64,"../component":67,"../utils/dom.js":143}],74:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../button.js"),a=n(s),l=t("../component.js"),u=n(l),c=function(t){function e(o,n){r(this,e),t.call(this,o,n),this.on(o,"play",this.handlePlay),this.on(o,"pause",this.handlePause)}return i(e,t),e.prototype.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},e.prototype.handlePlay=function(){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},e.prototype.handlePause=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},e}(a.default);c.prototype.controlText_="Play",u.default.registerComponent("PlayToggle",c),o.default=c,e.exports=o.default},{"../button.js":64,"../component.js":67}],75:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../../menu/menu-button.js"),l=r(a),u=t("../../menu/menu.js"),c=r(u),p=t("./playback-rate-menu-item.js"),f=r(p),h=t("../../component.js"),d=r(h),y=t("../../utils/dom.js"),v=n(y),g=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.updateVisibility(),this.updateLabel(),this.on(o,"loadstart",this.updateVisibility),this.on(o,"ratechange",this.updateLabel)}return s(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this);return this.labelEl_=v.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),e.appendChild(this.labelEl_),e},e.prototype.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},e.prototype.createMenu=function(){var t=new c.default(this.player()),e=this.playbackRates();if(e)for(var o=e.length-1;o>=0;o--)t.addChild(new f.default(this.player(),{rate:e[o]+"x"}));return t},e.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},e.prototype.handleClick=function(){for(var t=this.player().playbackRate(),e=this.playbackRates(),o=e[0],n=0;n<e.length;n++)if(e[n]>t){o=e[n];break}this.player().playbackRate(o)},e.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},e.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},e.prototype.updateVisibility=function(){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},e.prototype.updateLabel=function(){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},e}(l.default);g.prototype.controlText_="Playback Rate",d.default.registerComponent("PlaybackRateMenuButton",g),o.default=g,e.exports=o.default},{"../../component.js":67,"../../menu/menu-button.js":109,"../../menu/menu.js":111,"../../utils/dom.js":143,"./playback-rate-menu-item.js":76}],76:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../../menu/menu-item.js"),a=n(s),l=t("../../component.js"),u=n(l),c=function(t){function e(o,n){r(this,e);var i=n.rate,s=parseFloat(i,10);n.label=i,n.selected=1===s,t.call(this,o,n),this.label=i,this.rate=s,this.on(o,"ratechange",this.update)}return i(e,t),e.prototype.handleClick=function(){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},e.prototype.update=function(){this.selected(this.player().playbackRate()===this.rate)},e}(a.default);c.prototype.contentElType="button",u.default.registerComponent("PlaybackRateMenuItem",c),o.default=c,e.exports=o.default},{"../../component.js":67,"../../menu/menu-item.js":110}],77:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../../component.js"),l=r(a),u=t("../../utils/dom.js"),c=n(u),p=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.on(o,"progress",this.update)}return s(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},e.prototype.update=function(){var t=this.player_.buffered(),e=this.player_.duration(),o=this.player_.bufferedEnd(),n=this.el_.children,r=function(t,e){var o=t/e||0;return 100*(o>=1?1:o)+"%"};this.el_.style.width=r(o,e);for(var i=0;i<t.length;i++){var s=t.start(i),a=t.end(i),l=n[i];l||(l=this.el_.appendChild(c.createEl())),l.style.left=r(s,o),l.style.width=r(a-s,o)}for(i=n.length;i>t.length;i--)this.el_.removeChild(n[i-1])},e}(l.default);l.default.registerComponent("LoadProgressBar",p),o.default=p,e.exports=o.default},{"../../component.js":67,"../../utils/dom.js":143}],78:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("global/window"),l=r(a),u=t("../../component.js"),c=r(u),p=t("../../utils/dom.js"),f=n(p),h=t("../../utils/fn.js"),d=n(h),y=t("../../utils/format-time.js"),v=r(y),g=t("lodash-compat/function/throttle"),m=r(g),_=function(t){function e(o,n){var r=this;i(this,e),t.call(this,o,n),n.playerOptions&&n.playerOptions.controlBar&&n.playerOptions.controlBar.progressControl&&n.playerOptions.controlBar.progressControl.keepTooltipsInside&&(this.keepTooltipsInside=n.playerOptions.controlBar.progressControl.keepTooltipsInside),this.keepTooltipsInside&&(this.tooltip=f.createEl("div",{className:"vjs-time-tooltip"}),this.el().appendChild(this.tooltip),this.addClass("vjs-keep-tooltips-inside")),this.update(0,0),o.on("ready",function(){r.on(o.controlBar.progressControl.el(),"mousemove",m.default(d.bind(r,r.handleMouseMove),25))})}return s(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},e.prototype.handleMouseMove=function(t){var e=this.player_.duration(),o=this.calculateDistance(t)*e,n=t.pageX-f.findElPosition(this.el().parentNode).left;this.update(o,n)},e.prototype.update=function(t,e){var o=v.default(t,this.player_.duration());if(this.el().style.left=e+"px",this.el().setAttribute("data-current-time",o),this.keepTooltipsInside){var n=this.clampPosition_(e),r=e-n+1,i=parseFloat(l.default.getComputedStyle(this.tooltip).width),s=i/2;this.tooltip.innerHTML=o,this.tooltip.style.right="-"+(s-r)+"px"}},e.prototype.calculateDistance=function(t){return f.getPointerPosition(this.el().parentNode,t).x},e.prototype.clampPosition_=function(t){if(!this.keepTooltipsInside)return t;var e=parseFloat(l.default.getComputedStyle(this.player().el()).width),o=parseFloat(l.default.getComputedStyle(this.tooltip).width),n=o/2,r=t;return t<n?r=Math.ceil(n):t>e-n&&(r=Math.floor(e-n)),r},e}(c.default);c.default.registerComponent("MouseTimeDisplay",_),o.default=_,e.exports=o.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/fn.js":145,"../../utils/format-time.js":146,"global/window":2,"lodash-compat/function/throttle":7}],79:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{
constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../../component.js"),l=r(a),u=t("../../utils/fn.js"),c=n(u),p=t("../../utils/dom.js"),f=(n(p),t("../../utils/format-time.js")),h=r(f),d=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.updateDataAttr(),this.on(o,"timeupdate",this.updateDataAttr),o.ready(c.bind(this,this.updateDataAttr)),n.playerOptions&&n.playerOptions.controlBar&&n.playerOptions.controlBar.progressControl&&n.playerOptions.controlBar.progressControl.keepTooltipsInside&&(this.keepTooltipsInside=n.playerOptions.controlBar.progressControl.keepTooltipsInside),this.keepTooltipsInside&&this.addClass("vjs-keep-tooltips-inside")}return s(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},e.prototype.updateDataAttr=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",h.default(t,this.player_.duration()))},e}(l.default);l.default.registerComponent("PlayProgressBar",d),o.default=d,e.exports=o.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/fn.js":145,"../../utils/format-time.js":146}],80:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../../component.js"),a=n(s),l=t("./seek-bar.js"),u=(n(l),t("./mouse-time-display.js")),c=(n(u),function(t){function e(){r(this,e),t.apply(this,arguments)}return i(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},e}(a.default));c.prototype.options_={children:["seekBar"]},a.default.registerComponent("ProgressControl",c),o.default=c,e.exports=o.default},{"../../component.js":67,"./mouse-time-display.js":78,"./seek-bar.js":81}],81:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("global/window"),l=r(a),u=t("../../slider/slider.js"),c=r(u),p=t("../../component.js"),f=r(p),h=t("./load-progress-bar.js"),d=(r(h),t("./play-progress-bar.js")),y=(r(d),t("./tooltip-progress-bar.js")),v=(r(y),t("../../utils/fn.js")),g=n(v),m=t("../../utils/format-time.js"),_=r(m),b=t("object.assign"),j=(r(b),function(t){function e(o,n){i(this,e),t.call(this,o,n),this.on(o,"timeupdate",this.updateProgress),this.on(o,"ended",this.updateProgress),o.ready(g.bind(this,this.updateProgress)),n.playerOptions&&n.playerOptions.controlBar&&n.playerOptions.controlBar.progressControl&&n.playerOptions.controlBar.progressControl.keepTooltipsInside&&(this.keepTooltipsInside=n.playerOptions.controlBar.progressControl.keepTooltipsInside),this.keepTooltipsInside&&(this.tooltipProgressBar=this.addChild("TooltipProgressBar"))}return s(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},e.prototype.updateProgress=function(){if(this.updateAriaAttributes(this.el_),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_),this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var t=parseFloat(l.default.getComputedStyle(this.player().el()).width),e=parseFloat(l.default.getComputedStyle(this.tooltipProgressBar.tooltip).width),o=this.tooltipProgressBar.el().style;o.maxWidth=Math.floor(t-e/2)+"px",o.minWidth=Math.ceil(e/2)+"px",o.right="-"+e/2+"px"}},e.prototype.updateAriaAttributes=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();t.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),t.setAttribute("aria-valuetext",_.default(e,this.player_.duration()))},e.prototype.getPercent=function(){var t=this.player_.currentTime()/this.player_.duration();return t>=1?1:t},e.prototype.handleMouseDown=function(e){t.prototype.handleMouseDown.call(this,e),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause()},e.prototype.handleMouseMove=function(t){var e=this.calculateDistance(t)*this.player_.duration();e===this.player_.duration()&&(e-=.1),this.player_.currentTime(e)},e.prototype.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),this.player_.scrubbing(!1),this.videoWasPlaying&&this.player_.play()},e.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},e.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},e}(c.default));j.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},j.prototype.playerEvent="timeupdate",f.default.registerComponent("SeekBar",j),o.default=j,e.exports=o.default},{"../../component.js":67,"../../slider/slider.js":119,"../../utils/fn.js":145,"../../utils/format-time.js":146,"./load-progress-bar.js":77,"./play-progress-bar.js":79,"./tooltip-progress-bar.js":82,"global/window":2,"object.assign":45}],82:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../../component.js"),l=r(a),u=t("../../utils/fn.js"),c=n(u),p=t("../../utils/dom.js"),f=(n(p),t("../../utils/format-time.js")),h=r(f),d=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.updateDataAttr(),this.on(o,"timeupdate",this.updateDataAttr),o.ready(c.bind(this,this.updateDataAttr))}return s(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar",innerHTML:'<div class="vjs-time-tooltip"></div>\n        <span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"});return this.tooltip=e.querySelector(".vjs-time-tooltip"),e},e.prototype.updateDataAttr=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),e=h.default(t,this.player_.duration());this.el_.setAttribute("data-current-time",e),this.tooltip.innerHTML=e},e}(l.default);l.default.registerComponent("TooltipProgressBar",d),o.default=d,e.exports=o.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/fn.js":145,"../../utils/format-time.js":146}],83:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("./spacer.js"),a=n(s),l=t("../../component.js"),u=n(l),c=function(t){function e(){r(this,e),t.apply(this,arguments)}return i(e,t),e.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML="&nbsp;",e},e}(a.default);u.default.registerComponent("CustomControlSpacer",c),o.default=c,e.exports=o.default},{"../../component.js":67,"./spacer.js":84}],84:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../../component.js"),a=n(s),l=function(t){function e(){r(this,e),t.apply(this,arguments)}return i(e,t),e.prototype.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e}(a.default);a.default.registerComponent("Spacer",l),o.default=l,e.exports=o.default},{"../../component.js":67}],85:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("./text-track-menu-item.js"),a=n(s),l=t("../../component.js"),u=n(l),c=function(t){function e(o,n){r(this,e),n.track={kind:n.kind,player:o,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,t.call(this,o,n),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+n.kind+" settings dialog")}return i(e,t),e.prototype.handleClick=function(){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").el_.focus()},e}(a.default);u.default.registerComponent("CaptionSettingsMenuItem",c),o.default=c,e.exports=o.default},{"../../component.js":67,"./text-track-menu-item.js":93}],86:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("./text-track-button.js"),a=n(s),l=t("../../component.js"),u=n(l),c=t("./caption-settings-menu-item.js"),p=n(c),f=function(t){function e(o,n,i){r(this,e),t.call(this,o,n,i),this.el_.setAttribute("aria-label","Captions Menu")}return i(e,t),e.prototype.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},e.prototype.update=function(){var e=2;t.prototype.update.call(this),this.player().tech_&&this.player().tech_.featuresNativeTextTracks&&(e=1),this.items&&this.items.length>e?this.show():this.hide()},e.prototype.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||e.push(new p.default(this.player_,{kind:this.kind_})),t.prototype.createItems.call(this,e)},e}(a.default);f.prototype.kind_="captions",f.prototype.controlText_="Captions",u.default.registerComponent("CaptionsButton",f),o.default=f,e.exports=o.default},{"../../component.js":67,"./caption-settings-menu-item.js":85,"./text-track-button.js":92}],87:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("./text-track-button.js"),l=r(a),u=t("../../component.js"),c=r(u),p=t("./text-track-menu-item.js"),f=r(p),h=t("./chapters-track-menu-item.js"),d=r(h),y=t("../../menu/menu.js"),v=r(y),g=t("../../utils/dom.js"),m=n(g),_=t("../../utils/fn.js"),b=(n(_),t("../../utils/to-title-case.js")),j=r(b),T=t("global/window"),w=(r(T),function(t){function e(o,n,r){i(this,e),t.call(this,o,n,r),this.el_.setAttribute("aria-label","Chapters Menu")}return s(e,t),e.prototype.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},e.prototype.createItems=function(){var t=[],e=this.player_.textTracks();if(!e)return t;for(var o=0;o<e.length;o++){var n=e[o];n.kind===this.kind_&&t.push(new f.default(this.player_,{track:n}))}return t},e.prototype.createMenu=function(){for(var t=this,e=this.player_.textTracks()||[],o=void 0,n=this.items=[],r=0,i=e.length;r<i;r++){var s=e[r];if(s.kind===this.kind_){o=s;break}}var a=this.menu;if(void 0===a){a=new v.default(this.player_);var l=m.createEl("li",{className:"vjs-menu-title",innerHTML:j.default(this.kind_),tabIndex:-1});a.children_.unshift(l),m.insertElFirst(l,a.contentEl())}if(o&&null==o.cues){o.mode="hidden";var u=this.player_.remoteTextTrackEls().getTrackElementByTrack_(o);u&&u.addEventListener("load",function(e){return t.update()})}if(o&&o.cues&&o.cues.length>0){for(var c=o.cues,p=void 0,f=(r=0,c.length);r<f;r++){p=c[r];var h=new d.default(this.player_,{track:o,cue:p});n.push(h),a.addChild(h)}this.addChild(a)}return this.items.length>0&&this.show(),a},e}(l.default));w.prototype.kind_="chapters",w.prototype.controlText_="Chapters",c.default.registerComponent("ChaptersButton",w),o.default=w,e.exports=o.default},{"../../component.js":67,"../../menu/menu.js":111,"../../utils/dom.js":143,"../../utils/fn.js":145,"../../utils/to-title-case.js":152,"./chapters-track-menu-item.js":88,"./text-track-button.js":92,"./text-track-menu-item.js":93,"global/window":2}],88:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../../menu/menu-item.js"),l=r(a),u=t("../../component.js"),c=r(u),p=t("../../utils/fn.js"),f=n(p),h=function(t){function e(o,n){i(this,e);var r=n.track,s=n.cue,a=o.currentTime();n.label=s.text,n.selected=s.startTime<=a&&a<s.endTime,t.call(this,o,n),this.track=r,this.cue=s,r.addEventListener("cuechange",f.bind(this,this.update))}return s(e,t),e.prototype.handleClick=function(){t.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},e.prototype.update=function(){var t=this.cue,e=this.player_.currentTime();this.selected(t.startTime<=e&&e<t.endTime)},e}(l.default);c.default.registerComponent("ChaptersTrackMenuItem",h),o.default=h,e.exports=o.default},{"../../component.js":67,"../../menu/menu-item.js":110,"../../utils/fn.js":145}],89:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("./text-track-button.js"),l=r(a),u=t("../../component.js"),c=r(u),p=t("../../utils/fn.js"),f=n(p),h=function(t){function e(o,n,r){var s=this;i(this,e),t.call(this,o,n,r),this.el_.setAttribute("aria-label","Descriptions Menu");var a,l=o.textTracks();l&&(a=f.bind(s,s.handleTracksChange),l.addEventListener("change",a),s.on("dispose",function(){l.removeEventListener("change",a)}))}return s(e,t),e.prototype.handleTracksChange=function(t){for(var e=this.player().textTracks(),o=!1,n=0,r=e.length;n<r;n++){var i=e[n];if(i.kind!==this.kind_&&"showing"===i.mode){o=!0;break}}o?this.disable():this.enable()},e.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildCSSClass.call(this)},e}(l.default);h.prototype.kind_="descriptions",h.prototype.controlText_="Descriptions",c.default.registerComponent("DescriptionsButton",h),o.default=h,e.exports=o.default},{"../../component.js":67,"../../utils/fn.js":145,"./text-track-button.js":92}],90:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("./text-track-menu-item.js"),a=n(s),l=t("../../component.js"),u=n(l),c=function(t){function e(o,n){r(this,e),n.track={kind:n.kind,player:o,label:n.kind+" off",default:!1,mode:"disabled"},n.selectable=!0,t.call(this,o,n),this.selected(!0)}return i(e,t),e.prototype.handleTracksChange=function(t){for(var e=this.player().textTracks(),o=!0,n=0,r=e.length;n<r;n++){var i=e[n];if(i.kind===this.track.kind&&"showing"===i.mode){o=!1;break}}this.selected(o)},e}(a.default);u.default.registerComponent("OffTextTrackMenuItem",c),o.default=c,e.exports=o.default},{"../../component.js":67,"./text-track-menu-item.js":93}],91:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("./text-track-button.js"),a=n(s),l=t("../../component.js"),u=n(l),c=function(t){function e(o,n,i){r(this,e),t.call(this,o,n,i),this.el_.setAttribute("aria-label","Subtitles Menu")}return i(e,t),e.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},e}(a.default);c.prototype.kind_="subtitles",c.prototype.controlText_="Subtitles",u.default.registerComponent("SubtitlesButton",c),o.default=c,e.exports=o.default},{"../../component.js":67,"./text-track-button.js":92}],92:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../track-button.js"),l=r(a),u=t("../../component.js"),c=r(u),p=t("../../utils/fn.js"),f=(n(p),t("./text-track-menu-item.js")),h=r(f),d=t("./off-text-track-menu-item.js"),y=r(d),v=function(t){function e(o){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];i(this,e),n.tracks=o.textTracks(),t.call(this,o,n)}return s(e,t),e.prototype.createItems=function(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];t.push(new y.default(this.player_,{kind:this.kind_}));var e=this.player_.textTracks();if(!e)return t;for(var o=0;o<e.length;o++){var n=e[o];n.kind===this.kind_&&t.push(new h.default(this.player_,{selectable:!0,track:n}))}return t},e}(l.default);c.default.registerComponent("TextTrackButton",v),o.default=v,e.exports=o.default},{"../../component.js":67,"../../utils/fn.js":145,"../track-button.js":98,"./off-text-track-menu-item.js":90,"./text-track-menu-item.js":93}],93:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../../menu/menu-item.js"),l=r(a),u=t("../../component.js"),c=r(u),p=t("../../utils/fn.js"),f=n(p),h=t("global/window"),d=r(h),y=t("global/document"),v=r(y),g=function(t){function e(o,n){var r=this;i(this,e);var s,a,l=n.track,u=o.textTracks();n.label=l.label||l.language||"Unknown",n.selected=l.default||"showing"===l.mode,t.call(this,o,n),this.track=l,u&&(s=f.bind(r,r.handleTracksChange),u.addEventListener("change",s),r.on("dispose",function(){u.removeEventListener("change",s)})),u&&void 0===u.onchange&&(a=void 0,r.on(["tap","click"],function(){if("object"!=typeof d.default.Event)try{a=new d.default.Event("change")}catch(t){}a||(a=v.default.createEvent("Event"),a.initEvent("change",!0,!0)),u.dispatchEvent(a)}))}return s(e,t),e.prototype.handleClick=function(e){var o=this.track.kind,n=this.player_.textTracks();if(t.prototype.handleClick.call(this,e),n)for(var r=0;r<n.length;r++){var i=n[r];i.kind===o&&(i===this.track?i.mode="showing":i.mode="disabled")}},e.prototype.handleTracksChange=function(t){this.selected("showing"===this.track.mode)},e}(l.default);c.default.registerComponent("TextTrackMenuItem",g),o.default=g,e.exports=o.default},{"../../component.js":67,"../../menu/menu-item.js":110,"../../utils/fn.js":145,"global/document":1,"global/window":2}],94:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../../component.js"),l=r(a),u=t("../../utils/dom.js"),c=n(u),p=t("../../utils/format-time.js"),f=r(p),h=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.on(o,"timeupdate",this.updateContent)}return s(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.contentEl_=c.createEl("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>0:00'},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),e=this.localize("Current Time"),o=f.default(t,this.player_.duration());o!==this.formattedTime_&&(this.formattedTime_=o,this.contentEl_.innerHTML='<span class="vjs-control-text">'+e+"</span> "+o)},e}(l.default);l.default.registerComponent("CurrentTimeDisplay",h),o.default=h,e.exports=o.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/format-time.js":146}],95:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../../component.js"),l=r(a),u=t("../../utils/dom.js"),c=n(u),p=t("../../utils/format-time.js"),f=r(p),h=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.on(o,"timeupdate",this.updateContent),this.on(o,"loadedmetadata",this.updateContent)}return s(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=c.createEl("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"</span> 0:00"},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(){var t=this.player_.duration();if(t&&this.duration_!==t){this.duration_=t;var e=this.localize("Duration Time"),o=f.default(t);this.contentEl_.innerHTML='<span class="vjs-control-text">'+e+"</span> "+o}},e}(l.default);l.default.registerComponent("DurationDisplay",h),o.default=h,e.exports=o.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/format-time.js":146}],96:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../../component.js"),l=r(a),u=t("../../utils/dom.js"),c=n(u),p=t("../../utils/format-time.js"),f=r(p),h=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.on(o,"timeupdate",this.updateContent)}return s(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=c.createEl("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"</span> -0:00"},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(){if(this.player_.duration()){var t=this.localize("Remaining Time"),e=f.default(this.player_.remainingTime());e!==this.formattedTime_&&(this.formattedTime_=e,this.contentEl_.innerHTML='<span class="vjs-control-text">'+t+"</span> -"+e)}},e}(l.default);l.default.registerComponent("RemainingTimeDisplay",h),o.default=h,e.exports=o.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/format-time.js":146}],97:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../../component.js"),a=n(s),l=function(t){function e(){r(this,e),t.apply(this,arguments)}return i(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},e}(a.default);a.default.registerComponent("TimeDivider",l),o.default=l,e.exports=o.default},{"../../component.js":67}],98:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../menu/menu-button.js"),l=r(a),u=t("../component.js"),c=r(u),p=t("../utils/fn.js"),f=n(p),h=function(t){function e(o,n){i(this,e);var r=n.tracks;if(t.call(this,o,n),this.items.length<=1&&this.hide(),r){var s=f.bind(this,this.update);r.addEventListener("removetrack",s),r.addEventListener("addtrack",s),this.player_.on("dispose",function(){r.removeEventListener("removetrack",s),r.removeEventListener("addtrack",s)})}}return s(e,t),e}(l.default);c.default.registerComponent("TrackButton",h),o.default=h,e.exports=o.default},{"../component.js":67,"../menu/menu-button.js":109,"../utils/fn.js":145}],99:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0
;var a=t("../../slider/slider.js"),l=r(a),u=t("../../component.js"),c=r(u),p=t("../../utils/fn.js"),f=n(p),h=t("./volume-level.js"),d=(r(h),function(t){function e(o,n){i(this,e),t.call(this,o,n),this.on(o,"volumechange",this.updateARIAAttributes),o.ready(f.bind(this,this.updateARIAAttributes))}return s(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},e.prototype.handleMouseMove=function(t){this.checkMuted(),this.player_.volume(this.calculateDistance(t))},e.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},e.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},e.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},e.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},e.prototype.updateARIAAttributes=function(){var t=(100*this.player_.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},e}(l.default));d.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},d.prototype.playerEvent="volumechange",c.default.registerComponent("VolumeBar",d),o.default=d,e.exports=o.default},{"../../component.js":67,"../../slider/slider.js":119,"../../utils/fn.js":145,"./volume-level.js":101}],100:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../../component.js"),a=n(s),l=t("./volume-bar.js"),u=(n(l),function(t){function e(o,n){r(this,e),t.call(this,o,n),o.tech_&&!1===o.tech_.featuresVolumeControl&&this.addClass("vjs-hidden"),this.on(o,"loadstart",function(){!1===o.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return i(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},e}(a.default));u.prototype.options_={children:["volumeBar"]},a.default.registerComponent("VolumeControl",u),o.default=u,e.exports=o.default},{"../../component.js":67,"./volume-bar.js":99}],101:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../../component.js"),a=n(s),l=function(t){function e(){r(this,e),t.apply(this,arguments)}return i(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},e}(a.default);a.default.registerComponent("VolumeLevel",l),o.default=l,e.exports=o.default},{"../../component.js":67}],102:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../utils/fn.js"),l=r(a),u=t("../component.js"),c=n(u),p=t("../popup/popup.js"),f=n(p),h=t("../popup/popup-button.js"),d=n(h),y=t("./mute-toggle.js"),v=n(y),g=t("./volume-control/volume-bar.js"),m=n(g),_=function(t){function e(o){function n(){o.tech_&&!1===o.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];i(this,e),void 0===r.inline&&(r.inline=!0),void 0===r.vertical&&(r.inline?r.vertical=!1:r.vertical=!0),r.volumeBar=r.volumeBar||{},r.volumeBar.vertical=!!r.vertical,t.call(this,o,r),this.on(o,"volumechange",this.volumeUpdate),this.on(o,"loadstart",this.volumeUpdate),n.call(this),this.on(o,"loadstart",n),this.on(this.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),this.on(this.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),this.on(this.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),this.on(this.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")})}return s(e,t),e.prototype.buildCSSClass=function(){var e="";return e=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+t.prototype.buildCSSClass.call(this)+" "+e},e.prototype.createPopup=function(){var t=new f.default(this.player_,{contentElType:"div"}),e=new m.default(this.player_,this.options_.volumeBar);return t.addChild(e),this.menuContent=t,this.volumeBar=e,this.attachVolumeBarEvents(),t},e.prototype.handleClick=function(){v.default.prototype.handleClick.call(this),t.prototype.handleClick.call(this)},e.prototype.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],l.bind(this,this.handleMouseDown))},e.prototype.handleMouseDown=function(t){this.on(["mousemove","touchmove"],l.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},e.prototype.handleMouseUp=function(t){this.off(["mousemove","touchmove"],l.bind(this.volumeBar,this.volumeBar.handleMouseMove))},e}(d.default);_.prototype.volumeUpdate=v.default.prototype.update,_.prototype.controlText_="Mute",c.default.registerComponent("VolumeMenuButton",_),o.default=_,e.exports=o.default},{"../component.js":67,"../popup/popup-button.js":115,"../popup/popup.js":116,"../utils/fn.js":145,"./mute-toggle.js":73,"./volume-control/volume-bar.js":99}],103:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("./component"),l=r(a),u=t("./modal-dialog"),c=r(u),p=t("./utils/dom"),f=(n(p),t("./utils/merge-options")),h=r(f),d=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.on(o,"error",this.open)}return s(e,t),e.prototype.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},e.prototype.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(c.default);d.prototype.options_=h.default(c.default.prototype.options_,{fillAlways:!0,temporary:!1,uncloseable:!0}),l.default.registerComponent("ErrorDisplay",d),o.default=d,e.exports=o.default},{"./component":67,"./modal-dialog":112,"./utils/dom":143,"./utils/merge-options":149}],104:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}o.__esModule=!0;var r=t("./utils/events.js"),i=n(r),s=function(){};s.prototype.allowedEvents_={},s.prototype.on=function(t,e){var o=this.addEventListener;this.addEventListener=function(){},i.on(this,t,e),this.addEventListener=o},s.prototype.addEventListener=s.prototype.on,s.prototype.off=function(t,e){i.off(this,t,e)},s.prototype.removeEventListener=s.prototype.off,s.prototype.one=function(t,e){var o=this.addEventListener;this.addEventListener=function(){},i.one(this,t,e),this.addEventListener=o},s.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&&(t={type:e}),t=i.fixEvent(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),i.trigger(this,t)},s.prototype.dispatchEvent=s.prototype.trigger,o.default=s,e.exports=o.default},{"./utils/events.js":144}],105:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=t("./utils/log"),i=n(r),s=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.super_=e)},a=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=function(){t.apply(this,arguments)},n={};for(var r in"object"==typeof e?("function"==typeof e.init&&(i.default.warn("Constructor logic via init() is deprecated; please use constructor() instead."),e.constructor=e.init),e.constructor!==Object.prototype.constructor&&(o=e.constructor),n=e):"function"==typeof e&&(o=e),s(o,t),n)n.hasOwnProperty(r)&&(o.prototype[r]=n[r]);return o};o.default=a,e.exports=o.default},{"./utils/log":148}],106:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;for(var r=t("global/document"),i=n(r),s={},a=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],l=a[0],u=void 0,c=0;c<a.length;c++)if(a[c][1]in i.default){u=a[c];break}if(u)for(c=0;c<u.length;c++)s[l[c]]=u[c];o.default=s,e.exports=o.default},{"global/document":1}],107:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("./component"),a=n(s),l=function(t){function e(){r(this,e),t.apply(this,arguments)}return i(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},e}(a.default);a.default.registerComponent("LoadingSpinner",l),o.default=l,e.exports=o.default},{"./component":67}],108:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=t("object.assign"),i=n(r),s=function t(e){"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:"object"==typeof e&&i.default(this,e),this.message||(this.message=t.defaultMessages[this.code]||"")};s.prototype.code=0,s.prototype.message="",s.prototype.status=null,s.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],s.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var a=0;a<s.errorTypes.length;a++)s[s.errorTypes[a]]=a,s.prototype[s.errorTypes[a]]=a;o.default=s,e.exports=o.default},{"object.assign":45}],109:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../clickable-component.js"),l=r(a),u=t("../component.js"),c=r(u),p=t("./menu.js"),f=r(p),h=t("../utils/dom.js"),d=n(h),y=t("../utils/fn.js"),v=n(y),g=t("../utils/to-title-case.js"),m=r(g),_=function(t){function e(o){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];i(this,e),t.call(this,o,n),this.update(),this.enabled_=!0,this.el_.setAttribute("aria-haspopup","true"),this.el_.setAttribute("role","menuitem"),this.on("keydown",this.handleSubmenuKeyPress)}return s(e,t),e.prototype.update=function(){var t=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.el_.setAttribute("aria-expanded","false"),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},e.prototype.createMenu=function(){var t=new f.default(this.player_);if(this.options_.title){var e=d.createEl("li",{className:"vjs-menu-title",innerHTML:m.default(this.options_.title),tabIndex:-1});t.children_.unshift(e),d.insertElFirst(e,t.contentEl())}if(this.items=this.createItems(),this.items)for(var o=0;o<this.items.length;o++)t.addItem(this.items[o]);return t},e.prototype.createItems=function(){},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e.prototype.buildCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.one("mouseout",v.bind(this,function(){this.menu.unlockShowing(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},e.prototype.handleKeyPress=function(e){27===e.which||9===e.which?(this.buttonPressed_&&this.unpressButton(),9!==e.which&&e.preventDefault()):38===e.which||40===e.which?this.buttonPressed_||(this.pressButton(),e.preventDefault()):t.prototype.handleKeyPress.call(this,e)},e.prototype.handleSubmenuKeyPress=function(t){27!==t.which&&9!==t.which||(this.buttonPressed_&&this.unpressButton(),9!==t.which&&t.preventDefault())},e.prototype.pressButton=function(){this.enabled_&&(this.buttonPressed_=!0,this.menu.lockShowing(),this.el_.setAttribute("aria-expanded","true"),this.menu.focus())},e.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.el_.focus())},e.prototype.disable=function(){return this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.enabled_=!1,t.prototype.disable.call(this)},e.prototype.enable=function(){return this.enabled_=!0,t.prototype.enable.call(this)},e}(l.default);c.default.registerComponent("MenuButton",_),o.default=_,e.exports=o.default},{"../clickable-component.js":65,"../component.js":67,"../utils/dom.js":143,"../utils/fn.js":145,"../utils/to-title-case.js":152,"./menu.js":111}],110:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../clickable-component.js"),a=n(s),l=t("../component.js"),u=n(l),c=t("object.assign"),p=n(c),f=function(t){function e(o,n){r(this,e),t.call(this,o,n),this.selectable=n.selectable,this.selected(n.selected),this.selectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitem")}return i(e,t),e.prototype.createEl=function(e,o,n){return t.prototype.createEl.call(this,"li",p.default({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label),tabIndex:-1},o),n)},e.prototype.handleClick=function(){this.selected(!0)},e.prototype.selected=function(t){this.selectable&&(t?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(" ")))},e}(a.default);u.default.registerComponent("MenuItem",f),o.default=f,e.exports=o.default},{"../clickable-component.js":65,"../component.js":67,"object.assign":45}],111:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../component.js"),l=r(a),u=t("../utils/dom.js"),c=n(u),p=t("../utils/fn.js"),f=n(p),h=t("../utils/events.js"),d=n(h),y=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.focusedChild_=-1,this.on("keydown",this.handleKeyPress)}return s(e,t),e.prototype.addItem=function(t){this.addChild(t),t.on("click",f.bind(this,function(){this.unlockShowing()}))},e.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=c.createEl(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var o=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return o.setAttribute("role","presentation"),o.appendChild(this.contentEl_),d.on(o,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),o},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepForward()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepBack())},e.prototype.stepForward=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_+1),this.focus(t)},e.prototype.stepBack=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_-1),this.focus(t)},e.prototype.focus=function(){var t=arguments.length<=0||void 0===arguments[0]?0:arguments[0],e=this.children().slice(),o=e.length&&e[0].className&&/vjs-menu-title/.test(e[0].className);o&&e.shift(),e.length>0&&(t<0?t=0:t>=e.length&&(t=e.length-1),this.focusedChild_=t,e[t].el_.focus())},e}(l.default);l.default.registerComponent("Menu",y),o.default=y,e.exports=o.default},{"../component.js":67,"../utils/dom.js":143,"../utils/events.js":144,"../utils/fn.js":145}],112:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("./utils/dom"),l=r(a),u=t("./utils/fn"),c=r(u),p=t("./utils/log"),f=(n(p),t("./component")),h=n(f),d=t("./close-button"),y=(n(d),"vjs-modal-dialog"),v=27,g=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=l.createEl("div",{className:y+"-content"},{role:"document"}),this.descEl_=l.createEl("p",{className:y+"-description vjs-offscreen",id:this.el().getAttribute("aria-describedby")}),l.textContent(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}return s(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},e.prototype.buildCSSClass=function(){return y+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},e.prototype.handleKeyPress=function(t){t.which===v&&this.closeable()&&this.close()},e.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},e.prototype.description=function(){var t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},e.prototype.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!t.paused(),this.wasPlaying_&&t.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",c.bind(this,this.handleKeyPress)),t.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}return this},e.prototype.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.opened_},e.prototype.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&t.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",c.bind(this,this.handleKeyPress)),t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.options_.temporary&&this.dispose()}return this},e.prototype.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,o=this.getChild("closeButton");if(e&&!o){var n=this.contentEl_;this.contentEl_=this.el_,o=this.addChild("closeButton"),this.contentEl_=n,this.on(o,"close",this.close)}!e&&o&&(this.off(o,"close",this.close),this.removeChild(o),o.dispose())}return this.closeable_},e.prototype.fill=function(){return this.fillWith(this.content())},e.prototype.fillWith=function(t){var e=this.contentEl(),o=e.parentNode,n=e.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,o.removeChild(e),this.empty(),l.insertContent(e,t),this.trigger("modalfill"),n?o.insertBefore(e,n):o.appendChild(e),this},e.prototype.empty=function(){return this.trigger("beforemodalempty"),l.emptyEl(this.contentEl()),this.trigger("modalempty"),this},e.prototype.content=function(t){return void 0!==t&&(this.content_=t),this.content_},e}(h.default);g.prototype.options_={temporary:!0},h.default.registerComponent("ModalDialog",g),o.default=g,e.exports=o.default},{"./close-button":66,"./component":67,"./utils/dom":143,"./utils/fn":145,"./utils/log":148}],113:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("./component.js"),l=r(a),u=t("global/document"),c=r(u),p=t("global/window"),f=r(p),h=t("./utils/events.js"),d=n(h),y=t("./utils/dom.js"),v=n(y),g=t("./utils/fn.js"),m=n(g),_=t("./utils/guid.js"),b=n(_),j=t("./utils/browser.js"),T=n(j),w=t("./utils/log.js"),k=r(w),E=t("./utils/to-title-case.js"),C=r(E),O=t("./utils/time-ranges.js"),x=t("./utils/buffer.js"),S=t("./utils/stylesheet.js"),P=n(S),M=t("./fullscreen-api.js"),A=r(M),I=t("./media-error.js"),D=r(I),L=t("safe-json-parse/tuple"),N=r(L),F=t("object.assign"),R=r(F),B=t("./utils/merge-options.js"),H=r(B),V=t("./tracks/text-track-list-converter.js"),U=r(V),$=t("./tracks/audio-track-list.js"),W=r($),z=t("./tracks/video-track-list.js"),q=r(z),X=t("./tech/loader.js"),G=(r(X),t("./poster-image.js")),K=(r(G),t("./tracks/text-track-display.js")),Y=(r(K),t("./loading-spinner.js")),J=(r(Y),t("./big-play-button.js")),Q=(r(J),t("./control-bar/control-bar.js")),Z=(r(Q),t("./error-display.js")),tt=(r(Z),t("./tracks/text-track-settings.js")),et=(r(tt),t("./modal-dialog")),ot=r(et),nt=t("./tech/tech.js"),rt=r(nt),it=t("./tech/html5.js"),st=(r(it),function(t){function e(o,n,r){var s,a=this;if(i(this,e),o.id=o.id||"vjs_video_"+b.newGUID(),n=R.default(e.getTagSettings(o),n),n.initChildren=!1,n.createEl=!1,n.reportTouchActivity=!1,t.call(this,null,n,r),!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");this.tag=o,this.tagAttributes=o&&v.getElAttributes(o),this.language(this.options_.language),n.languages?(s={},Object.getOwnPropertyNames(n.languages).forEach(function(t){s[t.toLowerCase()]=n.languages[t]}),a.languages_=s):this.languages_=e.prototype.options_.languages,this.cache_={},this.poster_=n.poster||"",this.controls_=!!n.controls,o.controls=!1,this.scrubbing_=!1,this.el_=this.createEl();var l,u=H.default(this.options_);n.plugins&&(l=n.plugins,Object.getOwnPropertyNames(l).forEach(function(t){"function"==typeof this[t]?this[t](l[t]):k.default.error("Unable to find plugin:",t)},a)),this.options_.playerOptions=u,this.initChildren(),this.isAudio("audio"===o.nodeName.toLowerCase()),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label","audio player"):this.el_.setAttribute("aria-label","video player"),this.isAudio()&&this.addClass("vjs-audio"),this.flexNotSupported_()&&this.addClass("vjs-no-flex"),T.IS_IOS||this.addClass("vjs-workinghover"),e.players[this.id_]=this,this.userActive(!0),this.reportUserActivity(),this.listenForUserActivity_(),this.on("fullscreenchange",this.handleFullscreenChange_),this.on("stageclick",this.handleStageClick_)}return s(e,t),e.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_),e.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&this.tech_.dispose(),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var e=this.el_=t.prototype.createEl.call(this,"div"),o=this.tag;o.removeAttribute("width"),o.removeAttribute("height");var n=v.getElAttributes(o);if(Object.getOwnPropertyNames(n).forEach(function(t){"class"===t?e.className=n[t]:e.setAttribute(t,n[t])}),o.playerId=o.id,o.id+="_html5_api",o.className="vjs-tech",o.player=e.player=this,this.addClass("vjs-paused"),!0!==f.default.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=P.createStyleElement("vjs-styles-dimensions");var r=v.$(".vjs-styles-defaults"),i=v.$("head");i.insertBefore(this.styleEl_,r?r.nextSibling:i.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var s=o.getElementsByTagName("a"),a=0;a<s.length;a++){var l=s.item(a);v.addElClass(l,"vjs-hidden"),l.setAttribute("hidden","hidden")}return o.initNetworkState_=o.networkState,o.parentNode&&o.parentNode.insertBefore(e,o),v.insertElFirst(o,e),this.children_.unshift(o),this.el_=e,e},e.prototype.width=function(t){return this.dimension("width",t)},e.prototype.height=function(t){return this.dimension("height",t)},e.prototype.dimension=function(t,e){var o=t+"_";if(void 0===e)return this[o]||0;if(""===e)this[o]=void 0;else{var n=parseFloat(e);if(isNaN(n))return k.default.error('Improper value "'+e+'" supplied for for '+t),this;this[o]=n}return this.updateStyleEl_(),this},e.prototype.fluid=function(t){if(void 0===t)return!!this.fluid_;this.fluid_=!!t,t?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid")},e.prototype.aspectRatio=function(t){if(void 0===t)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()},e.prototype.updateStyleEl_=function(){if(!0!==f.default.VIDEOJS_NO_DYNAMIC_STYLE){var t=void 0,e=void 0,o=void 0,n=void 0;o=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9";var r=o.split(":"),i=r[1]/r[0];t=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/i:this.videoWidth()||300,e=void 0!==this.height_?this.height_:t*i,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),P.setTextContent(this.styleEl_,"\n      ."+n+" {\n        width: "+t+"px;\n        height: "+e+"px;\n      }\n\n      ."+n+".vjs-fluid {\n        padding-top: "+100*i+"%;\n      }\n    ")}else{var s="number"==typeof this.width_?this.width_:this.options_.width,a="number"==typeof this.height_?this.height_:this.options_.height,l=this.tech_&&this.tech_.el();l&&(s>=0&&(l.width=s),a>=0&&(l.height=a))}},e.prototype.loadTech_=function(t,e){this.tech_&&this.unloadTech_(),"Html5"!==t&&this.tag&&(rt.default.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=t,this.isReady_=!1;var o=R.default({nativeControlsForTouch:this.options_.nativeControlsForTouch,source:e,playerId:this.id(),techId:this.id()+"_"+t+"_api",videoTracks:this.videoTracks_,textTracks:this.textTracks_,audioTracks:this.audioTracks_,autoplay:this.options_.autoplay,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),"vtt.js":this.options_["vtt.js"]},this.options_[t.toLowerCase()]);this.tag&&(o.tag=this.tag),e&&(this.currentType_=e.type,e.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime),this.cache_.src=e.src);var n=rt.default.getTech(t);n||(n=l.default.getComponent(t)),this.tech_=new n(o),this.tech_.ready(m.bind(this,this.handleTechReady_),!0),
U.default.jsonToTextTracks(this.textTracksJson_||[],this.tech_),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"progress",this.handleTechProgress_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"suspend",this.handleTechSuspend_),this.on(this.tech_,"abort",this.handleTechAbort_),this.on(this.tech_,"emptied",this.handleTechEmptied_),this.on(this.tech_,"stalled",this.handleTechStalled_),this.on(this.tech_,"loadedmetadata",this.handleTechLoadedMetaData_),this.on(this.tech_,"loadeddata",this.handleTechLoadedData_),this.on(this.tech_,"timeupdate",this.handleTechTimeUpdate_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.on(this.tech_,"volumechange",this.handleTechVolumeChange_),this.on(this.tech_,"texttrackchange",this.handleTechTextTrackChange_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===t&&this.tag||v.insertElFirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},e.prototype.unloadTech_=function(){this.videoTracks_=this.videoTracks(),this.textTracks_=this.textTracks(),this.audioTracks_=this.audioTracks(),this.textTracksJson_=U.default.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},e.prototype.tech=function(t){if(t&&t.IWillNotUseThisInPlugins)return this.tech_;var e="\n      Please make sure that you are not using this inside of a plugin.\n      To disable this alert and error, please pass in an object with\n      `IWillNotUseThisInPlugins` to the `tech` method. See\n      https://github.com/videojs/video.js/issues/2617 for more info.\n    ";throw f.default.alert(e),new Error(e)},e.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},e.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},e.prototype.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),this.src()&&this.tag&&this.options_.autoplay&&this.paused()&&(delete this.tag.poster,this.play())},e.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},e.prototype.hasStarted=function(t){return void 0!==t?(this.hasStarted_!==t&&(this.hasStarted_=t,t?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},e.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},e.prototype.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return t.removeClass("vjs-waiting")})},e.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},e.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},e.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},e.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},e.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},e.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime),this.addClass("vjs-has-started"),this.trigger("firstplay")},e.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},e.prototype.handleTechProgress_=function(){this.trigger("progress")},e.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},e.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},e.prototype.handleTechClick_=function(t){0===t.button&&this.controls()&&(this.paused()?this.play():this.pause())},e.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},e.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},e.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},e.prototype.handleTechTouchEnd_=function(t){t.preventDefault()},e.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},e.prototype.handleStageClick_=function(){this.reportUserActivity()},e.prototype.handleTechFullscreenChange_=function(t,e){e&&this.isFullscreen(e.isFullscreen),this.trigger("fullscreenchange")},e.prototype.handleTechError_=function(){var t=this.tech_.error();this.error(t&&t.code)},e.prototype.handleTechSuspend_=function(){this.trigger("suspend")},e.prototype.handleTechAbort_=function(){this.trigger("abort")},e.prototype.handleTechEmptied_=function(){this.trigger("emptied")},e.prototype.handleTechStalled_=function(){this.trigger("stalled")},e.prototype.handleTechLoadedMetaData_=function(){this.trigger("loadedmetadata")},e.prototype.handleTechLoadedData_=function(){this.trigger("loadeddata")},e.prototype.handleTechTimeUpdate_=function(){this.trigger("timeupdate")},e.prototype.handleTechRateChange_=function(){this.trigger("ratechange")},e.prototype.handleTechVolumeChange_=function(){this.trigger("volumechange")},e.prototype.handleTechTextTrackChange_=function(){this.trigger("texttrackchange")},e.prototype.getCache=function(){return this.cache_},e.prototype.techCall_=function(t,e){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[t](e)},!0);else try{this.tech_[t](e)}catch(t){throw k.default(t),t}},e.prototype.techGet_=function(t){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[t]()}catch(e){throw void 0===this.tech_[t]?k.default("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e):"TypeError"===e.name?(k.default("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1):k.default(e),e}},e.prototype.play=function(){return this.techCall_("play"),this},e.prototype.pause=function(){return this.techCall_("pause"),this},e.prototype.paused=function(){return!1!==this.techGet_("paused")},e.prototype.scrubbing=function(t){return void 0!==t?(this.scrubbing_=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},e.prototype.currentTime=function(t){return void 0!==t?(this.techCall_("setCurrentTime",t),this):this.cache_.currentTime=this.techGet_("currentTime")||0},e.prototype.duration=function(t){return void 0===t?this.cache_.duration||0:(t=parseFloat(t)||0,t<0&&(t=1/0),t!==this.cache_.duration&&(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},e.prototype.remainingTime=function(){return this.duration()-this.currentTime()},e.prototype.buffered=function(){var t=this.techGet_("buffered");return t&&t.length||(t=O.createTimeRange(0,0)),t},e.prototype.bufferedPercent=function(){return x.bufferedPercent(this.buffered(),this.duration())},e.prototype.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),o=t.end(t.length-1);return o>e&&(o=e),o},e.prototype.volume=function(t){var e=void 0;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),this):(e=parseFloat(this.techGet_("volume")),isNaN(e)?1:e)},e.prototype.muted=function(t){return void 0!==t?(this.techCall_("setMuted",t),this):this.techGet_("muted")||!1},e.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},e.prototype.isFullscreen=function(t){return void 0!==t?(this.isFullscreen_=!!t,this):!!this.isFullscreen_},e.prototype.requestFullscreen=function(){var t=A.default;return this.isFullscreen(!0),t.requestFullscreen?(d.on(c.default,t.fullscreenchange,m.bind(this,function e(o){this.isFullscreen(c.default[t.fullscreenElement]),!1===this.isFullscreen()&&d.off(c.default,t.fullscreenchange,e),this.trigger("fullscreenchange")})),this.el_[t.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},e.prototype.exitFullscreen=function(){var t=A.default;return this.isFullscreen(!1),t.requestFullscreen?c.default[t.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},e.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=c.default.documentElement.style.overflow,d.on(c.default,"keydown",m.bind(this,this.fullWindowOnEscKey)),c.default.documentElement.style.overflow="hidden",v.addElClass(c.default.body,"vjs-full-window"),this.trigger("enterFullWindow")},e.prototype.fullWindowOnEscKey=function(t){27===t.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},e.prototype.exitFullWindow=function(){this.isFullWindow=!1,d.off(c.default,"keydown",this.fullWindowOnEscKey),c.default.documentElement.style.overflow=this.docOrigOverflow,v.removeElClass(c.default.body,"vjs-full-window"),this.trigger("exitFullWindow")},e.prototype.canPlayType=function(t){for(var e=void 0,o=0,n=this.options_.techOrder;o<n.length;o++){var r=C.default(n[o]),i=rt.default.getTech(r);if(i||(i=l.default.getComponent(r)),i){if(i.isSupported()&&(e=i.canPlayType(t),e))return e}else k.default.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},e.prototype.selectSource=function(t){var e=this.options_.techOrder.map(C.default).map(function(t){return[t,rt.default.getTech(t)||l.default.getComponent(t)]}).filter(function(t){var e=t[0],o=t[1];return o?o.isSupported():(k.default.error('The "'+e+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),o=function(t,e,o){var n=void 0;return t.some(function(t){return e.some(function(e){if(n=o(t,e),n)return!0})}),n},n=void 0,r=function(t){return function(e,o){return t(o,e)}},i=function(t,e){var o=t[0],n=t[1];if(n.canPlaySource(e))return{source:e,tech:o}};return n=this.options_.sourceOrder?o(t,e,r(i)):o(e,t,i),n||!1},e.prototype.src=function(t){if(void 0===t)return this.techGet_("src");var e=rt.default.getTech(this.techName_);return e||(e=l.default.getComponent(this.techName_)),Array.isArray(t)?this.sourceList_(t):"string"==typeof t?this.src({src:t}):t instanceof Object&&(t.type&&!e.canPlaySource(t)?this.sourceList_([t]):(this.cache_.src=t.src,this.currentType_=t.type||"",this.ready(function(){e.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),"auto"===this.options_.preload&&this.load(),this.options_.autoplay&&this.play()},!0))),this},e.prototype.sourceList_=function(t){var e=this.selectSource(t);e?e.tech===this.techName_?this.src(e.source):this.loadTech_(e.tech,e.source):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),this.triggerReady())},e.prototype.load=function(){return this.techCall_("load"),this},e.prototype.reset=function(){return this.loadTech_(C.default(this.options_.techOrder[0]),null),this.techCall_("reset"),this},e.prototype.currentSrc=function(){return this.techGet_("currentSrc")||this.cache_.src||""},e.prototype.currentType=function(){return this.currentType_||""},e.prototype.preload=function(t){return void 0!==t?(this.techCall_("setPreload",t),this.options_.preload=t,this):this.techGet_("preload")},e.prototype.autoplay=function(t){return void 0!==t?(this.techCall_("setAutoplay",t),this.options_.autoplay=t,this):this.techGet_("autoplay",t)},e.prototype.loop=function(t){return void 0!==t?(this.techCall_("setLoop",t),this.options_.loop=t,this):this.techGet_("loop")},e.prototype.poster=function(t){return void 0===t?this.poster_:(t||(t=""),this.poster_=t,this.techCall_("setPoster",t),this.trigger("posterchange"),this)},e.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},e.prototype.controls=function(t){return void 0!==t?(t=!!t,this.controls_!==t&&(this.controls_=t,this.usingNativeControls()&&this.techCall_("setControls",t),t?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_())),this):!!this.controls_},e.prototype.usingNativeControls=function(t){return void 0!==t?(t=!!t,this.usingNativeControls_!==t&&(this.usingNativeControls_=t,t?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.usingNativeControls_},e.prototype.error=function(t){return void 0===t?this.error_||null:null===t?(this.error_=t,this.removeClass("vjs-error"),this.errorDisplay.close(),this):(t instanceof D.default?this.error_=t:this.error_=new D.default(t),this.addClass("vjs-error"),k.default.error("(CODE:"+this.error_.code+" "+D.default.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),this)},e.prototype.ended=function(){return this.techGet_("ended")},e.prototype.seeking=function(){return this.techGet_("seeking")},e.prototype.seekable=function(){return this.techGet_("seekable")},e.prototype.reportUserActivity=function(t){this.userActivity_=!0},e.prototype.userActive=function(t){return void 0!==t?(t=!!t,t!==this.userActive_&&(this.userActive_=t,t?(this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.userActivity_=!1,this.tech_&&this.tech_.one("mousemove",function(t){t.stopPropagation(),t.preventDefault()}),this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive"))),this):this.userActive_},e.prototype.listenForUserActivity_=function(){var t=void 0,e=void 0,o=void 0,n=m.bind(this,this.reportUserActivity),r=function(t){t.screenX===e&&t.screenY===o||(e=t.screenX,o=t.screenY,n())},i=function(){n(),this.clearInterval(t),t=this.setInterval(n,250)},s=function(e){n(),this.clearInterval(t)};this.on("mousedown",i),this.on("mousemove",r),this.on("mouseup",s),this.on("keydown",n),this.on("keyup",n);var a=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(a);var t=this.options_.inactivityTimeout;t>0&&(a=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},t))}},250)},e.prototype.playbackRate=function(t){return void 0!==t?(this.techCall_("setPlaybackRate",t),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},e.prototype.isAudio=function(t){return void 0!==t?(this.isAudio_=!!t,this):!!this.isAudio_},e.prototype.networkState=function(){return this.techGet_("networkState")},e.prototype.readyState=function(){return this.techGet_("readyState")},e.prototype.videoTracks=function(){return this.tech_?this.tech_.videoTracks():(this.videoTracks_=this.videoTracks_||new q.default,this.videoTracks_)},e.prototype.audioTracks=function(){return this.tech_?this.tech_.audioTracks():(this.audioTracks_=this.audioTracks_||new W.default,this.audioTracks_)},e.prototype.textTracks=function(){return this.tech_&&this.tech_.textTracks()},e.prototype.remoteTextTracks=function(){return this.tech_&&this.tech_.remoteTextTracks()},e.prototype.remoteTextTrackEls=function(){return this.tech_&&this.tech_.remoteTextTrackEls()},e.prototype.addTextTrack=function(t,e,o){return this.tech_&&this.tech_.addTextTrack(t,e,o)},e.prototype.addRemoteTextTrack=function(t){return this.tech_&&this.tech_.addRemoteTextTrack(t)},e.prototype.removeRemoteTextTrack=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=t.track,o=void 0===e?arguments[0]:e;this.tech_&&this.tech_.removeRemoteTextTrack(o)},e.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},e.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},e.prototype.language=function(t){return void 0===t?this.language_:(this.language_=(""+t).toLowerCase(),this)},e.prototype.languages=function(){return H.default(e.prototype.options_.languages,this.languages_)},e.prototype.toJSON=function(){var t=H.default(this.options_),e=t.tracks;t.tracks=[];for(var o=0;o<e.length;o++){var n=e[o];n=H.default(n),n.player=void 0,t.tracks[o]=n}return t},e.prototype.createModal=function(t,e){var o=this;e=e||{},e.content=t||"";var n=new ot.default(o,e);return o.addChild(n),n.on("dispose",function(){o.removeChild(n)}),n.open()},e.getTagSettings=function(t){var e={sources:[],tracks:[]},o=v.getElAttributes(t),n=o["data-setup"];if(null!==n){var r=N.default(n||"{}"),i=r[0],s=r[1];i&&k.default.error(i),R.default(o,s)}if(R.default(e,o),t.hasChildNodes())for(var a=t.childNodes,l=0,u=a.length;l<u;l++){var c=a[l],p=c.nodeName.toLowerCase();"source"===p?e.sources.push(v.getElAttributes(c)):"track"===p&&e.tracks.push(v.getElAttributes(c))}return e},e}(l.default));st.players={};var at=f.default.navigator;st.prototype.options_={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:c.default.getElementsByTagName("html")[0].getAttribute("lang")||at.languages&&at.languages[0]||at.userLanguage||at.language||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."},st.prototype.handleLoadedMetaData_,st.prototype.handleLoadedData_,st.prototype.handleUserActive_,st.prototype.handleUserInactive_,st.prototype.handleTimeUpdate_,st.prototype.handleTechEnded_,st.prototype.handleVolumeChange_,st.prototype.handleError_,st.prototype.flexNotSupported_=function(){var t=c.default.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},l.default.registerComponent("Player",st),o.default=st,e.exports=o.default},{"./big-play-button.js":63,"./component.js":67,"./control-bar/control-bar.js":70,"./error-display.js":103,"./fullscreen-api.js":106,"./loading-spinner.js":107,"./media-error.js":108,"./modal-dialog":112,"./poster-image.js":117,"./tech/html5.js":122,"./tech/loader.js":123,"./tech/tech.js":124,"./tracks/audio-track-list.js":125,"./tracks/text-track-display.js":130,"./tracks/text-track-list-converter.js":131,"./tracks/text-track-settings.js":133,"./tracks/video-track-list.js":138,"./utils/browser.js":140,"./utils/buffer.js":141,"./utils/dom.js":143,"./utils/events.js":144,"./utils/fn.js":145,"./utils/guid.js":147,"./utils/log.js":148,"./utils/merge-options.js":149,"./utils/stylesheet.js":150,"./utils/time-ranges.js":151,"./utils/to-title-case.js":152,"global/document":1,"global/window":2,"object.assign":45,"safe-json-parse/tuple":54}],114:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=t("./player.js"),i=n(r),s=function(t,e){i.default.prototype[t]=e};o.default=s,e.exports=o.default},{"./player.js":113}],115:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../clickable-component.js"),l=r(a),u=t("../component.js"),c=r(u),p=t("./popup.js"),f=(r(p),t("../utils/dom.js")),h=(n(f),t("../utils/fn.js")),d=(n(h),t("../utils/to-title-case.js")),y=(r(d),function(t){function e(o){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];i(this,e),t.call(this,o,n),this.update()}return s(e,t),e.prototype.update=function(){var t=this.createPopup();this.popup&&this.removeChild(this.popup),this.popup=t,this.addChild(t),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},e.prototype.createPopup=function(){},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e.prototype.buildCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+t.prototype.buildCSSClass.call(this)},e}(l.default));c.default.registerComponent("PopupButton",y),o.default=y,e.exports=o.default},{"../clickable-component.js":65,"../component.js":67,"../utils/dom.js":143,"../utils/fn.js":145,"../utils/to-title-case.js":152,"./popup.js":116}],116:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../component.js"),l=r(a),u=t("../utils/dom.js"),c=n(u),p=t("../utils/fn.js"),f=n(p),h=t("../utils/events.js"),d=n(h),y=function(t){function e(){i(this,e),t.apply(this,arguments)}return s(e,t),e.prototype.addItem=function(t){this.addChild(t),t.on("click",f.bind(this,function(){this.unlockShowing()}))},e.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=c.createEl(e,{className:"vjs-menu-content"});var o=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return o.appendChild(this.contentEl_),d.on(o,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),o},e}(l.default);l.default.registerComponent("Popup",y),o.default=y,e.exports=o.default},{"../component.js":67,"../utils/dom.js":143,"../utils/events.js":144,"../utils/fn.js":145}],117:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("./clickable-component.js"),l=r(a),u=t("./component.js"),c=r(u),p=t("./utils/fn.js"),f=n(p),h=t("./utils/dom.js"),d=n(h),y=t("./utils/browser.js"),v=(n(y),function(t){function e(o,n){i(this,e),t.call(this,o,n),this.update(),o.on("posterchange",f.bind(this,this.update))}return s(e,t),e.prototype.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var t=d.createEl("div",{className:"vjs-poster",tabIndex:-1});return this.fallbackImg_=d.createEl("img"),t.appendChild(this.fallbackImg_),t},e.prototype.update=function(){var t=this.player().options_.lazy;this.setSrc(t),t?this.show():this.hide()},e.prototype.setSrc=function(t){if(this.fallbackImg_)this.fallbackImg_.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",this.fallbackImg_.setAttribute("data-src",t),this.fallbackImg_.classList.add("lazy");else{var e="";t&&(e='url("'+t+'")'),this.el_.style.backgroundImage=e}},e.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},e}(l.default));c.default.registerComponent("PosterImage",v),o.default=v,e.exports=o.default},{"./clickable-component.js":65,"./component.js":67,"./utils/browser.js":140,"./utils/dom.js":143,"./utils/fn.js":145}],118:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}o.__esModule=!0;var i=t("./utils/events.js"),s=r(i),a=t("global/document"),l=n(a),u=t("global/window"),c=n(u),p=!1,f=void 0,h=function(){var t=l.default.getElementsByTagName("video"),e=l.default.getElementsByTagName("audio"),o=[];if(t&&t.length>0)for(var n=0,r=t.length;n<r;n++)o.push(t[n]);if(e&&e.length>0)for(n=0,r=e.length;n<r;n++)o.push(e[n]);if(o&&o.length>0)for(n=0,r=o.length;n<r;n++){var i=o[n];if(!i||!i.getAttribute){d(1);break}if(void 0===i.player){var s=i.getAttribute("data-setup");if(null!==s)f(i)}}else p||d(1)},d=function(t,e){e&&(f=e),setTimeout(h,t)};"complete"===l.default.readyState?p=!0:s.one(c.default,"load",function(){p=!0});var y=function(){return p};o.autoSetup=h,o.autoSetupTimeout=d,o.hasLoaded=y},{"./utils/events.js":144,"global/document":1,"global/window":2}],119:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../component.js"),l=r(a),u=t("../utils/dom.js"),c=n(u),p=t("object.assign"),f=r(p),h=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(o,"controlsvisible",this.update),this.on(o,this.playerEvent,this.update)}return s(e,t),e.prototype.createEl=function(e){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];return o.className=o.className+" vjs-slider",o=f.default({tabIndex:0},o),n=f.default({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},n),t.prototype.createEl.call(this,e,o,n)},e.prototype.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;t.preventDefault(),c.blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(e,"mousemove",this.handleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchmove",this.handleMouseMove),this.on(e,"touchend",this.handleMouseUp),this.handleMouseMove(t)},e.prototype.handleMouseMove=function(){},e.prototype.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;c.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(),e=this.bar;if(e){("number"!=typeof t||t!=t||t<0||t===1/0)&&(t=0);var o=(100*t).toFixed(2)+"%";this.vertical()?e.el().style.height=o:e.el().style.width=o}}},e.prototype.calculateDistance=function(t){var e=c.getPointerPosition(this.el_,t);return this.vertical()?e.y:e.x},e.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepBack()):38!==t.which&&39!==t.which||(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 void 0===t?this.vertical_||!1:(this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},e}(l.default);l.default.registerComponent("Slider",h),o.default=h,e.exports=o.default},{"../component.js":67,"../utils/dom.js":143,"object.assign":45}],120:[function(t,e,o){"use strict";function n(t){return t.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},t.streamFromParts=function(t,e){return t+"&"+e},t.streamToParts=function(t){var e={connection:"",stream:""};if(!t)return e;var o=t.search(/&(?!\w+=)/),n=void 0;return-1!==o?n=o+1:(o=n=t.lastIndexOf("/")+1,0===o&&(o=n=t.length)),e.connection=t.substring(0,o),e.stream=t.substring(n,t.length),e},t.isStreamingType=function(e){return e in t.streamingFormats},t.RTMP_RE=/^rtmp[set]?:\/\//i,t.isStreamingSrc=function(e){return t.RTMP_RE.test(e)},t.rtmpSourceHandler={},t.rtmpSourceHandler.canPlayType=function(e){return t.isStreamingType(e)?"maybe":""},t.rtmpSourceHandler.canHandleSource=function(e){var o=t.rtmpSourceHandler.canPlayType(e.type);return o||(t.isStreamingSrc(e.src)?"maybe":"")},t.rtmpSourceHandler.handleSource=function(e,o,n){var r=t.streamToParts(e.src);o.setRtmpConnection(r.connection),o.setRtmpStream(r.stream)},t.registerSourceHandler(t.rtmpSourceHandler),t}o.__esModule=!0,o.default=n,e.exports=o.default},{}],121:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){
return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=t.charAt(0).toUpperCase()+t.slice(1);C["set"+e]=function(e){return this.el_.vjs_setProperty(t,e)}}function l(t){C[t]=function(){return this.el_.vjs_getProperty(t)}}o.__esModule=!0;for(var u=t("./tech"),c=r(u),p=t("../utils/dom.js"),f=n(p),h=t("../utils/url.js"),d=n(h),y=t("../utils/time-ranges.js"),v=t("./flash-rtmp"),g=r(v),m=t("../component"),_=r(m),b=t("global/window"),j=r(b),T=t("object.assign"),w=r(T),k=j.default.navigator,E=function(t){function e(o,n){i(this,e),t.call(this,o,n),o.source&&this.ready(function(){this.setSource(o.source)},!0),o.startTime&&this.ready(function(){this.load(),this.play(),this.currentTime(o.startTime)},!0),j.default.videojs=j.default.videojs||{},j.default.videojs.Flash=j.default.videojs.Flash||{},j.default.videojs.Flash.onReady=e.onReady,j.default.videojs.Flash.onEvent=e.onEvent,j.default.videojs.Flash.onError=e.onError,this.on("seeked",function(){this.lastSeekTarget_=void 0})}return s(e,t),e.prototype.createEl=function(){var t=this.options_;t.swf||(t.swf="//vjs.zencdn.net/swf/5.0.1/video-js.swf");var o=t.techId,n=w.default({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:t.autoplay,preload:t.preload,loop:t.loop,muted:t.muted},t.flashVars),r=w.default({wmode:"opaque",bgcolor:"#000000"},t.params),i=w.default({id:o,name:o,class:"vjs-tech"},t.attributes);return this.el_=e.embed(t.swf,n,r,i),this.el_.tech=this,this.el_},e.prototype.play=function(){this.ended()&&this.setCurrentTime(0),this.el_.vjs_play()},e.prototype.pause=function(){this.el_.vjs_pause()},e.prototype.src=function(t){return void 0===t?this.currentSrc():this.setSrc(t)},e.prototype.setSrc=function(t){if(t=d.getAbsoluteURL(t),this.el_.vjs_src(t),this.autoplay()){var e=this;this.setTimeout(function(){e.play()},0)}},e.prototype.seeking=function(){return void 0!==this.lastSeekTarget_},e.prototype.setCurrentTime=function(e){var o=this.seekable();o.length&&(e=e>o.start(0)?e:o.start(0),e=e<o.end(o.length-1)?e:o.end(o.length-1),this.lastSeekTarget_=e,this.trigger("seeking"),this.el_.vjs_setProperty("currentTime",e),t.prototype.setCurrentTime.call(this))},e.prototype.currentTime=function(t){return this.seeking()?this.lastSeekTarget_||0:this.el_.vjs_getProperty("currentTime")},e.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.vjs_getProperty("currentSrc")},e.prototype.load=function(){this.el_.vjs_load()},e.prototype.poster=function(){this.el_.vjs_getProperty("poster")},e.prototype.setPoster=function(){},e.prototype.seekable=function(){var t=this.duration();return 0===t?y.createTimeRange():y.createTimeRange(0,t)},e.prototype.buffered=function(){var t=this.el_.vjs_getProperty("buffered");return 0===t.length?y.createTimeRange():y.createTimeRange(t[0][0],t[0][1])},e.prototype.supportsFullScreen=function(){return!1},e.prototype.enterFullScreen=function(){return!1},e}(c.default),C=E.prototype,O="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(","),x="networkState,readyState,initialTime,duration,startOffsetTime,paused,ended,videoWidth,videoHeight".split(","),S=0;S<O.length;S++)l(O[S]),a(O[S]);for(S=0;S<x.length;S++)l(x[S]);E.isSupported=function(){return E.version()[0]>=10},c.default.withSourceHandlers(E),E.nativeSourceHandler={},E.nativeSourceHandler.canPlayType=function(t){return t in E.formats?"maybe":""},E.nativeSourceHandler.canHandleSource=function(t){function e(t){var e=d.getFileExtension(t);return e?"video/"+e:""}var o;return o=t.type?t.type.replace(/;.*/,"").toLowerCase():e(t.src),E.nativeSourceHandler.canPlayType(o)},E.nativeSourceHandler.handleSource=function(t,e,o){e.setSrc(t.src)},E.nativeSourceHandler.dispose=function(){},E.registerSourceHandler(E.nativeSourceHandler),E.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},E.onReady=function(t){var e=f.getEl(t),o=e&&e.tech;o&&o.el()&&E.checkReady(o)},E.checkReady=function(t){t.el()&&(t.el().vjs_getProperty?t.triggerReady():this.setTimeout(function(){E.checkReady(t)},50))},E.onEvent=function(t,e){var o=f.getEl(t).tech;o.trigger(e)},E.onError=function(t,e){var o=f.getEl(t).tech;if("srcnotfound"===e)return o.error(4);o.error("FLASH: "+e)},E.version=function(){var t="0,0,0";try{t=new j.default.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(e){try{k.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(t=(k.plugins["Shockwave Flash 2.0"]||k.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(t){}}return t.split(",")},E.embed=function(t,e,o,n){var r=E.getEmbedCode(t,e,o,n),i=f.createEl("div",{innerHTML:r}).childNodes[0];return i},E.getEmbedCode=function(t,e,o,n){var r='<object type="application/x-shockwave-flash" ',i="",s="",a="";return e&&Object.getOwnPropertyNames(e).forEach(function(t){i+=t+"="+e[t]+"&amp;"}),o=w.default({movie:t,flashvars:i,allowScriptAccess:"always",allowNetworking:"all"},o),Object.getOwnPropertyNames(o).forEach(function(t){s+='<param name="'+t+'" value="'+o[t]+'" />'}),n=w.default({data:t,width:"100%",height:"100%"},n),Object.getOwnPropertyNames(n).forEach(function(t){a+=t+'="'+n[t]+'" '}),""+r+a+">"+s+"</object>"},g.default(E),_.default.registerComponent("Flash",E),c.default.registerTech("Flash",E),o.default=E,e.exports=o.default},{"../component":67,"../utils/dom.js":143,"../utils/time-ranges.js":151,"../utils/url.js":153,"./flash-rtmp":120,"./tech":124,"global/window":2,"object.assign":45}],122:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e){return t.raw=e,t}o.__esModule=!0;var l=a(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used. \n            This may prevent text tracks from loading."],["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used. \n            This may prevent text tracks from loading."]),u=t("./tech.js"),c=r(u),p=t("../component"),f=r(p),h=t("../utils/dom.js"),d=n(h),y=t("../utils/url.js"),v=n(y),g=t("../utils/fn.js"),m=n(g),_=t("../utils/log.js"),b=r(_),j=t("tsml"),T=r(j),w=t("../../../src/js/tracks/text-track.js"),k=(r(w),t("../utils/browser.js")),E=n(k),C=t("global/document"),O=r(C),x=t("global/window"),S=r(x),P=t("object.assign"),M=r(P),A=t("../utils/merge-options.js"),I=r(A),D=t("../utils/to-title-case.js"),L=r(D),N=function(t){function e(o,n){var r=this;i(this,e),t.call(this,o,n);var s=o.source,a=!1;if(s&&(this.el_.currentSrc!==s.src||o.tag&&3===o.tag.initNetworkState_)?this.setSource(s):this.handleLateInit_(this.el_),this.el_.hasChildNodes()){for(var u=this.el_.childNodes,c=u.length,p=[];c--;){var f=u[c],h=f.nodeName.toLowerCase();"track"===h&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(f),this.remoteTextTracks().addTrack_(f.track),a||this.el_.hasAttribute("crossorigin")||!v.isCrossOrigin(f.src)||(a=!0)):p.push(f))}for(var d=0;d<p.length;d++)this.el_.removeChild(p[d])}var y=["audio","video"];y.forEach(function(t){var e=L.default(t);if(r["featuresNative"+e+"Tracks"]){var o=r.el()[t+"Tracks"];o&&o.addEventListener&&(o.addEventListener("change",m.bind(r,r["handle"+e+"TrackChange_"])),o.addEventListener("addtrack",m.bind(r,r["handle"+e+"TrackAdd_"])),o.addEventListener("removetrack",m.bind(r,r["handle"+e+"TrackRemove_"])))}}),this.featuresNativeTextTracks&&(a&&b.default.warn(T.default(l)),this.handleTextTrackChange_=m.bind(this,this.handleTextTrackChange),this.handleTextTrackAdd_=m.bind(this,this.handleTextTrackAdd),this.handleTextTrackRemove_=m.bind(this,this.handleTextTrackRemove),this.proxyNativeTextTracks_()),(E.TOUCH_ENABLED&&!0===o.nativeControlsForTouch||E.IS_IPHONE||E.IS_NATIVE_ANDROID)&&this.setControls(!0),this.triggerReady()}return s(e,t),e.prototype.dispose=function(){var o=this;["audio","video","text"].forEach(function(t){var e=L.default(t),n=o.el_[t+"Tracks"];n&&n.removeEventListener&&(n.removeEventListener("change",o["handle"+e+"TrackChange_"]),n.removeEventListener("addtrack",o["handle"+e+"TrackAdd_"]),n.removeEventListener("removetrack",o["handle"+e+"TrackRemove_"]))}),e.disposeMediaElement(this.el_),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var t=this.options_.tag;if(!t||!1===this.movingMediaElementInDOM)if(t){var o=t.cloneNode(!0);t.parentNode.insertBefore(o,t),e.disposeMediaElement(t),t=o}else{t=O.default.createElement("video");var n=this.options_.tag&&d.getElAttributes(this.options_.tag),r=I.default({},n);E.TOUCH_ENABLED&&!0===this.options_.nativeControlsForTouch||delete r.controls,d.setElAttributes(t,M.default(r,{id:this.options_.techId,class:"vjs-tech"}))}for(var i=["autoplay","preload","loop","muted"],s=i.length-1;s>=0;s--){var a=i[s],l={};void 0!==this.options_[a]&&(l[a]=this.options_[a]),d.setElAttributes(t,l)}return t},e.prototype.handleLateInit_=function(t){var e=this;if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var o=function(){var t=!1,o=function(){t=!0};e.on("loadstart",o);var n=function(){t||this.trigger("loadstart")};return e.on("loadedmetadata",n),e.ready(function(){this.off("loadstart",o),this.off("loadedmetadata",n),t||this.trigger("loadstart")}),{v:void 0}}();if("object"==typeof o)return o.v}var n=["loadstart"];n.push("loadedmetadata"),t.readyState>=2&&n.push("loadeddata"),t.readyState>=3&&n.push("canplay"),t.readyState>=4&&n.push("canplaythrough"),this.ready(function(){n.forEach(function(t){this.trigger(t)},this)})}},e.prototype.proxyNativeTextTracks_=function(){var t=this.el().textTracks;if(t){for(var e=0;e<t.length;e++)this.textTracks().addTrack_(t[e]);t.addEventListener&&(t.addEventListener("change",this.handleTextTrackChange_),t.addEventListener("addtrack",this.handleTextTrackAdd_),t.addEventListener("removetrack",this.handleTextTrackRemove_))}},e.prototype.handleTextTrackChange=function(t){var e=this.textTracks();this.textTracks().trigger({type:"change",target:e,currentTarget:e,srcElement:e})},e.prototype.handleTextTrackAdd=function(t){this.textTracks().addTrack_(t.track)},e.prototype.handleTextTrackRemove=function(t){this.textTracks().removeTrack_(t.track)},e.prototype.handleVideoTrackChange_=function(t){var e=this.videoTracks();this.videoTracks().trigger({type:"change",target:e,currentTarget:e,srcElement:e})},e.prototype.handleVideoTrackAdd_=function(t){this.videoTracks().addTrack_(t.track)},e.prototype.handleVideoTrackRemove_=function(t){this.videoTracks().removeTrack_(t.track)},e.prototype.handleAudioTrackChange_=function(t){var e=this.audioTracks();this.audioTracks().trigger({type:"change",target:e,currentTarget:e,srcElement:e})},e.prototype.handleAudioTrackAdd_=function(t){this.audioTracks().addTrack_(t.track)},e.prototype.handleAudioTrackRemove_=function(t){this.audioTracks().removeTrack_(t.track)},e.prototype.play=function(){this.el_.play()},e.prototype.pause=function(){this.el_.pause()},e.prototype.paused=function(){return this.el_.paused},e.prototype.currentTime=function(){return this.el_.currentTime},e.prototype.setCurrentTime=function(t){try{this.el_.currentTime=t}catch(t){b.default(t,"Video is not ready. (Video.js)")}},e.prototype.duration=function(){return this.el_.duration||0},e.prototype.buffered=function(){return this.el_.buffered},e.prototype.volume=function(){return this.el_.volume},e.prototype.setVolume=function(t){this.el_.volume=t},e.prototype.muted=function(){return this.el_.muted},e.prototype.setMuted=function(t){this.el_.muted=t},e.prototype.width=function(){return this.el_.offsetWidth},e.prototype.height=function(){return this.el_.offsetHeight},e.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var t=S.default.navigator.userAgent;if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},e.prototype.enterFullScreen=function(){var t=this.el_;"webkitDisplayingFullscreen"in t&&this.one("webkitbeginfullscreen",function(){this.one("webkitendfullscreen",function(){this.trigger("fullscreenchange",{isFullscreen:!1})}),this.trigger("fullscreenchange",{isFullscreen:!0})}),t.paused&&t.networkState<=t.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){t.pause(),t.webkitEnterFullScreen()},0)):t.webkitEnterFullScreen()},e.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},e.prototype.src=function(t){if(void 0===t)return this.el_.src;this.setSrc(t)},e.prototype.setSrc=function(t){this.el_.src=t},e.prototype.load=function(){this.el_.load()},e.prototype.reset=function(){e.resetMediaElement(this.el_)},e.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},e.prototype.poster=function(){return this.el_.poster},e.prototype.setPoster=function(t){this.el_.poster=t},e.prototype.preload=function(){return this.el_.preload},e.prototype.setPreload=function(t){this.el_.preload=t},e.prototype.autoplay=function(){return this.el_.autoplay},e.prototype.setAutoplay=function(t){this.el_.autoplay=t},e.prototype.controls=function(){return this.el_.controls},e.prototype.setControls=function(t){this.el_.controls=!!t},e.prototype.loop=function(){return this.el_.loop},e.prototype.setLoop=function(t){this.el_.loop=t},e.prototype.error=function(){return this.el_.error},e.prototype.seeking=function(){return this.el_.seeking},e.prototype.seekable=function(){return this.el_.seekable},e.prototype.ended=function(){return this.el_.ended},e.prototype.defaultMuted=function(){return this.el_.defaultMuted},e.prototype.playbackRate=function(){return this.el_.playbackRate},e.prototype.played=function(){return this.el_.played},e.prototype.setPlaybackRate=function(t){this.el_.playbackRate=t},e.prototype.networkState=function(){return this.el_.networkState},e.prototype.readyState=function(){return this.el_.readyState},e.prototype.videoWidth=function(){return this.el_.videoWidth},e.prototype.videoHeight=function(){return this.el_.videoHeight},e.prototype.textTracks=function(){return t.prototype.textTracks.call(this)},e.prototype.addTextTrack=function(e,o,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,o,n):t.prototype.addTextTrack.call(this,e,o,n)},e.prototype.addRemoteTextTrack=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(!this.featuresNativeTextTracks)return t.prototype.addRemoteTextTrack.call(this,e);var o=O.default.createElement("track");return e.kind&&(o.kind=e.kind),e.label&&(o.label=e.label),(e.language||e.srclang)&&(o.srclang=e.language||e.srclang),e.default&&(o.default=e.default),e.id&&(o.id=e.id),e.src&&(o.src=e.src),this.el().appendChild(o),this.remoteTextTrackEls().addTrackElement_(o),this.remoteTextTracks().addTrack_(o.track),o},e.prototype.removeRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return t.prototype.removeRemoteTextTrack.call(this,e);var o=void 0,n=void 0,r=this.remoteTextTrackEls().getTrackElementByTrack_(e);for(this.remoteTextTrackEls().removeTrackElement_(r),this.remoteTextTracks().removeTrack_(e),o=this.$$("track"),n=o.length;n--;)e!==o[n]&&e!==o[n].track||this.el().removeChild(o[n])},e}(c.default);N.TEST_VID=O.default.createElement("video");var F=O.default.createElement("track");F.kind="captions",F.srclang="en",F.label="English",N.TEST_VID.appendChild(F),N.isSupported=function(){try{N.TEST_VID.volume=.5}catch(t){return!1}return!!N.TEST_VID.canPlayType},c.default.withSourceHandlers(N),N.nativeSourceHandler={},N.nativeSourceHandler.canPlayType=function(t){try{return N.TEST_VID.canPlayType(t)}catch(t){return""}},N.nativeSourceHandler.canHandleSource=function(t){var e;return t.type?N.nativeSourceHandler.canPlayType(t.type):t.src?(e=v.getFileExtension(t.src),N.nativeSourceHandler.canPlayType("video/"+e)):""},N.nativeSourceHandler.handleSource=function(t,e,o){e.setSrc(t.src)},N.nativeSourceHandler.dispose=function(){},N.registerSourceHandler(N.nativeSourceHandler),N.canControlVolume=function(){var t=N.TEST_VID.volume;return N.TEST_VID.volume=t/2+.1,t!==N.TEST_VID.volume},N.canControlPlaybackRate=function(){if(E.IS_ANDROID&&E.IS_CHROME)return!1;var t=N.TEST_VID.playbackRate;return N.TEST_VID.playbackRate=t/2+.1,t!==N.TEST_VID.playbackRate},N.supportsNativeTextTracks=function(){var t;return t=!!N.TEST_VID.textTracks,t&&N.TEST_VID.textTracks.length>0&&(t="number"!=typeof N.TEST_VID.textTracks[0].mode),t&&E.IS_FIREFOX&&(t=!1),!t||"onremovetrack"in N.TEST_VID.textTracks||(t=!1),t},N.supportsNativeVideoTracks=function(){var t=!!N.TEST_VID.videoTracks;return t},N.supportsNativeAudioTracks=function(){var t=!!N.TEST_VID.audioTracks;return t},N.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],N.prototype.featuresVolumeControl=N.canControlVolume(),N.prototype.featuresPlaybackRate=N.canControlPlaybackRate(),N.prototype.movingMediaElementInDOM=!E.IS_IOS,N.prototype.featuresFullscreenResize=!0,N.prototype.featuresProgressEvents=!0,N.prototype.featuresNativeTextTracks=N.supportsNativeTextTracks(),N.prototype.featuresNativeVideoTracks=N.supportsNativeVideoTracks(),N.prototype.featuresNativeAudioTracks=N.supportsNativeAudioTracks();var R=void 0,B=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,H=/^video\/mp4/i;N.patchCanPlayType=function(){E.ANDROID_VERSION>=4&&(R||(R=N.TEST_VID.constructor.prototype.canPlayType),N.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&B.test(t)?"maybe":R.call(this,t)}),E.IS_OLD_ANDROID&&(R||(R=N.TEST_VID.constructor.prototype.canPlayType),N.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&H.test(t)?"maybe":R.call(this,t)})},N.unpatchCanPlayType=function(){var t=N.TEST_VID.constructor.prototype.canPlayType;return N.TEST_VID.constructor.prototype.canPlayType=R,R=null,t},N.patchCanPlayType(),N.disposeMediaElement=function(t){if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},N.resetMediaElement=function(t){if(t){for(var e=t.querySelectorAll("source"),o=e.length;o--;)t.removeChild(e[o]);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},f.default.registerComponent("Html5",N),c.default.registerTech("Html5",N),o.default=N,e.exports=o.default},{"../../../src/js/tracks/text-track.js":134,"../component":67,"../utils/browser.js":140,"../utils/dom.js":143,"../utils/fn.js":145,"../utils/log.js":148,"../utils/merge-options.js":149,"../utils/to-title-case.js":152,"../utils/url.js":153,"./tech.js":124,"global/document":1,"global/window":2,"object.assign":45,tsml:55}],123:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var s=t("../component.js"),a=n(s),l=t("./tech.js"),u=n(l),c=t("global/window"),p=(n(c),t("../utils/to-title-case.js")),f=n(p),h=function(t){function e(o,n,i){if(r(this,e),t.call(this,o,n,i),n.playerOptions.sources&&0!==n.playerOptions.sources.length)o.src(n.playerOptions.sources);else for(var s=0,l=n.playerOptions.techOrder;s<l.length;s++){var c=f.default(l[s]),p=u.default.getTech(c);if(c||(p=a.default.getComponent(c)),p&&p.isSupported()){o.loadTech_(c);break}}}return i(e,t),e}(a.default);a.default.registerComponent("MediaLoader",h),o.default=h,e.exports=o.default},{"../component.js":67,"../utils/to-title-case.js":152,"./tech.js":124,"global/window":2}],124:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../component"),l=r(a),u=t("../tracks/html-track-element"),c=r(u),p=t("../tracks/html-track-element-list"),f=r(p),h=t("../utils/merge-options.js"),d=r(h),y=t("../tracks/text-track"),v=r(y),g=t("../tracks/text-track-list"),m=r(g),_=t("../tracks/video-track"),b=(r(_),t("../tracks/video-track-list")),j=r(b),T=t("../tracks/audio-track-list"),w=r(T),k=t("../tracks/audio-track"),E=(r(k),t("../utils/fn.js")),C=n(E),O=t("../utils/log.js"),x=r(O),S=t("../utils/time-ranges.js"),P=t("../utils/buffer.js"),M=t("../media-error.js"),A=r(M),I=t("global/window"),D=r(I),L=t("global/document"),N=r(L),F=function(t){function e(){var o=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=arguments.length<=1||void 0===arguments[1]?function(){}:arguments[1];i(this,e),o.reportTouchActivity=!1,t.call(this,null,o,n),this.hasStarted_=!1,this.on("playing",function(){this.hasStarted_=!0}),this.on("loadstart",function(){this.hasStarted_=!1}),this.textTracks_=o.textTracks,this.videoTracks_=o.videoTracks,this.audioTracks_=o.audioTracks,this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),!1!==o.nativeCaptions&&!1!==o.nativeTextTracks||(this.featuresNativeTextTracks=!1),this.featuresNativeTextTracks||this.on("ready",this.emulateTextTracks),this.initTextTrackListeners(),this.initTrackListeners(),this.emitTapEvents()}return s(e,t),e.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},e.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},e.prototype.trackProgress=function(){this.stopTrackingProgress(),this.progressInterval=this.setInterval(C.bind(this,function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),this.bufferedPercent_=t,1===t&&this.stopTrackingProgress()}),500)},e.prototype.onDurationChange=function(){this.duration_=this.duration()},e.prototype.buffered=function(){return S.createTimeRange(0,0)},e.prototype.bufferedPercent=function(){return P.bufferedPercent(this.buffered(),this.duration_)},e.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},e.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},e.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},e.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},e.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.dispose=function(){this.clearTracks(["audio","video","text"]),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},e.prototype.clearTracks=function(t){var e=this;t=[].concat(t),t.forEach(function(t){for(var o=e[t+"Tracks"]()||[],n=o.length;n--;){var r=o[n];"text"===t&&e.removeRemoteTextTrack(r),o.removeTrack_(r)}})},e.prototype.reset=function(){},e.prototype.error=function(t){return void 0!==t&&(t instanceof A.default?this.error_=t:this.error_=new A.default(t),this.trigger("error")),this.error_},e.prototype.played=function(){return this.hasStarted_?S.createTimeRange(0,0):S.createTimeRange()},e.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.initTextTrackListeners=function(){var t=C.bind(this,function(){this.trigger("texttrackchange")}),e=this.textTracks();e&&(e.addEventListener("removetrack",t),e.addEventListener("addtrack",t),this.on("dispose",C.bind(this,function(){e.removeEventListener("removetrack",t),e.removeEventListener("addtrack",t)})))},e.prototype.initTrackListeners=function(){var t=this,e=["video","audio"];e.forEach(function(e){var o=function(){t.trigger(e+"trackchange")},n=t[e+"Tracks"]();n.addEventListener("removetrack",o),n.addEventListener("addtrack",o),t.on("dispose",function(){n.removeEventListener("removetrack",o),n.removeEventListener("addtrack",o)})})},e.prototype.emulateTextTracks=function(){var t=this,e=this.textTracks();if(e){var o;D.default.WebVTT||null==this.el().parentNode||(o=N.default.createElement("script"),o.src=t.options_["vtt.js"]||"https://cdn.rawgit.com/gkatsev/vtt.js/vjs-v0.12.1/dist/vtt.min.js",o.onload=function(){t.trigger("vttjsloaded")},o.onerror=function(){t.trigger("vttjserror")},t.on("dispose",function(){o.onload=null,o.onerror=null}),D.default.WebVTT=!0,t.el().parentNode.appendChild(o));var n=function(){return t.trigger("texttrackchange")},r=function(){n();for(var t=0;t<e.length;t++){var o=e[t];o.removeEventListener("cuechange",n),"showing"===o.mode&&o.addEventListener("cuechange",n)}};r(),e.addEventListener("change",r),this.on("dispose",function(){e.removeEventListener("change",r)})}},e.prototype.videoTracks=function(){return this.videoTracks_=this.videoTracks_||new j.default,this.videoTracks_},e.prototype.audioTracks=function(){return this.audioTracks_=this.audioTracks_||new w.default,this.audioTracks_},e.prototype.textTracks=function(){return this.textTracks_=this.textTracks_||new m.default,this.textTracks_},e.prototype.remoteTextTracks=function(){return this.remoteTextTracks_=this.remoteTextTracks_||new m.default,this.remoteTextTracks_},e.prototype.remoteTextTrackEls=function(){return this.remoteTextTrackEls_=this.remoteTextTrackEls_||new f.default,this.remoteTextTrackEls_},e.prototype.addTextTrack=function(t,e,o){if(!t)throw new Error("TextTrack kind is required but was not provided");return R(this,t,e,o)},e.prototype.addRemoteTextTrack=function(t){var e=d.default(t,{tech:this}),o=new c.default(e);return this.remoteTextTrackEls().addTrackElement_(o),this.remoteTextTracks().addTrack_(o.track),this.textTracks().addTrack_(o.track),o},e.prototype.removeRemoteTextTrack=function(t){this.textTracks().removeTrack_(t);var e=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack_(t)},e.prototype.setPoster=function(){},e.prototype.canPlayType=function(){return""},e.isTech=function(t){return t.prototype instanceof e||t instanceof e||t===e},e.registerTech=function(t,o){if(e.techs_||(e.techs_={}),!e.isTech(o))throw new Error("Tech "+t+" must be a Tech");return e.techs_[t]=o,o},e.getTech=function(t){return e.techs_&&e.techs_[t]?e.techs_[t]:D.default&&D.default.videojs&&D.default.videojs[t]?(x.default.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),D.default.videojs[t]):void 0},e}(l.default);F.prototype.textTracks_,F.prototype.audioTracks_,F.prototype.videoTracks_;var R=function(t,e,o,n){var r=arguments.length<=4||void 0===arguments[4]?{}:arguments[4],i=t.textTracks();r.kind=e,o&&(r.label=o),n&&(r.language=n),r.tech=t;var s=new v.default(r);return i.addTrack_(s),s};F.prototype.featuresVolumeControl=!0,F.prototype.featuresFullscreenResize=!1,F.prototype.featuresPlaybackRate=!1,F.prototype.featuresProgressEvents=!1,F.prototype.featuresTimeupdateEvents=!1,F.prototype.featuresNativeTextTracks=!1,F.withSourceHandlers=function(t){t.registerSourceHandler=function(e,o){var n=t.sourceHandlers;n||(n=t.sourceHandlers=[]),void 0===o&&(o=n.length),n.splice(o,0,e)},t.canPlayType=function(e){for(var o=t.sourceHandlers||[],n=void 0,r=0;r<o.length;r++)if(n=o[r].canPlayType(e),n)return n;return""},t.selectSourceHandler=function(e){for(var o=t.sourceHandlers||[],n=void 0,r=0;r<o.length;r++)if(n=o[r].canHandleSource(e),n)return o[r];return null},t.canPlaySource=function(e){var o=t.selectSourceHandler(e);return o?o.canHandleSource(e):""};var e=["seekable","duration"];e.forEach(function(t){var e=this[t];"function"==typeof e&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})},t.prototype),t.prototype.setSource=function(e){var o=t.selectSourceHandler(e);return o||(t.nativeSourceHandler?o=t.nativeSourceHandler:x.default.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),this.currentSource_&&this.clearTracks(["audio","video"]),o!==t.nativeSourceHandler&&(this.currentSource_=e,this.off(this.el_,"loadstart",t.prototype.firstLoadStartListener_),this.off(this.el_,"loadstart",t.prototype.successiveLoadStartListener_),this.one(this.el_,"loadstart",t.prototype.firstLoadStartListener_)),this.sourceHandler_=o.handleSource(e,this,this.options_),this.on("dispose",this.disposeSourceHandler),this},t.prototype.firstLoadStartListener_=function(){this.one(this.el_,"loadstart",t.prototype.successiveLoadStartListener_)},t.prototype.successiveLoadStartListener_=function(){this.currentSource_=null,this.disposeSourceHandler(),this.one(this.el_,"loadstart",t.prototype.successiveLoadStartListener_)},t.prototype.disposeSourceHandler=function(){this.sourceHandler_&&this.sourceHandler_.dispose&&(this.off(this.el_,"loadstart",t.prototype.firstLoadStartListener_),this.off(this.el_,"loadstart",t.prototype.successiveLoadStartListener_),this.sourceHandler_.dispose())}},l.default.registerComponent("Tech",F),l.default.registerComponent("MediaTechController",F),F.registerTech("Tech",F),o.default=F,e.exports=o.default},{"../component":67,"../media-error.js":108,"../tracks/audio-track":126,"../tracks/audio-track-list":125,"../tracks/html-track-element":128,"../tracks/html-track-element-list":127,"../tracks/text-track":134,"../tracks/text-track-list":132,"../tracks/video-track":139,"../tracks/video-track-list":138,"../utils/buffer.js":141,"../utils/fn.js":145,"../utils/log.js":148,"../utils/merge-options.js":149,"../utils/time-ranges.js":151,"global/document":1,"global/window":2}],125:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={}
;if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("./track-list"),l=r(a),u=t("../utils/browser.js"),c=n(u),p=t("global/document"),f=r(p),h=function(t,e){for(var o=0;o<t.length;o++)e.id!==t[o].id&&(t[o].enabled=!1)},d=function(t){function e(){var o=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];i(this,e);for(var n=void 0,r=o.length-1;r>=0;r--)if(o[r].enabled){h(o,o[r]);break}if(c.IS_IE8){for(var s in n=f.default.createElement("custom"),l.default.prototype)"constructor"!==s&&(n[s]=l.default.prototype[s]);for(var s in e.prototype)"constructor"!==s&&(n[s]=e.prototype[s])}return n=t.call(this,o,n),n.changing_=!1,n}return s(e,t),e.prototype.addTrack_=function(e){var o=this;e.enabled&&h(this,e),t.prototype.addTrack_.call(this,e),e.addEventListener&&e.addEventListener("enabledchange",function(){o.changing_||(o.changing_=!0,h(o,e),o.changing_=!1,o.trigger("change"))})},e.prototype.addTrack=function(t){this.addTrack_(t)},e.prototype.removeTrack=function(e){t.prototype.removeTrack_.call(this,e)},e}(l.default);o.default=d,e.exports=o.default},{"../utils/browser.js":140,"./track-list":136,"global/document":1}],126:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("./track-enums"),l=t("./track"),u=r(l),c=t("../utils/merge-options"),p=r(c),f=t("../utils/browser.js"),h=n(f),d=function(t){function e(){var o=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];i(this,e);var n=p.default(o,{kind:a.AudioTrackKind[o.kind]||""}),r=t.call(this,n),s=!1;if(h.IS_IE8)for(var l in e.prototype)"constructor"!==l&&(r[l]=e.prototype[l]);return Object.defineProperty(r,"enabled",{get:function(){return s},set:function(t){"boolean"==typeof t&&t!==s&&(s=t,this.trigger("enabledchange"))}}),n.enabled&&(r.enabled=n.enabled),r.loaded_=!0,r}return s(e,t),e}(u.default);o.default=d,e.exports=o.default},{"../utils/browser.js":140,"../utils/merge-options":149,"./track":137,"./track-enums":135}],127:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}o.__esModule=!0;var s=t("../utils/browser.js"),a=r(s),l=t("global/document"),u=n(l),c=function(){function t(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];i(this,t);var o=this;if(a.IS_IE8)for(var n in o=u.default.createElement("custom"),t.prototype)"constructor"!==n&&(o[n]=t.prototype[n]);o.trackElements_=[],Object.defineProperty(o,"length",{get:function(){return this.trackElements_.length}});for(var r=0,s=e.length;r<s;r++)o.addTrackElement_(e[r]);if(a.IS_IE8)return o}return t.prototype.addTrackElement_=function(t){this.trackElements_.push(t)},t.prototype.getTrackElementByTrack_=function(t){for(var e=void 0,o=0,n=this.trackElements_.length;o<n;o++)if(t===this.trackElements_[o].track){e=this.trackElements_[o];break}return e},t.prototype.removeTrackElement_=function(t){for(var e=0,o=this.trackElements_.length;e<o;e++)if(t===this.trackElements_[e]){this.trackElements_.splice(e,1);break}},t}();o.default=c,e.exports=o.default},{"../utils/browser.js":140,"global/document":1}],128:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../utils/browser.js"),l=r(a),u=t("global/document"),c=n(u),p=t("../event-target"),f=n(p),h=t("../tracks/text-track"),d=n(h),y=0,v=1,g=2,m=3,_=function(t){function e(){var o=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];i(this,e),t.call(this);var n=void 0,r=this;if(l.IS_IE8)for(var s in r=c.default.createElement("custom"),e.prototype)"constructor"!==s&&(r[s]=e.prototype[s]);var a=new d.default(o);if(r.kind=a.kind,r.src=a.src,r.srclang=a.language,r.label=a.label,r.default=a.default,Object.defineProperty(r,"readyState",{get:function(){return n}}),Object.defineProperty(r,"track",{get:function(){return a}}),n=y,a.addEventListener("loadeddata",function(){n=g,r.trigger({type:"load",target:r})}),l.IS_IE8)return r}return s(e,t),e}(f.default);_.prototype.allowedEvents_={load:"load"},_.NONE=y,_.LOADING=v,_.LOADED=g,_.ERROR=m,o.default=_,e.exports=o.default},{"../event-target":104,"../tracks/text-track":134,"../utils/browser.js":140,"global/document":1}],129:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}o.__esModule=!0;var s=t("../utils/browser.js"),a=r(s),l=t("global/document"),u=n(l),c=function(){function t(e){i(this,t);var o=this;if(a.IS_IE8)for(var n in o=u.default.createElement("custom"),t.prototype)"constructor"!==n&&(o[n]=t.prototype[n]);if(t.prototype.setCues_.call(o,e),Object.defineProperty(o,"length",{get:function(){return this.length_}}),a.IS_IE8)return o}return t.prototype.setCues_=function(t){var e=this.length||0,o=0,n=t.length;this.cues_=t,this.length_=t.length;var r=function(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.cues_[t]}})};if(e<n)for(o=e;o<n;o++)r.call(this,o)},t.prototype.getCueById=function(t){for(var e=null,o=0,n=this.length;o<n;o++){var r=this[o];if(r.id===t){e=r;break}}return e},t}();o.default=c,e.exports=o.default},{"../utils/browser.js":140,"global/document":1}],130:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e){return"rgba("+parseInt(t[1]+t[1],16)+","+parseInt(t[2]+t[2],16)+","+parseInt(t[3]+t[3],16)+","+e+")"}function l(t,e,o){try{t.style[e]=o}catch(t){}}o.__esModule=!0;var u=t("../component"),c=r(u),p=t("../menu/menu.js"),f=(r(p),t("../menu/menu-item.js")),h=(r(f),t("../menu/menu-button.js")),d=(r(h),t("../utils/fn.js")),y=n(d),v=t("global/document"),g=(r(v),t("global/window")),m=r(g),_="#222",b="#ccc",j={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},T=function(t){function e(o,n,r){i(this,e),t.call(this,o,n,r),o.on("loadstart",y.bind(this,this.toggleDisplay)),o.on("texttrackchange",y.bind(this,this.updateDisplay)),o.ready(y.bind(this,function(){if(o.tech_&&o.tech_.featuresNativeTextTracks)this.hide();else{o.on("fullscreenchange",y.bind(this,this.updateDisplay));for(var t=this.options_.playerOptions.tracks||[],e=0;e<t.length;e++){var n=t[e];this.player_.addRemoteTextTrack(n)}var r={captions:1,subtitles:1},i=this.player_.textTracks(),s=void 0,a=void 0;if(i){for(e=0;e<i.length;e++){n=i[e];n.default&&("descriptions"!==n.kind||s?n.kind in r&&!a&&(a=n):s=n)}a?a.mode="showing":s&&(s.mode="showing")}}}))}return s(e,t),e.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"assertive","aria-atomic":"true"})},e.prototype.clearDisplay=function(){"function"==typeof m.default.WebVTT&&m.default.WebVTT.processCues(m.default,[],this.el_)},e.prototype.updateDisplay=function(){var t=this.player_.textTracks();if(this.clearDisplay(),t){for(var e=null,o=null,n=t.length;n--;){var r=t[n];"showing"===r.mode&&("descriptions"===r.kind?e=r:o=r)}o?this.updateForTrack(o):e&&this.updateForTrack(e)}},e.prototype.updateForTrack=function(t){if("function"==typeof m.default.WebVTT&&t.activeCues){for(var e=this.player_.textTrackSettings.getValues(),o=[],n=0;n<t.activeCues.length;n++)o.push(t.activeCues[n]);m.default.WebVTT.processCues(m.default,o,this.el_);for(var r=o.length;r--;){var i=o[r];if(i){var s=i.displayState;if(e.color&&(s.firstChild.style.color=e.color),e.textOpacity&&l(s.firstChild,"color",a(e.color||"#fff",e.textOpacity)),e.backgroundColor&&(s.firstChild.style.backgroundColor=e.backgroundColor),e.backgroundOpacity&&l(s.firstChild,"backgroundColor",a(e.backgroundColor||"#000",e.backgroundOpacity)),e.windowColor&&(e.windowOpacity?l(s,"backgroundColor",a(e.windowColor,e.windowOpacity)):s.style.backgroundColor=e.windowColor),e.edgeStyle&&("dropshadow"===e.edgeStyle?s.firstChild.style.textShadow="2px 2px 3px "+_+", 2px 2px 4px "+_+", 2px 2px 5px "+_:"raised"===e.edgeStyle?s.firstChild.style.textShadow="1px 1px "+_+", 2px 2px "+_+", 3px 3px "+_:"depressed"===e.edgeStyle?s.firstChild.style.textShadow="1px 1px "+b+", 0 1px "+b+", -1px -1px "+_+", 0 -1px "+_:"uniform"===e.edgeStyle&&(s.firstChild.style.textShadow="0 0 4px "+_+", 0 0 4px "+_+", 0 0 4px "+_+", 0 0 4px "+_)),e.fontPercent&&1!==e.fontPercent){var u=m.default.parseFloat(s.style.fontSize);s.style.fontSize=u*e.fontPercent+"px",s.style.height="auto",s.style.top="auto",s.style.bottom="2px"}e.fontFamily&&"default"!==e.fontFamily&&("small-caps"===e.fontFamily?s.firstChild.style.fontVariant="small-caps":s.firstChild.style.fontFamily=j[e.fontFamily])}}}},e}(c.default);c.default.registerComponent("TextTrackDisplay",T),o.default=T,e.exports=o.default},{"../component":67,"../menu/menu-button.js":109,"../menu/menu-item.js":110,"../menu/menu.js":111,"../utils/fn.js":145,"global/document":1,"global/window":2}],131:[function(t,e,o){"use strict";o.__esModule=!0;var n=function(t){var e=["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(e,o,n){return t[o]&&(e[o]=t[o]),e},{cues:t.cues&&Array.prototype.map.call(t.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})});return e},r=function(t){var e=t.$$("track"),o=Array.prototype.map.call(e,function(t){return t.track}),r=Array.prototype.map.call(e,function(t){var e=n(t.track);return t.src&&(e.src=t.src),e});return r.concat(Array.prototype.filter.call(t.textTracks(),function(t){return-1===o.indexOf(t)}).map(n))},i=function(t,e){return t.forEach(function(t){var o=e.addRemoteTextTrack(t).track;!t.src&&t.cues&&t.cues.forEach(function(t){return o.addCue(t)})}),e.textTracks()};o.default={textTracksToJson:r,jsonToTextTracks:i,trackToJson_:n},e.exports=o.default},{}],132:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("./track-list"),l=r(a),u=t("../utils/fn.js"),c=n(u),p=t("../utils/browser.js"),f=n(p),h=t("global/document"),d=r(h),y=function(t){function e(){var o=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];i(this,e);var n=void 0;if(f.IS_IE8){for(var r in n=d.default.createElement("custom"),l.default.prototype)"constructor"!==r&&(n[r]=l.default.prototype[r]);for(var r in e.prototype)"constructor"!==r&&(n[r]=e.prototype[r])}return n=t.call(this,o,n),n}return s(e,t),e.prototype.addTrack_=function(e){t.prototype.addTrack_.call(this,e),e.addEventListener("modechange",c.bind(this,function(){this.trigger("change")}))},e.prototype.removeTrack_=function(t){for(var e=void 0,o=0,n=this.length;o<n;o++)if(this[o]===t){e=this[o],e.off&&e.off(),this.tracks_.splice(o,1);break}e&&this.trigger({track:e,type:"removetrack"})},e.prototype.getTrackById=function(t){for(var e=null,o=0,n=this.length;o<n;o++){var r=this[o];if(r.id===t){e=r;break}}return e},e}(l.default);o.default=y,e.exports=o.default},{"../utils/browser.js":140,"../utils/fn.js":145,"./track-list":136,"global/document":1}],133:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=void 0;return t.selectedOptions?e=t.selectedOptions[0]:t.options&&(e=t.options[t.options.selectedIndex]),e.value}function l(t,e){if(e){var o=void 0;for(o=0;o<t.options.length;o++){var n=t.options[o];if(n.value===e)break}t.selectedIndex=o}}function u(){var t='<div class="vjs-tracksettings">\n      <div class="vjs-tracksettings-colors">\n        <div class="vjs-fg-color vjs-tracksetting">\n            <label class="vjs-label">Foreground</label>\n            <select>\n              <option value="">---</option>\n              <option value="#FFF">White</option>\n              <option value="#000">Black</option>\n              <option value="#F00">Red</option>\n              <option value="#0F0">Green</option>\n              <option value="#00F">Blue</option>\n              <option value="#FF0">Yellow</option>\n              <option value="#F0F">Magenta</option>\n              <option value="#0FF">Cyan</option>\n            </select>\n            <span class="vjs-text-opacity vjs-opacity">\n              <select>\n                <option value="">---</option>\n                <option value="1">Opaque</option>\n                <option value="0.5">Semi-Opaque</option>\n              </select>\n            </span>\n        </div> <!-- vjs-fg-color -->\n        <div class="vjs-bg-color vjs-tracksetting">\n            <label class="vjs-label">Background</label>\n            <select>\n              <option value="">---</option>\n              <option value="#FFF">White</option>\n              <option value="#000">Black</option>\n              <option value="#F00">Red</option>\n              <option value="#0F0">Green</option>\n              <option value="#00F">Blue</option>\n              <option value="#FF0">Yellow</option>\n              <option value="#F0F">Magenta</option>\n              <option value="#0FF">Cyan</option>\n            </select>\n            <span class="vjs-bg-opacity vjs-opacity">\n                <select>\n                  <option value="">---</option>\n                  <option value="1">Opaque</option>\n                  <option value="0.5">Semi-Transparent</option>\n                  <option value="0">Transparent</option>\n                </select>\n            </span>\n        </div> <!-- vjs-bg-color -->\n        <div class="window-color vjs-tracksetting">\n            <label class="vjs-label">Window</label>\n            <select>\n              <option value="">---</option>\n              <option value="#FFF">White</option>\n              <option value="#000">Black</option>\n              <option value="#F00">Red</option>\n              <option value="#0F0">Green</option>\n              <option value="#00F">Blue</option>\n              <option value="#FF0">Yellow</option>\n              <option value="#F0F">Magenta</option>\n              <option value="#0FF">Cyan</option>\n            </select>\n            <span class="vjs-window-opacity vjs-opacity">\n                <select>\n                  <option value="">---</option>\n                  <option value="1">Opaque</option>\n                  <option value="0.5">Semi-Transparent</option>\n                  <option value="0">Transparent</option>\n                </select>\n            </span>\n        </div> <!-- vjs-window-color -->\n      </div> <!-- vjs-tracksettings -->\n      <div class="vjs-tracksettings-font">\n        <div class="vjs-font-percent vjs-tracksetting">\n          <label class="vjs-label">Font Size</label>\n          <select>\n            <option value="0.50">50%</option>\n            <option value="0.75">75%</option>\n            <option value="1.00" selected>100%</option>\n            <option value="1.25">125%</option>\n            <option value="1.50">150%</option>\n            <option value="1.75">175%</option>\n            <option value="2.00">200%</option>\n            <option value="3.00">300%</option>\n            <option value="4.00">400%</option>\n          </select>\n        </div> <!-- vjs-font-percent -->\n        <div class="vjs-edge-style vjs-tracksetting">\n          <label class="vjs-label">Text Edge Style</label>\n          <select>\n            <option value="none">None</option>\n            <option value="raised">Raised</option>\n            <option value="depressed">Depressed</option>\n            <option value="uniform">Uniform</option>\n            <option value="dropshadow">Dropshadow</option>\n          </select>\n        </div> <!-- vjs-edge-style -->\n        <div class="vjs-font-family vjs-tracksetting">\n          <label class="vjs-label">Font Family</label>\n          <select>\n            <option value="">Default</option>\n            <option value="monospaceSerif">Monospace Serif</option>\n            <option value="proportionalSerif">Proportional Serif</option>\n            <option value="monospaceSansSerif">Monospace Sans-Serif</option>\n            <option value="proportionalSansSerif">Proportional Sans-Serif</option>\n            <option value="casual">Casual</option>\n            <option value="script">Script</option>\n            <option value="small-caps">Small Caps</option>\n          </select>\n        </div> <!-- vjs-font-family -->\n      </div>\n    </div>\n    <div class="vjs-tracksettings-controls">\n      <button class="vjs-default-button">Defaults</button>\n      <button class="vjs-done-button">Done</button>\n    </div>';return t}o.__esModule=!0;var c=t("../component"),p=r(c),f=t("../utils/events.js"),h=n(f),d=t("../utils/fn.js"),y=n(d),v=t("../utils/log.js"),g=r(v),m=t("safe-json-parse/tuple"),_=r(m),b=t("global/window"),j=r(b),T=function(t){function e(o,n){i(this,e),t.call(this,o,n),this.hide(),void 0===n.persistTextTrackSettings&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),h.on(this.$(".vjs-done-button"),"click",y.bind(this,function(){this.saveSettings(),this.hide()})),h.on(this.$(".vjs-default-button"),"click",y.bind(this,function(){this.$(".vjs-fg-color > select").selectedIndex=0,this.$(".vjs-bg-color > select").selectedIndex=0,this.$(".window-color > select").selectedIndex=0,this.$(".vjs-text-opacity > select").selectedIndex=0,this.$(".vjs-bg-opacity > select").selectedIndex=0,this.$(".vjs-window-opacity > select").selectedIndex=0,this.$(".vjs-edge-style select").selectedIndex=0,this.$(".vjs-font-family select").selectedIndex=0,this.$(".vjs-font-percent select").selectedIndex=2,this.updateDisplay()})),h.on(this.$(".vjs-fg-color > select"),"change",y.bind(this,this.updateDisplay)),h.on(this.$(".vjs-bg-color > select"),"change",y.bind(this,this.updateDisplay)),h.on(this.$(".window-color > select"),"change",y.bind(this,this.updateDisplay)),h.on(this.$(".vjs-text-opacity > select"),"change",y.bind(this,this.updateDisplay)),h.on(this.$(".vjs-bg-opacity > select"),"change",y.bind(this,this.updateDisplay)),h.on(this.$(".vjs-window-opacity > select"),"change",y.bind(this,this.updateDisplay)),h.on(this.$(".vjs-font-percent select"),"change",y.bind(this,this.updateDisplay)),h.on(this.$(".vjs-edge-style select"),"change",y.bind(this,this.updateDisplay)),h.on(this.$(".vjs-font-family select"),"change",y.bind(this,this.updateDisplay)),this.options_.persistTextTrackSettings&&this.restoreSettings()}return s(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:u()})},e.prototype.getValues=function(){var t=a(this.$(".vjs-edge-style select")),e=a(this.$(".vjs-font-family select")),o=a(this.$(".vjs-fg-color > select")),n=a(this.$(".vjs-text-opacity > select")),r=a(this.$(".vjs-bg-color > select")),i=a(this.$(".vjs-bg-opacity > select")),s=a(this.$(".window-color > select")),l=a(this.$(".vjs-window-opacity > select")),u=j.default.parseFloat(a(this.$(".vjs-font-percent > select"))),c={backgroundOpacity:i,textOpacity:n,windowOpacity:l,edgeStyle:t,fontFamily:e,color:o,backgroundColor:r,windowColor:s,fontPercent:u};for(var p in c)(""===c[p]||"none"===c[p]||"fontPercent"===p&&1===c[p])&&delete c[p];return c},e.prototype.setValues=function(t){l(this.$(".vjs-edge-style select"),t.edgeStyle),l(this.$(".vjs-font-family select"),t.fontFamily),l(this.$(".vjs-fg-color > select"),t.color),l(this.$(".vjs-text-opacity > select"),t.textOpacity),l(this.$(".vjs-bg-color > select"),t.backgroundColor),l(this.$(".vjs-bg-opacity > select"),t.backgroundOpacity),l(this.$(".window-color > select"),t.windowColor),l(this.$(".vjs-window-opacity > select"),t.windowOpacity);var e=t.fontPercent;e&&(e=e.toFixed(2)),l(this.$(".vjs-font-percent > select"),e)},e.prototype.restoreSettings=function(){var t=void 0,e=void 0;try{var o=_.default(j.default.localStorage.getItem("vjs-text-track-settings"));t=o[0],e=o[1],t&&g.default.error(t)}catch(t){g.default.warn(t)}e&&this.setValues(e)},e.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.getOwnPropertyNames(t).length>0?j.default.localStorage.setItem("vjs-text-track-settings",JSON.stringify(t)):j.default.localStorage.removeItem("vjs-text-track-settings")}catch(t){g.default.warn(t)}}},e.prototype.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()},e}(p.default);p.default.registerComponent("TextTrackSettings",T),o.default=T,e.exports=o.default},{"../component":67,"../utils/events.js":144,"../utils/fn.js":145,"../utils/log.js":148,"global/window":2,"safe-json-parse/tuple":54}],134:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("./text-track-cue-list"),l=r(a),u=t("../utils/fn.js"),c=n(u),p=t("./track-enums"),f=t("../utils/log.js"),h=r(f),d=t("global/document"),y=(r(d),t("global/window")),v=r(y),g=t("./track.js"),m=r(g),_=t("../utils/url.js"),b=t("xhr"),j=r(b),T=t("../utils/merge-options"),w=r(T),k=t("../utils/browser.js"),E=n(k),C=function(t,e){var o=new v.default.WebVTT.Parser(v.default,v.default.vttjs,v.default.WebVTT.StringDecoder()),n=[];o.oncue=function(t){e.addCue(t)},o.onparsingerror=function(t){n.push(t)},o.onflush=function(){e.trigger({type:"loadeddata",target:e})},o.parse(t),n.length>0&&(console.groupCollapsed&&console.groupCollapsed("Text Track parsing errors for "+e.src),n.forEach(function(t){return h.default.error(t)}),console.groupEnd&&console.groupEnd()),o.flush()},O=function(t,e){var o={uri:t},n=_.isCrossOrigin(t);n&&(o.cors=n),j.default(o,c.bind(this,function(t,o,n){if(t)return h.default.error(t,o);var r;e.loaded_=!0,"function"!=typeof v.default.WebVTT?e.tech_&&(r=function(){return C(n,e)},e.tech_.on("vttjsloaded",r),e.tech_.on("vttjserror",function(){h.default.error("vttjs failed to load, stopping trying to process "+e.src),e.tech_.off("vttjsloaded",r)})):C(n,e)}))},x=function(t){function e(){var o=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(i(this,e),!o.tech)throw new Error("A tech was not provided.");var n=w.default(o,{kind:p.TextTrackKind[o.kind]||"subtitles",language:o.language||o.srclang||""}),r=p.TextTrackMode[n.mode]||"disabled",s=n.default;"metadata"!==n.kind&&"chapters"!==n.kind||(r="hidden");var a=t.call(this,n);if(a.tech_=n.tech,E.IS_IE8)for(var u in e.prototype)"constructor"!==u&&(a[u]=e.prototype[u]);a.cues_=[],a.activeCues_=[];var f=new l.default(a.cues_),h=new l.default(a.activeCues_),d=!1,y=c.bind(a,function(){this.activeCues,d&&(this.trigger("cuechange"),d=!1)});return"disabled"!==r&&a.tech_.on("timeupdate",y),Object.defineProperty(a,"default",{get:function(){return s},set:function(){}}),Object.defineProperty(a,"mode",{get:function(){return r},set:function(t){p.TextTrackMode[t]&&(r=t,"showing"===r&&this.tech_.on("timeupdate",y),this.trigger("modechange"))}}),Object.defineProperty(a,"cues",{get:function(){return this.loaded_?f:null},set:function(){}}),Object.defineProperty(a,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return h;for(var t=this.tech_.currentTime(),e=[],o=0,n=this.cues.length;o<n;o++){var r=this.cues[o];r.startTime<=t&&r.endTime>=t?e.push(r):r.startTime===r.endTime&&r.startTime<=t&&r.startTime+.5>=t&&e.push(r)}if(d=!1,e.length!==this.activeCues_.length)d=!0;else for(o=0;o<e.length;o++)-1===this.activeCues_.indexOf(e[o])&&(d=!0);return this.activeCues_=e,h.setCues_(this.activeCues_),h},set:function(){}}),n.src?(a.src=n.src,O(n.src,a)):a.loaded_=!0,a}return s(e,t),e.prototype.addCue=function(t){var e=this.tech_.textTracks();if(e)for(var o=0;o<e.length;o++)e[o]!==this&&e[o].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},e.prototype.removeCue=function(t){for(var e=!1,o=0,n=this.cues_.length;o<n;o++){var r=this.cues_[o];r===t&&(this.cues_.splice(o,1),e=!0)}e&&this.cues.setCues_(this.cues_)},e}(m.default);x.prototype.allowedEvents_={cuechange:"cuechange"},o.default=x,e.exports=o.default},{"../utils/browser.js":140,"../utils/fn.js":145,"../utils/log.js":148,"../utils/merge-options":149,"../utils/url.js":153,"./text-track-cue-list":129,"./track-enums":135,"./track.js":137,"global/document":1,"global/window":2,xhr:56}],135:[function(t,e,o){"use strict";o.__esModule=!0;var n={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},r={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},i={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},s={disabled:"disabled",hidden:"hidden",showing:"showing"};o.default={VideoTrackKind:n,AudioTrackKind:r,TextTrackKind:i,TextTrackMode:s},e.exports=o.default},{}],136:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../event-target"),l=r(a),u=t("../utils/fn.js"),c=(n(u),t("../utils/browser.js")),p=n(c),f=t("global/document"),h=r(f),d=function(t){function e(){var o=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],n=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if(i(this,e),t.call(this),!n&&(n=this,p.IS_IE8))for(var r in n=h.default.createElement("custom"),e.prototype)"constructor"!==r&&(n[r]=e.prototype[r]);n.tracks_=[],Object.defineProperty(n,"length",{get:function(){return this.tracks_.length}});for(var s=0;s<o.length;s++)n.addTrack_(o[s]);return n}return s(e,t),e.prototype.addTrack_=function(t){var e=this.tracks_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.tracks_[e]}}),-1===this.tracks_.indexOf(t)&&(this.tracks_.push(t),this.trigger({track:t,type:"addtrack"}))},e.prototype.removeTrack_=function(t){for(var e=void 0,o=0,n=this.length;o<n;o++)if(this[o]===t){e=this[o],e.off&&e.off(),this.tracks_.splice(o,1);break}e&&this.trigger({track:e,type:"removetrack"})},e.prototype.getTrackById=function(t){for(var e=null,o=0,n=this.length;o<n;o++){var r=this[o];if(r.id===t){e=r;break}}return e},e}(l.default);for(var y in d.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},d.prototype.allowedEvents_)d.prototype["on"+y]=null;o.default=d,e.exports=o.default},{"../event-target":104,"../utils/browser.js":140,"../utils/fn.js":145,"global/document":1}],137:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),
e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("../utils/browser.js"),l=r(a),u=t("global/document"),c=n(u),p=t("../utils/guid.js"),f=r(p),h=t("../event-target"),d=n(h),y=function(t){function e(){var o=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];i(this,e),t.call(this);var n=this;if(l.IS_IE8)for(var r in n=c.default.createElement("custom"),e.prototype)"constructor"!==r&&(n[r]=e.prototype[r]);var s={id:o.id||"vjs_track_"+f.newGUID(),kind:o.kind||"",label:o.label||"",language:o.language||""},a=function(t){Object.defineProperty(n,t,{get:function(){return s[t]},set:function(){}})};for(var u in s)a(u);return n}return s(e,t),e}(d.default);o.default=y,e.exports=o.default},{"../event-target":104,"../utils/browser.js":140,"../utils/guid.js":147,"global/document":1}],138:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("./track-list"),l=r(a),u=t("../utils/browser.js"),c=n(u),p=t("global/document"),f=r(p),h=function(t,e){for(var o=0;o<t.length;o++)e.id!==t[o].id&&(t[o].selected=!1)},d=function(t){function e(){var o=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];i(this,e);for(var n=void 0,r=o.length-1;r>=0;r--)if(o[r].selected){h(o,o[r]);break}if(c.IS_IE8){for(var s in n=f.default.createElement("custom"),l.default.prototype)"constructor"!==s&&(n[s]=l.default.prototype[s]);for(var s in e.prototype)"constructor"!==s&&(n[s]=e.prototype[s])}return n=t.call(this,o,n),n.changing_=!1,Object.defineProperty(n,"selectedIndex",{get:function(){for(var t=0;t<this.length;t++)if(this[t].selected)return t;return-1},set:function(){}}),n}return s(e,t),e.prototype.addTrack_=function(e){var o=this;e.selected&&h(this,e),t.prototype.addTrack_.call(this,e),e.addEventListener&&e.addEventListener("selectedchange",function(){o.changing_||(o.changing_=!0,h(o,e),o.changing_=!1,o.trigger("change"))})},e.prototype.addTrack=function(t){this.addTrack_(t)},e.prototype.removeTrack=function(e){t.prototype.removeTrack_.call(this,e)},e}(l.default);o.default=d,e.exports=o.default},{"../utils/browser.js":140,"./track-list":136,"global/document":1}],139:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o.__esModule=!0;var a=t("./track-enums"),l=t("./track"),u=r(l),c=t("../utils/merge-options"),p=r(c),f=t("../utils/browser.js"),h=n(f),d=function(t){function e(){var o=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];i(this,e);var n=p.default(o,{kind:a.VideoTrackKind[o.kind]||""}),r=t.call(this,n),s=!1;if(h.IS_IE8)for(var l in e.prototype)"constructor"!==l&&(r[l]=e.prototype[l]);return Object.defineProperty(r,"selected",{get:function(){return s},set:function(t){"boolean"==typeof t&&t!==s&&(s=t,this.trigger("selectedchange"))}}),n.selected&&(r.selected=n.selected),r}return s(e,t),e}(u.default);o.default=d,e.exports=o.default},{"../utils/browser.js":140,"../utils/merge-options":149,"./track":137,"./track-enums":135}],140:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=t("global/document"),i=n(r),s=t("global/window"),a=n(s),l=a.default.navigator.userAgent,u=/AppleWebKit\/([\d.]+)/i.exec(l),c=u?parseFloat(u.pop()):null,p=/iPad/i.test(l);o.IS_IPAD=p;var f=/iPhone/i.test(l)&&!p;o.IS_IPHONE=f;var h=/iPod/i.test(l);o.IS_IPOD=h;var d=f||p||h;o.IS_IOS=d;var y=function(){var t=l.match(/OS (\d+)_/i);if(t&&t[1])return t[1]}();o.IOS_VERSION=y;var v=/Android/i.test(l);o.IS_ANDROID=v;var g,m,_,b=(_=l.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i),_?(g=_[1]&&parseFloat(_[1]),m=_[2]&&parseFloat(_[2]),g&&m?parseFloat(_[1]+"."+_[2]):g||null):null);o.ANDROID_VERSION=b;var j=v&&/webkit/i.test(l)&&b<2.3;o.IS_OLD_ANDROID=j;var T=v&&b<5&&c<537;o.IS_NATIVE_ANDROID=T;var w=/Firefox/i.test(l);o.IS_FIREFOX=w;var k=/Edge/i.test(l);o.IS_EDGE=k;var E=!k&&/Chrome/i.test(l);o.IS_CHROME=E;var C=/MSIE\s8\.0/.test(l);o.IS_IE8=C;var O=!!("ontouchstart"in a.default||a.default.DocumentTouch&&i.default instanceof a.default.DocumentTouch);o.TOUCH_ENABLED=O;var x="backgroundSize"in i.default.createElement("video").style;o.BACKGROUND_SIZE_SUPPORTED=x},{"global/document":1,"global/window":2}],141:[function(t,e,o){"use strict";function n(t,e){var o,n,i=0;if(!e)return 0;t&&t.length||(t=r.createTimeRange(0,0));for(var s=0;s<t.length;s++)o=t.start(s),n=t.end(s),n>e&&(n=e),i+=n-o;return i/e}o.__esModule=!0,o.bufferedPercent=n;var r=t("./time-ranges.js")},{"./time-ranges.js":151}],142:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=t("./log.js"),i=n(r),s={get:function(t,e){return t[e]},set:function(t,e,o){return t[e]=o,!0}};o.default=function(t){var e,o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if("function"==typeof Proxy){var n=(e={},Object.keys(o).forEach(function(t){s.hasOwnProperty(t)&&(e[t]=function(){return i.default.warn(o[t]),s[t].apply(this,arguments)})}),{v:new Proxy(t,e)});if("object"==typeof n)return n.v}return t},e.exports=o.default},{"./log.js":148}],143:[function(t,e,o){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){return t.raw=e,t}function s(t){return"string"==typeof t&&/\S/.test(t)}function a(t){if(/\s/.test(t))throw new Error("class has illegal whitespace characters")}function l(t){return new RegExp("(^|\\s)"+t+"($|\\s)")}function u(t){return function(e,o){return s(e)?(s(o)&&(o=L.default.querySelector(o)),(O(o)?o:L.default)[t](e)):L.default[t](null)}}function c(t){return 0===t.indexOf("#")&&(t=t.slice(1)),L.default.getElementById(t)}function p(){var t=arguments.length<=0||void 0===arguments[0]?"div":arguments[0],e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],n=L.default.createElement(t);return Object.getOwnPropertyNames(e).forEach(function(t){var o=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(V.default.warn($.default(I,t,o)),n.setAttribute(t,o)):n[t]=o}),Object.getOwnPropertyNames(o).forEach(function(t){o[t];n.setAttribute(t,o[t])}),n}function f(t,e){void 0===t.textContent?t.innerText=e:t.textContent=e}function h(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function d(t){var e=t[z];return e||(e=t[z]=B.newGUID()),W[e]||(W[e]={}),W[e]}function y(t){var e=t[z];return!!e&&!!Object.getOwnPropertyNames(W[e]).length}function v(t){var e=t[z];if(e){delete W[e];try{delete t[z]}catch(e){t.removeAttribute?t.removeAttribute(z):t[z]=null}}}function g(t,e){return t.classList?t.classList.contains(e):(a(e),l(e).test(t.className))}function m(t,e){return t.classList?t.classList.add(e):g(t,e)||(t.className=(t.className+" "+e).trim()),t}function _(t,e){return t.classList?t.classList.remove(e):(a(e),t.className=t.className.split(/\s+/).filter(function(t){return t!==e}).join(" ")),t}function b(t,e,o){var n=g(t,e);if("function"==typeof o&&(o=o(t,e)),"boolean"!=typeof o&&(o=!n),o!==n)return o?m(t,e):_(t,e),t}function j(t,e){Object.getOwnPropertyNames(e).forEach(function(o){var n=e[o];null==n||!1===n?t.removeAttribute(o):t.setAttribute(o,!0===n?"":n)})}function T(t){var e,o,n,r,i;if(e={},o=",autoplay,controls,loop,muted,default,",t&&t.attributes&&t.attributes.length>0){n=t.attributes;for(var s=n.length-1;s>=0;s--)r=n[s].name,i=n[s].value,"boolean"!=typeof t[r]&&-1===o.indexOf(","+r+",")||(i=null!==i),e[r]=i}return e}function w(){L.default.body.focus(),L.default.onselectstart=function(){return!1}}function k(){L.default.onselectstart=function(){return!0}}function E(t){var e=void 0;if(t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var o=L.default.documentElement,n=L.default.body,r=o.clientLeft||n.clientLeft||0,i=F.default.pageXOffset||n.scrollLeft,s=e.left+i-r,a=o.clientTop||n.clientTop||0,l=F.default.pageYOffset||n.scrollTop,u=e.top+l-a;return{left:Math.round(s),top:Math.round(u)}}function C(t,e){var o={},n=E(t),r=t.offsetWidth,i=t.offsetHeight,s=n.top,a=n.left,l=e.pageY,u=e.pageX;return e.changedTouches&&(u=e.changedTouches[0].pageX,l=e.changedTouches[0].pageY),o.y=Math.max(0,Math.min(1,(s-l+i)/i)),o.x=Math.max(0,Math.min(1,(u-a)/r)),o}function O(t){return!!t&&"object"==typeof t&&1===t.nodeType}function x(t){return!!t&&"object"==typeof t&&3===t.nodeType}function S(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function P(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&&(t=t()),O(t)||x(t)?t:"string"==typeof t&&/\S/.test(t)?L.default.createTextNode(t):void 0}).filter(function(t){return t})}function M(t,e){return P(e).forEach(function(e){return t.appendChild(e)}),t}function A(t,e){return M(S(t),e)}o.__esModule=!0,o.getEl=c,o.createEl=p,o.textContent=f,o.insertElFirst=h,o.getElData=d,o.hasElData=y,o.removeElData=v,o.hasElClass=g,o.addElClass=m,o.removeElClass=_,o.toggleElClass=b,o.setElAttributes=j,o.getElAttributes=T,o.blockTextSelection=w,o.unblockTextSelection=k,o.findElPosition=E,o.getPointerPosition=C,o.isEl=O,o.isTextNode=x,o.emptyEl=S,o.normalizeContent=P,o.appendContent=M,o.insertContent=A;var I=i(["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."]),D=t("global/document"),L=r(D),N=t("global/window"),F=r(N),R=t("./guid.js"),B=n(R),H=t("./log.js"),V=r(H),U=t("tsml"),$=r(U),W={},z="vdata"+(new Date).getTime(),q=u("querySelector");o.$=q;var X=u("querySelectorAll");o.$$=X},{"./guid.js":147,"./log.js":148,"global/document":1,"global/window":2,tsml:55}],144:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function i(t,e,o){if(Array.isArray(e))return p(i,t,e,o);var n=h.getElData(t);n.handlers||(n.handlers={}),n.handlers[e]||(n.handlers[e]=[]),o.guid||(o.guid=y.newGUID()),n.handlers[e].push(o),n.dispatcher||(n.disabled=!1,n.dispatcher=function(e,o){if(!n.disabled){e=u(e);var r=n.handlers[e.type];if(r)for(var i=r.slice(0),s=0,a=i.length;s<a&&!e.isImmediatePropagationStopped();s++)i[s].call(t,e,o)}}),1===n.handlers[e].length&&(t.addEventListener?t.addEventListener(e,n.dispatcher,!1):t.attachEvent&&t.attachEvent("on"+e,n.dispatcher))}function s(t,e,o){if(h.hasElData(t)){var n=h.getElData(t);if(n.handlers){if(Array.isArray(e))return p(s,t,e,o);var r=function(e){n.handlers[e]=[],c(t,e)};if(e){var i=n.handlers[e];if(i)if(o){if(o.guid)for(var a=0;a<i.length;a++)i[a].guid===o.guid&&i.splice(a--,1);c(t,e)}else r(e)}else for(var l in n.handlers)r(l)}}}function a(t,e,o){var n=h.hasElData(t)?h.getElData(t):{},r=t.parentNode||t.ownerDocument;if("string"==typeof e&&(e={type:e,target:t}),e=u(e),n.dispatcher&&n.dispatcher.call(t,e,o),r&&!e.isPropagationStopped()&&!0===e.bubbles)a.call(null,r,e,o);else if(!r&&!e.defaultPrevented){var i=h.getElData(e.target);e.target[e.type]&&(i.disabled=!0,"function"==typeof e.target[e.type]&&e.target[e.type](),i.disabled=!1)}return!e.defaultPrevented}function l(t,e,o){if(Array.isArray(e))return p(l,t,e,o);var n=function n(){s(t,e,n),o.apply(this,arguments)};n.guid=o.guid=o.guid||y.newGUID(),i(t,e,n)}function u(t){function e(){return!0}function o(){return!1}if(!t||!t.isPropagationStopped){var n=t||g.default.event;for(var r in t={},n)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&("returnValue"===r&&n.preventDefault||(t[r]=n[r]));if(t.target||(t.target=t.srcElement||_.default),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){n.preventDefault&&n.preventDefault(),t.returnValue=!1,n.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),t.cancelBubble=!0,n.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=o,t.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=o,null!=t.clientX){var i=_.default.documentElement,s=_.default.body;t.pageX=t.clientX+(i&&i.scrollLeft||s&&s.scrollLeft||0)-(i&&i.clientLeft||s&&s.clientLeft||0),t.pageY=t.clientY+(i&&i.scrollTop||s&&s.scrollTop||0)-(i&&i.clientTop||s&&s.clientTop||0)}t.which=t.charCode||t.keyCode,null!=t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t}function c(t,e){var o=h.getElData(t);0===o.handlers[e].length&&(delete o.handlers[e],t.removeEventListener?t.removeEventListener(e,o.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,o.dispatcher)),Object.getOwnPropertyNames(o.handlers).length<=0&&(delete o.handlers,delete o.dispatcher,delete o.disabled),0===Object.getOwnPropertyNames(o).length&&h.removeElData(t)}function p(t,e,o,n){o.forEach(function(o){t(e,o,n)})}o.__esModule=!0,o.on=i,o.off=s,o.trigger=a,o.one=l,o.fixEvent=u;var f=t("./dom.js"),h=r(f),d=t("./guid.js"),y=r(d),v=t("global/window"),g=n(v),m=t("global/document"),_=n(m)},{"./dom.js":143,"./guid.js":147,"global/document":1,"global/window":2}],145:[function(t,e,o){"use strict";o.__esModule=!0;var n=t("./guid.js"),r=function(t,e,o){e.guid||(e.guid=n.newGUID());var r=function(){return e.apply(t,arguments)};return r.guid=o?o+"_"+e.guid:e.guid,r};o.bind=r},{"./guid.js":147}],146:[function(t,e,o){"use strict";function n(t){var e=arguments.length<=1||void 0===arguments[1]?t:arguments[1];return function(){t=t<0?0:t;var o=Math.floor(t%60),n=Math.floor(t/60%60),r=Math.floor(t/3600),i=Math.floor(e/60%60),s=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(r=n=o="-"),r=r>0||s>0?r+":":"",n=((r||i>=10)&&n<10?"0"+n:n)+":",o=o<10?"0"+o:o,r+n+o}()}o.__esModule=!0,o.default=n,e.exports=o.default},{}],147:[function(t,e,o){"use strict";function n(){return r++}o.__esModule=!0,o.newGUID=n;var r=1},{}],148:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var o=Array.prototype.slice.call(e),n=function(){},r=s.default.console||{log:n,warn:n,error:n};t?o.unshift(t.toUpperCase()+":"):t="log",a.history.push(o),o.unshift("VIDEOJS:"),r[t].apply?r[t].apply(r,o):r[t](o.join(" "))}o.__esModule=!0;var i=t("global/window"),s=n(i),a=function(){r(null,arguments)};a.history=[],a.error=function(){r("error",arguments)},a.warn=function(){r("warn",arguments)},o.default=a,e.exports=o.default},{"global/window":2}],149:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){return!!t&&"object"==typeof t&&"[object Object]"===t.toString()&&t.constructor===Object}function i(){var t=Array.prototype.slice.call(arguments);return t.unshift({}),t.push(l),a.default.apply(null,t),t[0]}o.__esModule=!0,o.default=i;var s=t("lodash-compat/object/merge"),a=n(s),l=function(t,e){return r(e)?r(t)?void 0:i(e):e};e.exports=o.default},{"lodash-compat/object/merge":40}],150:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=t("global/document"),i=n(r),s=function(t){var e=i.default.createElement("style");return e.className=t,e};o.createStyleElement=s;var a=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e};o.setTextContent=a},{"global/document":1}],151:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){return Array.isArray(t)?i(t):void 0===t||void 0===e?i():i([[t,e]])}function i(t){return void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:s.bind(null,"start",0,t),end:s.bind(null,"end",1,t)}}function s(t,e,o,n){return void 0===n&&(u.default.warn("DEPRECATED: Function '"+t+"' on 'TimeRanges' called without an index argument."),n=0),a(t,n,o.length-1),o[n][e]}function a(t,e,o){if(e<0||e>o)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is greater than or equal to the maximum bound ("+o+").")}o.__esModule=!0,o.createTimeRanges=r;var l=t("./log.js"),u=n(l);o.createTimeRange=r},{"./log.js":148}],152:[function(t,e,o){"use strict";function n(t){return t.charAt(0).toUpperCase()+t.slice(1)}o.__esModule=!0,o.default=n,e.exports=o.default},{}],153:[function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var r=t("global/document"),i=n(r),s=t("global/window"),a=n(s),l=function(t){var e=["protocol","hostname","port","pathname","search","hash","host"],o=i.default.createElement("a");o.href=t;var n=""===o.host&&"file:"!==o.protocol,r=void 0;n&&(r=i.default.createElement("div"),r.innerHTML='<a href="'+t+'"></a>',o=r.firstChild,r.setAttribute("style","display:none; position:absolute;"),i.default.body.appendChild(r));for(var s={},a=0;a<e.length;a++)s[e[a]]=o[e[a]];return"http:"===s.protocol&&(s.host=s.host.replace(/:80$/,"")),"https:"===s.protocol&&(s.host=s.host.replace(/:443$/,"")),n&&i.default.body.removeChild(r),s};o.parseUrl=l;var u=function(t){if(!t.match(/^https?:\/\//)){var e=i.default.createElement("div");e.innerHTML='<a href="'+t+'">x</a>',t=e.firstChild.href}return t};o.getAbsoluteURL=u;var c=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,o=e.exec(t);if(o)return o.pop().toLowerCase()}return""};o.getFileExtension=c;var p=function(t){var e=a.default.location,o=l(t),n=":"===o.protocol?e.protocol:o.protocol,r=n+o.host!==e.protocol+e.host;return r};o.isCrossOrigin=p},{"global/document":1,"global/window":2}],154:[function(e,o,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=e("global/window"),a=i(s),l=e("global/document"),u=i(l),c=e("./setup"),p=r(c),f=e("./utils/stylesheet.js"),h=r(f),d=e("./component"),y=i(d),v=e("./event-target"),g=i(v),m=e("./utils/events.js"),_=r(m),b=e("./player"),j=i(b),T=e("./plugins.js"),w=i(T),k=e("../../src/js/utils/merge-options.js"),E=i(k),C=e("./utils/fn.js"),O=r(C),x=e("./tracks/text-track.js"),S=i(x),P=e("./tracks/audio-track.js"),M=i(P),A=e("./tracks/video-track.js"),I=i(A),D=e("object.assign"),L=(i(D),e("./utils/time-ranges.js")),N=e("./utils/format-time.js"),F=i(N),R=e("./utils/log.js"),B=i(R),H=e("./utils/dom.js"),V=r(H),U=e("./utils/browser.js"),$=r(U),W=e("./utils/url.js"),z=r(W),q=e("./extend.js"),X=i(q),G=e("lodash-compat/object/merge"),K=i(G),Y=e("./utils/create-deprecation-proxy.js"),J=i(Y),Q=e("xhr"),Z=i(Q),tt=e("./tech/tech.js"),et=i(tt),ot=e("./tech/html5.js"),nt=(i(ot),e("./tech/flash.js"));i(nt);"undefined"==typeof HTMLVideoElement&&(u.default.createElement("video"),u.default.createElement("audio"),u.default.createElement("track"));var rt=function t(e,o,n){var r=void 0;if("string"==typeof e){if(0===e.indexOf("#")&&(e=e.slice(1)),t.getPlayers()[e])return o&&B.default.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&t.getPlayers()[e].ready(n),t.getPlayers()[e];r=V.getEl(e)}else r=e;if(!r||!r.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return r.player||j.default.players[r.playerId]||new j.default(r,o,n)};if(!0!==a.default.VIDEOJS_NO_DYNAMIC_STYLE){var it=V.$(".vjs-styles-defaults");if(!it){it=h.createStyleElement("vjs-styles-defaults");var st=V.$("head");st.insertBefore(it,st.firstChild),h.setTextContent(it,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")}}p.autoSetupTimeout(1,rt),rt.VERSION="5.10.1",rt.options=j.default.prototype.options_,rt.getPlayers=function(){return j.default.players},rt.players=J.default(j.default.players,{get:"Access to videojs.players is deprecated; use videojs.getPlayers instead",set:"Modification of videojs.players is deprecated"}),rt.getComponent=y.default.getComponent,rt.registerComponent=function(t,e){et.default.isTech(e)&&B.default.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),y.default.registerComponent.call(y.default,t,e)},rt.getTech=et.default.getTech,rt.registerTech=et.default.registerTech,rt.browser=$,rt.TOUCH_ENABLED=$.TOUCH_ENABLED,rt.extend=X.default,rt.mergeOptions=E.default,rt.bind=O.bind,rt.plugin=w.default,rt.addLanguage=function(t,e){var o;return t=(""+t).toLowerCase(),K.default(rt.options.languages,(o={},o[t]=e,o))[t]},rt.log=B.default,rt.createTimeRange=rt.createTimeRanges=L.createTimeRanges,rt.formatTime=F.default,rt.parseUrl=z.parseUrl,rt.isCrossOrigin=z.isCrossOrigin,rt.EventTarget=g.default,rt.on=_.on,rt.one=_.one,rt.off=_.off,rt.trigger=_.trigger,rt.xhr=Z.default,rt.TextTrack=S.default,rt.AudioTrack=M.default,rt.VideoTrack=I.default,rt.isEl=V.isEl,rt.isTextNode=V.isTextNode,rt.createEl=V.createEl,rt.hasClass=V.hasElClass,rt.addClass=V.addElClass,rt.removeClass=V.removeElClass,rt.toggleClass=V.toggleElClass,rt.setAttributes=V.setElAttributes,rt.getAttributes=V.getElAttributes,rt.emptyEl=V.emptyEl,rt.appendContent=V.appendContent,rt.insertContent=V.insertContent,"function"==typeof t&&t.amd?t("videojs",[],function(){return rt}):"object"==typeof n&&"object"==typeof o&&(o.exports=rt),n.default=rt,o.exports=n.default},{"../../src/js/utils/merge-options.js":149,"./component":67,"./event-target":104,"./extend.js":105,"./player":113,"./plugins.js":114,"./setup":118,"./tech/flash.js":121,"./tech/html5.js":122,"./tech/tech.js":124,"./tracks/audio-track.js":126,"./tracks/text-track.js":134,"./tracks/video-track.js":139,"./utils/browser.js":140,"./utils/create-deprecation-proxy.js":142,"./utils/dom.js":143,"./utils/events.js":144,"./utils/fn.js":145,"./utils/format-time.js":146,"./utils/log.js":148,"./utils/stylesheet.js":150,"./utils/time-ranges.js":151,"./utils/url.js":153,"global/document":1,"global/window":2,"lodash-compat/object/merge":40,"object.assign":45,xhr:56}]},{},[154])(154)}),function(t){var e=t.vttjs={},o=e.VTTCue,n=e.VTTRegion,r=t.VTTCue,i=t.VTTRegion;e.shim=function(){e.VTTCue=o,e.VTTRegion=n},e.restore=function(){e.VTTCue=r,e.VTTRegion=i}}(this),function(t,e){function o(t){if("string"!=typeof t)return!1;var e=a[t.toLowerCase()];return!!e&&t.toLowerCase()}function n(t){if("string"!=typeof t)return!1;var e=l[t.toLowerCase()];return!!e&&t.toLowerCase()}function r(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)t[n]=o[n]}return t}function i(t,e,i){var a=this,l=/MSIE\s8\.0/.test(navigator.userAgent),u={};l?a=document.createElement("custom"):u.enumerable=!0,a.hasBeenReset=!1;var c="",p=!1,f=t,h=e,d=i,y=null,v="",g=!0,m="auto",_="start",b=50,j="middle",T=50,w="middle";if(Object.defineProperty(a,"id",r({},u,{get:function(){return c},set:function(t){c=""+t}})),Object.defineProperty(a,"pauseOnExit",r({},u,{get:function(){return p},set:function(t){p=!!t}})),Object.defineProperty(a,"startTime",r({},u,{get:function(){return f},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");f=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"endTime",r({},u,{get:function(){return h},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");h=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"text",r({},u,{get:function(){return d},set:function(t){d=""+t,this.hasBeenReset=!0}})),Object.defineProperty(a,"region",r({},u,{get:function(){return y},set:function(t){y=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"vertical",r({},u,{get:function(){return v},set:function(t){var e=o(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");v=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"snapToLines",r({},u,{get:function(){return g},set:function(t){g=!!t,this.hasBeenReset=!0}})),Object.defineProperty(a,"line",r({},u,{get:function(){return m},set:function(t){if("number"!=typeof t&&t!==s)throw new SyntaxError("An invalid number or illegal string was specified.");m=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"lineAlign",r({},u,{get:function(){return _},set:function(t){var e=n(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");_=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"position",r({},u,{get:function(){return b},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"positionAlign",r({},u,{get:function(){return j},set:function(t){var e=n(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");j=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"size",r({},u,{get:function(){return T},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");T=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"align",r({},u,{get:function(){return w},set:function(t){var e=n(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");w=e,this.hasBeenReset=!0}})),a.displayState=void 0,l)return a}var s="auto",a={"":!0,lr:!0,rl:!0},l={start:!0,middle:!0,end:!0,left:!0,right:!0};i.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.VTTCue=t.VTTCue||i,e.VTTCue=i}(this,this.vttjs||{}),function(t,e){function o(t){if("string"!=typeof t)return!1;var e=i[t.toLowerCase()];return!!e&&t.toLowerCase()}function n(t){return"number"==typeof t&&t>=0&&t<=100}function r(){var t=100,e=3,r=0,i=100,s=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!n(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return i},set:function(t){if(!n(t))throw new Error("RegionAnchorX must be between 0 and 100.");i=t}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(t){if(!n(t))throw new Error("RegionAnchorY must be between 0 and 100.");r=t}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!n(t))throw new Error("ViewportAnchorY must be between 0 and 100.");a=t}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(t){if(!n(t))throw new Error("ViewportAnchorX must be between 0 and 100.");s=t}},scroll:{enumerable:!0,get:function(){return l},set:function(t){var e=o(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");l=e}}})}var i={"":!0,up:!0};t.VTTRegion=t.VTTRegion||r,e.VTTRegion=r}(this,this.vttjs||{}),function(t){function e(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function o(t){function e(t,e,o,n){return 3600*(0|t)+60*(0|e)+(0|o)+(0|n)/1e3}var o=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return o?o[3]?e(o[1],o[2],o[3].replace(":",""),o[4]):o[1]>59?e(o[1],o[2],0,o[4]):e(0,o[1],o[2],o[4]):null}function n(){this.values=d(null)}function r(t,e,o,n){var r=n?t.split(n):[t];for(var i in r)if("string"==typeof r[i]){var s=r[i].split(o);if(2===s.length){var a=s[0],l=s[1];e(a,l)}}}function i(t,i,s){function a(){var n=o(t);if(null===n)throw new e(e.Errors.BadTimeStamp,"Malformed timestamp: "+c);return t=t.replace(/^[^\sa-zA-Z-]+/,""),n}function l(t,e){var o=new n;r(t,function(t,e){switch(t){case"region":for(var n=s.length-1;n>=0;n--)if(s[n].id===e){o.set(t,s[n].region);break}break;case"vertical":o.alt(t,e,["rl","lr"]);break;case"line":var r=e.split(","),i=r[0];o.integer(t,i),o.percent(t,i)&&o.set("snapToLines",!1),o.alt(t,i,["auto"]),2===r.length&&o.alt("lineAlign",r[1],["start","middle","end"]);break;case"position":r=e.split(","),o.percent(t,r[0]),2===r.length&&o.alt("positionAlign",r[1],["start","middle","end"]);break;case"size":o.percent(t,e);break;case"align":o.alt(t,e,["start","middle","end","left","right"])}},/:/,/\s/),e.region=o.get("region",null),e.vertical=o.get("vertical",""),e.line=o.get("line","auto"),e.lineAlign=o.get("lineAlign","start"),e.snapToLines=o.get("snapToLines",!0),e.size=o.get("size",100),e.align=o.get("align","middle"),e.position=o.get("position",{start:0,left:0,middle:50,end:100,right:100},e.align),e.positionAlign=o.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},e.align)}function u(){t=t.replace(/^\s+/,"")}var c=t;if(u(),i.startTime=a(),u(),"-->"!==t.substr(0,3))throw new e(e.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+c);t=t.substr(3),u(),i.endTime=a(),u(),l(t,i)}function s(t,e){function n(){function t(t){return e=e.substr(t.length),t}if(!e)return null;var o=e.match(/^([^<]*)(<[^>]+>?)?/);return t(o[1]?o[1]:o[2])}function r(t){return y[t]}function i(t){for(;d=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(d[0],r);return t}function s(t,e){return!m[e.localName]||m[e.localName]===t.localName}function a(e,o){var n=v[e];if(!n)return null;var r=t.document.createElement(n);r.localName=n;var i=g[e];return i&&o&&(r[i]=o.trim()),r}for(var l,u=t.document.createElement("div"),c=u,p=[];null!==(l=n());)if("<"!==l[0])c.appendChild(t.document.createTextNode(i(l)));else{if("/"===l[1]){p.length&&p[p.length-1]===l.substr(2).replace(">","")&&(p.pop(),c=c.parentNode);continue}var f,h=o(l.substr(1,l.length-2));if(h){f=t.document.createProcessingInstruction("timestamp",h),c.appendChild(f);continue}var d=l.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!d)continue;if(f=a(d[1],d[3]),!f)continue;if(!s(c,f))continue;d[2]&&(f.className=d[2].substr(1).replace("."," ")),p.push(d[1]),c.appendChild(f),c=f}return u}function a(t){function e(t,e){for(var o=e.childNodes.length-1;o>=0;o--)t.push(e.childNodes[o])}function o(t){if(!t||!t.length)return null;var n=t.pop(),r=n.textContent||n.innerText;if(r){var i=r.match(/^.*(\n|\r)/);return i?(t.length=0,i[0]):r}return"ruby"===n.tagName?o(t):n.childNodes?(e(t,n),o(t)):void 0}var n,r=[],i="";if(!t||!t.childNodes)return"ltr";for(e(r,t);i=o(r);)for(var s=0;s<i.length;s++){n=i.charCodeAt(s);for(var a=0;a<_.length;a++)if(_[a]===n)return"rtl"}return"ltr"}function l(t){if("number"==typeof t.line&&(t.snapToLines||t.line>=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1
;for(var e=t.track,o=e.textTrackList,n=0,r=0;r<o.length&&o[r]!==e;r++)"showing"===o[r].mode&&n++;return-1*++n}function u(){}function c(t,e,o){var n=/MSIE\s8\.0/.test(navigator.userAgent),r="rgba(255, 255, 255, 1)",i="rgba(0, 0, 0, 0.8)";n&&(r="rgb(255, 255, 255)",i="rgb(0, 0, 0)"),u.call(this),this.cue=e,this.cueDiv=s(t,e.text);var l={color:r,backgroundColor:i,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};n||(l.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",l.unicodeBidi="plaintext"),this.applyStyles(l,this.cueDiv),this.div=t.document.createElement("div"),l={textAlign:"middle"===e.align?"center":e.align,font:o.font,whiteSpace:"pre-line",position:"absolute"},n||(l.direction=a(this.cueDiv),l.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(l),this.div.appendChild(this.cueDiv);var c=0;switch(e.positionAlign){case"start":c=e.position;break;case"middle":c=e.position-e.size/2;break;case"end":c=e.position-e.size}""===e.vertical?this.applyStyles({left:this.formatStyle(c,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(c,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function p(t){var e,o,n,r,i=/MSIE\s8\.0/.test(navigator.userAgent);if(t.div){o=t.div.offsetHeight,n=t.div.offsetWidth,r=t.div.offsetTop;var s=(s=t.div.childNodes)&&(s=s[0])&&s.getClientRects&&s.getClientRects();t=t.div.getBoundingClientRect(),e=s?Math.max(s[0]&&s[0].height||0,t.height/s.length):0}this.left=t.left,this.right=t.right,this.top=t.top||r,this.height=t.height||o,this.bottom=t.bottom||r+(t.height||o),this.width=t.width||n,this.lineHeight=void 0!==e?e:t.lineHeight,i&&!this.lineHeight&&(this.lineHeight=13)}function f(t,e,o,n){function r(t,e){for(var r,i=new p(t),s=1,a=0;a<e.length;a++){for(;t.overlapsOppositeAxis(o,e[a])||t.within(o)&&t.overlapsAny(n);)t.move(e[a]);if(t.within(o))return t;var l=t.intersectPercentage(o);s>l&&(r=new p(t),s=l),t=new p(i)}return r||i}var i=new p(e),s=e.cue,a=l(s),u=[];if(s.snapToLines){var c;switch(s.vertical){case"":u=["+y","-y"],c="height";break;case"rl":u=["+x","-x"],c="width";break;case"lr":u=["-x","+x"],c="width"}var f=i.lineHeight,h=f*Math.round(a),d=o[c]+f,y=u[0];Math.abs(h)>d&&(h=h<0?-1:1,h*=Math.ceil(d/f)*f),a<0&&(h+=""===s.vertical?o.height:o.width,u=u.reverse()),i.move(y,h)}else{var v=i.lineHeight/o.height*100;switch(s.lineAlign){case"middle":a-=v/2;break;case"end":a-=v}switch(s.vertical){case"":e.applyStyles({top:e.formatStyle(a,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(a,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(a,"%")})}u=["+y","-x","+x","-y"],i=new p(e)}var g=r(i,u);e.move(g.toCSSCompatValues(o))}function h(){}var d=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();e.prototype=d(Error.prototype),e.prototype.constructor=e,e.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},n.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,o){return o?this.has(t)?this.values[t]:e[o]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,o){for(var n=0;n<o.length;++n)if(e===o[n]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e),e>=0&&e<=100))&&(this.set(t,e),!0)}};var y={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},v={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},g={v:"title",lang:"lang"},m={rt:"ruby"},_=[1470,1472,1475,1478,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1520,1521,1522,1523,1524,1544,1547,1549,1563,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1645,1646,1647,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1765,1766,1774,1775,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1807,1808,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1969,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2036,2037,2042,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2074,2084,2088,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2142,2208,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,8207,64285,64287,64288,64289,64290,64291,64292,64293,64294,64295,64296,64298,64299,64300,64301,64302,64303,64304,64305,64306,64307,64308,64309,64310,64312,64313,64314,64315,64316,64318,64320,64321,64323,64324,64326,64327,64328,64329,64330,64331,64332,64333,64334,64335,64336,64337,64338,64339,64340,64341,64342,64343,64344,64345,64346,64347,64348,64349,64350,64351,64352,64353,64354,64355,64356,64357,64358,64359,64360,64361,64362,64363,64364,64365,64366,64367,64368,64369,64370,64371,64372,64373,64374,64375,64376,64377,64378,64379,64380,64381,64382,64383,64384,64385,64386,64387,64388,64389,64390,64391,64392,64393,64394,64395,64396,64397,64398,64399,64400,64401,64402,64403,64404,64405,64406,64407,64408,64409,64410,64411,64412,64413,64414,64415,64416,64417,64418,64419,64420,64421,64422,64423,64424,64425,64426,64427,64428,64429,64430,64431,64432,64433,64434,64435,64436,64437,64438,64439,64440,64441,64442,64443,64444,64445,64446,64447,64448,64449,64467,64468,64469,64470,64471,64472,64473,64474,64475,64476,64477,64478,64479,64480,64481,64482,64483,64484,64485,64486,64487,64488,64489,64490,64491,64492,64493,64494,64495,64496,64497,64498,64499,64500,64501,64502,64503,64504,64505,64506,64507,64508,64509,64510,64511,64512,64513,64514,64515,64516,64517,64518,64519,64520,64521,64522,64523,64524,64525,64526,64527,64528,64529,64530,64531,64532,64533,64534,64535,64536,64537,64538,64539,64540,64541,64542,64543,64544,64545,64546,64547,64548,64549,64550,64551,64552,64553,64554,64555,64556,64557,64558,64559,64560,64561,64562,64563,64564,64565,64566,64567,64568,64569,64570,64571,64572,64573,64574,64575,64576,64577,64578,64579,64580,64581,64582,64583,64584,64585,64586,64587,64588,64589,64590,64591,64592,64593,64594,64595,64596,64597,64598,64599,64600,64601,64602,64603,64604,64605,64606,64607,64608,64609,64610,64611,64612,64613,64614,64615,64616,64617,64618,64619,64620,64621,64622,64623,64624,64625,64626,64627,64628,64629,64630,64631,64632,64633,64634,64635,64636,64637,64638,64639,64640,64641,64642,64643,64644,64645,64646,64647,64648,64649,64650,64651,64652,64653,64654,64655,64656,64657,64658,64659,64660,64661,64662,64663,64664,64665,64666,64667,64668,64669,64670,64671,64672,64673,64674,64675,64676,64677,64678,64679,64680,64681,64682,64683,64684,64685,64686,64687,64688,64689,64690,64691,64692,64693,64694,64695,64696,64697,64698,64699,64700,64701,64702,64703,64704,64705,64706,64707,64708,64709,64710,64711,64712,64713,64714,64715,64716,64717,64718,64719,64720,64721,64722,64723,64724,64725,64726,64727,64728,64729,64730,64731,64732,64733,64734,64735,64736,64737,64738,64739,64740,64741,64742,64743,64744,64745,64746,64747,64748,64749,64750,64751,64752,64753,64754,64755,64756,64757,64758,64759,64760,64761,64762,64763,64764,64765,64766,64767,64768,64769,64770,64771,64772,64773,64774,64775,64776,64777,64778,64779,64780,64781,64782,64783,64784,64785,64786,64787,64788,64789,64790,64791,64792,64793,64794,64795,64796,64797,64798,64799,64800,64801,64802,64803,64804,64805,64806,64807,64808,64809,64810,64811,64812,64813,64814,64815,64816,64817,64818,64819,64820,64821,64822,64823,64824,64825,64826,64827,64828,64829,64848,64849,64850,64851,64852,64853,64854,64855,64856,64857,64858,64859,64860,64861,64862,64863,64864,64865,64866,64867,64868,64869,64870,64871,64872,64873,64874,64875,64876,64877,64878,64879,64880,64881,64882,64883,64884,64885,64886,64887,64888,64889,64890,64891,64892,64893,64894,64895,64896,64897,64898,64899,64900,64901,64902,64903,64904,64905,64906,64907,64908,64909,64910,64911,64914,64915,64916,64917,64918,64919,64920,64921,64922,64923,64924,64925,64926,64927,64928,64929,64930,64931,64932,64933,64934,64935,64936,64937,64938,64939,64940,64941,64942,64943,64944,64945,64946,64947,64948,64949,64950,64951,64952,64953,64954,64955,64956,64957,64958,64959,64960,64961,64962,64963,64964,64965,64966,64967,65008,65009,65010,65011,65012,65013,65014,65015,65016,65017,65018,65019,65020,65136,65137,65138,65139,65140,65142,65143,65144,65145,65146,65147,65148,65149,65150,65151,65152,65153,65154,65155,65156,65157,65158,65159,65160,65161,65162,65163,65164,65165,65166,65167,65168,65169,65170,65171,65172,65173,65174,65175,65176,65177,65178,65179,65180,65181,65182,65183,65184,65185,65186,65187,65188,65189,65190,65191,65192,65193,65194,65195,65196,65197,65198,65199,65200,65201,65202,65203,65204,65205,65206,65207,65208,65209,65210,65211,65212,65213,65214,65215,65216,65217,65218,65219,65220,65221,65222,65223,65224,65225,65226,65227,65228,65229,65230,65231,65232,65233,65234,65235,65236,65237,65238,65239,65240,65241,65242,65243,65244,65245,65246,65247,65248,65249,65250,65251,65252,65253,65254,65255,65256,65257,65258,65259,65260,65261,65262,65263,65264,65265,65266,65267,65268,65269,65270,65271,65272,65273,65274,65275,65276,67584,67585,67586,67587,67588,67589,67592,67594,67595,67596,67597,67598,67599,67600,67601,67602,67603,67604,67605,67606,67607,67608,67609,67610,67611,67612,67613,67614,67615,67616,67617,67618,67619,67620,67621,67622,67623,67624,67625,67626,67627,67628,67629,67630,67631,67632,67633,67634,67635,67636,67637,67639,67640,67644,67647,67648,67649,67650,67651,67652,67653,67654,67655,67656,67657,67658,67659,67660,67661,67662,67663,67664,67665,67666,67667,67668,67669,67671,67672,67673,67674,67675,67676,67677,67678,67679,67840,67841,67842,67843,67844,67845,67846,67847,67848,67849,67850,67851,67852,67853,67854,67855,67856,67857,67858,67859,67860,67861,67862,67863,67864,67865,67866,67867,67872,67873,67874,67875,67876,67877,67878,67879,67880,67881,67882,67883,67884,67885,67886,67887,67888,67889,67890,67891,67892,67893,67894,67895,67896,67897,67903,67968,67969,67970,67971,67972,67973,67974,67975,67976,67977,67978,67979,67980,67981,67982,67983,67984,67985,67986,67987,67988,67989,67990,67991,67992,67993,67994,67995,67996,67997,67998,67999,68e3,68001,68002,68003,68004,68005,68006,68007,68008,68009,68010,68011,68012,68013,68014,68015,68016,68017,68018,68019,68020,68021,68022,68023,68030,68031,68096,68112,68113,68114,68115,68117,68118,68119,68121,68122,68123,68124,68125,68126,68127,68128,68129,68130,68131,68132,68133,68134,68135,68136,68137,68138,68139,68140,68141,68142,68143,68144,68145,68146,68147,68160,68161,68162,68163,68164,68165,68166,68167,68176,68177,68178,68179,68180,68181,68182,68183,68184,68192,68193,68194,68195,68196,68197,68198,68199,68200,68201,68202,68203,68204,68205,68206,68207,68208,68209,68210,68211,68212,68213,68214,68215,68216,68217,68218,68219,68220,68221,68222,68223,68352,68353,68354,68355,68356,68357,68358,68359,68360,68361,68362,68363,68364,68365,68366,68367,68368,68369,68370,68371,68372,68373,68374,68375,68376,68377,68378,68379,68380,68381,68382,68383,68384,68385,68386,68387,68388,68389,68390,68391,68392,68393,68394,68395,68396,68397,68398,68399,68400,68401,68402,68403,68404,68405,68416,68417,68418,68419,68420,68421,68422,68423,68424,68425,68426,68427,68428,68429,68430,68431,68432,68433,68434,68435,68436,68437,68440,68441,68442,68443,68444,68445,68446,68447,68448,68449,68450,68451,68452,68453,68454,68455,68456,68457,68458,68459,68460,68461,68462,68463,68464,68465,68466,68472,68473,68474,68475,68476,68477,68478,68479,68608,68609,68610,68611,68612,68613,68614,68615,68616,68617,68618,68619,68620,68621,68622,68623,68624,68625,68626,68627,68628,68629,68630,68631,68632,68633,68634,68635,68636,68637,68638,68639,68640,68641,68642,68643,68644,68645,68646,68647,68648,68649,68650,68651,68652,68653,68654,68655,68656,68657,68658,68659,68660,68661,68662,68663,68664,68665,68666,68667,68668,68669,68670,68671,68672,68673,68674,68675,68676,68677,68678,68679,68680,126464,126465,126466,126467,126469,126470,126471,126472,126473,126474,126475,126476,126477,126478,126479,126480,126481,126482,126483,126484,126485,126486,126487,126488,126489,126490,126491,126492,126493,126494,126495,126497,126498,126500,126503,126505,126506,126507,126508,126509,126510,126511,126512,126513,126514,126516,126517,126518,126519,126521,126523,126530,126535,126537,126539,126541,126542,126543,126545,126546,126548,126551,126553,126555,126557,126559,126561,126562,126564,126567,126568,126569,126570,126572,126573,126574,126575,126576,126577,126578,126580,126581,126582,126583,126585,126586,126587,126588,126590,126592,126593,126594,126595,126596,126597,126598,126599,126600,126601,126603,126604,126605,126606,126607,126608,126609,126610,126611,126612,126613,126614,126615,126616,126617,126618,126619,126625,126626,126627,126629,126630,126631,126632,126633,126635,126636,126637,126638,126639,126640,126641,126642,126643,126644,126645,126646,126647,126648,126649,126650,126651,1114109];u.prototype.applyStyles=function(t,e){for(var o in e=e||this.div,t)t.hasOwnProperty(o)&&(e.style[o]=t[o])},u.prototype.formatStyle=function(t,e){return 0===t?0:t+e},c.prototype=d(u.prototype),c.prototype.constructor=c,p.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},p.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top},p.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1},p.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},p.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}},p.prototype.intersectPercentage=function(t){var e=Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left)),o=Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top)),n=e*o;return n/(this.height*this.width)},p.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},p.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,o=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t;var r={left:t.left,right:t.right,top:t.top||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||o};return r},h.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},h.convertCueToDOMTree=function(t,e){return t&&e?s(t,e):null};var b=.05,j="sans-serif",T="1.5%";h.processCues=function(t,e,o){function n(t){for(var e=0;e<t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return!0;return!1}if(!t||!e||!o)return null;for(;o.firstChild;)o.removeChild(o.firstChild);var r=t.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin=T,o.appendChild(r),n(e)){var i=[],s=p.getSimpleBoxPosition(r),a=Math.round(s.height*b*100)/100,l={font:a+"px "+j};(function(){for(var o,n,a=0;a<e.length;a++)n=e[a],o=new c(t,n,l),r.appendChild(o.div),f(t,o,s,i),n.displayState=o.div,i.push(p.getSimpleBoxPosition(o))})()}else for(var u=0;u<e.length;u++)r.appendChild(e[u].displayState)},h.Parser=function(t,e,o){o||(o=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=o||new TextDecoder("utf8"),this.regionList=[]},h.Parser.prototype={reportOrThrowError:function(t){if(!(t instanceof e))throw t;this.onparsingerror&&this.onparsingerror(t)},parse:function(t){function o(){for(var t=l.buffer,e=0;e<t.length&&"\r"!==t[e]&&"\n"!==t[e];)++e;var o=t.substr(0,e);return"\r"===t[e]&&++e,"\n"===t[e]&&++e,l.buffer=t.substr(e),o}function s(t){var e=new n;if(r(t,function(t,o){switch(t){case"id":e.set(t,o);break;case"width":e.percent(t,o);break;case"lines":e.integer(t,o);break;case"regionanchor":case"viewportanchor":var r=o.split(",");if(2!==r.length)break;var i=new n;if(i.percent("x",r[0]),i.percent("y",r[1]),!i.has("x")||!i.has("y"))break;e.set(t+"X",i.get("x")),e.set(t+"Y",i.get("y"));break;case"scroll":e.alt(t,o,["up"])}},/=/,/\s/),e.has("id")){var o=new(l.vttjs.VTTRegion||l.window.VTTRegion);o.width=e.get("width",100),o.lines=e.get("lines",3),o.regionAnchorX=e.get("regionanchorX",0),o.regionAnchorY=e.get("regionanchorY",100),o.viewportAnchorX=e.get("viewportanchorX",0),o.viewportAnchorY=e.get("viewportanchorY",100),o.scroll=e.get("scroll",""),l.onregion&&l.onregion(o),l.regionList.push({id:e.get("id"),region:o})}}function a(t){r(t,function(t,e){switch(t){case"Region":s(e)}},/:/)}var l=this;t&&(l.buffer+=l.decoder.decode(t,{stream:!0}));try{var u;if("INITIAL"===l.state){if(!/\r\n|\n/.test(l.buffer))return this;u=o();var c=u.match(/^WEBVTT([ \t].*)?$/);if(!c||!c[0])throw new e(e.Errors.BadSignature);l.state="HEADER"}for(var p=!1;l.buffer;){if(!/\r\n|\n/.test(l.buffer))return this;switch(p?p=!1:u=o(),l.state){case"HEADER":/:/.test(u)?a(u):u||(l.state="ID");continue;case"NOTE":u||(l.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(u)){l.state="NOTE";break}if(!u)continue;if(l.cue=new(l.vttjs.VTTCue||l.window.VTTCue)(0,0,""),l.state="CUE",-1===u.indexOf("-->")){l.cue.id=u;continue}case"CUE":try{i(u,l.cue,l.regionList)}catch(t){l.reportOrThrowError(t),l.cue=null,l.state="BADCUE";continue}l.state="CUETEXT";continue;case"CUETEXT":var f=-1!==u.indexOf("-->");if(!u||f&&(p=!0)){l.oncue&&l.oncue(l.cue),l.cue=null,l.state="ID";continue}l.cue.text&&(l.cue.text+="\n"),l.cue.text+=u;continue;case"BADCUE":u||(l.state="ID");continue}}}catch(t){l.reportOrThrowError(t),"CUETEXT"===l.state&&l.cue&&l.oncue&&l.oncue(l.cue),l.cue=null,l.state="INITIAL"===l.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),(t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new e(e.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}},t.WebVTT=h}(this,this.vttjs);