import l from "./index.es273.js";
import y from "./index.es292.js";
import A from "./index.es135.js";
import c from "./index.es43.js";
function x(n, i, s, r) {
  if (r = r || [], !i && i !== 0)
    i = 1 / 0;
  else if (i <= 0)
    return r.concat(n);
  for (var m = r.length, e = 0, a = l(n); e < a; e++) {
    var f = n[e];
    if (y(f) && (A(f) || c(f)))
      if (i > 1)
        x(f, i - 1, s, r), m = r.length;
      else
        for (var g = 0, o = f.length; g < o; ) r[m++] = f[g++];
    else s || (r[m++] = f);
  }
  return r;
}
export {
  x as default
};
//# sourceMappingURL=index.es289.js.map
