"object"==typeof navigator&&function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Plyr",t):(e=e||self).Plyr=t()}(this,function(){"use strict";!function(){if("undefined"!=typeof window)try{var e=new window.CustomEvent("test",{cancelable:!0});if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default")}catch(e){var t=function(e,t){var n,i;return(t=t||{}).bubbles=!!t.bubbles,t.cancelable=!!t.cancelable,(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i=n.preventDefault,n.preventDefault=function(){i.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},n};t.prototype=window.Event.prototype,window.CustomEvent=t}}();var e="object"==typeof window&&window&&window.Math==Math?window:"object"==typeof self&&self&&self.Math==Math?self:Function("return this")(),t={}.hasOwnProperty,n=function(e,n){return t.call(e,n)},i=function(e){try{return!!e()}catch(e){return!0}},r=!i(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),a={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,s={f:o&&!a.call({1:2},1)?function(e){var t=o(this,e);return!!t&&t.enumerable}:a},l=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},c={}.toString,u=function(e){return c.call(e).slice(8,-1)},h="".split,f=i(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==u(e)?h.call(e,""):Object(e)}:Object,d=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},p=function(e){return f(d(e))},m=function(e){return"object"==typeof e?null!==e:"function"==typeof e},g=function(e,t){if(!m(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!m(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!m(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!m(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")},v=e.document,y=m(v)&&m(v.createElement),b=function(e){return y?v.createElement(e):{}},w=!r&&!i(function(){return 7!=Object.defineProperty(b("div"),"a",{get:function(){return 7}}).a}),k=Object.getOwnPropertyDescriptor,T={f:r?k:function(e,t){if(e=p(e),t=g(t,!0),w)try{return k(e,t)}catch(e){}if(n(e,t))return l(!s.f.call(e,t),e[t])}},S=function(e){if(!m(e))throw TypeError(String(e)+" is not an object");return e},E=Object.defineProperty,A={f:r?E:function(e,t,n){if(S(e),t=g(t,!0),S(n),w)try{return E(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},x=r?function(e,t,n){return A.f(e,t,l(1,n))}:function(e,t,n){return e[t]=n,e},P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function C(e,t){return e(t={exports:{}},t.exports),t.exports}var L,I,M,N=function(t,n){try{x(e,t,n)}catch(i){e[t]=n}return n},j=C(function(t){var n=e["__core-js_shared__"]||N("__core-js_shared__",{});(t.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.0.1",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),O=j("native-function-to-string",Function.toString),_=e.WeakMap,R="function"==typeof _&&/native code/.test(O.call(_)),U=0,F=Math.random(),q=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++U+F).toString(36))},D=j("keys"),B=function(e){return D[e]||(D[e]=q(e))},H={},V=e.WeakMap;if(R){var z=new V,W=z.get,K=z.has,Y=z.set;L=function(e,t){return Y.call(z,e,t),t},I=function(e){return W.call(z,e)||{}},M=function(e){return K.call(z,e)}}else{var $=B("state");H[$]=!0,L=function(e,t){return x(e,$,t),t},I=function(e){return n(e,$)?e[$]:{}},M=function(e){return n(e,$)}}var G={set:L,get:I,has:M,enforce:function(e){return M(e)?I(e):L(e,{})},getterFor:function(e){return function(t){var n;if(!m(t)||(n=I(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Q=C(function(t){var i=G.get,r=G.enforce,a=String(O).split("toString");j("inspectSource",function(e){return O.call(e)}),(t.exports=function(t,i,o,s){var l=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,u=!!s&&!!s.noTargetGet;"function"==typeof o&&("string"!=typeof i||n(o,"name")||x(o,"name",i),r(o).source=a.join("string"==typeof i?i:"")),t!==e?(l?!u&&t[i]&&(c=!0):delete t[i],c?t[i]=o:x(t,i,o)):c?t[i]=o:N(i,o)})(Function.prototype,"toString",function(){return"function"==typeof this&&i(this).source||O.call(this)})}),X=Math.ceil,J=Math.floor,Z=function(e){return isNaN(e=+e)?0:(e>0?J:X)(e)},ee=Math.min,te=function(e){return e>0?ee(Z(e),9007199254740991):0},ne=Math.max,ie=Math.min,re=function(e,t){var n=Z(e);return n<0?ne(n+t,0):ie(n,t)},ae=function(e){return function(t,n,i){var r,a=p(t),o=te(a.length),s=re(i,o);if(e&&n!=n){for(;o>s;)if((r=a[s++])!=r)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},oe=ae(!1),se=function(e,t){var i,r=p(e),a=0,o=[];for(i in r)!n(H,i)&&n(r,i)&&o.push(i);for(;t.length>a;)n(r,i=t[a++])&&(~oe(o,i)||o.push(i));return o},le=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ce=le.concat("length","prototype"),ue={f:Object.getOwnPropertyNames||function(e){return se(e,ce)}},he={f:Object.getOwnPropertySymbols},fe=e.Reflect,de=fe&&fe.ownKeys||function(e){var t=ue.f(S(e)),n=he.f;return n?t.concat(n(e)):t},pe=function(e,t){for(var i=de(t),r=A.f,a=T.f,o=0;oa;)A.f(e,n=i[a++],t[n]);return e},Fe=e.document,qe=Fe&&Fe.documentElement,De=B("IE_PROTO"),Be=function(){},He=function(){var e,t=b("iframe"),n=le.length;for(t.style.display="none",qe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("