function y(e, c) {
  var t = {};
  for (var r in e)
    Object.prototype.hasOwnProperty.call(e, r) && c.indexOf(r) < 0 && (t[r] = e[r]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
    for (var n = 0, r = Object.getOwnPropertySymbols(e); n < r.length; n++)
      c.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[n]) && (t[r[n]] = e[r[n]]);
  return t;
}
function d(e, c, t, r) {
  function n(o) {
    return o instanceof t ? o : new t(function(f) {
      f(o);
    });
  }
  return new (t || (t = Promise))(function(o, f) {
    function u(l) {
      try {
        a(r.next(l));
      } catch (i) {
        f(i);
      }
    }
    function p(l) {
      try {
        a(r.throw(l));
      } catch (i) {
        f(i);
      }
    }
    function a(l) {
      l.done ? o(l.value) : n(l.value).then(u, p);
    }
    a((r = r.apply(e, c || [])).next());
  });
}
function s(e, c) {
  var t = typeof Symbol == "function" && e[Symbol.iterator];
  if (!t)
    return e;
  var r = t.call(e), n, o = [], f;
  try {
    for (; (c === void 0 || c-- > 0) && !(n = r.next()).done; )
      o.push(n.value);
  } catch (u) {
    f = { error: u };
  } finally {
    try {
      n && !n.done && (t = r.return) && t.call(r);
    } finally {
      if (f)
        throw f.error;
    }
  }
  return o;
}
function h(e, c, t) {
  if (t || arguments.length === 2)
    for (var r = 0, n = c.length, o; r < n; r++)
      (o || !(r in c)) && (o || (o = Array.prototype.slice.call(c, 0, r)), o[r] = c[r]);
  return e.concat(o || Array.prototype.slice.call(c));
}
export {
  d as __awaiter,
  s as __read,
  y as __rest,
  h as __spreadArray
};
