const o="undefined",c=Object,s=t=>c.keys(t),p=(t,e)=>t.forEach(e),a=(t,e)=>t.map(e),f=t=>Array.isArray(t),l=t=>typeof t;typeof window===o&&(typeof process!==o&&process.browser);const i=t=>c.prototype.toString.call(t),y=t=>i(t)==="[object Object]",r=t=>{if(f(t))return a(t,r);if(y(t)&&t.constructor===c){const e={};return p(s(t),n=>{e[n]=r(t[n])}),e}return t};export{r as d,l as t};
