1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4531],{41235:function(t,e,i){var s=i(24611),a=i(86169),o=i(87749),n=i(43616),r=i(41470);let l=`<svg aria-hidden="true" viewBox="0 0 26 24"> 2 <path d="M22.13 3H3.87a.87.87 0 0 0-.87.87v13.26a.87.87 0 0 0 .87.87h3.4L9 16H5V5h16v11h-4l1.72 2h3.4a.87.87 0 0 0 .87-.87V3.87a.87.87 0 0 0-.86-.87Zm-8.75 11.44a.5.5 0 0 0-.76 0l-4.91 5.73a.5.5 0 0 0 .38.83h9.82a.501.501 0 0 0 .38-.83l-4.91-5.73Z"/> 3</svg> 4`,d=t=>{let e=t.mediaIsAirplaying?(0,n.t)("stop airplay"):(0,n.t)("start airplay");t.setAttribute("aria-label",e)};class h extends s.Z{static get observedAttributes(){return[...super.observedAttributes,o.MediaUIAttributes.MEDIA_IS_AIRPLAYING,o.MediaUIAttributes.MEDIA_AIRPLAY_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),d(this)}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),t===o.MediaUIAttributes.MEDIA_IS_AIRPLAYING&&d(this)}get mediaIsAirplaying(){return(0,r.zc)(this,o.MediaUIAttributes.MEDIA_IS_AIRPLAYING)}set mediaIsAirplaying(t){(0,r.Pj)(this,o.MediaUIAttributes.MEDIA_IS_AIRPLAYING,t)}get mediaAirplayUnavailable(){return(0,r.ST)(this,o.MediaUIAttributes.MEDIA_AIRPLAY_UNAVAILABLE)}set mediaAirplayUnavailable(t){(0,r.Lb)(this,o.MediaUIAttributes.MEDIA_AIRPLAY_UNAVAILABLE,t)}handleClick(){let t=new a.Mq.CustomEvent(o.MediaUIEvents.MEDIA_AIRPLAY_REQUEST,{composed:!0,bubbles:!0});this.dispatchEvent(t)}}h.getSlotTemplateHTML=function(t){return` 5 <style> 6 :host([${o.MediaUIAttributes.MEDIA_IS_AIRPLAYING}]) slot[name=icon] slot:not([name=exit]) { 7 display: none !important; 8 } 9 10 11 :host(:not([${o.MediaUIAttributes.MEDIA_IS_AIRPLAYING}])) slot[name=icon] slot:not([name=enter]) { 12 display: none !important; 13 } 14 15 :host([${o.MediaUIAttributes.MEDIA_IS_AIRPLAYING}]) slot[name=tooltip-enter], 16 :host(:not([${o.MediaUIAttributes.MEDIA_IS_AIRPLAYING}])) slot[name=tooltip-exit] { 17 display: none; 18 } 19 </style> 20 21 <slot name="icon"> 22 <slot name="enter">${l}</slot> 23 <slot name="exit">${l}</slot> 24 </slot> 25 `},h.getTooltipContentHTML=function(){return` 26 <slot name="tooltip-enter">${(0,n.t)("start airplay")}</slot> 27 <slot name="tooltip-exit">${(0,n.t)("stop airplay")}</slot> 28 `},a.Mq.customElements.get("media-airplay-button")||a.Mq.customElements.define("media-airplay-button",h)},44362:function(t,e,i){var s=i(24611),a=i(86169),o=i(87749),n=i(80543),r=i(43616);let l=`<svg aria-hidden="true" viewBox="0 0 26 24"> 29 <path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 0 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/> 30</svg>`,d=`<svg aria-hidden="true" viewBox="0 0 26 24"> 31 <path d="M17.73 14.09a1.4 1.4 0 0 1-1 .37 1.579 1.579 0 0 1-1.27-.58A3 3 0 0 1 15 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34A2.89 2.89 0 0 0 19 9.07a3 3 0 0 0-2.14-.78 3.14 3.14 0 0 0-2.42 1 3.91 3.91 0 0 0-.93 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.17 3.17 0 0 0 1.07-1.74l-1.4-.45c-.083.43-.3.822-.62 1.12Zm-7.22 0a1.43 1.43 0 0 1-1 .37 1.58 1.58 0 0 1-1.27-.58A3 3 0 0 1 7.76 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34a2.8
311 2.81 0 0 0-.74-1.32 2.94 2.94 0 0 0-2.13-.78 3.18 3.18 0 0 0-2.43 1 4 4 0 0 0-.92 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.23 3.23 0 0 0 1.07-1.74l-1.4-.45a2.06 2.06 0 0 1-.6 1.07Zm12.32-8.41a2.59 2.59 0 0 0-2.3-2.51C18.72 3.05 15.86 3 13 3c-2.86 0-5.72.05-7.53.17a2.59 2.59 0 0 0-2.3 2.51c-.23 4.207-.23 8.423 0 12.63a2.57 2.57 0 0 0 2.3 2.5c1.81.13 4.67.19 7.53.19 2.86 0 5.72-.06 7.53-.19a2.57 2.57 0 0 0 2.3-2.5c.23-4.207.23-8.423 0-12.63Zm-1.49 12.53a1.11 1.11 0 0 1-.91 1.11c-1.67.11-4.45.18-7.43.18-2.98 0-5.76-.07-7.43-.18a1.11 1.11 0 0 1-.91-1.11c-.21-4.14-.21-8.29 0-12.43a1.11 1.11 0 0 1 .91-1.11C7.24 4.56 10 4.49 13 4.49s5.76.07 7.43.18a1.11 1.11 0 0 1 .91 1.11c.21 4.14.21 8.29 0 12.43Z"/> 32</svg>`,h=t=>{t.setAttribute("aria-checked",(0,n.hi)(t).toString())};class c extends s.Z{static get observedAttributes(){return[...super.observedAttributes,o.MediaUIAttributes.MEDIA_SUBTITLES_LIST,o.MediaUIAttributes.MEDIA_SUBTITLES_SHOWING]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","switch"),this.setAttribute("aria-label",(0,r.t)("closed captions")),h(this)}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),t===o.MediaUIAttributes.MEDIA_SUBTITLES_SHOWING&&h(this)}get mediaSubtitlesList(){return u(this,o.MediaUIAttributes.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(t){m(this,o.MediaUIAttributes.MEDIA_SUBTITLES_LIST,t)}get mediaSubtitlesShowing(){return u(this,o.MediaUIAttributes.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(t){m(this,o.MediaUIAttributes.MEDIA_SUBTITLES_SHOWING,t)}handleClick(){this.dispatchEvent(new a.Mq.CustomEvent(o.MediaUIEvents.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}))}}c.getSlotTemplateHTML=function(t){return` 33 <style> 34 :host([aria-checked="true"]) slot[name=off] { 35 display: none !important; 36 } 37 38 39 :host(:not([aria-checked="true"])) slot[name=on] { 40 display: none !important; 41 } 42 43 :host([aria-checked="true"]) slot[name=tooltip-enable], 44 :host(:not([aria-checked="true"])) slot[name=tooltip-disable] { 45 display: none; 46 } 47 </style> 48 49 <slot name="icon"> 50 <slot name="on">${l}</slot> 51 <slot name="off">${d}</slot> 52 </slot> 53 `},c.getTooltipContentHTML=function(){return` 54 <slot name="tooltip-enable">${(0,r.t)("Enable captions")}</slot> 55 <slot name="tooltip-disable">${(0,r.t)("Disable captions")}</slot> 56 `};let u=(t,e)=>{let i=t.getAttribute(e);return i?(0,n.tm)(i):[]},m=(t,e,i)=>{if(!(null==i?void 0:i.length)){t.removeAttribute(e);return}let s=(0,n.fj)(i);t.getAttribute(e)!==s&&t.setAttribute(e,s)};a.Mq.customElements.get("media-captions-button")||a.Mq.customElements.define("media-captions-button",c)},87942:function(t,e,i){var s=i(24611),a=i(86169),o=i(87749),n=i(43616),r=i(41470);let l=t=>{let e=t.mediaIsCasting?(0,n.t)("stop casting"):(0,n.t)("start casting");t.setAttribute("aria-label",e)};class d extends s.Z{static get observedAttributes(){return[...super.observedAttributes,o.MediaUIAttributes.MEDIA_IS_CASTING,o.MediaUIAttributes.MEDIA_CAST_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),l(this)}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),t===o.MediaUIAttributes.MEDIA_IS_CASTING&&l(this)}get mediaIsCasting(){return(0,r.zc)(this,o.MediaUIAttributes.MEDIA_IS_CASTING)}set mediaIsCasting(t){(0,r.Pj)(this,o.MediaUIAttributes.MEDIA_IS_CASTING,t)}get mediaCastUnavailable(){return(0,r.ST)(this,o.MediaUIAttributes.MEDIA_CAST_UNAVAILABLE)}set mediaCastUnavailable(t){(0,r.Lb)(this,o.MediaUIAttributes.MEDIA_CAST_UNAVAILABLE,t)}handleClick(){let t=this.mediaIsCasting?o.MediaUIEvents.MEDIA_EXIT_CAST_REQUEST:o.MediaUIEvents.MEDIA_ENTER_CAST_REQUEST;this.dispatchEvent(new a.Mq.CustomEvent(t,{composed:!0,bubbles:!0}))}}d.getSlotTemplateHTML=function(t){return` 57 <style> 58 :host([${o.MediaUIAttributes.MEDIA_IS_CASTING}]) slot[name=icon] slot:not([name=exit]) { 59 display: none !important; 60 } 61 62 63 :host(:not([${o.MediaUIAttributes.MEDIA_IS_CASTING}])) slot[name=icon] slot:not([name=enter]) { 64 display: none !important; 65 } 66 67 :host([${o.MediaUIAttributes.MEDIA_IS_CASTING}]) slot[name=tooltip-enter], 68 :host(:not([${o.MediaUIAttributes.MEDIA_IS_CASTING}])) slot[name=tooltip-exit] { 69 display: none; 70 } 71 </style> 72 73 <slot name="icon"> 74 <slot name="enter"><svg aria-hidden="true" viewBox="0 0 24 24"><g><path class="cast_caf_icon_arch0" d="M1,18 L1,21 L4,21 C4,19.3 2.66,18 1,18 L1,18 Z"/><path class="cast_caf_icon_arch1" d="M1,14 L1,16 C3.76,16 6,18.2 6,21 L8,21 C8,17.13 4.87,14 1,14 L1,14 Z"/><path class="cast_caf_icon_arch2" d="M1,10 L1,12 C5.97,12 10,16.0 10,21 L12,21 C12,14.92 7.07,10 1,10 L1,10 Z"/><path class="cast_caf_icon_box" d="M21,3 L3,3 C1.9,3 1,3.9 1,5 L1,8 L3,8 L3,5 L21,5 L21,19 L14,19 L14,21 L21,21 C22.1,21 23,20.1 23,19 L23,5 C23,3.9 22.1,3 21,3 L21,3 Z"/></g></svg></slot> 75 <slot name="exit"><svg aria-hidden="true" viewBox="0 0 24 24"><g><path class="cast_caf_icon_arch0" d="M1,18 L1,21 L4,21 C4,19.3 2.66,18 1,18 L1,18 Z"/><path class="cast_caf_icon_arch1" d="M1,14 L1,16 C3.76,16 6,18.2 6,21 L8,21 C8,17.13 4.87,14 1,14 L1,14 Z"/><path class="cast_caf_icon_arch2" d="M1,10 L1,12 C5.97,12 10,16.0 10,21 L12,21 C12,14.92 7.07,10 1,10 L1,10 Z"/><path class="cast_caf_icon_box" d="M21,3 L3,3 C1.9,3 1,3.9 1,5 L1,8 L3,8 L3,5 L21,5 L21,19 L14,19 L14,21 L21,21 C22.1,21 23,20.1 23,19 L23,5 C23,3.9 22.1,3 21,3 L21,3 Z"/><path class="cast_caf_icon_boxfill" d="M5,7 L5,8.63 C8,8.6 13.37,14 13.37,17 L19,17 L19,7 Z"/></g></svg></slot> 76 </slot> 77 `},d.getTooltipContentHTML=function(){return` 78 <slot name="tooltip-enter">${(0,n.t)("Start casting")}</slot> 79 <slot name="tooltip-exit">${(0,n.t)("Stop casting")}</slot> 80 `},a.Mq.customElements.get("media-cast-button")||a.Mq.customElements.define("media-cast-button",d)}
80,24611:function(t,e,i){i.d(e,{Z:function(){return T}});var s,a,o,n,r,l,d,h=i(87749),c=i(69625),u=i(41470),m=i(86169),E=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},p=(t,e,i)=>(E(t,e,"read from private field"),i?i.call(t):e.get(t)),b=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},v=(t,e,i,s)=>(E(t,e,"write to private field"),s?s.call(t,i):e.set(t,i),i),g=(t,e,i)=>(E(t,e,"access private method"),i);let A={TOOLTIP_PLACEMENT:"tooltipplacement",DISABLED:"disabled",NO_TOOLTIP:"notooltip"};class T extends m.Mq.HTMLElement{constructor(){if(super(),b(this,l),b(this,s,void 0),this.preventClick=!1,this.tooltipEl=null,b(this,a,t=>{this.preventClick||this.handleClick(t),setTimeout(p(this,o),0)}),b(this,o,()=>{var t,e;null==(e=null==(t=this.tooltipEl)?void 0:t.updateXOffset)||e.call(t)}),b(this,n,t=>{let{key:e}=t;if(!this.keysUsed.includes(e)){this.removeEventListener("keyup",p(this,n));return}this.preventClick||this.handleClick(t)}),b(this,r,t=>{let{metaKey:e,altKey:i,key:s}=t;if(e||i||!this.keysUsed.includes(s)){this.removeEventListener("keyup",p(this,n));return}this.addEventListener("keyup",p(this,n),{once:!0})}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let t=(0,u.OO)(this.attributes),e=this.constructor.getTemplateHTML(t);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(e):this.shadowRoot.innerHTML=e}this.tooltipEl=this.shadowRoot.querySelector("media-tooltip")}static get observedAttributes(){return["disabled",A.TOOLTIP_PLACEMENT,h.MediaStateReceiverAttributes.MEDIA_CONTROLLER,h.MediaUIAttributes.MEDIA_LANG]}enable(){this.addEventListener("click",p(this,a)),this.addEventListener("keydown",p(this,r)),this.tabIndex=0}disable(){this.removeEventListener("click",p(this,a)),this.removeEventListener("keydown",p(this,r)),this.removeEventListener("keyup",p(this,n)),this.tabIndex=-1}attributeChangedCallback(t,e,i){var a,n,r,l,d;t===h.MediaStateReceiverAttributes.MEDIA_CONTROLLER?(e&&(null==(n=null==(a=p(this,s))?void 0:a.unassociateElement)||n.call(a,this),v(this,s,null)),i&&this.isConnected&&(v(this,s,null==(r=this.getRootNode())?void 0:r.getElementById(i)),null==(d=null==(l=p(this,s))?void 0:l.associateElement)||d.call(l,this))):"disabled"===t&&i!==e?null==i?this.enable():this.disable():t===A.TOOLTIP_PLACEMENT&&this.tooltipEl&&i!==e?this.tooltipEl.placement=i:t===h.MediaUIAttributes.MEDIA_LANG&&(this.shadowRoot.querySelector('slot[name="tooltip-content"]').innerHTML=this.constructor.getTooltipContentHTML()),p(this,o).call(this)}connectedCallback(){var t,e,i;let{style:a}=(0,u.R7)(this.shadowRoot,":host");a.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`),this.hasAttribute("disabled")?this.disable():this.enable(),this.setAttribute("role","button");let o=this.getAttribute(h.MediaStateReceiverAttributes.MEDIA_CONTROLLER);o&&(v(this,s,null==(t=this.getRootNode())?void 0:t.getElementById(o)),null==(i=null==(e=p(this,s))?void 0:e.associateElement)||i.call(e,this)),m.Mq.customElements.whenDefined("media-tooltip").then(()=>g(this,l,d).call(this))}disconnectedCallback(){var t,e;this.disable(),null==(e=null==(t=p(this,s))?void 0:t.unassociateElement)||e.call(t,this),v(this,s,null),this.removeEventListener("mouseenter",p(this,o)),this.removeEventListener("focus",p(this,o)),this.removeEventListener("click",p(this,a))}get keysUsed(){return["Enter"," "]}get tooltipPlacement(){return(0,u.ST)(this,A.TOOLTIP_PLACEMENT)}set tooltipPlacement(t){(0,u.Lb)(this,A.TOOLTIP_PLACEMENT,t)}get mediaController(){return(0,u.ST)(this,h.MediaStateReceiverAttributes.MEDIA_CONTROLLER)}set mediaController(t){(0,u.Lb)(this,h.MediaStateReceiverAttributes.MEDIA_CONTROLLER,t)}get disabled(){return(0,u.zc)(this,A.DISABLED)}set disabled(t){(0,u.Pj)(this,A.DISABLED,t)}get noTooltip(){return(0,u.zc)(this,A.NO_TOOLTIP)}set noTooltip(t){(0,u.Pj)(this,A.NO_TOOLTIP,t)}handleClick(t){}}s=new WeakMap,a=new WeakMap,o=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakSet,d=function(){this.addEventListener("mouseenter",p(this,o)),this.addEventListener("focus",p(this,o)),this.addEventListener("click",p(this,a));let t=this.tooltipPlacement;t&&this.tooltipEl&&(this.tooltipEl.placement=t)},T.shadowRootOptions={mode:"open"},T.getTemplateHTML=function(t,e={}){return` 81 <style> 82 :host { 83 position: relative; 84 font: var(--media-font, 85 var(--media-font-weight, bold) 86 var(--media-font-size, 14px) / 87 var(--media-text-content-height, var(--media-control-height, 24px)) 88 var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif)); 89 color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238))); 90 background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7))); 91 padding: var(--media-button-padding, var(--media-control-padding, 10px)); 92 justify-content: var(--media-button-justify-content, center); 93 display: inline-flex; 94 align-items: center; 95 vertical-align: middle; 96 box-sizing: border-box; 97 transition: background .15s linear; 98 pointer-events: auto; 99 cursor: var(--media-cursor, pointer); 100 -webkit-tap-highlight-color: transparent; 101 } 102 103 104 :host(:focus-visible) {
105 box-shadow: var(--media-focus-box-shadow, inset 0 0 0 2px rgb(27 127 204 / .9)); 106 outline: 0; 107 } 108 109 :host(:where(:focus)) { 110 box-shadow: none; 111 outline: 0; 112 } 113 114 :host(:hover) { 115 background: var(--media-control-hover-background, rgba(50 50 70 / .7)); 116 } 117 118 svg, img, ::slotted(svg), ::slotted(img) { 119 width: var(--media-button-icon-width); 120 height: var(--media-button-icon-height, var(--media-control-height, 24px)); 121 transform: var(--media-button-icon-transform); 122 transition: var(--media-button-icon-transition); 123 fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238))); 124 vertical-align: middle; 125 max-width: 100%; 126 max-height: 100%; 127 min-width: 100%; 128 } 129 130 media-tooltip { 131 132 max-width: 0; 133 overflow-x: clip; 134 opacity: 0; 135 transition: opacity .3s, max-width 0s 9s; 136 } 137 138 :host(:hover) media-tooltip, 139 :host(:focus-visible) media-tooltip { 140 max-width: 100vw; 141 opacity: 1; 142 transition: opacity .3s; 143 } 144 145 :host([notooltip]) slot[name="tooltip"] { 146 display: none; 147 } 148 </style> 149 150 ${this.getSlotTemplateHTML(t,e)} 151 152 <slot name="tooltip"> 153 <media-tooltip part="tooltip" aria-hidden="true"> 154 <template shadowrootmode="${c.Z.shadowRootOptions.mode}"> 155 ${c.Z.getTemplateHTML({})} 156 </template> 157 <slot name="tooltip-content"> 158 ${this.getTooltipContentHTML(t)} 159 </slot> 160 </media-tooltip> 161 </slot> 162 `},T.getSlotTemplateHTML=function(t,e){return` 163 <slot></slot> 164 `},T.getTooltipContentHTML=function(){return""},m.Mq.customElements.get("media-chrome-button")||m.Mq.customElements.define("media-chrome-button",T)},30520:function(t,e,i){i.d(e,{_v:function(){return L}});var s,a,o,n,r,l,d,h,c,u,m,E,p,b,v,g=i(86169),A=i(41470),T=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},I=(t,e,i)=>(T(t,e,"read from private field"),i?i.call(t):e.get(t)),_=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},M=(t,e,i,s)=>(T(t,e,"write to private field"),s?s.call(t,i):e.set(t,i),i),f=(t,e,i)=>(T(t,e,"access private method"),i);let S="open";class L extends g.Mq.HTMLElement{constructor(){super(),_(this,n),_(this,l),_(this,h),_(this,u),_(this,E),_(this,b),_(this,s,!1),_(this,a,null),_(this,o,null),this.addEventListener("invoke",this),this.addEventListener("focusout",this),this.addEventListener("keydown",this)}static get observedAttributes(){return[S,"anchor"]}get open(){return(0,A.zc)(this,S)}set open(t){(0,A.Pj)(this,S,t)}handleEvent(t){switch(t.type){case"invoke":f(this,u,m).call(this,t);break;case"focusout":f(this,E,p).call(this,t);break;case"keydown":f(this,b,v).call(this,t)}}connectedCallback(){f(this,n,r).call(this),this.role||(this.role="dialog")}attributeChangedCallback(t,e,i){f(this,n,r).call(this),t===S&&i!==e&&(this.open?f(this,l,d).call(this):f(this,h,c).call(this))}focus(){M(this,a,(0,A.vY)());let t=!this.dispatchEvent(new Event("focus",{composed:!0,cancelable:!0})),e=!this.dispatchEvent(new Event("focusin",{composed:!0,bubbles:!0,cancelable:!0}));if(t||e)return;let i=this.querySelector('[autofocus], [tabindex]:not([tabindex="-1"]), [role="menu"]');null==i||i.focus()}get keysUsed(){return["Escape","Tab"]}}s=new WeakMap,a=new WeakMap,o=new WeakMap,n=new WeakSet,r=function(){if(!I(this,s)&&(M(this,s,!0),!this.shadowRoot)){this.attachShadow(this.constructor.shadowRootOptions);let t=(0,A.OO)(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(t),queueMicrotask(()=>{let{style:t}=(0,A.R7)(this.shadowRoot,":host");t.setProperty("transition","display .15s, visibility .15s, opacity .15s ease-in, transform .15s ease-in")})}},l=new WeakSet,d=function(){var t;null==(t=I(this,o))||t.setAttribute("aria-expanded","true"),this.dispatchEvent(new Event("open",{composed:!0,bubbles:!0})),this.addEventListener("transitionend",()=>this.focus(),{once:!0})},h=new WeakSet,c=function(){var t;
164null==(t=I(this,o))||t.setAttribute("aria-expanded","false"),this.dispatchEvent(new Event("close",{composed:!0,bubbles:!0}))},u=new WeakSet,m=function(t){M(this,o,t.relatedTarget),(0,A.Mj)(this,t.relatedTarget)||(this.open=!this.open)},E=new WeakSet,p=function(t){var e;!(0,A.Mj)(this,t.relatedTarget)&&(null==(e=I(this,a))||e.focus(),I(this,o)&&I(this,o)!==t.relatedTarget&&this.open&&(this.open=!1))},b=new WeakSet,v=function(t){var e,i,s,o,n;let{key:r,ctrlKey:l,altKey:d,metaKey:h}=t;!l&&!d&&!h&&this.keysUsed.includes(r)&&(t.preventDefault(),t.stopPropagation(),"Tab"===r?(t.shiftKey?null==(i=null==(e=this.previousElementSibling)?void 0:e.focus)||i.call(e):null==(o=null==(s=this.nextElementSibling)?void 0:s.focus)||o.call(s),this.blur()):"Escape"===r&&(null==(n=I(this,a))||n.focus(),this.open=!1))},L.shadowRootOptions={mode:"open"},L.getTemplateHTML=function(t){return` 165 <style> 166 :host { 167 font: var(--media-font, 168 var(--media-font-weight, normal) 169 var(--media-font-size, 14px) / 170 var(--media-text-content-height, var(--media-control-height, 24px)) 171 var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif)); 172 color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238))); 173 display: var(--media-dialog-display, inline-flex); 174 justify-content: center; 175 align-items: center; 176 177 transition-behavior: allow-discrete; 178 visibility: hidden; 179 opacity: 0; 180 transform: translateY(2px) scale(.99); 181 pointer-events: none; 182 } 183 184 :host([open]) { 185 transition: display .2s, visibility 0s, opacity .2s ease-out, transform .15s ease-out; 186 visibility: visible; 187 opacity: 1; 188 transform: translateY(0) scale(1); 189 pointer-events: auto; 190 } 191 192 #content { 193 display: flex; 194 position: relative; 195 box-sizing: border-box; 196 width: min(320px, 100%); 197 word-wrap: break-word; 198 max-height: 100%; 199 overflow: auto; 200 text-align: center; 201 line-height: 1.4; 202 } 203 </style> 204 ${this.getSlotTemplateHTML(t)} 205 `},L.getSlotTemplateHTML=function(t){return` 206 <slot id="content"></slot> 207 `},g.Mq.customElements.get("media-chrome-dialog")||g.Mq.customElements.define("media-chrome-dialog",L)},81502:function(t,e,i){i.d(e,{J:function(){return P}});var s,a,o,n,r,l,d,h,c,u,m,E,p,b,v,g,A,T,I,_,M,f,S,L,k,y=i(87749),w=i(86169),U=i(41470),R=i(27484),O=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},C=(t,e,i)=>(O(t,e,"read from private field"),i?i.call(t):e.get(t)),D=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},N=(t,e,i,s)=>(O(t,e,"write to private field"),s?s.call(t,i):e.set(t,i),i),x=(t,e,i)=>(O(t,e,"access private method"),i);class P extends w.Mq.HTMLElement{constructor(){if(super(),D(this,u),D(this,E),D(this,b),D(this,g),D(this,T),D(this,_),D(this,f),D(this,L),D(this,s,void 0),D(this,a,void 0),D(this,o,void 0),D(this,n,void 0),D(this,r,{}),D(this,l,[]),D(this,d,()=>{if(this.range.matches(":focus-visible")){let{style:t}=(0,U.R7)(this.shadowRoot,":host");t.setProperty("--_focus-visible-box-shadow","var(--_focus-box-shadow)")}}),D(this,h,()=>{let{style:t}=(0,U.R7)(this.shadowRoot,":host");t.removeProperty("--_focus-visible-box-shadow")}),D(this,c,()=>{let t=this.shadowRoot.querySelector("#segments-clipping");t&&t.parentNode.append(t)}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let t=(0,U.OO)(this.attributes),e=this.constructor.getTemplateHTML(t);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(e):this.shadowRoot.innerHTML=e}this.container=this.shadowRoot.querySelector("#container"),N(this,o,this.shadowRoot.querySelector("#startpoint")),N(this,n,this.shadowRoot.querySelector("#endpoint")),this.range=this.shadowRoot.querySelector("#range"),this.appearance=this.shadowRoot.querySelector("#appearance")}static get observedAttributes(){return["disabled","aria-disabled",y.MediaStateReceiverAttributes.MEDIA_CONTROLLER]}attributeChangedCallback(t,e,i){var a,o,n,r,l;t===y.MediaStateReceiverAttributes.MEDIA_CONTROLLER?(e&&(null==(o=null==(a=C(this,s))?void 0:a.unassociateElement)||o.call(a,this),N(this,s,null)),i&&this.isConnected&&(N(this,s,null==(n=this.getRootNode())?void 0:n.getElementById(i)),null==(l=null==(r=C(this,s))?void 0:r.associateElement)||l.call(r,this))):("disabled"===t||"aria-disabled"===t&&e!==i)&&(null==i?(this.range.removeAttribute(t),x(this,E,p).call(this)):(this.range.setAttribute(t,i),x(this,b,v).call(this)))}connectedCallback(){var t,e,i;let{style:a}=(0,U.R7)(this.shadowRoot,":host");a.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`),C(this,r).pointer=(0,U.R7)(this.shadowRoot,"#pointer"),C(this,r).progress=(0,U.R7)(this.shadowRoot,"#progress"),C(this,r).thumb=(0,U.R7)(this.shadowRoot,'#thumb, ::slotted([slot="thumb"])'),C(this,r).activeSegment=(0,U.R7)(this.shadowRoot,"#segments-clipping rect:nth-child(0)");let o=this.getAttribute(y.MediaStateReceiverAttributes.MEDIA_CONTROLLER);o&&(N(this,s,null==(t=this.getRootNode())?void 0:t.getElementById(o)),null==(i=null==(e=C(this,s))?void 0:e.associateElement)||i.call(e,this)),this.updateBar(),this.shadowRoot.addEventListener("focusin",C(this,d)),this.shadowRoot.addEventListener("focusout",C(this,h)),x(this,E,p).call(this),(0,R.X)(this.container,C(this,c))}disconnectedCallback(){var t,e;x(this,b,v).call(this),null==(e=null==(t=C(this,s))?void 0:t.unassociateElement)||e.call(t,this),N(this,s,null),this.shadowRoot.removeEventListener("focusin",C(this,d)),this.shadowRoot.removeEventListener("focusout",C(this,h)),(0,R.U)(this.container,C(this,c))}updatePointerBar(t){var e;null==(e=C(this,r).pointer)||e.style.setProperty("width",`${100*this.getPointerRatio(t)}%`)}updateBar(){var t,e;let i=100*this.range.valueAsNumber;null==(t=C(this,r).progress)||t.style.setProperty("width",`${i}%`),null==(e=C(this,r).thumb)||e.style.setProperty("left",`${i}%`)}updateSegments(t){let e=this.shadowRoot.querySelector("#segments-clipping");if(e.textContent="",this.container.classList.toggle("segments",!!(null==t?void 0:t.length)),!(null==t?void 0:t.length))return;let i=[...new Set([+this.range.min,...t.flatMap(t=>[t.start,t.end]),+this.range.max])];N(this,l,[...i]);let s=i.pop();for(let[t,a]of i.entries()){let[o,n]=[0===t,t===i.length-1],r=o?"calc(var(--segments-gap) / -1)":`${100*a}%`,l=n?s:i[t+1],d=`calc(${(l-a)*100}%${o||n?"":" - var(--segments-gap)"})`,h=w.tj.createElementNS("http://www.w3.org/2000/svg","rect"),c=(0,U._l)(this.shadowRoot,`#segments-clipping rect:nth-child(${t+1})`);c.style.setProperty("x",r),c.style.setProperty("width",d),e.append(h)}}getPointerRatio(t){return(0,U.Zo)(t.clientX,t.clientY,C(this,o).getBoundingClientRect(),C(this,n).getBoundingClientRect())}get dragging(){return this.hasAttribute("dragging")}handleEvent(t){switch(t.type){case"pointermove":x(this,L,k).call(this,t);break;case"input":this.updateBar();break;case"pointerenter":x(this,T,I).call(this,t);break;case"pointerdown":x(this,g,A).call(this,t);break;case"pointerup":x(this,_,M).call(this);break;case"pointerleave":x(this,f,S).call(this)}}get keysUsed(){return["ArrowUp","ArrowRight","ArrowDown","ArrowLeft"]}}s=new WeakMap,a=new WeakMap,o=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap,d=new WeakMap,h=new WeakMap,c=new WeakMap,u=new WeakSet,m=function(t){let e=C(this,r).activeSegment;if(!e)return;let i=this.getPointerRatio(t),s=C(this,l).findIndex((t,e,s)=>{let a=s[e+1];return null!=a&&i>=t&&i<=a}),a=`#segments-clipping rect:nth-child(${s+1})`;e.selectorText==a&&e.style.transform||(e.selectorText=a,e.style.setProperty("transform","var(--media-range-segment-hover-transform, scaleY(2))"))},E=new WeakSet,p=function(){this.hasAttribute("disabled")||(this.addEventListener("input",this),this.addEventListener("pointerdown",this),this.addEventListener("pointerenter",this))},b=new WeakSet,v=function(){var t,e;this.removeEventListener("input",this),this.removeEventListener("pointerdown",this),this.removeEventListener("pointerenter",this),null==(t=w.Mq.window)||t.removeEventListener("pointerup",this),null==(e=w.Mq.window)||e.removeEventListener("pointermove",this)},g=new WeakSet,A=function(t){var e;N(this,a,t.composedPath().includes(this.range)),null==(e=w.Mq.window)||e.addEventListener("pointerup",this)},T=new WeakSet,I=function(t){var e;"mouse"!==t.pointerType&&x(this,g,A).call(this,t),this.addEventListener("pointerleave",this),null==(e=w.Mq.window)||e.addEventListener("pointermove",this)},_=new WeakSet,M=function(){var t;null==(t=w.Mq.window)||t.removeEventListener("pointerup",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled")},f=new WeakSet,S=function(){var t,e;this.removeEventListener("pointerleave",this),null==(t=w.Mq.window)||t.removeEventListener("pointermove",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled"),null==(e=C(this,r).activeSegment)||e.style.removeProperty("transform")},L=new WeakSet,k=function(t){("pen"!==t.pointerType||0!==t.buttons)&&(this.toggleAttribute("dragging",1===t.buttons||"mouse"!==t.pointerType),this.updatePointerBar(t),x(this,u,m).call(this,t),this.dragging&&("mouse"!==t.pointerType||!C(this,a))&&(this.range.disabled=!0,this.range.valueAsNumber=this.getPointerRatio(t),this.range.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))))},P.shadowRootOptions={mode:"open"},P.getTemplateHTML=function(t){return` 208 <style> 209 :host {
210 --_focus-box-shadow: var(--media-focus-box-shadow, inset 0 0 0 2px rgb(27 127 204 / .9)); 211 --_media-range-padding: var(--media-range-padding, var(--media-control-padding, 10px)); 212 213 box-shadow: var(--_focus-visible-box-shadow, none); 214 background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7))); 215 height: calc(var(--media-control-height, 24px) + 2 * var(--_media-range-padding)); 216 display: inline-flex; 217 align-items: center; 218 219 vertical-align: middle; 220 box-sizing: border-box; 221 position: relative; 222 width: 100px; 223 transition: background .15s linear; 224 cursor: var(--media-cursor, pointer); 225 pointer-events: auto; 226 touch-action: none; 227 } 228 229 230 input[type=range]:focus { 231 outline: 0; 232 } 233 input[type=range]:focus::-webkit-slider-runnable-track { 234 outline: 0; 235 } 236 237 :host(:hover) { 238 background: var(--media-control-hover-background, rgb(50 50 70 / .7)); 239 } 240 241 #leftgap { 242 padding-left: var(--media-range-padding-left, var(--_media-range-padding)); 243 } 244 245 #rightgap { 246 padding-right: var(--media-range-padding-right, var(--_media-range-padding)); 247 } 248 249 #startpoint, 250 #endpoint { 251 position: absolute; 252 } 253 254 #endpoint { 255 right: 0; 256 } 257 258 #container { 259 260 width: var(--media-range-track-width, 100%); 261 transform: translate(var(--media-range-track-translate-x, 0px), var(--media-range-track-translate-y, 0px)); 262 position: relative; 263 height: 100%; 264 display: flex; 265 align-items: center; 266 min-width: 40px; 267 } 268 269 #range { 270 271 display: var(--media-time-range-hover-display, block); 272 bottom: var(--media-time-range-hover-bottom, -7px); 273 height: var(--media-time-range-hover-height, max(100% + 7px, 25px)); 274 width: 100%; 275 position: absolute; 276 cursor: var(--media-cursor, pointer); 277 278 -webkit-appearance: none; 279 -webkit-tap-highlight-color: transparent; 280 background: transparent; 281 margin: 0; 282 z-index: 1; 283 } 284 285 @media (hover: hover) { 286 #range { 287 bottom: var(--media-time-range-hover-bottom, -5px); 288 height: var(--media-time-range-hover-height, max(100% + 5px, 20px)); 289 } 290 } 291 292 293 294 #range::-webkit-slider-thumb { 295 -webkit-appearance: none; 296 background: transparent; 297 width: .1px; 298 height: .1px; 299 } 300 301 302 #range::-moz-range-thumb { 303 background: transparent; 304 border: transparent; 305 width: .1px; 306 height: .1px; 307 } 308 309 #appearance { 310 height: var(--media-range-track-height, 4px); 311 display: flex; 312 flex-direction: column; 313 justify-content: center; 314 width: 100%; 315 position: absolute; 316 317 will-change: transform; 318 } 319 320 #track { 321 background: var(--media-range-track-background, rgb(255 255 255 / .2)); 322 border-radius: var(--media-range-track-border-radius, 1px); 323 border: var(--media-range-track-border, none); 324 outline: var(--media-range-track-outline); 325 outline-offset: var(--media-range-track-outline-offset); 326 backdrop-filter: var(--media-range-track-backdrop-filter); 327 -webkit-backdrop-filter: var(--media-range-track-backdrop-filter);
328 box-shadow: var(--media-range-track-box-shadow, none); 329 position: absolute; 330 width: 100%; 331 height: 100%; 332 overflow: hidden; 333 } 334 335 #progress, 336 #pointer { 337 position: absolute; 338 height: 100%; 339 will-change: width; 340 } 341 342 #progress { 343 background: var(--media-range-bar-color, var(--media-primary-color, rgb(238 238 238))); 344 transition: var(--media-range-track-transition); 345 } 346 347 #pointer { 348 background: var(--media-range-track-pointer-background); 349 border-right: var(--media-range-track-pointer-border-right); 350 transition: visibility .25s, opacity .25s; 351 visibility: hidden; 352 opacity: 0; 353 } 354 355 @media (hover: hover) { 356 :host(:hover) #pointer { 357 transition: visibility .5s, opacity .5s; 358 visibility: visible; 359 opacity: 1; 360 } 361 } 362 363 #thumb, 364 ::slotted([slot=thumb]) { 365 width: var(--media-range-thumb-width, 10px); 366 height: var(--media-range-thumb-height, 10px); 367 transition: var(--media-range-thumb-transition); 368 transform: var(--media-range-thumb-transform, none); 369 opacity: var(--media-range-thumb-opacity, 1); 370 translate: -50%; 371 position: absolute; 372 left: 0; 373 cursor: var(--media-cursor, pointer); 374 } 375 376 #thumb { 377 border-radius: var(--media-range-thumb-border-radius, 10px); 378 background: var(--media-range-thumb-background, var(--media-primary-color, rgb(238 238 238))); 379 box-shadow: var(--media-range-thumb-box-shadow, 1px 1px 1px transparent); 380 border: var(--media-range-thumb-border, none); 381 } 382 383 :host([disabled]) #thumb { 384 background-color: #777; 385 } 386 387 .segments #appearance { 388 height: var(--media-range-segment-hover-height, 7px); 389 } 390 391 #track { 392 clip-path: url(#segments-clipping); 393 } 394 395 #segments { 396 --segments-gap: var(--media-range-segments-gap, 2px); 397 position: absolute; 398 width: 100%; 399 height: 100%; 400 } 401 402 #segments-clipping { 403 transform: translateX(calc(var(--segments-gap) / 2)); 404 } 405 406 #segments-clipping:empty { 407 display: none; 408 } 409 410 #segments-clipping rect { 411 height: var(--media-range-track-height, 4px); 412 y: calc((var(--media-range-segment-hover-height, 7px) - var(--media-range-track-height, 4px)) / 2); 413 transition: var(--media-range-segment-transition, transform .1s ease-in-out); 414 transform: var(--media-range-segment-transform, scaleY(1)); 415 transform-origin: center; 416 } 417 </style> 418 <div id="leftgap"></div> 419 <div id="container"> 420 <div id="startpoint"></div> 421 <div id="endpoint"></div> 422 <div id="appearance"> 423 <div id="track" part="track"> 424 <div id="pointer"></div> 425 <div id="progress" part="progress"></div> 426 </div> 427 <slot name="thumb"> 428 <div id="thumb" part="thumb"></div> 429 </slot> 430 <svg id="segments"><clipPath id="segments-clipping"></clipPath></svg> 431 </div>
432 <input id="range" type="range" min="0" max="1" step="any" value="0"> 433 434 ${this.getContainerTemplateHTML(t)} 435 </div> 436 <div id="rightgap"></div> 437 `},P.getContainerTemplateHTML=function(t){return""},w.Mq.customElements.get("media-chrome-range")||w.Mq.customElements.define("media-chrome-range",P)},87809:function(t,e,i){i.d(e,{XN:function(){return x},zj:function(){return C}});var s,a,o,n,r,l,d,h,c,u,m,E,p,b,v,g,A,T,I,_=i(86169),M=i(87749),f=i(27484),S=i(13920),L=i(43616),k=i(41470),y=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},w=(t,e,i)=>(y(t,e,"read from private field"),i?i.call(t):e.get(t)),U=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},R=(t,e,i,s)=>(y(t,e,"write to private field"),s?s.call(t,i):e.set(t,i),i),O=(t,e,i)=>(y(t,e,"access private method"),i);let C={AUDIO:"audio",AUTOHIDE:"autohide",BREAKPOINTS:"breakpoints",GESTURES_DISABLED:"gesturesdisabled",KEYBOARD_CONTROL:"keyboardcontrol",NO_AUTOHIDE:"noautohide",USER_INACTIVE:"userinactive",AUTOHIDE_OVER_CONTROLS:"autohideovercontrols"},D=Object.values(M.MediaUIAttributes);function N(t,e){var i;if(!t.isConnected)return;let s=Object.fromEntries((null!=(i=t.getAttribute(C.BREAKPOINTS))?i:"sm:384 md:576 lg:768 xl:960").split(/\s+/).map(t=>t.split(":"))),a=Object.keys(s).filter(t=>e>=parseInt(s[t])),o=!1;if(Object.keys(s).forEach(e=>{if(a.includes(e)){t.hasAttribute(`breakpoint${e}`)||(t.setAttribute(`breakpoint${e}`,""),o=!0);return}t.hasAttribute(`breakpoint${e}`)&&(t.removeAttribute(`breakpoint${e}`),o=!0)}),o){let e=new CustomEvent(M.TP.BREAKPOINTS_CHANGE,{detail:a});t.dispatchEvent(e)}t.breakpointsComputed||(t.breakpointsComputed=!0,t.dispatchEvent(new CustomEvent(M.TP.BREAKPOINTS_COMPUTED,{bubbles:!0,composed:!0})))}class x extends _.Mq.HTMLElement{constructor(){if(super(),U(this,l),U(this,u),U(this,E),U(this,b),U(this,g),U(this,T),U(this,s,0),U(this,a,null),U(this,o,null),U(this,n,void 0),this.breakpointsComputed=!1,U(this,r,new MutationObserver(O(this,l,d).bind(this))),U(this,h,!1),U(this,c,t=>{w(this,h)||(setTimeout(()=>{N(t.target,t.contentRect.width),R(this,h,!1)},0),R(this,h,!0))}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let t=(0,k.OO)(this.attributes),e=this.constructor.getTemplateHTML(t);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(e):this.shadowRoot.innerHTML=e}let t=this.querySelector(":scope > slot[slot=media]");t&&t.addEventListener("slotchange",()=>{if(!t.assignedElements({flatten:!0}).length){w(this,a)&&this.mediaUnsetCallback(w(this,a));return}this.handleMediaUpdated(this.media)})}static get observedAttributes(){return[C.AUTOHIDE,C.GESTURES_DISABLED].concat(D).filter(t=>![M.MediaUIAttributes.MEDIA_RENDITION_LIST,M.MediaUIAttributes.MEDIA_AUDIO_TRACK_LIST,M.MediaUIAttributes.MEDIA_CHAPTERS_CUES,M.MediaUIAttributes.MEDIA_WIDTH,M.MediaUIAttributes.MEDIA_HEIGHT,M.MediaUIAttributes.MEDIA_ERROR,M.MediaUIAttributes.MEDIA_ERROR_MESSAGE].includes(t))}attributeChangedCallback(t,e,i){t.toLowerCase()==C.AUTOHIDE&&(this.autohide=i)}get media(){let t=this.querySelector(":scope > [slot=media]");return(null==t?void 0:t.nodeName)=="SLOT"&&(t=t.assignedElements({flatten:!0})[0]),t}async handleMediaUpdated(t){t&&(R(this,a,t),t.localName.includes("-")&&await _.Mq.customElements.whenDefined(t.localName),this.mediaSetCallback(t))}connectedCallback(){var t;w(this,r).observe(this,{childList:!0,subtree:!0}),(0,f.X)(this,w(this,c));let e=null!=this.getAttribute(C.AUDIO)?(0,L.t)("audio player"):(0,L.t)("video player");this.setAttribute("role","region"),this.setAttribute("aria-label",e),this.handleMediaUpdated(this.media),this.setAttribute(C.USER_INACTIVE,""),N(this,this.getBoundingClientRect().width),this.addEventListener("pointerdown",this),this.addEventListener("pointermove",this),this.addEventListener("pointerup",this),this.addEventListener("mouseleave",this),this.addEventListener("keyup",this),null==(t=_.Mq.window)||t.addEventListener("mouseup",this)}disconnectedCallback(){var t;w(this,r).disconnect(),(0,f.U)(this,w(this,c)),this.media&&this.mediaUnsetCallback(this.media),null==(t=_.Mq.window)||t.removeEventListener("mouseup",this)}mediaSetCallback(t){}mediaUnsetCallback(t){R(this,a,null)}handleEvent(t){switch(t.type){case"pointerdown":R(this,s,t.timeStamp);break;case"pointermove":O(this,u,m).call(this,t);break;case"pointerup":O(this,E,p).call(this,t);break;case"mouseleave":O(this,b,v).call(this);break;case"mouseup":this.removeAttribute(C.KEYBOARD_CONTROL);break;case"keyup":O(this,T,I).call(this),this.setAttribute(C.KEYBOARD_CONTROL,"")}}set autohide(t){let e=Number(t);R(this,n,isNaN(e)?0:e)}get autohide(){return(void 0===w(this,n)?2:w(this,n)).toString()}get breakpoints(){return(0,k.ST)(this,C.BREAKPOINTS)}set breakpoints(t){(0,k.Lb)(this,C.BREAKPOINTS,t)}get audio(){return(0,k.zc)(this,C.AUDIO)}set audio(t){(0,k.Pj)(this,C.AUDIO,t)}get gesturesDisabled(){return(0,k.zc)(this,C.GESTURES_DISABLED)}set gesturesDisabled(t){(0,k.Pj)(this,C.GESTURES_DISABLED,t)}get keyboardControl(){return(0,k.zc)(this,C.KEYBOARD_CONTROL)}set keyboardControl(t){(0,k.Pj)(this,C.KEYBOARD_CONTROL,t)}get noAutohide(){return(0,k.zc)(this,C.NO_AUTOHIDE)}set noAutohide(t){(0,k.Pj)(this,C.NO_AUTOHIDE,t)}get autohideOverControls(){return(0,k.zc)(this,C.AUTOHIDE_OVER_CONTROLS)}set autohideOverControls(t){(0,k.Pj)(this,C.AUTOHIDE_OVER_CONTROLS,t)}get userInteractive(){return(0,k.zc)(this,C.USER_INACTIVE)}set userInteractive(t){(0,k.Pj)(this,C.USER_INACTIVE,t)}}s=new WeakMap,a=new WeakMap,o=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakSet,d=function(t){let e=this.media;for(let i of t)if("childList"===i.type){for(let t of i.removedNodes
437){if("media"!=t.slot||i.target!=this)continue;let s=i.previousSibling&&i.previousSibling.previousElementSibling;if(s&&e){let e="media"!==s.slot;for(;null!==(s=s.previousSibling);)"media"==s.slot&&(e=!1);e&&this.mediaUnsetCallback(t)}else this.mediaUnsetCallback(t)}if(e)for(let t of i.addedNodes)t===e&&this.handleMediaUpdated(e)}},h=new WeakMap,c=new WeakMap,u=new WeakSet,m=function(t){if("mouse"!==t.pointerType&&t.timeStamp-w(this,s)<250)return;O(this,g,A).call(this),clearTimeout(w(this,o));let e=this.hasAttribute(C.AUTOHIDE_OVER_CONTROLS);([this,this.media].includes(t.target)||e)&&O(this,T,I).call(this)},E=new WeakSet,p=function(t){if("touch"===t.pointerType){let e=!this.hasAttribute(C.USER_INACTIVE);[this,this.media].includes(t.target)&&e?O(this,b,v).call(this):O(this,T,I).call(this)}else t.composedPath().some(t=>["media-play-button","media-fullscreen-button"].includes(null==t?void 0:t.localName))&&O(this,T,I).call(this)},b=new WeakSet,v=function(){if(0>w(this,n)||this.hasAttribute(C.USER_INACTIVE))return;this.setAttribute(C.USER_INACTIVE,"");let t=new _.Mq.CustomEvent(M.TP.USER_INACTIVE_CHANGE,{composed:!0,bubbles:!0,detail:!0});this.dispatchEvent(t)},g=new WeakSet,A=function(){if(!this.hasAttribute(C.USER_INACTIVE))return;this.removeAttribute(C.USER_INACTIVE);let t=new _.Mq.CustomEvent(M.TP.USER_INACTIVE_CHANGE,{composed:!0,bubbles:!0,detail:!1});this.dispatchEvent(t)},T=new WeakSet,I=function(){O(this,g,A).call(this),clearTimeout(w(this,o));let t=parseInt(this.autohide);t<0||R(this,o,setTimeout(()=>{O(this,b,v).call(this)},1e3*t))},x.shadowRootOptions={mode:"open"},x.getTemplateHTML=function(t){return` 438 <style> 439 440 :host([${M.MediaUIAttributes.MEDIA_IS_FULLSCREEN}]) ::slotted([slot=media]) { 441 outline: none; 442 } 443 444 :host { 445 box-sizing: border-box; 446 position: relative; 447 display: inline-block; 448 line-height: 0; 449 background-color: var(--media-background-color, #000); 450 overflow: hidden; 451 } 452 453 :host(:not([${C.AUDIO}])) [part~=layer]:not([part~=media-layer]) { 454 position: absolute; 455 top: 0; 456 left: 0; 457 bottom: 0; 458 right: 0; 459 display: flex; 460 flex-flow: column nowrap; 461 align-items: start; 462 pointer-events: none; 463 background: none; 464 } 465 466 slot[name=media] { 467 display: var(--media-slot-display, contents); 468 } 469 470 471 :host([${C.AUDIO}]) slot[name=media] { 472 display: var(--media-slot-display, none); 473 } 474 475 476 :host([${C.AUDIO}]) [part~=layer][part~=gesture-layer] { 477 height: 0; 478 display: block; 479 } 480 481 482 :host(:not([${C.AUDIO}])[${C.GESTURES_DISABLED}]) ::slotted([slot=gestures-chrome]), 483 :host(:not([${C.AUDIO}])[${C.GESTURES_DISABLED}]) media-gesture-receiver[slot=gestures-chrome] { 484 display: none; 485 } 486 487 488 ::slotted(:not([slot=media]):not([slot=poster]):not(media-loading-indicator):not([role=dialog]):not([hidden])) { 489 pointer-events: auto; 490 } 491 492 :host(:not([${C.AUDIO}])) *[part~=layer][part~=centered-layer] { 493 align-items: center; 494 justify-content: center; 495 } 496 497 :host(:not([${C.AUDIO}])) ::slotted(media-gesture-receiver[slot=gestures-chrome]), 498 :host(:not([${C.AUDIO}])) media-gesture-receiver[slot=gestures-chrome] { 499 align-self: stretch; 500 flex-grow: 1; 501 } 502 503 slot[name=middle-chrome] { 504 display: inline; 505 flex-grow: 1; 506 pointer-events: none; 507 background: none; 508 } 509 510 511 ::slotted([slot=media]), 512 ::slotted([slot=poster]) { 513 width: 100%; 514 height: 100%; 515 } 516 517 518 :host(:not([${C.AUDIO}])) .spacer { 519 flex-grow: 1; 520 } 521 522 523 :host(:-webkit-full-screen) { 524 525 width: 100% !important; 526 height: 100% !important; 527 } 528 529 530 ::slotted(:not([slot=media]):not([slot=poster]):not([${C.NO_AUTOHIDE}]):not([hidden]):not([role=dialog])) { 531 opacity: 1; 532 transition: var(--media-control-transition-in, opacity 0.25s); 533 } 534 535 536 :host([${C.USER_INACTIVE}]:not([${M.MediaUIAttributes.MEDIA_PAUSED}]):not([${M.MediaUIAttributes.MEDIA_IS_AIRPLAYING}
536]):not([${M.MediaUIAttributes.MEDIA_IS_CASTING}]):not([${C.AUDIO}])) ::slotted(:not([slot=media]):not([slot=poster]):not([${C.NO_AUTOHIDE}]):not([role=dialog])) { 537 opacity: 0; 538 transition: var(--media-control-transition-out, opacity 1s); 539 } 540 541 :host([${C.USER_INACTIVE}]:not([${C.NO_AUTOHIDE}]):not([${M.MediaUIAttributes.MEDIA_PAUSED}]):not([${M.MediaUIAttributes.MEDIA_IS_CASTING}]):not([${C.AUDIO}])) ::slotted([slot=media]) { 542 cursor: none; 543 } 544 545 :host([${C.USER_INACTIVE}][${C.AUTOHIDE_OVER_CONTROLS}]:not([${C.NO_AUTOHIDE}]):not([${M.MediaUIAttributes.MEDIA_PAUSED}]):not([${M.MediaUIAttributes.MEDIA_IS_CASTING}]):not([${C.AUDIO}])) * { 546 --media-cursor: none; 547 cursor: none; 548 } 549 550 551 ::slotted(media-control-bar) { 552 align-self: stretch; 553 } 554 555 556 :host(:not([${C.AUDIO}])[${M.MediaUIAttributes.MEDIA_HAS_PLAYED}]) slot[name=poster] { 557 display: none; 558 } 559 560 ::slotted([role=dialog]) { 561 width: 100%; 562 height: 100%; 563 align-self: center; 564 } 565 566 ::slotted([role=menu]) { 567 align-self: end; 568 } 569 </style> 570 571 <slot name="media" part="layer media-layer"></slot> 572 <slot name="poster" part="layer poster-layer"></slot> 573 <slot name="gestures-chrome" part="layer gesture-layer"> 574 <media-gesture-receiver slot="gestures-chrome"> 575 <template shadowrootmode="${S.Z.shadowRootOptions.mode}"> 576 ${S.Z.getTemplateHTML({})} 577 </template> 578 </media-gesture-receiver> 579 </slot> 580 <span part="layer vertical-layer"> 581 <slot name="top-chrome" part="top chrome"></slot> 582 <slot name="middle-chrome" part="middle chrome"></slot> 583 <slot name="centered-chrome" part="layer centered-layer center centered chrome"></slot> 584 585 <slot part="bottom chrome"></slot> 586 </span> 587 <slot name="dialog" part="layer dialog-layer"></slot> 588 `},_.Mq.customElements.get("media-container")||_.Mq.customElements.define("media-container",x)},76509:function(t,e,i){var s,a=i(87749),o=i(41470),n=i(86169),r=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},l=(t,e,i)=>(r(t,e,"read from private field"),i?i.call(t):e.get(t)),d=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},h=(t,e,i,s)=>(r(t,e,"write to private field"),s?s.call(t,i):e.set(t,i),i);class c extends n.Mq.HTMLElement{constructor(){if(super(),d(this,s,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let t=(0,o.OO)(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(t)}}static get observedAttributes(){return[a.MediaStateReceiverAttributes.MEDIA_CONTROLLER]}attributeChangedCallback(t,e,i){var o,n,r,d,c;t===a.MediaStateReceiverAttributes.MEDIA_CONTROLLER&&(e&&(null==(n=null==(o=l(this,s))?void 0:o.unassociateElement)||n.call(o,this),h(this,s,null)),i&&this.isConnected&&(h(this,s,null==(r=this.getRootNode())?void 0:r.getElementById(i)),null==(c=null==(d=l(this,s))?void 0:d.associateElement)||c.call(d,this)))}connectedCallback(){var t,e,i;let o=this.getAttribute(a.MediaStateReceiverAttributes.MEDIA_CONTROLLER);o&&(h(this,s,null==(t=this.getRootNode())?void 0:t.getElementById(o)),null==(i=null==(e=l(this,s))?void 0:e.associateElement)||i.call(e,this))}disconnectedCallback(){var t,e;null==(e=null==(t=l(this,s))?void 0:t.unassociateElement)||e.call(t,this),h(this,s,null)}}s=new WeakMap,c.shadowRootOptions={mode:"open"},c.getTemplateHTML=function(t){return` 589 <style> 590 :host { 591 592 box-sizing: border-box; 593 display: var(--media-control-display, var(--media-control-bar-display, inline-flex)); 594 color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238))); 595 --media-loading-indicator-icon-height: 44px; 596 } 597 598 ::slotted(media-time-range), 599 ::slotted(media-volume-range) { 600 min-height: 100%; 601 } 602 603 ::slotted(media-time-range), 604 ::slotted(media-clip-selector) { 605 flex-grow: 1; 606 } 607 608 ::slotted([role="menu"]) { 609 position: absolute; 610 } 611 </style> 612 613 <slot></slot> 614 `},n.Mq.customElements.get("media-control-bar")||n.Mq.customElements.define("media-control-bar",c)}
614,41975:function(t,e,i){i.d(e,{ZP:function(){return j}});var s,a,o,n,r,l,d,h,c,u,m,E,p,b,v,g,A=i(87809),T=i(86169),I=i(34707),_=i(11881),M=i(80543),f=i(87749),S=i(41470),L=i(96437),k=i(43616),y=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},w=(t,e,i)=>(y(t,e,"read from private field"),i?i.call(t):e.get(t)),U=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},R=(t,e,i,s)=>(y(t,e,"write to private field"),s?s.call(t,i):e.set(t,i),i),O=(t,e,i)=>(y(t,e,"access private method"),i);let C=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"," ","f","m","k","c","l","j",">","<","p"],D={DEFAULT_SUBTITLES:"defaultsubtitles",DEFAULT_STREAM_TYPE:"defaultstreamtype",DEFAULT_DURATION:"defaultduration",FULLSCREEN_ELEMENT:"fullscreenelement",HOTKEYS:"hotkeys",KEYBOARD_BACKWARD_SEEK_OFFSET:"keyboardbackwardseekoffset",KEYBOARD_FORWARD_SEEK_OFFSET:"keyboardforwardseekoffset",KEYBOARD_DOWN_VOLUME_STEP:"keyboarddownvolumestep",KEYBOARD_UP_VOLUME_STEP:"keyboardupvolumestep",KEYS_USED:"keysused",LANG:"lang",LOOP:"loop",LIVE_EDGE_OFFSET:"liveedgeoffset",NO_AUTO_SEEK_TO_LIVE:"noautoseektolive",NO_DEFAULT_STORE:"nodefaultstore",NO_HOTKEYS:"nohotkeys",NO_MUTED_PREF:"nomutedpref",NO_SUBTITLES_LANG_PREF:"nosubtitleslangpref",NO_VOLUME_PREF:"novolumepref",SEEK_TO_LIVE_OFFSET:"seektoliveoffset"};class N extends A.XN{constructor(){super(),U(this,c),U(this,m),U(this,p),U(this,v),this.mediaStateReceivers=[],this.associatedElementSubscriptions=new Map,U(this,s,new I.D(this,D.HOTKEYS)),U(this,a,void 0),U(this,o,void 0),U(this,n,null),U(this,r,void 0),U(this,l,void 0),U(this,d,t=>{var e;null==(e=w(this,o))||e.dispatch(t)}),U(this,h,void 0),this.associateElement(this);let t={};R(this,r,e=>{Object.entries(e).forEach(([e,i])=>{if(e in t&&t[e]===i)return;this.propagateMediaState(e,i);let s=e.toLowerCase(),a=new T.Mq.CustomEvent(f.ft[s],{composed:!0,detail:i});this.dispatchEvent(a)}),t=e}),this.hasAttribute(D.NO_HOTKEYS)?this.disableHotkeys():this.enableHotkeys()}static get observedAttributes(){return super.observedAttributes.concat(D.NO_HOTKEYS,D.HOTKEYS,D.DEFAULT_STREAM_TYPE,D.DEFAULT_SUBTITLES,D.DEFAULT_DURATION,D.NO_MUTED_PREF,D.NO_VOLUME_PREF,D.LANG,D.LOOP)}get mediaStore(){return w(this,o)}set mediaStore(t){var e,i;if(w(this,o)&&(null==(e=w(this,l))||e.call(this),R(this,l,void 0)),R(this,o,t),!w(this,o)&&!this.hasAttribute(D.NO_DEFAULT_STORE)){O(this,c,u).call(this);return}R(this,l,null==(i=w(this,o))?void 0:i.subscribe(w(this,r)))}get fullscreenElement(){var t;return null!=(t=w(this,a))?t:this}set fullscreenElement(t){var e;this.hasAttribute(D.FULLSCREEN_ELEMENT)&&this.removeAttribute(D.FULLSCREEN_ELEMENT),R(this,a,t),null==(e=w(this,o))||e.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement})}get defaultSubtitles(){return(0,S.zc)(this,D.DEFAULT_SUBTITLES)}set defaultSubtitles(t){(0,S.Pj)(this,D.DEFAULT_SUBTITLES,t)}get defaultStreamType(){return(0,S.ST)(this,D.DEFAULT_STREAM_TYPE)}set defaultStreamType(t){(0,S.Lb)(this,D.DEFAULT_STREAM_TYPE,t)}get defaultDuration(){return(0,S.Uf)(this,D.DEFAULT_DURATION)}set defaultDuration(t){(0,S.AI)(this,D.DEFAULT_DURATION,t)}get noHotkeys(){return(0,S.zc)(this,D.NO_HOTKEYS)}set noHotkeys(t){(0,S.Pj)(this,D.NO_HOTKEYS,t)}get keysUsed(){return(0,S.ST)(this,D.KEYS_USED)}set keysUsed(t){(0,S.Lb)(this,D.KEYS_USED,t)}get liveEdgeOffset(){return(0,S.Uf)(this,D.LIVE_EDGE_OFFSET)}set liveEdgeOffset(t){(0,S.AI)(this,D.LIVE_EDGE_OFFSET,t)}get noAutoSeekToLive(){return(0,S.zc)(this,D.NO_AUTO_SEEK_TO_LIVE)}set noAutoSeekToLive(t){(0,S.Pj)(this,D.NO_AUTO_SEEK_TO_LIVE,t)}get noVolumePref(){return(0,S.zc)(this,D.NO_VOLUME_PREF)}set noVolumePref(t){(0,S.Pj)(this,D.NO_VOLUME_PREF,t)}get noMutedPref(){return(0,S.zc)(this,D.NO_MUTED_PREF)}set noMutedPref(t){(0,S.Pj)(this,D.NO_MUTED_PREF,t)}get noSubtitlesLangPref(){return(0,S.zc)(this,D.NO_SUBTITLES_LANG_PREF)}set noSubtitlesLangPref(t){(0,S.Pj)(this,D.NO_SUBTITLES_LANG_PREF,t)}get noDefaultStore(){return(0,S.zc)(this,D.NO_DEFAULT_STORE)}set noDefaultStore(t){(0,S.Pj)(this,D.NO_DEFAULT_STORE,t)}attributeChangedCallback(t,e,i){var n,r,l,d,h,c,u,m,E,p,b,v;if(super.attributeChangedCallback(t,e,i),t===D.NO_HOTKEYS)i!==e&&""===i?(this.hasAttribute(D.HOTKEYS)&&console.warn("Media Chrome: Both `hotkeys` and `nohotkeys` have been set. All hotkeys will be disabled."),this.disableHotkeys()):i!==e&&null===i&&this.enableHotkeys();else if(t===D.HOTKEYS)w(this,s).value=i;else if(t===D.DEFAULT_SUBTITLES&&i!==e)null==(n=w(this,o))||n.dispatch({type:"optionschangerequest",detail:{defaultSubtitles:this.hasAttribute(D.DEFAULT_SUBTITLES)}});else if(t===D.DEFAULT_STREAM_TYPE)null==(l=w(this,o))||l.dispatch({type:"optionschangerequest",detail:{defaultStreamType:null!=(r=this.getAttribute(D.DEFAULT_STREAM_TYPE))?r:void 0}});else if(t===D.LIVE_EDGE_OFFSET)null==(d=w(this,o))||d.dispatch({type:"optionschangerequest",detail:{liveEdgeOffset:this.hasAttribute(D.LIVE_EDGE_OFFSET)?+this.getAttribute(D.LIVE_EDGE_OFFSET):void 0,seekToLiveOffset:this.hasAttribute(D.SEEK_TO_LIVE_OFFSET)?void 0:+this.getAttribute(D.LIVE_EDGE_OFFSET)}});else if(t===D.SEEK_TO_LIVE_OFFSET)null==(h=w(this,o))||h.dispatch({type:"optionschangerequest",detail:{seekToLiveOffset:this.hasAttribute(D.SEEK_TO_LIVE_OFFSET)?+this.getAttribute(D.SEEK_TO_LIVE_OFFSET):void 0}});else if(t===D.NO_AUTO_SEEK_TO_LIVE)null==(c=w(this,o))||c.dispatch({type:"optionschangerequest",detail:{noAutoSeekToLive:this.hasAttribute(D.NO_AUTO_SEEK_TO_LIVE)}});else if(t===D.FULLSCREEN_ELEMENT){let t=i?null==(u=this.getRootNode())?void 0:u.getElementById(i):void 0;
614R(this,a,t),null==(m=w(this,o))||m.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement})}else t===D.LANG&&i!==e?((0,k.m)(i),null==(E=w(this,o))||E.dispatch({type:"optionschangerequest",detail:{mediaLang:i}})):t===D.LOOP&&i!==e?null==(p=w(this,o))||p.dispatch({type:f.MediaUIEvents.MEDIA_LOOP_REQUEST,detail:null!=i}):t===D.NO_VOLUME_PREF&&i!==e?null==(b=w(this,o))||b.dispatch({type:"optionschangerequest",detail:{noVolumePref:this.hasAttribute(D.NO_VOLUME_PREF)}}):t===D.NO_MUTED_PREF&&i!==e&&(null==(v=w(this,o))||v.dispatch({type:"optionschangerequest",detail:{noMutedPref:this.hasAttribute(D.NO_MUTED_PREF)}}))}connectedCallback(){var t,e;w(this,o)||this.hasAttribute(D.NO_DEFAULT_STORE)||O(this,c,u).call(this),null==(t=w(this,o))||t.dispatch({type:"documentelementchangerequest",detail:T.tj}),super.connectedCallback(),w(this,o)&&!w(this,l)&&R(this,l,null==(e=w(this,o))?void 0:e.subscribe(w(this,r))),void 0!==w(this,h)&&w(this,o)&&this.media&&setTimeout(()=>{var t,e,i;(null==(e=null==(t=this.media)?void 0:t.textTracks)?void 0:e.length)&&(null==(i=w(this,o))||i.dispatch({type:f.MediaUIEvents.MEDIA_TOGGLE_SUBTITLES_REQUEST,detail:w(this,h)}))},0),this.hasAttribute(D.NO_HOTKEYS)?this.disableHotkeys():this.enableHotkeys()}disconnectedCallback(){var t,e,i,s,a;if(null==(t=super.disconnectedCallback)||t.call(this),w(this,o)){let t=w(this,o).getState();R(this,h,!!(null==(e=t.mediaSubtitlesShowing)?void 0:e.length)),null==(i=w(this,o))||i.dispatch({type:"documentelementchangerequest",detail:void 0}),null==(s=w(this,o))||s.dispatch({type:f.MediaUIEvents.MEDIA_TOGGLE_SUBTITLES_REQUEST,detail:!1})}w(this,l)&&(null==(a=w(this,l))||a.call(this),R(this,l,void 0))}mediaSetCallback(t){var e;super.mediaSetCallback(t),null==(e=w(this,o))||e.dispatch({type:"mediaelementchangerequest",detail:t}),t.hasAttribute("tabindex")||(t.tabIndex=-1)}mediaUnsetCallback(t){var e;super.mediaUnsetCallback(t),null==(e=w(this,o))||e.dispatch({type:"mediaelementchangerequest",detail:void 0})}propagateMediaState(t,e){G(this.mediaStateReceivers,t,e)}associateElement(t){if(!t)return;let{associatedElementSubscriptions:e}=this;if(e.has(t))return;let i=Y(t,this.registerMediaStateReceiver.bind(this),this.unregisterMediaStateReceiver.bind(this));Object.values(f.MediaUIEvents).forEach(e=>{t.addEventListener(e,w(this,d))}),e.set(t,i)}unassociateElement(t){if(!t)return;let{associatedElementSubscriptions:e}=this;e.has(t)&&(e.get(t)(),e.delete(t),Object.values(f.MediaUIEvents).forEach(e=>{t.removeEventListener(e,w(this,d))}))}registerMediaStateReceiver(t){if(!t)return;let e=this.mediaStateReceivers;!(e.indexOf(t)>-1)&&(e.push(t),w(this,o)&&Object.entries(w(this,o).getState()).forEach(([e,i])=>{G([t],e,i)}))}unregisterMediaStateReceiver(t){let e=this.mediaStateReceivers,i=e.indexOf(t);i<0||e.splice(i,1)}enableHotkeys(){this.addEventListener("keydown",O(this,p,b))}disableHotkeys(){this.removeEventListener("keydown",O(this,p,b)),this.removeEventListener("keyup",O(this,m,E))}get hotkeys(){return(0,S.ST)(this,D.HOTKEYS)}set hotkeys(t){(0,S.Lb)(this,D.HOTKEYS,t)}keyboardShortcutHandler(t){var e,i,a,n,r,l,d,h,c;let u,m,E;let p=t.target;if(!((null!=(a=null!=(i=null==(e=p.getAttribute(D.KEYS_USED))?void 0:e.split(" "))?i:null==p?void 0:p.keysUsed)?a:[]).map(t=>"Space"===t?" ":t).filter(Boolean).includes(t.key)||w(this,s).contains(`no${t.key.toLowerCase()}`)||" "===t.key&&w(this,s).contains("nospace"))&&!(t.shiftKey&&("/"===t.key||"?"===t.key)&&w(this,s).contains("noshift+/")))switch(t.key){case" ":case"k":u=w(this,o).getState().mediaPaused?f.MediaUIEvents.MEDIA_PLAY_REQUEST:f.MediaUIEvents.MEDIA_PAUSE_REQUEST,this.dispatchEvent(new T.Mq.CustomEvent(u,{composed:!0,bubbles:!0}));break;case"m":u="off"===this.mediaStore.getState().mediaVolumeLevel?f.MediaUIEvents.MEDIA_UNMUTE_REQUEST:f.MediaUIEvents.MEDIA_MUTE_REQUEST,this.dispatchEvent(new T.Mq.CustomEvent(u,{composed:!0,bubbles:!0}));break;case"f":u=this.mediaStore.getState().mediaIsFullscreen?f.MediaUIEvents.MEDIA_EXIT_FULLSCREEN_REQUEST:f.MediaUIEvents.MEDIA_ENTER_FULLSCREEN_REQUEST,this.dispatchEvent(new T.Mq.CustomEvent(u,{composed:!0,bubbles:!0}));break;case"c":this.dispatchEvent(new T.Mq.CustomEvent(f.MediaUIEvents.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}));break;case"ArrowLeft":case"j":{let t=this.hasAttribute(D.KEYBOARD_BACKWARD_SEEK_OFFSET)?+this.getAttribute(D.KEYBOARD_BACKWARD_SEEK_OFFSET):10;m=Math.max((null!=(n=this.mediaStore.getState().mediaCurrentTime)?n:0)-t,0),E=new T.Mq.CustomEvent(f.MediaUIEvents.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:m}),this.dispatchEvent(E);break}case"ArrowRight":case"l":{let t=this.hasAttribute(D.KEYBOARD_FORWARD_SEEK_OFFSET)?+this.getAttribute(D.KEYBOARD_FORWARD_SEEK_OFFSET):10;m=Math.max((null!=(r=this.mediaStore.getState().mediaCurrentTime)?r:0)+t,0),E=new T.Mq.CustomEvent(f.MediaUIEvents.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:m}),this.dispatchEvent(E);break}case"ArrowUp":{let t=this.hasAttribute(D.KEYBOARD_UP_VOLUME_STEP)?+this.getAttribute(D.KEYBOARD_UP_VOLUME_STEP):.025;m=Math.min((null!=(l=this.mediaStore.getState().mediaVolume)?l:1)+t,1),E=new T.Mq.CustomEvent(f.MediaUIEvents.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:m}),this.dispatchEvent(E);break}case"ArrowDown":{let t=this.hasAttribute(D.KEYBOARD_DOWN_VOLUME_STEP)?+this.getAttribute(D.KEYBOARD_DOWN_VOLUME_STEP):.025;m=Math.max((null!=(d=this.mediaStore.getState().mediaVolume)?d:1)-t,0),E=new T.Mq.CustomEvent(f.MediaUIEvents.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:m}),this.dispatchEvent(E);break}case"<":m=Math.max((null!=(h=this.mediaStore.getState().mediaPlaybackRate)?h:1)-.25,.25).toFixed(2),E=new T.Mq.CustomEvent(f.MediaUIEvents.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:m}),this.dispatchEvent(E);break;case">":m=Math.min((null!=(c=this.mediaStore.getState().mediaPlaybackRate)?c:1)+.25,2).toFixed(2),E=new T.Mq.CustomEvent(f.MediaUIEvents.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:m}),this.dispatchEvent(E);break;case"/":case"?":t.shiftKey&&O(this,v,g).call(this);break;case"p":u=this.mediaStore.getState().mediaIsPip?f.MediaUIEvents.MEDIA_EXIT_PIP_REQUEST:f.MediaUIEvents.MEDIA_ENTER_PIP_REQUEST,E=new T.Mq.CustomEvent(u,{composed:!0,bubbles:!0}),this.dispatchEvent(E)}}}s=new WeakMap,a=new WeakMap,o=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap,d=new WeakMap,h=new WeakMap,c=new WeakSet,u=function(){var t;this.mediaStore=(0,L.w)({media:this.media,fullscreenElement:this.fullscreenElement,options:{defaultSubtitles:this.hasAttribute(D.DEFAULT_SUBTITLES),defaultDuration:this.hasAttribute(D.DEFAULT_DURATION)?+this.getAttribute(D.DEFAULT_DURATION):void 0,defaultStreamType:null!=(t=this.getAttribute(D.DEFAULT_STREAM_TYPE))?t:void 0,liveEdgeOffset:this.hasAttribute(D.LIVE_EDGE_OFFSET)?+this.getAttribute(D.LIVE_EDGE_OFFSET):void 0,seekToLiveOffset:this.hasAttribute(D.SEEK_TO_LIVE_OFFSET)?+this.getAttribute(D.SEEK_TO_LIVE_OFFSET):this.hasAttribute(D.LIVE_EDGE_OFFSET)?+this.getAttribute(D.LIVE_EDGE_OFFSET):void 0,noAutoSeekToLive:this.hasAttribute(D.NO_AUTO_SEEK_TO_LIVE),noVolumePref:this.hasAttribute(D.NO_VOLUME_PREF),noMutedPref:this.hasAttribute(D.NO_MUTED_PREF),noSubtitlesLangPref:this.hasAttribute(D.NO_SUBTITLES_LANG_PREF)}})},m=new WeakSet,E=function(t){let{key:e,shiftKey:i}=t;if(!(i&&("/"===e||"?"===e)||C.includes(e))){this.removeEventListener("keyup",O(this,m,E));return}this.keyboardShortcutHandler(t)},p=new WeakSet,b=function(t){var e;
614let{metaKey:i,altKey:a,key:o,shiftKey:r}=t,l=r&&("/"===o||"?"===o);if(l&&(null==(e=w(this,n))?void 0:e.open)||i||a||!l&&!C.includes(o)){this.removeEventListener("keyup",O(this,m,E));return}let d=t.target,h=d instanceof HTMLElement&&("media-volume-range"===d.tagName.toLowerCase()||"media-time-range"===d.tagName.toLowerCase());![" ","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(o)||w(this,s).contains(`no${o.toLowerCase()}`)||" "===o&&w(this,s).contains("nospace")||h||t.preventDefault(),this.addEventListener("keyup",O(this,m,E),{once:!0})},v=new WeakSet,g=function(){w(this,n)||(R(this,n,T.tj.createElement("media-keyboard-shortcuts-dialog")),this.appendChild(w(this,n))),w(this,n).open=!0};let x=Object.values(f.MediaUIAttributes),P=Object.values(f.Bm),H=t=>{var e,i,s,a;let{observedAttributes:o}=t.constructor;!o&&(null==(e=t.nodeName)?void 0:e.includes("-"))&&(T.Mq.customElements.upgrade(t),{observedAttributes:o}=t.constructor);let n=null==(a=null==(s=null==(i=null==t?void 0:t.getAttribute)?void 0:i.call(t,f.MediaStateReceiverAttributes.MEDIA_CHROME_ATTRIBUTES))?void 0:s.split)?void 0:a.call(s,/\s+/);return Array.isArray(o||n)?(o||n).filter(t=>x.includes(t)):[]},F=t=>{var e,i;return(null==(e=t.nodeName)?void 0:e.includes("-"))&&T.Mq.customElements.get(null==(i=t.nodeName)?void 0:i.toLowerCase())&&!(t instanceof T.Mq.customElements.get(t.nodeName.toLowerCase()))&&T.Mq.customElements.upgrade(t),P.some(e=>e in t)},q=t=>F(t)||!!H(t).length,B=t=>{var e;return null==(e=null==t?void 0:t.join)?void 0:e.call(t,":")},$={[f.MediaUIAttributes.MEDIA_SUBTITLES_LIST]:M.fj,[f.MediaUIAttributes.MEDIA_SUBTITLES_SHOWING]:M.fj,[f.MediaUIAttributes.MEDIA_SEEKABLE]:B,[f.MediaUIAttributes.MEDIA_BUFFERED]:t=>null==t?void 0:t.map(B).join(" "),[f.MediaUIAttributes.MEDIA_PREVIEW_COORDS]:t=>null==t?void 0:t.join(" "),[f.MediaUIAttributes.MEDIA_RENDITION_LIST]:_.UO,[f.MediaUIAttributes.MEDIA_AUDIO_TRACK_LIST]:_.Zp},V=async(t,e,i)=>{var s,a;if(t.isConnected||await (0,_.gw)(0),"boolean"==typeof i||null==i)return(0,S.Pj)(t,e,i);if("number"==typeof i)return(0,S.AI)(t,e,i);
614if("string"==typeof i)return(0,S.Lb)(t,e,i);if(Array.isArray(i)&&!i.length)return t.removeAttribute(e);let o=null!=(a=null==(s=$[e])?void 0:s.call($,i))?a:i;return t.setAttribute(e,o)},W=t=>{var e;return!!(null==(e=t.closest)?void 0:e.call(t,'*[slot="media"]'))},K=(t,e)=>{if(W(t))return;let i=(t,e)=>{var i,s;q(t)&&e(t);let{children:a=[]}=null!=t?t:{};[...a,...null!=(s=null==(i=null==t?void 0:t.shadowRoot)?void 0:i.children)?s:[]].forEach(t=>K(t,e))},s=null==t?void 0:t.nodeName.toLowerCase();if(s.includes("-")&&!q(t)){T.Mq.customElements.whenDefined(s).then(()=>{i(t,e)});return}i(t,e)},G=(t,e,i)=>{t.forEach(t=>{if(e in t){t[e]=i;return}let s=H(t),a=e.toLowerCase();s.includes(a)&&V(t,a,i)})},Y=(t,e,i)=>{K(t,e);let s=t=>{var i;e(null!=(i=null==t?void 0:t.composedPath()[0])?i:t.target)},a=t=>{var e;i(null!=(e=null==t?void 0:t.composedPath()[0])?e:t.target)};t.addEventListener(f.MediaUIEvents.REGISTER_MEDIA_STATE_RECEIVER,s),t.addEventListener(f.MediaUIEvents.UNREGISTER_MEDIA_STATE_RECEIVER,a);let o=[],n=t=>{let s=t.target;"media"!==s.name&&(o.forEach(t=>K(t,i)),(o=[...s.assignedElements({flatten:!0})]).forEach(t=>K(t,e)))};t.addEventListener("slotchange",n);let r=new MutationObserver(t=>{t.forEach(t=>{let{addedNodes:s=[],removedNodes:a=[],type:o,target:n,attributeName:r}=t;"childList"===o?(Array.prototype.forEach.call(s,t=>K(t,e)),Array.prototype.forEach.call(a,t=>K(t,i))):"attributes"===o&&r===f.MediaStateReceiverAttributes.MEDIA_CHROME_ATTRIBUTES&&(q(n)?e(n):i(n))})});return r.observe(t,{childList:!0,attributes:!0,subtree:!0}),()=>{K(t,i),t.removeEventListener("slotchange",n),r.disconnect(),t.removeEventListener(f.MediaUIEvents.REGISTER_MEDIA_STATE_RECEIVER,s),t.removeEventListener(f.MediaUIEvents.UNREGISTER_MEDIA_STATE_RECEIVER,a)}};T.Mq.customElements.get("media-controller")||T.Mq.customElements.define("media-controller",N);var j=N},26503:function(t,e,i){var s,a=i(68e3),o=i(86169),n=i(92460),r=i(87749),l=i(41470),d=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},h=(t,e,i)=>(d(t,e,"read from private field"),i?i.call(t):e.get(t)),c=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},u=(t,e,i,s)=>(d(t,e,"write to private field"),s?s.call(t,i):e.set(t,i),i);class m extends a.s{constructor(){var t;super(),c(this,s,void 0),u(this,s,this.shadowRoot.querySelector("slot")),h(this,s).textContent=(0,n.mr)(null!=(t=this.mediaDuration)?t:0)}static get observedAttributes(){return[...super.observedAttributes,r.MediaUIAttributes.MEDIA_DURATION]}attributeChangedCallback(t,e,i){t===r.MediaUIAttributes.MEDIA_DURATION&&(h(this,s).textContent=(0,n.mr)(+i)),super.attributeChangedCallback(t,e,i)}get mediaDuration(){return(0,l.Uf)(this,r.MediaUIAttributes.MEDIA_DURATION)}set mediaDuration(t){(0,l.AI)(this,r.MediaUIAttributes.MEDIA_DURATION,t)}}s=new WeakMap,m.getSlotTemplateHTML=function(t,e){return` 615 <slot>${(0,n.mr)(e.mediaDuration)}</slot> 616 `},o.Mq.customElements.get("media-duration-display")||o.Mq.customElements.define("media-duration-display",m)},42105:function(t,e,i){i.d(e,{Z:function(){return b}});var s,a=i(86169),o=i(87749),n=i(12677),r=i(30520),l=i(41470),d=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},h=(t,e,i)=>(d(t,e,"read from private field"),i?i.call(t):e.get(t)),c=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},u=(t,e,i,s)=>(d(t,e,"write to private field"),s?s.call(t,i):e.set(t,i),i);function m(t){var e;let{title:i,message:s}=null!=(e=(0,n.Z)(t))?e:{},a="";return i&&(a+=`<slot name="error-${t.code}-title"><h3>${i}</h3></slot>`),s&&(a+=`<slot name="error-${t.code}-message"><p>${s}</p></slot>`),a}let E=[o.MediaUIAttributes.MEDIA_ERROR_CODE,o.MediaUIAttributes.MEDIA_ERROR_MESSAGE];class p extends r._v{constructor(){super(...arguments),c(this,s,null)}static get observedAttributes(){return[...super.observedAttributes,...E]}formatErrorMessage(t){return this.constructor.formatErrorMessage(t)}attributeChangedCallback(t,e,i){var s;if(super.attributeChangedCallback(t,e,i),!E.includes(t))return;let a=null!=(s=this.mediaError)?s:{code:this.mediaErrorCode,message:this.mediaErrorMessage};
616this.open=a.code&&null!==(0,n.Z)(a),this.open&&(this.shadowRoot.querySelector("slot").name=`error-${this.mediaErrorCode}`,this.shadowRoot.querySelector("#content").innerHTML=this.formatErrorMessage(a))}get mediaError(){return h(this,s)}set mediaError(t){u(this,s,t)}get mediaErrorCode(){return(0,l.Uf)(this,"mediaerrorcode")}set mediaErrorCode(t){(0,l.AI)(this,"mediaerrorcode",t)}get mediaErrorMessage(){return(0,l.ST)(this,"mediaerrormessage")}set mediaErrorMessage(t){(0,l.Lb)(this,"mediaerrormessage",t)}}s=new WeakMap,p.getSlotTemplateHTML=function(t){return` 617 <style> 618 :host { 619 background: rgb(20 20 30 / .8); 620 } 621 622 #content { 623 display: block; 624 padding: 1.2em 1.5em; 625 } 626 627 h3, 628 p { 629 margin-block: 0 .3em; 630 } 631 </style> 632 <slot name="error-${t.mediaerrorcode}" id="content"> 633 ${m({code:+t.mediaerrorcode,message:t.mediaerrormessage})} 634 </slot> 635 `},p.formatErrorMessage=m,a.Mq.customElements.get("media-error-dialog")||a.Mq.customElements.define("media-error-dialog",p);var b=p},48681:function(t,e,i){var s,a=i(24611),o=i(86169),n=i(87749),r=i(43616),l=i(41470),d=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},h=(t,e,i)=>(d(t,e,"read from private field"),i?i.call(t):e.get(t)),c=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},u=(t,e,i,s)=>(d(t,e,"write to private field"),s?s.call(t,i):e.set(t,i),i);let m=`<svg aria-hidden="true" viewBox="0 0 26 24"> 636 <path d="M16 3v2.5h3.5V9H22V3h-6ZM4 9h2.5V5.5H10V3H4v6Zm15.5 9.5H16V21h6v-6h-2.5v3.5ZM6.5 15H4v6h6v-2.5H6.5V15Z"/> 637</svg>`,E=`<svg aria-hidden="true" viewBox="0 0 26 24"> 638 <path d="M18.5 6.5V3H16v6h6V6.5h-3.5ZM16 21h2.5v-3.5H22V15h-6v6ZM4 17.5h3.5V21H10v-6H4v2.5Zm3.5-11H4V9h6V3H7.5v3.5Z"/> 639</svg>`,p=t=>{let e=t.mediaIsFullscreen?(0,r.t)("exit fullscreen mode"):(0,r.t)("enter fullscreen mode");t.setAttribute("aria-label",e)};class b extends a.Z{constructor(){super(...arguments),c(this,s,null)}static get observedAttributes(){return[...super.observedAttributes,n.MediaUIAttributes.MEDIA_IS_FULLSCREEN,n.MediaUIAttributes.MEDIA_FULLSCREEN_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),p(this)}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),t===n.MediaUIAttributes.MEDIA_IS_FULLSCREEN&&p(this)}get mediaFullscreenUnavailable(){return(0,l.ST)(this,n.MediaUIAttributes.MEDIA_FULLSCREEN_UNAVAILABLE)}set mediaFullscreenUnavailable(t){(0,l.Lb)(this,n.MediaUIAttributes.MEDIA_FULLSCREEN_UNAVAILABLE,t)}get mediaIsFullscreen(){return(0,l.zc)(this,n.MediaUIAttributes.MEDIA_IS_FULLSCREEN)}set mediaIsFullscreen(t){(0,l.Pj)(this,n.MediaUIAttributes.MEDIA_IS_FULLSCREEN,t)}handleClick(t){u(this,s,t);let e=h(this,s) instanceof PointerEvent,i=this.mediaIsFullscreen?new o.Mq.CustomEvent(n.MediaUIEvents.MEDIA_EXIT_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0}):new o.Mq.CustomEvent(n.MediaUIEvents.MEDIA_ENTER_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(i)}}s=new WeakMap,b.getSlotTemplateHTML=function(t){return` 640 <style> 641 :host([${n.MediaUIAttributes.MEDIA_IS_FULLSCREEN}]) slot[name=icon] slot:not([name=exit]) { 642 display: none !important; 643 } 644 645 646 :host(:not([${n.MediaUIAttributes.MEDIA_IS_FULLSCREEN}])) slot[name=icon] slot:not([name=enter]) { 647 display: none !important; 648 } 649 650 :host([${n.MediaUIAttributes.MEDIA_IS_FULLSCREEN}]) slot[name=tooltip-enter], 651 :host(:not([${n.MediaUIAttributes.MEDIA_IS_FULLSCREEN}])) slot[name=tooltip-exit] { 652 display: none; 653 } 654 </style> 655 656 <slot name="icon"> 657 <slot name="enter">${m}</slot> 658 <slot name="exit">${E}</slot> 659 </slot> 660 `},b.getTooltipContentHTML=function(){return` 661 <slot name="tooltip-enter">${(0,r.t)("Enter fullscreen mode")}</slot> 662 <slot name="tooltip-exit">${(0,r.t)("Exit fullscreen mode")}</slot> 663 `},o.Mq.customElements.get("media-fullscreen-button")||o.Mq.customElements.define("media-fullscreen-button",b)},13920:function(t,e,i){i.d(e,{Z:function(){return u}});var s,a=i(87749),o=i(41470),n=i(86169),r=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},l=(t,e,i)=>(r(t,e,"read from private field"),i?i.call(t):e.get(t)),d=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},h=(t,e,i,s)=>(r(t,e,"write to private field"),s?s.call(t,i):e.set(t,i),i);class c extends n.Mq.HTMLElement{constructor(){if(super(),d(this,s,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let t=(0,o.OO)(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(t)}}static get observedAttributes(){return[a.MediaStateReceiverAttributes.MEDIA_CONTROLLER,a.MediaUIAttributes.MEDIA_PAUSED]}attributeChangedCallback(t,e,i){var o,n,r,d,c;t===a.MediaStateReceiverAttributes.MEDIA_CONTROLLER&&(e&&(null==(n=null==(o=l(this,s))?void 0:o.unassociateElement)||n.call(o,this),h(this,s,null)),i&&this.isConnected&&(h(this,s,null==(r=this.getRootNode())?void 0:r.getElementById(i)),null==(c=null==(d=l(this,s))?void 0:d.associateElement)||c.call(d,this)))}connectedCallback(){var t,e,i,n;this.tabIndex=-1,this.setAttribute("aria-hidden","true"),h(this,s,function(t){var e;let i=t.getAttribute(a.MediaStateReceiverAttributes.MEDIA_CONTROLLER);return i?null==(e=t.getRootNode())?void 0:e.getElementById(i):(0,o.l5)(t,"media-controller")}(this)),this.getAttribute(a.MediaStateReceiverAttributes.MEDIA_CONTROLLER)&&(null==(e=null==(t=l(this,s))?void 0:t.associateElement)||e.call(t,this)),null==(i=l(this,s))||i.addEventListener("pointerdown",this),null==(n=l(this,s))||n.addEventListener("click",this)}disconnectedCallback(){var t,e,i,o;this.getAttribute(a.MediaStateReceiverAttributes.MEDIA_CONTROLLER)&&(null==(e=null==(t=l(this,s))?void 0:t.unassociateElement)||e.call(t,this)),null==(i=l(this,s))||i.removeEventListener("pointerdown",this),null==(o=l(this,s))||o.removeEventListener("click",this),h(this,s,null)}handleEvent(t){var e;let i=null==(e=t.composedPath())?void 0:e[0];if(["video","media-controller"].includes(null==i?void 0:i.localName)){if("pointerdown"===t.type)this._pointerType=t.pointerType;else if("click"===t.type){let{clientX:e,clientY:i}=t,{left:s,top:o,width:n,height:r}=this.getBoundingClientRect(),l=e-s,d=i-o;if(l<0||d<0||l>n||d>r||0===n&&0===r)return;let h=this._pointerType||"mouse";if(this._pointerType=void 0,h===a.Et.TOUCH){this.handleTap(t);return}if(h===a.Et.MOUSE||h===a.Et.PEN){this.handleMouseClick(t);return}}}}get mediaPaused(){return(0,o.zc)(this,a.MediaUIAttributes.MEDIA_PAUSED)}set mediaPaused(t){(0,o.Pj)(this,a.MediaUIAttributes.MEDIA_PAUSED,t)}handleTap(t){}handleMouseClick(t){let e=this.mediaPaused?a.MediaUIEvents.MEDIA_PLAY_REQUEST:a.MediaUIEvents.MEDIA_PAUSE_REQUEST;this.dispatchEvent(new n.Mq.CustomEvent(e,{composed:!0,bubbles:!0}))}}s=new WeakMap,c.shadowRootOptions={mode:"open"},c.getTemplateHTML=function(t){return` 664 <style> 665 :host { 666 display: var(--media-control-display, var(--media-gesture-receiver-display, inline-block)); 667 box-sizing: border-box; 668 } 669 </style> 670 `},n.Mq.customElements.get("media-gesture-receiver")||n.Mq.customElements.define("media-gesture-receiver",c);var u=c}
670,45892:function(t,e,i){var s,a,o=i(86169),n=i(30520),r=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},l=(t,e,i)=>(r(t,e,"read from private field"),i?i.call(t):e.get(t)),d=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)};class h extends n._v{constructor(){super(...arguments),d(this,s,t=>{var e;if(!this.open)return;let i=null==(e=this.shadowRoot)?void 0:e.querySelector("#content");if(!i)return;let s=t.composedPath(),a=s[0]===this||s.includes(this),o=s.includes(i);a&&!o&&(this.open=!1)}),d(this,a,t=>{if(!this.open)return;let e=t.shiftKey&&("/"===t.key||"?"===t.key);"Escape"!==t.key&&!e||t.ctrlKey||t.altKey||t.metaKey||(this.open=!1,t.preventDefault(),t.stopPropagation())})}connectedCallback(){super.connectedCallback(),this.open&&(this.addEventListener("click",l(this,s)),document.addEventListener("keydown",l(this,a)))}disconnectedCallback(){this.removeEventListener("click",l(this,s)),document.removeEventListener("keydown",l(this,a))}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),"open"===t&&(this.open?(this.addEventListener("click",l(this,s)),document.addEventListener("keydown",l(this,a))):(this.removeEventListener("click",l(this,s)),document.removeEventListener("keydown",l(this,a))))}}s=new WeakMap,a=new WeakMap,h.getSlotTemplateHTML=function(t){return` 671 <style> 672 :host { 673 position: fixed; 674 top: 0; 675 left: 0; 676 z-index: 9999; 677 background: rgb(20 20 30 / .8); 678 backdrop-filter: blur(10px); 679 } 680 681 #content { 682 display: block; 683 width: clamp(400px, 40vw, 700px); 684 max-width: 90vw; 685 text-align: left; 686 } 687 688 h2 { 689 margin: 0 0 1.5rem 0; 690 font-size: 1.5rem; 691 font-weight: 500; 692 text-align: center; 693 } 694 695 .shortcuts-table { 696 width: 100%; 697 border-collapse: collapse; 698 } 699 700 .shortcuts-table tr { 701 border-bottom: 1px solid rgba(255, 255, 255, 0.1); 702 } 703 704 .shortcuts-table tr:last-child { 705 border-bottom: none; 706 } 707 708 .shortcuts-table td { 709 padding: 0.75rem 0.5rem; 710 } 711 712 .shortcuts-table td:first-child { 713 text-align: right; 714 padding-right: 1rem; 715 width: 40%; 716 min-width: 120px; 717 } 718 719 .shortcuts-table td:last-child { 720 padding-left: 1rem; 721 } 722 723 .key { 724 display: inline-block; 725 background: rgba(255, 255, 255, 0.15); 726 border: 1px solid rgba(255, 255, 255, 0.2); 727 border-radius: 4px; 728 padding: 0.25rem 0.5rem; 729 font-family: 'Courier New', monospace; 730 font-size: 0.9rem; 731 font-weight: 500; 732 min-width: 1.5rem; 733 text-align: center; 734 margin: 0 0.2rem; 735 } 736 737 .description { 738 color: rgba(255, 255, 255, 0.9); 739 font-size: 0.95rem; 740 } 741 742 .key-combo { 743 display: flex; 744 align-items: center; 745 justify-content: flex-end; 746 gap: 0.3rem; 747 } 748 749 .key-separator { 750 color: rgba(255, 255, 255, 0.5); 751 font-size: 0.9rem; 752 } 753 </style> 754 <slot id="content"> 755 ${function(){let t=[{keys:["Space","k"],description:"Toggle Playback"},{keys:["m"],description:"Toggle mute"},{keys:["f"],description:"Toggle fullscreen"},{keys:["c"],description:"Toggle captions or subtitles, if available"},{keys:["p"],description:"Toggle Picture in Picture"},{keys:["â","j"],description:"Seek back 10s"},{keys:["â","l"],description:"Seek forward 10s"},{keys:["â"],description:"Turn volume up"},{keys:["â"],description:"Turn volume down"},{keys:["< (SHIFT+,)"],description:"Decrease playback rate"},{keys:["> (SHIFT+.)"],description:"Increase playback rate"}].map(({keys:t,description:e})=>{let i=t.map((t,e)=>e>0?`<span class="key-separator">or</span><span class="key">${t}</span>`:`<span class="key">${t}</span>`).join("");return` 756 <tr> 757 <td> 758 <div class="key-combo">${i}</div> 759 </td> 760 <td class="description">${e}</td> 761 </tr> 762 `}).join("");return` 763 <h2>Keyboard Shortcuts</h2> 764 <table class="shortcuts-table">${t}</table> 765 `}()} 766 </slot> 767 `},o.Mq.customElements.get("media-keyboard-shortcuts-dialog")||o.Mq.customElements.define("media-keyboard-shortcuts-dialog",h)}
767,47093:function(t,e,i){var s=i(24611),a=i(86169),o=i(87749),n=i(41470),r=i(43616);let{MEDIA_TIME_IS_LIVE:l,MEDIA_PAUSED:d}=o.MediaUIAttributes,{MEDIA_SEEK_TO_LIVE_REQUEST:h,MEDIA_PLAY_REQUEST:c}=o.MediaUIEvents,u=t=>{var e;let i=t.mediaPaused||!t.mediaTimeIsLive,s=i?(0,r.t)("seek to live"):(0,r.t)("playing live");t.setAttribute("aria-label",s);let a=null==(e=t.shadowRoot)?void 0:e.querySelector('slot[name="text"]');a&&(a.textContent=(0,r.t)("live")),i?t.removeAttribute("aria-disabled"):t.setAttribute("aria-disabled","true")};class m extends s.Z{static get observedAttributes(){return[...super.observedAttributes,l,d]}connectedCallback(){super.connectedCallback(),u(this)}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),u(this)}get mediaPaused(){return(0,n.zc)(this,o.MediaUIAttributes.MEDIA_PAUSED)}set mediaPaused(t){(0,n.Pj)(this,o.MediaUIAttributes.MEDIA_PAUSED,t)}get mediaTimeIsLive(){return(0,n.zc)(this,o.MediaUIAttributes.MEDIA_TIME_IS_LIVE)}set mediaTimeIsLive(t){(0,n.Pj)(this,o.MediaUIAttributes.MEDIA_TIME_IS_LIVE,t)}handleClick(){(this.mediaPaused||!this.mediaTimeIsLive)&&(this.dispatchEvent(new a.Mq.CustomEvent(h,{composed:!0,bubbles:!0})),this.hasAttribute(d)&&this.dispatchEvent(new a.Mq.CustomEvent(c,{composed:!0,bubbles:!0})))}}m.getSlotTemplateHTML=function(t){return` 768 <style> 769 :host { --media-tooltip-display: none; } 770 771 slot[name=indicator] > *, 772 :host ::slotted([slot=indicator]) { 773 774 min-width: auto; 775 fill: var(--media-live-button-icon-color, rgb(140, 140, 140)); 776 color: var(--media-live-button-icon-color, rgb(140, 140, 140)); 777 } 778 779 :host([${l}]:not([${d}])) slot[name=indicator] > *, 780 :host([${l}]:not([${d}])) ::slotted([slot=indicator]) { 781 fill: var(--media-live-button-indicator-color, rgb(255, 0, 0)); 782 color: var(--media-live-button-indicator-color, rgb(255, 0, 0)); 783 } 784 785 :host([${l}]:not([${d}])) { 786 cursor: var(--media-cursor, not-allowed); 787 } 788 789 slot[name=text]{ 790 text-transform: uppercase; 791 } 792 793 </style> 794 795 <slot name="indicator"><svg viewBox="0 0 6 12"><circle cx="3" cy="6" r="2"></circle></svg></slot> 796 797 <slot name="spacer"> </slot><slot name="text">${(0,r.t)("live")}</slot> 798 `},a.Mq.customElements.get("media-live-button")||a.Mq.customElements.define("media-live-button",m)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.