import{h as a,ia as c}from"./chunk-C2QKZJOP.js";var u=(()=>{let e=class e{constructor(){this._subjectsMap=new Map}set(t,r){try{localStorage.setItem(t,JSON.stringify(r)),this._getSubject(t).next(r)}catch(o){throw new Error(o)}}get(t){try{let r=localStorage.getItem(t);return r?JSON.parse(r):null}catch{return null}}remove(t){try{localStorage.removeItem(t)}catch(r){throw new Error(r)}}watch(t){return this._getSubject(t).asObservable()}_getSubject(t){if(!this._subjectsMap.has(t)){let r=this.get(t);this._subjectsMap.set(t,new a(r))}return this._subjectsMap.get(t)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=c({token:e,factory:e.\u0275fac});let s=e;return s})();export{u as a};
//# sourceMappingURL=chunk-NUCOBKMO.js.map
