@theoplayer/web-ui 2.1.3 → 2.2.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
- import{ChromelessPlayer as e}from"theoplayer/chromeless";function t(){return(t=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 r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function n(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&&r(e,t)}function i(e,t){return t||(t=e.slice(0)),e.raw=t,e}function a(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 o(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,p,d={kind:c,name:l?"#"+t:t,static:o,private:l,metadata:s},y={v:!1};if(d.addInitializer=i(n,y),0===a?l?(h=r.get,p=r.set):(h=function(){return this[t]},p=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)&&(p=function(e){r.set.call(this,e)})),h){var f=h;h=function(e){return 0==arguments.length&&(e=this),f.call(e)}}if(p){var v=p;p=function(e,t){return 1==arguments.length&&(t=e,e=this),v.call(e,t)}}if(l)d.access=h&&p?{get:h,set:p}:h?{get:h}:{set:p};else{var _=function(e){return t in e};d.access=h&&p?{has:_,get:h,set:p}:h?{has:_,get:h}:{has:_,set:p}}var m=e(u,d);return y.v=!0,m}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(a=function(e,t,r,n){if(void 0!==n)var a=n[Symbol.metadata||Symbol.for("Symbol.metadata")];var l=Object.create(void 0===a?null:a),h=function(e,t,r){for(var n=[],i=new Map,a=new Map,l=0;l<t.length;l++){var c,h,p,d,y=t[l];if(Array.isArray(y)){var f=y[1],v=y[2],_=y.length>3,m=f>=5;if(m?(p=e,f-=5,d=h=h||[]):(p=e.prototype,d=c=c||[]),0!==f&&!_){var b=m?a:i,g=b.get(v)||0;if(!0===g||3===g&&4!==f||4===g&&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);!g&&f>2?b.set(v,f):b.set(v,!0)}!function(e,t,r,n,i,a,l,u,c){var h,p,d,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?d={get:h.get,set:h.set}:2===i?d=h.value:3===i?d=h.get:4===i&&(d=h.set),"function"==typeof _)void 0!==(y=o(_,n,h,u,i,a,l,c,d))&&(s(i,y),0===i?p=y:1===i?(p=y.init,d={get:f=y.get||d.get,set:y.set||d.set}):d=y);else for(var m=_.length-1;m>=0;m--)void 0!==(y=o(_[m],n,h,u,i,a,l,c,d))&&(s(i,y),0===i?v=y:1===i?(v=y.init,d={get:f=y.get||d.get,set:y.set||d.set}):d=y,void 0!==v&&(void 0===p?p=v:"function"==typeof p?p=[p,v]:p.push(v)));if(0===i||1===i){if(void 0===p)p=function(e,t){return t};else if("function"!=typeof p){var b=p;p=function(e,t){for(var r=t,n=0;n<b.length;n++)r=b[n].call(e,r);return r}}else{var g=p;p=function(e,t){return g.call(e,t)}}e.push(p)}0!==i&&(1===i?(h.get=d.get,h.set=d.set):2===i?h.value=d:3===i?h.get=d:4===i&&(h.set=d),l?1===i?(e.push(function(e,t){return d.get.call(e,t)}),e.push(function(e,t){return d.set.call(e,t)})):2===i?e.push(d):e.push(function(e,t){return d.call(e,t)}):Object.defineProperty(t,n,h))}(n,p,y,v,f,m,_,d,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 o(e){return e}function l(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 s(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){l(a,n,i,o,s,"next",e)}function s(e){l(a,n,i,o,s,"throw",e)}o(void 0)})}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function h(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function p(e,t,r){t=u(t);var n=c()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r);if(n&&("object"===h(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 d(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function y(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 f(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),e}function v(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 v(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 v(e,t)}}function m(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 b(e){return function(e){if(Array.isArray(e))return v(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 g(e,t,n){return(g=c()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return n&&r(a,n.prototype),a}).apply(null,arguments)}function k(e){var t="function"==typeof Map?new Map:void 0;return(k=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,n)}function n(){return g(e,arguments,u(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r(n,e)})(e)}function w(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 x(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var E,T,A,C,L,S,R,P,O,M,I,B,N,$,D,q,F,U,j,z,V,H,G,Q,W,K,Z,Y,J,X,ee,et,er,en,ei,ea,eo,el,es,eu,ec,eh,ep,ed,ey,ef,ev,e_,em,eb,eg,ek,ew,ex,eE,eT,eA,eC,eL,eS,eR,eP,eO,eM,eI,eB,eN,e$,eD,eq,eF,eU,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,tp,td,ty,tf,tv,t_,tm,tb,tg,tk,tw,tx,tE,tT,tA,tC,tL,tS,tR,tP,tO,tM,tI,tB,tN,t$,tD,tq,tF,tU,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,rp,rd,ry,rf,rv,r_,rm,rb,rg,rk,rw,rx,rE,rT,rA,rC,rL,rS,rR,rP,rO,rM,rI,rB,rN,r$,rD,rq,rF,rU,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,np,nd,ny,nf,nv,n_,nm,nb,ng,nk,nw,nx,nE,nT,nA,nC,nL,nS,nR,nP,nO,nM,nI,nB,nN,n$,nD,nq,nF,nU,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,ip,id,iy,iv,i_,im,ib,ig,ik,iw,ix,iE,iT,iA,iC,iL,iS,iR,iP,iO,iM,iI,iB,iN,i$,iD,iq,iF,iU,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,ap,ad,ay,af,av,a_,am,ab,ag,ak,aw,ax,aE,aT,aA,aC,aL,aS,aR,aP,aO,aM,aI,aB,aN,a$,aD,aq,aF,aU,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,op,od,oy,of,ov,o_,om,ob,og,ok,ow,ox,oE,oT,oA,oC,oL,oS,oR,oP,oO,oM,oI,oB,oN,o$,oD,oq,oF,oU,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,lp,ld,ly,lf,lv,l_,lm,lb,lg,lk,lw,lx,lE,lT,lA,lC,lL,lS,lR,lP,lO,lM,lI,lB,lN,l$,lD,lq,lF,lU,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,sp,sd,sy,sf,sv,s_,sm,sb,sg,sk,sw,sx,sE,sT,sA,sC,sL,sS,sR,sP,sO,sM,sI,sB,sN,s$,sD,sq,sF,sU,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,up,ud,uy,uf,uv,u_,um,ub,ug,uk,uw,ux,uE,uT,uA,uC,uL,uS,uR,uP,uO,uM,uI,uB,uN,u$,uD,uq,uF,uU,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,cp,cd,cy,cf,cv,c_,cm,cb,cg,ck,cw,cx,cE,cT,cA,cC,cL,cS,cR,cP,cO,cM,cI,cB,cN,c$,cD,cq,cF,cU,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=self,hc=hu.ShadowRoot&&(void 0===hu.ShadyCSS||hu.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,hh=Symbol(),hp=new WeakMap,hd=function(){function e(t,r,n){if(d(this,e),this._$cssResult$=!0,n!==hh)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}return f(e,[{key:"styleSheet",get:function(){var e=this.o,t=this.t;if(hc&&void 0===e){var r=void 0!==t&&1===t.length;r&&(e=hp.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&hp.set(t,e))}return e}},{key:"toString",value:function(){return this.cssText}}]),e}(),hy=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 hd(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,hh)},hf=function(e,t){var r=!0,n=!1,i=void 0;if(hc)e.adoptedStyleSheets=t.map(function(e){return x(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=hu.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}}},hv=hc?function(e){return e}:function(e){return x(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 hd("string"==typeof(t=r)?t:t+"",void 0,hh)}(e):e},h_=Object.is,hm=Object.defineProperty,hb=Object.getOwnPropertyDescriptor,hg=Object.getOwnPropertyNames,hk=Object.getOwnPropertySymbols,hw=Object.getPrototypeOf,hx=self,hE=hx.trustedTypes,hT=hE?hE.emptyScript:"",hA=hx.reactiveElementPolyfillSupport,hC=function(e,t){return e},hL={toAttribute:function(e,t){switch(t){case Boolean:e=e?hT: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}},hS=function(e,t){return!h_(e,t)},hR={attribute:!0,type:String,converter:hL,reflect:!1,useDefault:!1,hasChanged:hS};null!=(L=Symbol).metadata||(L.metadata=Symbol("metadata")),null!=hx.litPropertyMetadata||(hx.litPropertyMetadata=new WeakMap);var hP=function(e){function t(){var e;return d(this,t),(e=p(this,t))._$Ep=void 0,e.isUpdatePending=!1,e.hasUpdated=!1,e._$Em=null,e._$Ev(),e}return n(t,e),f(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 hf(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:hL).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:hL;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:hS)(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 s(function(){var e;return w(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=m(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,p=void 0;if(u.size>0)try{for(var d,y=u[Symbol.iterator]();!(c=(d=y.next()).done);c=!0){var f=m(d.value,2),v=f[0],_=f[1],b=_.wrapped,g=this[v];!0!==b||this._$AL.has(v)||void 0===g||this.C(v,void 0,_,g)}}catch(e){h=!0,p=e}finally{try{c||null==y.return||y.return()}finally{if(h)throw p}}}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&&b(this._$Eh.keys())}},{key:"createProperty",value:function(e,t){if(void 0===t&&(t=hR),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&&hm(this.prototype,e,n)}}},{key:"getPropertyDescriptor",value:function(e,t,r){var n,i=null!=(n=hb(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:hR}},{key:"_$Ei",value:function(){if(!this.hasOwnProperty(hC("elementProperties"))){var e=hw(this);e.finalize(),void 0!==e.l&&(this.l=b(e.l)),this.elementProperties=new Map(e.elementProperties)}}},{key:"finalize",value:function(){if(!this.hasOwnProperty(hC("finalized"))){if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(hC("properties"))){var e=this.properties,t=b(hg(e)).concat(b(hk(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,p=void 0;if(void 0!==u)try{for(var d,y=u[Symbol.iterator]();!(c=(d=y.next()).done);c=!0){var f=m(d.value,2),v=f[0],_=f[1];this.elementProperties.set(v,_)}}catch(e){h=!0,p=e}finally{try{c||null==y.return||y.return()}finally{if(h)throw p}}}this._$Eh=new Map;var g=!0,k=!1,w=void 0;try{for(var x,E=this.elementProperties[Symbol.iterator]();!(g=(x=E.next()).done);g=!0){var T=m(x.value,2),A=T[0],C=T[1],L=this._$Eu(A,C);void 0!==L&&this._$Eh.set(L,A)}}catch(e){k=!0,w=e}finally{try{g||null==E.return||E.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(hv(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(hv(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}(k(HTMLElement));hP.elementStyles=[],hP.shadowRootOptions={mode:"open"},hP[hC("elementProperties")]=new Map,hP[hC("finalized")]=new Map,null==hA||hA({ReactiveElement:hP}),(null!=(S=hx.reactiveElementVersions)?S:hx.reactiveElementVersions=[]).push("2.1.2");var hO=self,hM=function(e){return e},hI=hO.trustedTypes,hB=hI?hI.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,hN="$lit$",h$="lit$"+Math.random().toFixed(9).slice(2)+"$",hD="?"+h$,hq="<"+hD+">",hF=document,hU=function(){return hF.createComment("")},hj=function(e){return null===e||"object"!=(void 0===e?"undefined":h(e))&&"function"!=typeof e},hz=Array.isArray,hV="[ \n\f\r]",hH=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hG=/-->/g,hQ=/>/g,hW=RegExp(">|"+hV+"(?:([^\\s\"'>=/]+)("+hV+"*="+hV+"*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)","g"),hK=/'/g,hZ=/"/g,hY=/^(?:script|style|textarea|title)$/i,hJ=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}},hX=Symbol.for("lit-noChange"),h0=Symbol.for("lit-nothing"),h1=new WeakMap,h2=hF.createTreeWalker(hF,129,null,!1);function h5(e,t){if(!hz(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==hB?hB.createHTML(t):t}var h3=function(e,t){for(var r,n=e.length-1,i=[],a=2===t?"<svg>":3===t?"<math>":"",o=hH,l=0;l<n;l++){for(var s=e[l],u=void 0,c=void 0,h=-1,p=0;p<s.length&&(o.lastIndex=p,null!==(c=o.exec(s)));)p=o.lastIndex,o===hH?"!--"===c[1]?o=hG:void 0!==c[1]?o=hQ:void 0!==c[2]?(hY.test(c[2])&&(r=RegExp("</"+c[2],"g")),o=hW):void 0!==c[3]&&(o=hW):o===hW?">"===c[0]?(o=null!=r?r:hH,h=-1):void 0===c[1]?h=-2:(h=o.lastIndex-c[2].length,u=c[1],o=void 0===c[3]?hW:'"'===c[3]?hZ:hK):o===hZ||o===hK?o=hW:o===hG||o===hQ?o=hH:(o=hW,r=void 0);var d=o===hW&&e[l+1].startsWith("/>")?" ":"";a+=o===hH?s+hq:h>=0?(i.push(u),s.slice(0,h)+hN+s.slice(h)+h$+d):s+h$+(-2===h?l:d)}return[h5(e,a+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]},h4=function(){function e(t,r){var n=t.strings,i=t._$litType$;d(this,e),this.parts=[];var a=0,o=0,l=n.length-1,s=this.parts,u=m(h3(n,i),2),c=u[0],h=u[1];if(this.el=e.createElement(c,r),h2.currentNode=this.el.content,2===i||3===i){var p,y=this.el.content.firstChild;y.replaceWith.apply(y,b(y.childNodes))}for(;null!==(p=h2.nextNode())&&s.length<l;){if(1===p.nodeType){var f=!0,v=!1,_=void 0;if(p.hasAttributes())try{for(var g,k=p.getAttributeNames()[Symbol.iterator]();!(f=(g=k.next()).done);f=!0){var w=g.value;if(w.endsWith(hN)){var x=h[o++],E=p.getAttribute(w).split(h$),T=/([.?@])?(.*)/.exec(x);s.push({type:1,index:a,name:T[2],strings:E,ctor:"."===T[1]?pe:"?"===T[1]?pt:"@"===T[1]?pr:h9}),p.removeAttribute(w)}else w.startsWith(h$)&&(s.push({type:6,index:a}),p.removeAttribute(w))}}catch(e){v=!0,_=e}finally{try{f||null==k.return||k.return()}finally{if(v)throw _}}if(hY.test(p.tagName)){var A=p.textContent.split(h$),C=A.length-1;if(C>0){p.textContent=hI?hI.emptyScript:"";for(var L=0;L<C;L++)p.append(A[L],hU()),h2.nextNode(),s.push({type:2,index:++a});p.append(A[C],hU())}}}else if(8===p.nodeType)if(p.data===hD)s.push({type:2,index:a});else for(var S=-1;-1!==(S=p.data.indexOf(h$,S+1));)s.push({type:7,index:a}),S+=h$.length-1;a++}}return f(e,null,[{key:"createElement",value:function(e,t){var r=hF.createElement("template");return r.innerHTML=e,r}}]),e}();function h8(e,t,r,n){if(void 0===r&&(r=e),t===hX)return t;var i,a,o,l,s=void 0!==n?null==(o=r._$Co)?void 0:o[n]:r._$Cl,u=hj(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=h8(e,s._$AS(e,t.values),s,n)),t}var h7=function(){function e(t,r){d(this,e),this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}return f(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:hF).importNode(n,!0);h2.currentNode=a;for(var o=h2.nextNode(),l=0,s=0,u=i[0];void 0!==u;){if(l===u.index){var c=void 0;2===u.type?c=new h6(o,o.nextSibling,this,e):1===u.type?c=new u.ctor(o,u.name,u.strings,this,e):6===u.type&&(c=new pn(o,this,e)),this._$AV.push(c),u=i[++s]}l!==(null==u?void 0:u.index)&&(o=h2.nextNode(),l++)}return h2.currentNode=hF,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}(),h6=function(){function e(t,r,n,i){var a;d(this,e),this.type=2,this._$AH=h0,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 f(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),hj(e=h8(this,e,t))?e===h0||null==e||""===e?(this._$AH!==h0&&this._$AR(),this._$AH=h0):e!==this._$AH&&e!==hX&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):hz(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!==h0&&hj(this._$AH)?this._$AA.nextSibling.data=e:this.T(hF.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=h4.createElement(h5(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 h7(i,this),o=a.u(this.options);a.p(r),this.T(o),this._$AH=a}}},{key:"_$AC",value:function(e){var t=h1.get(e.strings);return void 0===t&&h1.set(e.strings,t=new h4(e)),t}},{key:"k",value:function(t){hz(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(hU()),this.O(hU()),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=hM(e).nextSibling;hM(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}(),h9=function(){function e(t,r,n,i,a){d(this,e),this.type=1,this._$AH=h0,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=h0}return f(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=!hj(e=h8(this,e,t,0))||e!==this._$AH&&e!==hX)&&(this._$AH=e);else{var o,l,s=e;for(e=i[0],o=0;o<i.length-1;o++)(l=h8(this,s[r+o],t,o))===hX&&(l=this._$AH[o]),a||(a=!hj(l)||l!==this._$AH[o]),l===h0?e=h0:e!==h0&&(e+=(null!=l?l:"")+i[o+1]),this._$AH[o]=l}a&&!n&&this.j(e)}},{key:"j",value:function(e){e===h0?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}]),e}(),pe=function(e){function t(){var e;return d(this,t),e=p(this,t,arguments),e.type=3,e}return n(t,e),f(t,[{key:"j",value:function(e){this.element[this.name]=e===h0?void 0:e}}]),t}(h9),pt=function(e){function t(){var e;return d(this,t),e=p(this,t,arguments),e.type=4,e}return n(t,e),f(t,[{key:"j",value:function(e){this.element.toggleAttribute(this.name,!!e&&e!==h0)}}]),t}(h9),pr=function(e){function t(e,r,n,i,a){var o;return d(this,t),(o=p(this,t,[e,r,n,i,a])).type=5,o}return n(t,e),f(t,[{key:"_$AI",value:function(e,t){if(void 0===t&&(t=this),(e=null!=(r=h8(this,e,t,0))?r:h0)!==hX){var r,n=this._$AH,i=e===h0&&n!==h0||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==h0&&(n===h0||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}(h9),pn=function(){function e(t,r,n){d(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}return f(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){h8(this,e)}}]),e}(),pi=hO.litHtmlPolyfillSupport;null==pi||pi(h4,h6),(null!=(R=hO.litHtmlVersions)?R:hO.litHtmlVersions=[]).push("3.3.2");var pa=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 h6(t.insertBefore(hU(),l),l,void 0,null!=r?r:{})}return i._$AI(e),i},po=globalThis,pl=function(e){function t(){var e;return d(this,t),e=p(this,t,arguments),e.renderOptions={host:e},e._$Do=void 0,e}return n(t,e),f(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=pa(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 hX}}]),t}(hP);pl._$litElement$=!0,pl.finalized=!0,null==(O=po.litElementHydrateSupport)||O.call(po,{LitElement:pl});var ps=po.litElementPolyfillSupport;null==ps||ps({LitElement:pl}),(null!=(P=po.litElementVersions)?P:po.litElementVersions=[]).push("4.2.2");var pu=function(e){return function(t,r){void 0!==r?r.addInitializer(function(){customElements.define(e,t)}):customElements.define(e,t)}},pc={attribute:!0,type:String,converter:hL,reflect:!1,hasChanged:hS},ph=function(e,t,r){void 0===e&&(e=pc);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 pp(e){return function(t,r){var n;return"object"==(void 0===r?"undefined":h(r))?ph(e,t,r):(n=t.hasOwnProperty(r),t.constructor.createProperty(r,e),n?Object.getOwnPropertyDescriptor(t,r):void 0)}}function pd(e){var t,r;return pp((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 py=function(e,t,r){return r.configurable=!0,r.enumerable=!0,Reflect.decorate&&"object"!=(void 0===t?"undefined":h(t))&&Object.defineProperty(e,t,r),r};function pf(){var e=i([":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 pf=function(){return e},e}var pv=hy(pf());function p_(){var e=i(["<slot></slot>"]);return p_=function(){return e},e}B=pu("theoplayer-control-bar"),new(I=function(e){function r(){var r;return r=e.apply(this,arguments)||this,r.styles=[pv],r.shadowRootOptions=t({},pl.shadowRootOptions,{delegatesFocus:!0}),N(),r}return n(r,e),r}(o),M=function(e){function t(){return e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return hJ(p_())},t}(pl),$=(D=a(M,[],[B],pl).c)[0],N=D[1],I);var pm=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}}},pb=function(){function e(t){d(this,e)}return f(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,b(t))}}]),e}(),pg=pm(function(e){function t(e){var r;if(d(this,t),r=p(this,t,[e]),2!==e.type)throw Error("templateContent can only be used in child bindings");return r}return n(t,e),f(t,[{key:"render",value:function(e){return this.vt===e?hX:(this.vt=e,document.importNode(e.content,!0))}}]),t}(pb));function pk(){var e=i([":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 pk=function(){return e},e}var pw=hy(pk()),px=((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.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),pE=((T={})[T.ENTER=13]="ENTER",T[T.ESCAPE=27]="ESCAPE",T[T.SPACE=32]="SPACE",T[T.END=35]="END",T[T.HOME=36]="HOME",T[T.LEFT=37]="LEFT",T[T.UP=38]="UP",T[T.RIGHT=39]="RIGHT",T[T.DOWN=40]="DOWN",T[T.BACK_SAMSUNG=88]="BACK_SAMSUNG",T[T.BACK_WEBOS=461]="BACK_WEBOS",T[T.BACK_TIZEN=10009]="BACK_TIZEN",T);function pT(e){return 37<=e&&e<=40}function pA(e){return 10009===e||27===e||88===e||461===e}function pC(e){return 13===e||32===e}function pL(){var e=i(["",""]);return pL=function(){return e},e}function pS(){var e=i(["<slot></slot>"]);return pS=function(){return e},e}function pR(e,t){return void 0===t&&(t=""),"<style>"+t+"</style>"+e}function pP(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}U=pu("theoplayer-button"),z=pp({reflect:!0,type:Boolean,attribute:px.DISABLED}),new(F=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pw],j(),t}return n(t,e),t}(o),q=function(e){function t(t){var r;return r=e.call(this)||this,V(r),r._disabled=!1,r._onClick=function(){r.handleClick()},r._onKeyDown=function(e){!pC(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),pC(e.keyCode)&&r.handleClick()},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}n(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(px.ARIA_LIVE)||this.setAttribute(px.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?hJ(pL(),pg(this._template)):hJ(pS())},r.handleClick=function(){},f(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?this._disable():this._enable()}}]),t}(pl),V=(G=a(q,[[z,4,"disabled"]],[U],pl)).e[0],H=(Q=G.c)[0],j=Q[1],F);var pO=0;function pM(e){return"__private_"+pO+++"_"+e}function pI(){var e=i([":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 pI=function(){return e},e}var pB=hy(pI()),pN=function(e){return e},p$=function(){return document.createComment("")},pD=function(e,t,r){var n=e._$AA.parentNode,i=void 0===t?e._$AB:t._$AA;if(void 0===r)r=new h6(n.insertBefore(p$(),i),n.insertBefore(p$(),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=pN(c).nextSibling;pN(n).insertBefore(c,i),c=h}}return r},pq=function(e,t,r){return void 0===r&&(r=e),e._$AI(t,r),e},pF={},pU=function(e){e._$AR(),e._$AA.remove()},pj=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),pj(u,t)}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return!0},pz=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))},pV=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),pQ(t)}};function pH(e){void 0!==this._$AN?(pz(this),this._$AM=e,pV(this)):this._$AM=e}function pG(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++)pj(n[a],!1),pz(n[a]);else null!=n&&(pj(n,!1),pz(n));else pj(this,e)}var pQ=function(e){2==e.type&&(null!=e._$AP||(e._$AP=pG),null!=e._$AQ||(e._$AQ=pH))},pW=function(e){function t(){var e;return d(this,t),e=p(this,t,arguments),e._$AN=void 0,e}return n(t,e),f(t,[{key:"_$AT",value:function(t,r,n){e.prototype._$AT.call(this,t,r,n),pV(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&&(pj(this,e),pz(this))}},{key:"setValue",value:function(e){if(void 0===this._$Ct.strings)this._$Ct._$AI(e,this);else{var t=b(this._$Ct._$AH);t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}},{key:"disconnected",value:function(){}},{key:"reconnected",value:function(){}}]),t}(pb),pK=function(){return new pZ},pZ=function e(){d(this,e)},pY=new WeakMap,pJ=pm(function(e){function t(){return d(this,t),p(this,t,arguments)}return n(t,e),f(t,[{key:"render",value:function(e){return h0}},{key:"update",value:function(e,t){var r,n=m(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)),h0}},{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=pY.get(r);void 0===n&&(n=new WeakMap,pY.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=pY.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}(pW));function pX(){var e=i(["",""]);return pX=function(){return e},e}function p0(){var e=i(["<a ",' href="','" target="','" @keydown="','" @click="','">',"</a>"]);return p0=function(){return e},e}function p1(){var e=i(["<slot></slot>"]);return p1=function(){return e},e}function p2(e,t){return void 0===t&&(t=""),pR("<a>"+e+"</a>",t)}J=pu("theoplayer-link-button"),ee=pp({reflect:!0,type:Boolean,attribute:px.DISABLED}),et=pd(),er=pd(),new(Y=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pB],X(),t}return n(t,e),t}(o),W=pM("____private_href_1"),K=pM("____private_target_2"),Z=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,W,{writable:!0,value:void 0}),Object.defineProperty(r,K,{writable:!0,value:void 0}),ea(r),r._disabled=!1,r._linkRef=pK(),pP(r,W)[W]=en(r,""),pP(r,K)[K]=ei(r,""),r._onKeyDown=function(e){if(!e.metaKey&&!e.altKey)if(e.keyCode!==pE.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}n(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(px.ARIA_LIVE)||this.setAttribute(px.ARIA_LIVE,"polite"),this.hasAttribute(px.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?hJ(pX(),pg(this._template)):hJ(p0(),pJ(this._linkRef),this.href,this.target,this._onKeyDown,this._onClick,this.renderLinkContent())},r.renderLinkContent=function(){return hJ(p1())},r.handleClick=function(){},f(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?this._disable():this._enable()}},{key:"href",get:function(){return pP(this,W)[W]},set:function(e){pP(this,W)[W]=e}},{key:"target",get:function(){return pP(this,K)[K]},set:function(e){pP(this,K)[K]=e}}]),t}(pl),en=(es=(el=a(Z,[[ee,4,"disabled"],[et,1,"href"],[er,1,"target"]],[J],pl)).e)[0],ei=es[1],ea=es[2],eo=(eu=el.c)[0],X=eu[1],Y);var p5=function(e){function t(e){var r;if(d(this,t),(r=p(this,t,[e])).it=h0,2!==e.type)throw Error(r.constructor.directiveName+"() can only be used in child bindings");return r}return n(t,e),f(t,[{key:"render",value:function(e){if(e===h0||null==e)return this._t=void 0,this.it=e;if(e===hX)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}(pb);p5.directiveName="unsafeHTML",p5.resultType=1;var p3=function(e){function t(){return d(this,t),p(this,t,arguments)}return n(t,e),t}(p5);p3.directiveName="unsafeSVG",p3.resultType=2;var p4=pm(p3);function p8(){var e=i([":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 p8=function(){return e},e}var p7=hy(p8());function p6(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 p9(){var e=i([":host{display:contents}::slotted(:not([no-auto-hide])),slot{opacity:inherit}"]);return p9=function(){return e},e}var de=hy(p9());function dt(){var e=i(["<slot></slot>"]);return dt=function(){return e},e}function dr(){}function dn(e){return e.nodeType===Node.ELEMENT_NODE}function di(e){return x(e,HTMLElement)}ep=pu("theoplayer-slot-container"),new(eh=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[de],ed(),t}return n(t,e),t}(o),ec=function(e){function t(){return e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return hJ(dt())},t}(pl),ey=(ef=a(ec,[],[ep],pl).c)[0],ed=ef[1],eh);var da="function"==typeof Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},dl="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){return Array.prototype.slice.call(e)},ds="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]},du="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},dc="function"==typeof String.prototype.startsWith?function(e,t){return e.startsWith(t)}:function(e,t){return e.substring(0,t.length)===t},dh="u">typeof Intl&&Intl.DisplayNames?function(e){var t=new Intl.DisplayNames([e,"en"],{type:"language",fallback:"none"}),r=t.of(e);if(r){var n=t.resolvedOptions().locale,i=r[0];return i.toLocaleUpperCase(n)+r.slice(i.length)}}:function(e){};function dp(e,t,r){r?e.setAttribute(t,""):e.removeAttribute(t)}function dd(e){if(e.shadowRoot)return e.shadowRoot.children;if("slot"===e.localName.toLowerCase()){var t=e.assignedNodes();if(t.length>0)return t.filter(dn)}return di(e)?e.children:[]}function dy(e){for(var t,r=[],n=p6(e.assignedNodes({flatten:!0}));!(t=n()).done;){var i=t.value;dn(i)&&(r.push(i),"theoplayer-slot-container"===i.nodeName.toLowerCase())&&r.push.apply(r,[].concat(dl(i.children)))}return r}function df(e){var t=[];return function e(t,r){if(di(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=dd(t),i=0;i<n.length;i++)e(n[i],r)}}}(e,t),t}function dv(e){var t=e.nodeName.toLowerCase();if(t.indexOf("-")>=0)if(!customElements.get(t))return customElements.whenDefined(t);else customElements.upgrade(e)}var d_="theoplayerUiObservedProperties";function dm(e){return d_ in e&&da(e[d_])}var db=function(e){return function(t,r){Object.defineProperty(t.prototype,d_,{value:e})}};function dg(e,t){var r,i,o=db(t),l=function(e){function t(){return e.apply(this,arguments)||this}return n(t,e),t}(e);return r=(i=a(l,[],[o],e).c)[0],(0,i[1])(),r}function dk(e,t,r){return s(function(){var n;return w(this,function(i){switch(i.label){case 0:if(t.contains(e))return[2];if(!(e.nodeName.indexOf("-")>=0&&!dm(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(dm(e)&&r(e),!((n=dd(e)).length>0))return[3,5];return[4,Promise.all(dl(n).map(function(e){return dk(e,t,r)}))];case 4:i.sent(),i.label=5;case 5:return[2]}})})()}function dw(){var e=i(['<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 dw=function(){return e},e}var dx=["seeking","seeked","ended","emptied","sourcechange"];function dE(){var e=i([":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 dE=function(){return e},e}eg=pu("theoplayer-play-button"),ek=db(["player"]),ex=pp({reflect:!0,state:!0,type:Boolean,attribute:px.PAUSED}),eE=pp({reflect:!0,state:!0,type:Boolean,attribute:px.ENDED}),new(eb=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(H.styles,[p7]),ew(),t}return n(t,e),t}(o),ev=pM("____private_paused_1"),e_=pM("____private_ended_2"),em=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ev,{writable:!0,value:void 0}),Object.defineProperty(t,e_,{writable:!0,value:void 0}),pP(t,ev)[ev]=(eC(t),eT(t,!1)),pP(t,e_)[e_]=eA(t,!1),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}n(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.attributeChangedCallback=function(t,r,n){e.prototype.attributeChangedCallback.call(this,t,r,n),eL.observedAttributes.indexOf(t)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e=this.ended?"replay":this.paused?"play":"pause";this.setAttribute(px.ARIA_LABEL,e)},r.render=function(){return hJ(dw(),p4('<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'),p4('<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'),p4('<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'))},f(t,[{key:"paused",get:function(){return pP(this,ev)[ev]},set:function(e){pP(this,ev)[ev]=e}},{key:"ended",get:function(){return pP(this,e_)[e_]},set:function(e){pP(this,e_)[e_]=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(dx,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(dx,this._updateFromPlayer)))}}]),t}(H),eT=(eR=(eS=a(em,[[ex,1,"paused"],[eE,1,"ended"]],[eg,ek],H)).e)[0],eA=eR[1],eC=eR[2],eL=(eP=eS.c)[0],ew=eP[1],eb);var dT=hy(dE());function dA(){var e=i(['<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 dA=function(){return e},e}var dC=["volumechange"];function dL(){var e=i([':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 dL=function(){return e},e}eB=pu("theoplayer-mute-button"),eN=db(["player"]),eD=pp({reflect:!0,state:!0,type:String,attribute:px.VOLUME_LEVEL}),eq=pp({reflect:!1,attribute:!1}),new(eI=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(H.styles,[dT]),e$(),t}return n(t,e),t}(o),eO=pM("____private_volumeLevel_1"),eM=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,eO,{writable:!0,value:void 0}),pP(t,eO)[eO]=(eU(t),eF(t,"off")),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}n(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.attributeChangedCallback=function(t,r,n){e.prototype.attributeChangedCallback.call(this,t,r,n),ej.observedAttributes.indexOf(t)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e="off"===this.volumeLevel?"unmute":"mute";this.setAttribute(px.ARIA_LABEL,e)},r.render=function(){return hJ(dA(),p4('<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'),p4('<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'),p4('<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'))},f(t,[{key:"volumeLevel",get:function(){return pP(this,eO)[eO]},set:function(e){pP(this,eO)[eO]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(dC,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(dC,this._updateFromPlayer))}}]),t}(H),eF=(eV=(ez=a(eM,[[eD,1,"volumeLevel"],[eq,4,"player"]],[eB,eN],H)).e)[0],eU=eV[1],ej=(eH=ez.c)[0],e$=eH[1],eI);var dS=hy(dL());function dR(){var e=i(['<span part="icon"><slot name="icon">','</slot></span><span part="offset">',"</span>"]);return dR=function(){return e},e}function dP(){var e=i([":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 dP=function(){return e},e}eK=pu("theoplayer-seek-button"),eZ=db(["player"]),eJ=pp({reflect:!0,type:Number,attribute:px.SEEK_OFFSET}),eX=pp({reflect:!1,attribute:!1}),new(eW=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(H.styles,[dS]),eY(),t}return n(t,e),t}(o),eG=pM("____private_seekOffset_1"),eQ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,eG,{writable:!0,value:void 0}),pP(t,eG)[eG]=(e1(t),e0(t,10)),t}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},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.attributeChangedCallback=function(t,r,n){e.prototype.attributeChangedCallback.call(this,t,r,n),e2.observedAttributes.indexOf(t)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e=this.seekOffset;this.setAttribute(px.ARIA_LABEL,e>=0?"seek forward by "+e+" seconds":"seek backward by "+-e+" seconds")},r.render=function(){return hJ(dR(),p4('<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)))},f(t,[{key:"seekOffset",get:function(){return pP(this,eG)[eG]},set:function(e){pP(this,eG)[eG]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player=e}}]),t}(H),e0=(e3=(e5=a(eQ,[[eJ,1,"seekOffset"],[eX,4,"player"]],[eK,eZ],H)).e)[0],e1=e3[1],e2=(e4=e5.c)[0],eY=e4[1],eW);var dO=hy(dP());function dM(e){return!isNaN(e)&&isFinite(e)}function dI(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(dM(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(":")}var dB=[["hour","hours"],["minute","minutes"],["second","seconds"]];function dN(e,t){var r=dB[t][+(1!==e)];return e+" "+r}function d$(e,t){if(!dM(e))return"";var r=e<0||t&&0===e,n=Math.floor((e=Math.abs(e))%60),i=Math.floor(e/60)%60,a=Math.floor(e/3600);return""+[0===a?"":dN(a,0),0===i?"":dN(i,1),0===n&&(a>0||i>0)?"":dN(n,2)].filter(function(e){return""!==e}).join(", ")+(r?" remaining":"")}function dD(){var e=i(["<span>","</span>"]);return dD=function(){return e},e}var dq=["timeupdate","seeking","seeked","durationchange"];function dF(){var e=i(["<span>","</span>"]);return dF=function(){return e},e}ta=pu("theoplayer-time-display"),to=db(["player","streamType"]),ts=pp({reflect:!1,attribute:!1}),tu=pp({reflect:!0,type:Boolean,attribute:px.REMAINING}),tc=pp({reflect:!0,type:Boolean,attribute:px.REMAINING_WHEN_LIVE}),th=pp({reflect:!0,type:Boolean,attribute:px.SHOW_DURATION}),tp=pp({reflect:!0,type:String,attribute:px.STREAM_TYPE}),td=pd(),ty=pd(),tf=pd(),new(ti=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[dO],tl(),t}return n(t,e),t}(o),e8=pM("____private_remaining_1"),e7=pM("____private_remainingWhenLive_2"),e6=pM("____private_showDuration_3"),e9=pM("____private_streamType_4"),te=pM("____private__currentTime_5"),tt=pM("____private__duration_6"),tr=pM("____private__endTime_7"),tn=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,e8,{writable:!0,value:void 0}),Object.defineProperty(t,e7,{writable:!0,value:void 0}),Object.defineProperty(t,e6,{writable:!0,value:void 0}),Object.defineProperty(t,e9,{writable:!0,value:void 0}),Object.defineProperty(t,te,{writable:!0,value:void 0}),Object.defineProperty(t,tt,{writable:!0,value:void 0}),Object.defineProperty(t,tr,{writable:!0,value:void 0}),pP(t,e8)[e8]=(tx(t),tv(t,!1)),pP(t,e7)[e7]=t_(t,!1),pP(t,e6)[e6]=tm(t,!1),pP(t,e9)[e9]=tb(t,"vod"),pP(t,te)[te]=tg(t,0),pP(t,tt)[tt]=tk(t,NaN),pP(t,tr)[tr]=tw(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}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","progressbar"),this.hasAttribute(px.ARIA_LABEL)||this.setAttribute(px.ARIA_LABEL,"playback time"),this.hasAttribute(px.ARIA_LIVE)||this.setAttribute(px.ARIA_LIVE,"off")},r.render=function(){var e,t,r=this.remaining||this.remainingWhenLive&&"vod"!==this.streamType,n=this._currentTime,i=this._endTime;return r&&(n=-((this._endTime||0)-n)),e=this.showDuration&&!r?dI(n,i,r)+" / "+dI(i):dI(n,i,r),t=isNaN(this._duration)?"video not loaded, unknown time":this.showDuration?d$(n,r)+" of "+d$(i):d$(n,r),this.setAttribute("aria-valuetext",t),hJ(dD(),e)},f(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(dq,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(dq,this._updateFromPlayer))}},{key:"remaining",get:function(){return pP(this,e8)[e8]},set:function(e){pP(this,e8)[e8]=e}},{key:"remainingWhenLive",get:function(){return pP(this,e7)[e7]},set:function(e){pP(this,e7)[e7]=e}},{key:"showDuration",get:function(){return pP(this,e6)[e6]},set:function(e){pP(this,e6)[e6]=e}},{key:"streamType",get:function(){return pP(this,e9)[e9]},set:function(e){pP(this,e9)[e9]=e}},{key:"_currentTime",get:function(){return pP(this,te)[te]},set:function(e){pP(this,te)[te]=e}},{key:"_duration",get:function(){return pP(this,tt)[tt]},set:function(e){pP(this,tt)[tt]=e}},{key:"_endTime",get:function(){return pP(this,tr)[tr]},set:function(e){pP(this,tr)[tr]=e}}]),t}(pl),tv=(tA=(tT=a(tn,[[ts,4,"player"],[tu,1,"remaining"],[tc,1,"remainingWhenLive"],[th,1,"showDuration"],[tp,1,"streamType"],[td,1,"_currentTime"],[ty,1,"_duration"],[tf,1,"_endTime"]],[ta,to],pl)).e)[0],t_=tA[1],tm=tA[2],tb=tA[3],tg=tA[4],tk=tA[5],tw=tA[6],tx=tA[7],tE=(tC=tT.c)[0],tl=tC[1],ti);var dU=["durationchange"];tP=pu("theoplayer-duration-display"),tO=db(["player"]),tI=pp({reflect:!1,attribute:!1}),tB=pd(),new(tR=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[dO],tM(),t}return n(t,e),t}(o),tL=pM("____private_duration_1"),tS=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tL,{writable:!0,value:void 0}),pP(t,tL)[tL]=(t$(t),tN(t,NaN)),t._updateFromPlayer=function(){t.duration=t._player?t._player.duration:NaN},t}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(px.ARIA_LIVE)||this.setAttribute(px.ARIA_LIVE,"off")},r.render=function(){return hJ(dF(),dI(this.duration))},f(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(dU,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(dU,this._updateFromPlayer))}},{key:"duration",get:function(){return pP(this,tL)[tL]},set:function(e){pP(this,tL)[tL]=e}}]),t}(pl),tN=(tF=(tq=a(tS,[[tI,4,"player"],[tB,1,"duration"]],[tP,tO],pl)).e)[0],t$=tF[1],tD=(tU=tq.c)[0],tM=tU[1],tR);var dj=!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)},dz=!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)};tj=pu("theoplayer-radio-button"),tz=pp({reflect:!0,type:Boolean,attribute:px.ARIA_CHECKED,converter:{fromAttribute:function(e){return null!=e&&"false"!==e},toAttribute:function(e){return String(e)}}}),tV=pp({attribute:px.VALUE});var dV=pM("____private_value_1"),dH=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,dV,{writable:!0,value:void 0}),tG(t),t._checked=!1,pP(t,dV)[dV]=tH(t,void 0),t}n(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(dj("input",{bubbles:!0,composed:!0}))},r.handleChange=function(){},f(t,[{key:"checked",get:function(){return this._checked},set:function(e){this._checked!==e&&(this._checked=e,this.handleChange(),this.dispatchEvent(dj("change",{bubbles:!0})))}},{key:"value",get:function(){return pP(this,dV)[dV]},set:function(e){pP(this,dV)[dV]=e}}]),t}(H);tH=(tK=(tW=a(dH,[[tz,4,"checked"],[tV,1,"value"]],[tj],H)).e)[0],tG=tK[1],tQ=(tZ=tW.c)[0],(0,tZ[1])();var dG=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)},f(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 dQ(){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&&di(e)?e:null}function dW(e,t,r){var n,i,a,o=dQ();if(null===o)return!1;var l=dG.fromRect(e.getBoundingClientRect()).snapToPixels(),s=dG.fromRect(o.getBoundingClientRect()).snapToPixels(),u=t.map(function(e){return{child:e,rect:dG.fromRect(e.getBoundingClientRect()).snapToPixels()}}).filter(function(e){return e.rect.width>0&&e.rect.height>0});if(r===pE.LEFT||r===pE.RIGHT){var c=s.clone();r===pE.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===pE.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 p=(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!==p&&(p.child.focus(),!0)}function dK(){var e=i(["<slot ",' @slotchange="','"></slot>']);return dK=function(){return e},e}tY=pu("theoplayer-radio-group"),tJ=db(["deviceType"]),tX=pp({reflect:!0,type:String,attribute:px.DEVICE_TYPE}),t0=pp({attribute:px.VALUE});var dZ=pM("____private_deviceType_1"),dY=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,dZ,{writable:!0,value:void 0}),t2(t),t._slotRef=pK(),t._radioButtons=[],t._value=void 0,pP(t,dZ)[dZ]=t1(t,"desktop"),t._onSlotChange=function(){var e,r=t._slotRef.value;if(r){for(var n,i=dy(r),a=[],o=p6(i);!(n=o()).done;){var l=n.value;if(!dJ(l)){var s=dv(l);s&&a.push(s)}}a.length>0&&Promise.all(a).then(t._onSlotChange,dr),t._radioButtons=i.filter(dJ),t.focusedRadioButton||null==(e=t.firstRadioButton)||e.setAttribute("tabindex","0"),t.updateCheckedButton()}},t._onKeyDown=function(e){if("tv"===t.deviceType&&pT(e.keyCode)){dW(t,t._radioButtons,e.keyCode)&&(e.preventDefault(),e.stopPropagation());return}switch(e.keyCode){case pE.UP:case pE.LEFT:t._focusPrevButton()&&e.preventDefault();break;case pE.DOWN:case pE.RIGHT:t._focusNextButton()&&e.preventDefault();break;case pE.HOME:e.preventDefault(),t.setFocusedRadioButton(t.firstRadioButton);break;case pE.END:e.preventDefault(),t.setFocusedRadioButton(t.lastRadioButton)}},t._onButtonChange=function(e){var r=e.target;null!==r&&r.checked&&(t.value=r.value)},t}n(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=p6(this.allRadioButtons());!(e=t()).done;)e.value.tabIndex=-1},r.setCheckedRadioButton=function(e){for(var t,r=p6(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 hJ(dK(),pJ(this._slotRef),this._onSlotChange)},f(t,[{key:"deviceType",get:function(){return pP(this,dZ)[dZ]},set:function(e){pP(this,dZ)[dZ]=e}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this.updateCheckedButton(),this.dispatchEvent(dj("change",{bubbles:!0})))}},{key:"focusedRadioButton",get:function(){var e;return null!=(e=ds(this._radioButtons,function(e){return 0===e.tabIndex}))?e:null}},{key:"checkedRadioButton",get:function(){var e;return null!=(e=ds(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}(pl);function dJ(e){return x(e,tQ)}function dX(){var e=i([":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 dX=function(){return e},e}t1=(t4=(t3=a(dY,[[tX,1,"deviceType"],[t0,4,"value"]],[tY,tJ],pl)).e)[0],t2=t4[1],t5=(t8=t3.c)[0],(0,t8[1])();var d0=hy(dX()),d1="theoplayermenuclose",d2="theoplayermenuchange";function d5(){var e=i(["",""]);return d5=function(){return e},e}function d3(){var e=i(['<div part="heading"><theoplayer-menu-close-button></theoplayer-menu-close-button>','</div><div part="content" @input="','">',"</div>"]);return d3=function(){return e},e}function d4(){var e=i(['<slot name="heading"></slot>']);return d4=function(){return e},e}function d8(){var e=i(["<slot></slot>"]);return d8=function(){return e},e}function d7(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>"}function d6(){var e=i([":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 d6=function(){return e},e}re=pu("theoplayer-menu"),rr=pp({reflect:!0,type:Boolean,attribute:px.MENU_CLOSE_ON_INPUT}),rn=pp({reflect:!0,state:!0,type:Boolean,attribute:px.MENU_OPENED}),new(t9=function(e){function r(){var r;return r=e.apply(this,arguments)||this,r.styles=[d0],r.shadowRootOptions=t({},pl.shadowRootOptions,{delegatesFocus:!0}),rt(),r}return n(r,e),r}(o),t7=pM("____private_closeOnInput_1"),t6=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,t7,{writable:!0,value:void 0}),ra(r),r._menuOpened=!1,pP(r,t7)[t7]=ri(r,!1),r._onContentInput=function(){if(r.closeOnInput){var e=dz(d1,{bubbles:!0,composed:!0});r.dispatchEvent(e)}},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.menuOpened_||this.setAttribute(px.HIDDEN,"")},r.openMenu=function(){this.menuOpened_=!0},r.closeMenu=function(){this.menuOpened_=!1},r.render=function(){return this._template?hJ(d5(),pg(this._template)):hJ(d3(),this.renderMenuHeading(),this._onContentInput,this.renderMenuContent())},r.renderMenuHeading=function(){return hJ(d4())},r.renderMenuContent=function(){return hJ(d8())},f(t,[{key:"closeOnInput",get:function(){return pP(this,t7)[t7]},set:function(e){pP(this,t7)[t7]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){if(this._menuOpened!==e){this._menuOpened=e,dp(this,px.HIDDEN,!e);var t=dz(d2,{bubbles:!0});this.dispatchEvent(t)}}}]),t}(pl),ri=(rs=(rl=a(t6,[[rr,1,"closeOnInput"],[rn,4,"menuOpened_"]],[re],pl)).e)[0],ra=rs[1],ro=(ru=rl.c)[0],rt=ru[1],t9);var d9=hy(d6()),ye="theoplayermenutoggle";function yt(){var e=i(["",""]);return yt=function(){return e},e}function yr(){var e=i(['<slot @slotchange="','"></slot>']);return yr=function(){return e},e}function yn(e,t){return void 0===t&&(t=""),"<style>"+t+"</style>"+e}function yi(e){return!!di(e)&&(x(e,ro)||x(e,rm))}rd=pu("theoplayer-menu-group"),rf=pp({reflect:!0,state:!0,type:Boolean,attribute:px.MENU_OPENED}),new(rp=function(e){function r(){var r;return r=e.apply(this,arguments)||this,r.styles=[d9],r.shadowRootOptions=t({},pl.shadowRootOptions,{delegatesFocus:!0}),ry(),r}return n(r,e),r}(o),rc=pM("____private__menuSlot_1"),rh=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,rc,{writable:!0,value:void 0}),r_(r),r._menuOpened=!1,pP(r,rc)[rc]=rv(r,null),r._menus=[],r._openMenuStack=[],r._onMenuListChange=function(){for(var e,t=[].concat(dl(r.shadowRoot.children),r._menuSlot?dy(r._menuSlot):[]),n=[],i=p6(t);!(e=i()).done;){var a=e.value;if(!yi(a)){var o=dv(a);o&&n.push(o)}}n.length>0&&Promise.all(n).then(r._onMenuListChange,dr);for(var l,s=t.filter(yi),u=p6(r._menus);!(l=u()).done;){var c=l.value;0>s.indexOf(c)&&r.closeMenu(c.id)}for(var h,p=p6(s);!(h=p()).done;){var d=h.value;0>r._menus.indexOf(d)&&d.closeMenu()}r._menus=s},r._onToggleMenu=function(e){var t=e.detail.menu;if(r.getMenuById(t)){e.stopPropagation();var n=di(e.target)?e.target:void 0;r.isMenuOpen(t)?r.closeMenu(t):r.openMenu(t,n)}},r._onCloseMenu=function(e){r.closeCurrentMenu()&&(e.preventDefault(),e.stopPropagation())},r._onMenuChange=function(e){var t=r.getCurrentMenu_();t&&t.menu===e.target&&x(t.menu,rm)&&!t.menu.hasCurrentMenu()&&r.closeCurrentMenu()},r._onKeyDown=function(e){!e.altKey&&pA(e.keyCode)&&r.closeCurrentMenu()&&(e.preventDefault(),e.stopPropagation())},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.menuOpened_||this.setAttribute(px.HIDDEN,"")},r.createRenderRoot=function(){var t=e.prototype.createRenderRoot.call(this);return t.addEventListener(ye,this._onToggleMenu),t.addEventListener(d1,this._onCloseMenu),t.addEventListener(d2,this._onMenuChange),t},r.render=function(){return this._template?hJ(yt(),pg(this._template)):hJ(yr(),this._onMenuListChange)},r.firstUpdated=function(){this._onMenuListChange()},r.getMenuById=function(e){return e&&e!==this.id?ds(this._menus,function(t){return t.id===e}):this},r.openMenu=function(e,t){var r=this.getMenuById(e);if(r===this&&(r=this._menus[0]),!r)return!1;var n=this.getCurrentMenu_(),i=du(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},r.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=du(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},r.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)},r.hasCurrentMenu=function(){return this._openMenuStack.length>0},r.getCurrentMenu_=function(){return this._openMenuStack.length>0?this._openMenuStack[this._openMenuStack.length-1]:void 0},r.closeCurrentMenu=function(){var e=this.getCurrentMenu_();return void 0!==e&&(this.closeMenu(e.menu.id),!0)},r.isMenuOpen=function(e){var t=this.getMenuById(e);return!!t&&this._openMenuStack.some(function(e){return e.menu===t})},f(t,[{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){if(this._menuOpened!==e){this._menuOpened=e,dp(this,px.MENU_OPENED,e),e?(this.removeAttribute(px.HIDDEN),this.removeEventListener("keydown",this._onKeyDown),this.addEventListener("keydown",this._onKeyDown)):(this.setAttribute(px.HIDDEN,""),this.removeEventListener("keydown",this._onKeyDown));var t=dz(d2,{bubbles:!0});this.dispatchEvent(t)}}},{key:"_menuSlot",get:function(){return pP(this,rc)[rc]},set:function(e){pP(this,rc)[rc]=e}}]),t}(pl),rv=(rg=(rb=a(rh,[[rf,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 py(e,t,{get:function(){return n(this)}})},1,"_menuSlot"]],[rd],pl)).e)[0],r_=rg[1],rm=(rk=rb.c)[0],ry=rk[1],rp),rw=pu("theoplayer-menu-button"),rx=pp({reflect:!0,type:String,attribute:px.MENU}),rE=pp({reflect:!0,state:!0,type:String,attribute:"aria-controls"});var ya=pM("____private__ariaControls_1"),yo=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ya,{writable:!0,value:void 0}),rA(t),t._menuId=null,pP(t,ya)[ya]=rT(t,null),t}n(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=dz(ye,{bubbles:!0,composed:!0,detail:{menu:e}});this.dispatchEvent(t)}},f(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 pP(this,ya)[ya]},set:function(e){pP(this,ya)[ya]=e}}]),t}(H);function yl(){var e=i(['<span part="icon"><slot>',"</slot></span>"]);return yl=function(){return e},e}rT=(rS=(rL=a(yo,[[rx,4,"menu"],[rE,1,"_ariaControls"]],[rw],H)).e)[0],rA=rS[1],rC=(rR=rL.c)[0],(0,rR[1])(),rP=pu("theoplayer-menu-close-button");var ys=function(e){function t(){return e.apply(this,arguments)||this}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(px.ARIA_LABEL)||this.setAttribute(px.ARIA_LABEL,"close menu")},r.handleClick=function(){var e=dz(d1,{bubbles:!0,composed:!0});this.dispatchEvent(e)},r.render=function(){return hJ(yl(),p4('<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'))},t}(H);function yu(){var e=i(["<slot>","</slot>"]);return yu=function(){return e},e}rO=(rM=a(ys,[],[rP],H).c)[0],(0,rM[1])();var yc=["change","update"];rI=pu("theoplayer-media-track-radio-button"),rB=pd(),rN=pp({reflect:!1,attribute:!1});var yh=pM("____private__trackLabel_1"),yp=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,yh,{writable:!0,value:void 0}),t._track=void rD(t),pP(t,yh)[yh]=r$(t,""),t._onTrackChange=function(){t._updateFromTrack()},t}n(t,e);var r=t.prototype;return r._updateFromTrack=function(){this._trackLabel=this._track?function(e){var t=e.label,r=e.language;if(t&&t!==r)return t;var n=r&&dh(r);return n||r||t||""}(this._track):"",this.checked=!!this._track&&this._track.enabled},r._updateTrack=function(){this._track&&(this._track.enabled=this.checked)},r.handleChange=function(){this._updateTrack()},r.render=function(){return hJ(yu(),this._trackLabel)},f(t,[{key:"_trackLabel",get:function(){return pP(this,yh)[yh]},set:function(e){pP(this,yh)[yh]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(yc,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(yc,this._onTrackChange))}}]),t}(tQ);function yd(){var e=i([":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 yd=function(){return e},e}r$=(rU=(rF=a(yp,[[rB,1,"_trackLabel"],[rN,4,"track"]],[rI],tQ)).e)[0],rD=rU[1],rq=(rj=rF.c)[0],(0,rj[1])();var yy=hy(yd());function yf(e){return"subtitles"===e.kind||"captions"===e.kind}function yv(e){return yf(e)&&!e.forced}function y_(e){var t=null==e?void 0:e.targetQuality;return void 0===t||Array.isArray(t)||(t=[t]),t}function ym(e){if(e){if(e.label&&""!==e.label)return e.label;if(e.height)return""+e.height+"p";if(e.bandwidth){var t=e;if(t.bandwidth)return t.bandwidth>1e7?""+(t.bandwidth/1e6).toFixed(0)+"Mbps":t.bandwidth>1e6?""+(t.bandwidth/1e6).toFixed(1)+"Mbps":""+(t.bandwidth/1e3).toFixed(0)+"kbps";return}}}var yb=function(e,t,r){for(var n=new Map,i=t;i<=r;i++)n.set(e[i],i);return n},yg=pm(function(e){function t(e){var r;if(d(this,t),r=p(this,t,[e]),2!==e.type)throw Error("repeat() can only be used in text expressions");return r}return n(t,e),f(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 p=c.value;n[a]=u?u(p,a):a,i[a]=r(p,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=m(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,p,d,y=null!=(h=this.ut)?h:this.ut=[],f=[],v=0,_=l.length-1,b=0,g=u.length-1;v<=_&&b<=g;)if(null===l[v])v++;else if(null===l[_])_--;else if(y[v]===c[b])f[b]=pq(l[v],u[b]),v++,b++;else if(y[_]===c[g])f[g]=pq(l[_],u[g]),_--,g--;else if(y[v]===c[g])f[g]=pq(l[v],u[g]),pD(e,f[g+1],l[v]),v++,g--;else if(y[_]===c[b])f[b]=pq(l[_],u[b]),pD(e,l[v],l[_]),_--,b++;else if(void 0===p&&(p=yb(c,b,g),d=yb(y,v,_)),p.has(y[v]))if(p.has(y[_])){var k=d.get(c[b]),w=void 0!==k?l[k]:null;if(null===w){var x=pD(e,l[v]);pq(x,u[b]),f[b]=x}else f[b]=pq(w,u[b]),pD(e,l[v],w),l[k]=null;b++}else pU(l[_]),_--;else pU(l[v]),v++;for(;b<=g;){var E=pD(e,f[g+1]);pq(E,u[b]),f[b++]=E}for(;v<=_;){var T=l[v++];null!==T&&pU(T)}return this.ut=c,void 0===(r=f)&&(r=pF),e._$AH=r,hX}}]),t}(pb));function yk(){var e=i(['<theoplayer-text-track-off-radio-button .trackList="','"></theoplayer-text-track-off-radio-button>']);return yk=function(){return e},e}function yw(){var e=i(['<theoplayer-text-track-radio-button .track="','"></theoplayer-text-track-radio-button>']);return yw=function(){return e},e}function yx(){var e=i(['<theoplayer-media-track-radio-button .track="','"></theoplayer-media-track-radio-button>']);return yx=function(){return e},e}function yE(){var e=i(['<theoplayer-radio-group @change="','">'," ","</theoplayer-radio-group>"]);return yE=function(){return e},e}var yT=["addtrack","removetrack"];function yA(){var e=i(["<slot>","</slot>"]);return yA=function(){return e},e}rQ=pu("theoplayer-track-radio-group"),rW=db(["player"]),rZ=pd(),rY=pp({reflect:!0,type:String,attribute:px.TRACK_TYPE}),rJ=pp({reflect:!0,type:Boolean,attribute:px.SHOW_OFF}),new(rG=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[yy],rK(),t}return n(t,e),t}(o),rz=pM("____private__tracksList_1"),rV=pM("____private_showOffButton_2"),rH=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,rz,{writable:!0,value:void 0}),Object.defineProperty(t,rV,{writable:!0,value:void 0}),r1(t),t._trackType="audio",pP(t,rz)[rz]=rX(t),pP(t,rV)[rV]=r0(t,!1),t._updateTracks=function(){return t.requestUpdate()},t._onChange=function(){t.dispatchEvent(dj("change",{bubbles:!0}))},t}n(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(yT,this._updateTracks),null==t||t.addEventListener(yT,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(yv):[]},r.render=function(){var e=this._getTracks(),t="subtitles"===this.trackType;return hJ(yE(),this._onChange,this.showOffButton&&t?hJ(yk(),this._tracksList):void 0,yg(e,function(e){return e.uid},function(e){return t?hJ(yw(),e):hJ(yx(),e)}))},f(t,[{key:"_tracksList",get:function(){return pP(this,rz)[rz]},set:function(e){pP(this,rz)[rz]=e}},{key:"trackType",get:function(){return this._trackType},set:function(e){this._trackType=e,this._updateTracksList()}},{key:"showOffButton",get:function(){return pP(this,rV)[rV]},set:function(e){pP(this,rV)[rV]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(this._player=e,this._updateTracksList(),this._updateTracks())}}]),t}(pl),rX=(r3=(r5=a(rH,[[rZ,1,"_tracksList"],[rY,4,"trackType"],[rJ,1,"showOffButton"]],[rQ,rW],pl)).e)[0],r0=r3[1],r1=r3[2],r2=(r4=r5.c)[0],rK=r4[1],rG);var yC=["change","update"];r8=pu("theoplayer-text-track-radio-button"),r7=pd(),r6=pp({reflect:!1,attribute:!1});var yL=pM("____private__trackLabel_1"),yS=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,yL,{writable:!0,value:void 0}),t._track=void ne(t),pP(t,yL)[yL]=r9(t,""),t._onTrackChange=function(){t._updateFromTrack()},t}n(t,e);var r=t.prototype;return r._updateFromTrack=function(){this._trackLabel=this._track?function(e){var t=e.label,r=e.language;if(t){if(t===r);else if(!("cea608"===e.type&&/^CC\d+$/.test(e.label)))return t}var n=r&&dh(r);return n||("cea608"===e.type&&"number"==typeof e.captionChannel?"CC"+e.captionChannel:r||t||"")}(this._track):"",this.checked=!!this._track&&"showing"===this._track.mode},r._updateTrack=function(){this._track&&(this._track.mode=this.checked?"showing":"disabled")},r.handleChange=function(){this._updateTrack()},r.render=function(){return hJ(yA(),this._trackLabel)},f(t,[{key:"_trackLabel",get:function(){return pP(this,yL)[yL]},set:function(e){pP(this,yL)[yL]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(yC,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(yC,this._onTrackChange))}}]),t}(tQ);function yR(){var e=i(["<slot>Off</slot>"]);return yR=function(){return e},e}r9=(nn=(nr=a(yS,[[r7,1,"_trackLabel"],[r6,4,"track"]],[r8],tQ)).e)[0],ne=nn[1],nt=(ni=nr.c)[0],(0,ni[1])();var yP=["change"];na=pu("theoplayer-text-track-off-radio-button"),no=pp({reflect:!1,attribute:!1});var yO=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t._trackList=void nl(t),t._onTrackChange=function(){t._updateFromTrackList()},t}n(t,e);var r=t.prototype;return r._updateFromTrackList=function(){this.checked=!this._trackList||!this._trackList.some(function(e){return yv(e)&&"showing"===e.mode})},r._updateTrackList=function(){this._trackList&&this.checked&&function(e){for(var t,r=p6(e);!(t=r()).done;){var n=t.value;yf(n)&&"showing"===n.mode&&(n.mode="disabled")}}(this._trackList)},r.handleChange=function(){this._updateTrackList()},r.render=function(){return hJ(yR())},f(t,[{key:"trackList",get:function(){return this._trackList},set:function(e){this._trackList&&this._trackList.removeEventListener(yP,this._onTrackChange),this._trackList=e,this._updateFromTrackList(),e&&e.addEventListener(yP,this._onTrackChange)}}]),t}(tQ);function yM(){var e=i([".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 yM=function(){return e},e}nl=(nu=a(yO,[[no,4,"trackList"]],[na],tQ)).e[0],ns=(nc=nu.c)[0],(0,nc[1])();var yI=hy(yM());function yB(){var e=i([".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 yB=function(){return e},e}var yN=hy(yB());function y$(){var e=i(["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 y$=function(){return e},e}var yD=hy(y$());function yq(e){var t,r;return e?dc(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:dc(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 yF(e){return"rgba("+e.r_+","+e.g_+","+e.b_+","+e.a_+")"}function yU(e){return"rgb("+e.r_+","+e.g_+","+e.b_+")"}function yj(e,t){return{r_:e.r_,g_:e.g_,b_:e.b_,a_:t}}var yz=yq("#ffffff"),yV=yq("#000000"),yH=[["White","rgb(255,255,255)"],["Yellow","rgb(255,255,0)"],["Green","rgb(0,255,0)"],["Cyan","rgb(0,255,255)"],["Blue","rgb(0,0,255)"],["Magenta","rgb(255,0,255)"],["Red","rgb(255,0,0)"],["Black","rgb(0,0,0)"]],yG=[["Monospace Serif",'"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace'],["Proportional Serif",'"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif'],["Monospace Sans",'"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace'],["Proportional Sans",'Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif']],yQ=[["None","none"],["Drop shadow","dropshadow"],["Raised","raised"],["Depressed","depressed"],["Uniform","uniform"]];function yW(){var e=i(["<span>","</span>"]);return yW=function(){return e},e}nh=pu("theoplayer-text-track-style-display"),np=db(["player"]),nd=pp({reflect:!0,type:String,attribute:px.PROPERTY}),ny=pp({reflect:!1,attribute:!1});var yK=function(e){function t(){var t;return t=e.apply(this,arguments)||this,nf(t),t._property="fontColor",t._updateFromPlayer=function(){return t.requestUpdate()},t}n(t,e);var r=t.prototype;return r.render=function(){return hJ(yW(),this.renderValue())},r.renderValue=function(){if(void 0===this._player)return"";var e=this.property;switch(e){case"fontFamily":var t=this._player.textTrackStyle.fontFamily;if(!t)return"Default";var r=ds(yG,function(e){return e[0],e[1]===t});return r?r[0]:"Custom";case"fontColor":case"backgroundColor":case"windowColor":return function(e){if(!e)return"Default";var t=yq(e);if(t){var r=yU(t),n=ds(yH,function(e){return e[0],e[1]===r});if(n)return n[0]}return"Custom"}(this._player.textTrackStyle[e]);case"fontOpacity":return yZ(this._player.textTrackStyle.fontColor);case"backgroundOpacity":return yZ(this._player.textTrackStyle.backgroundColor);case"windowOpacity":return yZ(this._player.textTrackStyle.windowColor);case"edgeStyle":var n=this._player.textTrackStyle.edgeStyle;if(!n)return"Default";var i=ds(yQ,function(e){return e[0],e[1]===n});return i?i[0]:"Custom";default:return this._player.textTrackStyle[e]||"Default"}},f(t,[{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}(pl);function yZ(e){if(!e)return"Default";var t=yq(e);return t?""+100*t.a_+"%":"Custom"}function yY(){var e=i(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return yY=function(){return e},e}function yJ(e,t,r){var n,i,a,o=null!=(n=null==(i=yq(t))?void 0:i.a_)?n:1;if(""!==e||1!==o)return yF(yj(null!=(a=yq(e))?a:r,o))}function yX(e,t,r){var n,i=null!=(n=yq(t))?n:r;if(""!==e||i.r_!==r.r_||i.g_!==r.g_||i.b_!==r.b_)return yF(yj(i,""==e?1:Number(e)/100))}function y0(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return y0=function(){return e},e}function y1(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return y1=function(){return e},e}function y2(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return y2=function(){return e},e}function y5(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return y5=function(){return e},e}function y3(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return y3=function(){return e},e}function y4(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return y4=function(){return e},e}function y8(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return y8=function(){return e},e}function y7(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return y7=function(){return e},e}function y6(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return y6=function(){return e},e}function y9(){var e=i(['<theoplayer-menu class="theoplayer-text-track-style-menu"><span class="theoplayer-menu-heading" slot="heading"><slot name="heading">Subtitle options</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>Font family</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>Font color</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>Font opacity</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>Font size</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>Background color</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>Background opacity</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>Window color</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>Window opacity</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>Character edge style</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">Font family</span><theoplayer-text-track-style-radio-group property="fontFamily">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="font-color-menu" menu-close-on-input hidden><span slot="heading">Font color</span><theoplayer-text-track-style-radio-group property="fontColor">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="font-opacity-menu" menu-close-on-input hidden><span slot="heading">Font opacity</span><theoplayer-text-track-style-radio-group property="fontOpacity">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="font-size-menu" menu-close-on-input hidden><span slot="heading">Font size</span><theoplayer-text-track-style-radio-group property="fontSize">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="background-color-menu" menu-close-on-input hidden><span slot="heading">Background color</span><theoplayer-text-track-style-radio-group property="backgroundColor">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="background-opacity-menu" menu-close-on-input hidden><span slot="heading">Background opacity</span><theoplayer-text-track-style-radio-group property="backgroundOpacity">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="window-color-menu" menu-close-on-input hidden><span slot="heading">Window color</span><theoplayer-text-track-style-radio-group property="windowColor">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="window-opacity-menu" menu-close-on-input hidden><span slot="heading">Window opacity</span><theoplayer-text-track-style-radio-group property="windowOpacity">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="edge-style-menu" menu-close-on-input hidden><span slot="heading">Character edge style</span><theoplayer-text-track-style-radio-group property="edgeStyle">',"</theoplayer-text-track-style-radio-group></theoplayer-menu>"]);return y9=function(){return e},e}nf=(n_=a(yK,[[nd,4,"property"],[ny,4,"player"]],[nh,np],pl)).e[0],nv=(nm=n_.c)[0],(0,nm[1])(),nk=pu("theoplayer-text-track-style-radio-group"),nw=db(["player"]),nE=pp({reflect:!0,type:String,attribute:px.PROPERTY}),nT=pp({reflect:!1,attribute:!1}),nA=pp({reflect:!1,attribute:!1}),new(ng=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[yy],nx(),t}return n(t,e),t}(o),nb=function(e){function t(){var t;return t=e.apply(this,arguments)||this,nC(t),t._radioGroupRef=pK(),t._property="fontColor",t._onChange=function(){var e=t._radioGroupRef.value;e&&(t.value=e.value)},t._updateFromPlayer=function(){if(void 0!==t._player)switch(t.property){case"fontColor":var e,r,n=t._player.textTrackStyle.fontColor;t.value=n?yU(null!=(r=yq(n))?r:yz):"";break;case"backgroundColor":var i,a=t._player.textTrackStyle.backgroundColor;t.value=a?yU(null!=(i=yq(a))?i:yV):"";break;case"windowColor":var o,l=t._player.textTrackStyle.windowColor;t.value=l?yU(null!=(o=yq(l))?o:yV):"";break;case"fontOpacity":var s,u,c=t._player.textTrackStyle.fontColor;t.value=c?String((null!=(s=null==(u=yq(c))?void 0:u.a_)?s:1)*100):"";break;case"backgroundOpacity":var h,p,d=t._player.textTrackStyle.backgroundColor;t.value=d?String((null!=(h=null==(p=yq(d))?void 0:p.a_)?h:1)*100):"";break;case"windowOpacity":var y,f,v=t._player.textTrackStyle.windowColor;t.value=v?String((null!=(y=null==(f=yq(v))?void 0:f.a_)?y:1)*100):"";break;default:t.value=null!=(e=t._player.textTrackStyle[t.property])?e:""}},t}n(t,e);var r=t.prototype;return r.firstUpdated=function(){var e=this._radioGroupRef.value;x(e,t5)||customElements.upgrade(e),e.value=this.value},r._updateToPlayer=function(){if(void 0!==this._player)switch(this.property){case"fontColor":this._player.textTrackStyle.fontColor=yJ(this.value,this._player.textTrackStyle.fontColor,yz);break;case"backgroundColor":this._player.textTrackStyle.backgroundColor=yJ(this.value,this._player.textTrackStyle.backgroundColor,yV);break;case"windowColor":this._player.textTrackStyle.windowColor=yJ(this.value,this._player.textTrackStyle.windowColor,yV);break;case"fontOpacity":this._player.textTrackStyle.fontColor=yX(this.value,this._player.textTrackStyle.fontColor,yz);break;case"backgroundOpacity":this._player.textTrackStyle.backgroundColor=yX(this.value,this._player.textTrackStyle.backgroundColor,yV);break;case"windowOpacity":this._player.textTrackStyle.windowColor=yX(this.value,this._player.textTrackStyle.windowColor,yV);break;default:this._player.textTrackStyle[this.property]=""==this.value?void 0:this.value}},r.render=function(){return hJ(yY(),pJ(this._radioGroupRef),this._onChange)},f(t,[{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(dj("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))}}]),t}(pl),nC=(nS=a(nb,[[nE,4,"property"],[nT,4,"value"],[nA,4,"player"]],[nk,nw],pl)).e[0],nL=(nR=nS.c)[0],nx=nR[1],ng);var fe=[{label:"Default",value:""},{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)"}],ft=[{label:"Default",value:""},{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'}],fr=[{label:"Default",value:""},{label:"50%",value:"50%"},{label:"75%",value:"75%"},{label:"100%",value:"100%"},{label:"150%",value:"150%"},{label:"200%",value:"200%"}],fn=[{label:"Default",value:""},{label:"25%",value:"25"},{label:"50%",value:"50"},{label:"75%",value:"75"},{label:"100%",value:"100"}],fi=[{label:"Default",value:""},{label:"None",value:"none"},{label:"Drop shadow",value:"dropshadow"},{label:"Raised",value:"raised"},{label:"Depressed",value:"depressed"},{label:"Uniform",value:"uniform"}];function fa(){var e=i(['<theoplayer-menu><span class="theoplayer-menu-heading" slot="heading"><slot name="heading">Language</slot></span><theoplayer-settings-menu-button class="theoplayer-menu-heading-button" menu="subtitle-options-menu" slot="heading"></theoplayer-settings-menu-button><div part="content"><div part="audio"><h2>Audio</h2><theoplayer-track-radio-group track-type="audio"></theoplayer-track-radio-group></div><div part="subtitles"><h2>Subtitles</h2><theoplayer-track-radio-group track-type="subtitles" show-off></theoplayer-track-radio-group></div></div></theoplayer-menu><theoplayer-text-track-style-menu id="subtitle-options-menu"></theoplayer-text-track-style-menu>']);return fa=function(){return e},e}nM=pu("theoplayer-text-track-style-menu"),new(nO=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(rm.styles,[yD,yN]),nI(),t}return n(t,e),t}(o),nP=function(e){function t(){return e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return hJ(y9(),ft.map(function(e){var t=e.label,r=e.value;return hJ(y0(),r,t)}),fe.map(function(e){var t=e.label,r=e.value;return hJ(y1(),r,t)}),fn.map(function(e){var t=e.label,r=e.value;return hJ(y2(),r,t)}),fr.map(function(e){var t=e.label,r=e.value;return hJ(y5(),r,t)}),fe.map(function(e){var t=e.label,r=e.value;return hJ(y3(),r,t)}),fn.map(function(e){var t=e.label,r=e.value;return hJ(y4(),r,t)}),fe.map(function(e){var t=e.label,r=e.value;return hJ(y8(),r,t)}),fn.map(function(e){var t=e.label,r=e.value;return hJ(y7(),r,t)}),fi.map(function(e){var t=e.label,r=e.value;return hJ(y6(),r,t)}))},t}(nB=rm),nN=(n$=a(nP,[],[nM],nB).c)[0],nI=n$[1],nO);var fo=["addtrack","removetrack"];function fl(){var e=i(['<span part="icon"><slot>',"</slot></span>"]);return fl=function(){return e},e}nj=pu("theoplayer-language-menu"),nz=db(["player"]),nG=pp({state:!0}),nQ=pp({reflect:!0,state:!0,type:Boolean,attribute:px.HAS_AUDIO}),nW=pp({reflect:!0,state:!0,type:Boolean,attribute:px.HAS_SUBTITLES}),new(nU=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(rm.styles,[yI]),nV(),t}return n(t,e),t}(o),nD=pM("____private__hasAudioTracks_1"),nq=pM("____private__hasSubtitles_2"),nF=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,nD,{writable:!0,value:void 0}),Object.defineProperty(t,nq,{writable:!0,value:void 0}),pP(t,nD)[nD]=(nY(t),nK(t,!1)),pP(t,nq)[nq]=nZ(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(yv))?e:[];t._hasSubtitles=n.length>0},t}return n(t,e),t.prototype.render=function(){return hJ(fa())},f(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(fo,this._updateAudioTracks),null==(r=this._textTrackList)||r.removeEventListener(fo,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(fo,this._updateAudioTracks),null==(i=this._textTrackList)||i.addEventListener(fo,this._updateTextTracks))}},{key:"_hasAudioTracks",get:function(){return pP(this,nD)[nD]},set:function(e){pP(this,nD)[nD]=e}},{key:"_hasSubtitles",get:function(){return pP(this,nq)[nq]},set:function(e){pP(this,nq)[nq]=e}}]),t}(nH=rm),nK=(n0=(nX=a(nF,[[nG,4,"player"],[nQ,1,"_hasAudioTracks"],[nW,1,"_hasSubtitles"]],[nj,nz],nH)).e)[0],nZ=n0[1],nY=n0[2],nJ=(n1=nX.c)[0],nV=n1[1],nU);var fs=["addtrack","removetrack"];n2=pu("theoplayer-language-menu-button"),n5=db(["player"]),n3=pp({reflect:!1,attribute:!1});var fu=function(e){function t(){var t;return t=e.apply(this,arguments)||this,n4(t),t._updateTracks=function(){var e=void 0!==t._player&&(t._player.audioTracks.length>=2||t._player.textTracks.some(yv));dp(t,px.HIDDEN,!e)},t}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(px.ARIA_LABEL)||this.setAttribute(px.ARIA_LABEL,"open language menu")},r.render=function(){return hJ(fl(),p4('<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'))},f(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(fs,this._updateTracks),null==(r=this._textTrackList)||r.removeEventListener(fs,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(fs,this._updateTracks),null==(i=this._textTrackList)||i.addEventListener(fs,this._updateTracks))}}]),t}(rC);function fc(){var e=i(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return fc=function(){return e},e}function fh(){var e=i(['<span part="icon"><slot>',"</slot></span>"]);return fh=function(){return e},e}n4=(n7=a(fu,[[n3,4,"player"]],[n2,n5],rC)).e[0],n8=(n6=n7.c)[0],(0,n6[1])(),it=pu("theoplayer-playback-rate-radio-group"),ir=db(["player"]),ia=pd(),io=pd(),new(ie=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[yy],ii(),t}return n(t,e),t}(o),n9=function(e){function t(){var t;return t=e.apply(this,arguments)||this,il(t),t._radioGroupRef=pK(),t._value=1,t._onChange=function(){var e=t._radioGroupRef.value;e&&(t.value=Number(e.value))},t._updateFromPlayer=function(){void 0!==t._player&&(t.value=t._player.playbackRate)},t}n(t,e);var r=t.prototype;return r.firstUpdated=function(){var e=this._radioGroupRef.value;x(e,t5)||customElements.upgrade(e),e.value=String(this.value)},r.render=function(){return hJ(fc(),pJ(this._radioGroupRef),this._onChange)},f(t,[{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(dj("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))}}]),t}(pl),il=(iu=a(n9,[[ia,4,"value"],[io,4,"player"]],[it,ir],pl)).e[0],is=(ic=iu.c)[0],ii=ic[1],ie),ih=pu("theoplayer-playback-rate-menu-button");var fp=function(e){function t(){return e.apply(this,arguments)||this}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(px.ARIA_LABEL)||this.setAttribute(px.ARIA_LABEL,"open playback speed menu")},r.render=function(){return hJ(fh(),p4('<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'))},t}(rC);function fd(){var e=i(['<span slot="heading"><slot name="heading">Playback speed</slot></span>']);return fd=function(){return e},e}function fy(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return fy=function(){return e},e}function ff(){var e=i(["<theoplayer-playback-rate-radio-group>","</theoplayer-playback-rate-radio-group>"]);return ff=function(){return e},e}ip=(id=a(fp,[],[ih],rC).c)[0],(0,id[1])();var fv=[.25,.5,1,1.25,1.5,2];iy=pu("theoplayer-playback-rate-menu");var f_=function(e){function t(){return e.apply(this,arguments)||this}n(t,e);var r=t.prototype;return r.renderMenuHeading=function(){return hJ(fd())},r.renderMenuContent=function(){return hJ(ff(),fv.map(function(e){return hJ(fy(),e,1===e?"Normal":""+e+"x")}))},t}(ro);function fm(){var e=i(["<span>","</span>"]);return fm=function(){return e},e}iv=(i_=a(f_,[],[iy],ro).c)[0],(0,i_[1])(),im=pu("theoplayer-playback-rate-display"),ib=db(["playbackRate"]),ig=pd();var fb=pM("____private_playbackRate_1"),fg=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,fb,{writable:!0,value:void 0}),pP(t,fb)[fb]=(iw(t),ik(t,1)),t}return n(t,e),t.prototype.render=function(){return hJ(fm(),1===this.playbackRate?"Normal":""+this.playbackRate+"x")},f(t,[{key:"playbackRate",get:function(){return pP(this,fb)[fb]},set:function(e){pP(this,fb)[fb]=e}}]),t}(pl);function fk(){var e=i(["<span>","</span>"]);return fk=function(){return e},e}ik=(iT=(iE=a(fg,[[ig,1,"playbackRate"]],[im,ib],pl)).e)[0],iw=iT[1],ix=(iA=iE.c)[0],(0,iA[1])(),iC=pu("theoplayer-active-quality-display"),iL=db(["activeVideoQuality","targetVideoQualities"]),iS=pp({reflect:!1,attribute:!1}),iR=pp({reflect:!1,attribute:!1});var fw=pM("____private_activeVideoQuality_1"),fx=pM("____private_targetVideoQualities_2"),fE=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,fw,{writable:!0,value:void 0}),Object.defineProperty(t,fx,{writable:!0,value:void 0}),pP(t,fw)[fw]=(iM(t),iP(t,void 0)),pP(t,fx)[fx]=iO(t,void 0),t}return n(t,e),t.prototype.render=function(){var e,t=void 0!==this.targetVideoQualities&&1===this.targetVideoQualities.length,r=t?this.targetVideoQualities[0]:void 0,n=ym(null!=r?r:this.activeVideoQuality);return e=t?null!=n?n:"Unknown":"Automatic"+(n?" ("+n+")":""),hJ(fk(),e)},f(t,[{key:"activeVideoQuality",get:function(){return pP(this,fw)[fw]},set:function(e){pP(this,fw)[fw]=e}},{key:"targetVideoQualities",get:function(){return pP(this,fx)[fx]},set:function(e){pP(this,fx)[fx]=e}}]),t}(pl);function fT(){var e=i(["<slot>","</slot>"]);return fT=function(){return e},e}iP=(iN=(iB=a(fE,[[iS,1,"activeVideoQuality"],[iR,1,"targetVideoQualities"]],[iC,iL],pl)).e)[0],iO=iN[1],iM=iN[2],iI=(i$=iB.c)[0],(0,i$[1])();var fA=["activequalitychanged","targetqualitychanged"],fC=["update"];iD=pu("theoplayer-quality-radio-button"),iq=pd(),iF=pp({reflect:!1,attribute:!1}),iU=pp({reflect:!1,attribute:!1});var fL=pM("____private__qualityLabel_1"),fS=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,fL,{writable:!0,value:void 0}),t._track=void iz(t),t._quality=void 0,pP(t,fL)[fL]=ij(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(){var e;t._qualityLabel=null!=(e=ym(t._quality))?e:"Automatic"},t}n(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(){return hJ(fT(),this._qualityLabel)},f(t,[{key:"_qualityLabel",get:function(){return pP(this,fL)[fL]},set:function(e){pP(this,fL)[fL]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(fA,this._updateFromTrack),this._track=e,this._updateFromTrack(),e&&e.addEventListener(fA,this._updateFromTrack))}},{key:"quality",get:function(){return this._quality},set:function(e){this._quality!==e&&(this._quality&&this._quality.removeEventListener(fC,this._updateFromQuality),this._quality=e,this._updateFromTrack(),e&&e.addEventListener(fC,this._updateFromQuality))}}]),t}(tQ);function fR(){var e=i(['<theoplayer-quality-radio-button .track="','" .quality="','"></theoplayer-quality-radio-button>']);return fR=function(){return e},e}function fP(){var e=i(['<theoplayer-radio-group @change="','"><theoplayer-quality-radio-button .track="','" .quality="','"></theoplayer-quality-radio-button>',"</theoplayer-radio-group>"]);return fP=function(){return e},e}ij=(iG=(iH=a(fS,[[iq,1,"_qualityLabel"],[iF,4,"track"],[iU,4,"quality"]],[iD],tQ)).e)[0],iz=iG[1],iV=(iQ=iH.c)[0],(0,iQ[1])();var fO=["addtrack","removetrack","change"];function fM(){var e=i(["<slot>Reset</slot>"]);return fM=function(){return e},e}iY=pu("theoplayer-quality-radio-group"),iJ=db(["player"]),i0=pd(),i1=pd(),new(iZ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[yy],iX(),t}return n(t,e),t}(o),iW=pM("____private__track_1"),iK=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,iW,{writable:!0,value:void 0}),pP(t,iW)[iW]=(i5(t),i2(t)),t._onChange=function(){t.dispatchEvent(dj("change",{bubbles:!0}))},t._updateTrack=function(){var e,r,n=t._player?ds(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}n(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 hJ(fP(),this._onChange,this._track,void 0,1!==t.length&&yg(t,function(e){return e.uid},function(t){return hJ(fR(),e._track,t)}))},f(t,[{key:"_track",get:function(){return pP(this,iW)[iW]},set:function(e){pP(this,iW)[iW]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._videoTracks)||t.removeEventListener(fO,this._updateTrack),this._player=e,this._videoTracks=null==e?void 0:e.videoTracks,this._updateTrack(),null==(r=this._videoTracks)||r.addEventListener(fO,this._updateTrack))}}]),t}(pl),i2=(i8=(i4=a(iK,[[i0,1,"_track"],[i1,4,"player"]],[iY,iJ],pl)).e)[0],i5=i8[1],i3=(i7=i4.c)[0],iX=i7[1],iZ),i6=pu("theoplayer-text-track-style-reset-button"),i9=db(["player"]);var fI=function(e){function t(){return e.apply(this,arguments)||this}n(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(){return hJ(fM())},f(t,[{key:"player",get:function(){return this._player},set:function(e){this._player=e}}]),t}(H);function fB(){var e=i(['<theoplayer-menu><span slot="heading"><slot name="heading">Settings</slot></span><table><tr><td><span>Quality</span></td><td><theoplayer-menu-button menu="quality-menu"><theoplayer-active-quality-display></theoplayer-active-quality-display></theoplayer-menu-button></td></tr><tr><td><span>Playback speed</span></td><td><theoplayer-menu-button menu="playback-rate-menu"><theoplayer-playback-rate-display></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">Quality</span><theoplayer-quality-radio-group></theoplayer-quality-radio-group></theoplayer-menu><theoplayer-playback-rate-menu id="playback-rate-menu" menu-close-on-input hidden><span slot="heading">Playback speed</span></theoplayer-playback-rate-menu>']);return fB=function(){return e},e}ae=(at=a(fI,[],[i6,i9],H).c)[0],(0,at[1])(),ai=pu("theoplayer-settings-menu"),new(an=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(rm.styles,[yD]),aa(),t}return n(t,e),t}(o),ar=function(e){function t(){return e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return hJ(fB())},t}(ao=rm),al=(as=a(ar,[],[ai],ao).c)[0],aa=as[1],an);var fN='<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 f$(){var e=i(['<span part="icon"><slot>',"</slot></span>"]);return f$=function(){return e},e}au=pu("theoplayer-settings-menu-button");var fD=function(e){function t(){return e.apply(this,arguments)||this}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(px.ARIA_LABEL)||this.setAttribute(px.ARIA_LABEL,"open settings menu")},r.render=function(){return hJ(f$(),p4(fN))},t}(rC);function fq(){var e=i([":host(:not([fullscreen])) [part=exit-icon],:host([fullscreen]) [part=enter-icon]{display:none!important}"]);return fq=function(){return e},e}ac=(ah=a(fD,[],[au],rC).c)[0],(0,ah[1])();var fF=hy(fq()),fU="theoplayerfullscreenenter",fj="theoplayerfullscreenexit";function fz(){var e=i(['<span part="enter-icon"><slot name="enter-icon">','</slot></span><span part="exit-icon"><slot name="exit-icon">',"</slot></span>"]);return fz=function(){return e},e}function fV(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=m(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 fH(){var e=i([":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 fH=function(){return e},e}af=pu("theoplayer-fullscreen-button"),av=db(["fullscreen"]),am=pp({reflect:!0,type:Boolean,attribute:px.FULLSCREEN}),new(ay=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(H.styles,[fF]),a_(),t}return n(t,e),t}(o),ap=pM("____private_fullscreen_1"),ad=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ap,{writable:!0,value:void 0}),pP(t,ap)[ap]=(ag(t),ab(t,!1)),t}n(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=dz(fj,{bubbles:!0,composed:!0});this.dispatchEvent(e)}else{var t=dz(fU,{bubbles:!0,composed:!0});this.dispatchEvent(t)}},r.attributeChangedCallback=function(t,r,n){e.prototype.attributeChangedCallback.call(this,t,r,n),ak.observedAttributes.indexOf(t)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e=this.fullscreen?"exit fullscreen":"enter fullscreen";this.setAttribute(px.ARIA_LABEL,e)},r.render=function(){return hJ(fz(),p4('<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'),p4('<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'))},f(t,[{key:"fullscreen",get:function(){return pP(this,ap)[ap]},set:function(e){pP(this,ap)[ap]=e}}]),t}(H),ab=(ax=(aw=a(ad,[[am,1,"fullscreen"]],[af,av],H)).e)[0],ag=ax[1],ak=(aE=aw.c)[0],a_=aE[1],ay);var fG=hy(fH()),fQ=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=du(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=p6(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}(),fW="important",fK=" !"+fW,fZ=pm(function(e){function t(e){var r,n;if(d(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 n(t,e),f(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=m(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 p="string"==typeof h&&h.endsWith(fK);c.includes("-")||p?n.setProperty(c,p?h.slice(0,-11):h,p?fW:""):n[c]=h}}return hX}}]),t}(pb));function fY(){var e=i(['<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 fY=function(){return e},e}function fJ(){var e=i([""]);return fJ=function(){return e},e}function fX(){var e=i(["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 fX=function(){return e},e}aP=db(["deviceType"]),aM=pd(),aI=pp({reflect:!0,type:Boolean,attribute:px.DISABLED}),aB=pp({reflect:!0,type:Boolean,attribute:px.HIDDEN}),aN=pp({reflect:!0,type:Boolean,attribute:px.INERT}),a$=pp({reflect:!1,attribute:!1}),aD=pd(),aq=pp({reflect:!0,type:Number,attribute:"min"}),aF=pp({reflect:!0,type:Number,attribute:"max"}),aU=pp({reflect:!0,attribute:"step",converter:{fromAttribute:function(e){return null==e||"any"===e?"any":Number(e)}}}),aj=pp({reflect:!0,type:String,attribute:px.DEVICE_TYPE}),az=pp({reflect:!0,type:String,attribute:"aria-live"}),new(aR=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[fG],aO(),t}return n(t,e),t}(o),aT=pM("____private__pointerWidth_1"),aA=pM("____private_step_2"),aC=pM("____private_deviceType_3"),aL=pM("____private_ariaLive_4"),aS=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,aT,{writable:!0,value:void 0}),Object.defineProperty(t,aA,{writable:!0,value:void 0}),Object.defineProperty(t,aC,{writable:!0,value:void 0}),Object.defineProperty(t,aL,{writable:!0,value:void 0}),aW(t),t._rangeRef=pK(),t._min=0,t._max=100,t._value=0,t._disabled=!1,t._hidden=!1,t._inert=!1,t._rangeWidth=0,t._thumbWidth=10,pP(t,aT)[aT]=aV(t,0),pP(t,aA)[aA]=aH(t,"any"),pP(t,aC)[aC]=aG(t,"desktop"),pP(t,aL)[aL]=aQ(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}n(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(){fV(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 fQ;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&&pT(e.keyCode)&&(e.keyCode===pE.LEFT||e.keyCode===pE.RIGHT?e.stopPropagation():(e.keyCode===pE.UP||e.keyCode===pE.DOWN)&&e.preventDefault())},r.render=function(){return hJ(fY(),fZ({width:""+this._pointerWidth+"px"}),pJ(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 hJ(fJ())},f(t,[{key:"_pointerWidth",get:function(){return pP(this,aT)[aT]},set:function(e){pP(this,aT)[aT]=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 pP(this,aA)[aA]},set:function(e){pP(this,aA)[aA]=e}},{key:"deviceType",get:function(){return pP(this,aC)[aC]},set:function(e){pP(this,aC)[aC]=e}},{key:"ariaLive",get:function(){return pP(this,aL)[aL]},set:function(e){pP(this,aL)[aL]=e}}]),t}(pl),aV=(aY=(aZ=a(aS,[[aM,1,"_pointerWidth"],[aI,4,"disabled"],[aB,4,"hidden"],[aN,4,"inert"],[a$,4,"value"],[aD,4,"rawValue"],[aq,4,"min"],[aF,4,"max"],[aU,1,"step"],[aj,1,"deviceType"],[az,1,"ariaLive"]],[aP],pl)).e)[0],aH=aY[1],aG=aY[2],aQ=aY[3],aW=aY[4],aK=(aJ=aZ.c)[0],aO=aJ[1],aR);var f0=hy(fX()),f1="theoplayerpreviewtimechange";function f2(e){return"linear"===e.type}function f5(){var e=i([":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 f5=function(){return e},e}var f3=hy(f5());function f4(){var e=i(["<canvas ",' style="','"></canvas>']);return f4=function(){return e},e}var f8=["addtrack","removetrack"];function f7(e){return"metadata"===e.kind&&"thumbnails"===e.label}function f6(){var e=i(["<span>","</span>"]);return f6=function(){return e},e}a2=pu("theoplayer-preview-thumbnail"),a5=db(["player","previewTime"]),a4=pd(),a8=pp({reflect:!1,attribute:!1}),a7=pd(),new(a1=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[f3],a3(),t}return n(t,e),t}(o),aX=pM("____private__thumbnailVisible_1"),a0=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,aX,{writable:!0,value:void 0}),a9(t),t._canvasRef=pK(),t._previewTime=NaN,pP(t,aX)[aX]=a6(t,!1),t._updateThumbnailTextTrack=function(){var e=t._thumbnailTextTrack,r=t._player?ds(t._player.textTracks,f7):void 0;e!==r&&(t._thumbnailTextTrack=r,t.updateThumbnail_())},t._thumbnailImageSource=document.createElement("img"),t._thumbnailImageSource.decoding="async",t}n(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=p6(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,dr)):(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 hJ(f4(),pJ(this._canvasRef),fZ(e))},f(t,[{key:"_thumbnailVisible",get:function(){return pP(this,aX)[aX]},set:function(e){pP(this,aX)[aX]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackList)||t.removeEventListener(f8,this._updateThumbnailTextTrack),this._player=e,this._textTrackList=null==e?void 0:e.textTracks,this._updateThumbnailTextTrack(),null==(r=this._textTrackList)||r.addEventListener(f8,this._updateThumbnailTextTrack))}},{key:"previewTime",get:function(){return this._previewTime},set:function(e){this._previewTime=e,this.updateThumbnail_()}}]),t}(pl),a6=(or=(ot=a(a0,[[a4,1,"_thumbnailVisible"],[a8,4,"player"],[a7,4,"previewTime"]],[a2,a5],pl)).e)[0],a9=or[1],oe=(on=ot.c)[0],a3=on[1],a1);var f9=["timeupdate","seeking","seeked","durationchange"];function ve(){var e=i(['<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 ve=function(){return e},e}oh=pu("theoplayer-preview-time-display"),op=db(["player","previewTime","streamType"]),oy=pd(),of=pp({reflect:!0,type:Boolean,attribute:px.REMAINING}),ov=pp({reflect:!0,type:Boolean,attribute:px.REMAINING_WHEN_LIVE}),o_=pp({reflect:!0,type:String,attribute:px.STREAM_TYPE}),om=pp({reflect:!1,attribute:!1}),ob=pd(),new(oc=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[dO],od(),t}return n(t,e),t}(o),oi=pM("____private_previewTime_1"),oa=pM("____private_remaining_2"),oo=pM("____private_remainingWhenLive_3"),ol=pM("____private_streamType_4"),os=pM("____private__endTime_5"),ou=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,oi,{writable:!0,value:void 0}),Object.defineProperty(t,oa,{writable:!0,value:void 0}),Object.defineProperty(t,oo,{writable:!0,value:void 0}),Object.defineProperty(t,ol,{writable:!0,value:void 0}),Object.defineProperty(t,os,{writable:!0,value:void 0}),pP(t,oi)[oi]=(oT(t),og(t,NaN)),pP(t,oa)[oa]=ok(t,!1),pP(t,oo)[oo]=ow(t,!1),pP(t,ol)[ol]=ox(t,"vod"),pP(t,os)[os]=oE(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}n(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)),hJ(f6(),dI(e,t,r))},f(t,[{key:"previewTime",get:function(){return pP(this,oi)[oi]},set:function(e){pP(this,oi)[oi]=e}},{key:"remaining",get:function(){return pP(this,oa)[oa]},set:function(e){pP(this,oa)[oa]=e}},{key:"remainingWhenLive",get:function(){return pP(this,oo)[oo]},set:function(e){pP(this,oo)[oo]=e}},{key:"streamType",get:function(){return pP(this,ol)[ol]},set:function(e){pP(this,ol)[ol]=e}},{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:"_endTime",get:function(){return pP(this,os)[os]},set:function(e){pP(this,os)[os]=e}}]),t}(pl),og=(oL=(oC=a(ou,[[oy,1,"previewTime"],[of,1,"remaining"],[ov,1,"remainingWhenLive"],[o_,1,"streamType"],[om,4,"player"],[ob,1,"_endTime"]],[oh,op],pl)).e)[0],ok=oL[1],ow=oL[2],ox=oL[3],oE=oL[4],oT=oL[5],oA=(oS=oC.c)[0],od=oS[1],oc);var vt=["timeupdate","durationchange","ratechange","seeking","seeked"],vr=["play","pause","ended","durationchange","readystatechange","error"],vn=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];oM=pu("theoplayer-time-range"),oI=db(["player","streamType","deviceType"]),oN=pp({reflect:!1,attribute:!1}),o$=pp({reflect:!0,type:String,attribute:px.STREAM_TYPE}),oD=pp({reflect:!0,type:Boolean,attribute:px.SHOW_AD_MARKERS}),oq=pd(),new(oO=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(aK.styles,[f0]),oB(),t}return n(t,e),t}(o),oR=pM("____private__previewRailTransform_1"),oP=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,oR,{writable:!0,value:void 0}),oU(t),t._previewBoxEl=pK(),t._streamType="vod",t._showAdMarkers=!1,t._pausedWhileScrubbing=!1,t._autoAdvanceId=0,t._lastUpdateTime=0,t._lastCurrentTime=0,t._lastPlaybackRate=0,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)},pP(t,oR)[oR]=oF(t,""),t._onAdChange=function(){t._updateRange()},t}n(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(px.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"seek"},r.getAriaValueText=function(){var e=d$(this.value),t=d$(this.max);return e&&t?e+" of "+t:"video not loaded, unknown time"},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=dz(f1,{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=p6(this._player.ads.scheduledAdBreaks);!(r=a()).done;){var o=r.value;if(void 0===o.ads||!(o.ads.length>0)||o.ads.some(f2)){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===pE.ENTER&&void 0!==this._player&&(this._player.paused?this._player.play():this._player.pause())},r.renderRangeExtras=function(){return hJ(ve(),fZ({transform:this._previewRailTransform}),pJ(this._previewBoxEl))},f(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener(vt,this._updateFromPlayer),this._player.removeEventListener(vr,this._toggleAutoAdvance)),null==(t=this._ads)||t.removeEventListener(vn,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),this._toggleAutoAdvance(),void 0!==this._player&&(this._player.addEventListener(vt,this._updateFromPlayer),this._player.addEventListener(vr,this._toggleAutoAdvance)),null==(r=this._ads)||r.addEventListener(vn,this._onAdChange))}},{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 pP(this,oR)[oR]},set:function(e){pP(this,oR)[oR]=e}}]),t}(aK),oF=(oV=(oz=a(oP,[[oN,4,"player"],[o$,4,"streamType"],[oD,4,"showAdMarkers"],[oq,1,"_previewRailTransform"]],[oM,oI],aK)).e)[0],oU=oV[1],oj=(oH=oz.c)[0],oB=oH[1],oO),oG=pu("theoplayer-volume-range"),oQ=db(["player","deviceType"]),oW=pp({reflect:!1,attribute:!1});var vi=function(e){function t(){var t;return t=e.call(this)||this,oK(t),t._updateFromPlayer=function(){void 0!==t._player&&(t.rawValue=t._player.volume,t._updateRange())},t}n(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"volume"},r.getAriaValueText=function(){return""+Math.round(this.value/this.max*100)+"%"},r.handleInput=function(){void 0!==this._player&&this._player.volume!==this.value&&(this._player.volume=this.value),e.prototype.handleInput.call(this)},f(t,[{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}(aK);function va(){var e=i([":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 va=function(){return e},e}oK=(oY=a(vi,[[oW,4,"player"]],[oG,oQ],aK)).e[0],oZ=(oJ=oY.c)[0],(0,oJ[1])();var vo=hy(va());function vl(){var e=i(['<div part="icon"><slot name="icon">','</slot></div><div part="text"><h1 part="heading"><slot name="heading">An error occurred</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 vl=function(){return e},e}o5=pu("theoplayer-error-display"),o3=db(["error","fullscreen"]),o8=pp({reflect:!1,attribute:!1}),o7=pp({reflect:!0,type:Boolean,attribute:px.FULLSCREEN}),new(o2=function(e){function r(){var r;return r=e.apply(this,arguments)||this,r.styles=[vo],r.shadowRootOptions=t({},pl.shadowRootOptions,{delegatesFocus:!0}),o4(),r}return n(r,e),r}(o),oX=pM("____private_error_1"),o0=pM("____private_fullscreen_2"),o1=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,oX,{writable:!0,value:void 0}),Object.defineProperty(t,o0,{writable:!0,value:void 0}),pP(t,oX)[oX]=(le(t),o6(t)),pP(t,o0)[o0]=o9(t,!1),t}return n(t,e),t.prototype.render=function(){var e,t;return hJ(vl(),p4('<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'),null!=(e=null==(t=this.error)?void 0:t.message)?e:"")},f(t,[{key:"error",get:function(){return pP(this,oX)[oX]},set:function(e){pP(this,oX)[oX]=e}},{key:"fullscreen",get:function(){return pP(this,o0)[o0]},set:function(e){pP(this,o0)[o0]=e}}]),t}(pl),o6=(ln=(lr=a(o1,[[o8,1,"error"],[o7,1,"fullscreen"]],[o5,o3],pl)).e)[0],o9=ln[1],le=ln[2],lt=(li=lr.c)[0],o4=li[1],o2),la=pd(),lo=pp({reflect:!0,state:!0,type:String,attribute:px.CAST_STATE});var vs=function(e){function t(t){var r;return r=e.call(this,t)||this,ll(r),r._castState="unavailable",r._updateCastState=function(){r.castState=r._castApi?r._castApi.state:"unavailable"},r}n(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()}},f(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}(H);function vu(){var e=i(['<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 vu=function(){return e},e}function vc(){var e=i([":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 vc=function(){return e},e}ll=a(vs,[[la,4,"castApi"],[lo,4,"castState"]],[]).e[0];var vh=hy(vc()),vp=0;function vd(){var e=i([":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 vd=function(){return e},e}lc=pu("theoplayer-chromecast-button"),lh=db(["player"]),new(lu=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(vs.styles,[vh]),lp(),t}return n(t,e),t}(o),ls=function(e){function t(){var t;return(t=e.call(this)||this)._buttonId=++vp,t}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},r.attributeChangedCallback=function(t,r,n){e.prototype.attributeChangedCallback.call(this,t,r,n),ld.observedAttributes.indexOf(t)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e="connecting"===this.castState||"connected"===this.castState?"stop casting to Chromecast":"start casting to Chromecast";this.setAttribute(px.ARIA_LABEL,e)},r.render=function(){var e;return e=this._buttonId,hJ(vu(),e,e)},f(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}}]),t}(vs),ld=(ly=a(ls,[],[lc,lh],vs).c)[0],lp=ly[1],lu);var vy=hy(vd());function vf(){var e=i(['<div part="icon"><slot name="icon">','</slot></div><div part="text"><p part="heading"><slot name="heading">Playing on</slot></p><p part="receiver">',"</p></div>"]);return vf=function(){return e},e}var vv=["statechange"];function v_(){var e=i(['<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 v_=function(){return e},e}lm=pu("theoplayer-chromecast-display"),lb=db(["player"]),lk=pd(),new(l_=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vy],lg(),t}return n(t,e),t}(o),lf=pM("____private__receiverName_1"),lv=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,lf,{writable:!0,value:void 0}),pP(t,lf)[lf]=(lx(t),lw(t,"Chromecast")),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(px.HIDDEN,""):(t._receiverName=n.receiverName||"Chromecast",t.removeAttribute(px.HIDDEN))},t}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(px.HIDDEN)||this.setAttribute(px.HIDDEN,""),this._updateFromPlayer()},r.render=function(){return hJ(vf(),p4('<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'),this._receiverName)},f(t,[{key:"_receiverName",get:function(){return pP(this,lf)[lf]},set:function(e){pP(this,lf)[lf]=e}},{key:"player",get:function(){return this._player},set:function(e){var t;this._player!==e&&(void 0!==this._castApi&&this._castApi.removeEventListener(vv,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(vv,this._updateFromPlayer))}}]),t}(pl),lw=(lA=(lT=a(lv,[[lk,1,"_receiverName"]],[lm,lb],pl)).e)[0],lx=lA[1],lE=(lC=lT.c)[0],lg=lC[1],l_);var vm=hJ(v_());function vb(){var e=i([":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 vb=function(){return e},e}var vg=hy(vb());function vk(){var e=i([":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 vk=function(){return e},e}lR=pu("theoplayer-airplay-button"),lP=db(["player"]),new(lS=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(vs.styles,[vg]),lO(),t}return n(t,e),t}(o),lL=function(e){function t(){return e.apply(this,arguments)||this}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},r.attributeChangedCallback=function(t,r,n){e.prototype.attributeChangedCallback.call(this,t,r,n),lM.observedAttributes.indexOf(t)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e="connecting"===this.castState||"connected"===this.castState?"stop playing on AirPlay":"start playing on AirPlay";this.setAttribute(px.ARIA_LABEL,e)},r.render=function(){return vm},f(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}}]),t}(vs),lM=(lI=a(lL,[],[lR,lP],vs).c)[0],lO=lI[1],lS);var vw=hy(vk());function vx(){var e=i(['<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 vx=function(){return e},e}var vE=hJ(vx()),vT=["readystatechange","play","pause","playing","seeking","seeked"];function vA(){var e=i([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;pointer-events:none!important}"]);return vA=function(){return e},e}lD=pu("theoplayer-loading-indicator"),lq=db(["player"]),lU=pp({reflect:!1,attribute:!1}),lj=pp({reflect:!0,type:Boolean,attribute:px.LOADING}),new(l$=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vw],lF(),t}return n(t,e),t}(o),lB=pM("____private_loading_1"),lN=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,lB,{writable:!0,value:void 0}),pP(t,lB)[lB]=(lV(t),lz(t,!1)),t._updateFromPlayer=function(){t.loading=void 0!==t._player&&!t._player.paused&&(t._player.seeking||t._player.readyState<3)},t}return n(t,e),t.prototype.render=function(){return vE},f(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(vT,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(vT,this._updateFromPlayer))}},{key:"loading",get:function(){return pP(this,lB)[lB]},set:function(e){pP(this,lB)[lB]=e}}]),t}(pl),lz=(lQ=(lG=a(lN,[[lU,4,"player"],[lj,1,"loading"]],[lD,lq],pl)).e)[0],lV=lQ[1],lH=(lW=lG.c)[0],lF=lW[1],l$);var vC=hy(vA());function vL(){var e=i([""]);return vL=function(){return e},e}function vS(){var e=i(["[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 vS=function(){return e},e}lJ=pu("theoplayer-gesture-receiver"),lX=db(["player","deviceType"]),l1=pp({reflect:!1,attribute:!1}),l2=pp({reflect:!1,attribute:!1}),new(lY=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vC],l0(),t}return n(t,e),t}(o),lK=pM("____private_deviceType_1"),lZ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,lK,{writable:!0,value:void 0}),l3(t),t._pointerType="",pP(t,lK)[lK]=l5(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}n(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 hJ(vL())},f(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 pP(this,lK)[lK]},set:function(e){pP(this,lK)[lK]=e}}]),t}(pl),l5=(l7=(l8=a(lZ,[[l1,4,"player"],[l2,1,"deviceType"]],[lJ,lX],pl)).e)[0],l3=l7[1],l4=(l6=l8.c)[0],l0=l6[1],lY);var vR=hy(vS());function vP(){var e=i(['<span part="icon"><slot name="icon">','</slot></span><slot name="spacer"></slot><span part="text"><slot name="text">LIVE</slot></span>']);return vP=function(){return e},e}var vO=["play","pause","playing","emptied"],vM=["seeking","seeked","timeupdate","durationchange","emptied"];function vI(){var e=i([":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 vI=function(){return e},e}si=pu("theoplayer-live-button"),sa=db(["player","streamType"]),sl=pp({reflect:!0,type:Boolean,attribute:px.PAUSED}),ss=pp({reflect:!0,type:String,attribute:px.STREAM_TYPE}),su=pp({reflect:!0,type:Number,attribute:px.LIVE_THRESHOLD,useDefault:!0}),sc=pp({reflect:!0,type:Boolean,attribute:px.LIVE}),sh=pp({reflect:!1,attribute:!1}),new(sn=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(H.styles,[vR]),so(),t}return n(t,e),t}(o),l9=pM("____private_paused_1"),se=pM("____private_streamType_2"),st=pM("____private_live_3"),sr=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,l9,{writable:!0,value:void 0}),Object.defineProperty(t,se,{writable:!0,value:void 0}),Object.defineProperty(t,st,{writable:!0,value:void 0}),sf(t),t._liveThreshold=10,pP(t,l9)[l9]=sp(t,!1),pP(t,se)[se]=sd(t,"vod"),pP(t,st)[st]=sy(t,!1),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}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(px.ARIA_LABEL)||this.setAttribute(px.ARIA_LABEL,"seek to live")},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.render=function(){return hJ(vP(),p4('<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'))},f(t,[{key:"paused",get:function(){return pP(this,l9)[l9]},set:function(e){pP(this,l9)[l9]=e}},{key:"streamType",get:function(){return pP(this,se)[se]},set:function(e){pP(this,se)[se]=e}},{key:"liveThreshold",get:function(){return this._liveThreshold},set:function(e){this._liveThreshold=isNaN(e)?0:e,this._updateLive()}},{key:"live",get:function(){return pP(this,st)[st]},set:function(e){pP(this,st)[st]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener(vO,this._updatePaused),this._player.removeEventListener(vM,this._updateLive)),this._player=e,this._updatePaused(),this._updateLive(),void 0!==this._player&&(this._player.addEventListener(vO,this._updatePaused),this._player.addEventListener(vM,this._updateLive)))}}]),t}(H),sp=(sm=(s_=a(sr,[[sl,1,"paused"],[ss,1,"streamType"],[su,4,"liveThreshold"],[sc,1,"live"],[sh,4,"player"]],[si,sa],H)).e)[0],sd=sm[1],sy=sm[2],sf=sm[3],sv=(sb=s_.c)[0],so=sb[1],sn);var vB=hy(vI());function vN(){var e=i(["<span>","</span>"]);return vN=function(){return e},e}var v$=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];function vD(){var e=i([":host{pointer-events:none}"]);return vD=function(){return e},e}sx=pu("theoplayer-ad-display"),sE=db(["player"]),sA=pd(),sC=pp({reflect:!1,attribute:!1}),new(sw=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[dO,vB],sT(),t}return n(t,e),t}(o),sg=pM("____private__text_1"),sk=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,sg,{writable:!0,value:void 0}),pP(t,sg)[sg]=(sS(t),sL(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(f2);if(void 0===i||!i.playing||0===a.length){t._text="",t.style.display="none";return}if(a.length>1){var o=ds(t._player.ads.currentAds||[],f2);if(o){var l=a.indexOf(o);if(l>=0){t._text="Ad "+(l+1)+" of "+a.length,t.style.display="";return}}}t._text="Ad",t.style.display=""},t}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer()},r.render=function(){return hJ(vN(),this._text)},f(t,[{key:"_text",get:function(){return pP(this,sg)[sg]},set:function(e){pP(this,sg)[sg]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._ads)||t.removeEventListener(v$,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(v$,this._updateFromPlayer))}}]),t}(pl),sL=(sO=(sP=a(sk,[[sA,1,"_text"],[sC,4,"player"]],[sx,sE],pl)).e)[0],sS=sO[1],sR=(sM=sP.c)[0],sT=sM[1],sw);var vq=hy(vD());function vF(){var e=i(["<span>Content will resume in ","s</span>"]);return vF=function(){return e},e}var vU=["adbreakbegin","adbreakend","adbreakchange","updateadbreak"];function vj(){var e=i(["<slot>Visit Advertiser</slot>"]);return vj=function(){return e},e}s$=pu("theoplayer-ad-countdown"),sD=db(["player"]),sF=pd(),sU=pp({reflect:!1,attribute:!1}),new(sN=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[dO,vq],sq(),t}return n(t,e),t}(o),sI=pM("____private__maxRemainingDuration_1"),sB=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,sI,{writable:!0,value:void 0}),pP(t,sI)[sI]=(sz(t),sj(t,0)),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 n(t,e),t.prototype.render=function(){return hJ(vF(),this._maxRemainingDuration)},f(t,[{key:"_maxRemainingDuration",get:function(){return pP(this,sI)[sI]},set:function(e){pP(this,sI)[sI]=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(vU,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(vU,this._onAdChange))}}]),t}(pl),sj=(sG=(sH=a(sB,[[sF,1,"_maxRemainingDuration"],[sU,4,"player"]],[s$,sD],pl)).e)[0],sz=sG[1],sV=(sQ=sH.c)[0],sq=sQ[1],sN);var vz=["adbegin","adend","adloaded","updatead","adskip"];sW=pu("theoplayer-ad-clickthrough-button"),sK=db(["player"]),sZ=pp({reflect:!0,type:String,attribute:px.CLICKTHROUGH}),sY=pp({reflect:!1,attribute:!1});var vV=function(e){function t(){var t;return t=e.call(this)||this,sJ(t),t._clickThrough=null,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=ds(null!=(e=n.currentAds)?e:[],f2);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}n(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(){return hJ(vj())},f(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:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._ads)||t.removeEventListener(vz,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(vz,this._updateFromPlayer))}}]),t}(eo);function vH(){var e=i([":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 vH=function(){return e},e}sJ=(s0=a(vV,[[sZ,4,"clickThrough"],[sY,4,"player"]],[sW,sK],eo)).e[0],sX=(s1=s0.c)[0],(0,s1[1])();var vG=hy(vH());function vQ(){var e=i(['<span part="countdown" style="','">Skip in ',' seconds</span> <span part="skip" style="','"><span part="skip-text"><slot name="skip-text">Skip Ad</slot></span><span part="skip-icon"><slot name="skip-icon">',"</slot></span></span>"]);return vQ=function(){return e},e}var vW=["adbegin","adend","adloaded","updatead","adskip"];s8=pu("theoplayer-ad-skip-button"),s7=db(["player"]),s9=pd(),ue=pd(),ut=pp({reflect:!1,attribute:!1}),new(s4=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(H.styles,[vG]),s6(),t}return n(t,e),t}(o),s2=pM("____private__showCountdown_1"),s5=pM("____private__timeToSkip_2"),s3=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,s2,{writable:!0,value:void 0}),Object.defineProperty(t,s5,{writable:!0,value:void 0}),pP(t,s2)[s2]=(ui(t),ur(t,!1)),pP(t,s5)[s5]=un(t,0),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=ds(null!=(e=n.currentAds)?e:[],f2);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(px.DISABLED,""),t.setAttribute(px.ARIA_LIVE,"off")):(t._showCountdown=!1,t.style.display="",t.removeAttribute(px.DISABLED),t.setAttribute(px.ARIA_LIVE,"polite"))},t}n(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={visibility:this._showCountdown?"visible":"hidden"},t={visibility:this._showCountdown?"hidden":"visible",pointerEvents:this._showCountdown?"none":""};return hJ(vQ(),fZ(e),this._timeToSkip,fZ(t),p4('<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'))},f(t,[{key:"_showCountdown",get:function(){return pP(this,s2)[s2]},set:function(e){pP(this,s2)[s2]=e}},{key:"_timeToSkip",get:function(){return pP(this,s5)[s5]},set:function(e){pP(this,s5)[s5]=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(vW,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(vW,this._onAdChange))}}]),t}(H),ur=(ul=(uo=a(s3,[[s9,1,"_showCountdown"],[ue,1,"_timeToSkip"],[ut,4,"player"]],[s8,s7],H)).e)[0],un=ul[1],ui=ul[2],ua=(us=uo.c)[0],s6=us[1],s4);var vK=((A={}).TopControlBar="top-control-bar",A.BottomControlBar="bottom-control-bar",A.Menu="menu",A),vZ=[];function vY(e){vZ.push(e)}function vJ(){var e=i([':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 vJ=function(){return e},e}var vX=hy(vJ()),v0=function(){if("u">typeof document)for(var e,t=p6([["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 v1(){if(("u"<typeof navigator?"undefined":h(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 v2(){if(("u"<typeof navigator?"undefined":h(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 v5="theoplayeruseridlechange",v3="theoplayerready";function v4(){var e=i(["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 v4=function(){return e},e}var v8=hy(v4()),v7="theoplayer-ui-global-styles",v6=!1;function v9(){var e=i(['<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 v9=function(){return e},e}var _e="theoplayer-ui-full-window";function _t(e){for(var t,r,n=dy(e).filter(di),i=p6(n);!(r=i()).done;){var a=r.value;if("0"!==getComputedStyle(a).opacity){var o=dG.fromRect(a.getBoundingClientRect());o.width>0&&o.height>0&&(t=t?t.union(o):o)}}return t}function _r(){var e=i([':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 _r=function(){return e},e}u_=pu("theoplayer-ui"),ub=pp({reflect:!1,attribute:px.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),ug=pp({reflect:!1,attribute:px.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),uk=pp({reflect:!0,type:Boolean,attribute:px.FLUID}),uw=pp({reflect:!0,type:Boolean,attribute:px.MUTED}),ux=pp({reflect:!0,type:Boolean,attribute:px.AUTOPLAY}),uE=pp({reflect:!0,type:Boolean,attribute:px.FULLSCREEN}),uT=pp({reflect:!0,type:Boolean,attribute:px.PAUSED}),uA=pp({reflect:!0,type:Boolean,attribute:px.ENDED}),uC=pp({reflect:!0,type:Boolean,attribute:px.CASTING}),uL=pp({reflect:!0,type:Boolean,attribute:px.USER_IDLE}),uS=pp({reflect:!0,type:Number,attribute:px.USER_IDLE_TIMEOUT,useDefault:!0}),uR=pp({reflect:!0,type:String,attribute:px.DEVICE_TYPE}),uP=pp({reflect:!0,state:!0,type:Boolean,attribute:px.MOBILE}),uO=pp({reflect:!0,state:!0,type:Boolean,attribute:px.TV}),uM=pp({reflect:!0,type:String,attribute:px.STREAM_TYPE}),uI=pp({reflect:!0,type:Number,attribute:px.DVR_THRESHOLD,useDefault:!0}),uB=pp({reflect:!0,state:!0,type:Boolean,attribute:px.HAS_FIRST_PLAY}),uN=pp({reflect:!0,state:!0,type:Boolean,attribute:px.PLAYING_AD}),u$=pp({reflect:!0,state:!0,type:Boolean,attribute:px.HAS_ERROR}),uD=pp({reflect:!0,state:!0,type:Boolean,attribute:px.FULLWINDOW}),uq=pp({reflect:!0,state:!0,type:Boolean,attribute:px.MENU_OPENED}),new(uv=function(e){function r(){var r;return r=e.apply(this,arguments)||this,r.styles=[vX],r.shadowRootOptions=t({},pl.shadowRootOptions,{delegatesFocus:!0}),r.READY_EVENT=v3,um(),r}return n(r,e),r}(o),uu=pM("____private_mobile_1"),uc=pM("____private_tv_2"),uh=pM("____private__hasFirstPlay_3"),up=pM("____private__isPlayingAd_4"),ud=pM("____private__hasError_5"),uy=pM("____private__isFullWindow_6"),uf=function(r){function i(e){var n;return void 0===e&&(e={}),Object.defineProperty(n=r.call(this)||this,uu,{writable:!0,value:void 0}),Object.defineProperty(n,uc,{writable:!0,value:void 0}),Object.defineProperty(n,uh,{writable:!0,value:void 0}),Object.defineProperty(n,up,{writable:!0,value:void 0}),Object.defineProperty(n,ud,{writable:!0,value:void 0}),Object.defineProperty(n,uy,{writable:!0,value:void 0}),uG(n),n._configuration={},n._playerRef=pK(),n._menuRef=pK(),n._menuGroupRef=pK(),n._menuOpened=!1,n._topChromeRef=pK(),n._topChromeSlotRef=pK(),n._bottomChromeRef=pK(),n._bottomChromeSlotRef=pK(),n._pointerType="",n._lastPointerUpTime=0,n._stateReceivers=[],n._player=void 0,n._source=void 0,n._muted=!1,n._autoplay=!1,n._fullscreen=!1,n._deviceType="desktop",n._streamType="vod",n._fluid=!1,n._userIdle=!1,n._userIdleTimeout=void 0,n._isUserActive=!1,n._userIdleTimer=0,n._paused=!1,n._ended=!1,n._casting=!1,n._dvrThreshold=60,n._previewTime=NaN,n._activeVideoTrack=void 0,pP(n,uu)[uu]=uF(n,!1),pP(n,uc)[uc]=uU(n,!1),pP(n,uh)[uh]=uj(n,!1),pP(n,up)[up]=uz(n,!1),pP(n,ud)[ud]=uV(n,!1),pP(n,uy)[uy]=uH(n,!1),n._onMutation=function(e){var t=n._playerRef.value;if(t)for(var r,i=p6(e);!(r=i()).done;){var a=r.value;if("childList"===a.type){for(var o=a.addedNodes,l=a.removedNodes,s=0;s<o.length;s++){var u=o[s];dn(u)&&dk(u,t,n.registerStateReceiver_)}for(var c=0;c<l.length;c++){var h=l[c];dn(h)&&dk(h,t,n.unregisterStateReceiver_)}}}},n._onSlotChange=function(){n._playerRef.value&&dk(n,n._playerRef.value,n.registerStateReceiver_),n._updateTextTrackMargins()},n.registerStateReceiver_=function(e){n._stateReceivers.indexOf(e)>=0||(n._stateReceivers.push(e),n.propagateStateToReceiver_(e))},n.unregisterStateReceiver_=function(e){var t,r,i,a;t=n._stateReceivers,!((r=t.indexOf(e))<0)&&(i=t,a=r,i.splice(a,1),1)&&n.removeStateFromReceiver_(e)},n._onToggleMenu=function(e){e.stopPropagation();var t=e.detail.menu,r=n._menuGroupRef.value;if(r){if(!r.getMenuById(t))return void console.error('<theoplayer-ui>: cannot find menu with ID "'+t+'"');var i=di(e.target)?e.target:void 0;r.isMenuOpen(t)?n.closeMenu_():(n.closeMenu_(),n.openMenu_(t,i))}},n._onCloseMenu=function(e){e.stopPropagation(),n.closeMenu_()},n._onMenuChange=function(){var e=n._menuRef.value;e.removeEventListener("pointerdown",n._onMenuPointerDown),e.removeEventListener("click",n._onMenuClick),n._menuGroupRef.value.hasCurrentMenu()?(e.addEventListener("pointerdown",n._onMenuPointerDown),e.addEventListener("click",n._onMenuClick),n.menuOpened_=!0):n.menuOpened_=!1,n.updateUserIdle_()},n._onMenuPointerDown=function(e){n._pointerType=e.pointerType},n._onMenuClick=function(e){var t,r=null!=(t=e.pointerType)?t:n._pointerType;e.target===n._menuRef.value&&"mouse"===r&&n._menuGroupRef.value.closeCurrentMenu()&&e.preventDefault()},n._onEnterFullscreen=function(e){if(e.stopPropagation(),v0&&document[v0.fullscreenEnabled_]&&n[v0.requestFullscreen_]){var r,i,a=n[v0.requestFullscreen_](t({navigationUI:"hide"},null==(i=n._configuration)||null==(r=i.ui)?void 0:r.fullscreenOptions));a&&a.then&&a.then(dr,dr)}else n._player&&n._player.presentation.supportsMode("fullscreen")?n._player.presentation.requestMode("fullscreen"):n._isFullWindow||(n._isFullWindow=!0,document.documentElement.classList.add(_e),window.addEventListener("keydown",n._exitFullscreenOnEsc),n._onFullscreenChange())},n._onExitFullscreen=function(e){if(e.stopPropagation(),v0){var t=document[v0.exitFullscreen_]();t&&t.then&&t.then(dr,dr)}n._player&&"fullscreen"===n._player.presentation.currentMode&&n._player.presentation.requestMode("inline"),n._isFullWindow&&(n._isFullWindow=!1,document.documentElement.classList.remove(_e),window.removeEventListener("keydown",n._exitFullscreenOnEsc),n._onFullscreenChange())},n._onFullscreenChange=function(){var e=!1;if(void 0!==v0){var t=document[v0.fullscreenElement_];t&&(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)}(t,n))}e||void 0===n._player||"fullscreen"!==n._player.presentation.currentMode||(e=!0),n._isFullWindow&&(e=!0),n.fullscreen=e},n._exitFullscreenOnEsc=function(e){e.keyCode==pE.ESCAPE&&n._onExitFullscreen(e)},n._updateAspectRatio=function(){if(void 0!==n._player){var e=n._player,t=e.videoWidth,r=e.videoHeight;t>0&&r>0?fV(n,{"--theoplayer-video-width":""+t,"--theoplayer-video-height":""+r}):fV(n,{"--theoplayer-video-width":"","--theoplayer-video-height":""})}},n._updateError=function(){var e=null==(t=n._player)?void 0:t.errorObject;n._hasError=void 0!==e;for(var t,r,i=p6(n._stateReceivers);!(r=i()).done;){var a=r.value;a[d_].indexOf("error")>=0&&(a.error=e)}},n._onPlay=function(){n._hasFirstPlay=!0,n.paused=!1,n._updateEnded()},n._onPause=function(){n.paused=!0,n._updateEnded()},n._updatePausedAndEnded=function(){n.paused=!n._player||n._player.paused,n._updateEnded()},n._updateEnded=function(){n.ended=!!n._player&&n._player.ended},n._updateStreamType=function(){void 0!==n._player&&(n.streamType=n.computeStreamType_())},n._updatePlaybackRate=function(){if(void 0!==n._player)for(var e,t=n._player.playbackRate,r=p6(n._stateReceivers);!(e=r()).done;){var i=e.value;i[d_].indexOf("playbackRate")>=0&&(i.playbackRate=t)}},n._updateMuted=function(){void 0!==n._player&&(n.muted=n._player.muted)},n._updateActiveVideoTrack=function(){if(void 0!==n._player){var e,t,r,i,a=ds(n._player.videoTracks,function(e){return e.enabled});n._activeVideoTrack!==a&&(null==(e=n._activeVideoTrack)||e.removeEventListener("activequalitychanged",n._updateActiveVideoQuality),null==(t=n._activeVideoTrack)||t.removeEventListener("targetqualitychanged",n._updateTargetVideoQualities),n._activeVideoTrack=a,n._updateActiveVideoQuality(),n._updateTargetVideoQualities(),null==(r=n._activeVideoTrack)||r.addEventListener("activequalitychanged",n._updateActiveVideoQuality),null==(i=n._activeVideoTrack)||i.addEventListener("targetqualitychanged",n._updateTargetVideoQualities))}},n._updateActiveVideoQuality=function(){for(var e,t,r=null==(e=n._activeVideoTrack)?void 0:e.activeQuality,i=p6(n._stateReceivers);!(t=i()).done;){var a=t.value;a[d_].indexOf("activeVideoQuality")>=0&&(a.activeVideoQuality=r)}},n._updateTargetVideoQualities=function(){for(var e,t=y_(n._activeVideoTrack),r=p6(n._stateReceivers);!(e=r()).done;){var i=e.value;i[d_].indexOf("targetVideoQualities")>=0&&(i.targetVideoQualities=t)}},n._updateCasting=function(){var e,t,r;n.casting=null!=(e=null==(r=n._player)||null==(t=r.cast)?void 0:t.casting)&&e},n._updatePlayingAd=function(){var e,t,r;n._isPlayingAd=null!=(e=null==(r=n._player)||null==(t=r.ads)?void 0:t.playing)&&e},n._onSourceChange=function(){n.closeMenu_(),n._hasFirstPlay=void 0!==n._player&&!n._player.paused},n.setUserIdle_=function(){if(clearTimeout(n._userIdleTimer),n._userIdleTimer=0,!(n.userIdleTimeout<0)&&(n._isUserActive=!1,n.updateUserIdle_(),"tv"==n.deviceType&&n.isUserIdle_())){var e=dQ();null!==e&&e.blur()}},n.scheduleUserIdle_=function(){if(n.setUserActive_(),clearTimeout(n._userIdleTimer),n.userIdleTimeout<0){n._userIdleTimer=0;return}n._userIdleTimer=setTimeout(n.setUserIdle_,1e3*n.userIdleTimeout)},n._onTvKeyDown=function(e){if(pA(e.keyCode))return void n.setUserIdle_();var t=function e(t){if(di(t)&&"none"!==getComputedStyle(t).display){if(null!==t.getAttribute(px.TV_FOCUS))return df(t);for(var r=dd(t),n=0;n<r.length;n++){var i=e(r[n]);if(i)return i}}}(n),r=df(n),i=dQ();if(!i){var a=null!=t?t:r;a.length>0&&(a[0].focus(),i=a[0])}!n.isUserIdle_()&&(e.keyCode===pE.ENTER?null!==i&&(e.preventDefault(),i.click()):pT(e.keyCode)&&dW(n,r,e.keyCode)&&(e.preventDefault(),e.stopPropagation()))},n._onKeyUp=function(e){pA(e.keyCode)||n.scheduleUserIdle_()},n._onPointerUp=function(e){"mouse"===e.pointerType?n.scheduleUserIdle_():"touch"===e.pointerType&&(n.isPlayerOrMedia_(e.target)&&n._isUserActive?n.setUserIdle_():(n.isUserIdle_()&&(n._lastPointerUpTime=performance.now(),n.addEventListener("click",n._onClickAfterPointerUp,!0)),n.scheduleUserIdle_()))},n._onClickAfterPointerUp=function(e){n.removeEventListener("click",n._onClickAfterPointerUp,!0),performance.now()-n._lastPointerUpTime<50&&(e.preventDefault(),e.stopPropagation())},n._onPointerMove=function(e){"mouse"===e.pointerType&&(n.setUserActive_(),n.isPlayerOrMedia_(e.target)&&n.scheduleUserIdle_())},n._onMouseLeave=function(){n.setUserIdle_()},n._onChromeSlotTransition=function(e){"opacity"===e.propertyName&&n._updateTextTrackMargins()},n._updateTextTrackMargins=function(){var e=n._player;if(void 0!==e){var t=n._topChromeSlotRef.value&&_t(n._topChromeSlotRef.value),r=n._bottomChromeSlotRef.value&&_t(n._bottomChromeSlotRef.value);e.textTrackStyle.marginTop=null==t?void 0:t.height,e.textTrackStyle.marginBottom=null==r?void 0:r.height}},n._onPreviewTimeChange=function(e){n._previewTime=e.detail.previewTime;for(var t,r=p6(n._stateReceivers);!(t=r()).done;){var i=t.value;i[d_].indexOf("previewTime")>=0&&(i.previewTime=n._previewTime)}},n._onDestroy=function(){n._player&&(n.removePlayerListeners_(n._player),n._player=void 0,n.propagatePlayerToAllReceivers_())},n._configuration=e,n._mutationObserver=new MutationObserver(n._onMutation),"u">typeof ResizeObserver&&(n._resizeObserver=new ResizeObserver(n._updateTextTrackMargins)),n.tryInitializePlayer_(),n}n(i,r);var a=i.prototype;return a._setConfiguration=function(e){this._configuration=null!=e?e:{},this.tryInitializePlayer_()},a._setSource=function(e){this._player?this._player.source=e:this._source=e},a.connectedCallback=function(){if(r.prototype.connectedCallback.call(this),!v6){if(hc)document.adoptedStyleSheets.push(v8.styleSheet);else if(!document.getElementById(v7)){var e,t=document.createElement("style");t.id=v7;var n=window.litNonce;void 0!==n&&t.setAttribute("nonce",n),e=v8.cssText,void 0===t.textContent?t.innerText=e:t.textContent=e,document.head.appendChild(t)}v6=!0}this.hasAttribute(px.DEVICE_TYPE)||(this.deviceType=v1()?"mobile":v2()?"tv":"desktop"),this.hasAttribute(px.PAUSED)||(this.paused=!0),this.tryInitializePlayer_();for(var i,a,o=p6(this._stateReceivers);!(a=o()).done;){var l=a.value;this.propagateStateToReceiver_(l)}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!==v0&&(document.addEventListener(v0.fullscreenchange_,this._onFullscreenChange),document.addEventListener(v0.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)},a.tryInitializePlayer_=function(){void 0!==this._player||void 0===this._playerRef.value||(void 0!==this._configuration.license||void 0!==this._configuration.licenseUrl)&&(this._player=new e(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(dz(v3)))},a.createRenderRoot=function(){var e=r.prototype.createRenderRoot.call(this);return e.addEventListener(ye,this._onToggleMenu),e.addEventListener(fU,this._onEnterFullscreen),e.addEventListener(fj,this._onExitFullscreen),e.addEventListener(f1,this._onPreviewTimeChange),e},a.firstUpdated=function(){this._menuGroupRef.value&&!x(this._menuGroupRef,rm)&&customElements.upgrade(this._menuGroupRef.value),this.tryInitializePlayer_(),this._playerRef.value&&dk(this,this._playerRef.value,this.registerStateReceiver_)},a.disconnectedCallback=function(){var e;r.prototype.disconnectedCallback.call(this),null==(e=this._resizeObserver)||e.disconnect(),this._mutationObserver.disconnect(),this.shadowRoot.removeEventListener("slotchange",this._onSlotChange),void 0!==v0&&(document.removeEventListener(v0.fullscreenchange_,this._onFullscreenChange),document.removeEventListener(v0.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},a.propagateStateToReceiver_=function(e){var t,r=e[d_];r.indexOf("player")>=0&&(e.player=this._player),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=y_(this._activeVideoTrack))),r.indexOf("previewTime")>=0&&(e.previewTime=this._previewTime)},a.propagatePlayerToAllReceivers_=function(){for(var e,t=p6(this._stateReceivers);!(e=t()).done;){var r=e.value;r[d_].indexOf("player")>=0&&(r.player=this._player)}},a.removeStateFromReceiver_=function(e){e[d_].indexOf("player")>=0&&(e.player=void 0)},a.openMenu_=function(e,t){var r=dG.fromRect(this._topChromeRef.value.getBoundingClientRect()),n=dG.fromRect(this._bottomChromeRef.value.getBoundingClientRect()),i=!0,a=!0;if(void 0!==t){var o=dG.fromRect(this.getBoundingClientRect()),l=dG.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,fV(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"})},a.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},a.computeStreamType_=function(){var e=this.source,t=null!=(n=null==e?void 0:e.streamType)?n:this.getAttribute(px.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"},a.isUserIdle_=function(){return!this._isUserActive&&!this.paused&&!this.casting&&!!this._menuGroupRef.value&&!this._menuGroupRef.value.hasCurrentMenu()},a.setUserActive_=function(){clearTimeout(this._userIdleTimer),this._isUserActive=!0,this.updateUserIdle_()},a.updateUserIdle_=function(){this.userIdle=this.isUserIdle_()},a.isPlayerOrMedia_=function(e){return e===this||this._playerRef.value.contains(e)},a.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)},a.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){}},a.render=function(){return hJ(v9(),pJ(this._playerRef),pJ(this._topChromeRef),pJ(this._topChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,pJ(this._bottomChromeRef),pJ(this._bottomChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,pJ(this._menuRef),pJ(this._menuGroupRef),this._onCloseMenu,this._onMenuChange)},f(i,[{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:"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=p6(this._stateReceivers);!(t=r()).done;){var n=t.value;n[d_].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(dz(v5)))}},{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=p6(this._stateReceivers);!(t=r()).done;){var n=t.value;n[d_].indexOf("deviceType")>=0&&(n.deviceType=e)}}}},{key:"mobile",get:function(){return pP(this,uu)[uu]},set:function(e){pP(this,uu)[uu]=e}},{key:"tv",get:function(){return pP(this,uc)[uc]},set:function(e){pP(this,uc)[uc]=e}},{key:"streamType",get:function(){return this._streamType},set:function(e){if(this._streamType!==e){this._streamType=e;for(var t,r=p6(this._stateReceivers);!(t=r()).done;){var n=t.value;n[d_].indexOf("streamType")>=0&&(n.streamType=e)}var i=dz("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 pP(this,uh)[uh]},set:function(e){pP(this,uh)[uh]=e}},{key:"_isPlayingAd",get:function(){return pP(this,up)[up]},set:function(e){pP(this,up)[up]=e}},{key:"_hasError",get:function(){return pP(this,ud)[ud]},set:function(e){pP(this,ud)[ud]=e}},{key:"_isFullWindow",get:function(){return pP(this,uy)[uy]},set:function(e){pP(this,uy)[uy]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){this._menuOpened!==e&&(this._menuOpened=e,dp(this,px.MENU_OPENED,e))}}]),i}(pl),uF=(uK=(uW=a(uf,[[ub,4,"configuration"],[ug,4,"source"],[uk,4,"fluid"],[uw,4,"muted"],[ux,4,"autoplay"],[uE,4,"fullscreen"],[uT,4,"paused"],[uA,4,"ended"],[uC,4,"casting"],[uL,4,"userIdle"],[uS,4,"userIdleTimeout"],[uR,4,"deviceType"],[uP,1,"mobile"],[uO,1,"tv"],[uM,4,"streamType"],[uI,4,"dvrThreshold"],[uB,1,"_hasFirstPlay"],[uN,1,"_isPlayingAd"],[u$,1,"_hasError"],[uD,1,"_isFullWindow"],[uq,4,"menuOpened_"]],[u_],pl)).e)[0],uU=uK[1],uj=uK[2],uz=uK[3],uV=uK[4],uH=uK[5],uG=uK[6],uQ=(uZ=uW.c)[0],um=uZ[1],uv);var _n=hy(_r());function _i(){var e=i(["<theoplayer-ui ",' .configuration="','" .fluid="','" .muted="','" .autoplay="','" .deviceType="','" .streamType="','" .userIdleTimeout="','" .dvrThreshold="','" @theoplayerready="','" @theoplayeruseridlechange="','" @theoplayerstreamtypechange="','">',"</theoplayer-ui>"]);return _i=function(){return e},e}function _a(){var e=i(['<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 _a=function(){return e},e}function _o(){var e=i(["[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 _o=function(){return e},e}u6=pu("theoplayer-default-ui"),ce=pd(),C={slot:"title",flatten:!0},ct=pp({reflect:!1,attribute:px.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),cr=pp({reflect:!1,attribute:px.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),cn=pp({reflect:!0,type:Boolean,attribute:px.FLUID}),ci=pp({reflect:!0,type:Boolean,attribute:px.MUTED}),ca=pp({reflect:!0,type:Boolean,attribute:px.AUTOPLAY}),co=pp({reflect:!0,type:String,attribute:px.STREAM_TYPE}),cl=pp({reflect:!0,type:Number,attribute:px.USER_IDLE_TIMEOUT,useDefault:!0}),cs=pp({reflect:!0,type:String,attribute:px.DEVICE_TYPE}),cu=pp({reflect:!0,state:!0,type:Boolean,attribute:px.MOBILE}),cc=pp({reflect:!0,state:!0,type:Boolean,attribute:px.TV}),ch=pp({reflect:!0,type:Number,attribute:px.DVR_THRESHOLD,useDefault:!0}),cp=pd(),new(u7=function(e){function r(){var r;return r=e.apply(this,arguments)||this,r.styles=[_n],r.shadowRootOptions=t({},pl.shadowRootOptions,{delegatesFocus:!0}),r.READY_EVENT=v3,u9(),r}return n(r,e),r}(o),uY=pM("____private__timeRangeInert_1"),uJ=pM("____private_titleSlotNodes_2"),uX=pM("____private_fluid_3"),u0=pM("____private_muted_4"),u1=pM("____private_autoplay_5"),u2=pM("____private_streamType_6"),u5=pM("____private_mobile_7"),u3=pM("____private_tv_8"),u4=pM("____private__hasTitle_9"),u8=function(e){function r(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this)||this,uY,{writable:!0,value:void 0}),Object.defineProperty(r,uJ,{writable:!0,value:void 0}),Object.defineProperty(r,uX,{writable:!0,value:void 0}),Object.defineProperty(r,u0,{writable:!0,value:void 0}),Object.defineProperty(r,u1,{writable:!0,value:void 0}),Object.defineProperty(r,u2,{writable:!0,value:void 0}),Object.defineProperty(r,u5,{writable:!0,value:void 0}),Object.defineProperty(r,u3,{writable:!0,value:void 0}),Object.defineProperty(r,u4,{writable:!0,value:void 0}),cw(r),r._uiRef=pK(),pP(r,uY)[uY]=cd(r,!1),r._timeRangeInertTimeout=0,r._appliedExtensions=!1,r._configuration={},r._source=void 0,r._userIdleTimeout=void 0,r._deviceType="desktop",r._dvrThreshold=60,pP(r,uJ)[uJ]=cy(r),pP(r,uX)[uX]=cf(r,!1),pP(r,u0)[u0]=cv(r,!1),pP(r,u1)[u1]=c_(r,!1),pP(r,u2)[u2]=cm(r,"vod"),pP(r,u5)[u5]=cb(r,!1),pP(r,u3)[u3]=cg(r,!1),pP(r,u4)[u4]=ck(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(dz(v5))},r._onTitleSlotChange=function(){r._hasTitle=r.titleSlotNodes.length>0},r.configuration=t,r}n(r,e);var i=r.prototype;return i.connectedCallback=function(){if(e.prototype.connectedCallback.call(this),this.hasAttribute(px.DEVICE_TYPE)||(this.deviceType=v1()?"mobile":v2()?"tv":"desktop"),!this._appliedExtensions){this._appliedExtensions=!0;for(var t,r=p6(vZ);!(t=r()).done;)(0,t.value)(this)}this._onTitleSlotChange()},i.disconnectedCallback=function(){clearTimeout(this._timeRangeInertTimeout)},i.firstUpdated=function(){this._source&&(this._uiRef.value.source=this._source,this._source=void 0)},i._onUiReady=function(){this.dispatchEvent(dz(v3))},i.render=function(){return hJ(_i(),pJ(this._uiRef),this.configuration,this.fluid,this.muted,this.autoplay,this.deviceType,this.streamType,this.userIdleTimeout,this.dvrThreshold,this._onUiReady,this._updateUserIdle,this._updateStreamType,this.renderUiContent())},i.renderUiContent=function(){return hJ(_a(),fZ({display:this._hasTitle?"":"none"}),this._onTitleSlotChange,this._timeRangeInert,fZ({display:"live"===this.streamType?"none":""}))},f(r,[{key:"_timeRangeInert",get:function(){return pP(this,uY)[uY]},set:function(e){pP(this,uY)[uY]=e}},{key:"titleSlotNodes",get:function(){return pP(this,uJ)[uJ]},set:function(e){pP(this,uJ)[uJ]=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 r;this._configuration=t({},e,{ads:t({},null!=(r=e.ads)?r:{},{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 pP(this,uX)[uX]},set:function(e){pP(this,uX)[uX]=e}},{key:"muted",get:function(){return pP(this,u0)[u0]},set:function(e){pP(this,u0)[u0]=e}},{key:"autoplay",get:function(){return pP(this,u1)[u1]},set:function(e){pP(this,u1)[u1]=e}},{key:"streamType",get:function(){return pP(this,u2)[u2]},set:function(e){pP(this,u2)[u2]=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 pP(this,u5)[u5]},set:function(e){pP(this,u5)[u5]=e}},{key:"tv",get:function(){return pP(this,u3)[u3]},set:function(e){pP(this,u3)[u3]=e}},{key:"dvrThreshold",get:function(){return this._dvrThreshold},set:function(e){this._dvrThreshold=isNaN(e)?0:e}},{key:"_hasTitle",get:function(){return pP(this,u4)[u4]},set:function(e){pP(this,u4)[u4]=e}}]),r}(pl),cd=(cT=(cE=a(u8,[[ce,1,"_timeRangeInert"],[function(e,t){var r=(null!=C?C:{}).slot,n="slot"+(r?"[name="+r+"]":":not([name])");return py(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(C))?e:[]}})},1,"titleSlotNodes"],[ct,4,"configuration"],[cr,4,"source"],[cn,1,"fluid"],[ci,1,"muted"],[ca,1,"autoplay"],[co,1,"streamType"],[cl,4,"userIdleTimeout"],[cs,4,"deviceType"],[cu,1,"mobile"],[cc,1,"tv"],[ch,4,"dvrThreshold"],[cp,1,"_hasTitle"]],[u6],pl)).e)[0],cy=cT[1],cf=cT[2],cv=cT[3],c_=cT[4],cm=cT[5],cb=cT[6],cg=cT[7],ck=cT[8],cw=cT[9],cx=(cA=cE.c)[0],u9=cA[1],u7);var _l=hy(_o());function _s(){var e=i(['<span part="icon">','<span part="warning-icon" style="','">',"</span></span>"]);return _s=function(){return e},e}cR=pu("theolive-bad-network-button"),cP=db(["player"]),cM=pd(),cI=pp({reflect:!1,attribute:!1}),new(cS=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(rC.styles,[_l]),cO(),t}return n(t,e),t}(o),cC=pM("____private__inBadNetworkMode_1"),cL=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,cC,{writable:!0,value:void 0}),pP(t,cC)[cC]=(cN(t),cB(t,!1)),t.handleEnterBadNetworkMode_=function(){t._inBadNetworkMode=!0},t.handleExitBadNetworkMode_=function(){t._inBadNetworkMode=!1},t}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(px.ARIA_LABEL)||this.setAttribute(px.ARIA_LABEL,"open settings menu")},r.render=function(){var e={display:this._inBadNetworkMode?"":"none"};return hJ(_s(),p4(fN),fZ(e),p4('<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>'))},f(t,[{key:"_inBadNetworkMode",get:function(){return pP(this,cC)[cC]},set:function(e){pP(this,cC)[cC]=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}(rC),cB=(cD=(c$=a(cL,[[cM,1,"_inBadNetworkMode"],[cI,4,"player"]],[cR,cP],rC)).e)[0],cN=cD[1],(cq=c$.c)[0],cO=cq[1],cS),cF=db(["player"]);var _u=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t._badNetworkMode=!1,t.handleEnterBadNetworkMode_=function(){t._badNetworkMode=!0,t.handleEnterBadNetworkMode()},t.handleExitBadNetworkMode_=function(){t._badNetworkMode=!1,t.handleExitBadNetworkMode()},t}n(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){},r.handleExitBadNetworkMode=function(){},f(t,[{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}(tQ);function _c(){var e=i(["<slot>High Quality</slot>"]);return _c=function(){return e},e}cU=(cj=a(_u,[],[cF],tQ).c)[0],(0,cj[1])(),cz=pu("theolive-automatic-quality-selector");var _h=function(e){function t(){return e.apply(this,arguments)||this}n(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(){return hJ(_c())},t}(cU);function _p(){var e=i(["<slot>Low Quality</slot>"]);return _p=function(){return e},e}(cV=a(_h,[],[cz],cU).c)[0],(0,cV[1])(),cH=pu("theolive-bad-network-quality-selector");var _d=function(e){function t(){return e.apply(this,arguments)||this}n(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(){return hJ(_p())},t}(cU);function _y(){var e=i(["<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 _y=function(){return e},e}function _f(){var e=i([':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 _f=function(){return e},e}(cG=a(_d,[],[cH],cU).c)[0],(0,cG[1])(),cK=pu("theolive-bad-network-menu"),new(cW=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[yy],cZ(),t}return n(t,e),t}(o),cQ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t._radioGroupRef=pK(),t._onChange=function(){t.dispatchEvent(new Event("change",{bubbles:!0}))},t}n(t,e);var r=t.prototype;return r.firstUpdated=function(){this._radioGroupRef.value&&!x(this._radioGroupRef.value,t5)&&customElements.upgrade(this._radioGroupRef.value)},r.render=function(){return hJ(_y(),pJ(this._radioGroupRef),this._onChange)},t}(pl),(cY=a(cQ,[],[cK],pl).c)[0],cZ=cY[1],cW);var _v=hy(_f());function __(){var e=i(['<p id="loading-announcement" no-auto-hide slot="centered-chrome" style="','"><slot name="loading-announcement">Loading...</slot></p><p id="offline-announcement" no-auto-hide slot="centered-chrome" style="','"><slot name="offline-announcement">The live stream hasn\'t started yet</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 __=function(){return e},e}c3=pu("theolive-default-ui"),c8=pd(),c7=pd(),c6=pd(),c9=pd(),new(c5=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[_v],c4(),t}return n(t,e),t}(o),cJ=pM("____private__announcementType_1"),cX=pM("____private__announcementMessage_2"),c0=pM("____private__hidePlayButton_3"),c1=pM("____private__hideErrorDisplay_4"),c2=function(e){function t(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this,t)||this,cJ,{writable:!0,value:void 0}),Object.defineProperty(r,cX,{writable:!0,value:void 0}),Object.defineProperty(r,c0,{writable:!0,value:void 0}),Object.defineProperty(r,c1,{writable:!0,value:void 0}),pP(r,cJ)[cJ]=(hi(r),he(r,"")),pP(r,cX)[cX]=ht(r,""),pP(r,c0)[c0]=hr(r,!1),pP(r,c1)[c1]=hn(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}n(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(px.HAS_ERROR),this._hideErrorDisplay=!0},r.stopHidingPlayerError=function(){var e;null==(e=this._uiRef.value)||e.setAttribute(px.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={display:"loading"===this._announcementType?"":"none"},t={display:"offline"===this._announcementType?"":"none"},r={display:"announcement"===this._announcementType?"":"none"},n={display:this._hidePlayButton?"none":""},i={display:this._hideErrorDisplay?"none":""};return hJ(__(),fZ(e),fZ(t),fZ(r),this._announcementMessage,fZ(n),fZ(n),fZ(i))},f(t,[{key:"_announcementType",get:function(){return pP(this,cJ)[cJ]},set:function(e){pP(this,cJ)[cJ]=e}},{key:"_announcementMessage",get:function(){return pP(this,cX)[cX]},set:function(e){pP(this,cX)[cX]=e}},{key:"_hidePlayButton",get:function(){return pP(this,c0)[c0]},set:function(e){pP(this,c0)[c0]=e}},{key:"_hideErrorDisplay",get:function(){return pP(this,c1)[c1]},set:function(e){pP(this,c1)[c1]=e}}]),t}(cx),he=(hl=(ho=a(c2,[[c8,1,"_announcementType"],[c7,1,"_announcementMessage"],[c6,1,"_hidePlayButton"],[c9,1,"_hideErrorDisplay"]],[c3],cx)).e)[0],ht=hl[1],hr=hl[2],hn=hl[3],hi=hl[4],ha=(hs=ho.c)[0],c4=hs[1],c5);var _m="2.1.3";export{iI as ActiveQualityDisplay,sX as AdClickThroughButton,sV as AdCountdown,sR as AdDisplay,ua as AdSkipButton,lM as AirPlayButton,px as Attribute,H as Button,vs as CastButton,ld as ChromecastButton,lE as ChromecastDisplay,rO as CloseMenuButton,fQ as ColorStops,$ as ControlBar,cx as DefaultUI,tD as DurationDisplay,lt as ErrorDisplay,vK as ExtensionSlot,ak as FullscreenButton,l4 as GestureReceiver,nJ as LanguageMenu,n8 as LanguageMenuButton,eo as LinkButton,sv as LiveButton,lH as LoadingIndicator,rq as MediaTrackRadioButton,ro as Menu,rC as MenuButton,rm as MenuGroup,ej as MuteButton,eL as PlayButton,ix as PlaybackRateDisplay,iv as PlaybackRateMenu,ip as PlaybackRateMenuButton,is as PlaybackRateRadioGroup,oe as PreviewThumbnail,oA as PreviewTimeDisplay,iV as QualityRadioButton,i3 as QualityRadioGroup,tQ as RadioButton,t5 as RadioGroup,aK as Range,e2 as SeekButton,al as SettingsMenu,ac as SettingsMenuButton,ey as SlotContainer,dg as StateReceiverMixin,ha as THEOliveDefaultUI,ns as TextTrackOffRadioButton,nt as TextTrackRadioButton,nv as TextTrackStyleDisplay,nN as TextTrackStyleMenu,nL as TextTrackStyleRadioGroup,ae as TextTrackStyleResetButton,tE as TimeDisplay,oj as TimeRange,r2 as TrackRadioGroup,uQ as UIContainer,oZ as VolumeRange,pR as buttonTemplate,p2 as linkButtonTemplate,yn as menuGroupTemplate,d7 as menuTemplate,vY as registerExtension,db as stateReceiver,_m as version};
1
+ import{ChromelessPlayer as e}from"theoplayer/chromeless";function t(){return(t=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 r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function n(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&&r(e,t)}function i(e,t){return t||(t=e.slice(0)),e.raw=t,e}function a(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 o(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,p,d={kind:c,name:l?"#"+t:t,static:o,private:l,metadata:s},y={v:!1};if(d.addInitializer=i(n,y),0===a?l?(h=r.get,p=r.set):(h=function(){return this[t]},p=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)&&(p=function(e){r.set.call(this,e)})),h){var f=h;h=function(e){return 0==arguments.length&&(e=this),f.call(e)}}if(p){var v=p;p=function(e,t){return 1==arguments.length&&(t=e,e=this),v.call(e,t)}}if(l)d.access=h&&p?{get:h,set:p}:h?{get:h}:{set:p};else{var _=function(e){return t in e};d.access=h&&p?{has:_,get:h,set:p}:h?{has:_,get:h}:{has:_,set:p}}var g=e(u,d);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(a=function(e,t,r,n){if(void 0!==n)var a=n[Symbol.metadata||Symbol.for("Symbol.metadata")];var l=Object.create(void 0===a?null:a),h=function(e,t,r){for(var n=[],i=new Map,a=new Map,l=0;l<t.length;l++){var c,h,p,d,y=t[l];if(Array.isArray(y)){var f=y[1],v=y[2],_=y.length>3,g=f>=5;if(g?(p=e,f-=5,d=h=h||[]):(p=e.prototype,d=c=c||[]),0!==f&&!_){var b=g?a: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,a,l,u,c){var h,p,d,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?d={get:h.get,set:h.set}:2===i?d=h.value:3===i?d=h.get:4===i&&(d=h.set),"function"==typeof _)void 0!==(y=o(_,n,h,u,i,a,l,c,d))&&(s(i,y),0===i?p=y:1===i?(p=y.init,d={get:f=y.get||d.get,set:y.set||d.set}):d=y);else for(var g=_.length-1;g>=0;g--)void 0!==(y=o(_[g],n,h,u,i,a,l,c,d))&&(s(i,y),0===i?v=y:1===i?(v=y.init,d={get:f=y.get||d.get,set:y.set||d.set}):d=y,void 0!==v&&(void 0===p?p=v:"function"==typeof p?p=[p,v]:p.push(v)));if(0===i||1===i){if(void 0===p)p=function(e,t){return t};else if("function"!=typeof p){var b=p;p=function(e,t){for(var r=t,n=0;n<b.length;n++)r=b[n].call(e,r);return r}}else{var m=p;p=function(e,t){return m.call(e,t)}}e.push(p)}0!==i&&(1===i?(h.get=d.get,h.set=d.set):2===i?h.value=d:3===i?h.get=d:4===i&&(h.set=d),l?1===i?(e.push(function(e,t){return d.get.call(e,t)}),e.push(function(e,t){return d.set.call(e,t)})):2===i?e.push(d):e.push(function(e,t){return d.call(e,t)}):Object.defineProperty(t,n,h))}(n,p,y,v,f,g,_,d,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 o(e){return e}function l(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 s(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){l(a,n,i,o,s,"next",e)}function s(e){l(a,n,i,o,s,"throw",e)}o(void 0)})}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function h(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function p(e,t,r){t=u(t);var n=c()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r);if(n&&("object"===h(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 d(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function y(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 f(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),e}function v(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 v(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 v(e,t)}}function g(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 b(e){return function(e){if(Array.isArray(e))return v(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 m(e,t,n){return(m=c()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return n&&r(a,n.prototype),a}).apply(null,arguments)}function k(e){var t="function"==typeof Map?new Map:void 0;return(k=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,n)}function n(){return m(e,arguments,u(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r(n,e)})(e)}function w(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 x(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var T,A,E,S,L,C,P,R,O,M,N,B,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,ep,ed,ey,ef,ev,e_,eg,eb,em,ek,ew,ex,eT,eA,eE,eS,eL,eC,eP,eR,eO,eM,eN,eB,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,tp,td,ty,tf,tv,t_,tg,tb,tm,tk,tw,tx,tT,tA,tE,tS,tL,tC,tP,tR,tO,tM,tN,tB,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,rp,rd,ry,rf,rv,r_,rg,rb,rm,rk,rw,rx,rT,rA,rE,rS,rL,rC,rP,rR,rO,rM,rN,rB,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,np,nd,ny,nf,nv,n_,ng,nb,nm,nk,nw,nx,nT,nA,nE,nS,nL,nC,nP,nR,nO,nM,nN,nB,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,ip,id,iy,iv,i_,ig,ib,im,ik,iw,ix,iT,iA,iE,iS,iL,iC,iP,iR,iO,iM,iN,iB,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,ap,ad,ay,af,av,a_,ag,ab,am,ak,aw,ax,aT,aA,aE,aS,aL,aC,aP,aR,aO,aM,aN,aB,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,op,od,oy,of,ov,o_,og,ob,om,ok,ow,ox,oT,oA,oE,oS,oL,oC,oP,oR,oO,oM,oN,oB,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,lp,ld,ly,lf,lv,l_,lg,lb,lm,lk,lw,lx,lT,lA,lE,lS,lL,lC,lP,lR,lO,lM,lN,lB,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,sp,sd,sy,sf,sv,s_,sg,sb,sm,sk,sw,sx,sT,sA,sE,sS,sL,sC,sP,sR,sO,sM,sN,sB,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,up,ud,uy,uf,uv,u_,ug,ub,um,uk,uw,ux,uT,uA,uE,uS,uL,uC,uP,uR,uO,uM,uN,uB,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,cp,cd,cy,cf,cv,c_,cg,cb,cm,ck,cw,cx,cT,cA,cE,cS,cL,cC,cP,cR,cO,cM,cN,cB,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,hp,hd,hy,hf,hv,h_,hg,hb,hm,hk,hw,hx,hT,hA,hE,hS,hL,hC,hP,hR,hO,hM,hN,hB,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,pe,pt,pr,pn,pi,pa,po,pl,ps,pu,pc,ph,pp,pd,py,pf,pv,p_,pg,pb,pm,pk,pw,px,pT,pA,pE,pS,pL,pC,pP,pR,pO,pM,pN,pB,pI,pD,p$,pF,pU,pq,pj,pz,pH,pV,pG,pQ,pW,pK,pZ,pY,pJ,pX,p0,p1,p2,p5,p3,p4,p8,p7,p6,p9,de,dt,dr,dn,di,da,dl,ds,du,dc,dh,dp,dd,dy,df,dv,d_,dg,db,dm,dk,dw,dx,dT,dA,dE,dS,dL,dC,dP,dR,dO=self,dM=dO.ShadowRoot&&(void 0===dO.ShadyCSS||dO.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,dN=Symbol(),dB=new WeakMap,dI=function(){function e(t,r,n){if(d(this,e),this._$cssResult$=!0,n!==dN)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}return f(e,[{key:"styleSheet",get:function(){var e=this.o,t=this.t;if(dM&&void 0===e){var r=void 0!==t&&1===t.length;r&&(e=dB.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&dB.set(t,e))}return e}},{key:"toString",value:function(){return this.cssText}}]),e}(),dD=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 dI(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,dN)},d$=function(e,t){var r=!0,n=!1,i=void 0;if(dM)e.adoptedStyleSheets=t.map(function(e){return x(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=dO.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}}},dF=dM?function(e){return e}:function(e){return x(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 dI("string"==typeof(t=r)?t:t+"",void 0,dN)}(e):e},dU=Object.is,dq=Object.defineProperty,dj=Object.getOwnPropertyDescriptor,dz=Object.getOwnPropertyNames,dH=Object.getOwnPropertySymbols,dV=Object.getPrototypeOf,dG=self,dQ=dG.trustedTypes,dW=dQ?dQ.emptyScript:"",dK=dG.reactiveElementPolyfillSupport,dZ=function(e,t){return e},dY={toAttribute:function(e,t){switch(t){case Boolean:e=e?dW: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}},dJ=function(e,t){return!dU(e,t)},dX={attribute:!0,type:String,converter:dY,reflect:!1,useDefault:!1,hasChanged:dJ};null!=(L=Symbol).metadata||(L.metadata=Symbol("metadata")),null!=dG.litPropertyMetadata||(dG.litPropertyMetadata=new WeakMap);var d0=function(e){function t(){var e;return d(this,t),(e=p(this,t))._$Ep=void 0,e.isUpdatePending=!1,e.hasUpdated=!1,e._$Em=null,e._$Ev(),e}return n(t,e),f(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 d$(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:dY).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:dY;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:dJ)(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 s(function(){var e;return w(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=g(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,p=void 0;if(u.size>0)try{for(var d,y=u[Symbol.iterator]();!(c=(d=y.next()).done);c=!0){var f=g(d.value,2),v=f[0],_=f[1],b=_.wrapped,m=this[v];!0!==b||this._$AL.has(v)||void 0===m||this.C(v,void 0,_,m)}}catch(e){h=!0,p=e}finally{try{c||null==y.return||y.return()}finally{if(h)throw p}}}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&&b(this._$Eh.keys())}},{key:"createProperty",value:function(e,t){if(void 0===t&&(t=dX),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&&dq(this.prototype,e,n)}}},{key:"getPropertyDescriptor",value:function(e,t,r){var n,i=null!=(n=dj(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:dX}},{key:"_$Ei",value:function(){if(!this.hasOwnProperty(dZ("elementProperties"))){var e=dV(this);e.finalize(),void 0!==e.l&&(this.l=b(e.l)),this.elementProperties=new Map(e.elementProperties)}}},{key:"finalize",value:function(){if(!this.hasOwnProperty(dZ("finalized"))){if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(dZ("properties"))){var e=this.properties,t=b(dz(e)).concat(b(dH(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,p=void 0;if(void 0!==u)try{for(var d,y=u[Symbol.iterator]();!(c=(d=y.next()).done);c=!0){var f=g(d.value,2),v=f[0],_=f[1];this.elementProperties.set(v,_)}}catch(e){h=!0,p=e}finally{try{c||null==y.return||y.return()}finally{if(h)throw p}}}this._$Eh=new Map;var m=!0,k=!1,w=void 0;try{for(var x,T=this.elementProperties[Symbol.iterator]();!(m=(x=T.next()).done);m=!0){var A=g(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{m||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(dF(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(dF(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}(k(HTMLElement));d0.elementStyles=[],d0.shadowRootOptions={mode:"open"},d0[dZ("elementProperties")]=new Map,d0[dZ("finalized")]=new Map,null==dK||dK({ReactiveElement:d0}),(null!=(C=dG.reactiveElementVersions)?C:dG.reactiveElementVersions=[]).push("2.1.2");var d1=self,d2=function(e){return e},d5=d1.trustedTypes,d3=d5?d5.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,d4="$lit$",d8="lit$"+Math.random().toFixed(9).slice(2)+"$",d7="?"+d8,d6="<"+d7+">",d9=document,ye=function(){return d9.createComment("")},yt=function(e){return null===e||"object"!=(void 0===e?"undefined":h(e))&&"function"!=typeof e},yr=Array.isArray,yn="[ \n\f\r]",yi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ya=/-->/g,yo=/>/g,yl=RegExp(">|"+yn+"(?:([^\\s\"'>=/]+)("+yn+"*="+yn+"*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)","g"),ys=/'/g,yu=/"/g,yc=/^(?:script|style|textarea|title)$/i,yh=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}},yp=Symbol.for("lit-noChange"),yd=Symbol.for("lit-nothing"),yy=new WeakMap,yf=d9.createTreeWalker(d9,129,null,!1);function yv(e,t){if(!yr(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==d3?d3.createHTML(t):t}var y_=function(e,t){for(var r,n=e.length-1,i=[],a=2===t?"<svg>":3===t?"<math>":"",o=yi,l=0;l<n;l++){for(var s=e[l],u=void 0,c=void 0,h=-1,p=0;p<s.length&&(o.lastIndex=p,null!==(c=o.exec(s)));)p=o.lastIndex,o===yi?"!--"===c[1]?o=ya:void 0!==c[1]?o=yo:void 0!==c[2]?(yc.test(c[2])&&(r=RegExp("</"+c[2],"g")),o=yl):void 0!==c[3]&&(o=yl):o===yl?">"===c[0]?(o=null!=r?r:yi,h=-1):void 0===c[1]?h=-2:(h=o.lastIndex-c[2].length,u=c[1],o=void 0===c[3]?yl:'"'===c[3]?yu:ys):o===yu||o===ys?o=yl:o===ya||o===yo?o=yi:(o=yl,r=void 0);var d=o===yl&&e[l+1].startsWith("/>")?" ":"";a+=o===yi?s+d6:h>=0?(i.push(u),s.slice(0,h)+d4+s.slice(h)+d8+d):s+d8+(-2===h?l:d)}return[yv(e,a+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]},yg=function(){function e(t,r){var n=t.strings,i=t._$litType$;d(this,e),this.parts=[];var a=0,o=0,l=n.length-1,s=this.parts,u=g(y_(n,i),2),c=u[0],h=u[1];if(this.el=e.createElement(c,r),yf.currentNode=this.el.content,2===i||3===i){var p,y=this.el.content.firstChild;y.replaceWith.apply(y,b(y.childNodes))}for(;null!==(p=yf.nextNode())&&s.length<l;){if(1===p.nodeType){var f=!0,v=!1,_=void 0;if(p.hasAttributes())try{for(var m,k=p.getAttributeNames()[Symbol.iterator]();!(f=(m=k.next()).done);f=!0){var w=m.value;if(w.endsWith(d4)){var x=h[o++],T=p.getAttribute(w).split(d8),A=/([.?@])?(.*)/.exec(x);s.push({type:1,index:a,name:A[2],strings:T,ctor:"."===A[1]?yx:"?"===A[1]?yT:"@"===A[1]?yA:yw}),p.removeAttribute(w)}else w.startsWith(d8)&&(s.push({type:6,index:a}),p.removeAttribute(w))}}catch(e){v=!0,_=e}finally{try{f||null==k.return||k.return()}finally{if(v)throw _}}if(yc.test(p.tagName)){var E=p.textContent.split(d8),S=E.length-1;if(S>0){p.textContent=d5?d5.emptyScript:"";for(var L=0;L<S;L++)p.append(E[L],ye()),yf.nextNode(),s.push({type:2,index:++a});p.append(E[S],ye())}}}else if(8===p.nodeType)if(p.data===d7)s.push({type:2,index:a});else for(var C=-1;-1!==(C=p.data.indexOf(d8,C+1));)s.push({type:7,index:a}),C+=d8.length-1;a++}}return f(e,null,[{key:"createElement",value:function(e,t){var r=d9.createElement("template");return r.innerHTML=e,r}}]),e}();function yb(e,t,r,n){if(void 0===r&&(r=e),t===yp)return t;var i,a,o,l,s=void 0!==n?null==(o=r._$Co)?void 0:o[n]:r._$Cl,u=yt(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=yb(e,s._$AS(e,t.values),s,n)),t}var ym=function(){function e(t,r){d(this,e),this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}return f(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:d9).importNode(n,!0);yf.currentNode=a;for(var o=yf.nextNode(),l=0,s=0,u=i[0];void 0!==u;){if(l===u.index){var c=void 0;2===u.type?c=new yk(o,o.nextSibling,this,e):1===u.type?c=new u.ctor(o,u.name,u.strings,this,e):6===u.type&&(c=new yE(o,this,e)),this._$AV.push(c),u=i[++s]}l!==(null==u?void 0:u.index)&&(o=yf.nextNode(),l++)}return yf.currentNode=d9,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}(),yk=function(){function e(t,r,n,i){var a;d(this,e),this.type=2,this._$AH=yd,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 f(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),yt(e=yb(this,e,t))?e===yd||null==e||""===e?(this._$AH!==yd&&this._$AR(),this._$AH=yd):e!==this._$AH&&e!==yp&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):yr(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!==yd&&yt(this._$AH)?this._$AA.nextSibling.data=e:this.T(d9.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=yg.createElement(yv(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 ym(i,this),o=a.u(this.options);a.p(r),this.T(o),this._$AH=a}}},{key:"_$AC",value:function(e){var t=yy.get(e.strings);return void 0===t&&yy.set(e.strings,t=new yg(e)),t}},{key:"k",value:function(t){yr(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(ye()),this.O(ye()),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=d2(e).nextSibling;d2(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}(),yw=function(){function e(t,r,n,i,a){d(this,e),this.type=1,this._$AH=yd,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=yd}return f(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=!yt(e=yb(this,e,t,0))||e!==this._$AH&&e!==yp)&&(this._$AH=e);else{var o,l,s=e;for(e=i[0],o=0;o<i.length-1;o++)(l=yb(this,s[r+o],t,o))===yp&&(l=this._$AH[o]),a||(a=!yt(l)||l!==this._$AH[o]),l===yd?e=yd:e!==yd&&(e+=(null!=l?l:"")+i[o+1]),this._$AH[o]=l}a&&!n&&this.j(e)}},{key:"j",value:function(e){e===yd?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}]),e}(),yx=function(e){function t(){var e;return d(this,t),e=p(this,t,arguments),e.type=3,e}return n(t,e),f(t,[{key:"j",value:function(e){this.element[this.name]=e===yd?void 0:e}}]),t}(yw),yT=function(e){function t(){var e;return d(this,t),e=p(this,t,arguments),e.type=4,e}return n(t,e),f(t,[{key:"j",value:function(e){this.element.toggleAttribute(this.name,!!e&&e!==yd)}}]),t}(yw),yA=function(e){function t(e,r,n,i,a){var o;return d(this,t),(o=p(this,t,[e,r,n,i,a])).type=5,o}return n(t,e),f(t,[{key:"_$AI",value:function(e,t){if(void 0===t&&(t=this),(e=null!=(r=yb(this,e,t,0))?r:yd)!==yp){var r,n=this._$AH,i=e===yd&&n!==yd||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==yd&&(n===yd||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}(yw),yE=function(){function e(t,r,n){d(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}return f(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){yb(this,e)}}]),e}(),yS=d1.litHtmlPolyfillSupport;null==yS||yS(yg,yk),(null!=(P=d1.litHtmlVersions)?P:d1.litHtmlVersions=[]).push("3.3.2");var yL=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 yk(t.insertBefore(ye(),l),l,void 0,null!=r?r:{})}return i._$AI(e),i},yC=globalThis,yP=function(e){function t(){var e;return d(this,t),e=p(this,t,arguments),e.renderOptions={host:e},e._$Do=void 0,e}return n(t,e),f(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=yL(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 yp}}]),t}(d0);yP._$litElement$=!0,yP.finalized=!0,null==(O=yC.litElementHydrateSupport)||O.call(yC,{LitElement:yP});var yR=yC.litElementPolyfillSupport;null==yR||yR({LitElement:yP}),(null!=(R=yC.litElementVersions)?R:yC.litElementVersions=[]).push("4.2.2");var yO=function(e){return function(t,r){void 0!==r?r.addInitializer(function(){customElements.define(e,t)}):customElements.define(e,t)}},yM={attribute:!0,type:String,converter:dY,reflect:!1,hasChanged:dJ},yN=function(e,t,r){void 0===e&&(e=yM);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 yB(e){return function(t,r){var n;return"object"==(void 0===r?"undefined":h(r))?yN(e,t,r):(n=t.hasOwnProperty(r),t.constructor.createProperty(r,e),n?Object.getOwnPropertyDescriptor(t,r):void 0)}}function yI(e){var t,r;return yB((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 yD=function(e,t,r){return r.configurable=!0,r.enumerable=!0,Reflect.decorate&&"object"!=(void 0===t?"undefined":h(t))&&Object.defineProperty(e,t,r),r};function y$(){var e=i([":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 y$=function(){return e},e}var yF=dD(y$());function yU(){var e=i(["<slot></slot>"]);return yU=function(){return e},e}function yq(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}B=yO("theoplayer-control-bar"),new(N=function(e){function r(){var r;return r=e.apply(this,arguments)||this,r.styles=[yF],r.shadowRootOptions=t({},yP.shadowRootOptions,{delegatesFocus:!0}),I(),r}return n(r,e),r}(o),M=function(e){function t(){return e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return yh(yU())},t}(yP),D=($=a(M,[],[B],yP).c)[0],I=$[1],N);var yj=0;function yz(e){return"__private_"+yj+++"_"+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}}},yV=function(){function e(t){d(this,e)}return f(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,b(t))}}]),e}(),yG=yH(function(e){function t(e){var r;if(d(this,t),r=p(this,t,[e]),2!==e.type)throw Error("templateContent can only be used in child bindings");return r}return n(t,e),f(t,[{key:"render",value:function(e){return this.vt===e?yp:(this.vt=e,document.importNode(e.content,!0))}}]),t}(yV));function yQ(){var e=i([":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 yQ=function(){return e},e}var yW=dD(yQ()),yK=((T={}).CONFIGURATION="configuration",T.SOURCE="source",T.AUTOPLAY="autoplay",T.MUTED="muted",T.FULLSCREEN="fullscreen",T.FULLWINDOW="fullwindow",T.FLUID="fluid",T.DEVICE_TYPE="device-type",T.MOBILE="mobile",T.TV="tv",T.TV_FOCUS="tv-focus",T.MOBILE_ONLY="mobile-only",T.MOBILE_HIDDEN="mobile-hidden",T.TV_ONLY="tv-only",T.TV_HIDDEN="tv-hidden",T.USER_IDLE="user-idle",T.USER_IDLE_TIMEOUT="user-idle-timeout",T.NO_AUTO_HIDE="no-auto-hide",T.DISABLED="disabled",T.INERT="inert",T.HIDDEN="hidden",T.PAUSED="paused",T.ENDED="ended",T.VOLUME_LEVEL="volume-level",T.CASTING="casting",T.LOADING="loading",T.STREAM_TYPE="stream-type",T.LIVE="live",T.LIVE_ONLY="live-only",T.LIVE_HIDDEN="live-hidden",T.LIVE_THRESHOLD="live-threshold",T.DVR_THRESHOLD="dvr-threshold",T.REMAINING="remaining",T.REMAINING_WHEN_LIVE="remaining-when-live",T.SHOW_DURATION="show-duration",T.SEEK_OFFSET="seek-offset",T.MENU="menu",T.MENU_OPENED="menu-opened",T.MENU_CLOSE_ON_INPUT="menu-close-on-input",T.ARIA_LABEL="aria-label",T.ARIA_LIVE="aria-live",T.ARIA_CHECKED="aria-checked",T.HAS_AUDIO="has-audio",T.HAS_SUBTITLES="has-subtitles",T.HAS_ERROR="has-error",T.HAS_FIRST_PLAY="has-first-play",T.CAST_STATE="cast-state",T.TRACK_TYPE="track-type",T.SHOW_OFF="show-off",T.PLAYING_AD="playing-ad",T.SHOW_AD_MARKERS="show-ad-markers",T.CLICKTHROUGH="clickthrough",T.PROPERTY="property",T.VALUE="value",T.LANG="lang",T),yZ=((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 yY(e){return 37<=e&&e<=40}function yJ(e){return 10009===e||27===e||88===e||461===e}function yX(e){return 13===e||32===e}function y0(){var e=i(["",""]);return y0=function(){return e},e}function y1(){var e=i(["<slot></slot>"]);return y1=function(){return e},e}function y2(e,t){return void 0===t&&(t=""),"<style>"+t+"</style>"+e}function y5(){var e=i([":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 y5=function(){return e},e}j=yO("theoplayer-button"),H=yB({reflect:!0,type:Boolean,attribute:yK.DISABLED}),V=yB({reflect:!0,state:!0,type:String,attribute:yK.ARIA_LABEL}),new(q=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[yW],z(),t}return n(t,e),t}(o),F=yz("____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,yq(r,F)[F]=G(r,null),r._onClick=function(){r.handleClick()},r._onKeyDown=function(e){!yX(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),yX(e.keyCode)&&r.handleClick()},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}n(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(yK.ARIA_LIVE)||this.setAttribute(yK.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?yh(y0(),yG(this._template)):yh(y1())},r.handleClick=function(){},f(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?this._disable():this._enable()}},{key:"ariaLabel",get:function(){return yq(this,F)[F]},set:function(e){yq(this,F)[F]=e}}]),t}(yP),G=(Z=(K=a(U,[[H,4,"disabled"],[V,1,"ariaLabel"]],[j],yP)).e)[0],Q=Z[1],W=(Y=K.c)[0],z=Y[1],q);var y3=dD(y5()),y4=function(e){return e},y8=function(){return document.createComment("")},y7=function(e,t,r){var n=e._$AA.parentNode,i=void 0===t?e._$AB:t._$AA;if(void 0===r)r=new yk(n.insertBefore(y8(),i),n.insertBefore(y8(),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=y4(c).nextSibling;y4(n).insertBefore(c,i),c=h}}return r},y6=function(e,t,r){return void 0===r&&(r=e),e._$AI(t,r),e},y9={},fe=function(e){e._$AR(),e._$AA.remove()},ft=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),ft(u,t)}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return!0},fr=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))},fn=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),fo(t)}};function fi(e){void 0!==this._$AN?(fr(this),this._$AM=e,fn(this)):this._$AM=e}function fa(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++)ft(n[a],!1),fr(n[a]);else null!=n&&(ft(n,!1),fr(n));else ft(this,e)}var fo=function(e){2==e.type&&(null!=e._$AP||(e._$AP=fa),null!=e._$AQ||(e._$AQ=fi))},fl=function(e){function t(){var e;return d(this,t),e=p(this,t,arguments),e._$AN=void 0,e}return n(t,e),f(t,[{key:"_$AT",value:function(t,r,n){e.prototype._$AT.call(this,t,r,n),fn(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&&(ft(this,e),fr(this))}},{key:"setValue",value:function(e){if(void 0===this._$Ct.strings)this._$Ct._$AI(e,this);else{var t=b(this._$Ct._$AH);t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}},{key:"disconnected",value:function(){}},{key:"reconnected",value:function(){}}]),t}(yV),fs=function(){return new fu},fu=function e(){d(this,e)},fc=new WeakMap,fh=yH(function(e){function t(){return d(this,t),p(this,t,arguments)}return n(t,e),f(t,[{key:"render",value:function(e){return yd}},{key:"update",value:function(e,t){var r,n=g(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)),yd}},{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=fc.get(r);void 0===n&&(n=new WeakMap,fc.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=fc.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}(fl));function fp(){var e=i(["",""]);return fp=function(){return e},e}function fd(){var e=i(["<a ",' href="','" target="','" @keydown="','" @click="','">',"</a>"]);return fd=function(){return e},e}function fy(){var e=i(["<slot></slot>"]);return fy=function(){return e},e}function ff(e,t){return void 0===t&&(t=""),y2("<a>"+e+"</a>",t)}er=yO("theoplayer-link-button"),ei=yB({reflect:!0,type:Boolean,attribute:yK.DISABLED}),ea=yI(),eo=yI(),new(et=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[y3],en(),t}return n(t,e),t}(o),J=yz("____private_href_1"),X=yz("____private_target_2"),ee=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,J,{writable:!0,value:void 0}),Object.defineProperty(r,X,{writable:!0,value:void 0}),eu(r),r._disabled=!1,r._linkRef=fs(),yq(r,J)[J]=el(r,""),yq(r,X)[X]=es(r,""),r._onKeyDown=function(e){if(!e.metaKey&&!e.altKey)if(e.keyCode!==yZ.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}n(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(yK.ARIA_LIVE)||this.setAttribute(yK.ARIA_LIVE,"polite"),this.hasAttribute(yK.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?yh(fp(),yG(this._template)):yh(fd(),fh(this._linkRef),this.href,this.target,this._onKeyDown,this._onClick,this.renderLinkContent())},r.renderLinkContent=function(){return yh(fy())},r.handleClick=function(){},f(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?this._disable():this._enable()}},{key:"href",get:function(){return yq(this,J)[J]},set:function(e){yq(this,J)[J]=e}},{key:"target",get:function(){return yq(this,X)[X]},set:function(e){yq(this,X)[X]=e}}]),t}(yP),el=(ep=(eh=a(ee,[[ei,4,"disabled"],[ea,1,"href"],[eo,1,"target"]],[er],yP)).e)[0],es=ep[1],eu=ep[2],ec=(ed=eh.c)[0],en=ed[1],et);var fv=function(e){function t(e){var r;if(d(this,t),(r=p(this,t,[e])).it=yd,2!==e.type)throw Error(r.constructor.directiveName+"() can only be used in child bindings");return r}return n(t,e),f(t,[{key:"render",value:function(e){if(e===yd||null==e)return this._t=void 0,this.it=e;if(e===yp)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}(yV);fv.directiveName="unsafeHTML",fv.resultType=1;var f_=function(e){function t(){return d(this,t),p(this,t,arguments)}return n(t,e),t}(fv);f_.directiveName="unsafeSVG",f_.resultType=2;var fg=yH(f_);function fb(){var e=i([":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 fb=function(){return e},e}var fm=dD(fb());function fk(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 fw(){var e=i([":host{display:contents}::slotted(:not([no-auto-hide])),slot{opacity:inherit}"]);return fw=function(){return e},e}var fx=dD(fw());function fT(){var e=i(["<slot></slot>"]);return fT=function(){return e},e}function fA(){}function fE(e){return e.nodeType===Node.ELEMENT_NODE}function fS(e){return x(e,HTMLElement)}ev=yO("theoplayer-slot-container"),new(ef=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[fx],e_(),t}return n(t,e),t}(o),ey=function(e){function t(){return e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return yh(fT())},t}(yP),eg=(eb=a(ey,[],[ev],yP).c)[0],e_=eb[1],ef);var fL="function"==typeof Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},fC="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){return Array.prototype.slice.call(e)},fP="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]},fR="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},fO="function"==typeof String.prototype.startsWith?function(e,t){return e.startsWith(t)}:function(e,t){return e.substring(0,t.length)===t};function fM(e,t,r){r?e.setAttribute(t,""):e.removeAttribute(t)}function fN(e){if(e.shadowRoot)return e.shadowRoot.children;if("slot"===e.localName.toLowerCase()){var t=e.assignedNodes();if(t.length>0)return t.filter(fE)}return fS(e)?e.children:[]}function fB(e){for(var t,r=[],n=fk(e.assignedNodes({flatten:!0}));!(t=n()).done;){var i=t.value;fE(i)&&(r.push(i),"theoplayer-slot-container"===i.nodeName.toLowerCase())&&r.push.apply(r,[].concat(fC(i.children)))}return r}function fI(e){var t=[];return function e(t,r){if(fS(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=fN(t),i=0;i<n.length;i++)e(n[i],r)}}}(e,t),t}function fD(e){var t=e.nodeName.toLowerCase();if(t.indexOf("-")>=0)if(!customElements.get(t))return customElements.whenDefined(t);else customElements.upgrade(e)}function f$(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?f$(i,t):null}var fF="theoplayerUiObservedProperties";function fU(e){return fF in e&&fL(e[fF])}var fq=function(e){return function(t,r){Object.defineProperty(t.prototype,fF,{value:e})}};function fj(e,t){var r,i,o=fq(t),l=function(e){function t(){return e.apply(this,arguments)||this}return n(t,e),t}(e);return r=(i=a(l,[],[o],e).c)[0],(0,i[1])(),r}function fz(e,t,r){return s(function(){var n;return w(this,function(i){switch(i.label){case 0:if(t.contains(e))return[2];if(!(e.nodeName.indexOf("-")>=0&&!fU(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(fU(e)&&r(e),!((n=fN(e)).length>0))return[3,5];return[4,Promise.all(fC(n).map(function(e){return fz(e,t,r)}))];case 4:i.sent(),i.label=5;case 5:return[2]}})})()}function fH(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?fG:fV}}function fV(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 fG(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 fQ(e){try{var t=new Intl.NumberFormat(e,{style:"percent"});return function(e){return t.format(e)}}catch(e){return fW}}function fW(e){return""+Math.round(100*e)+"%"}function fK(e){try{var r={style:"unit",unitDisplay:"narrow"},n=new Intl.NumberFormat(e,t({},r,{unit:"kilobit-per-second",maximumFractionDigits:0})),i=new Intl.NumberFormat(e,t({},r,{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 fZ}}function fZ(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 fY(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",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:fH("en","long"),formatNarrowDuration:fH("en","narrow"),formatRemainingDuration:function(e){return""+e+" remaining"},formatPercentage:fQ("en"),formatBandwidth:fK("en"),formatLanguage:fY("en")},fX={};function f0(e){var t;return null!=(t=fX[e])?t:fJ}function f1(e,r){var n,i,a,o,l;fX[e]=t({},fJ,r,{fontFamilyLabels:t({},fJ.fontFamilyLabels,r.fontFamilyLabels),colorLabels:t({},fJ.colorLabels,r.colorLabels),edgeStyleLabels:t({},fJ.edgeStyleLabels,r.edgeStyleLabels),formatDuration:null!=(n=r.formatDuration)?n:fH(e,"long"),formatNarrowDuration:null!=(i=r.formatNarrowDuration)?i:fH(e,"narrow"),formatPercentage:null!=(a=r.formatPercentage)?a:fQ(e),formatBandwidth:null!=(o=r.formatBandwidth)?o:fK(e),formatLanguage:null!=(l=r.formatLanguage)?l:fY(e)})}function f2(){var e=i(['<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 f2=function(){return e},e}var f5=["seeking","seeked","ended","emptied","sourcechange"];function f3(){var e=i([":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 f3=function(){return e},e}eA=yO("theoplayer-play-button"),eE=fq(["player","lang"]),eL=yB({reflect:!0,state:!0,type:Boolean,attribute:yK.PAUSED}),eC=yB({reflect:!0,state:!0,type:Boolean,attribute:yK.ENDED}),eP=yB({reflect:!0,type:String,attribute:yK.LANG}),new(eT=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(W.styles,[fm]),eS(),t}return n(t,e),t}(o),em=yz("____private_paused_1"),ek=yz("____private_ended_2"),ew=yz("____private_lang_3"),ex=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,em,{writable:!0,value:void 0}),Object.defineProperty(t,ek,{writable:!0,value:void 0}),Object.defineProperty(t,ew,{writable:!0,value:void 0}),yq(t,em)[em]=(eN(t),eR(t,!1)),yq(t,ek)[ek]=eO(t,!1),yq(t,ew)[ew]=eM(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}n(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=f0(this.lang);this.ariaLabel=this.ended?e.replayAria:this.paused?e.playAria:e.pauseAria},r.render=function(){return yh(f2(),fg('<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'),fg('<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'),fg('<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'))},f(t,[{key:"paused",get:function(){return yq(this,em)[em]},set:function(e){yq(this,em)[em]=e}},{key:"ended",get:function(){return yq(this,ek)[ek]},set:function(e){yq(this,ek)[ek]=e}},{key:"lang",get:function(){return yq(this,ew)[ew]},set:function(e){yq(this,ew)[ew]=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(f5,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(f5,this._updateFromPlayer)))}}]),t}(W),eR=(eD=(eI=a(ex,[[eL,1,"paused"],[eC,1,"ended"],[eP,1,"lang"]],[eA,eE],W)).e)[0],eO=eD[1],eM=eD[2],eN=eD[3],eB=(e$=eI.c)[0],eS=e$[1],eT);var f4=dD(f3());function f8(){var e=i(['<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 f8=function(){return e},e}var f7=["volumechange"];function f6(){var e=i([':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 f6=function(){return e},e}ez=yO("theoplayer-mute-button"),eH=fq(["player","lang"]),eG=yB({reflect:!0,state:!0,type:String,attribute:yK.VOLUME_LEVEL}),eQ=yB({reflect:!0,type:String,attribute:yK.LANG}),eW=yB({reflect:!1,attribute:!1}),new(ej=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(W.styles,[f4]),eV(),t}return n(t,e),t}(o),eF=yz("____private_volumeLevel_1"),eU=yz("____private_lang_2"),eq=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,eF,{writable:!0,value:void 0}),Object.defineProperty(t,eU,{writable:!0,value:void 0}),yq(t,eF)[eF]=(eY(t),eK(t,"off")),yq(t,eU)[eU]=eZ(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}n(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=f0(this.lang);this.ariaLabel="off"===this.volumeLevel?e.unmuteAria:e.muteAria},r.render=function(){return yh(f8(),fg('<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'),fg('<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'),fg('<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'))},f(t,[{key:"volumeLevel",get:function(){return yq(this,eF)[eF]},set:function(e){yq(this,eF)[eF]=e}},{key:"lang",get:function(){return yq(this,eU)[eU]},set:function(e){yq(this,eU)[eU]=e}},{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))}}]),t}(W),eK=(e0=(eX=a(eq,[[eG,1,"volumeLevel"],[eQ,1,"lang"],[eW,4,"player"]],[ez,eH],W)).e)[0],eZ=e0[1],eY=e0[2],eJ=(e1=eX.c)[0],eV=e1[1],ej);var f9=dD(f6());function ve(e){return!isNaN(e)&&isFinite(e)}function vt(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(ve(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 vr(e){return{hours:Math.floor(e/3600),minutes:Math.floor(e/60)%60,seconds:Math.floor(e%60)}}function vn(e,t,r){if(!ve(t))return"";var n=t<0||r&&0===t,i=e.formatDuration(vr(Math.abs(t)));return n?e.formatRemainingDuration(i):i}function vi(){var e=i(['<span part="icon"><slot name="icon">','</slot></span><span part="offset">',"</span>"]);return vi=function(){return e},e}function va(){var e=i([":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 va=function(){return e},e}e8=yO("theoplayer-seek-button"),e7=fq(["player","lang"]),e9=yB({reflect:!0,type:Number,attribute:yK.SEEK_OFFSET}),te=yB({reflect:!0,type:String,attribute:yK.LANG}),tt=yB({reflect:!1,attribute:!1}),new(e4=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(W.styles,[f9]),e6(),t}return n(t,e),t}(o),e2=yz("____private_seekOffset_1"),e5=yz("____private_lang_2"),e3=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,e2,{writable:!0,value:void 0}),Object.defineProperty(t,e5,{writable:!0,value:void 0}),yq(t,e2)[e2]=(ti(t),tr(t,10)),yq(t,e5)[e5]=tn(t,""),t}n(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=f0(this.lang),t=this.seekOffset,r=e.formatDuration(vr(Math.abs(t)));this.ariaLabel=t>=0?e.seekForwardAria(r):e.seekBackwardAria(r)},r.render=function(){return yh(vi(),fg('<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)))},f(t,[{key:"seekOffset",get:function(){return yq(this,e2)[e2]},set:function(e){yq(this,e2)[e2]=e}},{key:"lang",get:function(){return yq(this,e5)[e5]},set:function(e){yq(this,e5)[e5]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player=e}}]),t}(W),tr=(tl=(to=a(e3,[[e9,1,"seekOffset"],[te,1,"lang"],[tt,4,"player"]],[e8,e7],W)).e)[0],tn=tl[1],ti=tl[2],ta=(ts=to.c)[0],e6=ts[1],e4);var vo=dD(va());function vl(){var e=i(["<span>","</span>"]);return vl=function(){return e},e}var vs=["timeupdate","seeking","seeked","durationchange"];function vu(){var e=i(["<span>","</span>"]);return vu=function(){return e},e}tb=yO("theoplayer-time-display"),tm=fq(["player","streamType","lang"]),tw=yB({reflect:!1,attribute:!1}),tx=yB({reflect:!0,type:Boolean,attribute:yK.REMAINING}),tT=yB({reflect:!0,type:Boolean,attribute:yK.REMAINING_WHEN_LIVE}),tA=yB({reflect:!0,type:Boolean,attribute:yK.SHOW_DURATION}),tE=yB({reflect:!0,type:String,attribute:yK.STREAM_TYPE}),tS=yB({reflect:!0,type:String,attribute:yK.LANG}),tL=yI(),tC=yI(),tP=yI(),new(tg=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vo],tk(),t}return n(t,e),t}(o),tu=yz("____private_remaining_1"),tc=yz("____private_remainingWhenLive_2"),th=yz("____private_showDuration_3"),tp=yz("____private_streamType_4"),td=yz("____private_lang_5"),ty=yz("____private__currentTime_6"),tf=yz("____private__duration_7"),tv=yz("____private__endTime_8"),t_=function(e){function t(){var t;return t=e.apply(this,arguments)||this,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,tp,{writable:!0,value:void 0}),Object.defineProperty(t,td,{writable:!0,value:void 0}),Object.defineProperty(t,ty,{writable:!0,value:void 0}),Object.defineProperty(t,tf,{writable:!0,value:void 0}),Object.defineProperty(t,tv,{writable:!0,value:void 0}),yq(t,tu)[tu]=(tF(t),tR(t,!1)),yq(t,tc)[tc]=tO(t,!1),yq(t,th)[th]=tM(t,!1),yq(t,tp)[tp]=tN(t,"vod"),yq(t,td)[td]=tB(t,""),yq(t,ty)[ty]=tI(t,0),yq(t,tf)[tf]=tD(t,NaN),yq(t,tv)[tv]=t$(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}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","progressbar"),this.hasAttribute(yK.ARIA_LIVE)||this.setAttribute(yK.ARIA_LIVE,"off")},r.render=function(){var e,t,r=f0(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?vt(i,a,n)+" / "+vt(a):vt(i,a,n),t=isNaN(this._duration)?r.unknownTimeAria:this.showDuration?r.timeOfTotalAria(vn(r,i,n),vn(r,a)):vn(r,i,n),this.setAttribute("aria-label",r.playbackTimeAria),this.setAttribute("aria-valuetext",t),yh(vl(),e)},f(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(vs,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(vs,this._updateFromPlayer))}},{key:"remaining",get:function(){return yq(this,tu)[tu]},set:function(e){yq(this,tu)[tu]=e}},{key:"remainingWhenLive",get:function(){return yq(this,tc)[tc]},set:function(e){yq(this,tc)[tc]=e}},{key:"showDuration",get:function(){return yq(this,th)[th]},set:function(e){yq(this,th)[th]=e}},{key:"streamType",get:function(){return yq(this,tp)[tp]},set:function(e){yq(this,tp)[tp]=e}},{key:"lang",get:function(){return yq(this,td)[td]},set:function(e){yq(this,td)[td]=e}},{key:"_currentTime",get:function(){return yq(this,ty)[ty]},set:function(e){yq(this,ty)[ty]=e}},{key:"_duration",get:function(){return yq(this,tf)[tf]},set:function(e){yq(this,tf)[tf]=e}},{key:"_endTime",get:function(){return yq(this,tv)[tv]},set:function(e){yq(this,tv)[tv]=e}}]),t}(yP),tR=(tj=(tq=a(t_,[[tw,4,"player"],[tx,1,"remaining"],[tT,1,"remainingWhenLive"],[tA,1,"showDuration"],[tE,1,"streamType"],[tS,1,"lang"],[tL,1,"_currentTime"],[tC,1,"_duration"],[tP,1,"_endTime"]],[tb,tm],yP)).e)[0],tO=tj[1],tM=tj[2],tN=tj[3],tB=tj[4],tI=tj[5],tD=tj[6],t$=tj[7],tF=tj[8],tU=(tz=tq.c)[0],tk=tz[1],tg);var vc=["durationchange"];tQ=yO("theoplayer-duration-display"),tW=fq(["player"]),tZ=yB({reflect:!1,attribute:!1}),tY=yI(),new(tG=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vo],tK(),t}return n(t,e),t}(o),tH=yz("____private_duration_1"),tV=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tH,{writable:!0,value:void 0}),yq(t,tH)[tH]=(tX(t),tJ(t,NaN)),t._updateFromPlayer=function(){t.duration=t._player?t._player.duration:NaN},t}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(yK.ARIA_LIVE)||this.setAttribute(yK.ARIA_LIVE,"off")},r.render=function(){return yh(vu(),vt(this.duration))},f(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(vc,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(vc,this._updateFromPlayer))}},{key:"duration",get:function(){return yq(this,tH)[tH]},set:function(e){yq(this,tH)[tH]=e}}]),t}(yP),tJ=(t2=(t1=a(tV,[[tZ,4,"player"],[tY,1,"duration"]],[tQ,tW],yP)).e)[0],tX=t2[1],t0=(t5=t1.c)[0],tK=t5[1],tG);var vh=!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)},vp=!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)};t3=yO("theoplayer-radio-button"),t4=yB({reflect:!0,type:Boolean,attribute:yK.ARIA_CHECKED,converter:{fromAttribute:function(e){return null!=e&&"false"!==e},toAttribute:function(e){return String(e)}}}),t8=yB({attribute:yK.VALUE});var vd=yz("____private_value_1"),vy=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,vd,{writable:!0,value:void 0}),t6(t),t._checked=!1,yq(t,vd)[vd]=t7(t,void 0),t}n(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(vh("input",{bubbles:!0,composed:!0}))},r.handleChange=function(){},f(t,[{key:"checked",get:function(){return this._checked},set:function(e){this._checked!==e&&(this._checked=e,this.handleChange(),this.dispatchEvent(vh("change",{bubbles:!0})))}},{key:"value",get:function(){return yq(this,vd)[vd]},set:function(e){yq(this,vd)[vd]=e}}]),t}(W);t7=(rt=(re=a(vy,[[t4,4,"checked"],[t8,1,"value"]],[t3],W)).e)[0],t6=rt[1],t9=(rr=re.c)[0],(0,rr[1])();var vf=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)},f(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 vv(){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&&fS(e)?e:null}function v_(e,t,r){var n,i,a,o=vv();if(null===o)return!1;var l=vf.fromRect(e.getBoundingClientRect()).snapToPixels(),s=vf.fromRect(o.getBoundingClientRect()).snapToPixels(),u=t.map(function(e){return{child:e,rect:vf.fromRect(e.getBoundingClientRect()).snapToPixels()}}).filter(function(e){return e.rect.width>0&&e.rect.height>0});if(r===yZ.LEFT||r===yZ.RIGHT){var c=s.clone();r===yZ.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===yZ.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 p=(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!==p&&(p.child.focus(),!0)}function vg(){var e=i(["<slot ",' @slotchange="','"></slot>']);return vg=function(){return e},e}rn=yO("theoplayer-radio-group"),ri=fq(["deviceType"]),ra=yB({reflect:!0,type:String,attribute:yK.DEVICE_TYPE}),ro=yB({attribute:yK.VALUE});var vb=yz("____private_deviceType_1"),vm=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,vb,{writable:!0,value:void 0}),rs(t),t._slotRef=fs(),t._radioButtons=[],t._value=void 0,yq(t,vb)[vb]=rl(t,"desktop"),t._onSlotChange=function(){var e,r=t._slotRef.value;if(r){for(var n,i=fB(r),a=[],o=fk(i);!(n=o()).done;){var l=n.value;if(!vk(l)){var s=fD(l);s&&a.push(s)}}a.length>0&&Promise.all(a).then(t._onSlotChange,fA),t._radioButtons=i.filter(vk),t.focusedRadioButton||null==(e=t.firstRadioButton)||e.setAttribute("tabindex","0"),t.updateCheckedButton()}},t._onKeyDown=function(e){if("tv"===t.deviceType&&yY(e.keyCode)){v_(t,t._radioButtons,e.keyCode)&&(e.preventDefault(),e.stopPropagation());return}switch(e.keyCode){case yZ.UP:case yZ.LEFT:t._focusPrevButton()&&e.preventDefault();break;case yZ.DOWN:case yZ.RIGHT:t._focusNextButton()&&e.preventDefault();break;case yZ.HOME:e.preventDefault(),t.setFocusedRadioButton(t.firstRadioButton);break;case yZ.END:e.preventDefault(),t.setFocusedRadioButton(t.lastRadioButton)}},t._onButtonChange=function(e){var r=e.target;null!==r&&r.checked&&(t.value=r.value)},t}n(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=fk(this.allRadioButtons());!(e=t()).done;)e.value.tabIndex=-1},r.setCheckedRadioButton=function(e){for(var t,r=fk(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 yh(vg(),fh(this._slotRef),this._onSlotChange)},f(t,[{key:"deviceType",get:function(){return yq(this,vb)[vb]},set:function(e){yq(this,vb)[vb]=e}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this.updateCheckedButton(),this.dispatchEvent(vh("change",{bubbles:!0})))}},{key:"focusedRadioButton",get:function(){var e;return null!=(e=fP(this._radioButtons,function(e){return 0===e.tabIndex}))?e:null}},{key:"checkedRadioButton",get:function(){var e;return null!=(e=fP(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}(yP);function vk(e){return x(e,t9)}function vw(){var e=i([":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 vw=function(){return e},e}rl=(rh=(rc=a(vm,[[ra,1,"deviceType"],[ro,4,"value"]],[rn,ri],yP)).e)[0],rs=rh[1],ru=(rp=rc.c)[0],(0,rp[1])();var vx=dD(vw()),vT="theoplayermenuclose",vA="theoplayermenuchange";function vE(){var e=i(["",""]);return vE=function(){return e},e}function vS(){var e=i(['<div part="heading"><theoplayer-menu-close-button></theoplayer-menu-close-button>','</div><div part="content" @input="','">',"</div>"]);return vS=function(){return e},e}function vL(){var e=i(['<slot name="heading"></slot>']);return vL=function(){return e},e}function vC(){var e=i(["<slot></slot>"]);return vC=function(){return e},e}function vP(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>"}function vR(){var e=i([":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 vR=function(){return e},e}rv=yO("theoplayer-menu"),rg=yB({reflect:!0,type:Boolean,attribute:yK.MENU_CLOSE_ON_INPUT}),rb=yB({reflect:!0,state:!0,type:Boolean,attribute:yK.MENU_OPENED}),new(rf=function(e){function r(){var r;return r=e.apply(this,arguments)||this,r.styles=[vx],r.shadowRootOptions=t({},yP.shadowRootOptions,{delegatesFocus:!0}),r_(),r}return n(r,e),r}(o),rd=yz("____private_closeOnInput_1"),ry=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,rd,{writable:!0,value:void 0}),rk(r),r._menuOpened=!1,yq(r,rd)[rd]=rm(r,!1),r._onContentInput=function(){if(r.closeOnInput){var e=vp(vT,{bubbles:!0,composed:!0});r.dispatchEvent(e)}},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.menuOpened_||this.setAttribute(yK.HIDDEN,"")},r.openMenu=function(){this.menuOpened_=!0},r.closeMenu=function(){this.menuOpened_=!1},r.render=function(){return this._template?yh(vE(),yG(this._template)):yh(vS(),this.renderMenuHeading(),this._onContentInput,this.renderMenuContent())},r.renderMenuHeading=function(){return yh(vL())},r.renderMenuContent=function(){return yh(vC())},f(t,[{key:"closeOnInput",get:function(){return yq(this,rd)[rd]},set:function(e){yq(this,rd)[rd]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){if(this._menuOpened!==e){this._menuOpened=e,fM(this,yK.HIDDEN,!e);var t=vp(vA,{bubbles:!0});this.dispatchEvent(t)}}}]),t}(yP),rm=(rT=(rx=a(ry,[[rg,1,"closeOnInput"],[rb,4,"menuOpened_"]],[rv],yP)).e)[0],rk=rT[1],rw=(rA=rx.c)[0],r_=rA[1],rf);var vO=dD(vR()),vM="theoplayermenutoggle";function vN(){var e=i(["",""]);return vN=function(){return e},e}function vB(){var e=i(['<slot @slotchange="','"></slot>']);return vB=function(){return e},e}function vI(e,t){return void 0===t&&(t=""),"<style>"+t+"</style>"+e}function vD(e){return!!fS(e)&&(x(e,rw)||x(e,rN))}rC=yO("theoplayer-menu-group"),rR=yB({reflect:!0,state:!0,type:Boolean,attribute:yK.MENU_OPENED}),new(rL=function(e){function r(){var r;return r=e.apply(this,arguments)||this,r.styles=[vO],r.shadowRootOptions=t({},yP.shadowRootOptions,{delegatesFocus:!0}),rP(),r}return n(r,e),r}(o),rE=yz("____private__menuSlot_1"),rS=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,rE,{writable:!0,value:void 0}),rM(r),r._menuOpened=!1,yq(r,rE)[rE]=rO(r,null),r._menus=[],r._openMenuStack=[],r._onMenuListChange=function(){for(var e,t=[].concat(fC(r.shadowRoot.children),r._menuSlot?fB(r._menuSlot):[]),n=[],i=fk(t);!(e=i()).done;){var a=e.value;if(!vD(a)){var o=fD(a);o&&n.push(o)}}n.length>0&&Promise.all(n).then(r._onMenuListChange,fA);for(var l,s=t.filter(vD),u=fk(r._menus);!(l=u()).done;){var c=l.value;0>s.indexOf(c)&&r.closeMenu(c.id)}for(var h,p=fk(s);!(h=p()).done;){var d=h.value;0>r._menus.indexOf(d)&&d.closeMenu()}r._menus=s},r._onToggleMenu=function(e){var t=e.detail.menu;if(r.getMenuById(t)){e.stopPropagation();var n=fS(e.target)?e.target:void 0;r.isMenuOpen(t)?r.closeMenu(t):r.openMenu(t,n)}},r._onCloseMenu=function(e){r.closeCurrentMenu()&&(e.preventDefault(),e.stopPropagation())},r._onMenuChange=function(e){var t=r.getCurrentMenu_();t&&t.menu===e.target&&x(t.menu,rN)&&!t.menu.hasCurrentMenu()&&r.closeCurrentMenu()},r._onKeyDown=function(e){!e.altKey&&yJ(e.keyCode)&&r.closeCurrentMenu()&&(e.preventDefault(),e.stopPropagation())},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.menuOpened_||this.setAttribute(yK.HIDDEN,"")},r.createRenderRoot=function(){var t=e.prototype.createRenderRoot.call(this);return t.addEventListener(vM,this._onToggleMenu),t.addEventListener(vT,this._onCloseMenu),t.addEventListener(vA,this._onMenuChange),t},r.render=function(){return this._template?yh(vN(),yG(this._template)):yh(vB(),this._onMenuListChange)},r.firstUpdated=function(){this._onMenuListChange()},r.getMenuById=function(e){return e&&e!==this.id?fP(this._menus,function(t){return t.id===e}):this},r.openMenu=function(e,t){var r=this.getMenuById(e);if(r===this&&(r=this._menus[0]),!r)return!1;var n=this.getCurrentMenu_(),i=fR(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},r.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=fR(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},r.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)},r.hasCurrentMenu=function(){return this._openMenuStack.length>0},r.getCurrentMenu_=function(){return this._openMenuStack.length>0?this._openMenuStack[this._openMenuStack.length-1]:void 0},r.closeCurrentMenu=function(){var e=this.getCurrentMenu_();return void 0!==e&&(this.closeMenu(e.menu.id),!0)},r.isMenuOpen=function(e){var t=this.getMenuById(e);return!!t&&this._openMenuStack.some(function(e){return e.menu===t})},f(t,[{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){if(this._menuOpened!==e){this._menuOpened=e,fM(this,yK.MENU_OPENED,e),e?(this.removeAttribute(yK.HIDDEN),this.removeEventListener("keydown",this._onKeyDown),this.addEventListener("keydown",this._onKeyDown)):(this.setAttribute(yK.HIDDEN,""),this.removeEventListener("keydown",this._onKeyDown));var t=vp(vA,{bubbles:!0});this.dispatchEvent(t)}}},{key:"_menuSlot",get:function(){return yq(this,rE)[rE]},set:function(e){yq(this,rE)[rE]=e}}]),t}(yP),rO=(rI=(rB=a(rS,[[rR,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 yD(e,t,{get:function(){return n(this)}})},1,"_menuSlot"]],[rC],yP)).e)[0],rM=rI[1],rN=(rD=rB.c)[0],rP=rD[1],rL),r$=yO("theoplayer-menu-button"),rF=yB({reflect:!0,type:String,attribute:yK.MENU}),rU=yB({reflect:!0,state:!0,type:String,attribute:"aria-controls"});var v$=yz("____private__ariaControls_1"),vF=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,v$,{writable:!0,value:void 0}),rj(t),t._menuId=null,yq(t,v$)[v$]=rq(t,null),t}n(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=vp(vM,{bubbles:!0,composed:!0,detail:{menu:e}});this.dispatchEvent(t)}},f(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 yq(this,v$)[v$]},set:function(e){yq(this,v$)[v$]=e}}]),t}(W);function vU(){var e=i(['<span part="icon"><slot>',"</slot></span>"]);return vU=function(){return e},e}rq=(rV=(rH=a(vF,[[rF,4,"menu"],[rU,1,"_ariaControls"]],[r$],W)).e)[0],rj=rV[1],rz=(rG=rH.c)[0],(0,rG[1])(),rQ=yO("theoplayer-menu-close-button"),rW=fq(["lang"]),rK=yB({reflect:!0,type:String,attribute:yK.LANG});var vq=yz("____private_lang_1"),vj=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,vq,{writable:!0,value:void 0}),yq(t,vq)[vq]=(rY(t),rZ(t,"")),t}n(t,e);var r=t.prototype;return r.handleClick=function(){var e=vp(vT,{bubbles:!0,composed:!0});this.dispatchEvent(e)},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=f0(this.lang);this.ariaLabel=e.closeMenuAria},r.render=function(){return yh(vU(),fg('<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'))},f(t,[{key:"lang",get:function(){return yq(this,vq)[vq]},set:function(e){yq(this,vq)[vq]=e}}]),t}(W);function vz(){var e=i(["<slot>","</slot>"]);return vz=function(){return e},e}rZ=(r0=(rX=a(vj,[[rK,1,"lang"]],[rQ,rW],W)).e)[0],rY=r0[1],rJ=(r1=rX.c)[0],(0,r1[1])();var vH=["change","update"];r2=yO("theoplayer-media-track-radio-button"),r5=fq(["lang"]),r3=yI(),r4=yB({reflect:!0,type:String,attribute:yK.LANG}),r8=yB({reflect:!1,attribute:!1});var vV=yz("____private__track_1"),vG=yz("____private_lang_2"),vQ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,vV,{writable:!0,value:void 0}),Object.defineProperty(t,vG,{writable:!0,value:void 0}),yq(t,vV)[vV]=(r9(t),r7(t,void 0)),yq(t,vG)[vG]=r6(t,""),t._onTrackChange=function(){t._updateFromTrack()},t}n(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=f0(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 yh(vz(),t)},f(t,[{key:"_track",get:function(){return yq(this,vV)[vV]},set:function(e){yq(this,vV)[vV]=e}},{key:"lang",get:function(){return yq(this,vG)[vG]},set:function(e){yq(this,vG)[vG]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(vH,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(vH,this._onTrackChange))}}]),t}(t9);function vW(){var e=i([":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 vW=function(){return e},e}r7=(nr=(nt=a(vQ,[[r3,1,"_track"],[r4,1,"lang"],[r8,4,"track"]],[r2,r5],t9)).e)[0],r6=nr[1],r9=nr[2],ne=(nn=nt.c)[0],(0,nn[1])();var vK=dD(vW());function vZ(e){return"subtitles"===e.kind||"captions"===e.kind}function vY(e){return vZ(e)&&!e.forced}function vJ(e){var t=null==e?void 0:e.targetQuality;return void 0===t||Array.isArray(t)||(t=[t]),t}function vX(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 v0=function(e,t,r){for(var n=new Map,i=t;i<=r;i++)n.set(e[i],i);return n},v1=yH(function(e){function t(e){var r;if(d(this,t),r=p(this,t,[e]),2!==e.type)throw Error("repeat() can only be used in text expressions");return r}return n(t,e),f(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 p=c.value;n[a]=u?u(p,a):a,i[a]=r(p,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=g(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,p,d,y=null!=(h=this.ut)?h:this.ut=[],f=[],v=0,_=l.length-1,b=0,m=u.length-1;v<=_&&b<=m;)if(null===l[v])v++;else if(null===l[_])_--;else if(y[v]===c[b])f[b]=y6(l[v],u[b]),v++,b++;else if(y[_]===c[m])f[m]=y6(l[_],u[m]),_--,m--;else if(y[v]===c[m])f[m]=y6(l[v],u[m]),y7(e,f[m+1],l[v]),v++,m--;else if(y[_]===c[b])f[b]=y6(l[_],u[b]),y7(e,l[v],l[_]),_--,b++;else if(void 0===p&&(p=v0(c,b,m),d=v0(y,v,_)),p.has(y[v]))if(p.has(y[_])){var k=d.get(c[b]),w=void 0!==k?l[k]:null;if(null===w){var x=y7(e,l[v]);y6(x,u[b]),f[b]=x}else f[b]=y6(w,u[b]),y7(e,l[v],w),l[k]=null;b++}else fe(l[_]),_--;else fe(l[v]),v++;for(;b<=m;){var T=y7(e,f[m+1]);y6(T,u[b]),f[b++]=T}for(;v<=_;){var A=l[v++];null!==A&&fe(A)}return this.ut=c,void 0===(r=f)&&(r=y9),e._$AH=r,yp}}]),t}(yV));function v2(){var e=i(['<theoplayer-text-track-off-radio-button .trackList="','" lang="','"></theoplayer-text-track-off-radio-button>']);return v2=function(){return e},e}function v5(){var e=i(['<theoplayer-text-track-radio-button .track="','" lang="','"></theoplayer-text-track-radio-button>']);return v5=function(){return e},e}function v3(){var e=i(['<theoplayer-media-track-radio-button .track="','" lang="','"></theoplayer-media-track-radio-button>']);return v3=function(){return e},e}function v4(){var e=i(['<theoplayer-radio-group @change="','">'," ","</theoplayer-radio-group>"]);return v4=function(){return e},e}var v8=["addtrack","removetrack"];function v7(){var e=i(["<slot>","</slot>"]);return v7=function(){return e},e}nu=yO("theoplayer-track-radio-group"),nc=fq(["player","lang"]),np=yI(),nd=yB({reflect:!0,type:String,attribute:yK.TRACK_TYPE}),ny=yB({reflect:!0,type:Boolean,attribute:yK.SHOW_OFF}),nf=yB({reflect:!0,type:String,attribute:yK.LANG}),new(ns=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vK],nh(),t}return n(t,e),t}(o),ni=yz("____private__tracksList_1"),na=yz("____private_showOffButton_2"),no=yz("____private_lang_3"),nl=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ni,{writable:!0,value:void 0}),Object.defineProperty(t,na,{writable:!0,value:void 0}),Object.defineProperty(t,no,{writable:!0,value:void 0}),nb(t),t._trackType="audio",yq(t,ni)[ni]=nv(t),yq(t,na)[na]=n_(t,!1),yq(t,no)[no]=ng(t,""),t._updateTracks=function(){return t.requestUpdate()},t._onChange=function(){t.dispatchEvent(vh("change",{bubbles:!0}))},t}n(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(v8,this._updateTracks),null==t||t.addEventListener(v8,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(vY):[]},r.render=function(){var e=this,t=this._getTracks(),r="subtitles"===this.trackType;return yh(v4(),this._onChange,this.showOffButton&&r?yh(v2(),this._tracksList,this.lang):void 0,v1(t,function(e){return e.uid},function(t){return r?yh(v5(),t,e.lang):yh(v3(),t,e.lang)}))},f(t,[{key:"_tracksList",get:function(){return yq(this,ni)[ni]},set:function(e){yq(this,ni)[ni]=e}},{key:"trackType",get:function(){return this._trackType},set:function(e){this._trackType=e,this._updateTracksList()}},{key:"showOffButton",get:function(){return yq(this,na)[na]},set:function(e){yq(this,na)[na]=e}},{key:"lang",get:function(){return yq(this,no)[no]},set:function(e){yq(this,no)[no]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(this._player=e,this._updateTracksList(),this._updateTracks())}}]),t}(yP),nv=(nw=(nk=a(nl,[[np,1,"_tracksList"],[nd,4,"trackType"],[ny,1,"showOffButton"],[nf,1,"lang"]],[nu,nc],yP)).e)[0],n_=nw[1],ng=nw[2],nb=nw[3],nm=(nx=nk.c)[0],nh=nx[1],ns);var v6=["change","update"];nT=yO("theoplayer-text-track-radio-button"),nA=fq(["lang"]),nE=yI(),nS=yB({reflect:!0,type:String,attribute:yK.LANG}),nL=yB({reflect:!1,attribute:!1});var v9=yz("____private__track_1"),_e=yz("____private_lang_2"),_t=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,v9,{writable:!0,value:void 0}),Object.defineProperty(t,_e,{writable:!0,value:void 0}),yq(t,v9)[v9]=(nR(t),nC(t,void 0)),yq(t,_e)[_e]=nP(t,""),t._onTrackChange=function(){t._updateFromTrack()},t}n(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=f0(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 yh(v7(),t)},f(t,[{key:"_track",get:function(){return yq(this,v9)[v9]},set:function(e){yq(this,v9)[v9]=e}},{key:"lang",get:function(){return yq(this,_e)[_e]},set:function(e){yq(this,_e)[_e]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(v6,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(v6,this._onTrackChange))}}]),t}(t9);function _r(){var e=i(["<slot>","</slot>"]);return _r=function(){return e},e}nC=(nN=(nM=a(_t,[[nE,1,"_track"],[nS,1,"lang"],[nL,4,"track"]],[nT,nA],t9)).e)[0],nP=nN[1],nR=nN[2],nO=(nB=nM.c)[0],(0,nB[1])();var _n=["change"];nI=yO("theoplayer-text-track-off-radio-button"),nD=fq(["lang"]),n$=yB({reflect:!0,type:String,attribute:yK.LANG}),nF=yB({reflect:!1,attribute:!1});var _i=yz("____private_lang_1"),_a=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_i,{writable:!0,value:void 0}),yq(t,_i)[_i]=(nq(t),nU(t,"")),t._trackList=void 0,t._onTrackChange=function(){t._updateFromTrackList()},t}n(t,e);var r=t.prototype;return r._updateFromTrackList=function(){this.checked=!this._trackList||!this._trackList.some(function(e){return vY(e)&&"showing"===e.mode})},r._updateTrackList=function(){this._trackList&&this.checked&&function(e){for(var t,r=fk(e);!(t=r()).done;){var n=t.value;vZ(n)&&"showing"===n.mode&&(n.mode="disabled")}}(this._trackList)},r.handleChange=function(){this._updateTrackList()},r.render=function(){var e=f0(this.lang);return yh(_r(),e.subtitleOff)},f(t,[{key:"lang",get:function(){return yq(this,_i)[_i]},set:function(e){yq(this,_i)[_i]=e}},{key:"trackList",get:function(){return this._trackList},set:function(e){this._trackList&&this._trackList.removeEventListener(_n,this._onTrackChange),this._trackList=e,this._updateFromTrackList(),e&&e.addEventListener(_n,this._onTrackChange)}}]),t}(t9);function _o(){var e=i([".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 _o=function(){return e},e}nU=(nH=(nz=a(_a,[[n$,1,"lang"],[nF,4,"trackList"]],[nI,nD],t9)).e)[0],nq=nH[1],nj=(nV=nz.c)[0],(0,nV[1])();var _l=dD(_o());function _s(){var e=i([".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 _s=function(){return e},e}var _u=dD(_s());function _c(){var e=i(["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 _c=function(){return e},e}var _h=dD(_c()),_p=[{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)"}],_d=[{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'}],_y=[.5,.75,1,1.5,2],_f=[.25,.5,.75,1],_v=["none","dropshadow","raised","depressed","uniform"];function __(e){var t,r;return e?fO(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:fO(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 _g(e){return"rgba("+e.r_+","+e.g_+","+e.b_+","+e.a_+")"}function _b(e){return"rgb("+e.r_+","+e.g_+","+e.b_+")"}function _m(e,t){return{r_:e.r_,g_:e.g_,b_:e.b_,a_:t}}var _k=__("#ffffff"),_w=__("#000000");function _x(){var e=i(["<span>","</span>"]);return _x=function(){return e},e}nG=yO("theoplayer-text-track-style-display"),nQ=fq(["player","lang"]),nW=yB({reflect:!0,type:String,attribute:yK.LANG}),nK=yB({reflect:!0,type:String,attribute:yK.PROPERTY}),nZ=yB({reflect:!1,attribute:!1});var _T=yz("____private_lang_1"),_A=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_T,{writable:!0,value:void 0}),yq(t,_T)[_T]=(nJ(t),nY(t,"")),t._property="fontColor",t._updateFromPlayer=function(){return t.requestUpdate()},t}n(t,e);var r=t.prototype;return r.render=function(){var e=f0(this.lang);return yh(_x(),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=fP(_d,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=__(e);if(r){var n,i=_b(r),a=fP(_p,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 _E(this._player.textTrackStyle.fontColor,e);case"backgroundOpacity":return _E(this._player.textTrackStyle.backgroundColor,e);case"windowOpacity":return _E(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}},f(t,[{key:"lang",get:function(){return yq(this,_T)[_T]},set:function(e){yq(this,_T)[_T]=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}(yP);function _E(e,t){if(!e)return t.textTrackStyleDefaultLabel;var r=__(e);return r?t.formatPercentage(r.a_):t.textTrackStyleCustomLabel}function _S(){var e=i(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return _S=function(){return e},e}function _L(e,t,r){var n,i,a,o=null!=(n=null==(i=__(t))?void 0:i.a_)?n:1;if(""!==e||1!==o)return _g(_m(null!=(a=__(e))?a:r,o))}function _C(e,t,r){var n,i=null!=(n=__(t))?n:r;if(""!==e||i.r_!==r.r_||i.g_!==r.g_||i.b_!==r.b_)return _g(_m(i,""==e?1:Number(e)/100))}function _P(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _P=function(){return e},e}function _R(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _R=function(){return e},e}function _O(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _O=function(){return e},e}function _M(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _M=function(){return e},e}function _N(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _N=function(){return e},e}function _B(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _B=function(){return e},e}function _I(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _I=function(){return e},e}function _D(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _D=function(){return e},e}function _$(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _$=function(){return e},e}function _F(){var e=i(['<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 _F=function(){return e},e}function _U(){var e=i(['<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 _U=function(){return e},e}nY=(n1=(n0=a(_A,[[nW,1,"lang"],[nK,4,"property"],[nZ,4,"player"]],[nG,nQ],yP)).e)[0],nJ=n1[1],nX=(n2=n0.c)[0],(0,n2[1])(),n4=yO("theoplayer-text-track-style-radio-group"),n8=fq(["player"]),n6=yB({reflect:!0,type:String,attribute:yK.PROPERTY}),n9=yB({reflect:!1,attribute:!1}),ie=yB({reflect:!1,attribute:!1}),new(n3=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vK],n7(),t}return n(t,e),t}(o),n5=function(e){function t(){var t;return t=e.apply(this,arguments)||this,it(t),t._radioGroupRef=fs(),t._property="fontColor",t._onChange=function(){var e=t._radioGroupRef.value;e&&(t.value=e.value)},t._updateFromPlayer=function(){if(void 0!==t._player)switch(t.property){case"fontColor":var e,r,n=t._player.textTrackStyle.fontColor;t.value=n?_b(null!=(r=__(n))?r:_k):"";break;case"backgroundColor":var i,a=t._player.textTrackStyle.backgroundColor;t.value=a?_b(null!=(i=__(a))?i:_w):"";break;case"windowColor":var o,l=t._player.textTrackStyle.windowColor;t.value=l?_b(null!=(o=__(l))?o:_w):"";break;case"fontOpacity":var s,u,c=t._player.textTrackStyle.fontColor;t.value=c?String((null!=(s=null==(u=__(c))?void 0:u.a_)?s:1)*100):"";break;case"backgroundOpacity":var h,p,d=t._player.textTrackStyle.backgroundColor;t.value=d?String((null!=(h=null==(p=__(d))?void 0:p.a_)?h:1)*100):"";break;case"windowOpacity":var y,f,v=t._player.textTrackStyle.windowColor;t.value=v?String((null!=(y=null==(f=__(v))?void 0:f.a_)?y:1)*100):"";break;default:t.value=null!=(e=t._player.textTrackStyle[t.property])?e:""}},t}n(t,e);var r=t.prototype;return r.firstUpdated=function(){var e=this._radioGroupRef.value;x(e,ru)||customElements.upgrade(e),e.value=this.value},r._updateToPlayer=function(){if(void 0!==this._player)switch(this.property){case"fontColor":this._player.textTrackStyle.fontColor=_L(this.value,this._player.textTrackStyle.fontColor,_k);break;case"backgroundColor":this._player.textTrackStyle.backgroundColor=_L(this.value,this._player.textTrackStyle.backgroundColor,_w);break;case"windowColor":this._player.textTrackStyle.windowColor=_L(this.value,this._player.textTrackStyle.windowColor,_w);break;case"fontOpacity":this._player.textTrackStyle.fontColor=_C(this.value,this._player.textTrackStyle.fontColor,_k);break;case"backgroundOpacity":this._player.textTrackStyle.backgroundColor=_C(this.value,this._player.textTrackStyle.backgroundColor,_w);break;case"windowOpacity":this._player.textTrackStyle.windowColor=_C(this.value,this._player.textTrackStyle.windowColor,_w);break;default:this._player.textTrackStyle[this.property]=""==this.value?void 0:this.value}},r.render=function(){return yh(_S(),fh(this._radioGroupRef),this._onChange)},f(t,[{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(vh("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))}}]),t}(yP),it=(ii=a(n5,[[n6,4,"property"],[n9,4,"value"],[ie,4,"player"]],[n4,n8],yP)).e[0],ir=(ia=ii.c)[0],n7=ia[1],n3),iu=yO("theoplayer-text-track-style-menu"),ic=fq(["lang"]),id=yB({reflect:!0,type:String,attribute:yK.LANG}),new(is=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(rN.styles,[_h,_u]),ih(),t}return n(t,e),t}(o),io=yz("____private_lang_1"),il=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,io,{writable:!0,value:void 0}),yq(t,io)[io]=(iv(t),iy(t,"")),t}return n(t,e),t.prototype.render=function(){var e=f0(this.lang);return yh(_F(),e.textTrackStyleMenuHeading,e.textTrackStyleFontFamily,e.textTrackStyleFontColor,e.textTrackStyleFontOpacity,e.textTrackStyleFontSize,e.textTrackStyleBackgroundColor,e.textTrackStyleBackgroundOpacity,e.textTrackStyleWindowColor,e.textTrackStyleWindowOpacity,e.textTrackStyleEdgeStyle,e.textTrackStyleFontFamily,e.textTrackStyleDefaultLabel,_d.map(function(t){var r,n=t.label,i=t.value;return yh(_P(),i,null!=(r=e.fontFamilyLabels[n])?r:n)}),e.textTrackStyleFontColor,e.textTrackStyleDefaultLabel,_p.map(function(t){var r,n=t.label,i=t.value;return yh(_R(),i,null!=(r=e.colorLabels[n])?r:n)}),e.textTrackStyleFontOpacity,e.textTrackStyleDefaultLabel,_f.map(function(t){return yh(_O(),100*t,e.formatPercentage(t))}),e.textTrackStyleFontSize,e.textTrackStyleDefaultLabel,_y.map(function(t){return yh(_M(),100*t,e.formatPercentage(t))}),e.textTrackStyleBackgroundColor,e.textTrackStyleDefaultLabel,_p.map(function(t){var r,n=t.label,i=t.value;return yh(_N(),i,null!=(r=e.colorLabels[n])?r:n)}),e.textTrackStyleBackgroundOpacity,e.textTrackStyleDefaultLabel,_f.map(function(t){return yh(_B(),100*t,e.formatPercentage(t))}),e.textTrackStyleWindowColor,e.textTrackStyleDefaultLabel,_p.map(function(t){var r,n=t.label,i=t.value;return yh(_I(),i,null!=(r=e.colorLabels[n])?r:n)}),e.textTrackStyleWindowOpacity,e.textTrackStyleDefaultLabel,_f.map(function(t){return yh(_D(),100*t,e.formatPercentage(t))}),e.textTrackStyleEdgeStyle,e.textTrackStyleDefaultLabel,_v.map(function(t){var r;return yh(_$(),t,null!=(r=e.edgeStyleLabels[t])?r:t)}))},f(t,[{key:"lang",get:function(){return yq(this,io)[io]},set:function(e){yq(this,io)[io]=e}}]),t}(ip=rN),iy=(ib=(ig=a(il,[[id,1,"lang"]],[iu,ic],ip)).e)[0],iv=ib[1],i_=(im=ig.c)[0],ih=im[1],is);var _q=["addtrack","removetrack"];function _j(){var e=i(['<span part="icon"><slot>',"</slot></span>"]);return _j=function(){return e},e}iE=yO("theoplayer-language-menu"),iS=fq(["player","lang"]),iP=yB({reflect:!0,type:String,attribute:yK.LANG}),iR=yB({state:!0}),iO=yB({reflect:!0,state:!0,type:Boolean,attribute:yK.HAS_AUDIO}),iM=yB({reflect:!0,state:!0,type:Boolean,attribute:yK.HAS_SUBTITLES}),new(iA=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(rN.styles,[_l]),iL(),t}return n(t,e),t}(o),ik=yz("____private_lang_1"),iw=yz("____private__hasAudioTracks_2"),ix=yz("____private__hasSubtitles_3"),iT=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ik,{writable:!0,value:void 0}),Object.defineProperty(t,iw,{writable:!0,value:void 0}),Object.defineProperty(t,ix,{writable:!0,value:void 0}),yq(t,ik)[ik]=(iD(t),iN(t,"")),yq(t,iw)[iw]=iB(t,!1),yq(t,ix)[ix]=iI(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(vY))?e:[];t._hasSubtitles=n.length>0},t}return n(t,e),t.prototype.render=function(){var e=f0(this.lang);return yh(_U(),e.languageMenuHeading,this.lang,e.audioMenuHeading,this.lang,e.subtitleMenuHeading,this.lang,this.lang)},f(t,[{key:"lang",get:function(){return yq(this,ik)[ik]},set:function(e){yq(this,ik)[ik]=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(_q,this._updateAudioTracks),null==(r=this._textTrackList)||r.removeEventListener(_q,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(_q,this._updateAudioTracks),null==(i=this._textTrackList)||i.addEventListener(_q,this._updateTextTracks))}},{key:"_hasAudioTracks",get:function(){return yq(this,iw)[iw]},set:function(e){yq(this,iw)[iw]=e}},{key:"_hasSubtitles",get:function(){return yq(this,ix)[ix]},set:function(e){yq(this,ix)[ix]=e}}]),t}(iC=rN),iN=(iU=(iF=a(iT,[[iP,1,"lang"],[iR,4,"player"],[iO,1,"_hasAudioTracks"],[iM,1,"_hasSubtitles"]],[iE,iS],iC)).e)[0],iB=iU[1],iI=iU[2],iD=iU[3],i$=(iq=iF.c)[0],iL=iq[1],iA);var _z=["addtrack","removetrack"];ij=yO("theoplayer-language-menu-button"),iz=fq(["player","lang"]),iH=yB({reflect:!1,attribute:!1}),iV=yB({reflect:!0,type:String,attribute:yK.LANG});var _H=yz("____private_lang_1"),_V=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_H,{writable:!0,value:void 0}),yq(t,_H)[_H]=(iQ(t),iG(t,"")),t._updateTracks=function(){var e=void 0!==t._player&&(t._player.audioTracks.length>=2||t._player.textTracks.some(vY));fM(t,yK.HIDDEN,!e)},t}n(t,e);var r=t.prototype;return r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=f0(this.lang);this.ariaLabel=e.openLanguageMenuAria},r.render=function(){return yh(_j(),fg('<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'))},f(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(_z,this._updateTracks),null==(r=this._textTrackList)||r.removeEventListener(_z,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(_z,this._updateTracks),null==(i=this._textTrackList)||i.addEventListener(_z,this._updateTracks))}},{key:"lang",get:function(){return yq(this,_H)[_H]},set:function(e){yq(this,_H)[_H]=e}}]),t}(rz);function _G(){var e=i(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return _G=function(){return e},e}function _Q(){var e=i(['<span part="icon"><slot>',"</slot></span>"]);return _Q=function(){return e},e}iG=(iZ=(iK=a(_V,[[iH,4,"player"],[iV,1,"lang"]],[ij,iz],rz)).e)[0],iQ=iZ[1],iW=(iY=iK.c)[0],(0,iY[1])(),i0=yO("theoplayer-playback-rate-radio-group"),i1=fq(["player"]),i5=yI(),i3=yI(),new(iX=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vK],i2(),t}return n(t,e),t}(o),iJ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,i4(t),t._radioGroupRef=fs(),t._value=1,t._onChange=function(){var e=t._radioGroupRef.value;e&&(t.value=Number(e.value))},t._updateFromPlayer=function(){void 0!==t._player&&(t.value=t._player.playbackRate)},t}n(t,e);var r=t.prototype;return r.firstUpdated=function(){var e=this._radioGroupRef.value;x(e,ru)||customElements.upgrade(e),e.value=String(this.value)},r.render=function(){return yh(_G(),fh(this._radioGroupRef),this._onChange)},f(t,[{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(vh("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))}}]),t}(yP),i4=(i7=a(iJ,[[i5,4,"value"],[i3,4,"player"]],[i0,i1],yP)).e[0],i8=(i6=i7.c)[0],i2=i6[1],iX),i9=yO("theoplayer-playback-rate-menu-button"),ae=fq(["lang"]),at=yB({reflect:!0,type:String,attribute:yK.LANG});var _W=yz("____private_lang_1"),_K=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_W,{writable:!0,value:void 0}),yq(t,_W)[_W]=(an(t),ar(t,"")),t}n(t,e);var r=t.prototype;return r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=f0(this.lang);this.ariaLabel=e.openPlaybackRateMenuAria},r.render=function(){return yh(_Q(),fg('<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'))},f(t,[{key:"lang",get:function(){return yq(this,_W)[_W]},set:function(e){yq(this,_W)[_W]=e}}]),t}(rz);function _Z(){var e=i(['<span slot="heading"><slot name="heading">',"</slot></span>"]);return _Z=function(){return e},e}function _Y(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return _Y=function(){return e},e}function _J(){var e=i(["<theoplayer-playback-rate-radio-group>","</theoplayer-playback-rate-radio-group>"]);return _J=function(){return e},e}ar=(ao=(aa=a(_K,[[at,1,"lang"]],[i9,ae],rz)).e)[0],an=ao[1],ai=(al=aa.c)[0],(0,al[1])();var _X=[.25,.5,1,1.25,1.5,2];as=yO("theoplayer-playback-rate-menu"),au=fq(["lang"]),ac=yB({reflect:!0,type:String,attribute:yK.LANG});var _0=yz("____private_lang_1"),_1=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_0,{writable:!0,value:void 0}),yq(t,_0)[_0]=(ap(t),ah(t,"")),t}n(t,e);var r=t.prototype;return r.renderMenuHeading=function(){var e=f0(this.lang);return yh(_Z(),e.playbackRateMenuHeading)},r.renderMenuContent=function(){var e=f0(this.lang);return yh(_J(),_X.map(function(t){return yh(_Y(),t,e.formatPlaybackRate(t))}))},f(t,[{key:"lang",get:function(){return yq(this,_0)[_0]},set:function(e){yq(this,_0)[_0]=e}}]),t}(rw);function _2(){var e=i(["<span>","</span>"]);return _2=function(){return e},e}ah=(af=(ay=a(_1,[[ac,1,"lang"]],[as,au],rw)).e)[0],ap=af[1],ad=(av=ay.c)[0],(0,av[1])(),a_=yO("theoplayer-playback-rate-display"),ag=fq(["playbackRate","lang"]),ab=yB({reflect:!0,type:String,attribute:yK.LANG}),am=yI();var _5=yz("____private_lang_1"),_3=yz("____private_playbackRate_2"),_4=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_5,{writable:!0,value:void 0}),Object.defineProperty(t,_3,{writable:!0,value:void 0}),yq(t,_5)[_5]=(ax(t),ak(t,"")),yq(t,_3)[_3]=aw(t,1),t}return n(t,e),t.prototype.render=function(){var e=f0(this.lang);return yh(_2(),e.formatPlaybackRate(this.playbackRate))},f(t,[{key:"lang",get:function(){return yq(this,_5)[_5]},set:function(e){yq(this,_5)[_5]=e}},{key:"playbackRate",get:function(){return yq(this,_3)[_3]},set:function(e){yq(this,_3)[_3]=e}}]),t}(yP);function _8(){var e=i(["<span>","</span>"]);return _8=function(){return e},e}ak=(aE=(aA=a(_4,[[ab,1,"lang"],[am,1,"playbackRate"]],[a_,ag],yP)).e)[0],aw=aE[1],ax=aE[2],aT=(aS=aA.c)[0],(0,aS[1])(),aL=yO("theoplayer-active-quality-display"),aC=fq(["activeVideoQuality","targetVideoQualities"]),aP=yB({reflect:!1,attribute:!1}),aR=yB({reflect:!1,attribute:!1}),aO=yB({reflect:!0,type:String,attribute:yK.LANG});var _7=yz("____private_activeVideoQuality_1"),_6=yz("____private_targetVideoQualities_2"),_9=yz("____private_lang_3"),ge=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,_7,{writable:!0,value:void 0}),Object.defineProperty(t,_6,{writable:!0,value:void 0}),Object.defineProperty(t,_9,{writable:!0,value:void 0}),yq(t,_7)[_7]=(aI(t),aM(t,void 0)),yq(t,_6)[_6]=aN(t,void 0),yq(t,_9)[_9]=aB(t,""),t}return n(t,e),t.prototype.render=function(){var e,t=f0(this.lang),r=void 0!==this.targetVideoQualities&&1===this.targetVideoQualities.length,n=r?this.targetVideoQualities[0]:void 0,i=vX(t,null!=n?n:this.activeVideoQuality);return e=r?null!=i?i:t.unknownQualityLabel:""+t.automaticQualityLabel+(i?" ("+i+")":""),yh(_8(),e)},f(t,[{key:"activeVideoQuality",get:function(){return yq(this,_7)[_7]},set:function(e){yq(this,_7)[_7]=e}},{key:"targetVideoQualities",get:function(){return yq(this,_6)[_6]},set:function(e){yq(this,_6)[_6]=e}},{key:"lang",get:function(){return yq(this,_9)[_9]},set:function(e){yq(this,_9)[_9]=e}}]),t}(yP);function gt(){var e=i(["<slot>","</slot>"]);return gt=function(){return e},e}aM=(aF=(a$=a(ge,[[aP,1,"activeVideoQuality"],[aR,1,"targetVideoQualities"],[aO,1,"lang"]],[aL,aC],yP)).e)[0],aN=aF[1],aB=aF[2],aI=aF[3],aD=(aU=a$.c)[0],(0,aU[1])();var gr=["activequalitychanged","targetqualitychanged"],gn=["update"];aq=yO("theoplayer-quality-radio-button"),aj=fq(["lang"]),az=yI(),aH=yB({reflect:!0,type:String,attribute:yK.LANG}),aV=yB({reflect:!1,attribute:!1}),aG=yB({reflect:!1,attribute:!1});var gi=yz("____private__quality_1"),ga=yz("____private_lang_2"),go=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,gi,{writable:!0,value:void 0}),Object.defineProperty(t,ga,{writable:!0,value:void 0}),t._track=void aK(t),yq(t,gi)[gi]=aQ(t,void 0),yq(t,ga)[ga]=aW(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}n(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=f0(this.lang),r=void 0===this._quality?t.automaticQualityLabel:null!=(e=vX(t,this._quality))?e:t.unknownQualityLabel;return yh(gt(),r)},f(t,[{key:"_quality",get:function(){return yq(this,gi)[gi]},set:function(e){yq(this,gi)[gi]=e}},{key:"lang",get:function(){return yq(this,ga)[ga]},set:function(e){yq(this,ga)[ga]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(gr,this._updateFromTrack),this._track=e,this._updateFromTrack(),e&&e.addEventListener(gr,this._updateFromTrack))}},{key:"quality",get:function(){return this._quality},set:function(e){this._quality!==e&&(this._quality&&this._quality.removeEventListener(gn,this._updateFromQuality),this._quality=e,this._updateFromTrack(),e&&e.addEventListener(gn,this._updateFromQuality))}}]),t}(t9);function gl(){var e=i(['<theoplayer-quality-radio-button lang="','" .track="','" .quality="','"></theoplayer-quality-radio-button>']);return gl=function(){return e},e}function gs(){var e=i(['<theoplayer-radio-group @change="','"><theoplayer-quality-radio-button lang="','" .track="','" .quality="','"></theoplayer-quality-radio-button>',"</theoplayer-radio-group>"]);return gs=function(){return e},e}aQ=(aJ=(aY=a(go,[[az,1,"_quality"],[aH,1,"lang"],[aV,4,"track"],[aG,4,"quality"]],[aq,aj],t9)).e)[0],aW=aJ[1],aK=aJ[2],aZ=(aX=aY.c)[0],(0,aX[1])();var gu=["addtrack","removetrack","change"];function gc(){var e=i(["<slot>","</slot>"]);return gc=function(){return e},e}a3=yO("theoplayer-quality-radio-group"),a4=fq(["player","lang"]),a7=yI(),a6=yB({reflect:!0,type:String,attribute:yK.LANG}),a9=yI(),new(a5=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vK],a8(),t}return n(t,e),t}(o),a0=yz("____private__track_1"),a1=yz("____private_lang_2"),a2=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,a0,{writable:!0,value:void 0}),Object.defineProperty(t,a1,{writable:!0,value:void 0}),yq(t,a0)[a0]=(or(t),oe(t)),yq(t,a1)[a1]=ot(t,""),t._onChange=function(){t.dispatchEvent(vh("change",{bubbles:!0}))},t._updateTrack=function(){var e,r,n=t._player?fP(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}n(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 yh(gs(),this._onChange,this.lang,this._track,void 0,1!==t.length&&v1(t,function(e){return e.uid},function(t){return yh(gl(),e.lang,e._track,t)}))},f(t,[{key:"_track",get:function(){return yq(this,a0)[a0]},set:function(e){yq(this,a0)[a0]=e}},{key:"lang",get:function(){return yq(this,a1)[a1]},set:function(e){yq(this,a1)[a1]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._videoTracks)||t.removeEventListener(gu,this._updateTrack),this._player=e,this._videoTracks=null==e?void 0:e.videoTracks,this._updateTrack(),null==(r=this._videoTracks)||r.addEventListener(gu,this._updateTrack))}}]),t}(yP),oe=(oa=(oi=a(a2,[[a7,1,"_track"],[a6,1,"lang"],[a9,4,"player"]],[a3,a4],yP)).e)[0],ot=oa[1],or=oa[2],on=(oo=oi.c)[0],a8=oo[1],a5),ol=yO("theoplayer-text-track-style-reset-button"),os=fq(["player","lang"]),ou=yB({reflect:!0,type:String,attribute:yK.LANG});var gh=yz("____private_lang_1"),gp=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,gh,{writable:!0,value:void 0}),yq(t,gh)[gh]=(oh(t),oc(t,"")),t}n(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=f0(this.lang);return yh(gc(),e.textTrackStyleResetLabel)},f(t,[{key:"lang",get:function(){return yq(this,gh)[gh]},set:function(e){yq(this,gh)[gh]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player=e}}]),t}(W);function gd(){var e=i(['<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 gd=function(){return e},e}oc=(oy=(od=a(gp,[[ou,1,"lang"]],[ol,os],W)).e)[0],oh=oy[1],op=(of=od.c)[0],(0,of[1])(),ob=yO("theoplayer-settings-menu"),om=fq(["lang"]),ox=yB({reflect:!0,type:String,attribute:yK.LANG}),new(og=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(rN.styles,[_h]),ok(),t}return n(t,e),t}(o),ov=yz("____private_lang_1"),o_=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ov,{writable:!0,value:void 0}),yq(t,ov)[ov]=(oA(t),oT(t,"")),t}return n(t,e),t.prototype.render=function(){var e=f0(this.lang);return yh(gd(),e.settingsMenuHeading,e.qualityMenuHeading,this.lang,e.playbackRateMenuHeading,this.lang,e.qualityMenuHeading,this.lang,this.lang)},f(t,[{key:"lang",get:function(){return yq(this,ov)[ov]},set:function(e){yq(this,ov)[ov]=e}}]),t}(ow=rN),oT=(oL=(oS=a(o_,[[ox,1,"lang"]],[ob,om],ow)).e)[0],oA=oL[1],oE=(oC=oS.c)[0],ok=oC[1],og);var gy='<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 gf(){var e=i(['<span part="icon"><slot>',"</slot></span>"]);return gf=function(){return e},e}oP=yO("theoplayer-settings-menu-button"),oR=fq(["lang"]),oO=yB({reflect:!0,type:String,attribute:yK.LANG});var gv=yz("____private_lang_1"),g_=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,gv,{writable:!0,value:void 0}),yq(t,gv)[gv]=(oN(t),oM(t,"")),t}n(t,e);var r=t.prototype;return r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=f0(this.lang);this.ariaLabel=e.openSettingsMenuAria},r.render=function(){return yh(gf(),fg(gy))},f(t,[{key:"lang",get:function(){return yq(this,gv)[gv]},set:function(e){yq(this,gv)[gv]=e}}]),t}(rz);function gg(){var e=i([":host(:not([fullscreen])) [part=exit-icon],:host([fullscreen]) [part=enter-icon]{display:none!important}"]);return gg=function(){return e},e}oM=(oD=(oI=a(g_,[[oO,1,"lang"]],[oP,oR],rz)).e)[0],oN=oD[1],oB=(o$=oI.c)[0],(0,o$[1])();var gb=dD(gg()),gm="theoplayerfullscreenenter",gk="theoplayerfullscreenexit";function gw(){var e=i(['<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 gx(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=g(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 gT(){var e=i([":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 gT=function(){return e},e}oz=yO("theoplayer-fullscreen-button"),oH=fq(["fullscreen","lang"]),oG=yB({reflect:!0,type:Boolean,attribute:yK.FULLSCREEN}),oQ=yB({reflect:!0,type:String,attribute:yK.LANG}),new(oj=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(W.styles,[gb]),oV(),t}return n(t,e),t}(o),oF=yz("____private_fullscreen_1"),oU=yz("____private_lang_2"),oq=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,oF,{writable:!0,value:void 0}),Object.defineProperty(t,oU,{writable:!0,value:void 0}),yq(t,oF)[oF]=(oZ(t),oW(t,!1)),yq(t,oU)[oU]=oK(t,""),t}n(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=vp(gk,{bubbles:!0,composed:!0});this.dispatchEvent(e)}else{var t=vp(gm,{bubbles:!0,composed:!0});this.dispatchEvent(t)}},r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=f0(this.lang);this.ariaLabel=this.fullscreen?e.fullscreenExitAria:e.fullscreenAria},r.render=function(){return yh(gw(),fg('<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'),fg('<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'))},f(t,[{key:"fullscreen",get:function(){return yq(this,oF)[oF]},set:function(e){yq(this,oF)[oF]=e}},{key:"lang",get:function(){return yq(this,oU)[oU]},set:function(e){yq(this,oU)[oU]=e}}]),t}(W),oW=(oX=(oJ=a(oq,[[oG,1,"fullscreen"],[oQ,1,"lang"]],[oz,oH],W)).e)[0],oK=oX[1],oZ=oX[2],oY=(o0=oJ.c)[0],oV=o0[1],oj);var gA=dD(gT()),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=fR(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=fk(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}(),gS="important",gL=" !"+gS,gC=yH(function(e){function t(e){var r,n;if(d(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 n(t,e),f(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=g(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 p="string"==typeof h&&h.endsWith(gL);c.includes("-")||p?n.setProperty(c,p?h.slice(0,-11):h,p?gS:""):n[c]=h}}return yp}}]),t}(yV));function gP(){var e=i(['<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 gP=function(){return e},e}function gR(){var e=i([""]);return gR=function(){return e},e}function gO(){var e=i(["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 gO=function(){return e},e}o7=fq(["deviceType"]),o9=yI(),le=yB({reflect:!0,type:Boolean,attribute:yK.DISABLED}),lt=yB({reflect:!0,type:Boolean,attribute:yK.HIDDEN}),lr=yB({reflect:!0,type:Boolean,attribute:yK.INERT}),ln=yB({reflect:!1,attribute:!1}),li=yI(),la=yB({reflect:!0,type:Number,attribute:"min"}),lo=yB({reflect:!0,type:Number,attribute:"max"}),ll=yB({reflect:!0,attribute:"step",converter:{fromAttribute:function(e){return null==e||"any"===e?"any":Number(e)}}}),ls=yB({reflect:!0,type:String,attribute:yK.DEVICE_TYPE}),lu=yB({reflect:!0,type:String,attribute:"aria-live"}),new(o8=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[gA],o6(),t}return n(t,e),t}(o),o1=yz("____private__pointerWidth_1"),o2=yz("____private_step_2"),o5=yz("____private_deviceType_3"),o3=yz("____private_ariaLive_4"),o4=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,o1,{writable:!0,value:void 0}),Object.defineProperty(t,o2,{writable:!0,value:void 0}),Object.defineProperty(t,o5,{writable:!0,value:void 0}),Object.defineProperty(t,o3,{writable:!0,value:void 0}),ly(t),t._rangeRef=fs(),t._min=0,t._max=100,t._value=0,t._disabled=!1,t._hidden=!1,t._inert=!1,t._rangeWidth=0,t._thumbWidth=10,yq(t,o1)[o1]=lc(t,0),yq(t,o2)[o2]=lh(t,"any"),yq(t,o5)[o5]=lp(t,"desktop"),yq(t,o3)[o3]=ld(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}n(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(){gx(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&&yY(e.keyCode)&&(e.keyCode===yZ.LEFT||e.keyCode===yZ.RIGHT?e.stopPropagation():(e.keyCode===yZ.UP||e.keyCode===yZ.DOWN)&&e.preventDefault())},r.render=function(){return yh(gP(),gC({width:""+this._pointerWidth+"px"}),fh(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 yh(gR())},f(t,[{key:"_pointerWidth",get:function(){return yq(this,o1)[o1]},set:function(e){yq(this,o1)[o1]=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 yq(this,o2)[o2]},set:function(e){yq(this,o2)[o2]=e}},{key:"deviceType",get:function(){return yq(this,o5)[o5]},set:function(e){yq(this,o5)[o5]=e}},{key:"ariaLive",get:function(){return yq(this,o3)[o3]},set:function(e){yq(this,o3)[o3]=e}}]),t}(yP),lc=(l_=(lv=a(o4,[[o9,1,"_pointerWidth"],[le,4,"disabled"],[lt,4,"hidden"],[lr,4,"inert"],[ln,4,"value"],[li,4,"rawValue"],[la,4,"min"],[lo,4,"max"],[ll,1,"step"],[ls,1,"deviceType"],[lu,1,"ariaLive"]],[o7],yP)).e)[0],lh=l_[1],lp=l_[2],ld=l_[3],ly=l_[4],lf=(lg=lv.c)[0],o6=lg[1],o8);var gM=dD(gO()),gN="theoplayerpreviewtimechange";function gB(e){return"linear"===e.type}function gI(){var e=i([":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 gI=function(){return e},e}var gD=dD(gI());function g$(){var e=i(["<canvas ",' style="','"></canvas>']);return g$=function(){return e},e}var gF=["addtrack","removetrack"];function gU(e){return"metadata"===e.kind&&"thumbnails"===e.label}function gq(){var e=i(["<span>","</span>"]);return gq=function(){return e},e}lw=yO("theoplayer-preview-thumbnail"),lx=fq(["player","previewTime"]),lA=yI(),lE=yB({reflect:!1,attribute:!1}),lS=yI(),new(lk=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[gD],lT(),t}return n(t,e),t}(o),lb=yz("____private__thumbnailVisible_1"),lm=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,lb,{writable:!0,value:void 0}),lC(t),t._canvasRef=fs(),t._previewTime=NaN,yq(t,lb)[lb]=lL(t,!1),t._updateThumbnailTextTrack=function(){var e=t._thumbnailTextTrack,r=t._player?fP(t._player.textTracks,gU):void 0;e!==r&&(t._thumbnailTextTrack=r,t.updateThumbnail_())},t._thumbnailImageSource=document.createElement("img"),t._thumbnailImageSource.decoding="async",t}n(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=fk(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,fA)):(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 yh(g$(),fh(this._canvasRef),gC(e))},f(t,[{key:"_thumbnailVisible",get:function(){return yq(this,lb)[lb]},set:function(e){yq(this,lb)[lb]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackList)||t.removeEventListener(gF,this._updateThumbnailTextTrack),this._player=e,this._textTrackList=null==e?void 0:e.textTracks,this._updateThumbnailTextTrack(),null==(r=this._textTrackList)||r.addEventListener(gF,this._updateThumbnailTextTrack))}},{key:"previewTime",get:function(){return this._previewTime},set:function(e){this._previewTime=e,this.updateThumbnail_()}}]),t}(yP),lL=(lO=(lR=a(lm,[[lA,1,"_thumbnailVisible"],[lE,4,"player"],[lS,4,"previewTime"]],[lw,lx],yP)).e)[0],lC=lO[1],lP=(lM=lR.c)[0],lT=lM[1],lk);var gj=["timeupdate","seeking","seeked","durationchange"];function gz(){var e=i(['<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 gz=function(){return e},e}lq=yO("theoplayer-preview-time-display"),lj=fq(["player","previewTime","streamType"]),lH=yI(),lV=yB({reflect:!0,type:Boolean,attribute:yK.REMAINING}),lG=yB({reflect:!0,type:Boolean,attribute:yK.REMAINING_WHEN_LIVE}),lQ=yB({reflect:!0,type:String,attribute:yK.STREAM_TYPE}),lW=yB({reflect:!1,attribute:!1}),lK=yI(),new(lU=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vo],lz(),t}return n(t,e),t}(o),lN=yz("____private_previewTime_1"),lB=yz("____private_remaining_2"),lI=yz("____private_remainingWhenLive_3"),lD=yz("____private_streamType_4"),l$=yz("____private__endTime_5"),lF=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,lN,{writable:!0,value:void 0}),Object.defineProperty(t,lB,{writable:!0,value:void 0}),Object.defineProperty(t,lI,{writable:!0,value:void 0}),Object.defineProperty(t,lD,{writable:!0,value:void 0}),Object.defineProperty(t,l$,{writable:!0,value:void 0}),yq(t,lN)[lN]=(l1(t),lZ(t,NaN)),yq(t,lB)[lB]=lY(t,!1),yq(t,lI)[lI]=lJ(t,!1),yq(t,lD)[lD]=lX(t,"vod"),yq(t,l$)[l$]=l0(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}n(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)),yh(gq(),vt(e,t,r))},f(t,[{key:"previewTime",get:function(){return yq(this,lN)[lN]},set:function(e){yq(this,lN)[lN]=e}},{key:"remaining",get:function(){return yq(this,lB)[lB]},set:function(e){yq(this,lB)[lB]=e}},{key:"remainingWhenLive",get:function(){return yq(this,lI)[lI]},set:function(e){yq(this,lI)[lI]=e}},{key:"streamType",get:function(){return yq(this,lD)[lD]},set:function(e){yq(this,lD)[lD]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(gj,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(gj,this._updateFromPlayer))}},{key:"_endTime",get:function(){return yq(this,l$)[l$]},set:function(e){yq(this,l$)[l$]=e}}]),t}(yP),lZ=(l3=(l5=a(lF,[[lH,1,"previewTime"],[lV,1,"remaining"],[lG,1,"remainingWhenLive"],[lQ,1,"streamType"],[lW,4,"player"],[lK,1,"_endTime"]],[lq,lj],yP)).e)[0],lY=l3[1],lJ=l3[2],lX=l3[3],l0=l3[4],l1=l3[5],l2=(l4=l5.c)[0],lz=l4[1],lU);var gH=["timeupdate","durationchange","ratechange","seeking","seeked"],gV=["play","pause","ended","durationchange","readystatechange","error"],gG=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];se=yO("theoplayer-time-range"),st=fq(["player","streamType","deviceType","lang"]),sn=yB({reflect:!1,attribute:!1}),si=yB({reflect:!0,type:String,attribute:yK.LANG}),sa=yB({reflect:!0,type:String,attribute:yK.STREAM_TYPE}),so=yB({reflect:!0,type:Boolean,attribute:yK.SHOW_AD_MARKERS}),sl=yI(),new(l9=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(lf.styles,[gM]),sr(),t}return n(t,e),t}(o),l8=yz("____private_lang_1"),l7=yz("____private__previewRailTransform_2"),l6=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,l8,{writable:!0,value:void 0}),Object.defineProperty(t,l7,{writable:!0,value:void 0}),sc(t),t._previewBoxEl=fs(),t._streamType="vod",t._showAdMarkers=!1,t._pausedWhileScrubbing=!1,t._autoAdvanceId=0,t._lastUpdateTime=0,t._lastCurrentTime=0,t._lastPlaybackRate=0,yq(t,l8)[l8]=ss(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)},yq(t,l7)[l7]=su(t,""),t._onAdChange=function(){t._updateRange()},t}n(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(yK.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 f0(this.lang).seekAria},r.getAriaValueText=function(){var e=f0(this.lang),t=vn(e,this.value),r=vn(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=vp(gN,{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=fk(this._player.ads.scheduledAdBreaks);!(r=a()).done;){var o=r.value;if(void 0===o.ads||!(o.ads.length>0)||o.ads.some(gB)){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===yZ.ENTER&&void 0!==this._player&&(this._player.paused?this._player.play():this._player.pause())},r.renderRangeExtras=function(){return yh(gz(),gC({transform:this._previewRailTransform}),fh(this._previewBoxEl))},f(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener(gH,this._updateFromPlayer),this._player.removeEventListener(gV,this._toggleAutoAdvance)),null==(t=this._ads)||t.removeEventListener(gG,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),this._toggleAutoAdvance(),void 0!==this._player&&(this._player.addEventListener(gH,this._updateFromPlayer),this._player.addEventListener(gV,this._toggleAutoAdvance)),null==(r=this._ads)||r.addEventListener(gG,this._onAdChange))}},{key:"lang",get:function(){return yq(this,l8)[l8]},set:function(e){yq(this,l8)[l8]=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 yq(this,l7)[l7]},set:function(e){yq(this,l7)[l7]=e}}]),t}(lf),ss=(sd=(sp=a(l6,[[sn,4,"player"],[si,1,"lang"],[sa,4,"streamType"],[so,4,"showAdMarkers"],[sl,1,"_previewRailTransform"]],[se,st],lf)).e)[0],su=sd[1],sc=sd[2],sh=(sy=sp.c)[0],sr=sy[1],l9),sf=yO("theoplayer-volume-range"),sv=fq(["player","deviceType","lang"]),s_=yB({reflect:!0,type:String,attribute:yK.LANG}),sg=yB({reflect:!1,attribute:!1});var gQ=yz("____private_lang_1"),gW=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,gQ,{writable:!0,value:void 0}),yq(t,gQ)[gQ]=(sm(t),sb(t,"")),t._updateFromPlayer=function(){void 0!==t._player&&(t.rawValue=t._player.volume,t._updateRange())},t}n(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 f0(this.lang).volumeAria},r.getAriaValueText=function(){return f0(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)},f(t,[{key:"lang",get:function(){return yq(this,gQ)[gQ]},set:function(e){yq(this,gQ)[gQ]=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}(lf);function gK(){var e=i([":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 gK=function(){return e},e}sb=(sx=(sw=a(gW,[[s_,1,"lang"],[sg,4,"player"]],[sf,sv],lf)).e)[0],sm=sx[1],sk=(sT=sw.c)[0],(0,sT[1])();var gZ=dD(gK());function gY(){var e=i(['<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 gY=function(){return e},e}sP=yO("theoplayer-error-display"),sR=fq(["error","fullscreen","lang"]),sM=yB({reflect:!1,attribute:!1}),sN=yB({reflect:!0,type:Boolean,attribute:yK.FULLSCREEN}),sB=yB({reflect:!0,type:String,attribute:yK.LANG}),new(sC=function(e){function r(){var r;return r=e.apply(this,arguments)||this,r.styles=[gZ],r.shadowRootOptions=t({},yP.shadowRootOptions,{delegatesFocus:!0}),sO(),r}return n(r,e),r}(o),sA=yz("____private_error_1"),sE=yz("____private_fullscreen_2"),sS=yz("____private_lang_3"),sL=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,sA,{writable:!0,value:void 0}),Object.defineProperty(t,sE,{writable:!0,value:void 0}),Object.defineProperty(t,sS,{writable:!0,value:void 0}),yq(t,sA)[sA]=(sF(t),sI(t)),yq(t,sE)[sE]=sD(t,!1),yq(t,sS)[sS]=s$(t,""),t}return n(t,e),t.prototype.render=function(){var e,t,r=f0(this.lang);return yh(gY(),fg('<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:"")},f(t,[{key:"error",get:function(){return yq(this,sA)[sA]},set:function(e){yq(this,sA)[sA]=e}},{key:"fullscreen",get:function(){return yq(this,sE)[sE]},set:function(e){yq(this,sE)[sE]=e}},{key:"lang",get:function(){return yq(this,sS)[sS]},set:function(e){yq(this,sS)[sS]=e}}]),t}(yP),sI=(sj=(sq=a(sL,[[sM,1,"error"],[sN,1,"fullscreen"],[sB,1,"lang"]],[sP,sR],yP)).e)[0],sD=sj[1],s$=sj[2],sF=sj[3],sU=(sz=sq.c)[0],sO=sz[1],sC),sH=yI(),sV=yB({reflect:!0,state:!0,type:String,attribute:yK.CAST_STATE});var gJ=function(e){function t(t){var r;return r=e.call(this,t)||this,sG(r),r._castState="unavailable",r._updateCastState=function(){r.castState=r._castApi?r._castApi.state:"unavailable"},r}n(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()}},f(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}(W);function gX(){var e=i(['<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 gX=function(){return e},e}function g0(){var e=i([":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 g0=function(){return e},e}sG=a(gJ,[[sH,4,"castApi"],[sV,4,"castState"]],[]).e[0];var g1=dD(g0()),g2=0;function g5(){var e=i([":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 g5=function(){return e},e}sZ=yO("theoplayer-chromecast-button"),sY=fq(["player","lang"]),sX=yB({reflect:!0,type:String,attribute:yK.LANG}),new(sK=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(gJ.styles,[g1]),sJ(),t}return n(t,e),t}(o),sQ=yz("____private_lang_1"),sW=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,sQ,{writable:!0,value:void 0}),s1(t),t._buttonId=++g2,yq(t,sQ)[sQ]=s0(t,""),t}n(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=f0(this.lang);this.ariaLabel="connecting"===this.castState||"connected"===this.castState?e.chromecastConnectedAria:e.chromecastAria},r.render=function(){var e;return e=this._buttonId,yh(gX(),e,e)},f(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 yq(this,sQ)[sQ]},set:function(e){yq(this,sQ)[sQ]=e}}]),t}(gJ),s0=(s3=(s5=a(sW,[[sX,1,"lang"]],[sZ,sY],gJ)).e)[0],s1=s3[1],s2=(s4=s5.c)[0],sJ=s4[1],sK);var g3=dD(g5());function g4(){var e=i(['<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 g4=function(){return e},e}var g8=["statechange"];function g7(){var e=i(['<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 g7=function(){return e},e}ue=yO("theoplayer-chromecast-display"),ut=fq(["player","lang"]),un=yB({reflect:!0,type:String,attribute:yK.LANG}),ui=yI(),new(s9=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[g3],ur(),t}return n(t,e),t}(o),s8=yz("____private_lang_1"),s7=yz("____private__receiverName_2"),s6=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,s8,{writable:!0,value:void 0}),Object.defineProperty(t,s7,{writable:!0,value:void 0}),yq(t,s8)[s8]=(ul(t),ua(t,"")),yq(t,s7)[s7]=uo(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(yK.HIDDEN,""):(t._receiverName=n.receiverName||"",t.removeAttribute(yK.HIDDEN))},t}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(yK.HIDDEN)||this.setAttribute(yK.HIDDEN,""),this._updateFromPlayer()},r.render=function(){var e=f0(this.lang);return yh(g4(),fg('<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)},f(t,[{key:"lang",get:function(){return yq(this,s8)[s8]},set:function(e){yq(this,s8)[s8]=e}},{key:"_receiverName",get:function(){return yq(this,s7)[s7]},set:function(e){yq(this,s7)[s7]=e}},{key:"player",get:function(){return this._player},set:function(e){var t;this._player!==e&&(void 0!==this._castApi&&this._castApi.removeEventListener(g8,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(g8,this._updateFromPlayer))}}]),t}(yP),ua=(uc=(uu=a(s6,[[un,1,"lang"],[ui,1,"_receiverName"]],[ue,ut],yP)).e)[0],uo=uc[1],ul=uc[2],us=(uh=uu.c)[0],ur=uh[1],s9);var g6=yh(g7());function g9(){var e=i([":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 g9=function(){return e},e}var be=dD(g9());function bt(){var e=i([":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 bt=function(){return e},e}uf=yO("theoplayer-airplay-button"),uv=fq(["player","lang"]),ug=yB({reflect:!0,type:String,attribute:yK.LANG}),new(uy=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(gJ.styles,[be]),u_(),t}return n(t,e),t}(o),up=yz("____private_lang_1"),ud=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,up,{writable:!0,value:void 0}),yq(t,up)[up]=(um(t),ub(t,"")),t}n(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=f0(this.lang);this.ariaLabel="connecting"===this.castState||"connected"===this.castState?e.airplayConnectedAria:e.airplayAria},r.render=function(){return g6},f(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 yq(this,up)[up]},set:function(e){yq(this,up)[up]=e}}]),t}(gJ),ub=(ux=(uw=a(ud,[[ug,1,"lang"]],[uf,uv],gJ)).e)[0],um=ux[1],uk=(uT=uw.c)[0],u_=uT[1],uy);var br=dD(bt());function bn(){var e=i(['<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 bn=function(){return e},e}var bi=yh(bn()),ba=["readystatechange","play","pause","playing","seeking","seeked"];function bo(){var e=i([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;pointer-events:none!important}"]);return bo=function(){return e},e}uL=yO("theoplayer-loading-indicator"),uC=fq(["player"]),uR=yB({reflect:!1,attribute:!1}),uO=yB({reflect:!0,type:Boolean,attribute:yK.LOADING}),new(uS=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[br],uP(),t}return n(t,e),t}(o),uA=yz("____private_loading_1"),uE=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,uA,{writable:!0,value:void 0}),yq(t,uA)[uA]=(uN(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 n(t,e),t.prototype.render=function(){return bi},f(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(ba,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(ba,this._updateFromPlayer))}},{key:"loading",get:function(){return yq(this,uA)[uA]},set:function(e){yq(this,uA)[uA]=e}}]),t}(yP),uM=(uD=(uI=a(uE,[[uR,4,"player"],[uO,1,"loading"]],[uL,uC],yP)).e)[0],uN=uD[1],uB=(u$=uI.c)[0],uP=u$[1],uS);var bl=dD(bo());function bs(){var e=i([""]);return bs=function(){return e},e}function bu(){var e=i(["[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 bu=function(){return e},e}uj=yO("theoplayer-gesture-receiver"),uz=fq(["player","deviceType"]),uV=yB({reflect:!1,attribute:!1}),uG=yB({reflect:!1,attribute:!1}),new(uq=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[bl],uH(),t}return n(t,e),t}(o),uF=yz("____private_deviceType_1"),uU=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,uF,{writable:!0,value:void 0}),uW(t),t._pointerType="",yq(t,uF)[uF]=uQ(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}n(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 yh(bs())},f(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 yq(this,uF)[uF]},set:function(e){yq(this,uF)[uF]=e}}]),t}(yP),uQ=(uY=(uZ=a(uU,[[uV,4,"player"],[uG,1,"deviceType"]],[uj,uz],yP)).e)[0],uW=uY[1],uK=(uJ=uZ.c)[0],uH=uJ[1],uq);var bc=dD(bu());function bh(){var e=i(['<span part="icon"><slot name="icon">','</slot></span><slot name="spacer"></slot><span part="text"><slot name="text">',"</slot></span>"]);return bh=function(){return e},e}var bp=["play","pause","playing","emptied"],bd=["seeking","seeked","timeupdate","durationchange","emptied"];function by(){var e=i([":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 by=function(){return e},e}u4=yO("theoplayer-live-button"),u8=fq(["player","streamType","lang"]),u6=yB({reflect:!0,type:Boolean,attribute:yK.PAUSED}),u9=yB({reflect:!0,type:String,attribute:yK.STREAM_TYPE}),ce=yB({reflect:!0,type:Number,attribute:yK.LIVE_THRESHOLD,useDefault:!0}),ct=yB({reflect:!0,type:Boolean,attribute:yK.LIVE}),cr=yB({reflect:!0,type:String,attribute:yK.LANG}),cn=yB({reflect:!1,attribute:!1}),new(u3=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(W.styles,[bc]),u7(),t}return n(t,e),t}(o),uX=yz("____private_paused_1"),u0=yz("____private_streamType_2"),u1=yz("____private_live_3"),u2=yz("____private_lang_4"),u5=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,uX,{writable:!0,value:void 0}),Object.defineProperty(t,u0,{writable:!0,value:void 0}),Object.defineProperty(t,u1,{writable:!0,value:void 0}),Object.defineProperty(t,u2,{writable:!0,value:void 0}),cs(t),t._liveThreshold=10,yq(t,uX)[uX]=ci(t,!1),yq(t,u0)[u0]=ca(t,"vod"),yq(t,u1)[u1]=co(t,!1),yq(t,u2)[u2]=cl(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}n(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=f0(this.lang);this.ariaLabel=e.seekToLiveAria},r.render=function(){var e=f0(this.lang);return yh(bh(),fg('<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)},f(t,[{key:"paused",get:function(){return yq(this,uX)[uX]},set:function(e){yq(this,uX)[uX]=e}},{key:"streamType",get:function(){return yq(this,u0)[u0]},set:function(e){yq(this,u0)[u0]=e}},{key:"liveThreshold",get:function(){return this._liveThreshold},set:function(e){this._liveThreshold=isNaN(e)?0:e,this._updateLive()}},{key:"live",get:function(){return yq(this,u1)[u1]},set:function(e){yq(this,u1)[u1]=e}},{key:"lang",get:function(){return yq(this,u2)[u2]},set:function(e){yq(this,u2)[u2]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener(bp,this._updatePaused),this._player.removeEventListener(bd,this._updateLive)),this._player=e,this._updatePaused(),this._updateLive(),void 0!==this._player&&(this._player.addEventListener(bp,this._updatePaused),this._player.addEventListener(bd,this._updateLive)))}}]),t}(W),ci=(ch=(cc=a(u5,[[u6,1,"paused"],[u9,1,"streamType"],[ce,4,"liveThreshold"],[ct,1,"live"],[cr,1,"lang"],[cn,4,"player"]],[u4,u8],W)).e)[0],ca=ch[1],co=ch[2],cl=ch[3],cs=ch[4],cu=(cp=cc.c)[0],u7=cp[1],u3);var bf=dD(by());function bv(){var e=i(["<span>","</span>"]);return bv=function(){return e},e}var b_=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];function bg(){var e=i([":host{pointer-events:none}"]);return bg=function(){return e},e}cg=yO("theoplayer-ad-display"),cb=fq(["player","lang"]),ck=yI(),cw=yI(),cx=yB({reflect:!0,type:String,attribute:yK.LANG}),cT=yB({reflect:!1,attribute:!1}),new(c_=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vo,bf],cm(),t}return n(t,e),t}(o),cd=yz("____private__currentAd_1"),cy=yz("____private__totalAds_2"),cf=yz("____private_lang_3"),cv=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,cd,{writable:!0,value:void 0}),Object.defineProperty(t,cy,{writable:!0,value:void 0}),Object.defineProperty(t,cf,{writable:!0,value:void 0}),yq(t,cd)[cd]=(cL(t),cA(t,0)),yq(t,cy)[cy]=cE(t,0),yq(t,cf)[cf]=cS(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(gB);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=fP(t._player.ads.currentAds||[],gB);if(l){var s=a.indexOf(l);s>=0&&(o=s+1)}}t._currentAd=o,t._totalAds=a.length,t.style.display=""},t}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer()},r.render=function(){var e=f0(this.lang),t=this._totalAds>1?e.adBreakText(this._currentAd,this._totalAds):e.adText;return yh(bv(),t)},f(t,[{key:"_currentAd",get:function(){return yq(this,cd)[cd]},set:function(e){yq(this,cd)[cd]=e}},{key:"_totalAds",get:function(){return yq(this,cy)[cy]},set:function(e){yq(this,cy)[cy]=e}},{key:"lang",get:function(){return yq(this,cf)[cf]},set:function(e){yq(this,cf)[cf]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._ads)||t.removeEventListener(b_,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(b_,this._updateFromPlayer))}}]),t}(yP),cA=(cR=(cP=a(cv,[[ck,1,"_currentAd"],[cw,1,"_totalAds"],[cx,1,"lang"],[cT,4,"player"]],[cg,cb],yP)).e)[0],cE=cR[1],cS=cR[2],cL=cR[3],cC=(cO=cP.c)[0],cm=cO[1],c_);var bb=dD(bg());function bm(){var e=i(["<span>","</span>"]);return bm=function(){return e},e}var bk=["adbreakbegin","adbreakend","adbreakchange","updateadbreak"];function bw(){var e=i(["<slot>","</slot>"]);return bw=function(){return e},e}cD=yO("theoplayer-ad-countdown"),c$=fq(["player","lang"]),cU=yI(),cq=yB({reflect:!0,type:String,attribute:yK.LANG}),cj=yB({reflect:!1,attribute:!1}),new(cI=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vo,bb],cF(),t}return n(t,e),t}(o),cM=yz("____private__maxRemainingDuration_1"),cN=yz("____private_lang_2"),cB=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,cM,{writable:!0,value:void 0}),Object.defineProperty(t,cN,{writable:!0,value:void 0}),yq(t,cM)[cM]=(cV(t),cz(t,0)),yq(t,cN)[cN]=cH(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 n(t,e),t.prototype.render=function(){var e=f0(this.lang),t=e.formatNarrowDuration(vr(this._maxRemainingDuration));return yh(bm(),e.adCountdownText(t))},f(t,[{key:"_maxRemainingDuration",get:function(){return yq(this,cM)[cM]},set:function(e){yq(this,cM)[cM]=e}},{key:"lang",get:function(){return yq(this,cN)[cN]},set:function(e){yq(this,cN)[cN]=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(bk,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(bk,this._onAdChange))}}]),t}(yP),cz=(cW=(cQ=a(cB,[[cU,1,"_maxRemainingDuration"],[cq,1,"lang"],[cj,4,"player"]],[cD,c$],yP)).e)[0],cH=cW[1],cV=cW[2],cG=(cK=cQ.c)[0],cF=cK[1],cI);var bx=["adbegin","adend","adloaded","updatead","adskip"];cZ=yO("theoplayer-ad-clickthrough-button"),cY=fq(["player","lang"]),cJ=yB({reflect:!0,type:String,attribute:yK.CLICKTHROUGH}),cX=yB({reflect:!0,type:String,attribute:yK.LANG}),c0=yB({reflect:!1,attribute:!1});var bT=yz("____private_lang_1"),bA=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,bT,{writable:!0,value:void 0}),c2(t),t._clickThrough=null,yq(t,bT)[bT]=c1(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=fP(null!=(e=n.currentAds)?e:[],gB);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}n(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=f0(this.lang);return yh(bw(),e.adClickThroughText)},f(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 yq(this,bT)[bT]},set:function(e){yq(this,bT)[bT]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._ads)||t.removeEventListener(bx,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(bx,this._updateFromPlayer))}}]),t}(ec);function bE(){var e=i([":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 bE=function(){return e},e}c1=(c4=(c3=a(bA,[[cJ,4,"clickThrough"],[cX,1,"lang"],[c0,4,"player"]],[cZ,cY],ec)).e)[0],c2=c4[1],c5=(c8=c3.c)[0],(0,c8[1])();var bS=dD(bE());function bL(){var e=i(['<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 bL=function(){return e},e}var bC=["adbegin","adend","adloaded","updatead","adskip"];hr=yO("theoplayer-ad-skip-button"),hn=fq(["player","lang"]),ha=yI(),ho=yI(),hl=yB({reflect:!0,type:String,attribute:yK.LANG}),hs=yB({reflect:!1,attribute:!1}),new(ht=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(W.styles,[bS]),hi(),t}return n(t,e),t}(o),c7=yz("____private__showCountdown_1"),c6=yz("____private__timeToSkip_2"),c9=yz("____private_lang_3"),he=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,c7,{writable:!0,value:void 0}),Object.defineProperty(t,c6,{writable:!0,value:void 0}),Object.defineProperty(t,c9,{writable:!0,value:void 0}),yq(t,c7)[c7]=(hp(t),hu(t,!1)),yq(t,c6)[c6]=hc(t,0),yq(t,c9)[c9]=hh(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=fP(null!=(e=n.currentAds)?e:[],gB);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(yK.DISABLED,""),t.setAttribute(yK.ARIA_LIVE,"off")):(t._showCountdown=!1,t.style.display="",t.removeAttribute(yK.DISABLED),t.setAttribute(yK.ARIA_LIVE,"polite"))},t}n(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=f0(this.lang),t={visibility:this._showCountdown?"visible":"hidden"},r={visibility:this._showCountdown?"hidden":"visible",pointerEvents:this._showCountdown?"none":""},n=e.formatNarrowDuration(vr(this._timeToSkip));return yh(bL(),gC(t),e.adSkipCountdownText(n),gC(r),e.adSkipButtonText,fg('<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'))},f(t,[{key:"_showCountdown",get:function(){return yq(this,c7)[c7]},set:function(e){yq(this,c7)[c7]=e}},{key:"_timeToSkip",get:function(){return yq(this,c6)[c6]},set:function(e){yq(this,c6)[c6]=e}},{key:"lang",get:function(){return yq(this,c9)[c9]},set:function(e){yq(this,c9)[c9]=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(bC,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(bC,this._onAdChange))}}]),t}(W),hu=(hf=(hy=a(he,[[ha,1,"_showCountdown"],[ho,1,"_timeToSkip"],[hl,1,"lang"],[hs,4,"player"]],[hr,hn],W)).e)[0],hc=hf[1],hh=hf[2],hp=hf[3],hd=(hv=hy.c)[0],hi=hv[1],ht),h_=fq(["player","lang"]),hg=yB({reflect:!0,type:String,attribute:yK.LANG});var bP=yz("____private_lang_1"),bR=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,bP,{writable:!0,value:void 0}),hm(t),t._badNetworkMode=!1,yq(t,bP)[bP]=hb(t,""),t.handleEnterBadNetworkMode_=function(){t._badNetworkMode=!0,t.handleEnterBadNetworkMode()},t.handleExitBadNetworkMode_=function(){t._badNetworkMode=!1,t.handleExitBadNetworkMode()},t}n(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){},r.handleExitBadNetworkMode=function(){},f(t,[{key:"lang",get:function(){return yq(this,bP)[bP]},set:function(e){yq(this,bP)[bP]=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}(t9);function bO(){var e=i(["<slot>","</slot>"]);return bO=function(){return e},e}hb=(hx=(hw=a(bR,[[hg,1,"lang"]],[h_],t9)).e)[0],hm=hx[1],hk=(hT=hw.c)[0],(0,hT[1])(),hA=yO("theolive-automatic-quality-selector");var bM=function(e){function t(){return e.apply(this,arguments)||this}n(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=f0(this.lang);return yh(bO(),e.highQualityLabel)},t}(hk);function bN(){var e=i(["[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 bN=function(){return e},e}hE=(hS=a(bM,[],[hA],hk).c)[0],(0,hS[1])();var bB=dD(bN());function bI(){var e=i(['<span part="icon">','<span part="warning-icon" style="','">',"</span></span>"]);return bI=function(){return e},e}function bD(){var e=i(["<slot>","</slot>"]);return bD=function(){return e},e}hO=yO("theolive-bad-network-button"),hM=fq(["player","lang"]),hB=yI(),hI=yB({reflect:!0,type:String,attribute:yK.LANG}),hD=yB({reflect:!1,attribute:!1}),new(hR=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(rz.styles,[bB]),hN(),t}return n(t,e),t}(o),hL=yz("____private__inBadNetworkMode_1"),hC=yz("____private_lang_2"),hP=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,hL,{writable:!0,value:void 0}),Object.defineProperty(t,hC,{writable:!0,value:void 0}),yq(t,hL)[hL]=(hU(t),h$(t,!1)),t.handleEnterBadNetworkMode_=function(){t._inBadNetworkMode=!0},t.handleExitBadNetworkMode_=function(){t._inBadNetworkMode=!1},yq(t,hC)[hC]=hF(t,""),t}n(t,e);var r=t.prototype;return r.willUpdate=function(t){e.prototype.willUpdate.call(this,t),this._updateAriaLabel()},r._updateAriaLabel=function(){var e=f0(this.lang);this.ariaLabel=e.openBadNetworkModeMenuAria},r.render=function(){var e={display:this._inBadNetworkMode?"":"none"};return yh(bI(),fg(gy),gC(e),fg('<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>'))},f(t,[{key:"_inBadNetworkMode",get:function(){return yq(this,hL)[hL]},set:function(e){yq(this,hL)[hL]=e}},{key:"lang",get:function(){return yq(this,hC)[hC]},set:function(e){yq(this,hC)[hC]=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}(rz),h$=(hz=(hj=a(hP,[[hB,1,"_inBadNetworkMode"],[hI,1,"lang"],[hD,4,"player"]],[hO,hM],rz)).e)[0],hF=hz[1],hU=hz[2],hq=(hH=hj.c)[0],hN=hH[1],hR),hV=yO("theolive-bad-network-quality-selector");var b$=function(e){function t(){return e.apply(this,arguments)||this}n(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=f0(this.lang);return yh(bD(),e.lowQualityLabel)},t}(hk);function bF(){var e=i(["<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 bF=function(){return e},e}hG=(hQ=a(b$,[],[hV],hk).c)[0],(0,hQ[1])(),hZ=yO("theolive-bad-network-menu"),new(hK=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vK],hY(),t}return n(t,e),t}(o),hW=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t._radioGroupRef=fs(),t._onChange=function(){t.dispatchEvent(new Event("change",{bubbles:!0}))},t}n(t,e);var r=t.prototype;return r.firstUpdated=function(){this._radioGroupRef.value&&!x(this._radioGroupRef.value,ru)&&customElements.upgrade(this._radioGroupRef.value)},r.render=function(){return yh(bF(),fh(this._radioGroupRef),this._onChange)},t}(yP),hJ=(hX=a(hW,[],[hZ],yP).c)[0],hY=hX[1],hK);var bU=((E={}).TopControlBar="top-control-bar",E.BottomControlBar="bottom-control-bar",E.Menu="menu",E),bq=[];function bj(e){bq.push(e)}function bz(){var e=i([':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 bz=function(){return e},e}var bH=dD(bz()),bV=function(){if("u">typeof document)for(var e,t=fk([["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 bG(){if(("u"<typeof navigator?"undefined":h(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 bQ(){if(("u"<typeof navigator?"undefined":h(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 bW="theoplayeruseridlechange",bK="theoplayerready";function bZ(){var e=i(["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 bZ=function(){return e},e}var bY=dD(bZ()),bJ="theoplayer-ui-global-styles",bX=!1;function b0(){var e=i(['<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 b0=function(){return e},e}var b1="theoplayer-ui-full-window";function b2(e){for(var t,r,n=fB(e).filter(fS),i=fk(n);!(r=i()).done;){var a=r.value;if("0"!==getComputedStyle(a).opacity){var o=vf.fromRect(a.getBoundingClientRect());o.width>0&&o.height>0&&(t=t?t.union(o):o)}}return t}function b5(){var e=i([':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 b5=function(){return e},e}h6=yO("theoplayer-ui"),pe=yB({reflect:!1,attribute:yK.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),pt=yB({reflect:!1,attribute:yK.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),pr=yB({reflect:!0,type:Boolean,attribute:yK.FLUID}),pn=yB({reflect:!0,type:String,attribute:yK.LANG}),pi=yB({reflect:!0,type:Boolean,attribute:yK.MUTED}),pa=yB({reflect:!0,type:Boolean,attribute:yK.AUTOPLAY}),po=yB({reflect:!0,type:Boolean,attribute:yK.FULLSCREEN}),pl=yB({reflect:!0,type:Boolean,attribute:yK.PAUSED}),ps=yB({reflect:!0,type:Boolean,attribute:yK.ENDED}),pu=yB({reflect:!0,type:Boolean,attribute:yK.CASTING}),pc=yB({reflect:!0,type:Boolean,attribute:yK.USER_IDLE}),ph=yB({reflect:!0,type:Number,attribute:yK.USER_IDLE_TIMEOUT,useDefault:!0}),pp=yB({reflect:!0,type:String,attribute:yK.DEVICE_TYPE}),pd=yB({reflect:!0,state:!0,type:Boolean,attribute:yK.MOBILE}),py=yB({reflect:!0,state:!0,type:Boolean,attribute:yK.TV}),pf=yB({reflect:!0,type:String,attribute:yK.STREAM_TYPE}),pv=yB({reflect:!0,type:Number,attribute:yK.DVR_THRESHOLD,useDefault:!0}),p_=yB({reflect:!0,state:!0,type:Boolean,attribute:yK.HAS_FIRST_PLAY}),pg=yB({reflect:!0,state:!0,type:Boolean,attribute:yK.PLAYING_AD}),pb=yB({reflect:!0,state:!0,type:Boolean,attribute:yK.HAS_ERROR}),pm=yB({reflect:!0,state:!0,type:Boolean,attribute:yK.FULLWINDOW}),pk=yB({reflect:!0,state:!0,type:Boolean,attribute:yK.MENU_OPENED}),new(h7=function(e){function r(){var r;return r=e.apply(this,arguments)||this,r.styles=[bH],r.shadowRootOptions=t({},yP.shadowRootOptions,{delegatesFocus:!0}),r.READY_EVENT=bK,h9(),r}return n(r,e),r}(o),h0=yz("____private_mobile_1"),h1=yz("____private_tv_2"),h2=yz("____private__hasFirstPlay_3"),h5=yz("____private__isPlayingAd_4"),h3=yz("____private__hasError_5"),h4=yz("____private__isFullWindow_6"),h8=function(r){function i(e){var n;return void 0===e&&(e={}),Object.defineProperty(n=r.call(this)||this,h0,{writable:!0,value:void 0}),Object.defineProperty(n,h1,{writable:!0,value:void 0}),Object.defineProperty(n,h2,{writable:!0,value:void 0}),Object.defineProperty(n,h5,{writable:!0,value:void 0}),Object.defineProperty(n,h3,{writable:!0,value:void 0}),Object.defineProperty(n,h4,{writable:!0,value:void 0}),pL(n),n._configuration={},n._playerRef=fs(),n._menuRef=fs(),n._menuGroupRef=fs(),n._menuOpened=!1,n._topChromeRef=fs(),n._topChromeSlotRef=fs(),n._bottomChromeRef=fs(),n._bottomChromeSlotRef=fs(),n._pointerType="",n._lastPointerUpTime=0,n._stateReceivers=[],n._player=void 0,n._source=void 0,n._muted=!1,n._autoplay=!1,n._fullscreen=!1,n._deviceType="desktop",n._streamType="vod",n._fluid=!1,n._language="",n._userIdle=!1,n._userIdleTimeout=void 0,n._isUserActive=!1,n._userIdleTimer=0,n._paused=!1,n._ended=!1,n._casting=!1,n._dvrThreshold=60,n._previewTime=NaN,n._activeVideoTrack=void 0,yq(n,h0)[h0]=pw(n,!1),yq(n,h1)[h1]=px(n,!1),yq(n,h2)[h2]=pT(n,!1),yq(n,h5)[h5]=pA(n,!1),yq(n,h3)[h3]=pE(n,!1),yq(n,h4)[h4]=pS(n,!1),n._onMutation=function(e){var t=n._playerRef.value;if(t)for(var r,i=fk(e);!(r=i()).done;){var a=r.value;if("childList"===a.type){for(var o=a.addedNodes,l=a.removedNodes,s=0;s<o.length;s++){var u=o[s];fE(u)&&fz(u,t,n.registerStateReceiver_)}for(var c=0;c<l.length;c++){var h=l[c];fE(h)&&fz(h,t,n.unregisterStateReceiver_)}}}},n._onSlotChange=function(){n._playerRef.value&&fz(n,n._playerRef.value,n.registerStateReceiver_),n._updateTextTrackMargins()},n.registerStateReceiver_=function(e){n._stateReceivers.indexOf(e)>=0||(n._stateReceivers.push(e),n.propagateStateToReceiver_(e))},n.unregisterStateReceiver_=function(e){var t,r,i,a;t=n._stateReceivers,!((r=t.indexOf(e))<0)&&(i=t,a=r,i.splice(a,1),1)&&n.removeStateFromReceiver_(e)},n._onToggleMenu=function(e){e.stopPropagation();var t=e.detail.menu,r=n._menuGroupRef.value;if(r){if(!r.getMenuById(t))return void console.error('<theoplayer-ui>: cannot find menu with ID "'+t+'"');var i=fS(e.target)?e.target:void 0;r.isMenuOpen(t)?n.closeMenu_():(n.closeMenu_(),n.openMenu_(t,i))}},n._onCloseMenu=function(e){e.stopPropagation(),n.closeMenu_()},n._onMenuChange=function(){var e=n._menuRef.value;e.removeEventListener("pointerdown",n._onMenuPointerDown),e.removeEventListener("click",n._onMenuClick),n._menuGroupRef.value.hasCurrentMenu()?(e.addEventListener("pointerdown",n._onMenuPointerDown),e.addEventListener("click",n._onMenuClick),n.menuOpened_=!0):n.menuOpened_=!1,n.updateUserIdle_()},n._onMenuPointerDown=function(e){n._pointerType=e.pointerType},n._onMenuClick=function(e){var t,r=null!=(t=e.pointerType)?t:n._pointerType;e.target===n._menuRef.value&&"mouse"===r&&n._menuGroupRef.value.closeCurrentMenu()&&e.preventDefault()},n._onEnterFullscreen=function(e){if(e.stopPropagation(),bV&&document[bV.fullscreenEnabled_]&&n[bV.requestFullscreen_]){var r,i,a=n[bV.requestFullscreen_](t({navigationUI:"hide"},null==(i=n._configuration)||null==(r=i.ui)?void 0:r.fullscreenOptions));a&&a.then&&a.then(fA,fA)}else n._player&&n._player.presentation.supportsMode("fullscreen")?n._player.presentation.requestMode("fullscreen"):n._isFullWindow||(n._isFullWindow=!0,document.documentElement.classList.add(b1),window.addEventListener("keydown",n._exitFullscreenOnEsc),n._onFullscreenChange())},n._onExitFullscreen=function(e){if(e.stopPropagation(),bV){var t=document[bV.exitFullscreen_]();t&&t.then&&t.then(fA,fA)}n._player&&"fullscreen"===n._player.presentation.currentMode&&n._player.presentation.requestMode("inline"),n._isFullWindow&&(n._isFullWindow=!1,document.documentElement.classList.remove(b1),window.removeEventListener("keydown",n._exitFullscreenOnEsc),n._onFullscreenChange())},n._onFullscreenChange=function(){var e=!1;if(void 0!==bV){var t=document[bV.fullscreenElement_];t&&(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)}(t,n))}e||void 0===n._player||"fullscreen"!==n._player.presentation.currentMode||(e=!0),n._isFullWindow&&(e=!0),n.fullscreen=e},n._exitFullscreenOnEsc=function(e){e.keyCode==yZ.ESCAPE&&n._onExitFullscreen(e)},n._updateAspectRatio=function(){if(void 0!==n._player){var e=n._player,t=e.videoWidth,r=e.videoHeight;t>0&&r>0?gx(n,{"--theoplayer-video-width":""+t,"--theoplayer-video-height":""+r}):gx(n,{"--theoplayer-video-width":"","--theoplayer-video-height":""})}},n._updateError=function(){var e=null==(t=n._player)?void 0:t.errorObject;n._hasError=void 0!==e;for(var t,r,i=fk(n._stateReceivers);!(r=i()).done;){var a=r.value;a[fF].indexOf("error")>=0&&(a.error=e)}},n._onPlay=function(){n._hasFirstPlay=!0,n.paused=!1,n._updateEnded()},n._onPause=function(){n.paused=!0,n._updateEnded()},n._updatePausedAndEnded=function(){n.paused=!n._player||n._player.paused,n._updateEnded()},n._updateEnded=function(){n.ended=!!n._player&&n._player.ended},n._updateStreamType=function(){void 0!==n._player&&(n.streamType=n.computeStreamType_())},n._updatePlaybackRate=function(){if(void 0!==n._player)for(var e,t=n._player.playbackRate,r=fk(n._stateReceivers);!(e=r()).done;){var i=e.value;i[fF].indexOf("playbackRate")>=0&&(i.playbackRate=t)}},n._updateMuted=function(){void 0!==n._player&&(n.muted=n._player.muted)},n._updateActiveVideoTrack=function(){if(void 0!==n._player){var e,t,r,i,a=fP(n._player.videoTracks,function(e){return e.enabled});n._activeVideoTrack!==a&&(null==(e=n._activeVideoTrack)||e.removeEventListener("activequalitychanged",n._updateActiveVideoQuality),null==(t=n._activeVideoTrack)||t.removeEventListener("targetqualitychanged",n._updateTargetVideoQualities),n._activeVideoTrack=a,n._updateActiveVideoQuality(),n._updateTargetVideoQualities(),null==(r=n._activeVideoTrack)||r.addEventListener("activequalitychanged",n._updateActiveVideoQuality),null==(i=n._activeVideoTrack)||i.addEventListener("targetqualitychanged",n._updateTargetVideoQualities))}},n._updateActiveVideoQuality=function(){for(var e,t,r=null==(e=n._activeVideoTrack)?void 0:e.activeQuality,i=fk(n._stateReceivers);!(t=i()).done;){var a=t.value;a[fF].indexOf("activeVideoQuality")>=0&&(a.activeVideoQuality=r)}},n._updateTargetVideoQualities=function(){for(var e,t=vJ(n._activeVideoTrack),r=fk(n._stateReceivers);!(e=r()).done;){var i=e.value;i[fF].indexOf("targetVideoQualities")>=0&&(i.targetVideoQualities=t)}},n._updateCasting=function(){var e,t,r;n.casting=null!=(e=null==(r=n._player)||null==(t=r.cast)?void 0:t.casting)&&e},n._updatePlayingAd=function(){var e,t,r;n._isPlayingAd=null!=(e=null==(r=n._player)||null==(t=r.ads)?void 0:t.playing)&&e},n._onSourceChange=function(){n.closeMenu_(),n._hasFirstPlay=void 0!==n._player&&!n._player.paused},n.setUserIdle_=function(){if(clearTimeout(n._userIdleTimer),n._userIdleTimer=0,!(n.userIdleTimeout<0)&&(n._isUserActive=!1,n.updateUserIdle_(),"tv"==n.deviceType&&n.isUserIdle_())){var e=vv();null!==e&&e.blur()}},n.scheduleUserIdle_=function(){if(n.setUserActive_(),clearTimeout(n._userIdleTimer),n.userIdleTimeout<0){n._userIdleTimer=0;return}n._userIdleTimer=setTimeout(n.setUserIdle_,1e3*n.userIdleTimeout)},n._onTvKeyDown=function(e){if(yJ(e.keyCode))return void n.setUserIdle_();var t=function e(t){if(fS(t)&&"none"!==getComputedStyle(t).display){if(null!==t.getAttribute(yK.TV_FOCUS))return fI(t);for(var r=fN(t),n=0;n<r.length;n++){var i=e(r[n]);if(i)return i}}}(n),r=fI(n),i=vv();if(!i){var a=null!=t?t:r;a.length>0&&(a[0].focus(),i=a[0])}!n.isUserIdle_()&&(e.keyCode===yZ.ENTER?null!==i&&(e.preventDefault(),i.click()):yY(e.keyCode)&&v_(n,r,e.keyCode)&&(e.preventDefault(),e.stopPropagation()))},n._onKeyUp=function(e){yJ(e.keyCode)||n.scheduleUserIdle_()},n._onPointerUp=function(e){"mouse"===e.pointerType?n.scheduleUserIdle_():"touch"===e.pointerType&&(n.isPlayerOrMedia_(e.target)&&n._isUserActive?n.setUserIdle_():(n.isUserIdle_()&&(n._lastPointerUpTime=performance.now(),n.addEventListener("click",n._onClickAfterPointerUp,!0)),n.scheduleUserIdle_()))},n._onClickAfterPointerUp=function(e){n.removeEventListener("click",n._onClickAfterPointerUp,!0),performance.now()-n._lastPointerUpTime<50&&(e.preventDefault(),e.stopPropagation())},n._onPointerMove=function(e){"mouse"===e.pointerType&&(n.setUserActive_(),n.isPlayerOrMedia_(e.target)&&n.scheduleUserIdle_())},n._onMouseLeave=function(){n.setUserIdle_()},n._onChromeSlotTransition=function(e){"opacity"===e.propertyName&&n._updateTextTrackMargins()},n._updateTextTrackMargins=function(){var e=n._player;if(void 0!==e){var t=n._topChromeSlotRef.value&&b2(n._topChromeSlotRef.value),r=n._bottomChromeSlotRef.value&&b2(n._bottomChromeSlotRef.value);e.textTrackStyle.marginTop=null==t?void 0:t.height,e.textTrackStyle.marginBottom=null==r?void 0:r.height}},n._onPreviewTimeChange=function(e){n._previewTime=e.detail.previewTime;for(var t,r=fk(n._stateReceivers);!(t=r()).done;){var i=t.value;i[fF].indexOf("previewTime")>=0&&(i.previewTime=n._previewTime)}},n._onDestroy=function(){n._player&&(n.removePlayerListeners_(n._player),n._player=void 0,n.propagatePlayerToAllReceivers_())},n._configuration=e,n._mutationObserver=new MutationObserver(n._onMutation),"u">typeof ResizeObserver&&(n._resizeObserver=new ResizeObserver(n._updateTextTrackMargins)),n.tryInitializePlayer_(),n}n(i,r);var a=i.prototype;return a._setConfiguration=function(e){this._configuration=null!=e?e:{},this.tryInitializePlayer_()},a._setSource=function(e){this._player?this._player.source=e:this._source=e},a.connectedCallback=function(){if(r.prototype.connectedCallback.call(this),!bX){if(dM)document.adoptedStyleSheets.push(bY.styleSheet);else if(!document.getElementById(bJ)){var e,t=document.createElement("style");t.id=bJ;var n=window.litNonce;void 0!==n&&t.setAttribute("nonce",n),e=bY.cssText,void 0===t.textContent?t.innerText=e:t.textContent=e,document.head.appendChild(t)}bX=!0}this.hasAttribute(yK.LANG)||(this.lang=null!=(a=null==(o=f$(this,"[lang]"))?void 0:o.lang)?a:""),this.hasAttribute(yK.DEVICE_TYPE)||(this.deviceType=bG()?"mobile":bQ()?"tv":"desktop"),this.hasAttribute(yK.PAUSED)||(this.paused=!0),this.tryInitializePlayer_();for(var i,a,o,l,s=fk(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!==bV&&(document.addEventListener(bV.fullscreenchange_,this._onFullscreenChange),document.addEventListener(bV.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)},a.tryInitializePlayer_=function(){void 0!==this._player||void 0===this._playerRef.value||(void 0!==this._configuration.license||void 0!==this._configuration.licenseUrl)&&(this._player=new e(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(vp(bK)))},a.createRenderRoot=function(){var e=r.prototype.createRenderRoot.call(this);return e.addEventListener(vM,this._onToggleMenu),e.addEventListener(gm,this._onEnterFullscreen),e.addEventListener(gk,this._onExitFullscreen),e.addEventListener(gN,this._onPreviewTimeChange),e},a.firstUpdated=function(){this._menuGroupRef.value&&!x(this._menuGroupRef,rN)&&customElements.upgrade(this._menuGroupRef.value),this.tryInitializePlayer_(),this._playerRef.value&&fz(this,this._playerRef.value,this.registerStateReceiver_)},a.disconnectedCallback=function(){var e;r.prototype.disconnectedCallback.call(this),null==(e=this._resizeObserver)||e.disconnect(),this._mutationObserver.disconnect(),this.shadowRoot.removeEventListener("slotchange",this._onSlotChange),void 0!==bV&&(document.removeEventListener(bV.fullscreenchange_,this._onFullscreenChange),document.removeEventListener(bV.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},a.propagateStateToReceiver_=function(e){var t,r=e[fF];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=vJ(this._activeVideoTrack))),r.indexOf("previewTime")>=0&&(e.previewTime=this._previewTime)},a.propagatePlayerToAllReceivers_=function(){for(var e,t=fk(this._stateReceivers);!(e=t()).done;){var r=e.value;r[fF].indexOf("player")>=0&&(r.player=this._player)}},a.removeStateFromReceiver_=function(e){e[fF].indexOf("player")>=0&&(e.player=void 0)},a.openMenu_=function(e,t){var r=vf.fromRect(this._topChromeRef.value.getBoundingClientRect()),n=vf.fromRect(this._bottomChromeRef.value.getBoundingClientRect()),i=!0,a=!0;if(void 0!==t){var o=vf.fromRect(this.getBoundingClientRect()),l=vf.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,gx(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"})},a.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},a.computeStreamType_=function(){var e=this.source,t=null!=(n=null==e?void 0:e.streamType)?n:this.getAttribute(yK.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"},a.isUserIdle_=function(){return!this._isUserActive&&!this.paused&&!this.casting&&!!this._menuGroupRef.value&&!this._menuGroupRef.value.hasCurrentMenu()},a.setUserActive_=function(){clearTimeout(this._userIdleTimer),this._isUserActive=!0,this.updateUserIdle_()},a.updateUserIdle_=function(){this.userIdle=this.isUserIdle_()},a.isPlayerOrMedia_=function(e){return e===this||this._playerRef.value.contains(e)},a.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)},a.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){}},a.render=function(){return yh(b0(),fh(this._playerRef),fh(this._topChromeRef),fh(this._topChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,fh(this._bottomChromeRef),fh(this._bottomChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,fh(this._menuRef),fh(this._menuGroupRef),this._onCloseMenu,this._onMenuChange)},f(i,[{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=fk(this._stateReceivers);!(t=r()).done;){var n=t.value;n[fF].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=fk(this._stateReceivers);!(t=r()).done;){var n=t.value;n[fF].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(vp(bW)))}},{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=fk(this._stateReceivers);!(t=r()).done;){var n=t.value;n[fF].indexOf("deviceType")>=0&&(n.deviceType=e)}}}},{key:"mobile",get:function(){return yq(this,h0)[h0]},set:function(e){yq(this,h0)[h0]=e}},{key:"tv",get:function(){return yq(this,h1)[h1]},set:function(e){yq(this,h1)[h1]=e}},{key:"streamType",get:function(){return this._streamType},set:function(e){if(this._streamType!==e){this._streamType=e;for(var t,r=fk(this._stateReceivers);!(t=r()).done;){var n=t.value;n[fF].indexOf("streamType")>=0&&(n.streamType=e)}var i=vp("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 yq(this,h2)[h2]},set:function(e){yq(this,h2)[h2]=e}},{key:"_isPlayingAd",get:function(){return yq(this,h5)[h5]},set:function(e){yq(this,h5)[h5]=e}},{key:"_hasError",get:function(){return yq(this,h3)[h3]},set:function(e){yq(this,h3)[h3]=e}},{key:"_isFullWindow",get:function(){return yq(this,h4)[h4]},set:function(e){yq(this,h4)[h4]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){this._menuOpened!==e&&(this._menuOpened=e,fM(this,yK.MENU_OPENED,e))}}]),i}(yP),pw=(pR=(pP=a(h8,[[pe,4,"configuration"],[pt,4,"source"],[pr,4,"fluid"],[pn,4,"lang"],[pi,4,"muted"],[pa,4,"autoplay"],[po,4,"fullscreen"],[pl,4,"paused"],[ps,4,"ended"],[pu,4,"casting"],[pc,4,"userIdle"],[ph,4,"userIdleTimeout"],[pp,4,"deviceType"],[pd,1,"mobile"],[py,1,"tv"],[pf,4,"streamType"],[pv,4,"dvrThreshold"],[p_,1,"_hasFirstPlay"],[pg,1,"_isPlayingAd"],[pb,1,"_hasError"],[pm,1,"_isFullWindow"],[pk,4,"menuOpened_"]],[h6],yP)).e)[0],px=pR[1],pT=pR[2],pA=pR[3],pE=pR[4],pS=pR[5],pL=pR[6],pC=(pO=pP.c)[0],h9=pO[1],h7);var b3=dD(b5());function b4(){var e=i(["<theoplayer-ui ",' .configuration="','" .lang="','" .fluid="','" .muted="','" .autoplay="','" .deviceType="','" .streamType="','" .userIdleTimeout="','" .dvrThreshold="','" @theoplayerready="','" @theoplayeruseridlechange="','" @theoplayerstreamtypechange="','">',"</theoplayer-ui>"]);return b4=function(){return e},e}function b8(){var e=i(['<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 b8=function(){return e},e}function b7(){var e=i([':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 b7=function(){return e},e}pH=yO("theoplayer-default-ui"),pG=yI(),S={slot:"title",flatten:!0},pQ=yB({reflect:!1,attribute:yK.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),pW=yB({reflect:!1,attribute:yK.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),pK=yB({reflect:!0,type:Boolean,attribute:yK.FLUID}),pZ=yB({reflect:!0,type:String,attribute:yK.LANG}),pY=yB({reflect:!0,type:Boolean,attribute:yK.MUTED}),pJ=yB({reflect:!0,type:Boolean,attribute:yK.AUTOPLAY}),pX=yB({reflect:!0,type:String,attribute:yK.STREAM_TYPE}),p0=yB({reflect:!0,type:Number,attribute:yK.USER_IDLE_TIMEOUT,useDefault:!0}),p1=yB({reflect:!0,type:String,attribute:yK.DEVICE_TYPE}),p2=yB({reflect:!0,state:!0,type:Boolean,attribute:yK.MOBILE}),p5=yB({reflect:!0,state:!0,type:Boolean,attribute:yK.TV}),p3=yB({reflect:!0,type:Number,attribute:yK.DVR_THRESHOLD,useDefault:!0}),p4=yI(),new(pz=function(e){function r(){var r;return r=e.apply(this,arguments)||this,r.styles=[b3],r.shadowRootOptions=t({},yP.shadowRootOptions,{delegatesFocus:!0}),r.READY_EVENT=bK,pV(),r}return n(r,e),r}(o),pM=yz("____private__timeRangeInert_1"),pN=yz("____private_titleSlotNodes_2"),pB=yz("____private_fluid_3"),pI=yz("____private_muted_4"),pD=yz("____private_autoplay_5"),p$=yz("____private_streamType_6"),pF=yz("____private_mobile_7"),pU=yz("____private_tv_8"),pq=yz("____private__hasTitle_9"),pj=function(e){function r(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this)||this,pM,{writable:!0,value:void 0}),Object.defineProperty(r,pN,{writable:!0,value:void 0}),Object.defineProperty(r,pB,{writable:!0,value:void 0}),Object.defineProperty(r,pI,{writable:!0,value:void 0}),Object.defineProperty(r,pD,{writable:!0,value:void 0}),Object.defineProperty(r,p$,{writable:!0,value:void 0}),Object.defineProperty(r,pF,{writable:!0,value:void 0}),Object.defineProperty(r,pU,{writable:!0,value:void 0}),Object.defineProperty(r,pq,{writable:!0,value:void 0}),da(r),r._uiRef=fs(),yq(r,pM)[pM]=p8(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,yq(r,pN)[pN]=p7(r),yq(r,pB)[pB]=p6(r,!1),yq(r,pI)[pI]=p9(r,!1),yq(r,pD)[pD]=de(r,!1),yq(r,p$)[p$]=dt(r,"vod"),yq(r,pF)[pF]=dr(r,!1),yq(r,pU)[pU]=dn(r,!1),yq(r,pq)[pq]=di(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(vp(bW))},r._onTitleSlotChange=function(){r._hasTitle=r.titleSlotNodes.length>0},r.configuration=t,r}n(r,e);var i=r.prototype;return i.connectedCallback=function(){if(e.prototype.connectedCallback.call(this),this.hasAttribute(yK.LANG)||(this.lang=null!=(t=null==(r=f$(this,"[lang]"))?void 0:r.lang)?t:""),this.hasAttribute(yK.DEVICE_TYPE)||(this.deviceType=bG()?"mobile":bQ()?"tv":"desktop"),!this._appliedExtensions){this._appliedExtensions=!0;for(var t,r,n,i=fk(bq);!(n=i()).done;)(0,n.value)(this)}this._onTitleSlotChange()},i.disconnectedCallback=function(){clearTimeout(this._timeRangeInertTimeout)},i.firstUpdated=function(){this._source&&(this._uiRef.value.source=this._source,this._source=void 0)},i._onUiReady=function(){this.dispatchEvent(vp(bK))},i.render=function(){return yh(b4(),fh(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())},i.renderUiContent=function(){return yh(b8(),gC({display:this._hasTitle?"":"none"}),this._onTitleSlotChange,this._timeRangeInert,gC({display:"live"===this.streamType?"none":""}))},f(r,[{key:"_timeRangeInert",get:function(){return yq(this,pM)[pM]},set:function(e){yq(this,pM)[pM]=e}},{key:"titleSlotNodes",get:function(){return yq(this,pN)[pN]},set:function(e){yq(this,pN)[pN]=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 r;this._configuration=t({},e,{ads:t({},null!=(r=e.ads)?r:{},{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 yq(this,pB)[pB]},set:function(e){yq(this,pB)[pB]=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 yq(this,pI)[pI]},set:function(e){yq(this,pI)[pI]=e}},{key:"autoplay",get:function(){return yq(this,pD)[pD]},set:function(e){yq(this,pD)[pD]=e}},{key:"streamType",get:function(){return yq(this,p$)[p$]},set:function(e){yq(this,p$)[p$]=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 yq(this,pF)[pF]},set:function(e){yq(this,pF)[pF]=e}},{key:"tv",get:function(){return yq(this,pU)[pU]},set:function(e){yq(this,pU)[pU]=e}},{key:"dvrThreshold",get:function(){return this._dvrThreshold},set:function(e){this._dvrThreshold=isNaN(e)?0:e}},{key:"_hasTitle",get:function(){return yq(this,pq)[pq]},set:function(e){yq(this,pq)[pq]=e}}]),r}(yP),p8=(du=(ds=a(pj,[[pG,1,"_timeRangeInert"],[function(e,t){var r=(null!=S?S:{}).slot,n="slot"+(r?"[name="+r+"]":":not([name])");return yD(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(S))?e:[]}})},1,"titleSlotNodes"],[pQ,4,"configuration"],[pW,4,"source"],[pK,1,"fluid"],[pZ,4,"lang"],[pY,1,"muted"],[pJ,1,"autoplay"],[pX,1,"streamType"],[p0,4,"userIdleTimeout"],[p1,4,"deviceType"],[p2,1,"mobile"],[p5,1,"tv"],[p3,4,"dvrThreshold"],[p4,1,"_hasTitle"]],[pH],yP)).e)[0],p7=du[1],p6=du[2],p9=du[3],de=du[4],dt=du[5],dr=du[6],dn=du[7],di=du[8],da=du[9],dl=(dc=ds.c)[0],pV=dc[1],pz);var b6=dD(b7());function b9(){var e=i(['<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 b9=function(){return e},e}d_=yO("theolive-default-ui"),db=yI(),dm=yI(),dk=yI(),dw=yI(),new(dv=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[b6],dg(),t}return n(t,e),t}(o),dh=yz("____private__announcementType_1"),dp=yz("____private__announcementMessage_2"),dd=yz("____private__hidePlayButton_3"),dy=yz("____private__hideErrorDisplay_4"),df=function(e){function t(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this,t)||this,dh,{writable:!0,value:void 0}),Object.defineProperty(r,dp,{writable:!0,value:void 0}),Object.defineProperty(r,dd,{writable:!0,value:void 0}),Object.defineProperty(r,dy,{writable:!0,value:void 0}),yq(r,dh)[dh]=(dS(r),dx(r,"")),yq(r,dp)[dp]=dT(r,""),yq(r,dd)[dd]=dA(r,!1),yq(r,dy)[dy]=dE(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}n(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(yK.HAS_ERROR),this._hideErrorDisplay=!0},r.stopHidingPlayerError=function(){var e;null==(e=this._uiRef.value)||e.setAttribute(yK.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=f0(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 yh(b9(),gC(t),e.liveStreamLoading,gC(r),e.liveStreamOffline,gC(n),this._announcementMessage,gC(i),gC(i),gC(a))},f(t,[{key:"_announcementType",get:function(){return yq(this,dh)[dh]},set:function(e){yq(this,dh)[dh]=e}},{key:"_announcementMessage",get:function(){return yq(this,dp)[dp]},set:function(e){yq(this,dp)[dp]=e}},{key:"_hidePlayButton",get:function(){return yq(this,dd)[dd]},set:function(e){yq(this,dd)[dd]=e}},{key:"_hideErrorDisplay",get:function(){return yq(this,dy)[dy]},set:function(e){yq(this,dy)[dy]=e}}]),t}(dl),dx=(dP=(dC=a(df,[[db,1,"_announcementType"],[dm,1,"_announcementMessage"],[dk,1,"_hidePlayButton"],[dw,1,"_hideErrorDisplay"]],[d_],dl)).e)[0],dT=dP[1],dA=dP[2],dE=dP[3],dS=dP[4],dL=(dR=dC.c)[0],dg=dR[1],dv);var me="2.2.0";export{aD as ActiveQualityDisplay,c5 as AdClickThroughButton,cG as AdCountdown,cC as AdDisplay,hd as AdSkipButton,uk as AirPlayButton,yK as Attribute,hE as AutomaticQualitySelector,hq as BadNetworkModeButton,hJ as BadNetworkModeMenu,hG as BadNetworkModeSelector,W as Button,gJ as CastButton,s2 as ChromecastButton,us as ChromecastDisplay,rJ as CloseMenuButton,gE as ColorStops,D as ControlBar,dl as DefaultUI,t0 as DurationDisplay,sU as ErrorDisplay,bU as ExtensionSlot,oY as FullscreenButton,uK as GestureReceiver,i$ as LanguageMenu,iW as LanguageMenuButton,ec as LinkButton,cu as LiveButton,uB as LoadingIndicator,ne as MediaTrackRadioButton,rw as Menu,rz as MenuButton,rN as MenuGroup,eJ as MuteButton,eB as PlayButton,aT as PlaybackRateDisplay,ad as PlaybackRateMenu,ai as PlaybackRateMenuButton,i8 as PlaybackRateRadioGroup,lP as PreviewThumbnail,l2 as PreviewTimeDisplay,aZ as QualityRadioButton,on as QualityRadioGroup,t9 as RadioButton,ru as RadioGroup,lf as Range,ta as SeekButton,oE as SettingsMenu,oB as SettingsMenuButton,eg as SlotContainer,fj as StateReceiverMixin,dL as THEOliveDefaultUI,nj as TextTrackOffRadioButton,nO as TextTrackRadioButton,nX as TextTrackStyleDisplay,i_ as TextTrackStyleMenu,ir as TextTrackStyleRadioGroup,op as TextTrackStyleResetButton,tU as TimeDisplay,sh as TimeRange,nm as TrackRadioGroup,pC as UIContainer,sk as VolumeRange,f1 as addLocale,y2 as buttonTemplate,ff as linkButtonTemplate,vI as menuGroupTemplate,vP as menuTemplate,bj as registerExtension,fq as stateReceiver,me as version};