import { w as Pt, g as $t, u as He } from "./index-d0388830.js";
function Be(t) {
  return t === void 0;
}
function Ft(t) {
  return t === null;
}
function It(t) {
  return typeof t == "boolean";
}
function pe(t) {
  return t === Object(t);
}
function Ge(t) {
  return Array.isArray(t);
}
function Nt(t) {
  return t instanceof Date;
}
function ct(t, e) {
  return e ? pe(t) && !Be(t.uri) : pe(t) && typeof t.size == "number" && typeof t.type == "string" && typeof t.slice == "function";
}
function Rt(t, e) {
  return ct(t, e) && typeof t.name == "string" && (pe(t.lastModifiedDate) || typeof t.lastModified == "number");
}
function C(t) {
  return Be(t) ? !1 : t;
}
function $e(t, e, r, n) {
  e = e || {}, r = r || new FormData(), e.indices = C(e.indices), e.nullsAsUndefineds = C(e.nullsAsUndefineds), e.booleansAsIntegers = C(e.booleansAsIntegers), e.allowEmptyArrays = C(e.allowEmptyArrays), e.noAttributesWithArrayNotation = C(
    e.noAttributesWithArrayNotation
  ), e.noFilesWithArrayNotation = C(e.noFilesWithArrayNotation), e.dotsForObjectNotation = C(e.dotsForObjectNotation);
  const i = typeof r.getParts == "function";
  return Be(t) || (Ft(t) ? e.nullsAsUndefineds || r.append(n, "") : It(t) ? e.booleansAsIntegers ? r.append(n, t ? 1 : 0) : r.append(n, t) : Ge(t) ? t.length ? t.forEach((o, l) => {
    let a = n + "[" + (e.indices ? l : "") + "]";
    (e.noAttributesWithArrayNotation || e.noFilesWithArrayNotation && Rt(o, i)) && (a = n), $e(o, e, r, a);
  }) : e.allowEmptyArrays && r.append(e.noAttributesWithArrayNotation ? n : n + "[]", "") : Nt(t) ? r.append(n, t.toISOString()) : pe(t) && !ct(t, i) ? Object.keys(t).forEach((o) => {
    const l = t[o];
    if (Ge(l))
      for (; o.length > 2 && o.lastIndexOf("[]") === o.length - 2; )
        o = o.substring(0, o.length - 2);
    const a = n ? e.dotsForObjectNotation ? n + "." + o : n + "[" + o + "]" : o;
    $e(l, e, r, a);
  }) : r.append(n, t)), r;
}
var Mt = {
  serialize: $e
}, Tt = function() {
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
    return !1;
  if (typeof Symbol.iterator == "symbol")
    return !0;
  var e = {}, r = Symbol("test"), n = Object(r);
  if (typeof r == "string" || Object.prototype.toString.call(r) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
    return !1;
  var i = 42;
  e[r] = i;
  for (r in e)
    return !1;
  if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
    return !1;
  var o = Object.getOwnPropertySymbols(e);
  if (o.length !== 1 || o[0] !== r || !Object.prototype.propertyIsEnumerable.call(e, r))
    return !1;
  if (typeof Object.getOwnPropertyDescriptor == "function") {
    var l = Object.getOwnPropertyDescriptor(e, r);
    if (l.value !== i || l.enumerable !== !0)
      return !1;
  }
  return !0;
}, qe = typeof Symbol < "u" && Symbol, Bt = Tt, Dt = function() {
  return typeof qe != "function" || typeof Symbol != "function" || typeof qe("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Bt();
}, Qe = {
  foo: {}
}, Ct = Object, Ut = function() {
  return { __proto__: Qe }.foo === Qe.foo && !({ __proto__: null } instanceof Ct);
}, _t = "Function.prototype.bind called on incompatible ", ve = Array.prototype.slice, Lt = Object.prototype.toString, Wt = "[object Function]", kt = function(e) {
  var r = this;
  if (typeof r != "function" || Lt.call(r) !== Wt)
    throw new TypeError(_t + r);
  for (var n = ve.call(arguments, 1), i, o = function() {
    if (this instanceof i) {
      var c = r.apply(
        this,
        n.concat(ve.call(arguments))
      );
      return Object(c) === c ? c : this;
    } else
      return r.apply(
        e,
        n.concat(ve.call(arguments))
      );
  }, l = Math.max(0, r.length - n.length), a = [], u = 0; u < l; u++)
    a.push("$" + u);
  if (i = Function("binder", "return function (" + a.join(",") + "){ return binder.apply(this,arguments); }")(o), r.prototype) {
    var f = function() {
    };
    f.prototype = r.prototype, i.prototype = new f(), f.prototype = null;
  }
  return i;
}, zt = kt, De = Function.prototype.bind || zt, Ht = De, Gt = Ht.call(Function.call, Object.prototype.hasOwnProperty), d, V = SyntaxError, st = Function, J = TypeError, ge = function(t) {
  try {
    return st('"use strict"; return (' + t + ").constructor;")();
  } catch {
  }
}, _ = Object.getOwnPropertyDescriptor;
if (_)
  try {
    _({}, "");
  } catch {
    _ = null;
  }
var Se = function() {
  throw new J();
}, qt = _ ? function() {
  try {
    return arguments.callee, Se;
  } catch {
    try {
      return _(arguments, "callee").get;
    } catch {
      return Se;
    }
  }
}() : Se, q = Dt(), Qt = Ut(), g = Object.getPrototypeOf || (Qt ? function(t) {
  return t.__proto__;
} : null), Q = {}, Jt = typeof Uint8Array > "u" || !g ? d : g(Uint8Array), L = {
  "%AggregateError%": typeof AggregateError > "u" ? d : AggregateError,
  "%Array%": Array,
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? d : ArrayBuffer,
  "%ArrayIteratorPrototype%": q && g ? g([][Symbol.iterator]()) : d,
  "%AsyncFromSyncIteratorPrototype%": d,
  "%AsyncFunction%": Q,
  "%AsyncGenerator%": Q,
  "%AsyncGeneratorFunction%": Q,
  "%AsyncIteratorPrototype%": Q,
  "%Atomics%": typeof Atomics > "u" ? d : Atomics,
  "%BigInt%": typeof BigInt > "u" ? d : BigInt,
  "%BigInt64Array%": typeof BigInt64Array > "u" ? d : BigInt64Array,
  "%BigUint64Array%": typeof BigUint64Array > "u" ? d : BigUint64Array,
  "%Boolean%": Boolean,
  "%DataView%": typeof DataView > "u" ? d : DataView,
  "%Date%": Date,
  "%decodeURI%": decodeURI,
  "%decodeURIComponent%": decodeURIComponent,
  "%encodeURI%": encodeURI,
  "%encodeURIComponent%": encodeURIComponent,
  "%Error%": Error,
  "%eval%": eval,
  // eslint-disable-line no-eval
  "%EvalError%": EvalError,
  "%Float32Array%": typeof Float32Array > "u" ? d : Float32Array,
  "%Float64Array%": typeof Float64Array > "u" ? d : Float64Array,
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? d : FinalizationRegistry,
  "%Function%": st,
  "%GeneratorFunction%": Q,
  "%Int8Array%": typeof Int8Array > "u" ? d : Int8Array,
  "%Int16Array%": typeof Int16Array > "u" ? d : Int16Array,
  "%Int32Array%": typeof Int32Array > "u" ? d : Int32Array,
  "%isFinite%": isFinite,
  "%isNaN%": isNaN,
  "%IteratorPrototype%": q && g ? g(g([][Symbol.iterator]())) : d,
  "%JSON%": typeof JSON == "object" ? JSON : d,
  "%Map%": typeof Map > "u" ? d : Map,
  "%MapIteratorPrototype%": typeof Map > "u" || !q || !g ? d : g((/* @__PURE__ */ new Map())[Symbol.iterator]()),
  "%Math%": Math,
  "%Number%": Number,
  "%Object%": Object,
  "%parseFloat%": parseFloat,
  "%parseInt%": parseInt,
  "%Promise%": typeof Promise > "u" ? d : Promise,
  "%Proxy%": typeof Proxy > "u" ? d : Proxy,
  "%RangeError%": RangeError,
  "%ReferenceError%": ReferenceError,
  "%Reflect%": typeof Reflect > "u" ? d : Reflect,
  "%RegExp%": RegExp,
  "%Set%": typeof Set > "u" ? d : Set,
  "%SetIteratorPrototype%": typeof Set > "u" || !q || !g ? d : g((/* @__PURE__ */ new Set())[Symbol.iterator]()),
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? d : SharedArrayBuffer,
  "%String%": String,
  "%StringIteratorPrototype%": q && g ? g(""[Symbol.iterator]()) : d,
  "%Symbol%": q ? Symbol : d,
  "%SyntaxError%": V,
  "%ThrowTypeError%": qt,
  "%TypedArray%": Jt,
  "%TypeError%": J,
  "%Uint8Array%": typeof Uint8Array > "u" ? d : Uint8Array,
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? d : Uint8ClampedArray,
  "%Uint16Array%": typeof Uint16Array > "u" ? d : Uint16Array,
  "%Uint32Array%": typeof Uint32Array > "u" ? d : Uint32Array,
  "%URIError%": URIError,
  "%WeakMap%": typeof WeakMap > "u" ? d : WeakMap,
  "%WeakRef%": typeof WeakRef > "u" ? d : WeakRef,
  "%WeakSet%": typeof WeakSet > "u" ? d : WeakSet
};
if (g)
  try {
    null.error;
  } catch (t) {
    var Vt = g(g(t));
    L["%Error.prototype%"] = Vt;
  }
var Zt = function t(e) {
  var r;
  if (e === "%AsyncFunction%")
    r = ge("async function () {}");
  else if (e === "%GeneratorFunction%")
    r = ge("function* () {}");
  else if (e === "%AsyncGeneratorFunction%")
    r = ge("async function* () {}");
  else if (e === "%AsyncGenerator%") {
    var n = t("%AsyncGeneratorFunction%");
    n && (r = n.prototype);
  } else if (e === "%AsyncIteratorPrototype%") {
    var i = t("%AsyncGenerator%");
    i && g && (r = g(i.prototype));
  }
  return L[e] = r, r;
}, Je = {
  "%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"]
}, ie = De, ye = Gt, Kt = ie.call(Function.call, Array.prototype.concat), Yt = ie.call(Function.apply, Array.prototype.splice), Ve = ie.call(Function.call, String.prototype.replace), de = ie.call(Function.call, String.prototype.slice), Xt = ie.call(Function.call, RegExp.prototype.exec), jt = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, er = /\\(\\)?/g, tr = function(e) {
  var r = de(e, 0, 1), n = de(e, -1);
  if (r === "%" && n !== "%")
    throw new V("invalid intrinsic syntax, expected closing `%`");
  if (n === "%" && r !== "%")
    throw new V("invalid intrinsic syntax, expected opening `%`");
  var i = [];
  return Ve(e, jt, function(o, l, a, u) {
    i[i.length] = a ? Ve(u, er, "$1") : l || o;
  }), i;
}, rr = function(e, r) {
  var n = e, i;
  if (ye(Je, n) && (i = Je[n], n = "%" + i[0] + "%"), ye(L, n)) {
    var o = L[n];
    if (o === Q && (o = Zt(n)), typeof o > "u" && !r)
      throw new J("intrinsic " + e + " exists, but is not available. Please file an issue!");
    return {
      alias: i,
      name: n,
      value: o
    };
  }
  throw new V("intrinsic " + e + " does not exist!");
}, Ce = function(e, r) {
  if (typeof e != "string" || e.length === 0)
    throw new J("intrinsic name must be a non-empty string");
  if (arguments.length > 1 && typeof r != "boolean")
    throw new J('"allowMissing" argument must be a boolean');
  if (Xt(/^%?[^%]*%?$/, e) === null)
    throw new V("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
  var n = tr(e), i = n.length > 0 ? n[0] : "", o = rr("%" + i + "%", r), l = o.name, a = o.value, u = !1, f = o.alias;
  f && (i = f[0], Yt(n, Kt([0, 1], f)));
  for (var c = 1, y = !0; c < n.length; c += 1) {
    var s = n[c], p = de(s, 0, 1), h = de(s, -1);
    if ((p === '"' || p === "'" || p === "`" || h === '"' || h === "'" || h === "`") && p !== h)
      throw new V("property names with quotes must have matching quotes");
    if ((s === "constructor" || !y) && (u = !0), i += "." + s, l = "%" + i + "%", ye(L, l))
      a = L[l];
    else if (a != null) {
      if (!(s in a)) {
        if (!r)
          throw new J("base intrinsic for " + e + " exists, but the property is not available.");
        return;
      }
      if (_ && c + 1 >= n.length) {
        var w = _(a, s);
        y = !!w, y && "get" in w && !("originalValue" in w.get) ? a = w.get : a = a[s];
      } else
        y = ye(a, s), a = a[s];
      y && !u && (L[l] = a);
    }
  }
  return a;
}, pt = { exports: {} };
(function(t) {
  var e = De, r = Ce, n = r("%Function.prototype.apply%"), i = r("%Function.prototype.call%"), o = r("%Reflect.apply%", !0) || e.call(i, n), l = r("%Object.getOwnPropertyDescriptor%", !0), a = r("%Object.defineProperty%", !0), u = r("%Math.max%");
  if (a)
    try {
      a({}, "a", { value: 1 });
    } catch {
      a = null;
    }
  t.exports = function(y) {
    var s = o(e, i, arguments);
    if (l && a) {
      var p = l(s, "length");
      p.configurable && a(
        s,
        "length",
        { value: 1 + u(0, y.length - (arguments.length - 1)) }
      );
    }
    return s;
  };
  var f = function() {
    return o(e, n, arguments);
  };
  a ? a(t.exports, "apply", { value: f }) : t.exports.apply = f;
})(pt);
var nr = pt.exports, yt = Ce, dt = nr, ir = dt(yt("String.prototype.indexOf")), or = function(e, r) {
  var n = yt(e, !!r);
  return typeof n == "function" && ir(e, ".prototype.") > -1 ? dt(n) : n;
};
const ar = {}, lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  default: ar
}, Symbol.toStringTag, { value: "Module" })), fr = /* @__PURE__ */ Pt(lr);
var Ue = typeof Map == "function" && Map.prototype, be = Object.getOwnPropertyDescriptor && Ue ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, me = Ue && be && typeof be.get == "function" ? be.get : null, Ze = Ue && Map.prototype.forEach, _e = typeof Set == "function" && Set.prototype, Ae = Object.getOwnPropertyDescriptor && _e ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, he = _e && Ae && typeof Ae.get == "function" ? Ae.get : null, Ke = _e && Set.prototype.forEach, ur = typeof WeakMap == "function" && WeakMap.prototype, te = ur ? WeakMap.prototype.has : null, cr = typeof WeakSet == "function" && WeakSet.prototype, re = cr ? WeakSet.prototype.has : null, sr = typeof WeakRef == "function" && WeakRef.prototype, Ye = sr ? WeakRef.prototype.deref : null, pr = Boolean.prototype.valueOf, yr = Object.prototype.toString, dr = Function.prototype.toString, mr = String.prototype.match, Le = String.prototype.slice, T = String.prototype.replace, hr = String.prototype.toUpperCase, Xe = String.prototype.toLowerCase, mt = RegExp.prototype.test, je = Array.prototype.concat, x = Array.prototype.join, vr = Array.prototype.slice, et = Math.floor, Fe = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, we = Object.getOwnPropertySymbols, Ie = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Z = typeof Symbol == "function" && typeof Symbol.iterator == "object", A = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Z || "symbol") ? Symbol.toStringTag : null, ht = Object.prototype.propertyIsEnumerable, tt = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
  return t.__proto__;
} : null);
function rt(t, e) {
  if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || mt.call(/e/, e))
    return e;
  var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
  if (typeof t == "number") {
    var n = t < 0 ? -et(-t) : et(t);
    if (n !== t) {
      var i = String(n), o = Le.call(e, i.length + 1);
      return T.call(i, r, "$&_") + "." + T.call(T.call(o, /([0-9]{3})/g, "$&_"), /_$/, "");
    }
  }
  return T.call(e, r, "$&_");
}
var Ne = fr, nt = Ne.custom, it = gt(nt) ? nt : null, gr = function t(e, r, n, i) {
  var o = r || {};
  if (M(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
    throw new TypeError('option "quoteStyle" must be "single" or "double"');
  if (M(o, "maxStringLength") && (typeof o.maxStringLength == "number" ? o.maxStringLength < 0 && o.maxStringLength !== 1 / 0 : o.maxStringLength !== null))
    throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
  var l = M(o, "customInspect") ? o.customInspect : !0;
  if (typeof l != "boolean" && l !== "symbol")
    throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
  if (M(o, "indent") && o.indent !== null && o.indent !== "	" && !(parseInt(o.indent, 10) === o.indent && o.indent > 0))
    throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
  if (M(o, "numericSeparator") && typeof o.numericSeparator != "boolean")
    throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
  var a = o.numericSeparator;
  if (typeof e > "u")
    return "undefined";
  if (e === null)
    return "null";
  if (typeof e == "boolean")
    return e ? "true" : "false";
  if (typeof e == "string")
    return bt(e, o);
  if (typeof e == "number") {
    if (e === 0)
      return 1 / 0 / e > 0 ? "0" : "-0";
    var u = String(e);
    return a ? rt(e, u) : u;
  }
  if (typeof e == "bigint") {
    var f = String(e) + "n";
    return a ? rt(e, f) : f;
  }
  var c = typeof o.depth > "u" ? 5 : o.depth;
  if (typeof n > "u" && (n = 0), n >= c && c > 0 && typeof e == "object")
    return Re(e) ? "[Array]" : "[Object]";
  var y = Cr(o, n);
  if (typeof i > "u")
    i = [];
  else if (St(i, e) >= 0)
    return "[Circular]";
  function s(F, H, ae) {
    if (H && (i = vr.call(i), i.push(H)), ae) {
      var G = {
        depth: o.depth
      };
      return M(o, "quoteStyle") && (G.quoteStyle = o.quoteStyle), t(F, G, n + 1, i);
    }
    return t(F, o, n + 1, i);
  }
  if (typeof e == "function" && !ot(e)) {
    var p = $r(e), h = le(e, s);
    return "[Function" + (p ? ": " + p : " (anonymous)") + "]" + (h.length > 0 ? " { " + x.call(h, ", ") + " }" : "");
  }
  if (gt(e)) {
    var w = Z ? T.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Ie.call(e);
    return typeof e == "object" && !Z ? ee(w) : w;
  }
  if (Tr(e)) {
    for (var P = "<" + Xe.call(String(e.nodeName)), m = e.attributes || [], $ = 0; $ < m.length; $++)
      P += " " + m[$].name + "=" + vt(Sr(m[$].value), "double", o);
    return P += ">", e.childNodes && e.childNodes.length && (P += "..."), P += "</" + Xe.call(String(e.nodeName)) + ">", P;
  }
  if (Re(e)) {
    if (e.length === 0)
      return "[]";
    var N = le(e, s);
    return y && !Dr(N) ? "[" + Me(N, y) + "]" : "[ " + x.call(N, ", ") + " ]";
  }
  if (Ar(e)) {
    var W = le(e, s);
    return !("cause" in Error.prototype) && "cause" in e && !ht.call(e, "cause") ? "{ [" + String(e) + "] " + x.call(je.call("[cause]: " + s(e.cause), W), ", ") + " }" : W.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + x.call(W, ", ") + " }";
  }
  if (typeof e == "object" && l) {
    if (it && typeof e[it] == "function" && Ne)
      return Ne(e, { depth: c - n });
    if (l !== "symbol" && typeof e.inspect == "function")
      return e.inspect();
  }
  if (Fr(e)) {
    var X = [];
    return Ze && Ze.call(e, function(F, H) {
      X.push(s(H, e, !0) + " => " + s(F, e));
    }), at("Map", me.call(e), X, y);
  }
  if (Rr(e)) {
    var oe = [];
    return Ke && Ke.call(e, function(F) {
      oe.push(s(F, e));
    }), at("Set", he.call(e), oe, y);
  }
  if (Ir(e))
    return Ee("WeakMap");
  if (Mr(e))
    return Ee("WeakSet");
  if (Nr(e))
    return Ee("WeakRef");
  if (Er(e))
    return ee(s(Number(e)));
  if (xr(e))
    return ee(s(Fe.call(e)));
  if (Or(e))
    return ee(pr.call(e));
  if (wr(e))
    return ee(s(String(e)));
  if (!br(e) && !ot(e)) {
    var D = le(e, s), R = tt ? tt(e) === Object.prototype : e instanceof Object || e.constructor === Object, k = e instanceof Object ? "" : "null prototype", z = !R && A && Object(e) === e && A in e ? Le.call(B(e), 8, -1) : k ? "Object" : "", j = R || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", E = j + (z || k ? "[" + x.call(je.call([], z || [], k || []), ": ") + "] " : "");
    return D.length === 0 ? E + "{}" : y ? E + "{" + Me(D, y) + "}" : E + "{ " + x.call(D, ", ") + " }";
  }
  return String(e);
};
function vt(t, e, r) {
  var n = (r.quoteStyle || e) === "double" ? '"' : "'";
  return n + t + n;
}
function Sr(t) {
  return T.call(String(t), /"/g, "&quot;");
}
function Re(t) {
  return B(t) === "[object Array]" && (!A || !(typeof t == "object" && A in t));
}
function br(t) {
  return B(t) === "[object Date]" && (!A || !(typeof t == "object" && A in t));
}
function ot(t) {
  return B(t) === "[object RegExp]" && (!A || !(typeof t == "object" && A in t));
}
function Ar(t) {
  return B(t) === "[object Error]" && (!A || !(typeof t == "object" && A in t));
}
function wr(t) {
  return B(t) === "[object String]" && (!A || !(typeof t == "object" && A in t));
}
function Er(t) {
  return B(t) === "[object Number]" && (!A || !(typeof t == "object" && A in t));
}
function Or(t) {
  return B(t) === "[object Boolean]" && (!A || !(typeof t == "object" && A in t));
}
function gt(t) {
  if (Z)
    return t && typeof t == "object" && t instanceof Symbol;
  if (typeof t == "symbol")
    return !0;
  if (!t || typeof t != "object" || !Ie)
    return !1;
  try {
    return Ie.call(t), !0;
  } catch {
  }
  return !1;
}
function xr(t) {
  if (!t || typeof t != "object" || !Fe)
    return !1;
  try {
    return Fe.call(t), !0;
  } catch {
  }
  return !1;
}
var Pr = Object.prototype.hasOwnProperty || function(t) {
  return t in this;
};
function M(t, e) {
  return Pr.call(t, e);
}
function B(t) {
  return yr.call(t);
}
function $r(t) {
  if (t.name)
    return t.name;
  var e = mr.call(dr.call(t), /^function\s*([\w$]+)/);
  return e ? e[1] : null;
}
function St(t, e) {
  if (t.indexOf)
    return t.indexOf(e);
  for (var r = 0, n = t.length; r < n; r++)
    if (t[r] === e)
      return r;
  return -1;
}
function Fr(t) {
  if (!me || !t || typeof t != "object")
    return !1;
  try {
    me.call(t);
    try {
      he.call(t);
    } catch {
      return !0;
    }
    return t instanceof Map;
  } catch {
  }
  return !1;
}
function Ir(t) {
  if (!te || !t || typeof t != "object")
    return !1;
  try {
    te.call(t, te);
    try {
      re.call(t, re);
    } catch {
      return !0;
    }
    return t instanceof WeakMap;
  } catch {
  }
  return !1;
}
function Nr(t) {
  if (!Ye || !t || typeof t != "object")
    return !1;
  try {
    return Ye.call(t), !0;
  } catch {
  }
  return !1;
}
function Rr(t) {
  if (!he || !t || typeof t != "object")
    return !1;
  try {
    he.call(t);
    try {
      me.call(t);
    } catch {
      return !0;
    }
    return t instanceof Set;
  } catch {
  }
  return !1;
}
function Mr(t) {
  if (!re || !t || typeof t != "object")
    return !1;
  try {
    re.call(t, re);
    try {
      te.call(t, te);
    } catch {
      return !0;
    }
    return t instanceof WeakSet;
  } catch {
  }
  return !1;
}
function Tr(t) {
  return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
}
function bt(t, e) {
  if (t.length > e.maxStringLength) {
    var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
    return bt(Le.call(t, 0, e.maxStringLength), e) + n;
  }
  var i = T.call(T.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Br);
  return vt(i, "single", e);
}
function Br(t) {
  var e = t.charCodeAt(0), r = {
    8: "b",
    9: "t",
    10: "n",
    12: "f",
    13: "r"
  }[e];
  return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + hr.call(e.toString(16));
}
function ee(t) {
  return "Object(" + t + ")";
}
function Ee(t) {
  return t + " { ? }";
}
function at(t, e, r, n) {
  var i = n ? Me(r, n) : x.call(r, ", ");
  return t + " (" + e + ") {" + i + "}";
}
function Dr(t) {
  for (var e = 0; e < t.length; e++)
    if (St(t[e], `
`) >= 0)
      return !1;
  return !0;
}
function Cr(t, e) {
  var r;
  if (t.indent === "	")
    r = "	";
  else if (typeof t.indent == "number" && t.indent > 0)
    r = x.call(Array(t.indent + 1), " ");
  else
    return null;
  return {
    base: r,
    prev: x.call(Array(e + 1), r)
  };
}
function Me(t, e) {
  if (t.length === 0)
    return "";
  var r = `
` + e.prev + e.base;
  return r + x.call(t, "," + r) + `
` + e.prev;
}
function le(t, e) {
  var r = Re(t), n = [];
  if (r) {
    n.length = t.length;
    for (var i = 0; i < t.length; i++)
      n[i] = M(t, i) ? e(t[i], t) : "";
  }
  var o = typeof we == "function" ? we(t) : [], l;
  if (Z) {
    l = {};
    for (var a = 0; a < o.length; a++)
      l["$" + o[a]] = o[a];
  }
  for (var u in t)
    M(t, u) && (r && String(Number(u)) === u && u < t.length || Z && l["$" + u] instanceof Symbol || (mt.call(/[^\w$]/, u) ? n.push(e(u, t) + ": " + e(t[u], t)) : n.push(u + ": " + e(t[u], t))));
  if (typeof we == "function")
    for (var f = 0; f < o.length; f++)
      ht.call(t, o[f]) && n.push("[" + e(o[f]) + "]: " + e(t[o[f]], t));
  return n;
}
var We = Ce, Y = or, Ur = gr, _r = We("%TypeError%"), fe = We("%WeakMap%", !0), ue = We("%Map%", !0), Lr = Y("WeakMap.prototype.get", !0), Wr = Y("WeakMap.prototype.set", !0), kr = Y("WeakMap.prototype.has", !0), zr = Y("Map.prototype.get", !0), Hr = Y("Map.prototype.set", !0), Gr = Y("Map.prototype.has", !0), ke = function(t, e) {
  for (var r = t, n; (n = r.next) !== null; r = n)
    if (n.key === e)
      return r.next = n.next, n.next = t.next, t.next = n, n;
}, qr = function(t, e) {
  var r = ke(t, e);
  return r && r.value;
}, Qr = function(t, e, r) {
  var n = ke(t, e);
  n ? n.value = r : t.next = {
    // eslint-disable-line no-param-reassign
    key: e,
    next: t.next,
    value: r
  };
}, Jr = function(t, e) {
  return !!ke(t, e);
}, Vr = function() {
  var e, r, n, i = {
    assert: function(o) {
      if (!i.has(o))
        throw new _r("Side channel does not contain " + Ur(o));
    },
    get: function(o) {
      if (fe && o && (typeof o == "object" || typeof o == "function")) {
        if (e)
          return Lr(e, o);
      } else if (ue) {
        if (r)
          return zr(r, o);
      } else if (n)
        return qr(n, o);
    },
    has: function(o) {
      if (fe && o && (typeof o == "object" || typeof o == "function")) {
        if (e)
          return kr(e, o);
      } else if (ue) {
        if (r)
          return Gr(r, o);
      } else if (n)
        return Jr(n, o);
      return !1;
    },
    set: function(o, l) {
      fe && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new fe()), Wr(e, o, l)) : ue ? (r || (r = new ue()), Hr(r, o, l)) : (n || (n = { key: {}, next: null }), Qr(n, o, l));
    }
  };
  return i;
}, Zr = String.prototype.replace, Kr = /%20/g, Oe = {
  RFC1738: "RFC1738",
  RFC3986: "RFC3986"
}, ze = {
  default: Oe.RFC3986,
  formatters: {
    RFC1738: function(t) {
      return Zr.call(t, Kr, "+");
    },
    RFC3986: function(t) {
      return String(t);
    }
  },
  RFC1738: Oe.RFC1738,
  RFC3986: Oe.RFC3986
}, Yr = ze, xe = Object.prototype.hasOwnProperty, U = Array.isArray, O = function() {
  for (var t = [], e = 0; e < 256; ++e)
    t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
  return t;
}(), Xr = function(e) {
  for (; e.length > 1; ) {
    var r = e.pop(), n = r.obj[r.prop];
    if (U(n)) {
      for (var i = [], o = 0; o < n.length; ++o)
        typeof n[o] < "u" && i.push(n[o]);
      r.obj[r.prop] = i;
    }
  }
}, At = function(e, r) {
  for (var n = r && r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, i = 0; i < e.length; ++i)
    typeof e[i] < "u" && (n[i] = e[i]);
  return n;
}, jr = function t(e, r, n) {
  if (!r)
    return e;
  if (typeof r != "object") {
    if (U(e))
      e.push(r);
    else if (e && typeof e == "object")
      (n && (n.plainObjects || n.allowPrototypes) || !xe.call(Object.prototype, r)) && (e[r] = !0);
    else
      return [e, r];
    return e;
  }
  if (!e || typeof e != "object")
    return [e].concat(r);
  var i = e;
  return U(e) && !U(r) && (i = At(e, n)), U(e) && U(r) ? (r.forEach(function(o, l) {
    if (xe.call(e, l)) {
      var a = e[l];
      a && typeof a == "object" && o && typeof o == "object" ? e[l] = t(a, o, n) : e.push(o);
    } else
      e[l] = o;
  }), e) : Object.keys(r).reduce(function(o, l) {
    var a = r[l];
    return xe.call(o, l) ? o[l] = t(o[l], a, n) : o[l] = a, o;
  }, i);
}, en = function(e, r) {
  return Object.keys(r).reduce(function(n, i) {
    return n[i] = r[i], n;
  }, e);
}, tn = function(t, e, r) {
  var n = t.replace(/\+/g, " ");
  if (r === "iso-8859-1")
    return n.replace(/%[0-9a-f]{2}/gi, unescape);
  try {
    return decodeURIComponent(n);
  } catch {
    return n;
  }
}, rn = function(e, r, n, i, o) {
  if (e.length === 0)
    return e;
  var l = e;
  if (typeof e == "symbol" ? l = Symbol.prototype.toString.call(e) : typeof e != "string" && (l = String(e)), n === "iso-8859-1")
    return escape(l).replace(/%u[0-9a-f]{4}/gi, function(c) {
      return "%26%23" + parseInt(c.slice(2), 16) + "%3B";
    });
  for (var a = "", u = 0; u < l.length; ++u) {
    var f = l.charCodeAt(u);
    if (f === 45 || f === 46 || f === 95 || f === 126 || f >= 48 && f <= 57 || f >= 65 && f <= 90 || f >= 97 && f <= 122 || o === Yr.RFC1738 && (f === 40 || f === 41)) {
      a += l.charAt(u);
      continue;
    }
    if (f < 128) {
      a = a + O[f];
      continue;
    }
    if (f < 2048) {
      a = a + (O[192 | f >> 6] + O[128 | f & 63]);
      continue;
    }
    if (f < 55296 || f >= 57344) {
      a = a + (O[224 | f >> 12] + O[128 | f >> 6 & 63] + O[128 | f & 63]);
      continue;
    }
    u += 1, f = 65536 + ((f & 1023) << 10 | l.charCodeAt(u) & 1023), a += O[240 | f >> 18] + O[128 | f >> 12 & 63] + O[128 | f >> 6 & 63] + O[128 | f & 63];
  }
  return a;
}, nn = function(e) {
  for (var r = [{ obj: { o: e }, prop: "o" }], n = [], i = 0; i < r.length; ++i)
    for (var o = r[i], l = o.obj[o.prop], a = Object.keys(l), u = 0; u < a.length; ++u) {
      var f = a[u], c = l[f];
      typeof c == "object" && c !== null && n.indexOf(c) === -1 && (r.push({ obj: l, prop: f }), n.push(c));
    }
  return Xr(r), e;
}, on = function(e) {
  return Object.prototype.toString.call(e) === "[object RegExp]";
}, an = function(e) {
  return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
}, ln = function(e, r) {
  return [].concat(e, r);
}, fn = function(e, r) {
  if (U(e)) {
    for (var n = [], i = 0; i < e.length; i += 1)
      n.push(r(e[i]));
    return n;
  }
  return r(e);
}, wt = {
  arrayToObject: At,
  assign: en,
  combine: ln,
  compact: nn,
  decode: tn,
  encode: rn,
  isBuffer: an,
  isRegExp: on,
  maybeMap: fn,
  merge: jr
}, Et = Vr, se = wt, ne = ze, un = Object.prototype.hasOwnProperty, lt = {
  brackets: function(e) {
    return e + "[]";
  },
  comma: "comma",
  indices: function(e, r) {
    return e + "[" + r + "]";
  },
  repeat: function(e) {
    return e;
  }
}, I = Array.isArray, cn = Array.prototype.push, Ot = function(t, e) {
  cn.apply(t, I(e) ? e : [e]);
}, sn = Date.prototype.toISOString, ft = ne.default, b = {
  addQueryPrefix: !1,
  allowDots: !1,
  charset: "utf-8",
  charsetSentinel: !1,
  delimiter: "&",
  encode: !0,
  encoder: se.encode,
  encodeValuesOnly: !1,
  format: ft,
  formatter: ne.formatters[ft],
  // deprecated
  indices: !1,
  serializeDate: function(e) {
    return sn.call(e);
  },
  skipNulls: !1,
  strictNullHandling: !1
}, pn = function(e) {
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
}, Pe = {}, yn = function t(e, r, n, i, o, l, a, u, f, c, y, s, p, h, w, P) {
  for (var m = e, $ = P, N = 0, W = !1; ($ = $.get(Pe)) !== void 0 && !W; ) {
    var X = $.get(e);
    if (N += 1, typeof X < "u") {
      if (X === N)
        throw new RangeError("Cyclic object value");
      W = !0;
    }
    typeof $.get(Pe) > "u" && (N = 0);
  }
  if (typeof u == "function" ? m = u(r, m) : m instanceof Date ? m = y(m) : n === "comma" && I(m) && (m = se.maybeMap(m, function(G) {
    return G instanceof Date ? y(G) : G;
  })), m === null) {
    if (o)
      return a && !h ? a(r, b.encoder, w, "key", s) : r;
    m = "";
  }
  if (pn(m) || se.isBuffer(m)) {
    if (a) {
      var oe = h ? r : a(r, b.encoder, w, "key", s);
      return [p(oe) + "=" + p(a(m, b.encoder, w, "value", s))];
    }
    return [p(r) + "=" + p(String(m))];
  }
  var D = [];
  if (typeof m > "u")
    return D;
  var R;
  if (n === "comma" && I(m))
    h && a && (m = se.maybeMap(m, a)), R = [{ value: m.length > 0 ? m.join(",") || null : void 0 }];
  else if (I(u))
    R = u;
  else {
    var k = Object.keys(m);
    R = f ? k.sort(f) : k;
  }
  for (var z = i && I(m) && m.length === 1 ? r + "[]" : r, j = 0; j < R.length; ++j) {
    var E = R[j], F = typeof E == "object" && typeof E.value < "u" ? E.value : m[E];
    if (!(l && F === null)) {
      var H = I(m) ? typeof n == "function" ? n(z, E) : z : z + (c ? "." + E : "[" + E + "]");
      P.set(e, N);
      var ae = Et();
      ae.set(Pe, P), Ot(D, t(
        F,
        H,
        n,
        i,
        o,
        l,
        n === "comma" && h && I(m) ? null : a,
        u,
        f,
        c,
        y,
        s,
        p,
        h,
        w,
        ae
      ));
    }
  }
  return D;
}, dn = function(e) {
  if (!e)
    return b;
  if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
    throw new TypeError("Encoder has to be a function.");
  var r = e.charset || b.charset;
  if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
    throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
  var n = ne.default;
  if (typeof e.format < "u") {
    if (!un.call(ne.formatters, e.format))
      throw new TypeError("Unknown format option provided.");
    n = e.format;
  }
  var i = ne.formatters[n], o = b.filter;
  return (typeof e.filter == "function" || I(e.filter)) && (o = e.filter), {
    addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : b.addQueryPrefix,
    allowDots: typeof e.allowDots > "u" ? b.allowDots : !!e.allowDots,
    charset: r,
    charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : b.charsetSentinel,
    delimiter: typeof e.delimiter > "u" ? b.delimiter : e.delimiter,
    encode: typeof e.encode == "boolean" ? e.encode : b.encode,
    encoder: typeof e.encoder == "function" ? e.encoder : b.encoder,
    encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : b.encodeValuesOnly,
    filter: o,
    format: n,
    formatter: i,
    serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : b.serializeDate,
    skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : b.skipNulls,
    sort: typeof e.sort == "function" ? e.sort : null,
    strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : b.strictNullHandling
  };
}, mn = function(t, e) {
  var r = t, n = dn(e), i, o;
  typeof n.filter == "function" ? (o = n.filter, r = o("", r)) : I(n.filter) && (o = n.filter, i = o);
  var l = [];
  if (typeof r != "object" || r === null)
    return "";
  var a;
  e && e.arrayFormat in lt ? a = e.arrayFormat : e && "indices" in e ? a = e.indices ? "indices" : "repeat" : a = "indices";
  var u = lt[a];
  if (e && "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
    throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
  var f = u === "comma" && e && e.commaRoundTrip;
  i || (i = Object.keys(r)), n.sort && i.sort(n.sort);
  for (var c = Et(), y = 0; y < i.length; ++y) {
    var s = i[y];
    n.skipNulls && r[s] === null || Ot(l, yn(
      r[s],
      s,
      u,
      f,
      n.strictNullHandling,
      n.skipNulls,
      n.encode ? n.encoder : null,
      n.filter,
      n.sort,
      n.allowDots,
      n.serializeDate,
      n.format,
      n.formatter,
      n.encodeValuesOnly,
      n.charset,
      c
    ));
  }
  var p = l.join(n.delimiter), h = n.addQueryPrefix === !0 ? "?" : "";
  return n.charsetSentinel && (n.charset === "iso-8859-1" ? h += "utf8=%26%2310003%3B&" : h += "utf8=%E2%9C%93&"), p.length > 0 ? h + p : "";
}, K = wt, Te = Object.prototype.hasOwnProperty, hn = Array.isArray, v = {
  allowDots: !1,
  allowPrototypes: !1,
  allowSparse: !1,
  arrayLimit: 20,
  charset: "utf-8",
  charsetSentinel: !1,
  comma: !1,
  decoder: K.decode,
  delimiter: "&",
  depth: 5,
  ignoreQueryPrefix: !1,
  interpretNumericEntities: !1,
  parameterLimit: 1e3,
  parseArrays: !0,
  plainObjects: !1,
  strictNullHandling: !1
}, vn = function(t) {
  return t.replace(/&#(\d+);/g, function(e, r) {
    return String.fromCharCode(parseInt(r, 10));
  });
}, xt = function(t, e) {
  return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
}, gn = "utf8=%26%2310003%3B", Sn = "utf8=%E2%9C%93", bn = function(e, r) {
  var n = { __proto__: null }, i = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, o = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, l = i.split(r.delimiter, o), a = -1, u, f = r.charset;
  if (r.charsetSentinel)
    for (u = 0; u < l.length; ++u)
      l[u].indexOf("utf8=") === 0 && (l[u] === Sn ? f = "utf-8" : l[u] === gn && (f = "iso-8859-1"), a = u, u = l.length);
  for (u = 0; u < l.length; ++u)
    if (u !== a) {
      var c = l[u], y = c.indexOf("]="), s = y === -1 ? c.indexOf("=") : y + 1, p, h;
      s === -1 ? (p = r.decoder(c, v.decoder, f, "key"), h = r.strictNullHandling ? null : "") : (p = r.decoder(c.slice(0, s), v.decoder, f, "key"), h = K.maybeMap(
        xt(c.slice(s + 1), r),
        function(w) {
          return r.decoder(w, v.decoder, f, "value");
        }
      )), h && r.interpretNumericEntities && f === "iso-8859-1" && (h = vn(h)), c.indexOf("[]=") > -1 && (h = hn(h) ? [h] : h), Te.call(n, p) ? n[p] = K.combine(n[p], h) : n[p] = h;
    }
  return n;
}, An = function(t, e, r, n) {
  for (var i = n ? e : xt(e, r), o = t.length - 1; o >= 0; --o) {
    var l, a = t[o];
    if (a === "[]" && r.parseArrays)
      l = [].concat(i);
    else {
      l = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
      var u = a.charAt(0) === "[" && a.charAt(a.length - 1) === "]" ? a.slice(1, -1) : a, f = parseInt(u, 10);
      !r.parseArrays && u === "" ? l = { 0: i } : !isNaN(f) && a !== u && String(f) === u && f >= 0 && r.parseArrays && f <= r.arrayLimit ? (l = [], l[f] = i) : u !== "__proto__" && (l[u] = i);
    }
    i = l;
  }
  return i;
}, wn = function(e, r, n, i) {
  if (e) {
    var o = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, l = /(\[[^[\]]*])/, a = /(\[[^[\]]*])/g, u = n.depth > 0 && l.exec(o), f = u ? o.slice(0, u.index) : o, c = [];
    if (f) {
      if (!n.plainObjects && Te.call(Object.prototype, f) && !n.allowPrototypes)
        return;
      c.push(f);
    }
    for (var y = 0; n.depth > 0 && (u = a.exec(o)) !== null && y < n.depth; ) {
      if (y += 1, !n.plainObjects && Te.call(Object.prototype, u[1].slice(1, -1)) && !n.allowPrototypes)
        return;
      c.push(u[1]);
    }
    return u && c.push("[" + o.slice(u.index) + "]"), An(c, r, n, i);
  }
}, En = function(e) {
  if (!e)
    return v;
  if (e.decoder !== null && e.decoder !== void 0 && typeof e.decoder != "function")
    throw new TypeError("Decoder has to be a function.");
  if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
    throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
  var r = typeof e.charset > "u" ? v.charset : e.charset;
  return {
    allowDots: typeof e.allowDots > "u" ? v.allowDots : !!e.allowDots,
    allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : v.allowPrototypes,
    allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : v.allowSparse,
    arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : v.arrayLimit,
    charset: r,
    charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : v.charsetSentinel,
    comma: typeof e.comma == "boolean" ? e.comma : v.comma,
    decoder: typeof e.decoder == "function" ? e.decoder : v.decoder,
    delimiter: typeof e.delimiter == "string" || K.isRegExp(e.delimiter) ? e.delimiter : v.delimiter,
    // eslint-disable-next-line no-implicit-coercion, no-extra-parens
    depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : v.depth,
    ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
    interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : v.interpretNumericEntities,
    parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : v.parameterLimit,
    parseArrays: e.parseArrays !== !1,
    plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : v.plainObjects,
    strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : v.strictNullHandling
  };
}, On = function(t, e) {
  var r = En(e);
  if (t === "" || t === null || typeof t > "u")
    return r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
  for (var n = typeof t == "string" ? bn(t, r) : t, i = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(n), l = 0; l < o.length; ++l) {
    var a = o[l], u = wn(a, n[a], r, typeof t == "string");
    i = K.merge(i, u, r);
  }
  return r.allowSparse === !0 ? i : K.compact(i);
}, xn = mn, Pn = On, $n = ze, Fn = {
  formats: $n,
  parse: Pn,
  stringify: xn
};
const In = /* @__PURE__ */ $t(Fn);
let ce;
const Nn = new Uint8Array(16);
function Rn() {
  if (!ce && (ce = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ce))
    throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
  return ce(Nn);
}
const S = [];
for (let t = 0; t < 256; ++t)
  S.push((t + 256).toString(16).slice(1));
function Mn(t, e = 0) {
  return (S[t[e + 0]] + S[t[e + 1]] + S[t[e + 2]] + S[t[e + 3]] + "-" + S[t[e + 4]] + S[t[e + 5]] + "-" + S[t[e + 6]] + S[t[e + 7]] + "-" + S[t[e + 8]] + S[t[e + 9]] + "-" + S[t[e + 10]] + S[t[e + 11]] + S[t[e + 12]] + S[t[e + 13]] + S[t[e + 14]] + S[t[e + 15]]).toLowerCase();
}
const Tn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ut = {
  randomUUID: Tn
};
function Bn(t, e, r) {
  if (ut.randomUUID && !e && !t)
    return ut.randomUUID();
  t = t || {};
  const n = t.random || (t.rng || Rn)();
  if (n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, e) {
    r = r || 0;
    for (let i = 0; i < 16; ++i)
      e[r + i] = n[i];
    return e;
  }
  return Mn(n);
}
globalThis.toCamelCase = (t) => t && t.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g, (e, r) => r.toUpperCase());
globalThis.toSnakeCase = (t, e = !1) => {
  if (t && t !== t.toUpperCase()) {
    let r = t.replace(/([A-Z])/g, " $1");
    return r = r.split(" ").join("_").toUpperCase(), e && (r = r.toLowerCase()), r;
  }
  return t;
};
globalThis.isEmpty = (t) => t == null || t instanceof Array && t.length === 0 || typeof t == "string" && t.length === 0;
globalThis.isNotEmpty = (t) => !isEmpty(t);
globalThis.isEmptyOr = (t, ...e) => isEmpty(t) ? !0 : e == null ? !1 : e.some((r) => isEmpty(r));
globalThis.isNotEmptyOr = (t, ...e) => isNotEmpty(t) ? !0 : e == null ? !1 : e.some((r) => isNotEmpty(r));
globalThis.isEmptyAnd = (t, ...e) => isNotEmpty(t) ? !1 : e == null ? !0 : e.every((r) => isEmpty(r));
globalThis.isNotEmptyAnd = (t, ...e) => isEmpty(t) ? !1 : e == null ? !0 : e.every((r) => isNotEmpty(r));
globalThis.utils = {
  option: {
    yn: [{ text: "예", value: "Y" }, { text: "아니오", value: "N" }],
    makeListToOption: (t, e, r) => t ? t.map(
      (n) => ({ text: n[r] + "", value: n[e] + "" })
    ) : null
  },
  array: {
    getRowChangeOrder: (t, e, r) => {
      let n = r, i = r, o = -1, l = -1, a;
      if (t) {
        if (n + 1 < e.length) {
          for (a = 0; a < e.length; a++)
            if (a > n) {
              o = a, i = a - 1;
              break;
            }
          if (o >= 0) {
            for (a = 0; a < e.length; a++)
              if (a > o && a === e.length - 1) {
                l = a;
                break;
              }
            l < 0 && (l = o);
            let u = [], f = e.slice(n, i + 1), c = e.slice(o, l + 1);
            return 0 < n && u.push(...e.slice(0, n)), u.push(...c), u.push(...f), l < e.length - 1 && u.push(...e.slice(l + 1)), u;
          }
        }
      } else if (n < e.length) {
        for (l = n - 1, a = 0; a < e.length; a++)
          a > n && a === e.length - 1 && (i = a);
        if (l >= 0) {
          for (a = e.length; a >= 0; a--)
            if (a <= l && a === 0) {
              o = -1;
              break;
            }
          if (o < 0)
            return e;
          l < 0 && (l = o);
          let u = [], f = e.slice(n, i + 1), c = e.slice(o, l + 1);
          return 0 < n && u.push(...e.slice(0, o)), u.push(...f), u.push(...c), i < e.length - 1 && u.push(...e.slice(i + 1)), u;
        }
      }
      return e;
    },
    selectedRowOrder: (t, e, r) => {
      const n = "_isSelected";
      let i = e.findIndex((c) => c[n]);
      if (i < 0)
        return !1;
      let o = e[i].depth, l = i, a = -1, u = -1, f = 0;
      if (t) {
        if (i + 1 < e.length) {
          for (f = 0; f < e.length; f++) {
            const c = e[f];
            if (f > i) {
              if (c.depth < o)
                break;
              if (c.depth === o) {
                a = f, l = f - 1;
                break;
              }
            }
          }
          if (a >= 0) {
            for (f = 0; f < e.length; f++) {
              const p = e[f];
              if (f > a) {
                if (p.depth < o)
                  break;
                if (p.depth === o) {
                  u = f - 1;
                  break;
                } else if (f === e.length - 1) {
                  u = f;
                  break;
                }
              }
            }
            u < 0 && (u = a);
            let c = [], y = e.slice(i, l + 1), s = e.slice(a, u + 1);
            0 < i && c.push(...e.slice(0, i)), c.push(...s), c.push(...y), u < e.length - 1 && c.push(...e.slice(u + 1)), r(c);
          }
        }
      } else if (i < e.length) {
        for (u = i - 1, f = 0; f < e.length; f++) {
          const c = e[f];
          if (f > i) {
            if (c.depth < o)
              break;
            if (c.depth === o) {
              l = f - 1;
              break;
            }
            f === e.length - 1 && (l = f);
          }
        }
        if (u >= 0) {
          for (f = e.length; f >= 0; f--) {
            const p = e[f];
            if (f <= u) {
              if (p.depth < o)
                break;
              if (p.depth === o) {
                a = f;
                break;
              } else if (f === 0) {
                a = -1;
                break;
              }
            }
          }
          if (a < 0)
            return !1;
          u < 0 && (u = a);
          let c = [], y = e.slice(i, l + 1), s = e.slice(a, u + 1);
          0 < i && c.push(...e.slice(0, a)), c.push(...y), c.push(...s), l < e.length - 1 && c.push(...e.slice(l + 1)), r(c);
        }
      }
    },
    toRecord: (t, e) => {
      const r = {};
      return t == null || t.forEach((n) => {
        const i = n[e] + "";
        i && (r[i] || (r[i] = []), r[i].push(n));
      }), r;
    },
    toRecordDuplicateIgnore: (t, e, r = !0) => {
      const n = {};
      return t == null || t.forEach((i) => {
        const o = i[e] + "";
        o && (r && n[o] || (n[o] = i));
      }), n;
    }
  },
  tree: {
    treeToOrderedList: (t, e = [], r = 0) => {
      const { childList: n } = t;
      return n == null || n.forEach((i, o) => {
        e.push({ ...i == null ? void 0 : i.data, depth: r }), utils.tree.treeToOrderedList(i, e, r + 1);
      }), e;
    },
    toList: (t, e = []) => {
      const { childList: r = [] } = t;
      return r.forEach((n) => {
        e.push({ ...n.data }), utils.tree.toList(n, e);
      }), e;
    },
    toRecord: (t, e) => {
      const r = utils.tree.toList(t), n = {};
      return r && r.forEach((i) => {
        const o = i[e] + "";
        e && (n[o] || (n[o] = []), n[o].push(i));
      }), n;
    },
    toRecordDuplicateIgnore: (t, e, r = !0) => {
      const n = utils.tree.toList(t), i = {};
      return n && n.forEach((o) => {
        const l = o[e] + "";
        e && (r && i[l] || (i[l] = o));
      }), i;
    }
  },
  generator: {
    uuid: () => Bn()
  },
  window: {
    popup: (t, e, r, n) => {
      r || (r = 840), n || (n = 540);
      const i = window.screenLeft !== void 0 ? window.screenLeft : window.screenX, o = window.screenTop !== void 0 ? window.screenTop : window.screenY, l = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : window.screen.width, a = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : window.screen.height, u = l / window.screen.availWidth, f = (l - r) / 2 / u + i, c = (a - n) / 2 / u + o;
      console.log(f, c), window.open(t, e, `width=${r},height=${n},top=${c},left=${f}`);
    }
  },
  http: {
    queryString: (t) => In.stringify(t, {
      arrayFormat: "brackets",
      serializeDate: (e) => e ? He(e, "yyyy-MM-dd'T'HH:mm:ss") : void 0
    }),
    formData: (t) => {
      const e = (r) => r instanceof FormData ? r : r instanceof Date ? He(r, "yyyy-MM-dd'T'HH:mm:ss") : r instanceof File ? r : Array.isArray(r) ? r.map((n) => e(n)) : typeof r == "object" && isNotEmpty(r) ? Object.fromEntries(Object.entries(r).map(([n, i]) => [n, e(i)])) : r;
      return Mt.serialize(e(t), { dotsForObjectNotation: !0, indices: !0 });
    }
  },
  text: {
    copyText: (t) => {
      navigator.clipboard.writeText(t).catch((e) => {
        console.log(e);
      });
    },
    url: (t, e) => {
      let r;
      return isNotEmptyAnd(t, e) && (r = `${t.replace(/[\/,\\]{1,}$/g, "")}/${e.replace("\\", "/").replace(/\/{1,}/g, "/").replace(/^\//g, "")}`), r;
    }
  },
  regExp: {
    tel: new RegExp(/^0([2-9]{1,2})?([0-9]{3,4})?([0-9]{4})$/),
    /*eslint no-useless-escape: "error"*/
    mobile: new RegExp(/^(010[0-9]{8}|01[1-9][0-9]{7})$/),
    /*eslint no-useless-escape: "error"*/
    email: new RegExp(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)
  },
  css: {
    rgbToHex: (t) => {
      function e(r) {
        return ("0" + r.toString(16)).slice(-2);
      }
      return `#${(e(t[0]) + e(t[1]) + e(t[2])).toUpperCase()}`;
    },
    hexToRgb: (t) => {
      const e = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
      t = t.replace(e, function(n, i, o, l) {
        return i + i + o + o + l + l;
      });
      const r = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
      return r ? [
        parseInt(r[1], 16),
        parseInt(r[2], 16),
        parseInt(r[3], 16)
      ] : void 0;
    },
    hexToRgbMap: (t) => {
      const e = utils.css.hexToRgb(t);
      return e && e.length === 3 ? {
        r: e[0],
        g: e[1],
        b: e[2]
      } : void 0;
    },
    colorContrast: (t, e = "#000", r = "#fff", n = 4.5) => {
      const i = [
        r,
        e,
        "#000",
        "#fff"
      ];
      let o = 0, l;
      for (let a = 0; a < i.length; a++) {
        let u = i[a], f = utils.css.contrastRatio(t, u);
        if (f > n)
          return u;
        f > o && (o = f, l = u);
      }
      return l;
    },
    contrastRatio: (t, e = "#fff") => {
      const r = utils.css.luminance(t), n = utils.css.luminance(utils.css.opaque(t, e));
      return r > n ? r * 0.05 / (n * 0.05) : n * 0.05 / (r * 0.05);
    },
    luminance: (t) => {
      const e = [8e-4, 1e-3, 11e-4, 13e-4, 15e-4, 17e-4, 2e-3, 22e-4, 25e-4, 27e-4, 3e-3, 33e-4, 37e-4, 4e-3, 44e-4, 48e-4, 52e-4, 56e-4, 6e-3, 65e-4, 7e-3, 75e-4, 8e-3, 86e-4, 91e-4, 97e-4, 0.0103, 0.011, 0.0116, 0.0123, 0.013, 0.0137, 0.0144, 0.0152, 0.016, 0.0168, 0.0176, 0.0185, 0.0194, 0.0203, 0.0212, 0.0222, 0.0232, 0.0242, 0.0252, 0.0262, 0.0273, 0.0284, 0.0296, 0.0307, 0.0319, 0.0331, 0.0343, 0.0356, 0.0369, 0.0382, 0.0395, 0.0409, 0.0423, 0.0437, 0.0452, 0.0467, 0.0482, 0.0497, 0.0513, 0.0529, 0.0545, 0.0561, 0.0578, 0.0595, 0.0612, 0.063, 0.0648, 0.0666, 0.0685, 0.0704, 0.0723, 0.0742, 0.0762, 0.0782, 0.0802, 0.0823, 0.0844, 0.0865, 0.0887, 0.0908, 0.0931, 0.0953, 0.0976, 0.0999, 0.1022, 0.1046, 0.107, 0.1095, 0.1119, 0.1144, 0.117, 0.1195, 0.1221, 0.1248, 0.1274, 0.1301, 0.1329, 0.1356, 0.1384, 0.1413, 0.1441, 0.147, 0.15, 0.1529, 0.1559, 0.159, 0.162, 0.1651, 0.1683, 0.1714, 0.1746, 0.1779, 0.1812, 0.1845, 0.1878, 0.1912, 0.1946, 0.1981, 0.2016, 0.2051, 0.2086, 0.2122, 0.2159, 0.2195, 0.2232, 0.227, 0.2307, 0.2346, 0.2384, 0.2423, 0.2462, 0.2502, 0.2542, 0.2582, 0.2623, 0.2664, 0.2705, 0.2747, 0.2789, 0.2831, 0.2874, 0.2918, 0.2961, 0.3005, 0.305, 0.3095, 0.314, 0.3185, 0.3231, 0.3278, 0.3325, 0.3372, 0.3419, 0.3467, 0.3515, 0.3564, 0.3613, 0.3663, 0.3712, 0.3763, 0.3813, 0.3864, 0.3916, 0.3968, 0.402, 0.4072, 0.4125, 0.4179, 0.4233, 0.4287, 0.4342, 0.4397, 0.4452, 0.4508, 0.4564, 0.4621, 0.4678, 0.4735, 0.4793, 0.4851, 0.491, 0.4969, 0.5029, 0.5089, 0.5149, 0.521, 0.5271, 0.5333, 0.5395, 0.5457, 0.552, 0.5583, 0.5647, 0.5711, 0.5776, 0.5841, 0.5906, 0.5972, 0.6038, 0.6105, 0.6172, 0.624, 0.6308, 0.6376, 0.6445, 0.6514, 0.6584, 0.6654, 0.6724, 0.6795, 0.6867, 0.6939, 0.7011, 0.7084, 0.7157, 0.7231, 0.7305, 0.7379, 0.7454, 0.7529, 0.7605, 0.7682, 0.7758, 0.7835, 0.7913, 0.7991, 0.807, 0.8148, 0.8228, 0.8308, 0.8388, 0.8469, 0.855, 0.8632, 0.8714, 0.8796, 0.8879, 0.8963, 0.9047, 0.9131, 0.9216, 0.9301, 0.9387, 0.9473, 0.956, 0.9647, 0.9734, 0.9823, 0.9911, 1], r = utils.css.hexToRgbMap(t), n = r.r / 255 < 0.04045 ? r.r / 255 / 12.92 : e[r.r - 1], i = r.g / 255 < 0.04045 ? r.g / 255 / 12.92 : e[r.g - 1], o = r.b / 255 < 0.04045 ? r.b / 255 / 12.92 : e[r.b - 1];
      return n * 0.2126 + i * 0.7152 + o * 0.722;
    },
    opaque: (t, e) => utils.css.mix(
      e,
      t,
      100
    ),
    tintColor: (t, e) => utils.css.mix(
      "#fff",
      t,
      e
    ),
    shadeColor: (t, e) => utils.css.mix(
      "#000",
      t,
      e
    ),
    mix: (t, e, r = 50) => {
      const n = utils.css.hexToRgbMap(t), i = utils.css.hexToRgbMap(e);
      let o = [
        Math.floor(i.r + (n.r - i.r) * r / 100),
        Math.floor(i.g + (n.g - i.g) * r / 100),
        Math.floor(i.b + (n.b - i.b) * r / 100)
      ];
      return utils.css.rgbToHex(o);
    }
  }
};
class Dn {
  build() {
    return {
      invalidMessage: this.invalidMessage,
      regexp: this.regexp,
      maxLen: this.maxLen,
      minLen: this.minLen,
      maxSize: this.maxSize,
      minSize: this.minSize,
      maxByte: this.maxByte,
      minByte: this.minByte,
      customFunction: this.customFunction
    };
  }
  setInvalidMessage(e) {
    return this.invalidMessage = e, this;
  }
  setRegExp(e) {
    return this.regexp = e, this;
  }
  setMaxLength(e) {
    return this.maxLen = e, this;
  }
  setMinLength(e) {
    return this.minLen = e, this;
  }
  setMaxSize(e) {
    return this.maxSize = e, this;
  }
  setMinSize(e) {
    return this.minSize = e, this;
  }
  setMaxByte(e) {
    return this.maxByte = e, this;
  }
  setMinByte(e) {
    return this.minByte = e, this;
  }
  setCustomFunction(e) {
    return this.customFunction = e, this;
  }
}
globalThis.validate = (t) => t;
globalThis.validateBuilder = () => new Dn();
globalThis.checkValid = (t, e) => {
  let r = !0, n = "";
  const i = e.invalidMessage, o = e.customFunction, l = e.regexp, a = e.maxSize, u = e.minSize, f = e.maxLen, c = e.minLen, y = e.maxByte, s = e.minByte;
  if (o && (r = o(t), !r))
    return n = i || "일치하지 않는 형태입니다.", { isValid: r, message: n };
  if (l && typeof t == "string" && (r = l.test(t), !r))
    return n = i || `일치하지 않는 형태입니다. (${l == null ? void 0 : l.toString()})`, { isValid: r, message: n };
  let p;
  if (typeof t == "number" ? p = t : typeof t == "string" && (p = Number(Number(t).toFixed(25)), p = isNaN(p) ? void 0 : p), isNotEmptyOr(a, u) && (p === void 0 && (r = !1, n = i || "숫자 형태가 아닙니다."), !r))
    return { isValid: r, message: n };
  if (isNotEmpty(a) && (p > a && (console.log(p, a, p > a), r = !1, n = i || `${a} 보다 클 수 없습니다.`), !r))
    return { isValid: r, message: n };
  if (isNotEmpty(u) && (p < u && (r = !1, n = i || `${u} 보다 작을 수 없습니다.`), !r))
    return { isValid: r, message: n };
  if (typeof t == "string" || typeof t > "u") {
    if (isNotEmpty(f) && ((t ? t.length : 0) > f && (r = !1, n = i || `문자열의 최대길이는 ${f}입니다.`), !r))
      return { isValid: r, message: n };
    if (isNotEmpty(c) && ((t ? t.length : 0) < c && (r = !1, n = i || `문자열의 최소길이는 ${c}입니다.`), !r))
      return { isValid: r, message: n };
    if (isNotEmpty(y) && ((t ? new Blob([t]).size : 0) > y && (r = !1, n = i || `문자열의 최대 byte길이는 ${y}입니다.`), !r))
      return { isValid: r, message: n };
    if (isNotEmpty(s) && ((t ? new Blob([t]).size : 0) < s && (r = !1, n = i || `문자열의 최소 byte길이는 ${s}입니다.`), !r))
      return { isValid: r, message: n };
  }
  return { isValid: r, message: "" };
};
//# sourceMappingURL=functions.es.js.map
