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(S) {
var So;
const ji = globalThis, zi = ji.ShadowRoot && (ji.ShadyCSS === undefined || ji.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Cs = Symbol(), Kn = new WeakMap;
let Ts = class {
constructor(n, a, h) {
if (this._$cssResult$ = true, h !== Cs)
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 (zi && n === undefined) {
const h = a !== undefined && a.length === 1;
h && (n = Kn.get(a)), n === undefined && ((this.o = n = new CSSStyleSheet).replaceSync(this.cssText), h && Kn.set(a, n));
}
return n;
}
toString() {
return this.cssText;
}
};
const Jn = (d) => new Ts(typeof d == "string" ? d : d + "", undefined, Cs), Ba = (d, ...n) => {
const a = d.length === 1 ? d[0] : n.reduce((h, c, g) => 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) + d[g + 1], d[0]);
return new Ts(a, d, Cs);
}, Gn = (d, n) => {
if (zi)
d.adoptedStyleSheets = n.map((a) => a instanceof CSSStyleSheet ? a : a.styleSheet);
else
for (const a of n) {
const h = document.createElement("style"), c = ji.litNonce;
c !== undefined && h.setAttribute("nonce", c), h.textContent = a.cssText, d.appendChild(h);
}
}, Ps = zi ? (d) => d : (d) => d instanceof CSSStyleSheet ? ((n) => {
let a = "";
for (const h of n.cssRules)
a += h.cssText;
return Jn(a);
})(d) : d;
const { is: Ra, defineProperty: ja, getOwnPropertyDescriptor: za, getOwnPropertyNames: Fa, getOwnPropertySymbols: Ua, getPrototypeOf: qa } = Object, Jt = globalThis, Xn = Jt.trustedTypes, Wa = Xn ? Xn.emptyScript : "", Os = Jt.reactiveElementPolyfillSupport, ei = (d, n) => d, ii = { toAttribute(d, n) {
switch (n) {
case Boolean:
d = d ? Wa : null;
break;
case Object:
case Array:
d = d == null ? d : JSON.stringify(d);
}
return d;
}, fromAttribute(d, n) {
let a = d;
switch (n) {
case Boolean:
a = d !== null;
break;
case Number:
a = d === null ? null : Number(d);
break;
case Object:
case Array:
try {
a = JSON.parse(d);
} catch {
a = null;
}
}
return a;
} }, Fi = (d, n) => !Ra(d, n), Zn = { attribute: true, type: String, converter: ii, reflect: false, hasChanged: Fi };
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Jt.litPropertyMetadata ?? (Jt.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 = Zn) {
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 && ja(this.prototype, n, c);
}
}
static getPropertyDescriptor(n, a, h) {
const { get: c, set: g } = za(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);
g.call(this, p), this.requestUpdate(n, k, h);
}, configurable: true, enumerable: true };
}
static getPropertyOptions(n) {
return this.elementProperties.get(n) ?? Zn;
}
static _$Ei() {
if (this.hasOwnProperty(ei("elementProperties")))
return;
const n = qa(this);
n.finalize(), n.l !== undefined && (this.l = [...n.l]), this.elementProperties = new Map(n.elementProperties);
}
static finalize() {
if (this.hasOwnProperty(ei("finalized")))
return;
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(ei("properties"))) {
const a = this.properties, h = [...Fa(a), ...Ua(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(Ps(c));
} else
n !== undefined && a.push(Ps(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 Gn(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 g;
const h = this.constructor.elementProperties.get(n), c = this.constructor._$Eu(n, h);
if (c !== undefined && h.reflect === true) {
const p = (((g = h.converter) == null ? undefined : g.toAttribute) !== undefined ? h.converter : ii).toAttribute(a, h.type);
this._$Em = n, p == null ? this.removeAttribute(c) : this.setAttribute(c, p), this._$Em = null;
}
}
_$AK(n, a) {
var g;
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 } : ((g = p.converter) == null ? undefined : g.fromAttribute) !== undefined ? p.converter : ii;
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 ?? Fi)(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 [g, p] of this._$Ep)
this[g] = p;
this._$Ep = undefined;
}
const c = this.constructor.elementProperties;
if (c.size > 0)
for (const [g, p] of c)
p.wrapped !== true || this._$AL.has(g) || this[g] === undefined || this.P(g, this[g], 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 g;
return (g = c.hostUpdate) == null ? undefined : g.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[ei("elementProperties")] = new Map, ae[ei("finalized")] = new Map, Os == null || Os({ ReactiveElement: ae }), (Jt.reactiveElementVersions ?? (Jt.reactiveElementVersions = [])).push("2.0.4");
const si = globalThis, Ui = si.trustedTypes, Qn = Ui ? Ui.createPolicy("lit-html", { createHTML: (d) => d }) : undefined, Ds = "$lit$", Bt = `lit$${Math.random().toFixed(9).slice(2)}$`, Ms = "?" + Bt, Va = `<${Ms}>`, le = document, ni = () => le.createComment(""), oi = (d) => d === null || typeof d != "object" && typeof d != "function", to = Array.isArray, eo = (d) => to(d) || typeof (d == null ? undefined : d[Symbol.iterator]) == "function", Hs = `[
\f\r]`, ri = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, io = /-->/g, so = />/g, ce = RegExp(`>|${Hs}(?:([^\\s"'>=/]+)(${Hs}*=${Hs}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`, "g"), no = /'/g, oo = /"/g, ro = /^(?:script|style|textarea|title)$/i, ao = (d) => (n, ...a) => ({ _$litType$: d, strings: n, values: a }), D = ao(1), Ya = ao(2), Gt = Symbol.for("lit-noChange"), lt = Symbol.for("lit-nothing"), lo = new WeakMap, he = le.createTreeWalker(le, 129);
function co(d, n) {
if (!Array.isArray(d) || !d.hasOwnProperty("raw"))
throw Error("invalid template strings array");
return Qn !== undefined ? Qn.createHTML(n) : n;
}
const ho = (d, n) => {
const a = d.length - 1, h = [];
let c, g = n === 2 ? "" : "")), h];
};
class ai {
constructor({ strings: n, _$litType$: a }, h) {
let c;
this.parts = [];
let g = 0, p = 0;
const k = n.length - 1, y = this.parts, [_, w] = ho(n, a);
if (this.el = ai.createElement(_, h), he.currentNode = this.el.content, a === 2) {
const E = this.el.content.firstChild;
E.replaceWith(...E.childNodes);
}
for (;(c = he.nextNode()) !== null && y.length < k; ) {
if (c.nodeType === 1) {
if (c.hasAttributes())
for (const E of c.getAttributeNames())
if (E.endsWith(Ds)) {
const P = w[p++], M = c.getAttribute(E).split(Bt), V = /([.?@])?(.*)/.exec(P);
y.push({ type: 1, index: g, name: V[2], strings: M, ctor: V[1] === "." ? fo : V[1] === "?" ? po : V[1] === "@" ? go : li }), c.removeAttribute(E);
} else
E.startsWith(Bt) && (y.push({ type: 6, index: g }), c.removeAttribute(E));
if (ro.test(c.tagName)) {
const E = c.textContent.split(Bt), P = E.length - 1;
if (P > 0) {
c.textContent = Ui ? Ui.emptyScript : "";
for (let M = 0;M < P; M++)
c.append(E[M], ni()), he.nextNode(), y.push({ type: 2, index: ++g });
c.append(E[P], ni());
}
}
} else if (c.nodeType === 8)
if (c.data === Ms)
y.push({ type: 2, index: g });
else {
let E = -1;
for (;(E = c.data.indexOf(Bt, E + 1)) !== -1; )
y.push({ type: 7, index: g }), E += Bt.length - 1;
}
g++;
}
}
static createElement(n, a) {
const h = le.createElement("template");
return h.innerHTML = n, h;
}
}
function ue(d, n, a = d, h) {
var p, k;
if (n === Gt)
return n;
let c = h !== undefined ? (p = a._$Co) == null ? undefined : p[h] : a._$Cl;
const g = oi(n) ? undefined : n._$litDirective$;
return (c == null ? undefined : c.constructor) !== g && ((k = c == null ? undefined : c._$AO) == null || k.call(c, false), g === undefined ? c = undefined : (c = new g(d), c._$AT(d, a, h)), h !== undefined ? (a._$Co ?? (a._$Co = []))[h] = c : a._$Cl = c), c !== undefined && (n = ue(d, c._$AS(d, n.values), c, h)), n;
}
class uo {
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) ?? le).importNode(a, true);
he.currentNode = c;
let g = he.nextNode(), p = 0, k = 0, y = h[0];
for (;y !== undefined; ) {
if (p === y.index) {
let _;
y.type === 2 ? _ = new Oe(g, g.nextSibling, this, n) : y.type === 1 ? _ = new y.ctor(g, y.name, y.strings, this, n) : y.type === 6 && (_ = new mo(g, this, n)), this._$AV.push(_), y = h[++k];
}
p !== (y == null ? undefined : y.index) && (g = he.nextNode(), p++);
}
return he.currentNode = le, 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 Oe {
get _$AU() {
var n;
return ((n = this._$AM) == null ? undefined : n._$AU) ?? this._$Cv;
}
constructor(n, a, h, c) {
this.type = 2, this._$AH = lt, 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 = ue(this, n, a), oi(n) ? n === lt || n == null || n === "" ? (this._$AH !== lt && this._$AR(), this._$AH = lt) : n !== this._$AH && n !== Gt && this._(n) : n._$litType$ !== undefined ? this.$(n) : n.nodeType !== undefined ? this.T(n) : eo(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 !== lt && oi(this._$AH) ? this._$AA.nextSibling.data = n : this.T(le.createTextNode(n)), this._$AH = n;
}
$(n) {
var g;
const { values: a, _$litType$: h } = n, c = typeof h == "number" ? this._$AC(n) : (h.el === undefined && (h.el = ai.createElement(co(h.h, h.h[0]), this.options)), h);
if (((g = this._$AH) == null ? undefined : g._$AD) === c)
this._$AH.p(a);
else {
const p = new uo(c, this), k = p.u(this.options);
p.p(a), this.T(k), this._$AH = p;
}
}
_$AC(n) {
let a = lo.get(n.strings);
return a === undefined && lo.set(n.strings, a = new ai(n)), a;
}
k(n) {
to(this._$AH) || (this._$AH = [], this._$AR());
const a = this._$AH;
let h, c = 0;
for (const g of n)
c === a.length ? a.push(h = new Oe(this.S(ni()), this.S(ni()), this, this.options)) : h = a[c], h._$AI(g), 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 li {
get tagName() {
return this.element.tagName;
}
get _$AU() {
return this._$AM._$AU;
}
constructor(n, a, h, c, g) {
this.type = 1, this._$AH = lt, this._$AN = undefined, this.element = n, this.name = a, this._$AM = c, this.options = g, h.length > 2 || h[0] !== "" || h[1] !== "" ? (this._$AH = Array(h.length - 1).fill(new String), this.strings = h) : this._$AH = lt;
}
_$AI(n, a = this, h, c) {
const g = this.strings;
let p = false;
if (g === undefined)
n = ue(this, n, a, 0), p = !oi(n) || n !== this._$AH && n !== Gt, p && (this._$AH = n);
else {
const k = n;
let y, _;
for (n = g[0], y = 0;y < g.length - 1; y++)
_ = ue(this, k[h + y], a, y), _ === Gt && (_ = this._$AH[y]), p || (p = !oi(_) || _ !== this._$AH[y]), _ === lt ? n = lt : n !== lt && (n += (_ ?? "") + g[y + 1]), this._$AH[y] = _;
}
p && !c && this.j(n);
}
j(n) {
n === lt ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, n ?? "");
}
}
class fo extends li {
constructor() {
super(...arguments), this.type = 3;
}
j(n) {
this.element[this.name] = n === lt ? undefined : n;
}
}
class po extends li {
constructor() {
super(...arguments), this.type = 4;
}
j(n) {
this.element.toggleAttribute(this.name, !!n && n !== lt);
}
}
class go extends li {
constructor(n, a, h, c, g) {
super(n, a, h, c, g), this.type = 5;
}
_$AI(n, a = this) {
if ((n = ue(this, n, a, 0) ?? lt) === Gt)
return;
const h = this._$AH, c = n === lt && h !== lt || n.capture !== h.capture || n.once !== h.once || n.passive !== h.passive, g = n !== lt && (h === lt || c);
c && this.element.removeEventListener(this.name, this, h), g && 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 mo {
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) {
ue(this, n);
}
}
const vo = { P: Ds, A: Bt, C: Ms, M: 1, L: ho, R: uo, D: eo, V: ue, I: Oe, H: li, N: po, U: go, B: fo, F: mo }, Ns = si.litHtmlPolyfillSupport;
Ns == null || Ns(ai, Oe), (si.litHtmlVersions ?? (si.litHtmlVersions = [])).push("3.1.4");
const $o = (d, n, a) => {
const h = (a == null ? undefined : a.renderBefore) ?? n;
let c = h._$litPart$;
if (c === undefined) {
const g = (a == null ? undefined : a.renderBefore) ?? null;
h._$litPart$ = c = new Oe(n.insertBefore(ni(), g), g, undefined, a ?? {});
}
return c._$AI(d), c;
};
let De = 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 = $o(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 Gt;
}
};
De._$litElement$ = true, De.finalized = true, (So = globalThis.litElementHydrateSupport) == null || So.call(globalThis, { LitElement: De });
const Ls = globalThis.litElementPolyfillSupport;
Ls == null || Ls({ LitElement: De });
const Ka = { _$AK: (d, n, a) => {
d._$AK(n, a);
}, _$AL: (d) => d._$AL };
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.6");
const Ja = Object.freeze(Object.defineProperty({ __proto__: null, CSSResult: Ts, LitElement: De, ReactiveElement: ae, _$LE: Ka, _$LH: vo, adoptStyles: Gn, css: Ba, defaultConverter: ii, getCompatibleStyle: Ps, html: D, isServer: false, noChange: Gt, notEqual: Fi, nothing: lt, render: $o, supportsAdoptingStyleSheets: zi, svg: Ya, unsafeCSS: Jn }, Symbol.toStringTag, { value: "Module" }));
const Ht = (d) => (n, a) => {
a !== undefined ? a.addInitializer(() => {
customElements.define(d, n);
}) : customElements.define(d, n);
};
const Ga = { attribute: true, type: String, converter: ii, reflect: false, hasChanged: Fi }, bo = (d = Ga, n, a) => {
const { kind: h, metadata: c } = a;
let g = globalThis.litPropertyMetadata.get(c);
if (g === undefined && globalThis.litPropertyMetadata.set(c, g = new Map), g.set(a.name, d), h === "accessor") {
const { name: p } = a;
return { set(k) {
const y = n.get.call(this);
n.set.call(this, k), this.requestUpdate(p, y, d);
}, init(k) {
return k !== undefined && this.P(p, undefined, d), k;
} };
}
if (h === "setter") {
const { name: p } = a;
return function(k) {
const y = this[p];
n.call(this, k), this.requestUpdate(p, y, d);
};
}
throw Error("Unsupported decorator location: " + h);
};
function N(d) {
return (n, a) => typeof a == "object" ? bo(d, n, a) : ((h, c, g) => {
const p = c.hasOwnProperty(g);
return c.constructor.createProperty(g, p ? { ...h, wrapped: true } : h), p ? Object.getOwnPropertyDescriptor(c, g) : undefined;
})(d, n, a);
}
function W(d) {
return N({ ...d, state: true, attribute: false });
}
function Xa(d) {
return (n, a) => {
const h = typeof n == "function" ? n : n[a];
Object.assign(h, d);
};
}
const Me = (d, n, a) => (a.configurable = true, a.enumerable = true, Reflect.decorate && typeof n != "object" && Object.defineProperty(d, n, a), a);
function Za(d, n) {
return (a, h, c) => {
const g = (p) => {
var k;
return ((k = p.renderRoot) == null ? undefined : k.querySelector(d)) ?? null;
};
if (n) {
const { get: p, set: k } = typeof h == "object" ? a : c ?? (() => {
const y = Symbol();
return { get() {
return this[y];
}, set(_) {
this[y] = _;
} };
})();
return Me(a, h, { get() {
let y = p.call(this);
return y === undefined && (y = g(this), (y !== null || this.hasUpdated) && k.call(this, y)), y;
} });
}
return Me(a, h, { get() {
return g(this);
} });
};
}
let Qa;
function tl(d) {
return (n, a) => Me(n, a, { get() {
return (this.renderRoot ?? Qa ?? (Qa = document.createDocumentFragment())).querySelectorAll(d);
} });
}
function el(d) {
return (n, a) => Me(n, a, { async get() {
var h;
return await this.updateComplete, ((h = this.renderRoot) == null ? undefined : h.querySelector(d)) ?? null;
} });
}
function il(d) {
return (n, a) => {
const { slot: h, selector: c } = d ?? {}, g = "slot" + (h ? `[name=${h}]` : ":not([name])");
return Me(n, a, { get() {
var y;
const p = (y = this.renderRoot) == null ? undefined : y.querySelector(g), k = (p == null ? undefined : p.assignedElements(d)) ?? [];
return c === undefined ? k : k.filter((_) => _.matches(c));
} });
};
}
function sl(d) {
return (n, a) => {
const { slot: h } = d ?? {}, c = "slot" + (h ? `[name=${h}]` : ":not([name])");
return Me(n, a, { get() {
var p;
const g = (p = this.renderRoot) == null ? undefined : p.querySelector(c);
return (g == null ? undefined : g.assignedNodes(d)) ?? [];
} });
};
}
const nl = Object.freeze(Object.defineProperty({ __proto__: null, customElement: Ht, eventOptions: Xa, property: N, query: Za, queryAll: tl, queryAssignedElements: il, queryAssignedNodes: sl, queryAsync: el, standardProperty: bo, state: W }, Symbol.toStringTag, { value: "Module" }));
const ol = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, rl = (d) => (...n) => ({ _$litDirective$: d, values: n });
class al {
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: ll } = vo, wo = () => document.createComment(""), ci = (d, n, a) => {
var g;
const h = d._$AA.parentNode, c = n === undefined ? d._$AB : n._$AA;
if (a === undefined) {
const p = h.insertBefore(wo(), c), k = h.insertBefore(wo(), c);
a = new ll(p, k, d, d.options);
} else {
const p = a._$AB.nextSibling, k = a._$AM, y = k !== d;
if (y) {
let _;
(g = a._$AQ) == null || g.call(a, d), a._$AM = d, a._$AP !== undefined && (_ = d._$AU) !== k._$AU && a._$AP(_);
}
if (p !== c || y) {
let _ = a._$AA;
for (;_ !== p; ) {
const w = _.nextSibling;
h.insertBefore(_, c), _ = w;
}
}
}
return a;
}, de = (d, n, a = d) => (d._$AI(n, a), d), cl = {}, hl = (d, n = cl) => d._$AH = n, ul = (d) => d._$AH, Bs = (d) => {
var h;
(h = d._$AP) == null || h.call(d, false, true);
let n = d._$AA;
const a = d._$AB.nextSibling;
for (;n !== a; ) {
const c = n.nextSibling;
n.remove(), n = c;
}
};
const yo = (d, n, a) => {
const h = new Map;
for (let c = n;c <= a; c++)
h.set(d[c], c);
return h;
}, fe = rl(class extends al {
constructor(d) {
if (super(d), d.type !== ol.CHILD)
throw Error("repeat() can only be used in text expressions");
}
dt(d, n, a) {
let h;
a === undefined ? a = n : n !== undefined && (h = n);
const c = [], g = [];
let p = 0;
for (const k of d)
c[p] = h ? h(k, p) : p, g[p] = a(k, p), p++;
return { values: g, keys: c };
}
render(d, n, a) {
return this.dt(d, n, a).values;
}
update(d, [n, a, h]) {
const c = ul(d), { values: g, keys: p } = this.dt(n, a, h);
if (!Array.isArray(c))
return this.ut = p, g;
const k = this.ut ?? (this.ut = []), y = [];
let _, w, E = 0, P = c.length - 1, M = 0, V = g.length - 1;
for (;E <= P && M <= V; )
if (c[E] === null)
E++;
else if (c[P] === null)
P--;
else if (k[E] === p[M])
y[M] = de(c[E], g[M]), E++, M++;
else if (k[P] === p[V])
y[V] = de(c[P], g[V]), P--, V--;
else if (k[E] === p[V])
y[V] = de(c[E], g[V]), ci(d, y[V + 1], c[E]), E++, V--;
else if (k[P] === p[M])
y[M] = de(c[P], g[M]), ci(d, c[E], c[P]), P--, M++;
else if (_ === undefined && (_ = yo(p, M, V), w = yo(k, E, P)), _.has(k[E]))
if (_.has(k[P])) {
const tt = w.get(p[M]), At = tt !== undefined ? c[tt] : null;
if (At === null) {
const Qt = ci(d, c[E]);
de(Qt, g[M]), y[M] = Qt;
} else
y[M] = de(At, g[M]), ci(d, c[E], At), c[tt] = null;
M++;
} else
Bs(c[P]), P--;
else
Bs(c[E]), E++;
for (;M <= V; ) {
const tt = ci(d, y[V + 1]);
de(tt, g[M]), y[M++] = tt;
}
for (;E <= P; ) {
const tt = c[E++];
tt !== null && Bs(tt);
}
return this.ut = p, hl(d, y), Gt;
}
});
(function(d, n) {
typeof S == "object" && typeof module < "u" ? module.exports = n() : typeof define == "function" && define.amd ? define("uikit", n) : (d = typeof globalThis < "u" ? globalThis : d || self, d.UIkit = n());
})(undefined, function() {
const { hasOwnProperty: d, toString: n } = Object.prototype;
function a(t, e) {
return d.call(t, e);
}
const h = /\B([A-Z])/g, c = Et((t) => t.replace(h, "-$1").toLowerCase()), g = /-(\w)/g, p = Et((t) => (t.charAt(0).toLowerCase() + t.slice(1)).replace(g, (e, i) => i.toUpperCase())), k = Et((t) => t.charAt(0).toUpperCase() + t.slice(1));
function y(t, e) {
var i;
return (i = t == null ? undefined : t.startsWith) == null ? undefined : i.call(t, e);
}
function _(t, e) {
var i;
return (i = t == null ? undefined : t.endsWith) == null ? undefined : i.call(t, e);
}
function w(t, e) {
var i;
return (i = t == null ? undefined : t.includes) == null ? undefined : i.call(t, e);
}
function E(t, e) {
var i;
return (i = t == null ? undefined : t.findIndex) == null ? undefined : i.call(t, e);
}
const { isArray: P, from: M } = Array, { assign: V } = Object;
function tt(t) {
return typeof t == "function";
}
function At(t) {
return t !== null && typeof t == "object";
}
function Qt(t) {
return n.call(t) === "[object Object]";
}
function Ki(t) {
return At(t) && t === t.window;
}
function di(t) {
return zs(t) === 9;
}
function fi(t) {
return zs(t) >= 1;
}
function Be(t) {
return zs(t) === 1;
}
function zs(t) {
return !Ki(t) && At(t) && t.nodeType;
}
function Re(t) {
return typeof t == "boolean";
}
function nt(t) {
return typeof t == "string";
}
function pi(t) {
return typeof t == "number";
}
function jt(t) {
return pi(t) || nt(t) && !isNaN(t - parseFloat(t));
}
function Ji(t) {
return !(P(t) ? t.length : At(t) && Object.keys(t).length);
}
function pt(t) {
return t === undefined;
}
function Fs(t) {
return Re(t) ? t : t === "true" || t === "1" || t === "" ? true : t === "false" || t === "0" ? false : t;
}
function zt(t) {
const e = Number(t);
return isNaN(e) ? false : e;
}
function R(t) {
return parseFloat(t) || 0;
}
function at(t) {
return t && F(t)[0];
}
function F(t) {
return fi(t) ? [t] : Array.from(t || []).filter(fi);
}
function ge(t) {
if (Ki(t))
return t;
t = at(t);
const e = di(t) ? t : t == null ? undefined : t.ownerDocument;
return (e == null ? undefined : e.defaultView) || window;
}
function gi(t, e) {
return t === e || At(t) && At(e) && Object.keys(t).length === Object.keys(e).length && je(t, (i, s) => i === e[s]);
}
function Us(t, e, i) {
return t.replace(new RegExp(`${e}|${i}`, "g"), (s) => s === e ? i : e);
}
function me(t) {
return t[t.length - 1];
}
function je(t, e) {
for (const i in t)
if (e(t[i], i) === false)
return false;
return true;
}
function _o(t, e) {
return t.slice().sort(({ [e]: i = 0 }, { [e]: s = 0 }) => i > s ? 1 : s > i ? -1 : 0);
}
function ve(t, e) {
return t.reduce((i, s) => i + R(tt(e) ? e(s) : s[e]), 0);
}
function Ao(t, e) {
const i = new Set;
return t.filter(({ [e]: s }) => i.has(s) ? false : i.add(s));
}
function qs(t, e) {
return e.reduce((i, s) => ({ ...i, [s]: t[s] }), {});
}
function mt(t, e = 0, i = 1) {
return Math.min(Math.max(zt(t) || 0, e), i);
}
function ct() {
}
function Ws(...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 Gi(t, e) {
return t.x <= e.right && t.x >= e.left && t.y <= e.bottom && t.y >= e.top;
}
function Vs(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 Eo(t, e) {
t = { ...t };
for (const i in t)
t = t[i] > e[i] ? Vs(t, i, e[i]) : t;
return t;
}
function jl(t, e) {
t = Eo(t, e);
for (const i in t)
t = t[i] < e[i] ? Vs(t, i, e[i]) : t;
return t;
}
const Ys = { ratio: Vs, contain: Eo, cover: jl };
function yt(t, e, i = 0, s = false) {
e = F(e);
const { length: o } = e;
return o ? (t = jt(t) ? zt(t) : t === "next" ? i + 1 : t === "previous" ? i - 1 : t === "last" ? o - 1 : e.indexOf(at(t)), s ? mt(t, 0, o - 1) : (t %= o, t < 0 ? t + o : t)) : -1;
}
function Et(t) {
const e = Object.create(null);
return (i, ...s) => e[i] || (e[i] = t(i, ...s));
}
function j(t, ...e) {
for (const i of F(t)) {
const s = $e(e).filter((o) => !L(i, o));
s.length && i.classList.add(...s);
}
}
function Z(t, ...e) {
for (const i of F(t)) {
const s = $e(e).filter((o) => L(i, o));
s.length && i.classList.remove(...s);
}
}
function Ks(t, e, i) {
i = $e(i), e = $e(e).filter((s) => !w(i, s)), Z(t, e), j(t, i);
}
function L(t, e) {
return [e] = $e(e), F(t).some((i) => i.classList.contains(e));
}
function it(t, e, i) {
const s = $e(e);
pt(i) || (i = !!i);
for (const o of F(t))
for (const r of s)
o.classList.toggle(r, i);
}
function $e(t) {
return t ? P(t) ? t.map($e).flat() : String(t).split(" ").filter(Boolean) : [];
}
function A(t, e, i) {
var s;
if (At(e)) {
for (const o in e)
A(t, o, e[o]);
return;
}
if (pt(i))
return (s = at(t)) == null ? undefined : s.getAttribute(e);
for (const o of F(t))
tt(i) && (i = i.call(o, A(o, e))), i === null ? mi(o, e) : o.setAttribute(e, i);
}
function te(t, e) {
return F(t).some((i) => i.hasAttribute(e));
}
function mi(t, e) {
F(t).forEach((i) => i.removeAttribute(e));
}
function vt(t, e) {
for (const i of [e, `data-${e}`])
if (te(t, i))
return A(t, i);
}
const be = typeof window < "u", ht = be && document.dir === "rtl", ze = be && "ontouchstart" in window, Fe = be && window.PointerEvent, It = Fe ? "pointerdown" : ze ? "touchstart" : "mousedown", Xi = Fe ? "pointermove" : ze ? "touchmove" : "mousemove", ee = Fe ? "pointerup" : ze ? "touchend" : "mouseup", we = Fe ? "pointerenter" : ze ? "" : "mouseenter", Ue = Fe ? "pointerleave" : ze ? "" : "mouseleave", Zi = Fe ? "pointercancel" : "touchcancel", zl = { 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 Js(t) {
return F(t).some((e) => zl[e.tagName.toLowerCase()]);
}
const Fl = be && Element.prototype.checkVisibility || function() {
return this.offsetWidth || this.offsetHeight || this.getClientRects().length;
};
function ut(t) {
return F(t).some((e) => Fl.call(e));
}
const vi = "input,select,textarea,button";
function Qi(t) {
return F(t).some((e) => Y(e, vi));
}
const $i = `${vi},a[href],[tabindex]`;
function ts(t) {
return Y(t, $i);
}
function J(t) {
var e;
return (e = at(t)) == null ? undefined : e.parentElement;
}
function bi(t, e) {
return F(t).filter((i) => Y(i, e));
}
function Y(t, e) {
return F(t).some((i) => i.matches(e));
}
function qe(t, e) {
const i = [];
for (;t = J(t); )
(!e || Y(t, e)) && i.push(t);
return i;
}
function G(t, e) {
t = at(t);
const i = t ? M(t.children) : [];
return e ? bi(i, e) : i;
}
function Ft(t, e) {
return e ? F(t).indexOf(at(e)) : G(J(t)).indexOf(t);
}
function We(t) {
return t = at(t), t && ["origin", "pathname", "search"].every((e) => t[e] === location[e]);
}
function Gs(t) {
if (We(t)) {
const { hash: e, ownerDocument: i } = at(t), s = decodeURIComponent(e).slice(1);
return s ? i.getElementById(s) || i.getElementsByName(s)[0] : i.documentElement;
}
}
function Ct(t, e) {
return Xs(t, Io(t, e));
}
function wi(t, e) {
return yi(t, Io(t, e));
}
function Xs(t, e) {
return at(Po(t, at(e), "querySelector"));
}
function yi(t, e) {
return F(Po(t, at(e), "querySelectorAll"));
}
function Io(t, e = document) {
return di(e) || Co(t).isContextSelector ? e : e.ownerDocument;
}
const Ul = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g, ql = /(\([^)]*\)|[^,])+/g, Co = Et((t) => {
let e = false;
if (!t || !nt(t))
return {};
const i = [];
for (let s of t.match(ql))
s = s.trim().replace(Ul, "$1 *"), e || (e = ["!", "+", "~", "-", ">"].includes(s[0])), i.push(s);
return { selector: i.join(","), selectors: i, isContextSelector: e };
}), Wl = /(\([^)]*\)|\S)*/, To = Et((t) => {
t = t.slice(1).trim();
const [e] = t.match(Wl);
return [e, t.slice(e.length + 1)];
});
function Po(t, e = document, i) {
const s = Co(t);
if (!s.isContextSelector)
return s.selector ? Zs(e, i, s.selector) : t;
t = "";
const o = s.selectors.length === 1;
for (let r of s.selectors) {
let l, u = e;
if (r[0] === "!" && ([l, r] = To(r), u = e.parentElement.closest(l), !r && o) || u && r[0] === "-" && ([l, r] = To(r), u = u.previousElementSibling, u = Y(u, l) ? u : null, !r && o))
return u;
if (u) {
if (o)
return r[0] === "~" || r[0] === "+" ? (r = `:scope > :nth-child(${Ft(u) + 1}) ${r}`, u = u.parentElement) : r[0] === ">" && (r = `:scope ${r}`), Zs(u, i, r);
t += `${t ? "," : ""}${Vl(u)} ${r}`;
}
}
return di(e) || (e = e.ownerDocument), Zs(e, i, t);
}
function Zs(t, e, i) {
try {
return t[e](i);
} catch {
return null;
}
}
function Vl(t) {
const e = [];
for (;t.parentNode; ) {
const i = A(t, "id");
if (i) {
e.unshift(`#${Qs(i)}`);
break;
} else {
let { tagName: s } = t;
s !== "HTML" && (s += `:nth-child(${Ft(t) + 1})`), e.unshift(s), t = t.parentNode;
}
}
return e.join(" > ");
}
function Qs(t) {
return nt(t) ? CSS.escape(t) : "";
}
function z(...t) {
let [e, i, s, o, r = false] = tn(t);
o.length > 1 && (o = Kl(o)), r != null && r.self && (o = Jl(o)), s && (o = Yl(s, o));
for (const l of i)
for (const u of e)
u.addEventListener(l, o, r);
return () => ye(e, i, o, r);
}
function ye(...t) {
let [e, i, , s, o = false] = tn(t);
for (const r of i)
for (const l of e)
l.removeEventListener(r, s, o);
}
function st(...t) {
const [e, i, s, o, r = false, l] = tn(t), u = z(e, i, s, (f) => {
const v = !l || l(f);
v && (u(), o(f, v));
}, r);
return u;
}
function C(t, e, i) {
return en(t).every((s) => s.dispatchEvent(Ve(e, true, true, i)));
}
function Ve(t, e = true, i = false, s) {
return nt(t) && (t = new CustomEvent(t, { bubbles: e, cancelable: i, detail: s })), t;
}
function tn(t) {
return t[0] = en(t[0]), nt(t[1]) && (t[1] = t[1].split(" ")), tt(t[2]) && t.splice(2, 0, false), t;
}
function Yl(t, e) {
return (i) => {
const s = t[0] === ">" ? yi(t, i.currentTarget).reverse().find((o) => o.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 Jl(t) {
return function(e) {
if (e.target === e.currentTarget || e.target === e.current)
return t.call(null, e);
};
}
function Oo(t) {
return t && "addEventListener" in t;
}
function Gl(t) {
return Oo(t) ? t : at(t);
}
function en(t) {
return P(t) ? t.map(Gl).filter(Boolean) : nt(t) ? yi(t) : Oo(t) ? [t] : F(t);
}
function Mt(t) {
return t.pointerType === "touch" || !!t.touches;
}
function Ut(t) {
var e, i;
const { clientX: s, clientY: o } = ((e = t.touches) == null ? undefined : e[0]) || ((i = t.changedTouches) == null ? undefined : i[0]) || t;
return { x: s, y: o };
}
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 m(t, e, i, s) {
const o = F(t);
for (const r of o)
if (nt(e)) {
if (e = es(e), pt(i))
return getComputedStyle(r).getPropertyValue(e);
r.style.setProperty(e, jt(i) && !Xl[e] ? `${i}px` : i || pi(i) ? i : "", s);
} else if (P(e)) {
const l = {};
for (const u of e)
l[u] = m(r, u);
return l;
} else if (At(e))
for (const l in e)
m(r, l, e[l], i);
return o[0];
}
const es = Et((t) => {
if (y(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;
}
}), sn = "uk-transition", nn = "transitionend", on = "transitioncanceled";
function Zl(t, e, i = 400, s = "linear") {
return i = Math.round(i), Promise.all(F(t).map((o) => new Promise((r, l) => {
for (const f in e)
m(o, f);
const u = setTimeout(() => C(o, nn), i);
st(o, [nn, on], ({ type: f }) => {
clearTimeout(u), Z(o, sn), m(o, { transitionProperty: "", transitionDuration: "", transitionTimingFunction: "" }), f === on ? l() : r(o);
}, { self: true }), j(o, sn), m(o, { transitionProperty: Object.keys(e).map(es).join(","), transitionDuration: `${i}ms`, transitionTimingFunction: s, ...e });
})));
}
const X = { start: Zl, async stop(t) {
C(t, nn), await Promise.resolve();
}, async cancel(t) {
C(t, on), await Promise.resolve();
}, inProgress(t) {
return L(t, sn);
} }, ki = "uk-anmt", Do = "animationend", is = "animationcanceled";
function Mo(t, e, i = 200, s, o) {
return Promise.all(F(t).map((r) => new Promise((l, u) => {
L(r, ki) && C(r, is);
const f = [e, ki, `${ki}-${o ? "leave" : "enter"}`, s && `uk-transform-origin-${s}`, o && `${ki}-reverse`], v = setTimeout(() => C(r, Do), i);
st(r, [Do, is], ({ type: $ }) => {
clearTimeout(v), $ === is ? u() : l(r), m(r, "animationDuration", ""), Z(r, f);
}, { self: true }), m(r, "animationDuration", `${i}ms`), j(r, f);
})));
}
const ie = { in: Mo, out(t, e, i, s) {
return Mo(t, e, i, s, true);
}, inProgress(t) {
return L(t, ki);
}, cancel(t) {
C(t, is);
} };
function Ql(t) {
if (document.readyState !== "loading") {
t();
return;
}
st(document, "DOMContentLoaded", t);
}
function et(t, ...e) {
return e.some((i) => {
var s;
return ((s = t == null ? undefined : t.tagName) == null ? undefined : s.toLowerCase()) === i.toLowerCase();
});
}
function Ho(t) {
return t = H(t), t && (t.innerHTML = ""), t;
}
function qt(t, e) {
return pt(e) ? H(t).innerHTML : ot(Ho(t), e);
}
const tc = os("prepend"), ot = os("append"), ss = os("before"), ns = os("after");
function os(t) {
return function(e, i) {
var s;
const o = F(nt(i) ? Wt(i) : i);
return (s = H(e)) == null || s[t](...o), No(o);
};
}
function $t(t) {
F(t).forEach((e) => e.remove());
}
function xi(t, e) {
for (e = at(ss(t, e));e.firstElementChild; )
e = e.firstElementChild;
return ot(e, t), e;
}
function rn(t, e) {
return F(F(t).map((i) => i.hasChildNodes() ? xi(M(i.childNodes), e) : ot(i, e)));
}
function Si(t) {
F(t).map(J).filter((e, i, s) => s.indexOf(e) === i).forEach((e) => e.replaceWith(...e.childNodes));
}
const ec = /^<(\w+)\s*\/?>(?:<\/\1>)?$/;
function Wt(t) {
const e = ec.exec(t);
if (e)
return document.createElement(e[1]);
const i = document.createElement("template");
return i.innerHTML = t.trim(), No(i.content.childNodes);
}
function No(t) {
return t.length > 1 ? t : t[0];
}
function se(t, e) {
if (Be(t))
for (e(t), t = t.firstElementChild;t; )
se(t, e), t = t.nextElementSibling;
}
function H(t, e) {
return Lo(t) ? at(Wt(t)) : Xs(t, e);
}
function Q(t, e) {
return Lo(t) ? F(Wt(t)) : yi(t, e);
}
function Lo(t) {
return nt(t) && y(t.trim(), "<");
}
const ke = { width: ["left", "right"], height: ["top", "bottom"] };
function T(t) {
const e = Be(t) ? at(t).getBoundingClientRect() : { height: bt(t), width: rs(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 U(t, e) {
e && m(t, { left: 0, top: 0 });
const i = T(t);
if (t) {
const { scrollY: s, scrollX: o } = ge(t), r = { height: s, width: o };
for (const l in ke)
for (const u of ke[l])
i[u] += r[l];
}
if (!e)
return i;
for (const s of ["left", "top"])
m(t, s, e[s] - i[s]);
}
function an(t) {
let { top: e, left: i } = U(t);
const { ownerDocument: { body: s, documentElement: o }, offsetParent: r } = at(t);
let l = r || o;
for (;l && (l === s || l === o) && m(l, "position") === "static"; )
l = l.parentNode;
if (Be(l)) {
const u = U(l);
e -= u.top + R(m(l, "borderTopWidth")), i -= u.left + R(m(l, "borderLeftWidth"));
}
return { top: e - R(m(t, "marginTop")), left: i - R(m(t, "marginLeft")) };
}
function _i(t) {
t = at(t);
const e = [t.offsetTop, t.offsetLeft];
for (;t = t.offsetParent; )
if (e[0] += t.offsetTop + R(m(t, "borderTopWidth")), e[1] += t.offsetLeft + R(m(t, "borderLeftWidth")), m(t, "position") === "fixed") {
const i = ge(t);
return e[0] += i.scrollY, e[1] += i.scrollX, e;
}
return e;
}
const bt = Bo("height"), rs = Bo("width");
function Bo(t) {
const e = k(t);
return (i, s) => {
if (pt(s)) {
if (Ki(i))
return i[`inner${e}`];
if (di(i)) {
const o = i.documentElement;
return Math.max(o[`offset${e}`], o[`scroll${e}`]);
}
return i = at(i), s = m(i, t), s = s === "auto" ? i[`offset${e}`] : R(s) || 0, s - ln(i, t);
} else
return m(i, t, !s && s !== 0 ? "" : +s + ln(i, t) + "px");
};
}
function ln(t, e, i = "border-box") {
return m(t, "boxSizing") === i ? ve(ke[e], (s) => R(m(t, `padding-${s}`)) + R(m(t, `border-${s}-width`))) : 0;
}
function as(t) {
for (const e in ke)
for (const i in ke[e])
if (ke[e][i] === t)
return ke[e][1 - i];
return t;
}
function ft(t, e = "width", i = window, s = false) {
return nt(t) ? ve(sc(t), (o) => {
const r = oc(o);
return r ? rc(r === "vh" ? ac() : r === "vw" ? rs(ge(i)) : s ? i[`offset${k(e)}`] : T(i)[e], o) : o;
}) : R(t);
}
const ic = /-?\d+(?:\.\d+)?(?:v[wh]|%|px)?/g, sc = Et((t) => t.toString().replace(/\s/g, "").match(ic) || []), nc = /(?:v[hw]|%)$/, oc = Et((t) => (t.match(nc) || [])[0]);
function rc(t, e) {
return t * R(e) / 100;
}
let Ai, Ye;
function ac() {
return Ai || (Ye || (Ye = H("
"), m(Ye, { height: "100vh", position: "fixed" }), z(window, "resize", () => Ai = null)), ot(document.body, Ye), Ai = Ye.clientHeight, $t(Ye), Ai);
}
const ne = { read: lc, write: cc, clear: hc, flush: Ro }, ls = [], cs = [];
function lc(t) {
return ls.push(t), hn(), t;
}
function cc(t) {
return cs.push(t), hn(), t;
}
function hc(t) {
zo(ls, t), zo(cs, t);
}
let cn = false;
function Ro() {
jo(ls), jo(cs.splice(0)), cn = false, (ls.length || cs.length) && hn();
}
function hn() {
cn || (cn = true, queueMicrotask(Ro));
}
function jo(t) {
let e;
for (;e = t.shift(); )
try {
e();
} catch (i) {
console.error(i);
}
}
function zo(t, e) {
const i = t.indexOf(e);
return ~i && t.splice(i, 1);
}
class Fo {
init() {
this.positions = [];
let e;
this.unbind = z(document, "mousemove", (i) => e = Ut(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 = T(e), { left: s, right: o, top: r, bottom: l } = i, [u] = this.positions, f = me(this.positions), v = [u, f];
return Gi(f, i) ? false : [[{ x: s, y: r }, { x: o, y: l }], [{ x: s, y: l }, { x: o, y: r }]].some((b) => {
const x = uc(v, b);
return x && Gi(x, i);
});
}
}
function uc([{ x: t, y: e }, { x: i, y: s }], [{ x: o, y: r }, { x: l, y: u }]) {
const f = (u - r) * (i - t) - (l - o) * (s - e);
if (f === 0)
return false;
const v = ((l - o) * (e - r) - (u - r) * (t - o)) / f;
return v < 0 ? false : { x: t + v * (i - t), y: e + v * (s - e) };
}
function Uo(t, e, i = {}, { intersecting: s = true } = {}) {
const o = new IntersectionObserver(s ? (r, l) => {
r.some((u) => u.isIntersecting) && e(r, l);
} : e, i);
for (const r of F(t))
o.observe(r);
return o;
}
const dc = be && window.ResizeObserver;
function hs(t, e, i = { box: "border-box" }) {
if (dc)
return qo(ResizeObserver, t, e, i);
const s = [z(window, "load resize", e), z(document, "loadedmetadata load", e, true)];
return { disconnect: () => s.map((o) => o()) };
}
function un(t) {
return { disconnect: z([window, window.visualViewport], "resize", t) };
}
function dn(t, e, i) {
return qo(MutationObserver, t, e, i);
}
function qo(t, e, i, s) {
const o = new t(i);
for (const r of F(e))
o.observe(r, s);
return o;
}
function fn(t) {
gn(t) && mn(t, { func: "playVideo", method: "play" }), pn(t) && t.play().catch(ct);
}
function us(t) {
gn(t) && mn(t, { func: "pauseVideo", method: "pause" }), pn(t) && t.pause();
}
function Wo(t) {
gn(t) && mn(t, { func: "mute", method: "setVolume", value: 0 }), pn(t) && (t.muted = true);
}
function pn(t) {
return et(t, "video");
}
function gn(t) {
return et(t, "iframe") && (Vo(t) || Yo(t));
}
function Vo(t) {
return !!t.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/);
}
function Yo(t) {
return !!t.src.match(/vimeo\.com\/video\/.*/);
}
async function mn(t, e) {
await pc(t), Ko(t, e);
}
function Ko(t, e) {
t.contentWindow.postMessage(JSON.stringify({ event: "command", ...e }), "*");
}
const vn = "_ukPlayer";
let fc = 0;
function pc(t) {
if (t[vn])
return t[vn];
const e = Vo(t), i = Yo(t), s = ++fc;
let o;
return t[vn] = new Promise((r) => {
e && st(t, "load", () => {
const l = () => Ko(t, { event: "listening", id: s });
o = setInterval(l, 100), l();
}), st(window, "message", r, 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}${w(t.src, "?") ? "&" : "?"}${e ? "enablejsapi=1" : `api=1&player_id=${s}`}`;
}).then(() => clearInterval(o));
}
function gc(t, e = 0, i = 0) {
return ut(t) ? Ws(...Se(t).map((s) => {
const { top: o, left: r, bottom: l, right: u } = Tt(s);
return { top: o - e, left: r - i, bottom: l + e, right: u + i };
}).concat(U(t))) : false;
}
function Jo(t, { offset: e = 0 } = {}) {
const i = ut(t) ? Ke(t, false, ["hidden"]) : [];
return i.reduce((l, u, f) => {
const { scrollTop: v, scrollHeight: $, offsetHeight: b } = u, x = Tt(u), I = $ - x.height, { height: O, top: B } = i[f - 1] ? Tt(i[f - 1]) : U(t);
let q = Math.ceil(B - x.top - e + v);
return e > 0 && b < O + e ? q += e : e = 0, q > I ? (e -= q - I, q = I) : q < 0 && (e -= q, q = 0), () => s(u, q - v, t, I).then(l);
}, () => Promise.resolve())();
function s(l, u, f, v) {
return new Promise(($) => {
const b = l.scrollTop, x = o(Math.abs(u)), I = Date.now(), O = wn(l) === l, B = U(f).top + (O ? 0 : b);
let q = 0, _t = 15;
(function Kt() {
const re = r(mt((Date.now() - I) / x));
let Lt = 0;
i[0] === l && b + u < v && (Lt = U(f).top + (O ? 0 : l.scrollTop) - B - T($n(f)).height), m(l, "scrollBehavior") !== "auto" && m(l, "scrollBehavior", "auto"), l.scrollTop = b + (u + Lt) * re, m(l, "scrollBehavior", ""), re === 1 && (q === Lt || !_t--) ? $() : (q = Lt, requestAnimationFrame(Kt));
})();
});
}
function o(l) {
return 40 * Math.pow(l, 0.375);
}
function r(l) {
return 0.5 * (1 - Math.cos(Math.PI * l));
}
}
function ds(t, e = 0, i = 0) {
if (!ut(t))
return 0;
const s = xe(t, true), { scrollHeight: o, scrollTop: r } = s, { height: l } = Tt(s), u = o - l, f = _i(t)[0] - _i(s)[0], v = Math.max(0, f - l + e), $ = Math.min(u, f + t.offsetHeight - i);
return v < $ ? mt((r - v) / ($ - v)) : 1;
}
function Ke(t, e = false, i = []) {
const s = wn(t);
let o = qe(t).reverse();
o = o.slice(o.indexOf(s) + 1);
const r = E(o, (l) => m(l, "position") === "fixed");
return ~r && (o = o.slice(r)), [s].concat(o.filter((l) => m(l, "overflow").split(" ").some((u) => w(["auto", "scroll", ...i], u)) && (!e || l.scrollHeight > Tt(l).height))).reverse();
}
function xe(...t) {
return Ke(...t)[0];
}
function Se(t) {
return Ke(t, false, ["hidden", "clip"]);
}
function Tt(t) {
const e = ge(t), i = wn(t), s = !fi(t) || t.contains(i);
if (s && e.visualViewport) {
let { height: f, width: v, scale: $, pageTop: b, pageLeft: x } = e.visualViewport;
return f = Math.round(f * $), v = Math.round(v * $), { height: f, width: v, top: b, left: x, bottom: b + f, right: x + v };
}
let o = U(s ? e : t);
if (m(t, "display") === "inline")
return o;
const { body: r, documentElement: l } = e.document, u = s ? i === l || i.clientHeight < r.clientHeight ? i : r : t;
for (let [f, v, $, b] of [["width", "x", "left", "right"], ["height", "y", "top", "bottom"]]) {
const x = o[f] % 1;
o[$] += R(m(u, `border-${$}-width`)), o[f] = o[v] = u[`client${k(f)}`] - (x ? x < 0.5 ? -x : 1 - x : 0), o[b] = o[f] + o[$];
}
return o;
}
function $n(t) {
const { left: e, width: i, top: s } = T(t);
for (const o of s ? [0, s] : [0]) {
let r;
for (const l of ge(t).document.elementsFromPoint(e + i / 2, o))
!l.contains(t) && !L(l, "uk-togglable-leave") && (bn(l, "fixed") && Go(qe(t).reverse().find((u) => !u.contains(l) && !bn(u, "static"))) < Go(l) || bn(l, "sticky") && J(l).contains(t)) && (!r || T(r).height < T(l).height) && (r = l);
if (r)
return r;
}
}
function Go(t) {
return R(m(t, "zIndex"));
}
function bn(t, e) {
return m(t, "position") === e;
}
function wn(t) {
return ge(t).document.scrollingElement;
}
const kt = [["width", "x", "left", "right"], ["height", "y", "top", "bottom"]];
function Xo(t, e, i) {
i = { attach: { element: ["left", "top"], target: ["left", "top"], ...i.attach }, offset: [0, 0], placement: [], ...i }, P(e) || (e = [e, e]), U(t, Zo(t, e, i));
}
function Zo(t, e, i) {
const s = Qo(t, e, i), { boundary: o, viewportOffset: r = 0, placement: l } = i;
let u = s;
for (const [f, [v, , $, b]] of Object.entries(kt)) {
const x = mc(t, e[f], r, o, f);
if (fs(s, x, f))
continue;
let I = 0;
if (l[f] === "flip") {
const O = i.attach.target[f];
if (O === b && s[b] <= x[b] || O === $ && s[$] >= x[$])
continue;
I = $c(t, e, i, f)[$] - s[$];
const B = vc(t, e[f], r, f);
if (!fs(yn(s, I, f), B, f)) {
if (fs(s, B, f))
continue;
if (i.recursion)
return false;
const q = bc(t, e, i);
if (q && fs(q, B, 1 - f))
return q;
continue;
}
} else if (l[f] === "shift") {
const O = U(e[f]), { offset: B } = i;
I = mt(mt(s[$], x[$], x[b] - s[v]), O[$] - s[v] + B[f], O[b] - B[f]) - s[$];
}
u = yn(u, I, f);
}
return u;
}
function Qo(t, e, i) {
let { attach: s, offset: o } = { attach: { element: ["left", "top"], target: ["left", "top"], ...i.attach }, offset: [0, 0], ...i }, r = U(t);
for (const [l, [u, , f, v]] of Object.entries(kt)) {
const $ = s.target[l] === s.element[l] ? Tt(e[l]) : U(e[l]);
r = yn(r, $[f] - r[f] + tr(s.target[l], v, $[u]) - tr(s.element[l], v, r[u]) + +o[l], l);
}
return r;
}
function yn(t, e, i) {
const [, s, o, r] = kt[i], l = { ...t };
return l[o] = t[s] = t[o] + e, l[r] += e, l;
}
function tr(t, e, i) {
return t === "center" ? i / 2 : t === e ? i : 0;
}
function mc(t, e, i, s, o) {
let r = ir(...er(t, e).map(Tt));
return i && (r[kt[o][2]] += i, r[kt[o][3]] -= i), s && (r = ir(r, U(P(s) ? s[o] : s))), r;
}
function vc(t, e, i, s) {
const [o, r, l, u] = kt[s], [f] = er(t, e), v = Tt(f);
return ["auto", "scroll"].includes(m(f, `overflow-${r}`)) && (v[l] -= f[`scroll${k(l)}`], v[u] = v[l] + f[`scroll${k(o)}`]), v[l] += i, v[u] -= i, v;
}
function er(t, e) {
return Se(e).filter((i) => i.contains(t));
}
function ir(...t) {
let e = {};
for (const i of t)
for (const [, , s, o] of kt)
e[s] = Math.max(e[s] || 0, i[s]), e[o] = Math.min(...[e[o], i[o]].filter(Boolean));
return e;
}
function fs(t, e, i) {
const [, , s, o] = kt[i];
return t[s] >= e[s] && t[o] <= e[o];
}
function $c(t, e, { offset: i, attach: s }, o) {
return Qo(t, e, { attach: { element: sr(s.element, o), target: sr(s.target, o) }, offset: wc(i, o) });
}
function bc(t, e, i) {
return Zo(t, e, { ...i, attach: { element: i.attach.element.map(nr).reverse(), target: i.attach.target.map(nr).reverse() }, offset: i.offset.reverse(), placement: i.placement.reverse(), recursion: true });
}
function sr(t, e) {
const i = [...t], s = kt[e].indexOf(t[e]);
return ~s && (i[e] = kt[e][1 - s % 2 + 2]), i;
}
function nr(t) {
for (let e = 0;e < kt.length; e++) {
const i = kt[e].indexOf(t);
if (~i)
return kt[1 - e][i % 2 + 2];
}
}
function wc(t, e) {
return t = [...t], t[e] *= -1, t;
}
var yc = Object.freeze({ __proto__: null, $: H, $$: Q, Animation: ie, Dimensions: Ys, MouseTracker: Fo, Transition: X, addClass: j, after: ns, append: ot, apply: se, assign: V, attr: A, before: ss, boxModelAdjust: ln, camelize: p, children: G, clamp: mt, createEvent: Ve, css: m, data: vt, dimensions: T, each: je, empty: Ho, endsWith: _, escape: Qs, fastdom: ne, filter: bi, find: Xs, findAll: yi, findIndex: E, flipPosition: as, fragment: Wt, getCoveringElement: $n, getEventPos: Ut, getIndex: yt, getTargetedElement: Gs, hasAttr: te, hasClass: L, hasOwn: a, hasTouch: ze, height: bt, html: qt, hyphenate: c, inBrowser: be, includes: w, index: Ft, intersectRect: Ws, isArray: P, isBoolean: Re, isDocument: di, isElement: Be, isEmpty: Ji, isEqual: gi, isFocusable: ts, isFunction: tt, isInView: gc, isInput: Qi, isNode: fi, isNumber: pi, isNumeric: jt, isObject: At, isPlainObject: Qt, isRtl: ht, isSameSiteAnchor: We, isString: nt, isTag: et, isTouch: Mt, isUndefined: pt, isVisible: ut, isVoidElement: Js, isWindow: Ki, last: me, matches: Y, memoize: Et, mute: Wo, noop: ct, observeIntersection: Uo, observeMutation: dn, observeResize: hs, observeViewportResize: un, off: ye, offset: U, offsetPosition: _i, offsetViewport: Tt, on: z, once: st, overflowParents: Se, parent: J, parents: qe, pause: us, pick: qs, play: fn, pointInRect: Gi, pointerCancel: Zi, pointerDown: It, pointerEnter: we, pointerLeave: Ue, pointerMove: Xi, pointerUp: ee, position: an, positionAt: Xo, prepend: tc, propName: es, query: Ct, queryAll: wi, ready: Ql, remove: $t, removeAttr: mi, removeClass: Z, replaceClass: Ks, scrollIntoView: Jo, scrollParent: xe, scrollParents: Ke, scrolledOver: ds, selFocusable: $i, selInput: vi, sortBy: _o, startsWith: y, sumBy: ve, swap: Us, toArray: M, toBoolean: Fs, toEventTargets: en, toFloat: R, toNode: at, toNodes: F, toNumber: zt, toPx: ft, toWindow: ge, toggleClass: it, trigger: C, ucfirst: k, uniqueBy: Ao, unwrap: Si, width: rs, wrapAll: xi, wrapInner: rn });
const dt = {};
dt.events = dt.watch = dt.observe = dt.created = dt.beforeConnect = dt.connected = dt.beforeDisconnect = dt.disconnected = dt.destroy = kn, dt.args = function(t, e) {
return e !== false && kn(e || t);
}, dt.update = function(t, e) {
return _o(kn(t, tt(e) ? { read: e } : e), "order");
}, dt.props = function(t, e) {
if (P(e)) {
const i = {};
for (const s of e)
i[s] = String;
e = i;
}
return dt.methods(t, e);
}, dt.computed = dt.methods = function(t, e) {
return e ? t ? { ...t, ...e } : e : t;
}, dt.i18n = dt.data = function(t, e, i) {
return i ? or(t, e, i) : e ? t ? function(s) {
return or(t, e, s);
} : e : t;
};
function or(t, e, i) {
return dt.computed(tt(t) ? t.call(i, i) : t, tt(e) ? e.call(i, i) : e);
}
function kn(t, e) {
return t = t && !P(t) ? [t] : t, e ? t ? t.concat(e) : P(e) ? e : [e] : t;
}
function kc(t, e) {
return pt(e) ? t : e;
}
function Ei(t, e, i) {
const s = {};
if (tt(e) && (e = e.options), e.extends && (t = Ei(t, e.extends, i)), e.mixins)
for (const r of e.mixins)
t = Ei(t, r, i);
for (const r in t)
o(r);
for (const r in e)
a(t, r) || o(r);
function o(r) {
s[r] = (dt[r] || kc)(t[r], e[r], i);
}
return s;
}
function Je(t, e = []) {
try {
return t ? y(t, "{") ? JSON.parse(t) : e.length && !w(t, ":") ? { [e[0]]: t } : t.split(";").reduce((i, s) => {
const [o, r] = s.split(/:(.*)/);
return o && !pt(r) && (i[o.trim()] = r.trim()), i;
}, {}) : {};
} catch {
return {};
}
}
function xn(t, e) {
return t === Boolean ? Fs(e) : t === Number ? zt(e) : t === "list" ? Sc(e) : t === Object && nt(e) ? Je(e) : t ? t(e) : e;
}
const xc = /,(?![^(]*\))/;
function Sc(t) {
return P(t) ? t : nt(t) ? t.split(xc).map((e) => jt(e) ? zt(e) : Fs(e.trim())) : [t];
}
function _c(t) {
t._data = {}, t._updates = [...t.$options.update || []], t._disconnect.push(() => t._updates = t._data = null);
}
function Ac(t, e) {
t._updates.unshift(e);
}
function Ii(t, e = "update") {
t._connected && t._updates.length && (t._queued || (t._queued = new Set, ne.read(() => {
t._connected && Ec(t, t._queued), t._queued = null;
})), t._queued.add(e.type || e));
}
function Ec(t, e) {
for (const { read: i, write: s, events: o = [] } of t._updates) {
if (!e.has("update") && !o.some((l) => e.has(l)))
continue;
let r;
i && (r = i.call(t, t._data, e), r && Qt(r) && V(t._data, r)), s && r !== false && ne.write(() => {
t._connected && s.call(t, t._data, e);
});
}
}
function Vt(t) {
return Pi(hs, t, "resize");
}
function Ci(t) {
return Pi(Uo, t);
}
function Sn(t) {
return Pi(dn, t);
}
function ps(t = {}) {
return Ci({ handler: function(e, i) {
const { targets: s = this.$el, preload: o = 5 } = t;
for (const r of F(tt(s) ? s(this) : s))
Q('[loading="lazy"]', r).slice(0, o - 1).forEach((l) => mi(l, "loading"));
for (const r of e.filter(({ isIntersecting: l }) => l).map(({ target: l }) => l))
i.unobserve(r);
}, ...t });
}
function rr(t) {
return Pi((e, i) => un(i), t, "resize");
}
function Ti(t) {
return Pi((e, i) => ({ disconnect: z(Cc(e), "scroll", i, { passive: true }) }), t, "scroll");
}
function ar(t) {
return { observe(e, i) {
return { observe: ct, unobserve: ct, disconnect: z(e, It, i, { passive: true }) };
}, handler(e) {
if (!Mt(e))
return;
const i = Ut(e), s = "tagName" in e.target ? e.target : J(e.target);
st(document, `${ee} ${Zi} scroll`, (o) => {
const { x: r, y: l } = Ut(o);
(o.type !== "scroll" && s && r && Math.abs(i.x - r) > 100 || l && Math.abs(i.y - l) > 100) && setTimeout(() => {
C(s, "swipe"), C(s, `swipe${Ic(i.x, i.y, r, l)}`);
});
});
}, ...t };
}
function Pi(t, e, i) {
return { observe: t, handler() {
Ii(this, i);
}, ...e };
}
function Ic(t, e, i, s) {
return Math.abs(t - i) >= Math.abs(e - s) ? t - i > 0 ? "Left" : "Right" : e - s > 0 ? "Up" : "Down";
}
function Cc(t) {
return F(t).map((e) => {
const { ownerDocument: i } = e, s = xe(e, true);
return s === i.scrollingElement ? i : s;
});
}
var Tc = { props: { margin: String, firstColumn: Boolean }, data: { margin: "uk-margin-small-top", firstColumn: "uk-first-column" }, observe: [Sn({ options: { childList: true } }), Sn({ options: { attributes: true, attributeFilter: ["style"] }, target: ({ $el: t }) => [t, ...G(t)] }), Vt({ target: ({ $el: t }) => [t, ...G(t)] })], update: { read() {
return { rows: lr(G(this.$el)) };
}, write({ rows: t }) {
for (const e of t)
for (const i of e)
it(i, this.margin, t[0] !== e), it(i, this.firstColumn, e[ht ? e.length - 1 : 0] === i);
}, events: ["resize"] } };
function lr(t) {
const e = [[]], i = t.some((s, o) => o && t[o - 1].offsetParent !== s.offsetParent);
for (const s of t) {
if (!ut(s))
continue;
const o = _n(s, i);
for (let r = e.length - 1;r >= 0; r--) {
const l = e[r];
if (!l[0]) {
l.push(s);
break;
}
const u = _n(l[0], i);
if (o.top >= u.bottom - 1 && o.top !== u.top) {
e.push([s]);
break;
}
if (o.bottom - 1 > u.top || o.top === u.top) {
let f = l.length - 1;
for (;f >= 0; f--) {
const v = _n(l[f], i);
if (o.left >= v.left)
break;
}
l.splice(f + 1, 0, s);
break;
}
if (r === 0) {
e.unshift([s]);
break;
}
}
}
return e;
}
function _n(t, e = false) {
let { offsetTop: i, offsetLeft: s, offsetHeight: o, offsetWidth: r } = t;
return e && ([i, s] = _i(t)), { top: i, left: s, bottom: i + o, right: s + r };
}
async function Pc(t, e, i) {
await An();
let s = G(e);
const o = s.map((I) => cr(I, true)), r = { ...m(e, ["height", "padding"]), display: "block" }, l = s.concat(e);
await Promise.all(l.map(X.cancel)), m(l, "transitionProperty", "none"), await t(), s = s.concat(G(e).filter((I) => !w(s, I))), await Promise.resolve(), m(l, "transitionProperty", "");
const u = A(e, "style"), f = m(e, ["height", "padding"]), [v, $] = Oc(e, s, o), b = s.map((I) => ({ style: A(I, "style") }));
s.forEach((I, O) => $[O] && m(I, $[O])), m(e, r), C(e, "scroll"), await An();
const x = s.map((I, O) => J(I) === e && X.start(I, v[O], i, "ease")).concat(X.start(e, f, i, "ease"));
try {
await Promise.all(x), s.forEach((I, O) => {
A(I, b[O]), J(I) === e && m(I, "display", v[O].opacity === 0 ? "none" : "");
}), A(e, "style", u);
} catch {
A(s, "style", ""), Dc(e, r);
}
}
function cr(t, e) {
const i = m(t, "zIndex");
return ut(t) ? { display: "", opacity: e ? m(t, "opacity") : "0", pointerEvents: "none", position: "absolute", zIndex: i === "auto" ? Ft(t) : i, ...hr(t) } : false;
}
function Oc(t, e, i) {
const s = e.map((r, l) => J(r) && (l in i) ? i[l] ? ut(r) ? hr(r) : { opacity: 0 } : { opacity: ut(r) ? 1 : 0 } : false), o = s.map((r, l) => {
const u = J(e[l]) === t && (i[l] || cr(e[l]));
if (!u)
return false;
if (!r)
delete u.opacity;
else if (!("opacity" in r)) {
const { opacity: f } = u;
f % 1 ? r.opacity = 1 : delete u.opacity;
}
return u;
});
return [s, o];
}
function Dc(t, e) {
for (const i in e)
m(t, i, "");
}
function hr(t) {
const { height: e, width: i } = T(t);
return { height: e, width: i, transform: "", ...an(t), ...m(t, ["marginTop", "marginLeft"]) };
}
function An() {
return new Promise((t) => requestAnimationFrame(t));
}
const En = "uk-transition-leave", In = "uk-transition-enter";
function ur(t, e, i, s = 0) {
const o = gs(e, true), r = { opacity: 1 }, l = { opacity: 0 }, u = ($) => () => o === gs(e) ? $() : Promise.reject(), f = u(async () => {
j(e, En), await Promise.all(fr(e).map(($, b) => new Promise((x) => setTimeout(() => X.start($, l, i / 2, "ease").then(x), b * s)))), Z(e, En);
}), v = u(async () => {
const $ = bt(e);
j(e, In), t(), m(G(e), { opacity: 0 }), await An();
const b = G(e), x = bt(e);
m(e, "alignContent", "flex-start"), bt(e, $);
const I = fr(e);
m(b, l);
const O = I.map(async (B, q) => {
await Mc(q * s), await X.start(B, r, i / 2, "ease");
});
$ !== x && O.push(X.start(e, { height: x }, i / 2 + I.length * s, "ease")), await Promise.all(O).then(() => {
Z(e, In), o === gs(e) && (m(e, { height: "", alignContent: "" }), m(b, { opacity: "" }), delete e.dataset.transition);
});
});
return L(e, En) ? dr(e).then(v) : L(e, In) ? dr(e).then(f).then(v) : f().then(v);
}
function gs(t, e) {
return e && (t.dataset.transition = 1 + gs(t)), zt(t.dataset.transition) || 0;
}
function dr(t) {
return Promise.all(G(t).filter(X.inProgress).map((e) => new Promise((i) => st(e, "transitionend transitioncanceled", i))));
}
function fr(t) {
return lr(G(t)).flat().filter(ut);
}
function Mc(t) {
return new Promise((e) => setTimeout(e, t));
}
var pr = { props: { duration: Number, animation: Boolean }, data: { duration: 150, animation: "slide" }, methods: { animate(t, e = this.$el) {
const i = this.animation;
return (i === "fade" ? ur : i === "delayed-fade" ? (...o) => ur(...o, 40) : i ? Pc : () => (t(), Promise.resolve()))(t, e, this.duration).catch(ct);
} } };
const K = { TAB: 9, ESC: 27, SPACE: 32, END: 35, HOME: 36, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40 };
var Hc = { mixins: [pr], 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) => Q(`${t} > *`, e), toggles: ({ attrItem: t }, e) => Q(`[${t}],[data-${t}]`, e) }, watch: { toggles(t) {
this.updateState();
const e = Q(this.selActive, this.$el);
for (const i of t) {
this.selActive !== false && it(i, this.cls, w(e, i));
const s = jc(i);
et(s, "a") && A(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 !== K.SPACE || t.target.closest("a,button") && (t.preventDefault(), this.apply(t.current));
} }, methods: { apply(t) {
const e = this.getState(), i = mr(t, this.attrItem, this.getState());
Nc(e, i) || this.setState(i);
}, getState() {
return this.toggles.filter((t) => L(t, this.cls)).reduce((t, e) => mr(e, this.attrItem, t), { filter: { "": "" }, sort: [] });
}, async setState(t, e = true) {
t = { filter: { "": "" }, sort: [], ...t }, C(this.$el, "beforeFilter", [this, t]);
for (const i of this.toggles)
it(i, this.cls, Bc(i, this.attrItem, t));
await Promise.all(Q(this.target, this.$el).map((i) => {
const s = () => Lc(t, i, G(i));
return e ? this.animate(s, i) : s();
})), C(this.$el, "afterFilter", [this]);
}, updateState() {
ne.write(() => this.setState(this.getState(), false));
} } };
function gr(t, e) {
return Je(vt(t, e), ["filter"]);
}
function Nc(t, e) {
return ["filter", "sort"].every((i) => gi(t[i], e[i]));
}
function Lc(t, e, i) {
for (const r of i)
m(r, "display", Object.values(t.filter).every((l) => !l || Y(r, l)) ? "" : "none");
const [s, o] = t.sort;
if (s) {
const r = Rc(i, s, o);
gi(r, i) || ot(e, r);
}
}
function mr(t, e, i) {
const { filter: s, group: o, sort: r, order: l = "asc" } = gr(t, e);
return (s || pt(r)) && (o ? s ? (delete i.filter[""], i.filter[o] = s) : (delete i.filter[o], (Ji(i.filter) || ("" in i.filter)) && (i.filter = { "": s || "" })) : i.filter = { "": s || "" }), pt(r) || (i.sort = [r, l]), i;
}
function Bc(t, e, { filter: i = { "": "" }, sort: [s, o] }) {
const { filter: r = "", group: l = "", sort: u, order: f = "asc" } = gr(t, e);
return pt(u) ? l in i && r === i[l] || !r && l && !(l in i) && !i[""] : s === u && o === f;
}
function Rc(t, e, i) {
return [...t].sort((s, o) => vt(s, e).localeCompare(vt(o, e), undefined, { numeric: true }) * (i === "asc" || -1));
}
function jc(t) {
return H("a,button", t) || t;
}
var zc = { 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() : Tn(this.$el) && (this.$el.loading = "lazy", Cn(this.$el));
}, disconnected() {
this.img && (this.img.onload = ""), delete this.img;
}, observe: Ci({ 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, ...wi(e.target, t)] : t }), methods: { load() {
if (this.img)
return this.img;
const t = Tn(this.$el) ? this.$el : Uc(this.$el, this.dataSrc, this.sources);
return mi(t, "loading"), Cn(this.$el, t.currentSrc), this.img = t;
} } };
function Cn(t, e) {
if (Tn(t)) {
const i = J(t);
(et(i, "picture") ? G(i) : [t]).forEach((o) => vr(o, o));
} else
e && !w(t.style.backgroundImage, e) && (m(t, "backgroundImage", `url(${Qs(e)})`), C(t, Ve("load", false)));
}
const Fc = ["data-src", "data-srcset", "sizes"];
function vr(t, e) {
for (const i of Fc) {
const s = vt(t, i);
s && A(e, i.replace(/data-/g, ""), s);
}
}
function Uc(t, e, i) {
const s = new Image;
return $r(s, i), vr(t, s), s.onload = () => Cn(t, s.currentSrc), A(s, "src", e), s;
}
function $r(t, e) {
if (e = qc(e), e.length) {
const i = Wt("
");
for (const s of e) {
const o = Wt("");
A(o, s), ot(i, o);
}
ot(i, t);
}
}
function qc(t) {
if (!t)
return [];
if (y(t, "["))
try {
t = JSON.parse(t);
} catch {
t = [];
}
else
t = Je(t);
return P(t) || (t = [t]), t.filter((e) => !Ji(e));
}
function Tn(t) {
return et(t, "img");
}
let Pn;
function br(t) {
const e = z(t, "touchstart", (s) => {
if (s.targetTouches.length !== 1 || Y(s.target, 'input[type="range"'))
return;
let o = Ut(s).y;
const r = z(t, "touchmove", (l) => {
const u = Ut(l).y;
u !== o && (o = u, Ke(l.target).some((f) => {
if (!t.contains(f))
return false;
let { scrollHeight: v, clientHeight: $ } = f;
return $ < v;
}) || l.preventDefault());
}, { passive: false });
st(t, "scroll touchend touchcanel", r, { capture: true });
}, { passive: true });
if (Pn)
return e;
Pn = true;
const { scrollingElement: i } = document;
return m(i, { overflowY: CSS.supports("overflow", "clip") ? "clip" : "hidden", touchAction: "none", paddingRight: rs(window) - i.clientWidth || "" }), () => {
Pn = false, e(), m(i, { overflowY: "", touchAction: "", paddingRight: "" });
};
}
var xt = { connected() {
j(this.$el, this.$options.id);
} }, Oi = { props: { container: Boolean }, data: { container: true }, computed: { container({ container: t }) {
return t === true && this.$container || t && H(t);
} } }, wr = { props: { pos: String, offset: Boolean, flip: Boolean, shift: Boolean, inset: Boolean }, data: { pos: `bottom-${ht ? "right" : "left"}`, offset: false, flip: true, shift: true, inset: false }, connected() {
this.pos = this.$props.pos.split("-").concat("center").slice(0, 2), [this.dir, this.align] = this.pos, this.axis = w(["top", "bottom"], this.dir) ? "y" : "x";
}, methods: { positionAt(t, e, i) {
let s = [this.getPositionOffset(t), this.getShiftOffset(t)];
const o = [this.flip && "flip", this.shift && "shift"], r = { element: [this.inset ? this.dir : as(this.dir), this.align], target: [this.dir, this.align] };
if (this.axis === "y") {
for (const f in r)
r[f].reverse();
s.reverse(), o.reverse();
}
const l = On(t), u = T(t);
m(t, { top: -u.height, left: -u.width }), Xo(t, e, { attach: r, offset: s, boundary: i, placement: o, viewportOffset: this.getViewportOffset(t) }), l();
}, getPositionOffset(t = this.$el) {
return ft(this.offset === false ? m(t, "--uk-position-offset") : this.offset, this.axis === "x" ? "width" : "height", t) * (w(["left", "top"], this.dir) ? -1 : 1) * (this.inset ? -1 : 1);
}, getShiftOffset(t = this.$el) {
return this.align === "center" ? 0 : ft(m(t, "--uk-position-shift-offset"), this.axis === "y" ? "width" : "height", t) * (w(["left", "top"], this.align) ? 1 : -1);
}, getViewportOffset(t) {
return ft(m(t, "--uk-position-viewport-offset"));
} } };
function On(t) {
const e = xe(t), { scrollTop: i } = e;
return () => {
i !== e.scrollTop && (e.scrollTop = i);
};
}
var _e = { props: { cls: Boolean, animation: "list", duration: Number, velocity: Number, origin: String, transition: String }, data: { cls: false, animation: [false], duration: 200, velocity: 0.2, origin: false, transition: "ease", clsEnter: "uk-togglable-enter", clsLeave: "uk-togglable-leave" }, computed: { hasAnimation: ({ animation: t }) => !!t[0], hasTransition: ({ animation: t }) => ["slide", "reveal"].some((e) => y(t[0], e)) }, methods: { async toggleElement(t, e, i) {
try {
return await Promise.all(F(t).map((s) => {
const o = Re(e) ? e : !this.isToggled(s);
if (!C(s, `before${o ? "show" : "hide"}`, [this]))
return Promise.reject();
const r = (tt(i) ? i : i === false || !this.hasAnimation ? Wc : this.hasTransition ? Vc : Yc)(s, o, this), l = o ? this.clsEnter : this.clsLeave;
j(s, l), C(s, o ? "show" : "hide", [this]);
const u = () => {
var f;
if (Z(s, l), C(s, o ? "shown" : "hidden", [this]), o) {
const v = On(s);
(f = Q("[autofocus]", s).find(ut)) == null || f.focus(), v();
}
};
return r ? r.then(u, () => (Z(s, l), Promise.reject())) : u();
})), true;
} catch {
return false;
}
}, isToggled(t = this.$el) {
return t = at(t), L(t, this.clsEnter) ? true : L(t, this.clsLeave) ? false : this.cls ? L(t, this.cls.split(" ")[0]) : ut(t);
}, _toggle(t, e) {
if (!t)
return;
e = !!e;
let i;
this.cls ? (i = w(this.cls, " ") || e !== L(t, this.cls), i && it(t, this.cls, w(this.cls, " ") ? undefined : e)) : (i = e === t.hidden, i && (t.hidden = !e)), i && C(t, "toggled", [e, this]);
} } };
function Wc(t, e, { _toggle: i }) {
return ie.cancel(t), X.cancel(t), i(t, e);
}
async function Vc(t, e, { animation: i, duration: s, velocity: o, transition: r, _toggle: l }) {
var u;
const [f = "reveal", v = "top"] = ((u = i[0]) == null ? undefined : u.split("-")) || [], $ = [["left", "right"], ["top", "bottom"]], b = $[w($[0], v) ? 0 : 1], x = b[1] === v, O = ["width", "height"][$.indexOf(b)], B = `margin-${b[0]}`, q = `margin-${v}`;
let _t = T(t)[O];
const Kt = X.inProgress(t);
await X.cancel(t), e && l(t, true);
const re = Object.fromEntries(["padding", "border", "width", "height", "minWidth", "minHeight", "overflowY", "overflowX", B, q].map((La) => [La, t.style[La]])), Lt = T(t), Yn = R(m(t, B)), Ma = R(m(t, q)), Pe = Lt[O] + Ma;
!Kt && !e && (_t += Ma);
const [Is] = rn(t, "");
m(Is, { boxSizing: "border-box", height: Lt.height, width: Lt.width, ...m(t, ["overflow", "padding", "borderTop", "borderRight", "borderBottom", "borderLeft", "borderImage", q]) }), m(t, { padding: 0, border: 0, minWidth: 0, minHeight: 0, [q]: 0, width: Lt.width, height: Lt.height, overflow: "hidden", [O]: _t });
const Ha = _t / Pe;
s = (o * Pe + s) * (e ? 1 - Ha : Ha);
const Na = { [O]: e ? Pe : 0 };
x && (m(t, B, Pe - _t + Yn), Na[B] = e ? Yn : Pe + Yn), !x ^ f === "reveal" && (m(Is, B, -Pe + _t), X.start(Is, { [B]: e ? 0 : -Pe }, s, r));
try {
await X.start(t, Na, s, r);
} finally {
m(t, re), Si(Is.firstChild), e || l(t, false);
}
}
function Yc(t, e, i) {
const { animation: s, duration: o, _toggle: r } = i;
return e ? (r(t, true), ie.in(t, s[0], o, i.origin)) : ie.out(t, s[1] || s[0], o, i.origin).then(() => r(t, false));
}
const wt = [];
var Dn = { mixins: [xt, Oi, _e], props: { selPanel: String, selClose: String, escClose: Boolean, bgClose: Boolean, stack: Boolean, role: String }, data: { cls: "uk-open", escClose: true, bgClose: true, overlay: true, stack: false, role: "dialog" }, computed: { panel: ({ selPanel: t }, e) => H(t, e), transitionElement() {
return this.panel;
} }, connected() {
A(this.panel || this.$el, "role", this.role), this.overlay && A(this.panel || this.$el, "aria-modal", true);
}, beforeDisconnect() {
w(wt, this) && this.toggleElement(this.$el, false, false);
}, events: [{ name: "click", delegate: ({ selClose: t }) => `${t},a[href*="#"]`, handler(t) {
const { current: e, defaultPrevented: i } = t, { hash: s } = e;
!i && s && We(e) && !this.$el.contains(H(s)) ? this.hide() : Y(e, this.selClose) && (t.preventDefault(), this.hide());
} }, { name: "toggle", self: true, handler(t) {
t.defaultPrevented || (t.preventDefault(), this.isToggled() === w(wt, this) && this.toggle());
} }, { name: "beforeshow", self: true, handler(t) {
if (w(wt, this))
return false;
!this.stack && wt.length ? (Promise.all(wt.map((e) => e.hide())).then(this.show), t.preventDefault()) : wt.push(this);
} }, { name: "show", self: true, handler() {
this.stack && m(this.$el, "zIndex", R(m(this.$el, "zIndex")) + wt.length);
const t = [this.overlay && Jc(this), this.overlay && br(this.$el), this.bgClose && Gc(this), this.escClose && Xc(this)];
st(this.$el, "hidden", () => t.forEach((e) => e && e()), { self: true }), j(document.documentElement, this.clsPage);
} }, { name: "shown", self: true, handler() {
ts(this.$el) || A(this.$el, "tabindex", "-1"), Y(this.$el, ":focus-within") || this.$el.focus();
} }, { name: "hidden", self: true, handler() {
w(wt, this) && wt.splice(wt.indexOf(this), 1), m(this.$el, "zIndex", ""), wt.some((t) => t.clsPage === this.clsPage) || Z(document.documentElement, this.clsPage);
} }], methods: { toggle() {
return this.isToggled() ? this.hide() : this.show();
}, show() {
return this.container && J(this.$el) !== this.container ? (ot(this.container, this.$el), new Promise((t) => requestAnimationFrame(() => this.show().then(t)))) : this.toggleElement(this.$el, true, yr);
}, hide() {
return this.toggleElement(this.$el, false, yr);
} } };
function yr(t, e, { transitionElement: i, _toggle: s }) {
return new Promise((o, r) => st(t, "show hide", () => {
var l;
(l = t._reject) == null || l.call(t), t._reject = r, s(t, e);
const u = st(i, "transitionstart", () => {
st(i, "transitionend transitioncancel", o, { self: true }), clearTimeout(f);
}, { self: true }), f = setTimeout(() => {
u(), o();
}, Kc(m(i, "transitionDuration")));
})).then(() => delete t._reject);
}
function Kc(t) {
return t ? _(t, "ms") ? R(t) : R(t) * 1000 : 0;
}
function Jc(t) {
return z(document, "focusin", (e) => {
me(wt) === t && !t.$el.contains(e.target) && t.$el.focus();
});
}
function Gc(t) {
return z(document, It, ({ target: e }) => {
me(wt) !== t || t.overlay && !t.$el.contains(e) || !t.panel || t.panel.contains(e) || st(document, `${ee} ${Zi} scroll`, ({ defaultPrevented: i, type: s, target: o }) => {
!i && s === ee && e === o && t.hide();
}, true);
});
}
function Xc(t) {
return z(document, "keydown", (e) => {
e.keyCode === 27 && me(wt) === t && t.hide();
});
}
var Mn = { slide: { show(t) {
return [{ transform: rt(t * -100) }, { transform: rt() }];
}, percent(t) {
return Di(t);
}, translate(t, e) {
return [{ transform: rt(e * -100 * t) }, { transform: rt(e * 100 * (1 - t)) }];
} } };
function Di(t) {
return Math.abs(new DOMMatrix(m(t, "transform")).m41 / t.offsetWidth);
}
function rt(t = 0, e = "%") {
return t ? `translate3d(${t + e}, 0, 0)` : "";
}
function Zc(t, e, i, { animation: s, easing: o }) {
const { percent: r, translate: l, show: u = ct } = s, f = u(i), { promise: v, resolve: $ } = kr();
return { dir: i, show(b, x = 0, I) {
const O = I ? "linear" : o;
return b -= Math.round(b * mt(x, -1, 1)), this.translate(x), Ae(e, "itemin", { percent: x, duration: b, timing: O, dir: i }), Ae(t, "itemout", { percent: 1 - x, duration: b, timing: O, dir: i }), Promise.all([X.start(e, f[1], b, O), X.start(t, f[0], b, O)]).then(() => {
this.reset(), $();
}, ct), v;
}, cancel() {
return X.cancel([e, t]);
}, reset() {
for (const b in f[0])
m([e, t], b, "");
}, async forward(b, x = this.percent()) {
return await this.cancel(), this.show(b, x, true);
}, translate(b) {
this.reset();
const x = l(b, i);
m(e, x[1]), m(t, x[0]), Ae(e, "itemtranslatein", { percent: b, dir: i }), Ae(t, "itemtranslateout", { percent: 1 - b, dir: i });
}, percent() {
return r(t || e, e, i);
}, getDistance() {
return t == null ? undefined : t.offsetWidth;
} };
}
function Ae(t, e, i) {
C(t, Ve(e, false, false, i));
}
function kr() {
let t;
return { promise: new Promise((e) => t = e), resolve: t };
}
var Hn = { props: { i18n: Object }, data: { i18n: null }, methods: { t(t, ...e) {
var i, s, o;
let r = 0;
return ((o = ((i = this.i18n) == null ? undefined : i[t]) || ((s = this.$options.i18n) == null ? undefined : s[t])) == null ? undefined : o.replace(/%s/g, () => e[r++] || "")) || "";
} } }, Qc = { props: { autoplay: Boolean, autoplayInterval: Number, pauseOnHover: Boolean }, data: { autoplay: false, autoplayInterval: 7000, pauseOnHover: true }, connected() {
A(this.list, "aria-live", this.autoplay ? "off" : "polite"), this.autoplay && this.startAutoplay();
}, disconnected() {
this.stopAutoplay();
}, update() {
A(this.slides, "tabindex", "-1");
}, events: [{ name: "visibilitychange", el: () => document, filter: ({ autoplay: t }) => t, handler() {
document.hidden ? this.stopAutoplay() : this.startAutoplay();
} }], methods: { startAutoplay() {
this.stopAutoplay(), this.interval = setInterval(() => {
this.stack.length || this.draggable && Y(this.$el, ":focus-within") && !Y(this.$el, ":focus") || this.pauseOnHover && Y(this.$el, ":hover") || this.show("next");
}, this.autoplayInterval);
}, stopAutoplay() {
clearInterval(this.interval);
} } };
const ms = { passive: false, capture: true }, xr = { passive: true, capture: true }, th = "touchstart mousedown", Nn = "touchmove mousemove", Sr = "touchend touchcancel mouseup click input scroll";
var eh = { props: { draggable: Boolean }, data: { draggable: true, threshold: 10 }, created() {
for (const t of ["start", "move", "end"]) {
const e = this[t];
this[t] = (i) => {
const s = Ut(i).x * (ht ? -1 : 1);
this.prevPos = s === this.pos ? this.prevPos : this.pos, this.pos = s, e(i);
};
}
}, events: [{ name: th, passive: true, delegate: ({ selList: t }) => `${t} > *`, handler(t) {
!this.draggable || this.parallax || !Mt(t) && ih(t.target) || t.target.closest(vi) || t.button > 0 || this.length < 2 || this.start(t);
} }, { name: "dragstart", handler(t) {
t.preventDefault();
} }, { name: Nn, el: ({ list: t }) => t, handler: ct, ...ms }], methods: { start() {
this.drag = this.pos, this._transitioner ? (this.percent = this._transitioner.percent(), this.drag += this._transitioner.getDistance() * this.percent * this.dir, this._transitioner.cancel(), this._transitioner.translate(this.percent), this.dragging = true, this.stack = []) : this.prevIndex = this.index, z(document, Nn, this.move, ms), z(document, Sr, this.end, xr), m(this.list, "userSelect", "none");
}, move(t) {
const e = this.pos - this.drag;
if (e === 0 || this.prevPos === this.pos || !this.dragging && Math.abs(e) < this.threshold)
return;
t.cancelable && t.preventDefault(), this.dragging = true, this.dir = e < 0 ? 1 : -1;
let { slides: i, prevIndex: s } = this, o = Math.abs(e), r = this.getIndex(s + this.dir), l = _r.call(this, s, r);
for (;r !== s && o > l; )
this.drag -= l * this.dir, s = r, o -= l, r = this.getIndex(s + this.dir), l = _r.call(this, s, r);
this.percent = o / l;
const u = i[s], f = i[r], v = this.index !== r, $ = s === r;
let b;
for (const x of [this.index, this.prevIndex])
w([r, s], x) || (C(i[x], "itemhidden", [this]), $ && (b = true, this.prevIndex = s));
(this.index === s && this.prevIndex !== s || b) && C(i[this.index], "itemshown", [this]), v && (this.prevIndex = s, this.index = r, $ || (C(u, "beforeitemhide", [this]), C(u, "itemhide", [this])), C(f, "beforeitemshow", [this]), C(f, "itemshow", [this])), this._transitioner = this._translate(Math.abs(this.percent), u, !$ && f);
}, end() {
if (ye(document, Nn, this.move, ms), ye(document, Sr, this.end, xr), this.dragging)
if (setTimeout(z(this.list, "click", (t) => t.preventDefault(), ms)), this.dragging = null, this.index === this.prevIndex)
this.percent = 1 - this.percent, this.dir *= -1, this._show(false, this.index, true), this._transitioner = null;
else {
const t = (ht ? this.dir * (ht ? 1 : -1) : this.dir) < 0 == this.prevPos > this.pos;
this.index = t ? this.index : this.prevIndex, t && (C(this.slides[this.prevIndex], "itemhidden", [this]), C(this.slides[this.index], "itemshown", [this]), this.percent = 1 - this.percent), this.show(this.dir > 0 && !t || this.dir < 0 && t ? "next" : "previous", true);
}
m(this.list, { userSelect: "" }), this.drag = this.percent = null;
} } };
function _r(t, e) {
return this._getTransitioner(t, t !== e && e).getDistance() || this.slides[t].offsetWidth;
}
function ih(t) {
return m(t, "userSelect") !== "none" && M(t.childNodes).some((e) => e.nodeType === 3 && e.textContent.trim());
}
function sh(t) {
t._watches = [];
for (const e of t.$options.watch || [])
for (const [i, s] of Object.entries(e))
Ar(t, s, i);
t._initial = true;
}
function Ar(t, e, i) {
t._watches.push({ name: i, ...Qt(e) ? e : { handler: e } });
}
function nh(t, e) {
for (const { name: i, handler: s, immediate: o = true } of t._watches)
(t._initial && o || a(e, i) && !gi(e[i], t[i])) && s.call(t, t[i], e[i]);
t._initial = false;
}
function oh(t) {
const { computed: e } = t.$options;
if (t._computed = {}, e)
for (const i in e)
Ir(t, i, e[i]);
}
const Er = { subtree: true, childList: true };
function Ir(t, e, i) {
t._hasComputed = true, Object.defineProperty(t, e, { enumerable: true, get() {
const { _computed: s, $props: o, $el: r } = t;
if (!a(s, e) && (s[e] = (i.get || i).call(t, o, r), i.observe && t._computedObserver)) {
const l = i.observe.call(t, o);
t._computedObserver.observe(["~", "+", "-"].includes(l[0]) ? r.parentElement : r.getRootNode(), Er);
}
return s[e];
}, set(s) {
const { _computed: o } = t;
o[e] = i.set ? i.set.call(t, s) : s, pt(o[e]) && delete o[e];
} });
}
function rh(t) {
t._hasComputed && (Ac(t, { read: () => nh(t, Cr(t)), events: ["resize", "computed"] }), t._computedObserver = dn(t.$el, () => Ii(t, "computed"), Er), t._disconnect.push(() => {
t._computedObserver.disconnect(), t._computedObserver = null, Cr(t);
}));
}
function Cr(t) {
const e = { ...t._computed };
return t._computed = {}, e;
}
function ah(t) {
for (const e of t.$options.events || [])
if (a(e, "handler"))
Tr(t, e);
else
for (const i in e)
Tr(t, { name: i, handler: e[i] });
}
function Tr(t, { name: e, el: i, handler: s, capture: o, passive: r, delegate: l, filter: u, self: f }) {
u && !u.call(t, t) || t._disconnect.push(z(i ? i.call(t, t) : t.$el, e, l == null ? undefined : l.call(t, t), s.bind(t), { passive: r, capture: o, self: f }));
}
function lh(t) {
for (const e of t.$options.observe || [])
ch(t, e);
}
function ch(t, e) {
let { observe: i, target: s = t.$el, handler: o, options: r, filter: l, args: u } = e;
if (l && !l.call(t, t))
return;
const f = `_observe${t._disconnect.length}`;
tt(s) && !a(t, f) && Ir(t, f, () => {
const b = s.call(t, t);
return P(b) ? F(b) : b;
}), o = nt(o) ? t[o] : o.bind(t), tt(r) && (r = r.call(t, t));
const v = a(t, f) ? t[f] : s, $ = i(v, o, r, u);
tt(s) && P(t[f]) && Ar(t, { handler: hh($, r), immediate: false }, f), t._disconnect.push(() => $.disconnect());
}
function hh(t, e) {
return (i, s) => {
for (const o of s)
w(i, o) || (t.unobserve ? t.unobserve(o) : t.observe && t.disconnect());
for (const o of i)
(!w(s, o) || !t.unobserve) && t.observe(o, e);
};
}
function uh(t) {
const { $options: e, $props: i } = t, s = Pr(e);
V(i, s);
const { computed: o, methods: r } = e;
for (let l in i)
l in s && (!o || !a(o, l)) && (!r || !a(r, l)) && (t[l] = i[l]);
}
function Pr(t) {
const e = {}, { args: i = [], props: s = {}, el: o, id: r } = t;
if (!s)
return e;
for (const u in s) {
const f = c(u);
let v = vt(o, f);
pt(v) || (v = s[u] === Boolean && v === "" ? true : xn(s[u], v), !(f === "target" && y(v, "_")) && (e[u] = v));
}
const l = Je(vt(o, r), i);
for (const u in l) {
const f = p(u);
pt(s[f]) || (e[f] = xn(s[f], l[u]));
}
return e;
}
const dh = Et((t, e) => {
const i = Object.keys(e), s = i.concat(t).map((o) => [c(o), `data-${c(o)}`]).flat();
return { attributes: i, filter: s };
});
function fh(t) {
const { $options: e, $props: i } = t, { id: s, props: o, el: r } = e;
if (!o)
return;
const { attributes: l, filter: u } = dh(s, o), f = new MutationObserver((v) => {
const $ = Pr(e);
v.some(({ attributeName: b }) => {
const x = b.replace("data-", "");
return (x === s ? l : [p(x), p(b)]).some((I) => !pt($[I]) && $[I] !== i[I]);
}) && t.$reset();
});
f.observe(r, { attributes: true, attributeFilter: u }), t._disconnect.push(() => f.disconnect());
}
function Ge(t, e) {
var i;
(i = t.$options[e]) == null || i.forEach((s) => s.call(t));
}
function Ln(t) {
t._connected || (uh(t), Ge(t, "beforeConnect"), t._connected = true, t._disconnect = [], ah(t), _c(t), sh(t), lh(t), fh(t), rh(t), Ge(t, "connected"), Ii(t));
}
function Bn(t) {
t._connected && (Ge(t, "beforeDisconnect"), t._disconnect.forEach((e) => e()), t._disconnect = null, Ge(t, "disconnected"), t._connected = false);
}
let ph = 0;
function Or(t, e = {}) {
e.data = vh(e, t.constructor.options), t.$options = Ei(t.constructor.options, e, t), t.$props = {}, t._uid = ph++, gh(t), mh(t), oh(t), Ge(t, "created"), e.el && t.$mount(e.el);
}
function gh(t) {
const { data: e = {} } = t.$options;
for (const i in e)
t.$props[i] = t[i] = e[i];
}
function mh(t) {
const { methods: e } = t.$options;
if (e)
for (const i in e)
t[i] = e[i].bind(t);
}
function vh({ data: t = {} }, { args: e = [], props: i = {} }) {
P(t) && (t = t.slice(0, e.length).reduce((s, o, r) => (Qt(o) ? V(s, o) : s[e[r]] = o, s), {}));
for (const s in t)
pt(t[s]) ? delete t[s] : i[s] && (t[s] = xn(i[s], t[s]));
return t;
}
const St = function(t) {
Or(this, t);
};
St.util = yc, St.options = {}, St.version = "3.22.2";
const $h = "uk-", Ee = "__uikit__", Xe = {};
function Dr(t, e) {
var i, s;
const o = $h + c(t);
if (!e)
return Xe[o].options || (Xe[o] = St.extend(Xe[o])), Xe[o];
t = p(t), St[t] = (l, u) => Mi(t, l, u);
const r = (i = e.options) != null ? i : { ...e };
return r.id = o, r.name = t, (s = r.install) == null || s.call(r, St, r, t), St._initialized && !r.functional && requestAnimationFrame(() => Mi(t, `[${o}],[data-${o}]`)), Xe[o] = r;
}
function Mi(t, e, i, ...s) {
const o = Dr(t);
return o.options.functional ? new o({ data: Qt(e) ? e : [e, i, ...s] }) : e ? Q(e).map(r)[0] : r();
function r(l) {
const u = vs(l, t);
if (u)
if (i)
u.$destroy();
else
return u;
return new o({ el: l, data: i });
}
}
function Hi(t) {
return (t == null ? undefined : t[Ee]) || {};
}
function vs(t, e) {
return Hi(t)[e];
}
function bh(t, e) {
t[Ee] || (t[Ee] = {}), t[Ee][e.$options.name] = e;
}
function wh(t, e) {
var i;
(i = t[Ee]) == null || delete i[e.$options.name], Ji(t[Ee]) && delete t[Ee];
}
function yh(t) {
t.component = Dr, t.getComponents = Hi, t.getComponent = vs, t.update = Mr, t.use = function(i) {
if (!i.installed)
return i.call(null, this), i.installed = true, this;
}, t.mixin = function(i, s) {
s = (nt(s) ? this.component(s) : s) || this, s.options = Ei(s.options, i);
}, t.extend = function(i) {
i || (i = {});
const s = this, o = function(l) {
Or(this, l);
};
return o.prototype = Object.create(s.prototype), o.prototype.constructor = o, o.options = Ei(s.options, i), o.super = s, o.extend = s.extend, o;
};
let e;
Object.defineProperty(t, "container", { get() {
return e || document.body;
}, set(i) {
e = H(i);
} });
}
function Mr(t, e) {
t = t ? at(t) : document.body;
for (const i of qe(t).reverse())
Hr(i, e);
se(t, (i) => Hr(i, e));
}
function Hr(t, e) {
const i = Hi(t);
for (const s in i)
Ii(i[s], e);
}
function kh(t) {
t.prototype.$mount = function(e) {
const i = this;
bh(e, i), i.$options.el = e, e.isConnected && Ln(i);
}, t.prototype.$destroy = function(e = false) {
const i = this, { el: s } = i.$options;
s && Bn(i), Ge(i, "destroy"), wh(s, i), e && $t(i.$el);
}, t.prototype.$create = Mi, t.prototype.$emit = function(e) {
Ii(this, e);
}, t.prototype.$update = function(e = this.$el, i) {
Mr(e, i);
}, t.prototype.$reset = function() {
Bn(this), Ln(this);
}, t.prototype.$getComponent = vs, Object.defineProperties(t.prototype, { $el: { get() {
return this.$options.el;
} }, $container: Object.getOwnPropertyDescriptor(t, "container") });
}
let xh = 1;
function Ie(t, e = null) {
return (e == null ? undefined : e.id) || `${t.$options.id}-${xh++}`;
}
var Sh = { i18n: { next: "Next slide", previous: "Previous slide", slideX: "Slide %s", slideLabel: "%s of %s", role: "String" }, data: { selNav: false, role: "region" }, computed: { nav: ({ selNav: t }, e) => H(t, e), navChildren() {
return G(this.nav);
}, selNavItem: ({ attrItem: t }) => `[${t}],[data-${t}]`, navItems(t, e) {
return Q(this.selNavItem, e);
} }, watch: { nav(t, e) {
A(t, "role", "tablist"), this.padNavitems(), e && this.$emit();
}, list(t) {
et(t, "ul") && A(t, "role", "presentation");
}, navChildren(t) {
A(t, "role", "presentation"), this.padNavitems(), this.updateNav();
}, navItems(t) {
for (const e of t) {
const i = vt(e, this.attrItem), s = H("a,button", e) || e;
let o, r = null;
if (jt(i)) {
const l = zt(i), u = this.slides[l];
u && (u.id || (u.id = Ie(this, u)), r = u.id), o = this.t("slideX", R(i) + 1), A(s, "role", "tab");
} else
this.list && (this.list.id || (this.list.id = Ie(this, this.list)), r = this.list.id), o = this.t(i);
A(s, { "aria-controls": r, "aria-label": A(s, "aria-label") || o });
}
}, slides(t) {
t.forEach((e, i) => A(e, { role: this.nav ? "tabpanel" : "group", "aria-label": this.t("slideLabel", i + 1, this.length), "aria-roledescription": this.nav ? null : "slide" })), this.padNavitems();
} }, connected() {
A(this.$el, { role: this.role, "aria-roledescription": "carousel" });
}, update: [{ write() {
this.navItems.concat(this.nav).forEach((t) => t && (t.hidden = !this.maxIndex)), this.updateNav();
}, events: ["resize"] }], events: [{ name: "click keydown", delegate: ({ selNavItem: t }) => t, filter: ({ parallax: t }) => !t, handler(t) {
t.target.closest("a,button") && (t.type === "click" || t.keyCode === K.SPACE) && (t.preventDefault(), this.show(vt(t.current, this.attrItem)));
} }, { name: "itemshow", handler() {
this.updateNav();
} }, { name: "keydown", delegate: ({ selNavItem: t }) => t, filter: ({ parallax: t }) => !t, handler(t) {
const { current: e, keyCode: i } = t, s = vt(e, this.attrItem);
if (!jt(s))
return;
let o = i === K.HOME ? 0 : i === K.END ? "last" : i === K.LEFT ? "previous" : i === K.RIGHT ? "next" : -1;
~o && (t.preventDefault(), this.show(o));
} }], methods: { updateNav() {
const t = this.getValidIndex();
for (const e of this.navItems) {
const i = vt(e, this.attrItem), s = H("a,button", e) || e;
if (jt(i)) {
const r = zt(i) === t;
it(e, this.clsActive, r), it(s, "uk-disabled", !!this.parallax), A(s, { "aria-selected": r, tabindex: r && !this.parallax ? null : -1 }), r && s && Y(J(e), ":focus-within") && s.focus();
} else
it(e, "uk-invisible", this.finite && (i === "previous" && t === 0 || i === "next" && t >= this.maxIndex));
}
}, padNavitems() {
if (!this.nav)
return;
const t = [];
for (let e = 0;e < this.length; e++) {
const i = `${this.attrItem}="${e}"`;
t[e] = this.navChildren.findLast((s) => s.matches(`[${i}]`)) || H(`
`);
}
gi(t, this.navChildren) || qt(this.nav, t);
} } };
const _h = "cubic-bezier(0.25, 0.46, 0.45, 0.94)", Ah = "cubic-bezier(0.165, 0.84, 0.44, 1)";
var Nr = { mixins: [Qc, eh, Sh, Hn], props: { clsActivated: String, easing: String, index: Number, finite: Boolean, velocity: Number }, data: () => ({ easing: "ease", finite: false, velocity: 1, index: 0, prevIndex: -1, stack: [], percent: 0, clsActive: "uk-active", clsActivated: "", clsEnter: "uk-slide-enter", clsLeave: "uk-slide-leave", clsSlideActive: "uk-slide-active", Transitioner: false, transitionOptions: {} }), connected() {
this.prevIndex = -1, this.index = this.getValidIndex(this.$props.index), this.stack = [];
}, disconnected() {
Z(this.slides, this.clsActive);
}, computed: { duration: ({ velocity: t }, e) => Lr(e.offsetWidth / t), list: ({ selList: t }, e) => H(t, e), maxIndex() {
return this.length - 1;
}, slides() {
return G(this.list);
}, length() {
return this.slides.length;
} }, watch: { slides(t, e) {
e && this.$emit();
} }, events: { itemshow({ target: t }) {
j(t, this.clsEnter, this.clsSlideActive);
}, itemshown({ target: t }) {
Z(t, this.clsEnter);
}, itemhide({ target: t }) {
j(t, this.clsLeave);
}, itemhidden({ target: t }) {
Z(t, this.clsLeave, this.clsSlideActive);
} }, methods: { async show(t, e = false) {
var i;
if (this.dragging || !this.length || this.parallax)
return;
const { stack: s } = this, o = e ? 0 : s.length, r = () => {
s.splice(o, 1), s.length && this.show(s.shift(), true);
};
if (s[e ? "unshift" : "push"](t), !e && s.length > 1) {
s.length === 2 && ((i = this._transitioner) == null || i.forward(Math.min(this.duration, 200)));
return;
}
const l = this.getIndex(this.index), u = L(this.slides, this.clsActive) && this.slides[l], f = this.getIndex(t, this.index), v = this.slides[f];
if (u === v) {
r();
return;
}
if (this.dir = Eh(t, l), this.prevIndex = l, this.index = f, u && !C(u, "beforeitemhide", [this]) || !C(v, "beforeitemshow", [this, u])) {
this.index = this.prevIndex, r();
return;
}
u && C(u, "itemhide", [this]), C(v, "itemshow", [this]), await this._show(u, v, e), u && C(u, "itemhidden", [this]), C(v, "itemshown", [this]), s.shift(), this._transitioner = null, s.length && requestAnimationFrame(() => s.length && this.show(s.shift(), true));
}, getIndex(t = this.index, e = this.index) {
return mt(yt(t, this.slides, e, this.finite), 0, Math.max(0, this.maxIndex));
}, getValidIndex(t = this.index, e = this.prevIndex) {
return this.getIndex(t, e);
}, async _show(t, e, i) {
if (this._transitioner = this._getTransitioner(t, e, this.dir, { easing: i ? e.offsetWidth < 600 ? _h : Ah : this.easing, ...this.transitionOptions }), !i && !t) {
this._translate(1);
return;
}
const { length: s } = this.stack;
return this._transitioner[s > 1 ? "forward" : "show"](s > 1 ? Math.min(this.duration, 75 + 75 / (s - 1)) : this.duration, this.percent);
}, _translate(t, e = this.prevIndex, i = this.index) {
const s = this._getTransitioner(e === i ? false : e, i);
return s.translate(t), s;
}, _getTransitioner(t = this.prevIndex, e = this.index, i = this.dir || 1, s = this.transitionOptions) {
return new this.Transitioner(pi(t) ? this.slides[t] : t, pi(e) ? this.slides[e] : e, i * (ht ? -1 : 1), s);
} } };
function Eh(t, e) {
return t === "next" ? 1 : t === "previous" || t < e ? -1 : 1;
}
function Lr(t) {
return 0.5 * t + 300;
}
var Br = { mixins: [Nr], props: { animation: String }, data: { animation: "slide", clsActivated: "uk-transition-active", Animations: Mn, Transitioner: Zc }, computed: { animation({ animation: t, Animations: e }) {
return { ...e[t] || e.slide, name: t };
}, transitionOptions() {
return { animation: this.animation };
} }, observe: Vt(), events: { itemshow({ target: t }) {
j(t, this.clsActive);
}, itemshown({ target: t }) {
j(t, this.clsActivated);
}, itemhidden({ target: t }) {
Z(t, this.clsActive, this.clsActivated);
} } }, Ih = { ...Mn, fade: { show() {
return [{ opacity: 0, zIndex: 0 }, { zIndex: -1 }];
}, percent(t) {
return 1 - m(t, "opacity");
}, translate(t) {
return [{ opacity: 1 - t, zIndex: 0 }, { zIndex: -1 }];
} }, scale: { show() {
return [{ opacity: 0, transform: Ze(1 + 0.5), zIndex: 0 }, { zIndex: -1 }];
}, percent(t) {
return 1 - m(t, "opacity");
}, translate(t) {
return [{ opacity: 1 - t, transform: Ze(1 + 0.5 * t), zIndex: 0 }, { zIndex: -1 }];
} }, pull: { show(t) {
return t < 0 ? [{ transform: rt(30), zIndex: -1 }, { transform: rt(), zIndex: 0 }] : [{ transform: rt(-100), zIndex: 0 }, { transform: rt(), zIndex: -1 }];
}, percent(t, e, i) {
return i < 0 ? 1 - Di(e) : Di(t);
}, translate(t, e) {
return e < 0 ? [{ transform: rt(30 * t), zIndex: -1 }, { transform: rt(-100 * (1 - t)), zIndex: 0 }] : [{ transform: rt(-t * 100), zIndex: 0 }, { transform: rt(30 * (1 - t)), zIndex: -1 }];
} }, push: { show(t) {
return t < 0 ? [{ transform: rt(100), zIndex: 0 }, { transform: rt(), zIndex: -1 }] : [{ transform: rt(-30), zIndex: -1 }, { transform: rt(), zIndex: 0 }];
}, percent(t, e, i) {
return i > 0 ? 1 - Di(e) : Di(t);
}, translate(t, e) {
return e < 0 ? [{ transform: rt(t * 100), zIndex: 0 }, { transform: rt(-30 * (1 - t)), zIndex: -1 }] : [{ transform: rt(-30 * t), zIndex: -1 }, { transform: rt(100 * (1 - t)), zIndex: 0 }];
} } };
function Ze(t) {
return `scale3d(${t}, ${t}, 1)`;
}
var Rr = { ...Mn, fade: { show() {
return [{ opacity: 0 }, { opacity: 1 }];
}, percent(t) {
return 1 - m(t, "opacity");
}, translate(t) {
return [{ opacity: 1 - t }, { opacity: t }];
} }, scale: { show() {
return [{ opacity: 0, transform: Ze(1 - 0.2) }, { opacity: 1, transform: Ze(1) }];
}, percent(t) {
return 1 - m(t, "opacity");
}, translate(t) {
return [{ opacity: 1 - t, transform: Ze(1 - 0.2 * t) }, { opacity: t, transform: Ze(1 - 0.2 + 0.2 * t) }];
} } }, jr = { i18n: { counter: "%s / %s" }, mixins: [Dn, Br], functional: true, props: { counter: Boolean, preload: Number, nav: Boolean, slidenav: Boolean, delayControls: Number, videoAutoplay: Boolean, template: String }, data: () => ({ counter: false, preload: 1, nav: false, slidenav: true, delayControls: 3000, videoAutoplay: false, items: [], cls: "uk-open", clsPage: "uk-lightbox-page", clsFit: "uk-lightbox-items-fit", clsZoom: "uk-lightbox-zoom", attrItem: "uk-lightbox-item", selList: ".uk-lightbox-items", selClose: ".uk-close-large", selNav: ".uk-lightbox-thumbnav, .uk-lightbox-dotnav", selCaption: ".uk-lightbox-caption", selCounter: ".uk-lightbox-counter", pauseOnHover: false, velocity: 2, Animations: Rr, template: '
' }), created() {
let t = H(this.template);
et(t, "template") && (t = Wt(qt(t)));
const e = H(this.selList, t), i = this.$props.nav;
$t(Q(this.selNav, t).filter((r) => !Y(r, `.uk-${i}`)));
for (const [r, l] of this.items.entries())
ot(e, "
"), i === "thumbnav" && xi(Ch(l, this.videoAutoplay), ot(H(this.selNav, t), `
`));
this.slidenav || $t(Q(".uk-lightbox-slidenav", t)), this.counter || $t(H(this.selCounter, t)), j(e, this.clsFit);
const s = H("[uk-close]", t), o = this.t("close");
s && o && (s.dataset.i18n = JSON.stringify({ label: o })), this.$mount(ot(this.container, t));
}, events: [{ name: "click", self: true, filter: ({ bgClose: t }) => t, delegate: ({ selList: t }) => `${t} > *`, handler(t) {
t.defaultPrevented || this.hide();
} }, { name: "click", self: true, delegate: ({ clsZoom: t }) => `.${t}`, handler(t) {
t.defaultPrevented || it(this.list, this.clsFit);
} }, { name: `${Xi} ${It} keydown`, filter: ({ delayControls: t }) => t, handler() {
this.showControls();
} }, { name: "shown", self: true, handler() {
this.showControls();
} }, { name: "hide", self: true, handler() {
this.hideControls(), Z(this.slides, this.clsActive), X.stop(this.slides);
} }, { name: "hidden", self: true, handler() {
this.$destroy(true);
} }, { name: "keyup", el: () => document, handler({ keyCode: t }) {
if (!this.isToggled(this.$el) || !this.draggable)
return;
let e = -1;
t === K.LEFT ? e = "previous" : t === K.RIGHT ? e = "next" : t === K.HOME ? e = 0 : t === K.END && (e = "last"), ~e && this.show(e);
} }, { name: "beforeitemshow", handler(t) {
qt(H(this.selCaption, this.$el), this.getItem().caption || ""), qt(H(this.selCounter, this.$el), this.t("counter", this.index + 1, this.slides.length));
for (let e = -this.preload;e <= this.preload; e++)
this.loadItem(this.index + e);
this.isToggled() || (this.draggable = false, t.preventDefault(), this.toggleElement(this.$el, true, false), this.animation = Rr.scale, Z(t.target, this.clsActive), this.stack.splice(1, 0, this.index));
} }, { name: "itemshown", handler() {
this.draggable = this.$props.draggable;
} }, { name: "itemload", async handler(t, e) {
const { source: i, type: s, attrs: o = {} } = e;
if (this.setItem(e, "
"), !i)
return;
let r;
const l = { allowfullscreen: "", style: "max-width: 100%; box-sizing: border-box;", "uk-responsive": "", "uk-video": `${!!this.videoAutoplay}` };
if (s === "image" || zr(i)) {
const u = oe("img");
$r(u, e.sources), A(u, { src: i, ...qs(e, ["alt", "srcset", "sizes"]), ...o }), z(u, "load", () => this.setItem(e, J(u) || u)), z(u, "error", () => this.setError(e));
} else if (s === "video" || Fr(i)) {
const u = this.videoAutoplay === "inline", f = oe("video", { src: i, playsinline: "", controls: u ? null : "", loop: u ? "" : null, poster: this.videoAutoplay ? null : e.poster, "uk-video": u ? "automute: true" : !!this.videoAutoplay, ...o });
z(f, "loadedmetadata", () => this.setItem(e, f)), z(f, "error", () => this.setError(e));
} else if (s === "iframe" || i.match(/\.(html|php)($|\?)/i))
this.setItem(e, oe("iframe", { src: i, allowfullscreen: "", class: "uk-lightbox-iframe", ...o }));
else if (r = i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))
this.setItem(e, oe("iframe", { src: `https://www.youtube${r[1] || ""}.com/embed/${r[2]}${r[3] ? `?${r[3]}` : ""}`, width: 1920, height: 1080, ...l, ...o }));
else if (r = i.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))
try {
const { height: u, width: f } = await (await fetch(`https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(i)}`, { credentials: "omit" })).json();
this.setItem(e, oe("iframe", { src: `https://player.vimeo.com/video/${r[1]}${r[2] ? `?${r[2]}` : ""}`, width: f, height: u, ...l, ...o }));
} catch {
this.setError(e);
}
} }, { name: "itemloaded", handler() {
this.$emit("resize");
} }], update: { read() {
for (const t of Q(`${this.selList} :not([controls]):is(img,video)`, this.$el))
it(t, this.clsZoom, (t.naturalHeight || t.videoHeight) - this.$el.offsetHeight > Math.max(0, (t.naturalWidth || t.videoWidth) - this.$el.offsetWidth));
}, events: ["resize"] }, methods: { loadItem(t = this.index) {
const e = this.getItem(t);
this.getSlide(e).childElementCount || C(this.$el, "itemload", [e]);
}, getItem(t = this.index) {
return this.items[yt(t, this.slides)];
}, setItem(t, e) {
C(this.$el, "itemloaded", [this, qt(this.getSlide(t), e)]);
}, getSlide(t) {
return this.slides[this.items.indexOf(t)];
}, setError(t) {
this.setItem(t, '
');
}, showControls() {
clearTimeout(this.controlsTimer), this.controlsTimer = this.delayControls && setTimeout(this.hideControls, this.delayControls), j(this.$el, "uk-active", "uk-transition-active");
}, hideControls() {
Z(this.$el, "uk-active", "uk-transition-active");
} } };
function oe(t, e) {
const i = Wt(`<${t}>`);
return A(i, e), i;
}
function Ch(t, e) {
const i = t.poster || t.thumb && (t.type === "image" || zr(t.thumb)) ? oe("img", { src: t.poster || t.thumb, alt: "" }) : t.thumb && (t.type === "video" || Fr(t.thumb)) ? oe("video", { src: t.thumb, loop: "", playsinline: "", "uk-video": `autoplay: ${!!e}; automute: true` }) : oe("canvas");
return t.thumbRatio && (i.style.aspectRatio = t.thumbRatio), i;
}
function zr(t) {
return t == null ? undefined : t.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i);
}
function Fr(t) {
return t == null ? undefined : t.match(/\.(mp4|webm|ogv)($|\?)/i);
}
const Th = ".uk-disabled *, .uk-disabled, [disabled]";
var Ph = { install: Oh, props: { toggle: String }, data: { toggle: "a" }, computed: { toggles: ({ toggle: t }, e) => Q(t, e) }, watch: { toggles(t) {
this.hide();
for (const e of t)
et(e, "a") && A(e, "role", "button");
} }, disconnected() {
this.hide();
}, events: { name: "click", delegate: ({ toggle: t }) => t, handler(t) {
t.defaultPrevented || (t.preventDefault(), Y(t.current, Th) || this.show(t.current));
} }, methods: { show(t) {
let e = this.toggles.map(Ur);
if (this.nav === "thumbnav" && Dh.call(this, this.toggles, e), e = Ao(e, "source"), Be(t)) {
const { source: i } = Ur(t);
t = E(e, ({ source: s }) => i === s);
}
return this.panel = this.panel || this.$create("lightboxPanel", { ...this.$props, items: e }), z(this.panel.$el, "hidden", () => this.panel = null), this.panel.show(t);
}, hide() {
var t;
return (t = this.panel) == null ? undefined : t.hide();
} } };
function Oh(t, e) {
t.lightboxPanel || t.component("lightboxPanel", jr), V(e.props, t.component("lightboxPanel").options.props);
}
function Dh(t, e) {
for (const [i, s] of Object.entries(t)) {
if (e[i].thumb)
continue;
const o = qe(s).reverse().concat(s).find((l) => this.$el.contains(l) && (l === s || Q(this.toggle, l).length === 1));
if (!o)
continue;
const r = H("img,video", o);
r && (e[i].thumb = r.currentSrc || r.poster || r.src, e[i].thumbRatio = (r.naturalWidth || r.videoWidth) / (r.naturalHeight || r.videoHeight));
}
}
function Ur(t) {
const e = {};
for (const i of t.getAttributeNames()) {
const s = i.replace(/^data-/, "");
e[s === "href" ? "source" : s] = t.getAttribute(i);
}
return e.attrs = Je(e.attrs), e;
}
var Mh = { mixins: [Oi], functional: true, args: ["message", "status"], data: { message: "", status: "", timeout: 5000, group: "", pos: "top-center", clsContainer: "uk-notification", clsClose: "uk-notification-close", clsMsg: "uk-notification-message" }, install: Hh, computed: { marginProp: ({ pos: t }) => `margin-${t.match(/[a-z]+(?=-)/)[0]}`, startProps() {
return { opacity: 0, [this.marginProp]: -this.$el.offsetHeight };
} }, created() {
const t = `${this.clsContainer}-${this.pos}`, e = `data-${this.clsContainer}-container`, i = H(`.${t}[${e}]`, this.container) || ot(this.container, `
`);
this.$mount(ot(i, `
`));
}, async connected() {
const t = R(m(this.$el, this.marginProp));
await X.start(m(this.$el, this.startProps), { opacity: 1, [this.marginProp]: t }), this.timeout && (this.timer = setTimeout(this.close, this.timeout));
}, events: { click(t) {
t.target.closest('a[href="#"],a[href=""]') && t.preventDefault(), this.close();
}, [we]() {
this.timer && clearTimeout(this.timer);
}, [Ue]() {
this.timeout && (this.timer = setTimeout(this.close, this.timeout));
} }, methods: { async close(t) {
const e = (i) => {
const s = J(i);
C(i, "close", [this]), $t(i), s != null && s.hasChildNodes() || $t(s);
};
this.timer && clearTimeout(this.timer), t || await X.start(this.$el, this.startProps), e(this.$el);
} } };
function Hh(t) {
t.notification.closeAll = function(e, i) {
se(document.body, (s) => {
const o = t.getComponent(s, "notification");
o && (!e || e === o.group) && o.close(i);
});
};
}
var $s = { props: { media: Boolean }, data: { media: false }, connected() {
const t = Nh(this.media, this.$el);
if (this.matchMedia = true, t) {
this.mediaObj = window.matchMedia(t);
const e = () => {
this.matchMedia = this.mediaObj.matches, C(this.$el, Ve("mediachange", false, true, [this.mediaObj]));
};
this.offMediaObj = z(this.mediaObj, "change", () => {
e(), this.$emit("resize");
}), e();
}
}, disconnected() {
var t;
(t = this.offMediaObj) == null || t.call(this);
} };
function Nh(t, e) {
if (nt(t)) {
if (y(t, "@"))
t = R(m(e, `--uk-breakpoint-${t.slice(1)}`));
else if (isNaN(t))
return t;
}
return t && jt(t) ? `(min-width: ${t}px)` : "";
}
function qr(t) {
return ut(t) ? Math.ceil(Math.max(0, ...Q("[stroke]", t).map((e) => {
var i;
return ((i = e.getTotalLength) == null ? undefined : i.call(e)) || 0;
}))) : 0;
}
const bs = { x: ws, y: ws, rotate: ws, scale: ws, color: Rn, backgroundColor: Rn, borderColor: Rn, blur: Ce, hue: Ce, fopacity: Ce, grayscale: Ce, invert: Ce, saturate: Ce, sepia: Ce, opacity: Bh, stroke: Rh, bgx: Yr, bgy: Yr }, { keys: Wr } = Object;
var Vr = { mixins: [$s], props: Zr(Wr(bs), "list"), data: Zr(Wr(bs), undefined), computed: { props(t, e) {
const i = {};
for (const o in t)
o in bs && !pt(t[o]) && (i[o] = t[o].slice());
const s = {};
for (const o in i)
s[o] = bs[o](o, e, i[o], i);
return s;
} }, events: { load() {
this.$emit();
} }, methods: { reset() {
for (const t in this.getCss(0))
m(this.$el, t, "");
}, getCss(t) {
const e = {};
for (const i in this.props)
this.props[i](e, mt(t));
return e.willChange = Object.keys(e).map(es).join(","), e;
} } };
function ws(t, e, i) {
let s = ks(i) || { x: "px", y: "px", rotate: "deg" }[t] || "", o;
return t === "x" || t === "y" ? (t = `translate${k(t)}`, o = (r) => R(R(r).toFixed(s === "px" ? 0 : 6))) : t === "scale" && (s = "", o = (r) => {
var l;
return ks([r]) ? ft(r, "width", e, true) / e[`offset${(l = r.endsWith) != null && l.call(r, "vh") ? "Height" : "Width"}`] : R(r);
}), i.length === 1 && i.unshift(t === "scale" ? 1 : 0), i = Qe(i, o), (r, l) => {
r.transform = `${r.transform || ""} ${t}(${Ni(i, l)}${s})`;
};
}
function Rn(t, e, i) {
return i.length === 1 && i.unshift(Li(e, t, "")), i = Qe(i, (s) => Lh(e, s)), (s, o) => {
const [r, l, u] = Xr(i, o), f = r.map((v, $) => (v += u * (l[$] - v), $ === 3 ? R(v) : parseInt(v, 10))).join(",");
s[t] = `rgba(${f})`;
};
}
function Lh(t, e) {
return Li(t, "color", e).split(/[(),]/g).slice(1, -1).concat(1).slice(0, 4).map(R);
}
function Ce(t, e, i) {
i.length === 1 && i.unshift(0);
const s = ks(i) || { blur: "px", hue: "deg" }[t] || "%";
return t = { fopacity: "opacity", hue: "hue-rotate" }[t] || t, i = Qe(i), (o, r) => {
const l = Ni(i, r);
o.filter = `${o.filter || ""} ${t}(${l + s})`;
};
}
function Bh(t, e, i) {
return i.length === 1 && i.unshift(Li(e, t, "")), i = Qe(i), (s, o) => {
s[t] = Ni(i, o);
};
}
function Rh(t, e, i) {
i.length === 1 && i.unshift(0);
const s = ks(i), o = qr(e);
return i = Qe(i.reverse(), (r) => (r = R(r), s === "%" ? r * o / 100 : r)), i.some(([r]) => r) ? (m(e, "strokeDasharray", o), (r, l) => {
r.strokeDashoffset = Ni(i, l);
}) : ct;
}
function Yr(t, e, i, s) {
i.length === 1 && i.unshift(0);
const o = t === "bgy" ? "height" : "width";
s[t] = Qe(i, (u) => ft(u, o, e));
const r = ["bgx", "bgy"].filter((u) => (u in s));
if (r.length === 2 && t === "bgx")
return ct;
if (Li(e, "backgroundSize", "") === "cover")
return jh(t, e, i, s);
const l = {};
for (const u of r)
l[u] = Kr(e, u);
return Jr(r, l, s);
}
function jh(t, e, i, s) {
const o = zh(e);
if (!o.width)
return ct;
const r = { width: e.offsetWidth, height: e.offsetHeight }, l = ["bgx", "bgy"].filter(($) => ($ in s)), u = {};
for (const $ of l) {
const b = s[$].map(([q]) => q), x = Math.min(...b), I = Math.max(...b), O = b.indexOf(x) < b.indexOf(I), B = I - x;
u[$] = `${(O ? -B : 0) - (O ? x : I)}px`, r[$ === "bgy" ? "height" : "width"] += B;
}
const f = Ys.cover(o, r);
for (const $ of l) {
const b = $ === "bgy" ? "height" : "width", x = f[b] - r[b];
u[$] = `max(${Kr(e, $)},-${x}px) + ${u[$]}`;
}
const v = Jr(l, u, s);
return ($, b) => {
v($, b), $.backgroundSize = `${f.width}px ${f.height}px`, $.backgroundRepeat = "no-repeat";
};
}
function Kr(t, e) {
return Li(t, `background-position-${e.slice(-1)}`, "");
}
function Jr(t, e, i) {
return function(s, o) {
for (const r of t) {
const l = Ni(i[r], o);
s[`background-position-${r.slice(-1)}`] = `calc(${e[r]} + ${l}px)`;
}
};
}
const Gr = {}, ys = {};
function zh(t) {
const e = m(t, "backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/, "$1");
if (ys[e])
return ys[e];
const i = new Image;
return e && (i.src = e, !i.naturalWidth && !Gr[e]) ? (st(i, "error load", () => {
ys[e] = jn(i), C(t, Ve("load", false));
}), Gr[e] = true, jn(i)) : ys[e] = jn(i);
}
function jn(t) {
return { width: t.naturalWidth, height: t.naturalHeight };
}
function Qe(t, e = R) {
const i = [], { length: s } = t;
let o = 0;
for (let r = 0;r < s; r++) {
let [l, u] = nt(t[r]) ? t[r].trim().split(/ (?![^(]*\))/) : [t[r]];
if (l = e(l), u = u ? R(u) / 100 : null, r === 0 ? u === null ? u = 0 : u && i.push([l, 0]) : r === s - 1 && (u === null ? u = 1 : u !== 1 && (i.push([l, u]), u = 1)), i.push([l, u]), u === null)
o++;
else if (o) {
const f = i[r - o - 1][1], v = (u - f) / (o + 1);
for (let $ = o;$ > 0; $--)
i[r - $][1] = f + v * (o - $ + 1);
o = 0;
}
}
return i;
}
function Xr(t, e) {
const i = E(t.slice(1), ([, s]) => e <= s) + 1;
return [t[i - 1][0], t[i][0], (e - t[i - 1][1]) / (t[i][1] - t[i - 1][1])];
}
function Ni(t, e) {
const [i, s, o] = Xr(t, e);
return i + Math.abs(i - s) * o * (i < s ? 1 : -1);
}
const Fh = /^-?\d+(?:\.\d+)?(\S+)?/;
function ks(t, e) {
var i;
for (const s of t) {
const o = (i = s.match) == null ? undefined : i.call(s, Fh);
if (o)
return o[1];
}
return e;
}
function Li(t, e, i) {
const s = t.style[e], o = m(m(t, e, i), e);
return t.style[e] = s, o;
}
function Zr(t, e) {
return t.reduce((i, s) => (i[s] = e, i), {});
}
function Qr(t, e) {
return e >= 0 ? Math.pow(t, e + 1) : 1 - Math.pow(1 - t, 1 - e);
}
var Uh = { mixins: [Vr], props: { target: String, viewport: Number, easing: Number, start: String, end: String }, data: { target: false, viewport: 1, easing: 1, start: 0, end: 0 }, computed: { target: ({ target: t }, e) => ta(t && Ct(t, e) || e), start({ start: t }) {
return ft(t, "height", this.target, true);
}, end({ end: t, viewport: e }) {
return ft(t || (e = (1 - e) * 100) && `${e}vh+${e}%`, "height", this.target, true);
} }, observe: [rr(), Ti({ target: ({ target: t }) => t }), Vt({ target: ({ $el: t, target: e }) => [t, e, xe(e, true)] })], update: { read({ percent: t }, e) {
if (e.has("scroll") || (t = false), !ut(this.$el))
return false;
if (!this.matchMedia)
return;
const i = t;
return t = Qr(ds(this.target, this.start, this.end), this.easing), { percent: t, style: i === t ? false : this.getCss(t) };
}, write({ style: t }) {
if (!this.matchMedia) {
this.reset();
return;
}
t && m(this.$el, t);
}, events: ["scroll", "resize"] } };
function ta(t) {
return t ? "offsetTop" in t ? t : ta(J(t)) : document.documentElement;
}
var ea = { props: { parallax: Boolean, parallaxTarget: Boolean, parallaxStart: String, parallaxEnd: String, parallaxEasing: Number }, data: { parallax: false, parallaxTarget: false, parallaxStart: 0, parallaxEnd: 0, parallaxEasing: 0 }, observe: [Vt({ target: ({ $el: t, parallaxTarget: e }) => [t, e], filter: ({ parallax: t }) => t }), Ti({ filter: ({ parallax: t }) => t })], computed: { parallaxTarget({ parallaxTarget: t }, e) {
return t && Ct(t, e) || this.list;
} }, update: { read() {
if (!this.parallax)
return false;
const t = this.parallaxTarget;
if (!t)
return false;
const e = ft(this.parallaxStart, "height", t, true), i = ft(this.parallaxEnd, "height", t, true), s = Qr(ds(t, e, i), this.parallaxEasing);
return { parallax: this.getIndexAt(s) };
}, write({ parallax: t }) {
const [e, i] = t, s = this.getValidIndex(e + Math.ceil(i)), o = this.slides[e], r = this.slides[s], { triggerShow: l, triggerShown: u, triggerHide: f, triggerHidden: v } = qh(this);
if (~this.prevIndex)
for (const b of new Set([this.index, this.prevIndex]))
w([s, e], b) || (f(this.slides[b]), v(this.slides[b]));
const $ = this.prevIndex !== e || this.index !== s;
this.dir = 1, this.prevIndex = e, this.index = s, o !== r && f(o), l(r), $ && u(o), this._translate(o === r ? 1 : i, o, r);
}, events: ["scroll", "resize"] }, methods: { getIndexAt(t) {
const e = t * (this.length - 1);
return [Math.floor(e), e % 1];
} } };
function qh(t) {
const { clsSlideActive: e, clsEnter: i, clsLeave: s } = t;
return { triggerShow: o, triggerShown: r, triggerHide: l, triggerHidden: u };
function o(f) {
L(f, s) && (l(f), u(f)), L(f, e) || (C(f, "beforeitemshow", [t]), C(f, "itemshow", [t]));
}
function r(f) {
L(f, i) && C(f, "itemshown", [t]);
}
function l(f) {
L(f, e) || o(f), L(f, i) && r(f), L(f, s) || (C(f, "beforeitemhide", [t]), C(f, "itemhide", [t]));
}
function u(f) {
L(f, s) && C(f, "itemhidden", [t]);
}
}
var ia = { update: { write() {
if (this.stack.length || this.dragging || this.parallax)
return;
const t = this.getValidIndex();
!~this.prevIndex || this.index !== t ? this.show(t) : this._translate(1);
}, events: ["resize"] } }, sa = { observe: ps({ target: ({ slides: t }) => t, targets: (t) => t.getAdjacentSlides() }), methods: { getAdjacentSlides() {
return [1, -1].map((t) => this.slides[this.getIndex(this.index + t)]);
} } };
function Wh(t, e, i, { center: s, easing: o, list: r }) {
const l = t ? Bi(t, r, s) : Bi(e, r, s) + T(e).width * i, u = e ? Bi(e, r, s) : l + T(t).width * i * (ht ? -1 : 1), { promise: f, resolve: v } = kr();
return { dir: i, show($, b = 0, x) {
const I = x ? "linear" : o;
return $ -= Math.round($ * mt(b, -1, 1)), m(r, "transitionProperty", "none"), this.translate(b), m(r, "transitionProperty", ""), b = t ? b : mt(b, 0, 1), Ae(this.getItemIn(), "itemin", { percent: b, duration: $, timing: I, dir: i }), t && Ae(this.getItemIn(true), "itemout", { percent: 1 - b, duration: $, timing: I, dir: i }), X.start(r, { transform: rt(-u * (ht ? -1 : 1), "px") }, $, I).then(v, ct), f;
}, cancel() {
return X.cancel(r);
}, reset() {
m(r, "transform", "");
}, async forward($, b = this.percent()) {
return await this.cancel(), this.show($, b, true);
}, translate($) {
if ($ === this.percent())
return;
const b = this.getDistance() * i * (ht ? -1 : 1);
m(r, "transform", rt(mt(-u + (b - b * $), -ti(r), T(r).width) * (ht ? -1 : 1), "px"));
const x = this.getActives(), I = this.getItemIn(), O = this.getItemIn(true);
$ = t ? mt($, -1, 1) : 0;
for (const B of G(r)) {
const q = w(x, B), _t = B === I, Kt = B === O, re = _t || !Kt && (q || i * (ht ? -1 : 1) === -1 ^ xs(B, r) > xs(t || e));
Ae(B, `itemtranslate${re ? "in" : "out"}`, { dir: i, percent: Kt ? 1 - $ : _t ? $ : q ? 1 : 0 });
}
}, percent() {
return Math.abs((new DOMMatrix(m(r, "transform")).m41 * (ht ? -1 : 1) + l) / (u - l));
}, getDistance() {
return Math.abs(u - l);
}, getItemIn($ = false) {
let b = this.getActives(), x = oa(r, Bi(e || t, r, s));
if ($) {
const I = b;
b = x, x = I;
}
return x[E(x, (I) => !w(b, I))];
}, getActives() {
return oa(r, Bi(t || e, r, s));
} };
}
function Bi(t, e, i) {
const s = xs(t, e);
return i ? s - Vh(t, e) : Math.min(s, na(e));
}
function na(t) {
return Math.max(0, ti(t) - T(t).width);
}
function ti(t, e) {
return ve(G(t).slice(0, e), (i) => T(i).width);
}
function Vh(t, e) {
return T(e).width / 2 - T(t).width / 2;
}
function xs(t, e) {
return t && (an(t).left + (ht ? T(t).width - T(e).width : 0)) * (ht ? -1 : 1) || 0;
}
function oa(t, e) {
e -= 1;
const i = T(t).width, s = e + i + 2;
return G(t).filter((o) => {
const r = xs(o, t), l = r + Math.min(T(o).width, i);
return r >= e && l <= s;
});
}
var Yh = { mixins: [xt, Nr, ia, ea, sa], props: { center: Boolean, sets: Boolean, active: String }, data: { center: false, sets: false, attrItem: "uk-slider-item", selList: ".uk-slider-items", selNav: ".uk-slider-nav", clsContainer: "uk-slider-container", active: "all", Transitioner: Wh }, computed: { finite({ finite: t }) {
return t || Kh(this.list, this.center);
}, maxIndex() {
if (!this.finite || this.center && !this.sets)
return this.length - 1;
if (this.center)
return me(this.sets);
let t = 0;
const e = na(this.list), i = E(this.slides, (s) => {
if (t >= e - 0.005)
return true;
t += T(s).width;
});
return ~i ? i : this.length - 1;
}, sets({ sets: t }) {
if (!t || this.parallax)
return;
let e = 0;
const i = [], s = T(this.list).width;
for (let o = 0;o < this.length; o++) {
const r = T(this.slides[o]).width;
e + r > s && (e = 0), this.center ? e < s / 2 && e + r + T(this.slides[yt(o + 1, this.slides)]).width / 2 > s / 2 && (i.push(o), e = s / 2 - r / 2) : e === 0 && i.push(Math.min(o, this.maxIndex)), e += r;
}
if (i.length)
return i;
}, transitionOptions() {
return { center: this.center, list: this.list };
}, slides() {
return G(this.list).filter(ut);
} }, connected() {
it(this.$el, this.clsContainer, !H(`.${this.clsContainer}`, this.$el));
}, observe: Vt({ target: ({ slides: t, $el: e }) => [e, ...t] }), update: { write() {
for (const t of this.navItems) {
const e = zt(vt(t, this.attrItem));
e !== false && (t.hidden = !this.maxIndex || e > this.maxIndex || this.sets && !w(this.sets, e));
}
this.reorder(), this.parallax || this._translate(1), this.updateActiveClasses();
}, events: ["resize"] }, events: { beforeitemshow(t) {
!this.dragging && this.sets && this.stack.length < 2 && !w(this.sets, this.index) && (this.index = this.getValidIndex());
const e = Math.abs(this.index - this.prevIndex + (this.dir > 0 && this.index < this.prevIndex || this.dir < 0 && this.index > this.prevIndex ? (this.maxIndex + 1) * this.dir : 0));
if (!this.dragging && e > 1) {
for (let o = 0;o < e; o++)
this.stack.splice(1, 0, this.dir > 0 ? "next" : "previous");
t.preventDefault();
return;
}
const i = this.dir < 0 || !this.slides[this.prevIndex] ? this.index : this.prevIndex, s = ti(this.list) / this.length;
this.duration = Lr(s / this.velocity) * (T(this.slides[i]).width / s), this.reorder();
}, itemshow() {
~this.prevIndex && j(this._getTransitioner().getItemIn(), this.clsActive), this.updateActiveClasses(this.prevIndex);
}, itemshown() {
this.updateActiveClasses();
} }, methods: { reorder() {
if (this.finite) {
m(this.slides, "order", "");
return;
}
const t = this.dir > 0 && this.slides[this.prevIndex] ? this.prevIndex : this.index;
if (this.slides.forEach((o, r) => m(o, "order", this.dir > 0 && r < t ? 1 : this.dir < 0 && r >= this.index ? -1 : "")), !this.center || !this.length)
return;
const e = this.slides[t];
let i = T(this.list).width / 2 - T(e).width / 2, s = 0;
for (;i > 0; ) {
const o = this.getIndex(--s + t, t), r = this.slides[o];
m(r, "order", o > t ? -2 : -1), i -= T(r).width;
}
}, updateActiveClasses(t = this.index) {
let e = this._getTransitioner(t).getActives();
this.active !== "all" && (e = [this.slides[this.getValidIndex(t)]]);
const i = [this.clsActive, !this.sets || w(this.sets, R(this.index)) ? this.clsActivated : ""];
for (const s of this.slides) {
const o = w(e, s);
it(s, i, o), A(s, "aria-hidden", !o);
for (const r of Q($i, s))
a(r, "_tabindex") || (r._tabindex = A(r, "tabindex")), A(r, "tabindex", o ? r._tabindex : -1);
}
}, getValidIndex(t = this.index, e = this.prevIndex) {
if (t = this.getIndex(t, e), !this.sets)
return t;
let i;
do {
if (w(this.sets, t))
return t;
i = t, t = this.getIndex(t + this.dir, e);
} while (t !== i);
return t;
}, getAdjacentSlides() {
const { width: t } = T(this.list), e = -t, i = t * 2, s = T(this.slides[this.index]).width, o = this.center ? t / 2 - s / 2 : 0, r = new Set;
for (const l of [-1, 1]) {
let u = o + (l > 0 ? s : 0), f = 0;
do {
const v = this.slides[this.getIndex(this.index + l + f++ * l)];
u += T(v).width * l, r.add(v);
} while (this.length > f && u > e && u < i);
}
return Array.from(r);
}, getIndexAt(t) {
let e = -1;
const i = this.center ? ti(this.list) - (T(this.slides[0]).width / 2 + T(me(this.slides)).width / 2) : ti(this.list, this.maxIndex);
let s = t * i, o = 0;
do {
const r = T(this.slides[++e]).width, l = this.center ? r / 2 + T(this.slides[e + 1]).width / 2 : r;
o = s / l % 1, s -= l;
} while (s >= 0 && e < this.maxIndex);
return [e, o];
} } };
function Kh(t, e) {
if (!t || t.length < 2)
return true;
const { width: i } = T(t);
if (!e)
return Math.ceil(ti(t)) < Math.trunc(i + Jh(t));
const s = G(t), o = Math.trunc(i / 2);
for (const r in s) {
const l = s[r], u = T(l).width, f = new Set([l]);
let v = 0;
for (const $ of [-1, 1]) {
let b = u / 2, x = 0;
for (;b < o; ) {
const I = s[yt(+r + $ + x++ * $, s)];
if (f.has(I))
return true;
b += T(I).width, f.add(I);
}
v = Math.max(v, u / 2 + T(s[yt(+r + $, s)]).width / 2 - (b - o));
}
if (Math.trunc(v) > ve(s.filter(($) => !f.has($)), ($) => T($).width))
return true;
}
return false;
}
function Jh(t) {
return Math.max(0, ...G(t).map((e) => T(e).width));
}
var ra = { mixins: [Vr], beforeConnect() {
this.item = this.$el.closest(`.${this.$options.id.replace("parallax", "items")} > *`);
}, disconnected() {
this.item = null;
}, events: [{ name: "itemin itemout", self: true, el: ({ item: t }) => t, handler({ type: t, detail: { percent: e, duration: i, timing: s, dir: o } }) {
ne.read(() => {
if (!this.matchMedia)
return;
const r = this.getCss(la(t, o, e)), l = this.getCss(aa(t) ? 0.5 : o > 0 ? 1 : 0);
ne.write(() => {
m(this.$el, r), X.start(this.$el, l, i, s).catch(ct);
});
});
} }, { name: "transitioncanceled transitionend", self: true, el: ({ item: t }) => t, handler() {
X.cancel(this.$el);
} }, { name: "itemtranslatein itemtranslateout", self: true, el: ({ item: t }) => t, handler({ type: t, detail: { percent: e, dir: i } }) {
ne.read(() => {
if (!this.matchMedia) {
this.reset();
return;
}
const s = this.getCss(la(t, i, e));
ne.write(() => m(this.$el, s));
});
} }] };
function aa(t) {
return _(t, "in");
}
function la(t, e, i) {
return i /= 2, aa(t) ^ e < 0 ? i : 1 - i;
}
var Gh = { mixins: [xt, Br, ia, ea, sa], props: { ratio: String, minHeight: String, maxHeight: String }, data: { ratio: "16:9", minHeight: undefined, maxHeight: undefined, selList: ".uk-slideshow-items", attrItem: "uk-slideshow-item", selNav: ".uk-slideshow-nav", Animations: Ih }, watch: { list(t) {
m(t, { aspectRatio: this.ratio ? this.ratio.replace(":", "/") : undefined, minHeight: this.minHeight, maxHeight: this.maxHeight, width: "100%" });
} }, methods: { getAdjacentSlides() {
return [1, -1].map((t) => this.slides[this.getIndex(this.index + t)]);
} } }, Xh = { mixins: [xt, pr], props: { group: String, threshold: Number, clsItem: String, clsPlaceholder: String, clsDrag: String, clsDragState: String, clsBase: String, clsNoDrag: String, clsEmpty: String, clsCustom: String, handle: String }, data: { group: false, threshold: 5, clsItem: "uk-sortable-item", clsPlaceholder: "uk-sortable-placeholder", clsDrag: "uk-sortable-drag", clsDragState: "uk-drag", clsBase: "uk-sortable", clsNoDrag: "uk-sortable-nodrag", clsEmpty: "uk-sortable-empty", clsCustom: "", handle: false, pos: {} }, events: { name: It, passive: false, handler(t) {
this.init(t);
} }, computed: { target: (t, e) => (e.tBodies || [e])[0], items() {
return G(this.target);
}, isEmpty() {
return !this.items.length;
}, handles({ handle: t }, e) {
return t ? Q(t, e) : this.items;
} }, watch: { isEmpty(t) {
it(this.target, this.clsEmpty, t);
}, handles(t, e) {
m(e, { touchAction: "", userSelect: "" }), m(t, { touchAction: "none", userSelect: "none" });
} }, update: { write(t) {
if (!this.drag || !J(this.placeholder))
return;
const { pos: { x: e, y: i }, origin: { offsetTop: s, offsetLeft: o }, placeholder: r } = this;
m(this.drag, { top: i - s, left: e - o });
const l = this.getSortable(document.elementFromPoint(e, i));
if (!l)
return;
const { items: u } = l;
if (u.some(X.inProgress))
return;
const f = eu(u, { x: e, y: i });
if (u.length && (!f || f === r))
return;
const v = this.getSortable(r), $ = iu(l.target, f, r, e, i, l === v && t.moved !== f);
$ !== false && ($ && r === $ || (l !== v ? (v.remove(r), t.moved = f) : delete t.moved, l.insert(r, $), this.touched.add(l)));
}, events: ["move"] }, methods: { init(t) {
const { target: e, button: i, defaultPrevented: s } = t, [o] = this.items.filter((r) => r.contains(e));
!o || s || i > 0 || Qi(e) || e.closest(`.${this.clsNoDrag}`) || this.handle && !e.closest(this.handle) || (t.preventDefault(), this.pos = Ut(t), this.touched = new Set([this]), this.placeholder = o, this.origin = { target: e, index: Ft(o), ...this.pos }, z(document, Xi, this.move), z(document, ee, this.end), this.threshold || this.start(t));
}, start(t) {
this.drag = tu(this.$container, this.placeholder);
const { left: e, top: i } = T(this.placeholder);
V(this.origin, { offsetLeft: this.pos.x - e, offsetTop: this.pos.y - i }), j(this.drag, this.clsDrag, this.clsCustom), j(this.placeholder, this.clsPlaceholder), j(this.items, this.clsItem), j(document.documentElement, this.clsDragState), C(this.$el, "start", [this, this.placeholder]), Zh(this.pos), this.move(t);
}, move: nu(function(t) {
V(this.pos, Ut(t)), !this.drag && (Math.abs(this.pos.x - this.origin.x) > this.threshold || Math.abs(this.pos.y - this.origin.y) > this.threshold) && this.start(t), this.$emit("move");
}), end() {
if (ye(document, Xi, this.move), ye(document, ee, this.end), !this.drag)
return;
Qh();
const t = this.getSortable(this.placeholder);
this === t ? this.origin.index !== Ft(this.placeholder) && C(this.$el, "moved", [this, this.placeholder]) : (C(t.$el, "added", [t, this.placeholder]), C(this.$el, "removed", [this, this.placeholder])), C(this.$el, "stop", [this, this.placeholder]), $t(this.drag), this.drag = null;
for (const { clsPlaceholder: e, clsItem: i } of this.touched)
for (const s of this.touched)
Z(s.items, e, i);
this.touched = null, Z(document.documentElement, this.clsDragState);
}, insert(t, e) {
j(this.items, this.clsItem), e && e.previousElementSibling !== t ? this.animate(() => ss(e, t)) : !e && this.target.lastElementChild !== t && this.animate(() => ot(this.target, t));
}, remove(t) {
this.target.contains(t) && this.animate(() => $t(t));
}, getSortable(t) {
do {
const e = this.$getComponent(t, "sortable");
if (e && (e === this || this.group !== false && e.group === this.group))
return e;
} while (t = J(t));
} } };
let ca;
function Zh(t) {
let e = Date.now();
ca = setInterval(() => {
let { x: i, y: s } = t;
s += document.scrollingElement.scrollTop;
const o = (Date.now() - e) * 0.3;
e = Date.now(), Ke(document.elementFromPoint(i, t.y)).reverse().some((r) => {
let { scrollTop: l, scrollHeight: u } = r;
const { top: f, bottom: v, height: $ } = Tt(r);
if (f < s && f + 35 > s)
l -= o;
else if (v > s && v - 35 < s)
l += o;
else
return;
if (l > 0 && l < u - $)
return r.scrollTop = l, true;
});
}, 15);
}
function Qh() {
clearInterval(ca);
}
function tu(t, e) {
let i;
if (et(e, "li", "tr")) {
i = H("
"), ot(i, e.cloneNode(true).children);
for (const s of e.getAttributeNames())
A(i, s, e.getAttribute(s));
} else
i = e.cloneNode(true);
return ot(t, i), m(i, "margin", "0", "important"), m(i, { boxSizing: "border-box", width: e.offsetWidth, height: e.offsetHeight, padding: m(e, "padding") }), bt(i.firstElementChild, bt(e.firstElementChild)), i;
}
function eu(t, e) {
return t[E(t, (i) => Gi(e, T(i)))];
}
function iu(t, e, i, s, o, r) {
if (!G(t).length)
return;
const l = T(e);
if (!r)
return su(t, i) || o < l.top + l.height / 2 ? e : e.nextElementSibling;
const u = T(i), f = ha([l.top, l.bottom], [u.top, u.bottom]), [v, $, b, x] = f ? [s, "width", "left", "right"] : [o, "height", "top", "bottom"], I = u[$] < l[$] ? l[$] - u[$] : 0;
return u[b] < l[b] ? I && v < l[b] + I ? false : e.nextElementSibling : I && v > l[x] - I ? false : e;
}
function su(t, e) {
const i = G(t).length === 1;
i && ot(t, e);
const s = G(t), o = s.some((r, l) => {
const u = T(r);
return s.slice(l + 1).some((f) => {
const v = T(f);
return !ha([u.left, u.right], [v.left, v.right]);
});
});
return i && $t(e), o;
}
function ha(t, e) {
return t[1] > e[0] && e[1] > t[0];
}
function nu(t) {
let e;
return function(...i) {
e || (e = true, t.call(this, ...i), requestAnimationFrame(() => e = false));
};
}
var ou = { mixins: [Oi, _e, wr], data: { pos: "top", animation: ["uk-anmt-scale-up"], duration: 100, cls: "uk-active" }, connected() {
ru(this.$el);
}, disconnected() {
this.hide();
}, methods: { show() {
if (this.isToggled(this.tooltip || null))
return;
const { delay: t = 0, title: e } = lu(this.$options);
if (!e)
return;
const i = A(this.$el, "title"), s = z(this.$el, ["blur", Ue], (r) => !Mt(r) && this.hide());
this.reset = () => {
A(this.$el, { title: i, "aria-describedby": null }), s();
};
const o = Ie(this);
A(this.$el, { title: null, "aria-describedby": o }), clearTimeout(this.showTimer), this.showTimer = setTimeout(() => this._show(e, o), t);
}, async hide() {
var t;
Y(this.$el, "input:focus") || (clearTimeout(this.showTimer), this.isToggled(this.tooltip || null) && await this.toggleElement(this.tooltip, false, false), (t = this.reset) == null || t.call(this), $t(this.tooltip), this.tooltip = null);
}, async _show(t, e) {
this.tooltip = ot(this.container, `
`), z(this.tooltip, "toggled", (i, s) => {
if (!s)
return;
const o = () => this.positionAt(this.tooltip, this.$el);
o();
const [r, l] = au(this.tooltip, this.$el, this.pos);
this.origin = this.axis === "y" ? `${as(r)}-${l}` : `${l}-${as(r)}`;
const u = [st(document, `keydown ${It}`, this.hide, false, (f) => f.type === It && !this.$el.contains(f.target) || f.type === "keydown" && f.keyCode === K.ESC), z([document, ...Se(this.$el)], "scroll", o, { passive: true })];
st(this.tooltip, "hide", () => u.forEach((f) => f()), { self: true });
}), await this.toggleElement(this.tooltip, true) || this.hide();
} }, events: { [`focus ${we} ${It}`](t) {
(!Mt(t) || t.type === It) && document.readyState !== "loading" && this.show();
} } };
function ru(t) {
ts(t) || A(t, "tabindex", "0");
}
function au(t, e, [i, s]) {
const o = U(t), r = U(e), l = [["left", "right"], ["top", "bottom"]];
for (const f of l) {
if (o[f[0]] >= r[f[1]]) {
i = f[1];
break;
}
if (o[f[1]] <= r[f[0]]) {
i = f[0];
break;
}
}
return s = (w(l[0], i) ? l[1] : l[0]).find((f) => o[f] === r[f]) || "center", [i, s];
}
function lu(t) {
const { el: e, id: i, data: s } = t;
return ["delay", "title"].reduce((o, r) => ({ [r]: vt(e, r), ...o }), { ...Je(vt(e, i), ["title"]), ...s });
}
var cu = Object.freeze({ __proto__: null, Filter: Hc, Lightbox: Ph, LightboxPanel: jr, Notification: Mh, Parallax: Uh, Slider: Yh, SliderParallax: ra, Slideshow: Gh, SlideshowParallax: ra, Sortable: Xh, Tooltip: ou });
function hu(t) {
be && window.MutationObserver && (document.body ? requestAnimationFrame(() => ua(t)) : new MutationObserver((e, i) => {
document.body && (ua(t), i.disconnect());
}).observe(document.documentElement, { childList: true }));
}
function ua(t) {
C(document, "uikit:init", t), document.body && se(document.body, da), new MutationObserver(uu).observe(document, { subtree: true, childList: true, attributes: true }), t._initialized = true;
}
function uu(t) {
var e;
for (const { addedNodes: i, removedNodes: s, target: o, attributeName: r } of t) {
for (const u of i)
se(u, da);
for (const u of s)
se(u, du);
const l = r && fa(r);
l && (te(o, r) ? Mi(l, o) : (e = vs(o, l)) == null || e.$destroy());
}
}
function da(t) {
const e = Hi(t);
for (const i in e)
Ln(e[i]);
for (const i of t.getAttributeNames()) {
const s = fa(i);
s && Mi(s, t);
}
}
function du(t) {
const e = Hi(t);
for (const i in e)
Bn(e[i]);
}
function fa(t) {
y(t, "data-") && (t = t.slice(5));
const e = Xe[t];
return e && (e.options || e).name;
}
yh(St), kh(St);
var pa = { mixins: [xt, _e], props: { animation: Boolean, targets: String, active: null, collapsible: Boolean, multiple: Boolean, toggle: String, content: String, offset: Number }, data: { targets: "> *", active: false, animation: true, collapsible: true, multiple: false, clsOpen: "uk-open", toggle: "> .uk-accordion-title", content: "> .uk-accordion-content", offset: 0 }, computed: { items: ({ targets: t }, e) => Q(t, e), toggles({ toggle: t }) {
return this.items.map((e) => H(t, e));
}, contents({ content: t }) {
return this.items.map((e) => {
var i;
return ((i = e._wrapper) == null ? undefined : i.firstElementChild) || H(t, e);
});
} }, watch: { items(t, e) {
if (e || L(t, this.clsOpen))
return;
const i = this.active !== false && t[Number(this.active)] || !this.collapsible && t[0];
i && this.toggle(i, false);
}, toggles() {
this.$emit();
}, contents(t) {
for (const e of t) {
const i = L(this.items.find((s) => s.contains(e)), this.clsOpen);
Ss(e, !i);
}
this.$emit();
} }, observe: ps(), events: [{ name: "click keydown", delegate: ({ targets: t, $props: e }) => `${t} ${e.toggle}`, async handler(t) {
var e;
t.type === "keydown" && t.keyCode !== K.SPACE || (t.preventDefault(), (e = this._off) == null || e.call(this), this._off = pu(t.target), await this.toggle(Ft(this.toggles, t.current)), this._off());
} }, { name: "shown hidden", self: true, delegate: ({ targets: t }) => t, handler() {
this.$emit();
} }], update() {
const t = bi(this.items, `.${this.clsOpen}`);
for (const e in this.items) {
const i = this.toggles[e], s = this.contents[e];
if (!i || !s)
continue;
i.id = Ie(this, i), s.id = Ie(this, s);
const o = w(t, this.items[e]);
A(i, { role: et(i, "a") ? "button" : null, "aria-controls": s.id, "aria-expanded": o, "aria-disabled": !this.collapsible && t.length < 2 && o }), A(s, { role: "region", "aria-labelledby": i.id }), et(s, "ul") && A(G(s), "role", "presentation");
}
}, methods: { toggle(t, e) {
t = this.items[yt(t, this.items)];
let i = [t];
const s = bi(this.items, `.${this.clsOpen}`);
if (!this.multiple && !w(s, i[0]) && (i = i.concat(s)), !(!this.collapsible && s.length < 2 && w(s, t)))
return Promise.all(i.map((o) => this.toggleElement(o, !w(s, o), (r, l) => {
if (it(r, this.clsOpen, l), e === false || !this.animation) {
Ss(H(this.content, r), !l);
return;
}
return fu(r, l, this);
})));
} } };
function Ss(t, e) {
t && (t.hidden = e);
}
async function fu(t, e, { content: i, duration: s, velocity: o, transition: r }) {
var l;
i = ((l = t._wrapper) == null ? undefined : l.firstElementChild) || H(i, t), t._wrapper || (t._wrapper = xi(i, "
"));
const u = t._wrapper;
m(u, "overflow", "hidden");
const f = R(m(u, "height"));
await X.cancel(u), Ss(i, false);
const v = ve(["marginTop", "marginBottom"], (b) => m(i, b)) + T(i).height, $ = f / v;
s = (o * v + s) * (e ? 1 - $ : $), m(u, "height", f), await X.start(u, { height: e ? v : 0 }, s, r), Si(i), delete t._wrapper, e || Ss(i, true);
}
function pu(t) {
const e = xe(t, true);
let i;
return function s() {
i = requestAnimationFrame(() => {
const { top: o } = T(t);
o < 0 && (e.scrollTop += o), s();
});
}(), () => requestAnimationFrame(() => cancelAnimationFrame(i));
}
var gu = { mixins: [xt, _e], args: "animation", props: { animation: Boolean, close: String }, data: { animation: true, selClose: ".uk-alert-close", duration: 150 }, events: { name: "click", delegate: ({ selClose: t }) => t, handler(t) {
t.preventDefault(), this.close();
} }, methods: { async close() {
await this.toggleElement(this.$el, false, mu), this.$destroy(true);
} } };
function mu(t, e, { duration: i, transition: s, velocity: o }) {
const r = R(m(t, "height"));
return m(t, "height", r), X.start(t, { height: 0, marginTop: 0, marginBottom: 0, paddingTop: 0, paddingBottom: 0, borderTop: 0, borderBottom: 0, opacity: 0 }, o * r + i, s);
}
var ga = { args: "autoplay", props: { automute: Boolean, autoplay: Boolean }, data: { automute: false, autoplay: true }, beforeConnect() {
this.autoplay === "inview" && !te(this.$el, "preload") && (this.$el.preload = "none"), et(this.$el, "iframe") && !te(this.$el, "allow") && (this.$el.allow = "autoplay"), this.autoplay === "hover" && (et(this.$el, "video") ? this.$el.tabindex = 0 : this.autoplay = true), this.automute && Wo(this.$el);
}, events: [{ name: `${we} focusin`, filter: ({ autoplay: t }) => w(t, "hover"), handler(t) {
!Mt(t) || !vu(this.$el) ? fn(this.$el) : us(this.$el);
} }, { name: `${Ue} focusout`, filter: ({ autoplay: t }) => w(t, "hover"), handler(t) {
Mt(t) || us(this.$el);
} }], observe: [Ci({ filter: ({ autoplay: t }) => t !== "hover", handler([{ isIntersecting: t }]) {
document.fullscreenElement || (t ? this.autoplay && fn(this.$el) : us(this.$el));
}, args: { intersecting: false }, options: ({ $el: t, autoplay: e }) => ({ root: e === "inview" ? null : J(t).closest(":not(a)") }) })] };
function vu(t) {
return !t.paused && !t.ended;
}
var $u = { mixins: [ga], props: { width: Number, height: Number }, data: { automute: true }, created() {
this.useObjectFit = et(this.$el, "img", "video");
}, observe: Vt({ target: ({ $el: t }) => ma(t) || J(t), filter: ({ useObjectFit: t }) => !t }), update: { read() {
if (this.useObjectFit)
return false;
const { ratio: t, cover: e } = Ys, { $el: i, width: s, height: o } = this;
let r = { width: s, height: o };
if (!s || !o) {
const v = { width: i.naturalWidth || i.videoWidth || i.clientWidth, height: i.naturalHeight || i.videoHeight || i.clientHeight };
s ? r = t(v, "width", s) : o ? r = t(v, "height", o) : r = v;
}
const { offsetHeight: l, offsetWidth: u } = ma(i) || J(i), f = e(r, { width: u, height: l });
return !f.width || !f.height ? false : f;
}, write({ height: t, width: e }) {
m(this.$el, { height: t, width: e });
}, events: ["resize"] } };
function ma(t) {
for (;t = J(t); )
if (m(t, "position") !== "static")
return t;
}
let gt;
var va = { mixins: [Oi, wr, _e], args: "pos", props: { mode: "list", toggle: Boolean, boundary: Boolean, boundaryX: Boolean, boundaryY: Boolean, target: Boolean, targetX: Boolean, targetY: Boolean, stretch: Boolean, delayShow: Number, delayHide: Number, autoUpdate: Boolean, clsDrop: String, animateOut: Boolean, bgScroll: Boolean, closeOnScroll: Boolean }, data: { mode: ["click", "hover"], toggle: "- *", boundary: false, boundaryX: false, boundaryY: false, target: false, targetX: false, targetY: false, stretch: false, delayShow: 0, delayHide: 800, autoUpdate: true, clsDrop: false, animateOut: false, bgScroll: true, animation: ["uk-anmt-fade"], cls: "uk-open", container: false, closeOnScroll: false }, computed: { boundary({ boundary: t, boundaryX: e, boundaryY: i }, s) {
return [Ct(e || t, s) || window, Ct(i || t, s) || window];
}, target({ target: t, targetX: e, targetY: i }, s) {
return e || (e = t || this.targetEl), i || (i = t || this.targetEl), [e === true ? window : Ct(e, s), i === true ? window : Ct(i, s)];
} }, created() {
this.tracker = new Fo;
}, beforeConnect() {
this.clsDrop = this.$props.clsDrop || this.$options.id;
}, connected() {
j(this.$el, "uk-drop", this.clsDrop), this.toggle && !this.targetEl && (this.targetEl = wu(this)), this._style = qs(this.$el.style, ["width", "height"]);
}, disconnected() {
this.isActive() && (this.hide(false), gt = null), m(this.$el, this._style);
}, events: [{ name: "click", delegate: () => ".uk-drop-close", handler(t) {
t.preventDefault(), this.hide(false);
} }, { name: "click", delegate: () => 'a[href*="#"]', handler({ defaultPrevented: t, current: e }) {
const { hash: i } = e;
!t && i && We(e) && !this.$el.contains(H(i)) && this.hide(false);
} }, { name: "beforescroll", handler() {
this.hide(false);
} }, { name: "toggle", self: true, handler(t, e) {
t.preventDefault(), this.isToggled() ? this.hide(false) : this.show(e == null ? undefined : e.$el, false);
} }, { name: "toggleshow", self: true, handler(t, e) {
t.preventDefault(), this.show(e == null ? undefined : e.$el);
} }, { name: "togglehide", self: true, handler(t) {
t.preventDefault(), Y(this.$el, ":focus,:hover") || this.hide();
} }, { name: `${we} focusin`, filter: ({ mode: t }) => w(t, "hover"), handler(t) {
Mt(t) || this.clearTimers();
} }, { name: `${Ue} focusout`, filter: ({ mode: t }) => w(t, "hover"), handler(t) {
!Mt(t) && t.relatedTarget && this.hide();
} }, { name: "toggled", self: true, handler(t, e) {
e && (this.clearTimers(), this.position());
} }, { name: "show", self: true, handler() {
gt = this, this.tracker.init(), A(this.targetEl, "aria-expanded", true);
const t = [yu(this), ku(this), Su(this), this.autoUpdate && $a(this), this.closeOnScroll && xu(this)];
st(this.$el, "hide", () => t.forEach((e) => e && e()), { self: true }), this.bgScroll || st(this.$el, "hidden", br(this.$el), { self: true });
} }, { name: "beforehide", self: true, handler() {
this.clearTimers();
} }, { name: "hide", handler({ target: t }) {
if (this.$el !== t) {
gt = gt === null && this.$el.contains(t) && this.isToggled() ? this : gt;
return;
}
gt = this.isActive() ? null : gt, this.tracker.cancel(), A(this.targetEl, "aria-expanded", null);
} }], update: { write() {
this.isToggled() && !L(this.$el, this.clsEnter) && this.position();
} }, methods: { show(t = this.targetEl, e = true) {
if (this.isToggled() && t && this.targetEl && t !== this.targetEl && this.hide(false, false), this.targetEl = t, this.clearTimers(), !this.isActive()) {
if (gt) {
if (e && gt.isDelaying()) {
this.showTimer = setTimeout(() => Y(t, ":hover") && this.show(), 10);
return;
}
let i;
for (;gt && i !== gt && !gt.$el.contains(this.$el); )
i = gt, gt.hide(false, false);
}
this.container && J(this.$el) !== this.container && ot(this.container, this.$el), this.showTimer = setTimeout(() => this.toggleElement(this.$el, true), e && this.delayShow || 0);
}
}, hide(t = true, e = true) {
const i = () => this.toggleElement(this.$el, false, this.animateOut && e);
this.clearTimers(), this.isDelayedHide = t, t && this.isDelaying() ? this.hideTimer = setTimeout(this.hide, 50) : t && this.delayHide ? this.hideTimer = setTimeout(i, this.delayHide) : i();
}, clearTimers() {
clearTimeout(this.showTimer), clearTimeout(this.hideTimer), this.showTimer = null, this.hideTimer = null;
}, isActive() {
return gt === this;
}, isDelaying() {
return [this.$el, ...Q(".uk-drop", this.$el)].some((t) => this.tracker.movesTo(t));
}, position() {
const t = On(this.$el);
Z(this.$el, "uk-drop-stack"), m(this.$el, this._style), this.$el.hidden = true;
const e = this.target.map((r) => bu(this.$el, r)), i = this.getViewportOffset(this.$el), s = [[0, ["x", "width", "left", "right"]], [1, ["y", "height", "top", "bottom"]]];
for (const [r, [l, u]] of s)
this.axis !== l && w([l, true], this.stretch) && m(this.$el, { [u]: Math.min(U(this.boundary[r])[u], e[r][u] - 2 * i), [`overflow-${l}`]: "auto" });
const o = e[0].width - 2 * i;
this.$el.hidden = false, m(this.$el, "maxWidth", ""), this.$el.offsetWidth > o && j(this.$el, "uk-drop-stack"), m(this.$el, "maxWidth", o), this.positionAt(this.$el, this.target, this.boundary);
for (const [r, [l, u, f, v]] of s)
if (this.axis === l && w([l, true], this.stretch)) {
const $ = Math.abs(this.getPositionOffset()), b = U(this.target[r]), x = U(this.$el);
m(this.$el, { [u]: (b[f] > x[f] ? b[this.inset ? v : f] - Math.max(U(this.boundary[r])[f], e[r][f] + i) : Math.min(U(this.boundary[r])[v], e[r][v] - i) - b[this.inset ? f : v]) - $, [`overflow-${l}`]: "auto" }), this.positionAt(this.$el, this.target, this.boundary);
}
t();
} } };
function bu(t, e) {
return Tt(Se(e).find((i) => i.contains(t)));
}
function wu(t) {
const { $el: e } = t.$create("toggle", Ct(t.toggle, t.$el), { target: t.$el, mode: t.mode });
return A(e, "aria-haspopup", true), e;
}
function yu(t) {
const e = () => t.$emit(), i = [un(e), hs(Se(t.$el).concat(t.target), e)];
return () => i.map((s) => s.disconnect());
}
function $a(t, e = () => t.$emit()) {
return z([document, ...Se(t.$el)], "scroll", e, { passive: true });
}
function ku(t) {
return z(document, "keydown", (e) => {
e.keyCode === K.ESC && t.hide(false);
});
}
function xu(t) {
return $a(t, () => t.hide(false));
}
function Su(t) {
return z(document, It, ({ target: e }) => {
t.$el.contains(e) || st(document, `${ee} ${Zi} scroll`, ({ defaultPrevented: i, type: s, target: o }) => {
var r;
!i && s === ee && e === o && !((r = t.targetEl) != null && r.contains(e)) && t.hide(false);
}, true);
});
}
var _u = { mixins: [xt, Oi], props: { align: String, clsDrop: String, boundary: Boolean, dropbar: Boolean, dropbarAnchor: Boolean, duration: Number, mode: Boolean, offset: Boolean, stretch: Boolean, delayShow: Boolean, delayHide: Boolean, target: Boolean, targetX: Boolean, targetY: Boolean, animation: Boolean, animateOut: Boolean, closeOnScroll: Boolean }, data: { align: ht ? "right" : "left", clsDrop: "uk-dropdown", clsDropbar: "uk-dropnav-dropbar", boundary: true, dropbar: false, dropbarAnchor: false, duration: 200, container: false, selNavItem: "> li > a, > ul > li > a" }, computed: { dropbarAnchor: ({ dropbarAnchor: t }, e) => Ct(t, e) || e, dropbar({ dropbar: t }) {
return t ? (t = this._dropbar || Ct(t, this.$el) || H(`+ .${this.clsDropbar}`, this.$el), t || (this._dropbar = H("
"))) : null;
}, dropContainer(t, e) {
return this.container || e;
}, dropdowns({ clsDrop: t }, e) {
var i;
const s = Q(`.${t}`, e);
if (this.dropContainer !== e)
for (const o of Q(`.${t}`, this.dropContainer)) {
const r = (i = this.getDropdown(o)) == null ? undefined : i.targetEl;
!w(s, o) && r && this.$el.contains(r) && s.push(o);
}
return s;
}, items({ selNavItem: t }, e) {
return Q(t, e);
} }, watch: { dropbar(t) {
j(t, "uk-dropbar", "uk-dropbar-top", this.clsDropbar, `uk-${this.$options.name}-dropbar`);
}, dropdowns() {
this.initializeDropdowns();
} }, connected() {
this.initializeDropdowns();
}, disconnected() {
$t(this._dropbar), delete this._dropbar;
}, events: [{ name: "mouseover focusin", delegate: ({ selNavItem: t }) => t, handler({ current: t }) {
const e = this.getActive();
e && w(e.mode, "hover") && e.targetEl && !t.contains(e.targetEl) && !e.isDelaying() && e.hide(false);
} }, { name: "keydown", self: true, delegate: ({ selNavItem: t }) => t, handler(t) {
var e;
const { current: i, keyCode: s } = t, o = this.getActive();
s === K.DOWN && (o == null ? undefined : o.targetEl) === i && (t.preventDefault(), (e = H($i, o.$el)) == null || e.focus()), ba(t, this.items, o);
} }, { name: "keydown", el: ({ dropContainer: t }) => t, delegate: ({ clsDrop: t }) => `.${t}`, handler(t) {
var e;
const { current: i, keyCode: s, target: o } = t;
if (Qi(o) || !w(this.dropdowns, i))
return;
const r = this.getActive();
let l = -1;
if (s === K.HOME ? l = 0 : s === K.END ? l = "last" : s === K.UP ? l = "previous" : s === K.DOWN ? l = "next" : s === K.ESC && ((e = r.targetEl) == null || e.focus()), ~l) {
t.preventDefault();
const u = Q($i, i);
u[yt(l, u, E(u, (f) => Y(f, ":focus")))].focus();
}
ba(t, this.items, r);
} }, { name: "mouseleave", el: ({ dropbar: t }) => t, filter: ({ dropbar: t }) => t, handler() {
const t = this.getActive();
t && w(t.mode, "hover") && !this.dropdowns.some((e) => Y(e, ":hover")) && t.hide();
} }, { name: "beforeshow", el: ({ dropContainer: t }) => t, filter: ({ dropbar: t }) => t, handler({ target: t }) {
this.isDropbarDrop(t) && (this.dropbar.previousElementSibling !== this.dropbarAnchor && ns(this.dropbarAnchor, this.dropbar), j(t, `${this.clsDrop}-dropbar`));
} }, { name: "show", el: ({ dropContainer: t }) => t, filter: ({ dropbar: t }) => t, handler({ target: t }) {
if (!this.isDropbarDrop(t))
return;
const e = this.getDropdown(t), i = () => {
const s = Math.max(...qe(t, `.${this.clsDrop}`).concat(t).map((o) => U(o).bottom));
U(this.dropbar, { left: U(this.dropbar).left, top: this.getDropbarOffset(e.getPositionOffset()) }), this.transitionTo(s - U(this.dropbar).top + R(m(t, "marginBottom")), t);
};
this._observer = hs([e.$el, ...e.target], i), i();
} }, { name: "beforehide", el: ({ dropContainer: t }) => t, filter: ({ dropbar: t }) => t, handler(t) {
const e = this.getActive();
Y(this.dropbar, ":hover") && e.$el === t.target && this.isDropbarDrop(e.$el) && w(e.mode, "hover") && e.isDelayedHide && !this.items.some((i) => e.targetEl !== i && Y(i, ":focus")) && t.preventDefault();
} }, { name: "hide", el: ({ dropContainer: t }) => t, filter: ({ dropbar: t }) => t, handler({ target: t }) {
var e;
if (!this.isDropbarDrop(t))
return;
(e = this._observer) == null || e.disconnect();
const i = this.getActive();
(!i || i.$el === t) && this.transitionTo(0);
} }], methods: { getActive() {
var t;
return w(this.dropdowns, (t = gt) == null ? undefined : t.$el) && gt;
}, async transitionTo(t, e) {
const { dropbar: i } = this, s = bt(i);
if (e = s < t && e, await X.cancel([e, i]), e) {
const o = U(e).top - U(i).top - s;
o > 0 && m(e, "transitionDelay", `${o / t * this.duration}ms`);
}
m(e, "clipPath", `polygon(0 0,100% 0,100% ${s}px,0 ${s}px)`), bt(i, s), await Promise.all([X.start(i, { height: t }, this.duration), X.start(e, { clipPath: `polygon(0 0,100% 0,100% ${t}px,0 ${t}px)` }, this.duration).finally(() => m(e, { clipPath: "", transitionDelay: "" }))]).catch(ct);
}, getDropdown(t) {
return this.$getComponent(t, "drop") || this.$getComponent(t, "dropdown");
}, isDropbarDrop(t) {
return w(this.dropdowns, t) && L(t, this.clsDrop);
}, getDropbarOffset(t) {
const { $el: e, target: i, targetY: s } = this, { top: o, height: r } = U(Ct(s || i || e, e));
return o + r + t;
}, initializeDropdowns() {
this.$create("drop", this.dropdowns.filter((t) => !this.getDropdown(t)), { ...this.$props, flip: false, shift: true, pos: `bottom-${this.align}`, boundary: this.boundary === true ? this.$el : this.boundary });
} } };
function ba(t, e, i) {
var s, o, r;
const { current: l, keyCode: u } = t;
let f = -1;
u === K.HOME ? f = 0 : u === K.END ? f = "last" : u === K.LEFT ? f = "previous" : u === K.RIGHT ? f = "next" : u === K.TAB && ((s = i.targetEl) == null || s.focus(), (o = i.hide) == null || o.call(i, false)), ~f && (t.preventDefault(), (r = i.hide) == null || r.call(i, false), e[yt(f, e, e.indexOf(i.targetEl || l))].focus());
}
var Au = { mixins: [xt], args: "target", props: { target: Boolean }, data: { target: false }, computed: { input: (t, e) => H(vi, e), state() {
return this.input.nextElementSibling;
}, target({ target: t }, e) {
return t && (t === true && J(this.input) === e && this.input.nextElementSibling || H(t, e));
} }, update() {
var t;
const { target: e, input: i } = this;
if (!e)
return;
let s;
const o = Qi(e) ? "value" : "textContent", r = e[o], l = (t = i.files) != null && t[0] ? i.files[0].name : Y(i, "select") && (s = Q("option", i).filter((u) => u.selected)[0]) ? s.textContent : i.value;
r !== l && (e[o] = l);
}, events: [{ name: "change", handler() {
this.$emit();
} }, { name: "reset", el: ({ $el: t }) => t.closest("form"), handler() {
this.$emit();
} }] }, Eu = { extends: Tc, mixins: [xt], name: "grid", props: { masonry: Boolean, parallax: String, parallaxStart: String, parallaxEnd: String, parallaxJustify: Boolean }, data: { margin: "uk-grid-margin", clsStack: "uk-grid-stack", masonry: false, parallax: 0, parallaxStart: 0, parallaxEnd: 0, parallaxJustify: false }, connected() {
this.masonry && j(this.$el, "uk-flex-top", "uk-flex-wrap-top");
}, observe: Ti({ filter: ({ parallax: t, parallaxJustify: e }) => t || e }), update: [{ write({ rows: t }) {
it(this.$el, this.clsStack, !t.some((e) => e.length > 1));
}, events: ["resize"] }, { read(t) {
const { rows: e } = t;
let { masonry: i, parallax: s, parallaxJustify: o, margin: r } = this;
if (s = Math.max(0, ft(s)), !(i || s || o) || wa(e) || e[0].some((O, B) => e.some((q) => q[B] && q[B].offsetWidth !== O.offsetWidth)))
return t.translates = t.scrollColumns = false;
let l = Cu(e, r), u, f;
i ? [u, f] = Iu(e, l, i === "next") : u = Tu(e);
const v = u.map((O) => ve(O, "offsetHeight") + l * (O.length - 1)), $ = Math.max(0, ...v);
let b, x, I;
return (s || o) && (b = v.map((O, B) => o ? $ - O + s : s / (B % 2 || 8)), o || (s = Math.max(...v.map((O, B) => O + b[B] - $))), x = ft(this.parallaxStart, "height", this.$el, true), I = ft(this.parallaxEnd, "height", this.$el, true)), { columns: u, translates: f, scrollColumns: b, parallaxStart: x, parallaxEnd: I, padding: s, height: f ? $ : "" };
}, write({ height: t, padding: e }) {
m(this.$el, "paddingBottom", e || ""), t !== false && m(this.$el, "height", t);
}, events: ["resize"] }, { read({ rows: t, scrollColumns: e, parallaxStart: i, parallaxEnd: s }) {
return { scrolled: e && !wa(t) ? ds(this.$el, i, s) : false };
}, write({ columns: t, scrolled: e, scrollColumns: i, translates: s }) {
!e && !s || t.forEach((o, r) => o.forEach((l, u) => {
let [f, v] = s && s[r][u] || [0, 0];
e && (v += e * i[r]), m(l, "transform", `translate(${f}px, ${v}px)`);
}));
}, events: ["scroll", "resize"] }] };
function wa(t) {
return t.flat().some((e) => m(e, "position") === "absolute");
}
function Iu(t, e, i) {
const s = [], o = [], r = Array(t[0].length).fill(0);
let l = 0;
for (let u of t) {
ht && u.reverse();
let f = 0;
for (const v in u) {
const { offsetWidth: $, offsetHeight: b } = u[v], x = i ? v : r.indexOf(Math.min(...r));
zn(s, x, u[v]), zn(o, x, [(x - v) * $ * (ht ? -1 : 1), r[x] - l]), r[x] += b + e, f = Math.max(f, b);
}
l += f + e;
}
return [s, o];
}
function Cu(t, e) {
const i = t.flat().find((s) => L(s, e));
return R(i ? m(i, "marginTop") : m(t[0][0], "paddingLeft"));
}
function Tu(t) {
const e = [];
for (const i of t)
for (const s in i)
zn(e, s, i[s]);
return e;
}
function zn(t, e, i) {
t[e] || (t[e] = []), t[e].push(i);
}
var Pu = { mixins: [xt, $s], props: { fill: String }, data: { fill: "", clsWrapper: "uk-leader-fill", clsHide: "uk-leader-hide", attrFill: "data-fill" }, computed: { fill: ({ fill: t }, e) => t || m(e, "--uk-leader-fill-content") }, connected() {
[this.wrapper] = rn(this.$el, `
`);
}, disconnected() {
Si(this.wrapper.childNodes);
}, observe: Vt(), update: { read() {
return { width: Math.trunc(this.$el.offsetWidth / 2), fill: this.fill, hide: !this.matchMedia };
}, write({ width: t, fill: e, hide: i }) {
it(this.wrapper, this.clsHide, i), A(this.wrapper, this.attrFill, new Array(t).join(e));
}, events: ["resize"] } }, Ou = { install: Du, mixins: [Dn], data: { clsPage: "uk-modal-page", selPanel: ".uk-modal-dialog", selClose: '[class*="uk-modal-close"]' }, events: [{ name: "fullscreenchange webkitendfullscreen", capture: true, handler(t) {
et(t.target, "video") && this.isToggled() && !document.fullscreenElement && this.hide();
} }, { name: "show", self: true, handler() {
L(this.panel, "uk-margin-auto-vertical") ? j(this.$el, "uk-flex") : m(this.$el, "display", "block"), bt(this.$el);
} }, { name: "hidden", self: true, handler() {
m(this.$el, "display", ""), Z(this.$el, "uk-flex");
} }] };
function Du({ modal: t }) {
t.dialog = function(i, s) {
const o = t(H(``), { stack: true, role: "alertdialog", ...s });
return o.show(), z(o.$el, "hidden", async () => {
await Promise.resolve(), o.$destroy(true);
}, { self: true }), o;
}, t.alert = function(i, s) {
return e(({ i18n: o }) => `${nt(i) ? i : qt(i)}
`, s);
}, t.confirm = function(i, s) {
return e(({ i18n: o }) => ``, s, () => Promise.reject());
}, t.prompt = function(i, s, o) {
const r = e(({ i18n: f }) => ``, o, () => null, () => u.value), { $el: l } = r.dialog, u = H("input", l);
return u.value = s || "", z(l, "show", () => u.select()), r;
}, t.i18n = { ok: "Ok", cancel: "Cancel" };
function e(i, s, o = ct, r = ct) {
s = { bgClose: false, escClose: true, ...s, i18n: { ...t.i18n, ...s == null ? undefined : s.i18n } };
const l = t.dialog(i(s), s);
return V(new Promise((u) => {
const f = z(l.$el, "hide", () => u(o()));
z(l.$el, "submit", "form", (v) => {
v.preventDefault(), u(r(l)), f(), l.hide();
});
}), { dialog: l });
}
}
var Mu = { extends: pa, data: { targets: "> .uk-parent", toggle: "> a", content: "> ul" } }, Hu = { mixins: [Dn], args: "mode", props: { mode: String, flip: Boolean, overlay: Boolean, swiping: Boolean }, data: { mode: "slide", flip: false, overlay: false, clsPage: "uk-offcanvas-page", clsContainer: "uk-offcanvas-container", selPanel: ".uk-offcanvas-bar", clsFlip: "uk-offcanvas-flip", clsContainerAnimation: "uk-offcanvas-container-animation", clsSidebarAnimation: "uk-offcanvas-bar-animation", clsMode: "uk-offcanvas", clsOverlay: "uk-offcanvas-overlay", selClose: ".uk-offcanvas-close", container: false, swiping: true }, computed: { clsFlip: ({ flip: t, clsFlip: e }) => t ? e : "", clsOverlay: ({ overlay: t, clsOverlay: e }) => t ? e : "", clsMode: ({ mode: t, clsMode: e }) => `${e}-${t}`, clsSidebarAnimation: ({ mode: t, clsSidebarAnimation: e }) => t === "none" || t === "reveal" ? "" : e, clsContainerAnimation: ({ mode: t, clsContainerAnimation: e }) => t !== "push" && t !== "reveal" ? "" : e, transitionElement({ mode: t }) {
return t === "reveal" ? J(this.panel) : this.panel;
} }, observe: ar({ filter: ({ swiping: t }) => t }), update: { read() {
this.isToggled() && !ut(this.$el) && this.hide();
}, events: ["resize"] }, events: [{ name: "touchmove", self: true, passive: false, filter: ({ overlay: t }) => t, handler(t) {
t.cancelable && t.preventDefault();
} }, { name: "show", self: true, handler() {
this.mode === "reveal" && !L(J(this.panel), this.clsMode) && j(xi(this.panel, ""), this.clsMode);
const { body: t, scrollingElement: e } = document;
j(t, this.clsContainer, this.clsFlip), m(t, "touchAction", "pan-y pinch-zoom"), m(this.$el, "display", "block"), m(this.panel, "maxWidth", e.clientWidth), j(this.$el, this.clsOverlay), j(this.panel, this.clsSidebarAnimation, this.mode === "reveal" ? "" : this.clsMode), bt(t), j(t, this.clsContainerAnimation), this.clsContainerAnimation && Nu();
} }, { name: "hide", self: true, handler() {
Z(document.body, this.clsContainerAnimation), m(document.body, "touchAction", "");
} }, { name: "hidden", self: true, handler() {
this.clsContainerAnimation && Lu(), this.mode === "reveal" && L(J(this.panel), this.clsMode) && Si(this.panel), Z(this.panel, this.clsSidebarAnimation, this.clsMode), Z(this.$el, this.clsOverlay), m(this.$el, "display", ""), m(this.panel, "maxWidth", ""), Z(document.body, this.clsContainer, this.clsFlip);
} }, { name: "swipeLeft swipeRight", handler(t) {
this.isToggled() && _(t.type, "Left") ^ this.flip && this.hide();
} }] };
function Nu() {
ya().content += ",user-scalable=0";
}
function Lu() {
const t = ya();
t.content = t.content.replace(/,user-scalable=0$/, "");
}
function ya() {
return H('meta[name="viewport"]', document.head) || ot(document.head, '
');
}
var Bu = { mixins: [xt], props: { selContainer: String, selContent: String, minHeight: Number }, data: { selContainer: ".uk-modal", selContent: ".uk-modal-dialog", minHeight: 150 }, computed: { container: ({ selContainer: t }, e) => e.closest(t), content: ({ selContent: t }, e) => e.closest(t) }, observe: Vt({ target: ({ container: t, content: e }) => [t, e] }), update: { read() {
return !this.content || !this.container || !ut(this.$el) ? false : { max: Math.max(this.minHeight, bt(this.container) - (T(this.content).height - bt(this.$el))) };
}, write({ max: t }) {
m(this.$el, { minHeight: this.minHeight, maxHeight: t });
}, events: ["resize"] } }, Ru = { props: ["width", "height"], connected() {
j(this.$el, "uk-responsive-width"), m(this.$el, "aspectRatio", `${this.width}/${this.height}`);
} }, ju = { props: { offset: Number }, data: { offset: 0 }, connected() {
zu(this);
}, disconnected() {
Fu(this);
}, methods: { async scrollTo(t) {
t = t && H(t) || document.body, C(this.$el, "beforescroll", [this, t]) && (await Jo(t, { offset: this.offset }), C(this.$el, "scrolled", [this, t]));
} } };
const Ri = new Set;
function zu(t) {
Ri.size || z(document, "click", ka), Ri.add(t);
}
function Fu(t) {
Ri.delete(t), Ri.size || ye(document, "click", ka);
}
function ka(t) {
if (!t.defaultPrevented)
for (const e of Ri)
e.$el.contains(t.target) && We(e.$el) && (t.preventDefault(), window.location.href !== e.$el.href && window.history.pushState({}, "", e.$el.href), e.scrollTo(Gs(e.$el)));
}
const Fn = "uk-scrollspy-inview";
var Uu = { args: "cls", props: { cls: String, target: String, hidden: Boolean, margin: String, repeat: Boolean, delay: Number }, data: () => ({ cls: "", target: false, hidden: true, margin: "-1px", repeat: false, delay: 0 }), computed: { elements: ({ target: t }, e) => t ? Q(t, e) : [e] }, watch: { elements(t) {
this.hidden && m(bi(t, `:not(.${Fn})`), "opacity", 0);
} }, connected() {
this.elementData = new Map;
}, disconnected() {
for (const [t, e] of this.elementData.entries())
Z(t, Fn, (e == null ? undefined : e.cls) || "");
delete this.elementData;
}, observe: Ci({ target: ({ elements: t }) => t, handler(t) {
const e = this.elementData;
for (const { target: i, isIntersecting: s } of t) {
e.has(i) || e.set(i, { cls: vt(i, "uk-scrollspy-class") || this.cls });
const o = e.get(i);
!this.repeat && o.show || (o.show = s);
}
this.$emit();
}, options: ({ margin: t }) => ({ rootMargin: t }), args: { intersecting: false } }), update: [{ write(t) {
for (const [e, i] of this.elementData.entries())
i.show && !i.inview && !i.queued ? (i.queued = true, t.promise = (t.promise || Promise.resolve()).then(() => new Promise((s) => setTimeout(s, this.delay))).then(() => {
this.toggle(e, true), setTimeout(() => {
i.queued = false, this.$emit();
}, 300);
})) : !i.show && i.inview && !i.queued && this.repeat && this.toggle(e, false);
} }], methods: { toggle(t, e) {
var i, s;
const o = (i = this.elementData) == null ? undefined : i.get(t);
if (!o)
return;
(s = o.off) == null || s.call(o), m(t, "opacity", !e && this.hidden ? 0 : ""), it(t, Fn, e), it(t, o.cls);
let r;
if (r = o.cls.match(/\buk-anmt-[\w-]+/g)) {
const l = () => Z(t, r);
e ? o.off = st(t, "animationcancel animationend", l, { self: true }) : l();
}
C(t, e ? "inview" : "outview"), o.inview = e;
} } }, qu = { props: { cls: String, closest: Boolean, scroll: Boolean, target: String, offset: Number }, data: { cls: "uk-active", closest: false, scroll: false, target: 'a[href]:not([role="button"])', offset: 0 }, computed: { links: ({ target: t }, e) => Q(t, e).filter((i) => We(i)), elements({ closest: t }) {
return this.links.map((e) => e.closest(t || "*"));
} }, watch: { links(t) {
this.scroll && this.$create("scroll", t, { offset: this.offset });
} }, observe: [Ci(), Ti()], update: [{ read() {
const t = this.links.map((f) => Gs(f)).filter(Boolean), { length: e } = t;
if (!e || !ut(this.$el))
return false;
const i = xe(t, true), { scrollTop: s, scrollHeight: o } = i, r = Tt(i), l = o - r.height;
let u = false;
if (s >= l)
u = e - 1;
else {
const f = this.offset + T($n()).height + r.height * 0.1;
for (let v = 0;v < t.length && !(U(t[v]).top - r.top - f > 0); v++)
u = +v;
}
return { active: u };
}, write({ active: t }) {
const e = t !== false && !L(this.elements[t], this.cls);
this.links.forEach((i) => i.blur());
for (let i = 0;i < this.elements.length; i++)
it(this.elements[i], this.cls, +i === t);
e && C(this.$el, "active", [t, this.elements[t]]);
}, events: ["scroll", "resize"] }] }, Wu = { mixins: [xt, $s], props: { position: String, top: null, bottom: null, start: null, end: null, offset: String, offsetEnd: String, overflowFlip: Boolean, animation: String, clsActive: String, clsInactive: String, clsFixed: String, clsBelow: String, selTarget: String, showOnUp: Boolean, targetOffset: Number }, data: { position: "top", top: false, bottom: false, start: false, end: false, offset: 0, offsetEnd: 0, overflowFlip: false, animation: "", clsActive: "uk-active", clsInactive: "", clsFixed: "uk-sticky-fixed", clsBelow: "uk-sticky-below", selTarget: "", showOnUp: false, targetOffset: false }, computed: { target: ({ selTarget: t }, e) => t && H(t, e) || e }, connected() {
this.start = xa(this.start || this.top), this.end = xa(this.end || this.bottom), this.placeholder = H("+ .uk-sticky-placeholder", this.$el) || H('
'), this.isFixed = false, this.setActive(false);
}, beforeDisconnect() {
this.isFixed && (this.hide(), Z(this.target, this.clsInactive)), Sa(this.$el), $t(this.placeholder), this.placeholder = null;
}, observe: [rr(), Ti({ target: () => document.scrollingElement }), Vt({ target: ({ $el: t }) => [t, _s(t), document.scrollingElement], handler(t) {
this.$emit(this._data.resized && t.some(({ target: e }) => e === _s(this.$el)) ? "update" : "resize"), this._data.resized = true;
} })], events: [{ name: "load hashchange popstate", el: () => window, filter: ({ targetOffset: t }) => t !== false, handler() {
const { scrollingElement: t } = document;
!location.hash || t.scrollTop === 0 || setTimeout(() => {
const e = U(H(location.hash)), i = U(this.$el);
this.isFixed && Ws(e, i) && (t.scrollTop = Math.ceil(e.top - i.height - ft(this.targetOffset, "height", this.placeholder) - ft(this.offset, "height", this.placeholder)));
});
} }], update: [{ read({ height: t, width: e, margin: i, sticky: s }, o) {
if (this.inactive = !this.matchMedia || !ut(this.$el) || !this.$el.offsetHeight, this.inactive)
return;
const r = bt(window), l = Math.max(0, document.scrollingElement.scrollHeight - r);
if (!l) {
this.inactive = true;
return;
}
const u = this.isFixed && o.has("update");
u && (Wn(this.target), this.hide()), this.active || ({ height: t, width: e } = T(this.$el), i = m(this.$el, "margin")), u && this.show();
const f = ft("100vh", "height");
let v = this.position;
this.overflowFlip && t > f && (v = v === "top" ? "bottom" : "top");
const $ = this.isFixed ? this.placeholder : this.$el;
let [b, x] = [this.offset, this.offsetEnd].map((re) => ft(re, "height", s ? this.$el : $));
v === "bottom" && (t < r || this.overflowFlip) && (b += r - t);
const I = t + b + x, O = this.overflowFlip ? 0 : Math.max(0, I - f), B = U($).top - new DOMMatrix(m($, "transform")).m42, q = T(this.$el).height, _t = (this.start === false ? B : Un(this.start, this.$el, B)) - b, Kt = this.end === false ? l : Math.min(l, Un(this.end, this.$el, B + t, true) - q - b + O);
return s = !this.showOnUp && _t + b === B && Kt === Math.min(l, Un(true, this.$el, 0, true) - q - b + O) && m(_s(this.$el), "overflowY") !== "hidden", { start: _t, end: Kt, offset: b, overflow: O, height: t, elHeight: q, width: e, margin: i, top: _i($)[0], sticky: s, viewport: f, maxScrollHeight: l };
}, write({ height: t, width: e, margin: i, offset: s, sticky: o }) {
if ((this.inactive || o || !this.isFixed) && Sa(this.$el), this.inactive)
return;
o && (t = e = i = 0, m(this.$el, { position: "sticky", top: s }));
const { placeholder: r } = this;
m(r, { height: t, width: e, margin: i }), (J(r) !== J(this.$el) || o ^ Ft(r) < Ft(this.$el)) && ((o ? ss : ns)(this.$el, r), r.hidden = true);
}, events: ["resize"] }, { read({ scroll: t = 0, dir: e = "down", overflow: i, overflowScroll: s = 0, start: o, end: r, elHeight: l, height: u, sticky: f, maxScrollHeight: v }) {
const $ = Math.min(document.scrollingElement.scrollTop, v), b = t <= $ ? "down" : "up", x = this.isFixed ? this.placeholder : this.$el;
return { dir: b, prevDir: e, scroll: $, prevScroll: t, below: $ > U(x).top + (f ? Math.min(u, l) : u), offsetParentTop: U(x.offsetParent).top, overflowScroll: mt(s + mt($, o, r) - mt(t, o, r), 0, i) };
}, write(t, e) {
const i = e.has("scroll"), { initTimestamp: s = 0, dir: o, prevDir: r, scroll: l, prevScroll: u = 0, top: f, start: v, below: $ } = t;
if (l < 0 || l === u && i || this.showOnUp && !i && !this.isFixed)
return;
const b = Date.now();
if ((b - s > 300 || o !== r) && (t.initScroll = l, t.initTimestamp = b), !(this.showOnUp && !this.isFixed && Math.abs(t.initScroll - l) <= 30 && Math.abs(u - l) <= 10))
if (this.inactive || l < v || this.showOnUp && (l <= v || o === "down" && i || o === "up" && !this.isFixed && !$)) {
if (!this.isFixed) {
ie.inProgress(this.$el) && f > l && (ie.cancel(this.$el), this.hide());
return;
}
if (this.animation && $) {
if (L(this.$el, "uk-anmt-leave"))
return;
ie.out(this.$el, this.animation).then(() => this.hide(), ct);
} else
this.hide();
} else
this.isFixed ? this.update() : this.animation && $ ? (this.show(), ie.in(this.$el, this.animation).catch(ct)) : (Wn(this.target), this.show());
}, events: ["resize", "resizeViewport", "scroll"] }], methods: { show() {
this.isFixed = true, this.update(), this.placeholder.hidden = false;
}, hide() {
const { offset: t, sticky: e } = this._data;
this.setActive(false), Z(this.$el, this.clsFixed, this.clsBelow), e ? m(this.$el, "top", t) : m(this.$el, { position: "", top: "", width: "", marginTop: "" }), this.placeholder.hidden = true, this.isFixed = false;
}, update() {
let { width: t, scroll: e = 0, overflow: i, overflowScroll: s = 0, start: o, end: r, offset: l, offsetParentTop: u, sticky: f, below: v } = this._data;
const $ = o !== 0 || e > o;
if (!f) {
let b = "fixed";
e > r && (l += r - u + s - i, b = "absolute"), m(this.$el, { position: b, width: t, marginTop: 0 }, "important");
}
m(this.$el, "top", l - s), this.setActive($), it(this.$el, this.clsBelow, v), j(this.$el, this.clsFixed);
}, setActive(t) {
const e = this.active;
this.active = t, t ? (Ks(this.target, this.clsInactive, this.clsActive), e !== t && C(this.$el, "active")) : (Ks(this.target, this.clsActive, this.clsInactive), e !== t && (Wn(this.target), C(this.$el, "inactive")));
} } };
function Un(t, e, i, s) {
if (!t)
return 0;
if (jt(t) || nt(t) && t.match(/^-?\d/))
return i + ft(t, "height", e, true);
{
const o = t === true ? _s(e) : Ct(t, e);
return U(o).bottom - (s && (o != null && o.contains(e)) ? R(m(o, "paddingBottom")) + R(m(o, "borderBottomWidth")) : 0);
}
}
function xa(t) {
return t === "true" ? true : t === "false" ? false : t;
}
function Sa(t) {
m(t, { position: "", top: "", marginTop: "", width: "" });
}
const qn = "uk-transition-disable";
function Wn(t) {
L(t, qn) || (j(t, qn), requestAnimationFrame(() => Z(t, qn)));
}
function _s(t) {
for (;t = J(t); )
if (ut(t))
return t;
}
var _a = { args: "src", props: { width: Number, height: Number, ratio: Number }, data: { ratio: 1 }, connected() {
this.svg = this.getSvg().then((t) => {
if (!this._connected)
return;
const e = Vu(t, this.$el);
return this.svgEl && e !== this.svgEl && $t(this.svgEl), Yu.call(this, e, t), this.svgEl = e;
}, ct);
}, disconnected() {
this.svg.then((t) => {
this._connected || (Js(this.$el) && (this.$el.hidden = false), $t(t), this.svgEl = null);
}), this.svg = null;
}, methods: { async getSvg() {
} } };
function Vu(t, e) {
if (Js(e) || et(e, "canvas")) {
e.hidden = true;
const s = e.nextElementSibling;
return Aa(t, s) ? s : ns(e, t);
}
const i = e.lastElementChild;
return Aa(t, i) ? i : ot(e, t);
}
function Aa(t, e) {
return et(t, "svg") && et(e, "svg") && t.innerHTML === e.innerHTML;
}
function Yu(t, e) {
const i = ["width", "height"];
let s = i.map((r) => this[r]);
s.some((r) => r) || (s = i.map((r) => A(e, r)));
const o = A(e, "viewBox");
o && !s.some((r) => r) && (s = o.split(" ").slice(2)), s.forEach((r, l) => A(t, i[l], R(r) * this.ratio || null));
}
function Ea(t, e) {
return e && w(t, "
/g, Ku = Et(function(t) {
const e = {};
Ia.lastIndex = 0;
let i;
for (;i = Ia.exec(t); )
e[i[3]] = `