1if(!customElements.get("video-player")){class a extends HTMLElement{constructor(){super(),this.playing=!1,this.video=this.querySelector("video");let e;var i=this.querySelector("[data-fullscreen]");this.video.muted;const s=this.video.autoplay;this.video.controls;const t=window.matchMedia("(min-width: 992px)");(this.media=t).addEventListener("change",this.mediaChangeHandler=()=>this.onResize(t)),this.onResize(t),i&&i.addEventListener("click",()=>{this.playing=!0,window.matchMedia("(min-width: 992px)").matches?(this.video.pause(),(e=document.createElement("video")).controls=!0,e.innerHTML=this.video.innerHTML,document.body.append(e),e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()):(this.video.currentTime=0,this.video.muted=!1,this.video.controls=!0,this.video.play(),this.video.classList.add("is-fullscreen"))}),document.addEventListener("fullscreenchange",this.fullscreenchangeHandler=()=>{e&&(document.fullscreenElement?(this.video.classList.add("is-fullscreen"),this.video.pause(),e.muted=!1,e.controls=!0,e.currentTime=0,e.play()):(this.playing=!1,e.remove(),this.video.classList.remove("is-fullscreen"),s&&(this.video.currentTime=e.currentTime,this.video.play())))})}onResize(e){e.matches&&this.playing&&(this.video.muted=!0,this.video.controls=!1,this.video.play(),this.video.classList.remove("is-fullscreen"))}disconnectedCallback(){this.media&&this.mediaChangeHandler&&this.media.removeEventListener("change",this.mediaChangeHandler),this.fullscreenchangeHandler&&document.removeEventListener("fullscreenchange",this.fullscreenchangeHandler)}}customElements.define("video-player",a)}
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.