Web UI for ARGUS server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
225 KiB

6 years ago
​
​
​
​
​
​
​
​
​
​
​
  1. /**
  2. * @license
  3. * Video.js 7.6.5 <http://videojs.com/>
  4. * Copyright Brightcove, Inc. <https://www.brightcove.com/>
  5. * Available under Apache License Version 2.0
  6. * <https://github.com/videojs/video.js/blob/master/LICENSE>
  7. *
  8. * Includes vtt.js <https://github.com/mozilla/vtt.js>
  9. * Available under Apache License Version 2.0
  10. * <https://github.com/mozilla/vtt.js/blob/master/LICENSE>
  11. */
  12. !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("global/window"),require("global/document")):"function"==typeof define&&define.amd?define(["global/window","global/document"],t):(e=e||self).videojs=t(e.window,e.document)}(this,function(h,d){h=h&&h.hasOwnProperty("default")?h.default:h,d=d&&d.hasOwnProperty("default")?d.default:d;var p="7.6.5",l=[],e=function(s,a){return function(e,t,n){var r=a.levels[t],i=new RegExp("^("+r+")$");if("log"!==e&&n.unshift(e.toUpperCase()+":"),n.unshift(s+":"),l&&l.push([].concat(n)),h.console){var o=h.console[e];o||"debug"!==e||(o=h.console.info||h.console.log),o&&r&&i.test(e)&&o[Array.isArray(n)?"apply":"call"](h.console,n)}}};var f=function t(n){function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i("log",o,t)}var i,o="info";return i=e(n,r),r.createLogger=function(e){return t(n+": "+e)},r.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:o},r.level=function(e){if("string"==typeof e){if(!r.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');o=e}return o},(r.history=function(){return l?[].concat(l):[]}).filter=function(t){return(l||[]).filter(function(e){return new RegExp(".*"+t+".*").test(e[0])})},r.history.clear=function(){l&&(l.length=0)},r.history.disable=function(){null!==l&&(l.length=0,l=null)},r.history.enable=function(){null===l&&(l=[])},r.error=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i("error",o,t)},r.warn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i("warn",o,t)},r.debug=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i("debug",o,t)},r}("VIDEOJS"),v=f.createLogger,t=Object.prototype.toString,o=function(e){return s(e)?Object.keys(e):[]};function i(t,n){o(t).forEach(function(e){return n(t[e],e)})}function y(n){for(var e=arguments.length,t=new Array(1<e?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];return Object.assign?Object.assign.apply(Object,[n].concat(t)):(t.forEach(function(e){e&&i(e,function(e,t){n[t]=e})}),n)}function s(e){return!!e&&"object"==typeof e}function a(e){return s(e)&&"[object Object]"===t.call(e)&&e.constructor===Object}function r(e,t){if(!e||!t)return"";if("function"!=typeof h.getComputedStyle)return"";var n=h.getComputedStyle(e);return n?n.getPropertyValue(t)||n[t]:""}function c(e){return"string"==typeof e&&/\S/.test(e)}function n(e){if(/\s/.test(e))throw new Error("class has illegal whitespace characters")}function u(){return d===h.document}function g(e){return s(e)&&1===e.nodeType}function m(){try{return h.parent!==h.self}catch(e){return!0}}function _(r){return function(e,t){if(!c(e))return d[r](null);c(t)&&(t=d.querySelector(t));var n=g(t)?t:d;return n[r]&&n[r](e)}}function b(e,n,t,r){void 0===e&&(e="div"),void 0===n&&(n={}),void 0===t&&(t={});var i=d.createElement(e);return Object.getOwnPropertyNames(n).forEach(function(e){var t=n[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(f.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+t+"."),i.setAttribute(e,t)):"textContent"===e?T(i,t):i[e]=t}),Object.getOwnPropertyNames(t).forEach(function(e){i.setAttribute(e,t[e])}),r&&V(i,r),i}function T(e,t){return"undefined"==typeof e.textContent?e.innerText=t:e.textContent=t,e}function k(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function C(e,t){return n(t),e.classList?e.classList.contains(t):function(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}(t).test(e.className)}function E(e,t){return e.classList?e.classList.add(t):C(e,t)||(e.className=(e.className+" "+t).trim()),e}function w(e,t){return e.classList?e.classList.remove(t):(n(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e}function S(e,t,n){var r=C(e,t);if("function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=!