1import"./admin-capability-Cxs3cQMZ.js";import{t as e}from"./browser-storage-ajW9f3Tl.js";import"./cross-plane-markers-DdmZnQ2O.js";var t=`cx-tab-account`,n=`cx-u`,r=`${t}-detail`,i=`${t}-pending-index`,a=`${t}-index`;function o(){return(e(`session`)?.getItem(t))?.trim()||null}function s(t){if(!(!Number.isInteger(t)||t<0))try{e(`session`)?.setItem(i,String(t))}catch{}}function c(){let t=e(`session`)?.getItem(a);if(!t)return null;let n=Number(t);return Number.isInteger(n)&&n>=0?n:null}function l(n){let r=n.trim();if(r)try{e(`session`)?.setItem(t,r)}catch{}}function u(){if(typeof window>`u`)return null;let u;try{u=new URL(window.location.href)}catch{return null}let d=u.searchParams.get(`u`)?.trim();if(d&&/^\d+$/.test(d)){let n=Number(d);if(o()!==null&&c()===n)return null;if(o()!==null)try{e(`session`)?.removeItem(t),e(`session`)?.removeItem(r),e(`session`)?.removeItem(a)}catch{}return s(n),null}let f=u.searchParams.get(n)?.trim();if(!f)return null;try{e(`session`)?.removeItem(r),e(`session`)?.removeItem(a),e(`session`)?.removeItem(i)}catch{}l(f),u.searchParams.delete(n);try{window.history.replaceState(window.history.state,``,u.pathname+u.search+u.hash)}catch{}return f}function d(e,t){if(typeof window>`u`)return`#`;let r=new URL(t??window.location.pathname+window.location.search,window.location.origin);return r.searchParams.delete(`u`),r.searchParams.delete(n),typeof e.index==`number`&&Number.isInteger(e.index)&&e.index>=0?r.searchParams.set(`u`,String(e.index)):r.searchParams.set(n,e.sub),r.toString()}export{u as n,o as r,d as t};
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.