1var e={getStorage(){return window.localStorage?window.localStorage:window.sessionStorage?window.sessionStorage:e.getMemoryStorage()},getMemoryStorage(){let e=new Map;return{setItem(t,n){e.set(t,n)},getItem(t){return e.get(t)},removeItem(t){e.delete(t)},clear(){e.clear()},get length(){return e.size},key(t){return Array.from(e.values())[t]}}}},t=function(e){return e.LocalStorage=`localStorage`,e.SessionStorage=`sessionStorage`,e.MemoryStorage=`memoryStorage`,e}({}),n=class{constructor(t){if(this.cachePrefix=`_cv:`,this.expireTime=3600,this.type=t.type,this.hasSupport=this.hasBrowserSupport(),this.hasSupport)try{this.type===`memoryStorage`?this.storage=e.getMemoryStorage():this.storage=window[this.type]}catch{}}isAvailable(){return this.hasSupport}get(e){if(!this.hasSupport)return;let t=this.storage.getItem(e);try{return JSON.parse(t)}catch{return t}}set(e,t){if(this.hasSupport)try{return this.storage.removeItem(e),typeof t==`string`?(this.storage.setItem(e,t),!0):(this.storage.setItem(e,JSON.stringify(t)),!0)}catch{return!1}}remove(e){if(this.hasSupport)return this.storage.removeItem(e)}length(){if(this.hasSupport)return this.storage.length}clear(){if(this.hasSupport)return this.storage.clear()}cacheSet(e,t,n=this.expireTime){this.cacheClean();let r={time:this.getCurrentTime()+n*1e3,data:t!=null&&t};return this.set(`${this.cachePrefix}${e}`,r)}cacheGet(e){let t=`${this.cachePrefix}${e}`,n=this.get(t);return n?this.isExpired(n)?(this.remove(t),null):n.data:null}cacheExists(e){let t=`${this.cachePrefix}${e}`,n=this.get(t);return n?this.isExpired(n)?(this.remove(t),!1):!0:!1}cacheRemove(e){return this.remove(`${this.cachePrefix}${e}`)}cacheFlush(){this.cacheClean()}cacheClean(){if(this.hasSupport)for(let e=0;e<this.storage.length;e++){let t=this.storage.key(e);if(t.indexOf(this.cachePrefix)===0){let e=this.get(t);e&&e.time&&this.isExpired(e)&&this.remove(t)}}}isExpired(e){return e.time<this.getCurrentTime()}getCurrentTime(){return new Date().getTime()}hasBrowserSupport(){if(this.type===`memoryStorage`)return!0;try{return this.type in window&&window[this.type]!==null}catch{return!1}}},r=class extends n{static get Instance(){return this.instance||=new this({type:`localStorage`})}},i=class extends n{static get Instance(){return this.instance||=new this({type:`sessionStorage`})}},a=class extends n{static get Instance(){return this.instance||=new this({type:`memoryStorage`})}},o=r.Instance,s=i.Instance,c=a.Instance;export{e as a,t as i,c as n,s as r,o as t}; 2//# sourceMappingURL=BYSskNbK.chunk.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.