import{G as e,h as t}from"./vscode-api-DjORcpSo.js";var n=`codex-browser-sidebar-tweaks-submit-request`;function r(e){window.dispatchEvent(new CustomEvent(n,{detail:{conversationId:e}}))}function i(e,t){let r=n=>{n.detail.conversationId===e&&t()};return window.addEventListener(n,r),()=>{window.removeEventListener(n,r)}}var a=e(t,e=>null);function o(e,t,n,{isOpen:r,url:i}){let o=i.trim();e.set(a,c(t,n),{isOpen:r,url:o.length>0?o:null})}function s(e,t,n){return t==null||n==null?null:e.get(a,c(t,n))}function c(e,t){return`${e}\0${t}`}export{r as i,o as n,i as r,s as t};
//# sourceMappingURL=browser-sidebar-prompt-context-7z1CLxWt.js.map