var c=n;function n(e){let r=e;var t={}.toString.call(e).slice(8,-1);if(t=="Set")return new Set([...e].map(i=>n(i)));if(t=="Map")return new Map([...e].map(i=>[n(i[0]),n(i[1])]));if(t=="Date")return new Date(e.getTime());if(t=="RegExp")return RegExp(e.source,a(e));if(t=="Array"||t=="Object"){r=Array.isArray(e)?[]:{};for(var u in e)r[u]=n(e[u])}return r}function a(e){if(typeof e.source.flags=="string")return e.source.flags;var r=[];return e.global&&r.push("g"),e.ignoreCase&&r.push("i"),e.multiline&&r.push("m"),e.sticky&&r.push("y"),e.unicode&&r.push("u"),r.join("")}export{c};