mediacms/static/lib/video-js/8.18.1/video.min.js

2 lines
650 KiB
JavaScript
Raw Normal View History

2024-10-10 18:16:34 +02:00
/*! For license information please see video.min.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).videojs=t()}(this,(function(){var e="8.18.1";let t={},i=function(e,i){return t[e]=t[e]||[],i&&(t[e]=t[e].concat(i)),t[e]};function s(e,s){return!((s=i(e).indexOf(s))<=-1||(t[e]=t[e].slice(),t[e].splice(s,1),0))}let r={prefixed:!0};var n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],a=n[0];let o;for(let e=0;e<n.length;e++)if(n[e][1]in document){o=n[e];break}if(o){for(let e=0;e<o.length;e++)r[a[e]]=o[e];r.prefixed=o[0]!==a[0]}let l=[];function d(e){return g(e)?Object.keys(e):[]}let h=function e(t,i=":",s=""){let r,n="info";function a(...e){r("log",n,e)}var o,d,h;return o=t,h=s,r=(e,t,i)=>{t=d.levels[t];var s,r=new RegExp(`^(${t})$`);let n=o;if("log"!==e&&i.unshift(e.toUpperCase()+":"),h&&(n="%c"+o,i.unshift(h)),i.unshift(n+":"),l&&(l.push([].concat(i)),s=l.length-1e3,l.splice(0,0<s?s:0)),window.console){let s=window.console[e];(s=s||"debug"!==e?s:window.console.info||window.console.log)&&t&&r.test(e)&&s[Array.isArray(i)?"apply":"call"](window.console,i)}},(d=a).createLogger=(r,n,a)=>e(t+` ${n=void 0!==n?n:i} `+r,n,void 0!==a?a:s),a.createNewLogger=(t,i,s)=>e(t,i,s),a.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},a.level=e=>{if("string"==typeof e){if(!a.levels.hasOwnProperty(e))throw new Error(`"${e}" in not a valid log level`);n=e}return n},(a.history=()=>l?[].concat(l):[]).filter=e=>(l||[]).filter((t=>new RegExp(`.*${e}.*`).test(t[0]))),a.history.clear=()=>{l&&(l.length=0)},a.history.disable=()=>{null!==l&&(l.length=0,l=null)},a.history.enable=()=>{null===l&&(l=[])},a.error=(...e)=>r("error",n,e),a.warn=(...e)=>r("warn",n,e),a.debug=(...e)=>r("debug",n,e),a}("VIDEOJS"),u=h.createLogger,c=Object.prototype.toString;function p(e,t){d(e).forEach((i=>t(e[i],i)))}function m(e,t,i=0){return d(e).reduce(((i,s)=>t(i,e[s],s)),i)}function g(e){return!!e&&"object"==typeof e}function f(e){return g(e)&&"[object Object]"===c.call(e)&&e.constructor===Object}function y(...e){let t={};return e.forEach((e=>{e&&p(e,((e,i)=>{f(e)?(f(t[i])||(t[i]={}),t[i]=y(t[i],e)):t[i]=e}))})),t}function _(e={}){var t,i,s=[];for(t in e)e.hasOwnProperty(t)&&(i=e[t],s.push(i));return s}function v(e,t,i,s=!0){let r=i=>Object.defineProperty(e,t,{value:i,enumerable:!0,writable:!0});var n={configurable:!0,enumerable:!0,get(){var e=i();return r(e),e}};return s&&(n.set=r),Object.defineProperty(e,t,n)}let b,T=Object.freeze({__proto__:null,each:p,reduce:m,isObject:g,isPlain:f,merge:y,values:_,defineLazyProperty:v}),S=!1,w=null,E=!1,C=!1,k=!1,I=!1,x=!1,A=null,D=null;var P=Boolean(window.cast&&window.cast.framework&&window.cast.framework.CastReceiverContext);let L=null,O=!1,R=!1,N=!1,M=!1,U=!1,B=!1,F=!1,q=Boolean(G()&&("ontouchstart"in window||window.navigator.maxTouchPoints||window.DocumentTouch&&window.document instanceof window.DocumentTouch));var j,H=window.navigator&&window.navigator.userAgentData;if(H&&H.platform&&H.brands&&(E="Android"===H.platform,k=Boolean(H.brands.find((e=>"Microsoft Edge"===e.brand))),I=Boolean(H.brands.find((e=>"Chromium"===e.brand))),x=!k&&I,A=D=(H.brands.find((e=>"Chromium"===e.brand))||{}).version||null,R="Windows"===H.platform),!I){let e=window.navigator&&window.navigator.userAgent||"";S=/iPod/i.test(e),w=(H=e.match(/OS (\d+)_/i))&&H[1]?H[1]:null,E=/Android/i.test(e),b=(H=e.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i))?($t=H[1]&&parseFloat(H[1]),j=H[2]&&parseFloat(H[2]),$t&&j?parseFloat(H[1]+"."+H[2]):$t||null):null,C=/Firefox/i.test(e),k=/Edg/i.test(e),I=/Chrome/i.test(e)||/CriOS/i.test(e),x=!k&&I,A=D=(j=e.match(/(Chrome|CriOS)\/(\d+)/))&&j[2]?parseFloat(j[2]):null,L=function(){var t=/MSIE\s(\d+)\.\d/.exe