12 lines
176 KiB
JavaScript
12 lines
176 KiB
JavaScript
|
|
/**
|
||
|
|
* @license
|
||
|
|
* Video.js 7.2.0 <http://videojs.com/>
|
||
|
|
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
|
||
|
|
* Available under Apache License Version 2.0
|
||
|
|
* <https://github.com/videojs/video.js/blob/master/LICENSE>
|
||
|
|
*
|
||
|
|
* Includes vtt.js <https://github.com/mozilla/vtt.js>
|
||
|
|
* Available under Apache License Version 2.0
|
||
|
|
* <https://github.com/mozilla/vtt.js/blob/master/LICENSE>
|
||
|
|
*/
|
||
|
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.videojs=e()}(this,function(){var p="7.2.0",t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var e,d="undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{},n={},r=Object.freeze({default:n}),i=r&&n||r,o="undefined"!=typeof t?t:"undefined"!=typeof window?window:{};"undefined"!=typeof document?e=document:(e=o["__GLOBAL_DOCUMENT_CACHE@4"])||(e=o["__GLOBAL_DOCUMENT_CACHE@4"]=i);var f=e,s=void 0,a="info",l=[],c=function(t,e){var n=s.levels[a],r=new RegExp("^("+n+")$");if("log"!==t&&e.unshift(t.toUpperCase()+":"),l&&l.push([].concat(e)),e.unshift("VIDEOJS:"),d.console){var i=d.console[t];i||"debug"!==t||(i=d.console.info||d.console.log),i&&n&&r.test(t)&&i[Array.isArray(e)?"apply":"call"](d.console,e)}};(s=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];c("log",e)}).levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:a},s.level=function(t){if("string"==typeof t){if(!s.levels.hasOwnProperty(t))throw new Error('"'+t+'" in not a valid log level');a=t}return a},s.history=function(){return l?[].concat(l):[]},s.history.clear=function(){l&&(l.length=0)},s.history.disable=function(){null!==l&&(l.length=0,l=null)},s.history.enable=function(){null===l&&(l=[])},s.error=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return c("error",e)},s.warn=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return c("warn",e)},s.debug=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return c("debug",e)};var y=s;var v=function(t){for(var e="",n=0;n<arguments.length;n++)e+=t[n].replace(/\n\r?\s*/g,"")+(arguments[n+1]||"");return e},u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},m=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},_=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},h=function(t,e){return t.raw=e,t},b=Object.prototype.toString,T=function(t){return E(t)?Object.keys(t):[]};function C(e,n){T(e).forEach(function(t){return n(e[t],t)})}function k(n){for(var t=arguments.length,e=Array(1<t?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return Object.assign?Object.assign.apply(Object,[n].concat(e)):(e.forEach(function(t){t&&C(t,function(t,e){n[e]=t})}),n)}function E(t){return!!t&&"object"===("undefined"==typeof t?"undefined":u(t))}function S(t){return E(t)&&"[object Object]"===b.call(t)&&t.constructor===Object}function w(t,e){if(!t||!e)return"";if("function"==typeof d.getComputedStyle){var n=d.getComputedStyle(t);return n?n[e]:""}return""}var x=h(["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 ","."]);function j(t){return"string"==typeof t&&/\S/.test(t)}function P(t){if(/\s/.test(t))throw new Error("class has illegal whitespace characters")}function A(){return f===d.document}function O(t){return E(t)&&1===t.nodeType}function M(){try{return d.parent!==
|