var x = (e, t, n) => new Promise((r, s) => {
  var a = (i) => {
    try {
      o(n.next(i));
    } catch (c) {
      s(c);
    }
  }, l = (i) => {
    try {
      o(n.throw(i));
    } catch (c) {
      s(c);
    }
  }, o = (i) => i.done ? r(i.value) : Promise.resolve(i.value).then(a, l);
  o((n = n.apply(e, t)).next());
});
const oe = "ui-skeleton", ce = (
  /* ui-skeleton */
  { allRenderFn: !0, appendChildSlotFix: !1, asyncLoading: !0, asyncQueue: !1, attachStyles: !0, cloneNodeFix: !1, cmpDidLoad: !1, cmpDidRender: !1, cmpDidUnload: !1, cmpDidUpdate: !1, cmpShouldUpdate: !1, cmpWillLoad: !1, cmpWillRender: !1, cmpWillUpdate: !1, connectedCallback: !1, constructableCSS: !0, cssAnnotations: !0, devTools: !1, disconnectedCallback: !1, element: !1, event: !1, experimentalScopedSlotChanges: !1, experimentalSlotFixes: !1, formAssociated: !1, hasRenderFn: !0, hostListener: !1, hostListenerTarget: !1, hostListenerTargetBody: !1, hostListenerTargetDocument: !1, hostListenerTargetParent: !1, hostListenerTargetWindow: !1, hotModuleReplacement: !1, hydrateClientSide: !1, hydrateServerSide: !1, hydratedAttribute: !1, hydratedClass: !0, hydratedSelectorName: "hydrated", initializeNextTick: !1, invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !0, lifecycle: !1, lifecycleDOMEvents: !1, member: !0, method: !1, mode: !1, observeAttribute: !0, profile: !1, prop: !0, propBoolean: !0, propMutable: !1, propNumber: !0, propString: !0, reflect: !1, scoped: !1, scopedSlotTextContentFix: !1, scriptDataOpts: !1, shadowDelegatesFocus: !1, shadowDom: !1, slot: !1, slotChildNodesFix: !1, slotRelocation: !1, state: !1, style: !0, svg: !1, taskQueue: !0, transformTagName: !1, updatable: !0, vdomAttribute: !0, vdomClass: !0, vdomFunctional: !1, vdomKey: !0, vdomListener: !1, vdomPropOrAttr: !1, vdomRef: !1, vdomRender: !0, vdomStyle: !1, vdomText: !0, vdomXlink: !1, watchCallback: !0 }
);
var $e = Object.defineProperty, fe = (e, t) => {
  for (var n in t)
    $e(e, n, { get: t[n], enumerable: !0 });
}, B = /* @__PURE__ */ new WeakMap(), b = (e) => B.get(e), Ke = (e, t) => B.set(t.$lazyInstance$ = e, t), ue = (e, t) => {
  const n = {
    $flags$: 0,
    $hostElement$: e,
    $cmpMeta$: t,
    $instanceValues$: /* @__PURE__ */ new Map()
  };
  return n.$onReadyPromise$ = new Promise((r) => n.$onReadyResolve$ = r), e["s-p"] = [], e["s-rc"] = [], B.set(e, n);
}, w = (e, t) => (0, console.error)(e, t), _ = /* @__PURE__ */ new Map(), de = (e, t, n) => {
  const r = e.$tagName$.replace(/-/g, "_"), s = e.$lazyBundleId$;
  if (!s)
    return;
  const a = _.get(s);
  if (a)
    return a[r];
  {
    const l = (o) => (_.set(s, o), o[r]);
    switch (s) {
      case "ui-skeleton":
        return import(
          /* webpackMode: "lazy" */
          "./ui-skeleton-CJbkvgG7.js"
        ).then(l, w);
    }
  }
  return import(
    /* @vite-ignore */
    /* webpackInclude: /\.entry\.js$/ */
    /* webpackExclude: /\.system\.entry\.js$/ */
    /* webpackMode: "lazy" */
    `./${s}.entry.js`
  ).then((l) => (_.set(s, l), l[r]), w);
}, P = /* @__PURE__ */ new Map(), me = "{visibility:hidden}.hydrated{visibility:inherit}", G = "slot-fb{display:contents}slot-fb[hidden]{display:none}", D = typeof window != "undefined" ? window : {}, y = D.document || { head: {} }, h = {
  $flags$: 0,
  $resourcesUrl$: "",
  jmp: (e) => e(),
  raf: (e) => requestAnimationFrame(e),
  ael: (e, t, n, r) => e.addEventListener(t, n, r),
  rel: (e, t, n, r) => e.removeEventListener(t, n, r),
  ce: (e, t) => new CustomEvent(e, t)
}, pe = (e) => Promise.resolve(e), he = /* @__PURE__ */ (() => {
  try {
    return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
  } catch (e) {
  }
  return !1;
})(), j = !1, z = [], J = [], ve = (e, t) => (n) => {
  e.push(n), j || (j = !0, h.$flags$ & 4 ? H(N) : h.raf(N));
}, F = (e) => {
  for (let t = 0; t < e.length; t++)
    try {
      e[t](performance.now());
    } catch (n) {
      w(n);
    }
  e.length = 0;
}, N = () => {
  F(z), F(J), (j = z.length > 0) && h.raf(N);
}, H = (e) => pe().then(e), ge = /* @__PURE__ */ ve(J), q = {}, K = (e) => (e = typeof e, e === "object" || e === "function");
function X(e) {
  var t, n, r;
  return (r = (n = (t = e.head) == null ? void 0 : t.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : n.getAttribute("content")) != null ? r : void 0;
}
var ye = {};
fe(ye, {
  err: () => R,
  map: () => Se,
  ok: () => C,
  unwrap: () => be,
  unwrapErr: () => ke
});
var C = (e) => ({
  isOk: !0,
  isErr: !1,
  value: e
}), R = (e) => ({
  isOk: !1,
  isErr: !0,
  value: e
});
function Se(e, t) {
  if (e.isOk) {
    const n = t(e.value);
    return n instanceof Promise ? n.then((r) => C(r)) : C(n);
  }
  if (e.isErr) {
    const n = e.value;
    return R(n);
  }
  throw "should never get here";
}
var be = (e) => {
  if (e.isOk)
    return e.value;
  throw e.value;
}, ke = (e) => {
  if (e.isErr)
    return e.value;
  throw e.value;
}, S = (e, t = "") => () => {
}, we = (e, t) => () => {
}, Ee = (e, t, ...n) => {
  let r = null, s = null, a = !1, l = !1;
  const o = [], i = ($) => {
    for (let f = 0; f < $.length; f++)
      r = $[f], Array.isArray(r) ? i(r) : r != null && typeof r != "boolean" && ((a = typeof e != "function" && !K(r)) && (r = String(r)), a && l ? o[o.length - 1].$text$ += r : o.push(a ? U(null, r) : r), l = a);
  };
  if (i(n), t) {
    t.key && (s = t.key);
    {
      const $ = t.className || t.class;
      $ && (t.class = typeof $ != "object" ? $ : Object.keys($).filter((f) => $[f]).join(" "));
    }
  }
  const c = U(e, null);
  return c.$attrs$ = t, o.length > 0 && (c.$children$ = o), c.$key$ = s, c;
}, U = (e, t) => {
  const n = {
    $flags$: 0,
    $tag$: e,
    $text$: t,
    $elm$: null,
    $children$: null
  };
  return n.$attrs$ = null, n.$key$ = null, n;
}, xe = {}, Te = (e) => e && e.$tag$ === xe, Le = (e, t) => e != null && !K(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, Pe = (e, t, n) => {
  const r = h.ce(t, n);
  return e.dispatchEvent(r), r;
}, W = /* @__PURE__ */ new WeakMap(), Ae = (e, t, n) => {
  let r = P.get(e);
  he && n ? (r = r || new CSSStyleSheet(), typeof r == "string" ? r = t : r.replaceSync(t)) : r = t, P.set(e, r);
}, Oe = (e, t, n) => {
  var r;
  const s = Z(t), a = P.get(s);
  if (e = e.nodeType === 11 ? e : y, a)
    if (typeof a == "string") {
      e = e.head || e;
      let l = W.get(e), o;
      if (l || W.set(e, l = /* @__PURE__ */ new Set()), !l.has(s)) {
        {
          o = y.createElement("style"), o.innerHTML = a;
          const i = (r = h.$nonce$) != null ? r : X(y);
          i != null && o.setAttribute("nonce", i), e.insertBefore(o, e.querySelector("link"));
        }
        t.$flags$ & 4 && (o.innerHTML += G), l && l.add(s);
      }
    } else
      e.adoptedStyleSheets.includes(a) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, a]);
  return s;
}, _e = (e) => {
  const t = e.$cmpMeta$, n = e.$hostElement$, r = S("attachStyles", t.$tagName$);
  Oe(
    n.getRootNode(),
    t
  ), r();
}, Z = (e, t) => "sc-" + e.$tagName$, M = (e, t, n, r, s, a) => {
  if (n !== r && (t.toLowerCase(), t === "class")) {
    const l = e.classList, o = Q(n), i = Q(r);
    l.remove(...o.filter((c) => c && !i.includes(c))), l.add(...i.filter((c) => c && !o.includes(c)));
  }
}, je = /\s/, Q = (e) => e ? e.split(je) : [], V = (e, t, n) => {
  const r = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, s = e && e.$attrs$ || q, a = t.$attrs$ || q;
  for (const l of Y(Object.keys(s)))
    l in a || M(r, l, s[l], void 0);
  for (const l of Y(Object.keys(a)))
    M(r, l, s[l], a[l]);
};
function Y(e) {
  return e.includes("ref") ? (
    // we need to sort these to ensure that `'ref'` is the last attr
    [...e.filter((t) => t !== "ref"), "ref"]
  ) : (
    // no need to sort, return the original array
    e
  );
}
var ee, A = (e, t, n, r) => {
  const s = t.$children$[n];
  let a = 0, l, o;
  if (s.$text$ !== null)
    l = s.$elm$ = y.createTextNode(s.$text$);
  else if (l = s.$elm$ = y.createElement(
    s.$tag$
  ), V(null, s), s.$children$)
    for (a = 0; a < s.$children$.length; ++a)
      o = A(e, s, a), o && l.appendChild(o);
  return l["s-hn"] = ee, l;
}, te = (e, t, n, r, s, a) => {
  let l = e, o;
  for (; s <= a; ++s)
    r[s] && (o = A(null, n, s), o && (r[s].$elm$ = o, L(l, o, t)));
}, se = (e, t, n) => {
  for (let r = t; r <= n; ++r) {
    const s = e[r];
    if (s) {
      const a = s.$elm$;
      a && a.remove();
    }
  }
}, Ne = (e, t, n, r, s = !1) => {
  let a = 0, l = 0, o = 0, i = 0, c = t.length - 1, $ = t[0], f = t[c], u = r.length - 1, d = r[0], m = r[u], p, v;
  for (; a <= c && l <= u; )
    if ($ == null)
      $ = t[++a];
    else if (f == null)
      f = t[--c];
    else if (d == null)
      d = r[++l];
    else if (m == null)
      m = r[--u];
    else if (T($, d, s))
      k($, d, s), $ = t[++a], d = r[++l];
    else if (T(f, m, s))
      k(f, m, s), f = t[--c], m = r[--u];
    else if (T($, m, s))
      k($, m, s), L(e, $.$elm$, f.$elm$.nextSibling), $ = t[++a], m = r[--u];
    else if (T(f, d, s))
      k(f, d, s), L(e, f.$elm$, $.$elm$), f = t[--c], d = r[++l];
    else {
      for (o = -1, i = a; i <= c; ++i)
        if (t[i] && t[i].$key$ !== null && t[i].$key$ === d.$key$) {
          o = i;
          break;
        }
      o >= 0 ? (v = t[o], v.$tag$ !== d.$tag$ ? p = A(t && t[l], n, o) : (k(v, d, s), t[o] = void 0, p = v.$elm$), d = r[++l]) : (p = A(t && t[l], n, l), d = r[++l]), p && L($.$elm$.parentNode, p, $.$elm$);
    }
  a > c ? te(
    e,
    r[u + 1] == null ? null : r[u + 1].$elm$,
    n,
    r,
    l,
    u
  ) : l > u && se(t, a, c);
}, T = (e, t, n = !1) => e.$tag$ === t.$tag$ ? n ? !0 : e.$key$ === t.$key$ : !1, k = (e, t, n = !1) => {
  const r = t.$elm$ = e.$elm$, s = e.$children$, a = t.$children$, l = t.$text$;
  l === null ? (V(e, t), s !== null && a !== null ? Ne(r, s, t, a, n) : a !== null ? (e.$text$ !== null && (r.textContent = ""), te(r, null, t, a, 0, a.length - 1)) : s !== null && se(s, 0, s.length - 1)) : e.$text$ !== l && (r.data = l);
}, L = (e, t, n) => e == null ? void 0 : e.insertBefore(t, n), Ce = (e, t, n = !1) => {
  const r = e.$hostElement$, s = e.$vnode$ || U(null, null), a = Te(t) ? t : Ee(null, null, t);
  if (ee = r.tagName, n && a.$attrs$)
    for (const l of Object.keys(a.$attrs$))
      r.hasAttribute(l) && !["key", "ref", "style", "class"].includes(l) && (a.$attrs$[l] = r[l]);
  a.$tag$ = null, a.$flags$ |= 4, e.$vnode$ = a, a.$elm$ = s.$elm$ = r, k(s, a, n);
}, ne = (e, t) => {
  t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((n) => e.$onRenderResolve$ = n));
}, I = (e, t) => {
  if (e.$flags$ |= 16, e.$flags$ & 4) {
    e.$flags$ |= 512;
    return;
  }
  return ne(e, e.$ancestorComponent$), ge(() => Ue(e, t));
}, Ue = (e, t) => {
  const n = e.$hostElement$, r = S("scheduleUpdate", e.$cmpMeta$.$tagName$), s = e.$lazyInstance$;
  if (!s)
    throw new Error(
      `Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
    );
  let a;
  return r(), Be(a, () => He(e, s, t));
}, Be = (e, t) => De(e) ? e.then(t).catch((n) => {
  console.error(n), t();
}) : t(), De = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", He = (e, t, n) => x(void 0, null, function* () {
  var r;
  const s = e.$hostElement$, a = S("update", e.$cmpMeta$.$tagName$), l = s["s-rc"];
  n && _e(e);
  const o = S("render", e.$cmpMeta$.$tagName$);
  Ie(e, t, s, n), l && (l.map((i) => i()), s["s-rc"] = void 0), o(), a();
  {
    const i = (r = s["s-p"]) != null ? r : [], c = () => ze(e);
    i.length === 0 ? c() : (Promise.all(i).then(c), e.$flags$ |= 4, i.length = 0);
  }
}), Ie = (e, t, n, r) => {
  try {
    t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Ce(e, t, r);
  } catch (s) {
    w(s, e.$hostElement$);
  }
  return null;
}, ze = (e) => {
  const t = e.$cmpMeta$.$tagName$, n = e.$hostElement$, r = S("postUpdate", t), s = e.$ancestorComponent$;
  e.$flags$ & 64 ? r() : (e.$flags$ |= 64, le(n), r(), e.$onReadyResolve$(n), s || re()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && H(() => I(e, !1)), e.$flags$ &= -517;
}, re = (e) => {
  le(y.documentElement), H(() => Pe(D, "appload", { detail: { namespace: oe } }));
}, le = (e) => {
  var t;
  return e.classList.add((t = ce.hydratedSelectorName) != null ? t : "hydrated");
}, Fe = (e, t) => b(e).$instanceValues$.get(t), qe = (e, t, n, r) => {
  const s = b(e);
  if (!s)
    throw new Error(
      `Couldn't find host element for "${r.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
    );
  const a = s.$hostElement$, l = s.$instanceValues$.get(t), o = s.$flags$, i = s.$lazyInstance$;
  n = Le(n, r.$members$[t][0]);
  const c = Number.isNaN(l) && Number.isNaN(n), $ = n !== l && !c;
  if ((!(o & 8) || l === void 0) && $ && (s.$instanceValues$.set(t, n), i)) {
    if (r.$watchers$ && o & 128) {
      const f = r.$watchers$[t];
      f && f.map((u) => {
        try {
          i[u](n, l, t);
        } catch (d) {
          w(d, a);
        }
      });
    }
    (o & 18) === 2 && I(s, !1);
  }
}, ae = (e, t, n) => {
  var r, s;
  const a = e.prototype;
  if (t.$members$ || t.$watchers$ || e.watchers) {
    e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
    const l = Object.entries((r = t.$members$) != null ? r : {});
    if (l.map(([o, [i]]) => {
      (i & 31 || n & 2 && i & 32) && Object.defineProperty(a, o, {
        get() {
          return Fe(this, o);
        },
        set(c) {
          qe(this, o, c, t);
        },
        configurable: !0,
        enumerable: !0
      });
    }), n & 1) {
      const o = /* @__PURE__ */ new Map();
      a.attributeChangedCallback = function(i, c, $) {
        h.jmp(() => {
          var f;
          const u = o.get(i);
          if (this.hasOwnProperty(u))
            $ = this[u], delete this[u];
          else {
            if (a.hasOwnProperty(u) && typeof this[u] == "number" && this[u] == $)
              return;
            if (u == null) {
              const d = b(this), m = d == null ? void 0 : d.$flags$;
              if (m && !(m & 8) && m & 128 && $ !== c) {
                const p = d.$lazyInstance$, v = (f = t.$watchers$) == null ? void 0 : f[i];
                v == null || v.forEach((g) => {
                  p[g] != null && p[g].call(p, $, c, i);
                });
              }
              return;
            }
          }
          this[u] = $ === null && typeof this[u] == "boolean" ? !1 : $;
        });
      }, e.observedAttributes = Array.from(
        /* @__PURE__ */ new Set([
          ...Object.keys((s = t.$watchers$) != null ? s : {}),
          ...l.filter(
            ([i, c]) => c[0] & 15
            /* HasAttribute */
          ).map(([i, c]) => {
            const $ = c[1] || i;
            return o.set($, i), $;
          })
        ])
      );
    }
  }
  return e;
}, We = (e, t, n, r) => x(void 0, null, function* () {
  let s;
  if (!(t.$flags$ & 32)) {
    if (t.$flags$ |= 32, n.$lazyBundleId$) {
      const i = de(n);
      if (i && "then" in i) {
        const $ = we();
        s = yield i, $();
      } else
        s = i;
      if (!s)
        throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);
      s.isProxied || (n.$watchers$ = s.watchers, ae(
        s,
        n,
        2
        /* proxyState */
      ), s.isProxied = !0);
      const c = S("createInstance", n.$tagName$);
      t.$flags$ |= 8;
      try {
        new s(t);
      } catch ($) {
        w($);
      }
      t.$flags$ &= -9, t.$flags$ |= 128, c();
    } else {
      s = e.constructor;
      const i = e.localName;
      customElements.whenDefined(i).then(
        () => t.$flags$ |= 128
        /* isWatchReady */
      );
    }
    if (s && s.style) {
      let i;
      typeof s.style == "string" && (i = s.style);
      const c = Z(n);
      if (!P.has(c)) {
        const $ = S("registerStyles", n.$tagName$);
        Ae(c, i, !!(n.$flags$ & 1)), $();
      }
    }
  }
  const a = t.$ancestorComponent$, l = () => I(t, !0);
  a && a["s-rc"] ? a["s-rc"].push(l) : l();
}), Me = (e) => {
}, Qe = (e) => {
  if (!(h.$flags$ & 1)) {
    const t = b(e), n = t.$cmpMeta$, r = S("connectedCallback", n.$tagName$);
    if (t.$flags$ & 1)
      t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => Me());
    else {
      t.$flags$ |= 1;
      {
        let s = e;
        for (; s = s.parentNode || s.host; )
          if (s["s-p"]) {
            ne(t, t.$ancestorComponent$ = s);
            break;
          }
      }
      n.$members$ && Object.entries(n.$members$).map(([s, [a]]) => {
        if (a & 31 && e.hasOwnProperty(s)) {
          const l = e[s];
          delete e[s], e[s] = l;
        }
      }), We(e, t, n);
    }
    r();
  }
}, Ye = (e) => {
}, Ge = (e) => x(void 0, null, function* () {
  if (!(h.$flags$ & 1)) {
    const t = b(e);
    t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => Ye());
  }
}), Xe = (e, t = {}) => {
  var n;
  const r = S(), s = [], a = t.exclude || [], l = D.customElements, o = y.head, i = /* @__PURE__ */ o.querySelector("meta[charset]"), c = /* @__PURE__ */ y.createElement("style"), $ = [];
  let f, u = !0;
  Object.assign(h, t), h.$resourcesUrl$ = new URL(t.resourcesUrl || "./", y.baseURI).href;
  let d = !1;
  if (e.map((m) => {
    m[1].map((p) => {
      var v;
      const g = {
        $flags$: p[0],
        $tagName$: p[1],
        $members$: p[2],
        $listeners$: p[3]
      };
      g.$flags$ & 4 && (d = !0), g.$members$ = p[2], g.$watchers$ = (v = p[4]) != null ? v : {};
      const E = g.$tagName$, ie = class extends HTMLElement {
        // StencilLazyHost
        constructor(O) {
          super(O), this.hasRegisteredEventListeners = !1, O = this, ue(O, g);
        }
        connectedCallback() {
          b(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), f && (clearTimeout(f), f = null), u ? $.push(this) : h.jmp(() => Qe(this));
        }
        disconnectedCallback() {
          h.jmp(() => Ge(this));
        }
        componentOnReady() {
          return b(this).$onReadyPromise$;
        }
      };
      g.$lazyBundleId$ = m[0], !a.includes(E) && !l.get(E) && (s.push(E), l.define(
        E,
        ae(
          ie,
          g,
          1
          /* isElementConstructor */
        )
      ));
    });
  }), s.length > 0 && (d && (c.textContent += G), c.textContent += s.sort() + me, c.innerHTML.length)) {
    c.setAttribute("data-styles", "");
    const m = (n = h.$nonce$) != null ? n : X(y);
    m != null && c.setAttribute("nonce", m), o.insertBefore(c, i ? i.nextSibling : o.firstChild);
  }
  u = !1, $.length ? $.map((m) => m.connectedCallback()) : h.jmp(() => f = setTimeout(re, 30)), r();
};
export {
  xe as H,
  Xe as b,
  Ee as h,
  pe as p,
  Ke as r
};
