"use strict";var i=Object.defineProperty;var a=(s,e,t)=>e in s?i(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var r=(s,e,t)=>(a(s,typeof e!="symbol"?e+"":e,t),t);const n="@pandino/persistence-manager/PersistenceManager",c="type";class o{constructor(){r(this,"map",new Map)}delete(e){this.map.delete(e)}exists(e){return this.map.has(e)}getProperties(){return Array.from(this.map.values())}load(e){return this.map.get(e)}store(e,t){this.map.set(e,t)}}class p{constructor(){r(this,"serviceRegistration");r(this,"service")}async start(e){this.service=new o,this.serviceRegistration=e.registerService(n,this.service,{[c]:"in-memory"})}async stop(e){this.serviceRegistration&&this.serviceRegistration.unregister()}}module.exports=p;