1import{u}from"./20260923_30-DVg5e7cc.js";import{a6 as y,b7 as a}from"./20260923_30-BoOx6aVR.js";const w=()=>{const{instantMeili:n}=u(),r=async(t,e)=>{const{limit:o}=e;try{return await n.meiliSearchInstance.index(t).search("",{...e,limit:o||9999})}catch(i){return console.error(`Error fetching data from index ${t}:`,i),[]}},l=(t,e)=>{t&&new window.YT.Player(t,{events:{onStateChange:o=>{const i=o.data,s=window.YT.PlayerState;i===s.ENDED&&e.onVideoEnd?.(),i===s.PAUSED&&e.onVideoPaused?.(),i===s.PLAYING&&e.onVideoPlaying?.(),i===s.BUFFERING&&e.onVideoBuffering?.()}}})};return{getVideos:async t=>r("youtube-library",{...t,attributesToRetrieve:a["youtube-library"]}),getPlaylists:async t=>r("youtube-playlist-library",t),getVideoBySlug:async t=>r("youtube-library",{limit:1,filter:`slug = ${t}`,attributesToRetrieve:a["youtube-library"]}),getPlaylistBySlug:async t=>r("youtube-playlist-library",{limit:1,filter:`slug = ${t}`}),initYouTubePlayer:(t,e)=>{window.YT?l(t,e):y({script:[{src:"https://www.youtube.com/iframe_api"}]})}}};export{w as u};
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.