import {J,a5 as fh,c as tS,eJ as ZI,aJ as hf,ad as ce}from'./main-WUGO6e7n.js';var w,d=J(()=>{fh();tS();w=(()=>{class t{constructor(){this.cache=new Map;}get(e,c,o=6e4){let r=Date.now(),s=this.cache.get(e);if(s&&s.expiry>r)return s.observable;{let a=c().pipe(ZI(1),hf(()=>{let l=r+o;this.cache.set(e,{observable:a,expiry:l});})),p=r+o;return this.cache.set(e,{observable:a,expiry:p}),a}}clearCache(e){e?this.cache.delete(e):this.cache.clear();}static{this.\u0275fac=function(c){return new(c||t)};}static{this.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();});export{d,w};