import { f as S } from "./index.es398.js";
import { f as d } from "./index.es385.js";
import { a as A } from "./index.es458.js";
import { t as $ } from "./index.es457.js";
import { i as w } from "./index.es459.js";
import { l as x } from "./index.es460.js";
import { o as C } from "./index.es420.js";
import { g as _ } from "./index.es461.js";
import { g as P } from "./index.es462.js";
import { i as j } from "./index.es463.js";
var D = S, M = d, N = A, k = $, F = w, L = x, T = C, U = _, B = P, c = j, q = TypeError, s = function(t, m) {
  this.stopped = t, this.result = m;
}, u = s.prototype, Z = function(t, m, e) {
  var g = e && e.that, l = !!(e && e.AS_ENTRIES), v = !!(e && e.IS_RECORD), O = !!(e && e.IS_ITERATOR), I = !!(e && e.INTERRUPTED), f = D(m, g), o, n, i, R, a, h, p, y = function(r) {
    return o && c(o, "normal", r), new s(!0, r);
  }, E = function(r) {
    return l ? (N(r), I ? f(r[0], r[1], y) : f(r[0], r[1])) : I ? f(r, y) : f(r);
  };
  if (v)
    o = t.iterator;
  else if (O)
    o = t;
  else {
    if (n = B(t), !n)
      throw new q(k(t) + " is not iterable");
    if (F(n)) {
      for (i = 0, R = L(t); R > i; i++)
        if (a = E(t[i]), a && T(u, a))
          return a;
      return new s(!1);
    }
    o = U(t, n);
  }
  for (h = v ? t.next : o.next; !(p = M(h, o)).done; ) {
    try {
      a = E(p.value);
    } catch (r) {
      c(o, "throw", r);
    }
    if (typeof a == "object" && a && T(u, a))
      return a;
  }
  return new s(!1);
};
export {
  Z as i
};
//# sourceMappingURL=index.es387.js.map
