var s, c;
function d() {
  if (c) return s;
  c = 1;
  function u(t, r) {
    var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
    if (e) return (e = e.call(t)).next.bind(e);
    if (Array.isArray(t) || (e = f(t)) || r) {
      e && (t = e);
      var n = 0;
      return function() {
        return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
      };
    }
    throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
  }
  function f(t, r) {
    if (t) {
      if (typeof t == "string") return i(t, r);
      var e = Object.prototype.toString.call(t).slice(8, -1);
      if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set") return Array.from(t);
      if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return i(t, r);
    }
  }
  function i(t, r) {
    (r == null || r > t.length) && (r = t.length);
    for (var e = 0, n = new Array(r); e < r; e++)
      n[e] = t[e];
    return n;
  }
  var l = /* @__PURE__ */ function() {
    function t() {
      this.typeToInterceptorsMap_ = /* @__PURE__ */ new Map(), this.enabled_ = !1;
    }
    var r = t.prototype;
    return r.getIsEnabled = function() {
      return this.enabled_;
    }, r.enable = function() {
      this.enabled_ = !0;
    }, r.disable = function() {
      this.enabled_ = !1;
    }, r.reset = function() {
      this.typeToInterceptorsMap_ = /* @__PURE__ */ new Map(), this.enabled_ = !1;
    }, r.addInterceptor = function(n, a) {
      this.typeToInterceptorsMap_.has(n) || this.typeToInterceptorsMap_.set(n, /* @__PURE__ */ new Set());
      var o = this.typeToInterceptorsMap_.get(n);
      return o.has(a) ? !1 : (o.add(a), !0);
    }, r.removeInterceptor = function(n, a) {
      var o = this.typeToInterceptorsMap_.get(n);
      return o && o.has(a) ? (o.delete(a), !0) : !1;
    }, r.clearInterceptorsByType = function(n) {
      var a = this.typeToInterceptorsMap_.get(n);
      return a ? (this.typeToInterceptorsMap_.delete(n), this.typeToInterceptorsMap_.set(n, /* @__PURE__ */ new Set()), !0) : !1;
    }, r.clear = function() {
      return this.typeToInterceptorsMap_.size ? (this.typeToInterceptorsMap_ = /* @__PURE__ */ new Map(), !0) : !1;
    }, r.getForType = function(n) {
      return this.typeToInterceptorsMap_.get(n) || /* @__PURE__ */ new Set();
    }, r.execute = function(n, a) {
      for (var o = this.getForType(n), y = u(o), p; !(p = y()).done; ) {
        var h = p.value;
        try {
          a = h(a);
        } catch {
        }
      }
      return a;
    }, t;
  }();
  return s = l, s;
}
export {
  d as __require
};
//# sourceMappingURL=interceptors.js.map
