import{a as l}from"./chunk-NRBWRRAF.js";import{la as n,qa as s}from"./chunk-ISMRT7VU.js";import{a as o}from"./chunk-M5TX2NVG.js";var j=(()=>{class i{constructor(){this._localStorageService=s(l)}load(t,e){let r=this._localStorageService.get(t);return r?this._isPlainObject(e)&&this._isPlainObject(r)?o(o({},e),r):r:e}save(t,e){this._localStorageService.set(t,e)}patch(t,e,r){let c=this.load(t,r),a=this._isPlainObject(c)?o(o({},c),e):e;return this.save(t,a),a}clear(t){this._localStorageService.remove(t)}_isPlainObject(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275prov=n({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();export{j as a};
//# sourceMappingURL=chunk-2DNQGMLT.js.map
