UNPKG

@do4mother/vue-plyr

Version:

A vue component for the plyr video & audio player.

3 lines 193 kB
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t,n){return n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},e(n,n.exports),n.exports}var n,i,r=function(e){return e&&e.Math==Math&&e},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")(),a=function(e){try{return!!e()}catch(e){return!0}},s=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!a((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),c=Function.prototype.call,u=l?c.bind(c):function(){return c.apply(c,arguments)},f={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,h=d&&!f.call({1:2},1)?function(e){var t=d(this,e);return!!t&&t.enumerable}:f,p={f:h},m=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},g=Function.prototype,v=g.bind,y=g.call,b=l&&v.bind(y,y),w=l?function(e){return e&&b(e)}:function(e){return e&&function(){return y.apply(e,arguments)}},k=w({}.toString),T=w("".slice),S=function(e){return T(k(e),8,-1)},E=o.Object,A=w("".split),P=a((function(){return!E("z").propertyIsEnumerable(0)}))?function(e){return"String"==S(e)?A(e,""):E(e)}:E,x=o.TypeError,C=function(e){if(null==e)throw x("Can't call method on "+e);return e},O=function(e){return P(C(e))},I=function(e){return"function"==typeof e},M=function(e){return"object"==typeof e?null!==e:I(e)},L=function(e){return I(e)?e:void 0},N=function(e,t){return arguments.length<2?L(o[e]):o[e]&&o[e][t]},j=w({}.isPrototypeOf),R=N("navigator","userAgent")||"",_=o.process,F=o.Deno,D=_&&_.versions||F&&F.version,q=D&&D.v8;q&&(i=(n=q.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&R&&(!(n=R.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=R.match(/Chrome\/(\d+)/))&&(i=+n[1]);var U=i,H=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&U&&U<41})),B=H&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,V=o.Object,z=B?function(e){return"symbol"==typeof e}:function(e){var t=N("Symbol");return I(t)&&j(t.prototype,V(e))},W=o.String,$=function(e){try{return W(e)}catch(e){return"Object"}},K=o.TypeError,Y=function(e){if(I(e))return e;throw K($(e)+" is not a function")},G=function(e,t){var n=e[t];return null==n?void 0:Y(n)},X=o.TypeError,Q=Object.defineProperty,J=function(e,t){try{Q(o,e,{value:t,configurable:!0,writable:!0})}catch(n){o[e]=t}return t},Z=o["__core-js_shared__"]||J("__core-js_shared__",{}),ee=t((function(e){(e.exports=function(e,t){return Z[e]||(Z[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.2",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE",source:"https://github.com/zloirock/core-js"})})),te=o.Object,ne=function(e){return te(C(e))},ie=w({}.hasOwnProperty),re=Object.hasOwn||function(e,t){return ie(ne(e),t)},oe=0,ae=Math.random(),se=w(1..toString),le=function(e){return"Symbol("+(void 0===e?"":e)+")_"+se(++oe+ae,36)},ce=ee("wks"),ue=o.Symbol,fe=ue&&ue.for,de=B?ue:ue&&ue.withoutSetter||le,he=function(e){if(!re(ce,e)||!H&&"string"!=typeof ce[e]){var t="Symbol."+e;H&&re(ue,e)?ce[e]=ue[e]:ce[e]=B&&fe?fe(t):de(t)}return ce[e]},pe=o.TypeError,me=he("toPrimitive"),ge=function(e,t){if(!M(e)||z(e))return e;var n,i=G(e,me);if(i){if(void 0===t&&(t="default"),n=u(i,e,t),!M(n)||z(n))return n;throw pe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,i;if("string"===t&&I(n=e.toString)&&!M(i=u(n,e)))return i;if(I(n=e.valueOf)&&!M(i=u(n,e)))return i;if("string"!==t&&I(n=e.toString)&&!M(i=u(n,e)))return i;throw X("Can't convert object to primitive value")}(e,t)},ve=function(e){var t=ge(e,"string");return z(t)?t:t+""},ye=o.document,be=M(ye)&&M(ye.createElement),we=function(e){return be?ye.createElement(e):{}},ke=!s&&!a((function(){return 7!=Object.defineProperty(we("div"),"a",{get:function(){return 7}}).a})),Te=Object.getOwnPropertyDescriptor,Se={f:s?Te:function(e,t){if(e=O(e),t=ve(t),ke)try{return Te(e,t)}catch(e){}if(re(e,t))return m(!u(p.f,e,t),e[t])}},Ee=s&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ae=o.String,Pe=o.TypeError,xe=function(e){if(M(e))return e;throw Pe(Ae(e)+" is not an object")},Ce=o.TypeError,Oe=Object.defineProperty,Ie=Object.getOwnPropertyDescriptor,Me={f:s?Ee?function(e,t,n){if(xe(e),t=ve(t),xe(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var i=Ie(e,t);i&&i.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:i.configurable,enumerable:"enumerable"in n?n.enumerable:i.enumerable,writable:!1})}return Oe(e,t,n)}:Oe:function(e,t,n){if(xe(e),t=ve(t),xe(n),ke)try{return Oe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ce("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Le=s?function(e,t,n){return Me.f(e,t,m(1,n))}:function(e,t,n){return e[t]=n,e},Ne=w(Function.toString);I(Z.inspectSource)||(Z.inspectSource=function(e){return Ne(e)});var je,Re,_e,Fe=Z.inspectSource,De=o.WeakMap,qe=I(De)&&/native code/.test(Fe(De)),Ue=ee("keys"),He=function(e){return Ue[e]||(Ue[e]=le(e))},Be={},Ve=o.TypeError,ze=o.WeakMap;if(qe||Z.state){var We=Z.state||(Z.state=new ze),$e=w(We.get),Ke=w(We.has),Ye=w(We.set);je=function(e,t){if(Ke(We,e))throw new Ve("Object already initialized");return t.facade=e,Ye(We,e,t),t},Re=function(e){return $e(We,e)||{}},_e=function(e){return Ke(We,e)}}else{var Ge=He("state");Be[Ge]=!0,je=function(e,t){if(re(e,Ge))throw new Ve("Object already initialized");return t.facade=e,Le(e,Ge,t),t},Re=function(e){return re(e,Ge)?e[Ge]:{}},_e=function(e){return re(e,Ge)}}var Xe={set:je,get:Re,has:_e,enforce:function(e){return _e(e)?Re(e):je(e,{})},getterFor:function(e){return function(t){var n;if(!M(t)||(n=Re(t)).type!==e)throw Ve("Incompatible receiver, "+e+" required");return n}}},Qe=Function.prototype,Je=s&&Object.getOwnPropertyDescriptor,Ze=re(Qe,"name"),et={EXISTS:Ze,PROPER:Ze&&"something"===function(){}.name,CONFIGURABLE:Ze&&(!s||s&&Je(Qe,"name").configurable)},tt=t((function(e){var t=et.CONFIGURABLE,n=Xe.get,i=Xe.enforce,r=String(String).split("String");(e.exports=function(e,n,a,s){var l,c=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet,d=s&&void 0!==s.name?s.name:n;I(a)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!re(a,"name")||t&&a.name!==d)&&Le(a,"name",d),(l=i(a)).source||(l.source=r.join("string"==typeof d?d:""))),e!==o?(c?!f&&e[n]&&(u=!0):delete e[n],u?e[n]=a:Le(e,n,a)):u?e[n]=a:J(n,a)})(Function.prototype,"toString",(function(){return I(this)&&n(this).source||Fe(this)}))})),nt=Math.ceil,it=Math.floor,rt=function(e){var t=+e;return t!=t||0===t?0:(t>0?it:nt)(t)},ot=Math.max,at=Math.min,st=function(e,t){var n=rt(e);return n<0?ot(n+t,0):at(n,t)},lt=Math.min,ct=function(e){return e>0?lt(rt(e),9007199254740991):0},ut=function(e){return ct(e.length)},ft=function(e){return function(t,n,i){var r,o=O(t),a=ut(o),s=st(i,a);if(e&&n!=n){for(;a>s;)if((r=o[s++])!=r)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},dt={includes:ft(!0),indexOf:ft(!1)},ht=dt.indexOf,pt=w([].push),mt=function(e,t){var n,i=O(e),r=0,o=[];for(n in i)!re(Be,n)&&re(i,n)&&pt(o,n);for(;t.length>r;)re(i,n=t[r++])&&(~ht(o,n)||pt(o,n));return o},gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vt=gt.concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(e){return mt(e,vt)}},bt={f:Object.getOwnPropertySymbols},wt=w([].concat),kt=N("Reflect","ownKeys")||function(e){var t=yt.f(xe(e)),n=bt.f;return n?wt(t,n(e)):t},Tt=function(e,t,n){for(var i=kt(t),r=Me.f,o=Se.f,a=0;a<i.length;a++){var s=i[a];re(e,s)||n&&re(n,s)||r(e,s,o(t,s))}},St=/#|\.prototype\./,Et=function(e,t){var n=Pt[At(e)];return n==Ct||n!=xt&&(I(t)?a(t):!!t)},At=Et.normalize=function(e){return String(e).replace(St,".").toLowerCase()},Pt=Et.data={},xt=Et.NATIVE="N",Ct=Et.POLYFILL="P",Ot=Et,It=Se.f,Mt=function(e,t){var n,i,r,a,s,l=e.target,c=e.global,u=e.stat;if(n=c?o:u?o[l]||J(l,{}):(o[l]||{}).prototype)for(i in t){if(a=t[i],r=e.noTargetGet?(s=It(n,i))&&s.value:n[i],!Ot(c?i:l+(u?".":"#")+i,e.forced)&&void 0!==r){if(typeof a==typeof r)continue;Tt(a,r)}(e.sham||r&&r.sham)&&Le(a,"sham",!0),tt(n,i,a,e)}},Lt=Object.keys||function(e){return mt(e,gt)},Nt=a((function(){Lt(1)}));Mt({target:"Object",stat:!0,forced:Nt},{keys:function(e){return Lt(ne(e))}});var jt={};jt[he("toStringTag")]="z";var Rt,_t="[object z]"===String(jt),Ft=he("toStringTag"),Dt=o.Object,qt="Arguments"==S(function(){return arguments}()),Ut=_t?S:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Dt(e),Ft))?n:qt?S(t):"Object"==(i=S(t))&&I(t.callee)?"Arguments":i},Ht=o.String,Bt=function(e){if("Symbol"===Ut(e))throw TypeError("Cannot convert a Symbol value to a string");return Ht(e)},Vt=s&&!Ee?Object.defineProperties:function(e,t){xe(e);for(var n,i=O(t),r=Lt(t),o=r.length,a=0;o>a;)Me.f(e,n=r[a++],i[n]);return e},zt={f:Vt},Wt=N("document","documentElement"),$t=He("IE_PROTO"),Kt=function(){},Yt=function(e){return"<script>"+e+"<\/script>"},Gt=function(e){e.write(Yt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Xt=function(){try{Rt=new ActiveXObject("htmlfile")}catch(e){}var e,t;Xt="undefined"!=typeof document?document.domain&&Rt?Gt(Rt):((t=we("iframe")).style.display="none",Wt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Yt("document.F=Object")),e.close(),e.F):Gt(Rt);for(var n=gt.length;n--;)delete Xt.prototype[gt[n]];return Xt()};Be[$t]=!0;var Qt=Object.create||function(e,t){var n;return null!==e?(Kt.prototype=xe(e),n=new Kt,Kt.prototype=null,n[$t]=e):n=Xt(),void 0===t?n:zt.f(n,t)},Jt=function(e,t,n){var i=ve(t);i in e?Me.f(e,i,m(0,n)):e[i]=n},Zt=o.Array,en=Math.max,tn=function(e,t,n){for(var i=ut(e),r=st(t,i),o=st(void 0===n?i:n,i),a=Zt(en(o-r,0)),s=0;r<o;r++,s++)Jt(a,s,e[r]);return a.length=s,a},nn=yt.f,rn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],on={f:function(e){return rn&&"Window"==S(e)?function(e){try{return nn(e)}catch(e){return tn(rn)}}(e):nn(O(e))}},an={f:he},sn=o,ln=Me.f,cn=function(e){var t=sn.Symbol||(sn.Symbol={});re(t,e)||ln(t,e,{value:an.f(e)})},un=Me.f,fn=he("toStringTag"),dn=function(e,t,n){e&&!n&&(e=e.prototype),e&&!re(e,fn)&&un(e,fn,{configurable:!0,value:t})},hn=w(w.bind),pn=function(e,t){return Y(e),void 0===t?e:l?hn(e,t):function(){return e.apply(t,arguments)}},mn=Array.isArray||function(e){return"Array"==S(e)},gn=function(){},vn=[],yn=N("Reflect","construct"),bn=/^\s*(?:class|function)\b/,wn=w(bn.exec),kn=!bn.exec(gn),Tn=function(e){if(!I(e))return!1;try{return yn(gn,vn,e),!0}catch(e){return!1}},Sn=function(e){if(!I(e))return!1;switch(Ut(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return kn||!!wn(bn,Fe(e))}catch(e){return!0}};Sn.sham=!0;var En=!yn||a((function(){var e;return Tn(Tn.call)||!Tn(Object)||!Tn((function(){e=!0}))||e}))?Sn:Tn,An=he("species"),Pn=o.Array,xn=function(e,t){return new(function(e){var t;return mn(e)&&(t=e.constructor,(En(t)&&(t===Pn||mn(t.prototype))||M(t)&&null===(t=t[An]))&&(t=void 0)),void 0===t?Pn:t}(e))(0===t?0:t)},Cn=w([].push),On=function(e){var t=1==e,n=2==e,i=3==e,r=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,c,u,f){for(var d,h,p=ne(l),m=P(p),g=pn(c,u),v=ut(m),y=0,b=f||xn,w=t?b(l,v):n||a?b(l,0):void 0;v>y;y++)if((s||y in m)&&(h=g(d=m[y],y,p),e))if(t)w[y]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:Cn(w,d)}else switch(e){case 4:return!1;case 7:Cn(w,d)}return o?-1:i||r?r:w}},In={forEach:On(0),map:On(1),filter:On(2),some:On(3),every:On(4),find:On(5),findIndex:On(6),filterReject:On(7)},Mn=In.forEach,Ln=He("hidden"),Nn=Xe.set,jn=Xe.getterFor("Symbol"),Rn=Object.prototype,_n=o.Symbol,Fn=_n&&_n.prototype,Dn=o.TypeError,qn=o.QObject,Un=Se.f,Hn=Me.f,Bn=on.f,Vn=p.f,zn=w([].push),Wn=ee("symbols"),$n=ee("op-symbols"),Kn=ee("wks"),Yn=!qn||!qn.prototype||!qn.prototype.findChild,Gn=s&&a((function(){return 7!=Qt(Hn({},"a",{get:function(){return Hn(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=Un(Rn,t);i&&delete Rn[t],Hn(e,t,n),i&&e!==Rn&&Hn(Rn,t,i)}:Hn,Xn=function(e,t){var n=Wn[e]=Qt(Fn);return Nn(n,{type:"Symbol",tag:e,description:t}),s||(n.description=t),n},Qn=function(e,t,n){e===Rn&&Qn($n,t,n),xe(e);var i=ve(t);return xe(n),re(Wn,i)?(n.enumerable?(re(e,Ln)&&e[Ln][i]&&(e[Ln][i]=!1),n=Qt(n,{enumerable:m(0,!1)})):(re(e,Ln)||Hn(e,Ln,m(1,{})),e[Ln][i]=!0),Gn(e,i,n)):Hn(e,i,n)},Jn=function(e,t){xe(e);var n=O(t),i=Lt(n).concat(ni(n));return Mn(i,(function(t){s&&!u(Zn,n,t)||Qn(e,t,n[t])})),e},Zn=function(e){var t=ve(e),n=u(Vn,this,t);return!(this===Rn&&re(Wn,t)&&!re($n,t))&&(!(n||!re(this,t)||!re(Wn,t)||re(this,Ln)&&this[Ln][t])||n)},ei=function(e,t){var n=O(e),i=ve(t);if(n!==Rn||!re(Wn,i)||re($n,i)){var r=Un(n,i);return!r||!re(Wn,i)||re(n,Ln)&&n[Ln][i]||(r.enumerable=!0),r}},ti=function(e){var t=Bn(O(e)),n=[];return Mn(t,(function(e){re(Wn,e)||re(Be,e)||zn(n,e)})),n},ni=function(e){var t=e===Rn,n=Bn(t?$n:O(e)),i=[];return Mn(n,(function(e){!re(Wn,e)||t&&!re(Rn,e)||zn(i,Wn[e])})),i};H||(Fn=(_n=function(){if(j(Fn,this))throw Dn("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Bt(arguments[0]):void 0,t=le(e),n=function(e){this===Rn&&u(n,$n,e),re(this,Ln)&&re(this[Ln],t)&&(this[Ln][t]=!1),Gn(this,t,m(1,e))};return s&&Yn&&Gn(Rn,t,{configurable:!0,set:n}),Xn(t,e)}).prototype,tt(Fn,"toString",(function(){return jn(this).tag})),tt(_n,"withoutSetter",(function(e){return Xn(le(e),e)})),p.f=Zn,Me.f=Qn,zt.f=Jn,Se.f=ei,yt.f=on.f=ti,bt.f=ni,an.f=function(e){return Xn(he(e),e)},s&&(Hn(Fn,"description",{configurable:!0,get:function(){return jn(this).description}}),tt(Rn,"propertyIsEnumerable",Zn,{unsafe:!0}))),Mt({global:!0,wrap:!0,forced:!H,sham:!H},{Symbol:_n}),Mn(Lt(Kn),(function(e){cn(e)})),Mt({target:"Symbol",stat:!0,forced:!H},{useSetter:function(){Yn=!0},useSimple:function(){Yn=!1}}),Mt({target:"Object",stat:!0,forced:!H,sham:!s},{create:function(e,t){return void 0===t?Qt(e):Jn(Qt(e),t)},defineProperty:Qn,defineProperties:Jn,getOwnPropertyDescriptor:ei}),Mt({target:"Object",stat:!0,forced:!H},{getOwnPropertyNames:ti}),function(){var e=N("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,i=he("toPrimitive");t&&!t[i]&&tt(t,i,(function(e){return u(n,this)}))}(),dn(_n,"Symbol"),Be[Ln]=!0;var ii=H&&!!Symbol.for&&!!Symbol.keyFor,ri=ee("string-to-symbol-registry"),oi=ee("symbol-to-string-registry");Mt({target:"Symbol",stat:!0,forced:!ii},{for:function(e){var t=Bt(e);if(re(ri,t))return ri[t];var n=N("Symbol")(t);return ri[t]=n,oi[n]=t,n}});var ai=ee("symbol-to-string-registry");Mt({target:"Symbol",stat:!0,forced:!ii},{keyFor:function(e){if(!z(e))throw TypeError($(e)+" is not a symbol");if(re(ai,e))return ai[e]}});var si=Function.prototype,li=si.apply,ci=si.call,ui="object"==typeof Reflect&&Reflect.apply||(l?ci.bind(li):function(){return ci.apply(li,arguments)}),fi=w([].slice),di=N("JSON","stringify"),hi=w(/./.exec),pi=w("".charAt),mi=w("".charCodeAt),gi=w("".replace),vi=w(1..toString),yi=/[\uD800-\uDFFF]/g,bi=/^[\uD800-\uDBFF]$/,wi=/^[\uDC00-\uDFFF]$/,ki=!H||a((function(){var e=N("Symbol")();return"[null]"!=di([e])||"{}"!=di({a:e})||"{}"!=di(Object(e))})),Ti=a((function(){return'"\\udf06\\ud834"'!==di("\udf06\ud834")||'"\\udead"'!==di("\udead")})),Si=function(e,t){var n=fi(arguments),i=t;if((M(t)||void 0!==e)&&!z(e))return mn(t)||(t=function(e,t){if(I(i)&&(t=u(i,this,e,t)),!z(t))return t}),n[1]=t,ui(di,null,n)},Ei=function(e,t,n){var i=pi(n,t-1),r=pi(n,t+1);return hi(bi,e)&&!hi(wi,r)||hi(wi,e)&&!hi(bi,i)?"\\u"+vi(mi(e,0),16):e};di&&Mt({target:"JSON",stat:!0,forced:ki||Ti},{stringify:function(e,t,n){var i=fi(arguments),r=ui(ki?Si:di,null,i);return Ti&&"string"==typeof r?gi(r,yi,Ei):r}});var Ai=!H||a((function(){bt.f(1)}));Mt({target:"Object",stat:!0,forced:Ai},{getOwnPropertySymbols:function(e){var t=bt.f;return t?t(ne(e)):[]}});var Pi=he("species"),xi=function(e){return U>=51||!a((function(){var t=[];return(t.constructor={})[Pi]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ci=In.filter,Oi=xi("filter");Mt({target:"Array",proto:!0,forced:!Oi},{filter:function(e){return Ci(this,e,arguments.length>1?arguments[1]:void 0)}});var Ii=_t?{}.toString:function(){return"[object "+Ut(this)+"]"};_t||tt(Object.prototype,"toString",Ii,{unsafe:!0});var Mi=Se.f,Li=a((function(){Mi(1)}));Mt({target:"Object",stat:!0,forced:!s||Li,sham:!s},{getOwnPropertyDescriptor:function(e,t){return Mi(O(e),t)}});var Ni={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ji=we("span").classList,Ri=ji&&ji.constructor&&ji.constructor.prototype,_i=Ri===Object.prototype?void 0:Ri,Fi=function(e,t){var n=[][e];return!!n&&a((function(){n.call(null,t||function(){return 1},1)}))},Di=In.forEach,qi=Fi("forEach")?[].forEach:function(e){return Di(this,e,arguments.length>1?arguments[1]:void 0)},Ui=function(e){if(e&&e.forEach!==qi)try{Le(e,"forEach",qi)}catch(t){e.forEach=qi}};for(var Hi in Ni)Ni[Hi]&&Ui(o[Hi]&&o[Hi].prototype);function Bi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function zi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vi(Object(n),!0).forEach((function(t){Bi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Ui(_i),Mt({target:"Object",stat:!0,sham:!s},{getOwnPropertyDescriptors:function(e){for(var t,n,i=O(e),r=Se.f,o=kt(i),a={},s=0;o.length>s;)void 0!==(n=r(i,t=o[s++]))&&Jt(a,t,n);return a}});var Wi=et.EXISTS,$i=Me.f,Ki=Function.prototype,Yi=w(Ki.toString),Gi=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Xi=w(Gi.exec);function Qi(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ji(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}s&&!Wi&&$i(Ki,"name",{configurable:!0,get:function(){try{return Xi(Gi,Yi(this))[1]}catch(e){return""}}});var Zi=Me.f,er=o.Symbol,tr=er&&er.prototype;if(s&&I(er)&&(!("description"in tr)||void 0!==er().description)){var nr={},ir=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:Bt(arguments[0]),t=j(tr,this)?new er(e):void 0===e?er():er(e);return""===e&&(nr[t]=!0),t};Tt(ir,er),ir.prototype=tr,tr.constructor=ir;var rr="Symbol(test)"==String(er("test")),or=w(tr.toString),ar=w(tr.valueOf),sr=/^Symbol\((.*)\)[^)]+$/,lr=w("".replace),cr=w("".slice);Zi(tr,"description",{configurable:!0,get:function(){var e=ar(this),t=or(e);if(re(nr,e))return"";var n=rr?cr(t,7,-1):lr(t,sr,"$1");return""===n?void 0:n}}),Mt({global:!0,forced:!0},{Symbol:ir})}cn("iterator");var ur,fr,dr,hr=w("".charAt),pr=w("".charCodeAt),mr=w("".slice),gr=function(e){return function(t,n){var i,r,o=Bt(C(t)),a=rt(n),s=o.length;return a<0||a>=s?e?"":void 0:(i=pr(o,a))<55296||i>56319||a+1===s||(r=pr(o,a+1))<56320||r>57343?e?hr(o,a):i:e?mr(o,a,a+2):r-56320+(i-55296<<10)+65536}},vr={codeAt:gr(!1),charAt:gr(!0)},yr=!a((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),br=He("IE_PROTO"),wr=o.Object,kr=wr.prototype,Tr=yr?wr.getPrototypeOf:function(e){var t=ne(e);if(re(t,br))return t[br];var n=t.constructor;return I(n)&&t instanceof n?n.prototype:t instanceof wr?kr:null},Sr=he("iterator"),Er=!1;[].keys&&("next"in(dr=[].keys())?(fr=Tr(Tr(dr)))!==Object.prototype&&(ur=fr):Er=!0);var Ar=null==ur||a((function(){var e={};return ur[Sr].call(e)!==e}));Ar&&(ur={}),I(ur[Sr])||tt(ur,Sr,(function(){return this}));var Pr={IteratorPrototype:ur,BUGGY_SAFARI_ITERATORS:Er},xr={},Cr=Pr.IteratorPrototype,Or=function(){return this},Ir=function(e,t,n,i){var r=t+" Iterator";return e.prototype=Qt(Cr,{next:m(+!i,n)}),dn(e,r,!1),xr[r]=Or,e},Mr=o.String,Lr=o.TypeError,Nr=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=w(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return xe(n),function(e){if("object"==typeof e||I(e))return e;throw Lr("Can't set "+Mr(e)+" as a prototype")}(i),t?e(n,i):n.__proto__=i,n}}():void 0),jr=et.PROPER,Rr=et.CONFIGURABLE,_r=Pr.IteratorPrototype,Fr=Pr.BUGGY_SAFARI_ITERATORS,Dr=he("iterator"),qr=function(){return this},Ur=function(e,t,n,i,r,o,a){Ir(n,t,i);var s,l,c,f=function(e){if(e===r&&g)return g;if(!Fr&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",h=!1,p=e.prototype,m=p[Dr]||p["@@iterator"]||r&&p[r],g=!Fr&&m||f(r),v="Array"==t&&p.entries||m;if(v&&(s=Tr(v.call(new e)))!==Object.prototype&&s.next&&(Tr(s)!==_r&&(Nr?Nr(s,_r):I(s[Dr])||tt(s,Dr,qr)),dn(s,d,!0)),jr&&"values"==r&&m&&"values"!==m.name&&(Rr?Le(p,"name","values"):(h=!0,g=function(){return u(m,this)})),r)if(l={values:f("values"),keys:o?g:f("keys"),entries:f("entries")},a)for(c in l)(Fr||h||!(c in p))&&tt(p,c,l[c]);else Mt({target:t,proto:!0,forced:Fr||h},l);return p[Dr]!==g&&tt(p,Dr,g,{name:r}),xr[t]=g,l},Hr=vr.charAt,Br=Xe.set,Vr=Xe.getterFor("String Iterator");Ur(String,"String",(function(e){Br(this,{type:"String Iterator",string:Bt(e),index:0})}),(function(){var e,t=Vr(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=Hr(n,i),t.index+=e.length,{value:e,done:!1})}));var zr=he("unscopables"),Wr=Array.prototype;null==Wr[zr]&&Me.f(Wr,zr,{configurable:!0,value:Qt(null)});var $r=function(e){Wr[zr][e]=!0},Kr=Me.f,Yr=Xe.set,Gr=Xe.getterFor("Array Iterator"),Xr=Ur(Array,"Array",(function(e,t){Yr(this,{type:"Array Iterator",target:O(e),index:0,kind:t})}),(function(){var e=Gr(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values"),Qr=xr.Arguments=xr.Array;if($r("keys"),$r("values"),$r("entries"),s&&"values"!==Qr.name)try{Kr(Qr,"name",{value:"values"})}catch(e){}var Jr=he("iterator"),Zr=he("toStringTag"),eo=Xr.values,to=function(e,t){if(e){if(e[Jr]!==eo)try{Le(e,Jr,eo)}catch(t){e[Jr]=eo}if(e[Zr]||Le(e,Zr,t),Ni[t])for(var n in Xr)if(e[n]!==Xr[n])try{Le(e,n,Xr[n])}catch(t){e[n]=Xr[n]}}};for(var no in Ni)to(o[no]&&o[no].prototype,no);to(_i,"DOMTokenList");var io=function(e,t,n){var i,r;xe(e);try{if(!(i=G(e,"return"))){if("throw"===t)throw n;return n}i=u(i,e)}catch(e){r=!0,i=e}if("throw"===t)throw n;if(r)throw i;return xe(i),n},ro=function(e,t,n,i){try{return i?t(xe(n)[0],n[1]):t(n)}catch(t){io(e,"throw",t)}},oo=he("iterator"),ao=Array.prototype,so=function(e){return void 0!==e&&(xr.Array===e||ao[oo]===e)},lo=he("iterator"),co=function(e){if(null!=e)return G(e,lo)||G(e,"@@iterator")||xr[Ut(e)]},uo=o.TypeError,fo=function(e,t){var n=arguments.length<2?co(e):t;if(Y(n))return xe(u(n,e));throw uo($(e)+" is not iterable")},ho=o.Array,po=function(e){var t=ne(e),n=En(this),i=arguments.length,r=i>1?arguments[1]:void 0,o=void 0!==r;o&&(r=pn(r,i>2?arguments[2]:void 0));var a,s,l,c,f,d,h=co(t),p=0;if(!h||this==ho&&so(h))for(a=ut(t),s=n?new this(a):ho(a);a>p;p++)d=o?r(t[p],p):t[p],Jt(s,p,d);else for(f=(c=fo(t,h)).next,s=n?new this:[];!(l=u(f,c)).done;p++)d=o?ro(c,r,[l.value,p],!0):l.value,Jt(s,p,d);return s.length=p,s},mo=he("iterator"),go=!1;try{var vo=0,yo={next:function(){return{done:!!vo++}},return:function(){go=!0}};yo[mo]=function(){return this},Array.from(yo,(function(){throw 2}))}catch(e){}var bo=function(e,t){if(!t&&!go)return!1;var n=!1;try{var i={};i[mo]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n},wo=!bo((function(e){Array.from(e)}));Mt({target:"Array",stat:!0,forced:wo},{from:po});var ko=xi("slice"),To=he("species"),So=o.Array,Eo=Math.max;Mt({target:"Array",proto:!0,forced:!ko},{slice:function(e,t){var n,i,r,o=O(this),a=ut(o),s=st(e,a),l=st(void 0===t?a:t,a);if(mn(o)&&(n=o.constructor,(En(n)&&(n===So||mn(n.prototype))||M(n)&&null===(n=n[To]))&&(n=void 0),n===So||void 0===n))return fi(o,s,l);for(i=new(void 0===n?So:n)(Eo(l-s,0)),r=0;s<l;s++,r++)s in o&&Jt(i,r,o[s]);return i.length=r,i}});var Ao=function(){var e=xe(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Po=o.RegExp,xo=a((function(){var e=Po("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Co=xo||a((function(){return!Po("a","y").sticky})),Oo=xo||a((function(){var e=Po("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),Io={BROKEN_CARET:Oo,MISSED_STICKY:Co,UNSUPPORTED_Y:xo},Mo=o.RegExp,Lo=a((function(){var e=Mo(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),No=o.RegExp,jo=a((function(){var e=No("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ro=Xe.get,_o=ee("native-string-replace",String.prototype.replace),Fo=RegExp.prototype.exec,Do=Fo,qo=w("".charAt),Uo=w("".indexOf),Ho=w("".replace),Bo=w("".slice),Vo=function(){var e=/a/,t=/b*/g;return u(Fo,e,"a"),u(Fo,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),zo=Io.BROKEN_CARET,Wo=void 0!==/()??/.exec("")[1];(Vo||Wo||zo||Lo||jo)&&(Do=function(e){var t,n,i,r,o,a,s,l=this,c=Ro(l),f=Bt(e),d=c.raw;if(d)return d.lastIndex=l.lastIndex,t=u(Do,d,f),l.lastIndex=d.lastIndex,t;var h=c.groups,p=zo&&l.sticky,m=u(Ao,l),g=l.source,v=0,y=f;if(p&&(m=Ho(m,"y",""),-1===Uo(m,"g")&&(m+="g"),y=Bo(f,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==qo(f,l.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),Wo&&(n=new RegExp("^"+g+"$(?!\\s)",m)),Vo&&(i=l.lastIndex),r=u(Fo,p?n:l,y),p?r?(r.input=Bo(r.input,v),r[0]=Bo(r[0],v),r.index=l.lastIndex,l.lastIndex+=r[0].length):l.lastIndex=0:Vo&&r&&(l.lastIndex=l.global?r.index+r[0].length:i),Wo&&r&&r.length>1&&u(_o,r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r&&h)for(r.groups=a=Qt(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=r[s[1]];return r});var $o=Do;Mt({target:"RegExp",proto:!0,forced:/./.exec!==$o},{exec:$o});var Ko,Yo,Go=(Ko=!1,(Yo=/[ac]/).exec=function(){return Ko=!0,/./.exec.apply(this,arguments)},!0===Yo.test("abc")&&Ko),Xo=o.Error,Qo=w(/./.test);function Jo(e,t){if(e){if("string"==typeof e)return Ji(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ji(e,t):void 0}}Mt({target:"RegExp",proto:!0,forced:!Go},{test:function(e){var t=this.exec;if(!I(t))return Qo(this,e);var n=u(t,this,e);if(null!==n&&!M(n))throw new Xo("RegExp exec method returned something other than an Object or null");return!!n}});var Zo=Me.f,ea=function(e,t,n){n in e||Zo(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})},ta=function(e,t,n){var i,r;return Nr&&I(i=t.constructor)&&i!==n&&M(r=i.prototype)&&r!==n.prototype&&Nr(e,r),e},na=function(e,t){return void 0===e?arguments.length<2?"":t:Bt(e)},ia=function(e,t){M(t)&&"cause"in t&&Le(e,"cause",t.cause)},ra=Error,oa=w("".replace),aa=String(ra("zxcasd").stack),sa=/\n\s*at [^:]*:[^\n]*/,la=sa.test(aa),ca=function(e,t){if(la&&"string"==typeof e&&!ra.prepareStackTrace)for(;t--;)e=oa(e,sa,"");return e},ua=!a((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",m(1,7)),7!==e.stack)})),fa=function(e,t,n,i){var r="stackTraceLimit",o=i?2:1,a=e.split("."),l=a[a.length-1],c=N.apply(null,a);if(c){var u=c.prototype;if(re(u,"cause")&&delete u.cause,!n)return c;var f=N("Error"),d=t((function(e,t){var n=na(i?t:e,void 0),r=i?new c(e):new c;return void 0!==n&&Le(r,"message",n),ua&&Le(r,"stack",ca(r.stack,2)),this&&j(u,this)&&ta(r,this,d),arguments.length>o&&ia(r,arguments[o]),r}));d.prototype=u,"Error"!==l?Nr?Nr(d,f):Tt(d,f,{name:!0}):s&&r in c&&(ea(d,c,r),ea(d,c,"prepareStackTrace")),Tt(d,c);try{u.name!==l&&Le(u,"name",l),u.constructor=d}catch(e){}return d}},da=o.WebAssembly,ha=7!==Error("e",{cause:7}).cause,pa=function(e,t){var n={};n[e]=fa(e,t,ha),Mt({global:!0,forced:ha},n)},ma=function(e,t){if(da&&da[e]){var n={};n[e]=fa("WebAssembly."+e,t,ha),Mt({target:"WebAssembly",stat:!0,forced:ha},n)}};function ga(e){return function(e){if(Array.isArray(e))return Ji(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Jo(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function va(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ya(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ba(e,t,n){return t&&ya(e.prototype,t),n&&ya(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||Jo(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ka(e){return ka="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ka(e)}pa("Error",(function(e){return function(t){return ui(e,this,arguments)}})),pa("EvalError",(function(e){return function(t){return ui(e,this,arguments)}})),pa("RangeError",(function(e){return function(t){return ui(e,this,arguments)}})),pa("ReferenceError",(function(e){return function(t){return ui(e,this,arguments)}})),pa("SyntaxError",(function(e){return function(t){return ui(e,this,arguments)}})),pa("TypeError",(function(e){return function(t){return ui(e,this,arguments)}})),pa("URIError",(function(e){return function(t){return ui(e,this,arguments)}})),ma("CompileError",(function(e){return function(t){return ui(e,this,arguments)}})),ma("LinkError",(function(e){return function(t){return ui(e,this,arguments)}})),ma("RuntimeError",(function(e){return function(t){return ui(e,this,arguments)}}));var Ta=dt.includes;Mt({target:"Array",proto:!0},{includes:function(e){return Ta(this,e,arguments.length>1?arguments[1]:void 0)}}),$r("includes");var Sa=he("match"),Ea=function(e){var t;return M(e)&&(void 0!==(t=e[Sa])?!!t:"RegExp"==S(e))},Aa=o.TypeError,Pa=function(e){if(Ea(e))throw Aa("The method doesn't accept regular expressions");return e},xa=he("match"),Ca=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[xa]=!1,"/./"[e](t)}catch(e){}}return!1},Oa=w("".indexOf);Mt({target:"String",proto:!0,forced:!Ca("includes")},{includes:function(e){return!!~Oa(Bt(C(this)),Bt(Pa(e)),arguments.length>1?arguments[1]:void 0)}});var Ia=w(1..valueOf),Ma="\t\n\v\f\r                 \u2028\u2029\ufeff",La=w("".replace),Na="["+Ma+"]",ja=RegExp("^"+Na+Na+"*"),Ra=RegExp(Na+Na+"*$"),_a=function(e){return function(t){var n=Bt(C(t));return 1&e&&(n=La(n,ja,"")),2&e&&(n=La(n,Ra,"")),n}},Fa={start:_a(1),end:_a(2),trim:_a(3)},Da=yt.f,qa=Se.f,Ua=Me.f,Ha=Fa.trim,Ba=o.Number,Va=Ba.prototype,za=o.TypeError,Wa=w("".slice),$a=w("".charCodeAt),Ka=function(e){var t=ge(e,"number");return"bigint"==typeof t?t:Ya(t)},Ya=function(e){var t,n,i,r,o,a,s,l,c=ge(e,"number");if(z(c))throw za("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Ha(c),43===(t=$a(c,0))||45===t){if(88===(n=$a(c,2))||120===n)return NaN}else if(48===t){switch($a(c,1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+c}for(a=(o=Wa(c,2)).length,s=0;s<a;s++)if((l=$a(o,s))<48||l>r)return NaN;return parseInt(o,i)}return+c};if(Ot("Number",!Ba(" 0o1")||!Ba("0b1")||Ba("+0x1"))){for(var Ga,Xa=function(e){var t=arguments.length<1?0:Ba(Ka(e)),n=this;return j(Va,n)&&a((function(){Ia(n)}))?ta(Object(t),n,Xa):t},Qa=s?Da(Ba):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Ja=0;Qa.length>Ja;Ja++)re(Ba,Ga=Qa[Ja])&&!re(Xa,Ga)&&Ua(Xa,Ga,qa(Ba,Ga));Xa.prototype=Va,Va.constructor=Xa,tt(o,"Number",Xa)}Mt({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var Za=he("species"),es=RegExp.prototype,ts=function(e,t,n,i){var r=he(e),o=!a((function(){var t={};return t[r]=function(){return 7},7!=""[e](t)})),s=o&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Za]=function(){return n},n.flags="",n[r]=/./[r]),n.exec=function(){return t=!0,null},n[r](""),!t}));if(!o||!s||n){var l=w(/./[r]),c=t(r,""[e],(function(e,t,n,i,r){var a=w(e),s=t.exec;return s===$o||s===es.exec?o&&!r?{done:!0,value:l(t,n,i)}:{done:!0,value:a(n,t,i)}:{done:!1}}));tt(String.prototype,e,c[0]),tt(es,r,c[1])}i&&Le(es[r],"sham",!0)},ns=vr.charAt,is=function(e,t,n){return t+(n?ns(e,t).length:1)},rs=o.TypeError,os=function(e,t){var n=e.exec;if(I(n)){var i=u(n,e,t);return null!==i&&xe(i),i}if("RegExp"===S(e))return u($o,e,t);throw rs("RegExp#exec called on incompatible receiver")};ts("match",(function(e,t,n){return[function(t){var n=C(this),i=null==t?void 0:G(t,e);return i?u(i,t,n):new RegExp(t)[e](Bt(n))},function(e){var i=xe(this),r=Bt(e),o=n(t,i,r);if(o.done)return o.value;if(!i.global)return os(i,r);var a=i.unicode;i.lastIndex=0;for(var s,l=[],c=0;null!==(s=os(i,r));){var u=Bt(s[0]);l[c]=u,""===u&&(i.lastIndex=is(r,ct(i.lastIndex),a)),c++}return 0===c?null:l}]}));var as=o.RangeError,ss=o.RangeError,ls=o.String,cs=Math.floor,us=w((function(e){var t=Bt(C(this)),n="",i=rt(e);if(i<0||i==1/0)throw as("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n})),fs=w("".slice),ds=w(1..toFixed),hs=function(e,t,n){return 0===t?n:t%2==1?hs(e,t-1,n*e):hs(e*e,t/2,n)},ps=function(e,t,n){for(var i=-1,r=n;++i<6;)r+=t*e[i],e[i]=r%1e7,r=cs(r/1e7)},ms=function(e,t){for(var n=6,i=0;--n>=0;)i+=e[n],e[n]=cs(i/t),i=i%t*1e7},gs=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var i=ls(e[t]);n=""===n?i:n+us("0",7-i.length)+i}return n},vs=a((function(){return"0.000"!==ds(8e-5,3)||"1"!==ds(.9,0)||"1.25"!==ds(1.255,2)||"1000000000000000128"!==ds(0xde0b6b3a7640080,0)}))||!a((function(){ds({})}));Mt({target:"Number",proto:!0,forced:vs},{toFixed:function(e){var t,n,i,r,o=Ia(this),a=rt(e),s=[0,0,0,0,0,0],l="",c="0";if(a<0||a>20)throw ss("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return ls(o);if(o<0&&(l="-",o=-o),o>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(o*hs(2,69,1))-69)<0?o*hs(2,-t,1):o/hs(2,t,1),n*=4503599627370496,(t=52-t)>0){for(ps(s,0,n),i=a;i>=7;)ps(s,1e7,0),i-=7;for(ps(s,hs(10,i,1),0),i=t-1;i>=23;)ms(s,1<<23),i-=23;ms(s,1<<i),ps(s,1,1),ms(s,2),c=gs(s)}else ps(s,0,n),ps(s,1<<-t,0),c=gs(s)+us("0",a);return c=a>0?l+((r=c.length)<=a?"0."+us("0",a-r)+c:fs(c,0,r-a)+"."+fs(c,r-a)):l+c}});var ys=In.map,bs=xi("map");Mt({target:"Array",proto:!0,forced:!bs},{map:function(e){return ys(this,e,arguments.length>1?arguments[1]:void 0)}});var ws=function(e,t,n){for(var i in t)tt(e,i,t[i],n);return e},ks=a((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Ts=Object.isExtensible,Ss=a((function(){Ts(1)}))||ks?function(e){return!!M(e)&&((!ks||"ArrayBuffer"!=S(e))&&(!Ts||Ts(e)))}:Ts,Es=!a((function(){return Object.isExtensible(Object.preventExtensions({}))})),As=t((function(e){var t=Me.f,n=!1,i=le("meta"),r=0,o=function(e){t(e,i,{value:{objectID:"O"+r++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=yt.f,t=w([].splice),r={};r[i]=1,e(r).length&&(yt.f=function(n){for(var r=e(n),o=0,a=r.length;o<a;o++)if(r[o]===i){t(r,o,1);break}return r},Mt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:on.f}))},fastKey:function(e,t){if(!M(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!re(e,i)){if(!Ss(e))return"F";if(!t)return"E";o(e)}return e[i].objectID},getWeakData:function(e,t){if(!re(e,i)){if(!Ss(e))return!0;if(!t)return!1;o(e)}return e[i].weakData},onFreeze:function(e){return Es&&n&&Ss(e)&&!re(e,i)&&o(e),e}};Be[i]=!0})),Ps=o.TypeError,xs=function(e,t){this.stopped=e,this.result=t},Cs=xs.prototype,Os=function(e,t,n){var i,r,o,a,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),m=pn(t,f),g=function(e){return i&&io(i,"normal",e),new xs(!0,e)},v=function(e){return d?(xe(e),p?m(e[0],e[1],g):m(e[0],e[1])):p?m(e,g):m(e)};if(h)i=e;else{if(!(r=co(e)))throw Ps($(e)+" is not iterable");if(so(r)){for(o=0,a=ut(e);a>o;o++)if((s=v(e[o]))&&j(Cs,s))return s;return new xs(!1)}i=fo(e,r)}for(l=i.next;!(c=u(l,i)).done;){try{s=v(c.value)}catch(e){io(i,"throw",e)}if("object"==typeof s&&s&&j(Cs,s))return s}return new xs(!1)},Is=o.TypeError,Ms=function(e,t){if(j(t,e))return e;throw Is("Incorrect invocation")},Ls=As.getWeakData,Ns=Xe.set,js=Xe.getterFor,Rs=In.find,_s=In.findIndex,Fs=w([].splice),Ds=0,qs=function(e){return e.frozen||(e.frozen=new Us)},Us=function(){this.entries=[]},Hs=function(e,t){return Rs(e.entries,(function(e){return e[0]===t}))};Us.prototype={get:function(e){var t=Hs(this,e);if(t)return t[1]},has:function(e){return!!Hs(this,e)},set:function(e,t){var n=Hs(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=_s(this.entries,(function(t){return t[0]===e}));return~t&&Fs(this.entries,t,1),!!~t}};var Bs,Vs={getConstructor:function(e,t,n,i){var r=e((function(e,r){Ms(e,o),Ns(e,{type:t,id:Ds++,frozen:void 0}),null!=r&&Os(r,e[i],{that:e,AS_ENTRIES:n})})),o=r.prototype,a=js(t),s=function(e,t,n){var i=a(e),r=Ls(xe(t),!0);return!0===r?qs(i).set(t,n):r[i.id]=n,e};return ws(o,{delete:function(e){var t=a(this);if(!M(e))return!1;var n=Ls(e);return!0===n?qs(t).delete(e):n&&re(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!M(e))return!1;var n=Ls(e);return!0===n?qs(t).has(e):n&&re(n,t.id)}}),ws(o,n?{get:function(e){var t=a(this);if(M(e)){var n=Ls(e);return!0===n?qs(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),r}},zs=Xe.enforce,Ws=!o.ActiveXObject&&"ActiveXObject"in o,$s=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Ks=function(e,t,n){var i=-1!==e.indexOf("Map"),r=-1!==e.indexOf("Weak"),s=i?"set":"add",l=o[e],c=l&&l.prototype,u=l,f={},d=function(e){var t=w(c[e]);tt(c,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(r&&!M(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return r&&!M(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(r&&!M(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Ot(e,!I(l)||!(r||c.forEach&&!a((function(){(new l).entries().next()})))))u=n.getConstructor(t,e,i,s),As.enable();else if(Ot(e,!0)){var h=new u,p=h[s](r?{}:-0,1)!=h,m=a((function(){h.has(1)})),g=bo((function(e){new l(e)})),v=!r&&a((function(){for(var e=new l,t=5;t--;)e[s](t,t);return!e.has(-0)}));g||((u=t((function(e,t){Ms(e,c);var n=ta(new l,e,u);return null!=t&&Os(t,n[s],{that:n,AS_ENTRIES:i}),n}))).prototype=c,c.constructor=u),(m||v)&&(d("delete"),d("has"),i&&d("get")),(v||p)&&d(s),r&&c.clear&&delete c.clear}return f[e]=u,Mt({global:!0,forced:u!=l},f),dn(u,e),r||n.setStrong(u,e,i),u}("WeakMap",$s,Vs);if(qe&&Ws){Bs=Vs.getConstructor($s,"WeakMap",!0),As.enable();var Ys=Ks.prototype,Gs=w(Ys.delete),Xs=w(Ys.has),Qs=w(Ys.get),Js=w(Ys.set);ws(Ys,{delete:function(e){if(M(e)&&!Ss(e)){var t=zs(this);return t.frozen||(t.frozen=new Bs),Gs(this,e)||t.frozen.delete(e)}return Gs(this,e)},has:function(e){if(M(e)&&!Ss(e)){var t=zs(this);return t.frozen||(t.frozen=new Bs),Xs(this,e)||t.frozen.has(e)}return Xs(this,e)},get:function(e){if(M(e)&&!Ss(e)){var t=zs(this);return t.frozen||(t.frozen=new Bs),Xs(this,e)?Qs(this,e):t.frozen.get(e)}return Qs(this,e)},set:function(e,t){if(M(e)&&!Ss(e)){var n=zs(this);n.frozen||(n.frozen=new Bs),Xs(this,e)?Js(this,e,t):n.frozen.set(e,t)}else Js(this,e,t);return this}})}var Zs=he("iterator"),el=!a((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,i){t.delete("b"),n+=i+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Zs]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})),tl=Object.assign,nl=Object.defineProperty,il=w([].concat),rl=!tl||a((function(){if(s&&1!==tl({b:1},tl(nl({},"a",{enumerable:!0,get:function(){nl(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=tl({},e)[n]||Lt(tl({},t)).join("")!=i}))?function(e,t){for(var n=ne(e),i=arguments.length,r=1,o=bt.f,a=p.f;i>r;)for(var l,c=P(arguments[r++]),f=o?il(Lt(c),o(c)):Lt(c),d=f.length,h=0;d>h;)l=f[h++],s&&!u(a,c,l)||(n[l]=c[l]);return n}:tl,ol=/[^\0-\u007E]/,al=/[.\u3002\uFF0E\uFF61]/g,sl="Overflow: input needs wider integers to process",ll=o.RangeError,cl=w(al.exec),ul=Math.floor,fl=String.fromCharCode,dl=w("".charCodeAt),hl=w([].join),pl=w([].push),ml=w("".replace),gl=w("".split),vl=w("".toLowerCase),yl=function(e){return e+22+75*(e<26)},bl=function(e,t,n){var i=0;for(e=n?ul(e/700):e>>1,e+=ul(e/t);e>455;)e=ul(e/35),i+=36;return ul(i+36*e/(e+38))},wl=function(e){var t=[];e=function(e){for(var t=[],n=0,i=e.length;n<i;){var r=dl(e,n++);if(r>=55296&&r<=56319&&n<i){var o=dl(e,n++);56320==(64512&o)?pl(t,((1023&r)<<10)+(1023&o)+65536):(pl(t,r),n--)}else pl(t,r)}return t}(e);var n,i,r=e.length,o=128,a=0,s=72;for(n=0;n<e.length;n++)(i=e[n])<128&&pl(t,fl(i));var l=t.length,c=l;for(l&&pl(t,"-");c<r;){var u=2147483647;for(n=0;n<e.length;n++)(i=e[n])>=o&&i<u&&(u=i);var f=c+1;if(u-o>ul((2147483647-a)/f))throw ll(sl);for(a+=(u-o)*f,o=u,n=0;n<e.length;n++){if((i=e[n])<o&&++a>2147483647)throw ll(sl);if(i==o){for(var d=a,h=36;;){var p=h<=s?1:h>=s+26?26:h-s;if(d<p)break;var m=d-p,g=36-p;pl(t,fl(yl(p+m%g))),d=ul(m/g),h+=36}pl(t,fl(yl(d))),s=bl(a,f,c==l),a=0,c++}}a++,o++}return hl(t,"")},kl=o.TypeError,Tl=function(e,t){if(e<t)throw kl("Not enough arguments");return e},Sl=Math.floor,El=function(e,t){var n=e.length,i=Sl(n/2);return n<8?Al(e,t):Pl(e,El(tn(e,0,i),t),El(tn(e,i),t),t)},Al=function(e,t){for(var n,i,r=e.length,o=1;o<r;){for(i=o,n=e[o];i&&t(e[i-1],n)>0;)e[i]=e[--i];i!==o++&&(e[i]=n)}return e},Pl=function(e,t,n,i){for(var r=t.length,o=n.length,a=0,s=0;a<r||s<o;)e[a+s]=a<r&&s<o?i(t[a],n[s])<=0?t[a++]:n[s++]:a<r?t[a++]:n[s++];return e},xl=El,Cl=he("iterator"),Ol=Xe.set,Il=Xe.getterFor("URLSearchParams"),Ml=Xe.getterFor("URLSearchParamsIterator"),Ll=Object.getOwnPropertyDescriptor,Nl=function(e){if(!s)return o[e];var t=Ll(o,e);return t&&t.value},jl=Nl("fetch"),Rl=Nl("Request"),_l=Nl("Headers"),Fl=Rl&&Rl.prototype,Dl=_l&&_l.prototype,ql=o.RegExp,Ul=o.TypeError,Hl=o.decodeURIComponent,Bl=o.encodeURIComponent,Vl=w("".charAt),zl=w([].join),Wl=w([].push),$l=w("".replace),Kl=w([].shift),Yl=w([].splice),Gl=w("".split),Xl=w("".slice),Ql=/\+/g,Jl=Array(4),Zl=function(e){return Jl[e-1]||(Jl[e-1]=ql("((?:%[\\da-f]{2}){"+e+"})","gi"))},ec=function(e){try{return Hl(e)}catch(t){return e}},tc=function(e){var t=$l(e,Ql," "),n=4;try{return Hl(t)}catch(e){for(;n;)t=$l(t,Zl(n--),ec);return t}},nc=/[!'()~]|%20/g,ic={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},rc=function(e){return ic[e]},oc=function(e){return $l(Bl(e),nc,rc)},ac=Ir((function(e,t){Ol(this,{type:"URLSearchParamsIterator",iterator:fo(Il(e).entries),kind:t})}),"Iterator",(function(){var e=Ml(this),t=e.kind,n=e.iterator.next(),i=n.value;return n.done||(n.value="keys"===t?i.key:"values"===t?i.value:[i.key,i.value]),n}),!0),sc=function(e){this.entries=[],this.url=null,void 0!==e&&(M(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Vl(e,0)?Xl(e,1):e:Bt(e)))};sc.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,i,r,o,a,s,l=co(e);if(l)for(n=(t=fo(e,l)).next;!(i=u(n,t)).done;){if(o=(r=fo(xe(i.value))).next,(a=u(o,r)).done||(s=u(o,r)).done||!u(o,r).done)throw Ul("Expected sequence with length 2");Wl(this.entries,{key:Bt(a.value),value:Bt(s.value)})}else for(var c in e)re(e,c)&&Wl(this.entries,{key:c,value:Bt(e[c])})},parseQuery:function(e){if(e)for(var t,n,i=Gl(e,"&"),r=0;r<i.length;)(t=i[r++]).length&&(n=Gl(t,"="),Wl(this.entries,{key:tc(Kl(n)),value:tc(zl(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],i=0;i<t.length;)e=t[i++],Wl(n,oc(e.key)+"="+oc(e.value));return zl(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var lc=function(){Ms(this,cc);var e=arguments.length>0?arguments[0]:void 0;Ol(this,new sc(e))},cc=lc.prototype;if(ws(cc,{append:function(e,t){Tl(arguments.length,2);var n=Il(this);Wl(n.entries,{key:Bt(e),value:Bt(t)}),n.updateURL()},delete:function(e){Tl(arguments.length,1);for(var t=Il(this),n=t.entries,i=Bt(e),r=0;r<n.length;)n[r].key===i?Yl(n,r,1):r++;t.updateURL()},get:function(e){Tl(arguments.length,1);for(var t=Il(this).entries,n=Bt(e),i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(e){Tl(arguments.length,1);for(var t=Il(this).entries,n=Bt(e),i=[],r=0;r<t.length;r++)t[r].key===n&&Wl(i,t[r].value);return i},has:function(e){Tl(arguments.length,1);for(var t=Il(this).entries,n=Bt(e),i=0;i<t.length;)if(t[i++].key===n)return!0;return!1},set:function(e,t){Tl(arguments.length,1);for(var n,i=Il(this),r=i.entries,o=!1,a=Bt(e),s=Bt(t),l=0;l<r.length;l++)(n=r[l]).key===a&&(o?Yl(r,l--,1):(o=!0,n.value=s));o||Wl(r,{key:a,value:s}),i.updateURL()},sort:function(){var e=Il(this);xl(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=Il(this).entries,i=pn(e,arguments.length>1?arguments[1]:void 0),r=0;r<n.length;)i((t=n[r++]).value,t.key,this)},keys:function(){return new ac(this,"keys")},values:function(){return new ac(this,"values")},entries:function(){return new ac(this,"entries")}},{enumerable:!0}),tt(cc,Cl,cc.entries,{name:"entries"}),tt(cc,"toString",(function(){return Il(this).serialize()}),{enumerable:!0}),dn(lc,"URLSearchParams"),Mt({global:!0,forced:!el},{URLSearchParams:lc}),!el&&I(_l)){var uc=w(Dl.has),fc=w(Dl.set),dc=function(e){if(M(e)){var t,n=e.body;if("URLSearchParams"===Ut(n))return t=e.headers?new _l(e.headers):new _l,uc(t,"content-type")||fc(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Qt(e,{body:m(0,Bt(n)),headers:m(0,t)})}return e};if(I(jl)&&Mt({global:!0,enumerable:!0,noTargetGet:!0,forced:!0},{fetch:function(e){return jl(e,arguments.length>1?dc(arguments[1]):{})}}),I(Rl)){var hc=function(e){return Ms(this,Fl),new Rl(e,arguments.length>1?dc(arguments[1]):{})};Fl.constructor=hc,hc.prototype=Fl,Mt({global:!0,forced:!0,noTargetGet:!0},{Request:hc})}}var pc,mc={URLSearchParams:lc,getState:Il},gc=zt.f,vc=vr.codeAt,yc=Xe.set,bc=Xe.getterFor("URL"),wc=mc.URLSearchParams,kc=mc.getState,Tc=o.URL,Sc=o.TypeError,Ec=o.parseInt,Ac=Math.floor,Pc=Math.pow,xc=w("".charAt),Cc=w(/./.exec),Oc=w([].join),Ic=w(1..toString),Mc=w([].pop),Lc=w([].push),Nc=w("".replace),jc=w([].shift),Rc=w("".split),_c=w("".slice),Fc=w("".toLowerCase),Dc=w([].unshift),qc=/[a-z]/i,Uc=/[\d+-.a-z]/i,Hc=/\d/,Bc=/^0x/i,Vc=/^[0-7]+$/,zc=/^\d+$/,Wc=/^[\da-f]+$/i,$c=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Kc=/[\0\t\n\r #/:<>?@[\\\]^|]/,Yc=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,Gc=/[\t\n\r]/g,Xc=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)Dc(t,e%256),e=Ac(e/256);return Oc(t,".")}if("object"==typeof e){for(t="",i=function(e){for(var t=null,n=1,i=null,r=0,o=0;o<8;o++)0!==e[o]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n&&(t=i,n=r),t}(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=Ic(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},Qc={},Jc=rl({},Qc,{" ":1,'"':1,"<":1,">":1,"`":1}),Zc=rl({},Jc,{"#":1,"?":1,"{":1,"}":1}),eu=rl({},Zc,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),tu=function(e,t){var n=vc(e,0);return n>32&&n<127&&!re(t,e)?e:encodeURIComponent(e)},nu={ftp:21,file:null,http:80,https:443,ws:80,wss:443},iu=function(e,t){var n;return 2==e.length&&Cc(qc,xc(e,0))&&(":"==(n=xc(e,1))||!t&&"|"==n)},ru=function(e){var t;return e.length>1&&iu(_c(e,0,2))&&(2==e.length||"/"===(t=xc(e,2))||"\\"===t||"?"===t||"#"===t)},ou=function(e){return"."===e||"%2e"===Fc(e)},au={},su={},lu={},cu={},uu={},fu={},du={},hu={},pu={},mu={},gu={},vu={},yu={},bu={},wu={},ku={},Tu={},Su={},Eu={},Au={},Pu={},xu=function(e,t,n){var i,r,o,a=Bt(e);if(t){if(r=this.parse(a))throw Sc(r);this.searchParams=null}else{if(void 0!==n&&(i=new xu(n,!0)),r=this.parse(a,null,i))throw Sc(r);(o=kc(new wc)).bindURL(this),this.searchParams=o}};xu.prototype={type:"URL",parse:function(e,t,n){var i,r,o,a,s,l=this,c=t||au,u=0,f="",d=!1,h=!1,p=!1;for(e=Bt(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=Nc(e,Yc,"")),e=Nc(e,Gc,""),i=po(e);u<=i.length;){switch(r=i[u],c){case au:if(!r||!Cc(qc,r)){if(t)return"Invalid scheme";c=lu;continue}f+=Fc(r),c=su;break;case su:if(r&&(Cc(Uc,r)||"+"==r||"-"==r||"."==r))f+=Fc(r);else{if(":"!=r){if(t)return"Invalid scheme";f="",c=lu,u=0;continue}if(t&&(l.isSpecial()!=re(nu,f)||"file"==f&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=f,t)return void(l.isSpecial()&&nu[l.scheme]==l.port&&(l.port=null));f="","file"==l.scheme?c=bu:l.isSpecial()&&n&&n.scheme==l.scheme?c=cu:l.isSpecial()?c=hu:"/"==i[u+1]?(c=uu,u++):(l.cannotBeABaseURL=!0,Lc(l.path,""),c=Eu)}break;case lu:if(!n||n.cannotBeABaseURL&&"#"!=r)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"==r){l.scheme=n.scheme,l.path=tn(n.path),l.query=n.query,l.fragment="",l.cannotBeABaseURL=!0,c=Pu;break}c="file"==n.scheme?bu:fu;continue;case cu:if("/"!=r||"/"!=i[u+1]){c=fu;continue}c=pu,u++;break;case uu:if("/"==r){c=mu;break}c=Su;continue;case fu:if(l.scheme=n.scheme,r==pc)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=tn(n.path),l.query=n.query;else if("/"==r||"\\"==r&&l.isSpecial())c=du;else if("?"==r)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=tn(n.path),l.query="",c=Au;else{if("#"!=r){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=tn(n.path),l.path.length--,c=Su;continue}l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=tn(n.path),l.query=n.query,l.fragment="",c=Pu}break;case du:if(!l.isSpecial()||"/"!=r&&"\\"!=r){if("/"!=r){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,c=Su;continue}c=mu}else c=pu;break;case hu:if(c=pu,"/"!=r||"/"!=xc(f,u+1))continue;u++;break;case pu:if("/"!=r&&"\\"!=r){c=mu;continue}break;case mu:if("@"==r){d&&(f="%40"+f),d=!0,o=po(f);for(var m=0;m<o.length;m++){var g=o[m];if(":"!=g||p){var v=tu(g,eu);p?l.password+=v:l.username+=v}else p=!0}f=""}else if(r==pc||"/"==r||"?"==r||"#"==r||"\\"==r&&l.isSpecial()){if(d&&""==f)return"Invalid authority";u-=po(f).length+1,f="",c=gu}else f+=r;break;case gu:case vu:if(t&&"file"==l.scheme){c=ku;continue}if(":"!=r||h){if(r==pc||"/"==r||"?"==r||"#"==r||"\\"==r&&l.isSpecial()){if(l.isSpecial()&&""==f)return"Invalid host";if(t&&""==f&&(l.includesCredentials()||null!==l.port))return;if(a=l.parseHost(f))return a;if(f="",c=Tu,t)return;continue}"["==r?h=!0:"]"==r&&(h=!1),f+=r}else{if(""==f)return"Invalid host";if(a=l.parseHost(f))return a;if(f="",c=yu,t==vu)return}break;case yu:if(!Cc(Hc,r)){if(r==pc||"/"==r||"?"==r||"#"==r||"\\"==r&&l.isSpecial()||t){if(""!=f){var y=Ec(f,10);if(y>65535)return"Invalid port";l.port=l.isSpecial()&&y===nu[l.scheme]?null:y,f=""}if(t)return;c=Tu;continue}return"Invalid port"}f+=r;break;case bu:if(l.scheme="file","/"==r||"\\"==r)c=wu;else{if(!n||"file"!=n.scheme){c=Su;continue}if(r==pc)l.host=n.host,l.path=tn(n.path),l.query=n.query;else if("?"==r)l.host=n.host,l.path=tn(n.path),l.query="",c=Au;else{if("#"!=r){ru(Oc(tn(i,u),""))||(l.host=n.host,l.path=tn(n.path),l.shortenPath()),c=Su;continue}l.host=n.host,l.path=tn(n.path),l.query=n.query,l.fragment="",c=Pu}}break;case wu:if("/"==r||"\\"==r){c=ku;break}n&&"file"==n.scheme&&!ru(Oc(tn(i,u),""))&&(iu(n.path[0],!0)?Lc(l.path,n.path[0]):l.host=n.host),c=Su;continue;case ku:if(r==pc||"/"==r||"\\"==r||"?"==r||"#"==r){if(!t&&iu(f))c=Su;else if(""==f){if(l.host="",t)return;c=Tu}else{if(a=l.parseHost(f))return a;if("localhost"==l.host&&(l.host=""),t)return;f="",c=Tu}continue}f+=r;break;case Tu:if(l.isSpecial()){if(c=Su,"/"!=r&&"\\"!=r)continue}else if(t||"?"!=r)if(t||"#"!=r){if(r!=pc&&(c=Su,"/"!=r))continue}else l.fragment="",c=Pu;else l.query="",c=Au;break;case Su:if(r==pc||"/"==r||"\\"==r&&l.isSpecial()||!t&&("?"==r||"#"==r)){if(".."===(s=Fc(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(l.shortenPath(),"/"==r||"\\"==r&&l.isSpecial()||Lc(l.path,"")):ou(f)?"/"==r||"\\"==r&&l.isSpecial()||Lc(l.path,""):("file"==l.scheme&&!l.path.length&&iu(f)&&(l.host&&(l.host=""),f=xc(f,0)+":"),Lc(l.path,f)),f="","file"==l.scheme&&(r==pc||"?"==r||"#"==r))for(;l.path.length>1&&""===l.path[0];)jc(l.path);"?"==r?(l.query="",c=Au):"#"==r&&(l.fragment="",c=Pu)}else f+=tu(r,Zc);break;case Eu:"?"==r?(l.query="",c=Au):"#"==r?(l.fragment="",c=Pu):r!=pc&&(l.path[0]+=tu(r,Qc));break;case Au:t||"#"!=r?r!=pc&&("'"==r&&l.isSpecial()?l.query+="%27":l.query+="#"==r?"%23":tu(r,Qc)):(l.fragment="",c=Pu);break;case Pu:r!=pc&&(l.fragment+=tu(r,Jc))}u++}},parseHost:function(e){var t,n,i;if("["==xc(e,0)){if("]"!=xc(e,e.length-1))return"Invalid host";if(t=function(e){var t,n,i,r,o,a,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,f=0,d=function(){return xc(e,f)};if(":"==d()){if(":"!=xc(e,1))return;f+=2,u=++c}for(;d();){if(8==c)return;if(":"!=d()){for(t=n=0;n<4&&Cc(Wc,d());)t=16*t+Ec(d(),16),f++,n++;if("."==d()){if(0==n)return;if(f-=n,c>6)return;for(i=0;d();){if(r=null,i>0){if(!("."==d()&&i<4))return;f++}if(!Cc(Hc,d()))return;for(;Cc(Hc,d());){if(o=Ec(d(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;f++}l[c]=256*l[c]+r,2!=++i&&4!=i||c++}if(4!=i)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;l[c++]=t}else{if(null!==u)return;f++,u=++c}}if(null!==u)for(a=c-u,c=7;0!=c&&a>0;)s=l[c],l[c--]=l[u+a-1],l[u+--a]=s;else if(8!=c)return;return l}(_c(e,1,-1)),!t)return"Invalid host";this.host=t}else if(this.isSpecial()){if(e=function(e){var t,n,i=[],r=gl(ml(vl(e),al,"."),".");for(t=0;t<r.length;t++)n=r[t],pl(i,cl(ol,n)?"xn--"+wl(n):n);return hl(i,".")}(e),Cc($c,e))return"Invalid host";if(t=function(e){var t,n,i,r,o,a,s,l=Rc(e,".");if(l.length&&""==l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(n=[],i=0;i<t;i++){if(""==(r=l[i]))return e;if(o=10,r.length>1&&"0"==xc(r,0)&&(o=Cc(Bc,r)?16:8,r=_c(r,8==o?1:2)),""===r)a=0;else{if(!Cc(10==o?zc:8==o?Vc:Wc,r))return e;a=Ec(r,o)}Lc(n,a)}for(i=0;i<t;i++)if(a=n[i],i==t-1){if(a>=Pc(256,5-t))return null}else if(a>255)return null;for(s=Mc(n),i=0;i<n.length;i++)s+=n[i]*Pc(256,3-i);return s}(e),null===t)return"Invalid host";this.host=t}else{if(Cc(Kc,e))return"Invalid host";for(t="",n=po(e),i=0;i<n.length;i++)t+=tu(n[i],Qc);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return re(nu,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&iu(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,i=e.password,r=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,c=t+":";return null!==r?(c+="//",e.includesCredentials()&&(c+=n+(i?":"+i:"")+"@"),c+=Xc(r),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+Oc(a,"/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},setHref:function(e){var t=this.parse(e);if(t)throw Sc(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Cu(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Xc(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Bt(e)+":",au)},getUsername:function(){return this.username},setUsername:function(e){var t=po(Bt(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=tu(t[n],eu)}},getPassword:function(){return this.password},setPassword:function(e){var t=po(Bt(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=tu(t[n],eu)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Xc(e):Xc(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,gu)},getHostname:function(){var e=this.host;return null===e?"":Xc(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,vu)},getPort:function(){var e=this.port;return null===e?"":Bt(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=Bt(e))?this.port=null:this.parse(e,yu))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Oc(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Tu))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=Bt(e))?this.query=null:("?"==xc(e,0)&&(e=_c(e,1)),this.query="",this.parse(e,Au)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=Bt(e))?("#"==xc(e,0)&&(e=_c(e,1)),this.fragment="",this.parse(e,Pu)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Cu=function(e){var t=Ms(this,Ou),n=Tl(arguments.length,1)>1?arguments[1]:void 0,i=yc(t,new xu(e,!1,n));s||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},Ou=Cu.prototype,Iu=function(e,t){return{get:function(){return bc(this)[e]()},set:t&&function(e){return bc(this)[t](e)},configurable:!0,enumerable:!0}};if(s&&gc(Ou,{href:Iu("serialize","setHref"),origin:Iu("getOrigin"),protocol:Iu("getProtocol","setProtocol"),username:Iu("getUsername","setUsername"),password:Iu("getPassword","setPassword"),host:Iu("getHost","setHost"),hostname:Iu("getHostname","setHostname"),port:Iu("getPort","setPort"),pathname:Iu("getPathname","setPathname"),search:Iu("getSearch","setSearch"),searchParams:Iu("getSearchParams"),hash:Iu("getHash","setHash")}),tt(Ou,"toJSON",(function(){return bc(this).serialize()}),{enumerable:!0}),tt(Ou,"toString",(function(){return bc(this).serialize()}),{enumerable:!0}),Tc){var Mu=Tc.createObjectURL,Lu=Tc.revokeObjectURL;Mu&&tt(Cu,"createObjectURL",pn(Mu,Tc)),Lu&&tt(Cu,"revokeObjectURL",pn(Lu,Tc))}dn(Cu,"URL"),Mt({global:!0,forced:!el,sham:!s},{URL:Cu});var Nu,ju=Se.f,Ru=w("".startsWith),_u=w("".slice),Fu=Math.min,Du=Ca("startsWith"),qu=!(Du||(Nu=ju(String.prototype,"startsWith"),!Nu||Nu.writable));Mt({target:"String",proto:!0,forced:!qu&&!Du},{startsWith:function(e){var t=Bt(C(this));Pa(e);var n=ct(Fu(arguments.length>1?arguments[1]:void 0,t.length)),i=Bt(e);return Ru?Ru(t,i,n):_u(t,n,n+i.length)===i}});var Uu=In.find,Hu=!0;"find"in[]&&Array(1).find((function(){Hu=!1})),Mt({target:"Array",proto:!0,forced:Hu},{find:function(e){return Uu(this,e,arguments.length>1?arguments[1]:void 0)}}),$r("find");var Bu=o.TypeError,Vu=he("species"),zu=function(e,t){var n,i=xe(e).constructor;return void 0===i||null==(n=xe(i)[Vu])?t:function(e){if(En(e))return e;throw Bu($(e)+" is not a constructor")}(n)},Wu=Io.UNSUPPORTED_Y,$u=Math.min,Ku=[].push,Yu=w(/./.exec),Gu=w(Ku),Xu=w("".slice),Qu=!a((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));ts("split",(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=Bt(C(this)),r=void 0===n?4294967295:n>>>0;if(0===r)return[];if(void 0===e)return[i];if(!Ea(e))return u(t,i,e,r);for(var o,a,s,l=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,d=new RegExp(e.source,c+"g");(o=u($o,d,i))&&!((a=d.lastIndex)>f&&(Gu(l,Xu(i,f,o.index)),o.length>1&&o.index<i.length&&ui(Ku,l,tn(o,1)),s=o[0].length,f=a,l.length>=r));)d.lastIndex===o.index&&d.lastIndex++;return f===i.length?!s&&Yu(d,"")||Gu(l,""):Gu(l,Xu(i,f)),l.length>r?tn(l,0,r):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:u(t,this,e,n)}:t,[function(t,n){var r=C(this),o=null==t?void 0:G(t,e);return o?u(o,t,r,n):u(i,Bt(r),t,n)},function(e,r){var o=xe(this),a=Bt(e),s=n(i,o,a,r,i!==t);if(s.done)return s.value;var l=zu(o,RegExp),c=o.unicode,u=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(Wu?"g":"y"),f=new l(Wu?"^(?:"+o.source+")":o,u),d=void 0===r?4294967295:r>>>0;if(0===d)return[];if(0===a.length)return null===os(f,a)?[a]:[];for(var h=0,p=0,m=[];p<a.length;){f.lastIndex=Wu?0:p;var g,v=os(f,Wu?Xu(a,p):a);if(null===v||(g=$u(ct(f.lastIndex+(Wu?p:0)),a.length))===h)p=is(a,p,c);else{if(Gu(m,Xu(a,h,p)),m.length===d)return m;for(var y=1;y<=v.length-1;y++)if(Gu(m,v[y]),m.length===d)return m;p=h=g}}return Gu(m,Xu(a,h)),m}]}),!Qu,Wu);var Ju=he("isConcatSpreadable"),Zu=o.TypeError,ef=U>=51||!a((function(){var e=[];return e[Ju]=!1,e.concat()[0]!==e})),tf=xi("concat"),nf=function(e){if(!M(e))return!1;var t=e[Ju];return void 0!==t?!!t:mn(e)};Mt({target:"Array",proto:!0,forced:!ef||!tf},{concat:function(e){var t,n,i,r,o,a=ne(this),s=xn(a,0),l=0;for(t=-1,i=arguments.length;t<i;t++)if(nf(o=-1===t?a:arguments[t])){if(l+(r=ut(o))>9007199254740991)throw Zu("Maximum allowed index exceeded");for(n=0;n<r;n++,l++)n in o&&Jt(s,l,o[n])}else{if(l>=9007199254740991)throw Zu("Maximum allowed index exceeded");Jt(s,l++,o)}return s.length=l,s}});var rf=p.f,of=w(rf),af=w([].push),sf=function(e){return function(t){for(var n,i=O(t),r=Lt(i),o=r.length,a=0,l=[];o>a;)n=r[a++],s&&!of(i,n)||af(l,e?[n,i[n]]:i[n]);return l}},lf={entries:sf(!0),values:sf(!1)},cf=lf.entries;Mt({target:"Object",stat:!0},{entries:function(e){return cf(e)}});var uf,ff=et.PROPER,df=Fa.trim;Mt({target:"String",proto:!0,forced:(uf="trim",a((function(){return!!Ma[uf]()||"​…᠎"!=="​…᠎"[uf]()||ff&&Ma[uf].name!==uf})))},{trim:function(){return df(this)}});var hf=Math.floor,pf=w("".charAt),mf=w("".replace),gf=w("".slice),vf=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,yf=/\$([$&'`]|\d{1,2})/g,bf=function(e,t,n,i,r,o){var a=n+e.length,s=i.length,l=yf;return void 0!==r&&(r=ne(r),l=vf),mf(o,l,(function(o,l){var c;switch(pf(l,0)){case"$":return"$";case"&":return e;case"`":return gf(t,0,n);case"'":return gf(t,a);case"<":c=r[gf(l,1,-1)];break;default:var u=+l;if(0===u)return o;if(u>s){var f=hf(u/10);return 0===f?o:f<=s?void 0===i[f-1]?pf(l,1):i[f-1]+pf(l,1):o}c=i[u-1]}return void 0===c?"":c}))},wf=he("replace"),kf=Math.max,Tf=Math.min,Sf=w([].concat),Ef=w([].push),Af=w("".indexOf),Pf=w("".slice),xf="$0"==="a".replace(/./,"$0"),Cf=!!/./[wf]&&""===/./[wf]("a","$0"),Of=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));ts("replace",(function(e,t,n){var i=Cf?"$":"$0";return[function(e,n){var i=C(this),r=null==e?void 0:G(e,wf);return r?u(r,e,i,n):u(t,Bt(i),e,n)},function(e,r){var o=xe(this),a=Bt(e);if("string"==typeof r&&-1===Af(r,i)&&-1===Af(r,"$<")){var s=n(t,o,a,r);if(s.done)return s.value}var l=I(r);l||(r=Bt(r));var c=o.global;if(c){var u=o.unicode;o.lastIndex=0}for(var f=[];;){var d=os(o,a);if(null===d)break;if(Ef(f,d),!c)break;""===Bt(d[0])&&(o.lastIndex=is(a,ct(o.lastIndex),u))}for(var h,p="",m=0,g=0;g<f.length;g++){for(var v=Bt((d=f[g])[0]),y=kf(Tf(rt(d.index),a.length),0),b=[],w=1;w<d.length;w++)Ef(b,void 0===(h=d[w])?h:String(h));var k=d.groups;if(l){var T=Sf([v],b,y,a);void 0!==k&&Ef(T,k);var S=Bt(ui(r,void 0,T))}else S=bf(v,a,y,b,k,r);y>=m&&(p+=Pf(a,m,y)+S,m=y+v.length)}return p+Pf(a,m)}]}),!Of||!xf||Cf);var If=RegExp.prototype,Mf=function(e){var t=e.flags;return void 0!==t||"flags"in If||re(e,"flags")||!j(If,e)?t:u(Ao,e)},Lf=et.PROPER,Nf=RegExp.prototype.toString,jf=a((function(){return"/a/b"!=Nf.call({source:"a",flags:"b"})})),Rf=Lf&&"toString"!=Nf.name;(jf||Rf)&&tt(RegExp.prototype,"toString",(function(){var e=xe(this);return"/"+Bt(e.source)+"/"+Bt(Mf(e))}),{unsafe:!0});var _f=he("species"),Ff=yt.f,Df=Xe.enforce,qf=he("match"),Uf=o.RegExp,Hf=Uf.prototype,Bf=o.SyntaxError,Vf=w(Hf.exec),zf=w("".charAt),Wf=w("".replace),$f=w("".indexOf),Kf=w("".slice),Yf=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Gf=/a/g,Xf=/a/g,Qf=new Uf(Gf)!==Gf,Jf=Io.MISSED_STICKY,Zf=Io.UNSUPPORTED_Y,ed=s&&(!Qf||Jf||Lo||jo||a((function(){return Xf[qf]=!1,Uf(Gf)!=Gf||Uf(Xf)==Xf||"/a/i"!=Uf(Gf,"i")})));if(Ot("RegExp",ed)){for(var td=function(e,t){var n,i,r,o,a,s,l=j(Hf,this),c=Ea(e),u=void 0===t,f=[],d=e;if(!l&&c&&u&&e.constructor===td)return e;if((c||j(Hf,e))&&(e=e.source,u&&(t=Mf(d))),e=void 0===e?"":Bt(e),t=void 0===t?"":Bt(t),d=e,Lo&&"dotAll"in Gf&&(i=!!t&&$f(t,"s")>-1)&&(t=Wf(t,/s/g,"")),n=t,Jf&&"sticky"in Gf&&(r=!!t&&$f(t,"y")>-1)&&Zf&&(t=Wf(t,/y/g,"")),jo&&(o=function(e){for(var t,n=e.length,i=0,r="",o=[],a={},s=!1,l=!1,c=0,u="";i<=n;i++){if("\\"===(t=zf(e,i)))t+=zf(e,++i);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:Vf(Yf,Kf(e,i+1))&&(i+=2,l=!0),r+=t,c++;continue;case">"===t&&l:if(""===u||re(a,u))throw new Bf("Invalid capture group name");a[u]=!0,o[o.length]=[u,c],l=!1,u="";continue}l?u+=t:r+=t}return[r,o]}(e),e=o[0],f=o[1]),a=ta(Uf(e,t),l?this:Hf,td),(i||r||f.length)&&(s=Df(a),i&&(s.dotAll=!0,s.raw=td(function(e){for(var t,n=e.length,i=0,r="",o=!1;i<=n;i++)"\\"!==(t=zf(e,i))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),r+=t):r+="[\\s\\S]":r+=t+zf(e,++i);return r}(e),n)),r&&(s.sticky=!0),f.length&&(s.groups=f)),e!==d)try{Le(a,"source",""===d?"(?:)":d)}catch(e){}return a},nd=Ff(Uf),id=0;nd.length>id;)ea(td,Uf,nd[id++]);Hf.constructor=td,td.prototype=Hf,tt(o,"RegExp",td)}!function(e){var t=N(e),n=Me.f;s&&t&&!t[_f]&&n(t,_f,{configurable:!0,get:function(){return this}})}("RegExp");var rd=Me.f,od=Xe.get,ad=RegExp.prototype,sd=o.TypeError;s&&Lo&&rd(ad,"dotAll",{configurable:!0,get:function(){if(this!==ad){if("RegExp"===S(this))return!!od(this).dotAll;throw sd("Incompatible receiver, RegExp required")}}});var ld=Io.MISSED_STICKY,cd=Me.f,ud=Xe.get,fd=RegExp.prototype,dd=o.TypeError;s&&ld&&cd(fd,"sticky",{configurable:!0,get:function(){if(this!==fd){if("RegExp"===S(this))return!!ud(this).sticky;throw dd("Incompatible receiver, RegExp required")}}});var hd=Math.ceil,pd=Math.floor;Mt({target:"Math",stat:!0},{trunc:function(e){return(e>0?pd:hd)(e)}});var md=w([].join),gd=P!=Object,vd=Fi("join",",");Mt({target:"Array",proto:!0,forced:gd||!vd},{join:function(e){return md(O(this),void 0===e?",":e)}});var yd=R.match(/firefox\/(\d+)/i),bd=!!yd&&+yd[1],wd=/MSIE|Trident/.test(R),kd=R.match(/AppleWebKit\/(\d+)\./),Td=!!kd&&+kd[1],Sd=[],Ed=w(Sd.sort),Ad=w(Sd.push),Pd=a((function(){Sd.sort(void 0)})),xd=a((function(){Sd.sort(null)})),Cd=Fi("sort"),Od=!a((function(){if(U)return U<70;if(!(bd&&bd>3)){if(wd)return!0;if(Td)return Td<603;var e,t,n,i,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)Sd.push({k:t+i,v:n})}for(Sd.sort((function(e,t){return t.v-e.v})),i=0;i<Sd.length;i++)t=Sd[i].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return"DGBEFHACIJK"!==r}}));Mt({target:"Array",proto:!0,forced:Pd||!xd||!Cd||!Od},{sort:function(e){void 0!==e&&Y(e);var t=ne(this);if(Od)return void 0===e?Ed(t):Ed(t,e);var n,i,r=[],o=ut(t);for(i=0;i<o;i++)i in t&&Ad(r,t[i]);for(xl(r,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:Bt(t)>Bt(n)?1:-1}}(e)),n=r.length,i=0;i<n;)t[i]=r[i++];for(;i<o;)delete t[i++];return t}});var Id=lf.values;Mt({target:"Object",stat:!0},{values:function(e){return Id(e)}});var Md=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1};Mt({target:"Math",stat:!0},{sign:Md}),Mt({global:!0},{globalThis:o});var Ld=xi("splice"),Nd=o.TypeError,jd=Math.max,Rd=Math.min;Mt({target:"Array",proto:!0,forced:!Ld},{splice:function(e,t){var n,i,r,o,a,s,l=ne(this),c=ut(l),u=st(e,c),f=arguments.length;if(0===f?n=i=0:1===f?(n=0,i=c-u):(n=f-2,i=Rd(jd(rt(t),0),c-u)),c+n-i>9007199254740991)throw Nd("Maximum allowed length exceeded");for(r=xn(l,i),o=0;o<i;o++)(a=u+o)in l&&Jt(r,o,l[a]);if(r.length=i,n<i){for(o=u;o<c-i;o++)s=o+n,(a=o+i)in l?l[s]=l[a]:delete l[s];for(o=c;o>c-i+n;o--)delete l[o-1]}else if(n>i)for(o=c-i;o>u;o--)s=o+n-1,(a=o+i-1)in l?l[s]=l[a]:delete l[s];for(o=0;o<n;o++)l[o+u]=arguments[o+2];return l.length=c-i+n,r}});var _d=In.findIndex,Fd=!0;"findIndex"in[]&&Array(1).findIndex((function(){Fd=!1})),Mt({target:"Array",proto:!0,forced:Fd},{findIndex:function(e){return _d(this,e,arguments.length>1?arguments[1]:void 0)}}),$r("findIndex");var Dd=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};ts("search",(function(e,t,n){return[function(t){var n=C(this),i=null==t?void 0:G(t,e);return i?u(i,t,n):new RegExp(t)[e](Bt(n))},function(e){var i=xe(this),r=Bt(e),o=n(t,i,r);if(o.done)return o.value;var a=i.lastIndex;Dd(a,0)||(i.lastIndex=0);var s=os(i,r);return Dd(i.lastIndex,a)||(i.lastIndex=a),null===s?-1:s.index}]}));var qd=["premium","referrerPolicy"];function Ud(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hd(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Bd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function zd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vd(Object(n),!0).forEach((function(t){Bd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wd={addCSS:!0,thumbWidth:15,watch:!0};function $d(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}var Kd=function(e){return null!=e?e.constructor:null},Yd=function(e,t){return!!(e&&t&&e instanceof t)},Gd=function(e){return null==e},Xd=function(e){return Kd(e)===Object},Qd=function(e){return Kd(e)===String},Jd=function(e){return Array.isArray(e)},Zd=function(e){return Yd(e,NodeList)},eh=Qd,th=Jd,nh=Zd,ih=function(e){return Yd(e,Element)},rh=function(e){return Yd(e,Event)},oh=function(e){return Gd(e)||(Qd(e)||Jd(e)||Zd(e))&&!e.length||Xd(e)&&!Object.keys(e).length};function ah(e,t){if(1>t){var n=function(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}(t);return parseFloat(e.toFixed(n))}return Math.round(e/t)*t}var sh,lh,ch,uh=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),ih(t)?this.element=t:eh(t)&&(this.element=document.querySelector(t)),ih(this.element)&&oh(this.element.rangeTouch)&&(this.config=zd({},Wd,{},n),this.init())}return function(e,t,n){t&&Hd(e.prototype,t),n&&Hd(e,n)}(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(e){var t=this,n=e?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(e){t.element[n](e,(function(e){return t.set(e)}),!1)}))}},{key:"get",value:function(t){if(!e.enabled||!rh(t))return null;var n,i=t.target,r=t.changedTouches[0],o=parseFloat(i.getAttribute("min"))||0,a=parseFloat(i.getAttribute("max"))||100,s=parseFloat(i.getAttribute("step"))||1,l=i.getBoundingClientRect(),c=100/l.width*(this.config.thumbWidth/2)/100;return 0>(n=100/l.width*(r.clientX-l.left))?n=0:100<n&&(n=100),50>n?n-=(100-2*n)*c:50<n&&(n+=2*(n-50)*c),o+ah(n/100*(a-o),s)}},{key:"set",value:function(t){e.enabled&&rh(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),function(e,t){if(e&&t){var n=new Event(t,{bubbles:!0});e.dispatchEvent(n)}}(t.target,"touchend"===t.type?"change":"input"))}}],[{key:"setup",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=null;if(oh(t)||eh(t)?i=Array.from(document.querySelectorAll(eh(t)?t:'input[type="range"]')):ih(t)?i=[t]:nh(t)?i=Array.from(t):th(t)&&(i=t.filter(ih)),oh(i))return null;var r=zd({},Wd,{},n);if(eh(t)&&r.watch){var o=new MutationObserver((function(n){Array.from(n).forEach((function(n){Array.from(n.addedNodes).forEach((function(n){ih(n)&&$d(n,t)&&new e(n,r)}))}))}));o.observe(document.body,{childList:!0,subtree:!0})}return i.map((function(t){return new e(t,n)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}(),fh=function(e){return null!=e?e.constructor:null},dh=function(e,t){return Boolean(e&&t&&e instanceof t)},hh=function(e){return null==e},ph=function(e){return fh(e)===Object},mh=function(e){return fh(e)===String},gh=function(e){return fh(e)===Function},vh=function(e){return Array.isArray(e)},yh=function(e){return dh(e,NodeList)},bh=function(e){return hh(e)||(mh(e)||vh(e)||yh(e))&&!e.length||ph(e)&&!Object.keys(e).length},wh=hh,kh=ph,Th=function(e){return fh(e)===Number&&!Number.isNaN(e)},Sh=mh,Eh=function(e){return fh(e)===Boolean},Ah=gh,Ph=vh,xh=yh,Ch=function(e){return null!==e&&"object"==ka(e)&&1===e.nodeType&&"object"==ka(e.style)&&"object"==ka(e.ownerDocument)},Oh=function(e){return dh(e,Event)},Ih=function(e){return dh(e,KeyboardEvent)},Mh=function(e){return dh(e,TextTrack)||!hh(e)&&mh(e.kind)},Lh=function(e){return dh(e,Promise)&&gh(e.then)},Nh=function(e){if(dh(e,window.URL))return!0;if(!mh(e))return!1;var t=e;e.startsWith("http://")&&e.startsWith("https://")||(t="http://".concat(e));try{return!bh(new URL(t).hostname)}catch(e){return!1}},jh=bh,Rh=(sh=document.createElement("span"),lh={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},ch=Object.keys(lh).find((function(e){return void 0!==sh.style[e]})),!!Sh(ch)&&lh[ch]);function _h(e,t){setTimeout((function(){try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch(e){}}),t)}var Fh={isIE:Boolean(window.document.documentMode),isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||/(iPad|iPhone|iPod)/gi.test(navigator.platform)};function Dh(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)}function qh(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(!n.length)return e;var r=n.shift();return kh(r)?(Object.keys(r).forEach((function(t){kh(r[t])?(Object.keys(e).includes(t)||Object.assign(e,Bi({},t,{})),qh(e[t],r[t])):Object.assign(e,Bi({},t,r[t]))})),qh.apply(void 0,[e].concat(n))):e}function Uh(e,t){var n=e.length?e:[e];Array.from(n).reverse().forEach((function(e,n){var i=n>0?t.cloneNode(!0):t,r=e.parentNode,o=e.nextSibling;i.appendChild(e),o?r.insertBefore(i,o):r.appendChild(i)}))}function Hh(e,t){Ch(e)&&!jh(t)&&Object.entries(t).filter((function(e){var t=wa(e,2)[1];return!wh(t)})).forEach((function(t){var n=wa(t,2),i=n[0],r=n[1];return e.setAttribute(i,r)}))}function Bh(e,t,n){var i=document.createElement(e);return kh(t)&&Hh(i,t),Sh(n)&&(i.innerText=n),i}function Vh(e,t,n,i){Ch(t)&&t.appendChild(Bh(e,n,i))}function zh(e){xh(e)||Ph(e)?Array.from(e).forEach(zh):Ch(e)&&Ch(e.parentNode)&&e.parentNode.removeChild(e)}function Wh(e){if(Ch(e))for(var t=e.childNodes.length;t>0;)e.removeChild(e.lastChild),t-=1}function $h(e,t){return Ch(t)&&Ch(t.parentNode)&&Ch(e)?(t.parentNode.replaceChild(e,t),e):null}function Kh(e,t){if(!Sh(e)||jh(e))return{};var n={},i=qh({},t);return e.split(",").forEach((function(e){var t=e.trim(),r=t.replace(".",""),o=t.replace(/[[\]]/g,"").split("="),a=wa(o,1)[0],s=o.length>1?o[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":Sh(i.class)?n.class="".concat(i.class," ").concat(r):n.class=r;break;case"#":n.id=t.replace("#","");break;case"[":n[a]=s}})),qh(i,n)}function Yh(e,t){if(Ch(e)){var n=t;Eh(n)||(n=!e.hidden),e.hidden=n}}function Gh(e,t,n){if(xh(e))return Array.from(e).map((function(e){return Gh(e,t,n)}));if(Ch(e)){var i="toggle";return void 0!==n&&(i=n?"add":"remove"),e.classList[i](t),e.classList.contains(t)}return!1}function Xh(e,t){return Ch(e)&&e.classList.contains(t)}function Qh(e,t){var n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(){return Array.from(document.querySelectorAll(t)).includes(this)}).call(e,t)}function Jh(e){return this.elements.container.querySelectorAll(e)}function Zh(e){return this.elements.container.querySelector(e)}function ep(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Ch(e)&&(e.focus({preventScroll:!0}),t&&Gh(e,this.config.classNames.tabFocus))}var tp={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},np={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(e,t,n){var i=Fh.isIPhone&&n&&np.playsinline,r=np[e]||"html5"!==t;return{api:r,ui:r&&np.rangeInput&&("video"!==e||!Fh.isIPhone||i)}},pip:!(Fh.isIPhone||!Ah(Bh("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||Bh("video").disablePictureInPicture)),airplay:Ah(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(e){if(jh(e))return!1;var t=wa(e.split("/"),1)[0],n=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(tp).includes(n)&&(n+='; codecs="'.concat(tp[e],'"'));try{return Boolean(n&&this.media.canPlayType(n).replace(/no/,""))}catch(e){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:function(){var e=document.createElement("input");return e.type="range","range"===e.type}(),touch:"ontouchstart"in document.documentElement,transitions:!1!==Rh,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},ip=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,null}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function rp(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(e&&"addEventListener"in e&&!jh(t)&&Ah(n)){var s=t.split(" "),l=a;ip&&(l={passive:o,capture:a}),s.forEach((function(t){i&&i.eventListeners&&r&&i.eventListeners.push({element:e,type:t,callback:n,options:l}),e[r?"addEventListener":"removeEventListener"](t,n,l)}))}}function op(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];rp.call(this,e,t,n,!0,i,r)}function ap(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];rp.call(this,e,t,n,!1,i,r)}function sp(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=function a(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];ap(e,n,a,r,o),i.apply(t,l)};rp.call(this,e,n,a,!0,r,o)}function lp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(Ch(e)&&!jh(t)){var r=new CustomEvent(t,{bubbles:n,detail:zi(zi({},i),{},{plyr:this})});e.dispatchEvent(r)}}function cp(){this&&this.eventListeners&&(this.eventListeners.forEach((function(e){var t=e.element,n=e.type,i=e.callback,r=e.options;t.removeEventListener(n,i,r)})),this.eventListeners=[])}function up(){var e=this;return new Promise((function(t){return e.ready?setTimeout(t,0):op.call(e,e.elements.container,"ready",t)})).then((function(){}))}function fp(e){Lh(e)&&e.then(null,(function(){}))}function dp(e){return Ph(e)?e.filter((function(t,n){return e.indexOf(t)===n})):e}function hp(e,t){return Ph(e)&&e.length?e.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e})):null}function pp(e){return!(!window||!window.CSS)&&window.CSS.supports(e)}var mp=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((function(e,t){var n=wa(t,2),i=n[0],r=n[1];return zi(zi({},e),{},Bi({},i/r,[i,r]))}),{});function gp(e){return!!(Ph(e)||Sh(e)&&e.includes(":"))&&(Ph(e)?e:e.split(":")).map(Number).every(Th)}function vp(e){if(!Ph(e)||!e.every(Th))return null;var t=wa(e,2),n=t[0],i=t[1],r=function e(t,n){return 0===n?t:e(n,t%n)}(n,i);return[n/r,i/r]}function yp(e){var t=function(e){return gp(e)?e.split(":").map(Number):null},n=t(e);if(null===n&&(n=t(this.config.ratio)),null===n&&!jh(this.embed)&&Ph(this.embed.ratio)&&(n=this.embed.ratio),null===n&&this.isHTML5){var i=this.media;n=[i.videoWidth,i.videoHeight]}return vp(n)}function bp(e){if(!this.isVideo)return{};var t=this.elements.wrapper,n=yp.call(this,e);if(!Ph(n))return{};var i=wa(vp(n),2),r=i[0],o=i[1],a=100/r*o;if(pp("aspect-ratio: ".concat(r,"/").concat(o))?t.style.aspectRatio="".concat(r,"/").concat(o):t.style.paddingBottom="".concat(a,"%"),this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){var s=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),l=(s-a)/(s/50);this.fullscreen.active?t.style.paddingBottom=null:this.media.style.transform="translateY(-".concat(l,"%)")}else this.isHTML5&&t.classList.add(this.config.classNames.videoFixedRatio);return{padding:a,ratio:n}}function wp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.05,i=e/t,r=hp(Object.keys(mp),i);return Math.abs(r-i)<=n?mp[r]:[e,t]}var kp={getSources:function(){var e=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((function(t){var n=t.getAttribute("type");return!!jh(n)||np.mime.call(e,n)})):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:kp.getSources.call(this).map((function(e){return Number(e.getAttribute("size"))})).filter(Boolean)},setup:function(){if(this.isHTML5){var e=this;e.options.speed=e.config.speed.options,jh(this.config.ratio)||bp.call(e),Object.defineProperty(e.media,"quality",{get:function(){var t=kp.getSources.call(e).find((function(t){return t.getAttribute("src")===e.source}));return t&&Number(t.getAttribute("size"))},set:function(t){if(e.quality!==t){if(e.config.quality.forced&&Ah(e.config.quality.onChange))e.config.quality.onChange(t);else{var n=kp.getSources.call(e).find((function(e){return Number(e.getAttribute("size"))===t}));if(!n)return;var i=e.media,r=i.currentTime,o=i.paused,a=i.preload,s=i.readyState,l=i.playbackRate;e.media.src=n.getAttribute("src"),("none"!==a||s)&&(e.once("loadedmetadata",(function(){e.speed=l,e.currentTime=r,o||fp(e.play())})),e.media.load())}lp.call(e,e.media,"qualitychange",!1,{quality:t})}}})}},cancelRequests:function(){this.isHTML5&&(zh(kp.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function Tp(e){return"".concat(e,"-").concat(Math.floor(1e4*Math.random()))}function Sp(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return jh(e)?e:e.toString().replace(/{(\d+)}/g,(function(e,t){return n[t].toString()}))}var Ep=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),n.toString())},Ap=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toString().replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}))};function Pp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.toString();return t=Ep(t,"-"," "),t=Ep(t,"_"," "),t=Ap(t),Ep(t," ","")}function xp(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML}var Cp={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},Op=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(jh(e)||jh(t))return"";var n=Dh(t.i18n,e);if(jh(n))return Object.keys(Cp).includes(e)?Cp[e]:"";var i={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(i).forEach((function(e){var t=wa(e,2),i=t[0],r=t[1];n=Ep(n,i,r)})),n},Ip=function(){function e(t){var n=this;va(this,e),Ud(this,"get",(function(t){if(!e.supported||!n.enabled)return null;var i=window.localStorage.getItem(n.key);if(jh(i))return null;var r=JSON.parse(i);return Sh(t)&&t.length?r[t]:r})),Ud(this,"set",(function(t){if(e.supported&&n.enabled&&kh(t)){var i=n.get();jh(i)&&(i={}),qh(i,t);try{window.localStorage.setItem(n.key,JSON.stringify(i))}catch(t){}}})),this.enabled=t.config.storage.enabled,this.key=t.config.storage.key}return ba(e,null,[{key:"supported",get:function(){try{if(!("localStorage"in window))return!1;var e="___test";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}}]),e}();function Mp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise((function(n,i){try{var r=new XMLHttpRequest;if(!("withCredentials"in r))return;r.addEventListener("load",(function(){if("text"===t)try{n(JSON.parse(r.responseText))}catch(e){n(r.responseText)}else n(r.response)})),r.addEventListener("error",(function(){throw new Error(r.status)})),r.open("GET",e,!0),r.responseType=t,r.send()}catch(e){i(e)}}))}function Lp(e,t){if(Sh(e)){var n=Sh(t),i=function(){return null!==document.getElementById(t)},r=function(e,t){e.innerHTML=t,n&&i()||document.body.insertAdjacentElement("afterbegin",e)};if(!n||!i()){var o=Ip.supported,a=document.createElement("div");if(a.setAttribute("hidden",""),n&&a.setAttribute("id",t),o){var s=window.localStorage.getItem("cache-".concat(t));if(null!==s){var l=JSON.parse(s);r(a,l.content)}}Mp(e).then((function(e){if(!jh(e)){if(o)try{window.localStorage.setItem("cache-".concat(t),JSON.stringify({content:e}))}catch(e){}r(a,e)}})).catch((function(){}))}}}var Np=function(e){return Math.trunc(e/60/60%60,10)},jp=function(e){return Math.trunc(e%60,10)};function Rp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!Th(e))return Rp(void 0,t,n);var i,r=function(e){return"0".concat(e).slice(-2)},o=Np(e),a=(i=e,Math.trunc(i/60%60,10)),s=jp(e);return o=t||o>0?"".concat(o,":"):"","".concat(n&&e>0?"-":"").concat(o).concat(r(a),":").concat(r(s))}var _p={getIconUrl:function(){var e=new URL(this.config.iconUrl,window.location),t=window.location.host?window.location.host:window.top.location.host,n=e.host!==t||Fh.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:n}},findElements:function(){try{return this.elements.controls=Zh.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:Jh.call(this,this.config.selectors.buttons.play),pause:Zh.call(this,this.config.selectors.buttons.pause),restart:Zh.call(this,this.config.selectors.buttons.restart),rewind:Zh.call(this,this.config.selectors.buttons.rewind),fastForward:Zh.call(this,this.config.selectors.buttons.fastForward),mute:Zh.call(this,this.config.selectors.buttons.mute),pip:Zh.call(this,this.config.selectors.buttons.pip),airplay:Zh.call(this,this.config.selectors.buttons.airplay),settings:Zh.call(this,this.config.selectors.buttons.settings),captions:Zh.call(this,this.config.selectors.buttons.captions),fullscreen:Zh.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=Zh.call(this,this.config.selectors.progress),this.elements.inputs={seek:Zh.call(this,this.config.selectors.inputs.seek),volume:Zh.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:Zh.call(this,this.config.selectors.display.buffer),currentTime:Zh.call(this,this.config.selectors.display.currentTime),duration:Zh.call(this,this.config.selectors.display.duration)},Ch(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon:function(e,t){var n="http://www.w3.org/2000/svg",i=_p.getIconUrl.call(this),r="".concat(i.cors?"":i.url,"#").concat(this.config.iconPrefix),o=document.createElementNS(n,"svg");Hh(o,qh(t,{"aria-hidden":"true",focusable:"false"}));var a=document.createElementNS(n,"use"),s="".concat(r,"-").concat(e);return"href"in a&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",s),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s),o.appendChild(a),o},createLabel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Op(e,this.config);return Bh("span",zi(zi({},t),{},{class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),n)},createBadge:function(e){if(jh(e))return null;var t=Bh("span",{class:this.config.classNames.menu.value});return t.appendChild(Bh("span",{class:this.config.classNames.menu.badge},e)),t},createButton:function(e,t){var n=this,i=qh({},t),r=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return(e=Pp(e)).charAt(0).toLowerCase()+e.slice(1)}(e),o={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((function(e){Object.keys(i).includes(e)&&(o[e]=i[e],delete i[e])})),"button"!==o.element||Object.keys(i).includes("type")||(i.type="button"),Object.keys(i).includes("class")?i.class.split(" ").some((function(e){return e===n.config.classNames.control}))||qh(i,{class:"".concat(i.class," ").concat(this.config.classNames.control)}):i.class=this.config.classNames.control,e){case"play":o.toggle=!0,o.label="play",o.labelPressed="pause",o.icon="play",o.iconPressed="pause";break;case"mute":o.toggle=!0,o.label="mute",o.labelPressed="unmute",o.icon="volume",o.iconPressed="muted";break;case"captions":o.toggle=!0,o.label="enableCaptions",o.labelPressed="disableCaptions",o.icon="captions-off",o.iconPressed="captions-on";break;case"fullscreen":o.toggle=!0,o.label="enterFullscreen",o.labelPressed="exitFullscreen",o.icon="enter-fullscreen",o.iconPressed="exit-fullscreen";break;case"play-large":i.class+=" ".concat(this.config.classNames.control,"--overlaid"),r="play",o.label="play",o.icon="play";break;default:jh(o.label)&&(o.label=r),jh(o.icon)&&(o.icon=e)}var a=Bh(o.element);return o.toggle?(a.appendChild(_p.createIcon.call(this,o.iconPressed,{class:"icon--pressed"})),a.appendChild(_p.createIcon.call(this,o.icon,{class:"icon--not-pressed"})),a.appendChild(_p.createLabel.call(this,o.labelPressed,{class:"label--pressed"})),a.appendChild(_p.createLabel.call(this,o.label,{class:"label--not-pressed"}))):(a.appendChild(_p.createIcon.call(this,o.icon)),a.appendChild(_p.createLabel.call(this,o.label))),qh(i,Kh(this.config.selectors.buttons[r],i)),Hh(a,i),"play"===r?(Ph(this.elements.buttons[r])||(this.elements.buttons[r]=[]),this.elements.buttons[r].push(a)):this.elements.buttons[r]=a,a},createRange:function(e,t){var n=Bh("input",qh(Kh(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":Op(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=n,_p.updateRangeFill.call(this,n),uh.setup(n),n},createProgress:function(e,t){var n=Bh("progress",qh(Kh(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){n.appendChild(Bh("span",null,"0"));var i={played:"played",buffer:"buffered"}[e],r=i?Op(i,this.config):"";n.innerText="% ".concat(r.toLowerCase())}return this.elements.display[e]=n,n},createTime:function(e,t){var n=Kh(this.config.selectors.display[e],t),i=Bh("div",qh(n,{class:"".concat(n.class?n.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":Op(e,this.config)}),"00:00");return this.elements.display[e]=i,i},bindMenuItemShortcuts:function(e,t){var n=this;op.call(this,e,"keydown keyup",(function(i){if(["Space","ArrowUp","ArrowDown","ArrowRight"].includes(i.key)&&(i.preventDefault(),i.stopPropagation(),"keydown"!==i.type)){var r,o=Qh(e,'[role="menuitemradio"]');if(!o&&["Space","ArrowRight"].includes(i.key))_p.showMenuPanel.call(n,t,!0);else"Space"!==i.key&&("ArrowDown"===i.key||o&&"ArrowRight"===i.key?(r=e.nextElementSibling,Ch(r)||(r=e.parentNode.firstElementChild)):(r=e.previousElementSibling,Ch(r)||(r=e.parentNode.lastElementChild)),ep.call(n,r,!0))}}),!1),op.call(this,e,"keyup",(function(e){"Return"===e.key&&_p.focusFirstMenuItem.call(n,null,!0)}))},createMenuItem:function(e){var t=this,n=e.value,i=e.list,r=e.type,o=e.title,a=e.badge,s=void 0===a?null:a,l=e.checked,c=void 0!==l&&l,u=Kh(this.config.selectors.inputs[r]),f=Bh("button",qh(u,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(u.class?u.class:"").trim(),"aria-checked":c,value:n})),d=Bh("span");d.innerHTML=o,Ch(s)&&d.appendChild(s),f.appendChild(d),Object.defineProperty(f,"checked",{enumerable:!0,get:function(){return"true"===f.getAttribute("aria-checked")},set:function(e){e&&Array.from(f.parentNode.children).filter((function(e){return Qh(e,'[role="menuitemradio"]')})).forEach((function(e){return e.setAttribute("aria-checked","false")})),f.setAttribute("aria-checked",e?"true":"false")}}),this.listeners.bind(f,"click keyup",(function(e){if(!Ih(e)||"Space"===e.key){switch(e.preventDefault(),e.stopPropagation(),f.checked=!0,r){case"language":t.currentTrack=Number(n);break;case"quality":t.quality=n;break;case"speed":t.speed=parseFloat(n)}_p.showMenuPanel.call(t,"home",Ih(e))}}),r,!1),_p.bindMenuItemShortcuts.call(this,f,r),i.appendChild(f)},formatTime:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Th(e)?Rp(e,Np(this.duration)>0,t):e},updateTimeDisplay:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Ch(e)&&Th(t)&&(e.innerText=_p.formatTime(t,n))},updateVolume:function(){this.supported.ui&&(Ch(this.elements.inputs.volume)&&_p.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),Ch(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ch(e)&&(e.value=t,_p.updateRangeFill.call(this,e))},updateProgress:function(e){var t=this;if(this.supported.ui&&Oh(e)){var n=0;if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":n=function(e,t){return 0===e||0===t||Number.isNaN(e)||Number.isNaN(t)?0:(e/t*100).toFixed(2)}(this.currentTime,this.duration),"timeupdate"===e.type&&_p.setRange.call(this,this.elements.inputs.seek,n);break;case"playing":case"progress":!function(e,n){var i=Th(n)?n:0,r=Ch(e)?e:t.elements.display.buffer;if(Ch(r)){r.value=i;var o=r.getElementsByTagName("span")[0];Ch(o)&&(o.childNodes[0].nodeValue=i)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(e){var t=Oh(e)?e.target:e;if(Ch(t)&&"range"===t.getAttribute("type")){if(Qh(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);var n=_p.formatTime(this.currentTime),i=_p.formatTime(this.duration),r=Op("seekLabel",this.config);t.setAttribute("aria-valuetext",r.replace("{currentTime}",n).replace("{duration}",i))}else if(Qh(t,this.config.selectors.inputs.volume)){var o=100*t.value;t.setAttribute("aria-valuenow",o),t.setAttribute("aria-valuetext","".concat(o.toFixed(1),"%"))}else t.setAttribute("aria-valuenow",t.value);Fh.isWebkit&&t.style.setProperty("--value",t.value/t.max*100+"%")}},updateSeekTooltip:function(e){var t,n;if(this.config.tooltips.seek&&Ch(this.elements.inputs.seek)&&Ch(this.elements.display.seekTooltip)&&0!==this.duration){var i=this.elements.display.seekTooltip,r="".concat(this.config.classNames.tooltip,"--visible"),o=function(e){return Gh(i,r,e)};if(this.touch)o(!1);else{var a=0,s=this.elements.progress.getBoundingClientRect();if(Oh(e))a=100/s.width*(e.pageX-s.left);else{if(!Xh(i,r))return;a=parseFloat(i.style.left,10)}a<0?a=0:a>100&&(a=100);var l=this.duration/100*a;i.innerText=_p.formatTime(l);var c=null===(t=this.config.markers)||void 0===t||null===(n=t.points)||void 0===n?void 0:n.find((function(e){return e.time===Math.round(l)}));c&&i.insertAdjacentHTML("afterbegin","".concat(c.label,"<br>")),i.style.left="".concat(a,"%"),Oh(e)&&["mouseenter","mouseleave"].includes(e.type)&&o("mouseenter"===e.type)}}},timeUpdate:function(e){var t=!Ch(this.elements.display.duration)&&this.config.invertTime;_p.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||_p.updateProgress.call(this,e)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return Yh(this.elements.display.currentTime,!0),void Yh(this.elements.progress,!0);Ch(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var e=Ch(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&_p.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&_p.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&_p.setMarkers.call(this),_p.updateSeekTooltip.call(this)}},toggleMenuButton:function(e,t){Yh(this.elements.settings.buttons[e],!t)},updateSetting:function(e,t,n){var i=this.elements.settings.panels[e],r=null,o=t;if("captions"===e)r=this.currentTrack;else{if(r=jh(n)?this[e]:n,jh(r)&&(r=this.config[e].default),!jh(this.options[e])&&!this.options[e].includes(r))return void this.debug.warn("Unsupported value of '".concat(r,"' for ").concat(e));if(!this.config[e].options.includes(r))return void this.debug.warn("Disabled value of '".concat(r,"' for ").concat(e))}if(Ch(o)||(o=i&&i.querySelector('[role="menu"]')),Ch(o)){this.elements.settings.buttons[e].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=_p.getLabel.call(this,e,r);var a=o&&o.querySelector('[value="'.concat(r,'"]'));Ch(a)&&(a.checked=!0)}},getLabel:function(e,t){switch(e){case"speed":return 1===t?Op("normal",this.config):"".concat(t,"&times;");case"quality":if(Th(t)){var n=Op("qualityLabel.".concat(t),this.config);return n.length?n:"".concat(t,"p")}return Ap(t);case"captions":return qp.getLabel.call(this);default:return null}},setQualityMenu:function(e){var t=this;if(Ch(this.elements.settings.panels.quality)){var n="quality",i=this.elements.settings.panels.quality.querySelector('[role="menu"]');Ph(e)&&(this.options.quality=dp(e).filter((function(e){return t.config.quality.options.includes(e)})));var r=!jh(this.options.quality)&&this.options.quality.length>1;if(_p.toggleMenuButton.call(this,n,r),Wh(i),_p.checkMenu.call(this),r){var o=function(e){var n=Op("qualityBadge.".concat(e),t.config);return n.length?_p.createBadge.call(t,n):null};this.options.quality.sort((function(e,n){var i=t.config.quality.options;return i.indexOf(e)>i.indexOf(n)?1:-1})).forEach((function(e){_p.createMenuItem.call(t,{value:e,list:i,type:n,title:_p.getLabel.call(t,"quality",e),badge:o(e)})})),_p.updateSetting.call(this,n,i)}}},setCaptionsMenu:function(){var e=this;if(Ch(this.elements.settings.panels.captions)){var t="captions",n=this.elements.settings.panels.captions.querySelector('[role="menu"]'),i=qp.getTracks.call(this),r=Boolean(i.length);if(_p.toggleMenuButton.call(this,t,r),Wh(n),_p.checkMenu.call(this),r){var o=i.map((function(t,i){return{value:i,checked:e.captions.toggled&&e.currentTrack===i,title:qp.getLabel.call(e,t),badge:t.language&&_p.createBadge.call(e,t.language.toUpperCase()),list:n,type:"language"}}));o.unshift({value:-1,checked:!this.captions.toggled,title:Op("disabled",this.config),list:n,type:"language"}),o.forEach(_p.createMenuItem.bind(this)),_p.updateSetting.call(this,t,n)}}},setSpeedMenu:function(){var e=this;if(Ch(this.elements.settings.panels.speed)){var t="speed",n=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((function(t){return t>=e.minimumSpeed&&t<=e.maximumSpeed}));var i=!jh(this.options.speed)&&this.options.speed.length>1;_p.toggleMenuButton.call(this,t,i),Wh(n),_p.checkMenu.call(this),i&&(this.options.speed.forEach((function(i){_p.createMenuItem.call(e,{value:i,list:n,type:t,title:_p.getLabel.call(e,"speed",i)})})),_p.updateSetting.call(this,t,n))}},checkMenu:function(){var e=this.elements.settings.buttons,t=!jh(e)&&Object.values(e).some((function(e){return!e.hidden}));Yh(this.elements.settings.menu,!t)},focusFirstMenuItem:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.elements.settings.popup.hidden){var n=e;Ch(n)||(n=Object.values(this.elements.settings.panels).find((function(e){return!e.hidden})));var i=n.querySelector('[role^="menuitem"]');ep.call(this,i,t)}},toggleMenu:function(e){var t=this.elements.settings.popup,n=this.elements.buttons.settings;if(Ch(t)&&Ch(n)){var i=t.hidden,r=i;if(Eh(e))r=e;else if(Ih(e)&&"Escape"===e.key)r=!1;else if(Oh(e)){var o=Ah(e.composedPath)?e.composedPath()[0]:e.target,a=t.contains(o);if(a||!a&&e.target!==n&&r)return}n.setAttribute("aria-expanded",r),Yh(t,!r),Gh(this.elements.container,this.config.classNames.menu.open,r),r&&Ih(e)?_p.focusFirstMenuItem.call(this,null,!0):r||i||ep.call(this,n,Ih(e))}},getMenuSize:function(e){var t=e.cloneNode(!0);t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),e.parentNode.appendChild(t);var n=t.scrollWidth,i=t.scrollHeight;return zh(t),{width:n,height:i}},showMenuPanel:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(t));if(Ch(i)){var r=i.parentNode,o=Array.from(r.children).find((function(e){return!e.hidden}));if(np.transitions&&!np.reducedMotion){r.style.width="".concat(o.scrollWidth,"px"),r.style.height="".concat(o.scrollHeight,"px");var a=_p.getMenuSize.call(this,i),s=function t(n){n.target===r&&["width","height"].includes(n.propertyName)&&(r.style.width="",r.style.height="",ap.call(e,r,Rh,t))};op.call(this,r,Rh,s),r.style.width="".concat(a.width,"px"),r.style.height="".concat(a.height,"px")}Yh(o,!0),Yh(i,!1),_p.focusFirstMenuItem.call(this,i,n)}},setDownloadUrl:function(){var e=this.elements.buttons.download;Ch(e)&&e.setAttribute("href",this.download)},create:function(e){var t=this,n=_p.bindMenuItemShortcuts,i=_p.createButton,r=_p.createProgress,o=_p.createRange,a=_p.createTime,s=_p.setQualityMenu,l=_p.setSpeedMenu,c=_p.showMenuPanel;this.elements.controls=null,Ph(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(i.call(this,"play-large"));var u=Bh("div",Kh(this.config.selectors.controls.wrapper));this.elements.controls=u;var f={class:"plyr__controls__item"};return dp(Ph(this.config.controls)?this.config.controls:[]).forEach((function(s){if("restart"===s&&u.appendChild(i.call(t,"restart",f)),"rewind"===s&&u.appendChild(i.call(t,"rewind",f)),"play"===s&&u.appendChild(i.call(t,"play",f)),"fast-forward"===s&&u.appendChild(i.call(t,"fast-forward",f)),"progress"===s){var l=Bh("div",{class:"".concat(f.class," plyr__progress__container")}),d=Bh("div",Kh(t.config.selectors.progress));if(d.appendChild(o.call(t,"seek",{id:"plyr-seek-".concat(e.id)})),d.appendChild(r.call(t,"buffer")),t.config.tooltips.seek){var h=Bh("span",{class:t.config.classNames.tooltip},"00:00");d.appendChild(h),t.elements.display.seekTooltip=h}t.elements.progress=d,l.appendChild(t.elements.progress),u.appendChild(l)}if("current-time"===s&&u.appendChild(a.call(t,"currentTime",f)),"duration"===s&&u.appendChild(a.call(t,"duration",f)),"mute"===s||"volume"===s){var p=t.elements.volume;if(Ch(p)&&u.contains(p)||(p=Bh("div",qh({},f,{class:"".concat(f.class," plyr__volume").trim()})),t.elements.volume=p,u.appendChild(p)),"mute"===s&&p.appendChild(i.call(t,"mute")),"volume"===s&&!Fh.isIos){var m={max:1,step:.05,value:t.config.volume};p.appendChild(o.call(t,"volume",qh(m,{id:"plyr-volume-".concat(e.id)})))}}if("captions"===s&&u.appendChild(i.call(t,"captions",f)),"settings"===s&&!jh(t.config.settings)){var g=Bh("div",qh({},f,{class:"".concat(f.class," plyr__menu").trim(),hidden:""}));g.appendChild(i.call(t,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(e.id),"aria-expanded":!1}));var v=Bh("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(e.id),hidden:""}),y=Bh("div"),b=Bh("div",{id:"plyr-settings-".concat(e.id,"-home")}),w=Bh("div",{role:"menu"});b.appendChild(w),y.appendChild(b),t.elements.settings.panels.home=b,t.config.settings.forEach((function(i){var r=Bh("button",qh(Kh(t.config.selectors.buttons.settings),{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));n.call(t,r,i),op.call(t,r,"click",(function(){c.call(t,i,!1)}));var o=Bh("span",null,Op(i,t.config)),a=Bh("span",{class:t.config.classNames.menu.value});a.innerHTML=e[i],o.appendChild(a),r.appendChild(o),w.appendChild(r);var s=Bh("div",{id:"plyr-settings-".concat(e.id,"-").concat(i),hidden:""}),l=Bh("button",{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--back")});l.appendChild(Bh("span",{"aria-hidden":!0},Op(i,t.config))),l.appendChild(Bh("span",{class:t.config.classNames.hidden},Op("menuBack",t.config))),op.call(t,s,"keydown",(function(e){"ArrowLeft"===e.key&&(e.preventDefault(),e.stopPropagation(),c.call(t,"home",!0))}),!1),op.call(t,l,"click",(function(){c.call(t,"home",!1)})),s.appendChild(l),s.appendChild(Bh("div",{role:"menu"})),y.appendChild(s),t.elements.settings.buttons[i]=r,t.elements.settings.panels[i]=s})),v.appendChild(y),g.appendChild(v),u.appendChild(g),t.elements.settings.popup=v,t.elements.settings.menu=g}if("pip"===s&&np.pip&&u.appendChild(i.call(t,"pip",f)),"airplay"===s&&np.airplay&&u.appendChild(i.call(t,"airplay",f)),"download"===s){var k=qh({},f,{element:"a",href:t.download,target:"_blank"});t.isHTML5&&(k.download="");var T=t.config.urls.download;!Nh(T)&&t.isEmbed&&qh(k,{icon:"logo-".concat(t.provider),label:t.provider}),u.appendChild(i.call(t,"download",k))}"fullscreen"===s&&u.appendChild(i.call(t,"fullscreen",f))})),this.isHTML5&&s.call(this,kp.getQualityOptions.call(this)),l.call(this),u},inject:function(){var e=this;if(this.config.loadSprite){var t=_p.getIconUrl.call(this);t.cors&&Lp(t.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var n=null;this.elements.controls=null;var i,r={id:this.id,seektime:this.config.seekTime,title:this.config.title},o=!0;if(Ah(this.config.controls)&&(this.config.controls=this.config.controls.call(this,r)),this.config.controls||(this.config.controls=[]),Ch(this.config.controls)||Sh(this.config.controls)?n=this.config.controls:(n=_p.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:qp.getLabel.call(this)}),o=!1),o&&Sh(this.config.controls)&&(n=function(e){var t=e;return Object.entries(r).forEach((function(e){var n=wa(e,2),i=n[0],r=n[1];t=Ep(t,"{".concat(i,"}"),r)})),t}(n)),Sh(this.config.selectors.controls.container)&&(i=document.querySelector(this.config.selectors.controls.container)),Ch(i)||(i=this.elements.container),i[Ch(n)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",n),Ch(this.elements.controls)||_p.findElements.call(this),!jh(this.elements.buttons)){var a=function(t){var n=e.config.classNames.controlPressed;Object.defineProperty(t,"pressed",{enumerable:!0,get:function(){return Xh(t,n)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Gh(t,n,e)}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(e){Ph(e)||xh(e)?Array.from(e).filter(Boolean).forEach(a):a(e)}))}if(Fh.isEdge&&_h(i),this.config.tooltips.controls){var s=this.config,l=s.classNames,c=s.selectors,u="".concat(c.controls.wrapper," ").concat(c.labels," .").concat(l.hidden),f=Jh.call(this,u);Array.from(f).forEach((function(t){Gh(t,e.config.classNames.hidden,!1),Gh(t,e.config.classNames.tooltip,!0)}))}},setMediaMetadata:function(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch(e){}},setMarkers:function(){var e,t,n=this;if(this.duration&&!this.elements.markers){var i=null===(e=this.config.markers)||void 0===e||null===(t=e.points)||void 0===t?void 0:t.filter((function(e){var t=e.time;return t>0&&t<n.duration}));if(null!=i&&i.length){var r=document.createDocumentFragment(),o=document.createDocumentFragment(),a=null,s="".concat(this.config.classNames.tooltip,"--visible"),l=function(e){return Gh(a,s,e)};i.forEach((function(e){var t=Bh("span",{class:n.config.classNames.marker},""),i=e.time/n.duration*100+"%";a&&(t.addEventListener("mouseenter",(function(){e.label||(a.style.left=i,a.innerHTML=e.label,l(!0))})),t.addEventListener("mouseleave",(function(){l(!1)}))),t.addEventListener("click",(function(){n.currentTime=e.time})),t.style.left=i,o.appendChild(t)})),r.appendChild(o),this.config.tooltips.seek||(a=Bh("span",{class:this.config.classNames.tooltip},""),r.appendChild(a)),this.elements.markers={points:o,tip:a},this.elements.progress.appendChild(r)}}}};function Fp(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e;if(t){var i=document.createElement("a");i.href=n,n=i.href}try{return new URL(n)}catch(e){return null}}function Dp(e){var t=new URLSearchParams;return kh(e)&&Object.entries(e).forEach((function(e){var n=wa(e,2),i=n[0],r=n[1];t.set(i,r)})),t}var qp={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!np.textTracks)Ph(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&_p.setCaptionsMenu.call(this);else{if(Ch(this.elements.captions)||(this.elements.captions=Bh("div",Kh(this.config.selectors.captions)),function(e,t){Ch(e)&&Ch(t)&&t.parentNode.insertBefore(e,t.nextSibling)}(this.elements.captions,this.elements.wrapper)),Fh.isIE&&window.URL){var e=this.media.querySelectorAll("track");Array.from(e).forEach((function(e){var t=e.getAttribute("src"),n=Fp(t);null!==n&&n.hostname!==window.location.href.hostname&&["http:","https:"].includes(n.protocol)&&Mp(t,"blob").then((function(t){e.setAttribute("src",window.URL.createObjectURL(t))})).catch((function(){zh(e)}))}))}var t=dp((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((function(e){return e.split("-")[0]}))),n=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===n&&(n=wa(t,1)[0]);var i=this.storage.get("captions");if(Eh(i)||(i=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:i,language:n,languages:t}),this.isHTML5){var r=this.config.captions.update?"addtrack removetrack":"removetrack";op.call(this,this.media.textTracks,r,qp.update.bind(this))}setTimeout(qp.update.bind(this),0)}},update:function(){var e=this,t=qp.getTracks.call(this,!0),n=this.captions,i=n.active,r=n.language,o=n.meta,a=n.currentTrackNode,s=Boolean(t.find((function(e){return e.language===r})));this.isHTML5&&this.isVideo&&t.filter((function(e){return!o.get(e)})).forEach((function(t){e.debug.log("Track added",t),o.set(t,{default:"showing"===t.mode}),"showing"===t.mode&&(t.mode="hidden"),op.call(e,t,"cuechange",(function(){return qp.updateCues.call(e)}))})),(s&&this.language!==r||!t.includes(a))&&(qp.setLanguage.call(this,r),qp.toggle.call(this,i&&s)),this.elements&&Gh(this.elements.container,this.config.classNames.captions.enabled,!jh(t)),Ph(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&_p.setCaptionsMenu.call(this)},toggle:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var i=this.captions.toggled,r=this.config.classNames.captions.active,o=wh(e)?!i:e;if(o!==i){if(n||(this.captions.active=o,this.storage.set({captions:o})),!this.language&&o&&!n){var a=qp.getTracks.call(this),s=qp.findTrack.call(this,[this.captions.language].concat(ga(this.captions.languages)),!0);return this.captions.language=s.language,void qp.set.call(this,a.indexOf(s))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=o),Gh(this.elements.container,r,o),this.captions.toggled=o,_p.updateSetting.call(this,"captions"),lp.call(this,this.media,o?"captionsenabled":"captionsdisabled")}setTimeout((function(){o&&t.captions.toggled&&(t.captions.currentTrackNode.mode="hidden")}))}},set:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=qp.getTracks.call(this);if(-1!==e)if(Th(e))if(e in n){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;var i=n[e],r=i||{},o=r.language;this.captions.currentTrackNode=i,_p.updateSetting.call(this,"captions"),t||(this.captions.language=o,this.storage.set({language:o})),this.isVimeo&&this.embed.enableTextTrack(o),lp.call(this,this.media,"languagechange")}qp.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&qp.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else qp.toggle.call(this,!1,t)},setLanguage:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(Sh(e)){var n=e.toLowerCase();this.captions.language=n;var i=qp.getTracks.call(this),r=qp.findTrack.call(this,[n]);qp.set.call(this,i.indexOf(r),t)}else this.debug.warn("Invalid language argument",e)},getTracks:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).filter((function(n){return!e.isHTML5||t||e.captions.meta.has(n)})).filter((function(e){return["captions","subtitles"].includes(e.kind)}))},findTrack:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=qp.getTracks.call(this),o=function(e){return Number((n.captions.meta.get(e)||{}).default)},a=Array.from(r).sort((function(e,t){return o(t)-o(e)}));return e.every((function(e){return t=a.find((function(t){return t.language===e})),!t})),t||(i?a[0]:void 0)},getCurrentTrack:function(){return qp.getTracks.call(this)[this.currentTrack]},getLabel:function(e){var t=e;return!Mh(t)&&np.textTracks&&this.captions.toggled&&(t=qp.getCurrentTrack.call(this)),Mh(t)?jh(t.label)?jh(t.language)?Op("enabled",this.config):e.language.toUpperCase():t.label:Op("disabled",this.config)},updateCues:function(e){if(this.supported.ui)if(Ch(this.elements.captions))if(wh(e)||Array.isArray(e)){var t=e;if(!t){var n=qp.getCurrentTrack.call(this);t=Array.from((n||{}).activeCues||[]).map((function(e){return e.getCueAsHTML()})).map(xp)}var i=t.map((function(e){return e.trim()})).join("\n");if(i!==this.elements.captions.innerHTML){Wh(this.elements.captions);var r=Bh("span",Kh(this.config.selectors.caption));r.innerHTML=i,this.elements.captions.appendChild(r),lp.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",e);else this.debug.warn("No captions element to render to")}},Up={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.7.2/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},Hp="picture-in-picture",Bp="inline",Vp={html5:"html5",youtube:"youtube",vimeo:"vimeo"},zp="audio",Wp="video";var $p=function(){},Kp=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];va(this,e),this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}return ba(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):$p}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):$p}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):$p}}]),e}(),Yp=function(){function e(t){var n=this;va(this,e),Ud(this,"onChange",(function(){if(n.enabled){var e=n.player.elements.buttons.fullscreen;Ch(e)&&(e.pressed=n.active);var t=n.target===n.player.media?n.target:n.player.elements.container;lp.call(n.player,t,n.active?"enterfullscreen":"exitfullscreen",!0)}})),Ud(this,"toggleFallback",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e?n.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(n.scrollPosition.x,n.scrollPosition.y),document.body.style.overflow=e?"hidden":"",Gh(n.target,n.player.config.classNames.fullscreen.fallback,e),Fh.isIos){var t=document.head.querySelector('meta[name="viewport"]'),i="viewport-fit=cover";t||(t=document.createElement("meta")).setAttribute("name","viewport");var r=Sh(t.content)&&t.content.includes(i);e?(n.cleanupViewport=!r,r||(t.content+=",".concat(i))):n.cleanupViewport&&(t.content=t.content.split(",").filter((function(e){return e.trim()!==i})).join(","))}n.onChange()})),Ud(this,"trapFocus",(function(e){if(!Fh.isIos&&n.active&&"Tab"===e.key){var t=document.activeElement,i=Jh.call(n.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),r=wa(i,1)[0],o=i[i.length-1];t!==o||e.shiftKey?t===r&&e.shiftKey&&(o.focus(),e.preventDefault()):(r.focus(),e.preventDefault())}})),Ud(this,"update",(function(){var t;n.enabled?(t=n.forceFallback?"Fallback (forced)":e.native?"Native":"Fallback",n.player.debug.log("".concat(t," fullscreen enabled"))):n.player.debug.log("Fullscreen not supported and fallback disabled");Gh(n.player.elements.container,n.player.config.classNames.fullscreen.enabled,n.enabled)})),Ud(this,"enter",(function(){n.enabled&&(Fh.isIos&&n.player.config.fullscreen.iosNative?n.player.isVimeo?n.player.embed.requestFullscreen():n.target.webkitEnterFullscreen():!e.native||n.forceFallback?n.toggleFallback(!0):n.prefix?jh(n.prefix)||n.target["".concat(n.prefix,"Request").concat(n.property)]():n.target.requestFullscreen({navigationUI:"hide"}))})),Ud(this,"exit",(function(){if(n.enabled)if(Fh.isIos&&n.player.config.fullscreen.iosNative)n.target.webkitExitFullscreen(),fp(n.player.play());else if(!e.native||n.forceFallback)n.toggleFallback(!1);else if(n.prefix){if(!jh(n.prefix)){var t="moz"===n.prefix?"Cancel":"Exit";document["".concat(n.prefix).concat(t).concat(n.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)})),Ud(this,"toggle",(function(){n.active?n.exit():n.enter()})),this.player=t,this.prefix=e.prefix,this.property=e.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===t.config.fullscreen.fallback,this.player.elements.fullscreen=t.config.fullscreen.container&&function(e,t){return(Element.prototype.closest||function(){var e=this;do{if(Qh.matches(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}).call(e,t)}(this.player.elements.container,t.config.fullscreen.container),op.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){n.onChange()})),op.call(this.player,this.player.elements.container,"dblclick",(function(e){Ch(n.player.elements.controls)&&n.player.elements.controls.contains(e.target)||n.player.listeners.proxy(e,n.toggle,"fullscreen")})),op.call(this,this.player.elements.container,"keydown",(function(e){return n.trapFocus(e)})),this.update()}return ba(e,[{key:"usingNative",get:function(){return e.native&&!this.forceFallback}},{key:"enabled",get:function(){return(e.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){if(!this.enabled)return!1;if(!e.native||this.forceFallback)return Xh(this.target,this.player.config.classNames.fullscreen.fallback);var t=this.prefix?this.target.getRootNode()["".concat(this.prefix).concat(this.property,"Element")]:this.target.getRootNode().fullscreenElement;return t&&t.shadowRoot?t===this.target.getRootNode().host:t===this.target}},{key:"target",get:function(){return Fh.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(Ah(document.exitFullscreen))return"";var e="";return["webkit","moz","ms"].some((function(t){return!(!Ah(document["".concat(t,"ExitFullscreen")])&&!Ah(document["".concat(t,"CancelFullScreen")])||(e=t,0))})),e}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),e}();function Gp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(n,i){var r=new Image,o=function(){delete r.onload,delete r.onerror,(r.naturalWidth>=t?n:i)(r)};Object.assign(r,{onload:o,onerror:o,src:e})}))}var Xp={addStyleHook:function(){Gh(this.elements.container,this.config.selectors.container.replace(".",""),!0),Gh(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var e=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void Xp.toggleNativeControls.call(this,!0);Ch(this.elements.controls)||(_p.inject.call(this),this.listeners.controls()),Xp.toggleNativeControls.call(this),this.isHTML5&&qp.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,_p.updateVolume.call(this),_p.timeUpdate.call(this),_p.durationUpdate.call(this),Xp.checkPlaying.call(this),Gh(this.elements.container,this.config.classNames.pip.supported,np.pip&&this.isHTML5&&this.isVideo),Gh(this.elements.container,this.config.classNames.airplay.supported,np.airplay&&this.isHTML5),Gh(this.elements.container,this.config.classNames.isIos,Fh.isIos),Gh(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){lp.call(e,e.media,"ready")}),0),Xp.setTitle.call(this),this.poster&&Xp.setPoster.call(this,this.poster,!1).catch((function(){})),this.config.duration&&_p.durationUpdate.call(this),this.config.mediaMetadata&&_p.setMediaMetadata.call(this)},setTitle:function(){var e=Op("play",this.config);if(Sh(this.config.title)&&!jh(this.config.title)&&(e+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach((function(t){t.setAttribute("aria-label",e)})),this.isEmbed){var t=Zh.call(this,"iframe");if(!Ch(t))return;var n=jh(this.config.title)?"video":this.config.title,i=Op("frameTitle",this.config);t.setAttribute("title",i.replace("{title}",n))}},togglePoster:function(e){Gh(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),up.call(this).then((function(){return Gp(e)})).catch((function(n){throw e===t.poster&&Xp.togglePoster.call(t,!1),n})).then((function(){if(e!==t.poster)throw new Error("setPoster cancelled by later call to setPoster")})).then((function(){return Object.assign(t.elements.poster.style,{backgroundImage:"url('".concat(e,"')"),backgroundSize:""}),Xp.togglePoster.call(t,!0),e})))},checkPlaying:function(e){var t=this;Gh(this.elements.container,this.config.classNames.playing,this.playing),Gh(this.elements.container,this.config.classNames.paused,this.paused),Gh(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((function(e){Object.assign(e,{pressed:t.playing}),e.setAttribute("aria-label",Op(t.playing?"pause":"play",t.config))})),Oh(e)&&"timeupdate"===e.type||Xp.toggleControls.call(this)},checkLoading:function(e){var t=this;this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((function(){Gh(t.elements.container,t.config.classNames.loading,t.loading),Xp.toggleControls.call(t)}),this.loading?250:0)},toggleControls:function(e){var t=this.elements.controls;if(t&&this.config.hideControls){var n=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(e||this.loading||this.paused||t.pressed||t.hover||n))}},migrateStyles:function(){var e=this;Object.values(zi({},this.media.style)).filter((function(e){return!jh(e)&&Sh(e)&&e.startsWith("--plyr")})).forEach((function(t){e.elements.container.style.setProperty(t,e.media.style.getPropertyValue(t)),e.media.style.removeProperty(t)})),jh(this.media.style)&&this.media.removeAttribute("style")}},Qp=function(){function e(t){var n=this;va(this,e),Ud(this,"firstTouch",(function(){var e=n.player,t=e.elements;e.touch=!0,Gh(t.container,e.config.classNames.isTouch,!0)})),Ud(this,"setTabFocus",(function(e){var t=n.player,i=t.elements,r=e.key,o=e.type,a=e.timeStamp;if(clearTimeout(n.focusTimer),"keydown"!==o||"Tab"===r){"keydown"===o&&(n.lastKeyDown=a);var s=a-n.lastKeyDown<=20;("focus"!==o||s)&&(function(){var e=t.config.classNames.tabFocus;Gh(Jh.call(t,".".concat(e)),e,!1)}(),"focusout"!==o&&(n.focusTimer=setTimeout((function(){var e=document.activeElement;i.container.contains(e)&&Gh(document.activeElement,t.config.classNames.tabFocus,!0)}),10)))}})),Ud(this,"global",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=n.player;t.config.keyboard.global&&rp.call(t,window,"keydown keyup",n.handleKey,e,!1),rp.call(t,document.body,"click",n.toggleMenu,e),sp.call(t,document.body,"touchstart",n.firstTouch),rp.call(t,document.body,"keydown focus blur focusout",n.setTabFocus,e,!1,!0)})),Ud(this,"container",(function(){var e=n.player,t=e.config,i=e.elements,r=e.timers;!t.keyboard.global&&t.keyboard.focused&&op.call(e,i.container,"keydown keyup",n.handleKey,!1),op.call(e,i.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(function(t){var n=i.controls;n&&"enterfullscreen"===t.type&&(n.pressed=!1,n.hover=!1);var o=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(Xp.toggleControls.call(e,!0),o=e.touch?3e3:2e3),clearTimeout(r.controls),r.controls=setTimeout((function(){return Xp.toggleControls.call(e,!1)}),o)}));var o=function(){if(e.isVimeo&&!e.config.vimeo.premium){var t=i.wrapper,n=e.fullscreen.active,r=wa(yp.call(e),2),o=r[0],a=r[1],s=pp("aspect-ratio: ".concat(o," / ").concat(a));if(n){var l=wa([Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],2),c=l[0],u=l[1],f=c/u>o/a;s?(t.style.width=f?"auto":"100%",t.style.height=f?"100%":"auto"):(t.style.maxWidth=f?u/a*o+"px":null,t.style.margin=f?"0 auto":null)}else s?(t.style.width=null,t.style.height=null):(t.style.maxWidth=null,t.style.margin=null)}},a=function(){clearTimeout(r.resized),r.resized=setTimeout(o,50)};op.call(e,i.container,"enterfullscreen exitfullscreen",(function(t){e.fullscreen.target===i.container&&(!e.isEmbed&&jh(e.config.ratio)||(o(),("enterfullscreen"===t.type?op:ap).call(e,window,"resize",a)))}))})),Ud(this,"media",(function(){var e=n.player,t=e.elements;if(op.call(e,e.media,"timeupdate seeking seeked",(function(t){return _p.timeUpdate.call(e,t)})),op.call(e,e.media,"durationchange loadeddata loadedmetadata",(function(t){return _p.durationUpdate.call(e,t)})),op.call(e,e.media,"ended",(function(){e.isHTML5&&e.isVideo&&e.config.resetOnEnd&&(e.restart(),e.pause())})),op.call(e,e.media,"progress playing seeking seeked",(function(t){return _p.updateProgress.call(e,t)})),op.call(e,e.media,"volumechange",(function(t){return _p.updateVolume.call(e,t)})),op.call(e,e.media,"playing play pause ended emptied timeupdate",(function(t){return Xp.checkPlaying.call(e,t)})),op.call(e,e.media,"waiting canplay seeked playing",(function(t){return Xp.checkLoading.call(e,t)})),e.supported.ui&&e.config.clickToPlay&&!e.isAudio){var i=Zh.call(e,".".concat(e.config.classNames.video));if(!Ch(i))return;op.call(e,t.container,"click",(function(r){([t.container,i].includes(r.target)||i.contains(r.target))&&(e.touch&&e.config.hideControls||(e.ended?(n.proxy(r,e.restart,"restart"),n.proxy(r,(function(){fp(e.play())}),"play")):n.proxy(r,(function(){fp(e.togglePlay())}),"play")))}))}e.supported.ui&&e.config.disableContextMenu&&op.call(e,t.wrapper,"contextmenu",(function(e){e.preventDefault()}),!1),op.call(e,e.media,"volumechange",(function(){e.storage.set({volume:e.volume,muted:e.muted})})),op.call(e,e.media,"ratechange",(function(){_p.updateSetting.call(e,"speed"),e.storage.set({speed:e.speed})})),op.call(e,e.media,"qualitychange",(function(t){_p.updateSetting.call(e,"quality",null,t.detail.quality)})),op.call(e,e.media,"ready qualitychange",(function(){_p.setDownloadUrl.call(e)}));var r=e.config.events.concat(["keyup","keydown"]).join(" ");op.call(e,e.media,r,(function(n){var i=n.detail,r=void 0===i?{}:i;"error"===n.type&&(r=e.media.error),lp.call(e,t.container,n.type,!0,r)}))})),Ud(this,"proxy",(function(e,t,i){var r=n.player,o=r.config.listeners[i],a=!0;Ah(o)&&(a=o.call(r,e)),!1!==a&&Ah(t)&&t.call(r,e)})),Ud(this,"bind",(function(e,t,i,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=n.player,s=a.config.listeners[r],l=Ah(s);op.call(a,e,t,(function(e){return n.proxy(e,i,r)}),o&&!l)})),Ud(this,"controls",(function(){var e=n.player,t=e.elements,i=Fh.isIE?"change":"input";if(t.buttons.play&&Array.from(t.buttons.play).forEach((function(t){n.bind(t,"click",(function(){fp(e.togglePlay())}),"play")})),n.bind(t.buttons.restart,"click",e.restart,"restart"),n.bind(t.buttons.rewind,"click",(function(){e.lastSeekTime=Date.now(),e.rewind()}),"rewind"),n.bind(t.buttons.fastForward,"click",(function(){e.lastSeekTime=Date.now(),e.forward()}),"fastForward"),n.bind(t.buttons.mute,"click",(function(){e.muted=!e.muted}),"mute"),n.bind(t.buttons.captions,"click",(function(){return e.toggleCaptions()})),n.bind(t.buttons.download,"click",(function(){lp.call(e,e.media,"download")}),"download"),n.bind(t.buttons.fullscreen,"click",(function(){e.fullscreen.toggle()}),"fullscreen"),n.bind(t.buttons.pip,"click",(function(){e.pip="toggle"}),"pip"),n.bind(t.buttons.airplay,"click",e.airplay,"airplay"),n.bind(t.buttons.settings,"click",(function(t){t.stopPropagation(),t.preventDefault(),_p.toggleMenu.call(e,t)}),null,!1),n.bind(t.buttons.settings,"keyup",(function(t){["Space","Enter"].includes(t.key)&&("Enter"!==t.key?(t.preventDefault(),t.stopPropagation(),_p.toggleMenu.call(e,t)):_p.focusFirstMenuItem.call(e,null,!0))}),null,!1),n.bind(t.settings.menu,"keydown",(function(t){"Escape"===t.key&&_p.toggleMenu.call(e,t)})),n.bind(t.inputs.seek,"mousedown mousemove",(function(e){var n=t.progress.getBoundingClientRect(),i=100/n.width*(e.pageX-n.left);e.currentTarget.setAttribute("seek-value",i)})),n.bind(t.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(function(t){var n=t.currentTarget,i="play-on-seeked";if(!Ih(t)||["ArrowLeft","ArrowRight"].includes(t.key)){e.lastSeekTime=Date.now();var r=n.hasAttribute(i),o=["mouseup","touchend","keyup"].includes(t.type);r&&o?(n.removeAttribute(i),fp(e.play())):!o&&e.playing&&(n.setAttribute(i,""),e.pause())}})),Fh.isIos){var r=Jh.call(e,'input[type="range"]');Array.from(r).forEach((function(e){return n.bind(e,i,(function(e){return _h(e.target)}))}))}n.bind(t.inputs.seek,i,(function(t){var n=t.currentTarget,i=n.getAttribute("seek-value");jh(i)&&(i=n.value),n.removeAttribute("seek-value"),e.currentTime=i/n.max*e.duration}),"seek"),n.bind(t.progress,"mouseenter mouseleave mousemove",(function(t){return _p.updateSeekTooltip.call(e,t)})),n.bind(t.progress,"mousemove touchmove",(function(t){var n=e.previewThumbnails;n&&n.loaded&&n.startMove(t)})),n.bind(t.progress,"mouseleave touchend click",(function(){var t=e.previewThumbnails;t&&t.loaded&&t.endMove(!1,!0)})),n.bind(t.progress,"mousedown touchstart",(function(t){var n=e.previewThumbnails;n&&n.loaded&&n.startScrubbing(t)})),n.bind(t.progress,"mouseup touchend",(function(t){var n=e.previewThumbnails;n&&n.loaded&&n.endScrubbing(t)})),Fh.isWebkit&&Array.from(Jh.call(e,'input[type="range"]')).forEach((function(t){n.bind(t,"input",(function(t){return _p.updateRangeFill.call(e,t.target)}))})),e.config.toggleInvert&&!Ch(t.display.duration)&&n.bind(t.display.currentTime,"click",(function(){0!==e.currentTime&&(e.config.invertTime=!e.config.invertTime,_p.timeUpdate.call(e))})),n.bind(t.inputs.volume,i,(function(t){e.volume=t.target.value}),"volume"),n.bind(t.controls,"mouseenter mouseleave",(function(n){t.controls.hover=!e.touch&&"mouseenter"===n.type})),t.fullscreen&&Array.from(t.fullscreen.children).filter((function(e){return!e.contains(t.container)})).forEach((function(i){n.bind(i,"mouseenter mouseleave",(function(n){t.controls&&(t.controls.hover=!e.touch&&"mouseenter"===n.type)}))})),n.bind(t.controls,"mousedown mouseup touchstart touchend touchcancel",(function(e){t.controls.pressed=["mousedown","touchstart"].includes(e.type)})),n.bind(t.controls,"focusin",(function(){var i=e.config,r=e.timers;Gh(t.controls,i.classNames.noTransition,!0),Xp.toggleControls.call(e,!0),setTimeout((function(){Gh(t.controls,i.classNames.noTransition,!1)}),0);var o=n.touch?3e3:4e3;clearTimeout(r.controls),r.controls=setTimeout((function(){return Xp.toggleControls.call(e,!1)}),o)})),n.bind(t.inputs.volume,"wheel",(function(t){var n=t.webkitDirectionInvertedFromDevice,i=[t.deltaX,-t.deltaY].map((function(e){return n?-e:e})),r=wa(i,2),o=r[0],a=r[1],s=Math.sign(Math.abs(o)>Math.abs(a)?o:a);e.increaseVolume(s/50);var l=e.media.volume;(1===s&&l<1||-1===s&&l>0)&&t.preventDefault()}),"volume",!1)})),this.player=t,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}return ba(e,[{key:"handleKey",value:function(e){var t,n=this.player,i=n.elements,r=e.key,o=e.type,a=e.altKey,s=e.ctrlKey,l=e.metaKey,c=e.shiftKey,u="keydown"===o,f=u&&r===this.lastKey;if(!(a||s||l||c)&&r)if(u){var d=document.activeElement;if(Ch(d)){var h=n.config.selectors.editable;if(d!==i.inputs.seek&&Qh(d,h))return;if("Space"===e.key&&Qh(d,'button, [role^="menuitem"]'))return}switch(["Space","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(r)&&(e.preventDefault(),e.stopPropagation()),r){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":f||(t=parseInt(r,10),n.currentTime=n.duration/10*t);break;case"Space":case"k":f||fp(n.togglePlay());break;case"ArrowUp":n.increaseVolume(.1);break;case"ArrowDown":n.decreaseVolume(.1);break;case"m":f||(n.muted=!n.muted);break;case"ArrowRight":n.forward();break;case"ArrowLeft":n.rewind();break;case"f":n.fullscreen.toggle();break;case"c":f||n.toggleCaptions();break;case"l":n.loop=!n.loop}"Escape"===r&&!n.fullscreen.usingNative&&n.fullscreen.active&&n.fullscreen.toggle(),this.lastKey=r}else this.lastKey=null}},{key:"toggleMenu",value:function(e){_p.toggleMenu.call(this.player,e)}}]),e}();var Jp=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports=function(){var e=function(){},t={},n={},i={};function r(e,t){if(e){var r=i[e];if(n[e]=t,r)for(;r.length;)r[0](e,t),r.splice(0,1)}}function o(t,n){t.call&&(t={success:t}),n.length?(t.error||e)(n):(t.success||e)(t)}function a(t,n,i,r){var o,s,l=document,c=i.async,u=(i.numRetries||0)+1,f=i.before||e,d=t.replace(/[\?|#].*$/,""),h=t.replace(/^(css|img)!/,"");r=r||0,/(^css!|\.css$)/.test(d)?((s=l.createElement("link")).rel="stylesheet",s.href=h,(o="hideFocus"in s)&&s.relList&&(o=0,s.rel="preload",s.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(d)?(s=l.createElement("img")).src=h:((s=l.createElement("script")).src=t,s.async=void 0===c||c),s.onload=s.onerror=s.onbeforeload=function(e){var l=e.type[0];if(o)try{s.sheet.cssText.length||(l="e")}catch(e){18!=e.code&&(l="e")}if("e"==l){if((r+=1)<u)return a(t,n,i,r)}else if("preload"==s.rel&&"style"==s.as)return s.rel="stylesheet";n(t,l,e.defaultPrevented)},!1!==f(t,s)&&l.head.appendChild(s)}function s(e,t,n){var i,r,o=(e=e.push?e:[e]).length,s=o,l=[];for(i=function(e,n,i){if("e"==n&&l.push(e),"b"==n){if(!i)return;l.push(e)}--o||t(l)},r=0;r<s;r++)a(e[r],i,n)}function l(e,n,i){var a,l;if(n&&n.trim&&(a=n),l=(a?i:n)||{},a){if(a in t)throw"LoadJS";t[a]=!0}function c(t,n){s(e,(function(e){o(l,e),t&&o({success:t,error:n},e),r(a,e)}),l)}if(l.returnPromise)return new Promise(c);c()}return l.ready=function(e,t){return function(e,t){e=e.push?e:[e];var r,o,a,s=[],l=e.length,c=l;for(r=function(e,n){n.length&&s.push(e),--c||t(s)};l--;)o=e[l],(a=n[o])?r(o,a):(i[o]=i[o]||[]).push(r)}(e,(function(e){o(t,e)})),l},l.done=function(e){r(e,[])},l.reset=function(){t={},n={},i={}},l.isDefined=function(e){return e in t},l}()}));function Zp(e){return new Promise((function(t,n){Jp(e,{success:t,error:n})}))}function em(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,lp.call(this,this.media,e?"play":"pause"))}var tm={setup:function(){var e=this;Gh(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,bp.call(e),kh(window.Vimeo)?tm.ready.call(e):Zp(e.config.urls.vimeo.sdk).then((function(){tm.ready.call(e)})).catch((function(t){e.debug.warn("Vimeo SDK (player.js) failed to load",t)}))},ready:function(){var e=this,t=this,n=t.config.vimeo,i=n.premium,r=n.referrerPolicy,o=Qi(n,qd),a=t.media.getAttribute("src"),s="";jh(a)?(a=t.media.getAttribute(t.config.attributes.embed.id),s=t.media.getAttribute(t.config.attributes.embed.hash)):s=function(e){var t=e.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return t&&5===t.length?t[4]:null}(a);var l=s?{h:s}:{};i&&Object.assign(o,{controls:!1,sidedock:!1});var c=Dp(zi(zi({loop:t.config.loop.active,autoplay:t.autoplay,muted:t.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},l),o)),u=function(e){return jh(e)?null:Th(Number(e))?e:e.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:e}(a),f=Bh("iframe"),d=Sp(t.config.urls.vimeo.iframe,u,c);if(f.setAttribute("src",d),f.setAttribute("allowfullscreen",""),f.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),jh(r)||f.setAttribute("referrerPolicy",r),i||!n.customControls)f.setAttribute("data-poster",t.poster),t.media=$h(f,t.media);else{var h=Bh("div",{class:t.config.classNames.embedContainer,"data-poster":t.poster});h.appendChild(f),t.media=$h(h,t.media)}n.customControls||Mp(Sp(t.config.urls.vimeo.api,d)).then((function(e){!jh(e)&&e.thumbnail_url&&Xp.setPoster.call(t,e.thumbnail_url).catch((function(){}))})),t.embed=new window.Vimeo.Player(f,{autopause:t.config.autopause,muted:t.muted}),t.media.paused=!0,t.media.currentTime=0,t.supported.ui&&t.embed.disableTextTrack(),t.media.play=function(){return em.call(t,!0),t.embed.play()},t.media.pause=function(){return em.call(t,!1),t.embed.pause()},t.media.stop=function(){t.pause(),t.currentTime=0};var p=t.media.currentTime;Object.defineProperty(t.media,"currentTime",{get:function(){return p},set:function(e){var n=t.embed,i=t.media,r=t.paused,o=t.volume,a=r&&!n.hasPlayed;i.seeking=!0,lp.call(t,i,"seeking"),Promise.resolve(a&&n.setVolume(0)).then((function(){return n.setCurrentTime(e)})).then((function(){return a&&n.pause()})).then((function(){return a&&n.setVolume(o)})).catch((function(){}))}});var m=t.config.speed.selected;Object.defineProperty(t.media,"playbackRate",{get:function(){return m},set:function(e){t.embed.setPlaybackRate(e).then((function(){m=e,lp.call(t,t.media,"ratechange")})).catch((function(){t.options.speed=[1]}))}});var g=t.config.volume;Object.defineProperty(t.media,"volume",{get:function(){return g},set:function(e){t.embed.setVolume(e).then((function(){g=e,lp.call(t,t.media,"volumechange")}))}});var v=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return v},set:function(e){var n=!!Eh(e)&&e;t.embed.setVolume(n?0:t.config.volume).then((function(){v=n,lp.call(t,t.media,"volumechange")}))}});var y,b=t.config.loop;Object.defineProperty(t.media,"loop",{get:function(){return b},set:function(e){var n=Eh(e)?e:t.config.loop.active;t.embed.setLoop(n).then((function(){b=n}))}}),t.embed.getVideoUrl().then((function(e){y=e,_p.setDownloadUrl.call(t)})).catch((function(t){e.debug.warn(t)})),Object.defineProperty(t.media,"currentSrc",{get:function(){return y}}),Object.defineProperty(t.media,"ended",{get:function(){return t.currentTime===t.duration}}),Promise.all([t.embed.getVideoWidth(),t.embed.getVideoHeight()]).then((function(n){var i=wa(n,2),r=i[0],o=i[1];t.embed.ratio=wp(r,o),bp.call(e)})),t.embed.setAutopause(t.config.autopause).then((function(e){t.config.autopause=e})),t.embed.getVideoTitle().then((function(n){t.config.title=n,Xp.setTitle.call(e)})),t.embed.getCurrentTime().then((function(e){p=e,lp.call(t,t.media,"timeupdate")})),t.embed.getDuration().then((function(e){t.media.duration=e,lp.call(t,t.media,"durationchange")})),t.embed.getTextTracks().then((function(e){t.media.textTracks=e,qp.setup.call(t)})),t.embed.on("cuechange",(function(e){var n=e.cues,i=(void 0===n?[]:n).map((function(e){return function(e){var t=document.createDocumentFragment(),n=document.createElement("div");return t.appendChild(n),n.innerHTML=e,t.firstChild.innerText}(e.text)}));qp.updateCues.call(t,i)})),t.embed.on("loaded",(function(){t.embed.getPaused().then((function(e){em.call(t,!e),e||lp.call(t,t.media,"playing")})),Ch(t.embed.element)&&t.supported.ui&&t.embed.element.setAttribute("tabindex",-1)})),t.embed.on("bufferstart",(function(){lp.call(t,t.media,"waiting")})),t.embed.on("bufferend",(function(){lp.call(t,t.media,"playing")})),t.embed.on("play",(function(){em.call(t,!0),lp.call(t,t.media,"playing")})),t.embed.on("pause",(function(){em.call(t,!1)})),t.embed.on("timeupdate",(function(e){t.media.seeking=!1,p=e.seconds,lp.call(t,t.media,"timeupdate")})),t.embed.on("progress",(function(e){t.media.buffered=e.percent,lp.call(t,t.media,"progress"),1===parseInt(e.percent,10)&&lp.call(t,t.media,"canplaythrough"),t.embed.getDuration().then((function(e){e!==t.media.duration&&(t.media.duration=e,lp.call(t,t.media,"durationchange"))}))})),t.embed.on("seeked",(function(){t.media.seeking=!1,lp.call(t,t.media,"seeked")})),t.embed.on("ended",(function(){t.media.paused=!0,lp.call(t,t.media,"ended")})),t.embed.on("error",(function(e){t.media.error=e,lp.call(t,t.media,"error")})),n.customControls&&setTimeout((function(){return Xp.build.call(t)}),0)}};function nm(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,lp.call(this,this.media,e?"play":"pause"))}function im(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var rm={setup:function(){var e=this;if(Gh(this.elements.wrapper,this.config.classNames.embed,!0),kh(window.YT)&&Ah(window.YT.Player))rm.ready.call(this);else{var t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){Ah(t)&&t(),rm.ready.call(e)},Zp(this.config.urls.youtube.sdk).catch((function(t){e.debug.warn("YouTube API failed to load",t)}))}},getTitle:function(e){var t=this;Mp(Sp(this.config.urls.youtube.api,e)).then((function(e){if(kh(e)){var n=e.title,i=e.height,r=e.width;t.config.title=n,Xp.setTitle.call(t),t.embed.ratio=wp(r,i)}bp.call(t)})).catch((function(){bp.call(t)}))},ready:function(){var e=this,t=e.config.youtube,n=e.media&&e.media.getAttribute("id");if(jh(n)||!n.startsWith("youtube-")){var i=e.media.getAttribute("src");jh(i)&&(i=e.media.getAttribute(this.config.attributes.embed.id));var r=function(e){return jh(e)?null:e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:e}(i),o=Bh("div",{id:Tp(e.provider),"data-poster":t.customControls?e.poster:void 0});if(e.media=$h(o,e.media),t.customControls){var a=function(e){return"https://i.ytimg.com/vi/".concat(r,"/").concat(e,"default.jpg")};Gp(a("maxres"),121).catch((function(){return Gp(a("sd"),121)})).catch((function(){return Gp(a("hq"))})).then((function(t){return Xp.setPoster.call(e,t.src)})).then((function(t){t.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")})).catch((function(){}))}e.embed=new window.YT.Player(e.media,{videoId:r,host:im(t),playerVars:qh({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&t.customControls?0:1,disablekb:1,playsinline:e.config.fullscreen.iosNative?0:1,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},t),events:{onError:function(t){if(!e.media.error){var n=t.data,i={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[n]||"An unknown error occured";e.media.error={code:n,message:i},lp.call(e,e.media,"error")}},onPlaybackRateChange:function(t){var n=t.target;e.media.playbackRate=n.getPlaybackRate(),lp.call(e,e.media,"ratechange")},onReady:function(n){if(!Ah(e.media.play)){var i=n.target;rm.getTitle.call(e,r),e.media.play=function(){nm.call(e,!0),i.playVideo()},e.media.pause=function(){nm.call(e,!1),i.pauseVideo()},e.media.stop=function(){i.stopVideo()},e.media.duration=i.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:function(){return Number(i.getCurrentTime())},set:function(t){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,lp.call(e,e.media,"seeking"),i.seekTo(t)}}),Object.defineProperty(e.media,"playbackRate",{get:function(){return i.getPlaybackRate()},set:function(e){i.setPlaybackRate(e)}});var o=e.config.volume;Object.defineProperty(e.media,"volume",{get:function(){return o},set:function(t){o=t,i.setVolume(100*o),lp.call(e,e.media,"volumechange")}});var a=e.config.muted;Object.defineProperty(e.media,"muted",{get:function(){return a},set:function(t){var n=Eh(t)?t:a;a=n,i[n?"mute":"unMute"](),i.setVolume(100*o),lp.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:function(){return i.getVideoUrl()}}),Object.defineProperty(e.media,"ended",{get:function(){return e.currentTime===e.duration}});var s=i.getAvailablePlaybackRates();e.options.speed=s.filter((function(t){return e.config.speed.options.includes(t)})),e.supported.ui&&t.customControls&&e.media.setAttribute("tabindex",-1),lp.call(e,e.media,"timeupdate"),lp.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval((function(){e.media.buffered=i.getVideoLoadedFraction(),(null===e.media.lastBuffered||e.media.lastBuffered<e.media.buffered)&&lp.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,1===e.media.buffered&&(clearInterval(e.timers.buffering),lp.call(e,e.media,"canplaythrough"))}),200),t.customControls&&setTimeout((function(){return Xp.build.call(e)}),50)}},onStateChange:function(n){var i=n.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(n.data)&&(e.media.seeking=!1,lp.call(e,e.media,"seeked")),n.data){case-1:lp.call(e,e.media,"timeupdate"),e.media.buffered=i.getVideoLoadedFraction(),lp.call(e,e.media,"progress");break;case 0:nm.call(e,!1),e.media.loop?(i.stopVideo(),i.playVideo()):lp.call(e,e.media,"ended");break;case 1:t.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(nm.call(e,!0),lp.call(e,e.media,"playing"),e.timers.playing=setInterval((function(){lp.call(e,e.media,"timeupdate")}),50),e.media.duration!==i.getDuration()&&(e.media.duration=i.getDuration(),lp.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),nm.call(e,!1);break;case 3:lp.call(e,e.media,"waiting")}lp.call(e,e.elements.container,"statechange",!1,{code:n.data})}}})}}},om={setup:function(){this.media?(Gh(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),Gh(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&Gh(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=Bh("div",{class:this.config.classNames.video}),Uh(this.media,this.elements.wrapper),this.elements.poster=Bh("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?kp.setup.call(this):this.isYouTube?rm.setup.call(this):this.isVimeo&&tm.setup.call(this)):this.debug.warn("No media element found!")}},am=function(){function e(t){var n=this;va(this,e),Ud(this,"load",(function(){n.enabled&&(kh(window.google)&&kh(window.google.ima)?n.ready():Zp(n.player.config.urls.googleIMA.sdk).then((function(){n.ready()})).catch((function(){n.trigger("error",new Error("Google IMA SDK failed to load"))})))})),Ud(this,"ready",(function(){var e;n.enabled||((e=n).manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()),n.startSafetyTimer(12e3,"ready()"),n.managerPromise.then((function(){n.clearSafetyTimer("onAdsManagerLoaded()")})),n.listeners(),n.setupIMA()})),Ud(this,"setupIMA",(function(){n.elements.container=Bh("div",{class:n.player.config.classNames.ads}),n.player.elements.container.appendChild(n.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(n.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(n.player.config.playsinline),n.elements.displayContainer=new google.ima.AdDisplayContainer(n.elements.container,n.player.media),n.loader=new google.ima.AdsLoader(n.elements.displayContainer),n.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(e){return n.onAdsManagerLoaded(e)}),!1),n.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){return n.onAdError(e)}),!1),n.requestAds()})),Ud(this,"requestAds",(function(){var e=n.player.elements.container;try{var t=new google.ima.AdsRequest;t.adTagUrl=n.tagUrl,t.linearAdSlotWidth=e.offsetWidth,t.linearAdSlotHeight=e.offsetHeight,t.nonLinearAdSlotWidth=e.offsetWidth,t.nonLinearAdSlotHeight=e.offsetHeight,t.forceNonLinearFullSlot=!1,t.setAdWillPlayMuted(!n.player.muted),n.loader.requestAds(t)}catch(e){n.onAdError(e)}})),Ud(this,"pollCountdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e)return clearInterval(n.countdownTimer),void n.elements.container.removeAttribute("data-badge-text");n.countdownTimer=setInterval((function(){var e=Rp(Math.max(n.manager.getRemainingTime(),0)),t="".concat(Op("advertisement",n.player.config)," - ").concat(e);n.elements.container.setAttribute("data-badge-text",t)}),100)})),Ud(this,"onAdsManagerLoaded",(function(e){if(n.enabled){var t=new google.ima.AdsRenderingSettings;t.restoreCustomPlaybackStateOnAdBreakComplete=!0,t.enablePreloading=!0,n.manager=e.getAdsManager(n.player,t),n.cuePoints=n.manager.getCuePoints(),n.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){return n.onAdError(e)})),Object.keys(google.ima.AdEvent.Type).forEach((function(e){n.manager.addEventListener(google.ima.AdEvent.Type[e],(function(e){return n.onAdEvent(e)}))})),n.trigger("loaded")}})),Ud(this,"addCuePoints",(function(){jh(n.cuePoints)||n.cuePoints.forEach((function(e){if(0!==e&&-1!==e&&e<n.player.duration){var t=n.player.elements.progress;if(Ch(t)){var i=100/n.player.duration*e,r=Bh("span",{class:n.player.config.classNames.cues});r.style.left="".concat(i.toString(),"%"),t.appendChild(r)}}}))})),Ud(this,"onAdEvent",(function(e){var t=n.player.elements.container,i=e.getAd(),r=e.getAdData();switch(function(e){lp.call(n.player,n.player.media,"ads".concat(e.replace(/_/g,"").toLowerCase()))}(e.type),e.type){case google.ima.AdEvent.Type.LOADED:n.trigger("loaded"),n.pollCountdown(!0),i.isLinear()||(i.width=t.offsetWidth,i.height=t.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:n.manager.setVolume(n.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:n.player.ended?n.loadAds():n.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:n.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:n.pollCountdown(),n.resumeContent();break;case google.ima.AdEvent.Type.LOG:r.adError&&n.player.debug.warn("Non-fatal ad error: ".concat(r.adError.getMessage()))}})),Ud(this,"onAdError",(function(e){n.cancel(),n.player.debug.warn("Ads error",e)})),Ud(this,"listeners",(function(){var e,t=n.player.elements.container;n.player.on("canplay",(function(){n.addCuePoints()})),n.player.on("ended",(function(){n.loader.contentComplete()})),n.player.on("timeupdate",(function(){e=n.player.currentTime})),n.player.on("seeked",(function(){var t=n.player.currentTime;jh(n.cuePoints)||n.cuePoints.forEach((function(i,r){e<i&&i<t&&(n.manager.discardAdBreak(),n.cuePoints.splice(r,1))}))})),window.addEventListener("resize",(function(){n.manager&&n.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)}))})),Ud(this,"play",(function(){var e=n.player.elements.container;n.managerPromise||n.resumeContent(),n.managerPromise.then((function(){n.manager.setVolume(n.player.volume),n.elements.displayContainer.initialize();try{n.initialized||(n.manager.init(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL),n.manager.start()),n.initialized=!0}catch(e){n.onAdError(e)}})).catch((function(){}))})),Ud(this,"resumeContent",(function(){n.elements.container.style.zIndex="",n.playing=!1,fp(n.player.media.play())})),Ud(this,"pauseContent",(function(){n.elements.container.style.zIndex=3,n.playing=!0,n.player.media.pause()})),Ud(this,"cancel",(function(){n.initialized&&n.resumeContent(),n.trigger("error"),n.loadAds()})),Ud(this,"loadAds",(function(){n.managerPromise.then((function(){n.manager&&n.manager.destroy(),n.managerPromise=new Promise((function(e){n.on("loaded",e),n.player.debug.log(n.manager)})),n.initialized=!1,n.requestAds()})).catch((function(){}))})),Ud(this,"trigger",(function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];var o=n.events[e];Ph(o)&&o.forEach((function(e){Ah(e)&&e.apply(n,i)}))})),Ud(this,"on",(function(e,t){return Ph(n.events[e])||(n.events[e]=[]),n.events[e].push(t),n})),Ud(this,"startSafetyTimer",(function(e,t){n.player.debug.log("Safety timer invoked from: ".concat(t)),n.safetyTimer=setTimeout((function(){n.cancel(),n.clearSafetyTimer("startSafetyTimer()")}),e)})),Ud(this,"clearSafetyTimer",(function(e){wh(n.safetyTimer)||(n.player.debug.log("Safety timer cleared from: ".concat(e)),clearTimeout(n.safetyTimer),n.safetyTimer=null)})),this.player=t,this.config=t.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((function(e,t){n.on("loaded",e),n.on("error",t)})),this.load()}return ba(e,[{key:"enabled",get:function(){var e=this.config;return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!jh(e.publisherId)||Nh(e.tagUrl))}},{key:"tagUrl",get:function(){var e=this.config;return Nh(e.tagUrl)?e.tagUrl:"https://go.aniview.com/api/adserver6/vast/?".concat(Dp({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:e.publisherId}))}}]),e}();function sm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.min(Math.max(e,t),n)}var lm=function(e){var t=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach((function(e){var n={};e.split(/\r\n|\n|\r/).forEach((function(e){if(Th(n.startTime)){if(!jh(e.trim())&&jh(n.text)){var t,i,r=e.trim().split("#xywh=");t=wa(r,1),n.text=t[0],r[1]&&(i=wa(r[1].split(","),4),n.x=i[0],n.y=i[1],n.w=i[2],n.h=i[3])}}else{var o=e.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);o&&(n.startTime=60*Number(o[1]||0)*60+60*Number(o[2])+Number(o[3])+Number("0.".concat(o[4])),n.endTime=60*Number(o[6]||0)*60+60*Number(o[7])+Number(o[8])+Number("0.".concat(o[9])))}})),n.text&&t.push(n)})),t},cm=function(e,t){var n={};return e>t.width/t.height?(n.width=t.width,n.height=1/e*t.width):(n.height=t.height,n.width=e*t.height),n},um=function(){function e(t){var n=this;va(this,e),Ud(this,"load",(function(){n.player.elements.display.seekTooltip&&(n.player.elements.display.seekTooltip.hidden=n.enabled),n.enabled&&n.getThumbnails().then((function(){n.enabled&&(n.render(),n.determineContainerAutoSizing(),n.loaded=!0)}))})),Ud(this,"getThumbnails",(function(){return new Promise((function(e){var t=n.player.config.previewThumbnails.src;if(jh(t))throw new Error("Missing previewThumbnails.src config attribute");var i=function(){n.thumbnails.sort((function(e,t){return e.height-t.height})),n.player.debug.log("Preview thumbnails",n.thumbnails),e()};if(Ah(t))t((function(e){n.thumbnails=e,i()}));else{var r=(Sh(t)?[t]:t).map((function(e){return n.getThumbnail(e)}));Promise.all(r).then(i)}}))})),Ud(this,"getThumbnail",(function(e){return new Promise((function(t){Mp(e).then((function(i){var r={frames:lm(i),height:null,urlPrefix:""};r.frames[0].text.startsWith("/")||r.frames[0].text.startsWith("http://")||r.frames[0].text.startsWith("https://")||(r.urlPrefix=e.substring(0,e.lastIndexOf("/")+1));var o=new Image;o.onload=function(){r.height=o.naturalHeight,r.width=o.naturalWidth,n.thumbnails.push(r),t()},o.src=r.urlPrefix+r.frames[0].text}))}))})),Ud(this,"startMove",(function(e){if(n.loaded&&Oh(e)&&["touchmove","mousemove"].includes(e.type)&&n.player.media.duration){if("touchmove"===e.type)n.seekTime=n.player.media.duration*(n.player.elements.inputs.seek.value/100);else{var t,i,r=n.player.elements.progress.getBoundingClientRect(),o=100/r.width*(e.pageX-r.left);n.seekTime=n.player.media.duration*(o/100),n.seekTime<0&&(n.seekTime=0),n.seekTime>n.player.media.duration-1&&(n.seekTime=n.player.media.duration-1),n.mousePosX=e.pageX,n.elements.thumb.time.innerText=Rp(n.seekTime);var a=null===(t=n.player.config.markers)||void 0===t||null===(i=t.points)||void 0===i?void 0:i.find((function(e){return e.time===Math.round(n.seekTime)}));a&&n.elements.thumb.time.insertAdjacentHTML("afterbegin","".concat(a.label,"<br>"))}n.showImageAtCurrentTime()}})),Ud(this,"endMove",(function(){n.toggleThumbContainer(!1,!0)})),Ud(this,"startScrubbing",(function(e){(wh(e.button)||!1===e.button||0===e.button)&&(n.mouseDown=!0,n.player.media.duration&&(n.toggleScrubbingContainer(!0),n.toggleThumbContainer(!1,!0),n.showImageAtCurrentTime()))})),Ud(this,"endScrubbing",(function(){n.mouseDown=!1,Math.ceil(n.lastTime)===Math.ceil(n.player.media.currentTime)?n.toggleScrubbingContainer(!1):sp.call(n.player,n.player.media,"timeupdate",(function(){n.mouseDown||n.toggleScrubbingContainer(!1)}))})),Ud(this,"listeners",(function(){n.player.on("play",(function(){n.toggleThumbContainer(!1,!0)})),n.player.on("seeked",(function(){n.toggleThumbContainer(!1)})),n.player.on("timeupdate",(function(){n.lastTime=n.player.media.currentTime}))})),Ud(this,"render",(function(){n.elements.thumb.container=Bh("div",{class:n.player.config.classNames.previewThumbnails.thumbContainer}),n.elements.thumb.imageContainer=Bh("div",{class:n.player.config.classNames.previewThumbnails.imageContainer}),n.elements.thumb.container.appendChild(n.elements.thumb.imageContainer);var e=Bh("div",{class:n.player.config.classNames.previewThumbnails.timeContainer});n.elements.thumb.time=Bh("span",{},"00:00"),e.appendChild(n.elements.thumb.time),n.elements.thumb.imageContainer.appendChild(e),Ch(n.player.elements.progress)&&n.player.elements.progress.appendChild(n.elements.thumb.container),n.elements.scrubbing.container=Bh("div",{class:n.player.config.classNames.previewThumbnails.scrubbingContainer}),n.player.elements.wrapper.appendChild(n.elements.scrubbing.container)})),Ud(this,"destroy",(function(){n.elements.thumb.container&&n.elements.thumb.container.remove(),n.elements.scrubbing.container&&n.elements.scrubbing.container.remove()})),Ud(this,"showImageAtCurrentTime",(function(){n.mouseDown?n.setScrubbingContainerSize():n.setThumbContainerSizeAndPos();var e=n.thumbnails[0].frames.findIndex((function(e){return n.seekTime>=e.startTime&&n.seekTime<=e.endTime})),t=e>=0,i=0;n.mouseDown||n.toggleThumbContainer(t),t&&(n.thumbnails.forEach((function(t,r){n.loadedImages.includes(t.frames[e].text)&&(i=r)})),e!==n.showingThumb&&(n.showingThumb=e,n.loadImage(i)))})),Ud(this,"loadImage",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=n.showingThumb,i=n.thumbnails[e],r=i.urlPrefix,o=i.frames[t],a=i.frames[t].text,s=r+a;if(n.currentImageElement&&n.currentImageElement.dataset.filename===a)n.showImage(n.currentImageElement,o,e,t,a,!1),n.currentImageElement.dataset.index=t,n.removeOldImages(n.currentImageElement);else{n.loadingImage&&n.usingSprites&&(n.loadingImage.onload=null);var l=new Image;l.src=s,l.dataset.index=t,l.dataset.filename=a,n.showingThumbFilename=a,n.player.debug.log("Loading image: ".concat(s)),l.onload=function(){return n.showImage(l,o,e,t,a,!0)},n.loadingImage=l,n.removeOldImages(l)}})),Ud(this,"showImage",(function(e,t,i,r,o){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];n.player.debug.log("Showing thumb: ".concat(o,". num: ").concat(r,". qual: ").concat(i,". newimg: ").concat(a)),n.setImageSizeAndOffset(e,t),a&&(n.currentImageContainer.appendChild(e),n.currentImageElement=e,n.loadedImages.includes(o)||n.loadedImages.push(o)),n.preloadNearby(r,!0).then(n.preloadNearby(r,!1)).then(n.getHigherQuality(i,e,t,o))})),Ud(this,"removeOldImages",(function(e){Array.from(n.currentImageContainer.children).forEach((function(t){if("img"===t.tagName.toLowerCase()){var i=n.usingSprites?500:1e3;if(t.dataset.index!==e.dataset.index&&!t.dataset.deleting){t.dataset.deleting=!0;var r=n.currentImageContainer;setTimeout((function(){r.removeChild(t),n.player.debug.log("Removing thumb: ".concat(t.dataset.filename))}),i)}}}))})),Ud(this,"preloadNearby",(function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(i){setTimeout((function(){var r=n.thumbnails[0].frames[e].text;if(n.showingThumbFilename===r){var o;o=t?n.thumbnails[0].frames.slice(e):n.thumbnails[0].frames.slice(0,e).reverse();var a=!1;o.forEach((function(e){var t=e.text;if(t!==r&&!n.loadedImages.includes(t)){a=!0,n.player.debug.log("Preloading thumb filename: ".concat(t));var o=n.thumbnails[0].urlPrefix+t,s=new Image;s.src=o,s.onload=function(){n.player.debug.log("Preloaded thumb filename: ".concat(t)),n.loadedImages.includes(t)||n.loadedImages.push(t),i()}}})),a||i()}}),300)}))})),Ud(this,"getHigherQuality",(function(e,t,i,r){if(e<n.thumbnails.length-1){var o=t.naturalHeight;n.usingSprites&&(o=i.h),o<n.thumbContainerHeight&&setTimeout((function(){n.showingThumbFilename===r&&(n.player.debug.log("Showing higher quality thumb for: ".concat(r)),n.loadImage(e+1))}),300)}})),Ud(this,"toggleThumbContainer",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=n.player.config.classNames.previewThumbnails.thumbContainerShown;n.elements.thumb.container.classList.toggle(i,e),!e&&t&&(n.showingThumb=null,n.showingThumbFilename=null)})),Ud(this,"toggleScrubbingContainer",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=n.player.config.classNames.previewThumbnails.scrubbingContainerShown;n.elements.scrubbing.container.classList.toggle(t,e),e||(n.showingThumb=null,n.showingThumbFilename=null)})),Ud(this,"determineContainerAutoSizing",(function(){(n.elements.thumb.imageContainer.clientHeight>20||n.elements.thumb.imageContainer.clientWidth>20)&&(n.sizeSpecifiedInCSS=!0)})),Ud(this,"setThumbContainerSizeAndPos",(function(){var e=n.elements.thumb.imageContainer;if(n.sizeSpecifiedInCSS){if(e.clientHeight>20&&e.clientWidth<20){var t=Math.floor(e.clientHeight*n.thumbAspectRatio);e.style.width="".concat(t,"px")}else if(e.clientHeight<20&&e.clientWidth>20){var i=Math.floor(e.clientWidth/n.thumbAspectRatio);e.style.height="".concat(i,"px")}}else{var r=Math.floor(n.thumbContainerHeight*n.thumbAspectRatio);e.style.height="".concat(n.thumbContainerHeight,"px"),e.style.width="".concat(r,"px")}n.setThumbContainerPos()})),Ud(this,"setThumbContainerPos",(function(){var e=n.player.elements.progress.getBoundingClientRect(),t=n.player.elements.container.getBoundingClientRect(),i=n.elements.thumb.container,r=t.left-e.left+10,o=t.right-e.left-i.clientWidth-10,a=n.mousePosX-e.left-i.clientWidth/2,s=sm(a,r,o);i.style.left="".concat(s,"px"),i.style.setProperty("--preview-arrow-offset",a-s+"px")})),Ud(this,"setScrubbingContainerSize",(function(){var e=cm(n.thumbAspectRatio,{width:n.player.media.clientWidth,height:n.player.media.clientHeight}),t=e.width,i=e.height;n.elements.scrubbing.container.style.width="".concat(t,"px"),n.elements.scrubbing.container.style.height="".concat(i,"px")})),Ud(this,"setImageSizeAndOffset",(function(e,t){if(n.usingSprites){var i=n.thumbContainerHeight/t.h;e.style.height=e.naturalHeight*i+"px",e.style.width=e.naturalWidth*i+"px",e.style.left="-".concat(t.x*i,"px"),e.style.top="-".concat(t.y*i,"px")}})),this.player=t,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return ba(e,[{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}},{key:"currentImageContainer",get:function(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}},{key:"usingSprites",get:function(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}},{key:"thumbAspectRatio",get:function(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}},{key:"thumbContainerHeight",get:function(){return this.mouseDown?cm(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}).height:this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}},{key:"currentImageElement",get:function(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement},set:function(e){this.mouseDown?this.currentScrubbingImageElement=e:this.currentThumbnailImageElement=e}}]),e}(),fm={insertElements:function(e,t){var n=this;Sh(t)?Vh(e,this.media,{src:t}):Ph(t)&&t.forEach((function(t){Vh(e,n.media,t)}))},change:function(e){var t=this;Dh(e,"sources.length")?(kp.cancelRequests.call(this),this.destroy.call(this,(function(){t.options.quality=[],zh(t.media),t.media=null,Ch(t.elements.container)&&t.elements.container.removeAttribute("class");var n=e.sources,i=e.type,r=wa(n,1)[0],o=r.provider,a=void 0===o?Vp.html5:o,s=r.src,l="html5"===a?i:"div",c="html5"===a?{}:{src:s};Object.assign(t,{provider:a,type:i,supported:np.check(i,a,t.config.playsinline),media:Bh(l,c)}),t.elements.container.appendChild(t.media),Eh(e.autoplay)&&(t.config.autoplay=e.autoplay),t.isHTML5&&(t.config.crossorigin&&t.media.setAttribute("crossorigin",""),t.config.autoplay&&t.media.setAttribute("autoplay",""),jh(e.poster)||(t.poster=e.poster),t.config.loop.active&&t.media.setAttribute("loop",""),t.config.muted&&t.media.setAttribute("muted",""),t.config.playsinline&&t.media.setAttribute("playsinline","")),Xp.addStyleHook.call(t),t.isHTML5&&fm.insertElements.call(t,"source",n),t.config.title=e.title,om.setup.call(t),t.isHTML5&&Object.keys(e).includes("tracks")&&fm.insertElements.call(t,"track",e.tracks),(t.isHTML5||t.isEmbed&&!t.supported.ui)&&Xp.build.call(t),t.isHTML5&&t.media.load(),jh(e.previewThumbnails)||(Object.assign(t.config.previewThumbnails,e.previewThumbnails),t.previewThumbnails&&t.previewThumbnails.loaded&&(t.previewThumbnails.destroy(),t.previewThumbnails=null),t.config.previewThumbnails.enabled&&(t.previewThumbnails=new um(t))),t.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}},dm=function(){function e(t,n){var i=this;if(va(this,e),Ud(this,"play",(function(){return Ah(i.media.play)?(i.ads&&i.ads.enabled&&i.ads.managerPromise.then((function(){return i.ads.play()})).catch((function(){return fp(i.media.play())})),i.media.play()):null})),Ud(this,"pause",(function(){return i.playing&&Ah(i.media.pause)?i.media.pause():null})),Ud(this,"togglePlay",(function(e){return(Eh(e)?e:!i.playing)?i.play():i.pause()})),Ud(this,"stop",(function(){i.isHTML5?(i.pause(),i.restart()):Ah(i.media.stop)&&i.media.stop()})),Ud(this,"restart",(function(){i.currentTime=0})),Ud(this,"rewind",(function(e){i.currentTime-=Th(e)?e:i.config.seekTime})),Ud(this,"forward",(function(e){i.currentTime+=Th(e)?e:i.config.seekTime})),Ud(this,"increaseVolume",(function(e){var t=i.media.muted?0:i.volume;i.volume=t+(Th(e)?e:0)})),Ud(this,"decreaseVolume",(function(e){i.increaseVolume(-e)})),Ud(this,"airplay",(function(){np.airplay&&i.media.webkitShowPlaybackTargetPicker()})),Ud(this,"toggleControls",(function(e){if(i.supported.ui&&!i.isAudio){var t=Xh(i.elements.container,i.config.classNames.hideControls),n=void 0===e?void 0:!e,r=Gh(i.elements.container,i.config.classNames.hideControls,n);if(r&&Ph(i.config.controls)&&i.config.controls.includes("settings")&&!jh(i.config.settings)&&_p.toggleMenu.call(i,!1),r!==t){var o=r?"controlshidden":"controlsshown";lp.call(i,i.media,o)}return!r}return!1})),Ud(this,"on",(function(e,t){op.call(i,i.elements.container,e,t)})),Ud(this,"once",(function(e,t){sp.call(i,i.elements.container,e,t)})),Ud(this,"off",(function(e,t){ap(i.elements.container,e,t)})),Ud(this,"destroy",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(i.ready){var n=function(){document.body.style.overflow="",i.embed=null,t?(Object.keys(i.elements).length&&(zh(i.elements.buttons.play),zh(i.elements.captions),zh(i.elements.controls),zh(i.elements.wrapper),i.elements.buttons.play=null,i.elements.captions=null,i.elements.controls=null,i.elements.wrapper=null),Ah(e)&&e()):(cp.call(i),kp.cancelRequests.call(i),$h(i.elements.original,i.elements.container),lp.call(i,i.elements.original,"destroyed",!0),Ah(e)&&e.call(i.elements.original),i.ready=!1,setTimeout((function(){i.elements=null,i.media=null}),200))};i.stop(),clearTimeout(i.timers.loading),clearTimeout(i.timers.controls),clearTimeout(i.timers.resized),i.isHTML5?(Xp.toggleNativeControls.call(i,!0),n()):i.isYouTube?(clearInterval(i.timers.buffering),clearInterval(i.timers.playing),null!==i.embed&&Ah(i.embed.destroy)&&i.embed.destroy(),n()):i.isVimeo&&(null!==i.embed&&i.embed.unload().then(n),setTimeout(n,200))}})),Ud(this,"supports",(function(e){return np.mime.call(i,e)})),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=np.touch,this.media=t,Sh(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||xh(this.media)||Ph(this.media))&&(this.media=this.media[0]),this.config=qh({},Up,e.defaults,n||{},function(){try{return JSON.parse(i.media.getAttribute("data-plyr-config"))}catch(e){return{}}}()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new Kp(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",np),!wh(this.media)&&Ch(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(np.check().api){var r=this.media.cloneNode(!0);r.autoplay=!1,this.elements.original=r;var o=this.media.tagName.toLowerCase(),a=null,s=null;switch(o){case"div":if(a=this.media.querySelector("iframe"),Ch(a)){if(s=Fp(a.getAttribute("src")),this.provider=function(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?Vp.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?Vp.vimeo:null}(s.toString()),this.elements.container=this.media,this.media=a,this.elements.container.className="",s.search.length){var l=["1","true"];l.includes(s.searchParams.get("autoplay"))&&(this.config.autoplay=!0),l.includes(s.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=l.includes(s.searchParams.get("playsinline")),this.config.youtube.hl=s.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(jh(this.provider)||!Object.values(Vp).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=Wp;break;case"video":case"audio":this.type=o,this.provider=Vp.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=np.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new Qp(this),this.storage=new Ip(this),this.media.plyr=this,Ch(this.elements.container)||(this.elements.container=Bh("div",{tabindex:0}),Uh(this.media,this.elements.container)),Xp.migrateStyles.call(this),Xp.addStyleHook.call(this),om.setup.call(this),this.config.debug&&op.call(this,this.elements.container,this.config.events.join(" "),(function(e){i.debug.log("event: ".concat(e.type))})),this.fullscreen=new Yp(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Xp.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new am(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(function(){return fp(i.play())})),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new um(this))):this.debug.error("Setup failed: no support")}else this.debug.error("Setup failed: no support");else this.debug.error("Setup failed: disabled by config");else this.debug.error("Setup failed: no suitable element passed")}return ba(e,[{key:"isHTML5",get:function(){return this.provider===Vp.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===Vp.youtube}},{key:"isVimeo",get:function(){return this.provider===Vp.vimeo}},{key:"isVideo",get:function(){return this.type===Wp}},{key:"isAudio",get:function(){return this.type===zp}},{key:"playing",get:function(){return Boolean(this.ready&&!this.paused&&!this.ended)}},{key:"paused",get:function(){return Boolean(this.media.paused)}},{key:"stopped",get:function(){return Boolean(this.paused&&0===this.currentTime)}},{key:"ended",get:function(){return Boolean(this.media.ended)}},{key:"currentTime",get:function(){return Number(this.media.currentTime)},set:function(e){if(this.duration){var t=Th(e)&&e>0;this.media.currentTime=t?Math.min(e,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}}},{key:"buffered",get:function(){var e=this.media.buffered;return Th(e)?e:e&&e.length&&this.duration>0?e.end(0)/this.duration:0}},{key:"seeking",get:function(){return Boolean(this.media.seeking)}},{key:"duration",get:function(){var e=parseFloat(this.config.duration),t=(this.media||{}).duration,n=Th(t)&&t!==1/0?t:0;return e||n}},{key:"volume",get:function(){return Number(this.media.volume)},set:function(e){var t=e;Sh(t)&&(t=Number(t)),Th(t)||(t=this.storage.get("volume")),Th(t)||(t=this.config.volume),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!jh(e)&&this.muted&&t>0&&(this.muted=!1)}},{key:"muted",get:function(){return Boolean(this.media.muted)},set:function(e){var t=e;Eh(t)||(t=this.storage.get("muted")),Eh(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}},{key:"hasAudio",get:function(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}},{key:"speed",get:function(){return Number(this.media.playbackRate)},set:function(e){var t=this,n=null;Th(e)&&(n=e),Th(n)||(n=this.storage.get("speed")),Th(n)||(n=this.config.speed.selected);var i=this.minimumSpeed,r=this.maximumSpeed;n=sm(n,i,r),this.config.speed.selected=n,setTimeout((function(){t.media&&(t.media.playbackRate=n)}),0)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,ga(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,ga(this.options.speed)):this.isVimeo?2:16}},{key:"quality",get:function(){return this.media.quality},set:function(e){var t=this.config.quality,n=this.options.quality;if(n.length){var i=[!jh(e)&&Number(e),this.storage.get("quality"),t.selected,t.default].find(Th),r=!0;if(!n.includes(i)){var o=hp(n,i);this.debug.warn("Unsupported quality option: ".concat(i,", using ").concat(o," instead")),i=o,r=!1}t.selected=i,this.media.quality=i,r&&this.storage.set({quality:i})}}},{key:"loop",get:function(){return Boolean(this.media.loop)},set:function(e){var t=Eh(e)?e:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}},{key:"source",get:function(){return this.media.currentSrc},set:function(e){fm.change.call(this,e)}},{key:"download",get:function(){var e=this.config.urls.download;return Nh(e)?e:this.source},set:function(e){Nh(e)&&(this.config.urls.download=e,_p.setDownloadUrl.call(this))}},{key:"poster",get:function(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null},set:function(e){this.isVideo?Xp.setPoster.call(this,e,!1).catch((function(){})):this.debug.warn("Poster can only be set for video")}},{key:"ratio",get:function(){if(!this.isVideo)return null;var e=vp(yp.call(this));return Ph(e)?e.join(":"):e},set:function(e){this.isVideo?Sh(e)&&gp(e)?(this.config.ratio=vp(e),bp.call(this)):this.debug.error("Invalid aspect ratio specified (".concat(e,")")):this.debug.warn("Aspect ratio can only be set for video")}},{key:"autoplay",get:function(){return Boolean(this.config.autoplay)},set:function(e){this.config.autoplay=Eh(e)?e:this.config.autoplay}},{key:"toggleCaptions",value:function(e){qp.toggle.call(this,e,!1)}},{key:"currentTrack",get:function(){var e=this.captions,t=e.toggled,n=e.currentTrack;return t?n:-1},set:function(e){qp.set.call(this,e,!1),qp.setup.call(this)}},{key:"language",get:function(){return(qp.getCurrentTrack.call(this)||{}).language},set:function(e){qp.setLanguage.call(this,e,!1)}},{key:"pip",get:function(){return np.pip?jh(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Hp:null},set:function(e){if(np.pip){var t=Eh(e)?e:!this.pip;Ah(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?Hp:Bp),Ah(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}}},{key:"setPreviewThumbnails",value:function(e){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,e),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new um(this))}}],[{key:"supported",value:function(e,t,n){return np.check(e,t,n)}},{key:"loadSprite",value:function(e,t){return Lp(e,t)}},{key:"setup",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;return Sh(t)?i=Array.from(document.querySelectorAll(t)):xh(t)?i=Array.from(t):Ph(t)&&(i=t.filter(Ch)),jh(i)?null:i.map((function(t){return new e(t,n)}))}}]),e}();dm.defaults=function(e){return JSON.parse(JSON.stringify(e))}(Up);var hm={name:"VuePlyr",props:{options:{type:Object,required:!1,default:()=>({})}},data:()=>({player:{}}),computed:{opts(){const e=this.options;return Object.prototype.hasOwnProperty.call(this.options,"hideYouTubeDOMError")||(e.hideYouTubeDOMError=!0),e}},mounted(){this.player=new dm(this.$el,this.opts)},beforeUnmount(){try{this.player.destroy()}catch(e){this.opts.hideYouTubeDOMError&&"The YouTube player is not attached to the DOM."===e.message||console.error(e)}},render(){const e=this.$slots.default;return"function"==typeof e?e()[0]:e},install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.plyr&&(hm.props.options.default=function(){return zi({},t.plyr)}),e.component(hm.name,hm)}};export{hm as default};
//# sourceMappingURL=vue-plyr.esm.js.map