PageSourceSearch

https://www.worldgymnastics.tv/vendor.media.chrome-9e86ca7b.1073ff266e90d44f0e5f.chunk.js

js worldgymnastics.tv collected 2026-10-10 00:57:53 UTC 88,051 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ade675be-78c5-4048-8ff7-48cc402c8df0",e._sentryDebugIdIdentifier="sentry-dbid-ade675be-78c5-4048-8ff7-48cc402c8df0")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"fd14770b0e3ced745a61c590c523d9725d7b4f7a"}}catch(e){}}(),(self.webpackChunkstaylive_partnerplatform=self.webpackChunkstaylive_partnerplatform||[]).push([[2285],{16203:(e,t,i)=>{var a,n,r=i(17055),o=i(72358),s=i(50456),d=i(68218),l=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},m=(e,t,i)=>(l(e,t,"read from private field"),i?i.call(e):t.get(e)),u=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},c=(e,t,i,a)=>(l(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i);const h="loadingdelay",p="noautohide";class v extends o.Au.HTMLElement{constructor(){if(super(),u(this,a,void 0),u(this,n,500),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=(0,s.kg)(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[r.Ex.MEDIA_CONTROLLER,r.GC.MEDIA_PAUSED,r.GC.MEDIA_LOADING,h]}attributeChangedCallback(e,t,i){var n,o,s,d,l;e===h&&t!==i?this.loadingDelay=Number(i):e===r.Ex.MEDIA_CONTROLLER&&(t&&(null==(o=null==(n=m(this,a))?void 0:n.unassociateElement)||o.call(n,this),c(this,a,null)),i&&this.isConnected&&(c(this,a,null==(s=this.getRootNode())?void 0:s.getElementById(i)),null==(l=null==(d=m(this,a))?void 0:d.associateElement)||l.call(d,this)))}connectedCallback(){var e,t,i;const n=this.getAttribute(r.Ex.MEDIA_CONTROLLER);n&&(c(this,a,null==(e=this.getRootNode())?void 0:e.getElementById(n)),null==(i=null==(t=m(this,a))?void 0:t.associateElement)||i.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=m(this,a))?void 0:e.unassociateElement)||t.call(e,this),c(this,a,null)}get loadingDelay(){return m(this,n)}set loadingDelay(e){c(this,n,e);const{style:t}=(0,s.aQ)(this.shadowRoot,":host");t.setProperty("--_loading-indicator-delay",`var(--media-loading-indicator-transition-delay, ${e}ms)`)}get mediaPaused(){return(0,s.Y_)(this,r.GC.MEDIA_PAUSED)}set mediaPaused(e){(0,s.QW)(this,r.GC.MEDIA_PAUSED,e)}get mediaLoading(){return(0,s.Y_)(this,r.GC.MEDIA_LOADING)}set mediaLoading(e){(0,s.QW)(this,r.GC.MEDIA_LOADING,e)}get mediaController(){return(0,s.vT)(this,r.Ex.MEDIA_CONTROLLER)}set mediaController(e){(0,s.tA)(this,r.Ex.MEDIA_CONTROLLER,e)}get noAutohide(){return(0,s.Y_)(this,p)}set noAutohide(e){(0,s.QW)(this,p,e)}}a=new WeakMap,n=new WeakMap,v.shadowRootOptions={mode:"open"},v.getTemplateHTML=function(e){return`\n    <style>\n      :host {\n        display: var(--media-control-display, var(--media-loading-indicator-display, inline-block));\n        vertical-align: middle;\n        box-sizing: border-box;\n        --_loading-indicator-delay: var(--media-loading-indicator-transition-delay, 500ms);\n      }\n\n      #status {\n        color: rgba(0,0,0,0);\n        width: 0px;\n        height: 0px;\n      }\n\n      :host slot[name=icon] > *,\n      :host ::slotted([slot=icon]) {\n        opacity: var(--media-loading-indicator-opacity, 0);\n        transition: opacity 0.15s;\n      }\n\n      :host([${r.GC.MEDIA_LOADING}]:not([${r.GC.MEDIA_PAUSED}])) slot[name=icon] > *,\n      :host([${r.GC.MEDIA_LOADING}]:not([${r.GC.MEDIA_PAUSED}])) ::slotted([slot=icon]) {\n        opacity: var(--media-loading-indicator-opacity, 1);\n        transition: opacity 0.15s var(--_loading-indicator-delay);\n      }\n\n      :host #status {\n        visibility: var(--media-loading-indicator-opacity, hidden);\n        transition: visibility 0.15s;\n      }\n\n      :host([${r.GC.MEDIA_LOADING}]:not([${r.GC.MEDIA_PAUSED}])) #status {\n        visibility: var(--media-loading-indicator-opacity, visible);\n        transition: visibility 0.15s var(--_loading-indicator-delay);\n      }\n\n      svg, img, ::slotted(svg), ::slotted(img) {\n        width: var(--media-loading-indicator-icon-width);\n        height: var(--media-loading-indicator-icon-height, 100px);\n        fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));\n        vertical-align: middle;\n      }\n    </style>\n\n    <slot name="icon">\n<svg aria-hidden="true" viewBox="0 0 100 100">\n  <path d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50">\n    <animateTransform\n       attributeName="transform"\n       attributeType="XML"\n       type="rotate"\n       dur="1s"\n       from="0 50 50"\n       to="360 50 50"\n       repeatCount="indef
1inite" />\n  </path>\n</svg>\n</slot>\n    <div id="status" role="status" aria-live="polite">${(0,d.t)("media loading")}</div>\n  `},o.Au.customElements.get("media-loading-indicator")||o.Au.customElements.define("media-loading-indicator",v)},46898:(e,t,i)=>{var a=i(7358),n=i(72358),r=i(17055),o=i(50456),s=i(68218);class d extends a.T{constructor(){super(...arguments),this.container=null}static get observedAttributes(){return[...super.observedAttributes,r.GC.MEDIA_LOOP]}connectedCallback(){var e;super.connectedCallback(),this.container=(null==(e=this.shadowRoot)?void 0:e.querySelector("#icon"))||null,this.container&&(this.container.textContent=(0,s.t)("Loop"))}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===r.GC.MEDIA_LOOP&&this.container&&this.setAttribute("aria-checked",this.mediaLoop?"true":"false")}get mediaLoop(){return(0,o.Y_)(this,r.GC.MEDIA_LOOP)}set mediaLoop(e){(0,o.QW)(this,r.GC.MEDIA_LOOP,e)}handleClick(){const e=!this.mediaLoop,t=new n.Au.CustomEvent(r.a8.MEDIA_LOOP_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}}d.getSlotTemplateHTML=function(e){return`\n      <style>\n        :host {\n          min-width: 4ch;\n          padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));\n          width: 100%;\n          display: grid;\n          grid-template-columns: 1fr auto;\n          gap: 1rem;\n          font-weight: var(--media-button-font-weight, normal);\n        }\n\n        #checked-indicator {\n          display: none;\n        }\n\n        :host([${r.GC.MEDIA_LOOP}]) #checked-indicator {\n          display: block;\n        }\n      </style>\n      \n      <span id="icon">\n     </span>\n\n      <div id="checked-indicator">\n        <svg aria-hidden="true" viewBox="0 1 24 24" part="checked-indicator indicator">\n          <path d="m10 15.17 9.193-9.191 1.414 1.414-10.606 10.606-6.364-6.364 1.414-1.414 4.95 4.95Z"/>\n        </svg>\n      </div>\n    `},d.getTooltipContentHTML=function(){return(0,s.t)("Loop")},n.Au.customElements.get("media-loop-button")||n.Au.customElements.define("media-loop-button",d)},47691:(e,t,i)=>{var a=i(7358),n=i(72358),r=i(17055),o=i(68218),s=i(50456);const d='<svg aria-hidden="true" viewBox="0 0 24 24">\n  <path d="M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.47 4.47 0 0 0 2.5-4Z"/>\n</svg>',l=e=>{const t="off"===e.mediaVolumeLevel?(0,o.t)("unmute"):(0,o.t)("mute");e.setAttribute("aria-label",t)};class m extends a.T{static get observedAttributes(){return[...super.observedAttributes,r.GC.MEDIA_VOLUME_LEVEL]}connectedCallback(){super.connectedCallback(),l(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===r.GC.MEDIA_VOLUME_LEVEL&&l(this)}get mediaVolumeLevel(){return(0,s.vT)(this,r.GC.MEDIA_VOLUME_LEVEL)}set mediaVolumeLevel(e){(0,s.tA)(this,r.GC.MEDIA_VOLUME_LEVEL,e)}handleClick(){const e="off"===this.mediaVolumeLevel?r.a8.MEDIA_UNMUTE_REQUEST:r.a8.MEDIA_MUTE_REQUEST;this.dispatchEvent(new n.Au.CustomEvent(e,{composed:!0,bubbles:!0}))}}m.getSlotTemplateHTML=function(e){return`\n    <style>\n      :host(:not([${r.GC.MEDIA_VOLUME_LEVEL}])) slot[name=icon] slot:not([name=high]),\n      :host([${r.GC.MEDIA_VOLUME_LEVEL}=high]) slot[name=icon] slot:not([name=high]) {\n        display: none !important;\n      }\n\n      :host([${r.GC.MEDIA_VOLUME_LEVEL}=off]) slot[name=icon] slot:not([name=off]) {\n        display: none !important;\n      }\n\n      :host([${r.GC.MEDIA_VOLUME_LEVEL}=low]) slot[name=icon] slot:not([name=low]) {\n        display: none !important;\n      }\n\n      :host([${r.GC.MEDIA_VOLUME_LEVEL}=medium]) slot[name=icon] slot:not([name=medium]) {\n        display: none !important;\n      }\n\n      :host(:not([${r.GC.MEDIA_VOLUME_LEVEL}=off])) slot[name=tooltip-unmute],\n      :host([${r.GC.MEDIA_VOLUME_LEVEL}=off]) slot[name=tooltip-mute] {\n        display: none;\n      }\n    </style>\n\n    <slot name="icon">\n      <slot name="off"><svg aria-hidden="true" viewBox="0 0 24 24">\n  <path d="M16.5 12A4.5 4.5 0 0 0 14 8v2.18l2.45 2.45a4.22 4.22 0 0 0 .05-.63Zm2.5 0a6.84 6.84 0 0 1-.54 2.64L20 16.15A8.8 8.8 0 0 0 21 12a9 9 0 0 0-7-8.77v2.06A7 7 0 0 1 19 12ZM4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25A6.92 6.92 0 0 1 14 18.7v2.06A9 9 0 0 0 17.69 19l2 2.05L21 19.73l-9-9L4.27 3ZM12 4 9.91 6.09 12 8.18V4Z"/>\n</svg></slot>\n      <slot name="low">${d}</slot>\n      <slot name="medium">${d}</slot>\n      <slot name="high"><svg aria-hidden="true" viewBox="0 0 24 24">\n  <path d="M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.47 4.47 0 0 0 2.5-4ZM14 3.23v2.06a7 7 0 0 1 0 13.42v2.06a9 9 0 0 0 0-17.54Z"/>\n</svg></slot>\n    </slot>\n  `},m.getTooltipContentHTML=function(){return`\n    <slot name="tooltip-mute">${(0,o.t)("Mute")}</slot>\n    <slot name="tooltip-unmute">${(0,o.t)("Unmute")}</slot>\n  `},n.Au.customElements.get("media-mute-button")||n.Au.customElements.define("media-mute-button",m)},47107:(e,t,i)=>{var a=i(7358),n=i(72358),r=i(17055),o=i(68218),s=i(50456);const d='<svg aria-hidden="true" viewBox="0 0 28 24">\n  <path d="M24 3H4a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1Zm-1 16H5V5h18v14Zm-3-8h-7v5h7v-5Z"/>\n</svg>',l=e=>{const t=e.mediaIsPip?(0,o.t)("exit picture in picture mode"):(0,o.t)("enter picture in picture mode");e.setAttribute("aria-label",t)};class m extends a.T{static get observedAttributes(){return[...super.observedAttributes,r.GC.MEDIA_IS_PIP,r.GC.MEDIA_PIP_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),l(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===r.GC.MEDIA_IS_PIP&&l(this)}get mediaPipUnavailable(){return(0,s.vT)(this,r.GC.MEDIA_PIP_UNAVAILABLE)}set mediaPipUnavailable(e){(0,s.tA)(this,r.GC.MEDIA_PIP_UNAVAILABLE,e)}get mediaIsPip(){return(0,s.Y_)(this,r.GC.MEDIA_IS_PIP)}set mediaIsPip(e){(0,s.QW)(this,r.GC.MEDIA_IS_PIP,e)}handleClick(){const e=this.mediaIsPip?r.a8.MEDIA_EXIT_PIP_REQUEST:r.a8.MEDIA_ENTER_PIP_REQUEST;this.dispatchEvent(new n.Au.CustomEvent(e,{composed:!0,bubbles:!0}))}}m.getSlotTemplateHTML=function(e){return`\n    <style>\n      :host([${r.GC.MEDIA_IS_PIP}]) slot[name=icon] slot:not([name=exit]) {\n        display: none !important;\n      }\n\n      :host(:not([${r.GC.MEDIA_IS_PIP}])) slot[name=icon] slot:not([name=enter]) {\n        display: none !important;\n      }\n\n      :host([${r.GC.MEDIA_IS_PIP}]) slot[name=tooltip-enter],\n      :host(:not([${r.GC.MEDIA_IS_PIP}])) slot[name=tooltip-exit] {\n        display: none;\n      }\n    </style>\n\n    <slot name="icon">\n      <slot name="enter">${d}</slot>\n      <slot name="exit">${d}</slot>\n    </slot>\n  `},m.getTooltipContentHTML=function(){return`\n    <slot name="tooltip-enter">${(0,o.t)("Enter picture in picture mode")}</slot>\n    <slot name="tooltip-exit">${(0,o.t)("Exit picture in picture mode")}</slot>\n  `},n.Au.customElements.get("media-pip-button")||n.Au.customElements.define("media-pip-button",m)},30598:(e,t,i)=>{var a=i(7358),n=i(72358),r=i(17055),o=i(68218),s=i(50456);const d=e=>{const t=e.mediaPaused?(0,o.t)("play"):(0,o.t)("pause");e.setAttribute("aria-label",t)};class l extends a.T{static get observedAttributes(){return[...super.observedAttributes,r.GC.MEDIA_PAUSED,r.GC.MEDIA_ENDED]}connectedCallback(){super.connectedCallback(),d(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e!==r.GC.MEDIA_PAUSED&&e!==r.GC.MEDIA_LA
1NG||d(this)}get mediaPaused(){return(0,s.Y_)(this,r.GC.MEDIA_PAUSED)}set mediaPaused(e){(0,s.QW)(this,r.GC.MEDIA_PAUSED,e)}handleClick(){const e=this.mediaPaused?r.a8.MEDIA_PLAY_REQUEST:r.a8.MEDIA_PAUSE_REQUEST;this.dispatchEvent(new n.Au.CustomEvent(e,{composed:!0,bubbles:!0}))}}l.getSlotTemplateHTML=function(e){return`\n    <style>\n      :host([${r.GC.MEDIA_PAUSED}]) slot[name=pause],\n      :host(:not([${r.GC.MEDIA_PAUSED}])) slot[name=play] {\n        display: none !important;\n      }\n\n      :host([${r.GC.MEDIA_PAUSED}]) slot[name=tooltip-pause],\n      :host(:not([${r.GC.MEDIA_PAUSED}])) slot[name=tooltip-play] {\n        display: none;\n      }\n    </style>\n\n    <slot name="icon">\n      <slot name="play"><svg aria-hidden="true" viewBox="0 0 24 24">\n  <path d="m6 21 15-9L6 3v18Z"/>\n</svg></slot>\n      <slot name="pause"><svg aria-hidden="true" viewBox="0 0 24 24">\n  <path d="M6 20h4V4H6v16Zm8-16v16h4V4h-4Z"/>\n</svg></slot>\n    </slot>\n  `},l.getTooltipContentHTML=function(){return`\n    <slot name="tooltip-play">${(0,o.t)("Play")}</slot>\n    <slot name="tooltip-pause">${(0,o.t)("Pause")}</slot>\n  `},n.Au.customElements.get("media-play-button")||n.Au.customElements.define("media-play-button",l)},10:(e,t,i)=>{i.d(t,{L5:()=>h,V5:()=>p,ap:()=>c});var a,n=i(7358),r=i(72358),o=i(17055),s=i(10273),d=i(50456),l=i(68218),m=(e,t,i)=>(((e,t)=>{if(!t.has(e))throw TypeError("Cannot read from private field")})(e,t),i?i.call(e):t.get(e));const u="rates",c=[1,1.2,1.5,1.7,2],h=1;function p(e){return Math.round(100*e)/100}class v extends n.T{constructor(){var e;super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,a,new s.M(this,u,{defaultValue:c})),this.container=this.shadowRoot.querySelector('slot[name="icon"]'),this.container.innerHTML=`${p(null!=(e=this.mediaPlaybackRate)?e:h)}x`}static get observedAttributes(){return[...super.observedAttributes,o.GC.MEDIA_PLAYBACK_RATE,u]}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e===u&&(m(this,a).value=i),e===o.GC.MEDIA_PLAYBACK_RATE){const e=i?+i:Number.NaN,t=p(Number.isNaN(e)?h:e);this.container.innerHTML=`${t}x`,this.setAttribute("aria-label",(0,l.t)("Playback rate {playbackRate}",{playbackRate:t}))}}get rates(){return m(this,a)}set rates(e){e?Array.isArray(e)?m(this,a).value=e.join(" "):"string"==typeof e&&(m(this,a).value=e):m(this,a).value=""}get mediaPlaybackRate(){return(0,d.dm)(this,o.GC.MEDIA_PLAYBACK_RATE,h)}set mediaPlaybackRate(e){(0,d.pK)(this,o.GC.MEDIA_PLAYBACK_RATE,e)}handleClick(){var e,t;const i=Array.from(m(this,a).values(),(e=>+e)).sort(((e,t)=>e-t)),n=null!=(t=null!=(e=i.find((e=>e>this.mediaPlaybackRate)))?e:i[0])?t:h,s=new r.Au.CustomEvent(o.a8.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:n});this.dispatchEvent(s)}}a=new WeakMap,v.getSlotTemplateHTML=function(e){return`\n    <style>\n      :host {\n        min-width: 5ch;\n        padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));\n      }\n    </style>\n    <slot name="icon">${e.mediaplaybackrate?p(+e.mediaplaybackrate):h}x</slot>\n  `},v.getTooltipContentHTML=function(){return(0,l.t)("Playback rate")},r.Au.customElements.get("media-playback-rate-button")||r.Au.customElements.define("media-playback-rate-button",v)},64434:(e,t,i)=>{var a=i(72358),n=i(50456);const r="placeholdersrc",o="src";class s extends a.Au.HTMLElement{static get observedAttributes(){return[r,o]}constructor(){if(super(),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=(0,n.kg)(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}this.image=this.shadowRoot.querySelector("#image")}attributeChangedCallback(e,t,i){var a,n;e===o&&(null==i?this.image.removeAttribute(o):this.image.setAttribute(o,i)),e===r&&(null==i?this.image.style.removeProperty("background-image"):(a=this.image,n=i,a.style["background-image"]=`url('${n}')`))}get placeholderSrc(){return(0,n.vT)(this,r)}set placeholderSrc(e){(0,n.tA)(this,o,e)}get src(){return(0,n.vT)(this,o)}set src(e){(0,n.tA)(this,o,e)}}s.shadowRootOptions={mode:"open"},s.getTemplateHTML=function(e){return'\n    <style>\n      :host {\n        pointer-events: none;\n        display: var(--media-poster-image-display, inline-block);\n        box-sizing: border-box;\n      }\n\n      img {\n        max-width: 100%;\n        max-height: 100%;\n        min-width: 100%;\n        min-height: 100%;\n        background-repeat: no-repeat;\n        background-position: var(--media-poster-image-background-position, var(--media-object-position, center));\n        background-size: var(--media-poster-image-background-size, var(--media-object-fit, contain));\n        object-fit: var(--media-object-fit, contain);\n        object-position: var(--media-object-position, center);\n      }\n    </style>\n\n    <img part="poster img" aria-hidden="true" id="image"/>\n  '},a.Au.customElements.get("media-poster-image")||a.Au.customElements.define("media-poster-image",s)},24108:(e,t,i)=>{var a,n=i(84951),r=i(72358),o=i(17055),s=i(50456),d=i(68218),l=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)};class m extends n.e{constructor(){var e,t,i;super(),((e,t)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,void 0)})(this,a),e=this,t=a,i=this.shadowRoot.querySelector("slot"),l(e,t,"write to private field"),t.set(e,i)}static get observedAttributes(){return[...super.observedAttributes,o.GC.MEDIA_PREVIEW_CHAPTER,o.GC.MEDIA_LA
1NG]}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),(e===o.GC.MEDIA_PREVIEW_CHAPTER||e===o.GC.MEDIA_LANG)&&i!==t&&null!=i)if((n=this,r=a,l(n,r,"read from private field"),r.get(n)).textContent=i,""!==i){const e=(0,d.t)("chapter: {chapterName}",{chapterName:i});this.setAttribute("aria-valuetext",e)}else this.removeAttribute("aria-valuetext");var n,r}get mediaPreviewChapter(){return(0,s.vT)(this,o.GC.MEDIA_PREVIEW_CHAPTER)}set mediaPreviewChapter(e){(0,s.tA)(this,o.GC.MEDIA_PREVIEW_CHAPTER,e)}}a=new WeakMap,r.Au.customElements.get("media-preview-chapter-display")||r.Au.customElements.define("media-preview-chapter-display",m)},67582:(e,t,i)=>{i.d(t,{A:()=>u});var a,n=i(72358),r=i(17055),o=i(50456),s=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},d=(e,t,i)=>(s(e,t,"read from private field"),i?i.call(e):t.get(e)),l=(e,t,i,a)=>(s(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i);class m extends n.Au.HTMLElement{constructor(){if(super(),((e,t)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,void 0)})(this,a),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=(0,o.kg)(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[r.Ex.MEDIA_CONTROLLER,r.GC.MEDIA_PREVIEW_IMAGE,r.GC.MEDIA_PREVIEW_COORDS]}connectedCallback(){var e,t,i;const n=this.getAttribute(r.Ex.MEDIA_CONTROLLER);n&&(l(this,a,null==(e=this.getRootNode())?void 0:e.getElementById(n)),null==(i=null==(t=d(this,a))?void 0:t.associateElement)||i.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=d(this,a))?void 0:e.unassociateElement)||t.call(e,this),l(this,a,null)}attributeChangedCallback(e,t,i){var n,o,s,m,u;[r.GC.MEDIA_PREVIEW_IMAGE,r.GC.MEDIA_PREVIEW_COORDS].includes(e)&&this.update(),e===r.Ex.MEDIA_CONTROLLER&&(t&&(null==(o=null==(n=d(this,a))?void 0:n.unassociateElement)||o.call(n,this),l(this,a,null)),i&&this.isConnected&&(l(this,a,null==(s=this.getRootNode())?void 0:s.getElementById(i)),null==(u=null==(m=d(this,a))?void 0:m.associateElement)||u.call(m,this)))}get mediaPreviewImage(){return(0,o.vT)(this,r.GC.MEDIA_PREVIEW_IMAGE)}set mediaPreviewImage(e){(0,o.tA)(this,r.GC.MEDIA_PREVIEW_IMAGE,e)}get mediaPreviewCoords(){const e=this.getAttribute(r.GC.MEDIA_PREVIEW_COORDS);if(e)return e.split(/\s+/).map((e=>+e))}set mediaPreviewCoords(e){e?this.setAttribute(r.GC.MEDIA_PREVIEW_COORDS,e.join(" ")):this.removeAttribute(r.GC.MEDIA_PREVIEW_COORDS)}update(){const e=this.mediaPreviewCoords,t=this.mediaPreviewImage;if(!e||!t)return;const[i,a,n,r]=e,s=t.split("#")[0],d=getComputedStyle(this),{maxWidth:l,maxHeight:m,minWidth:u,minHeight:c}=d;let h,p;if("fill"===(d.getPropertyValue("--media-preview-thumbnail-object-fit").trim()||"contain")){const e=parseInt(l)/n,t=parseInt(m)/r,i=parseInt(u)/n,a=parseInt(c)/r;h=e<1?e:Math.max(e,i),p=t<1?t:Math.max(t,a)}else{const e=Math.min(parseInt(l)/n,parseInt(m)/r),t=Math.max(parseInt(u)/n,parseInt(c)/r),i=e<1?e:t>1?t:1;h=i,p=i}const{style:v}=(0,o.aQ)(this.shadowRoot,":host"),E=(0,o.aQ)(this.shadowRoot,"img").style,b=this.shadowRoot.querySelector("img"),g=Math.min(h,p)<1?"min":"max";v.setProperty(`${g}-width`,"initial","important"),v.setProperty(`${g}-height`,"initial","important"),v.width=n*h+"px",v.height=r*p+"px";const A=()=>{E.width=this.imgWidth*h+"px",E.height=this.imgHeight*p+"px",E.display="block"};b.src!==s&&(b.onload=()=>{this.imgWidth=b.naturalWidth,this.imgHeight=b.naturalHeight,E.parentRule&&E.parentRule.parentStyleSheet&&A(),b.onload=null},b.src=s,A()),A(),E.transform=`translate(-${i*h}px, -${a*p}px)`}}a=new WeakMap,m.shadowRootOptions={mode:"open"},m.getTemplateHTML=function(e){return'\n    <style>\n      :host {\n        box-sizing: border-box;\n        display: var(--media-control-display, var(--media-preview-thumbnail-display, inline-block));\n        overflow: hidden;\n      }\n\n      img {\n        display: none;\n        position: relative;\n      }\n    </style>\n    <img crossorigin loading="eager" decoding="async">\n  '}
1,n.Au.customElements.get("media-preview-thumbnail")||n.Au.customElements.define("media-preview-thumbnail",m);var u=m},30706:(e,t,i)=>{var a,n=i(84951),r=i(72358),o=i(587),s=i(17055),d=i(50456),l=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},m=(e,t,i)=>(l(e,t,"read from private field"),i?i.call(e):t.get(e));class u extends n.e{constructor(){var e,t,i;super(),((e,t)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,void 0)})(this,a),e=this,t=a,i=this.shadowRoot.querySelector("slot"),l(e,t,"write to private field"),t.set(e,i),m(this,a).textContent=(0,o.fU)(0)}static get observedAttributes(){return[...super.observedAttributes,s.GC.MEDIA_PREVIEW_TIME]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===s.GC.MEDIA_PREVIEW_TIME&&null!=i&&(m(this,a).textContent=(0,o.fU)(parseFloat(i)))}get mediaPreviewTime(){return(0,d.dm)(this,s.GC.MEDIA_PREVIEW_TIME)}set mediaPreviewTime(e){(0,d.pK)(this,s.GC.MEDIA_PREVIEW_TIME,e)}}a=new WeakMap,r.Au.customElements.get("media-preview-time-display")||r.Au.customElements.define("media-preview-time-display",u)},90982:(e,t,i)=>{var a=i(7358),n=i(72358),r=i(17055),o=i(50456),s=i(68218);const d="seekoffset";class l extends a.T{static get observedAttributes(){return[...super.observedAttributes,r.GC.MEDIA_CURRENT_TIME,d]}connectedCallback(){super.connectedCallback(),this.seekOffset=(0,o.dm)(this,d,30)}attributeChangedCallback(e,t,i){var a;super.attributeChangedCallback(e,t,i),a=this.seekOffset,this.setAttribute("aria-label",(0,s.t)("seek back {seekOffset} seconds",{seekOffset:a})),e===d&&(this.seekOffset=(0,o.dm)(this,d,30))}get seekOffset(){return(0,o.dm)(this,d,30)}set seekOffset(e){(0,o.pK)(this,d,e),this.setAttribute("aria-label",(0,s.t)("seek back {seekOffset} seconds",{seekOffset:this.seekOffset})),(0,o.Ek)((0,o.u0)(this,"icon"),this.seekOffset)}get mediaCurrentTime(){return(0,o.dm)(this,r.GC.MEDIA_CURRENT_TIME,0)}set mediaCurrentTime(e){(0,o.pK)(this,r.GC.MEDIA_CURRENT_TIME,e)}handleClick(){const e=Math.max(this.mediaCurrentTime-this.seekOffset,0),t=new n.Au.CustomEvent(r.a8.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}}l.getSlotTemplateHTML=function(e,t){return`\n    <slot name="icon">${i=t.seekOffset,`\n  <svg aria-hidden="true" viewBox="0 0 20 24">\n    <defs>\n      <style>.text{font-size:8px;font-family:Arial-BoldMT, Arial;font-weight:700;}</style>\n    </defs>\n    <text class="text value" transform="translate(2.18 19.87)">${i}</text>\n    <path d="M10 6V3L4.37 7 10 10.94V8a5.54 5.54 0 0 1 1.9 10.48v2.12A7.5 7.5 0 0 0 10 6Z"/>\n  </svg>`}</slot>\n  `;var i},l.getTooltipContentHTML=function(){return(0,s.t)("Seek backward")},n.Au.customElements.get("media-seek-backward-button")||n.Au.customElements.define("media-seek-backward-button",l)},1604:(e,t,i)=>{var a=i(7358),n=i(72358),r=i(17055),o=i(50456),s=i(68218);const d="seekoffset";class l extends a.T{static get observedAttributes(){return[...super.observedAttributes,r.GC.MEDIA_CURRENT_TIME,d]}connectedCallback(){super.connectedCallback(),this.seekOffset=(0,o.dm)(this,d,30)}attributeChangedCallback(e,t,i){var a;super.attributeChangedCallback(e,t,i),a=this.seekOffset,this.setAttribute("aria-label",(0,s.t)("seek forward {seekOffset} seconds",{seekOffset:a})),e===d&&(this.seekOffset=(0,o.dm)(this,d,30))}get seekOffset(){return(0,o.dm)(this,d,30)}set seekOffset(e){(0,o.pK)(this,d,e),this.setAttribute("aria-label",(0,s.t)("seek forward {seekOffset} seconds",{seekOffset:this.seekOffset})),(0,o.Ek)((0,o.u0)(this,"icon"),this.seekOffset)}get mediaCurrentTime(){return(0,o.dm)(this,r.GC.MEDIA_CURRENT_TIME,0)}set mediaCurrentTime(e){(0,o.pK)(this,r.GC.MEDIA_CURRENT_TIME,e)}handleClick(){const e=this.mediaCurrentTime+this.seekOffset,t=new n.Au.CustomEvent(r.a8.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}}l.getSlotTemplateHTML=function(e,t){return`\n    <slot name="icon">${i=t.seekOffset,`\n  <svg aria-hidden="true" viewBox="0 0 20 24">\n    <defs>\n      <style>.text{font-size:8px;font-family:Arial-BoldMT, Arial;font-weight:700;}</style>\n    </defs>\n    <text class="text value" transform="translate(8.9 19.87)">${i}</text>\n    <path d="M10 6V3l5.61 4L10 10.94V8a5.54 5.54 0 0 0-1.9 10.48v2.12A7.5 7.5 0 0 1 10 6Z"/>\n  </svg>`}</slot>\n  `;var i},l.getTooltipContentHTML=function(){return(0,s.t)("Seek forward")},n.Au.customElements.get("media-seek-forward-button")||n.Au.customElements.define("media-seek-forward-button",l)},43649:(e,t,i)=>{i.d(t,{M:()=>I});var a=i(72358),n=i(17055),r=i(50456),o=i(20990),s=i(28413),d=i(73813);const l=e=>(0,d.aI)(e.media,(e=>[n.Up.SUBTITLES,n.Up.CAPTIONS].includes(e.kind))).sort(((e,t)=>e.kind>=t.kind?1:-1)),m=e=>(0,d.aI)(e.media,(e=>e.mode===n.lr.SHOWING&&[n.Up.SUBTITLES,n.Up.CAPTIONS].includes(e.kind))),u=(e,t)=>
1{const i=l(e),r=m(e),o=!!r.length;if(i.length)if(!1===t||o&&!0!==t)(0,d.ip)(n.lr.DISABLED,i,r);else if(!0===t||!o&&!1!==t){let t=i[0];const{options:o}=e;if(!(null==o?void 0:o.noSubtitlesLangPref)){const e=a.Au.localStorage.getItem("media-chrome-pref-subtitles-lang"),n=e?[e,...a.Au.navigator.languages]:a.Au.navigator.languages,r=i.filter((e=>n.some((t=>e.language.toLowerCase().startsWith(t.split("-")[0]))))).sort(((e,t)=>n.findIndex((t=>e.language.toLowerCase().startsWith(t.split("-")[0])))-n.findIndex((e=>t.language.toLowerCase().startsWith(e.split("-")[0])))));r[0]&&(t=r[0])}const{language:s,label:l,kind:m}=t;(0,d.ip)(n.lr.DISABLED,i,r),(0,d.ip)(n.lr.SHOWING,i,[{language:s,label:l,kind:m}])}},c=(e,t)=>e===t||null!=e&&null!=t&&typeof e==typeof t&&(!("number"!=typeof e||!Number.isNaN(e)||!Number.isNaN(t))||"object"==typeof e&&(Array.isArray(e)?h(e,t):Object.entries(e).every((([e,i])=>e in t&&c(i,t[e]))))),h=(e,t)=>{const i=Array.isArray(e),a=Array.isArray(t);return i===a&&(!i&&!a||e.length===t.length&&e.every(((e,i)=>c(e,t[i]))))};var p=i(8257);const v=Object.values(n.U4);let E;const b=(0,s._S)().then((e=>(E=e,E))),g=new a.Au.DOMParser,A=e=>e&&g.parseFromString(e,"text/html").body.textContent||e,f={mediaError:{get(e,t){const{media:i}=e;if("playing"!==(null==t?void 0:t.type))return null==i?void 0:i.error},mediaEvents:["emptied","error","playing"]},mediaErrorCode:{get(e,t){var i;const{media:a}=e;if("playing"!==(null==t?void 0:t.type))return null==(i=null==a?void 0:a.error)?void 0:i.code},mediaEvents:["emptied","error","playing"]},mediaErrorMessage:{get(e,t){var i,a;const{media:n}=e;if("playing"!==(null==t?void 0:t.type))return null!=(a=null==(i=null==n?void 0:n.error)?void 0:i.message)?a:""},mediaEvents:["emptied","error","playing"]},mediaWidth:{get(e){var t;const{media:i}=e;return null!=(t=null==i?void 0:i.videoWidth)?t:0},mediaEvents:["resize"]},mediaHeight:{get(e){var t;const{media:i}=e;return null!=(t=null==i?void 0:i.videoHeight)?t:0},mediaEvents:["resize"]},mediaPaused:{get(e){var t;const{media:i}=e;return null==(t=null==i?void 0:i.paused)||t},set(e,t){var i;const{media:a}=t;a&&(e?a.pause():null==(i=a.play())||i.catch((()=>{})))},mediaEvents:["play","playing","pause","emptied"]},mediaHasPlayed:{get(e,t){const{media:i}=e;return!!i&&(t?"playing"===t.type:!i.paused)},mediaEvents:["playing","emptied"]},mediaEnded:{get(e){var t;const{media:i}=e;return null!=(t=null==i?void 0:i.ended)&&t},mediaEvents:["seeked","ended","emptied"]},mediaPlaybackRate:{get(e){var t;const{media:i}=e;return null!=(t=null==i?void 0:i.playbackRate)?t:1},set(e,t){const{media:i}=t;i&&Number.isFinite(+e)&&(i.playbackRate=+e)},mediaEvents:["ratechange","loadstart"]},mediaMuted:{get(e){var t;const{media:i}=e;return null!=(t=null==i?void 0:i.muted)&&t},set(e,t){const{media:i,options:{noMutedPref:n}={}}=t;if(i){i.muted=e;try{const t=null!==a.Au.localStorage.getItem("media-chrome-pref-muted"),r=i.hasAttribute("muted");if(n)return void(t&&a.Au.localStorage.removeItem("media-chrome-pref-muted"));if(r&&!t)return;a.Au.localStorage.setItem("media-chrome-pref-muted",e?"true":"false")}catch(e){console.debug("Error setting muted pref",e)}}},mediaEvents:["volumechange"],stateOwnersUpdateHandlers:[(e,t)=>{const{options:{noMutedPref:i}}=t,{media:n}=t;if(n&&!n.muted&&!i)try{const i="true"===a.Au.localStorage.getItem("media-chrome-pref-muted");f.mediaMuted.set(i,t),e(i)}catch(e){console.debug("Error getting muted pref",e)}}]},mediaLoop:{get(e){const{media:t}=e;return null==t?void 0:t.loop},set(e,t){const{media:i}=t;i&&(i.loop=e)},mediaEvents:["medialooprequest"]},mediaVolume:{get(e){var t;const{media:i}=e;return null!=(t=null==i?void 0:i.volume)?t:1},set(e,t){const{media:i,options:{noVolumePref:n}={}}=t;if(i){try{null==e?a.Au.localStorage.removeItem("media-chrome-pref-volume"):i.hasAttribute("muted")||n||a.Au.localStorage.setItem("media-chrome-pref-volume",e.toString())}catch(e){console.debug("Error setting volume pref",e)}Number.isFinite(+e)&&(i.volume=+e)}},mediaEvents:["volumechange"],stateOwnersUpdateHandlers:[(e,t)=>{const{options:{noVolumePref:i}}=t;if(!i)try{const{media:i}=t;if(!i)return;const n=a.Au.localStorage.getItem("media-chrome-pref-volume");if(null==n)return;f.mediaVolume.set(+n,t),e(+n)}catch(e){console.debug("Error getting volume pref",e)}}]},mediaVolumeLevel:{get(e){const{media:t}=e;return void 0===(null==t?void 0:t.volume)?"high":t.muted||0===t.volume?"off":t.volume<.5?"low":t.volume<.75?"medium":"high"},mediaEvents:["volumechange"]},mediaCurrentTime:{get(e){var t;const{media:i}=e;return null!=(t=null==i?void 0:i.currentTime)?t:0},set(e,t){const{media:i}=t;i&&(0,p.gf)(e)&&(i.currentTime=e)},mediaEvents:["timeupdate","loadedmetadata"]},mediaDuration:{get(e){const{media:t,options:{defaultDuration:i}={}}=e;return!i||t&&t.duration&&!Number.isNaN(t.duration)&&Number.isFinite(t.duration)?Number.isFinite(null==t?void 0:t.duration)?t.duration:Number.NaN:i},mediaEvents:["durationchange","loadedmetadata","emptied"]},mediaLoading:{get(e){const{media:t}=e;return(null==t?void 0:t.readyState)<3},mediaEvents:["waiting","playing","emptied"]},mediaSeekable:{get(e){var t;const{media:i}=e;if(!(null==(t=null==i?void 0:i.seekable)?void 0:t.length))return;const a=i.seekable.start(0),n=i.seekable.end(i.seekable.length-1);return a||n?[Number(a.toFixed(3)),Number(n.toFixed(3))]:void 0},mediaEvents:["loadedmetadata","emptied","progress","seekablechange"]},mediaBuffered:{get(e){var t;const{media:i}=e,a=null!=(t=null==i?void 0:i.buffered)?t:[];return Array.from(a).map(((e,t)=>[Number(a.start(t).toFixed(3)),Number(a.end(t).toFixed(3))]))},mediaEvents:["progress","emptied"]},mediaStreamType:{get(e){const{media:t,options:{defaultStreamType:i}={}}=e,a=[n.U4.LIVE,n.U4.ON_DEMAND].includes(i)?i:void 0;if(!t)return a;const{streamType:r}=t;if(v.includes(r))return r===n.U4.UNKNOWN?a:r;
1const o=t.duration;return o===1/0?n.U4.LIVE:Number.isFinite(o)?n.U4.ON_DEMAND:a},mediaEvents:["emptied","durationchange","loadedmetadata","streamtypechange"]},mediaTargetLiveWindow:{get(e){const{media:t}=e;if(!t)return Number.NaN;const{targetLiveWindow:i}=t,a=f.mediaStreamType.get(e);return null!=i&&!Number.isNaN(i)||a!==n.U4.LIVE?i:0},mediaEvents:["emptied","durationchange","loadedmetadata","streamtypechange","targetlivewindowchange"]},mediaTimeIsLive:{get(e){const{media:t,options:{liveEdgeOffset:i=10}={}}=e;if(!t)return!1;if("number"==typeof t.liveEdgeStart)return!Number.isNaN(t.liveEdgeStart)&&t.currentTime>=t.liveEdgeStart;if(f.mediaStreamType.get(e)!==n.U4.LIVE)return!1;const a=t.seekable;if(!a)return!0;if(!a.length)return!1;const r=a.end(a.length-1)-i;return t.currentTime>=r},mediaEvents:["playing","timeupdate","progress","waiting","emptied"]},mediaSubtitlesList:{get:e=>l(e).map((({kind:e,label:t,language:i})=>({kind:e,label:t,language:i}))),mediaEvents:["loadstart"],textTracksEvents:["addtrack","removetrack"]},mediaSubtitlesShowing:{get:e=>m(e).map((({kind:e,label:t,language:i})=>({kind:e,label:t,language:i}))),mediaEvents:["loadstart"],textTracksEvents:["addtrack","removetrack","change"],stateOwnersUpdateHandlers:[(e,t)=>{var i,a;const{media:r,options:o}=t;if(!r)return;const s=e=>{var i;o.defaultSubtitles&&(e&&![n.Up.CAPTIONS,n.Up.SUBTITLES].includes(null==(i=null==e?void 0:e.track)?void 0:i.kind)||u(t,!0))};return r.addEventListener("loadstart",s),null==(i=r.textTracks)||i.addEventListener("addtrack",s),null==(a=r.textTracks)||a.addEventListener("removetrack",s),()=>{var e,t;r.removeEventListener("loadstart",s),null==(e=r.textTracks)||e.removeEventListener("addtrack",s),null==(t=r.textTracks)||t.removeEventListener("removetrack",s)}}]},mediaChaptersCues:{get(e){var t;const{media:i}=e;if(!i)return[];const[a]=(0,d.aI)(i,{kind:n.Up.CHAPTERS});return Array.from(null!=(t=null==a?void 0:a.cues)?t:[]).map((({text:e,startTime:t,endTime:i})=>({text:A(e),startTime:t,endTime:i})))},mediaEvents:["loadstart","loadedmetadata"],textTracksEvents:["addtrack","removetrack","change"],stateOwnersUpdateHandlers:[(e,t)=>{var i;const{media:a}=t;if(!a)return;const n=a.querySelector('track[kind="chapters"][default][src]'),r=null==(i=a.shadowRoot)?void 0:i.querySelector(':is(video,audio) > track[kind="chapters"][default][src]');return null==n||n.addEventListener("load",e),null==r||r.addEventListener("load",e),()=>{null==n||n.removeEventListener("load",e),null==r||r.removeEventListener("load",e)}}]},mediaIsPip:{get(e){var t,i;const{media:a,documentElement:n}=e;if(!a||!n)return!1;if(!n.pictureInPictureElement)return!1;if(n.pictureInPictureElement===a)return!0;if(n.pictureInPictureElement instanceof HTMLMediaElement)return!!(null==(t=a.localName)?void 0:t.includes("-"))&&(0,r.qg)(a,n.pictureInPictureElement);if(n.pictureInPictureElement.localName.includes("-")){let e=n.pictureInPictureElement.shadowRoot;for(;null==e?void 0:e.pictureInPictureElement;){if(e.pictureInPictureElement===a)return!0;e=null==(i=e.pictureInPictureElement)?void 0:i.shadowRoot}}return!1},set(e,t){const{media:i}=t;if(i)if(e){if(!a.Al.pictureInPictureEnabled)return void console.warn("MediaChrome: Picture-in-picture is not enabled");if(!i.requestPictureInPicture)return void console.warn("MediaChrome: The current media does not support picture-in-picture");const e=()=>{console.warn("MediaChrome: The media is not ready for picture-in-picture. It must have a readyState > 0.")};i.requestPictureInPicture().catch((t=>{if(11!==t.code)throw t;if(i.src){if(0!==i.readyState||"none"!==i.preload)throw t;{const t=()=>{i.removeEventListener("loadedmetadata",a),i.preload="none"},a=()=>{i.requestPictureInPicture().catch(e),t()};i.addEventListener("loadedmetadata",a),i.preload="metadata",setTimeout((()=>{0===i.readyState&&e(),t()}),1e3)}}else console.warn("MediaChrome: The media is not ready for picture-in-picture. It must have a src set.")}))}else a.Al.pictureInPictureElement&&a.Al.exitPictureInPicture()},mediaEvents:["enterpictureinpicture","leavepictureinpicture"]},mediaRenditionList:{get(e){var t;const{media:i}=e;return[...null!=(t=null==i?void 0:i.videoRenditions)?t:[]].map((e=>({...e})))},mediaEvents:["emptied","loadstart"],videoRenditionsEvents:["addrendition","removerendition"]},mediaRenditionSelected:{get(e){var t,i,a;const{media:n}=e;return null==(a=null==(i=null==n?void 0:n.videoRenditions)?void 0:i[null==(t=n.videoRenditions)?void 0:t.selectedIndex])?void 0:a.id},set(e,t){const{media:i}=t;if(!(null==i?void 0:i.videoRenditions))return void console.warn("MediaController: Rendition selection not supported by this media.");const a=e,n=Array.prototype.findIndex.call(i.videoRenditions,(e=>e.id==a));i.videoRenditions.selectedIndex!=n&&(i.videoRenditions.selectedIndex=n)},mediaEvents:["emptied"],videoRenditionsEvents:["addrendition","removerendition","change"]},mediaAudioTrackList:{get(e){var t;const{media:i}=e;return[...null!=(t=null==i?void 0:i.audioTracks)?t:[]]},mediaEvents:["emptied","loadstart"],audioTracksEvents:["addtrack","removetrack"]},mediaAudioTrackEnabled:{get(e){var t,i;const{media:a}=e;return null==(i=[...null!=(t=null==a?void 0:a.audioTracks)?t:[]].find((e=>e.enabled)))?void 0:i.id},set(e,t){const{media:i}=t;if(!(null==i?void 0:i.audioTracks))return void console.warn("MediaChrome: Audio track selection not supported by this media.");const a=e;for(const e of i.audioTracks)e.enabled=a==e.id},mediaEvents:["emptied"],audioTracksEvents:["addtrack","removetrack","change"]},mediaIsFullscreen:{get:e=>(0,o.aS)(e),set(e,t,i){var a,n;e?((0,o.Kk)(t),i.detail&&!(null==(a=t.media)?void 0:a.inert)&&(null==(n=t.media)||n.focus())):(0,o.Eh)(t)},rootEvents:["fullscreenchange","webkitfullscreenchange"],mediaEvents:["webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"]},mediaIsCasting:{get(e){var t;const{media:i}=e;return!(!(null==i?void 0:i.remote)||"disconnected"===(null==(t=i.remote)?void 0:t.state)||!i.remote.state)},set(e,t){var i,a;const{media:n}=t;n&&(e&&"disconnected"!==(null==(i=n.remote)?void 0:i.state)||(e||"connected"===(null==(a=n.remote)?void 0:a.state))&&("function"==typeof n.remote.prompt?n.remote.prompt().catch((()=>{})):console.warn("MediaChrome: Casting is not supported in this environment")))},remoteEvents:["connect","connecting","disconnect"]},mediaIsAirplaying:{get:()=>!1,set(e,t){const{media:i}=t;i&&(i.webkitShowPlaybackTargetPicker&&a.Au.WebKitPlaybackTargetAvailabilityEvent?i.webkitShowPlaybackTargetPicker():console.error("MediaChrome: received a request to select AirPlay but AirPlay is not supported in this environment"))},mediaEvents:["webkitcurrentplaybacktargetiswirelesschanged"]},mediaFullscreenUnavailable:{get(e){const{media:t}=e;if(!s.Uk||!(0,s.vL)(t))return n.CY.UNSUPPORTED}},mediaPipUnavailable:{get(e){const{media:t}=e;return s.E5&&(0,s.vi)(t)?(null==t?void 0:t.disablePictureInPicture)?n.CY.UNAVAILABLE:void 0:n.CY.UNSUPPORTED}},mediaVolumeUnavailable:{get(e){const{media:t}=e;if(!1===E||null==(null==t?void 0:t.volume))return n.CY.UNSUPPORTED},stateOwnersUpdateHandlers:[e=>{null==E&&b.then((t=>e(t?void 0:n.CY.UNSUPPORTED)))}]},mediaCastUnavailable:{get(e,{availability:t="not-available"}={}){var i;const{media:a}=e;return s.Sy&&(null==(i=null==a?void 0:a.remote)?void 0:i.state)?null!=t&&"available"!==t?n.CY.UNAVAILABLE:void 0:n.CY.UNSUPPORTED},stateOwnersUpdateHandlers:[(e,t)=>{var i;const{media:a}=t;if(a)return a.disableRemotePlayback||a.hasAttribute("disableremoteplayback")||null==(i=null==a?void 0:a.remote)||i.watchAvailability((t=>{e({availability:t?"available":"not-available"})})).catch((t=>
1{"NotSupportedError"===t.name?e({availability:null}):e({availability:"not-available"})})),()=>{var e;null==(e=null==a?void 0:a.remote)||e.cancelWatchAvailability().catch((()=>{}))}}]},mediaAirplayUnavailable:{get:(e,t)=>s.DD?"not-available"===(null==t?void 0:t.availability)?n.CY.UNAVAILABLE:void 0:n.CY.UNSUPPORTED,mediaEvents:["webkitplaybacktargetavailabilitychanged"],stateOwnersUpdateHandlers:[(e,t)=>{var i;const{media:a}=t;if(a)return a.disableRemotePlayback||a.hasAttribute("disableremoteplayback")||null==(i=null==a?void 0:a.remote)||i.watchAvailability((t=>{e({availability:t?"available":"not-available"})})).catch((t=>{"NotSupportedError"===t.name?e({availability:null}):e({availability:"not-available"})})),()=>{var e;null==(e=null==a?void 0:a.remote)||e.cancelWatchAvailability().catch((()=>{}))}}]},mediaRenditionUnavailable:{get(e){var t;const{media:i}=e;return(null==i?void 0:i.videoRenditions)?(null==(t=i.videoRenditions)?void 0:t.length)?void 0:n.CY.UNAVAILABLE:n.CY.UNSUPPORTED},mediaEvents:["emptied","loadstart"],videoRenditionsEvents:["addrendition","removerendition"]},mediaAudioTrackUnavailable:{get(e){var t,i;const{media:a}=e;return(null==a?void 0:a.audioTracks)?(null!=(i=null==(t=a.audioTracks)?void 0:t.length)?i:0)<=1?n.CY.UNAVAILABLE:void 0:n.CY.UNSUPPORTED},mediaEvents:["emptied","loadstart"],audioTracksEvents:["addtrack","removetrack"]},mediaLang:{get(e){const{options:{mediaLang:t}={}}=e;return null!=t?t:"en"}}},w={[n.a8.MEDIA_PREVIEW_REQUEST](e,t,{detail:i}){var a,r,o;const{media:s}=t,l=null!=i?i:void 0;let m,u;if(s&&null!=l){const[e]=(0,d.aI)(s,{kind:n.Up.METADATA,label:"thumbnails"}),t=Array.prototype.find.call(null!=(a=null==e?void 0:e.cues)?a:[],((e,t,i)=>0===t?e.endTime>l:t===i.length-1?e.startTime<=l:e.startTime<=l&&e.endTime>l));if(t){const e=/'^(?:[a-z]+:)?\/\//i.test(t.text)||null==(r=null==s?void 0:s.querySelector('track[label="thumbnails"]'))?void 0:r.src,i=new URL(t.text,e),a=new URLSearchParams(i.hash).get("#xywh");a&&(u=a.split(",").map((e=>+e)),m=i.href)}}const c=e.mediaDuration.get(t);let h=null==(o=e.mediaChaptersCues.get(t).find(((e,t,i)=>t===i.length-1&&c===e.endTime?e.startTime<=l&&e.endTime>=l:e.startTime<=l&&e.endTime>l)))?void 0:o.text;return null!=i&&null==h&&(h=""),{mediaPreviewTime:l,mediaPreviewImage:m,mediaPreviewCoords:u,mediaPreviewChapter:h}},[n.a8.MEDIA_PAUSE_REQUEST](e,t){e.mediaPaused.set(!0,t)},[n.a8.MEDIA_PLAY_REQUEST](e,t){var i,a,r,o;const s=e.mediaStreamType.get(t)===n.U4.LIVE,d=!(null==(i=t.options)?void 0:i.noAutoSeekToLive),l=e.mediaTargetLiveWindow.get(t)>0;if(s&&d&&!l){const i=null==(a=e.mediaSeekable.get(t))?void 0:a[1];if(i){const a=i-(null!=(o=null==(r=t.options)?void 0:r.seekToLiveOffset)?o:0);e.mediaCurrentTime.set(a,t)}}e.mediaPaused.set(!1,t)},[n.a8.MEDIA_PLAYBACK_RATE_REQUEST](e,t,{detail:i}){const a=i;e.mediaPlaybackRate.set(a,t)},[n.a8.MEDIA_MUTE_REQUEST](e,t){e.mediaMuted.set(!0,t)},[n.a8.MEDIA_UNMUTE_REQUEST](e,t){e.mediaVolume.get(t)||e.mediaVolume.set(.25,t),e.mediaMuted.set(!1,t)},[n.a8.MEDIA_LOOP_REQUEST](e,t,{detail:i}){const a=!!i;return e.mediaLoop.set(a,t),{mediaLoop:a}},[n.a8.MEDIA_VOLUME_REQUEST](e,t,{detail:i}){const a=i;a&&e.mediaMuted.get(t)&&e.mediaMuted.set(!1,t),e.mediaVolume.set(a,t)},[n.a8.MEDIA_SEEK_REQUEST](e,t,{detail:i}){const a=i;e.mediaCurrentTime.set(a,t)},[n.a8.MEDIA_SEEK_TO_LIVE_REQUEST](e,t){var i,a,n;const r=null==(i=e.mediaSeekable.get(t))?void 0:i[1];if(Number.isNaN(Number(r)))return;const o=r-(null!=(n=null==(a=t.options)?void 0:a.seekToLiveOffset)?n:0);e.mediaCurrentTime.set(o,t)},[n.a8.MEDIA_SHOW_SUBTITLES_REQUEST](e,t,{detail:i}){var r;const{options:o}=t,s=l(t),m=(0,d.C2)(i),u=null==(r=m[0])?void 0:r.language;u&&!o.noSubtitlesLangPref&&a.Au.localStorage.setItem("media-chrome-pref-subtitles-lang",u),(0,d.ip)(n.lr.SHOWING,s,m)},[n.a8.MEDIA_DISABLE_SUBTITLES_REQUEST](e,t,{detail:i}){const a=l(t),r=null!=i?i:[];(0,d.ip)(n.lr.DISABLED,a,r)},[n.a8.MEDIA_TOGGLE_SUBTITLES_REQUEST](e,t,{detail:i}){u(t,i)},[n.a8.MEDIA_RENDITION_REQUEST](e,t,{detail:i}){const a=i;e.mediaRenditionSelected.set(a,t)},[n.a8.MEDIA_AUDIO_TRACK_REQUEST](e,t,{detail:i}){const a=i;e.mediaAudioTrackEnabled.set(a,t)},[n.a8.MEDIA_ENTER_PIP_REQUEST](e,t){e.mediaIsFullscreen.get(t)&&e.mediaIsFullscreen.set(!1,t),e.mediaIsPip.set(!0,t)},[n.a8.MEDIA_EXIT_PIP_REQUEST](e,t){e.mediaIsPip.set(!1,t)},[n.a8.MEDIA_ENTER_FULLSCREEN_REQUEST](e,t,i){e.mediaIsPip.get(t)&&e.mediaIsPip.set(!1,t),e.mediaIsFullscreen.set(!0,t,i)},[n.a8.MEDIA_EXIT_FULLSCREEN_REQUEST](e,t){e.mediaIsFullscreen.set(!1,t)},[n.a8.MEDIA_ENTER_CAST_REQUEST](e,t){e.mediaIsFullscreen.get(t)&&e.mediaIsFullscreen.set(!1,t),e.mediaIsCasting.set(!0,t)},[n.a8.MEDIA_EXIT_CAST_REQUEST](e,t){e.mediaIsCasting.set(!1,t)},[n.a8.MEDIA_AIRPLAY_REQUEST](e,t){e.mediaIsAirplaying.set(!0,t)}},I=({media:e,fullscreenElement:t,documentElement:i,stateMediator:n=f,requestMap:r=w,options:o={},monitorStateOwnersOnlyWithSubscriptions:s=!0})=>{const d=[],l={options:{...o}};let m=Object.freeze({mediaPreviewTime:void 0,mediaPreviewImage:void 0,mediaPreviewCoords:void 0,mediaPreviewChapter:void 0});const u=e=>{null!=e&&(c(e,m)||(m=Object.freeze({...m,...e}),d.forEach((e=>e(m)))))},h=()=>{const e=Object.entries(n).reduce(((e,[t,{get:i}])=>(e[t]=i(l),e)),{});u(e)},p={};let v;const E=async(e,t)=>{var i,r,o,m,c,E,b,g,A,f,w,I,y,C,_,T;const M=!!v;if(v={...l,...null!=v?v:{},...e},M)return;await(async(...e)=>{await Promise.all(e.filter((e=>e)).map((async e=>{if(!("localName"in e&&e instanceof a.Au.HTMLElement))return;const t=e.localName;if(!t.includes("-"))return;const i=a.Au.customElements.get(t);i&&e instanceof i||(await a.Au.customElements.whenDefined(t),a.Au.customElements.upgrade(e))})))})(...Object.values(e));const k=d.length>0&&0===t&&s,D=l.media!==v.media,R=(null==(i=l.media)?void 0:i.textTracks)!==(null==(r=v.media)?void 0:r.textTracks),x=(null==(o=l.media)?void 0:o.videoRenditions)!==(null==(m=v.media)?void 0:m.videoRenditions),L=(null==(c=l.media)?void 0:c.audioTracks)!==(null==(E=v.media)?void 0:E.audioTracks),S=(null==(b=l.media)?void 0:b.remote)!==(null==(g=v.media)?void 0:g.remote),P=l.documentElement!==v.documentElement,G=!!l.media&&(D||k),U=!!(null==(A=l.media)?void 0:A.textTracks)&&(R||k),O=!!(null==(f=l.media)?void 0:f.videoRenditions)&&(x||k),N=!!(null==(w=l.media)?void 0:w.audioTracks)&&(L||k),W=!!(null==(I=l.media)?void 0:I.remote)&&(S||k),V=!!l.documentElement&&(P||k),H=G||U||O||N||W||V,$=0===d.length&&1===t&&s,B=!!v.media&&(D||$),Q=!!(null==(y=v.media)?void 0:y.textTracks)&&(R||$),K=!!(null==(C=v.media)?void 0:C.videoRenditions)&&(x||$),F=!!(null==(_=v.media)?void 0:_.audioTracks)&&(L||$),Y=!!(null==(T=v.media)?void 0:T.remote)&&(S||$),j=!!v.documentElement&&(P||$),q=B||Q||K||F||Y||j;if(!H&&!q)return Object.entries(v).forEach((([e,t])=>{l[e]=t})),h(),void(v=void 0);
1Object.entries(n).forEach((([e,{get:t,mediaEvents:i=[],textTracksEvents:a=[],videoRenditionsEvents:n=[],audioTracksEvents:r=[],remoteEvents:o=[],rootEvents:s=[],stateOwnersUpdateHandlers:d=[]}])=>{p[e]||(p[e]={});const m=i=>{const a=t(l,i);u({[e]:a})};let c;c=p[e].mediaEvents,i.forEach((t=>{c&&G&&(l.media.removeEventListener(t,c),p[e].mediaEvents=void 0),B&&(v.media.addEventListener(t,m),p[e].mediaEvents=m)})),c=p[e].textTracksEvents,a.forEach((t=>{var i,a;c&&U&&(null==(i=l.media.textTracks)||i.removeEventListener(t,c),p[e].textTracksEvents=void 0),Q&&(null==(a=v.media.textTracks)||a.addEventListener(t,m),p[e].textTracksEvents=m)})),c=p[e].videoRenditionsEvents,n.forEach((t=>{var i,a;c&&O&&(null==(i=l.media.videoRenditions)||i.removeEventListener(t,c),p[e].videoRenditionsEvents=void 0),K&&(null==(a=v.media.videoRenditions)||a.addEventListener(t,m),p[e].videoRenditionsEvents=m)})),c=p[e].audioTracksEvents,r.forEach((t=>{var i,a;c&&N&&(null==(i=l.media.audioTracks)||i.removeEventListener(t,c),p[e].audioTracksEvents=void 0),F&&(null==(a=v.media.audioTracks)||a.addEventListener(t,m),p[e].audioTracksEvents=m)})),c=p[e].remoteEvents,o.forEach((t=>{var i,a;c&&W&&(null==(i=l.media.remote)||i.removeEventListener(t,c),p[e].remoteEvents=void 0),Y&&(null==(a=v.media.remote)||a.addEventListener(t,m),p[e].remoteEvents=m)})),c=p[e].rootEvents,s.forEach((t=>{c&&V&&(l.documentElement.removeEventListener(t,c),p[e].rootEvents=void 0),j&&(v.documentElement.addEventListener(t,m),p[e].rootEvents=m)}));const h=p[e].stateOwnersUpdateHandlers;if(h&&H&&(Array.isArray(h)?h:[h]).forEach((e=>{"function"==typeof e&&e()})),q){const t=d.map((e=>e(m,v))).filter((e=>"function"==typeof e));p[e].stateOwnersUpdateHandlers=1===t.length?t[0]:t}else H&&(p[e].stateOwnersUpdateHandlers=void 0)})),Object.entries(v).forEach((([e,t])=>{l[e]=t})),h(),v=void 0};return E({media:e,fullscreenElement:t,documentElement:i,options:o}),{dispatch(e){const{type:t,detail:i}=e;r[t]&&null==m.mediaErrorCode?u(r[t](n,l,e)):"mediaelementchangerequest"===t?E({media:i}):"fullscreenelementchangerequest"===t?E({fullscreenElement:i}):"documentelementchangerequest"===t?E({documentElement:i}):"optionschangerequest"===t&&(Object.entries(null!=i?i:{}).forEach((([e,t])=>{l.options[e]=t})),h())},getState:()=>m,subscribe:e=>(E({},d.length+1),d.push(e),e(m),()=>{const t=d.indexOf(e);t>=0&&(E({},d.length-1),d.splice(t,1))})}}},84951:(e,t,i)=>{i.d(t,{e:()=>m});var a,n=i(17055),r=i(50456),o=i(72358),s=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},d=(e,t,i)=>(s(e,t,"read from private field"),i?i.call(e):t.get(e)),l=(e,t,i,a)=>(s(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i);class m extends o.Au.HTMLElement{constructor(){if(super(),((e,t)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,void 0)})(this,a),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=(0,r.kg)(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[n.Ex.MEDIA_CONTROLLER]}attributeChangedCallback(e,t,i){var r,o,s,m,u;e===n.Ex.MEDIA_CONTROLLER&&(t&&(null==(o=null==(r=d(this,a))?void 0:r.unassociateElement)||o.call(r,this),l(this,a,null)),i&&this.isConnected&&(l(this,a,null==(s=this.getRootNode())?void 0:s.getElementById(i)),null==(u=null==(m=d(this,a))?void 0:m.associateElement)||u.call(m,this)))}connectedCallback(){var e,t,i;const{style:o}=(0,r.aQ)(this.shadowRoot,":host");o.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`);const s=this.getAttribute(n.Ex.MEDIA_CONTROLLER);s&&(l(this,a,null==(e=this.getRootNode())?void 0:e.getElementById(s)),null==(i=null==(t=d(this,a))?void 0:t.associateElement)||i.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=d(this,a))?void 0:e.unassociateElement)||t.call(e,this),l(this,a,null)}}a=new WeakMap,m.shadowRootOptions={mode:"open"},m.getTemplateHTML=function(e,t={}){return`\n    <style>\n      :host {\n        font: var(--media-font,\n          var(--media-font-weight, normal)\n          var(--media-font-size, 14px) /\n          var(--media-text-content-height, var(--media-control-height, 24px))\n          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));\n        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));\n        background: var(--media-text-background, var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7))));\n        padding: var(--media-control-padding, 10px);\n        display: inline-flex;\n        justify-content: center;\n        align-items: center;\n        vertical-align: middle;\n        box-sizing: border-box;\n        text-align: center;\n        pointer-events: auto;\n      }\n\n      \n      :host(:focus-visible) {\n        box-shadow: var(--media-focus-box-sha
1dow, inset 0 0 0 2px rgb(27 127 204 / .9));\n        outline: 0;\n      }\n\n      \n      :host(:where(:focus)) {\n        box-shadow: none;\n        outline: 0;\n      }\n    </style>\n\n    ${this.getSlotTemplateHTML(e,t)}\n  `},m.getSlotTemplateHTML=function(e,t){return"\n    <slot></slot>\n  "},o.Au.customElements.get("media-text-display")||o.Au.customElements.define("media-text-display",m)},48259:(e,t,i)=>{i.d(t,{OU:()=>C,cV:()=>p.cV,db:()=>p.db,i4:()=>p.i4});var a,n,r,o,s,d,l,m,u,c=i(17055),h=i(72358),p=i(19431),v=i(24073),E=i(8257),b=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},g=(e,t,i)=>(b(e,t,"read from private field"),i?i.call(e):t.get(e)),A=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},f=(e,t,i,a)=>(b(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),w=(e,t,i)=>(b(e,t,"access private method"),i);const I={mediatargetlivewindow:"targetlivewindow",mediastreamtype:"streamtype"},y=h.Al.createElement("template");
1y.innerHTML="\n  <style>\n    :host {\n      display: inline-block;\n      line-height: 0;\n    }\n\n    media-controller {\n      width: 100%;\n      height: 100%;\n    }\n\n    media-captions-button:not([mediasubtitleslist]),\n    media-captions-menu:not([mediasubtitleslist]),\n    media-captions-menu-button:not([mediasubtitleslist]),\n    media-audio-track-menu[mediaaudiotrackunavailable],\n    media-audio-track-menu-button[mediaaudiotrackunavailable],\n    media-rendition-menu[mediarenditionunavailable],\n    media-rendition-menu-button[mediarenditionunavailable],\n    media-volume-range[mediavolumeunavailable],\n    media-airplay-button[mediaairplayunavailable],\n    media-fullscreen-button[mediafullscreenunavailable],\n    media-cast-button[mediacastunavailable],\n    media-pip-button[mediapipunavailable] {\n      display: none;\n    }\n  </style>\n";class C extends h.Au.HTMLElement{constructor(){super(),A(this,s),A(this,l),A(this,a,void 0),A(this,n,void 0),A(this,r,void 0),A(this,o,void 0),A(this,u,void 0),this.shadowRoot?this.renderRoot=this.shadowRoot:(this.renderRoot=this.attachShadow({mode:"open"}),this.createRenderer()),f(this,o,new MutationObserver((e=>{var t;this.mediaController&&!(null==(t=this.mediaController)?void 0:t.breakpointsComputed)||e.some((e=>{const t=e.target;return t===this||"media-controller"===t.localName&&(!!I[e.attributeName]||!!e.attributeName.startsWith("breakpoint"))}))&&this.render()}))),f(this,u,this.render.bind(this)),w(this,s,d).call(this,"template")}get mediaController(){return this.renderRoot.querySelector("media-controller")}get template(){var e;return null!=(e=g(this,a))?e:this.constructor.template}set template(e){null!==e?"string"==typeof e?this.setAttribute("template",e):e instanceof HTMLTemplateElement&&(f(this,a,e),f(this,r,null),this.createRenderer()):this.removeAttribute("template")}get props(){var e,t,i;const a=[...Array.from(null!=(t=null==(e=this.mediaController)?void 0:e.attributes)?t:[]).filter((({name:e})=>I[e]||e.startsWith("breakpoint"))),...Array.from(this.attributes)],n={};for(const e of a){const t=null!=(i=I[e.name])?i:(0,E.xQ)(e.name);let{value:a}=e;null!=a?((0,E.P3)(a)&&(a=parseFloat(a)),n[t]=""===a||a):n[t]=!1}return n}attributeChangedCallback(e,t,i){"template"===e&&t!=i&&w(this,l,m).call(this)}connectedCallback(){this.addEventListener(c.T$.BREAKPOINTS_COMPUTED,g(this,u)),g(this,o).observe(this,{attributes:!0}),g(this,o).observe(this.renderRoot,{attributes:!0,subtree:!0}),w(this,l,m).call(this)}disconnectedCallback(){this.removeEventListener(c.T$.BREAKPOINTS_COMPUTED,g(this,u)),g(this,o).disconnect()}createRenderer(){this.template instanceof HTMLTemplateElement&&this.template!==g(this,n)&&(f(this,n,this.template),this.renderer=new p.i4(this.template,this.props,this.constructor.processor),this.renderRoot.textContent="",this.renderRoot.append(y.content.cloneNode(!0),this.renderer))}render(){var e;null==(e=this.renderer)||e.update(this.props)}}a=new WeakMap,n=new WeakMap,r=new WeakMap,o=new WeakMap,s=new WeakSet,d=function(e){if(Object.prototype.hasOwnProperty.call(this,e)){const t=this[e];delete this[e],this[e]=t}},l=new WeakSet,m=function(){var e;const t=this.getAttribute("template");if(!t||t===g(this,r))return;const i=this.getRootNode(),n=null==(e=null==i?void 0:i.getElementById)?void 0:e.call(i,t);if(n)return f(this,r,t),f(this,a,n),void this.createRenderer();(function(e){if(!/^(\/|\.\/|https?:\/\/)/.test(e))return!1;const t=/^https?:\/\//.test(e)?void 0:location.origin;try{new URL(e,t)}catch(e){return!1}return!0})(t)&&(f(this,r,t),async function(e){const t=await fetch(e);if(200!==t.status)throw new Error(`Failed to load resource: the server responded with a status of ${t.status}`);return t.text()}(t).then((e=>{const t=h.Al.createElement("template");t.innerHTML=e,f(this,a,t),this.createRenderer()})).catch(console.error))},u=new WeakMap,C.observedAttributes=["template"],C.processor=v.l$,h.Au.customElements.get("media-theme")||h.Au.customElements.define("media-theme",C)},89385:(e,t,i)=>{var a,n,r,o,s,d,l,m,u,c,h,p=i(84951),v=i(50456),E=i(72358),b=i(587),g=i(17055),A=i(68218),f=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},w=(e,t,i)=>(f(e,t,"read from private field"),i?i.call(e):t.get(e)),I=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},y=(e,t,i,a)=>(f(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),C=(e,t,i)=>(f(e,t,"access private method"),i);const _={REMAINING:"remaining",SHOW_DURATION:"showduration",NO_TOGGLE:"notoggle"},T=[...Object.values(_),g.GC.MEDIA_CURRENT_TIME,g.GC.MEDIA_DURATION,g.GC.MEDIA_SEEKABLE],M=["Enter"," "],k=(e,{timesSep:t="&nbsp;/&nbsp;"}={})=>{var i,a;const n=null!=(i=e.mediaCurrentTime)?i:0,[,r]=null!=(a=e.mediaSeekable)?a:[];let o=0;Number.isFinite(e.mediaDuration)?o=e.mediaDuration:Number.isFinite(r)&&(o=r);const s=e.remaining?(0,b.fU)(0-(o-n)):(0,b.fU)(n);return e.showDuration?`${s}${t}${(0,b.fU)(o)}`:s};class D extends p.e{constructor(){super(),I(this,o),I(this,d),I(this,m),I(this,c),I(this,a,void 0),I(this,n,null),I(this,r,(e=>{const{metaKey:t,altKey:i,key:a}=e;t||i||!M.includes(a)?this.removeEventListener("keyup",w(this,n)):this.addEventListener("keyup",w(this,n))})),y(this,a,this.shadowRoot.querySelector("slot")),w(this,a).innerHTML=`${k(this)}`}static get observedAttributes(){return[...super.observedAttributes,...T,"disabled"]}connectedCallback(){const{style:e}=(0,v.aQ)(this.shadowRoot,":host(:hover:not([notoggle]))");e.setProperty("cursor","var(--media-cursor, pointer)"),e.setProperty("background","var(--media-control-hover-background, rgba(50 50 70 / .7))"),this.setAttribute("aria-label",(0,A.t)("playback time")),C(this,m,u).call(this),super.connectedCallback()}toggleTimeDisplay(){this.noToggle||(this.hasAttribute("remaining")?this.removeAttribute("remaining"):this.setAttribute("remaining",""))}disconnectedCallback(){this.disable(),C(this,d,l).call(this),super.disconnectedCallback()}attributeChangedCallback(e,t,i){this.setAttribute("aria-label",(0,A.t)("playback time")),T.includes(e)?this.update():"disabled"===e&&i!==t?null==i?C(this,m,u).call(this):C(this,c,h).call(this):e===_.NO_TOGGLE&&i!==t&&(this.noToggle?C(this,c,h).call(this):C(this,m,u).call(this)),super.attributeChangedCallback(e,t,i)}enable(){this.noToggle||(this.tabIndex=0)}disable(){this.tabIndex=-1}get remaining(){return(0,v.Y_)(this,_.REMAINING)}set remaining(e){(0,v.QW)(this,_.REMAINING,e)}get showDuration(){return(0,v.Y_)(this,_.SHOW_DURATION)}set showDuration(e){(0,v.QW)(this,_.SHOW_DURATION,e)}get noToggle(){return(0,v.Y_)(this,_.NO_TOGGLE)}set noToggle(e){(0,v.QW)(this,_.NO_TOGGLE,e)}get mediaDuration(){return(0,v.dm)(this,g.GC.MEDIA_DURATION)}set mediaDuration(e){(0,v.pK)(this,g.GC.MEDIA_DURATION,e)}get mediaCurrentTime(){return(0,v.dm)(this,g.GC.MEDIA_CURRENT_TIME)}set mediaCurrentTime(e){(0,v.pK)(this,g.GC.MEDIA_CURRENT_TIME,e)}get mediaSeekable(){const e=this.getAttribute(g.GC.MEDIA_SEEKABLE);if(e)return e.split(":").map((e=>+e))}set mediaSeekable(e){null!=e?this.setAttribute(g.GC.MEDIA_SEEKABLE,e.join(":")):this.removeAttribute(g.GC.MEDIA_SEEKABLE)}update(){const e=k(this);(e=>{var t;
1const i=e.mediaCurrentTime,[,a]=null!=(t=e.mediaSeekable)?t:[];let n=null;if(Number.isFinite(e.mediaDuration)?n=e.mediaDuration:Number.isFinite(a)&&(n=a),null==i||null===n)return void e.setAttribute("aria-description",(0,A.t)("video not loaded, unknown time."));const r=e.remaining?(0,b.ss)(0-(n-i)):(0,b.ss)(i);if(!e.showDuration)return void e.setAttribute("aria-description",r);const o=(0,b.ss)(n),s=(0,A.t)("{currentTime} of {totalTime}",{currentTime:r,totalTime:o});e.setAttribute("aria-description",s)})(this),e!==w(this,a).innerHTML&&(w(this,a).innerHTML=e)}}a=new WeakMap,n=new WeakMap,r=new WeakMap,o=new WeakSet,s=function(){w(this,n)||(y(this,n,(e=>{const{key:t}=e;M.includes(t)?this.toggleTimeDisplay():this.removeEventListener("keyup",w(this,n))})),this.addEventListener("keydown",w(this,r)),this.addEventListener("click",this.toggleTimeDisplay))},d=new WeakSet,l=function(){w(this,n)&&(this.removeEventListener("keyup",w(this,n)),this.removeEventListener("keydown",w(this,r)),this.removeEventListener("click",this.toggleTimeDisplay),y(this,n,null))},m=new WeakSet,u=function(){this.noToggle||this.hasAttribute("disabled")||(this.setAttribute("role","button"),this.enable(),C(this,o,s).call(this))},c=new WeakSet,h=function(){this.removeAttribute("role"),this.disable(),C(this,d,l).call(this)},D.getSlotTemplateHTML=function(e,t){return`\n    <slot>${k(t)}</slot>\n  `},E.Au.customElements.get("media-time-display")||E.Au.customElements.define("media-time-display",D)},99326:(e,t,i)=>{var a,n,r,o,s,d,l,m,u,c,h,p,v,E,b,g,A,f,w,I,y,C,_,T,M,k,D=i(72358),R=i(28265),x=i(67582),L=(i(30706),i(24108),i(17055)),S=i(8257),P=i(587),G=i(50456),U=i(68126),O=i(68218),N=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},W=(e,t,i)=>(N(e,t,"read from private field"),i?i.call(e):t.get(e)),V=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},H=(e,t,i,a)=>(N(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),$=(e,t,i)=>(N(e,t,"access private method"),i);const B=(e,t=e.mediaCurrentTime)=>{const i=Number.isFinite(e.mediaSeekableStart)?e.mediaSeekableStart:0,a=Number.isFinite(e.mediaDuration)?e.mediaDuration:e.mediaSeekableEnd;if(Number.isNaN(a))return 0;const n=(t-i)/(a-i);return Math.max(0,Math.min(n,1))},Q=(e,t=e.range.valueAsNumber)=>{const i=Number.isFinite(e.mediaSeekableStart)?e.mediaSeekableStart:0,a=Number.isFinite(e.mediaDuration)?e.mediaDuration:e.mediaSeekableEnd;return Number.isNaN(a)?0:t*(a-i)+i};class K extends R.Y{constructor(){super(),V(this,p),V(this,b),V(this,A),V(this,w),V(this,y),V(this,_),V(this,M),V(this,a,null),V(this,n,void 0),V(this,r,void 0),V(this,o,void 0),V(this,s,void 0),V(this,d,void 0),V(this,l,void 0),V(this,m,void 0),V(this,u,void 0),V(this,c,void 0),V(this,h,(()=>{$(this,p,v).call(this)?W(this,n).start():W(this,n).stop()})),V(this,E,(e=>{this.dragging||((0,S.gf)(e)&&(this.range.valueAsNumber=e),W(this,c)||this.updateBar())})),this.shadowRoot.querySelector("#track").insertAdjacentHTML("afterbegin",'<div id="buffered" part="buffered"></div>'),H(this,r,this.shadowRoot.querySelectorAll('[part~="box"]')),H(this,s,this.shadowRoot.querySelector('[part~="preview-box"]')),H(this,d,this.shadowRoot.querySelector('[part~="current-box"]'));const e=getComputedStyle(this);H(this,l,parseInt(e.getPropertyValue("--media-box-padding-left"))),H(this,m,parseInt(e.getPropertyValue("--media-box-padding-right"))),H(this,n,new U.O(this.range,W(this,E),60))}static get observedAttributes(){return[...super.observedAttributes,L.GC.MEDIA_PAUSED,L.GC.MEDIA_DURATION,L.GC.MEDIA_SEEKABLE,L.GC.MEDIA_CURRENT_TIME,L.GC.MEDIA_PREVIEW_IMAGE,L.GC.MEDIA_PREVIEW_TIME,L.GC.MEDIA_PREVIEW_CHAPTER,L.GC.MEDIA_BUFFERED,L.GC.MEDIA_PLAYBACK_RATE,L.GC.MEDIA_LOADING,L.GC.MEDIA_ENDED]}connectedCallback(){var e;super.connectedCallback(),this.range.setAttribute("aria-label",(0,O.t)("seek")),W(this,h).call(this),H(this,a,this.getRootNode()),null==(e=W(this,a))||e.addEventListener("transitionstart",this)}disconnectedCallback(){var e;super.disconnectedCallback(),W(this,n).stop(),null==(e=W(this,a))||e.removeEventListener("transitionstart",this),H(this,a,null)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),t!=i&&(e===L.GC.MEDIA_CURRENT_TIME||e===L.GC.MEDIA_PAUSED||e===L.GC.MEDIA_ENDED||e===L.GC.MEDIA_LOADING||e===L.GC.MEDIA_DURATION||e===L.GC.MEDIA_SEEKABLE?(W(this,n).update({start:B(this),duration:this.mediaSeekableEnd-this.mediaSeekableStart,playbackRate:this.mediaPlaybackRate}),W(this,h).call(this),(e=>{const t=e.range,i=(0,P.ss)(+Q(e)),a=(0,P.ss)(+e.mediaSeekableEnd),n=i&&a?(0,O.t)("{currentTime} of {totalTime}",{currentTime:i,totalTime:a}):(0,O.t)("video not loaded, unknown time.");t.setAttribute("aria-valuetext",n)})(this)):e===L.GC.MEDIA_BUFFERED&&this.updateBufferedBar(),e!==L.GC.MEDIA_DURATION&&e!==L.GC.MEDIA_SEEKABLE||(this.mediaChapter
1sCues=W(this,u),this.updateBar()))}get mediaChaptersCues(){return W(this,u)}set mediaChaptersCues(e){var t;H(this,u,e),this.updateSegments(null==(t=W(this,u))?void 0:t.map((e=>({start:B(this,e.startTime),end:B(this,e.endTime)}))))}get mediaPaused(){return(0,G.Y_)(this,L.GC.MEDIA_PAUSED)}set mediaPaused(e){(0,G.QW)(this,L.GC.MEDIA_PAUSED,e)}get mediaLoading(){return(0,G.Y_)(this,L.GC.MEDIA_LOADING)}set mediaLoading(e){(0,G.QW)(this,L.GC.MEDIA_LOADING,e)}get mediaDuration(){return(0,G.dm)(this,L.GC.MEDIA_DURATION)}set mediaDuration(e){(0,G.pK)(this,L.GC.MEDIA_DURATION,e)}get mediaCurrentTime(){return(0,G.dm)(this,L.GC.MEDIA_CURRENT_TIME)}set mediaCurrentTime(e){(0,G.pK)(this,L.GC.MEDIA_CURRENT_TIME,e)}get mediaPlaybackRate(){return(0,G.dm)(this,L.GC.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){(0,G.pK)(this,L.GC.MEDIA_PLAYBACK_RATE,e)}get mediaBuffered(){const e=this.getAttribute(L.GC.MEDIA_BUFFERED);return e?e.split(" ").map((e=>e.split(":").map((e=>+e)))):[]}set mediaBuffered(e){if(!e)return void this.removeAttribute(L.GC.MEDIA_BUFFERED);const t=e.map((e=>e.join(":"))).join(" ");this.setAttribute(L.GC.MEDIA_BUFFERED,t)}get mediaSeekable(){const e=this.getAttribute(L.GC.MEDIA_SEEKABLE);if(e)return e.split(":").map((e=>+e))}set mediaSeekable(e){null!=e?this.setAttribute(L.GC.MEDIA_SEEKABLE,e.join(":")):this.removeAttribute(L.GC.MEDIA_SEEKABLE)}get mediaSeekableEnd(){var e;const[,t=this.mediaDuration]=null!=(e=this.mediaSeekable)?e:[];return t}get mediaSeekableStart(){var e;const[t=0]=null!=(e=this.mediaSeekable)?e:[];return t}get mediaPreviewImage(){return(0,G.vT)(this,L.GC.MEDIA_PREVIEW_IMAGE)}set mediaPreviewImage(e){(0,G.tA)(this,L.GC.MEDIA_PREVIEW_IMAGE,e)}get mediaPreviewTime(){return(0,G.dm)(this,L.GC.MEDIA_PREVIEW_TIME)}set mediaPreviewTime(e){(0,G.pK)(this,L.GC.MEDIA_PREVIEW_TIME,e)}get mediaEnded(){return(0,G.Y_)(this,L.GC.MEDIA_ENDED)}set mediaEnded(e){(0,G.QW)(this,L.GC.MEDIA_ENDED,e)}updateBar(){super.updateBar(),this.updateBufferedBar(),this.updateCurrentBox()}updateBufferedBar(){var e;const t=this.mediaBuffered;if(!t.length)return;let i;if(this.mediaEnded)i=1;else{const a=this.mediaCurrentTime,[,n=this.mediaSeekableStart]=null!=(e=t.find((([e,t])=>e<=a&&a<=t)))?e:[];i=B(this,n)}const{style:a}=(0,G.aQ)(this.shadowRoot,"#buffered");a.setProperty("width",100*i+"%")}updateCurrentBox(){if(!this.shadowRoot.querySelector('slot[name="current"]').assignedElements().length)return;const e=(0,G.aQ)(this.shadowRoot,"#current-rail"),t=(0,G.aQ)(this.shadowRoot,'[part~="current-box"]'),i=$(this,b,g).call(this,W(this,d)),a=$(this,A,f).call(this,i,this.range.valueAsNumber),n=$(this,w,I).call(this,i,this.range.valueAsNumber);e.style.transform=`translateX(${a})`,e.style.setProperty("--_range-width",`${i.range.width}`),t.style.setProperty("--_box-shift",`${n}`),t.style.setProperty("--_box-width",`${i.box.width}px`),t.style.setProperty("visibility","initial")}handleEvent(e){switch(super.handleEvent(e),e.type){case"input":$(this,M,k).call(this);break;case"pointermove":$(this,y,C).call(this,e);break;case"pointerup":W(this,c)&&H(this,c,!1);break;case"pointerdown":H(this,c,!0);break;case"pointerleave":$(this,_,T).call(this,null);break;case"transitionstart":(0,G.qg)(e.target,this)&&setTimeout((()=>W(this,h).call(this)),0)}}}a=new WeakMap,n=new WeakMap,r=new WeakMap,o=new WeakMap,s=new WeakMap,d=new WeakMap,l=new WeakMap,m=new WeakMap,u=new WeakMap,c=new WeakMap,h=new WeakMap,p=new WeakSet,v=function(){return this.isConnected&&!this.mediaPaused&&!this.mediaLoading&&!this.mediaEnded&&this.mediaSeekableEnd>0&&(0,G.J9)(this)},E=new WeakMap,b=new WeakSet,g=function(e){var t;const i=(null!=(t=this.getAttribute("bounds")?(0,G.CQ)(this,`#${this.getAttribute("bounds")}`):this.parentElement)?t:this).getBoundingClientRect(),a=this.range.getBoundingClientRect(),n=e.offsetWidth;return{box:{width:n,min:-(a.left-i.left-n/2),max:i.right-a.left-n/2},bounds:i,range:a}},A=new WeakSet,f=function(e,t){let i=100*t+"%";const{width:a,min:n,max:r}=e.box;return a?(Number.isNaN(n)||(i=`max(calc(1 / var(--_range-width) * 100 * ${n}% + var(--media-box-padding-left)), ${i})`),Number.isNaN(r)||(i=`min(${i}, calc(1 / var(--_range-width) * 100 * ${r}% - var(--media-box-padding-right)))`),i):i},w=new WeakSet,I=function(e,t){const{width:i,min:a,max:n}
1=e.box,r=t*e.range.width;return r<a+W(this,l)?r-i/2+(e.range.left-e.bounds.left-W(this,l))+"px":r>n-W(this,m)?r+i/2-(e.bounds.right-e.range.right-W(this,m))-e.range.width+"px":0},y=new WeakSet,C=function(e){const t=[...W(this,r)].some((t=>e.composedPath().includes(t)));if(!this.dragging&&(t||!e.composedPath().includes(this)))return void $(this,_,T).call(this,null);const i=this.mediaSeekableEnd;if(!i)return;const a=(0,G.aQ)(this.shadowRoot,"#preview-rail"),n=(0,G.aQ)(this.shadowRoot,'[part~="preview-box"]'),d=$(this,b,g).call(this,W(this,s));let l=(e.clientX-d.range.left)/d.range.width;l=Math.max(0,Math.min(1,l));const m=$(this,A,f).call(this,d,l),u=$(this,w,I).call(this,d,l);a.style.transform=`translateX(${m})`,a.style.setProperty("--_range-width",`${d.range.width}`),n.style.setProperty("--_box-shift",`${u}`),n.style.setProperty("--_box-width",`${d.box.width}px`);const c=Math.round(W(this,o))-Math.round(l*i);Math.abs(c)<1&&l>.01&&l<.99||(H(this,o,l*i),$(this,_,T).call(this,W(this,o)))},_=new WeakSet,T=function(e){this.dispatchEvent(new D.Au.CustomEvent(L.a8.MEDIA_PREVIEW_REQUEST,{composed:!0,bubbles:!0,detail:e}))},M=new WeakSet,k=function(){W(this,n).stop();const e=Q(this);this.dispatchEvent(new D.Au.CustomEvent(L.a8.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e}))},K.shadowRootOptions={mode:"open"},K.getContainerTemplateHTML=function(e){return`\n    <style>\n      :host {\n        --media-box-border-radius: 4px;\n        --media-box-padding-left: 10px;\n        --media-box-padding-right: 10px;\n        --media-preview-border-radius: var(--media-box-border-radius);\n        --media-box-arrow-offset: var(--media-box-border-radius);\n        --_control-background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));\n        --_preview-background: var(--media-preview-background, var(--_control-background));\n\n        \n        contain: layout;\n      }\n\n      #buffered {\n        background: var(--media-time-range-buffered-color, rgb(255 255 255 / .4));\n        position: absolute;\n        height: 100%;\n        will-change: width;\n      }\n\n      #preview-rail,\n      #current-rail {\n        width: 100%;\n        position: absolute;\n        left: 0;\n        bottom: 100%;\n        pointer-events: none;\n        will-change: transform;\n      }\n\n      [part~="box"] {\n        width: min-content;\n        \n        position: absolute;\n        bottom: 100%;\n        flex-direction: column;\n        align-items: center;\n        transform: translateX(-50%);\n      }\n\n      [part~="current-box"] {\n        display: var(--media-current-box-display, var(--media-box-display, flex));\n        margin: var(--media-current-box-margin, var(--media-box-margin, 0 0 5px));\n        visibility: hidden;\n      }\n\n      [part~="preview-box"] {\n        display: var(--media-preview-box-display, var(--media-box-display, flex));\n        margin: var(--media-preview-box-margin, var(--media-box-margin, 0 0 5px));\n        transition-property: var(--media-preview-transition-property, visibility, opacity);\n        transition-duration: var(--media-preview-transition-duration-out, .25s);\n        transition-delay: var(--media-preview-transition-delay-out, 0s);\n        visibility: hidden;\n        opacity: 0;\n      }\n\n      :host(:is([${L.GC.MEDIA_PREVIEW_IMAGE}], [${L.GC.MEDIA_PREVIEW_TIME}])[dragging]) [part~="preview-box"] {\n        transition-duration: var(--media-preview-transition-duration-in, .5s);\n        transition-delay: var(--media-preview-transition-delay-in, .25s);\n        visibility: visible;\n        opacity: 1;\n      }\n\n      @media (hover: hover) {\n        :host(:is([${L.GC.MEDIA_PREVIEW_IMAGE}], [${L.GC.MEDIA_PREVIEW_TIME}]):hover) [part~="preview-box"] {\n          transition-duration: var(--media-preview-transition-duration-in, .5s);\n          transition-delay: var(--media-preview-transition-delay-in, .25s);\n          visibility: visible;\n          opacity: 1;\n        }\n      }\n\n      media-preview-thumbnail,\n      ::slotted(media-preview-thumbnail) {\n        visibility: hidden;\n        \n        transition: visibility 0s .25s;\n        transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
1\n        background: var(--media-preview-thumbnail-background, var(--_preview-background));\n        box-shadow: var(--media-preview-thumbnail-box-shadow, 0 0 4px rgb(0 0 0 / .2));\n        max-width: var(--media-preview-thumbnail-max-width, 180px);\n        max-height: var(--media-preview-thumbnail-max-height, 160px);\n        min-width: var(--media-preview-thumbnail-min-width, 120px);\n        min-height: var(--media-preview-thumbnail-min-height, 80px);\n        border: var(--media-preview-thumbnail-border);\n        border-radius: var(--media-preview-thumbnail-border-radius,\n          var(--media-preview-border-radius) var(--media-preview-border-radius) 0 0);\n      }\n\n      :host([${L.GC.MEDIA_PREVIEW_IMAGE}][dragging]) media-preview-thumbnail,\n      :host([${L.GC.MEDIA_PREVIEW_IMAGE}][dragging]) ::slotted(media-preview-thumbnail) {\n        transition-delay: var(--media-preview-transition-delay-in, .25s);\n        visibility: visible;\n      }\n\n      @media (hover: hover) {\n        :host([${L.GC.MEDIA_PREVIEW_IMAGE}]:hover) media-preview-thumbnail,\n        :host([${L.GC.MEDIA_PREVIEW_IMAGE}]:hover) ::slotted(media-preview-thumbnail) {\n          transition-delay: var(--media-preview-transition-delay-in, .25s);\n          visibility: visible;\n        }\n\n        :host([${L.GC.MEDIA_PREVIEW_TIME}]:hover) {\n          --media-time-range-hover-display: block;\n        }\n      }\n\n      media-preview-chapter-display,\n      ::slotted(media-preview-chapter-display) {\n        font-size: var(--media-font-size, 13px);\n        line-height: 17px;\n        min-width: 0;\n        visibility: hidden;\n        \n        transition: min-width 0s, border-radius 0s, margin 0s, padding 0s, visibility 0s;\n        transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));\n        background: var(--media-preview-chapter-background, var(--_preview-background));\n        border-radius: var(--media-preview-chapter-border-radius,\n          var(--media-preview-border-radius) var(--media-preview-border-radius)\n          var(--media-preview-border-radius) var(--media-preview-border-radius));\n        padding: var(--media-preview-chapter-padding, 3.5px 9px);\n        margin: var(--media-preview-chapter-margin, 0 0 5px);\n        text-shadow: var(--media-preview-chapter-text-shadow, 0 0 4px rgb(0 0 0 / .75));\n      }\n\n      :host([${L.GC.MEDIA_PREVIEW_IMAGE}]) media-preview-chapter-display,\n      :host([${L.GC.MEDIA_PREVIEW_IMAGE}]) ::slotted(media-preview-chapter-display) {\n        transition-delay: var(--media-preview-transition-delay-in, .25s);\n        border-radius: var(--media-preview-chapter-border-radius, 0);\n        padding: var(--media-preview-chapter-padding, 3.5px 9px 0);\n        margin: var(--media-preview-chapter-margin, 0);\n        min-width: 100%;\n      }\n\n      media-preview-chapter-display[${L.GC.MEDIA_PREVIEW_CHAPTER}],\n      ::slotted(media-preview-chapter-display[${L.GC.MEDIA_PREVIEW_CHAPTER}]) {\n        visibility: visible;\n      }\n\n      media-preview-chapter-display:not([aria-valuetext]),\n      ::slotted(media-preview-chapter-display:not([aria-valuetext])) {\n        display: none;\n      }\n\n      media-preview-time-display,\n      ::slotted(media-preview-time-display),\n      media-time-display,\n      ::slotted(media-time-display) {\n        font-size: var(--media-font-size, 13px);\n        line-height: 17px;\n        min-width: 0;\n        \n        transition: min-width 0s, border-radius 0s;\n        transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));\n        background: var(--media-preview-time-background, var(--_preview-background));\n        border-radius: var(--media-preview-time-border-radius,\n          var(--media-preview-border-radius) var(--media-preview-border-radius)\n          var(--media-preview-border-radius) var(--media-preview-border-radius));\n        padding: var(--media-preview-time-padding, 3.5px 9px);\n        margin: var(--media-preview-time-margin, 0);\n        text-shadow: var(--media-preview-time-text-shadow, 0 0 4px rgb(0 0 0 / .75));\n        transform: translateX(min(\n          max(calc(50% - var(--_box-width) / 2),\n          calc(var(--_box-shift, 0))),\n          calc(var(--_box-width) / 2 - 50%)\n        ));\n      }\n\n      :host([${L.GC.MEDIA_PREVIEW_IMAGE}]) media-preview-time-display,\n      :host([${L.GC.MEDIA_PREVIEW_IMAGE}]) ::slotted(media-preview-time-display) {\n        transition-delay: var(--media-preview-transition-delay-in, .25s);\n        border-radius: var(--media-preview-time-border-radius,\n          0 0 var(--media-preview-border-radius) var(--media-preview-border-radius));\n        min-width: 100%;\n      }\n\n      :host([${L.GC.MEDIA_PREVIEW_TIME}]:hover) {\n        --media-time-range-hover-display: block;\n      }\n\n      [part~="arrow"],\n      ::slotted([part~="arrow"]) {\n        display: var(--media-box-arrow-display, inline-block);\n        transform: translateX(min(\n          max(calc(50% - var(--_box-width) / 2 + var(--media-box-arrow-offset)),\n          calc(var(--_box-shift, 0))),\n          calc(var(--_box-width) / 2 - 50% - var(--media-box-arrow-offset))\n        ));\n        \n        border-color: transparent;\n        border-top-color: var(--media-box-arrow-background, var(--_control-background));\n        border-width: var(--media-box-arrow-border-width,\n          var(--media-box-arrow-height, 5px) var(--media-box-arrow-width, 6px) 0);\n        border-style: solid;\n        justify-content: center;\n        height: 0;\n      }\n    </style>\n    <div id="preview-rail">\n      <slot name="preview" part="box preview-box">
1\n        <media-preview-thumbnail>\n          <template shadowrootmode="${x.A.shadowRootOptions.mode}">\n            ${x.A.getTemplateHTML({})}\n          </template>\n        </media-preview-thumbnail>\n        <media-preview-chapter-display></media-preview-chapter-display>\n        <media-preview-time-display></media-preview-time-display>\n        <slot name="preview-arrow"><div part="arrow"></div></slot>\n      </slot>\n    </div>\n    <div id="current-rail">\n      <slot name="current" part="box current-box">\n        \n      </slot>\n    </div>\n  `},D.Au.customElements.get("media-time-range")||D.Au.customElements.define("media-time-range",K)},82932:(e,t,i)=>{i.d(t,{A:()=>d});var a=i(50456),n=i(72358);const r="placement",o="bounds";class s extends n.Au.HTMLElement{constructor(){if(super(),this.updateXOffset=()=>{var e;if(!(0,a.J9)(this,{checkOpacity:!1,checkVisibilityCSS:!1}))return;const t=this.placement;if("left"===t||"right"===t)return void this.style.removeProperty("--media-tooltip-offset-x");const i=getComputedStyle(this),n=null!=(e=(0,a.CQ)(this,"#"+this.bounds))?e:(0,a.Bk)(this);if(!n)return;const{x:r,width:o}=n.getBoundingClientRect(),{x:s,width:d}=this.getBoundingClientRect(),l=s+d,m=r+o,u=i.getPropertyValue("--media-tooltip-offset-x"),c=u?parseFloat(u.replace("px","")):0,h=i.getPropertyValue("--media-tooltip-container-margin"),p=h?parseFloat(h.replace("px","")):0,v=s-r+c-p,E=l-m+c+p;v<0?this.style.setProperty("--media-tooltip-offset-x",`${v}px`):E>0?this.style.setProperty("--media-tooltip-offset-x",`${E}px`):this.style.removeProperty("--media-tooltip-offset-x")},!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=(0,a.kg)(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}if(this.arrowEl=this.shadowRoot.querySelector("#arrow"),Object.prototype.hasOwnProperty.call(this,"placement")){const e=this.placement;delete this.placement,this.placement=e}}static get observedAttributes(){return[r,o]}get placement(){return(0,a.vT)(this,r)}set placement(e){(0,a.tA)(this,r,e)}get bounds(){return(0,a.vT)(this,o)}set bounds(e){(0,a.tA)(this,o,e)}}s.shadowRootOptions={mode:"open"},s.getTemplateHTML=function(e){return'\n    <style>\n      :host {\n        --_tooltip-background-color: var(--media-tooltip-background-color, var(--media-secondary-color, rgba(20, 20, 30, .7)));\n        --_tooltip-background: var(--media-tooltip-background, var(--_tooltip-background-color));\n        --_tooltip-arrow-half-width: calc(var(--media-tooltip-arrow-width, 12px) / 2);\n        --_tooltip-arrow-height: var(--media-tooltip-arrow-height, 5px);\n        --_tooltip-arrow-background: var(--media-tooltip-arrow-color, var(--_tooltip-background-color));\n        position: relative;\n        pointer-events: none;\n        display: var(--media-tooltip-display, inline-flex);\n        justify-content: center;\n        align-items: center;\n        box-sizing: border-box;\n        z-index: var(--media-tooltip-z-index, 1);\n        background: var(--_tooltip-background);\n        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));\n        font: var(--media-font,\n          var(--media-font-weight, 400)\n          var(--media-font-size, 13px) /\n          var(--media-text-content-height, var(--media-control-height, 18px))\n          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));\n        padding: var(--media-tooltip-padding, .35em .7em);\n        border: var(--media-tooltip-border, none);\n        border-radius: var(--media-tooltip-border-radius, 5px);\n        filter: var(--media-tooltip-filter, drop-shadow(0 0 4px rgba(0, 0, 0, .2)));\n        white-space: var(--media-tooltip-white-space, nowrap);\n      }\n\n      :host([hidden]) {\n        display: none;\n      }\n\n      img, svg {\n        display: inline-block;\n      }\n\n      #arrow {\n        position: absolute;\n        width: 0px;\n        height: 0px;\n        border-style: solid;\n        display: var(--media-tooltip-arrow-display, block);\n      }\n\n      :host(:not([placement])),\n      :host([placement="top"]) {\n        position: absolute;\n        bottom: calc(100% + var(--media-tooltip-distance, 12px));\n        left: 50%;\n        transform: translate(calc(-50% - var(--media-tooltip-offset-x, 0px)), 0
1);\n      }\n      :host(:not([placement])) #arrow,\n      :host([placement="top"]) #arrow {\n        top: 100%;\n        left: 50%;\n        border-width: var(--_tooltip-arrow-height) var(--_tooltip-arrow-half-width) 0 var(--_tooltip-arrow-half-width);\n        border-color: var(--_tooltip-arrow-background) transparent transparent transparent;\n        transform: translate(calc(-50% + var(--media-tooltip-offset-x, 0px)), 0);\n      }\n\n      :host([placement="right"]) {\n        position: absolute;\n        left: calc(100% + var(--media-tooltip-distance, 12px));\n        top: 50%;\n        transform: translate(0, -50%);\n      }\n      :host([placement="right"]) #arrow {\n        top: 50%;\n        right: 100%;\n        border-width: var(--_tooltip-arrow-half-width) var(--_tooltip-arrow-height) var(--_tooltip-arrow-half-width) 0;\n        border-color: transparent var(--_tooltip-arrow-background) transparent transparent;\n        transform: translate(0, -50%);\n      }\n\n      :host([placement="bottom"]) {\n        position: absolute;\n        top: calc(100% + var(--media-tooltip-distance, 12px));\n        left: 50%;\n        transform: translate(calc(-50% - var(--media-tooltip-offset-x, 0px)), 0);\n      }\n      :host([placement="bottom"]) #arrow {\n        bottom: 100%;\n        left: 50%;\n        border-width: 0 var(--_tooltip-arrow-half-width) var(--_tooltip-arrow-height) var(--_tooltip-arrow-half-width);\n        border-color: transparent transparent var(--_tooltip-arrow-background) transparent;\n        transform: translate(calc(-50% + var(--media-tooltip-offset-x, 0px)), 0);\n      }\n\n      :host([placement="left"]) {\n        position: absolute;\n        right: calc(100% + var(--media-tooltip-distance, 12px));\n        top: 50%;\n        transform: translate(0, -50%);\n      }\n      :host([placement="left"]) #arrow {\n        top: 50%;\n        left: 100%;\n        border-width: var(--_tooltip-arrow-half-width) 0 var(--_tooltip-arrow-half-width) var(--_tooltip-arrow-height);\n        border-color: transparent transparent transparent var(--_tooltip-arrow-background);\n        transform: translate(0, -50%);\n      }\n      \n      :host([placement="none"]) #arrow {\n        display: none;\n      }\n    </style>\n    <slot></slot>\n    <div id="arrow"></div>\n  '},n.Au.customElements.get("media-tooltip")||n.Au.customElements.define("media-tooltip",s);var d=s},70801:(e,t,i)=>{var a,n=i(72358),r=i(28265),o=i(17055),s=i(68218),d=i(50456),l=(e,t,i)=>(((e,t)=>{if(!t.has(e))throw TypeError("Cannot read from private field")})(e,t),i?i.call(e):t.get(e));class m extends r.Y{constructor(){super(...arguments),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,a,(()=>{const e=this.range.value,t=new n.Au.CustomEvent(o.a8.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}))}static get observedAttributes(){return[...super.observedAttributes,o.GC.MEDIA_VOLUME,o.GC.MEDIA_MUTED,o.GC.MEDIA_VOLUME_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),this.range.setAttribute("aria-label",(0,s.t)("volume")),this.range.addEventListener("input",l(this,a))}disconnectedCallback(){this.range.removeEventListener("input",l(this,a)),super.disconnectedCallback()}attributeChangedCallback(e,t,i){var a;super.attributeChangedCallback(e,t,i),e!==o.GC.MEDIA_VOLUME&&e!==o.GC.MEDIA_MUTED||(this.range.valueAsNumber=this.mediaMuted?0:this.mediaVolume,this.range.setAttribute("aria-valuetext",(a=this.range.valueAsNumber,`${Math.round(100*a)}%`)),this.updateBar())}
1get mediaVolume(){return(0,d.dm)(this,o.GC.MEDIA_VOLUME,1)}set mediaVolume(e){(0,d.pK)(this,o.GC.MEDIA_VOLUME,e)}get mediaMuted(){return(0,d.Y_)(this,o.GC.MEDIA_MUTED)}set mediaMuted(e){(0,d.QW)(this,o.GC.MEDIA_MUTED,e)}get mediaVolumeUnavailable(){return(0,d.vT)(this,o.GC.MEDIA_VOLUME_UNAVAILABLE)}set mediaVolumeUnavailable(e){(0,d.tA)(this,o.GC.MEDIA_VOLUME_UNAVAILABLE,e)}}a=new WeakMap,n.Au.customElements.get("media-volume-range")||n.Au.customElements.define("media-volume-range",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.