@mux/mux-player 2.8.1-canary.0-735cb9b → 2.8.1-canary.0-e1a3c8d

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.
package/dist/index.cjs.js CHANGED
@@ -1561,7 +1561,7 @@ svg, img, ::slotted(svg), ::slotted(img) {
1561
1561
  </svg>`,gp=c.createElement("template");gp.innerHTML=`
1562
1562
  <slot name="icon">${Fb}</slot>
1563
1563
  `;var xu=class extends P{static get observedAttributes(){return[...super.observedAttributes,s.MEDIA_AUDIO_TRACK_ENABLED,s.MEDIA_AUDIO_TRACK_UNAVAILABLE]}constructor(){super({slotTemplate:gp})}get mediaAudioTrackEnabled(){return I(this,s.MEDIA_AUDIO_TRACK_ENABLED)}set mediaAudioTrackEnabled(e){k(this,s.MEDIA_AUDIO_TRACK_ENABLED,e)}};l.customElements.get("media-audio-track-button")||l.customElements.define("media-audio-track-button",xu);var bo=class extends De{static get observedAttributes(){return[...super.observedAttributes,s.MEDIA_AUDIO_TRACK_ENABLED,s.MEDIA_AUDIO_TRACK_UNAVAILABLE]}init(){let e=c.createElement("media-audio-track-button");e.part.add("button"),e.preventClick=!0;let t=c.createElement("media-audio-track-listbox");t.part.add("listbox"),t.setAttribute("exportparts","option, option-selected, indicator");let a=this.shadowRoot.querySelector("slot[name=button]"),r=this.shadowRoot.querySelector("slot[name=listbox]");a.textContent="",r.textContent="",a.append(e),r.append(t)}};l.customElements.get("media-audio-track-selectmenu")||l.customElements.define("media-audio-track-selectmenu",bo);var E=yv(require("@mux/mux-video")),Q=require("@mux/playback-core");var wp=require("@mux/mux-video");var Vb="en",ki={code:Vb};var _p="en";function C(i,e=!0){var r,n;let t=e&&(n=(r=ki)==null?void 0:r[i])!=null?n:i,a=e?ki.code:_p;return new Du(t,a)}var Du=class{constructor(e,t=(a=>(a=ki.code)!=null?a:_p)()){this.message=e,this.locale=t}format(e){return this.message.replace(/\{(\w+)\}/g,(t,a)=>{var r;return(r=e[a])!=null?r:""})}toString(){return this.message}};function Ap(i){let e="";return Object.entries(i).forEach(([t,a])=>{a!=null&&(e+=`${Eo(t)}: ${a}; `)}),e?e.trim():void 0}function Eo(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function go(i){return i.replace(/[-_]([a-z])/g,(e,t)=>t.toUpperCase())}function Oe(i){if(i==null)return;let e=+i;return Number.isNaN(e)?void 0:e}function Ou(i){let e=Kb(i).toString();return e?"?"+e:""}function Kb(i){let e={};for(let t in i)i[t]!=null&&(e[t]=i[t]);return new URLSearchParams(e)}function qt(i){let e=(i!=null?i:"").split(".")[1];if(!e)return{};let t=e.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(atob(t).split("").map(function(r){return"%"+("00"+r.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(a)}var Pu=(i,e)=>!i||!e?!1:i.contains(e)?!0:Pu(i,e.getRootNode().host);var _o=require("@mux/playback-core");var yp="mux.com",Yb=()=>{try{return"2.8.1"}catch{}return"UNKNOWN"},Gb=Yb(),yo=()=>Gb,Tp=(i,{token:e,customDomain:t=yp,thumbnailTime:a,programTime:r}={})=>{let n=e==null?a:void 0,{aud:o}=qt(e);if(!(e&&o!=="t"))return`https://image.${t}/${i}/thumbnail.webp${Ou({token:e,time:n,program_time:r})}`},kp=(i,{token:e,customDomain:t=yp,programStartTime:a,programEndTime:r}={})=>{let{aud:n}=qt(e);if(!(e&&n!=="s"))return`https://image.${t}/${i}/storyboard.vtt${Ou({token:e,format:"webp",program_start_time:a,program_end_time:r})}`},Sr=i=>{if(i){if([_o.StreamTypes.LIVE,_o.StreamTypes.ON_DEMAND].includes(i))return i;if(i!=null&&i.includes("live"))return _o.StreamTypes.LIVE}};var qb={crossorigin:"crossOrigin",playsinline:"playsInline"};function Sp(i){var e;return(e=qb[i])!=null?e:go(i)}var Si,Ii,pe,Ao=class{constructor(e,t){z(this,Si,void 0);z(this,Ii,void 0);z(this,pe,[]);Ce(this,Si,e),Ce(this,Ii,t)}[Symbol.iterator](){return L(this,pe).values()}get length(){return L(this,pe).length}get value(){var e;return(e=L(this,pe).join(" "))!=null?e:""}set value(e){var t;e!==this.value&&(Ce(this,pe,[]),this.add(...(t=e==null?void 0:e.split(" "))!=null?t:[]))}toString(){return this.value}item(e){return L(this,pe)[e]}values(){return L(this,pe).values()}keys(){return L(this,pe).keys()}forEach(e){L(this,pe).forEach(e)}add(...e){var t,a;e.forEach(r=>{this.contains(r)||L(this,pe).push(r)}),!(this.value===""&&!((t=L(this,Si))!=null&&t.hasAttribute(`${L(this,Ii)}`)))&&((a=L(this,Si))==null||a.setAttribute(`${L(this,Ii)}`,`${this.value}`))}remove(...e){var t;e.forEach(a=>{L(this,pe).splice(L(this,pe).indexOf(a),1)}),(t=L(this,Si))==null||t.setAttribute(`${L(this,Ii)}`,`${this.value}`)}contains(e){return L(this,pe).includes(e)}toggle(e,t){return typeof t!="undefined"?t?(this.add(e),!0):(this.remove(e),!1):this.contains(e)?(this.remove(e),!1):(this.add(e),!0)}replace(e,t){this.remove(e),this.add(t)}};Si=new WeakMap,Ii=new WeakMap,pe=new WeakMap;var Ip=`[mux-player ${yo()}]`;function Zt(...i){console.warn(Ip,...i)}function Ie(...i){console.error(Ip,...i)}function Nu(i){var t;let e=(t=i.message)!=null?t:"";if(i.context&&(e+=` ${i.context}`),i.file){let a="https://github.com/muxinc/elements/blob/main/errors/";e+=` ${C("Read more: ")}
1564
- ${a}${i.file}`}Zt(e)}var he={AUTOPLAY:"autoplay",CROSSORIGIN:"crossorigin",LOOP:"loop",MUTED:"muted",PLAYSINLINE:"playsinline",PRELOAD:"preload"},Ci={VOLUME:"volume",PLAYBACKRATE:"playbackrate",MUTED:"muted"},Mp=Object.freeze({length:0,start(i){let e=i>>>0;if(e>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${e}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(i){let e=i>>>0;if(e>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${e}) is greater than or equal to the maximum bound (${this.length}).`);return 0}}),Zb=wp.VideoEvents.filter(i=>i!=="error"),Qb=Object.values(he).filter(i=>![he.PLAYSINLINE].includes(i)),zb=Object.values(Ci),ha,Uu=class extends q.HTMLElement{constructor(){super();z(this,ha,new WeakMap);let t=r=>{for(let n of r)n.type==="childList"&&(n.removedNodes.forEach(o=>{var d;(d=L(this,ha).get(o))==null||d.remove()}),n.addedNodes.forEach(o=>{var u;let d=o;d!=null&&d.slot||(u=this.media)==null||u.append(Lp(L(this,ha),o))}))};new MutationObserver(t).observe(this,{childList:!0,subtree:!0}),Zb.forEach(r=>{var n;(n=this.media)==null||n.addEventListener(r,o=>{this.dispatchEvent(new Event(o.type))})})}static get observedAttributes(){return[...Qb,...zb]}init(){this.querySelectorAll(":scope > :not([slot])").forEach(t=>{var a;(a=this.media)==null||a.append(Lp(L(this,ha),t))})}attributeChangedCallback(t,a,r){var n,o;switch(t){case Ci.MUTED:{this.media&&(this.media.muted=r!=null,this.media.defaultMuted=r!=null);return}case Ci.VOLUME:{let d=(n=Oe(r))!=null?n:1;this.media&&(this.media.volume=d);return}case Ci.PLAYBACKRATE:{let d=(o=Oe(r))!=null?o:1;this.media&&(this.media.playbackRate=d,this.media.defaultPlaybackRate=d);return}}}play(){var t,a;return(a=(t=this.media)==null?void 0:t.play())!=null?a:Promise.reject()}pause(){var t;(t=this.media)==null||t.pause()}load(){var t;(t=this.media)==null||t.load()}requestCast(t){var a;return(a=this.media)==null?void 0:a.requestCast(t)}get media(){var t;return(t=this.shadowRoot)==null?void 0:t.querySelector("mux-video")}get audioTracks(){return this.media.audioTracks}get videoTracks(){return this.media.videoTracks}get audioRenditions(){return this.media.audioRenditions}get videoRenditions(){return this.media.videoRenditions}get paused(){var t,a;return(a=(t=this.media)==null?void 0:t.paused)!=null?a:!0}get duration(){var t,a;return(a=(t=this.media)==null?void 0:t.duration)!=null?a:NaN}get ended(){var t,a;return(a=(t=this.media)==null?void 0:t.ended)!=null?a:!1}get buffered(){var t,a;return(a=(t=this.media)==null?void 0:t.buffered)!=null?a:Mp}get seekable(){var t,a;return(a=(t=this.media)==null?void 0:t.seekable)!=null?a:Mp}get readyState(){var t,a;return(a=(t=this.media)==null?void 0:t.readyState)!=null?a:0}get videoWidth(){var t,a;return(a=(t=this.media)==null?void 0:t.videoWidth)!=null?a:0}get videoHeight(){var t,a;return(a=(t=this.media)==null?void 0:t.videoHeight)!=null?a:0}get currentSrc(){var t,a;return(a=(t=this.media)==null?void 0:t.currentSrc)!=null?a:""}get currentTime(){var t,a;return(a=(t=this.media)==null?void 0:t.currentTime)!=null?a:0}set currentTime(t){this.media&&(this.media.currentTime=Number(t))}get volume(){var t,a;return(a=(t=this.media)==null?void 0:t.volume)!=null?a:1}set volume(t){this.media&&(this.media.volume=Number(t))}get playbackRate(){var t,a;return(a=(t=this.media)==null?void 0:t.playbackRate)!=null?a:1}set playbackRate(t){this.media&&(this.media.playbackRate=Number(t))}get defaultPlaybackRate(){var t;return(t=Oe(this.getAttribute(Ci.PLAYBACKRATE)))!=null?t:1}set defaultPlaybackRate(t){t!=null?this.setAttribute(Ci.PLAYBACKRATE,`${t}`):this.removeAttribute(Ci.PLAYBACKRATE)}get crossOrigin(){return Ir(this,he.CROSSORIGIN)}set crossOrigin(t){this.setAttribute(he.CROSSORIGIN,`${t}`)}get autoplay(){return Ir(this,he.AUTOPLAY)!=null}set autoplay(t){t?this.setAttribute(he.AUTOPLAY,typeof t=="string"?t:""):this.removeAttribute(he.AUTOPLAY)}get loop(){return Ir(this,he.LOOP)!=null}set loop(t){t?this.setAttribute(he.LOOP,""):this.removeAttribute(he.LOOP)}get muted(){var t,a;return(a=(t=this.media)==null?void 0:t.muted)!=null?a:!1}set muted(t){this.media&&(this.media.muted=!!t)}get defaultMuted(){return Ir(this,he.MUTED)!=null}set defaultMuted(t){t?this.setAttribute(he.MUTED,""):this.removeAttribute(he.MUTED)}get playsInline(){return Ir(this,he.PLAYSINLINE)!=null}set playsInline(t){Ie("playsInline is set to true by default and is not currently supported as a setter.")}get preload(){return this.media?this.media.preload:this.getAttribute("preload")}set preload(t){["","none","metadata","auto"].includes(t)?this.setAttribute(he.PRELOAD,t):this.removeAttribute(he.PRELOAD)}};ha=new WeakMap;function Ir(i,e){return i.media?i.media.getAttribute(e):i.getAttribute(e)}function Lp(i,e){let t=i.get(e);return t||(t=e.cloneNode(),i.set(e,t)),t}var Bu=Uu;var Xb=Object.defineProperty,Jb=(i,e,t)=>e in i?Xb(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,jb=(i,e,t)=>(Jb(i,typeof e!="symbol"?e+"":e,t),t),Pp=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},S=(i,e,t)=>(Pp(i,e,"read from private field"),t?t.call(i):e.get(i)),Et=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Mt=(i,e,t,a)=>(Pp(i,e,"write to private field"),a?a.call(i,t):e.set(i,t),t),pa,To,Mi,Cr,Qt,zt,Xt,Li,va,ko,Qe,Rp=1,xp=0,e0=1,t0={processCallback(i,e,t){if(t){for(let[a,r]of e)if(a in t){let n=t[a];typeof n=="boolean"&&r instanceof ve&&typeof r.element[r.attributeName]=="boolean"?r.booleanValue=n:typeof n=="function"&&r instanceof ve?r.element[r.attributeName]=n:r.value=n}}}},Lt=class extends l.DocumentFragment{constructor(e,t,a=t0){var r;super(),Et(this,pa,void 0),Et(this,To,void 0),this.append(e.content.cloneNode(!0)),Mt(this,pa,Np(this)),Mt(this,To,a),(r=a.createCallback)==null||r.call(a,this,S(this,pa),t),a.processCallback(this,S(this,pa),t)}update(e){S(this,To).processCallback(this,S(this,pa),e)}};pa=new WeakMap;To=new WeakMap;var Np=(i,e=[])=>{let t,a;for(let r of i.attributes||[])if(r.value.includes("{{")){let n=new Wu;for([t,a]of Op(r.value))if(!t)n.append(a);else{let o=new ve(i,r.name,r.namespaceURI);n.append(o),e.push([a,o])}r.value=n.toString()}for(let r of i.childNodes)if(r.nodeType===Rp&&!(r instanceof HTMLTemplateElement))Np(r,e);else if(r.nodeType===Rp||r.data.includes("{{")){let n=[];if(r.data)for([t,a]of Op(r.data))if(!t)n.push(new Text(a));else{let o=new wt(i);n.push(o),e.push([a,o])}else if(r instanceof HTMLTemplateElement){let o=new Mr(i,r);n.push(o),e.push([o.expression,o])}r.replaceWith(...n.flatMap(o=>o.replacementNodes||[o]))}return e},Dp={},Op=i=>{let e="",t=0,a=Dp[i],r=0,n;if(a)return a;for(a=[];n=i[r];r++)n==="{"&&i[r+1]==="{"&&i[r-1]!=="\\"&&i[r+2]&&++t==1?(e&&a.push([xp,e]),e="",r++):n==="}"&&i[r+1]==="}"&&i[r-1]!=="\\"&&!--t?(a.push([e0,e.trim()]),e="",r++):e+=n||"";return e&&a.push([xp,(t>0?"{{":"")+e]),Dp[i]=a},i0=11,So=class{get value(){return""}set value(e){}toString(){return this.value}},Up=new WeakMap,Wu=class{constructor(){Et(this,Mi,[])}[Symbol.iterator](){return S(this,Mi).values()}get length(){return S(this,Mi).length}item(e){return S(this,Mi)[e]}append(...e){for(let t of e)t instanceof ve&&Up.set(t,this),S(this,Mi).push(t)}toString(){return S(this,Mi).join("")}};Mi=new WeakMap;var ve=class extends So{constructor(e,t,a){super(),Et(this,Li),Et(this,Cr,""),Et(this,Qt,void 0),Et(this,zt,void 0),Et(this,Xt,void 0),Mt(this,Qt,e),Mt(this,zt,t),Mt(this,Xt,a)}get attributeName(){return S(this,zt)}get attributeNamespace(){return S(this,Xt)}get element(){return S(this,Qt)}get value(){return S(this,Cr)}set value(e){S(this,Cr)!==e&&(Mt(this,Cr,e),!S(this,Li,va)||S(this,Li,va).length===1?e==null?S(this,Qt).removeAttributeNS(S(this,Xt),S(this,zt)):S(this,Qt).setAttributeNS(S(this,Xt),S(this,zt),e):S(this,Qt).setAttributeNS(S(this,Xt),S(this,zt),S(this,Li,va)))}get booleanValue(){return S(this,Qt).hasAttributeNS(S(this,Xt),S(this,zt))}set booleanValue(e){if(!S(this,Li,va)||S(this,Li,va).length===1)this.value=e?"":null;else throw new DOMException("Value is not fully templatized")}};Cr=new WeakMap;Qt=new WeakMap;zt=new WeakMap;Xt=new WeakMap;Li=new WeakSet;va=function(){return Up.get(this)};var wt=class extends So{constructor(e,t){super(),Et(this,ko,void 0),Et(this,Qe,void 0),Mt(this,ko,e),Mt(this,Qe,t?[...t]:[new Text])}get replacementNodes(){return S(this,Qe)}get parentNode(){return S(this,ko)}get nextSibling(){return S(this,Qe)[S(this,Qe).length-1].nextSibling}get previousSibling(){return S(this,Qe)[0].previousSibling}get value(){return S(this,Qe).map(e=>e.textContent).join("")}set value(e){this.replace(e)}replace(...e){let t=e.flat().flatMap(a=>a==null?[new Text]:a.forEach?[...a]:a.nodeType===i0?[...a.childNodes]:a.nodeType?[a]:[new Text(a)]);t.length||t.push(new Text),Mt(this,Qe,a0(S(this,Qe)[0].parentNode,S(this,Qe),t,this.nextSibling))}};ko=new WeakMap;Qe=new WeakMap;var Mr=class extends wt{constructor(e,t){let a=t.getAttribute("directive")||t.getAttribute("type"),r=t.getAttribute("expression")||t.getAttribute(a)||"";r.startsWith("{{")&&(r=r.trim().slice(2,-2).trim()),super(e),jb(this,"directive"),this.expression=r,this.template=t,this.directive=a}};function a0(i,e,t,a=null){let r=0,n,o,d,u=t.length,m=e.length;for(;r<u&&r<m&&e[r]==t[r];)r++;for(;r<u&&r<m&&t[u-1]==e[m-1];)a=t[--m,--u];if(r==m)for(;r<u;)i.insertBefore(t[r++],a);if(r==u)for(;r<m;)i.removeChild(e[r++]);else{for(n=e[r];r<u;)d=t[r++],o=n?n.nextSibling:a,n==d?n=o:r<u&&t[r]==o?(i.replaceChild(d,n),n=o):i.insertBefore(d,n);for(;n!=a;)o=n.nextSibling,i.removeChild(n),n=o}return t}var Bp={string:i=>String(i)},Co=class{constructor(e){this.template=e,this.state=void 0}},wi=new WeakMap,Ri=new WeakMap,Hu={partial:(i,e)=>{e[i.expression]=new Co(i.template)},if:(i,e)=>{var t;if(Hp(i.expression,e))if(wi.get(i)!==i.template){wi.set(i,i.template);let a=new Lt(i.template,e,Mo);i.replace(a),Ri.set(i,a)}else(t=Ri.get(i))==null||t.update(e);else i.replace(""),wi.delete(i),Ri.delete(i)}},r0=Object.keys(Hu),Mo={processCallback(i,e,t){var a,r;if(t)for(let[n,o]of e){if(o instanceof Mr){if(!o.directive){let u=r0.find(m=>o.template.hasAttribute(m));u&&(o.directive=u,o.expression=o.template.getAttribute(u))}(a=Hu[o.directive])==null||a.call(Hu,o,t);continue}let d=Hp(n,t);if(d instanceof Co){wi.get(o)!==d.template?(wi.set(o,d.template),d=new Lt(d.template,d.state,Mo),o.value=d,Ri.set(o,d)):(r=Ri.get(o))==null||r.update(d.state);continue}d?(o instanceof ve&&o.attributeName.startsWith("aria-")&&(d=String(d)),o instanceof ve?typeof d=="boolean"?o.booleanValue=d:typeof d=="function"?o.element[o.attributeName]=d:o.value=d:(o.value=d,wi.delete(o),Ri.delete(o))):o instanceof ve?o.value=void 0:(o.value=void 0,wi.delete(o),Ri.delete(o))}}},Wp={"!":i=>!i,"!!":i=>!!i,"==":(i,e)=>i==e,"!=":(i,e)=>i!=e,">":(i,e)=>i>e,">=":(i,e)=>i>=e,"<":(i,e)=>i<e,"<=":(i,e)=>i<=e,"??":(i,e)=>i!=null?i:e,"|":(i,e)=>{var t;return(t=Bp[e])==null?void 0:t.call(Bp,i)}};function n0(i){return s0(i,{boolean:/true|false/,number:/-?\d+\.?\d*/,string:/(["'])((?:\\.|[^\\])*?)\1/,operator:/[!=><][=!]?|\?\?|\|/,ws:/\s+/,param:/[$a-z_][$\w]*/i}).filter(({type:e})=>e!=="ws")}function Hp(i,e={}){var t,a,r,n,o,d,u;let m=n0(i);if(m.length===0||m.some(({type:f})=>!f))return Lr(i);if(((t=m[0])==null?void 0:t.token)===">"){let f=e[(a=m[1])==null?void 0:a.token];if(!f)return Lr(i);let g={...e};f.state=g;let v=m.slice(2);for(let b=0;b<v.length;b+=3){let R=(r=v[b])==null?void 0:r.token,A=(n=v[b+1])==null?void 0:n.token,T=(o=v[b+2])==null?void 0:o.token;R&&A==="="&&(g[R]=wr(T,e))}return f}if(m.length===1)return Io(m[0])?wr(m[0].token,e):Lr(i);if(m.length===2){let f=(d=m[0])==null?void 0:d.token,g=Wp[f];if(!g||!Io(m[1]))return Lr(i);let v=wr(m[1].token,e);return g(v)}if(m.length===3){let f=(u=m[1])==null?void 0:u.token,g=Wp[f];if(!g||!Io(m[0])||!Io(m[2]))return Lr(i);let v=wr(m[0].token,e);if(f==="|")return g(v,m[2].token);let b=wr(m[2].token,e);return g(v,b)}}function Lr(i){return console.warn(`Warning: invalid expression \`${i}\``),!1}function Io({type:i}){return["number","boolean","string","param"].includes(i)}function wr(i,e){let t=i[0],a=i.slice(-1);return i==="true"||i==="false"?i==="true":t===a&&["'",'"'].includes(t)?i.slice(1,-1):Gr(i)?parseFloat(i):e[i]}function s0(i,e){let t,a,r,n=[];for(;i;){r=null,t=i.length;for(let o in e)a=e[o].exec(i),a&&a.index<t&&(r={token:a[0],type:o,matches:a.slice(1)},t=a.index);t&&n.push({token:i.substr(0,t),type:void 0}),r&&n.push(r),i=i.substr(t+(r?r.token.length:0))}return n}var o0=Object.defineProperty,l0=(i,e,t)=>e in i?o0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,xr=(i,e,t)=>(l0(i,typeof e!="symbol"?e+"":e,t),t),Gu=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Vu=(i,e,t)=>(Gu(i,e,"read from private field"),t?t.call(i):e.get(i)),Rr=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},xi=(i,e,t,a)=>(Gu(i,e,"write to private field"),a?a.call(i,t):e.set(i,t),t),$u=(i,e,t)=>(Gu(i,e,"access private method"),t),fa,Lo,ba,Ku,$p,wo,Yu,Fu={mediatargetlivewindow:"targetlivewindow",mediastreamtype:"streamtype"},Fp=c.createElement("template");Fp.innerHTML=`
1564
+ ${a}${i.file}`}Zt(e)}var he={AUTOPLAY:"autoplay",CROSSORIGIN:"crossorigin",LOOP:"loop",MUTED:"muted",PLAYSINLINE:"playsinline",PRELOAD:"preload"},Ci={VOLUME:"volume",PLAYBACKRATE:"playbackrate",MUTED:"muted"},Mp=Object.freeze({length:0,start(i){let e=i>>>0;if(e>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${e}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(i){let e=i>>>0;if(e>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${e}) is greater than or equal to the maximum bound (${this.length}).`);return 0}}),Zb=wp.VideoEvents.filter(i=>i!=="error"),Qb=Object.values(he).filter(i=>![he.PLAYSINLINE].includes(i)),zb=Object.values(Ci),ha,Uu=class extends q.HTMLElement{constructor(){super();z(this,ha,new WeakMap);let t=r=>{for(let n of r)n.type==="childList"&&(n.removedNodes.forEach(o=>{var d;(d=L(this,ha).get(o))==null||d.remove()}),n.addedNodes.forEach(o=>{var u;let d=o;d!=null&&d.slot||(u=this.media)==null||u.append(Lp(L(this,ha),o))}))};new MutationObserver(t).observe(this,{childList:!0,subtree:!0})}static get observedAttributes(){return[...Qb,...zb]}init(){this.querySelectorAll(":scope > :not([slot])").forEach(t=>{var a;(a=this.media)==null||a.append(Lp(L(this,ha),t))}),Zb.forEach(t=>{var a;(a=this.media)==null||a.addEventListener(t,r=>{this.dispatchEvent(new Event(r.type))})})}attributeChangedCallback(t,a,r){var n,o;switch(t){case Ci.MUTED:{this.media&&(this.media.muted=r!=null,this.media.defaultMuted=r!=null);return}case Ci.VOLUME:{let d=(n=Oe(r))!=null?n:1;this.media&&(this.media.volume=d);return}case Ci.PLAYBACKRATE:{let d=(o=Oe(r))!=null?o:1;this.media&&(this.media.playbackRate=d,this.media.defaultPlaybackRate=d);return}}}play(){var t,a;return(a=(t=this.media)==null?void 0:t.play())!=null?a:Promise.reject()}pause(){var t;(t=this.media)==null||t.pause()}load(){var t;(t=this.media)==null||t.load()}requestCast(t){var a;return(a=this.media)==null?void 0:a.requestCast(t)}get media(){var t;return(t=this.shadowRoot)==null?void 0:t.querySelector("mux-video")}get audioTracks(){return this.media.audioTracks}get videoTracks(){return this.media.videoTracks}get audioRenditions(){return this.media.audioRenditions}get videoRenditions(){return this.media.videoRenditions}get paused(){var t,a;return(a=(t=this.media)==null?void 0:t.paused)!=null?a:!0}get duration(){var t,a;return(a=(t=this.media)==null?void 0:t.duration)!=null?a:NaN}get ended(){var t,a;return(a=(t=this.media)==null?void 0:t.ended)!=null?a:!1}get buffered(){var t,a;return(a=(t=this.media)==null?void 0:t.buffered)!=null?a:Mp}get seekable(){var t,a;return(a=(t=this.media)==null?void 0:t.seekable)!=null?a:Mp}get readyState(){var t,a;return(a=(t=this.media)==null?void 0:t.readyState)!=null?a:0}get videoWidth(){var t,a;return(a=(t=this.media)==null?void 0:t.videoWidth)!=null?a:0}get videoHeight(){var t,a;return(a=(t=this.media)==null?void 0:t.videoHeight)!=null?a:0}get currentSrc(){var t,a;return(a=(t=this.media)==null?void 0:t.currentSrc)!=null?a:""}get currentTime(){var t,a;return(a=(t=this.media)==null?void 0:t.currentTime)!=null?a:0}set currentTime(t){this.media&&(this.media.currentTime=Number(t))}get volume(){var t,a;return(a=(t=this.media)==null?void 0:t.volume)!=null?a:1}set volume(t){this.media&&(this.media.volume=Number(t))}get playbackRate(){var t,a;return(a=(t=this.media)==null?void 0:t.playbackRate)!=null?a:1}set playbackRate(t){this.media&&(this.media.playbackRate=Number(t))}get defaultPlaybackRate(){var t;return(t=Oe(this.getAttribute(Ci.PLAYBACKRATE)))!=null?t:1}set defaultPlaybackRate(t){t!=null?this.setAttribute(Ci.PLAYBACKRATE,`${t}`):this.removeAttribute(Ci.PLAYBACKRATE)}get crossOrigin(){return Ir(this,he.CROSSORIGIN)}set crossOrigin(t){this.setAttribute(he.CROSSORIGIN,`${t}`)}get autoplay(){return Ir(this,he.AUTOPLAY)!=null}set autoplay(t){t?this.setAttribute(he.AUTOPLAY,typeof t=="string"?t:""):this.removeAttribute(he.AUTOPLAY)}get loop(){return Ir(this,he.LOOP)!=null}set loop(t){t?this.setAttribute(he.LOOP,""):this.removeAttribute(he.LOOP)}get muted(){var t,a;return(a=(t=this.media)==null?void 0:t.muted)!=null?a:!1}set muted(t){this.media&&(this.media.muted=!!t)}get defaultMuted(){return Ir(this,he.MUTED)!=null}set defaultMuted(t){t?this.setAttribute(he.MUTED,""):this.removeAttribute(he.MUTED)}get playsInline(){return Ir(this,he.PLAYSINLINE)!=null}set playsInline(t){Ie("playsInline is set to true by default and is not currently supported as a setter.")}get preload(){return this.media?this.media.preload:this.getAttribute("preload")}set preload(t){["","none","metadata","auto"].includes(t)?this.setAttribute(he.PRELOAD,t):this.removeAttribute(he.PRELOAD)}};ha=new WeakMap;function Ir(i,e){return i.media?i.media.getAttribute(e):i.getAttribute(e)}function Lp(i,e){let t=i.get(e);return t||(t=e.cloneNode(),i.set(e,t)),t}var Bu=Uu;var Xb=Object.defineProperty,Jb=(i,e,t)=>e in i?Xb(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,jb=(i,e,t)=>(Jb(i,typeof e!="symbol"?e+"":e,t),t),Pp=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},S=(i,e,t)=>(Pp(i,e,"read from private field"),t?t.call(i):e.get(i)),Et=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Mt=(i,e,t,a)=>(Pp(i,e,"write to private field"),a?a.call(i,t):e.set(i,t),t),pa,To,Mi,Cr,Qt,zt,Xt,Li,va,ko,Qe,Rp=1,xp=0,e0=1,t0={processCallback(i,e,t){if(t){for(let[a,r]of e)if(a in t){let n=t[a];typeof n=="boolean"&&r instanceof ve&&typeof r.element[r.attributeName]=="boolean"?r.booleanValue=n:typeof n=="function"&&r instanceof ve?r.element[r.attributeName]=n:r.value=n}}}},Lt=class extends l.DocumentFragment{constructor(e,t,a=t0){var r;super(),Et(this,pa,void 0),Et(this,To,void 0),this.append(e.content.cloneNode(!0)),Mt(this,pa,Np(this)),Mt(this,To,a),(r=a.createCallback)==null||r.call(a,this,S(this,pa),t),a.processCallback(this,S(this,pa),t)}update(e){S(this,To).processCallback(this,S(this,pa),e)}};pa=new WeakMap;To=new WeakMap;var Np=(i,e=[])=>{let t,a;for(let r of i.attributes||[])if(r.value.includes("{{")){let n=new Wu;for([t,a]of Op(r.value))if(!t)n.append(a);else{let o=new ve(i,r.name,r.namespaceURI);n.append(o),e.push([a,o])}r.value=n.toString()}for(let r of i.childNodes)if(r.nodeType===Rp&&!(r instanceof HTMLTemplateElement))Np(r,e);else if(r.nodeType===Rp||r.data.includes("{{")){let n=[];if(r.data)for([t,a]of Op(r.data))if(!t)n.push(new Text(a));else{let o=new wt(i);n.push(o),e.push([a,o])}else if(r instanceof HTMLTemplateElement){let o=new Mr(i,r);n.push(o),e.push([o.expression,o])}r.replaceWith(...n.flatMap(o=>o.replacementNodes||[o]))}return e},Dp={},Op=i=>{let e="",t=0,a=Dp[i],r=0,n;if(a)return a;for(a=[];n=i[r];r++)n==="{"&&i[r+1]==="{"&&i[r-1]!=="\\"&&i[r+2]&&++t==1?(e&&a.push([xp,e]),e="",r++):n==="}"&&i[r+1]==="}"&&i[r-1]!=="\\"&&!--t?(a.push([e0,e.trim()]),e="",r++):e+=n||"";return e&&a.push([xp,(t>0?"{{":"")+e]),Dp[i]=a},i0=11,So=class{get value(){return""}set value(e){}toString(){return this.value}},Up=new WeakMap,Wu=class{constructor(){Et(this,Mi,[])}[Symbol.iterator](){return S(this,Mi).values()}get length(){return S(this,Mi).length}item(e){return S(this,Mi)[e]}append(...e){for(let t of e)t instanceof ve&&Up.set(t,this),S(this,Mi).push(t)}toString(){return S(this,Mi).join("")}};Mi=new WeakMap;var ve=class extends So{constructor(e,t,a){super(),Et(this,Li),Et(this,Cr,""),Et(this,Qt,void 0),Et(this,zt,void 0),Et(this,Xt,void 0),Mt(this,Qt,e),Mt(this,zt,t),Mt(this,Xt,a)}get attributeName(){return S(this,zt)}get attributeNamespace(){return S(this,Xt)}get element(){return S(this,Qt)}get value(){return S(this,Cr)}set value(e){S(this,Cr)!==e&&(Mt(this,Cr,e),!S(this,Li,va)||S(this,Li,va).length===1?e==null?S(this,Qt).removeAttributeNS(S(this,Xt),S(this,zt)):S(this,Qt).setAttributeNS(S(this,Xt),S(this,zt),e):S(this,Qt).setAttributeNS(S(this,Xt),S(this,zt),S(this,Li,va)))}get booleanValue(){return S(this,Qt).hasAttributeNS(S(this,Xt),S(this,zt))}set booleanValue(e){if(!S(this,Li,va)||S(this,Li,va).length===1)this.value=e?"":null;else throw new DOMException("Value is not fully templatized")}};Cr=new WeakMap;Qt=new WeakMap;zt=new WeakMap;Xt=new WeakMap;Li=new WeakSet;va=function(){return Up.get(this)};var wt=class extends So{constructor(e,t){super(),Et(this,ko,void 0),Et(this,Qe,void 0),Mt(this,ko,e),Mt(this,Qe,t?[...t]:[new Text])}get replacementNodes(){return S(this,Qe)}get parentNode(){return S(this,ko)}get nextSibling(){return S(this,Qe)[S(this,Qe).length-1].nextSibling}get previousSibling(){return S(this,Qe)[0].previousSibling}get value(){return S(this,Qe).map(e=>e.textContent).join("")}set value(e){this.replace(e)}replace(...e){let t=e.flat().flatMap(a=>a==null?[new Text]:a.forEach?[...a]:a.nodeType===i0?[...a.childNodes]:a.nodeType?[a]:[new Text(a)]);t.length||t.push(new Text),Mt(this,Qe,a0(S(this,Qe)[0].parentNode,S(this,Qe),t,this.nextSibling))}};ko=new WeakMap;Qe=new WeakMap;var Mr=class extends wt{constructor(e,t){let a=t.getAttribute("directive")||t.getAttribute("type"),r=t.getAttribute("expression")||t.getAttribute(a)||"";r.startsWith("{{")&&(r=r.trim().slice(2,-2).trim()),super(e),jb(this,"directive"),this.expression=r,this.template=t,this.directive=a}};function a0(i,e,t,a=null){let r=0,n,o,d,u=t.length,m=e.length;for(;r<u&&r<m&&e[r]==t[r];)r++;for(;r<u&&r<m&&t[u-1]==e[m-1];)a=t[--m,--u];if(r==m)for(;r<u;)i.insertBefore(t[r++],a);if(r==u)for(;r<m;)i.removeChild(e[r++]);else{for(n=e[r];r<u;)d=t[r++],o=n?n.nextSibling:a,n==d?n=o:r<u&&t[r]==o?(i.replaceChild(d,n),n=o):i.insertBefore(d,n);for(;n!=a;)o=n.nextSibling,i.removeChild(n),n=o}return t}var Bp={string:i=>String(i)},Co=class{constructor(e){this.template=e,this.state=void 0}},wi=new WeakMap,Ri=new WeakMap,Hu={partial:(i,e)=>{e[i.expression]=new Co(i.template)},if:(i,e)=>{var t;if(Hp(i.expression,e))if(wi.get(i)!==i.template){wi.set(i,i.template);let a=new Lt(i.template,e,Mo);i.replace(a),Ri.set(i,a)}else(t=Ri.get(i))==null||t.update(e);else i.replace(""),wi.delete(i),Ri.delete(i)}},r0=Object.keys(Hu),Mo={processCallback(i,e,t){var a,r;if(t)for(let[n,o]of e){if(o instanceof Mr){if(!o.directive){let u=r0.find(m=>o.template.hasAttribute(m));u&&(o.directive=u,o.expression=o.template.getAttribute(u))}(a=Hu[o.directive])==null||a.call(Hu,o,t);continue}let d=Hp(n,t);if(d instanceof Co){wi.get(o)!==d.template?(wi.set(o,d.template),d=new Lt(d.template,d.state,Mo),o.value=d,Ri.set(o,d)):(r=Ri.get(o))==null||r.update(d.state);continue}d?(o instanceof ve&&o.attributeName.startsWith("aria-")&&(d=String(d)),o instanceof ve?typeof d=="boolean"?o.booleanValue=d:typeof d=="function"?o.element[o.attributeName]=d:o.value=d:(o.value=d,wi.delete(o),Ri.delete(o))):o instanceof ve?o.value=void 0:(o.value=void 0,wi.delete(o),Ri.delete(o))}}},Wp={"!":i=>!i,"!!":i=>!!i,"==":(i,e)=>i==e,"!=":(i,e)=>i!=e,">":(i,e)=>i>e,">=":(i,e)=>i>=e,"<":(i,e)=>i<e,"<=":(i,e)=>i<=e,"??":(i,e)=>i!=null?i:e,"|":(i,e)=>{var t;return(t=Bp[e])==null?void 0:t.call(Bp,i)}};function n0(i){return s0(i,{boolean:/true|false/,number:/-?\d+\.?\d*/,string:/(["'])((?:\\.|[^\\])*?)\1/,operator:/[!=><][=!]?|\?\?|\|/,ws:/\s+/,param:/[$a-z_][$\w]*/i}).filter(({type:e})=>e!=="ws")}function Hp(i,e={}){var t,a,r,n,o,d,u;let m=n0(i);if(m.length===0||m.some(({type:f})=>!f))return Lr(i);if(((t=m[0])==null?void 0:t.token)===">"){let f=e[(a=m[1])==null?void 0:a.token];if(!f)return Lr(i);let g={...e};f.state=g;let v=m.slice(2);for(let b=0;b<v.length;b+=3){let R=(r=v[b])==null?void 0:r.token,A=(n=v[b+1])==null?void 0:n.token,T=(o=v[b+2])==null?void 0:o.token;R&&A==="="&&(g[R]=wr(T,e))}return f}if(m.length===1)return Io(m[0])?wr(m[0].token,e):Lr(i);if(m.length===2){let f=(d=m[0])==null?void 0:d.token,g=Wp[f];if(!g||!Io(m[1]))return Lr(i);let v=wr(m[1].token,e);return g(v)}if(m.length===3){let f=(u=m[1])==null?void 0:u.token,g=Wp[f];if(!g||!Io(m[0])||!Io(m[2]))return Lr(i);let v=wr(m[0].token,e);if(f==="|")return g(v,m[2].token);let b=wr(m[2].token,e);return g(v,b)}}function Lr(i){return console.warn(`Warning: invalid expression \`${i}\``),!1}function Io({type:i}){return["number","boolean","string","param"].includes(i)}function wr(i,e){let t=i[0],a=i.slice(-1);return i==="true"||i==="false"?i==="true":t===a&&["'",'"'].includes(t)?i.slice(1,-1):Gr(i)?parseFloat(i):e[i]}function s0(i,e){let t,a,r,n=[];for(;i;){r=null,t=i.length;for(let o in e)a=e[o].exec(i),a&&a.index<t&&(r={token:a[0],type:o,matches:a.slice(1)},t=a.index);t&&n.push({token:i.substr(0,t),type:void 0}),r&&n.push(r),i=i.substr(t+(r?r.token.length:0))}return n}var o0=Object.defineProperty,l0=(i,e,t)=>e in i?o0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,xr=(i,e,t)=>(l0(i,typeof e!="symbol"?e+"":e,t),t),Gu=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Vu=(i,e,t)=>(Gu(i,e,"read from private field"),t?t.call(i):e.get(i)),Rr=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},xi=(i,e,t,a)=>(Gu(i,e,"write to private field"),a?a.call(i,t):e.set(i,t),t),$u=(i,e,t)=>(Gu(i,e,"access private method"),t),fa,Lo,ba,Ku,$p,wo,Yu,Fu={mediatargetlivewindow:"targetlivewindow",mediastreamtype:"streamtype"},Fp=c.createElement("template");Fp.innerHTML=`
1565
1565
  <style>
1566
1566
  :host {
1567
1567
  display: inline-block;
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  var xe=(t,i,e)=>{if(!i.has(t))throw TypeError("Cannot "+e)};var u=(t,i,e)=>(xe(t,i,"read from private field"),e?e.call(t):i.get(t)),p=(t,i,e)=>{if(i.has(t))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(t):i.set(t,e)},x=(t,i,e,a)=>(xe(t,i,"write to private field"),a?a.call(t,e):i.set(t,e),e);var b=(t,i,e)=>(xe(t,i,"access private method"),e);var G=class{addEventListener(){}removeEventListener(){}dispatchEvent(i){return!0}};if(typeof DocumentFragment=="undefined"){class t extends G{}globalThis.DocumentFragment=t}var X=class extends G{},Le=class extends G{},Ft={get(t){},define(t,i,e){},upgrade(t){},whenDefined(t){return Promise.resolve(X)}},J,Re=class{constructor(i,e={}){p(this,J,void 0);x(this,J,e==null?void 0:e.detail)}get detail(){return u(this,J)}initCustomEvent(){}};J=new WeakMap;function Yt(t,i){return new X}var dt={document:{createElement:Yt},DocumentFragment,customElements:Ft,CustomEvent:Re,EventTarget:G,HTMLElement:X,HTMLVideoElement:Le},lt=typeof window=="undefined"||typeof globalThis.customElements=="undefined",c=lt?dt:globalThis,T=lt?dt.document:globalThis.document;import{MediaController as Ea}from"media-chrome";import{Attributes as Be}from"media-chrome/dist/media-container.js";import{MediaUIAttributes as Nt}from"media-chrome/dist/constants.js";import"media-chrome/dist/experimental/index.js";import ka,{MediaError as ye,Attributes as d}from"@mux/mux-video";import{StreamTypes as w,PlaybackTypes as ve,addTextTrack as Ta,removeTextTrack as Aa,CmcdTypeValues as It}from"@mux/playback-core";import{VideoEvents as zt}from"@mux/mux-video";var Wt="en",U={code:Wt};var mt="en";function m(t,i=!0){var r,o;let e=i&&(o=(r=U)==null?void 0:r[t])!=null?o:t,a=i?U.code:mt;return new we(e,a)}var we=class{constructor(i,e=(a=>(a=U.code)!=null?a:mt)()){this.message=i,this.locale=e}format(i){return this.message.replace(/\{(\w+)\}/g,(e,a)=>{var r;return(r=i[a])!=null?r:""})}toString(){return this.message}};function ut(t){let i="";return Object.entries(t).forEach(([e,a])=>{a!=null&&(i+=`${de(e)}: ${a}; `)}),i?i.trim():void 0}function de(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function le(t){return t.replace(/[-_]([a-z])/g,(i,e)=>e.toUpperCase())}function L(t){if(t==null)return;let i=+t;return Number.isNaN(i)?void 0:i}function Oe(t){let i=Zt(t).toString();return i?"?"+i:""}function Zt(t){let i={};for(let e in t)t[e]!=null&&(i[e]=t[e]);return new URLSearchParams(i)}function N(t){let i=(t!=null?t:"").split(".")[1];if(!i)return{};let e=i.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(atob(e).split("").map(function(r){return"%"+("00"+r.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(a)}var Se=(t,i)=>!t||!i?!1:t.contains(i)?!0:Se(t,i.getRootNode().host);import{StreamTypes as Me}from"@mux/playback-core";var ct="mux.com",Gt=()=>{try{return"2.8.1"}catch{}return"UNKNOWN"},jt=Gt(),ue=()=>jt,pt=(t,{token:i,customDomain:e=ct,thumbnailTime:a,programTime:r}={})=>{let o=i==null?a:void 0,{aud:s}=N(i);if(!(i&&s!=="t"))return`https://image.${e}/${t}/thumbnail.webp${Oe({token:i,time:o,program_time:r})}`},bt=(t,{token:i,customDomain:e=ct,programStartTime:a,programEndTime:r}={})=>{let{aud:o}=N(i);if(!(i&&o!=="s"))return`https://image.${e}/${t}/storyboard.vtt${Oe({token:i,format:"webp",program_start_time:a,program_end_time:r})}`},Q=t=>{if(t){if([Me.LIVE,Me.ON_DEMAND].includes(t))return t;if(t!=null&&t.includes("live"))return Me.LIVE}};var qt={crossorigin:"crossOrigin",playsinline:"playsInline"};function ht(t){var i;return(i=qt[t])!=null?i:le(t)}var K,$,E,me=class{constructor(i,e){p(this,K,void 0);p(this,$,void 0);p(this,E,[]);x(this,K,i),x(this,$,e)}[Symbol.iterator](){return u(this,E).values()}get length(){return u(this,E).length}get value(){var i;return(i=u(this,E).join(" "))!=null?i:""}set value(i){var e;i!==this.value&&(x(this,E,[]),this.add(...(e=i==null?void 0:i.split(" "))!=null?e:[]))}toString(){return this.value}item(i){return u(this,E)[i]}values(){return u(this,E).values()}keys(){return u(this,E).keys()}forEach(i){u(this,E).forEach(i)}add(...i){var e,a;i.forEach(r=>{this.contains(r)||u(this,E).push(r)}),!(this.value===""&&!((e=u(this,K))!=null&&e.hasAttribute(`${u(this,$)}`)))&&((a=u(this,K))==null||a.setAttribute(`${u(this,$)}`,`${this.value}`))}remove(...i){var e;i.forEach(a=>{u(this,E).splice(u(this,E).indexOf(a),1)}),(e=u(this,K))==null||e.setAttribute(`${u(this,$)}`,`${this.value}`)}contains(i){return u(this,E).includes(i)}toggle(i,e){return typeof e!="undefined"?e?(this.add(i),!0):(this.remove(i),!1):this.contains(i)?(this.remove(i),!1):(this.add(i),!0)}replace(i,e){this.remove(i),this.add(e)}};K=new WeakMap,$=new WeakMap,E=new WeakMap;var gt=`[mux-player ${ue()}]`;function I(...t){console.warn(gt,...t)}function A(...t){console.error(gt,...t)}function _e(t){var e;let i=(e=t.message)!=null?e:"";if(t.context&&(i+=` ${t.context}`),t.file){let a="https://github.com/muxinc/elements/blob/main/errors/";i+=` ${m("Read more: ")}
2
- ${a}${t.file}`}I(i)}var y={AUTOPLAY:"autoplay",CROSSORIGIN:"crossorigin",LOOP:"loop",MUTED:"muted",PLAYSINLINE:"playsinline",PRELOAD:"preload"},F={VOLUME:"volume",PLAYBACKRATE:"playbackrate",MUTED:"muted"},yt=Object.freeze({length:0,start(t){let i=t>>>0;if(i>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${i}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(t){let i=t>>>0;if(i>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${i}) is greater than or equal to the maximum bound (${this.length}).`);return 0}}),Xt=zt.filter(t=>t!=="error"),Jt=Object.values(y).filter(t=>![y.PLAYSINLINE].includes(t)),Qt=Object.values(F),j,Pe=class extends c.HTMLElement{constructor(){super();p(this,j,new WeakMap);let e=r=>{for(let o of r)o.type==="childList"&&(o.removedNodes.forEach(s=>{var l;(l=u(this,j).get(s))==null||l.remove()}),o.addedNodes.forEach(s=>{var h;let l=s;l!=null&&l.slot||(h=this.media)==null||h.append(vt(u(this,j),s))}))};new MutationObserver(e).observe(this,{childList:!0,subtree:!0}),Xt.forEach(r=>{var o;(o=this.media)==null||o.addEventListener(r,s=>{this.dispatchEvent(new Event(s.type))})})}static get observedAttributes(){return[...Jt,...Qt]}init(){this.querySelectorAll(":scope > :not([slot])").forEach(e=>{var a;(a=this.media)==null||a.append(vt(u(this,j),e))})}attributeChangedCallback(e,a,r){var o,s;switch(e){case F.MUTED:{this.media&&(this.media.muted=r!=null,this.media.defaultMuted=r!=null);return}case F.VOLUME:{let l=(o=L(r))!=null?o:1;this.media&&(this.media.volume=l);return}case F.PLAYBACKRATE:{let l=(s=L(r))!=null?s:1;this.media&&(this.media.playbackRate=l,this.media.defaultPlaybackRate=l);return}}}play(){var e,a;return(a=(e=this.media)==null?void 0:e.play())!=null?a:Promise.reject()}pause(){var e;(e=this.media)==null||e.pause()}load(){var e;(e=this.media)==null||e.load()}requestCast(e){var a;return(a=this.media)==null?void 0:a.requestCast(e)}get media(){var e;return(e=this.shadowRoot)==null?void 0:e.querySelector("mux-video")}get audioTracks(){return this.media.audioTracks}get videoTracks(){return this.media.videoTracks}get audioRenditions(){return this.media.audioRenditions}get videoRenditions(){return this.media.videoRenditions}get paused(){var e,a;return(a=(e=this.media)==null?void 0:e.paused)!=null?a:!0}get duration(){var e,a;return(a=(e=this.media)==null?void 0:e.duration)!=null?a:NaN}get ended(){var e,a;return(a=(e=this.media)==null?void 0:e.ended)!=null?a:!1}get buffered(){var e,a;return(a=(e=this.media)==null?void 0:e.buffered)!=null?a:yt}get seekable(){var e,a;return(a=(e=this.media)==null?void 0:e.seekable)!=null?a:yt}get readyState(){var e,a;return(a=(e=this.media)==null?void 0:e.readyState)!=null?a:0}get videoWidth(){var e,a;return(a=(e=this.media)==null?void 0:e.videoWidth)!=null?a:0}get videoHeight(){var e,a;return(a=(e=this.media)==null?void 0:e.videoHeight)!=null?a:0}get currentSrc(){var e,a;return(a=(e=this.media)==null?void 0:e.currentSrc)!=null?a:""}get currentTime(){var e,a;return(a=(e=this.media)==null?void 0:e.currentTime)!=null?a:0}set currentTime(e){this.media&&(this.media.currentTime=Number(e))}get volume(){var e,a;return(a=(e=this.media)==null?void 0:e.volume)!=null?a:1}set volume(e){this.media&&(this.media.volume=Number(e))}get playbackRate(){var e,a;return(a=(e=this.media)==null?void 0:e.playbackRate)!=null?a:1}set playbackRate(e){this.media&&(this.media.playbackRate=Number(e))}get defaultPlaybackRate(){var e;return(e=L(this.getAttribute(F.PLAYBACKRATE)))!=null?e:1}set defaultPlaybackRate(e){e!=null?this.setAttribute(F.PLAYBACKRATE,`${e}`):this.removeAttribute(F.PLAYBACKRATE)}get crossOrigin(){return ee(this,y.CROSSORIGIN)}set crossOrigin(e){this.setAttribute(y.CROSSORIGIN,`${e}`)}get autoplay(){return ee(this,y.AUTOPLAY)!=null}set autoplay(e){e?this.setAttribute(y.AUTOPLAY,typeof e=="string"?e:""):this.removeAttribute(y.AUTOPLAY)}get loop(){return ee(this,y.LOOP)!=null}set loop(e){e?this.setAttribute(y.LOOP,""):this.removeAttribute(y.LOOP)}get muted(){var e,a;return(a=(e=this.media)==null?void 0:e.muted)!=null?a:!1}set muted(e){this.media&&(this.media.muted=!!e)}get defaultMuted(){return ee(this,y.MUTED)!=null}set defaultMuted(e){e?this.setAttribute(y.MUTED,""):this.removeAttribute(y.MUTED)}get playsInline(){return ee(this,y.PLAYSINLINE)!=null}set playsInline(e){A("playsInline is set to true by default and is not currently supported as a setter.")}get preload(){return this.media?this.media.preload:this.getAttribute("preload")}set preload(e){["","none","metadata","auto"].includes(e)?this.setAttribute(y.PRELOAD,e):this.removeAttribute(y.PRELOAD)}};j=new WeakMap;function ee(t,i){return t.media?t.media.getAttribute(i):t.getAttribute(i)}function vt(t,i){let e=t.get(i);return e||(e=i.cloneNode(),t.set(i,e)),e}var Ne=Pe;import"media-chrome/dist/media-theme-element.js";var Et=`:host {
2
+ ${a}${t.file}`}I(i)}var y={AUTOPLAY:"autoplay",CROSSORIGIN:"crossorigin",LOOP:"loop",MUTED:"muted",PLAYSINLINE:"playsinline",PRELOAD:"preload"},F={VOLUME:"volume",PLAYBACKRATE:"playbackrate",MUTED:"muted"},yt=Object.freeze({length:0,start(t){let i=t>>>0;if(i>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${i}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(t){let i=t>>>0;if(i>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${i}) is greater than or equal to the maximum bound (${this.length}).`);return 0}}),Xt=zt.filter(t=>t!=="error"),Jt=Object.values(y).filter(t=>![y.PLAYSINLINE].includes(t)),Qt=Object.values(F),j,Pe=class extends c.HTMLElement{constructor(){super();p(this,j,new WeakMap);let e=r=>{for(let o of r)o.type==="childList"&&(o.removedNodes.forEach(s=>{var l;(l=u(this,j).get(s))==null||l.remove()}),o.addedNodes.forEach(s=>{var h;let l=s;l!=null&&l.slot||(h=this.media)==null||h.append(vt(u(this,j),s))}))};new MutationObserver(e).observe(this,{childList:!0,subtree:!0})}static get observedAttributes(){return[...Jt,...Qt]}init(){this.querySelectorAll(":scope > :not([slot])").forEach(e=>{var a;(a=this.media)==null||a.append(vt(u(this,j),e))}),Xt.forEach(e=>{var a;(a=this.media)==null||a.addEventListener(e,r=>{this.dispatchEvent(new Event(r.type))})})}attributeChangedCallback(e,a,r){var o,s;switch(e){case F.MUTED:{this.media&&(this.media.muted=r!=null,this.media.defaultMuted=r!=null);return}case F.VOLUME:{let l=(o=L(r))!=null?o:1;this.media&&(this.media.volume=l);return}case F.PLAYBACKRATE:{let l=(s=L(r))!=null?s:1;this.media&&(this.media.playbackRate=l,this.media.defaultPlaybackRate=l);return}}}play(){var e,a;return(a=(e=this.media)==null?void 0:e.play())!=null?a:Promise.reject()}pause(){var e;(e=this.media)==null||e.pause()}load(){var e;(e=this.media)==null||e.load()}requestCast(e){var a;return(a=this.media)==null?void 0:a.requestCast(e)}get media(){var e;return(e=this.shadowRoot)==null?void 0:e.querySelector("mux-video")}get audioTracks(){return this.media.audioTracks}get videoTracks(){return this.media.videoTracks}get audioRenditions(){return this.media.audioRenditions}get videoRenditions(){return this.media.videoRenditions}get paused(){var e,a;return(a=(e=this.media)==null?void 0:e.paused)!=null?a:!0}get duration(){var e,a;return(a=(e=this.media)==null?void 0:e.duration)!=null?a:NaN}get ended(){var e,a;return(a=(e=this.media)==null?void 0:e.ended)!=null?a:!1}get buffered(){var e,a;return(a=(e=this.media)==null?void 0:e.buffered)!=null?a:yt}get seekable(){var e,a;return(a=(e=this.media)==null?void 0:e.seekable)!=null?a:yt}get readyState(){var e,a;return(a=(e=this.media)==null?void 0:e.readyState)!=null?a:0}get videoWidth(){var e,a;return(a=(e=this.media)==null?void 0:e.videoWidth)!=null?a:0}get videoHeight(){var e,a;return(a=(e=this.media)==null?void 0:e.videoHeight)!=null?a:0}get currentSrc(){var e,a;return(a=(e=this.media)==null?void 0:e.currentSrc)!=null?a:""}get currentTime(){var e,a;return(a=(e=this.media)==null?void 0:e.currentTime)!=null?a:0}set currentTime(e){this.media&&(this.media.currentTime=Number(e))}get volume(){var e,a;return(a=(e=this.media)==null?void 0:e.volume)!=null?a:1}set volume(e){this.media&&(this.media.volume=Number(e))}get playbackRate(){var e,a;return(a=(e=this.media)==null?void 0:e.playbackRate)!=null?a:1}set playbackRate(e){this.media&&(this.media.playbackRate=Number(e))}get defaultPlaybackRate(){var e;return(e=L(this.getAttribute(F.PLAYBACKRATE)))!=null?e:1}set defaultPlaybackRate(e){e!=null?this.setAttribute(F.PLAYBACKRATE,`${e}`):this.removeAttribute(F.PLAYBACKRATE)}get crossOrigin(){return ee(this,y.CROSSORIGIN)}set crossOrigin(e){this.setAttribute(y.CROSSORIGIN,`${e}`)}get autoplay(){return ee(this,y.AUTOPLAY)!=null}set autoplay(e){e?this.setAttribute(y.AUTOPLAY,typeof e=="string"?e:""):this.removeAttribute(y.AUTOPLAY)}get loop(){return ee(this,y.LOOP)!=null}set loop(e){e?this.setAttribute(y.LOOP,""):this.removeAttribute(y.LOOP)}get muted(){var e,a;return(a=(e=this.media)==null?void 0:e.muted)!=null?a:!1}set muted(e){this.media&&(this.media.muted=!!e)}get defaultMuted(){return ee(this,y.MUTED)!=null}set defaultMuted(e){e?this.setAttribute(y.MUTED,""):this.removeAttribute(y.MUTED)}get playsInline(){return ee(this,y.PLAYSINLINE)!=null}set playsInline(e){A("playsInline is set to true by default and is not currently supported as a setter.")}get preload(){return this.media?this.media.preload:this.getAttribute("preload")}set preload(e){["","none","metadata","auto"].includes(e)?this.setAttribute(y.PRELOAD,e):this.removeAttribute(y.PRELOAD)}};j=new WeakMap;function ee(t,i){return t.media?t.media.getAttribute(i):t.getAttribute(i)}function vt(t,i){let e=t.get(i);return e||(e=i.cloneNode(),t.set(i,e)),e}var Ne=Pe;import"media-chrome/dist/media-theme-element.js";var Et=`:host {
3
3
  --media-control-display: var(--controls);
4
4
  --media-loading-indicator-display: var(--loading-indicator);
5
5
  --media-dialog-display: var(--dialog);
@@ -1644,7 +1644,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1644
1644
  </slot>
1645
1645
  <slot></slot>
1646
1646
  `}var wA=(i,{tag:e,is:t})=>{var r,s,n,a,o,l,d,u,c,h,f,m,p,g,E,T,y;let S=(s=(r=globalThis.document)==null?void 0:r.createElement)==null?void 0:s.call(r,e,{is:t}),A=S?ID(S):[];return n=class extends i{constructor(){super(),X(this,h),X(this,m),X(this,g),X(this,T),X(this,d,void 0),X(this,u,void 0),X(this,c,new Map)}static get observedAttributes(){var L,x,w;return Fe(L=n,o,l).call(L),[...(w=(x=S==null?void 0:S.constructor)==null?void 0:x.observedAttributes)!=null?w:[],"autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"]}get nativeEl(){var L,x,w;return Fe(this,h,f).call(this),(w=(x=(L=R(this,u))!=null?L:this.shadowRoot.querySelector(e))!=null?x:this.querySelector(":scope > [slot=media]"))!=null?w:this.querySelector(e)}set nativeEl(L){ee(this,u,L)}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(L){this.toggleAttribute("muted",!!L)}get src(){return this.getAttribute("src")}set src(L){this.setAttribute("src",`${L}`)}get preload(){var L,x;return(x=this.getAttribute("preload"))!=null?x:(L=this.nativeEl)==null?void 0:L.preload}set preload(L){this.setAttribute("preload",`${L}`)}init(){var L,x;if(!this.shadowRoot){this.attachShadow({mode:"open"});let w=RD(this.attributes);t&&(w.is=t),e&&(w.part=e),this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(w)}this.nativeEl.muted=this.hasAttribute("muted");for(let w of A)Fe(this,g,E).call(this,w);this.shadowRoot.addEventListener("slotchange",this),Fe(this,m,p).call(this);for(let w of this.constructor.Events)(x=(L=this.shadowRoot).addEventListener)==null||x.call(L,w,this,!0)}handleEvent(L){if(L.type==="slotchange"){Fe(this,m,p).call(this);return}L.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(L.type,{detail:L.detail}))}attributeChangedCallback(L,x,w){Fe(this,h,f).call(this),Fe(this,T,y).call(this,L,x,w)}connectedCallback(){Fe(this,h,f).call(this)}},a=new WeakMap,o=new WeakSet,l=function(){if(R(this,a))return;ee(this,a,!0);let L=new Set(this.observedAttributes);L.delete("muted");for(let x of A)if(!(x in this.prototype))if(typeof S[x]=="function")this.prototype[x]=function(...w){return Fe(this,h,f).call(this),this.call?this.call(x,...w):this.nativeEl[x].apply(this.nativeEl,w)};else{let w={get(){var P,k,D;Fe(this,h,f).call(this);let U=x.toLowerCase();if(L.has(U)){let F=this.getAttribute(U);return F===null?!1:F===""?!0:F}return(D=(P=this.get)==null?void 0:P.call(this,x))!=null?D:(k=this.nativeEl)==null?void 0:k[x]}};x!==x.toUpperCase()&&(w.set=function(P){Fe(this,h,f).call(this);let k=x.toLowerCase();if(L.has(k)){P===!0||P===!1||P==null?this.toggleAttribute(k,!!P):this.setAttribute(k,P);return}if(this.set){this.set(x,P);return}this.nativeEl[x]=P}),Object.defineProperty(this.prototype,x,w)}},d=new WeakMap,u=new WeakMap,c=new WeakMap,h=new WeakSet,f=function(){R(this,d)||(ee(this,d,!0),this.init())},m=new WeakSet,p=function(){let L=new Map(R(this,c));this.shadowRoot.querySelector("slot:not([name])").assignedElements({flatten:!0}).filter(x=>["track","source"].includes(x.localName)).forEach(x=>{var w,P;L.delete(x);let k=R(this,c).get(x);k||(k=x.cloneNode(),R(this,c).set(x,k)),(P=(w=this.nativeEl).append)==null||P.call(w,k),k.localName==="track"&&k.default&&(k.kind==="chapters"||k.kind==="metadata")&&k.track.mode==="disabled"&&(k.track.mode="hidden")}),L.forEach(x=>x.remove())},g=new WeakSet,E=function(L){if(Object.prototype.hasOwnProperty.call(this,L)){let x=this[L];delete this[L],this[L]=x}},T=new WeakSet,y=function(L,x,w){var P,k,D,U,F,z;["id","class"].includes(L)||!n.observedAttributes.includes(L)&&this.constructor.observedAttributes.includes(L)||(w===null?(k=(P=this.nativeEl).removeAttribute)==null||k.call(P,L):((U=(D=this.nativeEl).getAttribute)==null?void 0:U.call(D,L))!=w&&((z=(F=this.nativeEl).setAttribute)==null||z.call(F,L,w)))},X(n,o),Ce(n,"getTemplateHTML",e.endsWith("audio")?LD:kD),Ce(n,"shadowRootOptions",{mode:"open"}),Ce(n,"Events",Bc),X(n,a,void 0),n};function ID(i){let e=[];for(let t=Object.getPrototypeOf(i);t&&t!==HTMLElement.prototype;t=Object.getPrototypeOf(t))e.push(...Object.getOwnPropertyNames(t));return e}function CA(i){let e="";for(let t in i){let r=i[t];r===""?e+=` ${t}`:e+=` ${t}="${r}"`}return e}function RD(i){let e={};for(let t of i)e[t.name]=t.value;return e}var TA,y0=wA((TA=globalThis.HTMLElement)!=null?TA:class{},{tag:"video"}),_A,w5=wA((_A=globalThis.HTMLElement)!=null?_A:class{},{tag:"audio"}),Gs=new WeakMap,T0=class extends Error{},wD=class extends Error{},CD=globalThis.WeakRef?class extends Set{add(i){super.add(new WeakRef(i))}forEach(i){super.forEach(e=>{let t=e.deref();t&&i(t)})}}:Set;function DD(i){var e,t,r;(t=(e=globalThis.chrome)==null?void 0:e.cast)!=null&&t.isAvailable?(r=globalThis.cast)!=null&&r.framework?i():customElements.whenDefined("google-cast-button").then(i):globalThis.__onGCastApiAvailable=()=>{customElements.whenDefined("google-cast-button").then(i)}}function MD(){return globalThis.chrome}function PD(){var i;let e="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1";if((i=globalThis.chrome)!=null&&i.cast||document.querySelector(`script[src="${e}"]`))return;let t=document.createElement("script");t.src=e,document.head.append(t)}function Ws(){var i,e;return(e=(i=globalThis.cast)==null?void 0:i.framework)==null?void 0:e.CastContext.getInstance()}function H0(){var i;return(i=Ws())==null?void 0:i.getCurrentSession()}function G0(){var i;return(i=H0())==null?void 0:i.getSessionObj().media[0]}function OD(i){return new Promise((e,t)=>{G0().editTracksInfo(i,e,t)})}function ND(i){return new Promise((e,t)=>{G0().getStatus(i,e,t)})}function DA(i){return Ws().setOptions({...MA(),...i})}function MA(){return{receiverApplicationId:"CC1AD845",autoJoinPolicy:"origin_scoped",androidReceiverCompatible:!1,language:"en-US",resumeSavedSession:!0}}var xc=new CD,Br=new WeakSet,st;DD(()=>{var i,e,t,r;if(!((e=(i=globalThis.chrome)==null?void 0:i.cast)!=null&&e.isAvailable)){console.debug("chrome.cast.isAvailable",(r=(t=globalThis.chrome)==null?void 0:t.cast)==null?void 0:r.isAvailable);return}st||(st=cast.framework,Ws().addEventListener(st.CastContextEventType.CAST_STATE_CHANGED,s=>{xc.forEach(n=>{var a,o;return(o=(a=Gs.get(n)).onCastStateChanged)==null?void 0:o.call(a,s)})}),Ws().addEventListener(st.CastContextEventType.SESSION_STATE_CHANGED,s=>{xc.forEach(n=>{var a,o;return(o=(a=Gs.get(n)).onSessionStateChanged)==null?void 0:o.call(a,s)})}),xc.forEach(s=>{var n,a;return(a=(n=Gs.get(s)).init)==null?void 0:a.call(n)}))});var AA=0,xe,Lc,ei,Ur,Jn,jn,Hs,A0,Fr,Is,S0,SA,Nc,x0,L0,PA,kc,k0,I0,xA,Ic,_0,UD=class extends EventTarget{constructor(i){super(),X(this,Fr),X(this,S0),X(this,Nc),X(this,L0),X(this,kc),X(this,I0),X(this,Ic),X(this,xe,void 0),X(this,Lc,void 0),X(this,ei,void 0),X(this,Ur,void 0),X(this,Jn,"disconnected"),X(this,jn,!1),X(this,Hs,new Set),X(this,A0,new WeakMap),ee(this,xe,i),xc.add(this),Gs.set(this,{init:()=>Fe(this,kc,k0).call(this),onCastStateChanged:()=>Fe(this,Nc,x0).call(this),onSessionStateChanged:()=>Fe(this,L0,PA).call(this),getCastPlayer:()=>R(this,Fr,Is)}),Fe(this,kc,k0).call(this)}get state(){return R(this,Jn)}async watchAvailability(i){if(R(this,xe).disableRemotePlayback)throw new T0("disableRemotePlayback attribute is present.");return R(this,A0).set(i,++AA),R(this,Hs).add(i),AA}async cancelWatchAvailability(i){if(R(this,xe).disableRemotePlayback)throw new T0("disableRemotePlayback attribute is present.");i?R(this,Hs).delete(i):R(this,Hs).clear()}async prompt(){var i,e,t,r;if(R(this,xe).disableRemotePlayback)throw new T0("disableRemotePlayback attribute is present.");if(!((e=(i=globalThis.chrome)==null?void 0:i.cast)!=null&&e.isAvailable))throw new wD("The RemotePlayback API is disabled on this platform.");let s=Br.has(R(this,xe));Br.add(R(this,xe)),DA(R(this,xe).castOptions),Object.entries(R(this,Ur)).forEach(([n,a])=>{R(this,ei).controller.addEventListener(n,a)});try{await Ws().requestSession()}catch(n){if(n==="cancel"){s||Br.delete(R(this,xe));return}throw new Error(n)}(r=(t=Gs.get(R(this,xe)))==null?void 0:t.loadOnPrompt)==null||r.call(t)}};xe=new WeakMap,Lc=new WeakMap,ei=new WeakMap,Ur=new WeakMap,Jn=new WeakMap,jn=new WeakMap,Hs=new WeakMap,A0=new WeakMap,Fr=new WeakSet,Is=function(){if(Br.has(R(this,xe)))return R(this,ei)},S0=new WeakSet,SA=function(){Br.has(R(this,xe))&&(Object.entries(R(this,Ur)).forEach(([i,e])=>{R(this,ei).controller.removeEventListener(i,e)}),Br.delete(R(this,xe)),R(this,xe).muted=R(this,ei).isMuted,R(this,xe).currentTime=R(this,ei).savedPlayerState.currentTime,R(this,ei).savedPlayerState.isPaused===!1&&R(this,xe).play())},Nc=new WeakSet,x0=function(){let i=Ws().getCastState();if(Br.has(R(this,xe))&&i==="CONNECTING"&&(ee(this,Jn,"connecting"),this.dispatchEvent(new Event("connecting"))),!R(this,jn)&&i!=null&&i.includes("CONNECT")){ee(this,jn,!0);for(let e of R(this,Hs))e(!0)}else if(R(this,jn)&&(!i||i==="NO_DEVICES_AVAILABLE")){ee(this,jn,!1);for(let e of R(this,Hs))e(!1)}},L0=new WeakSet,PA=async function(){var i;let{SESSION_RESUMED:e}=st.SessionState;if(Ws().getSessionState()===e&&R(this,xe).castSrc===((i=G0())==null?void 0:i.media.contentId)){Br.add(R(this,xe)),Object.entries(R(this,Ur)).forEach(([t,r])=>{R(this,ei).controller.addEventListener(t,r)});try{await ND(new chrome.cast.media.GetStatusRequest)}catch(t){console.error(t)}R(this,Ur)[st.RemotePlayerEventType.IS_PAUSED_CHANGED](),R(this,Ur)[st.RemotePlayerEventType.PLAYER_STATE_CHANGED]()}},kc=new WeakSet,k0=function(){!st||R(this,Lc)||(ee(this,Lc,!0),DA(R(this,xe).castOptions),R(this,xe).textTracks.addEventListener("change",()=>Fe(this,Ic,_0).call(this)),Fe(this,Nc,x0).call(this),ee(this,ei,new st.RemotePlayer),new st.RemotePlayerController(R(this,ei)),ee(this,Ur,{[st.RemotePlayerEventType.IS_CONNECTED_CHANGED]:({value:i})=>{i===!0?(ee(this,Jn,"connected"),this.dispatchEvent(new Event("connect"))):(Fe(this,S0,SA).call(this),ee(this,Jn,"disconnected"),this.dispatchEvent(new Event("disconnect")))},[st.RemotePlayerEventType.DURATION_CHANGED]:()=>{R(this,xe).dispatchEvent(new Event("durationchange"))},[st.RemotePlayerEventType.VOLUME_LEVEL_CHANGED]:()=>{R(this,xe).dispatchEvent(new Event("volumechange"))},[st.RemotePlayerEventType.IS_MUTED_CHANGED]:()=>{R(this,xe).dispatchEvent(new Event("volumechange"))},[st.RemotePlayerEventType.CURRENT_TIME_CHANGED]:()=>{var i;(i=R(this,Fr,Is))!=null&&i.isMediaLoaded&&R(this,xe).dispatchEvent(new Event("timeupdate"))},[st.RemotePlayerEventType.VIDEO_INFO_CHANGED]:()=>{R(this,xe).dispatchEvent(new Event("resize"))},[st.RemotePlayerEventType.IS_PAUSED_CHANGED]:()=>{R(this,xe).dispatchEvent(new Event(this.paused?"pause":"play"))},[st.RemotePlayerEventType.PLAYER_STATE_CHANGED]:()=>{var i,e;((i=R(this,Fr,Is))==null?void 0:i.playerState)!==chrome.cast.media.PlayerState.PAUSED&&R(this,xe).dispatchEvent(new Event({[chrome.cast.media.PlayerState.PLAYING]:"playing",[chrome.cast.media.PlayerState.BUFFERING]:"waiting",[chrome.cast.media.PlayerState.IDLE]:"emptied"}[(e=R(this,Fr,Is))==null?void 0:e.playerState]))},[st.RemotePlayerEventType.IS_MEDIA_LOADED_CHANGED]:async()=>{var i;(i=R(this,Fr,Is))!=null&&i.isMediaLoaded&&(await Promise.resolve(),Fe(this,I0,xA).call(this))}}))},I0=new WeakSet,xA=function(){Fe(this,Ic,_0).call(this)},Ic=new WeakSet,_0=async function(){var i,e,t,r,s;if(!R(this,Fr,Is))return;let n=((e=(i=R(this,ei).mediaInfo)==null?void 0:i.tracks)!=null?e:[]).filter(({type:h})=>h===chrome.cast.media.TrackType.TEXT),a=[...R(this,xe).textTracks].filter(({kind:h})=>h==="subtitles"||h==="captions"),o=n.map(({language:h,name:f,trackId:m})=>{var p;let{mode:g}=(p=a.find(E=>E.language===h&&E.label===f))!=null?p:{};return g?{mode:g,trackId:m}:!1}).filter(Boolean),l=o.filter(({mode:h})=>h!=="showing").map(({trackId:h})=>h),d=o.find(({mode:h})=>h==="showing"),u=(s=(r=(t=H0())==null?void 0:t.getSessionObj().media[0])==null?void 0:r.activeTrackIds)!=null?s:[],c=u;if(u.length&&(c=c.filter(h=>!l.includes(h))),d!=null&&d.trackId&&(c=[...c,d.trackId]),c=[...new Set(c)],!((h,f)=>h.length===f.length&&h.every(m=>f.includes(m)))(u,c))try{let h=new chrome.cast.media.EditTracksInfoRequest(c);await OD(h)}catch(h){console.error(h)}};var FD=i=>{var e,t,r,s,n,a,o,l,d;return t=class extends i{constructor(){super(...arguments),X(this,a),X(this,l),X(this,r,{paused:!1}),X(this,s,MA()),X(this,n,void 0)}get remote(){return R(this,n)?R(this,n):MD()?(PD(),Gs.set(this,{loadOnPrompt:()=>Fe(this,l,d).call(this)}),ee(this,n,new UD(this))):super.remote}attributeChangedCallback(u,c,h){if(super.attributeChangedCallback(u,c,h),u==="cast-receiver"&&h){R(this,s).receiverApplicationId=h;return}if(R(this,a,o))switch(u){case"cast-stream-type":case"cast-src":this.load();break}}async load(){var u,c;if(!R(this,a,o))return super.load();let h=new chrome.cast.media.MediaInfo(this.castSrc,this.castContentType),f=[...this.querySelectorAll("track")].filter(({kind:E,src:T})=>T&&(E==="subtitles"||E==="captions")),m=[],p=0;f.length&&(h.tracks=f.map(E=>{let T=++p;m.length===0&&E.track.mode==="showing"&&m.push(T);let y=new chrome.cast.media.Track(T,chrome.cast.media.TrackType.TEXT);return y.trackContentId=E.src,y.trackContentType="text/vtt",y.subtype=E.kind==="captions"?chrome.cast.media.TextTrackType.CAPTIONS:chrome.cast.media.TextTrackType.SUBTITLES,y.name=E.label,y.language=E.srclang,y})),this.castStreamType==="live"?h.streamType=chrome.cast.media.StreamType.LIVE:h.streamType=chrome.cast.media.StreamType.BUFFERED,h.metadata=new chrome.cast.media.GenericMediaMetadata,h.metadata.title=this.title,h.metadata.images=[{url:this.poster}];let g=new chrome.cast.media.LoadRequest(h);g.currentTime=(u=super.currentTime)!=null?u:0,g.autoplay=!R(this,r).paused,g.activeTrackIds=m,await((c=H0())==null?void 0:c.loadMedia(g)),this.dispatchEvent(new Event("volumechange"))}play(){var u;if(R(this,a,o)){R(this,a,o).isPaused&&((u=R(this,a,o).controller)==null||u.playOrPause());return}return super.play()}pause(){var u;if(R(this,a,o)){R(this,a,o).isPaused||(u=R(this,a,o).controller)==null||u.playOrPause();return}super.pause()}get castOptions(){return R(this,s)}get castReceiver(){var u;return(u=this.getAttribute("cast-receiver"))!=null?u:void 0}set castReceiver(u){this.castReceiver!=u&&this.setAttribute("cast-receiver",`${u}`)}get castSrc(){var u,c,h;return(h=(c=this.getAttribute("cast-src"))!=null?c:(u=this.querySelector("source"))==null?void 0:u.src)!=null?h:this.currentSrc}set castSrc(u){this.castSrc!=u&&this.setAttribute("cast-src",`${u}`)}get castContentType(){var u;return(u=this.getAttribute("cast-content-type"))!=null?u:void 0}set castContentType(u){this.setAttribute("cast-content-type",`${u}`)}get castStreamType(){var u,c;return(c=(u=this.getAttribute("cast-stream-type"))!=null?u:this.streamType)!=null?c:void 0}set castStreamType(u){this.setAttribute("cast-stream-type",`${u}`)}get readyState(){if(R(this,a,o))switch(R(this,a,o).playerState){case chrome.cast.media.PlayerState.IDLE:return 0;case chrome.cast.media.PlayerState.BUFFERING:return 2;default:return 3}return super.readyState}get paused(){return R(this,a,o)?R(this,a,o).isPaused:super.paused}get muted(){var u;return R(this,a,o)?(u=R(this,a,o))==null?void 0:u.isMuted:super.muted}set muted(u){var c;if(R(this,a,o)){(u&&!R(this,a,o).isMuted||!u&&R(this,a,o).isMuted)&&((c=R(this,a,o).controller)==null||c.muteOrUnmute());return}super.muted=u}get volume(){var u,c;return R(this,a,o)?(c=(u=R(this,a,o))==null?void 0:u.volumeLevel)!=null?c:1:super.volume}set volume(u){var c;if(R(this,a,o)){R(this,a,o).volumeLevel=+u,(c=R(this,a,o).controller)==null||c.setVolumeLevel();return}super.volume=u}get duration(){var u,c,h;return R(this,a,o)&&(u=R(this,a,o))!=null&&u.isMediaLoaded?(h=(c=R(this,a,o))==null?void 0:c.duration)!=null?h:NaN:super.duration}get currentTime(){var u,c,h;return R(this,a,o)&&(u=R(this,a,o))!=null&&u.isMediaLoaded?(h=(c=R(this,a,o))==null?void 0:c.currentTime)!=null?h:0:super.currentTime}set currentTime(u){var c;if(R(this,a,o)){R(this,a,o).currentTime=u,(c=R(this,a,o).controller)==null||c.seek();return}super.currentTime=u}},r=new WeakMap,s=new WeakMap,n=new WeakMap,a=new WeakSet,o=function(){var u,c;return(c=(u=Gs.get(this.remote))==null?void 0:u.getCastPlayer)==null?void 0:c.call(u)},l=new WeakSet,d=async function(){R(this,r).paused=E0(t.prototype,this,"paused"),E0(t.prototype,this,"pause").call(this),this.muted=E0(t.prototype,this,"muted");try{await this.load()}catch(u){console.error(u)}},Ce(t,"observedAttributes",[...(e=i.observedAttributes)!=null?e:[],"cast-src","cast-content-type","cast-stream-type","cast-receiver"]),t},$c=class extends Event{constructor(i,e){super(i),Ce(this,"track"),this.track=e.track}},R0=new WeakMap;function V(i){var e;return(e=R0.get(i))!=null?e:BD(i,{})}function BD(i,e){let t=R0.get(i);return t||R0.set(i,t={}),Object.assign(t,e)}function w0(i,e){let t=i.videoTracks;V(e).media=i,V(e).renditionSet||(V(e).renditionSet=new Set);let r=V(t).trackSet;r.add(e);let s=r.size-1;s in D0.prototype||Object.defineProperty(D0.prototype,s,{get(){return[...V(this).trackSet][s]}}),queueMicrotask(()=>{t.dispatchEvent(new $c("addtrack",{track:e}))})}function C0(i){var e;let t=(e=V(i).media)==null?void 0:e.videoTracks;t&&(V(t).trackSet.delete(i),queueMicrotask(()=>{t.dispatchEvent(new $c("removetrack",{track:i}))}))}function $D(i){var e;let t=(e=V(i).media.videoTracks)!=null?e:[],r=!1;for(let s of t)s!==i&&(s.selected=!1,r=!0);if(r){if(V(t).changeRequested)return;V(t).changeRequested=!0,queueMicrotask(()=>{delete V(t).changeRequested,t.dispatchEvent(new Event("change"))})}}var Rs,ws,Cs,Xn,Ao,D0=class extends EventTarget{constructor(){super(),X(this,Xn),X(this,Rs,void 0),X(this,ws,void 0),X(this,Cs,void 0),V(this).trackSet=new Set}[Symbol.iterator](){return R(this,Xn,Ao).values()}get length(){return R(this,Xn,Ao).size}getTrackById(i){var e;return(e=[...R(this,Xn,Ao)].find(t=>t.id===i))!=null?e:null}get selectedIndex(){return[...R(this,Xn,Ao)].findIndex(i=>i.selected)}get onaddtrack(){return R(this,Rs)}set onaddtrack(i){R(this,Rs)&&(this.removeEventListener("addtrack",R(this,Rs)),ee(this,Rs,void 0)),typeof i=="function"&&(ee(this,Rs,i),this.addEventListener("addtrack",i))}get onremovetrack(){return R(this,ws)}set onremovetrack(i){R(this,ws)&&(this.removeEventListener("removetrack",R(this,ws)),ee(this,ws,void 0)),typeof i=="function"&&(ee(this,ws,i),this.addEventListener("removetrack",i))}get onchange(){return R(this,Cs)}set onchange(i){R(this,Cs)&&(this.removeEventListener("change",R(this,Cs)),ee(this,Cs,void 0)),typeof i=="function"&&(ee(this,Cs,i),this.addEventListener("change",i))}};Rs=new WeakMap,ws=new WeakMap,Cs=new WeakMap,Xn=new WeakSet,Ao=function(){return V(this).trackSet};var Hc=class extends Event{constructor(i,e){super(i),Ce(this,"rendition"),this.rendition=e.rendition}};function HD(i,e){let t=V(i).media.videoRenditions;V(e).media=V(i).media,V(e).track=i;let r=V(i).renditionSet;r.add(e);let s=r.size-1;s in M0.prototype||Object.defineProperty(M0.prototype,s,{get(){return Qn(this)[s]}}),queueMicrotask(()=>{i.selected&&t.dispatchEvent(new Hc("addrendition",{rendition:e}))})}function GD(i){let e=V(i).media.videoRenditions,t=V(i).track;V(t).renditionSet.delete(i),queueMicrotask(()=>{V(i).track.selected&&e.dispatchEvent(new Hc("removerendition",{rendition:i}))})}function WD(i){let e=V(i).media.videoRenditions;!e||V(e).changeRequested||(V(e).changeRequested=!0,queueMicrotask(()=>{delete V(e).changeRequested,V(i).track.selected&&e.dispatchEvent(new Event("change"))}))}function Qn(i){return[...V(i).media.videoTracks].filter(e=>e.selected).flatMap(e=>[...V(e).renditionSet])}var Ds,Ms,Ps,M0=class extends EventTarget{constructor(){super(...arguments),X(this,Ds,void 0),X(this,Ms,void 0),X(this,Ps,void 0)}[Symbol.iterator](){return Qn(this).values()}get length(){return Qn(this).length}getRenditionById(i){var e;return(e=Qn(this).find(t=>`${t.id}`==`${i}`))!=null?e:null}get selectedIndex(){return Qn(this).findIndex(i=>i.selected)}set selectedIndex(i){for(let[e,t]of Qn(this).entries())t.selected=e===i}get onaddrendition(){return R(this,Ds)}set onaddrendition(i){R(this,Ds)&&(this.removeEventListener("addrendition",R(this,Ds)),ee(this,Ds,void 0)),typeof i=="function"&&(ee(this,Ds,i),this.addEventListener("addrendition",i))}get onremoverendition(){return R(this,Ms)}set onremoverendition(i){R(this,Ms)&&(this.removeEventListener("removerendition",R(this,Ms)),ee(this,Ms,void 0)),typeof i=="function"&&(ee(this,Ms,i),this.addEventListener("removerendition",i))}get onchange(){return R(this,Ps)}set onchange(i){R(this,Ps)&&(this.removeEventListener("change",R(this,Ps)),ee(this,Ps,void 0)),typeof i=="function"&&(ee(this,Ps,i),this.addEventListener("change",i))}};Ds=new WeakMap,Ms=new WeakMap,Ps=new WeakMap;var So,KD=class{constructor(){Ce(this,"src"),Ce(this,"id"),Ce(this,"width"),Ce(this,"height"),Ce(this,"bitrate"),Ce(this,"frameRate"),Ce(this,"codec"),X(this,So,!1)}get selected(){return R(this,So)}set selected(i){R(this,So)!==i&&(ee(this,So,i),WD(this))}};So=new WeakMap;var xo,OA=class{constructor(){Ce(this,"id"),Ce(this,"kind"),Ce(this,"label",""),Ce(this,"language",""),Ce(this,"sourceBuffer"),X(this,xo,!1)}addRendition(i,e,t,r,s,n){let a=new KD;return a.src=i,a.width=e,a.height=t,a.frameRate=n,a.bitrate=s,a.codec=r,HD(this,a),a}removeRendition(i){GD(i)}get selected(){return R(this,xo)}set selected(i){R(this,xo)!==i&&(ee(this,xo,i),i===!0&&$D(this))}};xo=new WeakMap;function VD(i,e){let t=V(i).media.audioRenditions;V(e).media=V(i).media,V(e).track=i;let r=V(i).renditionSet;r.add(e);let s=r.size-1;s in P0.prototype||Object.defineProperty(P0.prototype,s,{get(){return Zn(this)[s]}}),queueMicrotask(()=>{i.enabled&&t.dispatchEvent(new Hc("addrendition",{rendition:e}))})}function qD(i){let e=V(i).media.audioRenditions,t=V(i).track;V(t).renditionSet.delete(i),queueMicrotask(()=>{V(i).track.enabled&&e.dispatchEvent(new Hc("removerendition",{rendition:i}))})}function YD(i){let e=V(i).media.audioRenditions;!e||V(e).changeRequested||(V(e).changeRequested=!0,queueMicrotask(()=>{delete V(e).changeRequested,V(i).track.enabled&&e.dispatchEvent(new Event("change"))}))}function Zn(i){return[...V(i).media.audioTracks].filter(e=>e.enabled).flatMap(e=>[...V(e).renditionSet])}var Os,Ns,Us,P0=class extends EventTarget{constructor(){super(...arguments),X(this,Os,void 0),X(this,Ns,void 0),X(this,Us,void 0)}[Symbol.iterator](){return Zn(this).values()}get length(){return Zn(this).length}getRenditionById(i){var e;return(e=Zn(this).find(t=>`${t.id}`==`${i}`))!=null?e:null}get selectedIndex(){return Zn(this).findIndex(i=>i.selected)}set selectedIndex(i){for(let[e,t]of Zn(this).entries())t.selected=e===i}get onaddrendition(){return R(this,Os)}set onaddrendition(i){R(this,Os)&&(this.removeEventListener("addrendition",R(this,Os)),ee(this,Os,void 0)),typeof i=="function"&&(ee(this,Os,i),this.addEventListener("addrendition",i))}get onremoverendition(){return R(this,Ns)}set onremoverendition(i){R(this,Ns)&&(this.removeEventListener("removerendition",R(this,Ns)),ee(this,Ns,void 0)),typeof i=="function"&&(ee(this,Ns,i),this.addEventListener("removerendition",i))}get onchange(){return R(this,Us)}set onchange(i){R(this,Us)&&(this.removeEventListener("change",R(this,Us)),ee(this,Us,void 0)),typeof i=="function"&&(ee(this,Us,i),this.addEventListener("change",i))}};Os=new WeakMap,Ns=new WeakMap,Us=new WeakMap;var Lo,zD=class{constructor(){Ce(this,"src"),Ce(this,"id"),Ce(this,"bitrate"),Ce(this,"codec"),X(this,Lo,!1)}get selected(){return R(this,Lo)}set selected(i){R(this,Lo)!==i&&(ee(this,Lo,i),YD(this))}};Lo=new WeakMap;function O0(i,e){let t=i.audioTracks;V(e).media=i,V(e).renditionSet||(V(e).renditionSet=new Set);let r=V(t).trackSet;r.add(e);let s=r.size-1;s in U0.prototype||Object.defineProperty(U0.prototype,s,{get(){return[...V(this).trackSet][s]}}),queueMicrotask(()=>{t.dispatchEvent(new $c("addtrack",{track:e}))})}function N0(i){var e;let t=(e=V(i).media)==null?void 0:e.audioTracks;t&&(V(t).trackSet.delete(i),queueMicrotask(()=>{t.dispatchEvent(new $c("removetrack",{track:i}))}))}function jD(i){let e=V(i).media.audioTracks;!e||V(e).changeRequested||(V(e).changeRequested=!0,queueMicrotask(()=>{delete V(e).changeRequested,e.dispatchEvent(new Event("change"))}))}var Fs,Bs,$s,ko,Rc,U0=class extends EventTarget{constructor(){super(),X(this,ko),X(this,Fs,void 0),X(this,Bs,void 0),X(this,$s,void 0),V(this).trackSet=new Set}[Symbol.iterator](){return R(this,ko,Rc).values()}get length(){return R(this,ko,Rc).size}getTrackById(i){var e;return(e=[...R(this,ko,Rc)].find(t=>t.id===i))!=null?e:null}get onaddtrack(){return R(this,Fs)}set onaddtrack(i){R(this,Fs)&&(this.removeEventListener("addtrack",R(this,Fs)),ee(this,Fs,void 0)),typeof i=="function"&&(ee(this,Fs,i),this.addEventListener("addtrack",i))}get onremovetrack(){return R(this,Bs)}set onremovetrack(i){R(this,Bs)&&(this.removeEventListener("removetrack",R(this,Bs)),ee(this,Bs,void 0)),typeof i=="function"&&(ee(this,Bs,i),this.addEventListener("removetrack",i))}get onchange(){return R(this,$s)}set onchange(i){R(this,$s)&&(this.removeEventListener("change",R(this,$s)),ee(this,$s,void 0)),typeof i=="function"&&(ee(this,$s,i),this.addEventListener("change",i))}};Fs=new WeakMap,Bs=new WeakMap,$s=new WeakMap,ko=new WeakSet,Rc=function(){return V(this).trackSet};var Io,NA=class{constructor(){Ce(this,"id"),Ce(this,"kind"),Ce(this,"label",""),Ce(this,"language",""),Ce(this,"sourceBuffer"),X(this,Io,!1)}addRendition(i,e,t){let r=new zD;return r.src=i,r.codec=e,r.bitrate=t,VD(this,r),r}removeRendition(i){qD(i)}get enabled(){return R(this,Io)}set enabled(i){R(this,Io)!==i&&(ee(this,Io,i),jD(this))}};Io=new WeakMap;var LA=Uc(globalThis.HTMLMediaElement,"video"),kA=Uc(globalThis.HTMLMediaElement,"audio");function XD(i){if(!(i!=null&&i.prototype))return i;let e=Uc(i,"video");(!e||`${e}`.includes("[native code]"))&&Object.defineProperty(i.prototype,"videoTracks",{get(){return QD(this)}});let t=Uc(i,"audio");(!t||`${t}`.includes("[native code]"))&&Object.defineProperty(i.prototype,"audioTracks",{get(){return ZD(this)}}),"addVideoTrack"in i.prototype||(i.prototype.addVideoTrack=function(n,a="",o=""){let l=new OA;return l.kind=n,l.label=a,l.language=o,w0(this,l),l}),"removeVideoTrack"in i.prototype||(i.prototype.removeVideoTrack=C0),"addAudioTrack"in i.prototype||(i.prototype.addAudioTrack=function(n,a="",o=""){let l=new NA;return l.kind=n,l.label=a,l.language=o,O0(this,l),l}),"removeAudioTrack"in i.prototype||(i.prototype.removeAudioTrack=N0),"videoRenditions"in i.prototype||Object.defineProperty(i.prototype,"videoRenditions",{get(){return r(this)}});let r=n=>{let a=V(n).videoRenditions;return a||(a=new M0,V(a).media=n,V(n).videoRenditions=a),a};"audioRenditions"in i.prototype||Object.defineProperty(i.prototype,"audioRenditions",{get(){return s(this)}});let s=n=>{let a=V(n).audioRenditions;return a||(a=new P0,V(a).media=n,V(n).audioRenditions=a),a};return i}function Uc(i,e){var t;if(i!=null&&i.prototype)return(t=Object.getOwnPropertyDescriptor(i.prototype,`${e}Tracks`))==null?void 0:t.get}function QD(i){var e;let t=V(i).videoTracks;if(!t&&(t=new D0,V(i).videoTracks=t,LA)){let r=LA.call((e=i.nativeEl)!=null?e:i);for(let s of r)w0(i,s);r.addEventListener("change",()=>{t.dispatchEvent(new Event("change"))}),r.addEventListener("addtrack",s=>{if([...t].some(n=>n instanceof OA)){for(let n of r)C0(n);return}w0(i,s.track)}),r.addEventListener("removetrack",s=>{C0(s.track)})}return t}function ZD(i){var e;let t=V(i).audioTracks;if(!t&&(t=new U0,V(i).audioTracks=t,kA)){let r=kA.call((e=i.nativeEl)!=null?e:i);for(let s of r)O0(i,s);r.addEventListener("change",()=>{t.dispatchEvent(new Event("change"))}),r.addEventListener("addtrack",s=>{if([...t].some(n=>n instanceof NA)){for(let n of r)N0(n);return}O0(i,s.track)}),r.addEventListener("removetrack",s=>{N0(s.track)})}return t}Bc.push("castchange","entercast","leavecast");var M={BEACON_COLLECTION_DOMAIN:"beacon-collection-domain",CUSTOM_DOMAIN:"custom-domain",DEBUG:"debug",DISABLE_TRACKING:"disable-tracking",DISABLE_COOKIES:"disable-cookies",DRM_TOKEN:"drm-token",ENV_KEY:"env-key",MAX_RESOLUTION:"max-resolution",MIN_RESOLUTION:"min-resolution",RENDITION_ORDER:"rendition-order",PROGRAM_START_TIME:"program-start-time",PROGRAM_END_TIME:"program-end-time",METADATA_URL:"metadata-url",PLAYBACK_ID:"playback-id",PLAYER_SOFTWARE_NAME:"player-software-name",PLAYER_SOFTWARE_VERSION:"player-software-version",PREFER_CMCD:"prefer-cmcd",PREFER_PLAYBACK:"prefer-playback",START_TIME:"start-time",STREAM_TYPE:"stream-type",TARGET_LIVE_WINDOW:"target-live-window",LIVE_EDGE_OFFSET:"live-edge-offset",TYPE:"type"},JD=Object.values(M),eM=xD(),tM="mux-video",Zi,Ro,wc,wo,Cc,Dc,Mc,Pc,Co,Oc,iM=class extends y0{constructor(){super(),X(this,Co),X(this,Zi,void 0),X(this,Ro,void 0),X(this,wc,void 0),X(this,wo,{}),X(this,Cc,void 0),X(this,Dc,void 0),X(this,Mc,void 0),X(this,Pc,void 0),ee(this,wc,dA())}static get observedAttributes(){var i;return[...JD,...(i=y0.observedAttributes)!=null?i:[]]}get preferCmcd(){var i;return(i=this.getAttribute(M.PREFER_CMCD))!=null?i:void 0}set preferCmcd(i){i!==this.preferCmcd&&(i?zn.includes(i)?this.setAttribute(M.PREFER_CMCD,i):console.warn(`Invalid value for preferCmcd. Must be one of ${zn.join()}`):this.removeAttribute(M.PREFER_CMCD))}get playerInitTime(){return R(this,wc)}get playerSoftwareName(){var i;return(i=R(this,Mc))!=null?i:tM}set playerSoftwareName(i){ee(this,Mc,i)}get playerSoftwareVersion(){var i;return(i=R(this,Dc))!=null?i:eM}set playerSoftwareVersion(i){ee(this,Dc,i)}get _hls(){var i;return(i=R(this,Zi))==null?void 0:i.engine}get mux(){var i;return(i=this.nativeEl)==null?void 0:i.mux}get error(){var i;return(i=uA(this.nativeEl))!=null?i:null}get errorTranslator(){return R(this,Pc)}set errorTranslator(i){ee(this,Pc,i)}get src(){return this.getAttribute("src")}set src(i){i!==this.src&&(i==null?this.removeAttribute("src"):this.setAttribute("src",i))}get type(){var i;return(i=this.getAttribute(M.TYPE))!=null?i:void 0}set type(i){i!==this.type&&(i?this.setAttribute(M.TYPE,i):this.removeAttribute(M.TYPE))}get autoplay(){let i=this.getAttribute("autoplay");return i===null?!1:i===""?!0:i}set autoplay(i){let e=this.autoplay;i!==e&&(i?this.setAttribute("autoplay",typeof i=="string"?i:""):this.removeAttribute("autoplay"))}get preload(){let i=this.getAttribute("preload");return i===""?"auto":["none","metadata","auto"].includes(i)?i:super.preload}set preload(i){i!=this.getAttribute("preload")&&(["","none","metadata","auto"].includes(i)?this.setAttribute("preload",i):this.removeAttribute("preload"))}get debug(){return this.getAttribute(M.DEBUG)!=null}set debug(i){i!==this.debug&&(i?this.setAttribute(M.DEBUG,""):this.removeAttribute(M.DEBUG))}get disableTracking(){return this.hasAttribute(M.DISABLE_TRACKING)}set disableTracking(i){i!==this.disableTracking&&this.toggleAttribute(M.DISABLE_TRACKING,!!i)}get disableCookies(){return this.hasAttribute(M.DISABLE_COOKIES)}set disableCookies(i){i!==this.disableCookies&&(i?this.setAttribute(M.DISABLE_COOKIES,""):this.removeAttribute(M.DISABLE_COOKIES))}get startTime(){let i=this.getAttribute(M.START_TIME);if(i==null)return;let e=+i;return Number.isNaN(e)?void 0:e}set startTime(i){i!==this.startTime&&(i==null?this.removeAttribute(M.START_TIME):this.setAttribute(M.START_TIME,`${i}`))}get playbackId(){var i;return this.hasAttribute(M.PLAYBACK_ID)?this.getAttribute(M.PLAYBACK_ID):(i=Ac(this.src))!=null?i:void 0}set playbackId(i){i!==this.playbackId&&(i?this.setAttribute(M.PLAYBACK_ID,i):this.removeAttribute(M.PLAYBACK_ID))}get maxResolution(){var i;return(i=this.getAttribute(M.MAX_RESOLUTION))!=null?i:void 0}set maxResolution(i){i!==this.maxResolution&&(i?this.setAttribute(M.MAX_RESOLUTION,i):this.removeAttribute(M.MAX_RESOLUTION))}get minResolution(){var i;return(i=this.getAttribute(M.MIN_RESOLUTION))!=null?i:void 0}set minResolution(i){i!==this.minResolution&&(i?this.setAttribute(M.MIN_RESOLUTION,i):this.removeAttribute(M.MIN_RESOLUTION))}get renditionOrder(){var i;return(i=this.getAttribute(M.RENDITION_ORDER))!=null?i:void 0}set renditionOrder(i){i!==this.renditionOrder&&(i?this.setAttribute(M.RENDITION_ORDER,i):this.removeAttribute(M.RENDITION_ORDER))}get programStartTime(){let i=this.getAttribute(M.PROGRAM_START_TIME);if(i==null)return;let e=+i;return Number.isNaN(e)?void 0:e}set programStartTime(i){i==null?this.removeAttribute(M.PROGRAM_START_TIME):this.setAttribute(M.PROGRAM_START_TIME,`${i}`)}get programEndTime(){let i=this.getAttribute(M.PROGRAM_END_TIME);if(i==null)return;let e=+i;return Number.isNaN(e)?void 0:e}set programEndTime(i){i==null?this.removeAttribute(M.PROGRAM_END_TIME):this.setAttribute(M.PROGRAM_END_TIME,`${i}`)}get customDomain(){var i;return(i=this.getAttribute(M.CUSTOM_DOMAIN))!=null?i:void 0}set customDomain(i){i!==this.customDomain&&(i?this.setAttribute(M.CUSTOM_DOMAIN,i):this.removeAttribute(M.CUSTOM_DOMAIN))}get drmToken(){var i;return(i=this.getAttribute(M.DRM_TOKEN))!=null?i:void 0}set drmToken(i){i!==this.drmToken&&(i?this.setAttribute(M.DRM_TOKEN,i):this.removeAttribute(M.DRM_TOKEN))}get ended(){return g0(this.nativeEl,this._hls)}get envKey(){var i;return(i=this.getAttribute(M.ENV_KEY))!=null?i:void 0}set envKey(i){i!==this.envKey&&(i?this.setAttribute(M.ENV_KEY,i):this.removeAttribute(M.ENV_KEY))}get beaconCollectionDomain(){var i;return(i=this.getAttribute(M.BEACON_COLLECTION_DOMAIN))!=null?i:void 0}set beaconCollectionDomain(i){i!==this.beaconCollectionDomain&&(i?this.setAttribute(M.BEACON_COLLECTION_DOMAIN,i):this.removeAttribute(M.BEACON_COLLECTION_DOMAIN))}get streamType(){var i;return(i=this.getAttribute(M.STREAM_TYPE))!=null?i:yc(this.nativeEl)}set streamType(i){i!==this.streamType&&(i?this.setAttribute(M.STREAM_TYPE,i):this.removeAttribute(M.STREAM_TYPE))}get targetLiveWindow(){return this.hasAttribute(M.TARGET_LIVE_WINDOW)?+this.getAttribute(M.TARGET_LIVE_WINDOW):cA(this.nativeEl)}set targetLiveWindow(i){i!=this.targetLiveWindow&&(i==null?this.removeAttribute(M.TARGET_LIVE_WINDOW):this.setAttribute(M.TARGET_LIVE_WINDOW,`${+i}`))}get liveEdgeStart(){var i,e;if(this.hasAttribute(M.LIVE_EDGE_OFFSET)){let{liveEdgeOffset:t}=this,r=(i=this.nativeEl.seekable.end(0))!=null?i:0,s=(e=this.nativeEl.seekable.start(0))!=null?e:0;return Math.max(s,r-t)}return hA(this.nativeEl)}get liveEdgeOffset(){if(this.hasAttribute(M.LIVE_EDGE_OFFSET))return+this.getAttribute(M.LIVE_EDGE_OFFSET)}set liveEdgeOffset(i){i!=this.targetLiveWindow&&(i==null?this.removeAttribute(M.LIVE_EDGE_OFFSET):this.setAttribute(M.LIVE_EDGE_OFFSET,`${+i}`))}get seekable(){return yo(this.nativeEl)}async addCuePoints(i){return u0(this.nativeEl,i)}get activeCuePoint(){return c0(this.nativeEl)}get cuePoints(){return rA(this.nativeEl)}async addChapters(i){return f0(this.nativeEl,i)}get activeChapter(){return m0(this.nativeEl)}get chapters(){return nA(this.nativeEl)}getStartDate(){return aA(this.nativeEl,this._hls)}get currentPdt(){return oA(this.nativeEl,this._hls)}get preferPlayback(){let i=this.getAttribute(M.PREFER_PLAYBACK);if(i===Jt.MSE||i===Jt.NATIVE)return i}set preferPlayback(i){i!==this.preferPlayback&&(i===Jt.MSE||i===Jt.NATIVE?this.setAttribute(M.PREFER_PLAYBACK,i):this.removeAttribute(M.PREFER_PLAYBACK))}get metadata(){return{...this.getAttributeNames().filter(i=>i.startsWith("metadata-")&&![M.METADATA_URL].includes(i)).reduce((i,e)=>{let t=this.getAttribute(e);return t!=null&&(i[e.replace(/^metadata-/,"").replace(/-/g,"_")]=t),i},{}),...R(this,wo)}}set metadata(i){ee(this,wo,i!=null?i:{}),this.mux&&this.mux.emit("hb",R(this,wo))}get _hlsConfig(){return R(this,Cc)}set _hlsConfig(i){ee(this,Cc,i)}load(){ee(this,Zi,pA(this,this.nativeEl,R(this,Zi)))}unload(){v0(this.nativeEl,R(this,Zi)),ee(this,Zi,void 0)}attributeChangedCallback(i,e,t){var r,s;switch(y0.observedAttributes.includes(i)&&!["src","autoplay","preload"].includes(i)&&super.attributeChangedCallback(i,e,t),i){case M.PLAYER_SOFTWARE_NAME:this.playerSoftwareName=t!=null?t:void 0;break;case M.PLAYER_SOFTWARE_VERSION:this.playerSoftwareVersion=t!=null?t:void 0;break;case"src":{let n=!!e,a=!!t;!n&&a?Fe(this,Co,Oc).call(this):n&&!a?this.unload():n&&a&&(this.unload(),Fe(this,Co,Oc).call(this));break}case"autoplay":if(t===e)break;(r=R(this,Zi))==null||r.setAutoplay(this.autoplay);break;case"preload":if(t===e)break;(s=R(this,Zi))==null||s.setPreload(t);break;case M.PLAYBACK_ID:this.src=_o(this);break;case M.DEBUG:{let n=this.debug;this.mux&&console.info("Cannot toggle debug mode of mux data after initialization. Make sure you set all metadata to override before setting the src."),this._hls&&(this._hls.config.debug=n);break}case M.METADATA_URL:t&&fetch(t).then(n=>n.json()).then(n=>this.metadata=n).catch(()=>console.error(`Unable to load or parse metadata JSON from metadata-url ${t}!`));break;case M.STREAM_TYPE:(t==null||t!==e)&&this.dispatchEvent(new CustomEvent("streamtypechange",{composed:!0,bubbles:!0}));break;case M.TARGET_LIVE_WINDOW:(t==null||t!==e)&&this.dispatchEvent(new CustomEvent("targetlivewindowchange",{composed:!0,bubbles:!0,detail:this.targetLiveWindow}));break;default:break}}connectedCallback(){var i;(i=super.connectedCallback)==null||i.call(this),this.nativeEl&&this.src&&!R(this,Zi)&&Fe(this,Co,Oc).call(this)}disconnectedCallback(){this.unload()}};Zi=new WeakMap,Ro=new WeakMap,wc=new WeakMap,wo=new WeakMap,Cc=new WeakMap,Dc=new WeakMap,Mc=new WeakMap,Pc=new WeakMap,Co=new WeakSet,Oc=async function(){R(this,Ro)||(await ee(this,Ro,Promise.resolve()),ee(this,Ro,null),this.load())};var F0=class extends FD(XD(iM)){};b0.customElements.get("mux-video")||(b0.customElements.define("mux-video",F0),b0.MuxVideoElement=F0);var UA=F0;var rM="en",Ks={code:rM};var FA="en";function ce(i,e=!0){var s,n;let t=e&&(n=(s=Ks)==null?void 0:s[i])!=null?n:i,r=e?Ks.code:FA;return new W0(t,r)}var W0=class{constructor(e,t=(r=>(r=Ks.code)!=null?r:FA)()){this.message=e,this.locale=t}format(e){return this.message.replace(/\{(\w+)\}/g,(t,r)=>{var s;return(s=e[r])!=null?s:""})}toString(){return this.message}};function BA(i){let e="";return Object.entries(i).forEach(([t,r])=>{r!=null&&(e+=`${Gc(t)}: ${r}; `)}),e?e.trim():void 0}function Gc(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Wc(i){return i.replace(/[-_]([a-z])/g,(e,t)=>t.toUpperCase())}function ti(i){if(i==null)return;let e=+i;return Number.isNaN(e)?void 0:e}function K0(i){let e=sM(i).toString();return e?"?"+e:""}function sM(i){let e={};for(let t in i)i[t]!=null&&(e[t]=i[t]);return new URLSearchParams(e)}function $r(i){let e=(i!=null?i:"").split(".")[1];if(!e)return{};let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(atob(t).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(r)}var V0=(i,e)=>!i||!e?!1:i.contains(e)?!0:V0(i,e.getRootNode().host);var $A="mux.com",nM=()=>{try{return"2.8.1"}catch{}return"UNKNOWN"},aM=nM(),Vc=()=>aM,HA=(i,{token:e,customDomain:t=$A,thumbnailTime:r,programTime:s}={})=>{let n=e==null?r:void 0,{aud:a}=$r(e);if(!(e&&a!=="t"))return`https://image.${t}/${i}/thumbnail.webp${K0({token:e,time:n,program_time:s})}`},GA=(i,{token:e,customDomain:t=$A,programStartTime:r,programEndTime:s}={})=>{let{aud:n}=$r(e);if(!(e&&n!=="s"))return`https://image.${t}/${i}/storyboard.vtt${K0({token:e,format:"webp",program_start_time:r,program_end_time:s})}`},Do=i=>{if(i){if([ye.LIVE,ye.ON_DEMAND].includes(i))return i;if(i!=null&&i.includes("live"))return ye.LIVE}};var oM={crossorigin:"crossOrigin",playsinline:"playsInline"};function WA(i){var e;return(e=oM[i])!=null?e:Wc(i)}var Vs,qs,kt,Kc=class{constructor(e,t){qe(this,Vs,void 0);qe(this,qs,void 0);qe(this,kt,[]);Wt(this,Vs,e),Wt(this,qs,t)}[Symbol.iterator](){return fe(this,kt).values()}get length(){return fe(this,kt).length}get value(){var e;return(e=fe(this,kt).join(" "))!=null?e:""}set value(e){var t;e!==this.value&&(Wt(this,kt,[]),this.add(...(t=e==null?void 0:e.split(" "))!=null?t:[]))}toString(){return this.value}item(e){return fe(this,kt)[e]}values(){return fe(this,kt).values()}keys(){return fe(this,kt).keys()}forEach(e){fe(this,kt).forEach(e)}add(...e){var t,r;e.forEach(s=>{this.contains(s)||fe(this,kt).push(s)}),!(this.value===""&&!((t=fe(this,Vs))!=null&&t.hasAttribute(`${fe(this,qs)}`)))&&((r=fe(this,Vs))==null||r.setAttribute(`${fe(this,qs)}`,`${this.value}`))}remove(...e){var t;e.forEach(r=>{fe(this,kt).splice(fe(this,kt).indexOf(r),1)}),(t=fe(this,Vs))==null||t.setAttribute(`${fe(this,qs)}`,`${this.value}`)}contains(e){return fe(this,kt).includes(e)}toggle(e,t){return typeof t!="undefined"?t?(this.add(e),!0):(this.remove(e),!1):this.contains(e)?(this.remove(e),!1):(this.add(e),!0)}replace(e,t){this.remove(e),this.add(t)}};Vs=new WeakMap,qs=new WeakMap,kt=new WeakMap;var KA=`[mux-player ${Vc()}]`;function Hr(...i){console.warn(KA,...i)}function Gt(...i){console.error(KA,...i)}function q0(i){var t;let e=(t=i.message)!=null?t:"";if(i.context&&(e+=` ${i.context}`),i.file){let r="https://github.com/muxinc/elements/blob/main/errors/";e+=` ${ce("Read more: ")}
1647
- ${r}${i.file}`}Hr(e)}var xt={AUTOPLAY:"autoplay",CROSSORIGIN:"crossorigin",LOOP:"loop",MUTED:"muted",PLAYSINLINE:"playsinline",PRELOAD:"preload"},Ys={VOLUME:"volume",PLAYBACKRATE:"playbackrate",MUTED:"muted"},qA=Object.freeze({length:0,start(i){let e=i>>>0;if(e>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${e}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(i){let e=i>>>0;if(e>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${e}) is greater than or equal to the maximum bound (${this.length}).`);return 0}}),lM=Bc.filter(i=>i!=="error"),dM=Object.values(xt).filter(i=>![xt.PLAYSINLINE].includes(i)),uM=Object.values(Ys),ea,Y0=class extends $e.HTMLElement{constructor(){super();qe(this,ea,new WeakMap);let t=s=>{for(let n of s)n.type==="childList"&&(n.removedNodes.forEach(a=>{var o;(o=fe(this,ea).get(a))==null||o.remove()}),n.addedNodes.forEach(a=>{var l;let o=a;o!=null&&o.slot||(l=this.media)==null||l.append(YA(fe(this,ea),a))}))};new MutationObserver(t).observe(this,{childList:!0,subtree:!0}),lM.forEach(s=>{var n;(n=this.media)==null||n.addEventListener(s,a=>{this.dispatchEvent(new Event(a.type))})})}static get observedAttributes(){return[...dM,...uM]}init(){this.querySelectorAll(":scope > :not([slot])").forEach(t=>{var r;(r=this.media)==null||r.append(YA(fe(this,ea),t))})}attributeChangedCallback(t,r,s){var n,a;switch(t){case Ys.MUTED:{this.media&&(this.media.muted=s!=null,this.media.defaultMuted=s!=null);return}case Ys.VOLUME:{let o=(n=ti(s))!=null?n:1;this.media&&(this.media.volume=o);return}case Ys.PLAYBACKRATE:{let o=(a=ti(s))!=null?a:1;this.media&&(this.media.playbackRate=o,this.media.defaultPlaybackRate=o);return}}}play(){var t,r;return(r=(t=this.media)==null?void 0:t.play())!=null?r:Promise.reject()}pause(){var t;(t=this.media)==null||t.pause()}load(){var t;(t=this.media)==null||t.load()}requestCast(t){var r;return(r=this.media)==null?void 0:r.requestCast(t)}get media(){var t;return(t=this.shadowRoot)==null?void 0:t.querySelector("mux-video")}get audioTracks(){return this.media.audioTracks}get videoTracks(){return this.media.videoTracks}get audioRenditions(){return this.media.audioRenditions}get videoRenditions(){return this.media.videoRenditions}get paused(){var t,r;return(r=(t=this.media)==null?void 0:t.paused)!=null?r:!0}get duration(){var t,r;return(r=(t=this.media)==null?void 0:t.duration)!=null?r:NaN}get ended(){var t,r;return(r=(t=this.media)==null?void 0:t.ended)!=null?r:!1}get buffered(){var t,r;return(r=(t=this.media)==null?void 0:t.buffered)!=null?r:qA}get seekable(){var t,r;return(r=(t=this.media)==null?void 0:t.seekable)!=null?r:qA}get readyState(){var t,r;return(r=(t=this.media)==null?void 0:t.readyState)!=null?r:0}get videoWidth(){var t,r;return(r=(t=this.media)==null?void 0:t.videoWidth)!=null?r:0}get videoHeight(){var t,r;return(r=(t=this.media)==null?void 0:t.videoHeight)!=null?r:0}get currentSrc(){var t,r;return(r=(t=this.media)==null?void 0:t.currentSrc)!=null?r:""}get currentTime(){var t,r;return(r=(t=this.media)==null?void 0:t.currentTime)!=null?r:0}set currentTime(t){this.media&&(this.media.currentTime=Number(t))}get volume(){var t,r;return(r=(t=this.media)==null?void 0:t.volume)!=null?r:1}set volume(t){this.media&&(this.media.volume=Number(t))}get playbackRate(){var t,r;return(r=(t=this.media)==null?void 0:t.playbackRate)!=null?r:1}set playbackRate(t){this.media&&(this.media.playbackRate=Number(t))}get defaultPlaybackRate(){var t;return(t=ti(this.getAttribute(Ys.PLAYBACKRATE)))!=null?t:1}set defaultPlaybackRate(t){t!=null?this.setAttribute(Ys.PLAYBACKRATE,`${t}`):this.removeAttribute(Ys.PLAYBACKRATE)}get crossOrigin(){return Mo(this,xt.CROSSORIGIN)}set crossOrigin(t){this.setAttribute(xt.CROSSORIGIN,`${t}`)}get autoplay(){return Mo(this,xt.AUTOPLAY)!=null}set autoplay(t){t?this.setAttribute(xt.AUTOPLAY,typeof t=="string"?t:""):this.removeAttribute(xt.AUTOPLAY)}get loop(){return Mo(this,xt.LOOP)!=null}set loop(t){t?this.setAttribute(xt.LOOP,""):this.removeAttribute(xt.LOOP)}get muted(){var t,r;return(r=(t=this.media)==null?void 0:t.muted)!=null?r:!1}set muted(t){this.media&&(this.media.muted=!!t)}get defaultMuted(){return Mo(this,xt.MUTED)!=null}set defaultMuted(t){t?this.setAttribute(xt.MUTED,""):this.removeAttribute(xt.MUTED)}get playsInline(){return Mo(this,xt.PLAYSINLINE)!=null}set playsInline(t){Gt("playsInline is set to true by default and is not currently supported as a setter.")}get preload(){return this.media?this.media.preload:this.getAttribute("preload")}set preload(t){["","none","metadata","auto"].includes(t)?this.setAttribute(xt.PRELOAD,t):this.removeAttribute(xt.PRELOAD)}};ea=new WeakMap;function Mo(i,e){return i.media?i.media.getAttribute(e):i.getAttribute(e)}function YA(i,e){let t=i.get(e);return t||(t=e.cloneNode(),i.set(e,t)),t}var z0=Y0;var cM=Object.defineProperty,hM=(i,e,t)=>e in i?cM(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,fM=(i,e,t)=>(hM(i,typeof e!="symbol"?e+"":e,t),t),ZA=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},de=(i,e,t)=>(ZA(i,e,"read from private field"),t?t.call(i):e.get(i)),Ji=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},cr=(i,e,t,r)=>(ZA(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),ta,qc,zs,Po,Gr,Wr,Kr,js,ia,Yc,Ti,zA=1,jA=0,mM=1,pM={processCallback(i,e,t){if(t){for(let[r,s]of e)if(r in t){let n=t[r];typeof n=="boolean"&&s instanceof It&&typeof s.element[s.attributeName]=="boolean"?s.booleanValue=n:typeof n=="function"&&s instanceof It?s.element[s.attributeName]=n:s.value=n}}}},hr=class extends _.DocumentFragment{constructor(e,t,r=pM){var s;super(),Ji(this,ta,void 0),Ji(this,qc,void 0),this.append(e.content.cloneNode(!0)),cr(this,ta,JA(this)),cr(this,qc,r),(s=r.createCallback)==null||s.call(r,this,de(this,ta),t),r.processCallback(this,de(this,ta),t)}update(e){de(this,qc).processCallback(this,de(this,ta),e)}};ta=new WeakMap;qc=new WeakMap;var JA=(i,e=[])=>{let t,r;for(let s of i.attributes||[])if(s.value.includes("{{")){let n=new j0;for([t,r]of QA(s.value))if(!t)n.append(r);else{let a=new It(i,s.name,s.namespaceURI);n.append(a),e.push([r,a])}s.value=n.toString()}for(let s of i.childNodes)if(s.nodeType===zA&&!(s instanceof HTMLTemplateElement))JA(s,e);else if(s.nodeType===zA||s.data.includes("{{")){let n=[];if(s.data)for([t,r]of QA(s.data))if(!t)n.push(new Text(r));else{let a=new fr(i);n.push(a),e.push([r,a])}else if(s instanceof HTMLTemplateElement){let a=new Oo(i,s);n.push(a),e.push([a.expression,a])}s.replaceWith(...n.flatMap(a=>a.replacementNodes||[a]))}return e},XA={},QA=i=>{let e="",t=0,r=XA[i],s=0,n;if(r)return r;for(r=[];n=i[s];s++)n==="{"&&i[s+1]==="{"&&i[s-1]!=="\\"&&i[s+2]&&++t==1?(e&&r.push([jA,e]),e="",s++):n==="}"&&i[s+1]==="}"&&i[s-1]!=="\\"&&!--t?(r.push([mM,e.trim()]),e="",s++):e+=n||"";return e&&r.push([jA,(t>0?"{{":"")+e]),XA[i]=r},gM=11,zc=class{get value(){return""}set value(e){}toString(){return this.value}},e1=new WeakMap,j0=class{constructor(){Ji(this,zs,[])}[Symbol.iterator](){return de(this,zs).values()}get length(){return de(this,zs).length}item(e){return de(this,zs)[e]}append(...e){for(let t of e)t instanceof It&&e1.set(t,this),de(this,zs).push(t)}toString(){return de(this,zs).join("")}};zs=new WeakMap;var It=class extends zc{constructor(e,t,r){super(),Ji(this,js),Ji(this,Po,""),Ji(this,Gr,void 0),Ji(this,Wr,void 0),Ji(this,Kr,void 0),cr(this,Gr,e),cr(this,Wr,t),cr(this,Kr,r)}get attributeName(){return de(this,Wr)}get attributeNamespace(){return de(this,Kr)}get element(){return de(this,Gr)}get value(){return de(this,Po)}set value(e){de(this,Po)!==e&&(cr(this,Po,e),!de(this,js,ia)||de(this,js,ia).length===1?e==null?de(this,Gr).removeAttributeNS(de(this,Kr),de(this,Wr)):de(this,Gr).setAttributeNS(de(this,Kr),de(this,Wr),e):de(this,Gr).setAttributeNS(de(this,Kr),de(this,Wr),de(this,js,ia)))}get booleanValue(){return de(this,Gr).hasAttributeNS(de(this,Kr),de(this,Wr))}set booleanValue(e){if(!de(this,js,ia)||de(this,js,ia).length===1)this.value=e?"":null;else throw new DOMException("Value is not fully templatized")}};Po=new WeakMap;Gr=new WeakMap;Wr=new WeakMap;Kr=new WeakMap;js=new WeakSet;ia=function(){return e1.get(this)};var fr=class extends zc{constructor(e,t){super(),Ji(this,Yc,void 0),Ji(this,Ti,void 0),cr(this,Yc,e),cr(this,Ti,t?[...t]:[new Text])}get replacementNodes(){return de(this,Ti)}get parentNode(){return de(this,Yc)}get nextSibling(){return de(this,Ti)[de(this,Ti).length-1].nextSibling}get previousSibling(){return de(this,Ti)[0].previousSibling}get value(){return de(this,Ti).map(e=>e.textContent).join("")}set value(e){this.replace(e)}replace(...e){let t=e.flat().flatMap(r=>r==null?[new Text]:r.forEach?[...r]:r.nodeType===gM?[...r.childNodes]:r.nodeType?[r]:[new Text(r)]);t.length||t.push(new Text),cr(this,Ti,vM(de(this,Ti)[0].parentNode,de(this,Ti),t,this.nextSibling))}};Yc=new WeakMap;Ti=new WeakMap;var Oo=class extends fr{constructor(e,t){let r=t.getAttribute("directive")||t.getAttribute("type"),s=t.getAttribute("expression")||t.getAttribute(r)||"";s.startsWith("{{")&&(s=s.trim().slice(2,-2).trim()),super(e),fM(this,"directive"),this.expression=s,this.template=t,this.directive=r}};function vM(i,e,t,r=null){let s=0,n,a,o,l=t.length,d=e.length;for(;s<l&&s<d&&e[s]==t[s];)s++;for(;s<l&&s<d&&t[l-1]==e[d-1];)r=t[--d,--l];if(s==d)for(;s<l;)i.insertBefore(t[s++],r);if(s==l)for(;s<d;)i.removeChild(e[s++]);else{for(n=e[s];s<l;)o=t[s++],a=n?n.nextSibling:r,n==o?n=a:s<l&&t[s]==a?(i.replaceChild(o,n),n=a):i.insertBefore(o,n);for(;n!=r;)a=n.nextSibling,i.removeChild(n),n=a}return t}var t1={string:i=>String(i)},Xc=class{constructor(e){this.template=e,this.state=void 0}},Xs=new WeakMap,Qs=new WeakMap,X0={partial:(i,e)=>{e[i.expression]=new Xc(i.template)},if:(i,e)=>{var t;if(r1(i.expression,e))if(Xs.get(i)!==i.template){Xs.set(i,i.template);let r=new hr(i.template,e,Qc);i.replace(r),Qs.set(i,r)}else(t=Qs.get(i))==null||t.update(e);else i.replace(""),Xs.delete(i),Qs.delete(i)}},EM=Object.keys(X0),Qc={processCallback(i,e,t){var r,s;if(t)for(let[n,a]of e){if(a instanceof Oo){if(!a.directive){let l=EM.find(d=>a.template.hasAttribute(d));l&&(a.directive=l,a.expression=a.template.getAttribute(l))}(r=X0[a.directive])==null||r.call(X0,a,t);continue}let o=r1(n,t);if(o instanceof Xc){Xs.get(a)!==o.template?(Xs.set(a,o.template),o=new hr(o.template,o.state,Qc),a.value=o,Qs.set(a,o)):(s=Qs.get(a))==null||s.update(o.state);continue}o?(a instanceof It&&a.attributeName.startsWith("aria-")&&(o=String(o)),a instanceof It?typeof o=="boolean"?a.booleanValue=o:typeof o=="function"?a.element[a.attributeName]=o:a.value=o:(a.value=o,Xs.delete(a),Qs.delete(a))):a instanceof It?a.value=void 0:(a.value=void 0,Xs.delete(a),Qs.delete(a))}}},i1={"!":i=>!i,"!!":i=>!!i,"==":(i,e)=>i==e,"!=":(i,e)=>i!=e,">":(i,e)=>i>e,">=":(i,e)=>i>=e,"<":(i,e)=>i<e,"<=":(i,e)=>i<=e,"??":(i,e)=>i!=null?i:e,"|":(i,e)=>{var t;return(t=t1[e])==null?void 0:t.call(t1,i)}};function bM(i){return yM(i,{boolean:/true|false/,number:/-?\d+\.?\d*/,string:/(["'])((?:\\.|[^\\])*?)\1/,operator:/[!=><][=!]?|\?\?|\|/,ws:/\s+/,param:/[$a-z_][$\w]*/i}).filter(({type:e})=>e!=="ws")}function r1(i,e={}){var t,r,s,n,a,o,l;let d=bM(i);if(d.length===0||d.some(({type:u})=>!u))return No(i);if(((t=d[0])==null?void 0:t.token)===">"){let u=e[(r=d[1])==null?void 0:r.token];if(!u)return No(i);let c={...e};u.state=c;let h=d.slice(2);for(let f=0;f<h.length;f+=3){let m=(s=h[f])==null?void 0:s.token,p=(n=h[f+1])==null?void 0:n.token,g=(a=h[f+2])==null?void 0:a.token;m&&p==="="&&(c[m]=Uo(g,e))}return u}if(d.length===1)return jc(d[0])?Uo(d[0].token,e):No(i);if(d.length===2){let u=(o=d[0])==null?void 0:o.token,c=i1[u];if(!c||!jc(d[1]))return No(i);let h=Uo(d[1].token,e);return c(h)}if(d.length===3){let u=(l=d[1])==null?void 0:l.token,c=i1[u];if(!c||!jc(d[0])||!jc(d[2]))return No(i);let h=Uo(d[0].token,e);if(u==="|")return c(h,d[2].token);let f=Uo(d[2].token,e);return c(h,f)}}function No(i){return console.warn(`Warning: invalid expression \`${i}\``),!1}function jc({type:i}){return["number","boolean","string","param"].includes(i)}function Uo(i,e){let t=i[0],r=i.slice(-1);return i==="true"||i==="false"?i==="true":t===r&&["'",'"'].includes(t)?i.slice(1,-1):jo(i)?parseFloat(i):e[i]}function yM(i,e){let t,r,s,n=[];for(;i;){s=null,t=i.length;for(let a in e)r=e[a].exec(i),r&&r.index<t&&(s={token:r[0],type:a,matches:r.slice(1)},t=r.index);t&&n.push({token:i.substr(0,t),type:void 0}),s&&n.push(s),i=i.substr(t+(s?s.token.length:0))}return n}var TM=Object.defineProperty,_M=(i,e,t)=>e in i?TM(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Bo=(i,e,t)=>(_M(i,typeof e!="symbol"?e+"":e,t),t),iv=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},J0=(i,e,t)=>(iv(i,e,"read from private field"),t?t.call(i):e.get(i)),Fo=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Zs=(i,e,t,r)=>(iv(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Q0=(i,e,t)=>(iv(i,e,"access private method"),t),ra,Zc,sa,ev,s1,Jc,tv,Z0={mediatargetlivewindow:"targetlivewindow",mediastreamtype:"streamtype"},n1=O.createElement("template");n1.innerHTML=`
1647
+ ${r}${i.file}`}Hr(e)}var xt={AUTOPLAY:"autoplay",CROSSORIGIN:"crossorigin",LOOP:"loop",MUTED:"muted",PLAYSINLINE:"playsinline",PRELOAD:"preload"},Ys={VOLUME:"volume",PLAYBACKRATE:"playbackrate",MUTED:"muted"},qA=Object.freeze({length:0,start(i){let e=i>>>0;if(e>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${e}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(i){let e=i>>>0;if(e>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${e}) is greater than or equal to the maximum bound (${this.length}).`);return 0}}),lM=Bc.filter(i=>i!=="error"),dM=Object.values(xt).filter(i=>![xt.PLAYSINLINE].includes(i)),uM=Object.values(Ys),ea,Y0=class extends $e.HTMLElement{constructor(){super();qe(this,ea,new WeakMap);let t=s=>{for(let n of s)n.type==="childList"&&(n.removedNodes.forEach(a=>{var o;(o=fe(this,ea).get(a))==null||o.remove()}),n.addedNodes.forEach(a=>{var l;let o=a;o!=null&&o.slot||(l=this.media)==null||l.append(YA(fe(this,ea),a))}))};new MutationObserver(t).observe(this,{childList:!0,subtree:!0})}static get observedAttributes(){return[...dM,...uM]}init(){this.querySelectorAll(":scope > :not([slot])").forEach(t=>{var r;(r=this.media)==null||r.append(YA(fe(this,ea),t))}),lM.forEach(t=>{var r;(r=this.media)==null||r.addEventListener(t,s=>{this.dispatchEvent(new Event(s.type))})})}attributeChangedCallback(t,r,s){var n,a;switch(t){case Ys.MUTED:{this.media&&(this.media.muted=s!=null,this.media.defaultMuted=s!=null);return}case Ys.VOLUME:{let o=(n=ti(s))!=null?n:1;this.media&&(this.media.volume=o);return}case Ys.PLAYBACKRATE:{let o=(a=ti(s))!=null?a:1;this.media&&(this.media.playbackRate=o,this.media.defaultPlaybackRate=o);return}}}play(){var t,r;return(r=(t=this.media)==null?void 0:t.play())!=null?r:Promise.reject()}pause(){var t;(t=this.media)==null||t.pause()}load(){var t;(t=this.media)==null||t.load()}requestCast(t){var r;return(r=this.media)==null?void 0:r.requestCast(t)}get media(){var t;return(t=this.shadowRoot)==null?void 0:t.querySelector("mux-video")}get audioTracks(){return this.media.audioTracks}get videoTracks(){return this.media.videoTracks}get audioRenditions(){return this.media.audioRenditions}get videoRenditions(){return this.media.videoRenditions}get paused(){var t,r;return(r=(t=this.media)==null?void 0:t.paused)!=null?r:!0}get duration(){var t,r;return(r=(t=this.media)==null?void 0:t.duration)!=null?r:NaN}get ended(){var t,r;return(r=(t=this.media)==null?void 0:t.ended)!=null?r:!1}get buffered(){var t,r;return(r=(t=this.media)==null?void 0:t.buffered)!=null?r:qA}get seekable(){var t,r;return(r=(t=this.media)==null?void 0:t.seekable)!=null?r:qA}get readyState(){var t,r;return(r=(t=this.media)==null?void 0:t.readyState)!=null?r:0}get videoWidth(){var t,r;return(r=(t=this.media)==null?void 0:t.videoWidth)!=null?r:0}get videoHeight(){var t,r;return(r=(t=this.media)==null?void 0:t.videoHeight)!=null?r:0}get currentSrc(){var t,r;return(r=(t=this.media)==null?void 0:t.currentSrc)!=null?r:""}get currentTime(){var t,r;return(r=(t=this.media)==null?void 0:t.currentTime)!=null?r:0}set currentTime(t){this.media&&(this.media.currentTime=Number(t))}get volume(){var t,r;return(r=(t=this.media)==null?void 0:t.volume)!=null?r:1}set volume(t){this.media&&(this.media.volume=Number(t))}get playbackRate(){var t,r;return(r=(t=this.media)==null?void 0:t.playbackRate)!=null?r:1}set playbackRate(t){this.media&&(this.media.playbackRate=Number(t))}get defaultPlaybackRate(){var t;return(t=ti(this.getAttribute(Ys.PLAYBACKRATE)))!=null?t:1}set defaultPlaybackRate(t){t!=null?this.setAttribute(Ys.PLAYBACKRATE,`${t}`):this.removeAttribute(Ys.PLAYBACKRATE)}get crossOrigin(){return Mo(this,xt.CROSSORIGIN)}set crossOrigin(t){this.setAttribute(xt.CROSSORIGIN,`${t}`)}get autoplay(){return Mo(this,xt.AUTOPLAY)!=null}set autoplay(t){t?this.setAttribute(xt.AUTOPLAY,typeof t=="string"?t:""):this.removeAttribute(xt.AUTOPLAY)}get loop(){return Mo(this,xt.LOOP)!=null}set loop(t){t?this.setAttribute(xt.LOOP,""):this.removeAttribute(xt.LOOP)}get muted(){var t,r;return(r=(t=this.media)==null?void 0:t.muted)!=null?r:!1}set muted(t){this.media&&(this.media.muted=!!t)}get defaultMuted(){return Mo(this,xt.MUTED)!=null}set defaultMuted(t){t?this.setAttribute(xt.MUTED,""):this.removeAttribute(xt.MUTED)}get playsInline(){return Mo(this,xt.PLAYSINLINE)!=null}set playsInline(t){Gt("playsInline is set to true by default and is not currently supported as a setter.")}get preload(){return this.media?this.media.preload:this.getAttribute("preload")}set preload(t){["","none","metadata","auto"].includes(t)?this.setAttribute(xt.PRELOAD,t):this.removeAttribute(xt.PRELOAD)}};ea=new WeakMap;function Mo(i,e){return i.media?i.media.getAttribute(e):i.getAttribute(e)}function YA(i,e){let t=i.get(e);return t||(t=e.cloneNode(),i.set(e,t)),t}var z0=Y0;var cM=Object.defineProperty,hM=(i,e,t)=>e in i?cM(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,fM=(i,e,t)=>(hM(i,typeof e!="symbol"?e+"":e,t),t),ZA=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},de=(i,e,t)=>(ZA(i,e,"read from private field"),t?t.call(i):e.get(i)),Ji=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},cr=(i,e,t,r)=>(ZA(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),ta,qc,zs,Po,Gr,Wr,Kr,js,ia,Yc,Ti,zA=1,jA=0,mM=1,pM={processCallback(i,e,t){if(t){for(let[r,s]of e)if(r in t){let n=t[r];typeof n=="boolean"&&s instanceof It&&typeof s.element[s.attributeName]=="boolean"?s.booleanValue=n:typeof n=="function"&&s instanceof It?s.element[s.attributeName]=n:s.value=n}}}},hr=class extends _.DocumentFragment{constructor(e,t,r=pM){var s;super(),Ji(this,ta,void 0),Ji(this,qc,void 0),this.append(e.content.cloneNode(!0)),cr(this,ta,JA(this)),cr(this,qc,r),(s=r.createCallback)==null||s.call(r,this,de(this,ta),t),r.processCallback(this,de(this,ta),t)}update(e){de(this,qc).processCallback(this,de(this,ta),e)}};ta=new WeakMap;qc=new WeakMap;var JA=(i,e=[])=>{let t,r;for(let s of i.attributes||[])if(s.value.includes("{{")){let n=new j0;for([t,r]of QA(s.value))if(!t)n.append(r);else{let a=new It(i,s.name,s.namespaceURI);n.append(a),e.push([r,a])}s.value=n.toString()}for(let s of i.childNodes)if(s.nodeType===zA&&!(s instanceof HTMLTemplateElement))JA(s,e);else if(s.nodeType===zA||s.data.includes("{{")){let n=[];if(s.data)for([t,r]of QA(s.data))if(!t)n.push(new Text(r));else{let a=new fr(i);n.push(a),e.push([r,a])}else if(s instanceof HTMLTemplateElement){let a=new Oo(i,s);n.push(a),e.push([a.expression,a])}s.replaceWith(...n.flatMap(a=>a.replacementNodes||[a]))}return e},XA={},QA=i=>{let e="",t=0,r=XA[i],s=0,n;if(r)return r;for(r=[];n=i[s];s++)n==="{"&&i[s+1]==="{"&&i[s-1]!=="\\"&&i[s+2]&&++t==1?(e&&r.push([jA,e]),e="",s++):n==="}"&&i[s+1]==="}"&&i[s-1]!=="\\"&&!--t?(r.push([mM,e.trim()]),e="",s++):e+=n||"";return e&&r.push([jA,(t>0?"{{":"")+e]),XA[i]=r},gM=11,zc=class{get value(){return""}set value(e){}toString(){return this.value}},e1=new WeakMap,j0=class{constructor(){Ji(this,zs,[])}[Symbol.iterator](){return de(this,zs).values()}get length(){return de(this,zs).length}item(e){return de(this,zs)[e]}append(...e){for(let t of e)t instanceof It&&e1.set(t,this),de(this,zs).push(t)}toString(){return de(this,zs).join("")}};zs=new WeakMap;var It=class extends zc{constructor(e,t,r){super(),Ji(this,js),Ji(this,Po,""),Ji(this,Gr,void 0),Ji(this,Wr,void 0),Ji(this,Kr,void 0),cr(this,Gr,e),cr(this,Wr,t),cr(this,Kr,r)}get attributeName(){return de(this,Wr)}get attributeNamespace(){return de(this,Kr)}get element(){return de(this,Gr)}get value(){return de(this,Po)}set value(e){de(this,Po)!==e&&(cr(this,Po,e),!de(this,js,ia)||de(this,js,ia).length===1?e==null?de(this,Gr).removeAttributeNS(de(this,Kr),de(this,Wr)):de(this,Gr).setAttributeNS(de(this,Kr),de(this,Wr),e):de(this,Gr).setAttributeNS(de(this,Kr),de(this,Wr),de(this,js,ia)))}get booleanValue(){return de(this,Gr).hasAttributeNS(de(this,Kr),de(this,Wr))}set booleanValue(e){if(!de(this,js,ia)||de(this,js,ia).length===1)this.value=e?"":null;else throw new DOMException("Value is not fully templatized")}};Po=new WeakMap;Gr=new WeakMap;Wr=new WeakMap;Kr=new WeakMap;js=new WeakSet;ia=function(){return e1.get(this)};var fr=class extends zc{constructor(e,t){super(),Ji(this,Yc,void 0),Ji(this,Ti,void 0),cr(this,Yc,e),cr(this,Ti,t?[...t]:[new Text])}get replacementNodes(){return de(this,Ti)}get parentNode(){return de(this,Yc)}get nextSibling(){return de(this,Ti)[de(this,Ti).length-1].nextSibling}get previousSibling(){return de(this,Ti)[0].previousSibling}get value(){return de(this,Ti).map(e=>e.textContent).join("")}set value(e){this.replace(e)}replace(...e){let t=e.flat().flatMap(r=>r==null?[new Text]:r.forEach?[...r]:r.nodeType===gM?[...r.childNodes]:r.nodeType?[r]:[new Text(r)]);t.length||t.push(new Text),cr(this,Ti,vM(de(this,Ti)[0].parentNode,de(this,Ti),t,this.nextSibling))}};Yc=new WeakMap;Ti=new WeakMap;var Oo=class extends fr{constructor(e,t){let r=t.getAttribute("directive")||t.getAttribute("type"),s=t.getAttribute("expression")||t.getAttribute(r)||"";s.startsWith("{{")&&(s=s.trim().slice(2,-2).trim()),super(e),fM(this,"directive"),this.expression=s,this.template=t,this.directive=r}};function vM(i,e,t,r=null){let s=0,n,a,o,l=t.length,d=e.length;for(;s<l&&s<d&&e[s]==t[s];)s++;for(;s<l&&s<d&&t[l-1]==e[d-1];)r=t[--d,--l];if(s==d)for(;s<l;)i.insertBefore(t[s++],r);if(s==l)for(;s<d;)i.removeChild(e[s++]);else{for(n=e[s];s<l;)o=t[s++],a=n?n.nextSibling:r,n==o?n=a:s<l&&t[s]==a?(i.replaceChild(o,n),n=a):i.insertBefore(o,n);for(;n!=r;)a=n.nextSibling,i.removeChild(n),n=a}return t}var t1={string:i=>String(i)},Xc=class{constructor(e){this.template=e,this.state=void 0}},Xs=new WeakMap,Qs=new WeakMap,X0={partial:(i,e)=>{e[i.expression]=new Xc(i.template)},if:(i,e)=>{var t;if(r1(i.expression,e))if(Xs.get(i)!==i.template){Xs.set(i,i.template);let r=new hr(i.template,e,Qc);i.replace(r),Qs.set(i,r)}else(t=Qs.get(i))==null||t.update(e);else i.replace(""),Xs.delete(i),Qs.delete(i)}},EM=Object.keys(X0),Qc={processCallback(i,e,t){var r,s;if(t)for(let[n,a]of e){if(a instanceof Oo){if(!a.directive){let l=EM.find(d=>a.template.hasAttribute(d));l&&(a.directive=l,a.expression=a.template.getAttribute(l))}(r=X0[a.directive])==null||r.call(X0,a,t);continue}let o=r1(n,t);if(o instanceof Xc){Xs.get(a)!==o.template?(Xs.set(a,o.template),o=new hr(o.template,o.state,Qc),a.value=o,Qs.set(a,o)):(s=Qs.get(a))==null||s.update(o.state);continue}o?(a instanceof It&&a.attributeName.startsWith("aria-")&&(o=String(o)),a instanceof It?typeof o=="boolean"?a.booleanValue=o:typeof o=="function"?a.element[a.attributeName]=o:a.value=o:(a.value=o,Xs.delete(a),Qs.delete(a))):a instanceof It?a.value=void 0:(a.value=void 0,Xs.delete(a),Qs.delete(a))}}},i1={"!":i=>!i,"!!":i=>!!i,"==":(i,e)=>i==e,"!=":(i,e)=>i!=e,">":(i,e)=>i>e,">=":(i,e)=>i>=e,"<":(i,e)=>i<e,"<=":(i,e)=>i<=e,"??":(i,e)=>i!=null?i:e,"|":(i,e)=>{var t;return(t=t1[e])==null?void 0:t.call(t1,i)}};function bM(i){return yM(i,{boolean:/true|false/,number:/-?\d+\.?\d*/,string:/(["'])((?:\\.|[^\\])*?)\1/,operator:/[!=><][=!]?|\?\?|\|/,ws:/\s+/,param:/[$a-z_][$\w]*/i}).filter(({type:e})=>e!=="ws")}function r1(i,e={}){var t,r,s,n,a,o,l;let d=bM(i);if(d.length===0||d.some(({type:u})=>!u))return No(i);if(((t=d[0])==null?void 0:t.token)===">"){let u=e[(r=d[1])==null?void 0:r.token];if(!u)return No(i);let c={...e};u.state=c;let h=d.slice(2);for(let f=0;f<h.length;f+=3){let m=(s=h[f])==null?void 0:s.token,p=(n=h[f+1])==null?void 0:n.token,g=(a=h[f+2])==null?void 0:a.token;m&&p==="="&&(c[m]=Uo(g,e))}return u}if(d.length===1)return jc(d[0])?Uo(d[0].token,e):No(i);if(d.length===2){let u=(o=d[0])==null?void 0:o.token,c=i1[u];if(!c||!jc(d[1]))return No(i);let h=Uo(d[1].token,e);return c(h)}if(d.length===3){let u=(l=d[1])==null?void 0:l.token,c=i1[u];if(!c||!jc(d[0])||!jc(d[2]))return No(i);let h=Uo(d[0].token,e);if(u==="|")return c(h,d[2].token);let f=Uo(d[2].token,e);return c(h,f)}}function No(i){return console.warn(`Warning: invalid expression \`${i}\``),!1}function jc({type:i}){return["number","boolean","string","param"].includes(i)}function Uo(i,e){let t=i[0],r=i.slice(-1);return i==="true"||i==="false"?i==="true":t===r&&["'",'"'].includes(t)?i.slice(1,-1):jo(i)?parseFloat(i):e[i]}function yM(i,e){let t,r,s,n=[];for(;i;){s=null,t=i.length;for(let a in e)r=e[a].exec(i),r&&r.index<t&&(s={token:r[0],type:a,matches:r.slice(1)},t=r.index);t&&n.push({token:i.substr(0,t),type:void 0}),s&&n.push(s),i=i.substr(t+(s?s.token.length:0))}return n}var TM=Object.defineProperty,_M=(i,e,t)=>e in i?TM(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Bo=(i,e,t)=>(_M(i,typeof e!="symbol"?e+"":e,t),t),iv=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},J0=(i,e,t)=>(iv(i,e,"read from private field"),t?t.call(i):e.get(i)),Fo=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Zs=(i,e,t,r)=>(iv(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Q0=(i,e,t)=>(iv(i,e,"access private method"),t),ra,Zc,sa,ev,s1,Jc,tv,Z0={mediatargetlivewindow:"targetlivewindow",mediastreamtype:"streamtype"},n1=O.createElement("template");n1.innerHTML=`
1648
1648
  <style>
1649
1649
  :host {
1650
1650
  display: inline-block;
@@ -1644,7 +1644,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1644
1644
  </slot>
1645
1645
  <slot></slot>
1646
1646
  `}var wA=(i,{tag:e,is:t})=>{var r,s,n,a,o,l,d,u,c,h,f,m,p,g,E,T,y;let S=(s=(r=globalThis.document)==null?void 0:r.createElement)==null?void 0:s.call(r,e,{is:t}),A=S?ID(S):[];return n=class extends i{constructor(){super(),X(this,h),X(this,m),X(this,g),X(this,T),X(this,d,void 0),X(this,u,void 0),X(this,c,new Map)}static get observedAttributes(){var L,x,w;return Fe(L=n,o,l).call(L),[...(w=(x=S==null?void 0:S.constructor)==null?void 0:x.observedAttributes)!=null?w:[],"autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"]}get nativeEl(){var L,x,w;return Fe(this,h,f).call(this),(w=(x=(L=R(this,u))!=null?L:this.shadowRoot.querySelector(e))!=null?x:this.querySelector(":scope > [slot=media]"))!=null?w:this.querySelector(e)}set nativeEl(L){ee(this,u,L)}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(L){this.toggleAttribute("muted",!!L)}get src(){return this.getAttribute("src")}set src(L){this.setAttribute("src",`${L}`)}get preload(){var L,x;return(x=this.getAttribute("preload"))!=null?x:(L=this.nativeEl)==null?void 0:L.preload}set preload(L){this.setAttribute("preload",`${L}`)}init(){var L,x;if(!this.shadowRoot){this.attachShadow({mode:"open"});let w=RD(this.attributes);t&&(w.is=t),e&&(w.part=e),this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(w)}this.nativeEl.muted=this.hasAttribute("muted");for(let w of A)Fe(this,g,E).call(this,w);this.shadowRoot.addEventListener("slotchange",this),Fe(this,m,p).call(this);for(let w of this.constructor.Events)(x=(L=this.shadowRoot).addEventListener)==null||x.call(L,w,this,!0)}handleEvent(L){if(L.type==="slotchange"){Fe(this,m,p).call(this);return}L.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(L.type,{detail:L.detail}))}attributeChangedCallback(L,x,w){Fe(this,h,f).call(this),Fe(this,T,y).call(this,L,x,w)}connectedCallback(){Fe(this,h,f).call(this)}},a=new WeakMap,o=new WeakSet,l=function(){if(R(this,a))return;ee(this,a,!0);let L=new Set(this.observedAttributes);L.delete("muted");for(let x of A)if(!(x in this.prototype))if(typeof S[x]=="function")this.prototype[x]=function(...w){return Fe(this,h,f).call(this),this.call?this.call(x,...w):this.nativeEl[x].apply(this.nativeEl,w)};else{let w={get(){var P,k,D;Fe(this,h,f).call(this);let U=x.toLowerCase();if(L.has(U)){let F=this.getAttribute(U);return F===null?!1:F===""?!0:F}return(D=(P=this.get)==null?void 0:P.call(this,x))!=null?D:(k=this.nativeEl)==null?void 0:k[x]}};x!==x.toUpperCase()&&(w.set=function(P){Fe(this,h,f).call(this);let k=x.toLowerCase();if(L.has(k)){P===!0||P===!1||P==null?this.toggleAttribute(k,!!P):this.setAttribute(k,P);return}if(this.set){this.set(x,P);return}this.nativeEl[x]=P}),Object.defineProperty(this.prototype,x,w)}},d=new WeakMap,u=new WeakMap,c=new WeakMap,h=new WeakSet,f=function(){R(this,d)||(ee(this,d,!0),this.init())},m=new WeakSet,p=function(){let L=new Map(R(this,c));this.shadowRoot.querySelector("slot:not([name])").assignedElements({flatten:!0}).filter(x=>["track","source"].includes(x.localName)).forEach(x=>{var w,P;L.delete(x);let k=R(this,c).get(x);k||(k=x.cloneNode(),R(this,c).set(x,k)),(P=(w=this.nativeEl).append)==null||P.call(w,k),k.localName==="track"&&k.default&&(k.kind==="chapters"||k.kind==="metadata")&&k.track.mode==="disabled"&&(k.track.mode="hidden")}),L.forEach(x=>x.remove())},g=new WeakSet,E=function(L){if(Object.prototype.hasOwnProperty.call(this,L)){let x=this[L];delete this[L],this[L]=x}},T=new WeakSet,y=function(L,x,w){var P,k,D,U,F,z;["id","class"].includes(L)||!n.observedAttributes.includes(L)&&this.constructor.observedAttributes.includes(L)||(w===null?(k=(P=this.nativeEl).removeAttribute)==null||k.call(P,L):((U=(D=this.nativeEl).getAttribute)==null?void 0:U.call(D,L))!=w&&((z=(F=this.nativeEl).setAttribute)==null||z.call(F,L,w)))},X(n,o),Ce(n,"getTemplateHTML",e.endsWith("audio")?LD:kD),Ce(n,"shadowRootOptions",{mode:"open"}),Ce(n,"Events",Bc),X(n,a,void 0),n};function ID(i){let e=[];for(let t=Object.getPrototypeOf(i);t&&t!==HTMLElement.prototype;t=Object.getPrototypeOf(t))e.push(...Object.getOwnPropertyNames(t));return e}function CA(i){let e="";for(let t in i){let r=i[t];r===""?e+=` ${t}`:e+=` ${t}="${r}"`}return e}function RD(i){let e={};for(let t of i)e[t.name]=t.value;return e}var TA,y0=wA((TA=globalThis.HTMLElement)!=null?TA:class{},{tag:"video"}),_A,w5=wA((_A=globalThis.HTMLElement)!=null?_A:class{},{tag:"audio"}),Gs=new WeakMap,T0=class extends Error{},wD=class extends Error{},CD=globalThis.WeakRef?class extends Set{add(i){super.add(new WeakRef(i))}forEach(i){super.forEach(e=>{let t=e.deref();t&&i(t)})}}:Set;function DD(i){var e,t,r;(t=(e=globalThis.chrome)==null?void 0:e.cast)!=null&&t.isAvailable?(r=globalThis.cast)!=null&&r.framework?i():customElements.whenDefined("google-cast-button").then(i):globalThis.__onGCastApiAvailable=()=>{customElements.whenDefined("google-cast-button").then(i)}}function MD(){return globalThis.chrome}function PD(){var i;let e="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1";if((i=globalThis.chrome)!=null&&i.cast||document.querySelector(`script[src="${e}"]`))return;let t=document.createElement("script");t.src=e,document.head.append(t)}function Ws(){var i,e;return(e=(i=globalThis.cast)==null?void 0:i.framework)==null?void 0:e.CastContext.getInstance()}function H0(){var i;return(i=Ws())==null?void 0:i.getCurrentSession()}function G0(){var i;return(i=H0())==null?void 0:i.getSessionObj().media[0]}function OD(i){return new Promise((e,t)=>{G0().editTracksInfo(i,e,t)})}function ND(i){return new Promise((e,t)=>{G0().getStatus(i,e,t)})}function DA(i){return Ws().setOptions({...MA(),...i})}function MA(){return{receiverApplicationId:"CC1AD845",autoJoinPolicy:"origin_scoped",androidReceiverCompatible:!1,language:"en-US",resumeSavedSession:!0}}var xc=new CD,Br=new WeakSet,st;DD(()=>{var i,e,t,r;if(!((e=(i=globalThis.chrome)==null?void 0:i.cast)!=null&&e.isAvailable)){console.debug("chrome.cast.isAvailable",(r=(t=globalThis.chrome)==null?void 0:t.cast)==null?void 0:r.isAvailable);return}st||(st=cast.framework,Ws().addEventListener(st.CastContextEventType.CAST_STATE_CHANGED,s=>{xc.forEach(n=>{var a,o;return(o=(a=Gs.get(n)).onCastStateChanged)==null?void 0:o.call(a,s)})}),Ws().addEventListener(st.CastContextEventType.SESSION_STATE_CHANGED,s=>{xc.forEach(n=>{var a,o;return(o=(a=Gs.get(n)).onSessionStateChanged)==null?void 0:o.call(a,s)})}),xc.forEach(s=>{var n,a;return(a=(n=Gs.get(s)).init)==null?void 0:a.call(n)}))});var AA=0,xe,Lc,ei,Ur,Jn,jn,Hs,A0,Fr,Is,S0,SA,Nc,x0,L0,PA,kc,k0,I0,xA,Ic,_0,UD=class extends EventTarget{constructor(i){super(),X(this,Fr),X(this,S0),X(this,Nc),X(this,L0),X(this,kc),X(this,I0),X(this,Ic),X(this,xe,void 0),X(this,Lc,void 0),X(this,ei,void 0),X(this,Ur,void 0),X(this,Jn,"disconnected"),X(this,jn,!1),X(this,Hs,new Set),X(this,A0,new WeakMap),ee(this,xe,i),xc.add(this),Gs.set(this,{init:()=>Fe(this,kc,k0).call(this),onCastStateChanged:()=>Fe(this,Nc,x0).call(this),onSessionStateChanged:()=>Fe(this,L0,PA).call(this),getCastPlayer:()=>R(this,Fr,Is)}),Fe(this,kc,k0).call(this)}get state(){return R(this,Jn)}async watchAvailability(i){if(R(this,xe).disableRemotePlayback)throw new T0("disableRemotePlayback attribute is present.");return R(this,A0).set(i,++AA),R(this,Hs).add(i),AA}async cancelWatchAvailability(i){if(R(this,xe).disableRemotePlayback)throw new T0("disableRemotePlayback attribute is present.");i?R(this,Hs).delete(i):R(this,Hs).clear()}async prompt(){var i,e,t,r;if(R(this,xe).disableRemotePlayback)throw new T0("disableRemotePlayback attribute is present.");if(!((e=(i=globalThis.chrome)==null?void 0:i.cast)!=null&&e.isAvailable))throw new wD("The RemotePlayback API is disabled on this platform.");let s=Br.has(R(this,xe));Br.add(R(this,xe)),DA(R(this,xe).castOptions),Object.entries(R(this,Ur)).forEach(([n,a])=>{R(this,ei).controller.addEventListener(n,a)});try{await Ws().requestSession()}catch(n){if(n==="cancel"){s||Br.delete(R(this,xe));return}throw new Error(n)}(r=(t=Gs.get(R(this,xe)))==null?void 0:t.loadOnPrompt)==null||r.call(t)}};xe=new WeakMap,Lc=new WeakMap,ei=new WeakMap,Ur=new WeakMap,Jn=new WeakMap,jn=new WeakMap,Hs=new WeakMap,A0=new WeakMap,Fr=new WeakSet,Is=function(){if(Br.has(R(this,xe)))return R(this,ei)},S0=new WeakSet,SA=function(){Br.has(R(this,xe))&&(Object.entries(R(this,Ur)).forEach(([i,e])=>{R(this,ei).controller.removeEventListener(i,e)}),Br.delete(R(this,xe)),R(this,xe).muted=R(this,ei).isMuted,R(this,xe).currentTime=R(this,ei).savedPlayerState.currentTime,R(this,ei).savedPlayerState.isPaused===!1&&R(this,xe).play())},Nc=new WeakSet,x0=function(){let i=Ws().getCastState();if(Br.has(R(this,xe))&&i==="CONNECTING"&&(ee(this,Jn,"connecting"),this.dispatchEvent(new Event("connecting"))),!R(this,jn)&&i!=null&&i.includes("CONNECT")){ee(this,jn,!0);for(let e of R(this,Hs))e(!0)}else if(R(this,jn)&&(!i||i==="NO_DEVICES_AVAILABLE")){ee(this,jn,!1);for(let e of R(this,Hs))e(!1)}},L0=new WeakSet,PA=async function(){var i;let{SESSION_RESUMED:e}=st.SessionState;if(Ws().getSessionState()===e&&R(this,xe).castSrc===((i=G0())==null?void 0:i.media.contentId)){Br.add(R(this,xe)),Object.entries(R(this,Ur)).forEach(([t,r])=>{R(this,ei).controller.addEventListener(t,r)});try{await ND(new chrome.cast.media.GetStatusRequest)}catch(t){console.error(t)}R(this,Ur)[st.RemotePlayerEventType.IS_PAUSED_CHANGED](),R(this,Ur)[st.RemotePlayerEventType.PLAYER_STATE_CHANGED]()}},kc=new WeakSet,k0=function(){!st||R(this,Lc)||(ee(this,Lc,!0),DA(R(this,xe).castOptions),R(this,xe).textTracks.addEventListener("change",()=>Fe(this,Ic,_0).call(this)),Fe(this,Nc,x0).call(this),ee(this,ei,new st.RemotePlayer),new st.RemotePlayerController(R(this,ei)),ee(this,Ur,{[st.RemotePlayerEventType.IS_CONNECTED_CHANGED]:({value:i})=>{i===!0?(ee(this,Jn,"connected"),this.dispatchEvent(new Event("connect"))):(Fe(this,S0,SA).call(this),ee(this,Jn,"disconnected"),this.dispatchEvent(new Event("disconnect")))},[st.RemotePlayerEventType.DURATION_CHANGED]:()=>{R(this,xe).dispatchEvent(new Event("durationchange"))},[st.RemotePlayerEventType.VOLUME_LEVEL_CHANGED]:()=>{R(this,xe).dispatchEvent(new Event("volumechange"))},[st.RemotePlayerEventType.IS_MUTED_CHANGED]:()=>{R(this,xe).dispatchEvent(new Event("volumechange"))},[st.RemotePlayerEventType.CURRENT_TIME_CHANGED]:()=>{var i;(i=R(this,Fr,Is))!=null&&i.isMediaLoaded&&R(this,xe).dispatchEvent(new Event("timeupdate"))},[st.RemotePlayerEventType.VIDEO_INFO_CHANGED]:()=>{R(this,xe).dispatchEvent(new Event("resize"))},[st.RemotePlayerEventType.IS_PAUSED_CHANGED]:()=>{R(this,xe).dispatchEvent(new Event(this.paused?"pause":"play"))},[st.RemotePlayerEventType.PLAYER_STATE_CHANGED]:()=>{var i,e;((i=R(this,Fr,Is))==null?void 0:i.playerState)!==chrome.cast.media.PlayerState.PAUSED&&R(this,xe).dispatchEvent(new Event({[chrome.cast.media.PlayerState.PLAYING]:"playing",[chrome.cast.media.PlayerState.BUFFERING]:"waiting",[chrome.cast.media.PlayerState.IDLE]:"emptied"}[(e=R(this,Fr,Is))==null?void 0:e.playerState]))},[st.RemotePlayerEventType.IS_MEDIA_LOADED_CHANGED]:async()=>{var i;(i=R(this,Fr,Is))!=null&&i.isMediaLoaded&&(await Promise.resolve(),Fe(this,I0,xA).call(this))}}))},I0=new WeakSet,xA=function(){Fe(this,Ic,_0).call(this)},Ic=new WeakSet,_0=async function(){var i,e,t,r,s;if(!R(this,Fr,Is))return;let n=((e=(i=R(this,ei).mediaInfo)==null?void 0:i.tracks)!=null?e:[]).filter(({type:h})=>h===chrome.cast.media.TrackType.TEXT),a=[...R(this,xe).textTracks].filter(({kind:h})=>h==="subtitles"||h==="captions"),o=n.map(({language:h,name:f,trackId:m})=>{var p;let{mode:g}=(p=a.find(E=>E.language===h&&E.label===f))!=null?p:{};return g?{mode:g,trackId:m}:!1}).filter(Boolean),l=o.filter(({mode:h})=>h!=="showing").map(({trackId:h})=>h),d=o.find(({mode:h})=>h==="showing"),u=(s=(r=(t=H0())==null?void 0:t.getSessionObj().media[0])==null?void 0:r.activeTrackIds)!=null?s:[],c=u;if(u.length&&(c=c.filter(h=>!l.includes(h))),d!=null&&d.trackId&&(c=[...c,d.trackId]),c=[...new Set(c)],!((h,f)=>h.length===f.length&&h.every(m=>f.includes(m)))(u,c))try{let h=new chrome.cast.media.EditTracksInfoRequest(c);await OD(h)}catch(h){console.error(h)}};var FD=i=>{var e,t,r,s,n,a,o,l,d;return t=class extends i{constructor(){super(...arguments),X(this,a),X(this,l),X(this,r,{paused:!1}),X(this,s,MA()),X(this,n,void 0)}get remote(){return R(this,n)?R(this,n):MD()?(PD(),Gs.set(this,{loadOnPrompt:()=>Fe(this,l,d).call(this)}),ee(this,n,new UD(this))):super.remote}attributeChangedCallback(u,c,h){if(super.attributeChangedCallback(u,c,h),u==="cast-receiver"&&h){R(this,s).receiverApplicationId=h;return}if(R(this,a,o))switch(u){case"cast-stream-type":case"cast-src":this.load();break}}async load(){var u,c;if(!R(this,a,o))return super.load();let h=new chrome.cast.media.MediaInfo(this.castSrc,this.castContentType),f=[...this.querySelectorAll("track")].filter(({kind:E,src:T})=>T&&(E==="subtitles"||E==="captions")),m=[],p=0;f.length&&(h.tracks=f.map(E=>{let T=++p;m.length===0&&E.track.mode==="showing"&&m.push(T);let y=new chrome.cast.media.Track(T,chrome.cast.media.TrackType.TEXT);return y.trackContentId=E.src,y.trackContentType="text/vtt",y.subtype=E.kind==="captions"?chrome.cast.media.TextTrackType.CAPTIONS:chrome.cast.media.TextTrackType.SUBTITLES,y.name=E.label,y.language=E.srclang,y})),this.castStreamType==="live"?h.streamType=chrome.cast.media.StreamType.LIVE:h.streamType=chrome.cast.media.StreamType.BUFFERED,h.metadata=new chrome.cast.media.GenericMediaMetadata,h.metadata.title=this.title,h.metadata.images=[{url:this.poster}];let g=new chrome.cast.media.LoadRequest(h);g.currentTime=(u=super.currentTime)!=null?u:0,g.autoplay=!R(this,r).paused,g.activeTrackIds=m,await((c=H0())==null?void 0:c.loadMedia(g)),this.dispatchEvent(new Event("volumechange"))}play(){var u;if(R(this,a,o)){R(this,a,o).isPaused&&((u=R(this,a,o).controller)==null||u.playOrPause());return}return super.play()}pause(){var u;if(R(this,a,o)){R(this,a,o).isPaused||(u=R(this,a,o).controller)==null||u.playOrPause();return}super.pause()}get castOptions(){return R(this,s)}get castReceiver(){var u;return(u=this.getAttribute("cast-receiver"))!=null?u:void 0}set castReceiver(u){this.castReceiver!=u&&this.setAttribute("cast-receiver",`${u}`)}get castSrc(){var u,c,h;return(h=(c=this.getAttribute("cast-src"))!=null?c:(u=this.querySelector("source"))==null?void 0:u.src)!=null?h:this.currentSrc}set castSrc(u){this.castSrc!=u&&this.setAttribute("cast-src",`${u}`)}get castContentType(){var u;return(u=this.getAttribute("cast-content-type"))!=null?u:void 0}set castContentType(u){this.setAttribute("cast-content-type",`${u}`)}get castStreamType(){var u,c;return(c=(u=this.getAttribute("cast-stream-type"))!=null?u:this.streamType)!=null?c:void 0}set castStreamType(u){this.setAttribute("cast-stream-type",`${u}`)}get readyState(){if(R(this,a,o))switch(R(this,a,o).playerState){case chrome.cast.media.PlayerState.IDLE:return 0;case chrome.cast.media.PlayerState.BUFFERING:return 2;default:return 3}return super.readyState}get paused(){return R(this,a,o)?R(this,a,o).isPaused:super.paused}get muted(){var u;return R(this,a,o)?(u=R(this,a,o))==null?void 0:u.isMuted:super.muted}set muted(u){var c;if(R(this,a,o)){(u&&!R(this,a,o).isMuted||!u&&R(this,a,o).isMuted)&&((c=R(this,a,o).controller)==null||c.muteOrUnmute());return}super.muted=u}get volume(){var u,c;return R(this,a,o)?(c=(u=R(this,a,o))==null?void 0:u.volumeLevel)!=null?c:1:super.volume}set volume(u){var c;if(R(this,a,o)){R(this,a,o).volumeLevel=+u,(c=R(this,a,o).controller)==null||c.setVolumeLevel();return}super.volume=u}get duration(){var u,c,h;return R(this,a,o)&&(u=R(this,a,o))!=null&&u.isMediaLoaded?(h=(c=R(this,a,o))==null?void 0:c.duration)!=null?h:NaN:super.duration}get currentTime(){var u,c,h;return R(this,a,o)&&(u=R(this,a,o))!=null&&u.isMediaLoaded?(h=(c=R(this,a,o))==null?void 0:c.currentTime)!=null?h:0:super.currentTime}set currentTime(u){var c;if(R(this,a,o)){R(this,a,o).currentTime=u,(c=R(this,a,o).controller)==null||c.seek();return}super.currentTime=u}},r=new WeakMap,s=new WeakMap,n=new WeakMap,a=new WeakSet,o=function(){var u,c;return(c=(u=Gs.get(this.remote))==null?void 0:u.getCastPlayer)==null?void 0:c.call(u)},l=new WeakSet,d=async function(){R(this,r).paused=E0(t.prototype,this,"paused"),E0(t.prototype,this,"pause").call(this),this.muted=E0(t.prototype,this,"muted");try{await this.load()}catch(u){console.error(u)}},Ce(t,"observedAttributes",[...(e=i.observedAttributes)!=null?e:[],"cast-src","cast-content-type","cast-stream-type","cast-receiver"]),t},$c=class extends Event{constructor(i,e){super(i),Ce(this,"track"),this.track=e.track}},R0=new WeakMap;function V(i){var e;return(e=R0.get(i))!=null?e:BD(i,{})}function BD(i,e){let t=R0.get(i);return t||R0.set(i,t={}),Object.assign(t,e)}function w0(i,e){let t=i.videoTracks;V(e).media=i,V(e).renditionSet||(V(e).renditionSet=new Set);let r=V(t).trackSet;r.add(e);let s=r.size-1;s in D0.prototype||Object.defineProperty(D0.prototype,s,{get(){return[...V(this).trackSet][s]}}),queueMicrotask(()=>{t.dispatchEvent(new $c("addtrack",{track:e}))})}function C0(i){var e;let t=(e=V(i).media)==null?void 0:e.videoTracks;t&&(V(t).trackSet.delete(i),queueMicrotask(()=>{t.dispatchEvent(new $c("removetrack",{track:i}))}))}function $D(i){var e;let t=(e=V(i).media.videoTracks)!=null?e:[],r=!1;for(let s of t)s!==i&&(s.selected=!1,r=!0);if(r){if(V(t).changeRequested)return;V(t).changeRequested=!0,queueMicrotask(()=>{delete V(t).changeRequested,t.dispatchEvent(new Event("change"))})}}var Rs,ws,Cs,Xn,Ao,D0=class extends EventTarget{constructor(){super(),X(this,Xn),X(this,Rs,void 0),X(this,ws,void 0),X(this,Cs,void 0),V(this).trackSet=new Set}[Symbol.iterator](){return R(this,Xn,Ao).values()}get length(){return R(this,Xn,Ao).size}getTrackById(i){var e;return(e=[...R(this,Xn,Ao)].find(t=>t.id===i))!=null?e:null}get selectedIndex(){return[...R(this,Xn,Ao)].findIndex(i=>i.selected)}get onaddtrack(){return R(this,Rs)}set onaddtrack(i){R(this,Rs)&&(this.removeEventListener("addtrack",R(this,Rs)),ee(this,Rs,void 0)),typeof i=="function"&&(ee(this,Rs,i),this.addEventListener("addtrack",i))}get onremovetrack(){return R(this,ws)}set onremovetrack(i){R(this,ws)&&(this.removeEventListener("removetrack",R(this,ws)),ee(this,ws,void 0)),typeof i=="function"&&(ee(this,ws,i),this.addEventListener("removetrack",i))}get onchange(){return R(this,Cs)}set onchange(i){R(this,Cs)&&(this.removeEventListener("change",R(this,Cs)),ee(this,Cs,void 0)),typeof i=="function"&&(ee(this,Cs,i),this.addEventListener("change",i))}};Rs=new WeakMap,ws=new WeakMap,Cs=new WeakMap,Xn=new WeakSet,Ao=function(){return V(this).trackSet};var Hc=class extends Event{constructor(i,e){super(i),Ce(this,"rendition"),this.rendition=e.rendition}};function HD(i,e){let t=V(i).media.videoRenditions;V(e).media=V(i).media,V(e).track=i;let r=V(i).renditionSet;r.add(e);let s=r.size-1;s in M0.prototype||Object.defineProperty(M0.prototype,s,{get(){return Qn(this)[s]}}),queueMicrotask(()=>{i.selected&&t.dispatchEvent(new Hc("addrendition",{rendition:e}))})}function GD(i){let e=V(i).media.videoRenditions,t=V(i).track;V(t).renditionSet.delete(i),queueMicrotask(()=>{V(i).track.selected&&e.dispatchEvent(new Hc("removerendition",{rendition:i}))})}function WD(i){let e=V(i).media.videoRenditions;!e||V(e).changeRequested||(V(e).changeRequested=!0,queueMicrotask(()=>{delete V(e).changeRequested,V(i).track.selected&&e.dispatchEvent(new Event("change"))}))}function Qn(i){return[...V(i).media.videoTracks].filter(e=>e.selected).flatMap(e=>[...V(e).renditionSet])}var Ds,Ms,Ps,M0=class extends EventTarget{constructor(){super(...arguments),X(this,Ds,void 0),X(this,Ms,void 0),X(this,Ps,void 0)}[Symbol.iterator](){return Qn(this).values()}get length(){return Qn(this).length}getRenditionById(i){var e;return(e=Qn(this).find(t=>`${t.id}`==`${i}`))!=null?e:null}get selectedIndex(){return Qn(this).findIndex(i=>i.selected)}set selectedIndex(i){for(let[e,t]of Qn(this).entries())t.selected=e===i}get onaddrendition(){return R(this,Ds)}set onaddrendition(i){R(this,Ds)&&(this.removeEventListener("addrendition",R(this,Ds)),ee(this,Ds,void 0)),typeof i=="function"&&(ee(this,Ds,i),this.addEventListener("addrendition",i))}get onremoverendition(){return R(this,Ms)}set onremoverendition(i){R(this,Ms)&&(this.removeEventListener("removerendition",R(this,Ms)),ee(this,Ms,void 0)),typeof i=="function"&&(ee(this,Ms,i),this.addEventListener("removerendition",i))}get onchange(){return R(this,Ps)}set onchange(i){R(this,Ps)&&(this.removeEventListener("change",R(this,Ps)),ee(this,Ps,void 0)),typeof i=="function"&&(ee(this,Ps,i),this.addEventListener("change",i))}};Ds=new WeakMap,Ms=new WeakMap,Ps=new WeakMap;var So,KD=class{constructor(){Ce(this,"src"),Ce(this,"id"),Ce(this,"width"),Ce(this,"height"),Ce(this,"bitrate"),Ce(this,"frameRate"),Ce(this,"codec"),X(this,So,!1)}get selected(){return R(this,So)}set selected(i){R(this,So)!==i&&(ee(this,So,i),WD(this))}};So=new WeakMap;var xo,OA=class{constructor(){Ce(this,"id"),Ce(this,"kind"),Ce(this,"label",""),Ce(this,"language",""),Ce(this,"sourceBuffer"),X(this,xo,!1)}addRendition(i,e,t,r,s,n){let a=new KD;return a.src=i,a.width=e,a.height=t,a.frameRate=n,a.bitrate=s,a.codec=r,HD(this,a),a}removeRendition(i){GD(i)}get selected(){return R(this,xo)}set selected(i){R(this,xo)!==i&&(ee(this,xo,i),i===!0&&$D(this))}};xo=new WeakMap;function VD(i,e){let t=V(i).media.audioRenditions;V(e).media=V(i).media,V(e).track=i;let r=V(i).renditionSet;r.add(e);let s=r.size-1;s in P0.prototype||Object.defineProperty(P0.prototype,s,{get(){return Zn(this)[s]}}),queueMicrotask(()=>{i.enabled&&t.dispatchEvent(new Hc("addrendition",{rendition:e}))})}function qD(i){let e=V(i).media.audioRenditions,t=V(i).track;V(t).renditionSet.delete(i),queueMicrotask(()=>{V(i).track.enabled&&e.dispatchEvent(new Hc("removerendition",{rendition:i}))})}function YD(i){let e=V(i).media.audioRenditions;!e||V(e).changeRequested||(V(e).changeRequested=!0,queueMicrotask(()=>{delete V(e).changeRequested,V(i).track.enabled&&e.dispatchEvent(new Event("change"))}))}function Zn(i){return[...V(i).media.audioTracks].filter(e=>e.enabled).flatMap(e=>[...V(e).renditionSet])}var Os,Ns,Us,P0=class extends EventTarget{constructor(){super(...arguments),X(this,Os,void 0),X(this,Ns,void 0),X(this,Us,void 0)}[Symbol.iterator](){return Zn(this).values()}get length(){return Zn(this).length}getRenditionById(i){var e;return(e=Zn(this).find(t=>`${t.id}`==`${i}`))!=null?e:null}get selectedIndex(){return Zn(this).findIndex(i=>i.selected)}set selectedIndex(i){for(let[e,t]of Zn(this).entries())t.selected=e===i}get onaddrendition(){return R(this,Os)}set onaddrendition(i){R(this,Os)&&(this.removeEventListener("addrendition",R(this,Os)),ee(this,Os,void 0)),typeof i=="function"&&(ee(this,Os,i),this.addEventListener("addrendition",i))}get onremoverendition(){return R(this,Ns)}set onremoverendition(i){R(this,Ns)&&(this.removeEventListener("removerendition",R(this,Ns)),ee(this,Ns,void 0)),typeof i=="function"&&(ee(this,Ns,i),this.addEventListener("removerendition",i))}get onchange(){return R(this,Us)}set onchange(i){R(this,Us)&&(this.removeEventListener("change",R(this,Us)),ee(this,Us,void 0)),typeof i=="function"&&(ee(this,Us,i),this.addEventListener("change",i))}};Os=new WeakMap,Ns=new WeakMap,Us=new WeakMap;var Lo,zD=class{constructor(){Ce(this,"src"),Ce(this,"id"),Ce(this,"bitrate"),Ce(this,"codec"),X(this,Lo,!1)}get selected(){return R(this,Lo)}set selected(i){R(this,Lo)!==i&&(ee(this,Lo,i),YD(this))}};Lo=new WeakMap;function O0(i,e){let t=i.audioTracks;V(e).media=i,V(e).renditionSet||(V(e).renditionSet=new Set);let r=V(t).trackSet;r.add(e);let s=r.size-1;s in U0.prototype||Object.defineProperty(U0.prototype,s,{get(){return[...V(this).trackSet][s]}}),queueMicrotask(()=>{t.dispatchEvent(new $c("addtrack",{track:e}))})}function N0(i){var e;let t=(e=V(i).media)==null?void 0:e.audioTracks;t&&(V(t).trackSet.delete(i),queueMicrotask(()=>{t.dispatchEvent(new $c("removetrack",{track:i}))}))}function jD(i){let e=V(i).media.audioTracks;!e||V(e).changeRequested||(V(e).changeRequested=!0,queueMicrotask(()=>{delete V(e).changeRequested,e.dispatchEvent(new Event("change"))}))}var Fs,Bs,$s,ko,Rc,U0=class extends EventTarget{constructor(){super(),X(this,ko),X(this,Fs,void 0),X(this,Bs,void 0),X(this,$s,void 0),V(this).trackSet=new Set}[Symbol.iterator](){return R(this,ko,Rc).values()}get length(){return R(this,ko,Rc).size}getTrackById(i){var e;return(e=[...R(this,ko,Rc)].find(t=>t.id===i))!=null?e:null}get onaddtrack(){return R(this,Fs)}set onaddtrack(i){R(this,Fs)&&(this.removeEventListener("addtrack",R(this,Fs)),ee(this,Fs,void 0)),typeof i=="function"&&(ee(this,Fs,i),this.addEventListener("addtrack",i))}get onremovetrack(){return R(this,Bs)}set onremovetrack(i){R(this,Bs)&&(this.removeEventListener("removetrack",R(this,Bs)),ee(this,Bs,void 0)),typeof i=="function"&&(ee(this,Bs,i),this.addEventListener("removetrack",i))}get onchange(){return R(this,$s)}set onchange(i){R(this,$s)&&(this.removeEventListener("change",R(this,$s)),ee(this,$s,void 0)),typeof i=="function"&&(ee(this,$s,i),this.addEventListener("change",i))}};Fs=new WeakMap,Bs=new WeakMap,$s=new WeakMap,ko=new WeakSet,Rc=function(){return V(this).trackSet};var Io,NA=class{constructor(){Ce(this,"id"),Ce(this,"kind"),Ce(this,"label",""),Ce(this,"language",""),Ce(this,"sourceBuffer"),X(this,Io,!1)}addRendition(i,e,t){let r=new zD;return r.src=i,r.codec=e,r.bitrate=t,VD(this,r),r}removeRendition(i){qD(i)}get enabled(){return R(this,Io)}set enabled(i){R(this,Io)!==i&&(ee(this,Io,i),jD(this))}};Io=new WeakMap;var LA=Uc(globalThis.HTMLMediaElement,"video"),kA=Uc(globalThis.HTMLMediaElement,"audio");function XD(i){if(!(i!=null&&i.prototype))return i;let e=Uc(i,"video");(!e||`${e}`.includes("[native code]"))&&Object.defineProperty(i.prototype,"videoTracks",{get(){return QD(this)}});let t=Uc(i,"audio");(!t||`${t}`.includes("[native code]"))&&Object.defineProperty(i.prototype,"audioTracks",{get(){return ZD(this)}}),"addVideoTrack"in i.prototype||(i.prototype.addVideoTrack=function(n,a="",o=""){let l=new OA;return l.kind=n,l.label=a,l.language=o,w0(this,l),l}),"removeVideoTrack"in i.prototype||(i.prototype.removeVideoTrack=C0),"addAudioTrack"in i.prototype||(i.prototype.addAudioTrack=function(n,a="",o=""){let l=new NA;return l.kind=n,l.label=a,l.language=o,O0(this,l),l}),"removeAudioTrack"in i.prototype||(i.prototype.removeAudioTrack=N0),"videoRenditions"in i.prototype||Object.defineProperty(i.prototype,"videoRenditions",{get(){return r(this)}});let r=n=>{let a=V(n).videoRenditions;return a||(a=new M0,V(a).media=n,V(n).videoRenditions=a),a};"audioRenditions"in i.prototype||Object.defineProperty(i.prototype,"audioRenditions",{get(){return s(this)}});let s=n=>{let a=V(n).audioRenditions;return a||(a=new P0,V(a).media=n,V(n).audioRenditions=a),a};return i}function Uc(i,e){var t;if(i!=null&&i.prototype)return(t=Object.getOwnPropertyDescriptor(i.prototype,`${e}Tracks`))==null?void 0:t.get}function QD(i){var e;let t=V(i).videoTracks;if(!t&&(t=new D0,V(i).videoTracks=t,LA)){let r=LA.call((e=i.nativeEl)!=null?e:i);for(let s of r)w0(i,s);r.addEventListener("change",()=>{t.dispatchEvent(new Event("change"))}),r.addEventListener("addtrack",s=>{if([...t].some(n=>n instanceof OA)){for(let n of r)C0(n);return}w0(i,s.track)}),r.addEventListener("removetrack",s=>{C0(s.track)})}return t}function ZD(i){var e;let t=V(i).audioTracks;if(!t&&(t=new U0,V(i).audioTracks=t,kA)){let r=kA.call((e=i.nativeEl)!=null?e:i);for(let s of r)O0(i,s);r.addEventListener("change",()=>{t.dispatchEvent(new Event("change"))}),r.addEventListener("addtrack",s=>{if([...t].some(n=>n instanceof NA)){for(let n of r)N0(n);return}O0(i,s.track)}),r.addEventListener("removetrack",s=>{N0(s.track)})}return t}Bc.push("castchange","entercast","leavecast");var M={BEACON_COLLECTION_DOMAIN:"beacon-collection-domain",CUSTOM_DOMAIN:"custom-domain",DEBUG:"debug",DISABLE_TRACKING:"disable-tracking",DISABLE_COOKIES:"disable-cookies",DRM_TOKEN:"drm-token",ENV_KEY:"env-key",MAX_RESOLUTION:"max-resolution",MIN_RESOLUTION:"min-resolution",RENDITION_ORDER:"rendition-order",PROGRAM_START_TIME:"program-start-time",PROGRAM_END_TIME:"program-end-time",METADATA_URL:"metadata-url",PLAYBACK_ID:"playback-id",PLAYER_SOFTWARE_NAME:"player-software-name",PLAYER_SOFTWARE_VERSION:"player-software-version",PREFER_CMCD:"prefer-cmcd",PREFER_PLAYBACK:"prefer-playback",START_TIME:"start-time",STREAM_TYPE:"stream-type",TARGET_LIVE_WINDOW:"target-live-window",LIVE_EDGE_OFFSET:"live-edge-offset",TYPE:"type"},JD=Object.values(M),eM=xD(),tM="mux-video",Zi,Ro,wc,wo,Cc,Dc,Mc,Pc,Co,Oc,iM=class extends y0{constructor(){super(),X(this,Co),X(this,Zi,void 0),X(this,Ro,void 0),X(this,wc,void 0),X(this,wo,{}),X(this,Cc,void 0),X(this,Dc,void 0),X(this,Mc,void 0),X(this,Pc,void 0),ee(this,wc,dA())}static get observedAttributes(){var i;return[...JD,...(i=y0.observedAttributes)!=null?i:[]]}get preferCmcd(){var i;return(i=this.getAttribute(M.PREFER_CMCD))!=null?i:void 0}set preferCmcd(i){i!==this.preferCmcd&&(i?zn.includes(i)?this.setAttribute(M.PREFER_CMCD,i):console.warn(`Invalid value for preferCmcd. Must be one of ${zn.join()}`):this.removeAttribute(M.PREFER_CMCD))}get playerInitTime(){return R(this,wc)}get playerSoftwareName(){var i;return(i=R(this,Mc))!=null?i:tM}set playerSoftwareName(i){ee(this,Mc,i)}get playerSoftwareVersion(){var i;return(i=R(this,Dc))!=null?i:eM}set playerSoftwareVersion(i){ee(this,Dc,i)}get _hls(){var i;return(i=R(this,Zi))==null?void 0:i.engine}get mux(){var i;return(i=this.nativeEl)==null?void 0:i.mux}get error(){var i;return(i=uA(this.nativeEl))!=null?i:null}get errorTranslator(){return R(this,Pc)}set errorTranslator(i){ee(this,Pc,i)}get src(){return this.getAttribute("src")}set src(i){i!==this.src&&(i==null?this.removeAttribute("src"):this.setAttribute("src",i))}get type(){var i;return(i=this.getAttribute(M.TYPE))!=null?i:void 0}set type(i){i!==this.type&&(i?this.setAttribute(M.TYPE,i):this.removeAttribute(M.TYPE))}get autoplay(){let i=this.getAttribute("autoplay");return i===null?!1:i===""?!0:i}set autoplay(i){let e=this.autoplay;i!==e&&(i?this.setAttribute("autoplay",typeof i=="string"?i:""):this.removeAttribute("autoplay"))}get preload(){let i=this.getAttribute("preload");return i===""?"auto":["none","metadata","auto"].includes(i)?i:super.preload}set preload(i){i!=this.getAttribute("preload")&&(["","none","metadata","auto"].includes(i)?this.setAttribute("preload",i):this.removeAttribute("preload"))}get debug(){return this.getAttribute(M.DEBUG)!=null}set debug(i){i!==this.debug&&(i?this.setAttribute(M.DEBUG,""):this.removeAttribute(M.DEBUG))}get disableTracking(){return this.hasAttribute(M.DISABLE_TRACKING)}set disableTracking(i){i!==this.disableTracking&&this.toggleAttribute(M.DISABLE_TRACKING,!!i)}get disableCookies(){return this.hasAttribute(M.DISABLE_COOKIES)}set disableCookies(i){i!==this.disableCookies&&(i?this.setAttribute(M.DISABLE_COOKIES,""):this.removeAttribute(M.DISABLE_COOKIES))}get startTime(){let i=this.getAttribute(M.START_TIME);if(i==null)return;let e=+i;return Number.isNaN(e)?void 0:e}set startTime(i){i!==this.startTime&&(i==null?this.removeAttribute(M.START_TIME):this.setAttribute(M.START_TIME,`${i}`))}get playbackId(){var i;return this.hasAttribute(M.PLAYBACK_ID)?this.getAttribute(M.PLAYBACK_ID):(i=Ac(this.src))!=null?i:void 0}set playbackId(i){i!==this.playbackId&&(i?this.setAttribute(M.PLAYBACK_ID,i):this.removeAttribute(M.PLAYBACK_ID))}get maxResolution(){var i;return(i=this.getAttribute(M.MAX_RESOLUTION))!=null?i:void 0}set maxResolution(i){i!==this.maxResolution&&(i?this.setAttribute(M.MAX_RESOLUTION,i):this.removeAttribute(M.MAX_RESOLUTION))}get minResolution(){var i;return(i=this.getAttribute(M.MIN_RESOLUTION))!=null?i:void 0}set minResolution(i){i!==this.minResolution&&(i?this.setAttribute(M.MIN_RESOLUTION,i):this.removeAttribute(M.MIN_RESOLUTION))}get renditionOrder(){var i;return(i=this.getAttribute(M.RENDITION_ORDER))!=null?i:void 0}set renditionOrder(i){i!==this.renditionOrder&&(i?this.setAttribute(M.RENDITION_ORDER,i):this.removeAttribute(M.RENDITION_ORDER))}get programStartTime(){let i=this.getAttribute(M.PROGRAM_START_TIME);if(i==null)return;let e=+i;return Number.isNaN(e)?void 0:e}set programStartTime(i){i==null?this.removeAttribute(M.PROGRAM_START_TIME):this.setAttribute(M.PROGRAM_START_TIME,`${i}`)}get programEndTime(){let i=this.getAttribute(M.PROGRAM_END_TIME);if(i==null)return;let e=+i;return Number.isNaN(e)?void 0:e}set programEndTime(i){i==null?this.removeAttribute(M.PROGRAM_END_TIME):this.setAttribute(M.PROGRAM_END_TIME,`${i}`)}get customDomain(){var i;return(i=this.getAttribute(M.CUSTOM_DOMAIN))!=null?i:void 0}set customDomain(i){i!==this.customDomain&&(i?this.setAttribute(M.CUSTOM_DOMAIN,i):this.removeAttribute(M.CUSTOM_DOMAIN))}get drmToken(){var i;return(i=this.getAttribute(M.DRM_TOKEN))!=null?i:void 0}set drmToken(i){i!==this.drmToken&&(i?this.setAttribute(M.DRM_TOKEN,i):this.removeAttribute(M.DRM_TOKEN))}get ended(){return g0(this.nativeEl,this._hls)}get envKey(){var i;return(i=this.getAttribute(M.ENV_KEY))!=null?i:void 0}set envKey(i){i!==this.envKey&&(i?this.setAttribute(M.ENV_KEY,i):this.removeAttribute(M.ENV_KEY))}get beaconCollectionDomain(){var i;return(i=this.getAttribute(M.BEACON_COLLECTION_DOMAIN))!=null?i:void 0}set beaconCollectionDomain(i){i!==this.beaconCollectionDomain&&(i?this.setAttribute(M.BEACON_COLLECTION_DOMAIN,i):this.removeAttribute(M.BEACON_COLLECTION_DOMAIN))}get streamType(){var i;return(i=this.getAttribute(M.STREAM_TYPE))!=null?i:yc(this.nativeEl)}set streamType(i){i!==this.streamType&&(i?this.setAttribute(M.STREAM_TYPE,i):this.removeAttribute(M.STREAM_TYPE))}get targetLiveWindow(){return this.hasAttribute(M.TARGET_LIVE_WINDOW)?+this.getAttribute(M.TARGET_LIVE_WINDOW):cA(this.nativeEl)}set targetLiveWindow(i){i!=this.targetLiveWindow&&(i==null?this.removeAttribute(M.TARGET_LIVE_WINDOW):this.setAttribute(M.TARGET_LIVE_WINDOW,`${+i}`))}get liveEdgeStart(){var i,e;if(this.hasAttribute(M.LIVE_EDGE_OFFSET)){let{liveEdgeOffset:t}=this,r=(i=this.nativeEl.seekable.end(0))!=null?i:0,s=(e=this.nativeEl.seekable.start(0))!=null?e:0;return Math.max(s,r-t)}return hA(this.nativeEl)}get liveEdgeOffset(){if(this.hasAttribute(M.LIVE_EDGE_OFFSET))return+this.getAttribute(M.LIVE_EDGE_OFFSET)}set liveEdgeOffset(i){i!=this.targetLiveWindow&&(i==null?this.removeAttribute(M.LIVE_EDGE_OFFSET):this.setAttribute(M.LIVE_EDGE_OFFSET,`${+i}`))}get seekable(){return yo(this.nativeEl)}async addCuePoints(i){return u0(this.nativeEl,i)}get activeCuePoint(){return c0(this.nativeEl)}get cuePoints(){return rA(this.nativeEl)}async addChapters(i){return f0(this.nativeEl,i)}get activeChapter(){return m0(this.nativeEl)}get chapters(){return nA(this.nativeEl)}getStartDate(){return aA(this.nativeEl,this._hls)}get currentPdt(){return oA(this.nativeEl,this._hls)}get preferPlayback(){let i=this.getAttribute(M.PREFER_PLAYBACK);if(i===Jt.MSE||i===Jt.NATIVE)return i}set preferPlayback(i){i!==this.preferPlayback&&(i===Jt.MSE||i===Jt.NATIVE?this.setAttribute(M.PREFER_PLAYBACK,i):this.removeAttribute(M.PREFER_PLAYBACK))}get metadata(){return{...this.getAttributeNames().filter(i=>i.startsWith("metadata-")&&![M.METADATA_URL].includes(i)).reduce((i,e)=>{let t=this.getAttribute(e);return t!=null&&(i[e.replace(/^metadata-/,"").replace(/-/g,"_")]=t),i},{}),...R(this,wo)}}set metadata(i){ee(this,wo,i!=null?i:{}),this.mux&&this.mux.emit("hb",R(this,wo))}get _hlsConfig(){return R(this,Cc)}set _hlsConfig(i){ee(this,Cc,i)}load(){ee(this,Zi,pA(this,this.nativeEl,R(this,Zi)))}unload(){v0(this.nativeEl,R(this,Zi)),ee(this,Zi,void 0)}attributeChangedCallback(i,e,t){var r,s;switch(y0.observedAttributes.includes(i)&&!["src","autoplay","preload"].includes(i)&&super.attributeChangedCallback(i,e,t),i){case M.PLAYER_SOFTWARE_NAME:this.playerSoftwareName=t!=null?t:void 0;break;case M.PLAYER_SOFTWARE_VERSION:this.playerSoftwareVersion=t!=null?t:void 0;break;case"src":{let n=!!e,a=!!t;!n&&a?Fe(this,Co,Oc).call(this):n&&!a?this.unload():n&&a&&(this.unload(),Fe(this,Co,Oc).call(this));break}case"autoplay":if(t===e)break;(r=R(this,Zi))==null||r.setAutoplay(this.autoplay);break;case"preload":if(t===e)break;(s=R(this,Zi))==null||s.setPreload(t);break;case M.PLAYBACK_ID:this.src=_o(this);break;case M.DEBUG:{let n=this.debug;this.mux&&console.info("Cannot toggle debug mode of mux data after initialization. Make sure you set all metadata to override before setting the src."),this._hls&&(this._hls.config.debug=n);break}case M.METADATA_URL:t&&fetch(t).then(n=>n.json()).then(n=>this.metadata=n).catch(()=>console.error(`Unable to load or parse metadata JSON from metadata-url ${t}!`));break;case M.STREAM_TYPE:(t==null||t!==e)&&this.dispatchEvent(new CustomEvent("streamtypechange",{composed:!0,bubbles:!0}));break;case M.TARGET_LIVE_WINDOW:(t==null||t!==e)&&this.dispatchEvent(new CustomEvent("targetlivewindowchange",{composed:!0,bubbles:!0,detail:this.targetLiveWindow}));break;default:break}}connectedCallback(){var i;(i=super.connectedCallback)==null||i.call(this),this.nativeEl&&this.src&&!R(this,Zi)&&Fe(this,Co,Oc).call(this)}disconnectedCallback(){this.unload()}};Zi=new WeakMap,Ro=new WeakMap,wc=new WeakMap,wo=new WeakMap,Cc=new WeakMap,Dc=new WeakMap,Mc=new WeakMap,Pc=new WeakMap,Co=new WeakSet,Oc=async function(){R(this,Ro)||(await ee(this,Ro,Promise.resolve()),ee(this,Ro,null),this.load())};var F0=class extends FD(XD(iM)){};b0.customElements.get("mux-video")||(b0.customElements.define("mux-video",F0),b0.MuxVideoElement=F0);var UA=F0;var rM="en",Ks={code:rM};var FA="en";function ce(i,e=!0){var s,n;let t=e&&(n=(s=Ks)==null?void 0:s[i])!=null?n:i,r=e?Ks.code:FA;return new W0(t,r)}var W0=class{constructor(e,t=(r=>(r=Ks.code)!=null?r:FA)()){this.message=e,this.locale=t}format(e){return this.message.replace(/\{(\w+)\}/g,(t,r)=>{var s;return(s=e[r])!=null?s:""})}toString(){return this.message}};function BA(i){let e="";return Object.entries(i).forEach(([t,r])=>{r!=null&&(e+=`${Gc(t)}: ${r}; `)}),e?e.trim():void 0}function Gc(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Wc(i){return i.replace(/[-_]([a-z])/g,(e,t)=>t.toUpperCase())}function ti(i){if(i==null)return;let e=+i;return Number.isNaN(e)?void 0:e}function K0(i){let e=sM(i).toString();return e?"?"+e:""}function sM(i){let e={};for(let t in i)i[t]!=null&&(e[t]=i[t]);return new URLSearchParams(e)}function $r(i){let e=(i!=null?i:"").split(".")[1];if(!e)return{};let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(atob(t).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(r)}var V0=(i,e)=>!i||!e?!1:i.contains(e)?!0:V0(i,e.getRootNode().host);var $A="mux.com",nM=()=>{try{return"2.8.1"}catch{}return"UNKNOWN"},aM=nM(),Vc=()=>aM,HA=(i,{token:e,customDomain:t=$A,thumbnailTime:r,programTime:s}={})=>{let n=e==null?r:void 0,{aud:a}=$r(e);if(!(e&&a!=="t"))return`https://image.${t}/${i}/thumbnail.webp${K0({token:e,time:n,program_time:s})}`},GA=(i,{token:e,customDomain:t=$A,programStartTime:r,programEndTime:s}={})=>{let{aud:n}=$r(e);if(!(e&&n!=="s"))return`https://image.${t}/${i}/storyboard.vtt${K0({token:e,format:"webp",program_start_time:r,program_end_time:s})}`},Do=i=>{if(i){if([ye.LIVE,ye.ON_DEMAND].includes(i))return i;if(i!=null&&i.includes("live"))return ye.LIVE}};var oM={crossorigin:"crossOrigin",playsinline:"playsInline"};function WA(i){var e;return(e=oM[i])!=null?e:Wc(i)}var Vs,qs,kt,Kc=class{constructor(e,t){qe(this,Vs,void 0);qe(this,qs,void 0);qe(this,kt,[]);Wt(this,Vs,e),Wt(this,qs,t)}[Symbol.iterator](){return fe(this,kt).values()}get length(){return fe(this,kt).length}get value(){var e;return(e=fe(this,kt).join(" "))!=null?e:""}set value(e){var t;e!==this.value&&(Wt(this,kt,[]),this.add(...(t=e==null?void 0:e.split(" "))!=null?t:[]))}toString(){return this.value}item(e){return fe(this,kt)[e]}values(){return fe(this,kt).values()}keys(){return fe(this,kt).keys()}forEach(e){fe(this,kt).forEach(e)}add(...e){var t,r;e.forEach(s=>{this.contains(s)||fe(this,kt).push(s)}),!(this.value===""&&!((t=fe(this,Vs))!=null&&t.hasAttribute(`${fe(this,qs)}`)))&&((r=fe(this,Vs))==null||r.setAttribute(`${fe(this,qs)}`,`${this.value}`))}remove(...e){var t;e.forEach(r=>{fe(this,kt).splice(fe(this,kt).indexOf(r),1)}),(t=fe(this,Vs))==null||t.setAttribute(`${fe(this,qs)}`,`${this.value}`)}contains(e){return fe(this,kt).includes(e)}toggle(e,t){return typeof t!="undefined"?t?(this.add(e),!0):(this.remove(e),!1):this.contains(e)?(this.remove(e),!1):(this.add(e),!0)}replace(e,t){this.remove(e),this.add(t)}};Vs=new WeakMap,qs=new WeakMap,kt=new WeakMap;var KA=`[mux-player ${Vc()}]`;function Hr(...i){console.warn(KA,...i)}function Gt(...i){console.error(KA,...i)}function q0(i){var t;let e=(t=i.message)!=null?t:"";if(i.context&&(e+=` ${i.context}`),i.file){let r="https://github.com/muxinc/elements/blob/main/errors/";e+=` ${ce("Read more: ")}
1647
- ${r}${i.file}`}Hr(e)}var xt={AUTOPLAY:"autoplay",CROSSORIGIN:"crossorigin",LOOP:"loop",MUTED:"muted",PLAYSINLINE:"playsinline",PRELOAD:"preload"},Ys={VOLUME:"volume",PLAYBACKRATE:"playbackrate",MUTED:"muted"},qA=Object.freeze({length:0,start(i){let e=i>>>0;if(e>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${e}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(i){let e=i>>>0;if(e>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${e}) is greater than or equal to the maximum bound (${this.length}).`);return 0}}),lM=Bc.filter(i=>i!=="error"),dM=Object.values(xt).filter(i=>![xt.PLAYSINLINE].includes(i)),uM=Object.values(Ys),ea,Y0=class extends $e.HTMLElement{constructor(){super();qe(this,ea,new WeakMap);let t=s=>{for(let n of s)n.type==="childList"&&(n.removedNodes.forEach(a=>{var o;(o=fe(this,ea).get(a))==null||o.remove()}),n.addedNodes.forEach(a=>{var l;let o=a;o!=null&&o.slot||(l=this.media)==null||l.append(YA(fe(this,ea),a))}))};new MutationObserver(t).observe(this,{childList:!0,subtree:!0}),lM.forEach(s=>{var n;(n=this.media)==null||n.addEventListener(s,a=>{this.dispatchEvent(new Event(a.type))})})}static get observedAttributes(){return[...dM,...uM]}init(){this.querySelectorAll(":scope > :not([slot])").forEach(t=>{var r;(r=this.media)==null||r.append(YA(fe(this,ea),t))})}attributeChangedCallback(t,r,s){var n,a;switch(t){case Ys.MUTED:{this.media&&(this.media.muted=s!=null,this.media.defaultMuted=s!=null);return}case Ys.VOLUME:{let o=(n=ti(s))!=null?n:1;this.media&&(this.media.volume=o);return}case Ys.PLAYBACKRATE:{let o=(a=ti(s))!=null?a:1;this.media&&(this.media.playbackRate=o,this.media.defaultPlaybackRate=o);return}}}play(){var t,r;return(r=(t=this.media)==null?void 0:t.play())!=null?r:Promise.reject()}pause(){var t;(t=this.media)==null||t.pause()}load(){var t;(t=this.media)==null||t.load()}requestCast(t){var r;return(r=this.media)==null?void 0:r.requestCast(t)}get media(){var t;return(t=this.shadowRoot)==null?void 0:t.querySelector("mux-video")}get audioTracks(){return this.media.audioTracks}get videoTracks(){return this.media.videoTracks}get audioRenditions(){return this.media.audioRenditions}get videoRenditions(){return this.media.videoRenditions}get paused(){var t,r;return(r=(t=this.media)==null?void 0:t.paused)!=null?r:!0}get duration(){var t,r;return(r=(t=this.media)==null?void 0:t.duration)!=null?r:NaN}get ended(){var t,r;return(r=(t=this.media)==null?void 0:t.ended)!=null?r:!1}get buffered(){var t,r;return(r=(t=this.media)==null?void 0:t.buffered)!=null?r:qA}get seekable(){var t,r;return(r=(t=this.media)==null?void 0:t.seekable)!=null?r:qA}get readyState(){var t,r;return(r=(t=this.media)==null?void 0:t.readyState)!=null?r:0}get videoWidth(){var t,r;return(r=(t=this.media)==null?void 0:t.videoWidth)!=null?r:0}get videoHeight(){var t,r;return(r=(t=this.media)==null?void 0:t.videoHeight)!=null?r:0}get currentSrc(){var t,r;return(r=(t=this.media)==null?void 0:t.currentSrc)!=null?r:""}get currentTime(){var t,r;return(r=(t=this.media)==null?void 0:t.currentTime)!=null?r:0}set currentTime(t){this.media&&(this.media.currentTime=Number(t))}get volume(){var t,r;return(r=(t=this.media)==null?void 0:t.volume)!=null?r:1}set volume(t){this.media&&(this.media.volume=Number(t))}get playbackRate(){var t,r;return(r=(t=this.media)==null?void 0:t.playbackRate)!=null?r:1}set playbackRate(t){this.media&&(this.media.playbackRate=Number(t))}get defaultPlaybackRate(){var t;return(t=ti(this.getAttribute(Ys.PLAYBACKRATE)))!=null?t:1}set defaultPlaybackRate(t){t!=null?this.setAttribute(Ys.PLAYBACKRATE,`${t}`):this.removeAttribute(Ys.PLAYBACKRATE)}get crossOrigin(){return Mo(this,xt.CROSSORIGIN)}set crossOrigin(t){this.setAttribute(xt.CROSSORIGIN,`${t}`)}get autoplay(){return Mo(this,xt.AUTOPLAY)!=null}set autoplay(t){t?this.setAttribute(xt.AUTOPLAY,typeof t=="string"?t:""):this.removeAttribute(xt.AUTOPLAY)}get loop(){return Mo(this,xt.LOOP)!=null}set loop(t){t?this.setAttribute(xt.LOOP,""):this.removeAttribute(xt.LOOP)}get muted(){var t,r;return(r=(t=this.media)==null?void 0:t.muted)!=null?r:!1}set muted(t){this.media&&(this.media.muted=!!t)}get defaultMuted(){return Mo(this,xt.MUTED)!=null}set defaultMuted(t){t?this.setAttribute(xt.MUTED,""):this.removeAttribute(xt.MUTED)}get playsInline(){return Mo(this,xt.PLAYSINLINE)!=null}set playsInline(t){Gt("playsInline is set to true by default and is not currently supported as a setter.")}get preload(){return this.media?this.media.preload:this.getAttribute("preload")}set preload(t){["","none","metadata","auto"].includes(t)?this.setAttribute(xt.PRELOAD,t):this.removeAttribute(xt.PRELOAD)}};ea=new WeakMap;function Mo(i,e){return i.media?i.media.getAttribute(e):i.getAttribute(e)}function YA(i,e){let t=i.get(e);return t||(t=e.cloneNode(),i.set(e,t)),t}var z0=Y0;var cM=Object.defineProperty,hM=(i,e,t)=>e in i?cM(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,fM=(i,e,t)=>(hM(i,typeof e!="symbol"?e+"":e,t),t),ZA=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},de=(i,e,t)=>(ZA(i,e,"read from private field"),t?t.call(i):e.get(i)),Ji=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},cr=(i,e,t,r)=>(ZA(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),ta,qc,zs,Po,Gr,Wr,Kr,js,ia,Yc,Ti,zA=1,jA=0,mM=1,pM={processCallback(i,e,t){if(t){for(let[r,s]of e)if(r in t){let n=t[r];typeof n=="boolean"&&s instanceof It&&typeof s.element[s.attributeName]=="boolean"?s.booleanValue=n:typeof n=="function"&&s instanceof It?s.element[s.attributeName]=n:s.value=n}}}},hr=class extends _.DocumentFragment{constructor(e,t,r=pM){var s;super(),Ji(this,ta,void 0),Ji(this,qc,void 0),this.append(e.content.cloneNode(!0)),cr(this,ta,JA(this)),cr(this,qc,r),(s=r.createCallback)==null||s.call(r,this,de(this,ta),t),r.processCallback(this,de(this,ta),t)}update(e){de(this,qc).processCallback(this,de(this,ta),e)}};ta=new WeakMap;qc=new WeakMap;var JA=(i,e=[])=>{let t,r;for(let s of i.attributes||[])if(s.value.includes("{{")){let n=new j0;for([t,r]of QA(s.value))if(!t)n.append(r);else{let a=new It(i,s.name,s.namespaceURI);n.append(a),e.push([r,a])}s.value=n.toString()}for(let s of i.childNodes)if(s.nodeType===zA&&!(s instanceof HTMLTemplateElement))JA(s,e);else if(s.nodeType===zA||s.data.includes("{{")){let n=[];if(s.data)for([t,r]of QA(s.data))if(!t)n.push(new Text(r));else{let a=new fr(i);n.push(a),e.push([r,a])}else if(s instanceof HTMLTemplateElement){let a=new Oo(i,s);n.push(a),e.push([a.expression,a])}s.replaceWith(...n.flatMap(a=>a.replacementNodes||[a]))}return e},XA={},QA=i=>{let e="",t=0,r=XA[i],s=0,n;if(r)return r;for(r=[];n=i[s];s++)n==="{"&&i[s+1]==="{"&&i[s-1]!=="\\"&&i[s+2]&&++t==1?(e&&r.push([jA,e]),e="",s++):n==="}"&&i[s+1]==="}"&&i[s-1]!=="\\"&&!--t?(r.push([mM,e.trim()]),e="",s++):e+=n||"";return e&&r.push([jA,(t>0?"{{":"")+e]),XA[i]=r},gM=11,zc=class{get value(){return""}set value(e){}toString(){return this.value}},e1=new WeakMap,j0=class{constructor(){Ji(this,zs,[])}[Symbol.iterator](){return de(this,zs).values()}get length(){return de(this,zs).length}item(e){return de(this,zs)[e]}append(...e){for(let t of e)t instanceof It&&e1.set(t,this),de(this,zs).push(t)}toString(){return de(this,zs).join("")}};zs=new WeakMap;var It=class extends zc{constructor(e,t,r){super(),Ji(this,js),Ji(this,Po,""),Ji(this,Gr,void 0),Ji(this,Wr,void 0),Ji(this,Kr,void 0),cr(this,Gr,e),cr(this,Wr,t),cr(this,Kr,r)}get attributeName(){return de(this,Wr)}get attributeNamespace(){return de(this,Kr)}get element(){return de(this,Gr)}get value(){return de(this,Po)}set value(e){de(this,Po)!==e&&(cr(this,Po,e),!de(this,js,ia)||de(this,js,ia).length===1?e==null?de(this,Gr).removeAttributeNS(de(this,Kr),de(this,Wr)):de(this,Gr).setAttributeNS(de(this,Kr),de(this,Wr),e):de(this,Gr).setAttributeNS(de(this,Kr),de(this,Wr),de(this,js,ia)))}get booleanValue(){return de(this,Gr).hasAttributeNS(de(this,Kr),de(this,Wr))}set booleanValue(e){if(!de(this,js,ia)||de(this,js,ia).length===1)this.value=e?"":null;else throw new DOMException("Value is not fully templatized")}};Po=new WeakMap;Gr=new WeakMap;Wr=new WeakMap;Kr=new WeakMap;js=new WeakSet;ia=function(){return e1.get(this)};var fr=class extends zc{constructor(e,t){super(),Ji(this,Yc,void 0),Ji(this,Ti,void 0),cr(this,Yc,e),cr(this,Ti,t?[...t]:[new Text])}get replacementNodes(){return de(this,Ti)}get parentNode(){return de(this,Yc)}get nextSibling(){return de(this,Ti)[de(this,Ti).length-1].nextSibling}get previousSibling(){return de(this,Ti)[0].previousSibling}get value(){return de(this,Ti).map(e=>e.textContent).join("")}set value(e){this.replace(e)}replace(...e){let t=e.flat().flatMap(r=>r==null?[new Text]:r.forEach?[...r]:r.nodeType===gM?[...r.childNodes]:r.nodeType?[r]:[new Text(r)]);t.length||t.push(new Text),cr(this,Ti,vM(de(this,Ti)[0].parentNode,de(this,Ti),t,this.nextSibling))}};Yc=new WeakMap;Ti=new WeakMap;var Oo=class extends fr{constructor(e,t){let r=t.getAttribute("directive")||t.getAttribute("type"),s=t.getAttribute("expression")||t.getAttribute(r)||"";s.startsWith("{{")&&(s=s.trim().slice(2,-2).trim()),super(e),fM(this,"directive"),this.expression=s,this.template=t,this.directive=r}};function vM(i,e,t,r=null){let s=0,n,a,o,l=t.length,d=e.length;for(;s<l&&s<d&&e[s]==t[s];)s++;for(;s<l&&s<d&&t[l-1]==e[d-1];)r=t[--d,--l];if(s==d)for(;s<l;)i.insertBefore(t[s++],r);if(s==l)for(;s<d;)i.removeChild(e[s++]);else{for(n=e[s];s<l;)o=t[s++],a=n?n.nextSibling:r,n==o?n=a:s<l&&t[s]==a?(i.replaceChild(o,n),n=a):i.insertBefore(o,n);for(;n!=r;)a=n.nextSibling,i.removeChild(n),n=a}return t}var t1={string:i=>String(i)},Xc=class{constructor(e){this.template=e,this.state=void 0}},Xs=new WeakMap,Qs=new WeakMap,X0={partial:(i,e)=>{e[i.expression]=new Xc(i.template)},if:(i,e)=>{var t;if(r1(i.expression,e))if(Xs.get(i)!==i.template){Xs.set(i,i.template);let r=new hr(i.template,e,Qc);i.replace(r),Qs.set(i,r)}else(t=Qs.get(i))==null||t.update(e);else i.replace(""),Xs.delete(i),Qs.delete(i)}},EM=Object.keys(X0),Qc={processCallback(i,e,t){var r,s;if(t)for(let[n,a]of e){if(a instanceof Oo){if(!a.directive){let l=EM.find(d=>a.template.hasAttribute(d));l&&(a.directive=l,a.expression=a.template.getAttribute(l))}(r=X0[a.directive])==null||r.call(X0,a,t);continue}let o=r1(n,t);if(o instanceof Xc){Xs.get(a)!==o.template?(Xs.set(a,o.template),o=new hr(o.template,o.state,Qc),a.value=o,Qs.set(a,o)):(s=Qs.get(a))==null||s.update(o.state);continue}o?(a instanceof It&&a.attributeName.startsWith("aria-")&&(o=String(o)),a instanceof It?typeof o=="boolean"?a.booleanValue=o:typeof o=="function"?a.element[a.attributeName]=o:a.value=o:(a.value=o,Xs.delete(a),Qs.delete(a))):a instanceof It?a.value=void 0:(a.value=void 0,Xs.delete(a),Qs.delete(a))}}},i1={"!":i=>!i,"!!":i=>!!i,"==":(i,e)=>i==e,"!=":(i,e)=>i!=e,">":(i,e)=>i>e,">=":(i,e)=>i>=e,"<":(i,e)=>i<e,"<=":(i,e)=>i<=e,"??":(i,e)=>i!=null?i:e,"|":(i,e)=>{var t;return(t=t1[e])==null?void 0:t.call(t1,i)}};function bM(i){return yM(i,{boolean:/true|false/,number:/-?\d+\.?\d*/,string:/(["'])((?:\\.|[^\\])*?)\1/,operator:/[!=><][=!]?|\?\?|\|/,ws:/\s+/,param:/[$a-z_][$\w]*/i}).filter(({type:e})=>e!=="ws")}function r1(i,e={}){var t,r,s,n,a,o,l;let d=bM(i);if(d.length===0||d.some(({type:u})=>!u))return No(i);if(((t=d[0])==null?void 0:t.token)===">"){let u=e[(r=d[1])==null?void 0:r.token];if(!u)return No(i);let c={...e};u.state=c;let h=d.slice(2);for(let f=0;f<h.length;f+=3){let m=(s=h[f])==null?void 0:s.token,p=(n=h[f+1])==null?void 0:n.token,g=(a=h[f+2])==null?void 0:a.token;m&&p==="="&&(c[m]=Uo(g,e))}return u}if(d.length===1)return jc(d[0])?Uo(d[0].token,e):No(i);if(d.length===2){let u=(o=d[0])==null?void 0:o.token,c=i1[u];if(!c||!jc(d[1]))return No(i);let h=Uo(d[1].token,e);return c(h)}if(d.length===3){let u=(l=d[1])==null?void 0:l.token,c=i1[u];if(!c||!jc(d[0])||!jc(d[2]))return No(i);let h=Uo(d[0].token,e);if(u==="|")return c(h,d[2].token);let f=Uo(d[2].token,e);return c(h,f)}}function No(i){return console.warn(`Warning: invalid expression \`${i}\``),!1}function jc({type:i}){return["number","boolean","string","param"].includes(i)}function Uo(i,e){let t=i[0],r=i.slice(-1);return i==="true"||i==="false"?i==="true":t===r&&["'",'"'].includes(t)?i.slice(1,-1):jo(i)?parseFloat(i):e[i]}function yM(i,e){let t,r,s,n=[];for(;i;){s=null,t=i.length;for(let a in e)r=e[a].exec(i),r&&r.index<t&&(s={token:r[0],type:a,matches:r.slice(1)},t=r.index);t&&n.push({token:i.substr(0,t),type:void 0}),s&&n.push(s),i=i.substr(t+(s?s.token.length:0))}return n}var TM=Object.defineProperty,_M=(i,e,t)=>e in i?TM(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Bo=(i,e,t)=>(_M(i,typeof e!="symbol"?e+"":e,t),t),iv=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},J0=(i,e,t)=>(iv(i,e,"read from private field"),t?t.call(i):e.get(i)),Fo=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Zs=(i,e,t,r)=>(iv(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Q0=(i,e,t)=>(iv(i,e,"access private method"),t),ra,Zc,sa,ev,s1,Jc,tv,Z0={mediatargetlivewindow:"targetlivewindow",mediastreamtype:"streamtype"},n1=O.createElement("template");n1.innerHTML=`
1647
+ ${r}${i.file}`}Hr(e)}var xt={AUTOPLAY:"autoplay",CROSSORIGIN:"crossorigin",LOOP:"loop",MUTED:"muted",PLAYSINLINE:"playsinline",PRELOAD:"preload"},Ys={VOLUME:"volume",PLAYBACKRATE:"playbackrate",MUTED:"muted"},qA=Object.freeze({length:0,start(i){let e=i>>>0;if(e>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${e}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(i){let e=i>>>0;if(e>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${e}) is greater than or equal to the maximum bound (${this.length}).`);return 0}}),lM=Bc.filter(i=>i!=="error"),dM=Object.values(xt).filter(i=>![xt.PLAYSINLINE].includes(i)),uM=Object.values(Ys),ea,Y0=class extends $e.HTMLElement{constructor(){super();qe(this,ea,new WeakMap);let t=s=>{for(let n of s)n.type==="childList"&&(n.removedNodes.forEach(a=>{var o;(o=fe(this,ea).get(a))==null||o.remove()}),n.addedNodes.forEach(a=>{var l;let o=a;o!=null&&o.slot||(l=this.media)==null||l.append(YA(fe(this,ea),a))}))};new MutationObserver(t).observe(this,{childList:!0,subtree:!0})}static get observedAttributes(){return[...dM,...uM]}init(){this.querySelectorAll(":scope > :not([slot])").forEach(t=>{var r;(r=this.media)==null||r.append(YA(fe(this,ea),t))}),lM.forEach(t=>{var r;(r=this.media)==null||r.addEventListener(t,s=>{this.dispatchEvent(new Event(s.type))})})}attributeChangedCallback(t,r,s){var n,a;switch(t){case Ys.MUTED:{this.media&&(this.media.muted=s!=null,this.media.defaultMuted=s!=null);return}case Ys.VOLUME:{let o=(n=ti(s))!=null?n:1;this.media&&(this.media.volume=o);return}case Ys.PLAYBACKRATE:{let o=(a=ti(s))!=null?a:1;this.media&&(this.media.playbackRate=o,this.media.defaultPlaybackRate=o);return}}}play(){var t,r;return(r=(t=this.media)==null?void 0:t.play())!=null?r:Promise.reject()}pause(){var t;(t=this.media)==null||t.pause()}load(){var t;(t=this.media)==null||t.load()}requestCast(t){var r;return(r=this.media)==null?void 0:r.requestCast(t)}get media(){var t;return(t=this.shadowRoot)==null?void 0:t.querySelector("mux-video")}get audioTracks(){return this.media.audioTracks}get videoTracks(){return this.media.videoTracks}get audioRenditions(){return this.media.audioRenditions}get videoRenditions(){return this.media.videoRenditions}get paused(){var t,r;return(r=(t=this.media)==null?void 0:t.paused)!=null?r:!0}get duration(){var t,r;return(r=(t=this.media)==null?void 0:t.duration)!=null?r:NaN}get ended(){var t,r;return(r=(t=this.media)==null?void 0:t.ended)!=null?r:!1}get buffered(){var t,r;return(r=(t=this.media)==null?void 0:t.buffered)!=null?r:qA}get seekable(){var t,r;return(r=(t=this.media)==null?void 0:t.seekable)!=null?r:qA}get readyState(){var t,r;return(r=(t=this.media)==null?void 0:t.readyState)!=null?r:0}get videoWidth(){var t,r;return(r=(t=this.media)==null?void 0:t.videoWidth)!=null?r:0}get videoHeight(){var t,r;return(r=(t=this.media)==null?void 0:t.videoHeight)!=null?r:0}get currentSrc(){var t,r;return(r=(t=this.media)==null?void 0:t.currentSrc)!=null?r:""}get currentTime(){var t,r;return(r=(t=this.media)==null?void 0:t.currentTime)!=null?r:0}set currentTime(t){this.media&&(this.media.currentTime=Number(t))}get volume(){var t,r;return(r=(t=this.media)==null?void 0:t.volume)!=null?r:1}set volume(t){this.media&&(this.media.volume=Number(t))}get playbackRate(){var t,r;return(r=(t=this.media)==null?void 0:t.playbackRate)!=null?r:1}set playbackRate(t){this.media&&(this.media.playbackRate=Number(t))}get defaultPlaybackRate(){var t;return(t=ti(this.getAttribute(Ys.PLAYBACKRATE)))!=null?t:1}set defaultPlaybackRate(t){t!=null?this.setAttribute(Ys.PLAYBACKRATE,`${t}`):this.removeAttribute(Ys.PLAYBACKRATE)}get crossOrigin(){return Mo(this,xt.CROSSORIGIN)}set crossOrigin(t){this.setAttribute(xt.CROSSORIGIN,`${t}`)}get autoplay(){return Mo(this,xt.AUTOPLAY)!=null}set autoplay(t){t?this.setAttribute(xt.AUTOPLAY,typeof t=="string"?t:""):this.removeAttribute(xt.AUTOPLAY)}get loop(){return Mo(this,xt.LOOP)!=null}set loop(t){t?this.setAttribute(xt.LOOP,""):this.removeAttribute(xt.LOOP)}get muted(){var t,r;return(r=(t=this.media)==null?void 0:t.muted)!=null?r:!1}set muted(t){this.media&&(this.media.muted=!!t)}get defaultMuted(){return Mo(this,xt.MUTED)!=null}set defaultMuted(t){t?this.setAttribute(xt.MUTED,""):this.removeAttribute(xt.MUTED)}get playsInline(){return Mo(this,xt.PLAYSINLINE)!=null}set playsInline(t){Gt("playsInline is set to true by default and is not currently supported as a setter.")}get preload(){return this.media?this.media.preload:this.getAttribute("preload")}set preload(t){["","none","metadata","auto"].includes(t)?this.setAttribute(xt.PRELOAD,t):this.removeAttribute(xt.PRELOAD)}};ea=new WeakMap;function Mo(i,e){return i.media?i.media.getAttribute(e):i.getAttribute(e)}function YA(i,e){let t=i.get(e);return t||(t=e.cloneNode(),i.set(e,t)),t}var z0=Y0;var cM=Object.defineProperty,hM=(i,e,t)=>e in i?cM(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,fM=(i,e,t)=>(hM(i,typeof e!="symbol"?e+"":e,t),t),ZA=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},de=(i,e,t)=>(ZA(i,e,"read from private field"),t?t.call(i):e.get(i)),Ji=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},cr=(i,e,t,r)=>(ZA(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),ta,qc,zs,Po,Gr,Wr,Kr,js,ia,Yc,Ti,zA=1,jA=0,mM=1,pM={processCallback(i,e,t){if(t){for(let[r,s]of e)if(r in t){let n=t[r];typeof n=="boolean"&&s instanceof It&&typeof s.element[s.attributeName]=="boolean"?s.booleanValue=n:typeof n=="function"&&s instanceof It?s.element[s.attributeName]=n:s.value=n}}}},hr=class extends _.DocumentFragment{constructor(e,t,r=pM){var s;super(),Ji(this,ta,void 0),Ji(this,qc,void 0),this.append(e.content.cloneNode(!0)),cr(this,ta,JA(this)),cr(this,qc,r),(s=r.createCallback)==null||s.call(r,this,de(this,ta),t),r.processCallback(this,de(this,ta),t)}update(e){de(this,qc).processCallback(this,de(this,ta),e)}};ta=new WeakMap;qc=new WeakMap;var JA=(i,e=[])=>{let t,r;for(let s of i.attributes||[])if(s.value.includes("{{")){let n=new j0;for([t,r]of QA(s.value))if(!t)n.append(r);else{let a=new It(i,s.name,s.namespaceURI);n.append(a),e.push([r,a])}s.value=n.toString()}for(let s of i.childNodes)if(s.nodeType===zA&&!(s instanceof HTMLTemplateElement))JA(s,e);else if(s.nodeType===zA||s.data.includes("{{")){let n=[];if(s.data)for([t,r]of QA(s.data))if(!t)n.push(new Text(r));else{let a=new fr(i);n.push(a),e.push([r,a])}else if(s instanceof HTMLTemplateElement){let a=new Oo(i,s);n.push(a),e.push([a.expression,a])}s.replaceWith(...n.flatMap(a=>a.replacementNodes||[a]))}return e},XA={},QA=i=>{let e="",t=0,r=XA[i],s=0,n;if(r)return r;for(r=[];n=i[s];s++)n==="{"&&i[s+1]==="{"&&i[s-1]!=="\\"&&i[s+2]&&++t==1?(e&&r.push([jA,e]),e="",s++):n==="}"&&i[s+1]==="}"&&i[s-1]!=="\\"&&!--t?(r.push([mM,e.trim()]),e="",s++):e+=n||"";return e&&r.push([jA,(t>0?"{{":"")+e]),XA[i]=r},gM=11,zc=class{get value(){return""}set value(e){}toString(){return this.value}},e1=new WeakMap,j0=class{constructor(){Ji(this,zs,[])}[Symbol.iterator](){return de(this,zs).values()}get length(){return de(this,zs).length}item(e){return de(this,zs)[e]}append(...e){for(let t of e)t instanceof It&&e1.set(t,this),de(this,zs).push(t)}toString(){return de(this,zs).join("")}};zs=new WeakMap;var It=class extends zc{constructor(e,t,r){super(),Ji(this,js),Ji(this,Po,""),Ji(this,Gr,void 0),Ji(this,Wr,void 0),Ji(this,Kr,void 0),cr(this,Gr,e),cr(this,Wr,t),cr(this,Kr,r)}get attributeName(){return de(this,Wr)}get attributeNamespace(){return de(this,Kr)}get element(){return de(this,Gr)}get value(){return de(this,Po)}set value(e){de(this,Po)!==e&&(cr(this,Po,e),!de(this,js,ia)||de(this,js,ia).length===1?e==null?de(this,Gr).removeAttributeNS(de(this,Kr),de(this,Wr)):de(this,Gr).setAttributeNS(de(this,Kr),de(this,Wr),e):de(this,Gr).setAttributeNS(de(this,Kr),de(this,Wr),de(this,js,ia)))}get booleanValue(){return de(this,Gr).hasAttributeNS(de(this,Kr),de(this,Wr))}set booleanValue(e){if(!de(this,js,ia)||de(this,js,ia).length===1)this.value=e?"":null;else throw new DOMException("Value is not fully templatized")}};Po=new WeakMap;Gr=new WeakMap;Wr=new WeakMap;Kr=new WeakMap;js=new WeakSet;ia=function(){return e1.get(this)};var fr=class extends zc{constructor(e,t){super(),Ji(this,Yc,void 0),Ji(this,Ti,void 0),cr(this,Yc,e),cr(this,Ti,t?[...t]:[new Text])}get replacementNodes(){return de(this,Ti)}get parentNode(){return de(this,Yc)}get nextSibling(){return de(this,Ti)[de(this,Ti).length-1].nextSibling}get previousSibling(){return de(this,Ti)[0].previousSibling}get value(){return de(this,Ti).map(e=>e.textContent).join("")}set value(e){this.replace(e)}replace(...e){let t=e.flat().flatMap(r=>r==null?[new Text]:r.forEach?[...r]:r.nodeType===gM?[...r.childNodes]:r.nodeType?[r]:[new Text(r)]);t.length||t.push(new Text),cr(this,Ti,vM(de(this,Ti)[0].parentNode,de(this,Ti),t,this.nextSibling))}};Yc=new WeakMap;Ti=new WeakMap;var Oo=class extends fr{constructor(e,t){let r=t.getAttribute("directive")||t.getAttribute("type"),s=t.getAttribute("expression")||t.getAttribute(r)||"";s.startsWith("{{")&&(s=s.trim().slice(2,-2).trim()),super(e),fM(this,"directive"),this.expression=s,this.template=t,this.directive=r}};function vM(i,e,t,r=null){let s=0,n,a,o,l=t.length,d=e.length;for(;s<l&&s<d&&e[s]==t[s];)s++;for(;s<l&&s<d&&t[l-1]==e[d-1];)r=t[--d,--l];if(s==d)for(;s<l;)i.insertBefore(t[s++],r);if(s==l)for(;s<d;)i.removeChild(e[s++]);else{for(n=e[s];s<l;)o=t[s++],a=n?n.nextSibling:r,n==o?n=a:s<l&&t[s]==a?(i.replaceChild(o,n),n=a):i.insertBefore(o,n);for(;n!=r;)a=n.nextSibling,i.removeChild(n),n=a}return t}var t1={string:i=>String(i)},Xc=class{constructor(e){this.template=e,this.state=void 0}},Xs=new WeakMap,Qs=new WeakMap,X0={partial:(i,e)=>{e[i.expression]=new Xc(i.template)},if:(i,e)=>{var t;if(r1(i.expression,e))if(Xs.get(i)!==i.template){Xs.set(i,i.template);let r=new hr(i.template,e,Qc);i.replace(r),Qs.set(i,r)}else(t=Qs.get(i))==null||t.update(e);else i.replace(""),Xs.delete(i),Qs.delete(i)}},EM=Object.keys(X0),Qc={processCallback(i,e,t){var r,s;if(t)for(let[n,a]of e){if(a instanceof Oo){if(!a.directive){let l=EM.find(d=>a.template.hasAttribute(d));l&&(a.directive=l,a.expression=a.template.getAttribute(l))}(r=X0[a.directive])==null||r.call(X0,a,t);continue}let o=r1(n,t);if(o instanceof Xc){Xs.get(a)!==o.template?(Xs.set(a,o.template),o=new hr(o.template,o.state,Qc),a.value=o,Qs.set(a,o)):(s=Qs.get(a))==null||s.update(o.state);continue}o?(a instanceof It&&a.attributeName.startsWith("aria-")&&(o=String(o)),a instanceof It?typeof o=="boolean"?a.booleanValue=o:typeof o=="function"?a.element[a.attributeName]=o:a.value=o:(a.value=o,Xs.delete(a),Qs.delete(a))):a instanceof It?a.value=void 0:(a.value=void 0,Xs.delete(a),Qs.delete(a))}}},i1={"!":i=>!i,"!!":i=>!!i,"==":(i,e)=>i==e,"!=":(i,e)=>i!=e,">":(i,e)=>i>e,">=":(i,e)=>i>=e,"<":(i,e)=>i<e,"<=":(i,e)=>i<=e,"??":(i,e)=>i!=null?i:e,"|":(i,e)=>{var t;return(t=t1[e])==null?void 0:t.call(t1,i)}};function bM(i){return yM(i,{boolean:/true|false/,number:/-?\d+\.?\d*/,string:/(["'])((?:\\.|[^\\])*?)\1/,operator:/[!=><][=!]?|\?\?|\|/,ws:/\s+/,param:/[$a-z_][$\w]*/i}).filter(({type:e})=>e!=="ws")}function r1(i,e={}){var t,r,s,n,a,o,l;let d=bM(i);if(d.length===0||d.some(({type:u})=>!u))return No(i);if(((t=d[0])==null?void 0:t.token)===">"){let u=e[(r=d[1])==null?void 0:r.token];if(!u)return No(i);let c={...e};u.state=c;let h=d.slice(2);for(let f=0;f<h.length;f+=3){let m=(s=h[f])==null?void 0:s.token,p=(n=h[f+1])==null?void 0:n.token,g=(a=h[f+2])==null?void 0:a.token;m&&p==="="&&(c[m]=Uo(g,e))}return u}if(d.length===1)return jc(d[0])?Uo(d[0].token,e):No(i);if(d.length===2){let u=(o=d[0])==null?void 0:o.token,c=i1[u];if(!c||!jc(d[1]))return No(i);let h=Uo(d[1].token,e);return c(h)}if(d.length===3){let u=(l=d[1])==null?void 0:l.token,c=i1[u];if(!c||!jc(d[0])||!jc(d[2]))return No(i);let h=Uo(d[0].token,e);if(u==="|")return c(h,d[2].token);let f=Uo(d[2].token,e);return c(h,f)}}function No(i){return console.warn(`Warning: invalid expression \`${i}\``),!1}function jc({type:i}){return["number","boolean","string","param"].includes(i)}function Uo(i,e){let t=i[0],r=i.slice(-1);return i==="true"||i==="false"?i==="true":t===r&&["'",'"'].includes(t)?i.slice(1,-1):jo(i)?parseFloat(i):e[i]}function yM(i,e){let t,r,s,n=[];for(;i;){s=null,t=i.length;for(let a in e)r=e[a].exec(i),r&&r.index<t&&(s={token:r[0],type:a,matches:r.slice(1)},t=r.index);t&&n.push({token:i.substr(0,t),type:void 0}),s&&n.push(s),i=i.substr(t+(s?s.token.length:0))}return n}var TM=Object.defineProperty,_M=(i,e,t)=>e in i?TM(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Bo=(i,e,t)=>(_M(i,typeof e!="symbol"?e+"":e,t),t),iv=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},J0=(i,e,t)=>(iv(i,e,"read from private field"),t?t.call(i):e.get(i)),Fo=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Zs=(i,e,t,r)=>(iv(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Q0=(i,e,t)=>(iv(i,e,"access private method"),t),ra,Zc,sa,ev,s1,Jc,tv,Z0={mediatargetlivewindow:"targetlivewindow",mediastreamtype:"streamtype"},n1=O.createElement("template");n1.innerHTML=`
1648
1648
  <style>
1649
1649
  :host {
1650
1650
  display: inline-block;
@@ -1 +1 @@
1
- {"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2019.full.d.ts","../src/polyfills/index.ts","../src/media-chrome/dialog.ts","../src/dialog.ts","../../../node_modules/mux-embed/dist/types/mux-embed.d.ts","../../../node_modules/hls.js/dist/hls.js.d.ts","../../playback-core/dist/types/hls.d.ts","../../playback-core/dist/types/errors.d.ts","../../playback-core/dist/types/types.d.ts","../../playback-core/dist/types/text-tracks.d.ts","../../playback-core/dist/types/pdt.d.ts","../../playback-core/dist/types/index.d.ts","../../../node_modules/custom-media-element/custom-media-element.d.ts","../../../node_modules/media-tracks/dist/video-rendition.d.ts","../../../node_modules/media-tracks/dist/video-track.d.ts","../../../node_modules/media-tracks/dist/video-track-list.d.ts","../../../node_modules/media-tracks/dist/audio-rendition.d.ts","../../../node_modules/media-tracks/dist/audio-track.d.ts","../../../node_modules/media-tracks/dist/audio-track-list.d.ts","../../../node_modules/media-tracks/dist/video-rendition-list.d.ts","../../../node_modules/media-tracks/dist/audio-rendition-list.d.ts","../../../node_modules/media-tracks/dist/mixin.d.ts","../../../node_modules/media-tracks/dist/track-event.d.ts","../../../node_modules/media-tracks/dist/rendition-event.d.ts","../../../node_modules/media-tracks/dist/index.d.ts","../../mux-video/dist/types/index.d.ts","../src/utils.ts","../src/helpers.ts","../src/types.d.ts","../src/errors.ts","../../../node_modules/media-chrome/dist/utils/template-parts.d.ts","../../../node_modules/media-chrome/dist/media-theme-element.d.ts","../src/html.ts","../../../node_modules/media-chrome/dist/constants.d.ts","../../../node_modules/media-chrome/dist/labels/labels.d.ts","../../../node_modules/media-chrome/dist/utils/time.d.ts","../../../node_modules/media-chrome/dist/media-chrome-button.d.ts","../../../node_modules/media-chrome/dist/media-airplay-button.d.ts","../../../node_modules/media-chrome/dist/media-chrome-menu-item.d.ts","../../../node_modules/media-chrome/dist/media-chrome-menu.d.ts","../../../node_modules/media-chrome/dist/media-audio-track-menu.d.ts","../../../node_modules/media-chrome/dist/media-chrome-menu-button.d.ts","../../../node_modules/media-chrome/dist/media-audio-track-menu-button.d.ts","../../../node_modules/media-chrome/dist/media-captions-button.d.ts","../../../node_modules/media-chrome/dist/media-captions-menu.d.ts","../../../node_modules/media-chrome/dist/media-captions-menu-button.d.ts","../../../node_modules/media-chrome/dist/media-cast-button.d.ts","../../../node_modules/media-chrome/dist/media-chrome-dialog.d.ts","../../../node_modules/media-chrome/dist/media-chrome-range.d.ts","../../../node_modules/media-chrome/dist/media-control-bar.d.ts","../../../node_modules/media-chrome/dist/media-container.d.ts","../../../node_modules/media-chrome/dist/utils/attribute-token-list.d.ts","../../../node_modules/media-chrome/dist/media-controller.d.ts","../../../node_modules/media-chrome/dist/media-text-display.d.ts","../../../node_modules/media-chrome/dist/media-duration-display.d.ts","../../../node_modules/media-chrome/dist/media-fullscreen-button.d.ts","../../../node_modules/media-chrome/dist/media-gesture-receiver.d.ts","../../../node_modules/media-chrome/dist/media-live-button.d.ts","../../../node_modules/media-chrome/dist/media-loading-indicator.d.ts","../../../node_modules/media-chrome/dist/media-mute-button.d.ts","../../../node_modules/media-chrome/dist/media-pip-button.d.ts","../../../node_modules/media-chrome/dist/media-playback-rate-button.d.ts","../../../node_modules/media-chrome/dist/media-playback-rate-menu.d.ts","../../../node_modules/media-chrome/dist/media-playback-rate-menu-button.d.ts","../../../node_modules/media-chrome/dist/media-play-button.d.ts","../../../node_modules/media-chrome/dist/media-poster-image.d.ts","../../../node_modules/media-chrome/dist/media-preview-chapter-display.d.ts","../../../node_modules/media-chrome/dist/media-preview-thumbnail.d.ts","../../../node_modules/media-chrome/dist/media-preview-time-display.d.ts","../../../node_modules/media-chrome/dist/media-rendition-menu.d.ts","../../../node_modules/media-chrome/dist/media-rendition-menu-button.d.ts","../../../node_modules/media-chrome/dist/media-seek-backward-button.d.ts","../../../node_modules/media-chrome/dist/media-seek-forward-button.d.ts","../../../node_modules/media-chrome/dist/media-settings-menu.d.ts","../../../node_modules/media-chrome/dist/media-settings-menu-button.d.ts","../../../node_modules/media-chrome/dist/media-settings-menu-item.d.ts","../../../node_modules/media-chrome/dist/media-time-display.d.ts","../../../node_modules/media-chrome/dist/media-time-range.d.ts","../../../node_modules/media-chrome/dist/media-volume-range.d.ts","../../../node_modules/media-chrome/dist/index.d.ts","../../../node_modules/media-chrome/dist/experimental/media-chrome-listbox.d.ts","../../../node_modules/media-chrome/dist/experimental/media-chrome-option.d.ts","../../../node_modules/media-chrome/dist/experimental/media-chrome-selectmenu.d.ts","../../../node_modules/media-chrome/dist/experimental/media-captions-listbox.d.ts","../../../node_modules/media-chrome/dist/experimental/media-captions-selectmenu.d.ts","../../../node_modules/media-chrome/dist/experimental/media-playback-rate-listbox.d.ts","../../../node_modules/media-chrome/dist/experimental/media-playback-rate-selectmenu.d.ts","../../../node_modules/media-chrome/dist/experimental/media-rendition-listbox.d.ts","../../../node_modules/media-chrome/dist/experimental/media-rendition-selectmenu.d.ts","../../../node_modules/media-chrome/dist/experimental/media-audio-track-listbox.d.ts","../../../node_modules/media-chrome/dist/experimental/media-audio-track-selectmenu.d.ts","../../../node_modules/media-chrome/dist/experimental/index.d.ts","../src/logger.ts","../src/video-api.ts","../src/template.ts","../src/themes/gerwig/index.ts","../src/index.ts","../src/themes/classic/index.ts","../../../node_modules/media-chrome/dist/themes/microvideo.d.ts","../src/themes/microvideo/index.ts","../../../node_modules/media-chrome/dist/themes/minimal.d.ts","../src/themes/minimal/index.ts","../../../types/media-chrome.d.ts","../../../node_modules/media-tracks/dist/global.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"f3d4da15233e593eacb3965cde7960f3fddf5878528d882bcedd5cbaba0193c7","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},"1f03b495671c3a1bd24510f38b8947f0991dfd6bf0278c68eca14af15b306e1f",{"version":"4f052f41a9c3ce4ef8a8bf182b4f50bb749a094ab64a844aec7fd27adbbadf0b","signature":"2f39ccc3f2cad7f2a1e0ad14a744877ed08dae4ae75510109ac981ceb783b566"},{"version":"3426bcaffeb3d9692d601a0920e8b6f38cccc6af7858f31e7891d769d1057782","signature":"76bacedec1ded2ce618fb32e75a6635d6daee6d03873f6ecc410300fac829479"},{"version":"6e3c93c4eab330644b5db7685b1042f321d7a27e5784cf62f49c5017658e17c0","signature":"9450e6f3042e95f538755415029c8c216cd45850c48f866903a2b9d7e1f7c428"},{"version":"5b5c872830a799ebdd42d46b0554ac3ec447dda8e96cbe30e6f55dfabcf224b1","affectsGlobalScope":true},"92361bb81bc685fd927aa2c6131a0a5e5c5e4a4e3c22ea1c25ce0d18d81a0f03","c13fb8c7fdb84f3c59470c672220c380ac26ffb099721ccebba3c53971cb700d","de64daa4e510abaaf4b4970c6dd37e39c3b8a263cccbeb80a41c69ae5a2a34ba","f123621e4c89348517687ab1126e793637223b3f0d9b0be05f336ace6bc942d4","19afd7f4812facaa313356113070795a2fe90fcef4bfe6462db0dcbc503c92f1","dccea7b665fe08ed006acd191a7e68123ba7ec49848ac7c28a164962bf21254e","475bbd0b264e31b886ea4fd614162662c9f6a391a8fa29d2c24a2f3ac88b48ab","1ce9bee7c394636bf6eeba7d1aca1d56983691a1b4a756c04c9c1d7032bc5e91","2ed351b90f48ecae9c627d41e2614c6a4fe670f958e8a5a5d3bb4bc21980bdb6","8f358619bbe2b132a373c5e8381018bb1f11f55dbac8cb84c380d5279f18eb75","ba0b6859e73b5fb85f18160a3b0d741968b1c4122fdd3436398dc99a6a9736c9","9979bad516454ac2aaff1756fc7f664ca6ccfdd9b4077f306e99df3033edf0a2","323cfa8826348d6f5269abeed193b53c1ee351a9c178858bce4dee6e9b6c3ac9","24354cb3bc1d897f8321bce628352612d35d92a79dba42e6609f7f5ec7d3a697","2ad77fd12d9bf99057909e40fecb502cb4429c617161f373339f294dfaa5d6f5","8e4de702297e7c9173982f2e1af6bb29b5a0251811ac12de6beb48dba2288a9f","b3b2e1206c3037779459c39c896f282e22edb992458a118137066807f8dbb899","d86abfe8b121d0296f860e2165d243a46895e6a7fd089bc7fff4e779131acc15","f9955a6b47c6f2608087b111dca772554ef89d1ed302990104574f7cee41cb05","710bfef6f0be756ddb857985b7dd5d0cc831c67b6bdfbd1179b7dc4457819ff7",{"version":"75c951092645b419a9de6880510ef40c3dd241ac0f6c6a5cd4b611ee61a92b81","affectsGlobalScope":true},{"version":"049a05facebcdf7342c8c0860b10df92f4538e50613c0c4b0182643a27a5124d","signature":"878f63b8be70a52e10be54f069a5877c3872e007655a36bc1303d8c2005cbc4e"},{"version":"cbf0e9ba7c8cbe43baa3fe9d9064feffe7f4797998de97e89e66c7429e151a0b","signature":"df74973a1543e7afb93d66eb338ff92b59ebf58e2b8c9d1702a62c7677332a2f"},"b82c024d4cc6e52bb9a1a9732889fdad16649f26d94751c1eacd27e7681e060c",{"version":"9cb3fbea331540490d8fcca6fb3f59f3ffee64e35f0be9d20df6fdc822d8df5c","signature":"6edd144af756722c0726455bfc21278c0268afc572beda1bafe12cf1a49a5119"},"6775df6b9852c7af5dbdc7ae64a0865f0b699b0927074a610261852c58927646","b69bc6279522c19db5564fdccfaec94d7dd06781a2a908a9986b766bddc91a83",{"version":"1f0d49878997040a20e3896bb62c289bd98a8db2e9c5ac33f4a4e9ee128692c8","signature":"ccbaf9d76cdefb83c7e2d168fc25e063cc02ba62154c50377c141f29c6e81c77"},"4ee368e7c5a6ab58c3aad36d949cb83899b038ec2776c990d1c43ead88a2caea","1bca2772bfe6da518ab061f96c01d7d71485b9afe80ea04048d468b6f081889c","99e011a75eb8324b9b74758f5dea28ca280125c7faa8a276e9c44d1b16927451","779582ae7e3e16d96393d0ab1048188cd06eb2077127435b6cd482cceb7e6a3e","720bb96d9d1eeb678ec0cd05356b525772ecfe7823c76d11e678bfe3b396c472","3aba0c6bc9d29325b524171967f5835eb416fad617afcb2437b3b367dd9edaa0","a1ab22b1c8c5c7008e25685336e20ae035618e8fb8fe41f5ddb9333285f4651d","9e4133fe0a7d34a9a923f926c334e7e79dd2aff5ea5399791673088db588c34d","4bc94311c1c1701cfddbcf1742263c574569189030d847d2c05b6b6fa6f4b5b9","a8f4bd4ac4a54a0a445e7cb7c162172ae9b61c6294135b3c4769547501cbd54d","1caf9e59fb74032a9c1b48a4ad9cfb67bc870a51eff0c5459225bfd9adc92356","01bb00da869f5221550f426740073772b210dcc516adc2eb18a7850b5ae77603","673f1037fc38aeea081b6db2dfc7cadbd0cfccdf339e07e8885be6f4c56f403e","b40cae511027637a40e3bfee7fb80d3ae9b43ad05c86633f88b161a66faae53d","1f2e2d9d68590703908078c56ffe35377dc1dd5d4175d4eabaac50fa041bea6d","03233c4fbac44c6e3b6cc95c6da30931b56680acdc15981426f4bd92a2620e2c","3d45de32dd9a40289168a5dd02723a1bef365cf1ad181238d4cb5c0c8d251b15","e1ddcc2a738c6e7b236c6952c6d05d32ffc0ec5abb71ce50bfbe280ccba84f7b","af6673ff7d61e468206445654735d6d75de5fd4df5a867ed34fc48c76105f534","7426f835d218d98ebf61906685075cbc64572c129500ac9d77a62f9228038d25","61fe41f126c499a22b4ccb031402298d80d85e581fc491b45dadb916c45858d7","e02cb6cd62d5c1b91a37fc85dc4bf6d4a9ada21d43063fe4c3350544e804c5e5","46405387737f0730b5efa6a271386a0357bf833c0940dfe7023fcd796e3eb269","5944b5e138f0bfc9d8632ae755447a222ee1bae5e691f95f964155c742e7fc55","21a74057837664858b9e501dce325ea2c16c4009a3f8fa03841155182081eaef","163123dd1f14c0c3216ed7d67601c6fb71e369c72643c9864a23f9d7cf2ca8bb","1bea2c7ec5efef5f89cc6b40de1029b22e959ade5364ab8af32cce741a160a93","0d8f583a1845b587b219aaeb26c964b20f5dd06e3cbd173de3fa883cded0a2e8","fa22a5101aba0c01f6d17b0840eade09ed15080a520a365303b5a2bd5b5d251d","51d97696ce31cd3ea5b591f873a61cceddd1c248af712a66349b984fd503d1ef","6acd7661b619a087f5cb5d35a8318602f1c8881a123556fe42151c40c54e3c56","a18c0c85734df82f49e58da49ecdfba83c7a9b2eec84ad1ebc4b990ac2c21c69","d915f8caea7edb7cf74c66acc25f2542f204e9681e0adeda6ecb37f06bb8565c","43fdfcf05f404cde62f822af161d8b63d9c10d6f87b50c2f72cdfc19172c1ff9","15aa0c97eeb7e96e90ab1a2bd6322a2c77732ee5d3b0e673f3089f6ee2025e00","fdc69fed0d27eb9e587a5e239a0b2cd395d3db867c640acfabd9b15eabe40349","bc4fa204e48c9a9adb956be3be2b79c5d50299588de315728c0b1c96fcafbd5c","9201486d55dfcc5d0d054e3881b5e734fb7581e99b8e44376895615b22c2a1ad","0c044bac5d0f050328792a948845695913878ea72e25eeef980ef7774a85339e","d5baeacd8b2a19238067bb8dd2349bb7b21bd4f483a3cf3a513a1da8845a858e","db1ac1bb7811b17a48b65047d98e8e016029438215e11107ccd507497c0f1881","850366d990f24c550519e340c4d83723e8556bcd9adfc8c2ee3c7ec6bef3a56f","033f8bdc70a52f235cabf7bdc8defb3ba1538bc7b007d925368d96b563e1492d","021cf30079a41551deca6cf22a6e6447e98e3bac50254c7e610c97428f969285","e3770b52888f9155bb73fb1864703cadbbd93960b7bb3cfb3093c109cbb1b7eb","5e84c097e89491388284a6c629c8321fa07a7823367065c9399afa159b69f717","c37b42f3b5d052d9042d87c36ebed9eeacaef18115a8343c6a81526ac2bd32fc","2481f7e187c6b84300b5139e79c2119eea40034d853eb15ca95fdeb86dda635c","de0a1dd63b44f8aac7859330a0ac0d1e050e58fe898733a046bfe4969c300d50","553c002ab2998aa64cff676ef39ed54e557c793ba22a9d3cbf8a698dd0dde6aa","848aa410ea954835a59e06986c92c987166eff642b7c59b3232807a0a82b52f1","2391afe5ddc0ae68b9a117ed5a1a6b26f5ba484524edeb5108a6671bc4da41ab","39ed86c3b1a04255e4edee466f35cad837b6125bcb0930291095533265a0ccc4","1ce3c53099fbde6273c6ff4c774b2402a31160085c9882a3e803a0fd2a84e3d5","21e4691d6dfa0155d8e11b30a32231f6e33d684cbd61dd7499392b39fd9c68e5","98803688adaa2230d90a3514754aca936b3e4df1915475b6d4a0a65e141be8c3","9272ff556abd50bb2dcdc71021fffea831a45f0c4169bec6f4ada3e9dc01b494","b96a043c9943dba15c1c263666730efaf29ad8fb5c33479173bda6329da158cc","19004996c8f722db5a158a505de181ce42884d780ff2e1307e4c1c43b5684fcc",{"version":"a371b7846a2a662db085c999fa5bb56f224c64d50b55cd58dacbfd3cd2ad9859","signature":"83d5cc8265fa4ee195cbdb8733a6a7b631dee19e9d4a93f2b4bc796a4595e68f"},{"version":"5ec228df295ad74d664f76408036a7873448ac1560b079ade307b7dc33b93b30","signature":"fba3d6b94f2d8189f7b01b3577929a1b4972cd288293643f2c1fe1d5b153ae40"},{"version":"5e8d086faebf302242c4b1e2ac699edbfaa35c16a8025f3930ede812ec836e6e","signature":"23d71dc252dd8a5894d181e999179ae148e19d28f623917d3dfd31235e6d6e5b"},{"version":"b1f1e20bfa92862e1790b496a0ac20d191971cd8bf8e83deaed9bc3680d1db91","signature":"f6bda70e10a8b240d52a4b7a8f488cef7768d9c0d7c13677f7982bf1610e6016"},{"version":"79ef50f375d905aea38a4ece11e6491b11d67ae5a04ce06c093a3726abe08bbd","signature":"59d063e58c93a030096cdb62e98e1e50abdf36225cd89079ed79b3f955fe7f06"},{"version":"af759f1f81d83258d76fe571458a5825c99a94a43c687ec01e28d2467dd97333","signature":"a505736b87981894f9f6799b08f352b61ead91f28a210a6193d1d764e19b4de0"},"4957cadd31fecc557bd0c10bf344605481abfaab0ef5db112c27a07ce8dc0a8b","3d85a6c54db2ff36573de0ae16f210b851670974211b38fb44d5fe8012477e5e","f17099e5ddd98ee5ad0cc1ecb29f47c8cb44f7fdc8f6250185ffe443aae725b2","6d44385180f00eceaf727b26755cc3e0446410690d782c8b34501652655b720f","3cf4c7825a6c0ef1965e8906b85844aafdcdda9d95c8b4bcfcb3a20811cfd0b1",{"version":"2c512f7b30f704093ae23b2591a6e9e9cc852006be0bf8e4f770788d88b17796","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"jsx":2,"module":5,"noImplicitAny":true,"outDir":"./types","rootDir":"../src","skipLibCheck":false,"sourceMap":true,"strict":true,"target":6},"fileIdsList":[[116,117,118,119,120,121,122,123,124,125,126],[116],[118],[87,116],[69,70,71,72,73,74,75,76,78,79,80,81,82,83,84,85,88,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114],[72],[77],[75],[74],[86,87],[89],[72,87],[77,87],[75,87],[66],[84],[67],[52,53],[53],[52],[50,51,53,54,55,56],[49,50,51,52,53,54,55,56,57,58,59],[49,52],[50,53],[49,50],[50],[49],[37,38],[61,62,64],[47,62],[37,67],[37,41,47,61,62,63,64,65,67,68,69,86,127,128,129,130,131,138],[62,63,64],[37],[39,47,62,63,64,67,68],[134],[136],[47,61,63],[37,61,62,128],[41,47,48,60],[41],[40,41,42,43,44,45,46],[44],[42,44],[40,41,43],[38],[61,64],[47],[40,41,47,61,63,127,129,131,138],[64],[39,64,67,68],[37,60,61]],"referencedMap":[[127,1],[125,2],[126,3],[119,2],[120,3],[121,4],[122,3],[123,2],[124,3],[115,5],[73,6],[78,7],[76,8],[79,6],[81,7],[80,8],[82,6],[77,6],[74,8],[75,9],[88,10],[90,11],[91,6],[93,6],[95,6],[96,6],[100,6],[97,12],[99,13],[98,14],[102,11],[104,11],[106,7],[105,8],[107,6],[108,6],[110,7],[111,9],[109,8],[67,15],[112,11],[113,16],[114,16],[134,17],[136,17],[56,18],[54,19],[53,20],[139,21],[60,22],[57,21],[59,23],[58,24],[55,25],[51,26],[50,27],[39,28],[65,29],[63,30],[68,31],[132,32],[128,33],[38,34],[130,35],[133,31],[131,31],[135,36],[137,37],[64,38],[129,39],[61,40],[42,41],[47,42],[46,43],[45,44],[44,45]],"exportedModulesMap":[[127,1],[125,2],[126,3],[119,2],[120,3],[121,4],[122,3],[123,2],[124,3],[115,5],[73,6],[78,7],[76,8],[79,6],[81,7],[80,8],[82,6],[77,6],[74,8],[75,9],[88,10],[90,11],[91,6],[93,6],[95,6],[96,6],[100,6],[97,12],[99,13],[98,14],[102,11],[104,11],[106,7],[105,8],[107,6],[108,6],[110,7],[111,9],[109,8],[67,15],[112,11],[113,16],[114,16],[134,17],[136,17],[56,18],[54,19],[53,20],[139,21],[60,22],[57,21],[59,23],[58,24],[55,25],[51,26],[50,27],[39,46],[65,47],[63,48],[68,17],[132,49],[128,50],[38,34],[130,51],[133,17],[131,17],[135,36],[137,37],[64,38],[129,52],[61,40],[42,41],[47,42],[46,43],[45,44],[44,45]],"semanticDiagnosticsPerFile":[48,41,69,127,125,126,119,120,116,117,118,121,122,123,124,115,70,73,78,76,79,81,80,82,72,83,77,74,75,84,86,85,88,90,91,92,93,94,95,96,100,97,99,98,101,102,103,104,106,105,107,108,110,111,109,89,67,112,113,114,134,136,87,66,71,56,52,54,53,139,60,57,59,58,55,49,51,50,40,7,8,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,36,35,32,33,34,1,10,9,39,65,63,68,132,128,38,37,130,133,131,135,137,64,62,129,61,43,42,47,46,45,44,138],"latestChangedDtsFile":"./types/themes/minimal/index.d.ts"},"version":"4.9.4"}
1
+ {"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2019.full.d.ts","../src/polyfills/index.ts","../src/media-chrome/dialog.ts","../src/dialog.ts","../../../node_modules/mux-embed/dist/types/mux-embed.d.ts","../../../node_modules/hls.js/dist/hls.js.d.ts","../../playback-core/dist/types/hls.d.ts","../../playback-core/dist/types/errors.d.ts","../../playback-core/dist/types/types.d.ts","../../playback-core/dist/types/text-tracks.d.ts","../../playback-core/dist/types/pdt.d.ts","../../playback-core/dist/types/index.d.ts","../../../node_modules/custom-media-element/custom-media-element.d.ts","../../../node_modules/media-tracks/dist/video-rendition.d.ts","../../../node_modules/media-tracks/dist/video-track.d.ts","../../../node_modules/media-tracks/dist/video-track-list.d.ts","../../../node_modules/media-tracks/dist/audio-rendition.d.ts","../../../node_modules/media-tracks/dist/audio-track.d.ts","../../../node_modules/media-tracks/dist/audio-track-list.d.ts","../../../node_modules/media-tracks/dist/video-rendition-list.d.ts","../../../node_modules/media-tracks/dist/audio-rendition-list.d.ts","../../../node_modules/media-tracks/dist/mixin.d.ts","../../../node_modules/media-tracks/dist/track-event.d.ts","../../../node_modules/media-tracks/dist/rendition-event.d.ts","../../../node_modules/media-tracks/dist/index.d.ts","../../mux-video/dist/types/index.d.ts","../src/utils.ts","../src/helpers.ts","../src/types.d.ts","../src/errors.ts","../../../node_modules/media-chrome/dist/utils/template-parts.d.ts","../../../node_modules/media-chrome/dist/media-theme-element.d.ts","../src/html.ts","../../../node_modules/media-chrome/dist/constants.d.ts","../../../node_modules/media-chrome/dist/labels/labels.d.ts","../../../node_modules/media-chrome/dist/utils/time.d.ts","../../../node_modules/media-chrome/dist/media-chrome-button.d.ts","../../../node_modules/media-chrome/dist/media-airplay-button.d.ts","../../../node_modules/media-chrome/dist/media-chrome-menu-item.d.ts","../../../node_modules/media-chrome/dist/media-chrome-menu.d.ts","../../../node_modules/media-chrome/dist/media-audio-track-menu.d.ts","../../../node_modules/media-chrome/dist/media-chrome-menu-button.d.ts","../../../node_modules/media-chrome/dist/media-audio-track-menu-button.d.ts","../../../node_modules/media-chrome/dist/media-captions-button.d.ts","../../../node_modules/media-chrome/dist/media-captions-menu.d.ts","../../../node_modules/media-chrome/dist/media-captions-menu-button.d.ts","../../../node_modules/media-chrome/dist/media-cast-button.d.ts","../../../node_modules/media-chrome/dist/media-chrome-dialog.d.ts","../../../node_modules/media-chrome/dist/media-chrome-range.d.ts","../../../node_modules/media-chrome/dist/media-control-bar.d.ts","../../../node_modules/media-chrome/dist/media-container.d.ts","../../../node_modules/media-chrome/dist/utils/attribute-token-list.d.ts","../../../node_modules/media-chrome/dist/media-controller.d.ts","../../../node_modules/media-chrome/dist/media-text-display.d.ts","../../../node_modules/media-chrome/dist/media-duration-display.d.ts","../../../node_modules/media-chrome/dist/media-fullscreen-button.d.ts","../../../node_modules/media-chrome/dist/media-gesture-receiver.d.ts","../../../node_modules/media-chrome/dist/media-live-button.d.ts","../../../node_modules/media-chrome/dist/media-loading-indicator.d.ts","../../../node_modules/media-chrome/dist/media-mute-button.d.ts","../../../node_modules/media-chrome/dist/media-pip-button.d.ts","../../../node_modules/media-chrome/dist/media-playback-rate-button.d.ts","../../../node_modules/media-chrome/dist/media-playback-rate-menu.d.ts","../../../node_modules/media-chrome/dist/media-playback-rate-menu-button.d.ts","../../../node_modules/media-chrome/dist/media-play-button.d.ts","../../../node_modules/media-chrome/dist/media-poster-image.d.ts","../../../node_modules/media-chrome/dist/media-preview-chapter-display.d.ts","../../../node_modules/media-chrome/dist/media-preview-thumbnail.d.ts","../../../node_modules/media-chrome/dist/media-preview-time-display.d.ts","../../../node_modules/media-chrome/dist/media-rendition-menu.d.ts","../../../node_modules/media-chrome/dist/media-rendition-menu-button.d.ts","../../../node_modules/media-chrome/dist/media-seek-backward-button.d.ts","../../../node_modules/media-chrome/dist/media-seek-forward-button.d.ts","../../../node_modules/media-chrome/dist/media-settings-menu.d.ts","../../../node_modules/media-chrome/dist/media-settings-menu-button.d.ts","../../../node_modules/media-chrome/dist/media-settings-menu-item.d.ts","../../../node_modules/media-chrome/dist/media-time-display.d.ts","../../../node_modules/media-chrome/dist/media-time-range.d.ts","../../../node_modules/media-chrome/dist/media-volume-range.d.ts","../../../node_modules/media-chrome/dist/index.d.ts","../../../node_modules/media-chrome/dist/experimental/media-chrome-listbox.d.ts","../../../node_modules/media-chrome/dist/experimental/media-chrome-option.d.ts","../../../node_modules/media-chrome/dist/experimental/media-chrome-selectmenu.d.ts","../../../node_modules/media-chrome/dist/experimental/media-captions-listbox.d.ts","../../../node_modules/media-chrome/dist/experimental/media-captions-selectmenu.d.ts","../../../node_modules/media-chrome/dist/experimental/media-playback-rate-listbox.d.ts","../../../node_modules/media-chrome/dist/experimental/media-playback-rate-selectmenu.d.ts","../../../node_modules/media-chrome/dist/experimental/media-rendition-listbox.d.ts","../../../node_modules/media-chrome/dist/experimental/media-rendition-selectmenu.d.ts","../../../node_modules/media-chrome/dist/experimental/media-audio-track-listbox.d.ts","../../../node_modules/media-chrome/dist/experimental/media-audio-track-selectmenu.d.ts","../../../node_modules/media-chrome/dist/experimental/index.d.ts","../src/logger.ts","../src/video-api.ts","../src/template.ts","../src/themes/gerwig/index.ts","../src/index.ts","../src/themes/classic/index.ts","../../../node_modules/media-chrome/dist/themes/microvideo.d.ts","../src/themes/microvideo/index.ts","../../../node_modules/media-chrome/dist/themes/minimal.d.ts","../src/themes/minimal/index.ts","../../../types/media-chrome.d.ts","../../../node_modules/media-tracks/dist/global.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"f3d4da15233e593eacb3965cde7960f3fddf5878528d882bcedd5cbaba0193c7","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},"1f03b495671c3a1bd24510f38b8947f0991dfd6bf0278c68eca14af15b306e1f",{"version":"4f052f41a9c3ce4ef8a8bf182b4f50bb749a094ab64a844aec7fd27adbbadf0b","signature":"2f39ccc3f2cad7f2a1e0ad14a744877ed08dae4ae75510109ac981ceb783b566"},{"version":"3426bcaffeb3d9692d601a0920e8b6f38cccc6af7858f31e7891d769d1057782","signature":"76bacedec1ded2ce618fb32e75a6635d6daee6d03873f6ecc410300fac829479"},{"version":"6e3c93c4eab330644b5db7685b1042f321d7a27e5784cf62f49c5017658e17c0","signature":"9450e6f3042e95f538755415029c8c216cd45850c48f866903a2b9d7e1f7c428"},{"version":"5b5c872830a799ebdd42d46b0554ac3ec447dda8e96cbe30e6f55dfabcf224b1","affectsGlobalScope":true},"92361bb81bc685fd927aa2c6131a0a5e5c5e4a4e3c22ea1c25ce0d18d81a0f03","c13fb8c7fdb84f3c59470c672220c380ac26ffb099721ccebba3c53971cb700d","de64daa4e510abaaf4b4970c6dd37e39c3b8a263cccbeb80a41c69ae5a2a34ba","f123621e4c89348517687ab1126e793637223b3f0d9b0be05f336ace6bc942d4","19afd7f4812facaa313356113070795a2fe90fcef4bfe6462db0dcbc503c92f1","dccea7b665fe08ed006acd191a7e68123ba7ec49848ac7c28a164962bf21254e","475bbd0b264e31b886ea4fd614162662c9f6a391a8fa29d2c24a2f3ac88b48ab","1ce9bee7c394636bf6eeba7d1aca1d56983691a1b4a756c04c9c1d7032bc5e91","2ed351b90f48ecae9c627d41e2614c6a4fe670f958e8a5a5d3bb4bc21980bdb6","8f358619bbe2b132a373c5e8381018bb1f11f55dbac8cb84c380d5279f18eb75","ba0b6859e73b5fb85f18160a3b0d741968b1c4122fdd3436398dc99a6a9736c9","9979bad516454ac2aaff1756fc7f664ca6ccfdd9b4077f306e99df3033edf0a2","323cfa8826348d6f5269abeed193b53c1ee351a9c178858bce4dee6e9b6c3ac9","24354cb3bc1d897f8321bce628352612d35d92a79dba42e6609f7f5ec7d3a697","2ad77fd12d9bf99057909e40fecb502cb4429c617161f373339f294dfaa5d6f5","8e4de702297e7c9173982f2e1af6bb29b5a0251811ac12de6beb48dba2288a9f","b3b2e1206c3037779459c39c896f282e22edb992458a118137066807f8dbb899","d86abfe8b121d0296f860e2165d243a46895e6a7fd089bc7fff4e779131acc15","f9955a6b47c6f2608087b111dca772554ef89d1ed302990104574f7cee41cb05","710bfef6f0be756ddb857985b7dd5d0cc831c67b6bdfbd1179b7dc4457819ff7",{"version":"75c951092645b419a9de6880510ef40c3dd241ac0f6c6a5cd4b611ee61a92b81","affectsGlobalScope":true},{"version":"049a05facebcdf7342c8c0860b10df92f4538e50613c0c4b0182643a27a5124d","signature":"878f63b8be70a52e10be54f069a5877c3872e007655a36bc1303d8c2005cbc4e"},{"version":"cbf0e9ba7c8cbe43baa3fe9d9064feffe7f4797998de97e89e66c7429e151a0b","signature":"df74973a1543e7afb93d66eb338ff92b59ebf58e2b8c9d1702a62c7677332a2f"},"b82c024d4cc6e52bb9a1a9732889fdad16649f26d94751c1eacd27e7681e060c",{"version":"9cb3fbea331540490d8fcca6fb3f59f3ffee64e35f0be9d20df6fdc822d8df5c","signature":"6edd144af756722c0726455bfc21278c0268afc572beda1bafe12cf1a49a5119"},"6775df6b9852c7af5dbdc7ae64a0865f0b699b0927074a610261852c58927646","b69bc6279522c19db5564fdccfaec94d7dd06781a2a908a9986b766bddc91a83",{"version":"1f0d49878997040a20e3896bb62c289bd98a8db2e9c5ac33f4a4e9ee128692c8","signature":"ccbaf9d76cdefb83c7e2d168fc25e063cc02ba62154c50377c141f29c6e81c77"},"4ee368e7c5a6ab58c3aad36d949cb83899b038ec2776c990d1c43ead88a2caea","1bca2772bfe6da518ab061f96c01d7d71485b9afe80ea04048d468b6f081889c","99e011a75eb8324b9b74758f5dea28ca280125c7faa8a276e9c44d1b16927451","779582ae7e3e16d96393d0ab1048188cd06eb2077127435b6cd482cceb7e6a3e","720bb96d9d1eeb678ec0cd05356b525772ecfe7823c76d11e678bfe3b396c472","3aba0c6bc9d29325b524171967f5835eb416fad617afcb2437b3b367dd9edaa0","a1ab22b1c8c5c7008e25685336e20ae035618e8fb8fe41f5ddb9333285f4651d","9e4133fe0a7d34a9a923f926c334e7e79dd2aff5ea5399791673088db588c34d","4bc94311c1c1701cfddbcf1742263c574569189030d847d2c05b6b6fa6f4b5b9","a8f4bd4ac4a54a0a445e7cb7c162172ae9b61c6294135b3c4769547501cbd54d","1caf9e59fb74032a9c1b48a4ad9cfb67bc870a51eff0c5459225bfd9adc92356","01bb00da869f5221550f426740073772b210dcc516adc2eb18a7850b5ae77603","673f1037fc38aeea081b6db2dfc7cadbd0cfccdf339e07e8885be6f4c56f403e","b40cae511027637a40e3bfee7fb80d3ae9b43ad05c86633f88b161a66faae53d","1f2e2d9d68590703908078c56ffe35377dc1dd5d4175d4eabaac50fa041bea6d","03233c4fbac44c6e3b6cc95c6da30931b56680acdc15981426f4bd92a2620e2c","3d45de32dd9a40289168a5dd02723a1bef365cf1ad181238d4cb5c0c8d251b15","e1ddcc2a738c6e7b236c6952c6d05d32ffc0ec5abb71ce50bfbe280ccba84f7b","af6673ff7d61e468206445654735d6d75de5fd4df5a867ed34fc48c76105f534","7426f835d218d98ebf61906685075cbc64572c129500ac9d77a62f9228038d25","61fe41f126c499a22b4ccb031402298d80d85e581fc491b45dadb916c45858d7","e02cb6cd62d5c1b91a37fc85dc4bf6d4a9ada21d43063fe4c3350544e804c5e5","46405387737f0730b5efa6a271386a0357bf833c0940dfe7023fcd796e3eb269","5944b5e138f0bfc9d8632ae755447a222ee1bae5e691f95f964155c742e7fc55","21a74057837664858b9e501dce325ea2c16c4009a3f8fa03841155182081eaef","163123dd1f14c0c3216ed7d67601c6fb71e369c72643c9864a23f9d7cf2ca8bb","1bea2c7ec5efef5f89cc6b40de1029b22e959ade5364ab8af32cce741a160a93","0d8f583a1845b587b219aaeb26c964b20f5dd06e3cbd173de3fa883cded0a2e8","fa22a5101aba0c01f6d17b0840eade09ed15080a520a365303b5a2bd5b5d251d","51d97696ce31cd3ea5b591f873a61cceddd1c248af712a66349b984fd503d1ef","6acd7661b619a087f5cb5d35a8318602f1c8881a123556fe42151c40c54e3c56","a18c0c85734df82f49e58da49ecdfba83c7a9b2eec84ad1ebc4b990ac2c21c69","d915f8caea7edb7cf74c66acc25f2542f204e9681e0adeda6ecb37f06bb8565c","43fdfcf05f404cde62f822af161d8b63d9c10d6f87b50c2f72cdfc19172c1ff9","15aa0c97eeb7e96e90ab1a2bd6322a2c77732ee5d3b0e673f3089f6ee2025e00","fdc69fed0d27eb9e587a5e239a0b2cd395d3db867c640acfabd9b15eabe40349","bc4fa204e48c9a9adb956be3be2b79c5d50299588de315728c0b1c96fcafbd5c","9201486d55dfcc5d0d054e3881b5e734fb7581e99b8e44376895615b22c2a1ad","0c044bac5d0f050328792a948845695913878ea72e25eeef980ef7774a85339e","d5baeacd8b2a19238067bb8dd2349bb7b21bd4f483a3cf3a513a1da8845a858e","db1ac1bb7811b17a48b65047d98e8e016029438215e11107ccd507497c0f1881","850366d990f24c550519e340c4d83723e8556bcd9adfc8c2ee3c7ec6bef3a56f","033f8bdc70a52f235cabf7bdc8defb3ba1538bc7b007d925368d96b563e1492d","021cf30079a41551deca6cf22a6e6447e98e3bac50254c7e610c97428f969285","e3770b52888f9155bb73fb1864703cadbbd93960b7bb3cfb3093c109cbb1b7eb","5e84c097e89491388284a6c629c8321fa07a7823367065c9399afa159b69f717","c37b42f3b5d052d9042d87c36ebed9eeacaef18115a8343c6a81526ac2bd32fc","2481f7e187c6b84300b5139e79c2119eea40034d853eb15ca95fdeb86dda635c","de0a1dd63b44f8aac7859330a0ac0d1e050e58fe898733a046bfe4969c300d50","553c002ab2998aa64cff676ef39ed54e557c793ba22a9d3cbf8a698dd0dde6aa","848aa410ea954835a59e06986c92c987166eff642b7c59b3232807a0a82b52f1","2391afe5ddc0ae68b9a117ed5a1a6b26f5ba484524edeb5108a6671bc4da41ab","39ed86c3b1a04255e4edee466f35cad837b6125bcb0930291095533265a0ccc4","1ce3c53099fbde6273c6ff4c774b2402a31160085c9882a3e803a0fd2a84e3d5","21e4691d6dfa0155d8e11b30a32231f6e33d684cbd61dd7499392b39fd9c68e5","98803688adaa2230d90a3514754aca936b3e4df1915475b6d4a0a65e141be8c3","9272ff556abd50bb2dcdc71021fffea831a45f0c4169bec6f4ada3e9dc01b494","b96a043c9943dba15c1c263666730efaf29ad8fb5c33479173bda6329da158cc","19004996c8f722db5a158a505de181ce42884d780ff2e1307e4c1c43b5684fcc",{"version":"a371b7846a2a662db085c999fa5bb56f224c64d50b55cd58dacbfd3cd2ad9859","signature":"83d5cc8265fa4ee195cbdb8733a6a7b631dee19e9d4a93f2b4bc796a4595e68f"},{"version":"306dba672778bfb2379305b2562b078605edf0256484de5820d735a360aed462","signature":"fba3d6b94f2d8189f7b01b3577929a1b4972cd288293643f2c1fe1d5b153ae40"},{"version":"5e8d086faebf302242c4b1e2ac699edbfaa35c16a8025f3930ede812ec836e6e","signature":"23d71dc252dd8a5894d181e999179ae148e19d28f623917d3dfd31235e6d6e5b"},{"version":"b1f1e20bfa92862e1790b496a0ac20d191971cd8bf8e83deaed9bc3680d1db91","signature":"f6bda70e10a8b240d52a4b7a8f488cef7768d9c0d7c13677f7982bf1610e6016"},{"version":"79ef50f375d905aea38a4ece11e6491b11d67ae5a04ce06c093a3726abe08bbd","signature":"59d063e58c93a030096cdb62e98e1e50abdf36225cd89079ed79b3f955fe7f06"},{"version":"af759f1f81d83258d76fe571458a5825c99a94a43c687ec01e28d2467dd97333","signature":"a505736b87981894f9f6799b08f352b61ead91f28a210a6193d1d764e19b4de0"},"4957cadd31fecc557bd0c10bf344605481abfaab0ef5db112c27a07ce8dc0a8b","3d85a6c54db2ff36573de0ae16f210b851670974211b38fb44d5fe8012477e5e","f17099e5ddd98ee5ad0cc1ecb29f47c8cb44f7fdc8f6250185ffe443aae725b2","6d44385180f00eceaf727b26755cc3e0446410690d782c8b34501652655b720f","3cf4c7825a6c0ef1965e8906b85844aafdcdda9d95c8b4bcfcb3a20811cfd0b1",{"version":"2c512f7b30f704093ae23b2591a6e9e9cc852006be0bf8e4f770788d88b17796","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"jsx":2,"module":5,"noImplicitAny":true,"outDir":"./types","rootDir":"../src","skipLibCheck":false,"sourceMap":true,"strict":true,"target":6},"fileIdsList":[[116,117,118,119,120,121,122,123,124,125,126],[116],[118],[87,116],[69,70,71,72,73,74,75,76,78,79,80,81,82,83,84,85,88,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114],[72],[77],[75],[74],[86,87],[89],[72,87],[77,87],[75,87],[66],[84],[67],[52,53],[53],[52],[50,51,53,54,55,56],[49,50,51,52,53,54,55,56,57,58,59],[49,52],[50,53],[49,50],[50],[49],[37,38],[61,62,64],[47,62],[37,67],[37,41,47,61,62,63,64,65,67,68,69,86,127,128,129,130,131,138],[62,63,64],[37],[39,47,62,63,64,67,68],[134],[136],[47,61,63],[37,61,62,128],[41,47,48,60],[41],[40,41,42,43,44,45,46],[44],[42,44],[40,41,43],[38],[61,64],[47],[40,41,47,61,63,127,129,131,138],[64],[39,64,67,68],[37,60,61]],"referencedMap":[[127,1],[125,2],[126,3],[119,2],[120,3],[121,4],[122,3],[123,2],[124,3],[115,5],[73,6],[78,7],[76,8],[79,6],[81,7],[80,8],[82,6],[77,6],[74,8],[75,9],[88,10],[90,11],[91,6],[93,6],[95,6],[96,6],[100,6],[97,12],[99,13],[98,14],[102,11],[104,11],[106,7],[105,8],[107,6],[108,6],[110,7],[111,9],[109,8],[67,15],[112,11],[113,16],[114,16],[134,17],[136,17],[56,18],[54,19],[53,20],[139,21],[60,22],[57,21],[59,23],[58,24],[55,25],[51,26],[50,27],[39,28],[65,29],[63,30],[68,31],[132,32],[128,33],[38,34],[130,35],[133,31],[131,31],[135,36],[137,37],[64,38],[129,39],[61,40],[42,41],[47,42],[46,43],[45,44],[44,45]],"exportedModulesMap":[[127,1],[125,2],[126,3],[119,2],[120,3],[121,4],[122,3],[123,2],[124,3],[115,5],[73,6],[78,7],[76,8],[79,6],[81,7],[80,8],[82,6],[77,6],[74,8],[75,9],[88,10],[90,11],[91,6],[93,6],[95,6],[96,6],[100,6],[97,12],[99,13],[98,14],[102,11],[104,11],[106,7],[105,8],[107,6],[108,6],[110,7],[111,9],[109,8],[67,15],[112,11],[113,16],[114,16],[134,17],[136,17],[56,18],[54,19],[53,20],[139,21],[60,22],[57,21],[59,23],[58,24],[55,25],[51,26],[50,27],[39,46],[65,47],[63,48],[68,17],[132,49],[128,50],[38,34],[130,51],[133,17],[131,17],[135,36],[137,37],[64,38],[129,52],[61,40],[42,41],[47,42],[46,43],[45,44],[44,45]],"semanticDiagnosticsPerFile":[48,41,69,127,125,126,119,120,116,117,118,121,122,123,124,115,70,73,78,76,79,81,80,82,72,83,77,74,75,84,86,85,88,90,91,92,93,94,95,96,100,97,99,98,101,102,103,104,106,105,107,108,110,111,109,89,67,112,113,114,134,136,87,66,71,56,52,54,53,139,60,57,59,58,55,49,51,50,40,7,8,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,36,35,32,33,34,1,10,9,39,65,63,68,132,128,38,37,130,133,131,135,137,64,62,129,61,43,42,47,46,45,44,138],"latestChangedDtsFile":"./types/themes/minimal/index.d.ts"},"version":"4.9.4"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mux/mux-player",
3
- "version": "2.8.1-canary.0-735cb9b",
3
+ "version": "2.8.1-canary.0-e1a3c8d",
4
4
  "description": "An open source Mux player web component that Just Works™",
5
5
  "homepage": "https://mux.com/player",
6
6
  "keywords": [
@@ -94,8 +94,8 @@
94
94
  "publish-release": "../../scripts/publish.sh"
95
95
  },
96
96
  "dependencies": {
97
- "@mux/mux-video": "0.20.0-canary.0-735cb9b",
98
- "@mux/playback-core": "0.25.0-canary.0-735cb9b",
97
+ "@mux/mux-video": "0.20.0-canary.0-e1a3c8d",
98
+ "@mux/playback-core": "0.25.0-canary.0-e1a3c8d",
99
99
  "media-chrome": "~3.2.5"
100
100
  },
101
101
  "devDependencies": {