import{l as a}from"./p-dca1478c.js";import{g as r}from"./p-80483281.js";async function o(o){let c=o?await r(o,null):null;try{o?await a.removeItem(o):await a.clear()}catch(a){console.log("Error clearing data from cache with localforage",a)}try{o?localStorage.removeItem(o):localStorage.clear()}catch(a){console.log("Error clearing data from cache with LocalStorage",a)}return c}export{o as c}