(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{Jb as s,gc as l,q as i,y as o}from"./chunk-XMRXO6YU.js";import{f as r,g as n,n as a}from"./chunk-CLPINNGF.js";a();n();var c=i("SidePanelService"),p=async()=>{let e=l.registerHook("CURRENT_CONTENT_CHANGED",async({currentContent:t})=>{o("/sidepanel/content-available",{url:window.location.href,hasContent:t!==null})});return()=>e()},P=async e=>{try{return await r.runtime.sendMessage({type:"OPEN_SIDE_PANEL",route:e})}catch(t){throw c.error("🔴 Failed to open side panel:",t),t}},y=async()=>{await r.runtime.sendMessage({type:"CLOSE_SIDE_PANEL"})},E=async()=>{try{return await s(500),await o("/sidepanel/request-summarization")}catch(e){throw c.error("🔴 Failed to request summarization:",e),e}},w=p;export{P as a,y as b,E as c,w as d};
//# sourceMappingURL=chunk-EXLYWLMO.js.map
