function t(t){if("string"==typeof t)try{return JSON.parse(t)}catch(t){return}if("object"==typeof t)return t}function r(t,r){return Object.keys(t).filter((t=>t.startsWith(r))).reduce(((e,n)=>({...e,[n.replace(r,"")]:t[n]})),{})}export{r as e,t as p}