UNPKG

ez-axios

Version:
3,524 lines 118 kB
const $n = {
  baseURL: "",
  mark: "",
  timeout: 3e4,
  briefly: !0,
  loading: !0,
  headers: {},
  error: Fo,
  success: void 0
};
let Un = $n;
const Hi = (e) => {
  Un = Object.assign($n, e);
};
function Fo(e) {
  switch (e) {
    case 404:
      console.error("网络请求不存在");
      break;
    case 401:
      console.error("401 未授权");
      break;
    case 500:
      console.error("服务器遇到错误,无法完成请求");
      break;
    default:
      console.error("通用错误");
  }
}
function Mn(e, t) {
  return function() {
    return e.apply(t, arguments);
  };
}
const { toString: No } = Object.prototype, { getPrototypeOf: hr } = Object, { iterator: Xe, toStringTag: kn } = Symbol, Ze = /* @__PURE__ */ ((e) => (t) => {
  const n = No.call(t);
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
})(/* @__PURE__ */ Object.create(null)), le = (e) => (e = e.toLowerCase(), (t) => Ze(t) === e), Ye = (e) => (t) => typeof t === e, { isArray: qe } = Array, Me = Ye("undefined");
function _o(e) {
  return e !== null && !Me(e) && e.constructor !== null && !Me(e.constructor) && Q(e.constructor.isBuffer) && e.constructor.isBuffer(e);
}
const jn = le("ArrayBuffer");
function qo(e) {
  let t;
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && jn(e.buffer), t;
}
const Do = Ye("string"), Q = Ye("function"), zn = Ye("number"), et = (e) => e !== null && typeof e == "object", Lo = (e) => e === !0 || e === !1, Ge = (e) => {
  if (Ze(e) !== "object")
    return !1;
  const t = hr(e);
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(kn in e) && !(Xe in e);
}, Io = le("Date"), Bo = le("File"), $o = le("Blob"), Uo = le("FileList"), Mo = (e) => et(e) && Q(e.pipe), ko = (e) => {
  let t;
  return e && (typeof FormData == "function" && e instanceof FormData || Q(e.append) && ((t = Ze(e)) === "formdata" || // detect form-data instance
  t === "object" && Q(e.toString) && e.toString() === "[object FormData]"));
}, jo = le("URLSearchParams"), [zo, Ho, Wo, Go] = ["ReadableStream", "Request", "Response", "Headers"].map(le), Jo = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
function ke(e, t, { allOwnKeys: n = !1 } = {}) {
  if (e === null || typeof e > "u")
    return;
  let r, o;
  if (typeof e != "object" && (e = [e]), qe(e))
    for (r = 0, o = e.length; r < o; r++)
      t.call(null, e[r], r, e);
  else {
    const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length;
    let s;
    for (r = 0; r < a; r++)
      s = i[r], t.call(null, e[s], s, e);
  }
}
function Hn(e, t) {
  t = t.toLowerCase();
  const n = Object.keys(e);
  let r = n.length, o;
  for (; r-- > 0; )
    if (o = n[r], t === o.toLowerCase())
      return o;
  return null;
}
const Ae = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Wn = (e) => !Me(e) && e !== Ae;
function ur() {
  const { caseless: e } = Wn(this) && this || {}, t = {}, n = (r, o) => {
    const i = e && Hn(t, o) || o;
    Ge(t[i]) && Ge(r) ? t[i] = ur(t[i], r) : Ge(r) ? t[i] = ur({}, r) : qe(r) ? t[i] = r.slice() : t[i] = r;
  };
  for (let r = 0, o = arguments.length; r < o; r++)
    arguments[r] && ke(arguments[r], n);
  return t;
}
const Vo = (e, t, n, { allOwnKeys: r } = {}) => (ke(t, (o, i) => {
  n && Q(o) ? e[i] = Mn(o, n) : e[i] = o;
}, { allOwnKeys: r }), e), Ko = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Qo = (e, t, n, r) => {
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
    value: t.prototype
  }), n && Object.assign(e.prototype, n);
}, Xo = (e, t, n, r) => {
  let o, i, a;
  const s = {};
  if (t = t || {}, e == null) return t;
  do {
    for (o = Object.getOwnPropertyNames(e), i = o.length; i-- > 0; )
      a = o[i], (!r || r(a, e, t)) && !s[a] && (t[a] = e[a], s[a] = !0);
    e = n !== !1 && hr(e);
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
  return t;
}, Zo = (e, t, n) => {
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
  const r = e.indexOf(t, n);
  return r !== -1 && r === n;
}, Yo = (e) => {
  if (!e) return null;
  if (qe(e)) return e;
  let t = e.length;
  if (!zn(t)) return null;
  const n = new Array(t);
  for (; t-- > 0; )
    n[t] = e[t];
  return n;
}, ea = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && hr(Uint8Array)), ta = (e, t) => {
  const r = (e && e[Xe]).call(e);
  let o;
  for (; (o = r.next()) && !o.done; ) {
    const i = o.value;
    t.call(e, i[0], i[1]);
  }
}, ra = (e, t) => {
  let n;
  const r = [];
  for (; (n = e.exec(t)) !== null; )
    r.push(n);
  return r;
}, na = le("HTMLFormElement"), oa = (e) => e.toLowerCase().replace(
  /[-_\s]([a-z\d])(\w*)/g,
  function(n, r, o) {
    return r.toUpperCase() + o;
  }
), Nr = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), aa = le("RegExp"), Gn = (e, t) => {
  const n = Object.getOwnPropertyDescriptors(e), r = {};
  ke(n, (o, i) => {
    let a;
    (a = t(o, i, e)) !== !1 && (r[i] = a || o);
  }), Object.defineProperties(e, r);
}, ia = (e) => {
  Gn(e, (t, n) => {
    if (Q(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
      return !1;
    const r = e[n];
    if (Q(r)) {
      if (t.enumerable = !1, "writable" in t) {
        t.writable = !1;
        return;
      }
      t.set || (t.set = () => {
        throw Error("Can not rewrite read-only method '" + n + "'");
      });
    }
  });
}, sa = (e, t) => {
  const n = {}, r = (o) => {
    o.forEach((i) => {
      n[i] = !0;
    });
  };
  return qe(e) ? r(e) : r(String(e).split(t)), n;
}, la = () => {
}, ua = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
function ca(e) {
  return !!(e && Q(e.append) && e[kn] === "FormData" && e[Xe]);
}
const fa = (e) => {
  const t = new Array(10), n = (r, o) => {
    if (et(r)) {
      if (t.indexOf(r) >= 0)
        return;
      if (!("toJSON" in r)) {
        t[o] = r;
        const i = qe(r) ? [] : {};
        return ke(r, (a, s) => {
          const p = n(a, o + 1);
          !Me(p) && (i[s] = p);
        }), t[o] = void 0, i;
      }
    }
    return r;
  };
  return n(e, 0);
}, pa = le("AsyncFunction"), da = (e) => e && (et(e) || Q(e)) && Q(e.then) && Q(e.catch), Jn = ((e, t) => e ? setImmediate : t ? ((n, r) => (Ae.addEventListener("message", ({ source: o, data: i }) => {
  o === Ae && i === n && r.length && r.shift()();
}, !1), (o) => {
  r.push(o), Ae.postMessage(n, "*");
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
  typeof setImmediate == "function",
  Q(Ae.postMessage)
), ya = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ae) : typeof process < "u" && process.nextTick || Jn, ha = (e) => e != null && Q(e[Xe]), h = {
  isArray: qe,
  isArrayBuffer: jn,
  isBuffer: _o,
  isFormData: ko,
  isArrayBufferView: qo,
  isString: Do,
  isNumber: zn,
  isBoolean: Lo,
  isObject: et,
  isPlainObject: Ge,
  isReadableStream: zo,
  isRequest: Ho,
  isResponse: Wo,
  isHeaders: Go,
  isUndefined: Me,
  isDate: Io,
  isFile: Bo,
  isBlob: $o,
  isRegExp: aa,
  isFunction: Q,
  isStream: Mo,
  isURLSearchParams: jo,
  isTypedArray: ea,
  isFileList: Uo,
  forEach: ke,
  merge: ur,
  extend: Vo,
  trim: Jo,
  stripBOM: Ko,
  inherits: Qo,
  toFlatObject: Xo,
  kindOf: Ze,
  kindOfTest: le,
  endsWith: Zo,
  toArray: Yo,
  forEachEntry: ta,
  matchAll: ra,
  isHTMLForm: na,
  hasOwnProperty: Nr,
  hasOwnProp: Nr,
  // an alias to avoid ESLint no-prototype-builtins detection
  reduceDescriptors: Gn,
  freezeMethods: ia,
  toObjectSet: sa,
  toCamelCase: oa,
  noop: la,
  toFiniteNumber: ua,
  findKey: Hn,
  global: Ae,
  isContextDefined: Wn,
  isSpecCompliantForm: ca,
  toJSONObject: fa,
  isAsyncFn: pa,
  isThenable: da,
  setImmediate: Jn,
  asap: ya,
  isIterable: ha
};
function C(e, t, n, r, o) {
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
}
h.inherits(C, Error, {
  toJSON: function() {
    return {
      // Standard
      message: this.message,
      name: this.name,
      // Microsoft
      description: this.description,
      number: this.number,
      // Mozilla
      fileName: this.fileName,
      lineNumber: this.lineNumber,
      columnNumber: this.columnNumber,
      stack: this.stack,
      // Axios
      config: h.toJSONObject(this.config),
      code: this.code,
      status: this.status
    };
  }
});
const Vn = C.prototype, Kn = {};
[
  "ERR_BAD_OPTION_VALUE",
  "ERR_BAD_OPTION",
  "ECONNABORTED",
  "ETIMEDOUT",
  "ERR_NETWORK",
  "ERR_FR_TOO_MANY_REDIRECTS",
  "ERR_DEPRECATED",
  "ERR_BAD_RESPONSE",
  "ERR_BAD_REQUEST",
  "ERR_CANCELED",
  "ERR_NOT_SUPPORT",
  "ERR_INVALID_URL"
  // eslint-disable-next-line func-names
].forEach((e) => {
  Kn[e] = { value: e };
});
Object.defineProperties(C, Kn);
Object.defineProperty(Vn, "isAxiosError", { value: !0 });
C.from = (e, t, n, r, o, i) => {
  const a = Object.create(Vn);
  return h.toFlatObject(e, a, function(p) {
    return p !== Error.prototype;
  }, (s) => s !== "isAxiosError"), C.call(a, e.message, t, n, r, o), a.cause = e, a.name = e.name, i && Object.assign(a, i), a;
};
const ma = null;
function cr(e) {
  return h.isPlainObject(e) || h.isArray(e);
}
function Qn(e) {
  return h.endsWith(e, "[]") ? e.slice(0, -2) : e;
}
function _r(e, t, n) {
  return e ? e.concat(t).map(function(o, i) {
    return o = Qn(o), !n && i ? "[" + o + "]" : o;
  }).join(n ? "." : "") : t;
}
function ga(e) {
  return h.isArray(e) && !e.some(cr);
}
const va = h.toFlatObject(h, {}, null, function(t) {
  return /^is[A-Z]/.test(t);
});
function tt(e, t, n) {
  if (!h.isObject(e))
    throw new TypeError("target must be an object");
  t = t || new FormData(), n = h.toFlatObject(n, {
    metaTokens: !0,
    dots: !1,
    indexes: !1
  }, !1, function(w, u) {
    return !h.isUndefined(u[w]);
  });
  const r = n.metaTokens, o = n.visitor || c, i = n.dots, a = n.indexes, p = (n.Blob || typeof Blob < "u" && Blob) && h.isSpecCompliantForm(t);
  if (!h.isFunction(o))
    throw new TypeError("visitor must be a function");
  function l(y) {
    if (y === null) return "";
    if (h.isDate(y))
      return y.toISOString();
    if (h.isBoolean(y))
      return y.toString();
    if (!p && h.isBlob(y))
      throw new C("Blob is not supported. Use a Buffer instead.");
    return h.isArrayBuffer(y) || h.isTypedArray(y) ? p && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
  }
  function c(y, w, u) {
    let m = y;
    if (y && !u && typeof y == "object") {
      if (h.endsWith(w, "{}"))
        w = r ? w : w.slice(0, -2), y = JSON.stringify(y);
      else if (h.isArray(y) && ga(y) || (h.isFileList(y) || h.endsWith(w, "[]")) && (m = h.toArray(y)))
        return w = Qn(w), m.forEach(function(E, O) {
          !(h.isUndefined(E) || E === null) && t.append(
            // eslint-disable-next-line no-nested-ternary
            a === !0 ? _r([w], O, i) : a === null ? w : w + "[]",
            l(E)
          );
        }), !1;
    }
    return cr(y) ? !0 : (t.append(_r(u, w, i), l(y)), !1);
  }
  const v = [], S = Object.assign(va, {
    defaultVisitor: c,
    convertValue: l,
    isVisitable: cr
  });
  function b(y, w) {
    if (!h.isUndefined(y)) {
      if (v.indexOf(y) !== -1)
        throw Error("Circular reference detected in " + w.join("."));
      v.push(y), h.forEach(y, function(m, g) {
        (!(h.isUndefined(m) || m === null) && o.call(
          t,
          m,
          h.isString(g) ? g.trim() : g,
          w,
          S
        )) === !0 && b(m, w ? w.concat(g) : [g]);
      }), v.pop();
    }
  }
  if (!h.isObject(e))
    throw new TypeError("data must be an object");
  return b(e), t;
}
function qr(e) {
  const t = {
    "!": "%21",
    "'": "%27",
    "(": "%28",
    ")": "%29",
    "~": "%7E",
    "%20": "+",
    "%00": "\0"
  };
  return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
    return t[r];
  });
}
function mr(e, t) {
  this._pairs = [], e && tt(e, this, t);
}
const Xn = mr.prototype;
Xn.append = function(t, n) {
  this._pairs.push([t, n]);
};
Xn.toString = function(t) {
  const n = t ? function(r) {
    return t.call(this, r, qr);
  } : qr;
  return this._pairs.map(function(o) {
    return n(o[0]) + "=" + n(o[1]);
  }, "").join("&");
};
function ba(e) {
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
}
function Zn(e, t, n) {
  if (!t)
    return e;
  const r = n && n.encode || ba;
  h.isFunction(n) && (n = {
    serialize: n
  });
  const o = n && n.serialize;
  let i;
  if (o ? i = o(t, n) : i = h.isURLSearchParams(t) ? t.toString() : new mr(t, n).toString(r), i) {
    const a = e.indexOf("#");
    a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
  }
  return e;
}
class Dr {
  constructor() {
    this.handlers = [];
  }
  /**
   * Add a new interceptor to the stack
   *
   * @param {Function} fulfilled The function to handle `then` for a `Promise`
   * @param {Function} rejected The function to handle `reject` for a `Promise`
   *
   * @return {Number} An ID used to remove interceptor later
   */
  use(t, n, r) {
    return this.handlers.push({
      fulfilled: t,
      rejected: n,
      synchronous: r ? r.synchronous : !1,
      runWhen: r ? r.runWhen : null
    }), this.handlers.length - 1;
  }
  /**
   * Remove an interceptor from the stack
   *
   * @param {Number} id The ID that was returned by `use`
   *
   * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
   */
  eject(t) {
    this.handlers[t] && (this.handlers[t] = null);
  }
  /**
   * Clear all interceptors from the stack
   *
   * @returns {void}
   */
  clear() {
    this.handlers && (this.handlers = []);
  }
  /**
   * Iterate over all the registered interceptors
   *
   * This method is particularly useful for skipping over any
   * interceptors that may have become `null` calling `eject`.
   *
   * @param {Function} fn The function to call for each interceptor
   *
   * @returns {void}
   */
  forEach(t) {
    h.forEach(this.handlers, function(r) {
      r !== null && t(r);
    });
  }
}
const Yn = {
  silentJSONParsing: !0,
  forcedJSONParsing: !0,
  clarifyTimeoutError: !1
}, wa = typeof URLSearchParams < "u" ? URLSearchParams : mr, Sa = typeof FormData < "u" ? FormData : null, Ea = typeof Blob < "u" ? Blob : null, Oa = {
  isBrowser: !0,
  classes: {
    URLSearchParams: wa,
    FormData: Sa,
    Blob: Ea
  },
  protocols: ["http", "https", "file", "blob", "url", "data"]
}, gr = typeof window < "u" && typeof document < "u", fr = typeof navigator == "object" && navigator || void 0, Aa = gr && (!fr || ["ReactNative", "NativeScript", "NS"].indexOf(fr.product) < 0), Ra = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Pa = gr && window.location.href || "http://localhost", xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  hasBrowserEnv: gr,
  hasStandardBrowserEnv: Aa,
  hasStandardBrowserWebWorkerEnv: Ra,
  navigator: fr,
  origin: Pa
}, Symbol.toStringTag, { value: "Module" })), V = {
  ...xa,
  ...Oa
};
function Ta(e, t) {
  return tt(e, new V.classes.URLSearchParams(), Object.assign({
    visitor: function(n, r, o, i) {
      return V.isNode && h.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
    }
  }, t));
}
function Ca(e) {
  return h.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
}
function Fa(e) {
  const t = {}, n = Object.keys(e);
  let r;
  const o = n.length;
  let i;
  for (r = 0; r < o; r++)
    i = n[r], t[i] = e[i];
  return t;
}
function eo(e) {
  function t(n, r, o, i) {
    let a = n[i++];
    if (a === "__proto__") return !0;
    const s = Number.isFinite(+a), p = i >= n.length;
    return a = !a && h.isArray(o) ? o.length : a, p ? (h.hasOwnProp(o, a) ? o[a] = [o[a], r] : o[a] = r, !s) : ((!o[a] || !h.isObject(o[a])) && (o[a] = []), t(n, r, o[a], i) && h.isArray(o[a]) && (o[a] = Fa(o[a])), !s);
  }
  if (h.isFormData(e) && h.isFunction(e.entries)) {
    const n = {};
    return h.forEachEntry(e, (r, o) => {
      t(Ca(r), o, n, 0);
    }), n;
  }
  return null;
}
function Na(e, t, n) {
  if (h.isString(e))
    try {
      return (t || JSON.parse)(e), h.trim(e);
    } catch (r) {
      if (r.name !== "SyntaxError")
        throw r;
    }
  return (n || JSON.stringify)(e);
}
const je = {
  transitional: Yn,
  adapter: ["xhr", "http", "fetch"],
  transformRequest: [function(t, n) {
    const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, i = h.isObject(t);
    if (i && h.isHTMLForm(t) && (t = new FormData(t)), h.isFormData(t))
      return o ? JSON.stringify(eo(t)) : t;
    if (h.isArrayBuffer(t) || h.isBuffer(t) || h.isStream(t) || h.isFile(t) || h.isBlob(t) || h.isReadableStream(t))
      return t;
    if (h.isArrayBufferView(t))
      return t.buffer;
    if (h.isURLSearchParams(t))
      return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
    let s;
    if (i) {
      if (r.indexOf("application/x-www-form-urlencoded") > -1)
        return Ta(t, this.formSerializer).toString();
      if ((s = h.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
        const p = this.env && this.env.FormData;
        return tt(
          s ? { "files[]": t } : t,
          p && new p(),
          this.formSerializer
        );
      }
    }
    return i || o ? (n.setContentType("application/json", !1), Na(t)) : t;
  }],
  transformResponse: [function(t) {
    const n = this.transitional || je.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
    if (h.isResponse(t) || h.isReadableStream(t))
      return t;
    if (t && h.isString(t) && (r && !this.responseType || o)) {
      const a = !(n && n.silentJSONParsing) && o;
      try {
        return JSON.parse(t);
      } catch (s) {
        if (a)
          throw s.name === "SyntaxError" ? C.from(s, C.ERR_BAD_RESPONSE, this, null, this.response) : s;
      }
    }
    return t;
  }],
  /**
   * A timeout in milliseconds to abort a request. If set to 0 (default) a
   * timeout is not created.
   */
  timeout: 0,
  xsrfCookieName: "XSRF-TOKEN",
  xsrfHeaderName: "X-XSRF-TOKEN",
  maxContentLength: -1,
  maxBodyLength: -1,
  env: {
    FormData: V.classes.FormData,
    Blob: V.classes.Blob
  },
  validateStatus: function(t) {
    return t >= 200 && t < 300;
  },
  headers: {
    common: {
      Accept: "application/json, text/plain, */*",
      "Content-Type": void 0
    }
  }
};
h.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
  je.headers[e] = {};
});
const _a = h.toObjectSet([
  "age",
  "authorization",
  "content-length",
  "content-type",
  "etag",
  "expires",
  "from",
  "host",
  "if-modified-since",
  "if-unmodified-since",
  "last-modified",
  "location",
  "max-forwards",
  "proxy-authorization",
  "referer",
  "retry-after",
  "user-agent"
]), qa = (e) => {
  const t = {};
  let n, r, o;
  return e && e.split(`
`).forEach(function(a) {
    o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), r = a.substring(o + 1).trim(), !(!n || t[n] && _a[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
  }), t;
}, Lr = Symbol("internals");
function $e(e) {
  return e && String(e).trim().toLowerCase();
}
function Je(e) {
  return e === !1 || e == null ? e : h.isArray(e) ? e.map(Je) : String(e);
}
function Da(e) {
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
  let r;
  for (; r = n.exec(e); )
    t[r[1]] = r[2];
  return t;
}
const La = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
function ht(e, t, n, r, o) {
  if (h.isFunction(r))
    return r.call(this, t, n);
  if (o && (t = n), !!h.isString(t)) {
    if (h.isString(r))
      return t.indexOf(r) !== -1;
    if (h.isRegExp(r))
      return r.test(t);
  }
}
function Ia(e) {
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
}
function Ba(e, t) {
  const n = h.toCamelCase(" " + t);
  ["get", "set", "has"].forEach((r) => {
    Object.defineProperty(e, r + n, {
      value: function(o, i, a) {
        return this[r].call(this, t, o, i, a);
      },
      configurable: !0
    });
  });
}
let X = class {
  constructor(t) {
    t && this.set(t);
  }
  set(t, n, r) {
    const o = this;
    function i(s, p, l) {
      const c = $e(p);
      if (!c)
        throw new Error("header name must be a non-empty string");
      const v = h.findKey(o, c);
      (!v || o[v] === void 0 || l === !0 || l === void 0 && o[v] !== !1) && (o[v || p] = Je(s));
    }
    const a = (s, p) => h.forEach(s, (l, c) => i(l, c, p));
    if (h.isPlainObject(t) || t instanceof this.constructor)
      a(t, n);
    else if (h.isString(t) && (t = t.trim()) && !La(t))
      a(qa(t), n);
    else if (h.isObject(t) && h.isIterable(t)) {
      let s = {}, p, l;
      for (const c of t) {
        if (!h.isArray(c))
          throw TypeError("Object iterator must return a key-value pair");
        s[l = c[0]] = (p = s[l]) ? h.isArray(p) ? [...p, c[1]] : [p, c[1]] : c[1];
      }
      a(s, n);
    } else
      t != null && i(n, t, r);
    return this;
  }
  get(t, n) {
    if (t = $e(t), t) {
      const r = h.findKey(this, t);
      if (r) {
        const o = this[r];
        if (!n)
          return o;
        if (n === !0)
          return Da(o);
        if (h.isFunction(n))
          return n.call(this, o, r);
        if (h.isRegExp(n))
          return n.exec(o);
        throw new TypeError("parser must be boolean|regexp|function");
      }
    }
  }
  has(t, n) {
    if (t = $e(t), t) {
      const r = h.findKey(this, t);
      return !!(r && this[r] !== void 0 && (!n || ht(this, this[r], r, n)));
    }
    return !1;
  }
  delete(t, n) {
    const r = this;
    let o = !1;
    function i(a) {
      if (a = $e(a), a) {
        const s = h.findKey(r, a);
        s && (!n || ht(r, r[s], s, n)) && (delete r[s], o = !0);
      }
    }
    return h.isArray(t) ? t.forEach(i) : i(t), o;
  }
  clear(t) {
    const n = Object.keys(this);
    let r = n.length, o = !1;
    for (; r--; ) {
      const i = n[r];
      (!t || ht(this, this[i], i, t, !0)) && (delete this[i], o = !0);
    }
    return o;
  }
  normalize(t) {
    const n = this, r = {};
    return h.forEach(this, (o, i) => {
      const a = h.findKey(r, i);
      if (a) {
        n[a] = Je(o), delete n[i];
        return;
      }
      const s = t ? Ia(i) : String(i).trim();
      s !== i && delete n[i], n[s] = Je(o), r[s] = !0;
    }), this;
  }
  concat(...t) {
    return this.constructor.concat(this, ...t);
  }
  toJSON(t) {
    const n = /* @__PURE__ */ Object.create(null);
    return h.forEach(this, (r, o) => {
      r != null && r !== !1 && (n[o] = t && h.isArray(r) ? r.join(", ") : r);
    }), n;
  }
  [Symbol.iterator]() {
    return Object.entries(this.toJSON())[Symbol.iterator]();
  }
  toString() {
    return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
`);
  }
  getSetCookie() {
    return this.get("set-cookie") || [];
  }
  get [Symbol.toStringTag]() {
    return "AxiosHeaders";
  }
  static from(t) {
    return t instanceof this ? t : new this(t);
  }
  static concat(t, ...n) {
    const r = new this(t);
    return n.forEach((o) => r.set(o)), r;
  }
  static accessor(t) {
    const r = (this[Lr] = this[Lr] = {
      accessors: {}
    }).accessors, o = this.prototype;
    function i(a) {
      const s = $e(a);
      r[s] || (Ba(o, a), r[s] = !0);
    }
    return h.isArray(t) ? t.forEach(i) : i(t), this;
  }
};
X.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
h.reduceDescriptors(X.prototype, ({ value: e }, t) => {
  let n = t[0].toUpperCase() + t.slice(1);
  return {
    get: () => e,
    set(r) {
      this[n] = r;
    }
  };
});
h.freezeMethods(X);
function mt(e, t) {
  const n = this || je, r = t || n, o = X.from(r.headers);
  let i = r.data;
  return h.forEach(e, function(s) {
    i = s.call(n, i, o.normalize(), t ? t.status : void 0);
  }), o.normalize(), i;
}
function to(e) {
  return !!(e && e.__CANCEL__);
}
function De(e, t, n) {
  C.call(this, e ?? "canceled", C.ERR_CANCELED, t, n), this.name = "CanceledError";
}
h.inherits(De, C, {
  __CANCEL__: !0
});
function ro(e, t, n) {
  const r = n.config.validateStatus;
  !n.status || !r || r(n.status) ? e(n) : t(new C(
    "Request failed with status code " + n.status,
    [C.ERR_BAD_REQUEST, C.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
    n.config,
    n.request,
    n
  ));
}
function $a(e) {
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
  return t && t[1] || "";
}
function Ua(e, t) {
  e = e || 10;
  const n = new Array(e), r = new Array(e);
  let o = 0, i = 0, a;
  return t = t !== void 0 ? t : 1e3, function(p) {
    const l = Date.now(), c = r[i];
    a || (a = l), n[o] = p, r[o] = l;
    let v = i, S = 0;
    for (; v !== o; )
      S += n[v++], v = v % e;
    if (o = (o + 1) % e, o === i && (i = (i + 1) % e), l - a < t)
      return;
    const b = c && l - c;
    return b ? Math.round(S * 1e3 / b) : void 0;
  };
}
function Ma(e, t) {
  let n = 0, r = 1e3 / t, o, i;
  const a = (l, c = Date.now()) => {
    n = c, o = null, i && (clearTimeout(i), i = null), e.apply(null, l);
  };
  return [(...l) => {
    const c = Date.now(), v = c - n;
    v >= r ? a(l, c) : (o = l, i || (i = setTimeout(() => {
      i = null, a(o);
    }, r - v)));
  }, () => o && a(o)];
}
const Ke = (e, t, n = 3) => {
  let r = 0;
  const o = Ua(50, 250);
  return Ma((i) => {
    const a = i.loaded, s = i.lengthComputable ? i.total : void 0, p = a - r, l = o(p), c = a <= s;
    r = a;
    const v = {
      loaded: a,
      total: s,
      progress: s ? a / s : void 0,
      bytes: p,
      rate: l || void 0,
      estimated: l && s && c ? (s - a) / l : void 0,
      event: i,
      lengthComputable: s != null,
      [t ? "download" : "upload"]: !0
    };
    e(v);
  }, n);
}, Ir = (e, t) => {
  const n = e != null;
  return [(r) => t[0]({
    lengthComputable: n,
    total: e,
    loaded: r
  }), t[1]];
}, Br = (e) => (...t) => h.asap(() => e(...t)), ka = V.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, V.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
  new URL(V.origin),
  V.navigator && /(msie|trident)/i.test(V.navigator.userAgent)
) : () => !0, ja = V.hasStandardBrowserEnv ? (
  // Standard browser envs support document.cookie
  {
    write(e, t, n, r, o, i) {
      const a = [e + "=" + encodeURIComponent(t)];
      h.isNumber(n) && a.push("expires=" + new Date(n).toGMTString()), h.isString(r) && a.push("path=" + r), h.isString(o) && a.push("domain=" + o), i === !0 && a.push("secure"), document.cookie = a.join("; ");
    },
    read(e) {
      const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
      return t ? decodeURIComponent(t[3]) : null;
    },
    remove(e) {
      this.write(e, "", Date.now() - 864e5);
    }
  }
) : (
  // Non-standard browser env (web workers, react-native) lack needed support.
  {
    write() {
    },
    read() {
      return null;
    },
    remove() {
    }
  }
);
function za(e) {
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
}
function Ha(e, t) {
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
}
function no(e, t, n) {
  let r = !za(t);
  return e && (r || n == !1) ? Ha(e, t) : t;
}
const $r = (e) => e instanceof X ? { ...e } : e;
function Pe(e, t) {
  t = t || {};
  const n = {};
  function r(l, c, v, S) {
    return h.isPlainObject(l) && h.isPlainObject(c) ? h.merge.call({ caseless: S }, l, c) : h.isPlainObject(c) ? h.merge({}, c) : h.isArray(c) ? c.slice() : c;
  }
  function o(l, c, v, S) {
    if (h.isUndefined(c)) {
      if (!h.isUndefined(l))
        return r(void 0, l, v, S);
    } else return r(l, c, v, S);
  }
  function i(l, c) {
    if (!h.isUndefined(c))
      return r(void 0, c);
  }
  function a(l, c) {
    if (h.isUndefined(c)) {
      if (!h.isUndefined(l))
        return r(void 0, l);
    } else return r(void 0, c);
  }
  function s(l, c, v) {
    if (v in t)
      return r(l, c);
    if (v in e)
      return r(void 0, l);
  }
  const p = {
    url: i,
    method: i,
    data: i,
    baseURL: a,
    transformRequest: a,
    transformResponse: a,
    paramsSerializer: a,
    timeout: a,
    timeoutMessage: a,
    withCredentials: a,
    withXSRFToken: a,
    adapter: a,
    responseType: a,
    xsrfCookieName: a,
    xsrfHeaderName: a,
    onUploadProgress: a,
    onDownloadProgress: a,
    decompress: a,
    maxContentLength: a,
    maxBodyLength: a,
    beforeRedirect: a,
    transport: a,
    httpAgent: a,
    httpsAgent: a,
    cancelToken: a,
    socketPath: a,
    responseEncoding: a,
    validateStatus: s,
    headers: (l, c, v) => o($r(l), $r(c), v, !0)
  };
  return h.forEach(Object.keys(Object.assign({}, e, t)), function(c) {
    const v = p[c] || o, S = v(e[c], t[c], c);
    h.isUndefined(S) && v !== s || (n[c] = S);
  }), n;
}
const oo = (e) => {
  const t = Pe({}, e);
  let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: i, headers: a, auth: s } = t;
  t.headers = a = X.from(a), t.url = Zn(no(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), s && a.set(
    "Authorization",
    "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
  );
  let p;
  if (h.isFormData(n)) {
    if (V.hasStandardBrowserEnv || V.hasStandardBrowserWebWorkerEnv)
      a.setContentType(void 0);
    else if ((p = a.getContentType()) !== !1) {
      const [l, ...c] = p ? p.split(";").map((v) => v.trim()).filter(Boolean) : [];
      a.setContentType([l || "multipart/form-data", ...c].join("; "));
    }
  }
  if (V.hasStandardBrowserEnv && (r && h.isFunction(r) && (r = r(t)), r || r !== !1 && ka(t.url))) {
    const l = o && i && ja.read(i);
    l && a.set(o, l);
  }
  return t;
}, Wa = typeof XMLHttpRequest < "u", Ga = Wa && function(e) {
  return new Promise(function(n, r) {
    const o = oo(e);
    let i = o.data;
    const a = X.from(o.headers).normalize();
    let { responseType: s, onUploadProgress: p, onDownloadProgress: l } = o, c, v, S, b, y;
    function w() {
      b && b(), y && y(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
    }
    let u = new XMLHttpRequest();
    u.open(o.method.toUpperCase(), o.url, !0), u.timeout = o.timeout;
    function m() {
      if (!u)
        return;
      const E = X.from(
        "getAllResponseHeaders" in u && u.getAllResponseHeaders()
      ), A = {
        data: !s || s === "text" || s === "json" ? u.responseText : u.response,
        status: u.status,
        statusText: u.statusText,
        headers: E,
        config: e,
        request: u
      };
      ro(function(P) {
        n(P), w();
      }, function(P) {
        r(P), w();
      }, A), u = null;
    }
    "onloadend" in u ? u.onloadend = m : u.onreadystatechange = function() {
      !u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(m);
    }, u.onabort = function() {
      u && (r(new C("Request aborted", C.ECONNABORTED, e, u)), u = null);
    }, u.onerror = function() {
      r(new C("Network Error", C.ERR_NETWORK, e, u)), u = null;
    }, u.ontimeout = function() {
      let O = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
      const A = o.transitional || Yn;
      o.timeoutErrorMessage && (O = o.timeoutErrorMessage), r(new C(
        O,
        A.clarifyTimeoutError ? C.ETIMEDOUT : C.ECONNABORTED,
        e,
        u
      )), u = null;
    }, i === void 0 && a.setContentType(null), "setRequestHeader" in u && h.forEach(a.toJSON(), function(O, A) {
      u.setRequestHeader(A, O);
    }), h.isUndefined(o.withCredentials) || (u.withCredentials = !!o.withCredentials), s && s !== "json" && (u.responseType = o.responseType), l && ([S, y] = Ke(l, !0), u.addEventListener("progress", S)), p && u.upload && ([v, b] = Ke(p), u.upload.addEventListener("progress", v), u.upload.addEventListener("loadend", b)), (o.cancelToken || o.signal) && (c = (E) => {
      u && (r(!E || E.type ? new De(null, e, u) : E), u.abort(), u = null);
    }, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
    const g = $a(o.url);
    if (g && V.protocols.indexOf(g) === -1) {
      r(new C("Unsupported protocol " + g + ":", C.ERR_BAD_REQUEST, e));
      return;
    }
    u.send(i || null);
  });
}, Ja = (e, t) => {
  const { length: n } = e = e ? e.filter(Boolean) : [];
  if (t || n) {
    let r = new AbortController(), o;
    const i = function(l) {
      if (!o) {
        o = !0, s();
        const c = l instanceof Error ? l : this.reason;
        r.abort(c instanceof C ? c : new De(c instanceof Error ? c.message : c));
      }
    };
    let a = t && setTimeout(() => {
      a = null, i(new C(`timeout ${t} of ms exceeded`, C.ETIMEDOUT));
    }, t);
    const s = () => {
      e && (a && clearTimeout(a), a = null, e.forEach((l) => {
        l.unsubscribe ? l.unsubscribe(i) : l.removeEventListener("abort", i);
      }), e = null);
    };
    e.forEach((l) => l.addEventListener("abort", i));
    const { signal: p } = r;
    return p.unsubscribe = () => h.asap(s), p;
  }
}, Va = function* (e, t) {
  let n = e.byteLength;
  if (n < t) {
    yield e;
    return;
  }
  let r = 0, o;
  for (; r < n; )
    o = r + t, yield e.slice(r, o), r = o;
}, Ka = async function* (e, t) {
  for await (const n of Qa(e))
    yield* Va(n, t);
}, Qa = async function* (e) {
  if (e[Symbol.asyncIterator]) {
    yield* e;
    return;
  }
  const t = e.getReader();
  try {
    for (; ; ) {
      const { done: n, value: r } = await t.read();
      if (n)
        break;
      yield r;
    }
  } finally {
    await t.cancel();
  }
}, Ur = (e, t, n, r) => {
  const o = Ka(e, t);
  let i = 0, a, s = (p) => {
    a || (a = !0, r && r(p));
  };
  return new ReadableStream({
    async pull(p) {
      try {
        const { done: l, value: c } = await o.next();
        if (l) {
          s(), p.close();
          return;
        }
        let v = c.byteLength;
        if (n) {
          let S = i += v;
          n(S);
        }
        p.enqueue(new Uint8Array(c));
      } catch (l) {
        throw s(l), l;
      }
    },
    cancel(p) {
      return s(p), o.return();
    }
  }, {
    highWaterMark: 2
  });
}, rt = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ao = rt && typeof ReadableStream == "function", Xa = rt && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), io = (e, ...t) => {
  try {
    return !!e(...t);
  } catch {
    return !1;
  }
}, Za = ao && io(() => {
  let e = !1;
  const t = new Request(V.origin, {
    body: new ReadableStream(),
    method: "POST",
    get duplex() {
      return e = !0, "half";
    }
  }).headers.has("Content-Type");
  return e && !t;
}), Mr = 64 * 1024, pr = ao && io(() => h.isReadableStream(new Response("").body)), Qe = {
  stream: pr && ((e) => e.body)
};
rt && ((e) => {
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
    !Qe[t] && (Qe[t] = h.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
      throw new C(`Response type '${t}' is not supported`, C.ERR_NOT_SUPPORT, r);
    });
  });
})(new Response());
const Ya = async (e) => {
  if (e == null)
    return 0;
  if (h.isBlob(e))
    return e.size;
  if (h.isSpecCompliantForm(e))
    return (await new Request(V.origin, {
      method: "POST",
      body: e
    }).arrayBuffer()).byteLength;
  if (h.isArrayBufferView(e) || h.isArrayBuffer(e))
    return e.byteLength;
  if (h.isURLSearchParams(e) && (e = e + ""), h.isString(e))
    return (await Xa(e)).byteLength;
}, ei = async (e, t) => {
  const n = h.toFiniteNumber(e.getContentLength());
  return n ?? Ya(t);
}, ti = rt && (async (e) => {
  let {
    url: t,
    method: n,
    data: r,
    signal: o,
    cancelToken: i,
    timeout: a,
    onDownloadProgress: s,
    onUploadProgress: p,
    responseType: l,
    headers: c,
    withCredentials: v = "same-origin",
    fetchOptions: S
  } = oo(e);
  l = l ? (l + "").toLowerCase() : "text";
  let b = Ja([o, i && i.toAbortSignal()], a), y;
  const w = b && b.unsubscribe && (() => {
    b.unsubscribe();
  });
  let u;
  try {
    if (p && Za && n !== "get" && n !== "head" && (u = await ei(c, r)) !== 0) {
      let A = new Request(t, {
        method: "POST",
        body: r,
        duplex: "half"
      }), R;
      if (h.isFormData(r) && (R = A.headers.get("content-type")) && c.setContentType(R), A.body) {
        const [P, T] = Ir(
          u,
          Ke(Br(p))
        );
        r = Ur(A.body, Mr, P, T);
      }
    }
    h.isString(v) || (v = v ? "include" : "omit");
    const m = "credentials" in Request.prototype;
    y = new Request(t, {
      ...S,
      signal: b,
      method: n.toUpperCase(),
      headers: c.normalize().toJSON(),
      body: r,
      duplex: "half",
      credentials: m ? v : void 0
    });
    let g = await fetch(y, S);
    const E = pr && (l === "stream" || l === "response");
    if (pr && (s || E && w)) {
      const A = {};
      ["status", "statusText", "headers"].forEach((q) => {
        A[q] = g[q];
      });
      const R = h.toFiniteNumber(g.headers.get("content-length")), [P, T] = s && Ir(
        R,
        Ke(Br(s), !0)
      ) || [];
      g = new Response(
        Ur(g.body, Mr, P, () => {
          T && T(), w && w();
        }),
        A
      );
    }
    l = l || "text";
    let O = await Qe[h.findKey(Qe, l) || "text"](g, e);
    return !E && w && w(), await new Promise((A, R) => {
      ro(A, R, {
        data: O,
        headers: X.from(g.headers),
        status: g.status,
        statusText: g.statusText,
        config: e,
        request: y
      });
    });
  } catch (m) {
    throw w && w(), m && m.name === "TypeError" && /Load failed|fetch/i.test(m.message) ? Object.assign(
      new C("Network Error", C.ERR_NETWORK, e, y),
      {
        cause: m.cause || m
      }
    ) : C.from(m, m && m.code, e, y);
  }
}), dr = {
  http: ma,
  xhr: Ga,
  fetch: ti
};
h.forEach(dr, (e, t) => {
  if (e) {
    try {
      Object.defineProperty(e, "name", { value: t });
    } catch {
    }
    Object.defineProperty(e, "adapterName", { value: t });
  }
});
const kr = (e) => `- ${e}`, ri = (e) => h.isFunction(e) || e === null || e === !1, so = {
  getAdapter: (e) => {
    e = h.isArray(e) ? e : [e];
    const { length: t } = e;
    let n, r;
    const o = {};
    for (let i = 0; i < t; i++) {
      n = e[i];
      let a;
      if (r = n, !ri(n) && (r = dr[(a = String(n)).toLowerCase()], r === void 0))
        throw new C(`Unknown adapter '${a}'`);
      if (r)
        break;
      o[a || "#" + i] = r;
    }
    if (!r) {
      const i = Object.entries(o).map(
        ([s, p]) => `adapter ${s} ` + (p === !1 ? "is not supported by the environment" : "is not available in the build")
      );
      let a = t ? i.length > 1 ? `since :
` + i.map(kr).join(`
`) : " " + kr(i[0]) : "as no adapter specified";
      throw new C(
        "There is no suitable adapter to dispatch the request " + a,
        "ERR_NOT_SUPPORT"
      );
    }
    return r;
  },
  adapters: dr
};
function gt(e) {
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
    throw new De(null, e);
}
function jr(e) {
  return gt(e), e.headers = X.from(e.headers), e.data = mt.call(
    e,
    e.transformRequest
  ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), so.getAdapter(e.adapter || je.adapter)(e).then(function(r) {
    return gt(e), r.data = mt.call(
      e,
      e.transformResponse,
      r
    ), r.headers = X.from(r.headers), r;
  }, function(r) {
    return to(r) || (gt(e), r && r.response && (r.response.data = mt.call(
      e,
      e.transformResponse,
      r.response
    ), r.response.headers = X.from(r.response.headers))), Promise.reject(r);
  });
}
const lo = "1.10.0", nt = {};
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
  nt[e] = function(r) {
    return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
  };
});
const zr = {};
nt.transitional = function(t, n, r) {
  function o(i, a) {
    return "[Axios v" + lo + "] Transitional option '" + i + "'" + a + (r ? ". " + r : "");
  }
  return (i, a, s) => {
    if (t === !1)
      throw new C(
        o(a, " has been removed" + (n ? " in " + n : "")),
        C.ERR_DEPRECATED
      );
    return n && !zr[a] && (zr[a] = !0, console.warn(
      o(
        a,
        " has been deprecated since v" + n + " and will be removed in the near future"
      )
    )), t ? t(i, a, s) : !0;
  };
};
nt.spelling = function(t) {
  return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
};
function ni(e, t, n) {
  if (typeof e != "object")
    throw new C("options must be an object", C.ERR_BAD_OPTION_VALUE);
  const r = Object.keys(e);
  let o = r.length;
  for (; o-- > 0; ) {
    const i = r[o], a = t[i];
    if (a) {
      const s = e[i], p = s === void 0 || a(s, i, e);
      if (p !== !0)
        throw new C("option " + i + " must be " + p, C.ERR_BAD_OPTION_VALUE);
      continue;
    }
    if (n !== !0)
      throw new C("Unknown option " + i, C.ERR_BAD_OPTION);
  }
}
const Ve = {
  assertOptions: ni,
  validators: nt
}, ue = Ve.validators;
let Re = class {
  constructor(t) {
    this.defaults = t || {}, this.interceptors = {
      request: new Dr(),
      response: new Dr()
    };
  }
  /**
   * Dispatch a request
   *
   * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
   * @param {?Object} config
   *
   * @returns {Promise} The Promise to be fulfilled
   */
  async request(t, n) {
    try {
      return await this._request(t, n);
    } catch (r) {
      if (r instanceof Error) {
        let o = {};
        Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
        const i = o.stack ? o.stack.replace(/^.+\n/, "") : "";
        try {
          r.stack ? i && !String(r.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (r.stack += `
` + i) : r.stack = i;
        } catch {
        }
      }
      throw r;
    }
  }
  _request(t, n) {
    typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Pe(this.defaults, n);
    const { transitional: r, paramsSerializer: o, headers: i } = n;
    r !== void 0 && Ve.assertOptions(r, {
      silentJSONParsing: ue.transitional(ue.boolean),
      forcedJSONParsing: ue.transitional(ue.boolean),
      clarifyTimeoutError: ue.transitional(ue.boolean)
    }, !1), o != null && (h.isFunction(o) ? n.paramsSerializer = {
      serialize: o
    } : Ve.assertOptions(o, {
      encode: ue.function,
      serialize: ue.function
    }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Ve.assertOptions(n, {
      baseUrl: ue.spelling("baseURL"),
      withXsrfToken: ue.spelling("withXSRFToken")
    }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
    let a = i && h.merge(
      i.common,
      i[n.method]
    );
    i && h.forEach(
      ["delete", "get", "head", "post", "put", "patch", "common"],
      (y) => {
        delete i[y];
      }
    ), n.headers = X.concat(a, i);
    const s = [];
    let p = !0;
    this.interceptors.request.forEach(function(w) {
      typeof w.runWhen == "function" && w.runWhen(n) === !1 || (p = p && w.synchronous, s.unshift(w.fulfilled, w.rejected));
    });
    const l = [];
    this.interceptors.response.forEach(function(w) {
      l.push(w.fulfilled, w.rejected);
    });
    let c, v = 0, S;
    if (!p) {
      const y = [jr.bind(this), void 0];
      for (y.unshift.apply(y, s), y.push.apply(y, l), S = y.length, c = Promise.resolve(n); v < S; )
        c = c.then(y[v++], y[v++]);
      return c;
    }
    S = s.length;
    let b = n;
    for (v = 0; v < S; ) {
      const y = s[v++], w = s[v++];
      try {
        b = y(b);
      } catch (u) {
        w.call(this, u);
        break;
      }
    }
    try {
      c = jr.call(this, b);
    } catch (y) {
      return Promise.reject(y);
    }
    for (v = 0, S = l.length; v < S; )
      c = c.then(l[v++], l[v++]);
    return c;
  }
  getUri(t) {
    t = Pe(this.defaults, t);
    const n = no(t.baseURL, t.url, t.allowAbsoluteUrls);
    return Zn(n, t.params, t.paramsSerializer);
  }
};
h.forEach(["delete", "get", "head", "options"], function(t) {
  Re.prototype[t] = function(n, r) {
    return this.request(Pe(r || {}, {
      method: t,
      url: n,
      data: (r || {}).data
    }));
  };
});
h.forEach(["post", "put", "patch"], function(t) {
  function n(r) {
    return function(i, a, s) {
      return this.request(Pe(s || {}, {
        method: t,
        headers: r ? {
          "Content-Type": "multipart/form-data"
        } : {},
        url: i,
        data: a
      }));
    };
  }
  Re.prototype[t] = n(), Re.prototype[t + "Form"] = n(!0);
});
let oi = class uo {
  constructor(t) {
    if (typeof t != "function")
      throw new TypeError("executor must be a function.");
    let n;
    this.promise = new Promise(function(i) {
      n = i;
    });
    const r = this;
    this.promise.then((o) => {
      if (!r._listeners) return;
      let i = r._listeners.length;
      for (; i-- > 0; )
        r._listeners[i](o);
      r._listeners = null;
    }), this.promise.then = (o) => {
      let i;
      const a = new Promise((s) => {
        r.subscribe(s), i = s;
      }).then(o);
      return a.cancel = function() {
        r.unsubscribe(i);
      }, a;
    }, t(function(i, a, s) {
      r.reason || (r.reason = new De(i, a, s), n(r.reason));
    });
  }
  /**
   * Throws a `CanceledError` if cancellation has been requested.
   */
  throwIfRequested() {
    if (this.reason)
      throw this.reason;
  }
  /**
   * Subscribe to the cancel signal
   */
  subscribe(t) {
    if (this.reason) {
      t(this.reason);
      return;
    }
    this._listeners ? this._listeners.push(t) : this._listeners = [t];
  }
  /**
   * Unsubscribe from the cancel signal
   */
  unsubscribe(t) {
    if (!this._listeners)
      return;
    const n = this._listeners.indexOf(t);
    n !== -1 && this._listeners.splice(n, 1);
  }
  toAbortSignal() {
    const t = new AbortController(), n = (r) => {
      t.abort(r);
    };
    return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
  }
  /**
   * Returns an object that contains a new `CancelToken` and a function that, when called,
   * cancels the `CancelToken`.
   */
  static source() {
    let t;
    return {
      token: new uo(function(o) {
        t = o;
      }),
      cancel: t
    };
  }
};
function ai(e) {
  return function(n) {
    return e.apply(null, n);
  };
}
function ii(e) {
  return h.isObject(e) && e.isAxiosError === !0;
}
const yr = {
  Continue: 100,
  SwitchingProtocols: 101,
  Processing: 102,
  EarlyHints: 103,
  Ok: 200,
  Created: 201,
  Accepted: 202,
  NonAuthoritativeInformation: 203,
  NoContent: 204,
  ResetContent: 205,
  PartialContent: 206,
  MultiStatus: 207,
  AlreadyReported: 208,
  ImUsed: 226,
  MultipleChoices: 300,
  MovedPermanently: 301,
  Found: 302,
  SeeOther: 303,
  NotModified: 304,
  UseProxy: 305,
  Unused: 306,
  TemporaryRedirect: 307,
  PermanentRedirect: 308,
  BadRequest: 400,
  Unauthorized: 401,
  PaymentRequired: 402,
  Forbidden: 403,
  NotFound: 404,
  MethodNotAllowed: 405,
  NotAcceptable: 406,
  ProxyAuthenticationRequired: 407,
  RequestTimeout: 408,
  Conflict: 409,
  Gone: 410,
  LengthRequired: 411,
  PreconditionFailed: 412,
  PayloadTooLarge: 413,
  UriTooLong: 414,
  UnsupportedMediaType: 415,
  RangeNotSatisfiable: 416,
  ExpectationFailed: 417,
  ImATeapot: 418,
  MisdirectedRequest: 421,
  UnprocessableEntity: 422,
  Locked: 423,
  FailedDependency: 424,
  TooEarly: 425,
  UpgradeRequired: 426,
  PreconditionRequired: 428,
  TooManyRequests: 429,
  RequestHeaderFieldsTooLarge: 431,
  UnavailableForLegalReasons: 451,
  InternalServerError: 500,
  NotImplemented: 501,
  BadGateway: 502,
  ServiceUnavailable: 503,
  GatewayTimeout: 504,
  HttpVersionNotSupported: 505,
  VariantAlsoNegotiates: 506,
  InsufficientStorage: 507,
  LoopDetected: 508,
  NotExtended: 510,
  NetworkAuthenticationRequired: 511
};
Object.entries(yr).forEach(([e, t]) => {
  yr[t] = e;
});
function co(e) {
  const t = new Re(e), n = Mn(Re.prototype.request, t);
  return h.extend(n, Re.prototype, t, { allOwnKeys: !0 }), h.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
    return co(Pe(e, o));
  }, n;
}
const M = co(je);
M.Axios = Re;
M.CanceledError = De;
M.CancelToken = oi;
M.isCancel = to;
M.VERSION = lo;
M.toFormData = tt;
M.AxiosError = C;
M.Cancel = M.CanceledError;
M.all = function(t) {
  return Promise.all(t);
};
M.spread = ai;
M.isAxiosError = ii;
M.mergeConfig = Pe;
M.AxiosHeaders = X;
M.formToJSON = (e) => eo(h.isHTMLForm(e) ? new FormData(e) : e);
M.getAdapter = so.getAdapter;
M.HttpStatusCode = yr;
M.default = M;
const {
  Axios: Ji,
  AxiosError: Vi,
  CanceledError: Ki,
  isCancel: Qi,
  CancelToken: Xi,
  VERSION: Zi,
  all: Yi,
  Cancel: es,
  isAxiosError: ts,
  spread: rs,
  toFormData: ns,
  AxiosHeaders: os,
  HttpStatusCode: as,
  formToJSON: is,
  getAdapter: ss,
  mergeConfig: ls
} = M;
class ie {
  static loadingDom = null;
  constructor() {
  }
  static show(t = 0.8, n = 999) {
    if (ie.loadingDom) return;
    const r = document.createElement("div");
    r.innerHTML = `
           <div style="width:42px;height:42px">
                <svg width="100" height="100" viewBox="0 0 100 100">
                    <circle cx="50" cy="50" r="20" stroke="#3498db" stroke-width="5" fill="none" stroke-dasharray="31.4 31.4">
                        <animateTransform 
                        attributeName="transform" 
                        type="rotate" 
                        from="0 50 50" 
                        to="360 50 50" 
                        dur="1s" 
                        repeatCount="indefinite"/>
                    </circle>
                </svg>
           </div>
        `, r.style.position = "fixed", r.style.top = "0", r.style.left = "0", r.style.background = `rgba(122, 122, 122, ${t})`, r.style.width = "100%", r.style.height = "100%", r.style.display = "flex", r.style.alignItems = "center", r.style.justifyContent = "center", r.style.zIndex = n.toString(), ie.loadingDom = r, document.body.appendChild(r);
  }
  static close() {
    ie.loadingDom && ie.loadingDom.parentNode && (ie.loadingDom.parentNode.removeChild(ie.loadingDom), ie.loadingDom = null);
  }
}
const Ue = /* @__PURE__ */ new Map();
function se(e) {
  const t = Object.assign(Un, e), n = M.create({
    timeout: t.timeout,
    baseURL: t.baseURL
  });
  return n.interceptors.request.use(
    (r) => {
      if (t.loading && ie.show(), Hr(r), si(r), t.mark && r.url) {
        const o = r.url;
        if (typeof t.mark == "string")
          o.startsWith(`/${t.mark}`) && (r.url = o.replace(`/${t.mark}`, ""));
        else if (Array.isArray(t.mark))
          for (let i = 0; i < t.mark.length; i++)
            typeof t.mark[i] == "string" ? o.startsWith(`/${t.mark[i]}`) && (r.url = o.replace(`/${t.mark[i]}`, "")) : console.warn("ezAxios: mark 存在无法解析类型,已忽略");
        else
          console.error("ezAxios: mark 参数类型错误,请传入字符串或数组");
      }
      for (const o in t.headers)
        r.headers[o] = t.headers[o];
      return r;
    },
    (r) => Promise.reject(r)
  ), n.interceptors.response.use(
    (r) => (ie.close(), Hr(r.config), t.success && t.success(r), Promise.resolve(t.briefly ? r.data : r)),
    (r) => {
      if (ie.close(), !!r)
        return M.isCancel(r) ? r.message == "canceled" ? Promise.reject(`ezAxios: 请求:${r.config.url} 已取消`) : Promise.reject(`ezAxios: 连续的重复请求,已取消 
 错误信息:${r.message}`) : r.response ? (t.error && t.error(r.response.status), Promise.reject(r.response)) : Promise.reject(r.message);
    }
  ), n;
}
function si(e) {
  const t = fo(e);
  e.cancelToken = e.cancelToken || new M.CancelToken((n) => {
    Ue.has(t) || Ue.set(t, n);
  });
}
function Hr(e) {
  const t = fo(e);
  Ue.has(t) && (Ue.get(t)(t), Ue.delete(t));
}
function fo(e) {
  const { url: t, method: n, params: r } = e;
  let { data: o } = e;
  try {
    JSON.parse(o), o = JSON.parse(o);
  } catch {
  }
  return [t, n, JSON.stringify(r), JSON.stringify(o)].join("&");
}
function us(e, ...t) {
  let n = null, r = "json", o = null;
  return t.length && t.forEach((i, a) => {
    a === 0 ? typeof i == "object" ? n = i : typeof i == "string" ? i.toLowerCase() === "blob" ? r = "blob" : console.error("ezAxios: 请求参数仅支持 Object、Array类型") : n && console.error("ezAxios: 请求参数仅支持 Object、Array类型") : a < 3 ? i && (Object.prototype.toString.call(i) == "[object Object]" ? o = i : typeof i == "string" && i.toLowerCase() === "blob" ? r = "blob" : console.warn("ezAxios: 存在无法处理的参数类型,这可能会影响您的程序")) : console.warn("ezAxios: 接收到多余参数,已忽略");
  }), new Promise((i, a) => {
    se(o).get(e, { params: n, responseType: r, signal: o?.signal }).then((s) => {
      i(s);
    }).catch((s) => {
      a(s);
    });
  });
}
var Wr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function li(e) {
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
function ui(e) {
  if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
  var t = e.default;
  if (typeof t == "function") {
    var n = function r() {
      var o = !1;
      try {
        o = this instanceof r;
      } catch {
      }
      return o ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
    };
    n.prototype = t.prototype;
  } else n = {};
  return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
    var o = Object.getOwnPropertyDescriptor(e, r);
    Object.defineProperty(n, r, o.get ? o : {
      enumerable: !0,
      get: function() {
        return e[r];
      }
    });
  }), n;
}
var vt, Gr;
function Le() {
  return Gr || (Gr = 1, vt = TypeError), vt;
}
const ci = {}, fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  default: ci
}, Symbol.toStringTag, { value: "Module" })), pi = /* @__PURE__ */ ui(fi);
var bt, Jr;
function ot() {
  if (Jr) return bt;
  Jr = 1;
  var e = typeof Map == "function" && Map.prototype, t = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, n = e && t && typeof t.get == "function" ? t.get : null, r = e && Map.prototype.forEach, o = typeof Set == "function" && Set.prototype, i = Object.getOwnPropertyDescriptor && o ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, a = o && i && typeof i.get == "function" ? i.get : null, s = o && Set.prototype.forEach, p = typeof WeakMap == "function" && WeakMap.prototype, l = p ? WeakMap.prototype.has : null, c = typeof WeakSet == "function" && WeakSet.prototype, v = c ? WeakSet.prototype.has : null, S = typeof WeakRef == "function" && WeakRef.prototype, b = S ? WeakRef.prototype.deref : null, y = Boolean.prototype.valueOf, w = Object.prototype.toString, u = Function.prototype.toString, m = String.prototype.match, g = String.prototype.slice, E = String.prototype.replace, O = String.prototype.toUpperCase, A = String.prototype.toLowerCase, R = RegExp.prototype.test, P = Array.prototype.concat, T = Array.prototype.join, q = Array.prototype.slice, F = Math.floor, I = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, x = Object.getOwnPropertySymbols, W = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, j = typeof Symbol == "function" && typeof Symbol.iterator == "object", Z = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === j || !0) ? Symbol.toStringTag : null, ce = Object.prototype.propertyIsEnumerable, fe = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(f) {
    return f.__proto__;
  } : null);
  function _(f, d) {
    if (f === 1 / 0 || f === -1 / 0 || f !== f || f && f > -1e3 && f < 1e3 || R.call(/e/, d))
      return d;
    var L = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
    if (typeof f == "number") {
      var $ = f < 0 ? -F(-f) : F(f);
      if ($ !== f) {
        var U = String($), N = g.call(d, U.length + 1);
        return E.call(U, L, "$&_") + "." + E.call(E.call(N, /([0-9]{3})/g, "$&_"), /_$/, "");
      }
    }
    return E.call(d, L, "$&_");
  }
  var Y = pi, pe = Y.custom, Ee = G(pe) ? pe : null, ye = {
    __proto__: null,
    double: '"',
    single: "'"
  }, he = {
    __proto__: null,
    double: /(["\\])/g,
    single: /(['\\])/g
  };
  bt = function f(d, L, $, U) {
    var N = L || {};
    if (K(N, "quoteStyle") && !K(ye, N.quoteStyle))
      throw new TypeError('option "quoteStyle" must be "single" or "double"');
    if (K(N, "maxStringLength") && (typeof N.maxStringLength == "number" ? N.maxStringLength < 0 && N.maxStringLength !== 1 / 0 : N.maxStringLength !== null))
      throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
    var we = K(N, "customInspect") ? N.customInspect : !0;
    if (typeof we != "boolean" && we !== "symbol")
      throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
    if (K(N, "indent") && N.indent !== null && N.indent !== "	" && !(parseInt(N.indent, 10) === N.indent && N.indent > 0))
      throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
    if (K(N, "numericSeparator") && typeof N.numericSeparator != "boolean")
      throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
    var Oe = N.numericSeparator;
    if (typeof d > "u")
      return "undefined";
    if (d === null)
      return "null";
    if (typeof d == "boolean")
      return d ? "true" : "false";
    if (typeof d == "string")
      return Sr(d, N);
    if (typeof d == "number") {
      if (d === 0)
        return 1 / 0 / d > 0 ? "0" : "-0";
      var ee = String(d);
      return Oe ? _(d, ee) : ee;
    }
    if (typeof d == "bigint") {
      var Se = String(d) + "n";
      return Oe ? _(d, Se) : Se;
    }
    var lt = typeof N.depth > "u" ? 5 : N.depth;
    if (typeof $ > "u" && ($ = 0), $ >= lt && lt > 0 && typeof d == "object")
      return ge(d) ? "[Array]" : "[Object]";
    var Ne = xo(N, $);
    if (typeof U > "u")
      U = [];
    else if (be(U, d) >= 0)
      return "[Circular]";
    function ae(_e, We, Co) {
      if (We && (U = q.call(U), U.push(We)), Co) {
        var Fr = {
          depth: N.depth
        };
        return K(N, "quoteStyle") && (Fr.quoteStyle = N.quoteStyle), f(_e, Fr, $ + 1, U);
      }
      return f(_e, N, $ + 1, U);
    }
    if (typeof d == "function" && !H(d)) {
      var Or = xe(d), Ar = ze(d, ae);
      return "[Function" + (Or ? ": " + Or : " (anonymous)") + "]" + (Ar.length > 0 ? " { " + T.call(Ar, ", ") + " }" : "");
    }
    if (G(d)) {
      var Rr = j ? E.call(String(d), /^(Symbol\(.*\))_[^)]*$/, "$1") : W.call(d);
      return typeof d == "object" && !j ? Ie(Rr) : Rr;
    }
    if (Ao(d)) {
      for (var Be = "<" + A.call(String(d.nodeName)), ut = d.attributes || [], He = 0; He < ut.length; He++)
        Be += " " + ut[He].name + "=" + me(de(ut[He].value), "double", N);
      return Be += ">", d.childNodes && d.childNodes.length && (Be += "..."), Be += "</" + A.call(String(d.nodeName)) + ">", Be;
    }
    if (ge(d)) {
      if (d.length === 0)
        return "[]";
      var ct = ze(d, ae);
      return Ne && !Po(ct) ? "[" + st(ct, Ne) + "]" : "[ " + T.call(ct, ", ") + " ]";
    }
    if (D(d)) {
      var ft = ze(d, ae);
      return !("cause" in Error.prototype) && "cause" in d && !ce.call(d, "cause") ? "{ [" + String(d) + "] " + T.call(P.call("[cause]: " + ae(d.cause), ft), ", ") + " }" : ft.length === 0 ? "[" + String(d) + "]" : "{ [" + String(d) + "] " + T.call(ft, ", ") + " }";
    }
    if (typeof d == "object" && we) {
      if (Ee && typeof d[Ee] == "function" && Y)
        return Y(d, { depth: lt - $ });
      if (we !== "symbol" && typeof d.inspect == "function")
        return d.inspect();
    }
    if (oe(d)) {
      var Pr = [];
      return r && r.call(d, function(_e, We) {
        Pr.push(ae(We, d, !0) + " => " + ae(_e, d));
      }), Er("Map", n.call(d), Pr, Ne);
    }
    if (Fe(d)) {
      var xr = [];
      return s && s.call(d, function(_e) {
        xr.push(ae(_e, d));
      }), Er("Set", a.call(d), xr, Ne);
    }
    if (Te(d))
      return it("WeakMap");
    if (Oo(d))
      return it("WeakSet");
    if (Ce(d))
      return it("WeakRef");
    if (B(d))
      return Ie(ae(Number(d)));
    if (re(d))
      return Ie(ae(I.call(d)));
    if (z(d))
      return Ie(y.call(d));
    if (k(d))
      return Ie(ae(String(d)));
    if (typeof window < "u" && d === window)
      return "{ [object Window] }";
    if (typeof globalThis < "u" && d === globalThis || typeof Wr < "u" && d === Wr)
      return "{ [object globalThis] }";
    if (!ve(d) && !H(d)) {
      var pt = ze(d, ae), Tr = fe ? fe(d) === Object.prototype : d instanceof Object || d.constructor === Object, dt = d instanceof Object ? "" : "null prototype", Cr = !Tr && Z && Object(d) === d && Z in d ? g.call(ne(d), 8, -1) : dt ? "Object" : "", To = Tr || typeof d.constructor != "function" ? "" : d.constructor.name ? d.constructor.name + " " : "", yt = To + (Cr || dt ? "[" + T.call(P.call([], Cr || [], dt || []), ": ") + "] " : "");
      return pt.length === 0 ? yt + "{}" : Ne ? yt + "{" + st(pt, Ne) + "}" : yt + "{ " + T.call(pt, ", ") + " }";
    }
    return String(d);
  };
  function me(f, d, L) {
    var $ = L.quoteStyle || d, U = ye[$];
    return U + f + U;
  }
  function de(f) {
    return E.call(String(f), /"/g, "&quot;");
  }
  function te(f) {
    return !Z || !(typeof f == "object" && (Z in f || typeof f[Z] < "u"));
  }
  function ge(f) {
    return ne(f) === "[object Array]" && te(f);
  }
  function ve(f) {
    return ne(f) === "[object Date]" && te(f);
  }
  function H(f) {
    return ne(f) === "[object RegExp]" && te(f);
  }
  function D(f) {
    return ne(f) === "[object Error]" && te(f);
  }
  function k(f) {
    return ne(f) === "[object String]" && te(f);
  }
  function B(f) {
    return ne(f) === "[object Number]" && te(f);
  }
  function z(f) {
    return ne(f) === "[object Boolean]" && te(f);
  }
  function G(f) {
    if (j)
      return f && typeof f == "object" && f instanceof Symbol;
    if (typeof f == "symbol")
      return !0;
    if (!f || typeof f != "object" || !W)
      return !1;
    try {
      return W.call(f), !0;
    } catch {
    }
    return !1;
  }
  function re(f) {
    if (!f || typeof f != "object" || !I)
      return !1;
    try {
      return I.call(f), !0;
    } catch {
    }
    return !1;
  }
  var J = Object.prototype.hasOwnProperty || function(f) {
    return f in this;
  };
  function K(f, d) {
    return J.call(f, d);
  }
  function ne(f) {
    return w.call(f);
  }
  function xe(f) {
    if (f.name)
      return f.name;
    var d = m.call(u.call(f), /^function\s*([\w$]+)/);
    return d ? d[1] : null;
  }
  function be(f, d) {
    if (f.indexOf)
      return f.indexOf(d);
    for (var L = 0, $ = f.length; L < $; L++)
      if (f[L] === d)
        return L;
    return -1;
  }
  function oe(f) {
    if (!n || !f || typeof f != "object")
      return !1;
    try {
      n.call(f);
      try {
        a.call(f);
      } catch {
        return !0;
      }
      return f instanceof Map;
    } catch {
    }
    return !1;
  }
  function Te(f) {
    if (!l || !f || typeof f != "object")
      return !1;
    try {
      l.call(f, l);
      try {
        v.call(f, v);
      } catch {
        return !0;
      }
      return f instanceof WeakMap;
    } catch {
    }
    return !1;
  }
  function Ce(f) {
    if (!b || !f || typeof f != "object")
      return !1;
    try {
      return b.call(f), !0;
    } catch {
    }
    return !1;
  }
  function Fe(f) {
    if (!a || !f || typeof f != "object")
      return !1;
    try {
      a.call(f);
      try {
        n.call(f);
      } catch {
        return !0;
      }
      return f instanceof Set;
    } catch {
    }
    return !1;
  }
  function Oo(f) {
    if (!v || !f || typeof f != "object")
      return !1;
    try {
      v.call(f, v);
      try {
        l.call(f, l);
      } catch {
        return !0;
      }
      return f instanceof WeakSet;
    } catch {
    }
    return !1;
  }
  function Ao(f) {
    return !f || typeof f != "object" ? !1 : typeof HTMLElement < "u" && f instanceof HTMLElement ? !0 : typeof f.nodeName == "string" && typeof f.getAttribute == "function";
  }
  function Sr(f, d) {
    if (f.length > d.maxStringLength) {
      var L = f.length - d.maxStringLength, $ = "... " + L + " more character" + (L > 1 ? "s" : "");
      return Sr(g.call(f, 0, d.maxStringLength), d) + $;
    }
    var U = he[d.quoteStyle || "single"];
    U.lastIndex = 0;
    var N = E.call(E.call(f, U, "\\$1"), /[\x00-\x1f]/g, Ro);
    return me(N, "single", d);
  }
  function Ro(f) {
    var d = f.charCodeAt(0), L = {
      8: "b",
      9: "t",
      10: "n",
      12: "f",
      13: "r"
    }[d];
    return L ? "\\" + L : "\\x" + (d < 16 ? "0" : "") + O.call(d.toString(16));
  }
  function Ie(f) {
    return "Object(" + f + ")";
  }
  function it(f) {
    return f + " { ? }";
  }
  function Er(f, d, L, $) {
    var U = $ ? st(L, $) : T.call(L, ", ");
    return f + " (" + d + ") {" + U + "}";
  }
  function Po(f) {
    for (var d = 0; d < f.length; d++)
      if (be(f[d], `
`) >= 0)
        return !1;
    return !0;
  }
  function xo(f, d) {
    var L;
    if (f.indent === "	")
      L = "	";
    else if (typeof f.indent == "number" && f.indent > 0)
      L = T.call(Array(f.indent + 1), " ");
    else
      return null;
    return {
      base: L,
      prev: T.call(Array(d + 1), L)
    };
  }
  function st(f, d) {
    if (f.length === 0)
      return "";
    var L = `
` + d.prev + d.base;
    return L + T.call(f, "," + L) + `
` + d.prev;
  }
  function ze(f, d) {
    var L = ge(f), $ = [];
    if (L) {
      $.length = f.length;
      for (var U = 0; U < f.length; U++)
        $[U] = K(f, U) ? d(f[U], f) : "";
    }
    var N = typeof x == "function" ? x(f) : [], we;
    if (j) {
      we = {};
      for (var Oe = 0; Oe < N.length; Oe++)
        we["$" + N[Oe]] = N[Oe];
    }
    for (var ee in f)
      K(f, ee) && (L && String(Number(ee)) === ee && ee < f.length || j && we["$" + ee] instanceof Symbol || (R.call(/[^\w$]/, ee) ? $.push(d(ee, f) + ": " + d(f[ee], f)) : $.push(ee + ": " + d(f[ee], f))));
    if (typeof x == "function")
      for (var Se = 0; Se < N.length; Se++)
        ce.call(f, N[Se]) && $.push("[" + d(N[Se]) + "]: " + d(f[N[Se]], f));
    return $;
  }
  return bt;
}
var wt, Vr;
function di() {
  if (Vr) return wt;
  Vr = 1;
  var e = /* @__PURE__ */ ot(), t = /* @__PURE__ */ Le(), n = function(s, p, l) {
    for (var c = s, v; (v = c.next) != null; c = v)
      if (v.key === p)
        return c.next = v.next, l || (v.next = /** @type {NonNullable<typeof list.next>} */
        s.next, s.next = v), v;
  }, r = function(s, p) {
    if (s) {
      var l = n(s, p);
      return l && l.value;
    }
  }, o = function(s, p, l) {
    var c = n(s, p);
    c ? c.value = l : s.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
    {
      // eslint-disable-line no-param-reassign, no-extra-parens
      key: p,
      next: s.next,
      value: l
    };
  }, i = function(s, p) {
    return s ? !!n(s, p) : !1;
  }, a = function(s, p) {
    if (s)
      return n(s, p, !0);
  };
  return wt = function() {
    var p, l = {
      assert: function(c) {
        if (!l.has(c))
          throw new t("Side channel does not contain " + e(c));
      },
      delete: function(c) {
        var v = p && p.next, S = a(p, c);
        return S && v && v === S && (p = void 0), !!S;
      },
      get: function(c) {
        return r(p, c);
      },
      has: function(c) {
        return i(p, c);
      },
      set: function(c, v) {
        p || (p = {
          next: void 0
        }), o(
          /** @type {NonNullable<typeof $o>} */
          p,
          c,
          v
        );
      }
    };
    return l;
  }, wt;
}
var St, Kr;
function po() {
  return Kr || (Kr = 1, St = Object), St;
}
var Et, Qr;
function yi() {
  return Qr || (Qr = 1, Et = Error), Et;
}
var Ot, Xr;
function hi() {
  return Xr || (Xr = 1, Ot = EvalError), Ot;
}
var At, Zr;
function mi() {
  return Zr || (Zr = 1, At = RangeError), At;
}
var Rt, Yr;
function gi() {
  return Yr || (Yr = 1, Rt = ReferenceError), Rt;
}
var Pt, en;
function vi() {
  return en || (en = 1, Pt = SyntaxError), Pt;
}
var xt, tn;
function bi() {
  return tn || (tn = 1, xt = URIError), xt;
}
var Tt, rn;
function wi() {
  return rn || (rn = 1, Tt = Math.abs), Tt;
}
var Ct, nn;
function Si() {
  return nn || (nn = 1, Ct = Math.floor), Ct;
}
var Ft, on;
function Ei() {
  return on || (on = 1, Ft = Math.max), Ft;
}
var Nt, an;
function Oi() {
  return an || (an = 1, Nt = Math.min), Nt;
}
var _t, sn;
function Ai() {
  return sn || (sn = 1, _t = Math.pow), _t;
}
var qt, ln;
function Ri() {
  return ln || (ln = 1, qt = Math.round), qt;
}
var Dt, un;
function Pi() {
  return un || (un = 1, Dt = Number.isNaN || function(t) {
    return t !== t;
  }), Dt;
}
var Lt, cn;
function xi() {
  if (cn) return Lt;
  cn = 1;
  var e = /* @__PURE__ */ Pi();
  return Lt = function(n) {
    return e(n) || n === 0 ? n : n < 0 ? -1 : 1;
  }, Lt;
}
var It, fn;
function Ti() {
  return fn || (fn = 1, It = Object.getOwnPropertyDescriptor), It;
}
var Bt, pn;
function yo() {
  if (pn) return Bt;
  pn = 1;
  var e = /* @__PURE__ */ Ti();
  if (e)
    try {
      e([], "length");
    } catch {
      e = null;
    }
  return Bt = e, Bt;
}
var $t, dn;
function Ci() {
  if (dn) return $t;
  dn = 1;
  var e = Object.defineProperty || !1;
  if (e)
    try {
      e({}, "a", { value: 1 });
    } catch {
      e = !1;
    }
  return $t = e, $t;
}
var Ut, yn;
function Fi() {
  return yn || (yn = 1, Ut = function() {
    if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
      return !1;
    if (typeof Symbol.iterator == "symbol")
      return !0;
    var t = {}, n = Symbol("test"), r = Object(n);
    if (typeof n == "string" || Object.prototype.toString.call(n) !== "[object Symbol]" || Object.prototype.toString.call(r) !== "[object Symbol]")
      return !1;
    var o = 42;
    t[n] = o;
    for (var i in t)
      return !1;
    if (typeof Object.keys == "function" && Object.keys(t).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(t).length !== 0)
      return !1;
    var a = Object.getOwnPropertySymbols(t);
    if (a.length !== 1 || a[0] !== n || !Object.prototype.propertyIsEnumerable.call(t, n))
      return !1;
    if (typeof Object.getOwnPropertyDescriptor == "function") {
      var s = (
        /** @type {PropertyDescriptor} */
        Object.getOwnPropertyDescriptor(t, n)
      );
      if (s.value !== o || s.enumerable !== !0)
        return !1;
    }
    return !0;
  }), Ut;
}
var Mt, hn;
function Ni() {
  if (hn) return Mt;
  hn = 1;
  var e = typeof Symbol < "u" && Symbol, t = Fi();
  return Mt = function() {
    return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : t();
  }, Mt;
}
var kt, mn;
function ho() {
  return mn || (mn = 1, kt = typeof Reflect < "u" && Reflect.getPrototypeOf || null), kt;
}
var jt, gn;
function mo() {
  if (gn) return jt;
  gn = 1;
  var e = /* @__PURE__ */ po();
  return jt = e.getPrototypeOf || null, jt;
}
var zt, vn;
function _i() {
  if (vn) return zt;
  vn = 1;
  var e = "Function.prototype.bind called on incompatible ", t = Object.prototype.toString, n = Math.max, r = "[object Function]", o = function(p, l) {
    for (var c = [], v = 0; v < p.length; v += 1)
      c[v] = p[v];
    for (var S = 0; S < l.length; S += 1)
      c[S + p.length] = l[S];
    return c;
  }, i = function(p, l) {
    for (var c = [], v = l, S = 0; v < p.length; v += 1, S += 1)
      c[S] = p[v];
    return c;
  }, a = function(s, p) {
    for (var l = "", c = 0; c < s.length; c += 1)
      l += s[c], c + 1 < s.length && (l += p);
    return l;
  };
  return zt = function(p) {
    var l = this;
    if (typeof l != "function" || t.apply(l) !== r)
      throw new TypeError(e + l);
    for (var c = i(arguments, 1), v, S = function() {
      if (this instanceof v) {
        var m = l.apply(
          this,
          o(c, arguments)
        );
        return Object(m) === m ? m : this;
      }
      return l.apply(
        p,
        o(c, arguments)
      );
    }, b = n(0, l.length - c.length), y = [], w = 0; w < b; w++)
      y[w] = "$" + w;
    if (v = Function("binder", "return function (" + a(y, ",") + "){ return binder.apply(this,arguments); }")(S), l.prototype) {
      var u = function() {
      };
      u.prototype = l.prototype, v.prototype = new u(), u.prototype = null;
    }
    return v;
  }, zt;
}
var Ht, bn;
function at() {
  if (bn) return Ht;
  bn = 1;
  var e = _i();
  return Ht = Function.prototype.bind || e, Ht;
}
var Wt, wn;
function vr() {
  return wn || (wn = 1, Wt = Function.prototype.call), Wt;
}
var Gt, Sn;
function go() {
  return Sn || (Sn = 1, Gt = Function.prototype.apply), Gt;
}
var Jt, En;
function qi() {
  return En || (En = 1, Jt = typeof Reflect < "u" && Reflect && Reflect.apply), Jt;
}
var Vt, On;
function Di() {
  if (On) return Vt;
  On = 1;
  var e = at(), t = go(), n = vr(), r = qi();
  return Vt = r || e.call(n, t), Vt;
}
var Kt, An;
function vo() {
  if (An) return Kt;
  An = 1;
  var e = at(), t = /* @__PURE__ */ Le(), n = vr(), r = Di();
  return Kt = function(i) {
    if (i.length < 1 || typeof i[0] != "function")
      throw new t("a function is required");
    return r(e, n, i);
  }, Kt;
}
var Qt, Rn;
function Li() {
  if (Rn) return Qt;
  Rn = 1;
  var e = vo(), t = /* @__PURE__ */ yo(), n;
  try {
    n = /** @type {{ __proto__?: typeof Array.prototype }} */
    [].__proto__ === Array.prototype;
  } catch (a) {
    if (!a || typeof a != "object" || !("code" in a) || a.code !== "ERR_PROTO_ACCESS")
      throw a;
  }
  var r = !!n && t && t(
    Object.prototype,
    /** @type {keyof typeof Object.prototype} */
    "__proto__"
  ), o = Object, i = o.getPrototypeOf;
  return Qt = r && typeof r.get == "function" ? e([r.get]) : typeof i == "function" ? (
    /** @type {import('./get')} */
    function(s) {
      return i(s == null ? s : o(s));
    }
  ) : !1, Qt;
}
var Xt, Pn;
function Ii() {
  if (Pn) return Xt;
  Pn = 1;
  var e = ho(), t = mo(), n = /* @__PURE__ */ Li();
  return Xt = e ? function(o) {
    return e(o);
  } : t ? function(o) {
    if (!o || typeof o != "object" && typeof o != "function")
      throw new TypeError("getProto: not an object");
    return t(o);
  } : n ? function(o) {
    return n(o);
  } : null, Xt;
}
var Zt, xn;
function Bi() {
  if (xn) return Zt;
  xn = 1;
  var e = Function.prototype.call, t = Object.prototype.hasOwnProperty, n = at();
  return Zt = n.call(e, t), Zt;
}
var Yt, Tn;
function br() {
  if (Tn) return Yt;
  Tn = 1;
  var e, t = /* @__PURE__ */ po(), n = /* @__PURE__ */ yi(), r = /* @__PURE__ */ hi(), o = /* @__PURE__ */ mi(), i = /* @__PURE__ */ gi(), a = /* @__PURE__ */ vi(), s = /* @__PURE__ */ Le(), p = /* @__PURE__ */ bi(), l = /* @__PURE__ */ wi(), c = /* @__PURE__ */ Si(), v = /* @__PURE__ */ Ei(), S = /* @__PURE__ */ Oi(), b = /* @__PURE__ */ Ai(), y = /* @__PURE__ */ Ri(), w = /* @__PURE__ */ xi(), u = Function, m = function(H) {
    try {
      return u('"use strict"; return (' + H + ").constructor;")();
    } catch {
    }
  }, g = /* @__PURE__ */ yo(), E = /* @__PURE__ */ Ci(), O = function() {
    throw new s();
  }, A = g ? function() {
    try {
      return arguments.callee, O;
    } catch {
      try {
        return g(arguments, "callee").get;
      } catch {
        return O;
      }
    }
  }() : O, R = Ni()(), P = Ii(), T = mo(), q = ho(), F = go(), I = vr(), x = {}, W = typeof Uint8Array > "u" || !P ? e : P(Uint8Array), j = {
    __proto__: null,
    "%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
    "%Array%": Array,
    "%ArrayBuffer%": typeof ArrayBuffer > "u" ? e : ArrayBuffer,
    "%ArrayIteratorPrototype%": R && P ? P([][Symbol.iterator]()) : e,
    "%AsyncFromSyncIteratorPrototype%": e,
    "%AsyncFunction%": x,
    "%AsyncGenerator%": x,
    "%AsyncGeneratorFunction%": x,
    "%AsyncIteratorPrototype%": x,
    "%Atomics%": typeof Atomics > "u" ? e : Atomics,
    "%BigInt%": typeof BigInt > "u" ? e : BigInt,
    "%BigInt64Array%": typeof BigInt64Array > "u" ? e : BigInt64Array,
    "%BigUint64Array%": typeof BigUint64Array > "u" ? e : BigUint64Array,
    "%Boolean%": Boolean,
    "%DataView%": typeof DataView > "u" ? e : DataView,
    "%Date%": Date,
    "%decodeURI%": decodeURI,
    "%decodeURIComponent%": decodeURIComponent,
    "%encodeURI%": encodeURI,
    "%encodeURIComponent%": encodeURIComponent,
    "%Error%": n,
    "%eval%": eval,
    // eslint-disable-line no-eval
    "%EvalError%": r,
    "%Float16Array%": typeof Float16Array > "u" ? e : Float16Array,
    "%Float32Array%": typeof Float32Array > "u" ? e : Float32Array,
    "%Float64Array%": typeof Float64Array > "u" ? e : Float64Array,
    "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? e : FinalizationRegistry,
    "%Function%": u,
    "%GeneratorFunction%": x,
    "%Int8Array%": typeof Int8Array > "u" ? e : Int8Array,
    "%Int16Array%": typeof Int16Array > "u" ? e : Int16Array,
    "%Int32Array%": typeof Int32Array > "u" ? e : Int32Array,
    "%isFinite%": isFinite,
    "%isNaN%": isNaN,
    "%IteratorPrototype%": R && P ? P(P([][Symbol.iterator]())) : e,
    "%JSON%": typeof JSON == "object" ? JSON : e,
    "%Map%": typeof Map > "u" ? e : Map,
    "%MapIteratorPrototype%": typeof Map > "u" || !R || !P ? e : P((/* @__PURE__ */ new Map())[Symbol.iterator]()),
    "%Math%": Math,
    "%Number%": Number,
    "%Object%": t,
    "%Object.getOwnPropertyDescriptor%": g,
    "%parseFloat%": parseFloat,
    "%parseInt%": parseInt,
    "%Promise%": typeof Promise > "u" ? e : Promise,
    "%Proxy%": typeof Proxy > "u" ? e : Proxy,
    "%RangeError%": o,
    "%ReferenceError%": i,
    "%Reflect%": typeof Reflect > "u" ? e : Reflect,
    "%RegExp%": RegExp,
    "%Set%": typeof Set > "u" ? e : Set,
    "%SetIteratorPrototype%": typeof Set > "u" || !R || !P ? e : P((/* @__PURE__ */ new Set())[Symbol.iterator]()),
    "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? e : SharedArrayBuffer,
    "%String%": String,
    "%StringIteratorPrototype%": R && P ? P(""[Symbol.iterator]()) : e,
    "%Symbol%": R ? Symbol : e,
    "%SyntaxError%": a,
    "%ThrowTypeError%": A,
    "%TypedArray%": W,
    "%TypeError%": s,
    "%Uint8Array%": typeof Uint8Array > "u" ? e : Uint8Array,
    "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? e : Uint8ClampedArray,
    "%Uint16Array%": typeof Uint16Array > "u" ? e : Uint16Array,
    "%Uint32Array%": typeof Uint32Array > "u" ? e : Uint32Array,
    "%URIError%": p,
    "%WeakMap%": typeof WeakMap > "u" ? e : WeakMap,
    "%WeakRef%": typeof WeakRef > "u" ? e : WeakRef,
    "%WeakSet%": typeof WeakSet > "u" ? e : WeakSet,
    "%Function.prototype.call%": I,
    "%Function.prototype.apply%": F,
    "%Object.defineProperty%": E,
    "%Object.getPrototypeOf%": T,
    "%Math.abs%": l,
    "%Math.floor%": c,
    "%Math.max%": v,
    "%Math.min%": S,
    "%Math.pow%": b,
    "%Math.round%": y,
    "%Math.sign%": w,
    "%Reflect.getPrototypeOf%": q
  };
  if (P)
    try {
      null.error;
    } catch (H) {
      var Z = P(P(H));
      j["%Error.prototype%"] = Z;
    }
  var ce = function H(D) {
    var k;
    if (D === "%AsyncFunction%")
      k = m("async function () {}");
    else if (D === "%GeneratorFunction%")
      k = m("function* () {}");
    else if (D === "%AsyncGeneratorFunction%")
      k = m("async function* () {}");
    else if (D === "%AsyncGenerator%") {
      var B = H("%AsyncGeneratorFunction%");
      B && (k = B.prototype);
    } else if (D === "%AsyncIteratorPrototype%") {
      var z = H("%AsyncGenerator%");
      z && P && (k = P(z.prototype));
    }
    return j[D] = k, k;
  }, fe = {
    __proto__: null,
    "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
    "%ArrayPrototype%": ["Array", "prototype"],
    "%ArrayProto_entries%": ["Array", "prototype", "entries"],
    "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
    "%ArrayProto_keys%": ["Array", "prototype", "keys"],
    "%ArrayProto_values%": ["Array", "prototype", "values"],
    "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
    "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
    "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
    "%BooleanPrototype%": ["Boolean", "prototype"],
    "%DataViewPrototype%": ["DataView", "prototype"],
    "%DatePrototype%": ["Date", "prototype"],
    "%ErrorPrototype%": ["Error", "prototype"],
    "%EvalErrorPrototype%": ["EvalError", "prototype"],
    "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
    "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
    "%FunctionPrototype%": ["Function", "prototype"],
    "%Generator%": ["GeneratorFunction", "prototype"],
    "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
    "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
    "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
    "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
    "%JSONParse%": ["JSON", "parse"],
    "%JSONStringify%": ["JSON", "stringify"],
    "%MapPrototype%": ["Map", "prototype"],
    "%NumberPrototype%": ["Number", "prototype"],
    "%ObjectPrototype%": ["Object", "prototype"],
    "%ObjProto_toString%": ["Object", "prototype", "toString"],
    "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
    "%PromisePrototype%": ["Promise", "prototype"],
    "%PromiseProto_then%": ["Promise", "prototype", "then"],
    "%Promise_all%": ["Promise", "all"],
    "%Promise_reject%": ["Promise", "reject"],
    "%Promise_resolve%": ["Promise", "resolve"],
    "%RangeErrorPrototype%": ["RangeError", "prototype"],
    "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
    "%RegExpPrototype%": ["RegExp", "prototype"],
    "%SetPrototype%": ["Set", "prototype"],
    "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
    "%StringPrototype%": ["String", "prototype"],
    "%SymbolPrototype%": ["Symbol", "prototype"],
    "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
    "%TypedArrayPrototype%": ["TypedArray", "prototype"],
    "%TypeErrorPrototype%": ["TypeError", "prototype"],
    "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
    "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
    "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
    "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
    "%URIErrorPrototype%": ["URIError", "prototype"],
    "%WeakMapPrototype%": ["WeakMap", "prototype"],
    "%WeakSetPrototype%": ["WeakSet", "prototype"]
  }, _ = at(), Y = /* @__PURE__ */ Bi(), pe = _.call(I, Array.prototype.concat), Ee = _.call(F, Array.prototype.splice), ye = _.call(I, String.prototype.replace), he = _.call(I, String.prototype.slice), me = _.call(I, RegExp.prototype.exec), de = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, te = /\\(\\)?/g, ge = function(D) {
    var k = he(D, 0, 1), B = he(D, -1);
    if (k === "%" && B !== "%")
      throw new a("invalid intrinsic syntax, expected closing `%`");
    if (B === "%" && k !== "%")
      throw new a("invalid intrinsic syntax, expected opening `%`");
    var z = [];
    return ye(D, de, function(G, re, J, K) {
      z[z.length] = J ? ye(K, te, "$1") : re || G;
    }), z;
  }, ve = function(D, k) {
    var B = D, z;
    if (Y(fe, B) && (z = fe[B], B = "%" + z[0] + "%"), Y(j, B)) {
      var G = j[B];
      if (G === x && (G = ce(B)), typeof G > "u" && !k)
        throw new s("intrinsic " + D + " exists, but is not available. Please file an issue!");
      return {
        alias: z,
        name: B,
        value: G
      };
    }
    throw new a("intrinsic " + D + " does not exist!");
  };
  return Yt = function(D, k) {
    if (typeof D != "string" || D.length === 0)
      throw new s("intrinsic name must be a non-empty string");
    if (arguments.length > 1 && typeof k != "boolean")
      throw new s('"allowMissing" argument must be a boolean');
    if (me(/^%?[^%]*%?$/, D) === null)
      throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
    var B = ge(D), z = B.length > 0 ? B[0] : "", G = ve("%" + z + "%", k), re = G.name, J = G.value, K = !1, ne = G.alias;
    ne && (z = ne[0], Ee(B, pe([0, 1], ne)));
    for (var xe = 1, be = !0; xe < B.length; xe += 1) {
      var oe = B[xe], Te = he(oe, 0, 1), Ce = he(oe, -1);
      if ((Te === '"' || Te === "'" || Te === "`" || Ce === '"' || Ce === "'" || Ce === "`") && Te !== Ce)
        throw new a("property names with quotes must have matching quotes");
      if ((oe === "constructor" || !be) && (K = !0), z += "." + oe, re = "%" + z + "%", Y(j, re))
        J = j[re];
      else if (J != null) {
        if (!(oe in J)) {
          if (!k)
            throw new s("base intrinsic for " + D + " exists, but the property is not available.");
          return;
        }
        if (g && xe + 1 >= B.length) {
          var Fe = g(J, oe);
          be = !!Fe, be && "get" in Fe && !("originalValue" in Fe.get) ? J = Fe.get : J = J[oe];
        } else
          be = Y(J, oe), J = J[oe];
        be && !K && (j[re] = J);
      }
    }
    return J;
  }, Yt;
}
var er, Cn;
function bo() {
  if (Cn) return er;
  Cn = 1;
  var e = /* @__PURE__ */ br(), t = vo(), n = t([e("%String.prototype.indexOf%")]);
  return er = function(o, i) {
    var a = (
      /** @type {(this: unknown, ...args: unknown[]) => unknown} */
      e(o, !!i)
    );
    return typeof a == "function" && n(o, ".prototype.") > -1 ? t(
      /** @type {const} */
      [a]
    ) : a;
  }, er;
}
var tr, Fn;
function wo() {
  if (Fn) return tr;
  Fn = 1;
  var e = /* @__PURE__ */ br(), t = /* @__PURE__ */ bo(), n = /* @__PURE__ */ ot(), r = /* @__PURE__ */ Le(), o = e("%Map%", !0), i = t("Map.prototype.get", !0), a = t("Map.prototype.set", !0), s = t("Map.prototype.has", !0), p = t("Map.prototype.delete", !0), l = t("Map.prototype.size", !0);
  return tr = !!o && /** @type {Exclude<import('.'), false>} */
  function() {
    var v, S = {
      assert: function(b) {
        if (!S.has(b))
          throw new r("Side channel does not contain " + n(b));
      },
      delete: function(b) {
        if (v) {
          var y = p(v, b);
          return l(v) === 0 && (v = void 0), y;
        }
        return !1;
      },
      get: function(b) {
        if (v)
          return i(v, b);
      },
      has: function(b) {
        return v ? s(v, b) : !1;
      },
      set: function(b, y) {
        v || (v = new o()), a(v, b, y);
      }
    };
    return S;
  }, tr;
}
var rr, Nn;
function $i() {
  if (Nn) return rr;
  Nn = 1;
  var e = /* @__PURE__ */ br(), t = /* @__PURE__ */ bo(), n = /* @__PURE__ */ ot(), r = wo(), o = /* @__PURE__ */ Le(), i = e("%WeakMap%", !0), a = t("WeakMap.prototype.get", !0), s = t("WeakMap.prototype.set", !0), p = t("WeakMap.prototype.has", !0), l = t("WeakMap.prototype.delete", !0);
  return rr = i ? (
    /** @type {Exclude<import('.'), false>} */
    function() {
      var v, S, b = {
        assert: function(y) {
          if (!b.has(y))
            throw new o("Side channel does not contain " + n(y));
        },
        delete: function(y) {
          if (i && y && (typeof y == "object" || typeof y == "function")) {
            if (v)
              return l(v, y);
          } else if (r && S)
            return S.delete(y);
          return !1;
        },
        get: function(y) {
          return i && y && (typeof y == "object" || typeof y == "function") && v ? a(v, y) : S && S.get(y);
        },
        has: function(y) {
          return i && y && (typeof y == "object" || typeof y == "function") && v ? p(v, y) : !!S && S.has(y);
        },
        set: function(y, w) {
          i && y && (typeof y == "object" || typeof y == "function") ? (v || (v = new i()), s(v, y, w)) : r && (S || (S = r()), S.set(y, w));
        }
      };
      return b;
    }
  ) : r, rr;
}
var nr, _n;
function Ui() {
  if (_n) return nr;
  _n = 1;
  var e = /* @__PURE__ */ Le(), t = /* @__PURE__ */ ot(), n = di(), r = wo(), o = $i(), i = o || r || n;
  return nr = function() {
    var s, p = {
      assert: function(l) {
        if (!p.has(l))
          throw new e("Side channel does not contain " + t(l));
      },
      delete: function(l) {
        return !!s && s.delete(l);
      },
      get: function(l) {
        return s && s.get(l);
      },
      has: function(l) {
        return !!s && s.has(l);
      },
      set: function(l, c) {
        s || (s = i()), s.set(l, c);
      }
    };
    return p;
  }, nr;
}
var or, qn;
function wr() {
  if (qn) return or;
  qn = 1;
  var e = String.prototype.replace, t = /%20/g, n = {
    RFC1738: "RFC1738",
    RFC3986: "RFC3986"
  };
  return or = {
    default: n.RFC3986,
    formatters: {
      RFC1738: function(r) {
        return e.call(r, t, "+");
      },
      RFC3986: function(r) {
        return String(r);
      }
    },
    RFC1738: n.RFC1738,
    RFC3986: n.RFC3986
  }, or;
}
var ar, Dn;
function So() {
  if (Dn) return ar;
  Dn = 1;
  var e = /* @__PURE__ */ wr(), t = Object.prototype.hasOwnProperty, n = Array.isArray, r = function() {
    for (var u = [], m = 0; m < 256; ++m)
      u.push("%" + ((m < 16 ? "0" : "") + m.toString(16)).toUpperCase());
    return u;
  }(), o = function(m) {
    for (; m.length > 1; ) {
      var g = m.pop(), E = g.obj[g.prop];
      if (n(E)) {
        for (var O = [], A = 0; A < E.length; ++A)
          typeof E[A] < "u" && O.push(E[A]);
        g.obj[g.prop] = O;
      }
    }
  }, i = function(m, g) {
    for (var E = g && g.plainObjects ? { __proto__: null } : {}, O = 0; O < m.length; ++O)
      typeof m[O] < "u" && (E[O] = m[O]);
    return E;
  }, a = function u(m, g, E) {
    if (!g)
      return m;
    if (typeof g != "object" && typeof g != "function") {
      if (n(m))
        m.push(g);
      else if (m && typeof m == "object")
        (E && (E.plainObjects || E.allowPrototypes) || !t.call(Object.prototype, g)) && (m[g] = !0);
      else
        return [m, g];
      return m;
    }
    if (!m || typeof m != "object")
      return [m].concat(g);
    var O = m;
    return n(m) && !n(g) && (O = i(m, E)), n(m) && n(g) ? (g.forEach(function(A, R) {
      if (t.call(m, R)) {
        var P = m[R];
        P && typeof P == "object" && A && typeof A == "object" ? m[R] = u(P, A, E) : m.push(A);
      } else
        m[R] = A;
    }), m) : Object.keys(g).reduce(function(A, R) {
      var P = g[R];
      return t.call(A, R) ? A[R] = u(A[R], P, E) : A[R] = P, A;
    }, O);
  }, s = function(m, g) {
    return Object.keys(g).reduce(function(E, O) {
      return E[O] = g[O], E;
    }, m);
  }, p = function(u, m, g) {
    var E = u.replace(/\+/g, " ");
    if (g === "iso-8859-1")
      return E.replace(/%[0-9a-f]{2}/gi, unescape);
    try {
      return decodeURIComponent(E);
    } catch {
      return E;
    }
  }, l = 1024, c = function(m, g, E, O, A) {
    if (m.length === 0)
      return m;
    var R = m;
    if (typeof m == "symbol" ? R = Symbol.prototype.toString.call(m) : typeof m != "string" && (R = String(m)), E === "iso-8859-1")
      return escape(R).replace(/%u[0-9a-f]{4}/gi, function(W) {
        return "%26%23" + parseInt(W.slice(2), 16) + "%3B";
      });
    for (var P = "", T = 0; T < R.length; T += l) {
      for (var q = R.length >= l ? R.slice(T, T + l) : R, F = [], I = 0; I < q.length; ++I) {
        var x = q.charCodeAt(I);
        if (x === 45 || x === 46 || x === 95 || x === 126 || x >= 48 && x <= 57 || x >= 65 && x <= 90 || x >= 97 && x <= 122 || A === e.RFC1738 && (x === 40 || x === 41)) {
          F[F.length] = q.charAt(I);
          continue;
        }
        if (x < 128) {
          F[F.length] = r[x];
          continue;
        }
        if (x < 2048) {
          F[F.length] = r[192 | x >> 6] + r[128 | x & 63];
          continue;
        }
        if (x < 55296 || x >= 57344) {
          F[F.length] = r[224 | x >> 12] + r[128 | x >> 6 & 63] + r[128 | x & 63];
          continue;
        }
        I += 1, x = 65536 + ((x & 1023) << 10 | q.charCodeAt(I) & 1023), F[F.length] = r[240 | x >> 18] + r[128 | x >> 12 & 63] + r[128 | x >> 6 & 63] + r[128 | x & 63];
      }
      P += F.join("");
    }
    return P;
  }, v = function(m) {
    for (var g = [{ obj: { o: m }, prop: "o" }], E = [], O = 0; O < g.length; ++O)
      for (var A = g[O], R = A.obj[A.prop], P = Object.keys(R), T = 0; T < P.length; ++T) {
        var q = P[T], F = R[q];
        typeof F == "object" && F !== null && E.indexOf(F) === -1 && (g.push({ obj: R, prop: q }), E.push(F));
      }
    return o(g), m;
  }, S = function(m) {
    return Object.prototype.toString.call(m) === "[object RegExp]";
  }, b = function(m) {
    return !m || typeof m != "object" ? !1 : !!(m.constructor && m.constructor.isBuffer && m.constructor.isBuffer(m));
  }, y = function(m, g) {
    return [].concat(m, g);
  }, w = function(m, g) {
    if (n(m)) {
      for (var E = [], O = 0; O < m.length; O += 1)
        E.push(g(m[O]));
      return E;
    }
    return g(m);
  };
  return ar = {
    arrayToObject: i,
    assign: s,
    combine: y,
    compact: v,
    decode: p,
    encode: c,
    isBuffer: b,
    isRegExp: S,
    maybeMap: w,
    merge: a
  }, ar;
}
var ir, Ln;
function Mi() {
  if (Ln) return ir;
  Ln = 1;
  var e = Ui(), t = /* @__PURE__ */ So(), n = /* @__PURE__ */ wr(), r = Object.prototype.hasOwnProperty, o = {
    brackets: function(u) {
      return u + "[]";
    },
    comma: "comma",
    indices: function(u, m) {
      return u + "[" + m + "]";
    },
    repeat: function(u) {
      return u;
    }
  }, i = Array.isArray, a = Array.prototype.push, s = function(w, u) {
    a.apply(w, i(u) ? u : [u]);
  }, p = Date.prototype.toISOString, l = n.default, c = {
    addQueryPrefix: !1,
    allowDots: !1,
    allowEmptyArrays: !1,
    arrayFormat: "indices",
    charset: "utf-8",
    charsetSentinel: !1,
    commaRoundTrip: !1,
    delimiter: "&",
    encode: !0,
    encodeDotInKeys: !1,
    encoder: t.encode,
    encodeValuesOnly: !1,
    filter: void 0,
    format: l,
    formatter: n.formatters[l],
    // deprecated
    indices: !1,
    serializeDate: function(u) {
      return p.call(u);
    },
    skipNulls: !1,
    strictNullHandling: !1
  }, v = function(u) {
    return typeof u == "string" || typeof u == "number" || typeof u == "boolean" || typeof u == "symbol" || typeof u == "bigint";
  }, S = {}, b = function w(u, m, g, E, O, A, R, P, T, q, F, I, x, W, j, Z, ce, fe) {
    for (var _ = u, Y = fe, pe = 0, Ee = !1; (Y = Y.get(S)) !== void 0 && !Ee; ) {
      var ye = Y.get(u);
      if (pe += 1, typeof ye < "u") {
        if (ye === pe)
          throw new RangeError("Cyclic object value");
        Ee = !0;
      }
      typeof Y.get(S) > "u" && (pe = 0);
    }
    if (typeof q == "function" ? _ = q(m, _) : _ instanceof Date ? _ = x(_) : g === "comma" && i(_) && (_ = t.maybeMap(_, function(re) {
      return re instanceof Date ? x(re) : re;
    })), _ === null) {
      if (A)
        return T && !Z ? T(m, c.encoder, ce, "key", W) : m;
      _ = "";
    }
    if (v(_) || t.isBuffer(_)) {
      if (T) {
        var he = Z ? m : T(m, c.encoder, ce, "key", W);
        return [j(he) + "=" + j(T(_, c.encoder, ce, "value", W))];
      }
      return [j(m) + "=" + j(String(_))];
    }
    var me = [];
    if (typeof _ > "u")
      return me;
    var de;
    if (g === "comma" && i(_))
      Z && T && (_ = t.maybeMap(_, T)), de = [{ value: _.length > 0 ? _.join(",") || null : void 0 }];
    else if (i(q))
      de = q;
    else {
      var te = Object.keys(_);
      de = F ? te.sort(F) : te;
    }
    var ge = P ? String(m).replace(/\./g, "%2E") : String(m), ve = E && i(_) && _.length === 1 ? ge + "[]" : ge;
    if (O && i(_) && _.length === 0)
      return ve + "[]";
    for (var H = 0; H < de.length; ++H) {
      var D = de[H], k = typeof D == "object" && D && typeof D.value < "u" ? D.value : _[D];
      if (!(R && k === null)) {
        var B = I && P ? String(D).replace(/\./g, "%2E") : String(D), z = i(_) ? typeof g == "function" ? g(ve, B) : ve : ve + (I ? "." + B : "[" + B + "]");
        fe.set(u, pe);
        var G = e();
        G.set(S, fe), s(me, w(
          k,
          z,
          g,
          E,
          O,
          A,
          R,
          P,
          g === "comma" && Z && i(_) ? null : T,
          q,
          F,
          I,
          x,
          W,
          j,
          Z,
          ce,
          G
        ));
      }
    }
    return me;
  }, y = function(u) {
    if (!u)
      return c;
    if (typeof u.allowEmptyArrays < "u" && typeof u.allowEmptyArrays != "boolean")
      throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
    if (typeof u.encodeDotInKeys < "u" && typeof u.encodeDotInKeys != "boolean")
      throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
    if (u.encoder !== null && typeof u.encoder < "u" && typeof u.encoder != "function")
      throw new TypeError("Encoder has to be a function.");
    var m = u.charset || c.charset;
    if (typeof u.charset < "u" && u.charset !== "utf-8" && u.charset !== "iso-8859-1")
      throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
    var g = n.default;
    if (typeof u.format < "u") {
      if (!r.call(n.formatters, u.format))
        throw new TypeError("Unknown format option provided.");
      g = u.format;
    }
    var E = n.formatters[g], O = c.filter;
    (typeof u.filter == "function" || i(u.filter)) && (O = u.filter);
    var A;
    if (u.arrayFormat in o ? A = u.arrayFormat : "indices" in u ? A = u.indices ? "indices" : "repeat" : A = c.arrayFormat, "commaRoundTrip" in u && typeof u.commaRoundTrip != "boolean")
      throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
    var R = typeof u.allowDots > "u" ? u.encodeDotInKeys === !0 ? !0 : c.allowDots : !!u.allowDots;
    return {
      addQueryPrefix: typeof u.addQueryPrefix == "boolean" ? u.addQueryPrefix : c.addQueryPrefix,
      allowDots: R,
      allowEmptyArrays: typeof u.allowEmptyArrays == "boolean" ? !!u.allowEmptyArrays : c.allowEmptyArrays,
      arrayFormat: A,
      charset: m,
      charsetSentinel: typeof u.charsetSentinel == "boolean" ? u.charsetSentinel : c.charsetSentinel,
      commaRoundTrip: !!u.commaRoundTrip,
      delimiter: typeof u.delimiter > "u" ? c.delimiter : u.delimiter,
      encode: typeof u.encode == "boolean" ? u.encode : c.encode,
      encodeDotInKeys: typeof u.encodeDotInKeys == "boolean" ? u.encodeDotInKeys : c.encodeDotInKeys,
      encoder: typeof u.encoder == "function" ? u.encoder : c.encoder,
      encodeValuesOnly: typeof u.encodeValuesOnly == "boolean" ? u.encodeValuesOnly : c.encodeValuesOnly,
      filter: O,
      format: g,
      formatter: E,
      serializeDate: typeof u.serializeDate == "function" ? u.serializeDate : c.serializeDate,
      skipNulls: typeof u.skipNulls == "boolean" ? u.skipNulls : c.skipNulls,
      sort: typeof u.sort == "function" ? u.sort : null,
      strictNullHandling: typeof u.strictNullHandling == "boolean" ? u.strictNullHandling : c.strictNullHandling
    };
  };
  return ir = function(w, u) {
    var m = w, g = y(u), E, O;
    typeof g.filter == "function" ? (O = g.filter, m = O("", m)) : i(g.filter) && (O = g.filter, E = O);
    var A = [];
    if (typeof m != "object" || m === null)
      return "";
    var R = o[g.arrayFormat], P = R === "comma" && g.commaRoundTrip;
    E || (E = Object.keys(m)), g.sort && E.sort(g.sort);
    for (var T = e(), q = 0; q < E.length; ++q) {
      var F = E[q], I = m[F];
      g.skipNulls && I === null || s(A, b(
        I,
        F,
        R,
        P,
        g.allowEmptyArrays,
        g.strictNullHandling,
        g.skipNulls,
        g.encodeDotInKeys,
        g.encode ? g.encoder : null,
        g.filter,
        g.sort,
        g.allowDots,
        g.serializeDate,
        g.format,
        g.formatter,
        g.encodeValuesOnly,
        g.charset,
        T
      ));
    }
    var x = A.join(g.delimiter), W = g.addQueryPrefix === !0 ? "?" : "";
    return g.charsetSentinel && (g.charset === "iso-8859-1" ? W += "utf8=%26%2310003%3B&" : W += "utf8=%E2%9C%93&"), x.length > 0 ? W + x : "";
  }, ir;
}
var sr, In;
function ki() {
  if (In) return sr;
  In = 1;
  var e = /* @__PURE__ */ So(), t = Object.prototype.hasOwnProperty, n = Array.isArray, r = {
    allowDots: !1,
    allowEmptyArrays: !1,
    allowPrototypes: !1,
    allowSparse: !1,
    arrayLimit: 20,
    charset: "utf-8",
    charsetSentinel: !1,
    comma: !1,
    decodeDotInKeys: !1,
    decoder: e.decode,
    delimiter: "&",
    depth: 5,
    duplicates: "combine",
    ignoreQueryPrefix: !1,
    interpretNumericEntities: !1,
    parameterLimit: 1e3,
    parseArrays: !0,
    plainObjects: !1,
    strictDepth: !1,
    strictNullHandling: !1,
    throwOnLimitExceeded: !1
  }, o = function(S) {
    return S.replace(/&#(\d+);/g, function(b, y) {
      return String.fromCharCode(parseInt(y, 10));
    });
  }, i = function(S, b, y) {
    if (S && typeof S == "string" && b.comma && S.indexOf(",") > -1)
      return S.split(",");
    if (b.throwOnLimitExceeded && y >= b.arrayLimit)
      throw new RangeError("Array limit exceeded. Only " + b.arrayLimit + " element" + (b.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
    return S;
  }, a = "utf8=%26%2310003%3B", s = "utf8=%E2%9C%93", p = function(b, y) {
    var w = { __proto__: null }, u = y.ignoreQueryPrefix ? b.replace(/^\?/, "") : b;
    u = u.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
    var m = y.parameterLimit === 1 / 0 ? void 0 : y.parameterLimit, g = u.split(
      y.delimiter,
      y.throwOnLimitExceeded ? m + 1 : m
    );
    if (y.throwOnLimitExceeded && g.length > m)
      throw new RangeError("Parameter limit exceeded. Only " + m + " parameter" + (m === 1 ? "" : "s") + " allowed.");
    var E = -1, O, A = y.charset;
    if (y.charsetSentinel)
      for (O = 0; O < g.length; ++O)
        g[O].indexOf("utf8=") === 0 && (g[O] === s ? A = "utf-8" : g[O] === a && (A = "iso-8859-1"), E = O, O = g.length);
    for (O = 0; O < g.length; ++O)
      if (O !== E) {
        var R = g[O], P = R.indexOf("]="), T = P === -1 ? R.indexOf("=") : P + 1, q, F;
        T === -1 ? (q = y.decoder(R, r.decoder, A, "key"), F = y.strictNullHandling ? null : "") : (q = y.decoder(R.slice(0, T), r.decoder, A, "key"), F = e.maybeMap(
          i(
            R.slice(T + 1),
            y,
            n(w[q]) ? w[q].length : 0
          ),
          function(x) {
            return y.decoder(x, r.decoder, A, "value");
          }
        )), F && y.interpretNumericEntities && A === "iso-8859-1" && (F = o(String(F))), R.indexOf("[]=") > -1 && (F = n(F) ? [F] : F);
        var I = t.call(w, q);
        I && y.duplicates === "combine" ? w[q] = e.combine(w[q], F) : (!I || y.duplicates === "last") && (w[q] = F);
      }
    return w;
  }, l = function(S, b, y, w) {
    var u = 0;
    if (S.length > 0 && S[S.length - 1] === "[]") {
      var m = S.slice(0, -1).join("");
      u = Array.isArray(b) && b[m] ? b[m].length : 0;
    }
    for (var g = w ? b : i(b, y, u), E = S.length - 1; E >= 0; --E) {
      var O, A = S[E];
      if (A === "[]" && y.parseArrays)
        O = y.allowEmptyArrays && (g === "" || y.strictNullHandling && g === null) ? [] : e.combine([], g);
      else {
        O = y.plainObjects ? { __proto__: null } : {};
        var R = A.charAt(0) === "[" && A.charAt(A.length - 1) === "]" ? A.slice(1, -1) : A, P = y.decodeDotInKeys ? R.replace(/%2E/g, ".") : R, T = parseInt(P, 10);
        !y.parseArrays && P === "" ? O = { 0: g } : !isNaN(T) && A !== P && String(T) === P && T >= 0 && y.parseArrays && T <= y.arrayLimit ? (O = [], O[T] = g) : P !== "__proto__" && (O[P] = g);
      }
      g = O;
    }
    return g;
  }, c = function(b, y, w, u) {
    if (b) {
      var m = w.allowDots ? b.replace(/\.([^.[]+)/g, "[$1]") : b, g = /(\[[^[\]]*])/, E = /(\[[^[\]]*])/g, O = w.depth > 0 && g.exec(m), A = O ? m.slice(0, O.index) : m, R = [];
      if (A) {
        if (!w.plainObjects && t.call(Object.prototype, A) && !w.allowPrototypes)
          return;
        R.push(A);
      }
      for (var P = 0; w.depth > 0 && (O = E.exec(m)) !== null && P < w.depth; ) {
        if (P += 1, !w.plainObjects && t.call(Object.prototype, O[1].slice(1, -1)) && !w.allowPrototypes)
          return;
        R.push(O[1]);
      }
      if (O) {
        if (w.strictDepth === !0)
          throw new RangeError("Input depth exceeded depth option of " + w.depth + " and strictDepth is true");
        R.push("[" + m.slice(O.index) + "]");
      }
      return l(R, y, w, u);
    }
  }, v = function(b) {
    if (!b)
      return r;
    if (typeof b.allowEmptyArrays < "u" && typeof b.allowEmptyArrays != "boolean")
      throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
    if (typeof b.decodeDotInKeys < "u" && typeof b.decodeDotInKeys != "boolean")
      throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
    if (b.decoder !== null && typeof b.decoder < "u" && typeof b.decoder != "function")
      throw new TypeError("Decoder has to be a function.");
    if (typeof b.charset < "u" && b.charset !== "utf-8" && b.charset !== "iso-8859-1")
      throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
    if (typeof b.throwOnLimitExceeded < "u" && typeof b.throwOnLimitExceeded != "boolean")
      throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
    var y = typeof b.charset > "u" ? r.charset : b.charset, w = typeof b.duplicates > "u" ? r.duplicates : b.duplicates;
    if (w !== "combine" && w !== "first" && w !== "last")
      throw new TypeError("The duplicates option must be either combine, first, or last");
    var u = typeof b.allowDots > "u" ? b.decodeDotInKeys === !0 ? !0 : r.allowDots : !!b.allowDots;
    return {
      allowDots: u,
      allowEmptyArrays: typeof b.allowEmptyArrays == "boolean" ? !!b.allowEmptyArrays : r.allowEmptyArrays,
      allowPrototypes: typeof b.allowPrototypes == "boolean" ? b.allowPrototypes : r.allowPrototypes,
      allowSparse: typeof b.allowSparse == "boolean" ? b.allowSparse : r.allowSparse,
      arrayLimit: typeof b.arrayLimit == "number" ? b.arrayLimit : r.arrayLimit,
      charset: y,
      charsetSentinel: typeof b.charsetSentinel == "boolean" ? b.charsetSentinel : r.charsetSentinel,
      comma: typeof b.comma == "boolean" ? b.comma : r.comma,
      decodeDotInKeys: typeof b.decodeDotInKeys == "boolean" ? b.decodeDotInKeys : r.decodeDotInKeys,
      decoder: typeof b.decoder == "function" ? b.decoder : r.decoder,
      delimiter: typeof b.delimiter == "string" || e.isRegExp(b.delimiter) ? b.delimiter : r.delimiter,
      // eslint-disable-next-line no-implicit-coercion, no-extra-parens
      depth: typeof b.depth == "number" || b.depth === !1 ? +b.depth : r.depth,
      duplicates: w,
      ignoreQueryPrefix: b.ignoreQueryPrefix === !0,
      interpretNumericEntities: typeof b.interpretNumericEntities == "boolean" ? b.interpretNumericEntities : r.interpretNumericEntities,
      parameterLimit: typeof b.parameterLimit == "number" ? b.parameterLimit : r.parameterLimit,
      parseArrays: b.parseArrays !== !1,
      plainObjects: typeof b.plainObjects == "boolean" ? b.plainObjects : r.plainObjects,
      strictDepth: typeof b.strictDepth == "boolean" ? !!b.strictDepth : r.strictDepth,
      strictNullHandling: typeof b.strictNullHandling == "boolean" ? b.strictNullHandling : r.strictNullHandling,
      throwOnLimitExceeded: typeof b.throwOnLimitExceeded == "boolean" ? b.throwOnLimitExceeded : !1
    };
  };
  return sr = function(S, b) {
    var y = v(b);
    if (S === "" || S === null || typeof S > "u")
      return y.plainObjects ? { __proto__: null } : {};
    for (var w = typeof S == "string" ? p(S, y) : S, u = y.plainObjects ? { __proto__: null } : {}, m = Object.keys(w), g = 0; g < m.length; ++g) {
      var E = m[g], O = c(E, w[E], y, typeof S == "string");
      u = e.merge(u, O, y);
    }
    return y.allowSparse === !0 ? u : e.compact(u);
  }, sr;
}
var lr, Bn;
function ji() {
  if (Bn) return lr;
  Bn = 1;
  var e = /* @__PURE__ */ Mi(), t = /* @__PURE__ */ ki(), n = /* @__PURE__ */ wr();
  return lr = {
    formats: n,
    parse: t,
    stringify: e
  }, lr;
}
var zi = /* @__PURE__ */ ji();
const Eo = /* @__PURE__ */ li(zi);
function cs(e, ...t) {
  let n = null, r = null, o = "json", i = null;
  return t.length && (t.forEach((a, s) => {
    s === 0 ? typeof a == "object" ? n = a : typeof a == "string" ? a.toLowerCase() === "blob" ? o = "blob" : a.toLowerCase() === "json" || a.toLowerCase() === "query" || a.toLowerCase() === "file" || a.toLowerCase() === "data" || a.toLowerCase() === "form-data" || a.toLowerCase() === "formdata" ? r = a.toLowerCase() : console.error("ezAxios: 请求参数仅支持 Object、Array、File 类型") : n && console.error("ezAxios: 请求参数仅支持 Object、Array、File 类型") : s < 4 ? a && (Object.prototype.toString.call(a) == "[object Object]" ? i = a : typeof a == "string" ? a.toLowerCase() === "blob" ? o = "blob" : a.toLowerCase() === "json" || a.toLowerCase() === "query" || a.toLowerCase() === "file" || a.toLowerCase() === "data" || a.toLowerCase() === "form-data" || a.toLowerCase() === "formdata" ? r = a.toLowerCase() : console.warn("ezAxios: 存在无法处理的参数类型,这可能会影响您的程序") : console.warn(`ezAxios: 存在无法处理的参数类型 ${a},这可能会影响您的程序`)) : console.warn("ezAxios: 接收到多余参数,已忽略");
  }), o != "json" && r == "query" && console.warn("ezAxios: 请参数类型为query时,设置返回值类型无效")), new Promise((a, s) => {
    if (r === "query")
      se(i).post(e, null, { params: n, signal: i?.signal }).then((p) => {
        a(p);
      }).catch((p) => {
        s(p);
      });
    else if (r === "file") {
      const p = new FormData();
      if (n instanceof File)
        p.append("file", n);
      else
        for (const l in n)
          if (n[l] instanceof File)
            p.append(`${l}`, n[l]);
          else if (Object.prototype.toString.call(n[l]) == "[object Array]") {
            const c = n[l].filter((v) => v instanceof File);
            c.length && c.length <= n[l].length ? (c.forEach((v, S) => {
              p.append(`${l}[${S}]`, v);
            }), c.length < n[l].length && console.warn(`ezAxios: 数组${l}存在非文件类型对象,已被忽略`)) : p.append(`${l}`, JSON.stringify(n[l]));
          } else typeof n[l] == "string" ? p.append(`${l}`, n[l]) : p.append(`${l}`, JSON.stringify(n[l]));
      se(i).post(e, p, { responseType: o, signal: i?.signal }).then((l) => {
        a(l);
      }).catch((l) => {
        s(l);
      });
    } else r === "data" || r === "form-data" || r === "formdata" ? se(i).post(e, Eo.stringify(n), { responseType: o, signal: i?.signal }).then((p) => {
      a(p);
    }).catch((p) => {
      s(p);
    }) : se(i).post(e, n, { responseType: o, signal: i?.signal }).then((p) => {
      a(p);
    }).catch((p) => {
      s(p);
    });
  });
}
function fs(e, ...t) {
  let n = null, r = null, o = "json", i = null;
  return t.length && (t.forEach((a, s) => {
    s === 0 ? typeof a == "object" ? n = a : typeof a == "string" ? a.toLowerCase() === "blob" ? o = "blob" : a.toLowerCase() === "json" || a.toLowerCase() === "query" || a.toLowerCase() === "file" || a.toLowerCase() === "data" || a.toLowerCase() === "form-data" || a.toLowerCase() === "formdata" ? r = a.toLowerCase() : console.error("ezAxios: 请求参数仅支持 Object、Array、File 类型") : n && console.error("ezAxios: 请求参数仅支持 Object、Array、File 类型") : s < 4 ? a && (Object.prototype.toString.call(a) == "[object Object]" ? i = a : typeof a == "string" ? a.toLowerCase() === "blob" ? o = "blob" : a.toLowerCase() === "json" || a.toLowerCase() === "query" || a.toLowerCase() === "file" || a.toLowerCase() === "data" || a.toLowerCase() === "form-data" || a.toLowerCase() === "formdata" ? r = a.toLowerCase() : console.warn("ezAxios: 存在无法处理的参数类型,这可能会影响您的程序") : console.warn("ezAxios: 存在无法处理的参数类型,这可能会影响您的程序")) : console.warn("ezAxios: 接收到多余参数,已忽略");
  }), o != "json" && r == "query" && console.warn("ezAxios: 请参数类型为query时,设置返回值类型无效")), new Promise((a, s) => {
    if (r === "query")
      se(i).put(e, null, { params: n, signal: i?.signal }).then((p) => {
        a(p);
      }).catch((p) => {
        s(p);
      });
    else if (r === "file") {
      const p = new FormData();
      if (n instanceof File)
        p.append("file", n);
      else
        for (const l in n)
          if (n[l] instanceof File)
            p.append(`${l}`, n[l]);
          else if (Object.prototype.toString.call(n[l]) == "[object Array]") {
            const c = n[l].filter((v) => v instanceof File);
            c.length && c.length <= n[l].length ? (c.forEach((v, S) => {
              p.append(`${l}[${S}]`, v);
            }), c.length < n[l].length && console.warn(`ezAxios: 数组${l}存在非文件类型对象,已被忽略`)) : p.append(`${l}`, JSON.stringify(n[l]));
          } else typeof n[l] == "string" ? p.append(`${l}`, n[l]) : p.append(`${l}`, JSON.stringify(n[l]));
      se(i).put(e, p, { responseType: o, signal: i?.signal }).then((l) => {
        a(l);
      }).catch((l) => {
        s(l);
      });
    } else r === "data" || r === "form-data" || r === "formdata" ? se(i).put(e, Eo.stringify(n), { responseType: o, signal: i?.signal }).then((p) => {
      a(p);
    }).catch((p) => {
      s(p);
    }) : se(i).put(e, n, { responseType: o, signal: i?.signal }).then((p) => {
      a(p);
    }).catch((p) => {
      s(p);
    });
  });
}
function ps(e, ...t) {
  let n = null, r = null, o = null;
  return t.length && t.forEach((i, a) => {
    a === 0 ? typeof i == "object" ? n = i : typeof i == "string" ? i.toLowerCase() === "query" || i.toLowerCase() === "json" ? r = i.toLowerCase() : console.error("ezAxios: 请求参数仅支持 Object、Array 类型") : n && console.error("ezAxios: 请求参数仅支持 Object、Array 类型") : a < 3 ? i && (Object.prototype.toString.call(i) == "[object Object]" ? o = i : typeof i == "string" && (i.toLowerCase() === "query" || i.toLowerCase() === "json") ? r = i.toLowerCase() : console.warn("ezAxios: 存在无法处理的参数类型,这可能会影响您的程序")) : console.warn("ezAxios: 接收到多余参数,已忽略");
  }), new Promise((i, a) => {
    r === "query" ? se(o).delete(e, { params: n, signal: o?.signal }).then((s) => {
      i(s);
    }).catch((s) => {
      a(s);
    }) : se(o).delete(e, { data: n, signal: o?.signal }).then((s) => {
      i(s);
    }).catch((s) => {
      a(s);
    });
  });
}
export {
  ie as Loading,
  Hi as default,
  ps as del,
  us as get,
  cs as post,
  fs as put
};