1import{c as L,p as E,t as b,a as w,b as k,r as v}from"./utilities.Bx_vydgi.js";function B(y=".media-switcher"){const c=document.querySelectorAll(y);for(let s=0;s<c.length;s++){let n=function(t){k(f),v(o),v(r),a.length>0&&(v(a),a[t]?.classList.add("active")),o[t]?.classList.add("active");const d=r[t];d?.classList.add("active"),l=t,m.update(t),o.forEach((g,q)=>{const u=g.querySelector(":scope > .button-content");u&&(u.style.height=q===t?`${u.scrollHeight}px`:"0px")}),d instanceof HTMLVideoElement&&d.play().catch(()=>{})};const e=c[s],i=Array.from(e.querySelectorAll("nav button")),o=i.length?i:Array.from(e.querySelectorAll("nav a")),p=e.querySelector(".prev"),A=e.querySelector(".next"),S=e.querySelector("nav"),r=Array.from(e.querySelectorAll(".media-stage > video, .media-stage > picture")),f=r.filter(t=>t instanceof HTMLVideoElement),a=Array.from(e.querySelectorAll(".markers button, .markers li"));let l=0;const m=L(S,o,()=>l);E(f),m.refresh();for(let t=0;t<o.length;t++)o[t]?.addEventListener("click",()=>n(t)),a[t]?.addEventListener("click",()=>n(t));p?.addEventListener("click",()=>b(l,r,n)),A?.addEventListener("click",()=>w(l,r,n))}}B(".media-switcher-two-thirds");function h(){document.querySelectorAll(".media-switcher-two-thirds").forEach(c=>{c.querySelectorAll("button").forEach(n=>{const e=n.querySelector(":scope > .button-content");if(!e)return;const i=e.scrollHeight;e.style.height=n.classList.contains("active")?`${i}px`:"0px"})})}h();window.addEventListener("load",h);window.addEventListener("resize",h);
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.