(function(){try{var g=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};g["__faroBundleId_Speechify Chrome Extension"]="13.4.1"}catch(l){}})();
import{gc as e}from"./chunk-XMRXO6YU.js";import"./chunk-ODCFEFOB.js";import"./chunk-24ZZP5UQ.js";import"./chunk-GQY3J744.js";import"./chunk-NWEJW7RD.js";import"./chunk-ASZMUWWE.js";import"./chunk-4XRFE7WB.js";import"./chunk-6I7EUWRH.js";import{g as i,n as s}from"./chunk-CLPINNGF.js";s();i();async function t(){if("mediaSession"in navigator)return navigator.mediaSession.setActionHandler("nexttrack",()=>a("forward")),navigator.mediaSession.setActionHandler("seekforward",()=>a("forward")),navigator.mediaSession.setActionHandler("previoustrack",()=>a("backward")),navigator.mediaSession.setActionHandler("seekbackward",()=>a("backward")),navigator.mediaSession.setActionHandler("pause",()=>e.pause()),navigator.mediaSession.setActionHandler("play",()=>e.play()),navigator.mediaSession.setActionHandler("seekto",async n=>console.warn("Not implemented yet",n)),()=>{navigator.mediaSession.setActionHandler("nexttrack",null),navigator.mediaSession.setActionHandler("seekforward",null),navigator.mediaSession.setActionHandler("previoustrack",null),navigator.mediaSession.setActionHandler("seekbackward",null),navigator.mediaSession.setActionHandler("pause",null),navigator.mediaSession.setActionHandler("play",null),navigator.mediaSession.setActionHandler("seekto",null)}}var a=async n=>{n==="backward"?e.seekPrevious():e.seekNext()};export{t as default};
//# sourceMappingURL=init-XFYABEG7.js.map
