@divkitframework/divkit
Version:
DivKit for the web
1,984 lines • 728 kB
JavaScript
var md = Object.defineProperty;
var bd = (t, r, e) => r in t ? md(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
var sr = (t, r, e) => bd(t, typeof r != "symbol" ? r + "" : r, e);
/*!
DivKit v32.6.0
https://github.com/divkit/divkit
@licence Apache-2.0
*/
function P() {
}
const Cs = (t) => t;
function xi(t, r) {
for (const e in r) t[e] = r[e];
return (
/** @type {T & S} */
t
);
}
function lf(t) {
return t();
}
function Zl() {
return /* @__PURE__ */ Object.create(null);
}
function Xr(t) {
t.forEach(lf);
}
function zr(t) {
return typeof t == "function";
}
function yd(t, r) {
return t != t ? r == r : t !== r || t && typeof t == "object" || typeof t == "function";
}
let No;
function Zn(t, r) {
return t === r ? !0 : (No || (No = document.createElement("a")), No.href = r, t === No.href);
}
function Mr(t, r) {
return t != t ? r == r : t !== r;
}
function vd(t) {
return Object.keys(t).length === 0;
}
function U(t, ...r) {
if (t == null) {
for (const n of r)
n(void 0);
return P;
}
const e = t.subscribe(...r);
return e.unsubscribe ? () => e.unsubscribe() : e;
}
function wd(t) {
let r;
return U(t, (e) => r = e)(), r;
}
function yn(t, r, e) {
t.$$.on_destroy.push(U(r, e));
}
function js(t, r, e, n) {
if (t) {
const i = af(t, r, e, n);
return t[0](i);
}
}
function af(t, r, e, n) {
return t[1] && n ? xi(e.ctx.slice(), t[1](n(r))) : e.ctx;
}
function Ss(t, r, e, n) {
if (t[2] && n) {
const i = t[2](n(e));
if (r.dirty === void 0)
return i;
if (typeof i == "object") {
const o = [], s = Math.max(r.dirty.length, i.length);
for (let a = 0; a < s; a += 1)
o[a] = r.dirty[a] | i[a];
return o;
}
return r.dirty | i;
}
return r.dirty;
}
function Vs(t, r, e, n, i, o) {
if (i) {
const s = af(r, e, n, o);
t.p(s, i);
}
}
function Is(t) {
if (t.ctx.length > 32) {
const r = [], e = t.ctx.length / 32;
for (let n = 0; n < e; n++)
r[n] = -1;
return r;
}
return -1;
}
function Us(t, r, e) {
return t.set(e), r;
}
function Ds(t) {
return t && zr(t.destroy) ? t.destroy : P;
}
function Ql(t) {
const r = typeof t == "string" && t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
return r ? [parseFloat(r[1]), r[2] || "px"] : [
/** @type {number} */
t,
"px"
];
}
const cf = typeof window < "u";
let Al = cf ? () => window.performance.now() : () => Date.now(), Cl = cf ? (t) => requestAnimationFrame(t) : P;
const ao = /* @__PURE__ */ new Set();
function uf(t) {
ao.forEach((r) => {
r.c(t) || (ao.delete(r), r.f());
}), ao.size !== 0 && Cl(uf);
}
function jl(t) {
let r;
return ao.size === 0 && Cl(uf), {
promise: new Promise((e) => {
ao.add(r = { c: t, f: e });
}),
abort() {
ao.delete(r);
}
};
}
const vi = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : (
// @ts-ignore Node typings have this
global
);
let Ts = !1;
function kd() {
Ts = !0;
}
function Ed() {
Ts = !1;
}
function Ad(t, r, e, n) {
for (; t < r; ) {
const i = t + (r - t >> 1);
e(i) <= n ? t = i + 1 : r = i;
}
return t;
}
function Cd(t) {
if (t.hydrate_init) return;
t.hydrate_init = !0;
let r = (
/** @type {ArrayLike<NodeEx2>} */
t.childNodes
);
if (t.nodeName === "HEAD") {
const l = [];
for (let c = 0; c < r.length; c++) {
const u = r[c];
u.claim_order !== void 0 && l.push(u);
}
r = l;
}
const e = new Int32Array(r.length + 1), n = new Int32Array(r.length);
e[0] = -1;
let i = 0;
for (let l = 0; l < r.length; l++) {
const c = r[l].claim_order, u = (i > 0 && r[e[i]].claim_order <= c ? i + 1 : Ad(1, i, (h) => r[e[h]].claim_order, c)) - 1;
n[l] = e[u] + 1;
const f = u + 1;
e[f] = l, i = Math.max(f, i);
}
const o = [], s = [];
let a = r.length - 1;
for (let l = e[i] + 1; l != 0; l = n[l - 1]) {
for (o.push(r[l - 1]); a >= l; a--)
s.push(r[a]);
a--;
}
for (; a >= 0; a--)
s.push(r[a]);
o.reverse(), s.sort((l, c) => l.claim_order - c.claim_order);
for (let l = 0, c = 0; l < s.length; l++) {
for (; c < o.length && s[l].claim_order >= o[c].claim_order; )
c++;
const u = c < o.length ? o[c] : null;
t.insertBefore(s[l], u);
}
}
function jd(t, r) {
t.appendChild(r);
}
function ff(t) {
if (!t) return document;
const r = t.getRootNode ? t.getRootNode() : t.ownerDocument;
return r && /** @type {ShadowRoot} */
r.host ? (
/** @type {ShadowRoot} */
r
) : t.ownerDocument;
}
function Sd(t) {
const r = ze("style");
return r.textContent = "/* empty */", Vd(ff(t), r), r.sheet;
}
function Vd(t, r) {
return jd(
/** @type {Document} */
t.head || t,
r
), r.sheet;
}
function Mt(t, r) {
if (Ts) {
for (Cd(t), (t.actual_end_child === void 0 || t.actual_end_child !== null && t.actual_end_child.parentNode !== t) && (t.actual_end_child = t.firstChild); t.actual_end_child !== null && t.actual_end_child.claim_order === void 0; )
t.actual_end_child = t.actual_end_child.nextSibling;
r !== t.actual_end_child ? (r.claim_order !== void 0 || r.parentNode !== t) && t.insertBefore(r, t.actual_end_child) : t.actual_end_child = r.nextSibling;
} else (r.parentNode !== t || r.nextSibling !== null) && t.appendChild(r);
}
function Id(t, r, e) {
t.insertBefore(r, e || null);
}
function ee(t, r, e) {
Ts && !e ? Mt(t, r) : (r.parentNode !== t || r.nextSibling != e) && t.insertBefore(r, e || null);
}
function w(t) {
t.parentNode && t.parentNode.removeChild(t);
}
function bn(t, r) {
for (let e = 0; e < t.length; e += 1)
t[e] && t[e].d(r);
}
function ze(t) {
return document.createElement(t);
}
function _n(t) {
return document.createElementNS("http://www.w3.org/2000/svg", t);
}
function Qn(t) {
return document.createTextNode(t);
}
function Ar() {
return Qn(" ");
}
function qe() {
return Qn("");
}
function Ue(t, r, e, n) {
return t.addEventListener(r, e, n), () => t.removeEventListener(r, e, n);
}
function b(t, r, e) {
e == null ? t.removeAttribute(r) : t.getAttribute(r) !== e && t.setAttribute(r, e);
}
const Dd = ["width", "height"];
function si(t, r) {
const e = Object.getOwnPropertyDescriptors(t.__proto__);
for (const n in r)
r[n] == null ? t.removeAttribute(n) : n === "style" ? t.style.cssText = r[n] : n === "__value" ? t.value = t[n] = r[n] : e[n] && e[n].set && Dd.indexOf(n) === -1 ? t[n] = r[n] : b(t, n, r[n]);
}
function Td(t, r) {
Object.keys(r).forEach((e) => {
Fd(t, e, r[e]);
});
}
function Fd(t, r, e) {
const n = r.toLowerCase();
n in t ? t[n] = typeof t[n] == "boolean" && e === "" ? !0 : e : r in t ? t[r] = typeof t[r] == "boolean" && e === "" ? !0 : e : b(t, r, e);
}
function xl(t) {
return /-/.test(t) ? Td : si;
}
function Ee(t) {
return Array.from(t.childNodes);
}
function df(t) {
t.claim_info === void 0 && (t.claim_info = { last_index: 0, total_claimed: 0 });
}
function hf(t, r, e, n, i = !1) {
df(t);
const o = (() => {
for (let s = t.claim_info.last_index; s < t.length; s++) {
const a = t[s];
if (r(a)) {
const l = e(a);
return l === void 0 ? t.splice(s, 1) : t[s] = l, i || (t.claim_info.last_index = s), a;
}
}
for (let s = t.claim_info.last_index - 1; s >= 0; s--) {
const a = t[s];
if (r(a)) {
const l = e(a);
return l === void 0 ? t.splice(s, 1) : t[s] = l, i ? l === void 0 && t.claim_info.last_index-- : t.claim_info.last_index = s, a;
}
}
return n();
})();
return o.claim_order = t.claim_info.total_claimed, t.claim_info.total_claimed += 1, o;
}
function _f(t, r, e, n) {
return hf(
t,
/** @returns {node is Element | SVGElement} */
(i) => i.nodeName === r,
/** @param {Element} node */
(i) => {
const o = [];
for (let s = 0; s < i.attributes.length; s++) {
const a = i.attributes[s];
e[a.name] || o.push(a.name);
}
o.forEach((s) => i.removeAttribute(s));
},
() => n(r)
);
}
function Be(t, r, e) {
return _f(t, r, e, ze);
}
function En(t, r, e) {
return _f(t, r, e, _n);
}
function ai(t, r) {
return hf(
t,
/** @returns {node is Text} */
(e) => e.nodeType === 3,
/** @param {Text} node */
(e) => {
const n = "" + r;
if (e.data.startsWith(n)) {
if (e.data.length !== n.length)
return e.splitText(n.length);
} else
e.data = n;
},
() => Qn(r),
!0
// Text nodes should not update last index since it is likely not worth it to eliminate an increasing subsequence of actual elements
);
}
function Cr(t) {
return ai(t, " ");
}
function $l(t, r, e) {
for (let n = e; n < t.length; n += 1) {
const i = t[n];
if (i.nodeType === 8 && i.textContent.trim() === r)
return n;
}
return -1;
}
function Sl(t, r) {
const e = $l(t, "HTML_TAG_START", 0), n = $l(t, "HTML_TAG_END", e + 1);
if (e === -1 || n === -1)
return new co(r);
df(t);
const i = t.splice(e, n - e + 1);
w(i[0]), w(i[i.length - 1]);
const o = i.slice(1, i.length - 1);
if (o.length === 0)
return new co(r);
for (const s of o)
s.claim_order = t.claim_info.total_claimed, t.claim_info.total_claimed += 1;
return new co(r, o);
}
function Ti(t, r) {
r = "" + r, t.data !== r && (t.data = /** @type {string} */
r);
}
function ea(t, r) {
t.value = r == null ? "" : r;
}
function Y(t, r, e, n) {
e == null ? t.style.removeProperty(r) : t.style.setProperty(r, e, "");
}
function ta(t, r, e) {
for (let n = 0; n < t.options.length; n += 1) {
const i = t.options[n];
if (i.__value === r) {
i.selected = !0;
return;
}
}
(!e || r !== void 0) && (t.selectedIndex = -1);
}
function Md(t) {
const r = t.querySelector(":checked");
return r && r.__value;
}
function gf(t, r, { bubbles: e = !1, cancelable: n = !1 } = {}) {
return new CustomEvent(t, { detail: r, bubbles: e, cancelable: n });
}
class Pd {
constructor(r = !1) {
/**
* @private
* @default false
*/
sr(this, "is_svg", !1);
/** parent for creating node */
sr(this, "e");
/** html tag nodes */
sr(this, "n");
/** target */
sr(this, "t");
/** anchor */
sr(this, "a");
this.is_svg = r, this.e = this.n = null;
}
/**
* @param {string} html
* @returns {void}
*/
c(r) {
this.h(r);
}
/**
* @param {string} html
* @param {HTMLElement | SVGElement} target
* @param {HTMLElement | SVGElement} anchor
* @returns {void}
*/
m(r, e, n = null) {
this.e || (this.is_svg ? this.e = _n(
/** @type {keyof SVGElementTagNameMap} */
e.nodeName
) : this.e = ze(
/** @type {keyof HTMLElementTagNameMap} */
e.nodeType === 11 ? "TEMPLATE" : e.nodeName
), this.t = e.tagName !== "TEMPLATE" ? e : (
/** @type {HTMLTemplateElement} */
e.content
), this.c(r)), this.i(n);
}
/**
* @param {string} html
* @returns {void}
*/
h(r) {
this.e.innerHTML = r, this.n = Array.from(
this.e.nodeName === "TEMPLATE" ? this.e.content.childNodes : this.e.childNodes
);
}
/**
* @returns {void} */
i(r) {
for (let e = 0; e < this.n.length; e += 1)
Id(this.t, this.n[e], r);
}
/**
* @param {string} html
* @returns {void}
*/
p(r) {
this.d(), this.h(r), this.i(this.a);
}
/**
* @returns {void} */
d() {
this.n.forEach(w);
}
}
class co extends Pd {
constructor(e = !1, n) {
super(e);
/** @type {Element[]} hydration claimed nodes */
sr(this, "l");
this.e = this.n = null, this.l = n;
}
/**
* @param {string} html
* @returns {void}
*/
c(e) {
this.l ? this.n = this.l : super.c(e);
}
/**
* @returns {void} */
i(e) {
for (let n = 0; n < this.n.length; n += 1)
ee(this.t, this.n[n], e);
}
}
function ra(t, r) {
return new t(r);
}
const ds = /* @__PURE__ */ new Map();
let hs = 0;
function Nd(t) {
let r = 5381, e = t.length;
for (; e--; ) r = (r << 5) - r ^ t.charCodeAt(e);
return r >>> 0;
}
function zd(t, r) {
const e = { stylesheet: Sd(r), rules: {} };
return ds.set(t, e), e;
}
function _s(t, r, e, n, i, o, s, a = 0) {
const l = 16.666 / n;
let c = `{
`;
for (let v = 0; v <= 1; v += l) {
const k = r + (e - r) * o(v);
c += v * 100 + `%{${s(k, 1 - k)}}
`;
}
const u = c + `100% {${s(e, 1 - e)}}
}`, f = `__svelte_${Nd(u)}_${a}`, h = ff(t), { stylesheet: p, rules: y } = ds.get(h) || zd(h, t);
y[f] || (y[f] = !0, p.insertRule(`@keyframes ${f} ${u}`, p.cssRules.length));
const _ = t.style.animation || "";
return t.style.animation = `${_ ? `${_}, ` : ""}${f} ${n}ms linear ${i}ms 1 both`, hs += 1, f;
}
function gs(t, r) {
const e = (t.style.animation || "").split(", "), n = e.filter(
r ? (o) => o.indexOf(r) < 0 : (o) => o.indexOf("__svelte") === -1
// remove all Svelte animations
), i = e.length - n.length;
i && (t.style.animation = n.join(", "), hs -= i, hs || Od());
}
function Od() {
Cl(() => {
hs || (ds.forEach((t) => {
const { ownerNode: r } = t.stylesheet;
r && w(r);
}), ds.clear());
});
}
let Vo;
function So(t) {
Vo = t;
}
function po() {
if (!Vo) throw new Error("Function called outside component initialization");
return Vo;
}
function Un(t) {
po().$$.on_mount.push(t);
}
function Fs(t) {
po().$$.after_update.push(t);
}
function vn(t) {
po().$$.on_destroy.push(t);
}
function Ld() {
const t = po();
return (r, e, { cancelable: n = !1 } = {}) => {
const i = t.$$.callbacks[r];
if (i) {
const o = gf(
/** @type {string} */
r,
e,
{ cancelable: n }
);
return i.slice().forEach((s) => {
s.call(t, o);
}), !o.defaultPrevented;
}
return !0;
};
}
function Wi(t, r) {
return po().$$.context.set(t, r), r;
}
function Jr(t) {
return po().$$.context.get(t);
}
function Sn(t, r) {
const e = t.$$.callbacks[r.type];
e && e.slice().forEach((n) => n.call(this, r));
}
const oo = [], Or = [];
let uo = [];
const na = [], pf = /* @__PURE__ */ Promise.resolve();
let tl = !1;
function mf() {
tl || (tl = !0, pf.then(bf));
}
function Cn() {
return mf(), pf;
}
function Hn(t) {
uo.push(t);
}
const Gs = /* @__PURE__ */ new Set();
let ro = 0;
function bf() {
if (ro !== 0)
return;
const t = Vo;
do {
try {
for (; ro < oo.length; ) {
const r = oo[ro];
ro++, So(r), Rd(r.$$);
}
} catch (r) {
throw oo.length = 0, ro = 0, r;
}
for (So(null), oo.length = 0, ro = 0; Or.length; ) Or.pop()();
for (let r = 0; r < uo.length; r += 1) {
const e = uo[r];
Gs.has(e) || (Gs.add(e), e());
}
uo.length = 0;
} while (oo.length);
for (; na.length; )
na.pop()();
tl = !1, Gs.clear(), So(t);
}
function Rd(t) {
if (t.fragment !== null) {
t.update(), Xr(t.before_update);
const r = t.dirty;
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, r), t.after_update.forEach(Hn);
}
}
function Bd(t) {
const r = [], e = [];
uo.forEach((n) => t.indexOf(n) === -1 ? r.push(n) : e.push(n)), e.forEach((n) => n()), uo = r;
}
let Ao;
function Vl() {
return Ao || (Ao = Promise.resolve(), Ao.then(() => {
Ao = null;
})), Ao;
}
function Yi(t, r, e) {
t.dispatchEvent(gf(`${r ? "intro" : "outro"}${e}`));
}
const qo = /* @__PURE__ */ new Set();
let _i;
function _r() {
_i = {
r: 0,
c: [],
p: _i
// parent group
};
}
function gr() {
_i.r || Xr(_i.c), _i = _i.p;
}
function X(t, r) {
t && t.i && (qo.delete(t), t.i(r));
}
function ue(t, r, e, n) {
if (t && t.o) {
if (qo.has(t)) return;
qo.add(t), _i.c.push(() => {
qo.delete(t), n && (e && t.d(1), n());
}), t.o(r);
} else n && n();
}
const Il = { duration: 0 };
function Ms(t, r, e) {
const n = { direction: "in" };
let i = r(t, e, n), o = !1, s, a, l = 0;
function c() {
s && gs(t, s);
}
function u() {
const {
delay: h = 0,
duration: p = 300,
easing: y = Cs,
tick: _ = P,
css: v
} = i || Il;
v && (s = _s(t, 0, 1, p, h, y, v, l++)), _(0, 1);
const k = Al() + h, x = k + p;
a && a.abort(), o = !0, Hn(() => Yi(t, !0, "start")), a = jl((Z) => {
if (o) {
if (Z >= x)
return _(1, 0), Yi(t, !0, "end"), c(), o = !1;
if (Z >= k) {
const R = y((Z - k) / p);
_(R, 1 - R);
}
}
return o;
});
}
let f = !1;
return {
start() {
f || (f = !0, gs(t), zr(i) ? (i = i(n), Vl().then(u)) : u());
},
invalidate() {
f = !1;
},
end() {
o && (c(), o = !1);
}
};
}
function yf(t, r, e) {
const n = { direction: "out" };
let i = r(t, e, n), o = !0, s;
const a = _i;
a.r += 1;
let l;
function c() {
const {
delay: u = 0,
duration: f = 300,
easing: h = Cs,
tick: p = P,
css: y
} = i || Il;
y && (s = _s(t, 1, 0, f, u, h, y));
const _ = Al() + u, v = _ + f;
Hn(() => Yi(t, !1, "start")), "inert" in t && (l = /** @type {HTMLElement} */
t.inert, t.inert = !0), jl((k) => {
if (o) {
if (k >= v)
return p(0, 1), Yi(t, !1, "end"), --a.r || Xr(a.c), !1;
if (k >= _) {
const x = h((k - _) / f);
p(1 - x, x);
}
}
return o;
});
}
return zr(i) ? Vl().then(() => {
i = i(n), c();
}) : c(), {
end(u) {
u && "inert" in t && (t.inert = l), u && i.tick && i.tick(1, 0), o && (s && gs(t, s), o = !1);
}
};
}
function ia(t, r, e, n) {
let o = r(t, e, { direction: "both" }), s = n ? 0 : 1, a = null, l = null, c = null, u;
function f() {
c && gs(t, c);
}
function h(y, _) {
const v = (
/** @type {Program['d']} */
y.b - s
);
return _ *= Math.abs(v), {
a: s,
b: y.b,
d: v,
duration: _,
start: y.start,
end: y.start + _,
group: y.group
};
}
function p(y) {
const {
delay: _ = 0,
duration: v = 300,
easing: k = Cs,
tick: x = P,
css: Z
} = o || Il, R = {
start: Al() + _,
b: y
};
y || (R.group = _i, _i.r += 1), "inert" in t && (y ? u !== void 0 && (t.inert = u) : (u = /** @type {HTMLElement} */
t.inert, t.inert = !0)), a || l ? l = R : (Z && (f(), c = _s(t, s, y, v, _, k, Z)), y && x(0, 1), a = h(R, v), Hn(() => Yi(t, y, "start")), jl((fe) => {
if (l && fe > l.start && (a = h(l, v), l = null, Yi(t, a.b, "start"), Z && (f(), c = _s(
t,
s,
a.b,
a.duration,
0,
k,
o.css
))), a) {
if (fe >= a.end)
x(s = a.b, 1 - s), Yi(t, a.b, "end"), l || (a.b ? f() : --a.group.r || Xr(a.group.c)), a = null;
else if (fe >= a.start) {
const ae = fe - a.start;
s = a.a + a.d * k(ae / a.duration), x(s, 1 - s);
}
}
return !!(a || l);
}));
}
return {
run(y) {
zr(o) ? Vl().then(() => {
o = o({ direction: y ? "in" : "out" }), p(y);
}) : p(y);
},
end() {
f(), a = l = null;
}
};
}
function cr(t) {
return (t == null ? void 0 : t.length) !== void 0 ? t : Array.from(t);
}
function vf(t, r) {
ue(t, 1, 1, () => {
r.delete(t.key);
});
}
function wf(t, r, e, n, i, o, s, a, l, c, u, f) {
let h = t.length, p = o.length, y = h;
const _ = {};
for (; y--; ) _[t[y].key] = y;
const v = [], k = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map(), Z = [];
for (y = p; y--; ) {
const G = f(i, o, y), te = e(G);
let q = s.get(te);
q ? Z.push(() => q.p(G, r)) : (q = c(te, G), q.c()), k.set(te, v[y] = q), te in _ && x.set(te, Math.abs(y - _[te]));
}
const R = /* @__PURE__ */ new Set(), fe = /* @__PURE__ */ new Set();
function ae(G) {
X(G, 1), G.m(a, u), s.set(G.key, G), u = G.first, p--;
}
for (; h && p; ) {
const G = v[p - 1], te = t[h - 1], q = G.key, I = te.key;
G === te ? (u = G.first, h--, p--) : k.has(I) ? !s.has(q) || R.has(q) ? ae(G) : fe.has(I) ? h-- : x.get(q) > x.get(I) ? (fe.add(q), ae(G)) : (R.add(I), h--) : (l(te, s), h--);
}
for (; h--; ) {
const G = t[h];
k.has(G.key) || l(G, s);
}
for (; p; ) ae(v[p - 1]);
return Xr(Z), v;
}
function mo(t, r) {
const e = {}, n = {}, i = { $$scope: 1 };
let o = t.length;
for (; o--; ) {
const s = t[o], a = r[o];
if (a) {
for (const l in s)
l in a || (n[l] = 1);
for (const l in a)
i[l] || (e[l] = a[l], i[l] = 1);
t[o] = a;
} else
for (const l in s)
i[l] = 1;
}
for (const s in n)
s in e || (e[s] = void 0);
return e;
}
function Qt(t) {
t && t.c();
}
function $t(t, r) {
t && t.l(r);
}
function Kt(t, r, e) {
const { fragment: n, after_update: i } = t.$$;
n && n.m(r, e), Hn(() => {
const o = t.$$.on_mount.map(lf).filter(zr);
t.$$.on_destroy ? t.$$.on_destroy.push(...o) : Xr(o), t.$$.on_mount = [];
}), i.forEach(Hn);
}
function Xt(t, r) {
const e = t.$$;
e.fragment !== null && (Bd(e.after_update), Xr(e.on_destroy), e.fragment && e.fragment.d(r), e.on_destroy = e.fragment = null, e.ctx = []);
}
function Hd(t, r) {
t.$$.dirty[0] === -1 && (oo.push(t), mf(), t.$$.dirty.fill(0)), t.$$.dirty[r / 31 | 0] |= 1 << r % 31;
}
function Zr(t, r, e, n, i, o, s = null, a = [-1]) {
const l = Vo;
So(t);
const c = t.$$ = {
fragment: null,
ctx: [],
// state
props: o,
update: P,
not_equal: i,
bound: Zl(),
// lifecycle
on_mount: [],
on_destroy: [],
on_disconnect: [],
before_update: [],
after_update: [],
context: new Map(r.context || (l ? l.$$.context : [])),
// everything else
callbacks: Zl(),
dirty: a,
skip_bound: !1,
root: r.target || l.$$.root
};
s && s(c.root);
let u = !1;
if (c.ctx = e ? e(t, r.props || {}, (f, h, ...p) => {
const y = p.length ? p[0] : h;
return c.ctx && i(c.ctx[f], c.ctx[f] = y) && (!c.skip_bound && c.bound[f] && c.bound[f](y), u && Hd(t, f)), h;
}) : [], c.update(), u = !0, Xr(c.before_update), c.fragment = n ? n(c.ctx) : !1, r.target) {
if (r.hydrate) {
kd();
const f = Ee(r.target);
c.fragment && c.fragment.l(f), f.forEach(w);
} else
c.fragment && c.fragment.c();
r.intro && X(t.$$.fragment), Kt(t, r.target, r.anchor), Ed(), bf();
}
So(l);
}
class Qr {
constructor() {
/**
* ### PRIVATE API
*
* Do not use, may change at any time
*
* @type {any}
*/
sr(this, "$$");
/**
* ### PRIVATE API
*
* Do not use, may change at any time
*
* @type {any}
*/
sr(this, "$$set");
}
/** @returns {void} */
$destroy() {
Xt(this, 1), this.$destroy = P;
}
/**
* @template {Extract<keyof Events, string>} K
* @param {K} type
* @param {((e: Events[K]) => void) | null | undefined} callback
* @returns {() => void}
*/
$on(r, e) {
if (!zr(e))
return P;
const n = this.$$.callbacks[r] || (this.$$.callbacks[r] = []);
return n.push(e), () => {
const i = n.indexOf(e);
i !== -1 && n.splice(i, 1);
};
}
/**
* @param {Partial<Props>} props
* @returns {void}
*/
$set(r) {
this.$$set && !vd(r) && (this.$$.skip_bound = !0, this.$$set(r), this.$$.skip_bound = !1);
}
}
const Wd = "4";
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Wd);
const no = [];
function Ud(t, r) {
return {
subscribe: gi(t, r).subscribe
};
}
function gi(t, r = P) {
let e;
const n = /* @__PURE__ */ new Set();
function i(a) {
if (yd(t, a) && (t = a, e)) {
const l = !no.length;
for (const c of n)
c[1](), no.push(c, t);
if (l) {
for (let c = 0; c < no.length; c += 2)
no[c][0](no[c + 1]);
no.length = 0;
}
}
}
function o(a) {
i(a(t));
}
function s(a, l = P) {
const c = [a, l];
return n.add(c), n.size === 1 && (e = r(i, o) || P), a(t), () => {
n.delete(c), n.size === 0 && e && (e(), e = null);
};
}
return { set: i, update: o, subscribe: s };
}
function bo(t, r, e) {
const n = !Array.isArray(t), i = n ? [t] : t;
if (!i.every(Boolean))
throw new Error("derived() expects stores as input, got a falsy value");
const o = r.length < 2;
return Ud(e, (s, a) => {
let l = !1;
const c = [];
let u = 0, f = P;
const h = () => {
if (u)
return;
f();
const y = r(n ? c[0] : c, s, a);
o ? s(y) : f = zr(y) ? y : P;
}, p = i.map(
(y, _) => U(
y,
(v) => {
c[_] = v, u &= ~(1 << _), l && h();
},
() => {
u |= 1 << _;
}
)
);
return l = !0, h(), function() {
Xr(p), f(), l = !1;
};
});
}
const Gd = "divkit-6d515", Yd = "divkit-27458", qd = "divkit-82db1", Jd = "divkit-be734", Kd = "divkit-9a652", dr = {
root_platform_desktop: Gd,
root__clickable: Yd,
"root__clickable-no-transition": "divkit-3bb57",
"root__any-actions": "divkit-ba614",
root: qd,
root__selectable: Jd,
root__unselectable: Kd,
"root__only-desktop": "divkit-316e7",
"root_restrict-scroll": "divkit-0a135",
"root_disabled-context-menu": "divkit-f5cb3"
}, gn = Symbol("root");
function $(t, r = {}) {
const e = t;
return e.level = r.level || "error", r.additional && (e.additional = r.additional), e;
}
const Xd = "divkit-bf0ea", Zd = "divkit-27458", Qd = "divkit-05991", xd = "divkit-80cac", $d = "divkit-90c49", eh = "divkit-b33bc", th = "divkit-f6ff9", ps = {
outer: Xd,
root__clickable: Zd,
"root__clickable-no-transition": "divkit-3bb57",
"outer_hide-on-transition-in": "divkit-c5f24",
"outer_halign-self_start": "divkit-002ec",
"outer_halign-self_center": "divkit-204f8",
"outer_halign-self_end": "divkit-bd7ba",
"outer_halign-self_stretch": "divkit-02d12",
"outer_valign-self_start": "divkit-fd8aa",
"outer_valign-self_center": "divkit-62df2",
"outer_valign-self_end": "divkit-819a0",
"outer_valign-self_stretch": "divkit-8a331",
"outer_parent-flex_vertical": "divkit-46b27",
"outer_parent-flex_horizontal": "divkit-be075",
"outer_valign-self_baseline": "divkit-2b876",
outer_width_content: Qd,
outer_height_content: xd,
"outer_width-constrained": "divkit-5bdb7",
"outer_parent-grid": "divkit-47ef2",
"outer_height-constrained": "divkit-351c8",
"outer_parent-overlap": "divkit-747b0",
"outer_scroll-snap_start": "divkit-91fd4",
"outer_scroll-snap_center": "divkit-c525d",
"outer_scroll-snap_end": "divkit-67470",
outer__border: $d,
outer_visibility_invisible: eh,
outer_visibility_gone: th,
"outer_has-action-animation": "divkit-4d4f3",
"outer_has-custom-focus": "divkit-b630e"
};
function Bt(t) {
if (!t)
return;
let r = "";
for (const e in t)
if (t.hasOwnProperty(e)) {
if (!t[e] && t[e] !== 0)
continue;
r && (r += ";"), r += e + ":" + String(t[e]);
}
return r || void 0;
}
function Re(t) {
if (typeof t != "number" && typeof t != "string" || !t)
return "0";
const r = Number(t);
return Number.isNaN(r) ? "0" : Math.ceil(r * 1e3) / 1e4 + "em";
}
function hn(t) {
let r = Re(t);
return r === "0" && (r += "em"), r;
}
function kf(t, r) {
for (; t.length < r; )
t = "0" + t;
return t;
}
function Fr(t, r = 1, e = "transparent") {
if (t = (typeof t == "string" && t || "").toLowerCase(), t.charAt(0) !== "#")
return e;
const n = pi(t);
return n ? (n.a *= r, Dl(n)) : e;
}
function rh(t, r, e = "transparent") {
if (t = (typeof t == "string" && t || "").toLowerCase(), t.charAt(0) !== "#")
return e;
const n = pi(t);
return n ? (n.a = r, Dl(n)) : e;
}
function Dl(t) {
return t.a === 255 ? `#${[t.r, t.g, t.b].map((r) => kf(Math.round(r).toString(16), 2)).join("")}` : `rgba(${t.r},${t.g},${t.b},${(t.a / 255).toFixed(2)})`;
}
function pi(t) {
const r = (
// #AARRGGBB
t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i) || // #ARGB
t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i) || // #RRGGBB
t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i) || // #RGB
t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i)
);
if (r) {
if (r.length === 5) {
const [c, u, f, h, p] = r, y = f.length === 2 ? f : f + f, _ = h.length === 2 ? h : h + h, v = p.length === 2 ? p : p + p, k = u.length === 2 ? u : u + u;
return {
a: parseInt(k, 16),
r: parseInt(y, 16),
g: parseInt(_, 16),
b: parseInt(v, 16)
};
}
const [e, n, i, o] = r, s = n.length === 2 ? n : n + n, a = i.length === 2 ? i : i + i, l = o.length === 2 ? o : o + o;
return {
a: 255,
r: parseInt(s, 16),
g: parseInt(a, 16),
b: parseInt(l, 16)
};
}
return null;
}
function rl(t) {
let r = String(t);
return r.indexOf("&") > -1 && (r = r.replace(/&/g, "&")), r.indexOf("<") > -1 && (r = r.replace(/</g, "<")), r.indexOf(">") > -1 && (r = r.replace(/>/g, ">")), r.indexOf('"') > -1 && (r = r.replace(/"/g, """)), r;
}
const wi = Boolean;
function Ps(t, r) {
if (t.length === 1 && t[0].type === "solid")
return ih({
bg: t[0]
});
const e = t.map((n) => {
if (n.type === "solid")
return nh({
bg: n
});
if (n.type === "gradient")
return oh({
bg: n
});
if (n.type === "image")
return ah({
bg: n,
direction: r
});
if (n.type === "radial_gradient")
return lh({
bg: n
});
}).filter(wi).reverse().reduce(function(n, i) {
return n.image.push(i.image), n.size.push(i.size || "auto"), n.position.push(i.pos || "50% 50%"), n;
}, {
image: [],
size: [],
position: []
});
return {
image: e.image.join(","),
size: e.size.join(","),
position: e.position.join(",")
};
}
function nh(t) {
const r = Fr(t.bg.color || "transparent");
return {
size: void 0,
pos: void 0,
image: `linear-gradient(to bottom,${r},${r})`
};
}
function ih(t) {
return {
color: Fr(t.bg.color || "transparent"),
size: "auto",
position: "50% 50%"
};
}
function Ef(t) {
return t.every((n) => n.color && typeof n.position == "number" && n.position >= 0 && n.position <= 1) ? t.sort((n, i) => Math.abs(n.position - i.position) < 1e-6 ? 0 : n.position - i.position).map((n) => `${Fr(n.color)} ${(n.position * 100).toFixed(2)}%`).join(",") : void 0;
}
function oh(t) {
var n, i, o, s;
if (!Array.isArray((n = t.bg) == null ? void 0 : n.colors) && !Array.isArray((i = t.bg) == null ? void 0 : i.color_map))
return;
const r = (o = t.bg.colors) == null ? void 0 : o.filter(wi);
if (!(r != null && r.length) && !((s = t.bg) != null && s.color_map))
return;
let e;
if (t.bg.color_map) {
const a = Ef(t.bg.color_map);
if (!a)
return;
e = "linear-gradient(" + (90 - Number(t.bg.angle || 0) + "deg") + "," + a + ")";
} else {
if (!r)
return;
e = "linear-gradient(" + (90 - Number(t.bg.angle || 0) + "deg") + "," + r.map((a) => Fr(a)).join(",") + ")";
}
return {
size: void 0,
pos: void 0,
image: e
};
}
const sh = {
nearest_corner: "closest-corner",
farthest_corner: "farthest-corner",
nearest_side: "closest-side",
farthest_side: "farthest-side"
};
function oa(t) {
if (t && typeof t == "object" && "type" in t && t.value !== void 0) {
if (t.type === "fixed")
return hn(t.value);
if (t.type === "relative")
return `${Number(t.value) * 100}%`;
}
return "50%";
}
function lh(t) {
var a, l, c, u;
if (!Array.isArray((a = t.bg) == null ? void 0 : a.colors) && !Array.isArray((l = t.bg) == null ? void 0 : l.color_map))
return;
const r = (c = t.bg.colors) == null ? void 0 : c.filter(wi);
if (!(r != null && r.length) && !((u = t.bg) != null && u.color_map))
return;
let e;
if (t.bg.color_map ? e = Ef(t.bg.color_map) : r && (e = r.map((f) => Fr(f)).join(",")), !e)
return;
const n = t.bg.radius;
let i;
n && typeof n == "object" && "type" in n && n.value !== void 0 && (n.type === "fixed" ? i = hn(n.value) : n.type === "relative" && (i = sh[n.value]));
const o = oa(t.bg.center_x), s = oa(t.bg.center_y);
return {
size: void 0,
pos: void 0,
image: `radial-gradient(circle ${i || "farthest-corner"} at ${o} ${s},` + e + ")"
};
}
function ah(t) {
var e;
const r = (e = t.bg) == null ? void 0 : e.image_url;
if (r)
return {
size: Af(t.bg.scale),
pos: Cf(t.bg, t.direction),
image: 'url("' + rl(r) + '")'
};
}
function Af(t) {
return t === "fit" ? "contain" : t === "stretch" ? "fill" : t === "no_scale" ? "none" : "cover";
}
function Cf(t, r) {
let e, n;
return t.content_alignment_horizontal === "left" || r === "ltr" && t.content_alignment_horizontal === "start" || r === "rtl" && t.content_alignment_horizontal === "end" ? e = "0%" : t.content_alignment_horizontal === "right" || r === "ltr" && t.content_alignment_horizontal === "end" || r === "rtl" && t.content_alignment_horizontal === "start" ? e = "100%" : e = "50%", t.content_alignment_vertical === "top" ? n = "0%" : t.content_alignment_vertical === "bottom" ? n = "100%" : n = "50%", e + " " + n;
}
function on(t, r) {
const e = Number(t);
return Number.isNaN(e) || e < 0 ? r : e;
}
function sa(t, r, e) {
return typeof r == "number" && (t && r > 0 && r <= 100 || !t && r >= 0 && r < 100) ? r : e;
}
function ch(t) {
return t.is_enabled !== 0 && t.is_enabled !== !1 && t.index !== void 0;
}
function uh(t, {
visibilityActions: r,
disappearActions: e,
rootCtx: n,
componentContext: i
}) {
const o = [];
r && r.forEach((p) => {
o.push({
type: "visibility",
index: o.length,
action: p,
visible: !1,
count: 0,
finished: !1
});
}), e && e.forEach((p) => {
o.push({
type: "disappear",
index: o.length,
action: p,
// false, so disappear only works after the element becomes visible
visible: !1,
count: 0,
finished: !1
});
});
const s = o.map((p, y) => {
const _ = p.type === "visibility";
return i.getDerivedFromVars({
index: y,
visibility_percentage: p.action.visibility_percentage,
visibility_duration: _ ? p.action.visibility_duration : p.action.disappear_duration,
log_limit: p.action.log_limit,
is_enabled: p.action.is_enabled
}, void 0, !0);
});
let a;
const l = () => {
a && a.disconnect(), o.forEach((p) => {
p.timer && clearTimeout(p.timer);
});
}, c = bo(s, (p) => p);
let u;
const f = (p) => {
const y = p.type === "visibility";
i.execAnyActions([p.action], {
logType: y ? "visible" : "disappear",
node: t,
processUrls: !1
});
}, h = c.subscribe((p) => {
u = p.filter(ch);
const y = {};
u.forEach((k) => {
y[k.index] = k;
}), l();
const _ = [...new Set(u.map((k) => {
const x = o[k.index].type === "visibility";
return sa(
x,
k.visibility_percentage,
x ? 50 : 0
) / 100;
}))];
if (!_.length)
return;
const v = (k) => {
k.forEach((x) => {
u.forEach((Z) => {
const R = o[Z.index], fe = R.type === "visibility", ae = sa(
fe,
Z.visibility_percentage,
fe ? 50 : 0
);
let G;
ae === 0 ? G = x.intersectionRatio >= 1e-12 : G = x.intersectionRatio >= ae / 100, (fe ? !R.visible && G : R.visible && !G) ? R.finished || (R.timer = setTimeout(() => {
++R.count;
const I = Z.log_limit === 0 ? 1 / 0 : Z.log_limit || 1;
R.count >= I && (R.finished = !0), f(R);
}, on(Z.visibility_duration, 800))) : (fe ? !G : G) && R.timer && clearTimeout(R.timer), R.visible = G;
});
});
};
a = new IntersectionObserver(v, {
threshold: _
}), a.observe(t);
});
return {
destroy() {
u == null || u.forEach((p) => {
const y = o[p.index];
!y || y.type !== "disappear" || !y.visible || y.finished || n.registerTimeout(window.setTimeout(() => {
f(y);
}, p.visibility_duration));
}), l(), h();
}
};
}
function la(t, r) {
r && t.push(r);
}
function kt(t, r, e) {
const n = [];
la(n, r[t]);
for (const i in e)
if (e.hasOwnProperty(i)) {
const o = e[i];
if (o) {
const s = `${t}_${i}` + (typeof o == "string" ? `_${o}` : "");
la(n, r[s]);
}
}
return n.join(" ");
}
const Tl = Symbol("state");
function li(t, r) {
var s, a;
const e = t.top || 0, n = ((s = r === "ltr" ? t.end : t.start) != null ? s : t.right) || 0, i = t.bottom || 0, o = ((a = r === "ltr" ? t.start : t.end) != null ? a : t.left) || 0;
return e === 0 && n === 0 && i === 0 && o === 0 ? "" : Re(e) + " " + Re(n) + " " + Re(i) + " " + Re(o);
}
function Ns(t) {
if (typeof t != "number" && typeof t != "string")
return !1;
const r = Number(t);
return !Number.isNaN(r);
}
function Fn(t) {
return Ns(t) && t >= 0;
}
function ms(t, r, e) {
var i, o;
if (!t)
return e;
const n = [
t.top,
(i = r === "ltr" ? t.end : t.start) != null ? i : t.right,
t.bottom,
(o = r === "ltr" ? t.start : t.end) != null ? o : t.left
];
for (let s = 0; s < n.length; ++s)
if (n[s] && !Fn(n[s]))
return e;
return li(t, r);
}
function fh(t, r) {
return !Fn(t) || t === void 0 || t > 1 ? r : Number(t);
}
const dh = Object.prototype.hasOwnProperty;
function Fl(t, r) {
if (Object.is(t, r))
return !0;
if (typeof t != "object" || t === null || typeof r != "object" || r === null)
return Object.is(t, r);
const e = Object.keys(t), n = Object.keys(r);
if (e.length !== n.length)
return !1;
for (let i = 0; i < e.length; i++) {
const o = e[i];
if (!dh.call(r, o) || !Fl(t[o], r[o]))
return !1;
}
return !0;
}
function Pi(t, r) {
return Fl(t, r) ? r : t;
}
function hh(t, r) {
return t === "visible" || t === "invisible" || t === "gone" ? t : r;
}
function jf(t, r) {
return t === "linear" || t === "ease" || t === "ease_in_out" || t === "ease_in" || t === "ease_out" ? t : r;
}
function lo(t, r) {
const e = Number(t);
return Number.isNaN(e) ? r : e;
}
function Ml(t) {
const r = [];
return t.name === "set" ? (t.items || []).forEach((e) => {
r.push(...Ml(e));
}) : r.push(t), r;
}
function yo(t, r) {
if (!t || typeof t != "object")
return r;
const e = [
"top",
"right",
"bottom",
"left"
];
for (let n = 0; n < e.length; ++n)
if (t[e[n]] && !Fn(t[e[n]]))
return r;
return t;
}
function _h(t, r) {
if (!t && !r)
return {};
if (!r)
return t;
if (!t)
return r;
const e = {};
return [
"top",
"right",
"bottom",
"left",
"start",
"end"
].forEach((n) => {
const i = t[n];
i && (e[n] = i);
const o = r[n];
o && (e[n] = (e[n] || 0) + o);
}), e;
}
function gh(t, r) {
const e = [
t["top-left"],
t["top-right"],
t["bottom-right"],
t["bottom-left"]
];
for (let n = 0; n < e.length; ++n)
if (e[n] && !Fn(e[n]))
return r;
return t;
}
function Jo(t, r = 0, e = 10) {
return [
t["top-left"],
t["top-right"],
t["bottom-right"],
t["bottom-left"]
].map((n) => Re((n || r) / e * 10)).join(" ");
}
function ph(t) {
var r, e, n, i, o, s;
return Re(((e = (r = t.offset) == null ? void 0 : r.x) == null ? void 0 : e.value) || 0) + " " + Re(((i = (n = t.offset) == null ? void 0 : n.y) == null ? void 0 : i.value) || 0) + " " + Re((o = t.blur) != null ? o : 2) + " " + Fr(t.color || "#000000", (s = t.alpha) != null ? s : 0.19);
}
function mh(t, r) {
var e, n, i, o, s, a;
return "drop-shadow(" + Fr(t.color || "#000000", (e = t.alpha) != null ? e : 0.19) + " " + Re((((i = (n = t.offset) == null ? void 0 : n.x) == null ? void 0 : i.value) || 0) * 10 / r) + " " + Re((((s = (o = t.offset) == null ? void 0 : o.y) == null ? void 0 : s.value) || 0) * 10 / r) + " " + Re(((a = t.blur) != null ? a : 2) * 10 / r) + ")";
}
function bs(t) {
return t.is_enabled !== 0 && t.is_enabled !== !1;
}
let Ys;
function zs() {
return typeof matchMedia > "u" ? !1 : (Ys || (Ys = window.matchMedia("(prefers-reduced-motion)")), Ys.matches);
}
const bh = 8, yh = (t, r, e, n) => {
let i;
return (e || n) && typeof ResizeObserver < "u" && (i = new ResizeObserver(async () => {
let o = 0;
const s = {}, a = (c, u) => {
if (c) {
const f = r.getVariable(c, "integer");
if (f) {
if (u = Math.round(u), s[c] || (s[c] = /* @__PURE__ */ new Set()), !s[c].has(u))
return f.setValue(u), s[c].add(u), !0;
} else {
const h = new Error("Missing variable");
h.level = "error", h.additional = {
variableName: c
}, r.logError(h);
}
}
return !1;
}, l = () => {
if (!t)
return !1;
const c = t.getBoundingClientRect(), u = a(e, c.width), f = a(n, c.height);
return u || f;
};
for (; l(); ) {
if (++o > bh) {
const c = new Error("Recursive layout in size_provider");
c.level = "warn", c.additional = {
widthVariableName: e,
heightVariableName: n
}, r.logError(c);
break;
}
await Cn();
}
}), i.observe(t)), i;
}, Pl = Symbol("enabled");
function Vn(t, r) {
return t === 1 || t === 0 || t === !1 || t === !0 ? !!t : r;
}
function ho(t) {
return [
t.state_description,
t.description,
t.hint
].filter(Boolean).join(", ");
}
const aa = 1, Ni = 2, vh = "divkit-ee5cc", ca = {
actionable__button: vh
};
function wh() {
}
const Ji = Symbol("action");
function nl(t) {
if (t.startsWith("tel:"))
return "tel";
const r = /^([^/]+):\/\//.exec(t);
return r && r[1] || "";
}
function il(t, r) {
return r.has(t);
}
function kh(t) {
var f;
let r, e, n, i, o, s;
const a = (
/*#slots*/
t[30].default
), l = js(
a,
t,
/*$$scope*/
t[29],
null
);
let c = [
{
class: e = /*cls*/
t[2] + " " + /*longTapActions*/
((f = t[1]) != null && f.length ? dr["root_disabled-context-menu"] : "") + " " + /*hasAnyActions*/
(t[13] ? dr["root__any-actions"] : "")
},
{ style: (
/*style*/
t[3]
) },
{ role: (
/*role*/
t[10]
) },
{ "aria-checked": (
/*isChecked*/
t[14]
) },
{
"aria-hidden": n = /*ariaHidden*/
t[11] || void 0
},
/*attrs*/
t[4]
], u = {};
for (let h = 0; h < c.length; h += 1)
u = xi(u, c[h]);
return {
c() {
r = ze("span"), l && l.c(), this.h();
},
l(h) {
r = Be(h, "SPAN", {
class: !0,
style: !0,
role: !0,
"aria-checked": !0,
"aria-hidden": !0
});
var p = Ee(r);
l && l.l(p), p.forEach(w), this.h();
},
h() {
si(r, u);
},
m(h, p) {
ee(h, r, p), l && l.m(r, null), t[48](r), i = !0, o || (s = [
Ds(
/*use*/
t[5].call(null, r)
),
Ue(
r,
"click",
/*click_handler_2*/
t[41]
),
Ue(
r,
"keydown",
/*onKeydown*/
t[16]
),
Ue(
r,
"focus",
/*focus_handler_2*/
t[42]
),
Ue(
r,
"blur",
/*blur_handler_2*/
t[43]
),
Ue(
r,
"pointerdown",
/*pointerdown_handler_2*/
t[44]
),
Ue(
r,
"wheel",
/*wheel_handler_2*/
t[45]
)
], o = !0);
},
p(h, p) {
var y;
l && l.p && (!i || p[0] & /*$$scope*/
536870912) && Vs(
l,
a,
h,
/*$$scope*/
h[29],
i ? Ss(
a,
/*$$scope*/
h[29],
p,
null
) : Is(
/*$$scope*/
h[29]
),
null
), si(r, u = mo(c, [
(!i || p[0] & /*cls, longTapActions, hasAnyActions*/
8198 && e !== (e = /*cls*/
h[2] + " " + /*longTapActions*/
((y = h[1]) != null && y.length ? dr["root_disabled-context-menu"] : "") + " " + /*hasAnyActions*/
(h[13] ? dr["root__any-actions"] : ""))) && { class: e },
(!i || p[0] & /*style*/
8) && { style: (
/*style*/
h[3]
) },
(!i || p[0] & /*role*/
1024) && { role: (
/*role*/
h[10]
) },
(!i || p[0] & /*isChecked*/
16384) && { "aria-checked": (
/*isChecked*/
h[14]
) },
(!i || p[0] & /*ariaHidden*/
2048 && n !== (n = /*ariaHidden*/
h[11] || void 0)) && { "aria-hidden": n },
p[0] & /*attrs*/
16 && /*attrs*/
h[4]
]));
},
i(h) {
i || (X(l, h), i = !0);
},
o(h) {
ue(l, h), i = !1;
},
d(h) {
h && w(r), l && l.d(h), t[48](null), o = !1, Xr(s);
}
};
}
function Eh(t) {
var f;
let r, e, n, i, o, s;
const a = (
/*#slots*/
t[30].default
), l = js(
a,
t,
/*$$scope*/
t[29],
null
);
let c = [
{
class: e = /*cls*/
t[2] + " " + ca.actionable__button + " " + dr["root__any-actions"] + ` ${/*isNativeActionAnimation*/
t[6] ? dr.root__clickable : dr["root__clickable-no-transition"]} ${dr.root__unselectable} ` + /*longTapActions*/
((f = t[1]) != null && f.length ? dr["root_disabled-context-menu"] : "")
},
{ style: (
/*style*/
t[3]
) },
{ role: (
/*role*/
t[10]
) },
{ "aria-checked": (
/*isChecked*/
t[14]
) },
{ type: "button" },
{
tabindex: n = /*componentContext*/
t[0].fakeElement === Ni ? -1 : null
},
/*attrs*/
t[4]
], u = {};
for (let h = 0; h < c.length; h += 1)
u = xi(u, c[h]);
return {
c() {
r = ze("button"), l && l.c(), this.h();
},
l(h) {
r = Be(h, "BUTTON", {
class: !0,
style: !0,
role: !0,
"aria-checked": !0,
type: !0,
tabindex: !0
});
var p = Ee(r);
l && l.l(p), p.forEach(w), this.h();
},
h() {
si(r, u);
},
m(h, p) {
ee(h, r, p), l && l.m(r, null), r.autofocus && r.focus(), t[47](r), i = !0, o || (s = [
Ds(
/*use*/
t[5].call(null, r)
),
Ue(
r,
"click",
/*click_handler_1*/
t[36]
),
Ue(
r,
"keydown",
/*onKeydown*/
t[16]
),
Ue(
r,
"focus",
/*focus_handler_1*/
t[37]
),
Ue(
r,
"blur",
/*blur_handler_1*/
t[38]
),
Ue(
r,
"pointerdown",
/*pointerdown_handler_1*/
t[39]
),
Ue(
r,
"wheel",
/*wheel_handler_1*/
t[40]
)
], o = !0);
},
p(h, p) {
var y;
l && l.p && (!i || p[0] & /*$$scope*/
536870912) && Vs(
l,
a,
h,
/*$$scope*/
h[29],
i ? Ss(
a,
/*$$scope*/
h[29],
p,
null
) : Is(
/*$$scope*/
h[29]
),
null
), si(r, u = mo(c, [
(!i || p[0] & /*cls, isNativeActionAnimation, longTapActions*/
70 && e !== (e = /*cls*/
h[2] + " " + ca.actionable__button + " " + dr["root__any-actions"] + ` ${/*isNativeActionAnimation*/
h[6] ? dr.root__clickable : dr["root__clickable-no-transition"]} ${dr.root__unselectable} ` + /*longTapActions*/
((y = h[1]) != null && y.length ? dr["root_disabled-context-menu"] : ""))) && { class: e },
(!i || p[0] & /*style*/
8) && { style: (
/*style*/
h[3]
) },
(!i || p[0] & /*role*/
1024) && { role: (
/*role*/
h[10]
) },
(!i || p[0] & /*isChecked*/
16384) && { "aria-checked": (
/*isChecked*/
h[14]
) },
{ type: "button" },
(!i || p[0] & /*componentContext*/
1 && n !== (n = /*componentContext*/
h[0].fakeElement === Ni ? -1 : null)) && { tabindex: n },
p[0] & /*attrs*/
16 && /*attrs*/
h[4]
]));
},
i(h) {
i || (X(l, h), i = !0);
},
o(h) {
ue(l, h), i = !1;
},
d(h) {
h && w(r), l && l.d(h), t[47](null), o = !1, Xr(s);
}
};
}
function Ah(t) {
var f;
let r, e, n, i, o, s;
const a = (
/*#slots*/
t[30].default
), l = js(
a,
t,
/*$$scope*/
t[29],
null
);
let c = [
{ href: (
/*href*/
t[8]
) },
{ target: (
/*target*/
t[12]
) },
{ style: (
/*style*/
t[3]
) },
{ role: (
/*role*/
t[10]
) },
{ "aria-checked": (
/*isChecked*/
t[14]
) },
{
class: e = /*cls*/
t[2] + " " + dr["root__any-actions"] + " " + /*isNativeActionAnimation*/
(t[6] ? dr.root__clickable : dr["root__clickable-no-transition"]) + " " + /*longTapActions*/
((f = t[1]) != null && f.length ? dr["root_disabled-context-menu"] : "")
},
{
tabindex: n = /*componentContext*/
t[0].fakeElement === Ni ? -1 : null
},
/*attrs*/
t[4]
], u = {};
for (let h = 0; h < c.length; h += 1)
u = xi(u, c[h]);
return {
c() {
r = ze("a"), l && l.c(), this.h();
},
l(h) {
r = Be(h, "A", {
h