import { _ as C } from "./index.es333.js";
import { f as B } from "./index.es385.js";
import { f as b } from "./index.es577.js";
import { i as A } from "./index.es578.js";
import { o as E } from "./index.es432.js";
import { s as Y } from "./index.es454.js";
import { d as $ } from "./index.es579.js";
import { w as k } from "./index.es440.js";
import { i as x } from "./index.es455.js";
import { i as j } from "./index.es580.js";
var V = C, q = B, P = b, z = A, H = E, J = Y, I = $, N = k, O = x, G = j, Q = P.PROPER;
P.CONFIGURABLE;
G.IteratorPrototype;
var m = G.BUGGY_SAFARI_ITERATORS, c = N("iterator"), T = "keys", p = "values", h = "entries", U = function() {
  return this;
}, er = function(R, i, n, d, e, g, y) {
  z(n, i, d);
  var f = function(t) {
    if (t === e && a)
      return a;
    if (!m && t && t in r)
      return r[t];
    switch (t) {
      case T:
        return function() {
          return new n(this, t);
        };
      case p:
        return function() {
          return new n(this, t);
        };
      case h:
        return function() {
          return new n(this, t);
        };
    }
    return function() {
      return new n(this);
    };
  }, S = i + " Iterator", l = !1, r = R.prototype, o = r[c] || r["@@iterator"] || e && r[e], a = !m && o || f(e), _ = i === "Array" && r.entries || o, u, s, v;
  if (_ && (u = H(_.call(new R())), u !== Object.prototype && u.next && (J(u, S, !0, !0), O[S] = U)), Q && e === p && o && o.name !== p && (l = !0, a = function() {
    return q(o, this);
  }), e)
    if (s = {
      values: f(p),
      keys: g ? a : f(T),
      entries: f(h)
    }, y)
      for (v in s)
        (m || l || !(v in r)) && I(r, v, s[v]);
    else
      V({ target: i, proto: !0, forced: m || l }, s);
  return y && r[c] !== a && I(r, c, a, { name: e }), O[i] = a, s;
};
export {
  er as i
};
//# sourceMappingURL=index.es509.js.map
