var __create = Object.create;
var __getProtoOf = Object.getPrototypeOf;
var __defProp = Object.defineProperty;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __toESM = (mod, isNodeMode, target) => {
target = mod != null ? __create(__getProtoOf(mod)) : {};
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
for (let key of __getOwnPropNames(mod))
if (!__hasOwnProp.call(to, key))
__defProp(to, key, {
get: () => mod[key],
enumerable: true
});
return to;
};
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
// node_modules/franken-ui/dist/js/core.iife.js
var require_core_iife = __commonJS((exports, module) => {
var FRANKENUICORE = function(E) {
var Dr;
const Qi = globalThis, ts = Qi.ShadowRoot && (Qi.ShadyCSS === undefined || Qi.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Bs = Symbol(), Xn = new WeakMap;
let js = class {
constructor(n, a, h) {
if (this._$cssResult$ = true, h !== Bs)
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
this.cssText = n, this.t = a;
}
get styleSheet() {
let n = this.o;
const a = this.t;
if (ts && n === undefined) {
const h = a !== undefined && a.length === 1;
h && (n = Xn.get(a)), n === undefined && ((this.o = n = new CSSStyleSheet).replaceSync(this.cssText), h && Xn.set(a, n));
}
return n;
}
toString() {
return this.cssText;
}
};
const Qn = (f) => new js(typeof f == "string" ? f : f + "", undefined, Bs), Wa = (f, ...n) => {
const a = f.length === 1 ? f[0] : n.reduce((h, c, m) => h + ((p) => {
if (p._$cssResult$ === true)
return p.cssText;
if (typeof p == "number")
return p;
throw Error("Value passed to 'css' function must be a 'css' function result: " + p + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
})(c) + f[m + 1], f[0]);
return new js(a, f, Bs);
}, tr = (f, n) => {
if (ts)
f.adoptedStyleSheets = n.map((a) => a instanceof CSSStyleSheet ? a : a.styleSheet);
else
for (const a of n) {
const h = document.createElement("style"), c = Qi.litNonce;
c !== undefined && h.setAttribute("nonce", c), h.textContent = a.cssText, f.appendChild(h);
}
}, Rs = ts ? (f) => f : (f) => f instanceof CSSStyleSheet ? ((n) => {
let a = "";
for (const h of n.cssRules)
a += h.cssText;
return Qn(a);
})(f) : f;
const { is: qa, defineProperty: Ya, getOwnPropertyDescriptor: Va, getOwnPropertyNames: Ja, getOwnPropertySymbols: Ka, getPrototypeOf: Ga } = Object, ge = globalThis, er = ge.trustedTypes, Za = er ? er.emptyScript : "", zs = ge.reactiveElementPolyfillSupport, bi = (f, n) => f, yi = { toAttribute(f, n) {
switch (n) {
case Boolean:
f = f ? Za : null;
break;
case Object:
case Array:
f = f == null ? f : JSON.stringify(f);
}
return f;
}, fromAttribute(f, n) {
let a = f;
switch (n) {
case Boolean:
a = f !== null;
break;
case Number:
a = f === null ? null : Number(f);
break;
case Object:
case Array:
try {
a = JSON.parse(f);
} catch {
a = null;
}
}
return a;
} }, es = (f, n) => !qa(f, n), ir = { attribute: true, type: String, converter: yi, reflect: false, hasChanged: es };
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), ge.litPropertyMetadata ?? (ge.litPropertyMetadata = new WeakMap);
let Ae = class extends HTMLElement {
static addInitializer(n) {
this._$Ei(), (this.l ?? (this.l = [])).push(n);
}
static get observedAttributes() {
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
}
static createProperty(n, a = ir) {
if (a.state && (a.attribute = false), this._$Ei(), this.elementProperties.set(n, a), !a.noAccessor) {
const h = Symbol(), c = this.getPropertyDescriptor(n, h, a);
c !== undefined && Ya(this.prototype, n, c);
}
}
static getPropertyDescriptor(n, a, h) {
const { get: c, set: m } = Va(this.prototype, n) ?? { get() {
return this[a];
}, set(p) {
this[a] = p;
} };
return { get() {
return c == null ? undefined : c.call(this);
}, set(p) {
const k = c == null ? undefined : c.call(this);
m.call(this, p), this.requestUpdate(n, k, h);
}, configurable: true, enumerable: true };
}
static getPropertyOptions(n) {
return this.elementProperties.get(n) ?? ir;
}
static _$Ei() {
if (this.hasOwnProperty(bi("elementProperties")))
return;
const n = Ga(this);
n.finalize(), n.l !== undefined && (this.l = [...n.l]), this.elementProperties = new Map(n.elementProperties);
}
static finalize() {
if (this.hasOwnProperty(bi("finalized")))
return;
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(bi("properties"))) {
const a = this.properties, h = [...Ja(a), ...Ka(a)];
for (const c of h)
this.createProperty(c, a[c]);
}
const n = this[Symbol.metadata];
if (n !== null) {
const a = litPropertyMetadata.get(n);
if (a !== undefined)
for (const [h, c] of a)
this.elementProperties.set(h, c);
}
this._$Eh = new Map;
for (const [a, h] of this.elementProperties) {
const c = this._$Eu(a, h);
c !== undefined && this._$Eh.set(c, a);
}
this.elementStyles = this.finalizeStyles(this.styles);
}
static finalizeStyles(n) {
const a = [];
if (Array.isArray(n)) {
const h = new Set(n.flat(1 / 0).reverse());
for (const c of h)
a.unshift(Rs(c));
} else
n !== undefined && a.push(Rs(n));
return a;
}
static _$Eu(n, a) {
const h = a.attribute;
return h === false ? undefined : typeof h == "string" ? h : typeof n == "string" ? n.toLowerCase() : undefined;
}
constructor() {
super(), this._$Ep = undefined, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
}
_$Ev() {
var n;
this._$ES = new Promise((a) => this.enableUpdating = a), this._$AL = new Map, this._$E_(), this.requestUpdate(), (n = this.constructor.l) == null || n.forEach((a) => a(this));
}
addController(n) {
var a;
(this._$EO ?? (this._$EO = new Set)).add(n), this.renderRoot !== undefined && this.isConnected && ((a = n.hostConnected) == null || a.call(n));
}
removeController(n) {
var a;
(a = this._$EO) == null || a.delete(n);
}
_$E_() {
const n = new Map, a = this.constructor.elementProperties;
for (const h of a.keys())
this.hasOwnProperty(h) && (n.set(h, this[h]), delete this[h]);
n.size > 0 && (this._$Ep = n);
}
createRenderRoot() {
const n = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
return tr(n, this.constructor.elementStyles), n;
}
connectedCallback() {
var n;
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), (n = this._$EO) == null || n.forEach((a) => {
var h;
return (h = a.hostConnected) == null ? undefined : h.call(a);
});
}
enableUpdating(n) {
}
disconnectedCallback() {
var n;
(n = this._$EO) == null || n.forEach((a) => {
var h;
return (h = a.hostDisconnected) == null ? undefined : h.call(a);
});
}
attributeChangedCallback(n, a, h) {
this._$AK(n, h);
}
_$EC(n, a) {
var m;
const h = this.constructor.elementProperties.get(n), c = this.constructor._$Eu(n, h);
if (c !== undefined && h.reflect === true) {
const p = (((m = h.converter) == null ? undefined : m.toAttribute) !== undefined ? h.converter : yi).toAttribute(a, h.type);
this._$Em = n, p == null ? this.removeAttribute(c) : this.setAttribute(c, p), this._$Em = null;
}
}
_$AK(n, a) {
var m;
const h = this.constructor, c = h._$Eh.get(n);
if (c !== undefined && this._$Em !== c) {
const p = h.getPropertyOptions(c), k = typeof p.converter == "function" ? { fromAttribute: p.converter } : ((m = p.converter) == null ? undefined : m.fromAttribute) !== undefined ? p.converter : yi;
this._$Em = c, this[c] = k.fromAttribute(a, p.type), this._$Em = null;
}
}
requestUpdate(n, a, h) {
if (n !== undefined) {
if (h ?? (h = this.constructor.getPropertyOptions(n)), !(h.hasChanged ?? es)(this[n], a))
return;
this.P(n, a, h);
}
this.isUpdatePending === false && (this._$ES = this._$ET());
}
P(n, a, h) {
this._$AL.has(n) || this._$AL.set(n, a), h.reflect === true && this._$Em !== n && (this._$Ej ?? (this._$Ej = new Set)).add(n);
}
async _$ET() {
this.isUpdatePending = true;
try {
await this._$ES;
} catch (a) {
Promise.reject(a);
}
const n = this.scheduleUpdate();
return n != null && await n, !this.isUpdatePending;
}
scheduleUpdate() {
return this.performUpdate();
}
performUpdate() {
var h;
if (!this.isUpdatePending)
return;
if (!this.hasUpdated) {
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
for (const [m, p] of this._$Ep)
this[m] = p;
this._$Ep = undefined;
}
const c = this.constructor.elementProperties;
if (c.size > 0)
for (const [m, p] of c)
p.wrapped !== true || this._$AL.has(m) || this[m] === undefined || this.P(m, this[m], p);
}
let n = false;
const a = this._$AL;
try {
n = this.shouldUpdate(a), n ? (this.willUpdate(a), (h = this._$EO) == null || h.forEach((c) => {
var m;
return (m = c.hostUpdate) == null ? undefined : m.call(c);
}), this.update(a)) : this._$EU();
} catch (c) {
throw n = false, this._$EU(), c;
}
n && this._$AE(a);
}
willUpdate(n) {
}
_$AE(n) {
var a;
(a = this._$EO) == null || a.forEach((h) => {
var c;
return (c = h.hostUpdated) == null ? undefined : c.call(h);
}), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(n)), this.updated(n);
}
_$EU() {
this._$AL = new Map, this.isUpdatePending = false;
}
get updateComplete() {
return this.getUpdateComplete();
}
getUpdateComplete() {
return this._$ES;
}
shouldUpdate(n) {
return true;
}
update(n) {
this._$Ej && (this._$Ej = this._$Ej.forEach((a) => this._$EC(a, this[a]))), this._$EU();
}
updated(n) {
}
firstUpdated(n) {
}
};
Ae.elementStyles = [], Ae.shadowRootOptions = { mode: "open" }, Ae[bi("elementProperties")] = new Map, Ae[bi("finalized")] = new Map, zs == null || zs({ ReactiveElement: Ae }), (ge.reactiveElementVersions ?? (ge.reactiveElementVersions = [])).push("2.0.4");
const wi = globalThis, is = wi.trustedTypes, sr = is ? is.createPolicy("lit-html", { createHTML: (f) => f }) : undefined, Us = "$lit$", ne = `lit$${Math.random().toFixed(9).slice(2)}$`, Fs = "?" + ne, Xa = `<${Fs}>`, Ee = document, ki = () => Ee.createComment(""), xi = (f) => f === null || typeof f != "object" && typeof f != "function", nr = Array.isArray, rr = (f) => nr(f) || typeof (f == null ? undefined : f[Symbol.iterator]) == "function", Ws = `[
\f\r]`, Si = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, or = /-->/g, ar = />/g, Ie = RegExp(`>|${Ws}(?:([^\\s"'>=/]+)(${Ws}*=${Ws}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`, "g"), lr = /'/g, cr = /"/g, hr = /^(?:script|style|textarea|title)$/i, ur = (f) => (n, ...a) => ({ _$litType$: f, strings: n, values: a }), z = ur(1), Qa = ur(2), re = Symbol.for("lit-noChange"), yt = Symbol.for("lit-nothing"), dr = new WeakMap, Ce = Ee.createTreeWalker(Ee, 129);
function fr(f, n) {
if (!Array.isArray(f) || !f.hasOwnProperty("raw"))
throw Error("invalid template strings array");
return sr !== undefined ? sr.createHTML(n) : n;
}
const pr = (f, n) => {
const a = f.length - 1, h = [];
let c, m = n === 2 ? "" : "")), h];
};
class _i {
constructor({ strings: n, _$litType$: a }, h) {
let c;
this.parts = [];
let m = 0, p = 0;
const k = n.length - 1, w = this.parts, [C, b] = pr(n, a);
if (this.el = _i.createElement(C, h), Ce.currentNode = this.el.content, a === 2) {
const I = this.el.content.firstChild;
I.replaceWith(...I.childNodes);
}
for (;(c = Ce.nextNode()) !== null && w.length < k; ) {
if (c.nodeType === 1) {
if (c.hasAttributes())
for (const I of c.getAttributeNames())
if (I.endsWith(Us)) {
const P = b[p++], N = c.getAttribute(I).split(ne), Y = /([.?@])?(.*)/.exec(P);
w.push({ type: 1, index: m, name: Y[2], strings: N, ctor: Y[1] === "." ? gr : Y[1] === "?" ? vr : Y[1] === "@" ? $r : Ai }), c.removeAttribute(I);
} else
I.startsWith(ne) && (w.push({ type: 6, index: m }), c.removeAttribute(I));
if (hr.test(c.tagName)) {
const I = c.textContent.split(ne), P = I.length - 1;
if (P > 0) {
c.textContent = is ? is.emptyScript : "";
for (let N = 0;N < P; N++)
c.append(I[N], ki()), Ce.nextNode(), w.push({ type: 2, index: ++m });
c.append(I[P], ki());
}
}
} else if (c.nodeType === 8)
if (c.data === Fs)
w.push({ type: 2, index: m });
else {
let I = -1;
for (;(I = c.data.indexOf(ne, I + 1)) !== -1; )
w.push({ type: 7, index: m }), I += ne.length - 1;
}
m++;
}
}
static createElement(n, a) {
const h = Ee.createElement("template");
return h.innerHTML = n, h;
}
}
function Te(f, n, a = f, h) {
var p, k;
if (n === re)
return n;
let c = h !== undefined ? (p = a._$Co) == null ? undefined : p[h] : a._$Cl;
const m = xi(n) ? undefined : n._$litDirective$;
return (c == null ? undefined : c.constructor) !== m && ((k = c == null ? undefined : c._$AO) == null || k.call(c, false), m === undefined ? c = undefined : (c = new m(f), c._$AT(f, a, h)), h !== undefined ? (a._$Co ?? (a._$Co = []))[h] = c : a._$Cl = c), c !== undefined && (n = Te(f, c._$AS(f, n.values), c, h)), n;
}
class mr {
constructor(n, a) {
this._$AV = [], this._$AN = undefined, this._$AD = n, this._$AM = a;
}
get parentNode() {
return this._$AM.parentNode;
}
get _$AU() {
return this._$AM._$AU;
}
u(n) {
const { el: { content: a }, parts: h } = this._$AD, c = ((n == null ? undefined : n.creationScope) ?? Ee).importNode(a, true);
Ce.currentNode = c;
let m = Ce.nextNode(), p = 0, k = 0, w = h[0];
for (;w !== undefined; ) {
if (p === w.index) {
let C;
w.type === 2 ? C = new Ge(m, m.nextSibling, this, n) : w.type === 1 ? C = new w.ctor(m, w.name, w.strings, this, n) : w.type === 6 && (C = new br(m, this, n)), this._$AV.push(C), w = h[++k];
}
p !== (w == null ? undefined : w.index) && (m = Ce.nextNode(), p++);
}
return Ce.currentNode = Ee, c;
}
p(n) {
let a = 0;
for (const h of this._$AV)
h !== undefined && (h.strings !== undefined ? (h._$AI(n, h, a), a += h.strings.length - 2) : h._$AI(n[a])), a++;
}
}
class Ge {
get _$AU() {
var n;
return ((n = this._$AM) == null ? undefined : n._$AU) ?? this._$Cv;
}
constructor(n, a, h, c) {
this.type = 2, this._$AH = yt, this._$AN = undefined, this._$AA = n, this._$AB = a, this._$AM = h, this.options = c, this._$Cv = (c == null ? undefined : c.isConnected) ?? true;
}
get parentNode() {
let n = this._$AA.parentNode;
const a = this._$AM;
return a !== undefined && (n == null ? undefined : n.nodeType) === 11 && (n = a.parentNode), n;
}
get startNode() {
return this._$AA;
}
get endNode() {
return this._$AB;
}
_$AI(n, a = this) {
n = Te(this, n, a), xi(n) ? n === yt || n == null || n === "" ? (this._$AH !== yt && this._$AR(), this._$AH = yt) : n !== this._$AH && n !== re && this._(n) : n._$litType$ !== undefined ? this.$(n) : n.nodeType !== undefined ? this.T(n) : rr(n) ? this.k(n) : this._(n);
}
S(n) {
return this._$AA.parentNode.insertBefore(n, this._$AB);
}
T(n) {
this._$AH !== n && (this._$AR(), this._$AH = this.S(n));
}
_(n) {
this._$AH !== yt && xi(this._$AH) ? this._$AA.nextSibling.data = n : this.T(Ee.createTextNode(n)), this._$AH = n;
}
$(n) {
var m;
const { values: a, _$litType$: h } = n, c = typeof h == "number" ? this._$AC(n) : (h.el === undefined && (h.el = _i.createElement(fr(h.h, h.h[0]), this.options)), h);
if (((m = this._$AH) == null ? undefined : m._$AD) === c)
this._$AH.p(a);
else {
const p = new mr(c, this), k = p.u(this.options);
p.p(a), this.T(k), this._$AH = p;
}
}
_$AC(n) {
let a = dr.get(n.strings);
return a === undefined && dr.set(n.strings, a = new _i(n)), a;
}
k(n) {
nr(this._$AH) || (this._$AH = [], this._$AR());
const a = this._$AH;
let h, c = 0;
for (const m of n)
c === a.length ? a.push(h = new Ge(this.S(ki()), this.S(ki()), this, this.options)) : h = a[c], h._$AI(m), c++;
c < a.length && (this._$AR(h && h._$AB.nextSibling, c), a.length = c);
}
_$AR(n = this._$AA.nextSibling, a) {
var h;
for ((h = this._$AP) == null ? undefined : h.call(this, false, true, a);n && n !== this._$AB; ) {
const c = n.nextSibling;
n.remove(), n = c;
}
}
setConnected(n) {
var a;
this._$AM === undefined && (this._$Cv = n, (a = this._$AP) == null || a.call(this, n));
}
}
class Ai {
get tagName() {
return this.element.tagName;
}
get _$AU() {
return this._$AM._$AU;
}
constructor(n, a, h, c, m) {
this.type = 1, this._$AH = yt, this._$AN = undefined, this.element = n, this.name = a, this._$AM = c, this.options = m, h.length > 2 || h[0] !== "" || h[1] !== "" ? (this._$AH = Array(h.length - 1).fill(new String), this.strings = h) : this._$AH = yt;
}
_$AI(n, a = this, h, c) {
const m = this.strings;
let p = false;
if (m === undefined)
n = Te(this, n, a, 0), p = !xi(n) || n !== this._$AH && n !== re, p && (this._$AH = n);
else {
const k = n;
let w, C;
for (n = m[0], w = 0;w < m.length - 1; w++)
C = Te(this, k[h + w], a, w), C === re && (C = this._$AH[w]), p || (p = !xi(C) || C !== this._$AH[w]), C === yt ? n = yt : n !== yt && (n += (C ?? "") + m[w + 1]), this._$AH[w] = C;
}
p && !c && this.j(n);
}
j(n) {
n === yt ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, n ?? "");
}
}
class gr extends Ai {
constructor() {
super(...arguments), this.type = 3;
}
j(n) {
this.element[this.name] = n === yt ? undefined : n;
}
}
class vr extends Ai {
constructor() {
super(...arguments), this.type = 4;
}
j(n) {
this.element.toggleAttribute(this.name, !!n && n !== yt);
}
}
class $r extends Ai {
constructor(n, a, h, c, m) {
super(n, a, h, c, m), this.type = 5;
}
_$AI(n, a = this) {
if ((n = Te(this, n, a, 0) ?? yt) === re)
return;
const h = this._$AH, c = n === yt && h !== yt || n.capture !== h.capture || n.once !== h.once || n.passive !== h.passive, m = n !== yt && (h === yt || c);
c && this.element.removeEventListener(this.name, this, h), m && this.element.addEventListener(this.name, this, n), this._$AH = n;
}
handleEvent(n) {
var a;
typeof this._$AH == "function" ? this._$AH.call(((a = this.options) == null ? undefined : a.host) ?? this.element, n) : this._$AH.handleEvent(n);
}
}
class br {
constructor(n, a, h) {
this.element = n, this.type = 6, this._$AN = undefined, this._$AM = a, this.options = h;
}
get _$AU() {
return this._$AM._$AU;
}
_$AI(n) {
Te(this, n);
}
}
const yr = { P: Us, A: ne, C: Fs, M: 1, L: pr, R: mr, D: rr, V: Te, I: Ge, H: Ai, N: vr, U: $r, B: gr, F: br }, qs = wi.litHtmlPolyfillSupport;
qs == null || qs(_i, Ge), (wi.litHtmlVersions ?? (wi.litHtmlVersions = [])).push("3.1.4");
const wr = (f, n, a) => {
const h = (a == null ? undefined : a.renderBefore) ?? n;
let c = h._$litPart$;
if (c === undefined) {
const m = (a == null ? undefined : a.renderBefore) ?? null;
h._$litPart$ = c = new Ge(n.insertBefore(ki(), m), m, undefined, a ?? {});
}
return c._$AI(f), c;
};
let Oe = class extends Ae {
constructor() {
super(...arguments), this.renderOptions = { host: this }, this._$Do = undefined;
}
createRenderRoot() {
var a;
const n = super.createRenderRoot();
return (a = this.renderOptions).renderBefore ?? (a.renderBefore = n.firstChild), n;
}
update(n) {
const a = this.render();
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(n), this._$Do = wr(a, this.renderRoot, this.renderOptions);
}
connectedCallback() {
var n;
super.connectedCallback(), (n = this._$Do) == null || n.setConnected(true);
}
disconnectedCallback() {
var n;
super.disconnectedCallback(), (n = this._$Do) == null || n.setConnected(false);
}
render() {
return re;
}
};
Oe._$litElement$ = true, Oe.finalized = true, (Dr = globalThis.litElementHydrateSupport) == null || Dr.call(globalThis, { LitElement: Oe });
const Ys = globalThis.litElementPolyfillSupport;
Ys == null || Ys({ LitElement: Oe });
const tl = { _$AK: (f, n, a) => {
f._$AK(n, a);
}, _$AL: (f) => f._$AL };
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.6");
const el = Object.freeze(Object.defineProperty({ __proto__: null, CSSResult: js, LitElement: Oe, ReactiveElement: Ae, _$LE: tl, _$LH: yr, adoptStyles: tr, css: Wa, defaultConverter: yi, getCompatibleStyle: Rs, html: z, isServer: false, noChange: re, notEqual: es, nothing: yt, render: wr, supportsAdoptingStyleSheets: ts, svg: Qa, unsafeCSS: Qn }, Symbol.toStringTag, { value: "Module" }));
const oe = (f) => (n, a) => {
a !== undefined ? a.addInitializer(() => {
customElements.define(f, n);
}) : customElements.define(f, n);
};
const il = { attribute: true, type: String, converter: yi, reflect: false, hasChanged: es }, kr = (f = il, n, a) => {
const { kind: h, metadata: c } = a;
let m = globalThis.litPropertyMetadata.get(c);
if (m === undefined && globalThis.litPropertyMetadata.set(c, m = new Map), m.set(a.name, f), h === "accessor") {
const { name: p } = a;
return { set(k) {
const w = n.get.call(this);
n.set.call(this, k), this.requestUpdate(p, w, f);
}, init(k) {
return k !== undefined && this.P(p, undefined, f), k;
} };
}
if (h === "setter") {
const { name: p } = a;
return function(k) {
const w = this[p];
n.call(this, k), this.requestUpdate(p, w, f);
};
}
throw Error("Unsupported decorator location: " + h);
};
function j(f) {
return (n, a) => typeof a == "object" ? kr(f, n, a) : ((h, c, m) => {
const p = c.hasOwnProperty(m);
return c.constructor.createProperty(m, p ? { ...h, wrapped: true } : h), p ? Object.getOwnPropertyDescriptor(c, m) : undefined;
})(f, n, a);
}
function X(f) {
return j({ ...f, state: true, attribute: false });
}
function sl(f) {
return (n, a) => {
const h = typeof n == "function" ? n : n[a];
Object.assign(h, f);
};
}
const Ze = (f, n, a) => (a.configurable = true, a.enumerable = true, Reflect.decorate && typeof n != "object" && Object.defineProperty(f, n, a), a);
function nl(f, n) {
return (a, h, c) => {
const m = (p) => {
var k;
return ((k = p.renderRoot) == null ? undefined : k.querySelector(f)) ?? null;
};
if (n) {
const { get: p, set: k } = typeof h == "object" ? a : c ?? (() => {
const w = Symbol();
return { get() {
return this[w];
}, set(C) {
this[w] = C;
} };
})();
return Ze(a, h, { get() {
let w = p.call(this);
return w === undefined && (w = m(this), (w !== null || this.hasUpdated) && k.call(this, w)), w;
} });
}
return Ze(a, h, { get() {
return m(this);
} });
};
}
let rl;
function ol(f) {
return (n, a) => Ze(n, a, { get() {
return (this.renderRoot ?? rl ?? (rl = document.createDocumentFragment())).querySelectorAll(f);
} });
}
function al(f) {
return (n, a) => Ze(n, a, { async get() {
var h;
return await this.updateComplete, ((h = this.renderRoot) == null ? undefined : h.querySelector(f)) ?? null;
} });
}
function ll(f) {
return (n, a) => {
const { slot: h, selector: c } = f ?? {}, m = "slot" + (h ? `[name=${h}]` : ":not([name])");
return Ze(n, a, { get() {
var w;
const p = (w = this.renderRoot) == null ? undefined : w.querySelector(m), k = (p == null ? undefined : p.assignedElements(f)) ?? [];
return c === undefined ? k : k.filter((C) => C.matches(c));
} });
};
}
function cl(f) {
return (n, a) => {
const { slot: h } = f ?? {}, c = "slot" + (h ? `[name=${h}]` : ":not([name])");
return Ze(n, a, { get() {
var p;
const m = (p = this.renderRoot) == null ? undefined : p.querySelector(c);
return (m == null ? undefined : m.assignedNodes(f)) ?? [];
} });
};
}
const hl = Object.freeze(Object.defineProperty({ __proto__: null, customElement: oe, eventOptions: sl, property: j, query: nl, queryAll: ol, queryAssignedElements: ll, queryAssignedNodes: cl, queryAsync: al, standardProperty: kr, state: X }, Symbol.toStringTag, { value: "Module" }));
const xr = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Sr = (f) => (...n) => ({ _$litDirective$: f, values: n });
class _r {
constructor(n) {
}
get _$AU() {
return this._$AM._$AU;
}
_$AT(n, a, h) {
this._$Ct = n, this._$AM = a, this._$Ci = h;
}
_$AS(n, a) {
return this.update(n, a);
}
update(n, a) {
return this.render(...a);
}
}
const { I: ul } = yr, Ar = () => document.createComment(""), Ei = (f, n, a) => {
var m;
const h = f._$AA.parentNode, c = n === undefined ? f._$AB : n._$AA;
if (a === undefined) {
const p = h.insertBefore(Ar(), c), k = h.insertBefore(Ar(), c);
a = new ul(p, k, f, f.options);
} else {
const p = a._$AB.nextSibling, k = a._$AM, w = k !== f;
if (w) {
let C;
(m = a._$AQ) == null || m.call(a, f), a._$AM = f, a._$AP !== undefined && (C = f._$AU) !== k._$AU && a._$AP(C);
}
if (p !== c || w) {
let C = a._$AA;
for (;C !== p; ) {
const b = C.nextSibling;
h.insertBefore(C, c), C = b;
}
}
}
return a;
}, De = (f, n, a = f) => (f._$AI(n, a), f), dl = {}, fl = (f, n = dl) => f._$AH = n, pl = (f) => f._$AH, Vs = (f) => {
var h;
(h = f._$AP) == null || h.call(f, false, true);
let n = f._$AA;
const a = f._$AB.nextSibling;
for (;n !== a; ) {
const c = n.nextSibling;
n.remove(), n = c;
}
};
const Er = (f, n, a) => {
const h = new Map;
for (let c = n;c <= a; c++)
h.set(f[c], c);
return h;
}, Pe = Sr(class extends _r {
constructor(f) {
if (super(f), f.type !== xr.CHILD)
throw Error("repeat() can only be used in text expressions");
}
dt(f, n, a) {
let h;
a === undefined ? a = n : n !== undefined && (h = n);
const c = [], m = [];
let p = 0;
for (const k of f)
c[p] = h ? h(k, p) : p, m[p] = a(k, p), p++;
return { values: m, keys: c };
}
render(f, n, a) {
return this.dt(f, n, a).values;
}
update(f, [n, a, h]) {
const c = pl(f), { values: m, keys: p } = this.dt(n, a, h);
if (!Array.isArray(c))
return this.ut = p, m;
const k = this.ut ?? (this.ut = []), w = [];
let C, b, I = 0, P = c.length - 1, N = 0, Y = m.length - 1;
for (;I <= P && N <= Y; )
if (c[I] === null)
I++;
else if (c[P] === null)
P--;
else if (k[I] === p[N])
w[N] = De(c[I], m[N]), I++, N++;
else if (k[P] === p[Y])
w[Y] = De(c[P], m[Y]), P--, Y--;
else if (k[I] === p[Y])
w[Y] = De(c[I], m[Y]), Ei(f, w[Y + 1], c[I]), I++, Y--;
else if (k[P] === p[N])
w[N] = De(c[P], m[N]), Ei(f, c[I], c[P]), P--, N++;
else if (C === undefined && (C = Er(p, N, Y), b = Er(k, I, P)), C.has(k[I]))
if (C.has(k[P])) {
const rt = b.get(p[N]), Dt = rt !== undefined ? c[rt] : null;
if (Dt === null) {
const te = Ei(f, c[I]);
De(te, m[N]), w[N] = te;
} else
w[N] = De(Dt, m[N]), Ei(f, c[I], Dt), c[rt] = null;
N++;
} else
Vs(c[P]), P--;
else
Vs(c[I]), I++;
for (;N <= Y; ) {
const rt = Ei(f, w[Y + 1]);
De(rt, m[N]), w[N++] = rt;
}
for (;I <= P; ) {
const rt = c[I++];
rt !== null && Vs(rt);
}
return this.ut = p, fl(f, w), re;
}
});
class Js extends _r {
constructor(n) {
if (super(n), this.it = yt, n.type !== xr.CHILD)
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
}
render(n) {
if (n === yt || n == null)
return this._t = undefined, this.it = n;
if (n === re)
return n;
if (typeof n != "string")
throw Error(this.constructor.directiveName + "() called with a non-string value");
if (n === this.it)
return this._t;
this.it = n;
const a = [n];
return a.raw = a, this._t = { _$litType$: this.constructor.resultType, strings: a, values: [] };
}
}
Js.directiveName = "unsafeHTML", Js.resultType = 1;
const ml = Sr(Js);
(function(f, n) {
typeof E == "object" && typeof module < "u" ? module.exports = n() : typeof define == "function" && define.amd ? define("uikit", n) : (f = typeof globalThis < "u" ? globalThis : f || self, f.UIkit = n());
})(undefined, function() {
const { hasOwnProperty: f, toString: n } = Object.prototype;
function a(t, e) {
return f.call(t, e);
}
const h = /\B([A-Z])/g, c = Ft((t) => t.replace(h, "-$1").toLowerCase()), m = /-(\w)/g, p = Ft((t) => (t.charAt(0).toLowerCase() + t.slice(1)).replace(m, (e, i) => i.toUpperCase())), k = Ft((t) => t.charAt(0).toUpperCase() + t.slice(1));
function w(t, e) {
var i;
return (i = t == null ? undefined : t.startsWith) == null ? undefined : i.call(t, e);
}
function C(t, e) {
var i;
return (i = t == null ? undefined : t.endsWith) == null ? undefined : i.call(t, e);
}
function b(t, e) {
var i;
return (i = t == null ? undefined : t.includes) == null ? undefined : i.call(t, e);
}
function I(t, e) {
var i;
return (i = t == null ? undefined : t.findIndex) == null ? undefined : i.call(t, e);
}
const { isArray: P, from: N } = Array, { assign: Y } = Object;
function rt(t) {
return typeof t == "function";
}
function Dt(t) {
return t !== null && typeof t == "object";
}
function te(t) {
return n.call(t) === "[object Object]";
}
function ii(t) {
return Dt(t) && t === t.window;
}
function le(t) {
return Jt(t) === 9;
}
function He(t) {
return Jt(t) >= 1;
}
function zt(t) {
return Jt(t) === 1;
}
function Jt(t) {
return !ii(t) && Dt(t) && t.nodeType;
}
function ce(t) {
return typeof t == "boolean";
}
function ht(t) {
return typeof t == "string";
}
function ee(t) {
return typeof t == "number";
}
function at(t) {
return ee(t) || ht(t) && !isNaN(t - parseFloat(t));
}
function Q(t) {
return !(P(t) ? t.length : Dt(t) && Object.keys(t).length);
}
function vt(t) {
return t === undefined;
}
function si(t) {
return ce(t) ? t : t === "true" || t === "1" || t === "" ? true : t === "false" || t === "0" ? false : t;
}
function L(t) {
const e = Number(t);
return isNaN(e) ? false : e;
}
function x(t) {
return parseFloat(t) || 0;
}
function S(t) {
return t && _(t)[0];
}
function _(t) {
return He(t) ? [t] : Array.from(t || []).filter(He);
}
function T(t) {
if (ii(t))
return t;
t = S(t);
const e = le(t) ? t : t == null ? undefined : t.ownerDocument;
return (e == null ? undefined : e.defaultView) || window;
}
function R(t, e) {
return t === e || Dt(t) && Dt(e) && Object.keys(t).length === Object.keys(e).length && lt(t, (i, s) => i === e[s]);
}
function U(t, e, i) {
return t.replace(new RegExp(`${e}|${i}`, "g"), (s) => s === e ? i : e);
}
function K(t) {
return t[t.length - 1];
}
function lt(t, e) {
for (const i in t)
if (e(t[i], i) === false)
return false;
return true;
}
function wt(t, e) {
return t.slice().sort(({ [e]: i = 0 }, { [e]: s = 0 }) => i > s ? 1 : s > i ? -1 : 0);
}
function dt(t, e) {
return t.reduce((i, s) => i + x(rt(e) ? e(s) : s[e]), 0);
}
function Ot(t, e) {
const i = new Set;
return t.filter(({ [e]: s }) => i.has(s) ? false : i.add(s));
}
function ie(t, e) {
return e.reduce((i, s) => ({ ...i, [s]: t[s] }), {});
}
function ft(t, e = 0, i = 1) {
return Math.min(Math.max(L(t) || 0, e), i);
}
function ut() {
}
function Kt(...t) {
return [["bottom", "top"], ["right", "left"]].every(([e, i]) => Math.min(...t.map(({ [e]: s }) => s)) - Math.max(...t.map(({ [i]: s }) => s)) > 0);
}
function kt(t, e) {
return t.x <= e.right && t.x >= e.left && t.y <= e.bottom && t.y >= e.top;
}
function Ut(t, e, i) {
const s = e === "width" ? "height" : "width";
return { [s]: t[e] ? Math.round(i * t[s] / t[e]) : t[s], [e]: i };
}
function ve(t, e) {
t = { ...t };
for (const i in t)
t = t[i] > e[i] ? Ut(t, i, e[i]) : t;
return t;
}
function ni(t, e) {
t = ve(t, e);
for (const i in t)
t = t[i] < e[i] ? Ut(t, i, e[i]) : t;
return t;
}
const Zs = { ratio: Ut, contain: ve, cover: ni };
function Ht(t, e, i = 0, s = false) {
e = _(e);
const { length: r } = e;
return r ? (t = at(t) ? L(t) : t === "next" ? i + 1 : t === "previous" ? i - 1 : t === "last" ? r - 1 : e.indexOf(S(t)), s ? ft(t, 0, r - 1) : (t %= r, t < 0 ? t + r : t)) : -1;
}
function Ft(t) {
const e = Object.create(null);
return (i, ...s) => e[i] || (e[i] = t(i, ...s));
}
function V(t, ...e) {
for (const i of _(t)) {
const s = Ne(e).filter((r) => !W(i, r));
s.length && i.classList.add(...s);
}
}
function ot(t, ...e) {
for (const i of _(t)) {
const s = Ne(e).filter((r) => W(i, r));
s.length && i.classList.remove(...s);
}
}
function Xs(t, e, i) {
i = Ne(i), e = Ne(e).filter((s) => !b(i, s)), ot(t, e), V(t, i);
}
function W(t, e) {
return [e] = Ne(e), _(t).some((i) => i.classList.contains(e));
}
function mt(t, e, i) {
const s = Ne(e);
vt(i) || (i = !!i);
for (const r of _(t))
for (const o of s)
r.classList.toggle(o, i);
}
function Ne(t) {
return t ? P(t) ? t.map(Ne).flat() : String(t).split(" ").filter(Boolean) : [];
}
function O(t, e, i) {
var s;
if (Dt(e)) {
for (const r in e)
O(t, r, e[r]);
return;
}
if (vt(i))
return (s = S(t)) == null ? undefined : s.getAttribute(e);
for (const r of _(t))
rt(i) && (i = i.call(r, O(r, e))), i === null ? Ci(r, e) : r.setAttribute(e, i);
}
function $e(t, e) {
return _(t).some((i) => i.hasAttribute(e));
}
function Ci(t, e) {
_(t).forEach((i) => i.removeAttribute(e));
}
function It(t, e) {
for (const i of [e, `data-${e}`])
if ($e(t, i))
return O(t, i);
}
const Le = typeof window < "u", xt = Le && document.dir === "rtl", ri = Le && "ontouchstart" in window, oi = Le && window.PointerEvent, Wt = oi ? "pointerdown" : ri ? "touchstart" : "mousedown", os = oi ? "pointermove" : ri ? "touchmove" : "mousemove", be = oi ? "pointerup" : ri ? "touchend" : "mouseup", Be = oi ? "pointerenter" : ri ? "" : "mouseenter", ai = oi ? "pointerleave" : ri ? "" : "mouseleave", as = oi ? "pointercancel" : "touchcancel", Ul = { area: true, base: true, br: true, col: true, embed: true, hr: true, img: true, input: true, keygen: true, link: true, meta: true, param: true, source: true, track: true, wbr: true };
function Qs(t) {
return _(t).some((e) => Ul[e.tagName.toLowerCase()]);
}
const Fl = Le && Element.prototype.checkVisibility || function() {
return this.offsetWidth || this.offsetHeight || this.getClientRects().length;
};
function St(t) {
return _(t).some((e) => Fl.call(e));
}
const Ti = "input,select,textarea,button";
function ls(t) {
return _(t).some((e) => tt(e, Ti));
}
const Oi = `${Ti},a[href],[tabindex]`;
function cs(t) {
return tt(t, Oi);
}
function it(t) {
var e;
return (e = S(t)) == null ? undefined : e.parentElement;
}
function Di(t, e) {
return _(t).filter((i) => tt(i, e));
}
function tt(t, e) {
return _(t).some((i) => i.matches(e));
}
function li(t, e) {
const i = [];
for (;t = it(t); )
(!e || tt(t, e)) && i.push(t);
return i;
}
function st(t, e) {
t = S(t);
const i = t ? N(t.children) : [];
return e ? Di(i, e) : i;
}
function he(t, e) {
return e ? _(t).indexOf(S(e)) : st(it(t)).indexOf(t);
}
function ci(t) {
return t = S(t), t && ["origin", "pathname", "search"].every((e) => t[e] === location[e]);
}
function tn(t) {
if (ci(t)) {
const { hash: e, ownerDocument: i } = S(t), s = decodeURIComponent(e).slice(1);
return s ? i.getElementById(s) || i.getElementsByName(s)[0] : i.documentElement;
}
}
function qt(t, e) {
return en(t, Pr(t, e));
}
function Pi(t, e) {
return Mi(t, Pr(t, e));
}
function en(t, e) {
return S(Nr(t, S(e), "querySelector"));
}
function Mi(t, e) {
return _(Nr(t, S(e), "querySelectorAll"));
}
function Pr(t, e = document) {
return le(e) || Mr(t).isContextSelector ? e : e.ownerDocument;
}
const Wl = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g, ql = /(\([^)]*\)|[^,])+/g, Mr = Ft((t) => {
let e = false;
if (!t || !ht(t))
return {};
const i = [];
for (let s of t.match(ql))
s = s.trim().replace(Wl, "$1 *"), e || (e = ["!", "+", "~", "-", ">"].includes(s[0])), i.push(s);
return { selector: i.join(","), selectors: i, isContextSelector: e };
}), Yl = /(\([^)]*\)|\S)*/, Hr = Ft((t) => {
t = t.slice(1).trim();
const [e] = t.match(Yl);
return [e, t.slice(e.length + 1)];
});
function Nr(t, e = document, i) {
const s = Mr(t);
if (!s.isContextSelector)
return s.selector ? sn(e, i, s.selector) : t;
t = "";
const r = s.selectors.length === 1;
for (let o of s.selectors) {
let l, u = e;
if (o[0] === "!" && ([l, o] = Hr(o), u = e.parentElement.closest(l), !o && r) || u && o[0] === "-" && ([l, o] = Hr(o), u = u.previousElementSibling, u = tt(u, l) ? u : null, !o && r))
return u;
if (u) {
if (r)
return o[0] === "~" || o[0] === "+" ? (o = `:scope > :nth-child(${he(u) + 1}) ${o}`, u = u.parentElement) : o[0] === ">" && (o = `:scope ${o}`), sn(u, i, o);
t += `${t ? "," : ""}${Vl(u)} ${o}`;
}
}
return le(e) || (e = e.ownerDocument), sn(e, i, t);
}
function sn(t, e, i) {
try {
return t[e](i);
} catch {
return null;
}
}
function Vl(t) {
const e = [];
for (;t.parentNode; ) {
const i = O(t, "id");
if (i) {
e.unshift(`#${nn(i)}`);
break;
} else {
let { tagName: s } = t;
s !== "HTML" && (s += `:nth-child(${he(t) + 1})`), e.unshift(s), t = t.parentNode;
}
}
return e.join(" > ");
}
function nn(t) {
return ht(t) ? CSS.escape(t) : "";
}
function J(...t) {
let [e, i, s, r, o = false] = rn(t);
r.length > 1 && (r = Kl(r)), o != null && o.self && (r = Gl(r)), s && (r = Jl(s, r));
for (const l of i)
for (const u of e)
u.addEventListener(l, r, o);
return () => je(e, i, r, o);
}
function je(...t) {
let [e, i, , s, r = false] = rn(t);
for (const o of i)
for (const l of e)
l.removeEventListener(o, s, r);
}
function gt(...t) {
const [e, i, s, r, o = false, l] = rn(t), u = J(e, i, s, (d) => {
const v = !l || l(d);
v && (u(), r(d, v));
}, o);
return u;
}
function M(t, e, i) {
return on(t).every((s) => s.dispatchEvent(hi(e, true, true, i)));
}
function hi(t, e = true, i = false, s) {
return ht(t) && (t = new CustomEvent(t, { bubbles: e, cancelable: i, detail: s })), t;
}
function rn(t) {
return t[0] = on(t[0]), ht(t[1]) && (t[1] = t[1].split(" ")), rt(t[2]) && t.splice(2, 0, false), t;
}
function Jl(t, e) {
return (i) => {
const s = t[0] === ">" ? Mi(t, i.currentTarget).reverse().find((r) => r.contains(i.target)) : i.target.closest(t);
s && (i.current = s, e.call(this, i), delete i.current);
};
}
function Kl(t) {
return (e) => P(e.detail) ? t(e, ...e.detail) : t(e);
}
function Gl(t) {
return function(e) {
if (e.target === e.currentTarget || e.target === e.current)
return t.call(null, e);
};
}
function Lr(t) {
return t && "addEventListener" in t;
}
function Zl(t) {
return Lr(t) ? t : S(t);
}
function on(t) {
return P(t) ? t.map(Zl).filter(Boolean) : ht(t) ? Mi(t) : Lr(t) ? [t] : _(t);
}
function Gt(t) {
return t.pointerType === "touch" || !!t.touches;
}
function ue(t) {
var e, i;
const { clientX: s, clientY: r } = ((e = t.touches) == null ? undefined : e[0]) || ((i = t.changedTouches) == null ? undefined : i[0]) || t;
return { x: s, y: r };
}
const Xl = { "animation-iteration-count": true, "column-count": true, "fill-opacity": true, "flex-grow": true, "flex-shrink": true, "font-weight": true, "line-height": true, opacity: true, order: true, orphans: true, "stroke-dasharray": true, "stroke-dashoffset": true, widows: true, "z-index": true, zoom: true };
function g(t, e, i, s) {
const r = _(t);
for (const o of r)
if (ht(e)) {
if (e = hs(e), vt(i))
return getComputedStyle(o).getPropertyValue(e);
o.style.setProperty(e, at(i) && !Xl[e] ? `${i}px` : i || ee(i) ? i : "", s);
} else if (P(e)) {
const l = {};
for (const u of e)
l[u] = g(o, u);
return l;
} else if (Dt(e))
for (const l in e)
g(o, l, e[l], i);
return r[0];
}
const hs = Ft((t) => {
if (w(t, "--"))
return t;
t = c(t);
const { style: e } = document.documentElement;
if (t in e)
return t;
for (const i of ["webkit", "moz"]) {
const s = `-${i}-${t}`;
if (s in e)
return s;
}
}), an = "uk-transition", ln = "transitionend", cn = "transitioncanceled";
function Ql(t, e, i = 400, s = "linear") {
return i = Math.round(i), Promise.all(_(t).map((r) => new Promise((o, l) => {
for (const d in e)
g(r, d);
const u = setTimeout(() => M(r, ln), i);
gt(r, [ln, cn], ({ type: d }) => {
clearTimeout(u), ot(r, an), g(r, { transitionProperty: "", transitionDuration: "", transitionTimingFunction: "" }), d === cn ? l() : o(r);
}, { self: true }), V(r, an), g(r, { transitionProperty: Object.keys(e).map(hs).join(","), transitionDuration: `${i}ms`, transitionTimingFunction: s, ...e });
})));
}
const nt = { start: Ql, async stop(t) {
M(t, ln), await Promise.resolve();
}, async cancel(t) {
M(t, cn), await Promise.resolve();
}, inProgress(t) {
return W(t, an);
} }, Hi = "uk-anmt", Br = "animationend", us = "animationcanceled";
function jr(t, e, i = 200, s, r) {
return Promise.all(_(t).map((o) => new Promise((l, u) => {
W(o, Hi) && M(o, us);
const d = [e, Hi, `${Hi}-${r ? "leave" : "enter"}`, s && `uk-transform-origin-${s}`, r && `${Hi}-reverse`], v = setTimeout(() => M(o, Br), i);
gt(o, [Br, us], ({ type: $ }) => {
clearTimeout(v), $ === us ? u() : l(o), g(o, "animationDuration", ""), ot(o, d);
}, { self: true }), g(o, "animationDuration", `${i}ms`), V(o, d);
})));
}
const ye = { in: jr, out(t, e, i, s) {
return jr(t, e, i, s, true);
}, inProgress(t) {
return W(t, Hi);
}, cancel(t) {
M(t, us);
} };
function tc(t) {
if (document.readyState !== "loading") {
t();
return;
}
gt(document, "DOMContentLoaded", t);
}
function pt(t, ...e) {
return e.some((i) => {
var s;
return ((s = t == null ? undefined : t.tagName) == null ? undefined : s.toLowerCase()) === i.toLowerCase();
});
}
function Rr(t) {
return t = F(t), t && (t.innerHTML = ""), t;
}
function de(t, e) {
return vt(e) ? F(t).innerHTML : $t(Rr(t), e);
}
const ec = ps("prepend"), $t = ps("append"), ds = ps("before"), fs = ps("after");
function ps(t) {
return function(e, i) {
var s;
const r = _(ht(i) ? fe(i) : i);
return (s = F(e)) == null || s[t](...r), zr(r);
};
}
function Ct(t) {
_(t).forEach((e) => e.remove());
}
function Ni(t, e) {
for (e = S(ds(t, e));e.firstElementChild; )
e = e.firstElementChild;
return $t(e, t), e;
}
function hn(t, e) {
return _(_(t).map((i) => i.hasChildNodes() ? Ni(N(i.childNodes), e) : $t(i, e)));
}
function Li(t) {
_(t).map(it).filter((e, i, s) => s.indexOf(e) === i).forEach((e) => e.replaceWith(...e.childNodes));
}
const ic = /^<(\w+)\s*\/?>(?:<\/\1>)?$/;
function fe(t) {
const e = ic.exec(t);
if (e)
return document.createElement(e[1]);
const i = document.createElement("template");
return i.innerHTML = t.trim(), zr(i.content.childNodes);
}
function zr(t) {
return t.length > 1 ? t : t[0];
}
function we(t, e) {
if (zt(t))
for (e(t), t = t.firstElementChild;t; )
we(t, e), t = t.nextElementSibling;
}
function F(t, e) {
return Ur(t) ? S(fe(t)) : en(t, e);
}
function ct(t, e) {
return Ur(t) ? _(fe(t)) : Mi(t, e);
}
function Ur(t) {
return ht(t) && w(t.trim(), "<");
}
const Re = { width: ["left", "right"], height: ["top", "bottom"] };
function H(t) {
const e = zt(t) ? S(t).getBoundingClientRect() : { height: Pt(t), width: ms(t), top: 0, left: 0 };
return { height: e.height, width: e.width, top: e.top, left: e.left, bottom: e.top + e.height, right: e.left + e.width };
}
function G(t, e) {
e && g(t, { left: 0, top: 0 });
const i = H(t);
if (t) {
const { scrollY: s, scrollX: r } = T(t), o = { height: s, width: r };
for (const l in Re)
for (const u of Re[l])
i[u] += o[l];
}
if (!e)
return i;
for (const s of ["left", "top"])
g(t, s, e[s] - i[s]);
}
function un(t) {
let { top: e, left: i } = G(t);
const { ownerDocument: { body: s, documentElement: r }, offsetParent: o } = S(t);
let l = o || r;
for (;l && (l === s || l === r) && g(l, "position") === "static"; )
l = l.parentNode;
if (zt(l)) {
const u = G(l);
e -= u.top + x(g(l, "borderTopWidth")), i -= u.left + x(g(l, "borderLeftWidth"));
}
return { top: e - x(g(t, "marginTop")), left: i - x(g(t, "marginLeft")) };
}
function Bi(t) {
t = S(t);
const e = [t.offsetTop, t.offsetLeft];
for (;t = t.offsetParent; )
if (e[0] += t.offsetTop + x(g(t, "borderTopWidth")), e[1] += t.offsetLeft + x(g(t, "borderLeftWidth")), g(t, "position") === "fixed") {
const i = T(t);
return e[0] += i.scrollY, e[1] += i.scrollX, e;
}
return e;
}
const Pt = Fr("height"), ms = Fr("width");
function Fr(t) {
const e = k(t);
return (i, s) => {
if (vt(s)) {
if (ii(i))
return i[`inner${e}`];
if (le(i)) {
const r = i.documentElement;
return Math.max(r[`offset${e}`], r[`scroll${e}`]);
}
return i = S(i), s = g(i, t), s = s === "auto" ? i[`offset${e}`] : x(s) || 0, s - dn(i, t);
} else
return g(i, t, !s && s !== 0 ? "" : +s + dn(i, t) + "px");
};
}
function dn(t, e, i = "border-box") {
return g(t, "boxSizing") === i ? dt(Re[e], (s) => x(g(t, `padding-${s}`)) + x(g(t, `border-${s}-width`))) : 0;
}
function gs(t) {
for (const e in Re)
for (const i in Re[e])
if (Re[e][i] === t)
return Re[e][1 - i];
return t;
}
function At(t, e = "width", i = window, s = false) {
return ht(t) ? dt(nc(t), (r) => {
const o = oc(r);
return o ? ac(o === "vh" ? lc() : o === "vw" ? ms(T(i)) : s ? i[`offset${k(e)}`] : H(i)[e], r) : r;
}) : x(t);
}
const sc = /-?\d+(?:\.\d+)?(?:v[wh]|%|px)?/g, nc = Ft((t) => t.toString().replace(/\s/g, "").match(sc) || []), rc = /(?:v[hw]|%)$/, oc = Ft((t) => (t.match(rc) || [])[0]);
function ac(t, e) {
return t * x(e) / 100;
}
let ji, ui;
function lc() {
return ji || (ui || (ui = F("
"), g(ui, { height: "100vh", position: "fixed" }), J(window, "resize", () => ji = null)), $t(document.body, ui), ji = ui.clientHeight, Ct(ui), ji);
}
const ke = { read: cc, write: hc, clear: uc, flush: Wr }, vs = [], $s = [];
function cc(t) {
return vs.push(t), pn(), t;
}
function hc(t) {
return $s.push(t), pn(), t;
}
function uc(t) {
Yr(vs, t), Yr($s, t);
}
let fn = false;
function Wr() {
qr(vs), qr($s.splice(0)), fn = false, (vs.length || $s.length) && pn();
}
function pn() {
fn || (fn = true, queueMicrotask(Wr));
}
function qr(t) {
let e;
for (;e = t.shift(); )
try {
e();
} catch (i) {
console.error(i);
}
}
function Yr(t, e) {
const i = t.indexOf(e);
return ~i && t.splice(i, 1);
}
class Vr {
init() {
this.positions = [];
let e;
this.unbind = J(document, "mousemove", (i) => e = ue(i)), this.interval = setInterval(() => {
e && (this.positions.push(e), this.positions.length > 5 && this.positions.shift());
}, 50);
}
cancel() {
var e;
(e = this.unbind) == null || e.call(this), clearInterval(this.interval);
}
movesTo(e) {
if (!this.positions || this.positions.length < 2)
return false;
const i = H(e), { left: s, right: r, top: o, bottom: l } = i, [u] = this.positions, d = K(this.positions), v = [u, d];
return kt(d, i) ? false : [[{ x: s, y: o }, { x: r, y: l }], [{ x: s, y: l }, { x: r, y: o }]].some((y) => {
const A = dc(v, y);
return A && kt(A, i);
});
}
}
function dc([{ x: t, y: e }, { x: i, y: s }], [{ x: r, y: o }, { x: l, y: u }]) {
const d = (u - o) * (i - t) - (l - r) * (s - e);
if (d === 0)
return false;
const v = ((l - r) * (e - o) - (u - o) * (t - r)) / d;
return v < 0 ? false : { x: t + v * (i - t), y: e + v * (s - e) };
}
function Jr(t, e, i = {}, { intersecting: s = true } = {}) {
const r = new IntersectionObserver(s ? (o, l) => {
o.some((u) => u.isIntersecting) && e(o, l);
} : e, i);
for (const o of _(t))
r.observe(o);
return r;
}
const fc = Le && window.ResizeObserver;
function bs(t, e, i = { box: "border-box" }) {
if (fc)
return Kr(ResizeObserver, t, e, i);
const s = [J(window, "load resize", e), J(document, "loadedmetadata load", e, true)];
return { disconnect: () => s.map((r) => r()) };
}
function mn(t) {
return { disconnect: J([window, window.visualViewport], "resize", t) };
}
function gn(t, e, i) {
return Kr(MutationObserver, t, e, i);
}
function Kr(t, e, i, s) {
const r = new t(i);
for (const o of _(e))
r.observe(o, s);
return r;
}
function vn(t) {
bn(t) && yn(t, { func: "playVideo", method: "play" }), $n(t) && t.play().catch(ut);
}
function ys(t) {
bn(t) && yn(t, { func: "pauseVideo", method: "pause" }), $n(t) && t.pause();
}
function Gr(t) {
bn(t) && yn(t, { func: "mute", method: "setVolume", value: 0 }), $n(t) && (t.muted = true);
}
function $n(t) {
return pt(t, "video");
}
function bn(t) {
return pt(t, "iframe") && (Zr(t) || Xr(t));
}
function Zr(t) {
return !!t.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/);
}
function Xr(t) {
return !!t.src.match(/vimeo\.com\/video\/.*/);
}
async function yn(t, e) {
await mc(t), Qr(t, e);
}
function Qr(t, e) {
t.contentWindow.postMessage(JSON.stringify({ event: "command", ...e }), "*");
}
const wn = "_ukPlayer";
let pc = 0;
function mc(t) {
if (t[wn])
return t[wn];
const e = Zr(t), i = Xr(t), s = ++pc;
let r;
return t[wn] = new Promise((o) => {
e && gt(t, "load", () => {
const l = () => Qr(t, { event: "listening", id: s });
r = setInterval(l, 100), l();
}), gt(window, "message", o, false, ({ data: l }) => {
try {
return l = JSON.parse(l), e && (l == null ? undefined : l.id) === s && l.event === "onReady" || i && Number(l == null ? undefined : l.player_id) === s;
} catch {
}
}), t.src = `${t.src}${b(t.src, "?") ? "&" : "?"}${e ? "enablejsapi=1" : `api=1&player_id=${s}`}`;
}).then(() => clearInterval(r));
}
function gc(t, e = 0, i = 0) {
return St(t) ? Kt(...Ue(t).map((s) => {
const { top: r, left: o, bottom: l, right: u } = Yt(s);
return { top: r - e, left: o - i, bottom: l + e, right: u + i };
}).concat(G(t))) : false;
}
function to(t, { offset: e = 0 } = {}) {
const i = St(t) ? di(t, false, ["hidden"]) : [];
return i.reduce((l, u, d) => {
const { scrollTop: v, scrollHeight: $, offsetHeight: y } = u, A = Yt(u), D = $ - A.height, { height: B, top: q } = i[d - 1] ? Yt(i[d - 1]) : G(t);
let Z = Math.ceil(q - A.top - e + v);
return e > 0 && y < B + e ? Z += e : e = 0, Z > D ? (e -= Z - D, Z = D) : Z < 0 && (e -= Z, Z = 0), () => s(u, Z - v, t, D).then(l);
}, () => Promise.resolve())();
function s(l, u, d, v) {
return new Promise(($) => {
const y = l.scrollTop, A = r(Math.abs(u)), D = Date.now(), B = Sn(l) === l, q = G(d).top + (B ? 0 : y);
let Z = 0, jt = 15;
(function me() {
const _e = o(ft((Date.now() - D) / A));
let se = 0;
i[0] === l && y + u < v && (se = G(d).top + (B ? 0 : l.scrollTop) - q - H(kn(d)).height), g(l, "scrollBehavior") !== "auto" && g(l, "scrollBehavior", "auto"), l.scrollTop = y + (u + se) * _e, g(l, "scrollBehavior", ""), _e === 1 && (Z === se || !jt--) ? $() : (Z = se, requestAnimationFrame(me));
})();
});
}
function r(l) {
return 40 * Math.pow(l, 0.375);
}
function o(l) {
return 0.5 * (1 - Math.cos(Math.PI * l));
}
}
function ws(t, e = 0, i = 0) {
if (!St(t))
return 0;
const s = ze(t, true), { scrollHeight: r, scrollTop: o } = s, { height: l } = Yt(s), u = r - l, d = Bi(t)[0] - Bi(s)[0], v = Math.max(0, d - l + e), $ = Math.min(u, d + t.offsetHeight - i);
return v < $ ? ft((o - v) / ($ - v)) : 1;
}
function di(t, e = false, i = []) {
const s = Sn(t);
let r = li(t).reverse();
r = r.slice(r.indexOf(s) + 1);
const o = I(r, (l) => g(l, "position") === "fixed");
return ~o && (r = r.slice(o)), [s].concat(r.filter((l) => g(l, "overflow").split(" ").some((u) => b(["auto", "scroll", ...i], u)) && (!e || l.scrollHeight > Yt(l).height))).reverse();
}
function ze(...t) {
return di(...t)[0];
}
function Ue(t) {
return di(t, false, ["hidden", "clip"]);
}
function Yt(t) {
const e = T(t), i = Sn(t), s = !He(t) || t.contains(i);
if (s && e.visualViewport) {
let { height: d, width: v, scale: $, pageTop: y, pageLeft: A } = e.visualViewport;
return d = Math.round(d * $), v = Math.round(v * $), { height: d, width: v, top: y, left: A, bottom: y + d, right: A + v };
}
let r = G(s ? e : t);
if (g(t, "display") === "inline")
return r;
const { body: o, documentElement: l } = e.document, u = s ? i === l || i.clientHeight < o.clientHeight ? i : o : t;
for (let [d, v, $, y] of [["width", "x", "left", "right"], ["height", "y", "top", "bottom"]]) {
const A = r[d] % 1;
r[$] += x(g(u, `border-${$}-width`)), r[d] = r[v] = u[`client${k(d)}`] - (A ? A < 0.5 ? -A : 1 - A : 0), r[y] = r[d] + r[$];
}
return r;
}
function kn(t) {
const { left: e, width: i, top: s } = H(t);
for (const r of s ? [0, s] : [0]) {
let o;
for (const l of T(t).document.elementsFromPoint(e + i / 2, r))
!l.contains(t) && !W(l, "uk-togglable-leave") && (xn(l, "fixed") && eo(li(t).reverse().find((u) => !u.contains(l) && !xn(u, "static"))) < eo(l) || xn(l, "sticky") && it(l).contains(t)) && (!o || H(o).height < H(l).height) && (o = l);
if (o)
return o;
}
}
function eo(t) {
return x(g(t, "zIndex"));
}
function xn(t, e) {
return g(t, "position") === e;
}
function Sn(t) {
return T(t).document.scrollingElement;
}
const Nt = [["width", "x", "left", "right"], ["height", "y", "top", "bottom"]];
function io(t, e, i) {
i = { attach: { element: ["left", "top"], target: ["left", "top"], ...i.attach }, offset: [0, 0], placement: [], ...i }, P(e) || (e = [e, e]), G(t, so(t, e, i));
}
function so(t, e, i) {
const s = no(t, e, i), { boundary: r, viewportOffset: o = 0, placement: l } = i;
let u = s;
for (const [d, [v, , $, y]] of Object.entries(Nt)) {
const A = vc(t, e[d], o, r, d);
if (ks(s, A, d))
continue;
let D = 0;
if (l[d] === "flip") {
const B = i.attach.target[d];
if (B === y && s[y] <= A[y] || B === $ && s[$] >= A[$])
continue;
D = bc(t, e, i, d)[$] - s[$];
const q = $c(t, e[d], o, d);
if (!ks(_n(s, D, d), q, d)) {
if (ks(s, q, d))
continue;
if (i.recursion)
return false;
const Z = yc(t, e, i);
if (Z && ks(Z, q, 1 - d))
return Z;
continue;
}
} else if (l[d] === "shift") {
const B = G(e[d]), { offset: q } = i;
D = ft(ft(s[$], A[$], A[y] - s[v]), B[$] - s[v] + q[d], B[y] - q[d]) - s[$];
}
u = _n(u, D, d);
}
return u;
}
function no(t, e, i) {
let { attach: s, offset: r } = { attach: { element: ["left", "top"], target: ["left", "top"], ...i.attach }, offset: [0, 0], ...i }, o = G(t);
for (const [l, [u, , d, v]] of Object.entries(Nt)) {
const $ = s.target[l] === s.element[l] ? Yt(e[l]) : G(e[l]);
o = _n(o, $[d] - o[d] + ro(s.target[l], v, $[u]) - ro(s.element[l], v, o[u]) + +r[l], l);
}
return o;
}
function _n(t, e, i) {
const [, s, r, o] = Nt[i], l = { ...t };
return l[r] = t[s] = t[r] + e, l[o] += e, l;
}
function ro(t, e, i) {
return t === "center" ? i / 2 : t === e ? i : 0;
}
function vc(t, e, i, s, r) {
let o = ao(...oo(t, e).map(Yt));
return i && (o[Nt[r][2]] += i, o[Nt[r][3]] -= i), s && (o = ao(o, G(P(s) ? s[r] : s))), o;
}
function $c(t, e, i, s) {
const [r, o, l, u] = Nt[s], [d] = oo(t, e), v = Yt(d);
return ["auto", "scroll"].includes(g(d, `overflow-${o}`)) && (v[l] -= d[`scroll${k(l)}`], v[u] = v[l] + d[`scroll${k(r)}`]), v[l] += i, v[u] -= i, v;
}
function oo(t, e) {
return Ue(e).filter((i) => i.contains(t));
}
function ao(...t) {
let e = {};
for (const i of t)
for (const [, , s, r] of Nt)
e[s] = Math.max(e[s] || 0, i[s]), e[r] = Math.min(...[e[r], i[r]].filter(Boolean));
return e;
}
function ks(t, e, i) {
const [, , s, r] = Nt[i];
return t[s] >= e[s] && t[r] <= e[r];
}
function bc(t, e, { offset: i, attach: s }, r) {
return no(t, e, { attach: { element: lo(s.element, r), target: lo(s.target, r) }, offset: wc(i, r) });
}
function yc(t, e, i) {
return so(t, e, { ...i, attach: { element: i.attach.element.map(co).reverse(), target: i.attach.target.map(co).reverse() }, offset: i.offset.reverse(), placement: i.placement.reverse(), recursion: true });
}
function lo(t, e) {
const i = [...t], s = Nt[e].indexOf(t[e]);
return ~s && (i[e] = Nt[e][1 - s % 2 + 2]), i;
}
function co(t) {
for (let e = 0;e < Nt.length; e++) {
const i = Nt[e].indexOf(t);
if (~i)
return Nt[1 - e][i % 2 + 2];
}
}
function wc(t, e) {
return t = [...t], t[e] *= -1, t;
}
var kc = Object.freeze({ __proto__: null, $: F, $$: ct, Animation: ye, Dimensions: Zs, MouseTracker: Vr, Transition: nt, addClass: V, after: fs, append: $t, apply: we, assign: Y, attr: O, before: ds, boxModelAdjust: dn, camelize: p, children: st, clamp: ft, createEvent: hi, css: g, data: It, dimensions: H, each: lt, empty: Rr, endsWith: C, escape: nn, fastdom: ke, filter: Di, find: en, findAll: Mi, findIndex: I, flipPosition: gs, fragment: fe, getCoveringElement: kn, getEventPos: ue, getIndex: Ht, getTargetedElement: tn, hasAttr: $e, hasClass: W, hasOwn: a, hasTouch: ri, height: Pt, html: de, hyphenate: c, inBrowser: Le, includes: b, index: he, intersectRect: Kt, isArray: P, isBoolean: ce, isDocument: le, isElement: zt, isEmpty: Q, isEqual: R, isFocusable: cs, isFunction: rt, isInView: gc, isInput: ls, isNode: He, isNumber: ee, isNumeric: at, isObject: Dt, isPlainObject: te, isRtl: xt, isSameSiteAnchor: ci, isString: ht, isTag: pt, isTouch: Gt, isUndefined: vt, isVisible: St, isVoidElement: Qs, isWindow: ii, last: K, matches: tt, memoize: Ft, mute: Gr, noop: ut, observeIntersection: Jr, observeMutation: gn, observeResize: bs, observeViewportResize: mn, off: je, offset: G, offsetPosition: Bi, offsetViewport: Yt, on: J, once: gt, overflowParents: Ue, parent: it, parents: li, pause: ys, pick: ie, play: vn, pointInRect: kt, pointerCancel: as, pointerDown: Wt, pointerEnter: Be, pointerLeave: ai, pointerMove: os, pointerUp: be, position: un, positionAt: io, prepend: ec, propName: hs, query: qt, queryAll: Pi, ready: tc, remove: Ct, removeAttr: Ci, removeClass: ot, replaceClass: Xs, scrollIntoView: to, scrollParent: ze, scrollParents: di, scrolledOver: ws, selFocusable: Oi, selInput: Ti, sortBy: wt, startsWith: w, sumBy: dt, swap: U, toArray: N, toBoolean: si, toEventTargets: on, toFloat: x, toNode: S, toNodes: _, toNumber: L, toPx: At, toWindow: T, toggleClass: mt, trigger: M, ucfirst: k, uniqueBy: Ot, unwrap: Li, width: ms, wrapAll: Ni, wrapInner: hn });
const _t = {};
_t.events = _t.watch = _t.observe = _t.created = _t.beforeConnect = _t.connected = _t.beforeDisconnect = _t.disconnected = _t.destroy = An, _t.args = function(t, e) {
return e !== false && An(e || t);
}, _t.update = function(t, e) {
return wt(An(t, rt(e) ? { read: e } : e), "order");
}, _t.props = function(t, e) {
if (P(e)) {
const i = {};
for (const s of e)
i[s] = String;
e = i;
}
return _t.methods(t, e);
}, _t.computed = _t.methods = function(t, e) {
return e ? t ? { ...t, ...e } : e : t;
}, _t.i18n = _t.data = function(t, e, i) {
return i ? ho(t, e, i) : e ? t ? function(s) {
return ho(t, e, s);
} : e : t;
};
function ho(t, e, i) {
return _t.computed(rt(t) ? t.call(i, i) : t, rt(e) ? e.call(i, i) : e);
}
function An(t, e) {
return t = t && !P(t) ? [t] : t, e ? t ? t.concat(e) : P(e) ? e : [e] : t;
}
function xc(t, e) {
return vt(e) ? t : e;
}
function Ri(t, e, i) {
const s = {};
if (rt(e) && (e = e.options), e.extends && (t = Ri(t, e.extends, i)), e.mixins)
for (const o of e.mixins)
t = Ri(t, o, i);
for (const o in t)
r(o);
for (const o in e)
a(t, o) || r(o);
function r(o) {
s[o] = (_t[o] || xc)(t[o], e[o], i);
}
return s;
}
function fi(t, e = []) {
try {
return t ? w(t, "{") ? JSON.parse(t) : e.length && !b(t, ":") ? { [e[0]]: t } : t.split(";").reduce((i, s) => {
const [r, o] = s.split(/:(.*)/);
return r && !vt(o) && (i[r.trim()] = o.trim()), i;
}, {}) : {};
} catch {
return {};
}
}
function En(t, e) {
return t === Boolean ? si(e) : t === Number ? L(e) : t === "list" ? _c(e) : t === Object && ht(e) ? fi(e) : t ? t(e) : e;
}
const Sc = /,(?![^(]*\))/;
function _c(t) {
return P(t) ? t : ht(t) ? t.split(Sc).map((e) => at(e) ? L(e) : si(e.trim())) : [t];
}
function Ac(t) {
t._data = {}, t._updates = [...t.$options.update || []], t._disconnect.push(() => t._updates = t._data = null);
}
function Ec(t, e) {
t._updates.unshift(e);
}
function zi(t, e = "update") {
t._connected && t._updates.length && (t._queued || (t._queued = new Set, ke.read(() => {
t._connected && Ic(t, t._queued), t._queued = null;
})), t._queued.add(e.type || e));
}
function Ic(t, e) {
for (const { read: i, write: s, events: r = [] } of t._updates) {
if (!e.has("update") && !r.some((l) => e.has(l)))
continue;
let o;
i && (o = i.call(t, t._data, e), o && te(o) && Y(t._data, o)), s && o !== false && ke.write(() => {
t._connected && s.call(t, t._data, e);
});
}
}
function pe(t) {
return Wi(bs, t, "resize");
}
function Ui(t) {
return Wi(Jr, t);
}
function In(t) {
return Wi(gn, t);
}
function xs(t = {}) {
return Ui({ handler: function(e, i) {
const { targets: s = this.$el, preload: r = 5 } = t;
for (const o of _(rt(s) ? s(this) : s))
ct('[loading="lazy"]', o).slice(0, r - 1).forEach((l) => Ci(l, "loading"));
for (const o of e.filter(({ isIntersecting: l }) => l).map(({ target: l }) => l))
i.unobserve(o);
}, ...t });
}
function uo(t) {
return Wi((e, i) => mn(i), t, "resize");
}
function Fi(t) {
return Wi((e, i) => ({ disconnect: J(Tc(e), "scroll", i, { passive: true }) }), t, "scroll");
}
function fo(t) {
return { observe(e, i) {
return { observe: ut, unobserve: ut, disconnect: J(e, Wt, i, { passive: true }) };
}, handler(e) {
if (!Gt(e))
return;
const i = ue(e), s = "tagName" in e.target ? e.target : it(e.target);
gt(document, `${be} ${as} scroll`, (r) => {
const { x: o, y: l } = ue(r);
(r.type !== "scroll" && s && o && Math.abs(i.x - o) > 100 || l && Math.abs(i.y - l) > 100) && setTimeout(() => {
M(s, "swipe"), M(s, `swipe${Cc(i.x, i.y, o, l)}`);
});
});
}, ...t };
}
function Wi(t, e, i) {
return { observe: t, handler() {
zi(this, i);
}, ...e };
}
function Cc(t, e, i, s) {
return Math.abs(t - i) >= Math.abs(e - s) ? t - i > 0 ? "Left" : "Right" : e - s > 0 ? "Up" : "Down";
}
function Tc(t) {
return _(t).map((e) => {
const { ownerDocument: i } = e, s = ze(e, true);
return s === i.scrollingElement ? i : s;
});
}
var Oc = { props: { margin: String, firstColumn: Boolean }, data: { margin: "uk-margin-small-top", firstColumn: "uk-first-column" }, observe: [In({ options: { childList: true } }), In({ options: { attributes: true, attributeFilter: ["style"] }, target: ({ $el: t }) => [t, ...st(t)] }), pe({ target: ({ $el: t }) => [t, ...st(t)] })], update: { read() {
return { rows: po(st(this.$el)) };
}, write({ rows: t }) {
for (const e of t)
for (const i of e)
mt(i, this.margin, t[0] !== e), mt(i, this.firstColumn, e[xt ? e.length - 1 : 0] === i);
}, events: ["resize"] } };
function po(t) {
const e = [[]], i = t.some((s, r) => r && t[r - 1].offsetParent !== s.offsetParent);
for (const s of t) {
if (!St(s))
continue;
const r = Cn(s, i);
for (let o = e.length - 1;o >= 0; o--) {
const l = e[o];
if (!l[0]) {
l.push(s);
break;
}
const u = Cn(l[0], i);
if (r.top >= u.bottom - 1 && r.top !== u.top) {
e.push([s]);
break;
}
if (r.bottom - 1 > u.top || r.top === u.top) {
let d = l.length - 1;
for (;d >= 0; d--) {
const v = Cn(l[d], i);
if (r.left >= v.left)
break;
}
l.splice(d + 1, 0, s);
break;
}
if (o === 0) {
e.unshift([s]);
break;
}
}
}
return e;
}
function Cn(t, e = false) {
let { offsetTop: i, offsetLeft: s, offsetHeight: r, offsetWidth: o } = t;
return e && ([i, s] = Bi(t)), { top: i, left: s, bottom: i + r, right: s + o };
}
async function Dc(t, e, i) {
await Tn();
let s = st(e);
const r = s.map((D) => mo(D, true)), o = { ...g(e, ["height", "padding"]), display: "block" }, l = s.concat(e);
await Promise.all(l.map(nt.cancel)), g(l, "transitionProperty", "none"), await t(), s = s.concat(st(e).filter((D) => !b(s, D))), await Promise.resolve(), g(l, "transitionProperty", "");
const u = O(e, "style"), d = g(e, ["height", "padding"]), [v, $] = Pc(e, s, r), y = s.map((D) => ({ style: O(D, "style") }));
s.forEach((D, B) => $[B] && g(D, $[B])), g(e, o), M(e, "scroll"), await Tn();
const A = s.map((D, B) => it(D) === e && nt.start(D, v[B], i, "ease")).concat(nt.start(e, d, i, "ease"));
try {
await Promise.all(A), s.forEach((D, B) => {
O(D, y[B]), it(D) === e && g(D, "display", v[B].opacity === 0 ? "none" : "");
}), O(e, "style", u);
} catch {
O(s, "style", ""), Mc(e, o);
}
}
function mo(t, e) {
const i = g(t, "zIndex");
return St(t) ? { display: "", opacity: e ? g(t, "opacity") : "0", pointerEvents: "none", position: "absolute", zIndex: i === "auto" ? he(t) : i, ...go(t) } : false;
}
function Pc(t, e, i) {
const s = e.map((o, l) => it(o) && (l in i) ? i[l] ? St(o) ? go(o) : { opacity: 0 } : { opacity: St(o) ? 1 : 0 } : false), r = s.map((o, l) => {
const u = it(e[l]) === t && (i[l] || mo(e[l]));
if (!u)
return false;
if (!o)
delete u.opacity;
else if (!("opacity" in o)) {
const { opacity: d } = u;
d % 1 ? o.opacity = 1 : delete u.opacity;
}
return u;
});
return [s, r];
}
function Mc(t, e) {
for (const i in e)
g(t, i, "");
}
function go(t) {
const { height: e, width: i } = H(t);
return { height: e, width: i, transform: "", ...un(t), ...g(t, ["marginTop", "marginLeft"]) };
}
function Tn() {
return new Promise((t) => requestAnimationFrame(t));
}
const On = "uk-transition-leave", Dn = "uk-transition-enter";
function vo(t, e, i, s = 0) {
const r = Ss(e, true), o = { opacity: 1 }, l = { opacity: 0 }, u = ($) => () => r === Ss(e) ? $() : Promise.reject(), d = u(async () => {
V(e, On), await Promise.all(bo(e).map(($, y) => new Promise((A) => setTimeout(() => nt.start($, l, i / 2, "ease").then(A), y * s)))), ot(e, On);
}), v = u(async () => {
const $ = Pt(e);
V(e, Dn), t(), g(st(e), { opacity: 0 }), await Tn();
const y = st(e), A = Pt(e);
g(e, "alignContent", "flex-start"), Pt(e, $);
const D = bo(e);
g(y, l);
const B = D.map(async (q, Z) => {
await Hc(Z * s), await nt.start(q, o, i / 2, "ease");
});
$ !== A && B.push(nt.start(e, { height: A }, i / 2 + D.length * s, "ease")), await Promise.all(B).then(() => {
ot(e, Dn), r === Ss(e) && (g(e, { height: "", alignContent: "" }), g(y, { opacity: "" }), delete e.dataset.transition);
});
});
return W(e, On) ? $o(e).then(v) : W(e, Dn) ? $o(e).then(d).then(v) : d().then(v);
}
function Ss(t, e) {
return e && (t.dataset.transition = 1 + Ss(t)), L(t.dataset.transition) || 0;
}
function $o(t) {
return Promise.all(st(t).filter(nt.inProgress).map((e) => new Promise((i) => gt(e, "transitionend transitioncanceled", i))));
}
function bo(t) {
return po(st(t)).flat().filter(St);
}
function Hc(t) {
return new Promise((e) => setTimeout(e, t));
}
var yo = { props: { duration: Number, animation: Boolean }, data: { duration: 150, animation: "slide" }, methods: { animate(t, e = this.$el) {
const i = this.animation;
return (i === "fade" ? vo : i === "delayed-fade" ? (...r) => vo(...r, 40) : i ? Dc : () => (t(), Promise.resolve()))(t, e, this.duration).catch(ut);
} } };
const et = { TAB: 9, ESC: 27, SPACE: 32, END: 35, HOME: 36, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40 };
var Nc = { mixins: [yo], args: "target", props: { target: String, selActive: Boolean }, data: { target: "", selActive: false, attrItem: "uk-filter-control", cls: "uk-active", duration: 250 }, computed: { children: ({ target: t }, e) => ct(`${t} > *`, e), toggles: ({ attrItem: t }, e) => ct(`[${t}],[data-${t}]`, e) }, watch: { toggles(t) {
this.updateState();
const e = ct(this.selActive, this.$el);
for (const i of t) {
this.selActive !== false && mt(i, this.cls, b(e, i));
const s = zc(i);
pt(s, "a") && O(s, "role", "button");
}
}, children(t, e) {
e && this.updateState();
} }, events: { name: "click keydown", delegate: ({ attrItem: t }) => `[${t}],[data-${t}]`, handler(t) {
t.type === "keydown" && t.keyCode !== et.SPACE || t.target.closest("a,button") && (t.preventDefault(), this.apply(t.current));
} }, methods: { apply(t) {
const e = this.getState(), i = ko(t, this.attrItem, this.getState());
Lc(e, i) || this.setState(i);
}, getState() {
return this.toggles.filter((t) => W(t, this.cls)).reduce((t, e) => ko(e, this.attrItem, t), { filter: { "": "" }, sort: [] });
}, async setState(t, e = true) {
t = { filter: { "": "" }, sort: [], ...t }, M(this.$el, "beforeFilter", [this, t]);
for (const i of this.toggles)
mt(i, this.cls, jc(i, this.attrItem, t));
await Promise.all(ct(this.target, this.$el).map((i) => {
const s = () => Bc(t, i, st(i));
return e ? this.animate(s, i) : s();
})), M(this.$el, "afterFilter", [this]);
}, updateState() {
ke.write(() => this.setState(this.getState(), false));
} } };
function wo(t, e) {
return fi(It(t, e), ["filter"]);
}
function Lc(t, e) {
return ["filter", "sort"].every((i) => R(t[i], e[i]));
}
function Bc(t, e, i) {
for (const o of i)
g(o, "display", Object.values(t.filter).every((l) => !l || tt(o, l)) ? "" : "none");
const [s, r] = t.sort;
if (s) {
const o = Rc(i, s, r);
R(o, i) || $t(e, o);
}
}
function ko(t, e, i) {
const { filter: s, group: r, sort: o, order: l = "asc" } = wo(t, e);
return (s || vt(o)) && (r ? s ? (delete i.filter[""], i.filter[r] = s) : (delete i.filter[r], (Q(i.filter) || ("" in i.filter)) && (i.filter = { "": s || "" })) : i.filter = { "": s || "" }), vt(o) || (i.sort = [o, l]), i;
}
function jc(t, e, { filter: i = { "": "" }, sort: [s, r] }) {
const { filter: o = "", group: l = "", sort: u, order: d = "asc" } = wo(t, e);
return vt(u) ? l in i && o === i[l] || !o && l && !(l in i) && !i[""] : s === u && r === d;
}
function Rc(t, e, i) {
return [...t].sort((s, r) => It(s, e).localeCompare(It(r, e), undefined, { numeric: true }) * (i === "asc" || -1));
}
function zc(t) {
return F("a,button", t) || t;
}
var Uc = { args: "dataSrc", props: { dataSrc: String, sources: String, margin: String, target: String, loading: String }, data: { dataSrc: "", sources: false, margin: "50%", target: false, loading: "lazy" }, connected() {
this.loading !== "lazy" ? this.load() : Mn(this.$el) && (this.$el.loading = "lazy", Pn(this.$el));
}, disconnected() {
this.img && (this.img.onload = ""), delete this.img;
}, observe: Ui({ handler(t, e) {
this.load(), e.disconnect();
}, options: ({ margin: t }) => ({ rootMargin: t }), filter: ({ loading: t }) => t === "lazy", target: ({ $el: t, $props: e }) => e.target ? [t, ...Pi(e.target, t)] : t }), methods: { load() {
if (this.img)
return this.img;
const t = Mn(this.$el) ? this.$el : Wc(this.$el, this.dataSrc, this.sources);
return Ci(t, "loading"), Pn(this.$el, t.currentSrc), this.img = t;
} } };
function Pn(t, e) {
if (Mn(t)) {
const i = it(t);
(pt(i, "picture") ? st(i) : [t]).forEach((r) => xo(r, r));
} else
e && !b(t.style.backgroundImage, e) && (g(t, "backgroundImage", `url(${nn(e)})`), M(t, hi("load", false)));
}
const Fc = ["data-src", "data-srcset", "sizes"];
function xo(t, e) {
for (const i of Fc) {
const s = It(t, i);
s && O(e, i.replace(/data-/g, ""), s);
}
}
function Wc(t, e, i) {
const s = new Image;
return So(s, i), xo(t, s), s.onload = () => Pn(t, s.currentSrc), O(s, "src", e), s;
}
function So(t, e) {
if (e = qc(e), e.length) {
const i = fe("