class n{_normalMap;_objectMap;constructor(){this._normalMap=new Map,this._objectMap=new WeakMap}_isObject(t){return typeof t=="object"&&t!==null}get(t){return this._isObject(t)?this._objectMap.get(t):this._normalMap.get(t)}set(t,e){this._isObject(t)?this._objectMap.set(t,e):this._normalMap.set(t,e)}has(t){return this._isObject(t)?this._objectMap.has(t):this._normalMap.has(t)}}function o(c,t){function e(...s){const a=t?t(...s):s[0];if(e.cache.has(a))return e.cache.get(a);const i=c.apply(this,s);return e.cache.set(a,i),i}return e.cache=new n,e}export{o as m};
