import * as ec from "vue";
import { defineComponent as se, openBlock as J, createBlock as ge, resolveDynamicComponent as Li, normalizeClass as xe, withCtx as ee, renderSlot as qe, createVNode as $, normalizeStyle as vn, isRef as Cn, unref as X, ref as ne, onMounted as We, createElementBlock as ve, createElementVNode as fe, computed as U, Fragment as He, renderList as mt, createTextVNode as je, toDisplayString as Re, createCommentVNode as Ie, createStaticVNode as bd, useModel as Wt, withDirectives as bn, vModelText as Ri, shallowRef as Bi, watch as Ne, triggerRef as tc, onScopeDispose as wd, onUnmounted as ct, nextTick as rt, watchEffect as pt, cloneVNode as xd, h as Qe, provide as lt, inject as ot, toRaw as st, reactive as wo, getCurrentInstance as lo, Teleport as ga, Transition as xr, mergeModels as rn, mergeProps as Ar, vModelDynamic as Ad, toValue as Ft, onBeforeUnmount as Gs, vModelCheckbox as fg, toRef as ra, readonly as dg, customRef as vg, getCurrentScope as hg, withModifiers as Jo, toRefs as pg, normalizeProps as oa, withKeys as nc, guardReactiveProps as fs, resolveComponent as Jn, resolveDirective as gg, toHandlers as mg, vShow as Ks, onBeforeMount as yg } from "vue";
const we = /* @__PURE__ */ se({
  __name: "UICard",
  props: {
    as: { default: "div" },
    cardType: { default: "normal" }
  },
  setup(e) {
    return (t, n) => (J(), ge(Li(t.as), {
      class: xe({
        "rvx-p-space16 rvx-rounded-lg md:rvx-p-space24": t.cardType == "round"
      })
    }, {
      default: ee(() => [
        qe(t.$slots, "default")
      ]),
      _: 3
    }, 8, ["class"]));
  }
}), Xs = /* @__PURE__ */ se({
  __name: "UIProgressBar",
  props: {
    width: { default: 60 },
    height: { default: 4 },
    background: { default: "#0043DD" }
  },
  setup(e) {
    return (t, n) => (J(), ge(we, { class: "rvx-w-full rvx-relative rvx-progressbar" }, {
      default: ee(() => [
        $(we, {
          class: "rvx-bg-[#D9D9D9] rvx-rounded-full rvx-progressbar__inactive",
          style: vn({
            height: `${t.height}px`
          })
        }, null, 8, ["style"]),
        $(we, {
          class: "rvx-bg-primary rvx-rounded-full rvx-absolute rvx-top-0 rvx-left-0 rvx-progressbar__active",
          style: vn({
            width: `${t.width}%`,
            height: `${t.height}px`,
            background: `${t.background}`
          })
        }, null, 8, ["style"])
      ]),
      _: 1
    }));
  }
});
function ds(e, t) {
  return ds = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
    return n.__proto__ = r, n;
  }, ds(e, t);
}
function Fi(e, t) {
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ds(e, t);
}
var ji = /* @__PURE__ */ function() {
  function e() {
    this.listeners = [];
  }
  var t = e.prototype;
  return t.subscribe = function(r) {
    var o = this, a = r || function() {
    };
    return this.listeners.push(a), this.onSubscribe(), function() {
      o.listeners = o.listeners.filter(function(i) {
        return i !== a;
      }), o.onUnsubscribe();
    };
  }, t.hasListeners = function() {
    return this.listeners.length > 0;
  }, t.onSubscribe = function() {
  }, t.onUnsubscribe = function() {
  }, e;
}();
function at() {
  return at = Object.assign ? Object.assign.bind() : function(e) {
    for (var t = 1; t < arguments.length; t++) {
      var n = arguments[t];
      for (var r in n)
        ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
    }
    return e;
  }, at.apply(null, arguments);
}
var Od = typeof window > "u";
function Ht() {
}
function bg(e, t) {
  return typeof e == "function" ? e(t) : e;
}
function wg(e) {
  return typeof e == "number" && e >= 0 && e !== 1 / 0;
}
function gi(e) {
  return Array.isArray(e) ? e : [e];
}
function xg(e, t) {
  return Math.max(e + (t || 0) - Date.now(), 0);
}
function Ul(e, t, n) {
  return qi(e) ? typeof t == "function" ? at({}, n, {
    queryKey: e,
    queryFn: t
  }) : at({}, t, {
    queryKey: e
  }) : e;
}
function dr(e, t, n) {
  return qi(e) ? [at({}, t, {
    queryKey: e
  }), n] : [e || {}, t];
}
function Ag(e, t) {
  if (e === !0 && t === !0 || e == null && t == null)
    return "all";
  if (e === !1 && t === !1)
    return "none";
  var n = e ?? !t;
  return n ? "active" : "inactive";
}
function rc(e, t) {
  var n = e.active, r = e.exact, o = e.fetching, a = e.inactive, i = e.predicate, l = e.queryKey, s = e.stale;
  if (qi(l)) {
    if (r) {
      if (t.queryHash !== Zs(l, t.options))
        return !1;
    } else if (!mi(t.queryKey, l))
      return !1;
  }
  var u = Ag(n, a);
  if (u === "none")
    return !1;
  if (u !== "all") {
    var c = t.isActive();
    if (u === "active" && !c || u === "inactive" && c)
      return !1;
  }
  return !(typeof s == "boolean" && t.isStale() !== s || typeof o == "boolean" && t.isFetching() !== o || i && !i(t));
}
function oc(e, t) {
  var n = e.exact, r = e.fetching, o = e.predicate, a = e.mutationKey;
  if (qi(a)) {
    if (!t.options.mutationKey)
      return !1;
    if (n) {
      if (Ir(t.options.mutationKey) !== Ir(a))
        return !1;
    } else if (!mi(t.options.mutationKey, a))
      return !1;
  }
  return !(typeof r == "boolean" && t.state.status === "loading" !== r || o && !o(t));
}
function Zs(e, t) {
  var n = (t == null ? void 0 : t.queryKeyHashFn) || Ir;
  return n(e);
}
function Ir(e) {
  var t = gi(e);
  return Og(t);
}
function Og(e) {
  return JSON.stringify(e, function(t, n) {
    return vs(n) ? Object.keys(n).sort().reduce(function(r, o) {
      return r[o] = n[o], r;
    }, {}) : n;
  });
}
function mi(e, t) {
  return Cd(gi(e), gi(t));
}
function Cd(e, t) {
  return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? !Object.keys(t).some(function(n) {
    return !Cd(e[n], t[n]);
  }) : !1;
}
function Ed(e, t) {
  if (e === t)
    return e;
  var n = Array.isArray(e) && Array.isArray(t);
  if (n || vs(e) && vs(t)) {
    for (var r = n ? e.length : Object.keys(e).length, o = n ? t : Object.keys(t), a = o.length, i = n ? [] : {}, l = 0, s = 0; s < a; s++) {
      var u = n ? s : o[s];
      i[u] = Ed(e[u], t[u]), i[u] === e[u] && l++;
    }
    return r === a && l === r ? e : i;
  }
  return t;
}
function vs(e) {
  if (!ac(e))
    return !1;
  var t = e.constructor;
  if (typeof t > "u")
    return !0;
  var n = t.prototype;
  return !(!ac(n) || !n.hasOwnProperty("isPrototypeOf"));
}
function ac(e) {
  return Object.prototype.toString.call(e) === "[object Object]";
}
function qi(e) {
  return typeof e == "string" || Array.isArray(e);
}
function Cg(e) {
  return new Promise(function(t) {
    setTimeout(t, e);
  });
}
function ic(e) {
  Promise.resolve().then(e).catch(function(t) {
    return setTimeout(function() {
      throw t;
    });
  });
}
function Sd() {
  if (typeof AbortController == "function")
    return new AbortController();
}
var Eg = /* @__PURE__ */ function(e) {
  Fi(t, e);
  function t() {
    var r;
    return r = e.call(this) || this, r.setup = function(o) {
      var a;
      if (!Od && ((a = window) != null && a.addEventListener)) {
        var i = function() {
          return o();
        };
        return window.addEventListener("visibilitychange", i, !1), window.addEventListener("focus", i, !1), function() {
          window.removeEventListener("visibilitychange", i), window.removeEventListener("focus", i);
        };
      }
    }, r;
  }
  var n = t.prototype;
  return n.onSubscribe = function() {
    this.cleanup || this.setEventListener(this.setup);
  }, n.onUnsubscribe = function() {
    if (!this.hasListeners()) {
      var o;
      (o = this.cleanup) == null || o.call(this), this.cleanup = void 0;
    }
  }, n.setEventListener = function(o) {
    var a, i = this;
    this.setup = o, (a = this.cleanup) == null || a.call(this), this.cleanup = o(function(l) {
      typeof l == "boolean" ? i.setFocused(l) : i.onFocus();
    });
  }, n.setFocused = function(o) {
    this.focused = o, o && this.onFocus();
  }, n.onFocus = function() {
    this.listeners.forEach(function(o) {
      o();
    });
  }, n.isFocused = function() {
    return typeof this.focused == "boolean" ? this.focused : typeof document > "u" ? !0 : [void 0, "visible", "prerender"].includes(document.visibilityState);
  }, t;
}(ji), ai = new Eg(), Sg = /* @__PURE__ */ function(e) {
  Fi(t, e);
  function t() {
    var r;
    return r = e.call(this) || this, r.setup = function(o) {
      var a;
      if (!Od && ((a = window) != null && a.addEventListener)) {
        var i = function() {
          return o();
        };
        return window.addEventListener("online", i, !1), window.addEventListener("offline", i, !1), function() {
          window.removeEventListener("online", i), window.removeEventListener("offline", i);
        };
      }
    }, r;
  }
  var n = t.prototype;
  return n.onSubscribe = function() {
    this.cleanup || this.setEventListener(this.setup);
  }, n.onUnsubscribe = function() {
    if (!this.hasListeners()) {
      var o;
      (o = this.cleanup) == null || o.call(this), this.cleanup = void 0;
    }
  }, n.setEventListener = function(o) {
    var a, i = this;
    this.setup = o, (a = this.cleanup) == null || a.call(this), this.cleanup = o(function(l) {
      typeof l == "boolean" ? i.setOnline(l) : i.onOnline();
    });
  }, n.setOnline = function(o) {
    this.online = o, o && this.onOnline();
  }, n.onOnline = function() {
    this.listeners.forEach(function(o) {
      o();
    });
  }, n.isOnline = function() {
    return typeof this.online == "boolean" ? this.online : typeof navigator > "u" || typeof navigator.onLine > "u" ? !0 : navigator.onLine;
  }, t;
}(ji), ii = new Sg();
function Tg(e) {
  return Math.min(1e3 * Math.pow(2, e), 3e4);
}
function yi(e) {
  return typeof (e == null ? void 0 : e.cancel) == "function";
}
var Td = function(t) {
  this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
};
function Hl(e) {
  return e instanceof Td;
}
var Dd = function(t) {
  var n = this, r = !1, o, a, i, l;
  this.abort = t.abort, this.cancel = function(f) {
    return o == null ? void 0 : o(f);
  }, this.cancelRetry = function() {
    r = !0;
  }, this.continueRetry = function() {
    r = !1;
  }, this.continue = function() {
    return a == null ? void 0 : a();
  }, this.failureCount = 0, this.isPaused = !1, this.isResolved = !1, this.isTransportCancelable = !1, this.promise = new Promise(function(f, v) {
    i = f, l = v;
  });
  var s = function(v) {
    n.isResolved || (n.isResolved = !0, t.onSuccess == null || t.onSuccess(v), a == null || a(), i(v));
  }, u = function(v) {
    n.isResolved || (n.isResolved = !0, t.onError == null || t.onError(v), a == null || a(), l(v));
  }, c = function() {
    return new Promise(function(v) {
      a = v, n.isPaused = !0, t.onPause == null || t.onPause();
    }).then(function() {
      a = void 0, n.isPaused = !1, t.onContinue == null || t.onContinue();
    });
  }, d = function f() {
    if (!n.isResolved) {
      var v;
      try {
        v = t.fn();
      } catch (h) {
        v = Promise.reject(h);
      }
      o = function(m) {
        if (!n.isResolved && (u(new Td(m)), n.abort == null || n.abort(), yi(v)))
          try {
            v.cancel();
          } catch {
          }
      }, n.isTransportCancelable = yi(v), Promise.resolve(v).then(s).catch(function(h) {
        var m, p;
        if (!n.isResolved) {
          var g = (m = t.retry) != null ? m : 3, y = (p = t.retryDelay) != null ? p : Tg, x = typeof y == "function" ? y(n.failureCount, h) : y, b = g === !0 || typeof g == "number" && n.failureCount < g || typeof g == "function" && g(n.failureCount, h);
          if (r || !b) {
            u(h);
            return;
          }
          n.failureCount++, t.onFail == null || t.onFail(n.failureCount, h), Cg(x).then(function() {
            if (!ai.isFocused() || !ii.isOnline())
              return c();
          }).then(function() {
            r ? u(h) : f();
          });
        }
      });
    }
  };
  d();
}, Dg = /* @__PURE__ */ function() {
  function e() {
    this.queue = [], this.transactions = 0, this.notifyFn = function(n) {
      n();
    }, this.batchNotifyFn = function(n) {
      n();
    };
  }
  var t = e.prototype;
  return t.batch = function(r) {
    var o;
    this.transactions++;
    try {
      o = r();
    } finally {
      this.transactions--, this.transactions || this.flush();
    }
    return o;
  }, t.schedule = function(r) {
    var o = this;
    this.transactions ? this.queue.push(r) : ic(function() {
      o.notifyFn(r);
    });
  }, t.batchCalls = function(r) {
    var o = this;
    return function() {
      for (var a = arguments.length, i = new Array(a), l = 0; l < a; l++)
        i[l] = arguments[l];
      o.schedule(function() {
        r.apply(void 0, i);
      });
    };
  }, t.flush = function() {
    var r = this, o = this.queue;
    this.queue = [], o.length && ic(function() {
      r.batchNotifyFn(function() {
        o.forEach(function(a) {
          r.notifyFn(a);
        });
      });
    });
  }, t.setNotifyFunction = function(r) {
    this.notifyFn = r;
  }, t.setBatchNotifyFunction = function(r) {
    this.batchNotifyFn = r;
  }, e;
}(), jt = new Dg(), kg = console;
function kd() {
  return kg;
}
var Pg = /* @__PURE__ */ function() {
  function e(n) {
    this.abortSignalConsumed = !1, this.hadObservers = !1, this.defaultOptions = n.defaultOptions, this.setOptions(n.options), this.observers = [], this.cache = n.cache, this.queryKey = n.queryKey, this.queryHash = n.queryHash, this.initialState = n.state || this.getDefaultState(this.options), this.state = this.initialState, this.meta = n.meta, this.scheduleGc();
  }
  var t = e.prototype;
  return t.setOptions = function(r) {
    var o;
    this.options = at({}, this.defaultOptions, r), this.meta = r == null ? void 0 : r.meta, this.cacheTime = Math.max(this.cacheTime || 0, (o = this.options.cacheTime) != null ? o : 5 * 60 * 1e3);
  }, t.setDefaultOptions = function(r) {
    this.defaultOptions = r;
  }, t.scheduleGc = function() {
    var r = this;
    this.clearGcTimeout(), wg(this.cacheTime) && (this.gcTimeout = setTimeout(function() {
      r.optionalRemove();
    }, this.cacheTime));
  }, t.clearGcTimeout = function() {
    this.gcTimeout && (clearTimeout(this.gcTimeout), this.gcTimeout = void 0);
  }, t.optionalRemove = function() {
    this.observers.length || (this.state.isFetching ? this.hadObservers && this.scheduleGc() : this.cache.remove(this));
  }, t.setData = function(r, o) {
    var a, i, l = this.state.data, s = bg(r, l);
    return (a = (i = this.options).isDataEqual) != null && a.call(i, l, s) ? s = l : this.options.structuralSharing !== !1 && (s = Ed(l, s)), this.dispatch({
      data: s,
      type: "success",
      dataUpdatedAt: o == null ? void 0 : o.updatedAt
    }), s;
  }, t.setState = function(r, o) {
    this.dispatch({
      type: "setState",
      state: r,
      setStateOptions: o
    });
  }, t.cancel = function(r) {
    var o, a = this.promise;
    return (o = this.retryer) == null || o.cancel(r), a ? a.then(Ht).catch(Ht) : Promise.resolve();
  }, t.destroy = function() {
    this.clearGcTimeout(), this.cancel({
      silent: !0
    });
  }, t.reset = function() {
    this.destroy(), this.setState(this.initialState);
  }, t.isActive = function() {
    return this.observers.some(function(r) {
      return r.options.enabled !== !1;
    });
  }, t.isFetching = function() {
    return this.state.isFetching;
  }, t.isStale = function() {
    return this.state.isInvalidated || !this.state.dataUpdatedAt || this.observers.some(function(r) {
      return r.getCurrentResult().isStale;
    });
  }, t.isStaleByTime = function(r) {
    return r === void 0 && (r = 0), this.state.isInvalidated || !this.state.dataUpdatedAt || !xg(this.state.dataUpdatedAt, r);
  }, t.onFocus = function() {
    var r, o = this.observers.find(function(a) {
      return a.shouldFetchOnWindowFocus();
    });
    o && o.refetch(), (r = this.retryer) == null || r.continue();
  }, t.onOnline = function() {
    var r, o = this.observers.find(function(a) {
      return a.shouldFetchOnReconnect();
    });
    o && o.refetch(), (r = this.retryer) == null || r.continue();
  }, t.addObserver = function(r) {
    this.observers.indexOf(r) === -1 && (this.observers.push(r), this.hadObservers = !0, this.clearGcTimeout(), this.cache.notify({
      type: "observerAdded",
      query: this,
      observer: r
    }));
  }, t.removeObserver = function(r) {
    this.observers.indexOf(r) !== -1 && (this.observers = this.observers.filter(function(o) {
      return o !== r;
    }), this.observers.length || (this.retryer && (this.retryer.isTransportCancelable || this.abortSignalConsumed ? this.retryer.cancel({
      revert: !0
    }) : this.retryer.cancelRetry()), this.cacheTime ? this.scheduleGc() : this.cache.remove(this)), this.cache.notify({
      type: "observerRemoved",
      query: this,
      observer: r
    }));
  }, t.getObserversCount = function() {
    return this.observers.length;
  }, t.invalidate = function() {
    this.state.isInvalidated || this.dispatch({
      type: "invalidate"
    });
  }, t.fetch = function(r, o) {
    var a = this, i, l, s;
    if (this.state.isFetching) {
      if (this.state.dataUpdatedAt && (o != null && o.cancelRefetch))
        this.cancel({
          silent: !0
        });
      else if (this.promise) {
        var u;
        return (u = this.retryer) == null || u.continueRetry(), this.promise;
      }
    }
    if (r && this.setOptions(r), !this.options.queryFn) {
      var c = this.observers.find(function(y) {
        return y.options.queryFn;
      });
      c && this.setOptions(c.options);
    }
    var d = gi(this.queryKey), f = Sd(), v = {
      queryKey: d,
      pageParam: void 0,
      meta: this.meta
    };
    Object.defineProperty(v, "signal", {
      enumerable: !0,
      get: function() {
        if (f)
          return a.abortSignalConsumed = !0, f.signal;
      }
    });
    var h = function() {
      return a.options.queryFn ? (a.abortSignalConsumed = !1, a.options.queryFn(v)) : Promise.reject("Missing queryFn");
    }, m = {
      fetchOptions: o,
      options: this.options,
      queryKey: d,
      state: this.state,
      fetchFn: h,
      meta: this.meta
    };
    if ((i = this.options.behavior) != null && i.onFetch) {
      var p;
      (p = this.options.behavior) == null || p.onFetch(m);
    }
    if (this.revertState = this.state, !this.state.isFetching || this.state.fetchMeta !== ((l = m.fetchOptions) == null ? void 0 : l.meta)) {
      var g;
      this.dispatch({
        type: "fetch",
        meta: (g = m.fetchOptions) == null ? void 0 : g.meta
      });
    }
    return this.retryer = new Dd({
      fn: m.fetchFn,
      abort: f == null || (s = f.abort) == null ? void 0 : s.bind(f),
      onSuccess: function(x) {
        a.setData(x), a.cache.config.onSuccess == null || a.cache.config.onSuccess(x, a), a.cacheTime === 0 && a.optionalRemove();
      },
      onError: function(x) {
        Hl(x) && x.silent || a.dispatch({
          type: "error",
          error: x
        }), Hl(x) || (a.cache.config.onError == null || a.cache.config.onError(x, a), kd().error(x)), a.cacheTime === 0 && a.optionalRemove();
      },
      onFail: function() {
        a.dispatch({
          type: "failed"
        });
      },
      onPause: function() {
        a.dispatch({
          type: "pause"
        });
      },
      onContinue: function() {
        a.dispatch({
          type: "continue"
        });
      },
      retry: m.options.retry,
      retryDelay: m.options.retryDelay
    }), this.promise = this.retryer.promise, this.promise;
  }, t.dispatch = function(r) {
    var o = this;
    this.state = this.reducer(this.state, r), jt.batch(function() {
      o.observers.forEach(function(a) {
        a.onQueryUpdate(r);
      }), o.cache.notify({
        query: o,
        type: "queryUpdated",
        action: r
      });
    });
  }, t.getDefaultState = function(r) {
    var o = typeof r.initialData == "function" ? r.initialData() : r.initialData, a = typeof r.initialData < "u", i = a ? typeof r.initialDataUpdatedAt == "function" ? r.initialDataUpdatedAt() : r.initialDataUpdatedAt : 0, l = typeof o < "u";
    return {
      data: o,
      dataUpdateCount: 0,
      dataUpdatedAt: l ? i ?? Date.now() : 0,
      error: null,
      errorUpdateCount: 0,
      errorUpdatedAt: 0,
      fetchFailureCount: 0,
      fetchMeta: null,
      isFetching: !1,
      isInvalidated: !1,
      isPaused: !1,
      status: l ? "success" : "idle"
    };
  }, t.reducer = function(r, o) {
    var a, i;
    switch (o.type) {
      case "failed":
        return at({}, r, {
          fetchFailureCount: r.fetchFailureCount + 1
        });
      case "pause":
        return at({}, r, {
          isPaused: !0
        });
      case "continue":
        return at({}, r, {
          isPaused: !1
        });
      case "fetch":
        return at({}, r, {
          fetchFailureCount: 0,
          fetchMeta: (a = o.meta) != null ? a : null,
          isFetching: !0,
          isPaused: !1
        }, !r.dataUpdatedAt && {
          error: null,
          status: "loading"
        });
      case "success":
        return at({}, r, {
          data: o.data,
          dataUpdateCount: r.dataUpdateCount + 1,
          dataUpdatedAt: (i = o.dataUpdatedAt) != null ? i : Date.now(),
          error: null,
          fetchFailureCount: 0,
          isFetching: !1,
          isInvalidated: !1,
          isPaused: !1,
          status: "success"
        });
      case "error":
        var l = o.error;
        return Hl(l) && l.revert && this.revertState ? at({}, this.revertState) : at({}, r, {
          error: l,
          errorUpdateCount: r.errorUpdateCount + 1,
          errorUpdatedAt: Date.now(),
          fetchFailureCount: r.fetchFailureCount + 1,
          isFetching: !1,
          isPaused: !1,
          status: "error"
        });
      case "invalidate":
        return at({}, r, {
          isInvalidated: !0
        });
      case "setState":
        return at({}, r, o.state);
      default:
        return r;
    }
  }, e;
}(), Pd = /* @__PURE__ */ function(e) {
  Fi(t, e);
  function t(r) {
    var o;
    return o = e.call(this) || this, o.config = r || {}, o.queries = [], o.queriesMap = {}, o;
  }
  var n = t.prototype;
  return n.build = function(o, a, i) {
    var l, s = a.queryKey, u = (l = a.queryHash) != null ? l : Zs(s, a), c = this.get(u);
    return c || (c = new Pg({
      cache: this,
      queryKey: s,
      queryHash: u,
      options: o.defaultQueryOptions(a),
      state: i,
      defaultOptions: o.getQueryDefaults(s),
      meta: a.meta
    }), this.add(c)), c;
  }, n.add = function(o) {
    this.queriesMap[o.queryHash] || (this.queriesMap[o.queryHash] = o, this.queries.push(o), this.notify({
      type: "queryAdded",
      query: o
    }));
  }, n.remove = function(o) {
    var a = this.queriesMap[o.queryHash];
    a && (o.destroy(), this.queries = this.queries.filter(function(i) {
      return i !== o;
    }), a === o && delete this.queriesMap[o.queryHash], this.notify({
      type: "queryRemoved",
      query: o
    }));
  }, n.clear = function() {
    var o = this;
    jt.batch(function() {
      o.queries.forEach(function(a) {
        o.remove(a);
      });
    });
  }, n.get = function(o) {
    return this.queriesMap[o];
  }, n.getAll = function() {
    return this.queries;
  }, n.find = function(o, a) {
    var i = dr(o, a), l = i[0];
    return typeof l.exact > "u" && (l.exact = !0), this.queries.find(function(s) {
      return rc(l, s);
    });
  }, n.findAll = function(o, a) {
    var i = dr(o, a), l = i[0];
    return Object.keys(l).length > 0 ? this.queries.filter(function(s) {
      return rc(l, s);
    }) : this.queries;
  }, n.notify = function(o) {
    var a = this;
    jt.batch(function() {
      a.listeners.forEach(function(i) {
        i(o);
      });
    });
  }, n.onFocus = function() {
    var o = this;
    jt.batch(function() {
      o.queries.forEach(function(a) {
        a.onFocus();
      });
    });
  }, n.onOnline = function() {
    var o = this;
    jt.batch(function() {
      o.queries.forEach(function(a) {
        a.onOnline();
      });
    });
  }, t;
}(ji), Ig = /* @__PURE__ */ function() {
  function e(n) {
    this.options = at({}, n.defaultOptions, n.options), this.mutationId = n.mutationId, this.mutationCache = n.mutationCache, this.observers = [], this.state = n.state || Ng(), this.meta = n.meta;
  }
  var t = e.prototype;
  return t.setState = function(r) {
    this.dispatch({
      type: "setState",
      state: r
    });
  }, t.addObserver = function(r) {
    this.observers.indexOf(r) === -1 && this.observers.push(r);
  }, t.removeObserver = function(r) {
    this.observers = this.observers.filter(function(o) {
      return o !== r;
    });
  }, t.cancel = function() {
    return this.retryer ? (this.retryer.cancel(), this.retryer.promise.then(Ht).catch(Ht)) : Promise.resolve();
  }, t.continue = function() {
    return this.retryer ? (this.retryer.continue(), this.retryer.promise) : this.execute();
  }, t.execute = function() {
    var r = this, o, a = this.state.status === "loading", i = Promise.resolve();
    return a || (this.dispatch({
      type: "loading",
      variables: this.options.variables
    }), i = i.then(function() {
      r.mutationCache.config.onMutate == null || r.mutationCache.config.onMutate(r.state.variables, r);
    }).then(function() {
      return r.options.onMutate == null ? void 0 : r.options.onMutate(r.state.variables);
    }).then(function(l) {
      l !== r.state.context && r.dispatch({
        type: "loading",
        context: l,
        variables: r.state.variables
      });
    })), i.then(function() {
      return r.executeMutation();
    }).then(function(l) {
      o = l, r.mutationCache.config.onSuccess == null || r.mutationCache.config.onSuccess(o, r.state.variables, r.state.context, r);
    }).then(function() {
      return r.options.onSuccess == null ? void 0 : r.options.onSuccess(o, r.state.variables, r.state.context);
    }).then(function() {
      return r.options.onSettled == null ? void 0 : r.options.onSettled(o, null, r.state.variables, r.state.context);
    }).then(function() {
      return r.dispatch({
        type: "success",
        data: o
      }), o;
    }).catch(function(l) {
      return r.mutationCache.config.onError == null || r.mutationCache.config.onError(l, r.state.variables, r.state.context, r), kd().error(l), Promise.resolve().then(function() {
        return r.options.onError == null ? void 0 : r.options.onError(l, r.state.variables, r.state.context);
      }).then(function() {
        return r.options.onSettled == null ? void 0 : r.options.onSettled(void 0, l, r.state.variables, r.state.context);
      }).then(function() {
        throw r.dispatch({
          type: "error",
          error: l
        }), l;
      });
    });
  }, t.executeMutation = function() {
    var r = this, o;
    return this.retryer = new Dd({
      fn: function() {
        return r.options.mutationFn ? r.options.mutationFn(r.state.variables) : Promise.reject("No mutationFn found");
      },
      onFail: function() {
        r.dispatch({
          type: "failed"
        });
      },
      onPause: function() {
        r.dispatch({
          type: "pause"
        });
      },
      onContinue: function() {
        r.dispatch({
          type: "continue"
        });
      },
      retry: (o = this.options.retry) != null ? o : 0,
      retryDelay: this.options.retryDelay
    }), this.retryer.promise;
  }, t.dispatch = function(r) {
    var o = this;
    this.state = Mg(this.state, r), jt.batch(function() {
      o.observers.forEach(function(a) {
        a.onMutationUpdate(r);
      }), o.mutationCache.notify(o);
    });
  }, e;
}();
function Ng() {
  return {
    context: void 0,
    data: void 0,
    error: null,
    failureCount: 0,
    isPaused: !1,
    status: "idle",
    variables: void 0
  };
}
function Mg(e, t) {
  switch (t.type) {
    case "failed":
      return at({}, e, {
        failureCount: e.failureCount + 1
      });
    case "pause":
      return at({}, e, {
        isPaused: !0
      });
    case "continue":
      return at({}, e, {
        isPaused: !1
      });
    case "loading":
      return at({}, e, {
        context: t.context,
        data: void 0,
        error: null,
        isPaused: !1,
        status: "loading",
        variables: t.variables
      });
    case "success":
      return at({}, e, {
        data: t.data,
        error: null,
        status: "success",
        isPaused: !1
      });
    case "error":
      return at({}, e, {
        data: void 0,
        error: t.error,
        failureCount: e.failureCount + 1,
        isPaused: !1,
        status: "error"
      });
    case "setState":
      return at({}, e, t.state);
    default:
      return e;
  }
}
var Id = /* @__PURE__ */ function(e) {
  Fi(t, e);
  function t(r) {
    var o;
    return o = e.call(this) || this, o.config = r || {}, o.mutations = [], o.mutationId = 0, o;
  }
  var n = t.prototype;
  return n.build = function(o, a, i) {
    var l = new Ig({
      mutationCache: this,
      mutationId: ++this.mutationId,
      options: o.defaultMutationOptions(a),
      state: i,
      defaultOptions: a.mutationKey ? o.getMutationDefaults(a.mutationKey) : void 0,
      meta: a.meta
    });
    return this.add(l), l;
  }, n.add = function(o) {
    this.mutations.push(o), this.notify(o);
  }, n.remove = function(o) {
    this.mutations = this.mutations.filter(function(a) {
      return a !== o;
    }), o.cancel(), this.notify(o);
  }, n.clear = function() {
    var o = this;
    jt.batch(function() {
      o.mutations.forEach(function(a) {
        o.remove(a);
      });
    });
  }, n.getAll = function() {
    return this.mutations;
  }, n.find = function(o) {
    return typeof o.exact > "u" && (o.exact = !0), this.mutations.find(function(a) {
      return oc(o, a);
    });
  }, n.findAll = function(o) {
    return this.mutations.filter(function(a) {
      return oc(o, a);
    });
  }, n.notify = function(o) {
    var a = this;
    jt.batch(function() {
      a.listeners.forEach(function(i) {
        i(o);
      });
    });
  }, n.onFocus = function() {
    this.resumePausedMutations();
  }, n.onOnline = function() {
    this.resumePausedMutations();
  }, n.resumePausedMutations = function() {
    var o = this.mutations.filter(function(a) {
      return a.state.isPaused;
    });
    return jt.batch(function() {
      return o.reduce(function(a, i) {
        return a.then(function() {
          return i.continue().catch(Ht);
        });
      }, Promise.resolve());
    });
  }, t;
}(ji);
function Lg() {
  return {
    onFetch: function(t) {
      t.fetchFn = function() {
        var n, r, o, a, i, l, s = (n = t.fetchOptions) == null || (r = n.meta) == null ? void 0 : r.refetchPage, u = (o = t.fetchOptions) == null || (a = o.meta) == null ? void 0 : a.fetchMore, c = u == null ? void 0 : u.pageParam, d = (u == null ? void 0 : u.direction) === "forward", f = (u == null ? void 0 : u.direction) === "backward", v = ((i = t.state.data) == null ? void 0 : i.pages) || [], h = ((l = t.state.data) == null ? void 0 : l.pageParams) || [], m = Sd(), p = m == null ? void 0 : m.signal, g = h, y = !1, x = t.options.queryFn || function() {
          return Promise.reject("Missing queryFn");
        }, b = function(I, N, F, V) {
          return g = V ? [N].concat(g) : [].concat(g, [N]), V ? [F].concat(I) : [].concat(I, [F]);
        }, w = function(I, N, F, V) {
          if (y)
            return Promise.reject("Cancelled");
          if (typeof F > "u" && !N && I.length)
            return Promise.resolve(I);
          var G = {
            queryKey: t.queryKey,
            signal: p,
            pageParam: F,
            meta: t.meta
          }, z = x(G), M = Promise.resolve(z).then(function(R) {
            return b(I, F, R, V);
          });
          if (yi(z)) {
            var P = M;
            P.cancel = z.cancel;
          }
          return M;
        }, D;
        if (!v.length)
          D = w([]);
        else if (d) {
          var E = typeof c < "u", T = E ? c : lc(t.options, v);
          D = w(v, E, T);
        } else if (f) {
          var L = typeof c < "u", S = L ? c : Rg(t.options, v);
          D = w(v, L, S, !0);
        } else
          (function() {
            g = [];
            var k = typeof t.options.getNextPageParam > "u", I = s && v[0] ? s(v[0], 0, v) : !0;
            D = I ? w([], k, h[0]) : Promise.resolve(b([], h[0], v[0]));
            for (var N = function(G) {
              D = D.then(function(z) {
                var M = s && v[G] ? s(v[G], G, v) : !0;
                if (M) {
                  var P = k ? h[G] : lc(t.options, z);
                  return w(z, k, P);
                }
                return Promise.resolve(b(z, h[G], v[G]));
              });
            }, F = 1; F < v.length; F++)
              N(F);
          })();
        var A = D.then(function(k) {
          return {
            pages: k,
            pageParams: g
          };
        }), C = A;
        return C.cancel = function() {
          y = !0, m == null || m.abort(), yi(D) && D.cancel();
        }, A;
      };
    }
  };
}
function lc(e, t) {
  return e.getNextPageParam == null ? void 0 : e.getNextPageParam(t[t.length - 1], t);
}
function Rg(e, t) {
  return e.getPreviousPageParam == null ? void 0 : e.getPreviousPageParam(t[0], t);
}
var Bg = /* @__PURE__ */ function() {
  function e(n) {
    n === void 0 && (n = {}), this.queryCache = n.queryCache || new Pd(), this.mutationCache = n.mutationCache || new Id(), this.defaultOptions = n.defaultOptions || {}, this.queryDefaults = [], this.mutationDefaults = [];
  }
  var t = e.prototype;
  return t.mount = function() {
    var r = this;
    this.unsubscribeFocus = ai.subscribe(function() {
      ai.isFocused() && ii.isOnline() && (r.mutationCache.onFocus(), r.queryCache.onFocus());
    }), this.unsubscribeOnline = ii.subscribe(function() {
      ai.isFocused() && ii.isOnline() && (r.mutationCache.onOnline(), r.queryCache.onOnline());
    });
  }, t.unmount = function() {
    var r, o;
    (r = this.unsubscribeFocus) == null || r.call(this), (o = this.unsubscribeOnline) == null || o.call(this);
  }, t.isFetching = function(r, o) {
    var a = dr(r, o), i = a[0];
    return i.fetching = !0, this.queryCache.findAll(i).length;
  }, t.isMutating = function(r) {
    return this.mutationCache.findAll(at({}, r, {
      fetching: !0
    })).length;
  }, t.getQueryData = function(r, o) {
    var a;
    return (a = this.queryCache.find(r, o)) == null ? void 0 : a.state.data;
  }, t.getQueriesData = function(r) {
    return this.getQueryCache().findAll(r).map(function(o) {
      var a = o.queryKey, i = o.state, l = i.data;
      return [a, l];
    });
  }, t.setQueryData = function(r, o, a) {
    var i = Ul(r), l = this.defaultQueryOptions(i);
    return this.queryCache.build(this, l).setData(o, a);
  }, t.setQueriesData = function(r, o, a) {
    var i = this;
    return jt.batch(function() {
      return i.getQueryCache().findAll(r).map(function(l) {
        var s = l.queryKey;
        return [s, i.setQueryData(s, o, a)];
      });
    });
  }, t.getQueryState = function(r, o) {
    var a;
    return (a = this.queryCache.find(r, o)) == null ? void 0 : a.state;
  }, t.removeQueries = function(r, o) {
    var a = dr(r, o), i = a[0], l = this.queryCache;
    jt.batch(function() {
      l.findAll(i).forEach(function(s) {
        l.remove(s);
      });
    });
  }, t.resetQueries = function(r, o, a) {
    var i = this, l = dr(r, o, a), s = l[0], u = l[1], c = this.queryCache, d = at({}, s, {
      active: !0
    });
    return jt.batch(function() {
      return c.findAll(s).forEach(function(f) {
        f.reset();
      }), i.refetchQueries(d, u);
    });
  }, t.cancelQueries = function(r, o, a) {
    var i = this, l = dr(r, o, a), s = l[0], u = l[1], c = u === void 0 ? {} : u;
    typeof c.revert > "u" && (c.revert = !0);
    var d = jt.batch(function() {
      return i.queryCache.findAll(s).map(function(f) {
        return f.cancel(c);
      });
    });
    return Promise.all(d).then(Ht).catch(Ht);
  }, t.invalidateQueries = function(r, o, a) {
    var i, l, s, u = this, c = dr(r, o, a), d = c[0], f = c[1], v = at({}, d, {
      // if filters.refetchActive is not provided and filters.active is explicitly false,
      // e.g. invalidateQueries({ active: false }), we don't want to refetch active queries
      active: (i = (l = d.refetchActive) != null ? l : d.active) != null ? i : !0,
      inactive: (s = d.refetchInactive) != null ? s : !1
    });
    return jt.batch(function() {
      return u.queryCache.findAll(d).forEach(function(h) {
        h.invalidate();
      }), u.refetchQueries(v, f);
    });
  }, t.refetchQueries = function(r, o, a) {
    var i = this, l = dr(r, o, a), s = l[0], u = l[1], c = jt.batch(function() {
      return i.queryCache.findAll(s).map(function(f) {
        return f.fetch(void 0, at({}, u, {
          meta: {
            refetchPage: s == null ? void 0 : s.refetchPage
          }
        }));
      });
    }), d = Promise.all(c).then(Ht);
    return u != null && u.throwOnError || (d = d.catch(Ht)), d;
  }, t.fetchQuery = function(r, o, a) {
    var i = Ul(r, o, a), l = this.defaultQueryOptions(i);
    typeof l.retry > "u" && (l.retry = !1);
    var s = this.queryCache.build(this, l);
    return s.isStaleByTime(l.staleTime) ? s.fetch(l) : Promise.resolve(s.state.data);
  }, t.prefetchQuery = function(r, o, a) {
    return this.fetchQuery(r, o, a).then(Ht).catch(Ht);
  }, t.fetchInfiniteQuery = function(r, o, a) {
    var i = Ul(r, o, a);
    return i.behavior = Lg(), this.fetchQuery(i);
  }, t.prefetchInfiniteQuery = function(r, o, a) {
    return this.fetchInfiniteQuery(r, o, a).then(Ht).catch(Ht);
  }, t.cancelMutations = function() {
    var r = this, o = jt.batch(function() {
      return r.mutationCache.getAll().map(function(a) {
        return a.cancel();
      });
    });
    return Promise.all(o).then(Ht).catch(Ht);
  }, t.resumePausedMutations = function() {
    return this.getMutationCache().resumePausedMutations();
  }, t.executeMutation = function(r) {
    return this.mutationCache.build(this, r).execute();
  }, t.getQueryCache = function() {
    return this.queryCache;
  }, t.getMutationCache = function() {
    return this.mutationCache;
  }, t.getDefaultOptions = function() {
    return this.defaultOptions;
  }, t.setDefaultOptions = function(r) {
    this.defaultOptions = r;
  }, t.setQueryDefaults = function(r, o) {
    var a = this.queryDefaults.find(function(i) {
      return Ir(r) === Ir(i.queryKey);
    });
    a ? a.defaultOptions = o : this.queryDefaults.push({
      queryKey: r,
      defaultOptions: o
    });
  }, t.getQueryDefaults = function(r) {
    var o;
    return r ? (o = this.queryDefaults.find(function(a) {
      return mi(r, a.queryKey);
    })) == null ? void 0 : o.defaultOptions : void 0;
  }, t.setMutationDefaults = function(r, o) {
    var a = this.mutationDefaults.find(function(i) {
      return Ir(r) === Ir(i.mutationKey);
    });
    a ? a.defaultOptions = o : this.mutationDefaults.push({
      mutationKey: r,
      defaultOptions: o
    });
  }, t.getMutationDefaults = function(r) {
    var o;
    return r ? (o = this.mutationDefaults.find(function(a) {
      return mi(r, a.mutationKey);
    })) == null ? void 0 : o.defaultOptions : void 0;
  }, t.defaultQueryOptions = function(r) {
    if (r != null && r._defaulted)
      return r;
    var o = at({}, this.defaultOptions.queries, this.getQueryDefaults(r == null ? void 0 : r.queryKey), r, {
      _defaulted: !0
    });
    return !o.queryHash && o.queryKey && (o.queryHash = Zs(o.queryKey, o)), o;
  }, t.defaultQueryObserverOptions = function(r) {
    return this.defaultQueryOptions(r);
  }, t.defaultMutationOptions = function(r) {
    return r != null && r._defaulted ? r : at({}, this.defaultOptions.mutations, this.getMutationDefaults(r == null ? void 0 : r.mutationKey), r, {
      _defaulted: !0
    });
  }, t.clear = function() {
    this.queryCache.clear(), this.mutationCache.clear();
  }, e;
}(), Tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Js(e) {
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var _s = { exports: {} }, Nd = {
  À: "A",
  Á: "A",
  Â: "A",
  Ã: "A",
  Ä: "A",
  Å: "A",
  Ấ: "A",
  Ắ: "A",
  Ẳ: "A",
  Ẵ: "A",
  Ặ: "A",
  Æ: "AE",
  Ầ: "A",
  Ằ: "A",
  Ȃ: "A",
  Ả: "A",
  Ạ: "A",
  Ẩ: "A",
  Ẫ: "A",
  Ậ: "A",
  Ç: "C",
  Ḉ: "C",
  È: "E",
  É: "E",
  Ê: "E",
  Ë: "E",
  Ế: "E",
  Ḗ: "E",
  Ề: "E",
  Ḕ: "E",
  Ḝ: "E",
  Ȇ: "E",
  Ẻ: "E",
  Ẽ: "E",
  Ẹ: "E",
  Ể: "E",
  Ễ: "E",
  Ệ: "E",
  Ì: "I",
  Í: "I",
  Î: "I",
  Ï: "I",
  Ḯ: "I",
  Ȋ: "I",
  Ỉ: "I",
  Ị: "I",
  Ð: "D",
  Ñ: "N",
  Ò: "O",
  Ó: "O",
  Ô: "O",
  Õ: "O",
  Ö: "O",
  Ø: "O",
  Ố: "O",
  Ṍ: "O",
  Ṓ: "O",
  Ȏ: "O",
  Ỏ: "O",
  Ọ: "O",
  Ổ: "O",
  Ỗ: "O",
  Ộ: "O",
  Ờ: "O",
  Ở: "O",
  Ỡ: "O",
  Ớ: "O",
  Ợ: "O",
  Ù: "U",
  Ú: "U",
  Û: "U",
  Ü: "U",
  Ủ: "U",
  Ụ: "U",
  Ử: "U",
  Ữ: "U",
  Ự: "U",
  Ý: "Y",
  à: "a",
  á: "a",
  â: "a",
  ã: "a",
  ä: "a",
  å: "a",
  ấ: "a",
  ắ: "a",
  ẳ: "a",
  ẵ: "a",
  ặ: "a",
  æ: "ae",
  ầ: "a",
  ằ: "a",
  ȃ: "a",
  ả: "a",
  ạ: "a",
  ẩ: "a",
  ẫ: "a",
  ậ: "a",
  ç: "c",
  ḉ: "c",
  è: "e",
  é: "e",
  ê: "e",
  ë: "e",
  ế: "e",
  ḗ: "e",
  ề: "e",
  ḕ: "e",
  ḝ: "e",
  ȇ: "e",
  ẻ: "e",
  ẽ: "e",
  ẹ: "e",
  ể: "e",
  ễ: "e",
  ệ: "e",
  ì: "i",
  í: "i",
  î: "i",
  ï: "i",
  ḯ: "i",
  ȋ: "i",
  ỉ: "i",
  ị: "i",
  ð: "d",
  ñ: "n",
  ò: "o",
  ó: "o",
  ô: "o",
  õ: "o",
  ö: "o",
  ø: "o",
  ố: "o",
  ṍ: "o",
  ṓ: "o",
  ȏ: "o",
  ỏ: "o",
  ọ: "o",
  ổ: "o",
  ỗ: "o",
  ộ: "o",
  ờ: "o",
  ở: "o",
  ỡ: "o",
  ớ: "o",
  ợ: "o",
  ù: "u",
  ú: "u",
  û: "u",
  ü: "u",
  ủ: "u",
  ụ: "u",
  ử: "u",
  ữ: "u",
  ự: "u",
  ý: "y",
  ÿ: "y",
  Ā: "A",
  ā: "a",
  Ă: "A",
  ă: "a",
  Ą: "A",
  ą: "a",
  Ć: "C",
  ć: "c",
  Ĉ: "C",
  ĉ: "c",
  Ċ: "C",
  ċ: "c",
  Č: "C",
  č: "c",
  C̆: "C",
  c̆: "c",
  Ď: "D",
  ď: "d",
  Đ: "D",
  đ: "d",
  Ē: "E",
  ē: "e",
  Ĕ: "E",
  ĕ: "e",
  Ė: "E",
  ė: "e",
  Ę: "E",
  ę: "e",
  Ě: "E",
  ě: "e",
  Ĝ: "G",
  Ǵ: "G",
  ĝ: "g",
  ǵ: "g",
  Ğ: "G",
  ğ: "g",
  Ġ: "G",
  ġ: "g",
  Ģ: "G",
  ģ: "g",
  Ĥ: "H",
  ĥ: "h",
  Ħ: "H",
  ħ: "h",
  Ḫ: "H",
  ḫ: "h",
  Ĩ: "I",
  ĩ: "i",
  Ī: "I",
  ī: "i",
  Ĭ: "I",
  ĭ: "i",
  Į: "I",
  į: "i",
  İ: "I",
  ı: "i",
  Ĳ: "IJ",
  ĳ: "ij",
  Ĵ: "J",
  ĵ: "j",
  Ķ: "K",
  ķ: "k",
  Ḱ: "K",
  ḱ: "k",
  K̆: "K",
  k̆: "k",
  Ĺ: "L",
  ĺ: "l",
  Ļ: "L",
  ļ: "l",
  Ľ: "L",
  ľ: "l",
  Ŀ: "L",
  ŀ: "l",
  Ł: "l",
  ł: "l",
  Ḿ: "M",
  ḿ: "m",
  M̆: "M",
  m̆: "m",
  Ń: "N",
  ń: "n",
  Ņ: "N",
  ņ: "n",
  Ň: "N",
  ň: "n",
  ŉ: "n",
  N̆: "N",
  n̆: "n",
  Ō: "O",
  ō: "o",
  Ŏ: "O",
  ŏ: "o",
  Ő: "O",
  ő: "o",
  Œ: "OE",
  œ: "oe",
  P̆: "P",
  p̆: "p",
  Ŕ: "R",
  ŕ: "r",
  Ŗ: "R",
  ŗ: "r",
  Ř: "R",
  ř: "r",
  R̆: "R",
  r̆: "r",
  Ȓ: "R",
  ȓ: "r",
  Ś: "S",
  ś: "s",
  Ŝ: "S",
  ŝ: "s",
  Ş: "S",
  Ș: "S",
  ș: "s",
  ş: "s",
  Š: "S",
  š: "s",
  Ţ: "T",
  ţ: "t",
  ț: "t",
  Ț: "T",
  Ť: "T",
  ť: "t",
  Ŧ: "T",
  ŧ: "t",
  T̆: "T",
  t̆: "t",
  Ũ: "U",
  ũ: "u",
  Ū: "U",
  ū: "u",
  Ŭ: "U",
  ŭ: "u",
  Ů: "U",
  ů: "u",
  Ű: "U",
  ű: "u",
  Ų: "U",
  ų: "u",
  Ȗ: "U",
  ȗ: "u",
  V̆: "V",
  v̆: "v",
  Ŵ: "W",
  ŵ: "w",
  Ẃ: "W",
  ẃ: "w",
  X̆: "X",
  x̆: "x",
  Ŷ: "Y",
  ŷ: "y",
  Ÿ: "Y",
  Y̆: "Y",
  y̆: "y",
  Ź: "Z",
  ź: "z",
  Ż: "Z",
  ż: "z",
  Ž: "Z",
  ž: "z",
  ſ: "s",
  ƒ: "f",
  Ơ: "O",
  ơ: "o",
  Ư: "U",
  ư: "u",
  Ǎ: "A",
  ǎ: "a",
  Ǐ: "I",
  ǐ: "i",
  Ǒ: "O",
  ǒ: "o",
  Ǔ: "U",
  ǔ: "u",
  Ǖ: "U",
  ǖ: "u",
  Ǘ: "U",
  ǘ: "u",
  Ǚ: "U",
  ǚ: "u",
  Ǜ: "U",
  ǜ: "u",
  Ứ: "U",
  ứ: "u",
  Ṹ: "U",
  ṹ: "u",
  Ǻ: "A",
  ǻ: "a",
  Ǽ: "AE",
  ǽ: "ae",
  Ǿ: "O",
  ǿ: "o",
  Þ: "TH",
  þ: "th",
  Ṕ: "P",
  ṕ: "p",
  Ṥ: "S",
  ṥ: "s",
  X́: "X",
  x́: "x",
  Ѓ: "Г",
  ѓ: "г",
  Ќ: "К",
  ќ: "к",
  A̋: "A",
  a̋: "a",
  E̋: "E",
  e̋: "e",
  I̋: "I",
  i̋: "i",
  Ǹ: "N",
  ǹ: "n",
  Ồ: "O",
  ồ: "o",
  Ṑ: "O",
  ṑ: "o",
  Ừ: "U",
  ừ: "u",
  Ẁ: "W",
  ẁ: "w",
  Ỳ: "Y",
  ỳ: "y",
  Ȁ: "A",
  ȁ: "a",
  Ȅ: "E",
  ȅ: "e",
  Ȉ: "I",
  ȉ: "i",
  Ȍ: "O",
  ȍ: "o",
  Ȑ: "R",
  ȑ: "r",
  Ȕ: "U",
  ȕ: "u",
  B̌: "B",
  b̌: "b",
  Č̣: "C",
  č̣: "c",
  Ê̌: "E",
  ê̌: "e",
  F̌: "F",
  f̌: "f",
  Ǧ: "G",
  ǧ: "g",
  Ȟ: "H",
  ȟ: "h",
  J̌: "J",
  ǰ: "j",
  Ǩ: "K",
  ǩ: "k",
  M̌: "M",
  m̌: "m",
  P̌: "P",
  p̌: "p",
  Q̌: "Q",
  q̌: "q",
  Ř̩: "R",
  ř̩: "r",
  Ṧ: "S",
  ṧ: "s",
  V̌: "V",
  v̌: "v",
  W̌: "W",
  w̌: "w",
  X̌: "X",
  x̌: "x",
  Y̌: "Y",
  y̌: "y",
  A̧: "A",
  a̧: "a",
  B̧: "B",
  b̧: "b",
  Ḑ: "D",
  ḑ: "d",
  Ȩ: "E",
  ȩ: "e",
  Ɛ̧: "E",
  ɛ̧: "e",
  Ḩ: "H",
  ḩ: "h",
  I̧: "I",
  i̧: "i",
  Ɨ̧: "I",
  ɨ̧: "i",
  M̧: "M",
  m̧: "m",
  O̧: "O",
  o̧: "o",
  Q̧: "Q",
  q̧: "q",
  U̧: "U",
  u̧: "u",
  X̧: "X",
  x̧: "x",
  Z̧: "Z",
  z̧: "z",
  й: "и",
  Й: "И",
  ё: "е",
  Ё: "Е"
}, Md = Object.keys(Nd).join("|"), Fg = new RegExp(Md, "g"), jg = new RegExp(Md, "");
function qg(e) {
  return Nd[e];
}
var Ld = function(e) {
  return e.replace(Fg, qg);
}, Vg = function(e) {
  return !!e.match(jg);
};
_s.exports = Ld;
_s.exports.has = Vg;
_s.exports.remove = Ld;
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var hs = function(e, t) {
  return hs = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
    n.__proto__ = r;
  } || function(n, r) {
    for (var o in r)
      Object.prototype.hasOwnProperty.call(r, o) && (n[o] = r[o]);
  }, hs(e, t);
};
function $s(e, t) {
  if (typeof t != "function" && t !== null)
    throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
  hs(e, t);
  function n() {
    this.constructor = e;
  }
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
}
function On(e) {
  return typeof e == "string" || Array.isArray(e);
}
function ps(e, t) {
  if (t) {
    var n = t(e);
    if (n !== void 0 || Cn(e))
      return n;
  }
  if (Array.isArray(e))
    return e.map(function(o) {
      return ps(o, t);
    });
  if (typeof e == "object" && zg(e)) {
    var r = Object.entries(e).map(function(o) {
      var a = o[0], i = o[1];
      return [
        a,
        ps(i, t)
      ];
    });
    return Object.fromEntries(r);
  }
  return e;
}
function Te(e) {
  return ps(e, function(t) {
    if (Cn(t))
      return Te(X(t));
  });
}
function zg(e) {
  if (Object.prototype.toString.call(e) !== "[object Object]")
    return !1;
  var t = Object.getPrototypeOf(e);
  return t === null || t === Object.prototype;
}
var Ug = (
  /** @class */
  function(e) {
    $s(t, e);
    function t() {
      return e !== null && e.apply(this, arguments) || this;
    }
    return t.prototype.find = function(n, r) {
      var o = Te(n), a = Te(r);
      return e.prototype.find.call(this, o, a);
    }, t.prototype.findAll = function(n, r) {
      var o = Te(n), a = Te(r);
      return On(o) ? e.prototype.findAll.call(this, o, a) : e.prototype.findAll.call(this, o);
    }, t;
  }(Pd)
), Hg = (
  /** @class */
  function(e) {
    $s(t, e);
    function t() {
      return e !== null && e.apply(this, arguments) || this;
    }
    return t.prototype.find = function(n) {
      return e.prototype.find.call(this, Te(n));
    }, t.prototype.findAll = function(n) {
      return e.prototype.findAll.call(this, Te(n));
    }, t;
  }(Id)
);
(function(e) {
  $s(t, e);
  function t(n) {
    n === void 0 && (n = {});
    var r = Te(n), o = {
      defaultOptions: Te(r.defaultOptions),
      queryCache: r.queryCache || new Ug(),
      mutationCache: r.mutationCache || new Hg()
    };
    return e.call(this, o) || this;
  }
  return t.prototype.isFetching = function(n, r) {
    var o = Te(n), a = Te(r);
    return On(o) ? e.prototype.isFetching.call(this, o, a) : e.prototype.isFetching.call(this, o);
  }, t.prototype.isMutating = function(n) {
    return e.prototype.isMutating.call(this, Te(n));
  }, t.prototype.getQueryData = function(n, r) {
    return e.prototype.getQueryData.call(this, Te(n), Te(r));
  }, t.prototype.getQueriesData = function(n) {
    var r = Te(n);
    return On(r) ? e.prototype.getQueriesData.call(this, r) : e.prototype.getQueriesData.call(this, r);
  }, t.prototype.setQueryData = function(n, r, o) {
    return e.prototype.setQueryData.call(this, Te(n), r, Te(o));
  }, t.prototype.setQueriesData = function(n, r, o) {
    var a = Te(n), i = Te(o);
    return On(a) ? e.prototype.setQueriesData.call(this, a, r, i) : e.prototype.setQueriesData.call(this, a, r, i);
  }, t.prototype.getQueryState = function(n, r) {
    return e.prototype.getQueryState.call(this, Te(n), Te(r));
  }, t.prototype.removeQueries = function(n, r) {
    var o = Te(n);
    return On(o) ? e.prototype.removeQueries.call(this, o, Te(r)) : e.prototype.removeQueries.call(this, o);
  }, t.prototype.resetQueries = function(n, r, o) {
    var a = Te(n), i = Te(r);
    return On(a) ? e.prototype.resetQueries.call(this, a, i, Te(o)) : e.prototype.resetQueries.call(this, a, i);
  }, t.prototype.cancelQueries = function(n, r, o) {
    var a = Te(n), i = Te(r);
    return On(a) ? e.prototype.cancelQueries.call(this, a, i, Te(o)) : e.prototype.cancelQueries.call(this, a, i);
  }, t.prototype.invalidateQueries = function(n, r, o) {
    var a = Te(n), i = Te(r);
    return On(a) ? e.prototype.invalidateQueries.call(this, a, i, Te(o)) : e.prototype.invalidateQueries.call(this, a, i);
  }, t.prototype.refetchQueries = function(n, r, o) {
    var a = Te(n), i = Te(r);
    return On(a) ? e.prototype.refetchQueries.call(this, a, i, Te(o)) : e.prototype.refetchQueries.call(this, a, i);
  }, t.prototype.fetchQuery = function(n, r, o) {
    var a = Te(n), i = Te(r);
    return On(a) ? e.prototype.fetchQuery.call(this, a, i, Te(o)) : e.prototype.fetchQuery.call(this, a);
  }, t.prototype.prefetchQuery = function(n, r, o) {
    return e.prototype.prefetchQuery.call(this, Te(n), Te(r), Te(o));
  }, t.prototype.fetchInfiniteQuery = function(n, r, o) {
    var a = Te(n), i = Te(r);
    return On(a) ? e.prototype.fetchInfiniteQuery.call(this, a, i, Te(o)) : e.prototype.fetchInfiniteQuery.call(this, a);
  }, t.prototype.prefetchInfiniteQuery = function(n, r, o) {
    return e.prototype.prefetchInfiniteQuery.call(this, Te(n), Te(r), Te(o));
  }, t.prototype.setDefaultOptions = function(n) {
    e.prototype.setDefaultOptions.call(this, Te(n));
  }, t.prototype.setQueryDefaults = function(n, r) {
    e.prototype.setQueryDefaults.call(this, Te(n), Te(r));
  }, t.prototype.getQueryDefaults = function(n) {
    return e.prototype.getQueryDefaults.call(this, Te(n));
  }, t.prototype.setMutationDefaults = function(n, r) {
    e.prototype.setMutationDefaults.call(this, Te(n), Te(r));
  }, t.prototype.getMutationDefaults = function(n) {
    return e.prototype.getMutationDefaults.call(this, Te(n));
  }, t;
})(Bg);
var sc;
(function(e) {
  e[e.Fetching = 0] = "Fetching", e[e.Fresh = 1] = "Fresh", e[e.Stale = 2] = "Stale", e[e.Inactive = 3] = "Inactive";
})(sc || (sc = {}));
const gs = (e) => e < 1 || e < 1e3 ? e.toString() : e >= 1e3 && e < 1e6 ? +(e / 1e3).toFixed(1) + "K" : e >= 1e6 && e < 1e9 ? +(e / 1e6).toFixed(1) + "M" : e >= 1e9 && e < 1e12 ? +(e / 1e9).toFixed(1) + "B" : e >= 1e12 ? +(e / 1e12).toFixed(1) + "T" : e.toString(), Yg = (e) => typeof e == "object" && e !== null && !Array.isArray(e) && !(e instanceof File), Rd = (e) => {
  const t = {};
  for (const n in e)
    if (Object.prototype.hasOwnProperty.call(e, n)) {
      const r = e[n];
      if (Yg(r)) {
        const o = Rd(r);
        Object.keys(o).length > 0 && (t[n] = o);
      } else
        (r || r instanceof File) && (t[n] = r);
    }
  return t;
};
function Bd(e, t) {
  return function() {
    return e.apply(t, arguments);
  };
}
const { toString: Qg } = Object.prototype, { getPrototypeOf: eu } = Object, { iterator: Vi, toStringTag: Fd } = Symbol, zi = /* @__PURE__ */ ((e) => (t) => {
  const n = Qg.call(t);
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
})(/* @__PURE__ */ Object.create(null)), Dn = (e) => (e = e.toLowerCase(), (t) => zi(t) === e), Ui = (e) => (t) => typeof t === e, { isArray: xo } = Array, so = Ui("undefined");
function ma(e) {
  return e !== null && !so(e) && e.constructor !== null && !so(e.constructor) && $t(e.constructor.isBuffer) && e.constructor.isBuffer(e);
}
const jd = Dn("ArrayBuffer");
function Wg(e) {
  let t;
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && jd(e.buffer), t;
}
const Gg = Ui("string"), $t = Ui("function"), qd = Ui("number"), ya = (e) => e !== null && typeof e == "object", Kg = (e) => e === !0 || e === !1, li = (e) => {
  if (zi(e) !== "object")
    return !1;
  const t = eu(e);
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Fd in e) && !(Vi in e);
}, Xg = (e) => {
  if (!ya(e) || ma(e))
    return !1;
  try {
    return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
  } catch {
    return !1;
  }
}, Zg = Dn("Date"), Jg = Dn("File"), _g = (e) => !!(e && typeof e.uri < "u"), $g = (e) => e && typeof e.getParts < "u", em = Dn("Blob"), tm = Dn("FileList"), nm = (e) => ya(e) && $t(e.pipe);
function rm() {
  return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
}
const uc = rm(), cc = typeof uc.FormData < "u" ? uc.FormData : void 0, om = (e) => {
  let t;
  return e && (cc && e instanceof cc || $t(e.append) && ((t = zi(e)) === "formdata" || // detect form-data instance
  t === "object" && $t(e.toString) && e.toString() === "[object FormData]"));
}, am = Dn("URLSearchParams"), [im, lm, sm, um] = [
  "ReadableStream",
  "Request",
  "Response",
  "Headers"
].map(Dn), cm = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
function ba(e, t, { allOwnKeys: n = !1 } = {}) {
  if (e === null || typeof e > "u")
    return;
  let r, o;
  if (typeof e != "object" && (e = [e]), xo(e))
    for (r = 0, o = e.length; r < o; r++)
      t.call(null, e[r], r, e);
  else {
    if (ma(e))
      return;
    const a = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = a.length;
    let l;
    for (r = 0; r < i; r++)
      l = a[r], t.call(null, e[l], l, e);
  }
}
function Vd(e, t) {
  if (ma(e))
    return null;
  t = t.toLowerCase();
  const n = Object.keys(e);
  let r = n.length, o;
  for (; r-- > 0; )
    if (o = n[r], t === o.toLowerCase())
      return o;
  return null;
}
const Nr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, zd = (e) => !so(e) && e !== Nr;
function ms() {
  const { caseless: e, skipUndefined: t } = zd(this) && this || {}, n = {}, r = (o, a) => {
    if (a === "__proto__" || a === "constructor" || a === "prototype")
      return;
    const i = e && Vd(n, a) || a;
    li(n[i]) && li(o) ? n[i] = ms(n[i], o) : li(o) ? n[i] = ms({}, o) : xo(o) ? n[i] = o.slice() : (!t || !so(o)) && (n[i] = o);
  };
  for (let o = 0, a = arguments.length; o < a; o++)
    arguments[o] && ba(arguments[o], r);
  return n;
}
const fm = (e, t, n, { allOwnKeys: r } = {}) => (ba(
  t,
  (o, a) => {
    n && $t(o) ? Object.defineProperty(e, a, {
      value: Bd(o, n),
      writable: !0,
      enumerable: !0,
      configurable: !0
    }) : Object.defineProperty(e, a, {
      value: o,
      writable: !0,
      enumerable: !0,
      configurable: !0
    });
  },
  { allOwnKeys: r }
), e), dm = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), vm = (e, t, n, r) => {
  e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
    value: e,
    writable: !0,
    enumerable: !1,
    configurable: !0
  }), Object.defineProperty(e, "super", {
    value: t.prototype
  }), n && Object.assign(e.prototype, n);
}, hm = (e, t, n, r) => {
  let o, a, i;
  const l = {};
  if (t = t || {}, e == null)
    return t;
  do {
    for (o = Object.getOwnPropertyNames(e), a = o.length; a-- > 0; )
      i = o[a], (!r || r(i, e, t)) && !l[i] && (t[i] = e[i], l[i] = !0);
    e = n !== !1 && eu(e);
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
  return t;
}, pm = (e, t, n) => {
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
  const r = e.indexOf(t, n);
  return r !== -1 && r === n;
}, gm = (e) => {
  if (!e)
    return null;
  if (xo(e))
    return e;
  let t = e.length;
  if (!qd(t))
    return null;
  const n = new Array(t);
  for (; t-- > 0; )
    n[t] = e[t];
  return n;
}, mm = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && eu(Uint8Array)), ym = (e, t) => {
  const r = (e && e[Vi]).call(e);
  let o;
  for (; (o = r.next()) && !o.done; ) {
    const a = o.value;
    t.call(e, a[0], a[1]);
  }
}, bm = (e, t) => {
  let n;
  const r = [];
  for (; (n = e.exec(t)) !== null; )
    r.push(n);
  return r;
}, wm = Dn("HTMLFormElement"), xm = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, o) {
  return r.toUpperCase() + o;
}), fc = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Am = Dn("RegExp"), Ud = (e, t) => {
  const n = Object.getOwnPropertyDescriptors(e), r = {};
  ba(n, (o, a) => {
    let i;
    (i = t(o, a, e)) !== !1 && (r[a] = i || o);
  }), Object.defineProperties(e, r);
}, Om = (e) => {
  Ud(e, (t, n) => {
    if ($t(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
      return !1;
    const r = e[n];
    if ($t(r)) {
      if (t.enumerable = !1, "writable" in t) {
        t.writable = !1;
        return;
      }
      t.set || (t.set = () => {
        throw Error("Can not rewrite read-only method '" + n + "'");
      });
    }
  });
}, Cm = (e, t) => {
  const n = {}, r = (o) => {
    o.forEach((a) => {
      n[a] = !0;
    });
  };
  return xo(e) ? r(e) : r(String(e).split(t)), n;
}, Em = () => {
}, Sm = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
function Tm(e) {
  return !!(e && $t(e.append) && e[Fd] === "FormData" && e[Vi]);
}
const Dm = (e) => {
  const t = new Array(10), n = (r, o) => {
    if (ya(r)) {
      if (t.indexOf(r) >= 0)
        return;
      if (ma(r))
        return r;
      if (!("toJSON" in r)) {
        t[o] = r;
        const a = xo(r) ? [] : {};
        return ba(r, (i, l) => {
          const s = n(i, o + 1);
          !so(s) && (a[l] = s);
        }), t[o] = void 0, a;
      }
    }
    return r;
  };
  return n(e, 0);
}, km = Dn("AsyncFunction"), Pm = (e) => e && (ya(e) || $t(e)) && $t(e.then) && $t(e.catch), Hd = ((e, t) => e ? setImmediate : t ? ((n, r) => (Nr.addEventListener(
  "message",
  ({ source: o, data: a }) => {
    o === Nr && a === n && r.length && r.shift()();
  },
  !1
), (o) => {
  r.push(o), Nr.postMessage(n, "*");
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", $t(Nr.postMessage)), Im = typeof queueMicrotask < "u" ? queueMicrotask.bind(Nr) : typeof process < "u" && process.nextTick || Hd, Nm = (e) => e != null && $t(e[Vi]), te = {
  isArray: xo,
  isArrayBuffer: jd,
  isBuffer: ma,
  isFormData: om,
  isArrayBufferView: Wg,
  isString: Gg,
  isNumber: qd,
  isBoolean: Kg,
  isObject: ya,
  isPlainObject: li,
  isEmptyObject: Xg,
  isReadableStream: im,
  isRequest: lm,
  isResponse: sm,
  isHeaders: um,
  isUndefined: so,
  isDate: Zg,
  isFile: Jg,
  isReactNativeBlob: _g,
  isReactNative: $g,
  isBlob: em,
  isRegExp: Am,
  isFunction: $t,
  isStream: nm,
  isURLSearchParams: am,
  isTypedArray: mm,
  isFileList: tm,
  forEach: ba,
  merge: ms,
  extend: fm,
  trim: cm,
  stripBOM: dm,
  inherits: vm,
  toFlatObject: hm,
  kindOf: zi,
  kindOfTest: Dn,
  endsWith: pm,
  toArray: gm,
  forEachEntry: ym,
  matchAll: bm,
  isHTMLForm: wm,
  hasOwnProperty: fc,
  hasOwnProp: fc,
  // an alias to avoid ESLint no-prototype-builtins detection
  reduceDescriptors: Ud,
  freezeMethods: Om,
  toObjectSet: Cm,
  toCamelCase: xm,
  noop: Em,
  toFiniteNumber: Sm,
  findKey: Vd,
  global: Nr,
  isContextDefined: zd,
  isSpecCompliantForm: Tm,
  toJSONObject: Dm,
  isAsyncFn: km,
  isThenable: Pm,
  setImmediate: Hd,
  asap: Im,
  isIterable: Nm
};
let Le = class Yd extends Error {
  static from(t, n, r, o, a, i) {
    const l = new Yd(t.message, n || t.code, r, o, a);
    return l.cause = t, l.name = t.name, t.status != null && l.status == null && (l.status = t.status), i && Object.assign(l, i), l;
  }
  /**
   * Create an Error with the specified message, config, error code, request and response.
   *
   * @param {string} message The error message.
   * @param {string} [code] The error code (for example, 'ECONNABORTED').
   * @param {Object} [config] The config.
   * @param {Object} [request] The request.
   * @param {Object} [response] The response.
   *
   * @returns {Error} The created error.
   */
  constructor(t, n, r, o, a) {
    super(t), Object.defineProperty(this, "message", {
      value: t,
      enumerable: !0,
      writable: !0,
      configurable: !0
    }), this.name = "AxiosError", this.isAxiosError = !0, n && (this.code = n), r && (this.config = r), o && (this.request = o), a && (this.response = a, this.status = a.status);
  }
  toJSON() {
    return {
      // Standard
      message: this.message,
      name: this.name,
      // Microsoft
      description: this.description,
      number: this.number,
      // Mozilla
      fileName: this.fileName,
      lineNumber: this.lineNumber,
      columnNumber: this.columnNumber,
      stack: this.stack,
      // Axios
      config: te.toJSONObject(this.config),
      code: this.code,
      status: this.status
    };
  }
};
Le.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
Le.ERR_BAD_OPTION = "ERR_BAD_OPTION";
Le.ECONNABORTED = "ECONNABORTED";
Le.ETIMEDOUT = "ETIMEDOUT";
Le.ERR_NETWORK = "ERR_NETWORK";
Le.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
Le.ERR_DEPRECATED = "ERR_DEPRECATED";
Le.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
Le.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
Le.ERR_CANCELED = "ERR_CANCELED";
Le.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
Le.ERR_INVALID_URL = "ERR_INVALID_URL";
const Mm = null;
function ys(e) {
  return te.isPlainObject(e) || te.isArray(e);
}
function Qd(e) {
  return te.endsWith(e, "[]") ? e.slice(0, -2) : e;
}
function Yl(e, t, n) {
  return e ? e.concat(t).map(function(o, a) {
    return o = Qd(o), !n && a ? "[" + o + "]" : o;
  }).join(n ? "." : "") : t;
}
function Lm(e) {
  return te.isArray(e) && !e.some(ys);
}
const Rm = te.toFlatObject(te, {}, null, function(t) {
  return /^is[A-Z]/.test(t);
});
function Hi(e, t, n) {
  if (!te.isObject(e))
    throw new TypeError("target must be an object");
  t = t || new FormData(), n = te.toFlatObject(
    n,
    {
      metaTokens: !0,
      dots: !1,
      indexes: !1
    },
    !1,
    function(m, p) {
      return !te.isUndefined(p[m]);
    }
  );
  const r = n.metaTokens, o = n.visitor || c, a = n.dots, i = n.indexes, s = (n.Blob || typeof Blob < "u" && Blob) && te.isSpecCompliantForm(t);
  if (!te.isFunction(o))
    throw new TypeError("visitor must be a function");
  function u(h) {
    if (h === null)
      return "";
    if (te.isDate(h))
      return h.toISOString();
    if (te.isBoolean(h))
      return h.toString();
    if (!s && te.isBlob(h))
      throw new Le("Blob is not supported. Use a Buffer instead.");
    return te.isArrayBuffer(h) || te.isTypedArray(h) ? s && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
  }
  function c(h, m, p) {
    let g = h;
    if (te.isReactNative(t) && te.isReactNativeBlob(h))
      return t.append(Yl(p, m, a), u(h)), !1;
    if (h && !p && typeof h == "object") {
      if (te.endsWith(m, "{}"))
        m = r ? m : m.slice(0, -2), h = JSON.stringify(h);
      else if (te.isArray(h) && Lm(h) || (te.isFileList(h) || te.endsWith(m, "[]")) && (g = te.toArray(h)))
        return m = Qd(m), g.forEach(function(x, b) {
          !(te.isUndefined(x) || x === null) && t.append(
            // eslint-disable-next-line no-nested-ternary
            i === !0 ? Yl([m], b, a) : i === null ? m : m + "[]",
            u(x)
          );
        }), !1;
    }
    return ys(h) ? !0 : (t.append(Yl(p, m, a), u(h)), !1);
  }
  const d = [], f = Object.assign(Rm, {
    defaultVisitor: c,
    convertValue: u,
    isVisitable: ys
  });
  function v(h, m) {
    if (!te.isUndefined(h)) {
      if (d.indexOf(h) !== -1)
        throw Error("Circular reference detected in " + m.join("."));
      d.push(h), te.forEach(h, function(g, y) {
        (!(te.isUndefined(g) || g === null) && o.call(t, g, te.isString(y) ? y.trim() : y, m, f)) === !0 && v(g, m ? m.concat(y) : [y]);
      }), d.pop();
    }
  }
  if (!te.isObject(e))
    throw new TypeError("data must be an object");
  return v(e), t;
}
function dc(e) {
  const t = {
    "!": "%21",
    "'": "%27",
    "(": "%28",
    ")": "%29",
    "~": "%7E",
    "%20": "+",
    "%00": "\0"
  };
  return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
    return t[r];
  });
}
function tu(e, t) {
  this._pairs = [], e && Hi(e, this, t);
}
const Wd = tu.prototype;
Wd.append = function(t, n) {
  this._pairs.push([t, n]);
};
Wd.toString = function(t) {
  const n = t ? function(r) {
    return t.call(this, r, dc);
  } : dc;
  return this._pairs.map(function(o) {
    return n(o[0]) + "=" + n(o[1]);
  }, "").join("&");
};
function Bm(e) {
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
}
function Gd(e, t, n) {
  if (!t)
    return e;
  const r = n && n.encode || Bm, o = te.isFunction(n) ? {
    serialize: n
  } : n, a = o && o.serialize;
  let i;
  if (a ? i = a(t, o) : i = te.isURLSearchParams(t) ? t.toString() : new tu(t, o).toString(r), i) {
    const l = e.indexOf("#");
    l !== -1 && (e = e.slice(0, l)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
  }
  return e;
}
class vc {
  constructor() {
    this.handlers = [];
  }
  /**
   * Add a new interceptor to the stack
   *
   * @param {Function} fulfilled The function to handle `then` for a `Promise`
   * @param {Function} rejected The function to handle `reject` for a `Promise`
   * @param {Object} options The options for the interceptor, synchronous and runWhen
   *
   * @return {Number} An ID used to remove interceptor later
   */
  use(t, n, r) {
    return this.handlers.push({
      fulfilled: t,
      rejected: n,
      synchronous: r ? r.synchronous : !1,
      runWhen: r ? r.runWhen : null
    }), this.handlers.length - 1;
  }
  /**
   * Remove an interceptor from the stack
   *
   * @param {Number} id The ID that was returned by `use`
   *
   * @returns {void}
   */
  eject(t) {
    this.handlers[t] && (this.handlers[t] = null);
  }
  /**
   * Clear all interceptors from the stack
   *
   * @returns {void}
   */
  clear() {
    this.handlers && (this.handlers = []);
  }
  /**
   * Iterate over all the registered interceptors
   *
   * This method is particularly useful for skipping over any
   * interceptors that may have become `null` calling `eject`.
   *
   * @param {Function} fn The function to call for each interceptor
   *
   * @returns {void}
   */
  forEach(t) {
    te.forEach(this.handlers, function(r) {
      r !== null && t(r);
    });
  }
}
const nu = {
  silentJSONParsing: !0,
  forcedJSONParsing: !0,
  clarifyTimeoutError: !1,
  legacyInterceptorReqResOrdering: !0
}, Fm = typeof URLSearchParams < "u" ? URLSearchParams : tu, jm = typeof FormData < "u" ? FormData : null, qm = typeof Blob < "u" ? Blob : null, Vm = {
  isBrowser: !0,
  classes: {
    URLSearchParams: Fm,
    FormData: jm,
    Blob: qm
  },
  protocols: ["http", "https", "file", "blob", "url", "data"]
}, ru = typeof window < "u" && typeof document < "u", bs = typeof navigator == "object" && navigator || void 0, zm = ru && (!bs || ["ReactNative", "NativeScript", "NS"].indexOf(bs.product) < 0), Um = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Hm = ru && window.location.href || "http://localhost", Ym = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  hasBrowserEnv: ru,
  hasStandardBrowserEnv: zm,
  hasStandardBrowserWebWorkerEnv: Um,
  navigator: bs,
  origin: Hm
}, Symbol.toStringTag, { value: "Module" })), qt = {
  ...Ym,
  ...Vm
};
function Qm(e, t) {
  return Hi(e, new qt.classes.URLSearchParams(), {
    visitor: function(n, r, o, a) {
      return qt.isNode && te.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
    },
    ...t
  });
}
function Wm(e) {
  return te.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
}
function Gm(e) {
  const t = {}, n = Object.keys(e);
  let r;
  const o = n.length;
  let a;
  for (r = 0; r < o; r++)
    a = n[r], t[a] = e[a];
  return t;
}
function Kd(e) {
  function t(n, r, o, a) {
    let i = n[a++];
    if (i === "__proto__")
      return !0;
    const l = Number.isFinite(+i), s = a >= n.length;
    return i = !i && te.isArray(o) ? o.length : i, s ? (te.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !l) : ((!o[i] || !te.isObject(o[i])) && (o[i] = []), t(n, r, o[i], a) && te.isArray(o[i]) && (o[i] = Gm(o[i])), !l);
  }
  if (te.isFormData(e) && te.isFunction(e.entries)) {
    const n = {};
    return te.forEachEntry(e, (r, o) => {
      t(Wm(r), o, n, 0);
    }), n;
  }
  return null;
}
function Km(e, t, n) {
  if (te.isString(e))
    try {
      return (t || JSON.parse)(e), te.trim(e);
    } catch (r) {
      if (r.name !== "SyntaxError")
        throw r;
    }
  return (n || JSON.stringify)(e);
}
const wa = {
  transitional: nu,
  adapter: ["xhr", "http", "fetch"],
  transformRequest: [
    function(t, n) {
      const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, a = te.isObject(t);
      if (a && te.isHTMLForm(t) && (t = new FormData(t)), te.isFormData(t))
        return o ? JSON.stringify(Kd(t)) : t;
      if (te.isArrayBuffer(t) || te.isBuffer(t) || te.isStream(t) || te.isFile(t) || te.isBlob(t) || te.isReadableStream(t))
        return t;
      if (te.isArrayBufferView(t))
        return t.buffer;
      if (te.isURLSearchParams(t))
        return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
      let l;
      if (a) {
        if (r.indexOf("application/x-www-form-urlencoded") > -1)
          return Qm(t, this.formSerializer).toString();
        if ((l = te.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
          const s = this.env && this.env.FormData;
          return Hi(
            l ? { "files[]": t } : t,
            s && new s(),
            this.formSerializer
          );
        }
      }
      return a || o ? (n.setContentType("application/json", !1), Km(t)) : t;
    }
  ],
  transformResponse: [
    function(t) {
      const n = this.transitional || wa.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
      if (te.isResponse(t) || te.isReadableStream(t))
        return t;
      if (t && te.isString(t) && (r && !this.responseType || o)) {
        const i = !(n && n.silentJSONParsing) && o;
        try {
          return JSON.parse(t, this.parseReviver);
        } catch (l) {
          if (i)
            throw l.name === "SyntaxError" ? Le.from(l, Le.ERR_BAD_RESPONSE, this, null, this.response) : l;
        }
      }
      return t;
    }
  ],
  /**
   * A timeout in milliseconds to abort a request. If set to 0 (default) a
   * timeout is not created.
   */
  timeout: 0,
  xsrfCookieName: "XSRF-TOKEN",
  xsrfHeaderName: "X-XSRF-TOKEN",
  maxContentLength: -1,
  maxBodyLength: -1,
  env: {
    FormData: qt.classes.FormData,
    Blob: qt.classes.Blob
  },
  validateStatus: function(t) {
    return t >= 200 && t < 300;
  },
  headers: {
    common: {
      Accept: "application/json, text/plain, */*",
      "Content-Type": void 0
    }
  }
};
te.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
  wa.headers[e] = {};
});
const Xm = te.toObjectSet([
  "age",
  "authorization",
  "content-length",
  "content-type",
  "etag",
  "expires",
  "from",
  "host",
  "if-modified-since",
  "if-unmodified-since",
  "last-modified",
  "location",
  "max-forwards",
  "proxy-authorization",
  "referer",
  "retry-after",
  "user-agent"
]), Zm = (e) => {
  const t = {};
  let n, r, o;
  return e && e.split(`
`).forEach(function(i) {
    o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && Xm[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
  }), t;
}, hc = Symbol("internals");
function zo(e) {
  return e && String(e).trim().toLowerCase();
}
function si(e) {
  return e === !1 || e == null ? e : te.isArray(e) ? e.map(si) : String(e);
}
function Jm(e) {
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
  let r;
  for (; r = n.exec(e); )
    t[r[1]] = r[2];
  return t;
}
const _m = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
function Ql(e, t, n, r, o) {
  if (te.isFunction(r))
    return r.call(this, t, n);
  if (o && (t = n), !!te.isString(t)) {
    if (te.isString(r))
      return t.indexOf(r) !== -1;
    if (te.isRegExp(r))
      return r.test(t);
  }
}
function $m(e) {
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
}
function ey(e, t) {
  const n = te.toCamelCase(" " + t);
  ["get", "set", "has"].forEach((r) => {
    Object.defineProperty(e, r + n, {
      value: function(o, a, i) {
        return this[r].call(this, t, o, a, i);
      },
      configurable: !0
    });
  });
}
let en = class {
  constructor(t) {
    t && this.set(t);
  }
  set(t, n, r) {
    const o = this;
    function a(l, s, u) {
      const c = zo(s);
      if (!c)
        throw new Error("header name must be a non-empty string");
      const d = te.findKey(o, c);
      (!d || o[d] === void 0 || u === !0 || u === void 0 && o[d] !== !1) && (o[d || s] = si(l));
    }
    const i = (l, s) => te.forEach(l, (u, c) => a(u, c, s));
    if (te.isPlainObject(t) || t instanceof this.constructor)
      i(t, n);
    else if (te.isString(t) && (t = t.trim()) && !_m(t))
      i(Zm(t), n);
    else if (te.isObject(t) && te.isIterable(t)) {
      let l = {}, s, u;
      for (const c of t) {
        if (!te.isArray(c))
          throw TypeError("Object iterator must return a key-value pair");
        l[u = c[0]] = (s = l[u]) ? te.isArray(s) ? [...s, c[1]] : [s, c[1]] : c[1];
      }
      i(l, n);
    } else
      t != null && a(n, t, r);
    return this;
  }
  get(t, n) {
    if (t = zo(t), t) {
      const r = te.findKey(this, t);
      if (r) {
        const o = this[r];
        if (!n)
          return o;
        if (n === !0)
          return Jm(o);
        if (te.isFunction(n))
          return n.call(this, o, r);
        if (te.isRegExp(n))
          return n.exec(o);
        throw new TypeError("parser must be boolean|regexp|function");
      }
    }
  }
  has(t, n) {
    if (t = zo(t), t) {
      const r = te.findKey(this, t);
      return !!(r && this[r] !== void 0 && (!n || Ql(this, this[r], r, n)));
    }
    return !1;
  }
  delete(t, n) {
    const r = this;
    let o = !1;
    function a(i) {
      if (i = zo(i), i) {
        const l = te.findKey(r, i);
        l && (!n || Ql(r, r[l], l, n)) && (delete r[l], o = !0);
      }
    }
    return te.isArray(t) ? t.forEach(a) : a(t), o;
  }
  clear(t) {
    const n = Object.keys(this);
    let r = n.length, o = !1;
    for (; r--; ) {
      const a = n[r];
      (!t || Ql(this, this[a], a, t, !0)) && (delete this[a], o = !0);
    }
    return o;
  }
  normalize(t) {
    const n = this, r = {};
    return te.forEach(this, (o, a) => {
      const i = te.findKey(r, a);
      if (i) {
        n[i] = si(o), delete n[a];
        return;
      }
      const l = t ? $m(a) : String(a).trim();
      l !== a && delete n[a], n[l] = si(o), r[l] = !0;
    }), this;
  }
  concat(...t) {
    return this.constructor.concat(this, ...t);
  }
  toJSON(t) {
    const n = /* @__PURE__ */ Object.create(null);
    return te.forEach(this, (r, o) => {
      r != null && r !== !1 && (n[o] = t && te.isArray(r) ? r.join(", ") : r);
    }), n;
  }
  [Symbol.iterator]() {
    return Object.entries(this.toJSON())[Symbol.iterator]();
  }
  toString() {
    return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
`);
  }
  getSetCookie() {
    return this.get("set-cookie") || [];
  }
  get [Symbol.toStringTag]() {
    return "AxiosHeaders";
  }
  static from(t) {
    return t instanceof this ? t : new this(t);
  }
  static concat(t, ...n) {
    const r = new this(t);
    return n.forEach((o) => r.set(o)), r;
  }
  static accessor(t) {
    const r = (this[hc] = this[hc] = {
      accessors: {}
    }).accessors, o = this.prototype;
    function a(i) {
      const l = zo(i);
      r[l] || (ey(o, i), r[l] = !0);
    }
    return te.isArray(t) ? t.forEach(a) : a(t), this;
  }
};
en.accessor([
  "Content-Type",
  "Content-Length",
  "Accept",
  "Accept-Encoding",
  "User-Agent",
  "Authorization"
]);
te.reduceDescriptors(en.prototype, ({ value: e }, t) => {
  let n = t[0].toUpperCase() + t.slice(1);
  return {
    get: () => e,
    set(r) {
      this[n] = r;
    }
  };
});
te.freezeMethods(en);
function Wl(e, t) {
  const n = this || wa, r = t || n, o = en.from(r.headers);
  let a = r.data;
  return te.forEach(e, function(l) {
    a = l.call(n, a, o.normalize(), t ? t.status : void 0);
  }), o.normalize(), a;
}
function Xd(e) {
  return !!(e && e.__CANCEL__);
}
let xa = class extends Le {
  /**
   * A `CanceledError` is an object that is thrown when an operation is canceled.
   *
   * @param {string=} message The message.
   * @param {Object=} config The config.
   * @param {Object=} request The request.
   *
   * @returns {CanceledError} The created error.
   */
  constructor(t, n, r) {
    super(t ?? "canceled", Le.ERR_CANCELED, n, r), this.name = "CanceledError", this.__CANCEL__ = !0;
  }
};
function Zd(e, t, n) {
  const r = n.config.validateStatus;
  !n.status || !r || r(n.status) ? e(n) : t(
    new Le(
      "Request failed with status code " + n.status,
      [Le.ERR_BAD_REQUEST, Le.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
      n.config,
      n.request,
      n
    )
  );
}
function ty(e) {
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
  return t && t[1] || "";
}
function ny(e, t) {
  e = e || 10;
  const n = new Array(e), r = new Array(e);
  let o = 0, a = 0, i;
  return t = t !== void 0 ? t : 1e3, function(s) {
    const u = Date.now(), c = r[a];
    i || (i = u), n[o] = s, r[o] = u;
    let d = a, f = 0;
    for (; d !== o; )
      f += n[d++], d = d % e;
    if (o = (o + 1) % e, o === a && (a = (a + 1) % e), u - i < t)
      return;
    const v = c && u - c;
    return v ? Math.round(f * 1e3 / v) : void 0;
  };
}
function ry(e, t) {
  let n = 0, r = 1e3 / t, o, a;
  const i = (u, c = Date.now()) => {
    n = c, o = null, a && (clearTimeout(a), a = null), e(...u);
  };
  return [(...u) => {
    const c = Date.now(), d = c - n;
    d >= r ? i(u, c) : (o = u, a || (a = setTimeout(() => {
      a = null, i(o);
    }, r - d)));
  }, () => o && i(o)];
}
const bi = (e, t, n = 3) => {
  let r = 0;
  const o = ny(50, 250);
  return ry((a) => {
    const i = a.loaded, l = a.lengthComputable ? a.total : void 0, s = i - r, u = o(s), c = i <= l;
    r = i;
    const d = {
      loaded: i,
      total: l,
      progress: l ? i / l : void 0,
      bytes: s,
      rate: u || void 0,
      estimated: u && l && c ? (l - i) / u : void 0,
      event: a,
      lengthComputable: l != null,
      [t ? "download" : "upload"]: !0
    };
    e(d);
  }, n);
}, pc = (e, t) => {
  const n = e != null;
  return [
    (r) => t[0]({
      lengthComputable: n,
      total: e,
      loaded: r
    }),
    t[1]
  ];
}, gc = (e) => (...t) => te.asap(() => e(...t)), oy = qt.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, qt.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
  new URL(qt.origin),
  qt.navigator && /(msie|trident)/i.test(qt.navigator.userAgent)
) : () => !0, ay = qt.hasStandardBrowserEnv ? (
  // Standard browser envs support document.cookie
  {
    write(e, t, n, r, o, a, i) {
      if (typeof document > "u")
        return;
      const l = [`${e}=${encodeURIComponent(t)}`];
      te.isNumber(n) && l.push(`expires=${new Date(n).toUTCString()}`), te.isString(r) && l.push(`path=${r}`), te.isString(o) && l.push(`domain=${o}`), a === !0 && l.push("secure"), te.isString(i) && l.push(`SameSite=${i}`), document.cookie = l.join("; ");
    },
    read(e) {
      if (typeof document > "u")
        return null;
      const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
      return t ? decodeURIComponent(t[1]) : null;
    },
    remove(e) {
      this.write(e, "", Date.now() - 864e5, "/");
    }
  }
) : (
  // Non-standard browser env (web workers, react-native) lack needed support.
  {
    write() {
    },
    read() {
      return null;
    },
    remove() {
    }
  }
);
function iy(e) {
  return typeof e != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
}
function ly(e, t) {
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
}
function Jd(e, t, n) {
  let r = !iy(t);
  return e && (r || n == !1) ? ly(e, t) : t;
}
const mc = (e) => e instanceof en ? { ...e } : e;
function qr(e, t) {
  t = t || {};
  const n = {};
  function r(u, c, d, f) {
    return te.isPlainObject(u) && te.isPlainObject(c) ? te.merge.call({ caseless: f }, u, c) : te.isPlainObject(c) ? te.merge({}, c) : te.isArray(c) ? c.slice() : c;
  }
  function o(u, c, d, f) {
    if (te.isUndefined(c)) {
      if (!te.isUndefined(u))
        return r(void 0, u, d, f);
    } else
      return r(u, c, d, f);
  }
  function a(u, c) {
    if (!te.isUndefined(c))
      return r(void 0, c);
  }
  function i(u, c) {
    if (te.isUndefined(c)) {
      if (!te.isUndefined(u))
        return r(void 0, u);
    } else
      return r(void 0, c);
  }
  function l(u, c, d) {
    if (d in t)
      return r(u, c);
    if (d in e)
      return r(void 0, u);
  }
  const s = {
    url: a,
    method: a,
    data: a,
    baseURL: i,
    transformRequest: i,
    transformResponse: i,
    paramsSerializer: i,
    timeout: i,
    timeoutMessage: i,
    withCredentials: i,
    withXSRFToken: i,
    adapter: i,
    responseType: i,
    xsrfCookieName: i,
    xsrfHeaderName: i,
    onUploadProgress: i,
    onDownloadProgress: i,
    decompress: i,
    maxContentLength: i,
    maxBodyLength: i,
    beforeRedirect: i,
    transport: i,
    httpAgent: i,
    httpsAgent: i,
    cancelToken: i,
    socketPath: i,
    responseEncoding: i,
    validateStatus: l,
    headers: (u, c, d) => o(mc(u), mc(c), d, !0)
  };
  return te.forEach(Object.keys({ ...e, ...t }), function(c) {
    if (c === "__proto__" || c === "constructor" || c === "prototype")
      return;
    const d = te.hasOwnProp(s, c) ? s[c] : o, f = d(e[c], t[c], c);
    te.isUndefined(f) && d !== l || (n[c] = f);
  }), n;
}
const _d = (e) => {
  const t = qr({}, e);
  let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: a, headers: i, auth: l } = t;
  if (t.headers = i = en.from(i), t.url = Gd(
    Jd(t.baseURL, t.url, t.allowAbsoluteUrls),
    e.params,
    e.paramsSerializer
  ), l && i.set(
    "Authorization",
    "Basic " + btoa(
      (l.username || "") + ":" + (l.password ? unescape(encodeURIComponent(l.password)) : "")
    )
  ), te.isFormData(n)) {
    if (qt.hasStandardBrowserEnv || qt.hasStandardBrowserWebWorkerEnv)
      i.setContentType(void 0);
    else if (te.isFunction(n.getHeaders)) {
      const s = n.getHeaders(), u = ["content-type", "content-length"];
      Object.entries(s).forEach(([c, d]) => {
        u.includes(c.toLowerCase()) && i.set(c, d);
      });
    }
  }
  if (qt.hasStandardBrowserEnv && (r && te.isFunction(r) && (r = r(t)), r || r !== !1 && oy(t.url))) {
    const s = o && a && ay.read(a);
    s && i.set(o, s);
  }
  return t;
}, sy = typeof XMLHttpRequest < "u", uy = sy && function(e) {
  return new Promise(function(n, r) {
    const o = _d(e);
    let a = o.data;
    const i = en.from(o.headers).normalize();
    let { responseType: l, onUploadProgress: s, onDownloadProgress: u } = o, c, d, f, v, h;
    function m() {
      v && v(), h && h(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
    }
    let p = new XMLHttpRequest();
    p.open(o.method.toUpperCase(), o.url, !0), p.timeout = o.timeout;
    function g() {
      if (!p)
        return;
      const x = en.from(
        "getAllResponseHeaders" in p && p.getAllResponseHeaders()
      ), w = {
        data: !l || l === "text" || l === "json" ? p.responseText : p.response,
        status: p.status,
        statusText: p.statusText,
        headers: x,
        config: e,
        request: p
      };
      Zd(
        function(E) {
          n(E), m();
        },
        function(E) {
          r(E), m();
        },
        w
      ), p = null;
    }
    "onloadend" in p ? p.onloadend = g : p.onreadystatechange = function() {
      !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(g);
    }, p.onabort = function() {
      p && (r(new Le("Request aborted", Le.ECONNABORTED, e, p)), p = null);
    }, p.onerror = function(b) {
      const w = b && b.message ? b.message : "Network Error", D = new Le(w, Le.ERR_NETWORK, e, p);
      D.event = b || null, r(D), p = null;
    }, p.ontimeout = function() {
      let b = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
      const w = o.transitional || nu;
      o.timeoutErrorMessage && (b = o.timeoutErrorMessage), r(
        new Le(
          b,
          w.clarifyTimeoutError ? Le.ETIMEDOUT : Le.ECONNABORTED,
          e,
          p
        )
      ), p = null;
    }, a === void 0 && i.setContentType(null), "setRequestHeader" in p && te.forEach(i.toJSON(), function(b, w) {
      p.setRequestHeader(w, b);
    }), te.isUndefined(o.withCredentials) || (p.withCredentials = !!o.withCredentials), l && l !== "json" && (p.responseType = o.responseType), u && ([f, h] = bi(u, !0), p.addEventListener("progress", f)), s && p.upload && ([d, v] = bi(s), p.upload.addEventListener("progress", d), p.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = (x) => {
      p && (r(!x || x.type ? new xa(null, e, p) : x), p.abort(), p = null);
    }, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
    const y = ty(o.url);
    if (y && qt.protocols.indexOf(y) === -1) {
      r(
        new Le(
          "Unsupported protocol " + y + ":",
          Le.ERR_BAD_REQUEST,
          e
        )
      );
      return;
    }
    p.send(a || null);
  });
}, cy = (e, t) => {
  const { length: n } = e = e ? e.filter(Boolean) : [];
  if (t || n) {
    let r = new AbortController(), o;
    const a = function(u) {
      if (!o) {
        o = !0, l();
        const c = u instanceof Error ? u : this.reason;
        r.abort(
          c instanceof Le ? c : new xa(c instanceof Error ? c.message : c)
        );
      }
    };
    let i = t && setTimeout(() => {
      i = null, a(new Le(`timeout of ${t}ms exceeded`, Le.ETIMEDOUT));
    }, t);
    const l = () => {
      e && (i && clearTimeout(i), i = null, e.forEach((u) => {
        u.unsubscribe ? u.unsubscribe(a) : u.removeEventListener("abort", a);
      }), e = null);
    };
    e.forEach((u) => u.addEventListener("abort", a));
    const { signal: s } = r;
    return s.unsubscribe = () => te.asap(l), s;
  }
}, fy = function* (e, t) {
  let n = e.byteLength;
  if (n < t) {
    yield e;
    return;
  }
  let r = 0, o;
  for (; r < n; )
    o = r + t, yield e.slice(r, o), r = o;
}, dy = async function* (e, t) {
  for await (const n of vy(e))
    yield* fy(n, t);
}, vy = async function* (e) {
  if (e[Symbol.asyncIterator]) {
    yield* e;
    return;
  }
  const t = e.getReader();
  try {
    for (; ; ) {
      const { done: n, value: r } = await t.read();
      if (n)
        break;
      yield r;
    }
  } finally {
    await t.cancel();
  }
}, yc = (e, t, n, r) => {
  const o = dy(e, t);
  let a = 0, i, l = (s) => {
    i || (i = !0, r && r(s));
  };
  return new ReadableStream(
    {
      async pull(s) {
        try {
          const { done: u, value: c } = await o.next();
          if (u) {
            l(), s.close();
            return;
          }
          let d = c.byteLength;
          if (n) {
            let f = a += d;
            n(f);
          }
          s.enqueue(new Uint8Array(c));
        } catch (u) {
          throw l(u), u;
        }
      },
      cancel(s) {
        return l(s), o.return();
      }
    },
    {
      highWaterMark: 2
    }
  );
}, bc = 64 * 1024, { isFunction: Ga } = te, hy = (({ Request: e, Response: t }) => ({
  Request: e,
  Response: t
}))(te.global), { ReadableStream: wc, TextEncoder: xc } = te.global, Ac = (e, ...t) => {
  try {
    return !!e(...t);
  } catch {
    return !1;
  }
}, py = (e) => {
  e = te.merge.call(
    {
      skipUndefined: !0
    },
    hy,
    e
  );
  const { fetch: t, Request: n, Response: r } = e, o = t ? Ga(t) : typeof fetch == "function", a = Ga(n), i = Ga(r);
  if (!o)
    return !1;
  const l = o && Ga(wc), s = o && (typeof xc == "function" ? /* @__PURE__ */ ((h) => (m) => h.encode(m))(new xc()) : async (h) => new Uint8Array(await new n(h).arrayBuffer())), u = a && l && Ac(() => {
    let h = !1;
    const m = new n(qt.origin, {
      body: new wc(),
      method: "POST",
      get duplex() {
        return h = !0, "half";
      }
    }).headers.has("Content-Type");
    return h && !m;
  }), c = i && l && Ac(() => te.isReadableStream(new r("").body)), d = {
    stream: c && ((h) => h.body)
  };
  o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((h) => {
    !d[h] && (d[h] = (m, p) => {
      let g = m && m[h];
      if (g)
        return g.call(m);
      throw new Le(
        `Response type '${h}' is not supported`,
        Le.ERR_NOT_SUPPORT,
        p
      );
    });
  });
  const f = async (h) => {
    if (h == null)
      return 0;
    if (te.isBlob(h))
      return h.size;
    if (te.isSpecCompliantForm(h))
      return (await new n(qt.origin, {
        method: "POST",
        body: h
      }).arrayBuffer()).byteLength;
    if (te.isArrayBufferView(h) || te.isArrayBuffer(h))
      return h.byteLength;
    if (te.isURLSearchParams(h) && (h = h + ""), te.isString(h))
      return (await s(h)).byteLength;
  }, v = async (h, m) => {
    const p = te.toFiniteNumber(h.getContentLength());
    return p ?? f(m);
  };
  return async (h) => {
    let {
      url: m,
      method: p,
      data: g,
      signal: y,
      cancelToken: x,
      timeout: b,
      onDownloadProgress: w,
      onUploadProgress: D,
      responseType: E,
      headers: T,
      withCredentials: L = "same-origin",
      fetchOptions: S
    } = _d(h), A = t || fetch;
    E = E ? (E + "").toLowerCase() : "text";
    let C = cy(
      [y, x && x.toAbortSignal()],
      b
    ), k = null;
    const I = C && C.unsubscribe && (() => {
      C.unsubscribe();
    });
    let N;
    try {
      if (D && u && p !== "get" && p !== "head" && (N = await v(T, g)) !== 0) {
        let P = new n(m, {
          method: "POST",
          body: g,
          duplex: "half"
        }), R;
        if (te.isFormData(g) && (R = P.headers.get("content-type")) && T.setContentType(R), P.body) {
          const [q, Y] = pc(
            N,
            bi(gc(D))
          );
          g = yc(P.body, bc, q, Y);
        }
      }
      te.isString(L) || (L = L ? "include" : "omit");
      const F = a && "credentials" in n.prototype, V = {
        ...S,
        signal: C,
        method: p.toUpperCase(),
        headers: T.normalize().toJSON(),
        body: g,
        duplex: "half",
        credentials: F ? L : void 0
      };
      k = a && new n(m, V);
      let G = await (a ? A(k, S) : A(m, V));
      const z = c && (E === "stream" || E === "response");
      if (c && (w || z && I)) {
        const P = {};
        ["status", "statusText", "headers"].forEach((Q) => {
          P[Q] = G[Q];
        });
        const R = te.toFiniteNumber(G.headers.get("content-length")), [q, Y] = w && pc(
          R,
          bi(gc(w), !0)
        ) || [];
        G = new r(
          yc(G.body, bc, q, () => {
            Y && Y(), I && I();
          }),
          P
        );
      }
      E = E || "text";
      let M = await d[te.findKey(d, E) || "text"](
        G,
        h
      );
      return !z && I && I(), await new Promise((P, R) => {
        Zd(P, R, {
          data: M,
          headers: en.from(G.headers),
          status: G.status,
          statusText: G.statusText,
          config: h,
          request: k
        });
      });
    } catch (F) {
      throw I && I(), F && F.name === "TypeError" && /Load failed|fetch/i.test(F.message) ? Object.assign(
        new Le(
          "Network Error",
          Le.ERR_NETWORK,
          h,
          k,
          F && F.response
        ),
        {
          cause: F.cause || F
        }
      ) : Le.from(F, F && F.code, h, k, F && F.response);
    }
  };
}, gy = /* @__PURE__ */ new Map(), $d = (e) => {
  let t = e && e.env || {};
  const { fetch: n, Request: r, Response: o } = t, a = [r, o, n];
  let i = a.length, l = i, s, u, c = gy;
  for (; l--; )
    s = a[l], u = c.get(s), u === void 0 && c.set(s, u = l ? /* @__PURE__ */ new Map() : py(t)), c = u;
  return u;
};
$d();
const ou = {
  http: Mm,
  xhr: uy,
  fetch: {
    get: $d
  }
};
te.forEach(ou, (e, t) => {
  if (e) {
    try {
      Object.defineProperty(e, "name", { value: t });
    } catch {
    }
    Object.defineProperty(e, "adapterName", { value: t });
  }
});
const Oc = (e) => `- ${e}`, my = (e) => te.isFunction(e) || e === null || e === !1;
function yy(e, t) {
  e = te.isArray(e) ? e : [e];
  const { length: n } = e;
  let r, o;
  const a = {};
  for (let i = 0; i < n; i++) {
    r = e[i];
    let l;
    if (o = r, !my(r) && (o = ou[(l = String(r)).toLowerCase()], o === void 0))
      throw new Le(`Unknown adapter '${l}'`);
    if (o && (te.isFunction(o) || (o = o.get(t))))
      break;
    a[l || "#" + i] = o;
  }
  if (!o) {
    const i = Object.entries(a).map(
      ([s, u]) => `adapter ${s} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
    );
    let l = n ? i.length > 1 ? `since :
` + i.map(Oc).join(`
`) : " " + Oc(i[0]) : "as no adapter specified";
    throw new Le(
      "There is no suitable adapter to dispatch the request " + l,
      "ERR_NOT_SUPPORT"
    );
  }
  return o;
}
const ev = {
  /**
   * Resolve an adapter from a list of adapter names or functions.
   * @type {Function}
   */
  getAdapter: yy,
  /**
   * Exposes all known adapters
   * @type {Object<string, Function|Object>}
   */
  adapters: ou
};
function Gl(e) {
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
    throw new xa(null, e);
}
function Cc(e) {
  return Gl(e), e.headers = en.from(e.headers), e.data = Wl.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ev.getAdapter(e.adapter || wa.adapter, e)(e).then(
    function(r) {
      return Gl(e), r.data = Wl.call(e, e.transformResponse, r), r.headers = en.from(r.headers), r;
    },
    function(r) {
      return Xd(r) || (Gl(e), r && r.response && (r.response.data = Wl.call(
        e,
        e.transformResponse,
        r.response
      ), r.response.headers = en.from(r.response.headers))), Promise.reject(r);
    }
  );
}
const tv = "1.13.6", Yi = {};
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
  Yi[e] = function(r) {
    return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
  };
});
const Ec = {};
Yi.transitional = function(t, n, r) {
  function o(a, i) {
    return "[Axios v" + tv + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
  }
  return (a, i, l) => {
    if (t === !1)
      throw new Le(
        o(i, " has been removed" + (n ? " in " + n : "")),
        Le.ERR_DEPRECATED
      );
    return n && !Ec[i] && (Ec[i] = !0, console.warn(
      o(
        i,
        " has been deprecated since v" + n + " and will be removed in the near future"
      )
    )), t ? t(a, i, l) : !0;
  };
};
Yi.spelling = function(t) {
  return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
};
function by(e, t, n) {
  if (typeof e != "object")
    throw new Le("options must be an object", Le.ERR_BAD_OPTION_VALUE);
  const r = Object.keys(e);
  let o = r.length;
  for (; o-- > 0; ) {
    const a = r[o], i = t[a];
    if (i) {
      const l = e[a], s = l === void 0 || i(l, a, e);
      if (s !== !0)
        throw new Le(
          "option " + a + " must be " + s,
          Le.ERR_BAD_OPTION_VALUE
        );
      continue;
    }
    if (n !== !0)
      throw new Le("Unknown option " + a, Le.ERR_BAD_OPTION);
  }
}
const ui = {
  assertOptions: by,
  validators: Yi
}, fn = ui.validators;
let Br = class {
  constructor(t) {
    this.defaults = t || {}, this.interceptors = {
      request: new vc(),
      response: new vc()
    };
  }
  /**
   * Dispatch a request
   *
   * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
   * @param {?Object} config
   *
   * @returns {Promise} The Promise to be fulfilled
   */
  async request(t, n) {
    try {
      return await this._request(t, n);
    } catch (r) {
      if (r instanceof Error) {
        let o = {};
        Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
        const a = o.stack ? o.stack.replace(/^.+\n/, "") : "";
        try {
          r.stack ? a && !String(r.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (r.stack += `
` + a) : r.stack = a;
        } catch {
        }
      }
      throw r;
    }
  }
  _request(t, n) {
    typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = qr(this.defaults, n);
    const { transitional: r, paramsSerializer: o, headers: a } = n;
    r !== void 0 && ui.assertOptions(
      r,
      {
        silentJSONParsing: fn.transitional(fn.boolean),
        forcedJSONParsing: fn.transitional(fn.boolean),
        clarifyTimeoutError: fn.transitional(fn.boolean),
        legacyInterceptorReqResOrdering: fn.transitional(fn.boolean)
      },
      !1
    ), o != null && (te.isFunction(o) ? n.paramsSerializer = {
      serialize: o
    } : ui.assertOptions(
      o,
      {
        encode: fn.function,
        serialize: fn.function
      },
      !0
    )), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), ui.assertOptions(
      n,
      {
        baseUrl: fn.spelling("baseURL"),
        withXsrfToken: fn.spelling("withXSRFToken")
      },
      !0
    ), n.method = (n.method || this.defaults.method || "get").toLowerCase();
    let i = a && te.merge(a.common, a[n.method]);
    a && te.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (h) => {
      delete a[h];
    }), n.headers = en.concat(i, a);
    const l = [];
    let s = !0;
    this.interceptors.request.forEach(function(m) {
      if (typeof m.runWhen == "function" && m.runWhen(n) === !1)
        return;
      s = s && m.synchronous;
      const p = n.transitional || nu;
      p && p.legacyInterceptorReqResOrdering ? l.unshift(m.fulfilled, m.rejected) : l.push(m.fulfilled, m.rejected);
    });
    const u = [];
    this.interceptors.response.forEach(function(m) {
      u.push(m.fulfilled, m.rejected);
    });
    let c, d = 0, f;
    if (!s) {
      const h = [Cc.bind(this), void 0];
      for (h.unshift(...l), h.push(...u), f = h.length, c = Promise.resolve(n); d < f; )
        c = c.then(h[d++], h[d++]);
      return c;
    }
    f = l.length;
    let v = n;
    for (; d < f; ) {
      const h = l[d++], m = l[d++];
      try {
        v = h(v);
      } catch (p) {
        m.call(this, p);
        break;
      }
    }
    try {
      c = Cc.call(this, v);
    } catch (h) {
      return Promise.reject(h);
    }
    for (d = 0, f = u.length; d < f; )
      c = c.then(u[d++], u[d++]);
    return c;
  }
  getUri(t) {
    t = qr(this.defaults, t);
    const n = Jd(t.baseURL, t.url, t.allowAbsoluteUrls);
    return Gd(n, t.params, t.paramsSerializer);
  }
};
te.forEach(["delete", "get", "head", "options"], function(t) {
  Br.prototype[t] = function(n, r) {
    return this.request(
      qr(r || {}, {
        method: t,
        url: n,
        data: (r || {}).data
      })
    );
  };
});
te.forEach(["post", "put", "patch"], function(t) {
  function n(r) {
    return function(a, i, l) {
      return this.request(
        qr(l || {}, {
          method: t,
          headers: r ? {
            "Content-Type": "multipart/form-data"
          } : {},
          url: a,
          data: i
        })
      );
    };
  }
  Br.prototype[t] = n(), Br.prototype[t + "Form"] = n(!0);
});
let wy = class nv {
  constructor(t) {
    if (typeof t != "function")
      throw new TypeError("executor must be a function.");
    let n;
    this.promise = new Promise(function(a) {
      n = a;
    });
    const r = this;
    this.promise.then((o) => {
      if (!r._listeners)
        return;
      let a = r._listeners.length;
      for (; a-- > 0; )
        r._listeners[a](o);
      r._listeners = null;
    }), this.promise.then = (o) => {
      let a;
      const i = new Promise((l) => {
        r.subscribe(l), a = l;
      }).then(o);
      return i.cancel = function() {
        r.unsubscribe(a);
      }, i;
    }, t(function(a, i, l) {
      r.reason || (r.reason = new xa(a, i, l), n(r.reason));
    });
  }
  /**
   * Throws a `CanceledError` if cancellation has been requested.
   */
  throwIfRequested() {
    if (this.reason)
      throw this.reason;
  }
  /**
   * Subscribe to the cancel signal
   */
  subscribe(t) {
    if (this.reason) {
      t(this.reason);
      return;
    }
    this._listeners ? this._listeners.push(t) : this._listeners = [t];
  }
  /**
   * Unsubscribe from the cancel signal
   */
  unsubscribe(t) {
    if (!this._listeners)
      return;
    const n = this._listeners.indexOf(t);
    n !== -1 && this._listeners.splice(n, 1);
  }
  toAbortSignal() {
    const t = new AbortController(), n = (r) => {
      t.abort(r);
    };
    return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
  }
  /**
   * Returns an object that contains a new `CancelToken` and a function that, when called,
   * cancels the `CancelToken`.
   */
  static source() {
    let t;
    return {
      token: new nv(function(o) {
        t = o;
      }),
      cancel: t
    };
  }
};
function xy(e) {
  return function(n) {
    return e.apply(null, n);
  };
}
function Ay(e) {
  return te.isObject(e) && e.isAxiosError === !0;
}
const ws = {
  Continue: 100,
  SwitchingProtocols: 101,
  Processing: 102,
  EarlyHints: 103,
  Ok: 200,
  Created: 201,
  Accepted: 202,
  NonAuthoritativeInformation: 203,
  NoContent: 204,
  ResetContent: 205,
  PartialContent: 206,
  MultiStatus: 207,
  AlreadyReported: 208,
  ImUsed: 226,
  MultipleChoices: 300,
  MovedPermanently: 301,
  Found: 302,
  SeeOther: 303,
  NotModified: 304,
  UseProxy: 305,
  Unused: 306,
  TemporaryRedirect: 307,
  PermanentRedirect: 308,
  BadRequest: 400,
  Unauthorized: 401,
  PaymentRequired: 402,
  Forbidden: 403,
  NotFound: 404,
  MethodNotAllowed: 405,
  NotAcceptable: 406,
  ProxyAuthenticationRequired: 407,
  RequestTimeout: 408,
  Conflict: 409,
  Gone: 410,
  LengthRequired: 411,
  PreconditionFailed: 412,
  PayloadTooLarge: 413,
  UriTooLong: 414,
  UnsupportedMediaType: 415,
  RangeNotSatisfiable: 416,
  ExpectationFailed: 417,
  ImATeapot: 418,
  MisdirectedRequest: 421,
  UnprocessableEntity: 422,
  Locked: 423,
  FailedDependency: 424,
  TooEarly: 425,
  UpgradeRequired: 426,
  PreconditionRequired: 428,
  TooManyRequests: 429,
  RequestHeaderFieldsTooLarge: 431,
  UnavailableForLegalReasons: 451,
  InternalServerError: 500,
  NotImplemented: 501,
  BadGateway: 502,
  ServiceUnavailable: 503,
  GatewayTimeout: 504,
  HttpVersionNotSupported: 505,
  VariantAlsoNegotiates: 506,
  InsufficientStorage: 507,
  LoopDetected: 508,
  NotExtended: 510,
  NetworkAuthenticationRequired: 511,
  WebServerIsDown: 521,
  ConnectionTimedOut: 522,
  OriginIsUnreachable: 523,
  TimeoutOccurred: 524,
  SslHandshakeFailed: 525,
  InvalidSslCertificate: 526
};
Object.entries(ws).forEach(([e, t]) => {
  ws[t] = e;
});
function rv(e) {
  const t = new Br(e), n = Bd(Br.prototype.request, t);
  return te.extend(n, Br.prototype, t, { allOwnKeys: !0 }), te.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
    return rv(qr(e, o));
  }, n;
}
const xt = rv(wa);
xt.Axios = Br;
xt.CanceledError = xa;
xt.CancelToken = wy;
xt.isCancel = Xd;
xt.VERSION = tv;
xt.toFormData = Hi;
xt.AxiosError = Le;
xt.Cancel = xt.CanceledError;
xt.all = function(t) {
  return Promise.all(t);
};
xt.spread = xy;
xt.isAxiosError = Ay;
xt.mergeConfig = qr;
xt.AxiosHeaders = en;
xt.formToJSON = (e) => Kd(te.isHTMLForm(e) ? new FormData(e) : e);
xt.getAdapter = ev.getAdapter;
xt.HttpStatusCode = ws;
xt.default = xt;
const {
  Axios: wI,
  AxiosError: xI,
  CanceledError: AI,
  isCancel: OI,
  CancelToken: CI,
  VERSION: EI,
  all: SI,
  Cancel: TI,
  isAxiosError: DI,
  spread: kI,
  toFormData: PI,
  AxiosHeaders: II,
  HttpStatusCode: NI,
  formToJSON: MI,
  getAdapter: LI,
  mergeConfig: RI
} = xt, Oy = [
  {
    name: "category-selectable",
    url: "category/selectable",
    method: "get"
  }
], Cy = [
  {
    name: "auth-login",
    url: "/login",
    method: "post"
  },
  {
    name: "auth-signup",
    url: "/register",
    method: "post"
  },
  {
    name: "auth-sign-with-api-key",
    url: "/login/key",
    method: "post"
  },
  {
    name: "forget-password",
    url: "forget/password",
    method: "post"
  },
  {
    name: "reset-password",
    url: "reset/password",
    method: "post"
  },
  {
    name: "sync-status",
    url: "site/sync/status",
    method: "get"
  },
  {
    name: "data-sync-status",
    url: "/sync/status",
    method: "get"
  },
  {
    name: "rvx-migration",
    url: "migration/prompt",
    method: "get"
  }
], Ey = [
  {
    name: "all-review-list",
    url: "/reviews/list",
    method: "get"
  },
  {
    name: "all-review-with-aggregation",
    url: "/reviews",
    method: "get"
  },
  {
    name: "create-manual-review",
    url: "reviews/create/manual",
    method: "post"
  },
  {
    name: "review-delete",
    url: "reviews/{id}/delete",
    method: "delete"
  },
  {
    name: "review-trash",
    url: "reviews/{id}/trash",
    method: "put"
  },
  {
    name: "review-details",
    url: "reviews/{id}",
    method: "get"
  },
  {
    name: "review-replay",
    url: "reviews/{id}/replies",
    method: "post"
  },
  {
    name: "review-replay-update",
    url: "reviews/{id}/update/replies",
    method: "put"
  },
  {
    name: "review-update",
    url: "reviews/{id}/update",
    method: "put"
  },
  {
    name: "create-AI-review",
    url: "reviews/create/ai",
    method: "post"
  },
  {
    name: "AI-review-count",
    url: "reviews/ai/count",
    method: "get"
  },
  {
    name: "review-status-update",
    url: "reviews/{id}/visibility",
    method: "put"
  },
  {
    name: "review-highlight",
    url: "reviews/{id}/highlight",
    method: "put"
  },
  {
    name: "get-review-settings",
    url: "reviews/settings/get",
    method: "get"
  },
  {
    name: "update-review-settings",
    url: "reviews/settings/save",
    method: "post"
  },
  {
    name: "review-bulk-status-update",
    url: "reviews/bulk/status/update",
    method: "post"
  },
  {
    name: "review-bulk-trash-update",
    url: "reviews/bulk/trash",
    method: "post"
  },
  {
    name: "review-bulk-trash-restore",
    url: "bulk/restore/trash",
    method: "post"
  },
  {
    name: "review-restore",
    url: "reviews/{id}/restore",
    method: "put"
  },
  {
    name: "review-import-history",
    url: "admin/import/history",
    method: "get"
  },
  {
    name: "review-import",
    url: "reviews/import/store",
    method: "post"
  },
  {
    name: "review-import-rollback",
    url: "admin/import/rollback/{id}",
    method: "post"
  },
  {
    name: "review-export",
    url: "reviews/exports/generate/csv",
    method: "post"
  },
  {
    name: "review-export-history",
    url: "reviews/exports/history",
    method: "get"
  },
  {
    name: "review-bulk-trash-delete",
    url: "reviews/bulk/delete",
    method: "post"
  },
  {
    name: "review-empty-trash",
    url: "reviews/empty/trash",
    method: "delete"
  }
], Sy = [
  {
    name: "products-selectable",
    url: "/products/selectable",
    method: "get"
  }
], Ty = [
  {
    name: "insight-reviews",
    url: "/insight/reviews",
    method: "get"
  },
  {
    name: "review-email-insight",
    url: "insight/review/request/email",
    method: "get"
  },
  {
    name: "reviewx-user-insight",
    url: "insight/reviewx/user",
    method: "get"
  },
  {
    name: "dashboard-chart",
    url: "/dashboard/chart",
    method: "get"
  }
], Dy = [
  {
    name: "get-review-widget-settings",
    url: "settings/widget/get",
    method: "get"
  },
  {
    name: "update-review-widget-settings",
    url: "settings/widget/save",
    method: "post"
  },
  {
    name: "get-general-settings",
    url: "settings/general/get",
    method: "get"
  },
  {
    name: "update-general-settings",
    url: "settings/general/save",
    method: "post"
  }
], ky = [
  {
    name: "all-review-request-emails",
    url: "review/request/emails",
    method: "get"
  },
  {
    name: "review-email-contents",
    url: "review/email/contents",
    method: "get"
  },
  {
    name: "review-reminder-email-settings",
    url: "review/request/settings",
    method: "get"
  },
  {
    name: "update-review-reminder-email-settings",
    url: "review/request/settings",
    method: "post"
  },
  {
    name: "test-review-email-request",
    url: "review/email/send/test",
    method: "post"
  },
  {
    name: "request-review-email",
    url: "review/email/request/contents",
    method: "post"
  },
  {
    name: "followup-review-email-request",
    url: "review/email/followup/contents",
    method: "post"
  },
  {
    name: "photo-review-email-request",
    url: "review/email/photo/contents",
    method: "post"
  },
  {
    name: "review-request-email-mark-as-done",
    url: "review-request/email/mark-as-done/{id}",
    method: "post"
  },
  {
    name: "review-request-email-cancel",
    url: "review-request/email/cancel",
    method: "post"
  },
  {
    name: "review-request-email-unsubscribe",
    url: "review-request/unsubscribe",
    method: "post"
  },
  {
    name: "review-request-email-send",
    url: "review/request/email/send/{id}",
    method: "post"
  },
  {
    name: "review-request-email-resend",
    url: "review/request/email/resend/{id}",
    method: "post"
  }
], Py = [
  {
    name: "discount-settings",
    url: "discount/settings",
    method: "get"
  },
  {
    name: "update-discount-settings",
    url: "discount/settings",
    method: "post"
  },
  {
    name: "create-wp-discount",
    url: "discount/wp/create",
    method: "post"
  },
  {
    name: "discount-template",
    url: "discount/template",
    method: "get"
  },
  {
    name: "discount-template-message",
    url: "discount/message",
    method: "POST"
  },
  {
    name: "save-discount-template-email",
    url: "discount/template",
    method: "post"
  }
], Iy = [
  {
    name: "get-wp-custom-post-types",
    url: "custom/wp/get",
    method: "get"
  },
  {
    name: "get-custom-posts",
    url: "custom/get",
    method: "get"
  },
  {
    name: "create-custom-post-type",
    url: "custom/store",
    method: "post"
  },
  {
    name: "update-custom-post-type",
    url: "custom/{id}/update",
    method: "post"
  },
  {
    name: "update-custom-post-status",
    url: "custom/{id}/status",
    method: "post"
  },
  {
    name: "delete-custom-post-type",
    url: "custom/{id}/delete",
    method: "post"
  }
], Ny = [
  {
    name: "get-google-settings",
    url: "/google/settings/placeapi/get",
    method: "get"
  },
  {
    name: "get-google-reviews",
    url: "/google/review/get",
    method: "get"
  },
  {
    name: "store-google-review-credentials",
    url: "/google/place/key/store",
    method: "post"
  },
  {
    name: "store-google-review-style",
    url: "/google/place/setting/store",
    method: "post"
  }
], My = [
  {
    name: "get-user-access",
    url: "user/current/plan",
    method: "get"
  }
], Ly = [
  ...Cy,
  ...Ey,
  ...Sy,
  ...Ty,
  ...Dy,
  ...Oy,
  ...ky,
  ...Py,
  ...Iy,
  ...Ny,
  ...My
], Ry = ({ name: e, id: t, slug: n }) => {
  const r = Ly.find((s) => s.name === e);
  if (!r)
    throw new Error(`No matching URL found for name: ${e}`);
  const o = r.url, a = o.includes("{id}"), i = o.includes("{slug}");
  if (a && !t || i && !n)
    throw new Error(
      `This URL expects ${a ? "an id" : ""}${a && i ? " and " : ""}${i ? "a slug" : ""}`
    );
  let l = o;
  return a && t && (l = l.replace(/{id}/g, t.toString())), i && n && (l = l.replace(/{slug}/g, n)), {
    ...r,
    url: l
  };
}, By = ({ payload: e, name: t, headers: n, slug: r, queryParams: o, id: a }) => {
  var d;
  const { url: i, method: l } = Ry({ name: t, id: a, slug: r }), s = ((d = window == null ? void 0 : window.__rvxLocals) == null ? void 0 : d.rvx_full_domain_api) ?? `${location.origin}/wp-json/reviewx`, u = Rd(o), c = `${s}/api/v1`;
  return xt({
    baseURL: c,
    method: l,
    url: i,
    data: e,
    params: u
  });
};
var ov = /* @__PURE__ */ ((e) => (e.CamelCase = "camelCase", e.PascalCase = "PascalCase", e.SnakeCase = "snake_case", e.KebabCase = "kebab-case", e.TitleCase = "Title Case", e.SentenceCase = "Sentence case", e.UpperCase = "UPPERCASE", e.LowerCase = "lowercase", e.CapitalCase = "Capital Case", e))(ov || {});
const Fy = ({ input: e, targetCase: t }) => {
  switch (t) {
    case "camelCase":
      return e.toLowerCase().replace(/[-_\s]+(.)?/g, (n, r) => r ? r.toUpperCase() : "").replace(/^\w/, (n) => n.toLowerCase());
    case "PascalCase":
      return e.toLowerCase().replace(/[-_\s]+(.)?/g, (n, r) => r ? r.toUpperCase() : "").replace(/^\w/, (n) => n.toUpperCase());
    case "snake_case":
      return e.replace(/\s+/g, "_").replace(/([A-Z])/g, "_$1").toLowerCase();
    case "kebab-case":
      return e.replace(/\s+/g, "-").replace(/([A-Z])/g, "-$1").toLowerCase();
    case "Title Case":
      return e.toLowerCase().replace(/(?:^|\s)\w/g, (n) => n.toUpperCase()).replace(/'\w/g, (n) => n.toLowerCase());
    case "Sentence case":
      return e.toLowerCase().replace(/(^\w)|(\.\s+\w)/g, (n) => n.toUpperCase());
    case "UPPERCASE":
      return e.toUpperCase();
    case "lowercase":
      return e.toLowerCase();
    case "Capital Case":
      return e.toLowerCase().replace(/\b\w/g, (n) => n.toUpperCase());
    default:
      return e;
  }
}, jy = ({ navigateToPortal: e, customLink: t, haveCustomLink: n, query: r }) => {
  if (r && Object.keys(r).length) {
    const o = new URL(window.location.href);
    Object.entries(r).forEach(([a, i]) => {
      i != null && o.searchParams.set(a, String(i));
    }), window.history.replaceState({}, "", o), location.reload();
  }
  e && window.open("https://client.reviewx.io/plan?price_id=pri_01jcfjctn233re7jfncajscnh5", "_blank"), n && t && window.open(t, "_blank");
}, qy = () => {
  window.open("https://client.reviewx.io?live_chat=true", "_blank");
}, au = "-", Vy = (e) => {
  const t = Uy(e), {
    conflictingClassGroups: n,
    conflictingClassGroupModifiers: r
  } = e;
  return {
    getClassGroupId: (i) => {
      const l = i.split(au);
      return l[0] === "" && l.length !== 1 && l.shift(), av(l, t) || zy(i);
    },
    getConflictingClassGroupIds: (i, l) => {
      const s = n[i] || [];
      return l && r[i] ? [...s, ...r[i]] : s;
    }
  };
}, av = (e, t) => {
  var i;
  if (e.length === 0)
    return t.classGroupId;
  const n = e[0], r = t.nextPart.get(n), o = r ? av(e.slice(1), r) : void 0;
  if (o)
    return o;
  if (t.validators.length === 0)
    return;
  const a = e.join(au);
  return (i = t.validators.find(({
    validator: l
  }) => l(a))) == null ? void 0 : i.classGroupId;
}, Sc = /^\[(.+)\]$/, zy = (e) => {
  if (Sc.test(e)) {
    const t = Sc.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
    if (n)
      return "arbitrary.." + n;
  }
}, Uy = (e) => {
  const {
    theme: t,
    prefix: n
  } = e, r = {
    nextPart: /* @__PURE__ */ new Map(),
    validators: []
  };
  return Yy(Object.entries(e.classGroups), n).forEach(([a, i]) => {
    xs(i, r, a, t);
  }), r;
}, xs = (e, t, n, r) => {
  e.forEach((o) => {
    if (typeof o == "string") {
      const a = o === "" ? t : Tc(t, o);
      a.classGroupId = n;
      return;
    }
    if (typeof o == "function") {
      if (Hy(o)) {
        xs(o(r), t, n, r);
        return;
      }
      t.validators.push({
        validator: o,
        classGroupId: n
      });
      return;
    }
    Object.entries(o).forEach(([a, i]) => {
      xs(i, Tc(t, a), n, r);
    });
  });
}, Tc = (e, t) => {
  let n = e;
  return t.split(au).forEach((r) => {
    n.nextPart.has(r) || n.nextPart.set(r, {
      nextPart: /* @__PURE__ */ new Map(),
      validators: []
    }), n = n.nextPart.get(r);
  }), n;
}, Hy = (e) => e.isThemeGetter, Yy = (e, t) => t ? e.map(([n, r]) => {
  const o = r.map((a) => typeof a == "string" ? t + a : typeof a == "object" ? Object.fromEntries(Object.entries(a).map(([i, l]) => [t + i, l])) : a);
  return [n, o];
}) : e, Qy = (e) => {
  if (e < 1)
    return {
      get: () => {
      },
      set: () => {
      }
    };
  let t = 0, n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
  const o = (a, i) => {
    n.set(a, i), t++, t > e && (t = 0, r = n, n = /* @__PURE__ */ new Map());
  };
  return {
    get(a) {
      let i = n.get(a);
      if (i !== void 0)
        return i;
      if ((i = r.get(a)) !== void 0)
        return o(a, i), i;
    },
    set(a, i) {
      n.has(a) ? n.set(a, i) : o(a, i);
    }
  };
}, iv = "!", Wy = (e) => {
  const {
    separator: t,
    experimentalParseClassName: n
  } = e, r = t.length === 1, o = t[0], a = t.length, i = (l) => {
    const s = [];
    let u = 0, c = 0, d;
    for (let p = 0; p < l.length; p++) {
      let g = l[p];
      if (u === 0) {
        if (g === o && (r || l.slice(p, p + a) === t)) {
          s.push(l.slice(c, p)), c = p + a;
          continue;
        }
        if (g === "/") {
          d = p;
          continue;
        }
      }
      g === "[" ? u++ : g === "]" && u--;
    }
    const f = s.length === 0 ? l : l.substring(c), v = f.startsWith(iv), h = v ? f.substring(1) : f, m = d && d > c ? d - c : void 0;
    return {
      modifiers: s,
      hasImportantModifier: v,
      baseClassName: h,
      maybePostfixModifierPosition: m
    };
  };
  return n ? (l) => n({
    className: l,
    parseClassName: i
  }) : i;
}, Gy = (e) => {
  if (e.length <= 1)
    return e;
  const t = [];
  let n = [];
  return e.forEach((r) => {
    r[0] === "[" ? (t.push(...n.sort(), r), n = []) : n.push(r);
  }), t.push(...n.sort()), t;
}, Ky = (e) => ({
  cache: Qy(e.cacheSize),
  parseClassName: Wy(e),
  ...Vy(e)
}), Xy = /\s+/, Zy = (e, t) => {
  const {
    parseClassName: n,
    getClassGroupId: r,
    getConflictingClassGroupIds: o
  } = t, a = [], i = e.trim().split(Xy);
  let l = "";
  for (let s = i.length - 1; s >= 0; s -= 1) {
    const u = i[s], {
      modifiers: c,
      hasImportantModifier: d,
      baseClassName: f,
      maybePostfixModifierPosition: v
    } = n(u);
    let h = !!v, m = r(h ? f.substring(0, v) : f);
    if (!m) {
      if (!h) {
        l = u + (l.length > 0 ? " " + l : l);
        continue;
      }
      if (m = r(f), !m) {
        l = u + (l.length > 0 ? " " + l : l);
        continue;
      }
      h = !1;
    }
    const p = Gy(c).join(":"), g = d ? p + iv : p, y = g + m;
    if (a.includes(y))
      continue;
    a.push(y);
    const x = o(m, h);
    for (let b = 0; b < x.length; ++b) {
      const w = x[b];
      a.push(g + w);
    }
    l = u + (l.length > 0 ? " " + l : l);
  }
  return l;
};
function Jy() {
  let e = 0, t, n, r = "";
  for (; e < arguments.length; )
    (t = arguments[e++]) && (n = lv(t)) && (r && (r += " "), r += n);
  return r;
}
const lv = (e) => {
  if (typeof e == "string")
    return e;
  let t, n = "";
  for (let r = 0; r < e.length; r++)
    e[r] && (t = lv(e[r])) && (n && (n += " "), n += t);
  return n;
};
function Dc(e, ...t) {
  let n, r, o, a = i;
  function i(s) {
    const u = t.reduce((c, d) => d(c), e());
    return n = Ky(u), r = n.cache.get, o = n.cache.set, a = l, l(s);
  }
  function l(s) {
    const u = r(s);
    if (u)
      return u;
    const c = Zy(s, n);
    return o(s, c), c;
  }
  return function() {
    return a(Jy.apply(null, arguments));
  };
}
const vt = (e) => {
  const t = (n) => n[e] || [];
  return t.isThemeGetter = !0, t;
}, sv = /^\[(?:([a-z-]+):)?(.+)\]$/i, _y = /^\d+\/\d+$/, $y = /* @__PURE__ */ new Set(["px", "full", "screen"]), e1 = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, t1 = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, n1 = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, r1 = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, o1 = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Zn = (e) => oo(e) || $y.has(e) || _y.test(e), ur = (e) => Ao(e, "length", d1), oo = (e) => !!e && !Number.isNaN(Number(e)), Kl = (e) => Ao(e, "number", oo), Uo = (e) => !!e && Number.isInteger(Number(e)), a1 = (e) => e.endsWith("%") && oo(e.slice(0, -1)), ze = (e) => sv.test(e), cr = (e) => e1.test(e), i1 = /* @__PURE__ */ new Set(["length", "size", "percentage"]), l1 = (e) => Ao(e, i1, uv), s1 = (e) => Ao(e, "position", uv), u1 = /* @__PURE__ */ new Set(["image", "url"]), c1 = (e) => Ao(e, u1, h1), f1 = (e) => Ao(e, "", v1), Ho = () => !0, Ao = (e, t, n) => {
  const r = sv.exec(e);
  return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
}, d1 = (e) => (
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
  t1.test(e) && !n1.test(e)
), uv = () => !1, v1 = (e) => r1.test(e), h1 = (e) => o1.test(e), kc = () => {
  const e = vt("colors"), t = vt("spacing"), n = vt("blur"), r = vt("brightness"), o = vt("borderColor"), a = vt("borderRadius"), i = vt("borderSpacing"), l = vt("borderWidth"), s = vt("contrast"), u = vt("grayscale"), c = vt("hueRotate"), d = vt("invert"), f = vt("gap"), v = vt("gradientColorStops"), h = vt("gradientColorStopPositions"), m = vt("inset"), p = vt("margin"), g = vt("opacity"), y = vt("padding"), x = vt("saturate"), b = vt("scale"), w = vt("sepia"), D = vt("skew"), E = vt("space"), T = vt("translate"), L = () => ["auto", "contain", "none"], S = () => ["auto", "hidden", "clip", "visible", "scroll"], A = () => ["auto", ze, t], C = () => [ze, t], k = () => ["", Zn, ur], I = () => ["auto", oo, ze], N = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], F = () => ["solid", "dashed", "dotted", "double", "none"], V = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], G = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], z = () => ["", "0", ze], M = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], P = () => [oo, ze];
  return {
    cacheSize: 500,
    separator: ":",
    theme: {
      colors: [Ho],
      spacing: [Zn, ur],
      blur: ["none", "", cr, ze],
      brightness: P(),
      borderColor: [e],
      borderRadius: ["none", "", "full", cr, ze],
      borderSpacing: C(),
      borderWidth: k(),
      contrast: P(),
      grayscale: z(),
      hueRotate: P(),
      invert: z(),
      gap: C(),
      gradientColorStops: [e],
      gradientColorStopPositions: [a1, ur],
      inset: A(),
      margin: A(),
      opacity: P(),
      padding: C(),
      saturate: P(),
      scale: P(),
      sepia: z(),
      skew: P(),
      space: C(),
      translate: C()
    },
    classGroups: {
      // Layout
      /**
       * Aspect Ratio
       * @see https://tailwindcss.com/docs/aspect-ratio
       */
      aspect: [{
        aspect: ["auto", "square", "video", ze]
      }],
      /**
       * Container
       * @see https://tailwindcss.com/docs/container
       */
      container: ["container"],
      /**
       * Columns
       * @see https://tailwindcss.com/docs/columns
       */
      columns: [{
        columns: [cr]
      }],
      /**
       * Break After
       * @see https://tailwindcss.com/docs/break-after
       */
      "break-after": [{
        "break-after": M()
      }],
      /**
       * Break Before
       * @see https://tailwindcss.com/docs/break-before
       */
      "break-before": [{
        "break-before": M()
      }],
      /**
       * Break Inside
       * @see https://tailwindcss.com/docs/break-inside
       */
      "break-inside": [{
        "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]
      }],
      /**
       * Box Decoration Break
       * @see https://tailwindcss.com/docs/box-decoration-break
       */
      "box-decoration": [{
        "box-decoration": ["slice", "clone"]
      }],
      /**
       * Box Sizing
       * @see https://tailwindcss.com/docs/box-sizing
       */
      box: [{
        box: ["border", "content"]
      }],
      /**
       * Display
       * @see https://tailwindcss.com/docs/display
       */
      display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"],
      /**
       * Floats
       * @see https://tailwindcss.com/docs/float
       */
      float: [{
        float: ["right", "left", "none", "start", "end"]
      }],
      /**
       * Clear
       * @see https://tailwindcss.com/docs/clear
       */
      clear: [{
        clear: ["left", "right", "both", "none", "start", "end"]
      }],
      /**
       * Isolation
       * @see https://tailwindcss.com/docs/isolation
       */
      isolation: ["isolate", "isolation-auto"],
      /**
       * Object Fit
       * @see https://tailwindcss.com/docs/object-fit
       */
      "object-fit": [{
        object: ["contain", "cover", "fill", "none", "scale-down"]
      }],
      /**
       * Object Position
       * @see https://tailwindcss.com/docs/object-position
       */
      "object-position": [{
        object: [...N(), ze]
      }],
      /**
       * Overflow
       * @see https://tailwindcss.com/docs/overflow
       */
      overflow: [{
        overflow: S()
      }],
      /**
       * Overflow X
       * @see https://tailwindcss.com/docs/overflow
       */
      "overflow-x": [{
        "overflow-x": S()
      }],
      /**
       * Overflow Y
       * @see https://tailwindcss.com/docs/overflow
       */
      "overflow-y": [{
        "overflow-y": S()
      }],
      /**
       * Overscroll Behavior
       * @see https://tailwindcss.com/docs/overscroll-behavior
       */
      overscroll: [{
        overscroll: L()
      }],
      /**
       * Overscroll Behavior X
       * @see https://tailwindcss.com/docs/overscroll-behavior
       */
      "overscroll-x": [{
        "overscroll-x": L()
      }],
      /**
       * Overscroll Behavior Y
       * @see https://tailwindcss.com/docs/overscroll-behavior
       */
      "overscroll-y": [{
        "overscroll-y": L()
      }],
      /**
       * Position
       * @see https://tailwindcss.com/docs/position
       */
      position: ["static", "fixed", "absolute", "relative", "sticky"],
      /**
       * Top / Right / Bottom / Left
       * @see https://tailwindcss.com/docs/top-right-bottom-left
       */
      inset: [{
        inset: [m]
      }],
      /**
       * Right / Left
       * @see https://tailwindcss.com/docs/top-right-bottom-left
       */
      "inset-x": [{
        "inset-x": [m]
      }],
      /**
       * Top / Bottom
       * @see https://tailwindcss.com/docs/top-right-bottom-left
       */
      "inset-y": [{
        "inset-y": [m]
      }],
      /**
       * Start
       * @see https://tailwindcss.com/docs/top-right-bottom-left
       */
      start: [{
        start: [m]
      }],
      /**
       * End
       * @see https://tailwindcss.com/docs/top-right-bottom-left
       */
      end: [{
        end: [m]
      }],
      /**
       * Top
       * @see https://tailwindcss.com/docs/top-right-bottom-left
       */
      top: [{
        top: [m]
      }],
      /**
       * Right
       * @see https://tailwindcss.com/docs/top-right-bottom-left
       */
      right: [{
        right: [m]
      }],
      /**
       * Bottom
       * @see https://tailwindcss.com/docs/top-right-bottom-left
       */
      bottom: [{
        bottom: [m]
      }],
      /**
       * Left
       * @see https://tailwindcss.com/docs/top-right-bottom-left
       */
      left: [{
        left: [m]
      }],
      /**
       * Visibility
       * @see https://tailwindcss.com/docs/visibility
       */
      visibility: ["visible", "invisible", "collapse"],
      /**
       * Z-Index
       * @see https://tailwindcss.com/docs/z-index
       */
      z: [{
        z: ["auto", Uo, ze]
      }],
      // Flexbox and Grid
      /**
       * Flex Basis
       * @see https://tailwindcss.com/docs/flex-basis
       */
      basis: [{
        basis: A()
      }],
      /**
       * Flex Direction
       * @see https://tailwindcss.com/docs/flex-direction
       */
      "flex-direction": [{
        flex: ["row", "row-reverse", "col", "col-reverse"]
      }],
      /**
       * Flex Wrap
       * @see https://tailwindcss.com/docs/flex-wrap
       */
      "flex-wrap": [{
        flex: ["wrap", "wrap-reverse", "nowrap"]
      }],
      /**
       * Flex
       * @see https://tailwindcss.com/docs/flex
       */
      flex: [{
        flex: ["1", "auto", "initial", "none", ze]
      }],
      /**
       * Flex Grow
       * @see https://tailwindcss.com/docs/flex-grow
       */
      grow: [{
        grow: z()
      }],
      /**
       * Flex Shrink
       * @see https://tailwindcss.com/docs/flex-shrink
       */
      shrink: [{
        shrink: z()
      }],
      /**
       * Order
       * @see https://tailwindcss.com/docs/order
       */
      order: [{
        order: ["first", "last", "none", Uo, ze]
      }],
      /**
       * Grid Template Columns
       * @see https://tailwindcss.com/docs/grid-template-columns
       */
      "grid-cols": [{
        "grid-cols": [Ho]
      }],
      /**
       * Grid Column Start / End
       * @see https://tailwindcss.com/docs/grid-column
       */
      "col-start-end": [{
        col: ["auto", {
          span: ["full", Uo, ze]
        }, ze]
      }],
      /**
       * Grid Column Start
       * @see https://tailwindcss.com/docs/grid-column
       */
      "col-start": [{
        "col-start": I()
      }],
      /**
       * Grid Column End
       * @see https://tailwindcss.com/docs/grid-column
       */
      "col-end": [{
        "col-end": I()
      }],
      /**
       * Grid Template Rows
       * @see https://tailwindcss.com/docs/grid-template-rows
       */
      "grid-rows": [{
        "grid-rows": [Ho]
      }],
      /**
       * Grid Row Start / End
       * @see https://tailwindcss.com/docs/grid-row
       */
      "row-start-end": [{
        row: ["auto", {
          span: [Uo, ze]
        }, ze]
      }],
      /**
       * Grid Row Start
       * @see https://tailwindcss.com/docs/grid-row
       */
      "row-start": [{
        "row-start": I()
      }],
      /**
       * Grid Row End
       * @see https://tailwindcss.com/docs/grid-row
       */
      "row-end": [{
        "row-end": I()
      }],
      /**
       * Grid Auto Flow
       * @see https://tailwindcss.com/docs/grid-auto-flow
       */
      "grid-flow": [{
        "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]
      }],
      /**
       * Grid Auto Columns
       * @see https://tailwindcss.com/docs/grid-auto-columns
       */
      "auto-cols": [{
        "auto-cols": ["auto", "min", "max", "fr", ze]
      }],
      /**
       * Grid Auto Rows
       * @see https://tailwindcss.com/docs/grid-auto-rows
       */
      "auto-rows": [{
        "auto-rows": ["auto", "min", "max", "fr", ze]
      }],
      /**
       * Gap
       * @see https://tailwindcss.com/docs/gap
       */
      gap: [{
        gap: [f]
      }],
      /**
       * Gap X
       * @see https://tailwindcss.com/docs/gap
       */
      "gap-x": [{
        "gap-x": [f]
      }],
      /**
       * Gap Y
       * @see https://tailwindcss.com/docs/gap
       */
      "gap-y": [{
        "gap-y": [f]
      }],
      /**
       * Justify Content
       * @see https://tailwindcss.com/docs/justify-content
       */
      "justify-content": [{
        justify: ["normal", ...G()]
      }],
      /**
       * Justify Items
       * @see https://tailwindcss.com/docs/justify-items
       */
      "justify-items": [{
        "justify-items": ["start", "end", "center", "stretch"]
      }],
      /**
       * Justify Self
       * @see https://tailwindcss.com/docs/justify-self
       */
      "justify-self": [{
        "justify-self": ["auto", "start", "end", "center", "stretch"]
      }],
      /**
       * Align Content
       * @see https://tailwindcss.com/docs/align-content
       */
      "align-content": [{
        content: ["normal", ...G(), "baseline"]
      }],
      /**
       * Align Items
       * @see https://tailwindcss.com/docs/align-items
       */
      "align-items": [{
        items: ["start", "end", "center", "baseline", "stretch"]
      }],
      /**
       * Align Self
       * @see https://tailwindcss.com/docs/align-self
       */
      "align-self": [{
        self: ["auto", "start", "end", "center", "stretch", "baseline"]
      }],
      /**
       * Place Content
       * @see https://tailwindcss.com/docs/place-content
       */
      "place-content": [{
        "place-content": [...G(), "baseline"]
      }],
      /**
       * Place Items
       * @see https://tailwindcss.com/docs/place-items
       */
      "place-items": [{
        "place-items": ["start", "end", "center", "baseline", "stretch"]
      }],
      /**
       * Place Self
       * @see https://tailwindcss.com/docs/place-self
       */
      "place-self": [{
        "place-self": ["auto", "start", "end", "center", "stretch"]
      }],
      // Spacing
      /**
       * Padding
       * @see https://tailwindcss.com/docs/padding
       */
      p: [{
        p: [y]
      }],
      /**
       * Padding X
       * @see https://tailwindcss.com/docs/padding
       */
      px: [{
        px: [y]
      }],
      /**
       * Padding Y
       * @see https://tailwindcss.com/docs/padding
       */
      py: [{
        py: [y]
      }],
      /**
       * Padding Start
       * @see https://tailwindcss.com/docs/padding
       */
      ps: [{
        ps: [y]
      }],
      /**
       * Padding End
       * @see https://tailwindcss.com/docs/padding
       */
      pe: [{
        pe: [y]
      }],
      /**
       * Padding Top
       * @see https://tailwindcss.com/docs/padding
       */
      pt: [{
        pt: [y]
      }],
      /**
       * Padding Right
       * @see https://tailwindcss.com/docs/padding
       */
      pr: [{
        pr: [y]
      }],
      /**
       * Padding Bottom
       * @see https://tailwindcss.com/docs/padding
       */
      pb: [{
        pb: [y]
      }],
      /**
       * Padding Left
       * @see https://tailwindcss.com/docs/padding
       */
      pl: [{
        pl: [y]
      }],
      /**
       * Margin
       * @see https://tailwindcss.com/docs/margin
       */
      m: [{
        m: [p]
      }],
      /**
       * Margin X
       * @see https://tailwindcss.com/docs/margin
       */
      mx: [{
        mx: [p]
      }],
      /**
       * Margin Y
       * @see https://tailwindcss.com/docs/margin
       */
      my: [{
        my: [p]
      }],
      /**
       * Margin Start
       * @see https://tailwindcss.com/docs/margin
       */
      ms: [{
        ms: [p]
      }],
      /**
       * Margin End
       * @see https://tailwindcss.com/docs/margin
       */
      me: [{
        me: [p]
      }],
      /**
       * Margin Top
       * @see https://tailwindcss.com/docs/margin
       */
      mt: [{
        mt: [p]
      }],
      /**
       * Margin Right
       * @see https://tailwindcss.com/docs/margin
       */
      mr: [{
        mr: [p]
      }],
      /**
       * Margin Bottom
       * @see https://tailwindcss.com/docs/margin
       */
      mb: [{
        mb: [p]
      }],
      /**
       * Margin Left
       * @see https://tailwindcss.com/docs/margin
       */
      ml: [{
        ml: [p]
      }],
      /**
       * Space Between X
       * @see https://tailwindcss.com/docs/space
       */
      "space-x": [{
        "space-x": [E]
      }],
      /**
       * Space Between X Reverse
       * @see https://tailwindcss.com/docs/space
       */
      "space-x-reverse": ["space-x-reverse"],
      /**
       * Space Between Y
       * @see https://tailwindcss.com/docs/space
       */
      "space-y": [{
        "space-y": [E]
      }],
      /**
       * Space Between Y Reverse
       * @see https://tailwindcss.com/docs/space
       */
      "space-y-reverse": ["space-y-reverse"],
      // Sizing
      /**
       * Width
       * @see https://tailwindcss.com/docs/width
       */
      w: [{
        w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", ze, t]
      }],
      /**
       * Min-Width
       * @see https://tailwindcss.com/docs/min-width
       */
      "min-w": [{
        "min-w": [ze, t, "min", "max", "fit"]
      }],
      /**
       * Max-Width
       * @see https://tailwindcss.com/docs/max-width
       */
      "max-w": [{
        "max-w": [ze, t, "none", "full", "min", "max", "fit", "prose", {
          screen: [cr]
        }, cr]
      }],
      /**
       * Height
       * @see https://tailwindcss.com/docs/height
       */
      h: [{
        h: [ze, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
      }],
      /**
       * Min-Height
       * @see https://tailwindcss.com/docs/min-height
       */
      "min-h": [{
        "min-h": [ze, t, "min", "max", "fit", "svh", "lvh", "dvh"]
      }],
      /**
       * Max-Height
       * @see https://tailwindcss.com/docs/max-height
       */
      "max-h": [{
        "max-h": [ze, t, "min", "max", "fit", "svh", "lvh", "dvh"]
      }],
      /**
       * Size
       * @see https://tailwindcss.com/docs/size
       */
      size: [{
        size: [ze, t, "auto", "min", "max", "fit"]
      }],
      // Typography
      /**
       * Font Size
       * @see https://tailwindcss.com/docs/font-size
       */
      "font-size": [{
        text: ["base", cr, ur]
      }],
      /**
       * Font Smoothing
       * @see https://tailwindcss.com/docs/font-smoothing
       */
      "font-smoothing": ["antialiased", "subpixel-antialiased"],
      /**
       * Font Style
       * @see https://tailwindcss.com/docs/font-style
       */
      "font-style": ["italic", "not-italic"],
      /**
       * Font Weight
       * @see https://tailwindcss.com/docs/font-weight
       */
      "font-weight": [{
        font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Kl]
      }],
      /**
       * Font Family
       * @see https://tailwindcss.com/docs/font-family
       */
      "font-family": [{
        font: [Ho]
      }],
      /**
       * Font Variant Numeric
       * @see https://tailwindcss.com/docs/font-variant-numeric
       */
      "fvn-normal": ["normal-nums"],
      /**
       * Font Variant Numeric
       * @see https://tailwindcss.com/docs/font-variant-numeric
       */
      "fvn-ordinal": ["ordinal"],
      /**
       * Font Variant Numeric
       * @see https://tailwindcss.com/docs/font-variant-numeric
       */
      "fvn-slashed-zero": ["slashed-zero"],
      /**
       * Font Variant Numeric
       * @see https://tailwindcss.com/docs/font-variant-numeric
       */
      "fvn-figure": ["lining-nums", "oldstyle-nums"],
      /**
       * Font Variant Numeric
       * @see https://tailwindcss.com/docs/font-variant-numeric
       */
      "fvn-spacing": ["proportional-nums", "tabular-nums"],
      /**
       * Font Variant Numeric
       * @see https://tailwindcss.com/docs/font-variant-numeric
       */
      "fvn-fraction": ["diagonal-fractions", "stacked-fractons"],
      /**
       * Letter Spacing
       * @see https://tailwindcss.com/docs/letter-spacing
       */
      tracking: [{
        tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", ze]
      }],
      /**
       * Line Clamp
       * @see https://tailwindcss.com/docs/line-clamp
       */
      "line-clamp": [{
        "line-clamp": ["none", oo, Kl]
      }],
      /**
       * Line Height
       * @see https://tailwindcss.com/docs/line-height
       */
      leading: [{
        leading: ["none", "tight", "snug", "normal", "relaxed", "loose", Zn, ze]
      }],
      /**
       * List Style Image
       * @see https://tailwindcss.com/docs/list-style-image
       */
      "list-image": [{
        "list-image": ["none", ze]
      }],
      /**
       * List Style Type
       * @see https://tailwindcss.com/docs/list-style-type
       */
      "list-style-type": [{
        list: ["none", "disc", "decimal", ze]
      }],
      /**
       * List Style Position
       * @see https://tailwindcss.com/docs/list-style-position
       */
      "list-style-position": [{
        list: ["inside", "outside"]
      }],
      /**
       * Placeholder Color
       * @deprecated since Tailwind CSS v3.0.0
       * @see https://tailwindcss.com/docs/placeholder-color
       */
      "placeholder-color": [{
        placeholder: [e]
      }],
      /**
       * Placeholder Opacity
       * @see https://tailwindcss.com/docs/placeholder-opacity
       */
      "placeholder-opacity": [{
        "placeholder-opacity": [g]
      }],
      /**
       * Text Alignment
       * @see https://tailwindcss.com/docs/text-align
       */
      "text-alignment": [{
        text: ["left", "center", "right", "justify", "start", "end"]
      }],
      /**
       * Text Color
       * @see https://tailwindcss.com/docs/text-color
       */
      "text-color": [{
        text: [e]
      }],
      /**
       * Text Opacity
       * @see https://tailwindcss.com/docs/text-opacity
       */
      "text-opacity": [{
        "text-opacity": [g]
      }],
      /**
       * Text Decoration
       * @see https://tailwindcss.com/docs/text-decoration
       */
      "text-decoration": ["underline", "overline", "line-through", "no-underline"],
      /**
       * Text Decoration Style
       * @see https://tailwindcss.com/docs/text-decoration-style
       */
      "text-decoration-style": [{
        decoration: [...F(), "wavy"]
      }],
      /**
       * Text Decoration Thickness
       * @see https://tailwindcss.com/docs/text-decoration-thickness
       */
      "text-decoration-thickness": [{
        decoration: ["auto", "from-font", Zn, ur]
      }],
      /**
       * Text Underline Offset
       * @see https://tailwindcss.com/docs/text-underline-offset
       */
      "underline-offset": [{
        "underline-offset": ["auto", Zn, ze]
      }],
      /**
       * Text Decoration Color
       * @see https://tailwindcss.com/docs/text-decoration-color
       */
      "text-decoration-color": [{
        decoration: [e]
      }],
      /**
       * Text Transform
       * @see https://tailwindcss.com/docs/text-transform
       */
      "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
      /**
       * Text Overflow
       * @see https://tailwindcss.com/docs/text-overflow
       */
      "text-overflow": ["truncate", "text-ellipsis", "text-clip"],
      /**
       * Text Wrap
       * @see https://tailwindcss.com/docs/text-wrap
       */
      "text-wrap": [{
        text: ["wrap", "nowrap", "balance", "pretty"]
      }],
      /**
       * Text Indent
       * @see https://tailwindcss.com/docs/text-indent
       */
      indent: [{
        indent: C()
      }],
      /**
       * Vertical Alignment
       * @see https://tailwindcss.com/docs/vertical-align
       */
      "vertical-align": [{
        align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", ze]
      }],
      /**
       * Whitespace
       * @see https://tailwindcss.com/docs/whitespace
       */
      whitespace: [{
        whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]
      }],
      /**
       * Word Break
       * @see https://tailwindcss.com/docs/word-break
       */
      break: [{
        break: ["normal", "words", "all", "keep"]
      }],
      /**
       * Hyphens
       * @see https://tailwindcss.com/docs/hyphens
       */
      hyphens: [{
        hyphens: ["none", "manual", "auto"]
      }],
      /**
       * Content
       * @see https://tailwindcss.com/docs/content
       */
      content: [{
        content: ["none", ze]
      }],
      // Backgrounds
      /**
       * Background Attachment
       * @see https://tailwindcss.com/docs/background-attachment
       */
      "bg-attachment": [{
        bg: ["fixed", "local", "scroll"]
      }],
      /**
       * Background Clip
       * @see https://tailwindcss.com/docs/background-clip
       */
      "bg-clip": [{
        "bg-clip": ["border", "padding", "content", "text"]
      }],
      /**
       * Background Opacity
       * @deprecated since Tailwind CSS v3.0.0
       * @see https://tailwindcss.com/docs/background-opacity
       */
      "bg-opacity": [{
        "bg-opacity": [g]
      }],
      /**
       * Background Origin
       * @see https://tailwindcss.com/docs/background-origin
       */
      "bg-origin": [{
        "bg-origin": ["border", "padding", "content"]
      }],
      /**
       * Background Position
       * @see https://tailwindcss.com/docs/background-position
       */
      "bg-position": [{
        bg: [...N(), s1]
      }],
      /**
       * Background Repeat
       * @see https://tailwindcss.com/docs/background-repeat
       */
      "bg-repeat": [{
        bg: ["no-repeat", {
          repeat: ["", "x", "y", "round", "space"]
        }]
      }],
      /**
       * Background Size
       * @see https://tailwindcss.com/docs/background-size
       */
      "bg-size": [{
        bg: ["auto", "cover", "contain", l1]
      }],
      /**
       * Background Image
       * @see https://tailwindcss.com/docs/background-image
       */
      "bg-image": [{
        bg: ["none", {
          "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
        }, c1]
      }],
      /**
       * Background Color
       * @see https://tailwindcss.com/docs/background-color
       */
      "bg-color": [{
        bg: [e]
      }],
      /**
       * Gradient Color Stops From Position
       * @see https://tailwindcss.com/docs/gradient-color-stops
       */
      "gradient-from-pos": [{
        from: [h]
      }],
      /**
       * Gradient Color Stops Via Position
       * @see https://tailwindcss.com/docs/gradient-color-stops
       */
      "gradient-via-pos": [{
        via: [h]
      }],
      /**
       * Gradient Color Stops To Position
       * @see https://tailwindcss.com/docs/gradient-color-stops
       */
      "gradient-to-pos": [{
        to: [h]
      }],
      /**
       * Gradient Color Stops From
       * @see https://tailwindcss.com/docs/gradient-color-stops
       */
      "gradient-from": [{
        from: [v]
      }],
      /**
       * Gradient Color Stops Via
       * @see https://tailwindcss.com/docs/gradient-color-stops
       */
      "gradient-via": [{
        via: [v]
      }],
      /**
       * Gradient Color Stops To
       * @see https://tailwindcss.com/docs/gradient-color-stops
       */
      "gradient-to": [{
        to: [v]
      }],
      // Borders
      /**
       * Border Radius
       * @see https://tailwindcss.com/docs/border-radius
       */
      rounded: [{
        rounded: [a]
      }],
      /**
       * Border Radius Start
       * @see https://tailwindcss.com/docs/border-radius
       */
      "rounded-s": [{
        "rounded-s": [a]
      }],
      /**
       * Border Radius End
       * @see https://tailwindcss.com/docs/border-radius
       */
      "rounded-e": [{
        "rounded-e": [a]
      }],
      /**
       * Border Radius Top
       * @see https://tailwindcss.com/docs/border-radius
       */
      "rounded-t": [{
        "rounded-t": [a]
      }],
      /**
       * Border Radius Right
       * @see https://tailwindcss.com/docs/border-radius
       */
      "rounded-r": [{
        "rounded-r": [a]
      }],
      /**
       * Border Radius Bottom
       * @see https://tailwindcss.com/docs/border-radius
       */
      "rounded-b": [{
        "rounded-b": [a]
      }],
      /**
       * Border Radius Left
       * @see https://tailwindcss.com/docs/border-radius
       */
      "rounded-l": [{
        "rounded-l": [a]
      }],
      /**
       * Border Radius Start Start
       * @see https://tailwindcss.com/docs/border-radius
       */
      "rounded-ss": [{
        "rounded-ss": [a]
      }],
      /**
       * Border Radius Start End
       * @see https://tailwindcss.com/docs/border-radius
       */
      "rounded-se": [{
        "rounded-se": [a]
      }],
      /**
       * Border Radius End End
       * @see https://tailwindcss.com/docs/border-radius
       */
      "rounded-ee": [{
        "rounded-ee": [a]
      }],
      /**
       * Border Radius End Start
       * @see https://tailwindcss.com/docs/border-radius
       */
      "rounded-es": [{
        "rounded-es": [a]
      }],
      /**
       * Border Radius Top Left
       * @see https://tailwindcss.com/docs/border-radius
       */
      "rounded-tl": [{
        "rounded-tl": [a]
      }],
      /**
       * Border Radius Top Right
       * @see https://tailwindcss.com/docs/border-radius
       */
      "rounded-tr": [{
        "rounded-tr": [a]
      }],
      /**
       * Border Radius Bottom Right
       * @see https://tailwindcss.com/docs/border-radius
       */
      "rounded-br": [{
        "rounded-br": [a]
      }],
      /**
       * Border Radius Bottom Left
       * @see https://tailwindcss.com/docs/border-radius
       */
      "rounded-bl": [{
        "rounded-bl": [a]
      }],
      /**
       * Border Width
       * @see https://tailwindcss.com/docs/border-width
       */
      "border-w": [{
        border: [l]
      }],
      /**
       * Border Width X
       * @see https://tailwindcss.com/docs/border-width
       */
      "border-w-x": [{
        "border-x": [l]
      }],
      /**
       * Border Width Y
       * @see https://tailwindcss.com/docs/border-width
       */
      "border-w-y": [{
        "border-y": [l]
      }],
      /**
       * Border Width Start
       * @see https://tailwindcss.com/docs/border-width
       */
      "border-w-s": [{
        "border-s": [l]
      }],
      /**
       * Border Width End
       * @see https://tailwindcss.com/docs/border-width
       */
      "border-w-e": [{
        "border-e": [l]
      }],
      /**
       * Border Width Top
       * @see https://tailwindcss.com/docs/border-width
       */
      "border-w-t": [{
        "border-t": [l]
      }],
      /**
       * Border Width Right
       * @see https://tailwindcss.com/docs/border-width
       */
      "border-w-r": [{
        "border-r": [l]
      }],
      /**
       * Border Width Bottom
       * @see https://tailwindcss.com/docs/border-width
       */
      "border-w-b": [{
        "border-b": [l]
      }],
      /**
       * Border Width Left
       * @see https://tailwindcss.com/docs/border-width
       */
      "border-w-l": [{
        "border-l": [l]
      }],
      /**
       * Border Opacity
       * @see https://tailwindcss.com/docs/border-opacity
       */
      "border-opacity": [{
        "border-opacity": [g]
      }],
      /**
       * Border Style
       * @see https://tailwindcss.com/docs/border-style
       */
      "border-style": [{
        border: [...F(), "hidden"]
      }],
      /**
       * Divide Width X
       * @see https://tailwindcss.com/docs/divide-width
       */
      "divide-x": [{
        "divide-x": [l]
      }],
      /**
       * Divide Width X Reverse
       * @see https://tailwindcss.com/docs/divide-width
       */
      "divide-x-reverse": ["divide-x-reverse"],
      /**
       * Divide Width Y
       * @see https://tailwindcss.com/docs/divide-width
       */
      "divide-y": [{
        "divide-y": [l]
      }],
      /**
       * Divide Width Y Reverse
       * @see https://tailwindcss.com/docs/divide-width
       */
      "divide-y-reverse": ["divide-y-reverse"],
      /**
       * Divide Opacity
       * @see https://tailwindcss.com/docs/divide-opacity
       */
      "divide-opacity": [{
        "divide-opacity": [g]
      }],
      /**
       * Divide Style
       * @see https://tailwindcss.com/docs/divide-style
       */
      "divide-style": [{
        divide: F()
      }],
      /**
       * Border Color
       * @see https://tailwindcss.com/docs/border-color
       */
      "border-color": [{
        border: [o]
      }],
      /**
       * Border Color X
       * @see https://tailwindcss.com/docs/border-color
       */
      "border-color-x": [{
        "border-x": [o]
      }],
      /**
       * Border Color Y
       * @see https://tailwindcss.com/docs/border-color
       */
      "border-color-y": [{
        "border-y": [o]
      }],
      /**
       * Border Color Top
       * @see https://tailwindcss.com/docs/border-color
       */
      "border-color-t": [{
        "border-t": [o]
      }],
      /**
       * Border Color Right
       * @see https://tailwindcss.com/docs/border-color
       */
      "border-color-r": [{
        "border-r": [o]
      }],
      /**
       * Border Color Bottom
       * @see https://tailwindcss.com/docs/border-color
       */
      "border-color-b": [{
        "border-b": [o]
      }],
      /**
       * Border Color Left
       * @see https://tailwindcss.com/docs/border-color
       */
      "border-color-l": [{
        "border-l": [o]
      }],
      /**
       * Divide Color
       * @see https://tailwindcss.com/docs/divide-color
       */
      "divide-color": [{
        divide: [o]
      }],
      /**
       * Outline Style
       * @see https://tailwindcss.com/docs/outline-style
       */
      "outline-style": [{
        outline: ["", ...F()]
      }],
      /**
       * Outline Offset
       * @see https://tailwindcss.com/docs/outline-offset
       */
      "outline-offset": [{
        "outline-offset": [Zn, ze]
      }],
      /**
       * Outline Width
       * @see https://tailwindcss.com/docs/outline-width
       */
      "outline-w": [{
        outline: [Zn, ur]
      }],
      /**
       * Outline Color
       * @see https://tailwindcss.com/docs/outline-color
       */
      "outline-color": [{
        outline: [e]
      }],
      /**
       * Ring Width
       * @see https://tailwindcss.com/docs/ring-width
       */
      "ring-w": [{
        ring: k()
      }],
      /**
       * Ring Width Inset
       * @see https://tailwindcss.com/docs/ring-width
       */
      "ring-w-inset": ["ring-inset"],
      /**
       * Ring Color
       * @see https://tailwindcss.com/docs/ring-color
       */
      "ring-color": [{
        ring: [e]
      }],
      /**
       * Ring Opacity
       * @see https://tailwindcss.com/docs/ring-opacity
       */
      "ring-opacity": [{
        "ring-opacity": [g]
      }],
      /**
       * Ring Offset Width
       * @see https://tailwindcss.com/docs/ring-offset-width
       */
      "ring-offset-w": [{
        "ring-offset": [Zn, ur]
      }],
      /**
       * Ring Offset Color
       * @see https://tailwindcss.com/docs/ring-offset-color
       */
      "ring-offset-color": [{
        "ring-offset": [e]
      }],
      // Effects
      /**
       * Box Shadow
       * @see https://tailwindcss.com/docs/box-shadow
       */
      shadow: [{
        shadow: ["", "inner", "none", cr, f1]
      }],
      /**
       * Box Shadow Color
       * @see https://tailwindcss.com/docs/box-shadow-color
       */
      "shadow-color": [{
        shadow: [Ho]
      }],
      /**
       * Opacity
       * @see https://tailwindcss.com/docs/opacity
       */
      opacity: [{
        opacity: [g]
      }],
      /**
       * Mix Blend Mode
       * @see https://tailwindcss.com/docs/mix-blend-mode
       */
      "mix-blend": [{
        "mix-blend": [...V(), "plus-lighter", "plus-darker"]
      }],
      /**
       * Background Blend Mode
       * @see https://tailwindcss.com/docs/background-blend-mode
       */
      "bg-blend": [{
        "bg-blend": V()
      }],
      // Filters
      /**
       * Filter
       * @deprecated since Tailwind CSS v3.0.0
       * @see https://tailwindcss.com/docs/filter
       */
      filter: [{
        filter: ["", "none"]
      }],
      /**
       * Blur
       * @see https://tailwindcss.com/docs/blur
       */
      blur: [{
        blur: [n]
      }],
      /**
       * Brightness
       * @see https://tailwindcss.com/docs/brightness
       */
      brightness: [{
        brightness: [r]
      }],
      /**
       * Contrast
       * @see https://tailwindcss.com/docs/contrast
       */
      contrast: [{
        contrast: [s]
      }],
      /**
       * Drop Shadow
       * @see https://tailwindcss.com/docs/drop-shadow
       */
      "drop-shadow": [{
        "drop-shadow": ["", "none", cr, ze]
      }],
      /**
       * Grayscale
       * @see https://tailwindcss.com/docs/grayscale
       */
      grayscale: [{
        grayscale: [u]
      }],
      /**
       * Hue Rotate
       * @see https://tailwindcss.com/docs/hue-rotate
       */
      "hue-rotate": [{
        "hue-rotate": [c]
      }],
      /**
       * Invert
       * @see https://tailwindcss.com/docs/invert
       */
      invert: [{
        invert: [d]
      }],
      /**
       * Saturate
       * @see https://tailwindcss.com/docs/saturate
       */
      saturate: [{
        saturate: [x]
      }],
      /**
       * Sepia
       * @see https://tailwindcss.com/docs/sepia
       */
      sepia: [{
        sepia: [w]
      }],
      /**
       * Backdrop Filter
       * @deprecated since Tailwind CSS v3.0.0
       * @see https://tailwindcss.com/docs/backdrop-filter
       */
      "backdrop-filter": [{
        "backdrop-filter": ["", "none"]
      }],
      /**
       * Backdrop Blur
       * @see https://tailwindcss.com/docs/backdrop-blur
       */
      "backdrop-blur": [{
        "backdrop-blur": [n]
      }],
      /**
       * Backdrop Brightness
       * @see https://tailwindcss.com/docs/backdrop-brightness
       */
      "backdrop-brightness": [{
        "backdrop-brightness": [r]
      }],
      /**
       * Backdrop Contrast
       * @see https://tailwindcss.com/docs/backdrop-contrast
       */
      "backdrop-contrast": [{
        "backdrop-contrast": [s]
      }],
      /**
       * Backdrop Grayscale
       * @see https://tailwindcss.com/docs/backdrop-grayscale
       */
      "backdrop-grayscale": [{
        "backdrop-grayscale": [u]
      }],
      /**
       * Backdrop Hue Rotate
       * @see https://tailwindcss.com/docs/backdrop-hue-rotate
       */
      "backdrop-hue-rotate": [{
        "backdrop-hue-rotate": [c]
      }],
      /**
       * Backdrop Invert
       * @see https://tailwindcss.com/docs/backdrop-invert
       */
      "backdrop-invert": [{
        "backdrop-invert": [d]
      }],
      /**
       * Backdrop Opacity
       * @see https://tailwindcss.com/docs/backdrop-opacity
       */
      "backdrop-opacity": [{
        "backdrop-opacity": [g]
      }],
      /**
       * Backdrop Saturate
       * @see https://tailwindcss.com/docs/backdrop-saturate
       */
      "backdrop-saturate": [{
        "backdrop-saturate": [x]
      }],
      /**
       * Backdrop Sepia
       * @see https://tailwindcss.com/docs/backdrop-sepia
       */
      "backdrop-sepia": [{
        "backdrop-sepia": [w]
      }],
      // Tables
      /**
       * Border Collapse
       * @see https://tailwindcss.com/docs/border-collapse
       */
      "border-collapse": [{
        border: ["collapse", "separate"]
      }],
      /**
       * Border Spacing
       * @see https://tailwindcss.com/docs/border-spacing
       */
      "border-spacing": [{
        "border-spacing": [i]
      }],
      /**
       * Border Spacing X
       * @see https://tailwindcss.com/docs/border-spacing
       */
      "border-spacing-x": [{
        "border-spacing-x": [i]
      }],
      /**
       * Border Spacing Y
       * @see https://tailwindcss.com/docs/border-spacing
       */
      "border-spacing-y": [{
        "border-spacing-y": [i]
      }],
      /**
       * Table Layout
       * @see https://tailwindcss.com/docs/table-layout
       */
      "table-layout": [{
        table: ["auto", "fixed"]
      }],
      /**
       * Caption Side
       * @see https://tailwindcss.com/docs/caption-side
       */
      caption: [{
        caption: ["top", "bottom"]
      }],
      // Transitions and Animation
      /**
       * Tranisition Property
       * @see https://tailwindcss.com/docs/transition-property
       */
      transition: [{
        transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", ze]
      }],
      /**
       * Transition Duration
       * @see https://tailwindcss.com/docs/transition-duration
       */
      duration: [{
        duration: P()
      }],
      /**
       * Transition Timing Function
       * @see https://tailwindcss.com/docs/transition-timing-function
       */
      ease: [{
        ease: ["linear", "in", "out", "in-out", ze]
      }],
      /**
       * Transition Delay
       * @see https://tailwindcss.com/docs/transition-delay
       */
      delay: [{
        delay: P()
      }],
      /**
       * Animation
       * @see https://tailwindcss.com/docs/animation
       */
      animate: [{
        animate: ["none", "spin", "ping", "pulse", "bounce", ze]
      }],
      // Transforms
      /**
       * Transform
       * @see https://tailwindcss.com/docs/transform
       */
      transform: [{
        transform: ["", "gpu", "none"]
      }],
      /**
       * Scale
       * @see https://tailwindcss.com/docs/scale
       */
      scale: [{
        scale: [b]
      }],
      /**
       * Scale X
       * @see https://tailwindcss.com/docs/scale
       */
      "scale-x": [{
        "scale-x": [b]
      }],
      /**
       * Scale Y
       * @see https://tailwindcss.com/docs/scale
       */
      "scale-y": [{
        "scale-y": [b]
      }],
      /**
       * Rotate
       * @see https://tailwindcss.com/docs/rotate
       */
      rotate: [{
        rotate: [Uo, ze]
      }],
      /**
       * Translate X
       * @see https://tailwindcss.com/docs/translate
       */
      "translate-x": [{
        "translate-x": [T]
      }],
      /**
       * Translate Y
       * @see https://tailwindcss.com/docs/translate
       */
      "translate-y": [{
        "translate-y": [T]
      }],
      /**
       * Skew X
       * @see https://tailwindcss.com/docs/skew
       */
      "skew-x": [{
        "skew-x": [D]
      }],
      /**
       * Skew Y
       * @see https://tailwindcss.com/docs/skew
       */
      "skew-y": [{
        "skew-y": [D]
      }],
      /**
       * Transform Origin
       * @see https://tailwindcss.com/docs/transform-origin
       */
      "transform-origin": [{
        origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", ze]
      }],
      // Interactivity
      /**
       * Accent Color
       * @see https://tailwindcss.com/docs/accent-color
       */
      accent: [{
        accent: ["auto", e]
      }],
      /**
       * Appearance
       * @see https://tailwindcss.com/docs/appearance
       */
      appearance: [{
        appearance: ["none", "auto"]
      }],
      /**
       * Cursor
       * @see https://tailwindcss.com/docs/cursor
       */
      cursor: [{
        cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", ze]
      }],
      /**
       * Caret Color
       * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
       */
      "caret-color": [{
        caret: [e]
      }],
      /**
       * Pointer Events
       * @see https://tailwindcss.com/docs/pointer-events
       */
      "pointer-events": [{
        "pointer-events": ["none", "auto"]
      }],
      /**
       * Resize
       * @see https://tailwindcss.com/docs/resize
       */
      resize: [{
        resize: ["none", "y", "x", ""]
      }],
      /**
       * Scroll Behavior
       * @see https://tailwindcss.com/docs/scroll-behavior
       */
      "scroll-behavior": [{
        scroll: ["auto", "smooth"]
      }],
      /**
       * Scroll Margin
       * @see https://tailwindcss.com/docs/scroll-margin
       */
      "scroll-m": [{
        "scroll-m": C()
      }],
      /**
       * Scroll Margin X
       * @see https://tailwindcss.com/docs/scroll-margin
       */
      "scroll-mx": [{
        "scroll-mx": C()
      }],
      /**
       * Scroll Margin Y
       * @see https://tailwindcss.com/docs/scroll-margin
       */
      "scroll-my": [{
        "scroll-my": C()
      }],
      /**
       * Scroll Margin Start
       * @see https://tailwindcss.com/docs/scroll-margin
       */
      "scroll-ms": [{
        "scroll-ms": C()
      }],
      /**
       * Scroll Margin End
       * @see https://tailwindcss.com/docs/scroll-margin
       */
      "scroll-me": [{
        "scroll-me": C()
      }],
      /**
       * Scroll Margin Top
       * @see https://tailwindcss.com/docs/scroll-margin
       */
      "scroll-mt": [{
        "scroll-mt": C()
      }],
      /**
       * Scroll Margin Right
       * @see https://tailwindcss.com/docs/scroll-margin
       */
      "scroll-mr": [{
        "scroll-mr": C()
      }],
      /**
       * Scroll Margin Bottom
       * @see https://tailwindcss.com/docs/scroll-margin
       */
      "scroll-mb": [{
        "scroll-mb": C()
      }],
      /**
       * Scroll Margin Left
       * @see https://tailwindcss.com/docs/scroll-margin
       */
      "scroll-ml": [{
        "scroll-ml": C()
      }],
      /**
       * Scroll Padding
       * @see https://tailwindcss.com/docs/scroll-padding
       */
      "scroll-p": [{
        "scroll-p": C()
      }],
      /**
       * Scroll Padding X
       * @see https://tailwindcss.com/docs/scroll-padding
       */
      "scroll-px": [{
        "scroll-px": C()
      }],
      /**
       * Scroll Padding Y
       * @see https://tailwindcss.com/docs/scroll-padding
       */
      "scroll-py": [{
        "scroll-py": C()
      }],
      /**
       * Scroll Padding Start
       * @see https://tailwindcss.com/docs/scroll-padding
       */
      "scroll-ps": [{
        "scroll-ps": C()
      }],
      /**
       * Scroll Padding End
       * @see https://tailwindcss.com/docs/scroll-padding
       */
      "scroll-pe": [{
        "scroll-pe": C()
      }],
      /**
       * Scroll Padding Top
       * @see https://tailwindcss.com/docs/scroll-padding
       */
      "scroll-pt": [{
        "scroll-pt": C()
      }],
      /**
       * Scroll Padding Right
       * @see https://tailwindcss.com/docs/scroll-padding
       */
      "scroll-pr": [{
        "scroll-pr": C()
      }],
      /**
       * Scroll Padding Bottom
       * @see https://tailwindcss.com/docs/scroll-padding
       */
      "scroll-pb": [{
        "scroll-pb": C()
      }],
      /**
       * Scroll Padding Left
       * @see https://tailwindcss.com/docs/scroll-padding
       */
      "scroll-pl": [{
        "scroll-pl": C()
      }],
      /**
       * Scroll Snap Align
       * @see https://tailwindcss.com/docs/scroll-snap-align
       */
      "snap-align": [{
        snap: ["start", "end", "center", "align-none"]
      }],
      /**
       * Scroll Snap Stop
       * @see https://tailwindcss.com/docs/scroll-snap-stop
       */
      "snap-stop": [{
        snap: ["normal", "always"]
      }],
      /**
       * Scroll Snap Type
       * @see https://tailwindcss.com/docs/scroll-snap-type
       */
      "snap-type": [{
        snap: ["none", "x", "y", "both"]
      }],
      /**
       * Scroll Snap Type Strictness
       * @see https://tailwindcss.com/docs/scroll-snap-type
       */
      "snap-strictness": [{
        snap: ["mandatory", "proximity"]
      }],
      /**
       * Touch Action
       * @see https://tailwindcss.com/docs/touch-action
       */
      touch: [{
        touch: ["auto", "none", "manipulation"]
      }],
      /**
       * Touch Action X
       * @see https://tailwindcss.com/docs/touch-action
       */
      "touch-x": [{
        "touch-pan": ["x", "left", "right"]
      }],
      /**
       * Touch Action Y
       * @see https://tailwindcss.com/docs/touch-action
       */
      "touch-y": [{
        "touch-pan": ["y", "up", "down"]
      }],
      /**
       * Touch Action Pinch Zoom
       * @see https://tailwindcss.com/docs/touch-action
       */
      "touch-pz": ["touch-pinch-zoom"],
      /**
       * User Select
       * @see https://tailwindcss.com/docs/user-select
       */
      select: [{
        select: ["none", "text", "all", "auto"]
      }],
      /**
       * Will Change
       * @see https://tailwindcss.com/docs/will-change
       */
      "will-change": [{
        "will-change": ["auto", "scroll", "contents", "transform", ze]
      }],
      // SVG
      /**
       * Fill
       * @see https://tailwindcss.com/docs/fill
       */
      fill: [{
        fill: [e, "none"]
      }],
      /**
       * Stroke Width
       * @see https://tailwindcss.com/docs/stroke-width
       */
      "stroke-w": [{
        stroke: [Zn, ur, Kl]
      }],
      /**
       * Stroke
       * @see https://tailwindcss.com/docs/stroke
       */
      stroke: [{
        stroke: [e, "none"]
      }],
      // Accessibility
      /**
       * Screen Readers
       * @see https://tailwindcss.com/docs/screen-readers
       */
      sr: ["sr-only", "not-sr-only"],
      /**
       * Forced Color Adjust
       * @see https://tailwindcss.com/docs/forced-color-adjust
       */
      "forced-color-adjust": [{
        "forced-color-adjust": ["auto", "none"]
      }]
    },
    conflictingClassGroups: {
      overflow: ["overflow-x", "overflow-y"],
      overscroll: ["overscroll-x", "overscroll-y"],
      inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"],
      "inset-x": ["right", "left"],
      "inset-y": ["top", "bottom"],
      flex: ["basis", "grow", "shrink"],
      gap: ["gap-x", "gap-y"],
      p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"],
      px: ["pr", "pl"],
      py: ["pt", "pb"],
      m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"],
      mx: ["mr", "ml"],
      my: ["mt", "mb"],
      size: ["w", "h"],
      "font-size": ["leading"],
      "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
      "fvn-ordinal": ["fvn-normal"],
      "fvn-slashed-zero": ["fvn-normal"],
      "fvn-figure": ["fvn-normal"],
      "fvn-spacing": ["fvn-normal"],
      "fvn-fraction": ["fvn-normal"],
      "line-clamp": ["display", "overflow"],
      rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"],
      "rounded-s": ["rounded-ss", "rounded-es"],
      "rounded-e": ["rounded-se", "rounded-ee"],
      "rounded-t": ["rounded-tl", "rounded-tr"],
      "rounded-r": ["rounded-tr", "rounded-br"],
      "rounded-b": ["rounded-br", "rounded-bl"],
      "rounded-l": ["rounded-tl", "rounded-bl"],
      "border-spacing": ["border-spacing-x", "border-spacing-y"],
      "border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
      "border-w-x": ["border-w-r", "border-w-l"],
      "border-w-y": ["border-w-t", "border-w-b"],
      "border-color": ["border-color-t", "border-color-r", "border-color-b", "border-color-l"],
      "border-color-x": ["border-color-r", "border-color-l"],
      "border-color-y": ["border-color-t", "border-color-b"],
      "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
      "scroll-mx": ["scroll-mr", "scroll-ml"],
      "scroll-my": ["scroll-mt", "scroll-mb"],
      "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
      "scroll-px": ["scroll-pr", "scroll-pl"],
      "scroll-py": ["scroll-pt", "scroll-pb"],
      touch: ["touch-x", "touch-y", "touch-pz"],
      "touch-x": ["touch"],
      "touch-y": ["touch"],
      "touch-pz": ["touch"]
    },
    conflictingClassGroupModifiers: {
      "font-size": ["leading"]
    }
  };
}, p1 = (e, {
  cacheSize: t,
  prefix: n,
  separator: r,
  experimentalParseClassName: o,
  extend: a = {},
  override: i = {}
}) => {
  _o(e, "cacheSize", t), _o(e, "prefix", n), _o(e, "separator", r), _o(e, "experimentalParseClassName", o);
  for (const l in i)
    g1(e[l], i[l]);
  for (const l in a)
    m1(e[l], a[l]);
  return e;
}, _o = (e, t, n) => {
  n !== void 0 && (e[t] = n);
}, g1 = (e, t) => {
  if (t)
    for (const n in t)
      _o(e, n, t[n]);
}, m1 = (e, t) => {
  if (t)
    for (const n in t) {
      const r = t[n];
      r !== void 0 && (e[n] = (e[n] || []).concat(r));
    }
}, y1 = (e, ...t) => typeof e == "function" ? Dc(kc, e, ...t) : Dc(() => p1(kc(), e), ...t), cv = y1({
  prefix: "rvx-"
}), b1 = (e) => {
  try {
    const n = new URL(e).pathname, r = n.substring(n.lastIndexOf(".") + 1);
    return r || "";
  } catch (t) {
    return console.error("Invalid URL:", t), "";
  }
}, Ka = (e) => {
  const t = /* @__PURE__ */ new Set(["mp4", "mov", "avi", "mkv", "webm"]), n = /* @__PURE__ */ new Set(["mp3", "wav", "aac", "flac", "ogg"]), r = /* @__PURE__ */ new Set(["jpg", "jpeg", "png", "gif", "bmp", "webp", "svg"]), o = b1(e).toLowerCase();
  return {
    isVideo: t.has(o),
    isAudio: n.has(o),
    isImage: r.has(o)
  };
}, w1 = ({
  criteriaStats: e,
  criterias: t,
  percentDefaultValue: n = 5,
  existingRating: r
}) => t == null ? void 0 : t.map((o) => {
  let a;
  const i = e[o.key];
  i ? a = i : r ? a = r : a = 0;
  const l = a / n * 100;
  return {
    key: o.key,
    name: o.name,
    total: a,
    percent: l
  };
}), x1 = () => {
  const e = ne(), t = (n) => n;
  return We(() => {
    var n;
    e.value = (n = window == null ? void 0 : window.__rvxLocals) == null ? void 0 : n.rvx_localization_data_for_admin;
  }), { rvxLocal: e, __t: t };
}, A1 = ["width", "height"], O1 = ["fill"], fv = /* @__PURE__ */ se({
  __name: "UIStarIcon",
  props: {
    fill: { default: "#0043DD" },
    starSize: { default: "24" }
  },
  setup(e) {
    return (t, n) => (J(), ve("svg", {
      width: t.starSize,
      height: t.starSize,
      viewBox: "0 0 24 21",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg"
    }, [
      fe("path", {
        d: "M11.9998 17.5001L6.53314 20.7667C6.2887 20.9001 6.04981 20.9556 5.81648 20.9334C5.58314 20.9112 5.37759 20.8334 5.19981 20.7001C5.02203 20.5667 4.8887 20.3834 4.79981 20.1501C4.71092 19.9167 4.69981 19.6778 4.76648 19.4334L6.19981 13.3334L1.36648 9.23339C1.16648 9.05561 1.04426 8.85005 0.999811 8.61672C0.955367 8.38339 0.966478 8.15561 1.03314 7.93339C1.09981 7.71116 1.22203 7.52783 1.39981 7.38339C1.57759 7.23894 1.79981 7.15561 2.06648 7.13339L8.39981 6.56672L10.8998 0.76672C11.0109 0.522275 11.1665 0.338942 11.3665 0.21672C11.5665 0.0944973 11.7776 0.0333862 11.9998 0.0333862C12.222 0.0333862 12.4331 0.0944973 12.6331 0.21672C12.8331 0.338942 12.9887 0.522275 13.0998 0.76672L15.5998 6.60005L21.9331 7.13339C22.1998 7.15561 22.422 7.2445 22.5998 7.40005C22.7776 7.55561 22.8998 7.7445 22.9665 7.96672C23.0331 8.18894 23.0387 8.41116 22.9831 8.63339C22.9276 8.85561 22.7998 9.05561 22.5998 9.23339L17.7998 13.3334L19.2331 19.4334C19.2998 19.6778 19.2887 19.9167 19.1998 20.1501C19.1109 20.3834 18.9776 20.5667 18.7998 20.7001C18.622 20.8334 18.4165 20.9112 18.1831 20.9334C17.9498 20.9556 17.7109 20.9001 17.4665 20.7667L11.9998 17.5001Z",
        fill: t.fill
      }, null, 8, O1)
    ], 8, A1));
  }
}), C1 = { class: "rvx-text-[14px] rvx-flex rvx-gap-space8 rvx-items-center rvx-p-0 rvx-align-middle rvx-pb-space8 rvx-pr-space8 rvx-aggregation__rating" }, E1 = { class: "rvx-w-full rvx-p-0 rvx-align-middle rvx-pb-space8" }, S1 = { class: "rvx-p-0 rvx-align-middle rvx-pb-space8 rvx-px-space8 rvx-aggregation__total-rating" }, T1 = {
  key: 0,
  class: "rvx-p-0 rvx-align-middle rvx-pb-space8 rvx-aggregation__percent"
}, D1 = /* @__PURE__ */ se({
  __name: "UIAggregationsStarRow",
  props: {
    aggregations: {},
    showPercent: { type: Boolean },
    height: {},
    background: { default: "#0043DD" },
    starColor: { default: "#0043DD" }
  },
  setup(e) {
    const t = e, n = U(() => [
      {
        5: {
          ...t.aggregations.five
        }
      },
      {
        4: {
          ...t.aggregations.four
        }
      },
      {
        3: {
          ...t.aggregations.three
        }
      },
      {
        2: {
          ...t.aggregations.two
        }
      },
      {
        1: {
          ...t.aggregations.one
        }
      }
    ]);
    return (r, o) => (J(!0), ve(He, null, mt(n.value, (a, i) => (J(), ve("tr", {
      key: i,
      class: "rvx-aggregation__row"
    }, [
      fe("td", C1, [
        je(Re(5 - i) + " ", 1),
        $(fv, {
          fill: r.starColor,
          width: "16",
          height: "14",
          class: "rvx-aggregation__rating-icon"
        }, null, 8, ["fill"])
      ]),
      fe("td", E1, [
        $(Xs, {
          height: r.height,
          background: r.background,
          width: a[5 - i].percentage
        }, null, 8, ["height", "background", "width"])
      ]),
      fe("td", S1, Re(X(gs)(a[5 - i].total)), 1),
      r.showPercent ? (J(), ve("td", T1, Re(X(gs)(a[5 - i].percentage)) + "% ", 1)) : Ie("", !0)
    ]))), 128));
  }
}), k1 = { class: "rvx-w-full" }, P1 = { class: "" }, BI = /* @__PURE__ */ se({
  __name: "UIAggregations",
  props: {
    aggregations: {},
    showPercent: { type: Boolean },
    height: {},
    background: {},
    starColor: {}
  },
  setup(e) {
    return (t, n) => (J(), ve("table", k1, [
      fe("tbody", P1, [
        $(D1, {
          aggregations: t.aggregations,
          showPercent: t.showPercent,
          height: t.height,
          background: t.background,
          starColor: t.starColor
        }, null, 8, ["aggregations", "showPercent", "height", "background", "starColor"])
      ])
    ]));
  }
}), I1 = ["src", "alt"], ua = /* @__PURE__ */ se({
  __name: "UIAvatar",
  props: {
    src: {},
    alt: {},
    size: { default: "sm" },
    imageClass: { default: "" },
    fallbackClass: { default: "" }
  },
  setup(e) {
    const t = e, n = ne(!1), r = U(() => t.src && !n.value), o = () => {
      n.value = !0;
    };
    return (a, i) => (J(), ve("div", {
      class: xe(["rvx-grid rvx-place-content-center", `${a.size === "sm" && "rvx-size-space20"} ${a.size === "md" && "rvx-size-space24"} ${a.size === "lg" && "rvx-size-space30"} ${a.size === "xl" && "rvx-size-space40"} rvx-overflow-hidden`])
    }, [
      r.value ? (J(), ve("img", {
        key: 0,
        onError: o,
        src: a.src,
        alt: a.alt,
        class: xe(t.imageClass ? t.imageClass : ""),
        style: { height: "inherit" }
      }, null, 42, I1)) : (J(), ve("div", {
        key: 1,
        class: xe([t.fallbackClass ? t.fallbackClass : "", "rvx-flex rvx-justify-center rvx-items-center rvx-text-neutral rvx-font-nunito"])
      }, Re(a.alt.charAt(0).toUpperCase()), 3))
    ], 2));
  }
}), FI = /* @__PURE__ */ se({
  __name: "UIBadge",
  props: {
    label: { default: "Badge" }
  },
  setup(e) {
    return (t, n) => (J(), ge(we, { class: "rvx-px-space8 rvx-py-[3px] rvx-rounded-xl rvx-bg-neutral-400 rvx-text-white" }, {
      default: ee(() => [
        je(Re(t.label), 1)
      ]),
      _: 1
    }));
  }
}), N1 = /* @__PURE__ */ se({
  __name: "UITypography",
  props: {
    as: { default: "p" }
  },
  setup(e) {
    return (t, n) => (J(), ge(Li(t.as), null, {
      default: ee(() => [
        qe(t.$slots, "default", {}, void 0, !0)
      ]),
      _: 3
    }));
  }
}), sn = (e, t) => {
  const n = e.__vccOpts || e;
  for (const [r, o] of t)
    n[r] = o;
  return n;
}, Ct = /* @__PURE__ */ sn(N1, [["__scopeId", "data-v-d470bfe6"]]), Et = /* @__PURE__ */ se({
  __name: "UIIcon",
  props: {
    iconName: { default: "menu" },
    iconVariant: { default: "rounded" }
  },
  setup(e) {
    return (t, n) => (J(), ve("span", {
      class: xe(`material-symbols-${t.iconVariant}`)
    }, Re(t.iconName), 3));
  }
}), M1 = { class: "rvx-flex" }, L1 = { class: "rvx-relative" }, uo = /* @__PURE__ */ se({
  __name: "UISpinner",
  props: {
    size: { default: "xl" },
    ringColor: { default: "primary" }
  },
  setup(e) {
    return (t, n) => (J(), ve("div", M1, [
      fe("div", L1, [
        fe("div", {
          class: xe([{
            "rvx-size-space16": t.size === "sm",
            "rvx-size-space28": t.size === "md",
            "rvx-size-space32": t.size === "lg",
            "rvx-size-space40": t.size === "xl"
          }, "rvx-rounded-full rvx-absolute rvx-border-[3px] rvx-border-gray-500 rvx-border-solid"])
        }, null, 2),
        fe("div", {
          class: xe([{
            "rvx-size-space16": t.size === "sm",
            "rvx-size-space28": t.size === "md",
            "rvx-size-space32": t.size === "lg",
            "rvx-size-space40": t.size === "xl",
            "rvx-border-white": t.ringColor === "white",
            "rvx-border-primary": t.ringColor === "primary"
          }, "rvx-rounded-full rvx-animate-spin rvx-absolute rvx-border-[3px] rvx-border-solid rvx-border-t-transparent"])
        }, null, 2)
      ])
    ]));
  }
}), R1 = ["type", "disabled"], Qi = /* @__PURE__ */ se({
  __name: "UIButtonOutline",
  props: {
    haveIcon: { type: Boolean },
    iconPosition: { default: "before" },
    iconClass: {},
    variant: { default: "primary" },
    loader: { type: Boolean },
    loaderPosition: { default: "before" },
    type: { default: "button" },
    size: {},
    disabled: { type: Boolean, default: !1 },
    iconName: { default: "menu" },
    iconVariant: {},
    ringColor: {}
  },
  setup(e) {
    return (t, n) => (J(), ve("button", {
      class: xe(["rvx-rounded-lg !rvx-border rvx-border-solid rvx-py-[9px] rvx-px-space16 rvx-leading-[22px] rvx-cursor-pointer rvx-font-nunito rvx-text-normal rvx-font-semibold rvx-bg-transparent disabled:!rvx-cursor-not-allowed", {
        "rvx-flex rvx-justify-center rvx-items-center rvx-gap-space8": t.haveIcon || t.loader,
        "!rvx-border-primary rvx-text-primary hover:rvx-border-primary-80 hover:rvx-text-primary-80": t.variant === "primary",
        "!rvx-border-neutral-400 rvx-text-neutral-800 rvx-font-semibold hover:rvx-border-neutral-600 hover:rvx-text-neutral-600": t.variant === "gray"
      }]),
      type: t.type,
      disabled: t.disabled
    }, [
      t.haveIcon && t.iconPosition === "before" ? (J(), ge(Et, {
        key: 0,
        "icon-name": t.iconName,
        class: xe(t.iconClass)
      }, null, 8, ["icon-name", "class"])) : Ie("", !0),
      t.loader && t.loaderPosition === "before" ? (J(), ge(uo, {
        key: 1,
        class: "rvx-self-start rvx-mr-space16 rvx-mt-space5",
        size: "sm",
        "ring-color": "primary"
      })) : Ie("", !0),
      qe(t.$slots, "default"),
      t.haveIcon && t.iconPosition === "after" ? (J(), ge(Et, {
        key: 2,
        "icon-name": t.iconName,
        class: xe(t.iconClass)
      }, null, 8, ["icon-name", "class"])) : Ie("", !0),
      t.loader && t.loaderPosition === "after" ? (J(), ge(uo, {
        key: 3,
        class: "rvx-self-start rvx-mr-space16 rvx-mt-space5",
        size: "sm",
        "ring-color": "primary"
      })) : Ie("", !0)
    ], 10, R1));
  }
}), B1 = {}, F1 = {
  width: "56",
  height: "56",
  viewBox: "0 0 56 56",
  fill: "none",
  xmlns: "http://www.w3.org/2000/svg"
};
function j1(e, t) {
  return J(), ve("svg", F1, t[0] || (t[0] = [
    fe("path", {
      d: "M52.0676 24.4147C51.8682 18.3278 49.3532 12.5465 45.0361 8.2508C40.4835 3.6973 34.4329 1.19043 27.9999 1.19043C15.007 1.19043 4.39062 11.5321 3.933 24.4147C2.93116 24.8585 2.07952 25.5833 1.48129 26.5013C0.883055 27.4193 0.563901 28.4911 0.5625 29.5868V35.9411C0.564121 37.4415 1.16091 38.8801 2.22192 39.9411C3.28293 41.0021 4.7215 41.5989 6.222 41.6006C7.19283 41.5994 8.12357 41.2132 8.81006 40.5267C9.49654 39.8403 9.88272 38.9095 9.88387 37.9387V27.5883C9.88387 25.6922 8.42962 24.1461 6.58075 23.9623C7.26325 12.7387 16.6065 3.81543 27.9999 3.81543C33.7329 3.81543 39.1237 6.05018 43.1811 10.1076C46.9069 13.8333 49.0874 18.6896 49.4155 23.9632C47.5684 24.1487 46.1167 25.6939 46.1167 27.5883V37.9378C46.1167 39.8497 47.5937 41.4054 49.4645 41.5673V44.1827C49.4629 45.5989 48.8995 46.9565 47.8981 47.9579C46.8966 48.9592 45.5388 49.5223 44.1226 49.5237H40.1667C39.9001 48.7461 39.3965 48.0716 38.7269 47.5948C38.0573 47.1181 37.2551 46.863 36.4331 46.8654H32.3556C31.7702 46.8654 31.2085 46.9897 30.694 47.2294C30.0051 47.5477 29.4215 48.0564 29.0122 48.6954C28.6029 49.3345 28.385 50.0773 28.384 50.8362C28.384 51.8984 28.7979 52.8959 29.5477 53.6423C29.9153 54.0128 30.3528 54.3066 30.8348 54.5067C31.3168 54.7068 31.8337 54.8091 32.3556 54.8078H36.4331C38.1236 54.8078 39.6137 53.7149 40.1694 52.1487H44.1226C48.516 52.1487 52.0895 48.5752 52.0895 44.1827V41.1001C53.0854 40.6538 53.9311 39.9293 54.525 39.0138C55.119 38.0982 55.4357 37.0306 55.4372 35.9393V29.5851C55.4372 27.2803 54.0495 25.2958 52.0676 24.4147ZM7.258 27.5883V37.9378C7.258 38.5092 6.79337 38.9747 6.22112 38.9747C5.41661 38.9738 4.64531 38.6537 4.07643 38.0849C3.50755 37.516 3.18755 36.7447 3.18663 35.9402V29.5859C3.18755 28.7814 3.50755 28.0101 4.07643 27.4412C4.64531 26.8724 5.41661 26.5524 6.22112 26.5514C6.79337 26.5514 7.258 27.0169 7.258 27.5883ZM37.75 51.1179C37.6848 51.4193 37.5186 51.6893 37.2789 51.8833C37.0393 52.0773 36.7406 52.1835 36.4322 52.1846H32.3547C31.996 52.1846 31.6591 52.0446 31.4019 51.7873C31.2767 51.663 31.1774 51.5151 31.1098 51.3521C31.0422 51.1891 31.0076 51.0144 31.0081 50.8379C31.009 50.4811 31.1512 50.1393 31.4036 49.8871C31.656 49.6348 31.998 49.4929 32.3547 49.4922H36.4322C36.791 49.4922 37.1279 49.6313 37.3842 49.8885C37.638 50.1414 37.778 50.4792 37.778 50.8379C37.7789 50.9342 37.7684 51.0304 37.75 51.1179ZM52.8122 35.9402C52.8113 36.7447 52.4913 37.516 51.9224 38.0849C51.3536 38.6537 50.5823 38.9738 49.7777 38.9747C49.5028 38.9744 49.2392 38.8651 49.0448 38.6707C48.8504 38.4763 48.7411 38.2127 48.7409 37.9378V27.5883C48.7409 27.0169 49.2055 26.5514 49.7777 26.5514C50.5823 26.5524 51.3536 26.8724 51.9224 27.4412C52.4913 28.0101 52.8113 28.7814 52.8122 29.5859V35.9402Z",
      fill: "#424242"
    }, null, -1),
    fe("path", {
      d: "M36.4987 36.3926C37.9732 36.391 39.3869 35.8045 40.4295 34.7619C41.4721 33.7193 42.0586 32.3056 42.0602 30.8311V19.499C42.0602 18.0167 41.481 16.6202 40.4292 15.5685C39.3775 14.5167 37.9818 13.9375 36.4987 13.9375H19.501C18.0265 13.9391 16.6128 14.5256 15.5702 15.5682C14.5275 16.6108 13.9411 18.0245 13.9395 19.499V30.8311C13.9411 32.3056 14.5275 33.7193 15.5702 34.7619C16.6128 35.8045 18.0265 36.391 19.501 36.3926H19.6051V39.3291C19.6033 39.6877 19.6725 40.0431 19.8086 40.3748C19.9447 40.7065 20.1451 41.0081 20.3981 41.2621C20.6512 41.5162 20.952 41.7177 21.2832 41.8551C21.6144 41.9924 21.9695 42.063 22.3281 42.0626C22.6864 42.0633 23.0412 41.9919 23.3713 41.8525C23.7015 41.7132 24.0002 41.5088 24.2496 41.2515L29.1347 36.3926H36.4987ZM27.6691 34.1491L22.3823 39.407C22.3587 39.4315 22.3412 39.4499 22.2913 39.428C22.231 39.4035 22.231 39.3641 22.231 39.3291V35.0801C22.231 34.732 22.0927 34.3982 21.8465 34.152C21.6004 33.9059 21.2665 33.7676 20.9185 33.7676H19.5018C18.7233 33.7667 17.9769 33.457 17.4264 32.9065C16.8759 32.356 16.5663 31.6096 16.5653 30.8311V19.499C16.5663 18.7205 16.8759 17.9741 17.4264 17.4236C17.9769 16.8731 18.7233 16.5634 19.5018 16.5625H36.4996C37.2818 16.5625 38.0177 16.8687 38.5742 17.4244C39.1307 17.9809 39.4361 18.7176 39.4361 19.499V30.8311C39.4352 31.6096 39.1255 32.356 38.575 32.9065C38.0245 33.457 37.2781 33.7667 36.4996 33.7676H28.5948C28.2475 33.7676 27.915 33.905 27.6691 34.1491Z",
      fill: "#424242"
    }, null, -1),
    fe("path", {
      d: "M21.6239 23.4385C20.5564 23.4385 19.6875 24.3082 19.6875 25.3749C19.6875 26.4415 20.5572 27.3112 21.6239 27.3112C22.6922 27.3112 23.562 26.4415 23.562 25.3749C23.562 24.3082 22.6931 23.4385 21.6239 23.4385ZM27.9991 23.4385C26.9316 23.4385 26.0627 24.3082 26.0627 25.3749C26.0627 26.4415 26.9325 27.3112 27.9991 27.3112C29.0684 27.3112 29.9373 26.4415 29.9373 25.3749C29.9373 24.3082 29.0684 23.4385 27.9991 23.4385ZM34.3744 23.4385C33.3069 23.4385 32.438 24.3082 32.438 25.3749C32.438 26.4415 33.3077 27.3112 34.3744 27.3112C35.4427 27.3112 36.3125 26.4415 36.3125 25.3749C36.3125 24.3082 35.4427 23.4385 34.3744 23.4385Z",
      fill: "#424242"
    }, null, -1)
  ]));
}
const q1 = /* @__PURE__ */ sn(B1, [["render", j1]]), V1 = { class: "!rvx-font-normal" }, z1 = /* @__PURE__ */ se({
  __name: "UIHelpBanner",
  setup(e) {
    const { rvxLocal: t, __t: n } = x1();
    return (r, o) => (J(), ge(we, { class: "rvx-gradient-bg rvx-flex rvx-gap-space12 rvx-rounded-md rvx-py-space16 rvx-px-space24" }, {
      default: ee(() => [
        $(we, null, {
          default: ee(() => [
            $(q1)
          ]),
          _: 1
        }),
        $(we, null, {
          default: ee(() => [
            $(Ct, {
              as: "h4",
              class: "rvx-text-[18px] rvx-font-nunito rvx-font-semibold rvx-leading-[29px] rvx-text-neutral-800"
            }, {
              default: ee(() => {
                var a;
                return [
                  je(Re(X(n)((a = X(t)) == null ? void 0 : a.rvx_need_help)), 1)
                ];
              }),
              _: 1
            }),
            $(Ct, { class: "!rvx-text-[14px] rvx-font-normal rvx-leading-[22px] !rvx-mb-space16" }, {
              default: ee(() => {
                var a;
                return [
                  je(Re(X(n)((a = X(t)) == null ? void 0 : a.rvx_stuck_with_something_get_help_from_live_chat_or_support_ticket)), 1)
                ];
              }),
              _: 1
            }),
            qe(r.$slots, "default", {}, () => [
              $(we, { class: "rvx-flex rvx-items-center rvx-gap-space16" }, {
                default: ee(() => [
                  $(Qi, {
                    "have-icon": !0,
                    class: "!rvx-gap-[6px]",
                    "icon-name": "contact_support",
                    "icon-position": "after",
                    iconClass: "!rvx-text-[20px]",
                    variant: "gray",
                    onClick: o[0] || (o[0] = (a) => X(qy)())
                  }, {
                    default: ee(() => o[2] || (o[2] = [
                      je("Help Center ")
                    ])),
                    _: 1
                  }),
                  $(Ct, {
                    class: "rvx-flex rvx-gap-space12 !rvx-text-[14px] !rvx-font-semibold rvx-text-neutral-800 rvx-cursor-pointer",
                    onClick: o[1] || (o[1] = (a) => X(jy)({ haveCustomLink: !0, customLink: "https://reviewx.io/docs" }))
                  }, {
                    default: ee(() => {
                      var a, i;
                      return [
                        fe("span", V1, Re(X(n)((a = X(t)) == null ? void 0 : a.rvx_or)), 1),
                        je(" " + Re(X(n)((i = X(t)) == null ? void 0 : i.rvx_read_documentation)) + " ", 1),
                        $(Et, { "icon-name": "open_in_new" })
                      ];
                    }),
                    _: 1
                  })
                ]),
                _: 1
              })
            ], !0)
          ]),
          _: 3
        })
      ]),
      _: 3
    }));
  }
}), jI = /* @__PURE__ */ sn(z1, [["__scopeId", "data-v-f82c29f4"]]), U1 = {}, H1 = {
  width: "25",
  height: "25",
  viewBox: "0 0 25 25",
  fill: "none",
  xmlns: "http://www.w3.org/2000/svg",
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
};
function Y1(e, t) {
  return J(), ve("svg", H1, t[0] || (t[0] = [
    fe("rect", {
      width: "24.0224",
      height: "24.0224",
      fill: "url(#pattern0)"
    }, null, -1),
    fe("defs", null, [
      fe("pattern", {
        id: "pattern0",
        patternContentUnits: "objectBoundingBox",
        width: "1",
        height: "1"
      }, [
        fe("use", {
          "xlink:href": "#image0_239_7496",
          transform: "scale(0.002)"
        })
      ]),
      fe("image", {
        id: "image0_239_7496",
        width: "500",
        height: "500",
        "xlink:href": "data:image/png;base64, "
      })
    ], -1)
  ]));
}
const qI = /* @__PURE__ */ sn(U1, [["render", Y1]]), Q1 = {}, W1 = {
  width: "107",
  height: "25",
  viewBox: "0 0 107 25",
  fill: "none",
  xmlns: "http://www.w3.org/2000/svg",
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
};
function G1(e, t) {
  return J(), ve("svg", W1, t[0] || (t[0] = [
    bd('<rect width="24.0224" height="24.0224" fill="url(#pattern0)"></rect><path d="M29.0674 18.9057C28.9347 18.9057 28.8271 18.7982 28.8271 18.6655V5.30906C28.8271 5.17639 28.9347 5.06884 29.0674 5.06884H34.5445C34.679 5.06884 34.852 5.07524 35.0634 5.08805C35.2748 5.09446 35.4701 5.11368 35.6495 5.14571C36.4502 5.26742 37.1101 5.53327 37.6289 5.94325C38.1542 6.35323 38.5418 6.87212 38.7916 7.4999C39.0479 8.12128 39.176 8.81312 39.176 9.57543C39.176 10.7029 38.8909 11.6734 38.3208 12.4869C37.7507 13.2941 36.8762 13.7938 35.6975 13.9859L34.7078 14.0724H31.3831C31.2505 14.0724 31.1429 14.18 31.1429 14.3126V18.6655C31.1429 18.7982 31.0354 18.9057 30.9027 18.9057H29.0674ZM36.9243 18.9057C36.8322 18.9057 36.7483 18.8531 36.7081 18.7703L34.1775 13.5487C34.1098 13.409 34.1904 13.2428 34.342 13.2094L36.2143 12.7967C36.3226 12.7728 36.4333 12.8263 36.4819 12.926L39.2286 18.5602C39.3064 18.7198 39.1902 18.9057 39.0126 18.9057H36.9243ZM31.1429 11.6702C31.1429 11.8029 31.2505 11.9104 31.3831 11.9104H34.4484C34.5765 11.9104 34.7206 11.904 34.8808 11.8912C35.0409 11.8784 35.1883 11.8528 35.3228 11.8143C35.7072 11.7182 36.0082 11.5485 36.226 11.305C36.4502 11.0616 36.6072 10.7862 36.6969 10.4787C36.793 10.1712 36.841 9.87011 36.841 9.57543C36.841 9.28076 36.793 8.97968 36.6969 8.67219C36.6072 8.3583 36.4502 8.07964 36.226 7.83621C36.0082 7.59279 35.7072 7.42303 35.3228 7.32694C35.1883 7.2885 35.0409 7.26608 34.8808 7.25968C34.7206 7.24687 34.5765 7.24046 34.4484 7.24046H31.3831C31.2505 7.24046 31.1429 7.34801 31.1429 7.48068V11.6702Z" fill="#212121"></path><path d="M46.232 19.194C45.1814 19.194 44.2589 18.9666 43.4646 18.5118C42.6702 18.0569 42.0489 17.4259 41.6004 16.6188C41.1584 15.8116 40.9374 14.8828 40.9374 13.8322C40.9374 12.6983 41.1552 11.715 41.5908 10.8823C42.0264 10.0431 42.6318 9.39286 43.4069 8.93163C44.182 8.4704 45.0789 8.23979 46.0974 8.23979C47.1736 8.23979 48.0865 8.49283 48.836 8.9989C49.5919 9.49856 50.1524 10.2064 50.5175 11.1225C50.8607 11.9833 51.003 12.9883 50.9445 14.1376C50.9381 14.2634 50.8332 14.3607 50.7072 14.3607H48.8744C48.7417 14.3607 48.6342 14.2531 48.6342 14.1205V13.5151C48.6278 12.3877 48.4292 11.5645 48.0384 11.0456C47.6477 10.5267 47.0327 10.2673 46.1935 10.2673C45.2454 10.2673 44.5408 10.562 44.0796 11.1513C43.6183 11.7342 43.3877 12.5894 43.3877 13.7169C43.3877 14.7675 43.6183 15.581 44.0796 16.1576C44.5408 16.7341 45.2134 17.0224 46.0974 17.0224C46.6676 17.0224 47.1576 16.8975 47.5676 16.6476C47.9287 16.4254 48.2175 16.1189 48.4341 15.7281C48.492 15.6236 48.6134 15.5683 48.7277 15.6029L50.5593 16.1569C50.696 16.1983 50.7671 16.3495 50.7047 16.4781C50.3076 17.2969 49.7295 17.9428 48.9705 18.4157C48.1441 18.9346 47.2313 19.194 46.232 19.194ZM42.8977 14.3607C42.765 14.3607 42.6574 14.2531 42.6574 14.1205V12.8521C42.6574 12.7194 42.765 12.6119 42.8977 12.6119H49.5567C49.6893 12.6119 49.7969 12.7194 49.7969 12.8521V14.1205C49.7969 14.2531 49.6893 14.3607 49.5567 14.3607H42.8977Z" fill="#212121"></path><path d="M55.6736 18.9057C55.5725 18.9057 55.4822 18.8425 55.4478 18.7475L51.8554 8.85024C51.7986 8.6936 51.9146 8.52806 52.0812 8.52806H53.8834C53.9857 8.52806 54.0767 8.59283 54.1103 8.68945L56.4405 15.3974C56.5153 15.6128 56.8199 15.6126 56.8945 15.3972L59.216 8.68971C59.2494 8.59296 59.3406 8.52806 59.443 8.52806H61.2545C61.4212 8.52806 61.5372 8.6936 61.4803 8.85024L57.888 18.7475C57.8535 18.8425 57.7633 18.9057 57.6622 18.9057H55.6736Z" fill="#212121"></path><path d="M63.7542 6.95219C63.6215 6.95219 63.514 6.84464 63.514 6.71197V5.06884C63.514 4.93617 63.6215 4.82861 63.7542 4.82861H65.5895C65.7222 4.82861 65.8297 4.93617 65.8297 5.06884V6.71197C65.8297 6.84464 65.7222 6.95219 65.5895 6.95219H63.7542ZM63.7542 18.9057C63.6215 18.9057 63.514 18.7982 63.514 18.6655V8.76828C63.514 8.63561 63.6215 8.52806 63.7542 8.52806H65.5895C65.7222 8.52806 65.8297 8.63561 65.8297 8.76828V18.6655C65.8297 18.7982 65.7222 18.9057 65.5895 18.9057H63.7542Z" fill="#212121"></path><path d="M73.426 19.194C72.3755 19.194 71.453 18.9666 70.6587 18.5118C69.8643 18.0569 69.2429 17.4259 68.7945 16.6188C68.3525 15.8116 68.1315 14.8828 68.1315 13.8322C68.1315 12.6983 68.3493 11.715 68.7849 10.8823C69.2205 10.0431 69.8259 9.39286 70.601 8.93163C71.3761 8.4704 72.273 8.23979 73.2915 8.23979C74.3677 8.23979 75.2806 8.49283 76.0301 8.9989C76.786 9.49856 77.3465 10.2064 77.7116 11.1225C78.0547 11.9833 78.197 12.9883 78.1386 14.1376C78.1322 14.2634 78.0273 14.3607 77.9013 14.3607H76.0685C75.9358 14.3607 75.8283 14.2531 75.8283 14.1205V13.5151C75.8219 12.3877 75.6233 11.5645 75.2325 11.0456C74.8418 10.5267 74.2268 10.2673 73.3876 10.2673C72.4395 10.2673 71.7349 10.562 71.2736 11.1513C70.8124 11.7342 70.5818 12.5894 70.5818 13.7169C70.5818 14.7675 70.8124 15.581 71.2736 16.1576C71.7349 16.7341 72.4075 17.0224 73.2915 17.0224C73.8616 17.0224 74.3517 16.8975 74.7617 16.6476C75.1228 16.4254 75.4116 16.1189 75.6282 15.7281C75.6861 15.6236 75.8075 15.5683 75.9218 15.6029L77.7533 16.1569C77.8901 16.1983 77.9612 16.3495 77.8988 16.4781C77.5017 17.2969 76.9236 17.9428 76.1646 18.4157C75.3382 18.9346 74.4254 19.194 73.426 19.194ZM70.0917 14.3607C69.9591 14.3607 69.8515 14.2531 69.8515 14.1205V12.8521C69.8515 12.7194 69.9591 12.6119 70.0917 12.6119H76.7507C76.8834 12.6119 76.991 12.7194 76.991 12.8521V14.1205C76.991 14.2531 76.8834 14.3607 76.7507 14.3607H70.0917Z" fill="#212121"></path><path d="M82.2814 18.9057C82.1757 18.9057 82.0825 18.8367 82.0516 18.7356L79.028 8.82191C78.9807 8.66674 79.0976 8.51024 79.2599 8.51161L81.0239 8.52656C81.1288 8.52745 81.2211 8.59639 81.2517 8.69681L82.9996 14.4376C83.0686 14.6641 83.389 14.6648 83.4589 14.4385L85.2318 8.6974C85.2629 8.59672 85.3559 8.52806 85.4613 8.52806H87.0572C87.1627 8.52806 87.2558 8.59687 87.2868 8.69771L89.0512 14.4382C89.1208 14.6646 89.4413 14.6644 89.5106 14.4379L91.2665 8.69801C91.2974 8.59702 91.3906 8.52806 91.4962 8.52806H93.2616C93.423 8.52806 93.5385 8.6841 93.4914 8.83848L90.4672 18.7357C90.4363 18.8367 90.3431 18.9057 90.2375 18.9057H88.7825C88.6788 18.9057 88.5868 18.8392 88.5544 18.7407L86.4832 12.4596C86.4106 12.2394 86.0991 12.2396 86.0268 12.4598L83.9643 18.7405C83.9319 18.8391 83.8398 18.9057 83.736 18.9057H82.2814Z" fill="#212121"></path><path d="M95.2373 18.6655C95.0452 18.6655 94.9308 18.4511 95.0378 18.2915L99.3869 11.8035C99.441 11.7228 99.4412 11.6175 99.3873 11.5366L95.1702 5.20196C95.0639 5.04231 95.1784 4.82861 95.3701 4.82861H97.6256C97.7071 4.82861 97.783 4.86993 97.8273 4.93835L100.705 9.38715C100.8 9.53383 101.015 9.53338 101.109 9.3863L103.96 4.9392C104.004 4.87029 104.08 4.82861 104.162 4.82861H106.436C106.628 4.82861 106.743 5.04231 106.636 5.20196L102.419 11.5369C102.365 11.6176 102.365 11.7227 102.419 11.8034L106.751 18.2919C106.857 18.4515 106.743 18.6655 106.551 18.6655H104.296C104.215 18.6655 104.139 18.6243 104.094 18.5559L101.109 13.9506C101.015 13.8046 100.801 13.8044 100.706 13.9503L97.712 18.5562C97.6677 18.6244 97.5919 18.6655 97.5106 18.6655H95.2373Z" fill="#0041DD"></path><defs><pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1"><use xlink:href="#image0_239_7495" transform="scale(0.002)"></use></pattern><image id="image0_239_7495" width="500" height="500" xlink:href="data:image/png;base64, "></image></defs>', 9)
  ]));
}
const VI = /* @__PURE__ */ sn(Q1, [["render", G1]]), K1 = ["type", "disabled"], X1 = /* @__PURE__ */ se({
  __name: "UIButton",
  props: {
    haveIcon: { type: Boolean },
    iconPosition: { default: "before" },
    iconClass: {},
    variant: { default: "primary" },
    loader: { type: Boolean },
    loaderPosition: { default: "before" },
    type: { default: "button" },
    size: {},
    disabled: { type: Boolean, default: !1 },
    iconName: { default: "menu" },
    iconVariant: {},
    ringColor: {}
  },
  setup(e) {
    return (t, n) => (J(), ve("button", {
      class: xe(["rvx-rounded-lg rvx-py-[9px] rvx-px-space16 rvx-leading-[22px] rvx-text-white rvx-cursor-pointer rvx-font-nunito rvx-text-normal rvx-border-none disabled:!rvx-cursor-not-allowed disabled:rvx-bg-neutral-400 rvx-font-semibold", {
        "rvx-flex rvx-justify-center rvx-items-center rvx-gap-space8": t.haveIcon || t.loader,
        "rvx-bg-primary hover:rvx-bg-primary-80": t.variant === "primary",
        "rvx-bg-danger hover:rvx-bg-danger-700": t.variant === "danger"
      }]),
      type: t.type,
      disabled: t.disabled
    }, [
      t.haveIcon && t.iconPosition === "before" ? (J(), ge(Et, {
        key: 0,
        "icon-name": t.iconName,
        class: xe(t.iconClass)
      }, null, 8, ["icon-name", "class"])) : Ie("", !0),
      t.loader && t.loaderPosition === "before" ? (J(), ge(uo, {
        key: 1,
        class: "rvx-self-start rvx-mr-space16",
        size: "sm",
        "ring-color": t.ringColor ? t.ringColor : "white"
      }, null, 8, ["ring-color"])) : Ie("", !0),
      qe(t.$slots, "default"),
      t.haveIcon && t.iconPosition === "after" ? (J(), ge(Et, {
        key: 2,
        "icon-name": t.iconName,
        class: xe(t.iconClass)
      }, null, 8, ["icon-name", "class"])) : Ie("", !0),
      t.loader && t.loaderPosition === "after" ? (J(), ge(uo, {
        key: 3,
        class: "rvx-self-start rvx-mr-space16",
        size: "sm",
        "ring-color": t.ringColor ? t.ringColor : "white"
      }, null, 8, ["ring-color"])) : Ie("", !0)
    ], 10, K1));
  }
}), Z1 = /* @__PURE__ */ se({
  __name: "UIColorPicker",
  props: {
    modelValue: {},
    modelModifiers: {}
  },
  emits: ["update:modelValue"],
  setup(e) {
    const t = Wt(e, "modelValue");
    return (n, r) => bn((J(), ve("input", {
      "onUpdate:modelValue": r[0] || (r[0] = (o) => t.value = o),
      class: "rvx-color-picker",
      id: "colorPicker",
      type: "color",
      name: "test"
    }, null, 512)), [
      [Ri, t.value]
    ]);
  }
}), J1 = /* @__PURE__ */ sn(Z1, [["__scopeId", "data-v-d5e50341"]]), zI = /* @__PURE__ */ se({
  __name: "UIColorPickerGroup",
  props: {
    modelValue: {},
    modelModifiers: {}
  },
  emits: ["update:modelValue"],
  setup(e) {
    const t = Wt(e, "modelValue");
    return (n, r) => (J(), ge(we, { class: "rvx-color-picker rvx-bg-white rvx-border rvx-border-neutral-200 rvx-border-solid rvx-rounded-lg rvx-py-[7px] rvx-px-[11px] rvx-font-normal rvx-relative" }, {
      default: ee(() => [
        $(Ct, { class: "rvx-leading-[26px]" }, {
          default: ee(() => [
            je(Re(t.value), 1)
          ]),
          _: 1
        }),
        $(J1, {
          modelValue: t.value,
          "onUpdate:modelValue": r[0] || (r[0] = (o) => t.value = o),
          class: "rvx-absolute rvx-top-0 rvx-right-0"
        }, null, 8, ["modelValue"])
      ]),
      _: 1
    }));
  }
});
function $r(e, t, n) {
  let r = n.initialDeps ?? [], o;
  return () => {
    var a, i, l, s;
    let u;
    n.key && ((a = n.debug) != null && a.call(n)) && (u = Date.now());
    const c = e();
    if (!(c.length !== r.length || c.some((v, h) => r[h] !== v)))
      return o;
    r = c;
    let f;
    if (n.key && ((i = n.debug) != null && i.call(n)) && (f = Date.now()), o = t(...c), n.key && ((l = n.debug) != null && l.call(n))) {
      const v = Math.round((Date.now() - u) * 100) / 100, h = Math.round((Date.now() - f) * 100) / 100, m = h / 16, p = (g, y) => {
        for (g = String(g); g.length < y; )
          g = " " + g;
        return g;
      };
      console.info(
        `%c⏱ ${p(h, 5)} /${p(v, 5)} ms`,
        `
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(
          0,
          Math.min(120 - 120 * m, 120)
        )}deg 100% 31%);`,
        n == null ? void 0 : n.key
      );
    }
    return (s = n == null ? void 0 : n.onChange) == null || s.call(n, o), o;
  };
}
function Xl(e, t) {
  if (e === void 0)
    throw new Error("Unexpected undefined");
  return e;
}
const _1 = (e, t) => Math.abs(e - t) < 1, $1 = (e, t, n) => {
  let r;
  return function(...o) {
    e.clearTimeout(r), r = e.setTimeout(() => t.apply(this, o), n);
  };
}, e0 = (e) => e, t0 = (e) => {
  const t = Math.max(e.startIndex - e.overscan, 0), n = Math.min(e.endIndex + e.overscan, e.count - 1), r = [];
  for (let o = t; o <= n; o++)
    r.push(o);
  return r;
}, n0 = (e, t) => {
  const n = e.scrollElement;
  if (!n)
    return;
  const r = e.targetWindow;
  if (!r)
    return;
  const o = (i) => {
    const { width: l, height: s } = i;
    t({ width: Math.round(l), height: Math.round(s) });
  };
  if (o(n.getBoundingClientRect()), !r.ResizeObserver)
    return () => {
    };
  const a = new r.ResizeObserver((i) => {
    const l = i[0];
    if (l != null && l.borderBoxSize) {
      const s = l.borderBoxSize[0];
      if (s) {
        o({ width: s.inlineSize, height: s.blockSize });
        return;
      }
    }
    o(n.getBoundingClientRect());
  });
  return a.observe(n, { box: "border-box" }), () => {
    a.unobserve(n);
  };
}, Pc = {
  passive: !0
}, r0 = typeof window > "u" ? !0 : "onscrollend" in window, o0 = (e, t) => {
  const n = e.scrollElement;
  if (!n)
    return;
  const r = e.targetWindow;
  if (!r)
    return;
  let o = 0;
  const a = r0 ? () => {
  } : $1(
    r,
    () => {
      t(o, !1);
    },
    e.options.isScrollingResetDelay
  ), i = (u) => () => {
    const { horizontal: c, isRtl: d } = e.options;
    o = c ? n.scrollLeft * (d && -1 || 1) : n.scrollTop, a(), t(o, u);
  }, l = i(!0), s = i(!1);
  return s(), n.addEventListener("scroll", l, Pc), n.addEventListener("scrollend", s, Pc), () => {
    n.removeEventListener("scroll", l), n.removeEventListener("scrollend", s);
  };
}, a0 = (e, t, n) => {
  if (t != null && t.borderBoxSize) {
    const r = t.borderBoxSize[0];
    if (r)
      return Math.round(
        r[n.options.horizontal ? "inlineSize" : "blockSize"]
      );
  }
  return Math.round(
    e.getBoundingClientRect()[n.options.horizontal ? "width" : "height"]
  );
}, i0 = (e, {
  adjustments: t = 0,
  behavior: n
}, r) => {
  var o, a;
  const i = e + t;
  (a = (o = r.scrollElement) == null ? void 0 : o.scrollTo) == null || a.call(o, {
    [r.options.horizontal ? "left" : "top"]: i,
    behavior: n
  });
};
class l0 {
  constructor(t) {
    this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollToIndexTimeoutId = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
      let n = null;
      const r = () => n || (!this.targetWindow || !this.targetWindow.ResizeObserver ? null : n = new this.targetWindow.ResizeObserver((o) => {
        o.forEach((a) => {
          this._measureElement(a.target, a);
        });
      }));
      return {
        disconnect: () => {
          var o;
          (o = r()) == null || o.disconnect(), n = null;
        },
        observe: (o) => {
          var a;
          return (a = r()) == null ? void 0 : a.observe(o, { box: "border-box" });
        },
        unobserve: (o) => {
          var a;
          return (a = r()) == null ? void 0 : a.unobserve(o);
        }
      };
    })(), this.range = null, this.setOptions = (n) => {
      Object.entries(n).forEach(([r, o]) => {
        typeof o > "u" && delete n[r];
      }), this.options = {
        debug: !1,
        initialOffset: 0,
        overscan: 1,
        paddingStart: 0,
        paddingEnd: 0,
        scrollPaddingStart: 0,
        scrollPaddingEnd: 0,
        horizontal: !1,
        getItemKey: e0,
        rangeExtractor: t0,
        onChange: () => {
        },
        measureElement: a0,
        initialRect: { width: 0, height: 0 },
        scrollMargin: 0,
        gap: 0,
        indexAttribute: "data-index",
        initialMeasurementsCache: [],
        lanes: 1,
        isScrollingResetDelay: 150,
        enabled: !0,
        isRtl: !1,
        ...n
      };
    }, this.notify = (n) => {
      var r, o;
      (o = (r = this.options).onChange) == null || o.call(r, this, n);
    }, this.maybeNotify = $r(
      () => (this.calculateRange(), [
        this.isScrolling,
        this.range ? this.range.startIndex : null,
        this.range ? this.range.endIndex : null
      ]),
      (n) => {
        this.notify(n);
      },
      {
        key: process.env.NODE_ENV !== "production" && "maybeNotify",
        debug: () => this.options.debug,
        initialDeps: [
          this.isScrolling,
          this.range ? this.range.startIndex : null,
          this.range ? this.range.endIndex : null
        ]
      }
    ), this.cleanup = () => {
      this.unsubs.filter(Boolean).forEach((n) => n()), this.unsubs = [], this.observer.disconnect(), this.scrollElement = null, this.targetWindow = null;
    }, this._didMount = () => () => {
      this.cleanup();
    }, this._willUpdate = () => {
      var n;
      const r = this.options.enabled ? this.options.getScrollElement() : null;
      if (this.scrollElement !== r) {
        if (this.cleanup(), !r) {
          this.maybeNotify();
          return;
        }
        this.scrollElement = r, this.scrollElement && "ownerDocument" in this.scrollElement ? this.targetWindow = this.scrollElement.ownerDocument.defaultView : this.targetWindow = ((n = this.scrollElement) == null ? void 0 : n.window) ?? null, this.elementsCache.forEach((o) => {
          this.observer.observe(o);
        }), this._scrollToOffset(this.getScrollOffset(), {
          adjustments: void 0,
          behavior: void 0
        }), this.unsubs.push(
          this.options.observeElementRect(this, (o) => {
            this.scrollRect = o, this.maybeNotify();
          })
        ), this.unsubs.push(
          this.options.observeElementOffset(this, (o, a) => {
            this.scrollAdjustments = 0, this.scrollDirection = a ? this.getScrollOffset() < o ? "forward" : "backward" : null, this.scrollOffset = o, this.isScrolling = a, this.maybeNotify();
          })
        );
      }
    }, this.getSize = () => this.options.enabled ? (this.scrollRect = this.scrollRect ?? this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0), this.getScrollOffset = () => this.options.enabled ? (this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset == "function" ? this.options.initialOffset() : this.options.initialOffset), this.scrollOffset) : (this.scrollOffset = null, 0), this.getFurthestMeasurement = (n, r) => {
      const o = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map();
      for (let i = r - 1; i >= 0; i--) {
        const l = n[i];
        if (o.has(l.lane))
          continue;
        const s = a.get(
          l.lane
        );
        if (s == null || l.end > s.end ? a.set(l.lane, l) : l.end < s.end && o.set(l.lane, !0), o.size === this.options.lanes)
          break;
      }
      return a.size === this.options.lanes ? Array.from(a.values()).sort((i, l) => i.end === l.end ? i.index - l.index : i.end - l.end)[0] : void 0;
    }, this.getMeasurementOptions = $r(
      () => [
        this.options.count,
        this.options.paddingStart,
        this.options.scrollMargin,
        this.options.getItemKey,
        this.options.enabled
      ],
      (n, r, o, a, i) => (this.pendingMeasuredCacheIndexes = [], {
        count: n,
        paddingStart: r,
        scrollMargin: o,
        getItemKey: a,
        enabled: i
      }),
      {
        key: !1
      }
    ), this.getMeasurements = $r(
      () => [this.getMeasurementOptions(), this.itemSizeCache],
      ({ count: n, paddingStart: r, scrollMargin: o, getItemKey: a, enabled: i }, l) => {
        if (!i)
          return this.measurementsCache = [], this.itemSizeCache.clear(), [];
        this.measurementsCache.length === 0 && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((c) => {
          this.itemSizeCache.set(c.key, c.size);
        }));
        const s = this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
        this.pendingMeasuredCacheIndexes = [];
        const u = this.measurementsCache.slice(0, s);
        for (let c = s; c < n; c++) {
          const d = a(c), f = this.options.lanes === 1 ? u[c - 1] : this.getFurthestMeasurement(u, c), v = f ? f.end + this.options.gap : r + o, h = l.get(d), m = typeof h == "number" ? h : this.options.estimateSize(c), p = v + m, g = f ? f.lane : c % this.options.lanes;
          u[c] = {
            index: c,
            start: v,
            size: m,
            end: p,
            key: d,
            lane: g
          };
        }
        return this.measurementsCache = u, u;
      },
      {
        key: process.env.NODE_ENV !== "production" && "getMeasurements",
        debug: () => this.options.debug
      }
    ), this.calculateRange = $r(
      () => [this.getMeasurements(), this.getSize(), this.getScrollOffset()],
      (n, r, o) => this.range = n.length > 0 && r > 0 ? s0({
        measurements: n,
        outerSize: r,
        scrollOffset: o
      }) : null,
      {
        key: process.env.NODE_ENV !== "production" && "calculateRange",
        debug: () => this.options.debug
      }
    ), this.getIndexes = $r(
      () => [
        this.options.rangeExtractor,
        this.calculateRange(),
        this.options.overscan,
        this.options.count
      ],
      (n, r, o, a) => r === null ? [] : n({
        startIndex: r.startIndex,
        endIndex: r.endIndex,
        overscan: o,
        count: a
      }),
      {
        key: process.env.NODE_ENV !== "production" && "getIndexes",
        debug: () => this.options.debug
      }
    ), this.indexFromElement = (n) => {
      const r = this.options.indexAttribute, o = n.getAttribute(r);
      return o ? parseInt(o, 10) : (console.warn(
        `Missing attribute name '${r}={index}' on measured element.`
      ), -1);
    }, this._measureElement = (n, r) => {
      const o = this.indexFromElement(n), a = this.measurementsCache[o];
      if (!a)
        return;
      const i = a.key, l = this.elementsCache.get(i);
      l !== n && (l && this.observer.unobserve(l), this.observer.observe(n), this.elementsCache.set(i, n)), n.isConnected && this.resizeItem(o, this.options.measureElement(n, r, this));
    }, this.resizeItem = (n, r) => {
      const o = this.measurementsCache[n];
      if (!o)
        return;
      const a = this.itemSizeCache.get(o.key) ?? o.size, i = r - a;
      i !== 0 && ((this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(o, i, this) : o.start < this.getScrollOffset() + this.scrollAdjustments) && (process.env.NODE_ENV !== "production" && this.options.debug && console.info("correction", i), this._scrollToOffset(this.getScrollOffset(), {
        adjustments: this.scrollAdjustments += i,
        behavior: void 0
      })), this.pendingMeasuredCacheIndexes.push(o.index), this.itemSizeCache = new Map(this.itemSizeCache.set(o.key, r)), this.notify(!1));
    }, this.measureElement = (n) => {
      if (!n) {
        this.elementsCache.forEach((r, o) => {
          r.isConnected || (this.observer.unobserve(r), this.elementsCache.delete(o));
        });
        return;
      }
      this._measureElement(n, void 0);
    }, this.getVirtualItems = $r(
      () => [this.getIndexes(), this.getMeasurements()],
      (n, r) => {
        const o = [];
        for (let a = 0, i = n.length; a < i; a++) {
          const l = n[a], s = r[l];
          o.push(s);
        }
        return o;
      },
      {
        key: process.env.NODE_ENV !== "production" && "getVirtualItems",
        debug: () => this.options.debug
      }
    ), this.getVirtualItemForOffset = (n) => {
      const r = this.getMeasurements();
      if (r.length !== 0)
        return Xl(
          r[dv(
            0,
            r.length - 1,
            (o) => Xl(r[o]).start,
            n
          )]
        );
    }, this.getOffsetForAlignment = (n, r) => {
      const o = this.getSize(), a = this.getScrollOffset();
      r === "auto" && (n <= a ? r = "start" : n >= a + o ? r = "end" : r = "start"), r === "start" ? n = n : r === "end" ? n = n - o : r === "center" && (n = n - o / 2);
      const i = this.options.horizontal ? "scrollWidth" : "scrollHeight", s = (this.scrollElement ? "document" in this.scrollElement ? this.scrollElement.document.documentElement[i] : this.scrollElement[i] : 0) - o;
      return Math.max(Math.min(s, n), 0);
    }, this.getOffsetForIndex = (n, r = "auto") => {
      n = Math.max(0, Math.min(n, this.options.count - 1));
      const o = this.measurementsCache[n];
      if (!o)
        return;
      const a = this.getSize(), i = this.getScrollOffset();
      if (r === "auto")
        if (o.end >= i + a - this.options.scrollPaddingEnd)
          r = "end";
        else if (o.start <= i + this.options.scrollPaddingStart)
          r = "start";
        else
          return [i, r];
      const l = r === "end" ? o.end + this.options.scrollPaddingEnd : o.start - this.options.scrollPaddingStart;
      return [this.getOffsetForAlignment(l, r), r];
    }, this.isDynamicMode = () => this.elementsCache.size > 0, this.cancelScrollToIndex = () => {
      this.scrollToIndexTimeoutId !== null && this.targetWindow && (this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId), this.scrollToIndexTimeoutId = null);
    }, this.scrollToOffset = (n, { align: r = "start", behavior: o } = {}) => {
      this.cancelScrollToIndex(), o === "smooth" && this.isDynamicMode() && console.warn(
        "The `smooth` scroll behavior is not fully supported with dynamic size."
      ), this._scrollToOffset(this.getOffsetForAlignment(n, r), {
        adjustments: void 0,
        behavior: o
      });
    }, this.scrollToIndex = (n, { align: r = "auto", behavior: o } = {}) => {
      n = Math.max(0, Math.min(n, this.options.count - 1)), this.cancelScrollToIndex(), o === "smooth" && this.isDynamicMode() && console.warn(
        "The `smooth` scroll behavior is not fully supported with dynamic size."
      );
      const a = this.getOffsetForIndex(n, r);
      if (!a)
        return;
      const [i, l] = a;
      this._scrollToOffset(i, { adjustments: void 0, behavior: o }), o !== "smooth" && this.isDynamicMode() && this.targetWindow && (this.scrollToIndexTimeoutId = this.targetWindow.setTimeout(() => {
        if (this.scrollToIndexTimeoutId = null, this.elementsCache.has(
          this.options.getItemKey(n)
        )) {
          const [u] = Xl(
            this.getOffsetForIndex(n, l)
          );
          _1(u, this.getScrollOffset()) || this.scrollToIndex(n, { align: l, behavior: o });
        } else
          this.scrollToIndex(n, { align: l, behavior: o });
      }));
    }, this.scrollBy = (n, { behavior: r } = {}) => {
      this.cancelScrollToIndex(), r === "smooth" && this.isDynamicMode() && console.warn(
        "The `smooth` scroll behavior is not fully supported with dynamic size."
      ), this._scrollToOffset(this.getScrollOffset() + n, {
        adjustments: void 0,
        behavior: r
      });
    }, this.getTotalSize = () => {
      var n;
      const r = this.getMeasurements();
      let o;
      return r.length === 0 ? o = this.options.paddingStart : o = this.options.lanes === 1 ? ((n = r[r.length - 1]) == null ? void 0 : n.end) ?? 0 : Math.max(
        ...r.slice(-this.options.lanes).map((a) => a.end)
      ), Math.max(
        o - this.options.scrollMargin + this.options.paddingEnd,
        0
      );
    }, this._scrollToOffset = (n, {
      adjustments: r,
      behavior: o
    }) => {
      this.options.scrollToFn(n, { behavior: o, adjustments: r }, this);
    }, this.measure = () => {
      this.itemSizeCache = /* @__PURE__ */ new Map(), this.notify(!1);
    }, this.setOptions(t);
  }
}
const dv = (e, t, n, r) => {
  for (; e <= t; ) {
    const o = (e + t) / 2 | 0, a = n(o);
    if (a < r)
      e = o + 1;
    else if (a > r)
      t = o - 1;
    else
      return o;
  }
  return e > 0 ? e - 1 : 0;
};
function s0({
  measurements: e,
  outerSize: t,
  scrollOffset: n
}) {
  const r = e.length - 1, a = dv(0, r, (l) => e[l].start, n);
  let i = a;
  for (; i < r && e[i].end < n + t; )
    i++;
  return { startIndex: a, endIndex: i };
}
function u0(e) {
  const t = new l0(X(e)), n = Bi(t), r = t._didMount();
  return Ne(
    () => X(e).getScrollElement(),
    (o) => {
      o && t._willUpdate();
    },
    {
      immediate: !0
    }
  ), Ne(
    () => X(e),
    (o) => {
      t.setOptions({
        ...o,
        onChange: (a, i) => {
          var l;
          tc(n), (l = o.onChange) == null || l.call(o, a, i);
        }
      }), t._willUpdate(), tc(n);
    },
    {
      immediate: !0
    }
  ), wd(r), n;
}
function c0(e) {
  return u0(
    U(() => ({
      observeElementRect: n0,
      observeElementOffset: o0,
      scrollToFn: i0,
      ...X(e)
    }))
  );
}
function Wi(e, t, n) {
  let r = ne(n == null ? void 0 : n.value), o = U(() => e.value !== void 0);
  return [U(() => o.value ? e.value : r.value), function(a) {
    return o.value || (r.value = a), t == null ? void 0 : t(a);
  }];
}
function iu(e) {
  typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((t) => setTimeout(() => {
    throw t;
  }));
}
function br() {
  let e = [], t = { addEventListener(n, r, o, a) {
    return n.addEventListener(r, o, a), t.add(() => n.removeEventListener(r, o, a));
  }, requestAnimationFrame(...n) {
    let r = requestAnimationFrame(...n);
    t.add(() => cancelAnimationFrame(r));
  }, nextFrame(...n) {
    t.requestAnimationFrame(() => {
      t.requestAnimationFrame(...n);
    });
  }, setTimeout(...n) {
    let r = setTimeout(...n);
    t.add(() => clearTimeout(r));
  }, microTask(...n) {
    let r = { current: !0 };
    return iu(() => {
      r.current && n[0]();
    }), t.add(() => {
      r.current = !1;
    });
  }, style(n, r, o) {
    let a = n.style.getPropertyValue(r);
    return Object.assign(n.style, { [r]: o }), this.add(() => {
      Object.assign(n.style, { [r]: a });
    });
  }, group(n) {
    let r = br();
    return n(r), this.add(() => r.dispose());
  }, add(n) {
    return e.push(n), () => {
      let r = e.indexOf(n);
      if (r >= 0)
        for (let o of e.splice(r, 1))
          o();
    };
  }, dispose() {
    for (let n of e.splice(0))
      n();
  } };
  return t;
}
function f0() {
  let e = br();
  return ct(() => e.dispose()), e;
}
function d0() {
  let e = f0();
  return (t) => {
    e.dispose(), e.nextFrame(t);
  };
}
var Ic;
let v0 = Symbol("headlessui.useid"), h0 = 0;
const tt = (Ic = ec.useId) != null ? Ic : function() {
  return ec.inject(v0, () => `${++h0}`)();
};
function ae(e) {
  var t;
  if (e == null || e.value == null)
    return null;
  let n = (t = e.value.$el) != null ? t : e.value;
  return n instanceof Node ? n : null;
}
function Ze(e, t, ...n) {
  if (e in t) {
    let o = t[e];
    return typeof o == "function" ? o(...n) : o;
  }
  let r = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((o) => `"${o}"`).join(", ")}.`);
  throw Error.captureStackTrace && Error.captureStackTrace(r, Ze), r;
}
var p0 = Object.defineProperty, g0 = (e, t, n) => t in e ? p0(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Nc = (e, t, n) => (g0(e, typeof t != "symbol" ? t + "" : t, n), n);
let m0 = class {
  constructor() {
    Nc(this, "current", this.detect()), Nc(this, "currentId", 0);
  }
  set(t) {
    this.current !== t && (this.currentId = 0, this.current = t);
  }
  reset() {
    this.set(this.detect());
  }
  nextId() {
    return ++this.currentId;
  }
  get isServer() {
    return this.current === "server";
  }
  get isClient() {
    return this.current === "client";
  }
  detect() {
    return typeof window > "u" || typeof document > "u" ? "server" : "client";
  }
}, Aa = new m0();
function Vt(e) {
  if (Aa.isServer)
    return null;
  if (e instanceof Node)
    return e.ownerDocument;
  if (e != null && e.hasOwnProperty("value")) {
    let t = ae(e);
    if (t)
      return t.ownerDocument;
  }
  return document;
}
let As = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
var yt = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(yt || {}), Vr = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Vr || {}), y0 = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(y0 || {});
function Oa(e = document.body) {
  return e == null ? [] : Array.from(e.querySelectorAll(As)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
}
var Ca = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(Ca || {});
function Ea(e, t = 0) {
  var n;
  return e === ((n = Vt(e)) == null ? void 0 : n.body) ? !1 : Ze(t, { 0() {
    return e.matches(As);
  }, 1() {
    let r = e;
    for (; r !== null; ) {
      if (r.matches(As))
        return !0;
      r = r.parentElement;
    }
    return !1;
  } });
}
function vv(e) {
  let t = Vt(e);
  rt(() => {
    t && !Ea(t.activeElement, 0) && mr(e);
  });
}
var b0 = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(b0 || {});
typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
  e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
}, !0), document.addEventListener("click", (e) => {
  e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
}, !0));
function mr(e) {
  e == null || e.focus({ preventScroll: !0 });
}
let w0 = ["textarea", "input"].join(",");
function x0(e) {
  var t, n;
  return (n = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e, w0)) != null ? n : !1;
}
function Sa(e, t = (n) => n) {
  return e.slice().sort((n, r) => {
    let o = t(n), a = t(r);
    if (o === null || a === null)
      return 0;
    let i = o.compareDocumentPosition(a);
    return i & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : i & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
  });
}
function A0(e, t) {
  return _t(Oa(), t, { relativeTo: e });
}
function _t(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] } = {}) {
  var a;
  let i = (a = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e == null ? void 0 : e.ownerDocument) != null ? a : document, l = Array.isArray(e) ? n ? Sa(e) : e : Oa(e);
  o.length > 0 && l.length > 1 && (l = l.filter((h) => !o.includes(h))), r = r ?? i.activeElement;
  let s = (() => {
    if (t & 5)
      return 1;
    if (t & 10)
      return -1;
    throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
  })(), u = (() => {
    if (t & 1)
      return 0;
    if (t & 2)
      return Math.max(0, l.indexOf(r)) - 1;
    if (t & 4)
      return Math.max(0, l.indexOf(r)) + 1;
    if (t & 8)
      return l.length - 1;
    throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
  })(), c = t & 32 ? { preventScroll: !0 } : {}, d = 0, f = l.length, v;
  do {
    if (d >= f || d + f <= 0)
      return 0;
    let h = u + d;
    if (t & 16)
      h = (h + f) % f;
    else {
      if (h < 0)
        return 3;
      if (h >= f)
        return 1;
    }
    v = l[h], v == null || v.focus(c), d += s;
  } while (v !== i.activeElement);
  return t & 6 && x0(v) && v.select(), 2;
}
function hv() {
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
}
function O0() {
  return /Android/gi.test(window.navigator.userAgent);
}
function pv() {
  return hv() || O0();
}
function Xa(e, t, n) {
  Aa.isServer || pt((r) => {
    document.addEventListener(e, t, n), r(() => document.removeEventListener(e, t, n));
  });
}
function gv(e, t, n) {
  Aa.isServer || pt((r) => {
    window.addEventListener(e, t, n), r(() => window.removeEventListener(e, t, n));
  });
}
function Ta(e, t, n = U(() => !0)) {
  function r(a, i) {
    if (!n.value || a.defaultPrevented)
      return;
    let l = i(a);
    if (l === null || !l.getRootNode().contains(l))
      return;
    let s = function u(c) {
      return typeof c == "function" ? u(c()) : Array.isArray(c) || c instanceof Set ? c : [c];
    }(e);
    for (let u of s) {
      if (u === null)
        continue;
      let c = u instanceof HTMLElement ? u : ae(u);
      if (c != null && c.contains(l) || a.composed && a.composedPath().includes(c))
        return;
    }
    return !Ea(l, Ca.Loose) && l.tabIndex !== -1 && a.preventDefault(), t(a, l);
  }
  let o = ne(null);
  Xa("pointerdown", (a) => {
    var i, l;
    n.value && (o.value = ((l = (i = a.composedPath) == null ? void 0 : i.call(a)) == null ? void 0 : l[0]) || a.target);
  }, !0), Xa("mousedown", (a) => {
    var i, l;
    n.value && (o.value = ((l = (i = a.composedPath) == null ? void 0 : i.call(a)) == null ? void 0 : l[0]) || a.target);
  }, !0), Xa("click", (a) => {
    pv() || o.value && (r(a, () => o.value), o.value = null);
  }, !0), Xa("touchend", (a) => r(a, () => a.target instanceof HTMLElement ? a.target : null), !0), gv("blur", (a) => r(a, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
}
function Mc(e, t) {
  if (e)
    return e;
  let n = t ?? "button";
  if (typeof n == "string" && n.toLowerCase() === "button")
    return "button";
}
function Oo(e, t) {
  let n = ne(Mc(e.value.type, e.value.as));
  return We(() => {
    n.value = Mc(e.value.type, e.value.as);
  }), pt(() => {
    var r;
    n.value || ae(t) && ae(t) instanceof HTMLButtonElement && !((r = ae(t)) != null && r.hasAttribute("type")) && (n.value = "button");
  }), n;
}
function Lc(e) {
  return [e.screenX, e.screenY];
}
function lu() {
  let e = ne([-1, -1]);
  return { wasMoved(t) {
    let n = Lc(t);
    return e.value[0] === n[0] && e.value[1] === n[1] ? !1 : (e.value = n, !0);
  }, update(t) {
    e.value = Lc(t);
  } };
}
function su({ container: e, accept: t, walk: n, enabled: r }) {
  pt(() => {
    let o = e.value;
    if (!o || r !== void 0 && !r.value)
      return;
    let a = Vt(e);
    if (!a)
      return;
    let i = Object.assign((s) => t(s), { acceptNode: t }), l = a.createTreeWalker(o, NodeFilter.SHOW_ELEMENT, i, !1);
    for (; l.nextNode(); )
      n(l.currentNode);
  });
}
var Dt = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Dt || {}), gr = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(gr || {});
function Ue({ visible: e = !0, features: t = 0, ourProps: n, theirProps: r, ...o }) {
  var a;
  let i = yv(r, n), l = Object.assign(o, { props: i });
  if (e || t & 2 && i.static)
    return Zl(l);
  if (t & 1) {
    let s = (a = i.unmount) == null || a ? 0 : 1;
    return Ze(s, { 0() {
      return null;
    }, 1() {
      return Zl({ ...o, props: { ...i, hidden: !0, style: { display: "none" } } });
    } });
  }
  return Zl(l);
}
function Zl({ props: e, attrs: t, slots: n, slot: r, name: o }) {
  var a, i;
  let { as: l, ...s } = Or(e, ["unmount", "static"]), u = (a = n.default) == null ? void 0 : a.call(n, r), c = {};
  if (r) {
    let d = !1, f = [];
    for (let [v, h] of Object.entries(r))
      typeof h == "boolean" && (d = !0), h === !0 && f.push(v);
    d && (c["data-headlessui-state"] = f.join(" "));
  }
  if (l === "template") {
    if (u = mv(u ?? []), Object.keys(s).length > 0 || Object.keys(t).length > 0) {
      let [d, ...f] = u ?? [];
      if (!C0(d) || f.length > 0)
        throw new Error(['Passing props on "template"!', "", `The current component <${o} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(s).concat(Object.keys(t)).map((m) => m.trim()).filter((m, p, g) => g.indexOf(m) === p).sort((m, p) => m.localeCompare(p)).map((m) => `  - ${m}`).join(`
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((m) => `  - ${m}`).join(`
`)].join(`
`));
      let v = yv((i = d.props) != null ? i : {}, s, c), h = xd(d, v, !0);
      for (let m in v)
        m.startsWith("on") && (h.props || (h.props = {}), h.props[m] = v[m]);
      return h;
    }
    return Array.isArray(u) && u.length === 1 ? u[0] : u;
  }
  return Qe(l, Object.assign({}, s, c), { default: () => u });
}
function mv(e) {
  return e.flatMap((t) => t.type === He ? mv(t.children) : [t]);
}
function yv(...e) {
  if (e.length === 0)
    return {};
  if (e.length === 1)
    return e[0];
  let t = {}, n = {};
  for (let r of e)
    for (let o in r)
      o.startsWith("on") && typeof r[o] == "function" ? (n[o] != null || (n[o] = []), n[o].push(r[o])) : t[o] = r[o];
  if (t.disabled || t["aria-disabled"])
    return Object.assign(t, Object.fromEntries(Object.keys(n).map((r) => [r, void 0])));
  for (let r in n)
    Object.assign(t, { [r](o, ...a) {
      let i = n[r];
      for (let l of i) {
        if (o instanceof Event && o.defaultPrevented)
          return;
        l(o, ...a);
      }
    } });
  return t;
}
function Gi(e) {
  let t = Object.assign({}, e);
  for (let n in t)
    t[n] === void 0 && delete t[n];
  return t;
}
function Or(e, t = []) {
  let n = Object.assign({}, e);
  for (let r of t)
    r in n && delete n[r];
  return n;
}
function C0(e) {
  return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
}
var gn = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(gn || {});
let Sn = se({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs: n }) {
  return () => {
    var r;
    let { features: o, ...a } = e, i = { "aria-hidden": (o & 2) === 2 ? !0 : (r = a["aria-hidden"]) != null ? r : void 0, hidden: (o & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(o & 4) === 4 && (o & 2) !== 2 && { display: "none" } } };
    return Ue({ ourProps: i, theirProps: a, slot: {}, attrs: n, slots: t, name: "Hidden" });
  };
} }), bv = Symbol("Context");
var Ke = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(Ke || {});
function E0() {
  return rr() !== null;
}
function rr() {
  return ot(bv, null);
}
function Co(e) {
  lt(bv, e);
}
var Ae = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(Ae || {}), wv = ((e) => (e[e.Left = 0] = "Left", e[e.Right = 2] = "Right", e))(wv || {});
function S0(e) {
  function t() {
    document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", t));
  }
  typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", t), t());
}
let _n = [];
S0(() => {
  function e(t) {
    t.target instanceof HTMLElement && t.target !== document.body && _n[0] !== t.target && (_n.unshift(t.target), _n = _n.filter((n) => n != null && n.isConnected), _n.splice(10));
  }
  window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
});
function T0(e) {
  throw new Error("Unexpected object: " + e);
}
var Fe = ((e) => (e[e.First = 0] = "First", e[e.Previous = 1] = "Previous", e[e.Next = 2] = "Next", e[e.Last = 3] = "Last", e[e.Specific = 4] = "Specific", e[e.Nothing = 5] = "Nothing", e))(Fe || {});
function wi(e, t) {
  let n = t.resolveItems();
  if (n.length <= 0)
    return null;
  let r = t.resolveActiveIndex(), o = r ?? -1;
  switch (e.focus) {
    case 0: {
      for (let a = 0; a < n.length; ++a)
        if (!t.resolveDisabled(n[a], a, n))
          return a;
      return r;
    }
    case 1: {
      o === -1 && (o = n.length);
      for (let a = o - 1; a >= 0; --a)
        if (!t.resolveDisabled(n[a], a, n))
          return a;
      return r;
    }
    case 2: {
      for (let a = o + 1; a < n.length; ++a)
        if (!t.resolveDisabled(n[a], a, n))
          return a;
      return r;
    }
    case 3: {
      for (let a = n.length - 1; a >= 0; --a)
        if (!t.resolveDisabled(n[a], a, n))
          return a;
      return r;
    }
    case 4: {
      for (let a = 0; a < n.length; ++a)
        if (t.resolveId(n[a], a, n) === e.id)
          return a;
      return r;
    }
    case 5:
      return null;
    default:
      T0(e);
  }
}
function Ki(e = {}, t = null, n = []) {
  for (let [r, o] of Object.entries(e))
    Av(n, xv(t, r), o);
  return n;
}
function xv(e, t) {
  return e ? e + "[" + t + "]" : t;
}
function Av(e, t, n) {
  if (Array.isArray(n))
    for (let [r, o] of n.entries())
      Av(e, xv(t, r.toString()), o);
  else
    n instanceof Date ? e.push([t, n.toISOString()]) : typeof n == "boolean" ? e.push([t, n ? "1" : "0"]) : typeof n == "string" ? e.push([t, n]) : typeof n == "number" ? e.push([t, `${n}`]) : n == null ? e.push([t, ""]) : Ki(n, t, e);
}
function Ov(e) {
  var t, n;
  let r = (t = e == null ? void 0 : e.form) != null ? t : e.closest("form");
  if (r) {
    for (let o of r.elements)
      if (o !== e && (o.tagName === "INPUT" && o.type === "submit" || o.tagName === "BUTTON" && o.type === "submit" || o.nodeName === "INPUT" && o.type === "image")) {
        o.click();
        return;
      }
    (n = r.requestSubmit) == null || n.call(r);
  }
}
function D0(e, t) {
  return e === t;
}
var k0 = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(k0 || {}), P0 = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(P0 || {}), I0 = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Focus = 1] = "Focus", e[e.Other = 2] = "Other", e))(I0 || {});
let Cv = Symbol("ComboboxContext");
function Yr(e) {
  let t = ot(Cv, null);
  if (t === null) {
    let n = new Error(`<${e} /> is missing a parent <Combobox /> component.`);
    throw Error.captureStackTrace && Error.captureStackTrace(n, Yr), n;
  }
  return t;
}
let Ev = Symbol("VirtualContext"), N0 = se({ name: "VirtualProvider", setup(e, { slots: t }) {
  let n = Yr("VirtualProvider"), r = U(() => {
    let l = ae(n.optionsRef);
    if (!l)
      return { start: 0, end: 0 };
    let s = window.getComputedStyle(l);
    return { start: parseFloat(s.paddingBlockStart || s.paddingTop), end: parseFloat(s.paddingBlockEnd || s.paddingBottom) };
  }), o = c0(U(() => ({ scrollPaddingStart: r.value.start, scrollPaddingEnd: r.value.end, count: n.virtual.value.options.length, estimateSize() {
    return 40;
  }, getScrollElement() {
    return ae(n.optionsRef);
  }, overscan: 12 }))), a = U(() => {
    var l;
    return (l = n.virtual.value) == null ? void 0 : l.options;
  }), i = ne(0);
  return Ne([a], () => {
    i.value += 1;
  }), lt(Ev, n.virtual.value ? o : null), () => [Qe("div", { style: { position: "relative", width: "100%", height: `${o.value.getTotalSize()}px` }, ref: (l) => {
    if (l) {
      if (typeof process < "u" && process.env.JEST_WORKER_ID !== void 0 || n.activationTrigger.value === 0)
        return;
      n.activeOptionIndex.value !== null && n.virtual.value.options.length > n.activeOptionIndex.value && o.value.scrollToIndex(n.activeOptionIndex.value);
    }
  } }, o.value.getVirtualItems().map((l) => xd(t.default({ option: n.virtual.value.options[l.index], open: n.comboboxState.value === 0 })[0], { key: `${i.value}-${l.index}`, "data-index": l.index, "aria-setsize": n.virtual.value.options.length, "aria-posinset": l.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${l.start}px)`, overflowAnchor: "none" } })))];
} }), M0 = se({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], nullable: !0, default: null }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, nullable: { type: Boolean, default: !1 }, multiple: { type: [Boolean], default: !1 }, immediate: { type: [Boolean], default: !1 }, virtual: { type: Object, default: null } }, inheritAttrs: !1, setup(e, { slots: t, attrs: n, emit: r }) {
  let o = ne(1), a = ne(null), i = ne(null), l = ne(null), s = ne(null), u = ne({ static: !1, hold: !1 }), c = ne([]), d = ne(null), f = ne(2), v = ne(!1);
  function h(S = (A) => A) {
    let A = d.value !== null ? c.value[d.value] : null, C = S(c.value.slice()), k = C.length > 0 && C[0].dataRef.order.value !== null ? C.sort((N, F) => N.dataRef.order.value - F.dataRef.order.value) : Sa(C, (N) => ae(N.dataRef.domRef)), I = A ? k.indexOf(A) : null;
    return I === -1 && (I = null), { options: k, activeOptionIndex: I };
  }
  let m = U(() => e.multiple ? 1 : 0), p = U(() => e.nullable), [g, y] = Wi(U(() => e.modelValue), (S) => r("update:modelValue", S), U(() => e.defaultValue)), x = U(() => g.value === void 0 ? Ze(m.value, { 1: [], 0: void 0 }) : g.value), b = null, w = null;
  function D(S) {
    return Ze(m.value, { 0() {
      return y == null ? void 0 : y(S);
    }, 1: () => {
      let A = st(T.value.value).slice(), C = st(S), k = A.findIndex((I) => T.compare(C, st(I)));
      return k === -1 ? A.push(C) : A.splice(k, 1), y == null ? void 0 : y(A);
    } });
  }
  let E = U(() => {
  });
  Ne([E], ([S], [A]) => {
    if (T.virtual.value && S && A && d.value !== null) {
      let C = S.indexOf(A[d.value]);
      C !== -1 ? d.value = C : d.value = null;
    }
  });
  let T = { comboboxState: o, value: x, mode: m, compare(S, A) {
    if (typeof e.by == "string") {
      let C = e.by;
      return (S == null ? void 0 : S[C]) === (A == null ? void 0 : A[C]);
    }
    return e.by === null ? D0(S, A) : e.by(S, A);
  }, calculateIndex(S) {
    return T.virtual.value ? e.by === null ? T.virtual.value.options.indexOf(S) : T.virtual.value.options.findIndex((A) => T.compare(A, S)) : c.value.findIndex((A) => T.compare(A.dataRef.value, S));
  }, defaultValue: U(() => e.defaultValue), nullable: p, immediate: U(() => !1), virtual: U(() => null), inputRef: i, labelRef: a, buttonRef: l, optionsRef: s, disabled: U(() => e.disabled), options: c, change(S) {
    y(S);
  }, activeOptionIndex: U(() => {
    if (v.value && d.value === null && (T.virtual.value ? T.virtual.value.options.length > 0 : c.value.length > 0)) {
      if (T.virtual.value) {
        let A = T.virtual.value.options.findIndex((C) => {
          var k;
          return !((k = T.virtual.value) != null && k.disabled(C));
        });
        if (A !== -1)
          return A;
      }
      let S = c.value.findIndex((A) => !A.dataRef.disabled);
      if (S !== -1)
        return S;
    }
    return d.value;
  }), activationTrigger: f, optionsPropsRef: u, closeCombobox() {
    v.value = !1, !e.disabled && o.value !== 1 && (o.value = 1, d.value = null);
  }, openCombobox() {
    if (v.value = !0, !e.disabled && o.value !== 0) {
      if (T.value.value) {
        let S = T.calculateIndex(T.value.value);
        S !== -1 && (d.value = S);
      }
      o.value = 0;
    }
  }, setActivationTrigger(S) {
    f.value = S;
  }, goToOption(S, A, C) {
    v.value = !1, b !== null && cancelAnimationFrame(b), b = requestAnimationFrame(() => {
      if (e.disabled || s.value && !u.value.static && o.value === 1)
        return;
      if (T.virtual.value) {
        d.value = S === Fe.Specific ? A : wi({ focus: S }, { resolveItems: () => T.virtual.value.options, resolveActiveIndex: () => {
          var N, F;
          return (F = (N = T.activeOptionIndex.value) != null ? N : T.virtual.value.options.findIndex((V) => {
            var G;
            return !((G = T.virtual.value) != null && G.disabled(V));
          })) != null ? F : null;
        }, resolveDisabled: (N) => T.virtual.value.disabled(N), resolveId() {
          throw new Error("Function not implemented.");
        } }), f.value = C ?? 2;
        return;
      }
      let k = h();
      if (k.activeOptionIndex === null) {
        let N = k.options.findIndex((F) => !F.dataRef.disabled);
        N !== -1 && (k.activeOptionIndex = N);
      }
      let I = S === Fe.Specific ? A : wi({ focus: S }, { resolveItems: () => k.options, resolveActiveIndex: () => k.activeOptionIndex, resolveId: (N) => N.id, resolveDisabled: (N) => N.dataRef.disabled });
      d.value = I, f.value = C ?? 2, c.value = k.options;
    });
  }, selectOption(S) {
    let A = c.value.find((k) => k.id === S);
    if (!A)
      return;
    let { dataRef: C } = A;
    D(C.value);
  }, selectActiveOption() {
    if (T.activeOptionIndex.value !== null) {
      if (T.virtual.value)
        D(T.virtual.value.options[T.activeOptionIndex.value]);
      else {
        let { dataRef: S } = c.value[T.activeOptionIndex.value];
        D(S.value);
      }
      T.goToOption(Fe.Specific, T.activeOptionIndex.value);
    }
  }, registerOption(S, A) {
    let C = wo({ id: S, dataRef: A });
    if (T.virtual.value) {
      c.value.push(C);
      return;
    }
    w && cancelAnimationFrame(w);
    let k = h((I) => (I.push(C), I));
    d.value === null && T.isSelected(A.value.value) && (k.activeOptionIndex = k.options.indexOf(C)), c.value = k.options, d.value = k.activeOptionIndex, f.value = 2, k.options.some((I) => !ae(I.dataRef.domRef)) && (w = requestAnimationFrame(() => {
      let I = h();
      c.value = I.options, d.value = I.activeOptionIndex;
    }));
  }, unregisterOption(S, A) {
    if (b !== null && cancelAnimationFrame(b), A && (v.value = !0), T.virtual.value) {
      c.value = c.value.filter((k) => k.id !== S);
      return;
    }
    let C = h((k) => {
      let I = k.findIndex((N) => N.id === S);
      return I !== -1 && k.splice(I, 1), k;
    });
    c.value = C.options, d.value = C.activeOptionIndex, f.value = 2;
  }, isSelected(S) {
    return Ze(m.value, { 0: () => T.compare(st(T.value.value), st(S)), 1: () => st(T.value.value).some((A) => T.compare(st(A), st(S))) });
  }, isActive(S) {
    return d.value === T.calculateIndex(S);
  } };
  Ta([i, l, s], () => T.closeCombobox(), U(() => o.value === 0)), lt(Cv, T), Co(U(() => Ze(o.value, { 0: Ke.Open, 1: Ke.Closed })));
  let L = U(() => {
    var S;
    return (S = ae(i)) == null ? void 0 : S.closest("form");
  });
  return We(() => {
    Ne([L], () => {
      if (!L.value || e.defaultValue === void 0)
        return;
      function S() {
        T.change(e.defaultValue);
      }
      return L.value.addEventListener("reset", S), () => {
        var A;
        (A = L.value) == null || A.removeEventListener("reset", S);
      };
    }, { immediate: !0 });
  }), () => {
    var S, A, C;
    let { name: k, disabled: I, form: N, ...F } = e, V = { open: o.value === 0, disabled: I, activeIndex: T.activeOptionIndex.value, activeOption: T.activeOptionIndex.value === null ? null : T.virtual.value ? T.virtual.value.options[(S = T.activeOptionIndex.value) != null ? S : 0] : (C = (A = T.options.value[T.activeOptionIndex.value]) == null ? void 0 : A.dataRef.value) != null ? C : null, value: x.value };
    return Qe(He, [...k != null && x.value != null ? Ki({ [k]: x.value }).map(([G, z]) => Qe(Sn, Gi({ features: gn.Hidden, key: G, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: N, disabled: I, name: G, value: z }))) : [], Ue({ theirProps: { ...n, ...Or(F, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: V, slots: t, attrs: n, name: "Combobox" })]);
  };
} });
se({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
  var r;
  let o = (r = e.id) != null ? r : `headlessui-combobox-label-${tt()}`, a = Yr("ComboboxLabel");
  function i() {
    var l;
    (l = ae(a.inputRef)) == null || l.focus({ preventScroll: !0 });
  }
  return () => {
    let l = { open: a.comboboxState.value === 0, disabled: a.disabled.value }, { ...s } = e, u = { id: o, ref: a.labelRef, onClick: i };
    return Ue({ ourProps: u, theirProps: s, slot: l, attrs: t, slots: n, name: "ComboboxLabel" });
  };
} });
let L0 = se({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
  var o;
  let a = (o = e.id) != null ? o : `headlessui-combobox-button-${tt()}`, i = Yr("ComboboxButton");
  r({ el: i.buttonRef, $el: i.buttonRef });
  function l(c) {
    i.disabled.value || (i.comboboxState.value === 0 ? i.closeCombobox() : (c.preventDefault(), i.openCombobox()), rt(() => {
      var d;
      return (d = ae(i.inputRef)) == null ? void 0 : d.focus({ preventScroll: !0 });
    }));
  }
  function s(c) {
    switch (c.key) {
      case Ae.ArrowDown:
        c.preventDefault(), c.stopPropagation(), i.comboboxState.value === 1 && i.openCombobox(), rt(() => {
          var d;
          return (d = i.inputRef.value) == null ? void 0 : d.focus({ preventScroll: !0 });
        });
        return;
      case Ae.ArrowUp:
        c.preventDefault(), c.stopPropagation(), i.comboboxState.value === 1 && (i.openCombobox(), rt(() => {
          i.value.value || i.goToOption(Fe.Last);
        })), rt(() => {
          var d;
          return (d = i.inputRef.value) == null ? void 0 : d.focus({ preventScroll: !0 });
        });
        return;
      case Ae.Escape:
        if (i.comboboxState.value !== 0)
          return;
        c.preventDefault(), i.optionsRef.value && !i.optionsPropsRef.value.static && c.stopPropagation(), i.closeCombobox(), rt(() => {
          var d;
          return (d = i.inputRef.value) == null ? void 0 : d.focus({ preventScroll: !0 });
        });
        return;
    }
  }
  let u = Oo(U(() => ({ as: e.as, type: t.type })), i.buttonRef);
  return () => {
    var c, d;
    let f = { open: i.comboboxState.value === 0, disabled: i.disabled.value, value: i.value.value }, { ...v } = e, h = { ref: i.buttonRef, id: a, type: u.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": (c = ae(i.optionsRef)) == null ? void 0 : c.id, "aria-expanded": i.comboboxState.value === 0, "aria-labelledby": i.labelRef.value ? [(d = ae(i.labelRef)) == null ? void 0 : d.id, a].join(" ") : void 0, disabled: i.disabled.value === !0 ? !0 : void 0, onKeydown: s, onClick: l };
    return Ue({ ourProps: h, theirProps: v, slot: f, attrs: t, slots: n, name: "ComboboxButton" });
  };
} }), R0 = se({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: null } }, emits: { change: (e) => !0 }, setup(e, { emit: t, attrs: n, slots: r, expose: o }) {
  var a;
  let i = (a = e.id) != null ? a : `headlessui-combobox-input-${tt()}`, l = Yr("ComboboxInput"), s = U(() => Vt(ae(l.inputRef))), u = { value: !1 };
  o({ el: l.inputRef, $el: l.inputRef });
  function c() {
    l.change(null);
    let w = ae(l.optionsRef);
    w && (w.scrollTop = 0), l.goToOption(Fe.Nothing);
  }
  let d = U(() => {
    var w;
    let D = l.value.value;
    return ae(l.inputRef) ? typeof e.displayValue < "u" && D !== void 0 ? (w = e.displayValue(D)) != null ? w : "" : typeof D == "string" ? D : "" : "";
  });
  We(() => {
    Ne([d, l.comboboxState, s], ([w, D], [E, T]) => {
      if (u.value)
        return;
      let L = ae(l.inputRef);
      L && ((T === 0 && D === 1 || w !== E) && (L.value = w), requestAnimationFrame(() => {
        var S;
        if (u.value || !L || ((S = s.value) == null ? void 0 : S.activeElement) !== L)
          return;
        let { selectionStart: A, selectionEnd: C } = L;
        Math.abs((C ?? 0) - (A ?? 0)) === 0 && A === 0 && L.setSelectionRange(L.value.length, L.value.length);
      }));
    }, { immediate: !0 }), Ne([l.comboboxState], ([w], [D]) => {
      if (w === 0 && D === 1) {
        if (u.value)
          return;
        let E = ae(l.inputRef);
        if (!E)
          return;
        let T = E.value, { selectionStart: L, selectionEnd: S, selectionDirection: A } = E;
        E.value = "", E.value = T, A !== null ? E.setSelectionRange(L, S, A) : E.setSelectionRange(L, S);
      }
    });
  });
  let f = ne(!1);
  function v() {
    f.value = !0;
  }
  function h() {
    br().nextFrame(() => {
      f.value = !1;
    });
  }
  let m = d0();
  function p(w) {
    switch (u.value = !0, m(() => {
      u.value = !1;
    }), w.key) {
      case Ae.Enter:
        if (u.value = !1, l.comboboxState.value !== 0 || f.value)
          return;
        if (w.preventDefault(), w.stopPropagation(), l.activeOptionIndex.value === null) {
          l.closeCombobox();
          return;
        }
        l.selectActiveOption(), l.mode.value === 0 && l.closeCombobox();
        break;
      case Ae.ArrowDown:
        return u.value = !1, w.preventDefault(), w.stopPropagation(), Ze(l.comboboxState.value, { 0: () => l.goToOption(Fe.Next), 1: () => l.openCombobox() });
      case Ae.ArrowUp:
        return u.value = !1, w.preventDefault(), w.stopPropagation(), Ze(l.comboboxState.value, { 0: () => l.goToOption(Fe.Previous), 1: () => {
          l.openCombobox(), rt(() => {
            l.value.value || l.goToOption(Fe.Last);
          });
        } });
      case Ae.Home:
        if (w.shiftKey)
          break;
        return u.value = !1, w.preventDefault(), w.stopPropagation(), l.goToOption(Fe.First);
      case Ae.PageUp:
        return u.value = !1, w.preventDefault(), w.stopPropagation(), l.goToOption(Fe.First);
      case Ae.End:
        if (w.shiftKey)
          break;
        return u.value = !1, w.preventDefault(), w.stopPropagation(), l.goToOption(Fe.Last);
      case Ae.PageDown:
        return u.value = !1, w.preventDefault(), w.stopPropagation(), l.goToOption(Fe.Last);
      case Ae.Escape:
        if (u.value = !1, l.comboboxState.value !== 0)
          return;
        w.preventDefault(), l.optionsRef.value && !l.optionsPropsRef.value.static && w.stopPropagation(), l.nullable.value && l.mode.value === 0 && l.value.value === null && c(), l.closeCombobox();
        break;
      case Ae.Tab:
        if (u.value = !1, l.comboboxState.value !== 0)
          return;
        l.mode.value === 0 && l.activationTrigger.value !== 1 && l.selectActiveOption(), l.closeCombobox();
        break;
    }
  }
  function g(w) {
    t("change", w), l.nullable.value && l.mode.value === 0 && w.target.value === "" && c(), l.openCombobox();
  }
  function y(w) {
    var D, E, T;
    let L = (D = w.relatedTarget) != null ? D : _n.find((S) => S !== w.currentTarget);
    if (u.value = !1, !((E = ae(l.optionsRef)) != null && E.contains(L)) && !((T = ae(l.buttonRef)) != null && T.contains(L)) && l.comboboxState.value === 0)
      return w.preventDefault(), l.mode.value === 0 && (l.nullable.value && l.value.value === null ? c() : l.activationTrigger.value !== 1 && l.selectActiveOption()), l.closeCombobox();
  }
  function x(w) {
    var D, E, T;
    let L = (D = w.relatedTarget) != null ? D : _n.find((S) => S !== w.currentTarget);
    (E = ae(l.buttonRef)) != null && E.contains(L) || (T = ae(l.optionsRef)) != null && T.contains(L) || l.disabled.value || l.immediate.value && l.comboboxState.value !== 0 && (l.openCombobox(), br().nextFrame(() => {
      l.setActivationTrigger(1);
    }));
  }
  let b = U(() => {
    var w, D, E, T;
    return (T = (E = (D = e.defaultValue) != null ? D : l.defaultValue.value !== void 0 ? (w = e.displayValue) == null ? void 0 : w.call(e, l.defaultValue.value) : null) != null ? E : l.defaultValue.value) != null ? T : "";
  });
  return () => {
    var w, D, E, T, L, S, A;
    let C = { open: l.comboboxState.value === 0 }, { displayValue: k, onChange: I, ...N } = e, F = { "aria-controls": (w = l.optionsRef.value) == null ? void 0 : w.id, "aria-expanded": l.comboboxState.value === 0, "aria-activedescendant": l.activeOptionIndex.value === null ? void 0 : l.virtual.value ? (D = l.options.value.find((V) => !l.virtual.value.disabled(V.dataRef.value) && l.compare(V.dataRef.value, l.virtual.value.options[l.activeOptionIndex.value]))) == null ? void 0 : D.id : (E = l.options.value[l.activeOptionIndex.value]) == null ? void 0 : E.id, "aria-labelledby": (S = (T = ae(l.labelRef)) == null ? void 0 : T.id) != null ? S : (L = ae(l.buttonRef)) == null ? void 0 : L.id, "aria-autocomplete": "list", id: i, onCompositionstart: v, onCompositionend: h, onKeydown: p, onInput: g, onFocus: x, onBlur: y, role: "combobox", type: (A = n.type) != null ? A : "text", tabIndex: 0, ref: l.inputRef, defaultValue: b.value, disabled: l.disabled.value === !0 ? !0 : void 0 };
    return Ue({ ourProps: F, theirProps: N, slot: C, attrs: n, slots: r, features: Dt.RenderStrategy | Dt.Static, name: "ComboboxInput" });
  };
} }), B0 = se({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, hold: { type: [Boolean], default: !1 } }, setup(e, { attrs: t, slots: n, expose: r }) {
  let o = Yr("ComboboxOptions"), a = `headlessui-combobox-options-${tt()}`;
  r({ el: o.optionsRef, $el: o.optionsRef }), pt(() => {
    o.optionsPropsRef.value.static = e.static;
  }), pt(() => {
    o.optionsPropsRef.value.hold = e.hold;
  });
  let i = rr(), l = U(() => i !== null ? (i.value & Ke.Open) === Ke.Open : o.comboboxState.value === 0);
  su({ container: U(() => ae(o.optionsRef)), enabled: U(() => o.comboboxState.value === 0), accept(u) {
    return u.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : u.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
  }, walk(u) {
    u.setAttribute("role", "none");
  } });
  function s(u) {
    u.preventDefault();
  }
  return () => {
    var u, c, d;
    let f = { open: o.comboboxState.value === 0 }, v = { "aria-labelledby": (d = (u = ae(o.labelRef)) == null ? void 0 : u.id) != null ? d : (c = ae(o.buttonRef)) == null ? void 0 : c.id, id: a, ref: o.optionsRef, role: "listbox", "aria-multiselectable": o.mode.value === 1 ? !0 : void 0, onMousedown: s }, h = Or(e, ["hold"]);
    return Ue({ ourProps: v, theirProps: h, slot: f, attrs: t, slots: o.virtual.value && o.comboboxState.value === 0 ? { ...n, default: () => [Qe(N0, {}, n.default)] } : n, features: Dt.RenderStrategy | Dt.Static, visible: l.value, name: "ComboboxOptions" });
  };
} }), F0 = se({ name: "ComboboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, order: { type: [Number], default: null } }, setup(e, { slots: t, attrs: n, expose: r }) {
  let o = Yr("ComboboxOption"), a = `headlessui-combobox-option-${tt()}`, i = ne(null), l = U(() => e.disabled);
  r({ el: i, $el: i });
  let s = U(() => {
    var y;
    return o.virtual.value ? o.activeOptionIndex.value === o.calculateIndex(e.value) : o.activeOptionIndex.value === null ? !1 : ((y = o.options.value[o.activeOptionIndex.value]) == null ? void 0 : y.id) === a;
  }), u = U(() => o.isSelected(e.value)), c = ot(Ev, null), d = U(() => ({ disabled: e.disabled, value: e.value, domRef: i, order: U(() => e.order) }));
  We(() => o.registerOption(a, d)), ct(() => o.unregisterOption(a, s.value)), pt(() => {
    let y = ae(i);
    y && (c == null || c.value.measureElement(y));
  }), pt(() => {
    o.comboboxState.value === 0 && s.value && (o.virtual.value || o.activationTrigger.value !== 0 && rt(() => {
      var y, x;
      return (x = (y = ae(i)) == null ? void 0 : y.scrollIntoView) == null ? void 0 : x.call(y, { block: "nearest" });
    }));
  });
  function f(y) {
    y.preventDefault(), y.button === wv.Left && (l.value || (o.selectOption(a), pv() || requestAnimationFrame(() => {
      var x;
      return (x = ae(o.inputRef)) == null ? void 0 : x.focus({ preventScroll: !0 });
    }), o.mode.value === 0 && o.closeCombobox()));
  }
  function v() {
    var y;
    if (e.disabled || (y = o.virtual.value) != null && y.disabled(e.value))
      return o.goToOption(Fe.Nothing);
    let x = o.calculateIndex(e.value);
    o.goToOption(Fe.Specific, x);
  }
  let h = lu();
  function m(y) {
    h.update(y);
  }
  function p(y) {
    var x;
    if (!h.wasMoved(y) || e.disabled || (x = o.virtual.value) != null && x.disabled(e.value) || s.value)
      return;
    let b = o.calculateIndex(e.value);
    o.goToOption(Fe.Specific, b, 0);
  }
  function g(y) {
    var x;
    h.wasMoved(y) && (e.disabled || (x = o.virtual.value) != null && x.disabled(e.value) || s.value && (o.optionsPropsRef.value.hold || o.goToOption(Fe.Nothing)));
  }
  return () => {
    let { disabled: y } = e, x = { active: s.value, selected: u.value, disabled: y }, b = { id: a, ref: i, role: "option", tabIndex: y === !0 ? void 0 : -1, "aria-disabled": y === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onMousedown: f, onFocus: v, onPointerenter: m, onMouseenter: m, onPointermove: p, onMousemove: p, onPointerleave: g, onMouseleave: g }, w = Or(e, ["order", "value"]);
    return Ue({ ourProps: b, theirProps: w, slot: x, attrs: n, slots: t, name: "ComboboxOption" });
  };
} });
function uu(e, t, n, r) {
  Aa.isServer || pt((o) => {
    e = e ?? window, e.addEventListener(t, n, r), o(() => e.removeEventListener(t, n, r));
  });
}
var on = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(on || {});
function cu() {
  let e = ne(0);
  return gv("keydown", (t) => {
    t.key === "Tab" && (e.value = t.shiftKey ? 1 : 0);
  }), e;
}
function Sv(e) {
  if (!e)
    return /* @__PURE__ */ new Set();
  if (typeof e == "function")
    return new Set(e());
  let t = /* @__PURE__ */ new Set();
  for (let n of e.value) {
    let r = ae(n);
    r instanceof HTMLElement && t.add(r);
  }
  return t;
}
var Tv = ((e) => (e[e.None = 1] = "None", e[e.InitialFocus = 2] = "InitialFocus", e[e.TabLock = 4] = "TabLock", e[e.FocusLock = 8] = "FocusLock", e[e.RestoreFocus = 16] = "RestoreFocus", e[e.All = 30] = "All", e))(Tv || {});
let Yo = Object.assign(se({ name: "FocusTrap", props: { as: { type: [Object, String], default: "div" }, initialFocus: { type: Object, default: null }, features: { type: Number, default: 30 }, containers: { type: [Object, Function], default: ne(/* @__PURE__ */ new Set()) } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
  let o = ne(null);
  r({ el: o, $el: o });
  let a = U(() => Vt(o)), i = ne(!1);
  We(() => i.value = !0), ct(() => i.value = !1), q0({ ownerDocument: a }, U(() => i.value && !!(e.features & 16)));
  let l = V0({ ownerDocument: a, container: o, initialFocus: U(() => e.initialFocus) }, U(() => i.value && !!(e.features & 2)));
  z0({ ownerDocument: a, container: o, containers: e.containers, previousActiveElement: l }, U(() => i.value && !!(e.features & 8)));
  let s = cu();
  function u(v) {
    let h = ae(o);
    h && ((m) => m())(() => {
      Ze(s.value, { [on.Forwards]: () => {
        _t(h, yt.First, { skipElements: [v.relatedTarget] });
      }, [on.Backwards]: () => {
        _t(h, yt.Last, { skipElements: [v.relatedTarget] });
      } });
    });
  }
  let c = ne(!1);
  function d(v) {
    v.key === "Tab" && (c.value = !0, requestAnimationFrame(() => {
      c.value = !1;
    }));
  }
  function f(v) {
    if (!i.value)
      return;
    let h = Sv(e.containers);
    ae(o) instanceof HTMLElement && h.add(ae(o));
    let m = v.relatedTarget;
    m instanceof HTMLElement && m.dataset.headlessuiFocusGuard !== "true" && (Dv(h, m) || (c.value ? _t(ae(o), Ze(s.value, { [on.Forwards]: () => yt.Next, [on.Backwards]: () => yt.Previous }) | yt.WrapAround, { relativeTo: v.target }) : v.target instanceof HTMLElement && mr(v.target)));
  }
  return () => {
    let v = {}, h = { ref: o, onKeydown: d, onFocusout: f }, { features: m, initialFocus: p, containers: g, ...y } = e;
    return Qe(He, [!!(m & 4) && Qe(Sn, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: u, features: gn.Focusable }), Ue({ ourProps: h, theirProps: { ...t, ...y }, slot: v, attrs: t, slots: n, name: "FocusTrap" }), !!(m & 4) && Qe(Sn, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: u, features: gn.Focusable })]);
  };
} }), { features: Tv });
function j0(e) {
  let t = ne(_n.slice());
  return Ne([e], ([n], [r]) => {
    r === !0 && n === !1 ? iu(() => {
      t.value.splice(0);
    }) : r === !1 && n === !0 && (t.value = _n.slice());
  }, { flush: "post" }), () => {
    var n;
    return (n = t.value.find((r) => r != null && r.isConnected)) != null ? n : null;
  };
}
function q0({ ownerDocument: e }, t) {
  let n = j0(t);
  We(() => {
    pt(() => {
      var r, o;
      t.value || ((r = e.value) == null ? void 0 : r.activeElement) === ((o = e.value) == null ? void 0 : o.body) && mr(n());
    }, { flush: "post" });
  }), ct(() => {
    t.value && mr(n());
  });
}
function V0({ ownerDocument: e, container: t, initialFocus: n }, r) {
  let o = ne(null), a = ne(!1);
  return We(() => a.value = !0), ct(() => a.value = !1), We(() => {
    Ne([t, n, r], (i, l) => {
      if (i.every((u, c) => (l == null ? void 0 : l[c]) === u) || !r.value)
        return;
      let s = ae(t);
      s && iu(() => {
        var u, c;
        if (!a.value)
          return;
        let d = ae(n), f = (u = e.value) == null ? void 0 : u.activeElement;
        if (d) {
          if (d === f) {
            o.value = f;
            return;
          }
        } else if (s.contains(f)) {
          o.value = f;
          return;
        }
        d ? mr(d) : _t(s, yt.First | yt.NoScroll) === Vr.Error && console.warn("There are no focusable elements inside the <FocusTrap />"), o.value = (c = e.value) == null ? void 0 : c.activeElement;
      });
    }, { immediate: !0, flush: "post" });
  }), o;
}
function z0({ ownerDocument: e, container: t, containers: n, previousActiveElement: r }, o) {
  var a;
  uu((a = e.value) == null ? void 0 : a.defaultView, "focus", (i) => {
    if (!o.value)
      return;
    let l = Sv(n);
    ae(t) instanceof HTMLElement && l.add(ae(t));
    let s = r.value;
    if (!s)
      return;
    let u = i.target;
    u && u instanceof HTMLElement ? Dv(l, u) ? (r.value = u, mr(u)) : (i.preventDefault(), i.stopPropagation(), mr(s)) : mr(r.value);
  }, !0);
}
function Dv(e, t) {
  for (let n of e)
    if (n.contains(t))
      return !0;
  return !1;
}
function U0(e) {
  let t = Bi(e.getSnapshot());
  return ct(e.subscribe(() => {
    t.value = e.getSnapshot();
  })), t;
}
function H0(e, t) {
  let n = e(), r = /* @__PURE__ */ new Set();
  return { getSnapshot() {
    return n;
  }, subscribe(o) {
    return r.add(o), () => r.delete(o);
  }, dispatch(o, ...a) {
    let i = t[o].call(n, ...a);
    i && (n = i, r.forEach((l) => l()));
  } };
}
function Y0() {
  let e;
  return { before({ doc: t }) {
    var n;
    let r = t.documentElement;
    e = ((n = t.defaultView) != null ? n : window).innerWidth - r.clientWidth;
  }, after({ doc: t, d: n }) {
    let r = t.documentElement, o = r.clientWidth - r.offsetWidth, a = e - o;
    n.style(r, "paddingRight", `${a}px`);
  } };
}
function Q0() {
  return hv() ? { before({ doc: e, d: t, meta: n }) {
    function r(o) {
      return n.containers.flatMap((a) => a()).some((a) => a.contains(o));
    }
    t.microTask(() => {
      var o;
      if (window.getComputedStyle(e.documentElement).scrollBehavior !== "auto") {
        let l = br();
        l.style(e.documentElement, "scrollBehavior", "auto"), t.add(() => t.microTask(() => l.dispose()));
      }
      let a = (o = window.scrollY) != null ? o : window.pageYOffset, i = null;
      t.addEventListener(e, "click", (l) => {
        if (l.target instanceof HTMLElement)
          try {
            let s = l.target.closest("a");
            if (!s)
              return;
            let { hash: u } = new URL(s.href), c = e.querySelector(u);
            c && !r(c) && (i = c);
          } catch {
          }
      }, !0), t.addEventListener(e, "touchstart", (l) => {
        if (l.target instanceof HTMLElement)
          if (r(l.target)) {
            let s = l.target;
            for (; s.parentElement && r(s.parentElement); )
              s = s.parentElement;
            t.style(s, "overscrollBehavior", "contain");
          } else
            t.style(l.target, "touchAction", "none");
      }), t.addEventListener(e, "touchmove", (l) => {
        if (l.target instanceof HTMLElement) {
          if (l.target.tagName === "INPUT")
            return;
          if (r(l.target)) {
            let s = l.target;
            for (; s.parentElement && s.dataset.headlessuiPortal !== "" && !(s.scrollHeight > s.clientHeight || s.scrollWidth > s.clientWidth); )
              s = s.parentElement;
            s.dataset.headlessuiPortal === "" && l.preventDefault();
          } else
            l.preventDefault();
        }
      }, { passive: !1 }), t.add(() => {
        var l;
        let s = (l = window.scrollY) != null ? l : window.pageYOffset;
        a !== s && window.scrollTo(0, a), i && i.isConnected && (i.scrollIntoView({ block: "nearest" }), i = null);
      });
    });
  } } : {};
}
function W0() {
  return { before({ doc: e, d: t }) {
    t.style(e.documentElement, "overflow", "hidden");
  } };
}
function G0(e) {
  let t = {};
  for (let n of e)
    Object.assign(t, n(t));
  return t;
}
let Mr = H0(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
  var n;
  let r = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: br(), meta: /* @__PURE__ */ new Set() };
  return r.count++, r.meta.add(t), this.set(e, r), this;
}, POP(e, t) {
  let n = this.get(e);
  return n && (n.count--, n.meta.delete(t)), this;
}, SCROLL_PREVENT({ doc: e, d: t, meta: n }) {
  let r = { doc: e, d: t, meta: G0(n) }, o = [Q0(), Y0(), W0()];
  o.forEach(({ before: a }) => a == null ? void 0 : a(r)), o.forEach(({ after: a }) => a == null ? void 0 : a(r));
}, SCROLL_ALLOW({ d: e }) {
  e.dispose();
}, TEARDOWN({ doc: e }) {
  this.delete(e);
} });
Mr.subscribe(() => {
  let e = Mr.getSnapshot(), t = /* @__PURE__ */ new Map();
  for (let [n] of e)
    t.set(n, n.documentElement.style.overflow);
  for (let n of e.values()) {
    let r = t.get(n.doc) === "hidden", o = n.count !== 0;
    (o && !r || !o && r) && Mr.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && Mr.dispatch("TEARDOWN", n);
  }
});
function K0(e, t, n) {
  let r = U0(Mr), o = U(() => {
    let a = e.value ? r.value.get(e.value) : void 0;
    return a ? a.count > 0 : !1;
  });
  return Ne([e, t], ([a, i], [l], s) => {
    if (!a || !i)
      return;
    Mr.dispatch("PUSH", a, n);
    let u = !1;
    s(() => {
      u || (Mr.dispatch("POP", l ?? a, n), u = !0);
    });
  }, { immediate: !0 }), o;
}
let Jl = /* @__PURE__ */ new Map(), Qo = /* @__PURE__ */ new Map();
function Rc(e, t = ne(!0)) {
  pt((n) => {
    var r;
    if (!t.value)
      return;
    let o = ae(e);
    if (!o)
      return;
    n(function() {
      var i;
      if (!o)
        return;
      let l = (i = Qo.get(o)) != null ? i : 1;
      if (l === 1 ? Qo.delete(o) : Qo.set(o, l - 1), l !== 1)
        return;
      let s = Jl.get(o);
      s && (s["aria-hidden"] === null ? o.removeAttribute("aria-hidden") : o.setAttribute("aria-hidden", s["aria-hidden"]), o.inert = s.inert, Jl.delete(o));
    });
    let a = (r = Qo.get(o)) != null ? r : 0;
    Qo.set(o, a + 1), a === 0 && (Jl.set(o, { "aria-hidden": o.getAttribute("aria-hidden"), inert: o.inert }), o.setAttribute("aria-hidden", "true"), o.inert = !0);
  });
}
function kv({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {}) {
  let r = ne(null), o = Vt(r);
  function a() {
    var i, l, s;
    let u = [];
    for (let c of e)
      c !== null && (c instanceof HTMLElement ? u.push(c) : "value" in c && c.value instanceof HTMLElement && u.push(c.value));
    if (t != null && t.value)
      for (let c of t.value)
        u.push(c);
    for (let c of (i = o == null ? void 0 : o.querySelectorAll("html > *, body > *")) != null ? i : [])
      c !== document.body && c !== document.head && c instanceof HTMLElement && c.id !== "headlessui-portal-root" && (c.contains(ae(r)) || c.contains((s = (l = ae(r)) == null ? void 0 : l.getRootNode()) == null ? void 0 : s.host) || u.some((d) => c.contains(d)) || u.push(c));
    return u;
  }
  return { resolveContainers: a, contains(i) {
    return a().some((l) => l.contains(i));
  }, mainTreeNodeRef: r, MainTreeNode() {
    return n != null ? null : Qe(Sn, { features: gn.Hidden, ref: r });
  } };
}
function X0() {
  let e = ne(null);
  return { mainTreeNodeRef: e, MainTreeNode() {
    return Qe(Sn, { features: gn.Hidden, ref: e });
  } };
}
let Pv = Symbol("ForcePortalRootContext");
function Z0() {
  return ot(Pv, !1);
}
let Os = se({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(e, { slots: t, attrs: n }) {
  return lt(Pv, e.force), () => {
    let { force: r, ...o } = e;
    return Ue({ theirProps: o, ourProps: {}, slot: {}, slots: t, attrs: n, name: "ForcePortalRoot" });
  };
} }), Iv = Symbol("StackContext");
var Cs = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(Cs || {});
function J0() {
  return ot(Iv, () => {
  });
}
function _0({ type: e, enabled: t, element: n, onUpdate: r }) {
  let o = J0();
  function a(...i) {
    r == null || r(...i), o(...i);
  }
  We(() => {
    Ne(t, (i, l) => {
      i ? a(0, e, n) : l === !0 && a(1, e, n);
    }, { immediate: !0, flush: "sync" });
  }), ct(() => {
    t.value && a(1, e, n);
  }), lt(Iv, a);
}
let Nv = Symbol("DescriptionContext");
function $0() {
  let e = ot(Nv, null);
  if (e === null)
    throw new Error("Missing parent");
  return e;
}
function Xi({ slot: e = ne({}), name: t = "Description", props: n = {} } = {}) {
  let r = ne([]);
  function o(a) {
    return r.value.push(a), () => {
      let i = r.value.indexOf(a);
      i !== -1 && r.value.splice(i, 1);
    };
  }
  return lt(Nv, { register: o, slot: e, name: t, props: n }), U(() => r.value.length > 0 ? r.value.join(" ") : void 0);
}
se({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
  var r;
  let o = (r = e.id) != null ? r : `headlessui-description-${tt()}`, a = $0();
  return We(() => ct(a.register(o))), () => {
    let { name: i = "Description", slot: l = ne({}), props: s = {} } = a, { ...u } = e, c = { ...Object.entries(s).reduce((d, [f, v]) => Object.assign(d, { [f]: X(v) }), {}), id: o };
    return Ue({ ourProps: c, theirProps: u, slot: l.value, attrs: t, slots: n, name: i });
  };
} });
function eb(e) {
  let t = Vt(e);
  if (!t) {
    if (e === null)
      return null;
    throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`);
  }
  let n = t.getElementById("headlessui-portal-root");
  if (n)
    return n;
  let r = t.createElement("div");
  return r.setAttribute("id", "headlessui-portal-root"), t.body.appendChild(r);
}
const Es = /* @__PURE__ */ new WeakMap();
function tb(e) {
  var t;
  return (t = Es.get(e)) != null ? t : 0;
}
function Bc(e, t) {
  let n = t(tb(e));
  return n <= 0 ? Es.delete(e) : Es.set(e, n), n;
}
let Mv = se({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
  let r = ne(null), o = U(() => Vt(r)), a = Z0(), i = ot(Rv, null), l = ne(a === !0 || i == null ? eb(r.value) : i.resolveTarget());
  l.value && Bc(l.value, (f) => f + 1);
  let s = ne(!1);
  We(() => {
    s.value = !0;
  }), pt(() => {
    a || i != null && (l.value = i.resolveTarget());
  });
  let u = ot(Ss, null), c = !1, d = lo();
  return Ne(r, () => {
    if (c || !u)
      return;
    let f = ae(r);
    f && (ct(u.register(f), d), c = !0);
  }), ct(() => {
    var f, v;
    let h = (f = o.value) == null ? void 0 : f.getElementById("headlessui-portal-root");
    !h || l.value !== h || Bc(l.value, (m) => m - 1) || l.value.children.length > 0 || (v = l.value.parentElement) == null || v.removeChild(l.value);
  }), () => {
    if (!s.value || l.value === null)
      return null;
    let f = { ref: r, "data-headlessui-portal": "" };
    return Qe(ga, { to: l.value }, Ue({ ourProps: f, theirProps: e, slot: {}, attrs: n, slots: t, name: "Portal" }));
  };
} }), Ss = Symbol("PortalParentContext");
function Lv() {
  let e = ot(Ss, null), t = ne([]);
  function n(a) {
    return t.value.push(a), e && e.register(a), () => r(a);
  }
  function r(a) {
    let i = t.value.indexOf(a);
    i !== -1 && t.value.splice(i, 1), e && e.unregister(a);
  }
  let o = { register: n, unregister: r, portals: t };
  return [t, se({ name: "PortalWrapper", setup(a, { slots: i }) {
    return lt(Ss, o), () => {
      var l;
      return (l = i.default) == null ? void 0 : l.call(i);
    };
  } })];
}
let Rv = Symbol("PortalGroupContext"), nb = se({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e, { attrs: t, slots: n }) {
  let r = wo({ resolveTarget() {
    return e.target;
  } });
  return lt(Rv, r), () => {
    let { target: o, ...a } = e;
    return Ue({ theirProps: a, ourProps: {}, slot: {}, attrs: t, slots: n, name: "PortalGroup" });
  };
} });
var rb = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(rb || {});
let Ts = Symbol("DialogContext");
function Da(e) {
  let t = ot(Ts, null);
  if (t === null) {
    let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
    throw Error.captureStackTrace && Error.captureStackTrace(n, Da), n;
  }
  return t;
}
let Za = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", fu = se({ name: "Dialog", inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, open: { type: [Boolean, String], default: Za }, initialFocus: { type: Object, default: null }, id: { type: String, default: null }, role: { type: String, default: "dialog" } }, emits: { close: (e) => !0 }, setup(e, { emit: t, attrs: n, slots: r, expose: o }) {
  var a, i;
  let l = (a = e.id) != null ? a : `headlessui-dialog-${tt()}`, s = ne(!1);
  We(() => {
    s.value = !0;
  });
  let u = !1, c = U(() => e.role === "dialog" || e.role === "alertdialog" ? e.role : (u || (u = !0, console.warn(`Invalid role [${c}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), d = ne(0), f = rr(), v = U(() => e.open === Za && f !== null ? (f.value & Ke.Open) === Ke.Open : e.open), h = ne(null), m = U(() => Vt(h));
  if (o({ el: h, $el: h }), !(e.open !== Za || f !== null))
    throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
  if (typeof v.value != "boolean")
    throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${v.value === Za ? void 0 : e.open}`);
  let p = U(() => s.value && v.value ? 0 : 1), g = U(() => p.value === 0), y = U(() => d.value > 1), x = ot(Ts, null) !== null, [b, w] = Lv(), { resolveContainers: D, mainTreeNodeRef: E, MainTreeNode: T } = kv({ portals: b, defaultContainers: [U(() => {
    var P;
    return (P = V.panelRef.value) != null ? P : h.value;
  })] }), L = U(() => y.value ? "parent" : "leaf"), S = U(() => f !== null ? (f.value & Ke.Closing) === Ke.Closing : !1), A = U(() => x || S.value ? !1 : g.value), C = U(() => {
    var P, R, q;
    return (q = Array.from((R = (P = m.value) == null ? void 0 : P.querySelectorAll("body > *")) != null ? R : []).find((Y) => Y.id === "headlessui-portal-root" ? !1 : Y.contains(ae(E)) && Y instanceof HTMLElement)) != null ? q : null;
  });
  Rc(C, A);
  let k = U(() => y.value ? !0 : g.value), I = U(() => {
    var P, R, q;
    return (q = Array.from((R = (P = m.value) == null ? void 0 : P.querySelectorAll("[data-headlessui-portal]")) != null ? R : []).find((Y) => Y.contains(ae(E)) && Y instanceof HTMLElement)) != null ? q : null;
  });
  Rc(I, k), _0({ type: "Dialog", enabled: U(() => p.value === 0), element: h, onUpdate: (P, R) => {
    if (R === "Dialog")
      return Ze(P, { [Cs.Add]: () => d.value += 1, [Cs.Remove]: () => d.value -= 1 });
  } });
  let N = Xi({ name: "DialogDescription", slot: U(() => ({ open: v.value })) }), F = ne(null), V = { titleId: F, panelRef: ne(null), dialogState: p, setTitleId(P) {
    F.value !== P && (F.value = P);
  }, close() {
    t("close", !1);
  } };
  lt(Ts, V);
  let G = U(() => !(!g.value || y.value));
  Ta(D, (P, R) => {
    P.preventDefault(), V.close(), rt(() => R == null ? void 0 : R.focus());
  }, G);
  let z = U(() => !(y.value || p.value !== 0));
  uu((i = m.value) == null ? void 0 : i.defaultView, "keydown", (P) => {
    z.value && (P.defaultPrevented || P.key === Ae.Escape && (P.preventDefault(), P.stopPropagation(), V.close()));
  });
  let M = U(() => !(S.value || p.value !== 0 || x));
  return K0(m, M, (P) => {
    var R;
    return { containers: [...(R = P.containers) != null ? R : [], D] };
  }), pt((P) => {
    if (p.value !== 0)
      return;
    let R = ae(h);
    if (!R)
      return;
    let q = new ResizeObserver((Y) => {
      for (let Q of Y) {
        let B = Q.target.getBoundingClientRect();
        B.x === 0 && B.y === 0 && B.width === 0 && B.height === 0 && V.close();
      }
    });
    q.observe(R), P(() => q.disconnect());
  }), () => {
    let { open: P, initialFocus: R, ...q } = e, Y = { ...n, ref: h, id: l, role: c.value, "aria-modal": p.value === 0 ? !0 : void 0, "aria-labelledby": F.value, "aria-describedby": N.value }, Q = { open: p.value === 0 };
    return Qe(Os, { force: !0 }, () => [Qe(Mv, () => Qe(nb, { target: h.value }, () => Qe(Os, { force: !1 }, () => Qe(Yo, { initialFocus: R, containers: D, features: g.value ? Ze(L.value, { parent: Yo.features.RestoreFocus, leaf: Yo.features.All & ~Yo.features.FocusLock }) : Yo.features.None }, () => Qe(w, {}, () => Ue({ ourProps: Y, theirProps: { ...q, ...n }, slot: Q, attrs: n, slots: r, visible: p.value === 0, features: Dt.RenderStrategy | Dt.Static, name: "Dialog" })))))), Qe(T)]);
  };
} });
se({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
  var r;
  let o = (r = e.id) != null ? r : `headlessui-dialog-overlay-${tt()}`, a = Da("DialogOverlay");
  function i(l) {
    l.target === l.currentTarget && (l.preventDefault(), l.stopPropagation(), a.close());
  }
  return () => {
    let { ...l } = e;
    return Ue({ ourProps: { id: o, "aria-hidden": !0, onClick: i }, theirProps: l, slot: { open: a.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogOverlay" });
  };
} });
se({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
  var o;
  let a = (o = e.id) != null ? o : `headlessui-dialog-backdrop-${tt()}`, i = Da("DialogBackdrop"), l = ne(null);
  return r({ el: l, $el: l }), We(() => {
    if (i.panelRef.value === null)
      throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
  }), () => {
    let { ...s } = e, u = { id: a, ref: l, "aria-hidden": !0 };
    return Qe(Os, { force: !0 }, () => Qe(Mv, () => Ue({ ourProps: u, theirProps: { ...t, ...s }, slot: { open: i.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogBackdrop" })));
  };
} });
let du = se({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
  var o;
  let a = (o = e.id) != null ? o : `headlessui-dialog-panel-${tt()}`, i = Da("DialogPanel");
  r({ el: i.panelRef, $el: i.panelRef });
  function l(s) {
    s.stopPropagation();
  }
  return () => {
    let { ...s } = e, u = { id: a, ref: i.panelRef, onClick: l };
    return Ue({ ourProps: u, theirProps: s, slot: { open: i.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogPanel" });
  };
} });
se({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
  var r;
  let o = (r = e.id) != null ? r : `headlessui-dialog-title-${tt()}`, a = Da("DialogTitle");
  return We(() => {
    a.setTitleId(o), ct(() => a.setTitleId(null));
  }), () => {
    let { ...i } = e;
    return Ue({ ourProps: { id: o }, theirProps: i, slot: { open: a.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogTitle" });
  };
} });
var ob = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(ob || {});
let Bv = Symbol("DisclosureContext");
function vu(e) {
  let t = ot(Bv, null);
  if (t === null) {
    let n = new Error(`<${e} /> is missing a parent <Disclosure /> component.`);
    throw Error.captureStackTrace && Error.captureStackTrace(n, vu), n;
  }
  return t;
}
let Fv = Symbol("DisclosurePanelContext");
function ab() {
  return ot(Fv, null);
}
let jv = se({ name: "Disclosure", props: { as: { type: [Object, String], default: "template" }, defaultOpen: { type: [Boolean], default: !1 } }, setup(e, { slots: t, attrs: n }) {
  let r = ne(e.defaultOpen ? 0 : 1), o = ne(null), a = ne(null), i = { buttonId: ne(`headlessui-disclosure-button-${tt()}`), panelId: ne(`headlessui-disclosure-panel-${tt()}`), disclosureState: r, panel: o, button: a, toggleDisclosure() {
    r.value = Ze(r.value, { 0: 1, 1: 0 });
  }, closeDisclosure() {
    r.value !== 1 && (r.value = 1);
  }, close(l) {
    i.closeDisclosure();
    let s = l ? l instanceof HTMLElement ? l : l.value instanceof HTMLElement ? ae(l) : ae(i.button) : ae(i.button);
    s == null || s.focus();
  } };
  return lt(Bv, i), Co(U(() => Ze(r.value, { 0: Ke.Open, 1: Ke.Closed }))), () => {
    let { defaultOpen: l, ...s } = e, u = { open: r.value === 0, close: i.close };
    return Ue({ theirProps: s, ourProps: {}, slot: u, slots: t, attrs: n, name: "Disclosure" });
  };
} }), qv = se({ name: "DisclosureButton", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: !1 }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
  let o = vu("DisclosureButton"), a = ab(), i = U(() => a === null ? !1 : a.value === o.panelId.value);
  We(() => {
    i.value || e.id !== null && (o.buttonId.value = e.id);
  }), ct(() => {
    i.value || (o.buttonId.value = null);
  });
  let l = ne(null);
  r({ el: l, $el: l }), i.value || pt(() => {
    o.button.value = l.value;
  });
  let s = Oo(U(() => ({ as: e.as, type: t.type })), l);
  function u() {
    var f;
    e.disabled || (i.value ? (o.toggleDisclosure(), (f = ae(o.button)) == null || f.focus()) : o.toggleDisclosure());
  }
  function c(f) {
    var v;
    if (!e.disabled)
      if (i.value)
        switch (f.key) {
          case Ae.Space:
          case Ae.Enter:
            f.preventDefault(), f.stopPropagation(), o.toggleDisclosure(), (v = ae(o.button)) == null || v.focus();
            break;
        }
      else
        switch (f.key) {
          case Ae.Space:
          case Ae.Enter:
            f.preventDefault(), f.stopPropagation(), o.toggleDisclosure();
            break;
        }
  }
  function d(f) {
    switch (f.key) {
      case Ae.Space:
        f.preventDefault();
        break;
    }
  }
  return () => {
    var f;
    let v = { open: o.disclosureState.value === 0 }, { id: h, ...m } = e, p = i.value ? { ref: l, type: s.value, onClick: u, onKeydown: c } : { id: (f = o.buttonId.value) != null ? f : h, ref: l, type: s.value, "aria-expanded": o.disclosureState.value === 0, "aria-controls": o.disclosureState.value === 0 || ae(o.panel) ? o.panelId.value : void 0, disabled: e.disabled ? !0 : void 0, onClick: u, onKeydown: c, onKeyup: d };
    return Ue({ ourProps: p, theirProps: m, slot: v, attrs: t, slots: n, name: "DisclosureButton" });
  };
} }), Vv = se({ name: "DisclosurePanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
  let o = vu("DisclosurePanel");
  We(() => {
    e.id !== null && (o.panelId.value = e.id);
  }), ct(() => {
    o.panelId.value = null;
  }), r({ el: o.panel, $el: o.panel }), lt(Fv, o.panelId);
  let a = rr(), i = U(() => a !== null ? (a.value & Ke.Open) === Ke.Open : o.disclosureState.value === 0);
  return () => {
    var l;
    let s = { open: o.disclosureState.value === 0, close: o.close }, { id: u, ...c } = e, d = { id: (l = o.panelId.value) != null ? l : u, ref: o.panel };
    return Ue({ ourProps: d, theirProps: c, slot: s, attrs: t, slots: n, features: Dt.RenderStrategy | Dt.Static, visible: i.value, name: "DisclosurePanel" });
  };
} }), Fc = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
function jc(e) {
  var t, n;
  let r = (t = e.innerText) != null ? t : "", o = e.cloneNode(!0);
  if (!(o instanceof HTMLElement))
    return r;
  let a = !1;
  for (let l of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))
    l.remove(), a = !0;
  let i = a ? (n = o.innerText) != null ? n : "" : r;
  return Fc.test(i) && (i = i.replace(Fc, "")), i;
}
function ib(e) {
  let t = e.getAttribute("aria-label");
  if (typeof t == "string")
    return t.trim();
  let n = e.getAttribute("aria-labelledby");
  if (n) {
    let r = n.split(" ").map((o) => {
      let a = document.getElementById(o);
      if (a) {
        let i = a.getAttribute("aria-label");
        return typeof i == "string" ? i.trim() : jc(a).trim();
      }
      return null;
    }).filter(Boolean);
    if (r.length > 0)
      return r.join(", ");
  }
  return jc(e).trim();
}
function zv(e) {
  let t = ne(""), n = ne("");
  return () => {
    let r = ae(e);
    if (!r)
      return "";
    let o = r.innerText;
    if (t.value === o)
      return n.value;
    let a = ib(r).trim().toLowerCase();
    return t.value = o, n.value = a, a;
  };
}
function lb(e, t) {
  return e === t;
}
var sb = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(sb || {}), ub = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(ub || {}), cb = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(cb || {});
function fb(e) {
  requestAnimationFrame(() => requestAnimationFrame(e));
}
let Uv = Symbol("ListboxContext");
function ka(e) {
  let t = ot(Uv, null);
  if (t === null) {
    let n = new Error(`<${e} /> is missing a parent <Listbox /> component.`);
    throw Error.captureStackTrace && Error.captureStackTrace(n, ka), n;
  }
  return t;
}
let db = se({ name: "Listbox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], default: () => lb }, horizontal: { type: [Boolean], default: !1 }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, multiple: { type: [Boolean], default: !1 } }, inheritAttrs: !1, setup(e, { slots: t, attrs: n, emit: r }) {
  let o = ne(1), a = ne(null), i = ne(null), l = ne(null), s = ne([]), u = ne(""), c = ne(null), d = ne(1);
  function f(x = (b) => b) {
    let b = c.value !== null ? s.value[c.value] : null, w = Sa(x(s.value.slice()), (E) => ae(E.dataRef.domRef)), D = b ? w.indexOf(b) : null;
    return D === -1 && (D = null), { options: w, activeOptionIndex: D };
  }
  let v = U(() => e.multiple ? 1 : 0), [h, m] = Wi(U(() => e.modelValue), (x) => r("update:modelValue", x), U(() => e.defaultValue)), p = U(() => h.value === void 0 ? Ze(v.value, { 1: [], 0: void 0 }) : h.value), g = { listboxState: o, value: p, mode: v, compare(x, b) {
    if (typeof e.by == "string") {
      let w = e.by;
      return (x == null ? void 0 : x[w]) === (b == null ? void 0 : b[w]);
    }
    return e.by(x, b);
  }, orientation: U(() => e.horizontal ? "horizontal" : "vertical"), labelRef: a, buttonRef: i, optionsRef: l, disabled: U(() => e.disabled), options: s, searchQuery: u, activeOptionIndex: c, activationTrigger: d, closeListbox() {
    e.disabled || o.value !== 1 && (o.value = 1, c.value = null);
  }, openListbox() {
    e.disabled || o.value !== 0 && (o.value = 0);
  }, goToOption(x, b, w) {
    if (e.disabled || o.value === 1)
      return;
    let D = f(), E = wi(x === Fe.Specific ? { focus: Fe.Specific, id: b } : { focus: x }, { resolveItems: () => D.options, resolveActiveIndex: () => D.activeOptionIndex, resolveId: (T) => T.id, resolveDisabled: (T) => T.dataRef.disabled });
    u.value = "", c.value = E, d.value = w ?? 1, s.value = D.options;
  }, search(x) {
    if (e.disabled || o.value === 1)
      return;
    let b = u.value !== "" ? 0 : 1;
    u.value += x.toLowerCase();
    let w = (c.value !== null ? s.value.slice(c.value + b).concat(s.value.slice(0, c.value + b)) : s.value).find((E) => E.dataRef.textValue.startsWith(u.value) && !E.dataRef.disabled), D = w ? s.value.indexOf(w) : -1;
    D === -1 || D === c.value || (c.value = D, d.value = 1);
  }, clearSearch() {
    e.disabled || o.value !== 1 && u.value !== "" && (u.value = "");
  }, registerOption(x, b) {
    let w = f((D) => [...D, { id: x, dataRef: b }]);
    s.value = w.options, c.value = w.activeOptionIndex;
  }, unregisterOption(x) {
    let b = f((w) => {
      let D = w.findIndex((E) => E.id === x);
      return D !== -1 && w.splice(D, 1), w;
    });
    s.value = b.options, c.value = b.activeOptionIndex, d.value = 1;
  }, theirOnChange(x) {
    e.disabled || m(x);
  }, select(x) {
    e.disabled || m(Ze(v.value, { 0: () => x, 1: () => {
      let b = st(g.value.value).slice(), w = st(x), D = b.findIndex((E) => g.compare(w, st(E)));
      return D === -1 ? b.push(w) : b.splice(D, 1), b;
    } }));
  } };
  Ta([i, l], (x, b) => {
    var w;
    g.closeListbox(), Ea(b, Ca.Loose) || (x.preventDefault(), (w = ae(i)) == null || w.focus());
  }, U(() => o.value === 0)), lt(Uv, g), Co(U(() => Ze(o.value, { 0: Ke.Open, 1: Ke.Closed })));
  let y = U(() => {
    var x;
    return (x = ae(i)) == null ? void 0 : x.closest("form");
  });
  return We(() => {
    Ne([y], () => {
      if (!y.value || e.defaultValue === void 0)
        return;
      function x() {
        g.theirOnChange(e.defaultValue);
      }
      return y.value.addEventListener("reset", x), () => {
        var b;
        (b = y.value) == null || b.removeEventListener("reset", x);
      };
    }, { immediate: !0 });
  }), () => {
    let { name: x, modelValue: b, disabled: w, form: D, ...E } = e, T = { open: o.value === 0, disabled: w, value: p.value };
    return Qe(He, [...x != null && p.value != null ? Ki({ [x]: p.value }).map(([L, S]) => Qe(Sn, Gi({ features: gn.Hidden, key: L, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: D, disabled: w, name: L, value: S }))) : [], Ue({ ourProps: {}, theirProps: { ...n, ...Or(E, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: T, slots: t, attrs: n, name: "Listbox" })]);
  };
} });
se({ name: "ListboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
  var r;
  let o = (r = e.id) != null ? r : `headlessui-listbox-label-${tt()}`, a = ka("ListboxLabel");
  function i() {
    var l;
    (l = ae(a.buttonRef)) == null || l.focus({ preventScroll: !0 });
  }
  return () => {
    let l = { open: a.listboxState.value === 0, disabled: a.disabled.value }, { ...s } = e, u = { id: o, ref: a.labelRef, onClick: i };
    return Ue({ ourProps: u, theirProps: s, slot: l, attrs: t, slots: n, name: "ListboxLabel" });
  };
} });
let vb = se({ name: "ListboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
  var o;
  let a = (o = e.id) != null ? o : `headlessui-listbox-button-${tt()}`, i = ka("ListboxButton");
  r({ el: i.buttonRef, $el: i.buttonRef });
  function l(d) {
    switch (d.key) {
      case Ae.Space:
      case Ae.Enter:
      case Ae.ArrowDown:
        d.preventDefault(), i.openListbox(), rt(() => {
          var f;
          (f = ae(i.optionsRef)) == null || f.focus({ preventScroll: !0 }), i.value.value || i.goToOption(Fe.First);
        });
        break;
      case Ae.ArrowUp:
        d.preventDefault(), i.openListbox(), rt(() => {
          var f;
          (f = ae(i.optionsRef)) == null || f.focus({ preventScroll: !0 }), i.value.value || i.goToOption(Fe.Last);
        });
        break;
    }
  }
  function s(d) {
    switch (d.key) {
      case Ae.Space:
        d.preventDefault();
        break;
    }
  }
  function u(d) {
    i.disabled.value || (i.listboxState.value === 0 ? (i.closeListbox(), rt(() => {
      var f;
      return (f = ae(i.buttonRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
    })) : (d.preventDefault(), i.openListbox(), fb(() => {
      var f;
      return (f = ae(i.optionsRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
    })));
  }
  let c = Oo(U(() => ({ as: e.as, type: t.type })), i.buttonRef);
  return () => {
    var d, f;
    let v = { open: i.listboxState.value === 0, disabled: i.disabled.value, value: i.value.value }, { ...h } = e, m = { ref: i.buttonRef, id: a, type: c.value, "aria-haspopup": "listbox", "aria-controls": (d = ae(i.optionsRef)) == null ? void 0 : d.id, "aria-expanded": i.listboxState.value === 0, "aria-labelledby": i.labelRef.value ? [(f = ae(i.labelRef)) == null ? void 0 : f.id, a].join(" ") : void 0, disabled: i.disabled.value === !0 ? !0 : void 0, onKeydown: l, onKeyup: s, onClick: u };
    return Ue({ ourProps: m, theirProps: h, slot: v, attrs: t, slots: n, name: "ListboxButton" });
  };
} }), hb = se({ name: "ListboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
  var o;
  let a = (o = e.id) != null ? o : `headlessui-listbox-options-${tt()}`, i = ka("ListboxOptions"), l = ne(null);
  r({ el: i.optionsRef, $el: i.optionsRef });
  function s(d) {
    switch (l.value && clearTimeout(l.value), d.key) {
      case Ae.Space:
        if (i.searchQuery.value !== "")
          return d.preventDefault(), d.stopPropagation(), i.search(d.key);
      case Ae.Enter:
        if (d.preventDefault(), d.stopPropagation(), i.activeOptionIndex.value !== null) {
          let f = i.options.value[i.activeOptionIndex.value];
          i.select(f.dataRef.value);
        }
        i.mode.value === 0 && (i.closeListbox(), rt(() => {
          var f;
          return (f = ae(i.buttonRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
        }));
        break;
      case Ze(i.orientation.value, { vertical: Ae.ArrowDown, horizontal: Ae.ArrowRight }):
        return d.preventDefault(), d.stopPropagation(), i.goToOption(Fe.Next);
      case Ze(i.orientation.value, { vertical: Ae.ArrowUp, horizontal: Ae.ArrowLeft }):
        return d.preventDefault(), d.stopPropagation(), i.goToOption(Fe.Previous);
      case Ae.Home:
      case Ae.PageUp:
        return d.preventDefault(), d.stopPropagation(), i.goToOption(Fe.First);
      case Ae.End:
      case Ae.PageDown:
        return d.preventDefault(), d.stopPropagation(), i.goToOption(Fe.Last);
      case Ae.Escape:
        d.preventDefault(), d.stopPropagation(), i.closeListbox(), rt(() => {
          var f;
          return (f = ae(i.buttonRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
        });
        break;
      case Ae.Tab:
        d.preventDefault(), d.stopPropagation();
        break;
      default:
        d.key.length === 1 && (i.search(d.key), l.value = setTimeout(() => i.clearSearch(), 350));
        break;
    }
  }
  let u = rr(), c = U(() => u !== null ? (u.value & Ke.Open) === Ke.Open : i.listboxState.value === 0);
  return () => {
    var d, f;
    let v = { open: i.listboxState.value === 0 }, { ...h } = e, m = { "aria-activedescendant": i.activeOptionIndex.value === null || (d = i.options.value[i.activeOptionIndex.value]) == null ? void 0 : d.id, "aria-multiselectable": i.mode.value === 1 ? !0 : void 0, "aria-labelledby": (f = ae(i.buttonRef)) == null ? void 0 : f.id, "aria-orientation": i.orientation.value, id: a, onKeydown: s, role: "listbox", tabIndex: 0, ref: i.optionsRef };
    return Ue({ ourProps: m, theirProps: h, slot: v, attrs: t, slots: n, features: Dt.RenderStrategy | Dt.Static, visible: c.value, name: "ListboxOptions" });
  };
} }), pb = se({ name: "ListboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: null } }, setup(e, { slots: t, attrs: n, expose: r }) {
  var o;
  let a = (o = e.id) != null ? o : `headlessui-listbox-option-${tt()}`, i = ka("ListboxOption"), l = ne(null);
  r({ el: l, $el: l });
  let s = U(() => i.activeOptionIndex.value !== null ? i.options.value[i.activeOptionIndex.value].id === a : !1), u = U(() => Ze(i.mode.value, { 0: () => i.compare(st(i.value.value), st(e.value)), 1: () => st(i.value.value).some((x) => i.compare(st(x), st(e.value))) })), c = U(() => Ze(i.mode.value, { 1: () => {
    var x;
    let b = st(i.value.value);
    return ((x = i.options.value.find((w) => b.some((D) => i.compare(st(D), st(w.dataRef.value))))) == null ? void 0 : x.id) === a;
  }, 0: () => u.value })), d = zv(l), f = U(() => ({ disabled: e.disabled, value: e.value, get textValue() {
    return d();
  }, domRef: l }));
  We(() => i.registerOption(a, f)), ct(() => i.unregisterOption(a)), We(() => {
    Ne([i.listboxState, u], () => {
      i.listboxState.value === 0 && u.value && Ze(i.mode.value, { 1: () => {
        c.value && i.goToOption(Fe.Specific, a);
      }, 0: () => {
        i.goToOption(Fe.Specific, a);
      } });
    }, { immediate: !0 });
  }), pt(() => {
    i.listboxState.value === 0 && s.value && i.activationTrigger.value !== 0 && rt(() => {
      var x, b;
      return (b = (x = ae(l)) == null ? void 0 : x.scrollIntoView) == null ? void 0 : b.call(x, { block: "nearest" });
    });
  });
  function v(x) {
    if (e.disabled)
      return x.preventDefault();
    i.select(e.value), i.mode.value === 0 && (i.closeListbox(), rt(() => {
      var b;
      return (b = ae(i.buttonRef)) == null ? void 0 : b.focus({ preventScroll: !0 });
    }));
  }
  function h() {
    if (e.disabled)
      return i.goToOption(Fe.Nothing);
    i.goToOption(Fe.Specific, a);
  }
  let m = lu();
  function p(x) {
    m.update(x);
  }
  function g(x) {
    m.wasMoved(x) && (e.disabled || s.value || i.goToOption(Fe.Specific, a, 0));
  }
  function y(x) {
    m.wasMoved(x) && (e.disabled || s.value && i.goToOption(Fe.Nothing));
  }
  return () => {
    let { disabled: x } = e, b = { active: s.value, selected: u.value, disabled: x }, { value: w, disabled: D, ...E } = e, T = { id: a, ref: l, role: "option", tabIndex: x === !0 ? void 0 : -1, "aria-disabled": x === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onClick: v, onFocus: h, onPointerenter: p, onMouseenter: p, onPointermove: g, onMousemove: g, onPointerleave: y, onMouseleave: y };
    return Ue({ ourProps: T, theirProps: E, slot: b, attrs: n, slots: t, name: "ListboxOption" });
  };
} });
var gb = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(gb || {}), mb = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(mb || {});
function yb(e) {
  requestAnimationFrame(() => requestAnimationFrame(e));
}
let Hv = Symbol("MenuContext");
function Zi(e) {
  let t = ot(Hv, null);
  if (t === null) {
    let n = new Error(`<${e} /> is missing a parent <Menu /> component.`);
    throw Error.captureStackTrace && Error.captureStackTrace(n, Zi), n;
  }
  return t;
}
let bb = se({ name: "Menu", props: { as: { type: [Object, String], default: "template" } }, setup(e, { slots: t, attrs: n }) {
  let r = ne(1), o = ne(null), a = ne(null), i = ne([]), l = ne(""), s = ne(null), u = ne(1);
  function c(f = (v) => v) {
    let v = s.value !== null ? i.value[s.value] : null, h = Sa(f(i.value.slice()), (p) => ae(p.dataRef.domRef)), m = v ? h.indexOf(v) : null;
    return m === -1 && (m = null), { items: h, activeItemIndex: m };
  }
  let d = { menuState: r, buttonRef: o, itemsRef: a, items: i, searchQuery: l, activeItemIndex: s, activationTrigger: u, closeMenu: () => {
    r.value = 1, s.value = null;
  }, openMenu: () => r.value = 0, goToItem(f, v, h) {
    let m = c(), p = wi(f === Fe.Specific ? { focus: Fe.Specific, id: v } : { focus: f }, { resolveItems: () => m.items, resolveActiveIndex: () => m.activeItemIndex, resolveId: (g) => g.id, resolveDisabled: (g) => g.dataRef.disabled });
    l.value = "", s.value = p, u.value = h ?? 1, i.value = m.items;
  }, search(f) {
    let v = l.value !== "" ? 0 : 1;
    l.value += f.toLowerCase();
    let h = (s.value !== null ? i.value.slice(s.value + v).concat(i.value.slice(0, s.value + v)) : i.value).find((p) => p.dataRef.textValue.startsWith(l.value) && !p.dataRef.disabled), m = h ? i.value.indexOf(h) : -1;
    m === -1 || m === s.value || (s.value = m, u.value = 1);
  }, clearSearch() {
    l.value = "";
  }, registerItem(f, v) {
    let h = c((m) => [...m, { id: f, dataRef: v }]);
    i.value = h.items, s.value = h.activeItemIndex, u.value = 1;
  }, unregisterItem(f) {
    let v = c((h) => {
      let m = h.findIndex((p) => p.id === f);
      return m !== -1 && h.splice(m, 1), h;
    });
    i.value = v.items, s.value = v.activeItemIndex, u.value = 1;
  } };
  return Ta([o, a], (f, v) => {
    var h;
    d.closeMenu(), Ea(v, Ca.Loose) || (f.preventDefault(), (h = ae(o)) == null || h.focus());
  }, U(() => r.value === 0)), lt(Hv, d), Co(U(() => Ze(r.value, { 0: Ke.Open, 1: Ke.Closed }))), () => {
    let f = { open: r.value === 0, close: d.closeMenu };
    return Ue({ ourProps: {}, theirProps: e, slot: f, slots: t, attrs: n, name: "Menu" });
  };
} }), wb = se({ name: "MenuButton", props: { disabled: { type: Boolean, default: !1 }, as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
  var o;
  let a = (o = e.id) != null ? o : `headlessui-menu-button-${tt()}`, i = Zi("MenuButton");
  r({ el: i.buttonRef, $el: i.buttonRef });
  function l(d) {
    switch (d.key) {
      case Ae.Space:
      case Ae.Enter:
      case Ae.ArrowDown:
        d.preventDefault(), d.stopPropagation(), i.openMenu(), rt(() => {
          var f;
          (f = ae(i.itemsRef)) == null || f.focus({ preventScroll: !0 }), i.goToItem(Fe.First);
        });
        break;
      case Ae.ArrowUp:
        d.preventDefault(), d.stopPropagation(), i.openMenu(), rt(() => {
          var f;
          (f = ae(i.itemsRef)) == null || f.focus({ preventScroll: !0 }), i.goToItem(Fe.Last);
        });
        break;
    }
  }
  function s(d) {
    switch (d.key) {
      case Ae.Space:
        d.preventDefault();
        break;
    }
  }
  function u(d) {
    e.disabled || (i.menuState.value === 0 ? (i.closeMenu(), rt(() => {
      var f;
      return (f = ae(i.buttonRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
    })) : (d.preventDefault(), i.openMenu(), yb(() => {
      var f;
      return (f = ae(i.itemsRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
    })));
  }
  let c = Oo(U(() => ({ as: e.as, type: t.type })), i.buttonRef);
  return () => {
    var d;
    let f = { open: i.menuState.value === 0 }, { ...v } = e, h = { ref: i.buttonRef, id: a, type: c.value, "aria-haspopup": "menu", "aria-controls": (d = ae(i.itemsRef)) == null ? void 0 : d.id, "aria-expanded": i.menuState.value === 0, onKeydown: l, onKeyup: s, onClick: u };
    return Ue({ ourProps: h, theirProps: v, slot: f, attrs: t, slots: n, name: "MenuButton" });
  };
} }), xb = se({ name: "MenuItems", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
  var o;
  let a = (o = e.id) != null ? o : `headlessui-menu-items-${tt()}`, i = Zi("MenuItems"), l = ne(null);
  r({ el: i.itemsRef, $el: i.itemsRef }), su({ container: U(() => ae(i.itemsRef)), enabled: U(() => i.menuState.value === 0), accept(f) {
    return f.getAttribute("role") === "menuitem" ? NodeFilter.FILTER_REJECT : f.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
  }, walk(f) {
    f.setAttribute("role", "none");
  } });
  function s(f) {
    var v;
    switch (l.value && clearTimeout(l.value), f.key) {
      case Ae.Space:
        if (i.searchQuery.value !== "")
          return f.preventDefault(), f.stopPropagation(), i.search(f.key);
      case Ae.Enter:
        if (f.preventDefault(), f.stopPropagation(), i.activeItemIndex.value !== null) {
          let h = i.items.value[i.activeItemIndex.value];
          (v = ae(h.dataRef.domRef)) == null || v.click();
        }
        i.closeMenu(), vv(ae(i.buttonRef));
        break;
      case Ae.ArrowDown:
        return f.preventDefault(), f.stopPropagation(), i.goToItem(Fe.Next);
      case Ae.ArrowUp:
        return f.preventDefault(), f.stopPropagation(), i.goToItem(Fe.Previous);
      case Ae.Home:
      case Ae.PageUp:
        return f.preventDefault(), f.stopPropagation(), i.goToItem(Fe.First);
      case Ae.End:
      case Ae.PageDown:
        return f.preventDefault(), f.stopPropagation(), i.goToItem(Fe.Last);
      case Ae.Escape:
        f.preventDefault(), f.stopPropagation(), i.closeMenu(), rt(() => {
          var h;
          return (h = ae(i.buttonRef)) == null ? void 0 : h.focus({ preventScroll: !0 });
        });
        break;
      case Ae.Tab:
        f.preventDefault(), f.stopPropagation(), i.closeMenu(), rt(() => A0(ae(i.buttonRef), f.shiftKey ? yt.Previous : yt.Next));
        break;
      default:
        f.key.length === 1 && (i.search(f.key), l.value = setTimeout(() => i.clearSearch(), 350));
        break;
    }
  }
  function u(f) {
    switch (f.key) {
      case Ae.Space:
        f.preventDefault();
        break;
    }
  }
  let c = rr(), d = U(() => c !== null ? (c.value & Ke.Open) === Ke.Open : i.menuState.value === 0);
  return () => {
    var f, v;
    let h = { open: i.menuState.value === 0 }, { ...m } = e, p = { "aria-activedescendant": i.activeItemIndex.value === null || (f = i.items.value[i.activeItemIndex.value]) == null ? void 0 : f.id, "aria-labelledby": (v = ae(i.buttonRef)) == null ? void 0 : v.id, id: a, onKeydown: s, onKeyup: u, role: "menu", tabIndex: 0, ref: i.itemsRef };
    return Ue({ ourProps: p, theirProps: m, slot: h, attrs: t, slots: n, features: Dt.RenderStrategy | Dt.Static, visible: d.value, name: "MenuItems" });
  };
} });
se({ name: "MenuItem", inheritAttrs: !1, props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: null } }, setup(e, { slots: t, attrs: n, expose: r }) {
  var o;
  let a = (o = e.id) != null ? o : `headlessui-menu-item-${tt()}`, i = Zi("MenuItem"), l = ne(null);
  r({ el: l, $el: l });
  let s = U(() => i.activeItemIndex.value !== null ? i.items.value[i.activeItemIndex.value].id === a : !1), u = zv(l), c = U(() => ({ disabled: e.disabled, get textValue() {
    return u();
  }, domRef: l }));
  We(() => i.registerItem(a, c)), ct(() => i.unregisterItem(a)), pt(() => {
    i.menuState.value === 0 && s.value && i.activationTrigger.value !== 0 && rt(() => {
      var g, y;
      return (y = (g = ae(l)) == null ? void 0 : g.scrollIntoView) == null ? void 0 : y.call(g, { block: "nearest" });
    });
  });
  function d(g) {
    if (e.disabled)
      return g.preventDefault();
    i.closeMenu(), vv(ae(i.buttonRef));
  }
  function f() {
    if (e.disabled)
      return i.goToItem(Fe.Nothing);
    i.goToItem(Fe.Specific, a);
  }
  let v = lu();
  function h(g) {
    v.update(g);
  }
  function m(g) {
    v.wasMoved(g) && (e.disabled || s.value || i.goToItem(Fe.Specific, a, 0));
  }
  function p(g) {
    v.wasMoved(g) && (e.disabled || s.value && i.goToItem(Fe.Nothing));
  }
  return () => {
    let { disabled: g, ...y } = e, x = { active: s.value, disabled: g, close: i.closeMenu };
    return Ue({ ourProps: { id: a, ref: l, role: "menuitem", tabIndex: g === !0 ? void 0 : -1, "aria-disabled": g === !0 ? !0 : void 0, onClick: d, onFocus: f, onPointerenter: h, onMouseenter: h, onPointermove: m, onMousemove: m, onPointerleave: p, onMouseleave: p }, theirProps: { ...n, ...y }, slot: x, attrs: n, slots: t, name: "MenuItem" });
  };
} });
var Ab = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Ab || {});
let Yv = Symbol("PopoverContext");
function Ji(e) {
  let t = ot(Yv, null);
  if (t === null) {
    let n = new Error(`<${e} /> is missing a parent <${Kv.name} /> component.`);
    throw Error.captureStackTrace && Error.captureStackTrace(n, Ji), n;
  }
  return t;
}
let Qv = Symbol("PopoverGroupContext");
function Wv() {
  return ot(Qv, null);
}
let Gv = Symbol("PopoverPanelContext");
function Ob() {
  return ot(Gv, null);
}
let Kv = se({ name: "Popover", inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n, expose: r }) {
  var o;
  let a = ne(null);
  r({ el: a, $el: a });
  let i = ne(1), l = ne(null), s = ne(null), u = ne(null), c = ne(null), d = U(() => Vt(a)), f = U(() => {
    var w, D;
    if (!ae(l) || !ae(c))
      return !1;
    for (let k of document.querySelectorAll("body > *"))
      if (Number(k == null ? void 0 : k.contains(ae(l))) ^ Number(k == null ? void 0 : k.contains(ae(c))))
        return !0;
    let E = Oa(), T = E.indexOf(ae(l)), L = (T + E.length - 1) % E.length, S = (T + 1) % E.length, A = E[L], C = E[S];
    return !((w = ae(c)) != null && w.contains(A)) && !((D = ae(c)) != null && D.contains(C));
  }), v = { popoverState: i, buttonId: ne(null), panelId: ne(null), panel: c, button: l, isPortalled: f, beforePanelSentinel: s, afterPanelSentinel: u, togglePopover() {
    i.value = Ze(i.value, { 0: 1, 1: 0 });
  }, closePopover() {
    i.value !== 1 && (i.value = 1);
  }, close(w) {
    v.closePopover();
    let D = w ? w instanceof HTMLElement ? w : w.value instanceof HTMLElement ? ae(w) : ae(v.button) : ae(v.button);
    D == null || D.focus();
  } };
  lt(Yv, v), Co(U(() => Ze(i.value, { 0: Ke.Open, 1: Ke.Closed })));
  let h = { buttonId: v.buttonId, panelId: v.panelId, close() {
    v.closePopover();
  } }, m = Wv(), p = m == null ? void 0 : m.registerPopover, [g, y] = Lv(), x = kv({ mainTreeNodeRef: m == null ? void 0 : m.mainTreeNodeRef, portals: g, defaultContainers: [l, c] });
  function b() {
    var w, D, E, T;
    return (T = m == null ? void 0 : m.isFocusWithinPopoverGroup()) != null ? T : ((w = d.value) == null ? void 0 : w.activeElement) && (((D = ae(l)) == null ? void 0 : D.contains(d.value.activeElement)) || ((E = ae(c)) == null ? void 0 : E.contains(d.value.activeElement)));
  }
  return pt(() => p == null ? void 0 : p(h)), uu((o = d.value) == null ? void 0 : o.defaultView, "focus", (w) => {
    var D, E;
    w.target !== window && w.target instanceof HTMLElement && i.value === 0 && (b() || l && c && (x.contains(w.target) || (D = ae(v.beforePanelSentinel)) != null && D.contains(w.target) || (E = ae(v.afterPanelSentinel)) != null && E.contains(w.target) || v.closePopover()));
  }, !0), Ta(x.resolveContainers, (w, D) => {
    var E;
    v.closePopover(), Ea(D, Ca.Loose) || (w.preventDefault(), (E = ae(l)) == null || E.focus());
  }, U(() => i.value === 0)), () => {
    let w = { open: i.value === 0, close: v.close };
    return Qe(He, [Qe(y, {}, () => Ue({ theirProps: { ...e, ...n }, ourProps: { ref: a }, slot: w, slots: t, attrs: n, name: "Popover" })), Qe(x.MainTreeNode)]);
  };
} }), Cb = se({ name: "PopoverButton", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: !1 }, id: { type: String, default: null } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
  var o;
  let a = (o = e.id) != null ? o : `headlessui-popover-button-${tt()}`, i = Ji("PopoverButton"), l = U(() => Vt(i.button));
  r({ el: i.button, $el: i.button }), We(() => {
    i.buttonId.value = a;
  }), ct(() => {
    i.buttonId.value = null;
  });
  let s = Wv(), u = s == null ? void 0 : s.closeOthers, c = Ob(), d = U(() => c === null ? !1 : c.value === i.panelId.value), f = ne(null), v = `headlessui-focus-sentinel-${tt()}`;
  d.value || pt(() => {
    i.button.value = ae(f);
  });
  let h = Oo(U(() => ({ as: e.as, type: t.type })), f);
  function m(w) {
    var D, E, T, L, S;
    if (d.value) {
      if (i.popoverState.value === 1)
        return;
      switch (w.key) {
        case Ae.Space:
        case Ae.Enter:
          w.preventDefault(), (E = (D = w.target).click) == null || E.call(D), i.closePopover(), (T = ae(i.button)) == null || T.focus();
          break;
      }
    } else
      switch (w.key) {
        case Ae.Space:
        case Ae.Enter:
          w.preventDefault(), w.stopPropagation(), i.popoverState.value === 1 && (u == null || u(i.buttonId.value)), i.togglePopover();
          break;
        case Ae.Escape:
          if (i.popoverState.value !== 0)
            return u == null ? void 0 : u(i.buttonId.value);
          if (!ae(i.button) || (L = l.value) != null && L.activeElement && !((S = ae(i.button)) != null && S.contains(l.value.activeElement)))
            return;
          w.preventDefault(), w.stopPropagation(), i.closePopover();
          break;
      }
  }
  function p(w) {
    d.value || w.key === Ae.Space && w.preventDefault();
  }
  function g(w) {
    var D, E;
    e.disabled || (d.value ? (i.closePopover(), (D = ae(i.button)) == null || D.focus()) : (w.preventDefault(), w.stopPropagation(), i.popoverState.value === 1 && (u == null || u(i.buttonId.value)), i.togglePopover(), (E = ae(i.button)) == null || E.focus()));
  }
  function y(w) {
    w.preventDefault(), w.stopPropagation();
  }
  let x = cu();
  function b() {
    let w = ae(i.panel);
    if (!w)
      return;
    function D() {
      Ze(x.value, { [on.Forwards]: () => _t(w, yt.First), [on.Backwards]: () => _t(w, yt.Last) }) === Vr.Error && _t(Oa().filter((E) => E.dataset.headlessuiFocusGuard !== "true"), Ze(x.value, { [on.Forwards]: yt.Next, [on.Backwards]: yt.Previous }), { relativeTo: ae(i.button) });
    }
    D();
  }
  return () => {
    let w = i.popoverState.value === 0, D = { open: w }, { ...E } = e, T = d.value ? { ref: f, type: h.value, onKeydown: m, onClick: g } : { ref: f, id: a, type: h.value, "aria-expanded": i.popoverState.value === 0, "aria-controls": ae(i.panel) ? i.panelId.value : void 0, disabled: e.disabled ? !0 : void 0, onKeydown: m, onKeyup: p, onClick: g, onMousedown: y };
    return Qe(He, [Ue({ ourProps: T, theirProps: { ...t, ...E }, slot: D, attrs: t, slots: n, name: "PopoverButton" }), w && !d.value && i.isPortalled.value && Qe(Sn, { id: v, features: gn.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: b })]);
  };
} });
se({ name: "PopoverOverlay", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 } }, setup(e, { attrs: t, slots: n }) {
  let r = Ji("PopoverOverlay"), o = `headlessui-popover-overlay-${tt()}`, a = rr(), i = U(() => a !== null ? (a.value & Ke.Open) === Ke.Open : r.popoverState.value === 0);
  function l() {
    r.closePopover();
  }
  return () => {
    let s = { open: r.popoverState.value === 0 };
    return Ue({ ourProps: { id: o, "aria-hidden": !0, onClick: l }, theirProps: e, slot: s, attrs: t, slots: n, features: Dt.RenderStrategy | Dt.Static, visible: i.value, name: "PopoverOverlay" });
  };
} });
let Eb = se({ name: "PopoverPanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, focus: { type: Boolean, default: !1 }, id: { type: String, default: null } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
  var o;
  let a = (o = e.id) != null ? o : `headlessui-popover-panel-${tt()}`, { focus: i } = e, l = Ji("PopoverPanel"), s = U(() => Vt(l.panel)), u = `headlessui-focus-sentinel-before-${tt()}`, c = `headlessui-focus-sentinel-after-${tt()}`;
  r({ el: l.panel, $el: l.panel }), We(() => {
    l.panelId.value = a;
  }), ct(() => {
    l.panelId.value = null;
  }), lt(Gv, l.panelId), pt(() => {
    var y, x;
    if (!i || l.popoverState.value !== 0 || !l.panel)
      return;
    let b = (y = s.value) == null ? void 0 : y.activeElement;
    (x = ae(l.panel)) != null && x.contains(b) || _t(ae(l.panel), yt.First);
  });
  let d = rr(), f = U(() => d !== null ? (d.value & Ke.Open) === Ke.Open : l.popoverState.value === 0);
  function v(y) {
    var x, b;
    switch (y.key) {
      case Ae.Escape:
        if (l.popoverState.value !== 0 || !ae(l.panel) || s.value && !((x = ae(l.panel)) != null && x.contains(s.value.activeElement)))
          return;
        y.preventDefault(), y.stopPropagation(), l.closePopover(), (b = ae(l.button)) == null || b.focus();
        break;
    }
  }
  function h(y) {
    var x, b, w, D, E;
    let T = y.relatedTarget;
    T && ae(l.panel) && ((x = ae(l.panel)) != null && x.contains(T) || (l.closePopover(), ((w = (b = ae(l.beforePanelSentinel)) == null ? void 0 : b.contains) != null && w.call(b, T) || (E = (D = ae(l.afterPanelSentinel)) == null ? void 0 : D.contains) != null && E.call(D, T)) && T.focus({ preventScroll: !0 })));
  }
  let m = cu();
  function p() {
    let y = ae(l.panel);
    if (!y)
      return;
    function x() {
      Ze(m.value, { [on.Forwards]: () => {
        var b;
        _t(y, yt.First) === Vr.Error && ((b = ae(l.afterPanelSentinel)) == null || b.focus());
      }, [on.Backwards]: () => {
        var b;
        (b = ae(l.button)) == null || b.focus({ preventScroll: !0 });
      } });
    }
    x();
  }
  function g() {
    let y = ae(l.panel);
    if (!y)
      return;
    function x() {
      Ze(m.value, { [on.Forwards]: () => {
        let b = ae(l.button), w = ae(l.panel);
        if (!b)
          return;
        let D = Oa(), E = D.indexOf(b), T = D.slice(0, E + 1), L = [...D.slice(E + 1), ...T];
        for (let S of L.slice())
          if (S.dataset.headlessuiFocusGuard === "true" || w != null && w.contains(S)) {
            let A = L.indexOf(S);
            A !== -1 && L.splice(A, 1);
          }
        _t(L, yt.First, { sorted: !1 });
      }, [on.Backwards]: () => {
        var b;
        _t(y, yt.Previous) === Vr.Error && ((b = ae(l.button)) == null || b.focus());
      } });
    }
    x();
  }
  return () => {
    let y = { open: l.popoverState.value === 0, close: l.close }, { focus: x, ...b } = e, w = { ref: l.panel, id: a, onKeydown: v, onFocusout: i && l.popoverState.value === 0 ? h : void 0, tabIndex: -1 };
    return Ue({ ourProps: w, theirProps: { ...t, ...b }, attrs: t, slot: y, slots: { ...n, default: (...D) => {
      var E;
      return [Qe(He, [f.value && l.isPortalled.value && Qe(Sn, { id: u, ref: l.beforePanelSentinel, features: gn.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: p }), (E = n.default) == null ? void 0 : E.call(n, ...D), f.value && l.isPortalled.value && Qe(Sn, { id: c, ref: l.afterPanelSentinel, features: gn.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: g })])];
    } }, features: Dt.RenderStrategy | Dt.Static, visible: f.value, name: "PopoverPanel" });
  };
} });
se({ name: "PopoverGroup", inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" } }, setup(e, { attrs: t, slots: n, expose: r }) {
  let o = ne(null), a = Bi([]), i = U(() => Vt(o)), l = X0();
  r({ el: o, $el: o });
  function s(f) {
    let v = a.value.indexOf(f);
    v !== -1 && a.value.splice(v, 1);
  }
  function u(f) {
    return a.value.push(f), () => {
      s(f);
    };
  }
  function c() {
    var f;
    let v = i.value;
    if (!v)
      return !1;
    let h = v.activeElement;
    return (f = ae(o)) != null && f.contains(h) ? !0 : a.value.some((m) => {
      var p, g;
      return ((p = v.getElementById(m.buttonId.value)) == null ? void 0 : p.contains(h)) || ((g = v.getElementById(m.panelId.value)) == null ? void 0 : g.contains(h));
    });
  }
  function d(f) {
    for (let v of a.value)
      v.buttonId.value !== f && v.close();
  }
  return lt(Qv, { registerPopover: u, unregisterPopover: s, isFocusWithinPopoverGroup: c, closeOthers: d, mainTreeNodeRef: l.mainTreeNodeRef }), () => Qe(He, [Ue({ ourProps: { ref: o }, theirProps: { ...e, ...t }, slot: {}, attrs: t, slots: n, name: "PopoverGroup" }), Qe(l.MainTreeNode)]);
} });
let Xv = Symbol("LabelContext");
function Zv() {
  let e = ot(Xv, null);
  if (e === null) {
    let t = new Error("You used a <Label /> component, but it is not inside a parent.");
    throw Error.captureStackTrace && Error.captureStackTrace(t, Zv), t;
  }
  return e;
}
function hu({ slot: e = {}, name: t = "Label", props: n = {} } = {}) {
  let r = ne([]);
  function o(a) {
    return r.value.push(a), () => {
      let i = r.value.indexOf(a);
      i !== -1 && r.value.splice(i, 1);
    };
  }
  return lt(Xv, { register: o, slot: e, name: t, props: n }), U(() => r.value.length > 0 ? r.value.join(" ") : void 0);
}
se({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: !1 }, id: { type: String, default: null } }, setup(e, { slots: t, attrs: n }) {
  var r;
  let o = (r = e.id) != null ? r : `headlessui-label-${tt()}`, a = Zv();
  return We(() => ct(a.register(o))), () => {
    let { name: i = "Label", slot: l = {}, props: s = {} } = a, { passive: u, ...c } = e, d = { ...Object.entries(s).reduce((f, [v, h]) => Object.assign(f, { [v]: X(h) }), {}), id: o };
    return u && (delete d.onClick, delete d.htmlFor, delete c.onClick), Ue({ ourProps: d, theirProps: c, slot: l, attrs: n, slots: t, name: i });
  };
} });
function Sb(e, t) {
  return e === t;
}
let Jv = Symbol("RadioGroupContext");
function _v(e) {
  let t = ot(Jv, null);
  if (t === null) {
    let n = new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);
    throw Error.captureStackTrace && Error.captureStackTrace(n, _v), n;
  }
  return t;
}
let $v = se({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "div" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], default: () => Sb }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, id: { type: String, default: null } }, inheritAttrs: !1, setup(e, { emit: t, attrs: n, slots: r, expose: o }) {
  var a;
  let i = (a = e.id) != null ? a : `headlessui-radiogroup-${tt()}`, l = ne(null), s = ne([]), u = hu({ name: "RadioGroupLabel" }), c = Xi({ name: "RadioGroupDescription" });
  o({ el: l, $el: l });
  let [d, f] = Wi(U(() => e.modelValue), (p) => t("update:modelValue", p), U(() => e.defaultValue)), v = { options: s, value: d, disabled: U(() => e.disabled), firstOption: U(() => s.value.find((p) => !p.propsRef.disabled)), containsCheckedOption: U(() => s.value.some((p) => v.compare(st(p.propsRef.value), st(e.modelValue)))), compare(p, g) {
    if (typeof e.by == "string") {
      let y = e.by;
      return (p == null ? void 0 : p[y]) === (g == null ? void 0 : g[y]);
    }
    return e.by(p, g);
  }, change(p) {
    var g;
    if (e.disabled || v.compare(st(d.value), st(p)))
      return !1;
    let y = (g = s.value.find((x) => v.compare(st(x.propsRef.value), st(p)))) == null ? void 0 : g.propsRef;
    return y != null && y.disabled ? !1 : (f(p), !0);
  }, registerOption(p) {
    s.value.push(p), s.value = Sa(s.value, (g) => g.element);
  }, unregisterOption(p) {
    let g = s.value.findIndex((y) => y.id === p);
    g !== -1 && s.value.splice(g, 1);
  } };
  lt(Jv, v), su({ container: U(() => ae(l)), accept(p) {
    return p.getAttribute("role") === "radio" ? NodeFilter.FILTER_REJECT : p.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
  }, walk(p) {
    p.setAttribute("role", "none");
  } });
  function h(p) {
    if (!l.value || !l.value.contains(p.target))
      return;
    let g = s.value.filter((y) => y.propsRef.disabled === !1).map((y) => y.element);
    switch (p.key) {
      case Ae.Enter:
        Ov(p.currentTarget);
        break;
      case Ae.ArrowLeft:
      case Ae.ArrowUp:
        if (p.preventDefault(), p.stopPropagation(), _t(g, yt.Previous | yt.WrapAround) === Vr.Success) {
          let y = s.value.find((x) => {
            var b;
            return x.element === ((b = Vt(l)) == null ? void 0 : b.activeElement);
          });
          y && v.change(y.propsRef.value);
        }
        break;
      case Ae.ArrowRight:
      case Ae.ArrowDown:
        if (p.preventDefault(), p.stopPropagation(), _t(g, yt.Next | yt.WrapAround) === Vr.Success) {
          let y = s.value.find((x) => {
            var b;
            return x.element === ((b = Vt(x.element)) == null ? void 0 : b.activeElement);
          });
          y && v.change(y.propsRef.value);
        }
        break;
      case Ae.Space:
        {
          p.preventDefault(), p.stopPropagation();
          let y = s.value.find((x) => {
            var b;
            return x.element === ((b = Vt(x.element)) == null ? void 0 : b.activeElement);
          });
          y && v.change(y.propsRef.value);
        }
        break;
    }
  }
  let m = U(() => {
    var p;
    return (p = ae(l)) == null ? void 0 : p.closest("form");
  });
  return We(() => {
    Ne([m], () => {
      if (!m.value || e.defaultValue === void 0)
        return;
      function p() {
        v.change(e.defaultValue);
      }
      return m.value.addEventListener("reset", p), () => {
        var g;
        (g = m.value) == null || g.removeEventListener("reset", p);
      };
    }, { immediate: !0 });
  }), () => {
    let { disabled: p, name: g, form: y, ...x } = e, b = { ref: l, id: i, role: "radiogroup", "aria-labelledby": u.value, "aria-describedby": c.value, onKeydown: h };
    return Qe(He, [...g != null && d.value != null ? Ki({ [g]: d.value }).map(([w, D]) => Qe(Sn, Gi({ features: gn.Hidden, key: w, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: y, disabled: p, name: w, value: D }))) : [], Ue({ ourProps: b, theirProps: { ...n, ...Or(x, ["modelValue", "defaultValue", "by"]) }, slot: {}, attrs: n, slots: r, name: "RadioGroup" })]);
  };
} });
var Tb = ((e) => (e[e.Empty = 1] = "Empty", e[e.Active = 2] = "Active", e))(Tb || {});
let eh = se({ name: "RadioGroupOption", props: { as: { type: [Object, String], default: "div" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
  var o;
  let a = (o = e.id) != null ? o : `headlessui-radiogroup-option-${tt()}`, i = _v("RadioGroupOption"), l = hu({ name: "RadioGroupLabel" }), s = Xi({ name: "RadioGroupDescription" }), u = ne(null), c = U(() => ({ value: e.value, disabled: e.disabled })), d = ne(1);
  r({ el: u, $el: u });
  let f = U(() => ae(u));
  We(() => i.registerOption({ id: a, element: f, propsRef: c })), ct(() => i.unregisterOption(a));
  let v = U(() => {
    var b;
    return ((b = i.firstOption.value) == null ? void 0 : b.id) === a;
  }), h = U(() => i.disabled.value || e.disabled), m = U(() => i.compare(st(i.value.value), st(e.value))), p = U(() => h.value ? -1 : m.value || !i.containsCheckedOption.value && v.value ? 0 : -1);
  function g() {
    var b;
    i.change(e.value) && (d.value |= 2, (b = ae(u)) == null || b.focus());
  }
  function y() {
    d.value |= 2;
  }
  function x() {
    d.value &= -3;
  }
  return () => {
    let { value: b, disabled: w, ...D } = e, E = { checked: m.value, disabled: h.value, active: !!(d.value & 2) }, T = { id: a, ref: u, role: "radio", "aria-checked": m.value ? "true" : "false", "aria-labelledby": l.value, "aria-describedby": s.value, "aria-disabled": h.value ? !0 : void 0, tabIndex: p.value, onClick: h.value ? void 0 : g, onFocus: h.value ? void 0 : y, onBlur: h.value ? void 0 : x };
    return Ue({ ourProps: T, theirProps: D, slot: E, attrs: t, slots: n, name: "RadioGroupOption" });
  };
} }), th = Symbol("GroupContext");
se({ name: "SwitchGroup", props: { as: { type: [Object, String], default: "template" } }, setup(e, { slots: t, attrs: n }) {
  let r = ne(null), o = hu({ name: "SwitchLabel", props: { htmlFor: U(() => {
    var i;
    return (i = r.value) == null ? void 0 : i.id;
  }), onClick(i) {
    r.value && (i.currentTarget.tagName === "LABEL" && i.preventDefault(), r.value.click(), r.value.focus({ preventScroll: !0 }));
  } } }), a = Xi({ name: "SwitchDescription" });
  return lt(th, { switchRef: r, labelledby: o, describedby: a }), () => Ue({ theirProps: e, ourProps: {}, slot: {}, slots: t, attrs: n, name: "SwitchGroup" });
} });
let Db = se({ name: "Switch", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "button" }, modelValue: { type: Boolean, default: void 0 }, defaultChecked: { type: Boolean, optional: !0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, value: { type: String, optional: !0 }, id: { type: String, default: null }, disabled: { type: Boolean, default: !1 }, tabIndex: { type: Number, default: 0 } }, inheritAttrs: !1, setup(e, { emit: t, attrs: n, slots: r, expose: o }) {
  var a;
  let i = (a = e.id) != null ? a : `headlessui-switch-${tt()}`, l = ot(th, null), [s, u] = Wi(U(() => e.modelValue), (y) => t("update:modelValue", y), U(() => e.defaultChecked));
  function c() {
    u(!s.value);
  }
  let d = ne(null), f = l === null ? d : l.switchRef, v = Oo(U(() => ({ as: e.as, type: n.type })), f);
  o({ el: f, $el: f });
  function h(y) {
    y.preventDefault(), c();
  }
  function m(y) {
    y.key === Ae.Space ? (y.preventDefault(), c()) : y.key === Ae.Enter && Ov(y.currentTarget);
  }
  function p(y) {
    y.preventDefault();
  }
  let g = U(() => {
    var y, x;
    return (x = (y = ae(f)) == null ? void 0 : y.closest) == null ? void 0 : x.call(y, "form");
  });
  return We(() => {
    Ne([g], () => {
      if (!g.value || e.defaultChecked === void 0)
        return;
      function y() {
        u(e.defaultChecked);
      }
      return g.value.addEventListener("reset", y), () => {
        var x;
        (x = g.value) == null || x.removeEventListener("reset", y);
      };
    }, { immediate: !0 });
  }), () => {
    let { name: y, value: x, form: b, tabIndex: w, ...D } = e, E = { checked: s.value }, T = { id: i, ref: f, role: "switch", type: v.value, tabIndex: w === -1 ? 0 : w, "aria-checked": s.value, "aria-labelledby": l == null ? void 0 : l.labelledby.value, "aria-describedby": l == null ? void 0 : l.describedby.value, onClick: h, onKeyup: m, onKeypress: p };
    return Qe(He, [y != null && s.value != null ? Qe(Sn, Gi({ features: gn.Hidden, as: "input", type: "checkbox", hidden: !0, readOnly: !0, checked: s.value, form: b, disabled: D.disabled, name: y, value: x })) : null, Ue({ ourProps: T, theirProps: { ...n, ...Or(D, ["modelValue", "defaultChecked"]) }, slot: E, attrs: n, slots: r, name: "Switch" })]);
  };
} });
function kb(e) {
  let t = { called: !1 };
  return (...n) => {
    if (!t.called)
      return t.called = !0, e(...n);
  };
}
function _l(e, ...t) {
  e && t.length > 0 && e.classList.add(...t);
}
function Ja(e, ...t) {
  e && t.length > 0 && e.classList.remove(...t);
}
var Ds = ((e) => (e.Finished = "finished", e.Cancelled = "cancelled", e))(Ds || {});
function Pb(e, t) {
  let n = br();
  if (!e)
    return n.dispose;
  let { transitionDuration: r, transitionDelay: o } = getComputedStyle(e), [a, i] = [r, o].map((l) => {
    let [s = 0] = l.split(",").filter(Boolean).map((u) => u.includes("ms") ? parseFloat(u) : parseFloat(u) * 1e3).sort((u, c) => c - u);
    return s;
  });
  return a !== 0 ? n.setTimeout(() => t("finished"), a + i) : t("finished"), n.add(() => t("cancelled")), n.dispose;
}
function qc(e, t, n, r, o, a) {
  let i = br(), l = a !== void 0 ? kb(a) : () => {
  };
  return Ja(e, ...o), _l(e, ...t, ...n), i.nextFrame(() => {
    Ja(e, ...n), _l(e, ...r), i.add(Pb(e, (s) => (Ja(e, ...r, ...t), _l(e, ...o), l(s))));
  }), i.add(() => Ja(e, ...t, ...n, ...r, ...o)), i.add(() => l("cancelled")), i.dispose;
}
function kr(e = "") {
  return e.split(/\s+/).filter((t) => t.length > 1);
}
let pu = Symbol("TransitionContext");
var Ib = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Ib || {});
function Nb() {
  return ot(pu, null) !== null;
}
function Mb() {
  let e = ot(pu, null);
  if (e === null)
    throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
  return e;
}
function Lb() {
  let e = ot(gu, null);
  if (e === null)
    throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
  return e;
}
let gu = Symbol("NestingContext");
function _i(e) {
  return "children" in e ? _i(e.children) : e.value.filter(({ state: t }) => t === "visible").length > 0;
}
function nh(e) {
  let t = ne([]), n = ne(!1);
  We(() => n.value = !0), ct(() => n.value = !1);
  function r(a, i = gr.Hidden) {
    let l = t.value.findIndex(({ id: s }) => s === a);
    l !== -1 && (Ze(i, { [gr.Unmount]() {
      t.value.splice(l, 1);
    }, [gr.Hidden]() {
      t.value[l].state = "hidden";
    } }), !_i(t) && n.value && (e == null || e()));
  }
  function o(a) {
    let i = t.value.find(({ id: l }) => l === a);
    return i ? i.state !== "visible" && (i.state = "visible") : t.value.push({ id: a, state: "visible" }), () => r(a, gr.Unmount);
  }
  return { children: t, register: o, unregister: r };
}
let rh = Dt.RenderStrategy, zr = se({ props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(e, { emit: t, attrs: n, slots: r, expose: o }) {
  let a = ne(0);
  function i() {
    a.value |= Ke.Opening, t("beforeEnter");
  }
  function l() {
    a.value &= ~Ke.Opening, t("afterEnter");
  }
  function s() {
    a.value |= Ke.Closing, t("beforeLeave");
  }
  function u() {
    a.value &= ~Ke.Closing, t("afterLeave");
  }
  if (!Nb() && E0())
    return () => Qe(Pa, { ...e, onBeforeEnter: i, onAfterEnter: l, onBeforeLeave: s, onAfterLeave: u }, r);
  let c = ne(null), d = U(() => e.unmount ? gr.Unmount : gr.Hidden);
  o({ el: c, $el: c });
  let { show: f, appear: v } = Mb(), { register: h, unregister: m } = Lb(), p = ne(f.value ? "visible" : "hidden"), g = { value: !0 }, y = tt(), x = { value: !1 }, b = nh(() => {
    !x.value && p.value !== "hidden" && (p.value = "hidden", m(y), u());
  });
  We(() => {
    let k = h(y);
    ct(k);
  }), pt(() => {
    if (d.value === gr.Hidden && y) {
      if (f.value && p.value !== "visible") {
        p.value = "visible";
        return;
      }
      Ze(p.value, { hidden: () => m(y), visible: () => h(y) });
    }
  });
  let w = kr(e.enter), D = kr(e.enterFrom), E = kr(e.enterTo), T = kr(e.entered), L = kr(e.leave), S = kr(e.leaveFrom), A = kr(e.leaveTo);
  We(() => {
    pt(() => {
      if (p.value === "visible") {
        let k = ae(c);
        if (k instanceof Comment && k.data === "")
          throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
      }
    });
  });
  function C(k) {
    let I = g.value && !v.value, N = ae(c);
    !N || !(N instanceof HTMLElement) || I || (x.value = !0, f.value && i(), f.value || s(), k(f.value ? qc(N, w, D, E, T, (F) => {
      x.value = !1, F === Ds.Finished && l();
    }) : qc(N, L, S, A, T, (F) => {
      x.value = !1, F === Ds.Finished && (_i(b) || (p.value = "hidden", m(y), u()));
    })));
  }
  return We(() => {
    Ne([f], (k, I, N) => {
      C(N), g.value = !1;
    }, { immediate: !0 });
  }), lt(gu, b), Co(U(() => Ze(p.value, { visible: Ke.Open, hidden: Ke.Closed }) | a.value)), () => {
    let { appear: k, show: I, enter: N, enterFrom: F, enterTo: V, entered: G, leave: z, leaveFrom: M, leaveTo: P, ...R } = e, q = { ref: c }, Y = { ...R, ...v.value && f.value && Aa.isServer ? { class: xe([n.class, R.class, ...w, ...D]) } : {} };
    return Ue({ theirProps: Y, ourProps: q, slot: {}, slots: r, attrs: n, features: rh, visible: p.value === "visible", name: "TransitionChild" });
  };
} }), Rb = zr, Pa = se({ inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(e, { emit: t, attrs: n, slots: r }) {
  let o = rr(), a = U(() => e.show === null && o !== null ? (o.value & Ke.Open) === Ke.Open : e.show);
  pt(() => {
    if (![!0, !1].includes(a.value))
      throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.');
  });
  let i = ne(a.value ? "visible" : "hidden"), l = nh(() => {
    i.value = "hidden";
  }), s = ne(!0), u = { show: a, appear: U(() => e.appear || !s.value) };
  return We(() => {
    pt(() => {
      s.value = !1, a.value ? i.value = "visible" : _i(l) || (i.value = "hidden");
    });
  }), lt(gu, l), lt(pu, u), () => {
    let c = Or(e, ["show", "appear", "unmount", "onBeforeEnter", "onBeforeLeave", "onAfterEnter", "onAfterLeave"]), d = { unmount: e.unmount };
    return Ue({ ourProps: { ...d, as: "template" }, theirProps: {}, slot: {}, slots: { ...r, default: () => [Qe(Rb, { onBeforeEnter: () => t("beforeEnter"), onAfterEnter: () => t("afterEnter"), onBeforeLeave: () => t("beforeLeave"), onAfterLeave: () => t("afterLeave"), ...n, ...d, ...c }, r.default)] }, attrs: {}, features: rh, visible: i.value === "visible", name: "Transition" });
  };
} });
const Bb = ["width", "height"], mu = /* @__PURE__ */ se({
  __name: "UIProLockIcon",
  props: {
    size: { default: 32 }
  },
  setup(e) {
    return (t, n) => (J(), ve("svg", {
      width: t.size,
      height: t.size,
      viewBox: "0 0 32 32",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg"
    }, n[0] || (n[0] = [
      fe("path", {
        "fill-rule": "evenodd",
        "clip-rule": "evenodd",
        d: "M15.9999 0C24.8365 0 31.9999 7.16344 31.9999 16C31.9999 24.8366 24.8365 32 15.9999 32C7.16337 32 0 24.8366 0 16C0 7.16344 7.16337 0 15.9999 0ZM9.44337 12.9716C9.07619 12.9716 8.77669 13.2711 8.77669 13.6383V23.6722C8.77669 24.0394 9.07619 24.3388 9.44337 24.3388H22.5566C22.9237 24.3388 23.2232 24.0393 23.2232 23.6722V13.6383C23.2232 13.2711 22.9237 12.9717 22.5566 12.9717H21.6083V10.8695C21.6083 9.32606 20.9777 7.92375 19.9617 6.90775C18.9457 5.89169 17.5433 5.26113 15.9999 5.26113C14.4566 5.26113 13.0542 5.89175 12.0382 6.90769C11.0222 7.92369 10.3916 9.32606 10.3916 10.8694V12.9716H9.44337ZM12.5249 12.9716H19.475V10.8694C19.475 9.91494 19.0837 9.04638 18.4533 8.41606C17.823 7.78569 16.9544 7.39437 15.9999 7.39437C15.0454 7.39437 14.1769 7.78569 13.5466 8.416C12.9162 9.04638 12.5249 9.91494 12.5249 10.8694L12.5249 12.9716ZM17.0666 20.5428V17.6677C17.0666 17.0787 16.5891 16.6011 15.9999 16.6011C15.4109 16.6011 14.9333 17.0787 14.9333 17.6677V20.5428C14.9333 21.1319 15.4109 21.6094 15.9999 21.6094C16.5891 21.6094 17.0666 21.1319 17.0666 20.5428Z",
        fill: "url(#paint0_linear_2066_40886)"
      }, null, -1),
      fe("defs", null, [
        fe("linearGradient", {
          id: "paint0_linear_2066_40886",
          x1: "16",
          y1: "0",
          x2: "16",
          y2: "32",
          gradientUnits: "userSpaceOnUse"
        }, [
          fe("stop", { "stop-color": "#FF6D00" }),
          fe("stop", {
            offset: "1",
            "stop-color": "#FE9902"
          })
        ])
      ], -1)
    ]), 8, Bb));
  }
}), HI = /* @__PURE__ */ se({
  __name: "UIDisclosure",
  props: {
    disclosureButtonClass: {},
    haveAccess: { type: Boolean, default: !0 }
  },
  setup(e) {
    return (t, n) => (J(), ge(X(jv), null, {
      default: ee(({ open: r }) => [
        $(X(qv), {
          class: xe(["rvx-flex rvx-w-full rvx-justify-between rvx-rounded-lg rvx-text-left rvx-font-semibold focus:rvx-outline-none rvx-text-[16px] rvx-bg-white rvx-border-[0] !rvx-p-0 rvx-cursor-pointer", t.disclosureButtonClass])
        }, {
          default: ee(() => [
            qe(t.$slots, "label"),
            $(we, { class: "rvx-flex rvx-gap-space24 rvx-items-center" }, {
              default: ee(() => [
                $(we, { class: "rvx-size-[24px] rvx-border" }, {
                  default: ee(() => [
                    t.haveAccess ? (J(), ge(Et, {
                      key: 0,
                      "icon-name": r ? "expand_less" : "expand_more",
                      class: "rvx-h-5 rvx-w-5 rvx-text-neutral"
                    }, null, 8, ["icon-name"])) : (J(), ge(mu, { key: 1 }))
                  ]),
                  _: 2
                }, 1024)
              ]),
              _: 2
            }, 1024)
          ]),
          _: 2
        }, 1032, ["class"]),
        $(xr, {
          "enter-active-class": "rvx-transition rvx-duration-100 rvx-ease-out",
          "enter-from-class": "rvx-transform rvx-scale-95 rvx-opacity-0",
          "enter-to-class": "rvx-transform rvx-scale-100 rvx-opacity-100",
          "leave-active-class": "rvx-transition rvx-duration-75 rvx-ease-out",
          "leave-from-class": "rvx-transform rvx-scale-100 rvx-opacity-100",
          "leave-to-class": "rvx-transform rvx-scale-95 rvx-opacity-0"
        }, {
          default: ee(() => [
            t.haveAccess ? (J(), ge(X(Vv), {
              key: 0,
              class: "rvx-text-[14px] rvx-text-gray-500"
            }, {
              default: ee(() => [
                qe(t.$slots, "content")
              ]),
              _: 3
            })) : Ie("", !0)
          ]),
          _: 3
        })
      ]),
      _: 3
    }));
  }
}), Fb = /* @__PURE__ */ se({
  __name: "UISwitch",
  props: /* @__PURE__ */ rn({
    variant: { default: "md" }
  }, {
    modelValue: { type: Boolean },
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(e) {
    const t = Wt(e, "modelValue");
    return (n, r) => (J(), ge(X(Db), {
      modelValue: t.value,
      "onUpdate:modelValue": r[0] || (r[0] = (o) => t.value = o),
      class: xe([`
        ${t.value ? "rvx-bg-primary" : "rvx-bg-neutral-500"}
        ${n.variant === "lg" ? " rvx-h-[30px] rvx-w-[60px]" : ""}
        ${n.variant === "sm" ? " rvx-h-[24px] rvx-w-[39px]" : ""}
         ${n.variant === "md" ? " rvx-h-[28px] rvx-w-[48px]" : ""}
        `, "rvx-relative rvx-inline-flex rvx-shrink-0 rvx-cursor-pointer rvx-rounded-full rvx-border-2 rvx-border-transparent rvx-transition-colors rvx-duration-200 rvx-ease-in-out focus:rvx-outline-none focus-visible:rvx-ring-2 focus-visible:rvx-ring-white/75 !rvx-pl-[1px]"])
    }, {
      default: ee(() => [
        fe("span", {
          "aria-hidden": "true",
          class: xe([`
              ${t.value && n.variant === "lg" ? "rvx-translate-x-[29px]" : "rvx-translate-x-0"}
              ${t.value && n.variant === "sm" ? "rvx-translate-x-[15px]" : "rvx-translate-x-0"}
              ${t.value && n.variant === "md" ? "rvx-translate-x-[20px]" : "rvx-translate-x-0]"}
              ${n.variant === "lg" ? "rvx-h-[25px] rvx-w-[25px]" : ""}
              ${n.variant === "sm" ? "rvx-h-[18px] rvx-w-[18px]" : ""}
              ${n.variant === "md" ? "rvx-h-[22px] rvx-w-[22px]" : ""}
              `, "rvx-pointer-events-none rvx-inline-block rvx-transform rvx-rounded-full rvx-bg-white rvx-shadow-lg rvx-ring-0 rvx-transition rvx-duration-200 rvx-ease-in-out"])
        }, null, 2)
      ]),
      _: 1
    }, 8, ["modelValue", "class"]));
  }
}), YI = /* @__PURE__ */ se({
  __name: "UIDisclosureToggle",
  props: /* @__PURE__ */ rn({
    id: {},
    haveAccess: { type: Boolean, default: !0 },
    disclosureButtonClass: {}
  }, {
    modelValue: { type: Boolean },
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(e) {
    const t = e, n = Wt(e, "modelValue");
    return Ne(n, () => {
      var r;
      n.value && ((r = document.querySelector(`#${t.id}`)) == null || r.click());
    }), (r, o) => (J(), ge(X(jv), null, {
      default: ee(({ open: a }) => [
        $(X(qv), {
          id: r.id,
          class: xe(["rvx-flex rvx-w-full rvx-justify-between rvx-rounded-lg rvx-text-left rvx-font-semibold focus:rvx-outline-none rvx-text-[16px] rvx-bg-white rvx-p-[0] rvx-cursor-pointer", r.disclosureButtonClass])
        }, {
          default: ee(() => [
            qe(r.$slots, "label"),
            r.haveAccess ? (J(), ge(we, {
              key: 0,
              class: "rvx-flex rvx-gap-space24 rvx-items-center"
            }, {
              default: ee(() => [
                $(Fb, {
                  variant: "sm",
                  modelValue: n.value,
                  "onUpdate:modelValue": o[0] || (o[0] = (i) => n.value = i)
                }, null, 8, ["modelValue"]),
                $(we, { class: "rvx-size-[24px] rvx-border" }, {
                  default: ee(() => [
                    $(Et, {
                      "icon-name": a ? "expand_less" : "expand_more",
                      class: "rvx-h-5 rvx-w-5 text-purple-500"
                    }, null, 8, ["icon-name"])
                  ]),
                  _: 2
                }, 1024)
              ]),
              _: 2
            }, 1024)) : Ie("", !0),
            r.haveAccess ? Ie("", !0) : (J(), ge(mu, { key: 1 }))
          ]),
          _: 2
        }, 1032, ["id", "class"]),
        $(xr, {
          "enter-active-class": "rvx-transition rvx-duration-100 rvx-ease-out",
          "enter-from-class": "rvx-transform rvx-scale-95 rvx-opacity-0",
          "enter-to-class": "rvx-transform rvx-scale-100 rvx-opacity-100",
          "leave-active-class": "rvx-transition rvx-duration-75 rvx-ease-out",
          "leave-from-class": "rvx-transform rvx-scale-100 rvx-opacity-100",
          "leave-to-class": "rvx-transform rvx-scale-95 rvx-opacity-0"
        }, {
          default: ee(() => [
            r.haveAccess ? (J(), ge(X(Vv), {
              key: 0,
              class: "rvx-pt-4 rvx-text-[14px] rvx-text-gray-500"
            }, {
              default: ee(() => [
                qe(r.$slots, "content")
              ]),
              _: 3
            })) : Ie("", !0)
          ]),
          _: 3
        })
      ]),
      _: 3
    }));
  }
}), QI = /* @__PURE__ */ se({
  __name: "UIDivider",
  props: {
    content: { default: "or" }
  },
  setup(e) {
    return (t, n) => (J(), ge(we, { class: "rvx-flex rvx-items-center" }, {
      default: ee(() => [
        $(we, { class: "rvx-h-[1px] rvx-bg-neutral-500 rvx-w-full" }),
        $(we, { class: "rvx-mx-space8" }, {
          default: ee(() => [
            je(Re(t.content), 1)
          ]),
          _: 1
        }),
        $(we, { class: "rvx-h-[1px] rvx-bg-neutral-500 rvx-w-full" })
      ]),
      _: 1
    }));
  }
}), jb = { class: "rvx-relative" }, WI = /* @__PURE__ */ se({
  __name: "UIDropdown",
  props: /* @__PURE__ */ rn({
    options: {},
    placeholder: { default: "Select" },
    buttonClass: {},
    placement: { default: "bottom" }
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(e) {
    const t = Wt(e, "modelValue");
    return (n, r) => (J(), ge(X(db), {
      modelValue: t.value,
      "onUpdate:modelValue": r[0] || (r[0] = (o) => t.value = o),
      defaultValue: n.options[0]
    }, {
      default: ee(({ open: o }) => [
        fe("div", jb, [
          $(X(vb), {
            class: xe(["rvx-flex rvx-justify-between rvx-items-center rvx-w-full rvx-cursor-default rvx-rounded-lg rvx-bg-white rvx-py-[9px] rvx-px-space12 rvx-border rvx-border-solid rvx-border-neutral-500 focus:rvx-outline-none focus-visible:rvx-border-indigo-500 focus-visible:rvx-ring-2 focus-visible:rvx-ring-white/75 focus-visible:rvx-ring-offset-2 focus-visible:rvx-ring-offset-orange-300", n.buttonClass])
          }, {
            default: ee(() => {
              var a;
              return [
                (a = t.value) != null && a.label ? (J(), ge(we, {
                  key: 0,
                  as: "span",
                  class: "rvx-block rvx-truncate rvx-text-normal rvx-text-neutral-800"
                }, {
                  default: ee(() => {
                    var i;
                    return [
                      je(Re((i = t.value) == null ? void 0 : i.label), 1)
                    ];
                  }),
                  _: 1
                })) : (J(), ge(we, {
                  key: 1,
                  as: "span",
                  class: "rvx-block rvx-truncate rvx-text-normal rvx-text-neutral-600"
                }, {
                  default: ee(() => [
                    je(Re(n.placeholder), 1)
                  ]),
                  _: 1
                })),
                $(Et, {
                  "icon-name": o ? "expand_less" : "expand_more",
                  class: "rvx-text-gray-400"
                }, null, 8, ["icon-name"])
              ];
            }),
            _: 2
          }, 1032, ["class"]),
          $(xr, {
            "leave-active-class": "rvx-transition rvx-duration-100 rvx-ease-in",
            "leave-from-class": "rvx-opacity-100",
            "leave-to-class": "rvx-opacity-0"
          }, {
            default: ee(() => [
              $(X(hb), {
                class: xe(["rvx-absolute rvx-max-h-60 rvx-w-full rvx-overflow-auto rvx-rounded-md rvx-bg-white rvx-py-1 rvx-shadow-lg rvx-ring-1 rvx-ring-black/5 focus:rvx-outline-none rvx-z-10 scrollbar rvx-text-normal", [
                  n.placement === "top" ? "rvx-bottom-full rvx-mb-1" : "rvx-top-full rvx-mt-1"
                ]])
              }, {
                default: ee(() => [
                  (J(!0), ve(He, null, mt(n.options, (a) => (J(), ge(X(pb), {
                    key: a.id,
                    value: a,
                    as: "template"
                  }, {
                    default: ee(({ active: i, selected: l }) => [
                      fe("li", {
                        class: xe([
                          i ? "rvx-bg-neutral-300" : "",
                          l ? "rvx-bg-neutral-300" : "",
                          "rvx-flex rvx-gap-space5 rvx-cursor-pointer rvx-select-none rvx-py-2 rvx-pl-[15px] rvx-pr-4"
                        ])
                      }, [
                        $(we, {
                          as: "span",
                          class: xe(["rvx-text-neutral-700", [
                            l ? "rvx-font-medium" : "rvx-font-normal",
                            "rvx-block rvx-truncate"
                          ]])
                        }, {
                          default: ee(() => [
                            je(Re(a.label), 1)
                          ]),
                          _: 2
                        }, 1032, ["class"])
                      ], 2)
                    ]),
                    _: 2
                  }, 1032, ["value"]))), 128))
                ]),
                _: 1
              }, 8, ["class"])
            ]),
            _: 1
          })
        ])
      ]),
      _: 1
    }, 8, ["modelValue", "defaultValue"]));
  }
}), qb = /* @__PURE__ */ se({
  __name: "UIPopover",
  props: {
    popOverPanelAs: { default: "div" },
    popOverPanelClass: {},
    popOverButtonClass: {}
  },
  setup(e) {
    return (t, n) => (J(), ge(X(Kv), { class: "rvx-relative" }, {
      default: ee(() => [
        $(X(Cb), {
          class: xe(["rvx-bg-transparent", t.popOverButtonClass])
        }, {
          default: ee(() => [
            qe(t.$slots, "panelButton", {}, () => [
              $(Et, {
                "icon-name": "more_vert",
                class: "rvx-cursor-pointer"
              })
            ])
          ]),
          _: 3
        }, 8, ["class"]),
        $(xr, {
          "enter-active-class": "rvx-transition rvx-duration-200 rvx-ease-out",
          "enter-from-class": "rvx-translate-y-1 rvx-opacity-0",
          "enter-to-class": "rvx-translate-y-0 rvx-opacity-100",
          "leave-active-class": "rvx-transition rvx-duration-150 rvx-ease-in",
          "leave-from-class": "rvx-translate-y-0 rvx-opacity-100",
          "leave-to-class": "rvx-translate-y-1 rvx-opacity-0"
        }, {
          default: ee(() => [
            $(X(Eb), {
              as: t.popOverPanelAs,
              class: xe(["rvx-shadow", t.popOverPanelClass])
            }, {
              default: ee(() => [
                qe(t.$slots, "contentPanel")
              ]),
              _: 3
            }, 8, ["as", "class"])
          ]),
          _: 3
        })
      ]),
      _: 3
    }));
  }
}), GI = /* @__PURE__ */ se({
  __name: "UIDropdownAction",
  props: {
    actionOptions: {},
    popOverClass: {}
  },
  setup(e, { emit: t }) {
    const n = t, r = ({ haveAccess: o, eventName: a }) => {
      o && n(a);
    };
    return (o, a) => (J(), ge(qb, {
      "pop-over-panel-class": `rvx-absolute rvx-w-[163px] rvx-z-10 rvx-right-[-20px] rvx-shadow ${o.popOverClass}`
    }, {
      panelButton: ee(() => [
        $(Et, {
          "icon-name": "more_vert",
          class: "rvx-cursor-pointer"
        })
      ]),
      contentPanel: ee(() => [
        $(we, { class: "rvx-bg-white rvx-rounded-md" }, {
          default: ee(() => [
            (J(!0), ve(He, null, mt(o.actionOptions, (i) => (J(), ge(we, {
              class: xe(`rvx-flex rvx-items-center rvx-justify-between rvx-cursor-pointer rvx-px-space16 rvx-py-[10px] hover:rvx-bg-neutral-300 rvx-font-normal ${i.customClass} ${!(i != null && i.haveAccess) && "rvx-pointer-events-none"}`),
              key: i.id,
              onClick: (l) => r({ haveAccess: i == null ? void 0 : i.haveAccess, eventName: i.eventName })
            }, {
              default: ee(() => [
                je(Re(i.label) + " ", 1),
                i != null && i.haveAccess ? Ie("", !0) : (J(), ge(mu, {
                  key: 0,
                  size: 16
                }))
              ]),
              _: 2
            }, 1032, ["class", "onClick"]))), 128))
          ]),
          _: 1
        })
      ]),
      _: 1
    }, 8, ["pop-over-panel-class"]));
  }
}), Vb = ["placeholder", "disabled"], zb = /* @__PURE__ */ se({
  __name: "UIInput",
  props: /* @__PURE__ */ rn({
    placeholder: {},
    disabled: { type: Boolean }
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(e) {
    const t = Wt(e, "modelValue");
    return (n, r) => bn((J(), ve("input", {
      type: "text",
      placeholder: n.placeholder,
      "onUpdate:modelValue": r[0] || (r[0] = (o) => t.value = o),
      class: xe(X(cv)("rvx-ui__input rvx-w-full !rvx-py-[9px] !rvx-px-[12px] !rvx-leading-[0] !rvx-text-[16px] focus:!rvx-outline-none focus:!rvx-ring focus:!rvx-ring-primary-20 !rvx-border-neutral-400 rvx-border rvx-border-solid rvx-rounded-md placeholder:rvx-text-neutral-400")),
      disabled: n.disabled
    }, null, 10, Vb)), [
      [Ri, t.value]
    ]);
  }
}), ks = /* @__PURE__ */ sn(zb, [["__scopeId", "data-v-36927826"]]), Ub = { class: "rvx-relative rvx-w-full" }, Hb = ["id", "type"], Yb = ["for"], KI = /* @__PURE__ */ se({
  __name: "UIInputFloat",
  props: /* @__PURE__ */ rn({
    label: {},
    id: {},
    disabled: { type: Boolean },
    type: { default: "text" },
    inputClass: {},
    inputStyle: {},
    showEye: { type: Boolean, default: !1 }
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(e) {
    const t = e, n = Wt(e, "modelValue"), r = ne(!1), o = () => {
      r.value = !r.value;
    }, a = U(() => t.type === "password" && r.value ? "text" : t.type);
    return (i, l) => (J(), ve("div", Ub, [
      bn(fe("input", Ar({
        id: i.id,
        type: a.value
      }, i.$attrs, {
        class: X(cv)("rvx-peer rvx-w-full rvx-rounded-lg !rvx-px-4 !rvx-border-neutral-500 !rvx-py-3 rvx-text-normal !rvx-text-neutral-700 !rvx-placeholder-transparent focus:!rvx-outline-none focus:!rvx-ring focus:!rvx-ring-primary-20 !rvx-leading-[0]", i.inputClass),
        placeholder: "example@domain.com",
        "onUpdate:modelValue": l[0] || (l[0] = (s) => n.value = s),
        style: i.inputStyle
      }), null, 16, Hb), [
        [Ad, n.value]
      ]),
      fe("label", {
        for: i.id,
        class: "rvx-absolute -rvx-top-[12px] rvx-left-4 rvx-bg-white !rvx-text-[14px] rvx-text-neutral-700 rvx-transition-all peer-placeholder-shown:!rvx-top-[12px] peer-placeholder-shown:rvx-text-normal peer-focus:!-rvx-top-[12px] peer-focus:!rvx-text-[12px] peer-focus:rvx-text-gray-600 rvx-cursor-auto rvx-leading-[22px]"
      }, Re(i.label), 9, Yb),
      qe(i.$slots, "eye", {}, () => [
        i.showEye ? (J(), ge(Et, {
          key: 0,
          "icon-name": r.value ? "visibility" : "visibility_off",
          class: "rvx-cursor-pointer rvx-absolute rvx-top-[12px] rvx-right-[10px] rvx-text-neutral-700 !rvx-text-[20px]",
          onClick: o
        }, null, 8, ["icon-name"])) : Ie("", !0)
      ])
    ]));
  }
});
function Qb() {
  return oh().__VUE_DEVTOOLS_GLOBAL_HOOK__;
}
function oh() {
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
}
const Wb = typeof Proxy == "function", Gb = "devtools-plugin:setup", Kb = "plugin:settings:set";
let eo, Ps;
function Xb() {
  var e;
  return eo !== void 0 || (typeof window < "u" && window.performance ? (eo = !0, Ps = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (eo = !0, Ps = globalThis.perf_hooks.performance) : eo = !1), eo;
}
function Zb() {
  return Xb() ? Ps.now() : Date.now();
}
class Jb {
  constructor(t, n) {
    this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
    const r = {};
    if (t.settings)
      for (const i in t.settings) {
        const l = t.settings[i];
        r[i] = l.defaultValue;
      }
    const o = `__vue-devtools-plugin-settings__${t.id}`;
    let a = Object.assign({}, r);
    try {
      const i = localStorage.getItem(o), l = JSON.parse(i);
      Object.assign(a, l);
    } catch {
    }
    this.fallbacks = {
      getSettings() {
        return a;
      },
      setSettings(i) {
        try {
          localStorage.setItem(o, JSON.stringify(i));
        } catch {
        }
        a = i;
      },
      now() {
        return Zb();
      }
    }, n && n.on(Kb, (i, l) => {
      i === this.plugin.id && this.fallbacks.setSettings(l);
    }), this.proxiedOn = new Proxy({}, {
      get: (i, l) => this.target ? this.target.on[l] : (...s) => {
        this.onQueue.push({
          method: l,
          args: s
        });
      }
    }), this.proxiedTarget = new Proxy({}, {
      get: (i, l) => this.target ? this.target[l] : l === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(l) ? (...s) => (this.targetQueue.push({
        method: l,
        args: s,
        resolve: () => {
        }
      }), this.fallbacks[l](...s)) : (...s) => new Promise((u) => {
        this.targetQueue.push({
          method: l,
          args: s,
          resolve: u
        });
      })
    });
  }
  async setRealTarget(t) {
    this.target = t;
    for (const n of this.onQueue)
      this.target.on[n.method](...n.args);
    for (const n of this.targetQueue)
      n.resolve(await this.target[n.method](...n.args));
  }
}
function _b(e, t) {
  const n = e, r = oh(), o = Qb(), a = Wb && n.enableEarlyProxy;
  if (o && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
    o.emit(Gb, e, t);
  else {
    const i = a ? new Jb(n, o) : null;
    (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
      pluginDescriptor: n,
      setupFn: t,
      proxy: i
    }), i && t(i.proxiedTarget);
  }
}
/**
  * vee-validate v4.13.2
  * (c) 2024 Abdelrahman Awad
  * @license MIT
  */
function yr(e) {
  return typeof e == "function";
}
function $b(e) {
  return e == null;
}
const co = (e) => e !== null && !!e && typeof e == "object" && !Array.isArray(e);
function ah(e) {
  return Number(e) >= 0;
}
function e2(e) {
  const t = parseFloat(e);
  return isNaN(t) ? e : t;
}
function t2(e) {
  const t = e.split(".");
  if (!t.length)
    return "";
  let n = String(t[0]);
  for (let r = 1; r < t.length; r++) {
    if (ah(t[r])) {
      n += `[${t[r]}]`;
      continue;
    }
    n += `.${t[r]}`;
  }
  return n;
}
const n2 = {};
function r2(e) {
  return n2[e];
}
function Vc(e, t, n) {
  typeof n.value == "object" && (n.value = Lr(n.value)), !n.enumerable || n.get || n.set || !n.configurable || !n.writable || t === "__proto__" ? Object.defineProperty(e, t, n) : e[t] = n.value;
}
function Lr(e) {
  if (typeof e != "object")
    return e;
  var t = 0, n, r, o, a = Object.prototype.toString.call(e);
  if (a === "[object Object]" ? o = Object.create(e.__proto__ || null) : a === "[object Array]" ? o = Array(e.length) : a === "[object Set]" ? (o = /* @__PURE__ */ new Set(), e.forEach(function(i) {
    o.add(Lr(i));
  })) : a === "[object Map]" ? (o = /* @__PURE__ */ new Map(), e.forEach(function(i, l) {
    o.set(Lr(l), Lr(i));
  })) : a === "[object Date]" ? o = /* @__PURE__ */ new Date(+e) : a === "[object RegExp]" ? o = new RegExp(e.source, e.flags) : a === "[object DataView]" ? o = new e.constructor(Lr(e.buffer)) : a === "[object ArrayBuffer]" ? o = e.slice(0) : a.slice(-6) === "Array]" && (o = new e.constructor(e)), o) {
    for (r = Object.getOwnPropertySymbols(e); t < r.length; t++)
      Vc(o, r[t], Object.getOwnPropertyDescriptor(e, r[t]));
    for (t = 0, r = Object.getOwnPropertyNames(e); t < r.length; t++)
      Object.hasOwnProperty.call(o, n = r[t]) && o[n] === e[n] || Vc(o, n, Object.getOwnPropertyDescriptor(e, n));
  }
  return o || e;
}
const ih = Symbol("vee-validate-form"), o2 = Symbol("vee-validate-field-instance"), zc = Symbol("Default empty value"), a2 = typeof window < "u";
function Is(e) {
  return yr(e) && !!e.__locatorRef;
}
function aa(e) {
  return !!e && yr(e.parse) && e.__type === "VVTypedSchema";
}
function Ns(e) {
  return !!e && yr(e.validate);
}
function lh(e) {
  return e === "checkbox" || e === "radio";
}
function i2(e) {
  return co(e) || Array.isArray(e);
}
function yu(e) {
  return /^\[.+\]$/i.test(e);
}
function l2(e) {
  return sh(e) && e.multiple;
}
function sh(e) {
  return e.tagName === "SELECT";
}
function s2(e) {
  return e ? !!(typeof Event < "u" && yr(Event) && e instanceof Event || e && e.srcElement) : !1;
}
function an(e, t) {
  if (e === t)
    return !0;
  if (e && t && typeof e == "object" && typeof t == "object") {
    if (e.constructor !== t.constructor)
      return !1;
    var n, r, o;
    if (Array.isArray(e)) {
      if (n = e.length, n != t.length)
        return !1;
      for (r = n; r-- !== 0; )
        if (!an(e[r], t[r]))
          return !1;
      return !0;
    }
    if (e instanceof Map && t instanceof Map) {
      if (e.size !== t.size)
        return !1;
      for (r of e.entries())
        if (!t.has(r[0]))
          return !1;
      for (r of e.entries())
        if (!an(r[1], t.get(r[0])))
          return !1;
      return !0;
    }
    if (Uc(e) && Uc(t))
      return !(e.size !== t.size || e.name !== t.name || e.lastModified !== t.lastModified || e.type !== t.type);
    if (e instanceof Set && t instanceof Set) {
      if (e.size !== t.size)
        return !1;
      for (r of e.entries())
        if (!t.has(r[0]))
          return !1;
      return !0;
    }
    if (ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
      if (n = e.length, n != t.length)
        return !1;
      for (r = n; r-- !== 0; )
        if (e[r] !== t[r])
          return !1;
      return !0;
    }
    if (e.constructor === RegExp)
      return e.source === t.source && e.flags === t.flags;
    if (e.valueOf !== Object.prototype.valueOf)
      return e.valueOf() === t.valueOf();
    if (e.toString !== Object.prototype.toString)
      return e.toString() === t.toString();
    for (o = Object.keys(e), n = o.length, r = n; r-- !== 0; ) {
      var a = o[r];
      if (!an(e[a], t[a]))
        return !1;
    }
    return !0;
  }
  return e !== e && t !== t;
}
function Uc(e) {
  return a2 ? e instanceof File : !1;
}
function uh(e) {
  return yu(e) ? e.replace(/\[|\]/gi, "") : e;
}
function fo(e, t, n) {
  return e ? yu(t) ? e[uh(t)] : (t || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((o, a) => i2(o) && a in o ? o[a] : n, e) : n;
}
function u2(e, t, n) {
  if (yu(t)) {
    e[uh(t)] = n;
    return;
  }
  const r = t.split(/\.|\[(\d+)\]/).filter(Boolean);
  let o = e;
  for (let a = 0; a < r.length; a++) {
    if (a === r.length - 1) {
      o[r[a]] = n;
      return;
    }
    (!(r[a] in o) || $b(o[r[a]])) && (o[r[a]] = ah(r[a + 1]) ? [] : {}), o = o[r[a]];
  }
}
function ch(e) {
  return Object.keys(e);
}
function fh(e, t = void 0) {
  const n = lo();
  return (n == null ? void 0 : n.provides[e]) || ot(e, t);
}
function c2(e, t, n) {
  if (Array.isArray(e)) {
    const r = [...e], o = r.findIndex((a) => an(a, t));
    return o >= 0 ? r.splice(o, 1) : r.push(t), r;
  }
  return an(e, t) ? n : t;
}
function f2(e, t) {
  let n, r;
  return function(...o) {
    const a = this;
    return n || (n = !0, setTimeout(() => n = !1, t), r = e.apply(a, o)), r;
  };
}
function d2(e, t) {
  return co(t) && t.number ? e2(e) : e;
}
function Hc(e, t) {
  let n;
  return async function(...o) {
    const a = e(...o);
    n = a;
    const i = await a;
    return a !== n ? i : (n = void 0, t(i, o));
  };
}
function v2(e) {
  return Array.isArray(e) ? e : e ? [e] : [];
}
function $l(e) {
  if (dh(e))
    return e._value;
}
function dh(e) {
  return "_value" in e;
}
function h2(e) {
  return e.type === "number" || e.type === "range" ? Number.isNaN(e.valueAsNumber) ? e.value : e.valueAsNumber : e.value;
}
function vh(e) {
  if (!s2(e))
    return e;
  const t = e.target;
  if (lh(t.type) && dh(t))
    return $l(t);
  if (t.type === "file" && t.files) {
    const n = Array.from(t.files);
    return t.multiple ? n : n[0];
  }
  if (l2(t))
    return Array.from(t.options).filter((n) => n.selected && !n.disabled).map($l);
  if (sh(t)) {
    const n = Array.from(t.options).find((r) => r.selected);
    return n ? $l(n) : t.value;
  }
  return h2(t);
}
function hh(e) {
  const t = {};
  return Object.defineProperty(t, "_$$isNormalized", {
    value: !0,
    writable: !1,
    enumerable: !1,
    configurable: !1
  }), e ? co(e) && e._$$isNormalized ? e : co(e) ? Object.keys(e).reduce((n, r) => {
    const o = p2(e[r]);
    return e[r] !== !1 && (n[r] = Yc(o)), n;
  }, t) : typeof e != "string" ? t : e.split("|").reduce((n, r) => {
    const o = g2(r);
    return o.name && (n[o.name] = Yc(o.params)), n;
  }, t) : t;
}
function p2(e) {
  return e === !0 ? [] : Array.isArray(e) || co(e) ? e : [e];
}
function Yc(e) {
  const t = (n) => typeof n == "string" && n[0] === "@" ? m2(n.slice(1)) : n;
  return Array.isArray(e) ? e.map(t) : e instanceof RegExp ? [e] : Object.keys(e).reduce((n, r) => (n[r] = t(e[r]), n), {});
}
const g2 = (e) => {
  let t = [];
  const n = e.split(":")[0];
  return e.includes(":") && (t = e.split(":").slice(1).join(":").split(",")), { name: n, params: t };
};
function m2(e) {
  const t = (n) => fo(n, e) || n[e];
  return t.__locatorRef = e, t;
}
function y2(e) {
  return Array.isArray(e) ? e.filter(Is) : ch(e).filter((t) => Is(e[t])).map((t) => e[t]);
}
const b2 = {
  generateMessage: ({ field: e }) => `${e} is not valid.`,
  bails: !0,
  validateOnBlur: !0,
  validateOnChange: !0,
  validateOnInput: !1,
  validateOnModelUpdate: !0
};
let w2 = Object.assign({}, b2);
const x2 = () => w2;
async function A2(e, t, n = {}) {
  const r = n == null ? void 0 : n.bails, o = {
    name: (n == null ? void 0 : n.name) || "{field}",
    rules: t,
    label: n == null ? void 0 : n.label,
    bails: r ?? !0,
    formData: (n == null ? void 0 : n.values) || {}
  }, a = await O2(o, e);
  return Object.assign(Object.assign({}, a), { valid: !a.errors.length });
}
async function O2(e, t) {
  const n = e.rules;
  if (aa(n) || Ns(n))
    return S2(t, Object.assign(Object.assign({}, e), { rules: n }));
  if (yr(n) || Array.isArray(n)) {
    const l = {
      field: e.label || e.name,
      name: e.name,
      label: e.label,
      form: e.formData,
      value: t
    }, s = Array.isArray(n) ? n : [n], u = s.length, c = [];
    for (let d = 0; d < u; d++) {
      const f = s[d], v = await f(t, l);
      if (!(typeof v != "string" && !Array.isArray(v) && v)) {
        if (Array.isArray(v))
          c.push(...v);
        else {
          const m = typeof v == "string" ? v : ph(l);
          c.push(m);
        }
        if (e.bails)
          return {
            errors: c
          };
      }
    }
    return {
      errors: c
    };
  }
  const r = Object.assign(Object.assign({}, e), { rules: hh(n) }), o = [], a = Object.keys(r.rules), i = a.length;
  for (let l = 0; l < i; l++) {
    const s = a[l], u = await T2(r, t, {
      name: s,
      params: r.rules[s]
    });
    if (u.error && (o.push(u.error), e.bails))
      return {
        errors: o
      };
  }
  return {
    errors: o
  };
}
function C2(e) {
  return !!e && e.name === "ValidationError";
}
function E2(e) {
  return {
    __type: "VVTypedSchema",
    async parse(n, r) {
      var o;
      try {
        return {
          output: await e.validate(n, { abortEarly: !1, context: (r == null ? void 0 : r.formData) || {} }),
          errors: []
        };
      } catch (a) {
        if (!C2(a))
          throw a;
        if (!(!((o = a.inner) === null || o === void 0) && o.length) && a.errors.length)
          return { errors: [{ path: a.path, errors: a.errors }] };
        const i = a.inner.reduce((l, s) => {
          const u = s.path || "";
          return l[u] || (l[u] = { errors: [], path: u }), l[u].errors.push(...s.errors), l;
        }, {});
        return { errors: Object.values(i) };
      }
    }
  };
}
async function S2(e, t) {
  const r = await (aa(t.rules) ? t.rules : E2(t.rules)).parse(e, { formData: t.formData }), o = [];
  for (const a of r.errors)
    a.errors.length && o.push(...a.errors);
  return {
    value: r.value,
    errors: o
  };
}
async function T2(e, t, n) {
  const r = r2(n.name);
  if (!r)
    throw new Error(`No such validator '${n.name}' exists.`);
  const o = D2(n.params, e.formData), a = {
    field: e.label || e.name,
    name: e.name,
    label: e.label,
    value: t,
    form: e.formData,
    rule: Object.assign(Object.assign({}, n), { params: o })
  }, i = await r(t, o, a);
  return typeof i == "string" ? {
    error: i
  } : {
    error: i ? void 0 : ph(a)
  };
}
function ph(e) {
  const t = x2().generateMessage;
  return t ? t(e) : "Field is invalid";
}
function D2(e, t) {
  const n = (r) => Is(r) ? r(t) : r;
  return Array.isArray(e) ? e.map(n) : Object.keys(e).reduce((r, o) => (r[o] = n(e[o]), r), {});
}
let Qc = 0;
function k2(e, t) {
  const { value: n, initialValue: r, setInitialValue: o } = P2(e, t.modelValue, t.form);
  if (!t.form) {
    let f = function(v) {
      var h;
      "value" in v && (n.value = v.value), "errors" in v && u(v.errors), "touched" in v && (d.touched = (h = v.touched) !== null && h !== void 0 ? h : d.touched), "initialValue" in v && o(v.initialValue);
    };
    const { errors: s, setErrors: u } = M2(), c = Qc >= Number.MAX_SAFE_INTEGER ? 0 : ++Qc, d = N2(n, r, s, t.schema);
    return {
      id: c,
      path: e,
      value: n,
      initialValue: r,
      meta: d,
      flags: { pendingUnmount: { [c]: !1 }, pendingReset: !1 },
      errors: s,
      setState: f
    };
  }
  const a = t.form.createPathState(e, {
    bails: t.bails,
    label: t.label,
    type: t.type,
    validate: t.validate,
    schema: t.schema
  }), i = U(() => a.errors);
  function l(s) {
    var u, c, d;
    "value" in s && (n.value = s.value), "errors" in s && ((u = t.form) === null || u === void 0 || u.setFieldError(X(e), s.errors)), "touched" in s && ((c = t.form) === null || c === void 0 || c.setFieldTouched(X(e), (d = s.touched) !== null && d !== void 0 ? d : !1)), "initialValue" in s && o(s.initialValue);
  }
  return {
    id: Array.isArray(a.id) ? a.id[a.id.length - 1] : a.id,
    path: e,
    value: n,
    errors: i,
    meta: a,
    initialValue: r,
    flags: a.__flags,
    setState: l
  };
}
function P2(e, t, n) {
  const r = ne(X(t));
  function o() {
    return n ? fo(n.initialValues.value, X(e), X(r)) : X(r);
  }
  function a(u) {
    if (!n) {
      r.value = u;
      return;
    }
    n.setFieldInitialValue(X(e), u, !0);
  }
  const i = U(o);
  if (!n)
    return {
      value: ne(o()),
      initialValue: i,
      setInitialValue: a
    };
  const l = I2(t, n, i, e);
  return n.stageInitialValue(X(e), l, !0), {
    value: U({
      get() {
        return fo(n.values, X(e));
      },
      set(u) {
        n.setFieldValue(X(e), u, !1);
      }
    }),
    initialValue: i,
    setInitialValue: a
  };
}
function I2(e, t, n, r) {
  return Cn(e) ? X(e) : e !== void 0 ? e : fo(t.values, X(r), X(n));
}
function N2(e, t, n, r) {
  const o = U(() => {
    var i, l, s;
    return (s = (l = (i = Ft(r)) === null || i === void 0 ? void 0 : i.describe) === null || l === void 0 ? void 0 : l.call(i).required) !== null && s !== void 0 ? s : !1;
  }), a = wo({
    touched: !1,
    pending: !1,
    valid: !0,
    required: o,
    validated: !!X(n).length,
    initialValue: U(() => X(t)),
    dirty: U(() => !an(X(e), X(t)))
  });
  return Ne(n, (i) => {
    a.valid = !i.length;
  }, {
    immediate: !0,
    flush: "sync"
  }), a;
}
function M2() {
  const e = ne([]);
  return {
    errors: e,
    setErrors: (t) => {
      e.value = v2(t);
    }
  };
}
function L2(e) {
  process.env.NODE_ENV !== "production" && _b({
    id: "vee-validate-devtools-plugin",
    label: "VeeValidate Plugin",
    packageName: "vee-validate",
    homepage: "https://vee-validate.logaretm.com/v4",
    app: e,
    logo: "https://vee-validate.logaretm.com/v4/logo.png"
  }, B2);
}
const gh = {}, ia = {};
let vr;
const Ms = f2(() => {
  setTimeout(async () => {
    await rt(), vr == null || vr.sendInspectorState(no), vr == null || vr.sendInspectorTree(no);
  }, 100);
}, 100);
function R2(e) {
  const t = lo();
  if (!vr) {
    const n = t == null ? void 0 : t.appContext.app;
    if (!n)
      return;
    L2(n);
  }
  ia[e.id] = Object.assign({}, e), ia[e.id]._vm = t, ct(() => {
    delete ia[e.id], Ms();
  }), Ms();
}
const no = "vee-validate-inspector", Zt = {
  error: 12405579,
  success: 448379,
  unknown: 5522283,
  white: 16777215,
  black: 0,
  blue: 218007,
  purple: 12157168,
  orange: 16099682,
  gray: 12304330
};
let Ot = null;
function B2(e) {
  vr = e, e.addInspector({
    id: no,
    icon: "rule",
    label: "vee-validate",
    noSelectionText: "Select a vee-validate node to inspect",
    actions: [
      {
        icon: "done_outline",
        tooltip: "Validate selected item",
        action: async () => {
          if (!Ot) {
            console.error("There is not a valid selected vee-validate node or component");
            return;
          }
          if (Ot.type === "field") {
            await Ot.field.validate();
            return;
          }
          if (Ot.type === "form") {
            await Ot.form.validate();
            return;
          }
          Ot.type === "pathState" && await Ot.form.validateField(Ot.state.path);
        }
      },
      {
        icon: "delete_sweep",
        tooltip: "Clear validation state of the selected item",
        action: () => {
          if (!Ot) {
            console.error("There is not a valid selected vee-validate node or component");
            return;
          }
          if (Ot.type === "field") {
            Ot.field.resetField();
            return;
          }
          Ot.type === "form" && Ot.form.resetForm(), Ot.type === "pathState" && Ot.form.resetField(Ot.state.path);
        }
      }
    ]
  }), e.on.getInspectorTree((t) => {
    if (t.inspectorId !== no)
      return;
    const n = Object.values(gh), r = Object.values(ia);
    t.rootNodes = [
      ...n.map(F2),
      ...r.map((o) => q2(o))
    ];
  }), e.on.getInspectorState((t, n) => {
    if (t.inspectorId !== no || n.currentTab !== `custom-inspector:${no}`)
      return;
    const { form: r, field: o, state: a, type: i } = V2(t.nodeId);
    if (r && i === "form") {
      t.state = z2(r), Ot = { type: "form", form: r };
      return;
    }
    if (a && i === "pathState" && r) {
      t.state = Wc(a), Ot = { type: "pathState", state: a, form: r };
      return;
    }
    if (o && i === "field") {
      t.state = Wc({
        errors: o.errors.value,
        dirty: o.meta.dirty,
        valid: o.meta.valid,
        touched: o.meta.touched,
        value: o.value.value,
        initialValue: o.meta.initialValue
      }), Ot = { field: o, type: "field" };
      return;
    }
    Ot = null;
  });
}
function F2(e) {
  const { textColor: t, bgColor: n } = yh(e.meta.value.valid), r = {};
  Object.values(e.getAllPathStates()).forEach((i) => {
    u2(r, X(i.path), j2(i, e));
  });
  function o(i, l = []) {
    const s = [...l].pop();
    return "id" in i ? Object.assign(Object.assign({}, i), { label: s || i.label }) : co(i) ? {
      id: `${l.join(".")}`,
      label: s || "",
      children: Object.keys(i).map((u) => o(i[u], [...l, u]))
    } : Array.isArray(i) ? {
      id: `${l.join(".")}`,
      label: `${s}[]`,
      children: i.map((u, c) => o(u, [...l, String(c)]))
    } : { id: "", label: "", children: [] };
  }
  const { children: a } = o(r);
  return {
    id: bu(e),
    label: "Form",
    children: a,
    tags: [
      {
        label: "Form",
        textColor: t,
        backgroundColor: n
      },
      {
        label: `${e.getAllPathStates().length} fields`,
        textColor: Zt.white,
        backgroundColor: Zt.unknown
      }
    ]
  };
}
function j2(e, t) {
  return {
    id: bu(t, e),
    label: X(e.path),
    tags: mh(e.multiple, e.fieldsCount, e.type, e.valid, t)
  };
}
function q2(e, t) {
  return {
    id: bu(t, e),
    label: X(e.name),
    tags: mh(!1, 1, e.type, e.meta.valid, t)
  };
}
function mh(e, t, n, r, o) {
  const { textColor: a, bgColor: i } = yh(r);
  return [
    e ? void 0 : {
      label: "Field",
      textColor: a,
      backgroundColor: i
    },
    o ? void 0 : {
      label: "Standalone",
      textColor: Zt.black,
      backgroundColor: Zt.gray
    },
    n === "checkbox" ? {
      label: "Checkbox",
      textColor: Zt.white,
      backgroundColor: Zt.blue
    } : void 0,
    n === "radio" ? {
      label: "Radio",
      textColor: Zt.white,
      backgroundColor: Zt.purple
    } : void 0,
    e ? {
      label: "Multiple",
      textColor: Zt.black,
      backgroundColor: Zt.orange
    } : void 0
  ].filter(Boolean);
}
function bu(e, t) {
  const n = t ? "path" in t ? "pathState" : "field" : "form", r = t ? "path" in t ? t == null ? void 0 : t.path : X(t == null ? void 0 : t.name) : "", o = { f: e == null ? void 0 : e.formId, ff: r, type: n };
  return btoa(encodeURIComponent(JSON.stringify(o)));
}
function V2(e) {
  try {
    const t = JSON.parse(decodeURIComponent(atob(e))), n = gh[t.f];
    if (!n && t.ff) {
      const o = ia[t.ff];
      return o ? {
        type: t.type,
        field: o
      } : {};
    }
    if (!n)
      return {};
    const r = n.getPathState(t.ff);
    return {
      type: t.type,
      form: n,
      state: r
    };
  } catch {
  }
  return {};
}
function Wc(e) {
  return {
    "Field state": [
      { key: "errors", value: e.errors },
      {
        key: "initialValue",
        value: e.initialValue
      },
      {
        key: "currentValue",
        value: e.value
      },
      {
        key: "touched",
        value: e.touched
      },
      {
        key: "dirty",
        value: e.dirty
      },
      {
        key: "valid",
        value: e.valid
      }
    ]
  };
}
function z2(e) {
  const { errorBag: t, meta: n, values: r, isSubmitting: o, isValidating: a, submitCount: i } = e;
  return {
    "Form state": [
      {
        key: "submitCount",
        value: i.value
      },
      {
        key: "isSubmitting",
        value: o.value
      },
      {
        key: "isValidating",
        value: a.value
      },
      {
        key: "touched",
        value: n.value.touched
      },
      {
        key: "dirty",
        value: n.value.dirty
      },
      {
        key: "valid",
        value: n.value.valid
      },
      {
        key: "initialValues",
        value: n.value.initialValues
      },
      {
        key: "currentValues",
        value: r
      },
      {
        key: "errors",
        value: ch(t.value).reduce((l, s) => {
          var u;
          const c = (u = t.value[s]) === null || u === void 0 ? void 0 : u[0];
          return c && (l[s] = c), l;
        }, {})
      }
    ]
  };
}
function yh(e) {
  return {
    bgColor: e ? Zt.success : Zt.error,
    textColor: e ? Zt.black : Zt.white
  };
}
function bh(e, t, n) {
  return lh(void 0) ? H2(e, t) : wh(e, t);
}
function wh(e, t, n) {
  const { initialValue: r, validateOnMount: o, bails: a, type: i, checkedValue: l, label: s, validateOnValueUpdate: u, uncheckedValue: c, controlled: d, keepValueOnUnmount: f, syncVModel: v, form: h } = U2(), m = d ? fh(ih) : void 0, p = h || m, g = U(() => t2(Ft(e))), y = U(() => {
    if (Ft(p == null ? void 0 : p.schema))
      return;
    const H = X(t);
    return Ns(H) || aa(H) || yr(H) || Array.isArray(H) ? H : hh(H);
  }), x = !yr(y.value) && aa(Ft(t)), { id: b, value: w, initialValue: D, meta: E, setState: T, errors: L, flags: S } = k2(g, {
    modelValue: r,
    form: p,
    bails: a,
    label: s,
    type: i,
    validate: y.value ? F : void 0,
    schema: x ? t : void 0
  }), A = U(() => L.value[0]);
  v && Y2({
    value: w,
    prop: v,
    handleChange: V,
    shouldValidate: () => u && !S.pendingReset
  });
  const C = (B, H = !1) => {
    E.touched = !0, H && I();
  };
  async function k(B) {
    var H, Z;
    if (p != null && p.validateSchema) {
      const { results: _ } = await p.validateSchema(B);
      return (H = _[Ft(g)]) !== null && H !== void 0 ? H : { valid: !0, errors: [] };
    }
    return y.value ? A2(w.value, y.value, {
      name: Ft(g),
      label: Ft(s),
      values: (Z = p == null ? void 0 : p.values) !== null && Z !== void 0 ? Z : {},
      bails: a
    }) : { valid: !0, errors: [] };
  }
  const I = Hc(async () => (E.pending = !0, E.validated = !0, k("validated-only")), (B) => (S.pendingUnmount[Y.id] || (T({ errors: B.errors }), E.pending = !1, E.valid = B.valid), B)), N = Hc(async () => k("silent"), (B) => (E.valid = B.valid, B));
  function F(B) {
    return (B == null ? void 0 : B.mode) === "silent" ? N() : I();
  }
  function V(B, H = !0) {
    const Z = vh(B);
    P(Z, H);
  }
  We(() => {
    if (o)
      return I();
    (!p || !p.validateSchema) && N();
  });
  function G(B) {
    E.touched = B;
  }
  function z(B) {
    var H;
    const Z = B && "value" in B ? B.value : D.value;
    T({
      value: Lr(Z),
      initialValue: Lr(Z),
      touched: (H = B == null ? void 0 : B.touched) !== null && H !== void 0 ? H : !1,
      errors: (B == null ? void 0 : B.errors) || []
    }), E.pending = !1, E.validated = !1, N();
  }
  const M = lo();
  function P(B, H = !0) {
    w.value = M && v ? d2(B, M.props.modelModifiers) : B, (H ? I : N)();
  }
  function R(B) {
    T({ errors: Array.isArray(B) ? B : [B] });
  }
  const q = U({
    get() {
      return w.value;
    },
    set(B) {
      P(B, u);
    }
  }), Y = {
    id: b,
    name: g,
    label: s,
    value: q,
    meta: E,
    errors: L,
    errorMessage: A,
    type: i,
    checkedValue: l,
    uncheckedValue: c,
    bails: a,
    keepValueOnUnmount: f,
    resetField: z,
    handleReset: () => z(),
    validate: F,
    handleChange: V,
    handleBlur: C,
    setState: T,
    setTouched: G,
    setErrors: R,
    setValue: P
  };
  if (lt(o2, Y), Cn(t) && typeof X(t) != "function" && Ne(t, (B, H) => {
    an(B, H) || (E.validated ? I() : N());
  }, {
    deep: !0
  }), process.env.NODE_ENV !== "production" && (Y._vm = lo(), Ne(() => Object.assign(Object.assign({ errors: L.value }, E), { value: w.value }), Ms, {
    deep: !0
  }), p || R2(Y)), !p)
    return Y;
  const Q = U(() => {
    const B = y.value;
    return !B || yr(B) || Ns(B) || aa(B) || Array.isArray(B) ? {} : Object.keys(B).reduce((H, Z) => {
      const _ = y2(B[Z]).map((re) => re.__locatorRef).reduce((re, he) => {
        const be = fo(p.values, he) || p.values[he];
        return be !== void 0 && (re[he] = be), re;
      }, {});
      return Object.assign(H, _), H;
    }, {});
  });
  return Ne(Q, (B, H) => {
    if (!Object.keys(B).length)
      return;
    !an(B, H) && (E.validated ? I() : N());
  }), Gs(() => {
    var B;
    const H = (B = Ft(Y.keepValueOnUnmount)) !== null && B !== void 0 ? B : Ft(p.keepValuesOnUnmount), Z = Ft(g);
    if (H || !p || S.pendingUnmount[Y.id]) {
      p == null || p.removePathState(Z, b);
      return;
    }
    S.pendingUnmount[Y.id] = !0;
    const _ = p.getPathState(Z);
    if (Array.isArray(_ == null ? void 0 : _.id) && (_ != null && _.multiple) ? _ != null && _.id.includes(Y.id) : (_ == null ? void 0 : _.id) === Y.id) {
      if (_ != null && _.multiple && Array.isArray(_.value)) {
        const he = _.value.findIndex((be) => an(be, Ft(Y.checkedValue)));
        if (he > -1) {
          const be = [..._.value];
          be.splice(he, 1), p.setFieldValue(Z, be);
        }
        Array.isArray(_.id) && _.id.splice(_.id.indexOf(Y.id), 1);
      } else
        p.unsetPathValue(Ft(g));
      p.removePathState(Z, b);
    }
  }), Y;
}
function U2(e) {
  return Object.assign(Object.assign({}, {
    initialValue: void 0,
    validateOnMount: !1,
    bails: !0,
    label: void 0,
    validateOnValueUpdate: !0,
    keepValueOnUnmount: void 0,
    syncVModel: !1,
    controlled: !0
  }), { initialValue: void 0 });
}
function H2(e, t, n) {
  const r = fh(ih), o = void 0, a = void 0;
  function i(l) {
    const s = l.handleChange, u = U(() => {
      const d = Ft(l.value), f = Ft(o);
      return Array.isArray(d) ? d.findIndex((v) => an(v, f)) >= 0 : an(f, d);
    });
    function c(d, f = !0) {
      var v, h;
      if (u.value === ((v = d == null ? void 0 : d.target) === null || v === void 0 ? void 0 : v.checked)) {
        f && l.validate();
        return;
      }
      const m = Ft(e), p = r == null ? void 0 : r.getPathState(m), g = vh(d);
      let y = (h = Ft(o)) !== null && h !== void 0 ? h : g;
      r && (p != null && p.multiple) && p.type === "checkbox" && (y = c2(fo(r.values, m) || [], y, void 0)), s(y, f);
    }
    return Object.assign(Object.assign({}, l), {
      checked: u,
      checkedValue: o,
      uncheckedValue: a,
      handleChange: c
    });
  }
  return i(wh(e, t));
}
function Y2({ prop: e, value: t, handleChange: n, shouldValidate: r }) {
  const o = lo();
  if (!o || !e) {
    process.env.NODE_ENV !== "production" && console.warn("Failed to setup model events because `useField` was not called in setup.");
    return;
  }
  const a = typeof e == "string" ? e : "modelValue", i = `update:${a}`;
  a in o.props && (Ne(t, (l) => {
    an(l, Gc(o, a)) || o.emit(i, l);
  }), Ne(() => Gc(o, a), (l) => {
    if (l === zc && t.value === void 0)
      return;
    const s = l === zc ? void 0 : l;
    an(s, t.value) || n(s, r());
  }));
}
function Gc(e, t) {
  if (e)
    return e.props[t];
}
const Q2 = ["placeholder"], XI = /* @__PURE__ */ se({
  __name: "UIInputField",
  props: {
    placeholder: {},
    disabled: { type: Boolean },
    name: {},
    type: { default: "text" }
  },
  setup(e) {
    const t = e, { value: n, errorMessage: r } = bh(() => t.name);
    return (o, a) => (J(), ve(He, null, [
      bn(fe("input", {
        type: "text",
        placeholder: o.placeholder,
        "onUpdate:modelValue": a[0] || (a[0] = (i) => Cn(n) ? n.value = i : null),
        class: xe(["rvx-w-full !rvx-py-[9px] !rvx-px-[12px] !rvx-leading-[0] !rvx-text-[16px] focus:!rvx-outline-none focus:!rvx-ring focus:!rvx-ring-primary-20 !rvx-border-neutral-500", {
          "!rvx-border-danger-700 !rvx-bg-secondary-10": X(r)
        }])
      }, null, 10, Q2), [
        [Ri, X(n)]
      ]),
      $(Ct, { class: "rvx-text-[12px] rvx-text-danger" }, {
        default: ee(() => [
          je(Re(X(r)), 1)
        ]),
        _: 1
      })
    ], 64));
  }
}), W2 = { class: "rvx-relative rvx-w-full" }, G2 = ["id", "type"], K2 = ["for"], ZI = /* @__PURE__ */ se({
  __name: "UIInputFieldFloat",
  props: {
    label: {},
    id: {},
    disabled: { type: Boolean },
    type: { default: "text" },
    name: {}
  },
  setup(e) {
    const t = e, { value: n } = bh(() => t.name);
    return (r, o) => (J(), ve("div", W2, [
      bn(fe("input", Ar({
        id: r.id,
        type: r.type,
        name: "name"
      }, r.$attrs, {
        class: "rvx-peer rvx-w-full rvx-rounded-lg !rvx-border-neutral-500 !rvx-px-4 !rvx-py-3 rvx-text-normal !rvx-text-neutral-700 !rvx-placeholder-transparent focus:!rvx-outline-none focus:!rvx-ring focus:!rvx-ring-primary-20 !rvx-leading-[0]",
        placeholder: "john@doe.com",
        "onUpdate:modelValue": o[0] || (o[0] = (a) => Cn(n) ? n.value = a : null)
      }), null, 16, G2), [
        [Ad, X(n)]
      ]),
      fe("label", {
        for: r.id,
        class: "rvx-absolute -rvx-top-6 rvx-left-4 rvx-bg-white rvx-text-normal rvx-text-neutral-700 rvx-transition-all peer-placeholder-shown:!rvx-top-[8px] peer-placeholder-shown:rvx-text-normal peer-focus:!-rvx-top-6 peer-focus:rvx-text-normal peer-focus:rvx-text-gray-600 rvx-cursor-auto rvx-leading-[22px]"
      }, Re(r.label), 9, K2)
    ]));
  }
}), JI = /* @__PURE__ */ se({
  __name: "UIRadioGroup",
  props: /* @__PURE__ */ rn({
    radioOptions: {},
    optionClass: {},
    iconClass: {},
    lableClass: {}
  }, {
    modelValue: { type: [String, Boolean] },
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(e) {
    const t = Wt(e, "modelValue");
    return (n, r) => (J(), ge(X($v), {
      modelValue: t.value,
      "onUpdate:modelValue": r[0] || (r[0] = (o) => t.value = o)
    }, {
      default: ee(() => [
        (J(!0), ve(He, null, mt(n.radioOptions, (o) => (J(), ge(X(eh), {
          key: o.label,
          value: o.value,
          class: xe(["rvx-cursor-pointer rvx-flex rvx-gap-space12", n.optionClass])
        }, {
          default: ee(({ checked: a }) => [
            $(Et, {
              "icon-name": a ? "radio_button_checked" : "radio_button_unchecked",
              class: xe(`${a && "rvx-text-primary"} ${n.iconClass}`)
            }, null, 8, ["icon-name", "class"]),
            $(Ct, {
              class: xe(n.lableClass)
            }, {
              default: ee(() => [
                je(Re(o.label), 1)
              ]),
              _: 2
            }, 1032, ["class"])
          ]),
          _: 2
        }, 1032, ["value", "class"]))), 128))
      ]),
      _: 1
    }, 8, ["modelValue"]));
  }
}), X2 = { class: "rvx-inline-flex rvx-items-center" }, Z2 = { class: "rvx-flex rvx-gap-space8" }, J2 = { class: "rvx-relative rvx-flex rvx-cursor-pointer rvx-items-center rvx-rounded-md" }, _2 = ["id"], _I = /* @__PURE__ */ se({
  __name: "UICheckbox",
  props: {
    modelValue: {},
    modelModifiers: {}
  },
  emits: /* @__PURE__ */ rn(["change"], ["update:modelValue"]),
  setup(e) {
    const t = Wt(e, "modelValue"), n = U(() => Math.random().toString);
    return (r, o) => (J(), ve("div", X2, [
      fe("label", Z2, [
        fe("span", J2, [
          bn(fe("input", {
            id: n.value,
            "onUpdate:modelValue": o[0] || (o[0] = (a) => t.value = a),
            class: "before:content[''] before:rvx-bg-blue-gray-500 rvx-peer rvx-relative !rvx-m-0 !rvx-size-[22px] rvx-cursor-pointer rvx-appearance-none rvx-rounded-md rvx-border rvx-border-solid rvx-border-neutral-500 rvx-transition-all before:rvx-absolute before:rvx-left-[50%] before:rvx-top-[50%] before:rvx-block before:rvx-h-12 before:rvx-w-12 before:-rvx-translate-x-[50%] before:-rvx-translate-y-[50%] before:rvx-rounded-md before:rvx-opacity-0 before:rvx-transition-opacity checked:rvx-border-primary checked:rvx-bg-primary checked:before:rvx-bg-primary hover:before:rvx-opacity-10",
            type: "checkbox",
            onChange: o[1] || (o[1] = (a) => r.$emit("change", a))
          }, null, 40, _2), [
            [fg, t.value]
          ]),
          o[2] || (o[2] = fe("span", { class: "rvx-pointer-events-none rvx-absolute rvx-inset-0 rvx-flex rvx-items-center rvx-justify-center rvx-text-white rvx-opacity-0 rvx-transition-opacity peer-checked:rvx-opacity-100" }, [
            fe("svg", {
              class: "rvx-size-[20px]",
              fill: "currentColor",
              stroke: "currentColor",
              "stroke-width": "1",
              viewBox: "0 0 20 20",
              xmlns: "http://www.w3.org/2000/svg"
            }, [
              fe("path", {
                "clip-rule": "evenodd",
                d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
                "fill-rule": "evenodd"
              })
            ])
          ], -1))
        ]),
        qe(r.$slots, "default", {}, () => [
          o[3] || (o[3] = je(" checkbox "))
        ])
      ])
    ]));
  }
}), $I = /* @__PURE__ */ se({
  __name: "UIErrorMessage",
  props: {
    message: {}
  },
  setup(e) {
    return (t, n) => (J(), ge(Ct, { class: "rvx-text-danger-700 !rvx-text-[12px] rvx-leading-[18px]" }, {
      default: ee(() => [
        je(Re(t.message), 1)
      ]),
      _: 1
    }));
  }
}), $2 = ["placeholder"], ew = /* @__PURE__ */ se({
  __name: "UITextarea",
  props: /* @__PURE__ */ rn({
    placeholder: {}
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(e) {
    const t = Wt(e, "modelValue");
    return (n, r) => bn((J(), ve("textarea", {
      "onUpdate:modelValue": r[0] || (r[0] = (o) => t.value = o),
      placeholder: n.placeholder,
      class: "rvx-ui__textarea rvx-resize-none rvx-px-space12 rvx-py-[9px] rvx-rounded-md rvx-w-full focus:!rvx-outline-none focus:!rvx-ring focus:!rvx-ring-primary-20 !rvx-border-neutral-400 rvx-text-[16px] rvx-h-[114px]"
    }, null, 8, $2)), [
      [Ri, t.value]
    ]);
  }
}), eN = /* @__PURE__ */ sn(ew, [["__scopeId", "data-v-e41c76e7"]]), tw = ["width", "height"], nw = /* @__PURE__ */ se({
  __name: "UIProIcon",
  props: {
    size: { default: 24 }
  },
  setup(e) {
    return (t, n) => (J(), ve("svg", {
      width: t.size,
      height: t.size,
      viewBox: "0 0 18 18",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg"
    }, n[0] || (n[0] = [
      bd('<g filter="url(#filter0_b_1249_26136)"><circle cx="9" cy="9" r="8.42" stroke="url(#paint0_linear_1249_26136)" stroke-width="1.16"></circle></g><path d="M6.00584 11.6302H11.9862C12.161 11.6302 12.3308 11.5722 12.4691 11.4652C12.6073 11.3581 12.7061 11.2083 12.7499 11.039L13.7066 7.33987C13.7397 7.2186 13.7349 7.09014 13.693 6.97165C13.6511 6.85316 13.574 6.75029 13.4721 6.67676C13.3701 6.60324 13.2482 6.56258 13.1225 6.5602C12.9969 6.55782 12.8735 6.59385 12.7688 6.66346L11.5501 7.47504C11.4885 7.51599 11.4188 7.54316 11.3457 7.5547C11.2726 7.56624 11.1979 7.56187 11.1266 7.5419C11.0554 7.52193 10.9893 7.48682 10.9328 7.43898C10.8764 7.39113 10.8309 7.33167 10.7996 7.26465L9.55301 4.61795C9.50308 4.512 9.42406 4.42244 9.32515 4.35971C9.22625 4.29698 9.11154 4.26367 8.99442 4.26367C8.8773 4.26367 8.7626 4.29698 8.66369 4.35971C8.56479 4.42244 8.48576 4.512 8.43584 4.61795L7.19244 7.26465C7.16108 7.33175 7.11561 7.39128 7.05912 7.43918C7.00264 7.48708 6.93648 7.52222 6.86517 7.54219C6.79385 7.56217 6.71907 7.56651 6.64592 7.55492C6.57277 7.54333 6.50299 7.51608 6.44135 7.47504L5.22319 6.66346C5.11855 6.59385 4.99515 6.55782 4.86949 6.5602C4.74383 6.56258 4.62188 6.60324 4.51995 6.67676C4.41801 6.75029 4.34094 6.85316 4.29902 6.97165C4.25711 7.09014 4.25235 7.2186 4.28538 7.33987L5.24213 11.039C5.28594 11.2083 5.38472 11.3581 5.52295 11.4652C5.66118 11.5722 5.83103 11.6302 6.00584 11.6302Z" fill="url(#paint1_linear_1249_26136)"></path><path d="M12.5134 13.6065H5.47814C5.3705 13.6065 5.26726 13.5526 5.19114 13.4566C5.11503 13.3607 5.07227 13.2305 5.07227 13.0948C5.07227 12.959 5.11503 12.8289 5.19114 12.7329C5.26726 12.6369 5.3705 12.583 5.47814 12.583H12.5134C12.621 12.583 12.7242 12.6369 12.8004 12.7329C12.8765 12.8289 12.9192 12.959 12.9192 13.0948C12.9192 13.2305 12.8765 13.3607 12.8004 13.4566C12.7242 13.5526 12.621 13.6065 12.5134 13.6065Z" fill="url(#paint2_linear_1249_26136)"></path><defs><filter id="filter0_b_1249_26136" x="-0.818182" y="-0.818182" width="19.6364" height="19.6364" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feGaussianBlur in="BackgroundImageFix" stdDeviation="0.409091"></feGaussianBlur><feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_1249_26136"></feComposite><feBlend mode="normal" in="SourceGraphic" in2="effect1_backgroundBlur_1249_26136" result="shape"></feBlend></filter><linearGradient id="paint0_linear_1249_26136" x1="9" y1="0" x2="9" y2="18" gradientUnits="userSpaceOnUse"><stop stop-color="#FF6D00"></stop><stop offset="1" stop-color="#FE9902"></stop></linearGradient><linearGradient id="paint1_linear_1249_26136" x1="8.996" y1="4.26367" x2="8.996" y2="11.6302" gradientUnits="userSpaceOnUse"><stop stop-color="#FF6D00"></stop><stop offset="1" stop-color="#FE9902"></stop></linearGradient><linearGradient id="paint2_linear_1249_26136" x1="8.99575" y1="12.583" x2="8.99575" y2="13.6065" gradientUnits="userSpaceOnUse"><stop stop-color="#FF6D00"></stop><stop offset="1" stop-color="#FE9902"></stop></linearGradient></defs>', 4)
    ]), 8, tw));
  }
}), rw = {
  key: 0,
  class: "rvx-h-[1px] rvx-bg-neutral-600"
}, ow = {
  key: 1,
  class: "rvx-h-[1px] dashed"
}, aw = {
  key: 2,
  class: "rvx-h-[1px] dotted"
}, iw = {
  key: 3,
  class: "rvx-h-[1px]"
}, lw = /* @__PURE__ */ se({
  __name: "UILine",
  props: {
    type: { default: "solid" }
  },
  setup(e) {
    return (t, n) => t.type === "solid" ? (J(), ve("div", rw)) : t.type === "dashed" ? (J(), ve("div", ow)) : t.type === "dotted" ? (J(), ve("div", aw)) : t.type === "line" ? (J(), ve("div", iw)) : Ie("", !0);
  }
}), tN = /* @__PURE__ */ sn(lw, [["__scopeId", "data-v-51090aab"]]), sw = /* @__PURE__ */ se({
  __name: "UIModal",
  props: {
    visibility: { type: Boolean },
    modalWrapperClass: {},
    modalClass: {},
    showCloseIcon: { type: Boolean, default: !0 },
    dialogClass: {}
  },
  emits: ["close"],
  setup(e) {
    return (t, n) => (J(), ge(ga, { to: "body" }, [
      $(X(Pa), {
        appear: "",
        show: t.visibility,
        as: "template"
      }, {
        default: ee(() => [
          $(X(fu), {
            as: "div",
            onClose: n[1] || (n[1] = (r) => t.$emit("close")),
            class: "rvx-relative rvx-z-10"
          }, {
            default: ee(() => [
              $(X(zr), {
                as: "template",
                enter: "rvx-duration-300 rvx-ease-out",
                "enter-from": "rvx-opacity-0",
                "enter-to": "rvx-opacity-100",
                leave: "rvx-duration-200 ease-in",
                "leave-from": "rvx-opacity-100",
                "leave-to": "rvx-opacity-0"
              }, {
                default: ee(() => [
                  $(we, { class: "rvx-fixed rvx-inset-0 rvx-bg-black/25" })
                ]),
                _: 1
              }),
              $(we, { class: "rvx-fixed rvx-inset-0 rvx-overflow-y-auto" }, {
                default: ee(() => [
                  $(we, { class: "rvx-flex rvx-min-h-full rvx-items-center rvx-justify-center rvx-text-center" }, {
                    default: ee(() => [
                      $(X(zr), {
                        as: "template",
                        enter: "rvx-duration-300 ease-out",
                        "enter-from": "rvx-opacity-0 rvx-scale-95",
                        "enter-to": "rvx-opacity-100 rvx-scale-100",
                        leave: "rvx-duration-200 rvx-ease-in",
                        "leave-from": "rvx-opacity-100 rvx-scale-100",
                        "leave-to": "rvx-opacity-0 rvx-scale-95"
                      }, {
                        default: ee(() => [
                          $(X(du), {
                            class: xe(["rvx-min-[476px] rvx-transform rvx-rounded-2xl rvx-bg-white rvx-text-left rvx-align-middle rvx-shadow-xl rvx-transition-all rvx-relative", t.modalWrapperClass])
                          }, {
                            default: ee(() => [
                              $(we, {
                                class: xe(["rvx-bg-white rvx-w-full rvx-rounded-lg", t.modalClass])
                              }, {
                                default: ee(() => [
                                  qe(t.$slots, "default", {}, () => [
                                    n[2] || (n[2] = fe("h1", null, "How would you like to add reviews?", -1))
                                  ])
                                ]),
                                _: 3
                              }, 8, ["class"]),
                              t.showCloseIcon ? (J(), ge(we, {
                                key: 0,
                                onClick: n[0] || (n[0] = (r) => t.$emit("close")),
                                class: "rvx-absolute rvx-top-[10px] rvx-right-[-23px] rvx-size-space24 rvx-bg-neutral-300 rvx-rounded-sm rvx-cursor-pointer rvx-flex rvx-justify-center rvx-items-center hover:rvx-bg-neutral-200 rvx-transform"
                              }, {
                                default: ee(() => [
                                  $(Et, {
                                    "icon-name": "close",
                                    class: "!rvx-text-[20px]"
                                  })
                                ]),
                                _: 1
                              })) : Ie("", !0)
                            ]),
                            _: 3
                          }, 8, ["class"])
                        ]),
                        _: 3
                      })
                    ]),
                    _: 3
                  })
                ]),
                _: 3
              })
            ]),
            _: 3
          })
        ]),
        _: 3
      }, 8, ["show"])
    ]));
  }
}), nN = /* @__PURE__ */ se({
  __name: "UIModuleSettingActions",
  props: {
    loader: { type: Boolean, default: !1 },
    defaultLoader: { type: Boolean, default: !1 },
    visibility: { type: Boolean, default: !0 },
    disabled: { type: Boolean, default: !1 },
    showDefaultButton: { type: Boolean, default: !0 },
    defaultButtonDisabled: { type: Boolean, default: !1 }
  },
  emits: ["save", "default"],
  setup(e) {
    return (t, n) => (J(), ge(ga, { to: "#wpwrap" }, [
      $(we, { class: "rvx-flex rvx-justify-end rvx-gap-space16 rvx-bg-white rvx-shadow rvx-rounded-md rvx-p-space16 rvx-fixed rvx-bottom-[50px] rvx-right-[20px] rvx-left-[182px]" }, {
        default: ee(() => [
          t.showDefaultButton ? (J(), ge(Qi, {
            key: 0,
            loader: t.defaultLoader,
            disabled: t.defaultButtonDisabled,
            variant: "gray",
            onClick: n[0] || (n[0] = (r) => t.$emit("default"))
          }, {
            default: ee(() => [
              qe(t.$slots, "default", {}, () => [
                n[2] || (n[2] = je("Default"))
              ])
            ]),
            _: 3
          }, 8, ["loader", "disabled"])) : Ie("", !0),
          $(X1, {
            loader: t.loader,
            disabled: t.disabled,
            onClick: n[1] || (n[1] = (r) => t.$emit("save"))
          }, {
            default: ee(() => [
              qe(t.$slots, "save", {}, () => [
                n[3] || (n[3] = je(" Save "))
              ])
            ]),
            _: 3
          }, 8, ["loader", "disabled"])
        ]),
        _: 3
      })
    ]));
  }
}), uw = {
  xmlns: "http://www.w3.org/2000/svg",
  width: "81",
  height: "90",
  viewBox: "0 0 81 90",
  fill: "none"
}, cw = ["fill"], fw = ["fill"], dw = ["fill"], vw = ["fill"], hw = /* @__PURE__ */ se({
  __name: "UIReviewListViewIcon",
  props: {
    activeColor: { default: "#E0E0E0" }
  },
  setup(e) {
    return (t, n) => (J(), ve("svg", uw, [
      n[0] || (n[0] = fe("rect", {
        x: "0.458763",
        y: "0.458763",
        width: "79.7491",
        height: "89.0825",
        rx: "5.45418",
        fill: "white",
        stroke: "#BDBDBD",
        "stroke-width": "0.917526"
      }, null, -1)),
      fe("path", {
        d: "M10.5458 17.8351C10.5458 16.9429 11.269 16.2196 12.1612 16.2196H68.5071C69.3993 16.2196 70.1226 16.9429 70.1226 17.8351V24.1649C70.1226 25.0571 69.3993 25.7804 68.5071 25.7804H12.1612C11.269 25.7804 10.5458 25.0571 10.5458 24.1649V17.8351Z",
        fill: t.activeColor,
        stroke: "#BDBDBD",
        "stroke-width": "0.439189"
      }, null, 8, cw),
      fe("path", {
        d: "M10.5458 33.8351C10.5458 32.9429 11.269 32.2196 12.1612 32.2196H68.5071C69.3993 32.2196 70.1226 32.9429 70.1226 33.8351V40.1649C70.1226 41.0571 69.3993 41.7804 68.5071 41.7804H12.1612C11.269 41.7804 10.5458 41.0571 10.5458 40.1649V33.8351Z",
        fill: t.activeColor,
        stroke: "#BDBDBD",
        "stroke-width": "0.439189"
      }, null, 8, fw),
      fe("path", {
        d: "M10.5458 49.8351C10.5458 48.9429 11.269 48.2196 12.1612 48.2196H68.5071C69.3993 48.2196 70.1226 48.9429 70.1226 49.8351V56.1649C70.1226 57.0571 69.3993 57.7804 68.5071 57.7804H12.1612C11.269 57.7804 10.5458 57.0571 10.5458 56.1649V49.8351Z",
        fill: t.activeColor,
        stroke: "#BDBDBD",
        "stroke-width": "0.439189"
      }, null, 8, dw),
      fe("path", {
        d: "M10.5458 65.8351C10.5458 64.9429 11.269 64.2196 12.1612 64.2196H68.5071C69.3993 64.2196 70.1226 64.9429 70.1226 65.8351V72.1649C70.1226 73.0571 69.3993 73.7804 68.5071 73.7804H12.1612C11.269 73.7804 10.5458 73.0571 10.5458 72.1649V65.8351Z",
        fill: t.activeColor,
        stroke: "#BDBDBD",
        "stroke-width": "0.439189"
      }, null, 8, vw)
    ]));
  }
}), pw = {
  width: "82",
  height: "90",
  viewBox: "0 0 82 90",
  fill: "none",
  xmlns: "http://www.w3.org/2000/svg"
}, gw = ["fill"], mw = ["fill"], yw = ["fill"], bw = ["fill"], ww = ["fill"], xw = ["fill"], Aw = /* @__PURE__ */ se({
  __name: "UIReviewGridViewIcon",
  props: {
    activeColor: { default: "#E0E0E0" }
  },
  setup(e) {
    return (t, n) => (J(), ve("svg", pw, [
      n[0] || (n[0] = fe("rect", {
        x: "1.12576",
        y: "0.458763",
        width: "79.7491",
        height: "89.0825",
        rx: "5.45418",
        fill: "white",
        stroke: "#BDBDBD",
        "stroke-width": "0.917526"
      }, null, -1)),
      fe("path", {
        d: "M11.4424 17.8351C11.4424 16.8216 12.264 16 13.2774 16H36.6073C37.6208 16 38.4424 16.8216 38.4424 17.8351V30.1649C38.4424 31.1784 37.6208 32 36.6073 32H13.2774C12.264 32 11.4424 31.1784 11.4424 30.1649V17.8351Z",
        fill: t.activeColor
      }, null, 8, gw),
      fe("path", {
        d: "M11.4424 39.8351C11.4424 38.8216 12.264 38 13.2774 38H36.6073C37.6208 38 38.4424 38.8216 38.4424 39.8351V46.1649C38.4424 47.1784 37.6208 48 36.6073 48H13.2774C12.264 48 11.4424 47.1784 11.4424 46.1649V39.8351Z",
        fill: t.activeColor
      }, null, 8, mw),
      fe("path", {
        d: "M11.4424 55.8351C11.4424 54.8216 12.264 54 13.2774 54H36.6073C37.6208 54 38.4424 54.8216 38.4424 55.8351V72.1649C38.4424 73.1784 37.6208 74 36.6073 74H13.2774C12.264 74 11.4424 73.1784 11.4424 72.1649V55.8351Z",
        fill: t.activeColor
      }, null, 8, yw),
      fe("path", {
        d: "M42.4424 17.8351C42.4424 16.8216 43.264 16 44.2774 16H68.6073C69.6208 16 70.4424 16.8216 70.4424 17.8351V37.1649C70.4424 38.1784 69.6208 39 68.6073 39H44.2774C43.264 39 42.4424 38.1784 42.4424 37.1649V17.8351Z",
        fill: t.activeColor
      }, null, 8, bw),
      fe("path", {
        d: "M42.4424 46.8351C42.4424 45.8216 43.264 45 44.2774 45H68.6073C69.6208 45 70.4424 45.8216 70.4424 46.8351V58.1649C70.4424 59.1784 69.6208 60 68.6073 60H44.2774C43.264 60 42.4424 59.1784 42.4424 58.1649V46.8351Z",
        fill: t.activeColor
      }, null, 8, ww),
      fe("path", {
        d: "M42.4424 67.8351C42.4424 66.8216 43.264 66 44.2774 66H68.6073C69.6208 66 70.4424 66.8216 70.4424 67.8351V72.1649C70.4424 73.1784 69.6208 74 68.6073 74H44.2774C43.264 74 42.4424 73.1784 42.4424 72.1649V67.8351Z",
        fill: t.activeColor
      }, null, 8, xw)
    ]));
  }
}), Ow = {
  width: "81",
  height: "90",
  viewBox: "0 0 81 90",
  fill: "none",
  xmlns: "http://www.w3.org/2000/svg"
}, Cw = ["fill"], Ew = ["fill"], Sw = ["fill"], Tw = ["fill"], Dw = ["fill"], kw = ["fill"], Pw = /* @__PURE__ */ se({
  __name: "UIReviewMesonryViewIcon",
  props: {
    activeColor: { default: "#E0E0E0" }
  },
  setup(e) {
    return (t, n) => (J(), ve("svg", Ow, [
      n[0] || (n[0] = fe("rect", {
        x: "0.833008",
        y: "0.5",
        width: "79.6667",
        height: "89",
        rx: "5.94444",
        fill: "white",
        stroke: "#BDBDBD"
      }, null, -1)),
      fe("path", {
        d: "M10.6582 58.2692C10.6582 57.016 11.6742 56 12.9274 56H26.4583C27.7116 56 28.7275 57.016 28.7275 58.2692V71.7308C28.7275 72.984 27.7116 74 26.4583 74H12.9274C11.6742 74 10.6582 72.984 10.6582 71.7308V58.2692Z",
        fill: t.activeColor
      }, null, 8, Cw),
      fe("path", {
        d: "M32.5996 42.2692C32.5996 41.016 33.6156 40 34.8688 40H47.109C48.3623 40 49.3783 41.016 49.3783 42.2692V71.7308C49.3783 72.984 48.3623 74 47.109 74H34.8688C33.6156 74 32.5996 72.984 32.5996 71.7308V42.2692Z",
        fill: t.activeColor
      }, null, 8, Ew),
      fe("path", {
        d: "M53.25 65.2692C53.25 64.016 54.266 63 55.5192 63H68.4048C69.658 63 70.674 64.016 70.674 65.2692V71.7308C70.674 72.984 69.658 74 68.4048 74H55.5192C54.266 74 53.25 72.984 53.25 71.7308V65.2692Z",
        fill: t.activeColor
      }, null, 8, Sw),
      fe("path", {
        d: "M10.6582 18.2692C10.6582 17.016 11.6742 16 12.9274 16H26.4583C27.7116 16 28.7275 17.016 28.7275 18.2692V47.7308C28.7275 48.984 27.7116 50 26.4583 50H12.9274C11.6742 50 10.6582 48.984 10.6582 47.7308V18.2692Z",
        fill: t.activeColor
      }, null, 8, Tw),
      fe("path", {
        d: "M32.5996 18.2692C32.5996 17.016 33.6156 16 34.8688 16H47.109C48.3623 16 49.3783 17.016 49.3783 18.2692V31.7308C49.3783 32.984 48.3623 34 47.109 34H34.8688C33.6156 34 32.5996 32.984 32.5996 31.7308V18.2692Z",
        fill: t.activeColor
      }, null, 8, Dw),
      fe("path", {
        d: "M53.25 18.2692C53.25 17.016 54.266 16 55.5192 16H68.4048C69.658 16 70.674 17.016 70.674 18.2692V54.7308C70.674 55.984 69.658 57 68.4048 57H55.5192C54.266 57 53.25 55.984 53.25 54.7308V18.2692Z",
        fill: t.activeColor
      }, null, 8, kw)
    ]));
  }
}), rN = /* @__PURE__ */ se({
  __name: "UIReviewViewMode",
  props: /* @__PURE__ */ rn({
    options: {}
  }, {
    modelValue: { default: "masonry" },
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(e) {
    const t = Wt(e, "modelValue");
    return (n, r) => (J(), ge(X($v), {
      modelValue: t.value,
      "onUpdate:modelValue": r[0] || (r[0] = (o) => t.value = o),
      class: "rvx-flex rvx-gap-space12"
    }, {
      default: ee(() => [
        (J(!0), ve(He, null, mt(n.options, (o) => (J(), ge(X(eh), {
          key: o.value,
          value: o.value,
          class: "rvx-cursor-pointer"
        }, {
          default: ee(({ checked: a }) => [
            $(we, { class: "rvx-space-y-space8" }, {
              default: ee(() => [
                o.value == "list" ? (J(), ge(hw, {
                  key: 0,
                  "active-color": a ? "#CCDBFF" : "#BDBDBD",
                  style: vn({ border: `1px solid ${a ? "#0043DD" : "transparent"}`, borderRadius: "7px" })
                }, null, 8, ["active-color", "style"])) : Ie("", !0),
                o.value === "grid" ? (J(), ge(Aw, {
                  key: 1,
                  "active-color": a ? "#CCDBFF" : "#BDBDBD",
                  style: vn({ border: `1px solid ${a ? "#0043DD" : "transparent"}`, borderRadius: "7px" })
                }, null, 8, ["active-color", "style"])) : Ie("", !0),
                o.value === "masonry" ? (J(), ge(Pw, {
                  key: 2,
                  "active-color": a ? "#CCDBFF" : "#BDBDBD",
                  style: vn({ border: `1px solid ${a ? "#0043DD" : "transparent"}`, borderRadius: "7px" })
                }, null, 8, ["active-color", "style"])) : Ie("", !0),
                $(we, { class: "rvx-flex rvx-gap-space8" }, {
                  default: ee(() => [
                    $(Et, {
                      class: xe(["!rvx-text-[20px]", a ? "rvx-text-primary" : "rvx-text-neutral-400"]),
                      "icon-name": a ? "radio_button_checked" : "radio_button_unchecked"
                    }, null, 8, ["class", "icon-name"]),
                    $(Ct, null, {
                      default: ee(() => [
                        je(Re(o.label), 1)
                      ]),
                      _: 2
                    }, 1024)
                  ]),
                  _: 2
                }, 1024)
              ]),
              _: 2
            }, 1024)
          ]),
          _: 2
        }, 1032, ["value"]))), 128))
      ]),
      _: 1
    }, 8, ["modelValue"]));
  }
}), Iw = /* @__PURE__ */ se({
  __name: "UISearchWithIcon",
  props: /* @__PURE__ */ rn({
    placeholder: { default: "Search" }
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: /* @__PURE__ */ rn(["blur", "focus"], ["update:modelValue"]),
  setup(e) {
    const t = Wt(e, "modelValue");
    return (n, r) => (J(), ge(we, { class: "rvx-relative" }, {
      default: ee(() => [
        $(Et, {
          "icon-name": "search",
          class: "rvx-absolute rvx-top-[9px] rvx-left-[9px] rvx-text-neutral-700 rvx-pointer-events-none"
        }),
        $(ks, {
          modelValue: t.value,
          "onUpdate:modelValue": r[0] || (r[0] = (o) => t.value = o),
          placeholder: n.placeholder,
          class: "!rvx-pl-[40px] rvx-border rvx-border-solid rvx-rounded-md",
          onBlur: r[1] || (r[1] = (o) => n.$emit("blur")),
          onFocus: r[2] || (r[2] = (o) => n.$emit("focus"))
        }, null, 8, ["modelValue", "placeholder"])
      ]),
      _: 1
    }));
  }
});
function Nw(e) {
  return hg() ? (wd(e), !0) : !1;
}
function vo(e) {
  return typeof e == "function" ? e() : X(e);
}
const xh = typeof window < "u" && typeof document < "u";
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
const Mw = Object.prototype.toString, Lw = (e) => Mw.call(e) === "[object Object]", Fr = () => {
}, Rw = /* @__PURE__ */ Bw();
function Bw() {
  var e, t;
  return xh && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
}
function Fw(e, t) {
  function n(...r) {
    return new Promise((o, a) => {
      Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(o).catch(a);
    });
  }
  return n;
}
function jw(e, t = {}) {
  let n, r, o = Fr;
  const a = (l) => {
    clearTimeout(l), o(), o = Fr;
  };
  return (l) => {
    const s = vo(e), u = vo(t.maxWait);
    return n && a(n), s <= 0 || u !== void 0 && u <= 0 ? (r && (a(r), r = null), Promise.resolve(l())) : new Promise((c, d) => {
      o = t.rejectOnCancel ? d : c, u && !r && (r = setTimeout(() => {
        n && a(n), r = null, c(l());
      }, u)), n = setTimeout(() => {
        r && a(r), r = null, c(l());
      }, s);
    });
  };
}
function qw(...e) {
  if (e.length !== 1)
    return ra(...e);
  const t = e[0];
  return typeof t == "function" ? dg(vg(() => ({ get: t, set: Fr }))) : ne(t);
}
function Vw(e, t = 200, n = {}) {
  return Fw(
    jw(t, n),
    e
  );
}
function $o(e) {
  var t;
  const n = vo(e);
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
}
const Ah = xh ? window : void 0;
function ci(...e) {
  let t, n, r, o;
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, r, o] = e, t = Ah) : [t, n, r, o] = e, !t)
    return Fr;
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
  const a = [], i = () => {
    a.forEach((c) => c()), a.length = 0;
  }, l = (c, d, f, v) => (c.addEventListener(d, f, v), () => c.removeEventListener(d, f, v)), s = Ne(
    () => [$o(t), vo(o)],
    ([c, d]) => {
      if (i(), !c)
        return;
      const f = Lw(d) ? { ...d } : d;
      a.push(
        ...n.flatMap((v) => r.map((h) => l(c, v, h, f)))
      );
    },
    { immediate: !0, flush: "post" }
  ), u = () => {
    s(), i();
  };
  return Nw(u), u;
}
let Kc = !1;
function zw(e, t, n = {}) {
  const { window: r = Ah, ignore: o = [], capture: a = !0, detectIframe: i = !1 } = n;
  if (!r)
    return Fr;
  Rw && !Kc && (Kc = !0, Array.from(r.document.body.children).forEach((f) => f.addEventListener("click", Fr)), r.document.documentElement.addEventListener("click", Fr));
  let l = !0;
  const s = (f) => o.some((v) => {
    if (typeof v == "string")
      return Array.from(r.document.querySelectorAll(v)).some((h) => h === f.target || f.composedPath().includes(h));
    {
      const h = $o(v);
      return h && (f.target === h || f.composedPath().includes(h));
    }
  }), c = [
    ci(r, "click", (f) => {
      const v = $o(e);
      if (!(!v || v === f.target || f.composedPath().includes(v))) {
        if (f.detail === 0 && (l = !s(f)), !l) {
          l = !0;
          return;
        }
        t(f);
      }
    }, { passive: !0, capture: a }),
    ci(r, "pointerdown", (f) => {
      const v = $o(e);
      l = !s(f) && !!(v && !f.composedPath().includes(v));
    }, { passive: !0 }),
    i && ci(r, "blur", (f) => {
      setTimeout(() => {
        var v;
        const h = $o(e);
        ((v = r.document.activeElement) == null ? void 0 : v.tagName) === "IFRAME" && !(h != null && h.contains(r.document.activeElement)) && t(f);
      }, 0);
    })
  ].filter(Boolean);
  return () => c.forEach((f) => f());
}
function Oh(e, t) {
  const n = Bi(u()), r = qw(e), o = U({
    get() {
      var c;
      const d = r.value;
      let f = t != null && t.getIndexOf ? t.getIndexOf(n.value, d) : d.indexOf(n.value);
      return f < 0 && (f = (c = t == null ? void 0 : t.fallbackIndex) != null ? c : 0), f;
    },
    set(c) {
      a(c);
    }
  });
  function a(c) {
    const d = r.value, f = d.length, v = (c % f + f) % f, h = d[v];
    return n.value = h, h;
  }
  function i(c = 1) {
    return a(o.value + c);
  }
  function l(c = 1) {
    return i(c);
  }
  function s(c = 1) {
    return i(-c);
  }
  function u() {
    var c, d;
    return (d = vo((c = t == null ? void 0 : t.initialValue) != null ? c : vo(e)[0])) != null ? d : void 0;
  }
  return Ne(r, () => a(o.value)), {
    state: n,
    index: o,
    next: l,
    prev: s,
    go: a
  };
}
const oN = /* @__PURE__ */ se({
  __name: "UISideDrawer",
  props: {
    visibility: { type: Boolean },
    isDashboard: { type: Boolean, default: !0 }
  },
  emits: ["close"],
  setup(e, { expose: t }) {
    const n = e, r = ne(!1), o = (i) => {
      if (i) {
        const { scrollTop: l, scrollHeight: s, clientHeight: u } = i;
        l + u >= s ? r.value = !0 : r.value = !1;
      }
    }, a = Vw(() => {
      const i = document.querySelector("#rvx-sideDrawer-contentRef");
      ci(i, "scroll", () => o(i));
    }, 1e3);
    return Ne(() => n.visibility, (i) => {
      i && a();
    }, {
      deep: !0
    }), t({ isBottomPosition: r }), (i, l) => (J(), ge(X(Pa), {
      appear: "",
      show: i.visibility
    }, {
      default: ee(() => [
        $(X(fu), {
          class: xe(["rvx-bg-[rgba(82, 95, 127, .25)] rvx-flex rvx-justify-end rvx-fixed rvx-inset-0", `${i.isDashboard ? "rvx-z-10" : "rvx-z-[99999]"}`]),
          onClose: l[1] || (l[1] = (s) => i.$emit("close"))
        }, {
          default: ee(() => [
            $(X(zr), {
              enter: "rvx-duration-300 rvx-ease-out",
              "enter-from": "rvx-opacity-0",
              "enter-to": "rvx-opacity-100",
              leave: "rvx-duration-200 rvx-ease-in",
              "leave-from": "rvx-opacity-100",
              "leave-to": "rvx-opacity-0 "
            }, {
              default: ee(() => l[2] || (l[2] = [
                fe("div", { class: "rvx-fixed rvx-inset-0 rvx-bg-black/25 rvx-right-[calc(533px)]" }, null, -1)
              ])),
              _: 1
            }),
            $(X(zr), {
              enter: "rvx-duration-300 rvx-ease-out",
              "enter-from": "rvx-opacity-0 rvx-scale-95",
              "enter-to": "rvx-opacity-100 rvx-scale-100",
              leave: "rvx-duration-200 rvx-ease-in",
              "leave-from": "rvx-opacity-100 rvx-scale-100",
              "leave-to": "rvx-opacity-0 rvx-scale-95"
            }, {
              default: ee(() => [
                $(we, { class: "rvx-h-full rvx-bg-white rvx-w-[533px] rvx-shadow-md rvx-flex rvx-flex-col rvx-justify-between rvx-relative" }, {
                  default: ee(() => [
                    $(X(du), null, {
                      default: ee(() => [
                        $(we, {
                          class: xe(["rvx-p-5 rvx-border-b rvx-font-medium", {
                            "rvx-mt-[32px]": i.isDashboard
                          }])
                        }, {
                          default: ee(() => [
                            $(we, null, {
                              default: ee(() => [
                                qe(i.$slots, "header", {}, () => [
                                  l[3] || (l[3] = je(" Side drawer title "))
                                ])
                              ]),
                              _: 3
                            }),
                            $(we, {
                              onClick: l[0] || (l[0] = (s) => i.$emit("close")),
                              class: xe(["rvx-absolute rvx-top-[10px] rvx-left-[-23px] rvx-size-space24 rvx-bg-neutral-300 rvx-rounded-sm rvx-cursor-pointer rvx-flex rvx-justify-center rvx-items-center hover:rvx-bg-neutral-200 rvx-transform", {
                                "rvx-mt-[32px]": i.isDashboard
                              }])
                            }, {
                              default: ee(() => [
                                $(Et, { "icon-name": "close" })
                              ]),
                              _: 1
                            }, 8, ["class"])
                          ]),
                          _: 3
                        }, 8, ["class"]),
                        $(we, {
                          ref: "contentRef",
                          id: "rvx-sideDrawer-contentRef",
                          class: "rvx-p-5 rvx-pt-0 rvx-flex-grow rvx-scrollbar"
                        }, {
                          default: ee(() => [
                            qe(i.$slots, "default", {}, () => [
                              l[4] || (l[4] = fe("p", null, "Side drawer content goes here.", -1))
                            ])
                          ]),
                          _: 3
                        }, 512),
                        $(we, { class: "rvx-p-5 rvx-flex rvx-justify-end rvx-gap-space8" }, {
                          default: ee(() => [
                            qe(i.$slots, "footer")
                          ]),
                          _: 3
                        })
                      ]),
                      _: 3
                    })
                  ]),
                  _: 3
                })
              ]),
              _: 3
            })
          ]),
          _: 3
        }, 8, ["class"])
      ]),
      _: 3
    }, 8, ["show"]));
  }
}), Uw = /* @__PURE__ */ se({
  __name: "UISkeletonWrap",
  setup(e) {
    return (t, n) => (J(), ge(we, { class: "rvx-animate-pulse" }, {
      default: ee(() => [
        qe(t.$slots, "default")
      ]),
      _: 3
    }));
  }
}), aN = /* @__PURE__ */ se({
  __name: "UITableSkeletonLoader",
  props: {
    rows: { default: 10 },
    rowClass: {}
  },
  setup(e) {
    return (t, n) => (J(), ge(Uw, { class: "rvx-space-y-space24" }, {
      default: ee(() => [
        $(we, { class: "rvx-space-y-space8" }, {
          default: ee(() => [
            (J(!0), ve(He, null, mt(t.rows, (r) => (J(), ge(we, {
              key: r,
              class: xe(["rvx-w-full rvx-h-[40px] rvx-rounded-md rvx-bg-neutral-500", t.rowClass])
            }, null, 8, ["class"]))), 128))
          ]),
          _: 1
        })
      ]),
      _: 1
    }));
  }
});
var Ch = { exports: {} };
/*!
 * Quill Editor v1.3.7
 * https://quilljs.com/
 * Copyright (c) 2014, Jason Chen
 * Copyright (c) 2013, salesforce.com
 */
(function(e, t) {
  (function(r, o) {
    e.exports = o();
  })(typeof self < "u" ? self : Tt, function() {
    return (
      /******/
      function(n) {
        var r = {};
        function o(a) {
          if (r[a])
            return r[a].exports;
          var i = r[a] = {
            /******/
            i: a,
            /******/
            l: !1,
            /******/
            exports: {}
            /******/
          };
          return n[a].call(i.exports, i, i.exports, o), i.l = !0, i.exports;
        }
        return o.m = n, o.c = r, o.d = function(a, i, l) {
          o.o(a, i) || Object.defineProperty(a, i, {
            /******/
            configurable: !1,
            /******/
            enumerable: !0,
            /******/
            get: l
            /******/
          });
        }, o.n = function(a) {
          var i = a && a.__esModule ? (
            /******/
            function() {
              return a.default;
            }
          ) : (
            /******/
            function() {
              return a;
            }
          );
          return o.d(i, "a", i), i;
        }, o.o = function(a, i) {
          return Object.prototype.hasOwnProperty.call(a, i);
        }, o.p = "", o(o.s = 109);
      }([
        /* 0 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", { value: !0 });
          var a = o(17), i = o(18), l = o(19), s = o(45), u = o(46), c = o(47), d = o(48), f = o(49), v = o(12), h = o(32), m = o(33), p = o(31), g = o(1), y = {
            Scope: g.Scope,
            create: g.create,
            find: g.find,
            query: g.query,
            register: g.register,
            Container: a.default,
            Format: i.default,
            Leaf: l.default,
            Embed: d.default,
            Scroll: s.default,
            Block: c.default,
            Inline: u.default,
            Text: f.default,
            Attributor: {
              Attribute: v.default,
              Class: h.default,
              Style: m.default,
              Store: p.default
            }
          };
          r.default = y;
        },
        /* 1 */
        /***/
        function(n, r, o) {
          var a = this && this.__extends || function() {
            var p = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(g, y) {
              g.__proto__ = y;
            } || function(g, y) {
              for (var x in y)
                y.hasOwnProperty(x) && (g[x] = y[x]);
            };
            return function(g, y) {
              p(g, y);
              function x() {
                this.constructor = g;
              }
              g.prototype = y === null ? Object.create(y) : (x.prototype = y.prototype, new x());
            };
          }();
          Object.defineProperty(r, "__esModule", { value: !0 });
          var i = (
            /** @class */
            function(p) {
              a(g, p);
              function g(y) {
                var x = this;
                return y = "[Parchment] " + y, x = p.call(this, y) || this, x.message = y, x.name = x.constructor.name, x;
              }
              return g;
            }(Error)
          );
          r.ParchmentError = i;
          var l = {}, s = {}, u = {}, c = {};
          r.DATA_KEY = "__blot";
          var d;
          (function(p) {
            p[p.TYPE = 3] = "TYPE", p[p.LEVEL = 12] = "LEVEL", p[p.ATTRIBUTE = 13] = "ATTRIBUTE", p[p.BLOT = 14] = "BLOT", p[p.INLINE = 7] = "INLINE", p[p.BLOCK = 11] = "BLOCK", p[p.BLOCK_BLOT = 10] = "BLOCK_BLOT", p[p.INLINE_BLOT = 6] = "INLINE_BLOT", p[p.BLOCK_ATTRIBUTE = 9] = "BLOCK_ATTRIBUTE", p[p.INLINE_ATTRIBUTE = 5] = "INLINE_ATTRIBUTE", p[p.ANY = 15] = "ANY";
          })(d = r.Scope || (r.Scope = {}));
          function f(p, g) {
            var y = h(p);
            if (y == null)
              throw new i("Unable to create " + p + " blot");
            var x = y, b = (
              // @ts-ignore
              p instanceof Node || p.nodeType === Node.TEXT_NODE ? p : x.create(g)
            );
            return new x(b, g);
          }
          r.create = f;
          function v(p, g) {
            return g === void 0 && (g = !1), p == null ? null : p[r.DATA_KEY] != null ? p[r.DATA_KEY].blot : g ? v(p.parentNode, g) : null;
          }
          r.find = v;
          function h(p, g) {
            g === void 0 && (g = d.ANY);
            var y;
            if (typeof p == "string")
              y = c[p] || l[p];
            else if (p instanceof Text || p.nodeType === Node.TEXT_NODE)
              y = c.text;
            else if (typeof p == "number")
              p & d.LEVEL & d.BLOCK ? y = c.block : p & d.LEVEL & d.INLINE && (y = c.inline);
            else if (p instanceof HTMLElement) {
              var x = (p.getAttribute("class") || "").split(/\s+/);
              for (var b in x)
                if (y = s[x[b]], y)
                  break;
              y = y || u[p.tagName];
            }
            return y == null ? null : g & d.LEVEL & y.scope && g & d.TYPE & y.scope ? y : null;
          }
          r.query = h;
          function m() {
            for (var p = [], g = 0; g < arguments.length; g++)
              p[g] = arguments[g];
            if (p.length > 1)
              return p.map(function(b) {
                return m(b);
              });
            var y = p[0];
            if (typeof y.blotName != "string" && typeof y.attrName != "string")
              throw new i("Invalid definition");
            if (y.blotName === "abstract")
              throw new i("Cannot register abstract class");
            if (c[y.blotName || y.attrName] = y, typeof y.keyName == "string")
              l[y.keyName] = y;
            else if (y.className != null && (s[y.className] = y), y.tagName != null) {
              Array.isArray(y.tagName) ? y.tagName = y.tagName.map(function(b) {
                return b.toUpperCase();
              }) : y.tagName = y.tagName.toUpperCase();
              var x = Array.isArray(y.tagName) ? y.tagName : [y.tagName];
              x.forEach(function(b) {
                (u[b] == null || y.className == null) && (u[b] = y);
              });
            }
            return y;
          }
          r.register = m;
        },
        /* 2 */
        /***/
        function(n, r, o) {
          var a = o(51), i = o(11), l = o(3), s = o(20), u = "\0", c = function(d) {
            Array.isArray(d) ? this.ops = d : d != null && Array.isArray(d.ops) ? this.ops = d.ops : this.ops = [];
          };
          c.prototype.insert = function(d, f) {
            var v = {};
            return d.length === 0 ? this : (v.insert = d, f != null && typeof f == "object" && Object.keys(f).length > 0 && (v.attributes = f), this.push(v));
          }, c.prototype.delete = function(d) {
            return d <= 0 ? this : this.push({ delete: d });
          }, c.prototype.retain = function(d, f) {
            if (d <= 0)
              return this;
            var v = { retain: d };
            return f != null && typeof f == "object" && Object.keys(f).length > 0 && (v.attributes = f), this.push(v);
          }, c.prototype.push = function(d) {
            var f = this.ops.length, v = this.ops[f - 1];
            if (d = l(!0, {}, d), typeof v == "object") {
              if (typeof d.delete == "number" && typeof v.delete == "number")
                return this.ops[f - 1] = { delete: v.delete + d.delete }, this;
              if (typeof v.delete == "number" && d.insert != null && (f -= 1, v = this.ops[f - 1], typeof v != "object"))
                return this.ops.unshift(d), this;
              if (i(d.attributes, v.attributes)) {
                if (typeof d.insert == "string" && typeof v.insert == "string")
                  return this.ops[f - 1] = { insert: v.insert + d.insert }, typeof d.attributes == "object" && (this.ops[f - 1].attributes = d.attributes), this;
                if (typeof d.retain == "number" && typeof v.retain == "number")
                  return this.ops[f - 1] = { retain: v.retain + d.retain }, typeof d.attributes == "object" && (this.ops[f - 1].attributes = d.attributes), this;
              }
            }
            return f === this.ops.length ? this.ops.push(d) : this.ops.splice(f, 0, d), this;
          }, c.prototype.chop = function() {
            var d = this.ops[this.ops.length - 1];
            return d && d.retain && !d.attributes && this.ops.pop(), this;
          }, c.prototype.filter = function(d) {
            return this.ops.filter(d);
          }, c.prototype.forEach = function(d) {
            this.ops.forEach(d);
          }, c.prototype.map = function(d) {
            return this.ops.map(d);
          }, c.prototype.partition = function(d) {
            var f = [], v = [];
            return this.forEach(function(h) {
              var m = d(h) ? f : v;
              m.push(h);
            }), [f, v];
          }, c.prototype.reduce = function(d, f) {
            return this.ops.reduce(d, f);
          }, c.prototype.changeLength = function() {
            return this.reduce(function(d, f) {
              return f.insert ? d + s.length(f) : f.delete ? d - f.delete : d;
            }, 0);
          }, c.prototype.length = function() {
            return this.reduce(function(d, f) {
              return d + s.length(f);
            }, 0);
          }, c.prototype.slice = function(d, f) {
            d = d || 0, typeof f != "number" && (f = 1 / 0);
            for (var v = [], h = s.iterator(this.ops), m = 0; m < f && h.hasNext(); ) {
              var p;
              m < d ? p = h.next(d - m) : (p = h.next(f - m), v.push(p)), m += s.length(p);
            }
            return new c(v);
          }, c.prototype.compose = function(d) {
            var f = s.iterator(this.ops), v = s.iterator(d.ops), h = [], m = v.peek();
            if (m != null && typeof m.retain == "number" && m.attributes == null) {
              for (var p = m.retain; f.peekType() === "insert" && f.peekLength() <= p; )
                p -= f.peekLength(), h.push(f.next());
              m.retain - p > 0 && v.next(m.retain - p);
            }
            for (var g = new c(h); f.hasNext() || v.hasNext(); )
              if (v.peekType() === "insert")
                g.push(v.next());
              else if (f.peekType() === "delete")
                g.push(f.next());
              else {
                var y = Math.min(f.peekLength(), v.peekLength()), x = f.next(y), b = v.next(y);
                if (typeof b.retain == "number") {
                  var w = {};
                  typeof x.retain == "number" ? w.retain = y : w.insert = x.insert;
                  var D = s.attributes.compose(x.attributes, b.attributes, typeof x.retain == "number");
                  if (D && (w.attributes = D), g.push(w), !v.hasNext() && i(g.ops[g.ops.length - 1], w)) {
                    var E = new c(f.rest());
                    return g.concat(E).chop();
                  }
                } else
                  typeof b.delete == "number" && typeof x.retain == "number" && g.push(b);
              }
            return g.chop();
          }, c.prototype.concat = function(d) {
            var f = new c(this.ops.slice());
            return d.ops.length > 0 && (f.push(d.ops[0]), f.ops = f.ops.concat(d.ops.slice(1))), f;
          }, c.prototype.diff = function(d, f) {
            if (this.ops === d.ops)
              return new c();
            var v = [this, d].map(function(y) {
              return y.map(function(x) {
                if (x.insert != null)
                  return typeof x.insert == "string" ? x.insert : u;
                var b = y === d ? "on" : "with";
                throw new Error("diff() called " + b + " non-document");
              }).join("");
            }), h = new c(), m = a(v[0], v[1], f), p = s.iterator(this.ops), g = s.iterator(d.ops);
            return m.forEach(function(y) {
              for (var x = y[1].length; x > 0; ) {
                var b = 0;
                switch (y[0]) {
                  case a.INSERT:
                    b = Math.min(g.peekLength(), x), h.push(g.next(b));
                    break;
                  case a.DELETE:
                    b = Math.min(x, p.peekLength()), p.next(b), h.delete(b);
                    break;
                  case a.EQUAL:
                    b = Math.min(p.peekLength(), g.peekLength(), x);
                    var w = p.next(b), D = g.next(b);
                    i(w.insert, D.insert) ? h.retain(b, s.attributes.diff(w.attributes, D.attributes)) : h.push(D).delete(b);
                    break;
                }
                x -= b;
              }
            }), h.chop();
          }, c.prototype.eachLine = function(d, f) {
            f = f || `
`;
            for (var v = s.iterator(this.ops), h = new c(), m = 0; v.hasNext(); ) {
              if (v.peekType() !== "insert")
                return;
              var p = v.peek(), g = s.length(p) - v.peekLength(), y = typeof p.insert == "string" ? p.insert.indexOf(f, g) - g : -1;
              if (y < 0)
                h.push(v.next());
              else if (y > 0)
                h.push(v.next(y));
              else {
                if (d(h, v.next(1).attributes || {}, m) === !1)
                  return;
                m += 1, h = new c();
              }
            }
            h.length() > 0 && d(h, {}, m);
          }, c.prototype.transform = function(d, f) {
            if (f = !!f, typeof d == "number")
              return this.transformPosition(d, f);
            for (var v = s.iterator(this.ops), h = s.iterator(d.ops), m = new c(); v.hasNext() || h.hasNext(); )
              if (v.peekType() === "insert" && (f || h.peekType() !== "insert"))
                m.retain(s.length(v.next()));
              else if (h.peekType() === "insert")
                m.push(h.next());
              else {
                var p = Math.min(v.peekLength(), h.peekLength()), g = v.next(p), y = h.next(p);
                if (g.delete)
                  continue;
                y.delete ? m.push(y) : m.retain(p, s.attributes.transform(g.attributes, y.attributes, f));
              }
            return m.chop();
          }, c.prototype.transformPosition = function(d, f) {
            f = !!f;
            for (var v = s.iterator(this.ops), h = 0; v.hasNext() && h <= d; ) {
              var m = v.peekLength(), p = v.peekType();
              if (v.next(), p === "delete") {
                d -= Math.min(m, d - h);
                continue;
              } else
                p === "insert" && (h < d || !f) && (d += m);
              h += m;
            }
            return d;
          }, n.exports = c;
        },
        /* 3 */
        /***/
        function(n, r) {
          var o = Object.prototype.hasOwnProperty, a = Object.prototype.toString, i = Object.defineProperty, l = Object.getOwnPropertyDescriptor, s = function(v) {
            return typeof Array.isArray == "function" ? Array.isArray(v) : a.call(v) === "[object Array]";
          }, u = function(v) {
            if (!v || a.call(v) !== "[object Object]")
              return !1;
            var h = o.call(v, "constructor"), m = v.constructor && v.constructor.prototype && o.call(v.constructor.prototype, "isPrototypeOf");
            if (v.constructor && !h && !m)
              return !1;
            var p;
            for (p in v)
              ;
            return typeof p > "u" || o.call(v, p);
          }, c = function(v, h) {
            i && h.name === "__proto__" ? i(v, h.name, {
              enumerable: !0,
              configurable: !0,
              value: h.newValue,
              writable: !0
            }) : v[h.name] = h.newValue;
          }, d = function(v, h) {
            if (h === "__proto__")
              if (o.call(v, h)) {
                if (l)
                  return l(v, h).value;
              } else
                return;
            return v[h];
          };
          n.exports = function f() {
            var v, h, m, p, g, y, x = arguments[0], b = 1, w = arguments.length, D = !1;
            for (typeof x == "boolean" && (D = x, x = arguments[1] || {}, b = 2), (x == null || typeof x != "object" && typeof x != "function") && (x = {}); b < w; ++b)
              if (v = arguments[b], v != null)
                for (h in v)
                  m = d(x, h), p = d(v, h), x !== p && (D && p && (u(p) || (g = s(p))) ? (g ? (g = !1, y = m && s(m) ? m : []) : y = m && u(m) ? m : {}, c(x, { name: h, newValue: f(D, y, p) })) : typeof p < "u" && c(x, { name: h, newValue: p }));
            return x;
          };
        },
        /* 4 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          }), r.default = r.BlockEmbed = r.bubbleFormats = void 0;
          var a = /* @__PURE__ */ function() {
            function A(C, k) {
              for (var I = 0; I < k.length; I++) {
                var N = k[I];
                N.enumerable = N.enumerable || !1, N.configurable = !0, "value" in N && (N.writable = !0), Object.defineProperty(C, N.key, N);
              }
            }
            return function(C, k, I) {
              return k && A(C.prototype, k), I && A(C, I), C;
            };
          }(), i = function A(C, k, I) {
            C === null && (C = Function.prototype);
            var N = Object.getOwnPropertyDescriptor(C, k);
            if (N === void 0) {
              var F = Object.getPrototypeOf(C);
              return F === null ? void 0 : A(F, k, I);
            } else {
              if ("value" in N)
                return N.value;
              var V = N.get;
              return V === void 0 ? void 0 : V.call(I);
            }
          }, l = o(3), s = x(l), u = o(2), c = x(u), d = o(0), f = x(d), v = o(16), h = x(v), m = o(6), p = x(m), g = o(7), y = x(g);
          function x(A) {
            return A && A.__esModule ? A : { default: A };
          }
          function b(A, C) {
            if (!(A instanceof C))
              throw new TypeError("Cannot call a class as a function");
          }
          function w(A, C) {
            if (!A)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return C && (typeof C == "object" || typeof C == "function") ? C : A;
          }
          function D(A, C) {
            if (typeof C != "function" && C !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof C);
            A.prototype = Object.create(C && C.prototype, { constructor: { value: A, enumerable: !1, writable: !0, configurable: !0 } }), C && (Object.setPrototypeOf ? Object.setPrototypeOf(A, C) : A.__proto__ = C);
          }
          var E = 1, T = function(A) {
            D(C, A);
            function C() {
              return b(this, C), w(this, (C.__proto__ || Object.getPrototypeOf(C)).apply(this, arguments));
            }
            return a(C, [{
              key: "attach",
              value: function() {
                i(C.prototype.__proto__ || Object.getPrototypeOf(C.prototype), "attach", this).call(this), this.attributes = new f.default.Attributor.Store(this.domNode);
              }
            }, {
              key: "delta",
              value: function() {
                return new c.default().insert(this.value(), (0, s.default)(this.formats(), this.attributes.values()));
              }
            }, {
              key: "format",
              value: function(I, N) {
                var F = f.default.query(I, f.default.Scope.BLOCK_ATTRIBUTE);
                F != null && this.attributes.attribute(F, N);
              }
            }, {
              key: "formatAt",
              value: function(I, N, F, V) {
                this.format(F, V);
              }
            }, {
              key: "insertAt",
              value: function(I, N, F) {
                if (typeof N == "string" && N.endsWith(`
`)) {
                  var V = f.default.create(L.blotName);
                  this.parent.insertBefore(V, I === 0 ? this : this.next), V.insertAt(0, N.slice(0, -1));
                } else
                  i(C.prototype.__proto__ || Object.getPrototypeOf(C.prototype), "insertAt", this).call(this, I, N, F);
              }
            }]), C;
          }(f.default.Embed);
          T.scope = f.default.Scope.BLOCK_BLOT;
          var L = function(A) {
            D(C, A);
            function C(k) {
              b(this, C);
              var I = w(this, (C.__proto__ || Object.getPrototypeOf(C)).call(this, k));
              return I.cache = {}, I;
            }
            return a(C, [{
              key: "delta",
              value: function() {
                return this.cache.delta == null && (this.cache.delta = this.descendants(f.default.Leaf).reduce(function(I, N) {
                  return N.length() === 0 ? I : I.insert(N.value(), S(N));
                }, new c.default()).insert(`
`, S(this))), this.cache.delta;
              }
            }, {
              key: "deleteAt",
              value: function(I, N) {
                i(C.prototype.__proto__ || Object.getPrototypeOf(C.prototype), "deleteAt", this).call(this, I, N), this.cache = {};
              }
            }, {
              key: "formatAt",
              value: function(I, N, F, V) {
                N <= 0 || (f.default.query(F, f.default.Scope.BLOCK) ? I + N === this.length() && this.format(F, V) : i(C.prototype.__proto__ || Object.getPrototypeOf(C.prototype), "formatAt", this).call(this, I, Math.min(N, this.length() - I - 1), F, V), this.cache = {});
              }
            }, {
              key: "insertAt",
              value: function(I, N, F) {
                if (F != null)
                  return i(C.prototype.__proto__ || Object.getPrototypeOf(C.prototype), "insertAt", this).call(this, I, N, F);
                if (N.length !== 0) {
                  var V = N.split(`
`), G = V.shift();
                  G.length > 0 && (I < this.length() - 1 || this.children.tail == null ? i(C.prototype.__proto__ || Object.getPrototypeOf(C.prototype), "insertAt", this).call(this, Math.min(I, this.length() - 1), G) : this.children.tail.insertAt(this.children.tail.length(), G), this.cache = {});
                  var z = this;
                  V.reduce(function(M, P) {
                    return z = z.split(M, !0), z.insertAt(0, P), P.length;
                  }, I + G.length);
                }
              }
            }, {
              key: "insertBefore",
              value: function(I, N) {
                var F = this.children.head;
                i(C.prototype.__proto__ || Object.getPrototypeOf(C.prototype), "insertBefore", this).call(this, I, N), F instanceof h.default && F.remove(), this.cache = {};
              }
            }, {
              key: "length",
              value: function() {
                return this.cache.length == null && (this.cache.length = i(C.prototype.__proto__ || Object.getPrototypeOf(C.prototype), "length", this).call(this) + E), this.cache.length;
              }
            }, {
              key: "moveChildren",
              value: function(I, N) {
                i(C.prototype.__proto__ || Object.getPrototypeOf(C.prototype), "moveChildren", this).call(this, I, N), this.cache = {};
              }
            }, {
              key: "optimize",
              value: function(I) {
                i(C.prototype.__proto__ || Object.getPrototypeOf(C.prototype), "optimize", this).call(this, I), this.cache = {};
              }
            }, {
              key: "path",
              value: function(I) {
                return i(C.prototype.__proto__ || Object.getPrototypeOf(C.prototype), "path", this).call(this, I, !0);
              }
            }, {
              key: "removeChild",
              value: function(I) {
                i(C.prototype.__proto__ || Object.getPrototypeOf(C.prototype), "removeChild", this).call(this, I), this.cache = {};
              }
            }, {
              key: "split",
              value: function(I) {
                var N = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
                if (N && (I === 0 || I >= this.length() - E)) {
                  var F = this.clone();
                  return I === 0 ? (this.parent.insertBefore(F, this), this) : (this.parent.insertBefore(F, this.next), F);
                } else {
                  var V = i(C.prototype.__proto__ || Object.getPrototypeOf(C.prototype), "split", this).call(this, I, N);
                  return this.cache = {}, V;
                }
              }
            }]), C;
          }(f.default.Block);
          L.blotName = "block", L.tagName = "P", L.defaultChild = "break", L.allowedChildren = [p.default, f.default.Embed, y.default];
          function S(A) {
            var C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
            return A == null || (typeof A.formats == "function" && (C = (0, s.default)(C, A.formats())), A.parent == null || A.parent.blotName == "scroll" || A.parent.statics.scope !== A.statics.scope) ? C : S(A.parent, C);
          }
          r.bubbleFormats = S, r.BlockEmbed = T, r.default = L;
        },
        /* 5 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          }), r.default = r.overload = r.expandConfig = void 0;
          var a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(z) {
            return typeof z;
          } : function(z) {
            return z && typeof Symbol == "function" && z.constructor === Symbol && z !== Symbol.prototype ? "symbol" : typeof z;
          }, i = /* @__PURE__ */ function() {
            function z(M, P) {
              var R = [], q = !0, Y = !1, Q = void 0;
              try {
                for (var B = M[Symbol.iterator](), H; !(q = (H = B.next()).done) && (R.push(H.value), !(P && R.length === P)); q = !0)
                  ;
              } catch (Z) {
                Y = !0, Q = Z;
              } finally {
                try {
                  !q && B.return && B.return();
                } finally {
                  if (Y)
                    throw Q;
                }
              }
              return R;
            }
            return function(M, P) {
              if (Array.isArray(M))
                return M;
              if (Symbol.iterator in Object(M))
                return z(M, P);
              throw new TypeError("Invalid attempt to destructure non-iterable instance");
            };
          }(), l = /* @__PURE__ */ function() {
            function z(M, P) {
              for (var R = 0; R < P.length; R++) {
                var q = P[R];
                q.enumerable = q.enumerable || !1, q.configurable = !0, "value" in q && (q.writable = !0), Object.defineProperty(M, q.key, q);
              }
            }
            return function(M, P, R) {
              return P && z(M.prototype, P), R && z(M, R), M;
            };
          }();
          o(50);
          var s = o(2), u = S(s), c = o(14), d = S(c), f = o(8), v = S(f), h = o(9), m = S(h), p = o(0), g = S(p), y = o(15), x = S(y), b = o(3), w = S(b), D = o(10), E = S(D), T = o(34), L = S(T);
          function S(z) {
            return z && z.__esModule ? z : { default: z };
          }
          function A(z, M, P) {
            return M in z ? Object.defineProperty(z, M, { value: P, enumerable: !0, configurable: !0, writable: !0 }) : z[M] = P, z;
          }
          function C(z, M) {
            if (!(z instanceof M))
              throw new TypeError("Cannot call a class as a function");
          }
          var k = (0, E.default)("quill"), I = function() {
            l(z, null, [{
              key: "debug",
              value: function(P) {
                P === !0 && (P = "log"), E.default.level(P);
              }
            }, {
              key: "find",
              value: function(P) {
                return P.__quill || g.default.find(P);
              }
            }, {
              key: "import",
              value: function(P) {
                return this.imports[P] == null && k.error("Cannot import " + P + ". Are you sure it was registered?"), this.imports[P];
              }
            }, {
              key: "register",
              value: function(P, R) {
                var q = this, Y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
                if (typeof P != "string") {
                  var Q = P.attrName || P.blotName;
                  typeof Q == "string" ? this.register("formats/" + Q, P, R) : Object.keys(P).forEach(function(B) {
                    q.register(B, P[B], R);
                  });
                } else
                  this.imports[P] != null && !Y && k.warn("Overwriting " + P + " with", R), this.imports[P] = R, (P.startsWith("blots/") || P.startsWith("formats/")) && R.blotName !== "abstract" ? g.default.register(R) : P.startsWith("modules") && typeof R.register == "function" && R.register();
              }
            }]);
            function z(M) {
              var P = this, R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
              if (C(this, z), this.options = N(M, R), this.container = this.options.container, this.container == null)
                return k.error("Invalid Quill container", M);
              this.options.debug && z.debug(this.options.debug);
              var q = this.container.innerHTML.trim();
              this.container.classList.add("ql-container"), this.container.innerHTML = "", this.container.__quill = this, this.root = this.addContainer("ql-editor"), this.root.classList.add("ql-blank"), this.root.setAttribute("data-gramm", !1), this.scrollingContainer = this.options.scrollingContainer || this.root, this.emitter = new v.default(), this.scroll = g.default.create(this.root, {
                emitter: this.emitter,
                whitelist: this.options.formats
              }), this.editor = new d.default(this.scroll), this.selection = new x.default(this.scroll, this.emitter), this.theme = new this.options.theme(this, this.options), this.keyboard = this.theme.addModule("keyboard"), this.clipboard = this.theme.addModule("clipboard"), this.history = this.theme.addModule("history"), this.theme.init(), this.emitter.on(v.default.events.EDITOR_CHANGE, function(Q) {
                Q === v.default.events.TEXT_CHANGE && P.root.classList.toggle("ql-blank", P.editor.isBlank());
              }), this.emitter.on(v.default.events.SCROLL_UPDATE, function(Q, B) {
                var H = P.selection.lastRange, Z = H && H.length === 0 ? H.index : void 0;
                F.call(P, function() {
                  return P.editor.update(null, B, Z);
                }, Q);
              });
              var Y = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + q + "<p><br></p></div>");
              this.setContents(Y), this.history.clear(), this.options.placeholder && this.root.setAttribute("data-placeholder", this.options.placeholder), this.options.readOnly && this.disable();
            }
            return l(z, [{
              key: "addContainer",
              value: function(P) {
                var R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
                if (typeof P == "string") {
                  var q = P;
                  P = document.createElement("div"), P.classList.add(q);
                }
                return this.container.insertBefore(P, R), P;
              }
            }, {
              key: "blur",
              value: function() {
                this.selection.setRange(null);
              }
            }, {
              key: "deleteText",
              value: function(P, R, q) {
                var Y = this, Q = V(P, R, q), B = i(Q, 4);
                return P = B[0], R = B[1], q = B[3], F.call(this, function() {
                  return Y.editor.deleteText(P, R);
                }, q, P, -1 * R);
              }
            }, {
              key: "disable",
              value: function() {
                this.enable(!1);
              }
            }, {
              key: "enable",
              value: function() {
                var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
                this.scroll.enable(P), this.container.classList.toggle("ql-disabled", !P);
              }
            }, {
              key: "focus",
              value: function() {
                var P = this.scrollingContainer.scrollTop;
                this.selection.focus(), this.scrollingContainer.scrollTop = P, this.scrollIntoView();
              }
            }, {
              key: "format",
              value: function(P, R) {
                var q = this, Y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : v.default.sources.API;
                return F.call(this, function() {
                  var Q = q.getSelection(!0), B = new u.default();
                  if (Q == null)
                    return B;
                  if (g.default.query(P, g.default.Scope.BLOCK))
                    B = q.editor.formatLine(Q.index, Q.length, A({}, P, R));
                  else {
                    if (Q.length === 0)
                      return q.selection.format(P, R), B;
                    B = q.editor.formatText(Q.index, Q.length, A({}, P, R));
                  }
                  return q.setSelection(Q, v.default.sources.SILENT), B;
                }, Y);
              }
            }, {
              key: "formatLine",
              value: function(P, R, q, Y, Q) {
                var B = this, H = void 0, Z = V(P, R, q, Y, Q), _ = i(Z, 4);
                return P = _[0], R = _[1], H = _[2], Q = _[3], F.call(this, function() {
                  return B.editor.formatLine(P, R, H);
                }, Q, P, 0);
              }
            }, {
              key: "formatText",
              value: function(P, R, q, Y, Q) {
                var B = this, H = void 0, Z = V(P, R, q, Y, Q), _ = i(Z, 4);
                return P = _[0], R = _[1], H = _[2], Q = _[3], F.call(this, function() {
                  return B.editor.formatText(P, R, H);
                }, Q, P, 0);
              }
            }, {
              key: "getBounds",
              value: function(P) {
                var R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, q = void 0;
                typeof P == "number" ? q = this.selection.getBounds(P, R) : q = this.selection.getBounds(P.index, P.length);
                var Y = this.container.getBoundingClientRect();
                return {
                  bottom: q.bottom - Y.top,
                  height: q.height,
                  left: q.left - Y.left,
                  right: q.right - Y.left,
                  top: q.top - Y.top,
                  width: q.width
                };
              }
            }, {
              key: "getContents",
              value: function() {
                var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - P, q = V(P, R), Y = i(q, 2);
                return P = Y[0], R = Y[1], this.editor.getContents(P, R);
              }
            }, {
              key: "getFormat",
              value: function() {
                var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.getSelection(!0), R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
                return typeof P == "number" ? this.editor.getFormat(P, R) : this.editor.getFormat(P.index, P.length);
              }
            }, {
              key: "getIndex",
              value: function(P) {
                return P.offset(this.scroll);
              }
            }, {
              key: "getLength",
              value: function() {
                return this.scroll.length();
              }
            }, {
              key: "getLeaf",
              value: function(P) {
                return this.scroll.leaf(P);
              }
            }, {
              key: "getLine",
              value: function(P) {
                return this.scroll.line(P);
              }
            }, {
              key: "getLines",
              value: function() {
                var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE;
                return typeof P != "number" ? this.scroll.lines(P.index, P.length) : this.scroll.lines(P, R);
              }
            }, {
              key: "getModule",
              value: function(P) {
                return this.theme.modules[P];
              }
            }, {
              key: "getSelection",
              value: function() {
                var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
                return P && this.focus(), this.update(), this.selection.getRange()[0];
              }
            }, {
              key: "getText",
              value: function() {
                var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - P, q = V(P, R), Y = i(q, 2);
                return P = Y[0], R = Y[1], this.editor.getText(P, R);
              }
            }, {
              key: "hasFocus",
              value: function() {
                return this.selection.hasFocus();
              }
            }, {
              key: "insertEmbed",
              value: function(P, R, q) {
                var Y = this, Q = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : z.sources.API;
                return F.call(this, function() {
                  return Y.editor.insertEmbed(P, R, q);
                }, Q, P);
              }
            }, {
              key: "insertText",
              value: function(P, R, q, Y, Q) {
                var B = this, H = void 0, Z = V(P, 0, q, Y, Q), _ = i(Z, 4);
                return P = _[0], H = _[2], Q = _[3], F.call(this, function() {
                  return B.editor.insertText(P, R, H);
                }, Q, P, R.length);
              }
            }, {
              key: "isEnabled",
              value: function() {
                return !this.container.classList.contains("ql-disabled");
              }
            }, {
              key: "off",
              value: function() {
                return this.emitter.off.apply(this.emitter, arguments);
              }
            }, {
              key: "on",
              value: function() {
                return this.emitter.on.apply(this.emitter, arguments);
              }
            }, {
              key: "once",
              value: function() {
                return this.emitter.once.apply(this.emitter, arguments);
              }
            }, {
              key: "pasteHTML",
              value: function(P, R, q) {
                this.clipboard.dangerouslyPasteHTML(P, R, q);
              }
            }, {
              key: "removeFormat",
              value: function(P, R, q) {
                var Y = this, Q = V(P, R, q), B = i(Q, 4);
                return P = B[0], R = B[1], q = B[3], F.call(this, function() {
                  return Y.editor.removeFormat(P, R);
                }, q, P);
              }
            }, {
              key: "scrollIntoView",
              value: function() {
                this.selection.scrollIntoView(this.scrollingContainer);
              }
            }, {
              key: "setContents",
              value: function(P) {
                var R = this, q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v.default.sources.API;
                return F.call(this, function() {
                  P = new u.default(P);
                  var Y = R.getLength(), Q = R.editor.deleteText(0, Y), B = R.editor.applyDelta(P), H = B.ops[B.ops.length - 1];
                  H != null && typeof H.insert == "string" && H.insert[H.insert.length - 1] === `
` && (R.editor.deleteText(R.getLength() - 1, 1), B.delete(1));
                  var Z = Q.compose(B);
                  return Z;
                }, q);
              }
            }, {
              key: "setSelection",
              value: function(P, R, q) {
                if (P == null)
                  this.selection.setRange(null, R || z.sources.API);
                else {
                  var Y = V(P, R, q), Q = i(Y, 4);
                  P = Q[0], R = Q[1], q = Q[3], this.selection.setRange(new y.Range(P, R), q), q !== v.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
                }
              }
            }, {
              key: "setText",
              value: function(P) {
                var R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v.default.sources.API, q = new u.default().insert(P);
                return this.setContents(q, R);
              }
            }, {
              key: "update",
              value: function() {
                var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : v.default.sources.USER, R = this.scroll.update(P);
                return this.selection.update(P), R;
              }
            }, {
              key: "updateContents",
              value: function(P) {
                var R = this, q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v.default.sources.API;
                return F.call(this, function() {
                  return P = new u.default(P), R.editor.applyDelta(P, q);
                }, q, !0);
              }
            }]), z;
          }();
          I.DEFAULTS = {
            bounds: null,
            formats: null,
            modules: {},
            placeholder: "",
            readOnly: !1,
            scrollingContainer: null,
            strict: !0,
            theme: "default"
          }, I.events = v.default.events, I.sources = v.default.sources, I.version = "1.3.7", I.imports = {
            delta: u.default,
            parchment: g.default,
            "core/module": m.default,
            "core/theme": L.default
          };
          function N(z, M) {
            if (M = (0, w.default)(!0, {
              container: z,
              modules: {
                clipboard: !0,
                keyboard: !0,
                history: !0
              }
            }, M), !M.theme || M.theme === I.DEFAULTS.theme)
              M.theme = L.default;
            else if (M.theme = I.import("themes/" + M.theme), M.theme == null)
              throw new Error("Invalid theme " + M.theme + ". Did you register it?");
            var P = (0, w.default)(!0, {}, M.theme.DEFAULTS);
            [P, M].forEach(function(Y) {
              Y.modules = Y.modules || {}, Object.keys(Y.modules).forEach(function(Q) {
                Y.modules[Q] === !0 && (Y.modules[Q] = {});
              });
            });
            var R = Object.keys(P.modules).concat(Object.keys(M.modules)), q = R.reduce(function(Y, Q) {
              var B = I.import("modules/" + Q);
              return B == null ? k.error("Cannot load " + Q + " module. Are you sure you registered it?") : Y[Q] = B.DEFAULTS || {}, Y;
            }, {});
            return M.modules != null && M.modules.toolbar && M.modules.toolbar.constructor !== Object && (M.modules.toolbar = {
              container: M.modules.toolbar
            }), M = (0, w.default)(!0, {}, I.DEFAULTS, { modules: q }, P, M), ["bounds", "container", "scrollingContainer"].forEach(function(Y) {
              typeof M[Y] == "string" && (M[Y] = document.querySelector(M[Y]));
            }), M.modules = Object.keys(M.modules).reduce(function(Y, Q) {
              return M.modules[Q] && (Y[Q] = M.modules[Q]), Y;
            }, {}), M;
          }
          function F(z, M, P, R) {
            if (this.options.strict && !this.isEnabled() && M === v.default.sources.USER)
              return new u.default();
            var q = P == null ? null : this.getSelection(), Y = this.editor.delta, Q = z();
            if (q != null && (P === !0 && (P = q.index), R == null ? q = G(q, Q, M) : R !== 0 && (q = G(q, P, R, M)), this.setSelection(q, v.default.sources.SILENT)), Q.length() > 0) {
              var B, H = [v.default.events.TEXT_CHANGE, Q, Y, M];
              if ((B = this.emitter).emit.apply(B, [v.default.events.EDITOR_CHANGE].concat(H)), M !== v.default.sources.SILENT) {
                var Z;
                (Z = this.emitter).emit.apply(Z, H);
              }
            }
            return Q;
          }
          function V(z, M, P, R, q) {
            var Y = {};
            return typeof z.index == "number" && typeof z.length == "number" ? typeof M != "number" ? (q = R, R = P, P = M, M = z.length, z = z.index) : (M = z.length, z = z.index) : typeof M != "number" && (q = R, R = P, P = M, M = 0), (typeof P > "u" ? "undefined" : a(P)) === "object" ? (Y = P, q = R) : typeof P == "string" && (R != null ? Y[P] = R : q = P), q = q || v.default.sources.API, [z, M, Y, q];
          }
          function G(z, M, P, R) {
            if (z == null)
              return null;
            var q = void 0, Y = void 0;
            if (M instanceof u.default) {
              var Q = [z.index, z.index + z.length].map(function(_) {
                return M.transformPosition(_, R !== v.default.sources.USER);
              }), B = i(Q, 2);
              q = B[0], Y = B[1];
            } else {
              var H = [z.index, z.index + z.length].map(function(_) {
                return _ < M || _ === M && R === v.default.sources.USER ? _ : P >= 0 ? _ + P : Math.max(M, _ + P);
              }), Z = i(H, 2);
              q = Z[0], Y = Z[1];
            }
            return new y.Range(q, Y - q);
          }
          r.expandConfig = N, r.overload = V, r.default = I;
        },
        /* 6 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = /* @__PURE__ */ function() {
            function p(g, y) {
              for (var x = 0; x < y.length; x++) {
                var b = y[x];
                b.enumerable = b.enumerable || !1, b.configurable = !0, "value" in b && (b.writable = !0), Object.defineProperty(g, b.key, b);
              }
            }
            return function(g, y, x) {
              return y && p(g.prototype, y), x && p(g, x), g;
            };
          }(), i = function p(g, y, x) {
            g === null && (g = Function.prototype);
            var b = Object.getOwnPropertyDescriptor(g, y);
            if (b === void 0) {
              var w = Object.getPrototypeOf(g);
              return w === null ? void 0 : p(w, y, x);
            } else {
              if ("value" in b)
                return b.value;
              var D = b.get;
              return D === void 0 ? void 0 : D.call(x);
            }
          }, l = o(7), s = d(l), u = o(0), c = d(u);
          function d(p) {
            return p && p.__esModule ? p : { default: p };
          }
          function f(p, g) {
            if (!(p instanceof g))
              throw new TypeError("Cannot call a class as a function");
          }
          function v(p, g) {
            if (!p)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return g && (typeof g == "object" || typeof g == "function") ? g : p;
          }
          function h(p, g) {
            if (typeof g != "function" && g !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof g);
            p.prototype = Object.create(g && g.prototype, { constructor: { value: p, enumerable: !1, writable: !0, configurable: !0 } }), g && (Object.setPrototypeOf ? Object.setPrototypeOf(p, g) : p.__proto__ = g);
          }
          var m = function(p) {
            h(g, p);
            function g() {
              return f(this, g), v(this, (g.__proto__ || Object.getPrototypeOf(g)).apply(this, arguments));
            }
            return a(g, [{
              key: "formatAt",
              value: function(x, b, w, D) {
                if (g.compare(this.statics.blotName, w) < 0 && c.default.query(w, c.default.Scope.BLOT)) {
                  var E = this.isolate(x, b);
                  D && E.wrap(w, D);
                } else
                  i(g.prototype.__proto__ || Object.getPrototypeOf(g.prototype), "formatAt", this).call(this, x, b, w, D);
              }
            }, {
              key: "optimize",
              value: function(x) {
                if (i(g.prototype.__proto__ || Object.getPrototypeOf(g.prototype), "optimize", this).call(this, x), this.parent instanceof g && g.compare(this.statics.blotName, this.parent.statics.blotName) > 0) {
                  var b = this.parent.isolate(this.offset(), this.length());
                  this.moveChildren(b), b.wrap(this);
                }
              }
            }], [{
              key: "compare",
              value: function(x, b) {
                var w = g.order.indexOf(x), D = g.order.indexOf(b);
                return w >= 0 || D >= 0 ? w - D : x === b ? 0 : x < b ? -1 : 1;
              }
            }]), g;
          }(c.default.Inline);
          m.allowedChildren = [m, c.default.Embed, s.default], m.order = [
            "cursor",
            "inline",
            // Must be lower
            "underline",
            "strike",
            "italic",
            "bold",
            "script",
            "link",
            "code"
            // Must be higher
          ], r.default = m;
        },
        /* 7 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = o(0), i = l(a);
          function l(f) {
            return f && f.__esModule ? f : { default: f };
          }
          function s(f, v) {
            if (!(f instanceof v))
              throw new TypeError("Cannot call a class as a function");
          }
          function u(f, v) {
            if (!f)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return v && (typeof v == "object" || typeof v == "function") ? v : f;
          }
          function c(f, v) {
            if (typeof v != "function" && v !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof v);
            f.prototype = Object.create(v && v.prototype, { constructor: { value: f, enumerable: !1, writable: !0, configurable: !0 } }), v && (Object.setPrototypeOf ? Object.setPrototypeOf(f, v) : f.__proto__ = v);
          }
          var d = function(f) {
            c(v, f);
            function v() {
              return s(this, v), u(this, (v.__proto__ || Object.getPrototypeOf(v)).apply(this, arguments));
            }
            return v;
          }(i.default.Text);
          r.default = d;
        },
        /* 8 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = /* @__PURE__ */ function() {
            function y(x, b) {
              for (var w = 0; w < b.length; w++) {
                var D = b[w];
                D.enumerable = D.enumerable || !1, D.configurable = !0, "value" in D && (D.writable = !0), Object.defineProperty(x, D.key, D);
              }
            }
            return function(x, b, w) {
              return b && y(x.prototype, b), w && y(x, w), x;
            };
          }(), i = function y(x, b, w) {
            x === null && (x = Function.prototype);
            var D = Object.getOwnPropertyDescriptor(x, b);
            if (D === void 0) {
              var E = Object.getPrototypeOf(x);
              return E === null ? void 0 : y(E, b, w);
            } else {
              if ("value" in D)
                return D.value;
              var T = D.get;
              return T === void 0 ? void 0 : T.call(w);
            }
          }, l = o(54), s = d(l), u = o(10), c = d(u);
          function d(y) {
            return y && y.__esModule ? y : { default: y };
          }
          function f(y, x) {
            if (!(y instanceof x))
              throw new TypeError("Cannot call a class as a function");
          }
          function v(y, x) {
            if (!y)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return x && (typeof x == "object" || typeof x == "function") ? x : y;
          }
          function h(y, x) {
            if (typeof x != "function" && x !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof x);
            y.prototype = Object.create(x && x.prototype, { constructor: { value: y, enumerable: !1, writable: !0, configurable: !0 } }), x && (Object.setPrototypeOf ? Object.setPrototypeOf(y, x) : y.__proto__ = x);
          }
          var m = (0, c.default)("quill:events"), p = ["selectionchange", "mousedown", "mouseup", "click"];
          p.forEach(function(y) {
            document.addEventListener(y, function() {
              for (var x = arguments.length, b = Array(x), w = 0; w < x; w++)
                b[w] = arguments[w];
              [].slice.call(document.querySelectorAll(".ql-container")).forEach(function(D) {
                if (D.__quill && D.__quill.emitter) {
                  var E;
                  (E = D.__quill.emitter).handleDOM.apply(E, b);
                }
              });
            });
          });
          var g = function(y) {
            h(x, y);
            function x() {
              f(this, x);
              var b = v(this, (x.__proto__ || Object.getPrototypeOf(x)).call(this));
              return b.listeners = {}, b.on("error", m.error), b;
            }
            return a(x, [{
              key: "emit",
              value: function() {
                m.log.apply(m, arguments), i(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "emit", this).apply(this, arguments);
              }
            }, {
              key: "handleDOM",
              value: function(w) {
                for (var D = arguments.length, E = Array(D > 1 ? D - 1 : 0), T = 1; T < D; T++)
                  E[T - 1] = arguments[T];
                (this.listeners[w.type] || []).forEach(function(L) {
                  var S = L.node, A = L.handler;
                  (w.target === S || S.contains(w.target)) && A.apply(void 0, [w].concat(E));
                });
              }
            }, {
              key: "listenDOM",
              value: function(w, D, E) {
                this.listeners[w] || (this.listeners[w] = []), this.listeners[w].push({ node: D, handler: E });
              }
            }]), x;
          }(s.default);
          g.events = {
            EDITOR_CHANGE: "editor-change",
            SCROLL_BEFORE_UPDATE: "scroll-before-update",
            SCROLL_OPTIMIZE: "scroll-optimize",
            SCROLL_UPDATE: "scroll-update",
            SELECTION_CHANGE: "selection-change",
            TEXT_CHANGE: "text-change"
          }, g.sources = {
            API: "api",
            SILENT: "silent",
            USER: "user"
          }, r.default = g;
        },
        /* 9 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          function a(l, s) {
            if (!(l instanceof s))
              throw new TypeError("Cannot call a class as a function");
          }
          var i = function l(s) {
            var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
            a(this, l), this.quill = s, this.options = u;
          };
          i.DEFAULTS = {}, r.default = i;
        },
        /* 10 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = ["error", "warn", "log", "info"], i = "warn";
          function l(u) {
            if (a.indexOf(u) <= a.indexOf(i)) {
              for (var c, d = arguments.length, f = Array(d > 1 ? d - 1 : 0), v = 1; v < d; v++)
                f[v - 1] = arguments[v];
              (c = console)[u].apply(c, f);
            }
          }
          function s(u) {
            return a.reduce(function(c, d) {
              return c[d] = l.bind(console, d, u), c;
            }, {});
          }
          l.level = s.level = function(u) {
            i = u;
          }, r.default = s;
        },
        /* 11 */
        /***/
        function(n, r, o) {
          var a = Array.prototype.slice, i = o(52), l = o(53), s = n.exports = function(f, v, h) {
            return h || (h = {}), f === v ? !0 : f instanceof Date && v instanceof Date ? f.getTime() === v.getTime() : !f || !v || typeof f != "object" && typeof v != "object" ? h.strict ? f === v : f == v : d(f, v, h);
          };
          function u(f) {
            return f == null;
          }
          function c(f) {
            return !(!f || typeof f != "object" || typeof f.length != "number" || typeof f.copy != "function" || typeof f.slice != "function" || f.length > 0 && typeof f[0] != "number");
          }
          function d(f, v, h) {
            var m, p;
            if (u(f) || u(v) || f.prototype !== v.prototype)
              return !1;
            if (l(f))
              return l(v) ? (f = a.call(f), v = a.call(v), s(f, v, h)) : !1;
            if (c(f)) {
              if (!c(v) || f.length !== v.length)
                return !1;
              for (m = 0; m < f.length; m++)
                if (f[m] !== v[m])
                  return !1;
              return !0;
            }
            try {
              var g = i(f), y = i(v);
            } catch {
              return !1;
            }
            if (g.length != y.length)
              return !1;
            for (g.sort(), y.sort(), m = g.length - 1; m >= 0; m--)
              if (g[m] != y[m])
                return !1;
            for (m = g.length - 1; m >= 0; m--)
              if (p = g[m], !s(f[p], v[p], h))
                return !1;
            return typeof f == typeof v;
          }
        },
        /* 12 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", { value: !0 });
          var a = o(1), i = (
            /** @class */
            function() {
              function l(s, u, c) {
                c === void 0 && (c = {}), this.attrName = s, this.keyName = u;
                var d = a.Scope.TYPE & a.Scope.ATTRIBUTE;
                c.scope != null ? this.scope = c.scope & a.Scope.LEVEL | d : this.scope = a.Scope.ATTRIBUTE, c.whitelist != null && (this.whitelist = c.whitelist);
              }
              return l.keys = function(s) {
                return [].map.call(s.attributes, function(u) {
                  return u.name;
                });
              }, l.prototype.add = function(s, u) {
                return this.canAdd(s, u) ? (s.setAttribute(this.keyName, u), !0) : !1;
              }, l.prototype.canAdd = function(s, u) {
                var c = a.query(s, a.Scope.BLOT & (this.scope | a.Scope.TYPE));
                return c == null ? !1 : this.whitelist == null ? !0 : typeof u == "string" ? this.whitelist.indexOf(u.replace(/["']/g, "")) > -1 : this.whitelist.indexOf(u) > -1;
              }, l.prototype.remove = function(s) {
                s.removeAttribute(this.keyName);
              }, l.prototype.value = function(s) {
                var u = s.getAttribute(this.keyName);
                return this.canAdd(s, u) && u ? u : "";
              }, l;
            }()
          );
          r.default = i;
        },
        /* 13 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          }), r.default = r.Code = void 0;
          var a = /* @__PURE__ */ function() {
            function T(L, S) {
              var A = [], C = !0, k = !1, I = void 0;
              try {
                for (var N = L[Symbol.iterator](), F; !(C = (F = N.next()).done) && (A.push(F.value), !(S && A.length === S)); C = !0)
                  ;
              } catch (V) {
                k = !0, I = V;
              } finally {
                try {
                  !C && N.return && N.return();
                } finally {
                  if (k)
                    throw I;
                }
              }
              return A;
            }
            return function(L, S) {
              if (Array.isArray(L))
                return L;
              if (Symbol.iterator in Object(L))
                return T(L, S);
              throw new TypeError("Invalid attempt to destructure non-iterable instance");
            };
          }(), i = /* @__PURE__ */ function() {
            function T(L, S) {
              for (var A = 0; A < S.length; A++) {
                var C = S[A];
                C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(L, C.key, C);
              }
            }
            return function(L, S, A) {
              return S && T(L.prototype, S), A && T(L, A), L;
            };
          }(), l = function T(L, S, A) {
            L === null && (L = Function.prototype);
            var C = Object.getOwnPropertyDescriptor(L, S);
            if (C === void 0) {
              var k = Object.getPrototypeOf(L);
              return k === null ? void 0 : T(k, S, A);
            } else {
              if ("value" in C)
                return C.value;
              var I = C.get;
              return I === void 0 ? void 0 : I.call(A);
            }
          }, s = o(2), u = y(s), c = o(0), d = y(c), f = o(4), v = y(f), h = o(6), m = y(h), p = o(7), g = y(p);
          function y(T) {
            return T && T.__esModule ? T : { default: T };
          }
          function x(T, L) {
            if (!(T instanceof L))
              throw new TypeError("Cannot call a class as a function");
          }
          function b(T, L) {
            if (!T)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return L && (typeof L == "object" || typeof L == "function") ? L : T;
          }
          function w(T, L) {
            if (typeof L != "function" && L !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof L);
            T.prototype = Object.create(L && L.prototype, { constructor: { value: T, enumerable: !1, writable: !0, configurable: !0 } }), L && (Object.setPrototypeOf ? Object.setPrototypeOf(T, L) : T.__proto__ = L);
          }
          var D = function(T) {
            w(L, T);
            function L() {
              return x(this, L), b(this, (L.__proto__ || Object.getPrototypeOf(L)).apply(this, arguments));
            }
            return L;
          }(m.default);
          D.blotName = "code", D.tagName = "CODE";
          var E = function(T) {
            w(L, T);
            function L() {
              return x(this, L), b(this, (L.__proto__ || Object.getPrototypeOf(L)).apply(this, arguments));
            }
            return i(L, [{
              key: "delta",
              value: function() {
                var A = this, C = this.domNode.textContent;
                return C.endsWith(`
`) && (C = C.slice(0, -1)), C.split(`
`).reduce(function(k, I) {
                  return k.insert(I).insert(`
`, A.formats());
                }, new u.default());
              }
            }, {
              key: "format",
              value: function(A, C) {
                if (!(A === this.statics.blotName && C)) {
                  var k = this.descendant(g.default, this.length() - 1), I = a(k, 1), N = I[0];
                  N != null && N.deleteAt(N.length() - 1, 1), l(L.prototype.__proto__ || Object.getPrototypeOf(L.prototype), "format", this).call(this, A, C);
                }
              }
            }, {
              key: "formatAt",
              value: function(A, C, k, I) {
                if (C !== 0 && !(d.default.query(k, d.default.Scope.BLOCK) == null || k === this.statics.blotName && I === this.statics.formats(this.domNode))) {
                  var N = this.newlineIndex(A);
                  if (!(N < 0 || N >= A + C)) {
                    var F = this.newlineIndex(A, !0) + 1, V = N - F + 1, G = this.isolate(F, V), z = G.next;
                    G.format(k, I), z instanceof L && z.formatAt(0, A - F + C - V, k, I);
                  }
                }
              }
            }, {
              key: "insertAt",
              value: function(A, C, k) {
                if (k == null) {
                  var I = this.descendant(g.default, A), N = a(I, 2), F = N[0], V = N[1];
                  F.insertAt(V, C);
                }
              }
            }, {
              key: "length",
              value: function() {
                var A = this.domNode.textContent.length;
                return this.domNode.textContent.endsWith(`
`) ? A : A + 1;
              }
            }, {
              key: "newlineIndex",
              value: function(A) {
                var C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
                if (C)
                  return this.domNode.textContent.slice(0, A).lastIndexOf(`
`);
                var k = this.domNode.textContent.slice(A).indexOf(`
`);
                return k > -1 ? A + k : -1;
              }
            }, {
              key: "optimize",
              value: function(A) {
                this.domNode.textContent.endsWith(`
`) || this.appendChild(d.default.create("text", `
`)), l(L.prototype.__proto__ || Object.getPrototypeOf(L.prototype), "optimize", this).call(this, A);
                var C = this.next;
                C != null && C.prev === this && C.statics.blotName === this.statics.blotName && this.statics.formats(this.domNode) === C.statics.formats(C.domNode) && (C.optimize(A), C.moveChildren(this), C.remove());
              }
            }, {
              key: "replace",
              value: function(A) {
                l(L.prototype.__proto__ || Object.getPrototypeOf(L.prototype), "replace", this).call(this, A), [].slice.call(this.domNode.querySelectorAll("*")).forEach(function(C) {
                  var k = d.default.find(C);
                  k == null ? C.parentNode.removeChild(C) : k instanceof d.default.Embed ? k.remove() : k.unwrap();
                });
              }
            }], [{
              key: "create",
              value: function(A) {
                var C = l(L.__proto__ || Object.getPrototypeOf(L), "create", this).call(this, A);
                return C.setAttribute("spellcheck", !1), C;
              }
            }, {
              key: "formats",
              value: function() {
                return !0;
              }
            }]), L;
          }(v.default);
          E.blotName = "code-block", E.tagName = "PRE", E.TAB = "  ", r.Code = D, r.default = E;
        },
        /* 14 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(z) {
            return typeof z;
          } : function(z) {
            return z && typeof Symbol == "function" && z.constructor === Symbol && z !== Symbol.prototype ? "symbol" : typeof z;
          }, i = /* @__PURE__ */ function() {
            function z(M, P) {
              var R = [], q = !0, Y = !1, Q = void 0;
              try {
                for (var B = M[Symbol.iterator](), H; !(q = (H = B.next()).done) && (R.push(H.value), !(P && R.length === P)); q = !0)
                  ;
              } catch (Z) {
                Y = !0, Q = Z;
              } finally {
                try {
                  !q && B.return && B.return();
                } finally {
                  if (Y)
                    throw Q;
                }
              }
              return R;
            }
            return function(M, P) {
              if (Array.isArray(M))
                return M;
              if (Symbol.iterator in Object(M))
                return z(M, P);
              throw new TypeError("Invalid attempt to destructure non-iterable instance");
            };
          }(), l = /* @__PURE__ */ function() {
            function z(M, P) {
              for (var R = 0; R < P.length; R++) {
                var q = P[R];
                q.enumerable = q.enumerable || !1, q.configurable = !0, "value" in q && (q.writable = !0), Object.defineProperty(M, q.key, q);
              }
            }
            return function(M, P, R) {
              return P && z(M.prototype, P), R && z(M, R), M;
            };
          }(), s = o(2), u = C(s), c = o(20), d = C(c), f = o(0), v = C(f), h = o(13), m = C(h), p = o(24), g = C(p), y = o(4), x = C(y), b = o(16), w = C(b), D = o(21), E = C(D), T = o(11), L = C(T), S = o(3), A = C(S);
          function C(z) {
            return z && z.__esModule ? z : { default: z };
          }
          function k(z, M, P) {
            return M in z ? Object.defineProperty(z, M, { value: P, enumerable: !0, configurable: !0, writable: !0 }) : z[M] = P, z;
          }
          function I(z, M) {
            if (!(z instanceof M))
              throw new TypeError("Cannot call a class as a function");
          }
          var N = /^[ -~]*$/, F = function() {
            function z(M) {
              I(this, z), this.scroll = M, this.delta = this.getDelta();
            }
            return l(z, [{
              key: "applyDelta",
              value: function(P) {
                var R = this, q = !1;
                this.scroll.update();
                var Y = this.scroll.length();
                return this.scroll.batchStart(), P = G(P), P.reduce(function(Q, B) {
                  var H = B.retain || B.delete || B.insert.length || 1, Z = B.attributes || {};
                  if (B.insert != null) {
                    if (typeof B.insert == "string") {
                      var _ = B.insert;
                      _.endsWith(`
`) && q && (q = !1, _ = _.slice(0, -1)), Q >= Y && !_.endsWith(`
`) && (q = !0), R.scroll.insertAt(Q, _);
                      var re = R.scroll.line(Q), he = i(re, 2), be = he[0], Oe = he[1], Pe = (0, A.default)({}, (0, y.bubbleFormats)(be));
                      if (be instanceof x.default) {
                        var Ve = be.descendant(v.default.Leaf, Oe), $e = i(Ve, 1), Je = $e[0];
                        Pe = (0, A.default)(Pe, (0, y.bubbleFormats)(Je));
                      }
                      Z = d.default.attributes.diff(Pe, Z) || {};
                    } else if (a(B.insert) === "object") {
                      var oe = Object.keys(B.insert)[0];
                      if (oe == null)
                        return Q;
                      R.scroll.insertAt(Q, oe, B.insert[oe]);
                    }
                    Y += H;
                  }
                  return Object.keys(Z).forEach(function(ie) {
                    R.scroll.formatAt(Q, H, ie, Z[ie]);
                  }), Q + H;
                }, 0), P.reduce(function(Q, B) {
                  return typeof B.delete == "number" ? (R.scroll.deleteAt(Q, B.delete), Q) : Q + (B.retain || B.insert.length || 1);
                }, 0), this.scroll.batchEnd(), this.update(P);
              }
            }, {
              key: "deleteText",
              value: function(P, R) {
                return this.scroll.deleteAt(P, R), this.update(new u.default().retain(P).delete(R));
              }
            }, {
              key: "formatLine",
              value: function(P, R) {
                var q = this, Y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
                return this.scroll.update(), Object.keys(Y).forEach(function(Q) {
                  if (!(q.scroll.whitelist != null && !q.scroll.whitelist[Q])) {
                    var B = q.scroll.lines(P, Math.max(R, 1)), H = R;
                    B.forEach(function(Z) {
                      var _ = Z.length();
                      if (!(Z instanceof m.default))
                        Z.format(Q, Y[Q]);
                      else {
                        var re = P - Z.offset(q.scroll), he = Z.newlineIndex(re + H) - re + 1;
                        Z.formatAt(re, he, Q, Y[Q]);
                      }
                      H -= _;
                    });
                  }
                }), this.scroll.optimize(), this.update(new u.default().retain(P).retain(R, (0, E.default)(Y)));
              }
            }, {
              key: "formatText",
              value: function(P, R) {
                var q = this, Y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
                return Object.keys(Y).forEach(function(Q) {
                  q.scroll.formatAt(P, R, Q, Y[Q]);
                }), this.update(new u.default().retain(P).retain(R, (0, E.default)(Y)));
              }
            }, {
              key: "getContents",
              value: function(P, R) {
                return this.delta.slice(P, P + R);
              }
            }, {
              key: "getDelta",
              value: function() {
                return this.scroll.lines().reduce(function(P, R) {
                  return P.concat(R.delta());
                }, new u.default());
              }
            }, {
              key: "getFormat",
              value: function(P) {
                var R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, q = [], Y = [];
                R === 0 ? this.scroll.path(P).forEach(function(B) {
                  var H = i(B, 1), Z = H[0];
                  Z instanceof x.default ? q.push(Z) : Z instanceof v.default.Leaf && Y.push(Z);
                }) : (q = this.scroll.lines(P, R), Y = this.scroll.descendants(v.default.Leaf, P, R));
                var Q = [q, Y].map(function(B) {
                  if (B.length === 0)
                    return {};
                  for (var H = (0, y.bubbleFormats)(B.shift()); Object.keys(H).length > 0; ) {
                    var Z = B.shift();
                    if (Z == null)
                      return H;
                    H = V((0, y.bubbleFormats)(Z), H);
                  }
                  return H;
                });
                return A.default.apply(A.default, Q);
              }
            }, {
              key: "getText",
              value: function(P, R) {
                return this.getContents(P, R).filter(function(q) {
                  return typeof q.insert == "string";
                }).map(function(q) {
                  return q.insert;
                }).join("");
              }
            }, {
              key: "insertEmbed",
              value: function(P, R, q) {
                return this.scroll.insertAt(P, R, q), this.update(new u.default().retain(P).insert(k({}, R, q)));
              }
            }, {
              key: "insertText",
              value: function(P, R) {
                var q = this, Y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
                return R = R.replace(/\r\n/g, `
`).replace(/\r/g, `
`), this.scroll.insertAt(P, R), Object.keys(Y).forEach(function(Q) {
                  q.scroll.formatAt(P, R.length, Q, Y[Q]);
                }), this.update(new u.default().retain(P).insert(R, (0, E.default)(Y)));
              }
            }, {
              key: "isBlank",
              value: function() {
                if (this.scroll.children.length == 0)
                  return !0;
                if (this.scroll.children.length > 1)
                  return !1;
                var P = this.scroll.children.head;
                return P.statics.blotName !== x.default.blotName || P.children.length > 1 ? !1 : P.children.head instanceof w.default;
              }
            }, {
              key: "removeFormat",
              value: function(P, R) {
                var q = this.getText(P, R), Y = this.scroll.line(P + R), Q = i(Y, 2), B = Q[0], H = Q[1], Z = 0, _ = new u.default();
                B != null && (B instanceof m.default ? Z = B.newlineIndex(H) - H + 1 : Z = B.length() - H, _ = B.delta().slice(H, H + Z - 1).insert(`
`));
                var re = this.getContents(P, R + Z), he = re.diff(new u.default().insert(q).concat(_)), be = new u.default().retain(P).concat(he);
                return this.applyDelta(be);
              }
            }, {
              key: "update",
              value: function(P) {
                var R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], q = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, Y = this.delta;
                if (R.length === 1 && R[0].type === "characterData" && R[0].target.data.match(N) && v.default.find(R[0].target)) {
                  var Q = v.default.find(R[0].target), B = (0, y.bubbleFormats)(Q), H = Q.offset(this.scroll), Z = R[0].oldValue.replace(g.default.CONTENTS, ""), _ = new u.default().insert(Z), re = new u.default().insert(Q.value()), he = new u.default().retain(H).concat(_.diff(re, q));
                  P = he.reduce(function(be, Oe) {
                    return Oe.insert ? be.insert(Oe.insert, B) : be.push(Oe);
                  }, new u.default()), this.delta = Y.compose(P);
                } else
                  this.delta = this.getDelta(), (!P || !(0, L.default)(Y.compose(P), this.delta)) && (P = Y.diff(this.delta, q));
                return P;
              }
            }]), z;
          }();
          function V(z, M) {
            return Object.keys(M).reduce(function(P, R) {
              return z[R] == null || (M[R] === z[R] ? P[R] = M[R] : Array.isArray(M[R]) ? M[R].indexOf(z[R]) < 0 && (P[R] = M[R].concat([z[R]])) : P[R] = [M[R], z[R]]), P;
            }, {});
          }
          function G(z) {
            return z.reduce(function(M, P) {
              if (P.insert === 1) {
                var R = (0, E.default)(P.attributes);
                return delete R.image, M.insert({ image: P.attributes.image }, R);
              }
              if (P.attributes != null && (P.attributes.list === !0 || P.attributes.bullet === !0) && (P = (0, E.default)(P), P.attributes.list ? P.attributes.list = "ordered" : (P.attributes.list = "bullet", delete P.attributes.bullet)), typeof P.insert == "string") {
                var q = P.insert.replace(/\r\n/g, `
`).replace(/\r/g, `
`);
                return M.insert(q, P.attributes);
              }
              return M.push(P);
            }, new u.default());
          }
          r.default = F;
        },
        /* 15 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          }), r.default = r.Range = void 0;
          var a = /* @__PURE__ */ function() {
            function T(L, S) {
              var A = [], C = !0, k = !1, I = void 0;
              try {
                for (var N = L[Symbol.iterator](), F; !(C = (F = N.next()).done) && (A.push(F.value), !(S && A.length === S)); C = !0)
                  ;
              } catch (V) {
                k = !0, I = V;
              } finally {
                try {
                  !C && N.return && N.return();
                } finally {
                  if (k)
                    throw I;
                }
              }
              return A;
            }
            return function(L, S) {
              if (Array.isArray(L))
                return L;
              if (Symbol.iterator in Object(L))
                return T(L, S);
              throw new TypeError("Invalid attempt to destructure non-iterable instance");
            };
          }(), i = /* @__PURE__ */ function() {
            function T(L, S) {
              for (var A = 0; A < S.length; A++) {
                var C = S[A];
                C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(L, C.key, C);
              }
            }
            return function(L, S, A) {
              return S && T(L.prototype, S), A && T(L, A), L;
            };
          }(), l = o(0), s = g(l), u = o(21), c = g(u), d = o(11), f = g(d), v = o(8), h = g(v), m = o(10), p = g(m);
          function g(T) {
            return T && T.__esModule ? T : { default: T };
          }
          function y(T) {
            if (Array.isArray(T)) {
              for (var L = 0, S = Array(T.length); L < T.length; L++)
                S[L] = T[L];
              return S;
            } else
              return Array.from(T);
          }
          function x(T, L) {
            if (!(T instanceof L))
              throw new TypeError("Cannot call a class as a function");
          }
          var b = (0, p.default)("quill:selection"), w = function T(L) {
            var S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
            x(this, T), this.index = L, this.length = S;
          }, D = function() {
            function T(L, S) {
              var A = this;
              x(this, T), this.emitter = S, this.scroll = L, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.cursor = s.default.create("cursor", this), this.lastRange = this.savedRange = new w(0, 0), this.handleComposition(), this.handleDragging(), this.emitter.listenDOM("selectionchange", document, function() {
                A.mouseDown || setTimeout(A.update.bind(A, h.default.sources.USER), 1);
              }), this.emitter.on(h.default.events.EDITOR_CHANGE, function(C, k) {
                C === h.default.events.TEXT_CHANGE && k.length() > 0 && A.update(h.default.sources.SILENT);
              }), this.emitter.on(h.default.events.SCROLL_BEFORE_UPDATE, function() {
                if (A.hasFocus()) {
                  var C = A.getNativeRange();
                  C != null && C.start.node !== A.cursor.textNode && A.emitter.once(h.default.events.SCROLL_UPDATE, function() {
                    try {
                      A.setNativeRange(C.start.node, C.start.offset, C.end.node, C.end.offset);
                    } catch {
                    }
                  });
                }
              }), this.emitter.on(h.default.events.SCROLL_OPTIMIZE, function(C, k) {
                if (k.range) {
                  var I = k.range, N = I.startNode, F = I.startOffset, V = I.endNode, G = I.endOffset;
                  A.setNativeRange(N, F, V, G);
                }
              }), this.update(h.default.sources.SILENT);
            }
            return i(T, [{
              key: "handleComposition",
              value: function() {
                var S = this;
                this.root.addEventListener("compositionstart", function() {
                  S.composing = !0;
                }), this.root.addEventListener("compositionend", function() {
                  if (S.composing = !1, S.cursor.parent) {
                    var A = S.cursor.restore();
                    if (!A)
                      return;
                    setTimeout(function() {
                      S.setNativeRange(A.startNode, A.startOffset, A.endNode, A.endOffset);
                    }, 1);
                  }
                });
              }
            }, {
              key: "handleDragging",
              value: function() {
                var S = this;
                this.emitter.listenDOM("mousedown", document.body, function() {
                  S.mouseDown = !0;
                }), this.emitter.listenDOM("mouseup", document.body, function() {
                  S.mouseDown = !1, S.update(h.default.sources.USER);
                });
              }
            }, {
              key: "focus",
              value: function() {
                this.hasFocus() || (this.root.focus(), this.setRange(this.savedRange));
              }
            }, {
              key: "format",
              value: function(S, A) {
                if (!(this.scroll.whitelist != null && !this.scroll.whitelist[S])) {
                  this.scroll.update();
                  var C = this.getNativeRange();
                  if (!(C == null || !C.native.collapsed || s.default.query(S, s.default.Scope.BLOCK))) {
                    if (C.start.node !== this.cursor.textNode) {
                      var k = s.default.find(C.start.node, !1);
                      if (k == null)
                        return;
                      if (k instanceof s.default.Leaf) {
                        var I = k.split(C.start.offset);
                        k.parent.insertBefore(this.cursor, I);
                      } else
                        k.insertBefore(this.cursor, C.start.node);
                      this.cursor.attach();
                    }
                    this.cursor.format(S, A), this.scroll.optimize(), this.setNativeRange(this.cursor.textNode, this.cursor.textNode.data.length), this.update();
                  }
                }
              }
            }, {
              key: "getBounds",
              value: function(S) {
                var A = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, C = this.scroll.length();
                S = Math.min(S, C - 1), A = Math.min(S + A, C - 1) - S;
                var k = void 0, I = this.scroll.leaf(S), N = a(I, 2), F = N[0], V = N[1];
                if (F == null)
                  return null;
                var G = F.position(V, !0), z = a(G, 2);
                k = z[0], V = z[1];
                var M = document.createRange();
                if (A > 0) {
                  M.setStart(k, V);
                  var P = this.scroll.leaf(S + A), R = a(P, 2);
                  if (F = R[0], V = R[1], F == null)
                    return null;
                  var q = F.position(V, !0), Y = a(q, 2);
                  return k = Y[0], V = Y[1], M.setEnd(k, V), M.getBoundingClientRect();
                } else {
                  var Q = "left", B = void 0;
                  return k instanceof Text ? (V < k.data.length ? (M.setStart(k, V), M.setEnd(k, V + 1)) : (M.setStart(k, V - 1), M.setEnd(k, V), Q = "right"), B = M.getBoundingClientRect()) : (B = F.domNode.getBoundingClientRect(), V > 0 && (Q = "right")), {
                    bottom: B.top + B.height,
                    height: B.height,
                    left: B[Q],
                    right: B[Q],
                    top: B.top,
                    width: 0
                  };
                }
              }
            }, {
              key: "getNativeRange",
              value: function() {
                var S = document.getSelection();
                if (S == null || S.rangeCount <= 0)
                  return null;
                var A = S.getRangeAt(0);
                if (A == null)
                  return null;
                var C = this.normalizeNative(A);
                return b.info("getNativeRange", C), C;
              }
            }, {
              key: "getRange",
              value: function() {
                var S = this.getNativeRange();
                if (S == null)
                  return [null, null];
                var A = this.normalizedToRange(S);
                return [A, S];
              }
            }, {
              key: "hasFocus",
              value: function() {
                return document.activeElement === this.root;
              }
            }, {
              key: "normalizedToRange",
              value: function(S) {
                var A = this, C = [[S.start.node, S.start.offset]];
                S.native.collapsed || C.push([S.end.node, S.end.offset]);
                var k = C.map(function(F) {
                  var V = a(F, 2), G = V[0], z = V[1], M = s.default.find(G, !0), P = M.offset(A.scroll);
                  return z === 0 ? P : M instanceof s.default.Container ? P + M.length() : P + M.index(G, z);
                }), I = Math.min(Math.max.apply(Math, y(k)), this.scroll.length() - 1), N = Math.min.apply(Math, [I].concat(y(k)));
                return new w(N, I - N);
              }
            }, {
              key: "normalizeNative",
              value: function(S) {
                if (!E(this.root, S.startContainer) || !S.collapsed && !E(this.root, S.endContainer))
                  return null;
                var A = {
                  start: { node: S.startContainer, offset: S.startOffset },
                  end: { node: S.endContainer, offset: S.endOffset },
                  native: S
                };
                return [A.start, A.end].forEach(function(C) {
                  for (var k = C.node, I = C.offset; !(k instanceof Text) && k.childNodes.length > 0; )
                    if (k.childNodes.length > I)
                      k = k.childNodes[I], I = 0;
                    else if (k.childNodes.length === I)
                      k = k.lastChild, I = k instanceof Text ? k.data.length : k.childNodes.length + 1;
                    else
                      break;
                  C.node = k, C.offset = I;
                }), A;
              }
            }, {
              key: "rangeToNative",
              value: function(S) {
                var A = this, C = S.collapsed ? [S.index] : [S.index, S.index + S.length], k = [], I = this.scroll.length();
                return C.forEach(function(N, F) {
                  N = Math.min(I - 1, N);
                  var V = void 0, G = A.scroll.leaf(N), z = a(G, 2), M = z[0], P = z[1], R = M.position(P, F !== 0), q = a(R, 2);
                  V = q[0], P = q[1], k.push(V, P);
                }), k.length < 2 && (k = k.concat(k)), k;
              }
            }, {
              key: "scrollIntoView",
              value: function(S) {
                var A = this.lastRange;
                if (A != null) {
                  var C = this.getBounds(A.index, A.length);
                  if (C != null) {
                    var k = this.scroll.length() - 1, I = this.scroll.line(Math.min(A.index, k)), N = a(I, 1), F = N[0], V = F;
                    if (A.length > 0) {
                      var G = this.scroll.line(Math.min(A.index + A.length, k)), z = a(G, 1);
                      V = z[0];
                    }
                    if (!(F == null || V == null)) {
                      var M = S.getBoundingClientRect();
                      C.top < M.top ? S.scrollTop -= M.top - C.top : C.bottom > M.bottom && (S.scrollTop += C.bottom - M.bottom);
                    }
                  }
                }
              }
            }, {
              key: "setNativeRange",
              value: function(S, A) {
                var C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : S, k = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : A, I = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
                if (b.info("setNativeRange", S, A, C, k), !(S != null && (this.root.parentNode == null || S.parentNode == null || C.parentNode == null))) {
                  var N = document.getSelection();
                  if (N != null)
                    if (S != null) {
                      this.hasFocus() || this.root.focus();
                      var F = (this.getNativeRange() || {}).native;
                      if (F == null || I || S !== F.startContainer || A !== F.startOffset || C !== F.endContainer || k !== F.endOffset) {
                        S.tagName == "BR" && (A = [].indexOf.call(S.parentNode.childNodes, S), S = S.parentNode), C.tagName == "BR" && (k = [].indexOf.call(C.parentNode.childNodes, C), C = C.parentNode);
                        var V = document.createRange();
                        V.setStart(S, A), V.setEnd(C, k), N.removeAllRanges(), N.addRange(V);
                      }
                    } else
                      N.removeAllRanges(), this.root.blur(), document.body.focus();
                }
              }
            }, {
              key: "setRange",
              value: function(S) {
                var A = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : h.default.sources.API;
                if (typeof A == "string" && (C = A, A = !1), b.info("setRange", S), S != null) {
                  var k = this.rangeToNative(S);
                  this.setNativeRange.apply(this, y(k).concat([A]));
                } else
                  this.setNativeRange(null);
                this.update(C);
              }
            }, {
              key: "update",
              value: function() {
                var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : h.default.sources.USER, A = this.lastRange, C = this.getRange(), k = a(C, 2), I = k[0], N = k[1];
                if (this.lastRange = I, this.lastRange != null && (this.savedRange = this.lastRange), !(0, f.default)(A, this.lastRange)) {
                  var F;
                  !this.composing && N != null && N.native.collapsed && N.start.node !== this.cursor.textNode && this.cursor.restore();
                  var V = [h.default.events.SELECTION_CHANGE, (0, c.default)(this.lastRange), (0, c.default)(A), S];
                  if ((F = this.emitter).emit.apply(F, [h.default.events.EDITOR_CHANGE].concat(V)), S !== h.default.sources.SILENT) {
                    var G;
                    (G = this.emitter).emit.apply(G, V);
                  }
                }
              }
            }]), T;
          }();
          function E(T, L) {
            try {
              L.parentNode;
            } catch {
              return !1;
            }
            return L instanceof Text && (L = L.parentNode), T.contains(L);
          }
          r.Range = w, r.default = D;
        },
        /* 16 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = /* @__PURE__ */ function() {
            function h(m, p) {
              for (var g = 0; g < p.length; g++) {
                var y = p[g];
                y.enumerable = y.enumerable || !1, y.configurable = !0, "value" in y && (y.writable = !0), Object.defineProperty(m, y.key, y);
              }
            }
            return function(m, p, g) {
              return p && h(m.prototype, p), g && h(m, g), m;
            };
          }(), i = function h(m, p, g) {
            m === null && (m = Function.prototype);
            var y = Object.getOwnPropertyDescriptor(m, p);
            if (y === void 0) {
              var x = Object.getPrototypeOf(m);
              return x === null ? void 0 : h(x, p, g);
            } else {
              if ("value" in y)
                return y.value;
              var b = y.get;
              return b === void 0 ? void 0 : b.call(g);
            }
          }, l = o(0), s = u(l);
          function u(h) {
            return h && h.__esModule ? h : { default: h };
          }
          function c(h, m) {
            if (!(h instanceof m))
              throw new TypeError("Cannot call a class as a function");
          }
          function d(h, m) {
            if (!h)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return m && (typeof m == "object" || typeof m == "function") ? m : h;
          }
          function f(h, m) {
            if (typeof m != "function" && m !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof m);
            h.prototype = Object.create(m && m.prototype, { constructor: { value: h, enumerable: !1, writable: !0, configurable: !0 } }), m && (Object.setPrototypeOf ? Object.setPrototypeOf(h, m) : h.__proto__ = m);
          }
          var v = function(h) {
            f(m, h);
            function m() {
              return c(this, m), d(this, (m.__proto__ || Object.getPrototypeOf(m)).apply(this, arguments));
            }
            return a(m, [{
              key: "insertInto",
              value: function(g, y) {
                g.children.length === 0 ? i(m.prototype.__proto__ || Object.getPrototypeOf(m.prototype), "insertInto", this).call(this, g, y) : this.remove();
              }
            }, {
              key: "length",
              value: function() {
                return 0;
              }
            }, {
              key: "value",
              value: function() {
                return "";
              }
            }], [{
              key: "value",
              value: function() {
              }
            }]), m;
          }(s.default.Embed);
          v.blotName = "break", v.tagName = "BR", r.default = v;
        },
        /* 17 */
        /***/
        function(n, r, o) {
          var a = this && this.__extends || function() {
            var d = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(f, v) {
              f.__proto__ = v;
            } || function(f, v) {
              for (var h in v)
                v.hasOwnProperty(h) && (f[h] = v[h]);
            };
            return function(f, v) {
              d(f, v);
              function h() {
                this.constructor = f;
              }
              f.prototype = v === null ? Object.create(v) : (h.prototype = v.prototype, new h());
            };
          }();
          Object.defineProperty(r, "__esModule", { value: !0 });
          var i = o(44), l = o(30), s = o(1), u = (
            /** @class */
            function(d) {
              a(f, d);
              function f(v) {
                var h = d.call(this, v) || this;
                return h.build(), h;
              }
              return f.prototype.appendChild = function(v) {
                this.insertBefore(v);
              }, f.prototype.attach = function() {
                d.prototype.attach.call(this), this.children.forEach(function(v) {
                  v.attach();
                });
              }, f.prototype.build = function() {
                var v = this;
                this.children = new i.default(), [].slice.call(this.domNode.childNodes).reverse().forEach(function(h) {
                  try {
                    var m = c(h);
                    v.insertBefore(m, v.children.head || void 0);
                  } catch (p) {
                    if (p instanceof s.ParchmentError)
                      return;
                    throw p;
                  }
                });
              }, f.prototype.deleteAt = function(v, h) {
                if (v === 0 && h === this.length())
                  return this.remove();
                this.children.forEachAt(v, h, function(m, p, g) {
                  m.deleteAt(p, g);
                });
              }, f.prototype.descendant = function(v, h) {
                var m = this.children.find(h), p = m[0], g = m[1];
                return v.blotName == null && v(p) || v.blotName != null && p instanceof v ? [p, g] : p instanceof f ? p.descendant(v, g) : [null, -1];
              }, f.prototype.descendants = function(v, h, m) {
                h === void 0 && (h = 0), m === void 0 && (m = Number.MAX_VALUE);
                var p = [], g = m;
                return this.children.forEachAt(h, m, function(y, x, b) {
                  (v.blotName == null && v(y) || v.blotName != null && y instanceof v) && p.push(y), y instanceof f && (p = p.concat(y.descendants(v, x, g))), g -= b;
                }), p;
              }, f.prototype.detach = function() {
                this.children.forEach(function(v) {
                  v.detach();
                }), d.prototype.detach.call(this);
              }, f.prototype.formatAt = function(v, h, m, p) {
                this.children.forEachAt(v, h, function(g, y, x) {
                  g.formatAt(y, x, m, p);
                });
              }, f.prototype.insertAt = function(v, h, m) {
                var p = this.children.find(v), g = p[0], y = p[1];
                if (g)
                  g.insertAt(y, h, m);
                else {
                  var x = m == null ? s.create("text", h) : s.create(h, m);
                  this.appendChild(x);
                }
              }, f.prototype.insertBefore = function(v, h) {
                if (this.statics.allowedChildren != null && !this.statics.allowedChildren.some(function(m) {
                  return v instanceof m;
                }))
                  throw new s.ParchmentError("Cannot insert " + v.statics.blotName + " into " + this.statics.blotName);
                v.insertInto(this, h);
              }, f.prototype.length = function() {
                return this.children.reduce(function(v, h) {
                  return v + h.length();
                }, 0);
              }, f.prototype.moveChildren = function(v, h) {
                this.children.forEach(function(m) {
                  v.insertBefore(m, h);
                });
              }, f.prototype.optimize = function(v) {
                if (d.prototype.optimize.call(this, v), this.children.length === 0)
                  if (this.statics.defaultChild != null) {
                    var h = s.create(this.statics.defaultChild);
                    this.appendChild(h), h.optimize(v);
                  } else
                    this.remove();
              }, f.prototype.path = function(v, h) {
                h === void 0 && (h = !1);
                var m = this.children.find(v, h), p = m[0], g = m[1], y = [[this, v]];
                return p instanceof f ? y.concat(p.path(g, h)) : (p != null && y.push([p, g]), y);
              }, f.prototype.removeChild = function(v) {
                this.children.remove(v);
              }, f.prototype.replace = function(v) {
                v instanceof f && v.moveChildren(this), d.prototype.replace.call(this, v);
              }, f.prototype.split = function(v, h) {
                if (h === void 0 && (h = !1), !h) {
                  if (v === 0)
                    return this;
                  if (v === this.length())
                    return this.next;
                }
                var m = this.clone();
                return this.parent.insertBefore(m, this.next), this.children.forEachAt(v, this.length(), function(p, g, y) {
                  p = p.split(g, h), m.appendChild(p);
                }), m;
              }, f.prototype.unwrap = function() {
                this.moveChildren(this.parent, this.next), this.remove();
              }, f.prototype.update = function(v, h) {
                var m = this, p = [], g = [];
                v.forEach(function(y) {
                  y.target === m.domNode && y.type === "childList" && (p.push.apply(p, y.addedNodes), g.push.apply(g, y.removedNodes));
                }), g.forEach(function(y) {
                  if (!(y.parentNode != null && // @ts-ignore
                  y.tagName !== "IFRAME" && document.body.compareDocumentPosition(y) & Node.DOCUMENT_POSITION_CONTAINED_BY)) {
                    var x = s.find(y);
                    x != null && (x.domNode.parentNode == null || x.domNode.parentNode === m.domNode) && x.detach();
                  }
                }), p.filter(function(y) {
                  return y.parentNode == m.domNode;
                }).sort(function(y, x) {
                  return y === x ? 0 : y.compareDocumentPosition(x) & Node.DOCUMENT_POSITION_FOLLOWING ? 1 : -1;
                }).forEach(function(y) {
                  var x = null;
                  y.nextSibling != null && (x = s.find(y.nextSibling));
                  var b = c(y);
                  (b.next != x || b.next == null) && (b.parent != null && b.parent.removeChild(m), m.insertBefore(b, x || void 0));
                });
              }, f;
            }(l.default)
          );
          function c(d) {
            var f = s.find(d);
            if (f == null)
              try {
                f = s.create(d);
              } catch {
                f = s.create(s.Scope.INLINE), [].slice.call(d.childNodes).forEach(function(h) {
                  f.domNode.appendChild(h);
                }), d.parentNode && d.parentNode.replaceChild(f.domNode, d), f.attach();
              }
            return f;
          }
          r.default = u;
        },
        /* 18 */
        /***/
        function(n, r, o) {
          var a = this && this.__extends || function() {
            var d = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(f, v) {
              f.__proto__ = v;
            } || function(f, v) {
              for (var h in v)
                v.hasOwnProperty(h) && (f[h] = v[h]);
            };
            return function(f, v) {
              d(f, v);
              function h() {
                this.constructor = f;
              }
              f.prototype = v === null ? Object.create(v) : (h.prototype = v.prototype, new h());
            };
          }();
          Object.defineProperty(r, "__esModule", { value: !0 });
          var i = o(12), l = o(31), s = o(17), u = o(1), c = (
            /** @class */
            function(d) {
              a(f, d);
              function f(v) {
                var h = d.call(this, v) || this;
                return h.attributes = new l.default(h.domNode), h;
              }
              return f.formats = function(v) {
                if (typeof this.tagName == "string")
                  return !0;
                if (Array.isArray(this.tagName))
                  return v.tagName.toLowerCase();
              }, f.prototype.format = function(v, h) {
                var m = u.query(v);
                m instanceof i.default ? this.attributes.attribute(m, h) : h && m != null && (v !== this.statics.blotName || this.formats()[v] !== h) && this.replaceWith(v, h);
              }, f.prototype.formats = function() {
                var v = this.attributes.values(), h = this.statics.formats(this.domNode);
                return h != null && (v[this.statics.blotName] = h), v;
              }, f.prototype.replaceWith = function(v, h) {
                var m = d.prototype.replaceWith.call(this, v, h);
                return this.attributes.copy(m), m;
              }, f.prototype.update = function(v, h) {
                var m = this;
                d.prototype.update.call(this, v, h), v.some(function(p) {
                  return p.target === m.domNode && p.type === "attributes";
                }) && this.attributes.build();
              }, f.prototype.wrap = function(v, h) {
                var m = d.prototype.wrap.call(this, v, h);
                return m instanceof f && m.statics.scope === this.statics.scope && this.attributes.move(m), m;
              }, f;
            }(s.default)
          );
          r.default = c;
        },
        /* 19 */
        /***/
        function(n, r, o) {
          var a = this && this.__extends || function() {
            var u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, d) {
              c.__proto__ = d;
            } || function(c, d) {
              for (var f in d)
                d.hasOwnProperty(f) && (c[f] = d[f]);
            };
            return function(c, d) {
              u(c, d);
              function f() {
                this.constructor = c;
              }
              c.prototype = d === null ? Object.create(d) : (f.prototype = d.prototype, new f());
            };
          }();
          Object.defineProperty(r, "__esModule", { value: !0 });
          var i = o(30), l = o(1), s = (
            /** @class */
            function(u) {
              a(c, u);
              function c() {
                return u !== null && u.apply(this, arguments) || this;
              }
              return c.value = function(d) {
                return !0;
              }, c.prototype.index = function(d, f) {
                return this.domNode === d || this.domNode.compareDocumentPosition(d) & Node.DOCUMENT_POSITION_CONTAINED_BY ? Math.min(f, 1) : -1;
              }, c.prototype.position = function(d, f) {
                var v = [].indexOf.call(this.parent.domNode.childNodes, this.domNode);
                return d > 0 && (v += 1), [this.parent.domNode, v];
              }, c.prototype.value = function() {
                var d;
                return d = {}, d[this.statics.blotName] = this.statics.value(this.domNode) || !0, d;
              }, c.scope = l.Scope.INLINE_BLOT, c;
            }(i.default)
          );
          r.default = s;
        },
        /* 20 */
        /***/
        function(n, r, o) {
          var a = o(11), i = o(3), l = {
            attributes: {
              compose: function(u, c, d) {
                typeof u != "object" && (u = {}), typeof c != "object" && (c = {});
                var f = i(!0, {}, c);
                d || (f = Object.keys(f).reduce(function(h, m) {
                  return f[m] != null && (h[m] = f[m]), h;
                }, {}));
                for (var v in u)
                  u[v] !== void 0 && c[v] === void 0 && (f[v] = u[v]);
                return Object.keys(f).length > 0 ? f : void 0;
              },
              diff: function(u, c) {
                typeof u != "object" && (u = {}), typeof c != "object" && (c = {});
                var d = Object.keys(u).concat(Object.keys(c)).reduce(function(f, v) {
                  return a(u[v], c[v]) || (f[v] = c[v] === void 0 ? null : c[v]), f;
                }, {});
                return Object.keys(d).length > 0 ? d : void 0;
              },
              transform: function(u, c, d) {
                if (typeof u != "object")
                  return c;
                if (typeof c == "object") {
                  if (!d)
                    return c;
                  var f = Object.keys(c).reduce(function(v, h) {
                    return u[h] === void 0 && (v[h] = c[h]), v;
                  }, {});
                  return Object.keys(f).length > 0 ? f : void 0;
                }
              }
            },
            iterator: function(u) {
              return new s(u);
            },
            length: function(u) {
              return typeof u.delete == "number" ? u.delete : typeof u.retain == "number" ? u.retain : typeof u.insert == "string" ? u.insert.length : 1;
            }
          };
          function s(u) {
            this.ops = u, this.index = 0, this.offset = 0;
          }
          s.prototype.hasNext = function() {
            return this.peekLength() < 1 / 0;
          }, s.prototype.next = function(u) {
            u || (u = 1 / 0);
            var c = this.ops[this.index];
            if (c) {
              var d = this.offset, f = l.length(c);
              if (u >= f - d ? (u = f - d, this.index += 1, this.offset = 0) : this.offset += u, typeof c.delete == "number")
                return { delete: u };
              var v = {};
              return c.attributes && (v.attributes = c.attributes), typeof c.retain == "number" ? v.retain = u : typeof c.insert == "string" ? v.insert = c.insert.substr(d, u) : v.insert = c.insert, v;
            } else
              return { retain: 1 / 0 };
          }, s.prototype.peek = function() {
            return this.ops[this.index];
          }, s.prototype.peekLength = function() {
            return this.ops[this.index] ? l.length(this.ops[this.index]) - this.offset : 1 / 0;
          }, s.prototype.peekType = function() {
            return this.ops[this.index] ? typeof this.ops[this.index].delete == "number" ? "delete" : typeof this.ops[this.index].retain == "number" ? "retain" : "insert" : "retain";
          }, s.prototype.rest = function() {
            if (this.hasNext()) {
              if (this.offset === 0)
                return this.ops.slice(this.index);
              var u = this.offset, c = this.index, d = this.next(), f = this.ops.slice(this.index);
              return this.offset = u, this.index = c, [d].concat(f);
            } else
              return [];
          }, n.exports = l;
        },
        /* 21 */
        /***/
        function(n, r) {
          var o = function() {
            function a(m, p) {
              return p != null && m instanceof p;
            }
            var i;
            try {
              i = Map;
            } catch {
              i = function() {
              };
            }
            var l;
            try {
              l = Set;
            } catch {
              l = function() {
              };
            }
            var s;
            try {
              s = Promise;
            } catch {
              s = function() {
              };
            }
            function u(m, p, g, y, x) {
              typeof p == "object" && (g = p.depth, y = p.prototype, x = p.includeNonEnumerable, p = p.circular);
              var b = [], w = [], D = typeof Buffer < "u";
              typeof p > "u" && (p = !0), typeof g > "u" && (g = 1 / 0);
              function E(T, L) {
                if (T === null)
                  return null;
                if (L === 0)
                  return T;
                var S, A;
                if (typeof T != "object")
                  return T;
                if (a(T, i))
                  S = new i();
                else if (a(T, l))
                  S = new l();
                else if (a(T, s))
                  S = new s(function(M, P) {
                    T.then(function(R) {
                      M(E(R, L - 1));
                    }, function(R) {
                      P(E(R, L - 1));
                    });
                  });
                else if (u.__isArray(T))
                  S = [];
                else if (u.__isRegExp(T))
                  S = new RegExp(T.source, h(T)), T.lastIndex && (S.lastIndex = T.lastIndex);
                else if (u.__isDate(T))
                  S = new Date(T.getTime());
                else {
                  if (D && Buffer.isBuffer(T))
                    return Buffer.allocUnsafe ? S = Buffer.allocUnsafe(T.length) : S = new Buffer(T.length), T.copy(S), S;
                  a(T, Error) ? S = Object.create(T) : typeof y > "u" ? (A = Object.getPrototypeOf(T), S = Object.create(A)) : (S = Object.create(y), A = y);
                }
                if (p) {
                  var C = b.indexOf(T);
                  if (C != -1)
                    return w[C];
                  b.push(T), w.push(S);
                }
                a(T, i) && T.forEach(function(M, P) {
                  var R = E(P, L - 1), q = E(M, L - 1);
                  S.set(R, q);
                }), a(T, l) && T.forEach(function(M) {
                  var P = E(M, L - 1);
                  S.add(P);
                });
                for (var k in T) {
                  var I;
                  A && (I = Object.getOwnPropertyDescriptor(A, k)), !(I && I.set == null) && (S[k] = E(T[k], L - 1));
                }
                if (Object.getOwnPropertySymbols)
                  for (var N = Object.getOwnPropertySymbols(T), k = 0; k < N.length; k++) {
                    var F = N[k], V = Object.getOwnPropertyDescriptor(T, F);
                    V && !V.enumerable && !x || (S[F] = E(T[F], L - 1), V.enumerable || Object.defineProperty(S, F, {
                      enumerable: !1
                    }));
                  }
                if (x)
                  for (var G = Object.getOwnPropertyNames(T), k = 0; k < G.length; k++) {
                    var z = G[k], V = Object.getOwnPropertyDescriptor(T, z);
                    V && V.enumerable || (S[z] = E(T[z], L - 1), Object.defineProperty(S, z, {
                      enumerable: !1
                    }));
                  }
                return S;
              }
              return E(m, g);
            }
            u.clonePrototype = function(p) {
              if (p === null)
                return null;
              var g = function() {
              };
              return g.prototype = p, new g();
            };
            function c(m) {
              return Object.prototype.toString.call(m);
            }
            u.__objToStr = c;
            function d(m) {
              return typeof m == "object" && c(m) === "[object Date]";
            }
            u.__isDate = d;
            function f(m) {
              return typeof m == "object" && c(m) === "[object Array]";
            }
            u.__isArray = f;
            function v(m) {
              return typeof m == "object" && c(m) === "[object RegExp]";
            }
            u.__isRegExp = v;
            function h(m) {
              var p = "";
              return m.global && (p += "g"), m.ignoreCase && (p += "i"), m.multiline && (p += "m"), p;
            }
            return u.__getRegExpFlags = h, u;
          }();
          typeof n == "object" && n.exports && (n.exports = o);
        },
        /* 22 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = /* @__PURE__ */ function() {
            function S(A, C) {
              var k = [], I = !0, N = !1, F = void 0;
              try {
                for (var V = A[Symbol.iterator](), G; !(I = (G = V.next()).done) && (k.push(G.value), !(C && k.length === C)); I = !0)
                  ;
              } catch (z) {
                N = !0, F = z;
              } finally {
                try {
                  !I && V.return && V.return();
                } finally {
                  if (N)
                    throw F;
                }
              }
              return k;
            }
            return function(A, C) {
              if (Array.isArray(A))
                return A;
              if (Symbol.iterator in Object(A))
                return S(A, C);
              throw new TypeError("Invalid attempt to destructure non-iterable instance");
            };
          }(), i = /* @__PURE__ */ function() {
            function S(A, C) {
              for (var k = 0; k < C.length; k++) {
                var I = C[k];
                I.enumerable = I.enumerable || !1, I.configurable = !0, "value" in I && (I.writable = !0), Object.defineProperty(A, I.key, I);
              }
            }
            return function(A, C, k) {
              return C && S(A.prototype, C), k && S(A, k), A;
            };
          }(), l = function S(A, C, k) {
            A === null && (A = Function.prototype);
            var I = Object.getOwnPropertyDescriptor(A, C);
            if (I === void 0) {
              var N = Object.getPrototypeOf(A);
              return N === null ? void 0 : S(N, C, k);
            } else {
              if ("value" in I)
                return I.value;
              var F = I.get;
              return F === void 0 ? void 0 : F.call(k);
            }
          }, s = o(0), u = b(s), c = o(8), d = b(c), f = o(4), v = b(f), h = o(16), m = b(h), p = o(13), g = b(p), y = o(25), x = b(y);
          function b(S) {
            return S && S.__esModule ? S : { default: S };
          }
          function w(S, A) {
            if (!(S instanceof A))
              throw new TypeError("Cannot call a class as a function");
          }
          function D(S, A) {
            if (!S)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return A && (typeof A == "object" || typeof A == "function") ? A : S;
          }
          function E(S, A) {
            if (typeof A != "function" && A !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof A);
            S.prototype = Object.create(A && A.prototype, { constructor: { value: S, enumerable: !1, writable: !0, configurable: !0 } }), A && (Object.setPrototypeOf ? Object.setPrototypeOf(S, A) : S.__proto__ = A);
          }
          function T(S) {
            return S instanceof v.default || S instanceof f.BlockEmbed;
          }
          var L = function(S) {
            E(A, S);
            function A(C, k) {
              w(this, A);
              var I = D(this, (A.__proto__ || Object.getPrototypeOf(A)).call(this, C));
              return I.emitter = k.emitter, Array.isArray(k.whitelist) && (I.whitelist = k.whitelist.reduce(function(N, F) {
                return N[F] = !0, N;
              }, {})), I.domNode.addEventListener("DOMNodeInserted", function() {
              }), I.optimize(), I.enable(), I;
            }
            return i(A, [{
              key: "batchStart",
              value: function() {
                this.batch = !0;
              }
            }, {
              key: "batchEnd",
              value: function() {
                this.batch = !1, this.optimize();
              }
            }, {
              key: "deleteAt",
              value: function(k, I) {
                var N = this.line(k), F = a(N, 2), V = F[0], G = F[1], z = this.line(k + I), M = a(z, 1), P = M[0];
                if (l(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "deleteAt", this).call(this, k, I), P != null && V !== P && G > 0) {
                  if (V instanceof f.BlockEmbed || P instanceof f.BlockEmbed) {
                    this.optimize();
                    return;
                  }
                  if (V instanceof g.default) {
                    var R = V.newlineIndex(V.length(), !0);
                    if (R > -1 && (V = V.split(R + 1), V === P)) {
                      this.optimize();
                      return;
                    }
                  } else if (P instanceof g.default) {
                    var q = P.newlineIndex(0);
                    q > -1 && P.split(q + 1);
                  }
                  var Y = P.children.head instanceof m.default ? null : P.children.head;
                  V.moveChildren(P, Y), V.remove();
                }
                this.optimize();
              }
            }, {
              key: "enable",
              value: function() {
                var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
                this.domNode.setAttribute("contenteditable", k);
              }
            }, {
              key: "formatAt",
              value: function(k, I, N, F) {
                this.whitelist != null && !this.whitelist[N] || (l(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "formatAt", this).call(this, k, I, N, F), this.optimize());
              }
            }, {
              key: "insertAt",
              value: function(k, I, N) {
                if (!(N != null && this.whitelist != null && !this.whitelist[I])) {
                  if (k >= this.length())
                    if (N == null || u.default.query(I, u.default.Scope.BLOCK) == null) {
                      var F = u.default.create(this.statics.defaultChild);
                      this.appendChild(F), N == null && I.endsWith(`
`) && (I = I.slice(0, -1)), F.insertAt(0, I, N);
                    } else {
                      var V = u.default.create(I, N);
                      this.appendChild(V);
                    }
                  else
                    l(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "insertAt", this).call(this, k, I, N);
                  this.optimize();
                }
              }
            }, {
              key: "insertBefore",
              value: function(k, I) {
                if (k.statics.scope === u.default.Scope.INLINE_BLOT) {
                  var N = u.default.create(this.statics.defaultChild);
                  N.appendChild(k), k = N;
                }
                l(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "insertBefore", this).call(this, k, I);
              }
            }, {
              key: "leaf",
              value: function(k) {
                return this.path(k).pop() || [null, -1];
              }
            }, {
              key: "line",
              value: function(k) {
                return k === this.length() ? this.line(k - 1) : this.descendant(T, k);
              }
            }, {
              key: "lines",
              value: function() {
                var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, N = function F(V, G, z) {
                  var M = [], P = z;
                  return V.children.forEachAt(G, z, function(R, q, Y) {
                    T(R) ? M.push(R) : R instanceof u.default.Container && (M = M.concat(F(R, q, P))), P -= Y;
                  }), M;
                };
                return N(this, k, I);
              }
            }, {
              key: "optimize",
              value: function() {
                var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
                this.batch !== !0 && (l(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "optimize", this).call(this, k, I), k.length > 0 && this.emitter.emit(d.default.events.SCROLL_OPTIMIZE, k, I));
              }
            }, {
              key: "path",
              value: function(k) {
                return l(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "path", this).call(this, k).slice(1);
              }
            }, {
              key: "update",
              value: function(k) {
                if (this.batch !== !0) {
                  var I = d.default.sources.USER;
                  typeof k == "string" && (I = k), Array.isArray(k) || (k = this.observer.takeRecords()), k.length > 0 && this.emitter.emit(d.default.events.SCROLL_BEFORE_UPDATE, I, k), l(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "update", this).call(this, k.concat([])), k.length > 0 && this.emitter.emit(d.default.events.SCROLL_UPDATE, I, k);
                }
              }
            }]), A;
          }(u.default.Scroll);
          L.blotName = "scroll", L.className = "ql-editor", L.tagName = "DIV", L.defaultChild = "block", L.allowedChildren = [v.default, f.BlockEmbed, x.default], r.default = L;
        },
        /* 23 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          }), r.SHORTKEY = r.default = void 0;
          var a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(B) {
            return typeof B;
          } : function(B) {
            return B && typeof Symbol == "function" && B.constructor === Symbol && B !== Symbol.prototype ? "symbol" : typeof B;
          }, i = /* @__PURE__ */ function() {
            function B(H, Z) {
              var _ = [], re = !0, he = !1, be = void 0;
              try {
                for (var Oe = H[Symbol.iterator](), Pe; !(re = (Pe = Oe.next()).done) && (_.push(Pe.value), !(Z && _.length === Z)); re = !0)
                  ;
              } catch (Ve) {
                he = !0, be = Ve;
              } finally {
                try {
                  !re && Oe.return && Oe.return();
                } finally {
                  if (he)
                    throw be;
                }
              }
              return _;
            }
            return function(H, Z) {
              if (Array.isArray(H))
                return H;
              if (Symbol.iterator in Object(H))
                return B(H, Z);
              throw new TypeError("Invalid attempt to destructure non-iterable instance");
            };
          }(), l = /* @__PURE__ */ function() {
            function B(H, Z) {
              for (var _ = 0; _ < Z.length; _++) {
                var re = Z[_];
                re.enumerable = re.enumerable || !1, re.configurable = !0, "value" in re && (re.writable = !0), Object.defineProperty(H, re.key, re);
              }
            }
            return function(H, Z, _) {
              return Z && B(H.prototype, Z), _ && B(H, _), H;
            };
          }(), s = o(21), u = S(s), c = o(11), d = S(c), f = o(3), v = S(f), h = o(2), m = S(h), p = o(20), g = S(p), y = o(0), x = S(y), b = o(5), w = S(b), D = o(10), E = S(D), T = o(9), L = S(T);
          function S(B) {
            return B && B.__esModule ? B : { default: B };
          }
          function A(B, H, Z) {
            return H in B ? Object.defineProperty(B, H, { value: Z, enumerable: !0, configurable: !0, writable: !0 }) : B[H] = Z, B;
          }
          function C(B, H) {
            if (!(B instanceof H))
              throw new TypeError("Cannot call a class as a function");
          }
          function k(B, H) {
            if (!B)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return H && (typeof H == "object" || typeof H == "function") ? H : B;
          }
          function I(B, H) {
            if (typeof H != "function" && H !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof H);
            B.prototype = Object.create(H && H.prototype, { constructor: { value: B, enumerable: !1, writable: !0, configurable: !0 } }), H && (Object.setPrototypeOf ? Object.setPrototypeOf(B, H) : B.__proto__ = H);
          }
          var N = (0, E.default)("quill:keyboard"), F = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", V = function(B) {
            I(H, B), l(H, null, [{
              key: "match",
              value: function(_, re) {
                return re = Q(re), ["altKey", "ctrlKey", "metaKey", "shiftKey"].some(function(he) {
                  return !!re[he] !== _[he] && re[he] !== null;
                }) ? !1 : re.key === (_.which || _.keyCode);
              }
            }]);
            function H(Z, _) {
              C(this, H);
              var re = k(this, (H.__proto__ || Object.getPrototypeOf(H)).call(this, Z, _));
              return re.bindings = {}, Object.keys(re.options.bindings).forEach(function(he) {
                he === "list autofill" && Z.scroll.whitelist != null && !Z.scroll.whitelist.list || re.options.bindings[he] && re.addBinding(re.options.bindings[he]);
              }), re.addBinding({ key: H.keys.ENTER, shiftKey: null }, R), re.addBinding({ key: H.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
              }), /Firefox/i.test(navigator.userAgent) ? (re.addBinding({ key: H.keys.BACKSPACE }, { collapsed: !0 }, z), re.addBinding({ key: H.keys.DELETE }, { collapsed: !0 }, M)) : (re.addBinding({ key: H.keys.BACKSPACE }, { collapsed: !0, prefix: /^.?$/ }, z), re.addBinding({ key: H.keys.DELETE }, { collapsed: !0, suffix: /^.?$/ }, M)), re.addBinding({ key: H.keys.BACKSPACE }, { collapsed: !1 }, P), re.addBinding({ key: H.keys.DELETE }, { collapsed: !1 }, P), re.addBinding({ key: H.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: !0, offset: 0 }, z), re.listen(), re;
            }
            return l(H, [{
              key: "addBinding",
              value: function(_) {
                var re = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, he = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, be = Q(_);
                if (be == null || be.key == null)
                  return N.warn("Attempted to add invalid keyboard binding", be);
                typeof re == "function" && (re = { handler: re }), typeof he == "function" && (he = { handler: he }), be = (0, v.default)(be, re, he), this.bindings[be.key] = this.bindings[be.key] || [], this.bindings[be.key].push(be);
              }
            }, {
              key: "listen",
              value: function() {
                var _ = this;
                this.quill.root.addEventListener("keydown", function(re) {
                  if (!re.defaultPrevented) {
                    var he = re.which || re.keyCode, be = (_.bindings[he] || []).filter(function(Ye) {
                      return H.match(re, Ye);
                    });
                    if (be.length !== 0) {
                      var Oe = _.quill.getSelection();
                      if (!(Oe == null || !_.quill.hasFocus())) {
                        var Pe = _.quill.getLine(Oe.index), Ve = i(Pe, 2), $e = Ve[0], Je = Ve[1], oe = _.quill.getLeaf(Oe.index), ie = i(oe, 2), pe = ie[0], me = ie[1], ce = Oe.length === 0 ? [pe, me] : _.quill.getLeaf(Oe.index + Oe.length), ke = i(ce, 2), Ce = ke[0], De = ke[1], ft = pe instanceof x.default.Text ? pe.value().slice(0, me) : "", dt = Ce instanceof x.default.Text ? Ce.value().slice(De) : "", Ge = {
                          collapsed: Oe.length === 0,
                          empty: Oe.length === 0 && $e.length() <= 1,
                          format: _.quill.getFormat(Oe),
                          offset: Je,
                          prefix: ft,
                          suffix: dt
                        }, wn = be.some(function(Ye) {
                          if (Ye.collapsed != null && Ye.collapsed !== Ge.collapsed || Ye.empty != null && Ye.empty !== Ge.empty || Ye.offset != null && Ye.offset !== Ge.offset)
                            return !1;
                          if (Array.isArray(Ye.format)) {
                            if (Ye.format.every(function(kt) {
                              return Ge.format[kt] == null;
                            }))
                              return !1;
                          } else if (a(Ye.format) === "object" && !Object.keys(Ye.format).every(function(kt) {
                            return Ye.format[kt] === !0 ? Ge.format[kt] != null : Ye.format[kt] === !1 ? Ge.format[kt] == null : (0, d.default)(Ye.format[kt], Ge.format[kt]);
                          }))
                            return !1;
                          return Ye.prefix != null && !Ye.prefix.test(Ge.prefix) || Ye.suffix != null && !Ye.suffix.test(Ge.suffix) ? !1 : Ye.handler.call(_, Oe, Ge) !== !0;
                        });
                        wn && re.preventDefault();
                      }
                    }
                  }
                });
              }
            }]), H;
          }(L.default);
          V.keys = {
            BACKSPACE: 8,
            TAB: 9,
            ENTER: 13,
            ESCAPE: 27,
            LEFT: 37,
            UP: 38,
            RIGHT: 39,
            DOWN: 40,
            DELETE: 46
          }, V.DEFAULTS = {
            bindings: {
              bold: Y("bold"),
              italic: Y("italic"),
              underline: Y("underline"),
              indent: {
                // highlight tab or tab at beginning of list, indent or blockquote
                key: V.keys.TAB,
                format: ["blockquote", "indent", "list"],
                handler: function(H, Z) {
                  if (Z.collapsed && Z.offset !== 0)
                    return !0;
                  this.quill.format("indent", "+1", w.default.sources.USER);
                }
              },
              outdent: {
                key: V.keys.TAB,
                shiftKey: !0,
                format: ["blockquote", "indent", "list"],
                // highlight tab or tab at beginning of list, indent or blockquote
                handler: function(H, Z) {
                  if (Z.collapsed && Z.offset !== 0)
                    return !0;
                  this.quill.format("indent", "-1", w.default.sources.USER);
                }
              },
              "outdent backspace": {
                key: V.keys.BACKSPACE,
                collapsed: !0,
                shiftKey: null,
                metaKey: null,
                ctrlKey: null,
                altKey: null,
                format: ["indent", "list"],
                offset: 0,
                handler: function(H, Z) {
                  Z.format.indent != null ? this.quill.format("indent", "-1", w.default.sources.USER) : Z.format.list != null && this.quill.format("list", !1, w.default.sources.USER);
                }
              },
              "indent code-block": q(!0),
              "outdent code-block": q(!1),
              "remove tab": {
                key: V.keys.TAB,
                shiftKey: !0,
                collapsed: !0,
                prefix: /\t$/,
                handler: function(H) {
                  this.quill.deleteText(H.index - 1, 1, w.default.sources.USER);
                }
              },
              tab: {
                key: V.keys.TAB,
                handler: function(H) {
                  this.quill.history.cutoff();
                  var Z = new m.default().retain(H.index).delete(H.length).insert("	");
                  this.quill.updateContents(Z, w.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(H.index + 1, w.default.sources.SILENT);
                }
              },
              "list empty enter": {
                key: V.keys.ENTER,
                collapsed: !0,
                format: ["list"],
                empty: !0,
                handler: function(H, Z) {
                  this.quill.format("list", !1, w.default.sources.USER), Z.format.indent && this.quill.format("indent", !1, w.default.sources.USER);
                }
              },
              "checklist enter": {
                key: V.keys.ENTER,
                collapsed: !0,
                format: { list: "checked" },
                handler: function(H) {
                  var Z = this.quill.getLine(H.index), _ = i(Z, 2), re = _[0], he = _[1], be = (0, v.default)({}, re.formats(), { list: "checked" }), Oe = new m.default().retain(H.index).insert(`
`, be).retain(re.length() - he - 1).retain(1, { list: "unchecked" });
                  this.quill.updateContents(Oe, w.default.sources.USER), this.quill.setSelection(H.index + 1, w.default.sources.SILENT), this.quill.scrollIntoView();
                }
              },
              "header enter": {
                key: V.keys.ENTER,
                collapsed: !0,
                format: ["header"],
                suffix: /^$/,
                handler: function(H, Z) {
                  var _ = this.quill.getLine(H.index), re = i(_, 2), he = re[0], be = re[1], Oe = new m.default().retain(H.index).insert(`
`, Z.format).retain(he.length() - be - 1).retain(1, { header: null });
                  this.quill.updateContents(Oe, w.default.sources.USER), this.quill.setSelection(H.index + 1, w.default.sources.SILENT), this.quill.scrollIntoView();
                }
              },
              "list autofill": {
                key: " ",
                collapsed: !0,
                format: { list: !1 },
                prefix: /^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,
                handler: function(H, Z) {
                  var _ = Z.prefix.length, re = this.quill.getLine(H.index), he = i(re, 2), be = he[0], Oe = he[1];
                  if (Oe > _)
                    return !0;
                  var Pe = void 0;
                  switch (Z.prefix.trim()) {
                    case "[]":
                    case "[ ]":
                      Pe = "unchecked";
                      break;
                    case "[x]":
                      Pe = "checked";
                      break;
                    case "-":
                    case "*":
                      Pe = "bullet";
                      break;
                    default:
                      Pe = "ordered";
                  }
                  this.quill.insertText(H.index, " ", w.default.sources.USER), this.quill.history.cutoff();
                  var Ve = new m.default().retain(H.index - Oe).delete(_ + 1).retain(be.length() - 2 - Oe).retain(1, { list: Pe });
                  this.quill.updateContents(Ve, w.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(H.index - _, w.default.sources.SILENT);
                }
              },
              "code exit": {
                key: V.keys.ENTER,
                collapsed: !0,
                format: ["code-block"],
                prefix: /\n\n$/,
                suffix: /^\s+$/,
                handler: function(H) {
                  var Z = this.quill.getLine(H.index), _ = i(Z, 2), re = _[0], he = _[1], be = new m.default().retain(H.index + re.length() - he - 2).retain(1, { "code-block": null }).delete(1);
                  this.quill.updateContents(be, w.default.sources.USER);
                }
              },
              "embed left": G(V.keys.LEFT, !1),
              "embed left shift": G(V.keys.LEFT, !0),
              "embed right": G(V.keys.RIGHT, !1),
              "embed right shift": G(V.keys.RIGHT, !0)
            }
          };
          function G(B, H) {
            var Z, _ = B === V.keys.LEFT ? "prefix" : "suffix";
            return Z = {
              key: B,
              shiftKey: H,
              altKey: null
            }, A(Z, _, /^$/), A(Z, "handler", function(he) {
              var be = he.index;
              B === V.keys.RIGHT && (be += he.length + 1);
              var Oe = this.quill.getLeaf(be), Pe = i(Oe, 1), Ve = Pe[0];
              return Ve instanceof x.default.Embed ? (B === V.keys.LEFT ? H ? this.quill.setSelection(he.index - 1, he.length + 1, w.default.sources.USER) : this.quill.setSelection(he.index - 1, w.default.sources.USER) : H ? this.quill.setSelection(he.index, he.length + 1, w.default.sources.USER) : this.quill.setSelection(he.index + he.length + 1, w.default.sources.USER), !1) : !0;
            }), Z;
          }
          function z(B, H) {
            if (!(B.index === 0 || this.quill.getLength() <= 1)) {
              var Z = this.quill.getLine(B.index), _ = i(Z, 1), re = _[0], he = {};
              if (H.offset === 0) {
                var be = this.quill.getLine(B.index - 1), Oe = i(be, 1), Pe = Oe[0];
                if (Pe != null && Pe.length() > 1) {
                  var Ve = re.formats(), $e = this.quill.getFormat(B.index - 1, 1);
                  he = g.default.attributes.diff(Ve, $e) || {};
                }
              }
              var Je = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(H.prefix) ? 2 : 1;
              this.quill.deleteText(B.index - Je, Je, w.default.sources.USER), Object.keys(he).length > 0 && this.quill.formatLine(B.index - Je, Je, he, w.default.sources.USER), this.quill.focus();
            }
          }
          function M(B, H) {
            var Z = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(H.suffix) ? 2 : 1;
            if (!(B.index >= this.quill.getLength() - Z)) {
              var _ = {}, re = 0, he = this.quill.getLine(B.index), be = i(he, 1), Oe = be[0];
              if (H.offset >= Oe.length() - 1) {
                var Pe = this.quill.getLine(B.index + 1), Ve = i(Pe, 1), $e = Ve[0];
                if ($e) {
                  var Je = Oe.formats(), oe = this.quill.getFormat(B.index, 1);
                  _ = g.default.attributes.diff(Je, oe) || {}, re = $e.length();
                }
              }
              this.quill.deleteText(B.index, Z, w.default.sources.USER), Object.keys(_).length > 0 && this.quill.formatLine(B.index + re - 1, Z, _, w.default.sources.USER);
            }
          }
          function P(B) {
            var H = this.quill.getLines(B), Z = {};
            if (H.length > 1) {
              var _ = H[0].formats(), re = H[H.length - 1].formats();
              Z = g.default.attributes.diff(re, _) || {};
            }
            this.quill.deleteText(B, w.default.sources.USER), Object.keys(Z).length > 0 && this.quill.formatLine(B.index, 1, Z, w.default.sources.USER), this.quill.setSelection(B.index, w.default.sources.SILENT), this.quill.focus();
          }
          function R(B, H) {
            var Z = this;
            B.length > 0 && this.quill.scroll.deleteAt(B.index, B.length);
            var _ = Object.keys(H.format).reduce(function(re, he) {
              return x.default.query(he, x.default.Scope.BLOCK) && !Array.isArray(H.format[he]) && (re[he] = H.format[he]), re;
            }, {});
            this.quill.insertText(B.index, `
`, _, w.default.sources.USER), this.quill.setSelection(B.index + 1, w.default.sources.SILENT), this.quill.focus(), Object.keys(H.format).forEach(function(re) {
              _[re] == null && (Array.isArray(H.format[re]) || re !== "link" && Z.quill.format(re, H.format[re], w.default.sources.USER));
            });
          }
          function q(B) {
            return {
              key: V.keys.TAB,
              shiftKey: !B,
              format: { "code-block": !0 },
              handler: function(Z) {
                var _ = x.default.query("code-block"), re = Z.index, he = Z.length, be = this.quill.scroll.descendant(_, re), Oe = i(be, 2), Pe = Oe[0], Ve = Oe[1];
                if (Pe != null) {
                  var $e = this.quill.getIndex(Pe), Je = Pe.newlineIndex(Ve, !0) + 1, oe = Pe.newlineIndex($e + Ve + he), ie = Pe.domNode.textContent.slice(Je, oe).split(`
`);
                  Ve = 0, ie.forEach(function(pe, me) {
                    B ? (Pe.insertAt(Je + Ve, _.TAB), Ve += _.TAB.length, me === 0 ? re += _.TAB.length : he += _.TAB.length) : pe.startsWith(_.TAB) && (Pe.deleteAt(Je + Ve, _.TAB.length), Ve -= _.TAB.length, me === 0 ? re -= _.TAB.length : he -= _.TAB.length), Ve += pe.length + 1;
                  }), this.quill.update(w.default.sources.USER), this.quill.setSelection(re, he, w.default.sources.SILENT);
                }
              }
            };
          }
          function Y(B) {
            return {
              key: B[0].toUpperCase(),
              shortKey: !0,
              handler: function(Z, _) {
                this.quill.format(B, !_.format[B], w.default.sources.USER);
              }
            };
          }
          function Q(B) {
            if (typeof B == "string" || typeof B == "number")
              return Q({ key: B });
            if ((typeof B > "u" ? "undefined" : a(B)) === "object" && (B = (0, u.default)(B, !1)), typeof B.key == "string")
              if (V.keys[B.key.toUpperCase()] != null)
                B.key = V.keys[B.key.toUpperCase()];
              else if (B.key.length === 1)
                B.key = B.key.toUpperCase().charCodeAt(0);
              else
                return null;
            return B.shortKey && (B[F] = B.shortKey, delete B.shortKey), B;
          }
          r.default = V, r.SHORTKEY = F;
        },
        /* 24 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = /* @__PURE__ */ function() {
            function g(y, x) {
              var b = [], w = !0, D = !1, E = void 0;
              try {
                for (var T = y[Symbol.iterator](), L; !(w = (L = T.next()).done) && (b.push(L.value), !(x && b.length === x)); w = !0)
                  ;
              } catch (S) {
                D = !0, E = S;
              } finally {
                try {
                  !w && T.return && T.return();
                } finally {
                  if (D)
                    throw E;
                }
              }
              return b;
            }
            return function(y, x) {
              if (Array.isArray(y))
                return y;
              if (Symbol.iterator in Object(y))
                return g(y, x);
              throw new TypeError("Invalid attempt to destructure non-iterable instance");
            };
          }(), i = function g(y, x, b) {
            y === null && (y = Function.prototype);
            var w = Object.getOwnPropertyDescriptor(y, x);
            if (w === void 0) {
              var D = Object.getPrototypeOf(y);
              return D === null ? void 0 : g(D, x, b);
            } else {
              if ("value" in w)
                return w.value;
              var E = w.get;
              return E === void 0 ? void 0 : E.call(b);
            }
          }, l = /* @__PURE__ */ function() {
            function g(y, x) {
              for (var b = 0; b < x.length; b++) {
                var w = x[b];
                w.enumerable = w.enumerable || !1, w.configurable = !0, "value" in w && (w.writable = !0), Object.defineProperty(y, w.key, w);
              }
            }
            return function(y, x, b) {
              return x && g(y.prototype, x), b && g(y, b), y;
            };
          }(), s = o(0), u = f(s), c = o(7), d = f(c);
          function f(g) {
            return g && g.__esModule ? g : { default: g };
          }
          function v(g, y) {
            if (!(g instanceof y))
              throw new TypeError("Cannot call a class as a function");
          }
          function h(g, y) {
            if (!g)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return y && (typeof y == "object" || typeof y == "function") ? y : g;
          }
          function m(g, y) {
            if (typeof y != "function" && y !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof y);
            g.prototype = Object.create(y && y.prototype, { constructor: { value: g, enumerable: !1, writable: !0, configurable: !0 } }), y && (Object.setPrototypeOf ? Object.setPrototypeOf(g, y) : g.__proto__ = y);
          }
          var p = function(g) {
            m(y, g), l(y, null, [{
              key: "value",
              value: function() {
              }
            }]);
            function y(x, b) {
              v(this, y);
              var w = h(this, (y.__proto__ || Object.getPrototypeOf(y)).call(this, x));
              return w.selection = b, w.textNode = document.createTextNode(y.CONTENTS), w.domNode.appendChild(w.textNode), w._length = 0, w;
            }
            return l(y, [{
              key: "detach",
              value: function() {
                this.parent != null && this.parent.removeChild(this);
              }
            }, {
              key: "format",
              value: function(b, w) {
                if (this._length !== 0)
                  return i(y.prototype.__proto__ || Object.getPrototypeOf(y.prototype), "format", this).call(this, b, w);
                for (var D = this, E = 0; D != null && D.statics.scope !== u.default.Scope.BLOCK_BLOT; )
                  E += D.offset(D.parent), D = D.parent;
                D != null && (this._length = y.CONTENTS.length, D.optimize(), D.formatAt(E, y.CONTENTS.length, b, w), this._length = 0);
              }
            }, {
              key: "index",
              value: function(b, w) {
                return b === this.textNode ? 0 : i(y.prototype.__proto__ || Object.getPrototypeOf(y.prototype), "index", this).call(this, b, w);
              }
            }, {
              key: "length",
              value: function() {
                return this._length;
              }
            }, {
              key: "position",
              value: function() {
                return [this.textNode, this.textNode.data.length];
              }
            }, {
              key: "remove",
              value: function() {
                i(y.prototype.__proto__ || Object.getPrototypeOf(y.prototype), "remove", this).call(this), this.parent = null;
              }
            }, {
              key: "restore",
              value: function() {
                if (!(this.selection.composing || this.parent == null)) {
                  var b = this.textNode, w = this.selection.getNativeRange(), D = void 0, E = void 0, T = void 0;
                  if (w != null && w.start.node === b && w.end.node === b) {
                    var L = [b, w.start.offset, w.end.offset];
                    D = L[0], E = L[1], T = L[2];
                  }
                  for (; this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode; )
                    this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);
                  if (this.textNode.data !== y.CONTENTS) {
                    var S = this.textNode.data.split(y.CONTENTS).join("");
                    this.next instanceof d.default ? (D = this.next.domNode, this.next.insertAt(0, S), this.textNode.data = y.CONTENTS) : (this.textNode.data = S, this.parent.insertBefore(u.default.create(this.textNode), this), this.textNode = document.createTextNode(y.CONTENTS), this.domNode.appendChild(this.textNode));
                  }
                  if (this.remove(), E != null) {
                    var A = [E, T].map(function(k) {
                      return Math.max(0, Math.min(D.data.length, k - 1));
                    }), C = a(A, 2);
                    return E = C[0], T = C[1], {
                      startNode: D,
                      startOffset: E,
                      endNode: D,
                      endOffset: T
                    };
                  }
                }
              }
            }, {
              key: "update",
              value: function(b, w) {
                var D = this;
                if (b.some(function(T) {
                  return T.type === "characterData" && T.target === D.textNode;
                })) {
                  var E = this.restore();
                  E && (w.range = E);
                }
              }
            }, {
              key: "value",
              value: function() {
                return "";
              }
            }]), y;
          }(u.default.Embed);
          p.blotName = "cursor", p.className = "ql-cursor", p.tagName = "span", p.CONTENTS = "\uFEFF", r.default = p;
        },
        /* 25 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = o(0), i = u(a), l = o(4), s = u(l);
          function u(h) {
            return h && h.__esModule ? h : { default: h };
          }
          function c(h, m) {
            if (!(h instanceof m))
              throw new TypeError("Cannot call a class as a function");
          }
          function d(h, m) {
            if (!h)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return m && (typeof m == "object" || typeof m == "function") ? m : h;
          }
          function f(h, m) {
            if (typeof m != "function" && m !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof m);
            h.prototype = Object.create(m && m.prototype, { constructor: { value: h, enumerable: !1, writable: !0, configurable: !0 } }), m && (Object.setPrototypeOf ? Object.setPrototypeOf(h, m) : h.__proto__ = m);
          }
          var v = function(h) {
            f(m, h);
            function m() {
              return c(this, m), d(this, (m.__proto__ || Object.getPrototypeOf(m)).apply(this, arguments));
            }
            return m;
          }(i.default.Container);
          v.allowedChildren = [s.default, l.BlockEmbed, v], r.default = v;
        },
        /* 26 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          }), r.ColorStyle = r.ColorClass = r.ColorAttributor = void 0;
          var a = /* @__PURE__ */ function() {
            function p(g, y) {
              for (var x = 0; x < y.length; x++) {
                var b = y[x];
                b.enumerable = b.enumerable || !1, b.configurable = !0, "value" in b && (b.writable = !0), Object.defineProperty(g, b.key, b);
              }
            }
            return function(g, y, x) {
              return y && p(g.prototype, y), x && p(g, x), g;
            };
          }(), i = function p(g, y, x) {
            g === null && (g = Function.prototype);
            var b = Object.getOwnPropertyDescriptor(g, y);
            if (b === void 0) {
              var w = Object.getPrototypeOf(g);
              return w === null ? void 0 : p(w, y, x);
            } else {
              if ("value" in b)
                return b.value;
              var D = b.get;
              return D === void 0 ? void 0 : D.call(x);
            }
          }, l = o(0), s = u(l);
          function u(p) {
            return p && p.__esModule ? p : { default: p };
          }
          function c(p, g) {
            if (!(p instanceof g))
              throw new TypeError("Cannot call a class as a function");
          }
          function d(p, g) {
            if (!p)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return g && (typeof g == "object" || typeof g == "function") ? g : p;
          }
          function f(p, g) {
            if (typeof g != "function" && g !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof g);
            p.prototype = Object.create(g && g.prototype, { constructor: { value: p, enumerable: !1, writable: !0, configurable: !0 } }), g && (Object.setPrototypeOf ? Object.setPrototypeOf(p, g) : p.__proto__ = g);
          }
          var v = function(p) {
            f(g, p);
            function g() {
              return c(this, g), d(this, (g.__proto__ || Object.getPrototypeOf(g)).apply(this, arguments));
            }
            return a(g, [{
              key: "value",
              value: function(x) {
                var b = i(g.prototype.__proto__ || Object.getPrototypeOf(g.prototype), "value", this).call(this, x);
                return b.startsWith("rgb(") ? (b = b.replace(/^[^\d]+/, "").replace(/[^\d]+$/, ""), "#" + b.split(",").map(function(w) {
                  return ("00" + parseInt(w).toString(16)).slice(-2);
                }).join("")) : b;
              }
            }]), g;
          }(s.default.Attributor.Style), h = new s.default.Attributor.Class("color", "ql-color", {
            scope: s.default.Scope.INLINE
          }), m = new v("color", "color", {
            scope: s.default.Scope.INLINE
          });
          r.ColorAttributor = v, r.ColorClass = h, r.ColorStyle = m;
        },
        /* 27 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          }), r.sanitize = r.default = void 0;
          var a = /* @__PURE__ */ function() {
            function m(p, g) {
              for (var y = 0; y < g.length; y++) {
                var x = g[y];
                x.enumerable = x.enumerable || !1, x.configurable = !0, "value" in x && (x.writable = !0), Object.defineProperty(p, x.key, x);
              }
            }
            return function(p, g, y) {
              return g && m(p.prototype, g), y && m(p, y), p;
            };
          }(), i = function m(p, g, y) {
            p === null && (p = Function.prototype);
            var x = Object.getOwnPropertyDescriptor(p, g);
            if (x === void 0) {
              var b = Object.getPrototypeOf(p);
              return b === null ? void 0 : m(b, g, y);
            } else {
              if ("value" in x)
                return x.value;
              var w = x.get;
              return w === void 0 ? void 0 : w.call(y);
            }
          }, l = o(6), s = u(l);
          function u(m) {
            return m && m.__esModule ? m : { default: m };
          }
          function c(m, p) {
            if (!(m instanceof p))
              throw new TypeError("Cannot call a class as a function");
          }
          function d(m, p) {
            if (!m)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return p && (typeof p == "object" || typeof p == "function") ? p : m;
          }
          function f(m, p) {
            if (typeof p != "function" && p !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof p);
            m.prototype = Object.create(p && p.prototype, { constructor: { value: m, enumerable: !1, writable: !0, configurable: !0 } }), p && (Object.setPrototypeOf ? Object.setPrototypeOf(m, p) : m.__proto__ = p);
          }
          var v = function(m) {
            f(p, m);
            function p() {
              return c(this, p), d(this, (p.__proto__ || Object.getPrototypeOf(p)).apply(this, arguments));
            }
            return a(p, [{
              key: "format",
              value: function(y, x) {
                if (y !== this.statics.blotName || !x)
                  return i(p.prototype.__proto__ || Object.getPrototypeOf(p.prototype), "format", this).call(this, y, x);
                x = this.constructor.sanitize(x), this.domNode.setAttribute("href", x);
              }
            }], [{
              key: "create",
              value: function(y) {
                var x = i(p.__proto__ || Object.getPrototypeOf(p), "create", this).call(this, y);
                return y = this.sanitize(y), x.setAttribute("href", y), x.setAttribute("rel", "noopener noreferrer"), x.setAttribute("target", "_blank"), x;
              }
            }, {
              key: "formats",
              value: function(y) {
                return y.getAttribute("href");
              }
            }, {
              key: "sanitize",
              value: function(y) {
                return h(y, this.PROTOCOL_WHITELIST) ? y : this.SANITIZED_URL;
              }
            }]), p;
          }(s.default);
          v.blotName = "link", v.tagName = "A", v.SANITIZED_URL = "about:blank", v.PROTOCOL_WHITELIST = ["http", "https", "mailto", "tel"];
          function h(m, p) {
            var g = document.createElement("a");
            g.href = m;
            var y = g.href.slice(0, g.href.indexOf(":"));
            return p.indexOf(y) > -1;
          }
          r.default = v, r.sanitize = h;
        },
        /* 28 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(p) {
            return typeof p;
          } : function(p) {
            return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p;
          }, i = /* @__PURE__ */ function() {
            function p(g, y) {
              for (var x = 0; x < y.length; x++) {
                var b = y[x];
                b.enumerable = b.enumerable || !1, b.configurable = !0, "value" in b && (b.writable = !0), Object.defineProperty(g, b.key, b);
              }
            }
            return function(g, y, x) {
              return y && p(g.prototype, y), x && p(g, x), g;
            };
          }(), l = o(23), s = d(l), u = o(107), c = d(u);
          function d(p) {
            return p && p.__esModule ? p : { default: p };
          }
          function f(p, g) {
            if (!(p instanceof g))
              throw new TypeError("Cannot call a class as a function");
          }
          var v = 0;
          function h(p, g) {
            p.setAttribute(g, p.getAttribute(g) !== "true");
          }
          var m = function() {
            function p(g) {
              var y = this;
              f(this, p), this.select = g, this.container = document.createElement("span"), this.buildPicker(), this.select.style.display = "none", this.select.parentNode.insertBefore(this.container, this.select), this.label.addEventListener("mousedown", function() {
                y.togglePicker();
              }), this.label.addEventListener("keydown", function(x) {
                switch (x.keyCode) {
                  case s.default.keys.ENTER:
                    y.togglePicker();
                    break;
                  case s.default.keys.ESCAPE:
                    y.escape(), x.preventDefault();
                    break;
                }
              }), this.select.addEventListener("change", this.update.bind(this));
            }
            return i(p, [{
              key: "togglePicker",
              value: function() {
                this.container.classList.toggle("ql-expanded"), h(this.label, "aria-expanded"), h(this.options, "aria-hidden");
              }
            }, {
              key: "buildItem",
              value: function(y) {
                var x = this, b = document.createElement("span");
                return b.tabIndex = "0", b.setAttribute("role", "button"), b.classList.add("ql-picker-item"), y.hasAttribute("value") && b.setAttribute("data-value", y.getAttribute("value")), y.textContent && b.setAttribute("data-label", y.textContent), b.addEventListener("click", function() {
                  x.selectItem(b, !0);
                }), b.addEventListener("keydown", function(w) {
                  switch (w.keyCode) {
                    case s.default.keys.ENTER:
                      x.selectItem(b, !0), w.preventDefault();
                      break;
                    case s.default.keys.ESCAPE:
                      x.escape(), w.preventDefault();
                      break;
                  }
                }), b;
              }
            }, {
              key: "buildLabel",
              value: function() {
                var y = document.createElement("span");
                return y.classList.add("ql-picker-label"), y.innerHTML = c.default, y.tabIndex = "0", y.setAttribute("role", "button"), y.setAttribute("aria-expanded", "false"), this.container.appendChild(y), y;
              }
            }, {
              key: "buildOptions",
              value: function() {
                var y = this, x = document.createElement("span");
                x.classList.add("ql-picker-options"), x.setAttribute("aria-hidden", "true"), x.tabIndex = "-1", x.id = "ql-picker-options-" + v, v += 1, this.label.setAttribute("aria-controls", x.id), this.options = x, [].slice.call(this.select.options).forEach(function(b) {
                  var w = y.buildItem(b);
                  x.appendChild(w), b.selected === !0 && y.selectItem(w);
                }), this.container.appendChild(x);
              }
            }, {
              key: "buildPicker",
              value: function() {
                var y = this;
                [].slice.call(this.select.attributes).forEach(function(x) {
                  y.container.setAttribute(x.name, x.value);
                }), this.container.classList.add("ql-picker"), this.label = this.buildLabel(), this.buildOptions();
              }
            }, {
              key: "escape",
              value: function() {
                var y = this;
                this.close(), setTimeout(function() {
                  return y.label.focus();
                }, 1);
              }
            }, {
              key: "close",
              value: function() {
                this.container.classList.remove("ql-expanded"), this.label.setAttribute("aria-expanded", "false"), this.options.setAttribute("aria-hidden", "true");
              }
            }, {
              key: "selectItem",
              value: function(y) {
                var x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, b = this.container.querySelector(".ql-selected");
                if (y !== b && (b != null && b.classList.remove("ql-selected"), y != null && (y.classList.add("ql-selected"), this.select.selectedIndex = [].indexOf.call(y.parentNode.children, y), y.hasAttribute("data-value") ? this.label.setAttribute("data-value", y.getAttribute("data-value")) : this.label.removeAttribute("data-value"), y.hasAttribute("data-label") ? this.label.setAttribute("data-label", y.getAttribute("data-label")) : this.label.removeAttribute("data-label"), x))) {
                  if (typeof Event == "function")
                    this.select.dispatchEvent(new Event("change"));
                  else if ((typeof Event > "u" ? "undefined" : a(Event)) === "object") {
                    var w = document.createEvent("Event");
                    w.initEvent("change", !0, !0), this.select.dispatchEvent(w);
                  }
                  this.close();
                }
              }
            }, {
              key: "update",
              value: function() {
                var y = void 0;
                if (this.select.selectedIndex > -1) {
                  var x = this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];
                  y = this.select.options[this.select.selectedIndex], this.selectItem(x);
                } else
                  this.selectItem(null);
                var b = y != null && y !== this.select.querySelector("option[selected]");
                this.label.classList.toggle("ql-active", b);
              }
            }]), p;
          }();
          r.default = m;
        },
        /* 29 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = o(0), i = N(a), l = o(5), s = N(l), u = o(4), c = N(u), d = o(16), f = N(d), v = o(25), h = N(v), m = o(24), p = N(m), g = o(35), y = N(g), x = o(6), b = N(x), w = o(22), D = N(w), E = o(7), T = N(E), L = o(55), S = N(L), A = o(42), C = N(A), k = o(23), I = N(k);
          function N(F) {
            return F && F.__esModule ? F : { default: F };
          }
          s.default.register({
            "blots/block": c.default,
            "blots/block/embed": u.BlockEmbed,
            "blots/break": f.default,
            "blots/container": h.default,
            "blots/cursor": p.default,
            "blots/embed": y.default,
            "blots/inline": b.default,
            "blots/scroll": D.default,
            "blots/text": T.default,
            "modules/clipboard": S.default,
            "modules/history": C.default,
            "modules/keyboard": I.default
          }), i.default.register(c.default, f.default, p.default, b.default, D.default, T.default), r.default = s.default;
        },
        /* 30 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", { value: !0 });
          var a = o(1), i = (
            /** @class */
            function() {
              function l(s) {
                this.domNode = s, this.domNode[a.DATA_KEY] = { blot: this };
              }
              return Object.defineProperty(l.prototype, "statics", {
                // Hack for accessing inherited static methods
                get: function() {
                  return this.constructor;
                },
                enumerable: !0,
                configurable: !0
              }), l.create = function(s) {
                if (this.tagName == null)
                  throw new a.ParchmentError("Blot definition missing tagName");
                var u;
                return Array.isArray(this.tagName) ? (typeof s == "string" && (s = s.toUpperCase(), parseInt(s).toString() === s && (s = parseInt(s))), typeof s == "number" ? u = document.createElement(this.tagName[s - 1]) : this.tagName.indexOf(s) > -1 ? u = document.createElement(s) : u = document.createElement(this.tagName[0])) : u = document.createElement(this.tagName), this.className && u.classList.add(this.className), u;
              }, l.prototype.attach = function() {
                this.parent != null && (this.scroll = this.parent.scroll);
              }, l.prototype.clone = function() {
                var s = this.domNode.cloneNode(!1);
                return a.create(s);
              }, l.prototype.detach = function() {
                this.parent != null && this.parent.removeChild(this), delete this.domNode[a.DATA_KEY];
              }, l.prototype.deleteAt = function(s, u) {
                var c = this.isolate(s, u);
                c.remove();
              }, l.prototype.formatAt = function(s, u, c, d) {
                var f = this.isolate(s, u);
                if (a.query(c, a.Scope.BLOT) != null && d)
                  f.wrap(c, d);
                else if (a.query(c, a.Scope.ATTRIBUTE) != null) {
                  var v = a.create(this.statics.scope);
                  f.wrap(v), v.format(c, d);
                }
              }, l.prototype.insertAt = function(s, u, c) {
                var d = c == null ? a.create("text", u) : a.create(u, c), f = this.split(s);
                this.parent.insertBefore(d, f);
              }, l.prototype.insertInto = function(s, u) {
                u === void 0 && (u = null), this.parent != null && this.parent.children.remove(this);
                var c = null;
                s.children.insertBefore(this, u), u != null && (c = u.domNode), (this.domNode.parentNode != s.domNode || this.domNode.nextSibling != c) && s.domNode.insertBefore(this.domNode, c), this.parent = s, this.attach();
              }, l.prototype.isolate = function(s, u) {
                var c = this.split(s);
                return c.split(u), c;
              }, l.prototype.length = function() {
                return 1;
              }, l.prototype.offset = function(s) {
                return s === void 0 && (s = this.parent), this.parent == null || this == s ? 0 : this.parent.children.offset(this) + this.parent.offset(s);
              }, l.prototype.optimize = function(s) {
                this.domNode[a.DATA_KEY] != null && delete this.domNode[a.DATA_KEY].mutations;
              }, l.prototype.remove = function() {
                this.domNode.parentNode != null && this.domNode.parentNode.removeChild(this.domNode), this.detach();
              }, l.prototype.replace = function(s) {
                s.parent != null && (s.parent.insertBefore(this, s.next), s.remove());
              }, l.prototype.replaceWith = function(s, u) {
                var c = typeof s == "string" ? a.create(s, u) : s;
                return c.replace(this), c;
              }, l.prototype.split = function(s, u) {
                return s === 0 ? this : this.next;
              }, l.prototype.update = function(s, u) {
              }, l.prototype.wrap = function(s, u) {
                var c = typeof s == "string" ? a.create(s, u) : s;
                return this.parent != null && this.parent.insertBefore(c, this.next), c.appendChild(this), c;
              }, l.blotName = "abstract", l;
            }()
          );
          r.default = i;
        },
        /* 31 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", { value: !0 });
          var a = o(12), i = o(32), l = o(33), s = o(1), u = (
            /** @class */
            function() {
              function c(d) {
                this.attributes = {}, this.domNode = d, this.build();
              }
              return c.prototype.attribute = function(d, f) {
                f ? d.add(this.domNode, f) && (d.value(this.domNode) != null ? this.attributes[d.attrName] = d : delete this.attributes[d.attrName]) : (d.remove(this.domNode), delete this.attributes[d.attrName]);
              }, c.prototype.build = function() {
                var d = this;
                this.attributes = {};
                var f = a.default.keys(this.domNode), v = i.default.keys(this.domNode), h = l.default.keys(this.domNode);
                f.concat(v).concat(h).forEach(function(m) {
                  var p = s.query(m, s.Scope.ATTRIBUTE);
                  p instanceof a.default && (d.attributes[p.attrName] = p);
                });
              }, c.prototype.copy = function(d) {
                var f = this;
                Object.keys(this.attributes).forEach(function(v) {
                  var h = f.attributes[v].value(f.domNode);
                  d.format(v, h);
                });
              }, c.prototype.move = function(d) {
                var f = this;
                this.copy(d), Object.keys(this.attributes).forEach(function(v) {
                  f.attributes[v].remove(f.domNode);
                }), this.attributes = {};
              }, c.prototype.values = function() {
                var d = this;
                return Object.keys(this.attributes).reduce(function(f, v) {
                  return f[v] = d.attributes[v].value(d.domNode), f;
                }, {});
              }, c;
            }()
          );
          r.default = u;
        },
        /* 32 */
        /***/
        function(n, r, o) {
          var a = this && this.__extends || function() {
            var u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, d) {
              c.__proto__ = d;
            } || function(c, d) {
              for (var f in d)
                d.hasOwnProperty(f) && (c[f] = d[f]);
            };
            return function(c, d) {
              u(c, d);
              function f() {
                this.constructor = c;
              }
              c.prototype = d === null ? Object.create(d) : (f.prototype = d.prototype, new f());
            };
          }();
          Object.defineProperty(r, "__esModule", { value: !0 });
          var i = o(12);
          function l(u, c) {
            var d = u.getAttribute("class") || "";
            return d.split(/\s+/).filter(function(f) {
              return f.indexOf(c + "-") === 0;
            });
          }
          var s = (
            /** @class */
            function(u) {
              a(c, u);
              function c() {
                return u !== null && u.apply(this, arguments) || this;
              }
              return c.keys = function(d) {
                return (d.getAttribute("class") || "").split(/\s+/).map(function(f) {
                  return f.split("-").slice(0, -1).join("-");
                });
              }, c.prototype.add = function(d, f) {
                return this.canAdd(d, f) ? (this.remove(d), d.classList.add(this.keyName + "-" + f), !0) : !1;
              }, c.prototype.remove = function(d) {
                var f = l(d, this.keyName);
                f.forEach(function(v) {
                  d.classList.remove(v);
                }), d.classList.length === 0 && d.removeAttribute("class");
              }, c.prototype.value = function(d) {
                var f = l(d, this.keyName)[0] || "", v = f.slice(this.keyName.length + 1);
                return this.canAdd(d, v) ? v : "";
              }, c;
            }(i.default)
          );
          r.default = s;
        },
        /* 33 */
        /***/
        function(n, r, o) {
          var a = this && this.__extends || function() {
            var u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, d) {
              c.__proto__ = d;
            } || function(c, d) {
              for (var f in d)
                d.hasOwnProperty(f) && (c[f] = d[f]);
            };
            return function(c, d) {
              u(c, d);
              function f() {
                this.constructor = c;
              }
              c.prototype = d === null ? Object.create(d) : (f.prototype = d.prototype, new f());
            };
          }();
          Object.defineProperty(r, "__esModule", { value: !0 });
          var i = o(12);
          function l(u) {
            var c = u.split("-"), d = c.slice(1).map(function(f) {
              return f[0].toUpperCase() + f.slice(1);
            }).join("");
            return c[0] + d;
          }
          var s = (
            /** @class */
            function(u) {
              a(c, u);
              function c() {
                return u !== null && u.apply(this, arguments) || this;
              }
              return c.keys = function(d) {
                return (d.getAttribute("style") || "").split(";").map(function(f) {
                  var v = f.split(":");
                  return v[0].trim();
                });
              }, c.prototype.add = function(d, f) {
                return this.canAdd(d, f) ? (d.style[l(this.keyName)] = f, !0) : !1;
              }, c.prototype.remove = function(d) {
                d.style[l(this.keyName)] = "", d.getAttribute("style") || d.removeAttribute("style");
              }, c.prototype.value = function(d) {
                var f = d.style[l(this.keyName)];
                return this.canAdd(d, f) ? f : "";
              }, c;
            }(i.default)
          );
          r.default = s;
        },
        /* 34 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = /* @__PURE__ */ function() {
            function s(u, c) {
              for (var d = 0; d < c.length; d++) {
                var f = c[d];
                f.enumerable = f.enumerable || !1, f.configurable = !0, "value" in f && (f.writable = !0), Object.defineProperty(u, f.key, f);
              }
            }
            return function(u, c, d) {
              return c && s(u.prototype, c), d && s(u, d), u;
            };
          }();
          function i(s, u) {
            if (!(s instanceof u))
              throw new TypeError("Cannot call a class as a function");
          }
          var l = function() {
            function s(u, c) {
              i(this, s), this.quill = u, this.options = c, this.modules = {};
            }
            return a(s, [{
              key: "init",
              value: function() {
                var c = this;
                Object.keys(this.options.modules).forEach(function(d) {
                  c.modules[d] == null && c.addModule(d);
                });
              }
            }, {
              key: "addModule",
              value: function(c) {
                var d = this.quill.constructor.import("modules/" + c);
                return this.modules[c] = new d(this.quill, this.options.modules[c] || {}), this.modules[c];
              }
            }]), s;
          }();
          l.DEFAULTS = {
            modules: {}
          }, l.themes = {
            default: l
          }, r.default = l;
        },
        /* 35 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = /* @__PURE__ */ function() {
            function g(y, x) {
              for (var b = 0; b < x.length; b++) {
                var w = x[b];
                w.enumerable = w.enumerable || !1, w.configurable = !0, "value" in w && (w.writable = !0), Object.defineProperty(y, w.key, w);
              }
            }
            return function(y, x, b) {
              return x && g(y.prototype, x), b && g(y, b), y;
            };
          }(), i = function g(y, x, b) {
            y === null && (y = Function.prototype);
            var w = Object.getOwnPropertyDescriptor(y, x);
            if (w === void 0) {
              var D = Object.getPrototypeOf(y);
              return D === null ? void 0 : g(D, x, b);
            } else {
              if ("value" in w)
                return w.value;
              var E = w.get;
              return E === void 0 ? void 0 : E.call(b);
            }
          }, l = o(0), s = d(l), u = o(7), c = d(u);
          function d(g) {
            return g && g.__esModule ? g : { default: g };
          }
          function f(g, y) {
            if (!(g instanceof y))
              throw new TypeError("Cannot call a class as a function");
          }
          function v(g, y) {
            if (!g)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return y && (typeof y == "object" || typeof y == "function") ? y : g;
          }
          function h(g, y) {
            if (typeof y != "function" && y !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof y);
            g.prototype = Object.create(y && y.prototype, { constructor: { value: g, enumerable: !1, writable: !0, configurable: !0 } }), y && (Object.setPrototypeOf ? Object.setPrototypeOf(g, y) : g.__proto__ = y);
          }
          var m = "\uFEFF", p = function(g) {
            h(y, g);
            function y(x) {
              f(this, y);
              var b = v(this, (y.__proto__ || Object.getPrototypeOf(y)).call(this, x));
              return b.contentNode = document.createElement("span"), b.contentNode.setAttribute("contenteditable", !1), [].slice.call(b.domNode.childNodes).forEach(function(w) {
                b.contentNode.appendChild(w);
              }), b.leftGuard = document.createTextNode(m), b.rightGuard = document.createTextNode(m), b.domNode.appendChild(b.leftGuard), b.domNode.appendChild(b.contentNode), b.domNode.appendChild(b.rightGuard), b;
            }
            return a(y, [{
              key: "index",
              value: function(b, w) {
                return b === this.leftGuard ? 0 : b === this.rightGuard ? 1 : i(y.prototype.__proto__ || Object.getPrototypeOf(y.prototype), "index", this).call(this, b, w);
              }
            }, {
              key: "restore",
              value: function(b) {
                var w = void 0, D = void 0, E = b.data.split(m).join("");
                if (b === this.leftGuard)
                  if (this.prev instanceof c.default) {
                    var T = this.prev.length();
                    this.prev.insertAt(T, E), w = {
                      startNode: this.prev.domNode,
                      startOffset: T + E.length
                    };
                  } else
                    D = document.createTextNode(E), this.parent.insertBefore(s.default.create(D), this), w = {
                      startNode: D,
                      startOffset: E.length
                    };
                else
                  b === this.rightGuard && (this.next instanceof c.default ? (this.next.insertAt(0, E), w = {
                    startNode: this.next.domNode,
                    startOffset: E.length
                  }) : (D = document.createTextNode(E), this.parent.insertBefore(s.default.create(D), this.next), w = {
                    startNode: D,
                    startOffset: E.length
                  }));
                return b.data = m, w;
              }
            }, {
              key: "update",
              value: function(b, w) {
                var D = this;
                b.forEach(function(E) {
                  if (E.type === "characterData" && (E.target === D.leftGuard || E.target === D.rightGuard)) {
                    var T = D.restore(E.target);
                    T && (w.range = T);
                  }
                });
              }
            }]), y;
          }(s.default.Embed);
          r.default = p;
        },
        /* 36 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          }), r.AlignStyle = r.AlignClass = r.AlignAttribute = void 0;
          var a = o(0), i = l(a);
          function l(f) {
            return f && f.__esModule ? f : { default: f };
          }
          var s = {
            scope: i.default.Scope.BLOCK,
            whitelist: ["right", "center", "justify"]
          }, u = new i.default.Attributor.Attribute("align", "align", s), c = new i.default.Attributor.Class("align", "ql-align", s), d = new i.default.Attributor.Style("align", "text-align", s);
          r.AlignAttribute = u, r.AlignClass = c, r.AlignStyle = d;
        },
        /* 37 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          }), r.BackgroundStyle = r.BackgroundClass = void 0;
          var a = o(0), i = s(a), l = o(26);
          function s(d) {
            return d && d.__esModule ? d : { default: d };
          }
          var u = new i.default.Attributor.Class("background", "ql-bg", {
            scope: i.default.Scope.INLINE
          }), c = new l.ColorAttributor("background", "background-color", {
            scope: i.default.Scope.INLINE
          });
          r.BackgroundClass = u, r.BackgroundStyle = c;
        },
        /* 38 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          }), r.DirectionStyle = r.DirectionClass = r.DirectionAttribute = void 0;
          var a = o(0), i = l(a);
          function l(f) {
            return f && f.__esModule ? f : { default: f };
          }
          var s = {
            scope: i.default.Scope.BLOCK,
            whitelist: ["rtl"]
          }, u = new i.default.Attributor.Attribute("direction", "dir", s), c = new i.default.Attributor.Class("direction", "ql-direction", s), d = new i.default.Attributor.Style("direction", "direction", s);
          r.DirectionAttribute = u, r.DirectionClass = c, r.DirectionStyle = d;
        },
        /* 39 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          }), r.FontClass = r.FontStyle = void 0;
          var a = /* @__PURE__ */ function() {
            function g(y, x) {
              for (var b = 0; b < x.length; b++) {
                var w = x[b];
                w.enumerable = w.enumerable || !1, w.configurable = !0, "value" in w && (w.writable = !0), Object.defineProperty(y, w.key, w);
              }
            }
            return function(y, x, b) {
              return x && g(y.prototype, x), b && g(y, b), y;
            };
          }(), i = function g(y, x, b) {
            y === null && (y = Function.prototype);
            var w = Object.getOwnPropertyDescriptor(y, x);
            if (w === void 0) {
              var D = Object.getPrototypeOf(y);
              return D === null ? void 0 : g(D, x, b);
            } else {
              if ("value" in w)
                return w.value;
              var E = w.get;
              return E === void 0 ? void 0 : E.call(b);
            }
          }, l = o(0), s = u(l);
          function u(g) {
            return g && g.__esModule ? g : { default: g };
          }
          function c(g, y) {
            if (!(g instanceof y))
              throw new TypeError("Cannot call a class as a function");
          }
          function d(g, y) {
            if (!g)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return y && (typeof y == "object" || typeof y == "function") ? y : g;
          }
          function f(g, y) {
            if (typeof y != "function" && y !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof y);
            g.prototype = Object.create(y && y.prototype, { constructor: { value: g, enumerable: !1, writable: !0, configurable: !0 } }), y && (Object.setPrototypeOf ? Object.setPrototypeOf(g, y) : g.__proto__ = y);
          }
          var v = {
            scope: s.default.Scope.INLINE,
            whitelist: ["serif", "monospace"]
          }, h = new s.default.Attributor.Class("font", "ql-font", v), m = function(g) {
            f(y, g);
            function y() {
              return c(this, y), d(this, (y.__proto__ || Object.getPrototypeOf(y)).apply(this, arguments));
            }
            return a(y, [{
              key: "value",
              value: function(b) {
                return i(y.prototype.__proto__ || Object.getPrototypeOf(y.prototype), "value", this).call(this, b).replace(/["']/g, "");
              }
            }]), y;
          }(s.default.Attributor.Style), p = new m("font", "font-family", v);
          r.FontStyle = p, r.FontClass = h;
        },
        /* 40 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          }), r.SizeStyle = r.SizeClass = void 0;
          var a = o(0), i = l(a);
          function l(c) {
            return c && c.__esModule ? c : { default: c };
          }
          var s = new i.default.Attributor.Class("size", "ql-size", {
            scope: i.default.Scope.INLINE,
            whitelist: ["small", "large", "huge"]
          }), u = new i.default.Attributor.Style("size", "font-size", {
            scope: i.default.Scope.INLINE,
            whitelist: ["10px", "18px", "32px"]
          });
          r.SizeClass = s, r.SizeStyle = u;
        },
        /* 41 */
        /***/
        function(n, r, o) {
          n.exports = {
            align: {
              "": o(76),
              center: o(77),
              right: o(78),
              justify: o(79)
            },
            background: o(80),
            blockquote: o(81),
            bold: o(82),
            clean: o(83),
            code: o(58),
            "code-block": o(58),
            color: o(84),
            direction: {
              "": o(85),
              rtl: o(86)
            },
            float: {
              center: o(87),
              full: o(88),
              left: o(89),
              right: o(90)
            },
            formula: o(91),
            header: {
              1: o(92),
              2: o(93)
            },
            italic: o(94),
            image: o(95),
            indent: {
              "+1": o(96),
              "-1": o(97)
            },
            link: o(98),
            list: {
              ordered: o(99),
              bullet: o(100),
              check: o(101)
            },
            script: {
              sub: o(102),
              super: o(103)
            },
            strike: o(104),
            underline: o(105),
            video: o(106)
          };
        },
        /* 42 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          }), r.getLastChangeIndex = r.default = void 0;
          var a = /* @__PURE__ */ function() {
            function x(b, w) {
              for (var D = 0; D < w.length; D++) {
                var E = w[D];
                E.enumerable = E.enumerable || !1, E.configurable = !0, "value" in E && (E.writable = !0), Object.defineProperty(b, E.key, E);
              }
            }
            return function(b, w, D) {
              return w && x(b.prototype, w), D && x(b, D), b;
            };
          }(), i = o(0), l = f(i), s = o(5), u = f(s), c = o(9), d = f(c);
          function f(x) {
            return x && x.__esModule ? x : { default: x };
          }
          function v(x, b) {
            if (!(x instanceof b))
              throw new TypeError("Cannot call a class as a function");
          }
          function h(x, b) {
            if (!x)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return b && (typeof b == "object" || typeof b == "function") ? b : x;
          }
          function m(x, b) {
            if (typeof b != "function" && b !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof b);
            x.prototype = Object.create(b && b.prototype, { constructor: { value: x, enumerable: !1, writable: !0, configurable: !0 } }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(x, b) : x.__proto__ = b);
          }
          var p = function(x) {
            m(b, x);
            function b(w, D) {
              v(this, b);
              var E = h(this, (b.__proto__ || Object.getPrototypeOf(b)).call(this, w, D));
              return E.lastRecorded = 0, E.ignoreChange = !1, E.clear(), E.quill.on(u.default.events.EDITOR_CHANGE, function(T, L, S, A) {
                T !== u.default.events.TEXT_CHANGE || E.ignoreChange || (!E.options.userOnly || A === u.default.sources.USER ? E.record(L, S) : E.transform(L));
              }), E.quill.keyboard.addBinding({ key: "Z", shortKey: !0 }, E.undo.bind(E)), E.quill.keyboard.addBinding({ key: "Z", shortKey: !0, shiftKey: !0 }, E.redo.bind(E)), /Win/i.test(navigator.platform) && E.quill.keyboard.addBinding({ key: "Y", shortKey: !0 }, E.redo.bind(E)), E;
            }
            return a(b, [{
              key: "change",
              value: function(D, E) {
                if (this.stack[D].length !== 0) {
                  var T = this.stack[D].pop();
                  this.stack[E].push(T), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(T[D], u.default.sources.USER), this.ignoreChange = !1;
                  var L = y(T[D]);
                  this.quill.setSelection(L);
                }
              }
            }, {
              key: "clear",
              value: function() {
                this.stack = { undo: [], redo: [] };
              }
            }, {
              key: "cutoff",
              value: function() {
                this.lastRecorded = 0;
              }
            }, {
              key: "record",
              value: function(D, E) {
                if (D.ops.length !== 0) {
                  this.stack.redo = [];
                  var T = this.quill.getContents().diff(E), L = Date.now();
                  if (this.lastRecorded + this.options.delay > L && this.stack.undo.length > 0) {
                    var S = this.stack.undo.pop();
                    T = T.compose(S.undo), D = S.redo.compose(D);
                  } else
                    this.lastRecorded = L;
                  this.stack.undo.push({
                    redo: D,
                    undo: T
                  }), this.stack.undo.length > this.options.maxStack && this.stack.undo.shift();
                }
              }
            }, {
              key: "redo",
              value: function() {
                this.change("redo", "undo");
              }
            }, {
              key: "transform",
              value: function(D) {
                this.stack.undo.forEach(function(E) {
                  E.undo = D.transform(E.undo, !0), E.redo = D.transform(E.redo, !0);
                }), this.stack.redo.forEach(function(E) {
                  E.undo = D.transform(E.undo, !0), E.redo = D.transform(E.redo, !0);
                });
              }
            }, {
              key: "undo",
              value: function() {
                this.change("undo", "redo");
              }
            }]), b;
          }(d.default);
          p.DEFAULTS = {
            delay: 1e3,
            maxStack: 100,
            userOnly: !1
          };
          function g(x) {
            var b = x.ops[x.ops.length - 1];
            return b == null ? !1 : b.insert != null ? typeof b.insert == "string" && b.insert.endsWith(`
`) : b.attributes != null ? Object.keys(b.attributes).some(function(w) {
              return l.default.query(w, l.default.Scope.BLOCK) != null;
            }) : !1;
          }
          function y(x) {
            var b = x.reduce(function(D, E) {
              return D += E.delete || 0, D;
            }, 0), w = x.length() - b;
            return g(x) && (w -= 1), w;
          }
          r.default = p, r.getLastChangeIndex = y;
        },
        /* 43 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          }), r.default = r.BaseTooltip = void 0;
          var a = /* @__PURE__ */ function() {
            function R(q, Y) {
              for (var Q = 0; Q < Y.length; Q++) {
                var B = Y[Q];
                B.enumerable = B.enumerable || !1, B.configurable = !0, "value" in B && (B.writable = !0), Object.defineProperty(q, B.key, B);
              }
            }
            return function(q, Y, Q) {
              return Y && R(q.prototype, Y), Q && R(q, Q), q;
            };
          }(), i = function R(q, Y, Q) {
            q === null && (q = Function.prototype);
            var B = Object.getOwnPropertyDescriptor(q, Y);
            if (B === void 0) {
              var H = Object.getPrototypeOf(q);
              return H === null ? void 0 : R(H, Y, Q);
            } else {
              if ("value" in B)
                return B.value;
              var Z = B.get;
              return Z === void 0 ? void 0 : Z.call(Q);
            }
          }, l = o(3), s = L(l), u = o(2), c = L(u), d = o(8), f = L(d), v = o(23), h = L(v), m = o(34), p = L(m), g = o(59), y = L(g), x = o(60), b = L(x), w = o(28), D = L(w), E = o(61), T = L(E);
          function L(R) {
            return R && R.__esModule ? R : { default: R };
          }
          function S(R, q) {
            if (!(R instanceof q))
              throw new TypeError("Cannot call a class as a function");
          }
          function A(R, q) {
            if (!R)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return q && (typeof q == "object" || typeof q == "function") ? q : R;
          }
          function C(R, q) {
            if (typeof q != "function" && q !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof q);
            R.prototype = Object.create(q && q.prototype, { constructor: { value: R, enumerable: !1, writable: !0, configurable: !0 } }), q && (Object.setPrototypeOf ? Object.setPrototypeOf(R, q) : R.__proto__ = q);
          }
          var k = [!1, "center", "right", "justify"], I = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], N = [!1, "serif", "monospace"], F = ["1", "2", "3", !1], V = ["small", !1, "large", "huge"], G = function(R) {
            C(q, R);
            function q(Y, Q) {
              S(this, q);
              var B = A(this, (q.__proto__ || Object.getPrototypeOf(q)).call(this, Y, Q)), H = function Z(_) {
                if (!document.body.contains(Y.root))
                  return document.body.removeEventListener("click", Z);
                B.tooltip != null && !B.tooltip.root.contains(_.target) && document.activeElement !== B.tooltip.textbox && !B.quill.hasFocus() && B.tooltip.hide(), B.pickers != null && B.pickers.forEach(function(re) {
                  re.container.contains(_.target) || re.close();
                });
              };
              return Y.emitter.listenDOM("click", document.body, H), B;
            }
            return a(q, [{
              key: "addModule",
              value: function(Q) {
                var B = i(q.prototype.__proto__ || Object.getPrototypeOf(q.prototype), "addModule", this).call(this, Q);
                return Q === "toolbar" && this.extendToolbar(B), B;
              }
            }, {
              key: "buildButtons",
              value: function(Q, B) {
                Q.forEach(function(H) {
                  var Z = H.getAttribute("class") || "";
                  Z.split(/\s+/).forEach(function(_) {
                    if (_.startsWith("ql-") && (_ = _.slice(3), B[_] != null))
                      if (_ === "direction")
                        H.innerHTML = B[_][""] + B[_].rtl;
                      else if (typeof B[_] == "string")
                        H.innerHTML = B[_];
                      else {
                        var re = H.value || "";
                        re != null && B[_][re] && (H.innerHTML = B[_][re]);
                      }
                  });
                });
              }
            }, {
              key: "buildPickers",
              value: function(Q, B) {
                var H = this;
                this.pickers = Q.map(function(_) {
                  if (_.classList.contains("ql-align"))
                    return _.querySelector("option") == null && P(_, k), new b.default(_, B.align);
                  if (_.classList.contains("ql-background") || _.classList.contains("ql-color")) {
                    var re = _.classList.contains("ql-background") ? "background" : "color";
                    return _.querySelector("option") == null && P(_, I, re === "background" ? "#ffffff" : "#000000"), new y.default(_, B[re]);
                  } else
                    return _.querySelector("option") == null && (_.classList.contains("ql-font") ? P(_, N) : _.classList.contains("ql-header") ? P(_, F) : _.classList.contains("ql-size") && P(_, V)), new D.default(_);
                });
                var Z = function() {
                  H.pickers.forEach(function(re) {
                    re.update();
                  });
                };
                this.quill.on(f.default.events.EDITOR_CHANGE, Z);
              }
            }]), q;
          }(p.default);
          G.DEFAULTS = (0, s.default)(!0, {}, p.default.DEFAULTS, {
            modules: {
              toolbar: {
                handlers: {
                  formula: function() {
                    this.quill.theme.tooltip.edit("formula");
                  },
                  image: function() {
                    var q = this, Y = this.container.querySelector("input.ql-image[type=file]");
                    Y == null && (Y = document.createElement("input"), Y.setAttribute("type", "file"), Y.setAttribute("accept", "image/png, image/gif, image/jpeg, image/bmp, image/x-icon"), Y.classList.add("ql-image"), Y.addEventListener("change", function() {
                      if (Y.files != null && Y.files[0] != null) {
                        var Q = new FileReader();
                        Q.onload = function(B) {
                          var H = q.quill.getSelection(!0);
                          q.quill.updateContents(new c.default().retain(H.index).delete(H.length).insert({ image: B.target.result }), f.default.sources.USER), q.quill.setSelection(H.index + 1, f.default.sources.SILENT), Y.value = "";
                        }, Q.readAsDataURL(Y.files[0]);
                      }
                    }), this.container.appendChild(Y)), Y.click();
                  },
                  video: function() {
                    this.quill.theme.tooltip.edit("video");
                  }
                }
              }
            }
          });
          var z = function(R) {
            C(q, R);
            function q(Y, Q) {
              S(this, q);
              var B = A(this, (q.__proto__ || Object.getPrototypeOf(q)).call(this, Y, Q));
              return B.textbox = B.root.querySelector('input[type="text"]'), B.listen(), B;
            }
            return a(q, [{
              key: "listen",
              value: function() {
                var Q = this;
                this.textbox.addEventListener("keydown", function(B) {
                  h.default.match(B, "enter") ? (Q.save(), B.preventDefault()) : h.default.match(B, "escape") && (Q.cancel(), B.preventDefault());
                });
              }
            }, {
              key: "cancel",
              value: function() {
                this.hide();
              }
            }, {
              key: "edit",
              value: function() {
                var Q = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "link", B = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
                this.root.classList.remove("ql-hidden"), this.root.classList.add("ql-editing"), B != null ? this.textbox.value = B : Q !== this.root.getAttribute("data-mode") && (this.textbox.value = ""), this.position(this.quill.getBounds(this.quill.selection.savedRange)), this.textbox.select(), this.textbox.setAttribute("placeholder", this.textbox.getAttribute("data-" + Q) || ""), this.root.setAttribute("data-mode", Q);
              }
            }, {
              key: "restoreFocus",
              value: function() {
                var Q = this.quill.scrollingContainer.scrollTop;
                this.quill.focus(), this.quill.scrollingContainer.scrollTop = Q;
              }
            }, {
              key: "save",
              value: function() {
                var Q = this.textbox.value;
                switch (this.root.getAttribute("data-mode")) {
                  case "link": {
                    var B = this.quill.root.scrollTop;
                    this.linkRange ? (this.quill.formatText(this.linkRange, "link", Q, f.default.sources.USER), delete this.linkRange) : (this.restoreFocus(), this.quill.format("link", Q, f.default.sources.USER)), this.quill.root.scrollTop = B;
                    break;
                  }
                  case "video":
                    Q = M(Q);
                  case "formula": {
                    if (!Q)
                      break;
                    var H = this.quill.getSelection(!0);
                    if (H != null) {
                      var Z = H.index + H.length;
                      this.quill.insertEmbed(Z, this.root.getAttribute("data-mode"), Q, f.default.sources.USER), this.root.getAttribute("data-mode") === "formula" && this.quill.insertText(Z + 1, " ", f.default.sources.USER), this.quill.setSelection(Z + 2, f.default.sources.USER);
                    }
                    break;
                  }
                }
                this.textbox.value = "", this.hide();
              }
            }]), q;
          }(T.default);
          function M(R) {
            var q = R.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || R.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
            return q ? (q[1] || "https") + "://www.youtube.com/embed/" + q[2] + "?showinfo=0" : (q = R.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (q[1] || "https") + "://player.vimeo.com/video/" + q[2] + "/" : R;
          }
          function P(R, q) {
            var Y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
            q.forEach(function(Q) {
              var B = document.createElement("option");
              Q === Y ? B.setAttribute("selected", "selected") : B.setAttribute("value", Q), R.appendChild(B);
            });
          }
          r.BaseTooltip = z, r.default = G;
        },
        /* 44 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", { value: !0 });
          var a = (
            /** @class */
            function() {
              function i() {
                this.head = this.tail = null, this.length = 0;
              }
              return i.prototype.append = function() {
                for (var l = [], s = 0; s < arguments.length; s++)
                  l[s] = arguments[s];
                this.insertBefore(l[0], null), l.length > 1 && this.append.apply(this, l.slice(1));
              }, i.prototype.contains = function(l) {
                for (var s, u = this.iterator(); s = u(); )
                  if (s === l)
                    return !0;
                return !1;
              }, i.prototype.insertBefore = function(l, s) {
                l && (l.next = s, s != null ? (l.prev = s.prev, s.prev != null && (s.prev.next = l), s.prev = l, s === this.head && (this.head = l)) : this.tail != null ? (this.tail.next = l, l.prev = this.tail, this.tail = l) : (l.prev = null, this.head = this.tail = l), this.length += 1);
              }, i.prototype.offset = function(l) {
                for (var s = 0, u = this.head; u != null; ) {
                  if (u === l)
                    return s;
                  s += u.length(), u = u.next;
                }
                return -1;
              }, i.prototype.remove = function(l) {
                this.contains(l) && (l.prev != null && (l.prev.next = l.next), l.next != null && (l.next.prev = l.prev), l === this.head && (this.head = l.next), l === this.tail && (this.tail = l.prev), this.length -= 1);
              }, i.prototype.iterator = function(l) {
                return l === void 0 && (l = this.head), function() {
                  var s = l;
                  return l != null && (l = l.next), s;
                };
              }, i.prototype.find = function(l, s) {
                s === void 0 && (s = !1);
                for (var u, c = this.iterator(); u = c(); ) {
                  var d = u.length();
                  if (l < d || s && l === d && (u.next == null || u.next.length() !== 0))
                    return [u, l];
                  l -= d;
                }
                return [null, 0];
              }, i.prototype.forEach = function(l) {
                for (var s, u = this.iterator(); s = u(); )
                  l(s);
              }, i.prototype.forEachAt = function(l, s, u) {
                if (!(s <= 0))
                  for (var c = this.find(l), d = c[0], f = c[1], v, h = l - f, m = this.iterator(d); (v = m()) && h < l + s; ) {
                    var p = v.length();
                    l > h ? u(v, l - h, Math.min(s, h + p - l)) : u(v, 0, Math.min(p, l + s - h)), h += p;
                  }
              }, i.prototype.map = function(l) {
                return this.reduce(function(s, u) {
                  return s.push(l(u)), s;
                }, []);
              }, i.prototype.reduce = function(l, s) {
                for (var u, c = this.iterator(); u = c(); )
                  s = l(s, u);
                return s;
              }, i;
            }()
          );
          r.default = a;
        },
        /* 45 */
        /***/
        function(n, r, o) {
          var a = this && this.__extends || function() {
            var d = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(f, v) {
              f.__proto__ = v;
            } || function(f, v) {
              for (var h in v)
                v.hasOwnProperty(h) && (f[h] = v[h]);
            };
            return function(f, v) {
              d(f, v);
              function h() {
                this.constructor = f;
              }
              f.prototype = v === null ? Object.create(v) : (h.prototype = v.prototype, new h());
            };
          }();
          Object.defineProperty(r, "__esModule", { value: !0 });
          var i = o(17), l = o(1), s = {
            attributes: !0,
            characterData: !0,
            characterDataOldValue: !0,
            childList: !0,
            subtree: !0
          }, u = 100, c = (
            /** @class */
            function(d) {
              a(f, d);
              function f(v) {
                var h = d.call(this, v) || this;
                return h.scroll = h, h.observer = new MutationObserver(function(m) {
                  h.update(m);
                }), h.observer.observe(h.domNode, s), h.attach(), h;
              }
              return f.prototype.detach = function() {
                d.prototype.detach.call(this), this.observer.disconnect();
              }, f.prototype.deleteAt = function(v, h) {
                this.update(), v === 0 && h === this.length() ? this.children.forEach(function(m) {
                  m.remove();
                }) : d.prototype.deleteAt.call(this, v, h);
              }, f.prototype.formatAt = function(v, h, m, p) {
                this.update(), d.prototype.formatAt.call(this, v, h, m, p);
              }, f.prototype.insertAt = function(v, h, m) {
                this.update(), d.prototype.insertAt.call(this, v, h, m);
              }, f.prototype.optimize = function(v, h) {
                var m = this;
                v === void 0 && (v = []), h === void 0 && (h = {}), d.prototype.optimize.call(this, h);
                for (var p = [].slice.call(this.observer.takeRecords()); p.length > 0; )
                  v.push(p.pop());
                for (var g = function(w, D) {
                  D === void 0 && (D = !0), !(w == null || w === m) && w.domNode.parentNode != null && (w.domNode[l.DATA_KEY].mutations == null && (w.domNode[l.DATA_KEY].mutations = []), D && g(w.parent));
                }, y = function(w) {
                  // @ts-ignore
                  w.domNode[l.DATA_KEY] == null || // @ts-ignore
                  w.domNode[l.DATA_KEY].mutations == null || (w instanceof i.default && w.children.forEach(y), w.optimize(h));
                }, x = v, b = 0; x.length > 0; b += 1) {
                  if (b >= u)
                    throw new Error("[Parchment] Maximum optimize iterations reached");
                  for (x.forEach(function(w) {
                    var D = l.find(w.target, !0);
                    D != null && (D.domNode === w.target && (w.type === "childList" ? (g(l.find(w.previousSibling, !1)), [].forEach.call(w.addedNodes, function(E) {
                      var T = l.find(E, !1);
                      g(T, !1), T instanceof i.default && T.children.forEach(function(L) {
                        g(L, !1);
                      });
                    })) : w.type === "attributes" && g(D.prev)), g(D));
                  }), this.children.forEach(y), x = [].slice.call(this.observer.takeRecords()), p = x.slice(); p.length > 0; )
                    v.push(p.pop());
                }
              }, f.prototype.update = function(v, h) {
                var m = this;
                h === void 0 && (h = {}), v = v || this.observer.takeRecords(), v.map(function(p) {
                  var g = l.find(p.target, !0);
                  return g == null ? null : g.domNode[l.DATA_KEY].mutations == null ? (g.domNode[l.DATA_KEY].mutations = [p], g) : (g.domNode[l.DATA_KEY].mutations.push(p), null);
                }).forEach(function(p) {
                  p == null || p === m || //@ts-ignore
                  p.domNode[l.DATA_KEY] == null || p.update(p.domNode[l.DATA_KEY].mutations || [], h);
                }), this.domNode[l.DATA_KEY].mutations != null && d.prototype.update.call(this, this.domNode[l.DATA_KEY].mutations, h), this.optimize(v, h);
              }, f.blotName = "scroll", f.defaultChild = "block", f.scope = l.Scope.BLOCK_BLOT, f.tagName = "DIV", f;
            }(i.default)
          );
          r.default = c;
        },
        /* 46 */
        /***/
        function(n, r, o) {
          var a = this && this.__extends || function() {
            var c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, f) {
              d.__proto__ = f;
            } || function(d, f) {
              for (var v in f)
                f.hasOwnProperty(v) && (d[v] = f[v]);
            };
            return function(d, f) {
              c(d, f);
              function v() {
                this.constructor = d;
              }
              d.prototype = f === null ? Object.create(f) : (v.prototype = f.prototype, new v());
            };
          }();
          Object.defineProperty(r, "__esModule", { value: !0 });
          var i = o(18), l = o(1);
          function s(c, d) {
            if (Object.keys(c).length !== Object.keys(d).length)
              return !1;
            for (var f in c)
              if (c[f] !== d[f])
                return !1;
            return !0;
          }
          var u = (
            /** @class */
            function(c) {
              a(d, c);
              function d() {
                return c !== null && c.apply(this, arguments) || this;
              }
              return d.formats = function(f) {
                if (f.tagName !== d.tagName)
                  return c.formats.call(this, f);
              }, d.prototype.format = function(f, v) {
                var h = this;
                f === this.statics.blotName && !v ? (this.children.forEach(function(m) {
                  m instanceof i.default || (m = m.wrap(d.blotName, !0)), h.attributes.copy(m);
                }), this.unwrap()) : c.prototype.format.call(this, f, v);
              }, d.prototype.formatAt = function(f, v, h, m) {
                if (this.formats()[h] != null || l.query(h, l.Scope.ATTRIBUTE)) {
                  var p = this.isolate(f, v);
                  p.format(h, m);
                } else
                  c.prototype.formatAt.call(this, f, v, h, m);
              }, d.prototype.optimize = function(f) {
                c.prototype.optimize.call(this, f);
                var v = this.formats();
                if (Object.keys(v).length === 0)
                  return this.unwrap();
                var h = this.next;
                h instanceof d && h.prev === this && s(v, h.formats()) && (h.moveChildren(this), h.remove());
              }, d.blotName = "inline", d.scope = l.Scope.INLINE_BLOT, d.tagName = "SPAN", d;
            }(i.default)
          );
          r.default = u;
        },
        /* 47 */
        /***/
        function(n, r, o) {
          var a = this && this.__extends || function() {
            var u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, d) {
              c.__proto__ = d;
            } || function(c, d) {
              for (var f in d)
                d.hasOwnProperty(f) && (c[f] = d[f]);
            };
            return function(c, d) {
              u(c, d);
              function f() {
                this.constructor = c;
              }
              c.prototype = d === null ? Object.create(d) : (f.prototype = d.prototype, new f());
            };
          }();
          Object.defineProperty(r, "__esModule", { value: !0 });
          var i = o(18), l = o(1), s = (
            /** @class */
            function(u) {
              a(c, u);
              function c() {
                return u !== null && u.apply(this, arguments) || this;
              }
              return c.formats = function(d) {
                var f = l.query(c.blotName).tagName;
                if (d.tagName !== f)
                  return u.formats.call(this, d);
              }, c.prototype.format = function(d, f) {
                l.query(d, l.Scope.BLOCK) != null && (d === this.statics.blotName && !f ? this.replaceWith(c.blotName) : u.prototype.format.call(this, d, f));
              }, c.prototype.formatAt = function(d, f, v, h) {
                l.query(v, l.Scope.BLOCK) != null ? this.format(v, h) : u.prototype.formatAt.call(this, d, f, v, h);
              }, c.prototype.insertAt = function(d, f, v) {
                if (v == null || l.query(f, l.Scope.INLINE) != null)
                  u.prototype.insertAt.call(this, d, f, v);
                else {
                  var h = this.split(d), m = l.create(f, v);
                  h.parent.insertBefore(m, h);
                }
              }, c.prototype.update = function(d, f) {
                navigator.userAgent.match(/Trident/) ? this.build() : u.prototype.update.call(this, d, f);
              }, c.blotName = "block", c.scope = l.Scope.BLOCK_BLOT, c.tagName = "P", c;
            }(i.default)
          );
          r.default = s;
        },
        /* 48 */
        /***/
        function(n, r, o) {
          var a = this && this.__extends || function() {
            var s = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, c) {
              u.__proto__ = c;
            } || function(u, c) {
              for (var d in c)
                c.hasOwnProperty(d) && (u[d] = c[d]);
            };
            return function(u, c) {
              s(u, c);
              function d() {
                this.constructor = u;
              }
              u.prototype = c === null ? Object.create(c) : (d.prototype = c.prototype, new d());
            };
          }();
          Object.defineProperty(r, "__esModule", { value: !0 });
          var i = o(19), l = (
            /** @class */
            function(s) {
              a(u, s);
              function u() {
                return s !== null && s.apply(this, arguments) || this;
              }
              return u.formats = function(c) {
              }, u.prototype.format = function(c, d) {
                s.prototype.formatAt.call(this, 0, this.length(), c, d);
              }, u.prototype.formatAt = function(c, d, f, v) {
                c === 0 && d === this.length() ? this.format(f, v) : s.prototype.formatAt.call(this, c, d, f, v);
              }, u.prototype.formats = function() {
                return this.statics.formats(this.domNode);
              }, u;
            }(i.default)
          );
          r.default = l;
        },
        /* 49 */
        /***/
        function(n, r, o) {
          var a = this && this.__extends || function() {
            var u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, d) {
              c.__proto__ = d;
            } || function(c, d) {
              for (var f in d)
                d.hasOwnProperty(f) && (c[f] = d[f]);
            };
            return function(c, d) {
              u(c, d);
              function f() {
                this.constructor = c;
              }
              c.prototype = d === null ? Object.create(d) : (f.prototype = d.prototype, new f());
            };
          }();
          Object.defineProperty(r, "__esModule", { value: !0 });
          var i = o(19), l = o(1), s = (
            /** @class */
            function(u) {
              a(c, u);
              function c(d) {
                var f = u.call(this, d) || this;
                return f.text = f.statics.value(f.domNode), f;
              }
              return c.create = function(d) {
                return document.createTextNode(d);
              }, c.value = function(d) {
                var f = d.data;
                return f.normalize && (f = f.normalize()), f;
              }, c.prototype.deleteAt = function(d, f) {
                this.domNode.data = this.text = this.text.slice(0, d) + this.text.slice(d + f);
              }, c.prototype.index = function(d, f) {
                return this.domNode === d ? f : -1;
              }, c.prototype.insertAt = function(d, f, v) {
                v == null ? (this.text = this.text.slice(0, d) + f + this.text.slice(d), this.domNode.data = this.text) : u.prototype.insertAt.call(this, d, f, v);
              }, c.prototype.length = function() {
                return this.text.length;
              }, c.prototype.optimize = function(d) {
                u.prototype.optimize.call(this, d), this.text = this.statics.value(this.domNode), this.text.length === 0 ? this.remove() : this.next instanceof c && this.next.prev === this && (this.insertAt(this.length(), this.next.value()), this.next.remove());
              }, c.prototype.position = function(d, f) {
                return [this.domNode, d];
              }, c.prototype.split = function(d, f) {
                if (f === void 0 && (f = !1), !f) {
                  if (d === 0)
                    return this;
                  if (d === this.length())
                    return this.next;
                }
                var v = l.create(this.domNode.splitText(d));
                return this.parent.insertBefore(v, this.next), this.text = this.statics.value(this.domNode), v;
              }, c.prototype.update = function(d, f) {
                var v = this;
                d.some(function(h) {
                  return h.type === "characterData" && h.target === v.domNode;
                }) && (this.text = this.statics.value(this.domNode));
              }, c.prototype.value = function() {
                return this.text;
              }, c.blotName = "text", c.scope = l.Scope.INLINE_BLOT, c;
            }(i.default)
          );
          r.default = s;
        },
        /* 50 */
        /***/
        function(n, r, o) {
          var a = document.createElement("div");
          if (a.classList.toggle("test-class", !1), a.classList.contains("test-class")) {
            var i = DOMTokenList.prototype.toggle;
            DOMTokenList.prototype.toggle = function(l, s) {
              return arguments.length > 1 && !this.contains(l) == !s ? s : i.call(this, l);
            };
          }
          String.prototype.startsWith || (String.prototype.startsWith = function(l, s) {
            return s = s || 0, this.substr(s, l.length) === l;
          }), String.prototype.endsWith || (String.prototype.endsWith = function(l, s) {
            var u = this.toString();
            (typeof s != "number" || !isFinite(s) || Math.floor(s) !== s || s > u.length) && (s = u.length), s -= l.length;
            var c = u.indexOf(l, s);
            return c !== -1 && c === s;
          }), Array.prototype.find || Object.defineProperty(Array.prototype, "find", {
            value: function(s) {
              if (this === null)
                throw new TypeError("Array.prototype.find called on null or undefined");
              if (typeof s != "function")
                throw new TypeError("predicate must be a function");
              for (var u = Object(this), c = u.length >>> 0, d = arguments[1], f, v = 0; v < c; v++)
                if (f = u[v], s.call(d, f, v, u))
                  return f;
            }
          }), document.addEventListener("DOMContentLoaded", function() {
            document.execCommand("enableObjectResizing", !1, !1), document.execCommand("autoUrlDetect", !1, !1);
          });
        },
        /* 51 */
        /***/
        function(n, r) {
          var o = -1, a = 1, i = 0;
          function l(b, w, D) {
            if (b == w)
              return b ? [[i, b]] : [];
            (D < 0 || b.length < D) && (D = null);
            var E = d(b, w), T = b.substring(0, E);
            b = b.substring(E), w = w.substring(E), E = f(b, w);
            var L = b.substring(b.length - E);
            b = b.substring(0, b.length - E), w = w.substring(0, w.length - E);
            var S = s(b, w);
            return T && S.unshift([i, T]), L && S.push([i, L]), h(S), D != null && (S = g(S, D)), S = y(S), S;
          }
          function s(b, w) {
            var D;
            if (!b)
              return [[a, w]];
            if (!w)
              return [[o, b]];
            var E = b.length > w.length ? b : w, T = b.length > w.length ? w : b, L = E.indexOf(T);
            if (L != -1)
              return D = [
                [a, E.substring(0, L)],
                [i, T],
                [a, E.substring(L + T.length)]
              ], b.length > w.length && (D[0][0] = D[2][0] = o), D;
            if (T.length == 1)
              return [[o, b], [a, w]];
            var S = v(b, w);
            if (S) {
              var A = S[0], C = S[1], k = S[2], I = S[3], N = S[4], F = l(A, k), V = l(C, I);
              return F.concat([[i, N]], V);
            }
            return u(b, w);
          }
          function u(b, w) {
            for (var D = b.length, E = w.length, T = Math.ceil((D + E) / 2), L = T, S = 2 * T, A = new Array(S), C = new Array(S), k = 0; k < S; k++)
              A[k] = -1, C[k] = -1;
            A[L + 1] = 0, C[L + 1] = 0;
            for (var I = D - E, N = I % 2 != 0, F = 0, V = 0, G = 0, z = 0, M = 0; M < T; M++) {
              for (var P = -M + F; P <= M - V; P += 2) {
                var R = L + P, q;
                P == -M || P != M && A[R - 1] < A[R + 1] ? q = A[R + 1] : q = A[R - 1] + 1;
                for (var Y = q - P; q < D && Y < E && b.charAt(q) == w.charAt(Y); )
                  q++, Y++;
                if (A[R] = q, q > D)
                  V += 2;
                else if (Y > E)
                  F += 2;
                else if (N) {
                  var Q = L + I - P;
                  if (Q >= 0 && Q < S && C[Q] != -1) {
                    var B = D - C[Q];
                    if (q >= B)
                      return c(b, w, q, Y);
                  }
                }
              }
              for (var H = -M + G; H <= M - z; H += 2) {
                var Q = L + H, B;
                H == -M || H != M && C[Q - 1] < C[Q + 1] ? B = C[Q + 1] : B = C[Q - 1] + 1;
                for (var Z = B - H; B < D && Z < E && b.charAt(D - B - 1) == w.charAt(E - Z - 1); )
                  B++, Z++;
                if (C[Q] = B, B > D)
                  z += 2;
                else if (Z > E)
                  G += 2;
                else if (!N) {
                  var R = L + I - H;
                  if (R >= 0 && R < S && A[R] != -1) {
                    var q = A[R], Y = L + q - R;
                    if (B = D - B, q >= B)
                      return c(b, w, q, Y);
                  }
                }
              }
            }
            return [[o, b], [a, w]];
          }
          function c(b, w, D, E) {
            var T = b.substring(0, D), L = w.substring(0, E), S = b.substring(D), A = w.substring(E), C = l(T, L), k = l(S, A);
            return C.concat(k);
          }
          function d(b, w) {
            if (!b || !w || b.charAt(0) != w.charAt(0))
              return 0;
            for (var D = 0, E = Math.min(b.length, w.length), T = E, L = 0; D < T; )
              b.substring(L, T) == w.substring(L, T) ? (D = T, L = D) : E = T, T = Math.floor((E - D) / 2 + D);
            return T;
          }
          function f(b, w) {
            if (!b || !w || b.charAt(b.length - 1) != w.charAt(w.length - 1))
              return 0;
            for (var D = 0, E = Math.min(b.length, w.length), T = E, L = 0; D < T; )
              b.substring(b.length - T, b.length - L) == w.substring(w.length - T, w.length - L) ? (D = T, L = D) : E = T, T = Math.floor((E - D) / 2 + D);
            return T;
          }
          function v(b, w) {
            var D = b.length > w.length ? b : w, E = b.length > w.length ? w : b;
            if (D.length < 4 || E.length * 2 < D.length)
              return null;
            function T(V, G, z) {
              for (var M = V.substring(z, z + Math.floor(V.length / 4)), P = -1, R = "", q, Y, Q, B; (P = G.indexOf(M, P + 1)) != -1; ) {
                var H = d(
                  V.substring(z),
                  G.substring(P)
                ), Z = f(
                  V.substring(0, z),
                  G.substring(0, P)
                );
                R.length < Z + H && (R = G.substring(P - Z, P) + G.substring(P, P + H), q = V.substring(0, z - Z), Y = V.substring(z + H), Q = G.substring(0, P - Z), B = G.substring(P + H));
              }
              return R.length * 2 >= V.length ? [
                q,
                Y,
                Q,
                B,
                R
              ] : null;
            }
            var L = T(
              D,
              E,
              Math.ceil(D.length / 4)
            ), S = T(
              D,
              E,
              Math.ceil(D.length / 2)
            ), A;
            if (!L && !S)
              return null;
            S ? L ? A = L[4].length > S[4].length ? L : S : A = S : A = L;
            var C, k, I, N;
            b.length > w.length ? (C = A[0], k = A[1], I = A[2], N = A[3]) : (I = A[0], N = A[1], C = A[2], k = A[3]);
            var F = A[4];
            return [C, k, I, N, F];
          }
          function h(b) {
            b.push([i, ""]);
            for (var w = 0, D = 0, E = 0, T = "", L = "", S; w < b.length; )
              switch (b[w][0]) {
                case a:
                  E++, L += b[w][1], w++;
                  break;
                case o:
                  D++, T += b[w][1], w++;
                  break;
                case i:
                  D + E > 1 ? (D !== 0 && E !== 0 && (S = d(L, T), S !== 0 && (w - D - E > 0 && b[w - D - E - 1][0] == i ? b[w - D - E - 1][1] += L.substring(0, S) : (b.splice(0, 0, [
                    i,
                    L.substring(0, S)
                  ]), w++), L = L.substring(S), T = T.substring(S)), S = f(L, T), S !== 0 && (b[w][1] = L.substring(L.length - S) + b[w][1], L = L.substring(0, L.length - S), T = T.substring(0, T.length - S))), D === 0 ? b.splice(
                    w - E,
                    D + E,
                    [a, L]
                  ) : E === 0 ? b.splice(
                    w - D,
                    D + E,
                    [o, T]
                  ) : b.splice(
                    w - D - E,
                    D + E,
                    [o, T],
                    [a, L]
                  ), w = w - D - E + (D ? 1 : 0) + (E ? 1 : 0) + 1) : w !== 0 && b[w - 1][0] == i ? (b[w - 1][1] += b[w][1], b.splice(w, 1)) : w++, E = 0, D = 0, T = "", L = "";
                  break;
              }
            b[b.length - 1][1] === "" && b.pop();
            var A = !1;
            for (w = 1; w < b.length - 1; )
              b[w - 1][0] == i && b[w + 1][0] == i && (b[w][1].substring(b[w][1].length - b[w - 1][1].length) == b[w - 1][1] ? (b[w][1] = b[w - 1][1] + b[w][1].substring(0, b[w][1].length - b[w - 1][1].length), b[w + 1][1] = b[w - 1][1] + b[w + 1][1], b.splice(w - 1, 1), A = !0) : b[w][1].substring(0, b[w + 1][1].length) == b[w + 1][1] && (b[w - 1][1] += b[w + 1][1], b[w][1] = b[w][1].substring(b[w + 1][1].length) + b[w + 1][1], b.splice(w + 1, 1), A = !0)), w++;
            A && h(b);
          }
          var m = l;
          m.INSERT = a, m.DELETE = o, m.EQUAL = i, n.exports = m;
          function p(b, w) {
            if (w === 0)
              return [i, b];
            for (var D = 0, E = 0; E < b.length; E++) {
              var T = b[E];
              if (T[0] === o || T[0] === i) {
                var L = D + T[1].length;
                if (w === L)
                  return [E + 1, b];
                if (w < L) {
                  b = b.slice();
                  var S = w - D, A = [T[0], T[1].slice(0, S)], C = [T[0], T[1].slice(S)];
                  return b.splice(E, 1, A, C), [E + 1, b];
                } else
                  D = L;
              }
            }
            throw new Error("cursor_pos is out of bounds!");
          }
          function g(b, w) {
            var D = p(b, w), E = D[1], T = D[0], L = E[T], S = E[T + 1];
            if (L == null)
              return b;
            if (L[0] !== i)
              return b;
            if (S != null && L[1] + S[1] === S[1] + L[1])
              return E.splice(T, 2, S, L), x(E, T, 2);
            if (S != null && S[1].indexOf(L[1]) === 0) {
              E.splice(T, 2, [S[0], L[1]], [0, L[1]]);
              var A = S[1].slice(L[1].length);
              return A.length > 0 && E.splice(T + 2, 0, [S[0], A]), x(E, T, 3);
            } else
              return b;
          }
          function y(b) {
            for (var w = !1, D = function(S) {
              return S.charCodeAt(0) >= 56320 && S.charCodeAt(0) <= 57343;
            }, E = function(S) {
              return S.charCodeAt(S.length - 1) >= 55296 && S.charCodeAt(S.length - 1) <= 56319;
            }, T = 2; T < b.length; T += 1)
              b[T - 2][0] === i && E(b[T - 2][1]) && b[T - 1][0] === o && D(b[T - 1][1]) && b[T][0] === a && D(b[T][1]) && (w = !0, b[T - 1][1] = b[T - 2][1].slice(-1) + b[T - 1][1], b[T][1] = b[T - 2][1].slice(-1) + b[T][1], b[T - 2][1] = b[T - 2][1].slice(0, -1));
            if (!w)
              return b;
            for (var L = [], T = 0; T < b.length; T += 1)
              b[T][1].length > 0 && L.push(b[T]);
            return L;
          }
          function x(b, w, D) {
            for (var E = w + D - 1; E >= 0 && E >= w - 1; E--)
              if (E + 1 < b.length) {
                var T = b[E], L = b[E + 1];
                T[0] === L[1] && b.splice(E, 2, [T[0], T[1] + L[1]]);
              }
            return b;
          }
        },
        /* 52 */
        /***/
        function(n, r) {
          r = n.exports = typeof Object.keys == "function" ? Object.keys : o, r.shim = o;
          function o(a) {
            var i = [];
            for (var l in a)
              i.push(l);
            return i;
          }
        },
        /* 53 */
        /***/
        function(n, r) {
          var o = function() {
            return Object.prototype.toString.call(arguments);
          }() == "[object Arguments]";
          r = n.exports = o ? a : i, r.supported = a;
          function a(l) {
            return Object.prototype.toString.call(l) == "[object Arguments]";
          }
          r.unsupported = i;
          function i(l) {
            return l && typeof l == "object" && typeof l.length == "number" && Object.prototype.hasOwnProperty.call(l, "callee") && !Object.prototype.propertyIsEnumerable.call(l, "callee") || !1;
          }
        },
        /* 54 */
        /***/
        function(n, r) {
          var o = Object.prototype.hasOwnProperty, a = "~";
          function i() {
          }
          Object.create && (i.prototype = /* @__PURE__ */ Object.create(null), new i().__proto__ || (a = !1));
          function l(u, c, d) {
            this.fn = u, this.context = c, this.once = d || !1;
          }
          function s() {
            this._events = new i(), this._eventsCount = 0;
          }
          s.prototype.eventNames = function() {
            var c = [], d, f;
            if (this._eventsCount === 0)
              return c;
            for (f in d = this._events)
              o.call(d, f) && c.push(a ? f.slice(1) : f);
            return Object.getOwnPropertySymbols ? c.concat(Object.getOwnPropertySymbols(d)) : c;
          }, s.prototype.listeners = function(c, d) {
            var f = a ? a + c : c, v = this._events[f];
            if (d)
              return !!v;
            if (!v)
              return [];
            if (v.fn)
              return [v.fn];
            for (var h = 0, m = v.length, p = new Array(m); h < m; h++)
              p[h] = v[h].fn;
            return p;
          }, s.prototype.emit = function(c, d, f, v, h, m) {
            var p = a ? a + c : c;
            if (!this._events[p])
              return !1;
            var g = this._events[p], y = arguments.length, x, b;
            if (g.fn) {
              switch (g.once && this.removeListener(c, g.fn, void 0, !0), y) {
                case 1:
                  return g.fn.call(g.context), !0;
                case 2:
                  return g.fn.call(g.context, d), !0;
                case 3:
                  return g.fn.call(g.context, d, f), !0;
                case 4:
                  return g.fn.call(g.context, d, f, v), !0;
                case 5:
                  return g.fn.call(g.context, d, f, v, h), !0;
                case 6:
                  return g.fn.call(g.context, d, f, v, h, m), !0;
              }
              for (b = 1, x = new Array(y - 1); b < y; b++)
                x[b - 1] = arguments[b];
              g.fn.apply(g.context, x);
            } else {
              var w = g.length, D;
              for (b = 0; b < w; b++)
                switch (g[b].once && this.removeListener(c, g[b].fn, void 0, !0), y) {
                  case 1:
                    g[b].fn.call(g[b].context);
                    break;
                  case 2:
                    g[b].fn.call(g[b].context, d);
                    break;
                  case 3:
                    g[b].fn.call(g[b].context, d, f);
                    break;
                  case 4:
                    g[b].fn.call(g[b].context, d, f, v);
                    break;
                  default:
                    if (!x)
                      for (D = 1, x = new Array(y - 1); D < y; D++)
                        x[D - 1] = arguments[D];
                    g[b].fn.apply(g[b].context, x);
                }
            }
            return !0;
          }, s.prototype.on = function(c, d, f) {
            var v = new l(d, f || this), h = a ? a + c : c;
            return this._events[h] ? this._events[h].fn ? this._events[h] = [this._events[h], v] : this._events[h].push(v) : (this._events[h] = v, this._eventsCount++), this;
          }, s.prototype.once = function(c, d, f) {
            var v = new l(d, f || this, !0), h = a ? a + c : c;
            return this._events[h] ? this._events[h].fn ? this._events[h] = [this._events[h], v] : this._events[h].push(v) : (this._events[h] = v, this._eventsCount++), this;
          }, s.prototype.removeListener = function(c, d, f, v) {
            var h = a ? a + c : c;
            if (!this._events[h])
              return this;
            if (!d)
              return --this._eventsCount === 0 ? this._events = new i() : delete this._events[h], this;
            var m = this._events[h];
            if (m.fn)
              m.fn === d && (!v || m.once) && (!f || m.context === f) && (--this._eventsCount === 0 ? this._events = new i() : delete this._events[h]);
            else {
              for (var p = 0, g = [], y = m.length; p < y; p++)
                (m[p].fn !== d || v && !m[p].once || f && m[p].context !== f) && g.push(m[p]);
              g.length ? this._events[h] = g.length === 1 ? g[0] : g : --this._eventsCount === 0 ? this._events = new i() : delete this._events[h];
            }
            return this;
          }, s.prototype.removeAllListeners = function(c) {
            var d;
            return c ? (d = a ? a + c : c, this._events[d] && (--this._eventsCount === 0 ? this._events = new i() : delete this._events[d])) : (this._events = new i(), this._eventsCount = 0), this;
          }, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prototype.setMaxListeners = function() {
            return this;
          }, s.prefixed = a, s.EventEmitter = s, typeof n < "u" && (n.exports = s);
        },
        /* 55 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          }), r.matchText = r.matchSpacing = r.matchNewline = r.matchBlot = r.matchAttributor = r.default = void 0;
          var a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(oe) {
            return typeof oe;
          } : function(oe) {
            return oe && typeof Symbol == "function" && oe.constructor === Symbol && oe !== Symbol.prototype ? "symbol" : typeof oe;
          }, i = /* @__PURE__ */ function() {
            function oe(ie, pe) {
              var me = [], ce = !0, ke = !1, Ce = void 0;
              try {
                for (var De = ie[Symbol.iterator](), ft; !(ce = (ft = De.next()).done) && (me.push(ft.value), !(pe && me.length === pe)); ce = !0)
                  ;
              } catch (dt) {
                ke = !0, Ce = dt;
              } finally {
                try {
                  !ce && De.return && De.return();
                } finally {
                  if (ke)
                    throw Ce;
                }
              }
              return me;
            }
            return function(ie, pe) {
              if (Array.isArray(ie))
                return ie;
              if (Symbol.iterator in Object(ie))
                return oe(ie, pe);
              throw new TypeError("Invalid attempt to destructure non-iterable instance");
            };
          }(), l = /* @__PURE__ */ function() {
            function oe(ie, pe) {
              for (var me = 0; me < pe.length; me++) {
                var ce = pe[me];
                ce.enumerable = ce.enumerable || !1, ce.configurable = !0, "value" in ce && (ce.writable = !0), Object.defineProperty(ie, ce.key, ce);
              }
            }
            return function(ie, pe, me) {
              return pe && oe(ie.prototype, pe), me && oe(ie, me), ie;
            };
          }(), s = o(3), u = C(s), c = o(2), d = C(c), f = o(0), v = C(f), h = o(5), m = C(h), p = o(10), g = C(p), y = o(9), x = C(y), b = o(36), w = o(37), D = o(13), E = C(D), T = o(26), L = o(38), S = o(39), A = o(40);
          function C(oe) {
            return oe && oe.__esModule ? oe : { default: oe };
          }
          function k(oe, ie, pe) {
            return ie in oe ? Object.defineProperty(oe, ie, { value: pe, enumerable: !0, configurable: !0, writable: !0 }) : oe[ie] = pe, oe;
          }
          function I(oe, ie) {
            if (!(oe instanceof ie))
              throw new TypeError("Cannot call a class as a function");
          }
          function N(oe, ie) {
            if (!oe)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return ie && (typeof ie == "object" || typeof ie == "function") ? ie : oe;
          }
          function F(oe, ie) {
            if (typeof ie != "function" && ie !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof ie);
            oe.prototype = Object.create(ie && ie.prototype, { constructor: { value: oe, enumerable: !1, writable: !0, configurable: !0 } }), ie && (Object.setPrototypeOf ? Object.setPrototypeOf(oe, ie) : oe.__proto__ = ie);
          }
          var V = (0, g.default)("quill:clipboard"), G = "__ql-matcher", z = [[Node.TEXT_NODE, Je], [Node.TEXT_NODE, Pe], ["br", he], [Node.ELEMENT_NODE, Pe], [Node.ELEMENT_NODE, re], [Node.ELEMENT_NODE, Ve], [Node.ELEMENT_NODE, _], [Node.ELEMENT_NODE, $e], ["li", Oe], ["b", Z.bind(Z, "bold")], ["i", Z.bind(Z, "italic")], ["style", be]], M = [b.AlignAttribute, L.DirectionAttribute].reduce(function(oe, ie) {
            return oe[ie.keyName] = ie, oe;
          }, {}), P = [b.AlignStyle, w.BackgroundStyle, T.ColorStyle, L.DirectionStyle, S.FontStyle, A.SizeStyle].reduce(function(oe, ie) {
            return oe[ie.keyName] = ie, oe;
          }, {}), R = function(oe) {
            F(ie, oe);
            function ie(pe, me) {
              I(this, ie);
              var ce = N(this, (ie.__proto__ || Object.getPrototypeOf(ie)).call(this, pe, me));
              return ce.quill.root.addEventListener("paste", ce.onPaste.bind(ce)), ce.container = ce.quill.addContainer("ql-clipboard"), ce.container.setAttribute("contenteditable", !0), ce.container.setAttribute("tabindex", -1), ce.matchers = [], z.concat(ce.options.matchers).forEach(function(ke) {
                var Ce = i(ke, 2), De = Ce[0], ft = Ce[1];
                !me.matchVisual && ft === Ve || ce.addMatcher(De, ft);
              }), ce;
            }
            return l(ie, [{
              key: "addMatcher",
              value: function(me, ce) {
                this.matchers.push([me, ce]);
              }
            }, {
              key: "convert",
              value: function(me) {
                if (typeof me == "string")
                  return this.container.innerHTML = me.replace(/\>\r?\n +\</g, "><"), this.convert();
                var ce = this.quill.getFormat(this.quill.selection.savedRange.index);
                if (ce[E.default.blotName]) {
                  var ke = this.container.innerText;
                  return this.container.innerHTML = "", new d.default().insert(ke, k({}, E.default.blotName, ce[E.default.blotName]));
                }
                var Ce = this.prepareMatching(), De = i(Ce, 2), ft = De[0], dt = De[1], Ge = H(this.container, ft, dt);
                return Q(Ge, `
`) && Ge.ops[Ge.ops.length - 1].attributes == null && (Ge = Ge.compose(new d.default().retain(Ge.length() - 1).delete(1))), V.log("convert", this.container.innerHTML, Ge), this.container.innerHTML = "", Ge;
              }
            }, {
              key: "dangerouslyPasteHTML",
              value: function(me, ce) {
                var ke = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : m.default.sources.API;
                if (typeof me == "string")
                  this.quill.setContents(this.convert(me), ce), this.quill.setSelection(0, m.default.sources.SILENT);
                else {
                  var Ce = this.convert(ce);
                  this.quill.updateContents(new d.default().retain(me).concat(Ce), ke), this.quill.setSelection(me + Ce.length(), m.default.sources.SILENT);
                }
              }
            }, {
              key: "onPaste",
              value: function(me) {
                var ce = this;
                if (!(me.defaultPrevented || !this.quill.isEnabled())) {
                  var ke = this.quill.getSelection(), Ce = new d.default().retain(ke.index), De = this.quill.scrollingContainer.scrollTop;
                  this.container.focus(), this.quill.selection.update(m.default.sources.SILENT), setTimeout(function() {
                    Ce = Ce.concat(ce.convert()).delete(ke.length), ce.quill.updateContents(Ce, m.default.sources.USER), ce.quill.setSelection(Ce.length() - ke.length, m.default.sources.SILENT), ce.quill.scrollingContainer.scrollTop = De, ce.quill.focus();
                  }, 1);
                }
              }
            }, {
              key: "prepareMatching",
              value: function() {
                var me = this, ce = [], ke = [];
                return this.matchers.forEach(function(Ce) {
                  var De = i(Ce, 2), ft = De[0], dt = De[1];
                  switch (ft) {
                    case Node.TEXT_NODE:
                      ke.push(dt);
                      break;
                    case Node.ELEMENT_NODE:
                      ce.push(dt);
                      break;
                    default:
                      [].forEach.call(me.container.querySelectorAll(ft), function(Ge) {
                        Ge[G] = Ge[G] || [], Ge[G].push(dt);
                      });
                      break;
                  }
                }), [ce, ke];
              }
            }]), ie;
          }(x.default);
          R.DEFAULTS = {
            matchers: [],
            matchVisual: !0
          };
          function q(oe, ie, pe) {
            return (typeof ie > "u" ? "undefined" : a(ie)) === "object" ? Object.keys(ie).reduce(function(me, ce) {
              return q(me, ce, ie[ce]);
            }, oe) : oe.reduce(function(me, ce) {
              return ce.attributes && ce.attributes[ie] ? me.push(ce) : me.insert(ce.insert, (0, u.default)({}, k({}, ie, pe), ce.attributes));
            }, new d.default());
          }
          function Y(oe) {
            if (oe.nodeType !== Node.ELEMENT_NODE)
              return {};
            var ie = "__ql-computed-style";
            return oe[ie] || (oe[ie] = window.getComputedStyle(oe));
          }
          function Q(oe, ie) {
            for (var pe = "", me = oe.ops.length - 1; me >= 0 && pe.length < ie.length; --me) {
              var ce = oe.ops[me];
              if (typeof ce.insert != "string")
                break;
              pe = ce.insert + pe;
            }
            return pe.slice(-1 * ie.length) === ie;
          }
          function B(oe) {
            if (oe.childNodes.length === 0)
              return !1;
            var ie = Y(oe);
            return ["block", "list-item"].indexOf(ie.display) > -1;
          }
          function H(oe, ie, pe) {
            return oe.nodeType === oe.TEXT_NODE ? pe.reduce(function(me, ce) {
              return ce(oe, me);
            }, new d.default()) : oe.nodeType === oe.ELEMENT_NODE ? [].reduce.call(oe.childNodes || [], function(me, ce) {
              var ke = H(ce, ie, pe);
              return ce.nodeType === oe.ELEMENT_NODE && (ke = ie.reduce(function(Ce, De) {
                return De(ce, Ce);
              }, ke), ke = (ce[G] || []).reduce(function(Ce, De) {
                return De(ce, Ce);
              }, ke)), me.concat(ke);
            }, new d.default()) : new d.default();
          }
          function Z(oe, ie, pe) {
            return q(pe, oe, !0);
          }
          function _(oe, ie) {
            var pe = v.default.Attributor.Attribute.keys(oe), me = v.default.Attributor.Class.keys(oe), ce = v.default.Attributor.Style.keys(oe), ke = {};
            return pe.concat(me).concat(ce).forEach(function(Ce) {
              var De = v.default.query(Ce, v.default.Scope.ATTRIBUTE);
              De != null && (ke[De.attrName] = De.value(oe), ke[De.attrName]) || (De = M[Ce], De != null && (De.attrName === Ce || De.keyName === Ce) && (ke[De.attrName] = De.value(oe) || void 0), De = P[Ce], De != null && (De.attrName === Ce || De.keyName === Ce) && (De = P[Ce], ke[De.attrName] = De.value(oe) || void 0));
            }), Object.keys(ke).length > 0 && (ie = q(ie, ke)), ie;
          }
          function re(oe, ie) {
            var pe = v.default.query(oe);
            if (pe == null)
              return ie;
            if (pe.prototype instanceof v.default.Embed) {
              var me = {}, ce = pe.value(oe);
              ce != null && (me[pe.blotName] = ce, ie = new d.default().insert(me, pe.formats(oe)));
            } else
              typeof pe.formats == "function" && (ie = q(ie, pe.blotName, pe.formats(oe)));
            return ie;
          }
          function he(oe, ie) {
            return Q(ie, `
`) || ie.insert(`
`), ie;
          }
          function be() {
            return new d.default();
          }
          function Oe(oe, ie) {
            var pe = v.default.query(oe);
            if (pe == null || pe.blotName !== "list-item" || !Q(ie, `
`))
              return ie;
            for (var me = -1, ce = oe.parentNode; !ce.classList.contains("ql-clipboard"); )
              (v.default.query(ce) || {}).blotName === "list" && (me += 1), ce = ce.parentNode;
            return me <= 0 ? ie : ie.compose(new d.default().retain(ie.length() - 1).retain(1, { indent: me }));
          }
          function Pe(oe, ie) {
            return Q(ie, `
`) || (B(oe) || ie.length() > 0 && oe.nextSibling && B(oe.nextSibling)) && ie.insert(`
`), ie;
          }
          function Ve(oe, ie) {
            if (B(oe) && oe.nextElementSibling != null && !Q(ie, `

`)) {
              var pe = oe.offsetHeight + parseFloat(Y(oe).marginTop) + parseFloat(Y(oe).marginBottom);
              oe.nextElementSibling.offsetTop > oe.offsetTop + pe * 1.5 && ie.insert(`
`);
            }
            return ie;
          }
          function $e(oe, ie) {
            var pe = {}, me = oe.style || {};
            return me.fontStyle && Y(oe).fontStyle === "italic" && (pe.italic = !0), me.fontWeight && (Y(oe).fontWeight.startsWith("bold") || parseInt(Y(oe).fontWeight) >= 700) && (pe.bold = !0), Object.keys(pe).length > 0 && (ie = q(ie, pe)), parseFloat(me.textIndent || 0) > 0 && (ie = new d.default().insert("	").concat(ie)), ie;
          }
          function Je(oe, ie) {
            var pe = oe.data;
            if (oe.parentNode.tagName === "O:P")
              return ie.insert(pe.trim());
            if (pe.trim().length === 0 && oe.parentNode.classList.contains("ql-clipboard"))
              return ie;
            if (!Y(oe.parentNode).whiteSpace.startsWith("pre")) {
              var me = function(ke, Ce) {
                return Ce = Ce.replace(/[^\u00a0]/g, ""), Ce.length < 1 && ke ? " " : Ce;
              };
              pe = pe.replace(/\r\n/g, " ").replace(/\n/g, " "), pe = pe.replace(/\s\s+/g, me.bind(me, !0)), (oe.previousSibling == null && B(oe.parentNode) || oe.previousSibling != null && B(oe.previousSibling)) && (pe = pe.replace(/^\s+/, me.bind(me, !1))), (oe.nextSibling == null && B(oe.parentNode) || oe.nextSibling != null && B(oe.nextSibling)) && (pe = pe.replace(/\s+$/, me.bind(me, !1)));
            }
            return ie.insert(pe);
          }
          r.default = R, r.matchAttributor = _, r.matchBlot = re, r.matchNewline = Pe, r.matchSpacing = Ve, r.matchText = Je;
        },
        /* 56 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = /* @__PURE__ */ function() {
            function h(m, p) {
              for (var g = 0; g < p.length; g++) {
                var y = p[g];
                y.enumerable = y.enumerable || !1, y.configurable = !0, "value" in y && (y.writable = !0), Object.defineProperty(m, y.key, y);
              }
            }
            return function(m, p, g) {
              return p && h(m.prototype, p), g && h(m, g), m;
            };
          }(), i = function h(m, p, g) {
            m === null && (m = Function.prototype);
            var y = Object.getOwnPropertyDescriptor(m, p);
            if (y === void 0) {
              var x = Object.getPrototypeOf(m);
              return x === null ? void 0 : h(x, p, g);
            } else {
              if ("value" in y)
                return y.value;
              var b = y.get;
              return b === void 0 ? void 0 : b.call(g);
            }
          }, l = o(6), s = u(l);
          function u(h) {
            return h && h.__esModule ? h : { default: h };
          }
          function c(h, m) {
            if (!(h instanceof m))
              throw new TypeError("Cannot call a class as a function");
          }
          function d(h, m) {
            if (!h)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return m && (typeof m == "object" || typeof m == "function") ? m : h;
          }
          function f(h, m) {
            if (typeof m != "function" && m !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof m);
            h.prototype = Object.create(m && m.prototype, { constructor: { value: h, enumerable: !1, writable: !0, configurable: !0 } }), m && (Object.setPrototypeOf ? Object.setPrototypeOf(h, m) : h.__proto__ = m);
          }
          var v = function(h) {
            f(m, h);
            function m() {
              return c(this, m), d(this, (m.__proto__ || Object.getPrototypeOf(m)).apply(this, arguments));
            }
            return a(m, [{
              key: "optimize",
              value: function(g) {
                i(m.prototype.__proto__ || Object.getPrototypeOf(m.prototype), "optimize", this).call(this, g), this.domNode.tagName !== this.statics.tagName[0] && this.replaceWith(this.statics.blotName);
              }
            }], [{
              key: "create",
              value: function() {
                return i(m.__proto__ || Object.getPrototypeOf(m), "create", this).call(this);
              }
            }, {
              key: "formats",
              value: function() {
                return !0;
              }
            }]), m;
          }(s.default);
          v.blotName = "bold", v.tagName = ["STRONG", "B"], r.default = v;
        },
        /* 57 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          }), r.addControls = r.default = void 0;
          var a = /* @__PURE__ */ function() {
            function A(C, k) {
              var I = [], N = !0, F = !1, V = void 0;
              try {
                for (var G = C[Symbol.iterator](), z; !(N = (z = G.next()).done) && (I.push(z.value), !(k && I.length === k)); N = !0)
                  ;
              } catch (M) {
                F = !0, V = M;
              } finally {
                try {
                  !N && G.return && G.return();
                } finally {
                  if (F)
                    throw V;
                }
              }
              return I;
            }
            return function(C, k) {
              if (Array.isArray(C))
                return C;
              if (Symbol.iterator in Object(C))
                return A(C, k);
              throw new TypeError("Invalid attempt to destructure non-iterable instance");
            };
          }(), i = /* @__PURE__ */ function() {
            function A(C, k) {
              for (var I = 0; I < k.length; I++) {
                var N = k[I];
                N.enumerable = N.enumerable || !1, N.configurable = !0, "value" in N && (N.writable = !0), Object.defineProperty(C, N.key, N);
              }
            }
            return function(C, k, I) {
              return k && A(C.prototype, k), I && A(C, I), C;
            };
          }(), l = o(2), s = g(l), u = o(0), c = g(u), d = o(5), f = g(d), v = o(10), h = g(v), m = o(9), p = g(m);
          function g(A) {
            return A && A.__esModule ? A : { default: A };
          }
          function y(A, C, k) {
            return C in A ? Object.defineProperty(A, C, { value: k, enumerable: !0, configurable: !0, writable: !0 }) : A[C] = k, A;
          }
          function x(A, C) {
            if (!(A instanceof C))
              throw new TypeError("Cannot call a class as a function");
          }
          function b(A, C) {
            if (!A)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return C && (typeof C == "object" || typeof C == "function") ? C : A;
          }
          function w(A, C) {
            if (typeof C != "function" && C !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof C);
            A.prototype = Object.create(C && C.prototype, { constructor: { value: A, enumerable: !1, writable: !0, configurable: !0 } }), C && (Object.setPrototypeOf ? Object.setPrototypeOf(A, C) : A.__proto__ = C);
          }
          var D = (0, h.default)("quill:toolbar"), E = function(A) {
            w(C, A);
            function C(k, I) {
              x(this, C);
              var N = b(this, (C.__proto__ || Object.getPrototypeOf(C)).call(this, k, I));
              if (Array.isArray(N.options.container)) {
                var F = document.createElement("div");
                L(F, N.options.container), k.container.parentNode.insertBefore(F, k.container), N.container = F;
              } else
                typeof N.options.container == "string" ? N.container = document.querySelector(N.options.container) : N.container = N.options.container;
              if (!(N.container instanceof HTMLElement)) {
                var V;
                return V = D.error("Container required for toolbar", N.options), b(N, V);
              }
              return N.container.classList.add("ql-toolbar"), N.controls = [], N.handlers = {}, Object.keys(N.options.handlers).forEach(function(G) {
                N.addHandler(G, N.options.handlers[G]);
              }), [].forEach.call(N.container.querySelectorAll("button, select"), function(G) {
                N.attach(G);
              }), N.quill.on(f.default.events.EDITOR_CHANGE, function(G, z) {
                G === f.default.events.SELECTION_CHANGE && N.update(z);
              }), N.quill.on(f.default.events.SCROLL_OPTIMIZE, function() {
                var G = N.quill.selection.getRange(), z = a(G, 1), M = z[0];
                N.update(M);
              }), N;
            }
            return i(C, [{
              key: "addHandler",
              value: function(I, N) {
                this.handlers[I] = N;
              }
            }, {
              key: "attach",
              value: function(I) {
                var N = this, F = [].find.call(I.classList, function(G) {
                  return G.indexOf("ql-") === 0;
                });
                if (F) {
                  if (F = F.slice(3), I.tagName === "BUTTON" && I.setAttribute("type", "button"), this.handlers[F] == null) {
                    if (this.quill.scroll.whitelist != null && this.quill.scroll.whitelist[F] == null) {
                      D.warn("ignoring attaching to disabled format", F, I);
                      return;
                    }
                    if (c.default.query(F) == null) {
                      D.warn("ignoring attaching to nonexistent format", F, I);
                      return;
                    }
                  }
                  var V = I.tagName === "SELECT" ? "change" : "click";
                  I.addEventListener(V, function(G) {
                    var z = void 0;
                    if (I.tagName === "SELECT") {
                      if (I.selectedIndex < 0)
                        return;
                      var M = I.options[I.selectedIndex];
                      M.hasAttribute("selected") ? z = !1 : z = M.value || !1;
                    } else
                      I.classList.contains("ql-active") ? z = !1 : z = I.value || !I.hasAttribute("value"), G.preventDefault();
                    N.quill.focus();
                    var P = N.quill.selection.getRange(), R = a(P, 1), q = R[0];
                    if (N.handlers[F] != null)
                      N.handlers[F].call(N, z);
                    else if (c.default.query(F).prototype instanceof c.default.Embed) {
                      if (z = prompt("Enter " + F), !z)
                        return;
                      N.quill.updateContents(new s.default().retain(q.index).delete(q.length).insert(y({}, F, z)), f.default.sources.USER);
                    } else
                      N.quill.format(F, z, f.default.sources.USER);
                    N.update(q);
                  }), this.controls.push([F, I]);
                }
              }
            }, {
              key: "update",
              value: function(I) {
                var N = I == null ? {} : this.quill.getFormat(I);
                this.controls.forEach(function(F) {
                  var V = a(F, 2), G = V[0], z = V[1];
                  if (z.tagName === "SELECT") {
                    var M = void 0;
                    if (I == null)
                      M = null;
                    else if (N[G] == null)
                      M = z.querySelector("option[selected]");
                    else if (!Array.isArray(N[G])) {
                      var P = N[G];
                      typeof P == "string" && (P = P.replace(/\"/g, '\\"')), M = z.querySelector('option[value="' + P + '"]');
                    }
                    M == null ? (z.value = "", z.selectedIndex = -1) : M.selected = !0;
                  } else if (I == null)
                    z.classList.remove("ql-active");
                  else if (z.hasAttribute("value")) {
                    var R = N[G] === z.getAttribute("value") || N[G] != null && N[G].toString() === z.getAttribute("value") || N[G] == null && !z.getAttribute("value");
                    z.classList.toggle("ql-active", R);
                  } else
                    z.classList.toggle("ql-active", N[G] != null);
                });
              }
            }]), C;
          }(p.default);
          E.DEFAULTS = {};
          function T(A, C, k) {
            var I = document.createElement("button");
            I.setAttribute("type", "button"), I.classList.add("ql-" + C), k != null && (I.value = k), A.appendChild(I);
          }
          function L(A, C) {
            Array.isArray(C[0]) || (C = [C]), C.forEach(function(k) {
              var I = document.createElement("span");
              I.classList.add("ql-formats"), k.forEach(function(N) {
                if (typeof N == "string")
                  T(I, N);
                else {
                  var F = Object.keys(N)[0], V = N[F];
                  Array.isArray(V) ? S(I, F, V) : T(I, F, V);
                }
              }), A.appendChild(I);
            });
          }
          function S(A, C, k) {
            var I = document.createElement("select");
            I.classList.add("ql-" + C), k.forEach(function(N) {
              var F = document.createElement("option");
              N !== !1 ? F.setAttribute("value", N) : F.setAttribute("selected", "selected"), I.appendChild(F);
            }), A.appendChild(I);
          }
          E.DEFAULTS = {
            container: null,
            handlers: {
              clean: function() {
                var C = this, k = this.quill.getSelection();
                if (k != null)
                  if (k.length == 0) {
                    var I = this.quill.getFormat();
                    Object.keys(I).forEach(function(N) {
                      c.default.query(N, c.default.Scope.INLINE) != null && C.quill.format(N, !1);
                    });
                  } else
                    this.quill.removeFormat(k, f.default.sources.USER);
              },
              direction: function(C) {
                var k = this.quill.getFormat().align;
                C === "rtl" && k == null ? this.quill.format("align", "right", f.default.sources.USER) : !C && k === "right" && this.quill.format("align", !1, f.default.sources.USER), this.quill.format("direction", C, f.default.sources.USER);
              },
              indent: function(C) {
                var k = this.quill.getSelection(), I = this.quill.getFormat(k), N = parseInt(I.indent || 0);
                if (C === "+1" || C === "-1") {
                  var F = C === "+1" ? 1 : -1;
                  I.direction === "rtl" && (F *= -1), this.quill.format("indent", N + F, f.default.sources.USER);
                }
              },
              link: function(C) {
                C === !0 && (C = prompt("Enter link URL:")), this.quill.format("link", C, f.default.sources.USER);
              },
              list: function(C) {
                var k = this.quill.getSelection(), I = this.quill.getFormat(k);
                C === "check" ? I.list === "checked" || I.list === "unchecked" ? this.quill.format("list", !1, f.default.sources.USER) : this.quill.format("list", "unchecked", f.default.sources.USER) : this.quill.format("list", C, f.default.sources.USER);
              }
            }
          }, r.default = E, r.addControls = L;
        },
        /* 58 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>';
        },
        /* 59 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = /* @__PURE__ */ function() {
            function h(m, p) {
              for (var g = 0; g < p.length; g++) {
                var y = p[g];
                y.enumerable = y.enumerable || !1, y.configurable = !0, "value" in y && (y.writable = !0), Object.defineProperty(m, y.key, y);
              }
            }
            return function(m, p, g) {
              return p && h(m.prototype, p), g && h(m, g), m;
            };
          }(), i = function h(m, p, g) {
            m === null && (m = Function.prototype);
            var y = Object.getOwnPropertyDescriptor(m, p);
            if (y === void 0) {
              var x = Object.getPrototypeOf(m);
              return x === null ? void 0 : h(x, p, g);
            } else {
              if ("value" in y)
                return y.value;
              var b = y.get;
              return b === void 0 ? void 0 : b.call(g);
            }
          }, l = o(28), s = u(l);
          function u(h) {
            return h && h.__esModule ? h : { default: h };
          }
          function c(h, m) {
            if (!(h instanceof m))
              throw new TypeError("Cannot call a class as a function");
          }
          function d(h, m) {
            if (!h)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return m && (typeof m == "object" || typeof m == "function") ? m : h;
          }
          function f(h, m) {
            if (typeof m != "function" && m !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof m);
            h.prototype = Object.create(m && m.prototype, { constructor: { value: h, enumerable: !1, writable: !0, configurable: !0 } }), m && (Object.setPrototypeOf ? Object.setPrototypeOf(h, m) : h.__proto__ = m);
          }
          var v = function(h) {
            f(m, h);
            function m(p, g) {
              c(this, m);
              var y = d(this, (m.__proto__ || Object.getPrototypeOf(m)).call(this, p));
              return y.label.innerHTML = g, y.container.classList.add("ql-color-picker"), [].slice.call(y.container.querySelectorAll(".ql-picker-item"), 0, 7).forEach(function(x) {
                x.classList.add("ql-primary");
              }), y;
            }
            return a(m, [{
              key: "buildItem",
              value: function(g) {
                var y = i(m.prototype.__proto__ || Object.getPrototypeOf(m.prototype), "buildItem", this).call(this, g);
                return y.style.backgroundColor = g.getAttribute("value") || "", y;
              }
            }, {
              key: "selectItem",
              value: function(g, y) {
                i(m.prototype.__proto__ || Object.getPrototypeOf(m.prototype), "selectItem", this).call(this, g, y);
                var x = this.label.querySelector(".ql-color-label"), b = g && g.getAttribute("data-value") || "";
                x && (x.tagName === "line" ? x.style.stroke = b : x.style.fill = b);
              }
            }]), m;
          }(s.default);
          r.default = v;
        },
        /* 60 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = /* @__PURE__ */ function() {
            function h(m, p) {
              for (var g = 0; g < p.length; g++) {
                var y = p[g];
                y.enumerable = y.enumerable || !1, y.configurable = !0, "value" in y && (y.writable = !0), Object.defineProperty(m, y.key, y);
              }
            }
            return function(m, p, g) {
              return p && h(m.prototype, p), g && h(m, g), m;
            };
          }(), i = function h(m, p, g) {
            m === null && (m = Function.prototype);
            var y = Object.getOwnPropertyDescriptor(m, p);
            if (y === void 0) {
              var x = Object.getPrototypeOf(m);
              return x === null ? void 0 : h(x, p, g);
            } else {
              if ("value" in y)
                return y.value;
              var b = y.get;
              return b === void 0 ? void 0 : b.call(g);
            }
          }, l = o(28), s = u(l);
          function u(h) {
            return h && h.__esModule ? h : { default: h };
          }
          function c(h, m) {
            if (!(h instanceof m))
              throw new TypeError("Cannot call a class as a function");
          }
          function d(h, m) {
            if (!h)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return m && (typeof m == "object" || typeof m == "function") ? m : h;
          }
          function f(h, m) {
            if (typeof m != "function" && m !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof m);
            h.prototype = Object.create(m && m.prototype, { constructor: { value: h, enumerable: !1, writable: !0, configurable: !0 } }), m && (Object.setPrototypeOf ? Object.setPrototypeOf(h, m) : h.__proto__ = m);
          }
          var v = function(h) {
            f(m, h);
            function m(p, g) {
              c(this, m);
              var y = d(this, (m.__proto__ || Object.getPrototypeOf(m)).call(this, p));
              return y.container.classList.add("ql-icon-picker"), [].forEach.call(y.container.querySelectorAll(".ql-picker-item"), function(x) {
                x.innerHTML = g[x.getAttribute("data-value") || ""];
              }), y.defaultItem = y.container.querySelector(".ql-selected"), y.selectItem(y.defaultItem), y;
            }
            return a(m, [{
              key: "selectItem",
              value: function(g, y) {
                i(m.prototype.__proto__ || Object.getPrototypeOf(m.prototype), "selectItem", this).call(this, g, y), g = g || this.defaultItem, this.label.innerHTML = g.innerHTML;
              }
            }]), m;
          }(s.default);
          r.default = v;
        },
        /* 61 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = /* @__PURE__ */ function() {
            function s(u, c) {
              for (var d = 0; d < c.length; d++) {
                var f = c[d];
                f.enumerable = f.enumerable || !1, f.configurable = !0, "value" in f && (f.writable = !0), Object.defineProperty(u, f.key, f);
              }
            }
            return function(u, c, d) {
              return c && s(u.prototype, c), d && s(u, d), u;
            };
          }();
          function i(s, u) {
            if (!(s instanceof u))
              throw new TypeError("Cannot call a class as a function");
          }
          var l = function() {
            function s(u, c) {
              var d = this;
              i(this, s), this.quill = u, this.boundsContainer = c || document.body, this.root = u.addContainer("ql-tooltip"), this.root.innerHTML = this.constructor.TEMPLATE, this.quill.root === this.quill.scrollingContainer && this.quill.root.addEventListener("scroll", function() {
                d.root.style.marginTop = -1 * d.quill.root.scrollTop + "px";
              }), this.hide();
            }
            return a(s, [{
              key: "hide",
              value: function() {
                this.root.classList.add("ql-hidden");
              }
            }, {
              key: "position",
              value: function(c) {
                var d = c.left + c.width / 2 - this.root.offsetWidth / 2, f = c.bottom + this.quill.root.scrollTop;
                this.root.style.left = d + "px", this.root.style.top = f + "px", this.root.classList.remove("ql-flip");
                var v = this.boundsContainer.getBoundingClientRect(), h = this.root.getBoundingClientRect(), m = 0;
                if (h.right > v.right && (m = v.right - h.right, this.root.style.left = d + m + "px"), h.left < v.left && (m = v.left - h.left, this.root.style.left = d + m + "px"), h.bottom > v.bottom) {
                  var p = h.bottom - h.top, g = c.bottom - c.top + p;
                  this.root.style.top = f - g + "px", this.root.classList.add("ql-flip");
                }
                return m;
              }
            }, {
              key: "show",
              value: function() {
                this.root.classList.remove("ql-editing"), this.root.classList.remove("ql-hidden");
              }
            }]), s;
          }();
          r.default = l;
        },
        /* 62 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = /* @__PURE__ */ function() {
            function S(A, C) {
              var k = [], I = !0, N = !1, F = void 0;
              try {
                for (var V = A[Symbol.iterator](), G; !(I = (G = V.next()).done) && (k.push(G.value), !(C && k.length === C)); I = !0)
                  ;
              } catch (z) {
                N = !0, F = z;
              } finally {
                try {
                  !I && V.return && V.return();
                } finally {
                  if (N)
                    throw F;
                }
              }
              return k;
            }
            return function(A, C) {
              if (Array.isArray(A))
                return A;
              if (Symbol.iterator in Object(A))
                return S(A, C);
              throw new TypeError("Invalid attempt to destructure non-iterable instance");
            };
          }(), i = function S(A, C, k) {
            A === null && (A = Function.prototype);
            var I = Object.getOwnPropertyDescriptor(A, C);
            if (I === void 0) {
              var N = Object.getPrototypeOf(A);
              return N === null ? void 0 : S(N, C, k);
            } else {
              if ("value" in I)
                return I.value;
              var F = I.get;
              return F === void 0 ? void 0 : F.call(k);
            }
          }, l = /* @__PURE__ */ function() {
            function S(A, C) {
              for (var k = 0; k < C.length; k++) {
                var I = C[k];
                I.enumerable = I.enumerable || !1, I.configurable = !0, "value" in I && (I.writable = !0), Object.defineProperty(A, I.key, I);
              }
            }
            return function(A, C, k) {
              return C && S(A.prototype, C), k && S(A, k), A;
            };
          }(), s = o(3), u = x(s), c = o(8), d = x(c), f = o(43), v = x(f), h = o(27), m = x(h), p = o(15), g = o(41), y = x(g);
          function x(S) {
            return S && S.__esModule ? S : { default: S };
          }
          function b(S, A) {
            if (!(S instanceof A))
              throw new TypeError("Cannot call a class as a function");
          }
          function w(S, A) {
            if (!S)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return A && (typeof A == "object" || typeof A == "function") ? A : S;
          }
          function D(S, A) {
            if (typeof A != "function" && A !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof A);
            S.prototype = Object.create(A && A.prototype, { constructor: { value: S, enumerable: !1, writable: !0, configurable: !0 } }), A && (Object.setPrototypeOf ? Object.setPrototypeOf(S, A) : S.__proto__ = A);
          }
          var E = [[{ header: ["1", "2", "3", !1] }], ["bold", "italic", "underline", "link"], [{ list: "ordered" }, { list: "bullet" }], ["clean"]], T = function(S) {
            D(A, S);
            function A(C, k) {
              b(this, A), k.modules.toolbar != null && k.modules.toolbar.container == null && (k.modules.toolbar.container = E);
              var I = w(this, (A.__proto__ || Object.getPrototypeOf(A)).call(this, C, k));
              return I.quill.container.classList.add("ql-snow"), I;
            }
            return l(A, [{
              key: "extendToolbar",
              value: function(k) {
                k.container.classList.add("ql-snow"), this.buildButtons([].slice.call(k.container.querySelectorAll("button")), y.default), this.buildPickers([].slice.call(k.container.querySelectorAll("select")), y.default), this.tooltip = new L(this.quill, this.options.bounds), k.container.querySelector(".ql-link") && this.quill.keyboard.addBinding({ key: "K", shortKey: !0 }, function(I, N) {
                  k.handlers.link.call(k, !N.format.link);
                });
              }
            }]), A;
          }(v.default);
          T.DEFAULTS = (0, u.default)(!0, {}, v.default.DEFAULTS, {
            modules: {
              toolbar: {
                handlers: {
                  link: function(A) {
                    if (A) {
                      var C = this.quill.getSelection();
                      if (C == null || C.length == 0)
                        return;
                      var k = this.quill.getText(C);
                      /^\S+@\S+\.\S+$/.test(k) && k.indexOf("mailto:") !== 0 && (k = "mailto:" + k);
                      var I = this.quill.theme.tooltip;
                      I.edit("link", k);
                    } else
                      this.quill.format("link", !1);
                  }
                }
              }
            }
          });
          var L = function(S) {
            D(A, S);
            function A(C, k) {
              b(this, A);
              var I = w(this, (A.__proto__ || Object.getPrototypeOf(A)).call(this, C, k));
              return I.preview = I.root.querySelector("a.ql-preview"), I;
            }
            return l(A, [{
              key: "listen",
              value: function() {
                var k = this;
                i(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "listen", this).call(this), this.root.querySelector("a.ql-action").addEventListener("click", function(I) {
                  k.root.classList.contains("ql-editing") ? k.save() : k.edit("link", k.preview.textContent), I.preventDefault();
                }), this.root.querySelector("a.ql-remove").addEventListener("click", function(I) {
                  if (k.linkRange != null) {
                    var N = k.linkRange;
                    k.restoreFocus(), k.quill.formatText(N, "link", !1, d.default.sources.USER), delete k.linkRange;
                  }
                  I.preventDefault(), k.hide();
                }), this.quill.on(d.default.events.SELECTION_CHANGE, function(I, N, F) {
                  if (I != null) {
                    if (I.length === 0 && F === d.default.sources.USER) {
                      var V = k.quill.scroll.descendant(m.default, I.index), G = a(V, 2), z = G[0], M = G[1];
                      if (z != null) {
                        k.linkRange = new p.Range(I.index - M, z.length());
                        var P = m.default.formats(z.domNode);
                        k.preview.textContent = P, k.preview.setAttribute("href", P), k.show(), k.position(k.quill.getBounds(k.linkRange));
                        return;
                      }
                    } else
                      delete k.linkRange;
                    k.hide();
                  }
                });
              }
            }, {
              key: "show",
              value: function() {
                i(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "show", this).call(this), this.root.removeAttribute("data-mode");
              }
            }]), A;
          }(f.BaseTooltip);
          L.TEMPLATE = ['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join(""), r.default = T;
        },
        /* 63 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = o(29), i = ce(a), l = o(36), s = o(38), u = o(64), c = o(65), d = ce(c), f = o(66), v = ce(f), h = o(67), m = ce(h), p = o(37), g = o(26), y = o(39), x = o(40), b = o(56), w = ce(b), D = o(68), E = ce(D), T = o(27), L = ce(T), S = o(69), A = ce(S), C = o(70), k = ce(C), I = o(71), N = ce(I), F = o(72), V = ce(F), G = o(73), z = ce(G), M = o(13), P = ce(M), R = o(74), q = ce(R), Y = o(75), Q = ce(Y), B = o(57), H = ce(B), Z = o(41), _ = ce(Z), re = o(28), he = ce(re), be = o(59), Oe = ce(be), Pe = o(60), Ve = ce(Pe), $e = o(61), Je = ce($e), oe = o(108), ie = ce(oe), pe = o(62), me = ce(pe);
          function ce(ke) {
            return ke && ke.__esModule ? ke : { default: ke };
          }
          i.default.register({
            "attributors/attribute/direction": s.DirectionAttribute,
            "attributors/class/align": l.AlignClass,
            "attributors/class/background": p.BackgroundClass,
            "attributors/class/color": g.ColorClass,
            "attributors/class/direction": s.DirectionClass,
            "attributors/class/font": y.FontClass,
            "attributors/class/size": x.SizeClass,
            "attributors/style/align": l.AlignStyle,
            "attributors/style/background": p.BackgroundStyle,
            "attributors/style/color": g.ColorStyle,
            "attributors/style/direction": s.DirectionStyle,
            "attributors/style/font": y.FontStyle,
            "attributors/style/size": x.SizeStyle
          }, !0), i.default.register({
            "formats/align": l.AlignClass,
            "formats/direction": s.DirectionClass,
            "formats/indent": u.IndentClass,
            "formats/background": p.BackgroundStyle,
            "formats/color": g.ColorStyle,
            "formats/font": y.FontClass,
            "formats/size": x.SizeClass,
            "formats/blockquote": d.default,
            "formats/code-block": P.default,
            "formats/header": v.default,
            "formats/list": m.default,
            "formats/bold": w.default,
            "formats/code": M.Code,
            "formats/italic": E.default,
            "formats/link": L.default,
            "formats/script": A.default,
            "formats/strike": k.default,
            "formats/underline": N.default,
            "formats/image": V.default,
            "formats/video": z.default,
            "formats/list/item": h.ListItem,
            "modules/formula": q.default,
            "modules/syntax": Q.default,
            "modules/toolbar": H.default,
            "themes/bubble": ie.default,
            "themes/snow": me.default,
            "ui/icons": _.default,
            "ui/picker": he.default,
            "ui/icon-picker": Ve.default,
            "ui/color-picker": Oe.default,
            "ui/tooltip": Je.default
          }, !0), r.default = i.default;
        },
        /* 64 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          }), r.IndentClass = void 0;
          var a = /* @__PURE__ */ function() {
            function m(p, g) {
              for (var y = 0; y < g.length; y++) {
                var x = g[y];
                x.enumerable = x.enumerable || !1, x.configurable = !0, "value" in x && (x.writable = !0), Object.defineProperty(p, x.key, x);
              }
            }
            return function(p, g, y) {
              return g && m(p.prototype, g), y && m(p, y), p;
            };
          }(), i = function m(p, g, y) {
            p === null && (p = Function.prototype);
            var x = Object.getOwnPropertyDescriptor(p, g);
            if (x === void 0) {
              var b = Object.getPrototypeOf(p);
              return b === null ? void 0 : m(b, g, y);
            } else {
              if ("value" in x)
                return x.value;
              var w = x.get;
              return w === void 0 ? void 0 : w.call(y);
            }
          }, l = o(0), s = u(l);
          function u(m) {
            return m && m.__esModule ? m : { default: m };
          }
          function c(m, p) {
            if (!(m instanceof p))
              throw new TypeError("Cannot call a class as a function");
          }
          function d(m, p) {
            if (!m)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return p && (typeof p == "object" || typeof p == "function") ? p : m;
          }
          function f(m, p) {
            if (typeof p != "function" && p !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof p);
            m.prototype = Object.create(p && p.prototype, { constructor: { value: m, enumerable: !1, writable: !0, configurable: !0 } }), p && (Object.setPrototypeOf ? Object.setPrototypeOf(m, p) : m.__proto__ = p);
          }
          var v = function(m) {
            f(p, m);
            function p() {
              return c(this, p), d(this, (p.__proto__ || Object.getPrototypeOf(p)).apply(this, arguments));
            }
            return a(p, [{
              key: "add",
              value: function(y, x) {
                if (x === "+1" || x === "-1") {
                  var b = this.value(y) || 0;
                  x = x === "+1" ? b + 1 : b - 1;
                }
                return x === 0 ? (this.remove(y), !0) : i(p.prototype.__proto__ || Object.getPrototypeOf(p.prototype), "add", this).call(this, y, x);
              }
            }, {
              key: "canAdd",
              value: function(y, x) {
                return i(p.prototype.__proto__ || Object.getPrototypeOf(p.prototype), "canAdd", this).call(this, y, x) || i(p.prototype.__proto__ || Object.getPrototypeOf(p.prototype), "canAdd", this).call(this, y, parseInt(x));
              }
            }, {
              key: "value",
              value: function(y) {
                return parseInt(i(p.prototype.__proto__ || Object.getPrototypeOf(p.prototype), "value", this).call(this, y)) || void 0;
              }
            }]), p;
          }(s.default.Attributor.Class), h = new v("indent", "ql-indent", {
            scope: s.default.Scope.BLOCK,
            whitelist: [1, 2, 3, 4, 5, 6, 7, 8]
          });
          r.IndentClass = h;
        },
        /* 65 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = o(4), i = l(a);
          function l(f) {
            return f && f.__esModule ? f : { default: f };
          }
          function s(f, v) {
            if (!(f instanceof v))
              throw new TypeError("Cannot call a class as a function");
          }
          function u(f, v) {
            if (!f)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return v && (typeof v == "object" || typeof v == "function") ? v : f;
          }
          function c(f, v) {
            if (typeof v != "function" && v !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof v);
            f.prototype = Object.create(v && v.prototype, { constructor: { value: f, enumerable: !1, writable: !0, configurable: !0 } }), v && (Object.setPrototypeOf ? Object.setPrototypeOf(f, v) : f.__proto__ = v);
          }
          var d = function(f) {
            c(v, f);
            function v() {
              return s(this, v), u(this, (v.__proto__ || Object.getPrototypeOf(v)).apply(this, arguments));
            }
            return v;
          }(i.default);
          d.blotName = "blockquote", d.tagName = "blockquote", r.default = d;
        },
        /* 66 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = /* @__PURE__ */ function() {
            function v(h, m) {
              for (var p = 0; p < m.length; p++) {
                var g = m[p];
                g.enumerable = g.enumerable || !1, g.configurable = !0, "value" in g && (g.writable = !0), Object.defineProperty(h, g.key, g);
              }
            }
            return function(h, m, p) {
              return m && v(h.prototype, m), p && v(h, p), h;
            };
          }(), i = o(4), l = s(i);
          function s(v) {
            return v && v.__esModule ? v : { default: v };
          }
          function u(v, h) {
            if (!(v instanceof h))
              throw new TypeError("Cannot call a class as a function");
          }
          function c(v, h) {
            if (!v)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return h && (typeof h == "object" || typeof h == "function") ? h : v;
          }
          function d(v, h) {
            if (typeof h != "function" && h !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof h);
            v.prototype = Object.create(h && h.prototype, { constructor: { value: v, enumerable: !1, writable: !0, configurable: !0 } }), h && (Object.setPrototypeOf ? Object.setPrototypeOf(v, h) : v.__proto__ = h);
          }
          var f = function(v) {
            d(h, v);
            function h() {
              return u(this, h), c(this, (h.__proto__ || Object.getPrototypeOf(h)).apply(this, arguments));
            }
            return a(h, null, [{
              key: "formats",
              value: function(p) {
                return this.tagName.indexOf(p.tagName) + 1;
              }
            }]), h;
          }(l.default);
          f.blotName = "header", f.tagName = ["H1", "H2", "H3", "H4", "H5", "H6"], r.default = f;
        },
        /* 67 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          }), r.default = r.ListItem = void 0;
          var a = /* @__PURE__ */ function() {
            function b(w, D) {
              for (var E = 0; E < D.length; E++) {
                var T = D[E];
                T.enumerable = T.enumerable || !1, T.configurable = !0, "value" in T && (T.writable = !0), Object.defineProperty(w, T.key, T);
              }
            }
            return function(w, D, E) {
              return D && b(w.prototype, D), E && b(w, E), w;
            };
          }(), i = function b(w, D, E) {
            w === null && (w = Function.prototype);
            var T = Object.getOwnPropertyDescriptor(w, D);
            if (T === void 0) {
              var L = Object.getPrototypeOf(w);
              return L === null ? void 0 : b(L, D, E);
            } else {
              if ("value" in T)
                return T.value;
              var S = T.get;
              return S === void 0 ? void 0 : S.call(E);
            }
          }, l = o(0), s = v(l), u = o(4), c = v(u), d = o(25), f = v(d);
          function v(b) {
            return b && b.__esModule ? b : { default: b };
          }
          function h(b, w, D) {
            return w in b ? Object.defineProperty(b, w, { value: D, enumerable: !0, configurable: !0, writable: !0 }) : b[w] = D, b;
          }
          function m(b, w) {
            if (!(b instanceof w))
              throw new TypeError("Cannot call a class as a function");
          }
          function p(b, w) {
            if (!b)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return w && (typeof w == "object" || typeof w == "function") ? w : b;
          }
          function g(b, w) {
            if (typeof w != "function" && w !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof w);
            b.prototype = Object.create(w && w.prototype, { constructor: { value: b, enumerable: !1, writable: !0, configurable: !0 } }), w && (Object.setPrototypeOf ? Object.setPrototypeOf(b, w) : b.__proto__ = w);
          }
          var y = function(b) {
            g(w, b);
            function w() {
              return m(this, w), p(this, (w.__proto__ || Object.getPrototypeOf(w)).apply(this, arguments));
            }
            return a(w, [{
              key: "format",
              value: function(E, T) {
                E === x.blotName && !T ? this.replaceWith(s.default.create(this.statics.scope)) : i(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "format", this).call(this, E, T);
              }
            }, {
              key: "remove",
              value: function() {
                this.prev == null && this.next == null ? this.parent.remove() : i(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "remove", this).call(this);
              }
            }, {
              key: "replaceWith",
              value: function(E, T) {
                return this.parent.isolate(this.offset(this.parent), this.length()), E === this.parent.statics.blotName ? (this.parent.replaceWith(E, T), this) : (this.parent.unwrap(), i(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "replaceWith", this).call(this, E, T));
              }
            }], [{
              key: "formats",
              value: function(E) {
                return E.tagName === this.tagName ? void 0 : i(w.__proto__ || Object.getPrototypeOf(w), "formats", this).call(this, E);
              }
            }]), w;
          }(c.default);
          y.blotName = "list-item", y.tagName = "LI";
          var x = function(b) {
            g(w, b), a(w, null, [{
              key: "create",
              value: function(E) {
                var T = E === "ordered" ? "OL" : "UL", L = i(w.__proto__ || Object.getPrototypeOf(w), "create", this).call(this, T);
                return (E === "checked" || E === "unchecked") && L.setAttribute("data-checked", E === "checked"), L;
              }
            }, {
              key: "formats",
              value: function(E) {
                if (E.tagName === "OL")
                  return "ordered";
                if (E.tagName === "UL")
                  return E.hasAttribute("data-checked") ? E.getAttribute("data-checked") === "true" ? "checked" : "unchecked" : "bullet";
              }
            }]);
            function w(D) {
              m(this, w);
              var E = p(this, (w.__proto__ || Object.getPrototypeOf(w)).call(this, D)), T = function(S) {
                if (S.target.parentNode === D) {
                  var A = E.statics.formats(D), C = s.default.find(S.target);
                  A === "checked" ? C.format("list", "unchecked") : A === "unchecked" && C.format("list", "checked");
                }
              };
              return D.addEventListener("touchstart", T), D.addEventListener("mousedown", T), E;
            }
            return a(w, [{
              key: "format",
              value: function(E, T) {
                this.children.length > 0 && this.children.tail.format(E, T);
              }
            }, {
              key: "formats",
              value: function() {
                return h({}, this.statics.blotName, this.statics.formats(this.domNode));
              }
            }, {
              key: "insertBefore",
              value: function(E, T) {
                if (E instanceof y)
                  i(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "insertBefore", this).call(this, E, T);
                else {
                  var L = T == null ? this.length() : T.offset(this), S = this.split(L);
                  S.parent.insertBefore(E, S);
                }
              }
            }, {
              key: "optimize",
              value: function(E) {
                i(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "optimize", this).call(this, E);
                var T = this.next;
                T != null && T.prev === this && T.statics.blotName === this.statics.blotName && T.domNode.tagName === this.domNode.tagName && T.domNode.getAttribute("data-checked") === this.domNode.getAttribute("data-checked") && (T.moveChildren(this), T.remove());
              }
            }, {
              key: "replace",
              value: function(E) {
                if (E.statics.blotName !== this.statics.blotName) {
                  var T = s.default.create(this.statics.defaultChild);
                  E.moveChildren(T), this.appendChild(T);
                }
                i(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "replace", this).call(this, E);
              }
            }]), w;
          }(f.default);
          x.blotName = "list", x.scope = s.default.Scope.BLOCK_BLOT, x.tagName = ["OL", "UL"], x.defaultChild = "list-item", x.allowedChildren = [y], r.ListItem = y, r.default = x;
        },
        /* 68 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = o(56), i = l(a);
          function l(f) {
            return f && f.__esModule ? f : { default: f };
          }
          function s(f, v) {
            if (!(f instanceof v))
              throw new TypeError("Cannot call a class as a function");
          }
          function u(f, v) {
            if (!f)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return v && (typeof v == "object" || typeof v == "function") ? v : f;
          }
          function c(f, v) {
            if (typeof v != "function" && v !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof v);
            f.prototype = Object.create(v && v.prototype, { constructor: { value: f, enumerable: !1, writable: !0, configurable: !0 } }), v && (Object.setPrototypeOf ? Object.setPrototypeOf(f, v) : f.__proto__ = v);
          }
          var d = function(f) {
            c(v, f);
            function v() {
              return s(this, v), u(this, (v.__proto__ || Object.getPrototypeOf(v)).apply(this, arguments));
            }
            return v;
          }(i.default);
          d.blotName = "italic", d.tagName = ["EM", "I"], r.default = d;
        },
        /* 69 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = /* @__PURE__ */ function() {
            function h(m, p) {
              for (var g = 0; g < p.length; g++) {
                var y = p[g];
                y.enumerable = y.enumerable || !1, y.configurable = !0, "value" in y && (y.writable = !0), Object.defineProperty(m, y.key, y);
              }
            }
            return function(m, p, g) {
              return p && h(m.prototype, p), g && h(m, g), m;
            };
          }(), i = function h(m, p, g) {
            m === null && (m = Function.prototype);
            var y = Object.getOwnPropertyDescriptor(m, p);
            if (y === void 0) {
              var x = Object.getPrototypeOf(m);
              return x === null ? void 0 : h(x, p, g);
            } else {
              if ("value" in y)
                return y.value;
              var b = y.get;
              return b === void 0 ? void 0 : b.call(g);
            }
          }, l = o(6), s = u(l);
          function u(h) {
            return h && h.__esModule ? h : { default: h };
          }
          function c(h, m) {
            if (!(h instanceof m))
              throw new TypeError("Cannot call a class as a function");
          }
          function d(h, m) {
            if (!h)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return m && (typeof m == "object" || typeof m == "function") ? m : h;
          }
          function f(h, m) {
            if (typeof m != "function" && m !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof m);
            h.prototype = Object.create(m && m.prototype, { constructor: { value: h, enumerable: !1, writable: !0, configurable: !0 } }), m && (Object.setPrototypeOf ? Object.setPrototypeOf(h, m) : h.__proto__ = m);
          }
          var v = function(h) {
            f(m, h);
            function m() {
              return c(this, m), d(this, (m.__proto__ || Object.getPrototypeOf(m)).apply(this, arguments));
            }
            return a(m, null, [{
              key: "create",
              value: function(g) {
                return g === "super" ? document.createElement("sup") : g === "sub" ? document.createElement("sub") : i(m.__proto__ || Object.getPrototypeOf(m), "create", this).call(this, g);
              }
            }, {
              key: "formats",
              value: function(g) {
                if (g.tagName === "SUB")
                  return "sub";
                if (g.tagName === "SUP")
                  return "super";
              }
            }]), m;
          }(s.default);
          v.blotName = "script", v.tagName = ["SUB", "SUP"], r.default = v;
        },
        /* 70 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = o(6), i = l(a);
          function l(f) {
            return f && f.__esModule ? f : { default: f };
          }
          function s(f, v) {
            if (!(f instanceof v))
              throw new TypeError("Cannot call a class as a function");
          }
          function u(f, v) {
            if (!f)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return v && (typeof v == "object" || typeof v == "function") ? v : f;
          }
          function c(f, v) {
            if (typeof v != "function" && v !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof v);
            f.prototype = Object.create(v && v.prototype, { constructor: { value: f, enumerable: !1, writable: !0, configurable: !0 } }), v && (Object.setPrototypeOf ? Object.setPrototypeOf(f, v) : f.__proto__ = v);
          }
          var d = function(f) {
            c(v, f);
            function v() {
              return s(this, v), u(this, (v.__proto__ || Object.getPrototypeOf(v)).apply(this, arguments));
            }
            return v;
          }(i.default);
          d.blotName = "strike", d.tagName = "S", r.default = d;
        },
        /* 71 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = o(6), i = l(a);
          function l(f) {
            return f && f.__esModule ? f : { default: f };
          }
          function s(f, v) {
            if (!(f instanceof v))
              throw new TypeError("Cannot call a class as a function");
          }
          function u(f, v) {
            if (!f)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return v && (typeof v == "object" || typeof v == "function") ? v : f;
          }
          function c(f, v) {
            if (typeof v != "function" && v !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof v);
            f.prototype = Object.create(v && v.prototype, { constructor: { value: f, enumerable: !1, writable: !0, configurable: !0 } }), v && (Object.setPrototypeOf ? Object.setPrototypeOf(f, v) : f.__proto__ = v);
          }
          var d = function(f) {
            c(v, f);
            function v() {
              return s(this, v), u(this, (v.__proto__ || Object.getPrototypeOf(v)).apply(this, arguments));
            }
            return v;
          }(i.default);
          d.blotName = "underline", d.tagName = "U", r.default = d;
        },
        /* 72 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = /* @__PURE__ */ function() {
            function p(g, y) {
              for (var x = 0; x < y.length; x++) {
                var b = y[x];
                b.enumerable = b.enumerable || !1, b.configurable = !0, "value" in b && (b.writable = !0), Object.defineProperty(g, b.key, b);
              }
            }
            return function(g, y, x) {
              return y && p(g.prototype, y), x && p(g, x), g;
            };
          }(), i = function p(g, y, x) {
            g === null && (g = Function.prototype);
            var b = Object.getOwnPropertyDescriptor(g, y);
            if (b === void 0) {
              var w = Object.getPrototypeOf(g);
              return w === null ? void 0 : p(w, y, x);
            } else {
              if ("value" in b)
                return b.value;
              var D = b.get;
              return D === void 0 ? void 0 : D.call(x);
            }
          }, l = o(0), s = c(l), u = o(27);
          function c(p) {
            return p && p.__esModule ? p : { default: p };
          }
          function d(p, g) {
            if (!(p instanceof g))
              throw new TypeError("Cannot call a class as a function");
          }
          function f(p, g) {
            if (!p)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return g && (typeof g == "object" || typeof g == "function") ? g : p;
          }
          function v(p, g) {
            if (typeof g != "function" && g !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof g);
            p.prototype = Object.create(g && g.prototype, { constructor: { value: p, enumerable: !1, writable: !0, configurable: !0 } }), g && (Object.setPrototypeOf ? Object.setPrototypeOf(p, g) : p.__proto__ = g);
          }
          var h = ["alt", "height", "width"], m = function(p) {
            v(g, p);
            function g() {
              return d(this, g), f(this, (g.__proto__ || Object.getPrototypeOf(g)).apply(this, arguments));
            }
            return a(g, [{
              key: "format",
              value: function(x, b) {
                h.indexOf(x) > -1 ? b ? this.domNode.setAttribute(x, b) : this.domNode.removeAttribute(x) : i(g.prototype.__proto__ || Object.getPrototypeOf(g.prototype), "format", this).call(this, x, b);
              }
            }], [{
              key: "create",
              value: function(x) {
                var b = i(g.__proto__ || Object.getPrototypeOf(g), "create", this).call(this, x);
                return typeof x == "string" && b.setAttribute("src", this.sanitize(x)), b;
              }
            }, {
              key: "formats",
              value: function(x) {
                return h.reduce(function(b, w) {
                  return x.hasAttribute(w) && (b[w] = x.getAttribute(w)), b;
                }, {});
              }
            }, {
              key: "match",
              value: function(x) {
                return /\.(jpe?g|gif|png)$/.test(x) || /^data:image\/.+;base64/.test(x);
              }
            }, {
              key: "sanitize",
              value: function(x) {
                return (0, u.sanitize)(x, ["http", "https", "data"]) ? x : "//:0";
              }
            }, {
              key: "value",
              value: function(x) {
                return x.getAttribute("src");
              }
            }]), g;
          }(s.default.Embed);
          m.blotName = "image", m.tagName = "IMG", r.default = m;
        },
        /* 73 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          });
          var a = /* @__PURE__ */ function() {
            function p(g, y) {
              for (var x = 0; x < y.length; x++) {
                var b = y[x];
                b.enumerable = b.enumerable || !1, b.configurable = !0, "value" in b && (b.writable = !0), Object.defineProperty(g, b.key, b);
              }
            }
            return function(g, y, x) {
              return y && p(g.prototype, y), x && p(g, x), g;
            };
          }(), i = function p(g, y, x) {
            g === null && (g = Function.prototype);
            var b = Object.getOwnPropertyDescriptor(g, y);
            if (b === void 0) {
              var w = Object.getPrototypeOf(g);
              return w === null ? void 0 : p(w, y, x);
            } else {
              if ("value" in b)
                return b.value;
              var D = b.get;
              return D === void 0 ? void 0 : D.call(x);
            }
          }, l = o(4), s = o(27), u = c(s);
          function c(p) {
            return p && p.__esModule ? p : { default: p };
          }
          function d(p, g) {
            if (!(p instanceof g))
              throw new TypeError("Cannot call a class as a function");
          }
          function f(p, g) {
            if (!p)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return g && (typeof g == "object" || typeof g == "function") ? g : p;
          }
          function v(p, g) {
            if (typeof g != "function" && g !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof g);
            p.prototype = Object.create(g && g.prototype, { constructor: { value: p, enumerable: !1, writable: !0, configurable: !0 } }), g && (Object.setPrototypeOf ? Object.setPrototypeOf(p, g) : p.__proto__ = g);
          }
          var h = ["height", "width"], m = function(p) {
            v(g, p);
            function g() {
              return d(this, g), f(this, (g.__proto__ || Object.getPrototypeOf(g)).apply(this, arguments));
            }
            return a(g, [{
              key: "format",
              value: function(x, b) {
                h.indexOf(x) > -1 ? b ? this.domNode.setAttribute(x, b) : this.domNode.removeAttribute(x) : i(g.prototype.__proto__ || Object.getPrototypeOf(g.prototype), "format", this).call(this, x, b);
              }
            }], [{
              key: "create",
              value: function(x) {
                var b = i(g.__proto__ || Object.getPrototypeOf(g), "create", this).call(this, x);
                return b.setAttribute("frameborder", "0"), b.setAttribute("allowfullscreen", !0), b.setAttribute("src", this.sanitize(x)), b;
              }
            }, {
              key: "formats",
              value: function(x) {
                return h.reduce(function(b, w) {
                  return x.hasAttribute(w) && (b[w] = x.getAttribute(w)), b;
                }, {});
              }
            }, {
              key: "sanitize",
              value: function(x) {
                return u.default.sanitize(x);
              }
            }, {
              key: "value",
              value: function(x) {
                return x.getAttribute("src");
              }
            }]), g;
          }(l.BlockEmbed);
          m.blotName = "video", m.className = "ql-video", m.tagName = "IFRAME", r.default = m;
        },
        /* 74 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          }), r.default = r.FormulaBlot = void 0;
          var a = /* @__PURE__ */ function() {
            function x(b, w) {
              for (var D = 0; D < w.length; D++) {
                var E = w[D];
                E.enumerable = E.enumerable || !1, E.configurable = !0, "value" in E && (E.writable = !0), Object.defineProperty(b, E.key, E);
              }
            }
            return function(b, w, D) {
              return w && x(b.prototype, w), D && x(b, D), b;
            };
          }(), i = function x(b, w, D) {
            b === null && (b = Function.prototype);
            var E = Object.getOwnPropertyDescriptor(b, w);
            if (E === void 0) {
              var T = Object.getPrototypeOf(b);
              return T === null ? void 0 : x(T, w, D);
            } else {
              if ("value" in E)
                return E.value;
              var L = E.get;
              return L === void 0 ? void 0 : L.call(D);
            }
          }, l = o(35), s = v(l), u = o(5), c = v(u), d = o(9), f = v(d);
          function v(x) {
            return x && x.__esModule ? x : { default: x };
          }
          function h(x, b) {
            if (!(x instanceof b))
              throw new TypeError("Cannot call a class as a function");
          }
          function m(x, b) {
            if (!x)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return b && (typeof b == "object" || typeof b == "function") ? b : x;
          }
          function p(x, b) {
            if (typeof b != "function" && b !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof b);
            x.prototype = Object.create(b && b.prototype, { constructor: { value: x, enumerable: !1, writable: !0, configurable: !0 } }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(x, b) : x.__proto__ = b);
          }
          var g = function(x) {
            p(b, x);
            function b() {
              return h(this, b), m(this, (b.__proto__ || Object.getPrototypeOf(b)).apply(this, arguments));
            }
            return a(b, null, [{
              key: "create",
              value: function(D) {
                var E = i(b.__proto__ || Object.getPrototypeOf(b), "create", this).call(this, D);
                return typeof D == "string" && (window.katex.render(D, E, {
                  throwOnError: !1,
                  errorColor: "#f00"
                }), E.setAttribute("data-value", D)), E;
              }
            }, {
              key: "value",
              value: function(D) {
                return D.getAttribute("data-value");
              }
            }]), b;
          }(s.default);
          g.blotName = "formula", g.className = "ql-formula", g.tagName = "SPAN";
          var y = function(x) {
            p(b, x), a(b, null, [{
              key: "register",
              value: function() {
                c.default.register(g, !0);
              }
            }]);
            function b() {
              h(this, b);
              var w = m(this, (b.__proto__ || Object.getPrototypeOf(b)).call(this));
              if (window.katex == null)
                throw new Error("Formula module requires KaTeX.");
              return w;
            }
            return b;
          }(f.default);
          r.FormulaBlot = g, r.default = y;
        },
        /* 75 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          }), r.default = r.CodeToken = r.CodeBlock = void 0;
          var a = /* @__PURE__ */ function() {
            function D(E, T) {
              for (var L = 0; L < T.length; L++) {
                var S = T[L];
                S.enumerable = S.enumerable || !1, S.configurable = !0, "value" in S && (S.writable = !0), Object.defineProperty(E, S.key, S);
              }
            }
            return function(E, T, L) {
              return T && D(E.prototype, T), L && D(E, L), E;
            };
          }(), i = function D(E, T, L) {
            E === null && (E = Function.prototype);
            var S = Object.getOwnPropertyDescriptor(E, T);
            if (S === void 0) {
              var A = Object.getPrototypeOf(E);
              return A === null ? void 0 : D(A, T, L);
            } else {
              if ("value" in S)
                return S.value;
              var C = S.get;
              return C === void 0 ? void 0 : C.call(L);
            }
          }, l = o(0), s = m(l), u = o(5), c = m(u), d = o(9), f = m(d), v = o(13), h = m(v);
          function m(D) {
            return D && D.__esModule ? D : { default: D };
          }
          function p(D, E) {
            if (!(D instanceof E))
              throw new TypeError("Cannot call a class as a function");
          }
          function g(D, E) {
            if (!D)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return E && (typeof E == "object" || typeof E == "function") ? E : D;
          }
          function y(D, E) {
            if (typeof E != "function" && E !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof E);
            D.prototype = Object.create(E && E.prototype, { constructor: { value: D, enumerable: !1, writable: !0, configurable: !0 } }), E && (Object.setPrototypeOf ? Object.setPrototypeOf(D, E) : D.__proto__ = E);
          }
          var x = function(D) {
            y(E, D);
            function E() {
              return p(this, E), g(this, (E.__proto__ || Object.getPrototypeOf(E)).apply(this, arguments));
            }
            return a(E, [{
              key: "replaceWith",
              value: function(L) {
                this.domNode.textContent = this.domNode.textContent, this.attach(), i(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "replaceWith", this).call(this, L);
              }
            }, {
              key: "highlight",
              value: function(L) {
                var S = this.domNode.textContent;
                this.cachedText !== S && ((S.trim().length > 0 || this.cachedText == null) && (this.domNode.innerHTML = L(S), this.domNode.normalize(), this.attach()), this.cachedText = S);
              }
            }]), E;
          }(h.default);
          x.className = "ql-syntax";
          var b = new s.default.Attributor.Class("token", "hljs", {
            scope: s.default.Scope.INLINE
          }), w = function(D) {
            y(E, D), a(E, null, [{
              key: "register",
              value: function() {
                c.default.register(b, !0), c.default.register(x, !0);
              }
            }]);
            function E(T, L) {
              p(this, E);
              var S = g(this, (E.__proto__ || Object.getPrototypeOf(E)).call(this, T, L));
              if (typeof S.options.highlight != "function")
                throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");
              var A = null;
              return S.quill.on(c.default.events.SCROLL_OPTIMIZE, function() {
                clearTimeout(A), A = setTimeout(function() {
                  S.highlight(), A = null;
                }, S.options.interval);
              }), S.highlight(), S;
            }
            return a(E, [{
              key: "highlight",
              value: function() {
                var L = this;
                if (!this.quill.selection.composing) {
                  this.quill.update(c.default.sources.USER);
                  var S = this.quill.getSelection();
                  this.quill.scroll.descendants(x).forEach(function(A) {
                    A.highlight(L.options.highlight);
                  }), this.quill.update(c.default.sources.SILENT), S != null && this.quill.setSelection(S, c.default.sources.SILENT);
                }
              }
            }]), E;
          }(f.default);
          w.DEFAULTS = {
            highlight: function() {
              return window.hljs == null ? null : function(D) {
                var E = window.hljs.highlightAuto(D);
                return E.value;
              };
            }(),
            interval: 1e3
          }, r.CodeBlock = x, r.CodeToken = b, r.default = w;
        },
        /* 76 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>';
        },
        /* 77 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>';
        },
        /* 78 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>';
        },
        /* 79 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>';
        },
        /* 80 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>';
        },
        /* 81 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>';
        },
        /* 82 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>';
        },
        /* 83 */
        /***/
        function(n, r) {
          n.exports = '<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>';
        },
        /* 84 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>';
        },
        /* 85 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>';
        },
        /* 86 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>';
        },
        /* 87 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>';
        },
        /* 88 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>';
        },
        /* 89 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>';
        },
        /* 90 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>';
        },
        /* 91 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>';
        },
        /* 92 */
        /***/
        function(n, r) {
          n.exports = '<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>';
        },
        /* 93 */
        /***/
        function(n, r) {
          n.exports = '<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>';
        },
        /* 94 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>';
        },
        /* 95 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>';
        },
        /* 96 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>';
        },
        /* 97 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>';
        },
        /* 98 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>';
        },
        /* 99 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>';
        },
        /* 100 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>';
        },
        /* 101 */
        /***/
        function(n, r) {
          n.exports = '<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>';
        },
        /* 102 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>';
        },
        /* 103 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>';
        },
        /* 104 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>';
        },
        /* 105 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>';
        },
        /* 106 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>';
        },
        /* 107 */
        /***/
        function(n, r) {
          n.exports = '<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>';
        },
        /* 108 */
        /***/
        function(n, r, o) {
          Object.defineProperty(r, "__esModule", {
            value: !0
          }), r.default = r.BubbleTooltip = void 0;
          var a = function E(T, L, S) {
            T === null && (T = Function.prototype);
            var A = Object.getOwnPropertyDescriptor(T, L);
            if (A === void 0) {
              var C = Object.getPrototypeOf(T);
              return C === null ? void 0 : E(C, L, S);
            } else {
              if ("value" in A)
                return A.value;
              var k = A.get;
              return k === void 0 ? void 0 : k.call(S);
            }
          }, i = /* @__PURE__ */ function() {
            function E(T, L) {
              for (var S = 0; S < L.length; S++) {
                var A = L[S];
                A.enumerable = A.enumerable || !1, A.configurable = !0, "value" in A && (A.writable = !0), Object.defineProperty(T, A.key, A);
              }
            }
            return function(T, L, S) {
              return L && E(T.prototype, L), S && E(T, S), T;
            };
          }(), l = o(3), s = p(l), u = o(8), c = p(u), d = o(43), f = p(d), v = o(15), h = o(41), m = p(h);
          function p(E) {
            return E && E.__esModule ? E : { default: E };
          }
          function g(E, T) {
            if (!(E instanceof T))
              throw new TypeError("Cannot call a class as a function");
          }
          function y(E, T) {
            if (!E)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return T && (typeof T == "object" || typeof T == "function") ? T : E;
          }
          function x(E, T) {
            if (typeof T != "function" && T !== null)
              throw new TypeError("Super expression must either be null or a function, not " + typeof T);
            E.prototype = Object.create(T && T.prototype, { constructor: { value: E, enumerable: !1, writable: !0, configurable: !0 } }), T && (Object.setPrototypeOf ? Object.setPrototypeOf(E, T) : E.__proto__ = T);
          }
          var b = [["bold", "italic", "link"], [{ header: 1 }, { header: 2 }, "blockquote"]], w = function(E) {
            x(T, E);
            function T(L, S) {
              g(this, T), S.modules.toolbar != null && S.modules.toolbar.container == null && (S.modules.toolbar.container = b);
              var A = y(this, (T.__proto__ || Object.getPrototypeOf(T)).call(this, L, S));
              return A.quill.container.classList.add("ql-bubble"), A;
            }
            return i(T, [{
              key: "extendToolbar",
              value: function(S) {
                this.tooltip = new D(this.quill, this.options.bounds), this.tooltip.root.appendChild(S.container), this.buildButtons([].slice.call(S.container.querySelectorAll("button")), m.default), this.buildPickers([].slice.call(S.container.querySelectorAll("select")), m.default);
              }
            }]), T;
          }(f.default);
          w.DEFAULTS = (0, s.default)(!0, {}, f.default.DEFAULTS, {
            modules: {
              toolbar: {
                handlers: {
                  link: function(T) {
                    T ? this.quill.theme.tooltip.edit() : this.quill.format("link", !1);
                  }
                }
              }
            }
          });
          var D = function(E) {
            x(T, E);
            function T(L, S) {
              g(this, T);
              var A = y(this, (T.__proto__ || Object.getPrototypeOf(T)).call(this, L, S));
              return A.quill.on(c.default.events.EDITOR_CHANGE, function(C, k, I, N) {
                if (C === c.default.events.SELECTION_CHANGE)
                  if (k != null && k.length > 0 && N === c.default.sources.USER) {
                    A.show(), A.root.style.left = "0px", A.root.style.width = "", A.root.style.width = A.root.offsetWidth + "px";
                    var F = A.quill.getLines(k.index, k.length);
                    if (F.length === 1)
                      A.position(A.quill.getBounds(k));
                    else {
                      var V = F[F.length - 1], G = A.quill.getIndex(V), z = Math.min(V.length() - 1, k.index + k.length - G), M = A.quill.getBounds(new v.Range(G, z));
                      A.position(M);
                    }
                  } else
                    document.activeElement !== A.textbox && A.quill.hasFocus() && A.hide();
              }), A;
            }
            return i(T, [{
              key: "listen",
              value: function() {
                var S = this;
                a(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "listen", this).call(this), this.root.querySelector(".ql-close").addEventListener("click", function() {
                  S.root.classList.remove("ql-editing");
                }), this.quill.on(c.default.events.SCROLL_OPTIMIZE, function() {
                  setTimeout(function() {
                    if (!S.root.classList.contains("ql-hidden")) {
                      var A = S.quill.getSelection();
                      A != null && S.position(S.quill.getBounds(A));
                    }
                  }, 1);
                });
              }
            }, {
              key: "cancel",
              value: function() {
                this.show();
              }
            }, {
              key: "position",
              value: function(S) {
                var A = a(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "position", this).call(this, S), C = this.root.querySelector(".ql-tooltip-arrow");
                if (C.style.marginLeft = "", A === 0)
                  return A;
                C.style.marginLeft = -1 * A - C.offsetWidth / 2 + "px";
              }
            }]), T;
          }(d.BaseTooltip);
          D.TEMPLATE = ['<span class="ql-tooltip-arrow"></span>', '<div class="ql-tooltip-editor">', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-close"></a>', "</div>"].join(""), r.BubbleTooltip = D, r.default = w;
        },
        /* 109 */
        /***/
        function(n, r, o) {
          n.exports = o(63);
        }
        /******/
      ]).default
    );
  });
})(Ch);
var Hw = Ch.exports;
const es = /* @__PURE__ */ Js(Hw);
var Ln = -1, En = 1, Jt = 0;
function ca(e, t, n, r) {
  if (e === t)
    return e ? [[Jt, e]] : [];
  if (n != null) {
    var o = Kw(e, t, n);
    if (o)
      return o;
  }
  var a = wu(e, t), i = e.substring(0, a);
  e = e.substring(a), t = t.substring(a), a = xu(e, t);
  var l = e.substring(e.length - a);
  e = e.substring(0, e.length - a), t = t.substring(0, t.length - a);
  var s = Yw(e, t);
  return i && s.unshift([Jt, i]), l && s.push([Jt, l]), Eh(s, r), s;
}
function Yw(e, t) {
  var n;
  if (!e)
    return [[En, t]];
  if (!t)
    return [[Ln, e]];
  var r = e.length > t.length ? e : t, o = e.length > t.length ? t : e, a = r.indexOf(o);
  if (a !== -1)
    return n = [
      [En, r.substring(0, a)],
      [Jt, o],
      [En, r.substring(a + o.length)]
    ], e.length > t.length && (n[0][0] = n[2][0] = Ln), n;
  if (o.length === 1)
    return [[Ln, e], [En, t]];
  var i = Ww(e, t);
  if (i) {
    var l = i[0], s = i[1], u = i[2], c = i[3], d = i[4], f = ca(l, u), v = ca(s, c);
    return f.concat([[Jt, d]], v);
  }
  return Qw(e, t);
}
function Qw(e, t) {
  for (var n = e.length, r = t.length, o = Math.ceil((n + r) / 2), a = o, i = 2 * o, l = new Array(i), s = new Array(i), u = 0; u < i; u++)
    l[u] = -1, s[u] = -1;
  l[a + 1] = 0, s[a + 1] = 0;
  for (var c = n - r, d = c % 2 !== 0, f = 0, v = 0, h = 0, m = 0, p = 0; p < o; p++) {
    for (var g = -p + f; g <= p - v; g += 2) {
      var y = a + g, x;
      g === -p || g !== p && l[y - 1] < l[y + 1] ? x = l[y + 1] : x = l[y - 1] + 1;
      for (var b = x - g; x < n && b < r && e.charAt(x) === t.charAt(b); )
        x++, b++;
      if (l[y] = x, x > n)
        v += 2;
      else if (b > r)
        f += 2;
      else if (d) {
        var w = a + c - g;
        if (w >= 0 && w < i && s[w] !== -1) {
          var D = n - s[w];
          if (x >= D)
            return Xc(e, t, x, b);
        }
      }
    }
    for (var E = -p + h; E <= p - m; E += 2) {
      var w = a + E, D;
      E === -p || E !== p && s[w - 1] < s[w + 1] ? D = s[w + 1] : D = s[w - 1] + 1;
      for (var T = D - E; D < n && T < r && e.charAt(n - D - 1) === t.charAt(r - T - 1); )
        D++, T++;
      if (s[w] = D, D > n)
        m += 2;
      else if (T > r)
        h += 2;
      else if (!d) {
        var y = a + c - E;
        if (y >= 0 && y < i && l[y] !== -1) {
          var x = l[y], b = a + x - y;
          if (D = n - D, x >= D)
            return Xc(e, t, x, b);
        }
      }
    }
  }
  return [[Ln, e], [En, t]];
}
function Xc(e, t, n, r) {
  var o = e.substring(0, n), a = t.substring(0, r), i = e.substring(n), l = t.substring(r), s = ca(o, a), u = ca(i, l);
  return s.concat(u);
}
function wu(e, t) {
  if (!e || !t || e.charAt(0) !== t.charAt(0))
    return 0;
  for (var n = 0, r = Math.min(e.length, t.length), o = r, a = 0; n < o; )
    e.substring(a, o) == t.substring(a, o) ? (n = o, a = n) : r = o, o = Math.floor((r - n) / 2 + n);
  return Sh(e.charCodeAt(o - 1)) && o--, o;
}
function xu(e, t) {
  if (!e || !t || e.slice(-1) !== t.slice(-1))
    return 0;
  for (var n = 0, r = Math.min(e.length, t.length), o = r, a = 0; n < o; )
    e.substring(e.length - o, e.length - a) == t.substring(t.length - o, t.length - a) ? (n = o, a = n) : r = o, o = Math.floor((r - n) / 2 + n);
  return Th(e.charCodeAt(e.length - o)) && o--, o;
}
function Ww(e, t) {
  var n = e.length > t.length ? e : t, r = e.length > t.length ? t : e;
  if (n.length < 4 || r.length * 2 < n.length)
    return null;
  function o(v, h, m) {
    for (var p = v.substring(m, m + Math.floor(v.length / 4)), g = -1, y = "", x, b, w, D; (g = h.indexOf(p, g + 1)) !== -1; ) {
      var E = wu(
        v.substring(m),
        h.substring(g)
      ), T = xu(
        v.substring(0, m),
        h.substring(0, g)
      );
      y.length < T + E && (y = h.substring(
        g - T,
        g
      ) + h.substring(g, g + E), x = v.substring(0, m - T), b = v.substring(m + E), w = h.substring(0, g - T), D = h.substring(g + E));
    }
    return y.length * 2 >= v.length ? [
      x,
      b,
      w,
      D,
      y
    ] : null;
  }
  var a = o(n, r, Math.ceil(n.length / 4)), i = o(n, r, Math.ceil(n.length / 2)), l;
  if (!a && !i)
    return null;
  i ? a ? l = a[4].length > i[4].length ? a : i : l = i : l = a;
  var s, u, c, d;
  e.length > t.length ? (s = l[0], u = l[1], c = l[2], d = l[3]) : (c = l[0], d = l[1], s = l[2], u = l[3]);
  var f = l[4];
  return [s, u, c, d, f];
}
function Eh(e, t) {
  e.push([Jt, ""]);
  for (var n = 0, r = 0, o = 0, a = "", i = "", l; n < e.length; ) {
    if (n < e.length - 1 && !e[n][1]) {
      e.splice(n, 1);
      continue;
    }
    switch (e[n][0]) {
      case En:
        o++, i += e[n][1], n++;
        break;
      case Ln:
        r++, a += e[n][1], n++;
        break;
      case Jt:
        var s = n - o - r - 1;
        if (t) {
          if (s >= 0 && kh(e[s][1])) {
            var u = e[s][1].slice(-1);
            if (e[s][1] = e[s][1].slice(0, -1), a = u + a, i = u + i, !e[s][1]) {
              e.splice(s, 1), n--;
              var c = s - 1;
              e[c] && e[c][0] === En && (o++, i = e[c][1] + i, c--), e[c] && e[c][0] === Ln && (r++, a = e[c][1] + a, c--), s = c;
            }
          }
          if (Dh(e[n][1])) {
            var u = e[n][1].charAt(0);
            e[n][1] = e[n][1].slice(1), a += u, i += u;
          }
        }
        if (n < e.length - 1 && !e[n][1]) {
          e.splice(n, 1);
          break;
        }
        if (a.length > 0 || i.length > 0) {
          a.length > 0 && i.length > 0 && (l = wu(i, a), l !== 0 && (s >= 0 ? e[s][1] += i.substring(0, l) : (e.splice(0, 0, [Jt, i.substring(0, l)]), n++), i = i.substring(l), a = a.substring(l)), l = xu(i, a), l !== 0 && (e[n][1] = i.substring(i.length - l) + e[n][1], i = i.substring(0, i.length - l), a = a.substring(0, a.length - l)));
          var d = o + r;
          a.length === 0 && i.length === 0 ? (e.splice(n - d, d), n = n - d) : a.length === 0 ? (e.splice(n - d, d, [En, i]), n = n - d + 1) : i.length === 0 ? (e.splice(n - d, d, [Ln, a]), n = n - d + 1) : (e.splice(n - d, d, [Ln, a], [En, i]), n = n - d + 2);
        }
        n !== 0 && e[n - 1][0] === Jt ? (e[n - 1][1] += e[n][1], e.splice(n, 1)) : n++, o = 0, r = 0, a = "", i = "";
        break;
    }
  }
  e[e.length - 1][1] === "" && e.pop();
  var f = !1;
  for (n = 1; n < e.length - 1; )
    e[n - 1][0] === Jt && e[n + 1][0] === Jt && (e[n][1].substring(e[n][1].length - e[n - 1][1].length) === e[n - 1][1] ? (e[n][1] = e[n - 1][1] + e[n][1].substring(0, e[n][1].length - e[n - 1][1].length), e[n + 1][1] = e[n - 1][1] + e[n + 1][1], e.splice(n - 1, 1), f = !0) : e[n][1].substring(0, e[n + 1][1].length) == e[n + 1][1] && (e[n - 1][1] += e[n + 1][1], e[n][1] = e[n][1].substring(e[n + 1][1].length) + e[n + 1][1], e.splice(n + 1, 1), f = !0)), n++;
  f && Eh(e, t);
}
function Sh(e) {
  return e >= 55296 && e <= 56319;
}
function Th(e) {
  return e >= 56320 && e <= 57343;
}
function Dh(e) {
  return Th(e.charCodeAt(0));
}
function kh(e) {
  return Sh(e.charCodeAt(e.length - 1));
}
function Gw(e) {
  for (var t = [], n = 0; n < e.length; n++)
    e[n][1].length > 0 && t.push(e[n]);
  return t;
}
function ts(e, t, n, r) {
  return kh(e) || Dh(r) ? null : Gw([
    [Jt, e],
    [Ln, t],
    [En, n],
    [Jt, r]
  ]);
}
function Kw(e, t, n) {
  var r = typeof n == "number" ? { index: n, length: 0 } : n.oldRange, o = typeof n == "number" ? null : n.newRange, a = e.length, i = t.length;
  if (r.length === 0 && (o === null || o.length === 0)) {
    var l = r.index, s = e.slice(0, l), u = e.slice(l), c = o ? o.index : null;
    e: {
      var d = l + i - a;
      if (c !== null && c !== d || d < 0 || d > i)
        break e;
      var f = t.slice(0, d), v = t.slice(d);
      if (v !== u)
        break e;
      var h = Math.min(l, d), m = s.slice(0, h), p = f.slice(0, h);
      if (m !== p)
        break e;
      var g = s.slice(h), y = f.slice(h);
      return ts(m, g, y, u);
    }
    e: {
      if (c !== null && c !== l)
        break e;
      var x = l, f = t.slice(0, x), v = t.slice(x);
      if (f !== s)
        break e;
      var b = Math.min(a - x, i - x), w = u.slice(u.length - b), D = v.slice(v.length - b);
      if (w !== D)
        break e;
      var g = u.slice(0, u.length - b), y = v.slice(0, v.length - b);
      return ts(s, g, y, w);
    }
  }
  if (r.length > 0 && o && o.length === 0)
    e: {
      var m = e.slice(0, r.index), w = e.slice(r.index + r.length), h = m.length, b = w.length;
      if (i < h + b)
        break e;
      var p = t.slice(0, h), D = t.slice(i - b);
      if (m !== p || w !== D)
        break e;
      var g = e.slice(h, a - b), y = t.slice(h, i - b);
      return ts(m, g, y, w);
    }
  return null;
}
function $i(e, t, n) {
  return ca(e, t, n, !0);
}
$i.INSERT = En;
$i.DELETE = Ln;
$i.EQUAL = Jt;
var Xw = $i, xi = { exports: {} };
xi.exports;
(function(e, t) {
  var n = 200, r = "__lodash_hash_undefined__", o = 9007199254740991, a = "[object Arguments]", i = "[object Array]", l = "[object Boolean]", s = "[object Date]", u = "[object Error]", c = "[object Function]", d = "[object GeneratorFunction]", f = "[object Map]", v = "[object Number]", h = "[object Object]", m = "[object Promise]", p = "[object RegExp]", g = "[object Set]", y = "[object String]", x = "[object Symbol]", b = "[object WeakMap]", w = "[object ArrayBuffer]", D = "[object DataView]", E = "[object Float32Array]", T = "[object Float64Array]", L = "[object Int8Array]", S = "[object Int16Array]", A = "[object Int32Array]", C = "[object Uint8Array]", k = "[object Uint8ClampedArray]", I = "[object Uint16Array]", N = "[object Uint32Array]", F = /[\\^$.*+?()[\]{}|]/g, V = /\w*$/, G = /^\[object .+?Constructor\]$/, z = /^(?:0|[1-9]\d*)$/, M = {};
  M[a] = M[i] = M[w] = M[D] = M[l] = M[s] = M[E] = M[T] = M[L] = M[S] = M[A] = M[f] = M[v] = M[h] = M[p] = M[g] = M[y] = M[x] = M[C] = M[k] = M[I] = M[N] = !0, M[u] = M[c] = M[b] = !1;
  var P = typeof Tt == "object" && Tt && Tt.Object === Object && Tt, R = typeof self == "object" && self && self.Object === Object && self, q = P || R || Function("return this")(), Y = t && !t.nodeType && t, Q = Y && !0 && e && !e.nodeType && e, B = Q && Q.exports === Y;
  function H(O, j) {
    return O.set(j[0], j[1]), O;
  }
  function Z(O, j) {
    return O.add(j), O;
  }
  function _(O, j) {
    for (var K = -1, le = O ? O.length : 0; ++K < le && j(O[K], K, O) !== !1; )
      ;
    return O;
  }
  function re(O, j) {
    for (var K = -1, le = j.length, Be = O.length; ++K < le; )
      O[Be + K] = j[K];
    return O;
  }
  function he(O, j, K, le) {
    for (var Be = -1, Ee = O ? O.length : 0; ++Be < Ee; )
      K = j(K, O[Be], Be, O);
    return K;
  }
  function be(O, j) {
    for (var K = -1, le = Array(O); ++K < O; )
      le[K] = j(K);
    return le;
  }
  function Oe(O, j) {
    return O == null ? void 0 : O[j];
  }
  function Pe(O) {
    var j = !1;
    if (O != null && typeof O.toString != "function")
      try {
        j = !!(O + "");
      } catch {
      }
    return j;
  }
  function Ve(O) {
    var j = -1, K = Array(O.size);
    return O.forEach(function(le, Be) {
      K[++j] = [Be, le];
    }), K;
  }
  function $e(O, j) {
    return function(K) {
      return O(j(K));
    };
  }
  function Je(O) {
    var j = -1, K = Array(O.size);
    return O.forEach(function(le) {
      K[++j] = le;
    }), K;
  }
  var oe = Array.prototype, ie = Function.prototype, pe = Object.prototype, me = q["__core-js_shared__"], ce = function() {
    var O = /[^.]+$/.exec(me && me.keys && me.keys.IE_PROTO || "");
    return O ? "Symbol(src)_1." + O : "";
  }(), ke = ie.toString, Ce = pe.hasOwnProperty, De = pe.toString, ft = RegExp(
    "^" + ke.call(Ce).replace(F, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
  ), dt = B ? q.Buffer : void 0, Ge = q.Symbol, wn = q.Uint8Array, Ye = $e(Object.getPrototypeOf, Object), kt = Object.create, zn = pe.propertyIsEnumerable, ir = oe.splice, Un = Object.getOwnPropertySymbols, xn = dt ? dt.isBuffer : void 0, Hn = $e(Object.keys, Object), de = An(q, "DataView"), W = An(q, "Map"), ue = An(q, "Promise"), ye = An(q, "Set"), Me = An(q, "WeakMap"), et = An(Object, "create"), bt = Ut(de), wt = Ut(W), un = Ut(ue), cn = Ut(ye), Yn = Ut(Me), gt = Ge ? Ge.prototype : void 0, lr = gt ? gt.valueOf : void 0;
  function Gt(O) {
    var j = -1, K = O ? O.length : 0;
    for (this.clear(); ++j < K; ) {
      var le = O[j];
      this.set(le[0], le[1]);
    }
  }
  function Qn() {
    this.__data__ = et ? et(null) : {};
  }
  function Wn(O) {
    return this.has(O) && delete this.__data__[O];
  }
  function Mo(O) {
    var j = this.__data__;
    if (et) {
      var K = j[O];
      return K === r ? void 0 : K;
    }
    return Ce.call(j, O) ? j[O] : void 0;
  }
  function Ra(O) {
    var j = this.__data__;
    return et ? j[O] !== void 0 : Ce.call(j, O);
  }
  function Lo(O, j) {
    var K = this.__data__;
    return K[O] = et && j === void 0 ? r : j, this;
  }
  Gt.prototype.clear = Qn, Gt.prototype.delete = Wn, Gt.prototype.get = Mo, Gt.prototype.has = Ra, Gt.prototype.set = Lo;
  function Pt(O) {
    var j = -1, K = O ? O.length : 0;
    for (this.clear(); ++j < K; ) {
      var le = O[j];
      this.set(le[0], le[1]);
    }
  }
  function sl() {
    this.__data__ = [];
  }
  function ul(O) {
    var j = this.__data__, K = Xr(j, O);
    if (K < 0)
      return !1;
    var le = j.length - 1;
    return K == le ? j.pop() : ir.call(j, K, 1), !0;
  }
  function cl(O) {
    var j = this.__data__, K = Xr(j, O);
    return K < 0 ? void 0 : j[K][1];
  }
  function fl(O) {
    return Xr(this.__data__, O) > -1;
  }
  function dl(O, j) {
    var K = this.__data__, le = Xr(K, O);
    return le < 0 ? K.push([O, j]) : K[le][1] = j, this;
  }
  Pt.prototype.clear = sl, Pt.prototype.delete = ul, Pt.prototype.get = cl, Pt.prototype.has = fl, Pt.prototype.set = dl;
  function Mt(O) {
    var j = -1, K = O ? O.length : 0;
    for (this.clear(); ++j < K; ) {
      var le = O[j];
      this.set(le[0], le[1]);
    }
  }
  function vl() {
    this.__data__ = {
      hash: new Gt(),
      map: new (W || Pt)(),
      string: new Gt()
    };
  }
  function hl(O) {
    return Tr(this, O).delete(O);
  }
  function pl(O) {
    return Tr(this, O).get(O);
  }
  function gl(O) {
    return Tr(this, O).has(O);
  }
  function ml(O, j) {
    return Tr(this, O).set(O, j), this;
  }
  Mt.prototype.clear = vl, Mt.prototype.delete = hl, Mt.prototype.get = pl, Mt.prototype.has = gl, Mt.prototype.set = ml;
  function Kt(O) {
    this.__data__ = new Pt(O);
  }
  function yl() {
    this.__data__ = new Pt();
  }
  function bl(O) {
    return this.__data__.delete(O);
  }
  function wl(O) {
    return this.__data__.get(O);
  }
  function xl(O) {
    return this.__data__.has(O);
  }
  function Al(O, j) {
    var K = this.__data__;
    if (K instanceof Pt) {
      var le = K.__data__;
      if (!W || le.length < n - 1)
        return le.push([O, j]), this;
      K = this.__data__ = new Mt(le);
    }
    return K.set(O, j), this;
  }
  Kt.prototype.clear = yl, Kt.prototype.delete = bl, Kt.prototype.get = wl, Kt.prototype.has = xl, Kt.prototype.set = Al;
  function Kr(O, j) {
    var K = jo(O) || Jr(O) ? be(O.length, String) : [], le = K.length, Be = !!le;
    for (var Ee in O)
      Ce.call(O, Ee) && !(Be && (Ee == "length" || Bl(Ee, le))) && K.push(Ee);
    return K;
  }
  function Ba(O, j, K) {
    var le = O[j];
    (!(Ce.call(O, j) && za(le, K)) || K === void 0 && !(j in O)) && (O[j] = K);
  }
  function Xr(O, j) {
    for (var K = O.length; K--; )
      if (za(O[K][0], j))
        return K;
    return -1;
  }
  function In(O, j) {
    return O && Fo(j, Vo(j), O);
  }
  function Ro(O, j, K, le, Be, Ee, _e) {
    var Xe;
    if (le && (Xe = Ee ? le(O, Be, Ee, _e) : le(O)), Xe !== void 0)
      return Xe;
    if (!Mn(O))
      return O;
    var At = jo(O);
    if (At) {
      if (Xe = Ll(O), !j)
        return Il(O, Xe);
    } else {
      var nt = Kn(O), Lt = nt == c || nt == d;
      if (Ua(O))
        return Zr(O, j);
      if (nt == h || nt == a || Lt && !Ee) {
        if (Pe(O))
          return Ee ? O : {};
        if (Xe = Nn(Lt ? {} : O), !j)
          return Nl(O, In(Xe, O));
      } else {
        if (!M[nt])
          return Ee ? O : {};
        Xe = Rl(O, nt, Ro, j);
      }
    }
    _e || (_e = new Kt());
    var Xt = _e.get(O);
    if (Xt)
      return Xt;
    if (_e.set(O, Xe), !At)
      var St = K ? Ml(O) : Vo(O);
    return _(St || O, function(Rt, It) {
      St && (It = Rt, Rt = O[It]), Ba(Xe, It, Ro(Rt, j, K, le, It, O, _e));
    }), Xe;
  }
  function Ol(O) {
    return Mn(O) ? kt(O) : {};
  }
  function Cl(O, j, K) {
    var le = j(O);
    return jo(O) ? le : re(le, K(O));
  }
  function El(O) {
    return De.call(O);
  }
  function Sl(O) {
    if (!Mn(O) || jl(O))
      return !1;
    var j = qo(O) || Pe(O) ? ft : G;
    return j.test(Ut(O));
  }
  function Tl(O) {
    if (!qa(O))
      return Hn(O);
    var j = [];
    for (var K in Object(O))
      Ce.call(O, K) && K != "constructor" && j.push(K);
    return j;
  }
  function Zr(O, j) {
    if (j)
      return O.slice();
    var K = new O.constructor(O.length);
    return O.copy(K), K;
  }
  function Bo(O) {
    var j = new O.constructor(O.byteLength);
    return new wn(j).set(new wn(O)), j;
  }
  function Sr(O, j) {
    var K = j ? Bo(O.buffer) : O.buffer;
    return new O.constructor(K, O.byteOffset, O.byteLength);
  }
  function Fa(O, j, K) {
    var le = j ? K(Ve(O), !0) : Ve(O);
    return he(le, H, new O.constructor());
  }
  function ja(O) {
    var j = new O.constructor(O.source, V.exec(O));
    return j.lastIndex = O.lastIndex, j;
  }
  function Dl(O, j, K) {
    var le = j ? K(Je(O), !0) : Je(O);
    return he(le, Z, new O.constructor());
  }
  function kl(O) {
    return lr ? Object(lr.call(O)) : {};
  }
  function Pl(O, j) {
    var K = j ? Bo(O.buffer) : O.buffer;
    return new O.constructor(K, O.byteOffset, O.length);
  }
  function Il(O, j) {
    var K = -1, le = O.length;
    for (j || (j = Array(le)); ++K < le; )
      j[K] = O[K];
    return j;
  }
  function Fo(O, j, K, le) {
    K || (K = {});
    for (var Be = -1, Ee = j.length; ++Be < Ee; ) {
      var _e = j[Be], Xe = void 0;
      Ba(K, _e, Xe === void 0 ? O[_e] : Xe);
    }
    return K;
  }
  function Nl(O, j) {
    return Fo(O, Gn(O), j);
  }
  function Ml(O) {
    return Cl(O, Vo, Gn);
  }
  function Tr(O, j) {
    var K = O.__data__;
    return Fl(j) ? K[typeof j == "string" ? "string" : "hash"] : K.map;
  }
  function An(O, j) {
    var K = Oe(O, j);
    return Sl(K) ? K : void 0;
  }
  var Gn = Un ? $e(Un, Object) : Vl, Kn = El;
  (de && Kn(new de(new ArrayBuffer(1))) != D || W && Kn(new W()) != f || ue && Kn(ue.resolve()) != m || ye && Kn(new ye()) != g || Me && Kn(new Me()) != b) && (Kn = function(O) {
    var j = De.call(O), K = j == h ? O.constructor : void 0, le = K ? Ut(K) : void 0;
    if (le)
      switch (le) {
        case bt:
          return D;
        case wt:
          return f;
        case un:
          return m;
        case cn:
          return g;
        case Yn:
          return b;
      }
    return j;
  });
  function Ll(O) {
    var j = O.length, K = O.constructor(j);
    return j && typeof O[0] == "string" && Ce.call(O, "index") && (K.index = O.index, K.input = O.input), K;
  }
  function Nn(O) {
    return typeof O.constructor == "function" && !qa(O) ? Ol(Ye(O)) : {};
  }
  function Rl(O, j, K, le) {
    var Be = O.constructor;
    switch (j) {
      case w:
        return Bo(O);
      case l:
      case s:
        return new Be(+O);
      case D:
        return Sr(O, le);
      case E:
      case T:
      case L:
      case S:
      case A:
      case C:
      case k:
      case I:
      case N:
        return Pl(O, le);
      case f:
        return Fa(O, le, K);
      case v:
      case y:
        return new Be(O);
      case p:
        return ja(O);
      case g:
        return Dl(O, le, K);
      case x:
        return kl(O);
    }
  }
  function Bl(O, j) {
    return j = j ?? o, !!j && (typeof O == "number" || z.test(O)) && O > -1 && O % 1 == 0 && O < j;
  }
  function Fl(O) {
    var j = typeof O;
    return j == "string" || j == "number" || j == "symbol" || j == "boolean" ? O !== "__proto__" : O === null;
  }
  function jl(O) {
    return !!ce && ce in O;
  }
  function qa(O) {
    var j = O && O.constructor, K = typeof j == "function" && j.prototype || pe;
    return O === K;
  }
  function Ut(O) {
    if (O != null) {
      try {
        return ke.call(O);
      } catch {
      }
      try {
        return O + "";
      } catch {
      }
    }
    return "";
  }
  function Va(O) {
    return Ro(O, !0, !0);
  }
  function za(O, j) {
    return O === j || O !== O && j !== j;
  }
  function Jr(O) {
    return ql(O) && Ce.call(O, "callee") && (!zn.call(O, "callee") || De.call(O) == a);
  }
  var jo = Array.isArray;
  function _r(O) {
    return O != null && Ha(O.length) && !qo(O);
  }
  function ql(O) {
    return Ya(O) && _r(O);
  }
  var Ua = xn || zl;
  function qo(O) {
    var j = Mn(O) ? De.call(O) : "";
    return j == c || j == d;
  }
  function Ha(O) {
    return typeof O == "number" && O > -1 && O % 1 == 0 && O <= o;
  }
  function Mn(O) {
    var j = typeof O;
    return !!O && (j == "object" || j == "function");
  }
  function Ya(O) {
    return !!O && typeof O == "object";
  }
  function Vo(O) {
    return _r(O) ? Kr(O) : Tl(O);
  }
  function Vl() {
    return [];
  }
  function zl() {
    return !1;
  }
  e.exports = Va;
})(xi, xi.exports);
var Ph = xi.exports, Ai = { exports: {} };
Ai.exports;
(function(e, t) {
  var n = 200, r = "__lodash_hash_undefined__", o = 1, a = 2, i = 9007199254740991, l = "[object Arguments]", s = "[object Array]", u = "[object AsyncFunction]", c = "[object Boolean]", d = "[object Date]", f = "[object Error]", v = "[object Function]", h = "[object GeneratorFunction]", m = "[object Map]", p = "[object Number]", g = "[object Null]", y = "[object Object]", x = "[object Promise]", b = "[object Proxy]", w = "[object RegExp]", D = "[object Set]", E = "[object String]", T = "[object Symbol]", L = "[object Undefined]", S = "[object WeakMap]", A = "[object ArrayBuffer]", C = "[object DataView]", k = "[object Float32Array]", I = "[object Float64Array]", N = "[object Int8Array]", F = "[object Int16Array]", V = "[object Int32Array]", G = "[object Uint8Array]", z = "[object Uint8ClampedArray]", M = "[object Uint16Array]", P = "[object Uint32Array]", R = /[\\^$.*+?()[\]{}|]/g, q = /^\[object .+?Constructor\]$/, Y = /^(?:0|[1-9]\d*)$/, Q = {};
  Q[k] = Q[I] = Q[N] = Q[F] = Q[V] = Q[G] = Q[z] = Q[M] = Q[P] = !0, Q[l] = Q[s] = Q[A] = Q[c] = Q[C] = Q[d] = Q[f] = Q[v] = Q[m] = Q[p] = Q[y] = Q[w] = Q[D] = Q[E] = Q[S] = !1;
  var B = typeof Tt == "object" && Tt && Tt.Object === Object && Tt, H = typeof self == "object" && self && self.Object === Object && self, Z = B || H || Function("return this")(), _ = t && !t.nodeType && t, re = _ && !0 && e && !e.nodeType && e, he = re && re.exports === _, be = he && B.process, Oe = function() {
    try {
      return be && be.binding && be.binding("util");
    } catch {
    }
  }(), Pe = Oe && Oe.isTypedArray;
  function Ve(O, j) {
    for (var K = -1, le = O == null ? 0 : O.length, Be = 0, Ee = []; ++K < le; ) {
      var _e = O[K];
      j(_e, K, O) && (Ee[Be++] = _e);
    }
    return Ee;
  }
  function $e(O, j) {
    for (var K = -1, le = j.length, Be = O.length; ++K < le; )
      O[Be + K] = j[K];
    return O;
  }
  function Je(O, j) {
    for (var K = -1, le = O == null ? 0 : O.length; ++K < le; )
      if (j(O[K], K, O))
        return !0;
    return !1;
  }
  function oe(O, j) {
    for (var K = -1, le = Array(O); ++K < O; )
      le[K] = j(K);
    return le;
  }
  function ie(O) {
    return function(j) {
      return O(j);
    };
  }
  function pe(O, j) {
    return O.has(j);
  }
  function me(O, j) {
    return O == null ? void 0 : O[j];
  }
  function ce(O) {
    var j = -1, K = Array(O.size);
    return O.forEach(function(le, Be) {
      K[++j] = [Be, le];
    }), K;
  }
  function ke(O, j) {
    return function(K) {
      return O(j(K));
    };
  }
  function Ce(O) {
    var j = -1, K = Array(O.size);
    return O.forEach(function(le) {
      K[++j] = le;
    }), K;
  }
  var De = Array.prototype, ft = Function.prototype, dt = Object.prototype, Ge = Z["__core-js_shared__"], wn = ft.toString, Ye = dt.hasOwnProperty, kt = function() {
    var O = /[^.]+$/.exec(Ge && Ge.keys && Ge.keys.IE_PROTO || "");
    return O ? "Symbol(src)_1." + O : "";
  }(), zn = dt.toString, ir = RegExp(
    "^" + wn.call(Ye).replace(R, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
  ), Un = he ? Z.Buffer : void 0, xn = Z.Symbol, Hn = Z.Uint8Array, de = dt.propertyIsEnumerable, W = De.splice, ue = xn ? xn.toStringTag : void 0, ye = Object.getOwnPropertySymbols, Me = Un ? Un.isBuffer : void 0, et = ke(Object.keys, Object), bt = Gn(Z, "DataView"), wt = Gn(Z, "Map"), un = Gn(Z, "Promise"), cn = Gn(Z, "Set"), Yn = Gn(Z, "WeakMap"), gt = Gn(Object, "create"), lr = Ut(bt), Gt = Ut(wt), Qn = Ut(un), Wn = Ut(cn), Mo = Ut(Yn), Ra = xn ? xn.prototype : void 0, Lo = Ra ? Ra.valueOf : void 0;
  function Pt(O) {
    var j = -1, K = O == null ? 0 : O.length;
    for (this.clear(); ++j < K; ) {
      var le = O[j];
      this.set(le[0], le[1]);
    }
  }
  function sl() {
    this.__data__ = gt ? gt(null) : {}, this.size = 0;
  }
  function ul(O) {
    var j = this.has(O) && delete this.__data__[O];
    return this.size -= j ? 1 : 0, j;
  }
  function cl(O) {
    var j = this.__data__;
    if (gt) {
      var K = j[O];
      return K === r ? void 0 : K;
    }
    return Ye.call(j, O) ? j[O] : void 0;
  }
  function fl(O) {
    var j = this.__data__;
    return gt ? j[O] !== void 0 : Ye.call(j, O);
  }
  function dl(O, j) {
    var K = this.__data__;
    return this.size += this.has(O) ? 0 : 1, K[O] = gt && j === void 0 ? r : j, this;
  }
  Pt.prototype.clear = sl, Pt.prototype.delete = ul, Pt.prototype.get = cl, Pt.prototype.has = fl, Pt.prototype.set = dl;
  function Mt(O) {
    var j = -1, K = O == null ? 0 : O.length;
    for (this.clear(); ++j < K; ) {
      var le = O[j];
      this.set(le[0], le[1]);
    }
  }
  function vl() {
    this.__data__ = [], this.size = 0;
  }
  function hl(O) {
    var j = this.__data__, K = Zr(j, O);
    if (K < 0)
      return !1;
    var le = j.length - 1;
    return K == le ? j.pop() : W.call(j, K, 1), --this.size, !0;
  }
  function pl(O) {
    var j = this.__data__, K = Zr(j, O);
    return K < 0 ? void 0 : j[K][1];
  }
  function gl(O) {
    return Zr(this.__data__, O) > -1;
  }
  function ml(O, j) {
    var K = this.__data__, le = Zr(K, O);
    return le < 0 ? (++this.size, K.push([O, j])) : K[le][1] = j, this;
  }
  Mt.prototype.clear = vl, Mt.prototype.delete = hl, Mt.prototype.get = pl, Mt.prototype.has = gl, Mt.prototype.set = ml;
  function Kt(O) {
    var j = -1, K = O == null ? 0 : O.length;
    for (this.clear(); ++j < K; ) {
      var le = O[j];
      this.set(le[0], le[1]);
    }
  }
  function yl() {
    this.size = 0, this.__data__ = {
      hash: new Pt(),
      map: new (wt || Mt)(),
      string: new Pt()
    };
  }
  function bl(O) {
    var j = An(this, O).delete(O);
    return this.size -= j ? 1 : 0, j;
  }
  function wl(O) {
    return An(this, O).get(O);
  }
  function xl(O) {
    return An(this, O).has(O);
  }
  function Al(O, j) {
    var K = An(this, O), le = K.size;
    return K.set(O, j), this.size += K.size == le ? 0 : 1, this;
  }
  Kt.prototype.clear = yl, Kt.prototype.delete = bl, Kt.prototype.get = wl, Kt.prototype.has = xl, Kt.prototype.set = Al;
  function Kr(O) {
    var j = -1, K = O == null ? 0 : O.length;
    for (this.__data__ = new Kt(); ++j < K; )
      this.add(O[j]);
  }
  function Ba(O) {
    return this.__data__.set(O, r), this;
  }
  function Xr(O) {
    return this.__data__.has(O);
  }
  Kr.prototype.add = Kr.prototype.push = Ba, Kr.prototype.has = Xr;
  function In(O) {
    var j = this.__data__ = new Mt(O);
    this.size = j.size;
  }
  function Ro() {
    this.__data__ = new Mt(), this.size = 0;
  }
  function Ol(O) {
    var j = this.__data__, K = j.delete(O);
    return this.size = j.size, K;
  }
  function Cl(O) {
    return this.__data__.get(O);
  }
  function El(O) {
    return this.__data__.has(O);
  }
  function Sl(O, j) {
    var K = this.__data__;
    if (K instanceof Mt) {
      var le = K.__data__;
      if (!wt || le.length < n - 1)
        return le.push([O, j]), this.size = ++K.size, this;
      K = this.__data__ = new Kt(le);
    }
    return K.set(O, j), this.size = K.size, this;
  }
  In.prototype.clear = Ro, In.prototype.delete = Ol, In.prototype.get = Cl, In.prototype.has = El, In.prototype.set = Sl;
  function Tl(O, j) {
    var K = Jr(O), le = !K && za(O), Be = !K && !le && _r(O), Ee = !K && !le && !Be && Ya(O), _e = K || le || Be || Ee, Xe = _e ? oe(O.length, String) : [], At = Xe.length;
    for (var nt in O)
      Ye.call(O, nt) && !(_e && // Safari 9 has enumerable `arguments.length` in strict mode.
      (nt == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
      Be && (nt == "offset" || nt == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
      Ee && (nt == "buffer" || nt == "byteLength" || nt == "byteOffset") || // Skip index properties.
      Rl(nt, At))) && Xe.push(nt);
    return Xe;
  }
  function Zr(O, j) {
    for (var K = O.length; K--; )
      if (Va(O[K][0], j))
        return K;
    return -1;
  }
  function Bo(O, j, K) {
    var le = j(O);
    return Jr(O) ? le : $e(le, K(O));
  }
  function Sr(O) {
    return O == null ? O === void 0 ? L : g : ue && ue in Object(O) ? Kn(O) : qa(O);
  }
  function Fa(O) {
    return Mn(O) && Sr(O) == l;
  }
  function ja(O, j, K, le, Be) {
    return O === j ? !0 : O == null || j == null || !Mn(O) && !Mn(j) ? O !== O && j !== j : Dl(O, j, K, le, ja, Be);
  }
  function Dl(O, j, K, le, Be, Ee) {
    var _e = Jr(O), Xe = Jr(j), At = _e ? s : Nn(O), nt = Xe ? s : Nn(j);
    At = At == l ? y : At, nt = nt == l ? y : nt;
    var Lt = At == y, Xt = nt == y, St = At == nt;
    if (St && _r(O)) {
      if (!_r(j))
        return !1;
      _e = !0, Lt = !1;
    }
    if (St && !Lt)
      return Ee || (Ee = new In()), _e || Ya(O) ? Fo(O, j, K, le, Be, Ee) : Nl(O, j, At, K, le, Be, Ee);
    if (!(K & o)) {
      var Rt = Lt && Ye.call(O, "__wrapped__"), It = Xt && Ye.call(j, "__wrapped__");
      if (Rt || It) {
        var sr = Rt ? O.value() : O, Xn = It ? j.value() : j;
        return Ee || (Ee = new In()), Be(sr, Xn, K, le, Ee);
      }
    }
    return St ? (Ee || (Ee = new In()), Ml(O, j, K, le, Be, Ee)) : !1;
  }
  function kl(O) {
    if (!Ha(O) || Fl(O))
      return !1;
    var j = Ua(O) ? ir : q;
    return j.test(Ut(O));
  }
  function Pl(O) {
    return Mn(O) && qo(O.length) && !!Q[Sr(O)];
  }
  function Il(O) {
    if (!jl(O))
      return et(O);
    var j = [];
    for (var K in Object(O))
      Ye.call(O, K) && K != "constructor" && j.push(K);
    return j;
  }
  function Fo(O, j, K, le, Be, Ee) {
    var _e = K & o, Xe = O.length, At = j.length;
    if (Xe != At && !(_e && At > Xe))
      return !1;
    var nt = Ee.get(O);
    if (nt && Ee.get(j))
      return nt == j;
    var Lt = -1, Xt = !0, St = K & a ? new Kr() : void 0;
    for (Ee.set(O, j), Ee.set(j, O); ++Lt < Xe; ) {
      var Rt = O[Lt], It = j[Lt];
      if (le)
        var sr = _e ? le(It, Rt, Lt, j, O, Ee) : le(Rt, It, Lt, O, j, Ee);
      if (sr !== void 0) {
        if (sr)
          continue;
        Xt = !1;
        break;
      }
      if (St) {
        if (!Je(j, function(Xn, Dr) {
          if (!pe(St, Dr) && (Rt === Xn || Be(Rt, Xn, K, le, Ee)))
            return St.push(Dr);
        })) {
          Xt = !1;
          break;
        }
      } else if (!(Rt === It || Be(Rt, It, K, le, Ee))) {
        Xt = !1;
        break;
      }
    }
    return Ee.delete(O), Ee.delete(j), Xt;
  }
  function Nl(O, j, K, le, Be, Ee, _e) {
    switch (K) {
      case C:
        if (O.byteLength != j.byteLength || O.byteOffset != j.byteOffset)
          return !1;
        O = O.buffer, j = j.buffer;
      case A:
        return !(O.byteLength != j.byteLength || !Ee(new Hn(O), new Hn(j)));
      case c:
      case d:
      case p:
        return Va(+O, +j);
      case f:
        return O.name == j.name && O.message == j.message;
      case w:
      case E:
        return O == j + "";
      case m:
        var Xe = ce;
      case D:
        var At = le & o;
        if (Xe || (Xe = Ce), O.size != j.size && !At)
          return !1;
        var nt = _e.get(O);
        if (nt)
          return nt == j;
        le |= a, _e.set(O, j);
        var Lt = Fo(Xe(O), Xe(j), le, Be, Ee, _e);
        return _e.delete(O), Lt;
      case T:
        if (Lo)
          return Lo.call(O) == Lo.call(j);
    }
    return !1;
  }
  function Ml(O, j, K, le, Be, Ee) {
    var _e = K & o, Xe = Tr(O), At = Xe.length, nt = Tr(j), Lt = nt.length;
    if (At != Lt && !_e)
      return !1;
    for (var Xt = At; Xt--; ) {
      var St = Xe[Xt];
      if (!(_e ? St in j : Ye.call(j, St)))
        return !1;
    }
    var Rt = Ee.get(O);
    if (Rt && Ee.get(j))
      return Rt == j;
    var It = !0;
    Ee.set(O, j), Ee.set(j, O);
    for (var sr = _e; ++Xt < At; ) {
      St = Xe[Xt];
      var Xn = O[St], Dr = j[St];
      if (le)
        var $u = _e ? le(Dr, Xn, St, j, O, Ee) : le(Xn, Dr, St, O, j, Ee);
      if (!($u === void 0 ? Xn === Dr || Be(Xn, Dr, K, le, Ee) : $u)) {
        It = !1;
        break;
      }
      sr || (sr = St == "constructor");
    }
    if (It && !sr) {
      var Qa = O.constructor, Wa = j.constructor;
      Qa != Wa && "constructor" in O && "constructor" in j && !(typeof Qa == "function" && Qa instanceof Qa && typeof Wa == "function" && Wa instanceof Wa) && (It = !1);
    }
    return Ee.delete(O), Ee.delete(j), It;
  }
  function Tr(O) {
    return Bo(O, Vo, Ll);
  }
  function An(O, j) {
    var K = O.__data__;
    return Bl(j) ? K[typeof j == "string" ? "string" : "hash"] : K.map;
  }
  function Gn(O, j) {
    var K = me(O, j);
    return kl(K) ? K : void 0;
  }
  function Kn(O) {
    var j = Ye.call(O, ue), K = O[ue];
    try {
      O[ue] = void 0;
      var le = !0;
    } catch {
    }
    var Be = zn.call(O);
    return le && (j ? O[ue] = K : delete O[ue]), Be;
  }
  var Ll = ye ? function(O) {
    return O == null ? [] : (O = Object(O), Ve(ye(O), function(j) {
      return de.call(O, j);
    }));
  } : Vl, Nn = Sr;
  (bt && Nn(new bt(new ArrayBuffer(1))) != C || wt && Nn(new wt()) != m || un && Nn(un.resolve()) != x || cn && Nn(new cn()) != D || Yn && Nn(new Yn()) != S) && (Nn = function(O) {
    var j = Sr(O), K = j == y ? O.constructor : void 0, le = K ? Ut(K) : "";
    if (le)
      switch (le) {
        case lr:
          return C;
        case Gt:
          return m;
        case Qn:
          return x;
        case Wn:
          return D;
        case Mo:
          return S;
      }
    return j;
  });
  function Rl(O, j) {
    return j = j ?? i, !!j && (typeof O == "number" || Y.test(O)) && O > -1 && O % 1 == 0 && O < j;
  }
  function Bl(O) {
    var j = typeof O;
    return j == "string" || j == "number" || j == "symbol" || j == "boolean" ? O !== "__proto__" : O === null;
  }
  function Fl(O) {
    return !!kt && kt in O;
  }
  function jl(O) {
    var j = O && O.constructor, K = typeof j == "function" && j.prototype || dt;
    return O === K;
  }
  function qa(O) {
    return zn.call(O);
  }
  function Ut(O) {
    if (O != null) {
      try {
        return wn.call(O);
      } catch {
      }
      try {
        return O + "";
      } catch {
      }
    }
    return "";
  }
  function Va(O, j) {
    return O === j || O !== O && j !== j;
  }
  var za = Fa(/* @__PURE__ */ function() {
    return arguments;
  }()) ? Fa : function(O) {
    return Mn(O) && Ye.call(O, "callee") && !de.call(O, "callee");
  }, Jr = Array.isArray;
  function jo(O) {
    return O != null && qo(O.length) && !Ua(O);
  }
  var _r = Me || zl;
  function ql(O, j) {
    return ja(O, j);
  }
  function Ua(O) {
    if (!Ha(O))
      return !1;
    var j = Sr(O);
    return j == v || j == h || j == u || j == b;
  }
  function qo(O) {
    return typeof O == "number" && O > -1 && O % 1 == 0 && O <= i;
  }
  function Ha(O) {
    var j = typeof O;
    return O != null && (j == "object" || j == "function");
  }
  function Mn(O) {
    return O != null && typeof O == "object";
  }
  var Ya = Pe ? ie(Pe) : Pl;
  function Vo(O) {
    return jo(O) ? Tl(O) : Il(O);
  }
  function Vl() {
    return [];
  }
  function zl() {
    return !1;
  }
  e.exports = ql;
})(Ai, Ai.exports);
var Ih = Ai.exports, Au = {}, Nh = Tt && Tt.__importDefault || function(e) {
  return e && e.__esModule ? e : { default: e };
};
Object.defineProperty(Au, "__esModule", { value: !0 });
var Zw = Nh(Ph), Jw = Nh(Ih), Ls;
(function(e) {
  function t(a, i, l) {
    a === void 0 && (a = {}), i === void 0 && (i = {}), typeof a != "object" && (a = {}), typeof i != "object" && (i = {});
    var s = Zw.default(i);
    l || (s = Object.keys(s).reduce(function(c, d) {
      return s[d] != null && (c[d] = s[d]), c;
    }, {}));
    for (var u in a)
      a[u] !== void 0 && i[u] === void 0 && (s[u] = a[u]);
    return Object.keys(s).length > 0 ? s : void 0;
  }
  e.compose = t;
  function n(a, i) {
    a === void 0 && (a = {}), i === void 0 && (i = {}), typeof a != "object" && (a = {}), typeof i != "object" && (i = {});
    var l = Object.keys(a).concat(Object.keys(i)).reduce(function(s, u) {
      return Jw.default(a[u], i[u]) || (s[u] = i[u] === void 0 ? null : i[u]), s;
    }, {});
    return Object.keys(l).length > 0 ? l : void 0;
  }
  e.diff = n;
  function r(a, i) {
    a === void 0 && (a = {}), i === void 0 && (i = {}), a = a || {};
    var l = Object.keys(i).reduce(function(s, u) {
      return i[u] !== a[u] && a[u] !== void 0 && (s[u] = i[u]), s;
    }, {});
    return Object.keys(a).reduce(function(s, u) {
      return a[u] !== i[u] && i[u] === void 0 && (s[u] = null), s;
    }, l);
  }
  e.invert = r;
  function o(a, i, l) {
    if (l === void 0 && (l = !1), typeof a != "object")
      return i;
    if (typeof i == "object") {
      if (!l)
        return i;
      var s = Object.keys(i).reduce(function(u, c) {
        return a[c] === void 0 && (u[c] = i[c]), u;
      }, {});
      return Object.keys(s).length > 0 ? s : void 0;
    }
  }
  e.transform = o;
})(Ls || (Ls = {}));
Au.default = Ls;
var _a = {}, $a = {}, Zc;
function _w() {
  if (Zc)
    return $a;
  Zc = 1;
  var e = Tt && Tt.__importDefault || function(r) {
    return r && r.__esModule ? r : { default: r };
  };
  Object.defineProperty($a, "__esModule", { value: !0 });
  var t = e(Mh()), n = (
    /** @class */
    function() {
      function r(o) {
        this.ops = o, this.index = 0, this.offset = 0;
      }
      return r.prototype.hasNext = function() {
        return this.peekLength() < 1 / 0;
      }, r.prototype.next = function(o) {
        o || (o = 1 / 0);
        var a = this.ops[this.index];
        if (a) {
          var i = this.offset, l = t.default.length(a);
          if (o >= l - i ? (o = l - i, this.index += 1, this.offset = 0) : this.offset += o, typeof a.delete == "number")
            return { delete: o };
          var s = {};
          return a.attributes && (s.attributes = a.attributes), typeof a.retain == "number" ? s.retain = o : typeof a.insert == "string" ? s.insert = a.insert.substr(i, o) : s.insert = a.insert, s;
        } else
          return { retain: 1 / 0 };
      }, r.prototype.peek = function() {
        return this.ops[this.index];
      }, r.prototype.peekLength = function() {
        return this.ops[this.index] ? t.default.length(this.ops[this.index]) - this.offset : 1 / 0;
      }, r.prototype.peekType = function() {
        return this.ops[this.index] ? typeof this.ops[this.index].delete == "number" ? "delete" : typeof this.ops[this.index].retain == "number" ? "retain" : "insert" : "retain";
      }, r.prototype.rest = function() {
        if (this.hasNext()) {
          if (this.offset === 0)
            return this.ops.slice(this.index);
          var o = this.offset, a = this.index, i = this.next(), l = this.ops.slice(this.index);
          return this.offset = o, this.index = a, [i].concat(l);
        } else
          return [];
      }, r;
    }()
  );
  return $a.default = n, $a;
}
var Jc;
function Mh() {
  if (Jc)
    return _a;
  Jc = 1;
  var e = Tt && Tt.__importDefault || function(r) {
    return r && r.__esModule ? r : { default: r };
  };
  Object.defineProperty(_a, "__esModule", { value: !0 });
  var t = e(_w()), n;
  return function(r) {
    function o(i) {
      return new t.default(i);
    }
    r.iterator = o;
    function a(i) {
      return typeof i.delete == "number" ? i.delete : typeof i.retain == "number" ? i.retain : typeof i.insert == "string" ? i.insert.length : 1;
    }
    r.length = a;
  }(n || (n = {})), _a.default = n, _a;
}
var Ia = Tt && Tt.__importDefault || function(e) {
  return e && e.__esModule ? e : { default: e };
}, ei = Ia(Xw), $w = Ia(Ph), ns = Ia(Ih), Wo = Ia(Au), Nt = Ia(Mh()), e3 = "\0", t3 = (
  /** @class */
  function() {
    function e(t) {
      Array.isArray(t) ? this.ops = t : t != null && Array.isArray(t.ops) ? this.ops = t.ops : this.ops = [];
    }
    return e.prototype.insert = function(t, n) {
      var r = {};
      return typeof t == "string" && t.length === 0 ? this : (r.insert = t, n != null && typeof n == "object" && Object.keys(n).length > 0 && (r.attributes = n), this.push(r));
    }, e.prototype.delete = function(t) {
      return t <= 0 ? this : this.push({ delete: t });
    }, e.prototype.retain = function(t, n) {
      if (t <= 0)
        return this;
      var r = { retain: t };
      return n != null && typeof n == "object" && Object.keys(n).length > 0 && (r.attributes = n), this.push(r);
    }, e.prototype.push = function(t) {
      var n = this.ops.length, r = this.ops[n - 1];
      if (t = $w.default(t), typeof r == "object") {
        if (typeof t.delete == "number" && typeof r.delete == "number")
          return this.ops[n - 1] = { delete: r.delete + t.delete }, this;
        if (typeof r.delete == "number" && t.insert != null && (n -= 1, r = this.ops[n - 1], typeof r != "object"))
          return this.ops.unshift(t), this;
        if (ns.default(t.attributes, r.attributes)) {
          if (typeof t.insert == "string" && typeof r.insert == "string")
            return this.ops[n - 1] = { insert: r.insert + t.insert }, typeof t.attributes == "object" && (this.ops[n - 1].attributes = t.attributes), this;
          if (typeof t.retain == "number" && typeof r.retain == "number")
            return this.ops[n - 1] = { retain: r.retain + t.retain }, typeof t.attributes == "object" && (this.ops[n - 1].attributes = t.attributes), this;
        }
      }
      return n === this.ops.length ? this.ops.push(t) : this.ops.splice(n, 0, t), this;
    }, e.prototype.chop = function() {
      var t = this.ops[this.ops.length - 1];
      return t && t.retain && !t.attributes && this.ops.pop(), this;
    }, e.prototype.filter = function(t) {
      return this.ops.filter(t);
    }, e.prototype.forEach = function(t) {
      this.ops.forEach(t);
    }, e.prototype.map = function(t) {
      return this.ops.map(t);
    }, e.prototype.partition = function(t) {
      var n = [], r = [];
      return this.forEach(function(o) {
        var a = t(o) ? n : r;
        a.push(o);
      }), [n, r];
    }, e.prototype.reduce = function(t, n) {
      return this.ops.reduce(t, n);
    }, e.prototype.changeLength = function() {
      return this.reduce(function(t, n) {
        return n.insert ? t + Nt.default.length(n) : n.delete ? t - n.delete : t;
      }, 0);
    }, e.prototype.length = function() {
      return this.reduce(function(t, n) {
        return t + Nt.default.length(n);
      }, 0);
    }, e.prototype.slice = function(t, n) {
      t === void 0 && (t = 0), n === void 0 && (n = 1 / 0);
      for (var r = [], o = Nt.default.iterator(this.ops), a = 0; a < n && o.hasNext(); ) {
        var i = void 0;
        a < t ? i = o.next(t - a) : (i = o.next(n - a), r.push(i)), a += Nt.default.length(i);
      }
      return new e(r);
    }, e.prototype.compose = function(t) {
      var n = Nt.default.iterator(this.ops), r = Nt.default.iterator(t.ops), o = [], a = r.peek();
      if (a != null && typeof a.retain == "number" && a.attributes == null) {
        for (var i = a.retain; n.peekType() === "insert" && n.peekLength() <= i; )
          i -= n.peekLength(), o.push(n.next());
        a.retain - i > 0 && r.next(a.retain - i);
      }
      for (var l = new e(o); n.hasNext() || r.hasNext(); )
        if (r.peekType() === "insert")
          l.push(r.next());
        else if (n.peekType() === "delete")
          l.push(n.next());
        else {
          var s = Math.min(n.peekLength(), r.peekLength()), u = n.next(s), c = r.next(s);
          if (typeof c.retain == "number") {
            var d = {};
            typeof u.retain == "number" ? d.retain = s : d.insert = u.insert;
            var f = Wo.default.compose(u.attributes, c.attributes, typeof u.retain == "number");
            if (f && (d.attributes = f), l.push(d), !r.hasNext() && ns.default(l.ops[l.ops.length - 1], d)) {
              var v = new e(n.rest());
              return l.concat(v).chop();
            }
          } else
            typeof c.delete == "number" && typeof u.retain == "number" && l.push(c);
        }
      return l.chop();
    }, e.prototype.concat = function(t) {
      var n = new e(this.ops.slice());
      return t.ops.length > 0 && (n.push(t.ops[0]), n.ops = n.ops.concat(t.ops.slice(1))), n;
    }, e.prototype.diff = function(t, n) {
      if (this.ops === t.ops)
        return new e();
      var r = [this, t].map(function(s) {
        return s.map(function(u) {
          if (u.insert != null)
            return typeof u.insert == "string" ? u.insert : e3;
          var c = s === t ? "on" : "with";
          throw new Error("diff() called " + c + " non-document");
        }).join("");
      }), o = new e(), a = ei.default(r[0], r[1], n), i = Nt.default.iterator(this.ops), l = Nt.default.iterator(t.ops);
      return a.forEach(function(s) {
        for (var u = s[1].length; u > 0; ) {
          var c = 0;
          switch (s[0]) {
            case ei.default.INSERT:
              c = Math.min(l.peekLength(), u), o.push(l.next(c));
              break;
            case ei.default.DELETE:
              c = Math.min(u, i.peekLength()), i.next(c), o.delete(c);
              break;
            case ei.default.EQUAL:
              c = Math.min(i.peekLength(), l.peekLength(), u);
              var d = i.next(c), f = l.next(c);
              ns.default(d.insert, f.insert) ? o.retain(c, Wo.default.diff(d.attributes, f.attributes)) : o.push(f).delete(c);
              break;
          }
          u -= c;
        }
      }), o.chop();
    }, e.prototype.eachLine = function(t, n) {
      n === void 0 && (n = `
`);
      for (var r = Nt.default.iterator(this.ops), o = new e(), a = 0; r.hasNext(); ) {
        if (r.peekType() !== "insert")
          return;
        var i = r.peek(), l = Nt.default.length(i) - r.peekLength(), s = typeof i.insert == "string" ? i.insert.indexOf(n, l) - l : -1;
        if (s < 0)
          o.push(r.next());
        else if (s > 0)
          o.push(r.next(s));
        else {
          if (t(o, r.next(1).attributes || {}, a) === !1)
            return;
          a += 1, o = new e();
        }
      }
      o.length() > 0 && t(o, {}, a);
    }, e.prototype.invert = function(t) {
      var n = new e();
      return this.reduce(function(r, o) {
        if (o.insert)
          n.delete(Nt.default.length(o));
        else {
          if (o.retain && o.attributes == null)
            return n.retain(o.retain), r + o.retain;
          if (o.delete || o.retain && o.attributes) {
            var a = o.delete || o.retain, i = t.slice(r, r + a);
            return i.forEach(function(l) {
              o.delete ? n.push(l) : o.retain && o.attributes && n.retain(Nt.default.length(l), Wo.default.invert(o.attributes, l.attributes));
            }), r + a;
          }
        }
        return r;
      }, 0), n.chop();
    }, e.prototype.transform = function(t, n) {
      if (n === void 0 && (n = !1), n = !!n, typeof t == "number")
        return this.transformPosition(t, n);
      for (var r = t, o = Nt.default.iterator(this.ops), a = Nt.default.iterator(r.ops), i = new e(); o.hasNext() || a.hasNext(); )
        if (o.peekType() === "insert" && (n || a.peekType() !== "insert"))
          i.retain(Nt.default.length(o.next()));
        else if (a.peekType() === "insert")
          i.push(a.next());
        else {
          var l = Math.min(o.peekLength(), a.peekLength()), s = o.next(l), u = a.next(l);
          if (s.delete)
            continue;
          u.delete ? i.push(u) : i.retain(l, Wo.default.transform(s.attributes, u.attributes, n));
        }
      return i.chop();
    }, e.prototype.transformPosition = function(t, n) {
      n === void 0 && (n = !1), n = !!n;
      for (var r = Nt.default.iterator(this.ops), o = 0; r.hasNext() && o <= t; ) {
        var a = r.peekLength(), i = r.peekType();
        if (r.next(), i === "delete") {
          t -= Math.min(a, t - o);
          continue;
        } else
          i === "insert" && (o < t || !n) && (t += a);
        o += a;
      }
      return t;
    }, e.Op = Nt.default, e.AttributeMap = Wo.default, e;
  }()
), n3 = t3;
const r3 = /* @__PURE__ */ Js(n3);
/*!
 * VueQuill @vueup/vue-quill v1.2.0
 * https://vueup.github.io/vue-quill/
 * 
 * Includes quill v1.3.7
 * https://quilljs.com/
 * 
 * Copyright (c) 2023 Ahmad Luthfi Masruri
 * Released under the MIT license
 * Date: 2023-05-12T08:44:03.742Z
 */
const _c = {
  essential: [
    [{ header: [1, 2, 3, 4, 5, 6, !1] }],
    ["bold", "italic", "underline"],
    [{ list: "ordered" }, { list: "bullet" }, { align: [] }],
    ["blockquote", "code-block", "link"],
    [{ color: [] }, "clean"]
  ],
  minimal: [
    [{ header: 1 }, { header: 2 }],
    ["bold", "italic", "underline"],
    [{ list: "ordered" }, { list: "bullet" }, { align: [] }]
  ],
  full: [
    ["bold", "italic", "underline", "strike"],
    ["blockquote", "code-block"],
    [{ header: 1 }, { header: 2 }],
    [{ list: "ordered" }, { list: "bullet" }],
    [{ script: "sub" }, { script: "super" }],
    [{ indent: "-1" }, { indent: "+1" }],
    [{ direction: "rtl" }],
    [{ size: ["small", !1, "large", "huge"] }],
    [{ header: [1, 2, 3, 4, 5, 6, !1] }],
    [{ color: [] }, { background: [] }],
    [{ font: [] }],
    [{ align: [] }],
    ["link", "video", "image"],
    ["clean"]
    // remove formatting button
  ]
}, o3 = se({
  name: "QuillEditor",
  inheritAttrs: !1,
  props: {
    content: {
      type: [String, Object]
    },
    contentType: {
      type: String,
      default: "delta",
      validator: (e) => ["delta", "html", "text"].includes(e)
    },
    enable: {
      type: Boolean,
      default: !0
    },
    readOnly: {
      type: Boolean,
      default: !1
    },
    placeholder: {
      type: String,
      required: !1
    },
    theme: {
      type: String,
      default: "snow",
      validator: (e) => ["snow", "bubble", ""].includes(e)
    },
    toolbar: {
      type: [String, Array, Object],
      required: !1,
      validator: (e) => typeof e == "string" && e !== "" ? e.charAt(0) === "#" ? !0 : Object.keys(_c).indexOf(e) !== -1 : !0
    },
    modules: {
      type: Object,
      required: !1
    },
    options: {
      type: Object,
      required: !1
    },
    globalOptions: {
      type: Object,
      required: !1
    }
  },
  emits: [
    "textChange",
    "selectionChange",
    "editorChange",
    "update:content",
    "focus",
    "blur",
    "ready"
  ],
  setup: (e, t) => {
    We(() => {
      a();
    }), Gs(() => {
      n = null;
    });
    let n, r;
    const o = ne(), a = () => {
      var A;
      if (o.value) {
        if (r = i(), e.modules)
          if (Array.isArray(e.modules))
            for (const C of e.modules)
              es.register(`modules/${C.name}`, C.module);
          else
            es.register(`modules/${e.modules.name}`, e.modules.module);
        n = new es(o.value, r), x(e.content), n.on("text-change", d), n.on("selection-change", v), n.on("editor-change", h), e.theme !== "bubble" && o.value.classList.remove("ql-bubble"), e.theme !== "snow" && o.value.classList.remove("ql-snow"), (A = n.getModule("toolbar")) === null || A === void 0 || A.container.addEventListener("mousedown", (C) => {
          C.preventDefault();
        }), t.emit("ready", n);
      }
    }, i = () => {
      const A = {};
      if (e.theme !== "" && (A.theme = e.theme), e.readOnly && (A.readOnly = e.readOnly), e.placeholder && (A.placeholder = e.placeholder), e.toolbar && e.toolbar !== "" && (A.modules = {
        toolbar: (() => {
          if (typeof e.toolbar == "object")
            return e.toolbar;
          if (typeof e.toolbar == "string")
            return e.toolbar.charAt(0) === "#" ? e.toolbar : _c[e.toolbar];
        })()
      }), e.modules) {
        const C = (() => {
          var k, I;
          const N = {};
          if (Array.isArray(e.modules))
            for (const F of e.modules)
              N[F.name] = (k = F.options) !== null && k !== void 0 ? k : {};
          else
            N[e.modules.name] = (I = e.modules.options) !== null && I !== void 0 ? I : {};
          return N;
        })();
        A.modules = Object.assign({}, A.modules, C);
      }
      return Object.assign({}, e.globalOptions, e.options, A);
    }, l = (A) => typeof A == "object" && A ? A.slice() : A, s = (A) => Object.values(A.ops).some((C) => !C.retain || Object.keys(C).length !== 1);
    let u;
    const c = (A) => {
      if (typeof u == typeof A) {
        if (A === u)
          return !0;
        if (typeof A == "object" && A && typeof u == "object" && u)
          return !s(u.diff(A));
      }
      return !1;
    }, d = (A, C, k) => {
      u = l(y()), c(e.content) || t.emit("update:content", u), t.emit("textChange", { delta: A, oldContents: C, source: k });
    }, f = ne(), v = (A, C, k) => {
      f.value = !!(n != null && n.hasFocus()), t.emit("selectionChange", { range: A, oldRange: C, source: k });
    };
    Ne(f, (A) => {
      A ? t.emit("focus", o) : t.emit("blur", o);
    });
    const h = (...A) => {
      A[0] === "text-change" && t.emit("editorChange", {
        name: A[0],
        delta: A[1],
        oldContents: A[2],
        source: A[3]
      }), A[0] === "selection-change" && t.emit("editorChange", {
        name: A[0],
        range: A[1],
        oldRange: A[2],
        source: A[3]
      });
    }, m = () => o.value, p = () => {
      var A;
      return (A = n == null ? void 0 : n.getModule("toolbar")) === null || A === void 0 ? void 0 : A.container;
    }, g = () => {
      if (n)
        return n;
      throw `The quill editor hasn't been instantiated yet,
                  make sure to call this method when the editor ready
                  or use v-on:ready="onReady(quill)" event instead.`;
    }, y = (A, C) => e.contentType === "html" ? D() : e.contentType === "text" ? b(A, C) : n == null ? void 0 : n.getContents(A, C), x = (A, C = "api") => {
      const k = A || (e.contentType === "delta" ? new r3() : "");
      e.contentType === "html" ? E(k) : e.contentType === "text" ? w(k, C) : n == null || n.setContents(k, C), u = l(k);
    }, b = (A, C) => {
      var k;
      return (k = n == null ? void 0 : n.getText(A, C)) !== null && k !== void 0 ? k : "";
    }, w = (A, C = "api") => {
      n == null || n.setText(A, C);
    }, D = () => {
      var A;
      return (A = n == null ? void 0 : n.root.innerHTML) !== null && A !== void 0 ? A : "";
    }, E = (A) => {
      n && (n.root.innerHTML = A);
    }, T = (A, C = "api") => {
      const k = n == null ? void 0 : n.clipboard.convert(A);
      k && (n == null || n.setContents(k, C));
    }, L = () => {
      n == null || n.focus();
    }, S = () => {
      rt(() => {
        var A;
        !t.slots.toolbar && n && ((A = n.getModule("toolbar")) === null || A === void 0 || A.container.remove()), a();
      });
    };
    return Ne(() => e.content, (A) => {
      if (!n || !A || c(A))
        return;
      const C = n.getSelection();
      C && rt(() => n == null ? void 0 : n.setSelection(C)), x(A);
    }, { deep: !0 }), Ne(() => e.enable, (A) => {
      n && n.enable(A);
    }), {
      editor: o,
      getEditor: m,
      getToolbar: p,
      getQuill: g,
      getContents: y,
      setContents: x,
      getHTML: D,
      setHTML: E,
      pasteHTML: T,
      focus: L,
      getText: b,
      setText: w,
      reinit: S
    };
  },
  render() {
    var e, t;
    return [
      (t = (e = this.$slots).toolbar) === null || t === void 0 ? void 0 : t.call(e),
      Qe("div", { ref: "editor", ...this.$attrs })
    ];
  }
}), iN = /* @__PURE__ */ se({
  __name: "UITiptapEditor",
  props: {
    modelValue: {},
    modelModifiers: {}
  },
  emits: ["update:modelValue"],
  setup(e) {
    const t = Wt(e, "modelValue");
    return (n, r) => (J(), ge(we, { class: "rvx-bg-white rvx-rounded-md" }, {
      default: ee(() => [
        $(X(o3), {
          toolbar: "minimal",
          contentType: "html",
          content: t.value,
          "onUpdate:content": r[0] || (r[0] = (o) => t.value = o)
        }, null, 8, ["content"])
      ]),
      _: 1
    }));
  }
}), lN = /* @__PURE__ */ se({
  __name: "UIDropdownSearch",
  props: /* @__PURE__ */ rn({
    options: {},
    loading: { type: Boolean, default: !1 },
    placeholder: { default: "Search Product" },
    inputClass: {}
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: /* @__PURE__ */ rn(["searchValue"], ["update:modelValue"]),
  setup(e, { emit: t }) {
    const n = e, r = t, o = Wt(e, "modelValue"), a = ne(""), i = U(() => {
      if (a.value === "")
        return n.options;
      const l = n.options.filter((s) => {
        const u = s.name.toLowerCase().includes(a.value.toLowerCase());
        return console.log("matchItem ", u), u;
      });
      return l.length === 0 && r("searchValue", a.value), l;
    });
    return (l, s) => (J(), ge(X(M0), {
      modelValue: o.value,
      "onUpdate:modelValue": s[2] || (s[2] = (u) => o.value = u),
      class: ""
    }, {
      default: ee(() => [
        $(we, { class: "rvx-relative" }, {
          default: ee(() => [
            $(we, { class: "rvx-relative" }, {
              default: ee(() => [
                $(X(L0), { class: "rvx-absolute rvx-top-[10px] rvx-pr-2 rvx-flex rvx-items-center rvx-bg-transparent" }, {
                  default: ee(() => [
                    $(Et, {
                      "icon-name": "search",
                      class: "rvx-cursor-pointer !rvx-text-neutral-500"
                    })
                  ]),
                  _: 1
                }),
                $(X(R0), {
                  placeholder: l.placeholder,
                  class: xe(["rvx-w-full rvx-border !rvx-pl-[32px] !rvx-pr-4 !rvx-py-3 !rvx-rounded-md !rvx-leading-5 focus:!rvx-shadow-none !rvx-border-neutral-400 rvx-text-normal !rvx-text-neutral-800 focus:!rvx-outline-none focus:!rvx-ring focus:!rvx-ring-primary-20 rvx-m-0", l.inputClass]),
                  displayValue: (u) => u.name,
                  onChange: s[0] || (s[0] = (u) => a.value = u.target.value)
                }, null, 8, ["placeholder", "class", "displayValue"])
              ]),
              _: 1
            }),
            $(X(Pa), {
              leave: "rvx-transition rvx-ease-in rvx-duration-100",
              leaveFrom: "opacity-100",
              leaveTo: "opacity-0",
              onAfterLeave: s[1] || (s[1] = (u) => a.value = "")
            }, {
              default: ee(() => [
                $(X(B0), { class: "rvx-absolute rvx-mt-1 rvx-max-h-60 rvx-w-full rvx-overflow-auto rvx-rounded-md rvx-bg-white rvx-py-1 rvx-text-base rvx-shadow-lg rvx-ring-1 rvx-ring-black/5 focus:rvx-outline-none rvx-z-10" }, {
                  default: ee(() => [
                    $(we, { class: "rvx-relative rvx-cursor-default rvx-select-none rvx-px-4 rvx-py-2 rvx-text-gray-700 rvx-text-[16px]" }, {
                      default: ee(() => [
                        l.loading ? (J(), ge(we, {
                          key: 0,
                          class: "rvx-h-[50px] rvx-flex rvx-justify-center"
                        }, {
                          default: ee(() => [
                            $(X(uo))
                          ]),
                          _: 1
                        })) : Ie("", !0),
                        i.value.length === 0 && !l.loading ? (J(), ge(we, { key: 1 }, {
                          default: ee(() => s[3] || (s[3] = [
                            je(" Nothing found. ")
                          ])),
                          _: 1
                        })) : Ie("", !0)
                      ]),
                      _: 1
                    }),
                    (J(!0), ve(He, null, mt(i.value, (u) => (J(), ge(X(F0), {
                      as: "template",
                      key: u.id,
                      value: u,
                      class: "list-no"
                    }, {
                      default: ee(({ selected: c, active: d }) => [
                        $(we, {
                          class: xe(["rvx-relative rvx-cursor-default rvx-select-none rvx-py-2 rvx-pl-2 rvx-pr-4 rvx-text-[16px]", {
                            "rvx-bg-gray-600 rvx-text-white": d,
                            "rvx-text-gray-900": !d
                          }])
                        }, {
                          default: ee(() => [
                            $(we, {
                              class: xe(["rvx-truncate rvx-flex rvx-items-center rvx-gap-space8", { "font-medium": c, "font-normal": !c }])
                            }, {
                              default: ee(() => [
                                u != null && u.image ? (J(), ge(ua, {
                                  key: 0,
                                  src: (u == null ? void 0 : u.image) ?? "",
                                  alt: "product image",
                                  class: "rvx-size-[40px] rvx-rounded-lg",
                                  "image-class": "rvx-size-[40px] rvx-object-cover"
                                }, null, 8, ["src"])) : Ie("", !0),
                                $(Ct, null, {
                                  default: ee(() => [
                                    je(Re(u.name), 1)
                                  ]),
                                  _: 2
                                }, 1024)
                              ]),
                              _: 2
                            }, 1032, ["class"])
                          ]),
                          _: 2
                        }, 1032, ["class"])
                      ]),
                      _: 2
                    }, 1032, ["value"]))), 128))
                  ]),
                  _: 1
                })
              ]),
              _: 1
            })
          ]),
          _: 1
        })
      ]),
      _: 1
    }, 8, ["modelValue"]));
  }
}), sN = /* @__PURE__ */ se({
  __name: "UIAdminMediaUpload",
  props: {
    total: { default: 5 },
    uploadedCount: { default: 0 }
  },
  setup(e) {
    return (t, n) => (J(), ge(we, { class: "rvx-bg-neutral-200 rvx-py-[11px] rvx-px-[9px] rvx-rounded-md rvx-cursor-pointer rvx-text-center" }, {
      default: ee(() => [
        qe(t.$slots, "icon", {}, () => [
          $(Et, {
            "icon-name": "backup",
            class: "rvx-mb-space5"
          })
        ]),
        qe(t.$slots, "content", {}, () => [
          $(Ct, { class: "!rvx-text-[12px]" }, {
            default: ee(() => n[0] || (n[0] = [
              je("Upload Photo / Video")
            ])),
            _: 1
          }),
          $(Ct, { class: "!rvx-text-[12px]" }, {
            default: ee(() => [
              je(Re(t.uploadedCount) + "/" + Re(t.total), 1)
            ]),
            _: 1
          })
        ])
      ]),
      _: 3
    }));
  }
}), a3 = ["multiple", "accept", "disabled"], uN = /* @__PURE__ */ se({
  __name: "UIMediaUpload",
  props: {
    multiple: { type: Boolean, default: !0 },
    accept: { default: "image/*,video/*" },
    disabled: { type: Boolean, default: !1 }
  },
  emits: ["onChange", "filesDropped"],
  setup(e, { expose: t, emit: n }) {
    const r = n, o = ne(!1), a = () => {
      o.value = !0;
    }, i = () => {
      o.value = !1;
    }, l = (s) => {
      var d;
      const c = (d = s.dataTransfer) == null ? void 0 : d.files;
      c != null && c.length && (r("filesDropped", c), i());
    };
    return t({
      isDraging: o
    }), (s, u) => (J(), ve("label", {
      for: "add-review-upload-media",
      class: "rvx-block rvx-bg-neutral-200 rvx-py-[11px] rvx-px-[9px] rvx-rounded-md rvx-cursor-pointer rvx-text-center",
      onDragenter: Jo(a, ["prevent"]),
      onDragover: Jo(a, ["prevent"]),
      onDragleave: Jo(i, ["prevent"]),
      onDrop: Jo(l, ["prevent"])
    }, [
      fe("input", {
        type: "file",
        onChange: u[0] || (u[0] = (c) => s.$emit("onChange", c)),
        multiple: s.multiple,
        accept: s.accept,
        disabled: s.disabled,
        id: "add-review-upload-media",
        class: "rvx-hidden"
      }, null, 40, a3),
      qe(s.$slots, "content", {}, () => [
        $(Et, {
          "icon-name": "backup",
          class: "rvx-mb-space5"
        }),
        $(Ct, { class: "!rvx-text-[12px]" }, {
          default: ee(() => u[1] || (u[1] = [
            je("Upload Photo / Video")
          ])),
          _: 1
        })
      ])
    ], 32));
  }
}), i3 = /* @__PURE__ */ se({
  __name: "UICarousel",
  props: {
    files: {}
  },
  setup(e) {
    const t = e, { state: n, go: r } = Oh(t.files);
    return (o, a) => (J(), ge(we, { class: "rvx-carousel" }, {
      default: ee(() => [
        qe(o.$slots, "image", {}, () => [
          (J(), ge(ua, {
            class: "!rvx-size-[80px] rvx-rounded-md",
            src: X(n),
            alt: X(n),
            key: X(n)
          }, null, 8, ["src", "alt"]))
        ], !0),
        qe(o.$slots, "pagination", {}, () => [
          $(we, { class: "rvx-flex rvx-justify-center rvx-gap-space5 rvx-mt-space5" }, {
            default: ee(() => [
              (J(!0), ve(He, null, mt(t.files, (i, l) => (J(), ge(we, {
                key: i,
                class: xe(`${i === X(n) ? "rvx-size-[7px] rvx-bg-primary" : "rvx-size-space5 rvx-bg-neutral-300"} rvx-rounded-full rvx-cursor-pointer`),
                onClick: (s) => X(r)(l)
              }, null, 8, ["class", "onClick"]))), 128))
            ]),
            _: 1
          })
        ], !0)
      ]),
      _: 3
    }));
  }
}), cN = /* @__PURE__ */ sn(i3, [["__scopeId", "data-v-762411bd"]]), l3 = ["src"], s3 = ["src", "onClick"], fN = /* @__PURE__ */ se({
  __name: "UIImagePreviewModal",
  props: {
    visibility: { type: Boolean },
    modalWrapperClass: {},
    modalClass: {},
    images: {},
    initialIndex: {}
  },
  emits: ["close"],
  setup(e) {
    const t = e, n = U(() => t.images ?? []), { state: r, go: o } = Oh(n, { initialIndex: t.initialIndex ?? 0 });
    return (a, i) => (J(), ge(sw, {
      visibility: a.visibility,
      class: "rvx-z-[40]",
      modalWrapperClass: `${t.modalWrapperClass ? t.modalWrapperClass : "!rvx-w-[648px]"}`,
      modalClass: ` ${t.modalClass ? t.modalClass : "rvx-px-space24 rvx-pb-space24 rvx-pt-space8"} `,
      onClose: i[0] || (i[0] = (l) => a.$emit("close"))
    }, {
      default: ee(() => [
        qe(a.$slots, "heading", {}, () => [
          $(Ct, {
            as: "h1",
            class: "rvx-font-semibold !rvx-text-[24px] rvx-leading-[38px] rvx-font-nunito"
          }, {
            default: ee(() => i[1] || (i[1] = [
              je(" Image preview ")
            ])),
            _: 1
          })
        ]),
        qe(a.$slots, "preview", {}, () => [
          $(we, { class: "rvx-py-space16" }, {
            default: ee(() => [
              X(Ka)(X(r)).isImage ? (J(), ge(ua, {
                key: 0,
                src: X(r),
                imageClass: "rvx-w-full",
                alt: "state",
                class: "rvx-w-full rvx-h-[400px] rvx-object-contain !rvx-rounded-md rvx-bg-neutral-300"
              }, null, 8, ["src"])) : Ie("", !0),
              X(Ka)(X(r)).isVideo ? (J(), ve("video", {
                key: 1,
                src: X(r),
                class: "rvx-w-full rvx-h-[400px] rvx-object-contain !rvx-rounded-md rvx-bg-neutral-300",
                controls: "",
                autoplay: "",
                muted: "",
                playsinline: ""
              }, null, 8, l3)) : Ie("", !0)
            ]),
            _: 1
          })
        ]),
        qe(a.$slots, "footer", {}, () => [
          $(we, { class: "rvx-flex rvx-gap-space12 rvx-items-center" }, {
            default: ee(() => [
              (J(!0), ve(He, null, mt(t.images, (l, s) => (J(), ve(He, { key: l }, [
                X(Ka)(l).isImage ? (J(), ge(ua, {
                  key: 0,
                  size: "xl",
                  src: l,
                  alt: "img",
                  onClick: (u) => X(o)(s),
                  class: xe(["rvx-cursor-pointer", {
                    "rvx-border rvx-border-primary rvx-border-solid": X(r) === l
                  }])
                }, null, 8, ["src", "onClick", "class"])) : Ie("", !0),
                X(Ka)(l).isVideo ? (J(), ve("video", {
                  key: 1,
                  src: l,
                  onClick: (u) => X(o)(s),
                  class: xe(["!rvx-size-[80px] rvx-rounded-md rvx-object-cover rvx-object-top rvx-cursor-pointer", {
                    "rvx-border rvx-border-primary rvx-border-solid": X(r) === l
                  }]),
                  muted: "",
                  playsinline: ""
                }, null, 10, s3)) : Ie("", !0)
              ], 64))), 128))
            ]),
            _: 1
          })
        ])
      ]),
      _: 3
    }, 8, ["visibility", "modalWrapperClass", "modalClass"]));
  }
});
var tn = "top", mn = "bottom", yn = "right", nn = "left", Ou = "auto", Na = [tn, mn, yn, nn], ho = "start", fa = "end", u3 = "clippingParents", Lh = "viewport", Go = "popper", c3 = "reference", $c = /* @__PURE__ */ Na.reduce(function(e, t) {
  return e.concat([t + "-" + ho, t + "-" + fa]);
}, []), Rh = /* @__PURE__ */ [].concat(Na, [Ou]).reduce(function(e, t) {
  return e.concat([t, t + "-" + ho, t + "-" + fa]);
}, []), f3 = "beforeRead", d3 = "read", v3 = "afterRead", h3 = "beforeMain", p3 = "main", g3 = "afterMain", m3 = "beforeWrite", y3 = "write", b3 = "afterWrite", w3 = [f3, d3, v3, h3, p3, g3, m3, y3, b3];
function jn(e) {
  return e ? (e.nodeName || "").toLowerCase() : null;
}
function ln(e) {
  if (e == null)
    return window;
  if (e.toString() !== "[object Window]") {
    var t = e.ownerDocument;
    return t && t.defaultView || window;
  }
  return e;
}
function Ur(e) {
  var t = ln(e).Element;
  return e instanceof t || e instanceof Element;
}
function hn(e) {
  var t = ln(e).HTMLElement;
  return e instanceof t || e instanceof HTMLElement;
}
function Cu(e) {
  if (typeof ShadowRoot > "u")
    return !1;
  var t = ln(e).ShadowRoot;
  return e instanceof t || e instanceof ShadowRoot;
}
function x3(e) {
  var t = e.state;
  Object.keys(t.elements).forEach(function(n) {
    var r = t.styles[n] || {}, o = t.attributes[n] || {}, a = t.elements[n];
    !hn(a) || !jn(a) || (Object.assign(a.style, r), Object.keys(o).forEach(function(i) {
      var l = o[i];
      l === !1 ? a.removeAttribute(i) : a.setAttribute(i, l === !0 ? "" : l);
    }));
  });
}
function A3(e) {
  var t = e.state, n = {
    popper: {
      position: t.options.strategy,
      left: "0",
      top: "0",
      margin: "0"
    },
    arrow: {
      position: "absolute"
    },
    reference: {}
  };
  return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
    Object.keys(t.elements).forEach(function(r) {
      var o = t.elements[r], a = t.attributes[r] || {}, i = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : n[r]), l = i.reduce(function(s, u) {
        return s[u] = "", s;
      }, {});
      !hn(o) || !jn(o) || (Object.assign(o.style, l), Object.keys(a).forEach(function(s) {
        o.removeAttribute(s);
      }));
    });
  };
}
const O3 = {
  name: "applyStyles",
  enabled: !0,
  phase: "write",
  fn: x3,
  effect: A3,
  requires: ["computeStyles"]
};
function Fn(e) {
  return e.split("-")[0];
}
var jr = Math.max, Oi = Math.min, po = Math.round;
function Rs() {
  var e = navigator.userAgentData;
  return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
    return t.brand + "/" + t.version;
  }).join(" ") : navigator.userAgent;
}
function Bh() {
  return !/^((?!chrome|android).)*safari/i.test(Rs());
}
function go(e, t, n) {
  t === void 0 && (t = !1), n === void 0 && (n = !1);
  var r = e.getBoundingClientRect(), o = 1, a = 1;
  t && hn(e) && (o = e.offsetWidth > 0 && po(r.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && po(r.height) / e.offsetHeight || 1);
  var i = Ur(e) ? ln(e) : window, l = i.visualViewport, s = !Bh() && n, u = (r.left + (s && l ? l.offsetLeft : 0)) / o, c = (r.top + (s && l ? l.offsetTop : 0)) / a, d = r.width / o, f = r.height / a;
  return {
    width: d,
    height: f,
    top: c,
    right: u + d,
    bottom: c + f,
    left: u,
    x: u,
    y: c
  };
}
function Eu(e) {
  var t = go(e), n = e.offsetWidth, r = e.offsetHeight;
  return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), {
    x: e.offsetLeft,
    y: e.offsetTop,
    width: n,
    height: r
  };
}
function Fh(e, t) {
  var n = t.getRootNode && t.getRootNode();
  if (e.contains(t))
    return !0;
  if (n && Cu(n)) {
    var r = t;
    do {
      if (r && e.isSameNode(r))
        return !0;
      r = r.parentNode || r.host;
    } while (r);
  }
  return !1;
}
function er(e) {
  return ln(e).getComputedStyle(e);
}
function C3(e) {
  return ["table", "td", "th"].indexOf(jn(e)) >= 0;
}
function Cr(e) {
  return ((Ur(e) ? e.ownerDocument : (
    // $FlowFixMe[prop-missing]
    e.document
  )) || window.document).documentElement;
}
function el(e) {
  return jn(e) === "html" ? e : (
    // this is a quicker (but less type safe) way to save quite some bytes from the bundle
    // $FlowFixMe[incompatible-return]
    // $FlowFixMe[prop-missing]
    e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
    e.parentNode || // DOM Element detected
    (Cu(e) ? e.host : null) || // ShadowRoot detected
    // $FlowFixMe[incompatible-call]: HTMLElement is a Node
    Cr(e)
  );
}
function ef(e) {
  return !hn(e) || // https://github.com/popperjs/popper-core/issues/837
  er(e).position === "fixed" ? null : e.offsetParent;
}
function E3(e) {
  var t = /firefox/i.test(Rs()), n = /Trident/i.test(Rs());
  if (n && hn(e)) {
    var r = er(e);
    if (r.position === "fixed")
      return null;
  }
  var o = el(e);
  for (Cu(o) && (o = o.host); hn(o) && ["html", "body"].indexOf(jn(o)) < 0; ) {
    var a = er(o);
    if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || t && a.willChange === "filter" || t && a.filter && a.filter !== "none")
      return o;
    o = o.parentNode;
  }
  return null;
}
function Ma(e) {
  for (var t = ln(e), n = ef(e); n && C3(n) && er(n).position === "static"; )
    n = ef(n);
  return n && (jn(n) === "html" || jn(n) === "body" && er(n).position === "static") ? t : n || E3(e) || t;
}
function Su(e) {
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
}
function la(e, t, n) {
  return jr(e, Oi(t, n));
}
function S3(e, t, n) {
  var r = la(e, t, n);
  return r > n ? n : r;
}
function jh() {
  return {
    top: 0,
    right: 0,
    bottom: 0,
    left: 0
  };
}
function qh(e) {
  return Object.assign({}, jh(), e);
}
function Vh(e, t) {
  return t.reduce(function(n, r) {
    return n[r] = e, n;
  }, {});
}
var T3 = function(t, n) {
  return t = typeof t == "function" ? t(Object.assign({}, n.rects, {
    placement: n.placement
  })) : t, qh(typeof t != "number" ? t : Vh(t, Na));
};
function D3(e) {
  var t, n = e.state, r = e.name, o = e.options, a = n.elements.arrow, i = n.modifiersData.popperOffsets, l = Fn(n.placement), s = Su(l), u = [nn, yn].indexOf(l) >= 0, c = u ? "height" : "width";
  if (!(!a || !i)) {
    var d = T3(o.padding, n), f = Eu(a), v = s === "y" ? tn : nn, h = s === "y" ? mn : yn, m = n.rects.reference[c] + n.rects.reference[s] - i[s] - n.rects.popper[c], p = i[s] - n.rects.reference[s], g = Ma(a), y = g ? s === "y" ? g.clientHeight || 0 : g.clientWidth || 0 : 0, x = m / 2 - p / 2, b = d[v], w = y - f[c] - d[h], D = y / 2 - f[c] / 2 + x, E = la(b, D, w), T = s;
    n.modifiersData[r] = (t = {}, t[T] = E, t.centerOffset = E - D, t);
  }
}
function k3(e) {
  var t = e.state, n = e.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
  o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || Fh(t.elements.popper, o) && (t.elements.arrow = o));
}
const P3 = {
  name: "arrow",
  enabled: !0,
  phase: "main",
  fn: D3,
  effect: k3,
  requires: ["popperOffsets"],
  requiresIfExists: ["preventOverflow"]
};
function mo(e) {
  return e.split("-")[1];
}
var I3 = {
  top: "auto",
  right: "auto",
  bottom: "auto",
  left: "auto"
};
function N3(e, t) {
  var n = e.x, r = e.y, o = t.devicePixelRatio || 1;
  return {
    x: po(n * o) / o || 0,
    y: po(r * o) / o || 0
  };
}
function tf(e) {
  var t, n = e.popper, r = e.popperRect, o = e.placement, a = e.variation, i = e.offsets, l = e.position, s = e.gpuAcceleration, u = e.adaptive, c = e.roundOffsets, d = e.isFixed, f = i.x, v = f === void 0 ? 0 : f, h = i.y, m = h === void 0 ? 0 : h, p = typeof c == "function" ? c({
    x: v,
    y: m
  }) : {
    x: v,
    y: m
  };
  v = p.x, m = p.y;
  var g = i.hasOwnProperty("x"), y = i.hasOwnProperty("y"), x = nn, b = tn, w = window;
  if (u) {
    var D = Ma(n), E = "clientHeight", T = "clientWidth";
    if (D === ln(n) && (D = Cr(n), er(D).position !== "static" && l === "absolute" && (E = "scrollHeight", T = "scrollWidth")), D = D, o === tn || (o === nn || o === yn) && a === fa) {
      b = mn;
      var L = d && D === w && w.visualViewport ? w.visualViewport.height : (
        // $FlowFixMe[prop-missing]
        D[E]
      );
      m -= L - r.height, m *= s ? 1 : -1;
    }
    if (o === nn || (o === tn || o === mn) && a === fa) {
      x = yn;
      var S = d && D === w && w.visualViewport ? w.visualViewport.width : (
        // $FlowFixMe[prop-missing]
        D[T]
      );
      v -= S - r.width, v *= s ? 1 : -1;
    }
  }
  var A = Object.assign({
    position: l
  }, u && I3), C = c === !0 ? N3({
    x: v,
    y: m
  }, ln(n)) : {
    x: v,
    y: m
  };
  if (v = C.x, m = C.y, s) {
    var k;
    return Object.assign({}, A, (k = {}, k[b] = y ? "0" : "", k[x] = g ? "0" : "", k.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + v + "px, " + m + "px)" : "translate3d(" + v + "px, " + m + "px, 0)", k));
  }
  return Object.assign({}, A, (t = {}, t[b] = y ? m + "px" : "", t[x] = g ? v + "px" : "", t.transform = "", t));
}
function M3(e) {
  var t = e.state, n = e.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, a = n.adaptive, i = a === void 0 ? !0 : a, l = n.roundOffsets, s = l === void 0 ? !0 : l, u = {
    placement: Fn(t.placement),
    variation: mo(t.placement),
    popper: t.elements.popper,
    popperRect: t.rects.popper,
    gpuAcceleration: o,
    isFixed: t.options.strategy === "fixed"
  };
  t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, tf(Object.assign({}, u, {
    offsets: t.modifiersData.popperOffsets,
    position: t.options.strategy,
    adaptive: i,
    roundOffsets: s
  })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, tf(Object.assign({}, u, {
    offsets: t.modifiersData.arrow,
    position: "absolute",
    adaptive: !1,
    roundOffsets: s
  })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
    "data-popper-placement": t.placement
  });
}
const L3 = {
  name: "computeStyles",
  enabled: !0,
  phase: "beforeWrite",
  fn: M3,
  data: {}
};
var ti = {
  passive: !0
};
function R3(e) {
  var t = e.state, n = e.instance, r = e.options, o = r.scroll, a = o === void 0 ? !0 : o, i = r.resize, l = i === void 0 ? !0 : i, s = ln(t.elements.popper), u = [].concat(t.scrollParents.reference, t.scrollParents.popper);
  return a && u.forEach(function(c) {
    c.addEventListener("scroll", n.update, ti);
  }), l && s.addEventListener("resize", n.update, ti), function() {
    a && u.forEach(function(c) {
      c.removeEventListener("scroll", n.update, ti);
    }), l && s.removeEventListener("resize", n.update, ti);
  };
}
const B3 = {
  name: "eventListeners",
  enabled: !0,
  phase: "write",
  fn: function() {
  },
  effect: R3,
  data: {}
};
var F3 = {
  left: "right",
  right: "left",
  bottom: "top",
  top: "bottom"
};
function fi(e) {
  return e.replace(/left|right|bottom|top/g, function(t) {
    return F3[t];
  });
}
var j3 = {
  start: "end",
  end: "start"
};
function nf(e) {
  return e.replace(/start|end/g, function(t) {
    return j3[t];
  });
}
function Tu(e) {
  var t = ln(e), n = t.pageXOffset, r = t.pageYOffset;
  return {
    scrollLeft: n,
    scrollTop: r
  };
}
function Du(e) {
  return go(Cr(e)).left + Tu(e).scrollLeft;
}
function q3(e, t) {
  var n = ln(e), r = Cr(e), o = n.visualViewport, a = r.clientWidth, i = r.clientHeight, l = 0, s = 0;
  if (o) {
    a = o.width, i = o.height;
    var u = Bh();
    (u || !u && t === "fixed") && (l = o.offsetLeft, s = o.offsetTop);
  }
  return {
    width: a,
    height: i,
    x: l + Du(e),
    y: s
  };
}
function V3(e) {
  var t, n = Cr(e), r = Tu(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = jr(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), i = jr(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), l = -r.scrollLeft + Du(e), s = -r.scrollTop;
  return er(o || n).direction === "rtl" && (l += jr(n.clientWidth, o ? o.clientWidth : 0) - a), {
    width: a,
    height: i,
    x: l,
    y: s
  };
}
function ku(e) {
  var t = er(e), n = t.overflow, r = t.overflowX, o = t.overflowY;
  return /auto|scroll|overlay|hidden/.test(n + o + r);
}
function zh(e) {
  return ["html", "body", "#document"].indexOf(jn(e)) >= 0 ? e.ownerDocument.body : hn(e) && ku(e) ? e : zh(el(e));
}
function sa(e, t) {
  var n;
  t === void 0 && (t = []);
  var r = zh(e), o = r === ((n = e.ownerDocument) == null ? void 0 : n.body), a = ln(r), i = o ? [a].concat(a.visualViewport || [], ku(r) ? r : []) : r, l = t.concat(i);
  return o ? l : (
    // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
    l.concat(sa(el(i)))
  );
}
function Bs(e) {
  return Object.assign({}, e, {
    left: e.x,
    top: e.y,
    right: e.x + e.width,
    bottom: e.y + e.height
  });
}
function z3(e, t) {
  var n = go(e, !1, t === "fixed");
  return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
}
function rf(e, t, n) {
  return t === Lh ? Bs(q3(e, n)) : Ur(t) ? z3(t, n) : Bs(V3(Cr(e)));
}
function U3(e) {
  var t = sa(el(e)), n = ["absolute", "fixed"].indexOf(er(e).position) >= 0, r = n && hn(e) ? Ma(e) : e;
  return Ur(r) ? t.filter(function(o) {
    return Ur(o) && Fh(o, r) && jn(o) !== "body";
  }) : [];
}
function H3(e, t, n, r) {
  var o = t === "clippingParents" ? U3(e) : [].concat(t), a = [].concat(o, [n]), i = a[0], l = a.reduce(function(s, u) {
    var c = rf(e, u, r);
    return s.top = jr(c.top, s.top), s.right = Oi(c.right, s.right), s.bottom = Oi(c.bottom, s.bottom), s.left = jr(c.left, s.left), s;
  }, rf(e, i, r));
  return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
}
function Uh(e) {
  var t = e.reference, n = e.element, r = e.placement, o = r ? Fn(r) : null, a = r ? mo(r) : null, i = t.x + t.width / 2 - n.width / 2, l = t.y + t.height / 2 - n.height / 2, s;
  switch (o) {
    case tn:
      s = {
        x: i,
        y: t.y - n.height
      };
      break;
    case mn:
      s = {
        x: i,
        y: t.y + t.height
      };
      break;
    case yn:
      s = {
        x: t.x + t.width,
        y: l
      };
      break;
    case nn:
      s = {
        x: t.x - n.width,
        y: l
      };
      break;
    default:
      s = {
        x: t.x,
        y: t.y
      };
  }
  var u = o ? Su(o) : null;
  if (u != null) {
    var c = u === "y" ? "height" : "width";
    switch (a) {
      case ho:
        s[u] = s[u] - (t[c] / 2 - n[c] / 2);
        break;
      case fa:
        s[u] = s[u] + (t[c] / 2 - n[c] / 2);
        break;
    }
  }
  return s;
}
function da(e, t) {
  t === void 0 && (t = {});
  var n = t, r = n.placement, o = r === void 0 ? e.placement : r, a = n.strategy, i = a === void 0 ? e.strategy : a, l = n.boundary, s = l === void 0 ? u3 : l, u = n.rootBoundary, c = u === void 0 ? Lh : u, d = n.elementContext, f = d === void 0 ? Go : d, v = n.altBoundary, h = v === void 0 ? !1 : v, m = n.padding, p = m === void 0 ? 0 : m, g = qh(typeof p != "number" ? p : Vh(p, Na)), y = f === Go ? c3 : Go, x = e.rects.popper, b = e.elements[h ? y : f], w = H3(Ur(b) ? b : b.contextElement || Cr(e.elements.popper), s, c, i), D = go(e.elements.reference), E = Uh({
    reference: D,
    element: x,
    placement: o
  }), T = Bs(Object.assign({}, x, E)), L = f === Go ? T : D, S = {
    top: w.top - L.top + g.top,
    bottom: L.bottom - w.bottom + g.bottom,
    left: w.left - L.left + g.left,
    right: L.right - w.right + g.right
  }, A = e.modifiersData.offset;
  if (f === Go && A) {
    var C = A[o];
    Object.keys(S).forEach(function(k) {
      var I = [yn, mn].indexOf(k) >= 0 ? 1 : -1, N = [tn, mn].indexOf(k) >= 0 ? "y" : "x";
      S[k] += C[N] * I;
    });
  }
  return S;
}
function Y3(e, t) {
  t === void 0 && (t = {});
  var n = t, r = n.placement, o = n.boundary, a = n.rootBoundary, i = n.padding, l = n.flipVariations, s = n.allowedAutoPlacements, u = s === void 0 ? Rh : s, c = mo(r), d = c ? l ? $c : $c.filter(function(h) {
    return mo(h) === c;
  }) : Na, f = d.filter(function(h) {
    return u.indexOf(h) >= 0;
  });
  f.length === 0 && (f = d);
  var v = f.reduce(function(h, m) {
    return h[m] = da(e, {
      placement: m,
      boundary: o,
      rootBoundary: a,
      padding: i
    })[Fn(m)], h;
  }, {});
  return Object.keys(v).sort(function(h, m) {
    return v[h] - v[m];
  });
}
function Q3(e) {
  if (Fn(e) === Ou)
    return [];
  var t = fi(e);
  return [nf(e), t, nf(t)];
}
function W3(e) {
  var t = e.state, n = e.options, r = e.name;
  if (!t.modifiersData[r]._skip) {
    for (var o = n.mainAxis, a = o === void 0 ? !0 : o, i = n.altAxis, l = i === void 0 ? !0 : i, s = n.fallbackPlacements, u = n.padding, c = n.boundary, d = n.rootBoundary, f = n.altBoundary, v = n.flipVariations, h = v === void 0 ? !0 : v, m = n.allowedAutoPlacements, p = t.options.placement, g = Fn(p), y = g === p, x = s || (y || !h ? [fi(p)] : Q3(p)), b = [p].concat(x).reduce(function(Y, Q) {
      return Y.concat(Fn(Q) === Ou ? Y3(t, {
        placement: Q,
        boundary: c,
        rootBoundary: d,
        padding: u,
        flipVariations: h,
        allowedAutoPlacements: m
      }) : Q);
    }, []), w = t.rects.reference, D = t.rects.popper, E = /* @__PURE__ */ new Map(), T = !0, L = b[0], S = 0; S < b.length; S++) {
      var A = b[S], C = Fn(A), k = mo(A) === ho, I = [tn, mn].indexOf(C) >= 0, N = I ? "width" : "height", F = da(t, {
        placement: A,
        boundary: c,
        rootBoundary: d,
        altBoundary: f,
        padding: u
      }), V = I ? k ? yn : nn : k ? mn : tn;
      w[N] > D[N] && (V = fi(V));
      var G = fi(V), z = [];
      if (a && z.push(F[C] <= 0), l && z.push(F[V] <= 0, F[G] <= 0), z.every(function(Y) {
        return Y;
      })) {
        L = A, T = !1;
        break;
      }
      E.set(A, z);
    }
    if (T)
      for (var M = h ? 3 : 1, P = function(Q) {
        var B = b.find(function(H) {
          var Z = E.get(H);
          if (Z)
            return Z.slice(0, Q).every(function(_) {
              return _;
            });
        });
        if (B)
          return L = B, "break";
      }, R = M; R > 0; R--) {
        var q = P(R);
        if (q === "break")
          break;
      }
    t.placement !== L && (t.modifiersData[r]._skip = !0, t.placement = L, t.reset = !0);
  }
}
const G3 = {
  name: "flip",
  enabled: !0,
  phase: "main",
  fn: W3,
  requiresIfExists: ["offset"],
  data: {
    _skip: !1
  }
};
function of(e, t, n) {
  return n === void 0 && (n = {
    x: 0,
    y: 0
  }), {
    top: e.top - t.height - n.y,
    right: e.right - t.width + n.x,
    bottom: e.bottom - t.height + n.y,
    left: e.left - t.width - n.x
  };
}
function af(e) {
  return [tn, yn, mn, nn].some(function(t) {
    return e[t] >= 0;
  });
}
function K3(e) {
  var t = e.state, n = e.name, r = t.rects.reference, o = t.rects.popper, a = t.modifiersData.preventOverflow, i = da(t, {
    elementContext: "reference"
  }), l = da(t, {
    altBoundary: !0
  }), s = of(i, r), u = of(l, o, a), c = af(s), d = af(u);
  t.modifiersData[n] = {
    referenceClippingOffsets: s,
    popperEscapeOffsets: u,
    isReferenceHidden: c,
    hasPopperEscaped: d
  }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
    "data-popper-reference-hidden": c,
    "data-popper-escaped": d
  });
}
const X3 = {
  name: "hide",
  enabled: !0,
  phase: "main",
  requiresIfExists: ["preventOverflow"],
  fn: K3
};
function Z3(e, t, n) {
  var r = Fn(e), o = [nn, tn].indexOf(r) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, t, {
    placement: e
  })) : n, i = a[0], l = a[1];
  return i = i || 0, l = (l || 0) * o, [nn, yn].indexOf(r) >= 0 ? {
    x: l,
    y: i
  } : {
    x: i,
    y: l
  };
}
function J3(e) {
  var t = e.state, n = e.options, r = e.name, o = n.offset, a = o === void 0 ? [0, 0] : o, i = Rh.reduce(function(c, d) {
    return c[d] = Z3(d, t.rects, a), c;
  }, {}), l = i[t.placement], s = l.x, u = l.y;
  t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += u), t.modifiersData[r] = i;
}
const _3 = {
  name: "offset",
  enabled: !0,
  phase: "main",
  requires: ["popperOffsets"],
  fn: J3
};
function $3(e) {
  var t = e.state, n = e.name;
  t.modifiersData[n] = Uh({
    reference: t.rects.reference,
    element: t.rects.popper,
    placement: t.placement
  });
}
const ex = {
  name: "popperOffsets",
  enabled: !0,
  phase: "read",
  fn: $3,
  data: {}
};
function tx(e) {
  return e === "x" ? "y" : "x";
}
function nx(e) {
  var t = e.state, n = e.options, r = e.name, o = n.mainAxis, a = o === void 0 ? !0 : o, i = n.altAxis, l = i === void 0 ? !1 : i, s = n.boundary, u = n.rootBoundary, c = n.altBoundary, d = n.padding, f = n.tether, v = f === void 0 ? !0 : f, h = n.tetherOffset, m = h === void 0 ? 0 : h, p = da(t, {
    boundary: s,
    rootBoundary: u,
    padding: d,
    altBoundary: c
  }), g = Fn(t.placement), y = mo(t.placement), x = !y, b = Su(g), w = tx(b), D = t.modifiersData.popperOffsets, E = t.rects.reference, T = t.rects.popper, L = typeof m == "function" ? m(Object.assign({}, t.rects, {
    placement: t.placement
  })) : m, S = typeof L == "number" ? {
    mainAxis: L,
    altAxis: L
  } : Object.assign({
    mainAxis: 0,
    altAxis: 0
  }, L), A = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, C = {
    x: 0,
    y: 0
  };
  if (D) {
    if (a) {
      var k, I = b === "y" ? tn : nn, N = b === "y" ? mn : yn, F = b === "y" ? "height" : "width", V = D[b], G = V + p[I], z = V - p[N], M = v ? -T[F] / 2 : 0, P = y === ho ? E[F] : T[F], R = y === ho ? -T[F] : -E[F], q = t.elements.arrow, Y = v && q ? Eu(q) : {
        width: 0,
        height: 0
      }, Q = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : jh(), B = Q[I], H = Q[N], Z = la(0, E[F], Y[F]), _ = x ? E[F] / 2 - M - Z - B - S.mainAxis : P - Z - B - S.mainAxis, re = x ? -E[F] / 2 + M + Z + H + S.mainAxis : R + Z + H + S.mainAxis, he = t.elements.arrow && Ma(t.elements.arrow), be = he ? b === "y" ? he.clientTop || 0 : he.clientLeft || 0 : 0, Oe = (k = A == null ? void 0 : A[b]) != null ? k : 0, Pe = V + _ - Oe - be, Ve = V + re - Oe, $e = la(v ? Oi(G, Pe) : G, V, v ? jr(z, Ve) : z);
      D[b] = $e, C[b] = $e - V;
    }
    if (l) {
      var Je, oe = b === "x" ? tn : nn, ie = b === "x" ? mn : yn, pe = D[w], me = w === "y" ? "height" : "width", ce = pe + p[oe], ke = pe - p[ie], Ce = [tn, nn].indexOf(g) !== -1, De = (Je = A == null ? void 0 : A[w]) != null ? Je : 0, ft = Ce ? ce : pe - E[me] - T[me] - De + S.altAxis, dt = Ce ? pe + E[me] + T[me] - De - S.altAxis : ke, Ge = v && Ce ? S3(ft, pe, dt) : la(v ? ft : ce, pe, v ? dt : ke);
      D[w] = Ge, C[w] = Ge - pe;
    }
    t.modifiersData[r] = C;
  }
}
const rx = {
  name: "preventOverflow",
  enabled: !0,
  phase: "main",
  fn: nx,
  requiresIfExists: ["offset"]
};
function ox(e) {
  return {
    scrollLeft: e.scrollLeft,
    scrollTop: e.scrollTop
  };
}
function ax(e) {
  return e === ln(e) || !hn(e) ? Tu(e) : ox(e);
}
function ix(e) {
  var t = e.getBoundingClientRect(), n = po(t.width) / e.offsetWidth || 1, r = po(t.height) / e.offsetHeight || 1;
  return n !== 1 || r !== 1;
}
function lx(e, t, n) {
  n === void 0 && (n = !1);
  var r = hn(t), o = hn(t) && ix(t), a = Cr(t), i = go(e, o, n), l = {
    scrollLeft: 0,
    scrollTop: 0
  }, s = {
    x: 0,
    y: 0
  };
  return (r || !r && !n) && ((jn(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
  ku(a)) && (l = ax(t)), hn(t) ? (s = go(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : a && (s.x = Du(a))), {
    x: i.left + l.scrollLeft - s.x,
    y: i.top + l.scrollTop - s.y,
    width: i.width,
    height: i.height
  };
}
function sx(e) {
  var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
  e.forEach(function(a) {
    t.set(a.name, a);
  });
  function o(a) {
    n.add(a.name);
    var i = [].concat(a.requires || [], a.requiresIfExists || []);
    i.forEach(function(l) {
      if (!n.has(l)) {
        var s = t.get(l);
        s && o(s);
      }
    }), r.push(a);
  }
  return e.forEach(function(a) {
    n.has(a.name) || o(a);
  }), r;
}
function ux(e) {
  var t = sx(e);
  return w3.reduce(function(n, r) {
    return n.concat(t.filter(function(o) {
      return o.phase === r;
    }));
  }, []);
}
function cx(e) {
  var t;
  return function() {
    return t || (t = new Promise(function(n) {
      Promise.resolve().then(function() {
        t = void 0, n(e());
      });
    })), t;
  };
}
function fx(e) {
  var t = e.reduce(function(n, r) {
    var o = n[r.name];
    return n[r.name] = o ? Object.assign({}, o, r, {
      options: Object.assign({}, o.options, r.options),
      data: Object.assign({}, o.data, r.data)
    }) : r, n;
  }, {});
  return Object.keys(t).map(function(n) {
    return t[n];
  });
}
var lf = {
  placement: "bottom",
  modifiers: [],
  strategy: "absolute"
};
function sf() {
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
    t[n] = arguments[n];
  return !t.some(function(r) {
    return !(r && typeof r.getBoundingClientRect == "function");
  });
}
function dx(e) {
  e === void 0 && (e = {});
  var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, o = t.defaultOptions, a = o === void 0 ? lf : o;
  return function(l, s, u) {
    u === void 0 && (u = a);
    var c = {
      placement: "bottom",
      orderedModifiers: [],
      options: Object.assign({}, lf, a),
      modifiersData: {},
      elements: {
        reference: l,
        popper: s
      },
      attributes: {},
      styles: {}
    }, d = [], f = !1, v = {
      state: c,
      setOptions: function(g) {
        var y = typeof g == "function" ? g(c.options) : g;
        m(), c.options = Object.assign({}, a, c.options, y), c.scrollParents = {
          reference: Ur(l) ? sa(l) : l.contextElement ? sa(l.contextElement) : [],
          popper: sa(s)
        };
        var x = ux(fx([].concat(r, c.options.modifiers)));
        return c.orderedModifiers = x.filter(function(b) {
          return b.enabled;
        }), h(), v.update();
      },
      // Sync update – it will always be executed, even if not necessary. This
      // is useful for low frequency updates where sync behavior simplifies the
      // logic.
      // For high frequency updates (e.g. `resize` and `scroll` events), always
      // prefer the async Popper#update method
      forceUpdate: function() {
        if (!f) {
          var g = c.elements, y = g.reference, x = g.popper;
          if (sf(y, x)) {
            c.rects = {
              reference: lx(y, Ma(x), c.options.strategy === "fixed"),
              popper: Eu(x)
            }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(S) {
              return c.modifiersData[S.name] = Object.assign({}, S.data);
            });
            for (var b = 0; b < c.orderedModifiers.length; b++) {
              if (c.reset === !0) {
                c.reset = !1, b = -1;
                continue;
              }
              var w = c.orderedModifiers[b], D = w.fn, E = w.options, T = E === void 0 ? {} : E, L = w.name;
              typeof D == "function" && (c = D({
                state: c,
                options: T,
                name: L,
                instance: v
              }) || c);
            }
          }
        }
      },
      // Async and optimistically optimized update – it will not be executed if
      // not necessary (debounced to run at most once-per-tick)
      update: cx(function() {
        return new Promise(function(p) {
          v.forceUpdate(), p(c);
        });
      }),
      destroy: function() {
        m(), f = !0;
      }
    };
    if (!sf(l, s))
      return v;
    v.setOptions(u).then(function(p) {
      !f && u.onFirstUpdate && u.onFirstUpdate(p);
    });
    function h() {
      c.orderedModifiers.forEach(function(p) {
        var g = p.name, y = p.options, x = y === void 0 ? {} : y, b = p.effect;
        if (typeof b == "function") {
          var w = b({
            state: c,
            name: g,
            instance: v,
            options: x
          }), D = function() {
          };
          d.push(w || D);
        }
      });
    }
    function m() {
      d.forEach(function(p) {
        return p();
      }), d = [];
    }
    return v;
  };
}
var vx = [B3, ex, L3, O3, _3, G3, rx, P3, X3], hx = /* @__PURE__ */ dx({
  defaultModifiers: vx
}), px = Object.defineProperty, gx = (e, t, n) => t in e ? px(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Se = (e, t, n) => (gx(e, typeof t != "symbol" ? t + "" : t, n), n), ni = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Hh(e) {
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var mx = Object.prototype, yx = mx.hasOwnProperty;
function bx(e, t) {
  return e != null && yx.call(e, t);
}
var wx = bx, xx = Array.isArray, kn = xx, Ax = typeof ni == "object" && ni && ni.Object === Object && ni, Yh = Ax, Ox = Yh, Cx = typeof self == "object" && self && self.Object === Object && self, Ex = Ox || Cx || Function("return this")(), qn = Ex, Sx = qn, Tx = Sx.Symbol, tl = Tx, uf = tl, Qh = Object.prototype, Dx = Qh.hasOwnProperty, kx = Qh.toString, Ko = uf ? uf.toStringTag : void 0;
function Px(e) {
  var t = Dx.call(e, Ko), n = e[Ko];
  try {
    e[Ko] = void 0;
    var r = !0;
  } catch {
  }
  var o = kx.call(e);
  return r && (t ? e[Ko] = n : delete e[Ko]), o;
}
var Ix = Px, Nx = Object.prototype, Mx = Nx.toString;
function Lx(e) {
  return Mx.call(e);
}
var Rx = Lx, cf = tl, Bx = Ix, Fx = Rx, jx = "[object Null]", qx = "[object Undefined]", ff = cf ? cf.toStringTag : void 0;
function Vx(e) {
  return e == null ? e === void 0 ? qx : jx : ff && ff in Object(e) ? Bx(e) : Fx(e);
}
var Vn = Vx;
function zx(e) {
  return e != null && typeof e == "object";
}
var Pn = zx, Ux = Vn, Hx = Pn, Yx = "[object Symbol]";
function Qx(e) {
  return typeof e == "symbol" || Hx(e) && Ux(e) == Yx;
}
var Pu = Qx, Wx = kn, Gx = Pu, Kx = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Xx = /^\w*$/;
function Zx(e, t) {
  if (Wx(e))
    return !1;
  var n = typeof e;
  return n == "number" || n == "symbol" || n == "boolean" || e == null || Gx(e) ? !0 : Xx.test(e) || !Kx.test(e) || t != null && e in Object(t);
}
var Iu = Zx;
function Jx(e) {
  var t = typeof e;
  return e != null && (t == "object" || t == "function");
}
var or = Jx, _x = Vn, $x = or, eA = "[object AsyncFunction]", tA = "[object Function]", nA = "[object GeneratorFunction]", rA = "[object Proxy]";
function oA(e) {
  if (!$x(e))
    return !1;
  var t = _x(e);
  return t == tA || t == nA || t == eA || t == rA;
}
var Qr = oA, aA = qn, iA = aA["__core-js_shared__"], lA = iA, rs = lA, df = function() {
  var e = /[^.]+$/.exec(rs && rs.keys && rs.keys.IE_PROTO || "");
  return e ? "Symbol(src)_1." + e : "";
}();
function sA(e) {
  return !!df && df in e;
}
var uA = sA, cA = Function.prototype, fA = cA.toString;
function dA(e) {
  if (e != null) {
    try {
      return fA.call(e);
    } catch {
    }
    try {
      return e + "";
    } catch {
    }
  }
  return "";
}
var Wh = dA, vA = Qr, hA = uA, pA = or, gA = Wh, mA = /[\\^$.*+?()[\]{}|]/g, yA = /^\[object .+?Constructor\]$/, bA = Function.prototype, wA = Object.prototype, xA = bA.toString, AA = wA.hasOwnProperty, OA = RegExp(
  "^" + xA.call(AA).replace(mA, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
);
function CA(e) {
  if (!pA(e) || hA(e))
    return !1;
  var t = vA(e) ? OA : yA;
  return t.test(gA(e));
}
var EA = CA;
function SA(e, t) {
  return e == null ? void 0 : e[t];
}
var TA = SA, DA = EA, kA = TA;
function PA(e, t) {
  var n = kA(e, t);
  return DA(n) ? n : void 0;
}
var Wr = PA, IA = Wr, NA = IA(Object, "create"), nl = NA, vf = nl;
function MA() {
  this.__data__ = vf ? vf(null) : {}, this.size = 0;
}
var LA = MA;
function RA(e) {
  var t = this.has(e) && delete this.__data__[e];
  return this.size -= t ? 1 : 0, t;
}
var BA = RA, FA = nl, jA = "__lodash_hash_undefined__", qA = Object.prototype, VA = qA.hasOwnProperty;
function zA(e) {
  var t = this.__data__;
  if (FA) {
    var n = t[e];
    return n === jA ? void 0 : n;
  }
  return VA.call(t, e) ? t[e] : void 0;
}
var UA = zA, HA = nl, YA = Object.prototype, QA = YA.hasOwnProperty;
function WA(e) {
  var t = this.__data__;
  return HA ? t[e] !== void 0 : QA.call(t, e);
}
var GA = WA, KA = nl, XA = "__lodash_hash_undefined__";
function ZA(e, t) {
  var n = this.__data__;
  return this.size += this.has(e) ? 0 : 1, n[e] = KA && t === void 0 ? XA : t, this;
}
var JA = ZA, _A = LA, $A = BA, e4 = UA, t4 = GA, n4 = JA;
function Eo(e) {
  var t = -1, n = e == null ? 0 : e.length;
  for (this.clear(); ++t < n; ) {
    var r = e[t];
    this.set(r[0], r[1]);
  }
}
Eo.prototype.clear = _A;
Eo.prototype.delete = $A;
Eo.prototype.get = e4;
Eo.prototype.has = t4;
Eo.prototype.set = n4;
var r4 = Eo;
function o4() {
  this.__data__ = [], this.size = 0;
}
var a4 = o4;
function i4(e, t) {
  return e === t || e !== e && t !== t;
}
var So = i4, l4 = So;
function s4(e, t) {
  for (var n = e.length; n--; )
    if (l4(e[n][0], t))
      return n;
  return -1;
}
var rl = s4, u4 = rl, c4 = Array.prototype, f4 = c4.splice;
function d4(e) {
  var t = this.__data__, n = u4(t, e);
  if (n < 0)
    return !1;
  var r = t.length - 1;
  return n == r ? t.pop() : f4.call(t, n, 1), --this.size, !0;
}
var v4 = d4, h4 = rl;
function p4(e) {
  var t = this.__data__, n = h4(t, e);
  return n < 0 ? void 0 : t[n][1];
}
var g4 = p4, m4 = rl;
function y4(e) {
  return m4(this.__data__, e) > -1;
}
var b4 = y4, w4 = rl;
function x4(e, t) {
  var n = this.__data__, r = w4(n, e);
  return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
}
var A4 = x4, O4 = a4, C4 = v4, E4 = g4, S4 = b4, T4 = A4;
function To(e) {
  var t = -1, n = e == null ? 0 : e.length;
  for (this.clear(); ++t < n; ) {
    var r = e[t];
    this.set(r[0], r[1]);
  }
}
To.prototype.clear = O4;
To.prototype.delete = C4;
To.prototype.get = E4;
To.prototype.has = S4;
To.prototype.set = T4;
var ol = To, D4 = Wr, k4 = qn, P4 = D4(k4, "Map"), Nu = P4, hf = r4, I4 = ol, N4 = Nu;
function M4() {
  this.size = 0, this.__data__ = {
    hash: new hf(),
    map: new (N4 || I4)(),
    string: new hf()
  };
}
var L4 = M4;
function R4(e) {
  var t = typeof e;
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
}
var B4 = R4, F4 = B4;
function j4(e, t) {
  var n = e.__data__;
  return F4(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
}
var al = j4, q4 = al;
function V4(e) {
  var t = q4(this, e).delete(e);
  return this.size -= t ? 1 : 0, t;
}
var z4 = V4, U4 = al;
function H4(e) {
  return U4(this, e).get(e);
}
var Y4 = H4, Q4 = al;
function W4(e) {
  return Q4(this, e).has(e);
}
var G4 = W4, K4 = al;
function X4(e, t) {
  var n = K4(this, e), r = n.size;
  return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
}
var Z4 = X4, J4 = L4, _4 = z4, $4 = Y4, e5 = G4, t5 = Z4;
function Do(e) {
  var t = -1, n = e == null ? 0 : e.length;
  for (this.clear(); ++t < n; ) {
    var r = e[t];
    this.set(r[0], r[1]);
  }
}
Do.prototype.clear = J4;
Do.prototype.delete = _4;
Do.prototype.get = $4;
Do.prototype.has = e5;
Do.prototype.set = t5;
var Mu = Do, Gh = Mu, n5 = "Expected a function";
function Lu(e, t) {
  if (typeof e != "function" || t != null && typeof t != "function")
    throw new TypeError(n5);
  var n = function() {
    var r = arguments, o = t ? t.apply(this, r) : r[0], a = n.cache;
    if (a.has(o))
      return a.get(o);
    var i = e.apply(this, r);
    return n.cache = a.set(o, i) || a, i;
  };
  return n.cache = new (Lu.Cache || Gh)(), n;
}
Lu.Cache = Gh;
var r5 = Lu, o5 = r5, a5 = 500;
function i5(e) {
  var t = o5(e, function(r) {
    return n.size === a5 && n.clear(), r;
  }), n = t.cache;
  return t;
}
var l5 = i5, s5 = l5, u5 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, c5 = /\\(\\)?/g, f5 = s5(function(e) {
  var t = [];
  return e.charCodeAt(0) === 46 && t.push(""), e.replace(u5, function(n, r, o, a) {
    t.push(o ? a.replace(c5, "$1") : r || n);
  }), t;
}), d5 = f5;
function v5(e, t) {
  for (var n = -1, r = e == null ? 0 : e.length, o = Array(r); ++n < r; )
    o[n] = t(e[n], n, e);
  return o;
}
var h5 = v5, pf = tl, p5 = h5, g5 = kn, m5 = Pu, gf = pf ? pf.prototype : void 0, mf = gf ? gf.toString : void 0;
function Kh(e) {
  if (typeof e == "string")
    return e;
  if (g5(e))
    return p5(e, Kh) + "";
  if (m5(e))
    return mf ? mf.call(e) : "";
  var t = e + "";
  return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
}
var y5 = Kh, b5 = y5;
function w5(e) {
  return e == null ? "" : b5(e);
}
var x5 = w5, A5 = kn, O5 = Iu, C5 = d5, E5 = x5;
function S5(e, t) {
  return A5(e) ? e : O5(e, t) ? [e] : C5(E5(e));
}
var Xh = S5, T5 = Vn, D5 = Pn, k5 = "[object Arguments]";
function P5(e) {
  return D5(e) && T5(e) == k5;
}
var I5 = P5, yf = I5, N5 = Pn, Zh = Object.prototype, M5 = Zh.hasOwnProperty, L5 = Zh.propertyIsEnumerable, R5 = yf(/* @__PURE__ */ function() {
  return arguments;
}()) ? yf : function(e) {
  return N5(e) && M5.call(e, "callee") && !L5.call(e, "callee");
}, Ru = R5, B5 = 9007199254740991, F5 = /^(?:0|[1-9]\d*)$/;
function j5(e, t) {
  var n = typeof e;
  return t = t ?? B5, !!t && (n == "number" || n != "symbol" && F5.test(e)) && e > -1 && e % 1 == 0 && e < t;
}
var Bu = j5, q5 = 9007199254740991;
function V5(e) {
  return typeof e == "number" && e > -1 && e % 1 == 0 && e <= q5;
}
var Fu = V5, z5 = Pu;
function U5(e) {
  if (typeof e == "string" || z5(e))
    return e;
  var t = e + "";
  return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
}
var il = U5, H5 = Xh, Y5 = Ru, Q5 = kn, W5 = Bu, G5 = Fu, K5 = il;
function X5(e, t, n) {
  t = H5(t, e);
  for (var r = -1, o = t.length, a = !1; ++r < o; ) {
    var i = K5(t[r]);
    if (!(a = e != null && n(e, i)))
      break;
    e = e[i];
  }
  return a || ++r != o ? a : (o = e == null ? 0 : e.length, !!o && G5(o) && W5(i, o) && (Q5(e) || Y5(e)));
}
var Jh = X5, Z5 = wx, J5 = Jh;
function _5(e, t) {
  return e != null && J5(e, t, Z5);
}
var _h = _5, $5 = Vn, eO = Pn, tO = "[object Date]";
function nO(e) {
  return eO(e) && $5(e) == tO;
}
var rO = nO;
function oO(e) {
  return function(t) {
    return e(t);
  };
}
var $h = oO, va = {}, aO = {
  get exports() {
    return va;
  },
  set exports(e) {
    va = e;
  }
};
(function(e, t) {
  var n = Yh, r = t && !t.nodeType && t, o = r && !0 && e && !e.nodeType && e, a = o && o.exports === r, i = a && n.process, l = function() {
    try {
      var s = o && o.require && o.require("util").types;
      return s || i && i.binding && i.binding("util");
    } catch {
    }
  }();
  e.exports = l;
})(aO, va);
var iO = rO, lO = $h, bf = va, wf = bf && bf.isDate, sO = wf ? lO(wf) : iO, uO = sO, cO = Vn, fO = kn, dO = Pn, vO = "[object String]";
function hO(e) {
  return typeof e == "string" || !fO(e) && dO(e) && cO(e) == vO;
}
var Rn = hO;
function pO(e, t) {
  for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
    if (t(e[n], n, e))
      return !0;
  return !1;
}
var ep = pO, gO = ol;
function mO() {
  this.__data__ = new gO(), this.size = 0;
}
var yO = mO;
function bO(e) {
  var t = this.__data__, n = t.delete(e);
  return this.size = t.size, n;
}
var wO = bO;
function xO(e) {
  return this.__data__.get(e);
}
var AO = xO;
function OO(e) {
  return this.__data__.has(e);
}
var CO = OO, EO = ol, SO = Nu, TO = Mu, DO = 200;
function kO(e, t) {
  var n = this.__data__;
  if (n instanceof EO) {
    var r = n.__data__;
    if (!SO || r.length < DO - 1)
      return r.push([e, t]), this.size = ++n.size, this;
    n = this.__data__ = new TO(r);
  }
  return n.set(e, t), this.size = n.size, this;
}
var PO = kO, IO = ol, NO = yO, MO = wO, LO = AO, RO = CO, BO = PO;
function ko(e) {
  var t = this.__data__ = new IO(e);
  this.size = t.size;
}
ko.prototype.clear = NO;
ko.prototype.delete = MO;
ko.prototype.get = LO;
ko.prototype.has = RO;
ko.prototype.set = BO;
var ju = ko, FO = "__lodash_hash_undefined__";
function jO(e) {
  return this.__data__.set(e, FO), this;
}
var qO = jO;
function VO(e) {
  return this.__data__.has(e);
}
var zO = VO, UO = Mu, HO = qO, YO = zO;
function Ci(e) {
  var t = -1, n = e == null ? 0 : e.length;
  for (this.__data__ = new UO(); ++t < n; )
    this.add(e[t]);
}
Ci.prototype.add = Ci.prototype.push = HO;
Ci.prototype.has = YO;
var QO = Ci;
function WO(e, t) {
  return e.has(t);
}
var GO = WO, KO = QO, XO = ep, ZO = GO, JO = 1, _O = 2;
function $O(e, t, n, r, o, a) {
  var i = n & JO, l = e.length, s = t.length;
  if (l != s && !(i && s > l))
    return !1;
  var u = a.get(e), c = a.get(t);
  if (u && c)
    return u == t && c == e;
  var d = -1, f = !0, v = n & _O ? new KO() : void 0;
  for (a.set(e, t), a.set(t, e); ++d < l; ) {
    var h = e[d], m = t[d];
    if (r)
      var p = i ? r(m, h, d, t, e, a) : r(h, m, d, e, t, a);
    if (p !== void 0) {
      if (p)
        continue;
      f = !1;
      break;
    }
    if (v) {
      if (!XO(t, function(g, y) {
        if (!ZO(v, y) && (h === g || o(h, g, n, r, a)))
          return v.push(y);
      })) {
        f = !1;
        break;
      }
    } else if (!(h === m || o(h, m, n, r, a))) {
      f = !1;
      break;
    }
  }
  return a.delete(e), a.delete(t), f;
}
var tp = $O, e6 = qn, t6 = e6.Uint8Array, np = t6;
function n6(e) {
  var t = -1, n = Array(e.size);
  return e.forEach(function(r, o) {
    n[++t] = [o, r];
  }), n;
}
var r6 = n6;
function o6(e) {
  var t = -1, n = Array(e.size);
  return e.forEach(function(r) {
    n[++t] = r;
  }), n;
}
var a6 = o6, xf = tl, Af = np, i6 = So, l6 = tp, s6 = r6, u6 = a6, c6 = 1, f6 = 2, d6 = "[object Boolean]", v6 = "[object Date]", h6 = "[object Error]", p6 = "[object Map]", g6 = "[object Number]", m6 = "[object RegExp]", y6 = "[object Set]", b6 = "[object String]", w6 = "[object Symbol]", x6 = "[object ArrayBuffer]", A6 = "[object DataView]", Of = xf ? xf.prototype : void 0, os = Of ? Of.valueOf : void 0;
function O6(e, t, n, r, o, a, i) {
  switch (n) {
    case A6:
      if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
        return !1;
      e = e.buffer, t = t.buffer;
    case x6:
      return !(e.byteLength != t.byteLength || !a(new Af(e), new Af(t)));
    case d6:
    case v6:
    case g6:
      return i6(+e, +t);
    case h6:
      return e.name == t.name && e.message == t.message;
    case m6:
    case b6:
      return e == t + "";
    case p6:
      var l = s6;
    case y6:
      var s = r & c6;
      if (l || (l = u6), e.size != t.size && !s)
        return !1;
      var u = i.get(e);
      if (u)
        return u == t;
      r |= f6, i.set(e, t);
      var c = l6(l(e), l(t), r, o, a, i);
      return i.delete(e), c;
    case w6:
      if (os)
        return os.call(e) == os.call(t);
  }
  return !1;
}
var C6 = O6;
function E6(e, t) {
  for (var n = -1, r = t.length, o = e.length; ++n < r; )
    e[o + n] = t[n];
  return e;
}
var S6 = E6, T6 = S6, D6 = kn;
function k6(e, t, n) {
  var r = t(e);
  return D6(e) ? r : T6(r, n(e));
}
var P6 = k6;
function I6(e, t) {
  for (var n = -1, r = e == null ? 0 : e.length, o = 0, a = []; ++n < r; ) {
    var i = e[n];
    t(i, n, e) && (a[o++] = i);
  }
  return a;
}
var N6 = I6;
function M6() {
  return [];
}
var L6 = M6, R6 = N6, B6 = L6, F6 = Object.prototype, j6 = F6.propertyIsEnumerable, Cf = Object.getOwnPropertySymbols, q6 = Cf ? function(e) {
  return e == null ? [] : (e = Object(e), R6(Cf(e), function(t) {
    return j6.call(e, t);
  }));
} : B6, V6 = q6;
function z6(e, t) {
  for (var n = -1, r = Array(e); ++n < e; )
    r[n] = t(n);
  return r;
}
var U6 = z6, yo = {}, H6 = {
  get exports() {
    return yo;
  },
  set exports(e) {
    yo = e;
  }
};
function Y6() {
  return !1;
}
var Q6 = Y6;
(function(e, t) {
  var n = qn, r = Q6, o = t && !t.nodeType && t, a = o && !0 && e && !e.nodeType && e, i = a && a.exports === o, l = i ? n.Buffer : void 0, s = l ? l.isBuffer : void 0, u = s || r;
  e.exports = u;
})(H6, yo);
var W6 = Vn, G6 = Fu, K6 = Pn, X6 = "[object Arguments]", Z6 = "[object Array]", J6 = "[object Boolean]", _6 = "[object Date]", $6 = "[object Error]", eC = "[object Function]", tC = "[object Map]", nC = "[object Number]", rC = "[object Object]", oC = "[object RegExp]", aC = "[object Set]", iC = "[object String]", lC = "[object WeakMap]", sC = "[object ArrayBuffer]", uC = "[object DataView]", cC = "[object Float32Array]", fC = "[object Float64Array]", dC = "[object Int8Array]", vC = "[object Int16Array]", hC = "[object Int32Array]", pC = "[object Uint8Array]", gC = "[object Uint8ClampedArray]", mC = "[object Uint16Array]", yC = "[object Uint32Array]", ht = {};
ht[cC] = ht[fC] = ht[dC] = ht[vC] = ht[hC] = ht[pC] = ht[gC] = ht[mC] = ht[yC] = !0;
ht[X6] = ht[Z6] = ht[sC] = ht[J6] = ht[uC] = ht[_6] = ht[$6] = ht[eC] = ht[tC] = ht[nC] = ht[rC] = ht[oC] = ht[aC] = ht[iC] = ht[lC] = !1;
function bC(e) {
  return K6(e) && G6(e.length) && !!ht[W6(e)];
}
var wC = bC, xC = wC, AC = $h, Ef = va, Sf = Ef && Ef.isTypedArray, OC = Sf ? AC(Sf) : xC, qu = OC, CC = U6, EC = Ru, SC = kn, TC = yo, DC = Bu, kC = qu, PC = Object.prototype, IC = PC.hasOwnProperty;
function NC(e, t) {
  var n = SC(e), r = !n && EC(e), o = !n && !r && TC(e), a = !n && !r && !o && kC(e), i = n || r || o || a, l = i ? CC(e.length, String) : [], s = l.length;
  for (var u in e)
    (t || IC.call(e, u)) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
    (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
    o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
    a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
    DC(u, s))) && l.push(u);
  return l;
}
var rp = NC, MC = Object.prototype;
function LC(e) {
  var t = e && e.constructor, n = typeof t == "function" && t.prototype || MC;
  return e === n;
}
var Vu = LC;
function RC(e, t) {
  return function(n) {
    return e(t(n));
  };
}
var op = RC, BC = op, FC = BC(Object.keys, Object), jC = FC, qC = Vu, VC = jC, zC = Object.prototype, UC = zC.hasOwnProperty;
function HC(e) {
  if (!qC(e))
    return VC(e);
  var t = [];
  for (var n in Object(e))
    UC.call(e, n) && n != "constructor" && t.push(n);
  return t;
}
var YC = HC, QC = Qr, WC = Fu;
function GC(e) {
  return e != null && WC(e.length) && !QC(e);
}
var La = GC, KC = rp, XC = YC, ZC = La;
function JC(e) {
  return ZC(e) ? KC(e) : XC(e);
}
var zu = JC, _C = P6, $C = V6, eE = zu;
function tE(e) {
  return _C(e, eE, $C);
}
var nE = tE, Tf = nE, rE = 1, oE = Object.prototype, aE = oE.hasOwnProperty;
function iE(e, t, n, r, o, a) {
  var i = n & rE, l = Tf(e), s = l.length, u = Tf(t), c = u.length;
  if (s != c && !i)
    return !1;
  for (var d = s; d--; ) {
    var f = l[d];
    if (!(i ? f in t : aE.call(t, f)))
      return !1;
  }
  var v = a.get(e), h = a.get(t);
  if (v && h)
    return v == t && h == e;
  var m = !0;
  a.set(e, t), a.set(t, e);
  for (var p = i; ++d < s; ) {
    f = l[d];
    var g = e[f], y = t[f];
    if (r)
      var x = i ? r(y, g, f, t, e, a) : r(g, y, f, e, t, a);
    if (!(x === void 0 ? g === y || o(g, y, n, r, a) : x)) {
      m = !1;
      break;
    }
    p || (p = f == "constructor");
  }
  if (m && !p) {
    var b = e.constructor, w = t.constructor;
    b != w && "constructor" in e && "constructor" in t && !(typeof b == "function" && b instanceof b && typeof w == "function" && w instanceof w) && (m = !1);
  }
  return a.delete(e), a.delete(t), m;
}
var lE = iE, sE = Wr, uE = qn, cE = sE(uE, "DataView"), fE = cE, dE = Wr, vE = qn, hE = dE(vE, "Promise"), pE = hE, gE = Wr, mE = qn, yE = gE(mE, "Set"), bE = yE, wE = Wr, xE = qn, AE = wE(xE, "WeakMap"), OE = AE, Fs = fE, js = Nu, qs = pE, Vs = bE, zs = OE, ap = Vn, Po = Wh, Df = "[object Map]", CE = "[object Object]", kf = "[object Promise]", Pf = "[object Set]", If = "[object WeakMap]", Nf = "[object DataView]", EE = Po(Fs), SE = Po(js), TE = Po(qs), DE = Po(Vs), kE = Po(zs), Pr = ap;
(Fs && Pr(new Fs(new ArrayBuffer(1))) != Nf || js && Pr(new js()) != Df || qs && Pr(qs.resolve()) != kf || Vs && Pr(new Vs()) != Pf || zs && Pr(new zs()) != If) && (Pr = function(e) {
  var t = ap(e), n = t == CE ? e.constructor : void 0, r = n ? Po(n) : "";
  if (r)
    switch (r) {
      case EE:
        return Nf;
      case SE:
        return Df;
      case TE:
        return kf;
      case DE:
        return Pf;
      case kE:
        return If;
    }
  return t;
});
var PE = Pr, as = ju, IE = tp, NE = C6, ME = lE, Mf = PE, Lf = kn, Rf = yo, LE = qu, RE = 1, Bf = "[object Arguments]", Ff = "[object Array]", ri = "[object Object]", BE = Object.prototype, jf = BE.hasOwnProperty;
function FE(e, t, n, r, o, a) {
  var i = Lf(e), l = Lf(t), s = i ? Ff : Mf(e), u = l ? Ff : Mf(t);
  s = s == Bf ? ri : s, u = u == Bf ? ri : u;
  var c = s == ri, d = u == ri, f = s == u;
  if (f && Rf(e)) {
    if (!Rf(t))
      return !1;
    i = !0, c = !1;
  }
  if (f && !c)
    return a || (a = new as()), i || LE(e) ? IE(e, t, n, r, o, a) : NE(e, t, s, n, r, o, a);
  if (!(n & RE)) {
    var v = c && jf.call(e, "__wrapped__"), h = d && jf.call(t, "__wrapped__");
    if (v || h) {
      var m = v ? e.value() : e, p = h ? t.value() : t;
      return a || (a = new as()), o(m, p, n, r, a);
    }
  }
  return f ? (a || (a = new as()), ME(e, t, n, r, o, a)) : !1;
}
var jE = FE, qE = jE, qf = Pn;
function ip(e, t, n, r, o) {
  return e === t ? !0 : e == null || t == null || !qf(e) && !qf(t) ? e !== e && t !== t : qE(e, t, n, r, ip, o);
}
var lp = ip, VE = ju, zE = lp, UE = 1, HE = 2;
function YE(e, t, n, r) {
  var o = n.length, a = o, i = !r;
  if (e == null)
    return !a;
  for (e = Object(e); o--; ) {
    var l = n[o];
    if (i && l[2] ? l[1] !== e[l[0]] : !(l[0] in e))
      return !1;
  }
  for (; ++o < a; ) {
    l = n[o];
    var s = l[0], u = e[s], c = l[1];
    if (i && l[2]) {
      if (u === void 0 && !(s in e))
        return !1;
    } else {
      var d = new VE();
      if (r)
        var f = r(u, c, s, e, t, d);
      if (!(f === void 0 ? zE(c, u, UE | HE, r, d) : f))
        return !1;
    }
  }
  return !0;
}
var QE = YE, WE = or;
function GE(e) {
  return e === e && !WE(e);
}
var sp = GE, KE = sp, XE = zu;
function ZE(e) {
  for (var t = XE(e), n = t.length; n--; ) {
    var r = t[n], o = e[r];
    t[n] = [r, o, KE(o)];
  }
  return t;
}
var JE = ZE;
function _E(e, t) {
  return function(n) {
    return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n));
  };
}
var up = _E, $E = QE, e8 = JE, t8 = up;
function n8(e) {
  var t = e8(e);
  return t.length == 1 && t[0][2] ? t8(t[0][0], t[0][1]) : function(n) {
    return n === e || $E(n, e, t);
  };
}
var r8 = n8, o8 = Xh, a8 = il;
function i8(e, t) {
  t = o8(t, e);
  for (var n = 0, r = t.length; e != null && n < r; )
    e = e[a8(t[n++])];
  return n && n == r ? e : void 0;
}
var cp = i8, l8 = cp;
function s8(e, t, n) {
  var r = e == null ? void 0 : l8(e, t);
  return r === void 0 ? n : r;
}
var Rr = s8;
function u8(e, t) {
  return e != null && t in Object(e);
}
var c8 = u8, f8 = c8, d8 = Jh;
function v8(e, t) {
  return e != null && d8(e, t, f8);
}
var h8 = v8, p8 = lp, g8 = Rr, m8 = h8, y8 = Iu, b8 = sp, w8 = up, x8 = il, A8 = 1, O8 = 2;
function C8(e, t) {
  return y8(e) && b8(t) ? w8(x8(e), t) : function(n) {
    var r = g8(n, e);
    return r === void 0 && r === t ? m8(n, e) : p8(t, r, A8 | O8);
  };
}
var E8 = C8;
function S8(e) {
  return e;
}
var Uu = S8;
function T8(e) {
  return function(t) {
    return t == null ? void 0 : t[e];
  };
}
var D8 = T8, k8 = cp;
function P8(e) {
  return function(t) {
    return k8(t, e);
  };
}
var I8 = P8, N8 = D8, M8 = I8, L8 = Iu, R8 = il;
function B8(e) {
  return L8(e) ? N8(R8(e)) : M8(e);
}
var F8 = B8, j8 = r8, q8 = E8, V8 = Uu, z8 = kn, U8 = F8;
function H8(e) {
  return typeof e == "function" ? e : e == null ? V8 : typeof e == "object" ? z8(e) ? q8(e[0], e[1]) : j8(e) : U8(e);
}
var fp = H8;
function Y8(e) {
  return function(t, n, r) {
    for (var o = -1, a = Object(t), i = r(t), l = i.length; l--; ) {
      var s = i[e ? l : ++o];
      if (n(a[s], s, a) === !1)
        break;
    }
    return t;
  };
}
var Q8 = Y8, W8 = Q8, G8 = W8(), dp = G8, K8 = dp, X8 = zu;
function Z8(e, t) {
  return e && K8(e, t, X8);
}
var vp = Z8, J8 = La;
function _8(e, t) {
  return function(n, r) {
    if (n == null)
      return n;
    if (!J8(n))
      return e(n, r);
    for (var o = n.length, a = t ? o : -1, i = Object(n); (t ? a-- : ++a < o) && r(i[a], a, i) !== !1; )
      ;
    return n;
  };
}
var $8 = _8, e9 = vp, t9 = $8, n9 = t9(e9), r9 = n9, o9 = r9;
function a9(e, t) {
  var n;
  return o9(e, function(r, o, a) {
    return n = t(r, o, a), !n;
  }), !!n;
}
var i9 = a9, l9 = So, s9 = La, u9 = Bu, c9 = or;
function f9(e, t, n) {
  if (!c9(n))
    return !1;
  var r = typeof t;
  return (r == "number" ? s9(n) && u9(t, n.length) : r == "string" && t in n) ? l9(n[t], e) : !1;
}
var Hu = f9, d9 = ep, v9 = fp, h9 = i9, p9 = kn, g9 = Hu;
function m9(e, t, n) {
  var r = p9(e) ? d9 : h9;
  return n && g9(e, t, n) && (t = void 0), r(e, v9(t));
}
var y9 = m9, b9 = Vn, w9 = Pn, x9 = "[object Boolean]";
function A9(e) {
  return e === !0 || e === !1 || w9(e) && b9(e) == x9;
}
var O9 = A9, C9 = Vn, E9 = Pn, S9 = "[object Number]";
function T9(e) {
  return typeof e == "number" || E9(e) && C9(e) == S9;
}
var Tn = T9, D9 = Wr, k9 = function() {
  try {
    var e = D9(Object, "defineProperty");
    return e({}, "", {}), e;
  } catch {
  }
}(), hp = k9, Vf = hp;
function P9(e, t, n) {
  t == "__proto__" && Vf ? Vf(e, t, {
    configurable: !0,
    enumerable: !0,
    value: n,
    writable: !0
  }) : e[t] = n;
}
var ll = P9, I9 = ll, N9 = So, M9 = Object.prototype, L9 = M9.hasOwnProperty;
function R9(e, t, n) {
  var r = e[t];
  (!(L9.call(e, t) && N9(r, n)) || n === void 0 && !(t in e)) && I9(e, t, n);
}
var B9 = R9, F9 = ll, j9 = vp, q9 = fp;
function V9(e, t) {
  var n = {};
  return t = q9(t), j9(e, function(r, o, a) {
    F9(n, o, t(r, o, a));
  }), n;
}
var z9 = V9;
function U9(e, t, n) {
  switch (n.length) {
    case 0:
      return e.call(t);
    case 1:
      return e.call(t, n[0]);
    case 2:
      return e.call(t, n[0], n[1]);
    case 3:
      return e.call(t, n[0], n[1], n[2]);
  }
  return e.apply(t, n);
}
var pp = U9, H9 = pp, zf = Math.max;
function Y9(e, t, n) {
  return t = zf(t === void 0 ? e.length - 1 : t, 0), function() {
    for (var r = arguments, o = -1, a = zf(r.length - t, 0), i = Array(a); ++o < a; )
      i[o] = r[t + o];
    o = -1;
    for (var l = Array(t + 1); ++o < t; )
      l[o] = r[o];
    return l[t] = n(i), H9(e, this, l);
  };
}
var Q9 = Y9;
function W9(e) {
  return function() {
    return e;
  };
}
var G9 = W9, K9 = G9, Uf = hp, X9 = Uu, Z9 = Uf ? function(e, t) {
  return Uf(e, "toString", {
    configurable: !0,
    enumerable: !1,
    value: K9(t),
    writable: !0
  });
} : X9, J9 = Z9, _9 = 800, $9 = 16, eS = Date.now;
function tS(e) {
  var t = 0, n = 0;
  return function() {
    var r = eS(), o = $9 - (r - n);
    if (n = r, o > 0) {
      if (++t >= _9)
        return arguments[0];
    } else
      t = 0;
    return e.apply(void 0, arguments);
  };
}
var nS = tS, rS = J9, oS = nS, aS = oS(rS), iS = aS, lS = Uu, sS = Q9, uS = iS;
function cS(e, t) {
  return uS(sS(e, t, lS), e + "");
}
var Yu = cS;
function fS(e) {
  var t = [];
  if (e != null)
    for (var n in Object(e))
      t.push(n);
  return t;
}
var dS = fS, vS = or, hS = Vu, pS = dS, gS = Object.prototype, mS = gS.hasOwnProperty;
function yS(e) {
  if (!vS(e))
    return pS(e);
  var t = hS(e), n = [];
  for (var r in e)
    r == "constructor" && (t || !mS.call(e, r)) || n.push(r);
  return n;
}
var bS = yS, wS = rp, xS = bS, AS = La;
function OS(e) {
  return AS(e) ? wS(e, !0) : xS(e);
}
var Qu = OS, CS = Yu, ES = So, SS = Hu, TS = Qu, gp = Object.prototype, DS = gp.hasOwnProperty, kS = CS(function(e, t) {
  e = Object(e);
  var n = -1, r = t.length, o = r > 2 ? t[2] : void 0;
  for (o && SS(t[0], t[1], o) && (r = 1); ++n < r; )
    for (var a = t[n], i = TS(a), l = -1, s = i.length; ++l < s; ) {
      var u = i[l], c = e[u];
      (c === void 0 || ES(c, gp[u]) && !DS.call(e, u)) && (e[u] = a[u]);
    }
  return e;
}), Hf = kS, PS = ll, IS = So;
function NS(e, t, n) {
  (n !== void 0 && !IS(e[t], n) || n === void 0 && !(t in e)) && PS(e, t, n);
}
var mp = NS, Ei = {}, MS = {
  get exports() {
    return Ei;
  },
  set exports(e) {
    Ei = e;
  }
};
(function(e, t) {
  var n = qn, r = t && !t.nodeType && t, o = r && !0 && e && !e.nodeType && e, a = o && o.exports === r, i = a ? n.Buffer : void 0, l = i ? i.allocUnsafe : void 0;
  function s(u, c) {
    if (c)
      return u.slice();
    var d = u.length, f = l ? l(d) : new u.constructor(d);
    return u.copy(f), f;
  }
  e.exports = s;
})(MS, Ei);
var Yf = np;
function LS(e) {
  var t = new e.constructor(e.byteLength);
  return new Yf(t).set(new Yf(e)), t;
}
var RS = LS, BS = RS;
function FS(e, t) {
  var n = t ? BS(e.buffer) : e.buffer;
  return new e.constructor(n, e.byteOffset, e.length);
}
var jS = FS;
function qS(e, t) {
  var n = -1, r = e.length;
  for (t || (t = Array(r)); ++n < r; )
    t[n] = e[n];
  return t;
}
var VS = qS, zS = or, Qf = Object.create, US = /* @__PURE__ */ function() {
  function e() {
  }
  return function(t) {
    if (!zS(t))
      return {};
    if (Qf)
      return Qf(t);
    e.prototype = t;
    var n = new e();
    return e.prototype = void 0, n;
  };
}(), HS = US, YS = op, QS = YS(Object.getPrototypeOf, Object), yp = QS, WS = HS, GS = yp, KS = Vu;
function XS(e) {
  return typeof e.constructor == "function" && !KS(e) ? WS(GS(e)) : {};
}
var ZS = XS, JS = La, _S = Pn;
function $S(e) {
  return _S(e) && JS(e);
}
var e7 = $S, t7 = Vn, n7 = yp, r7 = Pn, o7 = "[object Object]", a7 = Function.prototype, i7 = Object.prototype, bp = a7.toString, l7 = i7.hasOwnProperty, s7 = bp.call(Object);
function u7(e) {
  if (!r7(e) || t7(e) != o7)
    return !1;
  var t = n7(e);
  if (t === null)
    return !0;
  var n = l7.call(t, "constructor") && t.constructor;
  return typeof n == "function" && n instanceof n && bp.call(n) == s7;
}
var c7 = u7;
function f7(e, t) {
  if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
    return e[t];
}
var wp = f7, d7 = B9, v7 = ll;
function h7(e, t, n, r) {
  var o = !n;
  n || (n = {});
  for (var a = -1, i = t.length; ++a < i; ) {
    var l = t[a], s = r ? r(n[l], e[l], l, n, e) : void 0;
    s === void 0 && (s = e[l]), o ? v7(n, l, s) : d7(n, l, s);
  }
  return n;
}
var p7 = h7, g7 = p7, m7 = Qu;
function y7(e) {
  return g7(e, m7(e));
}
var b7 = y7, Wf = mp, w7 = Ei, x7 = jS, A7 = VS, O7 = ZS, Gf = Ru, Kf = kn, C7 = e7, E7 = yo, S7 = Qr, T7 = or, D7 = c7, k7 = qu, Xf = wp, P7 = b7;
function I7(e, t, n, r, o, a, i) {
  var l = Xf(e, n), s = Xf(t, n), u = i.get(s);
  if (u) {
    Wf(e, n, u);
    return;
  }
  var c = a ? a(l, s, n + "", e, t, i) : void 0, d = c === void 0;
  if (d) {
    var f = Kf(s), v = !f && E7(s), h = !f && !v && k7(s);
    c = s, f || v || h ? Kf(l) ? c = l : C7(l) ? c = A7(l) : v ? (d = !1, c = w7(s, !0)) : h ? (d = !1, c = x7(s, !0)) : c = [] : D7(s) || Gf(s) ? (c = l, Gf(l) ? c = P7(l) : (!T7(l) || S7(l)) && (c = O7(s))) : d = !1;
  }
  d && (i.set(s, c), o(c, s, r, a, i), i.delete(s)), Wf(e, n, c);
}
var N7 = I7, M7 = ju, L7 = mp, R7 = dp, B7 = N7, F7 = or, j7 = Qu, q7 = wp;
function xp(e, t, n, r, o) {
  e !== t && R7(t, function(a, i) {
    if (o || (o = new M7()), F7(a))
      B7(e, t, i, n, xp, r, o);
    else {
      var l = r ? r(q7(e, i), a, i + "", e, t, o) : void 0;
      l === void 0 && (l = a), L7(e, i, l);
    }
  }, j7);
}
var Ap = xp, V7 = Ap, Zf = or;
function Op(e, t, n, r, o, a) {
  return Zf(e) && Zf(t) && (a.set(t, e), V7(e, t, void 0, Op, a), a.delete(t)), e;
}
var z7 = Op, U7 = Yu, H7 = Hu;
function Y7(e) {
  return U7(function(t, n) {
    var r = -1, o = n.length, a = o > 1 ? n[o - 1] : void 0, i = o > 2 ? n[2] : void 0;
    for (a = e.length > 3 && typeof a == "function" ? (o--, a) : void 0, i && H7(n[0], n[1], i) && (a = o < 3 ? void 0 : a, o = 1), t = Object(t); ++r < o; ) {
      var l = n[r];
      l && e(t, l, r, a);
    }
    return t;
  });
}
var Q7 = Y7, W7 = Ap, G7 = Q7, K7 = G7(function(e, t, n, r) {
  W7(e, t, n, r);
}), X7 = K7, Z7 = pp, J7 = Yu, _7 = z7, $7 = X7, eT = J7(function(e) {
  return e.push(void 0, _7), Z7($7, void 0, e);
}), ha = eT;
function tT(e) {
  return e && e.length ? e[0] : void 0;
}
var Cp = tT;
function nT(e) {
  var t = e == null ? 0 : e.length;
  return t ? e[t - 1] : void 0;
}
var ro = nT;
const rT = (e) => Object.prototype.toString.call(e).slice(8, -1), ao = (e) => uO(e) && !isNaN(e.getTime()), tr = (e) => rT(e) === "Object", Ep = _h, Jf = (e, t) => y9(t, (n) => _h(e, n)), it = (e, t, n = "0") => {
  for (e = e != null ? String(e) : "", t = t || 2; e.length < t; )
    e = `${n}${e}`;
  return e;
}, pn = (e) => Array.isArray(e), $n = (e) => pn(e) && e.length > 0, Si = (e) => e == null ? null : document && Rn(e) ? document.querySelector(e) : e.$el ?? e, hr = (e, t, n, r = void 0) => {
  e.removeEventListener(t, n, r);
}, pr = (e, t, n, r = void 0) => (e.addEventListener(t, n, r), () => hr(e, t, n, r)), di = (e, t) => !!e && !!t && (e === t || e.contains(t)), oi = (e, t) => {
  (e.key === " " || e.key === "Enter") && (t(e), e.preventDefault());
}, Sp = (e, ...t) => {
  const n = {};
  let r;
  for (r in e)
    t.includes(r) || (n[r] = e[r]);
  return n;
}, Tp = (e, t) => {
  const n = {};
  return t.forEach((r) => {
    r in e && (n[r] = e[r]);
  }), n;
};
function oT(e, t, n) {
  return Math.min(Math.max(e, t), n);
}
var Ti = {}, aT = {
  get exports() {
    return Ti;
  },
  set exports(e) {
    Ti = e;
  }
};
(function(e, t) {
  Object.defineProperty(t, "__esModule", {
    value: !0
  }), t.default = n;
  function n(r) {
    if (r === null || r === !0 || r === !1)
      return NaN;
    var o = Number(r);
    return isNaN(o) ? o : o < 0 ? Math.ceil(o) : Math.floor(o);
  }
  e.exports = t.default;
})(aT, Ti);
const iT = /* @__PURE__ */ Hh(Ti);
var Di = {}, lT = {
  get exports() {
    return Di;
  },
  set exports(e) {
    Di = e;
  }
};
(function(e, t) {
  Object.defineProperty(t, "__esModule", {
    value: !0
  }), t.default = n;
  function n(r) {
    var o = new Date(Date.UTC(r.getFullYear(), r.getMonth(), r.getDate(), r.getHours(), r.getMinutes(), r.getSeconds(), r.getMilliseconds()));
    return o.setUTCFullYear(r.getFullYear()), r.getTime() - o.getTime();
  }
  e.exports = t.default;
})(lT, Di);
const _f = /* @__PURE__ */ Hh(Di);
function sT(e, t) {
  var n = dT(t);
  return n.formatToParts ? cT(n, e) : fT(n, e);
}
var uT = {
  year: 0,
  month: 1,
  day: 2,
  hour: 3,
  minute: 4,
  second: 5
};
function cT(e, t) {
  try {
    for (var n = e.formatToParts(t), r = [], o = 0; o < n.length; o++) {
      var a = uT[n[o].type];
      a >= 0 && (r[a] = parseInt(n[o].value, 10));
    }
    return r;
  } catch (i) {
    if (i instanceof RangeError)
      return [NaN];
    throw i;
  }
}
function fT(e, t) {
  var n = e.format(t).replace(/\u200E/g, ""), r = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
  return [r[3], r[1], r[2], r[4], r[5], r[6]];
}
var is = {};
function dT(e) {
  if (!is[e]) {
    var t = new Intl.DateTimeFormat("en-US", {
      hour12: !1,
      timeZone: "America/New_York",
      year: "numeric",
      month: "numeric",
      day: "2-digit",
      hour: "2-digit",
      minute: "2-digit",
      second: "2-digit"
    }).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), n = t === "06/25/2014, 00:00:00" || t === "‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";
    is[e] = n ? new Intl.DateTimeFormat("en-US", {
      hour12: !1,
      timeZone: e,
      year: "numeric",
      month: "numeric",
      day: "2-digit",
      hour: "2-digit",
      minute: "2-digit",
      second: "2-digit"
    }) : new Intl.DateTimeFormat("en-US", {
      hourCycle: "h23",
      timeZone: e,
      year: "numeric",
      month: "numeric",
      day: "2-digit",
      hour: "2-digit",
      minute: "2-digit",
      second: "2-digit"
    });
  }
  return is[e];
}
function Dp(e, t, n, r, o, a, i) {
  var l = /* @__PURE__ */ new Date(0);
  return l.setUTCFullYear(e, t, n), l.setUTCHours(r, o, a, i), l;
}
var $f = 36e5, vT = 6e4, ls = {
  timezoneZ: /^(Z)$/,
  timezoneHH: /^([+-]\d{2})$/,
  timezoneHHMM: /^([+-]\d{2}):?(\d{2})$/
};
function hT(e, t, n) {
  var r, o;
  if (!e || (r = ls.timezoneZ.exec(e), r))
    return 0;
  var a;
  if (r = ls.timezoneHH.exec(e), r)
    return a = parseInt(r[1], 10), ed(a) ? -(a * $f) : NaN;
  if (r = ls.timezoneHHMM.exec(e), r) {
    a = parseInt(r[1], 10);
    var i = parseInt(r[2], 10);
    return ed(a, i) ? (o = Math.abs(a) * $f + i * vT, a > 0 ? -o : o) : NaN;
  }
  if (mT(e)) {
    t = new Date(t || Date.now());
    var l = pT(t), s = Us(l, e), u = gT(t, s, e);
    return -u;
  }
  return NaN;
}
function pT(e) {
  return Dp(
    e.getFullYear(),
    e.getMonth(),
    e.getDate(),
    e.getHours(),
    e.getMinutes(),
    e.getSeconds(),
    e.getMilliseconds()
  );
}
function Us(e, t) {
  var n = sT(e, t), r = Dp(
    n[0],
    n[1] - 1,
    n[2],
    n[3] % 24,
    n[4],
    n[5],
    0
  ).getTime(), o = e.getTime(), a = o % 1e3;
  return o -= a >= 0 ? a : 1e3 + a, r - o;
}
function gT(e, t, n) {
  var r = e.getTime(), o = r - t, a = Us(new Date(o), n);
  if (t === a)
    return t;
  o -= a - t;
  var i = Us(new Date(o), n);
  return a === i ? a : Math.max(a, i);
}
function ed(e, t) {
  return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
}
var td = {};
function mT(e) {
  if (td[e])
    return !0;
  try {
    return new Intl.DateTimeFormat(void 0, { timeZone: e }), td[e] = !0, !0;
  } catch {
    return !1;
  }
}
var yT = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;
const bT = yT;
var ss = 36e5, nd = 6e4, wT = 2, Qt = {
  dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
  datePattern: /^([0-9W+-]+)(.*)/,
  // year tokens
  YY: /^(\d{2})$/,
  YYY: [
    /^([+-]\d{2})$/,
    // 0 additional digits
    /^([+-]\d{3})$/,
    // 1 additional digit
    /^([+-]\d{4})$/
    // 2 additional digits
  ],
  YYYY: /^(\d{4})/,
  YYYYY: [
    /^([+-]\d{4})/,
    // 0 additional digits
    /^([+-]\d{5})/,
    // 1 additional digit
    /^([+-]\d{6})/
    // 2 additional digits
  ],
  // date tokens
  MM: /^-(\d{2})$/,
  DDD: /^-?(\d{3})$/,
  MMDD: /^-?(\d{2})-?(\d{2})$/,
  Www: /^-?W(\d{2})$/,
  WwwD: /^-?W(\d{2})-?(\d{1})$/,
  HH: /^(\d{2}([.,]\d*)?)$/,
  HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
  HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
  // time zone tokens (to identify the presence of a tz)
  timeZone: bT
};
function xT(e, t) {
  if (arguments.length < 1)
    throw new TypeError("1 argument required, but only " + arguments.length + " present");
  if (e === null)
    return /* @__PURE__ */ new Date(NaN);
  var n = t || {}, r = n.additionalDigits == null ? wT : iT(n.additionalDigits);
  if (r !== 2 && r !== 1 && r !== 0)
    throw new RangeError("additionalDigits must be 0, 1 or 2");
  if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
    return new Date(e.getTime());
  if (typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]")
    return new Date(e);
  if (!(typeof e == "string" || Object.prototype.toString.call(e) === "[object String]"))
    return /* @__PURE__ */ new Date(NaN);
  var o = AT(e), a = OT(o.date, r), i = a.year, l = a.restDateString, s = CT(l, i);
  if (isNaN(s))
    return /* @__PURE__ */ new Date(NaN);
  if (s) {
    var u = s.getTime(), c = 0, d;
    if (o.time && (c = ET(o.time), isNaN(c)))
      return /* @__PURE__ */ new Date(NaN);
    if (o.timeZone || n.timeZone) {
      if (d = hT(o.timeZone || n.timeZone, new Date(u + c)), isNaN(d))
        return /* @__PURE__ */ new Date(NaN);
    } else
      d = _f(new Date(u + c)), d = _f(new Date(u + c + d));
    return new Date(u + c + d);
  } else
    return /* @__PURE__ */ new Date(NaN);
}
function AT(e) {
  var t = {}, n = Qt.dateTimePattern.exec(e), r;
  if (n ? (t.date = n[1], r = n[3]) : (n = Qt.datePattern.exec(e), n ? (t.date = n[1], r = n[2]) : (t.date = null, r = e)), r) {
    var o = Qt.timeZone.exec(r);
    o ? (t.time = r.replace(o[1], ""), t.timeZone = o[1].trim()) : t.time = r;
  }
  return t;
}
function OT(e, t) {
  var n = Qt.YYY[t], r = Qt.YYYYY[t], o;
  if (o = Qt.YYYY.exec(e) || r.exec(e), o) {
    var a = o[1];
    return {
      year: parseInt(a, 10),
      restDateString: e.slice(a.length)
    };
  }
  if (o = Qt.YY.exec(e) || n.exec(e), o) {
    var i = o[1];
    return {
      year: parseInt(i, 10) * 100,
      restDateString: e.slice(i.length)
    };
  }
  return {
    year: null
  };
}
function CT(e, t) {
  if (t === null)
    return null;
  var n, r, o, a;
  if (e.length === 0)
    return r = /* @__PURE__ */ new Date(0), r.setUTCFullYear(t), r;
  if (n = Qt.MM.exec(e), n)
    return r = /* @__PURE__ */ new Date(0), o = parseInt(n[1], 10) - 1, od(t, o) ? (r.setUTCFullYear(t, o), r) : /* @__PURE__ */ new Date(NaN);
  if (n = Qt.DDD.exec(e), n) {
    r = /* @__PURE__ */ new Date(0);
    var i = parseInt(n[1], 10);
    return DT(t, i) ? (r.setUTCFullYear(t, 0, i), r) : /* @__PURE__ */ new Date(NaN);
  }
  if (n = Qt.MMDD.exec(e), n) {
    r = /* @__PURE__ */ new Date(0), o = parseInt(n[1], 10) - 1;
    var l = parseInt(n[2], 10);
    return od(t, o, l) ? (r.setUTCFullYear(t, o, l), r) : /* @__PURE__ */ new Date(NaN);
  }
  if (n = Qt.Www.exec(e), n)
    return a = parseInt(n[1], 10) - 1, ad(t, a) ? rd(t, a) : /* @__PURE__ */ new Date(NaN);
  if (n = Qt.WwwD.exec(e), n) {
    a = parseInt(n[1], 10) - 1;
    var s = parseInt(n[2], 10) - 1;
    return ad(t, a, s) ? rd(t, a, s) : /* @__PURE__ */ new Date(NaN);
  }
  return null;
}
function ET(e) {
  var t, n, r;
  if (t = Qt.HH.exec(e), t)
    return n = parseFloat(t[1].replace(",", ".")), us(n) ? n % 24 * ss : NaN;
  if (t = Qt.HHMM.exec(e), t)
    return n = parseInt(t[1], 10), r = parseFloat(t[2].replace(",", ".")), us(n, r) ? n % 24 * ss + r * nd : NaN;
  if (t = Qt.HHMMSS.exec(e), t) {
    n = parseInt(t[1], 10), r = parseInt(t[2], 10);
    var o = parseFloat(t[3].replace(",", "."));
    return us(n, r, o) ? n % 24 * ss + r * nd + o * 1e3 : NaN;
  }
  return null;
}
function rd(e, t, n) {
  t = t || 0, n = n || 0;
  var r = /* @__PURE__ */ new Date(0);
  r.setUTCFullYear(e, 0, 4);
  var o = r.getUTCDay() || 7, a = t * 7 + n + 1 - o;
  return r.setUTCDate(r.getUTCDate() + a), r;
}
var ST = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], TT = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
function kp(e) {
  return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
}
function od(e, t, n) {
  if (t < 0 || t > 11)
    return !1;
  if (n != null) {
    if (n < 1)
      return !1;
    var r = kp(e);
    if (r && n > TT[t] || !r && n > ST[t])
      return !1;
  }
  return !0;
}
function DT(e, t) {
  if (t < 1)
    return !1;
  var n = kp(e);
  return !(n && t > 366 || !n && t > 365);
}
function ad(e, t, n) {
  return !(t < 0 || t > 52 || n != null && (n < 0 || n > 6));
}
function us(e, t, n) {
  return !(e != null && (e < 0 || e >= 25) || t != null && (t < 0 || t >= 60) || n != null && (n < 0 || n >= 60));
}
function zt(e, t) {
  if (t.length < e)
    throw new TypeError(e + " argument" + (e > 1 ? "s" : "") + " required, but only " + t.length + " present");
}
function vi(e) {
  "@babel/helpers - typeof";
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? vi = function(n) {
    return typeof n;
  } : vi = function(n) {
    return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
  }, vi(e);
}
function ar(e) {
  zt(1, arguments);
  var t = Object.prototype.toString.call(e);
  return e instanceof Date || vi(e) === "object" && t === "[object Date]" ? new Date(e.getTime()) : typeof e == "number" || t === "[object Number]" ? new Date(e) : ((typeof e == "string" || t === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
}
function Io(e) {
  if (e === null || e === !0 || e === !1)
    return NaN;
  var t = Number(e);
  return isNaN(t) ? t : t < 0 ? Math.ceil(t) : Math.floor(t);
}
var kT = {};
function Wu() {
  return kT;
}
function Hr(e, t) {
  var n, r, o, a, i, l, s, u;
  zt(1, arguments);
  var c = Wu(), d = Io((n = (r = (o = (a = t == null ? void 0 : t.weekStartsOn) !== null && a !== void 0 ? a : t == null || (i = t.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && o !== void 0 ? o : c.weekStartsOn) !== null && r !== void 0 ? r : (s = c.locale) === null || s === void 0 || (u = s.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && n !== void 0 ? n : 0);
  if (!(d >= 0 && d <= 6))
    throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
  var f = ar(e), v = f.getDay(), h = (v < d ? 7 : 0) + v - d;
  return f.setDate(f.getDate() - h), f.setHours(0, 0, 0, 0), f;
}
function id(e) {
  var t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
  return t.setUTCFullYear(e.getFullYear()), e.getTime() - t.getTime();
}
var PT = 6048e5;
function IT(e, t, n) {
  zt(2, arguments);
  var r = Hr(e, n), o = Hr(t, n), a = r.getTime() - id(r), i = o.getTime() - id(o);
  return Math.round((a - i) / PT);
}
function NT(e) {
  zt(1, arguments);
  var t = ar(e), n = t.getMonth();
  return t.setFullYear(t.getFullYear(), n + 1, 0), t.setHours(0, 0, 0, 0), t;
}
function MT(e) {
  zt(1, arguments);
  var t = ar(e);
  return t.setDate(1), t.setHours(0, 0, 0, 0), t;
}
function LT(e, t) {
  return zt(1, arguments), IT(NT(e), MT(e), t) + 1;
}
function RT(e, t) {
  var n, r, o, a, i, l, s, u;
  zt(1, arguments);
  var c = ar(e), d = c.getFullYear(), f = Wu(), v = Io((n = (r = (o = (a = t == null ? void 0 : t.firstWeekContainsDate) !== null && a !== void 0 ? a : t == null || (i = t.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && o !== void 0 ? o : f.firstWeekContainsDate) !== null && r !== void 0 ? r : (s = f.locale) === null || s === void 0 || (u = s.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && n !== void 0 ? n : 1);
  if (!(v >= 1 && v <= 7))
    throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
  var h = /* @__PURE__ */ new Date(0);
  h.setFullYear(d + 1, 0, v), h.setHours(0, 0, 0, 0);
  var m = Hr(h, t), p = /* @__PURE__ */ new Date(0);
  p.setFullYear(d, 0, v), p.setHours(0, 0, 0, 0);
  var g = Hr(p, t);
  return c.getTime() >= m.getTime() ? d + 1 : c.getTime() >= g.getTime() ? d : d - 1;
}
function BT(e, t) {
  var n, r, o, a, i, l, s, u;
  zt(1, arguments);
  var c = Wu(), d = Io((n = (r = (o = (a = t == null ? void 0 : t.firstWeekContainsDate) !== null && a !== void 0 ? a : t == null || (i = t.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && o !== void 0 ? o : c.firstWeekContainsDate) !== null && r !== void 0 ? r : (s = c.locale) === null || s === void 0 || (u = s.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && n !== void 0 ? n : 1), f = RT(e, t), v = /* @__PURE__ */ new Date(0);
  v.setFullYear(f, 0, d), v.setHours(0, 0, 0, 0);
  var h = Hr(v, t);
  return h;
}
var FT = 6048e5;
function jT(e, t) {
  zt(1, arguments);
  var n = ar(e), r = Hr(n, t).getTime() - BT(n, t).getTime();
  return Math.round(r / FT) + 1;
}
function ki(e) {
  return zt(1, arguments), Hr(e, {
    weekStartsOn: 1
  });
}
function qT(e) {
  zt(1, arguments);
  var t = ar(e), n = t.getFullYear(), r = /* @__PURE__ */ new Date(0);
  r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
  var o = ki(r), a = /* @__PURE__ */ new Date(0);
  a.setFullYear(n, 0, 4), a.setHours(0, 0, 0, 0);
  var i = ki(a);
  return t.getTime() >= o.getTime() ? n + 1 : t.getTime() >= i.getTime() ? n : n - 1;
}
function VT(e) {
  zt(1, arguments);
  var t = qT(e), n = /* @__PURE__ */ new Date(0);
  n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0);
  var r = ki(n);
  return r;
}
var zT = 6048e5;
function UT(e) {
  zt(1, arguments);
  var t = ar(e), n = ki(t).getTime() - VT(t).getTime();
  return Math.round(n / zT) + 1;
}
function Yt(e, t) {
  zt(2, arguments);
  var n = ar(e), r = Io(t);
  return isNaN(r) ? /* @__PURE__ */ new Date(NaN) : (r && n.setDate(n.getDate() + r), n);
}
function Pi(e, t) {
  zt(2, arguments);
  var n = ar(e), r = Io(t);
  if (isNaN(r))
    return /* @__PURE__ */ new Date(NaN);
  if (!r)
    return n;
  var o = n.getDate(), a = new Date(n.getTime());
  a.setMonth(n.getMonth() + r + 1, 0);
  var i = a.getDate();
  return o >= i ? a : (n.setFullYear(a.getFullYear(), a.getMonth(), o), n);
}
function ld(e, t) {
  zt(2, arguments);
  var n = Io(t);
  return Pi(e, n * 12);
}
const HT = {
  daily: ["year", "month", "day"],
  weekly: ["year", "month", "week"],
  monthly: ["year", "month"]
};
function YT({
  monthComps: e,
  prevMonthComps: t,
  nextMonthComps: n
}, r) {
  const o = [], {
    firstDayOfWeek: a,
    firstWeekday: i,
    isoWeeknumbers: l,
    weeknumbers: s,
    numDays: u,
    numWeeks: c
  } = e, d = i + (i < a ? Bt : 0) - a;
  let f = !0, v = !1, h = !1, m = 0;
  const p = new Intl.DateTimeFormat(r.id, {
    weekday: "long",
    year: "numeric",
    month: "short",
    day: "numeric"
  });
  let g = t.numDays - d + 1, y = t.numDays - g + 1, x = Math.floor((g - 1) / Bt + 1), b = 1, w = t.numWeeks, D = 1, E = t.month, T = t.year;
  const L = /* @__PURE__ */ new Date(), S = L.getDate(), A = L.getMonth() + 1, C = L.getFullYear();
  for (let k = 1; k <= BD; k++) {
    for (let I = 1, N = a; I <= Bt; I++, N += N === Bt ? 1 - Bt : 1) {
      f && N === i && (g = 1, y = e.numDays, x = Math.floor((g - 1) / Bt + 1), b = Math.floor((u - g) / Bt + 1), w = 1, D = c, E = e.month, T = e.year, f = !1, v = !0);
      const F = r.getDateFromParams(T, E, g, 0, 0, 0, 0), V = r.getDateFromParams(T, E, g, 12, 0, 0, 0), G = r.getDateFromParams(
        T,
        E,
        g,
        23,
        59,
        59,
        999
      ), z = F, M = `${it(T, 4)}-${it(E, 2)}-${it(g, 2)}`, P = I, R = Bt - I, q = s[k - 1], Y = l[k - 1], Q = g === S && E === A && T === C, B = v && g === 1, H = v && g === u, Z = k === 1, _ = k === c, re = I === 1, he = I === Bt, be = zp(T, E, g);
      o.push({
        locale: r,
        id: M,
        position: ++m,
        label: g.toString(),
        ariaLabel: p.format(new Date(T, E - 1, g)),
        day: g,
        dayFromEnd: y,
        weekday: N,
        weekdayPosition: P,
        weekdayPositionFromEnd: R,
        weekdayOrdinal: x,
        weekdayOrdinalFromEnd: b,
        week: w,
        weekFromEnd: D,
        weekPosition: k,
        weeknumber: q,
        isoWeeknumber: Y,
        month: E,
        year: T,
        date: z,
        startDate: F,
        endDate: G,
        noonDate: V,
        dayIndex: be,
        isToday: Q,
        isFirstDay: B,
        isLastDay: H,
        isDisabled: !v,
        isFocusable: !v,
        isFocused: !1,
        inMonth: v,
        inPrevMonth: f,
        inNextMonth: h,
        onTop: Z,
        onBottom: _,
        onLeft: re,
        onRight: he,
        classes: [
          `id-${M}`,
          `day-${g}`,
          `day-from-end-${y}`,
          `weekday-${N}`,
          `weekday-position-${P}`,
          `weekday-ordinal-${x}`,
          `weekday-ordinal-from-end-${b}`,
          `week-${w}`,
          `week-from-end-${D}`,
          {
            "is-today": Q,
            "is-first-day": B,
            "is-last-day": H,
            "in-month": v,
            "in-prev-month": f,
            "in-next-month": h,
            "on-top": Z,
            "on-bottom": _,
            "on-left": re,
            "on-right": he
          }
        ]
      }), v && H ? (v = !1, h = !0, g = 1, y = u, x = 1, b = Math.floor((u - g) / Bt + 1), w = 1, D = n.numWeeks, E = n.month, T = n.year) : (g++, y--, x = Math.floor((g - 1) / Bt + 1), b = Math.floor((u - g) / Bt + 1));
    }
    w++, D--;
  }
  return o;
}
function QT(e, t, n, r) {
  const o = e.reduce((a, i, l) => {
    const s = Math.floor(l / 7);
    let u = a[s];
    return u || (u = {
      id: `week-${s + 1}`,
      title: "",
      week: i.week,
      weekPosition: i.weekPosition,
      weeknumber: i.weeknumber,
      isoWeeknumber: i.isoWeeknumber,
      weeknumberDisplay: t ? i.weeknumber : n ? i.isoWeeknumber : void 0,
      days: []
    }, a[s] = u), u.days.push(i), a;
  }, Array(e.length / Bt));
  return o.forEach((a) => {
    const i = a.days[0], l = a.days[a.days.length - 1];
    i.month === l.month ? a.title = `${r.formatDate(i.date, "MMMM YYYY")}` : i.year === l.year ? a.title = `${r.formatDate(
      i.date,
      "MMM"
    )} - ${r.formatDate(l.date, "MMM YYYY")}` : a.title = `${r.formatDate(
      i.date,
      "MMM YYYY"
    )} - ${r.formatDate(l.date, "MMM YYYY")}`;
  }), o;
}
function WT(e, t) {
  return e.days.map((n) => ({
    label: t.formatDate(n.date, t.masks.weekdays),
    weekday: n.weekday
  }));
}
function GT(e, t) {
  return `${t}.${it(e, 2)}`;
}
function Pp(e, t, n) {
  return Tp(
    n.getDateParts(n.toDate(e)),
    HT[t]
  );
}
function Ip({ day: e, week: t, month: n, year: r }, o, a, i) {
  if (a === "daily" && e) {
    const l = new Date(r, n - 1, e), s = Yt(l, o);
    return {
      day: s.getDate(),
      month: s.getMonth() + 1,
      year: s.getFullYear()
    };
  } else if (a === "weekly" && t) {
    const s = i.getMonthParts(n, r).firstDayOfMonth, u = Yt(s, (t - 1 + o) * 7), c = i.getDateParts(u);
    return {
      week: c.week,
      month: c.month,
      year: c.year
    };
  } else {
    const l = new Date(r, n - 1, 1), s = Pi(l, o);
    return {
      month: s.getMonth() + 1,
      year: s.getFullYear()
    };
  }
}
function Bn(e) {
  return e != null && e.month != null && e.year != null;
}
function Hs(e, t) {
  return !Bn(e) || !Bn(t) ? !1 : (e = e, t = t, e.year !== t.year ? e.year < t.year : e.month && t.month && e.month !== t.month ? e.month < t.month : e.week && t.week && e.week !== t.week ? e.week < t.week : e.day && t.day && e.day !== t.day ? e.day < t.day : !1);
}
function Ii(e, t) {
  return !Bn(e) || !Bn(t) ? !1 : (e = e, t = t, e.year !== t.year ? e.year > t.year : e.month && t.month && e.month !== t.month ? e.month > t.month : e.week && t.week && e.week !== t.week ? e.week > t.week : e.day && t.day && e.day !== t.day ? e.day > t.day : !1);
}
function KT(e, t, n) {
  return (e || !1) && !Hs(e, t) && !Ii(e, n);
}
function XT(e, t) {
  return !e && t || e && !t ? !1 : !e && !t ? !0 : (e = e, t = t, e.year === t.year && e.month === t.month && e.week === t.week && e.day === t.day);
}
function ZT(e, t, n, r) {
  if (!Bn(e) || !Bn(t))
    return [];
  const o = [];
  for (; !Ii(e, t); )
    o.push(e), e = Ip(e, 1, n, r);
  return o;
}
function Np(e) {
  const { day: t, week: n, month: r, year: o } = e;
  let a = `${o}-${it(r, 2)}`;
  return n && (a = `${a}-w${n}`), t && (a = `${a}-${it(t, 2)}`), a;
}
function JT(e, t) {
  const { month: n, year: r, showWeeknumbers: o, showIsoWeeknumbers: a } = e, i = new Date(r, n - 1, 15), l = t.getMonthParts(n, r), s = t.getPrevMonthParts(n, r), u = t.getNextMonthParts(n, r), c = YT({ monthComps: l, prevMonthComps: s, nextMonthComps: u }, t), d = QT(c, o, a, t), f = WT(d[0], t);
  return {
    id: Np(e),
    month: n,
    year: r,
    monthTitle: t.formatDate(i, t.masks.title),
    shortMonthLabel: t.formatDate(i, "MMM"),
    monthLabel: t.formatDate(i, "MMMM"),
    shortYearLabel: r.toString().substring(2),
    yearLabel: r.toString(),
    monthComps: l,
    prevMonthComps: s,
    nextMonthComps: u,
    days: c,
    weeks: d,
    weekdays: f
  };
}
function _T(e, t) {
  const { day: n, week: r, view: o, trimWeeks: a } = e, i = {
    ...t,
    ...e,
    title: "",
    viewDays: [],
    viewWeeks: []
  };
  switch (o) {
    case "daily": {
      let l = i.days.find((u) => u.inMonth);
      n ? l = i.days.find((u) => u.day === n && u.inMonth) || l : r && (l = i.days.find((u) => u.week === r && u.inMonth));
      const s = i.weeks[l.week - 1];
      i.viewWeeks = [s], i.viewDays = [l], i.week = l.week, i.weekTitle = s.title, i.day = l.day, i.dayTitle = l.ariaLabel, i.title = i.dayTitle;
      break;
    }
    case "weekly": {
      i.week = r || 1;
      const l = i.weeks[i.week - 1];
      i.viewWeeks = [l], i.viewDays = l.days, i.weekTitle = l.title, i.title = i.weekTitle;
      break;
    }
    default: {
      i.title = i.monthTitle, i.viewWeeks = i.weeks.slice(
        0,
        a ? i.monthComps.numWeeks : void 0
      ), i.viewDays = i.days;
      break;
    }
  }
  return i;
}
class sd {
  constructor(t, n, r) {
    Se(this, "keys", []), Se(this, "store", {}), this.size = t, this.createKey = n, this.createItem = r;
  }
  get(...t) {
    const n = this.createKey(...t);
    return this.store[n];
  }
  getOrSet(...t) {
    const n = this.createKey(...t);
    if (this.store[n])
      return this.store[n];
    const r = this.createItem(...t);
    if (this.keys.length >= this.size) {
      const o = this.keys.shift();
      o != null && delete this.store[o];
    }
    return this.keys.push(n), this.store[n] = r, r;
  }
}
class io {
  constructor(t, n = new Ni()) {
    Se(this, "order"), Se(this, "locale"), Se(this, "start", null), Se(this, "end", null), Se(this, "repeat", null);
    var r;
    this.locale = n;
    const { start: o, end: a, span: i, order: l, repeat: s } = t;
    ao(o) && (this.start = n.getDateParts(o)), ao(a) ? this.end = n.getDateParts(a) : this.start != null && i && (this.end = n.getDateParts(Yt(this.start.date, i - 1))), this.order = l ?? 0, s && (this.repeat = new Mi(
      {
        from: (r = this.start) == null ? void 0 : r.date,
        ...s
      },
      {
        locale: this.locale
      }
    ));
  }
  static fromMany(t, n) {
    return (pn(t) ? t : [t]).filter((r) => r).map((r) => io.from(r, n));
  }
  static from(t, n) {
    if (t instanceof io)
      return t;
    const r = {
      start: null,
      end: null
    };
    return t != null && (pn(t) ? (r.start = t[0] ?? null, r.end = t[1] ?? null) : tr(t) ? Object.assign(r, t) : (r.start = t, r.end = t)), r.start != null && (r.start = new Date(r.start)), r.end != null && (r.end = new Date(r.end)), new io(r, n);
  }
  get opts() {
    const { order: t, locale: n } = this;
    return { order: t, locale: n };
  }
  get hasRepeat() {
    return !!this.repeat;
  }
  get isSingleDay() {
    const { start: t, end: n } = this;
    return t && n && t.year === n.year && t.month === n.month && t.day === n.day;
  }
  get isMultiDay() {
    return !this.isSingleDay;
  }
  get daySpan() {
    return this.start == null || this.end == null ? this.hasRepeat ? 1 : 1 / 0 : this.end.dayIndex - this.start.dayIndex;
  }
  startsOnDay(t) {
    var n, r;
    return ((n = this.start) == null ? void 0 : n.dayIndex) === t.dayIndex || !!((r = this.repeat) != null && r.passes(t));
  }
  intersectsDay(t) {
    return this.intersectsDayRange(t, t);
  }
  intersectsRange(t) {
    var n, r;
    return this.intersectsDayRange(
      ((n = t.start) == null ? void 0 : n.dayIndex) ?? -1 / 0,
      ((r = t.end) == null ? void 0 : r.dayIndex) ?? 1 / 0
    );
  }
  intersectsDayRange(t, n) {
    return !(this.start && this.start.dayIndex > n || this.end && this.end.dayIndex < t);
  }
}
class $T {
  constructor() {
    Se(this, "records", {});
  }
  render(t, n, r) {
    var o, a, i, l;
    let s = null;
    const u = r[0].dayIndex, c = r[r.length - 1].dayIndex;
    return n.hasRepeat ? r.forEach((d) => {
      var f, v;
      if (n.startsOnDay(d)) {
        const h = n.daySpan < 1 / 0 ? n.daySpan : 1;
        s = {
          startDay: d.dayIndex,
          startTime: ((f = n.start) == null ? void 0 : f.time) ?? 0,
          endDay: d.dayIndex + h - 1,
          endTime: ((v = n.end) == null ? void 0 : v.time) ?? hi
        }, this.getRangeRecords(t).push(s);
      }
    }) : n.intersectsDayRange(u, c) && (s = {
      startDay: ((o = n.start) == null ? void 0 : o.dayIndex) ?? -1 / 0,
      startTime: ((a = n.start) == null ? void 0 : a.time) ?? -1 / 0,
      endDay: ((i = n.end) == null ? void 0 : i.dayIndex) ?? 1 / 0,
      endTime: ((l = n.end) == null ? void 0 : l.time) ?? 1 / 0
    }, this.getRangeRecords(t).push(s)), s;
  }
  getRangeRecords(t) {
    let n = this.records[t.key];
    return n || (n = {
      ranges: [],
      data: t
    }, this.records[t.key] = n), n.ranges;
  }
  getCell(t, n) {
    return this.getCells(n).find((a) => a.data.key === t);
  }
  cellExists(t, n) {
    const r = this.records[t];
    return r == null ? !1 : r.ranges.some(
      (o) => o.startDay <= n && o.endDay >= n
    );
  }
  getCells(t) {
    const n = Object.values(this.records), r = [], { dayIndex: o } = t;
    return n.forEach(({ data: a, ranges: i }) => {
      i.filter((l) => l.startDay <= o && l.endDay >= o).forEach((l) => {
        const s = o === l.startDay, u = o === l.endDay, c = s ? l.startTime : 0, d = new Date(t.startDate.getTime() + c), f = u ? l.endTime : hi, v = new Date(t.endDate.getTime() + f), h = c === 0 && f === hi, m = a.order || 0;
        r.push({
          ...l,
          data: a,
          onStart: s,
          onEnd: u,
          startTime: c,
          startDate: d,
          endTime: f,
          endDate: v,
          allDay: h,
          order: m
        });
      });
    }), r.sort((a, i) => a.order - i.order), r;
  }
}
const nr = {
  // Arabic
  ar: { dow: 7, L: "D/‏M/‏YYYY" },
  // Bulgarian
  bg: { dow: 2, L: "D.MM.YYYY" },
  // Catalan
  ca: { dow: 2, L: "DD/MM/YYYY" },
  // Chinese (China)
  "zh-CN": { dow: 2, L: "YYYY/MM/DD" },
  // Chinese (Taiwan)
  "zh-TW": { dow: 1, L: "YYYY/MM/DD" },
  // Croatian
  hr: { dow: 2, L: "DD.MM.YYYY" },
  // Czech
  cs: { dow: 2, L: "DD.MM.YYYY" },
  // Danish
  da: { dow: 2, L: "DD.MM.YYYY" },
  // Dutch
  nl: { dow: 2, L: "DD-MM-YYYY" },
  // English (US)
  "en-US": { dow: 1, L: "MM/DD/YYYY" },
  // English (Australia)
  "en-AU": { dow: 2, L: "DD/MM/YYYY" },
  // English (Canada)
  "en-CA": { dow: 1, L: "YYYY-MM-DD" },
  // English (Great Britain)
  "en-GB": { dow: 2, L: "DD/MM/YYYY" },
  // English (Ireland)
  "en-IE": { dow: 2, L: "DD-MM-YYYY" },
  // English (New Zealand)
  "en-NZ": { dow: 2, L: "DD/MM/YYYY" },
  // English (South Africa)
  "en-ZA": { dow: 1, L: "YYYY/MM/DD" },
  // Esperanto
  eo: { dow: 2, L: "YYYY-MM-DD" },
  // Estonian
  et: { dow: 2, L: "DD.MM.YYYY" },
  // Finnish
  fi: { dow: 2, L: "DD.MM.YYYY" },
  // French
  fr: { dow: 2, L: "DD/MM/YYYY" },
  // French (Canada)
  "fr-CA": { dow: 1, L: "YYYY-MM-DD" },
  // French (Switzerland)
  "fr-CH": { dow: 2, L: "DD.MM.YYYY" },
  // German
  de: { dow: 2, L: "DD.MM.YYYY" },
  // Hebrew
  he: { dow: 1, L: "DD.MM.YYYY" },
  // Indonesian
  id: { dow: 2, L: "DD/MM/YYYY" },
  // Italian
  it: { dow: 2, L: "DD/MM/YYYY" },
  // Japanese
  ja: { dow: 1, L: "YYYY年M月D日" },
  // Korean
  ko: { dow: 1, L: "YYYY.MM.DD" },
  // Latvian
  lv: { dow: 2, L: "DD.MM.YYYY" },
  // Lithuanian
  lt: { dow: 2, L: "DD.MM.YYYY" },
  // Macedonian
  mk: { dow: 2, L: "D.MM.YYYY" },
  // Norwegian
  nb: { dow: 2, L: "D. MMMM YYYY" },
  nn: { dow: 2, L: "D. MMMM YYYY" },
  // Polish
  pl: { dow: 2, L: "DD.MM.YYYY" },
  // Portuguese
  pt: { dow: 2, L: "DD/MM/YYYY" },
  // Romanian
  ro: { dow: 2, L: "DD.MM.YYYY" },
  // Russian
  ru: { dow: 2, L: "DD.MM.YYYY" },
  // Slovak
  sk: { dow: 2, L: "DD.MM.YYYY" },
  // Spanish (Spain)
  "es-ES": { dow: 2, L: "DD/MM/YYYY" },
  // Spanish (Mexico)
  "es-MX": { dow: 2, L: "DD/MM/YYYY" },
  // Swedish
  sv: { dow: 2, L: "YYYY-MM-DD" },
  // Thai
  th: { dow: 1, L: "DD/MM/YYYY" },
  // Turkish
  tr: { dow: 2, L: "DD.MM.YYYY" },
  // Ukrainian
  uk: { dow: 2, L: "DD.MM.YYYY" },
  // Vietnam
  vi: { dow: 2, L: "DD/MM/YYYY" }
};
nr.en = nr["en-US"];
nr.es = nr["es-ES"];
nr.no = nr.nb;
nr.zh = nr["zh-CN"];
const eD = Object.entries(nr).reduce(
  (e, [t, { dow: n, L: r }]) => (e[t] = {
    id: t,
    firstDayOfWeek: n,
    masks: { L: r }
  }, e),
  {}
), tD = "MMMM YYYY", nD = "W", rD = "MMM", oD = "h A", aD = [
  "L",
  "YYYY-MM-DD",
  "YYYY/MM/DD"
], iD = [
  "L h:mm A",
  "YYYY-MM-DD h:mm A",
  "YYYY/MM/DD h:mm A"
], lD = [
  "L HH:mm",
  "YYYY-MM-DD HH:mm",
  "YYYY/MM/DD HH:mm"
], sD = [
  "h:mm A"
], uD = [
  "HH:mm"
], cD = "WWW, MMM D, YYYY", fD = [
  "L",
  "YYYY-MM-DD",
  "YYYY/MM/DD"
], dD = "iso", vD = "YYYY-MM-DDTHH:mm:ss.SSSZ", hD = {
  title: tD,
  weekdays: nD,
  navMonths: rD,
  hours: oD,
  input: aD,
  inputDateTime: iD,
  inputDateTime24hr: lD,
  inputTime: sD,
  inputTime24hr: uD,
  dayPopover: cD,
  data: fD,
  model: dD,
  iso: vD
}, pD = 300, gD = 60, mD = 80, yD = {
  maxSwipeTime: pD,
  minHorizontalSwipeDistance: gD,
  maxVerticalSwipeDistance: mD
}, bD = {
  componentPrefix: "V",
  color: "blue",
  isDark: !1,
  navVisibility: "click",
  titlePosition: "center",
  transition: "slide-h",
  touch: yD,
  masks: hD,
  locales: eD,
  datePicker: {
    updateOnInput: !0,
    inputDebounce: 1e3,
    popover: {
      visibility: "hover-focus",
      placement: "bottom-start",
      isInteractive: !0
    }
  }
}, Ys = wo(bD), wD = U(() => z9(Ys.locales, (e) => (e.masks = ha(e.masks, Ys.masks), e))), wr = (e) => typeof window < "u" && Ep(window.__vcalendar__, e) ? Rr(window.__vcalendar__, e) : Rr(Ys, e), xD = 12, AD = 5;
function OD(e, t) {
  const n = new Intl.DateTimeFormat().resolvedOptions().locale;
  let r;
  Rn(e) ? r = e : Ep(e, "id") && (r = e.id), r = (r || n).toLowerCase();
  const o = Object.keys(t), a = (s) => o.find((u) => u.toLowerCase() === s);
  r = a(r) || a(r.substring(0, 2)) || n;
  const i = {
    ...t["en-IE"],
    ...t[r],
    id: r,
    monthCacheSize: xD,
    pageCacheSize: AD
  };
  return tr(e) ? ha(e, i) : i;
}
class Ni {
  constructor(t = void 0, n) {
    Se(this, "id"), Se(this, "daysInWeek"), Se(this, "firstDayOfWeek"), Se(this, "masks"), Se(this, "timezone"), Se(this, "hourLabels"), Se(this, "dayNames"), Se(this, "dayNamesShort"), Se(this, "dayNamesShorter"), Se(this, "dayNamesNarrow"), Se(this, "monthNames"), Se(this, "monthNamesShort"), Se(this, "relativeTimeNames"), Se(this, "amPm", ["am", "pm"]), Se(this, "monthCache"), Se(this, "pageCache");
    const { id: r, firstDayOfWeek: o, masks: a, monthCacheSize: i, pageCacheSize: l } = OD(t, wD.value);
    this.monthCache = new sd(
      i,
      QD,
      WD
    ), this.pageCache = new sd(l, Np, JT), this.id = r, this.daysInWeek = Bt, this.firstDayOfWeek = oT(o, 1, Bt), this.masks = a, this.timezone = n || void 0, this.hourLabels = this.getHourLabels(), this.dayNames = cs("long", this.id), this.dayNamesShort = cs("short", this.id), this.dayNamesShorter = this.dayNamesShort.map((s) => s.substring(0, 2)), this.dayNamesNarrow = cs("narrow", this.id), this.monthNames = hd("long", this.id), this.monthNamesShort = hd("short", this.id), this.relativeTimeNames = XD(this.id);
  }
  formatDate(t, n) {
    return ek(t, n, this);
  }
  parseDate(t, n) {
    return pd(t, n, this);
  }
  toDate(t, n = {}) {
    const r = /* @__PURE__ */ new Date(NaN);
    let o = r;
    const { fillDate: a, mask: i, patch: l, rules: s } = n;
    if (Tn(t) ? (n.type = "number", o = /* @__PURE__ */ new Date(+t)) : Rn(t) ? (n.type = "string", o = t ? pd(t, i || "iso", this) : r) : ao(t) ? (n.type = "date", o = new Date(t.getTime())) : Gu(t) && (n.type = "object", o = this.getDateFromParts(t)), o && (l || s)) {
      let u = this.getDateParts(o);
      if (l && a != null) {
        const c = this.getDateParts(this.toDate(a));
        u = this.getDateParts(
          this.toDate({ ...c, ...Tp(u, RD[l]) })
        );
      }
      s && (u = $D(u, s)), o = this.getDateFromParts(u);
    }
    return o || r;
  }
  toDateOrNull(t, n = {}) {
    const r = this.toDate(t, n);
    return isNaN(r.getTime()) ? null : r;
  }
  fromDate(t, { type: n, mask: r } = {}) {
    switch (n) {
      case "number":
        return t ? t.getTime() : NaN;
      case "string":
        return t ? this.formatDate(t, r || "iso") : "";
      case "object":
        return t ? this.getDateParts(t) : null;
      default:
        return t ? new Date(t) : null;
    }
  }
  range(t) {
    return io.from(t, this);
  }
  ranges(t) {
    return io.fromMany(t, this);
  }
  getDateParts(t) {
    return YD(t, this);
  }
  getDateFromParts(t) {
    return Hp(t, this.timezone);
  }
  getDateFromParams(t, n, r, o, a, i, l) {
    return this.getDateFromParts({
      year: t,
      month: n,
      day: r,
      hours: o,
      minutes: a,
      seconds: i,
      milliseconds: l
    });
  }
  getPage(t) {
    const n = this.pageCache.getOrSet(t, this);
    return _T(t, n);
  }
  getMonthParts(t, n) {
    const { firstDayOfWeek: r } = this;
    return this.monthCache.getOrSet(t, n, r);
  }
  getThisMonthParts() {
    const t = /* @__PURE__ */ new Date();
    return this.getMonthParts(
      t.getMonth() + 1,
      t.getFullYear()
    );
  }
  getPrevMonthParts(t, n) {
    return t === 1 ? this.getMonthParts(12, n - 1) : this.getMonthParts(t - 1, n);
  }
  getNextMonthParts(t, n) {
    return t === 12 ? this.getMonthParts(1, n + 1) : this.getMonthParts(t + 1, n);
  }
  getHourLabels() {
    return KD().map((t) => this.formatDate(t, this.masks.hours));
  }
  getDayId(t) {
    return this.formatDate(t, "YYYY-MM-DD");
  }
}
var to = /* @__PURE__ */ ((e) => (e.Any = "any", e.All = "all", e))(to || {}), Mp = /* @__PURE__ */ ((e) => (e.Days = "days", e.Weeks = "weeks", e.Months = "months", e.Years = "years", e))(Mp || {}), Lp = /* @__PURE__ */ ((e) => (e.Days = "days", e.Weekdays = "weekdays", e.Weeks = "weeks", e.Months = "months", e.Years = "years", e))(Lp || {}), Rp = /* @__PURE__ */ ((e) => (e.OrdinalWeekdays = "ordinalWeekdays", e))(Rp || {});
class CD {
  constructor(t, n, r) {
    Se(this, "validated", !0), this.type = t, this.interval = n, this.from = r, this.from || (console.error(
      'A valid "from" date is required for date interval rule. This rule will be skipped.'
    ), this.validated = !1);
  }
  passes(t) {
    if (!this.validated)
      return !0;
    const { date: n } = t;
    switch (this.type) {
      case "days":
        return Ku(this.from.date, n) % this.interval === 0;
      case "weeks":
        return UD(this.from.date, n) % this.interval === 0;
      case "months":
        return HD(this.from.date, n) % this.interval === 0;
      case "years":
        return Up(this.from.date, n) % this.interval === 0;
      default:
        return !1;
    }
  }
}
class No {
  constructor(t, n, r, o) {
    Se(this, "components", []), this.type = t, this.validator = r, this.getter = o, this.components = this.normalizeComponents(n);
  }
  static create(t, n) {
    switch (t) {
      case "days":
        return new ED(n);
      case "weekdays":
        return new SD(n);
      case "weeks":
        return new TD(n);
      case "months":
        return new DD(n);
      case "years":
        return new kD(n);
    }
  }
  normalizeComponents(t) {
    if (this.validator(t))
      return [t];
    if (!pn(t))
      return [];
    const n = [];
    return t.forEach((r) => {
      if (!this.validator(r)) {
        console.error(
          `Component value ${r} in invalid for "${this.type}" rule. This rule will be skipped.`
        );
        return;
      }
      n.push(r);
    }), n;
  }
  passes(t) {
    return this.getter(t).some((o) => this.components.includes(o));
  }
}
class ED extends No {
  constructor(t) {
    super(
      "days",
      t,
      ND,
      ({ day: n, dayFromEnd: r }) => [n, -r]
    );
  }
}
class SD extends No {
  constructor(t) {
    super(
      "weekdays",
      t,
      Qs,
      ({ weekday: n }) => [n]
    );
  }
}
class TD extends No {
  constructor(t) {
    super(
      "weeks",
      t,
      MD,
      ({ week: n, weekFromEnd: r }) => [n, -r]
    );
  }
}
class DD extends No {
  constructor(t) {
    super("months", t, LD, ({ month: n }) => [
      n
    ]);
  }
}
class kD extends No {
  constructor(t) {
    super("years", t, Tn, ({ year: n }) => [n]);
  }
}
class PD {
  constructor(t, n) {
    Se(this, "components"), this.type = t, this.components = this.normalizeComponents(n);
  }
  normalizeArrayConfig(t) {
    const n = [];
    return t.forEach((r, o) => {
      if (Tn(r)) {
        if (o === 0)
          return;
        if (!ud(t[0])) {
          console.error(
            `Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`
          );
          return;
        }
        if (!Qs(r)) {
          console.error(
            `Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`
          );
          return;
        }
        n.push([t[0], r]);
      } else
        pn(r) && n.push(...this.normalizeArrayConfig(r));
    }), n;
  }
  normalizeComponents(t) {
    const n = [];
    return t.forEach((r, o) => {
      if (Tn(r)) {
        if (o === 0)
          return;
        if (!ud(t[0])) {
          console.error(
            `Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`
          );
          return;
        }
        if (!Qs(r)) {
          console.error(
            `Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`
          );
          return;
        }
        n.push([t[0], r]);
      } else
        pn(r) && n.push(...this.normalizeArrayConfig(r));
    }), n;
  }
  passes(t) {
    const { weekday: n, weekdayOrdinal: r, weekdayOrdinalFromEnd: o } = t;
    return this.components.some(
      ([a, i]) => (a === r || a === -o) && n === i
    );
  }
}
class ID {
  constructor(t) {
    Se(this, "type", "function"), Se(this, "validated", !0), this.fn = t, Qr(t) || (console.error(
      "The function rule requires a valid function. This rule will be skipped."
    ), this.validated = !1);
  }
  passes(t) {
    return this.validated ? this.fn(t) : !0;
  }
}
class Mi {
  constructor(t, n = {}, r) {
    Se(this, "validated", !0), Se(this, "config"), Se(this, "type", to.Any), Se(this, "from"), Se(this, "until"), Se(this, "rules", []), Se(this, "locale", new Ni()), this.parent = r, n.locale && (this.locale = n.locale), this.config = t, Qr(t) ? (this.type = to.All, this.rules = [new ID(t)]) : pn(t) ? (this.type = to.Any, this.rules = t.map((o) => new Mi(o, n, this))) : tr(t) ? (this.type = to.All, this.from = t.from ? this.locale.getDateParts(t.from) : r == null ? void 0 : r.from, this.until = t.until ? this.locale.getDateParts(t.until) : r == null ? void 0 : r.until, this.rules = this.getObjectRules(t)) : (console.error("Rule group configuration must be an object or an array."), this.validated = !1);
  }
  getObjectRules(t) {
    const n = [];
    if (t.every && (Rn(t.every) && (t.every = [1, `${t.every}s`]), pn(t.every))) {
      const [r = 1, o = Mp.Days] = t.every;
      n.push(new CD(o, r, this.from));
    }
    return Object.values(Lp).forEach((r) => {
      r in t && n.push(No.create(r, t[r]));
    }), Object.values(Rp).forEach((r) => {
      r in t && n.push(new PD(r, t[r]));
    }), t.on != null && (pn(t.on) || (t.on = [t.on]), n.push(
      new Mi(t.on, { locale: this.locale }, this.parent)
    )), n;
  }
  passes(t) {
    return this.validated ? this.from && t.dayIndex <= this.from.dayIndex || this.until && t.dayIndex >= this.until.dayIndex ? !1 : this.type === to.Any ? this.rules.some((n) => n.passes(t)) : this.rules.every((n) => n.passes(t)) : !0;
  }
}
function ND(e) {
  return Tn(e) ? e >= 1 && e <= 31 : !1;
}
function Qs(e) {
  return Tn(e) ? e >= 1 && e <= 7 : !1;
}
function MD(e) {
  return Tn(e) ? e >= -6 && e <= -1 || e >= 1 && e <= 6 : !1;
}
function LD(e) {
  return Tn(e) ? e >= 1 && e <= 12 : !1;
}
function ud(e) {
  return !(!Tn(e) || e < -5 || e > 5 || e === 0);
}
const RD = {
  dateTime: [
    "year",
    "month",
    "day",
    "hours",
    "minutes",
    "seconds",
    "milliseconds"
  ],
  date: ["year", "month", "day"],
  time: ["hours", "minutes", "seconds", "milliseconds"]
}, Bt = 7, BD = 6, Bp = 1e3, Fp = Bp * 60, jp = Fp * 60, hi = jp * 24, FD = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], jD = ["L", "iso"], ea = {
  milliseconds: [0, 999, 3],
  seconds: [0, 59, 2],
  minutes: [0, 59, 2],
  hours: [0, 23, 2]
}, qp = /d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g, qD = /\[([^]*?)\]/gm, cd = {
  D(e) {
    return e.day;
  },
  DD(e) {
    return it(e.day, 2);
  },
  // Do(d: DateParts, l: Locale) {
  //   return l.DoFn(d.day);
  // },
  d(e) {
    return e.weekday - 1;
  },
  dd(e) {
    return it(e.weekday - 1, 2);
  },
  W(e, t) {
    return t.dayNamesNarrow[e.weekday - 1];
  },
  WW(e, t) {
    return t.dayNamesShorter[e.weekday - 1];
  },
  WWW(e, t) {
    return t.dayNamesShort[e.weekday - 1];
  },
  WWWW(e, t) {
    return t.dayNames[e.weekday - 1];
  },
  M(e) {
    return e.month;
  },
  MM(e) {
    return it(e.month, 2);
  },
  MMM(e, t) {
    return t.monthNamesShort[e.month - 1];
  },
  MMMM(e, t) {
    return t.monthNames[e.month - 1];
  },
  YY(e) {
    return String(e.year).substr(2);
  },
  YYYY(e) {
    return it(e.year, 4);
  },
  h(e) {
    return e.hours % 12 || 12;
  },
  hh(e) {
    return it(e.hours % 12 || 12, 2);
  },
  H(e) {
    return e.hours;
  },
  HH(e) {
    return it(e.hours, 2);
  },
  m(e) {
    return e.minutes;
  },
  mm(e) {
    return it(e.minutes, 2);
  },
  s(e) {
    return e.seconds;
  },
  ss(e) {
    return it(e.seconds, 2);
  },
  S(e) {
    return Math.round(e.milliseconds / 100);
  },
  SS(e) {
    return it(Math.round(e.milliseconds / 10), 2);
  },
  SSS(e) {
    return it(e.milliseconds, 3);
  },
  a(e, t) {
    return e.hours < 12 ? t.amPm[0] : t.amPm[1];
  },
  A(e, t) {
    return e.hours < 12 ? t.amPm[0].toUpperCase() : t.amPm[1].toUpperCase();
  },
  Z() {
    return "Z";
  },
  ZZ(e) {
    const t = e.timezoneOffset;
    return `${t > 0 ? "-" : "+"}${it(Math.floor(Math.abs(t) / 60), 2)}`;
  },
  ZZZ(e) {
    const t = e.timezoneOffset;
    return `${t > 0 ? "-" : "+"}${it(
      Math.floor(Math.abs(t) / 60) * 100 + Math.abs(t) % 60,
      4
    )}`;
  },
  ZZZZ(e) {
    const t = e.timezoneOffset;
    return `${t > 0 ? "-" : "+"}${it(Math.floor(Math.abs(t) / 60), 2)}:${it(
      Math.abs(t) % 60,
      2
    )}`;
  }
}, fr = /\d\d?/, VD = /\d{3}/, zD = /\d{4}/, Xo = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i, fd = () => {
}, dd = (e) => (t, n, r) => {
  const o = r[e].indexOf(
    n.charAt(0).toUpperCase() + n.substr(1).toLowerCase()
  );
  ~o && (t.month = o);
}, ut = {
  D: [
    fr,
    (e, t) => {
      e.day = t;
    }
  ],
  Do: [
    new RegExp(fr.source + Xo.source),
    (e, t) => {
      e.day = parseInt(t, 10);
    }
  ],
  d: [fr, fd],
  W: [Xo, fd],
  M: [
    fr,
    (e, t) => {
      e.month = t - 1;
    }
  ],
  MMM: [Xo, dd("monthNamesShort")],
  MMMM: [Xo, dd("monthNames")],
  YY: [
    fr,
    (e, t) => {
      const r = +(/* @__PURE__ */ new Date()).getFullYear().toString().substr(0, 2);
      e.year = +`${t > 68 ? r - 1 : r}${t}`;
    }
  ],
  YYYY: [
    zD,
    (e, t) => {
      e.year = t;
    }
  ],
  S: [
    /\d/,
    (e, t) => {
      e.milliseconds = t * 100;
    }
  ],
  SS: [
    /\d{2}/,
    (e, t) => {
      e.milliseconds = t * 10;
    }
  ],
  SSS: [
    VD,
    (e, t) => {
      e.milliseconds = t;
    }
  ],
  h: [
    fr,
    (e, t) => {
      e.hours = t;
    }
  ],
  m: [
    fr,
    (e, t) => {
      e.minutes = t;
    }
  ],
  s: [
    fr,
    (e, t) => {
      e.seconds = t;
    }
  ],
  a: [
    Xo,
    (e, t, n) => {
      const r = t.toLowerCase();
      r === n.amPm[0] ? e.isPm = !1 : r === n.amPm[1] && (e.isPm = !0);
    }
  ],
  Z: [
    /[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,
    (e, t) => {
      t === "Z" && (t = "+00:00");
      const n = `${t}`.match(/([+-]|\d\d)/gi);
      if (n) {
        const r = +n[1] * 60 + parseInt(n[2], 10);
        e.timezoneOffset = n[0] === "+" ? r : -r;
      }
    }
  ]
};
ut.DD = ut.D;
ut.dd = ut.d;
ut.WWWW = ut.WWW = ut.WW = ut.W;
ut.MM = ut.M;
ut.mm = ut.m;
ut.hh = ut.H = ut.HH = ut.h;
ut.ss = ut.s;
ut.A = ut.a;
ut.ZZZZ = ut.ZZZ = ut.ZZ = ut.Z;
function Vp(e, t) {
  return ($n(e) && e || [
    Rn(e) && e || "YYYY-MM-DD"
  ]).map(
    (n) => jD.reduce(
      (r, o) => r.replace(o, t.masks[o] || ""),
      n
    )
  );
}
function Gu(e) {
  return tr(e) && "year" in e && "month" in e && "day" in e;
}
function vd(e, t = 1) {
  const n = e.getDay() + 1, r = n >= t ? t - n : -(7 - (t - n));
  return Yt(e, r);
}
function zp(e, t, n) {
  const r = Date.UTC(e, t - 1, n);
  return Ku(/* @__PURE__ */ new Date(0), new Date(r));
}
function Ku(e, t) {
  return Math.round((t.getTime() - e.getTime()) / hi);
}
function UD(e, t) {
  return Math.ceil(Ku(vd(e), vd(t)) / 7);
}
function Up(e, t) {
  return t.getUTCFullYear() - e.getUTCFullYear();
}
function HD(e, t) {
  return Up(e, t) * 12 + (t.getMonth() - e.getMonth());
}
function Hp(e, t = "") {
  const n = /* @__PURE__ */ new Date(), {
    year: r = n.getFullYear(),
    month: o = n.getMonth() + 1,
    day: a = n.getDate(),
    hours: i = 0,
    minutes: l = 0,
    seconds: s = 0,
    milliseconds: u = 0
  } = e;
  if (t) {
    const c = `${it(r, 4)}-${it(o, 2)}-${it(a, 2)}T${it(
      i,
      2
    )}:${it(l, 2)}:${it(s, 2)}.${it(u, 3)}`;
    return xT(c, { timeZone: t });
  }
  return new Date(r, o - 1, a, i, l, s, u);
}
function YD(e, t) {
  let n = new Date(e.getTime());
  t.timezone && (n = new Date(
    e.toLocaleString("en-US", { timeZone: t.timezone })
  ), n.setMilliseconds(e.getMilliseconds()));
  const r = n.getMilliseconds(), o = n.getSeconds(), a = n.getMinutes(), i = n.getHours(), l = r + o * Bp + a * Fp + i * jp, s = n.getMonth() + 1, u = n.getFullYear(), c = t.getMonthParts(s, u), d = n.getDate(), f = c.numDays - d + 1, v = n.getDay() + 1, h = Math.floor((d - 1) / 7 + 1), m = Math.floor((c.numDays - d) / 7 + 1), p = Math.ceil(
    (d + Math.abs(c.firstWeekday - c.firstDayOfWeek)) / 7
  ), g = c.numWeeks - p + 1, y = c.weeknumbers[p], x = zp(u, s, d);
  return {
    milliseconds: r,
    seconds: o,
    minutes: a,
    hours: i,
    time: l,
    day: d,
    dayFromEnd: f,
    weekday: v,
    weekdayOrdinal: h,
    weekdayOrdinalFromEnd: m,
    week: p,
    weekFromEnd: g,
    weeknumber: y,
    month: s,
    year: u,
    date: n,
    dateTime: n.getTime(),
    dayIndex: x,
    timezoneOffset: 0,
    isValid: !0
  };
}
function QD(e, t, n) {
  return `${t}-${e}-${n}`;
}
function WD(e, t, n) {
  const r = t % 4 === 0 && t % 100 !== 0 || t % 400 === 0, o = new Date(t, e - 1, 1), a = o.getDay() + 1, i = e === 2 && r ? 29 : FD[e - 1], l = n - 1, s = LT(o, {
    weekStartsOn: l
  }), u = [], c = [];
  for (let d = 0; d < s; d++) {
    const f = Yt(o, d * 7);
    u.push(jT(f, { weekStartsOn: l })), c.push(UT(f));
  }
  return {
    firstDayOfWeek: n,
    firstDayOfMonth: o,
    inLeapYear: r,
    firstWeekday: a,
    numDays: i,
    numWeeks: s,
    month: e,
    year: t,
    weeknumbers: u,
    isoWeeknumbers: c
  };
}
function GD() {
  const e = [];
  for (let o = 0; o < Bt; o++)
    e.push(
      Hp({
        year: 2020,
        month: 1,
        day: 5 + o,
        hours: 12
      })
    );
  return e;
}
function cs(e, t = void 0) {
  const n = new Intl.DateTimeFormat(t, {
    weekday: e
  });
  return GD().map((r) => n.format(r));
}
function KD() {
  const e = [];
  for (let t = 0; t <= 24; t++)
    e.push(new Date(2e3, 0, 1, t));
  return e;
}
function XD(e = void 0) {
  const t = [
    "second",
    "minute",
    "hour",
    "day",
    "week",
    "month",
    "quarter",
    "year"
  ], n = new Intl.RelativeTimeFormat(e);
  return t.reduce((r, o) => {
    const a = n.formatToParts(100, o);
    return r[o] = a[1].unit, r;
  }, {});
}
function Yp() {
  const e = [];
  for (let t = 0; t < 12; t++)
    e.push(new Date(2e3, t, 15));
  return e;
}
function hd(e, t = void 0) {
  const n = new Intl.DateTimeFormat(t, {
    month: e,
    timeZone: "UTC"
  });
  return Yp().map((r) => n.format(r));
}
function ZD(e, t, n) {
  return Tn(t) ? t === e : pn(t) ? t.includes(e) : Qr(t) ? t(e, n) : !(t.min != null && t.min > e || t.max != null && t.max < e || t.interval != null && e % t.interval !== 0);
}
function ta(e, t, n) {
  const r = [], [o, a, i] = t;
  for (let l = o; l <= a; l++)
    (n == null || ZD(l, n, e)) && r.push({
      value: l,
      label: it(l, i)
    });
  return r;
}
function JD(e, t) {
  return {
    milliseconds: ta(
      e,
      ea.milliseconds,
      t.milliseconds
    ),
    seconds: ta(e, ea.seconds, t.seconds),
    minutes: ta(e, ea.minutes, t.minutes),
    hours: ta(e, ea.hours, t.hours)
  };
}
function _D(e, t, n, r) {
  const a = ta(e, t, r).reduce((i, l) => {
    if (l.disabled)
      return i;
    if (isNaN(i))
      return l.value;
    const s = Math.abs(i - n);
    return Math.abs(l.value - n) < s ? l.value : i;
  }, NaN);
  return isNaN(a) ? n : a;
}
function $D(e, t) {
  const n = { ...e };
  return Object.entries(t).forEach(([r, o]) => {
    const a = ea[r], i = e[r];
    n[r] = _D(
      e,
      a,
      i,
      o
    );
  }), n;
}
function pd(e, t, n) {
  return Vp(t, n).map((o) => {
    if (typeof o != "string")
      throw new Error("Invalid mask");
    let a = e;
    if (a.length > 1e3)
      return !1;
    let i = !0;
    const l = {};
    if (o.replace(qp, (c) => {
      if (ut[c]) {
        const d = ut[c], f = a.search(d[0]);
        ~f ? a.replace(d[0], (v) => (d[1](l, v, n), a = a.substr(f + v.length), v)) : i = !1;
      }
      return ut[c] ? "" : c.slice(1, c.length - 1);
    }), !i)
      return !1;
    const s = /* @__PURE__ */ new Date();
    l.hours != null && (l.isPm === !0 && +l.hours != 12 ? l.hours = +l.hours + 12 : l.isPm === !1 && +l.hours == 12 && (l.hours = 0));
    let u;
    return l.timezoneOffset != null ? (l.minutes = +(l.minutes || 0) - +l.timezoneOffset, u = new Date(
      Date.UTC(
        l.year || s.getFullYear(),
        l.month || 0,
        l.day || 1,
        l.hours || 0,
        l.minutes || 0,
        l.seconds || 0,
        l.milliseconds || 0
      )
    )) : u = n.getDateFromParts({
      year: l.year || s.getFullYear(),
      month: (l.month || 0) + 1,
      day: l.day || 1,
      hours: l.hours || 0,
      minutes: l.minutes || 0,
      seconds: l.seconds || 0,
      milliseconds: l.milliseconds || 0
    }), u;
  }).find((o) => o) || new Date(e);
}
function ek(e, t, n) {
  if (e == null)
    return "";
  let r = Vp(t, n)[0];
  /Z$/.test(r) && (n.timezone = "utc");
  const o = [];
  r = r.replace(qD, (i, l) => (o.push(l), "??"));
  const a = n.getDateParts(e);
  return r = r.replace(
    qp,
    (i) => i in cd ? cd[i](a, n) : i.slice(1, i.length - 1)
  ), r.replace(/\?\?/g, () => o.shift());
}
let tk = 0;
class Qp {
  constructor(t, n, r) {
    Se(this, "key", ""), Se(this, "hashcode", ""), Se(this, "highlight", null), Se(this, "content", null), Se(this, "dot", null), Se(this, "bar", null), Se(this, "event", null), Se(this, "popover", null), Se(this, "customData", null), Se(this, "ranges"), Se(this, "hasRanges", !1), Se(this, "order", 0), Se(this, "pinPage", !1), Se(this, "maxRepeatSpan", 0), Se(this, "locale");
    const { dates: o } = Object.assign(
      this,
      { hashcode: "", order: 0, pinPage: !1 },
      t
    );
    this.key || (this.key = ++tk), this.locale = r, n.normalizeGlyphs(this), this.ranges = r.ranges(o ?? []), this.hasRanges = !!$n(this.ranges), this.maxRepeatSpan = this.ranges.filter((a) => a.hasRepeat).map((a) => a.daySpan).reduce((a, i) => Math.max(a, i), 0);
  }
  intersectsRange({ start: t, end: n }) {
    if (t == null || n == null)
      return !1;
    const r = this.ranges.filter((i) => !i.hasRepeat);
    for (const i of r)
      if (i.intersectsDayRange(t.dayIndex, n.dayIndex))
        return !0;
    const o = this.ranges.filter((i) => i.hasRepeat);
    if (!o.length)
      return !1;
    let a = t;
    for (this.maxRepeatSpan > 1 && (a = this.locale.getDateParts(Yt(a.date, -this.maxRepeatSpan))); a.dayIndex <= n.dayIndex; ) {
      for (const i of o)
        if (i.startsOnDay(a))
          return !0;
      a = this.locale.getDateParts(Yt(a.date, 1));
    }
    return !1;
  }
}
function Ws(e) {
  document && document.dispatchEvent(
    new CustomEvent("show-popover", {
      detail: e
    })
  );
}
function pa(e) {
  document && document.dispatchEvent(
    new CustomEvent("hide-popover", {
      detail: e
    })
  );
}
function Wp(e) {
  document && document.dispatchEvent(
    new CustomEvent("toggle-popover", {
      detail: e
    })
  );
}
function Gp(e) {
  const { visibility: t } = e, n = t === "click", r = t === "hover", o = t === "hover-focus", a = t === "focus";
  e.autoHide = !n;
  let i = !1, l = !1;
  const s = (h) => {
    n && (Wp({
      ...e,
      target: e.target || h.currentTarget
    }), h.stopPropagation());
  }, u = (h) => {
    i || (i = !0, (r || o) && Ws({
      ...e,
      target: e.target || h.currentTarget
    }));
  }, c = () => {
    i && (i = !1, (r || o && !l) && pa(e));
  }, d = (h) => {
    l || (l = !0, (a || o) && Ws({
      ...e,
      target: e.target || h.currentTarget
    }));
  }, f = (h) => {
    l && !di(h.currentTarget, h.relatedTarget) && (l = !1, (a || o && !i) && pa(e));
  }, v = {};
  switch (e.visibility) {
    case "click":
      v.click = s;
      break;
    case "hover":
      v.mousemove = u, v.mouseleave = c;
      break;
    case "focus":
      v.focusin = d, v.focusout = f;
      break;
    case "hover-focus":
      v.mousemove = u, v.mouseleave = c, v.focusin = d, v.focusout = f;
      break;
  }
  return v;
}
const gd = (e) => {
  const t = Si(e);
  if (t == null)
    return;
  const n = t.popoverHandlers;
  !n || !n.length || (n.forEach((r) => r()), delete t.popoverHandlers);
}, md = (e, t) => {
  const n = Si(e);
  if (n == null)
    return;
  const r = [], o = Gp(t);
  Object.entries(o).forEach(([a, i]) => {
    r.push(pr(n, a, i));
  }), n.popoverHandlers = r;
}, Kp = {
  mounted(e, t) {
    const { value: n } = t;
    n && md(e, n);
  },
  updated(e, t) {
    const { oldValue: n, value: r } = t, o = n == null ? void 0 : n.visibility, a = r == null ? void 0 : r.visibility;
    o !== a && (o && (gd(e), a || pa(n)), a && md(e, r));
  },
  unmounted(e) {
    gd(e);
  }
}, nk = (e, t, {
  maxSwipeTime: n,
  minHorizontalSwipeDistance: r,
  maxVerticalSwipeDistance: o
}) => {
  if (!e || !e.addEventListener || !Qr(t))
    return null;
  let a = 0, i = 0, l = null, s = !1;
  function u(d) {
    const f = d.changedTouches[0];
    a = f.screenX, i = f.screenY, l = (/* @__PURE__ */ new Date()).getTime(), s = !0;
  }
  function c(d) {
    if (!s || !l)
      return;
    s = !1;
    const f = d.changedTouches[0], v = f.screenX - a, h = f.screenY - i;
    if ((/* @__PURE__ */ new Date()).getTime() - l < n && Math.abs(v) >= r && Math.abs(h) <= o) {
      const p = { toLeft: !1, toRight: !1 };
      v < 0 ? p.toLeft = !0 : p.toRight = !0, t(p);
    }
  }
  return pr(e, "touchstart", u, { passive: !0 }), pr(e, "touchend", c, { passive: !0 }), () => {
    hr(e, "touchstart", u), hr(e, "touchend", c);
  };
}, pi = {}, rk = (e, t = 10) => {
  pi[e] = Date.now() + t;
}, ok = (e, t) => {
  if (e in pi) {
    const n = pi[e];
    if (Date.now() < n)
      return;
    delete pi[e];
  }
  t();
};
function Xp() {
  return typeof window < "u";
}
function ak(e) {
  return Xp() && e in window;
}
function ik(e) {
  const t = ne(!1), n = U(() => t.value ? "dark" : "light");
  let r, o;
  function a(v) {
    t.value = v.matches;
  }
  function i() {
    ak("matchMedia") && (r = window.matchMedia("(prefers-color-scheme: dark)"), r.addEventListener("change", a), t.value = r.matches);
  }
  function l() {
    const { selector: v = ":root", darkClass: h = "dark" } = e.value, m = document.querySelector(v);
    t.value = m.classList.contains(h);
  }
  function s(v) {
    const { selector: h = ":root", darkClass: m = "dark" } = v;
    if (Xp() && h && m) {
      const p = document.querySelector(h);
      p && (o = new MutationObserver(l), o.observe(p, {
        attributes: !0,
        attributeFilter: ["class"]
      }), t.value = p.classList.contains(m));
    }
  }
  function u() {
    d();
    const v = typeof e.value;
    v === "string" && e.value.toLowerCase() === "system" ? i() : v === "object" ? s(e.value) : t.value = !!e.value;
  }
  const c = Ne(() => e.value, () => u(), {
    immediate: !0
  });
  function d() {
    r && (r.removeEventListener("change", a), r = void 0), o && (o.disconnect(), o = void 0);
  }
  function f() {
    d(), c();
  }
  return ct(() => f()), {
    isDark: t,
    displayMode: n,
    cleanup: f
  };
}
const lk = ["base", "start", "end", "startEnd"], sk = [
  "class",
  "wrapperClass",
  "contentClass",
  "style",
  "contentStyle",
  "color",
  "fillMode"
], uk = { base: {}, start: {}, end: {} };
function Xu(e, t, n = uk) {
  let r = e, o = {};
  t === !0 || Rn(t) ? (r = Rn(t) ? t : r, o = { ...n }) : tr(t) && (Jf(t, lk) ? o = { ...t } : o = {
    base: { ...t },
    start: { ...t },
    end: { ...t }
  });
  const a = ha(
    o,
    { start: o.startEnd, end: o.startEnd },
    n
  );
  return Object.entries(a).forEach(([i, l]) => {
    let s = r;
    l === !0 || Rn(l) ? (s = Rn(l) ? l : s, a[i] = { color: s }) : tr(l) && (Jf(l, sk) ? a[i] = { ...l } : a[i] = {}), ha(a[i], { color: s });
  }), a;
}
class ck {
  constructor() {
    Se(this, "type", "highlight");
  }
  normalizeConfig(t, n) {
    return Xu(t, n, {
      base: { fillMode: "light" },
      start: { fillMode: "solid" },
      end: { fillMode: "solid" }
    });
  }
  prepareRender(t) {
    t.highlights = [], t.content || (t.content = []);
  }
  render({ data: t, onStart: n, onEnd: r }, o) {
    const { key: a, highlight: i } = t;
    if (!i)
      return;
    const { highlights: l } = o, { base: s, start: u, end: c } = i;
    n && r ? l.push({
      ...u,
      key: a,
      wrapperClass: `vc-day-layer vc-day-box-center-center vc-attr vc-${u.color}`,
      class: [`vc-highlight vc-highlight-bg-${u.fillMode}`, u.class],
      contentClass: [
        `vc-attr vc-highlight-content-${u.fillMode} vc-${u.color}`,
        u.contentClass
      ]
    }) : n ? (l.push({
      ...s,
      key: `${a}-base`,
      wrapperClass: `vc-day-layer vc-day-box-right-center vc-attr vc-${s.color}`,
      class: [
        `vc-highlight vc-highlight-base-start vc-highlight-bg-${s.fillMode}`,
        s.class
      ]
    }), l.push({
      ...u,
      key: a,
      wrapperClass: `vc-day-layer vc-day-box-center-center vc-attr vc-${u.color}`,
      class: [`vc-highlight vc-highlight-bg-${u.fillMode}`, u.class],
      contentClass: [
        `vc-attr vc-highlight-content-${u.fillMode} vc-${u.color}`,
        u.contentClass
      ]
    })) : r ? (l.push({
      ...s,
      key: `${a}-base`,
      wrapperClass: `vc-day-layer vc-day-box-left-center vc-attr vc-${s.color}`,
      class: [
        `vc-highlight vc-highlight-base-end vc-highlight-bg-${s.fillMode}`,
        s.class
      ]
    }), l.push({
      ...c,
      key: a,
      wrapperClass: `vc-day-layer vc-day-box-center-center vc-attr vc-${c.color}`,
      class: [`vc-highlight vc-highlight-bg-${c.fillMode}`, c.class],
      contentClass: [
        `vc-attr vc-highlight-content-${c.fillMode} vc-${c.color}`,
        c.contentClass
      ]
    })) : l.push({
      ...s,
      key: `${a}-middle`,
      wrapperClass: `vc-day-layer vc-day-box-center-center vc-attr vc-${s.color}`,
      class: [
        `vc-highlight vc-highlight-base-middle vc-highlight-bg-${s.fillMode}`,
        s.class
      ],
      contentClass: [
        `vc-attr vc-highlight-content-${s.fillMode} vc-${s.color}`,
        s.contentClass
      ]
    });
  }
}
class Zu {
  constructor(t, n) {
    Se(this, "type", ""), Se(this, "collectionType", ""), this.type = t, this.collectionType = n;
  }
  normalizeConfig(t, n) {
    return Xu(t, n);
  }
  prepareRender(t) {
    t[this.collectionType] = [];
  }
  render({ data: t, onStart: n, onEnd: r }, o) {
    const { key: a } = t, i = t[this.type];
    if (!a || !i)
      return;
    const l = o[this.collectionType], { base: s, start: u, end: c } = i;
    n ? l.push({
      ...u,
      key: a,
      class: [
        `vc-${this.type} vc-${this.type}-start vc-${u.color} vc-attr`,
        u.class
      ]
    }) : r ? l.push({
      ...c,
      key: a,
      class: [
        `vc-${this.type} vc-${this.type}-end vc-${c.color} vc-attr`,
        c.class
      ]
    }) : l.push({
      ...s,
      key: a,
      class: [
        `vc-${this.type} vc-${this.type}-base vc-${s.color} vc-attr`,
        s.class
      ]
    });
  }
}
class fk extends Zu {
  constructor() {
    super("content", "content");
  }
  normalizeConfig(t, n) {
    return Xu("base", n);
  }
}
class dk extends Zu {
  constructor() {
    super("dot", "dots");
  }
}
class vk extends Zu {
  constructor() {
    super("bar", "bars");
  }
}
class hk {
  constructor(t) {
    Se(this, "color"), Se(this, "renderers", [
      new fk(),
      new ck(),
      new dk(),
      new vk()
    ]), this.color = t;
  }
  normalizeGlyphs(t) {
    this.renderers.forEach((n) => {
      const r = n.type;
      t[r] != null && (t[r] = n.normalizeConfig(this.color, t[r]));
    });
  }
  prepareRender(t = {}) {
    return this.renderers.forEach((n) => {
      n.prepareRender(t);
    }), t;
  }
  render(t, n) {
    this.renderers.forEach((r) => {
      r.render(t, n);
    });
  }
}
const Zp = Symbol("__vc_base_context__"), Jp = {
  color: {
    type: String,
    default: () => wr("color")
  },
  isDark: {
    type: [Boolean, String, Object],
    default: () => wr("isDark")
  },
  firstDayOfWeek: Number,
  masks: Object,
  locale: [String, Object],
  timezone: String,
  minDate: null,
  maxDate: null,
  disabledDates: null
};
function _p(e) {
  const t = U(() => e.color ?? ""), n = U(() => e.isDark ?? !1), { displayMode: r } = ik(n), o = U(() => new hk(t.value)), a = U(() => {
    if (e.locale instanceof Ni)
      return e.locale;
    const f = tr(e.locale) ? e.locale : {
      id: e.locale,
      firstDayOfWeek: e.firstDayOfWeek,
      masks: e.masks
    };
    return new Ni(f, e.timezone);
  }), i = U(() => a.value.masks), l = U(() => e.minDate), s = U(() => e.maxDate), u = U(() => {
    const f = e.disabledDates ? [...e.disabledDates] : [];
    return l.value != null && f.push({
      start: null,
      end: Yt(a.value.toDate(l.value), -1)
    }), s.value != null && f.push({
      start: Yt(a.value.toDate(s.value), 1),
      end: null
    }), a.value.ranges(f);
  }), c = U(() => new Qp(
    {
      key: "disabled",
      dates: u.value,
      order: 100
    },
    o.value,
    a.value
  )), d = {
    color: t,
    isDark: n,
    displayMode: r,
    theme: o,
    locale: a,
    masks: i,
    minDate: l,
    maxDate: s,
    disabledDates: u,
    disabledAttribute: c
  };
  return lt(Zp, d), d;
}
function pk(e) {
  return ot(Zp, () => _p(e), !0);
}
function $p(e) {
  return `__vc_slot_${e}__`;
}
function eg(e, t = {}) {
  Object.keys(e).forEach((n) => {
    lt($p(t[n] ?? n), e[n]);
  });
}
function tg(e) {
  return ot($p(e), null);
}
const gk = {
  ...Jp,
  view: {
    type: String,
    default: "monthly",
    validator(e) {
      return ["daily", "weekly", "monthly"].includes(e);
    }
  },
  rows: {
    type: Number,
    default: 1
  },
  columns: {
    type: Number,
    default: 1
  },
  step: Number,
  titlePosition: {
    type: String,
    default: () => wr("titlePosition")
  },
  navVisibility: {
    type: String,
    default: () => wr("navVisibility")
  },
  showWeeknumbers: [Boolean, String],
  showIsoWeeknumbers: [Boolean, String],
  expanded: Boolean,
  borderless: Boolean,
  transparent: Boolean,
  initialPage: Object,
  initialPagePosition: { type: Number, default: 1 },
  minPage: Object,
  maxPage: Object,
  transition: String,
  attributes: Array,
  trimWeeks: Boolean,
  disablePageSwipe: Boolean
}, mk = [
  "dayclick",
  "daymouseenter",
  "daymouseleave",
  "dayfocusin",
  "dayfocusout",
  "daykeydown",
  "weeknumberclick",
  "transition-start",
  "transition-end",
  "did-move",
  "update:view",
  "update:pages"
], ng = Symbol("__vc_calendar_context__");
function yk(e, { slots: t, emit: n }) {
  const r = ne(null), o = ne(null), a = ne((/* @__PURE__ */ new Date()).getDate()), i = ne(!1), l = ne(Symbol()), s = ne(Symbol()), u = ne(e.view), c = ne([]), d = ne("");
  let f = null, v = null;
  eg(t);
  const {
    theme: h,
    color: m,
    displayMode: p,
    locale: g,
    masks: y,
    minDate: x,
    maxDate: b,
    disabledAttribute: w,
    disabledDates: D
  } = pk(e), E = U(() => e.rows * e.columns), T = U(() => e.step || E.value), L = U(() => Cp(c.value) ?? null), S = U(() => ro(c.value) ?? null), A = U(
    () => e.minPage || (x.value ? R(x.value) : null)
  ), C = U(
    () => e.maxPage || (b.value ? R(b.value) : null)
  ), k = U(() => e.navVisibility), I = U(() => !!e.showWeeknumbers), N = U(() => !!e.showIsoWeeknumbers), F = U(() => u.value === "monthly"), V = U(() => u.value === "weekly"), G = U(() => u.value === "daily"), z = () => {
    i.value = !0, n("transition-start");
  }, M = () => {
    i.value = !1, n("transition-end"), f && (f.resolve(!0), f = null);
  }, P = (de, W, ue = u.value) => Ip(de, W, ue, g.value), R = (de) => Pp(de, u.value, g.value), q = (de) => {
    !w.value || !_.value || (de.isDisabled = _.value.cellExists(
      w.value.key,
      de.dayIndex
    ));
  }, Y = (de) => {
    de.isFocusable = de.inMonth && de.day === a.value;
  }, Q = (de, W) => {
    for (const ue of de)
      for (const ye of ue.days)
        if (W(ye) === !1)
          return;
  }, B = U(
    () => c.value.reduce((de, W) => (de.push(...W.viewDays), de), [])
  ), H = U(() => {
    const de = [];
    return (e.attributes || []).forEach((W, ue) => {
      !W || !W.dates || de.push(
        new Qp(
          {
            ...W,
            order: W.order || 0
          },
          h.value,
          g.value
        )
      );
    }), w.value && de.push(w.value), de;
  }), Z = U(() => $n(H.value)), _ = U(() => {
    const de = new $T();
    return H.value.forEach((W) => {
      W.ranges.forEach((ue) => {
        de.render(W, ue, B.value);
      });
    }), de;
  }), re = U(() => B.value.reduce((de, W) => (de[W.dayIndex] = { day: W, cells: [] }, de[W.dayIndex].cells.push(..._.value.getCells(W)), de), {})), he = (de, W) => {
    const ue = e.showWeeknumbers || e.showIsoWeeknumbers;
    return ue == null ? "" : O9(ue) ? ue ? "left" : "" : ue.startsWith("right") ? W > 1 ? "right" : ue : de > 1 ? "left" : ue;
  }, be = () => {
    var de, W;
    if (!Z.value)
      return null;
    const ue = H.value.find((et) => et.pinPage) || H.value[0];
    if (!ue || !ue.hasRanges)
      return null;
    const [ye] = ue.ranges, Me = ((de = ye.start) == null ? void 0 : de.date) || ((W = ye.end) == null ? void 0 : W.date);
    return Me ? R(Me) : null;
  }, Oe = () => {
    if (Bn(L.value))
      return L.value;
    const de = be();
    return Bn(de) ? de : R(/* @__PURE__ */ new Date());
  }, Pe = (de, W = {}) => {
    const { view: ue = u.value, position: ye = 1, force: Me } = W, et = ye > 0 ? 1 - ye : -(E.value + ye);
    let bt = P(de, et, ue), wt = P(bt, E.value - 1, ue);
    return Me || (Hs(bt, A.value) ? bt = A.value : Ii(wt, C.value) && (bt = P(C.value, 1 - E.value)), wt = P(bt, E.value - 1)), { fromPage: bt, toPage: wt };
  }, Ve = (de, W, ue = "") => {
    if (ue === "none" || ue === "fade")
      return ue;
    if ((de == null ? void 0 : de.view) !== (W == null ? void 0 : W.view))
      return "fade";
    const ye = Ii(W, de), Me = Hs(W, de);
    return !ye && !Me ? "fade" : ue === "slide-v" ? Me ? "slide-down" : "slide-up" : Me ? "slide-right" : "slide-left";
  }, $e = (de = {}) => new Promise((W, ue) => {
    const { position: ye = 1, force: Me = !1, transition: et } = de, bt = Bn(de.page) ? de.page : Oe(), { fromPage: wt } = Pe(bt, {
      position: ye,
      force: Me
    }), un = [];
    for (let cn = 0; cn < E.value; cn++) {
      const Yn = P(wt, cn), gt = cn + 1, lr = Math.ceil(gt / e.columns), Gt = e.rows - lr + 1, Qn = gt % e.columns || e.columns, Wn = e.columns - Qn + 1, Mo = he(Qn, Wn);
      un.push(
        g.value.getPage({
          ...Yn,
          view: u.value,
          titlePosition: e.titlePosition,
          trimWeeks: e.trimWeeks,
          position: gt,
          row: lr,
          rowFromEnd: Gt,
          column: Qn,
          columnFromEnd: Wn,
          showWeeknumbers: I.value,
          showIsoWeeknumbers: N.value,
          weeknumberPosition: Mo
        })
      );
    }
    d.value = Ve(
      c.value[0],
      un[0],
      et
    ), c.value = un, d.value && d.value !== "none" ? f = {
      resolve: W,
      reject: ue
    } : W(!0);
  }), Je = (de) => {
    const W = L.value ?? R(/* @__PURE__ */ new Date());
    return P(W, de);
  }, oe = (de, W = {}) => {
    const ue = Bn(de) ? de : R(de);
    return Object.assign(
      W,
      Pe(ue, {
        ...W,
        force: !0
      })
    ), ZT(
      W.fromPage,
      W.toPage,
      u.value,
      g.value
    ).map((Me) => KT(Me, A.value, C.value)).some((Me) => Me);
  }, ie = (de, W = {}) => oe(Je(de), W), pe = U(() => ie(-T.value)), me = U(() => ie(T.value)), ce = async (de, W = {}) => !W.force && !oe(de, W) ? !1 : (W.fromPage && !XT(W.fromPage, L.value) && (pa({ id: l.value, hideDelay: 0 }), W.view && (rk("view", 10), u.value = W.view), await $e({
    ...W,
    page: W.fromPage,
    position: 1,
    force: !0
  }), n("did-move", c.value)), !0), ke = (de, W = {}) => ce(Je(de), W), Ce = () => ke(-T.value), De = () => ke(T.value), ft = (de) => {
    const W = F.value ? ".in-month" : "", ue = `.id-${g.value.getDayId(de)}${W}`, ye = `${ue}.vc-focusable, ${ue} .vc-focusable`, Me = r.value;
    if (Me) {
      const et = Me.querySelector(ye);
      if (et)
        return et.focus(), !0;
    }
    return !1;
  }, dt = async (de, W = {}) => ft(de) ? !0 : (await ce(de, W), ft(de)), Ge = (de, W) => {
    a.value = de.day, n("dayclick", de, W);
  }, wn = (de, W) => {
    n("daymouseenter", de, W);
  }, Ye = (de, W) => {
    n("daymouseleave", de, W);
  }, kt = (de, W) => {
    a.value = de.day, o.value = de, de.isFocused = !0, n("dayfocusin", de, W);
  }, zn = (de, W) => {
    o.value = null, de.isFocused = !1, n("dayfocusout", de, W);
  }, ir = (de, W) => {
    n("daykeydown", de, W);
    const ue = de.noonDate;
    let ye = null;
    switch (W.key) {
      case "ArrowLeft": {
        ye = Yt(ue, -1);
        break;
      }
      case "ArrowRight": {
        ye = Yt(ue, 1);
        break;
      }
      case "ArrowUp": {
        ye = Yt(ue, -7);
        break;
      }
      case "ArrowDown": {
        ye = Yt(ue, 7);
        break;
      }
      case "Home": {
        ye = Yt(ue, -de.weekdayPosition + 1);
        break;
      }
      case "End": {
        ye = Yt(ue, de.weekdayPositionFromEnd);
        break;
      }
      case "PageUp": {
        W.altKey ? ye = ld(ue, -1) : ye = Pi(ue, -1);
        break;
      }
      case "PageDown": {
        W.altKey ? ye = ld(ue, 1) : ye = Pi(ue, 1);
        break;
      }
    }
    ye && (W.preventDefault(), dt(ye).catch());
  }, Un = (de) => {
    const W = o.value;
    W != null && ir(W, de);
  }, xn = (de, W) => {
    n("weeknumberclick", de, W);
  };
  $e({
    page: e.initialPage,
    position: e.initialPagePosition
  }), We(() => {
    !e.disablePageSwipe && r.value && (v = nk(
      r.value,
      ({ toLeft: de = !1, toRight: W = !1 }) => {
        de ? De() : W && Ce();
      },
      wr("touch")
    ));
  }), ct(() => {
    c.value = [], v && v();
  }), Ne(
    () => g.value,
    () => {
      $e();
    }
  ), Ne(
    () => E.value,
    () => $e()
  ), Ne(
    () => e.view,
    () => u.value = e.view
  ), Ne(
    () => u.value,
    () => {
      ok("view", () => {
        $e();
      }), n("update:view", u.value);
    }
  ), Ne(
    () => a.value,
    () => {
      Q(c.value, (de) => Y(de));
    }
  ), pt(() => {
    n("update:pages", c.value), Q(c.value, (de) => {
      q(de), Y(de);
    });
  });
  const Hn = {
    emit: n,
    containerRef: r,
    focusedDay: o,
    inTransition: i,
    navPopoverId: l,
    dayPopoverId: s,
    view: u,
    pages: c,
    transitionName: d,
    theme: h,
    color: m,
    displayMode: p,
    locale: g,
    masks: y,
    attributes: H,
    disabledAttribute: w,
    disabledDates: D,
    attributeContext: _,
    days: B,
    dayCells: re,
    count: E,
    step: T,
    firstPage: L,
    lastPage: S,
    canMovePrev: pe,
    canMoveNext: me,
    minPage: A,
    maxPage: C,
    isMonthly: F,
    isWeekly: V,
    isDaily: G,
    navVisibility: k,
    showWeeknumbers: I,
    showIsoWeeknumbers: N,
    getDateAddress: R,
    canMove: oe,
    canMoveBy: ie,
    move: ce,
    moveBy: ke,
    movePrev: Ce,
    moveNext: De,
    onTransitionBeforeEnter: z,
    onTransitionAfterEnter: M,
    tryFocusDate: ft,
    focusDate: dt,
    onKeydown: Un,
    onDayKeydown: ir,
    onDayClick: Ge,
    onDayMouseenter: wn,
    onDayMouseleave: Ye,
    onDayFocusin: kt,
    onDayFocusout: zn,
    onWeeknumberClick: xn
  };
  return lt(ng, Hn), Hn;
}
function Gr() {
  const e = ot(ng);
  if (e)
    return e;
  throw new Error(
    "Calendar context missing. Please verify this component is nested within a valid context provider."
  );
}
const bk = se({
  inheritAttrs: !1,
  emits: ["before-show", "after-show", "before-hide", "after-hide"],
  props: {
    id: { type: [Number, String, Symbol], required: !0 },
    showDelay: { type: Number, default: 0 },
    hideDelay: { type: Number, default: 110 },
    boundarySelector: { type: String }
  },
  setup(e, { emit: t }) {
    let n;
    const r = ne();
    let o = null, a = null;
    const i = wo({
      isVisible: !1,
      target: null,
      data: null,
      transition: "slide-fade",
      placement: "bottom",
      direction: "",
      positionFixed: !1,
      modifiers: [],
      isInteractive: !0,
      visibility: "click",
      isHovered: !1,
      isFocused: !1,
      autoHide: !1,
      force: !1
    });
    function l(M) {
      M && (i.direction = M.split("-")[0]);
    }
    function s({ placement: M, options: P }) {
      l(M || (P == null ? void 0 : P.placement));
    }
    const u = U(() => ({
      placement: i.placement,
      strategy: i.positionFixed ? "fixed" : "absolute",
      boundary: "",
      modifiers: [
        {
          name: "onUpdate",
          enabled: !0,
          phase: "afterWrite",
          fn: s
        },
        ...i.modifiers || []
      ],
      onFirstUpdate: s
    })), c = U(() => {
      const M = i.direction === "left" || i.direction === "right";
      let P = "";
      if (i.placement) {
        const R = i.placement.split("-");
        R.length > 1 && (P = R[1]);
      }
      return ["start", "top", "left"].includes(P) ? M ? "top" : "left" : ["end", "bottom", "right"].includes(P) ? M ? "bottom" : "right" : M ? "middle" : "center";
    });
    function d() {
      a && (a.destroy(), a = null);
    }
    function f() {
      rt(() => {
        const M = Si(i.target);
        !M || !r.value || (a && a.state.elements.reference !== M && d(), a ? a.update() : a = hx(
          M,
          r.value,
          u.value
        ));
      });
    }
    function v(M) {
      Object.assign(i, Sp(M, "force"));
    }
    function h(M, P) {
      clearTimeout(n), M > 0 ? n = setTimeout(P, M) : P();
    }
    function m(M) {
      return !M || !a ? !1 : Si(M) === a.state.elements.reference;
    }
    async function p(M = {}) {
      i.force || (M.force && (i.force = !0), h(M.showDelay ?? e.showDelay, () => {
        i.isVisible && (i.force = !1), v({
          ...M,
          isVisible: !0
        }), f();
      }));
    }
    function g(M = {}) {
      a && (M.target && !m(M.target) || i.force || (M.force && (i.force = !0), h(M.hideDelay ?? e.hideDelay, () => {
        i.isVisible || (i.force = !1), i.isVisible = !1;
      })));
    }
    function y(M = {}) {
      M.target != null && (i.isVisible && m(M.target) ? g(M) : p(M));
    }
    function x(M) {
      if (!a)
        return;
      const P = a.state.elements.reference;
      if (!r.value || !P)
        return;
      const R = M.target;
      di(r.value, R) || di(P, R) || g({ force: !0 });
    }
    function b(M) {
      (M.key === "Esc" || M.key === "Escape") && g();
    }
    function w({ detail: M }) {
      !M.id || M.id !== e.id || p(M);
    }
    function D({ detail: M }) {
      !M.id || M.id !== e.id || g(M);
    }
    function E({ detail: M }) {
      !M.id || M.id !== e.id || y(M);
    }
    function T() {
      pr(document, "keydown", b), pr(document, "click", x), pr(document, "show-popover", w), pr(document, "hide-popover", D), pr(document, "toggle-popover", E);
    }
    function L() {
      hr(document, "keydown", b), hr(document, "click", x), hr(document, "show-popover", w), hr(document, "hide-popover", D), hr(document, "toggle-popover", E);
    }
    function S(M) {
      t("before-show", M);
    }
    function A(M) {
      i.force = !1, t("after-show", M);
    }
    function C(M) {
      t("before-hide", M);
    }
    function k(M) {
      i.force = !1, d(), t("after-hide", M);
    }
    function I(M) {
      M.stopPropagation();
    }
    function N() {
      i.isHovered = !0, i.isInteractive && ["hover", "hover-focus"].includes(i.visibility) && p();
    }
    function F() {
      if (i.isHovered = !1, !a)
        return;
      const M = a.state.elements.reference;
      i.autoHide && !i.isFocused && (!M || M !== document.activeElement) && ["hover", "hover-focus"].includes(i.visibility) && g();
    }
    function V() {
      i.isFocused = !0, i.isInteractive && ["focus", "hover-focus"].includes(i.visibility) && p();
    }
    function G(M) {
      ["focus", "hover-focus"].includes(i.visibility) && (!M.relatedTarget || !di(r.value, M.relatedTarget)) && (i.isFocused = !1, !i.isHovered && i.autoHide && g());
    }
    function z() {
      o != null && (o.disconnect(), o = null);
    }
    return Ne(
      () => r.value,
      (M) => {
        z(), M && (o = new ResizeObserver(() => {
          a && a.update();
        }), o.observe(M));
      }
    ), Ne(() => i.placement, l, {
      immediate: !0
    }), We(() => {
      T();
    }), ct(() => {
      d(), z(), L();
    }), {
      ...pg(i),
      popoverRef: r,
      alignment: c,
      hide: g,
      setupPopper: f,
      beforeEnter: S,
      afterEnter: A,
      beforeLeave: C,
      afterLeave: k,
      onClick: I,
      onMouseOver: N,
      onMouseLeave: F,
      onFocusIn: V,
      onFocusOut: G
    };
  }
}), Er = (e, t) => {
  const n = e.__vccOpts || e;
  for (const [r, o] of t)
    n[r] = o;
  return n;
};
function wk(e, t, n, r, o, a) {
  return J(), ve("div", {
    class: xe(["vc-popover-content-wrapper", { "is-interactive": e.isInteractive }]),
    ref: "popoverRef",
    onClick: t[0] || (t[0] = (...i) => e.onClick && e.onClick(...i)),
    onMouseover: t[1] || (t[1] = (...i) => e.onMouseOver && e.onMouseOver(...i)),
    onMouseleave: t[2] || (t[2] = (...i) => e.onMouseLeave && e.onMouseLeave(...i)),
    onFocusin: t[3] || (t[3] = (...i) => e.onFocusIn && e.onFocusIn(...i)),
    onFocusout: t[4] || (t[4] = (...i) => e.onFocusOut && e.onFocusOut(...i))
  }, [
    $(xr, {
      name: `vc-${e.transition}`,
      appear: "",
      onBeforeEnter: e.beforeEnter,
      onAfterEnter: e.afterEnter,
      onBeforeLeave: e.beforeLeave,
      onAfterLeave: e.afterLeave
    }, {
      default: ee(() => [
        e.isVisible ? (J(), ve("div", Ar({
          key: 0,
          tabindex: "-1",
          class: `vc-popover-content direction-${e.direction}`
        }, e.$attrs), [
          qe(e.$slots, "default", {
            direction: e.direction,
            alignment: e.alignment,
            data: e.data,
            hide: e.hide
          }, () => [
            je(Re(e.data), 1)
          ]),
          fe("span", {
            class: xe([
              "vc-popover-caret",
              `direction-${e.direction}`,
              `align-${e.alignment}`
            ])
          }, null, 2)
        ], 16)) : Ie("", !0)
      ]),
      _: 3
    }, 8, ["name", "onBeforeEnter", "onAfterEnter", "onBeforeLeave", "onAfterLeave"])
  ], 34);
}
const Ju = /* @__PURE__ */ Er(bk, [["render", wk]]), xk = { class: "vc-day-popover-row" }, Ak = {
  key: 0,
  class: "vc-day-popover-row-indicator"
}, Ok = { class: "vc-day-popover-row-label" }, Ck = /* @__PURE__ */ se({
  __name: "PopoverRow",
  props: {
    attribute: null
  },
  setup(e) {
    const t = e, n = U(() => {
      const { content: r, highlight: o, dot: a, bar: i, popover: l } = t.attribute;
      return l && l.hideIndicator ? null : r ? {
        class: `vc-bar vc-day-popover-row-bar vc-attr vc-${r.base.color}`
      } : o ? {
        class: `vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${o.base.color}`
      } : a ? {
        class: `vc-dot vc-attr vc-${a.base.color}`
      } : i ? {
        class: `vc-bar vc-day-popover-row-bar vc-attr vc-${i.base.color}`
      } : null;
    });
    return (r, o) => (J(), ve("div", xk, [
      X(n) ? (J(), ve("div", Ak, [
        fe("span", {
          class: xe(X(n).class)
        }, null, 2)
      ])) : Ie("", !0),
      fe("div", Ok, [
        qe(r.$slots, "default", {}, () => [
          je(Re(e.attribute.popover ? e.attribute.popover.label : "No content provided"), 1)
        ])
      ])
    ]));
  }
}), Ek = {
  inheritAttrs: !1
}, dn = /* @__PURE__ */ se({
  ...Ek,
  __name: "CalendarSlot",
  props: {
    name: null
  },
  setup(e) {
    const n = tg(e.name);
    return (r, o) => X(n) ? (J(), ge(Li(X(n)), oa(Ar({ key: 0 }, r.$attrs)), null, 16)) : qe(r.$slots, "default", { key: 1 });
  }
}), Sk = { class: "vc-day-popover-container" }, Tk = {
  key: 0,
  class: "vc-day-popover-header"
}, Dk = /* @__PURE__ */ se({
  __name: "CalendarDayPopover",
  setup(e) {
    const { dayPopoverId: t, displayMode: n, color: r, masks: o, locale: a } = Gr();
    function i(s, u) {
      return a.value.formatDate(s, u);
    }
    function l(s) {
      return a.value.formatDate(s.date, o.value.dayPopover);
    }
    return (s, u) => (J(), ge(Ju, {
      id: X(t),
      class: xe([`vc-${X(r)}`, `vc-${X(n)}`])
    }, {
      default: ee(({ data: { day: c, attributes: d }, hide: f }) => [
        $(dn, {
          name: "day-popover",
          day: c,
          "day-title": l(c),
          attributes: d,
          format: i,
          masks: X(o),
          hide: f
        }, {
          default: ee(() => [
            fe("div", Sk, [
              X(o).dayPopover ? (J(), ve("div", Tk, Re(l(c)), 1)) : Ie("", !0),
              (J(!0), ve(He, null, mt(d, (v) => (J(), ge(Ck, {
                key: v.key,
                attribute: v
              }, null, 8, ["attribute"]))), 128))
            ])
          ]),
          _: 2
        }, 1032, ["day", "day-title", "attributes", "masks", "hide"])
      ]),
      _: 1
    }, 8, ["id", "class"]));
  }
}), kk = {}, Pk = {
  "stroke-linecap": "round",
  "stroke-linejoin": "round",
  viewBox: "0 0 24 24"
}, Ik = /* @__PURE__ */ fe("polyline", { points: "9 18 15 12 9 6" }, null, -1), Nk = [
  Ik
];
function Mk(e, t) {
  return J(), ve("svg", Pk, Nk);
}
const Lk = /* @__PURE__ */ Er(kk, [["render", Mk]]), Rk = {}, Bk = {
  "stroke-linecap": "round",
  "stroke-linejoin": "round",
  viewBox: "0 0 24 24"
}, Fk = /* @__PURE__ */ fe("polyline", { points: "15 18 9 12 15 6" }, null, -1), jk = [
  Fk
];
function qk(e, t) {
  return J(), ve("svg", Bk, jk);
}
const Vk = /* @__PURE__ */ Er(Rk, [["render", qk]]), zk = {}, Uk = {
  "stroke-linecap": "round",
  "stroke-linejoin": "round",
  viewBox: "0 0 24 24"
}, Hk = /* @__PURE__ */ fe("polyline", { points: "6 9 12 15 18 9" }, null, -1), Yk = [
  Hk
];
function Qk(e, t) {
  return J(), ve("svg", Uk, Yk);
}
const Wk = /* @__PURE__ */ Er(zk, [["render", Qk]]), Gk = {}, Kk = {
  fill: "none",
  "stroke-linecap": "round",
  "stroke-linejoin": "round",
  "stroke-width": "2",
  viewBox: "0 0 24 24"
}, Xk = /* @__PURE__ */ fe("path", { d: "M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" }, null, -1), Zk = [
  Xk
];
function Jk(e, t) {
  return J(), ve("svg", Kk, Zk);
}
const _k = /* @__PURE__ */ Er(Gk, [["render", Jk]]), $k = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  IconChevronDown: Wk,
  IconChevronLeft: Vk,
  IconChevronRight: Lk,
  IconClock: _k
}, Symbol.toStringTag, { value: "Module" })), bo = /* @__PURE__ */ se({
  __name: "BaseIcon",
  props: {
    name: { type: String, required: !0 },
    width: { type: String },
    height: { type: String },
    size: { type: String, default: "26" },
    viewBox: { type: String }
  },
  setup(e) {
    const t = e, n = U(() => t.width || t.size), r = U(() => t.height || t.size), o = U(() => $k[`Icon${t.name}`]);
    return (a, i) => (J(), ge(Li(X(o)), {
      width: X(n),
      height: X(r),
      class: "vc-base-icon"
    }, null, 8, ["width", "height"]));
  }
}), eP = ["disabled"], tP = {
  key: 1,
  class: "vc-title-wrapper"
}, nP = {
  type: "button",
  class: "vc-title"
}, rP = ["disabled"], rg = /* @__PURE__ */ se({
  __name: "CalendarHeader",
  props: {
    page: null,
    layout: null,
    isLg: { type: Boolean },
    isXl: { type: Boolean },
    is2xl: { type: Boolean },
    hideTitle: { type: Boolean },
    hideArrows: { type: Boolean }
  },
  setup(e) {
    const t = e, {
      navPopoverId: n,
      navVisibility: r,
      canMovePrev: o,
      movePrev: a,
      canMoveNext: i,
      moveNext: l
    } = Gr(), s = U(() => {
      switch (t.page.titlePosition) {
        case "left":
          return "bottom-start";
        case "right":
          return "bottom-end";
        default:
          return "bottom";
      }
    }), u = U(() => {
      const { page: m } = t;
      return {
        id: n.value,
        visibility: r.value,
        placement: s.value,
        modifiers: [{ name: "flip", options: { fallbackPlacements: ["bottom"] } }],
        data: { page: m },
        isInteractive: !0
      };
    }), c = U(() => t.page.titlePosition.includes("left")), d = U(() => t.page.titlePosition.includes("right")), f = U(() => t.layout ? t.layout : c.value ? "tu-pn" : d.value ? "pn-tu" : "p-tu-n;"), v = U(() => ({
      prev: f.value.includes("p") && !t.hideArrows,
      title: f.value.includes("t") && !t.hideTitle,
      next: f.value.includes("n") && !t.hideArrows
    })), h = U(() => ({ gridTemplateColumns: f.value.split("").map((p) => {
      switch (p) {
        case "p":
          return "[prev] auto";
        case "n":
          return "[next] auto";
        case "t":
          return "[title] auto";
        case "-":
          return "1fr";
        default:
          return "";
      }
    }).join(" ") }));
    return (m, p) => (J(), ve("div", {
      class: xe(["vc-header", { "is-lg": e.isLg, "is-xl": e.isXl, "is-2xl": e.is2xl }]),
      style: vn(X(h))
    }, [
      X(v).prev ? (J(), ve("button", {
        key: 0,
        type: "button",
        class: "vc-arrow vc-prev vc-focus",
        disabled: !X(o),
        onClick: p[0] || (p[0] = //@ts-ignore
        (...g) => X(a) && X(a)(...g)),
        onKeydown: p[1] || (p[1] = nc(
          //@ts-ignore
          (...g) => X(a) && X(a)(...g),
          ["space", "enter"]
        ))
      }, [
        $(dn, {
          name: "header-prev-button",
          disabled: !X(o)
        }, {
          default: ee(() => [
            $(bo, {
              name: "ChevronLeft",
              size: "24"
            })
          ]),
          _: 1
        }, 8, ["disabled"])
      ], 40, eP)) : Ie("", !0),
      X(v).title ? (J(), ve("div", tP, [
        $(dn, { name: "header-title-wrapper" }, {
          default: ee(() => [
            bn((J(), ve("button", nP, [
              $(dn, {
                name: "header-title",
                title: e.page.title
              }, {
                default: ee(() => [
                  fe("span", null, Re(e.page.title), 1)
                ]),
                _: 1
              }, 8, ["title"])
            ])), [
              [X(Kp), X(u)]
            ])
          ]),
          _: 1
        })
      ])) : Ie("", !0),
      X(v).next ? (J(), ve("button", {
        key: 2,
        type: "button",
        class: "vc-arrow vc-next vc-focus",
        disabled: !X(i),
        onClick: p[2] || (p[2] = //@ts-ignore
        (...g) => X(l) && X(l)(...g)),
        onKeydown: p[3] || (p[3] = nc(
          //@ts-ignore
          (...g) => X(l) && X(l)(...g),
          ["space", "enter"]
        ))
      }, [
        $(dn, {
          name: "header-next-button",
          disabled: !X(i)
        }, {
          default: ee(() => [
            $(bo, {
              name: "ChevronRight",
              size: "24"
            })
          ]),
          _: 1
        }, 8, ["disabled"])
      ], 40, rP)) : Ie("", !0)
    ], 6));
  }
}), og = Symbol("__vc_page_context__");
function oP(e) {
  const { locale: t, getDateAddress: n, canMove: r } = Gr();
  function o(l, s) {
    const { month: u, year: c } = n(/* @__PURE__ */ new Date());
    return Yp().map((d, f) => {
      const v = f + 1;
      return {
        month: v,
        year: l,
        id: GT(v, l),
        label: t.value.formatDate(d, s),
        ariaLabel: t.value.formatDate(d, "MMMM"),
        isActive: v === e.value.month && l === e.value.year,
        isCurrent: v === u && l === c,
        isDisabled: !r(
          { month: v, year: l },
          { position: e.value.position }
        )
      };
    });
  }
  function a(l, s) {
    const { year: u } = n(/* @__PURE__ */ new Date()), { position: c } = e.value, d = [];
    for (let f = l; f <= s; f += 1) {
      const v = [...Array(12).keys()].some(
        (h) => r({ month: h + 1, year: f }, { position: c })
      );
      d.push({
        year: f,
        id: f.toString(),
        label: f.toString(),
        ariaLabel: f.toString(),
        isActive: f === e.value.year,
        isCurrent: f === u,
        isDisabled: !v
      });
    }
    return d;
  }
  const i = { page: e, getMonthItems: o, getYearItems: a };
  return lt(og, i), i;
}
function ag() {
  const e = ot(og);
  if (e)
    return e;
  throw new Error(
    "Page context missing. Please verify this component is nested within a valid context provider."
  );
}
const aP = { class: "vc-nav-header" }, iP = ["disabled"], lP = ["disabled"], sP = { class: "vc-nav-items" }, uP = ["data-id", "aria-label", "disabled", "onClick", "onKeydown"], cP = /* @__PURE__ */ se({
  __name: "CalendarNav",
  setup(e) {
    const { masks: t, move: n } = Gr(), { page: r, getMonthItems: o, getYearItems: a } = ag(), i = ne(!0), l = 12, s = ne(r.value.year), u = ne(f(r.value.year)), c = ne(null);
    function d() {
      setTimeout(() => {
        if (c.value == null)
          return;
        const R = c.value.querySelector(
          ".vc-nav-item:not(:disabled)"
        );
        R && R.focus();
      }, 10);
    }
    function f(R) {
      return Math.floor(R / l);
    }
    function v() {
      i.value = !i.value;
    }
    function h(R) {
      return R * l;
    }
    function m(R) {
      return l * (R + 1) - 1;
    }
    function p() {
      V.value && (i.value && y(), b());
    }
    function g() {
      G.value && (i.value && x(), w());
    }
    function y() {
      s.value--;
    }
    function x() {
      s.value++;
    }
    function b() {
      u.value--;
    }
    function w() {
      u.value++;
    }
    const D = U(
      () => o(s.value, t.value.navMonths).map((R) => ({
        ...R,
        click: () => n(
          { month: R.month, year: R.year },
          { position: r.value.position }
        )
      }))
    ), E = U(
      () => o(s.value - 1, t.value.navMonths)
    ), T = U(
      () => E.value.some((R) => !R.isDisabled)
    ), L = U(
      () => o(s.value + 1, t.value.navMonths)
    ), S = U(
      () => L.value.some((R) => !R.isDisabled)
    ), A = U(
      () => a(
        h(u.value),
        m(u.value)
      ).map((R) => ({
        ...R,
        click: () => {
          s.value = R.year, i.value = !0, d();
        }
      }))
    ), C = U(
      () => a(
        h(u.value - 1),
        m(u.value - 1)
      )
    ), k = U(
      () => C.value.some((R) => !R.isDisabled)
    ), I = U(
      () => a(
        h(u.value + 1),
        m(u.value + 1)
      )
    ), N = U(
      () => I.value.some((R) => !R.isDisabled)
    ), F = U(
      () => i.value ? D.value : A.value
    ), V = U(
      () => i.value ? T.value : k.value
    ), G = U(
      () => i.value ? S.value : N.value
    ), z = U(() => Cp(A.value.map((R) => R.year))), M = U(() => ro(A.value.map((R) => R.year))), P = U(() => i.value ? s.value : `${z.value} - ${M.value}`);
    return pt(() => {
      s.value = r.value.year, d();
    }), Ne(
      () => s.value,
      (R) => u.value = f(R)
    ), We(() => d()), (R, q) => (J(), ve("div", {
      class: "vc-nav-container",
      ref_key: "navContainer",
      ref: c
    }, [
      fe("div", aP, [
        fe("button", {
          type: "button",
          class: "vc-nav-arrow is-left vc-focus",
          disabled: !X(V),
          onClick: p,
          onKeydown: q[0] || (q[0] = (Y) => X(oi)(Y, p))
        }, [
          $(dn, {
            name: "nav-prev-button",
            move: p,
            disabled: !X(V)
          }, {
            default: ee(() => [
              $(bo, {
                name: "ChevronLeft",
                width: "22px",
                height: "24px"
              })
            ]),
            _: 1
          }, 8, ["disabled"])
        ], 40, iP),
        fe("button", {
          type: "button",
          class: "vc-nav-title vc-focus",
          onClick: v,
          onKeydown: q[1] || (q[1] = (Y) => X(oi)(Y, v))
        }, Re(X(P)), 33),
        fe("button", {
          type: "button",
          class: "vc-nav-arrow is-right vc-focus",
          disabled: !X(G),
          onClick: g,
          onKeydown: q[2] || (q[2] = (Y) => X(oi)(Y, g))
        }, [
          $(dn, {
            name: "nav-next-button",
            move: g,
            disabled: !X(G)
          }, {
            default: ee(() => [
              $(bo, {
                name: "ChevronRight",
                width: "22px",
                height: "24px"
              })
            ]),
            _: 1
          }, 8, ["disabled"])
        ], 40, lP)
      ]),
      fe("div", sP, [
        (J(!0), ve(He, null, mt(X(F), (Y) => (J(), ve("button", {
          key: Y.label,
          type: "button",
          "data-id": Y.id,
          "aria-label": Y.ariaLabel,
          class: xe(["vc-nav-item vc-focus", [
            Y.isActive ? "is-active" : Y.isCurrent ? "is-current" : ""
          ]]),
          disabled: Y.isDisabled,
          onClick: Y.click,
          onKeydown: (Q) => X(oi)(Q, Y.click)
        }, Re(Y.label), 43, uP))), 128))
      ])
    ], 512));
  }
}), ig = /* @__PURE__ */ se({
  __name: "CalendarPageProvider",
  props: {
    page: null
  },
  setup(e) {
    return oP(ra(e, "page")), (n, r) => qe(n.$slots, "default");
  }
}), fP = /* @__PURE__ */ se({
  __name: "CalendarNavPopover",
  setup(e) {
    const { navPopoverId: t, color: n, displayMode: r } = Gr();
    return (o, a) => (J(), ge(Ju, {
      id: X(t),
      class: xe(["vc-nav-popover-container", `vc-${X(n)}`, `vc-${X(r)}`])
    }, {
      default: ee(({ data: i }) => [
        $(ig, {
          page: i.page
        }, {
          default: ee(() => [
            $(dn, { name: "nav" }, {
              default: ee(() => [
                $(cP)
              ]),
              _: 1
            })
          ]),
          _: 2
        }, 1032, ["page"])
      ]),
      _: 1
    }, 8, ["id", "class"]));
  }
}), dP = se({
  directives: { popover: Kp },
  components: { CalendarSlot: dn },
  props: {
    day: { type: Object, required: !0 }
  },
  setup(e) {
    const {
      locale: t,
      theme: n,
      attributeContext: r,
      dayPopoverId: o,
      onDayClick: a,
      onDayMouseenter: i,
      onDayMouseleave: l,
      onDayFocusin: s,
      onDayFocusout: u,
      onDayKeydown: c
    } = Gr(), d = U(() => e.day), f = U(() => r.value.getCells(d.value)), v = U(
      () => f.value.map((N) => N.data)
    ), h = U(() => ({
      ...d.value,
      attributes: v.value,
      attributeCells: f.value
    }));
    function m({ data: N }, { popovers: F }) {
      const { key: V, customData: G, popover: z } = N;
      if (!z)
        return;
      const M = Hf(
        {
          key: V,
          customData: G,
          attribute: N
        },
        { ...z },
        {
          visibility: z.label ? "hover" : "click",
          placement: "bottom",
          isInteractive: !z.label
        }
      );
      F.splice(0, 0, M);
    }
    const p = U(() => {
      const N = {
        ...n.value.prepareRender({}),
        popovers: []
      };
      return f.value.forEach((F) => {
        n.value.render(F, N), m(F, N);
      }), N;
    }), g = U(() => p.value.highlights), y = U(() => !!$n(g.value)), x = U(() => p.value.content), b = U(() => p.value.dots), w = U(() => !!$n(b.value)), D = U(() => p.value.bars), E = U(() => !!$n(D.value)), T = U(() => p.value.popovers), L = U(
      () => T.value.map((N) => N.attribute)
    ), S = tg("day-content"), A = U(() => [
      "vc-day",
      ...d.value.classes,
      { "vc-day-box-center-center": !S },
      { "is-not-in-month": !e.day.inMonth }
    ]), C = U(() => {
      let N;
      d.value.isFocusable ? N = "0" : N = "-1";
      const F = [
        "vc-day-content vc-focusable vc-focus vc-attr",
        { "vc-disabled": d.value.isDisabled },
        Rr(ro(g.value), "contentClass"),
        Rr(ro(x.value), "class") || ""
      ], V = {
        ...Rr(ro(g.value), "contentStyle"),
        ...Rr(ro(x.value), "style")
      };
      return {
        class: F,
        style: V,
        tabindex: N,
        "aria-label": d.value.ariaLabel,
        "aria-disabled": !!d.value.isDisabled,
        role: "button"
      };
    }), k = U(() => ({
      click(N) {
        a(h.value, N);
      },
      mouseenter(N) {
        i(h.value, N);
      },
      mouseleave(N) {
        l(h.value, N);
      },
      focusin(N) {
        s(h.value, N);
      },
      focusout(N) {
        u(h.value, N);
      },
      keydown(N) {
        c(h.value, N);
      }
    })), I = U(() => $n(T.value) ? Hf(
      {
        id: o.value,
        data: { day: d, attributes: L.value }
      },
      ...T.value
    ) : null);
    return {
      attributes: v,
      attributeCells: f,
      bars: D,
      dayClasses: A,
      dayContentProps: C,
      dayContentEvents: k,
      dayPopover: I,
      glyphs: p,
      dots: b,
      hasDots: w,
      hasBars: E,
      highlights: g,
      hasHighlights: y,
      locale: t,
      popovers: T
    };
  }
}), vP = {
  key: 0,
  class: "vc-highlights vc-day-layer"
}, hP = {
  key: 1,
  class: "vc-day-layer vc-day-box-center-bottom"
}, pP = { class: "vc-dots" }, gP = {
  key: 2,
  class: "vc-day-layer vc-day-box-center-bottom"
}, mP = { class: "vc-bars" };
function yP(e, t, n, r, o, a) {
  const i = Jn("CalendarSlot"), l = gg("popover");
  return J(), ve("div", {
    class: xe(e.dayClasses)
  }, [
    e.hasHighlights ? (J(), ve("div", vP, [
      (J(!0), ve(He, null, mt(e.highlights, ({ key: s, wrapperClass: u, class: c, style: d }) => (J(), ve("div", {
        key: s,
        class: xe(u)
      }, [
        fe("div", {
          class: xe(c),
          style: vn(d)
        }, null, 6)
      ], 2))), 128))
    ])) : Ie("", !0),
    $(i, {
      name: "day-content",
      day: e.day,
      attributes: e.attributes,
      "attribute-cells": e.attributeCells,
      dayProps: e.dayContentProps,
      dayEvents: e.dayContentEvents,
      locale: e.locale
    }, {
      default: ee(() => [
        bn((J(), ve("div", Ar(e.dayContentProps, mg(e.dayContentEvents, !0)), [
          je(Re(e.day.label), 1)
        ], 16)), [
          [l, e.dayPopover]
        ])
      ]),
      _: 1
    }, 8, ["day", "attributes", "attribute-cells", "dayProps", "dayEvents", "locale"]),
    e.hasDots ? (J(), ve("div", hP, [
      fe("div", pP, [
        (J(!0), ve(He, null, mt(e.dots, ({ key: s, class: u, style: c }) => (J(), ve("span", {
          key: s,
          class: xe(u),
          style: vn(c)
        }, null, 6))), 128))
      ])
    ])) : Ie("", !0),
    e.hasBars ? (J(), ve("div", gP, [
      fe("div", mP, [
        (J(!0), ve(He, null, mt(e.bars, ({ key: s, class: u, style: c }) => (J(), ve("span", {
          key: s,
          class: xe(u),
          style: vn(c)
        }, null, 6))), 128))
      ])
    ])) : Ie("", !0)
  ], 2);
}
const bP = /* @__PURE__ */ Er(dP, [["render", yP]]), wP = { class: "vc-weekdays" }, xP = ["onClick"], AP = {
  inheritAttrs: !1
}, OP = /* @__PURE__ */ se({
  ...AP,
  __name: "CalendarPage",
  setup(e) {
    const { page: t } = ag(), { onWeeknumberClick: n } = Gr();
    return (r, o) => (J(), ve("div", {
      class: xe([
        "vc-pane",
        `row-${X(t).row}`,
        `row-from-end-${X(t).rowFromEnd}`,
        `column-${X(t).column}`,
        `column-from-end-${X(t).columnFromEnd}`
      ]),
      ref: "pane"
    }, [
      $(rg, {
        page: X(t),
        "is-lg": "",
        "hide-arrows": ""
      }, null, 8, ["page"]),
      fe("div", {
        class: xe(["vc-weeks", {
          [`vc-show-weeknumbers-${X(t).weeknumberPosition}`]: X(t).weeknumberPosition
        }])
      }, [
        fe("div", wP, [
          (J(!0), ve(He, null, mt(X(t).weekdays, ({ weekday: a, label: i }, l) => (J(), ve("div", {
            key: l,
            class: xe(`vc-weekday vc-weekday-${a}`)
          }, Re(i), 3))), 128))
        ]),
        (J(!0), ve(He, null, mt(X(t).viewWeeks, (a) => (J(), ve("div", {
          key: `weeknumber-${a.weeknumber}`,
          class: "vc-week"
        }, [
          X(t).weeknumberPosition ? (J(), ve("div", {
            key: 0,
            class: xe(["vc-weeknumber", `is-${X(t).weeknumberPosition}`])
          }, [
            fe("span", {
              class: xe(["vc-weeknumber-content"]),
              onClick: (i) => X(n)(a, i)
            }, Re(a.weeknumberDisplay), 9, xP)
          ], 2)) : Ie("", !0),
          (J(!0), ve(He, null, mt(a.days, (i) => (J(), ge(bP, {
            key: i.id,
            day: i
          }, null, 8, ["day"]))), 128))
        ]))), 128))
      ], 2)
    ], 2));
  }
}), CP = se({
  components: {
    CalendarHeader: rg,
    CalendarPage: OP,
    CalendarNavPopover: fP,
    CalendarDayPopover: Dk,
    CalendarPageProvider: ig,
    CalendarSlot: dn
  },
  props: gk,
  emit: mk,
  setup(e, { emit: t, slots: n }) {
    return yk(e, { emit: t, slots: n });
  }
}), EP = { class: "vc-pane-header-wrapper" };
function SP(e, t, n, r, o, a) {
  const i = Jn("CalendarHeader"), l = Jn("CalendarPage"), s = Jn("CalendarSlot"), u = Jn("CalendarPageProvider"), c = Jn("CalendarDayPopover"), d = Jn("CalendarNavPopover");
  return J(), ve(He, null, [
    fe("div", Ar({ "data-helptext": "Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year" }, e.$attrs, {
      class: [
        "vc-container",
        `vc-${e.view}`,
        `vc-${e.color}`,
        `vc-${e.displayMode}`,
        {
          "vc-expanded": e.expanded,
          "vc-bordered": !e.borderless,
          "vc-transparent": e.transparent
        }
      ],
      onMouseup: t[0] || (t[0] = Jo(() => {
      }, ["prevent"])),
      ref: "containerRef"
    }), [
      fe("div", {
        class: xe(["vc-pane-container", { "in-transition": e.inTransition }])
      }, [
        fe("div", EP, [
          e.firstPage ? (J(), ge(i, {
            key: 0,
            page: e.firstPage,
            "is-lg": "",
            "hide-title": ""
          }, null, 8, ["page"])) : Ie("", !0)
        ]),
        $(xr, {
          name: `vc-${e.transitionName}`,
          onBeforeEnter: e.onTransitionBeforeEnter,
          onAfterEnter: e.onTransitionAfterEnter
        }, {
          default: ee(() => [
            (J(), ve("div", {
              key: e.pages[0].id,
              class: "vc-pane-layout",
              style: vn({
                gridTemplateColumns: `repeat(${e.columns}, 1fr)`
              })
            }, [
              (J(!0), ve(He, null, mt(e.pages, (f) => (J(), ge(u, {
                key: f.id,
                page: f
              }, {
                default: ee(() => [
                  $(s, {
                    name: "page",
                    page: f
                  }, {
                    default: ee(() => [
                      $(l)
                    ]),
                    _: 2
                  }, 1032, ["page"])
                ]),
                _: 2
              }, 1032, ["page"]))), 128))
            ], 4))
          ]),
          _: 1
        }, 8, ["name", "onBeforeEnter", "onAfterEnter"]),
        $(s, { name: "footer" })
      ], 2)
    ], 16),
    $(c),
    $(d)
  ], 64);
}
const TP = /* @__PURE__ */ Er(CP, [["render", SP]]), lg = Symbol("__vc_date_picker_context__"), DP = {
  ...Jp,
  mode: { type: String, default: "date" },
  modelValue: {
    type: [Number, String, Date, Object]
  },
  modelModifiers: {
    type: Object,
    default: () => ({})
  },
  rules: [String, Object],
  is24hr: Boolean,
  hideTimeHeader: Boolean,
  timeAccuracy: { type: Number, default: 2 },
  isRequired: Boolean,
  isRange: Boolean,
  updateOnInput: {
    type: Boolean,
    default: () => wr("datePicker.updateOnInput")
  },
  inputDebounce: {
    type: Number,
    default: () => wr("datePicker.inputDebounce")
  },
  popover: {
    type: [Boolean, Object],
    default: !0
  },
  dragAttribute: Object,
  selectAttribute: Object,
  attributes: [Object, Array]
}, kP = [
  "update:modelValue",
  "drag",
  "dayclick",
  "daykeydown",
  "popover-will-show",
  "popover-did-show",
  "popover-will-hide",
  "popover-did-hide"
];
function PP(e, { emit: t, slots: n }) {
  eg(n, { footer: "dp-footer" });
  const r = _p(e), { locale: o, masks: a, disabledAttribute: i } = r, l = ne(!1), s = ne(Symbol()), u = ne(null), c = ne(null), d = ne(["", ""]), f = ne(null), v = ne(null);
  let h, m, p = !0;
  const g = U(() => e.isRange || e.modelModifiers.range === !0), y = U(
    () => g.value && u.value != null ? u.value.start : null
  ), x = U(
    () => g.value && u.value != null ? u.value.end : null
  ), b = U(() => e.mode.toLowerCase() === "date"), w = U(
    () => e.mode.toLowerCase() === "datetime"
  ), D = U(() => e.mode.toLowerCase() === "time"), E = U(() => !!c.value), T = U(() => {
    let W = "date";
    e.modelModifiers.number && (W = "number"), e.modelModifiers.string && (W = "string");
    const ue = a.value.modelValue || "iso";
    return q({ type: W, mask: ue });
  }), L = U(
    () => ie(c.value ?? u.value)
  ), S = U(() => D.value ? e.is24hr ? a.value.inputTime24hr : a.value.inputTime : w.value ? e.is24hr ? a.value.inputDateTime24hr : a.value.inputDateTime : a.value.input), A = U(() => /[Hh]/g.test(S.value)), C = U(
    () => /[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(S.value)
  ), k = U(() => {
    if (A.value && C.value)
      return "dateTime";
    if (C.value)
      return "date";
    if (A.value)
      return "time";
  }), I = U(() => {
    var W;
    const ue = ((W = f.value) == null ? void 0 : W.$el.previousElementSibling) ?? void 0;
    return ha({}, e.popover, wr("datePicker.popover"), {
      target: ue
    });
  }), N = U(
    () => Gp({
      ...I.value,
      id: s.value
    })
  ), F = U(() => g.value ? {
    start: d.value[0],
    end: d.value[1]
  } : d.value[0]), V = U(() => {
    const W = ["start", "end"].map((ue) => ({
      input: $e(ue),
      change: Je(ue),
      keyup: oe,
      ...e.popover && N.value
    }));
    return g.value ? {
      start: W[0],
      end: W[1]
    } : W[0];
  }), G = U(() => {
    if (!H(u.value))
      return null;
    const W = {
      key: "select-drag",
      ...e.selectAttribute,
      dates: u.value,
      pinPage: !0
    }, { dot: ue, bar: ye, highlight: Me, content: et } = W;
    return !ue && !ye && !Me && !et && (W.highlight = !0), W;
  }), z = U(() => {
    if (!g.value || !H(c.value))
      return null;
    const W = {
      key: "select-drag",
      ...e.dragAttribute,
      dates: c.value
    }, { dot: ue, bar: ye, highlight: Me, content: et } = W;
    return !ue && !ye && !Me && !et && (W.highlight = {
      startEnd: {
        fillMode: "outline"
      }
    }), W;
  }), M = U(() => {
    const W = pn(e.attributes) ? [...e.attributes] : [];
    return z.value ? W.unshift(z.value) : G.value && W.unshift(G.value), W;
  }), P = U(() => q(
    e.rules === "auto" ? R() : e.rules ?? {}
  ));
  function R() {
    const W = {
      ms: [0, 999],
      sec: [0, 59],
      min: [0, 59],
      hr: [0, 23]
    }, ue = b.value ? 0 : e.timeAccuracy;
    return [0, 1].map((ye) => {
      switch (ue) {
        case 0:
          return {
            hours: W.hr[ye],
            minutes: W.min[ye],
            seconds: W.sec[ye],
            milliseconds: W.ms[ye]
          };
        case 1:
          return {
            minutes: W.min[ye],
            seconds: W.sec[ye],
            milliseconds: W.ms[ye]
          };
        case 3:
          return { milliseconds: W.ms[ye] };
        case 4:
          return {};
        default:
          return { seconds: W.sec[ye], milliseconds: W.ms[ye] };
      }
    });
  }
  function q(W) {
    return pn(W) ? W.length === 1 ? [W[0], W[0]] : W : [W, W];
  }
  function Y(W) {
    return q(W).map(
      (ue, ye) => ({
        ...ue,
        rules: P.value[ye]
      })
    );
  }
  function Q(W) {
    return W == null ? !1 : Tn(W) ? !isNaN(W) : ao(W) ? !isNaN(W.getTime()) : Rn(W) ? W !== "" : Gu(W);
  }
  function B(W) {
    return tr(W) && "start" in W && "end" in W && Q(W.start ?? null) && Q(W.end ?? null);
  }
  function H(W) {
    return B(W) || Q(W);
  }
  function Z(W, ue) {
    if (W == null && ue == null)
      return !0;
    if (W == null || ue == null)
      return !1;
    const ye = ao(W), Me = ao(ue);
    return ye && Me ? W.getTime() === ue.getTime() : ye || Me ? !1 : Z(W.start, ue.start) && Z(W.end, ue.end);
  }
  function _(W) {
    return !H(W) || !i.value ? !1 : i.value.intersectsRange(o.value.range(W));
  }
  function re(W, ue, ye, Me) {
    if (!H(W))
      return null;
    if (B(W)) {
      const et = o.value.toDate(W.start, {
        ...ue[0],
        fillDate: y.value ?? void 0,
        patch: ye
      }), bt = o.value.toDate(W.end, {
        ...ue[1],
        fillDate: x.value ?? void 0,
        patch: ye
      });
      return zn({ start: et, end: bt }, Me);
    }
    return o.value.toDateOrNull(W, {
      ...ue[0],
      fillDate: u.value,
      patch: ye
    });
  }
  function he(W, ue) {
    return B(W) ? {
      start: o.value.fromDate(W.start, ue[0]),
      end: o.value.fromDate(W.end, ue[1])
    } : g.value ? null : o.value.fromDate(W, ue[0]);
  }
  function be(W, ue = {}) {
    return clearTimeout(h), new Promise((ye) => {
      const { debounce: Me = 0, ...et } = ue;
      Me > 0 ? h = window.setTimeout(() => {
        ye(Oe(W, et));
      }, Me) : ye(Oe(W, et));
    });
  }
  function Oe(W, {
    config: ue = T.value,
    patch: ye = "dateTime",
    clearIfEqual: Me = !1,
    formatInput: et = !0,
    hidePopover: bt = !1,
    dragging: wt = E.value,
    targetPriority: un,
    moveToValue: cn = !1
  } = {}) {
    const Yn = Y(ue);
    let gt = re(
      W,
      Yn,
      ye,
      un
    );
    if (_(gt)) {
      if (wt)
        return null;
      gt = u.value, bt = !1;
    } else
      gt == null && e.isRequired ? gt = u.value : (
        // Clear value if same value was passed
        gt != null && Z(u.value, gt) && Me && (gt = null)
      );
    const Gt = wt ? c : u, Qn = !Z(Gt.value, gt);
    Gt.value = gt, wt || (c.value = null);
    const Wn = he(
      gt,
      T.value
    );
    return Qn && (p = !1, t(wt ? "drag" : "update:modelValue", Wn), rt(() => p = !0)), bt && !wt && Ye(), et && Pe(), cn && rt(() => xn(un ?? "start")), Wn;
  }
  function Pe() {
    rt(() => {
      const W = Y({
        type: "string",
        mask: S.value
      }), ue = he(
        c.value ?? u.value,
        W
      );
      g.value ? d.value = [ue && ue.start, ue && ue.end] : d.value = [ue, ""];
    });
  }
  function Ve(W, ue, ye) {
    d.value.splice(ue === "start" ? 0 : 1, 1, W);
    const Me = g.value ? {
      start: d.value[0],
      end: d.value[1] || d.value[0]
    } : W, et = {
      type: "string",
      mask: S.value
    };
    be(Me, {
      ...ye,
      config: et,
      patch: k.value,
      targetPriority: ue,
      moveToValue: !0
    });
  }
  function $e(W) {
    return (ue) => {
      e.updateOnInput && Ve(ue.currentTarget.value, W, {
        formatInput: !1,
        hidePopover: !1,
        debounce: e.inputDebounce
      });
    };
  }
  function Je(W) {
    return (ue) => {
      Ve(ue.currentTarget.value, W, {
        formatInput: !0,
        hidePopover: !1
      });
    };
  }
  function oe(W) {
    W.key === "Escape" && be(u.value, {
      formatInput: !0,
      hidePopover: !0
    });
  }
  function ie(W) {
    return g.value ? [
      W && W.start ? o.value.getDateParts(W.start) : null,
      W && W.end ? o.value.getDateParts(W.end) : null
    ] : [W ? o.value.getDateParts(W) : null];
  }
  function pe() {
    c.value = null, Pe();
  }
  function me(W) {
    t("popover-will-show", W);
  }
  function ce(W) {
    t("popover-did-show", W);
  }
  function ke(W) {
    pe(), t("popover-will-hide", W);
  }
  function Ce(W) {
    t("popover-did-hide", W);
  }
  function De(W) {
    const ue = {
      patch: "date",
      formatInput: !0,
      hidePopover: !0
    };
    if (g.value) {
      const ye = !E.value;
      ye ? m = { start: W.startDate, end: W.endDate } : m != null && (m.end = W.date), be(m, {
        ...ue,
        dragging: ye
      });
    } else
      be(W.date, {
        ...ue,
        clearIfEqual: !e.isRequired
      });
  }
  function ft(W, ue) {
    De(W), t("dayclick", W, ue);
  }
  function dt(W, ue) {
    switch (ue.key) {
      case " ":
      case "Enter": {
        De(W), ue.preventDefault();
        break;
      }
      case "Escape":
        Ye();
    }
    t("daykeydown", W, ue);
  }
  function Ge(W, ue) {
    !E.value || m == null || (m.end = W.date, be(zn(m), {
      patch: "date",
      formatInput: !0
    }));
  }
  function wn(W = {}) {
    Ws({
      ...I.value,
      ...W,
      isInteractive: !0,
      id: s.value
    });
  }
  function Ye(W = {}) {
    pa({
      hideDelay: 10,
      force: !0,
      ...I.value,
      ...W,
      id: s.value
    });
  }
  function kt(W) {
    Wp({
      ...I.value,
      ...W,
      isInteractive: !0,
      id: s.value
    });
  }
  function zn(W, ue) {
    const { start: ye, end: Me } = W;
    if (ye > Me)
      switch (ue) {
        case "start":
          return { start: ye, end: ye };
        case "end":
          return { start: Me, end: Me };
        default:
          return { start: Me, end: ye };
      }
    return { start: ye, end: Me };
  }
  async function ir(W, ue = {}) {
    return v.value == null ? !1 : v.value.move(W, ue);
  }
  async function Un(W, ue = {}) {
    return v.value == null ? !1 : v.value.moveBy(W, ue);
  }
  async function xn(W, ue = {}) {
    const ye = u.value;
    if (v.value == null || !H(ye))
      return !1;
    const Me = W !== "end", et = Me ? 1 : -1, bt = B(ye) ? Me ? ye.start : ye.end : ye, wt = Pp(bt, "monthly", o.value);
    return v.value.move(wt, { position: et, ...ue });
  }
  Ne(
    () => e.isRange,
    (W) => {
      W && console.warn(
        "The `is-range` prop will be deprecated in future releases. Please use the `range` modifier."
      );
    },
    { immediate: !0 }
  ), Ne(
    () => g.value,
    () => {
      Oe(null, { formatInput: !0 });
    }
  ), Ne(
    () => S.value,
    () => Pe()
  ), Ne(
    () => e.modelValue,
    (W) => {
      p && Oe(W, {
        formatInput: !0,
        hidePopover: !1
      });
    }
  ), Ne(
    () => P.value,
    () => {
      tr(e.rules) && Oe(e.modelValue, {
        formatInput: !0,
        hidePopover: !1
      });
    }
  ), Ne(
    () => e.timezone,
    () => {
      Oe(u.value, { formatInput: !0 });
    }
  );
  const Hn = q(T.value);
  u.value = re(
    e.modelValue ?? null,
    Hn,
    "dateTime"
  ), We(() => {
    Oe(e.modelValue, {
      formatInput: !0,
      hidePopover: !1
    });
  }), rt(() => l.value = !0);
  const de = {
    ...r,
    showCalendar: l,
    datePickerPopoverId: s,
    popoverRef: f,
    popoverEvents: N,
    calendarRef: v,
    isRange: g,
    isTimeMode: D,
    isDateTimeMode: w,
    is24hr: ra(e, "is24hr"),
    hideTimeHeader: ra(e, "hideTimeHeader"),
    timeAccuracy: ra(e, "timeAccuracy"),
    isDragging: E,
    inputValue: F,
    inputEvents: V,
    dateParts: L,
    attributes: M,
    rules: P,
    move: ir,
    moveBy: Un,
    moveToValue: xn,
    updateValue: be,
    showPopover: wn,
    hidePopover: Ye,
    togglePopover: kt,
    onDayClick: ft,
    onDayKeydown: dt,
    onDayMouseEnter: Ge,
    onPopoverBeforeShow: me,
    onPopoverAfterShow: ce,
    onPopoverBeforeHide: ke,
    onPopoverAfterHide: Ce
  };
  return lt(lg, de), de;
}
function _u() {
  const e = ot(lg);
  if (e)
    return e;
  throw new Error(
    "DatePicker context missing. Please verify this component is nested within a valid context provider."
  );
}
const IP = [
  { value: 0, label: "12" },
  { value: 1, label: "1" },
  { value: 2, label: "2" },
  { value: 3, label: "3" },
  { value: 4, label: "4" },
  { value: 5, label: "5" },
  { value: 6, label: "6" },
  { value: 7, label: "7" },
  { value: 8, label: "8" },
  { value: 9, label: "9" },
  { value: 10, label: "10" },
  { value: 11, label: "11" }
], NP = [
  { value: 12, label: "12" },
  { value: 13, label: "1" },
  { value: 14, label: "2" },
  { value: 15, label: "3" },
  { value: 16, label: "4" },
  { value: 17, label: "5" },
  { value: 18, label: "6" },
  { value: 19, label: "7" },
  { value: 20, label: "8" },
  { value: 21, label: "9" },
  { value: 22, label: "10" },
  { value: 23, label: "11" }
];
function MP(e) {
  const t = _u(), {
    locale: n,
    isRange: r,
    isTimeMode: o,
    dateParts: a,
    rules: i,
    is24hr: l,
    hideTimeHeader: s,
    timeAccuracy: u,
    updateValue: c
  } = t;
  function d(C) {
    C = Object.assign(v.value, C);
    let k = null;
    if (r.value) {
      const I = f.value ? C : a.value[0], N = f.value ? a.value[1] : C;
      k = { start: I, end: N };
    } else
      k = C;
    c(k, {
      patch: "time",
      targetPriority: f.value ? "start" : "end",
      moveToValue: !0
    });
  }
  const f = U(() => e.position === 0), v = U(
    () => a.value[e.position] || { isValid: !1 }
  ), h = U(() => Gu(v.value)), m = U(() => !!v.value.isValid), p = U(() => !s.value && m.value), g = U(() => {
    if (!h.value)
      return null;
    let C = n.value.toDate(v.value);
    return v.value.hours === 24 && (C = new Date(C.getTime() - 1)), C;
  }), y = U({
    get() {
      return v.value.hours;
    },
    set(C) {
      d({ hours: C });
    }
  }), x = U({
    get() {
      return v.value.minutes;
    },
    set(C) {
      d({ minutes: C });
    }
  }), b = U({
    get() {
      return v.value.seconds;
    },
    set(C) {
      d({ seconds: C });
    }
  }), w = U({
    get() {
      return v.value.milliseconds;
    },
    set(C) {
      d({ milliseconds: C });
    }
  }), D = U({
    get() {
      return v.value.hours < 12;
    },
    set(C) {
      C = String(C).toLowerCase() == "true";
      let k = y.value;
      C && k >= 12 ? k -= 12 : !C && k < 12 && (k += 12), d({ hours: k });
    }
  }), E = U(
    () => JD(v.value, i.value[e.position])
  ), T = U(() => IP.filter(
    (C) => E.value.hours.some((k) => k.value === C.value)
  )), L = U(() => NP.filter(
    (C) => E.value.hours.some((k) => k.value === C.value)
  )), S = U(() => l.value ? E.value.hours : D.value ? T.value : L.value), A = U(() => {
    const C = [];
    return $n(T.value) && C.push({ value: !0, label: "AM" }), $n(L.value) && C.push({ value: !1, label: "PM" }), C;
  });
  return {
    ...t,
    showHeader: p,
    timeAccuracy: u,
    parts: v,
    isValid: m,
    date: g,
    hours: y,
    minutes: x,
    seconds: b,
    milliseconds: w,
    options: E,
    hourOptions: S,
    isAM: D,
    isAMOptions: A,
    is24hr: l
  };
}
const LP = ["value"], RP = ["value", "disabled"], BP = {
  key: 1,
  class: "vc-base-sizer",
  "aria-hidden": "true"
}, FP = {
  inheritAttrs: !1
}, Zo = /* @__PURE__ */ se({
  ...FP,
  __name: "BaseSelect",
  props: {
    options: null,
    modelValue: null,
    alignRight: { type: Boolean },
    alignLeft: { type: Boolean },
    showIcon: { type: Boolean },
    fitContent: { type: Boolean }
  },
  emits: ["update:modelValue"],
  setup(e) {
    const t = e, n = U(() => {
      const r = t.options.find((o) => o.value === t.modelValue);
      return r == null ? void 0 : r.label;
    });
    return (r, o) => (J(), ve("div", {
      class: xe(["vc-base-select", {
        "vc-fit-content": e.fitContent,
        "vc-has-icon": e.showIcon
      }])
    }, [
      fe("select", Ar(r.$attrs, {
        value: e.modelValue,
        class: ["vc-focus", {
          "vc-align-right": e.alignRight,
          "vc-align-left": e.alignLeft
        }],
        onChange: o[0] || (o[0] = (a) => r.$emit("update:modelValue", a.target.value))
      }), [
        (J(!0), ve(He, null, mt(e.options, (a) => (J(), ve("option", {
          key: a.value,
          value: a.value,
          disabled: a.disabled
        }, Re(a.label), 9, RP))), 128))
      ], 16, LP),
      e.showIcon ? (J(), ge(bo, {
        key: 0,
        name: "ChevronDown",
        size: "18"
      })) : Ie("", !0),
      e.fitContent ? (J(), ve("div", BP, Re(X(n)), 1)) : Ie("", !0)
    ], 2));
  }
}), jP = {
  key: 0,
  class: "vc-time-header"
}, qP = { class: "vc-time-weekday" }, VP = { class: "vc-time-month" }, zP = { class: "vc-time-day" }, UP = { class: "vc-time-year" }, HP = { class: "vc-time-select-group" }, YP = /* @__PURE__ */ fe("span", { class: "vc-time-colon" }, ":", -1), QP = /* @__PURE__ */ fe("span", { class: "vc-time-colon" }, ":", -1), WP = /* @__PURE__ */ fe("span", { class: "vc-time-decimal" }, ".", -1), yd = /* @__PURE__ */ se({
  __name: "TimePicker",
  props: {
    position: null
  },
  setup(e, { expose: t }) {
    const r = MP(e);
    t(r);
    const {
      locale: o,
      isValid: a,
      date: i,
      hours: l,
      minutes: s,
      seconds: u,
      milliseconds: c,
      options: d,
      hourOptions: f,
      isTimeMode: v,
      isAM: h,
      isAMOptions: m,
      is24hr: p,
      showHeader: g,
      timeAccuracy: y
    } = r;
    return (x, b) => (J(), ve("div", {
      class: xe(["vc-time-picker", [{ "vc-invalid": !X(a), "vc-attached": !X(v) }]])
    }, [
      $(dn, { name: "time-header" }, {
        default: ee(() => [
          X(g) && X(i) ? (J(), ve("div", jP, [
            fe("span", qP, Re(X(o).formatDate(X(i), "WWW")), 1),
            fe("span", VP, Re(X(o).formatDate(X(i), "MMM")), 1),
            fe("span", zP, Re(X(o).formatDate(X(i), "D")), 1),
            fe("span", UP, Re(X(o).formatDate(X(i), "YYYY")), 1)
          ])) : Ie("", !0)
        ]),
        _: 1
      }),
      fe("div", HP, [
        $(bo, {
          name: "Clock",
          size: "17"
        }),
        $(Zo, {
          modelValue: X(l),
          "onUpdate:modelValue": b[0] || (b[0] = (w) => Cn(l) ? l.value = w : null),
          modelModifiers: { number: !0 },
          options: X(f),
          class: "vc-time-select-hours",
          "align-right": ""
        }, null, 8, ["modelValue", "options"]),
        X(y) > 1 ? (J(), ve(He, { key: 0 }, [
          YP,
          $(Zo, {
            modelValue: X(s),
            "onUpdate:modelValue": b[1] || (b[1] = (w) => Cn(s) ? s.value = w : null),
            modelModifiers: { number: !0 },
            options: X(d).minutes,
            class: "vc-time-select-minutes",
            "align-left": X(y) === 2
          }, null, 8, ["modelValue", "options", "align-left"])
        ], 64)) : Ie("", !0),
        X(y) > 2 ? (J(), ve(He, { key: 1 }, [
          QP,
          $(Zo, {
            modelValue: X(u),
            "onUpdate:modelValue": b[2] || (b[2] = (w) => Cn(u) ? u.value = w : null),
            modelModifiers: { number: !0 },
            options: X(d).seconds,
            class: "vc-time-select-seconds",
            "align-left": X(y) === 3
          }, null, 8, ["modelValue", "options", "align-left"])
        ], 64)) : Ie("", !0),
        X(y) > 3 ? (J(), ve(He, { key: 2 }, [
          WP,
          $(Zo, {
            modelValue: X(c),
            "onUpdate:modelValue": b[3] || (b[3] = (w) => Cn(c) ? c.value = w : null),
            modelModifiers: { number: !0 },
            options: X(d).milliseconds,
            class: "vc-time-select-milliseconds",
            "align-left": ""
          }, null, 8, ["modelValue", "options"])
        ], 64)) : Ie("", !0),
        X(p) ? Ie("", !0) : (J(), ge(Zo, {
          key: 3,
          modelValue: X(h),
          "onUpdate:modelValue": b[4] || (b[4] = (w) => Cn(h) ? h.value = w : null),
          options: X(m)
        }, null, 8, ["modelValue", "options"]))
      ])
    ], 2));
  }
}), sg = /* @__PURE__ */ se({
  __name: "DatePickerBase",
  setup(e) {
    const {
      attributes: t,
      calendarRef: n,
      color: r,
      displayMode: o,
      isDateTimeMode: a,
      isTimeMode: i,
      isRange: l,
      onDayClick: s,
      onDayMouseEnter: u,
      onDayKeydown: c
    } = _u(), d = l.value ? [0, 1] : [0];
    return (f, v) => X(i) ? (J(), ve("div", {
      key: 0,
      class: xe(`vc-container vc-bordered vc-${X(r)} vc-${X(o)}`)
    }, [
      (J(!0), ve(He, null, mt(X(d), (h) => (J(), ge(yd, {
        key: h,
        position: h
      }, null, 8, ["position"]))), 128))
    ], 2)) : (J(), ge(TP, {
      key: 1,
      attributes: X(t),
      ref_key: "calendarRef",
      ref: n,
      onDayclick: X(s),
      onDaymouseenter: X(u),
      onDaykeydown: X(c)
    }, {
      footer: ee(() => [
        X(a) ? (J(!0), ve(He, { key: 0 }, mt(X(d), (h) => (J(), ge(yd, {
          key: h,
          position: h
        }, null, 8, ["position"]))), 128)) : Ie("", !0),
        $(dn, { name: "dp-footer" })
      ]),
      _: 1
    }, 8, ["attributes", "onDayclick", "onDaymouseenter", "onDaykeydown"]));
  }
}), GP = {
  inheritAttrs: !1
}, KP = /* @__PURE__ */ se({
  ...GP,
  __name: "DatePickerPopover",
  setup(e) {
    const {
      datePickerPopoverId: t,
      color: n,
      displayMode: r,
      popoverRef: o,
      onPopoverBeforeShow: a,
      onPopoverAfterShow: i,
      onPopoverBeforeHide: l,
      onPopoverAfterHide: s
    } = _u();
    return (u, c) => (J(), ge(Ju, {
      id: X(t),
      placement: "bottom-start",
      class: xe(`vc-date-picker-content vc-${X(n)} vc-${X(r)}`),
      ref_key: "popoverRef",
      ref: o,
      onBeforeShow: X(a),
      onAfterShow: X(i),
      onBeforeHide: X(l),
      onAfterHide: X(s)
    }, {
      default: ee(() => [
        $(sg, oa(fs(u.$attrs)), null, 16)
      ]),
      _: 1
    }, 8, ["id", "class", "onBeforeShow", "onAfterShow", "onBeforeHide", "onAfterHide"]));
  }
}), XP = se({
  inheritAttrs: !1,
  emits: kP,
  props: DP,
  components: { DatePickerBase: sg, DatePickerPopover: KP },
  setup(e, t) {
    const n = PP(e, t), r = wo(Sp(n, "calendarRef", "popoverRef"));
    return { ...n, slotCtx: r };
  }
});
function ZP(e, t, n, r, o, a) {
  const i = Jn("DatePickerPopover"), l = Jn("DatePickerBase");
  return e.$slots.default ? (J(), ve(He, { key: 0 }, [
    qe(e.$slots, "default", oa(fs(e.slotCtx))),
    $(i, oa(fs(e.$attrs)), null, 16)
  ], 64)) : (J(), ge(l, oa(Ar({ key: 1 }, e.$attrs)), null, 16));
}
const ug = /* @__PURE__ */ Er(XP, [["render", ZP]]);
var cg = { exports: {} };
(function(e, t) {
  (function(n, r) {
    e.exports = r();
  })(Tt, function() {
    var n = 1e3, r = 6e4, o = 36e5, a = "millisecond", i = "second", l = "minute", s = "hour", u = "day", c = "week", d = "month", f = "quarter", v = "year", h = "date", m = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, g = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(I) {
      var N = ["th", "st", "nd", "rd"], F = I % 100;
      return "[" + I + (N[(F - 20) % 10] || N[F] || N[0]) + "]";
    } }, x = function(I, N, F) {
      var V = String(I);
      return !V || V.length >= N ? I : "" + Array(N + 1 - V.length).join(F) + I;
    }, b = { s: x, z: function(I) {
      var N = -I.utcOffset(), F = Math.abs(N), V = Math.floor(F / 60), G = F % 60;
      return (N <= 0 ? "+" : "-") + x(V, 2, "0") + ":" + x(G, 2, "0");
    }, m: function I(N, F) {
      if (N.date() < F.date())
        return -I(F, N);
      var V = 12 * (F.year() - N.year()) + (F.month() - N.month()), G = N.clone().add(V, d), z = F - G < 0, M = N.clone().add(V + (z ? -1 : 1), d);
      return +(-(V + (F - G) / (z ? G - M : M - G)) || 0);
    }, a: function(I) {
      return I < 0 ? Math.ceil(I) || 0 : Math.floor(I);
    }, p: function(I) {
      return { M: d, y: v, w: c, d: u, D: h, h: s, m: l, s: i, ms: a, Q: f }[I] || String(I || "").toLowerCase().replace(/s$/, "");
    }, u: function(I) {
      return I === void 0;
    } }, w = "en", D = {};
    D[w] = y;
    var E = "$isDayjsObject", T = function(I) {
      return I instanceof C || !(!I || !I[E]);
    }, L = function I(N, F, V) {
      var G;
      if (!N)
        return w;
      if (typeof N == "string") {
        var z = N.toLowerCase();
        D[z] && (G = z), F && (D[z] = F, G = z);
        var M = N.split("-");
        if (!G && M.length > 1)
          return I(M[0]);
      } else {
        var P = N.name;
        D[P] = N, G = P;
      }
      return !V && G && (w = G), G || !V && w;
    }, S = function(I, N) {
      if (T(I))
        return I.clone();
      var F = typeof N == "object" ? N : {};
      return F.date = I, F.args = arguments, new C(F);
    }, A = b;
    A.l = L, A.i = T, A.w = function(I, N) {
      return S(I, { locale: N.$L, utc: N.$u, x: N.$x, $offset: N.$offset });
    };
    var C = function() {
      function I(F) {
        this.$L = L(F.locale, null, !0), this.parse(F), this.$x = this.$x || F.x || {}, this[E] = !0;
      }
      var N = I.prototype;
      return N.parse = function(F) {
        this.$d = function(V) {
          var G = V.date, z = V.utc;
          if (G === null)
            return /* @__PURE__ */ new Date(NaN);
          if (A.u(G))
            return /* @__PURE__ */ new Date();
          if (G instanceof Date)
            return new Date(G);
          if (typeof G == "string" && !/Z$/i.test(G)) {
            var M = G.match(p);
            if (M) {
              var P = M[2] - 1 || 0, R = (M[7] || "0").substring(0, 3);
              return z ? new Date(Date.UTC(M[1], P, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, R)) : new Date(M[1], P, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, R);
            }
          }
          return new Date(G);
        }(F), this.init();
      }, N.init = function() {
        var F = this.$d;
        this.$y = F.getFullYear(), this.$M = F.getMonth(), this.$D = F.getDate(), this.$W = F.getDay(), this.$H = F.getHours(), this.$m = F.getMinutes(), this.$s = F.getSeconds(), this.$ms = F.getMilliseconds();
      }, N.$utils = function() {
        return A;
      }, N.isValid = function() {
        return this.$d.toString() !== m;
      }, N.isSame = function(F, V) {
        var G = S(F);
        return this.startOf(V) <= G && G <= this.endOf(V);
      }, N.isAfter = function(F, V) {
        return S(F) < this.startOf(V);
      }, N.isBefore = function(F, V) {
        return this.endOf(V) < S(F);
      }, N.$g = function(F, V, G) {
        return A.u(F) ? this[V] : this.set(G, F);
      }, N.unix = function() {
        return Math.floor(this.valueOf() / 1e3);
      }, N.valueOf = function() {
        return this.$d.getTime();
      }, N.startOf = function(F, V) {
        var G = this, z = !!A.u(V) || V, M = A.p(F), P = function(_, re) {
          var he = A.w(G.$u ? Date.UTC(G.$y, re, _) : new Date(G.$y, re, _), G);
          return z ? he : he.endOf(u);
        }, R = function(_, re) {
          return A.w(G.toDate()[_].apply(G.toDate("s"), (z ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(re)), G);
        }, q = this.$W, Y = this.$M, Q = this.$D, B = "set" + (this.$u ? "UTC" : "");
        switch (M) {
          case v:
            return z ? P(1, 0) : P(31, 11);
          case d:
            return z ? P(1, Y) : P(0, Y + 1);
          case c:
            var H = this.$locale().weekStart || 0, Z = (q < H ? q + 7 : q) - H;
            return P(z ? Q - Z : Q + (6 - Z), Y);
          case u:
          case h:
            return R(B + "Hours", 0);
          case s:
            return R(B + "Minutes", 1);
          case l:
            return R(B + "Seconds", 2);
          case i:
            return R(B + "Milliseconds", 3);
          default:
            return this.clone();
        }
      }, N.endOf = function(F) {
        return this.startOf(F, !1);
      }, N.$set = function(F, V) {
        var G, z = A.p(F), M = "set" + (this.$u ? "UTC" : ""), P = (G = {}, G[u] = M + "Date", G[h] = M + "Date", G[d] = M + "Month", G[v] = M + "FullYear", G[s] = M + "Hours", G[l] = M + "Minutes", G[i] = M + "Seconds", G[a] = M + "Milliseconds", G)[z], R = z === u ? this.$D + (V - this.$W) : V;
        if (z === d || z === v) {
          var q = this.clone().set(h, 1);
          q.$d[P](R), q.init(), this.$d = q.set(h, Math.min(this.$D, q.daysInMonth())).$d;
        } else
          P && this.$d[P](R);
        return this.init(), this;
      }, N.set = function(F, V) {
        return this.clone().$set(F, V);
      }, N.get = function(F) {
        return this[A.p(F)]();
      }, N.add = function(F, V) {
        var G, z = this;
        F = Number(F);
        var M = A.p(V), P = function(Y) {
          var Q = S(z);
          return A.w(Q.date(Q.date() + Math.round(Y * F)), z);
        };
        if (M === d)
          return this.set(d, this.$M + F);
        if (M === v)
          return this.set(v, this.$y + F);
        if (M === u)
          return P(1);
        if (M === c)
          return P(7);
        var R = (G = {}, G[l] = r, G[s] = o, G[i] = n, G)[M] || 1, q = this.$d.getTime() + F * R;
        return A.w(q, this);
      }, N.subtract = function(F, V) {
        return this.add(-1 * F, V);
      }, N.format = function(F) {
        var V = this, G = this.$locale();
        if (!this.isValid())
          return G.invalidDate || m;
        var z = F || "YYYY-MM-DDTHH:mm:ssZ", M = A.z(this), P = this.$H, R = this.$m, q = this.$M, Y = G.weekdays, Q = G.months, B = G.meridiem, H = function(re, he, be, Oe) {
          return re && (re[he] || re(V, z)) || be[he].slice(0, Oe);
        }, Z = function(re) {
          return A.s(P % 12 || 12, re, "0");
        }, _ = B || function(re, he, be) {
          var Oe = re < 12 ? "AM" : "PM";
          return be ? Oe.toLowerCase() : Oe;
        };
        return z.replace(g, function(re, he) {
          return he || function(be) {
            switch (be) {
              case "YY":
                return String(V.$y).slice(-2);
              case "YYYY":
                return A.s(V.$y, 4, "0");
              case "M":
                return q + 1;
              case "MM":
                return A.s(q + 1, 2, "0");
              case "MMM":
                return H(G.monthsShort, q, Q, 3);
              case "MMMM":
                return H(Q, q);
              case "D":
                return V.$D;
              case "DD":
                return A.s(V.$D, 2, "0");
              case "d":
                return String(V.$W);
              case "dd":
                return H(G.weekdaysMin, V.$W, Y, 2);
              case "ddd":
                return H(G.weekdaysShort, V.$W, Y, 3);
              case "dddd":
                return Y[V.$W];
              case "H":
                return String(P);
              case "HH":
                return A.s(P, 2, "0");
              case "h":
                return Z(1);
              case "hh":
                return Z(2);
              case "a":
                return _(P, R, !0);
              case "A":
                return _(P, R, !1);
              case "m":
                return String(R);
              case "mm":
                return A.s(R, 2, "0");
              case "s":
                return String(V.$s);
              case "ss":
                return A.s(V.$s, 2, "0");
              case "SSS":
                return A.s(V.$ms, 3, "0");
              case "Z":
                return M;
            }
            return null;
          }(re) || M.replace(":", "");
        });
      }, N.utcOffset = function() {
        return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
      }, N.diff = function(F, V, G) {
        var z, M = this, P = A.p(V), R = S(F), q = (R.utcOffset() - this.utcOffset()) * r, Y = this - R, Q = function() {
          return A.m(M, R);
        };
        switch (P) {
          case v:
            z = Q() / 12;
            break;
          case d:
            z = Q();
            break;
          case f:
            z = Q() / 3;
            break;
          case c:
            z = (Y - q) / 6048e5;
            break;
          case u:
            z = (Y - q) / 864e5;
            break;
          case s:
            z = Y / o;
            break;
          case l:
            z = Y / r;
            break;
          case i:
            z = Y / n;
            break;
          default:
            z = Y;
        }
        return G ? z : A.a(z);
      }, N.daysInMonth = function() {
        return this.endOf(d).$D;
      }, N.$locale = function() {
        return D[this.$L];
      }, N.locale = function(F, V) {
        if (!F)
          return this.$L;
        var G = this.clone(), z = L(F, V, !0);
        return z && (G.$L = z), G;
      }, N.clone = function() {
        return A.w(this.$d, this);
      }, N.toDate = function() {
        return new Date(this.valueOf());
      }, N.toJSON = function() {
        return this.isValid() ? this.toISOString() : null;
      }, N.toISOString = function() {
        return this.$d.toISOString();
      }, N.toString = function() {
        return this.$d.toUTCString();
      }, I;
    }(), k = C.prototype;
    return S.prototype = k, [["$ms", a], ["$s", i], ["$m", l], ["$H", s], ["$W", u], ["$M", d], ["$y", v], ["$D", h]].forEach(function(I) {
      k[I[1]] = function(N) {
        return this.$g(N, I[0], I[1]);
      };
    }), S.extend = function(I, N) {
      return I.$i || (I(N, C, S), I.$i = !0), S;
    }, S.locale = L, S.isDayjs = T, S.unix = function(I) {
      return S(1e3 * I);
    }, S.en = D[w], S.Ls = D, S.p = {}, S;
  });
})(cg);
var JP = cg.exports;
const na = /* @__PURE__ */ Js(JP), dN = /* @__PURE__ */ se({
  __name: "UIDatePicker",
  props: {
    buttonClass: {}
  },
  emits: ["select"],
  setup(e, { emit: t }) {
    const n = t, r = ne({
      start: /* @__PURE__ */ new Date(),
      end: /* @__PURE__ */ new Date()
    }), o = ne(), a = ne();
    Ne(r, (l, s) => {
      l !== s && (o.value = na(l.start).format("DD-MM-YYYY"), a.value = na(l.end).format("DD-MM-YYYY"), n("select", {
        startDate: na(l.start).format("DD-MM-YYYY"),
        endDate: na(l.end).format("DD-MM-YYYY")
      }));
    });
    const i = () => {
      r.value = {
        start: /* @__PURE__ */ new Date(),
        end: /* @__PURE__ */ new Date()
      };
    };
    return (l, s) => (J(), ge(X(ug), {
      modelValue: r.value,
      "onUpdate:modelValue": s[2] || (s[2] = (u) => r.value = u),
      "is-range": "",
      expanded: "",
      columns: 2,
      class: "rvx-w-[665px]"
    }, {
      default: ee(({ togglePopover: u }) => [
        $(Qi, {
          onClick: u,
          "icon-name": "calendar_month",
          "have-icon": !0,
          variant: "gray",
          class: xe(l.buttonClass)
        }, {
          default: ee(() => [
            je(Re(o.value && a.value ? `${o.value}-${a.value}` : "Select Date"), 1)
          ]),
          _: 2
        }, 1032, ["onClick", "class"])
      ]),
      footer: ee(() => [
        $(we, { class: "rvx-w-full rvx-flex rvx-gap-space20 rvx-px-[20px] rvx-pb-[20px] rvx-justify-between" }, {
          default: ee(() => [
            $(we, { class: "rvx-flex rvx-items-center rvx-gap-space12 rvx-w-[356px]" }, {
              default: ee(() => [
                $(ks, {
                  placeholder: "Start date",
                  modelValue: o.value,
                  "onUpdate:modelValue": s[0] || (s[0] = (u) => o.value = u),
                  disabled: !0
                }, null, 8, ["modelValue"]),
                s[4] || (s[4] = je(" - ")),
                $(ks, {
                  placeholder: "End date",
                  modelValue: a.value,
                  "onUpdate:modelValue": s[1] || (s[1] = (u) => a.value = u),
                  disabled: !0
                }, null, 8, ["modelValue"]),
                $(Ct, {
                  role: "button",
                  onClick: i,
                  class: "rvx-cursor-pointer"
                }, {
                  default: ee(() => s[3] || (s[3] = [
                    je("Clear")
                  ])),
                  _: 1
                })
              ]),
              _: 1
            })
          ]),
          _: 1
        })
      ]),
      _: 1
    }, 8, ["modelValue"]));
  }
}), _P = /* @__PURE__ */ se({
  __name: "CollapseExpAnimation",
  setup(e) {
    const t = ne(null), n = (i) => {
      i.style.height = "0";
    }, r = (i) => {
      i.offsetHeight, i.style.transition = "height 0.7s ease", i.style.height = i.scrollHeight + "px";
    }, o = (i) => {
      i.style.height = i.scrollHeight + "px", i.offsetHeight, i.style.transition = "height 0.5s ease";
    }, a = (i) => {
      i.style.height = "0";
    };
    return (i, l) => (J(), ve("div", {
      ref_key: "collapsibleContent",
      ref: t,
      class: "collapsible-content"
    }, [
      $(xr, {
        onBeforeEnter: n,
        onEnter: r,
        onBeforeLeave: o,
        onLeave: a
      }, {
        default: ee(() => [
          qe(i.$slots, "default", {}, void 0, !0)
        ]),
        _: 3
      })
    ], 512));
  }
}), vN = /* @__PURE__ */ sn(_P, [["__scopeId", "data-v-ec9b5fb6"]]), $P = { class: "rvx-px-1 rvx-py-1" }, hN = /* @__PURE__ */ se({
  __name: "UIMenu",
  props: {
    menuLabelClass: { default: "" },
    menuPanelClass: { default: "" }
  },
  setup(e) {
    return (t, n) => (J(), ge(X(bb), {
      as: "div",
      class: "rvx-relative rvx-inline-block rvx-text-left"
    }, {
      default: ee(({ open: r, close: o }) => [
        $(X(wb), {
          class: xe(["rvx-cursor-pointer rvx-border-[0] focus:rvx-outline-0 rvx-outline-0", t.menuLabelClass])
        }, {
          default: ee(() => [
            qe(t.$slots, "menuLabel", {}, () => [
              n[0] || (n[0] = je(" Options "))
            ])
          ]),
          _: 3
        }, 8, ["class"]),
        $(xr, {
          "enter-active-class": "rvx-transition rvx-duration-100 rvx-ease-out",
          "enter-from-class": "rvx-transform rvx-scale-95 rvx-opacity-0",
          "enter-to-class": "rvx-transform rvx-scale-100 rvx-opacity-100",
          "leave-active-class": "rvx-transition rvx-duration-75 rvx-ease-in",
          "leave-from-class": "rvx-transform rvx-scale-100 rvx-opacity-100",
          "leave-to-class": "rvx-transform rvx-scale-95 rvx-opacity-0"
        }, {
          default: ee(() => [
            bn(fe("div", null, [
              $(X(xb), {
                static: "",
                class: xe([`${t.menuPanelClass ? t.menuPanelClass : "rvx-absolute rvx-z-10 rvx-mt-2 rvx-w-56 rvx-origin-top-right rvx-divide-y rvx-divide-gray-100 rvx-rounded-md rvx-bg-white rvx-shadow-lg rvx-ring-1 rvx-ring-black/5 focus:rvx-outline-0 rvx-outline-0"}`, ""])
              }, {
                default: ee(() => [
                  fe("div", $P, [
                    qe(t.$slots, "content", { close: o })
                  ])
                ]),
                _: 2
              }, 1032, ["class"])
            ], 512), [
              [Ks, r]
            ])
          ]),
          _: 2
        }, 1024)
      ]),
      _: 3
    }));
  }
}), eI = { class: "rvx-grid rvx-grid-cols-12 rvx-w-full rvx-gap-space16 rvx-aggregation-multicriteria" }, tI = { class: "rvx-grid rvx-grid-cols-12 rvx-gap-space8 rvx-w-full rvx-aggregation-multicriteria__row-inner" }, nI = { class: "rvx-col-span-8 rvx-w-full rvx-pb-[6px] rvx-aggregation-multicriteria__name" }, rI = { class: "rvx-col-span-4 rvx-flex rvx-justify-center rvx-items-center rvx-gap-space5 rvx-self-end rvx-aggregation-multicriteria__total" }, oI = /* @__PURE__ */ se({
  __name: "UIMultiCriteriaAggregationsRow",
  props: {
    criteriaStats: {},
    criterias: {},
    showPercent: { type: Boolean },
    showStar: { type: Boolean },
    starColor: { default: "#0043DD" },
    starSize: {},
    height: {},
    background: { default: "#0043DD" },
    existingRating: {}
  },
  setup(e) {
    const t = e, n = U(() => w1({ criterias: t.criterias, criteriaStats: t.criteriaStats, existingRating: t.existingRating }));
    return (r, o) => (J(), ve("div", eI, [
      (J(!0), ve(He, null, mt(n.value, (a) => (J(), ve("div", {
        key: a.key,
        class: "rvx-col-span-4 rvx-flex rvx-gap-space16 rvx-w-full rvx-aggregation-multicriteria__row-outer"
      }, [
        fe("div", tI, [
          fe("div", nI, [
            je(Re(X(Fy)({ input: `${a == null ? void 0 : a.name}`, targetCase: X(ov).TitleCase })) + " ", 1),
            $(Xs, {
              height: r.height,
              background: r.background,
              width: a.percent,
              class: "rvx-mt-space8"
            }, null, 8, ["height", "background", "width"])
          ]),
          fe("div", rI, [
            je(Re(X(gs)(a.total)) + " ", 1),
            $(fv, {
              fill: r.starColor,
              width: t.starSize,
              height: t.starSize,
              class: "rvx-aggregation-multicriteria__start-icon"
            }, null, 8, ["fill", "width", "height"])
          ])
        ])
      ]))), 128))
    ]));
  }
}), pN = /* @__PURE__ */ se({
  __name: "UIMultiCriteriaAggregations",
  props: {
    criteriaStats: {},
    criterias: {},
    showPercent: { type: Boolean },
    showStar: { type: Boolean },
    starColor: {},
    starSize: {},
    height: {},
    background: {},
    existingRating: {}
  },
  setup(e) {
    return (t, n) => (J(), ge(oI, {
      criteriaStats: t.criteriaStats,
      criterias: t.criterias,
      showPercent: t.showPercent,
      height: t.height,
      background: t.background,
      starColor: t.starColor,
      starSize: t.starSize,
      existingRating: t.existingRating
    }, null, 8, ["criteriaStats", "criterias", "showPercent", "height", "background", "starColor", "starSize", "existingRating"]));
  }
}), aI = ["width", "height"], iI = { mask: "url(#mask0_420_27618)" }, lI = ["fill"], gN = /* @__PURE__ */ se({
  __name: "UIThumbsUpIcon",
  props: {
    fill: { default: "#E0E0E0" },
    width: { default: "20" },
    height: { default: "21" }
  },
  setup(e) {
    return (t, n) => (J(), ve("svg", {
      width: t.width,
      height: t.height,
      viewBox: "0 0 20 21",
      fill: "none",
      xmlns: "http://www.w3.org/2000/svg"
    }, [
      n[0] || (n[0] = fe("mask", {
        id: "mask0_420_27618",
        style: { "mask-type": "alpha" },
        maskUnits: "userSpaceOnUse",
        x: "0",
        y: "0",
        width: "20",
        height: "21"
      }, [
        fe("rect", {
          y: "0.948242",
          width: "20",
          height: "20",
          fill: "#D9D9D9"
        })
      ], -1)),
      fe("g", iI, [
        fe("path", {
          d: "M17.5 7.9482C17.875 7.9482 18.2188 8.10098 18.5312 8.40654C18.8438 8.71209 19 9.05931 19 9.4482V10.6357C19 10.7468 18.9896 10.8475 18.9688 10.9378C18.9479 11.0281 18.9167 11.1218 18.875 11.219L16.3958 17.0315C16.2847 17.3093 16.1042 17.5315 15.8542 17.6982C15.6042 17.8649 15.3194 17.9482 15 17.9482H7C6.58333 17.9482 6.22917 17.8058 5.9375 17.5211C5.64583 17.2364 5.5 16.8788 5.5 16.4482V8.5732C5.5 8.36487 5.54167 8.16695 5.625 7.97945C5.70833 7.79195 5.81944 7.62876 5.95833 7.48987L10.1458 3.30237C10.3958 3.05237 10.7014 2.89265 11.0625 2.8232C11.4236 2.75376 11.7292 2.79542 11.9792 2.9482C12.2986 3.12876 12.5035 3.39265 12.5938 3.73987C12.684 4.08709 12.6944 4.42737 12.625 4.7607L12 7.9482H17.5ZM2.5 17.9482C2.09722 17.9482 1.74653 17.7989 1.44792 17.5003C1.14931 17.2017 1 16.851 1 16.4482V9.4482C1 9.04542 1.14931 8.69473 1.44792 8.39612C1.74653 8.09751 2.09722 7.9482 2.5 7.9482C2.90278 7.9482 3.25347 8.09751 3.55208 8.39612C3.85069 8.69473 4 9.04542 4 9.4482V16.4482C4 16.851 3.85069 17.2017 3.55208 17.5003C3.25347 17.7989 2.90278 17.9482 2.5 17.9482Z",
          fill: t.fill
        }, null, 8, lI)
      ])
    ], 8, aI));
  }
}), sI = ["checked"], uI = { class: "rvx-space-y-space16" }, cI = ["checked", "onChange"], mN = /* @__PURE__ */ se({
  __name: "UIBulkCheckSearch",
  props: {
    loading: { type: Boolean, default: !0 },
    products: {}
  },
  emits: ["searchValue"],
  setup(e, { expose: t, emit: n }) {
    const r = e, o = n, a = ne(""), i = ne(!1), l = ne(null);
    zw(
      l,
      () => {
        i.value = !1;
      }
    );
    const s = U(() => {
      if (a.value === "")
        return r.products;
      const v = r.products.filter((h) => h.name.toLowerCase().includes(a.value.toLowerCase()));
      return v.length === 0 && (console.log("emit searchProduct.value", a.value), o("searchValue", a.value)), v;
    }), u = ne([]), c = (v) => {
      const h = u.value.find((m) => m === v.wp_id);
      if (h) {
        const m = u.value.filter((p) => p !== h);
        u.value = m;
      } else
        u.value.push(v.wp_id);
    }, d = U(() => s.value.length > 0 && u.value.length === s.value.length), f = () => {
      d.value ? u.value = [] : u.value = s.value.map((v) => v.wp_id);
    };
    return t({
      selectedIds: u
    }), (v, h) => (J(), ge(we, { class: "rvx-w-full rvx-relative" }, {
      default: ee(() => [
        $(Iw, {
          modelValue: a.value,
          "onUpdate:modelValue": h[0] || (h[0] = (m) => a.value = m),
          onFocus: h[1] || (h[1] = (m) => i.value = !0)
        }, null, 8, ["modelValue"]),
        i.value ? (J(), ge(we, {
          key: 0,
          ref_key: "showProductDropdownRef",
          ref: l,
          class: "rvx-absolute rvx-top-[40px] rvx-min-h-[150px] rvx-shadow rvx-bg-white rvx-w-full rvx-px-space16 rvx-rounded-md"
        }, {
          default: ee(() => [
            v.loading ? (J(), ge(we, {
              key: 0,
              class: "rvx-grid rvx-place-items-center rvx-pt-space24"
            }, {
              default: ee(() => [
                $(uo)
              ]),
              _: 1
            })) : (J(), ge(we, { key: 1 }, {
              default: ee(() => [
                $(we, { class: "rvx-flex rvx-items-center rvx-gap-space16 rvx-my-space16" }, {
                  default: ee(() => [
                    fe("input", {
                      type: "checkbox",
                      checked: d.value,
                      onChange: f
                    }, null, 40, sI),
                    bn($(Ct, null, {
                      default: ee(() => [
                        je(Re(u.value.length) + " Selected", 1)
                      ]),
                      _: 1
                    }, 512), [
                      [Ks, u.value.length]
                    ])
                  ]),
                  _: 1
                }),
                fe("ul", uI, [
                  (J(!0), ve(He, null, mt(s.value, (m) => (J(), ve("li", {
                    key: m.wp_id,
                    class: "rvx-flex rvx-items-center rvx-gap-space16"
                  }, [
                    fe("input", {
                      type: "checkbox",
                      checked: u.value.includes(m.wp_id),
                      onChange: (p) => c(m)
                    }, null, 40, cI),
                    $(we, { class: "rvx-flex rvx-gap-space8 rvx-items-center" }, {
                      default: ee(() => [
                        qe(v.$slots, "item", { item: m }, () => [
                          $(ua, {
                            class: "!rvx-size-[40px]",
                            imageClass: "!rvx-size-[40px] rvx-rounded-md",
                            src: m.img,
                            alt: "Meer"
                          }, null, 8, ["src"]),
                          $(we, null, {
                            default: ee(() => [
                              $(Ct, null, {
                                default: ee(() => [
                                  je(Re(m.name), 1)
                                ]),
                                _: 2
                              }, 1024),
                              $(Ct, null, {
                                default: ee(() => [
                                  fe("span", null, Re(m == null ? void 0 : m.review), 1),
                                  h[2] || (h[2] = je(" Reviews"))
                                ]),
                                _: 2
                              }, 1024)
                            ]),
                            _: 2
                          }, 1024)
                        ])
                      ]),
                      _: 2
                    }, 1024)
                  ]))), 128))
                ])
              ]),
              _: 3
            }))
          ]),
          _: 3
        }, 512)) : Ie("", !0)
      ]),
      _: 3
    }));
  }
}), fI = { class: "!rvx-text-[14px] rvx-text-warning rvx-font-nunito rvx-m-0" }, dI = 5e3, vI = /* @__PURE__ */ se({
  __name: "UISyncOverlay",
  setup(e) {
    const t = ne(!1), n = ne(!1), r = ne(0), o = ne(0);
    let a;
    const i = async () => {
      var u, c, d, f, v, h, m, p;
      if (t.value = !0, !n.value) {
        n.value = !0;
        try {
          const g = await By({
            name: "data-sync-status"
          });
          r.value = (c = (u = g == null ? void 0 : g.data) == null ? void 0 : u.data) == null ? void 0 : c.progress_status_percentage, o.value = (f = (d = g == null ? void 0 : g.data) == null ? void 0 : d.data) == null ? void 0 : f.sync_stats, (((h = (v = g == null ? void 0 : g.data) == null ? void 0 : v.data) == null ? void 0 : h.progress_status_percentage) === 100 || ((p = (m = g == null ? void 0 : g.data) == null ? void 0 : m.data) == null ? void 0 : p.sync_stats) === 1) && (clearInterval(a), t.value = !1, r.value = 100, o.value = 1, localStorage.setItem("isAlreadySyncSuccess", JSON.stringify(!0)), location.reload());
        } catch (g) {
          console.log(g);
        } finally {
          n.value = !1;
        }
      }
    }, l = () => {
      a = window.setInterval(i, dI);
    }, s = () => {
      clearInterval(a), t.value = !1;
    };
    return yg(() => {
      try {
        const u = localStorage.getItem("isAlreadySyncSuccess");
        (u ? JSON.parse(u) : !1) || l();
      } catch (u) {
        console.log("Error parsing localStorage data:", u);
      }
    }), ct(() => {
      s();
    }), (u, c) => (J(), ge(ga, { to: "#wpcontent" }, [
      t.value ? (J(), ge(we, {
        key: 0,
        class: "rvx-flex rvx-bg-neutral-900/40 rvx-z-10 rvx-p-space16 rvx-fixed rvx-top-0 rvx-left-[160px] rvx-right-[20px] rvx-h-full rvx-w-full"
      }, {
        default: ee(() => [
          $(we, { class: "rvx-w-full rvx-mt-[80px] rvx-mr-[160px] rvx-border rvx-border-warning rvx-rounded-md rvx-bg-warning-50 rvx-p-space16 rvx-h-[100px] rvx-overflow-hidden" }, {
            default: ee(() => [
              $(we, { class: "rvx-flex rvx-justify-between rvx-items-center rvx-gap-space16 rvx-w-full !rvx-mb-space8" }, {
                default: ee(() => [
                  $(we, { class: "rvx-flex rvx-gap-space16" }, {
                    default: ee(() => [
                      $(Et, {
                        "icon-name": "info",
                        class: "rvx-text-warning"
                      }),
                      $(we, null, {
                        default: ee(() => [
                          $(Ct, { class: "rvx-text-warning rvx-font-semibold" }, {
                            default: ee(() => c[0] || (c[0] = [
                              je("We’re upgrading your store to ReviewX-v2.0. Please be patient; the process will only take a few minutes. ")
                            ])),
                            _: 1
                          }),
                          $(Ct, { class: "rvx-text-neutral-800 !rvx-text-[13px]" }, {
                            default: ee(() => c[1] || (c[1] = [
                              je("Once the synchronization is complete, you’ll be able to enjoy all the new features. ")
                            ])),
                            _: 1
                          })
                        ]),
                        _: 1
                      })
                    ]),
                    _: 1
                  }),
                  c[2] || (c[2] = fe("span", { class: "rvx-sync_loader" }, null, -1))
                ]),
                _: 1
              }),
              $(we, { class: "rvx-flex rvx-items-center rvx-gap-space8 rvx-ml-[40px]" }, {
                default: ee(() => [
                  $(Xs, {
                    background: "#FF6D00",
                    height: 8,
                    width: r.value
                  }, null, 8, ["width"]),
                  fe("p", fI, Re(r.value) + "%", 1)
                ]),
                _: 1
              })
            ]),
            _: 1
          })
        ]),
        _: 1
      })) : Ie("", !0)
    ]));
  }
}), yN = /* @__PURE__ */ sn(vI, [["__scopeId", "data-v-65ea4d22"]]), hI = { class: "rvx-w-full rvx-bg-[#D9D9D9] rvx-overflow-hidden" }, bN = /* @__PURE__ */ se({
  __name: "UISweetAlert",
  props: {
    visibility: { type: Boolean, default: !1 },
    modalWrapperClass: {},
    modalClass: {},
    dialogClass: {},
    duration: { default: 5e3 }
  },
  emits: ["close"],
  setup(e, { emit: t }) {
    const n = t, r = e, o = ne(0), a = () => {
      const l = r.duration / 100, s = 100 / l;
      let u = 0;
      const c = setInterval(() => {
        u += 1, o.value = u * s, u >= l && (clearInterval(c), n("close"));
      }, 100);
    };
    return Ne(() => r.visibility, (i, l) => {
      i && a();
    }), (i, l) => (J(), ge(ga, { to: "body" }, [
      $(X(Pa), {
        appear: "",
        show: i.visibility,
        as: "template"
      }, {
        default: ee(() => [
          $(X(fu), {
            as: "div",
            onClose: l[0] || (l[0] = (s) => i.$emit("close")),
            class: "rvx-relative z-10"
          }, {
            default: ee(() => [
              $(X(zr), {
                as: "template",
                enter: "rvx-duration-300 rvx-ease-out",
                "enter-from": "rvx-opacity-0",
                "enter-to": "rvx-opacity-100",
                leave: "rvx-duration-200 ease-in",
                "leave-from": "rvx-opacity-100",
                "leave-to": "rvx-opacity-0"
              }, {
                default: ee(() => [
                  $(we, { class: "rvx-fixed rvx-inset-0 rvx-bg-black/25" })
                ]),
                _: 1
              }),
              $(we, { class: "rvx-fixed rvx-inset-0 rvx-overflow-y-auto" }, {
                default: ee(() => [
                  $(we, { class: "rvx-flex rvx-min-h-full rvx-items-center rvx-justify-center rvx-text-center" }, {
                    default: ee(() => [
                      $(X(zr), {
                        as: "template",
                        enter: "rvx-duration-300 ease-out",
                        "enter-from": "rvx-opacity-0 rvx-scale-95",
                        "enter-to": "rvx-opacity-100 rvx-scale-100",
                        leave: "rvx-duration-200 rvx-ease-in",
                        "leave-from": "rvx-opacity-100 rvx-scale-100",
                        "leave-to": "rvx-opacity-0 rvx-scale-95"
                      }, {
                        default: ee(() => [
                          $(X(du), {
                            class: xe(["rvx-min-[476px] rvx-transform rvx-rounded-t-[7px] rvx-rounded-b-[12px] rvx-bg-white rvx-text-left rvx-align-middle rvx-shadow-xl rvx-transition-al rvx-overflow-hidden", i.modalWrapperClass])
                          }, {
                            default: ee(() => [
                              fe("div", hI, [
                                fe("div", {
                                  style: vn({ width: o.value + "%" }),
                                  class: "progress rvx-bg-primary-70 rvx-h-space8"
                                }, null, 4)
                              ]),
                              $(we, {
                                class: xe(["rvx-bg-white rvx-rounded-lg rvx-px-space12", i.modalClass])
                              }, {
                                default: ee(() => [
                                  qe(i.$slots, "default", {}, () => [
                                    l[1] || (l[1] = fe("h1", null, "How would you like to add reviews?", -1))
                                  ])
                                ]),
                                _: 3
                              }, 8, ["class"])
                            ]),
                            _: 3
                          }, 8, ["class"])
                        ]),
                        _: 3
                      })
                    ]),
                    _: 3
                  })
                ]),
                _: 3
              })
            ]),
            _: 3
          })
        ]),
        _: 3
      }, 8, ["show"])
    ]));
  }
}), wN = /* @__PURE__ */ se({
  __name: "UISingleDatePicker",
  props: /* @__PURE__ */ rn({
    minDate: {},
    maxDate: {}
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(e) {
    const t = Wt(e, "modelValue"), n = e, r = ne();
    return Ne(t, (o, a) => {
      if (o !== a) {
        const i = na(o).format("YYYY-MM-DD");
        r.value = i;
      }
    }), (o, a) => (J(), ge(X(ug), {
      modelValue: t.value,
      "onUpdate:modelValue": a[0] || (a[0] = (i) => t.value = i),
      "min-date": n.minDate,
      "max-date": n.maxDate
    }, {
      default: ee(({ togglePopover: i }) => [
        $(Qi, {
          class: "rvx-w-full !rvx-rounded-md rvx-h-[38px]",
          onClick: i,
          "icon-name": "calendar_month",
          "have-icon": !0,
          variant: "gray"
        }, {
          default: ee(() => [
            je(Re(r.value ? `${r.value}` : "Select Date"), 1)
          ]),
          _: 2
        }, 1032, ["onClick"])
      ]),
      _: 1
    }, 8, ["modelValue", "min-date", "max-date"]));
  }
}), xN = /* @__PURE__ */ se({
  __name: "UIGrowthPlan",
  setup(e) {
    return (t, n) => (J(), ge(we, { class: "rvx-flex rvx-items-center rvx-gap-space8 growth-plan-text-color" }, {
      default: ee(() => [
        qe(t.$slots, "icon", {}, () => [
          $(nw)
        ]),
        qe(t.$slots, "content", {}, () => [
          $(Ct, { class: "!rvx-text-[14px] rvx-text-neutral-600" }, {
            default: ee(() => n[0] || (n[0] = [
              je(" Available on Higher Plans ")
            ])),
            _: 1
          })
        ])
      ]),
      _: 3
    }));
  }
}), pI = /* @__PURE__ */ se({
  __name: "UIToolTip",
  props: {
    placement: { default: "auto" },
    gap: { default: 8 },
    width: { default: 200 },
    tooltipContainerClass: {}
  },
  setup(e) {
    const t = e, n = ne(!1), r = ne(null), o = ne("auto");
    let a = null;
    const i = () => {
      u(), n.value = !0, t.placement === "auto" && c();
    }, l = () => {
      n.value = !1;
    }, s = () => {
      a = window.setTimeout(() => {
        l();
      }, 300);
    }, u = () => {
      a && (clearTimeout(a), a = null);
    }, c = () => {
      const v = r.value;
      if (!v)
        return;
      const h = v.parentElement, m = h == null ? void 0 : h.getBoundingClientRect(), p = v.getBoundingClientRect();
      if (m) {
        const g = m.top, y = window.innerHeight - m.bottom, x = m.left, b = window.innerWidth - m.right;
        y > p.height ? o.value = "bottom" : g > p.height ? o.value = "top" : b > p.width ? o.value = "right" : x > p.width ? o.value = "left" : o.value = "auto";
      }
    }, d = U(() => t.placement === "auto" ? o.value : t.placement);
    Ne(n, (v) => {
      v && t.placement === "auto" && c();
    });
    const f = (v) => {
      r.value && !r.value.contains(v.target) && (n.value = !1);
    };
    return We(() => {
      document.addEventListener("click", f);
    }), Gs(() => {
      document.removeEventListener("click", f);
    }), (v, h) => (J(), ve("div", {
      class: "tooltip-container",
      onMouseenter: i,
      onMouseleave: s
    }, [
      qe(v.$slots, "default", {}, void 0, !0),
      bn(fe("div", {
        ref_key: "tooltip",
        ref: r,
        class: xe(["tooltip-content", d.value, v.tooltipContainerClass]),
        onMouseenter: u,
        onMouseleave: s,
        style: vn({
          "--tooltip-gap": `${v.gap}px`,
          width: v.width ? `${v.width}px` : "auto"
        })
      }, [
        qe(v.$slots, "tooltip", {}, void 0, !0),
        n.value ? (J(), ve("div", {
          key: 0,
          class: xe(["tooltip-arrow", d.value])
        }, null, 2)) : Ie("", !0)
      ], 38), [
        [Ks, n.value]
      ])
    ], 32));
  }
}), AN = /* @__PURE__ */ sn(pI, [["__scopeId", "data-v-94c34284"]]);
export {
  vN as CollapseExpAnimation,
  sN as UIAdminMediaUpload,
  BI as UIAggregations,
  ua as UIAvatar,
  FI as UIBadge,
  qI as UIBrandLogo,
  VI as UIBrandLogoWithText,
  mN as UIBulkCheckSearch,
  X1 as UIButton,
  Qi as UIButtonOutline,
  we as UICard,
  cN as UICarousel,
  _I as UICheckbox,
  zI as UIColorPickerGroup,
  dN as UIDatePicker,
  HI as UIDisclosure,
  YI as UIDisclosureToggle,
  QI as UIDivider,
  WI as UIDropdown,
  GI as UIDropdownAction,
  lN as UIDropdownSearch,
  $I as UIErrorMessage,
  xN as UIGrowthPlan,
  jI as UIHelpBanner,
  Et as UIIcon,
  fN as UIImagePreviewModal,
  ks as UIInput,
  XI as UIInputField,
  ZI as UIInputFieldFloat,
  KI as UIInputFloat,
  tN as UILine,
  uN as UIMediaUpload,
  hN as UIMenu,
  sw as UIModal,
  nN as UIModuleSettingActions,
  pN as UIMultiCriteriaAggregations,
  qb as UIPopover,
  nw as UIProIcon,
  mu as UIProLockIcon,
  Xs as UIProgressBar,
  JI as UIRadioGroup,
  rN as UIReviewViewMode,
  Iw as UISearchWithIcon,
  oN as UISideDrawer,
  wN as UISingleDatePicker,
  Uw as UISkeletonWrap,
  uo as UISpinner,
  fv as UIStarIcon,
  bN as UISweetAlert,
  Fb as UISwitch,
  yN as UISyncOverlay,
  aN as UITableSkeletonLoader,
  eN as UITextarea,
  gN as UIThumbsUpIcon,
  iN as UITiptapEditor,
  AN as UIToolTip,
  Ct as UITypography
};
