import { getCurrentInstance as Rr, provide as ot, inject as it, getCurrentScope as lt, onScopeDispose as ut, unref as U, ref as q, readonly as Ue, watch as ge, isRef as ft, reactive as or, shallowRef as Le, computed as le, defineComponent as ct, resolveDirective as st, openBlock as ir, createElementBlock as pt, withDirectives as yt, createBlock as dt, mergeProps as vt, withCtx as ht, renderSlot as mt, createVNode as gt } from "vue";
import { ElTable as bt, ElPagination as St } from "element-plus";
const wt = {
  create: () => Promise.resolve({ data: null }),
  // avoids adding a context in tests
  deleteOne: () => Promise.resolve({ data: null }),
  // avoids adding a context in tests
  getList: () => Promise.resolve({
    data: Array.from({ length: 30 }).map((r, e) => ({
      name: e,
      id: e
    })),
    total: 20
  }),
  // avoids adding a context in tests
  getMany: () => Promise.resolve({ data: [] }),
  // avoids adding a context in tests
  getManyReference: () => Promise.resolve({ data: [], total: 0 }),
  // avoids adding a context in tests
  getOne: () => Promise.resolve({ data: null }),
  // avoids adding a context in tests
  update: () => Promise.resolve({ data: null })
  // avoids adding a context in tests
};
function At(r) {
  return lt() ? (ut(r), !0) : !1;
}
const Y = /* @__PURE__ */ new WeakMap(), Dr = (r, e) => {
  var t;
  const n = (t = Rr()) == null ? void 0 : t.proxy;
  if (n == null)
    throw new Error("provideLocal must be called in setup");
  Y.has(n) || Y.set(n, /* @__PURE__ */ Object.create(null));
  const o = Y.get(n);
  o[r] = e, ot(r, e);
}, je = (...r) => {
  var e;
  const t = r[0], n = (e = Rr()) == null ? void 0 : e.proxy;
  if (n == null)
    throw new Error("injectLocal must be called in setup");
  return Y.has(n) && t in Y.get(n) ? Y.get(n)[t] : it(...r);
};
function V(r) {
  return typeof r == "function" ? r() : U(r);
}
const Et = typeof window < "u" && typeof document < "u";
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
const Ot = Object.prototype.toString, Pt = (r) => Ot.call(r) === "[object Object]", We = () => {
};
function Ft(r, e) {
  function t(...n) {
    return new Promise((o, a) => {
      Promise.resolve(r(() => e.apply(this, n), { fn: e, thisArg: this, args: n })).then(o).catch(a);
    });
  }
  return t;
}
const Cr = (r) => r();
function $t(r = Cr) {
  const e = q(!0);
  function t() {
    e.value = !1;
  }
  function n() {
    e.value = !0;
  }
  const o = (...a) => {
    e.value && r(...a);
  };
  return { isActive: Ue(e), pause: t, resume: n, eventFilter: o };
}
function lr(r, e = !1, t = "Timeout") {
  return new Promise((n, o) => {
    setTimeout(e ? () => o(t) : n, r);
  });
}
function xt(r, e, t = {}) {
  const {
    eventFilter: n = Cr,
    ...o
  } = t;
  return ge(
    r,
    Ft(
      n,
      e
    ),
    o
  );
}
function Tt(r, e, t = {}) {
  const {
    eventFilter: n,
    ...o
  } = t, { eventFilter: a, pause: i, resume: u, isActive: c } = $t(n);
  return { stop: xt(
    r,
    e,
    {
      ...o,
      eventFilter: a
    }
  ), pause: i, resume: u, isActive: c };
}
function ke(r, e = !1) {
  function t(s, { flush: f = "sync", deep: d = !1, timeout: v, throwOnTimeout: b } = {}) {
    let S = null;
    const m = [new Promise((y) => {
      S = ge(
        r,
        (w) => {
          s(w) !== e && (S == null || S(), y(w));
        },
        {
          flush: f,
          deep: d,
          immediate: !0
        }
      );
    })];
    return v != null && m.push(
      lr(v, b).then(() => V(r)).finally(() => S == null ? void 0 : S())
    ), Promise.race(m);
  }
  function n(s, f) {
    if (!ft(s))
      return t((w) => w === s, f);
    const { flush: d = "sync", deep: v = !1, timeout: b, throwOnTimeout: S } = f ?? {};
    let h = null;
    const y = [new Promise((w) => {
      h = ge(
        [r, s],
        ([A, I]) => {
          e !== (A === I) && (h == null || h(), w(A));
        },
        {
          flush: d,
          deep: v,
          immediate: !0
        }
      );
    })];
    return b != null && y.push(
      lr(b, S).then(() => V(r)).finally(() => (h == null || h(), V(r)))
    ), Promise.race(y);
  }
  function o(s) {
    return t((f) => !!f, s);
  }
  function a(s) {
    return n(null, s);
  }
  function i(s) {
    return n(void 0, s);
  }
  function u(s) {
    return t(Number.isNaN, s);
  }
  function c(s, f) {
    return t((d) => {
      const v = Array.from(d);
      return v.includes(s) || v.includes(V(s));
    }, f);
  }
  function p(s) {
    return l(1, s);
  }
  function l(s = 1, f) {
    let d = -1;
    return t(() => (d += 1, d >= s), f);
  }
  return Array.isArray(V(r)) ? {
    toMatch: t,
    toContains: c,
    changed: p,
    changedTimes: l,
    get not() {
      return ke(r, !e);
    }
  } : {
    toMatch: t,
    toBe: n,
    toBeTruthy: o,
    toBeNull: a,
    toBeNaN: u,
    toBeUndefined: i,
    changed: p,
    changedTimes: l,
    get not() {
      return ke(r, !e);
    }
  };
}
function It(r) {
  return ke(r);
}
function _t(r) {
  var e;
  const t = V(r);
  return (e = t == null ? void 0 : t.$el) != null ? e : t;
}
const Nr = Et ? window : void 0;
function ur(...r) {
  let e, t, n, o;
  if (typeof r[0] == "string" || Array.isArray(r[0]) ? ([t, n, o] = r, e = Nr) : [e, t, n, o] = r, !e)
    return We;
  Array.isArray(t) || (t = [t]), Array.isArray(n) || (n = [n]);
  const a = [], i = () => {
    a.forEach((l) => l()), a.length = 0;
  }, u = (l, s, f, d) => (l.addEventListener(s, f, d), () => l.removeEventListener(s, f, d)), c = ge(
    () => [_t(e), V(o)],
    ([l, s]) => {
      if (i(), !l)
        return;
      const f = Pt(s) ? { ...s } : s;
      a.push(
        ...t.flatMap((d) => n.map((v) => u(l, d, v, f)))
      );
    },
    { immediate: !0, flush: "post" }
  ), p = () => {
    c(), i();
  };
  return At(p), p;
}
function Rt(r = "history", e = {}) {
  const {
    initialValue: t = {},
    removeNullishValues: n = !0,
    removeFalsyValues: o = !1,
    write: a = !0,
    window: i = Nr
  } = e;
  if (!i)
    return or(t);
  const u = or({});
  function c() {
    if (r === "history")
      return i.location.search || "";
    if (r === "hash") {
      const h = i.location.hash || "", m = h.indexOf("?");
      return m > 0 ? h.slice(m) : "";
    } else
      return (i.location.hash || "").replace(/^#/, "");
  }
  function p(h) {
    const m = h.toString();
    if (r === "history")
      return `${m ? `?${m}` : ""}${i.location.hash || ""}`;
    if (r === "hash-params")
      return `${i.location.search || ""}${m ? `#${m}` : ""}`;
    const y = i.location.hash || "#", w = y.indexOf("?");
    return w > 0 ? `${y.slice(0, w)}${m ? `?${m}` : ""}` : `${y}${m ? `?${m}` : ""}`;
  }
  function l() {
    return new URLSearchParams(c());
  }
  function s(h) {
    const m = new Set(Object.keys(u));
    for (const y of h.keys()) {
      const w = h.getAll(y);
      u[y] = w.length > 1 ? w : h.get(y) || "", m.delete(y);
    }
    Array.from(m).forEach((y) => delete u[y]);
  }
  const { pause: f, resume: d } = Tt(
    u,
    () => {
      const h = new URLSearchParams("");
      Object.keys(u).forEach((m) => {
        const y = u[m];
        Array.isArray(y) ? y.forEach((w) => h.append(m, w)) : n && y == null || o && !y ? h.delete(m) : h.set(m, y);
      }), v(h);
    },
    { deep: !0 }
  );
  function v(h, m) {
    f(), m && s(h), i.history.replaceState(
      i.history.state,
      i.document.title,
      i.location.pathname + p(h)
    ), d();
  }
  function b() {
    a && v(l(), !0);
  }
  ur(i, "popstate", b, !1), r !== "history" && ur(i, "hashchange", b, !1);
  const S = l();
  return S.keys().next().value ? s(S) : Object.assign(u, t), u;
}
const Br = Symbol("DATA_PROVIDER_CONTEXT"), Dt = (r) => Dr(Br, r), Mr = () => je(Br, wt), Ct = {
  rowKey: "id",
  title: "Fast Start",
  routerMode: "hash",
  basename: "/"
}, Nt = Symbol("FAST_START_CONTEXT"), Je = () => je(Nt, Ct), Bt = {};
function Mt(r) {
  const {
    initialData: e,
    shallow: t,
    onSuccess: n = We,
    onError: o = We,
    immediate: a,
    resetOnExecute: i = !1,
    queryFn: u,
    queryKey: c
  } = r, p = (t ? Le : q)(e), l = q(!1), s = q(!1), f = q(!1), d = Le(), v = (A) => {
    s.value = A, l.value = !A;
  }, b = () => {
    i && (p.value = e);
  }, S = () => new Promise((A, I) => {
    It(l).toBe(!0).then(() => d.value ? I(d.value) : A(w));
  }), h = {
    then: (...A) => S().then(...A),
    catch: (...A) => S().catch(...A)
  };
  let m = 0;
  const y = (A) => {
    if (d.value = void 0, s.value)
      return h;
    if (u === void 0)
      return l.value = !0, h;
    b(), v(!0), m += 1;
    const I = m;
    return u(A).then(($) => {
      const R = $;
      p.value = R, n(R);
    }).catch(($) => {
      d.value = $, o($);
    }).finally(() => {
      var $;
      ($ = r.onFinish) == null || $.call(r), I === m && v(!1);
    }), h;
  };
  a && y();
  const w = {
    data: p,
    error: d,
    isFinished: l,
    isLoading: s,
    isAborted: f,
    isCanceled: f,
    execute: y
  };
  return {
    ...w,
    ...h
  };
}
const Ut = (r, e = {}, t) => {
  const { pagination: n = { page: 1, perPage: 20 }, filter: o = Bt } = e, a = Mr();
  Je();
  const i = Mt({
    immediate: t,
    // queryKey: [filter, resource, pagination],
    queryFn: () => new Promise((p, l) => {
      a.getList(r, {
        pagination: n,
        filter: o
      }).then(({ data: s, total: f }) => ({
        data: s,
        total: f
      })).then(p).catch(l);
    }),
    initialData: {
      data: [],
      total: 0
    }
  }), u = le(() => i.data.value.data), c = le(() => i.data.value.total);
  return {
    ...i,
    data: u,
    total: c
  };
}, Lt = Symbol("RESOURCE_CONTEXT"), Wt = () => je(Lt, { name: "" });
var kt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Kt(r) {
  if (r.__esModule)
    return r;
  var e = r.default;
  if (typeof e == "function") {
    var t = function n() {
      return this instanceof n ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
    };
    t.prototype = e.prototype;
  } else
    t = {};
  return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(n) {
    var o = Object.getOwnPropertyDescriptor(r, n);
    Object.defineProperty(t, n, o.get ? o : {
      enumerable: !0,
      get: function() {
        return r[n];
      }
    });
  }), t;
}
var Gt = Error, Vt = EvalError, zt = RangeError, qt = ReferenceError, Ur = SyntaxError, se = TypeError, Ht = URIError, Qt = function() {
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
    return !1;
  if (typeof Symbol.iterator == "symbol")
    return !0;
  var e = {}, t = Symbol("test"), n = Object(t);
  if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
    return !1;
  var o = 42;
  e[t] = o;
  for (t 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 a = Object.getOwnPropertySymbols(e);
  if (a.length !== 1 || a[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t))
    return !1;
  if (typeof Object.getOwnPropertyDescriptor == "function") {
    var i = Object.getOwnPropertyDescriptor(e, t);
    if (i.value !== o || i.enumerable !== !0)
      return !1;
  }
  return !0;
}, fr = typeof Symbol < "u" && Symbol, jt = Qt, Jt = function() {
  return typeof fr != "function" || typeof Symbol != "function" || typeof fr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : jt();
}, Pe = {
  __proto__: null,
  foo: {}
}, Xt = Object, Yt = function() {
  return { __proto__: Pe }.foo === Pe.foo && !(Pe instanceof Xt);
}, Zt = "Function.prototype.bind called on incompatible ", en = Object.prototype.toString, rn = Math.max, tn = "[object Function]", cr = function(e, t) {
  for (var n = [], o = 0; o < e.length; o += 1)
    n[o] = e[o];
  for (var a = 0; a < t.length; a += 1)
    n[a + e.length] = t[a];
  return n;
}, nn = function(e, t) {
  for (var n = [], o = t || 0, a = 0; o < e.length; o += 1, a += 1)
    n[a] = e[o];
  return n;
}, an = function(r, e) {
  for (var t = "", n = 0; n < r.length; n += 1)
    t += r[n], n + 1 < r.length && (t += e);
  return t;
}, on = function(e) {
  var t = this;
  if (typeof t != "function" || en.apply(t) !== tn)
    throw new TypeError(Zt + t);
  for (var n = nn(arguments, 1), o, a = function() {
    if (this instanceof o) {
      var l = t.apply(
        this,
        cr(n, arguments)
      );
      return Object(l) === l ? l : this;
    }
    return t.apply(
      e,
      cr(n, arguments)
    );
  }, i = rn(0, t.length - n.length), u = [], c = 0; c < i; c++)
    u[c] = "$" + c;
  if (o = Function("binder", "return function (" + an(u, ",") + "){ return binder.apply(this,arguments); }")(a), t.prototype) {
    var p = function() {
    };
    p.prototype = t.prototype, o.prototype = new p(), p.prototype = null;
  }
  return o;
}, ln = on, Xe = Function.prototype.bind || ln, un = Function.prototype.call, fn = Object.prototype.hasOwnProperty, cn = Xe, sn = cn.call(un, fn), g, pn = Gt, yn = Vt, dn = zt, vn = qt, ee = Ur, Z = se, hn = Ht, Lr = Function, Fe = function(r) {
  try {
    return Lr('"use strict"; return (' + r + ").constructor;")();
  } catch {
  }
}, H = Object.getOwnPropertyDescriptor;
if (H)
  try {
    H({}, "");
  } catch {
    H = null;
  }
var $e = function() {
  throw new Z();
}, mn = H ? function() {
  try {
    return arguments.callee, $e;
  } catch {
    try {
      return H(arguments, "callee").get;
    } catch {
      return $e;
    }
  }
}() : $e, j = Jt(), gn = Yt(), F = Object.getPrototypeOf || (gn ? function(r) {
  return r.__proto__;
} : null), X = {}, bn = typeof Uint8Array > "u" || !F ? g : F(Uint8Array), Q = {
  __proto__: null,
  "%AggregateError%": typeof AggregateError > "u" ? g : AggregateError,
  "%Array%": Array,
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? g : ArrayBuffer,
  "%ArrayIteratorPrototype%": j && F ? F([][Symbol.iterator]()) : g,
  "%AsyncFromSyncIteratorPrototype%": g,
  "%AsyncFunction%": X,
  "%AsyncGenerator%": X,
  "%AsyncGeneratorFunction%": X,
  "%AsyncIteratorPrototype%": X,
  "%Atomics%": typeof Atomics > "u" ? g : Atomics,
  "%BigInt%": typeof BigInt > "u" ? g : BigInt,
  "%BigInt64Array%": typeof BigInt64Array > "u" ? g : BigInt64Array,
  "%BigUint64Array%": typeof BigUint64Array > "u" ? g : BigUint64Array,
  "%Boolean%": Boolean,
  "%DataView%": typeof DataView > "u" ? g : DataView,
  "%Date%": Date,
  "%decodeURI%": decodeURI,
  "%decodeURIComponent%": decodeURIComponent,
  "%encodeURI%": encodeURI,
  "%encodeURIComponent%": encodeURIComponent,
  "%Error%": pn,
  "%eval%": eval,
  // eslint-disable-line no-eval
  "%EvalError%": yn,
  "%Float32Array%": typeof Float32Array > "u" ? g : Float32Array,
  "%Float64Array%": typeof Float64Array > "u" ? g : Float64Array,
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? g : FinalizationRegistry,
  "%Function%": Lr,
  "%GeneratorFunction%": X,
  "%Int8Array%": typeof Int8Array > "u" ? g : Int8Array,
  "%Int16Array%": typeof Int16Array > "u" ? g : Int16Array,
  "%Int32Array%": typeof Int32Array > "u" ? g : Int32Array,
  "%isFinite%": isFinite,
  "%isNaN%": isNaN,
  "%IteratorPrototype%": j && F ? F(F([][Symbol.iterator]())) : g,
  "%JSON%": typeof JSON == "object" ? JSON : g,
  "%Map%": typeof Map > "u" ? g : Map,
  "%MapIteratorPrototype%": typeof Map > "u" || !j || !F ? g : F((/* @__PURE__ */ new Map())[Symbol.iterator]()),
  "%Math%": Math,
  "%Number%": Number,
  "%Object%": Object,
  "%parseFloat%": parseFloat,
  "%parseInt%": parseInt,
  "%Promise%": typeof Promise > "u" ? g : Promise,
  "%Proxy%": typeof Proxy > "u" ? g : Proxy,
  "%RangeError%": dn,
  "%ReferenceError%": vn,
  "%Reflect%": typeof Reflect > "u" ? g : Reflect,
  "%RegExp%": RegExp,
  "%Set%": typeof Set > "u" ? g : Set,
  "%SetIteratorPrototype%": typeof Set > "u" || !j || !F ? g : F((/* @__PURE__ */ new Set())[Symbol.iterator]()),
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? g : SharedArrayBuffer,
  "%String%": String,
  "%StringIteratorPrototype%": j && F ? F(""[Symbol.iterator]()) : g,
  "%Symbol%": j ? Symbol : g,
  "%SyntaxError%": ee,
  "%ThrowTypeError%": mn,
  "%TypedArray%": bn,
  "%TypeError%": Z,
  "%Uint8Array%": typeof Uint8Array > "u" ? g : Uint8Array,
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? g : Uint8ClampedArray,
  "%Uint16Array%": typeof Uint16Array > "u" ? g : Uint16Array,
  "%Uint32Array%": typeof Uint32Array > "u" ? g : Uint32Array,
  "%URIError%": hn,
  "%WeakMap%": typeof WeakMap > "u" ? g : WeakMap,
  "%WeakRef%": typeof WeakRef > "u" ? g : WeakRef,
  "%WeakSet%": typeof WeakSet > "u" ? g : WeakSet
};
if (F)
  try {
    null.error;
  } catch (r) {
    var Sn = F(F(r));
    Q["%Error.prototype%"] = Sn;
  }
var wn = function r(e) {
  var t;
  if (e === "%AsyncFunction%")
    t = Fe("async function () {}");
  else if (e === "%GeneratorFunction%")
    t = Fe("function* () {}");
  else if (e === "%AsyncGeneratorFunction%")
    t = Fe("async function* () {}");
  else if (e === "%AsyncGenerator%") {
    var n = r("%AsyncGeneratorFunction%");
    n && (t = n.prototype);
  } else if (e === "%AsyncIteratorPrototype%") {
    var o = r("%AsyncGenerator%");
    o && F && (t = F(o.prototype));
  }
  return Q[e] = t, t;
}, sr = {
  __proto__: null,
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
  "%ArrayPrototype%": ["Array", "prototype"],
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
  "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
  "%ArrayProto_keys%": ["Array", "prototype", "keys"],
  "%ArrayProto_values%": ["Array", "prototype", "values"],
  "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
  "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
  "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
  "%BooleanPrototype%": ["Boolean", "prototype"],
  "%DataViewPrototype%": ["DataView", "prototype"],
  "%DatePrototype%": ["Date", "prototype"],
  "%ErrorPrototype%": ["Error", "prototype"],
  "%EvalErrorPrototype%": ["EvalError", "prototype"],
  "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
  "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
  "%FunctionPrototype%": ["Function", "prototype"],
  "%Generator%": ["GeneratorFunction", "prototype"],
  "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
  "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
  "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
  "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
  "%JSONParse%": ["JSON", "parse"],
  "%JSONStringify%": ["JSON", "stringify"],
  "%MapPrototype%": ["Map", "prototype"],
  "%NumberPrototype%": ["Number", "prototype"],
  "%ObjectPrototype%": ["Object", "prototype"],
  "%ObjProto_toString%": ["Object", "prototype", "toString"],
  "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
  "%PromisePrototype%": ["Promise", "prototype"],
  "%PromiseProto_then%": ["Promise", "prototype", "then"],
  "%Promise_all%": ["Promise", "all"],
  "%Promise_reject%": ["Promise", "reject"],
  "%Promise_resolve%": ["Promise", "resolve"],
  "%RangeErrorPrototype%": ["RangeError", "prototype"],
  "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
  "%RegExpPrototype%": ["RegExp", "prototype"],
  "%SetPrototype%": ["Set", "prototype"],
  "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
  "%StringPrototype%": ["String", "prototype"],
  "%SymbolPrototype%": ["Symbol", "prototype"],
  "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
  "%TypedArrayPrototype%": ["TypedArray", "prototype"],
  "%TypeErrorPrototype%": ["TypeError", "prototype"],
  "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
  "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
  "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
  "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
  "%URIErrorPrototype%": ["URIError", "prototype"],
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
}, pe = Xe, be = sn, An = pe.call(Function.call, Array.prototype.concat), En = pe.call(Function.apply, Array.prototype.splice), pr = pe.call(Function.call, String.prototype.replace), Se = pe.call(Function.call, String.prototype.slice), On = pe.call(Function.call, RegExp.prototype.exec), Pn = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Fn = /\\(\\)?/g, $n = function(e) {
  var t = Se(e, 0, 1), n = Se(e, -1);
  if (t === "%" && n !== "%")
    throw new ee("invalid intrinsic syntax, expected closing `%`");
  if (n === "%" && t !== "%")
    throw new ee("invalid intrinsic syntax, expected opening `%`");
  var o = [];
  return pr(e, Pn, function(a, i, u, c) {
    o[o.length] = u ? pr(c, Fn, "$1") : i || a;
  }), o;
}, xn = function(e, t) {
  var n = e, o;
  if (be(sr, n) && (o = sr[n], n = "%" + o[0] + "%"), be(Q, n)) {
    var a = Q[n];
    if (a === X && (a = wn(n)), typeof a > "u" && !t)
      throw new Z("intrinsic " + e + " exists, but is not available. Please file an issue!");
    return {
      alias: o,
      name: n,
      value: a
    };
  }
  throw new ee("intrinsic " + e + " does not exist!");
}, ne = function(e, t) {
  if (typeof e != "string" || e.length === 0)
    throw new Z("intrinsic name must be a non-empty string");
  if (arguments.length > 1 && typeof t != "boolean")
    throw new Z('"allowMissing" argument must be a boolean');
  if (On(/^%?[^%]*%?$/, e) === null)
    throw new ee("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
  var n = $n(e), o = n.length > 0 ? n[0] : "", a = xn("%" + o + "%", t), i = a.name, u = a.value, c = !1, p = a.alias;
  p && (o = p[0], En(n, An([0, 1], p)));
  for (var l = 1, s = !0; l < n.length; l += 1) {
    var f = n[l], d = Se(f, 0, 1), v = Se(f, -1);
    if ((d === '"' || d === "'" || d === "`" || v === '"' || v === "'" || v === "`") && d !== v)
      throw new ee("property names with quotes must have matching quotes");
    if ((f === "constructor" || !s) && (c = !0), o += "." + f, i = "%" + o + "%", be(Q, i))
      u = Q[i];
    else if (u != null) {
      if (!(f in u)) {
        if (!t)
          throw new Z("base intrinsic for " + e + " exists, but the property is not available.");
        return;
      }
      if (H && l + 1 >= n.length) {
        var b = H(u, f);
        s = !!b, s && "get" in b && !("originalValue" in b.get) ? u = b.get : u = u[f];
      } else
        s = be(u, f), u = u[f];
      s && !c && (Q[i] = u);
    }
  }
  return u;
}, Wr = { exports: {} }, xe, yr;
function Ye() {
  if (yr)
    return xe;
  yr = 1;
  var r = ne, e = r("%Object.defineProperty%", !0) || !1;
  if (e)
    try {
      e({}, "a", { value: 1 });
    } catch {
      e = !1;
    }
  return xe = e, xe;
}
var Tn = ne, he = Tn("%Object.getOwnPropertyDescriptor%", !0);
if (he)
  try {
    he([], "length");
  } catch {
    he = null;
  }
var kr = he, dr = Ye(), In = Ur, J = se, vr = kr, _n = function(e, t, n) {
  if (!e || typeof e != "object" && typeof e != "function")
    throw new J("`obj` must be an object or a function`");
  if (typeof t != "string" && typeof t != "symbol")
    throw new J("`property` must be a string or a symbol`");
  if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
    throw new J("`nonEnumerable`, if provided, must be a boolean or null");
  if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
    throw new J("`nonWritable`, if provided, must be a boolean or null");
  if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
    throw new J("`nonConfigurable`, if provided, must be a boolean or null");
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
    throw new J("`loose`, if provided, must be a boolean");
  var o = arguments.length > 3 ? arguments[3] : null, a = arguments.length > 4 ? arguments[4] : null, i = arguments.length > 5 ? arguments[5] : null, u = arguments.length > 6 ? arguments[6] : !1, c = !!vr && vr(e, t);
  if (dr)
    dr(e, t, {
      configurable: i === null && c ? c.configurable : !i,
      enumerable: o === null && c ? c.enumerable : !o,
      value: n,
      writable: a === null && c ? c.writable : !a
    });
  else if (u || !o && !a && !i)
    e[t] = n;
  else
    throw new In("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
}, Ke = Ye(), Kr = function() {
  return !!Ke;
};
Kr.hasArrayLengthDefineBug = function() {
  if (!Ke)
    return null;
  try {
    return Ke([], "length", { value: 1 }).length !== 1;
  } catch {
    return !0;
  }
};
var Rn = Kr, Dn = ne, hr = _n, Cn = Rn(), mr = kr, gr = se, Nn = Dn("%Math.floor%"), Bn = function(e, t) {
  if (typeof e != "function")
    throw new gr("`fn` is not a function");
  if (typeof t != "number" || t < 0 || t > 4294967295 || Nn(t) !== t)
    throw new gr("`length` must be a positive 32-bit integer");
  var n = arguments.length > 2 && !!arguments[2], o = !0, a = !0;
  if ("length" in e && mr) {
    var i = mr(e, "length");
    i && !i.configurable && (o = !1), i && !i.writable && (a = !1);
  }
  return (o || a || !n) && (Cn ? hr(
    /** @type {Parameters<define>[0]} */
    e,
    "length",
    t,
    !0,
    !0
  ) : hr(
    /** @type {Parameters<define>[0]} */
    e,
    "length",
    t
  )), e;
};
(function(r) {
  var e = Xe, t = ne, n = Bn, o = se, a = t("%Function.prototype.apply%"), i = t("%Function.prototype.call%"), u = t("%Reflect.apply%", !0) || e.call(i, a), c = Ye(), p = t("%Math.max%");
  r.exports = function(f) {
    if (typeof f != "function")
      throw new o("a function is required");
    var d = u(e, i, arguments);
    return n(
      d,
      1 + p(0, f.length - (arguments.length - 1)),
      !0
    );
  };
  var l = function() {
    return u(e, a, arguments);
  };
  c ? c(r.exports, "apply", { value: l }) : r.exports.apply = l;
})(Wr);
var Mn = Wr.exports, Gr = ne, Vr = Mn, Un = Vr(Gr("String.prototype.indexOf")), Ln = function(e, t) {
  var n = Gr(e, !!t);
  return typeof n == "function" && Un(e, ".prototype.") > -1 ? Vr(n) : n;
};
const Wn = {}, kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  default: Wn
}, Symbol.toStringTag, { value: "Module" })), Kn = /* @__PURE__ */ Kt(kn);
var Ze = typeof Map == "function" && Map.prototype, Te = Object.getOwnPropertyDescriptor && Ze ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, we = Ze && Te && typeof Te.get == "function" ? Te.get : null, br = Ze && Map.prototype.forEach, er = typeof Set == "function" && Set.prototype, Ie = Object.getOwnPropertyDescriptor && er ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ae = er && Ie && typeof Ie.get == "function" ? Ie.get : null, Sr = er && Set.prototype.forEach, Gn = typeof WeakMap == "function" && WeakMap.prototype, ue = Gn ? WeakMap.prototype.has : null, Vn = typeof WeakSet == "function" && WeakSet.prototype, fe = Vn ? WeakSet.prototype.has : null, zn = typeof WeakRef == "function" && WeakRef.prototype, wr = zn ? WeakRef.prototype.deref : null, qn = Boolean.prototype.valueOf, Hn = Object.prototype.toString, Qn = Function.prototype.toString, jn = String.prototype.match, rr = String.prototype.slice, K = String.prototype.replace, Jn = String.prototype.toUpperCase, Ar = String.prototype.toLowerCase, zr = RegExp.prototype.test, Er = Array.prototype.concat, B = Array.prototype.join, Xn = Array.prototype.slice, Or = Math.floor, Ge = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, _e = Object.getOwnPropertySymbols, Ve = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, re = typeof Symbol == "function" && typeof Symbol.iterator == "object", x = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === re || !0) ? Symbol.toStringTag : null, qr = Object.prototype.propertyIsEnumerable, Pr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
  return r.__proto__;
} : null);
function Fr(r, e) {
  if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || zr.call(/e/, e))
    return e;
  var t = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
  if (typeof r == "number") {
    var n = r < 0 ? -Or(-r) : Or(r);
    if (n !== r) {
      var o = String(n), a = rr.call(e, o.length + 1);
      return K.call(o, t, "$&_") + "." + K.call(K.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
    }
  }
  return K.call(e, t, "$&_");
}
var ze = Kn, $r = ze.custom, xr = Qr($r) ? $r : null, Yn = function r(e, t, n, o) {
  var a = t || {};
  if (k(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
    throw new TypeError('option "quoteStyle" must be "single" or "double"');
  if (k(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
    throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
  var i = k(a, "customInspect") ? a.customInspect : !0;
  if (typeof i != "boolean" && i !== "symbol")
    throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
  if (k(a, "indent") && a.indent !== null && a.indent !== "	" && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
    throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
  if (k(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
    throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
  var u = a.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 Jr(e, a);
  if (typeof e == "number") {
    if (e === 0)
      return 1 / 0 / e > 0 ? "0" : "-0";
    var c = String(e);
    return u ? Fr(e, c) : c;
  }
  if (typeof e == "bigint") {
    var p = String(e) + "n";
    return u ? Fr(e, p) : p;
  }
  var l = typeof a.depth > "u" ? 5 : a.depth;
  if (typeof n > "u" && (n = 0), n >= l && l > 0 && typeof e == "object")
    return qe(e) ? "[Array]" : "[Object]";
  var s = ha(a, n);
  if (typeof o > "u")
    o = [];
  else if (jr(o, e) >= 0)
    return "[Circular]";
  function f(_, L, W) {
    if (L && (o = Xn.call(o), o.push(L)), W) {
      var oe = {
        depth: a.depth
      };
      return k(a, "quoteStyle") && (oe.quoteStyle = a.quoteStyle), r(_, oe, n + 1, o);
    }
    return r(_, a, n + 1, o);
  }
  if (typeof e == "function" && !Tr(e)) {
    var d = la(e), v = ye(e, f);
    return "[Function" + (d ? ": " + d : " (anonymous)") + "]" + (v.length > 0 ? " { " + B.call(v, ", ") + " }" : "");
  }
  if (Qr(e)) {
    var b = re ? K.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Ve.call(e);
    return typeof e == "object" && !re ? ie(b) : b;
  }
  if (ya(e)) {
    for (var S = "<" + Ar.call(String(e.nodeName)), h = e.attributes || [], m = 0; m < h.length; m++)
      S += " " + h[m].name + "=" + Hr(Zn(h[m].value), "double", a);
    return S += ">", e.childNodes && e.childNodes.length && (S += "..."), S += "</" + Ar.call(String(e.nodeName)) + ">", S;
  }
  if (qe(e)) {
    if (e.length === 0)
      return "[]";
    var y = ye(e, f);
    return s && !va(y) ? "[" + He(y, s) + "]" : "[ " + B.call(y, ", ") + " ]";
  }
  if (ra(e)) {
    var w = ye(e, f);
    return !("cause" in Error.prototype) && "cause" in e && !qr.call(e, "cause") ? "{ [" + String(e) + "] " + B.call(Er.call("[cause]: " + f(e.cause), w), ", ") + " }" : w.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + B.call(w, ", ") + " }";
  }
  if (typeof e == "object" && i) {
    if (xr && typeof e[xr] == "function" && ze)
      return ze(e, { depth: l - n });
    if (i !== "symbol" && typeof e.inspect == "function")
      return e.inspect();
  }
  if (ua(e)) {
    var A = [];
    return br && br.call(e, function(_, L) {
      A.push(f(L, e, !0) + " => " + f(_, e));
    }), Ir("Map", we.call(e), A, s);
  }
  if (sa(e)) {
    var I = [];
    return Sr && Sr.call(e, function(_) {
      I.push(f(_, e));
    }), Ir("Set", Ae.call(e), I, s);
  }
  if (fa(e))
    return Re("WeakMap");
  if (pa(e))
    return Re("WeakSet");
  if (ca(e))
    return Re("WeakRef");
  if (na(e))
    return ie(f(Number(e)));
  if (oa(e))
    return ie(f(Ge.call(e)));
  if (aa(e))
    return ie(qn.call(e));
  if (ta(e))
    return ie(f(String(e)));
  if (typeof window < "u" && e === window)
    return "{ [object Window] }";
  if (e === kt)
    return "{ [object globalThis] }";
  if (!ea(e) && !Tr(e)) {
    var $ = ye(e, f), R = Pr ? Pr(e) === Object.prototype : e instanceof Object || e.constructor === Object, P = e instanceof Object ? "" : "null prototype", T = !R && x && Object(e) === e && x in e ? rr.call(G(e), 8, -1) : P ? "Object" : "", M = R || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", D = M + (T || P ? "[" + B.call(Er.call([], T || [], P || []), ": ") + "] " : "");
    return $.length === 0 ? D + "{}" : s ? D + "{" + He($, s) + "}" : D + "{ " + B.call($, ", ") + " }";
  }
  return String(e);
};
function Hr(r, e, t) {
  var n = (t.quoteStyle || e) === "double" ? '"' : "'";
  return n + r + n;
}
function Zn(r) {
  return K.call(String(r), /"/g, "&quot;");
}
function qe(r) {
  return G(r) === "[object Array]" && (!x || !(typeof r == "object" && x in r));
}
function ea(r) {
  return G(r) === "[object Date]" && (!x || !(typeof r == "object" && x in r));
}
function Tr(r) {
  return G(r) === "[object RegExp]" && (!x || !(typeof r == "object" && x in r));
}
function ra(r) {
  return G(r) === "[object Error]" && (!x || !(typeof r == "object" && x in r));
}
function ta(r) {
  return G(r) === "[object String]" && (!x || !(typeof r == "object" && x in r));
}
function na(r) {
  return G(r) === "[object Number]" && (!x || !(typeof r == "object" && x in r));
}
function aa(r) {
  return G(r) === "[object Boolean]" && (!x || !(typeof r == "object" && x in r));
}
function Qr(r) {
  if (re)
    return r && typeof r == "object" && r instanceof Symbol;
  if (typeof r == "symbol")
    return !0;
  if (!r || typeof r != "object" || !Ve)
    return !1;
  try {
    return Ve.call(r), !0;
  } catch {
  }
  return !1;
}
function oa(r) {
  if (!r || typeof r != "object" || !Ge)
    return !1;
  try {
    return Ge.call(r), !0;
  } catch {
  }
  return !1;
}
var ia = Object.prototype.hasOwnProperty || function(r) {
  return r in this;
};
function k(r, e) {
  return ia.call(r, e);
}
function G(r) {
  return Hn.call(r);
}
function la(r) {
  if (r.name)
    return r.name;
  var e = jn.call(Qn.call(r), /^function\s*([\w$]+)/);
  return e ? e[1] : null;
}
function jr(r, e) {
  if (r.indexOf)
    return r.indexOf(e);
  for (var t = 0, n = r.length; t < n; t++)
    if (r[t] === e)
      return t;
  return -1;
}
function ua(r) {
  if (!we || !r || typeof r != "object")
    return !1;
  try {
    we.call(r);
    try {
      Ae.call(r);
    } catch {
      return !0;
    }
    return r instanceof Map;
  } catch {
  }
  return !1;
}
function fa(r) {
  if (!ue || !r || typeof r != "object")
    return !1;
  try {
    ue.call(r, ue);
    try {
      fe.call(r, fe);
    } catch {
      return !0;
    }
    return r instanceof WeakMap;
  } catch {
  }
  return !1;
}
function ca(r) {
  if (!wr || !r || typeof r != "object")
    return !1;
  try {
    return wr.call(r), !0;
  } catch {
  }
  return !1;
}
function sa(r) {
  if (!Ae || !r || typeof r != "object")
    return !1;
  try {
    Ae.call(r);
    try {
      we.call(r);
    } catch {
      return !0;
    }
    return r instanceof Set;
  } catch {
  }
  return !1;
}
function pa(r) {
  if (!fe || !r || typeof r != "object")
    return !1;
  try {
    fe.call(r, fe);
    try {
      ue.call(r, ue);
    } catch {
      return !0;
    }
    return r instanceof WeakSet;
  } catch {
  }
  return !1;
}
function ya(r) {
  return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
}
function Jr(r, e) {
  if (r.length > e.maxStringLength) {
    var t = r.length - e.maxStringLength, n = "... " + t + " more character" + (t > 1 ? "s" : "");
    return Jr(rr.call(r, 0, e.maxStringLength), e) + n;
  }
  var o = K.call(K.call(r, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, da);
  return Hr(o, "single", e);
}
function da(r) {
  var e = r.charCodeAt(0), t = {
    8: "b",
    9: "t",
    10: "n",
    12: "f",
    13: "r"
  }[e];
  return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + Jn.call(e.toString(16));
}
function ie(r) {
  return "Object(" + r + ")";
}
function Re(r) {
  return r + " { ? }";
}
function Ir(r, e, t, n) {
  var o = n ? He(t, n) : B.call(t, ", ");
  return r + " (" + e + ") {" + o + "}";
}
function va(r) {
  for (var e = 0; e < r.length; e++)
    if (jr(r[e], `
`) >= 0)
      return !1;
  return !0;
}
function ha(r, e) {
  var t;
  if (r.indent === "	")
    t = "	";
  else if (typeof r.indent == "number" && r.indent > 0)
    t = B.call(Array(r.indent + 1), " ");
  else
    return null;
  return {
    base: t,
    prev: B.call(Array(e + 1), t)
  };
}
function He(r, e) {
  if (r.length === 0)
    return "";
  var t = `
` + e.prev + e.base;
  return t + B.call(r, "," + t) + `
` + e.prev;
}
function ye(r, e) {
  var t = qe(r), n = [];
  if (t) {
    n.length = r.length;
    for (var o = 0; o < r.length; o++)
      n[o] = k(r, o) ? e(r[o], r) : "";
  }
  var a = typeof _e == "function" ? _e(r) : [], i;
  if (re) {
    i = {};
    for (var u = 0; u < a.length; u++)
      i["$" + a[u]] = a[u];
  }
  for (var c in r)
    k(r, c) && (t && String(Number(c)) === c && c < r.length || re && i["$" + c] instanceof Symbol || (zr.call(/[^\w$]/, c) ? n.push(e(c, r) + ": " + e(r[c], r)) : n.push(c + ": " + e(r[c], r))));
  if (typeof _e == "function")
    for (var p = 0; p < a.length; p++)
      qr.call(r, a[p]) && n.push("[" + e(a[p]) + "]: " + e(r[a[p]], r));
  return n;
}
var Xr = ne, ae = Ln, ma = Yn, ga = se, de = Xr("%WeakMap%", !0), ve = Xr("%Map%", !0), ba = ae("WeakMap.prototype.get", !0), Sa = ae("WeakMap.prototype.set", !0), wa = ae("WeakMap.prototype.has", !0), Aa = ae("Map.prototype.get", !0), Ea = ae("Map.prototype.set", !0), Oa = ae("Map.prototype.has", !0), tr = function(r, e) {
  for (var t = r, n; (n = t.next) !== null; t = n)
    if (n.key === e)
      return t.next = n.next, n.next = /** @type {NonNullable<typeof list.next>} */
      r.next, r.next = n, n;
}, Pa = function(r, e) {
  var t = tr(r, e);
  return t && t.value;
}, Fa = function(r, e, t) {
  var n = tr(r, e);
  n ? n.value = t : r.next = /** @type {import('.').ListNode<typeof value>} */
  {
    // eslint-disable-line no-param-reassign, no-extra-parens
    key: e,
    next: r.next,
    value: t
  };
}, $a = function(r, e) {
  return !!tr(r, e);
}, xa = function() {
  var e, t, n, o = {
    assert: function(a) {
      if (!o.has(a))
        throw new ga("Side channel does not contain " + ma(a));
    },
    get: function(a) {
      if (de && a && (typeof a == "object" || typeof a == "function")) {
        if (e)
          return ba(e, a);
      } else if (ve) {
        if (t)
          return Aa(t, a);
      } else if (n)
        return Pa(n, a);
    },
    has: function(a) {
      if (de && a && (typeof a == "object" || typeof a == "function")) {
        if (e)
          return wa(e, a);
      } else if (ve) {
        if (t)
          return Oa(t, a);
      } else if (n)
        return $a(n, a);
      return !1;
    },
    set: function(a, i) {
      de && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new de()), Sa(e, a, i)) : ve ? (t || (t = new ve()), Ea(t, a, i)) : (n || (n = { key: {}, next: null }), Fa(n, a, i));
    }
  };
  return o;
}, Ta = String.prototype.replace, Ia = /%20/g, De = {
  RFC1738: "RFC1738",
  RFC3986: "RFC3986"
}, nr = {
  default: De.RFC3986,
  formatters: {
    RFC1738: function(r) {
      return Ta.call(r, Ia, "+");
    },
    RFC3986: function(r) {
      return String(r);
    }
  },
  RFC1738: De.RFC1738,
  RFC3986: De.RFC3986
}, _a = nr, Ce = Object.prototype.hasOwnProperty, z = Array.isArray, C = function() {
  for (var r = [], e = 0; e < 256; ++e)
    r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
  return r;
}(), Ra = function(e) {
  for (; e.length > 1; ) {
    var t = e.pop(), n = t.obj[t.prop];
    if (z(n)) {
      for (var o = [], a = 0; a < n.length; ++a)
        typeof n[a] < "u" && o.push(n[a]);
      t.obj[t.prop] = o;
    }
  }
}, Yr = function(e, t) {
  for (var n = t && t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = 0; o < e.length; ++o)
    typeof e[o] < "u" && (n[o] = e[o]);
  return n;
}, Da = function r(e, t, n) {
  if (!t)
    return e;
  if (typeof t != "object") {
    if (z(e))
      e.push(t);
    else if (e && typeof e == "object")
      (n && (n.plainObjects || n.allowPrototypes) || !Ce.call(Object.prototype, t)) && (e[t] = !0);
    else
      return [e, t];
    return e;
  }
  if (!e || typeof e != "object")
    return [e].concat(t);
  var o = e;
  return z(e) && !z(t) && (o = Yr(e, n)), z(e) && z(t) ? (t.forEach(function(a, i) {
    if (Ce.call(e, i)) {
      var u = e[i];
      u && typeof u == "object" && a && typeof a == "object" ? e[i] = r(u, a, n) : e.push(a);
    } else
      e[i] = a;
  }), e) : Object.keys(t).reduce(function(a, i) {
    var u = t[i];
    return Ce.call(a, i) ? a[i] = r(a[i], u, n) : a[i] = u, a;
  }, o);
}, Ca = function(e, t) {
  return Object.keys(t).reduce(function(n, o) {
    return n[o] = t[o], n;
  }, e);
}, Na = function(r, e, t) {
  var n = r.replace(/\+/g, " ");
  if (t === "iso-8859-1")
    return n.replace(/%[0-9a-f]{2}/gi, unescape);
  try {
    return decodeURIComponent(n);
  } catch {
    return n;
  }
}, Ne = 1024, Ba = function(e, t, n, o, a) {
  if (e.length === 0)
    return e;
  var i = e;
  if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), n === "iso-8859-1")
    return escape(i).replace(/%u[0-9a-f]{4}/gi, function(d) {
      return "%26%23" + parseInt(d.slice(2), 16) + "%3B";
    });
  for (var u = "", c = 0; c < i.length; c += Ne) {
    for (var p = i.length >= Ne ? i.slice(c, c + Ne) : i, l = [], s = 0; s < p.length; ++s) {
      var f = p.charCodeAt(s);
      if (f === 45 || f === 46 || f === 95 || f === 126 || f >= 48 && f <= 57 || f >= 65 && f <= 90 || f >= 97 && f <= 122 || a === _a.RFC1738 && (f === 40 || f === 41)) {
        l[l.length] = p.charAt(s);
        continue;
      }
      if (f < 128) {
        l[l.length] = C[f];
        continue;
      }
      if (f < 2048) {
        l[l.length] = C[192 | f >> 6] + C[128 | f & 63];
        continue;
      }
      if (f < 55296 || f >= 57344) {
        l[l.length] = C[224 | f >> 12] + C[128 | f >> 6 & 63] + C[128 | f & 63];
        continue;
      }
      s += 1, f = 65536 + ((f & 1023) << 10 | p.charCodeAt(s) & 1023), l[l.length] = C[240 | f >> 18] + C[128 | f >> 12 & 63] + C[128 | f >> 6 & 63] + C[128 | f & 63];
    }
    u += l.join("");
  }
  return u;
}, Ma = function(e) {
  for (var t = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < t.length; ++o)
    for (var a = t[o], i = a.obj[a.prop], u = Object.keys(i), c = 0; c < u.length; ++c) {
      var p = u[c], l = i[p];
      typeof l == "object" && l !== null && n.indexOf(l) === -1 && (t.push({ obj: i, prop: p }), n.push(l));
    }
  return Ra(t), e;
}, Ua = function(e) {
  return Object.prototype.toString.call(e) === "[object RegExp]";
}, La = function(e) {
  return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
}, Wa = function(e, t) {
  return [].concat(e, t);
}, ka = function(e, t) {
  if (z(e)) {
    for (var n = [], o = 0; o < e.length; o += 1)
      n.push(t(e[o]));
    return n;
  }
  return t(e);
}, Zr = {
  arrayToObject: Yr,
  assign: Ca,
  combine: Wa,
  compact: Ma,
  decode: Na,
  encode: Ba,
  isBuffer: La,
  isRegExp: Ua,
  maybeMap: ka,
  merge: Da
}, et = xa, me = Zr, ce = nr, Ka = Object.prototype.hasOwnProperty, rt = {
  brackets: function(e) {
    return e + "[]";
  },
  comma: "comma",
  indices: function(e, t) {
    return e + "[" + t + "]";
  },
  repeat: function(e) {
    return e;
  }
}, N = Array.isArray, Ga = Array.prototype.push, tt = function(r, e) {
  Ga.apply(r, N(e) ? e : [e]);
}, Va = Date.prototype.toISOString, _r = ce.default, O = {
  addQueryPrefix: !1,
  allowDots: !1,
  allowEmptyArrays: !1,
  arrayFormat: "indices",
  charset: "utf-8",
  charsetSentinel: !1,
  delimiter: "&",
  encode: !0,
  encodeDotInKeys: !1,
  encoder: me.encode,
  encodeValuesOnly: !1,
  format: _r,
  formatter: ce.formatters[_r],
  // deprecated
  indices: !1,
  serializeDate: function(e) {
    return Va.call(e);
  },
  skipNulls: !1,
  strictNullHandling: !1
}, za = function(e) {
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
}, Be = {}, qa = function r(e, t, n, o, a, i, u, c, p, l, s, f, d, v, b, S, h, m) {
  for (var y = e, w = m, A = 0, I = !1; (w = w.get(Be)) !== void 0 && !I; ) {
    var $ = w.get(e);
    if (A += 1, typeof $ < "u") {
      if ($ === A)
        throw new RangeError("Cyclic object value");
      I = !0;
    }
    typeof w.get(Be) > "u" && (A = 0);
  }
  if (typeof l == "function" ? y = l(t, y) : y instanceof Date ? y = d(y) : n === "comma" && N(y) && (y = me.maybeMap(y, function(Oe) {
    return Oe instanceof Date ? d(Oe) : Oe;
  })), y === null) {
    if (i)
      return p && !S ? p(t, O.encoder, h, "key", v) : t;
    y = "";
  }
  if (za(y) || me.isBuffer(y)) {
    if (p) {
      var R = S ? t : p(t, O.encoder, h, "key", v);
      return [b(R) + "=" + b(p(y, O.encoder, h, "value", v))];
    }
    return [b(t) + "=" + b(String(y))];
  }
  var P = [];
  if (typeof y > "u")
    return P;
  var T;
  if (n === "comma" && N(y))
    S && p && (y = me.maybeMap(y, p)), T = [{ value: y.length > 0 ? y.join(",") || null : void 0 }];
  else if (N(l))
    T = l;
  else {
    var M = Object.keys(y);
    T = s ? M.sort(s) : M;
  }
  var D = c ? t.replace(/\./g, "%2E") : t, _ = o && N(y) && y.length === 1 ? D + "[]" : D;
  if (a && N(y) && y.length === 0)
    return _ + "[]";
  for (var L = 0; L < T.length; ++L) {
    var W = T[L], oe = typeof W == "object" && typeof W.value < "u" ? W.value : y[W];
    if (!(u && oe === null)) {
      var Ee = f && c ? W.replace(/\./g, "%2E") : W, at = N(y) ? typeof n == "function" ? n(_, Ee) : _ : _ + (f ? "." + Ee : "[" + Ee + "]");
      m.set(e, A);
      var ar = et();
      ar.set(Be, m), tt(P, r(
        oe,
        at,
        n,
        o,
        a,
        i,
        u,
        c,
        n === "comma" && S && N(y) ? null : p,
        l,
        s,
        f,
        d,
        v,
        b,
        S,
        h,
        ar
      ));
    }
  }
  return P;
}, Ha = function(e) {
  if (!e)
    return O;
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
    throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
  if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
    throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
  if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
    throw new TypeError("Encoder has to be a function.");
  var t = e.charset || O.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 = ce.default;
  if (typeof e.format < "u") {
    if (!Ka.call(ce.formatters, e.format))
      throw new TypeError("Unknown format option provided.");
    n = e.format;
  }
  var o = ce.formatters[n], a = O.filter;
  (typeof e.filter == "function" || N(e.filter)) && (a = e.filter);
  var i;
  if (e.arrayFormat in rt ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = O.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
    throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
  var u = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : O.allowDots : !!e.allowDots;
  return {
    addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : O.addQueryPrefix,
    allowDots: u,
    allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : O.allowEmptyArrays,
    arrayFormat: i,
    charset: t,
    charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : O.charsetSentinel,
    commaRoundTrip: e.commaRoundTrip,
    delimiter: typeof e.delimiter > "u" ? O.delimiter : e.delimiter,
    encode: typeof e.encode == "boolean" ? e.encode : O.encode,
    encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : O.encodeDotInKeys,
    encoder: typeof e.encoder == "function" ? e.encoder : O.encoder,
    encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : O.encodeValuesOnly,
    filter: a,
    format: n,
    formatter: o,
    serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : O.serializeDate,
    skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : O.skipNulls,
    sort: typeof e.sort == "function" ? e.sort : null,
    strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : O.strictNullHandling
  };
}, Qa = function(r, e) {
  var t = r, n = Ha(e), o, a;
  typeof n.filter == "function" ? (a = n.filter, t = a("", t)) : N(n.filter) && (a = n.filter, o = a);
  var i = [];
  if (typeof t != "object" || t === null)
    return "";
  var u = rt[n.arrayFormat], c = u === "comma" && n.commaRoundTrip;
  o || (o = Object.keys(t)), n.sort && o.sort(n.sort);
  for (var p = et(), l = 0; l < o.length; ++l) {
    var s = o[l];
    n.skipNulls && t[s] === null || tt(i, qa(
      t[s],
      s,
      u,
      c,
      n.allowEmptyArrays,
      n.strictNullHandling,
      n.skipNulls,
      n.encodeDotInKeys,
      n.encode ? n.encoder : null,
      n.filter,
      n.sort,
      n.allowDots,
      n.serializeDate,
      n.format,
      n.formatter,
      n.encodeValuesOnly,
      n.charset,
      p
    ));
  }
  var f = i.join(n.delimiter), d = n.addQueryPrefix === !0 ? "?" : "";
  return n.charsetSentinel && (n.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), f.length > 0 ? d + f : "";
}, te = Zr, Qe = Object.prototype.hasOwnProperty, ja = Array.isArray, E = {
  allowDots: !1,
  allowEmptyArrays: !1,
  allowPrototypes: !1,
  allowSparse: !1,
  arrayLimit: 20,
  charset: "utf-8",
  charsetSentinel: !1,
  comma: !1,
  decodeDotInKeys: !1,
  decoder: te.decode,
  delimiter: "&",
  depth: 5,
  duplicates: "combine",
  ignoreQueryPrefix: !1,
  interpretNumericEntities: !1,
  parameterLimit: 1e3,
  parseArrays: !0,
  plainObjects: !1,
  strictNullHandling: !1
}, Ja = function(r) {
  return r.replace(/&#(\d+);/g, function(e, t) {
    return String.fromCharCode(parseInt(t, 10));
  });
}, nt = function(r, e) {
  return r && typeof r == "string" && e.comma && r.indexOf(",") > -1 ? r.split(",") : r;
}, Xa = "utf8=%26%2310003%3B", Ya = "utf8=%E2%9C%93", Za = function(e, t) {
  var n = { __proto__: null }, o = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, a = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, i = o.split(t.delimiter, a), u = -1, c, p = t.charset;
  if (t.charsetSentinel)
    for (c = 0; c < i.length; ++c)
      i[c].indexOf("utf8=") === 0 && (i[c] === Ya ? p = "utf-8" : i[c] === Xa && (p = "iso-8859-1"), u = c, c = i.length);
  for (c = 0; c < i.length; ++c)
    if (c !== u) {
      var l = i[c], s = l.indexOf("]="), f = s === -1 ? l.indexOf("=") : s + 1, d, v;
      f === -1 ? (d = t.decoder(l, E.decoder, p, "key"), v = t.strictNullHandling ? null : "") : (d = t.decoder(l.slice(0, f), E.decoder, p, "key"), v = te.maybeMap(
        nt(l.slice(f + 1), t),
        function(S) {
          return t.decoder(S, E.decoder, p, "value");
        }
      )), v && t.interpretNumericEntities && p === "iso-8859-1" && (v = Ja(v)), l.indexOf("[]=") > -1 && (v = ja(v) ? [v] : v);
      var b = Qe.call(n, d);
      b && t.duplicates === "combine" ? n[d] = te.combine(n[d], v) : (!b || t.duplicates === "last") && (n[d] = v);
    }
  return n;
}, eo = function(r, e, t, n) {
  for (var o = n ? e : nt(e, t), a = r.length - 1; a >= 0; --a) {
    var i, u = r[a];
    if (u === "[]" && t.parseArrays)
      i = t.allowEmptyArrays && o === "" ? [] : [].concat(o);
    else {
      i = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
      var c = u.charAt(0) === "[" && u.charAt(u.length - 1) === "]" ? u.slice(1, -1) : u, p = t.decodeDotInKeys ? c.replace(/%2E/g, ".") : c, l = parseInt(p, 10);
      !t.parseArrays && p === "" ? i = { 0: o } : !isNaN(l) && u !== p && String(l) === p && l >= 0 && t.parseArrays && l <= t.arrayLimit ? (i = [], i[l] = o) : p !== "__proto__" && (i[p] = o);
    }
    o = i;
  }
  return o;
}, ro = function(e, t, n, o) {
  if (e) {
    var a = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, u = /(\[[^[\]]*])/g, c = n.depth > 0 && i.exec(a), p = c ? a.slice(0, c.index) : a, l = [];
    if (p) {
      if (!n.plainObjects && Qe.call(Object.prototype, p) && !n.allowPrototypes)
        return;
      l.push(p);
    }
    for (var s = 0; n.depth > 0 && (c = u.exec(a)) !== null && s < n.depth; ) {
      if (s += 1, !n.plainObjects && Qe.call(Object.prototype, c[1].slice(1, -1)) && !n.allowPrototypes)
        return;
      l.push(c[1]);
    }
    return c && l.push("[" + a.slice(c.index) + "]"), eo(l, t, n, o);
  }
}, to = function(e) {
  if (!e)
    return E;
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
    throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
  if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
    throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
  if (e.decoder !== null && typeof e.decoder < "u" && 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 t = typeof e.charset > "u" ? E.charset : e.charset, n = typeof e.duplicates > "u" ? E.duplicates : e.duplicates;
  if (n !== "combine" && n !== "first" && n !== "last")
    throw new TypeError("The duplicates option must be either combine, first, or last");
  var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : E.allowDots : !!e.allowDots;
  return {
    allowDots: o,
    allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : E.allowEmptyArrays,
    allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : E.allowPrototypes,
    allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : E.allowSparse,
    arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : E.arrayLimit,
    charset: t,
    charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : E.charsetSentinel,
    comma: typeof e.comma == "boolean" ? e.comma : E.comma,
    decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : E.decodeDotInKeys,
    decoder: typeof e.decoder == "function" ? e.decoder : E.decoder,
    delimiter: typeof e.delimiter == "string" || te.isRegExp(e.delimiter) ? e.delimiter : E.delimiter,
    // eslint-disable-next-line no-implicit-coercion, no-extra-parens
    depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : E.depth,
    duplicates: n,
    ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
    interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : E.interpretNumericEntities,
    parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : E.parameterLimit,
    parseArrays: e.parseArrays !== !1,
    plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : E.plainObjects,
    strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : E.strictNullHandling
  };
}, no = function(r, e) {
  var t = to(e);
  if (r === "" || r === null || typeof r > "u")
    return t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
  for (var n = typeof r == "string" ? Za(r, t) : r, o = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
    var u = a[i], c = ro(u, n[u], t, typeof r == "string");
    o = te.merge(o, c, t);
  }
  return t.allowSparse === !0 ? o : te.compact(o);
}, ao = Qa, oo = no, io = nr, Me = {
  formats: io,
  parse: oo,
  stringify: ao
};
const lo = {
  ignoreQueryPrefix: !0
}, uo = {
  skipNulls: !0
};
function fo(r, e) {
  const { routerMode: t } = Je(), n = { ...lo, ...e.parseOptions }, o = {
    ...uo,
    ...e.stringifyOptions
  }, a = e.nestedKey ? {
    [e.nestedKey]: Me.stringify(r || "{}", o)
  } : r, i = Rt(t || "hash", { initialValue: a }), u = (l) => {
    e != null && e.nestedKey ? i[e.nestedKey] = Me.stringify(l, o) : Object.entries(l).forEach(([s, f]) => {
      i[s] = f;
    });
  }, c = (l) => {
    u(l);
  };
  return [e.nestedKey ? Me.parse(i[e.nestedKey] || "{}", n) : i, c];
}
const co = Symbol("FORM_PROVIDER_CONTEXT"), so = (r) => Dr(co, r), po = { class: "fast-start-table" }, yo = /* @__PURE__ */ ct({
  name: "FsDataTable",
  inheritAttrs: !1,
  __name: "FsDataTable",
  props: {
    tableData: {},
    immediate: { type: Boolean, default: !0 },
    request: {},
    data: {},
    size: {},
    width: {},
    height: {},
    maxHeight: {},
    fit: { type: Boolean },
    stripe: { type: Boolean },
    border: { type: Boolean },
    rowKey: {},
    context: {},
    showHeader: { type: Boolean },
    showSummary: { type: Boolean },
    sumText: {},
    summaryMethod: {},
    rowClassName: {},
    rowStyle: {},
    cellClassName: {},
    cellStyle: {},
    headerRowClassName: {},
    headerRowStyle: {},
    headerCellClassName: {},
    headerCellStyle: {},
    highlightCurrentRow: { type: Boolean },
    currentRowKey: {},
    emptyText: {},
    expandRowKeys: {},
    defaultExpandAll: { type: Boolean },
    defaultSort: {},
    tooltipEffect: {},
    tooltipOptions: {},
    spanMethod: {},
    selectOnIndeterminate: { type: Boolean },
    indent: {},
    treeProps: {},
    lazy: { type: Boolean },
    load: {},
    className: {},
    style: {},
    tableLayout: {},
    scrollbarAlwaysOn: { type: Boolean },
    flexible: { type: Boolean },
    showOverflowTooltip: { type: [Boolean, Object] }
  },
  setup(r, { expose: e }) {
    var $, R;
    const t = r, n = Mr();
    t.request && Dt({ ...n, getList: t.request });
    const o = q([]), a = Wt(), i = Je(), u = Le(), [c, p] = fo(
      {
        pagination: {
          page: 1,
          perPage: 10
        },
        filter: {}
      },
      {
        nestedKey: "tableState"
      }
    ), l = q({
      pagination: {
        page: Number(($ = c.pagination) == null ? void 0 : $.page) || 1,
        perPage: Number((R = c.pagination) == null ? void 0 : R.perPage) || 10
      },
      filter: {}
    }), { data: s, total: f, isLoading: d, execute: v } = Ut(
      a.name,
      l.value,
      t.immediate
    ), b = le(() => t.rowKey || i.rowKey), S = le(() => t.tableData || s.value), h = () => {
      v(), p(l.value);
    }, m = (P) => {
      l.value.filter = P;
    }, y = (P) => {
    }, w = () => {
      var P;
      (P = u.value) == null || P.clearSelection();
    }, A = (P) => {
      P.forEach((T) => {
        var M;
        (M = u.value) == null || M.toggleRowSelection(T, void 0);
      });
    }, I = le(() => l.value.filter);
    return so({
      tableInstance: u.value,
      setFilter: m,
      reload: h,
      filter: Ue(I),
      multipleSelection: o,
      rowKey: b.value,
      clearSelection: w,
      toggleSelection: A
    }), e({
      tableInstance: u.value,
      setFilter: m,
      reload: h,
      filter: Ue(I),
      multipleSelection: o,
      clearSelection: w,
      toggleSelection: A
    }), (P, T) => {
      const M = st("loading");
      return ir(), pt("div", po, [
        yt((ir(), dt(U(bt), vt({
          onSelectionChange: y,
          ref_key: "tableInstance",
          ref: u,
          "row-key": b.value,
          data: S.value
        }, P.$attrs, {
          "highlight-current-row": "",
          "scrollbar-always-on": ""
        }), {
          default: ht(() => [
            mt(P.$slots, "default", {
              data: U(s),
              loading: U(d),
              total: U(f)
            }, void 0, !0)
          ]),
          _: 3
        }, 16, ["row-key", "data"])), [
          [M, U(d)]
        ]),
        gt(U(St), {
          disabled: U(d),
          class: "fast-start-pagination",
          total: U(f),
          onChange: h,
          "current-page": l.value.pagination.page,
          "onUpdate:currentPage": T[0] || (T[0] = (D) => l.value.pagination.page = D),
          "page-size": l.value.pagination.perPage,
          "onUpdate:pageSize": T[1] || (T[1] = (D) => l.value.pagination.perPage = D)
        }, null, 8, ["disabled", "total", "current-page", "page-size"])
      ]);
    };
  }
}), vo = (r, e) => {
  const t = r.__vccOpts || r;
  for (const [n, o] of e)
    t[n] = o;
  return t;
}, go = /* @__PURE__ */ vo(yo, [["__scopeId", "data-v-a86876db"]]);
export {
  go as default
};
//# sourceMappingURL=FsDataTable.mjs.map
