@theoplayer/web-ui 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- var e,t;e=this,t=function(e,t){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)}function a(e,t){return t||(t=e.slice(0)),e.raw=t,e}function o(e,t,r,n){function i(e,t){return function(r){(function(e,t){if(e.v)throw Error("attempted to call "+t+" after decoration was finished")})(t,"addInitializer"),l(r,"An initializer"),e.push(r)}}function a(e,t,r,n,a,o,l,s,u){switch(a){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var c,h,d,p={kind:c,name:l?"#"+t:t,static:o,private:l,metadata:s},y={v:!1};if(p.addInitializer=i(n,y),0===a?l?(h=r.get,d=r.set):(h=function(){return this[t]},d=function(e){this[t]=e}):2===a?h=function(){return r.value}:((1===a||3===a)&&(h=function(){return r.get.call(this)}),(1===a||4===a)&&(d=function(e){r.set.call(this,e)})),h){var f=h;h=function(e){return 0==arguments.length&&(e=this),f.call(e)}}if(d){var v=d;d=function(e,t){return 1==arguments.length&&(t=e,e=this),v.call(e,t)}}if(l)p.access=h&&d?{get:h,set:d}:h?{get:h}:{set:d};else{var g=function(e){return t in e};p.access=h&&d?{has:g,get:h,set:d}:h?{has:g,get:h}:{has:g,set:d}}var _=e(u,p);return y.v=!0,_}function l(e,t){if("function"!=typeof e)throw TypeError(t+" must be a function")}function s(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&l(t.get,"accessor.get"),void 0!==t.set&&l(t.set,"accessor.set"),void 0!==t.init&&l(t.init,"accessor.init")}else if("function"!==r)throw TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function u(e,t){t&&e.push(function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e})}function c(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}return(o=function(e,t,r,n){if(void 0!==n)var o=n[Symbol.metadata||Symbol.for("Symbol.metadata")];var l=Object.create(void 0===o?null:o),h=function(e,t,r){for(var n=[],i=new Map,o=new Map,l=0;l<t.length;l++){var c,h,d,p,y=t[l];if(Array.isArray(y)){var f=y[1],v=y[2],g=y.length>3,_=f>=5;if(_?(d=e,f-=5,p=h=h||[]):(d=e.prototype,p=c=c||[]),0!==f&&!g){var b=_?o:i,m=b.get(v)||0;if(!0===m||3===m&&4!==f||4===m&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+v);!m&&f>2?b.set(v,f):b.set(v,!0)}!function(e,t,r,n,i,o,l,u,c){var h,d,p,y,f,v,g=r[0];if(l?h=0===i||1===i?{get:r[3],set:r[4]}:3===i?{get:r[3]}:4===i?{set:r[3]}:{value:r[3]}:0!==i&&(h=Object.getOwnPropertyDescriptor(t,n)),1===i?p={get:h.get,set:h.set}:2===i?p=h.value:3===i?p=h.get:4===i&&(p=h.set),"function"==typeof g)void 0!==(y=a(g,n,h,u,i,o,l,c,p))&&(s(i,y),0===i?d=y:1===i?(d=y.init,p={get:f=y.get||p.get,set:y.set||p.set}):p=y);else for(var _=g.length-1;_>=0;_--)void 0!==(y=a(g[_],n,h,u,i,o,l,c,p))&&(s(i,y),0===i?v=y:1===i?(v=y.init,p={get:f=y.get||p.get,set:y.set||p.set}):p=y,void 0!==v&&(void 0===d?d=v:"function"==typeof d?d=[d,v]:d.push(v)));if(0===i||1===i){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var b=d;d=function(e,t){for(var r=t,n=0;n<b.length;n++)r=b[n].call(e,r);return r}}else{var m=d;d=function(e,t){return m.call(e,t)}}e.push(d)}0!==i&&(1===i?(h.get=p.get,h.set=p.set):2===i?h.value=p:3===i?h.get=p:4===i&&(h.set=p),l?1===i?(e.push(function(e,t){return p.get.call(e,t)}),e.push(function(e,t){return p.set.call(e,t)})):2===i?e.push(p):e.push(function(e,t){return p.call(e,t)}):Object.defineProperty(t,n,h))}(n,d,y,v,f,_,g,p,r)}}return u(n,c),u(n,h),n}(e,t,l);return r.length||c(e,l),{e:h,get c(){return function(e,t,r){if(t.length>0){for(var n=[],a=e,o=e.name,l=t.length-1;l>=0;l--){var u={v:!1},h=t[l](a,{kind:"class",name:o,addInitializer:i(n,u),metadata:r});u.v=!0,void 0!==h&&(s(10,h),a=h)}return[c(a,r),function(){for(var e=0;e<n.length;e++)n[e].call(a)}]}}(e,r,l)}}})(e,t,r,n)}function l(e){return e}function s(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){r(e);return}l.done?t(s):Promise.resolve(s).then(n,i)}function u(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){s(a,n,i,o,l,"next",e)}function l(e){s(a,n,i,o,l,"throw",e)}o(void 0)})}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function d(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function p(e,t,r){t=c(t);var n=h()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r);if(n&&("object"===d(n)||"function"==typeof n))return n;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&f(e.prototype,t),r&&f(e,r),e}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _(e,t){if(e){if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(e,t)}}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,l=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){l=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(l)throw n}}return a}}(e,t)||_(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t,r){return(k=h()?Reflect.construct:function(e,t,r){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return r&&n(a,r.prototype),a}).apply(null,arguments)}function w(e){var t="function"==typeof Map?new Map:void 0;return(w=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return k(e,arguments,c(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n(r,e)})(e)}function x(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(o,"next",{value:s(0)}),l(o,"throw",{value:s(1)}),l(o,"return",{value:s(2)}),"function"==typeof Symbol&&l(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(s){var u=[l,s];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function T(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var A,E,S,L,C,P,R,O,M,B,N,I,D,$,F,U,q,j,z,H,V,G,Q,W,K,Z,Y,J,X,ee,et,er,en,ei,ea,eo,el,es,eu,ec,eh,ed,ep,ey,ef,ev,eg,e_,eb,em,ek,ew,ex,eT,eA,eE,eS,eL,eC,eP,eR,eO,eM,eB,eN,eI,eD,e$,eF,eU,eq,ej,ez,eH,eV,eG,eQ,eW,eK,eZ,eY,eJ,eX,e0,e1,e2,e5,e3,e4,e8,e7,e6,e9,te,tt,tr,tn,ti,ta,to,tl,ts,tu,tc,th,td,tp,ty,tf,tv,tg,t_,tb,tm,tk,tw,tx,tT,tA,tE,tS,tL,tC,tP,tR,tO,tM,tB,tN,tI,tD,t$,tF,tU,tq,tj,tz,tH,tV,tG,tQ,tW,tK,tZ,tY,tJ,tX,t0,t1,t2,t5,t3,t4,t8,t7,t6,t9,re,rt,rr,rn,ri,ra,ro,rl,rs,ru,rc,rh,rd,rp,ry,rf,rv,rg,r_,rb,rm,rk,rw,rx,rT,rA,rE,rS,rL,rC,rP,rR,rO,rM,rB,rN,rI,rD,r$,rF,rU,rq,rj,rz,rH,rV,rG,rQ,rW,rK,rZ,rY,rJ,rX,r0,r1,r2,r5,r3,r4,r8,r7,r6,r9,ne,nt,nr,nn,ni,na,no,nl,ns,nu,nc,nh,nd,np,ny,nf,nv,ng,n_,nb,nm,nk,nw,nx,nT,nA,nE,nS,nL,nC,nP,nR,nO,nM,nB,nN,nI,nD,n$,nF,nU,nq,nj,nz,nH,nV,nG,nQ,nW,nK,nZ,nY,nJ,nX,n0,n1,n2,n5,n3,n4,n8,n7,n6,n9,ie,it,ir,ii,ia,io,il,is,iu,ic,ih,id,ip,iy,iv,ig,i_,ib,im,ik,iw,ix,iT,iA,iE,iS,iL,iC,iP,iR,iO,iM,iB,iN,iI,iD,i$,iF,iU,iq,ij,iz,iH,iV,iG,iQ,iW,iK,iZ,iY,iJ,iX,i0,i1,i2,i5,i3,i4,i8,i7,i6,i9,ae,at,ar,an,ai,aa,ao,al,as,au,ac,ah,ad,ap,ay,af,av,ag,a_,ab,am,ak,aw,ax,aT,aA,aE,aS,aL,aC,aP,aR,aO,aM,aB,aN,aI,aD,a$,aF,aU,aq,aj,az,aH,aV,aG,aQ,aW,aK,aZ,aY,aJ,aX,a0,a1,a2,a5,a3,a4,a8,a7,a6,a9,oe,ot,or,on,oi,oa,oo,ol,os,ou,oc,oh,od,op,oy,of,ov,og,o_,ob,om,ok,ow,ox,oT,oA,oE,oS,oL,oC,oP,oR,oO,oM,oB,oN,oI,oD,o$,oF,oU,oq,oj,oz,oH,oV,oG,oQ,oW,oK,oZ,oY,oJ,oX,o0,o1,o2,o5,o3,o4,o8,o7,o6,o9,le,lt,lr,ln,li,la,lo,ll,ls,lu,lc,lh,ld,lp,ly,lf,lv,lg,l_,lb,lm,lk,lw,lx,lT,lA,lE,lS,lL,lC,lP,lR,lO,lM,lB,lN,lI,lD,l$,lF,lU,lq,lj,lz,lH,lV,lG,lQ,lW,lK,lZ,lY,lJ,lX,l0,l1,l2,l5,l3,l4,l8,l7,l6,l9,se,st,sr,sn,si,sa,so,sl,ss,su,sc,sh,sd,sp,sy,sf,sv,sg,s_,sb,sm,sk,sw,sx,sT,sA,sE,sS,sL,sC,sP,sR,sO,sM,sB,sN,sI,sD,s$,sF,sU,sq,sj,sz,sH,sV,sG,sQ,sW,sK,sZ,sY,sJ,sX,s0,s1,s2,s5,s3,s4,s8,s7,s6,s9,ue,ut,ur,un,ui,ua,uo,ul,us,uu,uc,uh,ud,up,uy,uf,uv,ug,u_,ub,um,uk,uw,ux,uT,uA,uE,uS,uL,uC,uP,uR,uO,uM,uB,uN,uI,uD,u$,uF,uU,uq,uj,uz,uH,uV,uG,uQ,uW,uK,uZ,uY,uJ,uX,u0,u1,u2,u5,u3,u4,u8,u7,u6,u9,ce,ct,cr,cn,ci,ca,co,cl,cs,cu,cc,ch,cd,cp,cy,cf,cv,cg,c_,cb,cm,ck,cw,cx,cT,cA,cE,cS,cL,cC,cP,cR,cO,cM,cB,cN,cI,cD,c$,cF,cU,cq,cj,cz,cH,cV,cG,cQ,cW,cK,cZ,cY,cJ,cX,c0,c1,c2,c5,c3,c4,c8,c7,c6,c9,he,ht,hr,hn,hi,ha,ho,hl,hs,hu,hc,hh,hd,hp,hy,hf,hv,hg,h_,hb,hm,hk,hw,hx,hT,hA,hE,hS,hL,hC,hP,hR,hO,hM,hB,hN,hI,hD,h$,hF,hU,hq,hj,hz,hH,hV,hG,hQ,hW,hK,hZ,hY,hJ,hX,h0,h1,h2,h5,h3,h4,h8,h7,h6,h9,de,dt,dr,dn,di,da,dl,ds,du,dc,dh,dd,dp,dy,df,dv,dg,d_,db,dm,dk,dw,dx,dT,dA,dE,dS,dL,dC,dP,dR,dO,dM,dB,dN,dI,dD,d$,dF,dU,dq,dj,dz,dH,dV,dG,dQ,dW,dK,dZ,dY,dJ,dX,d0,d1,d2,d5,d3,d4,d8,d7,d6,d9=self,pe=d9.ShadowRoot&&(void 0===d9.ShadyCSS||d9.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,pt=Symbol(),pr=new WeakMap,pn=function(){function e(t,r,n){if(y(this,e),this._$cssResult$=!0,n!==pt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}return v(e,[{key:"styleSheet",get:function(){var e=this.o,t=this.t;if(pe&&void 0===e){var r=void 0!==t&&1===t.length;r&&(e=pr.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&pr.set(t,e))}return e}},{key:"toString",value:function(){return this.cssText}}]),e}(),pi=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new pn(1===e.length?e[0]:r.reduce(function(t,r,n){return t+function(e){if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")}(r)+e[n+1]},e[0]),e,pt)},pa=function(e,t){var r=!0,n=!1,i=void 0;if(pe)e.adoptedStyleSheets=t.map(function(e){return T(e,CSSStyleSheet)?e:e.styleSheet});else try{for(var a,o=t[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value,s=document.createElement("style"),u=d9.litNonce;void 0!==u&&s.setAttribute("nonce",u),s.textContent=l.cssText,e.appendChild(s)}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}},po=pe?function(e){return e}:function(e){return T(e,CSSStyleSheet)?function(e){var t,r="",n=!0,i=!1,a=void 0;try{for(var o,l=e.cssRules[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=o.value;r+=s.cssText}}catch(e){i=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw a}}return new pn("string"==typeof(t=r)?t:t+"",void 0,pt)}(e):e},pl=Object.is,ps=Object.defineProperty,pu=Object.getOwnPropertyDescriptor,pc=Object.getOwnPropertyNames,ph=Object.getOwnPropertySymbols,pd=Object.getPrototypeOf,pp=self,py=pp.trustedTypes,pf=py?py.emptyScript:"",pv=pp.reactiveElementPolyfillSupport,pg=function(e,t){return e},p_={toAttribute:function(e,t){switch(t){case Boolean:e=e?pf:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute:function(e,t){var r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},pb=function(e,t){return!pl(e,t)},pm={attribute:!0,type:String,converter:p_,reflect:!1,useDefault:!1,hasChanged:pb};null!=(C=Symbol).metadata||(C.metadata=Symbol("metadata")),null!=pp.litPropertyMetadata||(pp.litPropertyMetadata=new WeakMap);var pk=function(e){function t(){var e;return y(this,t),(e=p(this,t))._$Ep=void 0,e.isUpdatePending=!1,e.hasUpdated=!1,e._$Em=null,e._$Ev(),e}return i(t,e),v(t,[{key:"_$Ev",value:function(){var e,t=this;this._$ES=new Promise(function(e){return t.enableUpdating=e}),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(e=this.constructor.l)||e.forEach(function(e){return e(t)})}},{key:"addController",value:function(e){var t,r;(null!=(t=this._$EO)?t:this._$EO=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&(null==(r=e.hostConnected)||r.call(e))}},{key:"removeController",value:function(e){var t;null==(t=this._$EO)||t.delete(e)}},{key:"_$E_",value:function(){var e=new Map,t=this.constructor.elementProperties,r=!0,n=!1,i=void 0;try{for(var a,o=t.keys()[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value;this.hasOwnProperty(l)&&(e.set(l,this[l]),delete this[l])}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}e.size>0&&(this._$Ep=e)}},{key:"createRenderRoot",value:function(){var e,t=null!=(e=this.shadowRoot)?e:this.attachShadow(this.constructor.shadowRootOptions);return pa(t,this.constructor.elementStyles),t}},{key:"connectedCallback",value:function(){var e;null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(e=this._$EO)||e.forEach(function(e){var t;return null==(t=e.hostConnected)?void 0:t.call(e)})}},{key:"enableUpdating",value:function(e){}},{key:"disconnectedCallback",value:function(){var e;null==(e=this._$EO)||e.forEach(function(e){var t;return null==(t=e.hostDisconnected)?void 0:t.call(e)})}},{key:"attributeChangedCallback",value:function(e,t,r){this._$AK(e,r)}},{key:"_$ET",value:function(e,t){var r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(void 0!==n&&!0===r.reflect){var i,a=(void 0!==(null==(i=r.converter)?void 0:i.toAttribute)?r.converter:p_).toAttribute(t,r.type);this._$Em=e,null==a?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}},{key:"_$AK",value:function(e,t){var r=this.constructor,n=r._$Eh.get(e);if(void 0!==n&&this._$Em!==n){var i,a,o,l=r.getPropertyOptions(n),s="function"==typeof l.converter?{fromAttribute:l.converter}:void 0!==(null==(a=l.converter)?void 0:a.fromAttribute)?l.converter:p_;this._$Em=n;var u=s.fromAttribute(t,l.type);this[n]=null!=(i=null!=u?u:null==(o=this._$Ej)?void 0:o.get(n))?i:u,this._$Em=null}}},{key:"requestUpdate",value:function(e,t,r,n,i){if(void 0===n&&(n=!1),void 0!==e){var a,o,l=this.constructor;if(!1===n&&(i=this[e]),null!=r||(r=l.getPropertyOptions(e)),!((null!=(a=r.hasChanged)?a:pb)(i,t)||r.useDefault&&r.reflect&&i===(null==(o=this._$Ej)?void 0:o.get(e))&&!this.hasAttribute(l._$Eu(e,r))))return;this.C(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}},{key:"C",value:function(e,t,r,n){var i,a,o,l=r.useDefault,s=r.reflect,u=r.wrapped;l&&!(null!=(i=this._$Ej)?i:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,null!=(a=null!=n?n:t)?a:this[e]),!0!==u||void 0!==n)||(this._$AL.has(e)||(this.hasUpdated||l||(t=void 0),this._$AL.set(e,t)),!0===s&&this._$Em!==e&&(null!=(o=this._$Eq)?o:this._$Eq=new Set).add(e))}},{key:"_$EP",value:function(){return u(function(){var e;return x(this,function(t){switch(t.label){case 0:this.isUpdatePending=!0,t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this._$ES];case 2:return t.sent(),[3,4];case 3:return Promise.reject(t.sent()),[3,4];case 4:if(null==(e=this.scheduleUpdate()))return[3,6];return[4,e];case 5:t.sent(),t.label=6;case 6:return[2,!this.isUpdatePending]}})}).call(this)}},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){if(this.isUpdatePending){if(!this.hasUpdated){if(null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this._$Ep){var e,t=!0,r=!1,n=void 0;try{for(var i,a=this._$Ep[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var o=b(i.value,2),l=o[0],s=o[1];this[l]=s}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}this._$Ep=void 0}var u=this.constructor.elementProperties,c=!0,h=!1,d=void 0;if(u.size>0)try{for(var p,y=u[Symbol.iterator]();!(c=(p=y.next()).done);c=!0){var f=b(p.value,2),v=f[0],g=f[1],_=g.wrapped,m=this[v];!0!==_||this._$AL.has(v)||void 0===m||this.C(v,void 0,g,m)}}catch(e){h=!0,d=e}finally{try{c||null==y.return||y.return()}finally{if(h)throw d}}}var k=!1,w=this._$AL;try{(k=this.shouldUpdate(w))?(this.willUpdate(w),null==(e=this._$EO)||e.forEach(function(e){var t;return null==(t=e.hostUpdate)?void 0:t.call(e)}),this.update(w)):this._$EM()}catch(e){throw k=!1,this._$EM(),e}k&&this._$AE(w)}}},{key:"willUpdate",value:function(e){}},{key:"_$AE",value:function(e){var t;null==(t=this._$EO)||t.forEach(function(e){var t;return null==(t=e.hostUpdated)?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}},{key:"_$EM",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$ES}},{key:"shouldUpdate",value:function(e){return!0}},{key:"update",value:function(e){var t=this;this._$Eq&&(this._$Eq=this._$Eq.forEach(function(e){return t._$ET(e,t[e])})),this._$EM()}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}}],[{key:"addInitializer",value:function(e){var t;this._$Ei(),(null!=(t=this.l)?t:this.l=[]).push(e)}},{key:"observedAttributes",get:function(){return this.finalize(),this._$Eh&&m(this._$Eh.keys())}},{key:"createProperty",value:function(e,t){if(void 0===t&&(t=pm),t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){var r=Symbol(),n=this.getPropertyDescriptor(e,r,t);void 0!==n&&ps(this.prototype,e,n)}}},{key:"getPropertyDescriptor",value:function(e,t,r){var n,i=null!=(n=pu(this.prototype,e))?n:{get:function(){return this[t]},set:function(e){this[t]=e}},a=i.get,o=i.set;return{get:a,set:function(t){var n=null==a?void 0:a.call(this);null==o||o.call(this,t),this.requestUpdate(e,n,r)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(e){var t;return null!=(t=this.elementProperties.get(e))?t:pm}},{key:"_$Ei",value:function(){if(!this.hasOwnProperty(pg("elementProperties"))){var e=pd(this);e.finalize(),void 0!==e.l&&(this.l=m(e.l)),this.elementProperties=new Map(e.elementProperties)}}},{key:"finalize",value:function(){if(!this.hasOwnProperty(pg("finalized"))){if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pg("properties"))){var e=this.properties,t=m(pc(e)).concat(m(ph(e))),r=!0,n=!1,i=void 0;try{for(var a,o=t[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value;this.createProperty(l,e[l])}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}}var s=this[Symbol.metadata];if(null!==s){var u=litPropertyMetadata.get(s),c=!0,h=!1,d=void 0;if(void 0!==u)try{for(var p,y=u[Symbol.iterator]();!(c=(p=y.next()).done);c=!0){var f=b(p.value,2),v=f[0],g=f[1];this.elementProperties.set(v,g)}}catch(e){h=!0,d=e}finally{try{c||null==y.return||y.return()}finally{if(h)throw d}}}this._$Eh=new Map;var _=!0,k=!1,w=void 0;try{for(var x,T=this.elementProperties[Symbol.iterator]();!(_=(x=T.next()).done);_=!0){var A=b(x.value,2),E=A[0],S=A[1],L=this._$Eu(E,S);void 0!==L&&this._$Eh.set(L,E)}}catch(e){k=!0,w=e}finally{try{_||null==T.return||T.return()}finally{if(k)throw w}}this.elementStyles=this.finalizeStyles(this.styles)}}},{key:"finalizeStyles",value:function(e){var t=[];if(Array.isArray(e)){var r=new Set(e.flat(1/0).reverse()),n=!0,i=!1,a=void 0;try{for(var o,l=r[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=o.value;t.unshift(po(s))}}catch(e){i=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw a}}}else void 0!==e&&t.push(po(e));return t}},{key:"_$Eu",value:function(e,t){var r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}}]),t}(w(HTMLElement));pk.elementStyles=[],pk.shadowRootOptions={mode:"open"},pk[pg("elementProperties")]=new Map,pk[pg("finalized")]=new Map,null==pv||pv({ReactiveElement:pk}),(null!=(P=pp.reactiveElementVersions)?P:pp.reactiveElementVersions=[]).push("2.1.2");var pw=self,px=function(e){return e},pT=pw.trustedTypes,pA=pT?pT.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,pE="$lit$",pS="lit$"+Math.random().toFixed(9).slice(2)+"$",pL="?"+pS,pC="<"+pL+">",pP=document,pR=function(){return pP.createComment("")},pO=function(e){return null===e||"object"!=(void 0===e?"undefined":d(e))&&"function"!=typeof e},pM=Array.isArray,pB="[ \n\f\r]",pN=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pI=/-->/g,pD=/>/g,p$=RegExp(">|"+pB+"(?:([^\\s\"'>=/]+)("+pB+"*="+pB+"*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)","g"),pF=/'/g,pU=/"/g,pq=/^(?:script|style|textarea|title)$/i,pj=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return{_$litType$:1,strings:e,values:r}},pz=Symbol.for("lit-noChange"),pH=Symbol.for("lit-nothing"),pV=new WeakMap,pG=pP.createTreeWalker(pP,129,null,!1);function pQ(e,t){if(!pM(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==pA?pA.createHTML(t):t}var pW=function(e,t){for(var r,n=e.length-1,i=[],a=2===t?"<svg>":3===t?"<math>":"",o=pN,l=0;l<n;l++){for(var s=e[l],u=void 0,c=void 0,h=-1,d=0;d<s.length&&(o.lastIndex=d,null!==(c=o.exec(s)));)d=o.lastIndex,o===pN?"!--"===c[1]?o=pI:void 0!==c[1]?o=pD:void 0!==c[2]?(pq.test(c[2])&&(r=RegExp("</"+c[2],"g")),o=p$):void 0!==c[3]&&(o=p$):o===p$?">"===c[0]?(o=null!=r?r:pN,h=-1):void 0===c[1]?h=-2:(h=o.lastIndex-c[2].length,u=c[1],o=void 0===c[3]?p$:'"'===c[3]?pU:pF):o===pU||o===pF?o=p$:o===pI||o===pD?o=pN:(o=p$,r=void 0);var p=o===p$&&e[l+1].startsWith("/>")?" ":"";a+=o===pN?s+pC:h>=0?(i.push(u),s.slice(0,h)+pE+s.slice(h)+pS+p):s+pS+(-2===h?l:p)}return[pQ(e,a+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]},pK=function(){function e(t,r){var n=t.strings,i=t._$litType$;y(this,e),this.parts=[];var a=0,o=0,l=n.length-1,s=this.parts,u=b(pW(n,i),2),c=u[0],h=u[1];if(this.el=e.createElement(c,r),pG.currentNode=this.el.content,2===i||3===i){var d,p=this.el.content.firstChild;p.replaceWith.apply(p,m(p.childNodes))}for(;null!==(d=pG.nextNode())&&s.length<l;){if(1===d.nodeType){var f=!0,v=!1,g=void 0;if(d.hasAttributes())try{for(var _,k=d.getAttributeNames()[Symbol.iterator]();!(f=(_=k.next()).done);f=!0){var w=_.value;if(w.endsWith(pE)){var x=h[o++],T=d.getAttribute(w).split(pS),A=/([.?@])?(.*)/.exec(x);s.push({type:1,index:a,name:A[2],strings:T,ctor:"."===A[1]?p0:"?"===A[1]?p1:"@"===A[1]?p2:pX}),d.removeAttribute(w)}else w.startsWith(pS)&&(s.push({type:6,index:a}),d.removeAttribute(w))}}catch(e){v=!0,g=e}finally{try{f||null==k.return||k.return()}finally{if(v)throw g}}if(pq.test(d.tagName)){var E=d.textContent.split(pS),S=E.length-1;if(S>0){d.textContent=pT?pT.emptyScript:"";for(var L=0;L<S;L++)d.append(E[L],pR()),pG.nextNode(),s.push({type:2,index:++a});d.append(E[S],pR())}}}else if(8===d.nodeType)if(d.data===pL)s.push({type:2,index:a});else for(var C=-1;-1!==(C=d.data.indexOf(pS,C+1));)s.push({type:7,index:a}),C+=pS.length-1;a++}}return v(e,null,[{key:"createElement",value:function(e,t){var r=pP.createElement("template");return r.innerHTML=e,r}}]),e}();function pZ(e,t,r,n){if(void 0===r&&(r=e),t===pz)return t;var i,a,o,l,s=void 0!==n?null==(o=r._$Co)?void 0:o[n]:r._$Cl,u=pO(t)?void 0:t._$litDirective$;return(null==s?void 0:s.constructor)!==u&&(null==s||null==(l=s._$AO)||l.call(s,!1),void 0===u?s=void 0:(s=new u(e))._$AT(e,r,n),void 0!==n?(null!=(a=(i=r)._$Co)?a:i._$Co=[])[n]=s:r._$Cl=s),void 0!==s&&(t=pZ(e,s._$AS(e,t.values),s,n)),t}var pY=function(){function e(t,r){y(this,e),this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}return v(e,[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"u",value:function(e){var t,r=this._$AD,n=r.el.content,i=r.parts,a=(null!=(t=null==e?void 0:e.creationScope)?t:pP).importNode(n,!0);pG.currentNode=a;for(var o=pG.nextNode(),l=0,s=0,u=i[0];void 0!==u;){if(l===u.index){var c=void 0;2===u.type?c=new pJ(o,o.nextSibling,this,e):1===u.type?c=new u.ctor(o,u.name,u.strings,this,e):6===u.type&&(c=new p5(o,this,e)),this._$AV.push(c),u=i[++s]}l!==(null==u?void 0:u.index)&&(o=pG.nextNode(),l++)}return pG.currentNode=pP,a}},{key:"p",value:function(e){var t=0,r=!0,n=!1,i=void 0;try{for(var a,o=this._$AV[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value;void 0!==l&&(void 0!==l.strings?(l._$AI(e,l,t),t+=l.strings.length-2):l._$AI(e[t])),t++}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}}}]),e}(),pJ=function(){function e(t,r,n,i){var a;y(this,e),this.type=2,this._$AH=pH,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=null==(a=null==i?void 0:i.isConnected)||a}return v(e,[{key:"_$AU",get:function(){var e,t;return null!=(e=null==(t=this._$AM)?void 0:t._$AU)?e:this._$Cv}},{key:"parentNode",get:function(){var e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(e,t){var r;void 0===t&&(t=this),pO(e=pZ(this,e,t))?e===pH||null==e||""===e?(this._$AH!==pH&&this._$AR(),this._$AH=pH):e!==this._$AH&&e!==pz&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):pM(r=e)||"function"==typeof(null==r?void 0:r[Symbol.iterator])?this.k(e):this._(e)}},{key:"O",value:function(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}},{key:"T",value:function(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}},{key:"_",value:function(e){this._$AH!==pH&&pO(this._$AH)?this._$AA.nextSibling.data=e:this.T(pP.createTextNode(e)),this._$AH=e}},{key:"$",value:function(e){var t,r=e.values,n=e._$litType$,i="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=pK.createElement(pQ(n.h,n.h[0]),this.options)),n);if((null==(t=this._$AH)?void 0:t._$AD)===i)this._$AH.p(r);else{var a=new pY(i,this),o=a.u(this.options);a.p(r),this.T(o),this._$AH=a}}},{key:"_$AC",value:function(e){var t=pV.get(e.strings);return void 0===t&&pV.set(e.strings,t=new pK(e)),t}},{key:"k",value:function(t){pM(this._$AH)||(this._$AH=[],this._$AR());var r,n=this._$AH,i=0,a=!0,o=!1,l=void 0;try{for(var s,u=t[Symbol.iterator]();!(a=(s=u.next()).done);a=!0){var c=s.value;i===n.length?n.push(r=new e(this.O(pR()),this.O(pR()),this,this.options)):r=n[i],r._$AI(c),i++}}catch(e){o=!0,l=e}finally{try{a||null==u.return||u.return()}finally{if(o)throw l}}i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}},{key:"_$AR",value:function(e,t){for(void 0===e&&(e=this._$AA.nextSibling),null==(r=this._$AP)||r.call(this,!1,!0,t);e!==this._$AB;){var r,n=px(e).nextSibling;px(e).remove(),e=n}}},{key:"setConnected",value:function(e){var t;void 0===this._$AM&&(this._$Cv=e,null==(t=this._$AP)||t.call(this,e))}}]),e}(),pX=function(){function e(t,r,n,i,a){y(this,e),this.type=1,this._$AH=pH,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=a,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=pH}return v(e,[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e,t,r,n){void 0===t&&(t=this);var i=this.strings,a=!1;if(void 0===i)(a=!pO(e=pZ(this,e,t,0))||e!==this._$AH&&e!==pz)&&(this._$AH=e);else{var o,l,s=e;for(e=i[0],o=0;o<i.length-1;o++)(l=pZ(this,s[r+o],t,o))===pz&&(l=this._$AH[o]),a||(a=!pO(l)||l!==this._$AH[o]),l===pH?e=pH:e!==pH&&(e+=(null!=l?l:"")+i[o+1]),this._$AH[o]=l}a&&!n&&this.j(e)}},{key:"j",value:function(e){e===pH?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}]),e}(),p0=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e.type=3,e}return i(t,e),v(t,[{key:"j",value:function(e){this.element[this.name]=e===pH?void 0:e}}]),t}(pX),p1=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e.type=4,e}return i(t,e),v(t,[{key:"j",value:function(e){this.element.toggleAttribute(this.name,!!e&&e!==pH)}}]),t}(pX),p2=function(e){function t(e,r,n,i,a){var o;return y(this,t),(o=p(this,t,[e,r,n,i,a])).type=5,o}return i(t,e),v(t,[{key:"_$AI",value:function(e,t){if(void 0===t&&(t=this),(e=null!=(r=pZ(this,e,t,0))?r:pH)!==pz){var r,n=this._$AH,i=e===pH&&n!==pH||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==pH&&(n===pH||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}}},{key:"handleEvent",value:function(e){var t,r;"function"==typeof this._$AH?this._$AH.call(null!=(t=null==(r=this.options)?void 0:r.host)?t:this.element,e):this._$AH.handleEvent(e)}}]),t}(pX),p5=function(){function e(t,r,n){y(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}return v(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){pZ(this,e)}}]),e}(),p3=pw.litHtmlPolyfillSupport;null==p3||p3(pK,pJ),(null!=(R=pw.litHtmlVersions)?R:pw.litHtmlVersions=[]).push("3.3.2");var p4=function(e,t,r){var n=null!=(a=null==r?void 0:r.renderBefore)?a:t,i=n._$litPart$;if(void 0===i){var a,o,l=null!=(o=null==r?void 0:r.renderBefore)?o:null;n._$litPart$=i=new pJ(t.insertBefore(pR(),l),l,void 0,null!=r?r:{})}return i._$AI(e),i},p8=globalThis,p7=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e.renderOptions={host:e},e._$Do=void 0,e}return i(t,e),v(t,[{key:"createRenderRoot",value:function(){var t,r=e.prototype.createRenderRoot.call(this);return null!=(t=this.renderOptions).renderBefore||(t.renderBefore=r.firstChild),r}},{key:"update",value:function(t){var r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),e.prototype.update.call(this,t),this._$Do=p4(r,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var t;e.prototype.connectedCallback.call(this),null==(t=this._$Do)||t.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var t;e.prototype.disconnectedCallback.call(this),null==(t=this._$Do)||t.setConnected(!1)}},{key:"render",value:function(){return pz}}]),t}(pk);p7._$litElement$=!0,p7.finalized=!0,null==(M=p8.litElementHydrateSupport)||M.call(p8,{LitElement:p7});var p6=p8.litElementPolyfillSupport;null==p6||p6({LitElement:p7}),(null!=(O=p8.litElementVersions)?O:p8.litElementVersions=[]).push("4.2.2");var p9=function(e){return function(t,r){void 0!==r?r.addInitializer(function(){customElements.define(e,t)}):customElements.define(e,t)}},ye={attribute:!0,type:String,converter:p_,reflect:!1,hasChanged:pb},yt=function(e,t,r){void 0===e&&(e=ye);var n=r.kind,i=r.metadata,a=self.litPropertyMetadata.get(i);if(void 0===a&&self.litPropertyMetadata.set(i,a=new Map),"setter"===n&&((e=Object.create(e)).wrapped=!0),a.set(r.name,e),"accessor"===n){var o=r.name;return{set:function(r){var n=t.get.call(this);t.set.call(this,r),this.requestUpdate(o,n,e,!0,r)},init:function(t){return void 0!==t&&this.C(o,void 0,e,t),t}}}if("setter"===n){var l=r.name;return function(r){var n=this[l];t.call(this,r),this.requestUpdate(l,n,e,!0,r)}}throw Error("Unsupported decorator location: "+n)};function yr(e){return function(t,r){var n;return"object"==(void 0===r?"undefined":d(r))?yt(e,t,r):(n=t.hasOwnProperty(r),t.constructor.createProperty(r,e),n?Object.getOwnPropertyDescriptor(t,r):void 0)}}function yn(e){var t,r;return yr((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),r=r={state:!0,attribute:!1},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}var yi=function(e,t,r){return r.configurable=!0,r.enumerable=!0,Reflect.decorate&&"object"!=(void 0===t?"undefined":d(t))&&Object.defineProperty(e,t,r),r};function ya(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}:host([hidden]){display:none!important}::slotted(theoplayer-time-range){-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}"]);return ya=function(){return e},e}var yo=pi(ya());function yl(){var e=a(["<slot></slot>"]);return yl=function(){return e},e}function ys(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}I=p9("theoplayer-control-bar"),e.ControlBar=void 0,new(N=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[yo],t.shadowRootOptions=r({},p7.shadowRootOptions,{delegatesFocus:!0}),D(),t}return i(t,e),t}(l),B=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return pj(yl())},t}(p7),e.ControlBar=($=o(B,[],[I],p7).c)[0],D=$[1],N);var yu=0;function yc(e){return"__private_"+yu+++"_"+e}var yh=function(e){return function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return{_$litDirective$:e,values:r}}},yd=function(){function e(t){y(this,e)}return v(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AT",value:function(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}},{key:"_$AS",value:function(e,t){return this.update(e,t)}},{key:"update",value:function(e,t){return this.render.apply(this,m(t))}}]),e}(),yp=yh(function(e){function t(e){var r;if(y(this,t),r=p(this,t,[e]),2!==e.type)throw Error("templateContent can only be used in child bindings");return r}return i(t,e),v(t,[{key:"render",value:function(e){return this.vt===e?pz:(this.vt=e,document.importNode(e.content,!0))}}]),t}(yd));function yy(){var e=a([":host{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-tap-highlight-color:transparent;align-items:center;background:transparent;background:var(--theoplayer-control-background,transparent);-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;color:var(--theoplayer-button-text-color,var(--theoplayer-text-color,#fff));display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;display:var(--theoplayer-before-first-play-display,inline-flex);font-size:14px;font-size:var(--theoplayer-text-font-size,14px);justify-content:center;line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));padding:10px;padding:var(--theoplayer-control-padding,10px);pointer-events:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}:host([hidden]){display:none!important}:host(:not([disabled])){cursor:pointer}:host(:focus){-webkit-box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);-webkit-box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));outline:0}:host(:focus:not(:focus-visible)){-webkit-box-shadow:none;box-shadow:none}:host(:hover){background:transparent;background:var(--theoplayer-control-hover-background,var(--theoplayer-control-background,transparent))}:host([aria-checked=true]){background:#fff;background:var(--theoplayer-button-checked-background,#fff);color:#000;color:var(--theoplayer-button-checked-color,#000)}:host([disabled]){background:transparent;background:var(--theoplayer-control-background,transparent);color:#ccc;color:var(--theoplayer-button-disabled-text-color,#ccc)}[part$=icon],[part~=icon]{font-size:0}::slotted(img),::slotted(svg),img,svg{fill:currentColor;color:#fff;color:var(--theoplayer-icon-color,#fff);height:24px;height:var(--theoplayer-button-icon-height,var(--theoplayer-control-height,24px));max-height:100%;max-width:100%;min-width:100%;-webkit-transition:none;transition:none;-webkit-transition:var(--theoplayer-button-icon-transition,none);transition:var(--theoplayer-button-icon-transition,none);vertical-align:middle;width:24px;width:var(--theoplayer-button-icon-width,var(--theoplayer-control-height,24px))}::slotted(img),img{-webkit-box-shadow:none;box-shadow:none;-webkit-box-shadow:var(--theoplayer-button-icon-shadow,none);box-shadow:var(--theoplayer-button-icon-shadow,none)}::slotted(svg),svg{-webkit-filter:drop-shadow(none);filter:drop-shadow(none);-webkit-filter:drop-shadow(var(--theoplayer-button-icon-shadow,none));filter:drop-shadow(var(--theoplayer-button-icon-shadow,none))}:host(:hover:not([disabled])) ::slotted(img),:host(:hover:not([disabled])) img{-webkit-box-shadow:0 0 4px hsla(0,0%,100%,.5);box-shadow:0 0 4px hsla(0,0%,100%,.5);-webkit-box-shadow:var(--theoplayer-button-hover-icon-shadow,0 0 4px hsla(0,0%,100%,.5));box-shadow:var(--theoplayer-button-hover-icon-shadow,0 0 4px hsla(0,0%,100%,.5))}:host(:hover:not([disabled])) ::slotted(svg),:host(:hover:not([disabled])) svg{-webkit-filter:drop-shadow(0 0 4px hsla(0,0%,100%,.5));filter:drop-shadow(0 0 4px rgba(255,255,255,.5));-webkit-filter:drop-shadow(var(--theoplayer-button-hover-icon-shadow,0 0 4px hsla(0,0%,100%,.5)));filter:drop-shadow(var(--theoplayer-button-hover-icon-shadow,0 0 4px rgba(255,255,255,.5)))}"]);return yy=function(){return e},e}var yf=pi(yy()),yv=((A={}).CONFIGURATION="configuration",A.SOURCE="source",A.AUTOPLAY="autoplay",A.MUTED="muted",A.FULLSCREEN="fullscreen",A.FULLWINDOW="fullwindow",A.FLUID="fluid",A.DEVICE_TYPE="device-type",A.MOBILE="mobile",A.TV="tv",A.TV_FOCUS="tv-focus",A.MOBILE_ONLY="mobile-only",A.MOBILE_HIDDEN="mobile-hidden",A.TV_ONLY="tv-only",A.TV_HIDDEN="tv-hidden",A.USER_IDLE="user-idle",A.USER_IDLE_TIMEOUT="user-idle-timeout",A.NO_AUTO_HIDE="no-auto-hide",A.DISABLED="disabled",A.INERT="inert",A.HIDDEN="hidden",A.PAUSED="paused",A.ENDED="ended",A.VOLUME_LEVEL="volume-level",A.CASTING="casting",A.LOADING="loading",A.STREAM_TYPE="stream-type",A.LIVE="live",A.LIVE_ONLY="live-only",A.LIVE_HIDDEN="live-hidden",A.LIVE_THRESHOLD="live-threshold",A.DVR_THRESHOLD="dvr-threshold",A.REMAINING="remaining",A.REMAINING_WHEN_LIVE="remaining-when-live",A.SHOW_DURATION="show-duration",A.SEEK_OFFSET="seek-offset",A.MENU="menu",A.MENU_OPENED="menu-opened",A.MENU_CLOSE_ON_INPUT="menu-close-on-input",A.ARIA_LABEL="aria-label",A.ARIA_LIVE="aria-live",A.ARIA_CHECKED="aria-checked",A.HAS_AUDIO="has-audio",A.HAS_SUBTITLES="has-subtitles",A.HAS_ERROR="has-error",A.HAS_FIRST_PLAY="has-first-play",A.CAST_STATE="cast-state",A.TRACK_TYPE="track-type",A.SHOW_OFF="show-off",A.PLAYING_AD="playing-ad",A.SHOW_AD_MARKERS="show-ad-markers",A.CLICKTHROUGH="clickthrough",A.PROPERTY="property",A.VALUE="value",A.LANG="lang",A),yg=((E={})[E.ENTER=13]="ENTER",E[E.ESCAPE=27]="ESCAPE",E[E.SPACE=32]="SPACE",E[E.END=35]="END",E[E.HOME=36]="HOME",E[E.LEFT=37]="LEFT",E[E.UP=38]="UP",E[E.RIGHT=39]="RIGHT",E[E.DOWN=40]="DOWN",E[E.BACK_SAMSUNG=88]="BACK_SAMSUNG",E[E.BACK_WEBOS=461]="BACK_WEBOS",E[E.BACK_TIZEN=10009]="BACK_TIZEN",E);function y_(e){return 37<=e&&e<=40}function yb(e){return 10009===e||27===e||88===e||461===e}function ym(e){return 13===e||32===e}function yk(){var e=a(["",""]);return yk=function(){return e},e}function yw(){var e=a(["<slot></slot>"]);return yw=function(){return e},e}function yx(e,t){return void 0===t&&(t=""),"<style>"+t+"</style>"+e}function yT(){var e=a([":host{padding:0}a{color:#fff;color:var(--theoplayer-button-text-color,var(--theoplayer-text-color,#fff));padding:10px;padding:var(--theoplayer-control-padding,10px);text-decoration:none}:host(:focus){-webkit-box-shadow:none;box-shadow:none;outline:0}a:focus{-webkit-box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);-webkit-box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));outline:0}a:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}:host([aria-checked=true]) a{color:#000;color:var(--theoplayer-button-checked-color,#000)}:host([disabled]) a{color:#ccc;color:var(--theoplayer-button-disabled-text-color,#ccc)}"]);return yT=function(){return e},e}j=p9("theoplayer-button"),H=yr({reflect:!0,type:Boolean,attribute:yv.DISABLED}),V=yr({reflect:!0,state:!0,type:String,attribute:yv.ARIA_LABEL}),e.Button=void 0,new(q=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[yf],z(),t}return i(t,e),t}(l),F=yc("____private_ariaLabel_1"),U=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,F,{writable:!0,value:void 0}),Q(r),r._disabled=!1,ys(r,F)[F]=G(r,null),r._onClick=function(){r.handleClick()},r._onKeyDown=function(e){!ym(e.keyCode)||e.metaKey||e.altKey?r.removeEventListener("keyup",r._onKeyUp):r.addEventListener("keyup",r._onKeyUp)},r._onKeyUp=function(e){r.removeEventListener("keyup",r._onKeyUp),ym(e.keyCode)&&r.handleClick()},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","button"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute(yv.ARIA_LIVE)||this.setAttribute(yv.ARIA_LIVE,"polite"),this._disabled||this._enable()},r.disconnectedCallback=function(){this.removeEventListener("click",this._onClick),this.removeEventListener("keydown",this._onKeyDown),this.removeEventListener("keyup",this._onKeyUp)},r._enable=function(){this.removeEventListener("click",this._onClick),this.removeEventListener("keydown",this._onKeyDown),this.removeEventListener("keyup",this._onKeyUp),this.addEventListener("click",this._onClick),this.addEventListener("keydown",this._onKeyDown),this.setAttribute("aria-disabled","false"),this.setAttribute("tabindex","0")},r._disable=function(){this.removeEventListener("click",this._onClick),this.removeEventListener("keydown",this._onKeyDown),this.removeEventListener("keyup",this._onKeyUp),this.setAttribute("aria-disabled","true"),this.removeAttribute("tabindex"),this.blur()},r.render=function(){return this._template?pj(yk(),yp(this._template)):pj(yw())},r.handleClick=function(){},v(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?this._disable():this._enable()}},{key:"ariaLabel",get:function(){return ys(this,F)[F]},set:function(e){ys(this,F)[F]=e}}]),t}(p7),G=(K=(W=o(U,[[H,4,"disabled"],[V,1,"ariaLabel"]],[j],p7)).e)[0],Q=K[1],e.Button=(Z=W.c)[0],z=Z[1],q);var yA=pi(yT()),yE=function(e){return e},yS=function(){return document.createComment("")},yL=function(e,t,r){var n=e._$AA.parentNode,i=void 0===t?e._$AB:t._$AA;if(void 0===r)r=new pJ(n.insertBefore(yS(),i),n.insertBefore(yS(),i),e,e.options);else{var a,o,l=r._$AB.nextSibling,s=r._$AM,u=s!==e;if(u&&(null==(a=r._$AQ)||a.call(r,e),r._$AM=e,void 0!==r._$AP&&(o=e._$AU)!==s._$AU&&r._$AP(o)),l!==i||u)for(var c=r._$AA;c!==l;){var h=yE(c).nextSibling;yE(n).insertBefore(c,i),c=h}}return r},yC=function(e,t,r){return void 0===r&&(r=e),e._$AI(t,r),e},yP={},yR=function(e){e._$AR(),e._$AA.remove()},yO=function(e,t){var r=e._$AN;if(void 0===r)return!1;var n=!0,i=!1,a=void 0;try{for(var o,l,s=r[Symbol.iterator]();!(n=(l=s.next()).done);n=!0){var u=l.value;null==(o=u._$AO)||o.call(u,t,!1),yO(u,t)}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return!0},yM=function(e){var t,r;do{if(void 0===(t=e._$AM))break;(r=t._$AN).delete(e),e=t}while(0===(null==r?void 0:r.size))},yB=function(e){for(var t;t=e._$AM;e=t){var r=t._$AN;if(void 0===r)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),yD(t)}};function yN(e){void 0!==this._$AN?(yM(this),this._$AM=e,yB(this)):this._$AM=e}function yI(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=0);var n=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(t)if(Array.isArray(n))for(var a=r;a<n.length;a++)yO(n[a],!1),yM(n[a]);else null!=n&&(yO(n,!1),yM(n));else yO(this,e)}var yD=function(e){2==e.type&&(null!=e._$AP||(e._$AP=yI),null!=e._$AQ||(e._$AQ=yN))},y$=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e._$AN=void 0,e}return i(t,e),v(t,[{key:"_$AT",value:function(t,r,n){e.prototype._$AT.call(this,t,r,n),yB(this),this.isConnected=t._$AU}},{key:"_$AO",value:function(e,t){var r,n;void 0===t&&(t=!0),e!==this.isConnected&&(this.isConnected=e,e?null==(r=this.reconnected)||r.call(this):null==(n=this.disconnected)||n.call(this)),t&&(yO(this,e),yM(this))}},{key:"setValue",value:function(e){if(void 0===this._$Ct.strings)this._$Ct._$AI(e,this);else{var t=m(this._$Ct._$AH);t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}},{key:"disconnected",value:function(){}},{key:"reconnected",value:function(){}}]),t}(yd),yF=function(){return new yU},yU=function e(){y(this,e)},yq=new WeakMap,yj=yh(function(e){function t(){return y(this,t),p(this,t,arguments)}return i(t,e),v(t,[{key:"render",value:function(e){return pH}},{key:"update",value:function(e,t){var r,n=b(t,1)[0],i=n!==this.G;return i&&void 0!==this.G&&this.rt(void 0),(i||this.lt!==this.ct)&&(this.G=n,this.ht=null==(r=e.options)?void 0:r.host,this.rt(this.ct=e.element)),pH}},{key:"rt",value:function(e){if(this.isConnected||(e=void 0),"function"==typeof this.G){var t,r=null!=(t=this.ht)?t:self,n=yq.get(r);void 0===n&&(n=new WeakMap,yq.set(r,n)),void 0!==n.get(this.G)&&this.G.call(this.ht,void 0),n.set(this.G,e),void 0!==e&&this.G.call(this.ht,e)}else this.G.value=e}},{key:"lt",get:function(){var e,t,r;return"function"==typeof this.G?null==(t=yq.get(null!=(e=this.ht)?e:self))?void 0:t.get(this.G):null==(r=this.G)?void 0:r.value}},{key:"disconnected",value:function(){this.lt===this.ct&&this.rt(void 0)}},{key:"reconnected",value:function(){this.rt(this.ct)}}]),t}(y$));function yz(){var e=a(["",""]);return yz=function(){return e},e}function yH(){var e=a(["<a ",' href="','" target="','" @keydown="','" @click="','">',"</a>"]);return yH=function(){return e},e}function yV(){var e=a(["<slot></slot>"]);return yV=function(){return e},e}et=p9("theoplayer-link-button"),en=yr({reflect:!0,type:Boolean,attribute:yv.DISABLED}),ei=yn(),ea=yn(),e.LinkButton=void 0,new(ee=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[yA],er(),t}return i(t,e),t}(l),Y=yc("____private_href_1"),J=yc("____private_target_2"),X=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,Y,{writable:!0,value:void 0}),Object.defineProperty(r,J,{writable:!0,value:void 0}),es(r),r._disabled=!1,r._linkRef=yF(),ys(r,Y)[Y]=eo(r,""),ys(r,J)[J]=el(r,""),r._onKeyDown=function(e){if(!e.metaKey&&!e.altKey)if(e.keyCode!==yg.SPACE)return;else{var t;e.preventDefault(),null==(t=r._linkRef.value)||t.click()}},r._onClick=function(){r.disabled||r.handleClick()},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","button"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute(yv.ARIA_LIVE)||this.setAttribute(yv.ARIA_LIVE,"polite"),this.hasAttribute(yv.DISABLED)||this._enable()},r._enable=function(){this.setAttribute("aria-disabled","false"),this.setAttribute("tabindex","0")},r._disable=function(){this.setAttribute("aria-disabled","true"),this.removeAttribute("tabindex"),this.blur()},r.render=function(){return this._template?pj(yz(),yp(this._template)):pj(yH(),yj(this._linkRef),this.href,this.target,this._onKeyDown,this._onClick,this.renderLinkContent())},r.renderLinkContent=function(){return pj(yV())},r.handleClick=function(){},v(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?this._disable():this._enable()}},{key:"href",get:function(){return ys(this,Y)[Y]},set:function(e){ys(this,Y)[Y]=e}},{key:"target",get:function(){return ys(this,J)[J]},set:function(e){ys(this,J)[J]=e}}]),t}(p7),eo=(ec=(eu=o(X,[[en,4,"disabled"],[ei,1,"href"],[ea,1,"target"]],[et],p7)).e)[0],el=ec[1],es=ec[2],e.LinkButton=(eh=eu.c)[0],er=eh[1],ee);var yG=function(e){function t(e){var r;if(y(this,t),(r=p(this,t,[e])).it=pH,2!==e.type)throw Error(r.constructor.directiveName+"() can only be used in child bindings");return r}return i(t,e),v(t,[{key:"render",value:function(e){if(e===pH||null==e)return this._t=void 0,this.it=e;if(e===pz)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;var t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}]),t}(yd);yG.directiveName="unsafeHTML",yG.resultType=1;var yQ=function(e){function t(){return y(this,t),p(this,t,arguments)}return i(t,e),t}(yG);yQ.directiveName="unsafeSVG",yQ.resultType=2;var yW=yh(yQ);function yK(){var e=a([":host{--theoplayer-icon-color:var(--theoplayer-play-button-icon-color,unset);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}:host(:not([ended])) [part=replay-icon],:host(:not([paused])) [part=play-icon],:host([ended]) [part=pause-icon],:host([ended]) [part=play-icon],:host([paused]) [part=pause-icon]{display:none!important}"]);return yK=function(){return e},e}var yZ=pi(yK());function yY(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=_(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function yJ(){var e=a([":host{display:contents}::slotted(:not([no-auto-hide])),slot{opacity:inherit}"]);return yJ=function(){return e},e}var yX=pi(yJ());function y0(){var e=a(["<slot></slot>"]);return y0=function(){return e},e}function y1(){}function y2(e){return e.nodeType===Node.ELEMENT_NODE}function y5(e){return T(e,HTMLElement)}ey=p9("theoplayer-slot-container"),e.SlotContainer=void 0,new(ep=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[yX],ef(),t}return i(t,e),t}(l),ed=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return pj(y0())},t}(p7),e.SlotContainer=(ev=o(ed,[],[ey],p7).c)[0],ef=ev[1],ep);var y3="function"==typeof Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},y4="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){return Array.prototype.slice.call(e)},y8="function"==typeof Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r,e))return e[r]},y7="function"==typeof Array.prototype.findIndex?function(e,t){return e.findIndex(t)}:function(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r,e))return r;return -1},y6="function"==typeof String.prototype.startsWith?function(e,t){return e.startsWith(t)}:function(e,t){return e.substring(0,t.length)===t};function y9(e,t,r){r?e.setAttribute(t,""):e.removeAttribute(t)}function fe(e){if(e.shadowRoot)return e.shadowRoot.children;if("slot"===e.localName.toLowerCase()){var t=e.assignedNodes();if(t.length>0)return t.filter(y2)}return y5(e)?e.children:[]}function ft(e){for(var t,r=[],n=yY(e.assignedNodes({flatten:!0}));!(t=n()).done;){var i=t.value;y2(i)&&(r.push(i),"theoplayer-slot-container"===i.nodeName.toLowerCase())&&r.push.apply(r,[].concat(y4(i.children)))}return r}function fr(e){var t=[];return function e(t,r){if(y5(t)&&"none"!==getComputedStyle(t).display){if(t.hasAttribute("tabindex")&&Number(t.getAttribute("tabindex"))>=0)return void r.push(t);switch(t.tagName.toLowerCase()){case"button":case"input":case"textarea":case"select":case"details":r.push(t);break;case"a":t.href&&r.push(t);break;default:for(var n=fe(t),i=0;i<n.length;i++)e(n[i],r)}}}(e,t),t}function fn(e){var t=e.nodeName.toLowerCase();if(t.indexOf("-")>=0)if(!customElements.get(t))return customElements.whenDefined(t);else customElements.upgrade(e)}function fi(e,t){if(!e.closest)return null;var r,n=e.closest(t);if(n)return n;var i=null==e.getRootNode||null==(r=e.getRootNode.call(e))?void 0:r.host;return i?fi(i,t):null}var fa="theoplayerUiObservedProperties";function fo(e){return fa in e&&y3(e[fa])}var fl=function(e){return function(t,r){Object.defineProperty(t.prototype,fa,{value:e})}};function fs(e,t,r){return u(function(){var n;return x(this,function(i){switch(i.label){case 0:if(t.contains(e))return[2];if(!(e.nodeName.indexOf("-")>=0&&!fo(e)))return[3,3];return[4,Promise.resolve()];case 1:return i.sent(),[4,customElements.whenDefined(e.nodeName.toLowerCase())];case 2:i.sent(),customElements.upgrade(e),i.label=3;case 3:if(fo(e)&&r(e),!((n=fe(e)).length>0))return[3,5];return[4,Promise.all(y4(n).map(function(e){return fs(e,t,r)}))];case 4:i.sent(),i.label=5;case 5:return[2]}})})()}function fu(e,t){try{var r=new Intl.DurationFormat(e,{style:t}),n=new Intl.DurationFormat(e,{style:t,secondsDisplay:"always"}).format({seconds:0});return function(e){return 0===e.hours&&0===e.minutes&&0===e.seconds?n:r.format(e)}}catch(e){return"narrow"===t?fh:fc}}function fc(e){var t=e.hours,r=e.minutes,n=e.seconds,i="";return 0!==t&&(i+=t+" hour"+(1===t?"":"s")),0!==r&&(""!==i&&(i+=", "),i+=r+" minute"+(1===r?"":"s")),(0!==n||""===i)&&(""!==i&&(i+=", "),i+=n+" second"+(1===n?"":"s")),i}function fh(e){var t=e.hours,r=e.minutes,n=e.seconds,i="";return 0!==t&&(i+=""+t+"h"),0!==r&&(""!==i&&(i+=" "),i+=""+r+"m"),(0!==n||""===i)&&(""!==i&&(i+=" "),i+=""+n+"s"),i}function fd(e){try{var t=new Intl.NumberFormat(e,{style:"percent"});return function(e){return t.format(e)}}catch(e){return fp}}function fp(e){return""+Math.round(100*e)+"%"}function fy(e){try{var t={style:"unit",unitDisplay:"narrow"},n=new Intl.NumberFormat(e,r({},t,{unit:"kilobit-per-second",maximumFractionDigits:0})),i=new Intl.NumberFormat(e,r({},t,{unit:"megabit-per-second",minimumSignificantDigits:2,maximumFractionDigits:1,roundingPriority:"lessPrecision"}));return function(e){return e>1e6?i.format(e/1e6):n.format(e/1e3)}}catch(e){return ff}}function ff(e){return e>1e7?""+(e/1e6).toFixed(0)+"Mb/s":e>1e6?""+(e/1e6).toFixed(1)+"Mb/s":""+(e/1e3).toFixed(0)+"kb/s"}function fv(e){try{var t=new Intl.DisplayNames([e,"en"],{type:"language",fallback:"none"});return function(e){try{return t.of(e)}catch(e){return}}}catch(e){return function(e){}}}var fg={playAria:"play",pauseAria:"pause",replayAria:"replay",muteAria:"mute",unmuteAria:"unmute",volumeAria:"volume",seekAria:"seek",seekForwardAria:function(e){return"seek forward by "+e},seekBackwardAria:function(e){return"seek backward by "+e},live:"LIVE",seekToLiveAria:"seek to live",fullscreenAria:"enter fullscreen",fullscreenExitAria:"exit fullscreen",airplayAria:"start playing on AirPlay",airplayConnectedAria:"stop playing on AirPlay",chromecastAria:"start casting to Chromecast",chromecastConnectedAria:"stop casting to Chromecast",chromecastHeading:"Playing on",chromecastDefaultReceiverName:"Chromecast",timeOfTotalAria:function(e,t){return e+" of "+t},playbackTimeAria:"playback time",unknownTimeAria:"video not loaded, unknown time",adText:"Ad",adBreakText:function(e,t){return"Ad "+e+" of "+t},adClickThroughText:"Visit Advertiser",adCountdownText:function(e){return"Content will resume in "+e},adSkipButtonText:"Skip Ad",adSkipCountdownText:function(e){return"Skip in "+e},liveStreamLoading:"Loading...",liveStreamOffline:"The live stream hasn't started yet",closeMenuAria:"close menu",openLanguageMenuAria:"open language menu",languageMenuHeading:"Language",audioMenuHeading:"Audio",subtitleMenuHeading:"Subtitles",subtitleOff:"Off",openPlaybackRateMenuAria:"open playback speed menu",playbackRateMenuHeading:"Playback speed",formatPlaybackRate:function(e){return 1===e?"Normal":""+e+"x"},openSettingsMenuAria:"open settings menu",settingsMenuHeading:"Settings",qualityMenuHeading:"Quality",textTrackStyleMenuHeading:"Subtitle options",textTrackStyleFontFamily:"Font family",textTrackStyleFontColor:"Font color",textTrackStyleFontOpacity:"Font opacity",textTrackStyleFontSize:"Font size",textTrackStyleBackgroundColor:"Background color",textTrackStyleBackgroundOpacity:"Background opacity",textTrackStyleWindowColor:"Window color",textTrackStyleWindowOpacity:"Window opacity",textTrackStyleEdgeStyle:"Character edge style",textTrackStyleDefaultLabel:"Default",textTrackStyleCustomLabel:"Custom",textTrackStyleResetLabel:"Reset",fontFamilyLabels:{"Monospace Serif":"Monospace Serif","Proportional Serif":"Proportional Serif","Monospace Sans":"Monospace Sans","Proportional Sans":"Proportional Sans"},colorLabels:{White:"White",Yellow:"Yellow",Green:"Green",Cyan:"Cyan",Blue:"Blue",Magenta:"Magenta",Red:"Red",Black:"Black"},edgeStyleLabels:{none:"None",dropshadow:"Drop shadow",raised:"Raised",depressed:"Depressed",uniform:"Uniform"},automaticQualityLabel:"Automatic",unknownQualityLabel:"Unknown",highQualityLabel:"High Quality",lowQualityLabel:"Low Quality",errorHeading:"An error occurred",openBadNetworkModeMenuAria:"open bad network mode menu",formatDuration:fu("en","long"),formatNarrowDuration:fu("en","narrow"),formatRemainingDuration:function(e){return""+e+" remaining"},formatPercentage:fd("en"),formatBandwidth:fy("en"),formatLanguage:fv("en")},f_={};function fb(e){var t;return null!=(t=f_[e])?t:fg}function fm(){var e=a(['<span part="play-icon"><slot name="play-icon">','</slot></span><span part="pause-icon"><slot name="pause-icon">','</slot></span><span part="replay-icon"><slot name="replay-icon">',"</slot></span>"]);return fm=function(){return e},e}var fk=["seeking","seeked","ended","emptied","sourcechange"];function fw(){var e=a([":host(:not([volume-level=high])) [part=high-icon],:host(:not([volume-level=low])) [part=low-icon],:host(:not([volume-level=off])) [part=off-icon]{display:none!important}"]);return fw=function(){return e},e}ew=p9("theoplayer-play-button"),ex=fl(["player","lang"]),eE=yr({reflect:!0,state:!0,type:Boolean,attribute:yv.PAUSED}),eS=yr({reflect:!0,state:!0,type:Boolean,attribute:yv.ENDED}),eL=yr({reflect:!0,type:String,attribute:yv.LANG}),e.PlayButton=void 0,new(ek=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[yZ]),eT(),r}return i(r,t),r}(l),eg=yc("____private_paused_1"),e_=yc("____private_ended_2"),eb=yc("____private_lang_3"),em=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,eg,{writable:!0,value:void 0}),Object.defineProperty(t,e_,{writable:!0,value:void 0}),Object.defineProperty(t,eb,{writable:!0,value:void 0}),ys(t,eg)[eg]=(eO(t),eC(t,!1)),ys(t,e_)[e_]=eP(t,!1),ys(t,eb)[eb]=eR(t,""),t._onPlay=function(){t.paused=!1,t._updateEnded()},t._onPause=function(){t.paused=!0,t._updateEnded()},t._updateFromPlayer=function(){var e,r;t.paused=null==(e=null==(r=t._player)?void 0:r.paused)||e,t._updateEnded(),t._updateDisabled()},t._updateDisabled=function(){var e;t.disabled=(null==(e=t._player)?void 0:e.source)===void 0},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer(),this._updateAriaLabel()},r._updateEnded=function(){var e,t;this.ended=null!=(e=null==(t=this._player)?void 0:t.ended)&&e},r.handleClick=function(){void 0!==this._player&&void 0!==this._player.source&&(this._player.paused?this._player.play():this._player.pause())},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fb(this.lang);this.ariaLabel=this.ended?e.replayAria:this.paused?e.playAria:e.pauseAria},r.render=function(){return pj(fm(),yW('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90" width="24" height="24"><path d="M77.504 50.868c-7.236 5.156-16.584 10.914-28.04 17.269-11.044 6.207-20.729 11.081-29.053 14.625l-9.224 3.43c-.581-2.493-1.125-6.188-1.632-11.08-1.143-9.75-1.715-20.513-1.715-32.288 0-10.781.777-20.858 2.333-30.234l2.251-10.772 9.787 3.29c8.476 3.375 17.663 8.166 27.563 14.373 10.48 6.562 19.472 12.805 26.97 18.73 3.749 2.982 6.449 5.279 8.099 6.891l-7.339 5.766"/></svg>\n'),yW('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M2.108 1.914Q2.108.5 3.522.5h4.171q1.415 0 1.415 1.414v20.172q0 1.414-1.415 1.414H3.522q-1.414 0-1.414-1.414zm12.784 0Q14.892.5 16.307.5h4.171q1.414 0 1.414 1.414v20.172q0 1.414-1.414 1.414h-4.171q-1.415 0-1.415-1.414z"/></svg>\n'),yW('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M12 23q-3.725 0-6.438-2.375Q2.85 18.25 2.275 14.7q-.1-.625.325-1.088.425-.462 1.125-.462.6 0 1.087.437.488.438.663 1.113.5 2.225 2.313 3.688Q9.6 19.85 12 19.85q2.8 0 4.75-1.963 1.95-1.962 1.95-4.762t-1.962-4.75q-1.963-1.95-4.763-1.95H11.8l.525.525q.375.375.363.85-.013.475-.363.825t-.85.363q-.5.012-.85-.338l-2.7-2.7q-.225-.225-.337-.513-.113-.287-.113-.587t.113-.588q.112-.287.337-.512L10.6 1.075q.35-.35.875-.363.525-.012.875.363.35.35.338.85-.013.5-.363.85l-.5.5h.15q2.05 0 3.85.775 1.8.775 3.15 2.112Q20.325 7.5 21.1 9.287q.775 1.788.775 3.838t-.775 3.85q-.775 1.8-2.112 3.137-1.338 1.338-3.138 2.113Q14.05 23 12 23Z"/></svg>\n'))},v(t,[{key:"paused",get:function(){return ys(this,eg)[eg]},set:function(e){ys(this,eg)[eg]=e}},{key:"ended",get:function(){return ys(this,e_)[e_]},set:function(e){ys(this,e_)[e_]=e}},{key:"lang",get:function(){return ys(this,eb)[eb]},set:function(e){ys(this,eb)[eb]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener("play",this._onPlay),this._player.removeEventListener("pause",this._onPause),this._player.removeEventListener(fk,this._updateFromPlayer)),this._player=e,this._updateFromPlayer(),void 0!==this._player&&(this._player.addEventListener("play",this._onPlay),this._player.addEventListener("pause",this._onPause),this._player.addEventListener(fk,this._updateFromPlayer)))}}]),t}(eA=e.Button),eC=(eB=(eM=o(em,[[eE,1,"paused"],[eS,1,"ended"],[eL,1,"lang"]],[ew,ex],eA)).e)[0],eP=eB[1],eR=eB[2],eO=eB[3],e.PlayButton=(eN=eM.c)[0],eT=eN[1],ek);var fx=pi(fw());function fT(){var e=a(['<span part="off-icon"><slot name="off-icon">','</slot></span><span part="low-icon"><slot name="low-icon">','</slot></span><span part="high-icon"><slot name="high-icon">',"</slot></span>"]);return fT=function(){return e},e}var fA=["volumechange"];function fE(){var e=a([':host{position:relative}:host([seek-offset^="-"]) [part=icon]{-webkit-transform:scaleX(-1);transform:scaleX(-1)}[part=offset]{color:#fff;color:var(--theoplayer-icon-color,#fff);font-size:7.2px;font-size:var(--theoplayer-seek-button-font-size,calc(var(--theoplayer-button-icon-height, var(--theoplayer-control-height, 24px))*.3));left:50%;position:absolute;top:52.5%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}']);return fE=function(){return e},e}eU=p9("theoplayer-mute-button"),eq=fl(["player","lang"]),eH=yr({reflect:!0,state:!0,type:String,attribute:yv.VOLUME_LEVEL}),eV=yr({reflect:!0,type:String,attribute:yv.LANG}),eG=yr({reflect:!1,attribute:!1}),e.MuteButton=void 0,new(eF=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[fx]),ej(),r}return i(r,t),r}(l),eI=yc("____private_volumeLevel_1"),eD=yc("____private_lang_2"),e$=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,eI,{writable:!0,value:void 0}),Object.defineProperty(t,eD,{writable:!0,value:void 0}),ys(t,eI)[eI]=(eK(t),eQ(t,"off")),ys(t,eD)[eD]=eW(t,""),t._updateFromPlayer=function(){if(void 0!==t._player){var e=t._player.volume;t._player.muted?t.volumeLevel="off":e<.5?t.volumeLevel="low":t.volumeLevel="high"}else t.volumeLevel="off"},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer(),this._updateAriaLabel()},r.handleClick=function(){void 0!==this._player&&(this._player.muted=!this._player.muted,this._updateFromPlayer())},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fb(this.lang);this.ariaLabel="off"===this.volumeLevel?e.unmuteAria:e.muteAria},r.render=function(){return pj(fT(),yW('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="m19.225 22.55-2.25-2.275q-.175.1-.35.187-.175.088-.375.163-.525.2-1.075-.138-.55-.337-.55-1.062 0-.225.088-.425.087-.2.287-.325.05-.025.138-.088.087-.062.137-.087l-2.65-2.7v2.425q0 1.05-.962 1.463-.963.412-1.713-.338l-3.5-3.5H3.525q-.65 0-1.112-.463-.463-.462-.463-1.112v-4.55q0-.65.463-1.113.462-.462 1.112-.462H5.2L1.35 4.2Q1 3.85 1 3.375t.35-.825q.35-.35.85-.35t.85.35L20.9 20.9q.35.35.35.825t-.35.825q-.35.35-.838.35-.487 0-.837-.35ZM16.25 3.325q2.6 1.1 4.188 3.425 1.587 2.325 1.587 5.225 0 1.425-.4 2.7-.4 1.275-1.125 2.4L18.775 15.3q.425-.75.638-1.588.212-.837.212-1.737 0-2.125-1.175-3.875t-3.1-2.575q-.325-.125-.525-.4t-.2-.625q0-.65.525-1.038.525-.387 1.1-.137Zm.925 10.35-2.55-2.6V7.65q1.275.6 2.088 1.762.812 1.163.812 2.588 0 .45-.087.875-.088.425-.263.8ZM12.625 9l-3.45-3.575.775-.775q.75-.75 1.713-.338.962.413.962 1.463Z"/></svg>\n'),yW('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M3.55 15.85q-.65 0-1.112-.463-.463-.462-.463-1.112v-4.55q0-.65.463-1.113Q2.9 8.15 3.55 8.15h2.925l3.5-3.5q.75-.75 1.713-.338.962.413.962 1.463v12.45q0 1.05-.962 1.463-.963.412-1.713-.338l-3.5-3.5Zm11.1.45V7.65q1.3.625 2.088 1.8.787 1.175.787 2.55 0 1.375-.787 2.525-.788 1.15-2.088 1.775Z"/></svg>\n'),yW('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M16.275 20.625q-.575.25-1.1-.15-.525-.4-.525-1.05 0-.35.188-.613.187-.262.512-.387 1.925-.825 3.113-2.575 1.187-1.75 1.187-3.875T18.463 8.1q-1.188-1.75-3.113-2.575-.325-.125-.512-.4-.188-.275-.188-.625 0-.65.525-1.038.525-.387 1.1-.137 2.6 1.1 4.175 3.425 1.575 2.325 1.575 5.225 0 2.9-1.575 5.225-1.575 2.325-4.175 3.425ZM3.55 15.85q-.65 0-1.112-.463-.463-.462-.463-1.112v-4.55q0-.65.463-1.113Q2.9 8.15 3.55 8.15h2.925l3.5-3.5q.75-.75 1.713-.338.962.413.962 1.463v12.45q0 1.05-.962 1.463-.963.412-1.713-.338l-3.5-3.5Zm11.1.45V7.65q1.3.625 2.088 1.8.787 1.175.787 2.55 0 1.375-.787 2.525-.788 1.15-2.088 1.775Z"/></svg>\n'))},v(t,[{key:"volumeLevel",get:function(){return ys(this,eI)[eI]},set:function(e){ys(this,eI)[eI]=e}},{key:"lang",get:function(){return ys(this,eD)[eD]},set:function(e){ys(this,eD)[eD]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(fA,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(fA,this._updateFromPlayer))}}]),t}(ez=e.Button),eQ=(eY=(eZ=o(e$,[[eH,1,"volumeLevel"],[eV,1,"lang"],[eG,4,"player"]],[eU,eq],ez)).e)[0],eW=eY[1],eK=eY[2],e.MuteButton=(eJ=eZ.c)[0],ej=eJ[1],eF);var fS=pi(fE());function fL(e){return!isNaN(e)&&isFinite(e)}function fC(e,t,r){void 0===t&&(t=0);var n,i=e<0||r&&0===e,a=Math.floor(t/60%60),o=Math.floor(t/3600);if(fL(e=Math.abs(e))){var l=Math.floor(e%60),s=Math.floor(e/60%60),u=Math.floor(e/3600),c=u>0||o>0;n=[c?""+u:"",(c||a>=0)&&s<10?"0"+s:""+s,l<10?"0"+l:""+l]}else n=[o>0?"--":"","--","--"];return(i?"-":"")+n.filter(function(e){return""!==e}).join(":")}function fP(e){return{hours:Math.floor(e/3600),minutes:Math.floor(e/60)%60,seconds:Math.floor(e%60)}}function fR(e,t,r){if(!fL(t))return"";var n=t<0||r&&0===t,i=e.formatDuration(fP(Math.abs(t)));return n?e.formatRemainingDuration(i):i}function fO(){var e=a(['<span part="icon"><slot name="icon">','</slot></span><span part="offset">',"</span>"]);return fO=function(){return e},e}function fM(){var e=a([":host{background:transparent;background:var(--theoplayer-control-background,transparent);-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;color:var(--theoplayer-text-color,#fff);display:inline-block;font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));overflow:hidden;padding:10px;padding:var(--theoplayer-control-padding,10px);pointer-events:auto;text-align:center;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}"]);return fM=function(){return e},e}e5=p9("theoplayer-seek-button"),e3=fl(["player","lang"]),e7=yr({reflect:!0,type:Number,attribute:yv.SEEK_OFFSET}),e6=yr({reflect:!0,type:String,attribute:yv.LANG}),e9=yr({reflect:!1,attribute:!1}),e.SeekButton=void 0,new(e2=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[fS]),e4(),r}return i(r,t),r}(l),eX=yc("____private_seekOffset_1"),e0=yc("____private_lang_2"),e1=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,eX,{writable:!0,value:void 0}),Object.defineProperty(t,e0,{writable:!0,value:void 0}),ys(t,eX)[eX]=(tr(t),te(t,10)),ys(t,e0)[e0]=tt(t,""),t}i(t,e);var r=t.prototype;return r.handleClick=function(){if(void 0!==this._player){var e=this._player.duration;isNaN(e)||(this._player.currentTime=Math.max(0,Math.min(e,this._player.currentTime+this.seekOffset)))}},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fb(this.lang),t=this.seekOffset,r=e.formatDuration(fP(Math.abs(t)));this.ariaLabel=t>=0?e.seekForwardAria(r):e.seekBackwardAria(r)},r.render=function(){return pj(fO(),yW('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M12 22.25q-1.925 0-3.6-.738-1.675-.737-2.912-1.974Q4.25 18.3 3.525 16.625q-.725-1.675-.725-3.6 0-1.9.725-3.575.725-1.675 1.963-2.925 1.237-1.25 2.925-1.975Q10.1 3.825 12 3.825h.15l-.7-.7q-.3-.325-.313-.788-.012-.462.313-.812.35-.35.813-.35.462 0 .812.325l2.65 2.675q.325.325.325.8 0 .475-.325.8l-2.65 2.65q-.325.325-.8.325-.475 0-.825-.35-.3-.325-.3-.8 0-.475.3-.8l.7-.7H12q-2.9 0-4.912 2.012-2.013 2.013-2.013 4.913 0 2.9 2.013 4.925Q9.1 19.975 12 19.975q2.6 0 4.55-1.687 1.95-1.688 2.325-4.238.05-.45.4-.738.35-.287.8-.287.45 0 .788.275.337.275.287.7-.375 3.55-2.987 5.9Q15.55 22.25 12 22.25Z"/></svg>\n'),String(Math.abs(this.seekOffset)))},v(t,[{key:"seekOffset",get:function(){return ys(this,eX)[eX]},set:function(e){ys(this,eX)[eX]=e}},{key:"lang",get:function(){return ys(this,e0)[e0]},set:function(e){ys(this,e0)[e0]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player=e}}]),t}(e8=e.Button),te=(ti=(tn=o(e1,[[e7,1,"seekOffset"],[e6,1,"lang"],[e9,4,"player"]],[e5,e3],e8)).e)[0],tt=ti[1],tr=ti[2],e.SeekButton=(ta=tn.c)[0],e4=ta[1],e2);var fB=pi(fM());function fN(){var e=a(["<span>","</span>"]);return fN=function(){return e},e}var fI=["timeupdate","seeking","seeked","durationchange"];function fD(){var e=a(["<span>","</span>"]);return fD=function(){return e},e}tv=p9("theoplayer-time-display"),tg=fl(["player","streamType","lang"]),tb=yr({reflect:!1,attribute:!1}),tm=yr({reflect:!0,type:Boolean,attribute:yv.REMAINING}),tk=yr({reflect:!0,type:Boolean,attribute:yv.REMAINING_WHEN_LIVE}),tw=yr({reflect:!0,type:Boolean,attribute:yv.SHOW_DURATION}),tx=yr({reflect:!0,type:String,attribute:yv.STREAM_TYPE}),tT=yr({reflect:!0,type:String,attribute:yv.LANG}),tA=yn(),tE=yn(),tS=yn(),e.TimeDisplay=void 0,new(tf=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[fB],t_(),t}return i(t,e),t}(l),to=yc("____private_remaining_1"),tl=yc("____private_remainingWhenLive_2"),ts=yc("____private_showDuration_3"),tu=yc("____private_streamType_4"),tc=yc("____private_lang_5"),th=yc("____private__currentTime_6"),td=yc("____private__duration_7"),tp=yc("____private__endTime_8"),ty=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,to,{writable:!0,value:void 0}),Object.defineProperty(t,tl,{writable:!0,value:void 0}),Object.defineProperty(t,ts,{writable:!0,value:void 0}),Object.defineProperty(t,tu,{writable:!0,value:void 0}),Object.defineProperty(t,tc,{writable:!0,value:void 0}),Object.defineProperty(t,th,{writable:!0,value:void 0}),Object.defineProperty(t,td,{writable:!0,value:void 0}),Object.defineProperty(t,tp,{writable:!0,value:void 0}),ys(t,to)[to]=(tI(t),tL(t,!1)),ys(t,tl)[tl]=tC(t,!1),ys(t,ts)[ts]=tP(t,!1),ys(t,tu)[tu]=tR(t,"vod"),ys(t,tc)[tc]=tO(t,""),ys(t,th)[th]=tM(t,0),ys(t,td)[td]=tB(t,NaN),ys(t,tp)[tp]=tN(t,0),t._updateFromPlayer=function(){var e,r=t._player?t._player.currentTime:0,n=t._player?t._player.duration:NaN,i=null==(e=t._player)?void 0:e.seekable,a=isFinite(n)?n:i&&i.length>0?i.end(0):NaN;t._currentTime=r,t._duration=n,t._endTime=a},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","progressbar"),this.hasAttribute(yv.ARIA_LIVE)||this.setAttribute(yv.ARIA_LIVE,"off")},r.render=function(){var e,t,r=fb(this.lang),n=this.remaining||this.remainingWhenLive&&"vod"!==this.streamType,i=this._currentTime,a=this._endTime;return n&&(i=-((this._endTime||0)-i)),e=this.showDuration&&!n?fC(i,a,n)+" / "+fC(a):fC(i,a,n),t=isNaN(this._duration)?r.unknownTimeAria:this.showDuration?r.timeOfTotalAria(fR(r,i,n),fR(r,a)):fR(r,i,n),this.setAttribute("aria-label",r.playbackTimeAria),this.setAttribute("aria-valuetext",t),pj(fN(),e)},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(fI,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(fI,this._updateFromPlayer))}},{key:"remaining",get:function(){return ys(this,to)[to]},set:function(e){ys(this,to)[to]=e}},{key:"remainingWhenLive",get:function(){return ys(this,tl)[tl]},set:function(e){ys(this,tl)[tl]=e}},{key:"showDuration",get:function(){return ys(this,ts)[ts]},set:function(e){ys(this,ts)[ts]=e}},{key:"streamType",get:function(){return ys(this,tu)[tu]},set:function(e){ys(this,tu)[tu]=e}},{key:"lang",get:function(){return ys(this,tc)[tc]},set:function(e){ys(this,tc)[tc]=e}},{key:"_currentTime",get:function(){return ys(this,th)[th]},set:function(e){ys(this,th)[th]=e}},{key:"_duration",get:function(){return ys(this,td)[td]},set:function(e){ys(this,td)[td]=e}},{key:"_endTime",get:function(){return ys(this,tp)[tp]},set:function(e){ys(this,tp)[tp]=e}}]),t}(p7),tL=(t$=(tD=o(ty,[[tb,4,"player"],[tm,1,"remaining"],[tk,1,"remainingWhenLive"],[tw,1,"showDuration"],[tx,1,"streamType"],[tT,1,"lang"],[tA,1,"_currentTime"],[tE,1,"_duration"],[tS,1,"_endTime"]],[tv,tg],p7)).e)[0],tC=t$[1],tP=t$[2],tR=t$[3],tO=t$[4],tM=t$[5],tB=t$[6],tN=t$[7],tI=t$[8],e.TimeDisplay=(tF=tD.c)[0],t_=tF[1],tf);var f$=["durationchange"];tz=p9("theoplayer-duration-display"),tH=fl(["player"]),tG=yr({reflect:!1,attribute:!1}),tQ=yn(),e.DurationDisplay=void 0,new(tj=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[fB],tV(),t}return i(t,e),t}(l),tU=yc("____private_duration_1"),tq=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tU,{writable:!0,value:void 0}),ys(t,tU)[tU]=(tK(t),tW(t,NaN)),t._updateFromPlayer=function(){t.duration=t._player?t._player.duration:NaN},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(yv.ARIA_LIVE)||this.setAttribute(yv.ARIA_LIVE,"off")},r.render=function(){return pj(fD(),fC(this.duration))},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(f$,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(f$,this._updateFromPlayer))}},{key:"duration",get:function(){return ys(this,tU)[tU]},set:function(e){ys(this,tU)[tU]=e}}]),t}(p7),tW=(tY=(tZ=o(tq,[[tG,4,"player"],[tQ,1,"duration"]],[tz,tH],p7)).e)[0],tK=tY[1],e.DurationDisplay=(tJ=tZ.c)[0],tV=tJ[1],tj);var fF=!function(){try{var e=new Event("change");return"change"===e.type}catch(e){}return!1}()?function(e,t){var r=document.createEvent("Event");return r.initEvent(e,(null==t?void 0:t.bubbles)||!1,(null==t?void 0:t.cancelable)||!1),r}:function(e,t){return new Event(e,t)},fU=!function(){try{var e=new CustomEvent("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?function(e,t){var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,(null==t?void 0:t.bubbles)||!1,(null==t?void 0:t.cancelable)||!1,null==t?void 0:t.detail),r}:function(e,t){return new CustomEvent(e,t)};tX=p9("theoplayer-radio-button"),t1=yr({reflect:!0,type:Boolean,attribute:yv.ARIA_CHECKED,converter:{fromAttribute:function(e){return null!=e&&"false"!==e},toAttribute:function(e){return String(e)}}}),t2=yr({attribute:yv.VALUE}),e.RadioButton=void 0;var fq=yc("____private_value_1"),fj=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,fq,{writable:!0,value:void 0}),t3(t),t._checked=!1,ys(t,fq)[fq]=t5(t,void 0),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){this.hasAttribute("role")||this.setAttribute("role","radio"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),e.prototype.connectedCallback.call(this)},r.handleClick=function(){this.checked=!0,this.dispatchEvent(fF("input",{bubbles:!0,composed:!0}))},r.handleChange=function(){},v(t,[{key:"checked",get:function(){return this._checked},set:function(e){this._checked!==e&&(this._checked=e,this.handleChange(),this.dispatchEvent(fF("change",{bubbles:!0})))}},{key:"value",get:function(){return ys(this,fq)[fq]},set:function(e){ys(this,fq)[fq]=e}}]),t}(t0=e.Button);t5=(t8=(t4=o(fj,[[t1,4,"checked"],[t2,1,"value"]],[tX],t0)).e)[0],t3=t8[1],e.RadioButton=(t7=t4.c)[0],(0,t7[1])();var fz=function(){function e(e,t,r,n){this.x=e,this.y=t,this.width=r,this.height=n}var t=e.prototype;return t.overlaps=function(e){return this.x<e.right&&this.right>e.x&&this.y<e.bottom&&this.bottom>e.y},t.contains=function(e){return this.x<=e.x&&e.right<=this.right&&this.y<=e.y&&e.bottom<=this.bottom},t.union=function(t){var r=Math.min(this.x,t.x),n=Math.min(this.y,t.y),i=Math.max(this.right,t.right)-r,a=Math.max(this.bottom,t.bottom)-n;return new e(r,n,i,a)},t.snapToPixels=function(){return new e(Math.round(this.x),Math.round(this.y),Math.round(this.width),Math.round(this.height))},t.clone=function(){return new e(this.x,this.y,this.width,this.height)},t.toJSON=function(){return{x:this.x,y:this.y,width:this.width,height:this.height,left:this.left,right:this.right,top:this.top,bottom:this.bottom}},e.fromRect=function(t){var r,n,i,a,o,l;return new e(null!=(r=null!=(n=t.left)?n:t.x)?r:0,null!=(i=null!=(a=t.top)?a:t.y)?i:0,null!=(o=t.width)?o:0,null!=(l=t.height)?l:0)},v(e,[{key:"left",get:function(){return this.x},set:function(e){this.x=e}},{key:"right",get:function(){return this.x+this.width},set:function(e){this.x=e-this.width}},{key:"top",get:function(){return this.y},set:function(e){this.y=e}},{key:"bottom",get:function(){return this.y+this.height},set:function(e){this.y=e-this.height}}]),e}();function fH(){var e=function(){var e,t,r=document.activeElement;if(null==r)return null;for(;null!=(t=null==(e=r.shadowRoot)?void 0:e.activeElement);)r=t;return r}();return e&&e!==document.body&&y5(e)?e:null}function fV(e,t,r){var n,i,a,o=fH();if(null===o)return!1;var l=fz.fromRect(e.getBoundingClientRect()).snapToPixels(),s=fz.fromRect(o.getBoundingClientRect()).snapToPixels(),u=t.map(function(e){return{child:e,rect:fz.fromRect(e.getBoundingClientRect()).snapToPixels()}}).filter(function(e){return e.rect.width>0&&e.rect.height>0});if(r===yg.LEFT||r===yg.RIGHT){var c=s.clone();r===yg.LEFT?(c.left=l.left,c.width=s.left-l.left):(c.left=s.right,c.width=l.right-s.right),0===(a=u.filter(function(e){return c.overlaps(e.rect)})).length&&(c.top=l.top,c.height=l.height,a=u.filter(function(e){return c.overlaps(e.rect)}))}else{var h=s.clone();r===yg.UP?(h.top=l.top,h.height=s.top-l.top):(h.top=s.bottom,h.height=l.bottom-s.bottom),0===(a=u.filter(function(e){return h.overlaps(e.rect)})).length&&(h.left=l.left,h.width=l.width,a=u.filter(function(e){return h.overlaps(e.rect)}))}var d=(n=a,i=function(e){var t,r,n;return t=e.rect,r=s,n=0,t.right<r.left?n+=r.left-t.right:r.right<t.left&&(n+=t.left-r.right),t.bottom<r.top?n+=r.top-t.bottom:r.bottom<t.top&&(n+=t.top-r.bottom),n},function(e,t){if(0!==e.length)return e.reduce(function(e,r){return 0>=t(e,r)?e:r})}(n,function(e,t){return i(e)-i(t)}));return void 0!==d&&(d.child.focus(),!0)}function fG(){var e=a(["<slot ",' @slotchange="','"></slot>']);return fG=function(){return e},e}t6=p9("theoplayer-radio-group"),t9=fl(["deviceType"]),re=yr({reflect:!0,type:String,attribute:yv.DEVICE_TYPE}),rt=yr({attribute:yv.VALUE}),e.RadioGroup=void 0;var fQ=yc("____private_deviceType_1"),fW=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,fQ,{writable:!0,value:void 0}),rn(t),t._slotRef=yF(),t._radioButtons=[],t._value=void 0,ys(t,fQ)[fQ]=rr(t,"desktop"),t._onSlotChange=function(){var e,r=t._slotRef.value;if(r){for(var n,i=ft(r),a=[],o=yY(i);!(n=o()).done;){var l=n.value;if(!fK(l)){var s=fn(l);s&&a.push(s)}}a.length>0&&Promise.all(a).then(t._onSlotChange,y1),t._radioButtons=i.filter(fK),t.focusedRadioButton||null==(e=t.firstRadioButton)||e.setAttribute("tabindex","0"),t.updateCheckedButton()}},t._onKeyDown=function(e){if("tv"===t.deviceType&&y_(e.keyCode)){fV(t,t._radioButtons,e.keyCode)&&(e.preventDefault(),e.stopPropagation());return}switch(e.keyCode){case yg.UP:case yg.LEFT:t._focusPrevButton()&&e.preventDefault();break;case yg.DOWN:case yg.RIGHT:t._focusNextButton()&&e.preventDefault();break;case yg.HOME:e.preventDefault(),t.setFocusedRadioButton(t.firstRadioButton);break;case yg.END:e.preventDefault(),t.setFocusedRadioButton(t.lastRadioButton)}},t._onButtonChange=function(e){var r=e.target;null!==r&&r.checked&&(t.value=r.value)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","radiogroup"),this.addEventListener("keydown",this._onKeyDown),this._onSlotChange()},r.disconnectedCallback=function(){e.prototype.disconnectedCallback.call(this),this.removeEventListener("keydown",this._onKeyDown)},r.firstUpdated=function(){this._onSlotChange()},r.createRenderRoot=function(){var t=e.prototype.createRenderRoot.call(this);return t.addEventListener("change",this._onButtonChange),t},r.allRadioButtons=function(){return this._radioButtons},r._prevRadioButton=function(e){var t=this._radioButtons.indexOf(e);return t>0?this._radioButtons[t-1]:null},r._nextRadioButton=function(e){var t=this._radioButtons.indexOf(e);return t>=0&&t<this._radioButtons.length-1?this._radioButtons[t+1]:null},r._focusPrevButton=function(){var e=this.focusedRadioButton||this.firstRadioButton;return!!e&&(e===this.firstRadioButton?this.setFocusedRadioButton(this.lastRadioButton):this.setFocusedRadioButton(this._prevRadioButton(e)),!0)},r._focusNextButton=function(){var e=this.focusedRadioButton||this.firstRadioButton;return!!e&&(e===this.lastRadioButton?this.setFocusedRadioButton(this.firstRadioButton):this.setFocusedRadioButton(this._nextRadioButton(e)),!0)},r.setFocusedRadioButton=function(e){this._unfocusAll(),e&&(e.tabIndex=0,e.focus())},r._unfocusAll=function(){for(var e,t=yY(this.allRadioButtons());!(e=t()).done;)e.value.tabIndex=-1},r.setCheckedRadioButton=function(e){for(var t,r=yY(this.allRadioButtons());!(t=r()).done;){var n=t.value;n.checked=n===e}},r.updateCheckedButton=function(){var e=this,t=this.allRadioButtons().find(function(t){return t.value==e.value});this.setCheckedRadioButton(null!=t?t:null)},r.render=function(){return pj(fG(),yj(this._slotRef),this._onSlotChange)},v(t,[{key:"deviceType",get:function(){return ys(this,fQ)[fQ]},set:function(e){ys(this,fQ)[fQ]=e}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this.updateCheckedButton(),this.dispatchEvent(fF("change",{bubbles:!0})))}},{key:"focusedRadioButton",get:function(){var e;return null!=(e=y8(this._radioButtons,function(e){return 0===e.tabIndex}))?e:null}},{key:"checkedRadioButton",get:function(){var e;return null!=(e=y8(this._radioButtons,function(e){return e.checked}))?e:null}},{key:"firstRadioButton",get:function(){var e;return null!=(e=this._radioButtons[0])?e:null}},{key:"lastRadioButton",get:function(){var e=this._radioButtons;return e.length>0?e[e.length-1]:null}}]),t}(p7);function fK(t){return T(t,e.RadioButton)}function fZ(){var e=a([":host{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;color:var(--theoplayer-menu-color,#fff);display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-size:14px;font-size:var(--theoplayer-text-font-size,14px);pointer-events:none}:host([hidden]){display:none!important}[part=heading]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-align:center;-ms-flex-align:center;align-items:center;align-self:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;pointer-events:auto}[part=heading] ::slotted(span),[part=heading]>span{padding:10px;padding:var(--theoplayer-control-padding,10px);padding-left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[part=content],[part=heading]>theoplayer-menu-close-button{pointer-events:auto}[part=content]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-item-align:center;-ms-grid-row-align:center;--theoplayer-control-hover-background:var(--theoplayer-menu-control-hover-background,hsla(0,0%,100%,.3));align-self:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:10px;margin:var(--theoplayer-menu-margin,10px);max-height:100%;max-width:100%;max-width:var(--theoplayer-menu-max-width,100%);min-height:0;min-width:80%;min-width:var(--theoplayer-menu-min-width,80%);overflow-y:auto}"]);return fZ=function(){return e},e}rr=(ra=(ri=o(fW,[[re,1,"deviceType"],[rt,4,"value"]],[t6,t9],p7)).e)[0],rn=ra[1],e.RadioGroup=(ro=ri.c)[0],(0,ro[1])();var fY=pi(fZ()),fJ="theoplayermenuclose",fX="theoplayermenuchange";function f0(){var e=a(["",""]);return f0=function(){return e},e}function f1(){var e=a(['<div part="heading"><theoplayer-menu-close-button></theoplayer-menu-close-button>','</div><div part="content" @input="','">',"</div>"]);return f1=function(){return e},e}function f2(){var e=a(['<slot name="heading"></slot>']);return f2=function(){return e},e}function f5(){var e=a(["<slot></slot>"]);return f5=function(){return e},e}function f3(){var e=a([":host{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;pointer-events:none}:host([hidden]){display:none!important}::slotted(*),:host>*{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-ms-grid-column-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;justify-self:stretch;min-height:0}"]);return f3=function(){return e},e}rc=p9("theoplayer-menu"),rd=yr({reflect:!0,type:Boolean,attribute:yv.MENU_CLOSE_ON_INPUT}),rp=yr({reflect:!0,state:!0,type:Boolean,attribute:yv.MENU_OPENED}),e.Menu=void 0,new(ru=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[fY],t.shadowRootOptions=r({},p7.shadowRootOptions,{delegatesFocus:!0}),rh(),t}return i(t,e),t}(l),rl=yc("____private_closeOnInput_1"),rs=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,rl,{writable:!0,value:void 0}),rf(r),r._menuOpened=!1,ys(r,rl)[rl]=ry(r,!1),r._onContentInput=function(){if(r.closeOnInput){var e=fU(fJ,{bubbles:!0,composed:!0});r.dispatchEvent(e)}},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.menuOpened_||this.setAttribute(yv.HIDDEN,"")},r.openMenu=function(){this.menuOpened_=!0},r.closeMenu=function(){this.menuOpened_=!1},r.render=function(){return this._template?pj(f0(),yp(this._template)):pj(f1(),this.renderMenuHeading(),this._onContentInput,this.renderMenuContent())},r.renderMenuHeading=function(){return pj(f2())},r.renderMenuContent=function(){return pj(f5())},v(t,[{key:"closeOnInput",get:function(){return ys(this,rl)[rl]},set:function(e){ys(this,rl)[rl]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){if(this._menuOpened!==e){this._menuOpened=e,y9(this,yv.HIDDEN,!e);var t=fU(fX,{bubbles:!0});this.dispatchEvent(t)}}}]),t}(p7),ry=(rg=(rv=o(rs,[[rd,1,"closeOnInput"],[rp,4,"menuOpened_"]],[rc],p7)).e)[0],rf=rg[1],e.Menu=(r_=rv.c)[0],rh=r_[1],ru);var f4=pi(f3()),f8="theoplayermenutoggle";function f7(){var e=a(["",""]);return f7=function(){return e},e}function f6(){var e=a(['<slot @slotchange="','"></slot>']);return f6=function(){return e},e}function f9(t){return!!y5(t)&&(T(t,e.Menu)||T(t,e.MenuGroup))}rw=p9("theoplayer-menu-group"),rT=yr({reflect:!0,state:!0,type:Boolean,attribute:yv.MENU_OPENED}),e.MenuGroup=void 0,new(rk=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[f4],t.shadowRootOptions=r({},p7.shadowRootOptions,{delegatesFocus:!0}),rx(),t}return i(t,e),t}(l),rb=yc("____private__menuSlot_1"),rm=function(t){function r(r){var n;return Object.defineProperty(n=t.call(this)||this,rb,{writable:!0,value:void 0}),rE(n),n._menuOpened=!1,ys(n,rb)[rb]=rA(n,null),n._menus=[],n._openMenuStack=[],n._onMenuListChange=function(){for(var e,t=[].concat(y4(n.shadowRoot.children),n._menuSlot?ft(n._menuSlot):[]),r=[],i=yY(t);!(e=i()).done;){var a=e.value;if(!f9(a)){var o=fn(a);o&&r.push(o)}}r.length>0&&Promise.all(r).then(n._onMenuListChange,y1);for(var l,s=t.filter(f9),u=yY(n._menus);!(l=u()).done;){var c=l.value;0>s.indexOf(c)&&n.closeMenu(c.id)}for(var h,d=yY(s);!(h=d()).done;){var p=h.value;0>n._menus.indexOf(p)&&p.closeMenu()}n._menus=s},n._onToggleMenu=function(e){var t=e.detail.menu;if(n.getMenuById(t)){e.stopPropagation();var r=y5(e.target)?e.target:void 0;n.isMenuOpen(t)?n.closeMenu(t):n.openMenu(t,r)}},n._onCloseMenu=function(e){n.closeCurrentMenu()&&(e.preventDefault(),e.stopPropagation())},n._onMenuChange=function(t){var r=n.getCurrentMenu_();r&&r.menu===t.target&&T(r.menu,e.MenuGroup)&&!r.menu.hasCurrentMenu()&&n.closeCurrentMenu()},n._onKeyDown=function(e){!e.altKey&&yb(e.keyCode)&&n.closeCurrentMenu()&&(e.preventDefault(),e.stopPropagation())},n._template=null==r?void 0:r.template,n._template&&n.performUpdate(),n}i(r,t);var n=r.prototype;return n.connectedCallback=function(){t.prototype.connectedCallback.call(this),this.menuOpened_||this.setAttribute(yv.HIDDEN,"")},n.createRenderRoot=function(){var e=t.prototype.createRenderRoot.call(this);return e.addEventListener(f8,this._onToggleMenu),e.addEventListener(fJ,this._onCloseMenu),e.addEventListener(fX,this._onMenuChange),e},n.render=function(){return this._template?pj(f7(),yp(this._template)):pj(f6(),this._onMenuListChange)},n.firstUpdated=function(){this._onMenuListChange()},n.getMenuById=function(e){return e&&e!==this.id?y8(this._menus,function(t){return t.id===e}):this},n.openMenu=function(e,t){var r=this.getMenuById(e);if(r===this&&(r=this._menus[0]),!r)return!1;var n=this.getCurrentMenu_(),i=y7(this._openMenuStack,function(e){return e.menu===r});return i>=0?this.closeMenusFromIndex_(i+1):this._openMenuStack.push({menu:r,opener:t}),n&&n.menu.closeMenu(),r.openMenu(),this.menuOpened_=!0,r.focus(),!0},n.closeMenu=function(e){var t,r,n=this.getMenuById(e);if(n===this&&(n=null==(r=this._openMenuStack[0])?void 0:r.menu),!n)return!1;var i=y7(this._openMenuStack,function(e){return e.menu===n});if(i<0)return!1;var a=this._openMenuStack[i];this.closeMenusFromIndex_(i);var o=this.getCurrentMenu_();return void 0!==o?(o.menu.openMenu(),this.menuOpened_=!0,a.opener&&o.menu.contains(a.opener)?a.opener.focus():o.menu.focus()):(this.menuOpened_=!1,null==(t=a.opener)||t.focus()),!0},n.closeMenusFromIndex_=function(e){for(var t=this._openMenuStack.length-e,r=this._openMenuStack.length-1;r>=e;r--)this._openMenuStack[r].menu.closeMenu();this._openMenuStack.splice(e,t)},n.hasCurrentMenu=function(){return this._openMenuStack.length>0},n.getCurrentMenu_=function(){return this._openMenuStack.length>0?this._openMenuStack[this._openMenuStack.length-1]:void 0},n.closeCurrentMenu=function(){var e=this.getCurrentMenu_();return void 0!==e&&(this.closeMenu(e.menu.id),!0)},n.isMenuOpen=function(e){var t=this.getMenuById(e);return!!t&&this._openMenuStack.some(function(e){return e.menu===t})},v(r,[{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){if(this._menuOpened!==e){this._menuOpened=e,y9(this,yv.MENU_OPENED,e),e?(this.removeAttribute(yv.HIDDEN),this.removeEventListener("keydown",this._onKeyDown),this.addEventListener("keydown",this._onKeyDown)):(this.setAttribute(yv.HIDDEN,""),this.removeEventListener("keydown",this._onKeyDown));var t=fU(fX,{bubbles:!0});this.dispatchEvent(t)}}},{key:"_menuSlot",get:function(){return ys(this,rb)[rb]},set:function(e){ys(this,rb)[rb]=e}}]),r}(p7),rA=(rL=(rS=o(rm,[[rT,4,"menuOpened_"],[function(e,t,r){var n=function(e){var t,r;return null!=(t=null==(r=e.renderRoot)?void 0:r.querySelector("slot"))?t:null};return yi(e,t,{get:function(){return n(this)}})},1,"_menuSlot"]],[rw],p7)).e)[0],rE=rL[1],e.MenuGroup=(rC=rS.c)[0],rx=rC[1],rk),rP=p9("theoplayer-menu-button"),rO=yr({reflect:!0,type:String,attribute:yv.MENU}),rM=yr({reflect:!0,state:!0,type:String,attribute:"aria-controls"}),e.MenuButton=void 0;var ve=yc("____private__ariaControls_1"),vt=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ve,{writable:!0,value:void 0}),rN(t),t._menuId=null,ys(t,ve)[ve]=rB(t,null),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("aria-haspopup")||this.setAttribute("aria-haspopup","true")},r.handleClick=function(){var e=this.menu;if(e){var t=fU(f8,{bubbles:!0,composed:!0,detail:{menu:e}});this.dispatchEvent(t)}},v(t,[{key:"menu",get:function(){return this._menuId},set:function(e){e?(null==this._ariaControls||this._ariaControls===this._menuId)&&(this._ariaControls=e):this._ariaControls===this._menuId&&(this._ariaControls=null),this._menuId=e}},{key:"_ariaControls",get:function(){return ys(this,ve)[ve]},set:function(e){ys(this,ve)[ve]=e}}]),t}(rR=e.Button);function vr(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return vr=function(){return e},e}rB=(rD=(rI=o(vt,[[rO,4,"menu"],[rM,1,"_ariaControls"]],[rP],rR)).e)[0],rN=rD[1],e.MenuButton=(r$=rI.c)[0],(0,r$[1])(),rF=p9("theoplayer-menu-close-button"),rU=fl(["lang"]),rj=yr({reflect:!0,type:String,attribute:yv.LANG}),e.CloseMenuButton=void 0;var vn=yc("____private_lang_1"),vi=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,vn,{writable:!0,value:void 0}),ys(t,vn)[vn]=(rH(t),rz(t,"")),t}i(t,e);var r=t.prototype;return r.handleClick=function(){var e=fU(fJ,{bubbles:!0,composed:!0});this.dispatchEvent(e)},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fb(this.lang);this.ariaLabel=e.closeMenuAria},r.render=function(){return pj(vr(),yW('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="m10.525 19.275-6.375-6.35q-.175-.2-.262-.437Q3.8 12.25 3.8 12t.088-.488q.087-.237.262-.437l6.375-6.35q.375-.375.925-.388.55-.012.95.388.375.4.388.937.012.538-.363.938l-4.1 4.075H18.35q.55 0 .938.387.387.388.387.938 0 .55-.387.938-.388.387-.938.387H8.325l4.1 4.075q.35.375.363.925.012.55-.363.95-.4.4-.95.4-.55 0-.95-.4Z"/></svg>\n'))},v(t,[{key:"lang",get:function(){return ys(this,vn)[vn]},set:function(e){ys(this,vn)[vn]=e}}]),t}(rq=e.Button);function va(){var e=a(["<slot>","</slot>"]);return va=function(){return e},e}rz=(rG=(rV=o(vi,[[rj,1,"lang"]],[rF,rU],rq)).e)[0],rH=rG[1],e.CloseMenuButton=(rQ=rV.c)[0],(0,rQ[1])();var vo=["change","update"];rW=p9("theoplayer-media-track-radio-button"),rK=fl(["lang"]),rY=yn(),rJ=yr({reflect:!0,type:String,attribute:yv.LANG}),rX=yr({reflect:!1,attribute:!1}),e.MediaTrackRadioButton=void 0;var vl=yc("____private__track_1"),vs=yc("____private_lang_2"),vu=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,vl,{writable:!0,value:void 0}),Object.defineProperty(t,vs,{writable:!0,value:void 0}),ys(t,vl)[vl]=(r2(t),r0(t,void 0)),ys(t,vs)[vs]=r1(t,""),t._onTrackChange=function(){t._updateFromTrack()},t}i(t,e);var r=t.prototype;return r._updateFromTrack=function(){this.checked=!!this._track&&this._track.enabled,this.requestUpdate()},r._updateTrack=function(){this._track&&(this._track.enabled=this.checked)},r.handleChange=function(){this._updateTrack()},r.render=function(){var e=fb(this.lang),t=this._track?function(e,t){var r=t.label,n=t.language;if(r&&(!n||r!==n&&r!==fg.formatLanguage(n)))return r;var i=n&&e.formatLanguage(n);return i||r||n||""}(e,this._track):"";return pj(va(),t)},v(t,[{key:"_track",get:function(){return ys(this,vl)[vl]},set:function(e){ys(this,vl)[vl]=e}},{key:"lang",get:function(){return ys(this,vs)[vs]},set:function(e){ys(this,vs)[vs]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(vo,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(vo,this._onTrackChange))}}]),t}(rZ=e.RadioButton);function vc(){var e=a([":host,theoplayer-radio-group{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([hidden]){display:none!important}"]);return vc=function(){return e},e}r0=(r3=(r5=o(vu,[[rY,1,"_track"],[rJ,1,"lang"],[rX,4,"track"]],[rW,rK],rZ)).e)[0],r1=r3[1],r2=r3[2],e.MediaTrackRadioButton=(r4=r5.c)[0],(0,r4[1])();var vh=pi(vc());function vd(e){return"subtitles"===e.kind||"captions"===e.kind}function vp(e){return vd(e)&&!e.forced}function vy(e){var t=null==e?void 0:e.targetQuality;return void 0===t||Array.isArray(t)||(t=[t]),t}function vf(e,t){if(t){if(t.label&&""!==t.label)return t.label;if(t.height)return""+t.height+"p";if(t.bandwidth)return e.formatBandwidth(t.bandwidth)}}var vv=function(e,t,r){for(var n=new Map,i=t;i<=r;i++)n.set(e[i],i);return n},vg=yh(function(e){function t(e){var r;if(y(this,t),r=p(this,t,[e]),2!==e.type)throw Error("repeat() can only be used in text expressions");return r}return i(t,e),v(t,[{key:"dt",value:function(e,t,r){void 0===r?r=t:void 0!==t&&(u=t);var n=[],i=[],a=0,o=!0,l=!1,s=void 0;try{for(var u,c,h=e[Symbol.iterator]();!(o=(c=h.next()).done);o=!0){var d=c.value;n[a]=u?u(d,a):a,i[a]=r(d,a),a++}}catch(e){l=!0,s=e}finally{try{o||null==h.return||h.return()}finally{if(l)throw s}}return{values:i,keys:n}}},{key:"render",value:function(e,t,r){return this.dt(e,t,r).values}},{key:"update",value:function(e,t){var r,n=b(t,3),i=n[0],a=n[1],o=n[2],l=e._$AH,s=this.dt(i,a,o),u=s.values,c=s.keys;if(!Array.isArray(l))return this.ut=c,u;for(var h,d,p,y=null!=(h=this.ut)?h:this.ut=[],f=[],v=0,g=l.length-1,_=0,m=u.length-1;v<=g&&_<=m;)if(null===l[v])v++;else if(null===l[g])g--;else if(y[v]===c[_])f[_]=yC(l[v],u[_]),v++,_++;else if(y[g]===c[m])f[m]=yC(l[g],u[m]),g--,m--;else if(y[v]===c[m])f[m]=yC(l[v],u[m]),yL(e,f[m+1],l[v]),v++,m--;else if(y[g]===c[_])f[_]=yC(l[g],u[_]),yL(e,l[v],l[g]),g--,_++;else if(void 0===d&&(d=vv(c,_,m),p=vv(y,v,g)),d.has(y[v]))if(d.has(y[g])){var k=p.get(c[_]),w=void 0!==k?l[k]:null;if(null===w){var x=yL(e,l[v]);yC(x,u[_]),f[_]=x}else f[_]=yC(w,u[_]),yL(e,l[v],w),l[k]=null;_++}else yR(l[g]),g--;else yR(l[v]),v++;for(;_<=m;){var T=yL(e,f[m+1]);yC(T,u[_]),f[_++]=T}for(;v<=g;){var A=l[v++];null!==A&&yR(A)}return this.ut=c,void 0===(r=f)&&(r=yP),e._$AH=r,pz}}]),t}(yd));function v_(){var e=a(['<theoplayer-text-track-off-radio-button .trackList="','" lang="','"></theoplayer-text-track-off-radio-button>']);return v_=function(){return e},e}function vb(){var e=a(['<theoplayer-text-track-radio-button .track="','" lang="','"></theoplayer-text-track-radio-button>']);return vb=function(){return e},e}function vm(){var e=a(['<theoplayer-media-track-radio-button .track="','" lang="','"></theoplayer-media-track-radio-button>']);return vm=function(){return e},e}function vk(){var e=a(['<theoplayer-radio-group @change="','">'," ","</theoplayer-radio-group>"]);return vk=function(){return e},e}var vw=["addtrack","removetrack"];function vx(){var e=a(["<slot>","</slot>"]);return vx=function(){return e},e}nt=p9("theoplayer-track-radio-group"),nr=fl(["player","lang"]),ni=yn(),na=yr({reflect:!0,type:String,attribute:yv.TRACK_TYPE}),no=yr({reflect:!0,type:Boolean,attribute:yv.SHOW_OFF}),nl=yr({reflect:!0,type:String,attribute:yv.LANG}),e.TrackRadioGroup=void 0,new(ne=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vh],nn(),t}return i(t,e),t}(l),r8=yc("____private__tracksList_1"),r7=yc("____private_showOffButton_2"),r6=yc("____private_lang_3"),r9=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,r8,{writable:!0,value:void 0}),Object.defineProperty(t,r7,{writable:!0,value:void 0}),Object.defineProperty(t,r6,{writable:!0,value:void 0}),nh(t),t._trackType="audio",ys(t,r8)[r8]=ns(t),ys(t,r7)[r7]=nu(t,!1),ys(t,r6)[r6]=nc(t,""),t._updateTracks=function(){return t.requestUpdate()},t._onChange=function(){t.dispatchEvent(fF("change",{bubbles:!0}))},t}i(t,e);var r=t.prototype;return r._getTracksList=function(){if(void 0!==this._player){var e=this.trackType;return"audio"===e?this._player.audioTracks:"video"===e?this._player.videoTracks:"subtitles"===e?this._player.textTracks:void 0}},r._updateTracksList=function(){var e=this._tracksList,t=this._getTracksList();e!==t&&(null==e||e.removeEventListener(vw,this._updateTracks),null==t||t.addEventListener(vw,this._updateTracks),this._tracksList=t)},r._getTracks=function(){if(void 0===this._player)return[];var e=this.trackType;return"audio"===e?this._player.audioTracks:"video"===e?this._player.videoTracks:"subtitles"===e?this._player.textTracks.filter(vp):[]},r.render=function(){var e=this,t=this._getTracks(),r="subtitles"===this.trackType;return pj(vk(),this._onChange,this.showOffButton&&r?pj(v_(),this._tracksList,this.lang):void 0,vg(t,function(e){return e.uid},function(t){return r?pj(vb(),t,e.lang):pj(vm(),t,e.lang)}))},v(t,[{key:"_tracksList",get:function(){return ys(this,r8)[r8]},set:function(e){ys(this,r8)[r8]=e}},{key:"trackType",get:function(){return this._trackType},set:function(e){this._trackType=e,this._updateTracksList()}},{key:"showOffButton",get:function(){return ys(this,r7)[r7]},set:function(e){ys(this,r7)[r7]=e}},{key:"lang",get:function(){return ys(this,r6)[r6]},set:function(e){ys(this,r6)[r6]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(this._player=e,this._updateTracksList(),this._updateTracks())}}]),t}(p7),ns=(np=(nd=o(r9,[[ni,1,"_tracksList"],[na,4,"trackType"],[no,1,"showOffButton"],[nl,1,"lang"]],[nt,nr],p7)).e)[0],nu=np[1],nc=np[2],nh=np[3],e.TrackRadioGroup=(ny=nd.c)[0],nn=ny[1],ne);var vT=["change","update"];nf=p9("theoplayer-text-track-radio-button"),nv=fl(["lang"]),n_=yn(),nb=yr({reflect:!0,type:String,attribute:yv.LANG}),nm=yr({reflect:!1,attribute:!1}),e.TextTrackRadioButton=void 0;var vA=yc("____private__track_1"),vE=yc("____private_lang_2"),vS=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,vA,{writable:!0,value:void 0}),Object.defineProperty(t,vE,{writable:!0,value:void 0}),ys(t,vA)[vA]=(nx(t),nk(t,void 0)),ys(t,vE)[vE]=nw(t,""),t._onTrackChange=function(){t._updateFromTrack()},t}i(t,e);var r=t.prototype;return r._updateFromTrack=function(){this.checked=!!this._track&&"showing"===this._track.mode,this.requestUpdate()},r._updateTrack=function(){this._track&&(this._track.mode=this.checked?"showing":"disabled")},r.handleChange=function(){this._updateTrack()},r.render=function(){var e=fb(this.lang),t=this._track?function(e,t){var r=t.label,n=t.language;if(r){if(n&&(r===n||r===fg.formatLanguage(n)));else if(!("cea608"===t.type&&/^CC\d+$/.test(t.label)))return r}var i=n&&e.formatLanguage(n);return i||("cea608"===t.type&&"number"==typeof t.captionChannel?"CC"+t.captionChannel:r||n||"")}(e,this._track):"";return pj(vx(),t)},v(t,[{key:"_track",get:function(){return ys(this,vA)[vA]},set:function(e){ys(this,vA)[vA]=e}},{key:"lang",get:function(){return ys(this,vE)[vE]},set:function(e){ys(this,vE)[vE]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(vT,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(vT,this._onTrackChange))}}]),t}(ng=e.RadioButton);function vL(){var e=a(["<slot>","</slot>"]);return vL=function(){return e},e}nk=(nA=(nT=o(vS,[[n_,1,"_track"],[nb,1,"lang"],[nm,4,"track"]],[nf,nv],ng)).e)[0],nw=nA[1],nx=nA[2],e.TextTrackRadioButton=(nE=nT.c)[0],(0,nE[1])();var vC=["change"];nS=p9("theoplayer-text-track-off-radio-button"),nL=fl(["lang"]),nP=yr({reflect:!0,type:String,attribute:yv.LANG}),nR=yr({reflect:!1,attribute:!1}),e.TextTrackOffRadioButton=void 0;var vP=yc("____private_lang_1"),vR=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,vP,{writable:!0,value:void 0}),ys(t,vP)[vP]=(nM(t),nO(t,"")),t._trackList=void 0,t._onTrackChange=function(){t._updateFromTrackList()},t}i(t,e);var r=t.prototype;return r._updateFromTrackList=function(){this.checked=!this._trackList||!this._trackList.some(function(e){return vp(e)&&"showing"===e.mode})},r._updateTrackList=function(){this._trackList&&this.checked&&function(e){for(var t,r=yY(e);!(t=r()).done;){var n=t.value;vd(n)&&"showing"===n.mode&&(n.mode="disabled")}}(this._trackList)},r.handleChange=function(){this._updateTrackList()},r.render=function(){var e=fb(this.lang);return pj(vL(),e.subtitleOff)},v(t,[{key:"lang",get:function(){return ys(this,vP)[vP]},set:function(e){ys(this,vP)[vP]=e}},{key:"trackList",get:function(){return this._trackList},set:function(e){this._trackList&&this._trackList.removeEventListener(vC,this._onTrackChange),this._trackList=e,this._updateFromTrackList(),e&&e.addEventListener(vC,this._onTrackChange)}}]),t}(nC=e.RadioButton);function vO(){var e=a([".theoplayer-menu-heading{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.theoplayer-menu-heading-button{-ms-flex-item-align:end;align-self:flex-end}[part=audio],[part=subtitles],theoplayer-track-radio-group{display:-webkit-box;display:-ms-flexbox;display:flex;min-height:0}[part=content]{-ms-grid-columns:1fr;display:-ms-grid;display:grid;grid-template-columns:1fr;min-height:0}:host([has-audio][has-subtitles]) [part=content]{-ms-grid-columns:1fr 10px 1fr;grid-template-columns:1fr 10px 1fr}:host([has-audio][has-subtitles]) [part=audio]{-ms-grid-column:1;grid-column:1}:host([has-audio][has-subtitles]) [part=subtitles]{-ms-grid-column:3;grid-column:3}:host(:not([has-audio])) [part=audio],:host(:not([has-subtitles])) [part=subtitles]{display:none!important}[part=audio],[part=subtitles]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-orient:vertical;-webkit-box-direction:normal;align-self:stretch;-ms-flex-direction:column;flex-direction:column;text-align:center}h2{margin:0 0 .5em}theoplayer-track-radio-group{overflow-y:auto}"]);return vO=function(){return e},e}nO=(nN=(nB=o(vR,[[nP,1,"lang"],[nR,4,"trackList"]],[nS,nL],nC)).e)[0],nM=nN[1],e.TextTrackOffRadioButton=(nI=nB.c)[0],(0,nI[1])();var vM=pi(vO());function vB(){var e=a([".theoplayer-menu-heading{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.theoplayer-menu-heading-button{-ms-flex-item-align:end;align-self:flex-end}"]);return vB=function(){return e},e}var vN=pi(vB());function vI(){var e=a(["table{border-collapse:collapse;table-layout:auto}table,table td,table tr{margin:0;padding:0}table td>*{font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));padding:10px;padding:var(--theoplayer-control-padding,10px)}table td:first-child{white-space:nowrap;width:0}table td:last-child{text-align:center}table td>theoplayer-menu-button{display:-webkit-box;display:-ms-flexbox;display:flex}"]);return vI=function(){return e},e}var vD=pi(vI()),v$=[{label:"White",value:"rgb(255,255,255)"},{label:"Yellow",value:"rgb(255,255,0)"},{label:"Green",value:"rgb(0,255,0)"},{label:"Cyan",value:"rgb(0,255,255)"},{label:"Blue",value:"rgb(0,0,255)"},{label:"Magenta",value:"rgb(255,0,255)"},{label:"Red",value:"rgb(255,0,0)"},{label:"Black",value:"rgb(0,0,0)"}],vF=[{label:"Monospace Serif",value:'"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace'},{label:"Proportional Serif",value:'"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif'},{label:"Monospace Sans",value:'"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace'},{label:"Proportional Sans",value:'Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}],vU=[.5,.75,1,1.5,2],vq=[.25,.5,.75,1],vj=["none","dropshadow","raised","depressed","uniform"];function vz(e){var t,r;return e?y6(e,"rgb")?(t=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([0-9.]+))?\)$/i))?{r_:parseInt(t[1],10),g_:parseInt(t[2],10),b_:parseInt(t[3],10),a_:t[4]?parseFloat(t[4]):1}:null:y6(e,"#")?(r=e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i))?{r_:parseInt(r[1],16),g_:parseInt(r[2],16),b_:parseInt(r[3],16),a_:1}:null:null:null}function vH(e){return"rgba("+e.r_+","+e.g_+","+e.b_+","+e.a_+")"}function vV(e){return"rgb("+e.r_+","+e.g_+","+e.b_+")"}function vG(e,t){return{r_:e.r_,g_:e.g_,b_:e.b_,a_:t}}var vQ=vz("#ffffff"),vW=vz("#000000");function vK(){var e=a(["<span>","</span>"]);return vK=function(){return e},e}nD=p9("theoplayer-text-track-style-display"),n$=fl(["player","lang"]),nF=yr({reflect:!0,type:String,attribute:yv.LANG}),nU=yr({reflect:!0,type:String,attribute:yv.PROPERTY}),nq=yr({reflect:!1,attribute:!1}),e.TextTrackStyleDisplay=void 0;var vZ=yc("____private_lang_1"),vY=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,vZ,{writable:!0,value:void 0}),ys(t,vZ)[vZ]=(nz(t),nj(t,"")),t._property="fontColor",t._updateFromPlayer=function(){return t.requestUpdate()},t}i(t,e);var r=t.prototype;return r.render=function(){var e=fb(this.lang);return pj(vK(),this.renderValue(e))},r.renderValue=function(e){if(void 0===this._player)return"";var t,r,n,i=this.property;switch(i){case"fontFamily":var a=this._player.textTrackStyle.fontFamily,o=e;if(!a)return o.textTrackStyleDefaultLabel;var l,s=y8(vF,function(e){return e.value===a});return s?null!=(l=o.fontFamilyLabels[s.label])?l:s.label:o.textTrackStyleCustomLabel;case"fontColor":case"backgroundColor":case"windowColor":return function(e,t){if(!e)return t.textTrackStyleDefaultLabel;var r=vz(e);if(r){var n,i=vV(r),a=y8(v$,function(e){return e.value===i});if(a)return null!=(n=t.colorLabels[a.label])?n:a.label}return t.textTrackStyleCustomLabel}(this._player.textTrackStyle[i],e);case"fontOpacity":return vJ(this._player.textTrackStyle.fontColor,e);case"backgroundOpacity":return vJ(this._player.textTrackStyle.backgroundColor,e);case"windowOpacity":return vJ(this._player.textTrackStyle.windowColor,e);case"edgeStyle":return t=this._player.textTrackStyle.edgeStyle,r=e,t?null!=(n=r.edgeStyleLabels[t])?n:r.textTrackStyleCustomLabel:r.textTrackStyleDefaultLabel;default:return this._player.textTrackStyle[i]||e.textTrackStyleDefaultLabel}},v(t,[{key:"lang",get:function(){return ys(this,vZ)[vZ]},set:function(e){ys(this,vZ)[vZ]=e}},{key:"property",get:function(){return this._property},set:function(e){this._property=e,this._updateFromPlayer()}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackStyle)||t.removeEventListener("change",this._updateFromPlayer),this._player=e,this._textTrackStyle=null==e?void 0:e.textTrackStyle,this._updateFromPlayer(),null==(r=this._textTrackStyle)||r.addEventListener("change",this._updateFromPlayer))}}]),t}(p7);function vJ(e,t){if(!e)return t.textTrackStyleDefaultLabel;var r=vz(e);return r?t.formatPercentage(r.a_):t.textTrackStyleCustomLabel}function vX(){var e=a(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return vX=function(){return e},e}function v0(e,t,r){var n,i,a,o=null!=(n=null==(i=vz(t))?void 0:i.a_)?n:1;if(""!==e||1!==o)return vH(vG(null!=(a=vz(e))?a:r,o))}function v1(e,t,r){var n,i=null!=(n=vz(t))?n:r;if(""!==e||i.r_!==r.r_||i.g_!==r.g_||i.b_!==r.b_)return vH(vG(i,""==e?1:Number(e)/100))}function v2(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return v2=function(){return e},e}function v5(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return v5=function(){return e},e}function v3(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return v3=function(){return e},e}function v4(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return v4=function(){return e},e}function v8(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return v8=function(){return e},e}function v7(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return v7=function(){return e},e}function v6(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return v6=function(){return e},e}function v9(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return v9=function(){return e},e}function ge(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return ge=function(){return e},e}function gt(){var e=a(['<theoplayer-menu class="theoplayer-text-track-style-menu"><span class="theoplayer-menu-heading" slot="heading"><slot name="heading">','</slot></span><theoplayer-text-track-style-reset-button class="theoplayer-menu-heading-button" slot="heading"></theoplayer-text-track-style-reset-button><table><tr><td><span>','</span></td><td><theoplayer-menu-button menu="font-family-menu"><theoplayer-text-track-style-display property="fontFamily"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="font-color-menu"><theoplayer-text-track-style-display property="fontColor"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="font-opacity-menu"><theoplayer-text-track-style-display property="fontOpacity"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="font-size-menu"><theoplayer-text-track-style-display property="fontSize"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="background-color-menu"><theoplayer-text-track-style-display property="backgroundColor"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="background-opacity-menu"><theoplayer-text-track-style-display property="backgroundOpacity"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="window-color-menu"><theoplayer-text-track-style-display property="windowColor"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="window-opacity-menu"><theoplayer-text-track-style-display property="windowOpacity"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="edge-style-menu"><theoplayer-text-track-style-display property="edgeStyle"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr></table></theoplayer-menu><theoplayer-menu id="font-family-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="fontFamily"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="font-color-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="fontColor"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="font-opacity-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="fontOpacity"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="font-size-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="fontSize"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="background-color-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="backgroundColor"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="background-opacity-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="backgroundOpacity"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="window-color-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="windowColor"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="window-opacity-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="windowOpacity"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="edge-style-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="edgeStyle"><theoplayer-radio-button value="">',"</theoplayer-radio-button>","</theoplayer-text-track-style-radio-group></theoplayer-menu>"]);return gt=function(){return e},e}function gr(){var e=a(['<theoplayer-menu><span class="theoplayer-menu-heading" slot="heading"><slot name="heading">','</slot></span><theoplayer-settings-menu-button class="theoplayer-menu-heading-button" menu="subtitle-options-menu" slot="heading" lang="','"></theoplayer-settings-menu-button><div part="content"><div part="audio"><h2>','</h2><theoplayer-track-radio-group track-type="audio" lang="','"></theoplayer-track-radio-group></div><div part="subtitles"><h2>','</h2><theoplayer-track-radio-group track-type="subtitles" show-off lang="','"></theoplayer-track-radio-group></div></div></theoplayer-menu><theoplayer-text-track-style-menu id="subtitle-options-menu" lang="','"></theoplayer-text-track-style-menu>']);return gr=function(){return e},e}nj=(nV=(nH=o(vY,[[nF,1,"lang"],[nU,4,"property"],[nq,4,"player"]],[nD,n$],p7)).e)[0],nz=nV[1],e.TextTrackStyleDisplay=(nG=nH.c)[0],(0,nG[1])(),nK=p9("theoplayer-text-track-style-radio-group"),nZ=fl(["player"]),nJ=yr({reflect:!0,type:String,attribute:yv.PROPERTY}),nX=yr({reflect:!1,attribute:!1}),n0=yr({reflect:!1,attribute:!1}),e.TextTrackStyleRadioGroup=void 0,new(nW=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vh],nY(),t}return i(t,e),t}(l),nQ=function(t){function r(){var e;return e=t.apply(this,arguments)||this,n1(e),e._radioGroupRef=yF(),e._property="fontColor",e._onChange=function(){var t=e._radioGroupRef.value;t&&(e.value=t.value)},e._updateFromPlayer=function(){if(void 0!==e._player)switch(e.property){case"fontColor":var t,r,n=e._player.textTrackStyle.fontColor;e.value=n?vV(null!=(r=vz(n))?r:vQ):"";break;case"backgroundColor":var i,a=e._player.textTrackStyle.backgroundColor;e.value=a?vV(null!=(i=vz(a))?i:vW):"";break;case"windowColor":var o,l=e._player.textTrackStyle.windowColor;e.value=l?vV(null!=(o=vz(l))?o:vW):"";break;case"fontOpacity":var s,u,c=e._player.textTrackStyle.fontColor;e.value=c?String((null!=(s=null==(u=vz(c))?void 0:u.a_)?s:1)*100):"";break;case"backgroundOpacity":var h,d,p=e._player.textTrackStyle.backgroundColor;e.value=p?String((null!=(h=null==(d=vz(p))?void 0:d.a_)?h:1)*100):"";break;case"windowOpacity":var y,f,v=e._player.textTrackStyle.windowColor;e.value=v?String((null!=(y=null==(f=vz(v))?void 0:f.a_)?y:1)*100):"";break;default:e.value=null!=(t=e._player.textTrackStyle[e.property])?t:""}},e}i(r,t);var n=r.prototype;return n.firstUpdated=function(){var t=this._radioGroupRef.value;T(t,e.RadioGroup)||customElements.upgrade(t),t.value=this.value},n._updateToPlayer=function(){if(void 0!==this._player)switch(this.property){case"fontColor":this._player.textTrackStyle.fontColor=v0(this.value,this._player.textTrackStyle.fontColor,vQ);break;case"backgroundColor":this._player.textTrackStyle.backgroundColor=v0(this.value,this._player.textTrackStyle.backgroundColor,vW);break;case"windowColor":this._player.textTrackStyle.windowColor=v0(this.value,this._player.textTrackStyle.windowColor,vW);break;case"fontOpacity":this._player.textTrackStyle.fontColor=v1(this.value,this._player.textTrackStyle.fontColor,vQ);break;case"backgroundOpacity":this._player.textTrackStyle.backgroundColor=v1(this.value,this._player.textTrackStyle.backgroundColor,vW);break;case"windowOpacity":this._player.textTrackStyle.windowColor=v1(this.value,this._player.textTrackStyle.windowColor,vW);break;default:this._player.textTrackStyle[this.property]=""==this.value?void 0:this.value}},n.render=function(){return pj(vX(),yj(this._radioGroupRef),this._onChange)},v(r,[{key:"property",get:function(){return this._property},set:function(e){this._property!==e&&(this._property=e,this._updateFromPlayer())}},{key:"value",get:function(){return this._value},set:function(e){if(this._value!==e){this._value=e,this._updateToPlayer();var t=this._radioGroupRef.value;t&&(t.value=e),this.dispatchEvent(fF("change",{bubbles:!0}))}}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackStyle)||t.removeEventListener("change",this._updateFromPlayer),this._player=e,this._textTrackStyle=null==e?void 0:e.textTrackStyle,this._updateFromPlayer(),null==(r=this._textTrackStyle)||r.addEventListener("change",this._updateFromPlayer))}}]),r}(p7),n1=(n2=o(nQ,[[nJ,4,"property"],[nX,4,"value"],[n0,4,"player"]],[nK,nZ],p7)).e[0],e.TextTrackStyleRadioGroup=(n5=n2.c)[0],nY=n5[1],nW),n7=p9("theoplayer-text-track-style-menu"),n6=fl(["lang"]),it=yr({reflect:!0,type:String,attribute:yv.LANG}),e.TextTrackStyleMenu=void 0,new(n8=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.MenuGroup.styles,[vD,vN]),n9(),r}return i(r,t),r}(l),n3=yc("____private_lang_1"),n4=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,n3,{writable:!0,value:void 0}),ys(t,n3)[n3]=(ii(t),ir(t,"")),t}return i(t,e),t.prototype.render=function(){var e=fb(this.lang);return pj(gt(),e.textTrackStyleMenuHeading,e.textTrackStyleFontFamily,e.textTrackStyleFontColor,e.textTrackStyleFontOpacity,e.textTrackStyleFontSize,e.textTrackStyleBackgroundColor,e.textTrackStyleBackgroundOpacity,e.textTrackStyleWindowColor,e.textTrackStyleWindowOpacity,e.textTrackStyleEdgeStyle,e.textTrackStyleFontFamily,e.textTrackStyleDefaultLabel,vF.map(function(t){var r,n=t.label,i=t.value;return pj(v2(),i,null!=(r=e.fontFamilyLabels[n])?r:n)}),e.textTrackStyleFontColor,e.textTrackStyleDefaultLabel,v$.map(function(t){var r,n=t.label,i=t.value;return pj(v5(),i,null!=(r=e.colorLabels[n])?r:n)}),e.textTrackStyleFontOpacity,e.textTrackStyleDefaultLabel,vq.map(function(t){return pj(v3(),100*t,e.formatPercentage(t))}),e.textTrackStyleFontSize,e.textTrackStyleDefaultLabel,vU.map(function(t){return pj(v4(),100*t,e.formatPercentage(t))}),e.textTrackStyleBackgroundColor,e.textTrackStyleDefaultLabel,v$.map(function(t){var r,n=t.label,i=t.value;return pj(v8(),i,null!=(r=e.colorLabels[n])?r:n)}),e.textTrackStyleBackgroundOpacity,e.textTrackStyleDefaultLabel,vq.map(function(t){return pj(v7(),100*t,e.formatPercentage(t))}),e.textTrackStyleWindowColor,e.textTrackStyleDefaultLabel,v$.map(function(t){var r,n=t.label,i=t.value;return pj(v6(),i,null!=(r=e.colorLabels[n])?r:n)}),e.textTrackStyleWindowOpacity,e.textTrackStyleDefaultLabel,vq.map(function(t){return pj(v9(),100*t,e.formatPercentage(t))}),e.textTrackStyleEdgeStyle,e.textTrackStyleDefaultLabel,vj.map(function(t){var r;return pj(ge(),t,null!=(r=e.edgeStyleLabels[t])?r:t)}))},v(t,[{key:"lang",get:function(){return ys(this,n3)[n3]},set:function(e){ys(this,n3)[n3]=e}}]),t}(ie=e.MenuGroup),ir=(io=(ia=o(n4,[[it,1,"lang"]],[n7,n6],ie)).e)[0],ii=io[1],e.TextTrackStyleMenu=(il=ia.c)[0],n9=il[1],n8);var gn=["addtrack","removetrack"];function gi(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return gi=function(){return e},e}ip=p9("theoplayer-language-menu"),iy=fl(["player","lang"]),i_=yr({reflect:!0,type:String,attribute:yv.LANG}),ib=yr({state:!0}),im=yr({reflect:!0,state:!0,type:Boolean,attribute:yv.HAS_AUDIO}),ik=yr({reflect:!0,state:!0,type:Boolean,attribute:yv.HAS_SUBTITLES}),e.LanguageMenu=void 0,new(id=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.MenuGroup.styles,[vM]),iv(),r}return i(r,t),r}(l),is=yc("____private_lang_1"),iu=yc("____private__hasAudioTracks_2"),ic=yc("____private__hasSubtitles_3"),ih=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,is,{writable:!0,value:void 0}),Object.defineProperty(t,iu,{writable:!0,value:void 0}),Object.defineProperty(t,ic,{writable:!0,value:void 0}),ys(t,is)[is]=(iA(t),iw(t,"")),ys(t,iu)[iu]=ix(t,!1),ys(t,ic)[ic]=iT(t,!1),t._updateAudioTracks=function(){var e,r,n=null!=(e=null==(r=t._player)?void 0:r.audioTracks)?e:[];t._hasAudioTracks=n.length>1},t._updateTextTracks=function(){var e,r,n=null!=(e=null==(r=t._player)?void 0:r.textTracks.filter(vp))?e:[];t._hasSubtitles=n.length>0},t}return i(t,e),t.prototype.render=function(){var e=fb(this.lang);return pj(gr(),e.languageMenuHeading,this.lang,e.audioMenuHeading,this.lang,e.subtitleMenuHeading,this.lang,this.lang)},v(t,[{key:"lang",get:function(){return ys(this,is)[is]},set:function(e){ys(this,is)[is]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r,n,i;this._player!==e&&(null==(t=this._audioTrackList)||t.removeEventListener(gn,this._updateAudioTracks),null==(r=this._textTrackList)||r.removeEventListener(gn,this._updateTextTracks),this._player=e,this._audioTrackList=null==e?void 0:e.audioTracks,this._textTrackList=null==e?void 0:e.textTracks,this._updateAudioTracks(),this._updateTextTracks(),null==(n=this._audioTrackList)||n.addEventListener(gn,this._updateAudioTracks),null==(i=this._textTrackList)||i.addEventListener(gn,this._updateTextTracks))}},{key:"_hasAudioTracks",get:function(){return ys(this,iu)[iu]},set:function(e){ys(this,iu)[iu]=e}},{key:"_hasSubtitles",get:function(){return ys(this,ic)[ic]},set:function(e){ys(this,ic)[ic]=e}}]),t}(ig=e.MenuGroup),iw=(iS=(iE=o(ih,[[i_,1,"lang"],[ib,4,"player"],[im,1,"_hasAudioTracks"],[ik,1,"_hasSubtitles"]],[ip,iy],ig)).e)[0],ix=iS[1],iT=iS[2],iA=iS[3],e.LanguageMenu=(iL=iE.c)[0],iv=iL[1],id);var ga=["addtrack","removetrack"];iC=p9("theoplayer-language-menu-button"),iP=fl(["player","lang"]),iO=yr({reflect:!1,attribute:!1}),iM=yr({reflect:!0,type:String,attribute:yv.LANG}),e.LanguageMenuButton=void 0;var go=yc("____private_lang_1"),gl=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,go,{writable:!0,value:void 0}),ys(t,go)[go]=(iN(t),iB(t,"")),t._updateTracks=function(){var e=void 0!==t._player&&(t._player.audioTracks.length>=2||t._player.textTracks.some(vp));y9(t,yv.HIDDEN,!e)},t}i(t,e);var r=t.prototype;return r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fb(this.lang);this.ariaLabel=e.openLanguageMenuAria},r.render=function(){return pj(gi(),yW('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M17.469 15.446a6.892 6.892 310 1 0-4.772 3.342l2.872.986q1.9.626 1.9-1.374v-2.954l2.598 1.5V22q0 2-1.899 1.374l-4.95-1.632a9.892 9.892 310 1 1 6.849-4.796zM7 10a1 1 180 1 0 0 2 1 1 180 1 0 0-2zm4 0a1 1 180 1 0 0 2h5a1 1 180 1 0 0-2zm-3 4a1 1 180 1 0 0 2h3a1 1 180 1 0 0-2zm7 0a1 1 180 1 0 0 2 1 1 180 1 0 0-2z"/></svg>\n'))},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r,n,i;this._player!==e&&(null==(t=this._audioTrackList)||t.removeEventListener(ga,this._updateTracks),null==(r=this._textTrackList)||r.removeEventListener(ga,this._updateTracks),this._player=e,this._audioTrackList=null==e?void 0:e.audioTracks,this._textTrackList=null==e?void 0:e.textTracks,this._updateTracks(),null==(n=this._audioTrackList)||n.addEventListener(ga,this._updateTracks),null==(i=this._textTrackList)||i.addEventListener(ga,this._updateTracks))}},{key:"lang",get:function(){return ys(this,go)[go]},set:function(e){ys(this,go)[go]=e}}]),t}(iR=e.MenuButton);function gs(){var e=a(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return gs=function(){return e},e}function gu(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return gu=function(){return e},e}iB=(iD=(iI=o(gl,[[iO,4,"player"],[iM,1,"lang"]],[iC,iP],iR)).e)[0],iN=iD[1],e.LanguageMenuButton=(i$=iI.c)[0],(0,i$[1])(),iq=p9("theoplayer-playback-rate-radio-group"),ij=fl(["player"]),iH=yn(),iV=yn(),e.PlaybackRateRadioGroup=void 0,new(iU=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vh],iz(),t}return i(t,e),t}(l),iF=function(t){function r(){var e;return e=t.apply(this,arguments)||this,iG(e),e._radioGroupRef=yF(),e._value=1,e._onChange=function(){var t=e._radioGroupRef.value;t&&(e.value=Number(t.value))},e._updateFromPlayer=function(){void 0!==e._player&&(e.value=e._player.playbackRate)},e}i(r,t);var n=r.prototype;return n.firstUpdated=function(){var t=this._radioGroupRef.value;T(t,e.RadioGroup)||customElements.upgrade(t),t.value=String(this.value)},n.render=function(){return pj(gs(),yj(this._radioGroupRef),this._onChange)},v(r,[{key:"value",get:function(){return this._value},set:function(e){if(e=Number(e),this._value!==e){this._value=e,void 0!==this._player&&this._player.playbackRate!==e&&(this._player.playbackRate=e);var t=this._radioGroupRef.value;t&&(t.value=String(e)),this.dispatchEvent(fF("change",{bubbles:!0}))}}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener("ratechange",this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener("ratechange",this._updateFromPlayer))}}]),r}(p7),iG=(iQ=o(iF,[[iH,4,"value"],[iV,4,"player"]],[iq,ij],p7)).e[0],e.PlaybackRateRadioGroup=(iW=iQ.c)[0],iz=iW[1],iU),iK=p9("theoplayer-playback-rate-menu-button"),iZ=fl(["lang"]),iJ=yr({reflect:!0,type:String,attribute:yv.LANG}),e.PlaybackRateMenuButton=void 0;var gc=yc("____private_lang_1"),gh=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,gc,{writable:!0,value:void 0}),ys(t,gc)[gc]=(i0(t),iX(t,"")),t}i(t,e);var r=t.prototype;return r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fb(this.lang);this.ariaLabel=e.openPlaybackRateMenuAria},r.render=function(){return pj(gu(),yW('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 96 960 960" height="24" width="24"><path d="M418 716q24 24 61.435 23.5T536 712l171.826-250.174q12.392-19.087-1.652-32.283-14.044-13.195-33.131-.804L424 600q-27 19.13-28.5 55.565T418 716ZM204 915.218q-25.522 0-49.609-12.826-24.087-12.826-36.783-34.783-26.565-46.696-41.696-100.022Q60.782 714.261 60.782 656q0-86.391 32.913-162.566 32.913-76.174 89.956-133.217 57.044-57.044 133.436-90.24Q393.478 236.782 480 236.782q43.87 0 85.87 8.934 42 8.935 81 26.239 28.913 12.696 33.826 38.762 4.913 26.065-13.044 48.153-10.261 12.391-28.217 15.521-17.957 3.131-32.914-3.565-31.434-14.869-62.043-21.456-30.608-6.587-64.478-6.587-129.043 0-221.13 91.522Q166.783 525.826 166.783 656q0 42 10.935 79.891 10.934 37.891 30.804 73.326h542.956q23-38 32.37-75.608Q793.217 696 793.217 652q0-31.609-6.804-62.565-6.804-30.956-20.543-60.826-7.566-16.957-3.718-35.196 3.848-18.239 17.674-29.5 21.653-18.522 47.153-10.261t36.761 35.609q16.305 38 25.457 78.217 9.152 40.218 10.021 82.522 0 58.696-14.348 113.522-14.347 54.826-42.478 104.087-14.391 23.087-37.631 35.348-23.239 12.261-48.761 12.261H204ZM480 576Z"/></svg>\n'))},v(t,[{key:"lang",get:function(){return ys(this,gc)[gc]},set:function(e){ys(this,gc)[gc]=e}}]),t}(iY=e.MenuButton);function gd(){var e=a(['<span slot="heading"><slot name="heading">',"</slot></span>"]);return gd=function(){return e},e}function gp(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return gp=function(){return e},e}function gy(){var e=a(["<theoplayer-playback-rate-radio-group>","</theoplayer-playback-rate-radio-group>"]);return gy=function(){return e},e}iX=(i2=(i1=o(gh,[[iJ,1,"lang"]],[iK,iZ],iY)).e)[0],i0=i2[1],e.PlaybackRateMenuButton=(i5=i1.c)[0],(0,i5[1])();var gf=[.25,.5,1,1.25,1.5,2];i3=p9("theoplayer-playback-rate-menu"),i4=fl(["lang"]),i7=yr({reflect:!0,type:String,attribute:yv.LANG}),e.PlaybackRateMenu=void 0;var gv=yc("____private_lang_1"),gg=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,gv,{writable:!0,value:void 0}),ys(t,gv)[gv]=(i9(t),i6(t,"")),t}i(t,e);var r=t.prototype;return r.renderMenuHeading=function(){var e=fb(this.lang);return pj(gd(),e.playbackRateMenuHeading)},r.renderMenuContent=function(){var e=fb(this.lang);return pj(gy(),gf.map(function(t){return pj(gp(),t,e.formatPlaybackRate(t))}))},v(t,[{key:"lang",get:function(){return ys(this,gv)[gv]},set:function(e){ys(this,gv)[gv]=e}}]),t}(i8=e.Menu);function g_(){var e=a(["<span>","</span>"]);return g_=function(){return e},e}i6=(at=(ae=o(gg,[[i7,1,"lang"]],[i3,i4],i8)).e)[0],i9=at[1],e.PlaybackRateMenu=(ar=ae.c)[0],(0,ar[1])(),an=p9("theoplayer-playback-rate-display"),ai=fl(["playbackRate","lang"]),aa=yr({reflect:!0,type:String,attribute:yv.LANG}),ao=yn(),e.PlaybackRateDisplay=void 0;var gb=yc("____private_lang_1"),gm=yc("____private_playbackRate_2"),gk=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,gb,{writable:!0,value:void 0}),Object.defineProperty(t,gm,{writable:!0,value:void 0}),ys(t,gb)[gb]=(au(t),al(t,"")),ys(t,gm)[gm]=as(t,1),t}return i(t,e),t.prototype.render=function(){var e=fb(this.lang);return pj(g_(),e.formatPlaybackRate(this.playbackRate))},v(t,[{key:"lang",get:function(){return ys(this,gb)[gb]},set:function(e){ys(this,gb)[gb]=e}},{key:"playbackRate",get:function(){return ys(this,gm)[gm]},set:function(e){ys(this,gm)[gm]=e}}]),t}(p7);function gw(){var e=a(["<span>","</span>"]);return gw=function(){return e},e}al=(ah=(ac=o(gk,[[aa,1,"lang"],[ao,1,"playbackRate"]],[an,ai],p7)).e)[0],as=ah[1],au=ah[2],e.PlaybackRateDisplay=(ad=ac.c)[0],(0,ad[1])(),ap=p9("theoplayer-active-quality-display"),ay=fl(["activeVideoQuality","targetVideoQualities"]),af=yr({reflect:!1,attribute:!1}),av=yr({reflect:!1,attribute:!1}),ag=yr({reflect:!0,type:String,attribute:yv.LANG}),e.ActiveQualityDisplay=void 0;var gx=yc("____private_activeVideoQuality_1"),gT=yc("____private_targetVideoQualities_2"),gA=yc("____private_lang_3"),gE=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,gx,{writable:!0,value:void 0}),Object.defineProperty(t,gT,{writable:!0,value:void 0}),Object.defineProperty(t,gA,{writable:!0,value:void 0}),ys(t,gx)[gx]=(ak(t),a_(t,void 0)),ys(t,gT)[gT]=ab(t,void 0),ys(t,gA)[gA]=am(t,""),t}return i(t,e),t.prototype.render=function(){var e,t=fb(this.lang),r=void 0!==this.targetVideoQualities&&1===this.targetVideoQualities.length,n=r?this.targetVideoQualities[0]:void 0,i=vf(t,null!=n?n:this.activeVideoQuality);return e=r?null!=i?i:t.unknownQualityLabel:""+t.automaticQualityLabel+(i?" ("+i+")":""),pj(gw(),e)},v(t,[{key:"activeVideoQuality",get:function(){return ys(this,gx)[gx]},set:function(e){ys(this,gx)[gx]=e}},{key:"targetVideoQualities",get:function(){return ys(this,gT)[gT]},set:function(e){ys(this,gT)[gT]=e}},{key:"lang",get:function(){return ys(this,gA)[gA]},set:function(e){ys(this,gA)[gA]=e}}]),t}(p7);function gS(){var e=a(["<slot>","</slot>"]);return gS=function(){return e},e}a_=(ax=(aw=o(gE,[[af,1,"activeVideoQuality"],[av,1,"targetVideoQualities"],[ag,1,"lang"]],[ap,ay],p7)).e)[0],ab=ax[1],am=ax[2],ak=ax[3],e.ActiveQualityDisplay=(aT=aw.c)[0],(0,aT[1])();var gL=["activequalitychanged","targetqualitychanged"],gC=["update"];aA=p9("theoplayer-quality-radio-button"),aE=fl(["lang"]),aL=yn(),aC=yr({reflect:!0,type:String,attribute:yv.LANG}),aP=yr({reflect:!1,attribute:!1}),aR=yr({reflect:!1,attribute:!1}),e.QualityRadioButton=void 0;var gP=yc("____private__quality_1"),gR=yc("____private_lang_2"),gO=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,gP,{writable:!0,value:void 0}),Object.defineProperty(t,gR,{writable:!0,value:void 0}),t._track=void aB(t),ys(t,gP)[gP]=aO(t,void 0),ys(t,gR)[gR]=aM(t,""),t._updateFromTrack=function(){if(void 0!==t._track){var e=t._track.targetQuality;Array.isArray(e)&&(e=1===e.length?e[0]:void 0),void 0===t._quality?t.checked=void 0===e:t.checked=e===t._quality}t._updateFromQuality()},t._updateFromQuality=function(){t.requestUpdate()},t}i(t,e);var r=t.prototype;return r.handleChange=function(){this._updateTargetQuality()},r._updateTargetQuality=function(){this._track&&this.checked&&(this._track.targetQuality=this._quality)},r.render=function(){var e,t=fb(this.lang),r=void 0===this._quality?t.automaticQualityLabel:null!=(e=vf(t,this._quality))?e:t.unknownQualityLabel;return pj(gS(),r)},v(t,[{key:"_quality",get:function(){return ys(this,gP)[gP]},set:function(e){ys(this,gP)[gP]=e}},{key:"lang",get:function(){return ys(this,gR)[gR]},set:function(e){ys(this,gR)[gR]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(gL,this._updateFromTrack),this._track=e,this._updateFromTrack(),e&&e.addEventListener(gL,this._updateFromTrack))}},{key:"quality",get:function(){return this._quality},set:function(e){this._quality!==e&&(this._quality&&this._quality.removeEventListener(gC,this._updateFromQuality),this._quality=e,this._updateFromTrack(),e&&e.addEventListener(gC,this._updateFromQuality))}}]),t}(aS=e.RadioButton);function gM(){var e=a(['<theoplayer-quality-radio-button lang="','" .track="','" .quality="','"></theoplayer-quality-radio-button>']);return gM=function(){return e},e}function gB(){var e=a(['<theoplayer-radio-group @change="','"><theoplayer-quality-radio-button lang="','" .track="','" .quality="','"></theoplayer-quality-radio-button>',"</theoplayer-radio-group>"]);return gB=function(){return e},e}aO=(aI=(aN=o(gO,[[aL,1,"_quality"],[aC,1,"lang"],[aP,4,"track"],[aR,4,"quality"]],[aA,aE],aS)).e)[0],aM=aI[1],aB=aI[2],e.QualityRadioButton=(aD=aN.c)[0],(0,aD[1])();var gN=["addtrack","removetrack","change"];function gI(){var e=a(["<slot>","</slot>"]);return gI=function(){return e},e}aj=p9("theoplayer-quality-radio-group"),az=fl(["player","lang"]),aV=yn(),aG=yr({reflect:!0,type:String,attribute:yv.LANG}),aQ=yn(),e.QualityRadioGroup=void 0,new(aq=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vh],aH(),t}return i(t,e),t}(l),a$=yc("____private__track_1"),aF=yc("____private_lang_2"),aU=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,a$,{writable:!0,value:void 0}),Object.defineProperty(t,aF,{writable:!0,value:void 0}),ys(t,a$)[a$]=(aZ(t),aW(t)),ys(t,aF)[aF]=aK(t,""),t._onChange=function(){t.dispatchEvent(fF("change",{bubbles:!0}))},t._updateTrack=function(){var e,r,n=t._player?y8(t._player.videoTracks,function(e){return e.enabled}):void 0;t._track!==n&&(null==(e=t._track)||e.removeEventListener("update",t._update),t._track=n,null==(r=t._track)||r.addEventListener("update",t._update),t._update())},t._update=function(){return t.requestUpdate()},t}i(t,e);var r=t.prototype;return r.firstUpdated=function(){this._updateTrack()},r.render=function(){var e=this,t=this._track?this._track.qualities:[];return pj(gB(),this._onChange,this.lang,this._track,void 0,1!==t.length&&vg(t,function(e){return e.uid},function(t){return pj(gM(),e.lang,e._track,t)}))},v(t,[{key:"_track",get:function(){return ys(this,a$)[a$]},set:function(e){ys(this,a$)[a$]=e}},{key:"lang",get:function(){return ys(this,aF)[aF]},set:function(e){ys(this,aF)[aF]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._videoTracks)||t.removeEventListener(gN,this._updateTrack),this._player=e,this._videoTracks=null==e?void 0:e.videoTracks,this._updateTrack(),null==(r=this._videoTracks)||r.addEventListener(gN,this._updateTrack))}}]),t}(p7),aW=(aJ=(aY=o(aU,[[aV,1,"_track"],[aG,1,"lang"],[aQ,4,"player"]],[aj,az],p7)).e)[0],aK=aJ[1],aZ=aJ[2],e.QualityRadioGroup=(aX=aY.c)[0],aH=aX[1],aq),a0=p9("theoplayer-text-track-style-reset-button"),a1=fl(["player","lang"]),a5=yr({reflect:!0,type:String,attribute:yv.LANG}),e.TextTrackStyleResetButton=void 0;var gD=yc("____private_lang_1"),g$=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,gD,{writable:!0,value:void 0}),ys(t,gD)[gD]=(a4(t),a3(t,"")),t}i(t,e);var r=t.prototype;return r.handleClick=function(){if(void 0!==this._player){var e=this._player.textTrackStyle;e.fontFamily=void 0,e.fontColor=void 0,e.fontSize=void 0,e.backgroundColor=void 0,e.windowColor=void 0,e.edgeStyle=void 0}},r.render=function(){var e=fb(this.lang);return pj(gI(),e.textTrackStyleResetLabel)},v(t,[{key:"lang",get:function(){return ys(this,gD)[gD]},set:function(e){ys(this,gD)[gD]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player=e}}]),t}(a2=e.Button);function gF(){var e=a(['<theoplayer-menu><span slot="heading"><slot name="heading">',"</slot></span><table><tr><td><span>",'</span></td><td><theoplayer-menu-button menu="quality-menu"><theoplayer-active-quality-display lang="','"></theoplayer-active-quality-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="playback-rate-menu"><theoplayer-playback-rate-display lang="','"></theoplayer-playback-rate-display></theoplayer-menu-button></td></tr></table></theoplayer-menu><theoplayer-menu id="quality-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-quality-radio-group lang="','"></theoplayer-quality-radio-group></theoplayer-menu><theoplayer-playback-rate-menu id="playback-rate-menu" lang="','" menu-close-on-input hidden></theoplayer-playback-rate-menu>']);return gF=function(){return e},e}a3=(a7=(a8=o(g$,[[a5,1,"lang"]],[a0,a1],a2)).e)[0],a4=a7[1],e.TextTrackStyleResetButton=(a6=a8.c)[0],(0,a6[1])(),or=p9("theoplayer-settings-menu"),on=fl(["lang"]),oo=yr({reflect:!0,type:String,attribute:yv.LANG}),e.SettingsMenu=void 0,new(ot=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.MenuGroup.styles,[vD]),oi(),r}return i(r,t),r}(l),a9=yc("____private_lang_1"),oe=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,a9,{writable:!0,value:void 0}),ys(t,a9)[a9]=(os(t),ol(t,"")),t}return i(t,e),t.prototype.render=function(){var e=fb(this.lang);return pj(gF(),e.settingsMenuHeading,e.qualityMenuHeading,this.lang,e.playbackRateMenuHeading,this.lang,e.qualityMenuHeading,this.lang,this.lang)},v(t,[{key:"lang",get:function(){return ys(this,a9)[a9]},set:function(e){ys(this,a9)[a9]=e}}]),t}(oa=e.MenuGroup),ol=(oc=(ou=o(oe,[[oo,1,"lang"]],[or,on],oa)).e)[0],os=oc[1],e.SettingsMenu=(oh=ou.c)[0],oi=oh[1],ot);var gU='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M14 22.475h-4q-.475 0-.863-.337-.387-.338-.437-.813l-.3-2.2q-.2-.075-.4-.2t-.375-.25l-2.05.85q-.475.2-.937.05-.463-.15-.738-.6l-1.975-3.45q-.25-.45-.162-.95.087-.5.487-.775l1.775-1.35Q4 12.325 4 12.225v-.45q0-.1.025-.225L2.25 10.2q-.4-.3-.487-.8-.088-.5.162-.925L3.9 5.025q.25-.45.725-.588.475-.137.95.038l2.075.875q.175-.15.363-.263.187-.112.387-.187l.3-2.225q.05-.5.425-.825.375-.325.875-.325h4q.5 0 .875.325t.425.825l.3 2.225q.2.075.4.187.2.113.375.263l2.05-.875q.475-.175.938-.025.462.15.737.575l2 3.45q.25.45.15.95-.1.5-.5.775l-1.775 1.35v.675q0 .1-.025.225l1.775 1.35q.4.275.487.775.088.5-.162.95l-2 3.45q-.25.425-.725.587-.475.163-.95-.037l-2.025-.85q-.175.125-.362.25-.188.125-.388.2l-.3 2.2q-.05.475-.425.813-.375.337-.875.337ZM12 15.5q1.45 0 2.475-1.025Q15.5 13.45 15.5 12q0-1.45-1.025-2.475Q13.45 8.5 12 8.5q-1.45 0-2.475 1.025Q8.5 10.55 8.5 12q0 1.45 1.025 2.475Q10.55 15.5 12 15.5Z"/></svg>\n';function gq(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return gq=function(){return e},e}od=p9("theoplayer-settings-menu-button"),op=fl(["lang"]),of=yr({reflect:!0,type:String,attribute:yv.LANG}),e.SettingsMenuButton=void 0;var gj=yc("____private_lang_1"),gz=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,gj,{writable:!0,value:void 0}),ys(t,gj)[gj]=(og(t),ov(t,"")),t}i(t,e);var r=t.prototype;return r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fb(this.lang);this.ariaLabel=e.openSettingsMenuAria},r.render=function(){return pj(gq(),yW(gU))},v(t,[{key:"lang",get:function(){return ys(this,gj)[gj]},set:function(e){ys(this,gj)[gj]=e}}]),t}(oy=e.MenuButton);function gH(){var e=a([":host(:not([fullscreen])) [part=exit-icon],:host([fullscreen]) [part=enter-icon]{display:none!important}"]);return gH=function(){return e},e}ov=(ob=(o_=o(gz,[[of,1,"lang"]],[od,op],oy)).e)[0],og=ob[1],e.SettingsMenuButton=(om=o_.c)[0],(0,om[1])();var gV=pi(gH()),gG="theoplayerfullscreenenter",gQ="theoplayerfullscreenexit";function gW(){var e=a(['<span part="enter-icon"><slot name="enter-icon">','</slot></span><span part="exit-icon"><slot name="exit-icon">',"</slot></span>"]);return gW=function(){return e},e}function gK(e,t){void 0!==window.ShadyCSS&&!1===window.ShadyCSS.nativeCss?window.ShadyCSS.styleSubtree(e,t):null!=t&&function(e,t){var r=e.style,n=!0,i=!1,a=void 0;try{for(var o,l=Object.entries(t)[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=b(o.value,2),u=s[0],c=s[1];r.setProperty(u,c)}}catch(e){i=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw a}}}(e,t)}function gZ(){var e=a([":host{--thumb-height:var(--theoplayer-range-thumb-height,10px);--track-height:var(--theoplayer-range-track-height,4px);--theoplayer-range-padding:var(--theoplayer-control-padding,10px);background:transparent;background:var(--theoplayer-control-background,transparent);-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;font-size:0;height:44px;height:calc(var(--theoplayer-control-height, 24px) + var(--theoplayer-range-padding)*2);padding-left:10px;padding-left:var(--theoplayer-range-padding-left,var(--theoplayer-range-padding));padding-right:10px;padding-right:var(--theoplayer-range-padding-right,var(--theoplayer-range-padding));pointer-events:auto;position:relative;-webkit-transition:background .15s linear;transition:background .15s linear;vertical-align:middle;width:100px}:host([hidden]){display:none!important}:host(:hover:not([disabled])){background:transparent;background:var(--theoplayer-control-hover-background,var(--theoplayer-control-background,transparent))}[part=container]{height:100%;position:relative}[part=background],[part=pointer]{border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);height:var(--track-height);position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transform:translate(var(--theoplayer-range-track-translate-x,0),calc(var(--theoplayer-range-track-translate-y, 0px) - 50%));transform:translate(var(--theoplayer-range-track-translate-x,0),calc(var(--theoplayer-range-track-translate-y, 0px) - 50%))}[part=background]{background:hsla(0,0%,100%,.2);background:var(--theoplayer-range-track-background,hsla(0,0%,100%,.2));min-width:40px;width:100%;width:var(--theoplayer-range-track-width,100%)}[part=pointer]{background:transparent;background:var(--theoplayer-range-track-pointer-background,transparent);border-right:none;border-right:var(--theoplayer-range-track-pointer-border-right,none);opacity:0;-webkit-transition:visibility .25s,opacity .25s;transition:visibility .25s,opacity .25s;visibility:hidden}:host(:hover:not([disabled])) [part=pointer]{opacity:1;-webkit-transition:visibility .5s,opacity .5s;transition:visibility .5s,opacity .5s;visibility:visible}input[type=range]{-webkit-appearance:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;min-height:100%;padding:0;position:relative;width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background:#fff;background:var(--theoplayer-range-thumb-background,#fff);border:none;border:var(--theoplayer-range-thumb-border,none);border-radius:10px;border-radius:var(--theoplayer-range-thumb-border-radius,10px);-webkit-box-shadow:1px 1px 1px transparent;box-shadow:1px 1px 1px transparent;-webkit-box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);cursor:pointer;height:auto;height:var(--thumb-height,auto);margin-top:calc(0px - var(--thumb-height)/2 + var(--track-height)/2);opacity:1;opacity:var(--theoplayer-range-thumb-opacity,1);-webkit-transform:none;transform:none;-webkit-transform:var(--theoplayer-range-thumb-transform,none);transform:var(--theoplayer-range-thumb-transform,none);-webkit-transition:none;transition:none;-webkit-transition:var(--theoplayer-range-thumb-transition,none);transition:var(--theoplayer-range-thumb-transition,none);width:10px;width:var(--theoplayer-range-thumb-width,10px)}input[type=range]::-moz-range-thumb{background:#fff;background:var(--theoplayer-range-thumb-background,#fff);border:none;border:var(--theoplayer-range-thumb-border,none);border-radius:10px;border-radius:var(--theoplayer-range-thumb-border-radius,10px);box-shadow:1px 1px 1px transparent;box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);cursor:pointer;height:auto;height:var(--thumb-height,auto);opacity:1;opacity:var(--theoplayer-range-thumb-opacity,1);transform:none;transform:var(--theoplayer-range-thumb-transform,none);-moz-transition:none;transition:none;-moz-transition:var(--theoplayer-range-thumb-transition,none);transition:var(--theoplayer-range-thumb-transition,none);translate:0 0;translate:var(--theoplayer-range-track-translate-x,0) var(--theoplayer-range-track-translate-y,0);width:10px;width:var(--theoplayer-range-thumb-width,10px)}input[type=range]::-ms-thumb{background:#fff;background:var(--theoplayer-range-thumb-background,#fff);border:none;border:var(--theoplayer-range-thumb-border,none);border-radius:10px;border-radius:var(--theoplayer-range-thumb-border-radius,10px);box-shadow:1px 1px 1px transparent;box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);cursor:pointer;height:auto;height:var(--thumb-height,auto);opacity:1;opacity:var(--theoplayer-range-thumb-opacity,1);transform:none;transform:var(--theoplayer-range-thumb-transform,none);-ms-transition:none;transition:none;-ms-transition:var(--theoplayer-range-thumb-transition,none);transition:var(--theoplayer-range-thumb-transition,none);width:10px;width:var(--theoplayer-range-thumb-width,10px)}:host([disabled]) input[type=range]::-webkit-slider-thumb{display:none}:host([disabled]) input[type=range]::-moz-range-thumb{display:none}:host([disabled]) input[type=range]::-ms-thumb{display:none}input[type=range]::-webkit-slider-runnable-track{background:#fff;background:var(--theoplayer-range-track-progress-internal,var(--theoplayer-range-bar-color,#fff));border:none;border:var(--theoplayer-range-track-border,none);border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);-webkit-box-shadow:none;box-shadow:none;-webkit-box-shadow:var(--theoplayer-range-track-box-shadow,none);box-shadow:var(--theoplayer-range-track-box-shadow,none);cursor:pointer;height:var(--track-height);min-width:40px;outline:var(--theoplayer-range-track-outline);outline-offset:var(--theoplayer-range-track-outline-offset);-webkit-transform:translate(0);transform:translate(0);-webkit-transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));-webkit-transition:none;transition:none;-webkit-transition:var(--theoplayer-range-track-transition,none);transition:var(--theoplayer-range-track-transition,none);width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-moz-range-track{background:#fff;background:var(--theoplayer-range-track-progress-internal,var(--theoplayer-range-bar-color,#fff));border:none;border:var(--theoplayer-range-track-border,none);border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);box-shadow:none;box-shadow:var(--theoplayer-range-track-box-shadow,none);cursor:pointer;height:var(--track-height);min-width:40px;outline:var(--theoplayer-range-track-outline);outline-offset:var(--theoplayer-range-track-outline-offset);transform:translate(0);transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));-moz-transition:none;transition:none;-moz-transition:var(--theoplayer-range-track-transition,none);transition:var(--theoplayer-range-track-transition,none);width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-ms-track{background:transparent;background:#fff;background:var(--theoplayer-range-track-progress-internal,var(--theoplayer-range-bar-color,#fff));border:none;border:var(--theoplayer-range-track-border,none);border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);box-shadow:none;box-shadow:var(--theoplayer-range-track-box-shadow,none);color:transparent;cursor:pointer;height:var(--track-height);min-width:40px;outline:var(--theoplayer-range-track-outline);outline-offset:var(--theoplayer-range-track-outline-offset);transform:translate(0);transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));-ms-transition:none;transition:none;-ms-transition:var(--theoplayer-range-track-transition,none);transition:var(--theoplayer-range-track-transition,none);width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-ms-fill-lower,input[type=range]::-ms-fill-upper,input[type=range]::-ms-tooltip{display:none}:host([disabled]) input[type=range]::-webkit-slider-runnable-track{cursor:default}:host([disabled]) input[type=range]::-moz-range-track{cursor:default}:host([disabled]) input[type=range]::-ms-track{cursor:default}input[type=range]:focus{-webkit-box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);-webkit-box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));outline:0}input[type=range]:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}input[type=range]:focus::-webkit-slider-runnable-track{outline:0}"]);return gZ=function(){return e},e}oA=p9("theoplayer-fullscreen-button"),oE=fl(["fullscreen","lang"]),oC=yr({reflect:!0,type:Boolean,attribute:yv.FULLSCREEN}),oP=yr({reflect:!0,type:String,attribute:yv.LANG}),e.FullscreenButton=void 0,new(oT=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[gV]),oS(),r}return i(r,t),r}(l),ok=yc("____private_fullscreen_1"),ow=yc("____private_lang_2"),ox=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ok,{writable:!0,value:void 0}),Object.defineProperty(t,ow,{writable:!0,value:void 0}),ys(t,ok)[ok]=(oM(t),oR(t,!1)),ys(t,ow)[ow]=oO(t,""),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},r.handleClick=function(){if(this.fullscreen){var e=fU(gQ,{bubbles:!0,composed:!0});this.dispatchEvent(e)}else{var t=fU(gG,{bubbles:!0,composed:!0});this.dispatchEvent(t)}},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fb(this.lang);this.ariaLabel=this.fullscreen?e.fullscreenExitAria:e.fullscreenAria},r.render=function(){return pj(gW(),yW('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M5.9 19.225q-.475 0-.8-.325-.325-.325-.325-.8V15q0-.475.325-.812.325-.338.8-.338.5 0 .825.338.325.337.325.812v1.95H9q.475 0 .812.325.338.325.338.825 0 .475-.338.8-.337.325-.812.325Zm0-9.075q-.475 0-.8-.338-.325-.337-.325-.812V5.9q0-.475.325-.8.325-.325.8-.325H9q.475 0 .812.325.338.325.338.8 0 .5-.338.825-.337.325-.812.325H7.05V9q0 .475-.325.812-.325.338-.825.338Zm9.1 9.075q-.475 0-.812-.325-.338-.325-.338-.8 0-.5.338-.825.337-.325.812-.325h1.95V15q0-.475.325-.812.325-.338.825-.338.475 0 .8.338.325.337.325.812v3.1q0 .475-.325.8-.325.325-.8.325Zm3.1-9.075q-.5 0-.825-.338-.325-.337-.325-.812V7.05H15q-.475 0-.812-.325-.338-.325-.338-.825 0-.475.338-.8.337-.325.812-.325h3.1q.475 0 .8.325.325.325.325.8V9q0 .475-.325.812-.325.338-.8.338Z"/></svg>\n'),yW('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M9 19.225q-.475 0-.812-.325-.338-.325-.338-.8v-1.95H5.9q-.475 0-.8-.338-.325-.337-.325-.812 0-.475.325-.812.325-.338.8-.338H9q.475 0 .812.338.338.337.338.812v3.1q0 .475-.338.8-.337.325-.812.325ZM5.9 10.15q-.475 0-.8-.338-.325-.337-.325-.812 0-.475.325-.813.325-.337.8-.337h1.95V5.9q0-.475.338-.8.337-.325.812-.325.475 0 .812.325.338.325.338.8V9q0 .475-.338.812-.337.338-.812.338Zm9.1 9.075q-.475 0-.812-.325-.338-.325-.338-.8V15q0-.475.338-.812.337-.338.812-.338h3.1q.475 0 .8.338.325.337.325.812 0 .475-.325.812-.325.338-.8.338h-1.95v1.95q0 .475-.337.8-.338.325-.813.325Zm0-9.075q-.475 0-.812-.338-.338-.337-.338-.812V5.9q0-.475.338-.8.337-.325.812-.325.475 0 .813.325.337.325.337.8v1.95h1.95q.475 0 .8.337.325.338.325.813 0 .475-.325.812-.325.338-.8.338Z"/></svg>\n'))},v(t,[{key:"fullscreen",get:function(){return ys(this,ok)[ok]},set:function(e){ys(this,ok)[ok]=e}},{key:"lang",get:function(){return ys(this,ow)[ow]},set:function(e){ys(this,ow)[ow]=e}}]),t}(oL=e.Button),oR=(oN=(oB=o(ox,[[oC,1,"fullscreen"],[oP,1,"lang"]],[oA,oE],oL)).e)[0],oO=oN[1],oM=oN[2],e.FullscreenButton=(oI=oB.c)[0],oS=oI[1],oT);var gY=pi(gZ()),gJ=function(){function e(){this._stops=[["transparent",100]]}var t=e.prototype;return t.add=function(e,t,r){if(!((t=Math.max(t,0))>=(r=Math.min(r,100)))){var n=y7(this._stops,function(e){var r=e[1];return t<=r});if(!(n<0)){var i=this._stops[n],a=i[0],o=i[1],l=[];if(t>0&&l.push([a,t]),l.push([e,r]),r<o)l.push([a,o]),(s=this._stops).splice.apply(s,[].concat([n,1],l));else{for(var s,u,c=n+1;c<this._stops.length&&!(r<this._stops[c][1]);)c++;(u=this._stops).splice.apply(u,[].concat([n,c-n],l))}}}},t.toGradientStops=function(){for(var e,t=[],r=0,n=yY(this._stops);!(e=n()).done;){var i=e.value,a=i[0],o=i[1];o<r||(t.push(a+" "+r+"%"),t.push(a+" "+o+"%"),r=o)}return t.join(", ")},e}(),gX="important",g0=" !"+gX,g1=yh(function(e){function t(e){var r,n;if(y(this,t),r=p(this,t,[e]),1!==e.type||"style"!==e.name||(null==(n=e.strings)?void 0:n.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");return r}return i(t,e),v(t,[{key:"render",value:function(e){return Object.keys(e).reduce(function(t,r){var n=e[r];return null==n?t:t+((r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase())+":")+n+";"},"")}},{key:"update",value:function(e,t){var r=b(t,1)[0],n=e.element.style;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);var i=!0,a=!1,o=void 0;try{for(var l,s=this.ft[Symbol.iterator]();!(i=(l=s.next()).done);i=!0){var u=l.value;null==r[u]&&(this.ft.delete(u),u.includes("-")?n.removeProperty(u):n[u]=null)}}catch(e){a=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw o}}for(var c in r){var h=r[c];if(null!=h){this.ft.add(c);var d="string"==typeof h&&h.endsWith(g0);c.includes("-")||d?n.setProperty(c,d?h.slice(0,-11):h,d?gX:""):n[c]=h}}return pz}}]),t}(yd));function g2(){var e=a(['<div part="container"><div part="background"></div><div part="pointer" style="','"></div><input type="range" ',' .min="','" .max="','" .step="','" .valueAsNumber="','" .disabled="','" aria-label="','" aria-valuetext="','" aria-live="','" @input="','" @change="','" @keydown="','"> ',"</div>"]);return g2=function(){return e},e}function g5(){var e=a([""]);return g5=function(){return e},e}function g3(){var e=a(["input[type=range]{direction:ltr}.theoplayer-time-range-preview-rail{bottom:100%;left:0;opacity:0;pointer-events:none;position:absolute;-webkit-transition:visibility .25s,opacity .25s;transition:visibility .25s,opacity .25s;visibility:hidden;width:1%}:host(:hover:not([disabled])) .theoplayer-time-range-preview-rail{opacity:1;-webkit-transition:visibility .5s,opacity .5s;transition:visibility .5s,opacity .5s;visibility:visible}[part~=box]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center;bottom:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));position:absolute;text-shadow:0 0 4px rgba(0,0,0,.75);text-shadow:var(--theoplayer-preview-text-shadow,0 0 4px rgba(0,0,0,.75));-webkit-transform:translateX(-50%);transform:translateX(-50%)}"]);return g3=function(){return e},e}oz=fl(["deviceType"]),oV=yn(),oG=yr({reflect:!0,type:Boolean,attribute:yv.DISABLED}),oQ=yr({reflect:!0,type:Boolean,attribute:yv.HIDDEN}),oW=yr({reflect:!0,type:Boolean,attribute:yv.INERT}),oK=yr({reflect:!1,attribute:!1}),oZ=yn(),oY=yr({reflect:!0,type:Number,attribute:"min"}),oJ=yr({reflect:!0,type:Number,attribute:"max"}),oX=yr({reflect:!0,attribute:"step",converter:{fromAttribute:function(e){return null==e||"any"===e?"any":Number(e)}}}),o0=yr({reflect:!0,type:String,attribute:yv.DEVICE_TYPE}),o1=yr({reflect:!0,type:String,attribute:"aria-live"}),e.Range=void 0,new(oj=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[gY],oH(),t}return i(t,e),t}(l),oD=yc("____private__pointerWidth_1"),o$=yc("____private_step_2"),oF=yc("____private_deviceType_3"),oU=yc("____private_ariaLive_4"),oq=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,oD,{writable:!0,value:void 0}),Object.defineProperty(t,o$,{writable:!0,value:void 0}),Object.defineProperty(t,oF,{writable:!0,value:void 0}),Object.defineProperty(t,oU,{writable:!0,value:void 0}),o8(t),t._rangeRef=yF(),t._min=0,t._max=100,t._value=0,t._disabled=!1,t._hidden=!1,t._inert=!1,t._rangeWidth=0,t._thumbWidth=10,ys(t,oD)[oD]=o2(t,0),ys(t,o$)[o$]=o5(t,"any"),ys(t,oF)[oF]=o3(t,"desktop"),ys(t,oU)[oU]=o4(t,null),t._onInput=function(e){t.value=e.target.valueAsNumber},t._updatePointerBar=function(e){var r=t._rangeRef.value;if(!t.disabled&&!t.inert&&r){var n=r.getBoundingClientRect(),i=(e.clientX-n.left)/n.width;i=Math.max(0,Math.min(1,i)),t.updatePointer_(i,n)}},t._onKeyDown=function(e){t.handleKeyDown_(e)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateRange(),this.addEventListener("pointermove",this._updatePointerBar)},r.disconnectedCallback=function(){this.removeEventListener("pointermove",this._updatePointerBar)},r.handleInput=function(){this._updateRange()},r._updateRange=function(e){this.hidden||(e||this.updateCachedWidths_(),this.updateBar_())},r.updateBar_=function(){gK(this,{"--theoplayer-range-track-progress-internal":"linear-gradient(to right, "+this.getBarColors().toGradientStops()+")"})},r.getBarColors=function(){var e=this.value,t=this.min,r=this.max,n=(e-t)/(r-t)*100;isNaN(n)&&(n=0);var i=0;t<e&&e<r&&(i=this._thumbWidth*(.5-n/100)/this._rangeWidth*100);var a=new gJ;return a.add("var(--theoplayer-range-bar-color, #fff)",0,n+i),a},r.updateCachedWidths_=function(){var e,t,r=null!=(e=null==(t=this._rangeRef.value)?void 0:t.offsetWidth)?e:0;r>0&&(this._rangeWidth=r);var n=parseInt(getComputedStyle(this).getPropertyValue("--theoplayer-range-thumb-width")||"10px");n>0&&(this._thumbWidth=n)},r.getMinimumStepForVisibleChange_=function(){var e=this.min,t=this.max-e;return t<=0?NaN:t/this._rangeWidth},r.updatePointer_=function(e,t){this._pointerWidth=e*t.width},r.handleKeyDown_=function(e){"tv"===this.deviceType&&y_(e.keyCode)&&(e.keyCode===yg.LEFT||e.keyCode===yg.RIGHT?e.stopPropagation():(e.keyCode===yg.UP||e.keyCode===yg.DOWN)&&e.preventDefault())},r.render=function(){return pj(g2(),g1({width:""+this._pointerWidth+"px"}),yj(this._rangeRef),this.min,this.max,this.step,this.rawValue,this.disabled||this.inert,this.getAriaLabel(),this.getAriaValueText(),this.ariaLive,this._onInput,this._onInput,this._onKeyDown,this.renderRangeExtras())},r.renderRangeExtras=function(){return pj(g5())},v(t,[{key:"_pointerWidth",get:function(){return ys(this,oD)[oD]},set:function(e){ys(this,oD)[oD]=e}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled!==e&&(this._disabled=e,this.setAttribute("aria-disabled",this._disabled?"true":"false"))}},{key:"hidden",get:function(){return this._hidden},set:function(e){this._hidden!==e&&(this._hidden=e,this._updateRange())}},{key:"inert",get:function(){return this._inert},set:function(e){this._inert=e}},{key:"value",get:function(){return this.rawValue},set:function(e){var t=e;isNaN(this.min)||(t=Math.max(this.min,t)),isNaN(this.max)||(t=Math.min(this.max,t)),this.rawValue!==t&&(this.rawValue=t,this.handleInput())}},{key:"rawValue",get:function(){return this._value},set:function(e){this._value=e}},{key:"min",get:function(){return this._min},set:function(e){this._min=e,this._updateRange()}},{key:"max",get:function(){return this._max},set:function(e){this._max=e,this._updateRange()}},{key:"step",get:function(){return ys(this,o$)[o$]},set:function(e){ys(this,o$)[o$]=e}},{key:"deviceType",get:function(){return ys(this,oF)[oF]},set:function(e){ys(this,oF)[oF]=e}},{key:"ariaLive",get:function(){return ys(this,oU)[oU]},set:function(e){ys(this,oU)[oU]=e}}]),t}(p7),o2=(o6=(o7=o(oq,[[oV,1,"_pointerWidth"],[oG,4,"disabled"],[oQ,4,"hidden"],[oW,4,"inert"],[oK,4,"value"],[oZ,4,"rawValue"],[oY,4,"min"],[oJ,4,"max"],[oX,1,"step"],[o0,1,"deviceType"],[o1,1,"ariaLive"]],[oz],p7)).e)[0],o5=o6[1],o3=o6[2],o4=o6[3],o8=o6[4],e.Range=(o9=o7.c)[0],oH=o9[1],oj);var g4=pi(g3()),g8="theoplayerpreviewtimechange";function g7(e){return"linear"===e.type}function g6(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block}:host([hidden]){display:none!important}canvas{background:#fff;background:var(--theoplayer-preview-thumbnail-background,#fff);border-radius:2px;border-radius:var(--theoplayer-preview-thumbnail-padding,2px);display:none;padding:2px;padding:var(--theoplayer-preview-thumbnail-padding,2px)}"]);return g6=function(){return e},e}var g9=pi(g6());function _e(){var e=a(["<canvas ",' style="','"></canvas>']);return _e=function(){return e},e}var _t=["addtrack","removetrack"];function _r(e){return"metadata"===e.kind&&"thumbnails"===e.label}function _n(){var e=a(["<span>","</span>"]);return _n=function(){return e},e}ln=p9("theoplayer-preview-thumbnail"),li=fl(["player","previewTime"]),lo=yn(),ll=yr({reflect:!1,attribute:!1}),ls=yn(),e.PreviewThumbnail=void 0,new(lr=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[g9],la(),t}return i(t,e),t}(l),le=yc("____private__thumbnailVisible_1"),lt=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,le,{writable:!0,value:void 0}),lc(t),t._canvasRef=yF(),t._previewTime=NaN,ys(t,le)[le]=lu(t,!1),t._updateThumbnailTextTrack=function(){var e=t._thumbnailTextTrack,r=t._player?y8(t._player.textTracks,_r):void 0;e!==r&&(t._thumbnailTextTrack=r,t.updateThumbnail_())},t._thumbnailImageSource=document.createElement("img"),t._thumbnailImageSource.decoding="async",t}i(t,e);var r=t.prototype;return r.updateThumbnail_=function(){var e=this._thumbnailTextTrack;if(void 0===e)return void this.hideThumbnail_();"disabled"===e.mode&&(e.mode="hidden");var t=function(e,t){if(0!==e.length){for(var r,n=e[0],i=yY(e);!(r=i()).done;){var a=r.value;if(a.startTime<=t)n=a;else if(t>=a.endTime)break}return n}}(e.cues,this._previewTime);if(void 0===t)return void this.hideThumbnail_();var r=t.content.trim(),n=function(e){var t=e.match(/^(.+)#xywh=(\d+),(\d+),(\d+),(\d+)$/);if(t)return{url:t[1],x:+t[2],y:+t[3],w:+t[4],h:+t[5]}}(r),i=n?n.url:r;(i=new URL(i,e.src||location.href).href,this._lastLoadedThumbnailUrl!==i)?this.loadThumbnailImage_(i):this.showThumbnail_(n)},r.loadThumbnailImage_=function(e){var t=this;if(this._thumbnailImageSource.src!==e){var r=function(){t._lastLoadedThumbnailUrl=e,t.updateThumbnail_()};"function"==typeof this._thumbnailImageSource.decode?(this._thumbnailImageSource.src=e,this._thumbnailImageSource.decode().then(r,y1)):(this._thumbnailImageSource.onload=r,this._thumbnailImageSource.src="",this._thumbnailImageSource.src=e)}},r.showThumbnail_=function(e){var t,r=this._canvasRef.value;!r||(null!=this._canvasContext||(this._canvasContext=null!=(t=r.getContext("2d"))?t:void 0),this._canvasContext&&(e?(r.width=e.w,r.height=e.h,this._canvasContext.drawImage(this._thumbnailImageSource,e.x,e.y,e.w,e.h,0,0,e.w,e.h)):(r.width=this._thumbnailImageSource.naturalWidth,r.height=this._thumbnailImageSource.naturalHeight,this._canvasContext.drawImage(this._thumbnailImageSource,0,0)),this._thumbnailVisible=!0))},r.hideThumbnail_=function(){this._thumbnailVisible=!1},r.render=function(){var e={display:this._thumbnailVisible?"block":"none"};return pj(_e(),yj(this._canvasRef),g1(e))},v(t,[{key:"_thumbnailVisible",get:function(){return ys(this,le)[le]},set:function(e){ys(this,le)[le]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackList)||t.removeEventListener(_t,this._updateThumbnailTextTrack),this._player=e,this._textTrackList=null==e?void 0:e.textTracks,this._updateThumbnailTextTrack(),null==(r=this._textTrackList)||r.addEventListener(_t,this._updateThumbnailTextTrack))}},{key:"previewTime",get:function(){return this._previewTime},set:function(e){this._previewTime=e,this.updateThumbnail_()}}]),t}(p7),lu=(ld=(lh=o(lt,[[lo,1,"_thumbnailVisible"],[ll,4,"player"],[ls,4,"previewTime"]],[ln,li],p7)).e)[0],lc=ld[1],e.PreviewThumbnail=(lp=lh.c)[0],la=lp[1],lr);var _i=["timeupdate","seeking","seeked","durationchange"];function _a(){var e=a(['<div class="theoplayer-time-range-preview-rail" style="','"><div part="box preview-box" ','><slot name="preview"><theoplayer-preview-thumbnail></theoplayer-preview-thumbnail><theoplayer-preview-time-display remaining-when-live></theoplayer-preview-time-display></slot></div></div>']);return _a=function(){return e},e}lk=p9("theoplayer-preview-time-display"),lw=fl(["player","previewTime","streamType"]),lT=yn(),lA=yr({reflect:!0,type:Boolean,attribute:yv.REMAINING}),lE=yr({reflect:!0,type:Boolean,attribute:yv.REMAINING_WHEN_LIVE}),lS=yr({reflect:!0,type:String,attribute:yv.STREAM_TYPE}),lL=yr({reflect:!1,attribute:!1}),lC=yn(),e.PreviewTimeDisplay=void 0,new(lm=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[fB],lx(),t}return i(t,e),t}(l),ly=yc("____private_previewTime_1"),lf=yc("____private_remaining_2"),lv=yc("____private_remainingWhenLive_3"),lg=yc("____private_streamType_4"),l_=yc("____private__endTime_5"),lb=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ly,{writable:!0,value:void 0}),Object.defineProperty(t,lf,{writable:!0,value:void 0}),Object.defineProperty(t,lv,{writable:!0,value:void 0}),Object.defineProperty(t,lg,{writable:!0,value:void 0}),Object.defineProperty(t,l_,{writable:!0,value:void 0}),ys(t,ly)[ly]=(lN(t),lP(t,NaN)),ys(t,lf)[lf]=lR(t,!1),ys(t,lv)[lv]=lO(t,!1),ys(t,lg)[lg]=lM(t,"vod"),ys(t,l_)[l_]=lB(t,0),t._updateFromPlayer=function(){var e,r=t._player?t._player.duration:NaN,n=null==(e=t._player)?void 0:e.seekable;t._endTime=isFinite(r)?r:n&&n.length>0?n.end(0):NaN},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer()},r.render=function(){var e=this.previewTime,t=this._endTime,r=this.remaining||this.remainingWhenLive&&"vod"!==this.streamType;return r&&(e=-((t||0)-e)),pj(_n(),fC(e,t,r))},v(t,[{key:"previewTime",get:function(){return ys(this,ly)[ly]},set:function(e){ys(this,ly)[ly]=e}},{key:"remaining",get:function(){return ys(this,lf)[lf]},set:function(e){ys(this,lf)[lf]=e}},{key:"remainingWhenLive",get:function(){return ys(this,lv)[lv]},set:function(e){ys(this,lv)[lv]=e}},{key:"streamType",get:function(){return ys(this,lg)[lg]},set:function(e){ys(this,lg)[lg]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(_i,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(_i,this._updateFromPlayer))}},{key:"_endTime",get:function(){return ys(this,l_)[l_]},set:function(e){ys(this,l_)[l_]=e}}]),t}(p7),lP=(lD=(lI=o(lb,[[lT,1,"previewTime"],[lA,1,"remaining"],[lE,1,"remainingWhenLive"],[lS,1,"streamType"],[lL,4,"player"],[lC,1,"_endTime"]],[lk,lw],p7)).e)[0],lR=lD[1],lO=lD[2],lM=lD[3],lB=lD[4],lN=lD[5],e.PreviewTimeDisplay=(l$=lI.c)[0],lx=l$[1],lm);var _o=["timeupdate","durationchange","ratechange","seeking","seeked"],_l=["play","pause","ended","durationchange","readystatechange","error"],_s=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];lz=p9("theoplayer-time-range"),lH=fl(["player","streamType","deviceType","lang"]),lQ=yr({reflect:!1,attribute:!1}),lW=yr({reflect:!0,type:String,attribute:yv.LANG}),lK=yr({reflect:!0,type:String,attribute:yv.STREAM_TYPE}),lZ=yr({reflect:!0,type:Boolean,attribute:yv.SHOW_AD_MARKERS}),lY=yn(),e.TimeRange=void 0,new(lj=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Range.styles,[g4]),lV(),r}return i(r,t),r}(l),lF=yc("____private_lang_1"),lU=yc("____private__previewRailTransform_2"),lq=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,lF,{writable:!0,value:void 0}),Object.defineProperty(t,lU,{writable:!0,value:void 0}),l0(t),t._previewBoxEl=yF(),t._streamType="vod",t._showAdMarkers=!1,t._pausedWhileScrubbing=!1,t._autoAdvanceId=0,t._lastUpdateTime=0,t._lastCurrentTime=0,t._lastPlaybackRate=0,ys(t,lF)[lF]=lJ(t,""),t._updateFromPlayer=function(){if(void 0!==t._player){t._lastUpdateTime=performance.now(),t._lastCurrentTime=t._player.currentTime,t._lastPlaybackRate=t._player.playbackRate;var e,r,n=t._player.seekable,i=t._lastCurrentTime;0!==n.length?(e=n.start(0),r=n.end(0)):(e=0,r=t._player.duration),isFinite(t._lastCurrentTime)||(i=t._player.duration===1/0?r:e),t.min=e,t.max=r,t.rawValue=i,t.updateDisabled_(n),t._updateRange()}},t._pauseOnScrubStart=function(){t._pausedWhileScrubbing||t.disabled||t.inert||void 0===t._player||t._player.paused||(t._pausedWhileScrubbing=!0,t._player.pause(),document.addEventListener("mouseup",t._playOnScrubEnd),document.addEventListener("pointerup",t._playOnScrubEnd),document.addEventListener("pointercancel",t._playOnScrubEnd))},t._playOnScrubEnd=function(){t._pausedWhileScrubbing&&(t._pausedWhileScrubbing=!1,document.removeEventListener("mouseup",t._playOnScrubEnd),document.removeEventListener("pointerup",t._playOnScrubEnd),document.removeEventListener("pointercancel",t._playOnScrubEnd),void 0!==t._player&&t._player.paused&&t._player.play())},t._toggleAutoAdvance=function(){t.shouldAutoAdvance_()?0===t._autoAdvanceId&&(t._updateFromPlayer(),t._autoAdvanceId=requestAnimationFrame(t._autoAdvanceWhilePlaying)):0!==t._autoAdvanceId&&(t._updateFromPlayer(),cancelAnimationFrame(t._autoAdvanceId),t._autoAdvanceId=0)},t._autoAdvanceWhilePlaying=function(){if(!t.shouldAutoAdvance_()){t._autoAdvanceId=0;return}var e=(performance.now()-t._lastUpdateTime)/1e3,r=t._lastCurrentTime+e*t._lastPlaybackRate;Math.abs(r-t.value)>=t.getMinimumStepForVisibleChange_()&&(t.rawValue=r,t._updateRange(!0)),t._autoAdvanceId=requestAnimationFrame(t._autoAdvanceWhilePlaying)},ys(t,lU)[lU]=lX(t,""),t._onAdChange=function(){t._updateRange()},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("min")||(this.min=0),this.hasAttribute("max")||(this.max=1e3),this.hasAttribute(yv.ARIA_LIVE)||(this.ariaLive="off"),this._toggleAutoAdvance()},r.firstUpdated=function(e){var t,r;null==(t=this._rangeRef.value)||t.addEventListener("mousedown",this._pauseOnScrubStart),null==(r=this._rangeRef.value)||r.addEventListener("pointerdown",this._pauseOnScrubStart)},r.disconnectedCallback=function(){var t,r;e.prototype.disconnectedCallback.call(this),null==(t=this._rangeRef.value)||t.removeEventListener("mousedown",this._pauseOnScrubStart),null==(r=this._rangeRef.value)||r.removeEventListener("pointerdown",this._pauseOnScrubStart),this._toggleAutoAdvance()},r.updateDisabled_=function(e){void 0===e&&(e=null==(t=this._player)?void 0:t.seekable);var t,r="live"===this.streamType;void 0!==e&&(r||(r=0===e.length)),this.disabled=r},r.getAriaLabel=function(){return fb(this.lang).seekAria},r.getAriaValueText=function(){var e=fb(this.lang),t=fR(e,this.value),r=fR(e,this.max);return t&&r?e.timeOfTotalAria(t,r):e.unknownTimeAria},r.handleInput=function(){void 0!==this._player&&this._player.currentTime!==this.value&&(this._player.currentTime=this.value),e.prototype.handleInput.call(this)},r.shouldAutoAdvance_=function(){return this.isConnected&&void 0!==this._player&&!this._player.paused&&!this._player.ended&&!this._player.errorObject&&this._player.readyState>=3&&isFinite(this._lastCurrentTime)&&this.needToUpdateEveryFrame_()},r.needToUpdateEveryFrame_=function(){return this.getMinimumStepForVisibleChange_()<.25*this._lastPlaybackRate},r.updatePointer_=function(t,r){e.prototype.updatePointer_.call(this,t,r);var n=r.left+t*r.width,i=this._previewBoxEl.value;if(i){var a=i.getBoundingClientRect(),o=((n=Math.max(r.left+a.width/2,Math.min(r.right-a.width/2,n)))-r.left)/r.width;this._previewRailTransform="translateX("+(100*o*100).toFixed(6)+"%)"}if(void 0!==this._player){var l=this.min,s=fU(g8,{bubbles:!0,composed:!0,detail:{previewTime:l+t*(this.max-l)}});this.dispatchEvent(s)}},r.getBarColors=function(){var t=e.prototype.getBarColors.call(this);if(!this.showAdMarkers||!this._player||!this._player.ads||this._player.ads.playing)return t;for(var r,n=this.min,i=this.max,a=yY(this._player.ads.scheduledAdBreaks);!(r=a()).done;){var o=r.value;if(void 0===o.ads||!(o.ads.length>0)||o.ads.some(g7)){var l=o.timeOffset;if(l<0&&(l=this._player.duration),n<=l&&l<=i){var s=(l-n)/(i-n)*100,u=void 0,c=void 0;s+1<100?(u=s,c=s+1):(u=99,c=100),t.add("var(--theoplayer-time-range-ad-marker-color, #ffc50f)",u,c)}}}return t},r.handleKeyDown_=function(t){e.prototype.handleKeyDown_.call(this,t),"tv"===this.deviceType&&t.keyCode===yg.ENTER&&void 0!==this._player&&(this._player.paused?this._player.play():this._player.pause())},r.renderRangeExtras=function(){return pj(_a(),g1({transform:this._previewRailTransform}),yj(this._previewBoxEl))},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener(_o,this._updateFromPlayer),this._player.removeEventListener(_l,this._toggleAutoAdvance)),null==(t=this._ads)||t.removeEventListener(_s,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),this._toggleAutoAdvance(),void 0!==this._player&&(this._player.addEventListener(_o,this._updateFromPlayer),this._player.addEventListener(_l,this._toggleAutoAdvance)),null==(r=this._ads)||r.addEventListener(_s,this._onAdChange))}},{key:"lang",get:function(){return ys(this,lF)[lF]},set:function(e){ys(this,lF)[lF]=e}},{key:"streamType",get:function(){return this._streamType},set:function(e){this._streamType=e,this.updateDisabled_()}},{key:"showAdMarkers",get:function(){return this._showAdMarkers},set:function(e){this._showAdMarkers=e,this._updateRange()}},{key:"_previewRailTransform",get:function(){return ys(this,lU)[lU]},set:function(e){ys(this,lU)[lU]=e}}]),t}(lG=e.Range),lJ=(l2=(l1=o(lq,[[lQ,4,"player"],[lW,1,"lang"],[lK,4,"streamType"],[lZ,4,"showAdMarkers"],[lY,1,"_previewRailTransform"]],[lz,lH],lG)).e)[0],lX=l2[1],l0=l2[2],e.TimeRange=(l5=l1.c)[0],lV=l5[1],lj),l3=p9("theoplayer-volume-range"),l4=fl(["player","deviceType","lang"]),l7=yr({reflect:!0,type:String,attribute:yv.LANG}),l6=yr({reflect:!1,attribute:!1}),e.VolumeRange=void 0;var _u=yc("____private_lang_1"),_c=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,_u,{writable:!0,value:void 0}),ys(t,_u)[_u]=(se(t),l9(t,"")),t._updateFromPlayer=function(){void 0!==t._player&&(t.rawValue=t._player.volume,t._updateRange())},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("min")||(this.min=0),this.hasAttribute("max")||(this.max=1)},r.getAriaLabel=function(){return fb(this.lang).volumeAria},r.getAriaValueText=function(){return fb(this.lang).formatPercentage(this.value/this.max)},r.handleInput=function(){void 0!==this._player&&this._player.volume!==this.value&&(this._player.volume=this.value),e.prototype.handleInput.call(this)},v(t,[{key:"lang",get:function(){return ys(this,_u)[_u]},set:function(e){ys(this,_u)[_u]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener("volumechange",this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener("volumechange",this._updateFromPlayer))}}]),t}(l8=e.Range);function _h(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px;gap:var(--theoplayer-error-icon-gap,10px);max-width:80%;max-width:var(--theoplayer-error-max-width,80%);min-width:0;min-width:var(--theoplayer-error-min-width,0)}:host([hidden]){display:none!important}[part~=icon]{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;font-size:0}::slotted(img),::slotted(svg),img,svg{fill:#fff;fill:var(--theoplayer-error-icon-color,var(--theoplayer-icon-color,#fff));height:48px;height:var(--theoplayer-error-icon-height,48px);max-height:100%;max-width:100%;min-width:100%;vertical-align:middle;width:48px;width:var(--theoplayer-error-icon-width,48px)}[part~=heading]{color:#fff;color:var(--theoplayer-error-heading-color,#fff);line-height:48px;line-height:var(--theoplayer-error-icon-height,48px);margin:0 0 10px;margin:var(--theoplayer-error-heading-margin,0 0 10px);padding:0}[part~=message]{color:#fff;color:var(--theoplayer-error-message-color,#fff);margin:0;margin:var(--theoplayer-error-message-margin,0);padding:0}[part~=fullscreen-controls]{-webkit-box-pack:end;-ms-flex-pack:end;bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:flex-end;left:0;position:absolute;right:0}:host(:not([fullscreen])) [part~=fullscreen-controls]{display:none!important}"]);return _h=function(){return e},e}l9=(sr=(st=o(_c,[[l7,1,"lang"],[l6,4,"player"]],[l3,l4],l8)).e)[0],se=sr[1],e.VolumeRange=(sn=st.c)[0],(0,sn[1])();var _d=pi(_h());function _p(){var e=a(['<div part="icon"><slot name="icon">','</slot></div><div part="text"><h1 part="heading"><slot name="heading">','</slot></h1><p part="message"><slot name="message">','</slot></p></div><div part="fullscreen-controls"><slot name="fullscreen-controls"><theoplayer-fullscreen-button></theoplayer-fullscreen-button></slot></div>']);return _p=function(){return e},e}su=p9("theoplayer-error-display"),sc=fl(["error","fullscreen","lang"]),sd=yr({reflect:!1,attribute:!1}),sp=yr({reflect:!0,type:Boolean,attribute:yv.FULLSCREEN}),sy=yr({reflect:!0,type:String,attribute:yv.LANG}),e.ErrorDisplay=void 0,new(ss=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[_d],t.shadowRootOptions=r({},p7.shadowRootOptions,{delegatesFocus:!0}),sh(),t}return i(t,e),t}(l),si=yc("____private_error_1"),sa=yc("____private_fullscreen_2"),so=yc("____private_lang_3"),sl=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,si,{writable:!0,value:void 0}),Object.defineProperty(t,sa,{writable:!0,value:void 0}),Object.defineProperty(t,so,{writable:!0,value:void 0}),ys(t,si)[si]=(s_(t),sf(t)),ys(t,sa)[sa]=sv(t,!1),ys(t,so)[so]=sg(t,""),t}return i(t,e),t.prototype.render=function(){var e,t,r=fb(this.lang);return pj(_p(),yW('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" height="48" width="48"><path d="M24.15 26.4q.85 0 1.425-.575.575-.575.575-1.425v-9.2q0-.8-.6-1.375t-1.4-.575q-.85 0-1.425.575-.575.575-.575 1.425v9.2q0 .8.6 1.375t1.4.575ZM24 34.7q1 0 1.625-.625t.625-1.625q0-.95-.625-1.625T24 30.15q-1 0-1.625.675t-.625 1.625q0 1 .625 1.625T24 34.7Zm0 10q-4.4 0-8.175-1.575Q12.05 41.55 9.25 38.75q-2.8-2.8-4.375-6.575Q3.3 28.4 3.3 24q0-4.35 1.575-8.125Q6.45 12.1 9.25 9.3q2.8-2.8 6.575-4.425Q19.6 3.25 24 3.25q4.35 0 8.125 1.625Q35.9 6.5 38.7 9.3q2.8 2.8 4.425 6.575Q44.75 19.65 44.75 24q0 4.4-1.625 8.175Q41.5 35.95 38.7 38.75q-2.8 2.8-6.575 4.375Q28.35 44.7 24 44.7Z"/></svg>\n'),r.errorHeading,null!=(e=null==(t=this.error)?void 0:t.message)?e:"")},v(t,[{key:"error",get:function(){return ys(this,si)[si]},set:function(e){ys(this,si)[si]=e}},{key:"fullscreen",get:function(){return ys(this,sa)[sa]},set:function(e){ys(this,sa)[sa]=e}},{key:"lang",get:function(){return ys(this,so)[so]},set:function(e){ys(this,so)[so]=e}}]),t}(p7),sf=(sm=(sb=o(sl,[[sd,1,"error"],[sp,1,"fullscreen"],[sy,1,"lang"]],[su,sc],p7)).e)[0],sv=sm[1],sg=sm[2],s_=sm[3],e.ErrorDisplay=(sk=sb.c)[0],sh=sk[1],ss),sw=yn(),sx=yr({reflect:!0,state:!0,type:String,attribute:yv.CAST_STATE});var _y=function(e){function t(t){var r;return r=e.call(this,t)||this,sT(r),r._castState="unavailable",r._updateCastState=function(){r.castState=r._castApi?r._castApi.state:"unavailable"},r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateCastState()},r.handleClick=function(){if(this._castApi){this._updateCastState();var e=this.castState;"available"===e?this._castApi.start():("connecting"===e||"connected"===e)&&this._castApi.stop()}},v(t,[{key:"castApi",get:function(){return this._castApi},set:function(e){void 0!==this._castApi&&this._castApi.removeEventListener("statechange",this._updateCastState),this._castApi=e,this._updateCastState(),void 0!==this._castApi&&this._castApi.addEventListener("statechange",this._updateCastState)}},{key:"castState",get:function(){return this._castState},set:function(e){this._castState=e}}]),t}(e.Button);function _f(){var e=a(['<span part="icon"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" height="24" width="24"><defs><clipPath id="theoplayer-chromecast-rings-mask-','"><path d="M0-36h44V0H0z"/></clipPath></defs><path class="theoplayer-chromecast-outer" d="M2 10a4 4 0 0 1 4-4h36a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H28v-4h14V10H6v6H2z"/><path class="theoplayer-chromecast-inner" d="M10 14h28v20H26.74A26 26 0 0 0 10 17.26z"/><g class="theoplayer-chromecast-rings" fill="none" stroke="currentColor" stroke-width="4" transform="translate(2 42)" clip-path="url(#theoplayer-chromecast-rings-mask-',')"><circle stroke="none" cx="0" cy="0" r="30"/><circle class="theoplayer-chromecast-ring theoplayer-chromecast-ring1" stroke-width="6" cx="0" cy="0" r="3"/><circle class="theoplayer-chromecast-ring theoplayer-chromecast-ring2" cx="0" cy="0" r="12"/><circle class="theoplayer-chromecast-ring theoplayer-chromecast-ring3" cx="0" cy="0" r="20"/><path class="theoplayer-chromecast-ring theoplayer-chromecast-ring4" stroke-linecap="round" d="M0-20A20 20 0 0 1 20 0"/></g></svg></span>']);return _f=function(){return e},e}function _v(){var e=a([":host([cast-state=unavailable]){display:none!important}:host([cast-state=connecting]) .theoplayer-chromecast-ring{-webkit-animation:.9s linear infinite;animation:.9s linear infinite}:host([cast-state=connecting]) .theoplayer-chromecast-ring1{-webkit-animation-name:theoplayer-chromecast-connecting-ring1;animation-name:theoplayer-chromecast-connecting-ring1}:host([cast-state=connecting]) .theoplayer-chromecast-ring2{-webkit-animation-name:theoplayer-chromecast-connecting-ring2;animation-name:theoplayer-chromecast-connecting-ring2}:host([cast-state=connecting]) .theoplayer-chromecast-ring3{-webkit-animation-name:theoplayer-chromecast-connecting-ring3;animation-name:theoplayer-chromecast-connecting-ring3}:host([cast-state=connecting]) .theoplayer-chromecast-ring4{-webkit-animation-name:theoplayer-chromecast-connecting-ring4;animation-name:theoplayer-chromecast-connecting-ring4}.theoplayer-chromecast-inner{opacity:0;-webkit-transition:opacity .5s ease-in-out;transition:opacity .5s ease-in-out}:host([cast-state=connected]) .theoplayer-chromecast-inner{opacity:1}.theoplayer-chromecast-rings{clip-path:polygon(50% -100%,50% 50%,100% 50%,100% -100%)}@-webkit-keyframes theoplayer-chromecast-connecting-ring1{0%,37.5%{-webkit-transform:scale(0);transform:scale(0)}62.5%,to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes theoplayer-chromecast-connecting-ring1{0%,37.5%{-webkit-transform:scale(0);transform:scale(0)}62.5%,to{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes theoplayer-chromecast-connecting-ring2{0%,20%{stroke-width:24;-webkit-transform:scale(.25);transform:scale(.25)}35%{stroke-width:10;-webkit-transform:scale(.5);transform:scale(.5)}55%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@keyframes theoplayer-chromecast-connecting-ring2{0%,20%{stroke-width:24;-webkit-transform:scale(.25);transform:scale(.25)}35%{stroke-width:10;-webkit-transform:scale(.5);transform:scale(.5)}55%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes theoplayer-chromecast-connecting-ring3{0%,15%{stroke-width:6.66667;-webkit-transform:scale(.6);transform:scale(.6)}45%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@keyframes theoplayer-chromecast-connecting-ring3{0%,15%{stroke-width:6.66667;-webkit-transform:scale(.6);transform:scale(.6)}45%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes theoplayer-chromecast-connecting-ring4{0%{stroke-width:4;stroke-dashoffset:0;stroke-dasharray:32,99;opacity:1;-webkit-transform:scale(1);transform:scale(1)}35%{stroke-width:2.8571;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.4);transform:scale(1.4)}50%{stroke-width:0;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.5);transform:scale(1.5)}50.001%,to{opacity:0}}@keyframes theoplayer-chromecast-connecting-ring4{0%{stroke-width:4;stroke-dashoffset:0;stroke-dasharray:32,99;opacity:1;-webkit-transform:scale(1);transform:scale(1)}35%{stroke-width:2.8571;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.4);transform:scale(1.4)}50%{stroke-width:0;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.5);transform:scale(1.5)}50.001%,to{opacity:0}}"]);return _v=function(){return e},e}sT=o(_y,[[sw,4,"castApi"],[sx,4,"castState"]],[]).e[0];var _g=pi(_v()),__=0;function _b(){var e=a([":host{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px;gap:var(--theoplayer-chromecast-display-icon-gap,10px);padding:10px;padding:var(--theoplayer-control-padding,10px);pointer-events:none}:host([hidden]){display:none!important}[part~=icon]{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;font-size:0}::slotted(img),::slotted(svg),img,svg{fill:#fff;fill:var(--theoplayer-chromecast-display-icon-color,var(--theoplayer-icon-color,#fff));height:48px;height:var(--theoplayer-chromecast-display-icon-height,48px);max-height:100%;max-width:100%;min-width:100%;vertical-align:middle;width:48px;width:var(--theoplayer-chromecast-display-icon-width,48px)}[part=text]{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap}[part=heading]{color:#fff;color:var(--theoplayer-chromecast-display-heading-color,#fff);font-size:14px;font-size:var(--theoplayer-chromecast-display-heading-font-size,var(--theoplayer-text-font-size,14px));margin:0;margin:var(--theoplayer-chromecast-display-heading-margin,0);padding:0}[part=receiver]{color:#fff;color:var(--theoplayer-chromecast-display-receiver-color,#fff);font-size:17.5px;font-size:var(--theoplayer-chromecast-display-receiver-font-size,calc(var(--theoplayer-text-font-size, 14px)*1.25));margin:0;margin:var(--theoplayer-chromecast-display-receiver-margin,0);padding:0}"]);return _b=function(){return e},e}sL=p9("theoplayer-chromecast-button"),sC=fl(["player","lang"]),sR=yr({reflect:!0,type:String,attribute:yv.LANG}),e.ChromecastButton=void 0,new(sS=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(_y.styles,[_g]),sP(),t}return i(t,e),t}(l),sA=yc("____private_lang_1"),sE=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,sA,{writable:!0,value:void 0}),sM(t),t._buttonId=++__,ys(t,sA)[sA]=sO(t,""),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fb(this.lang);this.ariaLabel="connecting"===this.castState||"connected"===this.castState?e.chromecastConnectedAria:e.chromecastAria},r.render=function(){var e;return e=this._buttonId,pj(_f(),e,e)},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t;this._player=e,this.castApi=null==e||null==(t=e.cast)?void 0:t.chromecast}},{key:"lang",get:function(){return ys(this,sA)[sA]},set:function(e){ys(this,sA)[sA]=e}}]),t}(_y),sO=(sN=(sB=o(sE,[[sR,1,"lang"]],[sL,sC],_y)).e)[0],sM=sN[1],e.ChromecastButton=(sI=sB.c)[0],sP=sI[1],sS);var _m=pi(_b());function _k(){var e=a(['<div part="icon"><slot name="icon">','</slot></div><div part="text"><p part="heading"><slot name="heading">','</slot></p><p part="receiver">',"</p></div>"]);return _k=function(){return e},e}var _w=["statechange"];function _x(){var e=a(['<span part="icon"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path class="theoplayer-airplay-inner" d="M5 7h14v8H5z"/><path d="M6 22h12l-6-6zM21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V5h18v12h-4v2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/></svg></span>']);return _x=function(){return e},e}sq=p9("theoplayer-chromecast-display"),sj=fl(["player","lang"]),sH=yr({reflect:!0,type:String,attribute:yv.LANG}),sV=yn(),e.ChromecastDisplay=void 0,new(sU=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[_m],sz(),t}return i(t,e),t}(l),sD=yc("____private_lang_1"),s$=yc("____private__receiverName_2"),sF=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,sD,{writable:!0,value:void 0}),Object.defineProperty(t,s$,{writable:!0,value:void 0}),ys(t,sD)[sD]=(sW(t),sG(t,"")),ys(t,s$)[s$]=sQ(t,""),t._updateFromPlayer=function(){var e,r,n=null==(r=t._player)||null==(e=r.cast)?void 0:e.chromecast;void 0===n||"connected"!==n.state?t.setAttribute(yv.HIDDEN,""):(t._receiverName=n.receiverName||"",t.removeAttribute(yv.HIDDEN))},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(yv.HIDDEN)||this.setAttribute(yv.HIDDEN,""),this._updateFromPlayer()},r.render=function(){var e=fb(this.lang);return pj(_k(),yW('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 96 960 960" width="48"><path d="M86.956 910.131h65.699q9.171 0 14.801-6.413 5.631-6.413 4.076-14.067-6.099-32.801-29.132-57.242-23.033-24.442-55.051-30.941-7.654-1.555-14.067 4.076-6.413 5.63-6.413 15.164v69.336q0 8.487 5.8 14.287 5.8 5.8 14.287 5.8Zm179.365 0q14.288 0 23.635-9.565 9.348-9.565 7.348-23.261-10.944-78.191-65.681-134.428-54.737-56.237-131.928-67.181-13.696-2-23.26 7.415-9.566 9.416-9.566 23.411 0 12.13 9.311 23.059 9.312 10.929 24.08 13.332 49.566 9.566 84.913 46.696 35.348 37.131 44.914 87.131 2.403 14.768 12.595 24.08 10.192 9.311 23.639 9.311Zm127.147 0q13.904 0 23.261-9.563 9.358-9.563 8.358-23.444-5.819-64.393-33.105-122.128-27.286-57.735-70.589-101.784-43.303-44.049-100.088-71.892-56.784-27.842-121.43-33.407-13.88-1-23.443 8.53-9.563 9.531-9.563 23.377 0 13.615 9.072 23.615 9.072 10 23.62 12.19 103.526 11.636 174.956 85.018 71.43 73.382 82.858 176.796 1.801 14.298 11.995 23.495 10.195 9.197 24.098 9.197ZM123.477 241.304h692.436q31.74 0 55.762 24.021 24.021 24.022 24.021 55.762v509.826q0 31.507-24.021 55.362-24.022 23.856-55.762 23.856H525.696q-16.706 0-28.158-11.501-11.451-11.502-11.451-28.283 0-16.782 11.451-28.108 11.452-11.326 28.158-11.326h290.217V321.087H146.087v146q-6.783 6.348-16.595 11.674-9.813 5.326-23.514 5.326-16.457 0-27.783-11.452-11.326-11.451-11.326-28.158v-146q0-21.834 16.838-39.504 16.837-17.669 39.77-17.669Zm317.914 363Z"/></svg>\n'),e.chromecastHeading,this._receiverName||e.chromecastDefaultReceiverName)},v(t,[{key:"lang",get:function(){return ys(this,sD)[sD]},set:function(e){ys(this,sD)[sD]=e}},{key:"_receiverName",get:function(){return ys(this,s$)[s$]},set:function(e){ys(this,s$)[s$]=e}},{key:"player",get:function(){return this._player},set:function(e){var t;this._player!==e&&(void 0!==this._castApi&&this._castApi.removeEventListener(_w,this._updateFromPlayer),this._player=e,this._castApi=null==e||null==(t=e.cast)?void 0:t.chromecast,this._updateFromPlayer(),void 0!==this._castApi&&this._castApi.addEventListener(_w,this._updateFromPlayer))}}]),t}(p7),sG=(sZ=(sK=o(sF,[[sH,1,"lang"],[sV,1,"_receiverName"]],[sq,sj],p7)).e)[0],sQ=sZ[1],sW=sZ[2],e.ChromecastDisplay=(sY=sK.c)[0],sz=sY[1],sU);var _T=pj(_x());function _A(){var e=a([":host([cast-state=unavailable]){display:none!important}.theoplayer-airplay-inner{opacity:0;-webkit-transition:opacity .5s ease-in-out;transition:opacity .5s ease-in-out}:host([cast-state=connected]) .theoplayer-airplay-inner{opacity:1}"]);return _A=function(){return e},e}var _E=pi(_A());function _S(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;pointer-events:none!important;vertical-align:middle}[part=icon]{opacity:0;-webkit-transition:visibility .15s,opacity .15s;transition:visibility .15s,opacity .15s;visibility:hidden}:host([loading]) [part=icon]{opacity:1;-webkit-transition:visibility 0s,opacity 0s;transition:visibility 0s,opacity 0s;-webkit-transition-delay:.5s;transition-delay:.5s;-webkit-transition-delay:var(--theoplayer-loading-delay,.5s);transition-delay:var(--theoplayer-loading-delay,.5s);visibility:visible}[part=icon] ::slotted(img),[part=icon] ::slotted(svg){fill:#fff;fill:var(--theoplayer-loading-icon-color,var(--theoplayer-icon-color,#fff));height:48px;height:var(--theoplayer-loading-icon-height,var(--theoplayer-loading-icon-width,48px));vertical-align:middle;width:48px;width:var(--theoplayer-loading-icon-width,48px)}.theoplayer-loading-progress{direction:ltr;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:0;height:48px;height:var(--theoplayer-loading-icon-height,var(--theoplayer-loading-icon-width,48px));letter-spacing:0;line-height:0;position:relative;white-space:nowrap;width:48px;width:var(--theoplayer-loading-icon-width,48px)}.theoplayer-loading-progress svg,.theoplayer-loading-spinner{height:100%;position:absolute;width:100%}.theoplayer-loading-progress svg{stroke:#fff;stroke:var(--theoplayer-loading-icon-color,var(--theoplayer-icon-color,#fff))}.theoplayer-loading-gap-patch{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;left:47.5%;overflow:hidden;position:absolute;top:0;width:5%}.theoplayer-loading-gap-patch svg{left:-900%;-webkit-transform:rotate(180deg);transform:rotate(180deg);width:2000%}.theoplayer-loading-circle-clipper{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:100%;overflow:hidden;position:relative;width:50%}.theoplayer-loading-circle-clipper svg{width:200%}.theoplayer-loading-circle-right svg{left:-100%}.theoplayer-loading-progress{-webkit-animation:theoplayer-circular-progress-container-rotate 1568ms linear infinite;animation:theoplayer-circular-progress-container-rotate 1568ms linear infinite}.theoplayer-loading-spinner{-webkit-animation:theoplayer-circular-progress-spinner-layer-rotate 5333ms cubic-bezier(.4,0,.2,1) infinite both;animation:theoplayer-circular-progress-spinner-layer-rotate 5333ms cubic-bezier(.4,0,.2,1) infinite both}.theoplayer-loading-circle-left svg{-webkit-animation:theoplayer-circular-progress-left-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both;animation:theoplayer-circular-progress-left-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}.theoplayer-loading-circle-right svg{-webkit-animation:theoplayer-circular-progress-right-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both;animation:theoplayer-circular-progress-right-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}@-webkit-keyframes theoplayer-circular-progress-container-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes theoplayer-circular-progress-container-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes theoplayer-circular-progress-spinner-layer-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}to{-webkit-transform:rotate(3turn);transform:rotate(3turn)}}@keyframes theoplayer-circular-progress-spinner-layer-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}to{-webkit-transform:rotate(3turn);transform:rotate(3turn)}}@-webkit-keyframes theoplayer-circular-progress-left-spin{0%{-webkit-transform:rotate(265deg);transform:rotate(265deg)}50%{-webkit-transform:rotate(130deg);transform:rotate(130deg)}to{-webkit-transform:rotate(265deg);transform:rotate(265deg)}}@keyframes theoplayer-circular-progress-left-spin{0%{-webkit-transform:rotate(265deg);transform:rotate(265deg)}50%{-webkit-transform:rotate(130deg);transform:rotate(130deg)}to{-webkit-transform:rotate(265deg);transform:rotate(265deg)}}@-webkit-keyframes theoplayer-circular-progress-right-spin{0%{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}50%{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}to{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}}@keyframes theoplayer-circular-progress-right-spin{0%{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}50%{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}to{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}}"]);return _S=function(){return e},e}s1=p9("theoplayer-airplay-button"),s2=fl(["player","lang"]),s3=yr({reflect:!0,type:String,attribute:yv.LANG}),e.AirPlayButton=void 0,new(s0=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(_y.styles,[_E]),s5(),t}return i(t,e),t}(l),sJ=yc("____private_lang_1"),sX=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,sJ,{writable:!0,value:void 0}),ys(t,sJ)[sJ]=(s8(t),s4(t,"")),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fb(this.lang);this.ariaLabel="connecting"===this.castState||"connected"===this.castState?e.airplayConnectedAria:e.airplayAria},r.render=function(){return _T},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t;this._player=e,this.castApi=null==e||null==(t=e.cast)?void 0:t.airplay}},{key:"lang",get:function(){return ys(this,sJ)[sJ]},set:function(e){ys(this,sJ)[sJ]=e}}]),t}(_y),s4=(s6=(s7=o(sX,[[s3,1,"lang"]],[s1,s2],_y)).e)[0],s8=s6[1],e.AirPlayButton=(s9=s7.c)[0],s5=s9[1],s0);var _L=pi(_S());function _C(){var e=a(['<div part="icon"><slot name="icon"><div aria-hidden="true" class="theoplayer-loading-progress"><div class="theoplayer-loading-spinner"><div class="theoplayer-loading-circle-clipper theoplayer-loading-circle-left"><svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="18" fill="none" stroke-dasharray="113.097" stroke-dashoffset="56.549" stroke-width="4"/></svg></div><div class="theoplayer-loading-gap-patch"><svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="18" fill="none" stroke-dasharray="113.097" stroke-dashoffset="56.549" stroke-width="3.2"/></svg></div><div class="theoplayer-loading-circle-clipper theoplayer-loading-circle-right"><svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="18" fill="none" stroke-dasharray="113.097" stroke-dashoffset="56.549" stroke-width="4"/></svg></div></div></div></slot></div>']);return _C=function(){return e},e}var _P=pj(_C()),_R=["readystatechange","play","pause","playing","seeking","seeked"];function _O(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;pointer-events:none!important}"]);return _O=function(){return e},e}un=p9("theoplayer-loading-indicator"),ui=fl(["player"]),uo=yr({reflect:!1,attribute:!1}),ul=yr({reflect:!0,type:Boolean,attribute:yv.LOADING}),e.LoadingIndicator=void 0,new(ur=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[_L],ua(),t}return i(t,e),t}(l),ue=yc("____private_loading_1"),ut=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ue,{writable:!0,value:void 0}),ys(t,ue)[ue]=(uu(t),us(t,!1)),t._updateFromPlayer=function(){t.loading=void 0!==t._player&&!t._player.paused&&(t._player.seeking||t._player.readyState<3)},t}return i(t,e),t.prototype.render=function(){return _P},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(_R,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(_R,this._updateFromPlayer))}},{key:"loading",get:function(){return ys(this,ue)[ue]},set:function(e){ys(this,ue)[ue]=e}}]),t}(p7),us=(uh=(uc=o(ut,[[uo,4,"player"],[ul,1,"loading"]],[un,ui],p7)).e)[0],uu=uh[1],e.LoadingIndicator=(ud=uc.c)[0],ua=ud[1],ur);var _M=pi(_O());function _B(){var e=a([""]);return _B=function(){return e},e}function _N(){var e=a(["[part=icon] ::slotted(svg),[part=icon] svg{fill:#8c8c8c;fill:var(--theoplayer-live-button-color,#8c8c8c)}:host([live]:not([paused])) [part=icon] ::slotted(svg),:host([live]:not([paused])) [part=icon] svg{fill:red;fill:var(--theoplayer-live-button-active-color,red)}"]);return _N=function(){return e},e}uv=p9("theoplayer-gesture-receiver"),ug=fl(["player","deviceType"]),ub=yr({reflect:!1,attribute:!1}),um=yr({reflect:!1,attribute:!1}),e.GestureReceiver=void 0,new(uf=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[_M],u_(),t}return i(t,e),t}(l),up=yc("____private_deviceType_1"),uy=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,up,{writable:!0,value:void 0}),uw(t),t._pointerType="",ys(t,up)[up]=uk(t,"desktop"),t._onPointerDown=function(e){t._pointerType=e.pointerType},t._onClick=function(e){var r,n=null!=(r=e.pointerType)?r:t._pointerType;"touch"===n?t.handleTap(e):"mouse"===n&&t.handleMouseClick(e)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.setAttribute("tabindex","-1"),this.setAttribute("aria-hidden","true")},r.handleTap=function(e){},r.handleMouseClick=function(e){if("desktop"===this.deviceType&&void 0!==this._player){var t;void 0===this._player.source||null!=(t=this._player.ads)&&t.playing||(this._player.paused?this._player.play():this._player.pause())}},r.render=function(){return pj(_B())},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._playerElement&&(this._playerElement.removeEventListener("pointerdown",this._onPointerDown),this._playerElement.removeEventListener("click",this._onClick)),this._player=e,this._playerElement=null==e?void 0:e.element,void 0!==this._playerElement&&(this._playerElement.addEventListener("pointerdown",this._onPointerDown),this._playerElement.addEventListener("click",this._onClick)))}},{key:"deviceType",get:function(){return ys(this,up)[up]},set:function(e){ys(this,up)[up]=e}}]),t}(p7),uk=(uT=(ux=o(uy,[[ub,4,"player"],[um,1,"deviceType"]],[uv,ug],p7)).e)[0],uw=uT[1],e.GestureReceiver=(uA=ux.c)[0],u_=uA[1],uf);var _I=pi(_N());function _D(){var e=a(['<span part="icon"><slot name="icon">','</slot></span><slot name="spacer"></slot><span part="text"><slot name="text">',"</slot></span>"]);return _D=function(){return e},e}var _$=["play","pause","playing","emptied"],_F=["seeking","seeked","timeupdate","durationchange","emptied"];function _U(){var e=a([":host{padding:5px 10px;padding:calc(var(--theoplayer-control-padding, 10px) - var(--theoplayer-ad-display-padding, 5px)) var(--theoplayer-control-padding,10px);pointer-events:none}span{background:#ffc50f;background:var(--theoplayer-ad-display-background,#ffc50f);border-radius:2px;border-radius:var(--theoplayer-ad-display-border-radius,2px);color:#000;color:var(--theoplayer-ad-display-text-color,#000);display:inline-block;padding:5px;padding:var(--theoplayer-ad-display-padding,5px)}"]);return _U=function(){return e},e}uO=p9("theoplayer-live-button"),uM=fl(["player","streamType","lang"]),uI=yr({reflect:!0,type:Boolean,attribute:yv.PAUSED}),uD=yr({reflect:!0,type:String,attribute:yv.STREAM_TYPE}),u$=yr({reflect:!0,type:Number,attribute:yv.LIVE_THRESHOLD,useDefault:!0}),uF=yr({reflect:!0,type:Boolean,attribute:yv.LIVE}),uU=yr({reflect:!0,type:String,attribute:yv.LANG}),uq=yr({reflect:!1,attribute:!1}),e.LiveButton=void 0,new(uR=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[_I]),uB(),r}return i(r,t),r}(l),uE=yc("____private_paused_1"),uS=yc("____private_streamType_2"),uL=yc("____private_live_3"),uC=yc("____private_lang_4"),uP=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,uE,{writable:!0,value:void 0}),Object.defineProperty(t,uS,{writable:!0,value:void 0}),Object.defineProperty(t,uL,{writable:!0,value:void 0}),Object.defineProperty(t,uC,{writable:!0,value:void 0}),uG(t),t._liveThreshold=10,ys(t,uE)[uE]=uj(t,!1),ys(t,uS)[uS]=uz(t,"vod"),ys(t,uL)[uL]=uH(t,!1),ys(t,uC)[uC]=uV(t,""),t._updatePaused=function(){t.paused=void 0===t._player||t._player.paused},t._updateLive=function(){t.live=void 0!==t._player&&function(e,t){if(e.duration===1/0){var r=e.seekable;return!(r.length>0)||r.end(r.length-1)-e.currentTime<=t}return!1}(t._player,t.liveThreshold)},t}i(t,e);var r=t.prototype;return r.handleClick=function(){void 0!==this._player&&(this._player.hesp&&void 0!==this._player.hesp.manifest?this._player.hesp.goLive():(this._player.currentTime=1/0,this._player.play()))},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fb(this.lang);this.ariaLabel=e.seekToLiveAria},r.render=function(){var e=fb(this.lang);return pj(_D(),yW('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><circle cx="12" cy="12" r="7"/></svg>\n'),e.live)},v(t,[{key:"paused",get:function(){return ys(this,uE)[uE]},set:function(e){ys(this,uE)[uE]=e}},{key:"streamType",get:function(){return ys(this,uS)[uS]},set:function(e){ys(this,uS)[uS]=e}},{key:"liveThreshold",get:function(){return this._liveThreshold},set:function(e){this._liveThreshold=isNaN(e)?0:e,this._updateLive()}},{key:"live",get:function(){return ys(this,uL)[uL]},set:function(e){ys(this,uL)[uL]=e}},{key:"lang",get:function(){return ys(this,uC)[uC]},set:function(e){ys(this,uC)[uC]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener(_$,this._updatePaused),this._player.removeEventListener(_F,this._updateLive)),this._player=e,this._updatePaused(),this._updateLive(),void 0!==this._player&&(this._player.addEventListener(_$,this._updatePaused),this._player.addEventListener(_F,this._updateLive)))}}]),t}(uN=e.Button),uj=(uW=(uQ=o(uP,[[uI,1,"paused"],[uD,1,"streamType"],[u$,4,"liveThreshold"],[uF,1,"live"],[uU,1,"lang"],[uq,4,"player"]],[uO,uM],uN)).e)[0],uz=uW[1],uH=uW[2],uV=uW[3],uG=uW[4],e.LiveButton=(uK=uQ.c)[0],uB=uK[1],uR);var _q=pi(_U());function _j(){var e=a(["<span>","</span>"]);return _j=function(){return e},e}var _z=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];function _H(){var e=a([":host{pointer-events:none}"]);return _H=function(){return e},e}u1=p9("theoplayer-ad-display"),u2=fl(["player","lang"]),u3=yn(),u4=yn(),u8=yr({reflect:!0,type:String,attribute:yv.LANG}),u7=yr({reflect:!1,attribute:!1}),e.AdDisplay=void 0,new(u0=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[fB,_q],u5(),t}return i(t,e),t}(l),uZ=yc("____private__currentAd_1"),uY=yc("____private__totalAds_2"),uJ=yc("____private_lang_3"),uX=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,uZ,{writable:!0,value:void 0}),Object.defineProperty(t,uY,{writable:!0,value:void 0}),Object.defineProperty(t,uJ,{writable:!0,value:void 0}),ys(t,uZ)[uZ]=(ct(t),u6(t,0)),ys(t,uY)[uY]=u9(t,0),ys(t,uJ)[uJ]=ce(t,""),t._updateFromPlayer=function(){var e,r,n,i=null==(r=t._player)?void 0:r.ads,a=(null!=(e=null==i||null==(n=i.currentAdBreak)?void 0:n.ads)?e:[]).filter(g7);if(void 0===i||!i.playing||0===a.length){t._currentAd=0,t._totalAds=0,t.style.display="none";return}var o=0;if(a.length>1){var l=y8(t._player.ads.currentAds||[],g7);if(l){var s=a.indexOf(l);s>=0&&(o=s+1)}}t._currentAd=o,t._totalAds=a.length,t.style.display=""},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer()},r.render=function(){var e=fb(this.lang),t=this._totalAds>1?e.adBreakText(this._currentAd,this._totalAds):e.adText;return pj(_j(),t)},v(t,[{key:"_currentAd",get:function(){return ys(this,uZ)[uZ]},set:function(e){ys(this,uZ)[uZ]=e}},{key:"_totalAds",get:function(){return ys(this,uY)[uY]},set:function(e){ys(this,uY)[uY]=e}},{key:"lang",get:function(){return ys(this,uJ)[uJ]},set:function(e){ys(this,uJ)[uJ]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._ads)||t.removeEventListener(_z,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(_z,this._updateFromPlayer))}}]),t}(p7),u6=(cn=(cr=o(uX,[[u3,1,"_currentAd"],[u4,1,"_totalAds"],[u8,1,"lang"],[u7,4,"player"]],[u1,u2],p7)).e)[0],u9=cn[1],ce=cn[2],ct=cn[3],e.AdDisplay=(ci=cr.c)[0],u5=ci[1],u0);var _V=pi(_H());function _G(){var e=a(["<span>","</span>"]);return _G=function(){return e},e}var _Q=["adbreakbegin","adbreakend","adbreakchange","updateadbreak"];function _W(){var e=a(["<slot>","</slot>"]);return _W=function(){return e},e}cu=p9("theoplayer-ad-countdown"),cc=fl(["player","lang"]),cd=yn(),cp=yr({reflect:!0,type:String,attribute:yv.LANG}),cy=yr({reflect:!1,attribute:!1}),e.AdCountdown=void 0,new(cs=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[fB,_V],ch(),t}return i(t,e),t}(l),ca=yc("____private__maxRemainingDuration_1"),co=yc("____private_lang_2"),cl=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ca,{writable:!0,value:void 0}),Object.defineProperty(t,co,{writable:!0,value:void 0}),ys(t,ca)[ca]=(cg(t),cf(t,0)),ys(t,co)[co]=cv(t,""),t._onAdChange=function(){var e,r,n;(null==(r=t._player)||null==(e=r.ads)?void 0:e.playing)?(t._player.removeEventListener("timeupdate",t._update),t._player.addEventListener("timeupdate",t._update)):null==(n=t._player)||n.removeEventListener("timeupdate",t._update),t._update()},t._update=function(){var e,r,n=null==(e=t._player)?void 0:e.ads,i=null==n||null==(r=n.currentAdBreak)?void 0:r.maxRemainingDuration;void 0===n||!n.playing||void 0===i||i<0?(t._maxRemainingDuration=0,t.style.display="none"):(t._maxRemainingDuration=Math.ceil(i),t.style.display="")},t}return i(t,e),t.prototype.render=function(){var e=fb(this.lang),t=e.formatNarrowDuration(fP(this._maxRemainingDuration));return pj(_G(),e.adCountdownText(t))},v(t,[{key:"_maxRemainingDuration",get:function(){return ys(this,ca)[ca]},set:function(e){ys(this,ca)[ca]=e}},{key:"lang",get:function(){return ys(this,co)[co]},set:function(e){ys(this,co)[co]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r,n;this._player!==e&&(null==(t=this._player)||t.removeEventListener("timeupdate",this._update),null==(r=this._ads)||r.removeEventListener(_Q,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(_Q,this._onAdChange))}}]),t}(p7),cf=(cb=(c_=o(cl,[[cd,1,"_maxRemainingDuration"],[cp,1,"lang"],[cy,4,"player"]],[cu,cc],p7)).e)[0],cv=cb[1],cg=cb[2],e.AdCountdown=(cm=c_.c)[0],ch=cm[1],cs);var _K=["adbegin","adend","adloaded","updatead","adskip"];ck=p9("theoplayer-ad-clickthrough-button"),cw=fl(["player","lang"]),cT=yr({reflect:!0,type:String,attribute:yv.CLICKTHROUGH}),cA=yr({reflect:!0,type:String,attribute:yv.LANG}),cE=yr({reflect:!1,attribute:!1}),e.AdClickThroughButton=void 0;var _Z=yc("____private_lang_1"),_Y=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,_Z,{writable:!0,value:void 0}),cL(t),t._clickThrough=null,ys(t,_Z)[_Z]=cS(t,""),t._updateFromPlayer=function(){var e,r,n=null==(r=t._player)?void 0:r.ads;if(!n||!n.playing){t.clickThrough=null;return}var i=y8(null!=(e=n.currentAds)?e:[],g7);if(void 0===i||"google-ima"===i.integration){t.clickThrough=null;return}var a=i.clickThrough;if(!a){t.clickThrough=null;return}t.clickThrough=a},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer(),null==this.clickThrough&&(this.disabled=!0,this.style.display="none")},r.handleClick=function(){var e;null==(e=this._player)||e.pause()},r.renderLinkContent=function(){var e=fb(this.lang);return pj(_W(),e.adClickThroughText)},v(t,[{key:"clickThrough",get:function(){return this._clickThrough},set:function(e){this._clickThrough!==e&&(this._clickThrough=e,this.href=e?String(e).trim():"#",this.target="_blank",this.disabled=null==e,this.style.display=null!=e?"":"none")}},{key:"lang",get:function(){return ys(this,_Z)[_Z]},set:function(e){ys(this,_Z)[_Z]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._ads)||t.removeEventListener(_K,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(_K,this._updateFromPlayer))}}]),t}(cx=e.LinkButton);function _J(){var e=a([":host{-ms-grid-columns:1fr;-ms-grid-rows:1fr;background:rgba(0,0,0,.7);background:var(--theoplayer-ad-skip-background,rgba(0,0,0,.7));border:1px solid hsla(0,0%,100%,.5);border:var(--theoplayer-ad-skip-border,1px solid hsla(0,0%,100%,.5));color:#fff;color:var(--theoplayer-ad-skip-color,#fff);display:-ms-grid;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}:host(:hover){background:rgba(0,0,0,.9);background:var(--theoplayer-ad-skip-hover-background,rgba(0,0,0,.9));border:1px solid #fff;border:var(--theoplayer-ad-skip-hover-border,1px solid #fff);color:#fff;color:var(--theoplayer-ad-skip-hover-color,var(--theoplayer-ad-skip-color,#fff))}:host([disabled]){background:transparent;background:var(--theoplayer-ad-skip-countdown-background,transparent);border:1px solid transparent;border:var(--theoplayer-ad-skip-countdown-border,1px solid transparent);color:#fff;color:var(--theoplayer-ad-skip-countdown-color,var(--theoplayer-ad-skip-color,#fff))}[part=countdown],[part=skip]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}[part=skip]{font-size:14px;font-size:var(--theoplayer-ad-skip-font-size,var(--theoplayer-text-font-size,14px));line-height:24px;line-height:var(--theoplayer-ad-skip-line-height,var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px)))}[part=skip-icon]{padding-left:10px;padding-left:var(--theoplayer-control-padding,10px)}[part=skip-icon] ::slotted(svg),[part=skip-icon] svg{height:24px;height:var(--theoplayer-ad-skip-icon-height,var(--theoplayer-control-height,24px));width:24px;width:var(--theoplayer-ad-skip-icon-width,var(--theoplayer-control-height,24px))}"]);return _J=function(){return e},e}cS=(cP=(cC=o(_Y,[[cT,4,"clickThrough"],[cA,1,"lang"],[cE,4,"player"]],[ck,cw],cx)).e)[0],cL=cP[1],e.AdClickThroughButton=(cR=cC.c)[0],(0,cR[1])();var _X=pi(_J());function _0(){var e=a(['<span part="countdown" style="','">','</span> <span part="skip" style="','"><span part="skip-text"><slot name="skip-text">','</slot></span><span part="skip-icon"><slot name="skip-icon">',"</slot></span></span>"]);return _0=function(){return e},e}var _1=["adbegin","adend","adloaded","updatead","adskip"];cD=p9("theoplayer-ad-skip-button"),c$=fl(["player","lang"]),cq=yn(),cj=yn(),cz=yr({reflect:!0,type:String,attribute:yv.LANG}),cH=yr({reflect:!1,attribute:!1}),e.AdSkipButton=void 0,new(cI=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[_X]),cF(),r}return i(r,t),r}(l),cO=yc("____private__showCountdown_1"),cM=yc("____private__timeToSkip_2"),cB=yc("____private_lang_3"),cN=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,cO,{writable:!0,value:void 0}),Object.defineProperty(t,cM,{writable:!0,value:void 0}),Object.defineProperty(t,cB,{writable:!0,value:void 0}),ys(t,cO)[cO]=(cW(t),cV(t,!1)),ys(t,cM)[cM]=cG(t,0),ys(t,cB)[cB]=cQ(t,""),t._onAdChange=function(){var e,r,n;(null==(r=t._player)||null==(e=r.ads)?void 0:e.playing)?(t._player.removeEventListener("timeupdate",t._update),t._player.addEventListener("timeupdate",t._update)):null==(n=t._player)||n.removeEventListener("timeupdate",t._update),t._update()},t._update=function(){var e,r,n=null==(r=t._player)?void 0:r.ads;if(!n||!n.playing){t.style.display="none";return}var i=y8(null!=(e=n.currentAds)?e:[],g7);if(void 0===i||"google-ima"===i.integration){t.style.display="none";return}var a=i.skipOffset;if(void 0===a||a<0||void 0!==i.duration&&a>=i.duration){t.style.display="none";return}var o=t._player.currentTime;o<a?(t._showCountdown=!0,t._timeToSkip=Math.ceil(a-o),t.style.display="",t.setAttribute(yv.DISABLED,""),t.setAttribute(yv.ARIA_LIVE,"off")):(t._showCountdown=!1,t.style.display="",t.removeAttribute(yv.DISABLED),t.setAttribute(yv.ARIA_LIVE,"polite"))},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._update()},r.handleClick=function(){var e,t;null==(t=this._player)||null==(e=t.ads)||e.skip()},r.render=function(){var e=fb(this.lang),t={visibility:this._showCountdown?"visible":"hidden"},r={visibility:this._showCountdown?"hidden":"visible",pointerEvents:this._showCountdown?"none":""},n=e.formatNarrowDuration(fP(this._timeToSkip));return pj(_0(),g1(t),e.adSkipCountdownText(n),g1(r),e.adSkipButtonText,yW('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M17.5 18q-.425 0-.712-.288-.288-.287-.288-.712V7q0-.425.288-.713Q17.075 6 17.5 6t.712.287q.288.288.288.713v10q0 .425-.288.712-.287.288-.712.288ZM7.05 16.975q-.5.35-1.025.05-.525-.3-.525-.9v-8.25q0-.6.525-.888.525-.287 1.025.038l6.2 4.15q.45.3.45.825 0 .525-.45.825Z"/></svg>\n'))},v(t,[{key:"_showCountdown",get:function(){return ys(this,cO)[cO]},set:function(e){ys(this,cO)[cO]=e}},{key:"_timeToSkip",get:function(){return ys(this,cM)[cM]},set:function(e){ys(this,cM)[cM]=e}},{key:"lang",get:function(){return ys(this,cB)[cB]},set:function(e){ys(this,cB)[cB]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r,n;this._player!==e&&(null==(t=this._player)||t.removeEventListener("timeupdate",this._update),null==(r=this._ads)||r.removeEventListener(_1,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(_1,this._onAdChange))}}]),t}(cU=e.Button),cV=(cZ=(cK=o(cN,[[cq,1,"_showCountdown"],[cj,1,"_timeToSkip"],[cz,1,"lang"],[cH,4,"player"]],[cD,c$],cU)).e)[0],cG=cZ[1],cQ=cZ[2],cW=cZ[3],e.AdSkipButton=(cY=cK.c)[0],cF=cY[1],cI),cJ=fl(["player","lang"]),c0=yr({reflect:!0,type:String,attribute:yv.LANG});var _2=yc("____private_lang_1"),_5=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_2,{writable:!0,value:void 0}),c2(t),t._badNetworkMode=!1,ys(t,_2)[_2]=c1(t,""),t.handleEnterBadNetworkMode_=function(){t._badNetworkMode=!0,t.handleEnterBadNetworkMode()},t.handleExitBadNetworkMode_=function(){t._badNetworkMode=!1,t.handleExitBadNetworkMode()},t}i(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){},r.handleExitBadNetworkMode=function(){},v(t,[{key:"lang",get:function(){return ys(this,_2)[_2]},set:function(e){ys(this,_2)[_2]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(this._theoLive&&(this._theoLive.removeEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.removeEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)),this._player=e,this._theoLive=null==e?void 0:e.theoLive,this._badNetworkMode=null!=(t=null==(r=this._theoLive)?void 0:r.badNetworkMode)&&t,this._theoLive&&(this._theoLive.addEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.addEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)),this.handlePlayer())}}]),t}(cX=e.RadioButton);function _3(){var e=a(["<slot>","</slot>"]);return _3=function(){return e},e}c1=(c4=(c3=o(_5,[[c0,1,"lang"]],[cJ],cX)).e)[0],c2=c4[1],c5=(c8=c3.c)[0],(0,c8[1])(),c7=p9("theolive-automatic-quality-selector"),e.AutomaticQualitySelector=void 0;var _4=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){this.update_()},r.handleExitBadNetworkMode=function(){this.update_()},r.handlePlayer=function(){this.update_()},r.update_=function(){var e,t,r=(null==(t=this.player)||null==(e=t.theoLive)?void 0:e.badNetworkMode)!==!0;this.checked!==r&&(this.checked=r)},r.handleChange=function(){this.checked&&this.player&&this.player.theoLive&&(this.player.theoLive.badNetworkMode=!1)},r.render=function(){var e=fb(this.lang);return pj(_3(),e.highQualityLabel)},t}(c5);function _8(){var e=a(["[part=icon]{display:inline-block;position:relative}[part=warning-icon]{display:none;height:60%;min-width:60%;position:absolute;right:-10%;top:0;width:60%}[part=warning-icon] svg{fill:red;fill:var(--theolive-bad-network-mode,red)}"]);return _8=function(){return e},e}e.AutomaticQualitySelector=(c6=o(_4,[],[c7],c5).c)[0],(0,c6[1])();var _7=pi(_8());function _6(){var e=a(['<span part="icon">','<span part="warning-icon" style="','">',"</span></span>"]);return _6=function(){return e},e}function _9(){var e=a(["<slot>","</slot>"]);return _9=function(){return e},e}hn=p9("theolive-bad-network-button"),hi=fl(["player","lang"]),hl=yn(),hs=yr({reflect:!0,type:String,attribute:yv.LANG}),hu=yr({reflect:!1,attribute:!1}),e.BadNetworkModeButton=void 0,new(hr=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.MenuButton.styles,[_7]),ha(),r}return i(r,t),r}(l),c9=yc("____private__inBadNetworkMode_1"),he=yc("____private_lang_2"),ht=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,c9,{writable:!0,value:void 0}),Object.defineProperty(t,he,{writable:!0,value:void 0}),ys(t,c9)[c9]=(hd(t),hc(t,!1)),t.handleEnterBadNetworkMode_=function(){t._inBadNetworkMode=!0},t.handleExitBadNetworkMode_=function(){t._inBadNetworkMode=!1},ys(t,he)[he]=hh(t,""),t}i(t,e);var r=t.prototype;return r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fb(this.lang);this.ariaLabel=e.openBadNetworkModeMenuAria},r.render=function(){var e={display:this._inBadNetworkMode?"":"none"};return pj(_6(),yW(gU),g1(e),yW('<svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 96 960 960" width="48">\n <path d="m40 936 440-760 440 760H40Zm444.175-117q12.825 0 21.325-8.675 8.5-8.676 8.5-21.5 0-12.825-8.675-21.325-8.676-8.5-21.5-8.5-12.825 0-21.325 8.675-8.5 8.676-8.5 21.5 0 12.825 8.675 21.325 8.676 8.5 21.5 8.5ZM454 708h60V484h-60v224Z"/>\n</svg>'))},v(t,[{key:"_inBadNetworkMode",get:function(){return ys(this,c9)[c9]},set:function(e){ys(this,c9)[c9]=e}},{key:"lang",get:function(){return ys(this,he)[he]},set:function(e){ys(this,he)[he]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(this._theoLive&&(this._theoLive.removeEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.removeEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)),this._player=e,this._theoLive=null==e?void 0:e.theoLive,this._theoLive&&(this._theoLive.addEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.addEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)))}}]),t}(ho=e.MenuButton),hc=(hy=(hp=o(ht,[[hl,1,"_inBadNetworkMode"],[hs,1,"lang"],[hu,4,"player"]],[hn,hi],ho)).e)[0],hh=hy[1],hd=hy[2],e.BadNetworkModeButton=(hf=hp.c)[0],ha=hf[1],hr),hv=p9("theolive-bad-network-quality-selector"),e.BadNetworkModeSelector=void 0;var be=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){this.update_()},r.handleExitBadNetworkMode=function(){this.update_()},r.handlePlayer=function(){this.update_()},r.update_=function(){var e,t,r=(null==(t=this.player)||null==(e=t.theoLive)?void 0:e.badNetworkMode)===!0;this.checked!==r&&(this.checked=r)},r.handleChange=function(){this.checked&&this.player&&this.player.theoLive&&(this.player.theoLive.badNetworkMode=!0)},r.render=function(){var e=fb(this.lang);return pj(_9(),e.lowQualityLabel)},t}(c5);function bt(){var e=a(["<theoplayer-radio-group ",' @change="','"><theolive-automatic-quality-selector></theolive-automatic-quality-selector><theolive-bad-network-quality-selector></theolive-bad-network-quality-selector></theoplayer-radio-group>']);return bt=function(){return e},e}e.BadNetworkModeSelector=(hg=o(be,[],[hv],c5).c)[0],(0,hg[1])(),hm=p9("theolive-bad-network-menu"),e.BadNetworkModeMenu=void 0,new(hb=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vh],hk(),t}return i(t,e),t}(l),h_=function(t){function r(){var e;return e=t.apply(this,arguments)||this,e._radioGroupRef=yF(),e._onChange=function(){e.dispatchEvent(new Event("change",{bubbles:!0}))},e}i(r,t);var n=r.prototype;return n.firstUpdated=function(){this._radioGroupRef.value&&!T(this._radioGroupRef.value,e.RadioGroup)&&customElements.upgrade(this._radioGroupRef.value)},n.render=function(){return pj(bt(),yj(this._radioGroupRef),this._onChange)},r}(p7),e.BadNetworkModeMenu=(hw=o(h_,[],[hm],p7).c)[0],hk=hw[1],hb);var br=((S={}).TopControlBar="top-control-bar",S.BottomControlBar="bottom-control-bar",S.Menu="menu",S),bn=[];function bi(){var e=a([':host{aspect-ratio:16/9;aspect-ratio:var(--theoplayer-aspect-ratio,16/9);background:#000;background:var(--theoplayer-background,#000);-webkit-box-sizing:border-box;box-sizing:border-box;container-name:theoplayer-ui-container;container-type:size;display:inline-block;height:var(--theoplayer-height);min-width:300px;min-width:var(--theoplayer-min-width,300px);position:relative}@supports not (aspect-ratio:1){:host{height:0;height:var(--theoplayer-height,calc((var(--theoplayer-aspect-ratio, 16 / 9))*0));padding-bottom:56.25%;padding-bottom:calc(100%/(var(--theoplayer-aspect-ratio, 16 / 9)))}}:host([hidden]){display:none!important}:host([fullscreen]){height:100%!important;padding:0!important;width:100%!important}:host(:-webkit-full-screen){height:100%!important;padding:0!important;width:100%!important}:host(:-ms-fullscreen){height:100%!important;padding:0!important;width:100%!important}:host(:fullscreen){height:100%!important;padding:0!important;width:100%!important}:host([fullwindow]){bottom:0!important;left:0!important;overflow:hidden!important;position:fixed!important;right:0!important;top:0!important;z-index:1000!important}:host([fluid]){--theoplayer-aspect-ratio:var(--theoplayer-video-width,16) /var(--theoplayer-video-height,9)}[part~=chrome]{position:relative}[part~=layer]{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}[part~=chrome],[part~=layer]:not([part~=media-layer]){display:-webkit-box;display:-ms-flexbox;display:flex}[part~=chrome],[part~=gesture-layer],[part~=vertical-layer]{pointer-events:none}[part~=chrome] ::slotted(*){pointer-events:auto}[part~=media-layer] video{border-radius:0;border-radius:var(--theoplayer-video-border-radius,0);-o-object-fit:contain;object-fit:contain;-o-object-fit:var(--theoplayer-video-object-fit,contain);object-fit:var(--theoplayer-video-object-fit,contain)}[part~=media-layer] .theoplayer-ad-linear{bottom:0;left:0;position:absolute;right:0;top:0;z-index:10}[part~=media-layer] .theo-ad-remaining-container,[part~=media-layer] .theoplayer-ad-skip,[part~=media-layer] .theoplayer-ad-touch-clickthrough{display:none!important}[part~=chrome],[part~=vertical-layer]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-flow:column nowrap;flex-flow:column nowrap}[part~=centered]{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;justify-content:center}[part~=middle]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}[part~=vertical-layer]:before{background:transparent;background:var(--theoplayer-control-backdrop-background,transparent);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}:host(:not([mobile]):not([tv])) [part~=menu-layer]{bottom:0;bottom:var(--theoplayer-menu-offset-bottom,0);padding:10px;padding:var(--theoplayer-menu-layer-padding,10px);top:0;top:var(--theoplayer-menu-offset-top,0)}[part=menu]{-ms-grid-column-align:stretch;background:rgba(0,0,0,.5);background:var(--theoplayer-menu-backdrop-background,rgba(0,0,0,.5));display:-webkit-box;display:-ms-flexbox;display:flex;justify-self:stretch}[part=menu] ::slotted(*){-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-ms-grid-column-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;justify-self:stretch}:host(:not([mobile])) [part=menu]{margin:auto 0 0 auto;margin:var(--theoplayer-menu-margin-top,auto) var(--theoplayer-menu-margin-right,0) var(--theoplayer-menu-margin-bottom,0) var(--theoplayer-menu-margin-left,auto);max-height:100%;min-width:200px;min-width:var(--theoplayer-menu-min-width,200px)}:host([mobile]) [part=menu]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;margin:0;min-width:auto;pointer-events:none}:host([tv]) [part~=menu-layer]{left:auto}:host([tv]) [part=menu]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;margin:0;min-width:auto;pointer-events:none}:host(:not([menu-opened])) [part~=menu-layer],:host([menu-opened][mobile]) [part~=vertical-layer],:host([menu-opened][tv]) [part~=vertical-layer]{display:none!important}@container theoplayer-ui-container (max-width: 500px) or (max-height: 300px){:host(:not([mobile]):not([tv])) [part~=menu-layer]{bottom:0;left:0;padding:0;right:0;top:0}:host(:not([mobile])) [part=menu]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;margin:0;min-width:auto;pointer-events:none}:host([menu-opened]) [part~=vertical-layer]{display:none!important}}[part~=error-layer]{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background:rgba(0,0,0,.5);background:var(--theoplayer-error-background,rgba(0,0,0,.5));justify-content:center}:host(:not([has-error])) [part~=error-layer],:host([has-error]) [part~=layer]:not([part~=media-layer]):not([part~=error-layer]){display:none!important}[part~=chrome] ::slotted(theoplayer-control-bar){-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch}theoplayer-gesture-receiver{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}:host(:not([mobile])) [part~=chrome] ::slotted([mobile-only]),:host([mobile]) [part~=chrome] ::slotted([mobile-hidden]){display:none!important}:host(:not([tv])) [part~=chrome] ::slotted([tv-only]),:host([tv]) [part~=chrome] ::slotted([tv-hidden]){display:none!important}:host(:not([stream-type=vod])) [part~=chrome] ::slotted([live-hidden]),:host([stream-type=vod]) [part~=chrome] ::slotted([live-only]){display:none!important}:host(:not([playing-ad])) [part~=chrome] ::slotted([ad-only]),:host([playing-ad]) [part~=chrome] ::slotted([ad-hidden]){display:none!important}:host([user-idle]){cursor:none}:host([user-idle]) [part~=chrome] ::slotted(:not([no-auto-hide])){opacity:0;-webkit-transition:opacity 1s;transition:opacity 1s}:host([user-idle]) [part~=vertical-layer]:before{opacity:0;-webkit-transition:opacity 1s;transition:opacity 1s}']);return bi=function(){return e},e}var ba=pi(bi()),bo=function(){if("u">typeof document)for(var e,t=yY([["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]]);!(e=t()).done;){var r=e.value;if(r[1]in document)return{requestFullscreen_:r[0],exitFullscreen_:r[1],fullscreenElement_:r[2],fullscreenEnabled_:r[3],fullscreenchange_:r[4],fullscreenerror_:r[5]}}}();function bl(){if(("u"<typeof navigator?"undefined":d(navigator))!=="object")return!1;if(navigator.userAgentData)return navigator.userAgentData.mobile;var e=navigator.userAgent;return!!e&&/Android|iPhone|iPad|iPod|Mobile Safari|Windows Phone/i.test(e)}function bs(){if(("u"<typeof navigator?"undefined":d(navigator))!=="object")return!1;var e=navigator.userAgent;return!!e&&/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv)\b/i.test(e)}var bu="theoplayeruseridlechange",bc="theoplayerready";function bh(){var e=a(["html.theoplayer-ui-full-window{overflow:hidden!important}html.theoplayer-ui-full-window>body{height:100%!important;margin:0!important;padding:0!important;width:100%!important}"]);return bh=function(){return e},e}var bd=pi(bh()),bp="theoplayer-ui-global-styles",by=!1;function bf(){var e=a(['<div part="layer media-layer" ','></div><div part="layer gesture-layer"><theoplayer-gesture-receiver></theoplayer-gesture-receiver></div><div part="layer vertical-layer"><div part="top chrome" ','><slot name="top-chrome" ',' @transitionstart="','" @transitionend="','"></slot></div><div part="middle chrome"><slot name="middle-chrome"></slot></div><div part="layer centered-layer centered loading"><slot name="centered-loading"></slot></div><div part="layer centered-layer centered chrome"><slot name="centered-chrome"></slot></div><div part="bottom chrome" ',"><slot ",' @transitionstart="','" @transitionend="','"></slot></div></div><div part="layer menu-layer" ',"><theoplayer-menu-group ",' part="menu" @theoplayermenuclose="','" @theoplayermenuchange="','"><slot name="menu"></slot></theoplayer-menu-group></div><div part="layer error-layer"><slot name="error"></slot></div>']);return bf=function(){return e},e}var bv="theoplayer-ui-full-window";function bg(e){for(var t,r,n=ft(e).filter(y5),i=yY(n);!(r=i()).done;){var a=r.value;if("0"!==getComputedStyle(a).opacity){var o=fz.fromRect(a.getBoundingClientRect());o.width>0&&o.height>0&&(t=t?t.union(o):o)}}return t}function b_(){var e=a([':host{-webkit-box-sizing:border-box;box-sizing:border-box;container-name:theoplayer-default-ui-container;container-type:inline-size;display:inline-block;min-width:300px;min-width:var(--theoplayer-min-width,300px);position:relative}:host([hidden]){display:none!important}theoplayer-ui{display:block;width:100%}:host(:-webkit-full-screen),:host(:-webkit-full-screen) theoplayer-ui{height:100%!important;width:100%!important}:host(:-ms-fullscreen),:host(:-ms-fullscreen) theoplayer-ui{height:100%!important;width:100%!important}:host(:fullscreen),:host(:fullscreen) theoplayer-ui{height:100%!important;width:100%!important}[part=title]{color:#fff;color:var(--theoplayer-text-color,#fff);font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));padding:10px;padding:var(--theoplayer-control-padding,10px);text-shadow:0 0 4px rgba(0,0,0,.75);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[part=centered-chrome]{display:-webkit-box;display:-ms-flexbox;display:flex}[part=centered-chrome] *,[part=centered-chrome] ::slotted(*){--theoplayer-button-icon-width:var(--theoplayer-centered-chrome-button-icon-width,48px);--theoplayer-control-height:var(--theoplayer-centered-chrome-control-height,48px);--theoplayer-play-button-icon-color:var(--theoplayer-center-play-button-icon-color,unset)}[part=middle-chrome]{-webkit-box-pack:end;-ms-flex-pack:end;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;justify-content:flex-end}[part=bottom-chrome],[part=middle-chrome]{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;pointer-events:none;position:relative}[part=bottom-chrome]{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}:host([mobile]) theoplayer-ui{--theoplayer-control-backdrop-background:var(--theoplayer-mobile-control-backdrop-background,rgba(0,0,0,.5))}:host{--theoplayer-control-background-gradient-stops:transparent 0%,rgba(0,0,0,.01) 8.1%,rgba(0,0,0,.037) 15.5%,rgba(0,0,0,.078) 22.5%,rgba(0,0,0,.131) 29%,rgba(0,0,0,.195) 35.3%,rgba(0,0,0,.264) 41.2%,rgba(0,0,0,.337) 47.1%,rgba(0,0,0,.413) 52.9%,rgba(0,0,0,.486) 58.8%,rgba(0,0,0,.555) 64.7%,rgba(0,0,0,.619) 71%,rgba(0,0,0,.672) 77.5%,rgba(0,0,0,.713) 84.5%,rgba(0,0,0,.74) 91.9%,rgba(0,0,0,.75) 100%}:host(:not([mobile])) [part=bottom-chrome]:before,:host(:not([mobile])) [part=top-chrome]:before{bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}:host(:not([mobile])) [part=top-chrome]:before{background:linear-gradient(to top,var(--theoplayer-control-background-gradient-stops))}:host(:not([mobile])) [part=bottom-chrome]:before{background:linear-gradient(to bottom,var(--theoplayer-control-background-gradient-stops))}.theoplayer-spacer{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}theoplayer-time-range{--theoplayer-control-height:var(--theoplayer-time-range-control-height,12px);--theoplayer-range-track-pointer-background:var(--theoplayer-time-range-track-pointer-background,hsla(0,0%,100%,.5))}[part=ad-chrome]{--theoplayer-control-height:var(--theoplayer-ad-chrome-control-height,12px);-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;pointer-events:none}theoplayer-ad-display,theoplayer-ad-skip-button{-ms-flex-negative:0;flex-shrink:0}theoplayer-ad-countdown,theoplayer-ad-skip-button[disabled]{text-shadow:0 0 4px rgba(0,0,0,.75)}theoplayer-ad-countdown{min-width:0}theoplayer-ad-skip-button{-webkit-box-align:end;-ms-flex-align:end;--theoplayer-ad-skip-font-size:calc(var(--theoplayer-text-font-size, 14px)*1.25);--theoplayer-ad-skip-line-height:calc(var(--theoplayer-text-content-height, var(--theoplayer-control-height, 24px))*1.25);--theoplayer-ad-skip-icon-width:24px;--theoplayer-ad-skip-icon-height:24px;align-items:end;border-right:0!important;justify-items:end}:host(:not([mobile])) [mobile-only],:host(:not([mobile])) theoplayer-control-bar ::slotted([mobile-only]),:host([mobile]) [mobile-hidden],:host([mobile]) theoplayer-control-bar ::slotted([mobile-hidden]){display:none!important}:host(:not([tv])) [tv-only],:host(:not([tv])) theoplayer-control-bar ::slotted([tv-only]),:host([tv]) [tv-hidden],:host([tv]) theoplayer-control-bar ::slotted([tv-hidden]){display:none!important}:host(:not([stream-type=vod])) [live-hidden],:host(:not([stream-type=vod])) theoplayer-control-bar ::slotted([live-hidden]),:host([stream-type=vod]) [live-only],:host([stream-type=vod]) theoplayer-control-bar ::slotted([live-only]){display:none!important}theoplayer-ui:not([playing-ad]) [ad-only],theoplayer-ui:not([playing-ad]) theoplayer-control-bar ::slotted([ad-only]),theoplayer-ui[playing-ad] [ad-hidden],theoplayer-ui[playing-ad] theoplayer-control-bar ::slotted([ad-hidden]){display:none!important}theoplayer-ui:not([has-first-play]) theoplayer-control-bar{display:none!important}theoplayer-ui:not([has-first-play]),theoplayer-ui:not([has-first-play]) ::slotted(*){--theoplayer-before-first-play-display:none}:host(:not([mobile])) theoplayer-ui[has-first-play] [part~=center-play-button]{display:none!important}@container theoplayer-default-ui-container (max-width: 200px){:host(:not([mobile])) theoplayer-control-bar{display:none!important}:host(:not([mobile])) theoplayer-ui[has-first-play] [part~=center-play-button]{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}theoplayer-ui:not([mobile]):not([casting]) theoplayer-ad-clickthrough-button{display:none!important}theoplayer-volume-range{--theoplayer-range-padding-left:0}theoplayer-mute-button+theoplayer-volume-range{--theoplayer-range-padding-right:0;--theoplayer-range-track-width:var(--theoplayer-volume-range-track-width,70px);overflow:hidden;-webkit-transition:width .2s ease-in;transition:width .2s ease-in;width:0}theoplayer-mute-button+theoplayer-volume-range:focus,theoplayer-mute-button+theoplayer-volume-range:hover,theoplayer-mute-button:focus+theoplayer-volume-range,theoplayer-mute-button:hover+theoplayer-volume-range{width:70px}theoplayer-mute-button+theoplayer-volume-range:focus-within,theoplayer-mute-button:focus-within+theoplayer-volume-range{width:70px}theoplayer-live-button+theoplayer-time-display:not([stream-type=vod]){padding-left:0}theoplayer-live-button[live]+theoplayer-time-display{display:none!important}theoplayer-ui[playing-ad] .theoplayer-ad-control{--theoplayer-control-height:var(--theoplayer-ad-control-height,16px)}']);return b_=function(){return e},e}hR=p9("theoplayer-ui"),hM=yr({reflect:!1,attribute:yv.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),hB=yr({reflect:!1,attribute:yv.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),hN=yr({reflect:!0,type:Boolean,attribute:yv.FLUID}),hI=yr({reflect:!0,type:String,attribute:yv.LANG}),hD=yr({reflect:!0,type:Boolean,attribute:yv.MUTED}),h$=yr({reflect:!0,type:Boolean,attribute:yv.AUTOPLAY}),hF=yr({reflect:!0,type:Boolean,attribute:yv.FULLSCREEN}),hU=yr({reflect:!0,type:Boolean,attribute:yv.PAUSED}),hq=yr({reflect:!0,type:Boolean,attribute:yv.ENDED}),hj=yr({reflect:!0,type:Boolean,attribute:yv.CASTING}),hz=yr({reflect:!0,type:Boolean,attribute:yv.USER_IDLE}),hH=yr({reflect:!0,type:Number,attribute:yv.USER_IDLE_TIMEOUT,useDefault:!0}),hV=yr({reflect:!0,type:String,attribute:yv.DEVICE_TYPE}),hG=yr({reflect:!0,state:!0,type:Boolean,attribute:yv.MOBILE}),hQ=yr({reflect:!0,state:!0,type:Boolean,attribute:yv.TV}),hW=yr({reflect:!0,type:String,attribute:yv.STREAM_TYPE}),hK=yr({reflect:!0,type:Number,attribute:yv.DVR_THRESHOLD,useDefault:!0}),hZ=yr({reflect:!0,state:!0,type:Boolean,attribute:yv.HAS_FIRST_PLAY}),hY=yr({reflect:!0,state:!0,type:Boolean,attribute:yv.PLAYING_AD}),hJ=yr({reflect:!0,state:!0,type:Boolean,attribute:yv.HAS_ERROR}),hX=yr({reflect:!0,state:!0,type:Boolean,attribute:yv.FULLWINDOW}),h0=yr({reflect:!0,state:!0,type:Boolean,attribute:yv.MENU_OPENED}),e.UIContainer=void 0,new(hP=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[ba],t.shadowRootOptions=r({},p7.shadowRootOptions,{delegatesFocus:!0}),t.READY_EVENT=bc,hO(),t}return i(t,e),t}(l),hx=yc("____private_mobile_1"),hT=yc("____private_tv_2"),hA=yc("____private__hasFirstPlay_3"),hE=yc("____private__isPlayingAd_4"),hS=yc("____private__hasError_5"),hL=yc("____private__isFullWindow_6"),hC=function(n){function a(e){var t;return void 0===e&&(e={}),Object.defineProperty(t=n.call(this)||this,hx,{writable:!0,value:void 0}),Object.defineProperty(t,hT,{writable:!0,value:void 0}),Object.defineProperty(t,hA,{writable:!0,value:void 0}),Object.defineProperty(t,hE,{writable:!0,value:void 0}),Object.defineProperty(t,hS,{writable:!0,value:void 0}),Object.defineProperty(t,hL,{writable:!0,value:void 0}),h7(t),t._configuration={},t._playerRef=yF(),t._menuRef=yF(),t._menuGroupRef=yF(),t._menuOpened=!1,t._topChromeRef=yF(),t._topChromeSlotRef=yF(),t._bottomChromeRef=yF(),t._bottomChromeSlotRef=yF(),t._pointerType="",t._lastPointerUpTime=0,t._stateReceivers=[],t._player=void 0,t._source=void 0,t._muted=!1,t._autoplay=!1,t._fullscreen=!1,t._deviceType="desktop",t._streamType="vod",t._fluid=!1,t._language="",t._userIdle=!1,t._userIdleTimeout=void 0,t._isUserActive=!1,t._userIdleTimer=0,t._paused=!1,t._ended=!1,t._casting=!1,t._dvrThreshold=60,t._previewTime=NaN,t._activeVideoTrack=void 0,ys(t,hx)[hx]=h1(t,!1),ys(t,hT)[hT]=h2(t,!1),ys(t,hA)[hA]=h5(t,!1),ys(t,hE)[hE]=h3(t,!1),ys(t,hS)[hS]=h4(t,!1),ys(t,hL)[hL]=h8(t,!1),t._onMutation=function(e){var r=t._playerRef.value;if(r)for(var n,i=yY(e);!(n=i()).done;){var a=n.value;if("childList"===a.type){for(var o=a.addedNodes,l=a.removedNodes,s=0;s<o.length;s++){var u=o[s];y2(u)&&fs(u,r,t.registerStateReceiver_)}for(var c=0;c<l.length;c++){var h=l[c];y2(h)&&fs(h,r,t.unregisterStateReceiver_)}}}},t._onSlotChange=function(){t._playerRef.value&&fs(t,t._playerRef.value,t.registerStateReceiver_),t._updateTextTrackMargins()},t.registerStateReceiver_=function(e){t._stateReceivers.indexOf(e)>=0||(t._stateReceivers.push(e),t.propagateStateToReceiver_(e))},t.unregisterStateReceiver_=function(e){var r,n,i,a;r=t._stateReceivers,!((n=r.indexOf(e))<0)&&(i=r,a=n,i.splice(a,1),1)&&t.removeStateFromReceiver_(e)},t._onToggleMenu=function(e){e.stopPropagation();var r=e.detail.menu,n=t._menuGroupRef.value;if(n){if(!n.getMenuById(r))return void console.error('<theoplayer-ui>: cannot find menu with ID "'+r+'"');var i=y5(e.target)?e.target:void 0;n.isMenuOpen(r)?t.closeMenu_():(t.closeMenu_(),t.openMenu_(r,i))}},t._onCloseMenu=function(e){e.stopPropagation(),t.closeMenu_()},t._onMenuChange=function(){var e=t._menuRef.value;e.removeEventListener("pointerdown",t._onMenuPointerDown),e.removeEventListener("click",t._onMenuClick),t._menuGroupRef.value.hasCurrentMenu()?(e.addEventListener("pointerdown",t._onMenuPointerDown),e.addEventListener("click",t._onMenuClick),t.menuOpened_=!0):t.menuOpened_=!1,t.updateUserIdle_()},t._onMenuPointerDown=function(e){t._pointerType=e.pointerType},t._onMenuClick=function(e){var r,n=null!=(r=e.pointerType)?r:t._pointerType;e.target===t._menuRef.value&&"mouse"===n&&t._menuGroupRef.value.closeCurrentMenu()&&e.preventDefault()},t._onEnterFullscreen=function(e){if(e.stopPropagation(),bo&&document[bo.fullscreenEnabled_]&&t[bo.requestFullscreen_]){var n,i,a=t[bo.requestFullscreen_](r({navigationUI:"hide"},null==(i=t._configuration)||null==(n=i.ui)?void 0:n.fullscreenOptions));a&&a.then&&a.then(y1,y1)}else t._player&&t._player.presentation.supportsMode("fullscreen")?t._player.presentation.requestMode("fullscreen"):t._isFullWindow||(t._isFullWindow=!0,document.documentElement.classList.add(bv),window.addEventListener("keydown",t._exitFullscreenOnEsc),t._onFullscreenChange())},t._onExitFullscreen=function(e){if(e.stopPropagation(),bo){var r=document[bo.exitFullscreen_]();r&&r.then&&r.then(y1,y1)}t._player&&"fullscreen"===t._player.presentation.currentMode&&t._player.presentation.requestMode("inline"),t._isFullWindow&&(t._isFullWindow=!1,document.documentElement.classList.remove(bv),window.removeEventListener("keydown",t._exitFullscreenOnEsc),t._onFullscreenChange())},t._onFullscreenChange=function(){var e=!1;if(void 0!==bo){var r=document[bo.fullscreenElement_];r&&(e=function e(t,r){if(!t||!r)return!1;if(t.contains(r))return!0;var n=r.getRootNode();return!!n.host&&e(t,n.host)}(r,t))}e||void 0===t._player||"fullscreen"!==t._player.presentation.currentMode||(e=!0),t._isFullWindow&&(e=!0),t.fullscreen=e},t._exitFullscreenOnEsc=function(e){e.keyCode==yg.ESCAPE&&t._onExitFullscreen(e)},t._updateAspectRatio=function(){if(void 0!==t._player){var e=t._player,r=e.videoWidth,n=e.videoHeight;r>0&&n>0?gK(t,{"--theoplayer-video-width":""+r,"--theoplayer-video-height":""+n}):gK(t,{"--theoplayer-video-width":"","--theoplayer-video-height":""})}},t._updateError=function(){var e=null==(r=t._player)?void 0:r.errorObject;t._hasError=void 0!==e;for(var r,n,i=yY(t._stateReceivers);!(n=i()).done;){var a=n.value;a[fa].indexOf("error")>=0&&(a.error=e)}},t._onPlay=function(){t._hasFirstPlay=!0,t.paused=!1,t._updateEnded()},t._onPause=function(){t.paused=!0,t._updateEnded()},t._updatePausedAndEnded=function(){t.paused=!t._player||t._player.paused,t._updateEnded()},t._updateEnded=function(){t.ended=!!t._player&&t._player.ended},t._updateStreamType=function(){void 0!==t._player&&(t.streamType=t.computeStreamType_())},t._updatePlaybackRate=function(){if(void 0!==t._player)for(var e,r=t._player.playbackRate,n=yY(t._stateReceivers);!(e=n()).done;){var i=e.value;i[fa].indexOf("playbackRate")>=0&&(i.playbackRate=r)}},t._updateMuted=function(){void 0!==t._player&&(t.muted=t._player.muted)},t._updateActiveVideoTrack=function(){if(void 0!==t._player){var e,r,n,i,a=y8(t._player.videoTracks,function(e){return e.enabled});t._activeVideoTrack!==a&&(null==(e=t._activeVideoTrack)||e.removeEventListener("activequalitychanged",t._updateActiveVideoQuality),null==(r=t._activeVideoTrack)||r.removeEventListener("targetqualitychanged",t._updateTargetVideoQualities),t._activeVideoTrack=a,t._updateActiveVideoQuality(),t._updateTargetVideoQualities(),null==(n=t._activeVideoTrack)||n.addEventListener("activequalitychanged",t._updateActiveVideoQuality),null==(i=t._activeVideoTrack)||i.addEventListener("targetqualitychanged",t._updateTargetVideoQualities))}},t._updateActiveVideoQuality=function(){for(var e,r,n=null==(e=t._activeVideoTrack)?void 0:e.activeQuality,i=yY(t._stateReceivers);!(r=i()).done;){var a=r.value;a[fa].indexOf("activeVideoQuality")>=0&&(a.activeVideoQuality=n)}},t._updateTargetVideoQualities=function(){for(var e,r=vy(t._activeVideoTrack),n=yY(t._stateReceivers);!(e=n()).done;){var i=e.value;i[fa].indexOf("targetVideoQualities")>=0&&(i.targetVideoQualities=r)}},t._updateCasting=function(){var e,r,n;t.casting=null!=(e=null==(n=t._player)||null==(r=n.cast)?void 0:r.casting)&&e},t._updatePlayingAd=function(){var e,r,n;t._isPlayingAd=null!=(e=null==(n=t._player)||null==(r=n.ads)?void 0:r.playing)&&e},t._onSourceChange=function(){t.closeMenu_(),t._hasFirstPlay=void 0!==t._player&&!t._player.paused},t.setUserIdle_=function(){if(clearTimeout(t._userIdleTimer),t._userIdleTimer=0,!(t.userIdleTimeout<0)&&(t._isUserActive=!1,t.updateUserIdle_(),"tv"==t.deviceType&&t.isUserIdle_())){var e=fH();null!==e&&e.blur()}},t.scheduleUserIdle_=function(){if(t.setUserActive_(),clearTimeout(t._userIdleTimer),t.userIdleTimeout<0){t._userIdleTimer=0;return}t._userIdleTimer=setTimeout(t.setUserIdle_,1e3*t.userIdleTimeout)},t._onTvKeyDown=function(e){if(yb(e.keyCode))return void t.setUserIdle_();var r=function e(t){if(y5(t)&&"none"!==getComputedStyle(t).display){if(null!==t.getAttribute(yv.TV_FOCUS))return fr(t);for(var r=fe(t),n=0;n<r.length;n++){var i=e(r[n]);if(i)return i}}}(t),n=fr(t),i=fH();if(!i){var a=null!=r?r:n;a.length>0&&(a[0].focus(),i=a[0])}!t.isUserIdle_()&&(e.keyCode===yg.ENTER?null!==i&&(e.preventDefault(),i.click()):y_(e.keyCode)&&fV(t,n,e.keyCode)&&(e.preventDefault(),e.stopPropagation()))},t._onKeyUp=function(e){yb(e.keyCode)||t.scheduleUserIdle_()},t._onPointerUp=function(e){"mouse"===e.pointerType?t.scheduleUserIdle_():"touch"===e.pointerType&&(t.isPlayerOrMedia_(e.target)&&t._isUserActive?t.setUserIdle_():(t.isUserIdle_()&&(t._lastPointerUpTime=performance.now(),t.addEventListener("click",t._onClickAfterPointerUp,!0)),t.scheduleUserIdle_()))},t._onClickAfterPointerUp=function(e){t.removeEventListener("click",t._onClickAfterPointerUp,!0),performance.now()-t._lastPointerUpTime<50&&(e.preventDefault(),e.stopPropagation())},t._onPointerMove=function(e){"mouse"===e.pointerType&&(t.setUserActive_(),t.isPlayerOrMedia_(e.target)&&t.scheduleUserIdle_())},t._onMouseLeave=function(){t.setUserIdle_()},t._onChromeSlotTransition=function(e){"opacity"===e.propertyName&&t._updateTextTrackMargins()},t._updateTextTrackMargins=function(){var e=t._player;if(void 0!==e){var r=t._topChromeSlotRef.value&&bg(t._topChromeSlotRef.value),n=t._bottomChromeSlotRef.value&&bg(t._bottomChromeSlotRef.value);e.textTrackStyle.marginTop=null==r?void 0:r.height,e.textTrackStyle.marginBottom=null==n?void 0:n.height}},t._onPreviewTimeChange=function(e){t._previewTime=e.detail.previewTime;for(var r,n=yY(t._stateReceivers);!(r=n()).done;){var i=r.value;i[fa].indexOf("previewTime")>=0&&(i.previewTime=t._previewTime)}},t._onDestroy=function(){t._player&&(t.removePlayerListeners_(t._player),t._player=void 0,t.propagatePlayerToAllReceivers_())},t._configuration=e,t._mutationObserver=new MutationObserver(t._onMutation),"u">typeof ResizeObserver&&(t._resizeObserver=new ResizeObserver(t._updateTextTrackMargins)),t.tryInitializePlayer_(),t}i(a,n);var o=a.prototype;return o._setConfiguration=function(e){this._configuration=null!=e?e:{},this.tryInitializePlayer_()},o._setSource=function(e){this._player?this._player.source=e:this._source=e},o.connectedCallback=function(){if(n.prototype.connectedCallback.call(this),!by){if(pe)document.adoptedStyleSheets.push(bd.styleSheet);else if(!document.getElementById(bp)){var e,t=document.createElement("style");t.id=bp;var r=window.litNonce;void 0!==r&&t.setAttribute("nonce",r),e=bd.cssText,void 0===t.textContent?t.innerText=e:t.textContent=e,document.head.appendChild(t)}by=!0}this.hasAttribute(yv.LANG)||(this.lang=null!=(a=null==(o=fi(this,"[lang]"))?void 0:o.lang)?a:""),this.hasAttribute(yv.DEVICE_TYPE)||(this.deviceType=bl()?"mobile":bs()?"tv":"desktop"),this.hasAttribute(yv.PAUSED)||(this.paused=!0),this.tryInitializePlayer_();for(var i,a,o,l,s=yY(this._stateReceivers);!(l=s()).done;){var u=l.value;this.propagateStateToReceiver_(u)}this._mutationObserver.observe(this,{childList:!0,subtree:!0}),this.shadowRoot.addEventListener("slotchange",this._onSlotChange),null==(i=this._resizeObserver)||i.observe(this),this._updateTextTrackMargins(),void 0!==bo&&(document.addEventListener(bo.fullscreenchange_,this._onFullscreenChange),document.addEventListener(bo.fullscreenerror_,this._onFullscreenChange),this._onFullscreenChange()),this.setUserIdle_(),"tv"===this.deviceType&&window.addEventListener("keydown",this._onTvKeyDown),this._isFullWindow&&window.addEventListener("keydown",this._exitFullscreenOnEsc),this.addEventListener("keyup",this._onKeyUp),this.addEventListener("pointerup",this._onPointerUp),this.addEventListener("pointermove",this._onPointerMove),this.addEventListener("mouseleave",this._onMouseLeave)},o.tryInitializePlayer_=function(){void 0!==this._player||void 0===this._playerRef.value||(void 0!==this._configuration.license||void 0!==this._configuration.licenseUrl)&&(this._player=new t.ChromelessPlayer(this._playerRef.value,this._configuration),this._source&&(this._player.source=this._source,this._source=void 0),this._player.muted!==this.muted&&(this._player.muted=this.muted),this._player.autoplay!==this.autoplay&&(this._player.autoplay=this.autoplay),this._updateAspectRatio(),this._updateError(),this._updatePausedAndEnded(),this._updateCasting(),this.addPlayerListeners_(this._player),this.propagatePlayerToAllReceivers_(),this.dispatchEvent(fU(bc)))},o.createRenderRoot=function(){var e=n.prototype.createRenderRoot.call(this);return e.addEventListener(f8,this._onToggleMenu),e.addEventListener(gG,this._onEnterFullscreen),e.addEventListener(gQ,this._onExitFullscreen),e.addEventListener(g8,this._onPreviewTimeChange),e},o.firstUpdated=function(){this._menuGroupRef.value&&!T(this._menuGroupRef,e.MenuGroup)&&customElements.upgrade(this._menuGroupRef.value),this.tryInitializePlayer_(),this._playerRef.value&&fs(this,this._playerRef.value,this.registerStateReceiver_)},o.disconnectedCallback=function(){var e;n.prototype.disconnectedCallback.call(this),null==(e=this._resizeObserver)||e.disconnect(),this._mutationObserver.disconnect(),this.shadowRoot.removeEventListener("slotchange",this._onSlotChange),void 0!==bo&&(document.removeEventListener(bo.fullscreenchange_,this._onFullscreenChange),document.removeEventListener(bo.fullscreenerror_,this._onFullscreenChange)),window.removeEventListener("keydown",this._onTvKeyDown),window.removeEventListener("keydown",this._exitFullscreenOnEsc),this.removeEventListener("keyup",this._onKeyUp),this.removeEventListener("pointerup",this._onPointerUp),this.removeEventListener("click",this._onClickAfterPointerUp,!0),this.removeEventListener("pointermove",this._onPointerMove),this.removeEventListener("mouseleave",this._onMouseLeave),this._player&&(this.removePlayerListeners_(this._player),this._player.destroy(),this._player=void 0,this.propagatePlayerToAllReceivers_()),this._stateReceivers.length=0},o.propagateStateToReceiver_=function(e){var t,r=e[fa];r.indexOf("player")>=0&&(e.player=this._player),r.indexOf("lang")>=0&&(e.lang=this.lang),r.indexOf("fullscreen")>=0&&(e.fullscreen=this.fullscreen),r.indexOf("deviceType")>=0&&(e.deviceType=this.deviceType),r.indexOf("streamType")>=0&&(e.streamType=this.streamType),void 0!==this._player&&(r.indexOf("playbackRate")>=0&&(e.playbackRate=this._player.playbackRate),r.indexOf("error")>=0&&(e.error=this._player.errorObject),r.indexOf("activeVideoQuality")>=0&&(e.activeVideoQuality=null==(t=this._activeVideoTrack)?void 0:t.activeQuality),r.indexOf("targetVideoQualities")>=0&&(e.targetVideoQualities=vy(this._activeVideoTrack))),r.indexOf("previewTime")>=0&&(e.previewTime=this._previewTime)},o.propagatePlayerToAllReceivers_=function(){for(var e,t=yY(this._stateReceivers);!(e=t()).done;){var r=e.value;r[fa].indexOf("player")>=0&&(r.player=this._player)}},o.removeStateFromReceiver_=function(e){e[fa].indexOf("player")>=0&&(e.player=void 0)},o.openMenu_=function(e,t){var r=fz.fromRect(this._topChromeRef.value.getBoundingClientRect()),n=fz.fromRect(this._bottomChromeRef.value.getBoundingClientRect()),i=!0,a=!0;if(void 0!==t){var o=fz.fromRect(this.getBoundingClientRect()),l=fz.fromRect(t.getBoundingClientRect());o.width>0&&o.height>0&&(i=l.top>=o.top+o.height/2,a=l.left>=o.left+o.width/2)}this._menuGroupRef.value.openMenu(e,t),this._menuOpener=t,gK(this,{"--theoplayer-menu-offset-top":""+Math.round(r.height)+"px","--theoplayer-menu-offset-bottom":""+Math.round(n.height)+"px","--theoplayer-menu-margin-top":i?"auto":"0","--theoplayer-menu-margin-bottom":i?"0":"auto","--theoplayer-menu-margin-left":a?"auto":"0","--theoplayer-menu-margin-right":a?"0":"auto"})},o.closeMenu_=function(){var e,t,r;null==(t=this._menuGroupRef.value)||null==(e=t.closeMenu)||e.call(t),null==(r=this._menuOpener)||r.focus(),this._menuOpener=void 0},o.computeStreamType_=function(){var e=this.source,t=null!=(n=null==e?void 0:e.streamType)?n:this.getAttribute(yv.STREAM_TYPE),r=null==(i=this._player)?void 0:i.duration;if(void 0===r||isNaN(r))return t||((null==e?void 0:e.dvr)?"dvr":"vod");if(r!==1/0)return"vod";if("live"===t||"dvr"===t)return t;var n,i,a,o=this.dvrThreshold;if(o<=0)return"dvr";var l=null==(a=this._player)?void 0:a.seekable;return l&&l.length>0&&l.end(l.length-1)-l.start(0)>=o?"dvr":"live"},o.isUserIdle_=function(){return!this._isUserActive&&!this.paused&&!this.casting&&!!this._menuGroupRef.value&&!this._menuGroupRef.value.hasCurrentMenu()},o.setUserActive_=function(){clearTimeout(this._userIdleTimer),this._isUserActive=!0,this.updateUserIdle_()},o.updateUserIdle_=function(){this.userIdle=this.isUserIdle_()},o.isPlayerOrMedia_=function(e){return e===this||this._playerRef.value.contains(e)},o.addPlayerListeners_=function(e){var t,r,n;e.addEventListener("destroy",this._onDestroy),e.addEventListener("resize",this._updateAspectRatio),e.addEventListener(["error","sourcechange","emptied"],this._updateError),e.addEventListener("volumechange",this._updateMuted),e.addEventListener("play",this._onPlay),e.addEventListener("pause",this._onPause),e.addEventListener(["ended","emptied"],this._updatePausedAndEnded),e.addEventListener(["durationchange","sourcechange","emptied"],this._updateStreamType),e.addEventListener("ratechange",this._updatePlaybackRate),e.addEventListener("sourcechange",this._onSourceChange),e.addEventListener(["durationchange","sourcechange","emptied"],this._updatePlayingAd),null==(t=e.theoLive)||t.addEventListener(["distributionloadstart","publicationloadstart"],this._onSourceChange),e.videoTracks.addEventListener(["addtrack","removetrack","change"],this._updateActiveVideoTrack),null==(r=e.cast)||r.addEventListener("castingchange",this._updateCasting),null==(n=e.ads)||n.addEventListener(["adbreakbegin","adbreakend","adbegin","adend","adskip"],this._updatePlayingAd)},o.removePlayerListeners_=function(e){e.removeEventListener("destroy",this._onDestroy),e.removeEventListener("resize",this._updateAspectRatio),e.removeEventListener(["error","sourcechange","emptied"],this._updateError),e.removeEventListener("volumechange",this._updateMuted),e.removeEventListener("play",this._onPlay),e.removeEventListener("pause",this._onPause),e.removeEventListener(["ended","emptied"],this._updatePausedAndEnded),e.removeEventListener(["durationchange","sourcechange","emptied"],this._updateStreamType),e.removeEventListener("ratechange",this._updatePlaybackRate),e.removeEventListener("sourcechange",this._onSourceChange),e.removeEventListener(["durationchange","sourcechange","emptied"],this._updatePlayingAd);try{var t,r,n;null==(t=e.theoLive)||t.removeEventListener(["distributionloadstart","publicationloadstart"],this._onSourceChange),e.videoTracks.removeEventListener(["addtrack","removetrack","change"],this._updateActiveVideoTrack),null==(r=e.cast)||r.removeEventListener("castingchange",this._updateCasting),null==(n=e.ads)||n.removeEventListener(["adbreakbegin","adbreakend","adbegin","adend","adskip"],this._updatePlayingAd)}catch(e){}},o.render=function(){return pj(bf(),yj(this._playerRef),yj(this._topChromeRef),yj(this._topChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,yj(this._bottomChromeRef),yj(this._bottomChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,yj(this._menuRef),yj(this._menuGroupRef),this._onCloseMenu,this._onMenuChange)},v(a,[{key:"player",get:function(){return this._player}},{key:"configuration",get:function(){return this._configuration},set:function(e){this._setConfiguration(e)}},{key:"source",get:function(){return this._player?this._player.source:this._source},set:function(e){this._setSource(e)}},{key:"fluid",get:function(){return this._fluid},set:function(e){this._fluid=e,this._updateAspectRatio()}},{key:"lang",get:function(){return this._language},set:function(e){this._language=null!=e?e:"";for(var t,r=yY(this._stateReceivers);!(t=r()).done;){var n=t.value;n[fa].indexOf("lang")>=0&&(n.lang=this._language)}}},{key:"muted",get:function(){return this._muted},set:function(e){this._muted=e,this._player&&this._player.muted!==e&&(this._player.muted=e)}},{key:"autoplay",get:function(){return this._autoplay},set:function(e){this._autoplay=e,this._player&&this._player.autoplay!==e&&(this._player.autoplay=e)}},{key:"fullscreen",get:function(){return this._fullscreen},set:function(e){if(this._fullscreen!==e){this._fullscreen=e;for(var t,r=yY(this._stateReceivers);!(t=r()).done;){var n=t.value;n[fa].indexOf("fullscreen")>=0&&(n.fullscreen=e)}}}},{key:"paused",get:function(){return this._paused},set:function(e){this._paused=e,this._updateTextTrackMargins(),this.updateUserIdle_()}},{key:"ended",get:function(){return this._ended},set:function(e){this._ended=e}},{key:"casting",get:function(){return this._casting},set:function(e){this._casting=e,this._updateTextTrackMargins(),this.updateUserIdle_()}},{key:"userIdle",get:function(){return this._userIdle},set:function(e){this._userIdle!==e&&(this._userIdle=e,this._updateTextTrackMargins(),this.dispatchEvent(fU(bu)))}},{key:"userIdleTimeout",get:function(){var e;return null!=(e=this._userIdleTimeout)?e:"tv"===this.deviceType?5:2},set:function(e){this._userIdleTimeout=void 0===e||isNaN(e)?void 0:e}},{key:"deviceType",get:function(){return this._deviceType},set:function(e){if(this._deviceType!==e){this._deviceType=e,this.mobile="mobile"===e,this.tv="tv"===e,window.removeEventListener("keydown",this._onTvKeyDown),"tv"===e&&window.addEventListener("keydown",this._onTvKeyDown);for(var t,r=yY(this._stateReceivers);!(t=r()).done;){var n=t.value;n[fa].indexOf("deviceType")>=0&&(n.deviceType=e)}}}},{key:"mobile",get:function(){return ys(this,hx)[hx]},set:function(e){ys(this,hx)[hx]=e}},{key:"tv",get:function(){return ys(this,hT)[hT]},set:function(e){ys(this,hT)[hT]=e}},{key:"streamType",get:function(){return this._streamType},set:function(e){if(this._streamType!==e){this._streamType=e;for(var t,r=yY(this._stateReceivers);!(t=r()).done;){var n=t.value;n[fa].indexOf("streamType")>=0&&(n.streamType=e)}var i=fU("theoplayerstreamtypechange",{bubbles:!0,composed:!0,detail:{streamType:e}});this.dispatchEvent(i)}}},{key:"dvrThreshold",get:function(){return this._dvrThreshold},set:function(e){this._dvrThreshold=isNaN(e)?0:e,this._updateStreamType()}},{key:"_hasFirstPlay",get:function(){return ys(this,hA)[hA]},set:function(e){ys(this,hA)[hA]=e}},{key:"_isPlayingAd",get:function(){return ys(this,hE)[hE]},set:function(e){ys(this,hE)[hE]=e}},{key:"_hasError",get:function(){return ys(this,hS)[hS]},set:function(e){ys(this,hS)[hS]=e}},{key:"_isFullWindow",get:function(){return ys(this,hL)[hL]},set:function(e){ys(this,hL)[hL]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){this._menuOpened!==e&&(this._menuOpened=e,y9(this,yv.MENU_OPENED,e))}}]),a}(p7),h1=(h9=(h6=o(hC,[[hM,4,"configuration"],[hB,4,"source"],[hN,4,"fluid"],[hI,4,"lang"],[hD,4,"muted"],[h$,4,"autoplay"],[hF,4,"fullscreen"],[hU,4,"paused"],[hq,4,"ended"],[hj,4,"casting"],[hz,4,"userIdle"],[hH,4,"userIdleTimeout"],[hV,4,"deviceType"],[hG,1,"mobile"],[hQ,1,"tv"],[hW,4,"streamType"],[hK,4,"dvrThreshold"],[hZ,1,"_hasFirstPlay"],[hY,1,"_isPlayingAd"],[hJ,1,"_hasError"],[hX,1,"_isFullWindow"],[h0,4,"menuOpened_"]],[hR],p7)).e)[0],h2=h9[1],h5=h9[2],h3=h9[3],h4=h9[4],h8=h9[5],h7=h9[6],e.UIContainer=(de=h6.c)[0],hO=de[1],hP);var bb=pi(b_());function bm(){var e=a(["<theoplayer-ui ",' .configuration="','" .lang="','" .fluid="','" .muted="','" .autoplay="','" .deviceType="','" .streamType="','" .userIdleTimeout="','" .dvrThreshold="','" @theoplayerready="','" @theoplayeruseridlechange="','" @theoplayerstreamtypechange="','">',"</theoplayer-ui>"]);return bm=function(){return e},e}function bk(){var e=a(['<theoplayer-control-bar slot="top-chrome" part="top-chrome"><div part="title" ad-hidden style="','"><slot name="title" @slotchange="','"></slot></div><span class="theoplayer-spacer"></span><theoplayer-language-menu-button menu="language-menu" mobile-only ad-hidden></theoplayer-language-menu-button><theoplayer-airplay-button mobile-only ad-hidden></theoplayer-airplay-button><theoplayer-chromecast-button mobile-only ad-hidden></theoplayer-chromecast-button><slot name="top-control-bar"></slot><theoplayer-settings-menu-button menu="settings-menu" mobile-only ad-hidden></theoplayer-settings-menu-button><theoplayer-ad-clickthrough-button ad-only></theoplayer-ad-clickthrough-button></theoplayer-control-bar><theoplayer-loading-indicator slot="centered-loading" no-auto-hide></theoplayer-loading-indicator><div slot="centered-chrome" part="centered-chrome"><slot name="centered-chrome"><theoplayer-seek-button part="seek-back-button seek-button center-button" seek-offset="-10" mobile-only ad-hidden></theoplayer-seek-button><theoplayer-play-button part="center-play-button play-button center-button"></theoplayer-play-button><theoplayer-seek-button part="seek-forward-button seek-button center-button" seek-offset="10" mobile-only ad-hidden></theoplayer-seek-button></slot></div><div slot="middle-chrome" part="middle-chrome"><theoplayer-chromecast-display></theoplayer-chromecast-display></div><div part="bottom-chrome"><theoplayer-control-bar part="ad-chrome" ad-only><theoplayer-ad-display></theoplayer-ad-display><theoplayer-ad-countdown></theoplayer-ad-countdown><span class="theoplayer-spacer"></span><theoplayer-ad-skip-button></theoplayer-ad-skip-button></theoplayer-control-bar><theoplayer-control-bar><theoplayer-play-button part="play-button" mobile-hidden ad-only class="theoplayer-ad-control"></theoplayer-play-button><theoplayer-mute-button part="mute-button" ad-only class="theoplayer-ad-control"></theoplayer-mute-button><theoplayer-time-range part="time-range" show-ad-markers tv-focus .inert="','" class="theoplayer-ad-control" style="','"></theoplayer-time-range><theoplayer-chromecast-button tv-hidden ad-only class="theoplayer-ad-control"></theoplayer-chromecast-button><theoplayer-fullscreen-button ad-only class="theoplayer-ad-control"></theoplayer-fullscreen-button></theoplayer-control-bar><theoplayer-control-bar ad-hidden><theoplayer-play-button part="play-button" mobile-hidden></theoplayer-play-button><theoplayer-mute-button part="mute-button" tv-hidden></theoplayer-mute-button><theoplayer-volume-range part="volume-range" mobile-hidden tv-hidden></theoplayer-volume-range><theoplayer-live-button part="live-button" live-only ad-hidden></theoplayer-live-button><theoplayer-time-display show-duration remaining-when-live></theoplayer-time-display><span class="theoplayer-spacer" style="pointer-events:auto"></span><theoplayer-language-menu-button menu="language-menu" mobile-hidden ad-hidden></theoplayer-language-menu-button><theoplayer-airplay-button tv-hidden mobile-hidden ad-hidden></theoplayer-airplay-button><theoplayer-chromecast-button tv-hidden mobile-hidden ad-hidden></theoplayer-chromecast-button><slot name="bottom-control-bar"></slot><theoplayer-settings-menu-button menu="settings-menu" mobile-hidden ad-hidden></theoplayer-settings-menu-button><theoplayer-fullscreen-button part="fullscreen-button" tv-hidden></theoplayer-fullscreen-button></theoplayer-control-bar></div><theoplayer-language-menu id="language-menu" slot="menu" hidden></theoplayer-language-menu><theoplayer-settings-menu id="settings-menu" slot="menu" hidden></theoplayer-settings-menu><slot name="error" slot="error"><theoplayer-error-display></theoplayer-error-display></slot><slot name="menu" slot="menu"></slot>']);return bk=function(){return e},e}function bw(){var e=a([':host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;font-family:Helvetica,Arial,sans-serif;position:relative;width:100%}:host([hidden]){display:none!important}theoplayer-ui{--theoplayer-loading-delay:0.1s;display:block;font-family:Helvetica,Arial,sans-serif;width:100%}:host(:-webkit-full-screen),:host(:-webkit-full-screen) theoplayer-ui{height:100%!important;width:100%!important}:host(:-ms-fullscreen),:host(:-ms-fullscreen) theoplayer-ui{height:100%!important;width:100%!important}:host(:fullscreen),:host(:fullscreen) theoplayer-ui{height:100%!important;width:100%!important}theoplayer-menu::part(heading){display:none!important}[part=centered-chrome]{display:-webkit-box;display:-ms-flexbox;display:flex}[part=centered-chrome] *{--theoplayer-control-height:48px}[part=middle-chrome]{-webkit-box-pack:end;-ms-flex-pack:end;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;justify-content:flex-end;pointer-events:none}[part=bottom-chrome],[part=middle-chrome]{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;position:relative}[part=bottom-chrome]{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}:host([mobile]) theoplayer-ui{--theoplayer-control-backdrop-background:rgba(0,0,0,.5)}:host{--theoplayer-control-background-gradient-stops:transparent 0%,rgba(0,0,0,.01) 8.1%,rgba(0,0,0,.037) 15.5%,rgba(0,0,0,.078) 22.5%,rgba(0,0,0,.131) 29%,rgba(0,0,0,.195) 35.3%,rgba(0,0,0,.264) 41.2%,rgba(0,0,0,.337) 47.1%,rgba(0,0,0,.413) 52.9%,rgba(0,0,0,.486) 58.8%,rgba(0,0,0,.555) 64.7%,rgba(0,0,0,.619) 71%,rgba(0,0,0,.672) 77.5%,rgba(0,0,0,.713) 84.5%,rgba(0,0,0,.74) 91.9%,rgba(0,0,0,.75) 100%}:host(:not([mobile])) [part=bottom-chrome]:before,:host(:not([mobile])) [part=top-chrome]:before{bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}:host(:not([mobile])) [part=top-chrome]:before{background:linear-gradient(to top,var(--theoplayer-control-background-gradient-stops))}:host(:not([mobile])) [part=bottom-chrome]:before{background:linear-gradient(to bottom,var(--theoplayer-control-background-gradient-stops))}.theoplayer-spacer{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}theoplayer-time-range{--theoplayer-control-height:12px;--theoplayer-range-track-pointer-background:hsla(0,0%,100%,.5)}:host(:not([mobile])) [mobile-only],:host([mobile]) [mobile-hidden]{display:none!important}:host(:not([stream-type=vod])) [live-hidden],:host(:not([stream-type=vod])) theoplayer-control-bar ::slotted([live-hidden]),:host([stream-type=vod]) [live-only],:host([stream-type=vod]) theoplayer-control-bar ::slotted([live-only]){display:none!important}theoplayer-ui:not([has-first-play]) [part=centered-chrome] :not(theoplayer-play-button),theoplayer-ui:not([has-first-play]) theoplayer-control-bar,theoplayer-ui:not([playing-ad]) [ad-only],theoplayer-ui[playing-ad] [ad-hidden]{display:none!important}:host(:not([mobile])) theoplayer-ui[has-first-play] [part=centered-chrome] theoplayer-play-button{display:none!important}theoplayer-volume-range{--theoplayer-range-padding-left:0}theoplayer-mute-button+theoplayer-volume-range{--theoplayer-range-padding-right:0;--theoplayer-range-track-width:70px;overflow:hidden;-webkit-transition:width .2s ease-in;transition:width .2s ease-in;width:0}theoplayer-mute-button+theoplayer-volume-range:focus,theoplayer-mute-button+theoplayer-volume-range:hover,theoplayer-mute-button:focus+theoplayer-volume-range,theoplayer-mute-button:hover+theoplayer-volume-range{width:70px}theoplayer-mute-button+theoplayer-volume-range:focus-within,theoplayer-mute-button:focus-within+theoplayer-volume-range{width:70px}theoplayer-live-button+theoplayer-time-display{padding-left:0}theoplayer-live-button[live]+theoplayer-time-display{display:none!important}p{color:#fff;color:var(--theoplayer-text-color,#fff);font-size:20px;font-size:var(--theoplayer-text-font-size,20px)}theolive-bad-network-button{display:none;display:var(--theolive-bad-network-button-display,none)}theoplayer-settings-menu-button{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;display:var(--theolive-quality-button-display,inline-flex)}']);return bw=function(){return e},e}dp=p9("theoplayer-default-ui"),df=yn(),L={slot:"title",flatten:!0},dv=yr({reflect:!1,attribute:yv.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),dg=yr({reflect:!1,attribute:yv.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),d_=yr({reflect:!0,type:Boolean,attribute:yv.FLUID}),db=yr({reflect:!0,type:String,attribute:yv.LANG}),dm=yr({reflect:!0,type:Boolean,attribute:yv.MUTED}),dk=yr({reflect:!0,type:Boolean,attribute:yv.AUTOPLAY}),dw=yr({reflect:!0,type:String,attribute:yv.STREAM_TYPE}),dx=yr({reflect:!0,type:Number,attribute:yv.USER_IDLE_TIMEOUT,useDefault:!0}),dT=yr({reflect:!0,type:String,attribute:yv.DEVICE_TYPE}),dA=yr({reflect:!0,state:!0,type:Boolean,attribute:yv.MOBILE}),dE=yr({reflect:!0,state:!0,type:Boolean,attribute:yv.TV}),dS=yr({reflect:!0,type:Number,attribute:yv.DVR_THRESHOLD,useDefault:!0}),dL=yn(),e.DefaultUI=void 0,new(dd=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[bb],t.shadowRootOptions=r({},p7.shadowRootOptions,{delegatesFocus:!0}),t.READY_EVENT=bc,dy(),t}return i(t,e),t}(l),dt=yc("____private__timeRangeInert_1"),dr=yc("____private_titleSlotNodes_2"),dn=yc("____private_fluid_3"),di=yc("____private_muted_4"),da=yc("____private_autoplay_5"),dl=yc("____private_streamType_6"),ds=yc("____private_mobile_7"),du=yc("____private_tv_8"),dc=yc("____private__hasTitle_9"),dh=function(e){function t(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this)||this,dt,{writable:!0,value:void 0}),Object.defineProperty(r,dr,{writable:!0,value:void 0}),Object.defineProperty(r,dn,{writable:!0,value:void 0}),Object.defineProperty(r,di,{writable:!0,value:void 0}),Object.defineProperty(r,da,{writable:!0,value:void 0}),Object.defineProperty(r,dl,{writable:!0,value:void 0}),Object.defineProperty(r,ds,{writable:!0,value:void 0}),Object.defineProperty(r,du,{writable:!0,value:void 0}),Object.defineProperty(r,dc,{writable:!0,value:void 0}),d$(r),r._uiRef=yF(),ys(r,dt)[dt]=dC(r,!1),r._timeRangeInertTimeout=0,r._appliedExtensions=!1,r._configuration={},r._source=void 0,r._language="",r._userIdleTimeout=void 0,r._deviceType="desktop",r._dvrThreshold=60,ys(r,dr)[dr]=dP(r),ys(r,dn)[dn]=dR(r,!1),ys(r,di)[di]=dO(r,!1),ys(r,da)[da]=dM(r,!1),ys(r,dl)[dl]=dB(r,"vod"),ys(r,ds)[ds]=dN(r,!1),ys(r,du)[du]=dI(r,!1),ys(r,dc)[dc]=dD(r,!1),r._updateStreamType=function(){r._uiRef.value&&(r.streamType=r._uiRef.value.streamType)},r._updateUserIdle=function(){clearTimeout(r._timeRangeInertTimeout),r.userIdle?r._timeRangeInert=!0:r._timeRangeInertTimeout=setTimeout(function(){r._timeRangeInert=!1},50),r.dispatchEvent(fU(bu))},r._onTitleSlotChange=function(){r._hasTitle=r.titleSlotNodes.length>0},r.configuration=t,r}i(t,e);var n=t.prototype;return n.connectedCallback=function(){if(e.prototype.connectedCallback.call(this),this.hasAttribute(yv.LANG)||(this.lang=null!=(t=null==(r=fi(this,"[lang]"))?void 0:r.lang)?t:""),this.hasAttribute(yv.DEVICE_TYPE)||(this.deviceType=bl()?"mobile":bs()?"tv":"desktop"),!this._appliedExtensions){this._appliedExtensions=!0;for(var t,r,n,i=yY(bn);!(n=i()).done;)(0,n.value)(this)}this._onTitleSlotChange()},n.disconnectedCallback=function(){clearTimeout(this._timeRangeInertTimeout)},n.firstUpdated=function(){this._source&&(this._uiRef.value.source=this._source,this._source=void 0)},n._onUiReady=function(){this.dispatchEvent(fU(bc))},n.render=function(){return pj(bm(),yj(this._uiRef),this.configuration,this.lang,this.fluid,this.muted,this.autoplay,this.deviceType,this.streamType,this.userIdleTimeout,this.dvrThreshold,this._onUiReady,this._updateUserIdle,this._updateStreamType,this.renderUiContent())},n.renderUiContent=function(){return pj(bk(),g1({display:this._hasTitle?"":"none"}),this._onTitleSlotChange,this._timeRangeInert,g1({display:"live"===this.streamType?"none":""}))},v(t,[{key:"_timeRangeInert",get:function(){return ys(this,dt)[dt]},set:function(e){ys(this,dt)[dt]=e}},{key:"titleSlotNodes",get:function(){return ys(this,dr)[dr]},set:function(e){ys(this,dr)[dr]=e}},{key:"player",get:function(){var e;return null==(e=this._uiRef.value)?void 0:e.player}},{key:"configuration",get:function(){return this._configuration},set:function(e){var t;this._configuration=r({},e,{ads:r({},null!=(t=e.ads)?t:{},{showCountdown:!1})})}},{key:"source",get:function(){return this._uiRef.value?this._uiRef.value.source:this._source},set:function(e){this._uiRef.value?(this._source=void 0,this._uiRef.value.source=e):this._source=e}},{key:"fluid",get:function(){return ys(this,dn)[dn]},set:function(e){ys(this,dn)[dn]=e}},{key:"lang",get:function(){var e,t;return null!=(e=null==(t=this._uiRef.value)?void 0:t.lang)?e:this._language},set:function(e){this._language=null!=e?e:"",this._uiRef.value&&(this._uiRef.value.lang=this._language)}},{key:"muted",get:function(){return ys(this,di)[di]},set:function(e){ys(this,di)[di]=e}},{key:"autoplay",get:function(){return ys(this,da)[da]},set:function(e){ys(this,da)[da]=e}},{key:"streamType",get:function(){return ys(this,dl)[dl]},set:function(e){ys(this,dl)[dl]=e}},{key:"userIdle",get:function(){return!!this._uiRef.value&&this._uiRef.value.userIdle}},{key:"userIdleTimeout",get:function(){var e;return null!=(e=this._userIdleTimeout)?e:"tv"===this.deviceType?5:2},set:function(e){this._userIdleTimeout=void 0===e||isNaN(e)?void 0:e}},{key:"deviceType",get:function(){return this._deviceType},set:function(e){this._deviceType!==e&&(this._deviceType=e,this.mobile="mobile"===e,this.tv="tv"===e)}},{key:"mobile",get:function(){return ys(this,ds)[ds]},set:function(e){ys(this,ds)[ds]=e}},{key:"tv",get:function(){return ys(this,du)[du]},set:function(e){ys(this,du)[du]=e}},{key:"dvrThreshold",get:function(){return this._dvrThreshold},set:function(e){this._dvrThreshold=isNaN(e)?0:e}},{key:"_hasTitle",get:function(){return ys(this,dc)[dc]},set:function(e){ys(this,dc)[dc]=e}}]),t}(p7),dC=(dU=(dF=o(dh,[[df,1,"_timeRangeInert"],[function(e,t){var r=(null!=L?L:{}).slot,n="slot"+(r?"[name="+r+"]":":not([name])");return yi(e,t,{get:function(){var e,t,r=null==(t=this.renderRoot)?void 0:t.querySelector(n);return null!=(e=null==r?void 0:r.assignedNodes(L))?e:[]}})},1,"titleSlotNodes"],[dv,4,"configuration"],[dg,4,"source"],[d_,1,"fluid"],[db,4,"lang"],[dm,1,"muted"],[dk,1,"autoplay"],[dw,1,"streamType"],[dx,4,"userIdleTimeout"],[dT,4,"deviceType"],[dA,1,"mobile"],[dE,1,"tv"],[dS,4,"dvrThreshold"],[dL,1,"_hasTitle"]],[dp],p7)).e)[0],dP=dU[1],dR=dU[2],dO=dU[3],dM=dU[4],dB=dU[5],dN=dU[6],dI=dU[7],dD=dU[8],d$=dU[9],e.DefaultUI=(dq=dF.c)[0],dy=dq[1],dd);var bx=pi(bw());function bT(){var e=a(['<p id="loading-announcement" no-auto-hide slot="centered-chrome" style="','"><slot name="loading-announcement">','</slot></p><p id="offline-announcement" no-auto-hide slot="centered-chrome" style="','"><slot name="offline-announcement">','</slot></p><p id="announcement" no-auto-hide slot="centered-chrome" style="','">','</p><theoplayer-loading-indicator slot="centered-loading" no-auto-hide part="loading-indicator"></theoplayer-loading-indicator><div slot="centered-chrome" part="centered-chrome"><theoplayer-play-button part="center-play-button play-button center-button" style="','"></theoplayer-play-button></div><div part="bottom-chrome"><theoplayer-control-bar><theoplayer-play-button mobile-hidden part="play-button" style="','"></theoplayer-play-button><theoplayer-mute-button part="mute-button"></theoplayer-mute-button><theoplayer-volume-range mobile-hidden part="volume-range"></theoplayer-volume-range><theoplayer-live-button ad-hidden live-only part="live-button"></theoplayer-live-button><span class="theoplayer-spacer"></span><theoplayer-settings-menu-button ad-hidden menu="all-quality-menu" part="quality-button"></theoplayer-settings-menu-button><theolive-bad-network-button ad-hidden menu="quality-menu" part="theolive-bad-network-button"></theolive-bad-network-button><theoplayer-fullscreen-button part="fullscreen-button"></theoplayer-fullscreen-button></theoplayer-control-bar></div><theoplayer-menu id="quality-menu" slot="menu" menu-close-on-input hidden><theolive-bad-network-menu></theolive-bad-network-menu></theoplayer-menu><theoplayer-menu id="all-quality-menu" slot="menu" menu-close-on-input hidden><theoplayer-quality-radio-group></theoplayer-quality-radio-group></theoplayer-menu><theoplayer-error-display slot="error" part="error-display" style="','"></theoplayer-error-display>']);return bT=function(){return e},e}dW=p9("theolive-default-ui"),dY=yn(),dJ=yn(),dX=yn(),d0=yn(),e.THEOliveDefaultUI=void 0,new(dQ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[bx],dK(),t}return i(t,e),t}(l),dj=yc("____private__announcementType_1"),dz=yc("____private__announcementMessage_2"),dH=yc("____private__hidePlayButton_3"),dV=yc("____private__hideErrorDisplay_4"),dG=function(e){function t(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this,t)||this,dj,{writable:!0,value:void 0}),Object.defineProperty(r,dz,{writable:!0,value:void 0}),Object.defineProperty(r,dH,{writable:!0,value:void 0}),Object.defineProperty(r,dV,{writable:!0,value:void 0}),ys(r,dj)[dj]=(d4(r),d1(r,"")),ys(r,dz)[dz]=d2(r,""),ys(r,dH)[dH]=d5(r,!1),ys(r,dV)[dV]=d3(r,!1),r.onLoadChannelStart=function(){r.showMessage_("loading",void 0)},r.onChannelOffline=function(){r.showMessage_("offline",void 0)},r.onChannelLoaded=function(){r.hidePlayerError(),r.hideMessage_()},r.onError=function(e){var t=e.errorObject.code;t<13e3||t>=14e3?r.showMessage_("offline",void 0):(r.stopHidingPlayerError(),r.hideMessage_())},r}i(t,e);var r=t.prototype;return r._onUiReady=function(){e.prototype._onUiReady.call(this);var t,r,n,i=this.player;i&&(null==(t=i.theoLive)||t.addEventListener(["distributionloadstart","publicationloadstart"],this.onLoadChannelStart),null==(r=i.theoLive)||r.addEventListener(["distributionoffline","publicationoffline"],this.onChannelOffline),null==(n=i.theoLive)||n.addEventListener(["endpointloaded","publicationloaded"],this.onChannelLoaded),i.addEventListener("error",this.onError))},r.hidePlayerError=function(){var e;null==(e=this._uiRef.value)||e.removeAttribute(yv.HAS_ERROR),this._hideErrorDisplay=!0},r.stopHidingPlayerError=function(){var e;null==(e=this._uiRef.value)||e.setAttribute(yv.HAS_ERROR,""),this._hideErrorDisplay=!1},r.showMessage_=function(e,t){this.hidePlayerError(),this._announcementType=e,this._announcementMessage=null!=t?t:"",this._hidePlayButton=!0},r.hideMessage_=function(){this._announcementType="",this._announcementMessage="",this._hidePlayButton=!1},r.renderUiContent=function(){var e=fb(this.lang),t={display:"loading"===this._announcementType?"":"none"},r={display:"offline"===this._announcementType?"":"none"},n={display:"announcement"===this._announcementType?"":"none"},i={display:this._hidePlayButton?"none":""},a={display:this._hideErrorDisplay?"none":""};return pj(bT(),g1(t),e.liveStreamLoading,g1(r),e.liveStreamOffline,g1(n),this._announcementMessage,g1(i),g1(i),g1(a))},v(t,[{key:"_announcementType",get:function(){return ys(this,dj)[dj]},set:function(e){ys(this,dj)[dj]=e}},{key:"_announcementMessage",get:function(){return ys(this,dz)[dz]},set:function(e){ys(this,dz)[dz]=e}},{key:"_hidePlayButton",get:function(){return ys(this,dH)[dH]},set:function(e){ys(this,dH)[dH]=e}},{key:"_hideErrorDisplay",get:function(){return ys(this,dV)[dV]},set:function(e){ys(this,dV)[dV]=e}}]),t}(dZ=e.DefaultUI),d1=(d7=(d8=o(dG,[[dY,1,"_announcementType"],[dJ,1,"_announcementMessage"],[dX,1,"_hidePlayButton"],[d0,1,"_hideErrorDisplay"]],[dW],dZ)).e)[0],d2=d7[1],d5=d7[2],d3=d7[3],d4=d7[4],e.THEOliveDefaultUI=(d6=d8.c)[0],dK=d6[1],dQ),e.Attribute=yv,e.CastButton=_y,e.ColorStops=gJ,e.ExtensionSlot=br,e.StateReceiverMixin=function(e,t){var r,n,a=fl(t),l=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(e);return r=(n=o(l,[],[a],e).c)[0],(0,n[1])(),r},e.addLocale=function(e,t){var n,i,a,o,l;f_[e]=r({},fg,t,{fontFamilyLabels:r({},fg.fontFamilyLabels,t.fontFamilyLabels),colorLabels:r({},fg.colorLabels,t.colorLabels),edgeStyleLabels:r({},fg.edgeStyleLabels,t.edgeStyleLabels),formatDuration:null!=(n=t.formatDuration)?n:fu(e,"long"),formatNarrowDuration:null!=(i=t.formatNarrowDuration)?i:fu(e,"narrow"),formatPercentage:null!=(a=t.formatPercentage)?a:fd(e),formatBandwidth:null!=(o=t.formatBandwidth)?o:fy(e),formatLanguage:null!=(l=t.formatLanguage)?l:fv(e)})},e.buttonTemplate=yx,e.linkButtonTemplate=function(e,t){return void 0===t&&(t=""),yx("<a>"+e+"</a>",t)},e.menuGroupTemplate=function(e,t){return void 0===t&&(t=""),"<style>"+t+"</style>"+e},e.menuTemplate=function(e,t,r){return void 0===r&&(r=""),"<style>"+r+'</style><div part="heading"><theoplayer-menu-close-button></theoplayer-menu-close-button>'+e+'</div><div part="content">'+t+"</div>"},e.registerExtension=function(e){bn.push(e)},e.stateReceiver=fl,e.version="2.2.0"},"object"==typeof exports&&"u">typeof module?t(exports,require("theoplayer/chromeless")):"function"==typeof define&&define.amd?define(["exports","theoplayer/chromeless"],t):t((e="u">typeof globalThis?globalThis:e||self).THEOplayerUI={},e.THEOplayer);
1
+ var e,t;e=this,t=function(e,t){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)}function a(e,t){return t||(t=e.slice(0)),e.raw=t,e}function o(e,t,r,n){function i(e,t){return function(r){(function(e,t){if(e.v)throw Error("attempted to call "+t+" after decoration was finished")})(t,"addInitializer"),l(r,"An initializer"),e.push(r)}}function a(e,t,r,n,a,o,l,s,u){switch(a){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var c,h,d,p={kind:c,name:l?"#"+t:t,static:o,private:l,metadata:s},y={v:!1};if(p.addInitializer=i(n,y),0===a?l?(h=r.get,d=r.set):(h=function(){return this[t]},d=function(e){this[t]=e}):2===a?h=function(){return r.value}:((1===a||3===a)&&(h=function(){return r.get.call(this)}),(1===a||4===a)&&(d=function(e){r.set.call(this,e)})),h){var f=h;h=function(e){return 0==arguments.length&&(e=this),f.call(e)}}if(d){var v=d;d=function(e,t){return 1==arguments.length&&(t=e,e=this),v.call(e,t)}}if(l)p.access=h&&d?{get:h,set:d}:h?{get:h}:{set:d};else{var _=function(e){return t in e};p.access=h&&d?{has:_,get:h,set:d}:h?{has:_,get:h}:{has:_,set:d}}var g=e(u,p);return y.v=!0,g}function l(e,t){if("function"!=typeof e)throw TypeError(t+" must be a function")}function s(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&l(t.get,"accessor.get"),void 0!==t.set&&l(t.set,"accessor.set"),void 0!==t.init&&l(t.init,"accessor.init")}else if("function"!==r)throw TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function u(e,t){t&&e.push(function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e})}function c(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}return(o=function(e,t,r,n){if(void 0!==n)var o=n[Symbol.metadata||Symbol.for("Symbol.metadata")];var l=Object.create(void 0===o?null:o),h=function(e,t,r){for(var n=[],i=new Map,o=new Map,l=0;l<t.length;l++){var c,h,d,p,y=t[l];if(Array.isArray(y)){var f=y[1],v=y[2],_=y.length>3,g=f>=5;if(g?(d=e,f-=5,p=h=h||[]):(d=e.prototype,p=c=c||[]),0!==f&&!_){var b=g?o:i,m=b.get(v)||0;if(!0===m||3===m&&4!==f||4===m&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+v);!m&&f>2?b.set(v,f):b.set(v,!0)}!function(e,t,r,n,i,o,l,u,c){var h,d,p,y,f,v,_=r[0];if(l?h=0===i||1===i?{get:r[3],set:r[4]}:3===i?{get:r[3]}:4===i?{set:r[3]}:{value:r[3]}:0!==i&&(h=Object.getOwnPropertyDescriptor(t,n)),1===i?p={get:h.get,set:h.set}:2===i?p=h.value:3===i?p=h.get:4===i&&(p=h.set),"function"==typeof _)void 0!==(y=a(_,n,h,u,i,o,l,c,p))&&(s(i,y),0===i?d=y:1===i?(d=y.init,p={get:f=y.get||p.get,set:y.set||p.set}):p=y);else for(var g=_.length-1;g>=0;g--)void 0!==(y=a(_[g],n,h,u,i,o,l,c,p))&&(s(i,y),0===i?v=y:1===i?(v=y.init,p={get:f=y.get||p.get,set:y.set||p.set}):p=y,void 0!==v&&(void 0===d?d=v:"function"==typeof d?d=[d,v]:d.push(v)));if(0===i||1===i){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var b=d;d=function(e,t){for(var r=t,n=0;n<b.length;n++)r=b[n].call(e,r);return r}}else{var m=d;d=function(e,t){return m.call(e,t)}}e.push(d)}0!==i&&(1===i?(h.get=p.get,h.set=p.set):2===i?h.value=p:3===i?h.get=p:4===i&&(h.set=p),l?1===i?(e.push(function(e,t){return p.get.call(e,t)}),e.push(function(e,t){return p.set.call(e,t)})):2===i?e.push(p):e.push(function(e,t){return p.call(e,t)}):Object.defineProperty(t,n,h))}(n,d,y,v,f,g,_,p,r)}}return u(n,c),u(n,h),n}(e,t,l);return r.length||c(e,l),{e:h,get c(){return function(e,t,r){if(t.length>0){for(var n=[],a=e,o=e.name,l=t.length-1;l>=0;l--){var u={v:!1},h=t[l](a,{kind:"class",name:o,addInitializer:i(n,u),metadata:r});u.v=!0,void 0!==h&&(s(10,h),a=h)}return[c(a,r),function(){for(var e=0;e<n.length;e++)n[e].call(a)}]}}(e,r,l)}}})(e,t,r,n)}function l(e){return e}function s(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){r(e);return}l.done?t(s):Promise.resolve(s).then(n,i)}function u(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){s(a,n,i,o,l,"next",e)}function l(e){s(a,n,i,o,l,"throw",e)}o(void 0)})}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function d(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function p(e,t,r){t=c(t);var n=h()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r);if(n&&("object"===d(n)||"function"==typeof n))return n;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&f(e.prototype,t),r&&f(e,r),e}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function g(e,t){if(e){if("string"==typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _(e,t)}}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,l=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){l=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(l)throw n}}return a}}(e,t)||g(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t,r){return(k=h()?Reflect.construct:function(e,t,r){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return r&&n(a,r.prototype),a}).apply(null,arguments)}function w(e){var t="function"==typeof Map?new Map:void 0;return(w=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return k(e,arguments,c(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n(r,e)})(e)}function x(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(o,"next",{value:s(0)}),l(o,"throw",{value:s(1)}),l(o,"return",{value:s(2)}),"function"==typeof Symbol&&l(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(s){var u=[l,s];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function T(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var E,A,S,L,C,P,R,O,M,B,N,I,D,F,$,U,q,j,z,V,H,G,Q,W,K,Z,Y,J,X,ee,et,er,en,ei,ea,eo,el,es,eu,ec,eh,ed,ep,ey,ef,ev,e_,eg,eb,em,ek,ew,ex,eT,eE,eA,eS,eL,eC,eP,eR,eO,eM,eB,eN,eI,eD,eF,e$,eU,eq,ej,ez,eV,eH,eG,eQ,eW,eK,eZ,eY,eJ,eX,e0,e1,e2,e5,e3,e4,e8,e7,e6,e9,te,tt,tr,tn,ti,ta,to,tl,ts,tu,tc,th,td,tp,ty,tf,tv,t_,tg,tb,tm,tk,tw,tx,tT,tE,tA,tS,tL,tC,tP,tR,tO,tM,tB,tN,tI,tD,tF,t$,tU,tq,tj,tz,tV,tH,tG,tQ,tW,tK,tZ,tY,tJ,tX,t0,t1,t2,t5,t3,t4,t8,t7,t6,t9,re,rt,rr,rn,ri,ra,ro,rl,rs,ru,rc,rh,rd,rp,ry,rf,rv,r_,rg,rb,rm,rk,rw,rx,rT,rE,rA,rS,rL,rC,rP,rR,rO,rM,rB,rN,rI,rD,rF,r$,rU,rq,rj,rz,rV,rH,rG,rQ,rW,rK,rZ,rY,rJ,rX,r0,r1,r2,r5,r3,r4,r8,r7,r6,r9,ne,nt,nr,nn,ni,na,no,nl,ns,nu,nc,nh,nd,np,ny,nf,nv,n_,ng,nb,nm,nk,nw,nx,nT,nE,nA,nS,nL,nC,nP,nR,nO,nM,nB,nN,nI,nD,nF,n$,nU,nq,nj,nz,nV,nH,nG,nQ,nW,nK,nZ,nY,nJ,nX,n0,n1,n2,n5,n3,n4,n8,n7,n6,n9,ie,it,ir,ii,ia,io,il,is,iu,ic,ih,id,ip,iy,iv,i_,ig,ib,im,ik,iw,ix,iT,iE,iA,iS,iL,iC,iP,iR,iO,iM,iB,iN,iI,iD,iF,i$,iU,iq,ij,iz,iV,iH,iG,iQ,iW,iK,iZ,iY,iJ,iX,i0,i1,i2,i5,i3,i4,i8,i7,i6,i9,ae,at,ar,an,ai,aa,ao,al,as,au,ac,ah,ad,ap,ay,af,av,a_,ag,ab,am,ak,aw,ax,aT,aE,aA,aS,aL,aC,aP,aR,aO,aM,aB,aN,aI,aD,aF,a$,aU,aq,aj,az,aV,aH,aG,aQ,aW,aK,aZ,aY,aJ,aX,a0,a1,a2,a5,a3,a4,a8,a7,a6,a9,oe,ot,or,on,oi,oa,oo,ol,os,ou,oc,oh,od,op,oy,of,ov,o_,og,ob,om,ok,ow,ox,oT,oE,oA,oS,oL,oC,oP,oR,oO,oM,oB,oN,oI,oD,oF,o$,oU,oq,oj,oz,oV,oH,oG,oQ,oW,oK,oZ,oY,oJ,oX,o0,o1,o2,o5,o3,o4,o8,o7,o6,o9,le,lt,lr,ln,li,la,lo,ll,ls,lu,lc,lh,ld,lp,ly,lf,lv,l_,lg,lb,lm,lk,lw,lx,lT,lE,lA,lS,lL,lC,lP,lR,lO,lM,lB,lN,lI,lD,lF,l$,lU,lq,lj,lz,lV,lH,lG,lQ,lW,lK,lZ,lY,lJ,lX,l0,l1,l2,l5,l3,l4,l8,l7,l6,l9,se,st,sr,sn,si,sa,so,sl,ss,su,sc,sh,sd,sp,sy,sf,sv,s_,sg,sb,sm,sk,sw,sx,sT,sE,sA,sS,sL,sC,sP,sR,sO,sM,sB,sN,sI,sD,sF,s$,sU,sq,sj,sz,sV,sH,sG,sQ,sW,sK,sZ,sY,sJ,sX,s0,s1,s2,s5,s3,s4,s8,s7,s6,s9,ue,ut,ur,un,ui,ua,uo,ul,us,uu,uc,uh,ud,up,uy,uf,uv,u_,ug,ub,um,uk,uw,ux,uT,uE,uA,uS,uL,uC,uP,uR,uO,uM,uB,uN,uI,uD,uF,u$,uU,uq,uj,uz,uV,uH,uG,uQ,uW,uK,uZ,uY,uJ,uX,u0,u1,u2,u5,u3,u4,u8,u7,u6,u9,ce,ct,cr,cn,ci,ca,co,cl,cs,cu,cc,ch,cd,cp,cy,cf,cv,c_,cg,cb,cm,ck,cw,cx,cT,cE,cA,cS,cL,cC,cP,cR,cO,cM,cB,cN,cI,cD,cF,c$,cU,cq,cj,cz,cV,cH,cG,cQ,cW,cK,cZ,cY,cJ,cX,c0,c1,c2,c5,c3,c4,c8,c7,c6,c9,he,ht,hr,hn,hi,ha,ho,hl,hs,hu,hc,hh,hd,hp,hy,hf,hv,h_,hg,hb,hm,hk,hw,hx,hT,hE,hA,hS,hL,hC,hP,hR,hO,hM,hB,hN,hI,hD,hF,h$,hU,hq,hj,hz,hV,hH,hG,hQ,hW,hK,hZ,hY,hJ,hX,h0,h1,h2,h5,h3,h4,h8,h7,h6,h9,de,dt,dr,dn,di,da,dl,ds,du,dc,dh,dd,dp,dy,df,dv,d_,dg,db,dm,dk,dw,dx,dT,dE,dA,dS,dL,dC,dP,dR,dO,dM,dB,dN,dI,dD,dF,d$,dU,dq,dj,dz,dV,dH,dG,dQ,dW,dK,dZ,dY,dJ,dX,d0,d1,d2,d5,d3,d4,d8,d7,d6,d9,pe,pt,pr,pn,pi,pa,po,pl,ps,pu,pc,ph,pd,pp,py,pf,pv,p_,pg,pb,pm,pk,pw,px,pT=self,pE=pT.ShadowRoot&&(void 0===pT.ShadyCSS||pT.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,pA=Symbol(),pS=new WeakMap,pL=function(){function e(t,r,n){if(y(this,e),this._$cssResult$=!0,n!==pA)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}return v(e,[{key:"styleSheet",get:function(){var e=this.o,t=this.t;if(pE&&void 0===e){var r=void 0!==t&&1===t.length;r&&(e=pS.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&pS.set(t,e))}return e}},{key:"toString",value:function(){return this.cssText}}]),e}(),pC=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new pL(1===e.length?e[0]:r.reduce(function(t,r,n){return t+function(e){if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")}(r)+e[n+1]},e[0]),e,pA)},pP=function(e,t){var r=!0,n=!1,i=void 0;if(pE)e.adoptedStyleSheets=t.map(function(e){return T(e,CSSStyleSheet)?e:e.styleSheet});else try{for(var a,o=t[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value,s=document.createElement("style"),u=pT.litNonce;void 0!==u&&s.setAttribute("nonce",u),s.textContent=l.cssText,e.appendChild(s)}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}},pR=pE?function(e){return e}:function(e){return T(e,CSSStyleSheet)?function(e){var t,r="",n=!0,i=!1,a=void 0;try{for(var o,l=e.cssRules[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=o.value;r+=s.cssText}}catch(e){i=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw a}}return new pL("string"==typeof(t=r)?t:t+"",void 0,pA)}(e):e},pO=Object.is,pM=Object.defineProperty,pB=Object.getOwnPropertyDescriptor,pN=Object.getOwnPropertyNames,pI=Object.getOwnPropertySymbols,pD=Object.getPrototypeOf,pF=self,p$=pF.trustedTypes,pU=p$?p$.emptyScript:"",pq=pF.reactiveElementPolyfillSupport,pj=function(e,t){return e},pz={toAttribute:function(e,t){switch(t){case Boolean:e=e?pU:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute:function(e,t){var r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},pV=function(e,t){return!pO(e,t)},pH={attribute:!0,type:String,converter:pz,reflect:!1,useDefault:!1,hasChanged:pV};null!=(C=Symbol).metadata||(C.metadata=Symbol("metadata")),null!=pF.litPropertyMetadata||(pF.litPropertyMetadata=new WeakMap);var pG=function(e){function t(){var e;return y(this,t),(e=p(this,t))._$Ep=void 0,e.isUpdatePending=!1,e.hasUpdated=!1,e._$Em=null,e._$Ev(),e}return i(t,e),v(t,[{key:"_$Ev",value:function(){var e,t=this;this._$ES=new Promise(function(e){return t.enableUpdating=e}),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(e=this.constructor.l)||e.forEach(function(e){return e(t)})}},{key:"addController",value:function(e){var t,r;(null!=(t=this._$EO)?t:this._$EO=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&(null==(r=e.hostConnected)||r.call(e))}},{key:"removeController",value:function(e){var t;null==(t=this._$EO)||t.delete(e)}},{key:"_$E_",value:function(){var e=new Map,t=this.constructor.elementProperties,r=!0,n=!1,i=void 0;try{for(var a,o=t.keys()[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value;this.hasOwnProperty(l)&&(e.set(l,this[l]),delete this[l])}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}e.size>0&&(this._$Ep=e)}},{key:"createRenderRoot",value:function(){var e,t=null!=(e=this.shadowRoot)?e:this.attachShadow(this.constructor.shadowRootOptions);return pP(t,this.constructor.elementStyles),t}},{key:"connectedCallback",value:function(){var e;null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(e=this._$EO)||e.forEach(function(e){var t;return null==(t=e.hostConnected)?void 0:t.call(e)})}},{key:"enableUpdating",value:function(e){}},{key:"disconnectedCallback",value:function(){var e;null==(e=this._$EO)||e.forEach(function(e){var t;return null==(t=e.hostDisconnected)?void 0:t.call(e)})}},{key:"attributeChangedCallback",value:function(e,t,r){this._$AK(e,r)}},{key:"_$ET",value:function(e,t){var r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(void 0!==n&&!0===r.reflect){var i,a=(void 0!==(null==(i=r.converter)?void 0:i.toAttribute)?r.converter:pz).toAttribute(t,r.type);this._$Em=e,null==a?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}},{key:"_$AK",value:function(e,t){var r=this.constructor,n=r._$Eh.get(e);if(void 0!==n&&this._$Em!==n){var i,a,o,l=r.getPropertyOptions(n),s="function"==typeof l.converter?{fromAttribute:l.converter}:void 0!==(null==(a=l.converter)?void 0:a.fromAttribute)?l.converter:pz;this._$Em=n;var u=s.fromAttribute(t,l.type);this[n]=null!=(i=null!=u?u:null==(o=this._$Ej)?void 0:o.get(n))?i:u,this._$Em=null}}},{key:"requestUpdate",value:function(e,t,r,n,i){if(void 0===n&&(n=!1),void 0!==e){var a,o,l=this.constructor;if(!1===n&&(i=this[e]),null!=r||(r=l.getPropertyOptions(e)),!((null!=(a=r.hasChanged)?a:pV)(i,t)||r.useDefault&&r.reflect&&i===(null==(o=this._$Ej)?void 0:o.get(e))&&!this.hasAttribute(l._$Eu(e,r))))return;this.C(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}},{key:"C",value:function(e,t,r,n){var i,a,o,l=r.useDefault,s=r.reflect,u=r.wrapped;l&&!(null!=(i=this._$Ej)?i:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,null!=(a=null!=n?n:t)?a:this[e]),!0!==u||void 0!==n)||(this._$AL.has(e)||(this.hasUpdated||l||(t=void 0),this._$AL.set(e,t)),!0===s&&this._$Em!==e&&(null!=(o=this._$Eq)?o:this._$Eq=new Set).add(e))}},{key:"_$EP",value:function(){return u(function(){var e;return x(this,function(t){switch(t.label){case 0:this.isUpdatePending=!0,t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this._$ES];case 2:return t.sent(),[3,4];case 3:return Promise.reject(t.sent()),[3,4];case 4:if(null==(e=this.scheduleUpdate()))return[3,6];return[4,e];case 5:t.sent(),t.label=6;case 6:return[2,!this.isUpdatePending]}})}).call(this)}},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){if(this.isUpdatePending){if(!this.hasUpdated){if(null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this._$Ep){var e,t=!0,r=!1,n=void 0;try{for(var i,a=this._$Ep[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var o=b(i.value,2),l=o[0],s=o[1];this[l]=s}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}this._$Ep=void 0}var u=this.constructor.elementProperties,c=!0,h=!1,d=void 0;if(u.size>0)try{for(var p,y=u[Symbol.iterator]();!(c=(p=y.next()).done);c=!0){var f=b(p.value,2),v=f[0],_=f[1],g=_.wrapped,m=this[v];!0!==g||this._$AL.has(v)||void 0===m||this.C(v,void 0,_,m)}}catch(e){h=!0,d=e}finally{try{c||null==y.return||y.return()}finally{if(h)throw d}}}var k=!1,w=this._$AL;try{(k=this.shouldUpdate(w))?(this.willUpdate(w),null==(e=this._$EO)||e.forEach(function(e){var t;return null==(t=e.hostUpdate)?void 0:t.call(e)}),this.update(w)):this._$EM()}catch(e){throw k=!1,this._$EM(),e}k&&this._$AE(w)}}},{key:"willUpdate",value:function(e){}},{key:"_$AE",value:function(e){var t;null==(t=this._$EO)||t.forEach(function(e){var t;return null==(t=e.hostUpdated)?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}},{key:"_$EM",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$ES}},{key:"shouldUpdate",value:function(e){return!0}},{key:"update",value:function(e){var t=this;this._$Eq&&(this._$Eq=this._$Eq.forEach(function(e){return t._$ET(e,t[e])})),this._$EM()}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}}],[{key:"addInitializer",value:function(e){var t;this._$Ei(),(null!=(t=this.l)?t:this.l=[]).push(e)}},{key:"observedAttributes",get:function(){return this.finalize(),this._$Eh&&m(this._$Eh.keys())}},{key:"createProperty",value:function(e,t){if(void 0===t&&(t=pH),t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){var r=Symbol(),n=this.getPropertyDescriptor(e,r,t);void 0!==n&&pM(this.prototype,e,n)}}},{key:"getPropertyDescriptor",value:function(e,t,r){var n,i=null!=(n=pB(this.prototype,e))?n:{get:function(){return this[t]},set:function(e){this[t]=e}},a=i.get,o=i.set;return{get:a,set:function(t){var n=null==a?void 0:a.call(this);null==o||o.call(this,t),this.requestUpdate(e,n,r)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(e){var t;return null!=(t=this.elementProperties.get(e))?t:pH}},{key:"_$Ei",value:function(){if(!this.hasOwnProperty(pj("elementProperties"))){var e=pD(this);e.finalize(),void 0!==e.l&&(this.l=m(e.l)),this.elementProperties=new Map(e.elementProperties)}}},{key:"finalize",value:function(){if(!this.hasOwnProperty(pj("finalized"))){if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pj("properties"))){var e=this.properties,t=m(pN(e)).concat(m(pI(e))),r=!0,n=!1,i=void 0;try{for(var a,o=t[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value;this.createProperty(l,e[l])}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}}var s=this[Symbol.metadata];if(null!==s){var u=litPropertyMetadata.get(s),c=!0,h=!1,d=void 0;if(void 0!==u)try{for(var p,y=u[Symbol.iterator]();!(c=(p=y.next()).done);c=!0){var f=b(p.value,2),v=f[0],_=f[1];this.elementProperties.set(v,_)}}catch(e){h=!0,d=e}finally{try{c||null==y.return||y.return()}finally{if(h)throw d}}}this._$Eh=new Map;var g=!0,k=!1,w=void 0;try{for(var x,T=this.elementProperties[Symbol.iterator]();!(g=(x=T.next()).done);g=!0){var E=b(x.value,2),A=E[0],S=E[1],L=this._$Eu(A,S);void 0!==L&&this._$Eh.set(L,A)}}catch(e){k=!0,w=e}finally{try{g||null==T.return||T.return()}finally{if(k)throw w}}this.elementStyles=this.finalizeStyles(this.styles)}}},{key:"finalizeStyles",value:function(e){var t=[];if(Array.isArray(e)){var r=new Set(e.flat(1/0).reverse()),n=!0,i=!1,a=void 0;try{for(var o,l=r[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=o.value;t.unshift(pR(s))}}catch(e){i=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw a}}}else void 0!==e&&t.push(pR(e));return t}},{key:"_$Eu",value:function(e,t){var r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}}]),t}(w(HTMLElement));pG.elementStyles=[],pG.shadowRootOptions={mode:"open"},pG[pj("elementProperties")]=new Map,pG[pj("finalized")]=new Map,null==pq||pq({ReactiveElement:pG}),(null!=(P=pF.reactiveElementVersions)?P:pF.reactiveElementVersions=[]).push("2.1.2");var pQ=self,pW=function(e){return e},pK=pQ.trustedTypes,pZ=pK?pK.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,pY="$lit$",pJ="lit$"+Math.random().toFixed(9).slice(2)+"$",pX="?"+pJ,p0="<"+pX+">",p1=document,p2=function(){return p1.createComment("")},p5=function(e){return null===e||"object"!=(void 0===e?"undefined":d(e))&&"function"!=typeof e},p3=Array.isArray,p4="[ \n\f\r]",p8=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,p7=/-->/g,p6=/>/g,p9=RegExp(">|"+p4+"(?:([^\\s\"'>=/]+)("+p4+"*="+p4+"*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)","g"),ye=/'/g,yt=/"/g,yr=/^(?:script|style|textarea|title)$/i,yn=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return{_$litType$:1,strings:e,values:r}},yi=Symbol.for("lit-noChange"),ya=Symbol.for("lit-nothing"),yo=new WeakMap,yl=p1.createTreeWalker(p1,129,null,!1);function ys(e,t){if(!p3(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==pZ?pZ.createHTML(t):t}var yu=function(e,t){for(var r,n=e.length-1,i=[],a=2===t?"<svg>":3===t?"<math>":"",o=p8,l=0;l<n;l++){for(var s=e[l],u=void 0,c=void 0,h=-1,d=0;d<s.length&&(o.lastIndex=d,null!==(c=o.exec(s)));)d=o.lastIndex,o===p8?"!--"===c[1]?o=p7:void 0!==c[1]?o=p6:void 0!==c[2]?(yr.test(c[2])&&(r=RegExp("</"+c[2],"g")),o=p9):void 0!==c[3]&&(o=p9):o===p9?">"===c[0]?(o=null!=r?r:p8,h=-1):void 0===c[1]?h=-2:(h=o.lastIndex-c[2].length,u=c[1],o=void 0===c[3]?p9:'"'===c[3]?yt:ye):o===yt||o===ye?o=p9:o===p7||o===p6?o=p8:(o=p9,r=void 0);var p=o===p9&&e[l+1].startsWith("/>")?" ":"";a+=o===p8?s+p0:h>=0?(i.push(u),s.slice(0,h)+pY+s.slice(h)+pJ+p):s+pJ+(-2===h?l:p)}return[ys(e,a+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]},yc=function(){function e(t,r){var n=t.strings,i=t._$litType$;y(this,e),this.parts=[];var a=0,o=0,l=n.length-1,s=this.parts,u=b(yu(n,i),2),c=u[0],h=u[1];if(this.el=e.createElement(c,r),yl.currentNode=this.el.content,2===i||3===i){var d,p=this.el.content.firstChild;p.replaceWith.apply(p,m(p.childNodes))}for(;null!==(d=yl.nextNode())&&s.length<l;){if(1===d.nodeType){var f=!0,v=!1,_=void 0;if(d.hasAttributes())try{for(var g,k=d.getAttributeNames()[Symbol.iterator]();!(f=(g=k.next()).done);f=!0){var w=g.value;if(w.endsWith(pY)){var x=h[o++],T=d.getAttribute(w).split(pJ),E=/([.?@])?(.*)/.exec(x);s.push({type:1,index:a,name:E[2],strings:T,ctor:"."===E[1]?yf:"?"===E[1]?yv:"@"===E[1]?y_:yy}),d.removeAttribute(w)}else w.startsWith(pJ)&&(s.push({type:6,index:a}),d.removeAttribute(w))}}catch(e){v=!0,_=e}finally{try{f||null==k.return||k.return()}finally{if(v)throw _}}if(yr.test(d.tagName)){var A=d.textContent.split(pJ),S=A.length-1;if(S>0){d.textContent=pK?pK.emptyScript:"";for(var L=0;L<S;L++)d.append(A[L],p2()),yl.nextNode(),s.push({type:2,index:++a});d.append(A[S],p2())}}}else if(8===d.nodeType)if(d.data===pX)s.push({type:2,index:a});else for(var C=-1;-1!==(C=d.data.indexOf(pJ,C+1));)s.push({type:7,index:a}),C+=pJ.length-1;a++}}return v(e,null,[{key:"createElement",value:function(e,t){var r=p1.createElement("template");return r.innerHTML=e,r}}]),e}();function yh(e,t,r,n){if(void 0===r&&(r=e),t===yi)return t;var i,a,o,l,s=void 0!==n?null==(o=r._$Co)?void 0:o[n]:r._$Cl,u=p5(t)?void 0:t._$litDirective$;return(null==s?void 0:s.constructor)!==u&&(null==s||null==(l=s._$AO)||l.call(s,!1),void 0===u?s=void 0:(s=new u(e))._$AT(e,r,n),void 0!==n?(null!=(a=(i=r)._$Co)?a:i._$Co=[])[n]=s:r._$Cl=s),void 0!==s&&(t=yh(e,s._$AS(e,t.values),s,n)),t}var yd=function(){function e(t,r){y(this,e),this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}return v(e,[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"u",value:function(e){var t,r=this._$AD,n=r.el.content,i=r.parts,a=(null!=(t=null==e?void 0:e.creationScope)?t:p1).importNode(n,!0);yl.currentNode=a;for(var o=yl.nextNode(),l=0,s=0,u=i[0];void 0!==u;){if(l===u.index){var c=void 0;2===u.type?c=new yp(o,o.nextSibling,this,e):1===u.type?c=new u.ctor(o,u.name,u.strings,this,e):6===u.type&&(c=new yg(o,this,e)),this._$AV.push(c),u=i[++s]}l!==(null==u?void 0:u.index)&&(o=yl.nextNode(),l++)}return yl.currentNode=p1,a}},{key:"p",value:function(e){var t=0,r=!0,n=!1,i=void 0;try{for(var a,o=this._$AV[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value;void 0!==l&&(void 0!==l.strings?(l._$AI(e,l,t),t+=l.strings.length-2):l._$AI(e[t])),t++}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}}}]),e}(),yp=function(){function e(t,r,n,i){var a;y(this,e),this.type=2,this._$AH=ya,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=null==(a=null==i?void 0:i.isConnected)||a}return v(e,[{key:"_$AU",get:function(){var e,t;return null!=(e=null==(t=this._$AM)?void 0:t._$AU)?e:this._$Cv}},{key:"parentNode",get:function(){var e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(e,t){var r;void 0===t&&(t=this),p5(e=yh(this,e,t))?e===ya||null==e||""===e?(this._$AH!==ya&&this._$AR(),this._$AH=ya):e!==this._$AH&&e!==yi&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):p3(r=e)||"function"==typeof(null==r?void 0:r[Symbol.iterator])?this.k(e):this._(e)}},{key:"O",value:function(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}},{key:"T",value:function(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}},{key:"_",value:function(e){this._$AH!==ya&&p5(this._$AH)?this._$AA.nextSibling.data=e:this.T(p1.createTextNode(e)),this._$AH=e}},{key:"$",value:function(e){var t,r=e.values,n=e._$litType$,i="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=yc.createElement(ys(n.h,n.h[0]),this.options)),n);if((null==(t=this._$AH)?void 0:t._$AD)===i)this._$AH.p(r);else{var a=new yd(i,this),o=a.u(this.options);a.p(r),this.T(o),this._$AH=a}}},{key:"_$AC",value:function(e){var t=yo.get(e.strings);return void 0===t&&yo.set(e.strings,t=new yc(e)),t}},{key:"k",value:function(t){p3(this._$AH)||(this._$AH=[],this._$AR());var r,n=this._$AH,i=0,a=!0,o=!1,l=void 0;try{for(var s,u=t[Symbol.iterator]();!(a=(s=u.next()).done);a=!0){var c=s.value;i===n.length?n.push(r=new e(this.O(p2()),this.O(p2()),this,this.options)):r=n[i],r._$AI(c),i++}}catch(e){o=!0,l=e}finally{try{a||null==u.return||u.return()}finally{if(o)throw l}}i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}},{key:"_$AR",value:function(e,t){for(void 0===e&&(e=this._$AA.nextSibling),null==(r=this._$AP)||r.call(this,!1,!0,t);e!==this._$AB;){var r,n=pW(e).nextSibling;pW(e).remove(),e=n}}},{key:"setConnected",value:function(e){var t;void 0===this._$AM&&(this._$Cv=e,null==(t=this._$AP)||t.call(this,e))}}]),e}(),yy=function(){function e(t,r,n,i,a){y(this,e),this.type=1,this._$AH=ya,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=a,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=ya}return v(e,[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e,t,r,n){void 0===t&&(t=this);var i=this.strings,a=!1;if(void 0===i)(a=!p5(e=yh(this,e,t,0))||e!==this._$AH&&e!==yi)&&(this._$AH=e);else{var o,l,s=e;for(e=i[0],o=0;o<i.length-1;o++)(l=yh(this,s[r+o],t,o))===yi&&(l=this._$AH[o]),a||(a=!p5(l)||l!==this._$AH[o]),l===ya?e=ya:e!==ya&&(e+=(null!=l?l:"")+i[o+1]),this._$AH[o]=l}a&&!n&&this.j(e)}},{key:"j",value:function(e){e===ya?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}]),e}(),yf=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e.type=3,e}return i(t,e),v(t,[{key:"j",value:function(e){this.element[this.name]=e===ya?void 0:e}}]),t}(yy),yv=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e.type=4,e}return i(t,e),v(t,[{key:"j",value:function(e){this.element.toggleAttribute(this.name,!!e&&e!==ya)}}]),t}(yy),y_=function(e){function t(e,r,n,i,a){var o;return y(this,t),(o=p(this,t,[e,r,n,i,a])).type=5,o}return i(t,e),v(t,[{key:"_$AI",value:function(e,t){if(void 0===t&&(t=this),(e=null!=(r=yh(this,e,t,0))?r:ya)!==yi){var r,n=this._$AH,i=e===ya&&n!==ya||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==ya&&(n===ya||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}}},{key:"handleEvent",value:function(e){var t,r;"function"==typeof this._$AH?this._$AH.call(null!=(t=null==(r=this.options)?void 0:r.host)?t:this.element,e):this._$AH.handleEvent(e)}}]),t}(yy),yg=function(){function e(t,r,n){y(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}return v(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){yh(this,e)}}]),e}(),yb=pQ.litHtmlPolyfillSupport;null==yb||yb(yc,yp),(null!=(R=pQ.litHtmlVersions)?R:pQ.litHtmlVersions=[]).push("3.3.2");var ym=function(e,t,r){var n=null!=(a=null==r?void 0:r.renderBefore)?a:t,i=n._$litPart$;if(void 0===i){var a,o,l=null!=(o=null==r?void 0:r.renderBefore)?o:null;n._$litPart$=i=new yp(t.insertBefore(p2(),l),l,void 0,null!=r?r:{})}return i._$AI(e),i},yk=globalThis,yw=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e.renderOptions={host:e},e._$Do=void 0,e}return i(t,e),v(t,[{key:"createRenderRoot",value:function(){var t,r=e.prototype.createRenderRoot.call(this);return null!=(t=this.renderOptions).renderBefore||(t.renderBefore=r.firstChild),r}},{key:"update",value:function(t){var r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),e.prototype.update.call(this,t),this._$Do=ym(r,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var t;e.prototype.connectedCallback.call(this),null==(t=this._$Do)||t.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var t;e.prototype.disconnectedCallback.call(this),null==(t=this._$Do)||t.setConnected(!1)}},{key:"render",value:function(){return yi}}]),t}(pG);yw._$litElement$=!0,yw.finalized=!0,null==(M=yk.litElementHydrateSupport)||M.call(yk,{LitElement:yw});var yx=yk.litElementPolyfillSupport;null==yx||yx({LitElement:yw}),(null!=(O=yk.litElementVersions)?O:yk.litElementVersions=[]).push("4.2.2");var yT=function(e){return function(t,r){void 0!==r?r.addInitializer(function(){customElements.define(e,t)}):customElements.define(e,t)}},yE={attribute:!0,type:String,converter:pz,reflect:!1,hasChanged:pV},yA=function(e,t,r){void 0===e&&(e=yE);var n=r.kind,i=r.metadata,a=self.litPropertyMetadata.get(i);if(void 0===a&&self.litPropertyMetadata.set(i,a=new Map),"setter"===n&&((e=Object.create(e)).wrapped=!0),a.set(r.name,e),"accessor"===n){var o=r.name;return{set:function(r){var n=t.get.call(this);t.set.call(this,r),this.requestUpdate(o,n,e,!0,r)},init:function(t){return void 0!==t&&this.C(o,void 0,e,t),t}}}if("setter"===n){var l=r.name;return function(r){var n=this[l];t.call(this,r),this.requestUpdate(l,n,e,!0,r)}}throw Error("Unsupported decorator location: "+n)};function yS(e){return function(t,r){var n;return"object"==(void 0===r?"undefined":d(r))?yA(e,t,r):(n=t.hasOwnProperty(r),t.constructor.createProperty(r,e),n?Object.getOwnPropertyDescriptor(t,r):void 0)}}function yL(e){var t,r;return yS((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),r=r={state:!0,attribute:!1},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}var yC=function(e,t,r){return r.configurable=!0,r.enumerable=!0,Reflect.decorate&&"object"!=(void 0===t?"undefined":d(t))&&Object.defineProperty(e,t,r),r};function yP(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}:host([hidden]){display:none!important}::slotted(theoplayer-time-range){-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}"]);return yP=function(){return e},e}var yR=pC(yP());function yO(){var e=a(["<slot></slot>"]);return yO=function(){return e},e}function yM(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}I=yT("theoplayer-control-bar"),e.ControlBar=void 0,new(N=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[yR],t.shadowRootOptions=r({},yw.shadowRootOptions,{delegatesFocus:!0}),D(),t}return i(t,e),t}(l),B=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return yn(yO())},t}(yw),e.ControlBar=(F=o(B,[],[I],yw).c)[0],D=F[1],N);var yB=0;function yN(e){return"__private_"+yB+++"_"+e}var yI=function(e){return function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return{_$litDirective$:e,values:r}}},yD=function(){function e(t){y(this,e)}return v(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AT",value:function(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}},{key:"_$AS",value:function(e,t){return this.update(e,t)}},{key:"update",value:function(e,t){return this.render.apply(this,m(t))}}]),e}(),yF=yI(function(e){function t(e){var r;if(y(this,t),r=p(this,t,[e]),2!==e.type)throw Error("templateContent can only be used in child bindings");return r}return i(t,e),v(t,[{key:"render",value:function(e){return this.vt===e?yi:(this.vt=e,document.importNode(e.content,!0))}}]),t}(yD));function y$(){var e=a([":host{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-tap-highlight-color:transparent;align-items:center;background:transparent;background:var(--theoplayer-control-background,transparent);-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;color:var(--theoplayer-button-text-color,var(--theoplayer-text-color,#fff));display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;display:var(--theoplayer-before-first-play-display,inline-flex);font-size:14px;font-size:var(--theoplayer-text-font-size,14px);justify-content:center;line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));padding:10px;padding:var(--theoplayer-control-padding,10px);pointer-events:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}:host([hidden]){display:none!important}:host(:not([disabled])){cursor:pointer}:host(:focus){-webkit-box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);-webkit-box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));outline:0}:host(:focus:not(:focus-visible)){-webkit-box-shadow:none;box-shadow:none}:host(:hover){background:transparent;background:var(--theoplayer-control-hover-background,var(--theoplayer-control-background,transparent))}:host([aria-checked=true]){background:#fff;background:var(--theoplayer-button-checked-background,#fff);color:#000;color:var(--theoplayer-button-checked-color,#000)}:host([disabled]){background:transparent;background:var(--theoplayer-control-background,transparent);color:#ccc;color:var(--theoplayer-button-disabled-text-color,#ccc)}[part$=icon],[part~=icon]{font-size:0}::slotted(img),::slotted(svg),img,svg{fill:currentColor;color:#fff;color:var(--theoplayer-icon-color,#fff);height:24px;height:var(--theoplayer-button-icon-height,var(--theoplayer-control-height,24px));max-height:100%;max-width:100%;min-width:100%;-webkit-transition:none;transition:none;-webkit-transition:var(--theoplayer-button-icon-transition,none);transition:var(--theoplayer-button-icon-transition,none);vertical-align:middle;width:24px;width:var(--theoplayer-button-icon-width,var(--theoplayer-control-height,24px))}::slotted(img),img{-webkit-box-shadow:none;box-shadow:none;-webkit-box-shadow:var(--theoplayer-button-icon-shadow,none);box-shadow:var(--theoplayer-button-icon-shadow,none)}::slotted(svg),svg{-webkit-filter:drop-shadow(none);filter:drop-shadow(none);-webkit-filter:drop-shadow(var(--theoplayer-button-icon-shadow,none));filter:drop-shadow(var(--theoplayer-button-icon-shadow,none))}:host(:hover:not([disabled])) ::slotted(img),:host(:hover:not([disabled])) img{-webkit-box-shadow:0 0 4px hsla(0,0%,100%,.5);box-shadow:0 0 4px hsla(0,0%,100%,.5);-webkit-box-shadow:var(--theoplayer-button-hover-icon-shadow,0 0 4px hsla(0,0%,100%,.5));box-shadow:var(--theoplayer-button-hover-icon-shadow,0 0 4px hsla(0,0%,100%,.5))}:host(:hover:not([disabled])) ::slotted(svg),:host(:hover:not([disabled])) svg{-webkit-filter:drop-shadow(0 0 4px hsla(0,0%,100%,.5));filter:drop-shadow(0 0 4px rgba(255,255,255,.5));-webkit-filter:drop-shadow(var(--theoplayer-button-hover-icon-shadow,0 0 4px hsla(0,0%,100%,.5)));filter:drop-shadow(var(--theoplayer-button-hover-icon-shadow,0 0 4px rgba(255,255,255,.5)))}:host([disabled]) ::slotted(img),:host([disabled]) ::slotted(svg),:host([disabled]) img,:host([disabled]) svg{color:hsla(0,0%,80%,.5);color:var(--theoplayer-button-disabled-icon-color,hsla(0,0%,80%,.5))}"]);return y$=function(){return e},e}var yU=pC(y$()),yq=((E={}).CONFIGURATION="configuration",E.SOURCE="source",E.AUTOPLAY="autoplay",E.MUTED="muted",E.FULLSCREEN="fullscreen",E.FULLWINDOW="fullwindow",E.FLUID="fluid",E.DEVICE_TYPE="device-type",E.MOBILE="mobile",E.TV="tv",E.TV_FOCUS="tv-focus",E.MOBILE_ONLY="mobile-only",E.MOBILE_HIDDEN="mobile-hidden",E.TV_ONLY="tv-only",E.TV_HIDDEN="tv-hidden",E.USER_IDLE="user-idle",E.USER_IDLE_TIMEOUT="user-idle-timeout",E.NO_AUTO_HIDE="no-auto-hide",E.DISABLED="disabled",E.INERT="inert",E.HIDDEN="hidden",E.PAUSED="paused",E.ENDED="ended",E.VOLUME_LEVEL="volume-level",E.CASTING="casting",E.LOADING="loading",E.STREAM_TYPE="stream-type",E.LIVE="live",E.LIVE_ONLY="live-only",E.LIVE_HIDDEN="live-hidden",E.LIVE_THRESHOLD="live-threshold",E.DVR_THRESHOLD="dvr-threshold",E.REMAINING="remaining",E.REMAINING_WHEN_LIVE="remaining-when-live",E.SHOW_DURATION="show-duration",E.STEREO="stereo",E.SEEK_OFFSET="seek-offset",E.MENU="menu",E.MENU_OPENED="menu-opened",E.MENU_CLOSE_ON_INPUT="menu-close-on-input",E.ARIA_LABEL="aria-label",E.ARIA_LIVE="aria-live",E.ARIA_CHECKED="aria-checked",E.HAS_AUDIO="has-audio",E.HAS_SUBTITLES="has-subtitles",E.HAS_ERROR="has-error",E.HAS_FIRST_PLAY="has-first-play",E.CAST_STATE="cast-state",E.TRACK_TYPE="track-type",E.SHOW_OFF="show-off",E.PLAYING_AD="playing-ad",E.SHOW_AD_MARKERS="show-ad-markers",E.CLICKTHROUGH="clickthrough",E.PROPERTY="property",E.VALUE="value",E.LANG="lang",E),yj=((A={})[A.ENTER=13]="ENTER",A[A.ESCAPE=27]="ESCAPE",A[A.SPACE=32]="SPACE",A[A.END=35]="END",A[A.HOME=36]="HOME",A[A.LEFT=37]="LEFT",A[A.UP=38]="UP",A[A.RIGHT=39]="RIGHT",A[A.DOWN=40]="DOWN",A[A.BACK_SAMSUNG=88]="BACK_SAMSUNG",A[A.BACK_WEBOS=461]="BACK_WEBOS",A[A.BACK_TIZEN=10009]="BACK_TIZEN",A);function yz(e){return 37<=e&&e<=40}function yV(e){return 10009===e||27===e||88===e||461===e}function yH(e){return 13===e||32===e}function yG(){var e=a(["",""]);return yG=function(){return e},e}function yQ(){var e=a(["<slot></slot>"]);return yQ=function(){return e},e}function yW(e,t){return void 0===t&&(t=""),"<style>"+t+"</style>"+e}function yK(){var e=a([":host{padding:0}a{color:#fff;color:var(--theoplayer-button-text-color,var(--theoplayer-text-color,#fff));padding:10px;padding:var(--theoplayer-control-padding,10px);text-decoration:none}:host(:focus){-webkit-box-shadow:none;box-shadow:none;outline:0}a:focus{-webkit-box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);-webkit-box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));outline:0}a:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}:host([aria-checked=true]) a{color:#000;color:var(--theoplayer-button-checked-color,#000)}:host([disabled]) a{color:#ccc;color:var(--theoplayer-button-disabled-text-color,#ccc)}"]);return yK=function(){return e},e}j=yT("theoplayer-button"),V=yS({reflect:!0,type:Boolean,attribute:yq.DISABLED}),H=yS({reflect:!0,state:!0,type:String,attribute:yq.ARIA_LABEL}),e.Button=void 0,new(q=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[yU],z(),t}return i(t,e),t}(l),$=yN("____private_ariaLabel_1"),U=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,$,{writable:!0,value:void 0}),Q(r),r._disabled=!1,yM(r,$)[$]=G(r,null),r._onClick=function(){r.handleClick()},r._onKeyDown=function(e){!yH(e.keyCode)||e.metaKey||e.altKey?r.removeEventListener("keyup",r._onKeyUp):r.addEventListener("keyup",r._onKeyUp)},r._onKeyUp=function(e){r.removeEventListener("keyup",r._onKeyUp),yH(e.keyCode)&&r.handleClick()},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","button"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute(yq.ARIA_LIVE)||this.setAttribute(yq.ARIA_LIVE,"polite"),this._disabled||this._enable()},r.disconnectedCallback=function(){this.removeEventListener("click",this._onClick),this.removeEventListener("keydown",this._onKeyDown),this.removeEventListener("keyup",this._onKeyUp)},r._enable=function(){this.removeEventListener("click",this._onClick),this.removeEventListener("keydown",this._onKeyDown),this.removeEventListener("keyup",this._onKeyUp),this.addEventListener("click",this._onClick),this.addEventListener("keydown",this._onKeyDown),this.setAttribute("aria-disabled","false"),this.setAttribute("tabindex","0")},r._disable=function(){this.removeEventListener("click",this._onClick),this.removeEventListener("keydown",this._onKeyDown),this.removeEventListener("keyup",this._onKeyUp),this.setAttribute("aria-disabled","true"),this.removeAttribute("tabindex"),this.blur()},r.render=function(){return this._template?yn(yG(),yF(this._template)):yn(yQ())},r.handleClick=function(){},v(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?this._disable():this._enable()}},{key:"ariaLabel",get:function(){return yM(this,$)[$]},set:function(e){yM(this,$)[$]=e}}]),t}(yw),G=(K=(W=o(U,[[V,4,"disabled"],[H,1,"ariaLabel"]],[j],yw)).e)[0],Q=K[1],e.Button=(Z=W.c)[0],z=Z[1],q);var yZ=pC(yK()),yY=function(e){return e},yJ=function(){return document.createComment("")},yX=function(e,t,r){var n=e._$AA.parentNode,i=void 0===t?e._$AB:t._$AA;if(void 0===r)r=new yp(n.insertBefore(yJ(),i),n.insertBefore(yJ(),i),e,e.options);else{var a,o,l=r._$AB.nextSibling,s=r._$AM,u=s!==e;if(u&&(null==(a=r._$AQ)||a.call(r,e),r._$AM=e,void 0!==r._$AP&&(o=e._$AU)!==s._$AU&&r._$AP(o)),l!==i||u)for(var c=r._$AA;c!==l;){var h=yY(c).nextSibling;yY(n).insertBefore(c,i),c=h}}return r},y0=function(e,t,r){return void 0===r&&(r=e),e._$AI(t,r),e},y1={},y2=function(e){e._$AR(),e._$AA.remove()},y5=function(e,t){var r=e._$AN;if(void 0===r)return!1;var n=!0,i=!1,a=void 0;try{for(var o,l,s=r[Symbol.iterator]();!(n=(l=s.next()).done);n=!0){var u=l.value;null==(o=u._$AO)||o.call(u,t,!1),y5(u,t)}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return!0},y3=function(e){var t,r;do{if(void 0===(t=e._$AM))break;(r=t._$AN).delete(e),e=t}while(0===(null==r?void 0:r.size))},y4=function(e){for(var t;t=e._$AM;e=t){var r=t._$AN;if(void 0===r)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),y6(t)}};function y8(e){void 0!==this._$AN?(y3(this),this._$AM=e,y4(this)):this._$AM=e}function y7(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=0);var n=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(t)if(Array.isArray(n))for(var a=r;a<n.length;a++)y5(n[a],!1),y3(n[a]);else null!=n&&(y5(n,!1),y3(n));else y5(this,e)}var y6=function(e){2==e.type&&(null!=e._$AP||(e._$AP=y7),null!=e._$AQ||(e._$AQ=y8))},y9=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e._$AN=void 0,e}return i(t,e),v(t,[{key:"_$AT",value:function(t,r,n){e.prototype._$AT.call(this,t,r,n),y4(this),this.isConnected=t._$AU}},{key:"_$AO",value:function(e,t){var r,n;void 0===t&&(t=!0),e!==this.isConnected&&(this.isConnected=e,e?null==(r=this.reconnected)||r.call(this):null==(n=this.disconnected)||n.call(this)),t&&(y5(this,e),y3(this))}},{key:"setValue",value:function(e){if(void 0===this._$Ct.strings)this._$Ct._$AI(e,this);else{var t=m(this._$Ct._$AH);t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}},{key:"disconnected",value:function(){}},{key:"reconnected",value:function(){}}]),t}(yD),fe=function(){return new ft},ft=function e(){y(this,e)},fr=new WeakMap,fn=yI(function(e){function t(){return y(this,t),p(this,t,arguments)}return i(t,e),v(t,[{key:"render",value:function(e){return ya}},{key:"update",value:function(e,t){var r,n=b(t,1)[0],i=n!==this.G;return i&&void 0!==this.G&&this.rt(void 0),(i||this.lt!==this.ct)&&(this.G=n,this.ht=null==(r=e.options)?void 0:r.host,this.rt(this.ct=e.element)),ya}},{key:"rt",value:function(e){if(this.isConnected||(e=void 0),"function"==typeof this.G){var t,r=null!=(t=this.ht)?t:self,n=fr.get(r);void 0===n&&(n=new WeakMap,fr.set(r,n)),void 0!==n.get(this.G)&&this.G.call(this.ht,void 0),n.set(this.G,e),void 0!==e&&this.G.call(this.ht,e)}else this.G.value=e}},{key:"lt",get:function(){var e,t,r;return"function"==typeof this.G?null==(t=fr.get(null!=(e=this.ht)?e:self))?void 0:t.get(this.G):null==(r=this.G)?void 0:r.value}},{key:"disconnected",value:function(){this.lt===this.ct&&this.rt(void 0)}},{key:"reconnected",value:function(){this.rt(this.ct)}}]),t}(y9));function fi(){var e=a(["",""]);return fi=function(){return e},e}function fa(){var e=a(["<a ",' href="','" target="','" @keydown="','" @click="','">',"</a>"]);return fa=function(){return e},e}function fo(){var e=a(["<slot></slot>"]);return fo=function(){return e},e}et=yT("theoplayer-link-button"),en=yS({reflect:!0,type:Boolean,attribute:yq.DISABLED}),ei=yL(),ea=yL(),e.LinkButton=void 0,new(ee=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[yZ],er(),t}return i(t,e),t}(l),Y=yN("____private_href_1"),J=yN("____private_target_2"),X=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,Y,{writable:!0,value:void 0}),Object.defineProperty(r,J,{writable:!0,value:void 0}),es(r),r._disabled=!1,r._linkRef=fe(),yM(r,Y)[Y]=eo(r,""),yM(r,J)[J]=el(r,""),r._onKeyDown=function(e){if(!e.metaKey&&!e.altKey)if(e.keyCode!==yj.SPACE)return;else{var t;e.preventDefault(),null==(t=r._linkRef.value)||t.click()}},r._onClick=function(){r.disabled||r.handleClick()},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","button"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute(yq.ARIA_LIVE)||this.setAttribute(yq.ARIA_LIVE,"polite"),this.hasAttribute(yq.DISABLED)||this._enable()},r._enable=function(){this.setAttribute("aria-disabled","false"),this.setAttribute("tabindex","0")},r._disable=function(){this.setAttribute("aria-disabled","true"),this.removeAttribute("tabindex"),this.blur()},r.render=function(){return this._template?yn(fi(),yF(this._template)):yn(fa(),fn(this._linkRef),this.href,this.target,this._onKeyDown,this._onClick,this.renderLinkContent())},r.renderLinkContent=function(){return yn(fo())},r.handleClick=function(){},v(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?this._disable():this._enable()}},{key:"href",get:function(){return yM(this,Y)[Y]},set:function(e){yM(this,Y)[Y]=e}},{key:"target",get:function(){return yM(this,J)[J]},set:function(e){yM(this,J)[J]=e}}]),t}(yw),eo=(ec=(eu=o(X,[[en,4,"disabled"],[ei,1,"href"],[ea,1,"target"]],[et],yw)).e)[0],el=ec[1],es=ec[2],e.LinkButton=(eh=eu.c)[0],er=eh[1],ee);var fl=function(e){function t(e){var r;if(y(this,t),(r=p(this,t,[e])).it=ya,2!==e.type)throw Error(r.constructor.directiveName+"() can only be used in child bindings");return r}return i(t,e),v(t,[{key:"render",value:function(e){if(e===ya||null==e)return this._t=void 0,this.it=e;if(e===yi)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;var t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}]),t}(yD);fl.directiveName="unsafeHTML",fl.resultType=1;var fs=function(e){function t(){return y(this,t),p(this,t,arguments)}return i(t,e),t}(fl);fs.directiveName="unsafeSVG",fs.resultType=2;var fu=yI(fs);function fc(){var e=a([":host{--theoplayer-icon-color:var(--theoplayer-play-button-icon-color,unset);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}:host(:not([ended])) [part=replay-icon],:host(:not([paused])) [part=play-icon],:host([ended]) [part=pause-icon],:host([ended]) [part=play-icon],:host([paused]) [part=pause-icon]{display:none!important}"]);return fc=function(){return e},e}var fh=pC(fc());function fd(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=g(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function fp(){var e=a([":host{display:contents}::slotted(:not([no-auto-hide])),slot{opacity:inherit}"]);return fp=function(){return e},e}var fy=pC(fp());function ff(){var e=a(["<slot></slot>"]);return ff=function(){return e},e}function fv(){}function f_(e){return e.nodeType===Node.ELEMENT_NODE}function fg(e){return T(e,HTMLElement)}ey=yT("theoplayer-slot-container"),e.SlotContainer=void 0,new(ep=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[fy],ef(),t}return i(t,e),t}(l),ed=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return yn(ff())},t}(yw),e.SlotContainer=(ev=o(ed,[],[ey],yw).c)[0],ef=ev[1],ep);var fb="function"==typeof Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},fm="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){return Array.prototype.slice.call(e)},fk="function"==typeof Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r,e))return e[r]},fw="function"==typeof Array.prototype.findIndex?function(e,t){return e.findIndex(t)}:function(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r,e))return r;return -1},fx="function"==typeof String.prototype.startsWith?function(e,t){return e.startsWith(t)}:function(e,t){return e.substring(0,t.length)===t};function fT(e,t,r){r?e.setAttribute(t,""):e.removeAttribute(t)}function fE(e){if(e.shadowRoot)return e.shadowRoot.children;if("slot"===e.localName.toLowerCase()){var t=e.assignedNodes();if(t.length>0)return t.filter(f_)}return fg(e)?e.children:[]}function fA(e){for(var t,r=[],n=fd(e.assignedNodes({flatten:!0}));!(t=n()).done;){var i=t.value;f_(i)&&(r.push(i),"theoplayer-slot-container"===i.nodeName.toLowerCase())&&r.push.apply(r,[].concat(fm(i.children)))}return r}function fS(e){var t=[];return function e(t,r){if(fg(t)&&"none"!==getComputedStyle(t).display){if(t.hasAttribute("tabindex")&&Number(t.getAttribute("tabindex"))>=0)return void r.push(t);switch(t.tagName.toLowerCase()){case"button":case"input":case"textarea":case"select":case"details":r.push(t);break;case"a":t.href&&r.push(t);break;default:for(var n=fE(t),i=0;i<n.length;i++)e(n[i],r)}}}(e,t),t}function fL(e){var t=e.nodeName.toLowerCase();if(t.indexOf("-")>=0)if(!customElements.get(t))return customElements.whenDefined(t);else customElements.upgrade(e)}function fC(e,t){if(!e.closest)return null;var r,n=e.closest(t);if(n)return n;var i=null==e.getRootNode||null==(r=e.getRootNode.call(e))?void 0:r.host;return i?fC(i,t):null}var fP="theoplayerUiObservedProperties";function fR(e){return fP in e&&fb(e[fP])}var fO=function(e){return function(t,r){Object.defineProperty(t.prototype,fP,{value:e})}};function fM(e,t,r){return u(function(){var n;return x(this,function(i){switch(i.label){case 0:if(t.contains(e))return[2];if(!(e.nodeName.indexOf("-")>=0&&!fR(e)))return[3,3];return[4,Promise.resolve()];case 1:return i.sent(),[4,customElements.whenDefined(e.nodeName.toLowerCase())];case 2:i.sent(),customElements.upgrade(e),i.label=3;case 3:if(fR(e)&&r(e),!((n=fE(e)).length>0))return[3,5];return[4,Promise.all(fm(n).map(function(e){return fM(e,t,r)}))];case 4:i.sent(),i.label=5;case 5:return[2]}})})()}function fB(e,t){try{var r=new Intl.DurationFormat(e,{style:t}),n=new Intl.DurationFormat(e,{style:t,secondsDisplay:"always"}).format({seconds:0});return function(e){return 0===e.hours&&0===e.minutes&&0===e.seconds?n:r.format(e)}}catch(e){return"narrow"===t?fI:fN}}function fN(e){var t=e.hours,r=e.minutes,n=e.seconds,i="";return 0!==t&&(i+=t+" hour"+(1===t?"":"s")),0!==r&&(""!==i&&(i+=", "),i+=r+" minute"+(1===r?"":"s")),(0!==n||""===i)&&(""!==i&&(i+=", "),i+=n+" second"+(1===n?"":"s")),i}function fI(e){var t=e.hours,r=e.minutes,n=e.seconds,i="";return 0!==t&&(i+=""+t+"h"),0!==r&&(""!==i&&(i+=" "),i+=""+r+"m"),(0!==n||""===i)&&(""!==i&&(i+=" "),i+=""+n+"s"),i}function fD(e){try{var t=new Intl.NumberFormat(e,{style:"percent"});return function(e){return t.format(e)}}catch(e){return fF}}function fF(e){return""+Math.round(100*e)+"%"}function f$(e){try{var t={style:"unit",unitDisplay:"narrow"},n=new Intl.NumberFormat(e,r({},t,{unit:"kilobit-per-second",maximumFractionDigits:0})),i=new Intl.NumberFormat(e,r({},t,{unit:"megabit-per-second",minimumSignificantDigits:2,maximumFractionDigits:1,roundingPriority:"lessPrecision"}));return function(e){return e>1e6?i.format(e/1e6):n.format(e/1e3)}}catch(e){return fU}}function fU(e){return e>1e7?""+(e/1e6).toFixed(0)+"Mb/s":e>1e6?""+(e/1e6).toFixed(1)+"Mb/s":""+(e/1e3).toFixed(0)+"kb/s"}function fq(e){try{var t=new Intl.DisplayNames([e,"en"],{type:"language",fallback:"none"});return function(e){try{return t.of(e)}catch(e){return}}}catch(e){return function(e){}}}var fj={playAria:"play",pauseAria:"pause",replayAria:"replay",muteAria:"mute",unmuteAria:"unmute",volumeAria:"volume",seekAria:"seek",seekForwardAria:function(e){return"seek forward by "+e},seekBackwardAria:function(e){return"seek backward by "+e},live:"LIVE",seekToLiveAria:"seek to live",fullscreenAria:"enter fullscreen",fullscreenExitAria:"exit fullscreen",vrAria:"watch in VR",vrExitAria:"stop watching in VR",vrUnavailableAria:"no VR capable device found",airplayAria:"start playing on AirPlay",airplayConnectedAria:"stop playing on AirPlay",chromecastAria:"start casting to Chromecast",chromecastConnectedAria:"stop casting to Chromecast",chromecastHeading:"Playing on",chromecastDefaultReceiverName:"Chromecast",timeOfTotalAria:function(e,t){return e+" of "+t},playbackTimeAria:"playback time",unknownTimeAria:"video not loaded, unknown time",adText:"Ad",adBreakText:function(e,t){return"Ad "+e+" of "+t},adClickThroughText:"Visit Advertiser",adCountdownText:function(e){return"Content will resume in "+e},adSkipButtonText:"Skip Ad",adSkipCountdownText:function(e){return"Skip in "+e},liveStreamLoading:"Loading...",liveStreamOffline:"The live stream hasn't started yet",closeMenuAria:"close menu",openLanguageMenuAria:"open language menu",languageMenuHeading:"Language",audioMenuHeading:"Audio",subtitleMenuHeading:"Subtitles",subtitleOff:"Off",openPlaybackRateMenuAria:"open playback speed menu",playbackRateMenuHeading:"Playback speed",formatPlaybackRate:function(e){return 1===e?"Normal":""+e+"x"},openSettingsMenuAria:"open settings menu",settingsMenuHeading:"Settings",qualityMenuHeading:"Quality",textTrackStyleMenuHeading:"Subtitle options",textTrackStyleFontFamily:"Font family",textTrackStyleFontColor:"Font color",textTrackStyleFontOpacity:"Font opacity",textTrackStyleFontSize:"Font size",textTrackStyleBackgroundColor:"Background color",textTrackStyleBackgroundOpacity:"Background opacity",textTrackStyleWindowColor:"Window color",textTrackStyleWindowOpacity:"Window opacity",textTrackStyleEdgeStyle:"Character edge style",textTrackStyleDefaultLabel:"Default",textTrackStyleCustomLabel:"Custom",textTrackStyleResetLabel:"Reset",fontFamilyLabels:{"Monospace Serif":"Monospace Serif","Proportional Serif":"Proportional Serif","Monospace Sans":"Monospace Sans","Proportional Sans":"Proportional Sans"},colorLabels:{White:"White",Yellow:"Yellow",Green:"Green",Cyan:"Cyan",Blue:"Blue",Magenta:"Magenta",Red:"Red",Black:"Black"},edgeStyleLabels:{none:"None",dropshadow:"Drop shadow",raised:"Raised",depressed:"Depressed",uniform:"Uniform"},automaticQualityLabel:"Automatic",unknownQualityLabel:"Unknown",highQualityLabel:"High Quality",lowQualityLabel:"Low Quality",errorHeading:"An error occurred",openBadNetworkModeMenuAria:"open bad network mode menu",formatDuration:fB("en","long"),formatNarrowDuration:fB("en","narrow"),formatRemainingDuration:function(e){return""+e+" remaining"},formatPercentage:fD("en"),formatBandwidth:f$("en"),formatLanguage:fq("en")},fz={};function fV(e){var t;return null!=(t=fz[e])?t:fj}function fH(){var e=a(['<span part="play-icon"><slot name="play-icon">','</slot></span><span part="pause-icon"><slot name="pause-icon">','</slot></span><span part="replay-icon"><slot name="replay-icon">',"</slot></span>"]);return fH=function(){return e},e}var fG=["seeking","seeked","ended","emptied","sourcechange"];function fQ(){var e=a([":host(:not([volume-level=high])) [part=high-icon],:host(:not([volume-level=low])) [part=low-icon],:host(:not([volume-level=off])) [part=off-icon]{display:none!important}"]);return fQ=function(){return e},e}ew=yT("theoplayer-play-button"),ex=fO(["player","lang"]),eA=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.PAUSED}),eS=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.ENDED}),eL=yS({reflect:!0,type:String,attribute:yq.LANG}),e.PlayButton=void 0,new(ek=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[fh]),eT(),r}return i(r,t),r}(l),e_=yN("____private_paused_1"),eg=yN("____private_ended_2"),eb=yN("____private_lang_3"),em=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,e_,{writable:!0,value:void 0}),Object.defineProperty(t,eg,{writable:!0,value:void 0}),Object.defineProperty(t,eb,{writable:!0,value:void 0}),yM(t,e_)[e_]=(eO(t),eC(t,!1)),yM(t,eg)[eg]=eP(t,!1),yM(t,eb)[eb]=eR(t,""),t._onPlay=function(){t.paused=!1,t._updateEnded()},t._onPause=function(){t.paused=!0,t._updateEnded()},t._updateFromPlayer=function(){var e,r;t.paused=null==(e=null==(r=t._player)?void 0:r.paused)||e,t._updateEnded(),t._updateDisabled()},t._updateDisabled=function(){var e;t.disabled=(null==(e=t._player)?void 0:e.source)===void 0},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer(),this._updateAriaLabel()},r._updateEnded=function(){var e,t;this.ended=null!=(e=null==(t=this._player)?void 0:t.ended)&&e},r.handleClick=function(){if(void 0!==this._player&&void 0!==this._player.source){this._player.paused?this._player.play():this._player.pause();var e=this._player.vr;void 0!==e&&"unavailable"!==e.state&&(e.useDeviceMotionControls=!0)}},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel=this.ended?e.replayAria:this.paused?e.playAria:e.pauseAria},r.render=function(){return yn(fH(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90" width="24" height="24"><path d="M77.504 50.868c-7.236 5.156-16.584 10.914-28.04 17.269-11.044 6.207-20.729 11.081-29.053 14.625l-9.224 3.43c-.581-2.493-1.125-6.188-1.632-11.08-1.143-9.75-1.715-20.513-1.715-32.288 0-10.781.777-20.858 2.333-30.234l2.251-10.772 9.787 3.29c8.476 3.375 17.663 8.166 27.563 14.373 10.48 6.562 19.472 12.805 26.97 18.73 3.749 2.982 6.449 5.279 8.099 6.891l-7.339 5.766"/></svg>\n'),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M2.108 1.914Q2.108.5 3.522.5h4.171q1.415 0 1.415 1.414v20.172q0 1.414-1.415 1.414H3.522q-1.414 0-1.414-1.414zm12.784 0Q14.892.5 16.307.5h4.171q1.414 0 1.414 1.414v20.172q0 1.414-1.414 1.414h-4.171q-1.415 0-1.415-1.414z"/></svg>\n'),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M12 23q-3.725 0-6.438-2.375Q2.85 18.25 2.275 14.7q-.1-.625.325-1.088.425-.462 1.125-.462.6 0 1.087.437.488.438.663 1.113.5 2.225 2.313 3.688Q9.6 19.85 12 19.85q2.8 0 4.75-1.963 1.95-1.962 1.95-4.762t-1.962-4.75q-1.963-1.95-4.763-1.95H11.8l.525.525q.375.375.363.85-.013.475-.363.825t-.85.363q-.5.012-.85-.338l-2.7-2.7q-.225-.225-.337-.513-.113-.287-.113-.587t.113-.588q.112-.287.337-.512L10.6 1.075q.35-.35.875-.363.525-.012.875.363.35.35.338.85-.013.5-.363.85l-.5.5h.15q2.05 0 3.85.775 1.8.775 3.15 2.112Q20.325 7.5 21.1 9.287q.775 1.788.775 3.838t-.775 3.85q-.775 1.8-2.112 3.137-1.338 1.338-3.138 2.113Q14.05 23 12 23Z"/></svg>\n'))},v(t,[{key:"paused",get:function(){return yM(this,e_)[e_]},set:function(e){yM(this,e_)[e_]=e}},{key:"ended",get:function(){return yM(this,eg)[eg]},set:function(e){yM(this,eg)[eg]=e}},{key:"lang",get:function(){return yM(this,eb)[eb]},set:function(e){yM(this,eb)[eb]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener("play",this._onPlay),this._player.removeEventListener("pause",this._onPause),this._player.removeEventListener(fG,this._updateFromPlayer)),this._player=e,this._updateFromPlayer(),void 0!==this._player&&(this._player.addEventListener("play",this._onPlay),this._player.addEventListener("pause",this._onPause),this._player.addEventListener(fG,this._updateFromPlayer)))}}]),t}(eE=e.Button),eC=(eB=(eM=o(em,[[eA,1,"paused"],[eS,1,"ended"],[eL,1,"lang"]],[ew,ex],eE)).e)[0],eP=eB[1],eR=eB[2],eO=eB[3],e.PlayButton=(eN=eM.c)[0],eT=eN[1],ek);var fW=pC(fQ());function fK(){var e=a(['<span part="off-icon"><slot name="off-icon">','</slot></span><span part="low-icon"><slot name="low-icon">','</slot></span><span part="high-icon"><slot name="high-icon">',"</slot></span>"]);return fK=function(){return e},e}var fZ=["volumechange"];function fY(){var e=a([':host{position:relative}:host([seek-offset^="-"]) [part=icon]{-webkit-transform:scaleX(-1);transform:scaleX(-1)}[part=offset]{color:#fff;color:var(--theoplayer-icon-color,#fff);font-size:7.2px;font-size:var(--theoplayer-seek-button-font-size,calc(var(--theoplayer-button-icon-height, var(--theoplayer-control-height, 24px))*.3));left:50%;position:absolute;top:52.5%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}']);return fY=function(){return e},e}eU=yT("theoplayer-mute-button"),eq=fO(["player","lang"]),eV=yS({reflect:!0,state:!0,type:String,attribute:yq.VOLUME_LEVEL}),eH=yS({reflect:!0,type:String,attribute:yq.LANG}),eG=yS({reflect:!1,attribute:!1}),e.MuteButton=void 0,new(e$=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[fW]),ej(),r}return i(r,t),r}(l),eI=yN("____private_volumeLevel_1"),eD=yN("____private_lang_2"),eF=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,eI,{writable:!0,value:void 0}),Object.defineProperty(t,eD,{writable:!0,value:void 0}),yM(t,eI)[eI]=(eK(t),eQ(t,"off")),yM(t,eD)[eD]=eW(t,""),t._updateFromPlayer=function(){if(void 0!==t._player){var e=t._player.volume;t._player.muted?t.volumeLevel="off":e<.5?t.volumeLevel="low":t.volumeLevel="high"}else t.volumeLevel="off"},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer(),this._updateAriaLabel()},r.handleClick=function(){void 0!==this._player&&(this._player.muted=!this._player.muted,this._updateFromPlayer())},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel="off"===this.volumeLevel?e.unmuteAria:e.muteAria},r.render=function(){return yn(fK(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="m19.225 22.55-2.25-2.275q-.175.1-.35.187-.175.088-.375.163-.525.2-1.075-.138-.55-.337-.55-1.062 0-.225.088-.425.087-.2.287-.325.05-.025.138-.088.087-.062.137-.087l-2.65-2.7v2.425q0 1.05-.962 1.463-.963.412-1.713-.338l-3.5-3.5H3.525q-.65 0-1.112-.463-.463-.462-.463-1.112v-4.55q0-.65.463-1.113.462-.462 1.112-.462H5.2L1.35 4.2Q1 3.85 1 3.375t.35-.825q.35-.35.85-.35t.85.35L20.9 20.9q.35.35.35.825t-.35.825q-.35.35-.838.35-.487 0-.837-.35ZM16.25 3.325q2.6 1.1 4.188 3.425 1.587 2.325 1.587 5.225 0 1.425-.4 2.7-.4 1.275-1.125 2.4L18.775 15.3q.425-.75.638-1.588.212-.837.212-1.737 0-2.125-1.175-3.875t-3.1-2.575q-.325-.125-.525-.4t-.2-.625q0-.65.525-1.038.525-.387 1.1-.137Zm.925 10.35-2.55-2.6V7.65q1.275.6 2.088 1.762.812 1.163.812 2.588 0 .45-.087.875-.088.425-.263.8ZM12.625 9l-3.45-3.575.775-.775q.75-.75 1.713-.338.962.413.962 1.463Z"/></svg>\n'),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M3.55 15.85q-.65 0-1.112-.463-.463-.462-.463-1.112v-4.55q0-.65.463-1.113Q2.9 8.15 3.55 8.15h2.925l3.5-3.5q.75-.75 1.713-.338.962.413.962 1.463v12.45q0 1.05-.962 1.463-.963.412-1.713-.338l-3.5-3.5Zm11.1.45V7.65q1.3.625 2.088 1.8.787 1.175.787 2.55 0 1.375-.787 2.525-.788 1.15-2.088 1.775Z"/></svg>\n'),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M16.275 20.625q-.575.25-1.1-.15-.525-.4-.525-1.05 0-.35.188-.613.187-.262.512-.387 1.925-.825 3.113-2.575 1.187-1.75 1.187-3.875T18.463 8.1q-1.188-1.75-3.113-2.575-.325-.125-.512-.4-.188-.275-.188-.625 0-.65.525-1.038.525-.387 1.1-.137 2.6 1.1 4.175 3.425 1.575 2.325 1.575 5.225 0 2.9-1.575 5.225-1.575 2.325-4.175 3.425ZM3.55 15.85q-.65 0-1.112-.463-.463-.462-.463-1.112v-4.55q0-.65.463-1.113Q2.9 8.15 3.55 8.15h2.925l3.5-3.5q.75-.75 1.713-.338.962.413.962 1.463v12.45q0 1.05-.962 1.463-.963.412-1.713-.338l-3.5-3.5Zm11.1.45V7.65q1.3.625 2.088 1.8.787 1.175.787 2.55 0 1.375-.787 2.525-.788 1.15-2.088 1.775Z"/></svg>\n'))},v(t,[{key:"volumeLevel",get:function(){return yM(this,eI)[eI]},set:function(e){yM(this,eI)[eI]=e}},{key:"lang",get:function(){return yM(this,eD)[eD]},set:function(e){yM(this,eD)[eD]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(fZ,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(fZ,this._updateFromPlayer))}}]),t}(ez=e.Button),eQ=(eY=(eZ=o(eF,[[eV,1,"volumeLevel"],[eH,1,"lang"],[eG,4,"player"]],[eU,eq],ez)).e)[0],eW=eY[1],eK=eY[2],e.MuteButton=(eJ=eZ.c)[0],ej=eJ[1],e$);var fJ=pC(fY());function fX(e){return!isNaN(e)&&isFinite(e)}function f0(e,t,r){void 0===t&&(t=0);var n,i=e<0||r&&0===e,a=Math.floor(t/60%60),o=Math.floor(t/3600);if(fX(e=Math.abs(e))){var l=Math.floor(e%60),s=Math.floor(e/60%60),u=Math.floor(e/3600),c=u>0||o>0;n=[c?""+u:"",(c||a>=0)&&s<10?"0"+s:""+s,l<10?"0"+l:""+l]}else n=[o>0?"--":"","--","--"];return(i?"-":"")+n.filter(function(e){return""!==e}).join(":")}function f1(e){return{hours:Math.floor(e/3600),minutes:Math.floor(e/60)%60,seconds:Math.floor(e%60)}}function f2(e,t,r){if(!fX(t))return"";var n=t<0||r&&0===t,i=e.formatDuration(f1(Math.abs(t)));return n?e.formatRemainingDuration(i):i}function f5(){var e=a(['<span part="icon"><slot name="icon">','</slot></span><span part="offset">',"</span>"]);return f5=function(){return e},e}function f3(){var e=a([":host{background:transparent;background:var(--theoplayer-control-background,transparent);-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;color:var(--theoplayer-text-color,#fff);display:inline-block;font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));overflow:hidden;padding:10px;padding:var(--theoplayer-control-padding,10px);pointer-events:auto;text-align:center;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}"]);return f3=function(){return e},e}e5=yT("theoplayer-seek-button"),e3=fO(["player","lang"]),e7=yS({reflect:!0,type:Number,attribute:yq.SEEK_OFFSET}),e6=yS({reflect:!0,type:String,attribute:yq.LANG}),e9=yS({reflect:!1,attribute:!1}),e.SeekButton=void 0,new(e2=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[fJ]),e4(),r}return i(r,t),r}(l),eX=yN("____private_seekOffset_1"),e0=yN("____private_lang_2"),e1=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,eX,{writable:!0,value:void 0}),Object.defineProperty(t,e0,{writable:!0,value:void 0}),yM(t,eX)[eX]=(tr(t),te(t,10)),yM(t,e0)[e0]=tt(t,""),t}i(t,e);var r=t.prototype;return r.handleClick=function(){if(void 0!==this._player){var e=this._player.duration;isNaN(e)||(this._player.currentTime=Math.max(0,Math.min(e,this._player.currentTime+this.seekOffset)))}},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang),t=this.seekOffset,r=e.formatDuration(f1(Math.abs(t)));this.ariaLabel=t>=0?e.seekForwardAria(r):e.seekBackwardAria(r)},r.render=function(){return yn(f5(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M12 22.25q-1.925 0-3.6-.738-1.675-.737-2.912-1.974Q4.25 18.3 3.525 16.625q-.725-1.675-.725-3.6 0-1.9.725-3.575.725-1.675 1.963-2.925 1.237-1.25 2.925-1.975Q10.1 3.825 12 3.825h.15l-.7-.7q-.3-.325-.313-.788-.012-.462.313-.812.35-.35.813-.35.462 0 .812.325l2.65 2.675q.325.325.325.8 0 .475-.325.8l-2.65 2.65q-.325.325-.8.325-.475 0-.825-.35-.3-.325-.3-.8 0-.475.3-.8l.7-.7H12q-2.9 0-4.912 2.012-2.013 2.013-2.013 4.913 0 2.9 2.013 4.925Q9.1 19.975 12 19.975q2.6 0 4.55-1.687 1.95-1.688 2.325-4.238.05-.45.4-.738.35-.287.8-.287.45 0 .788.275.337.275.287.7-.375 3.55-2.987 5.9Q15.55 22.25 12 22.25Z"/></svg>\n'),String(Math.abs(this.seekOffset)))},v(t,[{key:"seekOffset",get:function(){return yM(this,eX)[eX]},set:function(e){yM(this,eX)[eX]=e}},{key:"lang",get:function(){return yM(this,e0)[e0]},set:function(e){yM(this,e0)[e0]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player=e}}]),t}(e8=e.Button),te=(ti=(tn=o(e1,[[e7,1,"seekOffset"],[e6,1,"lang"],[e9,4,"player"]],[e5,e3],e8)).e)[0],tt=ti[1],tr=ti[2],e.SeekButton=(ta=tn.c)[0],e4=ta[1],e2);var f4=pC(f3());function f8(){var e=a(["<span>","</span>"]);return f8=function(){return e},e}var f7=["timeupdate","seeking","seeked","durationchange"];function f6(){var e=a(["<span>","</span>"]);return f6=function(){return e},e}tv=yT("theoplayer-time-display"),t_=fO(["player","streamType","lang"]),tb=yS({reflect:!1,attribute:!1}),tm=yS({reflect:!0,type:Boolean,attribute:yq.REMAINING}),tk=yS({reflect:!0,type:Boolean,attribute:yq.REMAINING_WHEN_LIVE}),tw=yS({reflect:!0,type:Boolean,attribute:yq.SHOW_DURATION}),tx=yS({reflect:!0,type:String,attribute:yq.STREAM_TYPE}),tT=yS({reflect:!0,type:String,attribute:yq.LANG}),tE=yL(),tA=yL(),tS=yL(),e.TimeDisplay=void 0,new(tf=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[f4],tg(),t}return i(t,e),t}(l),to=yN("____private_remaining_1"),tl=yN("____private_remainingWhenLive_2"),ts=yN("____private_showDuration_3"),tu=yN("____private_streamType_4"),tc=yN("____private_lang_5"),th=yN("____private__currentTime_6"),td=yN("____private__duration_7"),tp=yN("____private__endTime_8"),ty=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,to,{writable:!0,value:void 0}),Object.defineProperty(t,tl,{writable:!0,value:void 0}),Object.defineProperty(t,ts,{writable:!0,value:void 0}),Object.defineProperty(t,tu,{writable:!0,value:void 0}),Object.defineProperty(t,tc,{writable:!0,value:void 0}),Object.defineProperty(t,th,{writable:!0,value:void 0}),Object.defineProperty(t,td,{writable:!0,value:void 0}),Object.defineProperty(t,tp,{writable:!0,value:void 0}),yM(t,to)[to]=(tI(t),tL(t,!1)),yM(t,tl)[tl]=tC(t,!1),yM(t,ts)[ts]=tP(t,!1),yM(t,tu)[tu]=tR(t,"vod"),yM(t,tc)[tc]=tO(t,""),yM(t,th)[th]=tM(t,0),yM(t,td)[td]=tB(t,NaN),yM(t,tp)[tp]=tN(t,0),t._updateFromPlayer=function(){var e,r=t._player?t._player.currentTime:0,n=t._player?t._player.duration:NaN,i=null==(e=t._player)?void 0:e.seekable,a=isFinite(n)?n:i&&i.length>0?i.end(0):NaN;t._currentTime=r,t._duration=n,t._endTime=a},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","progressbar"),this.hasAttribute(yq.ARIA_LIVE)||this.setAttribute(yq.ARIA_LIVE,"off")},r.render=function(){var e,t,r=fV(this.lang),n=this.remaining||this.remainingWhenLive&&"vod"!==this.streamType,i=this._currentTime,a=this._endTime;return n&&(i=-((this._endTime||0)-i)),e=this.showDuration&&!n?f0(i,a,n)+" / "+f0(a):f0(i,a,n),t=isNaN(this._duration)?r.unknownTimeAria:this.showDuration?r.timeOfTotalAria(f2(r,i,n),f2(r,a)):f2(r,i,n),this.setAttribute("aria-label",r.playbackTimeAria),this.setAttribute("aria-valuetext",t),yn(f8(),e)},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(f7,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(f7,this._updateFromPlayer))}},{key:"remaining",get:function(){return yM(this,to)[to]},set:function(e){yM(this,to)[to]=e}},{key:"remainingWhenLive",get:function(){return yM(this,tl)[tl]},set:function(e){yM(this,tl)[tl]=e}},{key:"showDuration",get:function(){return yM(this,ts)[ts]},set:function(e){yM(this,ts)[ts]=e}},{key:"streamType",get:function(){return yM(this,tu)[tu]},set:function(e){yM(this,tu)[tu]=e}},{key:"lang",get:function(){return yM(this,tc)[tc]},set:function(e){yM(this,tc)[tc]=e}},{key:"_currentTime",get:function(){return yM(this,th)[th]},set:function(e){yM(this,th)[th]=e}},{key:"_duration",get:function(){return yM(this,td)[td]},set:function(e){yM(this,td)[td]=e}},{key:"_endTime",get:function(){return yM(this,tp)[tp]},set:function(e){yM(this,tp)[tp]=e}}]),t}(yw),tL=(tF=(tD=o(ty,[[tb,4,"player"],[tm,1,"remaining"],[tk,1,"remainingWhenLive"],[tw,1,"showDuration"],[tx,1,"streamType"],[tT,1,"lang"],[tE,1,"_currentTime"],[tA,1,"_duration"],[tS,1,"_endTime"]],[tv,t_],yw)).e)[0],tC=tF[1],tP=tF[2],tR=tF[3],tO=tF[4],tM=tF[5],tB=tF[6],tN=tF[7],tI=tF[8],e.TimeDisplay=(t$=tD.c)[0],tg=t$[1],tf);var f9=["durationchange"];tz=yT("theoplayer-duration-display"),tV=fO(["player"]),tG=yS({reflect:!1,attribute:!1}),tQ=yL(),e.DurationDisplay=void 0,new(tj=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[f4],tH(),t}return i(t,e),t}(l),tU=yN("____private_duration_1"),tq=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tU,{writable:!0,value:void 0}),yM(t,tU)[tU]=(tK(t),tW(t,NaN)),t._updateFromPlayer=function(){t.duration=t._player?t._player.duration:NaN},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(yq.ARIA_LIVE)||this.setAttribute(yq.ARIA_LIVE,"off")},r.render=function(){return yn(f6(),f0(this.duration))},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(f9,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(f9,this._updateFromPlayer))}},{key:"duration",get:function(){return yM(this,tU)[tU]},set:function(e){yM(this,tU)[tU]=e}}]),t}(yw),tW=(tY=(tZ=o(tq,[[tG,4,"player"],[tQ,1,"duration"]],[tz,tV],yw)).e)[0],tK=tY[1],e.DurationDisplay=(tJ=tZ.c)[0],tH=tJ[1],tj);var ve=!function(){try{var e=new Event("change");return"change"===e.type}catch(e){}return!1}()?function(e,t){var r=document.createEvent("Event");return r.initEvent(e,(null==t?void 0:t.bubbles)||!1,(null==t?void 0:t.cancelable)||!1),r}:function(e,t){return new Event(e,t)},vt=!function(){try{var e=new CustomEvent("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?function(e,t){var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,(null==t?void 0:t.bubbles)||!1,(null==t?void 0:t.cancelable)||!1,null==t?void 0:t.detail),r}:function(e,t){return new CustomEvent(e,t)};tX=yT("theoplayer-radio-button"),t1=yS({reflect:!0,type:Boolean,attribute:yq.ARIA_CHECKED,converter:{fromAttribute:function(e){return null!=e&&"false"!==e},toAttribute:function(e){return String(e)}}}),t2=yS({attribute:yq.VALUE}),e.RadioButton=void 0;var vr=yN("____private_value_1"),vn=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,vr,{writable:!0,value:void 0}),t3(t),t._checked=!1,yM(t,vr)[vr]=t5(t,void 0),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){this.hasAttribute("role")||this.setAttribute("role","radio"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),e.prototype.connectedCallback.call(this)},r.handleClick=function(){this.checked=!0,this.dispatchEvent(ve("input",{bubbles:!0,composed:!0}))},r.handleChange=function(){},v(t,[{key:"checked",get:function(){return this._checked},set:function(e){this._checked!==e&&(this._checked=e,this.handleChange(),this.dispatchEvent(ve("change",{bubbles:!0})))}},{key:"value",get:function(){return yM(this,vr)[vr]},set:function(e){yM(this,vr)[vr]=e}}]),t}(t0=e.Button);t5=(t8=(t4=o(vn,[[t1,4,"checked"],[t2,1,"value"]],[tX],t0)).e)[0],t3=t8[1],e.RadioButton=(t7=t4.c)[0],(0,t7[1])();var vi=function(){function e(e,t,r,n){this.x=e,this.y=t,this.width=r,this.height=n}var t=e.prototype;return t.overlaps=function(e){return this.x<e.right&&this.right>e.x&&this.y<e.bottom&&this.bottom>e.y},t.contains=function(e){return this.x<=e.x&&e.right<=this.right&&this.y<=e.y&&e.bottom<=this.bottom},t.union=function(t){var r=Math.min(this.x,t.x),n=Math.min(this.y,t.y),i=Math.max(this.right,t.right)-r,a=Math.max(this.bottom,t.bottom)-n;return new e(r,n,i,a)},t.snapToPixels=function(){return new e(Math.round(this.x),Math.round(this.y),Math.round(this.width),Math.round(this.height))},t.clone=function(){return new e(this.x,this.y,this.width,this.height)},t.toJSON=function(){return{x:this.x,y:this.y,width:this.width,height:this.height,left:this.left,right:this.right,top:this.top,bottom:this.bottom}},e.fromRect=function(t){var r,n,i,a,o,l;return new e(null!=(r=null!=(n=t.left)?n:t.x)?r:0,null!=(i=null!=(a=t.top)?a:t.y)?i:0,null!=(o=t.width)?o:0,null!=(l=t.height)?l:0)},v(e,[{key:"left",get:function(){return this.x},set:function(e){this.x=e}},{key:"right",get:function(){return this.x+this.width},set:function(e){this.x=e-this.width}},{key:"top",get:function(){return this.y},set:function(e){this.y=e}},{key:"bottom",get:function(){return this.y+this.height},set:function(e){this.y=e-this.height}}]),e}();function va(){var e=function(){var e,t,r=document.activeElement;if(null==r)return null;for(;null!=(t=null==(e=r.shadowRoot)?void 0:e.activeElement);)r=t;return r}();return e&&e!==document.body&&fg(e)?e:null}function vo(e,t,r){var n,i,a,o=va();if(null===o)return!1;var l=vi.fromRect(e.getBoundingClientRect()).snapToPixels(),s=vi.fromRect(o.getBoundingClientRect()).snapToPixels(),u=t.map(function(e){return{child:e,rect:vi.fromRect(e.getBoundingClientRect()).snapToPixels()}}).filter(function(e){return e.rect.width>0&&e.rect.height>0});if(r===yj.LEFT||r===yj.RIGHT){var c=s.clone();r===yj.LEFT?(c.left=l.left,c.width=s.left-l.left):(c.left=s.right,c.width=l.right-s.right),0===(a=u.filter(function(e){return c.overlaps(e.rect)})).length&&(c.top=l.top,c.height=l.height,a=u.filter(function(e){return c.overlaps(e.rect)}))}else{var h=s.clone();r===yj.UP?(h.top=l.top,h.height=s.top-l.top):(h.top=s.bottom,h.height=l.bottom-s.bottom),0===(a=u.filter(function(e){return h.overlaps(e.rect)})).length&&(h.left=l.left,h.width=l.width,a=u.filter(function(e){return h.overlaps(e.rect)}))}var d=(n=a,i=function(e){var t,r,n;return t=e.rect,r=s,n=0,t.right<r.left?n+=r.left-t.right:r.right<t.left&&(n+=t.left-r.right),t.bottom<r.top?n+=r.top-t.bottom:r.bottom<t.top&&(n+=t.top-r.bottom),n},function(e,t){if(0!==e.length)return e.reduce(function(e,r){return 0>=t(e,r)?e:r})}(n,function(e,t){return i(e)-i(t)}));return void 0!==d&&(d.child.focus(),!0)}function vl(){var e=a(["<slot ",' @slotchange="','"></slot>']);return vl=function(){return e},e}t6=yT("theoplayer-radio-group"),t9=fO(["deviceType"]),re=yS({reflect:!0,type:String,attribute:yq.DEVICE_TYPE}),rt=yS({attribute:yq.VALUE}),e.RadioGroup=void 0;var vs=yN("____private_deviceType_1"),vu=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,vs,{writable:!0,value:void 0}),rn(t),t._slotRef=fe(),t._radioButtons=[],t._value=void 0,yM(t,vs)[vs]=rr(t,"desktop"),t._onSlotChange=function(){var e,r=t._slotRef.value;if(r){for(var n,i=fA(r),a=[],o=fd(i);!(n=o()).done;){var l=n.value;if(!vc(l)){var s=fL(l);s&&a.push(s)}}a.length>0&&Promise.all(a).then(t._onSlotChange,fv),t._radioButtons=i.filter(vc),t.focusedRadioButton||null==(e=t.firstRadioButton)||e.setAttribute("tabindex","0"),t.updateCheckedButton()}},t._onKeyDown=function(e){if("tv"===t.deviceType&&yz(e.keyCode)){vo(t,t._radioButtons,e.keyCode)&&(e.preventDefault(),e.stopPropagation());return}switch(e.keyCode){case yj.UP:case yj.LEFT:t._focusPrevButton()&&e.preventDefault();break;case yj.DOWN:case yj.RIGHT:t._focusNextButton()&&e.preventDefault();break;case yj.HOME:e.preventDefault(),t.setFocusedRadioButton(t.firstRadioButton);break;case yj.END:e.preventDefault(),t.setFocusedRadioButton(t.lastRadioButton)}},t._onButtonChange=function(e){var r=e.target;null!==r&&r.checked&&(t.value=r.value)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","radiogroup"),this.addEventListener("keydown",this._onKeyDown),this._onSlotChange()},r.disconnectedCallback=function(){e.prototype.disconnectedCallback.call(this),this.removeEventListener("keydown",this._onKeyDown)},r.firstUpdated=function(){this._onSlotChange()},r.createRenderRoot=function(){var t=e.prototype.createRenderRoot.call(this);return t.addEventListener("change",this._onButtonChange),t},r.allRadioButtons=function(){return this._radioButtons},r._prevRadioButton=function(e){var t=this._radioButtons.indexOf(e);return t>0?this._radioButtons[t-1]:null},r._nextRadioButton=function(e){var t=this._radioButtons.indexOf(e);return t>=0&&t<this._radioButtons.length-1?this._radioButtons[t+1]:null},r._focusPrevButton=function(){var e=this.focusedRadioButton||this.firstRadioButton;return!!e&&(e===this.firstRadioButton?this.setFocusedRadioButton(this.lastRadioButton):this.setFocusedRadioButton(this._prevRadioButton(e)),!0)},r._focusNextButton=function(){var e=this.focusedRadioButton||this.firstRadioButton;return!!e&&(e===this.lastRadioButton?this.setFocusedRadioButton(this.firstRadioButton):this.setFocusedRadioButton(this._nextRadioButton(e)),!0)},r.setFocusedRadioButton=function(e){this._unfocusAll(),e&&(e.tabIndex=0,e.focus())},r._unfocusAll=function(){for(var e,t=fd(this.allRadioButtons());!(e=t()).done;)e.value.tabIndex=-1},r.setCheckedRadioButton=function(e){for(var t,r=fd(this.allRadioButtons());!(t=r()).done;){var n=t.value;n.checked=n===e}},r.updateCheckedButton=function(){var e=this,t=this.allRadioButtons().find(function(t){return t.value==e.value});this.setCheckedRadioButton(null!=t?t:null)},r.render=function(){return yn(vl(),fn(this._slotRef),this._onSlotChange)},v(t,[{key:"deviceType",get:function(){return yM(this,vs)[vs]},set:function(e){yM(this,vs)[vs]=e}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this.updateCheckedButton(),this.dispatchEvent(ve("change",{bubbles:!0})))}},{key:"focusedRadioButton",get:function(){var e;return null!=(e=fk(this._radioButtons,function(e){return 0===e.tabIndex}))?e:null}},{key:"checkedRadioButton",get:function(){var e;return null!=(e=fk(this._radioButtons,function(e){return e.checked}))?e:null}},{key:"firstRadioButton",get:function(){var e;return null!=(e=this._radioButtons[0])?e:null}},{key:"lastRadioButton",get:function(){var e=this._radioButtons;return e.length>0?e[e.length-1]:null}}]),t}(yw);function vc(t){return T(t,e.RadioButton)}function vh(){var e=a([":host{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;color:var(--theoplayer-menu-color,#fff);display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-size:14px;font-size:var(--theoplayer-text-font-size,14px);pointer-events:none}:host([hidden]){display:none!important}[part=heading]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-align:center;-ms-flex-align:center;align-items:center;align-self:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;pointer-events:auto}[part=heading] ::slotted(span),[part=heading]>span{padding:10px;padding:var(--theoplayer-control-padding,10px);padding-left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[part=content],[part=heading]>theoplayer-menu-close-button{pointer-events:auto}[part=content]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-item-align:center;-ms-grid-row-align:center;--theoplayer-control-hover-background:var(--theoplayer-menu-control-hover-background,hsla(0,0%,100%,.3));align-self:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:10px;margin:var(--theoplayer-menu-margin,10px);max-height:100%;max-width:100%;max-width:var(--theoplayer-menu-max-width,100%);min-height:0;min-width:80%;min-width:var(--theoplayer-menu-min-width,80%);overflow-y:auto}"]);return vh=function(){return e},e}rr=(ra=(ri=o(vu,[[re,1,"deviceType"],[rt,4,"value"]],[t6,t9],yw)).e)[0],rn=ra[1],e.RadioGroup=(ro=ri.c)[0],(0,ro[1])();var vd=pC(vh()),vp="theoplayermenuclose",vy="theoplayermenuchange";function vf(){var e=a(["",""]);return vf=function(){return e},e}function vv(){var e=a(['<div part="heading"><theoplayer-menu-close-button></theoplayer-menu-close-button>','</div><div part="content" @input="','">',"</div>"]);return vv=function(){return e},e}function v_(){var e=a(['<slot name="heading"></slot>']);return v_=function(){return e},e}function vg(){var e=a(["<slot></slot>"]);return vg=function(){return e},e}function vb(){var e=a([":host{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;pointer-events:none}:host([hidden]){display:none!important}::slotted(*),:host>*{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-ms-grid-column-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;justify-self:stretch;min-height:0}"]);return vb=function(){return e},e}rc=yT("theoplayer-menu"),rd=yS({reflect:!0,type:Boolean,attribute:yq.MENU_CLOSE_ON_INPUT}),rp=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.MENU_OPENED}),e.Menu=void 0,new(ru=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vd],t.shadowRootOptions=r({},yw.shadowRootOptions,{delegatesFocus:!0}),rh(),t}return i(t,e),t}(l),rl=yN("____private_closeOnInput_1"),rs=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,rl,{writable:!0,value:void 0}),rf(r),r._menuOpened=!1,yM(r,rl)[rl]=ry(r,!1),r._onContentInput=function(){if(r.closeOnInput){var e=vt(vp,{bubbles:!0,composed:!0});r.dispatchEvent(e)}},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.menuOpened_||this.setAttribute(yq.HIDDEN,"")},r.openMenu=function(){this.menuOpened_=!0},r.closeMenu=function(){this.menuOpened_=!1},r.render=function(){return this._template?yn(vf(),yF(this._template)):yn(vv(),this.renderMenuHeading(),this._onContentInput,this.renderMenuContent())},r.renderMenuHeading=function(){return yn(v_())},r.renderMenuContent=function(){return yn(vg())},v(t,[{key:"closeOnInput",get:function(){return yM(this,rl)[rl]},set:function(e){yM(this,rl)[rl]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){if(this._menuOpened!==e){this._menuOpened=e,fT(this,yq.HIDDEN,!e);var t=vt(vy,{bubbles:!0});this.dispatchEvent(t)}}}]),t}(yw),ry=(r_=(rv=o(rs,[[rd,1,"closeOnInput"],[rp,4,"menuOpened_"]],[rc],yw)).e)[0],rf=r_[1],e.Menu=(rg=rv.c)[0],rh=rg[1],ru);var vm=pC(vb()),vk="theoplayermenutoggle";function vw(){var e=a(["",""]);return vw=function(){return e},e}function vx(){var e=a(['<slot @slotchange="','"></slot>']);return vx=function(){return e},e}function vT(t){return!!fg(t)&&(T(t,e.Menu)||T(t,e.MenuGroup))}rw=yT("theoplayer-menu-group"),rT=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.MENU_OPENED}),e.MenuGroup=void 0,new(rk=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vm],t.shadowRootOptions=r({},yw.shadowRootOptions,{delegatesFocus:!0}),rx(),t}return i(t,e),t}(l),rb=yN("____private__menuSlot_1"),rm=function(t){function r(r){var n;return Object.defineProperty(n=t.call(this)||this,rb,{writable:!0,value:void 0}),rA(n),n._menuOpened=!1,yM(n,rb)[rb]=rE(n,null),n._menus=[],n._openMenuStack=[],n._onMenuListChange=function(){for(var e,t=[].concat(fm(n.shadowRoot.children),n._menuSlot?fA(n._menuSlot):[]),r=[],i=fd(t);!(e=i()).done;){var a=e.value;if(!vT(a)){var o=fL(a);o&&r.push(o)}}r.length>0&&Promise.all(r).then(n._onMenuListChange,fv);for(var l,s=t.filter(vT),u=fd(n._menus);!(l=u()).done;){var c=l.value;0>s.indexOf(c)&&n.closeMenu(c.id)}for(var h,d=fd(s);!(h=d()).done;){var p=h.value;0>n._menus.indexOf(p)&&p.closeMenu()}n._menus=s},n._onToggleMenu=function(e){var t=e.detail.menu;if(n.getMenuById(t)){e.stopPropagation();var r=fg(e.target)?e.target:void 0;n.isMenuOpen(t)?n.closeMenu(t):n.openMenu(t,r)}},n._onCloseMenu=function(e){n.closeCurrentMenu()&&(e.preventDefault(),e.stopPropagation())},n._onMenuChange=function(t){var r=n.getCurrentMenu_();r&&r.menu===t.target&&T(r.menu,e.MenuGroup)&&!r.menu.hasCurrentMenu()&&n.closeCurrentMenu()},n._onKeyDown=function(e){!e.altKey&&yV(e.keyCode)&&n.closeCurrentMenu()&&(e.preventDefault(),e.stopPropagation())},n._template=null==r?void 0:r.template,n._template&&n.performUpdate(),n}i(r,t);var n=r.prototype;return n.connectedCallback=function(){t.prototype.connectedCallback.call(this),this.menuOpened_||this.setAttribute(yq.HIDDEN,"")},n.createRenderRoot=function(){var e=t.prototype.createRenderRoot.call(this);return e.addEventListener(vk,this._onToggleMenu),e.addEventListener(vp,this._onCloseMenu),e.addEventListener(vy,this._onMenuChange),e},n.render=function(){return this._template?yn(vw(),yF(this._template)):yn(vx(),this._onMenuListChange)},n.firstUpdated=function(){this._onMenuListChange()},n.getMenuById=function(e){return e&&e!==this.id?fk(this._menus,function(t){return t.id===e}):this},n.openMenu=function(e,t){var r=this.getMenuById(e);if(r===this&&(r=this._menus[0]),!r)return!1;var n=this.getCurrentMenu_(),i=fw(this._openMenuStack,function(e){return e.menu===r});return i>=0?this.closeMenusFromIndex_(i+1):this._openMenuStack.push({menu:r,opener:t}),n&&n.menu.closeMenu(),r.openMenu(),this.menuOpened_=!0,r.focus(),!0},n.closeMenu=function(e){var t,r,n=this.getMenuById(e);if(n===this&&(n=null==(r=this._openMenuStack[0])?void 0:r.menu),!n)return!1;var i=fw(this._openMenuStack,function(e){return e.menu===n});if(i<0)return!1;var a=this._openMenuStack[i];this.closeMenusFromIndex_(i);var o=this.getCurrentMenu_();return void 0!==o?(o.menu.openMenu(),this.menuOpened_=!0,a.opener&&o.menu.contains(a.opener)?a.opener.focus():o.menu.focus()):(this.menuOpened_=!1,null==(t=a.opener)||t.focus()),!0},n.closeMenusFromIndex_=function(e){for(var t=this._openMenuStack.length-e,r=this._openMenuStack.length-1;r>=e;r--)this._openMenuStack[r].menu.closeMenu();this._openMenuStack.splice(e,t)},n.hasCurrentMenu=function(){return this._openMenuStack.length>0},n.getCurrentMenu_=function(){return this._openMenuStack.length>0?this._openMenuStack[this._openMenuStack.length-1]:void 0},n.closeCurrentMenu=function(){var e=this.getCurrentMenu_();return void 0!==e&&(this.closeMenu(e.menu.id),!0)},n.isMenuOpen=function(e){var t=this.getMenuById(e);return!!t&&this._openMenuStack.some(function(e){return e.menu===t})},v(r,[{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){if(this._menuOpened!==e){this._menuOpened=e,fT(this,yq.MENU_OPENED,e),e?(this.removeAttribute(yq.HIDDEN),this.removeEventListener("keydown",this._onKeyDown),this.addEventListener("keydown",this._onKeyDown)):(this.setAttribute(yq.HIDDEN,""),this.removeEventListener("keydown",this._onKeyDown));var t=vt(vy,{bubbles:!0});this.dispatchEvent(t)}}},{key:"_menuSlot",get:function(){return yM(this,rb)[rb]},set:function(e){yM(this,rb)[rb]=e}}]),r}(yw),rE=(rL=(rS=o(rm,[[rT,4,"menuOpened_"],[function(e,t,r){var n=function(e){var t,r;return null!=(t=null==(r=e.renderRoot)?void 0:r.querySelector("slot"))?t:null};return yC(e,t,{get:function(){return n(this)}})},1,"_menuSlot"]],[rw],yw)).e)[0],rA=rL[1],e.MenuGroup=(rC=rS.c)[0],rx=rC[1],rk),rP=yT("theoplayer-menu-button"),rO=yS({reflect:!0,type:String,attribute:yq.MENU}),rM=yS({reflect:!0,state:!0,type:String,attribute:"aria-controls"}),e.MenuButton=void 0;var vE=yN("____private__ariaControls_1"),vA=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,vE,{writable:!0,value:void 0}),rN(t),t._menuId=null,yM(t,vE)[vE]=rB(t,null),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("aria-haspopup")||this.setAttribute("aria-haspopup","true")},r.handleClick=function(){var e=this.menu;if(e){var t=vt(vk,{bubbles:!0,composed:!0,detail:{menu:e}});this.dispatchEvent(t)}},v(t,[{key:"menu",get:function(){return this._menuId},set:function(e){e?(null==this._ariaControls||this._ariaControls===this._menuId)&&(this._ariaControls=e):this._ariaControls===this._menuId&&(this._ariaControls=null),this._menuId=e}},{key:"_ariaControls",get:function(){return yM(this,vE)[vE]},set:function(e){yM(this,vE)[vE]=e}}]),t}(rR=e.Button);function vS(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return vS=function(){return e},e}rB=(rD=(rI=o(vA,[[rO,4,"menu"],[rM,1,"_ariaControls"]],[rP],rR)).e)[0],rN=rD[1],e.MenuButton=(rF=rI.c)[0],(0,rF[1])(),r$=yT("theoplayer-menu-close-button"),rU=fO(["lang"]),rj=yS({reflect:!0,type:String,attribute:yq.LANG}),e.CloseMenuButton=void 0;var vL=yN("____private_lang_1"),vC=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,vL,{writable:!0,value:void 0}),yM(t,vL)[vL]=(rV(t),rz(t,"")),t}i(t,e);var r=t.prototype;return r.handleClick=function(){var e=vt(vp,{bubbles:!0,composed:!0});this.dispatchEvent(e)},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel=e.closeMenuAria},r.render=function(){return yn(vS(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="m10.525 19.275-6.375-6.35q-.175-.2-.262-.437Q3.8 12.25 3.8 12t.088-.488q.087-.237.262-.437l6.375-6.35q.375-.375.925-.388.55-.012.95.388.375.4.388.937.012.538-.363.938l-4.1 4.075H18.35q.55 0 .938.387.387.388.387.938 0 .55-.387.938-.388.387-.938.387H8.325l4.1 4.075q.35.375.363.925.012.55-.363.95-.4.4-.95.4-.55 0-.95-.4Z"/></svg>\n'))},v(t,[{key:"lang",get:function(){return yM(this,vL)[vL]},set:function(e){yM(this,vL)[vL]=e}}]),t}(rq=e.Button);function vP(){var e=a(["<slot>","</slot>"]);return vP=function(){return e},e}rz=(rG=(rH=o(vC,[[rj,1,"lang"]],[r$,rU],rq)).e)[0],rV=rG[1],e.CloseMenuButton=(rQ=rH.c)[0],(0,rQ[1])();var vR=["change","update"];rW=yT("theoplayer-media-track-radio-button"),rK=fO(["lang"]),rY=yL(),rJ=yS({reflect:!0,type:String,attribute:yq.LANG}),rX=yS({reflect:!1,attribute:!1}),e.MediaTrackRadioButton=void 0;var vO=yN("____private__track_1"),vM=yN("____private_lang_2"),vB=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,vO,{writable:!0,value:void 0}),Object.defineProperty(t,vM,{writable:!0,value:void 0}),yM(t,vO)[vO]=(r2(t),r0(t,void 0)),yM(t,vM)[vM]=r1(t,""),t._onTrackChange=function(){t._updateFromTrack()},t}i(t,e);var r=t.prototype;return r._updateFromTrack=function(){this.checked=!!this._track&&this._track.enabled,this.requestUpdate()},r._updateTrack=function(){this._track&&(this._track.enabled=this.checked)},r.handleChange=function(){this._updateTrack()},r.render=function(){var e=fV(this.lang),t=this._track?function(e,t){var r=t.label,n=t.language;if(r&&(!n||r!==n&&r!==fj.formatLanguage(n)))return r;var i=n&&e.formatLanguage(n);return i||r||n||""}(e,this._track):"";return yn(vP(),t)},v(t,[{key:"_track",get:function(){return yM(this,vO)[vO]},set:function(e){yM(this,vO)[vO]=e}},{key:"lang",get:function(){return yM(this,vM)[vM]},set:function(e){yM(this,vM)[vM]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(vR,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(vR,this._onTrackChange))}}]),t}(rZ=e.RadioButton);function vN(){var e=a([":host,theoplayer-radio-group{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([hidden]){display:none!important}"]);return vN=function(){return e},e}r0=(r3=(r5=o(vB,[[rY,1,"_track"],[rJ,1,"lang"],[rX,4,"track"]],[rW,rK],rZ)).e)[0],r1=r3[1],r2=r3[2],e.MediaTrackRadioButton=(r4=r5.c)[0],(0,r4[1])();var vI=pC(vN());function vD(e){return"subtitles"===e.kind||"captions"===e.kind}function vF(e){return vD(e)&&!e.forced}function v$(e){var t=null==e?void 0:e.targetQuality;return void 0===t||Array.isArray(t)||(t=[t]),t}function vU(e,t){if(t){if(t.label&&""!==t.label)return t.label;if(t.height)return""+t.height+"p";if(t.bandwidth)return e.formatBandwidth(t.bandwidth)}}var vq=function(e,t,r){for(var n=new Map,i=t;i<=r;i++)n.set(e[i],i);return n},vj=yI(function(e){function t(e){var r;if(y(this,t),r=p(this,t,[e]),2!==e.type)throw Error("repeat() can only be used in text expressions");return r}return i(t,e),v(t,[{key:"dt",value:function(e,t,r){void 0===r?r=t:void 0!==t&&(u=t);var n=[],i=[],a=0,o=!0,l=!1,s=void 0;try{for(var u,c,h=e[Symbol.iterator]();!(o=(c=h.next()).done);o=!0){var d=c.value;n[a]=u?u(d,a):a,i[a]=r(d,a),a++}}catch(e){l=!0,s=e}finally{try{o||null==h.return||h.return()}finally{if(l)throw s}}return{values:i,keys:n}}},{key:"render",value:function(e,t,r){return this.dt(e,t,r).values}},{key:"update",value:function(e,t){var r,n=b(t,3),i=n[0],a=n[1],o=n[2],l=e._$AH,s=this.dt(i,a,o),u=s.values,c=s.keys;if(!Array.isArray(l))return this.ut=c,u;for(var h,d,p,y=null!=(h=this.ut)?h:this.ut=[],f=[],v=0,_=l.length-1,g=0,m=u.length-1;v<=_&&g<=m;)if(null===l[v])v++;else if(null===l[_])_--;else if(y[v]===c[g])f[g]=y0(l[v],u[g]),v++,g++;else if(y[_]===c[m])f[m]=y0(l[_],u[m]),_--,m--;else if(y[v]===c[m])f[m]=y0(l[v],u[m]),yX(e,f[m+1],l[v]),v++,m--;else if(y[_]===c[g])f[g]=y0(l[_],u[g]),yX(e,l[v],l[_]),_--,g++;else if(void 0===d&&(d=vq(c,g,m),p=vq(y,v,_)),d.has(y[v]))if(d.has(y[_])){var k=p.get(c[g]),w=void 0!==k?l[k]:null;if(null===w){var x=yX(e,l[v]);y0(x,u[g]),f[g]=x}else f[g]=y0(w,u[g]),yX(e,l[v],w),l[k]=null;g++}else y2(l[_]),_--;else y2(l[v]),v++;for(;g<=m;){var T=yX(e,f[m+1]);y0(T,u[g]),f[g++]=T}for(;v<=_;){var E=l[v++];null!==E&&y2(E)}return this.ut=c,void 0===(r=f)&&(r=y1),e._$AH=r,yi}}]),t}(yD));function vz(){var e=a(['<theoplayer-text-track-off-radio-button .trackList="','" lang="','"></theoplayer-text-track-off-radio-button>']);return vz=function(){return e},e}function vV(){var e=a(['<theoplayer-text-track-radio-button .track="','" lang="','"></theoplayer-text-track-radio-button>']);return vV=function(){return e},e}function vH(){var e=a(['<theoplayer-media-track-radio-button .track="','" lang="','"></theoplayer-media-track-radio-button>']);return vH=function(){return e},e}function vG(){var e=a(['<theoplayer-radio-group @change="','">'," ","</theoplayer-radio-group>"]);return vG=function(){return e},e}var vQ=["addtrack","removetrack"];function vW(){var e=a(["<slot>","</slot>"]);return vW=function(){return e},e}nt=yT("theoplayer-track-radio-group"),nr=fO(["player","lang"]),ni=yL(),na=yS({reflect:!0,type:String,attribute:yq.TRACK_TYPE}),no=yS({reflect:!0,type:Boolean,attribute:yq.SHOW_OFF}),nl=yS({reflect:!0,type:String,attribute:yq.LANG}),e.TrackRadioGroup=void 0,new(ne=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vI],nn(),t}return i(t,e),t}(l),r8=yN("____private__tracksList_1"),r7=yN("____private_showOffButton_2"),r6=yN("____private_lang_3"),r9=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,r8,{writable:!0,value:void 0}),Object.defineProperty(t,r7,{writable:!0,value:void 0}),Object.defineProperty(t,r6,{writable:!0,value:void 0}),nh(t),t._trackType="audio",yM(t,r8)[r8]=ns(t),yM(t,r7)[r7]=nu(t,!1),yM(t,r6)[r6]=nc(t,""),t._updateTracks=function(){return t.requestUpdate()},t._onChange=function(){t.dispatchEvent(ve("change",{bubbles:!0}))},t}i(t,e);var r=t.prototype;return r._getTracksList=function(){if(void 0!==this._player){var e=this.trackType;return"audio"===e?this._player.audioTracks:"video"===e?this._player.videoTracks:"subtitles"===e?this._player.textTracks:void 0}},r._updateTracksList=function(){var e=this._tracksList,t=this._getTracksList();e!==t&&(null==e||e.removeEventListener(vQ,this._updateTracks),null==t||t.addEventListener(vQ,this._updateTracks),this._tracksList=t)},r._getTracks=function(){if(void 0===this._player)return[];var e=this.trackType;return"audio"===e?this._player.audioTracks:"video"===e?this._player.videoTracks:"subtitles"===e?this._player.textTracks.filter(vF):[]},r.render=function(){var e=this,t=this._getTracks(),r="subtitles"===this.trackType;return yn(vG(),this._onChange,this.showOffButton&&r?yn(vz(),this._tracksList,this.lang):void 0,vj(t,function(e){return e.uid},function(t){return r?yn(vV(),t,e.lang):yn(vH(),t,e.lang)}))},v(t,[{key:"_tracksList",get:function(){return yM(this,r8)[r8]},set:function(e){yM(this,r8)[r8]=e}},{key:"trackType",get:function(){return this._trackType},set:function(e){this._trackType=e,this._updateTracksList()}},{key:"showOffButton",get:function(){return yM(this,r7)[r7]},set:function(e){yM(this,r7)[r7]=e}},{key:"lang",get:function(){return yM(this,r6)[r6]},set:function(e){yM(this,r6)[r6]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(this._player=e,this._updateTracksList(),this._updateTracks())}}]),t}(yw),ns=(np=(nd=o(r9,[[ni,1,"_tracksList"],[na,4,"trackType"],[no,1,"showOffButton"],[nl,1,"lang"]],[nt,nr],yw)).e)[0],nu=np[1],nc=np[2],nh=np[3],e.TrackRadioGroup=(ny=nd.c)[0],nn=ny[1],ne);var vK=["change","update"];nf=yT("theoplayer-text-track-radio-button"),nv=fO(["lang"]),ng=yL(),nb=yS({reflect:!0,type:String,attribute:yq.LANG}),nm=yS({reflect:!1,attribute:!1}),e.TextTrackRadioButton=void 0;var vZ=yN("____private__track_1"),vY=yN("____private_lang_2"),vJ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,vZ,{writable:!0,value:void 0}),Object.defineProperty(t,vY,{writable:!0,value:void 0}),yM(t,vZ)[vZ]=(nx(t),nk(t,void 0)),yM(t,vY)[vY]=nw(t,""),t._onTrackChange=function(){t._updateFromTrack()},t}i(t,e);var r=t.prototype;return r._updateFromTrack=function(){this.checked=!!this._track&&"showing"===this._track.mode,this.requestUpdate()},r._updateTrack=function(){this._track&&(this._track.mode=this.checked?"showing":"disabled")},r.handleChange=function(){this._updateTrack()},r.render=function(){var e=fV(this.lang),t=this._track?function(e,t){var r=t.label,n=t.language;if(r){if(n&&(r===n||r===fj.formatLanguage(n)));else if(!("cea608"===t.type&&/^CC\d+$/.test(t.label)))return r}var i=n&&e.formatLanguage(n);return i||("cea608"===t.type&&"number"==typeof t.captionChannel?"CC"+t.captionChannel:r||n||"")}(e,this._track):"";return yn(vW(),t)},v(t,[{key:"_track",get:function(){return yM(this,vZ)[vZ]},set:function(e){yM(this,vZ)[vZ]=e}},{key:"lang",get:function(){return yM(this,vY)[vY]},set:function(e){yM(this,vY)[vY]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(vK,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(vK,this._onTrackChange))}}]),t}(n_=e.RadioButton);function vX(){var e=a(["<slot>","</slot>"]);return vX=function(){return e},e}nk=(nE=(nT=o(vJ,[[ng,1,"_track"],[nb,1,"lang"],[nm,4,"track"]],[nf,nv],n_)).e)[0],nw=nE[1],nx=nE[2],e.TextTrackRadioButton=(nA=nT.c)[0],(0,nA[1])();var v0=["change"];nS=yT("theoplayer-text-track-off-radio-button"),nL=fO(["lang"]),nP=yS({reflect:!0,type:String,attribute:yq.LANG}),nR=yS({reflect:!1,attribute:!1}),e.TextTrackOffRadioButton=void 0;var v1=yN("____private_lang_1"),v2=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,v1,{writable:!0,value:void 0}),yM(t,v1)[v1]=(nM(t),nO(t,"")),t._trackList=void 0,t._onTrackChange=function(){t._updateFromTrackList()},t}i(t,e);var r=t.prototype;return r._updateFromTrackList=function(){this.checked=!this._trackList||!this._trackList.some(function(e){return vF(e)&&"showing"===e.mode})},r._updateTrackList=function(){this._trackList&&this.checked&&function(e){for(var t,r=fd(e);!(t=r()).done;){var n=t.value;vD(n)&&"showing"===n.mode&&(n.mode="disabled")}}(this._trackList)},r.handleChange=function(){this._updateTrackList()},r.render=function(){var e=fV(this.lang);return yn(vX(),e.subtitleOff)},v(t,[{key:"lang",get:function(){return yM(this,v1)[v1]},set:function(e){yM(this,v1)[v1]=e}},{key:"trackList",get:function(){return this._trackList},set:function(e){this._trackList&&this._trackList.removeEventListener(v0,this._onTrackChange),this._trackList=e,this._updateFromTrackList(),e&&e.addEventListener(v0,this._onTrackChange)}}]),t}(nC=e.RadioButton);function v5(){var e=a([".theoplayer-menu-heading{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.theoplayer-menu-heading-button{-ms-flex-item-align:end;align-self:flex-end}[part=audio],[part=subtitles],theoplayer-track-radio-group{display:-webkit-box;display:-ms-flexbox;display:flex;min-height:0}[part=content]{-ms-grid-columns:1fr;display:-ms-grid;display:grid;grid-template-columns:1fr;min-height:0}:host([has-audio][has-subtitles]) [part=content]{-ms-grid-columns:1fr 10px 1fr;grid-template-columns:1fr 10px 1fr}:host([has-audio][has-subtitles]) [part=audio]{-ms-grid-column:1;grid-column:1}:host([has-audio][has-subtitles]) [part=subtitles]{-ms-grid-column:3;grid-column:3}:host(:not([has-audio])) [part=audio],:host(:not([has-subtitles])) [part=subtitles]{display:none!important}[part=audio],[part=subtitles]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-orient:vertical;-webkit-box-direction:normal;align-self:stretch;-ms-flex-direction:column;flex-direction:column;text-align:center}h2{margin:0 0 .5em}theoplayer-track-radio-group{overflow-y:auto}"]);return v5=function(){return e},e}nO=(nN=(nB=o(v2,[[nP,1,"lang"],[nR,4,"trackList"]],[nS,nL],nC)).e)[0],nM=nN[1],e.TextTrackOffRadioButton=(nI=nB.c)[0],(0,nI[1])();var v3=pC(v5());function v4(){var e=a([".theoplayer-menu-heading{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.theoplayer-menu-heading-button{-ms-flex-item-align:end;align-self:flex-end}"]);return v4=function(){return e},e}var v8=pC(v4());function v7(){var e=a(["table{border-collapse:collapse;table-layout:auto}table,table td,table tr{margin:0;padding:0}table td>*{font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));padding:10px;padding:var(--theoplayer-control-padding,10px)}table td:first-child{white-space:nowrap;width:0}table td:last-child{text-align:center}table td>theoplayer-menu-button{display:-webkit-box;display:-ms-flexbox;display:flex}"]);return v7=function(){return e},e}var v6=pC(v7()),v9=[{label:"White",value:"rgb(255,255,255)"},{label:"Yellow",value:"rgb(255,255,0)"},{label:"Green",value:"rgb(0,255,0)"},{label:"Cyan",value:"rgb(0,255,255)"},{label:"Blue",value:"rgb(0,0,255)"},{label:"Magenta",value:"rgb(255,0,255)"},{label:"Red",value:"rgb(255,0,0)"},{label:"Black",value:"rgb(0,0,0)"}],_e=[{label:"Monospace Serif",value:'"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace'},{label:"Proportional Serif",value:'"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif'},{label:"Monospace Sans",value:'"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace'},{label:"Proportional Sans",value:'Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}],_t=[.5,.75,1,1.5,2],_r=[.25,.5,.75,1],_n=["none","dropshadow","raised","depressed","uniform"];function _i(e){var t,r;return e?fx(e,"rgb")?(t=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([0-9.]+))?\)$/i))?{r_:parseInt(t[1],10),g_:parseInt(t[2],10),b_:parseInt(t[3],10),a_:t[4]?parseFloat(t[4]):1}:null:fx(e,"#")?(r=e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i))?{r_:parseInt(r[1],16),g_:parseInt(r[2],16),b_:parseInt(r[3],16),a_:1}:null:null:null}function _a(e){return"rgba("+e.r_+","+e.g_+","+e.b_+","+e.a_+")"}function _o(e){return"rgb("+e.r_+","+e.g_+","+e.b_+")"}function _l(e,t){return{r_:e.r_,g_:e.g_,b_:e.b_,a_:t}}var _s=_i("#ffffff"),_u=_i("#000000");function _c(){var e=a(["<span>","</span>"]);return _c=function(){return e},e}nD=yT("theoplayer-text-track-style-display"),nF=fO(["player","lang"]),n$=yS({reflect:!0,type:String,attribute:yq.LANG}),nU=yS({reflect:!0,type:String,attribute:yq.PROPERTY}),nq=yS({reflect:!1,attribute:!1}),e.TextTrackStyleDisplay=void 0;var _h=yN("____private_lang_1"),_d=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_h,{writable:!0,value:void 0}),yM(t,_h)[_h]=(nz(t),nj(t,"")),t._property="fontColor",t._updateFromPlayer=function(){return t.requestUpdate()},t}i(t,e);var r=t.prototype;return r.render=function(){var e=fV(this.lang);return yn(_c(),this.renderValue(e))},r.renderValue=function(e){if(void 0===this._player)return"";var t,r,n,i=this.property;switch(i){case"fontFamily":var a=this._player.textTrackStyle.fontFamily,o=e;if(!a)return o.textTrackStyleDefaultLabel;var l,s=fk(_e,function(e){return e.value===a});return s?null!=(l=o.fontFamilyLabels[s.label])?l:s.label:o.textTrackStyleCustomLabel;case"fontColor":case"backgroundColor":case"windowColor":return function(e,t){if(!e)return t.textTrackStyleDefaultLabel;var r=_i(e);if(r){var n,i=_o(r),a=fk(v9,function(e){return e.value===i});if(a)return null!=(n=t.colorLabels[a.label])?n:a.label}return t.textTrackStyleCustomLabel}(this._player.textTrackStyle[i],e);case"fontOpacity":return _p(this._player.textTrackStyle.fontColor,e);case"backgroundOpacity":return _p(this._player.textTrackStyle.backgroundColor,e);case"windowOpacity":return _p(this._player.textTrackStyle.windowColor,e);case"edgeStyle":return t=this._player.textTrackStyle.edgeStyle,r=e,t?null!=(n=r.edgeStyleLabels[t])?n:r.textTrackStyleCustomLabel:r.textTrackStyleDefaultLabel;default:return this._player.textTrackStyle[i]||e.textTrackStyleDefaultLabel}},v(t,[{key:"lang",get:function(){return yM(this,_h)[_h]},set:function(e){yM(this,_h)[_h]=e}},{key:"property",get:function(){return this._property},set:function(e){this._property=e,this._updateFromPlayer()}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackStyle)||t.removeEventListener("change",this._updateFromPlayer),this._player=e,this._textTrackStyle=null==e?void 0:e.textTrackStyle,this._updateFromPlayer(),null==(r=this._textTrackStyle)||r.addEventListener("change",this._updateFromPlayer))}}]),t}(yw);function _p(e,t){if(!e)return t.textTrackStyleDefaultLabel;var r=_i(e);return r?t.formatPercentage(r.a_):t.textTrackStyleCustomLabel}function _y(){var e=a(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return _y=function(){return e},e}function _f(e,t,r){var n,i,a,o=null!=(n=null==(i=_i(t))?void 0:i.a_)?n:1;if(""!==e||1!==o)return _a(_l(null!=(a=_i(e))?a:r,o))}function _v(e,t,r){var n,i=null!=(n=_i(t))?n:r;if(""!==e||i.r_!==r.r_||i.g_!==r.g_||i.b_!==r.b_)return _a(_l(i,""==e?1:Number(e)/100))}function __(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return __=function(){return e},e}function _g(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _g=function(){return e},e}function _b(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _b=function(){return e},e}function _m(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _m=function(){return e},e}function _k(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _k=function(){return e},e}function _w(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _w=function(){return e},e}function _x(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _x=function(){return e},e}function _T(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _T=function(){return e},e}function _E(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _E=function(){return e},e}function _A(){var e=a(['<theoplayer-menu class="theoplayer-text-track-style-menu"><span class="theoplayer-menu-heading" slot="heading"><slot name="heading">','</slot></span><theoplayer-text-track-style-reset-button class="theoplayer-menu-heading-button" slot="heading"></theoplayer-text-track-style-reset-button><table><tr><td><span>','</span></td><td><theoplayer-menu-button menu="font-family-menu"><theoplayer-text-track-style-display property="fontFamily"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="font-color-menu"><theoplayer-text-track-style-display property="fontColor"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="font-opacity-menu"><theoplayer-text-track-style-display property="fontOpacity"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="font-size-menu"><theoplayer-text-track-style-display property="fontSize"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="background-color-menu"><theoplayer-text-track-style-display property="backgroundColor"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="background-opacity-menu"><theoplayer-text-track-style-display property="backgroundOpacity"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="window-color-menu"><theoplayer-text-track-style-display property="windowColor"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="window-opacity-menu"><theoplayer-text-track-style-display property="windowOpacity"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="edge-style-menu"><theoplayer-text-track-style-display property="edgeStyle"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr></table></theoplayer-menu><theoplayer-menu id="font-family-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="fontFamily"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="font-color-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="fontColor"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="font-opacity-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="fontOpacity"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="font-size-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="fontSize"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="background-color-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="backgroundColor"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="background-opacity-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="backgroundOpacity"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="window-color-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="windowColor"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="window-opacity-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="windowOpacity"><theoplayer-radio-button value="">',"</theoplayer-radio-button>",'</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="edge-style-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-text-track-style-radio-group property="edgeStyle"><theoplayer-radio-button value="">',"</theoplayer-radio-button>","</theoplayer-text-track-style-radio-group></theoplayer-menu>"]);return _A=function(){return e},e}function _S(){var e=a(['<theoplayer-menu><span class="theoplayer-menu-heading" slot="heading"><slot name="heading">','</slot></span><theoplayer-settings-menu-button class="theoplayer-menu-heading-button" menu="subtitle-options-menu" slot="heading" lang="','"></theoplayer-settings-menu-button><div part="content"><div part="audio"><h2>','</h2><theoplayer-track-radio-group track-type="audio" lang="','"></theoplayer-track-radio-group></div><div part="subtitles"><h2>','</h2><theoplayer-track-radio-group track-type="subtitles" show-off lang="','"></theoplayer-track-radio-group></div></div></theoplayer-menu><theoplayer-text-track-style-menu id="subtitle-options-menu" lang="','"></theoplayer-text-track-style-menu>']);return _S=function(){return e},e}nj=(nH=(nV=o(_d,[[n$,1,"lang"],[nU,4,"property"],[nq,4,"player"]],[nD,nF],yw)).e)[0],nz=nH[1],e.TextTrackStyleDisplay=(nG=nV.c)[0],(0,nG[1])(),nK=yT("theoplayer-text-track-style-radio-group"),nZ=fO(["player"]),nJ=yS({reflect:!0,type:String,attribute:yq.PROPERTY}),nX=yS({reflect:!1,attribute:!1}),n0=yS({reflect:!1,attribute:!1}),e.TextTrackStyleRadioGroup=void 0,new(nW=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vI],nY(),t}return i(t,e),t}(l),nQ=function(t){function r(){var e;return e=t.apply(this,arguments)||this,n1(e),e._radioGroupRef=fe(),e._property="fontColor",e._onChange=function(){var t=e._radioGroupRef.value;t&&(e.value=t.value)},e._updateFromPlayer=function(){if(void 0!==e._player)switch(e.property){case"fontColor":var t,r,n=e._player.textTrackStyle.fontColor;e.value=n?_o(null!=(r=_i(n))?r:_s):"";break;case"backgroundColor":var i,a=e._player.textTrackStyle.backgroundColor;e.value=a?_o(null!=(i=_i(a))?i:_u):"";break;case"windowColor":var o,l=e._player.textTrackStyle.windowColor;e.value=l?_o(null!=(o=_i(l))?o:_u):"";break;case"fontOpacity":var s,u,c=e._player.textTrackStyle.fontColor;e.value=c?String((null!=(s=null==(u=_i(c))?void 0:u.a_)?s:1)*100):"";break;case"backgroundOpacity":var h,d,p=e._player.textTrackStyle.backgroundColor;e.value=p?String((null!=(h=null==(d=_i(p))?void 0:d.a_)?h:1)*100):"";break;case"windowOpacity":var y,f,v=e._player.textTrackStyle.windowColor;e.value=v?String((null!=(y=null==(f=_i(v))?void 0:f.a_)?y:1)*100):"";break;default:e.value=null!=(t=e._player.textTrackStyle[e.property])?t:""}},e}i(r,t);var n=r.prototype;return n.firstUpdated=function(){var t=this._radioGroupRef.value;T(t,e.RadioGroup)||customElements.upgrade(t),t.value=this.value},n._updateToPlayer=function(){if(void 0!==this._player)switch(this.property){case"fontColor":this._player.textTrackStyle.fontColor=_f(this.value,this._player.textTrackStyle.fontColor,_s);break;case"backgroundColor":this._player.textTrackStyle.backgroundColor=_f(this.value,this._player.textTrackStyle.backgroundColor,_u);break;case"windowColor":this._player.textTrackStyle.windowColor=_f(this.value,this._player.textTrackStyle.windowColor,_u);break;case"fontOpacity":this._player.textTrackStyle.fontColor=_v(this.value,this._player.textTrackStyle.fontColor,_s);break;case"backgroundOpacity":this._player.textTrackStyle.backgroundColor=_v(this.value,this._player.textTrackStyle.backgroundColor,_u);break;case"windowOpacity":this._player.textTrackStyle.windowColor=_v(this.value,this._player.textTrackStyle.windowColor,_u);break;default:this._player.textTrackStyle[this.property]=""==this.value?void 0:this.value}},n.render=function(){return yn(_y(),fn(this._radioGroupRef),this._onChange)},v(r,[{key:"property",get:function(){return this._property},set:function(e){this._property!==e&&(this._property=e,this._updateFromPlayer())}},{key:"value",get:function(){return this._value},set:function(e){if(this._value!==e){this._value=e,this._updateToPlayer();var t=this._radioGroupRef.value;t&&(t.value=e),this.dispatchEvent(ve("change",{bubbles:!0}))}}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackStyle)||t.removeEventListener("change",this._updateFromPlayer),this._player=e,this._textTrackStyle=null==e?void 0:e.textTrackStyle,this._updateFromPlayer(),null==(r=this._textTrackStyle)||r.addEventListener("change",this._updateFromPlayer))}}]),r}(yw),n1=(n2=o(nQ,[[nJ,4,"property"],[nX,4,"value"],[n0,4,"player"]],[nK,nZ],yw)).e[0],e.TextTrackStyleRadioGroup=(n5=n2.c)[0],nY=n5[1],nW),n7=yT("theoplayer-text-track-style-menu"),n6=fO(["lang"]),it=yS({reflect:!0,type:String,attribute:yq.LANG}),e.TextTrackStyleMenu=void 0,new(n8=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.MenuGroup.styles,[v6,v8]),n9(),r}return i(r,t),r}(l),n3=yN("____private_lang_1"),n4=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,n3,{writable:!0,value:void 0}),yM(t,n3)[n3]=(ii(t),ir(t,"")),t}return i(t,e),t.prototype.render=function(){var e=fV(this.lang);return yn(_A(),e.textTrackStyleMenuHeading,e.textTrackStyleFontFamily,e.textTrackStyleFontColor,e.textTrackStyleFontOpacity,e.textTrackStyleFontSize,e.textTrackStyleBackgroundColor,e.textTrackStyleBackgroundOpacity,e.textTrackStyleWindowColor,e.textTrackStyleWindowOpacity,e.textTrackStyleEdgeStyle,e.textTrackStyleFontFamily,e.textTrackStyleDefaultLabel,_e.map(function(t){var r,n=t.label,i=t.value;return yn(__(),i,null!=(r=e.fontFamilyLabels[n])?r:n)}),e.textTrackStyleFontColor,e.textTrackStyleDefaultLabel,v9.map(function(t){var r,n=t.label,i=t.value;return yn(_g(),i,null!=(r=e.colorLabels[n])?r:n)}),e.textTrackStyleFontOpacity,e.textTrackStyleDefaultLabel,_r.map(function(t){return yn(_b(),100*t,e.formatPercentage(t))}),e.textTrackStyleFontSize,e.textTrackStyleDefaultLabel,_t.map(function(t){return yn(_m(),100*t,e.formatPercentage(t))}),e.textTrackStyleBackgroundColor,e.textTrackStyleDefaultLabel,v9.map(function(t){var r,n=t.label,i=t.value;return yn(_k(),i,null!=(r=e.colorLabels[n])?r:n)}),e.textTrackStyleBackgroundOpacity,e.textTrackStyleDefaultLabel,_r.map(function(t){return yn(_w(),100*t,e.formatPercentage(t))}),e.textTrackStyleWindowColor,e.textTrackStyleDefaultLabel,v9.map(function(t){var r,n=t.label,i=t.value;return yn(_x(),i,null!=(r=e.colorLabels[n])?r:n)}),e.textTrackStyleWindowOpacity,e.textTrackStyleDefaultLabel,_r.map(function(t){return yn(_T(),100*t,e.formatPercentage(t))}),e.textTrackStyleEdgeStyle,e.textTrackStyleDefaultLabel,_n.map(function(t){var r;return yn(_E(),t,null!=(r=e.edgeStyleLabels[t])?r:t)}))},v(t,[{key:"lang",get:function(){return yM(this,n3)[n3]},set:function(e){yM(this,n3)[n3]=e}}]),t}(ie=e.MenuGroup),ir=(io=(ia=o(n4,[[it,1,"lang"]],[n7,n6],ie)).e)[0],ii=io[1],e.TextTrackStyleMenu=(il=ia.c)[0],n9=il[1],n8);var _L=["addtrack","removetrack"];function _C(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return _C=function(){return e},e}ip=yT("theoplayer-language-menu"),iy=fO(["player","lang"]),ig=yS({reflect:!0,type:String,attribute:yq.LANG}),ib=yS({state:!0}),im=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.HAS_AUDIO}),ik=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.HAS_SUBTITLES}),e.LanguageMenu=void 0,new(id=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.MenuGroup.styles,[v3]),iv(),r}return i(r,t),r}(l),is=yN("____private_lang_1"),iu=yN("____private__hasAudioTracks_2"),ic=yN("____private__hasSubtitles_3"),ih=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,is,{writable:!0,value:void 0}),Object.defineProperty(t,iu,{writable:!0,value:void 0}),Object.defineProperty(t,ic,{writable:!0,value:void 0}),yM(t,is)[is]=(iE(t),iw(t,"")),yM(t,iu)[iu]=ix(t,!1),yM(t,ic)[ic]=iT(t,!1),t._updateAudioTracks=function(){var e,r,n=null!=(e=null==(r=t._player)?void 0:r.audioTracks)?e:[];t._hasAudioTracks=n.length>1},t._updateTextTracks=function(){var e,r,n=null!=(e=null==(r=t._player)?void 0:r.textTracks.filter(vF))?e:[];t._hasSubtitles=n.length>0},t}return i(t,e),t.prototype.render=function(){var e=fV(this.lang);return yn(_S(),e.languageMenuHeading,this.lang,e.audioMenuHeading,this.lang,e.subtitleMenuHeading,this.lang,this.lang)},v(t,[{key:"lang",get:function(){return yM(this,is)[is]},set:function(e){yM(this,is)[is]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r,n,i;this._player!==e&&(null==(t=this._audioTrackList)||t.removeEventListener(_L,this._updateAudioTracks),null==(r=this._textTrackList)||r.removeEventListener(_L,this._updateTextTracks),this._player=e,this._audioTrackList=null==e?void 0:e.audioTracks,this._textTrackList=null==e?void 0:e.textTracks,this._updateAudioTracks(),this._updateTextTracks(),null==(n=this._audioTrackList)||n.addEventListener(_L,this._updateAudioTracks),null==(i=this._textTrackList)||i.addEventListener(_L,this._updateTextTracks))}},{key:"_hasAudioTracks",get:function(){return yM(this,iu)[iu]},set:function(e){yM(this,iu)[iu]=e}},{key:"_hasSubtitles",get:function(){return yM(this,ic)[ic]},set:function(e){yM(this,ic)[ic]=e}}]),t}(i_=e.MenuGroup),iw=(iS=(iA=o(ih,[[ig,1,"lang"],[ib,4,"player"],[im,1,"_hasAudioTracks"],[ik,1,"_hasSubtitles"]],[ip,iy],i_)).e)[0],ix=iS[1],iT=iS[2],iE=iS[3],e.LanguageMenu=(iL=iA.c)[0],iv=iL[1],id);var _P=["addtrack","removetrack"];iC=yT("theoplayer-language-menu-button"),iP=fO(["player","lang"]),iO=yS({reflect:!1,attribute:!1}),iM=yS({reflect:!0,type:String,attribute:yq.LANG}),e.LanguageMenuButton=void 0;var _R=yN("____private_lang_1"),_O=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_R,{writable:!0,value:void 0}),yM(t,_R)[_R]=(iN(t),iB(t,"")),t._updateTracks=function(){var e=void 0!==t._player&&(t._player.audioTracks.length>=2||t._player.textTracks.some(vF));fT(t,yq.HIDDEN,!e)},t}i(t,e);var r=t.prototype;return r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel=e.openLanguageMenuAria},r.render=function(){return yn(_C(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M17.469 15.446a6.892 6.892 310 1 0-4.772 3.342l2.872.986q1.9.626 1.9-1.374v-2.954l2.598 1.5V22q0 2-1.899 1.374l-4.95-1.632a9.892 9.892 310 1 1 6.849-4.796zM7 10a1 1 180 1 0 0 2 1 1 180 1 0 0-2zm4 0a1 1 180 1 0 0 2h5a1 1 180 1 0 0-2zm-3 4a1 1 180 1 0 0 2h3a1 1 180 1 0 0-2zm7 0a1 1 180 1 0 0 2 1 1 180 1 0 0-2z"/></svg>\n'))},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r,n,i;this._player!==e&&(null==(t=this._audioTrackList)||t.removeEventListener(_P,this._updateTracks),null==(r=this._textTrackList)||r.removeEventListener(_P,this._updateTracks),this._player=e,this._audioTrackList=null==e?void 0:e.audioTracks,this._textTrackList=null==e?void 0:e.textTracks,this._updateTracks(),null==(n=this._audioTrackList)||n.addEventListener(_P,this._updateTracks),null==(i=this._textTrackList)||i.addEventListener(_P,this._updateTracks))}},{key:"lang",get:function(){return yM(this,_R)[_R]},set:function(e){yM(this,_R)[_R]=e}}]),t}(iR=e.MenuButton);function _M(){var e=a(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return _M=function(){return e},e}function _B(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return _B=function(){return e},e}iB=(iD=(iI=o(_O,[[iO,4,"player"],[iM,1,"lang"]],[iC,iP],iR)).e)[0],iN=iD[1],e.LanguageMenuButton=(iF=iI.c)[0],(0,iF[1])(),iq=yT("theoplayer-playback-rate-radio-group"),ij=fO(["player"]),iV=yL(),iH=yL(),e.PlaybackRateRadioGroup=void 0,new(iU=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vI],iz(),t}return i(t,e),t}(l),i$=function(t){function r(){var e;return e=t.apply(this,arguments)||this,iG(e),e._radioGroupRef=fe(),e._value=1,e._onChange=function(){var t=e._radioGroupRef.value;t&&(e.value=Number(t.value))},e._updateFromPlayer=function(){void 0!==e._player&&(e.value=e._player.playbackRate)},e}i(r,t);var n=r.prototype;return n.firstUpdated=function(){var t=this._radioGroupRef.value;T(t,e.RadioGroup)||customElements.upgrade(t),t.value=String(this.value)},n.render=function(){return yn(_M(),fn(this._radioGroupRef),this._onChange)},v(r,[{key:"value",get:function(){return this._value},set:function(e){if(e=Number(e),this._value!==e){this._value=e,void 0!==this._player&&this._player.playbackRate!==e&&(this._player.playbackRate=e);var t=this._radioGroupRef.value;t&&(t.value=String(e)),this.dispatchEvent(ve("change",{bubbles:!0}))}}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener("ratechange",this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener("ratechange",this._updateFromPlayer))}}]),r}(yw),iG=(iQ=o(i$,[[iV,4,"value"],[iH,4,"player"]],[iq,ij],yw)).e[0],e.PlaybackRateRadioGroup=(iW=iQ.c)[0],iz=iW[1],iU),iK=yT("theoplayer-playback-rate-menu-button"),iZ=fO(["lang"]),iJ=yS({reflect:!0,type:String,attribute:yq.LANG}),e.PlaybackRateMenuButton=void 0;var _N=yN("____private_lang_1"),_I=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_N,{writable:!0,value:void 0}),yM(t,_N)[_N]=(i0(t),iX(t,"")),t}i(t,e);var r=t.prototype;return r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel=e.openPlaybackRateMenuAria},r.render=function(){return yn(_B(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 96 960 960" height="24" width="24"><path d="M418 716q24 24 61.435 23.5T536 712l171.826-250.174q12.392-19.087-1.652-32.283-14.044-13.195-33.131-.804L424 600q-27 19.13-28.5 55.565T418 716ZM204 915.218q-25.522 0-49.609-12.826-24.087-12.826-36.783-34.783-26.565-46.696-41.696-100.022Q60.782 714.261 60.782 656q0-86.391 32.913-162.566 32.913-76.174 89.956-133.217 57.044-57.044 133.436-90.24Q393.478 236.782 480 236.782q43.87 0 85.87 8.934 42 8.935 81 26.239 28.913 12.696 33.826 38.762 4.913 26.065-13.044 48.153-10.261 12.391-28.217 15.521-17.957 3.131-32.914-3.565-31.434-14.869-62.043-21.456-30.608-6.587-64.478-6.587-129.043 0-221.13 91.522Q166.783 525.826 166.783 656q0 42 10.935 79.891 10.934 37.891 30.804 73.326h542.956q23-38 32.37-75.608Q793.217 696 793.217 652q0-31.609-6.804-62.565-6.804-30.956-20.543-60.826-7.566-16.957-3.718-35.196 3.848-18.239 17.674-29.5 21.653-18.522 47.153-10.261t36.761 35.609q16.305 38 25.457 78.217 9.152 40.218 10.021 82.522 0 58.696-14.348 113.522-14.347 54.826-42.478 104.087-14.391 23.087-37.631 35.348-23.239 12.261-48.761 12.261H204ZM480 576Z"/></svg>\n'))},v(t,[{key:"lang",get:function(){return yM(this,_N)[_N]},set:function(e){yM(this,_N)[_N]=e}}]),t}(iY=e.MenuButton);function _D(){var e=a(['<span slot="heading"><slot name="heading">',"</slot></span>"]);return _D=function(){return e},e}function _F(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _F=function(){return e},e}function _$(){var e=a(["<theoplayer-playback-rate-radio-group>","</theoplayer-playback-rate-radio-group>"]);return _$=function(){return e},e}iX=(i2=(i1=o(_I,[[iJ,1,"lang"]],[iK,iZ],iY)).e)[0],i0=i2[1],e.PlaybackRateMenuButton=(i5=i1.c)[0],(0,i5[1])();var _U=[.25,.5,1,1.25,1.5,2];i3=yT("theoplayer-playback-rate-menu"),i4=fO(["lang"]),i7=yS({reflect:!0,type:String,attribute:yq.LANG}),e.PlaybackRateMenu=void 0;var _q=yN("____private_lang_1"),_j=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_q,{writable:!0,value:void 0}),yM(t,_q)[_q]=(i9(t),i6(t,"")),t}i(t,e);var r=t.prototype;return r.renderMenuHeading=function(){var e=fV(this.lang);return yn(_D(),e.playbackRateMenuHeading)},r.renderMenuContent=function(){var e=fV(this.lang);return yn(_$(),_U.map(function(t){return yn(_F(),t,e.formatPlaybackRate(t))}))},v(t,[{key:"lang",get:function(){return yM(this,_q)[_q]},set:function(e){yM(this,_q)[_q]=e}}]),t}(i8=e.Menu);function _z(){var e=a(["<span>","</span>"]);return _z=function(){return e},e}i6=(at=(ae=o(_j,[[i7,1,"lang"]],[i3,i4],i8)).e)[0],i9=at[1],e.PlaybackRateMenu=(ar=ae.c)[0],(0,ar[1])(),an=yT("theoplayer-playback-rate-display"),ai=fO(["playbackRate","lang"]),aa=yS({reflect:!0,type:String,attribute:yq.LANG}),ao=yL(),e.PlaybackRateDisplay=void 0;var _V=yN("____private_lang_1"),_H=yN("____private_playbackRate_2"),_G=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_V,{writable:!0,value:void 0}),Object.defineProperty(t,_H,{writable:!0,value:void 0}),yM(t,_V)[_V]=(au(t),al(t,"")),yM(t,_H)[_H]=as(t,1),t}return i(t,e),t.prototype.render=function(){var e=fV(this.lang);return yn(_z(),e.formatPlaybackRate(this.playbackRate))},v(t,[{key:"lang",get:function(){return yM(this,_V)[_V]},set:function(e){yM(this,_V)[_V]=e}},{key:"playbackRate",get:function(){return yM(this,_H)[_H]},set:function(e){yM(this,_H)[_H]=e}}]),t}(yw);function _Q(){var e=a(["<span>","</span>"]);return _Q=function(){return e},e}al=(ah=(ac=o(_G,[[aa,1,"lang"],[ao,1,"playbackRate"]],[an,ai],yw)).e)[0],as=ah[1],au=ah[2],e.PlaybackRateDisplay=(ad=ac.c)[0],(0,ad[1])(),ap=yT("theoplayer-active-quality-display"),ay=fO(["activeVideoQuality","targetVideoQualities"]),af=yS({reflect:!1,attribute:!1}),av=yS({reflect:!1,attribute:!1}),a_=yS({reflect:!0,type:String,attribute:yq.LANG}),e.ActiveQualityDisplay=void 0;var _W=yN("____private_activeVideoQuality_1"),_K=yN("____private_targetVideoQualities_2"),_Z=yN("____private_lang_3"),_Y=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_W,{writable:!0,value:void 0}),Object.defineProperty(t,_K,{writable:!0,value:void 0}),Object.defineProperty(t,_Z,{writable:!0,value:void 0}),yM(t,_W)[_W]=(ak(t),ag(t,void 0)),yM(t,_K)[_K]=ab(t,void 0),yM(t,_Z)[_Z]=am(t,""),t}return i(t,e),t.prototype.render=function(){var e,t=fV(this.lang),r=void 0!==this.targetVideoQualities&&1===this.targetVideoQualities.length,n=r?this.targetVideoQualities[0]:void 0,i=vU(t,null!=n?n:this.activeVideoQuality);return e=r?null!=i?i:t.unknownQualityLabel:""+t.automaticQualityLabel+(i?" ("+i+")":""),yn(_Q(),e)},v(t,[{key:"activeVideoQuality",get:function(){return yM(this,_W)[_W]},set:function(e){yM(this,_W)[_W]=e}},{key:"targetVideoQualities",get:function(){return yM(this,_K)[_K]},set:function(e){yM(this,_K)[_K]=e}},{key:"lang",get:function(){return yM(this,_Z)[_Z]},set:function(e){yM(this,_Z)[_Z]=e}}]),t}(yw);function _J(){var e=a(["<slot>","</slot>"]);return _J=function(){return e},e}ag=(ax=(aw=o(_Y,[[af,1,"activeVideoQuality"],[av,1,"targetVideoQualities"],[a_,1,"lang"]],[ap,ay],yw)).e)[0],ab=ax[1],am=ax[2],ak=ax[3],e.ActiveQualityDisplay=(aT=aw.c)[0],(0,aT[1])();var _X=["activequalitychanged","targetqualitychanged"],_0=["update"];aE=yT("theoplayer-quality-radio-button"),aA=fO(["lang"]),aL=yL(),aC=yS({reflect:!0,type:String,attribute:yq.LANG}),aP=yS({reflect:!1,attribute:!1}),aR=yS({reflect:!1,attribute:!1}),e.QualityRadioButton=void 0;var _1=yN("____private__quality_1"),_2=yN("____private_lang_2"),_5=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_1,{writable:!0,value:void 0}),Object.defineProperty(t,_2,{writable:!0,value:void 0}),t._track=void aB(t),yM(t,_1)[_1]=aO(t,void 0),yM(t,_2)[_2]=aM(t,""),t._updateFromTrack=function(){if(void 0!==t._track){var e=t._track.targetQuality;Array.isArray(e)&&(e=1===e.length?e[0]:void 0),void 0===t._quality?t.checked=void 0===e:t.checked=e===t._quality}t._updateFromQuality()},t._updateFromQuality=function(){t.requestUpdate()},t}i(t,e);var r=t.prototype;return r.handleChange=function(){this._updateTargetQuality()},r._updateTargetQuality=function(){this._track&&this.checked&&(this._track.targetQuality=this._quality)},r.render=function(){var e,t=fV(this.lang),r=void 0===this._quality?t.automaticQualityLabel:null!=(e=vU(t,this._quality))?e:t.unknownQualityLabel;return yn(_J(),r)},v(t,[{key:"_quality",get:function(){return yM(this,_1)[_1]},set:function(e){yM(this,_1)[_1]=e}},{key:"lang",get:function(){return yM(this,_2)[_2]},set:function(e){yM(this,_2)[_2]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(_X,this._updateFromTrack),this._track=e,this._updateFromTrack(),e&&e.addEventListener(_X,this._updateFromTrack))}},{key:"quality",get:function(){return this._quality},set:function(e){this._quality!==e&&(this._quality&&this._quality.removeEventListener(_0,this._updateFromQuality),this._quality=e,this._updateFromTrack(),e&&e.addEventListener(_0,this._updateFromQuality))}}]),t}(aS=e.RadioButton);function _3(){var e=a(['<theoplayer-quality-radio-button lang="','" .track="','" .quality="','"></theoplayer-quality-radio-button>']);return _3=function(){return e},e}function _4(){var e=a(['<theoplayer-radio-group @change="','"><theoplayer-quality-radio-button lang="','" .track="','" .quality="','"></theoplayer-quality-radio-button>',"</theoplayer-radio-group>"]);return _4=function(){return e},e}aO=(aI=(aN=o(_5,[[aL,1,"_quality"],[aC,1,"lang"],[aP,4,"track"],[aR,4,"quality"]],[aE,aA],aS)).e)[0],aM=aI[1],aB=aI[2],e.QualityRadioButton=(aD=aN.c)[0],(0,aD[1])();var _8=["addtrack","removetrack","change"];function _7(){var e=a(["<slot>","</slot>"]);return _7=function(){return e},e}aj=yT("theoplayer-quality-radio-group"),az=fO(["player","lang"]),aH=yL(),aG=yS({reflect:!0,type:String,attribute:yq.LANG}),aQ=yL(),e.QualityRadioGroup=void 0,new(aq=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vI],aV(),t}return i(t,e),t}(l),aF=yN("____private__track_1"),a$=yN("____private_lang_2"),aU=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,aF,{writable:!0,value:void 0}),Object.defineProperty(t,a$,{writable:!0,value:void 0}),yM(t,aF)[aF]=(aZ(t),aW(t)),yM(t,a$)[a$]=aK(t,""),t._onChange=function(){t.dispatchEvent(ve("change",{bubbles:!0}))},t._updateTrack=function(){var e,r,n=t._player?fk(t._player.videoTracks,function(e){return e.enabled}):void 0;t._track!==n&&(null==(e=t._track)||e.removeEventListener("update",t._update),t._track=n,null==(r=t._track)||r.addEventListener("update",t._update),t._update())},t._update=function(){return t.requestUpdate()},t}i(t,e);var r=t.prototype;return r.firstUpdated=function(){this._updateTrack()},r.render=function(){var e=this,t=this._track?this._track.qualities:[];return yn(_4(),this._onChange,this.lang,this._track,void 0,1!==t.length&&vj(t,function(e){return e.uid},function(t){return yn(_3(),e.lang,e._track,t)}))},v(t,[{key:"_track",get:function(){return yM(this,aF)[aF]},set:function(e){yM(this,aF)[aF]=e}},{key:"lang",get:function(){return yM(this,a$)[a$]},set:function(e){yM(this,a$)[a$]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._videoTracks)||t.removeEventListener(_8,this._updateTrack),this._player=e,this._videoTracks=null==e?void 0:e.videoTracks,this._updateTrack(),null==(r=this._videoTracks)||r.addEventListener(_8,this._updateTrack))}}]),t}(yw),aW=(aJ=(aY=o(aU,[[aH,1,"_track"],[aG,1,"lang"],[aQ,4,"player"]],[aj,az],yw)).e)[0],aK=aJ[1],aZ=aJ[2],e.QualityRadioGroup=(aX=aY.c)[0],aV=aX[1],aq),a0=yT("theoplayer-text-track-style-reset-button"),a1=fO(["player","lang"]),a5=yS({reflect:!0,type:String,attribute:yq.LANG}),e.TextTrackStyleResetButton=void 0;var _6=yN("____private_lang_1"),_9=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_6,{writable:!0,value:void 0}),yM(t,_6)[_6]=(a4(t),a3(t,"")),t}i(t,e);var r=t.prototype;return r.handleClick=function(){if(void 0!==this._player){var e=this._player.textTrackStyle;e.fontFamily=void 0,e.fontColor=void 0,e.fontSize=void 0,e.backgroundColor=void 0,e.windowColor=void 0,e.edgeStyle=void 0}},r.render=function(){var e=fV(this.lang);return yn(_7(),e.textTrackStyleResetLabel)},v(t,[{key:"lang",get:function(){return yM(this,_6)[_6]},set:function(e){yM(this,_6)[_6]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player=e}}]),t}(a2=e.Button);function ge(){var e=a(['<theoplayer-menu><span slot="heading"><slot name="heading">',"</slot></span><table><tr><td><span>",'</span></td><td><theoplayer-menu-button menu="quality-menu"><theoplayer-active-quality-display lang="','"></theoplayer-active-quality-display></theoplayer-menu-button></td></tr><tr><td><span>','</span></td><td><theoplayer-menu-button menu="playback-rate-menu"><theoplayer-playback-rate-display lang="','"></theoplayer-playback-rate-display></theoplayer-menu-button></td></tr></table></theoplayer-menu><theoplayer-menu id="quality-menu" menu-close-on-input hidden><span slot="heading">','</span><theoplayer-quality-radio-group lang="','"></theoplayer-quality-radio-group></theoplayer-menu><theoplayer-playback-rate-menu id="playback-rate-menu" lang="','" menu-close-on-input hidden></theoplayer-playback-rate-menu>']);return ge=function(){return e},e}a3=(a7=(a8=o(_9,[[a5,1,"lang"]],[a0,a1],a2)).e)[0],a4=a7[1],e.TextTrackStyleResetButton=(a6=a8.c)[0],(0,a6[1])(),or=yT("theoplayer-settings-menu"),on=fO(["lang"]),oo=yS({reflect:!0,type:String,attribute:yq.LANG}),e.SettingsMenu=void 0,new(ot=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.MenuGroup.styles,[v6]),oi(),r}return i(r,t),r}(l),a9=yN("____private_lang_1"),oe=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,a9,{writable:!0,value:void 0}),yM(t,a9)[a9]=(os(t),ol(t,"")),t}return i(t,e),t.prototype.render=function(){var e=fV(this.lang);return yn(ge(),e.settingsMenuHeading,e.qualityMenuHeading,this.lang,e.playbackRateMenuHeading,this.lang,e.qualityMenuHeading,this.lang,this.lang)},v(t,[{key:"lang",get:function(){return yM(this,a9)[a9]},set:function(e){yM(this,a9)[a9]=e}}]),t}(oa=e.MenuGroup),ol=(oc=(ou=o(oe,[[oo,1,"lang"]],[or,on],oa)).e)[0],os=oc[1],e.SettingsMenu=(oh=ou.c)[0],oi=oh[1],ot);var gt='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M14 22.475h-4q-.475 0-.863-.337-.387-.338-.437-.813l-.3-2.2q-.2-.075-.4-.2t-.375-.25l-2.05.85q-.475.2-.937.05-.463-.15-.738-.6l-1.975-3.45q-.25-.45-.162-.95.087-.5.487-.775l1.775-1.35Q4 12.325 4 12.225v-.45q0-.1.025-.225L2.25 10.2q-.4-.3-.487-.8-.088-.5.162-.925L3.9 5.025q.25-.45.725-.588.475-.137.95.038l2.075.875q.175-.15.363-.263.187-.112.387-.187l.3-2.225q.05-.5.425-.825.375-.325.875-.325h4q.5 0 .875.325t.425.825l.3 2.225q.2.075.4.187.2.113.375.263l2.05-.875q.475-.175.938-.025.462.15.737.575l2 3.45q.25.45.15.95-.1.5-.5.775l-1.775 1.35v.675q0 .1-.025.225l1.775 1.35q.4.275.487.775.088.5-.162.95l-2 3.45q-.25.425-.725.587-.475.163-.95-.037l-2.025-.85q-.175.125-.362.25-.188.125-.388.2l-.3 2.2q-.05.475-.425.813-.375.337-.875.337ZM12 15.5q1.45 0 2.475-1.025Q15.5 13.45 15.5 12q0-1.45-1.025-2.475Q13.45 8.5 12 8.5q-1.45 0-2.475 1.025Q8.5 10.55 8.5 12q0 1.45 1.025 2.475Q10.55 15.5 12 15.5Z"/></svg>\n';function gr(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return gr=function(){return e},e}od=yT("theoplayer-settings-menu-button"),op=fO(["lang"]),of=yS({reflect:!0,type:String,attribute:yq.LANG}),e.SettingsMenuButton=void 0;var gn=yN("____private_lang_1"),gi=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,gn,{writable:!0,value:void 0}),yM(t,gn)[gn]=(o_(t),ov(t,"")),t}i(t,e);var r=t.prototype;return r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel=e.openSettingsMenuAria},r.render=function(){return yn(gr(),fu(gt))},v(t,[{key:"lang",get:function(){return yM(this,gn)[gn]},set:function(e){yM(this,gn)[gn]=e}}]),t}(oy=e.MenuButton);function ga(){var e=a([":host(:not([fullscreen])) [part=exit-icon],:host([fullscreen]) [part=enter-icon]{display:none!important}"]);return ga=function(){return e},e}ov=(ob=(og=o(gi,[[of,1,"lang"]],[od,op],oy)).e)[0],o_=ob[1],e.SettingsMenuButton=(om=og.c)[0],(0,om[1])();var go=pC(ga()),gl="theoplayerfullscreenenter",gs="theoplayerfullscreenexit";function gu(){var e=a(['<span part="enter-icon"><slot name="enter-icon">','</slot></span><span part="exit-icon"><slot name="exit-icon">',"</slot></span>"]);return gu=function(){return e},e}function gc(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return gc=function(){return e},e}oE=yT("theoplayer-fullscreen-button"),oA=fO(["fullscreen","lang"]),oC=yS({reflect:!0,type:Boolean,attribute:yq.FULLSCREEN}),oP=yS({reflect:!0,type:String,attribute:yq.LANG}),e.FullscreenButton=void 0,new(oT=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[go]),oS(),r}return i(r,t),r}(l),ok=yN("____private_fullscreen_1"),ow=yN("____private_lang_2"),ox=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ok,{writable:!0,value:void 0}),Object.defineProperty(t,ow,{writable:!0,value:void 0}),yM(t,ok)[ok]=(oM(t),oR(t,!1)),yM(t,ow)[ow]=oO(t,""),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},r.handleClick=function(){if(this.fullscreen){var e=vt(gs,{bubbles:!0,composed:!0});this.dispatchEvent(e)}else{var t=vt(gl,{bubbles:!0,composed:!0});this.dispatchEvent(t)}},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel=this.fullscreen?e.fullscreenExitAria:e.fullscreenAria},r.render=function(){return yn(gu(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M5.9 19.225q-.475 0-.8-.325-.325-.325-.325-.8V15q0-.475.325-.812.325-.338.8-.338.5 0 .825.338.325.337.325.812v1.95H9q.475 0 .812.325.338.325.338.825 0 .475-.338.8-.337.325-.812.325Zm0-9.075q-.475 0-.8-.338-.325-.337-.325-.812V5.9q0-.475.325-.8.325-.325.8-.325H9q.475 0 .812.325.338.325.338.8 0 .5-.338.825-.337.325-.812.325H7.05V9q0 .475-.325.812-.325.338-.825.338Zm9.1 9.075q-.475 0-.812-.325-.338-.325-.338-.8 0-.5.338-.825.337-.325.812-.325h1.95V15q0-.475.325-.812.325-.338.825-.338.475 0 .8.338.325.337.325.812v3.1q0 .475-.325.8-.325.325-.8.325Zm3.1-9.075q-.5 0-.825-.338-.325-.337-.325-.812V7.05H15q-.475 0-.812-.325-.338-.325-.338-.825 0-.475.338-.8.337-.325.812-.325h3.1q.475 0 .8.325.325.325.325.8V9q0 .475-.325.812-.325.338-.8.338Z"/></svg>\n'),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M9 19.225q-.475 0-.812-.325-.338-.325-.338-.8v-1.95H5.9q-.475 0-.8-.338-.325-.337-.325-.812 0-.475.325-.812.325-.338.8-.338H9q.475 0 .812.338.338.337.338.812v3.1q0 .475-.338.8-.337.325-.812.325ZM5.9 10.15q-.475 0-.8-.338-.325-.337-.325-.812 0-.475.325-.813.325-.337.8-.337h1.95V5.9q0-.475.338-.8.337-.325.812-.325.475 0 .812.325.338.325.338.8V9q0 .475-.338.812-.337.338-.812.338Zm9.1 9.075q-.475 0-.812-.325-.338-.325-.338-.8V15q0-.475.338-.812.337-.338.812-.338h3.1q.475 0 .8.338.325.337.325.812 0 .475-.325.812-.325.338-.8.338h-1.95v1.95q0 .475-.337.8-.338.325-.813.325Zm0-9.075q-.475 0-.812-.338-.338-.337-.338-.812V5.9q0-.475.338-.8.337-.325.812-.325.475 0 .813.325.337.325.337.8v1.95h1.95q.475 0 .8.337.325.338.325.813 0 .475-.325.812-.325.338-.8.338Z"/></svg>\n'))},v(t,[{key:"fullscreen",get:function(){return yM(this,ok)[ok]},set:function(e){yM(this,ok)[ok]=e}},{key:"lang",get:function(){return yM(this,ow)[ow]},set:function(e){yM(this,ow)[ow]=e}}]),t}(oL=e.Button),oR=(oN=(oB=o(ox,[[oC,1,"fullscreen"],[oP,1,"lang"]],[oE,oA],oL)).e)[0],oO=oN[1],oM=oN[2],e.FullscreenButton=(oI=oB.c)[0],oS=oI[1],oT);var gh=["statechange","stereochange"];oD=yT("theoplayer-vr-button"),oF=fO(["player","lang"]),oU=yS({reflect:!1,attribute:!1}),oq=yS({reflect:!0,type:Boolean,attribute:yq.STEREO}),oj=yS({reflect:!0,type:String,attribute:yq.LANG}),e.VRButton=void 0;var gd=yN("____private_stereo_1"),gp=yN("____private_lang_2"),gy=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,gd,{writable:!0,value:void 0}),Object.defineProperty(t,gp,{writable:!0,value:void 0}),yM(t,gd)[gd]=(oH(t),oz(t,!1)),yM(t,gp)[gp]=oV(t,""),t._updateFromPlayer=function(){var e,r=null==(e=t._player)?void 0:e.vr;if(!r||"unavailable"===r.state){t.stereo=!1,t.hidden=!0;return}t.hidden=!1,t.disabled=!r.canPresentVR,t.stereo=r.stereo},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer(),this._updateAriaLabel()},r.handleClick=function(){var e,t=null==(e=this._player)?void 0:e.vr;t&&t.canPresentVR&&(t.stereo=!t.stereo,this.stereo=t.stereo)},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.stereo?this.ariaLabel=e.vrExitAria:this.disabled?this.ariaLabel=e.vrUnavailableAria:this.ariaLabel=e.vrAria},r.render=function(){return yn(gc(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M20.74 6H3.21C2.55 6 2 6.57 2 7.28v9.44c0 .71.55 1.28 1.21 1.28h4.79c.52 0 .98-.34 1.14-.83l1.13-3.37c.16-.49.62-.83 1.14-.83h1.1c.52 0 .98.34 1.14.83l1.13 3.37c.16.49.62.83 1.14.83h4.79c.66 0 1.21-.57 1.21-1.28V7.28C21.95 6.57 21.4 6 20.74 6zM7.5 14.62c-1.17 0-2.12-.95-2.12-2.12s.95-2.12 2.12-2.12 2.12.95 2.12 2.12-.95 2.12-2.12 2.12zm9 0c-1.17 0-2.12-.95-2.12-2.12s.95-2.12 2.12-2.12 2.12.95 2.12 2.12-.95 2.12-2.12 2.12z"/></svg>\n'))},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r,n,i;this._player!==e&&(null==(r=this._player)||null==(t=r.vr)||t.removeEventListener(gh,this._updateFromPlayer),this._player=e,null==(i=this._player)||null==(n=i.vr)||n.addEventListener(gh,this._updateFromPlayer),this._updateFromPlayer())}},{key:"stereo",get:function(){return yM(this,gd)[gd]},set:function(e){yM(this,gd)[gd]=e}},{key:"lang",get:function(){return yM(this,gp)[gp]},set:function(e){yM(this,gp)[gp]=e}}]),t}(o$=e.Button);oz=(oQ=(oG=o(gy,[[oU,4,"player"],[oq,1,"stereo"],[oj,1,"lang"]],[oD,oF],o$)).e)[0],oV=oQ[1],oH=oQ[2],e.VRButton=(oW=oG.c)[0],(0,oW[1])();var gf="important",gv=" !"+gf,g_=yI(function(e){function t(e){var r,n;if(y(this,t),r=p(this,t,[e]),1!==e.type||"style"!==e.name||(null==(n=e.strings)?void 0:n.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");return r}return i(t,e),v(t,[{key:"render",value:function(e){return Object.keys(e).reduce(function(t,r){var n=e[r];return null==n?t:t+((r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase())+":")+n+";"},"")}},{key:"update",value:function(e,t){var r=b(t,1)[0],n=e.element.style;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);var i=!0,a=!1,o=void 0;try{for(var l,s=this.ft[Symbol.iterator]();!(i=(l=s.next()).done);i=!0){var u=l.value;null==r[u]&&(this.ft.delete(u),u.includes("-")?n.removeProperty(u):n[u]=null)}}catch(e){a=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw o}}for(var c in r){var h=r[c];if(null!=h){this.ft.add(c);var d="string"==typeof h&&h.endsWith(gv);c.includes("-")||d?n.setProperty(c,d?h.slice(0,-11):h,d?gf:""):n[c]=h}}return yi}}]),t}(yD));function gg(){var e=a([':host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;pointer-events:none;vertical-align:middle}:host([hidden]){display:none!important}[part=dial]{border:.025em solid #fff;border:.025em solid var(--theoplayer-vr-compass-color,#fff);border-radius:100%;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:26px;font-size:var(--theoplayer-vr-compass-size,26px);height:1em;position:relative;width:1em}[part=dial]:after,[part=dial]:before{content:"";height:0;position:absolute;width:0}[part=dial]:before{border:.075em solid #fff;border:.075em solid var(--theoplayer-vr-compass-color,#fff);border-radius:100%;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}[part=dial]:after{border-bottom:.1em solid #fff;border-bottom:.1em solid var(--theoplayer-vr-compass-color,#fff);border-left:.1em solid transparent;border-right:.1em solid transparent;left:50%;top:0;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%);-webkit-transform-origin:50% 100%;transform-origin:50% 100%}[part=fov]{height:50%;overflow:hidden;-webkit-transform-origin:100% 100%;transform-origin:100% 100%;width:50%}[part=fov],[part=fov]:before{left:0;position:absolute;top:0}[part=fov]:before{border:.35em solid hsla(0,0%,100%,.75);border:.35em solid var(--theoplayer-vr-compass-fov-color,hsla(0,0%,100%,.75));border-radius:100%;-webkit-box-sizing:border-box;box-sizing:border-box;content:"";height:200%;-webkit-transform:skew(10deg);transform:skew(10deg);width:200%}']);return gg=function(){return e},e}var gb=pC(gg());function gm(){var e=a(['<div part="dial"><div part="fov" style="','"></div></div>']);return gm=function(){return e},e}var gk=["statechange","directionchange"];function gw(e,t){void 0!==window.ShadyCSS&&!1===window.ShadyCSS.nativeCss?window.ShadyCSS.styleSubtree(e,t):null!=t&&function(e,t){var r=e.style,n=!0,i=!1,a=void 0;try{for(var o,l=Object.entries(t)[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=b(o.value,2),u=s[0],c=s[1];r.setProperty(u,c)}}catch(e){i=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw a}}}(e,t)}function gx(){var e=a([":host{--thumb-height:var(--theoplayer-range-thumb-height,10px);--track-height:var(--theoplayer-range-track-height,4px);--theoplayer-range-padding:var(--theoplayer-control-padding,10px);background:transparent;background:var(--theoplayer-control-background,transparent);-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;font-size:0;height:44px;height:calc(var(--theoplayer-control-height, 24px) + var(--theoplayer-range-padding)*2);padding-left:10px;padding-left:var(--theoplayer-range-padding-left,var(--theoplayer-range-padding));padding-right:10px;padding-right:var(--theoplayer-range-padding-right,var(--theoplayer-range-padding));pointer-events:auto;position:relative;-webkit-transition:background .15s linear;transition:background .15s linear;vertical-align:middle;width:100px}:host([hidden]){display:none!important}:host(:hover:not([disabled])){background:transparent;background:var(--theoplayer-control-hover-background,var(--theoplayer-control-background,transparent))}[part=container]{height:100%;position:relative}[part=background],[part=pointer]{border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);height:var(--track-height);position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transform:translate(var(--theoplayer-range-track-translate-x,0),calc(var(--theoplayer-range-track-translate-y, 0px) - 50%));transform:translate(var(--theoplayer-range-track-translate-x,0),calc(var(--theoplayer-range-track-translate-y, 0px) - 50%))}[part=background]{background:hsla(0,0%,100%,.2);background:var(--theoplayer-range-track-background,hsla(0,0%,100%,.2));min-width:40px;width:100%;width:var(--theoplayer-range-track-width,100%)}[part=pointer]{background:transparent;background:var(--theoplayer-range-track-pointer-background,transparent);border-right:none;border-right:var(--theoplayer-range-track-pointer-border-right,none);opacity:0;-webkit-transition:visibility .25s,opacity .25s;transition:visibility .25s,opacity .25s;visibility:hidden}:host(:hover:not([disabled])) [part=pointer]{opacity:1;-webkit-transition:visibility .5s,opacity .5s;transition:visibility .5s,opacity .5s;visibility:visible}input[type=range]{-webkit-appearance:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;min-height:100%;padding:0;position:relative;width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background:#fff;background:var(--theoplayer-range-thumb-background,#fff);border:none;border:var(--theoplayer-range-thumb-border,none);border-radius:10px;border-radius:var(--theoplayer-range-thumb-border-radius,10px);-webkit-box-shadow:1px 1px 1px transparent;box-shadow:1px 1px 1px transparent;-webkit-box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);cursor:pointer;height:auto;height:var(--thumb-height,auto);margin-top:calc(0px - var(--thumb-height)/2 + var(--track-height)/2);opacity:1;opacity:var(--theoplayer-range-thumb-opacity,1);-webkit-transform:none;transform:none;-webkit-transform:var(--theoplayer-range-thumb-transform,none);transform:var(--theoplayer-range-thumb-transform,none);-webkit-transition:none;transition:none;-webkit-transition:var(--theoplayer-range-thumb-transition,none);transition:var(--theoplayer-range-thumb-transition,none);width:10px;width:var(--theoplayer-range-thumb-width,10px)}input[type=range]::-moz-range-thumb{background:#fff;background:var(--theoplayer-range-thumb-background,#fff);border:none;border:var(--theoplayer-range-thumb-border,none);border-radius:10px;border-radius:var(--theoplayer-range-thumb-border-radius,10px);box-shadow:1px 1px 1px transparent;box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);cursor:pointer;height:auto;height:var(--thumb-height,auto);opacity:1;opacity:var(--theoplayer-range-thumb-opacity,1);transform:none;transform:var(--theoplayer-range-thumb-transform,none);-moz-transition:none;transition:none;-moz-transition:var(--theoplayer-range-thumb-transition,none);transition:var(--theoplayer-range-thumb-transition,none);translate:0 0;translate:var(--theoplayer-range-track-translate-x,0) var(--theoplayer-range-track-translate-y,0);width:10px;width:var(--theoplayer-range-thumb-width,10px)}input[type=range]::-ms-thumb{background:#fff;background:var(--theoplayer-range-thumb-background,#fff);border:none;border:var(--theoplayer-range-thumb-border,none);border-radius:10px;border-radius:var(--theoplayer-range-thumb-border-radius,10px);box-shadow:1px 1px 1px transparent;box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);cursor:pointer;height:auto;height:var(--thumb-height,auto);opacity:1;opacity:var(--theoplayer-range-thumb-opacity,1);transform:none;transform:var(--theoplayer-range-thumb-transform,none);-ms-transition:none;transition:none;-ms-transition:var(--theoplayer-range-thumb-transition,none);transition:var(--theoplayer-range-thumb-transition,none);width:10px;width:var(--theoplayer-range-thumb-width,10px)}:host([disabled]) input[type=range]::-webkit-slider-thumb{display:none}:host([disabled]) input[type=range]::-moz-range-thumb{display:none}:host([disabled]) input[type=range]::-ms-thumb{display:none}input[type=range]::-webkit-slider-runnable-track{background:#fff;background:var(--theoplayer-range-track-progress-internal,var(--theoplayer-range-bar-color,#fff));border:none;border:var(--theoplayer-range-track-border,none);border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);-webkit-box-shadow:none;box-shadow:none;-webkit-box-shadow:var(--theoplayer-range-track-box-shadow,none);box-shadow:var(--theoplayer-range-track-box-shadow,none);cursor:pointer;height:var(--track-height);min-width:40px;outline:var(--theoplayer-range-track-outline);outline-offset:var(--theoplayer-range-track-outline-offset);-webkit-transform:translate(0);transform:translate(0);-webkit-transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));-webkit-transition:none;transition:none;-webkit-transition:var(--theoplayer-range-track-transition,none);transition:var(--theoplayer-range-track-transition,none);width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-moz-range-track{background:#fff;background:var(--theoplayer-range-track-progress-internal,var(--theoplayer-range-bar-color,#fff));border:none;border:var(--theoplayer-range-track-border,none);border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);box-shadow:none;box-shadow:var(--theoplayer-range-track-box-shadow,none);cursor:pointer;height:var(--track-height);min-width:40px;outline:var(--theoplayer-range-track-outline);outline-offset:var(--theoplayer-range-track-outline-offset);transform:translate(0);transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));-moz-transition:none;transition:none;-moz-transition:var(--theoplayer-range-track-transition,none);transition:var(--theoplayer-range-track-transition,none);width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-ms-track{background:transparent;background:#fff;background:var(--theoplayer-range-track-progress-internal,var(--theoplayer-range-bar-color,#fff));border:none;border:var(--theoplayer-range-track-border,none);border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);box-shadow:none;box-shadow:var(--theoplayer-range-track-box-shadow,none);color:transparent;cursor:pointer;height:var(--track-height);min-width:40px;outline:var(--theoplayer-range-track-outline);outline-offset:var(--theoplayer-range-track-outline-offset);transform:translate(0);transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));-ms-transition:none;transition:none;-ms-transition:var(--theoplayer-range-track-transition,none);transition:var(--theoplayer-range-track-transition,none);width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-ms-fill-lower,input[type=range]::-ms-fill-upper,input[type=range]::-ms-tooltip{display:none}:host([disabled]) input[type=range]::-webkit-slider-runnable-track{cursor:default}:host([disabled]) input[type=range]::-moz-range-track{cursor:default}:host([disabled]) input[type=range]::-ms-track{cursor:default}input[type=range]:focus{-webkit-box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);-webkit-box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));outline:0}input[type=range]:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}input[type=range]:focus::-webkit-slider-runnable-track{outline:0}"]);return gx=function(){return e},e}oJ=yT("theoplayer-vr-compass"),oX=fO(["player"]),o1=yL(),o2=yS({reflect:!1,attribute:!1}),e.VRCompass=void 0,new(oY=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[gb],o0(),t}return i(t,e),t}(l),oK=yN("____private__yaw_1"),oZ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,oK,{writable:!0,value:void 0}),yM(t,oK)[oK]=(o3(t),o5(t,0)),t._updateFromPlayer=function(){var e,r,n,i,a=null==(e=t._player)?void 0:e.vr;if(!a||"unavailable"===a.state||(null==(i=t._player)||null==(n=i.source)||null==(r=n.vr)?void 0:r.nativeVR)){t.hidden=!0;return}t.hidden=!1,t._yaw=a.direction.yaw},t}return i(t,e),t.prototype.render=function(){var e=-this._yaw+40;return yn(gm(),g_({transform:"scale(0.875) rotate("+e+"deg) skew(-10deg)"}))},v(t,[{key:"_yaw",get:function(){return yM(this,oK)[oK]},set:function(e){yM(this,oK)[oK]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(void 0!==this._player&&(null==(t=this._player.vr)||t.removeEventListener(gk,this._updateFromPlayer),this._player.removeEventListener("sourcechange",this._updateFromPlayer)),this._player=e,void 0!==this._player&&(null==(r=this._player.vr)||r.addEventListener(gk,this._updateFromPlayer),this._player.addEventListener("sourcechange",this._updateFromPlayer)),this._updateFromPlayer())}}]),t}(yw),o5=(o8=(o4=o(oZ,[[o1,1,"_yaw"],[o2,4,"player"]],[oJ,oX],yw)).e)[0],o3=o8[1],e.VRCompass=(o7=o4.c)[0],o0=o7[1],oY);var gT=pC(gx()),gE=function(){function e(){this._stops=[["transparent",100]]}var t=e.prototype;return t.add=function(e,t,r){if(!((t=Math.max(t,0))>=(r=Math.min(r,100)))){var n=fw(this._stops,function(e){var r=e[1];return t<=r});if(!(n<0)){var i=this._stops[n],a=i[0],o=i[1],l=[];if(t>0&&l.push([a,t]),l.push([e,r]),r<o)l.push([a,o]),(s=this._stops).splice.apply(s,[].concat([n,1],l));else{for(var s,u,c=n+1;c<this._stops.length&&!(r<this._stops[c][1]);)c++;(u=this._stops).splice.apply(u,[].concat([n,c-n],l))}}}},t.toGradientStops=function(){for(var e,t=[],r=0,n=fd(this._stops);!(e=n()).done;){var i=e.value,a=i[0],o=i[1];o<r||(t.push(a+" "+r+"%"),t.push(a+" "+o+"%"),r=o)}return t.join(", ")},e}();function gA(){var e=a(['<div part="container"><div part="background"></div><div part="pointer" style="','"></div><input type="range" ',' .min="','" .max="','" .step="','" .valueAsNumber="','" .disabled="','" aria-label="','" aria-valuetext="','" aria-live="','" @input="','" @change="','" @keydown="','"> ',"</div>"]);return gA=function(){return e},e}function gS(){var e=a([""]);return gS=function(){return e},e}function gL(){var e=a(["input[type=range]{direction:ltr}.theoplayer-time-range-preview-rail{bottom:100%;left:0;opacity:0;pointer-events:none;position:absolute;-webkit-transition:visibility .25s,opacity .25s;transition:visibility .25s,opacity .25s;visibility:hidden;width:1%}:host(:hover:not([disabled])) .theoplayer-time-range-preview-rail{opacity:1;-webkit-transition:visibility .5s,opacity .5s;transition:visibility .5s,opacity .5s;visibility:visible}[part~=box]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center;bottom:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));position:absolute;text-shadow:0 0 4px rgba(0,0,0,.75);text-shadow:var(--theoplayer-preview-text-shadow,0 0 4px rgba(0,0,0,.75));-webkit-transform:translateX(-50%);transform:translateX(-50%)}"]);return gL=function(){return e},e}li=fO(["deviceType"]),lo=yL(),ll=yS({reflect:!0,type:Boolean,attribute:yq.DISABLED}),ls=yS({reflect:!0,type:Boolean,attribute:yq.HIDDEN}),lu=yS({reflect:!0,type:Boolean,attribute:yq.INERT}),lc=yS({reflect:!1,attribute:!1}),lh=yL(),ld=yS({reflect:!0,type:Number,attribute:"min"}),lp=yS({reflect:!0,type:Number,attribute:"max"}),ly=yS({reflect:!0,attribute:"step",converter:{fromAttribute:function(e){return null==e||"any"===e?"any":Number(e)}}}),lf=yS({reflect:!0,type:String,attribute:yq.DEVICE_TYPE}),lv=yS({reflect:!0,type:String,attribute:"aria-live"}),e.Range=void 0,new(ln=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[gT],la(),t}return i(t,e),t}(l),o6=yN("____private__pointerWidth_1"),o9=yN("____private_step_2"),le=yN("____private_deviceType_3"),lt=yN("____private_ariaLive_4"),lr=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,o6,{writable:!0,value:void 0}),Object.defineProperty(t,o9,{writable:!0,value:void 0}),Object.defineProperty(t,le,{writable:!0,value:void 0}),Object.defineProperty(t,lt,{writable:!0,value:void 0}),lk(t),t._rangeRef=fe(),t._min=0,t._max=100,t._value=0,t._disabled=!1,t._hidden=!1,t._inert=!1,t._rangeWidth=0,t._thumbWidth=10,yM(t,o6)[o6]=l_(t,0),yM(t,o9)[o9]=lg(t,"any"),yM(t,le)[le]=lb(t,"desktop"),yM(t,lt)[lt]=lm(t,null),t._onInput=function(e){t.value=e.target.valueAsNumber},t._updatePointerBar=function(e){var r=t._rangeRef.value;if(!t.disabled&&!t.inert&&r){var n=r.getBoundingClientRect(),i=(e.clientX-n.left)/n.width;i=Math.max(0,Math.min(1,i)),t.updatePointer_(i,n)}},t._onKeyDown=function(e){t.handleKeyDown_(e)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateRange(),this.addEventListener("pointermove",this._updatePointerBar)},r.disconnectedCallback=function(){this.removeEventListener("pointermove",this._updatePointerBar)},r.handleInput=function(){this._updateRange()},r._updateRange=function(e){this.hidden||(e||this.updateCachedWidths_(),this.updateBar_())},r.updateBar_=function(){gw(this,{"--theoplayer-range-track-progress-internal":"linear-gradient(to right, "+this.getBarColors().toGradientStops()+")"})},r.getBarColors=function(){var e=this.value,t=this.min,r=this.max,n=(e-t)/(r-t)*100;isNaN(n)&&(n=0);var i=0;t<e&&e<r&&(i=this._thumbWidth*(.5-n/100)/this._rangeWidth*100);var a=new gE;return a.add("var(--theoplayer-range-bar-color, #fff)",0,n+i),a},r.updateCachedWidths_=function(){var e,t,r=null!=(e=null==(t=this._rangeRef.value)?void 0:t.offsetWidth)?e:0;r>0&&(this._rangeWidth=r);var n=parseInt(getComputedStyle(this).getPropertyValue("--theoplayer-range-thumb-width")||"10px");n>0&&(this._thumbWidth=n)},r.getMinimumStepForVisibleChange_=function(){var e=this.min,t=this.max-e;return t<=0?NaN:t/this._rangeWidth},r.updatePointer_=function(e,t){this._pointerWidth=e*t.width},r.handleKeyDown_=function(e){"tv"===this.deviceType&&yz(e.keyCode)&&(e.keyCode===yj.LEFT||e.keyCode===yj.RIGHT?e.stopPropagation():(e.keyCode===yj.UP||e.keyCode===yj.DOWN)&&e.preventDefault())},r.render=function(){return yn(gA(),g_({width:""+this._pointerWidth+"px"}),fn(this._rangeRef),this.min,this.max,this.step,this.rawValue,this.disabled||this.inert,this.getAriaLabel(),this.getAriaValueText(),this.ariaLive,this._onInput,this._onInput,this._onKeyDown,this.renderRangeExtras())},r.renderRangeExtras=function(){return yn(gS())},v(t,[{key:"_pointerWidth",get:function(){return yM(this,o6)[o6]},set:function(e){yM(this,o6)[o6]=e}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled!==e&&(this._disabled=e,this.setAttribute("aria-disabled",this._disabled?"true":"false"))}},{key:"hidden",get:function(){return this._hidden},set:function(e){this._hidden!==e&&(this._hidden=e,this._updateRange())}},{key:"inert",get:function(){return this._inert},set:function(e){this._inert=e}},{key:"value",get:function(){return this.rawValue},set:function(e){var t=e;isNaN(this.min)||(t=Math.max(this.min,t)),isNaN(this.max)||(t=Math.min(this.max,t)),this.rawValue!==t&&(this.rawValue=t,this.handleInput())}},{key:"rawValue",get:function(){return this._value},set:function(e){this._value=e}},{key:"min",get:function(){return this._min},set:function(e){this._min=e,this._updateRange()}},{key:"max",get:function(){return this._max},set:function(e){this._max=e,this._updateRange()}},{key:"step",get:function(){return yM(this,o9)[o9]},set:function(e){yM(this,o9)[o9]=e}},{key:"deviceType",get:function(){return yM(this,le)[le]},set:function(e){yM(this,le)[le]=e}},{key:"ariaLive",get:function(){return yM(this,lt)[lt]},set:function(e){yM(this,lt)[lt]=e}}]),t}(yw),l_=(lx=(lw=o(lr,[[lo,1,"_pointerWidth"],[ll,4,"disabled"],[ls,4,"hidden"],[lu,4,"inert"],[lc,4,"value"],[lh,4,"rawValue"],[ld,4,"min"],[lp,4,"max"],[ly,1,"step"],[lf,1,"deviceType"],[lv,1,"ariaLive"]],[li],yw)).e)[0],lg=lx[1],lb=lx[2],lm=lx[3],lk=lx[4],e.Range=(lT=lw.c)[0],la=lT[1],ln);var gC=pC(gL()),gP="theoplayerpreviewtimechange";function gR(e){return"linear"===e.type}function gO(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block}:host([hidden]){display:none!important}canvas{background:#fff;background:var(--theoplayer-preview-thumbnail-background,#fff);border-radius:2px;border-radius:var(--theoplayer-preview-thumbnail-padding,2px);display:none;padding:2px;padding:var(--theoplayer-preview-thumbnail-padding,2px)}"]);return gO=function(){return e},e}var gM=pC(gO());function gB(){var e=a(["<canvas ",' style="','"></canvas>']);return gB=function(){return e},e}var gN=["addtrack","removetrack"];function gI(e){return"metadata"===e.kind&&"thumbnails"===e.label}function gD(){var e=a(["<span>","</span>"]);return gD=function(){return e},e}lL=yT("theoplayer-preview-thumbnail"),lC=fO(["player","previewTime"]),lR=yL(),lO=yS({reflect:!1,attribute:!1}),lM=yL(),e.PreviewThumbnail=void 0,new(lS=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[gM],lP(),t}return i(t,e),t}(l),lE=yN("____private__thumbnailVisible_1"),lA=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,lE,{writable:!0,value:void 0}),lN(t),t._canvasRef=fe(),t._previewTime=NaN,yM(t,lE)[lE]=lB(t,!1),t._updateThumbnailTextTrack=function(){var e=t._thumbnailTextTrack,r=t._player?fk(t._player.textTracks,gI):void 0;e!==r&&(t._thumbnailTextTrack=r,t.updateThumbnail_())},t._thumbnailImageSource=document.createElement("img"),t._thumbnailImageSource.decoding="async",t}i(t,e);var r=t.prototype;return r.updateThumbnail_=function(){var e=this._thumbnailTextTrack;if(void 0===e)return void this.hideThumbnail_();"disabled"===e.mode&&(e.mode="hidden");var t=function(e,t){if(0!==e.length){for(var r,n=e[0],i=fd(e);!(r=i()).done;){var a=r.value;if(a.startTime<=t)n=a;else if(t>=a.endTime)break}return n}}(e.cues,this._previewTime);if(void 0===t)return void this.hideThumbnail_();var r=t.content.trim(),n=function(e){var t=e.match(/^(.+)#xywh=(\d+),(\d+),(\d+),(\d+)$/);if(t)return{url:t[1],x:+t[2],y:+t[3],w:+t[4],h:+t[5]}}(r),i=n?n.url:r;(i=new URL(i,e.src||location.href).href,this._lastLoadedThumbnailUrl!==i)?this.loadThumbnailImage_(i):this.showThumbnail_(n)},r.loadThumbnailImage_=function(e){var t=this;if(this._thumbnailImageSource.src!==e){var r=function(){t._lastLoadedThumbnailUrl=e,t.updateThumbnail_()};"function"==typeof this._thumbnailImageSource.decode?(this._thumbnailImageSource.src=e,this._thumbnailImageSource.decode().then(r,fv)):(this._thumbnailImageSource.onload=r,this._thumbnailImageSource.src="",this._thumbnailImageSource.src=e)}},r.showThumbnail_=function(e){var t,r=this._canvasRef.value;!r||(null!=this._canvasContext||(this._canvasContext=null!=(t=r.getContext("2d"))?t:void 0),this._canvasContext&&(e?(r.width=e.w,r.height=e.h,this._canvasContext.drawImage(this._thumbnailImageSource,e.x,e.y,e.w,e.h,0,0,e.w,e.h)):(r.width=this._thumbnailImageSource.naturalWidth,r.height=this._thumbnailImageSource.naturalHeight,this._canvasContext.drawImage(this._thumbnailImageSource,0,0)),this._thumbnailVisible=!0))},r.hideThumbnail_=function(){this._thumbnailVisible=!1},r.render=function(){var e={display:this._thumbnailVisible?"block":"none"};return yn(gB(),fn(this._canvasRef),g_(e))},v(t,[{key:"_thumbnailVisible",get:function(){return yM(this,lE)[lE]},set:function(e){yM(this,lE)[lE]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackList)||t.removeEventListener(gN,this._updateThumbnailTextTrack),this._player=e,this._textTrackList=null==e?void 0:e.textTracks,this._updateThumbnailTextTrack(),null==(r=this._textTrackList)||r.addEventListener(gN,this._updateThumbnailTextTrack))}},{key:"previewTime",get:function(){return this._previewTime},set:function(e){this._previewTime=e,this.updateThumbnail_()}}]),t}(yw),lB=(lD=(lI=o(lA,[[lR,1,"_thumbnailVisible"],[lO,4,"player"],[lM,4,"previewTime"]],[lL,lC],yw)).e)[0],lN=lD[1],e.PreviewThumbnail=(lF=lI.c)[0],lP=lF[1],lS);var gF=["timeupdate","seeking","seeked","durationchange"];function g$(){var e=a(['<div class="theoplayer-time-range-preview-rail" style="','"><div part="box preview-box" ','><slot name="preview"><theoplayer-preview-thumbnail></theoplayer-preview-thumbnail><theoplayer-preview-time-display remaining-when-live></theoplayer-preview-time-display></slot></div></div>']);return g$=function(){return e},e}lG=yT("theoplayer-preview-time-display"),lQ=fO(["player","previewTime","streamType"]),lK=yL(),lZ=yS({reflect:!0,type:Boolean,attribute:yq.REMAINING}),lY=yS({reflect:!0,type:Boolean,attribute:yq.REMAINING_WHEN_LIVE}),lJ=yS({reflect:!0,type:String,attribute:yq.STREAM_TYPE}),lX=yS({reflect:!1,attribute:!1}),l0=yL(),e.PreviewTimeDisplay=void 0,new(lH=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[f4],lW(),t}return i(t,e),t}(l),l$=yN("____private_previewTime_1"),lU=yN("____private_remaining_2"),lq=yN("____private_remainingWhenLive_3"),lj=yN("____private_streamType_4"),lz=yN("____private__endTime_5"),lV=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,l$,{writable:!0,value:void 0}),Object.defineProperty(t,lU,{writable:!0,value:void 0}),Object.defineProperty(t,lq,{writable:!0,value:void 0}),Object.defineProperty(t,lj,{writable:!0,value:void 0}),Object.defineProperty(t,lz,{writable:!0,value:void 0}),yM(t,l$)[l$]=(l8(t),l1(t,NaN)),yM(t,lU)[lU]=l2(t,!1),yM(t,lq)[lq]=l5(t,!1),yM(t,lj)[lj]=l3(t,"vod"),yM(t,lz)[lz]=l4(t,0),t._updateFromPlayer=function(){var e,r=t._player?t._player.duration:NaN,n=null==(e=t._player)?void 0:e.seekable;t._endTime=isFinite(r)?r:n&&n.length>0?n.end(0):NaN},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer()},r.render=function(){var e=this.previewTime,t=this._endTime,r=this.remaining||this.remainingWhenLive&&"vod"!==this.streamType;return r&&(e=-((t||0)-e)),yn(gD(),f0(e,t,r))},v(t,[{key:"previewTime",get:function(){return yM(this,l$)[l$]},set:function(e){yM(this,l$)[l$]=e}},{key:"remaining",get:function(){return yM(this,lU)[lU]},set:function(e){yM(this,lU)[lU]=e}},{key:"remainingWhenLive",get:function(){return yM(this,lq)[lq]},set:function(e){yM(this,lq)[lq]=e}},{key:"streamType",get:function(){return yM(this,lj)[lj]},set:function(e){yM(this,lj)[lj]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(gF,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(gF,this._updateFromPlayer))}},{key:"_endTime",get:function(){return yM(this,lz)[lz]},set:function(e){yM(this,lz)[lz]=e}}]),t}(yw),l1=(l6=(l7=o(lV,[[lK,1,"previewTime"],[lZ,1,"remaining"],[lY,1,"remainingWhenLive"],[lJ,1,"streamType"],[lX,4,"player"],[l0,1,"_endTime"]],[lG,lQ],yw)).e)[0],l2=l6[1],l5=l6[2],l3=l6[3],l4=l6[4],l8=l6[5],e.PreviewTimeDisplay=(l9=l7.c)[0],lW=l9[1],lH);var gU=["timeupdate","durationchange","ratechange","seeking","seeked"],gq=["play","pause","ended","durationchange","readystatechange","error"],gj=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];si=yT("theoplayer-time-range"),sa=fO(["player","streamType","deviceType","lang"]),ss=yS({reflect:!1,attribute:!1}),su=yS({reflect:!0,type:String,attribute:yq.LANG}),sc=yS({reflect:!0,type:String,attribute:yq.STREAM_TYPE}),sh=yS({reflect:!0,type:Boolean,attribute:yq.SHOW_AD_MARKERS}),sd=yL(),e.TimeRange=void 0,new(sn=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Range.styles,[gC]),so(),r}return i(r,t),r}(l),se=yN("____private_lang_1"),st=yN("____private__previewRailTransform_2"),sr=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,se,{writable:!0,value:void 0}),Object.defineProperty(t,st,{writable:!0,value:void 0}),sf(t),t._previewBoxEl=fe(),t._streamType="vod",t._showAdMarkers=!1,t._pausedWhileScrubbing=!1,t._autoAdvanceId=0,t._lastUpdateTime=0,t._lastCurrentTime=0,t._lastPlaybackRate=0,yM(t,se)[se]=sp(t,""),t._updateFromPlayer=function(){if(void 0!==t._player){t._lastUpdateTime=performance.now(),t._lastCurrentTime=t._player.currentTime,t._lastPlaybackRate=t._player.playbackRate;var e,r,n=t._player.seekable,i=t._lastCurrentTime;0!==n.length?(e=n.start(0),r=n.end(0)):(e=0,r=t._player.duration),isFinite(t._lastCurrentTime)||(i=t._player.duration===1/0?r:e),t.min=e,t.max=r,t.rawValue=i,t.updateDisabled_(n),t._updateRange()}},t._pauseOnScrubStart=function(){t._pausedWhileScrubbing||t.disabled||t.inert||void 0===t._player||t._player.paused||(t._pausedWhileScrubbing=!0,t._player.pause(),document.addEventListener("mouseup",t._playOnScrubEnd),document.addEventListener("pointerup",t._playOnScrubEnd),document.addEventListener("pointercancel",t._playOnScrubEnd))},t._playOnScrubEnd=function(){t._pausedWhileScrubbing&&(t._pausedWhileScrubbing=!1,document.removeEventListener("mouseup",t._playOnScrubEnd),document.removeEventListener("pointerup",t._playOnScrubEnd),document.removeEventListener("pointercancel",t._playOnScrubEnd),void 0!==t._player&&t._player.paused&&t._player.play())},t._toggleAutoAdvance=function(){t.shouldAutoAdvance_()?0===t._autoAdvanceId&&(t._updateFromPlayer(),t._autoAdvanceId=requestAnimationFrame(t._autoAdvanceWhilePlaying)):0!==t._autoAdvanceId&&(t._updateFromPlayer(),cancelAnimationFrame(t._autoAdvanceId),t._autoAdvanceId=0)},t._autoAdvanceWhilePlaying=function(){if(!t.shouldAutoAdvance_()){t._autoAdvanceId=0;return}var e=(performance.now()-t._lastUpdateTime)/1e3,r=t._lastCurrentTime+e*t._lastPlaybackRate;Math.abs(r-t.value)>=t.getMinimumStepForVisibleChange_()&&(t.rawValue=r,t._updateRange(!0)),t._autoAdvanceId=requestAnimationFrame(t._autoAdvanceWhilePlaying)},yM(t,st)[st]=sy(t,""),t._onAdChange=function(){t._updateRange()},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("min")||(this.min=0),this.hasAttribute("max")||(this.max=1e3),this.hasAttribute(yq.ARIA_LIVE)||(this.ariaLive="off"),this._toggleAutoAdvance()},r.firstUpdated=function(e){var t,r;null==(t=this._rangeRef.value)||t.addEventListener("mousedown",this._pauseOnScrubStart),null==(r=this._rangeRef.value)||r.addEventListener("pointerdown",this._pauseOnScrubStart)},r.disconnectedCallback=function(){var t,r;e.prototype.disconnectedCallback.call(this),null==(t=this._rangeRef.value)||t.removeEventListener("mousedown",this._pauseOnScrubStart),null==(r=this._rangeRef.value)||r.removeEventListener("pointerdown",this._pauseOnScrubStart),this._toggleAutoAdvance()},r.updateDisabled_=function(e){void 0===e&&(e=null==(t=this._player)?void 0:t.seekable);var t,r="live"===this.streamType;void 0!==e&&(r||(r=0===e.length)),this.disabled=r},r.getAriaLabel=function(){return fV(this.lang).seekAria},r.getAriaValueText=function(){var e=fV(this.lang),t=f2(e,this.value),r=f2(e,this.max);return t&&r?e.timeOfTotalAria(t,r):e.unknownTimeAria},r.handleInput=function(){void 0!==this._player&&this._player.currentTime!==this.value&&(this._player.currentTime=this.value),e.prototype.handleInput.call(this)},r.shouldAutoAdvance_=function(){return this.isConnected&&void 0!==this._player&&!this._player.paused&&!this._player.ended&&!this._player.errorObject&&this._player.readyState>=3&&isFinite(this._lastCurrentTime)&&this.needToUpdateEveryFrame_()},r.needToUpdateEveryFrame_=function(){return this.getMinimumStepForVisibleChange_()<.25*this._lastPlaybackRate},r.updatePointer_=function(t,r){e.prototype.updatePointer_.call(this,t,r);var n=r.left+t*r.width,i=this._previewBoxEl.value;if(i){var a=i.getBoundingClientRect(),o=((n=Math.max(r.left+a.width/2,Math.min(r.right-a.width/2,n)))-r.left)/r.width;this._previewRailTransform="translateX("+(100*o*100).toFixed(6)+"%)"}if(void 0!==this._player){var l=this.min,s=vt(gP,{bubbles:!0,composed:!0,detail:{previewTime:l+t*(this.max-l)}});this.dispatchEvent(s)}},r.getBarColors=function(){var t=e.prototype.getBarColors.call(this);if(!this.showAdMarkers||!this._player||!this._player.ads||this._player.ads.playing)return t;for(var r,n=this.min,i=this.max,a=fd(this._player.ads.scheduledAdBreaks);!(r=a()).done;){var o=r.value;if(void 0===o.ads||!(o.ads.length>0)||o.ads.some(gR)){var l=o.timeOffset;if(l<0&&(l=this._player.duration),n<=l&&l<=i){var s=(l-n)/(i-n)*100,u=void 0,c=void 0;s+1<100?(u=s,c=s+1):(u=99,c=100),t.add("var(--theoplayer-time-range-ad-marker-color, #ffc50f)",u,c)}}}return t},r.handleKeyDown_=function(t){e.prototype.handleKeyDown_.call(this,t),"tv"===this.deviceType&&t.keyCode===yj.ENTER&&void 0!==this._player&&(this._player.paused?this._player.play():this._player.pause())},r.renderRangeExtras=function(){return yn(g$(),g_({transform:this._previewRailTransform}),fn(this._previewBoxEl))},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener(gU,this._updateFromPlayer),this._player.removeEventListener(gq,this._toggleAutoAdvance)),null==(t=this._ads)||t.removeEventListener(gj,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),this._toggleAutoAdvance(),void 0!==this._player&&(this._player.addEventListener(gU,this._updateFromPlayer),this._player.addEventListener(gq,this._toggleAutoAdvance)),null==(r=this._ads)||r.addEventListener(gj,this._onAdChange))}},{key:"lang",get:function(){return yM(this,se)[se]},set:function(e){yM(this,se)[se]=e}},{key:"streamType",get:function(){return this._streamType},set:function(e){this._streamType=e,this.updateDisabled_()}},{key:"showAdMarkers",get:function(){return this._showAdMarkers},set:function(e){this._showAdMarkers=e,this._updateRange()}},{key:"_previewRailTransform",get:function(){return yM(this,st)[st]},set:function(e){yM(this,st)[st]=e}}]),t}(sl=e.Range),sp=(s_=(sv=o(sr,[[ss,4,"player"],[su,1,"lang"],[sc,4,"streamType"],[sh,4,"showAdMarkers"],[sd,1,"_previewRailTransform"]],[si,sa],sl)).e)[0],sy=s_[1],sf=s_[2],e.TimeRange=(sg=sv.c)[0],so=sg[1],sn),sb=yT("theoplayer-volume-range"),sm=fO(["player","deviceType","lang"]),sw=yS({reflect:!0,type:String,attribute:yq.LANG}),sx=yS({reflect:!1,attribute:!1}),e.VolumeRange=void 0;var gz=yN("____private_lang_1"),gV=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,gz,{writable:!0,value:void 0}),yM(t,gz)[gz]=(sE(t),sT(t,"")),t._updateFromPlayer=function(){void 0!==t._player&&(t.rawValue=t._player.volume,t._updateRange())},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("min")||(this.min=0),this.hasAttribute("max")||(this.max=1)},r.getAriaLabel=function(){return fV(this.lang).volumeAria},r.getAriaValueText=function(){return fV(this.lang).formatPercentage(this.value/this.max)},r.handleInput=function(){void 0!==this._player&&this._player.volume!==this.value&&(this._player.volume=this.value),e.prototype.handleInput.call(this)},v(t,[{key:"lang",get:function(){return yM(this,gz)[gz]},set:function(e){yM(this,gz)[gz]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener("volumechange",this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener("volumechange",this._updateFromPlayer))}}]),t}(sk=e.Range);function gH(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px;gap:var(--theoplayer-error-icon-gap,10px);max-width:80%;max-width:var(--theoplayer-error-max-width,80%);min-width:0;min-width:var(--theoplayer-error-min-width,0)}:host([hidden]){display:none!important}[part~=icon]{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;font-size:0}::slotted(img),::slotted(svg),img,svg{fill:#fff;fill:var(--theoplayer-error-icon-color,var(--theoplayer-icon-color,#fff));height:48px;height:var(--theoplayer-error-icon-height,48px);max-height:100%;max-width:100%;min-width:100%;vertical-align:middle;width:48px;width:var(--theoplayer-error-icon-width,48px)}[part~=heading]{color:#fff;color:var(--theoplayer-error-heading-color,#fff);line-height:48px;line-height:var(--theoplayer-error-icon-height,48px);margin:0 0 10px;margin:var(--theoplayer-error-heading-margin,0 0 10px);padding:0}[part~=message]{color:#fff;color:var(--theoplayer-error-message-color,#fff);margin:0;margin:var(--theoplayer-error-message-margin,0);padding:0}[part~=fullscreen-controls]{-webkit-box-pack:end;-ms-flex-pack:end;bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:flex-end;left:0;position:absolute;right:0}:host(:not([fullscreen])) [part~=fullscreen-controls]{display:none!important}"]);return gH=function(){return e},e}sT=(sS=(sA=o(gV,[[sw,1,"lang"],[sx,4,"player"]],[sb,sm],sk)).e)[0],sE=sS[1],e.VolumeRange=(sL=sA.c)[0],(0,sL[1])();var gG=pC(gH());function gQ(){var e=a(['<div part="icon"><slot name="icon">','</slot></div><div part="text"><h1 part="heading"><slot name="heading">','</slot></h1><p part="message"><slot name="message">','</slot></p></div><div part="fullscreen-controls"><slot name="fullscreen-controls"><theoplayer-fullscreen-button></theoplayer-fullscreen-button></slot></div>']);return gQ=function(){return e},e}sB=yT("theoplayer-error-display"),sN=fO(["error","fullscreen","lang"]),sD=yS({reflect:!1,attribute:!1}),sF=yS({reflect:!0,type:Boolean,attribute:yq.FULLSCREEN}),s$=yS({reflect:!0,type:String,attribute:yq.LANG}),e.ErrorDisplay=void 0,new(sM=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[gG],t.shadowRootOptions=r({},yw.shadowRootOptions,{delegatesFocus:!0}),sI(),t}return i(t,e),t}(l),sC=yN("____private_error_1"),sP=yN("____private_fullscreen_2"),sR=yN("____private_lang_3"),sO=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,sC,{writable:!0,value:void 0}),Object.defineProperty(t,sP,{writable:!0,value:void 0}),Object.defineProperty(t,sR,{writable:!0,value:void 0}),yM(t,sC)[sC]=(sz(t),sU(t)),yM(t,sP)[sP]=sq(t,!1),yM(t,sR)[sR]=sj(t,""),t}return i(t,e),t.prototype.render=function(){var e,t,r=fV(this.lang);return yn(gQ(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" height="48" width="48"><path d="M24.15 26.4q.85 0 1.425-.575.575-.575.575-1.425v-9.2q0-.8-.6-1.375t-1.4-.575q-.85 0-1.425.575-.575.575-.575 1.425v9.2q0 .8.6 1.375t1.4.575ZM24 34.7q1 0 1.625-.625t.625-1.625q0-.95-.625-1.625T24 30.15q-1 0-1.625.675t-.625 1.625q0 1 .625 1.625T24 34.7Zm0 10q-4.4 0-8.175-1.575Q12.05 41.55 9.25 38.75q-2.8-2.8-4.375-6.575Q3.3 28.4 3.3 24q0-4.35 1.575-8.125Q6.45 12.1 9.25 9.3q2.8-2.8 6.575-4.425Q19.6 3.25 24 3.25q4.35 0 8.125 1.625Q35.9 6.5 38.7 9.3q2.8 2.8 4.425 6.575Q44.75 19.65 44.75 24q0 4.4-1.625 8.175Q41.5 35.95 38.7 38.75q-2.8 2.8-6.575 4.375Q28.35 44.7 24 44.7Z"/></svg>\n'),r.errorHeading,null!=(e=null==(t=this.error)?void 0:t.message)?e:"")},v(t,[{key:"error",get:function(){return yM(this,sC)[sC]},set:function(e){yM(this,sC)[sC]=e}},{key:"fullscreen",get:function(){return yM(this,sP)[sP]},set:function(e){yM(this,sP)[sP]=e}},{key:"lang",get:function(){return yM(this,sR)[sR]},set:function(e){yM(this,sR)[sR]=e}}]),t}(yw),sU=(sH=(sV=o(sO,[[sD,1,"error"],[sF,1,"fullscreen"],[s$,1,"lang"]],[sB,sN],yw)).e)[0],sq=sH[1],sj=sH[2],sz=sH[3],e.ErrorDisplay=(sG=sV.c)[0],sI=sG[1],sM),sQ=yL(),sW=yS({reflect:!0,state:!0,type:String,attribute:yq.CAST_STATE});var gW=function(e){function t(t){var r;return r=e.call(this,t)||this,sK(r),r._castState="unavailable",r._updateCastState=function(){r.castState=r._castApi?r._castApi.state:"unavailable"},r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateCastState()},r.handleClick=function(){if(this._castApi){this._updateCastState();var e=this.castState;"available"===e?this._castApi.start():("connecting"===e||"connected"===e)&&this._castApi.stop()}},v(t,[{key:"castApi",get:function(){return this._castApi},set:function(e){void 0!==this._castApi&&this._castApi.removeEventListener("statechange",this._updateCastState),this._castApi=e,this._updateCastState(),void 0!==this._castApi&&this._castApi.addEventListener("statechange",this._updateCastState)}},{key:"castState",get:function(){return this._castState},set:function(e){this._castState=e}}]),t}(e.Button);function gK(){var e=a(['<span part="icon"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" height="24" width="24"><defs><clipPath id="theoplayer-chromecast-rings-mask-','"><path d="M0-36h44V0H0z"/></clipPath></defs><path class="theoplayer-chromecast-outer" d="M2 10a4 4 0 0 1 4-4h36a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H28v-4h14V10H6v6H2z"/><path class="theoplayer-chromecast-inner" d="M10 14h28v20H26.74A26 26 0 0 0 10 17.26z"/><g class="theoplayer-chromecast-rings" fill="none" stroke="currentColor" stroke-width="4" transform="translate(2 42)" clip-path="url(#theoplayer-chromecast-rings-mask-',')"><circle stroke="none" cx="0" cy="0" r="30"/><circle class="theoplayer-chromecast-ring theoplayer-chromecast-ring1" stroke-width="6" cx="0" cy="0" r="3"/><circle class="theoplayer-chromecast-ring theoplayer-chromecast-ring2" cx="0" cy="0" r="12"/><circle class="theoplayer-chromecast-ring theoplayer-chromecast-ring3" cx="0" cy="0" r="20"/><path class="theoplayer-chromecast-ring theoplayer-chromecast-ring4" stroke-linecap="round" d="M0-20A20 20 0 0 1 20 0"/></g></svg></span>']);return gK=function(){return e},e}function gZ(){var e=a([":host([cast-state=unavailable]){display:none!important}:host([cast-state=connecting]) .theoplayer-chromecast-ring{-webkit-animation:.9s linear infinite;animation:.9s linear infinite}:host([cast-state=connecting]) .theoplayer-chromecast-ring1{-webkit-animation-name:theoplayer-chromecast-connecting-ring1;animation-name:theoplayer-chromecast-connecting-ring1}:host([cast-state=connecting]) .theoplayer-chromecast-ring2{-webkit-animation-name:theoplayer-chromecast-connecting-ring2;animation-name:theoplayer-chromecast-connecting-ring2}:host([cast-state=connecting]) .theoplayer-chromecast-ring3{-webkit-animation-name:theoplayer-chromecast-connecting-ring3;animation-name:theoplayer-chromecast-connecting-ring3}:host([cast-state=connecting]) .theoplayer-chromecast-ring4{-webkit-animation-name:theoplayer-chromecast-connecting-ring4;animation-name:theoplayer-chromecast-connecting-ring4}.theoplayer-chromecast-inner{opacity:0;-webkit-transition:opacity .5s ease-in-out;transition:opacity .5s ease-in-out}:host([cast-state=connected]) .theoplayer-chromecast-inner{opacity:1}.theoplayer-chromecast-rings{clip-path:polygon(50% -100%,50% 50%,100% 50%,100% -100%)}@-webkit-keyframes theoplayer-chromecast-connecting-ring1{0%,37.5%{-webkit-transform:scale(0);transform:scale(0)}62.5%,to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes theoplayer-chromecast-connecting-ring1{0%,37.5%{-webkit-transform:scale(0);transform:scale(0)}62.5%,to{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes theoplayer-chromecast-connecting-ring2{0%,20%{stroke-width:24;-webkit-transform:scale(.25);transform:scale(.25)}35%{stroke-width:10;-webkit-transform:scale(.5);transform:scale(.5)}55%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@keyframes theoplayer-chromecast-connecting-ring2{0%,20%{stroke-width:24;-webkit-transform:scale(.25);transform:scale(.25)}35%{stroke-width:10;-webkit-transform:scale(.5);transform:scale(.5)}55%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes theoplayer-chromecast-connecting-ring3{0%,15%{stroke-width:6.66667;-webkit-transform:scale(.6);transform:scale(.6)}45%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@keyframes theoplayer-chromecast-connecting-ring3{0%,15%{stroke-width:6.66667;-webkit-transform:scale(.6);transform:scale(.6)}45%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes theoplayer-chromecast-connecting-ring4{0%{stroke-width:4;stroke-dashoffset:0;stroke-dasharray:32,99;opacity:1;-webkit-transform:scale(1);transform:scale(1)}35%{stroke-width:2.8571;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.4);transform:scale(1.4)}50%{stroke-width:0;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.5);transform:scale(1.5)}50.001%,to{opacity:0}}@keyframes theoplayer-chromecast-connecting-ring4{0%{stroke-width:4;stroke-dashoffset:0;stroke-dasharray:32,99;opacity:1;-webkit-transform:scale(1);transform:scale(1)}35%{stroke-width:2.8571;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.4);transform:scale(1.4)}50%{stroke-width:0;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.5);transform:scale(1.5)}50.001%,to{opacity:0}}"]);return gZ=function(){return e},e}sK=o(gW,[[sQ,4,"castApi"],[sW,4,"castState"]],[]).e[0];var gY=pC(gZ()),gJ=0;function gX(){var e=a([":host{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px;gap:var(--theoplayer-chromecast-display-icon-gap,10px);padding:10px;padding:var(--theoplayer-control-padding,10px);pointer-events:none}:host([hidden]){display:none!important}[part~=icon]{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;font-size:0}::slotted(img),::slotted(svg),img,svg{fill:#fff;fill:var(--theoplayer-chromecast-display-icon-color,var(--theoplayer-icon-color,#fff));height:48px;height:var(--theoplayer-chromecast-display-icon-height,48px);max-height:100%;max-width:100%;min-width:100%;vertical-align:middle;width:48px;width:var(--theoplayer-chromecast-display-icon-width,48px)}[part=text]{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap}[part=heading]{color:#fff;color:var(--theoplayer-chromecast-display-heading-color,#fff);font-size:14px;font-size:var(--theoplayer-chromecast-display-heading-font-size,var(--theoplayer-text-font-size,14px));margin:0;margin:var(--theoplayer-chromecast-display-heading-margin,0);padding:0}[part=receiver]{color:#fff;color:var(--theoplayer-chromecast-display-receiver-color,#fff);font-size:17.5px;font-size:var(--theoplayer-chromecast-display-receiver-font-size,calc(var(--theoplayer-text-font-size, 14px)*1.25));margin:0;margin:var(--theoplayer-chromecast-display-receiver-margin,0);padding:0}"]);return gX=function(){return e},e}sX=yT("theoplayer-chromecast-button"),s0=fO(["player","lang"]),s2=yS({reflect:!0,type:String,attribute:yq.LANG}),e.ChromecastButton=void 0,new(sJ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(gW.styles,[gY]),s1(),t}return i(t,e),t}(l),sZ=yN("____private_lang_1"),sY=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,sZ,{writable:!0,value:void 0}),s3(t),t._buttonId=++gJ,yM(t,sZ)[sZ]=s5(t,""),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel="connecting"===this.castState||"connected"===this.castState?e.chromecastConnectedAria:e.chromecastAria},r.render=function(){var e;return e=this._buttonId,yn(gK(),e,e)},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t;this._player=e,this.castApi=null==e||null==(t=e.cast)?void 0:t.chromecast}},{key:"lang",get:function(){return yM(this,sZ)[sZ]},set:function(e){yM(this,sZ)[sZ]=e}}]),t}(gW),s5=(s8=(s4=o(sY,[[s2,1,"lang"]],[sX,s0],gW)).e)[0],s3=s8[1],e.ChromecastButton=(s7=s4.c)[0],s1=s7[1],sJ);var g0=pC(gX());function g1(){var e=a(['<div part="icon"><slot name="icon">','</slot></div><div part="text"><p part="heading"><slot name="heading">','</slot></p><p part="receiver">',"</p></div>"]);return g1=function(){return e},e}var g2=["statechange"];function g5(){var e=a(['<span part="icon"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path class="theoplayer-airplay-inner" d="M5 7h14v8H5z"/><path d="M6 22h12l-6-6zM21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V5h18v12h-4v2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/></svg></span>']);return g5=function(){return e},e}ur=yT("theoplayer-chromecast-display"),un=fO(["player","lang"]),ua=yS({reflect:!0,type:String,attribute:yq.LANG}),uo=yL(),e.ChromecastDisplay=void 0,new(ut=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[g0],ui(),t}return i(t,e),t}(l),s6=yN("____private_lang_1"),s9=yN("____private__receiverName_2"),ue=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,s6,{writable:!0,value:void 0}),Object.defineProperty(t,s9,{writable:!0,value:void 0}),yM(t,s6)[s6]=(uu(t),ul(t,"")),yM(t,s9)[s9]=us(t,""),t._updateFromPlayer=function(){var e,r,n=null==(r=t._player)||null==(e=r.cast)?void 0:e.chromecast;void 0===n||"connected"!==n.state?t.setAttribute(yq.HIDDEN,""):(t._receiverName=n.receiverName||"",t.removeAttribute(yq.HIDDEN))},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(yq.HIDDEN)||this.setAttribute(yq.HIDDEN,""),this._updateFromPlayer()},r.render=function(){var e=fV(this.lang);return yn(g1(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 96 960 960" width="48"><path d="M86.956 910.131h65.699q9.171 0 14.801-6.413 5.631-6.413 4.076-14.067-6.099-32.801-29.132-57.242-23.033-24.442-55.051-30.941-7.654-1.555-14.067 4.076-6.413 5.63-6.413 15.164v69.336q0 8.487 5.8 14.287 5.8 5.8 14.287 5.8Zm179.365 0q14.288 0 23.635-9.565 9.348-9.565 7.348-23.261-10.944-78.191-65.681-134.428-54.737-56.237-131.928-67.181-13.696-2-23.26 7.415-9.566 9.416-9.566 23.411 0 12.13 9.311 23.059 9.312 10.929 24.08 13.332 49.566 9.566 84.913 46.696 35.348 37.131 44.914 87.131 2.403 14.768 12.595 24.08 10.192 9.311 23.639 9.311Zm127.147 0q13.904 0 23.261-9.563 9.358-9.563 8.358-23.444-5.819-64.393-33.105-122.128-27.286-57.735-70.589-101.784-43.303-44.049-100.088-71.892-56.784-27.842-121.43-33.407-13.88-1-23.443 8.53-9.563 9.531-9.563 23.377 0 13.615 9.072 23.615 9.072 10 23.62 12.19 103.526 11.636 174.956 85.018 71.43 73.382 82.858 176.796 1.801 14.298 11.995 23.495 10.195 9.197 24.098 9.197ZM123.477 241.304h692.436q31.74 0 55.762 24.021 24.021 24.022 24.021 55.762v509.826q0 31.507-24.021 55.362-24.022 23.856-55.762 23.856H525.696q-16.706 0-28.158-11.501-11.451-11.502-11.451-28.283 0-16.782 11.451-28.108 11.452-11.326 28.158-11.326h290.217V321.087H146.087v146q-6.783 6.348-16.595 11.674-9.813 5.326-23.514 5.326-16.457 0-27.783-11.452-11.326-11.451-11.326-28.158v-146q0-21.834 16.838-39.504 16.837-17.669 39.77-17.669Zm317.914 363Z"/></svg>\n'),e.chromecastHeading,this._receiverName||e.chromecastDefaultReceiverName)},v(t,[{key:"lang",get:function(){return yM(this,s6)[s6]},set:function(e){yM(this,s6)[s6]=e}},{key:"_receiverName",get:function(){return yM(this,s9)[s9]},set:function(e){yM(this,s9)[s9]=e}},{key:"player",get:function(){return this._player},set:function(e){var t;this._player!==e&&(void 0!==this._castApi&&this._castApi.removeEventListener(g2,this._updateFromPlayer),this._player=e,this._castApi=null==e||null==(t=e.cast)?void 0:t.chromecast,this._updateFromPlayer(),void 0!==this._castApi&&this._castApi.addEventListener(g2,this._updateFromPlayer))}}]),t}(yw),ul=(uh=(uc=o(ue,[[ua,1,"lang"],[uo,1,"_receiverName"]],[ur,un],yw)).e)[0],us=uh[1],uu=uh[2],e.ChromecastDisplay=(ud=uc.c)[0],ui=ud[1],ut);var g3=yn(g5());function g4(){var e=a([":host([cast-state=unavailable]){display:none!important}.theoplayer-airplay-inner{opacity:0;-webkit-transition:opacity .5s ease-in-out;transition:opacity .5s ease-in-out}:host([cast-state=connected]) .theoplayer-airplay-inner{opacity:1}"]);return g4=function(){return e},e}var g8=pC(g4());function g7(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;pointer-events:none!important;vertical-align:middle}[part=icon]{opacity:0;-webkit-transition:visibility .15s,opacity .15s;transition:visibility .15s,opacity .15s;visibility:hidden}:host([loading]) [part=icon]{opacity:1;-webkit-transition:visibility 0s,opacity 0s;transition:visibility 0s,opacity 0s;-webkit-transition-delay:.5s;transition-delay:.5s;-webkit-transition-delay:var(--theoplayer-loading-delay,.5s);transition-delay:var(--theoplayer-loading-delay,.5s);visibility:visible}[part=icon] ::slotted(img),[part=icon] ::slotted(svg){fill:#fff;fill:var(--theoplayer-loading-icon-color,var(--theoplayer-icon-color,#fff));height:48px;height:var(--theoplayer-loading-icon-height,var(--theoplayer-loading-icon-width,48px));vertical-align:middle;width:48px;width:var(--theoplayer-loading-icon-width,48px)}.theoplayer-loading-progress{direction:ltr;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:0;height:48px;height:var(--theoplayer-loading-icon-height,var(--theoplayer-loading-icon-width,48px));letter-spacing:0;line-height:0;position:relative;white-space:nowrap;width:48px;width:var(--theoplayer-loading-icon-width,48px)}.theoplayer-loading-progress svg,.theoplayer-loading-spinner{height:100%;position:absolute;width:100%}.theoplayer-loading-progress svg{stroke:#fff;stroke:var(--theoplayer-loading-icon-color,var(--theoplayer-icon-color,#fff))}.theoplayer-loading-gap-patch{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;left:47.5%;overflow:hidden;position:absolute;top:0;width:5%}.theoplayer-loading-gap-patch svg{left:-900%;-webkit-transform:rotate(180deg);transform:rotate(180deg);width:2000%}.theoplayer-loading-circle-clipper{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:100%;overflow:hidden;position:relative;width:50%}.theoplayer-loading-circle-clipper svg{width:200%}.theoplayer-loading-circle-right svg{left:-100%}.theoplayer-loading-progress{-webkit-animation:theoplayer-circular-progress-container-rotate 1568ms linear infinite;animation:theoplayer-circular-progress-container-rotate 1568ms linear infinite}.theoplayer-loading-spinner{-webkit-animation:theoplayer-circular-progress-spinner-layer-rotate 5333ms cubic-bezier(.4,0,.2,1) infinite both;animation:theoplayer-circular-progress-spinner-layer-rotate 5333ms cubic-bezier(.4,0,.2,1) infinite both}.theoplayer-loading-circle-left svg{-webkit-animation:theoplayer-circular-progress-left-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both;animation:theoplayer-circular-progress-left-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}.theoplayer-loading-circle-right svg{-webkit-animation:theoplayer-circular-progress-right-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both;animation:theoplayer-circular-progress-right-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}@-webkit-keyframes theoplayer-circular-progress-container-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes theoplayer-circular-progress-container-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes theoplayer-circular-progress-spinner-layer-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}to{-webkit-transform:rotate(3turn);transform:rotate(3turn)}}@keyframes theoplayer-circular-progress-spinner-layer-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}to{-webkit-transform:rotate(3turn);transform:rotate(3turn)}}@-webkit-keyframes theoplayer-circular-progress-left-spin{0%{-webkit-transform:rotate(265deg);transform:rotate(265deg)}50%{-webkit-transform:rotate(130deg);transform:rotate(130deg)}to{-webkit-transform:rotate(265deg);transform:rotate(265deg)}}@keyframes theoplayer-circular-progress-left-spin{0%{-webkit-transform:rotate(265deg);transform:rotate(265deg)}50%{-webkit-transform:rotate(130deg);transform:rotate(130deg)}to{-webkit-transform:rotate(265deg);transform:rotate(265deg)}}@-webkit-keyframes theoplayer-circular-progress-right-spin{0%{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}50%{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}to{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}}@keyframes theoplayer-circular-progress-right-spin{0%{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}50%{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}to{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}}"]);return g7=function(){return e},e}uv=yT("theoplayer-airplay-button"),u_=fO(["player","lang"]),ub=yS({reflect:!0,type:String,attribute:yq.LANG}),e.AirPlayButton=void 0,new(uf=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(gW.styles,[g8]),ug(),t}return i(t,e),t}(l),up=yN("____private_lang_1"),uy=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,up,{writable:!0,value:void 0}),yM(t,up)[up]=(uk(t),um(t,"")),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel="connecting"===this.castState||"connected"===this.castState?e.airplayConnectedAria:e.airplayAria},r.render=function(){return g3},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t;this._player=e,this.castApi=null==e||null==(t=e.cast)?void 0:t.airplay}},{key:"lang",get:function(){return yM(this,up)[up]},set:function(e){yM(this,up)[up]=e}}]),t}(gW),um=(ux=(uw=o(uy,[[ub,1,"lang"]],[uv,u_],gW)).e)[0],uk=ux[1],e.AirPlayButton=(uT=uw.c)[0],ug=uT[1],uf);var g6=pC(g7());function g9(){var e=a(['<div part="icon"><slot name="icon"><div aria-hidden="true" class="theoplayer-loading-progress"><div class="theoplayer-loading-spinner"><div class="theoplayer-loading-circle-clipper theoplayer-loading-circle-left"><svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="18" fill="none" stroke-dasharray="113.097" stroke-dashoffset="56.549" stroke-width="4"/></svg></div><div class="theoplayer-loading-gap-patch"><svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="18" fill="none" stroke-dasharray="113.097" stroke-dashoffset="56.549" stroke-width="3.2"/></svg></div><div class="theoplayer-loading-circle-clipper theoplayer-loading-circle-right"><svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="18" fill="none" stroke-dasharray="113.097" stroke-dashoffset="56.549" stroke-width="4"/></svg></div></div></div></slot></div>']);return g9=function(){return e},e}var be=yn(g9()),bt=["readystatechange","play","pause","playing","seeking","seeked"];function br(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;pointer-events:none!important}"]);return br=function(){return e},e}uL=yT("theoplayer-loading-indicator"),uC=fO(["player"]),uR=yS({reflect:!1,attribute:!1}),uO=yS({reflect:!0,type:Boolean,attribute:yq.LOADING}),e.LoadingIndicator=void 0,new(uS=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[g6],uP(),t}return i(t,e),t}(l),uE=yN("____private_loading_1"),uA=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,uE,{writable:!0,value:void 0}),yM(t,uE)[uE]=(uB(t),uM(t,!1)),t._updateFromPlayer=function(){t.loading=void 0!==t._player&&!t._player.paused&&(t._player.seeking||t._player.readyState<3)},t}return i(t,e),t.prototype.render=function(){return be},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(bt,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(bt,this._updateFromPlayer))}},{key:"loading",get:function(){return yM(this,uE)[uE]},set:function(e){yM(this,uE)[uE]=e}}]),t}(yw),uM=(uI=(uN=o(uA,[[uR,4,"player"],[uO,1,"loading"]],[uL,uC],yw)).e)[0],uB=uI[1],e.LoadingIndicator=(uD=uN.c)[0],uP=uD[1],uS);var bn=pC(br());function bi(){var e=a([""]);return bi=function(){return e},e}function ba(){var e=a(["[part=icon] ::slotted(svg),[part=icon] svg{fill:#8c8c8c;fill:var(--theoplayer-live-button-color,#8c8c8c)}:host([live]:not([paused])) [part=icon] ::slotted(svg),:host([live]:not([paused])) [part=icon] svg{fill:red;fill:var(--theoplayer-live-button-active-color,red)}"]);return ba=function(){return e},e}uq=yT("theoplayer-gesture-receiver"),uj=fO(["player","deviceType"]),uV=yS({reflect:!1,attribute:!1}),uH=yS({reflect:!1,attribute:!1}),e.GestureReceiver=void 0,new(uU=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[bn],uz(),t}return i(t,e),t}(l),uF=yN("____private_deviceType_1"),u$=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,uF,{writable:!0,value:void 0}),uQ(t),t._pointerType="",yM(t,uF)[uF]=uG(t,"desktop"),t._onPointerDown=function(e){t._pointerType=e.pointerType},t._onClick=function(e){var r,n=null!=(r=e.pointerType)?r:t._pointerType;"touch"===n?t.handleTap(e):"mouse"===n&&t.handleMouseClick(e)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.setAttribute("tabindex","-1"),this.setAttribute("aria-hidden","true")},r.handleTap=function(e){},r.handleMouseClick=function(e){if("desktop"===this.deviceType&&void 0!==this._player){var t;void 0===this._player.source||null!=(t=this._player.ads)&&t.playing||this._player.vr&&"unavailable"!==this._player.vr.state||(this._player.paused?this._player.play():this._player.pause())}},r.render=function(){return yn(bi())},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._playerElement&&(this._playerElement.removeEventListener("pointerdown",this._onPointerDown),this._playerElement.removeEventListener("click",this._onClick)),this._player=e,this._playerElement=null==e?void 0:e.element,void 0!==this._playerElement&&(this._playerElement.addEventListener("pointerdown",this._onPointerDown),this._playerElement.addEventListener("click",this._onClick)))}},{key:"deviceType",get:function(){return yM(this,uF)[uF]},set:function(e){yM(this,uF)[uF]=e}}]),t}(yw),uG=(uK=(uW=o(u$,[[uV,4,"player"],[uH,1,"deviceType"]],[uq,uj],yw)).e)[0],uQ=uK[1],e.GestureReceiver=(uZ=uW.c)[0],uz=uZ[1],uU);var bo=pC(ba());function bl(){var e=a(['<span part="icon"><slot name="icon">','</slot></span><slot name="spacer"></slot><span part="text"><slot name="text">',"</slot></span>"]);return bl=function(){return e},e}var bs=["play","pause","playing","emptied"],bu=["seeking","seeked","timeupdate","durationchange","emptied"];function bc(){var e=a([":host{padding:5px 10px;padding:calc(var(--theoplayer-control-padding, 10px) - var(--theoplayer-ad-display-padding, 5px)) var(--theoplayer-control-padding,10px);pointer-events:none}span{background:#ffc50f;background:var(--theoplayer-ad-display-background,#ffc50f);border-radius:2px;border-radius:var(--theoplayer-ad-display-border-radius,2px);color:#000;color:var(--theoplayer-ad-display-text-color,#000);display:inline-block;padding:5px;padding:var(--theoplayer-ad-display-padding,5px)}"]);return bc=function(){return e},e}u5=yT("theoplayer-live-button"),u3=fO(["player","streamType","lang"]),u7=yS({reflect:!0,type:Boolean,attribute:yq.PAUSED}),u6=yS({reflect:!0,type:String,attribute:yq.STREAM_TYPE}),u9=yS({reflect:!0,type:Number,attribute:yq.LIVE_THRESHOLD,useDefault:!0}),ce=yS({reflect:!0,type:Boolean,attribute:yq.LIVE}),ct=yS({reflect:!0,type:String,attribute:yq.LANG}),cr=yS({reflect:!1,attribute:!1}),e.LiveButton=void 0,new(u2=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[bo]),u4(),r}return i(r,t),r}(l),uY=yN("____private_paused_1"),uJ=yN("____private_streamType_2"),uX=yN("____private_live_3"),u0=yN("____private_lang_4"),u1=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,uY,{writable:!0,value:void 0}),Object.defineProperty(t,uJ,{writable:!0,value:void 0}),Object.defineProperty(t,uX,{writable:!0,value:void 0}),Object.defineProperty(t,u0,{writable:!0,value:void 0}),cl(t),t._liveThreshold=10,yM(t,uY)[uY]=cn(t,!1),yM(t,uJ)[uJ]=ci(t,"vod"),yM(t,uX)[uX]=ca(t,!1),yM(t,u0)[u0]=co(t,""),t._updatePaused=function(){t.paused=void 0===t._player||t._player.paused},t._updateLive=function(){t.live=void 0!==t._player&&function(e,t){if(e.duration===1/0){var r=e.seekable;return!(r.length>0)||r.end(r.length-1)-e.currentTime<=t}return!1}(t._player,t.liveThreshold)},t}i(t,e);var r=t.prototype;return r.handleClick=function(){void 0!==this._player&&(this._player.hesp&&void 0!==this._player.hesp.manifest?this._player.hesp.goLive():(this._player.currentTime=1/0,this._player.play()))},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel=e.seekToLiveAria},r.render=function(){var e=fV(this.lang);return yn(bl(),fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><circle cx="12" cy="12" r="7"/></svg>\n'),e.live)},v(t,[{key:"paused",get:function(){return yM(this,uY)[uY]},set:function(e){yM(this,uY)[uY]=e}},{key:"streamType",get:function(){return yM(this,uJ)[uJ]},set:function(e){yM(this,uJ)[uJ]=e}},{key:"liveThreshold",get:function(){return this._liveThreshold},set:function(e){this._liveThreshold=isNaN(e)?0:e,this._updateLive()}},{key:"live",get:function(){return yM(this,uX)[uX]},set:function(e){yM(this,uX)[uX]=e}},{key:"lang",get:function(){return yM(this,u0)[u0]},set:function(e){yM(this,u0)[u0]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener(bs,this._updatePaused),this._player.removeEventListener(bu,this._updateLive)),this._player=e,this._updatePaused(),this._updateLive(),void 0!==this._player&&(this._player.addEventListener(bs,this._updatePaused),this._player.addEventListener(bu,this._updateLive)))}}]),t}(u8=e.Button),cn=(cu=(cs=o(u1,[[u7,1,"paused"],[u6,1,"streamType"],[u9,4,"liveThreshold"],[ce,1,"live"],[ct,1,"lang"],[cr,4,"player"]],[u5,u3],u8)).e)[0],ci=cu[1],ca=cu[2],co=cu[3],cl=cu[4],e.LiveButton=(cc=cs.c)[0],u4=cc[1],u2);var bh=pC(bc());function bd(){var e=a(["<span>","</span>"]);return bd=function(){return e},e}var bp=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];function by(){var e=a([":host{pointer-events:none}"]);return by=function(){return e},e}cv=yT("theoplayer-ad-display"),c_=fO(["player","lang"]),cb=yL(),cm=yL(),ck=yS({reflect:!0,type:String,attribute:yq.LANG}),cw=yS({reflect:!1,attribute:!1}),e.AdDisplay=void 0,new(cf=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[f4,bh],cg(),t}return i(t,e),t}(l),ch=yN("____private__currentAd_1"),cd=yN("____private__totalAds_2"),cp=yN("____private_lang_3"),cy=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ch,{writable:!0,value:void 0}),Object.defineProperty(t,cd,{writable:!0,value:void 0}),Object.defineProperty(t,cp,{writable:!0,value:void 0}),yM(t,ch)[ch]=(cA(t),cx(t,0)),yM(t,cd)[cd]=cT(t,0),yM(t,cp)[cp]=cE(t,""),t._updateFromPlayer=function(){var e,r,n,i=null==(r=t._player)?void 0:r.ads,a=(null!=(e=null==i||null==(n=i.currentAdBreak)?void 0:n.ads)?e:[]).filter(gR);if(void 0===i||!i.playing||0===a.length){t._currentAd=0,t._totalAds=0,t.style.display="none";return}var o=0;if(a.length>1){var l=fk(t._player.ads.currentAds||[],gR);if(l){var s=a.indexOf(l);s>=0&&(o=s+1)}}t._currentAd=o,t._totalAds=a.length,t.style.display=""},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer()},r.render=function(){var e=fV(this.lang),t=this._totalAds>1?e.adBreakText(this._currentAd,this._totalAds):e.adText;return yn(bd(),t)},v(t,[{key:"_currentAd",get:function(){return yM(this,ch)[ch]},set:function(e){yM(this,ch)[ch]=e}},{key:"_totalAds",get:function(){return yM(this,cd)[cd]},set:function(e){yM(this,cd)[cd]=e}},{key:"lang",get:function(){return yM(this,cp)[cp]},set:function(e){yM(this,cp)[cp]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._ads)||t.removeEventListener(bp,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(bp,this._updateFromPlayer))}}]),t}(yw),cx=(cL=(cS=o(cy,[[cb,1,"_currentAd"],[cm,1,"_totalAds"],[ck,1,"lang"],[cw,4,"player"]],[cv,c_],yw)).e)[0],cT=cL[1],cE=cL[2],cA=cL[3],e.AdDisplay=(cC=cS.c)[0],cg=cC[1],cf);var bf=pC(by());function bv(){var e=a(["<span>","</span>"]);return bv=function(){return e},e}var b_=["adbreakbegin","adbreakend","adbreakchange","updateadbreak"];function bg(){var e=a(["<slot>","</slot>"]);return bg=function(){return e},e}cB=yT("theoplayer-ad-countdown"),cN=fO(["player","lang"]),cD=yL(),cF=yS({reflect:!0,type:String,attribute:yq.LANG}),c$=yS({reflect:!1,attribute:!1}),e.AdCountdown=void 0,new(cM=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[f4,bf],cI(),t}return i(t,e),t}(l),cP=yN("____private__maxRemainingDuration_1"),cR=yN("____private_lang_2"),cO=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,cP,{writable:!0,value:void 0}),Object.defineProperty(t,cR,{writable:!0,value:void 0}),yM(t,cP)[cP]=(cj(t),cU(t,0)),yM(t,cR)[cR]=cq(t,""),t._onAdChange=function(){var e,r,n;(null==(r=t._player)||null==(e=r.ads)?void 0:e.playing)?(t._player.removeEventListener("timeupdate",t._update),t._player.addEventListener("timeupdate",t._update)):null==(n=t._player)||n.removeEventListener("timeupdate",t._update),t._update()},t._update=function(){var e,r,n=null==(e=t._player)?void 0:e.ads,i=null==n||null==(r=n.currentAdBreak)?void 0:r.maxRemainingDuration;void 0===n||!n.playing||void 0===i||i<0?(t._maxRemainingDuration=0,t.style.display="none"):(t._maxRemainingDuration=Math.ceil(i),t.style.display="")},t}return i(t,e),t.prototype.render=function(){var e=fV(this.lang),t=e.formatNarrowDuration(f1(this._maxRemainingDuration));return yn(bv(),e.adCountdownText(t))},v(t,[{key:"_maxRemainingDuration",get:function(){return yM(this,cP)[cP]},set:function(e){yM(this,cP)[cP]=e}},{key:"lang",get:function(){return yM(this,cR)[cR]},set:function(e){yM(this,cR)[cR]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r,n;this._player!==e&&(null==(t=this._player)||t.removeEventListener("timeupdate",this._update),null==(r=this._ads)||r.removeEventListener(b_,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(b_,this._onAdChange))}}]),t}(yw),cU=(cV=(cz=o(cO,[[cD,1,"_maxRemainingDuration"],[cF,1,"lang"],[c$,4,"player"]],[cB,cN],yw)).e)[0],cq=cV[1],cj=cV[2],e.AdCountdown=(cH=cz.c)[0],cI=cH[1],cM);var bb=["adbegin","adend","adloaded","updatead","adskip"];cG=yT("theoplayer-ad-clickthrough-button"),cQ=fO(["player","lang"]),cK=yS({reflect:!0,type:String,attribute:yq.CLICKTHROUGH}),cZ=yS({reflect:!0,type:String,attribute:yq.LANG}),cY=yS({reflect:!1,attribute:!1}),e.AdClickThroughButton=void 0;var bm=yN("____private_lang_1"),bk=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,bm,{writable:!0,value:void 0}),cX(t),t._clickThrough=null,yM(t,bm)[bm]=cJ(t,""),t._updateFromPlayer=function(){var e,r,n=null==(r=t._player)?void 0:r.ads;if(!n||!n.playing){t.clickThrough=null;return}var i=fk(null!=(e=n.currentAds)?e:[],gR);if(void 0===i||"google-ima"===i.integration){t.clickThrough=null;return}var a=i.clickThrough;if(!a){t.clickThrough=null;return}t.clickThrough=a},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer(),null==this.clickThrough&&(this.disabled=!0,this.style.display="none")},r.handleClick=function(){var e;null==(e=this._player)||e.pause()},r.renderLinkContent=function(){var e=fV(this.lang);return yn(bg(),e.adClickThroughText)},v(t,[{key:"clickThrough",get:function(){return this._clickThrough},set:function(e){this._clickThrough!==e&&(this._clickThrough=e,this.href=e?String(e).trim():"#",this.target="_blank",this.disabled=null==e,this.style.display=null!=e?"":"none")}},{key:"lang",get:function(){return yM(this,bm)[bm]},set:function(e){yM(this,bm)[bm]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._ads)||t.removeEventListener(bb,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(bb,this._updateFromPlayer))}}]),t}(cW=e.LinkButton);function bw(){var e=a([":host{-ms-grid-columns:1fr;-ms-grid-rows:1fr;background:rgba(0,0,0,.7);background:var(--theoplayer-ad-skip-background,rgba(0,0,0,.7));border:1px solid hsla(0,0%,100%,.5);border:var(--theoplayer-ad-skip-border,1px solid hsla(0,0%,100%,.5));color:#fff;color:var(--theoplayer-ad-skip-color,#fff);display:-ms-grid;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}:host(:hover){background:rgba(0,0,0,.9);background:var(--theoplayer-ad-skip-hover-background,rgba(0,0,0,.9));border:1px solid #fff;border:var(--theoplayer-ad-skip-hover-border,1px solid #fff);color:#fff;color:var(--theoplayer-ad-skip-hover-color,var(--theoplayer-ad-skip-color,#fff))}:host([disabled]){background:transparent;background:var(--theoplayer-ad-skip-countdown-background,transparent);border:1px solid transparent;border:var(--theoplayer-ad-skip-countdown-border,1px solid transparent);color:#fff;color:var(--theoplayer-ad-skip-countdown-color,var(--theoplayer-ad-skip-color,#fff))}[part=countdown],[part=skip]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}[part=skip]{font-size:14px;font-size:var(--theoplayer-ad-skip-font-size,var(--theoplayer-text-font-size,14px));line-height:24px;line-height:var(--theoplayer-ad-skip-line-height,var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px)))}[part=skip-icon]{padding-left:10px;padding-left:var(--theoplayer-control-padding,10px)}[part=skip-icon] ::slotted(svg),[part=skip-icon] svg{height:24px;height:var(--theoplayer-ad-skip-icon-height,var(--theoplayer-control-height,24px));width:24px;width:var(--theoplayer-ad-skip-icon-width,var(--theoplayer-control-height,24px))}"]);return bw=function(){return e},e}cJ=(c1=(c0=o(bk,[[cK,4,"clickThrough"],[cZ,1,"lang"],[cY,4,"player"]],[cG,cQ],cW)).e)[0],cX=c1[1],e.AdClickThroughButton=(c2=c0.c)[0],(0,c2[1])();var bx=pC(bw());function bT(){var e=a(['<span part="countdown" style="','">','</span> <span part="skip" style="','"><span part="skip-text"><slot name="skip-text">','</slot></span><span part="skip-icon"><slot name="skip-icon">',"</slot></span></span>"]);return bT=function(){return e},e}var bE=["adbegin","adend","adloaded","updatead","adskip"];c6=yT("theoplayer-ad-skip-button"),c9=fO(["player","lang"]),hr=yL(),hn=yL(),hi=yS({reflect:!0,type:String,attribute:yq.LANG}),ha=yS({reflect:!1,attribute:!1}),e.AdSkipButton=void 0,new(c7=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.Button.styles,[bx]),he(),r}return i(r,t),r}(l),c5=yN("____private__showCountdown_1"),c3=yN("____private__timeToSkip_2"),c4=yN("____private_lang_3"),c8=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,c5,{writable:!0,value:void 0}),Object.defineProperty(t,c3,{writable:!0,value:void 0}),Object.defineProperty(t,c4,{writable:!0,value:void 0}),yM(t,c5)[c5]=(hu(t),ho(t,!1)),yM(t,c3)[c3]=hl(t,0),yM(t,c4)[c4]=hs(t,""),t._onAdChange=function(){var e,r,n;(null==(r=t._player)||null==(e=r.ads)?void 0:e.playing)?(t._player.removeEventListener("timeupdate",t._update),t._player.addEventListener("timeupdate",t._update)):null==(n=t._player)||n.removeEventListener("timeupdate",t._update),t._update()},t._update=function(){var e,r,n=null==(r=t._player)?void 0:r.ads;if(!n||!n.playing){t.style.display="none";return}var i=fk(null!=(e=n.currentAds)?e:[],gR);if(void 0===i||"google-ima"===i.integration){t.style.display="none";return}var a=i.skipOffset;if(void 0===a||a<0||void 0!==i.duration&&a>=i.duration){t.style.display="none";return}var o=t._player.currentTime;o<a?(t._showCountdown=!0,t._timeToSkip=Math.ceil(a-o),t.style.display="",t.setAttribute(yq.DISABLED,""),t.setAttribute(yq.ARIA_LIVE,"off")):(t._showCountdown=!1,t.style.display="",t.removeAttribute(yq.DISABLED),t.setAttribute(yq.ARIA_LIVE,"polite"))},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._update()},r.handleClick=function(){var e,t;null==(t=this._player)||null==(e=t.ads)||e.skip()},r.render=function(){var e=fV(this.lang),t={visibility:this._showCountdown?"visible":"hidden"},r={visibility:this._showCountdown?"hidden":"visible",pointerEvents:this._showCountdown?"none":""},n=e.formatNarrowDuration(f1(this._timeToSkip));return yn(bT(),g_(t),e.adSkipCountdownText(n),g_(r),e.adSkipButtonText,fu('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M17.5 18q-.425 0-.712-.288-.288-.287-.288-.712V7q0-.425.288-.713Q17.075 6 17.5 6t.712.287q.288.288.288.713v10q0 .425-.288.712-.287.288-.712.288ZM7.05 16.975q-.5.35-1.025.05-.525-.3-.525-.9v-8.25q0-.6.525-.888.525-.287 1.025.038l6.2 4.15q.45.3.45.825 0 .525-.45.825Z"/></svg>\n'))},v(t,[{key:"_showCountdown",get:function(){return yM(this,c5)[c5]},set:function(e){yM(this,c5)[c5]=e}},{key:"_timeToSkip",get:function(){return yM(this,c3)[c3]},set:function(e){yM(this,c3)[c3]=e}},{key:"lang",get:function(){return yM(this,c4)[c4]},set:function(e){yM(this,c4)[c4]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r,n;this._player!==e&&(null==(t=this._player)||t.removeEventListener("timeupdate",this._update),null==(r=this._ads)||r.removeEventListener(bE,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(bE,this._onAdChange))}}]),t}(ht=e.Button),ho=(hh=(hc=o(c8,[[hr,1,"_showCountdown"],[hn,1,"_timeToSkip"],[hi,1,"lang"],[ha,4,"player"]],[c6,c9],ht)).e)[0],hl=hh[1],hs=hh[2],hu=hh[3],e.AdSkipButton=(hd=hc.c)[0],he=hd[1],c7),hp=fO(["player","lang"]),hf=yS({reflect:!0,type:String,attribute:yq.LANG});var bA=yN("____private_lang_1"),bS=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,bA,{writable:!0,value:void 0}),h_(t),t._badNetworkMode=!1,yM(t,bA)[bA]=hv(t,""),t.handleEnterBadNetworkMode_=function(){t._badNetworkMode=!0,t.handleEnterBadNetworkMode()},t.handleExitBadNetworkMode_=function(){t._badNetworkMode=!1,t.handleExitBadNetworkMode()},t}i(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){},r.handleExitBadNetworkMode=function(){},v(t,[{key:"lang",get:function(){return yM(this,bA)[bA]},set:function(e){yM(this,bA)[bA]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(this._theoLive&&(this._theoLive.removeEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.removeEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)),this._player=e,this._theoLive=null==e?void 0:e.theoLive,this._badNetworkMode=null!=(t=null==(r=this._theoLive)?void 0:r.badNetworkMode)&&t,this._theoLive&&(this._theoLive.addEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.addEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)),this.handlePlayer())}}]),t}(hy=e.RadioButton);function bL(){var e=a(["<slot>","</slot>"]);return bL=function(){return e},e}hv=(hm=(hb=o(bS,[[hf,1,"lang"]],[hp],hy)).e)[0],h_=hm[1],hg=(hk=hb.c)[0],(0,hk[1])(),hw=yT("theolive-automatic-quality-selector"),e.AutomaticQualitySelector=void 0;var bC=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){this.update_()},r.handleExitBadNetworkMode=function(){this.update_()},r.handlePlayer=function(){this.update_()},r.update_=function(){var e,t,r=(null==(t=this.player)||null==(e=t.theoLive)?void 0:e.badNetworkMode)!==!0;this.checked!==r&&(this.checked=r)},r.handleChange=function(){this.checked&&this.player&&this.player.theoLive&&(this.player.theoLive.badNetworkMode=!1)},r.render=function(){var e=fV(this.lang);return yn(bL(),e.highQualityLabel)},t}(hg);function bP(){var e=a(["[part=icon]{display:inline-block;position:relative}[part=warning-icon]{display:none;height:60%;min-width:60%;position:absolute;right:-10%;top:0;width:60%}[part=warning-icon] svg{fill:red;fill:var(--theolive-bad-network-mode,red)}"]);return bP=function(){return e},e}e.AutomaticQualitySelector=(hx=o(bC,[],[hw],hg).c)[0],(0,hx[1])();var bR=pC(bP());function bO(){var e=a(['<span part="icon">','<span part="warning-icon" style="','">',"</span></span>"]);return bO=function(){return e},e}function bM(){var e=a(["<slot>","</slot>"]);return bM=function(){return e},e}hL=yT("theolive-bad-network-button"),hC=fO(["player","lang"]),hO=yL(),hM=yS({reflect:!0,type:String,attribute:yq.LANG}),hB=yS({reflect:!1,attribute:!1}),e.BadNetworkModeButton=void 0,new(hS=function(t){function r(){var r;return r=t.apply(this,arguments)||this,r.styles=[].concat(e.MenuButton.styles,[bR]),hP(),r}return i(r,t),r}(l),hT=yN("____private__inBadNetworkMode_1"),hE=yN("____private_lang_2"),hA=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,hT,{writable:!0,value:void 0}),Object.defineProperty(t,hE,{writable:!0,value:void 0}),yM(t,hT)[hT]=(hD(t),hN(t,!1)),t.handleEnterBadNetworkMode_=function(){t._inBadNetworkMode=!0},t.handleExitBadNetworkMode_=function(){t._inBadNetworkMode=!1},yM(t,hE)[hE]=hI(t,""),t}i(t,e);var r=t.prototype;return r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=fV(this.lang);this.ariaLabel=e.openBadNetworkModeMenuAria},r.render=function(){var e={display:this._inBadNetworkMode?"":"none"};return yn(bO(),fu(gt),g_(e),fu('<svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 96 960 960" width="48">\n <path d="m40 936 440-760 440 760H40Zm444.175-117q12.825 0 21.325-8.675 8.5-8.676 8.5-21.5 0-12.825-8.675-21.325-8.676-8.5-21.5-8.5-12.825 0-21.325 8.675-8.5 8.676-8.5 21.5 0 12.825 8.675 21.325 8.676 8.5 21.5 8.5ZM454 708h60V484h-60v224Z"/>\n</svg>'))},v(t,[{key:"_inBadNetworkMode",get:function(){return yM(this,hT)[hT]},set:function(e){yM(this,hT)[hT]=e}},{key:"lang",get:function(){return yM(this,hE)[hE]},set:function(e){yM(this,hE)[hE]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(this._theoLive&&(this._theoLive.removeEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.removeEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)),this._player=e,this._theoLive=null==e?void 0:e.theoLive,this._theoLive&&(this._theoLive.addEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.addEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)))}}]),t}(hR=e.MenuButton),hN=(h$=(hF=o(hA,[[hO,1,"_inBadNetworkMode"],[hM,1,"lang"],[hB,4,"player"]],[hL,hC],hR)).e)[0],hI=h$[1],hD=h$[2],e.BadNetworkModeButton=(hU=hF.c)[0],hP=hU[1],hS),hq=yT("theolive-bad-network-quality-selector"),e.BadNetworkModeSelector=void 0;var bB=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){this.update_()},r.handleExitBadNetworkMode=function(){this.update_()},r.handlePlayer=function(){this.update_()},r.update_=function(){var e,t,r=(null==(t=this.player)||null==(e=t.theoLive)?void 0:e.badNetworkMode)===!0;this.checked!==r&&(this.checked=r)},r.handleChange=function(){this.checked&&this.player&&this.player.theoLive&&(this.player.theoLive.badNetworkMode=!0)},r.render=function(){var e=fV(this.lang);return yn(bM(),e.lowQualityLabel)},t}(hg);function bN(){var e=a(["<theoplayer-radio-group ",' @change="','"><theolive-automatic-quality-selector></theolive-automatic-quality-selector><theolive-bad-network-quality-selector></theolive-bad-network-quality-selector></theoplayer-radio-group>']);return bN=function(){return e},e}e.BadNetworkModeSelector=(hj=o(bB,[],[hq],hg).c)[0],(0,hj[1])(),hH=yT("theolive-bad-network-menu"),e.BadNetworkModeMenu=void 0,new(hV=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vI],hG(),t}return i(t,e),t}(l),hz=function(t){function r(){var e;return e=t.apply(this,arguments)||this,e._radioGroupRef=fe(),e._onChange=function(){e.dispatchEvent(new Event("change",{bubbles:!0}))},e}i(r,t);var n=r.prototype;return n.firstUpdated=function(){this._radioGroupRef.value&&!T(this._radioGroupRef.value,e.RadioGroup)&&customElements.upgrade(this._radioGroupRef.value)},n.render=function(){return yn(bN(),fn(this._radioGroupRef),this._onChange)},r}(yw),e.BadNetworkModeMenu=(hQ=o(hz,[],[hH],yw).c)[0],hG=hQ[1],hV);var bI=((S={}).TopControlBar="top-control-bar",S.BottomControlBar="bottom-control-bar",S.Menu="menu",S),bD=[];function bF(){var e=a([':host{aspect-ratio:16/9;aspect-ratio:var(--theoplayer-aspect-ratio,16/9);background:#000;background:var(--theoplayer-background,#000);-webkit-box-sizing:border-box;box-sizing:border-box;container-name:theoplayer-ui-container;container-type:size;display:inline-block;height:var(--theoplayer-height);min-width:300px;min-width:var(--theoplayer-min-width,300px);position:relative}@supports not (aspect-ratio:1){:host{height:0;height:var(--theoplayer-height,calc((var(--theoplayer-aspect-ratio, 16 / 9))*0));padding-bottom:56.25%;padding-bottom:calc(100%/(var(--theoplayer-aspect-ratio, 16 / 9)))}}:host([hidden]){display:none!important}:host([fullscreen]){height:100%!important;padding:0!important;width:100%!important}:host(:-webkit-full-screen){height:100%!important;padding:0!important;width:100%!important}:host(:-ms-fullscreen){height:100%!important;padding:0!important;width:100%!important}:host(:fullscreen){height:100%!important;padding:0!important;width:100%!important}:host([fullwindow]){bottom:0!important;left:0!important;overflow:hidden!important;position:fixed!important;right:0!important;top:0!important;z-index:1000!important}:host([fluid]){--theoplayer-aspect-ratio:var(--theoplayer-video-width,16) /var(--theoplayer-video-height,9)}[part~=chrome]{position:relative}[part~=layer]{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}[part~=chrome],[part~=layer]:not([part~=media-layer]){display:-webkit-box;display:-ms-flexbox;display:flex}[part~=chrome],[part~=gesture-layer],[part~=vertical-layer]{pointer-events:none}[part~=chrome] ::slotted(*){pointer-events:auto}[part~=media-layer] video{border-radius:0;border-radius:var(--theoplayer-video-border-radius,0);-o-object-fit:contain;object-fit:contain;-o-object-fit:var(--theoplayer-video-object-fit,contain);object-fit:var(--theoplayer-video-object-fit,contain)}[part~=media-layer] .theoplayer-ad-linear{bottom:0;left:0;position:absolute;right:0;top:0;z-index:10}[part~=media-layer] .theo-ad-remaining-container,[part~=media-layer] .theoplayer-ad-skip,[part~=media-layer] .theoplayer-ad-touch-clickthrough{display:none!important}[part~=chrome],[part~=vertical-layer]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-flow:column nowrap;flex-flow:column nowrap}[part~=centered]{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;justify-content:center}[part~=middle]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}[part~=vertical-layer]:before{background:transparent;background:var(--theoplayer-control-backdrop-background,transparent);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}:host(:not([mobile]):not([tv])) [part~=menu-layer]{bottom:0;bottom:var(--theoplayer-menu-offset-bottom,0);padding:10px;padding:var(--theoplayer-menu-layer-padding,10px);top:0;top:var(--theoplayer-menu-offset-top,0)}[part=menu]{-ms-grid-column-align:stretch;background:rgba(0,0,0,.5);background:var(--theoplayer-menu-backdrop-background,rgba(0,0,0,.5));display:-webkit-box;display:-ms-flexbox;display:flex;justify-self:stretch}[part=menu] ::slotted(*){-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-ms-grid-column-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;justify-self:stretch}:host(:not([mobile])) [part=menu]{margin:auto 0 0 auto;margin:var(--theoplayer-menu-margin-top,auto) var(--theoplayer-menu-margin-right,0) var(--theoplayer-menu-margin-bottom,0) var(--theoplayer-menu-margin-left,auto);max-height:100%;min-width:200px;min-width:var(--theoplayer-menu-min-width,200px)}:host([mobile]) [part=menu]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;margin:0;min-width:auto;pointer-events:none}:host([tv]) [part~=menu-layer]{left:auto}:host([tv]) [part=menu]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;margin:0;min-width:auto;pointer-events:none}:host(:not([menu-opened])) [part~=menu-layer],:host([menu-opened][mobile]) [part~=vertical-layer],:host([menu-opened][tv]) [part~=vertical-layer]{display:none!important}@container theoplayer-ui-container (max-width: 500px) or (max-height: 300px){:host(:not([mobile]):not([tv])) [part~=menu-layer]{bottom:0;left:0;padding:0;right:0;top:0}:host(:not([mobile])) [part=menu]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;margin:0;min-width:auto;pointer-events:none}:host([menu-opened]) [part~=vertical-layer]{display:none!important}}[part~=error-layer]{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background:rgba(0,0,0,.5);background:var(--theoplayer-error-background,rgba(0,0,0,.5));justify-content:center}:host(:not([has-error])) [part~=error-layer],:host([has-error]) [part~=layer]:not([part~=media-layer]):not([part~=error-layer]){display:none!important}[part~=chrome] ::slotted(theoplayer-control-bar){-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch}theoplayer-gesture-receiver{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}:host(:not([mobile])) [part~=chrome] ::slotted([mobile-only]),:host([mobile]) [part~=chrome] ::slotted([mobile-hidden]){display:none!important}:host(:not([tv])) [part~=chrome] ::slotted([tv-only]),:host([tv]) [part~=chrome] ::slotted([tv-hidden]){display:none!important}:host(:not([stream-type=vod])) [part~=chrome] ::slotted([live-hidden]),:host([stream-type=vod]) [part~=chrome] ::slotted([live-only]){display:none!important}:host(:not([playing-ad])) [part~=chrome] ::slotted([ad-only]),:host([playing-ad]) [part~=chrome] ::slotted([ad-hidden]){display:none!important}:host([user-idle]){cursor:none}:host([user-idle]) [part~=chrome] ::slotted(:not([no-auto-hide])){opacity:0;-webkit-transition:opacity 1s;transition:opacity 1s}:host([user-idle]) [part~=vertical-layer]:before{opacity:0;-webkit-transition:opacity 1s;transition:opacity 1s}']);return bF=function(){return e},e}var b$=pC(bF()),bU=function(){if("u">typeof document)for(var e,t=fd([["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]]);!(e=t()).done;){var r=e.value;if(r[1]in document)return{requestFullscreen_:r[0],exitFullscreen_:r[1],fullscreenElement_:r[2],fullscreenEnabled_:r[3],fullscreenchange_:r[4],fullscreenerror_:r[5]}}}();function bq(){if(("u"<typeof navigator?"undefined":d(navigator))!=="object")return!1;if(navigator.userAgentData)return navigator.userAgentData.mobile;var e=navigator.userAgent;return!!e&&/Android|iPhone|iPad|iPod|Mobile Safari|Windows Phone/i.test(e)}function bj(){if(("u"<typeof navigator?"undefined":d(navigator))!=="object")return!1;var e=navigator.userAgent;return!!e&&/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv)\b/i.test(e)}var bz="theoplayeruseridlechange",bV="theoplayerready";function bH(){var e=a(["html.theoplayer-ui-full-window{overflow:hidden!important}html.theoplayer-ui-full-window>body{height:100%!important;margin:0!important;padding:0!important;width:100%!important}"]);return bH=function(){return e},e}var bG=pC(bH()),bQ="theoplayer-ui-global-styles",bW=!1;function bK(){var e=a(['<div part="layer media-layer" ','></div><div part="layer gesture-layer"><theoplayer-gesture-receiver></theoplayer-gesture-receiver></div><div part="layer vertical-layer"><div part="top chrome" ','><slot name="top-chrome" ',' @transitionstart="','" @transitionend="','"></slot></div><div part="middle chrome"><slot name="middle-chrome"></slot></div><div part="layer centered-layer centered loading"><slot name="centered-loading"></slot></div><div part="layer centered-layer centered chrome"><slot name="centered-chrome"></slot></div><div part="bottom chrome" ',"><slot ",' @transitionstart="','" @transitionend="','"></slot></div></div><div part="layer menu-layer" ',"><theoplayer-menu-group ",' part="menu" @theoplayermenuclose="','" @theoplayermenuchange="','"><slot name="menu"></slot></theoplayer-menu-group></div><div part="layer error-layer"><slot name="error"></slot></div>']);return bK=function(){return e},e}var bZ="theoplayer-ui-full-window";function bY(e){for(var t,r,n=fA(e).filter(fg),i=fd(n);!(r=i()).done;){var a=r.value;if("0"!==getComputedStyle(a).opacity){var o=vi.fromRect(a.getBoundingClientRect());o.width>0&&o.height>0&&(t=t?t.union(o):o)}}return t}function bJ(){var e=a([':host{-webkit-box-sizing:border-box;box-sizing:border-box;container-name:theoplayer-default-ui-container;container-type:inline-size;display:inline-block;min-width:300px;min-width:var(--theoplayer-min-width,300px);position:relative}:host([hidden]){display:none!important}theoplayer-ui{display:block;width:100%}:host(:-webkit-full-screen),:host(:-webkit-full-screen) theoplayer-ui{height:100%!important;width:100%!important}:host(:-ms-fullscreen),:host(:-ms-fullscreen) theoplayer-ui{height:100%!important;width:100%!important}:host(:fullscreen),:host(:fullscreen) theoplayer-ui{height:100%!important;width:100%!important}[part=title]{color:#fff;color:var(--theoplayer-text-color,#fff);font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));padding:10px;padding:var(--theoplayer-control-padding,10px);text-shadow:0 0 4px rgba(0,0,0,.75);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[part=centered-chrome]{display:-webkit-box;display:-ms-flexbox;display:flex}[part=centered-chrome] *,[part=centered-chrome] ::slotted(*){--theoplayer-button-icon-width:var(--theoplayer-centered-chrome-button-icon-width,48px);--theoplayer-control-height:var(--theoplayer-centered-chrome-control-height,48px);--theoplayer-play-button-icon-color:var(--theoplayer-center-play-button-icon-color,unset)}[part=middle-chrome]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:end;-ms-flex-pack:end;-webkit-box-flex:1;-ms-flex-positive:1;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;flex-grow:1;justify-content:flex-end;pointer-events:none;position:relative}[part=middle-chrome] theoplayer-vr-compass{margin:.5em;position:absolute;right:0;top:0;z-index:1}[part=bottom-chrome]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;pointer-events:none;position:relative}:host([mobile]) theoplayer-ui{--theoplayer-control-backdrop-background:var(--theoplayer-mobile-control-backdrop-background,rgba(0,0,0,.5))}:host{--theoplayer-control-background-gradient-stops:transparent 0%,rgba(0,0,0,.01) 8.1%,rgba(0,0,0,.037) 15.5%,rgba(0,0,0,.078) 22.5%,rgba(0,0,0,.131) 29%,rgba(0,0,0,.195) 35.3%,rgba(0,0,0,.264) 41.2%,rgba(0,0,0,.337) 47.1%,rgba(0,0,0,.413) 52.9%,rgba(0,0,0,.486) 58.8%,rgba(0,0,0,.555) 64.7%,rgba(0,0,0,.619) 71%,rgba(0,0,0,.672) 77.5%,rgba(0,0,0,.713) 84.5%,rgba(0,0,0,.74) 91.9%,rgba(0,0,0,.75) 100%}:host(:not([mobile])) [part=bottom-chrome]:before,:host(:not([mobile])) [part=top-chrome]:before{bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}:host(:not([mobile])) [part=top-chrome]:before{background:linear-gradient(to top,var(--theoplayer-control-background-gradient-stops))}:host(:not([mobile])) [part=bottom-chrome]:before{background:linear-gradient(to bottom,var(--theoplayer-control-background-gradient-stops))}.theoplayer-spacer{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}theoplayer-time-range{--theoplayer-control-height:var(--theoplayer-time-range-control-height,12px);--theoplayer-range-track-pointer-background:var(--theoplayer-time-range-track-pointer-background,hsla(0,0%,100%,.5))}[part=ad-chrome]{--theoplayer-control-height:var(--theoplayer-ad-chrome-control-height,12px);-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;pointer-events:none}theoplayer-ad-display,theoplayer-ad-skip-button{-ms-flex-negative:0;flex-shrink:0}theoplayer-ad-countdown,theoplayer-ad-skip-button[disabled]{text-shadow:0 0 4px rgba(0,0,0,.75)}theoplayer-ad-countdown{min-width:0}theoplayer-ad-skip-button{-webkit-box-align:end;-ms-flex-align:end;--theoplayer-ad-skip-font-size:calc(var(--theoplayer-text-font-size, 14px)*1.25);--theoplayer-ad-skip-line-height:calc(var(--theoplayer-text-content-height, var(--theoplayer-control-height, 24px))*1.25);--theoplayer-ad-skip-icon-width:24px;--theoplayer-ad-skip-icon-height:24px;align-items:end;border-right:0!important;justify-items:end}:host(:not([mobile])) [mobile-only],:host(:not([mobile])) theoplayer-control-bar ::slotted([mobile-only]),:host([mobile]) [mobile-hidden],:host([mobile]) theoplayer-control-bar ::slotted([mobile-hidden]){display:none!important}:host(:not([tv])) [tv-only],:host(:not([tv])) theoplayer-control-bar ::slotted([tv-only]),:host([tv]) [tv-hidden],:host([tv]) theoplayer-control-bar ::slotted([tv-hidden]){display:none!important}:host(:not([stream-type=vod])) [live-hidden],:host(:not([stream-type=vod])) theoplayer-control-bar ::slotted([live-hidden]),:host([stream-type=vod]) [live-only],:host([stream-type=vod]) theoplayer-control-bar ::slotted([live-only]){display:none!important}theoplayer-ui:not([playing-ad]) [ad-only],theoplayer-ui:not([playing-ad]) theoplayer-control-bar ::slotted([ad-only]),theoplayer-ui[playing-ad] [ad-hidden],theoplayer-ui[playing-ad] theoplayer-control-bar ::slotted([ad-hidden]){display:none!important}theoplayer-ui:not([has-first-play]) theoplayer-control-bar{display:none!important}theoplayer-ui:not([has-first-play]),theoplayer-ui:not([has-first-play]) ::slotted(*){--theoplayer-before-first-play-display:none}:host(:not([mobile])) theoplayer-ui[has-first-play] [part~=center-play-button]{display:none!important}@container theoplayer-default-ui-container (max-width: 200px){:host(:not([mobile])) theoplayer-control-bar{display:none!important}:host(:not([mobile])) theoplayer-ui[has-first-play] [part~=center-play-button]{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}theoplayer-ui:not([mobile]):not([casting]) theoplayer-ad-clickthrough-button{display:none!important}theoplayer-volume-range{--theoplayer-range-padding-left:0}theoplayer-mute-button+theoplayer-volume-range{--theoplayer-range-padding-right:0;--theoplayer-range-track-width:var(--theoplayer-volume-range-track-width,70px);overflow:hidden;-webkit-transition:width .2s ease-in;transition:width .2s ease-in;width:0}theoplayer-mute-button+theoplayer-volume-range:focus,theoplayer-mute-button+theoplayer-volume-range:hover,theoplayer-mute-button:focus+theoplayer-volume-range,theoplayer-mute-button:hover+theoplayer-volume-range{width:70px}theoplayer-mute-button+theoplayer-volume-range:focus-within,theoplayer-mute-button:focus-within+theoplayer-volume-range{width:70px}theoplayer-live-button+theoplayer-time-display:not([stream-type=vod]){padding-left:0}theoplayer-live-button[live]+theoplayer-time-display{display:none!important}theoplayer-ui[playing-ad] .theoplayer-ad-control{--theoplayer-control-height:var(--theoplayer-ad-control-height,16px)}']);return bJ=function(){return e},e}h2=yT("theoplayer-ui"),h3=yS({reflect:!1,attribute:yq.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),h4=yS({reflect:!1,attribute:yq.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),h8=yS({reflect:!0,type:Boolean,attribute:yq.FLUID}),h7=yS({reflect:!0,type:String,attribute:yq.LANG}),h6=yS({reflect:!0,type:Boolean,attribute:yq.MUTED}),h9=yS({reflect:!0,type:Boolean,attribute:yq.AUTOPLAY}),de=yS({reflect:!0,type:Boolean,attribute:yq.FULLSCREEN}),dt=yS({reflect:!0,type:Boolean,attribute:yq.PAUSED}),dr=yS({reflect:!0,type:Boolean,attribute:yq.ENDED}),dn=yS({reflect:!0,type:Boolean,attribute:yq.CASTING}),di=yS({reflect:!0,type:Boolean,attribute:yq.USER_IDLE}),da=yS({reflect:!0,type:Number,attribute:yq.USER_IDLE_TIMEOUT,useDefault:!0}),dl=yS({reflect:!0,type:String,attribute:yq.DEVICE_TYPE}),ds=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.MOBILE}),du=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.TV}),dc=yS({reflect:!0,type:String,attribute:yq.STREAM_TYPE}),dh=yS({reflect:!0,type:Number,attribute:yq.DVR_THRESHOLD,useDefault:!0}),dd=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.HAS_FIRST_PLAY}),dp=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.PLAYING_AD}),dy=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.HAS_ERROR}),df=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.FULLWINDOW}),dv=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.MENU_OPENED}),e.UIContainer=void 0,new(h1=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[b$],t.shadowRootOptions=r({},yw.shadowRootOptions,{delegatesFocus:!0}),t.READY_EVENT=bV,h5(),t}return i(t,e),t}(l),hW=yN("____private_mobile_1"),hK=yN("____private_tv_2"),hZ=yN("____private__hasFirstPlay_3"),hY=yN("____private__isPlayingAd_4"),hJ=yN("____private__hasError_5"),hX=yN("____private__isFullWindow_6"),h0=function(n){function a(e){var t;return void 0===e&&(e={}),Object.defineProperty(t=n.call(this)||this,hW,{writable:!0,value:void 0}),Object.defineProperty(t,hK,{writable:!0,value:void 0}),Object.defineProperty(t,hZ,{writable:!0,value:void 0}),Object.defineProperty(t,hY,{writable:!0,value:void 0}),Object.defineProperty(t,hJ,{writable:!0,value:void 0}),Object.defineProperty(t,hX,{writable:!0,value:void 0}),dx(t),t._configuration={},t._playerRef=fe(),t._menuRef=fe(),t._menuGroupRef=fe(),t._menuOpened=!1,t._topChromeRef=fe(),t._topChromeSlotRef=fe(),t._bottomChromeRef=fe(),t._bottomChromeSlotRef=fe(),t._pointerType="",t._lastPointerUpTime=0,t._stateReceivers=[],t._player=void 0,t._source=void 0,t._muted=!1,t._autoplay=!1,t._fullscreen=!1,t._deviceType="desktop",t._streamType="vod",t._fluid=!1,t._language="",t._userIdle=!1,t._userIdleTimeout=void 0,t._isUserActive=!1,t._userIdleTimer=0,t._paused=!1,t._ended=!1,t._casting=!1,t._dvrThreshold=60,t._previewTime=NaN,t._activeVideoTrack=void 0,yM(t,hW)[hW]=d_(t,!1),yM(t,hK)[hK]=dg(t,!1),yM(t,hZ)[hZ]=db(t,!1),yM(t,hY)[hY]=dm(t,!1),yM(t,hJ)[hJ]=dk(t,!1),yM(t,hX)[hX]=dw(t,!1),t._onMutation=function(e){var r=t._playerRef.value;if(r)for(var n,i=fd(e);!(n=i()).done;){var a=n.value;if("childList"===a.type){for(var o=a.addedNodes,l=a.removedNodes,s=0;s<o.length;s++){var u=o[s];f_(u)&&fM(u,r,t.registerStateReceiver_)}for(var c=0;c<l.length;c++){var h=l[c];f_(h)&&fM(h,r,t.unregisterStateReceiver_)}}}},t._onSlotChange=function(){t._playerRef.value&&fM(t,t._playerRef.value,t.registerStateReceiver_),t._updateTextTrackMargins()},t.registerStateReceiver_=function(e){t._stateReceivers.indexOf(e)>=0||(t._stateReceivers.push(e),t.propagateStateToReceiver_(e))},t.unregisterStateReceiver_=function(e){var r,n,i,a;r=t._stateReceivers,!((n=r.indexOf(e))<0)&&(i=r,a=n,i.splice(a,1),1)&&t.removeStateFromReceiver_(e)},t._onToggleMenu=function(e){e.stopPropagation();var r=e.detail.menu,n=t._menuGroupRef.value;if(n){if(!n.getMenuById(r))return void console.error('<theoplayer-ui>: cannot find menu with ID "'+r+'"');var i=fg(e.target)?e.target:void 0;n.isMenuOpen(r)?t.closeMenu_():(t.closeMenu_(),t.openMenu_(r,i))}},t._onCloseMenu=function(e){e.stopPropagation(),t.closeMenu_()},t._onMenuChange=function(){var e=t._menuRef.value;e.removeEventListener("pointerdown",t._onMenuPointerDown),e.removeEventListener("click",t._onMenuClick),t._menuGroupRef.value.hasCurrentMenu()?(e.addEventListener("pointerdown",t._onMenuPointerDown),e.addEventListener("click",t._onMenuClick),t.menuOpened_=!0):t.menuOpened_=!1,t.updateUserIdle_()},t._onMenuPointerDown=function(e){t._pointerType=e.pointerType},t._onMenuClick=function(e){var r,n=null!=(r=e.pointerType)?r:t._pointerType;e.target===t._menuRef.value&&"mouse"===n&&t._menuGroupRef.value.closeCurrentMenu()&&e.preventDefault()},t._onEnterFullscreen=function(e){e.stopPropagation(),t._enterFullscreen()},t._onExitFullscreen=function(e){e.stopPropagation(),t._exitFullscreen()},t._vrFullscreen=!1,t._vrWasFullscreen=!1,t._onVrStateChange=function(){if(function(){if(("u"<typeof navigator?"undefined":d(navigator))!=="object")return!1;var e=navigator.userAgent;return!!e&&(/iPad|iPhone|iPod/.test(e)||/Macintosh/.test(e)&&navigator.maxTouchPoints>1)}()){var e,r,n=(null==(r=t._player)||null==(e=r.vr)?void 0:e.state)==="presenting";n&&!t._vrFullscreen?(t._vrFullscreen=!0,t._vrWasFullscreen=t.fullscreen,t.fullscreen||t._enterFullscreen()):!n&&t._vrFullscreen&&(t._vrFullscreen=!1,t._vrWasFullscreen||t._exitFullscreen())}},t._onFullscreenChange=function(){var e=!1;if(void 0!==bU){var r=document[bU.fullscreenElement_];r&&(e=function e(t,r){if(!t||!r)return!1;if(t.contains(r))return!0;var n=r.getRootNode();return!!n.host&&e(t,n.host)}(r,t))}e||void 0===t._player||"fullscreen"!==t._player.presentation.currentMode||(e=!0),t._isFullWindow&&(e=!0),t.fullscreen=e},t._exitFullscreenOnEsc=function(e){e.keyCode==yj.ESCAPE&&t._onExitFullscreen(e)},t._updateAspectRatio=function(){if(void 0!==t._player){var e=t._player,r=e.videoWidth,n=e.videoHeight;r>0&&n>0?gw(t,{"--theoplayer-video-width":""+r,"--theoplayer-video-height":""+n}):gw(t,{"--theoplayer-video-width":"","--theoplayer-video-height":""})}},t._updateError=function(){var e=null==(r=t._player)?void 0:r.errorObject;t._hasError=void 0!==e;for(var r,n,i=fd(t._stateReceivers);!(n=i()).done;){var a=n.value;a[fP].indexOf("error")>=0&&(a.error=e)}},t._onPlay=function(){t._hasFirstPlay=!0,t.paused=!1,t._updateEnded()},t._onPause=function(){t.paused=!0,t._updateEnded()},t._updatePausedAndEnded=function(){t.paused=!t._player||t._player.paused,t._updateEnded()},t._updateEnded=function(){t.ended=!!t._player&&t._player.ended},t._updateStreamType=function(){void 0!==t._player&&(t.streamType=t.computeStreamType_())},t._updatePlaybackRate=function(){if(void 0!==t._player)for(var e,r=t._player.playbackRate,n=fd(t._stateReceivers);!(e=n()).done;){var i=e.value;i[fP].indexOf("playbackRate")>=0&&(i.playbackRate=r)}},t._updateMuted=function(){void 0!==t._player&&(t.muted=t._player.muted)},t._updateActiveVideoTrack=function(){if(void 0!==t._player){var e,r,n,i,a=fk(t._player.videoTracks,function(e){return e.enabled});t._activeVideoTrack!==a&&(null==(e=t._activeVideoTrack)||e.removeEventListener("activequalitychanged",t._updateActiveVideoQuality),null==(r=t._activeVideoTrack)||r.removeEventListener("targetqualitychanged",t._updateTargetVideoQualities),t._activeVideoTrack=a,t._updateActiveVideoQuality(),t._updateTargetVideoQualities(),null==(n=t._activeVideoTrack)||n.addEventListener("activequalitychanged",t._updateActiveVideoQuality),null==(i=t._activeVideoTrack)||i.addEventListener("targetqualitychanged",t._updateTargetVideoQualities))}},t._updateActiveVideoQuality=function(){for(var e,r,n=null==(e=t._activeVideoTrack)?void 0:e.activeQuality,i=fd(t._stateReceivers);!(r=i()).done;){var a=r.value;a[fP].indexOf("activeVideoQuality")>=0&&(a.activeVideoQuality=n)}},t._updateTargetVideoQualities=function(){for(var e,r=v$(t._activeVideoTrack),n=fd(t._stateReceivers);!(e=n()).done;){var i=e.value;i[fP].indexOf("targetVideoQualities")>=0&&(i.targetVideoQualities=r)}},t._updateCasting=function(){var e,r,n;t.casting=null!=(e=null==(n=t._player)||null==(r=n.cast)?void 0:r.casting)&&e},t._updatePlayingAd=function(){var e,r,n;t._isPlayingAd=null!=(e=null==(n=t._player)||null==(r=n.ads)?void 0:r.playing)&&e},t._onSourceChange=function(){t.closeMenu_(),t._hasFirstPlay=void 0!==t._player&&!t._player.paused},t.setUserIdle_=function(){if(clearTimeout(t._userIdleTimer),t._userIdleTimer=0,!(t.userIdleTimeout<0)&&(t._isUserActive=!1,t.updateUserIdle_(),"tv"==t.deviceType&&t.isUserIdle_())){var e=va();null!==e&&e.blur()}},t.scheduleUserIdle_=function(){if(t.setUserActive_(),clearTimeout(t._userIdleTimer),t.userIdleTimeout<0){t._userIdleTimer=0;return}t._userIdleTimer=setTimeout(t.setUserIdle_,1e3*t.userIdleTimeout)},t._onTvKeyDown=function(e){if(yV(e.keyCode))return void t.setUserIdle_();var r=function e(t){if(fg(t)&&"none"!==getComputedStyle(t).display){if(null!==t.getAttribute(yq.TV_FOCUS))return fS(t);for(var r=fE(t),n=0;n<r.length;n++){var i=e(r[n]);if(i)return i}}}(t),n=fS(t),i=va();if(!i){var a=null!=r?r:n;a.length>0&&(a[0].focus(),i=a[0])}!t.isUserIdle_()&&(e.keyCode===yj.ENTER?null!==i&&(e.preventDefault(),i.click()):yz(e.keyCode)&&vo(t,n,e.keyCode)&&(e.preventDefault(),e.stopPropagation()))},t._onKeyUp=function(e){yV(e.keyCode)||t.scheduleUserIdle_()},t._onPointerUp=function(e){"mouse"===e.pointerType?t.scheduleUserIdle_():"touch"===e.pointerType&&(t.isPlayerOrMedia_(e.target)&&t._isUserActive?t.setUserIdle_():(t.isUserIdle_()&&(t._lastPointerUpTime=performance.now(),t.addEventListener("click",t._onClickAfterPointerUp,!0)),t.scheduleUserIdle_()))},t._onClickAfterPointerUp=function(e){t.removeEventListener("click",t._onClickAfterPointerUp,!0),performance.now()-t._lastPointerUpTime<50&&(e.preventDefault(),e.stopPropagation())},t._onPointerMove=function(e){"mouse"===e.pointerType&&(t.setUserActive_(),t.isPlayerOrMedia_(e.target)&&t.scheduleUserIdle_())},t._onMouseLeave=function(){t.setUserIdle_()},t._onChromeSlotTransition=function(e){"opacity"===e.propertyName&&t._updateTextTrackMargins()},t._updateTextTrackMargins=function(){var e=t._player;if(void 0!==e){var r=t._topChromeSlotRef.value&&bY(t._topChromeSlotRef.value),n=t._bottomChromeSlotRef.value&&bY(t._bottomChromeSlotRef.value);e.textTrackStyle.marginTop=null==r?void 0:r.height,e.textTrackStyle.marginBottom=null==n?void 0:n.height}},t._onPreviewTimeChange=function(e){t._previewTime=e.detail.previewTime;for(var r,n=fd(t._stateReceivers);!(r=n()).done;){var i=r.value;i[fP].indexOf("previewTime")>=0&&(i.previewTime=t._previewTime)}},t._onDestroy=function(){t._player&&(t.removePlayerListeners_(t._player),t._player=void 0,t.propagatePlayerToAllReceivers_())},t._configuration=e,t._mutationObserver=new MutationObserver(t._onMutation),"u">typeof ResizeObserver&&(t._resizeObserver=new ResizeObserver(t._updateTextTrackMargins)),t.tryInitializePlayer_(),t}i(a,n);var o=a.prototype;return o._setConfiguration=function(e){this._configuration=null!=e?e:{},this.tryInitializePlayer_()},o._setSource=function(e){this._player?this._player.source=e:this._source=e},o.connectedCallback=function(){if(n.prototype.connectedCallback.call(this),!bW){if(pE)document.adoptedStyleSheets.push(bG.styleSheet);else if(!document.getElementById(bQ)){var e,t=document.createElement("style");t.id=bQ;var r=window.litNonce;void 0!==r&&t.setAttribute("nonce",r),e=bG.cssText,void 0===t.textContent?t.innerText=e:t.textContent=e,document.head.appendChild(t)}bW=!0}this.hasAttribute(yq.LANG)||(this.lang=null!=(a=null==(o=fC(this,"[lang]"))?void 0:o.lang)?a:""),this.hasAttribute(yq.DEVICE_TYPE)||(this.deviceType=bq()?"mobile":bj()?"tv":"desktop"),this.hasAttribute(yq.PAUSED)||(this.paused=!0),this.tryInitializePlayer_();for(var i,a,o,l,s=fd(this._stateReceivers);!(l=s()).done;){var u=l.value;this.propagateStateToReceiver_(u)}this._mutationObserver.observe(this,{childList:!0,subtree:!0}),this.shadowRoot.addEventListener("slotchange",this._onSlotChange),null==(i=this._resizeObserver)||i.observe(this),this._updateTextTrackMargins(),void 0!==bU&&(document.addEventListener(bU.fullscreenchange_,this._onFullscreenChange),document.addEventListener(bU.fullscreenerror_,this._onFullscreenChange),this._onFullscreenChange()),this.setUserIdle_(),"tv"===this.deviceType&&window.addEventListener("keydown",this._onTvKeyDown),this._isFullWindow&&window.addEventListener("keydown",this._exitFullscreenOnEsc),this.addEventListener("keyup",this._onKeyUp),this.addEventListener("pointerup",this._onPointerUp),this.addEventListener("pointermove",this._onPointerMove),this.addEventListener("mouseleave",this._onMouseLeave)},o.tryInitializePlayer_=function(){void 0!==this._player||void 0===this._playerRef.value||(void 0!==this._configuration.license||void 0!==this._configuration.licenseUrl)&&(this._player=new t.ChromelessPlayer(this._playerRef.value,this._configuration),this._source&&(this._player.source=this._source,this._source=void 0),this._player.muted!==this.muted&&(this._player.muted=this.muted),this._player.autoplay!==this.autoplay&&(this._player.autoplay=this.autoplay),this._updateAspectRatio(),this._updateError(),this._updatePausedAndEnded(),this._updateCasting(),this.addPlayerListeners_(this._player),this.propagatePlayerToAllReceivers_(),this.dispatchEvent(vt(bV)))},o.createRenderRoot=function(){var e=n.prototype.createRenderRoot.call(this);return e.addEventListener(vk,this._onToggleMenu),e.addEventListener(gl,this._onEnterFullscreen),e.addEventListener(gs,this._onExitFullscreen),e.addEventListener(gP,this._onPreviewTimeChange),e},o.firstUpdated=function(){this._menuGroupRef.value&&!T(this._menuGroupRef,e.MenuGroup)&&customElements.upgrade(this._menuGroupRef.value),this.tryInitializePlayer_(),this._playerRef.value&&fM(this,this._playerRef.value,this.registerStateReceiver_)},o.updated=function(){this._updateTextTrackMargins()},o.disconnectedCallback=function(){var e;n.prototype.disconnectedCallback.call(this),null==(e=this._resizeObserver)||e.disconnect(),this._mutationObserver.disconnect(),this.shadowRoot.removeEventListener("slotchange",this._onSlotChange),void 0!==bU&&(document.removeEventListener(bU.fullscreenchange_,this._onFullscreenChange),document.removeEventListener(bU.fullscreenerror_,this._onFullscreenChange)),window.removeEventListener("keydown",this._onTvKeyDown),window.removeEventListener("keydown",this._exitFullscreenOnEsc),this.removeEventListener("keyup",this._onKeyUp),this.removeEventListener("pointerup",this._onPointerUp),this.removeEventListener("click",this._onClickAfterPointerUp,!0),this.removeEventListener("pointermove",this._onPointerMove),this.removeEventListener("mouseleave",this._onMouseLeave),this._player&&(this.removePlayerListeners_(this._player),this._player.destroy(),this._player=void 0,this.propagatePlayerToAllReceivers_()),this._stateReceivers.length=0},o.propagateStateToReceiver_=function(e){var t,r=e[fP];r.indexOf("player")>=0&&(e.player=this._player),r.indexOf("lang")>=0&&(e.lang=this.lang),r.indexOf("fullscreen")>=0&&(e.fullscreen=this.fullscreen),r.indexOf("deviceType")>=0&&(e.deviceType=this.deviceType),r.indexOf("streamType")>=0&&(e.streamType=this.streamType),void 0!==this._player&&(r.indexOf("playbackRate")>=0&&(e.playbackRate=this._player.playbackRate),r.indexOf("error")>=0&&(e.error=this._player.errorObject),r.indexOf("activeVideoQuality")>=0&&(e.activeVideoQuality=null==(t=this._activeVideoTrack)?void 0:t.activeQuality),r.indexOf("targetVideoQualities")>=0&&(e.targetVideoQualities=v$(this._activeVideoTrack))),r.indexOf("previewTime")>=0&&(e.previewTime=this._previewTime)},o.propagatePlayerToAllReceivers_=function(){for(var e,t=fd(this._stateReceivers);!(e=t()).done;){var r=e.value;r[fP].indexOf("player")>=0&&(r.player=this._player)}},o.removeStateFromReceiver_=function(e){e[fP].indexOf("player")>=0&&(e.player=void 0)},o.openMenu_=function(e,t){var r=vi.fromRect(this._topChromeRef.value.getBoundingClientRect()),n=vi.fromRect(this._bottomChromeRef.value.getBoundingClientRect()),i=!0,a=!0;if(void 0!==t){var o=vi.fromRect(this.getBoundingClientRect()),l=vi.fromRect(t.getBoundingClientRect());o.width>0&&o.height>0&&(i=l.top>=o.top+o.height/2,a=l.left>=o.left+o.width/2)}this._menuGroupRef.value.openMenu(e,t),this._menuOpener=t,gw(this,{"--theoplayer-menu-offset-top":""+Math.round(r.height)+"px","--theoplayer-menu-offset-bottom":""+Math.round(n.height)+"px","--theoplayer-menu-margin-top":i?"auto":"0","--theoplayer-menu-margin-bottom":i?"0":"auto","--theoplayer-menu-margin-left":a?"auto":"0","--theoplayer-menu-margin-right":a?"0":"auto"})},o.closeMenu_=function(){var e,t,r;null==(t=this._menuGroupRef.value)||null==(e=t.closeMenu)||e.call(t),null==(r=this._menuOpener)||r.focus(),this._menuOpener=void 0},o._enterFullscreen=function(){if(bU&&document[bU.fullscreenEnabled_]&&this[bU.requestFullscreen_]){var e,t,n=this[bU.requestFullscreen_](r({navigationUI:"hide"},null==(t=this._configuration)||null==(e=t.ui)?void 0:e.fullscreenOptions));n&&n.then&&n.then(fv,fv)}else this._player&&this._player.presentation.supportsMode("fullscreen")?this._player.presentation.requestMode("fullscreen"):this._isFullWindow||(this._isFullWindow=!0,document.documentElement.classList.add(bZ),window.addEventListener("keydown",this._exitFullscreenOnEsc),this._onFullscreenChange())},o._exitFullscreen=function(){if(bU){var e=document[bU.exitFullscreen_]();e&&e.then&&e.then(fv,fv)}this._player&&"fullscreen"===this._player.presentation.currentMode&&this._player.presentation.requestMode("inline"),this._isFullWindow&&(this._isFullWindow=!1,document.documentElement.classList.remove(bZ),window.removeEventListener("keydown",this._exitFullscreenOnEsc),this._onFullscreenChange())},o.computeStreamType_=function(){var e=this.source,t=null!=(n=null==e?void 0:e.streamType)?n:this.getAttribute(yq.STREAM_TYPE),r=null==(i=this._player)?void 0:i.duration;if(void 0===r||isNaN(r))return t||"vod";if(r!==1/0)return"vod";if("live"===t||"dvr"===t)return t;var n,i,a,o=this.dvrThreshold;if(o<=0)return"dvr";var l=null==(a=this._player)?void 0:a.seekable;return l&&l.length>0&&l.end(l.length-1)-l.start(0)>=o?"dvr":"live"},o.isUserIdle_=function(){return!this._isUserActive&&!this.paused&&!this.casting&&!!this._menuGroupRef.value&&!this._menuGroupRef.value.hasCurrentMenu()},o.setUserActive_=function(){clearTimeout(this._userIdleTimer),this._isUserActive=!0,this.updateUserIdle_()},o.updateUserIdle_=function(){this.userIdle=this.isUserIdle_()},o.isPlayerOrMedia_=function(e){return e===this||this._playerRef.value.contains(e)},o.addPlayerListeners_=function(e){var t,r,n,i;e.addEventListener("destroy",this._onDestroy),e.addEventListener("resize",this._updateAspectRatio),e.addEventListener(["error","sourcechange","emptied"],this._updateError),e.addEventListener("volumechange",this._updateMuted),e.addEventListener("play",this._onPlay),e.addEventListener("pause",this._onPause),e.addEventListener(["ended","emptied"],this._updatePausedAndEnded),e.addEventListener(["durationchange","sourcechange","emptied"],this._updateStreamType),e.addEventListener("ratechange",this._updatePlaybackRate),e.addEventListener("sourcechange",this._onSourceChange),e.addEventListener(["durationchange","sourcechange","emptied"],this._updatePlayingAd),null==(t=e.theoLive)||t.addEventListener(["distributionloadstart","publicationloadstart"],this._onSourceChange),e.videoTracks.addEventListener(["addtrack","removetrack","change"],this._updateActiveVideoTrack),null==(r=e.cast)||r.addEventListener("castingchange",this._updateCasting),null==(n=e.ads)||n.addEventListener(["adbreakbegin","adbreakend","adbegin","adend","adskip"],this._updatePlayingAd),null==(i=e.vr)||i.addEventListener("statechange",this._onVrStateChange)},o.removePlayerListeners_=function(e){e.removeEventListener("destroy",this._onDestroy),e.removeEventListener("resize",this._updateAspectRatio),e.removeEventListener(["error","sourcechange","emptied"],this._updateError),e.removeEventListener("volumechange",this._updateMuted),e.removeEventListener("play",this._onPlay),e.removeEventListener("pause",this._onPause),e.removeEventListener(["ended","emptied"],this._updatePausedAndEnded),e.removeEventListener(["durationchange","sourcechange","emptied"],this._updateStreamType),e.removeEventListener("ratechange",this._updatePlaybackRate),e.removeEventListener("sourcechange",this._onSourceChange),e.removeEventListener(["durationchange","sourcechange","emptied"],this._updatePlayingAd);try{var t,r,n,i;null==(t=e.theoLive)||t.removeEventListener(["distributionloadstart","publicationloadstart"],this._onSourceChange),e.videoTracks.removeEventListener(["addtrack","removetrack","change"],this._updateActiveVideoTrack),null==(r=e.cast)||r.removeEventListener("castingchange",this._updateCasting),null==(n=e.ads)||n.removeEventListener(["adbreakbegin","adbreakend","adbegin","adend","adskip"],this._updatePlayingAd),null==(i=e.vr)||i.removeEventListener("statechange",this._onVrStateChange)}catch(e){}},o.render=function(){return yn(bK(),fn(this._playerRef),fn(this._topChromeRef),fn(this._topChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,fn(this._bottomChromeRef),fn(this._bottomChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,fn(this._menuRef),fn(this._menuGroupRef),this._onCloseMenu,this._onMenuChange)},v(a,[{key:"player",get:function(){return this._player}},{key:"configuration",get:function(){return this._configuration},set:function(e){this._setConfiguration(e)}},{key:"source",get:function(){return this._player?this._player.source:this._source},set:function(e){this._setSource(e)}},{key:"fluid",get:function(){return this._fluid},set:function(e){this._fluid=e,this._updateAspectRatio()}},{key:"lang",get:function(){return this._language},set:function(e){this._language=null!=e?e:"";for(var t,r=fd(this._stateReceivers);!(t=r()).done;){var n=t.value;n[fP].indexOf("lang")>=0&&(n.lang=this._language)}}},{key:"muted",get:function(){return this._muted},set:function(e){this._muted=e,this._player&&this._player.muted!==e&&(this._player.muted=e)}},{key:"autoplay",get:function(){return this._autoplay},set:function(e){this._autoplay=e,this._player&&this._player.autoplay!==e&&(this._player.autoplay=e)}},{key:"fullscreen",get:function(){return this._fullscreen},set:function(e){if(this._fullscreen!==e){this._fullscreen=e;for(var t,r=fd(this._stateReceivers);!(t=r()).done;){var n=t.value;n[fP].indexOf("fullscreen")>=0&&(n.fullscreen=e)}}}},{key:"paused",get:function(){return this._paused},set:function(e){this._paused=e,this.updateUserIdle_()}},{key:"ended",get:function(){return this._ended},set:function(e){this._ended=e}},{key:"casting",get:function(){return this._casting},set:function(e){this._casting=e,this.updateUserIdle_()}},{key:"userIdle",get:function(){return this._userIdle},set:function(e){this._userIdle!==e&&(this._userIdle=e,this.dispatchEvent(vt(bz)))}},{key:"userIdleTimeout",get:function(){var e;return null!=(e=this._userIdleTimeout)?e:"tv"===this.deviceType?5:2},set:function(e){this._userIdleTimeout=void 0===e||isNaN(e)?void 0:e}},{key:"deviceType",get:function(){return this._deviceType},set:function(e){if(this._deviceType!==e){this._deviceType=e,this.mobile="mobile"===e,this.tv="tv"===e,window.removeEventListener("keydown",this._onTvKeyDown),"tv"===e&&window.addEventListener("keydown",this._onTvKeyDown);for(var t,r=fd(this._stateReceivers);!(t=r()).done;){var n=t.value;n[fP].indexOf("deviceType")>=0&&(n.deviceType=e)}}}},{key:"mobile",get:function(){return yM(this,hW)[hW]},set:function(e){yM(this,hW)[hW]=e}},{key:"tv",get:function(){return yM(this,hK)[hK]},set:function(e){yM(this,hK)[hK]=e}},{key:"streamType",get:function(){return this._streamType},set:function(e){if(this._streamType!==e){this._streamType=e;for(var t,r=fd(this._stateReceivers);!(t=r()).done;){var n=t.value;n[fP].indexOf("streamType")>=0&&(n.streamType=e)}var i=vt("theoplayerstreamtypechange",{bubbles:!0,composed:!0,detail:{streamType:e}});this.dispatchEvent(i)}}},{key:"dvrThreshold",get:function(){return this._dvrThreshold},set:function(e){this._dvrThreshold=isNaN(e)?0:e,this._updateStreamType()}},{key:"_hasFirstPlay",get:function(){return yM(this,hZ)[hZ]},set:function(e){yM(this,hZ)[hZ]=e}},{key:"_isPlayingAd",get:function(){return yM(this,hY)[hY]},set:function(e){yM(this,hY)[hY]=e}},{key:"_hasError",get:function(){return yM(this,hJ)[hJ]},set:function(e){yM(this,hJ)[hJ]=e}},{key:"_isFullWindow",get:function(){return yM(this,hX)[hX]},set:function(e){yM(this,hX)[hX]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){this._menuOpened!==e&&(this._menuOpened=e,fT(this,yq.MENU_OPENED,e))}}]),a}(yw),d_=(dE=(dT=o(h0,[[h3,4,"configuration"],[h4,4,"source"],[h8,4,"fluid"],[h7,4,"lang"],[h6,4,"muted"],[h9,4,"autoplay"],[de,4,"fullscreen"],[dt,4,"paused"],[dr,4,"ended"],[dn,4,"casting"],[di,4,"userIdle"],[da,4,"userIdleTimeout"],[dl,4,"deviceType"],[ds,1,"mobile"],[du,1,"tv"],[dc,4,"streamType"],[dh,4,"dvrThreshold"],[dd,1,"_hasFirstPlay"],[dp,1,"_isPlayingAd"],[dy,1,"_hasError"],[df,1,"_isFullWindow"],[dv,4,"menuOpened_"]],[h2],yw)).e)[0],dg=dE[1],db=dE[2],dm=dE[3],dk=dE[4],dw=dE[5],dx=dE[6],e.UIContainer=(dA=dT.c)[0],h5=dA[1],h1);var bX=pC(bJ());function b0(){var e=a(["<theoplayer-ui ",' .configuration="','" .lang="','" .fluid="','" .muted="','" .autoplay="','" .deviceType="','" .streamType="','" .userIdleTimeout="','" .dvrThreshold="','" @theoplayerready="','" @theoplayeruseridlechange="','" @theoplayerstreamtypechange="','">',"</theoplayer-ui>"]);return b0=function(){return e},e}function b1(){var e=a(['<theoplayer-control-bar slot="top-chrome" part="top-chrome"><div part="title" ad-hidden style="','"><slot name="title" @slotchange="','"></slot></div><span class="theoplayer-spacer"></span><theoplayer-language-menu-button menu="language-menu" mobile-only ad-hidden></theoplayer-language-menu-button><theoplayer-airplay-button mobile-only ad-hidden></theoplayer-airplay-button><theoplayer-chromecast-button mobile-only ad-hidden></theoplayer-chromecast-button><slot name="top-control-bar"></slot><theoplayer-settings-menu-button menu="settings-menu" mobile-only ad-hidden></theoplayer-settings-menu-button><theoplayer-ad-clickthrough-button ad-only></theoplayer-ad-clickthrough-button></theoplayer-control-bar><theoplayer-loading-indicator slot="centered-loading" no-auto-hide></theoplayer-loading-indicator><div slot="centered-chrome" part="centered-chrome"><slot name="centered-chrome"><theoplayer-seek-button part="seek-back-button seek-button center-button" seek-offset="-10" mobile-only ad-hidden></theoplayer-seek-button><theoplayer-play-button part="center-play-button play-button center-button"></theoplayer-play-button><theoplayer-seek-button part="seek-forward-button seek-button center-button" seek-offset="10" mobile-only ad-hidden></theoplayer-seek-button></slot></div><div slot="middle-chrome" part="middle-chrome"><theoplayer-chromecast-display></theoplayer-chromecast-display><theoplayer-vr-compass></theoplayer-vr-compass></div><div part="bottom-chrome"><theoplayer-control-bar part="ad-chrome" ad-only><theoplayer-ad-display></theoplayer-ad-display><theoplayer-ad-countdown></theoplayer-ad-countdown><span class="theoplayer-spacer"></span><theoplayer-ad-skip-button></theoplayer-ad-skip-button></theoplayer-control-bar><theoplayer-control-bar><theoplayer-play-button part="play-button" mobile-hidden ad-only class="theoplayer-ad-control"></theoplayer-play-button><theoplayer-mute-button part="mute-button" ad-only class="theoplayer-ad-control"></theoplayer-mute-button><theoplayer-time-range part="time-range" show-ad-markers tv-focus .inert="','" class="theoplayer-ad-control" style="','"></theoplayer-time-range><theoplayer-chromecast-button tv-hidden ad-only class="theoplayer-ad-control"></theoplayer-chromecast-button><theoplayer-fullscreen-button ad-only class="theoplayer-ad-control"></theoplayer-fullscreen-button></theoplayer-control-bar><theoplayer-control-bar ad-hidden><theoplayer-play-button part="play-button" mobile-hidden></theoplayer-play-button><theoplayer-mute-button part="mute-button" tv-hidden></theoplayer-mute-button><theoplayer-volume-range part="volume-range" mobile-hidden tv-hidden></theoplayer-volume-range><theoplayer-live-button part="live-button" live-only ad-hidden></theoplayer-live-button><theoplayer-time-display show-duration remaining-when-live></theoplayer-time-display><span class="theoplayer-spacer" style="pointer-events:auto"></span><theoplayer-language-menu-button menu="language-menu" mobile-hidden ad-hidden></theoplayer-language-menu-button><theoplayer-airplay-button tv-hidden mobile-hidden ad-hidden></theoplayer-airplay-button><theoplayer-chromecast-button tv-hidden mobile-hidden ad-hidden></theoplayer-chromecast-button><slot name="bottom-control-bar"></slot><theoplayer-vr-button tv-hidden ad-hidden></theoplayer-vr-button><theoplayer-settings-menu-button menu="settings-menu" mobile-hidden ad-hidden></theoplayer-settings-menu-button><theoplayer-fullscreen-button part="fullscreen-button" tv-hidden></theoplayer-fullscreen-button></theoplayer-control-bar></div><theoplayer-language-menu id="language-menu" slot="menu" hidden></theoplayer-language-menu><theoplayer-settings-menu id="settings-menu" slot="menu" hidden></theoplayer-settings-menu><slot name="error" slot="error"><theoplayer-error-display></theoplayer-error-display></slot><slot name="menu" slot="menu"></slot>']);return b1=function(){return e},e}function b2(){var e=a([':host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;font-family:Helvetica,Arial,sans-serif;position:relative;width:100%}:host([hidden]){display:none!important}theoplayer-ui{--theoplayer-loading-delay:0.1s;display:block;font-family:Helvetica,Arial,sans-serif;width:100%}:host(:-webkit-full-screen),:host(:-webkit-full-screen) theoplayer-ui{height:100%!important;width:100%!important}:host(:-ms-fullscreen),:host(:-ms-fullscreen) theoplayer-ui{height:100%!important;width:100%!important}:host(:fullscreen),:host(:fullscreen) theoplayer-ui{height:100%!important;width:100%!important}theoplayer-menu::part(heading){display:none!important}[part=centered-chrome]{display:-webkit-box;display:-ms-flexbox;display:flex}[part=centered-chrome] *{--theoplayer-control-height:48px}[part=middle-chrome]{-webkit-box-pack:end;-ms-flex-pack:end;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;justify-content:flex-end;pointer-events:none}[part=bottom-chrome],[part=middle-chrome]{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;position:relative}[part=bottom-chrome]{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}:host([mobile]) theoplayer-ui{--theoplayer-control-backdrop-background:rgba(0,0,0,.5)}:host{--theoplayer-control-background-gradient-stops:transparent 0%,rgba(0,0,0,.01) 8.1%,rgba(0,0,0,.037) 15.5%,rgba(0,0,0,.078) 22.5%,rgba(0,0,0,.131) 29%,rgba(0,0,0,.195) 35.3%,rgba(0,0,0,.264) 41.2%,rgba(0,0,0,.337) 47.1%,rgba(0,0,0,.413) 52.9%,rgba(0,0,0,.486) 58.8%,rgba(0,0,0,.555) 64.7%,rgba(0,0,0,.619) 71%,rgba(0,0,0,.672) 77.5%,rgba(0,0,0,.713) 84.5%,rgba(0,0,0,.74) 91.9%,rgba(0,0,0,.75) 100%}:host(:not([mobile])) [part=bottom-chrome]:before,:host(:not([mobile])) [part=top-chrome]:before{bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}:host(:not([mobile])) [part=top-chrome]:before{background:linear-gradient(to top,var(--theoplayer-control-background-gradient-stops))}:host(:not([mobile])) [part=bottom-chrome]:before{background:linear-gradient(to bottom,var(--theoplayer-control-background-gradient-stops))}.theoplayer-spacer{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}theoplayer-time-range{--theoplayer-control-height:12px;--theoplayer-range-track-pointer-background:hsla(0,0%,100%,.5)}:host(:not([mobile])) [mobile-only],:host([mobile]) [mobile-hidden]{display:none!important}:host(:not([stream-type=vod])) [live-hidden],:host(:not([stream-type=vod])) theoplayer-control-bar ::slotted([live-hidden]),:host([stream-type=vod]) [live-only],:host([stream-type=vod]) theoplayer-control-bar ::slotted([live-only]){display:none!important}theoplayer-ui:not([has-first-play]) [part=centered-chrome] :not(theoplayer-play-button),theoplayer-ui:not([has-first-play]) theoplayer-control-bar,theoplayer-ui:not([playing-ad]) [ad-only],theoplayer-ui[playing-ad] [ad-hidden]{display:none!important}:host(:not([mobile])) theoplayer-ui[has-first-play] [part=centered-chrome] theoplayer-play-button{display:none!important}theoplayer-volume-range{--theoplayer-range-padding-left:0}theoplayer-mute-button+theoplayer-volume-range{--theoplayer-range-padding-right:0;--theoplayer-range-track-width:70px;overflow:hidden;-webkit-transition:width .2s ease-in;transition:width .2s ease-in;width:0}theoplayer-mute-button+theoplayer-volume-range:focus,theoplayer-mute-button+theoplayer-volume-range:hover,theoplayer-mute-button:focus+theoplayer-volume-range,theoplayer-mute-button:hover+theoplayer-volume-range{width:70px}theoplayer-mute-button+theoplayer-volume-range:focus-within,theoplayer-mute-button:focus-within+theoplayer-volume-range{width:70px}theoplayer-live-button+theoplayer-time-display{padding-left:0}theoplayer-live-button[live]+theoplayer-time-display{display:none!important}p{color:#fff;color:var(--theoplayer-text-color,#fff);font-size:20px;font-size:var(--theoplayer-text-font-size,20px)}theolive-bad-network-button{display:none;display:var(--theolive-bad-network-button-display,none)}theoplayer-settings-menu-button{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;display:var(--theolive-quality-button-display,inline-flex)}']);return b2=function(){return e},e}dF=yT("theoplayer-default-ui"),dU=yL(),L={slot:"title",flatten:!0},dq=yS({reflect:!1,attribute:yq.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),dj=yS({reflect:!1,attribute:yq.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),dz=yS({reflect:!0,type:Boolean,attribute:yq.FLUID}),dV=yS({reflect:!0,type:String,attribute:yq.LANG}),dH=yS({reflect:!0,type:Boolean,attribute:yq.MUTED}),dG=yS({reflect:!0,type:Boolean,attribute:yq.AUTOPLAY}),dQ=yS({reflect:!0,type:String,attribute:yq.STREAM_TYPE}),dW=yS({reflect:!0,type:Number,attribute:yq.USER_IDLE_TIMEOUT,useDefault:!0}),dK=yS({reflect:!0,type:String,attribute:yq.DEVICE_TYPE}),dZ=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.MOBILE}),dY=yS({reflect:!0,state:!0,type:Boolean,attribute:yq.TV}),dJ=yS({reflect:!0,type:Number,attribute:yq.DVR_THRESHOLD,useDefault:!0}),dX=yL(),e.DefaultUI=void 0,new(dD=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[bX],t.shadowRootOptions=r({},yw.shadowRootOptions,{delegatesFocus:!0}),t.READY_EVENT=bV,d$(),t}return i(t,e),t}(l),dS=yN("____private__timeRangeInert_1"),dL=yN("____private_titleSlotNodes_2"),dC=yN("____private_fluid_3"),dP=yN("____private_muted_4"),dR=yN("____private_autoplay_5"),dO=yN("____private_streamType_6"),dM=yN("____private_mobile_7"),dB=yN("____private_tv_8"),dN=yN("____private__hasTitle_9"),dI=function(e){function t(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this)||this,dS,{writable:!0,value:void 0}),Object.defineProperty(r,dL,{writable:!0,value:void 0}),Object.defineProperty(r,dC,{writable:!0,value:void 0}),Object.defineProperty(r,dP,{writable:!0,value:void 0}),Object.defineProperty(r,dR,{writable:!0,value:void 0}),Object.defineProperty(r,dO,{writable:!0,value:void 0}),Object.defineProperty(r,dM,{writable:!0,value:void 0}),Object.defineProperty(r,dB,{writable:!0,value:void 0}),Object.defineProperty(r,dN,{writable:!0,value:void 0}),d9(r),r._uiRef=fe(),yM(r,dS)[dS]=d0(r,!1),r._timeRangeInertTimeout=0,r._appliedExtensions=!1,r._configuration={},r._source=void 0,r._language="",r._userIdleTimeout=void 0,r._deviceType="desktop",r._dvrThreshold=60,yM(r,dL)[dL]=d1(r),yM(r,dC)[dC]=d2(r,!1),yM(r,dP)[dP]=d5(r,!1),yM(r,dR)[dR]=d3(r,!1),yM(r,dO)[dO]=d4(r,"vod"),yM(r,dM)[dM]=d8(r,!1),yM(r,dB)[dB]=d7(r,!1),yM(r,dN)[dN]=d6(r,!1),r._updateStreamType=function(){r._uiRef.value&&(r.streamType=r._uiRef.value.streamType)},r._updateUserIdle=function(){clearTimeout(r._timeRangeInertTimeout),r.userIdle?r._timeRangeInert=!0:r._timeRangeInertTimeout=setTimeout(function(){r._timeRangeInert=!1},50),r.dispatchEvent(vt(bz))},r._onTitleSlotChange=function(){r._hasTitle=r.titleSlotNodes.length>0},r.configuration=t,r}i(t,e);var n=t.prototype;return n.connectedCallback=function(){if(e.prototype.connectedCallback.call(this),this.hasAttribute(yq.LANG)||(this.lang=null!=(t=null==(r=fC(this,"[lang]"))?void 0:r.lang)?t:""),this.hasAttribute(yq.DEVICE_TYPE)||(this.deviceType=bq()?"mobile":bj()?"tv":"desktop"),!this._appliedExtensions){this._appliedExtensions=!0;for(var t,r,n,i=fd(bD);!(n=i()).done;)(0,n.value)(this)}this._onTitleSlotChange()},n.disconnectedCallback=function(){clearTimeout(this._timeRangeInertTimeout)},n.firstUpdated=function(){this._source&&(this._uiRef.value.source=this._source,this._source=void 0)},n._onUiReady=function(){this.dispatchEvent(vt(bV))},n.render=function(){return yn(b0(),fn(this._uiRef),this.configuration,this.lang,this.fluid,this.muted,this.autoplay,this.deviceType,this.streamType,this.userIdleTimeout,this.dvrThreshold,this._onUiReady,this._updateUserIdle,this._updateStreamType,this.renderUiContent())},n.renderUiContent=function(){return yn(b1(),g_({display:this._hasTitle?"":"none"}),this._onTitleSlotChange,this._timeRangeInert,g_({display:"live"===this.streamType?"none":""}))},v(t,[{key:"_timeRangeInert",get:function(){return yM(this,dS)[dS]},set:function(e){yM(this,dS)[dS]=e}},{key:"titleSlotNodes",get:function(){return yM(this,dL)[dL]},set:function(e){yM(this,dL)[dL]=e}},{key:"player",get:function(){var e;return null==(e=this._uiRef.value)?void 0:e.player}},{key:"configuration",get:function(){return this._configuration},set:function(e){var t;this._configuration=r({},e,{ads:r({},null!=(t=e.ads)?t:{},{showCountdown:!1})})}},{key:"source",get:function(){return this._uiRef.value?this._uiRef.value.source:this._source},set:function(e){this._uiRef.value?(this._source=void 0,this._uiRef.value.source=e):this._source=e}},{key:"fluid",get:function(){return yM(this,dC)[dC]},set:function(e){yM(this,dC)[dC]=e}},{key:"lang",get:function(){var e,t;return null!=(e=null==(t=this._uiRef.value)?void 0:t.lang)?e:this._language},set:function(e){this._language=null!=e?e:"",this._uiRef.value&&(this._uiRef.value.lang=this._language)}},{key:"muted",get:function(){return yM(this,dP)[dP]},set:function(e){yM(this,dP)[dP]=e}},{key:"autoplay",get:function(){return yM(this,dR)[dR]},set:function(e){yM(this,dR)[dR]=e}},{key:"streamType",get:function(){return yM(this,dO)[dO]},set:function(e){yM(this,dO)[dO]=e}},{key:"userIdle",get:function(){return!!this._uiRef.value&&this._uiRef.value.userIdle}},{key:"userIdleTimeout",get:function(){var e;return null!=(e=this._userIdleTimeout)?e:"tv"===this.deviceType?5:2},set:function(e){this._userIdleTimeout=void 0===e||isNaN(e)?void 0:e}},{key:"deviceType",get:function(){return this._deviceType},set:function(e){this._deviceType!==e&&(this._deviceType=e,this.mobile="mobile"===e,this.tv="tv"===e)}},{key:"mobile",get:function(){return yM(this,dM)[dM]},set:function(e){yM(this,dM)[dM]=e}},{key:"tv",get:function(){return yM(this,dB)[dB]},set:function(e){yM(this,dB)[dB]=e}},{key:"dvrThreshold",get:function(){return this._dvrThreshold},set:function(e){this._dvrThreshold=isNaN(e)?0:e}},{key:"_hasTitle",get:function(){return yM(this,dN)[dN]},set:function(e){yM(this,dN)[dN]=e}}]),t}(yw),d0=(pt=(pe=o(dI,[[dU,1,"_timeRangeInert"],[function(e,t){var r=(null!=L?L:{}).slot,n="slot"+(r?"[name="+r+"]":":not([name])");return yC(e,t,{get:function(){var e,t,r=null==(t=this.renderRoot)?void 0:t.querySelector(n);return null!=(e=null==r?void 0:r.assignedNodes(L))?e:[]}})},1,"titleSlotNodes"],[dq,4,"configuration"],[dj,4,"source"],[dz,1,"fluid"],[dV,4,"lang"],[dH,1,"muted"],[dG,1,"autoplay"],[dQ,1,"streamType"],[dW,4,"userIdleTimeout"],[dK,4,"deviceType"],[dZ,1,"mobile"],[dY,1,"tv"],[dJ,4,"dvrThreshold"],[dX,1,"_hasTitle"]],[dF],yw)).e)[0],d1=pt[1],d2=pt[2],d5=pt[3],d3=pt[4],d4=pt[5],d8=pt[6],d7=pt[7],d6=pt[8],d9=pt[9],e.DefaultUI=(pr=pe.c)[0],d$=pr[1],dD);var b5=pC(b2());function b3(){var e=a(['<p id="loading-announcement" no-auto-hide slot="centered-chrome" style="','"><slot name="loading-announcement">','</slot></p><p id="offline-announcement" no-auto-hide slot="centered-chrome" style="','"><slot name="offline-announcement">','</slot></p><p id="announcement" no-auto-hide slot="centered-chrome" style="','">','</p><theoplayer-loading-indicator slot="centered-loading" no-auto-hide part="loading-indicator"></theoplayer-loading-indicator><div slot="centered-chrome" part="centered-chrome"><theoplayer-play-button part="center-play-button play-button center-button" style="','"></theoplayer-play-button></div><div part="bottom-chrome"><theoplayer-control-bar><theoplayer-play-button mobile-hidden part="play-button" style="','"></theoplayer-play-button><theoplayer-mute-button part="mute-button"></theoplayer-mute-button><theoplayer-volume-range mobile-hidden part="volume-range"></theoplayer-volume-range><theoplayer-live-button ad-hidden live-only part="live-button"></theoplayer-live-button><span class="theoplayer-spacer"></span><theoplayer-settings-menu-button ad-hidden menu="all-quality-menu" part="quality-button"></theoplayer-settings-menu-button><theolive-bad-network-button ad-hidden menu="quality-menu" part="theolive-bad-network-button"></theolive-bad-network-button><theoplayer-fullscreen-button part="fullscreen-button"></theoplayer-fullscreen-button></theoplayer-control-bar></div><theoplayer-menu id="quality-menu" slot="menu" menu-close-on-input hidden><theolive-bad-network-menu></theolive-bad-network-menu></theoplayer-menu><theoplayer-menu id="all-quality-menu" slot="menu" menu-close-on-input hidden><theoplayer-quality-radio-group></theoplayer-quality-radio-group></theoplayer-menu><theoplayer-error-display slot="error" part="error-display" style="','"></theoplayer-error-display>']);return b3=function(){return e},e}pu=yT("theolive-default-ui"),pd=yL(),pp=yL(),py=yL(),pf=yL(),e.THEOliveDefaultUI=void 0,new(ps=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[b5],pc(),t}return i(t,e),t}(l),pn=yN("____private__announcementType_1"),pi=yN("____private__announcementMessage_2"),pa=yN("____private__hidePlayButton_3"),po=yN("____private__hideErrorDisplay_4"),pl=function(e){function t(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this,t)||this,pn,{writable:!0,value:void 0}),Object.defineProperty(r,pi,{writable:!0,value:void 0}),Object.defineProperty(r,pa,{writable:!0,value:void 0}),Object.defineProperty(r,po,{writable:!0,value:void 0}),yM(r,pn)[pn]=(pm(r),pv(r,"")),yM(r,pi)[pi]=p_(r,""),yM(r,pa)[pa]=pg(r,!1),yM(r,po)[po]=pb(r,!1),r.onLoadChannelStart=function(){r.showMessage_("loading",void 0)},r.onChannelOffline=function(){r.showMessage_("offline",void 0)},r.onChannelLoaded=function(){r.hidePlayerError(),r.hideMessage_()},r.onError=function(e){var t=e.errorObject.code;t<13e3||t>=14e3?r.showMessage_("offline",void 0):(r.stopHidingPlayerError(),r.hideMessage_())},r}i(t,e);var r=t.prototype;return r._onUiReady=function(){e.prototype._onUiReady.call(this);var t,r,n,i=this.player;i&&(null==(t=i.theoLive)||t.addEventListener(["distributionloadstart","publicationloadstart"],this.onLoadChannelStart),null==(r=i.theoLive)||r.addEventListener(["distributionoffline","publicationoffline"],this.onChannelOffline),null==(n=i.theoLive)||n.addEventListener(["endpointloaded","publicationloaded"],this.onChannelLoaded),i.addEventListener("error",this.onError))},r.hidePlayerError=function(){var e;null==(e=this._uiRef.value)||e.removeAttribute(yq.HAS_ERROR),this._hideErrorDisplay=!0},r.stopHidingPlayerError=function(){var e;null==(e=this._uiRef.value)||e.setAttribute(yq.HAS_ERROR,""),this._hideErrorDisplay=!1},r.showMessage_=function(e,t){this.hidePlayerError(),this._announcementType=e,this._announcementMessage=null!=t?t:"",this._hidePlayButton=!0},r.hideMessage_=function(){this._announcementType="",this._announcementMessage="",this._hidePlayButton=!1},r.renderUiContent=function(){var e=fV(this.lang),t={display:"loading"===this._announcementType?"":"none"},r={display:"offline"===this._announcementType?"":"none"},n={display:"announcement"===this._announcementType?"":"none"},i={display:this._hidePlayButton?"none":""},a={display:this._hideErrorDisplay?"none":""};return yn(b3(),g_(t),e.liveStreamLoading,g_(r),e.liveStreamOffline,g_(n),this._announcementMessage,g_(i),g_(i),g_(a))},v(t,[{key:"_announcementType",get:function(){return yM(this,pn)[pn]},set:function(e){yM(this,pn)[pn]=e}},{key:"_announcementMessage",get:function(){return yM(this,pi)[pi]},set:function(e){yM(this,pi)[pi]=e}},{key:"_hidePlayButton",get:function(){return yM(this,pa)[pa]},set:function(e){yM(this,pa)[pa]=e}},{key:"_hideErrorDisplay",get:function(){return yM(this,po)[po]},set:function(e){yM(this,po)[po]=e}}]),t}(ph=e.DefaultUI),pv=(pw=(pk=o(pl,[[pd,1,"_announcementType"],[pp,1,"_announcementMessage"],[py,1,"_hidePlayButton"],[pf,1,"_hideErrorDisplay"]],[pu],ph)).e)[0],p_=pw[1],pg=pw[2],pb=pw[3],pm=pw[4],e.THEOliveDefaultUI=(px=pk.c)[0],pc=px[1],ps),e.Attribute=yq,e.CastButton=gW,e.ColorStops=gE,e.ExtensionSlot=bI,e.StateReceiverMixin=function(e,t){var r,n,a=fO(t),l=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(e);return r=(n=o(l,[],[a],e).c)[0],(0,n[1])(),r},e.addLocale=function(e,t){var n,i,a,o,l;fz[e]=r({},fj,t,{fontFamilyLabels:r({},fj.fontFamilyLabels,t.fontFamilyLabels),colorLabels:r({},fj.colorLabels,t.colorLabels),edgeStyleLabels:r({},fj.edgeStyleLabels,t.edgeStyleLabels),formatDuration:null!=(n=t.formatDuration)?n:fB(e,"long"),formatNarrowDuration:null!=(i=t.formatNarrowDuration)?i:fB(e,"narrow"),formatPercentage:null!=(a=t.formatPercentage)?a:fD(e),formatBandwidth:null!=(o=t.formatBandwidth)?o:f$(e),formatLanguage:null!=(l=t.formatLanguage)?l:fq(e)})},e.buttonTemplate=yW,e.linkButtonTemplate=function(e,t){return void 0===t&&(t=""),yW("<a>"+e+"</a>",t)},e.menuGroupTemplate=function(e,t){return void 0===t&&(t=""),"<style>"+t+"</style>"+e},e.menuTemplate=function(e,t,r){return void 0===r&&(r=""),"<style>"+r+'</style><div part="heading"><theoplayer-menu-close-button></theoplayer-menu-close-button>'+e+'</div><div part="content">'+t+"</div>"},e.registerExtension=function(e){bD.push(e)},e.stateReceiver=fO,e.version="2.3.0"},"object"==typeof exports&&"u">typeof module?t(exports,require("theoplayer/chromeless")):"function"==typeof define&&define.amd?define(["exports","theoplayer/chromeless"],t):t((e="u">typeof globalThis?globalThis:e||self).THEOplayerUI={},e.THEOplayer);