const e=require("../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/defineProperty.js");var t=`%`,n=class{constructor(t){e.default(this,`instanceId`,void 0),e.default(this,`cache`,new Map),this.instanceId=t}get(e){return this.cache.get(Array.isArray(e)?e.join(t):e)||null}update(e,n){let r=Array.isArray(e)?e.join(t):e,i=n(this.cache.get(r));i===null?this.cache.delete(r):this.cache.set(r,i)}};exports.default=n;