'use strict';
import { isBrowser } from '../lib/environments.js';
import { parseJson } from '../lib/utils.js';

var __defProp=Object['defineProperty'],__name=(_0x2d882a,_0x2607d6)=>__defProp(_0x2d882a,'name',{'value':_0x2607d6,'configurable':!![]});function sessionStorageGetAsString(_0x5b21d6){if(isBrowser()){const _0x201432=sessionStorage['getItem'](_0x5b21d6);return _0x201432??void(-0x3e6*-0x1+0x5*0x25e+-0x7de*0x2);}return void(0x330+-0xce4+0x9b4);}__name(sessionStorageGetAsString,'sessionStorageGetAsString');function getSessionStorage(_0x39633a){const _0x4aa074=sessionStorageGetAsString(_0x39633a);return _0x4aa074?parseJson(_0x4aa074):void(0x1493+0x1620+-0x2ab3);}__name(getSessionStorage,'getSessionStorage');function setSessionStorage(_0x5a3772,_0x4f1025){if(_0x4f1025===void(-0x3*0x1f3+-0x129b+0x1874))return;sessionStorage['setItem'](_0x5a3772,JSON['stringify'](_0x4f1025));}__name(setSessionStorage,'setSessionStorage');function removeSessionStorage(_0x23c8a2){sessionStorage['removeItem'](_0x23c8a2);}__name(removeSessionStorage,'removeSessionStorage');

export { getSessionStorage, removeSessionStorage, sessionStorageGetAsString, setSessionStorage };
