(function(c,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("crypto-js")):typeof define=="function"&&define.amd?define(["exports","crypto-js"],r):(c=typeof globalThis<"u"?globalThis:c||self,r(c.Storage={},c["crypto-js"]))})(this,function(c,r){"use strict";const s=r.enc.Utf8.parse("DEIKna7RWJBEGya3"),l=r.enc.Utf8.parse("qaHMVbvWoWRVyJyS"),d=e=>{const a=r.enc.Utf8.parse(e);return r.AES.encrypt(a,s,{iv:l,mode:r.mode.CBC,padding:r.pad.Pkcs7}).ciphertext.toString()},g=e=>{const a=r.enc.Hex.parse(e),t=r.enc.Base64.stringify(a);return r.AES.decrypt(t,s,{iv:l,mode:r.mode.CBC,padding:r.pad.Pkcs7}).toString(r.enc.Utf8)},S=Object.freeze(Object.defineProperty({__proto__:null,clear:()=>localStorage.clear(),get:(e,a)=>{try{const t=localStorage.getItem(e),n=t&&(a!=null&&a.decrypt)?g(t):t;return JSON.parse(n)}catch{return null}},has:e=>localStorage.getItem(e)!==null,remove:e=>localStorage.removeItem(e),set:(e,a,t)=>{try{const n=JSON.stringify(a),o=t!=null&&t.encrypt?d(n):n;localStorage.setItem(e,o)}catch(n){throw new Error(`'localStorage.setItem' error: ${n}`)}}},Symbol.toStringTag,{value:"Module"})),u=Object.freeze(Object.defineProperty({__proto__:null,clear:()=>sessionStorage.clear(),get:(e,a)=>{try{const t=sessionStorage.getItem(e),n=t&&(a!=null&&a.decrypt)?g(t):t;return JSON.parse(n)}catch{return null}},has:e=>sessionStorage.getItem(e)!==null,remove:e=>sessionStorage.removeItem(e),set:(e,a,t)=>{try{const n=JSON.stringify(a),o=t!=null&&t.encrypt?d(n):n;sessionStorage.setItem(e,o)}catch(n){throw new Error(`'sessionStorage.setItem' error: ${n}`)}}},Symbol.toStringTag,{value:"Module"}));c.local=S,c.session=u,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});