import { w as St, g as bt, u as wt } from "./index-d0388830.js";
var At = 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 o = 42;
  e[r] = o;
  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 i = Object.getOwnPropertySymbols(e);
  if (i.length !== 1 || i[0] !== r || !Object.prototype.propertyIsEnumerable.call(e, r))
    return !1;
  if (typeof Object.getOwnPropertyDescriptor == "function") {
    var f = Object.getOwnPropertyDescriptor(e, r);
    if (f.value !== o || f.enumerable !== !0)
      return !1;
  }
  return !0;
}, Le = typeof Symbol < "u" && Symbol, Et = At, xt = function() {
  return typeof Le != "function" || typeof Symbol != "function" || typeof Le("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Et();
}, We = {
  foo: {}
}, Ot = Object, Pt = function() {
  return { __proto__: We }.foo === We.foo && !({ __proto__: null } instanceof Ot);
}, $t = "Function.prototype.bind called on incompatible ", me = Array.prototype.slice, Rt = Object.prototype.toString, It = "[object Function]", Ft = function(e) {
  var r = this;
  if (typeof r != "function" || Rt.call(r) !== It)
    throw new TypeError($t + r);
  for (var n = me.call(arguments, 1), o, i = function() {
    if (this instanceof o) {
      var c = r.apply(
        this,
        n.concat(me.call(arguments))
      );
      return Object(c) === c ? c : this;
    } else
      return r.apply(
        e,
        n.concat(me.call(arguments))
      );
  }, f = Math.max(0, r.length - n.length), l = [], u = 0; u < f; u++)
    l.push("$" + u);
  if (o = Function("binder", "return function (" + l.join(",") + "){ return binder.apply(this,arguments); }")(i), r.prototype) {
    var a = function() {
    };
    a.prototype = r.prototype, o.prototype = new a(), a.prototype = null;
  }
  return o;
}, Nt = Ft, Ne = Function.prototype.bind || Nt, Tt = Ne, Mt = Tt.call(Function.call, Object.prototype.hasOwnProperty), d, J = SyntaxError, ot = Function, Q = TypeError, ve = function(t) {
  try {
    return ot('"use strict"; return (' + t + ").constructor;")();
  } catch {
  }
}, U = Object.getOwnPropertyDescriptor;
if (U)
  try {
    U({}, "");
  } catch {
    U = null;
  }
var he = function() {
  throw new Q();
}, Bt = U ? function() {
  try {
    return arguments.callee, he;
  } catch {
    try {
      return U(arguments, "callee").get;
    } catch {
      return he;
    }
  }
}() : he, H = xt(), Ct = Pt(), g = Object.getPrototypeOf || (Ct ? function(t) {
  return t.__proto__;
} : null), q = {}, Dt = typeof Uint8Array > "u" || !g ? d : g(Uint8Array), _ = {
  "%AggregateError%": typeof AggregateError > "u" ? d : AggregateError,
  "%Array%": Array,
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? d : ArrayBuffer,
  "%ArrayIteratorPrototype%": H && 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%": ot,
  "%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%": H && g ? g(g([][Symbol.iterator]())) : d,
  "%JSON%": typeof JSON == "object" ? JSON : d,
  "%Map%": typeof Map > "u" ? d : Map,
  "%MapIteratorPrototype%": typeof Map > "u" || !H || !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" || !H || !g ? d : g((/* @__PURE__ */ new Set())[Symbol.iterator]()),
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? d : SharedArrayBuffer,
  "%String%": String,
  "%StringIteratorPrototype%": H && g ? g(""[Symbol.iterator]()) : d,
  "%Symbol%": H ? Symbol : d,
  "%SyntaxError%": J,
  "%ThrowTypeError%": Bt,
  "%TypedArray%": Dt,
  "%TypeError%": Q,
  "%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 Ut = g(g(t));
    _["%Error.prototype%"] = Ut;
  }
var _t = function t(e) {
  var r;
  if (e === "%AsyncFunction%")
    r = ve("async function () {}");
  else if (e === "%GeneratorFunction%")
    r = ve("function* () {}");
  else if (e === "%AsyncGeneratorFunction%")
    r = ve("async function* () {}");
  else if (e === "%AsyncGenerator%") {
    var n = t("%AsyncGeneratorFunction%");
    n && (r = n.prototype);
  } else if (e === "%AsyncIteratorPrototype%") {
    var o = t("%AsyncGenerator%");
    o && g && (r = g(o.prototype));
  }
  return _[e] = r, r;
}, ke = {
  "%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"]
}, ne = Ne, se = Mt, Lt = ne.call(Function.call, Array.prototype.concat), Wt = ne.call(Function.apply, Array.prototype.splice), ze = ne.call(Function.call, String.prototype.replace), pe = ne.call(Function.call, String.prototype.slice), kt = ne.call(Function.call, RegExp.prototype.exec), zt = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Gt = /\\(\\)?/g, Ht = function(e) {
  var r = pe(e, 0, 1), n = pe(e, -1);
  if (r === "%" && n !== "%")
    throw new J("invalid intrinsic syntax, expected closing `%`");
  if (n === "%" && r !== "%")
    throw new J("invalid intrinsic syntax, expected opening `%`");
  var o = [];
  return ze(e, zt, function(i, f, l, u) {
    o[o.length] = l ? ze(u, Gt, "$1") : f || i;
  }), o;
}, qt = function(e, r) {
  var n = e, o;
  if (se(ke, n) && (o = ke[n], n = "%" + o[0] + "%"), se(_, n)) {
    var i = _[n];
    if (i === q && (i = _t(n)), typeof i > "u" && !r)
      throw new Q("intrinsic " + e + " exists, but is not available. Please file an issue!");
    return {
      alias: o,
      name: n,
      value: i
    };
  }
  throw new J("intrinsic " + e + " does not exist!");
}, Te = function(e, r) {
  if (typeof e != "string" || e.length === 0)
    throw new Q("intrinsic name must be a non-empty string");
  if (arguments.length > 1 && typeof r != "boolean")
    throw new Q('"allowMissing" argument must be a boolean');
  if (kt(/^%?[^%]*%?$/, e) === null)
    throw new J("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
  var n = Ht(e), o = n.length > 0 ? n[0] : "", i = qt("%" + o + "%", r), f = i.name, l = i.value, u = !1, a = i.alias;
  a && (o = a[0], Wt(n, Lt([0, 1], a)));
  for (var c = 1, y = !0; c < n.length; c += 1) {
    var s = n[c], p = pe(s, 0, 1), v = pe(s, -1);
    if ((p === '"' || p === "'" || p === "`" || v === '"' || v === "'" || v === "`") && p !== v)
      throw new J("property names with quotes must have matching quotes");
    if ((s === "constructor" || !y) && (u = !0), o += "." + s, f = "%" + o + "%", se(_, f))
      l = _[f];
    else if (l != null) {
      if (!(s in l)) {
        if (!r)
          throw new Q("base intrinsic for " + e + " exists, but the property is not available.");
        return;
      }
      if (U && c + 1 >= n.length) {
        var A = U(l, s);
        y = !!A, y && "get" in A && !("originalValue" in A.get) ? l = A.get : l = l[s];
      } else
        y = se(l, s), l = l[s];
      y && !u && (_[f] = l);
    }
  }
  return l;
}, it = { exports: {} };
(function(t) {
  var e = Ne, r = Te, n = r("%Function.prototype.apply%"), o = r("%Function.prototype.call%"), i = r("%Reflect.apply%", !0) || e.call(o, n), f = r("%Object.getOwnPropertyDescriptor%", !0), l = r("%Object.defineProperty%", !0), u = r("%Math.max%");
  if (l)
    try {
      l({}, "a", { value: 1 });
    } catch {
      l = null;
    }
  t.exports = function(y) {
    var s = i(e, o, arguments);
    if (f && l) {
      var p = f(s, "length");
      p.configurable && l(
        s,
        "length",
        { value: 1 + u(0, y.length - (arguments.length - 1)) }
      );
    }
    return s;
  };
  var a = function() {
    return i(e, n, arguments);
  };
  l ? l(t.exports, "apply", { value: a }) : t.exports.apply = a;
})(it);
var Qt = it.exports, at = Te, lt = Qt, Jt = lt(at("String.prototype.indexOf")), Yt = function(e, r) {
  var n = at(e, !!r);
  return typeof n == "function" && Jt(e, ".prototype.") > -1 ? lt(n) : n;
};
const Vt = {}, Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  default: Vt
}, Symbol.toStringTag, { value: "Module" })), Kt = /* @__PURE__ */ St(Zt);
var Me = typeof Map == "function" && Map.prototype, ge = Object.getOwnPropertyDescriptor && Me ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ye = Me && ge && typeof ge.get == "function" ? ge.get : null, Ge = Me && Map.prototype.forEach, Be = typeof Set == "function" && Set.prototype, Se = Object.getOwnPropertyDescriptor && Be ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, de = Be && Se && typeof Se.get == "function" ? Se.get : null, He = Be && Set.prototype.forEach, Xt = typeof WeakMap == "function" && WeakMap.prototype, ee = Xt ? WeakMap.prototype.has : null, jt = typeof WeakSet == "function" && WeakSet.prototype, te = jt ? WeakSet.prototype.has : null, er = typeof WeakRef == "function" && WeakRef.prototype, qe = er ? WeakRef.prototype.deref : null, tr = Boolean.prototype.valueOf, rr = Object.prototype.toString, nr = Function.prototype.toString, or = String.prototype.match, Ce = String.prototype.slice, M = String.prototype.replace, ir = String.prototype.toUpperCase, Qe = String.prototype.toLowerCase, ft = RegExp.prototype.test, Je = Array.prototype.concat, O = Array.prototype.join, ar = Array.prototype.slice, Ye = Math.floor, Oe = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, be = Object.getOwnPropertySymbols, Pe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Y = typeof Symbol == "function" && typeof Symbol.iterator == "object", w = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Y || "symbol") ? Symbol.toStringTag : null, ut = Object.prototype.propertyIsEnumerable, Ve = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
  return t.__proto__;
} : null);
function Ze(t, e) {
  if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || ft.call(/e/, e))
    return e;
  var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
  if (typeof t == "number") {
    var n = t < 0 ? -Ye(-t) : Ye(t);
    if (n !== t) {
      var o = String(n), i = Ce.call(e, o.length + 1);
      return M.call(o, r, "$&_") + "." + M.call(M.call(i, /([0-9]{3})/g, "$&_"), /_$/, "");
    }
  }
  return M.call(e, r, "$&_");
}
var $e = Kt, Ke = $e.custom, Xe = st(Ke) ? Ke : null, lr = function t(e, r, n, o) {
  var i = r || {};
  if (T(i, "quoteStyle") && i.quoteStyle !== "single" && i.quoteStyle !== "double")
    throw new TypeError('option "quoteStyle" must be "single" or "double"');
  if (T(i, "maxStringLength") && (typeof i.maxStringLength == "number" ? i.maxStringLength < 0 && i.maxStringLength !== 1 / 0 : i.maxStringLength !== null))
    throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
  var f = T(i, "customInspect") ? i.customInspect : !0;
  if (typeof f != "boolean" && f !== "symbol")
    throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
  if (T(i, "indent") && i.indent !== null && i.indent !== "	" && !(parseInt(i.indent, 10) === i.indent && i.indent > 0))
    throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
  if (T(i, "numericSeparator") && typeof i.numericSeparator != "boolean")
    throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
  var l = i.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 yt(e, i);
  if (typeof e == "number") {
    if (e === 0)
      return 1 / 0 / e > 0 ? "0" : "-0";
    var u = String(e);
    return l ? Ze(e, u) : u;
  }
  if (typeof e == "bigint") {
    var a = String(e) + "n";
    return l ? Ze(e, a) : a;
  }
  var c = typeof i.depth > "u" ? 5 : i.depth;
  if (typeof n > "u" && (n = 0), n >= c && c > 0 && typeof e == "object")
    return Re(e) ? "[Array]" : "[Object]";
  var y = Or(i, n);
  if (typeof o > "u")
    o = [];
  else if (pt(o, e) >= 0)
    return "[Circular]";
  function s(R, z, ie) {
    if (z && (o = ar.call(o), o.push(z)), ie) {
      var G = {
        depth: i.depth
      };
      return T(i, "quoteStyle") && (G.quoteStyle = i.quoteStyle), t(R, G, n + 1, o);
    }
    return t(R, i, n + 1, o);
  }
  if (typeof e == "function" && !je(e)) {
    var p = vr(e), v = ae(e, s);
    return "[Function" + (p ? ": " + p : " (anonymous)") + "]" + (v.length > 0 ? " { " + O.call(v, ", ") + " }" : "");
  }
  if (st(e)) {
    var A = Y ? M.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Pe.call(e);
    return typeof e == "object" && !Y ? j(A) : A;
  }
  if (Ar(e)) {
    for (var P = "<" + Qe.call(String(e.nodeName)), m = e.attributes || [], $ = 0; $ < m.length; $++)
      P += " " + m[$].name + "=" + ct(fr(m[$].value), "double", i);
    return P += ">", e.childNodes && e.childNodes.length && (P += "..."), P += "</" + Qe.call(String(e.nodeName)) + ">", P;
  }
  if (Re(e)) {
    if (e.length === 0)
      return "[]";
    var F = ae(e, s);
    return y && !xr(F) ? "[" + Ie(F, y) + "]" : "[ " + O.call(F, ", ") + " ]";
  }
  if (cr(e)) {
    var L = ae(e, s);
    return !("cause" in Error.prototype) && "cause" in e && !ut.call(e, "cause") ? "{ [" + String(e) + "] " + O.call(Je.call("[cause]: " + s(e.cause), L), ", ") + " }" : L.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + O.call(L, ", ") + " }";
  }
  if (typeof e == "object" && f) {
    if (Xe && typeof e[Xe] == "function" && $e)
      return $e(e, { depth: c - n });
    if (f !== "symbol" && typeof e.inspect == "function")
      return e.inspect();
  }
  if (hr(e)) {
    var K = [];
    return Ge && Ge.call(e, function(R, z) {
      K.push(s(z, e, !0) + " => " + s(R, e));
    }), et("Map", ye.call(e), K, y);
  }
  if (br(e)) {
    var oe = [];
    return He && He.call(e, function(R) {
      oe.push(s(R, e));
    }), et("Set", de.call(e), oe, y);
  }
  if (gr(e))
    return we("WeakMap");
  if (wr(e))
    return we("WeakSet");
  if (Sr(e))
    return we("WeakRef");
  if (pr(e))
    return j(s(Number(e)));
  if (dr(e))
    return j(s(Oe.call(e)));
  if (yr(e))
    return j(tr.call(e));
  if (sr(e))
    return j(s(String(e)));
  if (!ur(e) && !je(e)) {
    var C = ae(e, s), N = Ve ? Ve(e) === Object.prototype : e instanceof Object || e.constructor === Object, W = e instanceof Object ? "" : "null prototype", k = !N && w && Object(e) === e && w in e ? Ce.call(B(e), 8, -1) : W ? "Object" : "", X = N || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", E = X + (k || W ? "[" + O.call(Je.call([], k || [], W || []), ": ") + "] " : "");
    return C.length === 0 ? E + "{}" : y ? E + "{" + Ie(C, y) + "}" : E + "{ " + O.call(C, ", ") + " }";
  }
  return String(e);
};
function ct(t, e, r) {
  var n = (r.quoteStyle || e) === "double" ? '"' : "'";
  return n + t + n;
}
function fr(t) {
  return M.call(String(t), /"/g, "&quot;");
}
function Re(t) {
  return B(t) === "[object Array]" && (!w || !(typeof t == "object" && w in t));
}
function ur(t) {
  return B(t) === "[object Date]" && (!w || !(typeof t == "object" && w in t));
}
function je(t) {
  return B(t) === "[object RegExp]" && (!w || !(typeof t == "object" && w in t));
}
function cr(t) {
  return B(t) === "[object Error]" && (!w || !(typeof t == "object" && w in t));
}
function sr(t) {
  return B(t) === "[object String]" && (!w || !(typeof t == "object" && w in t));
}
function pr(t) {
  return B(t) === "[object Number]" && (!w || !(typeof t == "object" && w in t));
}
function yr(t) {
  return B(t) === "[object Boolean]" && (!w || !(typeof t == "object" && w in t));
}
function st(t) {
  if (Y)
    return t && typeof t == "object" && t instanceof Symbol;
  if (typeof t == "symbol")
    return !0;
  if (!t || typeof t != "object" || !Pe)
    return !1;
  try {
    return Pe.call(t), !0;
  } catch {
  }
  return !1;
}
function dr(t) {
  if (!t || typeof t != "object" || !Oe)
    return !1;
  try {
    return Oe.call(t), !0;
  } catch {
  }
  return !1;
}
var mr = Object.prototype.hasOwnProperty || function(t) {
  return t in this;
};
function T(t, e) {
  return mr.call(t, e);
}
function B(t) {
  return rr.call(t);
}
function vr(t) {
  if (t.name)
    return t.name;
  var e = or.call(nr.call(t), /^function\s*([\w$]+)/);
  return e ? e[1] : null;
}
function pt(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 hr(t) {
  if (!ye || !t || typeof t != "object")
    return !1;
  try {
    ye.call(t);
    try {
      de.call(t);
    } catch {
      return !0;
    }
    return t instanceof Map;
  } catch {
  }
  return !1;
}
function gr(t) {
  if (!ee || !t || typeof t != "object")
    return !1;
  try {
    ee.call(t, ee);
    try {
      te.call(t, te);
    } catch {
      return !0;
    }
    return t instanceof WeakMap;
  } catch {
  }
  return !1;
}
function Sr(t) {
  if (!qe || !t || typeof t != "object")
    return !1;
  try {
    return qe.call(t), !0;
  } catch {
  }
  return !1;
}
function br(t) {
  if (!de || !t || typeof t != "object")
    return !1;
  try {
    de.call(t);
    try {
      ye.call(t);
    } catch {
      return !0;
    }
    return t instanceof Set;
  } catch {
  }
  return !1;
}
function wr(t) {
  if (!te || !t || typeof t != "object")
    return !1;
  try {
    te.call(t, te);
    try {
      ee.call(t, ee);
    } catch {
      return !0;
    }
    return t instanceof WeakSet;
  } catch {
  }
  return !1;
}
function Ar(t) {
  return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
}
function yt(t, e) {
  if (t.length > e.maxStringLength) {
    var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
    return yt(Ce.call(t, 0, e.maxStringLength), e) + n;
  }
  var o = M.call(M.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Er);
  return ct(o, "single", e);
}
function Er(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" : "") + ir.call(e.toString(16));
}
function j(t) {
  return "Object(" + t + ")";
}
function we(t) {
  return t + " { ? }";
}
function et(t, e, r, n) {
  var o = n ? Ie(r, n) : O.call(r, ", ");
  return t + " (" + e + ") {" + o + "}";
}
function xr(t) {
  for (var e = 0; e < t.length; e++)
    if (pt(t[e], `
`) >= 0)
      return !1;
  return !0;
}
function Or(t, e) {
  var r;
  if (t.indent === "	")
    r = "	";
  else if (typeof t.indent == "number" && t.indent > 0)
    r = O.call(Array(t.indent + 1), " ");
  else
    return null;
  return {
    base: r,
    prev: O.call(Array(e + 1), r)
  };
}
function Ie(t, e) {
  if (t.length === 0)
    return "";
  var r = `
` + e.prev + e.base;
  return r + O.call(t, "," + r) + `
` + e.prev;
}
function ae(t, e) {
  var r = Re(t), n = [];
  if (r) {
    n.length = t.length;
    for (var o = 0; o < t.length; o++)
      n[o] = T(t, o) ? e(t[o], t) : "";
  }
  var i = typeof be == "function" ? be(t) : [], f;
  if (Y) {
    f = {};
    for (var l = 0; l < i.length; l++)
      f["$" + i[l]] = i[l];
  }
  for (var u in t)
    T(t, u) && (r && String(Number(u)) === u && u < t.length || Y && f["$" + u] instanceof Symbol || (ft.call(/[^\w$]/, u) ? n.push(e(u, t) + ": " + e(t[u], t)) : n.push(u + ": " + e(t[u], t))));
  if (typeof be == "function")
    for (var a = 0; a < i.length; a++)
      ut.call(t, i[a]) && n.push("[" + e(i[a]) + "]: " + e(t[i[a]], t));
  return n;
}
var De = Te, Z = Yt, Pr = lr, $r = De("%TypeError%"), le = De("%WeakMap%", !0), fe = De("%Map%", !0), Rr = Z("WeakMap.prototype.get", !0), Ir = Z("WeakMap.prototype.set", !0), Fr = Z("WeakMap.prototype.has", !0), Nr = Z("Map.prototype.get", !0), Tr = Z("Map.prototype.set", !0), Mr = Z("Map.prototype.has", !0), Ue = 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;
}, Br = function(t, e) {
  var r = Ue(t, e);
  return r && r.value;
}, Cr = function(t, e, r) {
  var n = Ue(t, e);
  n ? n.value = r : t.next = {
    // eslint-disable-line no-param-reassign
    key: e,
    next: t.next,
    value: r
  };
}, Dr = function(t, e) {
  return !!Ue(t, e);
}, Ur = function() {
  var e, r, n, o = {
    assert: function(i) {
      if (!o.has(i))
        throw new $r("Side channel does not contain " + Pr(i));
    },
    get: function(i) {
      if (le && i && (typeof i == "object" || typeof i == "function")) {
        if (e)
          return Rr(e, i);
      } else if (fe) {
        if (r)
          return Nr(r, i);
      } else if (n)
        return Br(n, i);
    },
    has: function(i) {
      if (le && i && (typeof i == "object" || typeof i == "function")) {
        if (e)
          return Fr(e, i);
      } else if (fe) {
        if (r)
          return Mr(r, i);
      } else if (n)
        return Dr(n, i);
      return !1;
    },
    set: function(i, f) {
      le && i && (typeof i == "object" || typeof i == "function") ? (e || (e = new le()), Ir(e, i, f)) : fe ? (r || (r = new fe()), Tr(r, i, f)) : (n || (n = { key: {}, next: null }), Cr(n, i, f));
    }
  };
  return o;
}, _r = String.prototype.replace, Lr = /%20/g, Ae = {
  RFC1738: "RFC1738",
  RFC3986: "RFC3986"
}, _e = {
  default: Ae.RFC3986,
  formatters: {
    RFC1738: function(t) {
      return _r.call(t, Lr, "+");
    },
    RFC3986: function(t) {
      return String(t);
    }
  },
  RFC1738: Ae.RFC1738,
  RFC3986: Ae.RFC3986
}, Wr = _e, Ee = Object.prototype.hasOwnProperty, D = Array.isArray, x = function() {
  for (var t = [], e = 0; e < 256; ++e)
    t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
  return t;
}(), kr = function(e) {
  for (; e.length > 1; ) {
    var r = e.pop(), n = r.obj[r.prop];
    if (D(n)) {
      for (var o = [], i = 0; i < n.length; ++i)
        typeof n[i] < "u" && o.push(n[i]);
      r.obj[r.prop] = o;
    }
  }
}, dt = function(e, r) {
  for (var n = r && r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = 0; o < e.length; ++o)
    typeof e[o] < "u" && (n[o] = e[o]);
  return n;
}, zr = function t(e, r, n) {
  if (!r)
    return e;
  if (typeof r != "object") {
    if (D(e))
      e.push(r);
    else if (e && typeof e == "object")
      (n && (n.plainObjects || n.allowPrototypes) || !Ee.call(Object.prototype, r)) && (e[r] = !0);
    else
      return [e, r];
    return e;
  }
  if (!e || typeof e != "object")
    return [e].concat(r);
  var o = e;
  return D(e) && !D(r) && (o = dt(e, n)), D(e) && D(r) ? (r.forEach(function(i, f) {
    if (Ee.call(e, f)) {
      var l = e[f];
      l && typeof l == "object" && i && typeof i == "object" ? e[f] = t(l, i, n) : e.push(i);
    } else
      e[f] = i;
  }), e) : Object.keys(r).reduce(function(i, f) {
    var l = r[f];
    return Ee.call(i, f) ? i[f] = t(i[f], l, n) : i[f] = l, i;
  }, o);
}, Gr = function(e, r) {
  return Object.keys(r).reduce(function(n, o) {
    return n[o] = r[o], n;
  }, e);
}, Hr = 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;
  }
}, qr = function(e, r, n, o, i) {
  if (e.length === 0)
    return e;
  var f = e;
  if (typeof e == "symbol" ? f = Symbol.prototype.toString.call(e) : typeof e != "string" && (f = String(e)), n === "iso-8859-1")
    return escape(f).replace(/%u[0-9a-f]{4}/gi, function(c) {
      return "%26%23" + parseInt(c.slice(2), 16) + "%3B";
    });
  for (var l = "", u = 0; u < f.length; ++u) {
    var a = f.charCodeAt(u);
    if (a === 45 || a === 46 || a === 95 || a === 126 || a >= 48 && a <= 57 || a >= 65 && a <= 90 || a >= 97 && a <= 122 || i === Wr.RFC1738 && (a === 40 || a === 41)) {
      l += f.charAt(u);
      continue;
    }
    if (a < 128) {
      l = l + x[a];
      continue;
    }
    if (a < 2048) {
      l = l + (x[192 | a >> 6] + x[128 | a & 63]);
      continue;
    }
    if (a < 55296 || a >= 57344) {
      l = l + (x[224 | a >> 12] + x[128 | a >> 6 & 63] + x[128 | a & 63]);
      continue;
    }
    u += 1, a = 65536 + ((a & 1023) << 10 | f.charCodeAt(u) & 1023), l += x[240 | a >> 18] + x[128 | a >> 12 & 63] + x[128 | a >> 6 & 63] + x[128 | a & 63];
  }
  return l;
}, Qr = function(e) {
  for (var r = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < r.length; ++o)
    for (var i = r[o], f = i.obj[i.prop], l = Object.keys(f), u = 0; u < l.length; ++u) {
      var a = l[u], c = f[a];
      typeof c == "object" && c !== null && n.indexOf(c) === -1 && (r.push({ obj: f, prop: a }), n.push(c));
    }
  return kr(r), e;
}, Jr = function(e) {
  return Object.prototype.toString.call(e) === "[object RegExp]";
}, Yr = function(e) {
  return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
}, Vr = function(e, r) {
  return [].concat(e, r);
}, Zr = function(e, r) {
  if (D(e)) {
    for (var n = [], o = 0; o < e.length; o += 1)
      n.push(r(e[o]));
    return n;
  }
  return r(e);
}, mt = {
  arrayToObject: dt,
  assign: Gr,
  combine: Vr,
  compact: Qr,
  decode: Hr,
  encode: qr,
  isBuffer: Yr,
  isRegExp: Jr,
  maybeMap: Zr,
  merge: zr
}, vt = Ur, ce = mt, re = _e, Kr = Object.prototype.hasOwnProperty, tt = {
  brackets: function(e) {
    return e + "[]";
  },
  comma: "comma",
  indices: function(e, r) {
    return e + "[" + r + "]";
  },
  repeat: function(e) {
    return e;
  }
}, I = Array.isArray, Xr = Array.prototype.push, ht = function(t, e) {
  Xr.apply(t, I(e) ? e : [e]);
}, jr = Date.prototype.toISOString, rt = re.default, b = {
  addQueryPrefix: !1,
  allowDots: !1,
  charset: "utf-8",
  charsetSentinel: !1,
  delimiter: "&",
  encode: !0,
  encoder: ce.encode,
  encodeValuesOnly: !1,
  format: rt,
  formatter: re.formatters[rt],
  // deprecated
  indices: !1,
  serializeDate: function(e) {
    return jr.call(e);
  },
  skipNulls: !1,
  strictNullHandling: !1
}, en = function(e) {
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
}, xe = {}, tn = function t(e, r, n, o, i, f, l, u, a, c, y, s, p, v, A, P) {
  for (var m = e, $ = P, F = 0, L = !1; ($ = $.get(xe)) !== void 0 && !L; ) {
    var K = $.get(e);
    if (F += 1, typeof K < "u") {
      if (K === F)
        throw new RangeError("Cyclic object value");
      L = !0;
    }
    typeof $.get(xe) > "u" && (F = 0);
  }
  if (typeof u == "function" ? m = u(r, m) : m instanceof Date ? m = y(m) : n === "comma" && I(m) && (m = ce.maybeMap(m, function(G) {
    return G instanceof Date ? y(G) : G;
  })), m === null) {
    if (i)
      return l && !v ? l(r, b.encoder, A, "key", s) : r;
    m = "";
  }
  if (en(m) || ce.isBuffer(m)) {
    if (l) {
      var oe = v ? r : l(r, b.encoder, A, "key", s);
      return [p(oe) + "=" + p(l(m, b.encoder, A, "value", s))];
    }
    return [p(r) + "=" + p(String(m))];
  }
  var C = [];
  if (typeof m > "u")
    return C;
  var N;
  if (n === "comma" && I(m))
    v && l && (m = ce.maybeMap(m, l)), N = [{ value: m.length > 0 ? m.join(",") || null : void 0 }];
  else if (I(u))
    N = u;
  else {
    var W = Object.keys(m);
    N = a ? W.sort(a) : W;
  }
  for (var k = o && I(m) && m.length === 1 ? r + "[]" : r, X = 0; X < N.length; ++X) {
    var E = N[X], R = typeof E == "object" && typeof E.value < "u" ? E.value : m[E];
    if (!(f && R === null)) {
      var z = I(m) ? typeof n == "function" ? n(k, E) : k : k + (c ? "." + E : "[" + E + "]");
      P.set(e, F);
      var ie = vt();
      ie.set(xe, P), ht(C, t(
        R,
        z,
        n,
        o,
        i,
        f,
        n === "comma" && v && I(m) ? null : l,
        u,
        a,
        c,
        y,
        s,
        p,
        v,
        A,
        ie
      ));
    }
  }
  return C;
}, rn = 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 = re.default;
  if (typeof e.format < "u") {
    if (!Kr.call(re.formatters, e.format))
      throw new TypeError("Unknown format option provided.");
    n = e.format;
  }
  var o = re.formatters[n], i = b.filter;
  return (typeof e.filter == "function" || I(e.filter)) && (i = 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: i,
    format: n,
    formatter: o,
    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
  };
}, nn = function(t, e) {
  var r = t, n = rn(e), o, i;
  typeof n.filter == "function" ? (i = n.filter, r = i("", r)) : I(n.filter) && (i = n.filter, o = i);
  var f = [];
  if (typeof r != "object" || r === null)
    return "";
  var l;
  e && e.arrayFormat in tt ? l = e.arrayFormat : e && "indices" in e ? l = e.indices ? "indices" : "repeat" : l = "indices";
  var u = tt[l];
  if (e && "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
    throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
  var a = u === "comma" && e && e.commaRoundTrip;
  o || (o = Object.keys(r)), n.sort && o.sort(n.sort);
  for (var c = vt(), y = 0; y < o.length; ++y) {
    var s = o[y];
    n.skipNulls && r[s] === null || ht(f, tn(
      r[s],
      s,
      u,
      a,
      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 = f.join(n.delimiter), v = n.addQueryPrefix === !0 ? "?" : "";
  return n.charsetSentinel && (n.charset === "iso-8859-1" ? v += "utf8=%26%2310003%3B&" : v += "utf8=%E2%9C%93&"), p.length > 0 ? v + p : "";
}, V = mt, Fe = Object.prototype.hasOwnProperty, on = Array.isArray, h = {
  allowDots: !1,
  allowPrototypes: !1,
  allowSparse: !1,
  arrayLimit: 20,
  charset: "utf-8",
  charsetSentinel: !1,
  comma: !1,
  decoder: V.decode,
  delimiter: "&",
  depth: 5,
  ignoreQueryPrefix: !1,
  interpretNumericEntities: !1,
  parameterLimit: 1e3,
  parseArrays: !0,
  plainObjects: !1,
  strictNullHandling: !1
}, an = function(t) {
  return t.replace(/&#(\d+);/g, function(e, r) {
    return String.fromCharCode(parseInt(r, 10));
  });
}, gt = function(t, e) {
  return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
}, ln = "utf8=%26%2310003%3B", fn = "utf8=%E2%9C%93", un = function(e, r) {
  var n = { __proto__: null }, o = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, i = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, f = o.split(r.delimiter, i), l = -1, u, a = r.charset;
  if (r.charsetSentinel)
    for (u = 0; u < f.length; ++u)
      f[u].indexOf("utf8=") === 0 && (f[u] === fn ? a = "utf-8" : f[u] === ln && (a = "iso-8859-1"), l = u, u = f.length);
  for (u = 0; u < f.length; ++u)
    if (u !== l) {
      var c = f[u], y = c.indexOf("]="), s = y === -1 ? c.indexOf("=") : y + 1, p, v;
      s === -1 ? (p = r.decoder(c, h.decoder, a, "key"), v = r.strictNullHandling ? null : "") : (p = r.decoder(c.slice(0, s), h.decoder, a, "key"), v = V.maybeMap(
        gt(c.slice(s + 1), r),
        function(A) {
          return r.decoder(A, h.decoder, a, "value");
        }
      )), v && r.interpretNumericEntities && a === "iso-8859-1" && (v = an(v)), c.indexOf("[]=") > -1 && (v = on(v) ? [v] : v), Fe.call(n, p) ? n[p] = V.combine(n[p], v) : n[p] = v;
    }
  return n;
}, cn = function(t, e, r, n) {
  for (var o = n ? e : gt(e, r), i = t.length - 1; i >= 0; --i) {
    var f, l = t[i];
    if (l === "[]" && r.parseArrays)
      f = [].concat(o);
    else {
      f = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
      var u = l.charAt(0) === "[" && l.charAt(l.length - 1) === "]" ? l.slice(1, -1) : l, a = parseInt(u, 10);
      !r.parseArrays && u === "" ? f = { 0: o } : !isNaN(a) && l !== u && String(a) === u && a >= 0 && r.parseArrays && a <= r.arrayLimit ? (f = [], f[a] = o) : u !== "__proto__" && (f[u] = o);
    }
    o = f;
  }
  return o;
}, sn = function(e, r, n, o) {
  if (e) {
    var i = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, f = /(\[[^[\]]*])/, l = /(\[[^[\]]*])/g, u = n.depth > 0 && f.exec(i), a = u ? i.slice(0, u.index) : i, c = [];
    if (a) {
      if (!n.plainObjects && Fe.call(Object.prototype, a) && !n.allowPrototypes)
        return;
      c.push(a);
    }
    for (var y = 0; n.depth > 0 && (u = l.exec(i)) !== null && y < n.depth; ) {
      if (y += 1, !n.plainObjects && Fe.call(Object.prototype, u[1].slice(1, -1)) && !n.allowPrototypes)
        return;
      c.push(u[1]);
    }
    return u && c.push("[" + i.slice(u.index) + "]"), cn(c, r, n, o);
  }
}, pn = function(e) {
  if (!e)
    return h;
  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" ? h.charset : e.charset;
  return {
    allowDots: typeof e.allowDots > "u" ? h.allowDots : !!e.allowDots,
    allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : h.allowPrototypes,
    allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : h.allowSparse,
    arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : h.arrayLimit,
    charset: r,
    charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : h.charsetSentinel,
    comma: typeof e.comma == "boolean" ? e.comma : h.comma,
    decoder: typeof e.decoder == "function" ? e.decoder : h.decoder,
    delimiter: typeof e.delimiter == "string" || V.isRegExp(e.delimiter) ? e.delimiter : h.delimiter,
    // eslint-disable-next-line no-implicit-coercion, no-extra-parens
    depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : h.depth,
    ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
    interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : h.interpretNumericEntities,
    parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : h.parameterLimit,
    parseArrays: e.parseArrays !== !1,
    plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : h.plainObjects,
    strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : h.strictNullHandling
  };
}, yn = function(t, e) {
  var r = pn(e);
  if (t === "" || t === null || typeof t > "u")
    return r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
  for (var n = typeof t == "string" ? un(t, r) : t, o = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, i = Object.keys(n), f = 0; f < i.length; ++f) {
    var l = i[f], u = sn(l, n[l], r, typeof t == "string");
    o = V.merge(o, u, r);
  }
  return r.allowSparse === !0 ? o : V.compact(o);
}, dn = nn, mn = yn, vn = _e, hn = {
  formats: vn,
  parse: mn,
  stringify: dn
};
const gn = /* @__PURE__ */ bt(hn);
let ue;
const Sn = new Uint8Array(16);
function bn() {
  if (!ue && (ue = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ue))
    throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
  return ue(Sn);
}
const S = [];
for (let t = 0; t < 256; ++t)
  S.push((t + 256).toString(16).slice(1));
function wn(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 An = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), nt = {
  randomUUID: An
};
function En(t, e, r) {
  if (nt.randomUUID && !e && !t)
    return nt.randomUUID();
  t = t || {};
  const n = t.random || (t.rng || bn)();
  if (n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, e) {
    r = r || 0;
    for (let o = 0; o < 16; ++o)
      e[r + o] = n[o];
    return e;
  }
  return wn(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: {
    selectedRowOrder: (t, e, r) => {
      const n = "_isSelected";
      let o = e.findIndex((c) => c[n]);
      if (o < 0)
        return !1;
      let i = e[o].depth, f = o, l = -1, u = -1, a = 0;
      if (t) {
        if (o + 1 < e.length) {
          for (a = 0; a < e.length; a++) {
            const c = e[a];
            if (a > o) {
              if (c.depth < i)
                break;
              if (c.depth === i) {
                l = a, f = a - 1;
                break;
              }
            }
          }
          if (l >= 0) {
            for (a = 0; a < e.length; a++) {
              const p = e[a];
              if (a > l) {
                if (p.depth < i)
                  break;
                if (p.depth === i) {
                  u = a - 1;
                  break;
                } else if (a === e.length - 1) {
                  u = a;
                  break;
                }
              }
            }
            u < 0 && (u = l);
            let c = [], y = e.slice(o, f + 1), s = e.slice(l, u + 1);
            0 < o && c.push(...e.slice(0, o)), c.push(...s), c.push(...y), u < e.length - 1 && c.push(...e.slice(u + 1)), r(c);
          }
        }
      } else if (o < e.length) {
        for (u = o - 1, a = 0; a < e.length; a++) {
          const c = e[a];
          if (a > o) {
            if (c.depth < i)
              break;
            if (c.depth === i) {
              f = a - 1;
              break;
            }
            a === e.length - 1 && (f = a);
          }
        }
        if (u >= 0) {
          for (a = e.length; a >= 0; a--) {
            const p = e[a];
            if (a <= u) {
              if (p.depth < i)
                break;
              if (p.depth === i) {
                l = a;
                break;
              } else if (a === 0) {
                l = -1;
                break;
              }
            }
          }
          if (l < 0)
            return !1;
          u < 0 && (u = l);
          let c = [], y = e.slice(o, f + 1), s = e.slice(l, u + 1);
          0 < o && c.push(...e.slice(0, l)), c.push(...y), c.push(...s), f < e.length - 1 && c.push(...e.slice(f + 1)), r(c);
        }
      }
    },
    toRecord: (t, e) => {
      const r = {};
      return t == null || t.forEach((n) => {
        const o = n[e] + "";
        o && (r[o] || (r[o] = []), r[o].push(n));
      }), r;
    },
    toRecordDuplicateIgnore: (t, e, r = !0) => {
      const n = {};
      return t == null || t.forEach((o) => {
        const i = o[e] + "";
        i && (r && n[i] || (n[i] = o));
      }), n;
    }
  },
  tree: {
    treeToOrderedList: (t, e = [], r = 0) => {
      const { childList: n } = t;
      return n == null || n.forEach((o, i) => {
        e.push({ ...o == null ? void 0 : o.data, depth: r }), utils.tree.treeToOrderedList(o, 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((o) => {
        const i = o[e] + "";
        e && (n[i] || (n[i] = []), n[i].push(o));
      }), n;
    },
    toRecordDuplicateIgnore: (t, e, r = !0) => {
      const n = utils.tree.toList(t), o = {};
      return n && n.forEach((i) => {
        const f = i[e] + "";
        e && (r && o[f] || (o[f] = i));
      }), o;
    }
  },
  generator: {
    uuid: () => En()
  },
  window: {
    popup: (t, e, r, n) => {
      r || (r = 840), n || (n = 540);
      const o = window.screenLeft !== void 0 ? window.screenLeft : window.screenX, i = window.screenTop !== void 0 ? window.screenTop : window.screenY, f = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : window.screen.width, l = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : window.screen.height, u = f / window.screen.availWidth, a = (f - r) / 2 / u + o, c = (l - n) / 2 / u + i;
      console.log(a, c), window.open(t, e, `width=${r},height=${n},top=${c},left=${a}`);
    }
  },
  http: {
    queryString: (t) => gn.stringify(t, { arrayFormat: "brackets", serializeDate: (e) => e ? wt(e, "YYYY-MM-DDTHH:mm:ss") : void 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, o, i, f) {
        return o + o + i + i + f + f;
      });
      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 o = [
        r,
        e,
        "#000",
        "#fff"
      ];
      let i = 0, f;
      for (let l = 0; l < o.length; l++) {
        let u = o[l], a = utils.css.contrastRatio(t, u);
        if (a > n)
          return u;
        a > i && (i = a, f = u);
      }
      return f;
    },
    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], o = r.g / 255 < 0.04045 ? r.g / 255 / 12.92 : e[r.g - 1], i = r.b / 255 < 0.04045 ? r.b / 255 / 12.92 : e[r.b - 1];
      return n * 0.2126 + o * 0.7152 + i * 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), o = utils.css.hexToRgbMap(e);
      let i = [
        Math.floor(o.r + (n.r - o.r) * r / 100),
        Math.floor(o.g + (n.g - o.g) * r / 100),
        Math.floor(o.b + (n.b - o.b) * r / 100)
      ];
      return utils.css.rgbToHex(i);
    }
  }
};
class xn {
  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 xn();
globalThis.checkValid = (t, e) => {
  let r = !0, n = "";
  const o = e.invalidMessage, i = e.customFunction, f = e.regexp, l = e.maxSize, u = e.minSize, a = e.maxLen, c = e.minLen, y = e.maxByte, s = e.minByte;
  if (i && (r = i(t), !r))
    return n = o || "일치하지 않는 형태입니다.", { isValid: r, message: n };
  if (f && typeof t == "string" && (r = f.test(t), !r))
    return n = o || `일치하지 않는 형태입니다. (${f == null ? void 0 : f.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(l, u) && (p === void 0 && (r = !1, n = o || "숫자 형태가 아닙니다."), !r))
    return { isValid: r, message: n };
  if (isNotEmpty(l) && (p > l && (console.log(p, l, p > l), r = !1, n = o || `${l} 보다 클 수 없습니다.`), !r))
    return { isValid: r, message: n };
  if (isNotEmpty(u) && (p < u && (r = !1, n = o || `${u} 보다 작을 수 없습니다.`), !r))
    return { isValid: r, message: n };
  if (typeof t == "string" || typeof t > "u") {
    if (isNotEmpty(a) && ((t ? t.length : 0) > a && (r = !1, n = o || `문자열의 최대길이는 ${a}입니다.`), !r))
      return { isValid: r, message: n };
    if (isNotEmpty(c) && ((t ? t.length : 0) < c && (r = !1, n = o || `문자열의 최소길이는 ${c}입니다.`), !r))
      return { isValid: r, message: n };
    if (isNotEmpty(y) && ((t ? new Blob([t]).size : 0) > y && (r = !1, n = o || `문자열의 최대 byte길이는 ${y}입니다.`), !r))
      return { isValid: r, message: n };
    if (isNotEmpty(s) && ((t ? new Blob([t]).size : 0) < s && (r = !1, n = o || `문자열의 최소 byte길이는 ${s}입니다.`), !r))
      return { isValid: r, message: n };
  }
  return { isValid: r, message: "" };
};
//# sourceMappingURL=functions.es.js.map
