const e=require(`../../constants/vite.constants.cjs`);require(`../../constants/index.cjs`);const t=require(`../../data-structures/cacheDevices/FileCacheDevice.cjs`),n=require(`../../data-structures/cacheDevices/LocalStorageCacheDevice.cjs`);require(`../../data-structures/cacheDevices/index.cjs`);var r=r=>{if(e.isNode){let e,n;r&&({useFileCache:e,cacheFilePath:n}=r);let i=require(`path`).resolve(process.cwd(),`hinkalCache.json`);return new t.FileCacheDevice(e,n??i)}else return new n.LocalStorageCacheDevice(r?.disableCaching,r?.serializedCache)};exports.createCacheDevice=r;