import { __exports as z } from "./index.es640.js";
import { __require as hr } from "./index.es349.js";
import { __require as Pr } from "./index.es576.js";
import { __require as Ir } from "./index.es641.js";
import { __require as Nr } from "./index.es432.js";
import { __require as Sr } from "./index.es404.js";
import { __require as Cr } from "./index.es606.js";
import { __require as Tr } from "./index.es471.js";
import { __require as yr } from "./index.es516.js";
import { __require as Or } from "./index.es642.js";
import { __require as Rr } from "./index.es405.js";
import { __require as br } from "./index.es435.js";
import { __require as Dr } from "./index.es557.js";
import { __require as jr } from "./index.es643.js";
import { __require as wr } from "./index.es604.js";
import { __require as Ur } from "./index.es644.js";
import { __require as Ar } from "./index.es645.js";
import { __require as gr } from "./index.es646.js";
import { __require as Lr } from "./index.es351.js";
import { __require as Hr } from "./index.es647.js";
import { __require as kr } from "./index.es593.js";
import { __require as Mr } from "./index.es495.js";
import { __require as xr } from "./index.es497.js";
import { __require as Gr } from "./index.es350.js";
var K;
function le() {
  if (K) return z;
  K = 1;
  var X = /* @__PURE__ */ hr(), Y = /* @__PURE__ */ Pr(), p = /* @__PURE__ */ Ir(), a = /* @__PURE__ */ Nr(), u = /* @__PURE__ */ Sr(), b = /* @__PURE__ */ Cr(), D = /* @__PURE__ */ Tr(), Z = /* @__PURE__ */ yr(), rr = /* @__PURE__ */ Or(), er = /* @__PURE__ */ Rr(), _ = /* @__PURE__ */ br(), ir = /* @__PURE__ */ Dr(), or = /* @__PURE__ */ jr(), tr = /* @__PURE__ */ wr(), j = Ur().set, I = /* @__PURE__ */ Ar(), ar = /* @__PURE__ */ gr(), nr = /* @__PURE__ */ Lr(), ur = /* @__PURE__ */ Hr(), w = /* @__PURE__ */ kr(), d = /* @__PURE__ */ Mr(), N = /* @__PURE__ */ xr(), U = /* @__PURE__ */ Gr(), q = "Promise", A = N.CONSTRUCTOR, sr = N.REJECTION_EVENT, fr = N.SUBCLASSING, S = w.getterFor(q), vr = w.set, s = d && d.prototype, n = d, E = s, g = a.TypeError, C = a.document, T = a.process, y = U.f, cr = y, lr = !!(C && C.createEvent && a.dispatchEvent), L = "unhandledrejection", mr = "rejectionhandled", H = 0, k = 1, pr = 2, O = 1, M = 2, h, x, _r, G, J = function(r) {
    var e;
    return ir(r) && _(e = r.then) ? e : !1;
  }, V = function(r, e) {
    var i = e.value, o = e.state === k, t = o ? r.ok : r.fail, c = r.resolve, P = r.reject, l = r.domain, m, W, $;
    try {
      t ? (o || (e.rejection === M && qr(e), e.rejection = O), t === !0 ? m = i : (l && l.enter(), m = t(i), l && (l.exit(), $ = !0)), m === r.promise ? P(new g("Promise-chain cycle")) : (W = J(m)) ? u(W, m, c, P) : c(m)) : P(i);
    } catch (Er) {
      l && !$ && l.exit(), P(Er);
    }
  }, B = function(r, e) {
    r.notified || (r.notified = !0, I(function() {
      for (var i = r.reactions, o; o = i.get(); )
        V(o, r);
      r.notified = !1, e && !r.rejection && dr(r);
    }));
  }, F = function(r, e, i) {
    var o, t;
    lr ? (o = C.createEvent("Event"), o.promise = e, o.reason = i, o.initEvent(r, !1, !0), a.dispatchEvent(o)) : o = { promise: e, reason: i }, !sr && (t = a["on" + r]) ? t(o) : r === L && ar("Unhandled promise rejection", i);
  }, dr = function(r) {
    u(j, a, function() {
      var e = r.facade, i = r.value, o = Q(r), t;
      if (o && (t = nr(function() {
        p ? T.emit("unhandledRejection", i, e) : F(L, e, i);
      }), r.rejection = p || Q(r) ? M : O, t.error))
        throw t.value;
    });
  }, Q = function(r) {
    return r.rejection !== O && !r.parent;
  }, qr = function(r) {
    u(j, a, function() {
      var e = r.facade;
      p ? T.emit("rejectionHandled", e) : F(mr, e, r.value);
    });
  }, f = function(r, e, i) {
    return function(o) {
      r(e, o, i);
    };
  }, v = function(r, e, i) {
    r.done || (r.done = !0, i && (r = i), r.value = e, r.state = pr, B(r, !0));
  }, R = function(r, e, i) {
    if (!r.done) {
      r.done = !0, i && (r = i);
      try {
        if (r.facade === e) throw new g("Promise can't be resolved itself");
        var o = J(e);
        o ? I(function() {
          var t = { done: !1 };
          try {
            u(
              o,
              e,
              f(R, t, r),
              f(v, t, r)
            );
          } catch (c) {
            v(t, c, r);
          }
        }) : (r.value = e, r.state = k, B(r, !1));
      } catch (t) {
        v({ done: !1 }, t, r);
      }
    }
  };
  if (A && (n = function(e) {
    or(this, E), er(e), u(h, this);
    var i = S(this);
    try {
      e(f(R, i), f(v, i));
    } catch (o) {
      v(i, o);
    }
  }, E = n.prototype, h = function(e) {
    vr(this, {
      type: q,
      done: !1,
      notified: !1,
      parent: !1,
      reactions: new ur(),
      rejection: !1,
      state: H,
      value: void 0
    });
  }, h.prototype = b(E, "then", function(e, i) {
    var o = S(this), t = y(tr(this, n));
    return o.parent = !0, t.ok = _(e) ? e : !0, t.fail = _(i) && i, t.domain = p ? T.domain : void 0, o.state === H ? o.reactions.add(t) : I(function() {
      V(t, o);
    }), t.promise;
  }), x = function() {
    var r = new h(), e = S(r);
    this.promise = r, this.resolve = f(R, e), this.reject = f(v, e);
  }, U.f = y = function(r) {
    return r === n || r === _r ? new x(r) : cr(r);
  }, !Y && _(d) && s !== Object.prototype)) {
    G = s.then, fr || b(s, "then", function(e, i) {
      var o = this;
      return new n(function(t, c) {
        u(G, o, t, c);
      }).then(e, i);
    }, { unsafe: !0 });
    try {
      delete s.constructor;
    } catch {
    }
    D && D(s, E);
  }
  return X({ global: !0, constructor: !0, wrap: !0, forced: A }, {
    Promise: n
  }), Z(n, q, !1, !0), rr(q), z;
}
export {
  le as __require
};
//# sourceMappingURL=index.es597.js.map
