1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`5ae8add9e1b1cf7fc8d221a20f4e72a7e1903a7f-app.mercury.com`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b54f8cb3-4f3a-46cd-b1f6-977b5f688c97`,e._sentryDebugIdIdentifier=`sentry-dbid-b54f8cb3-4f3a-46cd-b1f6-977b5f688c97`)}catch{}})();import{Hp as e}from"./MockConfig-CsL9j1tk.js";var t=class t{static _canUse;static hadError=(n,r)=>{e(`session storage access threw an exception (${r}). Disabling sessionStorage.`,{caughtError:n}),t._canUse=!1};static canUseSessionStorage=()=>{if(t._canUse!==void 0)return t._canUse;let e=`test`;try{if(sessionStorage.setItem(e,e),sessionStorage.getItem(e)!==e)throw Error(`sessionStorage returned a different value than we set.`);sessionStorage.removeItem(e),t._canUse=!0}catch(e){t.hadError(e,`canUseSessionStorage`)}return t._canUse};static set=(e,n)=>{if(!t.canUseSessionStorage())return{type:`failure`,error:`SessionStorageManager says we can't use session storage.`};try{return sessionStorage.setItem(e,n),{type:`success`}}catch(e){return t.hadError(e,`set`),{type:`failure`,error:e}}};static get=e=>{if(!t.canUseSessionStorage())return{type:`failure`,error:`SessionStorageManager says we can't use session storage.`};try{let t=sessionStorage.getItem(e);return t===null?{type:`missing`,result:null}:{type:`success`,result:t}}catch(e){return t.hadError(e,`get`),{type:`failure`,error:e}}};static hasKey=e=>t.get(e).type===`success`;static remove=e=>{if(!t.canUseSessionStorage())return{type:`failure`,error:`SessionStorageManager says we can't use session storage.`};try{return sessionStorage.removeItem(e),{type:`success`}}catch(e){return t.hadError(e,`remove`),{type:`failure`,error:e}}};static update=(e,n)=>n===void 0?t.remove(e):t.set(e,n);static successAnd=(e,t)=>e.type===`success`&&t(e.result);static safelySuccess=(e,t)=>e.type===`success`?t(e.result):void 0;static safelyOrSuccess=(e,t,n)=>this.safelySuccess(e,t)??n;static mapSuccess=(e,t)=>e.type===`success`?{...e,result:t(e.result)}:e;static setObject=(e,n)=>t.set(e,JSON.stringify(n));static getObject=e=>{try{return t.mapSuccess(t.get(e),e=>JSON.parse(e))}catch(e){return{type:`failure`,error:e}}}};export{t}; 2//# sourceMappingURL=SessionStorageManager-akjQdrHm.js.map
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.