!function(e,t){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=t(require("global/window"),require("global/document")):"function"==typeofdefine&&define.amd?define(["global/window","global/document"],t):(e=e||self).videojs=t(e.window,e.document)}(this,(function(e,t){functionn(e,t){Ke(e).forEach((function(n){returnt(e[n],n)}))}functioni(e){for(vart=arguments.length,i=newArray(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];returnObject.assign?Object.assign.apply(Object,[e].concat(i)):(i.forEach((function(t){t&&n(t,(function(t,n){e[n]=t}))})),e)}functionr(e){return!!e&&"object"==typeofe}functiona(e){returnr(e)&&"[object Object]"===Xe.call(e)&&e.constructor===Object}functiono(t,n){if(!t||!n)return"";if("function"==typeofe.getComputedStyle){vari=e.getComputedStyle(t);returni?i.getPropertyValue(n)||i[n]:""}return""}functions(e){return"string"==typeofe&&/\S/.test(e)}functionu(e){if(/\s/.test(e))thrownewError("class has illegal whitespace characters")}functionl(){returnt===e.document}functionc(e){returnr(e)&&1===e.nodeType}functiond(){try{returne.parent!==e.self}catch(e){return!0}}functionf(e){returnfunction(n,i){if(!s(n))returnt[e](null);s(i)&&(i=t.querySelector(i));varr=c(i)?i:t;returnr[e]&&r[e](n)}}functionh(e,n,i,r){void0===e&&(e="div"),void0===n&&(n={}),void0===i&&(i={});vara=t.createElement(e);returnObject.getOwnPropertyNames(n).forEach((function(e){vart=n[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(We.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+"."),a.setAttribute(e,t)):"textContent"===e?p(a,t):a[e]=t})),Object.getOwnPropertyNames(i).forEach((function(e){a.setAttribute(e,i[e])})),r&&P(a,r),a}functionp(e,t){returnvoid0===e.textContent?e.innerText=t:e.textContent=t,e}functionm(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}functionv(e,t){returnu(t),e.classList?e.classList.contains(t):function(e){returnnewRegExp("(^|\\s)"+e+"($|\\s)")}(t).test(e.className)}functiong(e,t){returne?(e.classList?e.classList.add(t):v(e,t)||(e.className=(e.className+" "+t).trim()),e):e}functiony(e,t){returne?(e.classList?e.classList.remove(t):(u(t),e.className=e.className.split(/\s+/).filter((function(e){returne!==t})).join(" ")),e):e}function_(e,t,n){vari=v(e,t);return"function"==typeofn&&(n=n(e,t)),"boolean"!=typeofn&&(n=!i),n===i||(n?g(e,t):y(e,t)),e}functionb(e,t){Object.getOwnPropertyNames(t).forEach((function(n){vari=t[n];null==i||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)}))}functionT(e){vart={};if(e&&e.attributes&&e.attributes.length>0)for(varn=e.attributes,i=n.length-1;i>=0;i--){varr=n[i].name,a=n[i].value;"boolean"!=typeofe[r]&&-1===",autoplay,stretch,fluent,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+r+",")||(a=null!==a),t[r]=a}returnt}functionS(e,t){returne.getAttribute(t)}functionw(e,t,n){e.setAttribute(t,n)}functionk(e,t){e.removeAttribute(t)}functionE(){t.body.focus(),t.onselectstart=function(){return!1}}functionA(){t.onselectstart=function(){return!0}}functionC(e){if(e&&e.getBoundingClientRect&&e.parentNode){vart=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(e){void0!==t[e]&&(n[e]=t[e])})),n.height||(n.height=parseFloat(o(e,"height"))),n.width||(n.width=parseFloat(o(e,"width"))),n}}functionO(n){vari;if(n.getBoundingClientRect&&n.parentNode&&(i=n.getBoundingClientRect()),!i)return{left:0,top:0};varr=t.documentElement,a=t.body,o=r.clientLeft||a.clientLeft||0,s=e.pageXOffset||a.scrollLeft,u=i.left+s-o,l=r.clientTop||a.clientTop||0,c=e.pageYOffset||a.scrollTop,d=i.top+c-l;return{left:Math.round(u),top:Math.round(d)}}functionj(e,t){varn={},i=O(e),r=e.offsetWidth,a=e.offsetHeight,o=i.top,s=i.left,u=t.pageY,l=t.pageX;returnt.changedTouches&&(l=t.changedTouches[0].pageX,u=t.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(o-u+a)/a)),n.x=Math.max(0,Math.min(1,(l-s)/r)),n}functionL(e)