diff --git "a/src/backend/gradio_creditspanel/templates/component/index.js" "b/src/backend/gradio_creditspanel/templates/component/index.js" --- "a/src/backend/gradio_creditspanel/templates/component/index.js" +++ "b/src/backend/gradio_creditspanel/templates/component/index.js" @@ -1,132 +1,132 @@ -var Ql = Object.defineProperty; -var In = (o) => { - throw TypeError(o); +var ta = Object.defineProperty; +var Yn = (a) => { + throw TypeError(a); }; -var Jl = (o, e, t) => e in o ? Ql(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t; -var P = (o, e, t) => Jl(o, typeof e != "symbol" ? e + "" : e, t), eo = (o, e, t) => e.has(o) || In("Cannot " + t); -var Rn = (o, e, t) => e.has(o) ? In("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(o) : e.set(o, t); -var qt = (o, e, t) => (eo(o, e, "access private method"), t); +var na = (a, e, t) => e in a ? ta(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t; +var M = (a, e, t) => na(a, typeof e != "symbol" ? e + "" : e, t), ia = (a, e, t) => e.has(a) || Yn("Cannot " + t); +var Wn = (a, e, t) => e.has(a) ? Yn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(a) : e.set(a, t); +var Wt = (a, e, t) => (ia(a, e, "access private method"), t); const { - SvelteComponent: to, - append_hydration: sn, - assign: no, - attr: Y, - binding_callbacks: io, - children: mt, - claim_element: _l, - claim_space: cl, - claim_svg_element: en, - create_slot: lo, - detach: Ee, - element: dl, - empty: Ln, - get_all_dirty_from_scope: oo, - get_slot_changes: ao, - get_spread_update: ro, - init: so, - insert_hydration: $t, - listen: uo, - noop: _o, - safe_not_equal: co, - set_dynamic_element_data: On, - set_style: z, - space: hl, - svg_element: tn, - toggle_class: U, - transition_in: fl, - transition_out: pl, - update_slot_base: ho + SvelteComponent: la, + append_hydration: Cn, + assign: aa, + attr: ne, + binding_callbacks: oa, + children: St, + claim_element: wl, + claim_space: kl, + claim_svg_element: bn, + create_slot: sa, + detach: je, + element: Fl, + empty: Kn, + get_all_dirty_from_scope: ra, + get_slot_changes: ua, + get_spread_update: _a, + init: ca, + insert_hydration: zt, + listen: da, + noop: fa, + safe_not_equal: ha, + set_dynamic_element_data: Qn, + set_style: R, + space: $l, + svg_element: Dn, + toggle_class: W, + transition_in: Cl, + transition_out: El, + update_slot_base: pa } = window.__gradio__svelte__internal; -function Pn(o) { - let e, t, n, i, a; +function Jn(a) { + let e, t, n, i, l; return { c() { - e = tn("svg"), t = tn("line"), n = tn("line"), this.h(); + e = Dn("svg"), t = Dn("line"), n = Dn("line"), this.h(); }, - l(l) { - e = en(l, "svg", { class: !0, xmlns: !0, viewBox: !0 }); - var r = mt(e); - t = en(r, "line", { + l(o) { + e = bn(o, "svg", { class: !0, xmlns: !0, viewBox: !0 }); + var s = St(e); + t = bn(s, "line", { x1: !0, y1: !0, x2: !0, y2: !0, stroke: !0, "stroke-width": !0 - }), mt(t).forEach(Ee), n = en(r, "line", { + }), St(t).forEach(je), n = bn(s, "line", { x1: !0, y1: !0, x2: !0, y2: !0, stroke: !0, "stroke-width": !0 - }), mt(n).forEach(Ee), r.forEach(Ee), this.h(); + }), St(n).forEach(je), s.forEach(je), this.h(); }, h() { - Y(t, "x1", "1"), Y(t, "y1", "9"), Y(t, "x2", "9"), Y(t, "y2", "1"), Y(t, "stroke", "gray"), Y(t, "stroke-width", "0.5"), Y(n, "x1", "5"), Y(n, "y1", "9"), Y(n, "x2", "9"), Y(n, "y2", "5"), Y(n, "stroke", "gray"), Y(n, "stroke-width", "0.5"), Y(e, "class", "resize-handle svelte-239wnu"), Y(e, "xmlns", "http://www.w3.org/2000/svg"), Y(e, "viewBox", "0 0 10 10"); + ne(t, "x1", "1"), ne(t, "y1", "9"), ne(t, "x2", "9"), ne(t, "y2", "1"), ne(t, "stroke", "gray"), ne(t, "stroke-width", "0.5"), ne(n, "x1", "5"), ne(n, "y1", "9"), ne(n, "x2", "9"), ne(n, "y2", "5"), ne(n, "stroke", "gray"), ne(n, "stroke-width", "0.5"), ne(e, "class", "resize-handle svelte-239wnu"), ne(e, "xmlns", "http://www.w3.org/2000/svg"), ne(e, "viewBox", "0 0 10 10"); }, - m(l, r) { - $t(l, e, r), sn(e, t), sn(e, n), i || (a = uo( + m(o, s) { + zt(o, e, s), Cn(e, t), Cn(e, n), i || (l = da( e, "mousedown", /*resize*/ - o[27] + a[27] ), i = !0); }, - p: _o, - d(l) { - l && Ee(e), i = !1, a(); + p: fa, + d(o) { + o && je(e), i = !1, l(); } }; } -function fo(o) { - var c; - let e, t, n, i, a; - const l = ( +function ma(a) { + var d; + let e, t, n, i, l; + const o = ( /*#slots*/ - o[31].default - ), r = lo( - l, + a[31].default + ), s = sa( o, + a, /*$$scope*/ - o[30], + a[30], null ); - let s = ( + let r = ( /*resizable*/ - o[19] && Pn(o) + a[19] && Jn(a) ), u = [ { "data-testid": ( /*test_id*/ - o[11] + a[11] ) }, { id: ( /*elem_id*/ - o[6] + a[6] ) }, { class: n = "block " + /*elem_classes*/ - (((c = o[7]) == null ? void 0 : c.join(" ")) || "") + " svelte-239wnu" + (((d = a[7]) == null ? void 0 : d.join(" ")) || "") + " svelte-239wnu" }, { dir: i = /*rtl*/ - o[20] ? "rtl" : "ltr" + a[20] ? "rtl" : "ltr" } ], _ = {}; - for (let d = 0; d < u.length; d += 1) - _ = no(_, u[d]); + for (let c = 0; c < u.length; c += 1) + _ = aa(_, u[c]); return { c() { - e = dl( + e = Fl( /*tag*/ - o[25] - ), r && r.c(), t = hl(), s && s.c(), this.h(); + a[25] + ), s && s.c(), t = $l(), r && r.c(), this.h(); }, - l(d) { - e = _l( - d, + l(c) { + e = wl( + c, /*tag*/ - (o[25] || "null").toUpperCase(), + (a[25] || "null").toUpperCase(), { "data-testid": !0, id: !0, @@ -134,382 +134,382 @@ function fo(o) { dir: !0 } ); - var f = mt(e); - r && r.l(f), t = cl(f), s && s.l(f), f.forEach(Ee), this.h(); + var h = St(e); + s && s.l(h), t = kl(h), r && r.l(h), h.forEach(je), this.h(); }, h() { - On( + Qn( /*tag*/ - o[25] - )(e, _), U( + a[25] + )(e, _), W( e, "hidden", /*visible*/ - o[14] === !1 - ), U( + a[14] === !1 + ), W( e, "padded", /*padding*/ - o[10] - ), U( + a[10] + ), W( e, "flex", /*flex*/ - o[1] - ), U( + a[1] + ), W( e, "border_focus", /*border_mode*/ - o[9] === "focus" - ), U( + a[9] === "focus" + ), W( e, "border_contrast", /*border_mode*/ - o[9] === "contrast" - ), U(e, "hide-container", !/*explicit_call*/ - o[12] && !/*container*/ - o[13]), U( + a[9] === "contrast" + ), W(e, "hide-container", !/*explicit_call*/ + a[12] && !/*container*/ + a[13]), W( e, "fullscreen", /*fullscreen*/ - o[0] - ), U( + a[0] + ), W( e, "animating", /*fullscreen*/ - o[0] && /*preexpansionBoundingRect*/ - o[24] !== null - ), U( + a[0] && /*preexpansionBoundingRect*/ + a[24] !== null + ), W( e, "auto-margin", /*scale*/ - o[17] === null - ), z( + a[17] === null + ), R( e, "height", /*fullscreen*/ - o[0] ? void 0 : ( + a[0] ? void 0 : ( /*get_dimension*/ - o[26]( + a[26]( /*height*/ - o[2] + a[2] ) ) - ), z( + ), R( e, "min-height", /*fullscreen*/ - o[0] ? void 0 : ( + a[0] ? void 0 : ( /*get_dimension*/ - o[26]( + a[26]( /*min_height*/ - o[3] + a[3] ) ) - ), z( + ), R( e, "max-height", /*fullscreen*/ - o[0] ? void 0 : ( + a[0] ? void 0 : ( /*get_dimension*/ - o[26]( + a[26]( /*max_height*/ - o[4] + a[4] ) ) - ), z( + ), R( e, "--start-top", /*preexpansionBoundingRect*/ - o[24] ? `${/*preexpansionBoundingRect*/ - o[24].top}px` : "0px" - ), z( + a[24] ? `${/*preexpansionBoundingRect*/ + a[24].top}px` : "0px" + ), R( e, "--start-left", /*preexpansionBoundingRect*/ - o[24] ? `${/*preexpansionBoundingRect*/ - o[24].left}px` : "0px" - ), z( + a[24] ? `${/*preexpansionBoundingRect*/ + a[24].left}px` : "0px" + ), R( e, "--start-width", /*preexpansionBoundingRect*/ - o[24] ? `${/*preexpansionBoundingRect*/ - o[24].width}px` : "0px" - ), z( + a[24] ? `${/*preexpansionBoundingRect*/ + a[24].width}px` : "0px" + ), R( e, "--start-height", /*preexpansionBoundingRect*/ - o[24] ? `${/*preexpansionBoundingRect*/ - o[24].height}px` : "0px" - ), z( + a[24] ? `${/*preexpansionBoundingRect*/ + a[24].height}px` : "0px" + ), R( e, "width", /*fullscreen*/ - o[0] ? void 0 : typeof /*width*/ - o[5] == "number" ? `calc(min(${/*width*/ - o[5]}px, 100%))` : ( + a[0] ? void 0 : typeof /*width*/ + a[5] == "number" ? `calc(min(${/*width*/ + a[5]}px, 100%))` : ( /*get_dimension*/ - o[26]( + a[26]( /*width*/ - o[5] + a[5] ) ) - ), z( + ), R( e, "border-style", /*variant*/ - o[8] - ), z( + a[8] + ), R( e, "overflow", /*allow_overflow*/ - o[15] ? ( + a[15] ? ( /*overflow_behavior*/ - o[16] + a[16] ) : "hidden" - ), z( + ), R( e, "flex-grow", /*scale*/ - o[17] - ), z(e, "min-width", `calc(min(${/*min_width*/ - o[18]}px, 100%))`), z(e, "border-width", "var(--block-border-width)"); + a[17] + ), R(e, "min-width", `calc(min(${/*min_width*/ + a[18]}px, 100%))`), R(e, "border-width", "var(--block-border-width)"); }, - m(d, f) { - $t(d, e, f), r && r.m(e, null), sn(e, t), s && s.m(e, null), o[32](e), a = !0; + m(c, h) { + zt(c, e, h), s && s.m(e, null), Cn(e, t), r && r.m(e, null), a[32](e), l = !0; }, - p(d, f) { + p(c, h) { var g; - r && r.p && (!a || f[0] & /*$$scope*/ - 1073741824) && ho( - r, - l, - d, + s && s.p && (!l || h[0] & /*$$scope*/ + 1073741824) && pa( + s, + o, + c, /*$$scope*/ - d[30], - a ? ao( - l, + c[30], + l ? ua( + o, /*$$scope*/ - d[30], - f, + c[30], + h, null - ) : oo( + ) : ra( /*$$scope*/ - d[30] + c[30] ), null ), /*resizable*/ - d[19] ? s ? s.p(d, f) : (s = Pn(d), s.c(), s.m(e, null)) : s && (s.d(1), s = null), On( + c[19] ? r ? r.p(c, h) : (r = Jn(c), r.c(), r.m(e, null)) : r && (r.d(1), r = null), Qn( /*tag*/ - d[25] - )(e, _ = ro(u, [ - (!a || f[0] & /*test_id*/ + c[25] + )(e, _ = _a(u, [ + (!l || h[0] & /*test_id*/ 2048) && { "data-testid": ( /*test_id*/ - d[11] + c[11] ) }, - (!a || f[0] & /*elem_id*/ + (!l || h[0] & /*elem_id*/ 64) && { id: ( /*elem_id*/ - d[6] + c[6] ) }, - (!a || f[0] & /*elem_classes*/ + (!l || h[0] & /*elem_classes*/ 128 && n !== (n = "block " + /*elem_classes*/ - (((g = d[7]) == null ? void 0 : g.join(" ")) || "") + " svelte-239wnu")) && { class: n }, - (!a || f[0] & /*rtl*/ + (((g = c[7]) == null ? void 0 : g.join(" ")) || "") + " svelte-239wnu")) && { class: n }, + (!l || h[0] & /*rtl*/ 1048576 && i !== (i = /*rtl*/ - d[20] ? "rtl" : "ltr")) && { dir: i } - ])), U( + c[20] ? "rtl" : "ltr")) && { dir: i } + ])), W( e, "hidden", /*visible*/ - d[14] === !1 - ), U( + c[14] === !1 + ), W( e, "padded", /*padding*/ - d[10] - ), U( + c[10] + ), W( e, "flex", /*flex*/ - d[1] - ), U( + c[1] + ), W( e, "border_focus", /*border_mode*/ - d[9] === "focus" - ), U( + c[9] === "focus" + ), W( e, "border_contrast", /*border_mode*/ - d[9] === "contrast" - ), U(e, "hide-container", !/*explicit_call*/ - d[12] && !/*container*/ - d[13]), U( + c[9] === "contrast" + ), W(e, "hide-container", !/*explicit_call*/ + c[12] && !/*container*/ + c[13]), W( e, "fullscreen", /*fullscreen*/ - d[0] - ), U( + c[0] + ), W( e, "animating", /*fullscreen*/ - d[0] && /*preexpansionBoundingRect*/ - d[24] !== null - ), U( + c[0] && /*preexpansionBoundingRect*/ + c[24] !== null + ), W( e, "auto-margin", /*scale*/ - d[17] === null - ), f[0] & /*fullscreen, height*/ - 5 && z( + c[17] === null + ), h[0] & /*fullscreen, height*/ + 5 && R( e, "height", /*fullscreen*/ - d[0] ? void 0 : ( + c[0] ? void 0 : ( /*get_dimension*/ - d[26]( + c[26]( /*height*/ - d[2] + c[2] ) ) - ), f[0] & /*fullscreen, min_height*/ - 9 && z( + ), h[0] & /*fullscreen, min_height*/ + 9 && R( e, "min-height", /*fullscreen*/ - d[0] ? void 0 : ( + c[0] ? void 0 : ( /*get_dimension*/ - d[26]( + c[26]( /*min_height*/ - d[3] + c[3] ) ) - ), f[0] & /*fullscreen, max_height*/ - 17 && z( + ), h[0] & /*fullscreen, max_height*/ + 17 && R( e, "max-height", /*fullscreen*/ - d[0] ? void 0 : ( + c[0] ? void 0 : ( /*get_dimension*/ - d[26]( + c[26]( /*max_height*/ - d[4] + c[4] ) ) - ), f[0] & /*preexpansionBoundingRect*/ - 16777216 && z( + ), h[0] & /*preexpansionBoundingRect*/ + 16777216 && R( e, "--start-top", /*preexpansionBoundingRect*/ - d[24] ? `${/*preexpansionBoundingRect*/ - d[24].top}px` : "0px" - ), f[0] & /*preexpansionBoundingRect*/ - 16777216 && z( + c[24] ? `${/*preexpansionBoundingRect*/ + c[24].top}px` : "0px" + ), h[0] & /*preexpansionBoundingRect*/ + 16777216 && R( e, "--start-left", /*preexpansionBoundingRect*/ - d[24] ? `${/*preexpansionBoundingRect*/ - d[24].left}px` : "0px" - ), f[0] & /*preexpansionBoundingRect*/ - 16777216 && z( + c[24] ? `${/*preexpansionBoundingRect*/ + c[24].left}px` : "0px" + ), h[0] & /*preexpansionBoundingRect*/ + 16777216 && R( e, "--start-width", /*preexpansionBoundingRect*/ - d[24] ? `${/*preexpansionBoundingRect*/ - d[24].width}px` : "0px" - ), f[0] & /*preexpansionBoundingRect*/ - 16777216 && z( + c[24] ? `${/*preexpansionBoundingRect*/ + c[24].width}px` : "0px" + ), h[0] & /*preexpansionBoundingRect*/ + 16777216 && R( e, "--start-height", /*preexpansionBoundingRect*/ - d[24] ? `${/*preexpansionBoundingRect*/ - d[24].height}px` : "0px" - ), f[0] & /*fullscreen, width*/ - 33 && z( + c[24] ? `${/*preexpansionBoundingRect*/ + c[24].height}px` : "0px" + ), h[0] & /*fullscreen, width*/ + 33 && R( e, "width", /*fullscreen*/ - d[0] ? void 0 : typeof /*width*/ - d[5] == "number" ? `calc(min(${/*width*/ - d[5]}px, 100%))` : ( + c[0] ? void 0 : typeof /*width*/ + c[5] == "number" ? `calc(min(${/*width*/ + c[5]}px, 100%))` : ( /*get_dimension*/ - d[26]( + c[26]( /*width*/ - d[5] + c[5] ) ) - ), f[0] & /*variant*/ - 256 && z( + ), h[0] & /*variant*/ + 256 && R( e, "border-style", /*variant*/ - d[8] - ), f[0] & /*allow_overflow, overflow_behavior*/ - 98304 && z( + c[8] + ), h[0] & /*allow_overflow, overflow_behavior*/ + 98304 && R( e, "overflow", /*allow_overflow*/ - d[15] ? ( + c[15] ? ( /*overflow_behavior*/ - d[16] + c[16] ) : "hidden" - ), f[0] & /*scale*/ - 131072 && z( + ), h[0] & /*scale*/ + 131072 && R( e, "flex-grow", /*scale*/ - d[17] - ), f[0] & /*min_width*/ - 262144 && z(e, "min-width", `calc(min(${/*min_width*/ - d[18]}px, 100%))`); + c[17] + ), h[0] & /*min_width*/ + 262144 && R(e, "min-width", `calc(min(${/*min_width*/ + c[18]}px, 100%))`); }, - i(d) { - a || (fl(r, d), a = !0); + i(c) { + l || (Cl(s, c), l = !0); }, - o(d) { - pl(r, d), a = !1; + o(c) { + El(s, c), l = !1; }, - d(d) { - d && Ee(e), r && r.d(d), s && s.d(), o[32](null); + d(c) { + c && je(e), s && s.d(c), r && r.d(), a[32](null); } }; } -function Mn(o) { +function ei(a) { let e; return { c() { - e = dl("div"), this.h(); + e = Fl("div"), this.h(); }, l(t) { - e = _l(t, "DIV", { class: !0 }), mt(e).forEach(Ee), this.h(); + e = wl(t, "DIV", { class: !0 }), St(e).forEach(je), this.h(); }, h() { - Y(e, "class", "placeholder svelte-239wnu"), z( + ne(e, "class", "placeholder svelte-239wnu"), R( e, "height", /*placeholder_height*/ - o[22] + "px" - ), z( + a[22] + "px" + ), R( e, "width", /*placeholder_width*/ - o[23] + "px" + a[23] + "px" ); }, m(t, n) { - $t(t, e, n); + zt(t, e, n); }, p(t, n) { n[0] & /*placeholder_height*/ - 4194304 && z( + 4194304 && R( e, "height", /*placeholder_height*/ t[22] + "px" ), n[0] & /*placeholder_width*/ - 8388608 && z( + 8388608 && R( e, "width", /*placeholder_width*/ @@ -517,121 +517,121 @@ function Mn(o) { ); }, d(t) { - t && Ee(e); + t && je(e); } }; } -function po(o) { +function ga(a) { let e, t, n, i = ( /*tag*/ - o[25] && fo(o) - ), a = ( + a[25] && ma(a) + ), l = ( /*fullscreen*/ - o[0] && Mn(o) + a[0] && ei(a) ); return { c() { - i && i.c(), e = hl(), a && a.c(), t = Ln(); + i && i.c(), e = $l(), l && l.c(), t = Kn(); }, - l(l) { - i && i.l(l), e = cl(l), a && a.l(l), t = Ln(); + l(o) { + i && i.l(o), e = kl(o), l && l.l(o), t = Kn(); }, - m(l, r) { - i && i.m(l, r), $t(l, e, r), a && a.m(l, r), $t(l, t, r), n = !0; + m(o, s) { + i && i.m(o, s), zt(o, e, s), l && l.m(o, s), zt(o, t, s), n = !0; }, - p(l, r) { + p(o, s) { /*tag*/ - l[25] && i.p(l, r), /*fullscreen*/ - l[0] ? a ? a.p(l, r) : (a = Mn(l), a.c(), a.m(t.parentNode, t)) : a && (a.d(1), a = null); + o[25] && i.p(o, s), /*fullscreen*/ + o[0] ? l ? l.p(o, s) : (l = ei(o), l.c(), l.m(t.parentNode, t)) : l && (l.d(1), l = null); }, - i(l) { - n || (fl(i, l), n = !0); + i(o) { + n || (Cl(i, o), n = !0); }, - o(l) { - pl(i, l), n = !1; + o(o) { + El(i, o), n = !1; }, - d(l) { - l && (Ee(e), Ee(t)), i && i.d(l), a && a.d(l); + d(o) { + o && (je(e), je(t)), i && i.d(o), l && l.d(o); } }; } -function mo(o, e, t) { - let { $$slots: n = {}, $$scope: i } = e, { height: a = void 0 } = e, { min_height: l = void 0 } = e, { max_height: r = void 0 } = e, { width: s = void 0 } = e, { elem_id: u = "" } = e, { elem_classes: _ = [] } = e, { variant: c = "solid" } = e, { border_mode: d = "base" } = e, { padding: f = !0 } = e, { type: g = "normal" } = e, { test_id: m = void 0 } = e, { explicit_call: v = !1 } = e, { container: F = !0 } = e, { visible: p = !0 } = e, { allow_overflow: h = !0 } = e, { overflow_behavior: b = "auto" } = e, { scale: y = null } = e, { min_width: D = 0 } = e, { flex: $ = !1 } = e, { resizable: S = !1 } = e, { rtl: k = !1 } = e, { fullscreen: q = !1 } = e, C = q, O, Xe = g === "fieldset" ? "fieldset" : "div", ne = 0, Fe = 0, te = null; - function Me(w) { - q && w.key === "Escape" && t(0, q = !1); - } - const V = (w) => { - if (w !== void 0) { - if (typeof w == "number") - return w + "px"; - if (typeof w == "string") - return w; +function va(a, e, t) { + let { $$slots: n = {}, $$scope: i } = e, { height: l = void 0 } = e, { min_height: o = void 0 } = e, { max_height: s = void 0 } = e, { width: r = void 0 } = e, { elem_id: u = "" } = e, { elem_classes: _ = [] } = e, { variant: d = "solid" } = e, { border_mode: c = "base" } = e, { padding: h = !0 } = e, { type: g = "normal" } = e, { test_id: p = void 0 } = e, { explicit_call: D = !1 } = e, { container: k = !0 } = e, { visible: m = !0 } = e, { allow_overflow: f = !0 } = e, { overflow_behavior: v = "auto" } = e, { scale: y = null } = e, { min_width: b = 0 } = e, { flex: F = !1 } = e, { resizable: A = !1 } = e, { rtl: E = !1 } = e, { fullscreen: q = !1 } = e, w = q, $, ge = g === "fieldset" ? "fieldset" : "div", _e = 0, Me = 0, ue = null; + function nt(C) { + q && C.key === "Escape" && t(0, q = !1); + } + const Z = (C) => { + if (C !== void 0) { + if (typeof C == "number") + return C + "px"; + if (typeof C == "string") + return C; } - }, J = (w) => { - let Z = w.clientY; - const it = (E) => { - const lt = E.clientY - Z; - Z = E.clientY, t(21, O.style.height = `${O.offsetHeight + lt}px`, O); - }, ie = () => { - window.removeEventListener("mousemove", it), window.removeEventListener("mouseup", ie); + }, se = (C) => { + let ee = C.clientY; + const pt = (S) => { + const mt = S.clientY - ee; + ee = S.clientY, t(21, $.style.height = `${$.offsetHeight + mt}px`, $); + }, ce = () => { + window.removeEventListener("mousemove", pt), window.removeEventListener("mouseup", ce); }; - window.addEventListener("mousemove", it), window.addEventListener("mouseup", ie); + window.addEventListener("mousemove", pt), window.addEventListener("mouseup", ce); }; - function pe(w) { - io[w ? "unshift" : "push"](() => { - O = w, t(21, O); + function Se(C) { + oa[C ? "unshift" : "push"](() => { + $ = C, t(21, $); }); } - return o.$$set = (w) => { - "height" in w && t(2, a = w.height), "min_height" in w && t(3, l = w.min_height), "max_height" in w && t(4, r = w.max_height), "width" in w && t(5, s = w.width), "elem_id" in w && t(6, u = w.elem_id), "elem_classes" in w && t(7, _ = w.elem_classes), "variant" in w && t(8, c = w.variant), "border_mode" in w && t(9, d = w.border_mode), "padding" in w && t(10, f = w.padding), "type" in w && t(28, g = w.type), "test_id" in w && t(11, m = w.test_id), "explicit_call" in w && t(12, v = w.explicit_call), "container" in w && t(13, F = w.container), "visible" in w && t(14, p = w.visible), "allow_overflow" in w && t(15, h = w.allow_overflow), "overflow_behavior" in w && t(16, b = w.overflow_behavior), "scale" in w && t(17, y = w.scale), "min_width" in w && t(18, D = w.min_width), "flex" in w && t(1, $ = w.flex), "resizable" in w && t(19, S = w.resizable), "rtl" in w && t(20, k = w.rtl), "fullscreen" in w && t(0, q = w.fullscreen), "$$scope" in w && t(30, i = w.$$scope); - }, o.$$.update = () => { - o.$$.dirty[0] & /*fullscreen, old_fullscreen, element*/ - 538968065 && q !== C && (t(29, C = q), q ? (t(24, te = O.getBoundingClientRect()), t(22, ne = O.offsetHeight), t(23, Fe = O.offsetWidth), window.addEventListener("keydown", Me)) : (t(24, te = null), window.removeEventListener("keydown", Me))), o.$$.dirty[0] & /*visible*/ - 16384 && (p || t(1, $ = !1)); + return a.$$set = (C) => { + "height" in C && t(2, l = C.height), "min_height" in C && t(3, o = C.min_height), "max_height" in C && t(4, s = C.max_height), "width" in C && t(5, r = C.width), "elem_id" in C && t(6, u = C.elem_id), "elem_classes" in C && t(7, _ = C.elem_classes), "variant" in C && t(8, d = C.variant), "border_mode" in C && t(9, c = C.border_mode), "padding" in C && t(10, h = C.padding), "type" in C && t(28, g = C.type), "test_id" in C && t(11, p = C.test_id), "explicit_call" in C && t(12, D = C.explicit_call), "container" in C && t(13, k = C.container), "visible" in C && t(14, m = C.visible), "allow_overflow" in C && t(15, f = C.allow_overflow), "overflow_behavior" in C && t(16, v = C.overflow_behavior), "scale" in C && t(17, y = C.scale), "min_width" in C && t(18, b = C.min_width), "flex" in C && t(1, F = C.flex), "resizable" in C && t(19, A = C.resizable), "rtl" in C && t(20, E = C.rtl), "fullscreen" in C && t(0, q = C.fullscreen), "$$scope" in C && t(30, i = C.$$scope); + }, a.$$.update = () => { + a.$$.dirty[0] & /*fullscreen, old_fullscreen, element*/ + 538968065 && q !== w && (t(29, w = q), q ? (t(24, ue = $.getBoundingClientRect()), t(22, _e = $.offsetHeight), t(23, Me = $.offsetWidth), window.addEventListener("keydown", nt)) : (t(24, ue = null), window.removeEventListener("keydown", nt))), a.$$.dirty[0] & /*visible*/ + 16384 && (m || t(1, F = !1)); }, [ q, - $, - a, + F, l, - r, + o, s, + r, u, _, - c, d, - f, - m, - v, - F, - p, + c, h, - b, - y, + p, D, - S, k, - O, - ne, - Fe, - te, - Xe, - V, - J, + m, + f, + v, + y, + b, + A, + E, + $, + _e, + Me, + ue, + ge, + Z, + se, g, - C, + w, i, n, - pe + Se ]; } -class go extends to { +class ba extends la { constructor(e) { - super(), so( + super(), ca( this, e, - mo, - po, - co, + va, + ga, + ha, { height: 2, min_height: 3, @@ -661,7 +661,7 @@ class go extends to { ); } } -function Fn() { +function Nn() { return { async: !1, breaks: !1, @@ -675,57 +675,57 @@ function Fn() { walkTokens: null }; } -let nt = Fn(); -function ml(o) { - nt = o; +let ht = Nn(); +function Al(a) { + ht = a; } -const gl = /[&<>"']/, vo = new RegExp(gl.source, "g"), vl = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, bo = new RegExp(vl.source, "g"), Do = { +const Sl = /[&<>"']/, Da = new RegExp(Sl.source, "g"), Bl = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, ya = new RegExp(Bl.source, "g"), wa = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" -}, Nn = (o) => Do[o]; -function oe(o, e) { +}, ti = (a) => wa[a]; +function fe(a, e) { if (e) { - if (gl.test(o)) - return o.replace(vo, Nn); - } else if (vl.test(o)) - return o.replace(bo, Nn); - return o; -} -const yo = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig; -function $o(o) { - return o.replace(yo, (e, t) => (t = t.toLowerCase(), t === "colon" ? ":" : t.charAt(0) === "#" ? t.charAt(1) === "x" ? String.fromCharCode(parseInt(t.substring(2), 16)) : String.fromCharCode(+t.substring(1)) : "")); -} -const wo = /(^|[^\[])\^/g; -function R(o, e) { - let t = typeof o == "string" ? o : o.source; + if (Sl.test(a)) + return a.replace(Da, ti); + } else if (Bl.test(a)) + return a.replace(ya, ti); + return a; +} +const ka = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig; +function Fa(a) { + return a.replace(ka, (e, t) => (t = t.toLowerCase(), t === "colon" ? ":" : t.charAt(0) === "#" ? t.charAt(1) === "x" ? String.fromCharCode(parseInt(t.substring(2), 16)) : String.fromCharCode(+t.substring(1)) : "")); +} +const $a = /(^|[^\[])\^/g; +function O(a, e) { + let t = typeof a == "string" ? a : a.source; e = e || ""; const n = { - replace: (i, a) => { - let l = typeof a == "string" ? a : a.source; - return l = l.replace(wo, "$1"), t = t.replace(i, l), n; + replace: (i, l) => { + let o = typeof l == "string" ? l : l.source; + return o = o.replace($a, "$1"), t = t.replace(i, o), n; }, getRegex: () => new RegExp(t, e) }; return n; } -function jn(o) { +function ni(a) { try { - o = encodeURI(o).replace(/%25/g, "%"); + a = encodeURI(a).replace(/%25/g, "%"); } catch { return null; } - return o; + return a; } -const gt = { exec: () => null }; -function Hn(o, e) { - const t = o.replace(/\|/g, (a, l, r) => { - let s = !1, u = l; - for (; --u >= 0 && r[u] === "\\"; ) - s = !s; - return s ? "|" : " |"; +const Bt = { exec: () => null }; +function ii(a, e) { + const t = a.replace(/\|/g, (l, o, s) => { + let r = !1, u = o; + for (; --u >= 0 && s[u] === "\\"; ) + r = !r; + return r ? "|" : " |"; }), n = t.split(/ \|/); let i = 0; if (n[0].trim() || n.shift(), n.length > 0 && !n[n.length - 1].trim() && n.pop(), e) @@ -738,73 +738,73 @@ function Hn(o, e) { n[i] = n[i].trim().replace(/\\\|/g, "|"); return n; } -function Tt(o, e, t) { - const n = o.length; +function Kt(a, e, t) { + const n = a.length; if (n === 0) return ""; let i = 0; - for (; i < n && o.charAt(n - i - 1) === e; ) + for (; i < n && a.charAt(n - i - 1) === e; ) i++; - return o.slice(0, n - i); + return a.slice(0, n - i); } -function Fo(o, e) { - if (o.indexOf(e[1]) === -1) +function Ca(a, e) { + if (a.indexOf(e[1]) === -1) return -1; let t = 0; - for (let n = 0; n < o.length; n++) - if (o[n] === "\\") + for (let n = 0; n < a.length; n++) + if (a[n] === "\\") n++; - else if (o[n] === e[0]) + else if (a[n] === e[0]) t++; - else if (o[n] === e[1] && (t--, t < 0)) + else if (a[n] === e[1] && (t--, t < 0)) return n; return -1; } -function Vn(o, e, t, n) { - const i = e.href, a = e.title ? oe(e.title) : null, l = o[1].replace(/\\([\[\]])/g, "$1"); - if (o[0].charAt(0) !== "!") { +function li(a, e, t, n) { + const i = e.href, l = e.title ? fe(e.title) : null, o = a[1].replace(/\\([\[\]])/g, "$1"); + if (a[0].charAt(0) !== "!") { n.state.inLink = !0; - const r = { + const s = { type: "link", raw: t, href: i, - title: a, - text: l, - tokens: n.inlineTokens(l) + title: l, + text: o, + tokens: n.inlineTokens(o) }; - return n.state.inLink = !1, r; + return n.state.inLink = !1, s; } return { type: "image", raw: t, href: i, - title: a, - text: oe(l) + title: l, + text: fe(o) }; } -function ko(o, e) { - const t = o.match(/^(\s+)(?:```)/); +function Ea(a, e) { + const t = a.match(/^(\s+)(?:```)/); if (t === null) return e; const n = t[1]; return e.split(` `).map((i) => { - const a = i.match(/^\s+/); - if (a === null) + const l = i.match(/^\s+/); + if (l === null) return i; - const [l] = a; - return l.length >= n.length ? i.slice(n.length) : i; + const [o] = l; + return o.length >= n.length ? i.slice(n.length) : i; }).join(` `); } -class Vt { +class _n { // set by the lexer constructor(e) { - P(this, "options"); - P(this, "rules"); + M(this, "options"); + M(this, "rules"); // set by the lexer - P(this, "lexer"); - this.options = e || nt; + M(this, "lexer"); + this.options = e || ht; } space(e) { const t = this.rules.block.newline.exec(e); @@ -822,7 +822,7 @@ class Vt { type: "code", raw: t[0], codeBlockStyle: "indented", - text: this.options.pedantic ? n : Tt(n, ` + text: this.options.pedantic ? n : Kt(n, ` `) }; } @@ -830,7 +830,7 @@ class Vt { fences(e) { const t = this.rules.block.fences.exec(e); if (t) { - const n = t[0], i = ko(n, t[3] || ""); + const n = t[0], i = Ea(n, t[3] || ""); return { type: "code", raw: n, @@ -844,7 +844,7 @@ class Vt { if (t) { let n = t[2].trim(); if (/#$/.test(n)) { - const i = Tt(n, "#"); + const i = Kt(n, "#"); (this.options.pedantic || !i || / $/.test(i)) && (n = i.trim()); } return { @@ -869,15 +869,15 @@ class Vt { if (t) { let n = t[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g, ` $1`); - n = Tt(n.replace(/^ *>[ \t]?/gm, ""), ` + n = Kt(n.replace(/^ *>[ \t]?/gm, ""), ` `); const i = this.lexer.state.top; this.lexer.state.top = !0; - const a = this.lexer.blockTokens(n); + const l = this.lexer.blockTokens(n); return this.lexer.state.top = i, { type: "blockquote", raw: t[0], - tokens: a, + tokens: l, text: n }; } @@ -886,7 +886,7 @@ class Vt { let t = this.rules.block.list.exec(e); if (t) { let n = t[1].trim(); - const i = n.length > 1, a = { + const i = n.length > 1, l = { type: "list", raw: "", ordered: i, @@ -895,61 +895,61 @@ class Vt { items: [] }; n = i ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = i ? n : "[*+-]"); - const l = new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`); - let r = "", s = "", u = !1; + const o = new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`); + let s = "", r = "", u = !1; for (; e; ) { let _ = !1; - if (!(t = l.exec(e)) || this.rules.block.hr.test(e)) + if (!(t = o.exec(e)) || this.rules.block.hr.test(e)) break; - r = t[0], e = e.substring(r.length); - let c = t[2].split(` -`, 1)[0].replace(/^\t+/, (F) => " ".repeat(3 * F.length)), d = e.split(` -`, 1)[0], f = 0; - this.options.pedantic ? (f = 2, s = c.trimStart()) : (f = t[2].search(/[^ ]/), f = f > 4 ? 1 : f, s = c.slice(f), f += t[1].length); + s = t[0], e = e.substring(s.length); + let d = t[2].split(` +`, 1)[0].replace(/^\t+/, (k) => " ".repeat(3 * k.length)), c = e.split(` +`, 1)[0], h = 0; + this.options.pedantic ? (h = 2, r = d.trimStart()) : (h = t[2].search(/[^ ]/), h = h > 4 ? 1 : h, r = d.slice(h), h += t[1].length); let g = !1; - if (!c && /^ *$/.test(d) && (r += d + ` -`, e = e.substring(d.length + 1), _ = !0), !_) { - const F = new RegExp(`^ {0,${Math.min(3, f - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), p = new RegExp(`^ {0,${Math.min(3, f - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), h = new RegExp(`^ {0,${Math.min(3, f - 1)}}(?:\`\`\`|~~~)`), b = new RegExp(`^ {0,${Math.min(3, f - 1)}}#`); + if (!d && /^ *$/.test(c) && (s += c + ` +`, e = e.substring(c.length + 1), _ = !0), !_) { + const k = new RegExp(`^ {0,${Math.min(3, h - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), m = new RegExp(`^ {0,${Math.min(3, h - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), f = new RegExp(`^ {0,${Math.min(3, h - 1)}}(?:\`\`\`|~~~)`), v = new RegExp(`^ {0,${Math.min(3, h - 1)}}#`); for (; e; ) { const y = e.split(` `, 1)[0]; - if (d = y, this.options.pedantic && (d = d.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), h.test(d) || b.test(d) || F.test(d) || p.test(e)) + if (c = y, this.options.pedantic && (c = c.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), f.test(c) || v.test(c) || k.test(c) || m.test(e)) break; - if (d.search(/[^ ]/) >= f || !d.trim()) - s += ` -` + d.slice(f); + if (c.search(/[^ ]/) >= h || !c.trim()) + r += ` +` + c.slice(h); else { - if (g || c.search(/[^ ]/) >= 4 || h.test(c) || b.test(c) || p.test(c)) + if (g || d.search(/[^ ]/) >= 4 || f.test(d) || v.test(d) || m.test(d)) break; - s += ` -` + d; + r += ` +` + c; } - !g && !d.trim() && (g = !0), r += y + ` -`, e = e.substring(y.length + 1), c = d.slice(f); + !g && !c.trim() && (g = !0), s += y + ` +`, e = e.substring(y.length + 1), d = c.slice(h); } } - a.loose || (u ? a.loose = !0 : /\n *\n *$/.test(r) && (u = !0)); - let m = null, v; - this.options.gfm && (m = /^\[[ xX]\] /.exec(s), m && (v = m[0] !== "[ ] ", s = s.replace(/^\[[ xX]\] +/, ""))), a.items.push({ + l.loose || (u ? l.loose = !0 : /\n *\n *$/.test(s) && (u = !0)); + let p = null, D; + this.options.gfm && (p = /^\[[ xX]\] /.exec(r), p && (D = p[0] !== "[ ] ", r = r.replace(/^\[[ xX]\] +/, ""))), l.items.push({ type: "list_item", - raw: r, - task: !!m, - checked: v, + raw: s, + task: !!p, + checked: D, loose: !1, - text: s, + text: r, tokens: [] - }), a.raw += r; + }), l.raw += s; } - a.items[a.items.length - 1].raw = r.trimEnd(), a.items[a.items.length - 1].text = s.trimEnd(), a.raw = a.raw.trimEnd(); - for (let _ = 0; _ < a.items.length; _++) - if (this.lexer.state.top = !1, a.items[_].tokens = this.lexer.blockTokens(a.items[_].text, []), !a.loose) { - const c = a.items[_].tokens.filter((f) => f.type === "space"), d = c.length > 0 && c.some((f) => /\n.*\n/.test(f.raw)); - a.loose = d; + l.items[l.items.length - 1].raw = s.trimEnd(), l.items[l.items.length - 1].text = r.trimEnd(), l.raw = l.raw.trimEnd(); + for (let _ = 0; _ < l.items.length; _++) + if (this.lexer.state.top = !1, l.items[_].tokens = this.lexer.blockTokens(l.items[_].text, []), !l.loose) { + const d = l.items[_].tokens.filter((h) => h.type === "space"), c = d.length > 0 && d.some((h) => /\n.*\n/.test(h.raw)); + l.loose = c; } - if (a.loose) - for (let _ = 0; _ < a.items.length; _++) - a.items[_].loose = !0; - return a; + if (l.loose) + for (let _ = 0; _ < l.items.length; _++) + l.items[_].loose = !0; + return l; } } html(e) { @@ -966,13 +966,13 @@ class Vt { def(e) { const t = this.rules.block.def.exec(e); if (t) { - const n = t[1].toLowerCase().replace(/\s+/g, " "), i = t[2] ? t[2].replace(/^<(.*)>$/, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", a = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3]; + const n = t[1].toLowerCase().replace(/\s+/g, " "), i = t[2] ? t[2].replace(/^<(.*)>$/, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", l = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3]; return { type: "def", tag: n, raw: t[0], href: i, - title: a + title: l }; } } @@ -980,8 +980,8 @@ class Vt { const t = this.rules.block.table.exec(e); if (!t || !/[:|]/.test(t[2])) return; - const n = Hn(t[1]), i = t[2].replace(/^\||\| *$/g, "").split("|"), a = t[3] && t[3].trim() ? t[3].replace(/\n[ \t]*$/, "").split(` -`) : [], l = { + const n = ii(t[1]), i = t[2].replace(/^\||\| *$/g, "").split("|"), l = t[3] && t[3].trim() ? t[3].replace(/\n[ \t]*$/, "").split(` +`) : [], o = { type: "table", raw: t[0], header: [], @@ -989,19 +989,19 @@ class Vt { rows: [] }; if (n.length === i.length) { - for (const r of i) - /^ *-+: *$/.test(r) ? l.align.push("right") : /^ *:-+: *$/.test(r) ? l.align.push("center") : /^ *:-+ *$/.test(r) ? l.align.push("left") : l.align.push(null); - for (const r of n) - l.header.push({ - text: r, - tokens: this.lexer.inline(r) - }); - for (const r of a) - l.rows.push(Hn(r, l.header.length).map((s) => ({ + for (const s of i) + /^ *-+: *$/.test(s) ? o.align.push("right") : /^ *:-+: *$/.test(s) ? o.align.push("center") : /^ *:-+ *$/.test(s) ? o.align.push("left") : o.align.push(null); + for (const s of n) + o.header.push({ text: s, tokens: this.lexer.inline(s) + }); + for (const s of l) + o.rows.push(ii(s, o.header.length).map((r) => ({ + text: r, + tokens: this.lexer.inline(r) }))); - return l; + return o; } } lheading(e) { @@ -1044,7 +1044,7 @@ class Vt { return { type: "escape", raw: t[0], - text: oe(t[1]) + text: fe(t[1]) }; } tag(e) { @@ -1066,41 +1066,41 @@ class Vt { if (!this.options.pedantic && /^$/.test(n)) return; - const l = Tt(n.slice(0, -1), "\\"); - if ((n.length - l.length) % 2 === 0) + const o = Kt(n.slice(0, -1), "\\"); + if ((n.length - o.length) % 2 === 0) return; } else { - const l = Fo(t[2], "()"); - if (l > -1) { - const s = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + l; - t[2] = t[2].substring(0, l), t[0] = t[0].substring(0, s).trim(), t[3] = ""; + const o = Ca(t[2], "()"); + if (o > -1) { + const r = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + o; + t[2] = t[2].substring(0, o), t[0] = t[0].substring(0, r).trim(), t[3] = ""; } } - let i = t[2], a = ""; + let i = t[2], l = ""; if (this.options.pedantic) { - const l = /^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i); - l && (i = l[1], a = l[3]); + const o = /^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i); + o && (i = o[1], l = o[3]); } else - a = t[3] ? t[3].slice(1, -1) : ""; - return i = i.trim(), /^$/.test(n) ? i = i.slice(1) : i = i.slice(1, -1)), Vn(t, { + l = t[3] ? t[3].slice(1, -1) : ""; + return i = i.trim(), /^$/.test(n) ? i = i.slice(1) : i = i.slice(1, -1)), li(t, { href: i && i.replace(this.rules.inline.anyPunctuation, "$1"), - title: a && a.replace(this.rules.inline.anyPunctuation, "$1") + title: l && l.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer); } } reflink(e, t) { let n; if ((n = this.rules.inline.reflink.exec(e)) || (n = this.rules.inline.nolink.exec(e))) { - const i = (n[2] || n[1]).replace(/\s+/g, " "), a = t[i.toLowerCase()]; - if (!a) { - const l = n[0].charAt(0); + const i = (n[2] || n[1]).replace(/\s+/g, " "), l = t[i.toLowerCase()]; + if (!l) { + const o = n[0].charAt(0); return { type: "text", - raw: l, - text: l + raw: o, + text: o }; } - return Vn(n, a, n[0], this.lexer); + return li(n, l, n[0], this.lexer); } } emStrong(e, t, n = "") { @@ -1108,36 +1108,36 @@ class Vt { if (!i || i[3] && n.match(/[\p{L}\p{N}]/u)) return; if (!(i[1] || i[2] || "") || !n || this.rules.inline.punctuation.exec(n)) { - const l = [...i[0]].length - 1; - let r, s, u = l, _ = 0; - const c = i[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd; - for (c.lastIndex = 0, t = t.slice(-1 * e.length + l); (i = c.exec(t)) != null; ) { - if (r = i[1] || i[2] || i[3] || i[4] || i[5] || i[6], !r) + const o = [...i[0]].length - 1; + let s, r, u = o, _ = 0; + const d = i[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd; + for (d.lastIndex = 0, t = t.slice(-1 * e.length + o); (i = d.exec(t)) != null; ) { + if (s = i[1] || i[2] || i[3] || i[4] || i[5] || i[6], !s) continue; - if (s = [...r].length, i[3] || i[4]) { - u += s; + if (r = [...s].length, i[3] || i[4]) { + u += r; continue; - } else if ((i[5] || i[6]) && l % 3 && !((l + s) % 3)) { - _ += s; + } else if ((i[5] || i[6]) && o % 3 && !((o + r) % 3)) { + _ += r; continue; } - if (u -= s, u > 0) + if (u -= r, u > 0) continue; - s = Math.min(s, s + u + _); - const d = [...i[0]][0].length, f = e.slice(0, l + i.index + d + s); - if (Math.min(l, s) % 2) { - const m = f.slice(1, -1); + r = Math.min(r, r + u + _); + const c = [...i[0]][0].length, h = e.slice(0, o + i.index + c + r); + if (Math.min(o, r) % 2) { + const p = h.slice(1, -1); return { type: "em", - raw: f, - text: m, - tokens: this.lexer.inlineTokens(m) + raw: h, + text: p, + tokens: this.lexer.inlineTokens(p) }; } - const g = f.slice(2, -2); + const g = h.slice(2, -2); return { type: "strong", - raw: f, + raw: h, text: g, tokens: this.lexer.inlineTokens(g) }; @@ -1148,8 +1148,8 @@ class Vt { const t = this.rules.inline.code.exec(e); if (t) { let n = t[2].replace(/\n/g, " "); - const i = /[^ ]/.test(n), a = /^ /.test(n) && / $/.test(n); - return i && a && (n = n.substring(1, n.length - 1)), n = oe(n, !0), { + const i = /[^ ]/.test(n), l = /^ /.test(n) && / $/.test(n); + return i && l && (n = n.substring(1, n.length - 1)), n = fe(n, !0), { type: "codespan", raw: t[0], text: n @@ -1178,7 +1178,7 @@ class Vt { const t = this.rules.inline.autolink.exec(e); if (t) { let n, i; - return t[2] === "@" ? (n = oe(t[1]), i = "mailto:" + n) : (n = oe(t[1]), i = n), { + return t[2] === "@" ? (n = fe(t[1]), i = "mailto:" + n) : (n = fe(t[1]), i = n), { type: "link", raw: t[0], text: n, @@ -1197,21 +1197,21 @@ class Vt { var n; let t; if (t = this.rules.inline.url.exec(e)) { - let i, a; + let i, l; if (t[2] === "@") - i = oe(t[0]), a = "mailto:" + i; + i = fe(t[0]), l = "mailto:" + i; else { - let l; + let o; do - l = t[0], t[0] = ((n = this.rules.inline._backpedal.exec(t[0])) == null ? void 0 : n[0]) ?? ""; - while (l !== t[0]); - i = oe(t[0]), t[1] === "www." ? a = "http://" + t[0] : a = t[0]; + o = t[0], t[0] = ((n = this.rules.inline._backpedal.exec(t[0])) == null ? void 0 : n[0]) ?? ""; + while (o !== t[0]); + i = fe(t[0]), t[1] === "www." ? l = "http://" + t[0] : l = t[0]; } return { type: "link", raw: t[0], text: i, - href: a, + href: l, tokens: [ { type: "text", @@ -1226,7 +1226,7 @@ class Vt { const t = this.rules.inline.text.exec(e); if (t) { let n; - return this.lexer.state.inRawBlock ? n = t[0] : n = oe(t[0]), { + return this.lexer.state.inRawBlock ? n = t[0] : n = fe(t[0]), { type: "text", raw: t[0], text: n @@ -1234,118 +1234,118 @@ class Vt { } } } -const Co = /^(?: *(?:\n|$))+/, Eo = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Ao = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Et = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, So = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, bl = /(?:[*+-]|\d{1,9}[.)])/, Dl = R(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, bl).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), kn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Bo = /^[^\n]+/, Cn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, qo = R(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", Cn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), To = R(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, bl).getRegex(), Xt = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", En = /|$))/, xo = R("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", En).replace("tag", Xt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), yl = R(kn).replace("hr", Et).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", Xt).getRegex(), zo = R(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", yl).getRegex(), An = { - blockquote: zo, - code: Eo, - def: qo, - fences: Ao, - heading: So, - hr: Et, - html: xo, - lheading: Dl, - list: To, - newline: Co, - paragraph: yl, - table: gt, - text: Bo -}, Un = R("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Et).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", Xt).getRegex(), Io = { - ...An, - table: Un, - paragraph: R(kn).replace("hr", Et).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Un).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", Xt).getRegex() -}, Ro = { - ...An, - html: R(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", En).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), +const Aa = /^(?: *(?:\n|$))+/, Sa = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Ba = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Gt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, qa = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ql = /(?:[*+-]|\d{1,9}[.)])/, Tl = O(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, ql).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), jn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Ta = /^[^\n]+/, Hn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, za = O(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", Hn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ia = O(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, ql).getRegex(), hn = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", xn = /|$))/, Ra = O("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", xn).replace("tag", hn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), zl = O(jn).replace("hr", Gt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", hn).getRegex(), La = O(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", zl).getRegex(), Vn = { + blockquote: La, + code: Sa, + def: za, + fences: Ba, + heading: qa, + hr: Gt, + html: Ra, + lheading: Tl, + list: Ia, + newline: Aa, + paragraph: zl, + table: Bt, + text: Ta +}, ai = O("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Gt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", hn).getRegex(), Oa = { + ...Vn, + table: ai, + paragraph: O(jn).replace("hr", Gt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ai).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", hn).getRegex() +}, Pa = { + ...Vn, + html: O(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", xn).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, - fences: gt, + fences: Bt, // fences not supported lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, - paragraph: R(kn).replace("hr", Et).replace("heading", ` *#{1,6} *[^ -]`).replace("lheading", Dl).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() -}, $l = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Lo = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, wl = /^( {2,}|\\)\n(?!\s*$)/, Oo = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, No = R(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, At).getRegex(), jo = R("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, At).getRegex(), Ho = R("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, At).getRegex(), Vo = R(/\\([punct])/, "gu").replace(/punct/g, At).getRegex(), Uo = R(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Go = R(En).replace("(?:-->|$)", "-->").getRegex(), Zo = R("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", Go).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Ut = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Xo = R(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Ut).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Fl = R(/^!?\[(label)\]\[(ref)\]/).replace("label", Ut).replace("ref", Cn).getRegex(), kl = R(/^!?\[(ref)\](?:\[\])?/).replace("ref", Cn).getRegex(), Yo = R("reflink|nolink(?!\\()", "g").replace("reflink", Fl).replace("nolink", kl).getRegex(), Sn = { - _backpedal: gt, + paragraph: O(jn).replace("hr", Gt).replace("heading", ` *#{1,6} *[^ +]`).replace("lheading", Tl).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() +}, Il = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ma = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Rl = /^( {2,}|\\)\n(?!\s*$)/, Na = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, xa = O(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, Zt).getRegex(), Va = O("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, Zt).getRegex(), Ua = O("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, Zt).getRegex(), Ga = O(/\\([punct])/, "gu").replace(/punct/g, Zt).getRegex(), Za = O(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Xa = O(xn).replace("(?:-->|$)", "-->").getRegex(), Ya = O("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", Xa).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), cn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Wa = O(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", cn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ll = O(/^!?\[(label)\]\[(ref)\]/).replace("label", cn).replace("ref", Hn).getRegex(), Ol = O(/^!?\[(ref)\](?:\[\])?/).replace("ref", Hn).getRegex(), Ka = O("reflink|nolink(?!\\()", "g").replace("reflink", Ll).replace("nolink", Ol).getRegex(), Un = { + _backpedal: Bt, // only used for GFM url - anyPunctuation: Vo, - autolink: Uo, - blockSkip: Mo, - br: wl, - code: Lo, - del: gt, - emStrongLDelim: No, - emStrongRDelimAst: jo, - emStrongRDelimUnd: Ho, - escape: $l, - link: Xo, - nolink: kl, - punctuation: Po, - reflink: Fl, - reflinkSearch: Yo, - tag: Zo, - text: Oo, - url: gt -}, Wo = { - ...Sn, - link: R(/^!?\[(label)\]\((.*?)\)/).replace("label", Ut).getRegex(), - reflink: R(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Ut).getRegex() -}, un = { - ...Sn, - escape: R($l).replace("])", "~|])").getRegex(), - url: R(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), + anyPunctuation: Ga, + autolink: Za, + blockSkip: Ha, + br: Rl, + code: Ma, + del: Bt, + emStrongLDelim: xa, + emStrongRDelimAst: Va, + emStrongRDelimUnd: Ua, + escape: Il, + link: Wa, + nolink: Ol, + punctuation: ja, + reflink: Ll, + reflinkSearch: Ka, + tag: Ya, + text: Na, + url: Bt +}, Qa = { + ...Un, + link: O(/^!?\[(label)\]\((.*?)\)/).replace("label", cn).getRegex(), + reflink: O(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", cn).getRegex() +}, En = { + ...Un, + escape: O(Il).replace("])", "~|])").getRegex(), + url: O(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/, text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\ s + " ".repeat(u.length)); - let n, i, a, l; + this.options.pedantic ? e = e.replace(/\t/g, " ").replace(/^ +$/gm, "") : e = e.replace(/^( *)(\t+)/gm, (s, r, u) => r + " ".repeat(u.length)); + let n, i, l, o; for (; e; ) - if (!(this.options.extensions && this.options.extensions.block && this.options.extensions.block.some((r) => (n = r.call({ lexer: this }, e, t)) ? (e = e.substring(n.raw.length), t.push(n), !0) : !1))) { + if (!(this.options.extensions && this.options.extensions.block && this.options.extensions.block.some((s) => (n = s.call({ lexer: this }, e, t)) ? (e = e.substring(n.raw.length), t.push(n), !0) : !1))) { if (n = this.tokenizer.space(e)) { e = e.substring(n.raw.length), n.raw.length === 1 && t.length > 0 ? t[t.length - 1].raw += ` ` : t.push(n); @@ -1416,18 +1416,18 @@ class Ae { e = e.substring(n.raw.length), t.push(n); continue; } - if (a = e, this.options.extensions && this.options.extensions.startBlock) { - let r = 1 / 0; - const s = e.slice(1); + if (l = e, this.options.extensions && this.options.extensions.startBlock) { + let s = 1 / 0; + const r = e.slice(1); let u; this.options.extensions.startBlock.forEach((_) => { - u = _.call({ lexer: this }, s), typeof u == "number" && u >= 0 && (r = Math.min(r, u)); - }), r < 1 / 0 && r >= 0 && (a = e.substring(0, r + 1)); + u = _.call({ lexer: this }, r), typeof u == "number" && u >= 0 && (s = Math.min(s, u)); + }), s < 1 / 0 && s >= 0 && (l = e.substring(0, s + 1)); } - if (this.state.top && (n = this.tokenizer.paragraph(a))) { - i = t[t.length - 1], l && i.type === "paragraph" ? (i.raw += ` + if (this.state.top && (n = this.tokenizer.paragraph(l))) { + i = t[t.length - 1], o && i.type === "paragraph" ? (i.raw += ` ` + n.raw, i.text += ` -` + n.text, this.inlineQueue.pop(), this.inlineQueue[this.inlineQueue.length - 1].src = i.text) : t.push(n), l = a.length !== e.length, e = e.substring(n.raw.length); +` + n.text, this.inlineQueue.pop(), this.inlineQueue[this.inlineQueue.length - 1].src = i.text) : t.push(n), o = l.length !== e.length, e = e.substring(n.raw.length); continue; } if (n = this.tokenizer.text(e)) { @@ -1437,12 +1437,12 @@ class Ae { continue; } if (e) { - const r = "Infinite loop on byte: " + e.charCodeAt(0); + const s = "Infinite loop on byte: " + e.charCodeAt(0); if (this.options.silent) { - console.error(r); + console.error(s); break; } else - throw new Error(r); + throw new Error(s); } } return this.state.top = !0, t; @@ -1454,19 +1454,19 @@ class Ae { * Lexing/Compiling */ inlineTokens(e, t = []) { - let n, i, a, l = e, r, s, u; + let n, i, l, o = e, s, r, u; if (this.tokens.links) { const _ = Object.keys(this.tokens.links); if (_.length > 0) - for (; (r = this.tokenizer.rules.inline.reflinkSearch.exec(l)) != null; ) - _.includes(r[0].slice(r[0].lastIndexOf("[") + 1, -1)) && (l = l.slice(0, r.index) + "[" + "a".repeat(r[0].length - 2) + "]" + l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex)); + for (; (s = this.tokenizer.rules.inline.reflinkSearch.exec(o)) != null; ) + _.includes(s[0].slice(s[0].lastIndexOf("[") + 1, -1)) && (o = o.slice(0, s.index) + "[" + "a".repeat(s[0].length - 2) + "]" + o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex)); } - for (; (r = this.tokenizer.rules.inline.blockSkip.exec(l)) != null; ) - l = l.slice(0, r.index) + "[" + "a".repeat(r[0].length - 2) + "]" + l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex); - for (; (r = this.tokenizer.rules.inline.anyPunctuation.exec(l)) != null; ) - l = l.slice(0, r.index) + "++" + l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex); + for (; (s = this.tokenizer.rules.inline.blockSkip.exec(o)) != null; ) + o = o.slice(0, s.index) + "[" + "a".repeat(s[0].length - 2) + "]" + o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex); + for (; (s = this.tokenizer.rules.inline.anyPunctuation.exec(o)) != null; ) + o = o.slice(0, s.index) + "++" + o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex); for (; e; ) - if (s || (u = ""), s = !1, !(this.options.extensions && this.options.extensions.inline && this.options.extensions.inline.some((_) => (n = _.call({ lexer: this }, e, t)) ? (e = e.substring(n.raw.length), t.push(n), !0) : !1))) { + if (r || (u = ""), r = !1, !(this.options.extensions && this.options.extensions.inline && this.options.extensions.inline.some((_) => (n = _.call({ lexer: this }, e, t)) ? (e = e.substring(n.raw.length), t.push(n), !0) : !1))) { if (n = this.tokenizer.escape(e)) { e = e.substring(n.raw.length), t.push(n); continue; @@ -1483,7 +1483,7 @@ class Ae { e = e.substring(n.raw.length), i = t[t.length - 1], i && n.type === "text" && i.type === "text" ? (i.raw += n.raw, i.text += n.text) : t.push(n); continue; } - if (n = this.tokenizer.emStrong(e, l, u)) { + if (n = this.tokenizer.emStrong(e, o, u)) { e = e.substring(n.raw.length), t.push(n); continue; } @@ -1507,16 +1507,16 @@ class Ae { e = e.substring(n.raw.length), t.push(n); continue; } - if (a = e, this.options.extensions && this.options.extensions.startInline) { + if (l = e, this.options.extensions && this.options.extensions.startInline) { let _ = 1 / 0; - const c = e.slice(1); - let d; - this.options.extensions.startInline.forEach((f) => { - d = f.call({ lexer: this }, c), typeof d == "number" && d >= 0 && (_ = Math.min(_, d)); - }), _ < 1 / 0 && _ >= 0 && (a = e.substring(0, _ + 1)); + const d = e.slice(1); + let c; + this.options.extensions.startInline.forEach((h) => { + c = h.call({ lexer: this }, d), typeof c == "number" && c >= 0 && (_ = Math.min(_, c)); + }), _ < 1 / 0 && _ >= 0 && (l = e.substring(0, _ + 1)); } - if (n = this.tokenizer.inlineText(a)) { - e = e.substring(n.raw.length), n.raw.slice(-1) !== "_" && (u = n.raw.slice(-1)), s = !0, i = t[t.length - 1], i && i.type === "text" ? (i.raw += n.raw, i.text += n.text) : t.push(n); + if (n = this.tokenizer.inlineText(l)) { + e = e.substring(n.raw.length), n.raw.slice(-1) !== "_" && (u = n.raw.slice(-1)), r = !0, i = t[t.length - 1], i && i.type === "text" ? (i.raw += n.raw, i.text += n.text) : t.push(n); continue; } if (e) { @@ -1531,17 +1531,17 @@ class Ae { return t; } } -class Gt { +class dn { constructor(e) { - P(this, "options"); - this.options = e || nt; + M(this, "options"); + this.options = e || ht; } code(e, t, n) { - var a; - const i = (a = (t || "").match(/^\S*/)) == null ? void 0 : a[0]; + var l; + const i = (l = (t || "").match(/^\S*/)) == null ? void 0 : l[0]; return e = e.replace(/\n$/, "") + ` -`, i ? '
' + (n ? e : oe(e, !0)) + `
-` : "
" + (n ? e : oe(e, !0)) + `
+`, i ? '
' + (n ? e : fe(e, !0)) + `
+` : "
" + (n ? e : fe(e, !0)) + `
`; } blockquote(e) { @@ -1561,8 +1561,8 @@ ${e} `; } list(e, t, n) { - const i = t ? "ol" : "ul", a = t && n !== 1 ? ' start="' + n + '"' : ""; - return "<" + i + a + `> + const i = t ? "ol" : "ul", l = t && n !== 1 ? ' start="' + n + '"' : ""; + return "<" + i + l + `> ` + e + " `; } @@ -1613,26 +1613,26 @@ ${e} return `${e}`; } link(e, t, n) { - const i = jn(e); + const i = ni(e); if (i === null) return n; e = i; - let a = '", a; + let l = '", l; } image(e, t, n) { - const i = jn(e); + const i = ni(e); if (i === null) return n; e = i; - let a = `${n} 0 && d.tokens[0].type === "paragraph" ? (d.tokens[0].text = v + " " + d.tokens[0].text, d.tokens[0].tokens && d.tokens[0].tokens.length > 0 && d.tokens[0].tokens[0].type === "text" && (d.tokens[0].tokens[0].text = v + " " + d.tokens[0].tokens[0].text)) : d.tokens.unshift({ + for (let d = 0; d < o.items.length; d++) { + const c = o.items[d], h = c.checked, g = c.task; + let p = ""; + if (c.task) { + const D = this.renderer.checkbox(!!h); + u ? c.tokens.length > 0 && c.tokens[0].type === "paragraph" ? (c.tokens[0].text = D + " " + c.tokens[0].text, c.tokens[0].tokens && c.tokens[0].tokens.length > 0 && c.tokens[0].tokens[0].type === "text" && (c.tokens[0].tokens[0].text = D + " " + c.tokens[0].tokens[0].text)) : c.tokens.unshift({ type: "text", - text: v + " " - }) : m += v + " "; + text: D + " " + }) : p += D + " "; } - m += this.parse(d.tokens, u), _ += this.renderer.listitem(m, g, !!f); + p += this.parse(c.tokens, u), _ += this.renderer.listitem(p, g, !!h); } - n += this.renderer.list(_, r, s); + n += this.renderer.list(_, s, r); continue; } case "html": { - const l = a; - n += this.renderer.html(l.text, l.block); + const o = l; + n += this.renderer.html(o.text, o.block); continue; } case "paragraph": { - const l = a; - n += this.renderer.paragraph(this.parseInline(l.tokens)); + const o = l; + n += this.renderer.paragraph(this.parseInline(o.tokens)); continue; } case "text": { - let l = a, r = l.tokens ? this.parseInline(l.tokens) : l.text; + let o = l, s = o.tokens ? this.parseInline(o.tokens) : o.text; for (; i + 1 < e.length && e[i + 1].type === "text"; ) - l = e[++i], r += ` -` + (l.tokens ? this.parseInline(l.tokens) : l.text); - n += t ? this.renderer.paragraph(r) : r; + o = e[++i], s += ` +` + (o.tokens ? this.parseInline(o.tokens) : o.text); + n += t ? this.renderer.paragraph(s) : s; continue; } default: { - const l = 'Token with "' + a.type + '" type was not found.'; + const o = 'Token with "' + l.type + '" type was not found.'; if (this.options.silent) - return console.error(l), ""; - throw new Error(l); + return console.error(o), ""; + throw new Error(o); } } } @@ -1787,48 +1787,48 @@ class Se { t = t || this.renderer; let n = ""; for (let i = 0; i < e.length; i++) { - const a = e[i]; - if (this.options.extensions && this.options.extensions.renderers && this.options.extensions.renderers[a.type]) { - const l = this.options.extensions.renderers[a.type].call({ parser: this }, a); - if (l !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(a.type)) { - n += l || ""; + const l = e[i]; + if (this.options.extensions && this.options.extensions.renderers && this.options.extensions.renderers[l.type]) { + const o = this.options.extensions.renderers[l.type].call({ parser: this }, l); + if (o !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(l.type)) { + n += o || ""; continue; } } - switch (a.type) { + switch (l.type) { case "escape": { - const l = a; - n += t.text(l.text); + const o = l; + n += t.text(o.text); break; } case "html": { - const l = a; - n += t.html(l.text); + const o = l; + n += t.html(o.text); break; } case "link": { - const l = a; - n += t.link(l.href, l.title, this.parseInline(l.tokens, t)); + const o = l; + n += t.link(o.href, o.title, this.parseInline(o.tokens, t)); break; } case "image": { - const l = a; - n += t.image(l.href, l.title, l.text); + const o = l; + n += t.image(o.href, o.title, o.text); break; } case "strong": { - const l = a; - n += t.strong(this.parseInline(l.tokens, t)); + const o = l; + n += t.strong(this.parseInline(o.tokens, t)); break; } case "em": { - const l = a; - n += t.em(this.parseInline(l.tokens, t)); + const o = l; + n += t.em(this.parseInline(o.tokens, t)); break; } case "codespan": { - const l = a; - n += t.codespan(l.text); + const o = l; + n += t.codespan(o.text); break; } case "br": { @@ -1836,30 +1836,30 @@ class Se { break; } case "del": { - const l = a; - n += t.del(this.parseInline(l.tokens, t)); + const o = l; + n += t.del(this.parseInline(o.tokens, t)); break; } case "text": { - const l = a; - n += t.text(l.text); + const o = l; + n += t.text(o.text); break; } default: { - const l = 'Token with "' + a.type + '" type was not found.'; + const o = 'Token with "' + l.type + '" type was not found.'; if (this.options.silent) - return console.error(l), ""; - throw new Error(l); + return console.error(o), ""; + throw new Error(o); } } } return n; } } -class vt { +class qt { constructor(e) { - P(this, "options"); - this.options = e || nt; + M(this, "options"); + this.options = e || ht; } /** * Process markdown before marked @@ -1880,55 +1880,55 @@ class vt { return e; } } -P(vt, "passThroughHooks", /* @__PURE__ */ new Set([ +M(qt, "passThroughHooks", /* @__PURE__ */ new Set([ "preprocess", "postprocess", "processAllTokens" ])); -var tt, _n, Cl; -class Qo { +var ft, An, Pl; +class eo { constructor(...e) { - Rn(this, tt); - P(this, "defaults", Fn()); - P(this, "options", this.setOptions); - P(this, "parse", qt(this, tt, _n).call(this, Ae.lex, Se.parse)); - P(this, "parseInline", qt(this, tt, _n).call(this, Ae.lexInline, Se.parseInline)); - P(this, "Parser", Se); - P(this, "Renderer", Gt); - P(this, "TextRenderer", Bn); - P(this, "Lexer", Ae); - P(this, "Tokenizer", Vt); - P(this, "Hooks", vt); + Wn(this, ft); + M(this, "defaults", Nn()); + M(this, "options", this.setOptions); + M(this, "parse", Wt(this, ft, An).call(this, He.lex, xe.parse)); + M(this, "parseInline", Wt(this, ft, An).call(this, He.lexInline, xe.parseInline)); + M(this, "Parser", xe); + M(this, "Renderer", dn); + M(this, "TextRenderer", Gn); + M(this, "Lexer", He); + M(this, "Tokenizer", _n); + M(this, "Hooks", qt); this.use(...e); } /** * Run callback for every token */ walkTokens(e, t) { - var i, a; + var i, l; let n = []; - for (const l of e) - switch (n = n.concat(t.call(this, l)), l.type) { + for (const o of e) + switch (n = n.concat(t.call(this, o)), o.type) { case "table": { - const r = l; - for (const s of r.header) - n = n.concat(this.walkTokens(s.tokens, t)); - for (const s of r.rows) - for (const u of s) + const s = o; + for (const r of s.header) + n = n.concat(this.walkTokens(r.tokens, t)); + for (const r of s.rows) + for (const u of r) n = n.concat(this.walkTokens(u.tokens, t)); break; } case "list": { - const r = l; - n = n.concat(this.walkTokens(r.items, t)); + const s = o; + n = n.concat(this.walkTokens(s.items, t)); break; } default: { - const r = l; - (a = (i = this.defaults.extensions) == null ? void 0 : i.childTokens) != null && a[r.type] ? this.defaults.extensions.childTokens[r.type].forEach((s) => { - const u = r[s].flat(1 / 0); + const s = o; + (l = (i = this.defaults.extensions) == null ? void 0 : i.childTokens) != null && l[s.type] ? this.defaults.extensions.childTokens[s.type].forEach((r) => { + const u = s[r].flat(1 / 0); n = n.concat(this.walkTokens(u, t)); - }) : r.tokens && (n = n.concat(this.walkTokens(r.tokens, t))); + }) : s.tokens && (n = n.concat(this.walkTokens(s.tokens, t))); } } return n; @@ -1937,78 +1937,78 @@ class Qo { const t = this.defaults.extensions || { renderers: {}, childTokens: {} }; return e.forEach((n) => { const i = { ...n }; - if (i.async = this.defaults.async || i.async || !1, n.extensions && (n.extensions.forEach((a) => { - if (!a.name) + if (i.async = this.defaults.async || i.async || !1, n.extensions && (n.extensions.forEach((l) => { + if (!l.name) throw new Error("extension name required"); - if ("renderer" in a) { - const l = t.renderers[a.name]; - l ? t.renderers[a.name] = function(...r) { - let s = a.renderer.apply(this, r); - return s === !1 && (s = l.apply(this, r)), s; - } : t.renderers[a.name] = a.renderer; + if ("renderer" in l) { + const o = t.renderers[l.name]; + o ? t.renderers[l.name] = function(...s) { + let r = l.renderer.apply(this, s); + return r === !1 && (r = o.apply(this, s)), r; + } : t.renderers[l.name] = l.renderer; } - if ("tokenizer" in a) { - if (!a.level || a.level !== "block" && a.level !== "inline") + if ("tokenizer" in l) { + if (!l.level || l.level !== "block" && l.level !== "inline") throw new Error("extension level must be 'block' or 'inline'"); - const l = t[a.level]; - l ? l.unshift(a.tokenizer) : t[a.level] = [a.tokenizer], a.start && (a.level === "block" ? t.startBlock ? t.startBlock.push(a.start) : t.startBlock = [a.start] : a.level === "inline" && (t.startInline ? t.startInline.push(a.start) : t.startInline = [a.start])); + const o = t[l.level]; + o ? o.unshift(l.tokenizer) : t[l.level] = [l.tokenizer], l.start && (l.level === "block" ? t.startBlock ? t.startBlock.push(l.start) : t.startBlock = [l.start] : l.level === "inline" && (t.startInline ? t.startInline.push(l.start) : t.startInline = [l.start])); } - "childTokens" in a && a.childTokens && (t.childTokens[a.name] = a.childTokens); + "childTokens" in l && l.childTokens && (t.childTokens[l.name] = l.childTokens); }), i.extensions = t), n.renderer) { - const a = this.defaults.renderer || new Gt(this.defaults); - for (const l in n.renderer) { - if (!(l in a)) - throw new Error(`renderer '${l}' does not exist`); - if (l === "options") + const l = this.defaults.renderer || new dn(this.defaults); + for (const o in n.renderer) { + if (!(o in l)) + throw new Error(`renderer '${o}' does not exist`); + if (o === "options") continue; - const r = l, s = n.renderer[r], u = a[r]; - a[r] = (..._) => { - let c = s.apply(a, _); - return c === !1 && (c = u.apply(a, _)), c || ""; + const s = o, r = n.renderer[s], u = l[s]; + l[s] = (..._) => { + let d = r.apply(l, _); + return d === !1 && (d = u.apply(l, _)), d || ""; }; } - i.renderer = a; + i.renderer = l; } if (n.tokenizer) { - const a = this.defaults.tokenizer || new Vt(this.defaults); - for (const l in n.tokenizer) { - if (!(l in a)) - throw new Error(`tokenizer '${l}' does not exist`); - if (["options", "rules", "lexer"].includes(l)) + const l = this.defaults.tokenizer || new _n(this.defaults); + for (const o in n.tokenizer) { + if (!(o in l)) + throw new Error(`tokenizer '${o}' does not exist`); + if (["options", "rules", "lexer"].includes(o)) continue; - const r = l, s = n.tokenizer[r], u = a[r]; - a[r] = (..._) => { - let c = s.apply(a, _); - return c === !1 && (c = u.apply(a, _)), c; + const s = o, r = n.tokenizer[s], u = l[s]; + l[s] = (..._) => { + let d = r.apply(l, _); + return d === !1 && (d = u.apply(l, _)), d; }; } - i.tokenizer = a; + i.tokenizer = l; } if (n.hooks) { - const a = this.defaults.hooks || new vt(); - for (const l in n.hooks) { - if (!(l in a)) - throw new Error(`hook '${l}' does not exist`); - if (l === "options") + const l = this.defaults.hooks || new qt(); + for (const o in n.hooks) { + if (!(o in l)) + throw new Error(`hook '${o}' does not exist`); + if (o === "options") continue; - const r = l, s = n.hooks[r], u = a[r]; - vt.passThroughHooks.has(l) ? a[r] = (_) => { + const s = o, r = n.hooks[s], u = l[s]; + qt.passThroughHooks.has(o) ? l[s] = (_) => { if (this.defaults.async) - return Promise.resolve(s.call(a, _)).then((d) => u.call(a, d)); - const c = s.call(a, _); - return u.call(a, c); - } : a[r] = (..._) => { - let c = s.apply(a, _); - return c === !1 && (c = u.apply(a, _)), c; + return Promise.resolve(r.call(l, _)).then((c) => u.call(l, c)); + const d = r.call(l, _); + return u.call(l, d); + } : l[s] = (..._) => { + let d = r.apply(l, _); + return d === !1 && (d = u.apply(l, _)), d; }; } - i.hooks = a; + i.hooks = l; } if (n.walkTokens) { - const a = this.defaults.walkTokens, l = n.walkTokens; - i.walkTokens = function(r) { - let s = []; - return s.push(l.call(this, r)), a && (s = s.concat(a.call(this, r))), s; + const l = this.defaults.walkTokens, o = n.walkTokens; + i.walkTokens = function(s) { + let r = []; + return r.push(o.call(this, s)), l && (r = r.concat(l.call(this, s))), r; }; } this.defaults = { ...this.defaults, ...i }; @@ -2018,38 +2018,38 @@ class Qo { return this.defaults = { ...this.defaults, ...e }, this; } lexer(e, t) { - return Ae.lex(e, t ?? this.defaults); + return He.lex(e, t ?? this.defaults); } parser(e, t) { - return Se.parse(e, t ?? this.defaults); + return xe.parse(e, t ?? this.defaults); } } -tt = new WeakSet(), _n = function(e, t) { +ft = new WeakSet(), An = function(e, t) { return (n, i) => { - const a = { ...i }, l = { ...this.defaults, ...a }; - this.defaults.async === !0 && a.async === !1 && (l.silent || console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."), l.async = !0); - const r = qt(this, tt, Cl).call(this, !!l.silent, !!l.async); + const l = { ...i }, o = { ...this.defaults, ...l }; + this.defaults.async === !0 && l.async === !1 && (o.silent || console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."), o.async = !0); + const s = Wt(this, ft, Pl).call(this, !!o.silent, !!o.async); if (typeof n > "u" || n === null) - return r(new Error("marked(): input parameter is undefined or null")); + return s(new Error("marked(): input parameter is undefined or null")); if (typeof n != "string") - return r(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected")); - if (l.hooks && (l.hooks.options = l), l.async) - return Promise.resolve(l.hooks ? l.hooks.preprocess(n) : n).then((s) => e(s, l)).then((s) => l.hooks ? l.hooks.processAllTokens(s) : s).then((s) => l.walkTokens ? Promise.all(this.walkTokens(s, l.walkTokens)).then(() => s) : s).then((s) => t(s, l)).then((s) => l.hooks ? l.hooks.postprocess(s) : s).catch(r); + return s(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected")); + if (o.hooks && (o.hooks.options = o), o.async) + return Promise.resolve(o.hooks ? o.hooks.preprocess(n) : n).then((r) => e(r, o)).then((r) => o.hooks ? o.hooks.processAllTokens(r) : r).then((r) => o.walkTokens ? Promise.all(this.walkTokens(r, o.walkTokens)).then(() => r) : r).then((r) => t(r, o)).then((r) => o.hooks ? o.hooks.postprocess(r) : r).catch(s); try { - l.hooks && (n = l.hooks.preprocess(n)); - let s = e(n, l); - l.hooks && (s = l.hooks.processAllTokens(s)), l.walkTokens && this.walkTokens(s, l.walkTokens); - let u = t(s, l); - return l.hooks && (u = l.hooks.postprocess(u)), u; - } catch (s) { - return r(s); + o.hooks && (n = o.hooks.preprocess(n)); + let r = e(n, o); + o.hooks && (r = o.hooks.processAllTokens(r)), o.walkTokens && this.walkTokens(r, o.walkTokens); + let u = t(r, o); + return o.hooks && (u = o.hooks.postprocess(u)), u; + } catch (r) { + return s(r); } }; -}, Cl = function(e, t) { +}, Pl = function(e, t) { return (n) => { if (n.message += ` Please report this to https://github.com/markedjs/marked.`, e) { - const i = "

An error occurred:

" + oe(n.message + "", !0) + "
"; + const i = "

An error occurred:

" + fe(n.message + "", !0) + "
"; return t ? Promise.resolve(i) : i; } if (t) @@ -2057,40 +2057,40 @@ Please report this to https://github.com/markedjs/marked.`, e) { throw n; }; }; -const et = new Qo(); -function I(o, e) { - return et.parse(o, e); +const _t = new eo(); +function L(a, e) { + return _t.parse(a, e); } -I.options = I.setOptions = function(o) { - return et.setOptions(o), I.defaults = et.defaults, ml(I.defaults), I; +L.options = L.setOptions = function(a) { + return _t.setOptions(a), L.defaults = _t.defaults, Al(L.defaults), L; }; -I.getDefaults = Fn; -I.defaults = nt; -I.use = function(...o) { - return et.use(...o), I.defaults = et.defaults, ml(I.defaults), I; +L.getDefaults = Nn; +L.defaults = ht; +L.use = function(...a) { + return _t.use(...a), L.defaults = _t.defaults, Al(L.defaults), L; }; -I.walkTokens = function(o, e) { - return et.walkTokens(o, e); +L.walkTokens = function(a, e) { + return _t.walkTokens(a, e); }; -I.parseInline = et.parseInline; -I.Parser = Se; -I.parser = Se.parse; -I.Renderer = Gt; -I.TextRenderer = Bn; -I.Lexer = Ae; -I.lexer = Ae.lex; -I.Tokenizer = Vt; -I.Hooks = vt; -I.parse = I; -I.options; -I.setOptions; -I.use; -I.walkTokens; -I.parseInline; -Se.parse; -Ae.lex; -const Jo = /[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g, ea = Object.hasOwnProperty; -class El { +L.parseInline = _t.parseInline; +L.Parser = xe; +L.parser = xe.parse; +L.Renderer = dn; +L.TextRenderer = Gn; +L.Lexer = He; +L.lexer = He.lex; +L.Tokenizer = _n; +L.Hooks = qt; +L.parse = L; +L.options; +L.setOptions; +L.use; +L.walkTokens; +L.parseInline; +xe.parse; +He.lex; +const to = /[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g, no = Object.hasOwnProperty; +class Ml { /** * Create a new slug class. */ @@ -2113,10 +2113,10 @@ class El { */ slug(e, t) { const n = this; - let i = ta(e, t === !0); - const a = i; - for (; ea.call(n.occurrences, i); ) - n.occurrences[a]++, i = a + "-" + n.occurrences[a]; + let i = io(e, t === !0); + const l = i; + for (; no.call(n.occurrences, i); ) + n.occurrences[l]++, i = l + "-" + n.occurrences[l]; return n.occurrences[i] = 0, i; } /** @@ -2128,12 +2128,12 @@ class El { this.occurrences = /* @__PURE__ */ Object.create(null); } } -function ta(o, e) { - return typeof o != "string" ? "" : (e || (o = o.toLowerCase()), o.replace(Jo, "").replace(/ /g, "-")); +function io(a, e) { + return typeof a != "string" ? "" : (e || (a = a.toLowerCase()), a.replace(to, "").replace(/ /g, "-")); } -new El(); -var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, na = { exports: {} }; -(function(o) { +new Ml(); +var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, lo = { exports: {} }; +(function(a) { var e = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {}; /** * Prism: Lightweight, robust, elegant syntax highlighting @@ -2144,7 +2144,7 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t * @public */ var t = function(n) { - var i = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, a = 0, l = {}, r = { + var i = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, l = 0, o = {}, s = { /** * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load @@ -2199,8 +2199,8 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t * @memberof Prism */ util: { - encode: function p(h) { - return h instanceof s ? new s(h.type, p(h.content), h.alias) : Array.isArray(h) ? h.map(p) : h.replace(/&/g, "&").replace(/} */ - {}, b[D] = y; - for (var $ in h) - h.hasOwnProperty($) && (y[$] = p(h[$], b)); + {}, v[b] = y; + for (var F in f) + f.hasOwnProperty(F) && (y[F] = m(f[F], v)); return ( /** @type {any} */ y ); case "Array": - return D = r.util.objId(h), b[D] ? b[D] : (y = [], b[D] = y, /** @type {Array} */ + return b = s.util.objId(f), v[b] ? v[b] : (y = [], v[b] = y, /** @type {Array} */ /** @type {any} */ - h.forEach(function(S, k) { - y[k] = p(S, b); + f.forEach(function(A, E) { + y[E] = m(A, v); }), /** @type {any} */ y); default: - return h; + return f; } }, /** @@ -2274,12 +2274,12 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t * @param {Element} element * @returns {string} */ - getLanguage: function(p) { - for (; p; ) { - var h = i.exec(p.className); - if (h) - return h[1].toLowerCase(); - p = p.parentElement; + getLanguage: function(m) { + for (; m; ) { + var f = i.exec(m.className); + if (f) + return f[1].toLowerCase(); + m = m.parentElement; } return "none"; }, @@ -2290,8 +2290,8 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t * @param {string} language * @returns {void} */ - setLanguage: function(p, h) { - p.className = p.className.replace(RegExp(i, "gi"), ""), p.classList.add("language-" + h); + setLanguage: function(m, f) { + m.className = m.className.replace(RegExp(i, "gi"), ""), m.classList.add("language-" + f); }, /** * Returns the script element that is currently executing. @@ -2311,12 +2311,12 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t try { throw new Error(); } catch (y) { - var p = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(y.stack) || [])[1]; - if (p) { - var h = document.getElementsByTagName("script"); - for (var b in h) - if (h[b].src == p) - return h[b]; + var m = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(y.stack) || [])[1]; + if (m) { + var f = document.getElementsByTagName("script"); + for (var v in f) + if (f[v].src == m) + return f[v]; } return null; } @@ -2340,16 +2340,16 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t * @param {boolean} [defaultActivation=false] * @returns {boolean} */ - isActive: function(p, h, b) { - for (var y = "no-" + h; p; ) { - var D = p.classList; - if (D.contains(h)) + isActive: function(m, f, v) { + for (var y = "no-" + f; m; ) { + var b = m.classList; + if (b.contains(f)) return !0; - if (D.contains(y)) + if (b.contains(y)) return !1; - p = p.parentElement; + m = m.parentElement; } - return !!b; + return !!v; } }, /** @@ -2363,10 +2363,10 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t /** * The grammar for plain, unformatted text. */ - plain: l, - plaintext: l, - text: l, - txt: l, + plain: o, + plaintext: o, + text: o, + txt: o, /** * Creates a deep copy of the language with the given id and appends the given tokens. * @@ -2395,11 +2395,11 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t * 'color': /\b(?:red|green|blue)\b/ * }); */ - extend: function(p, h) { - var b = r.util.clone(r.languages[p]); - for (var y in h) - b[y] = h[y]; - return b; + extend: function(m, f) { + var v = s.util.clone(s.languages[m]); + for (var y in f) + v[y] = f[y]; + return v; }, /** * Inserts tokens _before_ another token in a language definition or any other grammar. @@ -2476,31 +2476,31 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t * @returns {Grammar} The new grammar object. * @public */ - insertBefore: function(p, h, b, y) { + insertBefore: function(m, f, v, y) { y = y || /** @type {any} */ - r.languages; - var D = y[p], $ = {}; - for (var S in D) - if (D.hasOwnProperty(S)) { - if (S == h) - for (var k in b) - b.hasOwnProperty(k) && ($[k] = b[k]); - b.hasOwnProperty(S) || ($[S] = D[S]); + s.languages; + var b = y[m], F = {}; + for (var A in b) + if (b.hasOwnProperty(A)) { + if (A == f) + for (var E in v) + v.hasOwnProperty(E) && (F[E] = v[E]); + v.hasOwnProperty(A) || (F[A] = b[A]); } - var q = y[p]; - return y[p] = $, r.languages.DFS(r.languages, function(C, O) { - O === q && C != p && (this[C] = $); - }), $; + var q = y[m]; + return y[m] = F, s.languages.DFS(s.languages, function(w, $) { + $ === q && w != m && (this[w] = F); + }), F; }, // Traverse a language definition with Depth First Search - DFS: function p(h, b, y, D) { - D = D || {}; - var $ = r.util.objId; - for (var S in h) - if (h.hasOwnProperty(S)) { - b.call(h, S, h[S], y || S); - var k = h[S], q = r.util.type(k); - q === "Object" && !D[$(k)] ? (D[$(k)] = !0, p(k, b, null, D)) : q === "Array" && !D[$(k)] && (D[$(k)] = !0, p(k, b, S, D)); + DFS: function m(f, v, y, b) { + b = b || {}; + var F = s.util.objId; + for (var A in f) + if (f.hasOwnProperty(A)) { + v.call(f, A, f[A], y || A); + var E = f[A], q = s.util.type(E); + q === "Object" && !b[F(E)] ? (b[F(E)] = !0, m(E, v, null, b)) : q === "Array" && !b[F(E)] && (b[F(E)] = !0, m(E, v, A, b)); } } }, @@ -2517,8 +2517,8 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t * @memberof Prism * @public */ - highlightAll: function(p, h) { - r.highlightAllUnder(document, p, h); + highlightAll: function(m, f) { + s.highlightAllUnder(document, m, f); }, /** * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls @@ -2535,15 +2535,15 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t * @memberof Prism * @public */ - highlightAllUnder: function(p, h, b) { + highlightAllUnder: function(m, f, v) { var y = { - callback: b, - container: p, + callback: v, + container: m, selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code' }; - r.hooks.run("before-highlightall", y), y.elements = Array.prototype.slice.apply(y.container.querySelectorAll(y.selector)), r.hooks.run("before-all-elements-highlight", y); - for (var D = 0, $; $ = y.elements[D++]; ) - r.highlightElement($, h === !0, y.callback); + s.hooks.run("before-highlightall", y), y.elements = Array.prototype.slice.apply(y.container.querySelectorAll(y.selector)), s.hooks.run("before-all-elements-highlight", y); + for (var b = 0, F; F = y.elements[b++]; ) + s.highlightElement(F, f === !0, y.callback); }, /** * Highlights the code inside a single element. @@ -2573,39 +2573,39 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t * @memberof Prism * @public */ - highlightElement: function(p, h, b) { - var y = r.util.getLanguage(p), D = r.languages[y]; - r.util.setLanguage(p, y); - var $ = p.parentElement; - $ && $.nodeName.toLowerCase() === "pre" && r.util.setLanguage($, y); - var S = p.textContent, k = { - element: p, + highlightElement: function(m, f, v) { + var y = s.util.getLanguage(m), b = s.languages[y]; + s.util.setLanguage(m, y); + var F = m.parentElement; + F && F.nodeName.toLowerCase() === "pre" && s.util.setLanguage(F, y); + var A = m.textContent, E = { + element: m, language: y, - grammar: D, - code: S + grammar: b, + code: A }; - function q(O) { - k.highlightedCode = O, r.hooks.run("before-insert", k), k.element.innerHTML = k.highlightedCode, r.hooks.run("after-highlight", k), r.hooks.run("complete", k), b && b.call(k.element); + function q($) { + E.highlightedCode = $, s.hooks.run("before-insert", E), E.element.innerHTML = E.highlightedCode, s.hooks.run("after-highlight", E), s.hooks.run("complete", E), v && v.call(E.element); } - if (r.hooks.run("before-sanity-check", k), $ = k.element.parentElement, $ && $.nodeName.toLowerCase() === "pre" && !$.hasAttribute("tabindex") && $.setAttribute("tabindex", "0"), !k.code) { - r.hooks.run("complete", k), b && b.call(k.element); + if (s.hooks.run("before-sanity-check", E), F = E.element.parentElement, F && F.nodeName.toLowerCase() === "pre" && !F.hasAttribute("tabindex") && F.setAttribute("tabindex", "0"), !E.code) { + s.hooks.run("complete", E), v && v.call(E.element); return; } - if (r.hooks.run("before-highlight", k), !k.grammar) { - q(r.util.encode(k.code)); + if (s.hooks.run("before-highlight", E), !E.grammar) { + q(s.util.encode(E.code)); return; } - if (h && n.Worker) { - var C = new Worker(r.filename); - C.onmessage = function(O) { - q(O.data); - }, C.postMessage(JSON.stringify({ - language: k.language, - code: k.code, + if (f && n.Worker) { + var w = new Worker(s.filename); + w.onmessage = function($) { + q($.data); + }, w.postMessage(JSON.stringify({ + language: E.language, + code: E.code, immediateClose: !0 })); } else - q(r.highlight(k.code, k.grammar, k.language)); + q(s.highlight(E.code, E.grammar, E.language)); }, /** * Low-level function, only use if you know what you’re doing. It accepts a string of text as input @@ -2627,15 +2627,15 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t * @example * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript'); */ - highlight: function(p, h, b) { + highlight: function(m, f, v) { var y = { - code: p, - grammar: h, - language: b + code: m, + grammar: f, + language: v }; - if (r.hooks.run("before-tokenize", y), !y.grammar) + if (s.hooks.run("before-tokenize", y), !y.grammar) throw new Error('The language "' + y.language + '" has no grammar.'); - return y.tokens = r.tokenize(y.code, y.grammar), r.hooks.run("after-tokenize", y), s.stringify(r.util.encode(y.tokens), y.language); + return y.tokens = s.tokenize(y.code, y.grammar), s.hooks.run("after-tokenize", y), r.stringify(s.util.encode(y.tokens), y.language); }, /** * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input @@ -2661,15 +2661,15 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t * } * }); */ - tokenize: function(p, h) { - var b = h.rest; - if (b) { - for (var y in b) - h[y] = b[y]; - delete h.rest; + tokenize: function(m, f) { + var v = f.rest; + if (v) { + for (var y in v) + f[y] = v[y]; + delete f.rest; } - var D = new c(); - return d(D, D.head, p), _(p, D, h, D.head, 0), g(D); + var b = new d(); + return c(b, b.head, m), _(m, b, f, b.head, 0), g(b); }, /** * @namespace @@ -2690,9 +2690,9 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t * @param {HookCallback} callback The callback function which is given environment variables. * @public */ - add: function(p, h) { - var b = r.hooks.all; - b[p] = b[p] || [], b[p].push(h); + add: function(m, f) { + var v = s.hooks.all; + v[m] = v[m] || [], v[m].push(f); }, /** * Runs a hook invoking all registered callbacks with the given environment variables. @@ -2703,135 +2703,135 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t * @param {Object} env The environment variables of the hook passed to all callbacks registered. * @public */ - run: function(p, h) { - var b = r.hooks.all[p]; - if (!(!b || !b.length)) - for (var y = 0, D; D = b[y++]; ) - D(h); + run: function(m, f) { + var v = s.hooks.all[m]; + if (!(!v || !v.length)) + for (var y = 0, b; b = v[y++]; ) + b(f); } }, - Token: s + Token: r }; - n.Prism = r; - function s(p, h, b, y) { - this.type = p, this.content = h, this.alias = b, this.length = (y || "").length | 0; + n.Prism = s; + function r(m, f, v, y) { + this.type = m, this.content = f, this.alias = v, this.length = (y || "").length | 0; } - s.stringify = function p(h, b) { - if (typeof h == "string") - return h; - if (Array.isArray(h)) { + r.stringify = function m(f, v) { + if (typeof f == "string") + return f; + if (Array.isArray(f)) { var y = ""; - return h.forEach(function(q) { - y += p(q, b); + return f.forEach(function(q) { + y += m(q, v); }), y; } - var D = { - type: h.type, - content: p(h.content, b), + var b = { + type: f.type, + content: m(f.content, v), tag: "span", - classes: ["token", h.type], + classes: ["token", f.type], attributes: {}, - language: b - }, $ = h.alias; - $ && (Array.isArray($) ? Array.prototype.push.apply(D.classes, $) : D.classes.push($)), r.hooks.run("wrap", D); - var S = ""; - for (var k in D.attributes) - S += " " + k + '="' + (D.attributes[k] || "").replace(/"/g, """) + '"'; - return "<" + D.tag + ' class="' + D.classes.join(" ") + '"' + S + ">" + D.content + ""; + language: v + }, F = f.alias; + F && (Array.isArray(F) ? Array.prototype.push.apply(b.classes, F) : b.classes.push(F)), s.hooks.run("wrap", b); + var A = ""; + for (var E in b.attributes) + A += " " + E + '="' + (b.attributes[E] || "").replace(/"/g, """) + '"'; + return "<" + b.tag + ' class="' + b.classes.join(" ") + '"' + A + ">" + b.content + ""; }; - function u(p, h, b, y) { - p.lastIndex = h; - var D = p.exec(b); - if (D && y && D[1]) { - var $ = D[1].length; - D.index += $, D[0] = D[0].slice($); + function u(m, f, v, y) { + m.lastIndex = f; + var b = m.exec(v); + if (b && y && b[1]) { + var F = b[1].length; + b.index += F, b[0] = b[0].slice(F); } - return D; + return b; } - function _(p, h, b, y, D, $) { - for (var S in b) - if (!(!b.hasOwnProperty(S) || !b[S])) { - var k = b[S]; - k = Array.isArray(k) ? k : [k]; - for (var q = 0; q < k.length; ++q) { - if ($ && $.cause == S + "," + q) + function _(m, f, v, y, b, F) { + for (var A in v) + if (!(!v.hasOwnProperty(A) || !v[A])) { + var E = v[A]; + E = Array.isArray(E) ? E : [E]; + for (var q = 0; q < E.length; ++q) { + if (F && F.cause == A + "," + q) return; - var C = k[q], O = C.inside, Xe = !!C.lookbehind, ne = !!C.greedy, Fe = C.alias; - if (ne && !C.pattern.global) { - var te = C.pattern.toString().match(/[imsuy]*$/)[0]; - C.pattern = RegExp(C.pattern.source, te + "g"); + var w = E[q], $ = w.inside, ge = !!w.lookbehind, _e = !!w.greedy, Me = w.alias; + if (_e && !w.pattern.global) { + var ue = w.pattern.toString().match(/[imsuy]*$/)[0]; + w.pattern = RegExp(w.pattern.source, ue + "g"); } - for (var Me = C.pattern || C, V = y.next, J = D; V !== h.tail && !($ && J >= $.reach); J += V.value.length, V = V.next) { - var pe = V.value; - if (h.length > p.length) + for (var nt = w.pattern || w, Z = y.next, se = b; Z !== f.tail && !(F && se >= F.reach); se += Z.value.length, Z = Z.next) { + var Se = Z.value; + if (f.length > m.length) return; - if (!(pe instanceof s)) { - var w = 1, Z; - if (ne) { - if (Z = u(Me, J, p, Xe), !Z || Z.index >= p.length) + if (!(Se instanceof r)) { + var C = 1, ee; + if (_e) { + if (ee = u(nt, se, m, ge), !ee || ee.index >= m.length) break; - var lt = Z.index, it = Z.index + Z[0].length, ie = J; - for (ie += V.value.length; lt >= ie; ) - V = V.next, ie += V.value.length; - if (ie -= V.value.length, J = ie, V.value instanceof s) + var mt = ee.index, pt = ee.index + ee[0].length, ce = se; + for (ce += Z.value.length; mt >= ce; ) + Z = Z.next, ce += Z.value.length; + if (ce -= Z.value.length, se = ce, Z.value instanceof r) continue; - for (var E = V; E !== h.tail && (ie < it || typeof E.value == "string"); E = E.next) - w++, ie += E.value.length; - w--, pe = p.slice(J, ie), Z.index -= J; - } else if (Z = u(Me, 0, pe, Xe), !Z) + for (var S = Z; S !== f.tail && (ce < pt || typeof S.value == "string"); S = S.next) + C++, ce += S.value.length; + C--, Se = m.slice(se, ce), ee.index -= se; + } else if (ee = u(nt, 0, Se, ge), !ee) continue; - var lt = Z.index, St = Z[0], Kt = pe.slice(0, lt), zn = pe.slice(lt + St.length), Qt = J + pe.length; - $ && Qt > $.reach && ($.reach = Qt); - var Bt = V.prev; - Kt && (Bt = d(h, Bt, Kt), J += Kt.length), f(h, Bt, w); - var Kl = new s(S, O ? r.tokenize(St, O) : St, Fe, St); - if (V = d(h, Bt, Kl), zn && d(h, V, zn), w > 1) { - var Jt = { - cause: S + "," + q, - reach: Qt + var mt = ee.index, Xt = ee[0], mn = Se.slice(0, mt), Xn = Se.slice(mt + Xt.length), gn = se + Se.length; + F && gn > F.reach && (F.reach = gn); + var Yt = Z.prev; + mn && (Yt = c(f, Yt, mn), se += mn.length), h(f, Yt, C); + var ea = new r(A, $ ? s.tokenize(Xt, $) : Xt, Me, Xt); + if (Z = c(f, Yt, ea), Xn && c(f, Z, Xn), C > 1) { + var vn = { + cause: A + "," + q, + reach: gn }; - _(p, h, b, V.prev, J, Jt), $ && Jt.reach > $.reach && ($.reach = Jt.reach); + _(m, f, v, Z.prev, se, vn), F && vn.reach > F.reach && (F.reach = vn.reach); } } } } } } - function c() { - var p = { value: null, prev: null, next: null }, h = { value: null, prev: p, next: null }; - p.next = h, this.head = p, this.tail = h, this.length = 0; + function d() { + var m = { value: null, prev: null, next: null }, f = { value: null, prev: m, next: null }; + m.next = f, this.head = m, this.tail = f, this.length = 0; } - function d(p, h, b) { - var y = h.next, D = { value: b, prev: h, next: y }; - return h.next = D, y.prev = D, p.length++, D; + function c(m, f, v) { + var y = f.next, b = { value: v, prev: f, next: y }; + return f.next = b, y.prev = b, m.length++, b; } - function f(p, h, b) { - for (var y = h.next, D = 0; D < b && y !== p.tail; D++) + function h(m, f, v) { + for (var y = f.next, b = 0; b < v && y !== m.tail; b++) y = y.next; - h.next = y, y.prev = h, p.length -= D; + f.next = y, y.prev = f, m.length -= b; } - function g(p) { - for (var h = [], b = p.head.next; b !== p.tail; ) - h.push(b.value), b = b.next; - return h; + function g(m) { + for (var f = [], v = m.head.next; v !== m.tail; ) + f.push(v.value), v = v.next; + return f; } if (!n.document) - return n.addEventListener && (r.disableWorkerMessageHandler || n.addEventListener("message", function(p) { - var h = JSON.parse(p.data), b = h.language, y = h.code, D = h.immediateClose; - n.postMessage(r.highlight(y, r.languages[b], b)), D && n.close(); - }, !1)), r; - var m = r.util.currentScript(); - m && (r.filename = m.src, m.hasAttribute("data-manual") && (r.manual = !0)); - function v() { - r.manual || r.highlightAll(); + return n.addEventListener && (s.disableWorkerMessageHandler || n.addEventListener("message", function(m) { + var f = JSON.parse(m.data), v = f.language, y = f.code, b = f.immediateClose; + n.postMessage(s.highlight(y, s.languages[v], v)), b && n.close(); + }, !1)), s; + var p = s.util.currentScript(); + p && (s.filename = p.src, p.hasAttribute("data-manual") && (s.manual = !0)); + function D() { + s.manual || s.highlightAll(); } - if (!r.manual) { - var F = document.readyState; - F === "loading" || F === "interactive" && m && m.defer ? document.addEventListener("DOMContentLoaded", v) : window.requestAnimationFrame ? window.requestAnimationFrame(v) : window.setTimeout(v, 16); + if (!s.manual) { + var k = document.readyState; + k === "loading" || k === "interactive" && p && p.defer ? document.addEventListener("DOMContentLoaded", D) : window.requestAnimationFrame ? window.requestAnimationFrame(D) : window.setTimeout(D, 16); } - return r; + return s; }(e); - o.exports && (o.exports = t), typeof Gn < "u" && (Gn.Prism = t), t.languages.markup = { + a.exports && (a.exports = t), typeof oi < "u" && (oi.Prism = t), t.languages.markup = { comment: { pattern: //, greedy: !0 @@ -2922,32 +2922,32 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t * @example * addInlined('style', 'css'); */ - value: function(i, a) { - var l = {}; - l["language-" + a] = { + value: function(i, l) { + var o = {}; + o["language-" + l] = { pattern: /(^$)/i, lookbehind: !0, - inside: t.languages[a] - }, l.cdata = /^$/i; - var r = { + inside: t.languages[l] + }, o.cdata = /^$/i; + var s = { "included-cdata": { pattern: //i, - inside: l + inside: o } }; - r["language-" + a] = { + s["language-" + l] = { pattern: /[\s\S]+/, - inside: t.languages[a] + inside: t.languages[l] }; - var s = {}; - s[i] = { + var r = {}; + r[i] = { pattern: RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g, function() { return i; }), "i"), lookbehind: !0, greedy: !0, - inside: r - }, t.languages.insertBefore("markup", "cdata", s); + inside: s + }, t.languages.insertBefore("markup", "cdata", r); } }), Object.defineProperty(t.languages.markup.tag, "addAttribute", { /** @@ -3043,8 +3043,8 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t }, punctuation: /[(){};:,]/ }, n.languages.css.atrule.inside.rest = n.languages.css; - var a = n.languages.markup; - a && (a.tag.addInlined("style", "css"), a.tag.addAttribute("style", "css")); + var l = n.languages.markup; + l && (l.tag.addInlined("style", "css"), l.tag.addAttribute("style", "css")); }(t), t.languages.clike = { comment: [ { @@ -3209,9 +3209,9 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t if (typeof t > "u" || typeof document > "u") return; Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector); - var n = "Loading…", i = function(m, v) { - return "✖ Error " + m + " while fetching file: " + v; - }, a = "✖ Error: File does not exist or is empty", l = { + var n = "Loading…", i = function(p, D) { + return "✖ Error " + p + " while fetching file: " + D; + }, l = "✖ Error: File does not exist or is empty", o = { js: "javascript", py: "python", rb: "ruby", @@ -3221,52 +3221,52 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t bat: "batch", h: "c", tex: "latex" - }, r = "data-src-status", s = "loading", u = "loaded", _ = "failed", c = "pre[data-src]:not([" + r + '="' + u + '"]):not([' + r + '="' + s + '"])'; - function d(m, v, F) { - var p = new XMLHttpRequest(); - p.open("GET", m, !0), p.onreadystatechange = function() { - p.readyState == 4 && (p.status < 400 && p.responseText ? v(p.responseText) : p.status >= 400 ? F(i(p.status, p.statusText)) : F(a)); - }, p.send(null); + }, s = "data-src-status", r = "loading", u = "loaded", _ = "failed", d = "pre[data-src]:not([" + s + '="' + u + '"]):not([' + s + '="' + r + '"])'; + function c(p, D, k) { + var m = new XMLHttpRequest(); + m.open("GET", p, !0), m.onreadystatechange = function() { + m.readyState == 4 && (m.status < 400 && m.responseText ? D(m.responseText) : m.status >= 400 ? k(i(m.status, m.statusText)) : k(l)); + }, m.send(null); } - function f(m) { - var v = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(m || ""); - if (v) { - var F = Number(v[1]), p = v[2], h = v[3]; - return p ? h ? [F, Number(h)] : [F, void 0] : [F, F]; + function h(p) { + var D = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(p || ""); + if (D) { + var k = Number(D[1]), m = D[2], f = D[3]; + return m ? f ? [k, Number(f)] : [k, void 0] : [k, k]; } } - t.hooks.add("before-highlightall", function(m) { - m.selector += ", " + c; - }), t.hooks.add("before-sanity-check", function(m) { - var v = ( + t.hooks.add("before-highlightall", function(p) { + p.selector += ", " + d; + }), t.hooks.add("before-sanity-check", function(p) { + var D = ( /** @type {HTMLPreElement} */ - m.element + p.element ); - if (v.matches(c)) { - m.code = "", v.setAttribute(r, s); - var F = v.appendChild(document.createElement("CODE")); - F.textContent = n; - var p = v.getAttribute("data-src"), h = m.language; - if (h === "none") { - var b = (/\.(\w+)$/.exec(p) || [, "none"])[1]; - h = l[b] || b; + if (D.matches(d)) { + p.code = "", D.setAttribute(s, r); + var k = D.appendChild(document.createElement("CODE")); + k.textContent = n; + var m = D.getAttribute("data-src"), f = p.language; + if (f === "none") { + var v = (/\.(\w+)$/.exec(m) || [, "none"])[1]; + f = o[v] || v; } - t.util.setLanguage(F, h), t.util.setLanguage(v, h); + t.util.setLanguage(k, f), t.util.setLanguage(D, f); var y = t.plugins.autoloader; - y && y.loadLanguages(h), d( - p, - function(D) { - v.setAttribute(r, u); - var $ = f(v.getAttribute("data-range")); - if ($) { - var S = D.split(/\r\n?|\n/g), k = $[0], q = $[1] == null ? S.length : $[1]; - k < 0 && (k += S.length), k = Math.max(0, Math.min(k - 1, S.length)), q < 0 && (q += S.length), q = Math.max(0, Math.min(q, S.length)), D = S.slice(k, q).join(` -`), v.hasAttribute("data-start") || v.setAttribute("data-start", String(k + 1)); + y && y.loadLanguages(f), c( + m, + function(b) { + D.setAttribute(s, u); + var F = h(D.getAttribute("data-range")); + if (F) { + var A = b.split(/\r\n?|\n/g), E = F[0], q = F[1] == null ? A.length : F[1]; + E < 0 && (E += A.length), E = Math.max(0, Math.min(E - 1, A.length)), q < 0 && (q += A.length), q = Math.max(0, Math.min(q, A.length)), b = A.slice(E, q).join(` +`), D.hasAttribute("data-start") || D.setAttribute("data-start", String(E + 1)); } - F.textContent = D, t.highlightElement(F); + k.textContent = b, t.highlightElement(k); }, - function(D) { - v.setAttribute(r, _), F.textContent = D; + function(b) { + D.setAttribute(s, _), k.textContent = b; } ); } @@ -3278,9 +3278,9 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t * * @param {ParentNode} [container=document] */ - highlight: function(v) { - for (var F = (v || document).querySelectorAll(c), p = 0, h; h = F[p++]; ) - t.highlightElement(h); + highlight: function(D) { + for (var k = (D || document).querySelectorAll(d), m = 0, f; f = k[m++]; ) + t.highlightElement(f); } }; var g = !1; @@ -3288,7 +3288,7 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t g || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), g = !0), t.plugins.fileHighlight.highlight.apply(this, arguments); }; }(); -})(na); +})(lo); Prism.languages.python = { comment: { pattern: /(^|[^\\])#.*/, @@ -3352,14 +3352,14 @@ Prism.languages.python = { }; Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest = Prism.languages.python; Prism.languages.py = Prism.languages.python; -(function(o) { +(function(a) { var e = /\\(?:[^a-z()[\]]|[a-z*]+)/i, t = { "equation-command": { pattern: e, alias: "regex" } }; - o.languages.latex = { + a.languages.latex = { comment: /%.*/, // the verbatim environment prints whitespace to the document cdata: { @@ -3409,9 +3409,9 @@ Prism.languages.py = Prism.languages.python; alias: "selector" }, punctuation: /[[\]{}&]/ - }, o.languages.tex = o.languages.latex, o.languages.context = o.languages.latex; + }, a.languages.tex = a.languages.latex, a.languages.context = a.languages.latex; })(Prism); -(function(o) { +(function(a) { var e = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", t = { pattern: /(^(["']?)\w+\2)[ \t]+\S.*/, lookbehind: !0, @@ -3473,7 +3473,7 @@ Prism.languages.py = Prism.languages.python; // Escape sequences from echo and printf's manuals, and escaped quotes. entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/ }; - o.languages.bash = { + a.languages.bash = { shebang: { pattern: /^#!\s*\/.*/, alias: "important" @@ -3609,7 +3609,7 @@ Prism.languages.py = Prism.languages.python; pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/, lookbehind: !0 } - }, t.inside = o.languages.bash; + }, t.inside = a.languages.bash; for (var i = [ "comment", "function-name", @@ -3626,20 +3626,20 @@ Prism.languages.py = Prism.languages.python; "operator", "punctuation", "number" - ], a = n.variable[1].inside, l = 0; l < i.length; l++) - a[i[l]] = o.languages.bash[i[l]]; - o.languages.sh = o.languages.bash, o.languages.shell = o.languages.bash; + ], l = n.variable[1].inside, o = 0; o < i.length; o++) + l[i[o]] = a.languages.bash[i[o]]; + a.languages.sh = a.languages.bash, a.languages.shell = a.languages.bash; })(Prism); -new El(); -const ia = (o) => { +new Ml(); +const ao = (a) => { const e = {}; - for (let t = 0, n = o.length; t < n; t++) { - const i = o[t]; - for (const a in i) - e[a] ? e[a] = e[a].concat(i[a]) : e[a] = i[a]; + for (let t = 0, n = a.length; t < n; t++) { + const i = a[t]; + for (const l in i) + e[l] ? e[l] = e[l].concat(i[l]) : e[l] = i[l]; } return e; -}, la = [ +}, oo = [ "abbr", "accept", "accept-charset", @@ -3848,7 +3848,7 @@ const ia = (o) => { "webkitdirectory", "width", "wrap" -], oa = [ +], so = [ "accent-height", "accumulate", "additive", @@ -4032,7 +4032,7 @@ const ia = (o) => { "y2", "z", "zoomandpan" -], aa = [ +], ro = [ "accent", "accentunder", "align", @@ -4087,433 +4087,433 @@ const ia = (o) => { "width", "xmlns" ]; -ia([ - Object.fromEntries(la.map((o) => [o, ["*"]])), - Object.fromEntries(oa.map((o) => [o, ["svg:*"]])), - Object.fromEntries(aa.map((o) => [o, ["math:*"]])) +ao([ + Object.fromEntries(oo.map((a) => [a, ["*"]])), + Object.fromEntries(so.map((a) => [a, ["svg:*"]])), + Object.fromEntries(ro.map((a) => [a, ["math:*"]])) ]); const { - HtmlTagHydration: Bs, - SvelteComponent: qs, - attr: Ts, - binding_callbacks: xs, - children: zs, - claim_element: Is, - claim_html_tag: Rs, - detach: Ls, - element: Os, - init: Ps, - insert_hydration: Ms, - noop: Ns, - safe_not_equal: js, - toggle_class: Hs -} = window.__gradio__svelte__internal, { afterUpdate: Vs, tick: Us, onMount: Gs } = window.__gradio__svelte__internal, { - SvelteComponent: Zs, - attr: Xs, - children: Ys, - claim_component: Ws, - claim_element: Ks, - create_component: Qs, - destroy_component: Js, - detach: eu, - element: tu, - init: nu, - insert_hydration: iu, - mount_component: lu, - safe_not_equal: ou, - transition_in: au, - transition_out: ru + HtmlTagHydration: Hr, + SvelteComponent: xr, + attr: Vr, + binding_callbacks: Ur, + children: Gr, + claim_element: Zr, + claim_html_tag: Xr, + detach: Yr, + element: Wr, + init: Kr, + insert_hydration: Qr, + noop: Jr, + safe_not_equal: eu, + toggle_class: tu +} = window.__gradio__svelte__internal, { afterUpdate: nu, tick: iu, onMount: lu } = window.__gradio__svelte__internal, { + SvelteComponent: au, + attr: ou, + children: su, + claim_component: ru, + claim_element: uu, + create_component: _u, + destroy_component: cu, + detach: du, + element: fu, + init: hu, + insert_hydration: pu, + mount_component: mu, + safe_not_equal: gu, + transition_in: vu, + transition_out: bu } = window.__gradio__svelte__internal, { - SvelteComponent: su, - attr: uu, - check_outros: _u, - children: cu, - claim_component: du, - claim_element: hu, - claim_space: fu, - create_component: pu, - create_slot: mu, - destroy_component: gu, - detach: vu, - element: bu, - empty: Du, - get_all_dirty_from_scope: yu, - get_slot_changes: $u, - group_outros: wu, - init: Fu, - insert_hydration: ku, - mount_component: Cu, - safe_not_equal: Eu, - space: Au, - toggle_class: Su, - transition_in: Bu, - transition_out: qu, - update_slot_base: Tu + SvelteComponent: Du, + attr: yu, + check_outros: wu, + children: ku, + claim_component: Fu, + claim_element: $u, + claim_space: Cu, + create_component: Eu, + create_slot: Au, + destroy_component: Su, + detach: Bu, + element: qu, + empty: Tu, + get_all_dirty_from_scope: zu, + get_slot_changes: Iu, + group_outros: Ru, + init: Lu, + insert_hydration: Ou, + mount_component: Pu, + safe_not_equal: Mu, + space: Nu, + toggle_class: ju, + transition_in: Hu, + transition_out: xu, + update_slot_base: Vu } = window.__gradio__svelte__internal, { - SvelteComponent: xu, - append_hydration: zu, - attr: Iu, - children: Ru, - claim_component: Lu, - claim_element: Ou, - claim_space: Pu, - claim_text: Mu, - create_component: Nu, - destroy_component: ju, - detach: Hu, - element: Vu, - init: Uu, - insert_hydration: Gu, - mount_component: Zu, - safe_not_equal: Xu, - set_data: Yu, - space: Wu, - text: Ku, - toggle_class: Qu, - transition_in: Ju, - transition_out: e_ + SvelteComponent: Uu, + append_hydration: Gu, + attr: Zu, + children: Xu, + claim_component: Yu, + claim_element: Wu, + claim_space: Ku, + claim_text: Qu, + create_component: Ju, + destroy_component: e_, + detach: t_, + element: n_, + init: i_, + insert_hydration: l_, + mount_component: a_, + safe_not_equal: o_, + set_data: s_, + space: r_, + text: u_, + toggle_class: __, + transition_in: c_, + transition_out: d_ } = window.__gradio__svelte__internal, { - SvelteComponent: ra, - append_hydration: jt, - attr: ze, - bubble: sa, - check_outros: ua, - children: cn, - claim_component: _a, - claim_element: dn, - claim_space: Zn, - claim_text: ca, - construct_svelte_component: Xn, - create_component: Yn, - create_slot: da, - destroy_component: Wn, - detach: bt, - element: hn, - get_all_dirty_from_scope: ha, - get_slot_changes: fa, - group_outros: pa, - init: ma, - insert_hydration: Al, - listen: ga, - mount_component: Kn, - safe_not_equal: va, - set_data: ba, - set_style: zt, - space: Qn, - text: Da, - toggle_class: X, - transition_in: nn, - transition_out: ln, - update_slot_base: ya + SvelteComponent: uo, + append_hydration: rn, + attr: Xe, + bubble: _o, + check_outros: co, + children: Sn, + claim_component: fo, + claim_element: Bn, + claim_space: si, + claim_text: ho, + construct_svelte_component: ri, + create_component: ui, + create_slot: po, + destroy_component: _i, + detach: Tt, + element: qn, + get_all_dirty_from_scope: mo, + get_slot_changes: go, + group_outros: vo, + init: bo, + insert_hydration: Nl, + listen: Do, + mount_component: ci, + safe_not_equal: yo, + set_data: wo, + set_style: Jt, + space: di, + text: ko, + toggle_class: te, + transition_in: yn, + transition_out: wn, + update_slot_base: Fo } = window.__gradio__svelte__internal; -function Jn(o) { +function fi(a) { let e, t; return { c() { - e = hn("span"), t = Da( + e = qn("span"), t = ko( /*label*/ - o[1] + a[1] ), this.h(); }, l(n) { - e = dn(n, "SPAN", { class: !0 }); - var i = cn(e); - t = ca( + e = Bn(n, "SPAN", { class: !0 }); + var i = Sn(e); + t = ho( i, /*label*/ - o[1] - ), i.forEach(bt), this.h(); + a[1] + ), i.forEach(Tt), this.h(); }, h() { - ze(e, "class", "svelte-qgco6m"); + Xe(e, "class", "svelte-qgco6m"); }, m(n, i) { - Al(n, e, i), jt(e, t); + Nl(n, e, i), rn(e, t); }, p(n, i) { i & /*label*/ - 2 && ba( + 2 && wo( t, /*label*/ n[1] ); }, d(n) { - n && bt(e); + n && Tt(e); } }; } -function $a(o) { - let e, t, n, i, a, l, r, s, u = ( +function $o(a) { + let e, t, n, i, l, o, s, r, u = ( /*show_label*/ - o[2] && Jn(o) + a[2] && fi(a) ); var _ = ( /*Icon*/ - o[0] + a[0] ); - function c(g, m) { + function d(g, p) { return {}; } - _ && (i = Xn(_, c())); - const d = ( + _ && (i = ri(_, d())); + const c = ( /*#slots*/ - o[14].default - ), f = da( - d, - o, + a[14].default + ), h = po( + c, + a, /*$$scope*/ - o[13], + a[13], null ); return { c() { - e = hn("button"), u && u.c(), t = Qn(), n = hn("div"), i && Yn(i.$$.fragment), a = Qn(), f && f.c(), this.h(); + e = qn("button"), u && u.c(), t = di(), n = qn("div"), i && ui(i.$$.fragment), l = di(), h && h.c(), this.h(); }, l(g) { - e = dn(g, "BUTTON", { + e = Bn(g, "BUTTON", { "aria-label": !0, "aria-haspopup": !0, title: !0, class: !0 }); - var m = cn(e); - u && u.l(m), t = Zn(m), n = dn(m, "DIV", { class: !0 }); - var v = cn(n); - i && _a(i.$$.fragment, v), a = Zn(v), f && f.l(v), v.forEach(bt), m.forEach(bt), this.h(); + var p = Sn(e); + u && u.l(p), t = si(p), n = Bn(p, "DIV", { class: !0 }); + var D = Sn(n); + i && fo(i.$$.fragment, D), l = si(D), h && h.l(D), D.forEach(Tt), p.forEach(Tt), this.h(); }, h() { - ze(n, "class", "svelte-qgco6m"), X( + Xe(n, "class", "svelte-qgco6m"), te( n, "x-small", /*size*/ - o[4] === "x-small" - ), X( + a[4] === "x-small" + ), te( n, "small", /*size*/ - o[4] === "small" - ), X( + a[4] === "small" + ), te( n, "large", /*size*/ - o[4] === "large" - ), X( + a[4] === "large" + ), te( n, "medium", /*size*/ - o[4] === "medium" + a[4] === "medium" ), e.disabled = /*disabled*/ - o[7], ze( + a[7], Xe( e, "aria-label", /*label*/ - o[1] - ), ze( + a[1] + ), Xe( e, "aria-haspopup", /*hasPopup*/ - o[8] - ), ze( + a[8] + ), Xe( e, "title", /*label*/ - o[1] - ), ze(e, "class", "svelte-qgco6m"), X( + a[1] + ), Xe(e, "class", "svelte-qgco6m"), te( e, "pending", /*pending*/ - o[3] - ), X( + a[3] + ), te( e, "padded", /*padded*/ - o[5] - ), X( + a[5] + ), te( e, "highlight", /*highlight*/ - o[6] - ), X( + a[6] + ), te( e, "transparent", /*transparent*/ - o[9] - ), zt(e, "color", !/*disabled*/ - o[7] && /*_color*/ - o[11] ? ( + a[9] + ), Jt(e, "color", !/*disabled*/ + a[7] && /*_color*/ + a[11] ? ( /*_color*/ - o[11] - ) : "var(--block-label-text-color)"), zt(e, "--bg-color", /*disabled*/ - o[7] ? "auto" : ( + a[11] + ) : "var(--block-label-text-color)"), Jt(e, "--bg-color", /*disabled*/ + a[7] ? "auto" : ( /*background*/ - o[10] + a[10] )); }, - m(g, m) { - Al(g, e, m), u && u.m(e, null), jt(e, t), jt(e, n), i && Kn(i, n, null), jt(n, a), f && f.m(n, null), l = !0, r || (s = ga( + m(g, p) { + Nl(g, e, p), u && u.m(e, null), rn(e, t), rn(e, n), i && ci(i, n, null), rn(n, l), h && h.m(n, null), o = !0, s || (r = Do( e, "click", /*click_handler*/ - o[15] - ), r = !0); + a[15] + ), s = !0); }, - p(g, [m]) { + p(g, [p]) { if (/*show_label*/ - g[2] ? u ? u.p(g, m) : (u = Jn(g), u.c(), u.m(e, t)) : u && (u.d(1), u = null), m & /*Icon*/ + g[2] ? u ? u.p(g, p) : (u = fi(g), u.c(), u.m(e, t)) : u && (u.d(1), u = null), p & /*Icon*/ 1 && _ !== (_ = /*Icon*/ g[0])) { if (i) { - pa(); - const v = i; - ln(v.$$.fragment, 1, 0, () => { - Wn(v, 1); - }), ua(); + vo(); + const D = i; + wn(D.$$.fragment, 1, 0, () => { + _i(D, 1); + }), co(); } - _ ? (i = Xn(_, c()), Yn(i.$$.fragment), nn(i.$$.fragment, 1), Kn(i, n, a)) : i = null; + _ ? (i = ri(_, d()), ui(i.$$.fragment), yn(i.$$.fragment, 1), ci(i, n, l)) : i = null; } - f && f.p && (!l || m & /*$$scope*/ - 8192) && ya( - f, - d, + h && h.p && (!o || p & /*$$scope*/ + 8192) && Fo( + h, + c, g, /*$$scope*/ g[13], - l ? fa( - d, + o ? go( + c, /*$$scope*/ g[13], - m, + p, null - ) : ha( + ) : mo( /*$$scope*/ g[13] ), null - ), (!l || m & /*size*/ - 16) && X( + ), (!o || p & /*size*/ + 16) && te( n, "x-small", /*size*/ g[4] === "x-small" - ), (!l || m & /*size*/ - 16) && X( + ), (!o || p & /*size*/ + 16) && te( n, "small", /*size*/ g[4] === "small" - ), (!l || m & /*size*/ - 16) && X( + ), (!o || p & /*size*/ + 16) && te( n, "large", /*size*/ g[4] === "large" - ), (!l || m & /*size*/ - 16) && X( + ), (!o || p & /*size*/ + 16) && te( n, "medium", /*size*/ g[4] === "medium" - ), (!l || m & /*disabled*/ + ), (!o || p & /*disabled*/ 128) && (e.disabled = /*disabled*/ - g[7]), (!l || m & /*label*/ - 2) && ze( + g[7]), (!o || p & /*label*/ + 2) && Xe( e, "aria-label", /*label*/ g[1] - ), (!l || m & /*hasPopup*/ - 256) && ze( + ), (!o || p & /*hasPopup*/ + 256) && Xe( e, "aria-haspopup", /*hasPopup*/ g[8] - ), (!l || m & /*label*/ - 2) && ze( + ), (!o || p & /*label*/ + 2) && Xe( e, "title", /*label*/ g[1] - ), (!l || m & /*pending*/ - 8) && X( + ), (!o || p & /*pending*/ + 8) && te( e, "pending", /*pending*/ g[3] - ), (!l || m & /*padded*/ - 32) && X( + ), (!o || p & /*padded*/ + 32) && te( e, "padded", /*padded*/ g[5] - ), (!l || m & /*highlight*/ - 64) && X( + ), (!o || p & /*highlight*/ + 64) && te( e, "highlight", /*highlight*/ g[6] - ), (!l || m & /*transparent*/ - 512) && X( + ), (!o || p & /*transparent*/ + 512) && te( e, "transparent", /*transparent*/ g[9] - ), m & /*disabled, _color*/ - 2176 && zt(e, "color", !/*disabled*/ + ), p & /*disabled, _color*/ + 2176 && Jt(e, "color", !/*disabled*/ g[7] && /*_color*/ g[11] ? ( /*_color*/ g[11] - ) : "var(--block-label-text-color)"), m & /*disabled, background*/ - 1152 && zt(e, "--bg-color", /*disabled*/ + ) : "var(--block-label-text-color)"), p & /*disabled, background*/ + 1152 && Jt(e, "--bg-color", /*disabled*/ g[7] ? "auto" : ( /*background*/ g[10] )); }, i(g) { - l || (i && nn(i.$$.fragment, g), nn(f, g), l = !0); + o || (i && yn(i.$$.fragment, g), yn(h, g), o = !0); }, o(g) { - i && ln(i.$$.fragment, g), ln(f, g), l = !1; + i && wn(i.$$.fragment, g), wn(h, g), o = !1; }, d(g) { - g && bt(e), u && u.d(), i && Wn(i), f && f.d(g), r = !1, s(); + g && Tt(e), u && u.d(), i && _i(i), h && h.d(g), s = !1, r(); } }; } -function wa(o, e, t) { - let n, { $$slots: i = {}, $$scope: a } = e, { Icon: l } = e, { label: r = "" } = e, { show_label: s = !1 } = e, { pending: u = !1 } = e, { size: _ = "small" } = e, { padded: c = !0 } = e, { highlight: d = !1 } = e, { disabled: f = !1 } = e, { hasPopup: g = !1 } = e, { color: m = "var(--block-label-text-color)" } = e, { transparent: v = !1 } = e, { background: F = "var(--block-background-fill)" } = e; - function p(h) { - sa.call(this, o, h); - } - return o.$$set = (h) => { - "Icon" in h && t(0, l = h.Icon), "label" in h && t(1, r = h.label), "show_label" in h && t(2, s = h.show_label), "pending" in h && t(3, u = h.pending), "size" in h && t(4, _ = h.size), "padded" in h && t(5, c = h.padded), "highlight" in h && t(6, d = h.highlight), "disabled" in h && t(7, f = h.disabled), "hasPopup" in h && t(8, g = h.hasPopup), "color" in h && t(12, m = h.color), "transparent" in h && t(9, v = h.transparent), "background" in h && t(10, F = h.background), "$$scope" in h && t(13, a = h.$$scope); - }, o.$$.update = () => { - o.$$.dirty & /*highlight, color*/ - 4160 && t(11, n = d ? "var(--color-accent)" : m); +function Co(a, e, t) { + let n, { $$slots: i = {}, $$scope: l } = e, { Icon: o } = e, { label: s = "" } = e, { show_label: r = !1 } = e, { pending: u = !1 } = e, { size: _ = "small" } = e, { padded: d = !0 } = e, { highlight: c = !1 } = e, { disabled: h = !1 } = e, { hasPopup: g = !1 } = e, { color: p = "var(--block-label-text-color)" } = e, { transparent: D = !1 } = e, { background: k = "var(--block-background-fill)" } = e; + function m(f) { + _o.call(this, a, f); + } + return a.$$set = (f) => { + "Icon" in f && t(0, o = f.Icon), "label" in f && t(1, s = f.label), "show_label" in f && t(2, r = f.show_label), "pending" in f && t(3, u = f.pending), "size" in f && t(4, _ = f.size), "padded" in f && t(5, d = f.padded), "highlight" in f && t(6, c = f.highlight), "disabled" in f && t(7, h = f.disabled), "hasPopup" in f && t(8, g = f.hasPopup), "color" in f && t(12, p = f.color), "transparent" in f && t(9, D = f.transparent), "background" in f && t(10, k = f.background), "$$scope" in f && t(13, l = f.$$scope); + }, a.$$.update = () => { + a.$$.dirty & /*highlight, color*/ + 4160 && t(11, n = c ? "var(--color-accent)" : p); }, [ - l, - r, + o, s, + r, u, _, - c, d, - f, + c, + h, g, - v, - F, + D, + k, n, - m, - a, + p, + l, i, - p + m ]; } -class Fa extends ra { +class Eo extends uo { constructor(e) { - super(), ma(this, e, wa, $a, va, { + super(), bo(this, e, Co, $o, yo, { Icon: 0, label: 1, show_label: 2, @@ -4530,190 +4530,190 @@ class Fa extends ra { } } const { - SvelteComponent: t_, - append_hydration: n_, - attr: i_, - binding_callbacks: l_, - children: o_, - claim_element: a_, - create_slot: r_, - detach: s_, - element: u_, - get_all_dirty_from_scope: __, - get_slot_changes: c_, - init: d_, - insert_hydration: h_, - safe_not_equal: f_, - toggle_class: p_, - transition_in: m_, - transition_out: g_, - update_slot_base: v_ -} = window.__gradio__svelte__internal, { - SvelteComponent: b_, - append_hydration: D_, - attr: y_, - children: $_, - claim_svg_element: w_, - detach: F_, - init: k_, - insert_hydration: C_, - noop: E_, - safe_not_equal: A_, - svg_element: S_ + SvelteComponent: f_, + append_hydration: h_, + attr: p_, + binding_callbacks: m_, + children: g_, + claim_element: v_, + create_slot: b_, + detach: D_, + element: y_, + get_all_dirty_from_scope: w_, + get_slot_changes: k_, + init: F_, + insert_hydration: $_, + safe_not_equal: C_, + toggle_class: E_, + transition_in: A_, + transition_out: S_, + update_slot_base: B_ } = window.__gradio__svelte__internal, { - SvelteComponent: B_, - append_hydration: q_, - attr: T_, - children: x_, - claim_svg_element: z_, - detach: I_, - init: R_, - insert_hydration: L_, - noop: O_, - safe_not_equal: P_, - svg_element: M_ + SvelteComponent: q_, + append_hydration: T_, + attr: z_, + children: I_, + claim_svg_element: R_, + detach: L_, + init: O_, + insert_hydration: P_, + noop: M_, + safe_not_equal: N_, + svg_element: j_ } = window.__gradio__svelte__internal, { - SvelteComponent: N_, - append_hydration: j_, - attr: H_, - children: V_, - claim_svg_element: U_, - detach: G_, - init: Z_, - insert_hydration: X_, - noop: Y_, - safe_not_equal: W_, - svg_element: K_ + SvelteComponent: H_, + append_hydration: x_, + attr: V_, + children: U_, + claim_svg_element: G_, + detach: Z_, + init: X_, + insert_hydration: Y_, + noop: W_, + safe_not_equal: K_, + svg_element: Q_ } = window.__gradio__svelte__internal, { - SvelteComponent: Q_, - append_hydration: J_, - attr: ec, - children: tc, - claim_svg_element: nc, - detach: ic, - init: lc, + SvelteComponent: J_, + append_hydration: ec, + attr: tc, + children: nc, + claim_svg_element: ic, + detach: lc, + init: ac, insert_hydration: oc, - noop: ac, + noop: sc, safe_not_equal: rc, - svg_element: sc + svg_element: uc } = window.__gradio__svelte__internal, { - SvelteComponent: uc, - append_hydration: _c, - attr: cc, - children: dc, + SvelteComponent: _c, + append_hydration: cc, + attr: dc, + children: fc, claim_svg_element: hc, - detach: fc, - init: pc, - insert_hydration: mc, - noop: gc, - safe_not_equal: vc, - svg_element: bc + detach: pc, + init: mc, + insert_hydration: gc, + noop: vc, + safe_not_equal: bc, + svg_element: Dc } = window.__gradio__svelte__internal, { - SvelteComponent: Dc, - append_hydration: yc, - attr: $c, - children: wc, - claim_svg_element: Fc, - detach: kc, - init: Cc, - insert_hydration: Ec, - noop: Ac, - safe_not_equal: Sc, - svg_element: Bc + SvelteComponent: yc, + append_hydration: wc, + attr: kc, + children: Fc, + claim_svg_element: $c, + detach: Cc, + init: Ec, + insert_hydration: Ac, + noop: Sc, + safe_not_equal: Bc, + svg_element: qc } = window.__gradio__svelte__internal, { - SvelteComponent: qc, - append_hydration: Tc, - attr: xc, - children: zc, - claim_svg_element: Ic, - detach: Rc, - init: Lc, - insert_hydration: Oc, - noop: Pc, - safe_not_equal: Mc, - svg_element: Nc + SvelteComponent: Tc, + append_hydration: zc, + attr: Ic, + children: Rc, + claim_svg_element: Lc, + detach: Oc, + init: Pc, + insert_hydration: Mc, + noop: Nc, + safe_not_equal: jc, + svg_element: Hc } = window.__gradio__svelte__internal, { - SvelteComponent: jc, - append_hydration: Hc, - attr: Vc, - children: Uc, - claim_svg_element: Gc, - detach: Zc, - init: Xc, - insert_hydration: Yc, - noop: Wc, - safe_not_equal: Kc, - svg_element: Qc + SvelteComponent: xc, + append_hydration: Vc, + attr: Uc, + children: Gc, + claim_svg_element: Zc, + detach: Xc, + init: Yc, + insert_hydration: Wc, + noop: Kc, + safe_not_equal: Qc, + svg_element: Jc } = window.__gradio__svelte__internal, { - SvelteComponent: Jc, - append_hydration: ed, - attr: td, - children: nd, - claim_svg_element: id, - detach: ld, + SvelteComponent: ed, + append_hydration: td, + attr: nd, + children: id, + claim_svg_element: ld, + detach: ad, init: od, - insert_hydration: ad, + insert_hydration: sd, noop: rd, - safe_not_equal: sd, - svg_element: ud + safe_not_equal: ud, + svg_element: _d } = window.__gradio__svelte__internal, { - SvelteComponent: _d, - append_hydration: cd, - attr: dd, + SvelteComponent: cd, + append_hydration: dd, + attr: fd, children: hd, - claim_svg_element: fd, - detach: pd, - init: md, - insert_hydration: gd, - noop: vd, - safe_not_equal: bd, - svg_element: Dd + claim_svg_element: pd, + detach: md, + init: gd, + insert_hydration: vd, + noop: bd, + safe_not_equal: Dd, + svg_element: yd } = window.__gradio__svelte__internal, { - SvelteComponent: yd, - append_hydration: $d, - attr: wd, - children: Fd, - claim_svg_element: kd, - detach: Cd, - init: Ed, - insert_hydration: Ad, - noop: Sd, - safe_not_equal: Bd, - svg_element: qd + SvelteComponent: wd, + append_hydration: kd, + attr: Fd, + children: $d, + claim_svg_element: Cd, + detach: Ed, + init: Ad, + insert_hydration: Sd, + noop: Bd, + safe_not_equal: qd, + svg_element: Td } = window.__gradio__svelte__internal, { - SvelteComponent: Td, - append_hydration: xd, - attr: zd, - children: Id, - claim_svg_element: Rd, - detach: Ld, - init: Od, - insert_hydration: Pd, - noop: Md, - safe_not_equal: Nd, - svg_element: jd + SvelteComponent: zd, + append_hydration: Id, + attr: Rd, + children: Ld, + claim_svg_element: Od, + detach: Pd, + init: Md, + insert_hydration: Nd, + noop: jd, + safe_not_equal: Hd, + svg_element: xd } = window.__gradio__svelte__internal, { - SvelteComponent: ka, - append_hydration: on, - attr: me, - children: It, - claim_svg_element: Rt, - detach: ht, - init: Ca, - insert_hydration: Ea, - noop: an, - safe_not_equal: Aa, - set_style: ke, - svg_element: Lt + SvelteComponent: Vd, + append_hydration: Ud, + attr: Gd, + children: Zd, + claim_svg_element: Xd, + detach: Yd, + init: Wd, + insert_hydration: Kd, + noop: Qd, + safe_not_equal: Jd, + svg_element: ef +} = window.__gradio__svelte__internal, { + SvelteComponent: Ao, + append_hydration: kn, + attr: Be, + children: en, + claim_svg_element: tn, + detach: Et, + init: So, + insert_hydration: Bo, + noop: Fn, + safe_not_equal: qo, + set_style: Ne, + svg_element: nn } = window.__gradio__svelte__internal; -function Sa(o) { +function To(a) { let e, t, n, i; return { c() { - e = Lt("svg"), t = Lt("g"), n = Lt("path"), i = Lt("path"), this.h(); + e = nn("svg"), t = nn("g"), n = nn("path"), i = nn("path"), this.h(); }, - l(a) { - e = Rt(a, "svg", { + l(l) { + e = tn(l, "svg", { width: !0, height: !0, viewBox: !0, @@ -4724,117 +4724,45 @@ function Sa(o) { stroke: !0, style: !0 }); - var l = It(e); - t = Rt(l, "g", { transform: !0 }); - var r = It(t); - n = Rt(r, "path", { d: !0, style: !0 }), It(n).forEach(ht), r.forEach(ht), i = Rt(l, "path", { d: !0, style: !0 }), It(i).forEach(ht), l.forEach(ht), this.h(); + var o = en(e); + t = tn(o, "g", { transform: !0 }); + var s = en(t); + n = tn(s, "path", { d: !0, style: !0 }), en(n).forEach(Et), s.forEach(Et), i = tn(o, "path", { d: !0, style: !0 }), en(i).forEach(Et), o.forEach(Et), this.h(); }, h() { - me(n, "d", "M18,6L6.087,17.913"), ke(n, "fill", "none"), ke(n, "fill-rule", "nonzero"), ke(n, "stroke-width", "2px"), me(t, "transform", "matrix(1.14096,-0.140958,-0.140958,1.14096,-0.0559523,0.0559523)"), me(i, "d", "M4.364,4.364L19.636,19.636"), ke(i, "fill", "none"), ke(i, "fill-rule", "nonzero"), ke(i, "stroke-width", "2px"), me(e, "width", "100%"), me(e, "height", "100%"), me(e, "viewBox", "0 0 24 24"), me(e, "version", "1.1"), me(e, "xmlns", "http://www.w3.org/2000/svg"), me(e, "xmlns:xlink", "http://www.w3.org/1999/xlink"), me(e, "xml:space", "preserve"), me(e, "stroke", "currentColor"), ke(e, "fill-rule", "evenodd"), ke(e, "clip-rule", "evenodd"), ke(e, "stroke-linecap", "round"), ke(e, "stroke-linejoin", "round"); + Be(n, "d", "M18,6L6.087,17.913"), Ne(n, "fill", "none"), Ne(n, "fill-rule", "nonzero"), Ne(n, "stroke-width", "2px"), Be(t, "transform", "matrix(1.14096,-0.140958,-0.140958,1.14096,-0.0559523,0.0559523)"), Be(i, "d", "M4.364,4.364L19.636,19.636"), Ne(i, "fill", "none"), Ne(i, "fill-rule", "nonzero"), Ne(i, "stroke-width", "2px"), Be(e, "width", "100%"), Be(e, "height", "100%"), Be(e, "viewBox", "0 0 24 24"), Be(e, "version", "1.1"), Be(e, "xmlns", "http://www.w3.org/2000/svg"), Be(e, "xmlns:xlink", "http://www.w3.org/1999/xlink"), Be(e, "xml:space", "preserve"), Be(e, "stroke", "currentColor"), Ne(e, "fill-rule", "evenodd"), Ne(e, "clip-rule", "evenodd"), Ne(e, "stroke-linecap", "round"), Ne(e, "stroke-linejoin", "round"); }, - m(a, l) { - Ea(a, e, l), on(e, t), on(t, n), on(e, i); + m(l, o) { + Bo(l, e, o), kn(e, t), kn(t, n), kn(e, i); }, - p: an, - i: an, - o: an, - d(a) { - a && ht(e); + p: Fn, + i: Fn, + o: Fn, + d(l) { + l && Et(e); } }; } -class Ba extends ka { +class zo extends Ao { constructor(e) { - super(), Ca(this, e, null, Sa, Aa, {}); + super(), So(this, e, null, To, qo, {}); } } const { - SvelteComponent: Hd, - append_hydration: Vd, - attr: Ud, - children: Gd, - claim_svg_element: Zd, - detach: Xd, - init: Yd, - insert_hydration: Wd, - noop: Kd, - safe_not_equal: Qd, - svg_element: Jd -} = window.__gradio__svelte__internal, { - SvelteComponent: eh, - append_hydration: th, - attr: nh, - children: ih, - claim_svg_element: lh, - detach: oh, - init: ah, - insert_hydration: rh, - noop: sh, - safe_not_equal: uh, - svg_element: _h -} = window.__gradio__svelte__internal, { - SvelteComponent: ch, - append_hydration: dh, - attr: hh, - children: fh, - claim_svg_element: ph, - detach: mh, - init: gh, - insert_hydration: vh, - noop: bh, - safe_not_equal: Dh, - svg_element: yh -} = window.__gradio__svelte__internal, { - SvelteComponent: $h, - append_hydration: wh, - attr: Fh, - children: kh, - claim_svg_element: Ch, - detach: Eh, - init: Ah, - insert_hydration: Sh, - noop: Bh, - safe_not_equal: qh, - svg_element: Th -} = window.__gradio__svelte__internal, { - SvelteComponent: xh, - append_hydration: zh, - attr: Ih, - children: Rh, - claim_svg_element: Lh, - detach: Oh, - init: Ph, - insert_hydration: Mh, - noop: Nh, - safe_not_equal: jh, - svg_element: Hh -} = window.__gradio__svelte__internal, { - SvelteComponent: Vh, - append_hydration: Uh, - attr: Gh, - children: Zh, - claim_svg_element: Xh, - detach: Yh, - init: Wh, - insert_hydration: Kh, - noop: Qh, - safe_not_equal: Jh, - svg_element: ef -} = window.__gradio__svelte__internal, { SvelteComponent: tf, append_hydration: nf, attr: lf, - children: of, - claim_svg_element: af, - detach: rf, - init: sf, + children: af, + claim_svg_element: of, + detach: sf, + init: rf, insert_hydration: uf, noop: _f, safe_not_equal: cf, svg_element: df } = window.__gradio__svelte__internal, { - SvelteComponent: hf, - append_hydration: ff, + SvelteComponent: ff, + append_hydration: hf, attr: pf, children: mf, claim_svg_element: gf, @@ -4842,11 +4770,11 @@ const { init: bf, insert_hydration: Df, noop: yf, - safe_not_equal: $f, - svg_element: wf + safe_not_equal: wf, + svg_element: kf } = window.__gradio__svelte__internal, { SvelteComponent: Ff, - append_hydration: kf, + append_hydration: $f, attr: Cf, children: Ef, claim_svg_element: Af, @@ -4854,18 +4782,18 @@ const { init: Bf, insert_hydration: qf, noop: Tf, - safe_not_equal: xf, - svg_element: zf + safe_not_equal: zf, + svg_element: If } = window.__gradio__svelte__internal, { - SvelteComponent: If, - append_hydration: Rf, - attr: Lf, - children: Of, - claim_svg_element: Pf, - detach: Mf, - init: Nf, - insert_hydration: jf, - noop: Hf, + SvelteComponent: Rf, + append_hydration: Lf, + attr: Of, + children: Pf, + claim_svg_element: Mf, + detach: Nf, + init: jf, + insert_hydration: Hf, + noop: xf, safe_not_equal: Vf, svg_element: Uf } = window.__gradio__svelte__internal, { @@ -4877,199 +4805,199 @@ const { detach: Kf, init: Qf, insert_hydration: Jf, - noop: ep, - safe_not_equal: tp, - svg_element: np + noop: eh, + safe_not_equal: th, + svg_element: nh } = window.__gradio__svelte__internal, { - SvelteComponent: ip, - append_hydration: lp, + SvelteComponent: ih, + append_hydration: lh, + attr: ah, + children: oh, + claim_svg_element: sh, + detach: rh, + init: uh, + insert_hydration: _h, + noop: ch, + safe_not_equal: dh, + svg_element: fh +} = window.__gradio__svelte__internal, { + SvelteComponent: hh, + append_hydration: ph, + attr: mh, + children: gh, + claim_svg_element: vh, + detach: bh, + init: Dh, + insert_hydration: yh, + noop: wh, + safe_not_equal: kh, + svg_element: Fh +} = window.__gradio__svelte__internal, { + SvelteComponent: $h, + append_hydration: Ch, + attr: Eh, + children: Ah, + claim_svg_element: Sh, + detach: Bh, + init: qh, + insert_hydration: Th, + noop: zh, + safe_not_equal: Ih, + svg_element: Rh +} = window.__gradio__svelte__internal, { + SvelteComponent: Lh, + append_hydration: Oh, + attr: Ph, + children: Mh, + claim_svg_element: Nh, + detach: jh, + init: Hh, + insert_hydration: xh, + noop: Vh, + safe_not_equal: Uh, + svg_element: Gh +} = window.__gradio__svelte__internal, { + SvelteComponent: Zh, + append_hydration: Xh, + attr: Yh, + children: Wh, + claim_svg_element: Kh, + detach: Qh, + init: Jh, + insert_hydration: ep, + noop: tp, + safe_not_equal: np, + svg_element: ip +} = window.__gradio__svelte__internal, { + SvelteComponent: lp, + append_hydration: ap, attr: op, - children: ap, + children: sp, claim_svg_element: rp, - detach: sp, - init: up, - insert_hydration: _p, - noop: cp, - safe_not_equal: dp, + detach: up, + init: _p, + insert_hydration: cp, + noop: dp, + safe_not_equal: fp, svg_element: hp } = window.__gradio__svelte__internal, { - SvelteComponent: fp, - append_hydration: pp, - attr: mp, - children: gp, - claim_svg_element: vp, - detach: bp, - init: Dp, - insert_hydration: yp, - noop: $p, - safe_not_equal: wp, - svg_element: Fp + SvelteComponent: pp, + append_hydration: mp, + attr: gp, + children: vp, + claim_svg_element: bp, + detach: Dp, + init: yp, + insert_hydration: wp, + noop: kp, + safe_not_equal: Fp, + svg_element: $p } = window.__gradio__svelte__internal, { - SvelteComponent: kp, - append_hydration: Cp, - attr: Ep, - children: Ap, - claim_svg_element: Sp, - detach: Bp, - init: qp, - insert_hydration: Tp, - noop: xp, - safe_not_equal: zp, - svg_element: Ip + SvelteComponent: Cp, + append_hydration: Ep, + attr: Ap, + children: Sp, + claim_svg_element: Bp, + detach: qp, + init: Tp, + insert_hydration: zp, + noop: Ip, + safe_not_equal: Rp, + svg_element: Lp } = window.__gradio__svelte__internal, { - SvelteComponent: Rp, - append_hydration: Lp, - attr: Op, - children: Pp, - claim_svg_element: Mp, - detach: Np, - init: jp, - insert_hydration: Hp, - noop: Vp, - safe_not_equal: Up, - svg_element: Gp + SvelteComponent: Op, + append_hydration: Pp, + attr: Mp, + children: Np, + claim_svg_element: jp, + detach: Hp, + init: xp, + insert_hydration: Vp, + noop: Up, + safe_not_equal: Gp, + svg_element: Zp } = window.__gradio__svelte__internal, { - SvelteComponent: Zp, - append_hydration: Xp, - attr: Yp, - children: Wp, - claim_svg_element: Kp, - detach: Qp, - init: Jp, - insert_hydration: em, - noop: tm, - safe_not_equal: nm, - svg_element: im + SvelteComponent: Xp, + append_hydration: Yp, + attr: Wp, + children: Kp, + claim_svg_element: Qp, + detach: Jp, + init: em, + insert_hydration: tm, + noop: nm, + safe_not_equal: im, + svg_element: lm } = window.__gradio__svelte__internal, { - SvelteComponent: lm, + SvelteComponent: am, append_hydration: om, - attr: am, + attr: sm, children: rm, - claim_svg_element: sm, - detach: um, - init: _m, - insert_hydration: cm, - noop: dm, + claim_svg_element: um, + detach: _m, + init: cm, + insert_hydration: dm, + noop: fm, safe_not_equal: hm, - svg_element: fm -} = window.__gradio__svelte__internal, { - SvelteComponent: pm, - append_hydration: mm, - attr: gm, - children: vm, - claim_svg_element: bm, - detach: Dm, - init: ym, - insert_hydration: $m, - noop: wm, - safe_not_equal: Fm, - svg_element: km -} = window.__gradio__svelte__internal, { - SvelteComponent: Cm, - append_hydration: Em, - attr: Am, - children: Sm, - claim_svg_element: Bm, - detach: qm, - init: Tm, - insert_hydration: xm, - noop: zm, - safe_not_equal: Im, - svg_element: Rm + svg_element: pm } = window.__gradio__svelte__internal, { - SvelteComponent: Lm, - append_hydration: Om, - attr: Pm, - children: Mm, - claim_svg_element: Nm, - detach: jm, - init: Hm, - insert_hydration: Vm, - noop: Um, - safe_not_equal: Gm, - svg_element: Zm + SvelteComponent: mm, + append_hydration: gm, + attr: vm, + children: bm, + claim_svg_element: Dm, + detach: ym, + init: wm, + insert_hydration: km, + noop: Fm, + safe_not_equal: $m, + svg_element: Cm } = window.__gradio__svelte__internal, { - SvelteComponent: Xm, - append_hydration: Ym, - attr: Wm, - children: Km, - claim_svg_element: Qm, - detach: Jm, - init: eg, - insert_hydration: tg, - noop: ng, - safe_not_equal: ig, - svg_element: lg + SvelteComponent: Em, + append_hydration: Am, + attr: Sm, + children: Bm, + claim_svg_element: qm, + detach: Tm, + init: zm, + insert_hydration: Im, + noop: Rm, + safe_not_equal: Lm, + svg_element: Om } = window.__gradio__svelte__internal, { - SvelteComponent: og, - append_hydration: ag, - attr: rg, - children: sg, - claim_svg_element: ug, - detach: _g, - init: cg, - insert_hydration: dg, - noop: hg, - safe_not_equal: fg, - svg_element: pg + SvelteComponent: Pm, + append_hydration: Mm, + attr: Nm, + children: jm, + claim_svg_element: Hm, + detach: xm, + init: Vm, + insert_hydration: Um, + noop: Gm, + safe_not_equal: Zm, + svg_element: Xm } = window.__gradio__svelte__internal, { - SvelteComponent: mg, - append_hydration: gg, - attr: vg, - children: bg, - claim_svg_element: Dg, - detach: yg, - init: $g, - insert_hydration: wg, - noop: Fg, - safe_not_equal: kg, - svg_element: Cg -} = window.__gradio__svelte__internal, { - SvelteComponent: Eg, - append_hydration: Ag, - attr: Sg, - children: Bg, - claim_svg_element: qg, - detach: Tg, - init: xg, - insert_hydration: zg, - noop: Ig, - safe_not_equal: Rg, - svg_element: Lg -} = window.__gradio__svelte__internal, { - SvelteComponent: Og, - append_hydration: Pg, - attr: Mg, - children: Ng, - claim_svg_element: jg, - detach: Hg, - init: Vg, - insert_hydration: Ug, - noop: Gg, - safe_not_equal: Zg, - svg_element: Xg -} = window.__gradio__svelte__internal, { - SvelteComponent: Yg, - append_hydration: Wg, - attr: Kg, - children: Qg, - claim_svg_element: Jg, + SvelteComponent: Ym, + append_hydration: Wm, + attr: Km, + children: Qm, + claim_svg_element: Jm, detach: e0, init: t0, insert_hydration: n0, noop: i0, safe_not_equal: l0, - svg_element: o0 + svg_element: a0 } = window.__gradio__svelte__internal, { - SvelteComponent: a0, - append_hydration: r0, - attr: s0, + SvelteComponent: o0, + append_hydration: s0, + attr: r0, children: u0, claim_svg_element: _0, detach: c0, init: d0, - insert_hydration: h0, - noop: f0, + insert_hydration: f0, + noop: h0, safe_not_equal: p0, svg_element: m0 } = window.__gradio__svelte__internal, { @@ -5078,10 +5006,10 @@ const { attr: b0, children: D0, claim_svg_element: y0, - detach: $0, - init: w0, + detach: w0, + init: k0, insert_hydration: F0, - noop: k0, + noop: $0, safe_not_equal: C0, svg_element: E0 } = window.__gradio__svelte__internal, { @@ -5090,18 +5018,18 @@ const { attr: B0, children: q0, claim_svg_element: T0, - detach: x0, - init: z0, - insert_hydration: I0, - noop: R0, - safe_not_equal: L0, - svg_element: O0 + detach: z0, + init: I0, + insert_hydration: R0, + noop: L0, + safe_not_equal: O0, + svg_element: P0 } = window.__gradio__svelte__internal, { - SvelteComponent: P0, - append_hydration: M0, - attr: N0, - children: j0, - claim_svg_element: H0, + SvelteComponent: M0, + append_hydration: N0, + attr: j0, + children: H0, + claim_svg_element: x0, detach: V0, init: U0, insert_hydration: G0, @@ -5113,54 +5041,113 @@ const { append_hydration: K0, attr: Q0, children: J0, - claim_svg_element: e1, - detach: t1, - init: n1, - insert_hydration: i1, - noop: l1, + claim_svg_element: eg, + detach: tg, + init: ng, + insert_hydration: ig, + noop: lg, + safe_not_equal: ag, + svg_element: og +} = window.__gradio__svelte__internal, { + SvelteComponent: sg, + append_hydration: rg, + attr: ug, + children: _g, + claim_svg_element: cg, + detach: dg, + init: fg, + insert_hydration: hg, + noop: pg, + safe_not_equal: mg, + svg_element: gg +} = window.__gradio__svelte__internal, { + SvelteComponent: vg, + append_hydration: bg, + attr: Dg, + children: yg, + claim_svg_element: wg, + detach: kg, + init: Fg, + insert_hydration: $g, + noop: Cg, + safe_not_equal: Eg, + svg_element: Ag +} = window.__gradio__svelte__internal, { + SvelteComponent: Sg, + append_hydration: Bg, + attr: qg, + children: Tg, + claim_svg_element: zg, + detach: Ig, + init: Rg, + insert_hydration: Lg, + noop: Og, + safe_not_equal: Pg, + svg_element: Mg +} = window.__gradio__svelte__internal, { + SvelteComponent: Ng, + append_hydration: jg, + attr: Hg, + children: xg, + claim_svg_element: Vg, + detach: Ug, + init: Gg, + insert_hydration: Zg, + noop: Xg, + safe_not_equal: Yg, + svg_element: Wg +} = window.__gradio__svelte__internal, { + SvelteComponent: Kg, + append_hydration: Qg, + attr: Jg, + children: e1, + claim_svg_element: t1, + detach: n1, + init: i1, + insert_hydration: l1, + noop: a1, safe_not_equal: o1, - svg_element: a1 + svg_element: s1 } = window.__gradio__svelte__internal, { SvelteComponent: r1, - append_hydration: s1, - attr: u1, - children: _1, - claim_svg_element: c1, - detach: d1, + append_hydration: u1, + attr: _1, + children: c1, + claim_svg_element: d1, + detach: f1, init: h1, - insert_hydration: f1, - noop: p1, - safe_not_equal: m1, - svg_element: g1 + insert_hydration: p1, + noop: m1, + safe_not_equal: g1, + svg_element: v1 } = window.__gradio__svelte__internal, { - SvelteComponent: v1, - append_hydration: b1, - attr: D1, - children: y1, - claim_svg_element: $1, - detach: w1, - init: F1, - insert_hydration: k1, - noop: C1, - safe_not_equal: E1, - svg_element: A1 + SvelteComponent: b1, + append_hydration: D1, + attr: y1, + children: w1, + claim_svg_element: k1, + detach: F1, + init: $1, + insert_hydration: C1, + noop: E1, + safe_not_equal: A1, + svg_element: S1 } = window.__gradio__svelte__internal, { - SvelteComponent: S1, - append_hydration: B1, - attr: q1, - children: T1, - claim_svg_element: x1, - detach: z1, - init: I1, - insert_hydration: R1, - noop: L1, - safe_not_equal: O1, - set_style: P1, - svg_element: M1 + SvelteComponent: B1, + append_hydration: q1, + attr: T1, + children: z1, + claim_svg_element: I1, + detach: R1, + init: L1, + insert_hydration: O1, + noop: P1, + safe_not_equal: M1, + svg_element: N1 } = window.__gradio__svelte__internal, { - SvelteComponent: N1, - append_hydration: j1, - attr: H1, + SvelteComponent: j1, + append_hydration: H1, + attr: x1, children: V1, claim_svg_element: U1, detach: G1, @@ -5168,223 +5155,222 @@ const { insert_hydration: X1, noop: Y1, safe_not_equal: W1, - svg_element: K1 + set_style: K1, + svg_element: Q1 } = window.__gradio__svelte__internal, { - SvelteComponent: Q1, - append_hydration: J1, - attr: ev, - children: tv, - claim_svg_element: nv, - detach: iv, - init: lv, + SvelteComponent: J1, + append_hydration: ev, + attr: tv, + children: nv, + claim_svg_element: iv, + detach: lv, + init: av, insert_hydration: ov, - noop: av, + noop: sv, safe_not_equal: rv, - svg_element: sv + svg_element: uv } = window.__gradio__svelte__internal, { - SvelteComponent: uv, - append_hydration: _v, - attr: cv, - children: dv, + SvelteComponent: _v, + append_hydration: cv, + attr: dv, + children: fv, claim_svg_element: hv, - detach: fv, - init: pv, - insert_hydration: mv, - noop: gv, - safe_not_equal: vv, - svg_element: bv + detach: pv, + init: mv, + insert_hydration: gv, + noop: vv, + safe_not_equal: bv, + svg_element: Dv } = window.__gradio__svelte__internal, { - SvelteComponent: Dv, - append_hydration: yv, - attr: $v, - children: wv, - claim_svg_element: Fv, - detach: kv, - init: Cv, - insert_hydration: Ev, - noop: Av, - safe_not_equal: Sv, - svg_element: Bv + SvelteComponent: yv, + append_hydration: wv, + attr: kv, + children: Fv, + claim_svg_element: $v, + detach: Cv, + init: Ev, + insert_hydration: Av, + noop: Sv, + safe_not_equal: Bv, + svg_element: qv } = window.__gradio__svelte__internal, { - SvelteComponent: qv, - append_hydration: Tv, - attr: xv, - children: zv, - claim_svg_element: Iv, - detach: Rv, - init: Lv, - insert_hydration: Ov, - noop: Pv, - safe_not_equal: Mv, - svg_element: Nv + SvelteComponent: Tv, + append_hydration: zv, + attr: Iv, + children: Rv, + claim_svg_element: Lv, + detach: Ov, + init: Pv, + insert_hydration: Mv, + noop: Nv, + safe_not_equal: jv, + svg_element: Hv } = window.__gradio__svelte__internal, { - SvelteComponent: jv, - append_hydration: Hv, - attr: Vv, - children: Uv, - claim_svg_element: Gv, - detach: Zv, - init: Xv, - insert_hydration: Yv, - noop: Wv, - safe_not_equal: Kv, - svg_element: Qv + SvelteComponent: xv, + append_hydration: Vv, + attr: Uv, + children: Gv, + claim_svg_element: Zv, + detach: Xv, + init: Yv, + insert_hydration: Wv, + noop: Kv, + safe_not_equal: Qv, + svg_element: Jv } = window.__gradio__svelte__internal, { - SvelteComponent: Jv, - append_hydration: eb, - attr: tb, - children: nb, - claim_svg_element: ib, - detach: lb, + SvelteComponent: eb, + append_hydration: tb, + attr: nb, + children: ib, + claim_svg_element: lb, + detach: ab, init: ob, - insert_hydration: ab, + insert_hydration: sb, noop: rb, - safe_not_equal: sb, - svg_element: ub + safe_not_equal: ub, + svg_element: _b } = window.__gradio__svelte__internal, { - SvelteComponent: _b, - append_hydration: cb, - attr: db, + SvelteComponent: cb, + append_hydration: db, + attr: fb, children: hb, - claim_svg_element: fb, - detach: pb, - init: mb, - insert_hydration: gb, - noop: vb, - safe_not_equal: bb, - svg_element: Db + claim_svg_element: pb, + detach: mb, + init: gb, + insert_hydration: vb, + noop: bb, + safe_not_equal: Db, + svg_element: yb } = window.__gradio__svelte__internal, { - SvelteComponent: yb, - append_hydration: $b, - attr: wb, - children: Fb, - claim_svg_element: kb, - claim_text: Cb, + SvelteComponent: wb, + append_hydration: kb, + attr: Fb, + children: $b, + claim_svg_element: Cb, detach: Eb, init: Ab, insert_hydration: Sb, noop: Bb, safe_not_equal: qb, - svg_element: Tb, - text: xb + svg_element: Tb } = window.__gradio__svelte__internal, { SvelteComponent: zb, append_hydration: Ib, attr: Rb, children: Lb, claim_svg_element: Ob, - detach: Pb, - init: Mb, - insert_hydration: Nb, - noop: jb, - safe_not_equal: Hb, - svg_element: Vb + claim_text: Pb, + detach: Mb, + init: Nb, + insert_hydration: jb, + noop: Hb, + safe_not_equal: xb, + svg_element: Vb, + text: Ub } = window.__gradio__svelte__internal, { - SvelteComponent: Ub, - append_hydration: Gb, - attr: Zb, - children: Xb, - claim_svg_element: Yb, - detach: Wb, - init: Kb, - insert_hydration: Qb, - noop: Jb, - safe_not_equal: eD, - svg_element: tD + SvelteComponent: Gb, + append_hydration: Zb, + attr: Xb, + children: Yb, + claim_svg_element: Wb, + detach: Kb, + init: Qb, + insert_hydration: Jb, + noop: eD, + safe_not_equal: tD, + svg_element: nD } = window.__gradio__svelte__internal, { - SvelteComponent: nD, - append_hydration: iD, - attr: lD, + SvelteComponent: iD, + append_hydration: lD, + attr: aD, children: oD, - claim_svg_element: aD, + claim_svg_element: sD, detach: rD, - init: sD, - insert_hydration: uD, - noop: _D, - safe_not_equal: cD, - svg_element: dD + init: uD, + insert_hydration: _D, + noop: cD, + safe_not_equal: dD, + svg_element: fD } = window.__gradio__svelte__internal, { SvelteComponent: hD, - append_hydration: fD, - attr: pD, - children: mD, - claim_svg_element: gD, - detach: vD, - init: bD, - insert_hydration: DD, - noop: yD, - safe_not_equal: $D, - svg_element: wD + append_hydration: pD, + attr: mD, + children: gD, + claim_svg_element: vD, + detach: bD, + init: DD, + insert_hydration: yD, + noop: wD, + safe_not_equal: kD, + svg_element: FD } = window.__gradio__svelte__internal, { - SvelteComponent: FD, - append_hydration: kD, - attr: CD, - children: ED, - claim_svg_element: AD, - detach: SD, - init: BD, - insert_hydration: qD, - noop: TD, - safe_not_equal: xD, - svg_element: zD + SvelteComponent: $D, + append_hydration: CD, + attr: ED, + children: AD, + claim_svg_element: SD, + detach: BD, + init: qD, + insert_hydration: TD, + noop: zD, + safe_not_equal: ID, + svg_element: RD } = window.__gradio__svelte__internal, { - SvelteComponent: ID, - append_hydration: RD, - attr: LD, - children: OD, - claim_svg_element: PD, - detach: MD, - init: ND, - insert_hydration: jD, - noop: HD, - safe_not_equal: VD, - svg_element: UD + SvelteComponent: LD, + append_hydration: OD, + attr: PD, + children: MD, + claim_svg_element: ND, + detach: jD, + init: HD, + insert_hydration: xD, + noop: VD, + safe_not_equal: UD, + svg_element: GD } = window.__gradio__svelte__internal, { - SvelteComponent: GD, - append_hydration: ZD, - attr: XD, - children: YD, - claim_svg_element: WD, - detach: KD, - init: QD, - insert_hydration: JD, - noop: ey, - safe_not_equal: ty, - svg_element: ny + SvelteComponent: ZD, + append_hydration: XD, + attr: YD, + children: WD, + claim_svg_element: KD, + detach: QD, + init: JD, + insert_hydration: ey, + noop: ty, + safe_not_equal: ny, + svg_element: iy } = window.__gradio__svelte__internal, { - SvelteComponent: iy, - append_hydration: ly, + SvelteComponent: ly, + append_hydration: ay, attr: oy, - children: ay, + children: sy, claim_svg_element: ry, - claim_text: sy, detach: uy, init: _y, insert_hydration: cy, noop: dy, - safe_not_equal: hy, - svg_element: fy, - text: py + safe_not_equal: fy, + svg_element: hy } = window.__gradio__svelte__internal, { - SvelteComponent: my, - append_hydration: gy, - attr: vy, - children: by, - claim_svg_element: Dy, - claim_text: yy, - detach: $y, + SvelteComponent: py, + append_hydration: my, + attr: gy, + children: vy, + claim_svg_element: by, + claim_text: Dy, + detach: yy, init: wy, - insert_hydration: Fy, - noop: ky, - safe_not_equal: Cy, - svg_element: Ey, - text: Ay + insert_hydration: ky, + noop: Fy, + safe_not_equal: $y, + svg_element: Cy, + text: Ey } = window.__gradio__svelte__internal, { - SvelteComponent: Sy, - append_hydration: By, - attr: qy, - children: Ty, - claim_svg_element: xy, + SvelteComponent: Ay, + append_hydration: Sy, + attr: By, + children: qy, + claim_svg_element: Ty, claim_text: zy, detach: Iy, init: Ry, @@ -5396,136 +5382,150 @@ const { } = window.__gradio__svelte__internal, { SvelteComponent: jy, append_hydration: Hy, - attr: Vy, - children: Uy, - claim_svg_element: Gy, + attr: xy, + children: Vy, + claim_svg_element: Uy, + claim_text: Gy, detach: Zy, init: Xy, insert_hydration: Yy, noop: Wy, safe_not_equal: Ky, - svg_element: Qy + svg_element: Qy, + text: Jy } = window.__gradio__svelte__internal, { - SvelteComponent: Jy, - append_hydration: e$, - attr: t$, - children: n$, - claim_svg_element: i$, - detach: l$, - init: o$, - insert_hydration: a$, - noop: r$, - safe_not_equal: s$, - svg_element: u$ + SvelteComponent: e2, + append_hydration: t2, + attr: n2, + children: i2, + claim_svg_element: l2, + detach: a2, + init: o2, + insert_hydration: s2, + noop: r2, + safe_not_equal: u2, + svg_element: _2 } = window.__gradio__svelte__internal, { - SvelteComponent: _$, - append_hydration: c$, - attr: d$, - children: h$, - claim_svg_element: f$, - detach: p$, - init: m$, - insert_hydration: g$, - noop: v$, - safe_not_equal: b$, - svg_element: D$ + SvelteComponent: c2, + append_hydration: d2, + attr: f2, + children: h2, + claim_svg_element: p2, + detach: m2, + init: g2, + insert_hydration: v2, + noop: b2, + safe_not_equal: D2, + svg_element: y2 } = window.__gradio__svelte__internal, { - SvelteComponent: y$, - append_hydration: $$, - attr: w$, - children: F$, - claim_svg_element: k$, - detach: C$, - init: E$, - insert_hydration: A$, - noop: S$, - safe_not_equal: B$, - svg_element: q$ + SvelteComponent: w2, + append_hydration: k2, + attr: F2, + children: $2, + claim_svg_element: C2, + detach: E2, + init: A2, + insert_hydration: S2, + noop: B2, + safe_not_equal: q2, + svg_element: T2 } = window.__gradio__svelte__internal, { - SvelteComponent: T$, - append_hydration: x$, - attr: z$, - children: I$, - claim_svg_element: R$, - detach: L$, - init: O$, - insert_hydration: P$, - noop: M$, - safe_not_equal: N$, - svg_element: j$ + SvelteComponent: z2, + append_hydration: I2, + attr: R2, + children: L2, + claim_svg_element: O2, + detach: P2, + init: M2, + insert_hydration: N2, + noop: j2, + safe_not_equal: H2, + svg_element: x2 } = window.__gradio__svelte__internal, { - SvelteComponent: H$, - append_hydration: V$, - attr: U$, - children: G$, - claim_svg_element: Z$, - detach: X$, - init: Y$, - insert_hydration: W$, - noop: K$, - safe_not_equal: Q$, - svg_element: J$ + SvelteComponent: V2, + append_hydration: U2, + attr: G2, + children: Z2, + claim_svg_element: X2, + detach: Y2, + init: W2, + insert_hydration: K2, + noop: Q2, + safe_not_equal: J2, + svg_element: ew } = window.__gradio__svelte__internal, { - SvelteComponent: ew, - append_hydration: tw, - attr: nw, - children: iw, - claim_svg_element: lw, + SvelteComponent: tw, + append_hydration: nw, + attr: iw, + children: lw, + claim_svg_element: aw, detach: ow, - init: aw, + init: sw, insert_hydration: rw, - noop: sw, - safe_not_equal: uw, - svg_element: _w + noop: uw, + safe_not_equal: _w, + svg_element: cw } = window.__gradio__svelte__internal, { - SvelteComponent: cw, - append_hydration: dw, + SvelteComponent: dw, + append_hydration: fw, attr: hw, - children: fw, - claim_svg_element: pw, - detach: mw, - init: gw, - insert_hydration: vw, - noop: bw, - safe_not_equal: Dw, - svg_element: yw + children: pw, + claim_svg_element: mw, + detach: gw, + init: vw, + insert_hydration: bw, + noop: Dw, + safe_not_equal: yw, + svg_element: ww } = window.__gradio__svelte__internal, { - SvelteComponent: $w, - append_hydration: ww, - attr: Fw, - children: kw, - claim_svg_element: Cw, - detach: Ew, - init: Aw, - insert_hydration: Sw, - noop: Bw, - safe_not_equal: qw, - svg_element: Tw + SvelteComponent: kw, + append_hydration: Fw, + attr: $w, + children: Cw, + claim_svg_element: Ew, + detach: Aw, + init: Sw, + insert_hydration: Bw, + noop: qw, + safe_not_equal: Tw, + svg_element: zw } = window.__gradio__svelte__internal, { - SvelteComponent: xw, - append_hydration: zw, - attr: Iw, - children: Rw, - claim_svg_element: Lw, - detach: Ow, - init: Pw, - insert_hydration: Mw, - noop: Nw, - safe_not_equal: jw, - svg_element: Hw + SvelteComponent: Iw, + append_hydration: Rw, + attr: Lw, + children: Ow, + claim_svg_element: Pw, + detach: Mw, + init: Nw, + insert_hydration: jw, + noop: Hw, + safe_not_equal: xw, + svg_element: Vw } = window.__gradio__svelte__internal, { - SvelteComponent: Vw, - append_hydration: Uw, - attr: Gw, - children: Zw, - claim_svg_element: Xw, - detach: Yw, - init: Ww, - insert_hydration: Kw, - noop: Qw, - safe_not_equal: Jw, - svg_element: e2 -} = window.__gradio__svelte__internal, qa = [ + SvelteComponent: Uw, + append_hydration: Gw, + attr: Zw, + children: Xw, + claim_svg_element: Yw, + detach: Ww, + init: Kw, + insert_hydration: Qw, + noop: Jw, + safe_not_equal: ek, + svg_element: tk +} = window.__gradio__svelte__internal, { + SvelteComponent: nk, + append_hydration: ik, + attr: lk, + children: ak, + claim_svg_element: ok, + detach: sk, + init: rk, + insert_hydration: uk, + noop: _k, + safe_not_equal: ck, + svg_element: dk +} = window.__gradio__svelte__internal, Io = [ { color: "red", primary: 600, secondary: 100 }, { color: "green", primary: 600, secondary: 100 }, { color: "blue", primary: 600, secondary: 100 }, @@ -5536,7 +5536,7 @@ const { { color: "cyan", primary: 600, secondary: 100 }, { color: "lime", primary: 500, secondary: 100 }, { color: "pink", primary: 600, secondary: 100 } -], ei = { +], hi = { inherit: "inherit", current: "currentColor", transparent: "transparent", @@ -5829,1150 +5829,1150 @@ const { 950: "#4c0519" } }; -qa.reduce( - (o, { color: e, primary: t, secondary: n }) => ({ - ...o, +Io.reduce( + (a, { color: e, primary: t, secondary: n }) => ({ + ...a, [e]: { - primary: ei[e][t], - secondary: ei[e][n] + primary: hi[e][t], + secondary: hi[e][n] } }), {} ); const { - SvelteComponent: t2, - claim_component: n2, - create_component: i2, - destroy_component: l2, - init: o2, - mount_component: a2, - safe_not_equal: r2, - transition_in: s2, - transition_out: u2 -} = window.__gradio__svelte__internal, { createEventDispatcher: _2 } = window.__gradio__svelte__internal, { - SvelteComponent: c2, - append_hydration: d2, - attr: h2, - check_outros: f2, - children: p2, - claim_component: m2, - claim_element: g2, - claim_space: v2, - claim_text: b2, - create_component: D2, - destroy_component: y2, - detach: $2, - element: w2, - empty: F2, - group_outros: k2, - init: C2, - insert_hydration: E2, - mount_component: A2, - safe_not_equal: S2, - set_data: B2, - space: q2, - text: T2, - toggle_class: x2, - transition_in: z2, - transition_out: I2 + SvelteComponent: fk, + claim_component: hk, + create_component: pk, + destroy_component: mk, + init: gk, + mount_component: vk, + safe_not_equal: bk, + transition_in: Dk, + transition_out: yk +} = window.__gradio__svelte__internal, { createEventDispatcher: wk } = window.__gradio__svelte__internal, { + SvelteComponent: kk, + append_hydration: Fk, + attr: $k, + check_outros: Ck, + children: Ek, + claim_component: Ak, + claim_element: Sk, + claim_space: Bk, + claim_text: qk, + create_component: Tk, + destroy_component: zk, + detach: Ik, + element: Rk, + empty: Lk, + group_outros: Ok, + init: Pk, + insert_hydration: Mk, + mount_component: Nk, + safe_not_equal: jk, + set_data: Hk, + space: xk, + text: Vk, + toggle_class: Uk, + transition_in: Gk, + transition_out: Zk } = window.__gradio__svelte__internal, { - SvelteComponent: R2, - attr: L2, - children: O2, - claim_element: P2, - create_slot: M2, - detach: N2, - element: j2, - get_all_dirty_from_scope: H2, - get_slot_changes: V2, - init: U2, - insert_hydration: G2, - safe_not_equal: Z2, - toggle_class: X2, - transition_in: Y2, - transition_out: W2, - update_slot_base: K2 + SvelteComponent: Xk, + attr: Yk, + children: Wk, + claim_element: Kk, + create_slot: Qk, + detach: Jk, + element: eF, + get_all_dirty_from_scope: tF, + get_slot_changes: nF, + init: iF, + insert_hydration: lF, + safe_not_equal: aF, + toggle_class: oF, + transition_in: sF, + transition_out: rF, + update_slot_base: uF } = window.__gradio__svelte__internal, { - SvelteComponent: Q2, - append_hydration: J2, - attr: eF, - check_outros: tF, - children: nF, - claim_component: iF, - claim_element: lF, - claim_space: oF, - create_component: aF, - destroy_component: rF, - detach: sF, - element: uF, - empty: _F, - group_outros: cF, - init: dF, - insert_hydration: hF, - listen: fF, - mount_component: pF, - safe_not_equal: mF, - space: gF, - toggle_class: vF, - transition_in: bF, - transition_out: DF + SvelteComponent: _F, + append_hydration: cF, + attr: dF, + check_outros: fF, + children: hF, + claim_component: pF, + claim_element: mF, + claim_space: gF, + create_component: vF, + destroy_component: bF, + detach: DF, + element: yF, + empty: wF, + group_outros: kF, + init: FF, + insert_hydration: $F, + listen: CF, + mount_component: EF, + safe_not_equal: AF, + space: SF, + toggle_class: BF, + transition_in: qF, + transition_out: TF } = window.__gradio__svelte__internal, { - SvelteComponent: yF, - attr: $F, - children: wF, - claim_element: FF, - create_slot: kF, - detach: CF, - element: EF, - get_all_dirty_from_scope: AF, - get_slot_changes: SF, - init: BF, - insert_hydration: qF, - null_to_empty: TF, - safe_not_equal: xF, - transition_in: zF, - transition_out: IF, - update_slot_base: RF + SvelteComponent: zF, + attr: IF, + children: RF, + claim_element: LF, + create_slot: OF, + detach: PF, + element: MF, + get_all_dirty_from_scope: NF, + get_slot_changes: jF, + init: HF, + insert_hydration: xF, + null_to_empty: VF, + safe_not_equal: UF, + transition_in: GF, + transition_out: ZF, + update_slot_base: XF } = window.__gradio__svelte__internal, { - SvelteComponent: LF, - check_outros: OF, - claim_component: PF, - create_component: MF, - destroy_component: NF, - detach: jF, - empty: HF, - group_outros: VF, - init: UF, - insert_hydration: GF, - mount_component: ZF, - noop: XF, - safe_not_equal: YF, - transition_in: WF, - transition_out: KF -} = window.__gradio__svelte__internal, { createEventDispatcher: QF } = window.__gradio__svelte__internal; -function at(o) { + SvelteComponent: YF, + check_outros: WF, + claim_component: KF, + create_component: QF, + destroy_component: JF, + detach: e$, + empty: t$, + group_outros: n$, + init: i$, + insert_hydration: l$, + mount_component: a$, + noop: o$, + safe_not_equal: s$, + transition_in: r$, + transition_out: u$ +} = window.__gradio__svelte__internal, { createEventDispatcher: _$ } = window.__gradio__svelte__internal; +function vt(a) { let e = ["", "k", "M", "G", "T", "P", "E", "Z"], t = 0; - for (; o > 1e3 && t < e.length - 1; ) - o /= 1e3, t++; + for (; a > 1e3 && t < e.length - 1; ) + a /= 1e3, t++; let n = e[t]; - return (Number.isInteger(o) ? o : o.toFixed(1)) + n; + return (Number.isInteger(a) ? a : a.toFixed(1)) + n; } -function Ht() { +function un() { } -const Sl = typeof window < "u"; -let ti = Sl ? () => window.performance.now() : () => Date.now(), Bl = Sl ? (o) => requestAnimationFrame(o) : Ht; -const rt = /* @__PURE__ */ new Set(); -function ql(o) { - rt.forEach((e) => { - e.c(o) || (rt.delete(e), e.f()); - }), rt.size !== 0 && Bl(ql); +const jl = typeof window < "u"; +let pi = jl ? () => window.performance.now() : () => Date.now(), Hl = jl ? (a) => requestAnimationFrame(a) : un; +const bt = /* @__PURE__ */ new Set(); +function xl(a) { + bt.forEach((e) => { + e.c(a) || (bt.delete(e), e.f()); + }), bt.size !== 0 && Hl(xl); } -function Ta(o) { +function Ro(a) { let e; - return rt.size === 0 && Bl(ql), { promise: new Promise((t) => { - rt.add(e = { c: o, f: t }); + return bt.size === 0 && Hl(xl), { promise: new Promise((t) => { + bt.add(e = { c: a, f: t }); }), abort() { - rt.delete(e); + bt.delete(e); } }; } -const ot = []; -function xa(o, e = Ht) { +const gt = []; +function Lo(a, e = un) { let t; const n = /* @__PURE__ */ new Set(); - function i(l) { - if (s = l, ((r = o) != r ? s == s : r !== s || r && typeof r == "object" || typeof r == "function") && (o = l, t)) { - const u = !ot.length; - for (const _ of n) _[1](), ot.push(_, o); + function i(o) { + if (r = o, ((s = a) != s ? r == r : s !== r || s && typeof s == "object" || typeof s == "function") && (a = o, t)) { + const u = !gt.length; + for (const _ of n) _[1](), gt.push(_, a); if (u) { - for (let _ = 0; _ < ot.length; _ += 2) ot[_][0](ot[_ + 1]); - ot.length = 0; + for (let _ = 0; _ < gt.length; _ += 2) gt[_][0](gt[_ + 1]); + gt.length = 0; } } - var r, s; + var s, r; } - function a(l) { - i(l(o)); + function l(o) { + i(o(a)); } - return { set: i, update: a, subscribe: function(l, r = Ht) { - const s = [l, r]; - return n.add(s), n.size === 1 && (t = e(i, a) || Ht), l(o), () => { - n.delete(s), n.size === 0 && t && (t(), t = null); + return { set: i, update: l, subscribe: function(o, s = un) { + const r = [o, s]; + return n.add(r), n.size === 1 && (t = e(i, l) || un), o(a), () => { + n.delete(r), n.size === 0 && t && (t(), t = null); }; } }; } -function ni(o) { - return Object.prototype.toString.call(o) === "[object Date]"; +function mi(a) { + return Object.prototype.toString.call(a) === "[object Date]"; } -function fn(o, e, t, n) { - if (typeof t == "number" || ni(t)) { - const i = n - t, a = (t - e) / (o.dt || 1 / 60), l = (a + (o.opts.stiffness * i - o.opts.damping * a) * o.inv_mass) * o.dt; - return Math.abs(l) < o.opts.precision && Math.abs(i) < o.opts.precision ? n : (o.settled = !1, ni(t) ? new Date(t.getTime() + l) : t + l); +function Tn(a, e, t, n) { + if (typeof t == "number" || mi(t)) { + const i = n - t, l = (t - e) / (a.dt || 1 / 60), o = (l + (a.opts.stiffness * i - a.opts.damping * l) * a.inv_mass) * a.dt; + return Math.abs(o) < a.opts.precision && Math.abs(i) < a.opts.precision ? n : (a.settled = !1, mi(t) ? new Date(t.getTime() + o) : t + o); } - if (Array.isArray(t)) return t.map((i, a) => fn(o, e[a], t[a], n[a])); + if (Array.isArray(t)) return t.map((i, l) => Tn(a, e[l], t[l], n[l])); if (typeof t == "object") { const i = {}; - for (const a in t) i[a] = fn(o, e[a], t[a], n[a]); + for (const l in t) i[l] = Tn(a, e[l], t[l], n[l]); return i; } throw new Error(`Cannot spring ${typeof t} values`); } -function ii(o, e = {}) { - const t = xa(o), { stiffness: n = 0.15, damping: i = 0.8, precision: a = 0.01 } = e; - let l, r, s, u = o, _ = o, c = 1, d = 0, f = !1; - function g(v, F = {}) { - _ = v; - const p = s = {}; - return o == null || F.hard || m.stiffness >= 1 && m.damping >= 1 ? (f = !0, l = ti(), u = v, t.set(o = _), Promise.resolve()) : (F.soft && (d = 1 / (60 * (F.soft === !0 ? 0.5 : +F.soft)), c = 0), r || (l = ti(), f = !1, r = Ta((h) => { - if (f) return f = !1, r = null, !1; - c = Math.min(c + d, 1); - const b = { inv_mass: c, opts: m, settled: !0, dt: 60 * (h - l) / 1e3 }, y = fn(b, u, o, _); - return l = h, u = o, t.set(o = y), b.settled && (r = null), !b.settled; - })), new Promise((h) => { - r.promise.then(() => { - p === s && h(); +function gi(a, e = {}) { + const t = Lo(a), { stiffness: n = 0.15, damping: i = 0.8, precision: l = 0.01 } = e; + let o, s, r, u = a, _ = a, d = 1, c = 0, h = !1; + function g(D, k = {}) { + _ = D; + const m = r = {}; + return a == null || k.hard || p.stiffness >= 1 && p.damping >= 1 ? (h = !0, o = pi(), u = D, t.set(a = _), Promise.resolve()) : (k.soft && (c = 1 / (60 * (k.soft === !0 ? 0.5 : +k.soft)), d = 0), s || (o = pi(), h = !1, s = Ro((f) => { + if (h) return h = !1, s = null, !1; + d = Math.min(d + c, 1); + const v = { inv_mass: d, opts: p, settled: !0, dt: 60 * (f - o) / 1e3 }, y = Tn(v, u, a, _); + return o = f, u = a, t.set(a = y), v.settled && (s = null), !v.settled; + })), new Promise((f) => { + s.promise.then(() => { + m === r && f(); }); })); } - const m = { set: g, update: (v, F) => g(v(_, o), F), subscribe: t.subscribe, stiffness: n, damping: i, precision: a }; - return m; + const p = { set: g, update: (D, k) => g(D(_, a), k), subscribe: t.subscribe, stiffness: n, damping: i, precision: l }; + return p; } const { - SvelteComponent: za, - append_hydration: ge, - attr: T, - children: ae, - claim_element: Ia, - claim_svg_element: ve, - component_subscribe: li, - detach: le, - element: Ra, - init: La, - insert_hydration: Oa, - noop: oi, - safe_not_equal: Pa, - set_style: Ot, - svg_element: be, - toggle_class: ai -} = window.__gradio__svelte__internal, { onMount: Ma } = window.__gradio__svelte__internal; -function Na(o) { - let e, t, n, i, a, l, r, s, u, _, c, d; + SvelteComponent: Oo, + append_hydration: qe, + attr: z, + children: ve, + claim_element: Po, + claim_svg_element: Te, + component_subscribe: vi, + detach: de, + element: Mo, + init: No, + insert_hydration: jo, + noop: bi, + safe_not_equal: Ho, + set_style: ln, + svg_element: ze, + toggle_class: Di +} = window.__gradio__svelte__internal, { onMount: xo } = window.__gradio__svelte__internal; +function Vo(a) { + let e, t, n, i, l, o, s, r, u, _, d, c; return { c() { - e = Ra("div"), t = be("svg"), n = be("g"), i = be("path"), a = be("path"), l = be("path"), r = be("path"), s = be("g"), u = be("path"), _ = be("path"), c = be("path"), d = be("path"), this.h(); + e = Mo("div"), t = ze("svg"), n = ze("g"), i = ze("path"), l = ze("path"), o = ze("path"), s = ze("path"), r = ze("g"), u = ze("path"), _ = ze("path"), d = ze("path"), c = ze("path"), this.h(); }, - l(f) { - e = Ia(f, "DIV", { class: !0 }); - var g = ae(e); - t = ve(g, "svg", { + l(h) { + e = Po(h, "DIV", { class: !0 }); + var g = ve(e); + t = Te(g, "svg", { viewBox: !0, fill: !0, xmlns: !0, class: !0 }); - var m = ae(t); - n = ve(m, "g", { style: !0 }); - var v = ae(n); - i = ve(v, "path", { + var p = ve(t); + n = Te(p, "g", { style: !0 }); + var D = ve(n); + i = Te(D, "path", { d: !0, fill: !0, "fill-opacity": !0, class: !0 - }), ae(i).forEach(le), a = ve(v, "path", { d: !0, fill: !0, class: !0 }), ae(a).forEach(le), l = ve(v, "path", { + }), ve(i).forEach(de), l = Te(D, "path", { d: !0, fill: !0, class: !0 }), ve(l).forEach(de), o = Te(D, "path", { d: !0, fill: !0, "fill-opacity": !0, class: !0 - }), ae(l).forEach(le), r = ve(v, "path", { d: !0, fill: !0, class: !0 }), ae(r).forEach(le), v.forEach(le), s = ve(m, "g", { style: !0 }); - var F = ae(s); - u = ve(F, "path", { + }), ve(o).forEach(de), s = Te(D, "path", { d: !0, fill: !0, class: !0 }), ve(s).forEach(de), D.forEach(de), r = Te(p, "g", { style: !0 }); + var k = ve(r); + u = Te(k, "path", { d: !0, fill: !0, "fill-opacity": !0, class: !0 - }), ae(u).forEach(le), _ = ve(F, "path", { d: !0, fill: !0, class: !0 }), ae(_).forEach(le), c = ve(F, "path", { + }), ve(u).forEach(de), _ = Te(k, "path", { d: !0, fill: !0, class: !0 }), ve(_).forEach(de), d = Te(k, "path", { d: !0, fill: !0, "fill-opacity": !0, class: !0 - }), ae(c).forEach(le), d = ve(F, "path", { d: !0, fill: !0, class: !0 }), ae(d).forEach(le), F.forEach(le), m.forEach(le), g.forEach(le), this.h(); + }), ve(d).forEach(de), c = Te(k, "path", { d: !0, fill: !0, class: !0 }), ve(c).forEach(de), k.forEach(de), p.forEach(de), g.forEach(de), this.h(); }, h() { - T(i, "d", "M255.926 0.754768L509.702 139.936V221.027L255.926 81.8465V0.754768Z"), T(i, "fill", "#FF7C00"), T(i, "fill-opacity", "0.4"), T(i, "class", "svelte-43sxxs"), T(a, "d", "M509.69 139.936L254.981 279.641V361.255L509.69 221.55V139.936Z"), T(a, "fill", "#FF7C00"), T(a, "class", "svelte-43sxxs"), T(l, "d", "M0.250138 139.937L254.981 279.641V361.255L0.250138 221.55V139.937Z"), T(l, "fill", "#FF7C00"), T(l, "fill-opacity", "0.4"), T(l, "class", "svelte-43sxxs"), T(r, "d", "M255.923 0.232622L0.236328 139.936V221.55L255.923 81.8469V0.232622Z"), T(r, "fill", "#FF7C00"), T(r, "class", "svelte-43sxxs"), Ot(n, "transform", "translate(" + /*$top*/ - o[1][0] + "px, " + /*$top*/ - o[1][1] + "px)"), T(u, "d", "M255.926 141.5L509.702 280.681V361.773L255.926 222.592V141.5Z"), T(u, "fill", "#FF7C00"), T(u, "fill-opacity", "0.4"), T(u, "class", "svelte-43sxxs"), T(_, "d", "M509.69 280.679L254.981 420.384V501.998L509.69 362.293V280.679Z"), T(_, "fill", "#FF7C00"), T(_, "class", "svelte-43sxxs"), T(c, "d", "M0.250138 280.681L254.981 420.386V502L0.250138 362.295V280.681Z"), T(c, "fill", "#FF7C00"), T(c, "fill-opacity", "0.4"), T(c, "class", "svelte-43sxxs"), T(d, "d", "M255.923 140.977L0.236328 280.68V362.294L255.923 222.591V140.977Z"), T(d, "fill", "#FF7C00"), T(d, "class", "svelte-43sxxs"), Ot(s, "transform", "translate(" + /*$bottom*/ - o[2][0] + "px, " + /*$bottom*/ - o[2][1] + "px)"), T(t, "viewBox", "-1200 -1200 3000 3000"), T(t, "fill", "none"), T(t, "xmlns", "http://www.w3.org/2000/svg"), T(t, "class", "svelte-43sxxs"), T(e, "class", "svelte-43sxxs"), ai( + z(i, "d", "M255.926 0.754768L509.702 139.936V221.027L255.926 81.8465V0.754768Z"), z(i, "fill", "#FF7C00"), z(i, "fill-opacity", "0.4"), z(i, "class", "svelte-43sxxs"), z(l, "d", "M509.69 139.936L254.981 279.641V361.255L509.69 221.55V139.936Z"), z(l, "fill", "#FF7C00"), z(l, "class", "svelte-43sxxs"), z(o, "d", "M0.250138 139.937L254.981 279.641V361.255L0.250138 221.55V139.937Z"), z(o, "fill", "#FF7C00"), z(o, "fill-opacity", "0.4"), z(o, "class", "svelte-43sxxs"), z(s, "d", "M255.923 0.232622L0.236328 139.936V221.55L255.923 81.8469V0.232622Z"), z(s, "fill", "#FF7C00"), z(s, "class", "svelte-43sxxs"), ln(n, "transform", "translate(" + /*$top*/ + a[1][0] + "px, " + /*$top*/ + a[1][1] + "px)"), z(u, "d", "M255.926 141.5L509.702 280.681V361.773L255.926 222.592V141.5Z"), z(u, "fill", "#FF7C00"), z(u, "fill-opacity", "0.4"), z(u, "class", "svelte-43sxxs"), z(_, "d", "M509.69 280.679L254.981 420.384V501.998L509.69 362.293V280.679Z"), z(_, "fill", "#FF7C00"), z(_, "class", "svelte-43sxxs"), z(d, "d", "M0.250138 280.681L254.981 420.386V502L0.250138 362.295V280.681Z"), z(d, "fill", "#FF7C00"), z(d, "fill-opacity", "0.4"), z(d, "class", "svelte-43sxxs"), z(c, "d", "M255.923 140.977L0.236328 280.68V362.294L255.923 222.591V140.977Z"), z(c, "fill", "#FF7C00"), z(c, "class", "svelte-43sxxs"), ln(r, "transform", "translate(" + /*$bottom*/ + a[2][0] + "px, " + /*$bottom*/ + a[2][1] + "px)"), z(t, "viewBox", "-1200 -1200 3000 3000"), z(t, "fill", "none"), z(t, "xmlns", "http://www.w3.org/2000/svg"), z(t, "class", "svelte-43sxxs"), z(e, "class", "svelte-43sxxs"), Di( e, "margin", /*margin*/ - o[0] + a[0] ); }, - m(f, g) { - Oa(f, e, g), ge(e, t), ge(t, n), ge(n, i), ge(n, a), ge(n, l), ge(n, r), ge(t, s), ge(s, u), ge(s, _), ge(s, c), ge(s, d); + m(h, g) { + jo(h, e, g), qe(e, t), qe(t, n), qe(n, i), qe(n, l), qe(n, o), qe(n, s), qe(t, r), qe(r, u), qe(r, _), qe(r, d), qe(r, c); }, - p(f, [g]) { + p(h, [g]) { g & /*$top*/ - 2 && Ot(n, "transform", "translate(" + /*$top*/ - f[1][0] + "px, " + /*$top*/ - f[1][1] + "px)"), g & /*$bottom*/ - 4 && Ot(s, "transform", "translate(" + /*$bottom*/ - f[2][0] + "px, " + /*$bottom*/ - f[2][1] + "px)"), g & /*margin*/ - 1 && ai( + 2 && ln(n, "transform", "translate(" + /*$top*/ + h[1][0] + "px, " + /*$top*/ + h[1][1] + "px)"), g & /*$bottom*/ + 4 && ln(r, "transform", "translate(" + /*$bottom*/ + h[2][0] + "px, " + /*$bottom*/ + h[2][1] + "px)"), g & /*margin*/ + 1 && Di( e, "margin", /*margin*/ - f[0] + h[0] ); }, - i: oi, - o: oi, - d(f) { - f && le(e); + i: bi, + o: bi, + d(h) { + h && de(e); } }; } -function ja(o, e, t) { +function Uo(a, e, t) { let n, i; - var a = this && this.__awaiter || function(f, g, m, v) { - function F(p) { - return p instanceof m ? p : new m(function(h) { - h(p); + var l = this && this.__awaiter || function(h, g, p, D) { + function k(m) { + return m instanceof p ? m : new p(function(f) { + f(m); }); } - return new (m || (m = Promise))(function(p, h) { - function b($) { + return new (p || (p = Promise))(function(m, f) { + function v(F) { try { - D(v.next($)); - } catch (S) { - h(S); + b(D.next(F)); + } catch (A) { + f(A); } } - function y($) { + function y(F) { try { - D(v.throw($)); - } catch (S) { - h(S); + b(D.throw(F)); + } catch (A) { + f(A); } } - function D($) { - $.done ? p($.value) : F($.value).then(b, y); + function b(F) { + F.done ? m(F.value) : k(F.value).then(v, y); } - D((v = v.apply(f, g || [])).next()); + b((D = D.apply(h, g || [])).next()); }); }; - let { margin: l = !0 } = e; - const r = ii([0, 0]); - li(o, r, (f) => t(1, n = f)); - const s = ii([0, 0]); - li(o, s, (f) => t(2, i = f)); + let { margin: o = !0 } = e; + const s = gi([0, 0]); + vi(a, s, (h) => t(1, n = h)); + const r = gi([0, 0]); + vi(a, r, (h) => t(2, i = h)); let u; function _() { - return a(this, void 0, void 0, function* () { - yield Promise.all([r.set([125, 140]), s.set([-125, -140])]), yield Promise.all([r.set([-125, 140]), s.set([125, -140])]), yield Promise.all([r.set([-125, 0]), s.set([125, -0])]), yield Promise.all([r.set([125, 0]), s.set([-125, 0])]); + return l(this, void 0, void 0, function* () { + yield Promise.all([s.set([125, 140]), r.set([-125, -140])]), yield Promise.all([s.set([-125, 140]), r.set([125, -140])]), yield Promise.all([s.set([-125, 0]), r.set([125, -0])]), yield Promise.all([s.set([125, 0]), r.set([-125, 0])]); }); } - function c() { - return a(this, void 0, void 0, function* () { - yield _(), u || c(); + function d() { + return l(this, void 0, void 0, function* () { + yield _(), u || d(); }); } - function d() { - return a(this, void 0, void 0, function* () { - yield Promise.all([r.set([125, 0]), s.set([-125, 0])]), c(); + function c() { + return l(this, void 0, void 0, function* () { + yield Promise.all([s.set([125, 0]), r.set([-125, 0])]), d(); }); } - return Ma(() => (d(), () => u = !0)), o.$$set = (f) => { - "margin" in f && t(0, l = f.margin); - }, [l, n, i, r, s]; + return xo(() => (c(), () => u = !0)), a.$$set = (h) => { + "margin" in h && t(0, o = h.margin); + }, [o, n, i, s, r]; } -class Ha extends za { +class Go extends Oo { constructor(e) { - super(), La(this, e, ja, Na, Pa, { margin: 0 }); + super(), No(this, e, Uo, Vo, Ho, { margin: 0 }); } } const { - SvelteComponent: Va, - append_hydration: We, - attr: $e, - binding_callbacks: ri, - check_outros: pn, - children: Be, - claim_component: Tl, - claim_element: qe, - claim_space: _e, - claim_text: j, - create_component: xl, - create_slot: zl, - destroy_component: Il, - destroy_each: Rl, - detach: A, - element: Te, - empty: he, - ensure_array_like: Zt, - get_all_dirty_from_scope: Ll, - get_slot_changes: Ol, - group_outros: mn, - init: Ua, - insert_hydration: B, - mount_component: Pl, - noop: gn, - safe_not_equal: Ga, - set_data: fe, - set_style: Ve, - space: ce, - text: H, - toggle_class: re, - transition_in: ye, - transition_out: xe, - update_slot_base: Ml -} = window.__gradio__svelte__internal, { tick: Za } = window.__gradio__svelte__internal, { onDestroy: Xa } = window.__gradio__svelte__internal, { createEventDispatcher: Ya } = window.__gradio__svelte__internal, Wa = (o) => ({}), si = (o) => ({}), Ka = (o) => ({}), ui = (o) => ({}); -function _i(o, e, t) { - const n = o.slice(); + SvelteComponent: Zo, + append_hydration: ut, + attr: Re, + binding_callbacks: yi, + check_outros: zn, + children: Ve, + claim_component: Vl, + claim_element: Ue, + claim_space: ye, + claim_text: x, + create_component: Ul, + create_slot: Gl, + destroy_component: Zl, + destroy_each: Xl, + detach: B, + element: Ge, + empty: Ee, + ensure_array_like: fn, + get_all_dirty_from_scope: Yl, + get_slot_changes: Wl, + group_outros: In, + init: Xo, + insert_hydration: T, + mount_component: Kl, + noop: Rn, + safe_not_equal: Yo, + set_data: Ae, + set_style: it, + space: we, + text: V, + toggle_class: be, + transition_in: Ie, + transition_out: Ze, + update_slot_base: Ql +} = window.__gradio__svelte__internal, { tick: Wo } = window.__gradio__svelte__internal, { onDestroy: Ko } = window.__gradio__svelte__internal, { createEventDispatcher: Qo } = window.__gradio__svelte__internal, Jo = (a) => ({}), wi = (a) => ({}), es = (a) => ({}), ki = (a) => ({}); +function Fi(a, e, t) { + const n = a.slice(); return n[40] = e[t], n[42] = t, n; } -function ci(o, e, t) { - const n = o.slice(); +function $i(a, e, t) { + const n = a.slice(); return n[40] = e[t], n; } -function Qa(o) { - let e, t, n, i, a = ( +function ts(a) { + let e, t, n, i, l = ( /*i18n*/ - o[1]("common.error") + "" - ), l, r, s; - t = new Fa({ + a[1]("common.error") + "" + ), o, s, r; + t = new Eo({ props: { - Icon: Ba, + Icon: zo, label: ( /*i18n*/ - o[1]("common.clear") + a[1]("common.clear") ), disabled: !1 } }), t.$on( "click", /*click_handler*/ - o[32] + a[32] ); const u = ( /*#slots*/ - o[30].error - ), _ = zl( + a[30].error + ), _ = Gl( u, - o, + a, /*$$scope*/ - o[29], - si + a[29], + wi ); return { c() { - e = Te("div"), xl(t.$$.fragment), n = ce(), i = Te("span"), l = H(a), r = ce(), _ && _.c(), this.h(); + e = Ge("div"), Ul(t.$$.fragment), n = we(), i = Ge("span"), o = V(l), s = we(), _ && _.c(), this.h(); }, - l(c) { - e = qe(c, "DIV", { class: !0 }); - var d = Be(e); - Tl(t.$$.fragment, d), d.forEach(A), n = _e(c), i = qe(c, "SPAN", { class: !0 }); - var f = Be(i); - l = j(f, a), f.forEach(A), r = _e(c), _ && _.l(c), this.h(); + l(d) { + e = Ue(d, "DIV", { class: !0 }); + var c = Ve(e); + Vl(t.$$.fragment, c), c.forEach(B), n = ye(d), i = Ue(d, "SPAN", { class: !0 }); + var h = Ve(i); + o = x(h, l), h.forEach(B), s = ye(d), _ && _.l(d), this.h(); }, h() { - $e(e, "class", "clear-status svelte-17v219f"), $e(i, "class", "error svelte-17v219f"); - }, - m(c, d) { - B(c, e, d), Pl(t, e, null), B(c, n, d), B(c, i, d), We(i, l), B(c, r, d), _ && _.m(c, d), s = !0; - }, - p(c, d) { - const f = {}; - d[0] & /*i18n*/ - 2 && (f.label = /*i18n*/ - c[1]("common.clear")), t.$set(f), (!s || d[0] & /*i18n*/ - 2) && a !== (a = /*i18n*/ - c[1]("common.error") + "") && fe(l, a), _ && _.p && (!s || d[0] & /*$$scope*/ - 536870912) && Ml( + Re(e, "class", "clear-status svelte-17v219f"), Re(i, "class", "error svelte-17v219f"); + }, + m(d, c) { + T(d, e, c), Kl(t, e, null), T(d, n, c), T(d, i, c), ut(i, o), T(d, s, c), _ && _.m(d, c), r = !0; + }, + p(d, c) { + const h = {}; + c[0] & /*i18n*/ + 2 && (h.label = /*i18n*/ + d[1]("common.clear")), t.$set(h), (!r || c[0] & /*i18n*/ + 2) && l !== (l = /*i18n*/ + d[1]("common.error") + "") && Ae(o, l), _ && _.p && (!r || c[0] & /*$$scope*/ + 536870912) && Ql( _, u, - c, + d, /*$$scope*/ - c[29], - s ? Ol( + d[29], + r ? Wl( u, /*$$scope*/ - c[29], - d, - Wa - ) : Ll( + d[29], + c, + Jo + ) : Yl( /*$$scope*/ - c[29] + d[29] ), - si + wi ); }, - i(c) { - s || (ye(t.$$.fragment, c), ye(_, c), s = !0); + i(d) { + r || (Ie(t.$$.fragment, d), Ie(_, d), r = !0); }, - o(c) { - xe(t.$$.fragment, c), xe(_, c), s = !1; + o(d) { + Ze(t.$$.fragment, d), Ze(_, d), r = !1; }, - d(c) { - c && (A(e), A(n), A(i), A(r)), Il(t), _ && _.d(c); + d(d) { + d && (B(e), B(n), B(i), B(s)), Zl(t), _ && _.d(d); } }; } -function Ja(o) { - let e, t, n, i, a, l, r, s, u, _ = ( +function ns(a) { + let e, t, n, i, l, o, s, r, u, _ = ( /*variant*/ - o[8] === "default" && /*show_eta_bar*/ - o[18] && /*show_progress*/ - o[6] === "full" && di(o) + a[8] === "default" && /*show_eta_bar*/ + a[18] && /*show_progress*/ + a[6] === "full" && Ci(a) ); - function c(h, b) { + function d(f, v) { if ( /*progress*/ - h[7] - ) return nr; + f[7] + ) return as; if ( /*queue_position*/ - h[2] !== null && /*queue_size*/ - h[3] !== void 0 && /*queue_position*/ - h[2] >= 0 - ) return tr; + f[2] !== null && /*queue_size*/ + f[3] !== void 0 && /*queue_position*/ + f[2] >= 0 + ) return ls; if ( /*queue_position*/ - h[2] === 0 - ) return er; + f[2] === 0 + ) return is; } - let d = c(o), f = d && d(o), g = ( + let c = d(a), h = c && c(a), g = ( /*timer*/ - o[5] && pi(o) + a[5] && Si(a) ); - const m = [ar, or], v = []; - function F(h, b) { + const p = [us, rs], D = []; + function k(f, v) { return ( /*last_progress_level*/ - h[15] != null ? 0 : ( + f[15] != null ? 0 : ( /*show_progress*/ - h[6] === "full" ? 1 : -1 + f[6] === "full" ? 1 : -1 ) ); } - ~(a = F(o)) && (l = v[a] = m[a](o)); - let p = !/*timer*/ - o[5] && $i(o); + ~(l = k(a)) && (o = D[l] = p[l](a)); + let m = !/*timer*/ + a[5] && Li(a); return { c() { - _ && _.c(), e = ce(), t = Te("div"), f && f.c(), n = ce(), g && g.c(), i = ce(), l && l.c(), r = ce(), p && p.c(), s = he(), this.h(); + _ && _.c(), e = we(), t = Ge("div"), h && h.c(), n = we(), g && g.c(), i = we(), o && o.c(), s = we(), m && m.c(), r = Ee(), this.h(); }, - l(h) { - _ && _.l(h), e = _e(h), t = qe(h, "DIV", { class: !0 }); - var b = Be(t); - f && f.l(b), n = _e(b), g && g.l(b), b.forEach(A), i = _e(h), l && l.l(h), r = _e(h), p && p.l(h), s = he(), this.h(); + l(f) { + _ && _.l(f), e = ye(f), t = Ue(f, "DIV", { class: !0 }); + var v = Ve(t); + h && h.l(v), n = ye(v), g && g.l(v), v.forEach(B), i = ye(f), o && o.l(f), s = ye(f), m && m.l(f), r = Ee(), this.h(); }, h() { - $e(t, "class", "progress-text svelte-17v219f"), re( + Re(t, "class", "progress-text svelte-17v219f"), be( t, "meta-text-center", /*variant*/ - o[8] === "center" - ), re( + a[8] === "center" + ), be( t, "meta-text", /*variant*/ - o[8] === "default" + a[8] === "default" ); }, - m(h, b) { - _ && _.m(h, b), B(h, e, b), B(h, t, b), f && f.m(t, null), We(t, n), g && g.m(t, null), B(h, i, b), ~a && v[a].m(h, b), B(h, r, b), p && p.m(h, b), B(h, s, b), u = !0; + m(f, v) { + _ && _.m(f, v), T(f, e, v), T(f, t, v), h && h.m(t, null), ut(t, n), g && g.m(t, null), T(f, i, v), ~l && D[l].m(f, v), T(f, s, v), m && m.m(f, v), T(f, r, v), u = !0; }, - p(h, b) { + p(f, v) { /*variant*/ - h[8] === "default" && /*show_eta_bar*/ - h[18] && /*show_progress*/ - h[6] === "full" ? _ ? _.p(h, b) : (_ = di(h), _.c(), _.m(e.parentNode, e)) : _ && (_.d(1), _ = null), d === (d = c(h)) && f ? f.p(h, b) : (f && f.d(1), f = d && d(h), f && (f.c(), f.m(t, n))), /*timer*/ - h[5] ? g ? g.p(h, b) : (g = pi(h), g.c(), g.m(t, null)) : g && (g.d(1), g = null), (!u || b[0] & /*variant*/ - 256) && re( + f[8] === "default" && /*show_eta_bar*/ + f[18] && /*show_progress*/ + f[6] === "full" ? _ ? _.p(f, v) : (_ = Ci(f), _.c(), _.m(e.parentNode, e)) : _ && (_.d(1), _ = null), c === (c = d(f)) && h ? h.p(f, v) : (h && h.d(1), h = c && c(f), h && (h.c(), h.m(t, n))), /*timer*/ + f[5] ? g ? g.p(f, v) : (g = Si(f), g.c(), g.m(t, null)) : g && (g.d(1), g = null), (!u || v[0] & /*variant*/ + 256) && be( t, "meta-text-center", /*variant*/ - h[8] === "center" - ), (!u || b[0] & /*variant*/ - 256) && re( + f[8] === "center" + ), (!u || v[0] & /*variant*/ + 256) && be( t, "meta-text", /*variant*/ - h[8] === "default" + f[8] === "default" ); - let y = a; - a = F(h), a === y ? ~a && v[a].p(h, b) : (l && (mn(), xe(v[y], 1, 1, () => { - v[y] = null; - }), pn()), ~a ? (l = v[a], l ? l.p(h, b) : (l = v[a] = m[a](h), l.c()), ye(l, 1), l.m(r.parentNode, r)) : l = null), /*timer*/ - h[5] ? p && (mn(), xe(p, 1, 1, () => { - p = null; - }), pn()) : p ? (p.p(h, b), b[0] & /*timer*/ - 32 && ye(p, 1)) : (p = $i(h), p.c(), ye(p, 1), p.m(s.parentNode, s)); + let y = l; + l = k(f), l === y ? ~l && D[l].p(f, v) : (o && (In(), Ze(D[y], 1, 1, () => { + D[y] = null; + }), zn()), ~l ? (o = D[l], o ? o.p(f, v) : (o = D[l] = p[l](f), o.c()), Ie(o, 1), o.m(s.parentNode, s)) : o = null), /*timer*/ + f[5] ? m && (In(), Ze(m, 1, 1, () => { + m = null; + }), zn()) : m ? (m.p(f, v), v[0] & /*timer*/ + 32 && Ie(m, 1)) : (m = Li(f), m.c(), Ie(m, 1), m.m(r.parentNode, r)); }, - i(h) { - u || (ye(l), ye(p), u = !0); + i(f) { + u || (Ie(o), Ie(m), u = !0); }, - o(h) { - xe(l), xe(p), u = !1; + o(f) { + Ze(o), Ze(m), u = !1; }, - d(h) { - h && (A(e), A(t), A(i), A(r), A(s)), _ && _.d(h), f && f.d(), g && g.d(), ~a && v[a].d(h), p && p.d(h); + d(f) { + f && (B(e), B(t), B(i), B(s), B(r)), _ && _.d(f), h && h.d(), g && g.d(), ~l && D[l].d(f), m && m.d(f); } }; } -function di(o) { +function Ci(a) { let e, t = `translateX(${/*eta_level*/ - (o[17] || 0) * 100 - 100}%)`; + (a[17] || 0) * 100 - 100}%)`; return { c() { - e = Te("div"), this.h(); + e = Ge("div"), this.h(); }, l(n) { - e = qe(n, "DIV", { class: !0 }), Be(e).forEach(A), this.h(); + e = Ue(n, "DIV", { class: !0 }), Ve(e).forEach(B), this.h(); }, h() { - $e(e, "class", "eta-bar svelte-17v219f"), Ve(e, "transform", t); + Re(e, "class", "eta-bar svelte-17v219f"), it(e, "transform", t); }, m(n, i) { - B(n, e, i); + T(n, e, i); }, p(n, i) { i[0] & /*eta_level*/ 131072 && t !== (t = `translateX(${/*eta_level*/ - (n[17] || 0) * 100 - 100}%)`) && Ve(e, "transform", t); + (n[17] || 0) * 100 - 100}%)`) && it(e, "transform", t); }, d(n) { - n && A(e); + n && B(e); } }; } -function er(o) { +function is(a) { let e; return { c() { - e = H("processing |"); + e = V("processing |"); }, l(t) { - e = j(t, "processing |"); + e = x(t, "processing |"); }, m(t, n) { - B(t, e, n); + T(t, e, n); }, - p: gn, + p: Rn, d(t) { - t && A(e); + t && B(e); } }; } -function tr(o) { +function ls(a) { let e, t = ( /*queue_position*/ - o[2] + 1 + "" - ), n, i, a, l; + a[2] + 1 + "" + ), n, i, l, o; return { c() { - e = H("queue: "), n = H(t), i = H("/"), a = H( + e = V("queue: "), n = V(t), i = V("/"), l = V( /*queue_size*/ - o[3] - ), l = H(" |"); + a[3] + ), o = V(" |"); }, - l(r) { - e = j(r, "queue: "), n = j(r, t), i = j(r, "/"), a = j( - r, + l(s) { + e = x(s, "queue: "), n = x(s, t), i = x(s, "/"), l = x( + s, /*queue_size*/ - o[3] - ), l = j(r, " |"); + a[3] + ), o = x(s, " |"); }, - m(r, s) { - B(r, e, s), B(r, n, s), B(r, i, s), B(r, a, s), B(r, l, s); + m(s, r) { + T(s, e, r), T(s, n, r), T(s, i, r), T(s, l, r), T(s, o, r); }, - p(r, s) { - s[0] & /*queue_position*/ + p(s, r) { + r[0] & /*queue_position*/ 4 && t !== (t = /*queue_position*/ - r[2] + 1 + "") && fe(n, t), s[0] & /*queue_size*/ - 8 && fe( - a, + s[2] + 1 + "") && Ae(n, t), r[0] & /*queue_size*/ + 8 && Ae( + l, /*queue_size*/ - r[3] + s[3] ); }, - d(r) { - r && (A(e), A(n), A(i), A(a), A(l)); + d(s) { + s && (B(e), B(n), B(i), B(l), B(o)); } }; } -function nr(o) { - let e, t = Zt( +function as(a) { + let e, t = fn( /*progress*/ - o[7] + a[7] ), n = []; for (let i = 0; i < t.length; i += 1) - n[i] = fi(ci(o, t, i)); + n[i] = Ai($i(a, t, i)); return { c() { for (let i = 0; i < n.length; i += 1) n[i].c(); - e = he(); + e = Ee(); }, l(i) { - for (let a = 0; a < n.length; a += 1) - n[a].l(i); - e = he(); - }, - m(i, a) { for (let l = 0; l < n.length; l += 1) - n[l] && n[l].m(i, a); - B(i, e, a); + n[l].l(i); + e = Ee(); + }, + m(i, l) { + for (let o = 0; o < n.length; o += 1) + n[o] && n[o].m(i, l); + T(i, e, l); }, - p(i, a) { - if (a[0] & /*progress*/ + p(i, l) { + if (l[0] & /*progress*/ 128) { - t = Zt( + t = fn( /*progress*/ i[7] ); - let l; - for (l = 0; l < t.length; l += 1) { - const r = ci(i, t, l); - n[l] ? n[l].p(r, a) : (n[l] = fi(r), n[l].c(), n[l].m(e.parentNode, e)); + let o; + for (o = 0; o < t.length; o += 1) { + const s = $i(i, t, o); + n[o] ? n[o].p(s, l) : (n[o] = Ai(s), n[o].c(), n[o].m(e.parentNode, e)); } - for (; l < n.length; l += 1) - n[l].d(1); + for (; o < n.length; o += 1) + n[o].d(1); n.length = t.length; } }, d(i) { - i && A(e), Rl(n, i); + i && B(e), Xl(n, i); } }; } -function hi(o) { +function Ei(a) { let e, t = ( /*p*/ - o[40].unit + "" - ), n, i, a = " ", l; - function r(_, c) { + a[40].unit + "" + ), n, i, l = " ", o; + function s(_, d) { return ( /*p*/ - _[40].length != null ? lr : ir + _[40].length != null ? ss : os ); } - let s = r(o), u = s(o); + let r = s(a), u = r(a); return { c() { - u.c(), e = ce(), n = H(t), i = H(" | "), l = H(a); + u.c(), e = we(), n = V(t), i = V(" | "), o = V(l); }, l(_) { - u.l(_), e = _e(_), n = j(_, t), i = j(_, " | "), l = j(_, a); + u.l(_), e = ye(_), n = x(_, t), i = x(_, " | "), o = x(_, l); }, - m(_, c) { - u.m(_, c), B(_, e, c), B(_, n, c), B(_, i, c), B(_, l, c); + m(_, d) { + u.m(_, d), T(_, e, d), T(_, n, d), T(_, i, d), T(_, o, d); }, - p(_, c) { - s === (s = r(_)) && u ? u.p(_, c) : (u.d(1), u = s(_), u && (u.c(), u.m(e.parentNode, e))), c[0] & /*progress*/ + p(_, d) { + r === (r = s(_)) && u ? u.p(_, d) : (u.d(1), u = r(_), u && (u.c(), u.m(e.parentNode, e))), d[0] & /*progress*/ 128 && t !== (t = /*p*/ - _[40].unit + "") && fe(n, t); + _[40].unit + "") && Ae(n, t); }, d(_) { - _ && (A(e), A(n), A(i), A(l)), u.d(_); + _ && (B(e), B(n), B(i), B(o)), u.d(_); } }; } -function ir(o) { - let e = at( +function os(a) { + let e = vt( /*p*/ - o[40].index || 0 + a[40].index || 0 ) + "", t; return { c() { - t = H(e); + t = V(e); }, l(n) { - t = j(n, e); + t = x(n, e); }, m(n, i) { - B(n, t, i); + T(n, t, i); }, p(n, i) { i[0] & /*progress*/ - 128 && e !== (e = at( + 128 && e !== (e = vt( /*p*/ n[40].index || 0 - ) + "") && fe(t, e); + ) + "") && Ae(t, e); }, d(n) { - n && A(t); + n && B(t); } }; } -function lr(o) { - let e = at( +function ss(a) { + let e = vt( /*p*/ - o[40].index || 0 - ) + "", t, n, i = at( + a[40].index || 0 + ) + "", t, n, i = vt( /*p*/ - o[40].length - ) + "", a; + a[40].length + ) + "", l; return { c() { - t = H(e), n = H("/"), a = H(i); + t = V(e), n = V("/"), l = V(i); }, - l(l) { - t = j(l, e), n = j(l, "/"), a = j(l, i); + l(o) { + t = x(o, e), n = x(o, "/"), l = x(o, i); }, - m(l, r) { - B(l, t, r), B(l, n, r), B(l, a, r); + m(o, s) { + T(o, t, s), T(o, n, s), T(o, l, s); }, - p(l, r) { - r[0] & /*progress*/ - 128 && e !== (e = at( + p(o, s) { + s[0] & /*progress*/ + 128 && e !== (e = vt( /*p*/ - l[40].index || 0 - ) + "") && fe(t, e), r[0] & /*progress*/ - 128 && i !== (i = at( + o[40].index || 0 + ) + "") && Ae(t, e), s[0] & /*progress*/ + 128 && i !== (i = vt( /*p*/ - l[40].length - ) + "") && fe(a, i); + o[40].length + ) + "") && Ae(l, i); }, - d(l) { - l && (A(t), A(n), A(a)); + d(o) { + o && (B(t), B(n), B(l)); } }; } -function fi(o) { +function Ai(a) { let e, t = ( /*p*/ - o[40].index != null && hi(o) + a[40].index != null && Ei(a) ); return { c() { - t && t.c(), e = he(); + t && t.c(), e = Ee(); }, l(n) { - t && t.l(n), e = he(); + t && t.l(n), e = Ee(); }, m(n, i) { - t && t.m(n, i), B(n, e, i); + t && t.m(n, i), T(n, e, i); }, p(n, i) { /*p*/ - n[40].index != null ? t ? t.p(n, i) : (t = hi(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null); + n[40].index != null ? t ? t.p(n, i) : (t = Ei(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null); }, d(n) { - n && A(e), t && t.d(n); + n && B(e), t && t.d(n); } }; } -function pi(o) { +function Si(a) { let e, t = ( /*eta*/ - o[0] ? `/${/*formatted_eta*/ - o[19]}` : "" + a[0] ? `/${/*formatted_eta*/ + a[19]}` : "" ), n, i; return { c() { - e = H( + e = V( /*formatted_timer*/ - o[20] - ), n = H(t), i = H("s"); + a[20] + ), n = V(t), i = V("s"); }, - l(a) { - e = j( - a, + l(l) { + e = x( + l, /*formatted_timer*/ - o[20] - ), n = j(a, t), i = j(a, "s"); + a[20] + ), n = x(l, t), i = x(l, "s"); }, - m(a, l) { - B(a, e, l), B(a, n, l), B(a, i, l); + m(l, o) { + T(l, e, o), T(l, n, o), T(l, i, o); }, - p(a, l) { - l[0] & /*formatted_timer*/ - 1048576 && fe( + p(l, o) { + o[0] & /*formatted_timer*/ + 1048576 && Ae( e, /*formatted_timer*/ - a[20] - ), l[0] & /*eta, formatted_eta*/ + l[20] + ), o[0] & /*eta, formatted_eta*/ 524289 && t !== (t = /*eta*/ - a[0] ? `/${/*formatted_eta*/ - a[19]}` : "") && fe(n, t); + l[0] ? `/${/*formatted_eta*/ + l[19]}` : "") && Ae(n, t); }, - d(a) { - a && (A(e), A(n), A(i)); + d(l) { + l && (B(e), B(n), B(i)); } }; } -function or(o) { +function rs(a) { let e, t; - return e = new Ha({ + return e = new Go({ props: { margin: ( /*variant*/ - o[8] === "default" + a[8] === "default" ) } }), { c() { - xl(e.$$.fragment); + Ul(e.$$.fragment); }, l(n) { - Tl(e.$$.fragment, n); + Vl(e.$$.fragment, n); }, m(n, i) { - Pl(e, n, i), t = !0; + Kl(e, n, i), t = !0; }, p(n, i) { - const a = {}; + const l = {}; i[0] & /*variant*/ - 256 && (a.margin = /*variant*/ - n[8] === "default"), e.$set(a); + 256 && (l.margin = /*variant*/ + n[8] === "default"), e.$set(l); }, i(n) { - t || (ye(e.$$.fragment, n), t = !0); + t || (Ie(e.$$.fragment, n), t = !0); }, o(n) { - xe(e.$$.fragment, n), t = !1; + Ze(e.$$.fragment, n), t = !1; }, d(n) { - Il(e, n); + Zl(e, n); } }; } -function ar(o) { - let e, t, n, i, a, l = `${/*last_progress_level*/ - o[15] * 100}%`, r = ( +function us(a) { + let e, t, n, i, l, o = `${/*last_progress_level*/ + a[15] * 100}%`, s = ( /*progress*/ - o[7] != null && mi(o) + a[7] != null && Bi(a) ); return { c() { - e = Te("div"), t = Te("div"), r && r.c(), n = ce(), i = Te("div"), a = Te("div"), this.h(); + e = Ge("div"), t = Ge("div"), s && s.c(), n = we(), i = Ge("div"), l = Ge("div"), this.h(); }, - l(s) { - e = qe(s, "DIV", { class: !0 }); - var u = Be(e); - t = qe(u, "DIV", { class: !0 }); - var _ = Be(t); - r && r.l(_), _.forEach(A), n = _e(u), i = qe(u, "DIV", { class: !0 }); - var c = Be(i); - a = qe(c, "DIV", { class: !0 }), Be(a).forEach(A), c.forEach(A), u.forEach(A), this.h(); + l(r) { + e = Ue(r, "DIV", { class: !0 }); + var u = Ve(e); + t = Ue(u, "DIV", { class: !0 }); + var _ = Ve(t); + s && s.l(_), _.forEach(B), n = ye(u), i = Ue(u, "DIV", { class: !0 }); + var d = Ve(i); + l = Ue(d, "DIV", { class: !0 }), Ve(l).forEach(B), d.forEach(B), u.forEach(B), this.h(); }, h() { - $e(t, "class", "progress-level-inner svelte-17v219f"), $e(a, "class", "progress-bar svelte-17v219f"), Ve(a, "width", l), $e(i, "class", "progress-bar-wrap svelte-17v219f"), $e(e, "class", "progress-level svelte-17v219f"); + Re(t, "class", "progress-level-inner svelte-17v219f"), Re(l, "class", "progress-bar svelte-17v219f"), it(l, "width", o), Re(i, "class", "progress-bar-wrap svelte-17v219f"), Re(e, "class", "progress-level svelte-17v219f"); }, - m(s, u) { - B(s, e, u), We(e, t), r && r.m(t, null), We(e, n), We(e, i), We(i, a), o[31](a); + m(r, u) { + T(r, e, u), ut(e, t), s && s.m(t, null), ut(e, n), ut(e, i), ut(i, l), a[31](l); }, - p(s, u) { + p(r, u) { /*progress*/ - s[7] != null ? r ? r.p(s, u) : (r = mi(s), r.c(), r.m(t, null)) : r && (r.d(1), r = null), u[0] & /*last_progress_level*/ - 32768 && l !== (l = `${/*last_progress_level*/ - s[15] * 100}%`) && Ve(a, "width", l); + r[7] != null ? s ? s.p(r, u) : (s = Bi(r), s.c(), s.m(t, null)) : s && (s.d(1), s = null), u[0] & /*last_progress_level*/ + 32768 && o !== (o = `${/*last_progress_level*/ + r[15] * 100}%`) && it(l, "width", o); }, - i: gn, - o: gn, - d(s) { - s && A(e), r && r.d(), o[31](null); + i: Rn, + o: Rn, + d(r) { + r && B(e), s && s.d(), a[31](null); } }; } -function mi(o) { - let e, t = Zt( +function Bi(a) { + let e, t = fn( /*progress*/ - o[7] + a[7] ), n = []; for (let i = 0; i < t.length; i += 1) - n[i] = yi(_i(o, t, i)); + n[i] = Ri(Fi(a, t, i)); return { c() { for (let i = 0; i < n.length; i += 1) n[i].c(); - e = he(); + e = Ee(); }, l(i) { - for (let a = 0; a < n.length; a += 1) - n[a].l(i); - e = he(); - }, - m(i, a) { for (let l = 0; l < n.length; l += 1) - n[l] && n[l].m(i, a); - B(i, e, a); + n[l].l(i); + e = Ee(); + }, + m(i, l) { + for (let o = 0; o < n.length; o += 1) + n[o] && n[o].m(i, l); + T(i, e, l); }, - p(i, a) { - if (a[0] & /*progress_level, progress*/ + p(i, l) { + if (l[0] & /*progress_level, progress*/ 16512) { - t = Zt( + t = fn( /*progress*/ i[7] ); - let l; - for (l = 0; l < t.length; l += 1) { - const r = _i(i, t, l); - n[l] ? n[l].p(r, a) : (n[l] = yi(r), n[l].c(), n[l].m(e.parentNode, e)); + let o; + for (o = 0; o < t.length; o += 1) { + const s = Fi(i, t, o); + n[o] ? n[o].p(s, l) : (n[o] = Ri(s), n[o].c(), n[o].m(e.parentNode, e)); } - for (; l < n.length; l += 1) - n[l].d(1); + for (; o < n.length; o += 1) + n[o].d(1); n.length = t.length; } }, d(i) { - i && A(e), Rl(n, i); + i && B(e), Xl(n, i); } }; } -function gi(o) { - let e, t, n, i, a = ( +function qi(a) { + let e, t, n, i, l = ( /*i*/ - o[42] !== 0 && rr() - ), l = ( + a[42] !== 0 && _s() + ), o = ( /*p*/ - o[40].desc != null && vi(o) - ), r = ( + a[40].desc != null && Ti(a) + ), s = ( /*p*/ - o[40].desc != null && /*progress_level*/ - o[14] && /*progress_level*/ - o[14][ + a[40].desc != null && /*progress_level*/ + a[14] && /*progress_level*/ + a[14][ /*i*/ - o[42] - ] != null && bi() - ), s = ( + a[42] + ] != null && zi() + ), r = ( /*progress_level*/ - o[14] != null && Di(o) + a[14] != null && Ii(a) ); return { c() { - a && a.c(), e = ce(), l && l.c(), t = ce(), r && r.c(), n = ce(), s && s.c(), i = he(); + l && l.c(), e = we(), o && o.c(), t = we(), s && s.c(), n = we(), r && r.c(), i = Ee(); }, l(u) { - a && a.l(u), e = _e(u), l && l.l(u), t = _e(u), r && r.l(u), n = _e(u), s && s.l(u), i = he(); + l && l.l(u), e = ye(u), o && o.l(u), t = ye(u), s && s.l(u), n = ye(u), r && r.l(u), i = Ee(); }, m(u, _) { - a && a.m(u, _), B(u, e, _), l && l.m(u, _), B(u, t, _), r && r.m(u, _), B(u, n, _), s && s.m(u, _), B(u, i, _); + l && l.m(u, _), T(u, e, _), o && o.m(u, _), T(u, t, _), s && s.m(u, _), T(u, n, _), r && r.m(u, _), T(u, i, _); }, p(u, _) { /*p*/ - u[40].desc != null ? l ? l.p(u, _) : (l = vi(u), l.c(), l.m(t.parentNode, t)) : l && (l.d(1), l = null), /*p*/ + u[40].desc != null ? o ? o.p(u, _) : (o = Ti(u), o.c(), o.m(t.parentNode, t)) : o && (o.d(1), o = null), /*p*/ u[40].desc != null && /*progress_level*/ u[14] && /*progress_level*/ u[14][ /*i*/ u[42] - ] != null ? r || (r = bi(), r.c(), r.m(n.parentNode, n)) : r && (r.d(1), r = null), /*progress_level*/ - u[14] != null ? s ? s.p(u, _) : (s = Di(u), s.c(), s.m(i.parentNode, i)) : s && (s.d(1), s = null); + ] != null ? s || (s = zi(), s.c(), s.m(n.parentNode, n)) : s && (s.d(1), s = null), /*progress_level*/ + u[14] != null ? r ? r.p(u, _) : (r = Ii(u), r.c(), r.m(i.parentNode, i)) : r && (r.d(1), r = null); }, d(u) { - u && (A(e), A(t), A(n), A(i)), a && a.d(u), l && l.d(u), r && r.d(u), s && s.d(u); + u && (B(e), B(t), B(n), B(i)), l && l.d(u), o && o.d(u), s && s.d(u), r && r.d(u); } }; } -function rr(o) { +function _s(a) { let e; return { c() { - e = H(" /"); + e = V(" /"); }, l(t) { - e = j(t, " /"); + e = x(t, " /"); }, m(t, n) { - B(t, e, n); + T(t, e, n); }, d(t) { - t && A(e); + t && B(e); } }; } -function vi(o) { +function Ti(a) { let e = ( /*p*/ - o[40].desc + "" + a[40].desc + "" ), t; return { c() { - t = H(e); + t = V(e); }, l(n) { - t = j(n, e); + t = x(n, e); }, m(n, i) { - B(n, t, i); + T(n, t, i); }, p(n, i) { i[0] & /*progress*/ 128 && e !== (e = /*p*/ - n[40].desc + "") && fe(t, e); + n[40].desc + "") && Ae(t, e); }, d(n) { - n && A(t); + n && B(t); } }; } -function bi(o) { +function zi(a) { let e; return { c() { - e = H("-"); + e = V("-"); }, l(t) { - e = j(t, "-"); + e = x(t, "-"); }, m(t, n) { - B(t, e, n); + T(t, e, n); }, d(t) { - t && A(e); + t && B(e); } }; } -function Di(o) { +function Ii(a) { let e = (100 * /*progress_level*/ - (o[14][ + (a[14][ /*i*/ - o[42] + a[42] ] || 0)).toFixed(1) + "", t, n; return { c() { - t = H(e), n = H("%"); + t = V(e), n = V("%"); }, l(i) { - t = j(i, e), n = j(i, "%"); + t = x(i, e), n = x(i, "%"); }, - m(i, a) { - B(i, t, a), B(i, n, a); + m(i, l) { + T(i, t, l), T(i, n, l); }, - p(i, a) { - a[0] & /*progress_level*/ + p(i, l) { + l[0] & /*progress_level*/ 16384 && e !== (e = (100 * /*progress_level*/ (i[14][ /*i*/ i[42] - ] || 0)).toFixed(1) + "") && fe(t, e); + ] || 0)).toFixed(1) + "") && Ae(t, e); }, d(i) { - i && (A(t), A(n)); + i && (B(t), B(n)); } }; } -function yi(o) { +function Ri(a) { let e, t = ( /*p*/ - (o[40].desc != null || /*progress_level*/ - o[14] && /*progress_level*/ - o[14][ + (a[40].desc != null || /*progress_level*/ + a[14] && /*progress_level*/ + a[14][ /*i*/ - o[42] - ] != null) && gi(o) + a[42] + ] != null) && qi(a) ); return { c() { - t && t.c(), e = he(); + t && t.c(), e = Ee(); }, l(n) { - t && t.l(n), e = he(); + t && t.l(n), e = Ee(); }, m(n, i) { - t && t.m(n, i), B(n, e, i); + t && t.m(n, i), T(n, e, i); }, p(n, i) { /*p*/ @@ -6981,88 +6981,88 @@ function yi(o) { n[14][ /*i*/ n[42] - ] != null ? t ? t.p(n, i) : (t = gi(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null); + ] != null ? t ? t.p(n, i) : (t = qi(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null); }, d(n) { - n && A(e), t && t.d(n); + n && B(e), t && t.d(n); } }; } -function $i(o) { +function Li(a) { let e, t, n, i; - const a = ( + const l = ( /*#slots*/ - o[30]["additional-loading-text"] - ), l = zl( + a[30]["additional-loading-text"] + ), o = Gl( + l, a, - o, /*$$scope*/ - o[29], - ui + a[29], + ki ); return { c() { - e = Te("p"), t = H( + e = Ge("p"), t = V( /*loading_text*/ - o[9] - ), n = ce(), l && l.c(), this.h(); + a[9] + ), n = we(), o && o.c(), this.h(); }, - l(r) { - e = qe(r, "P", { class: !0 }); - var s = Be(e); - t = j( - s, + l(s) { + e = Ue(s, "P", { class: !0 }); + var r = Ve(e); + t = x( + r, /*loading_text*/ - o[9] - ), s.forEach(A), n = _e(r), l && l.l(r), this.h(); + a[9] + ), r.forEach(B), n = ye(s), o && o.l(s), this.h(); }, h() { - $e(e, "class", "loading svelte-17v219f"); + Re(e, "class", "loading svelte-17v219f"); }, - m(r, s) { - B(r, e, s), We(e, t), B(r, n, s), l && l.m(r, s), i = !0; + m(s, r) { + T(s, e, r), ut(e, t), T(s, n, r), o && o.m(s, r), i = !0; }, - p(r, s) { - (!i || s[0] & /*loading_text*/ - 512) && fe( + p(s, r) { + (!i || r[0] & /*loading_text*/ + 512) && Ae( t, /*loading_text*/ - r[9] - ), l && l.p && (!i || s[0] & /*$$scope*/ - 536870912) && Ml( + s[9] + ), o && o.p && (!i || r[0] & /*$$scope*/ + 536870912) && Ql( + o, l, - a, - r, + s, /*$$scope*/ - r[29], - i ? Ol( - a, + s[29], + i ? Wl( + l, /*$$scope*/ - r[29], - s, - Ka - ) : Ll( + s[29], + r, + es + ) : Yl( /*$$scope*/ - r[29] + s[29] ), - ui + ki ); }, - i(r) { - i || (ye(l, r), i = !0); + i(s) { + i || (Ie(o, s), i = !0); }, - o(r) { - xe(l, r), i = !1; + o(s) { + Ze(o, s), i = !1; }, - d(r) { - r && (A(e), A(n)), l && l.d(r); + d(s) { + s && (B(e), B(n)), o && o.d(s); } }; } -function sr(o) { - let e, t, n, i, a; - const l = [Ja, Qa], r = []; - function s(u, _) { +function cs(a) { + let e, t, n, i, l; + const o = [ns, ts], s = []; + function r(u, _) { return ( /*status*/ u[4] === "pending" ? 0 : ( @@ -7071,71 +7071,71 @@ function sr(o) { ) ); } - return ~(t = s(o)) && (n = r[t] = l[t](o)), { + return ~(t = r(a)) && (n = s[t] = o[t](a)), { c() { - e = Te("div"), n && n.c(), this.h(); + e = Ge("div"), n && n.c(), this.h(); }, l(u) { - e = qe(u, "DIV", { class: !0 }); - var _ = Be(e); - n && n.l(_), _.forEach(A), this.h(); + e = Ue(u, "DIV", { class: !0 }); + var _ = Ve(e); + n && n.l(_), _.forEach(B), this.h(); }, h() { - $e(e, "class", i = "wrap " + /*variant*/ - o[8] + " " + /*show_progress*/ - o[6] + " svelte-17v219f"), re(e, "hide", !/*status*/ - o[4] || /*status*/ - o[4] === "complete" || /*show_progress*/ - o[6] === "hidden" || /*status*/ - o[4] == "streaming"), re( + Re(e, "class", i = "wrap " + /*variant*/ + a[8] + " " + /*show_progress*/ + a[6] + " svelte-17v219f"), be(e, "hide", !/*status*/ + a[4] || /*status*/ + a[4] === "complete" || /*show_progress*/ + a[6] === "hidden" || /*status*/ + a[4] == "streaming"), be( e, "translucent", /*variant*/ - o[8] === "center" && /*status*/ - (o[4] === "pending" || /*status*/ - o[4] === "error") || /*translucent*/ - o[11] || /*show_progress*/ - o[6] === "minimal" - ), re( + a[8] === "center" && /*status*/ + (a[4] === "pending" || /*status*/ + a[4] === "error") || /*translucent*/ + a[11] || /*show_progress*/ + a[6] === "minimal" + ), be( e, "generating", /*status*/ - o[4] === "generating" && /*show_progress*/ - o[6] === "full" - ), re( + a[4] === "generating" && /*show_progress*/ + a[6] === "full" + ), be( e, "border", /*border*/ - o[12] - ), Ve( + a[12] + ), it( e, "position", /*absolute*/ - o[10] ? "absolute" : "static" - ), Ve( + a[10] ? "absolute" : "static" + ), it( e, "padding", /*absolute*/ - o[10] ? "0" : "var(--size-8) 0" + a[10] ? "0" : "var(--size-8) 0" ); }, m(u, _) { - B(u, e, _), ~t && r[t].m(e, null), o[33](e), a = !0; + T(u, e, _), ~t && s[t].m(e, null), a[33](e), l = !0; }, p(u, _) { - let c = t; - t = s(u), t === c ? ~t && r[t].p(u, _) : (n && (mn(), xe(r[c], 1, 1, () => { - r[c] = null; - }), pn()), ~t ? (n = r[t], n ? n.p(u, _) : (n = r[t] = l[t](u), n.c()), ye(n, 1), n.m(e, null)) : n = null), (!a || _[0] & /*variant, show_progress*/ + let d = t; + t = r(u), t === d ? ~t && s[t].p(u, _) : (n && (In(), Ze(s[d], 1, 1, () => { + s[d] = null; + }), zn()), ~t ? (n = s[t], n ? n.p(u, _) : (n = s[t] = o[t](u), n.c()), Ie(n, 1), n.m(e, null)) : n = null), (!l || _[0] & /*variant, show_progress*/ 320 && i !== (i = "wrap " + /*variant*/ u[8] + " " + /*show_progress*/ - u[6] + " svelte-17v219f")) && $e(e, "class", i), (!a || _[0] & /*variant, show_progress, status, show_progress*/ - 336) && re(e, "hide", !/*status*/ + u[6] + " svelte-17v219f")) && Re(e, "class", i), (!l || _[0] & /*variant, show_progress, status, show_progress*/ + 336) && be(e, "hide", !/*status*/ u[4] || /*status*/ u[4] === "complete" || /*show_progress*/ u[6] === "hidden" || /*status*/ - u[4] == "streaming"), (!a || _[0] & /*variant, show_progress, variant, status, translucent, show_progress*/ - 2384) && re( + u[4] == "streaming"), (!l || _[0] & /*variant, show_progress, variant, status, translucent, show_progress*/ + 2384) && be( e, "translucent", /*variant*/ @@ -7144,27 +7144,27 @@ function sr(o) { u[4] === "error") || /*translucent*/ u[11] || /*show_progress*/ u[6] === "minimal" - ), (!a || _[0] & /*variant, show_progress, status, show_progress*/ - 336) && re( + ), (!l || _[0] & /*variant, show_progress, status, show_progress*/ + 336) && be( e, "generating", /*status*/ u[4] === "generating" && /*show_progress*/ u[6] === "full" - ), (!a || _[0] & /*variant, show_progress, border*/ - 4416) && re( + ), (!l || _[0] & /*variant, show_progress, border*/ + 4416) && be( e, "border", /*border*/ u[12] ), _[0] & /*absolute*/ - 1024 && Ve( + 1024 && it( e, "position", /*absolute*/ u[10] ? "absolute" : "static" ), _[0] & /*absolute*/ - 1024 && Ve( + 1024 && it( e, "padding", /*absolute*/ @@ -7172,156 +7172,156 @@ function sr(o) { ); }, i(u) { - a || (ye(n), a = !0); + l || (Ie(n), l = !0); }, o(u) { - xe(n), a = !1; + Ze(n), l = !1; }, d(u) { - u && A(e), ~t && r[t].d(), o[33](null); + u && B(e), ~t && s[t].d(), a[33](null); } }; } -var ur = function(o, e, t, n) { - function i(a) { - return a instanceof t ? a : new t(function(l) { - l(a); +var ds = function(a, e, t, n) { + function i(l) { + return l instanceof t ? l : new t(function(o) { + o(l); }); } - return new (t || (t = Promise))(function(a, l) { - function r(_) { + return new (t || (t = Promise))(function(l, o) { + function s(_) { try { u(n.next(_)); - } catch (c) { - l(c); + } catch (d) { + o(d); } } - function s(_) { + function r(_) { try { u(n.throw(_)); - } catch (c) { - l(c); + } catch (d) { + o(d); } } function u(_) { - _.done ? a(_.value) : i(_.value).then(r, s); + _.done ? l(_.value) : i(_.value).then(s, r); } - u((n = n.apply(o, e || [])).next()); + u((n = n.apply(a, e || [])).next()); }); }; -let Pt = [], rn = !1; -const _r = typeof window < "u", Nl = _r ? window.requestAnimationFrame : (o) => { +let an = [], $n = !1; +const fs = typeof window < "u", Jl = fs ? window.requestAnimationFrame : (a) => { }; -function cr(o) { - return ur(this, arguments, void 0, function* (e, t = !0) { +function hs(a) { + return ds(this, arguments, void 0, function* (e, t = !0) { if (!(window.__gradio_mode__ === "website" || window.__gradio_mode__ !== "app" && t !== !0)) { - if (Pt.push(e), !rn) rn = !0; + if (an.push(e), !$n) $n = !0; else return; - yield Za(), Nl(() => { + yield Wo(), Jl(() => { let n = [0, 0]; - for (let i = 0; i < Pt.length; i++) { - const l = Pt[i].getBoundingClientRect(); - (i === 0 || l.top + window.scrollY <= n[0]) && (n[0] = l.top + window.scrollY, n[1] = i); + for (let i = 0; i < an.length; i++) { + const o = an[i].getBoundingClientRect(); + (i === 0 || o.top + window.scrollY <= n[0]) && (n[0] = o.top + window.scrollY, n[1] = i); } - window.scrollTo({ top: n[0] - 20, behavior: "smooth" }), rn = !1, Pt = []; + window.scrollTo({ top: n[0] - 20, behavior: "smooth" }), $n = !1, an = []; }); } }); } -function dr(o, e, t) { - let n, { $$slots: i = {}, $$scope: a } = e; - const l = Ya(); - let { i18n: r } = e, { eta: s = null } = e, { queue_position: u } = e, { queue_size: _ } = e, { status: c } = e, { scroll_to_output: d = !1 } = e, { timer: f = !0 } = e, { show_progress: g = "full" } = e, { message: m = null } = e, { progress: v = null } = e, { variant: F = "default" } = e, { loading_text: p = "Loading..." } = e, { absolute: h = !0 } = e, { translucent: b = !1 } = e, { border: y = !1 } = e, { autoscroll: D } = e, $, S = !1, k = 0, q = 0, C = null, O = null, Xe = 0, ne = null, Fe, te = null, Me = !0; - const V = () => { - t(0, s = t(27, C = t(19, w = null))), t(25, k = performance.now()), t(26, q = 0), S = !0, J(); +function ps(a, e, t) { + let n, { $$slots: i = {}, $$scope: l } = e; + const o = Qo(); + let { i18n: s } = e, { eta: r = null } = e, { queue_position: u } = e, { queue_size: _ } = e, { status: d } = e, { scroll_to_output: c = !1 } = e, { timer: h = !0 } = e, { show_progress: g = "full" } = e, { message: p = null } = e, { progress: D = null } = e, { variant: k = "default" } = e, { loading_text: m = "Loading..." } = e, { absolute: f = !0 } = e, { translucent: v = !1 } = e, { border: y = !1 } = e, { autoscroll: b } = e, F, A = !1, E = 0, q = 0, w = null, $ = null, ge = 0, _e = null, Me, ue = null, nt = !0; + const Z = () => { + t(0, r = t(27, w = t(19, C = null))), t(25, E = performance.now()), t(26, q = 0), A = !0, se(); }; - function J() { - Nl(() => { - t(26, q = (performance.now() - k) / 1e3), S && J(); + function se() { + Jl(() => { + t(26, q = (performance.now() - E) / 1e3), A && se(); }); } - function pe() { - t(26, q = 0), t(0, s = t(27, C = t(19, w = null))), S && (S = !1); + function Se() { + t(26, q = 0), t(0, r = t(27, w = t(19, C = null))), A && (A = !1); } - Xa(() => { - S && pe(); + Ko(() => { + A && Se(); }); - let w = null; - function Z(E) { - ri[E ? "unshift" : "push"](() => { - te = E, t(16, te), t(7, v), t(14, ne), t(15, Fe); + let C = null; + function ee(S) { + yi[S ? "unshift" : "push"](() => { + ue = S, t(16, ue), t(7, D), t(14, _e), t(15, Me); }); } - const it = () => { - l("clear_status"); + const pt = () => { + o("clear_status"); }; - function ie(E) { - ri[E ? "unshift" : "push"](() => { - $ = E, t(13, $); + function ce(S) { + yi[S ? "unshift" : "push"](() => { + F = S, t(13, F); }); } - return o.$$set = (E) => { - "i18n" in E && t(1, r = E.i18n), "eta" in E && t(0, s = E.eta), "queue_position" in E && t(2, u = E.queue_position), "queue_size" in E && t(3, _ = E.queue_size), "status" in E && t(4, c = E.status), "scroll_to_output" in E && t(22, d = E.scroll_to_output), "timer" in E && t(5, f = E.timer), "show_progress" in E && t(6, g = E.show_progress), "message" in E && t(23, m = E.message), "progress" in E && t(7, v = E.progress), "variant" in E && t(8, F = E.variant), "loading_text" in E && t(9, p = E.loading_text), "absolute" in E && t(10, h = E.absolute), "translucent" in E && t(11, b = E.translucent), "border" in E && t(12, y = E.border), "autoscroll" in E && t(24, D = E.autoscroll), "$$scope" in E && t(29, a = E.$$scope); - }, o.$$.update = () => { - o.$$.dirty[0] & /*eta, old_eta, timer_start, eta_from_start*/ - 436207617 && (s === null && t(0, s = C), s != null && C !== s && (t(28, O = (performance.now() - k) / 1e3 + s), t(19, w = O.toFixed(1)), t(27, C = s))), o.$$.dirty[0] & /*eta_from_start, timer_diff*/ - 335544320 && t(17, Xe = O === null || O <= 0 || !q ? null : Math.min(q / O, 1)), o.$$.dirty[0] & /*progress*/ - 128 && v != null && t(18, Me = !1), o.$$.dirty[0] & /*progress, progress_level, progress_bar, last_progress_level*/ - 114816 && (v != null ? t(14, ne = v.map((E) => { - if (E.index != null && E.length != null) - return E.index / E.length; - if (E.progress != null) - return E.progress; - })) : t(14, ne = null), ne ? (t(15, Fe = ne[ne.length - 1]), te && (Fe === 0 ? t(16, te.style.transition = "0", te) : t(16, te.style.transition = "150ms", te))) : t(15, Fe = void 0)), o.$$.dirty[0] & /*status*/ - 16 && (c === "pending" ? V() : pe()), o.$$.dirty[0] & /*el, scroll_to_output, status, autoscroll*/ - 20979728 && $ && d && (c === "pending" || c === "complete") && cr($, D), o.$$.dirty[0] & /*status, message*/ - 8388624, o.$$.dirty[0] & /*timer_diff*/ + return a.$$set = (S) => { + "i18n" in S && t(1, s = S.i18n), "eta" in S && t(0, r = S.eta), "queue_position" in S && t(2, u = S.queue_position), "queue_size" in S && t(3, _ = S.queue_size), "status" in S && t(4, d = S.status), "scroll_to_output" in S && t(22, c = S.scroll_to_output), "timer" in S && t(5, h = S.timer), "show_progress" in S && t(6, g = S.show_progress), "message" in S && t(23, p = S.message), "progress" in S && t(7, D = S.progress), "variant" in S && t(8, k = S.variant), "loading_text" in S && t(9, m = S.loading_text), "absolute" in S && t(10, f = S.absolute), "translucent" in S && t(11, v = S.translucent), "border" in S && t(12, y = S.border), "autoscroll" in S && t(24, b = S.autoscroll), "$$scope" in S && t(29, l = S.$$scope); + }, a.$$.update = () => { + a.$$.dirty[0] & /*eta, old_eta, timer_start, eta_from_start*/ + 436207617 && (r === null && t(0, r = w), r != null && w !== r && (t(28, $ = (performance.now() - E) / 1e3 + r), t(19, C = $.toFixed(1)), t(27, w = r))), a.$$.dirty[0] & /*eta_from_start, timer_diff*/ + 335544320 && t(17, ge = $ === null || $ <= 0 || !q ? null : Math.min(q / $, 1)), a.$$.dirty[0] & /*progress*/ + 128 && D != null && t(18, nt = !1), a.$$.dirty[0] & /*progress, progress_level, progress_bar, last_progress_level*/ + 114816 && (D != null ? t(14, _e = D.map((S) => { + if (S.index != null && S.length != null) + return S.index / S.length; + if (S.progress != null) + return S.progress; + })) : t(14, _e = null), _e ? (t(15, Me = _e[_e.length - 1]), ue && (Me === 0 ? t(16, ue.style.transition = "0", ue) : t(16, ue.style.transition = "150ms", ue))) : t(15, Me = void 0)), a.$$.dirty[0] & /*status*/ + 16 && (d === "pending" ? Z() : Se()), a.$$.dirty[0] & /*el, scroll_to_output, status, autoscroll*/ + 20979728 && F && c && (d === "pending" || d === "complete") && hs(F, b), a.$$.dirty[0] & /*status, message*/ + 8388624, a.$$.dirty[0] & /*timer_diff*/ 67108864 && t(20, n = q.toFixed(1)); }, [ - s, r, + s, u, _, - c, - f, + d, + h, g, + D, + k, + m, + f, v, + y, F, + _e, + Me, + ue, + ge, + nt, + C, + n, + o, + c, p, - h, b, - y, - $, - ne, - Fe, - te, - Xe, - Me, + E, + q, w, - n, + $, l, - d, - m, - D, - k, - q, - C, - O, - a, i, - Z, - it, - ie + ee, + pt, + ce ]; } -class hr extends Va { +class ms extends Zo { constructor(e) { - super(), Ua( + super(), Xo( this, e, - dr, - sr, - Ga, + ps, + cs, + Yo, { i18n: 1, eta: 0, @@ -7346,951 +7346,1584 @@ class hr extends Va { } } const { - HtmlTagHydration: JF, - SvelteComponent: ek, - add_render_callback: tk, - append_hydration: nk, - attr: ik, - bubble: lk, - check_outros: ok, - children: ak, - claim_component: rk, - claim_element: sk, - claim_html_tag: uk, - claim_space: _k, - claim_text: ck, - create_component: dk, - create_in_transition: hk, - create_out_transition: fk, - destroy_component: pk, - detach: mk, - element: gk, - get_svelte_dataset: vk, - group_outros: bk, - init: Dk, - insert_hydration: yk, - listen: $k, - mount_component: wk, - run_all: Fk, - safe_not_equal: kk, - set_data: Ck, - space: Ek, - stop_propagation: Ak, - text: Sk, - toggle_class: Bk, - transition_in: qk, - transition_out: Tk -} = window.__gradio__svelte__internal, { createEventDispatcher: xk, onMount: zk } = window.__gradio__svelte__internal, { - SvelteComponent: Ik, - append_hydration: Rk, - attr: Lk, - bubble: Ok, - check_outros: Pk, - children: Mk, - claim_component: Nk, - claim_element: jk, - claim_space: Hk, - create_animation: Vk, - create_component: Uk, - destroy_component: Gk, - detach: Zk, - element: Xk, - ensure_array_like: Yk, - fix_and_outro_and_destroy_block: Wk, - fix_position: Kk, - group_outros: Qk, - init: Jk, - insert_hydration: eC, - mount_component: tC, - noop: nC, - safe_not_equal: iC, - set_style: lC, - space: oC, - transition_in: aC, - transition_out: rC, - update_keyed_each: sC + HtmlTagHydration: c$, + SvelteComponent: d$, + add_render_callback: f$, + append_hydration: h$, + attr: p$, + bubble: m$, + check_outros: g$, + children: v$, + claim_component: b$, + claim_element: D$, + claim_html_tag: y$, + claim_space: w$, + claim_text: k$, + create_component: F$, + create_in_transition: $$, + create_out_transition: C$, + destroy_component: E$, + detach: A$, + element: S$, + get_svelte_dataset: B$, + group_outros: q$, + init: T$, + insert_hydration: z$, + listen: I$, + mount_component: R$, + run_all: L$, + safe_not_equal: O$, + set_data: P$, + space: M$, + stop_propagation: N$, + text: j$, + toggle_class: H$, + transition_in: x$, + transition_out: V$ +} = window.__gradio__svelte__internal, { createEventDispatcher: U$, onMount: G$ } = window.__gradio__svelte__internal, { + SvelteComponent: Z$, + append_hydration: X$, + attr: Y$, + bubble: W$, + check_outros: K$, + children: Q$, + claim_component: J$, + claim_element: e4, + claim_space: t4, + create_animation: n4, + create_component: i4, + destroy_component: l4, + detach: a4, + element: o4, + ensure_array_like: s4, + fix_and_outro_and_destroy_block: r4, + fix_position: u4, + group_outros: _4, + init: c4, + insert_hydration: d4, + mount_component: f4, + noop: h4, + safe_not_equal: p4, + set_style: m4, + space: g4, + transition_in: v4, + transition_out: b4, + update_keyed_each: D4 } = window.__gradio__svelte__internal, { - SvelteComponent: uC, - attr: _C, - children: cC, - claim_element: dC, - detach: hC, - element: fC, - empty: pC, - init: mC, - insert_hydration: gC, - noop: vC, - safe_not_equal: bC, - set_style: DC + SvelteComponent: y4, + attr: w4, + children: k4, + claim_element: F4, + detach: $4, + element: C4, + empty: E4, + init: A4, + insert_hydration: S4, + noop: B4, + safe_not_equal: q4, + set_style: T4 } = window.__gradio__svelte__internal, { - SvelteComponent: fr, - append_hydration: pt, - attr: Ie, - children: wt, - claim_element: Ft, - claim_space: wi, - claim_text: jl, - destroy_each: pr, - detach: Le, - element: kt, - ensure_array_like: Fi, - init: mr, - insert_hydration: Yt, - noop: ki, - safe_not_equal: gr, - set_data: Hl, - set_style: Mt, - space: Ci, - text: Vl, - toggle_class: Ei + SvelteComponent: gs, + append_hydration: De, + attr: Y, + children: Ye, + claim_element: We, + claim_space: It, + claim_text: Rt, + destroy_each: vs, + detach: Q, + element: Ke, + empty: Oi, + ensure_array_like: Pi, + init: bs, + insert_hydration: lt, + noop: Mi, + safe_not_equal: Ds, + set_data: Lt, + set_style: on, + space: Ot, + text: Pt, + toggle_class: ke } = window.__gradio__svelte__internal; -function Ai(o, e, t) { - const n = o.slice(); - return n[13] = e[t], n; +function Ni(a, e, t) { + const n = a.slice(); + return n[19] = e[t], n; } -function Si(o) { - let e, t = Fi( +function ji(a) { + let e, t = Pi( /*display_items*/ - o[5] + a[11] ), n = []; for (let i = 0; i < t.length; i += 1) - n[i] = qi(Ai(o, t, i)); + n[i] = xi(Ni(a, t, i)); return { c() { - e = kt("div"); + e = Ke("div"); for (let i = 0; i < n.length; i += 1) n[i].c(); this.h(); }, l(i) { - e = Ft(i, "DIV", { class: !0 }); - var a = wt(e); - for (let l = 0; l < n.length; l += 1) - n[l].l(a); - a.forEach(Le), this.h(); + e = We(i, "DIV", { class: !0 }); + var l = Ye(e); + for (let o = 0; o < n.length; o += 1) + n[o].l(l); + l.forEach(Q), this.h(); }, h() { - Ie(e, "class", "credits-container svelte-141h5y1"); + Y(e, "class", "credits-container svelte-1t8lt48"); }, - m(i, a) { - Yt(i, e, a); - for (let l = 0; l < n.length; l += 1) - n[l] && n[l].m(e, null); + m(i, l) { + lt(i, e, l); + for (let o = 0; o < n.length; o += 1) + n[o] && n[o].m(e, null); }, - p(i, a) { - if (a & /*display_items, name_style, title_style*/ - 56) { - t = Fi( + p(i, l) { + if (l & /*section_title_style, section_title_uppercase, display_items, swap_font_sizes_on_two_column, title_style, name_style, name_uppercase, title_uppercase, layout_style*/ + 3964) { + t = Pi( /*display_items*/ - i[5] + i[11] ); - let l; - for (l = 0; l < t.length; l += 1) { - const r = Ai(i, t, l); - n[l] ? n[l].p(r, a) : (n[l] = qi(r), n[l].c(), n[l].m(e, null)); + let o; + for (o = 0; o < t.length; o += 1) { + const s = Ni(i, t, o); + n[o] ? n[o].p(s, l) : (n[o] = xi(s), n[o].c(), n[o].m(e, null)); } - for (; l < n.length; l += 1) - n[l].d(1); + for (; o < n.length; o += 1) + n[o].d(1); n.length = t.length; } }, d(i) { - i && Le(e), pr(n, i); + i && Q(e), vs(n, i); } }; } -function Bi(o) { - let e, t = ( +function ys(a) { + let e, t, n = ( /*item*/ - o[13].name + "" - ), n, i; - return { + a[19].title + "" + ), i, l, o, s, r = ( + /*item*/ + a[19].name && Hi(a) + ); + return { c() { - e = kt("p"), n = Vl(t), this.h(); + e = Ke("div"), t = Ke("h2"), i = Pt(n), o = Ot(), r && r.c(), s = Ot(), this.h(); }, - l(a) { - e = Ft(a, "P", { style: !0, class: !0 }); - var l = wt(e); - n = jl(l, t), l.forEach(Le), this.h(); + l(u) { + e = We(u, "DIV", { class: !0 }); + var _ = Ye(e); + t = We(_, "H2", { style: !0, class: !0 }); + var d = Ye(t); + i = Rt(d, n), d.forEach(Q), o = It(_), r && r.l(_), s = It(_), _.forEach(Q), this.h(); }, h() { - Ie(e, "style", i = /*name_style*/ - o[3]( + Y(t, "style", l = /*title_style*/ + a[10]( + /*item*/ + a[19].is_intro + )), Y(t, "class", "svelte-1t8lt48"), ke( + t, + "uppercase", + /*title_uppercase*/ + a[3] && !/*item*/ + a[19].is_intro + ), Y(e, "class", "credit svelte-1t8lt48"), ke( + e, + "intro-block", + /*item*/ + a[19].is_intro + ); + }, + m(u, _) { + lt(u, e, _), De(e, t), De(t, i), De(e, o), r && r.m(e, null), De(e, s); + }, + p(u, _) { + _ & /*display_items*/ + 2048 && n !== (n = /*item*/ + u[19].title + "") && Lt(i, n), _ & /*title_style, display_items*/ + 3072 && l !== (l = /*title_style*/ + u[10]( /*item*/ - o[13].is_intro - )), Ie(e, "class", "svelte-141h5y1"); - }, - m(a, l) { - Yt(a, e, l), pt(e, n); - }, - p(a, l) { - l & /*display_items*/ - 32 && t !== (t = /*item*/ - a[13].name + "") && Hl(n, t), l & /*name_style, display_items*/ - 40 && i !== (i = /*name_style*/ - a[3]( + u[19].is_intro + )) && Y(t, "style", l), _ & /*title_uppercase, display_items*/ + 2056 && ke( + t, + "uppercase", + /*title_uppercase*/ + u[3] && !/*item*/ + u[19].is_intro + ), /*item*/ + u[19].name ? r ? r.p(u, _) : (r = Hi(u), r.c(), r.m(e, s)) : r && (r.d(1), r = null), _ & /*display_items*/ + 2048 && ke( + e, + "intro-block", /*item*/ - a[13].is_intro - )) && Ie(e, "style", i); + u[19].is_intro + ); }, - d(a) { - a && Le(e); + d(u) { + u && Q(e), r && r.d(); } }; } -function qi(o) { +function ws(a) { let e, t, n = ( /*item*/ - o[13].title + "" - ), i, a, l, r, s = ( + a[19].title + "" + ), i, l, o, s, r = ( /*item*/ - o[13].name && Bi(o) - ); + a[19].name + "" + ), u, _, d; return { c() { - e = kt("div"), t = kt("h2"), i = Vl(n), l = Ci(), s && s.c(), r = Ci(), this.h(); + e = Ke("div"), t = Ke("div"), i = Pt(n), o = Ot(), s = Ke("div"), u = Pt(r), d = Ot(), this.h(); }, - l(u) { - e = Ft(u, "DIV", { class: !0 }); - var _ = wt(e); - t = Ft(_, "H2", { style: !0, class: !0 }); - var c = wt(t); - i = jl(c, n), c.forEach(Le), l = wi(_), s && s.l(_), r = wi(_), _.forEach(Le), this.h(); + l(c) { + e = We(c, "DIV", { class: !0 }); + var h = Ye(e); + t = We(h, "DIV", { class: !0, style: !0 }); + var g = Ye(t); + i = Rt(g, n), g.forEach(Q), o = It(h), s = We(h, "DIV", { class: !0, style: !0 }); + var p = Ye(s); + u = Rt(p, r), p.forEach(Q), d = It(h), h.forEach(Q), this.h(); }, h() { - Ie(t, "style", a = /*title_style*/ - o[4]( - /*item*/ - o[13].is_intro - )), Ie(t, "class", "svelte-141h5y1"), Ie(e, "class", "credit svelte-141h5y1"), Ei( + Y(t, "class", "title svelte-1t8lt48"), Y(t, "style", l = /*swap_font_sizes_on_two_column*/ + a[6] ? ( + /*name_style*/ + a[9](!1) + ) : ( + /*title_style*/ + a[10](!1) + )), ke( + t, + "uppercase", + /*title_uppercase*/ + a[3] + ), Y(s, "class", "name svelte-1t8lt48"), Y(s, "style", _ = /*swap_font_sizes_on_two_column*/ + a[6] ? ( + /*title_style*/ + a[10](!1) + ) : ( + /*name_style*/ + a[9](!1) + )), ke( + s, + "uppercase", + /*name_uppercase*/ + a[4] + ), Y(e, "class", "credit-two-column svelte-1t8lt48"); + }, + m(c, h) { + lt(c, e, h), De(e, t), De(t, i), De(e, o), De(e, s), De(s, u), De(e, d); + }, + p(c, h) { + h & /*display_items*/ + 2048 && n !== (n = /*item*/ + c[19].title + "") && Lt(i, n), h & /*swap_font_sizes_on_two_column, name_style, title_style*/ + 1600 && l !== (l = /*swap_font_sizes_on_two_column*/ + c[6] ? ( + /*name_style*/ + c[9](!1) + ) : ( + /*title_style*/ + c[10](!1) + )) && Y(t, "style", l), h & /*title_uppercase*/ + 8 && ke( + t, + "uppercase", + /*title_uppercase*/ + c[3] + ), h & /*display_items*/ + 2048 && r !== (r = /*item*/ + c[19].name + "") && Lt(u, r), h & /*swap_font_sizes_on_two_column, title_style, name_style*/ + 1600 && _ !== (_ = /*swap_font_sizes_on_two_column*/ + c[6] ? ( + /*title_style*/ + c[10](!1) + ) : ( + /*name_style*/ + c[9](!1) + )) && Y(s, "style", _), h & /*name_uppercase*/ + 16 && ke( + s, + "uppercase", + /*name_uppercase*/ + c[4] + ); + }, + d(c) { + c && Q(e); + } + }; +} +function ks(a) { + let e, t = ( + /*item*/ + a[19].section_title + "" + ), n, i; + return { + c() { + e = Ke("div"), n = Pt(t), i = Ot(), this.h(); + }, + l(l) { + e = We(l, "DIV", { class: !0, style: !0 }); + var o = Ye(e); + n = Rt(o, t), o.forEach(Q), i = It(l), this.h(); + }, + h() { + Y(e, "class", "section-title svelte-1t8lt48"), Y( e, - "intro-block", - /*item*/ - o[13].is_intro + "style", + /*section_title_style*/ + a[8] + ), ke( + e, + "uppercase", + /*section_title_uppercase*/ + a[5] ); }, - m(u, _) { - Yt(u, e, _), pt(e, t), pt(t, i), pt(e, l), s && s.m(e, null), pt(e, r); + m(l, o) { + lt(l, e, o), De(e, n), lt(l, i, o); }, - p(u, _) { - _ & /*display_items*/ - 32 && n !== (n = /*item*/ - u[13].title + "") && Hl(i, n), _ & /*title_style, display_items*/ - 48 && a !== (a = /*title_style*/ - u[4]( + p(l, o) { + o & /*display_items*/ + 2048 && t !== (t = /*item*/ + l[19].section_title + "") && Lt(n, t), o & /*section_title_style*/ + 256 && Y( + e, + "style", + /*section_title_style*/ + l[8] + ), o & /*section_title_uppercase*/ + 32 && ke( + e, + "uppercase", + /*section_title_uppercase*/ + l[5] + ); + }, + d(l) { + l && (Q(e), Q(i)); + } + }; +} +function Hi(a) { + let e, t = ( + /*item*/ + a[19].name + "" + ), n, i; + return { + c() { + e = Ke("p"), n = Pt(t), this.h(); + }, + l(l) { + e = We(l, "P", { style: !0, class: !0 }); + var o = Ye(e); + n = Rt(o, t), o.forEach(Q), this.h(); + }, + h() { + Y(e, "style", i = /*name_style*/ + a[9]( /*item*/ - u[13].is_intro - )) && Ie(t, "style", a), /*item*/ - u[13].name ? s ? s.p(u, _) : (s = Bi(u), s.c(), s.m(e, r)) : s && (s.d(1), s = null), _ & /*display_items*/ - 32 && Ei( + a[19].is_intro + )), Y(e, "class", "svelte-1t8lt48"), ke( e, - "intro-block", + "uppercase", + /*name_uppercase*/ + a[4] && !/*item*/ + a[19].is_intro + ); + }, + m(l, o) { + lt(l, e, o), De(e, n); + }, + p(l, o) { + o & /*display_items*/ + 2048 && t !== (t = /*item*/ + l[19].name + "") && Lt(n, t), o & /*name_style, display_items*/ + 2560 && i !== (i = /*name_style*/ + l[9]( /*item*/ - u[13].is_intro + l[19].is_intro + )) && Y(e, "style", i), o & /*name_uppercase, display_items*/ + 2064 && ke( + e, + "uppercase", + /*name_uppercase*/ + l[4] && !/*item*/ + l[19].is_intro ); }, - d(u) { - u && Le(e), s && s.d(); + d(l) { + l && Q(e); } }; } -function vr(o) { +function xi(a) { + let e; + function t(l, o) { + return ( + /*item*/ + l[19].section_title ? ks : ( + /*layout_style*/ + l[2] === "two-column" && !/*item*/ + l[19].is_intro ? ws : ys + ) + ); + } + let n = t(a), i = n(a); + return { + c() { + i.c(), e = Oi(); + }, + l(l) { + i.l(l), e = Oi(); + }, + m(l, o) { + i.m(l, o), lt(l, e, o); + }, + p(l, o) { + n === (n = t(l)) && i ? i.p(l, o) : (i.d(1), i = n(l), i && (i.c(), i.m(e.parentNode, e))); + }, + d(l) { + l && Q(e), i.d(l); + } + }; +} +function Fs(a) { let e, t = `${/*speed*/ - o[0]}s`, n = !/*reset*/ - o[2] && Si(o); + a[0]}s`, n = !/*reset*/ + a[7] && ji(a); return { c() { - e = kt("div"), n && n.c(), this.h(); + e = Ke("div"), n && n.c(), this.h(); }, l(i) { - e = Ft(i, "DIV", { class: !0 }); - var a = wt(e); - n && n.l(a), a.forEach(Le), this.h(); + e = We(i, "DIV", { class: !0 }); + var l = Ye(e); + n && n.l(l), l.forEach(Q), this.h(); }, h() { - Ie(e, "class", "wrapper svelte-141h5y1"), Mt(e, "--animation-duration", t), Mt( + Y(e, "class", "wrapper svelte-1t8lt48"), on(e, "--animation-duration", t), on( e, "background", /*background_color*/ - o[1] || "black" + a[1] || "black" ); }, - m(i, a) { - Yt(i, e, a), n && n.m(e, null); + m(i, l) { + lt(i, e, l), n && n.m(e, null); }, - p(i, [a]) { + p(i, [l]) { /*reset*/ - i[2] ? n && (n.d(1), n = null) : n ? n.p(i, a) : (n = Si(i), n.c(), n.m(e, null)), a & /*speed*/ + i[7] ? n && (n.d(1), n = null) : n ? n.p(i, l) : (n = ji(i), n.c(), n.m(e, null)), l & /*speed*/ 1 && t !== (t = `${/*speed*/ - i[0]}s`) && Mt(e, "--animation-duration", t), a & /*background_color*/ - 2 && Mt( + i[0]}s`) && on(e, "--animation-duration", t), l & /*background_color*/ + 2 && on( e, "background", /*background_color*/ i[1] || "black" ); }, - i: ki, - o: ki, + i: Mi, + o: Mi, d(i) { - i && Le(e), n && n.d(); + i && Q(e), n && n.d(); } }; } -function br(o, e, t) { - let n, i, a, { credits: l } = e, { speed: r } = e, { base_font_size: s = 1.5 } = e, { background_color: u = null } = e, { title_color: _ = null } = e, { name_color: c = null } = e, { intro_title: d = null } = e, { intro_subtitle: f = null } = e, g = !1; - function m() { - t(2, g = !0), setTimeout(() => t(2, g = !1), 0); - } - return o.$$set = (v) => { - "credits" in v && t(6, l = v.credits), "speed" in v && t(0, r = v.speed), "base_font_size" in v && t(7, s = v.base_font_size), "background_color" in v && t(1, u = v.background_color), "title_color" in v && t(8, _ = v.title_color), "name_color" in v && t(9, c = v.name_color), "intro_title" in v && t(10, d = v.intro_title), "intro_subtitle" in v && t(11, f = v.intro_subtitle); - }, o.$$.update = () => { - o.$$.dirty & /*intro_title, intro_subtitle, credits*/ - 3136 && t(5, n = (() => { - const v = []; - return (d || f) && v.push({ - title: d || "", - name: f || "", +function $s(a, e, t) { + let n, i, l, o, { credits: s } = e, { speed: r } = e, { base_font_size: u = 1.5 } = e, { background_color: _ = null } = e, { title_color: d = null } = e, { name_color: c = null } = e, { intro_title: h = null } = e, { intro_subtitle: g = null } = e, { layout_style: p = "stacked" } = e, { title_uppercase: D = !1 } = e, { name_uppercase: k = !1 } = e, { section_title_uppercase: m = !0 } = e, { swap_font_sizes_on_two_column: f = !1 } = e, v = !1; + function y() { + t(7, v = !0), setTimeout(() => t(7, v = !1), 0); + } + return a.$$set = (b) => { + "credits" in b && t(12, s = b.credits), "speed" in b && t(0, r = b.speed), "base_font_size" in b && t(13, u = b.base_font_size), "background_color" in b && t(1, _ = b.background_color), "title_color" in b && t(14, d = b.title_color), "name_color" in b && t(15, c = b.name_color), "intro_title" in b && t(16, h = b.intro_title), "intro_subtitle" in b && t(17, g = b.intro_subtitle), "layout_style" in b && t(2, p = b.layout_style), "title_uppercase" in b && t(3, D = b.title_uppercase), "name_uppercase" in b && t(4, k = b.name_uppercase), "section_title_uppercase" in b && t(5, m = b.section_title_uppercase), "swap_font_sizes_on_two_column" in b && t(6, f = b.swap_font_sizes_on_two_column); + }, a.$$.update = () => { + a.$$.dirty & /*intro_title, intro_subtitle, credits*/ + 200704 && t(11, n = (() => { + const b = []; + return (h || g) && b.push({ + title: h || "", + name: g || "", is_intro: !0 }), [ - ...v, - ...l.map((F) => Object.assign(Object.assign({}, F), { is_intro: !1 })) + ...b, + ...s.map((F) => Object.assign(Object.assign({}, F), { is_intro: !1 })) ]; - })()), o.$$.dirty & /*title_color, base_font_size*/ - 384 && t(4, i = (v) => `color: ${_ || "white"}; font-size: ${v ? s * 1.5 : s}rem;`), o.$$.dirty & /*name_color, base_font_size*/ - 640 && t(3, a = (v) => `color: ${c || "white"}; font-size: ${v ? s * 0.9 : s * 0.8}rem;`), o.$$.dirty & /*credits, speed*/ - 65 && m(); + })()), a.$$.dirty & /*title_color, base_font_size*/ + 24576 && t(10, i = (b) => `color: ${d || "white"}; font-size: ${b ? u * 1.5 : u}rem;`), a.$$.dirty & /*name_color, base_font_size*/ + 40960 && t(9, l = (b) => `color: ${c || "white"}; font-size: ${b ? u * 0.9 : u * 0.8}rem;`), a.$$.dirty & /*title_color, base_font_size*/ + 24576 && t(8, o = `color: ${d || "white"}; font-size: ${u * 1.2}rem;`), a.$$.dirty & /*credits, speed*/ + 4097 && y(); }, [ r, - u, - g, - a, + _, + p, + D, + k, + m, + f, + v, + o, + l, i, n, - l, s, - _, - c, + u, d, - f + c, + h, + g ]; } -class Dr extends fr { +class Cs extends gs { constructor(e) { - super(), mr(this, e, br, vr, gr, { - credits: 6, + super(), bs(this, e, $s, Fs, Ds, { + credits: 12, speed: 0, - base_font_size: 7, + base_font_size: 13, background_color: 1, - title_color: 8, - name_color: 9, - intro_title: 10, - intro_subtitle: 11 + title_color: 14, + name_color: 15, + intro_title: 16, + intro_subtitle: 17, + layout_style: 2, + title_uppercase: 3, + name_uppercase: 4, + section_title_uppercase: 5, + swap_font_sizes_on_two_column: 6 }); } } const { - SvelteComponent: yr, - append_hydration: se, - attr: ue, - binding_callbacks: $r, - children: Ne, - claim_element: je, - claim_space: Dt, - claim_text: Ul, - destroy_each: wr, - detach: De, - element: He, - ensure_array_like: Ti, - init: Fr, - insert_hydration: qn, - noop: xi, - safe_not_equal: kr, - set_data: Gl, - set_style: Ye, - space: yt, - text: Zl, - toggle_class: zi -} = window.__gradio__svelte__internal, { onMount: Cr, onDestroy: Er } = window.__gradio__svelte__internal; -function Ii(o, e, t) { - const n = o.slice(); - return n[18] = e[t], n; -} -function Ri(o) { - let e, t = ( + SvelteComponent: Es, + append_hydration: U, + attr: j, + binding_callbacks: As, + children: he, + claim_element: pe, + claim_space: Qe, + claim_text: Mt, + destroy_each: Ss, + detach: X, + element: me, + empty: Vi, + ensure_array_like: Ui, + init: Bs, + insert_hydration: ct, + noop: Gi, + safe_not_equal: qs, + set_data: Nt, + set_style: rt, + space: Je, + text: jt, + toggle_class: Fe +} = window.__gradio__svelte__internal, { onMount: Ts, onDestroy: zs } = window.__gradio__svelte__internal; +function Zi(a, e, t) { + const n = a.slice(); + return n[24] = e[t], n; +} +function Is(a) { + let e, t, n = ( /*item*/ - o[18].name + "" - ), n, i; + a[24].title + "" + ), i, l, o, s, r = ( + /*item*/ + a[24].name && Xi(a) + ); return { c() { - e = He("p"), n = Zl(t), this.h(); + e = me("div"), t = me("h2"), i = jt(n), o = Je(), r && r.c(), s = Je(), this.h(); }, - l(a) { - e = je(a, "P", { style: !0, class: !0 }); - var l = Ne(e); - n = Ul(l, t), l.forEach(De), this.h(); + l(u) { + e = pe(u, "DIV", { class: !0 }); + var _ = he(e); + t = pe(_, "H2", { style: !0, class: !0 }); + var d = he(t); + i = Mt(d, n), d.forEach(X), o = Qe(_), r && r.l(_), s = Qe(_), _.forEach(X), this.h(); }, h() { - ue(e, "style", i = /*name_style*/ - o[4]( + j(t, "style", l = /*title_style*/ + a[11]( + /*item*/ + a[24].is_intro + )), j(t, "class", "svelte-upsott"), Fe( + t, + "uppercase", + /*title_uppercase*/ + a[3] && !/*item*/ + a[24].is_intro + ), j(e, "class", "credit svelte-upsott"), Fe( + e, + "intro-block", + /*item*/ + a[24].is_intro + ); + }, + m(u, _) { + ct(u, e, _), U(e, t), U(t, i), U(e, o), r && r.m(e, null), U(e, s); + }, + p(u, _) { + _ & /*display_items*/ + 256 && n !== (n = /*item*/ + u[24].title + "") && Nt(i, n), _ & /*title_style, display_items*/ + 2304 && l !== (l = /*title_style*/ + u[11]( /*item*/ - o[18].is_intro - )), ue(e, "class", "svelte-1gy01d0"); - }, - m(a, l) { - qn(a, e, l), se(e, n); - }, - p(a, l) { - l & /*display_items*/ - 8 && t !== (t = /*item*/ - a[18].name + "") && Gl(n, t), l & /*name_style, display_items*/ - 24 && i !== (i = /*name_style*/ - a[4]( + u[24].is_intro + )) && j(t, "style", l), _ & /*title_uppercase, display_items*/ + 264 && Fe( + t, + "uppercase", + /*title_uppercase*/ + u[3] && !/*item*/ + u[24].is_intro + ), /*item*/ + u[24].name ? r ? r.p(u, _) : (r = Xi(u), r.c(), r.m(e, s)) : r && (r.d(1), r = null), _ & /*display_items*/ + 256 && Fe( + e, + "intro-block", /*item*/ - a[18].is_intro - )) && ue(e, "style", i); + u[24].is_intro + ); }, - d(a) { - a && De(e); + d(u) { + u && X(e), r && r.d(); } }; } -function Li(o) { +function Rs(a) { let e, t, n = ( /*item*/ - o[18].title + "" - ), i, a, l, r, s = ( + a[24].title + "" + ), i, l, o, s, r, u, _ = ( /*item*/ - o[18].name && Ri(o) - ); + a[24].name + "" + ), d, c, h; return { c() { - e = He("div"), t = He("h2"), i = Zl(n), l = yt(), s && s.c(), r = yt(), this.h(); + e = me("div"), t = me("span"), i = jt(n), o = Je(), s = me("span"), r = Je(), u = me("span"), d = jt(_), h = Je(), this.h(); }, - l(u) { - e = je(u, "DIV", { class: !0 }); - var _ = Ne(e); - t = je(_, "H2", { style: !0, class: !0 }); - var c = Ne(t); - i = Ul(c, n), c.forEach(De), l = Dt(_), s && s.l(_), r = Dt(_), _.forEach(De), this.h(); + l(g) { + e = pe(g, "DIV", { class: !0 }); + var p = he(e); + t = pe(p, "SPAN", { style: !0, class: !0 }); + var D = he(t); + i = Mt(D, n), D.forEach(X), o = Qe(p), s = pe(p, "SPAN", { class: !0 }), he(s).forEach(X), r = Qe(p), u = pe(p, "SPAN", { style: !0, class: !0 }); + var k = he(u); + d = Mt(k, _), k.forEach(X), h = Qe(p), p.forEach(X), this.h(); }, h() { - ue(t, "style", a = /*title_style*/ - o[5]( - /*item*/ - o[18].is_intro - )), ue(t, "class", "svelte-1gy01d0"), ue(e, "class", "credit svelte-1gy01d0"), zi( + j(t, "style", l = /*swap_font_sizes_on_two_column*/ + a[6] ? ( + /*name_style*/ + a[10](!1) + ) : ( + /*title_style*/ + a[11](!1) + )), j(t, "class", "svelte-upsott"), Fe( + t, + "uppercase", + /*title_uppercase*/ + a[3] + ), j(s, "class", "spacer svelte-upsott"), j(u, "style", c = /*swap_font_sizes_on_two_column*/ + a[6] ? ( + /*title_style*/ + a[11](!1) + ) : ( + /*name_style*/ + a[10](!1) + )), j(u, "class", "svelte-upsott"), Fe( + u, + "uppercase", + /*name_uppercase*/ + a[4] + ), j(e, "class", "credit-two-column svelte-upsott"); + }, + m(g, p) { + ct(g, e, p), U(e, t), U(t, i), U(e, o), U(e, s), U(e, r), U(e, u), U(u, d), U(e, h); + }, + p(g, p) { + p & /*display_items*/ + 256 && n !== (n = /*item*/ + g[24].title + "") && Nt(i, n), p & /*swap_font_sizes_on_two_column, name_style, title_style*/ + 3136 && l !== (l = /*swap_font_sizes_on_two_column*/ + g[6] ? ( + /*name_style*/ + g[10](!1) + ) : ( + /*title_style*/ + g[11](!1) + )) && j(t, "style", l), p & /*title_uppercase*/ + 8 && Fe( + t, + "uppercase", + /*title_uppercase*/ + g[3] + ), p & /*display_items*/ + 256 && _ !== (_ = /*item*/ + g[24].name + "") && Nt(d, _), p & /*swap_font_sizes_on_two_column, title_style, name_style*/ + 3136 && c !== (c = /*swap_font_sizes_on_two_column*/ + g[6] ? ( + /*title_style*/ + g[11](!1) + ) : ( + /*name_style*/ + g[10](!1) + )) && j(u, "style", c), p & /*name_uppercase*/ + 16 && Fe( + u, + "uppercase", + /*name_uppercase*/ + g[4] + ); + }, + d(g) { + g && X(e); + } + }; +} +function Ls(a) { + let e, t = ( + /*item*/ + a[24].section_title + "" + ), n, i; + return { + c() { + e = me("div"), n = jt(t), i = Je(), this.h(); + }, + l(l) { + e = pe(l, "DIV", { class: !0, style: !0 }); + var o = he(e); + n = Mt(o, t), o.forEach(X), i = Qe(l), this.h(); + }, + h() { + j(e, "class", "section-title svelte-upsott"), j( e, - "intro-block", - /*item*/ - o[18].is_intro + "style", + /*section_title_style*/ + a[9] + ), Fe( + e, + "uppercase", + /*section_title_uppercase*/ + a[5] ); }, - m(u, _) { - qn(u, e, _), se(e, t), se(t, i), se(e, l), s && s.m(e, null), se(e, r); + m(l, o) { + ct(l, e, o), U(e, n), ct(l, i, o); }, - p(u, _) { - _ & /*display_items*/ - 8 && n !== (n = /*item*/ - u[18].title + "") && Gl(i, n), _ & /*title_style, display_items*/ - 40 && a !== (a = /*title_style*/ - u[5]( + p(l, o) { + o & /*display_items*/ + 256 && t !== (t = /*item*/ + l[24].section_title + "") && Nt(n, t), o & /*section_title_style*/ + 512 && j( + e, + "style", + /*section_title_style*/ + l[9] + ), o & /*section_title_uppercase*/ + 32 && Fe( + e, + "uppercase", + /*section_title_uppercase*/ + l[5] + ); + }, + d(l) { + l && (X(e), X(i)); + } + }; +} +function Xi(a) { + let e, t = ( + /*item*/ + a[24].name + "" + ), n, i; + return { + c() { + e = me("p"), n = jt(t), this.h(); + }, + l(l) { + e = pe(l, "P", { style: !0, class: !0 }); + var o = he(e); + n = Mt(o, t), o.forEach(X), this.h(); + }, + h() { + j(e, "style", i = /*name_style*/ + a[10]( /*item*/ - u[18].is_intro - )) && ue(t, "style", a), /*item*/ - u[18].name ? s ? s.p(u, _) : (s = Ri(u), s.c(), s.m(e, r)) : s && (s.d(1), s = null), _ & /*display_items*/ - 8 && zi( + a[24].is_intro + )), j(e, "class", "svelte-upsott"), Fe( e, - "intro-block", + "uppercase", + /*name_uppercase*/ + a[4] && !/*item*/ + a[24].is_intro + ); + }, + m(l, o) { + ct(l, e, o), U(e, n); + }, + p(l, o) { + o & /*display_items*/ + 256 && t !== (t = /*item*/ + l[24].name + "") && Nt(n, t), o & /*name_style, display_items*/ + 1280 && i !== (i = /*name_style*/ + l[10]( /*item*/ - u[18].is_intro + l[24].is_intro + )) && j(e, "style", i), o & /*name_uppercase, display_items*/ + 272 && Fe( + e, + "uppercase", + /*name_uppercase*/ + l[4] && !/*item*/ + l[24].is_intro ); }, - d(u) { - u && De(e), s && s.d(); + d(l) { + l && X(e); } }; } -function Ar(o) { - let e, t, n, i, a, l, r, s, u = Ti( +function Yi(a) { + let e; + function t(l, o) { + return ( + /*item*/ + l[24].section_title ? Ls : ( + /*layout_style*/ + l[2] === "two-column" && !/*item*/ + l[24].is_intro ? Rs : Is + ) + ); + } + let n = t(a), i = n(a); + return { + c() { + i.c(), e = Vi(); + }, + l(l) { + i.l(l), e = Vi(); + }, + m(l, o) { + i.m(l, o), ct(l, e, o); + }, + p(l, o) { + n === (n = t(l)) && i ? i.p(l, o) : (i.d(1), i = n(l), i && (i.c(), i.m(e.parentNode, e))); + }, + d(l) { + l && X(e), i.d(l); + } + }; +} +function Os(a) { + let e, t, n, i, l, o, s, r, u = Ui( /*display_items*/ - o[3] + a[8] ), _ = []; - for (let c = 0; c < u.length; c += 1) - _[c] = Li(Ii(o, u, c)); + for (let d = 0; d < u.length; d += 1) + _[d] = Yi(Zi(a, u, d)); return { c() { - e = He("div"), t = He("div"), n = yt(), i = He("div"), a = yt(), l = He("div"), r = yt(), s = He("div"); - for (let c = 0; c < _.length; c += 1) - _[c].c(); + e = me("div"), t = me("div"), n = Je(), i = me("div"), l = Je(), o = me("div"), s = Je(), r = me("div"); + for (let d = 0; d < _.length; d += 1) + _[d].c(); this.h(); }, - l(c) { - e = je(c, "DIV", { class: !0 }); - var d = Ne(e); - t = je(d, "DIV", { class: !0, style: !0 }), Ne(t).forEach(De), n = Dt(d), i = je(d, "DIV", { class: !0, style: !0 }), Ne(i).forEach(De), a = Dt(d), l = je(d, "DIV", { class: !0, style: !0 }), Ne(l).forEach(De), r = Dt(d), s = je(d, "DIV", { class: !0, style: !0 }); - var f = Ne(s); + l(d) { + e = pe(d, "DIV", { class: !0 }); + var c = he(e); + t = pe(c, "DIV", { class: !0, style: !0 }), he(t).forEach(X), n = Qe(c), i = pe(c, "DIV", { class: !0, style: !0 }), he(i).forEach(X), l = Qe(c), o = pe(c, "DIV", { class: !0, style: !0 }), he(o).forEach(X), s = Qe(c), r = pe(c, "DIV", { class: !0, style: !0 }); + var h = he(r); for (let g = 0; g < _.length; g += 1) - _[g].l(f); - f.forEach(De), d.forEach(De), this.h(); + _[g].l(h); + h.forEach(X), c.forEach(X), this.h(); }, h() { - ue(t, "class", "stars small svelte-1gy01d0"), Ye( + j(t, "class", "stars small svelte-upsott"), rt( t, "box-shadow", /*small_stars*/ - o[6] - ), ue(i, "class", "stars medium svelte-1gy01d0"), Ye( + a[12] + ), j(i, "class", "stars medium svelte-upsott"), rt( i, "box-shadow", /*medium_stars*/ - o[7] - ), ue(l, "class", "stars large svelte-1gy01d0"), Ye( - l, + a[13] + ), j(o, "class", "stars large svelte-upsott"), rt( + o, "box-shadow", /*large_stars*/ - o[8] - ), ue(s, "class", "crawl svelte-1gy01d0"), Ye( - s, + a[14] + ), j(r, "class", "crawl svelte-upsott"), rt( + r, "--animation-duration", /*speed*/ - o[0] + "s" - ), ue(e, "class", "viewport svelte-1gy01d0"), Ye( + a[0] + "s" + ), j(e, "class", "viewport svelte-upsott"), rt( e, "background", /*background_color*/ - o[1] || "black" + a[1] || "black" ); }, - m(c, d) { - qn(c, e, d), se(e, t), se(e, n), se(e, i), se(e, a), se(e, l), se(e, r), se(e, s); - for (let f = 0; f < _.length; f += 1) - _[f] && _[f].m(s, null); - o[15](s); + m(d, c) { + ct(d, e, c), U(e, t), U(e, n), U(e, i), U(e, l), U(e, o), U(e, s), U(e, r); + for (let h = 0; h < _.length; h += 1) + _[h] && _[h].m(r, null); + a[21](r); }, - p(c, [d]) { - if (d & /*display_items, name_style, title_style*/ - 56) { - u = Ti( + p(d, [c]) { + if (c & /*section_title_style, section_title_uppercase, display_items, swap_font_sizes_on_two_column, title_style, name_style, name_uppercase, title_uppercase, layout_style*/ + 3964) { + u = Ui( /*display_items*/ - c[3] + d[8] ); - let f; - for (f = 0; f < u.length; f += 1) { - const g = Ii(c, u, f); - _[f] ? _[f].p(g, d) : (_[f] = Li(g), _[f].c(), _[f].m(s, null)); + let h; + for (h = 0; h < u.length; h += 1) { + const g = Zi(d, u, h); + _[h] ? _[h].p(g, c) : (_[h] = Yi(g), _[h].c(), _[h].m(r, null)); } - for (; f < _.length; f += 1) - _[f].d(1); + for (; h < _.length; h += 1) + _[h].d(1); _.length = u.length; } - d & /*speed*/ - 1 && Ye( - s, + c & /*speed*/ + 1 && rt( + r, "--animation-duration", /*speed*/ - c[0] + "s" - ), d & /*background_color*/ - 2 && Ye( + d[0] + "s" + ), c & /*background_color*/ + 2 && rt( e, "background", /*background_color*/ - c[1] || "black" + d[1] || "black" ); }, - i: xi, - o: xi, - d(c) { - c && De(e), wr(_, c), o[15](null); + i: Gi, + o: Gi, + d(d) { + d && X(e), Ss(_, d), a[21](null); } }; } -function Sr(o, e, t) { - let n, i, a, { credits: l } = e, { speed: r = 40 } = e, { base_font_size: s = 1.5 } = e, { background_color: u = null } = e, { title_color: _ = null } = e, { name_color: c = null } = e, { intro_title: d = null } = e, { intro_subtitle: f = null } = e, g; - function m() { - g && (t(2, g.style.animation = "none", g), g.offsetHeight, t(2, g.style.animation = "", g)); +function Ps(a, e, t) { + let n, i, l, o, { credits: s } = e, { speed: r = 40 } = e, { base_font_size: u = 1.5 } = e, { background_color: _ = null } = e, { title_color: d = null } = e, { name_color: c = null } = e, { intro_title: h = null } = e, { intro_subtitle: g = null } = e, { layout_style: p = "stacked" } = e, { title_uppercase: D = !1 } = e, { name_uppercase: k = !1 } = e, { section_title_uppercase: m = !0 } = e, { swap_font_sizes_on_two_column: f = !1 } = e, v; + function y() { + v && (t(7, v.style.animation = "none", v), v.offsetHeight, t(7, v.style.animation = "", v)); } - Cr(() => (m(), () => { - })), Er(() => { - t(2, g = null); + Ts(y), zs(() => { + t(7, v = null); }); - const v = (y, D) => { - let $ = ""; - for (let S = 0; S < y; S++) - $ += `${Math.random() * 2e3}px ${Math.random() * 2e3}px ${D} white, `; - return $.slice(0, -2); - }, F = v(200, "1px"), p = v(100, "2px"), h = v(50, "3px"); - function b(y) { - $r[y ? "unshift" : "push"](() => { - g = y, t(2, g); + const b = (w, $) => Array.from({ length: w }, () => `${Math.random() * 2e3}px ${Math.random() * 2e3}px ${$} white`).join(", "), F = b(200, "1px"), A = b(100, "2px"), E = b(50, "3px"); + function q(w) { + As[w ? "unshift" : "push"](() => { + v = w, t(7, v); }); } - return o.$$set = (y) => { - "credits" in y && t(9, l = y.credits), "speed" in y && t(0, r = y.speed), "base_font_size" in y && t(10, s = y.base_font_size), "background_color" in y && t(1, u = y.background_color), "title_color" in y && t(11, _ = y.title_color), "name_color" in y && t(12, c = y.name_color), "intro_title" in y && t(13, d = y.intro_title), "intro_subtitle" in y && t(14, f = y.intro_subtitle); - }, o.$$.update = () => { - o.$$.dirty & /*title_color, base_font_size*/ - 3072 && t(5, n = (y) => `color: ${_ || "#feda4a"}; font-size: ${y ? s * 1.5 : s}rem !important;`), o.$$.dirty & /*name_color, base_font_size*/ - 5120 && t(4, i = (y) => `color: ${c || "#feda4a"}; font-size: ${y ? s * 0.9 : s * 0.7}rem !important;`), o.$$.dirty & /*intro_title, intro_subtitle, credits*/ - 25088 && t(3, a = (() => { - const y = []; - return (d || f) && y.push({ - title: d || "", - name: f || "", + return a.$$set = (w) => { + "credits" in w && t(15, s = w.credits), "speed" in w && t(0, r = w.speed), "base_font_size" in w && t(16, u = w.base_font_size), "background_color" in w && t(1, _ = w.background_color), "title_color" in w && t(17, d = w.title_color), "name_color" in w && t(18, c = w.name_color), "intro_title" in w && t(19, h = w.intro_title), "intro_subtitle" in w && t(20, g = w.intro_subtitle), "layout_style" in w && t(2, p = w.layout_style), "title_uppercase" in w && t(3, D = w.title_uppercase), "name_uppercase" in w && t(4, k = w.name_uppercase), "section_title_uppercase" in w && t(5, m = w.section_title_uppercase), "swap_font_sizes_on_two_column" in w && t(6, f = w.swap_font_sizes_on_two_column); + }, a.$$.update = () => { + a.$$.dirty & /*title_color, base_font_size*/ + 196608 && t(11, n = (w) => `color: ${d || "#feda4a"}; font-size: ${w ? u * 1.5 : u}rem;`), a.$$.dirty & /*name_color, base_font_size*/ + 327680 && t(10, i = (w) => `color: ${c || "#feda4a"}; font-size: ${w ? u * 0.9 : u * 0.7}rem;`), a.$$.dirty & /*title_color, base_font_size*/ + 196608 && t(9, l = `color: ${d || "#feda4a"}; font-size: ${u * 1.2}rem;`), a.$$.dirty & /*intro_title, intro_subtitle, credits*/ + 1605632 && t(8, o = (() => { + const w = []; + return (h || g) && w.push({ + title: h || "", + name: g || "", is_intro: !0 }), [ - ...y, - ...l.map((D) => Object.assign(Object.assign({}, D), { is_intro: !1 })) + ...w, + ...s.map(($) => Object.assign(Object.assign({}, $), { is_intro: !1 })) ]; - })()), o.$$.dirty & /*credits, speed, base_font_size, background_color, title_color, name_color, intro_title, intro_subtitle*/ - 32259 && m(); + })()), a.$$.dirty & /*credits, speed, layout_style*/ + 32773 && y(); }, [ r, - u, - g, - a, + _, + p, + D, + k, + m, + f, + v, + o, + l, i, n, F, - p, - h, - l, + A, + E, s, - _, - c, + u, d, - f, - b + c, + h, + g, + q ]; } -class Br extends yr { +class Ms extends Es { constructor(e) { - super(), Fr(this, e, Sr, Ar, kr, { - credits: 9, + super(), Bs(this, e, Ps, Os, qs, { + credits: 15, speed: 0, - base_font_size: 10, + base_font_size: 16, background_color: 1, - title_color: 11, - name_color: 12, - intro_title: 13, - intro_subtitle: 14 + title_color: 17, + name_color: 18, + intro_title: 19, + intro_subtitle: 20, + layout_style: 2, + title_uppercase: 3, + name_uppercase: 4, + section_title_uppercase: 5, + swap_font_sizes_on_two_column: 6 }); } } const { - SvelteComponent: qr, - append_hydration: Re, - attr: we, - binding_callbacks: Oi, - children: Ke, - claim_element: Qe, - claim_space: vn, - claim_text: Xl, - destroy_each: Tr, - detach: Ce, - element: Je, - ensure_array_like: Pi, - init: xr, - insert_hydration: Tn, - noop: Mi, - safe_not_equal: zr, - set_data: Yl, - set_style: Ni, - space: bn, - text: Wl, - toggle_class: ji -} = window.__gradio__svelte__internal, { onMount: Ir, onDestroy: Rr } = window.__gradio__svelte__internal; -function Hi(o, e, t) { - const n = o.slice(); - return n[19] = e[t], n; + SvelteComponent: Ns, + append_hydration: ie, + attr: G, + binding_callbacks: Wi, + children: Le, + claim_element: Oe, + claim_space: Dt, + claim_text: Ht, + destroy_each: js, + detach: K, + element: Pe, + empty: Ki, + ensure_array_like: Qi, + init: Hs, + insert_hydration: dt, + noop: Ji, + safe_not_equal: xs, + set_data: xt, + set_style: el, + space: yt, + text: Vt, + toggle_class: $e +} = window.__gradio__svelte__internal, { onMount: Vs, onDestroy: Us } = window.__gradio__svelte__internal; +function tl(a, e, t) { + const n = a.slice(); + return n[25] = e[t], n; } -function Vi(o) { - let e, t = ( +function Gs(a) { + let e, t, n = ( /*item*/ - o[19].name + "" - ), n, i; + a[25].title + "" + ), i, l, o, s, r = ( + /*item*/ + a[25].name && nl(a) + ); return { c() { - e = Je("div"), n = Wl(t), this.h(); + e = Pe("div"), t = Pe("div"), i = Vt(n), o = yt(), r && r.c(), s = yt(), this.h(); }, - l(a) { - e = Qe(a, "DIV", { style: !0, class: !0 }); - var l = Ke(e); - n = Xl(l, t), l.forEach(Ce), this.h(); + l(u) { + e = Oe(u, "DIV", { class: !0 }); + var _ = Le(e); + t = Oe(_, "DIV", { style: !0, class: !0 }); + var d = Le(t); + i = Ht(d, n), d.forEach(K), o = Dt(_), r && r.l(_), s = Dt(_), _.forEach(K), this.h(); }, h() { - we(e, "style", i = /*name_style*/ - o[3]( + G(t, "style", l = /*title_style*/ + a[10]( /*item*/ - o[19].is_intro - )), we(e, "class", "name svelte-8jsw80"); - }, - m(a, l) { - Tn(a, e, l), Re(e, n); - }, - p(a, l) { - l & /*display_items*/ - 32 && t !== (t = /*item*/ - a[19].name + "") && Yl(n, t), l & /*name_style, display_items*/ - 40 && i !== (i = /*name_style*/ - a[3]( + a[25].is_intro + )), G(t, "class", "title svelte-1851m15"), $e( + t, + "uppercase", + /*title_uppercase*/ + a[2] && !/*item*/ + a[25].is_intro + ), G(e, "class", "credit-block svelte-1851m15"), $e( + e, + "intro-block", /*item*/ - a[19].is_intro - )) && we(e, "style", i); + a[25].is_intro + ); + }, + m(u, _) { + dt(u, e, _), ie(e, t), ie(t, i), ie(e, o), r && r.m(e, null), ie(e, s); + }, + p(u, _) { + _ & /*display_items*/ + 2048 && n !== (n = /*item*/ + u[25].title + "") && xt(i, n), _ & /*title_style, display_items*/ + 3072 && l !== (l = /*title_style*/ + u[10]( + /*item*/ + u[25].is_intro + )) && G(t, "style", l), _ & /*title_uppercase, display_items*/ + 2052 && $e( + t, + "uppercase", + /*title_uppercase*/ + u[2] && !/*item*/ + u[25].is_intro + ), /*item*/ + u[25].name ? r ? r.p(u, _) : (r = nl(u), r.c(), r.m(e, s)) : r && (r.d(1), r = null), _ & /*display_items*/ + 2048 && $e( + e, + "intro-block", + /*item*/ + u[25].is_intro + ); }, - d(a) { - a && Ce(e); + d(u) { + u && K(e), r && r.d(); } }; } -function Ui(o) { +function Zs(a) { let e, t, n = ( /*item*/ - o[19].title + "" - ), i, a, l, r, s = ( + a[25].title + "" + ), i, l, o, s, r = ( /*item*/ - o[19].name && Vi(o) - ); + a[25].name + "" + ), u, _, d; return { c() { - e = Je("div"), t = Je("div"), i = Wl(n), l = bn(), s && s.c(), r = bn(), this.h(); + e = Pe("div"), t = Pe("div"), i = Vt(n), o = yt(), s = Pe("div"), u = Vt(r), d = yt(), this.h(); }, - l(u) { - e = Qe(u, "DIV", { class: !0 }); - var _ = Ke(e); - t = Qe(_, "DIV", { style: !0, class: !0 }); - var c = Ke(t); - i = Xl(c, n), c.forEach(Ce), l = vn(_), s && s.l(_), r = vn(_), _.forEach(Ce), this.h(); + l(c) { + e = Oe(c, "DIV", { class: !0 }); + var h = Le(e); + t = Oe(h, "DIV", { class: !0, style: !0 }); + var g = Le(t); + i = Ht(g, n), g.forEach(K), o = Dt(h), s = Oe(h, "DIV", { class: !0, style: !0 }); + var p = Le(s); + u = Ht(p, r), p.forEach(K), d = Dt(h), h.forEach(K), this.h(); }, h() { - we(t, "style", a = /*title_style*/ - o[4]( - /*item*/ - o[19].is_intro - )), we(t, "class", "title svelte-8jsw80"), we(e, "class", "credit-block svelte-8jsw80"), ji( + G(t, "class", "title svelte-1851m15"), G(t, "style", l = /*swap_font_sizes_on_two_column*/ + a[5] ? ( + /*name_style*/ + a[9](!1) + ) : ( + /*title_style*/ + a[10](!1) + )), $e( + t, + "uppercase", + /*title_uppercase*/ + a[2] + ), G(s, "class", "name svelte-1851m15"), G(s, "style", _ = /*swap_font_sizes_on_two_column*/ + a[5] ? ( + /*title_style*/ + a[10](!1) + ) : ( + /*name_style*/ + a[9](!1) + )), $e( + s, + "uppercase", + /*name_uppercase*/ + a[3] + ), G(e, "class", "credit-two-column svelte-1851m15"); + }, + m(c, h) { + dt(c, e, h), ie(e, t), ie(t, i), ie(e, o), ie(e, s), ie(s, u), ie(e, d); + }, + p(c, h) { + h & /*display_items*/ + 2048 && n !== (n = /*item*/ + c[25].title + "") && xt(i, n), h & /*swap_font_sizes_on_two_column, name_style, title_style*/ + 1568 && l !== (l = /*swap_font_sizes_on_two_column*/ + c[5] ? ( + /*name_style*/ + c[9](!1) + ) : ( + /*title_style*/ + c[10](!1) + )) && G(t, "style", l), h & /*title_uppercase*/ + 4 && $e( + t, + "uppercase", + /*title_uppercase*/ + c[2] + ), h & /*display_items*/ + 2048 && r !== (r = /*item*/ + c[25].name + "") && xt(u, r), h & /*swap_font_sizes_on_two_column, title_style, name_style*/ + 1568 && _ !== (_ = /*swap_font_sizes_on_two_column*/ + c[5] ? ( + /*title_style*/ + c[10](!1) + ) : ( + /*name_style*/ + c[9](!1) + )) && G(s, "style", _), h & /*name_uppercase*/ + 8 && $e( + s, + "uppercase", + /*name_uppercase*/ + c[3] + ); + }, + d(c) { + c && K(e); + } + }; +} +function Xs(a) { + let e, t = ( + /*item*/ + a[25].section_title + "" + ), n, i; + return { + c() { + e = Pe("div"), n = Vt(t), i = yt(), this.h(); + }, + l(l) { + e = Oe(l, "DIV", { class: !0, style: !0 }); + var o = Le(e); + n = Ht(o, t), o.forEach(K), i = Dt(l), this.h(); + }, + h() { + G(e, "class", "section-title svelte-1851m15"), G( e, - "intro-block", - /*item*/ - o[19].is_intro + "style", + /*section_title_style*/ + a[8] + ), $e( + e, + "uppercase", + /*section_title_uppercase*/ + a[4] ); }, - m(u, _) { - Tn(u, e, _), Re(e, t), Re(t, i), Re(e, l), s && s.m(e, null), Re(e, r); + m(l, o) { + dt(l, e, o), ie(e, n), dt(l, i, o); }, - p(u, _) { - _ & /*display_items*/ - 32 && n !== (n = /*item*/ - u[19].title + "") && Yl(i, n), _ & /*title_style, display_items*/ - 48 && a !== (a = /*title_style*/ - u[4]( + p(l, o) { + o & /*display_items*/ + 2048 && t !== (t = /*item*/ + l[25].section_title + "") && xt(n, t), o & /*section_title_style*/ + 256 && G( + e, + "style", + /*section_title_style*/ + l[8] + ), o & /*section_title_uppercase*/ + 16 && $e( + e, + "uppercase", + /*section_title_uppercase*/ + l[4] + ); + }, + d(l) { + l && (K(e), K(i)); + } + }; +} +function nl(a) { + let e, t = ( + /*item*/ + a[25].name + "" + ), n, i; + return { + c() { + e = Pe("div"), n = Vt(t), this.h(); + }, + l(l) { + e = Oe(l, "DIV", { style: !0, class: !0 }); + var o = Le(e); + n = Ht(o, t), o.forEach(K), this.h(); + }, + h() { + G(e, "style", i = /*name_style*/ + a[9]( /*item*/ - u[19].is_intro - )) && we(t, "style", a), /*item*/ - u[19].name ? s ? s.p(u, _) : (s = Vi(u), s.c(), s.m(e, r)) : s && (s.d(1), s = null), _ & /*display_items*/ - 32 && ji( + a[25].is_intro + )), G(e, "class", "name svelte-1851m15"), $e( e, - "intro-block", + "uppercase", + /*name_uppercase*/ + a[3] && !/*item*/ + a[25].is_intro + ); + }, + m(l, o) { + dt(l, e, o), ie(e, n); + }, + p(l, o) { + o & /*display_items*/ + 2048 && t !== (t = /*item*/ + l[25].name + "") && xt(n, t), o & /*name_style, display_items*/ + 2560 && i !== (i = /*name_style*/ + l[9]( /*item*/ - u[19].is_intro + l[25].is_intro + )) && G(e, "style", i), o & /*name_uppercase, display_items*/ + 2056 && $e( + e, + "uppercase", + /*name_uppercase*/ + l[3] && !/*item*/ + l[25].is_intro ); }, - d(u) { - u && Ce(e), s && s.d(); + d(l) { + l && K(e); + } + }; +} +function il(a) { + let e; + function t(l, o) { + return ( + /*item*/ + l[25].section_title ? Xs : ( + /*layout_style*/ + l[1] === "two-column" && !/*item*/ + l[25].is_intro ? Zs : Gs + ) + ); + } + let n = t(a), i = n(a); + return { + c() { + i.c(), e = Ki(); + }, + l(l) { + i.l(l), e = Ki(); + }, + m(l, o) { + i.m(l, o), dt(l, e, o); + }, + p(l, o) { + n === (n = t(l)) && i ? i.p(l, o) : (i.d(1), i = n(l), i && (i.c(), i.m(e.parentNode, e))); + }, + d(l) { + l && K(e), i.d(l); } }; } -function Lr(o) { - let e, t, n, i, a, l = Pi( +function Ys(a) { + let e, t, n, i, l, o = Qi( /*display_items*/ - o[5] - ), r = []; - for (let s = 0; s < l.length; s += 1) - r[s] = Ui(Hi(o, l, s)); + a[11] + ), s = []; + for (let r = 0; r < o.length; r += 1) + s[r] = il(tl(a, o, r)); return { c() { - e = Je("div"), t = Je("canvas"), n = bn(), i = Je("div"), a = Je("div"); - for (let s = 0; s < r.length; s += 1) - r[s].c(); + e = Pe("div"), t = Pe("canvas"), n = yt(), i = Pe("div"), l = Pe("div"); + for (let r = 0; r < s.length; r += 1) + s[r].c(); this.h(); }, - l(s) { - e = Qe(s, "DIV", { class: !0 }); - var u = Ke(e); - t = Qe(u, "CANVAS", { class: !0 }), Ke(t).forEach(Ce), n = vn(u), i = Qe(u, "DIV", { class: !0 }); - var _ = Ke(i); - a = Qe(_, "DIV", { class: !0, style: !0 }); - var c = Ke(a); - for (let d = 0; d < r.length; d += 1) - r[d].l(c); - c.forEach(Ce), _.forEach(Ce), u.forEach(Ce), this.h(); + l(r) { + e = Oe(r, "DIV", { class: !0 }); + var u = Le(e); + t = Oe(u, "CANVAS", { class: !0 }), Le(t).forEach(K), n = Dt(u), i = Oe(u, "DIV", { class: !0 }); + var _ = Le(i); + l = Oe(_, "DIV", { class: !0, style: !0 }); + var d = Le(l); + for (let c = 0; c < s.length; c += 1) + s[c].l(d); + d.forEach(K), _.forEach(K), u.forEach(K), this.h(); }, h() { - we(t, "class", "svelte-8jsw80"), we(a, "class", "credits-content svelte-8jsw80"), Ni( - a, + G(t, "class", "svelte-1851m15"), G(l, "class", "credits-content svelte-1851m15"), el( + l, "--animation-duration", /*speed*/ - o[0] + "s" - ), we(i, "class", "credits-scroll-overlay svelte-8jsw80"), we(e, "class", "matrix-container svelte-8jsw80"); - }, - m(s, u) { - Tn(s, e, u), Re(e, t), o[10](t), Re(e, n), Re(e, i), Re(i, a); - for (let _ = 0; _ < r.length; _ += 1) - r[_] && r[_].m(a, null); - o[11](a); - }, - p(s, [u]) { - if (u & /*display_items, name_style, title_style*/ - 56) { - l = Pi( + a[0] + "s" + ), G(i, "class", "credits-scroll-overlay svelte-1851m15"), G(e, "class", "matrix-container svelte-1851m15"); + }, + m(r, u) { + dt(r, e, u), ie(e, t), a[16](t), ie(e, n), ie(e, i), ie(i, l); + for (let _ = 0; _ < s.length; _ += 1) + s[_] && s[_].m(l, null); + a[17](l); + }, + p(r, [u]) { + if (u & /*section_title_style, section_title_uppercase, display_items, swap_font_sizes_on_two_column, title_style, name_style, name_uppercase, title_uppercase, layout_style*/ + 3902) { + o = Qi( /*display_items*/ - s[5] + r[11] ); let _; - for (_ = 0; _ < l.length; _ += 1) { - const c = Hi(s, l, _); - r[_] ? r[_].p(c, u) : (r[_] = Ui(c), r[_].c(), r[_].m(a, null)); + for (_ = 0; _ < o.length; _ += 1) { + const d = tl(r, o, _); + s[_] ? s[_].p(d, u) : (s[_] = il(d), s[_].c(), s[_].m(l, null)); } - for (; _ < r.length; _ += 1) - r[_].d(1); - r.length = l.length; + for (; _ < s.length; _ += 1) + s[_].d(1); + s.length = o.length; } u & /*speed*/ - 1 && Ni( - a, + 1 && el( + l, "--animation-duration", /*speed*/ - s[0] + "s" + r[0] + "s" ); }, - i: Mi, - o: Mi, - d(s) { - s && Ce(e), o[10](null), Tr(r, s), o[11](null); + i: Ji, + o: Ji, + d(r) { + r && K(e), a[16](null), js(s, r), a[17](null); } }; } -const ft = 16, Gi = "アァカサタナハマヤャラワガザダバパイィキシチニヒミリヰギジヂビピウゥクスツヌフムユュルグズブヅプエェケセテネヘメレヱゲゼデベペオォコソトノホモヨョロヲゴゾドボポヴッン01"; -function Or(o, e, t) { - let n, i, a, { credits: l } = e, { speed: r = 20 } = e, { base_font_size: s = 1 } = e, { intro_title: u = null } = e, { intro_subtitle: _ = null } = e, c, d, f, g, m = [], v; +const At = 16, ll = "アァカサタナハマヤャラワガザダバパイィキシチニヒミリヰギジヂビピウゥクスツヌフムユュルグズブヅプエェケセテネヘメレヱゲゼデベペオォコソトノホモヨョロヲゴゾドボポヴッン01"; +function Ws(a, e, t) { + let n, i, l, o, { credits: s } = e, { speed: r = 20 } = e, { base_font_size: u = 1 } = e, { intro_title: _ = null } = e, { intro_subtitle: d = null } = e, { layout_style: c = "stacked" } = e, { title_uppercase: h = !1 } = e, { name_uppercase: g = !1 } = e, { section_title_uppercase: p = !0 } = e, { swap_font_sizes_on_two_column: D = !1 } = e, k, m, f, v, y = [], b; function F() { - if (!c) return; - const D = c.parentElement; - D && (t(1, c.width = D.clientWidth, c), t(1, c.height = D.clientHeight, c)), d = c.getContext("2d"), g = Math.floor(c.width / ft), m = Array(g).fill(1); - } - function p() { - if (d) { - d.fillStyle = "rgba(0, 0, 0, 0.05)", d.fillRect(0, 0, c.width, c.height), d.fillStyle = "#0F0", d.font = `${ft}px monospace`; - for (let D = 0; D < m.length; D++) { - const $ = Gi.charAt(Math.floor(Math.random() * Gi.length)); - d.fillText($, D * ft, m[D] * ft), m[D] * ft > c.height && Math.random() > 0.975 && (m[D] = 0), m[D]++; + if (!k) return; + const $ = k.parentElement; + $ && (t(6, k.width = $.clientWidth, k), t(6, k.height = $.clientHeight, k)), m = k.getContext("2d"), v = Math.floor(k.width / At), y = Array(v).fill(1); + } + function A() { + if (m) { + m.fillStyle = "rgba(0, 0, 0, 0.05)", m.fillRect(0, 0, k.width, k.height), m.fillStyle = "#0F0", m.font = `${At}px monospace`; + for (let $ = 0; $ < y.length; $++) { + const ge = ll.charAt(Math.floor(Math.random() * ll.length)); + m.fillText(ge, $ * At, y[$] * At), y[$] * At > k.height && Math.random() > 0.975 && (y[$] = 0), y[$]++; } - v = requestAnimationFrame(p); + b = requestAnimationFrame(A); } } - function h() { - f && (t(2, f.style.animation = "none", f), f.offsetHeight, t(2, f.style.animation = "", f)); + function E() { + f && (t(7, f.style.animation = "none", f), f.offsetHeight, t(7, f.style.animation = "", f)); } - Ir(() => { - F(), p(), h(); - const D = new ResizeObserver(() => { - cancelAnimationFrame(v), F(), p(); + Vs(() => { + F(), A(), E(); + const $ = new ResizeObserver(() => { + cancelAnimationFrame(b), F(), A(); }); - return c.parentElement && D.observe(c.parentElement), () => { - cancelAnimationFrame(v), c.parentElement && D.unobserve(c.parentElement); + return k.parentElement && $.observe(k.parentElement), () => { + cancelAnimationFrame(b), k.parentElement && $.unobserve(k.parentElement); }; - }), Rr(() => { - t(2, f = null); + }), Us(() => { + t(7, f = null); }); - function b(D) { - Oi[D ? "unshift" : "push"](() => { - c = D, t(1, c); + function q($) { + Wi[$ ? "unshift" : "push"](() => { + k = $, t(6, k); }); } - function y(D) { - Oi[D ? "unshift" : "push"](() => { - f = D, t(2, f); + function w($) { + Wi[$ ? "unshift" : "push"](() => { + f = $, t(7, f); }); } - return o.$$set = (D) => { - "credits" in D && t(6, l = D.credits), "speed" in D && t(0, r = D.speed), "base_font_size" in D && t(7, s = D.base_font_size), "intro_title" in D && t(8, u = D.intro_title), "intro_subtitle" in D && t(9, _ = D.intro_subtitle); - }, o.$$.update = () => { - o.$$.dirty & /*intro_title, intro_subtitle, credits*/ - 832 && t(5, n = (() => { - const D = []; - return (u || _) && D.push({ - title: u || "", - name: _ || "", + return a.$$set = ($) => { + "credits" in $ && t(12, s = $.credits), "speed" in $ && t(0, r = $.speed), "base_font_size" in $ && t(13, u = $.base_font_size), "intro_title" in $ && t(14, _ = $.intro_title), "intro_subtitle" in $ && t(15, d = $.intro_subtitle), "layout_style" in $ && t(1, c = $.layout_style), "title_uppercase" in $ && t(2, h = $.title_uppercase), "name_uppercase" in $ && t(3, g = $.name_uppercase), "section_title_uppercase" in $ && t(4, p = $.section_title_uppercase), "swap_font_sizes_on_two_column" in $ && t(5, D = $.swap_font_sizes_on_two_column); + }, a.$$.update = () => { + a.$$.dirty & /*intro_title, intro_subtitle, credits*/ + 53248 && t(11, n = (() => { + const $ = []; + return (_ || d) && $.push({ + title: _ || "", + name: d || "", is_intro: !0 }), [ - ...D, - ...l.map(($) => Object.assign(Object.assign({}, $), { is_intro: !1 })) + ...$, + ...s.map((ge) => Object.assign(Object.assign({}, ge), { is_intro: !1 })) ]; - })()), o.$$.dirty & /*base_font_size*/ - 128 && t(4, i = (D) => `font-size: ${D ? s * 1.2 : s * 0.8}em;`), o.$$.dirty & /*base_font_size*/ - 128 && t(3, a = (D) => `font-size: ${D ? s * 1.5 : s}em;`), o.$$.dirty & /*credits, speed, intro_title, intro_subtitle*/ - 833 && h(); + })()), a.$$.dirty & /*base_font_size*/ + 8192 && t(10, i = ($) => `font-size: ${$ ? u * 1.5 : u}em;`), a.$$.dirty & /*base_font_size*/ + 8192 && t(9, l = ($) => `font-size: ${$ ? u * 0.9 : u * 0.8}em;`), a.$$.dirty & /*base_font_size*/ + 8192 && t(8, o = `font-size: ${u * 1.2}em;`), a.$$.dirty & /*credits, speed, intro_title, intro_subtitle, layout_style*/ + 53251 && E(); }, [ r, c, + h, + g, + p, + D, + k, f, - a, + o, + l, i, n, - l, s, u, _, - b, - y + d, + q, + w ]; } -class Pr extends qr { +class Ks extends Ns { constructor(e) { - super(), xr(this, e, Or, Lr, zr, { - credits: 6, + super(), Hs(this, e, Ws, Ys, xs, { + credits: 12, speed: 0, - base_font_size: 7, - intro_title: 8, - intro_subtitle: 9 + base_font_size: 13, + intro_title: 14, + intro_subtitle: 15, + layout_style: 1, + title_uppercase: 2, + name_uppercase: 3, + section_title_uppercase: 4, + swap_font_sizes_on_two_column: 5 }); } } -const { setContext: yC, getContext: Mr } = window.__gradio__svelte__internal, Nr = "WORKER_PROXY_CONTEXT_KEY"; -function jr() { - return Mr(Nr); +const { setContext: z4, getContext: Qs } = window.__gradio__svelte__internal, Js = "WORKER_PROXY_CONTEXT_KEY"; +function er() { + return Qs(Js); } -const Hr = "lite.local"; -function Vr(o) { - return o.host === window.location.host || o.host === "localhost:7860" || o.host === "127.0.0.1:7860" || // Ref: https://github.com/gradio-app/gradio/blob/v3.32.0/js/app/src/Index.svelte#L194 - o.host === Hr; +const tr = "lite.local"; +function nr(a) { + return a.host === window.location.host || a.host === "localhost:7860" || a.host === "127.0.0.1:7860" || // Ref: https://github.com/gradio-app/gradio/blob/v3.32.0/js/app/src/Index.svelte#L194 + a.host === tr; } -function Ur(o, e) { +function ir(a, e) { const t = e.toLowerCase(); - for (const [n, i] of Object.entries(o)) + for (const [n, i] of Object.entries(a)) if (n.toLowerCase() === t) return i; } -function Gr(o) { +function lr(a) { const e = typeof window < "u"; - if (o == null || !e) + if (a == null || !e) return !1; - const t = new URL(o, window.location.href); - return !(!Vr(t) || t.protocol !== "http:" && t.protocol !== "https:"); + const t = new URL(a, window.location.href); + return !(!nr(t) || t.protocol !== "http:" && t.protocol !== "https:"); } -let Nt; -async function Zr(o) { +let sn; +async function ar(a) { const e = typeof window < "u"; - if (o == null || !e || !Gr(o)) - return o; - if (Nt == null) + if (a == null || !e || !lr(a)) + return a; + if (sn == null) try { - Nt = jr(); + sn = er(); } catch { - return o; + return a; } - if (Nt == null) - return o; - const n = new URL(o, window.location.href).pathname; - return Nt.httpRequest({ + if (sn == null) + return a; + const n = new URL(a, window.location.href).pathname; + return sn.httpRequest({ method: "GET", path: n, headers: {}, @@ -8298,841 +8931,931 @@ async function Zr(o) { }).then((i) => { if (i.status !== 200) throw new Error(`Failed to get file ${n} from the Wasm worker.`); - const a = new Blob([i.body], { - type: Ur(i.headers, "content-type") + const l = new Blob([i.body], { + type: ir(i.headers, "content-type") }); - return URL.createObjectURL(a); + return URL.createObjectURL(l); }); } const { - SvelteComponent: $C, - assign: wC, - check_outros: FC, - children: kC, - claim_element: CC, - compute_rest_props: EC, - create_slot: AC, - detach: SC, - element: BC, - empty: qC, - exclude_internal_props: TC, - get_all_dirty_from_scope: xC, - get_slot_changes: zC, - get_spread_update: IC, - group_outros: RC, - init: LC, - insert_hydration: OC, - listen: PC, - prevent_default: MC, - safe_not_equal: NC, - set_attributes: jC, - set_style: HC, - toggle_class: VC, - transition_in: UC, - transition_out: GC, - update_slot_base: ZC -} = window.__gradio__svelte__internal, { createEventDispatcher: XC, onMount: YC } = window.__gradio__svelte__internal, { - SvelteComponent: Xr, - assign: Dn, - bubble: Yr, - claim_element: Wr, - compute_rest_props: Zi, - detach: Kr, - element: Qr, - exclude_internal_props: Jr, - get_spread_update: es, - init: ts, - insert_hydration: ns, - listen: is, - noop: Xi, - safe_not_equal: ls, - set_attributes: Yi, - src_url_equal: os, - toggle_class: Wi + SvelteComponent: I4, + assign: R4, + check_outros: L4, + children: O4, + claim_element: P4, + compute_rest_props: M4, + create_slot: N4, + detach: j4, + element: H4, + empty: x4, + exclude_internal_props: V4, + get_all_dirty_from_scope: U4, + get_slot_changes: G4, + get_spread_update: Z4, + group_outros: X4, + init: Y4, + insert_hydration: W4, + listen: K4, + prevent_default: Q4, + safe_not_equal: J4, + set_attributes: e5, + set_style: t5, + toggle_class: n5, + transition_in: i5, + transition_out: l5, + update_slot_base: a5 +} = window.__gradio__svelte__internal, { createEventDispatcher: o5, onMount: s5 } = window.__gradio__svelte__internal, { + SvelteComponent: or, + assign: Ln, + bubble: sr, + claim_element: rr, + compute_rest_props: al, + detach: ur, + element: _r, + exclude_internal_props: cr, + get_spread_update: dr, + init: fr, + insert_hydration: hr, + listen: pr, + noop: ol, + safe_not_equal: mr, + set_attributes: sl, + src_url_equal: gr, + toggle_class: rl } = window.__gradio__svelte__internal; -function as(o) { - let e, t, n, i, a = [ +function vr(a) { + let e, t, n, i, l = [ { src: t = /*resolved_src*/ - o[0] + a[0] }, /*$$restProps*/ - o[1] - ], l = {}; - for (let r = 0; r < a.length; r += 1) - l = Dn(l, a[r]); + a[1] + ], o = {}; + for (let s = 0; s < l.length; s += 1) + o = Ln(o, l[s]); return { c() { - e = Qr("img"), this.h(); + e = _r("img"), this.h(); }, - l(r) { - e = Wr(r, "IMG", { src: !0 }), this.h(); + l(s) { + e = rr(s, "IMG", { src: !0 }), this.h(); }, h() { - Yi(e, l), Wi(e, "svelte-kxeri3", !0); + sl(e, o), rl(e, "svelte-kxeri3", !0); }, - m(r, s) { - ns(r, e, s), n || (i = is( + m(s, r) { + hr(s, e, r), n || (i = pr( e, "load", /*load_handler*/ - o[4] + a[4] ), n = !0); }, - p(r, [s]) { - Yi(e, l = es(a, [ - s & /*resolved_src*/ - 1 && !os(e.src, t = /*resolved_src*/ - r[0]) && { src: t }, - s & /*$$restProps*/ + p(s, [r]) { + sl(e, o = dr(l, [ + r & /*resolved_src*/ + 1 && !gr(e.src, t = /*resolved_src*/ + s[0]) && { src: t }, + r & /*$$restProps*/ 2 && /*$$restProps*/ - r[1] - ])), Wi(e, "svelte-kxeri3", !0); + s[1] + ])), rl(e, "svelte-kxeri3", !0); }, - i: Xi, - o: Xi, - d(r) { - r && Kr(e), n = !1, i(); + i: ol, + o: ol, + d(s) { + s && ur(e), n = !1, i(); } }; } -function rs(o, e, t) { +function br(a, e, t) { const n = ["src"]; - let i = Zi(e, n), { src: a = void 0 } = e, l, r; - function s(u) { - Yr.call(this, o, u); - } - return o.$$set = (u) => { - e = Dn(Dn({}, e), Jr(u)), t(1, i = Zi(e, n)), "src" in u && t(2, a = u.src); - }, o.$$.update = () => { - if (o.$$.dirty & /*src, latest_src*/ + let i = al(e, n), { src: l = void 0 } = e, o, s; + function r(u) { + sr.call(this, a, u); + } + return a.$$set = (u) => { + e = Ln(Ln({}, e), cr(u)), t(1, i = al(e, n)), "src" in u && t(2, l = u.src); + }, a.$$.update = () => { + if (a.$$.dirty & /*src, latest_src*/ 12) { - t(0, l = a), t(3, r = a); - const u = a; - Zr(u).then((_) => { - r === u && t(0, l = _); + t(0, o = l), t(3, s = l); + const u = l; + ar(u).then((_) => { + s === u && t(0, o = _); }); } - }, [l, i, a, r, s]; + }, [o, i, l, s, r]; } -class ss extends Xr { +class Dr extends or { constructor(e) { - super(), ts(this, e, rs, as, ls, { src: 2 }); + super(), fr(this, e, br, vr, mr, { src: 2 }); } } const { - SvelteComponent: WC, - append_hydration: KC, - attr: QC, - binding_callbacks: JC, - bubble: e3, - check_outros: t3, - children: n3, - claim_component: i3, - claim_element: l3, - claim_space: o3, - create_component: a3, - destroy_component: r3, - detach: s3, - element: u3, - empty: _3, - group_outros: c3, - init: d3, - insert_hydration: h3, - listen: f3, - mount_component: p3, - safe_not_equal: m3, - space: g3, - toggle_class: v3, - transition_in: b3, - transition_out: D3 -} = window.__gradio__svelte__internal, { createEventDispatcher: y3, onMount: $3 } = window.__gradio__svelte__internal, { - SvelteComponent: us, - append_hydration: ee, - attr: W, - check_outros: Ue, - children: de, - claim_component: st, - claim_element: K, - claim_space: Oe, - claim_text: yn, - create_component: ut, - create_slot: _s, - destroy_block: cs, - destroy_component: _t, - detach: x, - element: Q, - empty: Ge, - ensure_array_like: Ki, - get_all_dirty_from_scope: ds, - get_slot_changes: hs, - get_svelte_dataset: xn, - group_outros: Ze, - head_selector: fs, - init: ps, - insert_hydration: G, - listen: ms, - mount_component: ct, - noop: Ct, - safe_not_equal: Wt, - set_data: $n, - set_style: M, - space: Pe, - src_url_equal: Qi, - text: wn, - toggle_class: Ji, - transition_in: L, - transition_out: N, - update_keyed_each: gs, - update_slot_base: vs + SvelteComponent: r5, + append_hydration: u5, + attr: _5, + binding_callbacks: c5, + bubble: d5, + check_outros: f5, + children: h5, + claim_component: p5, + claim_element: m5, + claim_space: g5, + create_component: v5, + destroy_component: b5, + detach: D5, + element: y5, + empty: w5, + group_outros: k5, + init: F5, + insert_hydration: $5, + listen: C5, + mount_component: E5, + safe_not_equal: A5, + space: S5, + toggle_class: B5, + transition_in: q5, + transition_out: T5 +} = window.__gradio__svelte__internal, { createEventDispatcher: z5, onMount: I5 } = window.__gradio__svelte__internal, { + SvelteComponent: yr, + append_hydration: re, + attr: le, + check_outros: at, + children: Ce, + claim_component: wt, + claim_element: ae, + claim_space: et, + claim_text: On, + create_component: kt, + create_slot: wr, + destroy_block: kr, + destroy_component: Ft, + detach: I, + element: oe, + empty: ot, + ensure_array_like: ul, + get_all_dirty_from_scope: Fr, + get_slot_changes: $r, + get_svelte_dataset: Zn, + group_outros: st, + head_selector: Cr, + init: Er, + insert_hydration: J, + listen: Ar, + mount_component: $t, + noop: Ut, + safe_not_equal: pn, + set_data: Pn, + set_style: N, + space: tt, + src_url_equal: _l, + text: Mn, + toggle_class: cl, + transition_in: P, + transition_out: H, + update_keyed_each: Sr, + update_slot_base: Br } = window.__gradio__svelte__internal; -function el(o, e, t) { - const n = o.slice(); +function dl(a, e, t) { + const n = a.slice(); return n[24] = e[t][0], n[25] = e[t][1], n; } -function tl(o) { +function fl(a) { let e, t, n, i; - const a = [Ds, bs], l = []; - function r(s, u) { + const l = [Tr, qr], o = []; + function s(r, u) { return ( /*gradio*/ - s[7] ? 0 : 1 + r[7] ? 0 : 1 ); } - return t = r(o), n = l[t] = a[t](o), { + return t = s(a), n = o[t] = l[t](a), { c() { - e = Q("div"), n.c(), this.h(); + e = oe("div"), n.c(), this.h(); }, - l(s) { - e = K(s, "DIV", { class: !0 }); - var u = de(e); - n.l(u), u.forEach(x), this.h(); + l(r) { + e = ae(r, "DIV", { class: !0 }); + var u = Ce(e); + n.l(u), u.forEach(I), this.h(); }, h() { - W(e, "class", "logo-panel svelte-1hawtr7"), M( + le(e, "class", "logo-panel svelte-1hawtr7"), N( e, "height", /*logo_panel_height*/ - o[12] - ), M(e, "display", "flex"), M( + a[12] + ), N(e, "display", "flex"), N( e, "justify-content", /*logo_justify*/ - o[10] + a[10] ); }, - m(s, u) { - G(s, e, u), l[t].m(e, null), i = !0; + m(r, u) { + J(r, e, u), o[t].m(e, null), i = !0; }, - p(s, u) { + p(r, u) { let _ = t; - t = r(s), t === _ ? l[t].p(s, u) : (Ze(), N(l[_], 1, 1, () => { - l[_] = null; - }), Ue(), n = l[t], n ? n.p(s, u) : (n = l[t] = a[t](s), n.c()), L(n, 1), n.m(e, null)), u & /*logo_panel_height*/ - 4096 && M( + t = s(r), t === _ ? o[t].p(r, u) : (st(), H(o[_], 1, 1, () => { + o[_] = null; + }), at(), n = o[t], n ? n.p(r, u) : (n = o[t] = l[t](r), n.c()), P(n, 1), n.m(e, null)), u & /*logo_panel_height*/ + 4096 && N( e, "height", /*logo_panel_height*/ - s[12] + r[12] ), u & /*logo_justify*/ - 1024 && M( + 1024 && N( e, "justify-content", /*logo_justify*/ - s[10] + r[10] ); }, - i(s) { - i || (L(n), i = !0); + i(r) { + i || (P(n), i = !0); }, - o(s) { - N(n), i = !1; + o(r) { + H(n), i = !1; }, - d(s) { - s && x(e), l[t].d(); + d(r) { + r && I(e), o[t].d(); } }; } -function bs(o) { +function qr(a) { let e, t; return { c() { - e = Q("img"), this.h(); + e = oe("img"), this.h(); }, l(n) { - e = K(n, "IMG", { src: !0, alt: !0, style: !0 }), this.h(); + e = ae(n, "IMG", { src: !0, alt: !0, style: !0 }), this.h(); }, h() { - Qi(e.src, t = /*effectiveValue*/ - o[8].logo_path.url) || W(e, "src", t), W(e, "alt", "Logo"), M( + _l(e.src, t = /*effectiveValue*/ + a[8].logo_path.url) || le(e, "src", t), le(e, "alt", "Logo"), N( e, "width", /*logo_width_style*/ - o[14] - ), M( + a[14] + ), N( e, "height", /*logo_height_style*/ - o[13] - ), M( + a[13] + ), N( e, "object-fit", /*object_fit*/ - o[11] + a[11] ); }, m(n, i) { - G(n, e, i); + J(n, e, i); }, p(n, i) { i & /*effectiveValue*/ - 256 && !Qi(e.src, t = /*effectiveValue*/ - n[8].logo_path.url) && W(e, "src", t), i & /*logo_width_style*/ - 16384 && M( + 256 && !_l(e.src, t = /*effectiveValue*/ + n[8].logo_path.url) && le(e, "src", t), i & /*logo_width_style*/ + 16384 && N( e, "width", /*logo_width_style*/ n[14] ), i & /*logo_height_style*/ - 8192 && M( + 8192 && N( e, "height", /*logo_height_style*/ n[13] ), i & /*object_fit*/ - 2048 && M( + 2048 && N( e, "object-fit", /*object_fit*/ n[11] ); }, - i: Ct, - o: Ct, + i: Ut, + o: Ut, d(n) { - n && x(e); + n && I(e); } }; } -function Ds(o) { +function Tr(a) { let e, t; - return e = new ss({ + return e = new Dr({ props: { src: ( /*effectiveValue*/ - o[8].logo_path.url + a[8].logo_path.url ), alt: "Logo", loading: "lazy", gradio: ( /*gradio*/ - o[7] + a[7] ), style: "width: " + /*logo_width_style*/ - o[14] + "; height: " + /*logo_height_style*/ - o[13] + "; object-fit: " + /*object_fit*/ - o[11] + ";" + a[14] + "; height: " + /*logo_height_style*/ + a[13] + "; object-fit: " + /*object_fit*/ + a[11] + ";" } }), { c() { - ut(e.$$.fragment); + kt(e.$$.fragment); }, l(n) { - st(e.$$.fragment, n); + wt(e.$$.fragment, n); }, m(n, i) { - ct(e, n, i), t = !0; + $t(e, n, i), t = !0; }, p(n, i) { - const a = {}; + const l = {}; i & /*effectiveValue*/ - 256 && (a.src = /*effectiveValue*/ + 256 && (l.src = /*effectiveValue*/ n[8].logo_path.url), i & /*gradio*/ - 128 && (a.gradio = /*gradio*/ + 128 && (l.gradio = /*gradio*/ n[7]), i & /*logo_width_style, logo_height_style, object_fit*/ - 26624 && (a.style = "width: " + /*logo_width_style*/ + 26624 && (l.style = "width: " + /*logo_width_style*/ n[14] + "; height: " + /*logo_height_style*/ n[13] + "; object-fit: " + /*object_fit*/ - n[11] + ";"), e.$set(a); + n[11] + ";"), e.$set(l); }, i(n) { - t || (L(e.$$.fragment, n), t = !0); + t || (P(e.$$.fragment, n), t = !0); }, o(n) { - N(e.$$.fragment, n), t = !1; + H(e.$$.fragment, n), t = !1; }, d(n) { - _t(e, n); + Ft(e, n); } }; } -function nl(o) { +function hl(a) { var i; let e, t, n = ( /*effectiveValue*/ - o[8].show_logo && /*effectiveValue*/ - ((i = o[8].logo_path) == null ? void 0 : i.url) && tl(o) + a[8].show_logo && /*effectiveValue*/ + ((i = a[8].logo_path) == null ? void 0 : i.url) && fl(a) ); return { c() { - e = Q("div"), n && n.c(), this.h(); + e = oe("div"), n && n.c(), this.h(); }, - l(a) { - e = K(a, "DIV", { class: !0 }); - var l = de(e); - n && n.l(l), l.forEach(x), this.h(); + l(l) { + e = ae(l, "DIV", { class: !0 }); + var o = Ce(e); + n && n.l(o), o.forEach(I), this.h(); }, h() { - W(e, "class", "outer-logo-wrapper svelte-1hawtr7"), M( + le(e, "class", "outer-logo-wrapper svelte-1hawtr7"), N( e, "width", /*width_style*/ - o[15] + a[15] ); }, - m(a, l) { - G(a, e, l), n && n.m(e, null), t = !0; + m(l, o) { + J(l, e, o), n && n.m(e, null), t = !0; }, - p(a, l) { - var r; + p(l, o) { + var s; /*effectiveValue*/ - a[8].show_logo && /*effectiveValue*/ - ((r = a[8].logo_path) != null && r.url) ? n ? (n.p(a, l), l & /*effectiveValue*/ - 256 && L(n, 1)) : (n = tl(a), n.c(), L(n, 1), n.m(e, null)) : n && (Ze(), N(n, 1, 1, () => { + l[8].show_logo && /*effectiveValue*/ + ((s = l[8].logo_path) != null && s.url) ? n ? (n.p(l, o), o & /*effectiveValue*/ + 256 && P(n, 1)) : (n = fl(l), n.c(), P(n, 1), n.m(e, null)) : n && (st(), H(n, 1, 1, () => { n = null; - }), Ue()), l & /*width_style*/ - 32768 && M( + }), at()), o & /*width_style*/ + 32768 && N( e, "width", /*width_style*/ - a[15] + l[15] ); }, - i(a) { - t || (L(n), t = !0); + i(l) { + t || (P(n), t = !0); }, - o(a) { - N(n), t = !1; + o(l) { + H(n), t = !1; }, - d(a) { - a && x(e), n && n.d(); + d(l) { + l && I(e), n && n.d(); } }; } -function il(o) { +function pl(a) { let e = ( /*effectiveValue*/ - o[8].sidebar_position - ), t, n, i = ul(o); + a[8].sidebar_position + ), t, n, i = yl(a); return { c() { - i.c(), t = Ge(); + i.c(), t = ot(); }, - l(a) { - i.l(a), t = Ge(); + l(l) { + i.l(l), t = ot(); }, - m(a, l) { - i.m(a, l), G(a, t, l), n = !0; + m(l, o) { + i.m(l, o), J(l, t, o), n = !0; }, - p(a, l) { - l & /*effectiveValue*/ - 256 && Wt(e, e = /*effectiveValue*/ - a[8].sidebar_position) ? (Ze(), N(i, 1, 1, Ct), Ue(), i = ul(a), i.c(), L(i, 1), i.m(t.parentNode, t)) : i.p(a, l); + p(l, o) { + o & /*effectiveValue*/ + 256 && pn(e, e = /*effectiveValue*/ + l[8].sidebar_position) ? (st(), H(i, 1, 1, Ut), at(), i = yl(l), i.c(), P(i, 1), i.m(t.parentNode, t)) : i.p(l, o); }, - i(a) { - n || (L(i), n = !0); + i(l) { + n || (P(i), n = !0); }, - o(a) { - N(i), n = !1; + o(l) { + H(i), n = !1; }, - d(a) { - a && x(t), i.d(a); + d(l) { + l && I(t), i.d(l); } }; } -function ll(o) { +function ml(a) { let e = { effect: ( /*effectiveValue*/ - o[8].effect + a[8].effect ), speed: ( /*effectiveValue*/ - o[8].speed + a[8].speed ) - }, t, n, i = ol(o); + }, t, n, i = gl(a); return { c() { - i.c(), t = Ge(); + i.c(), t = ot(); }, - l(a) { - i.l(a), t = Ge(); + l(l) { + i.l(l), t = ot(); }, - m(a, l) { - i.m(a, l), G(a, t, l), n = !0; + m(l, o) { + i.m(l, o), J(l, t, o), n = !0; }, - p(a, l) { - l & /*effectiveValue*/ - 256 && Wt(e, e = { + p(l, o) { + o & /*effectiveValue*/ + 256 && pn(e, e = { effect: ( /*effectiveValue*/ - a[8].effect + l[8].effect ), speed: ( /*effectiveValue*/ - a[8].speed + l[8].speed ) - }) ? (Ze(), N(i, 1, 1, Ct), Ue(), i = ol(a), i.c(), L(i, 1), i.m(t.parentNode, t)) : i.p(a, l); + }) ? (st(), H(i, 1, 1, Ut), at(), i = gl(l), i.c(), P(i, 1), i.m(t.parentNode, t)) : i.p(l, o); }, - i(a) { - n || (L(i), n = !0); + i(l) { + n || (P(i), n = !0); }, - o(a) { - N(i), n = !1; + o(l) { + H(i), n = !1; }, - d(a) { - a && x(t), i.d(a); + d(l) { + l && I(t), i.d(l); } }; } -function ys(o) { +function zr(a) { let e, t; - return e = new Pr({ + return e = new Ks({ props: { credits: ( /*effectiveValue*/ - o[8].credits + a[8].credits ), speed: ( /*effectiveValue*/ - o[8].speed + a[8].speed ), base_font_size: ( /*effectiveValue*/ - o[8].base_font_size + a[8].base_font_size ), intro_title: ( /*effectiveValue*/ - o[8].intro_title + a[8].intro_title ), intro_subtitle: ( /*effectiveValue*/ - o[8].intro_subtitle + a[8].intro_subtitle + ), + layout_style: ( + /*effectiveValue*/ + a[8].layout_style + ), + title_uppercase: ( + /*effectiveValue*/ + a[8].title_uppercase + ), + name_uppercase: ( + /*effectiveValue*/ + a[8].name_uppercase + ), + section_title_uppercase: ( + /*effectiveValue*/ + a[8].section_title_uppercase + ), + swap_font_sizes_on_two_column: ( + /*effectiveValue*/ + a[8].swap_font_sizes_on_two_column ) } }), { c() { - ut(e.$$.fragment); + kt(e.$$.fragment); }, l(n) { - st(e.$$.fragment, n); + wt(e.$$.fragment, n); }, m(n, i) { - ct(e, n, i), t = !0; + $t(e, n, i), t = !0; }, p(n, i) { - const a = {}; + const l = {}; i & /*effectiveValue*/ - 256 && (a.credits = /*effectiveValue*/ + 256 && (l.credits = /*effectiveValue*/ n[8].credits), i & /*effectiveValue*/ - 256 && (a.speed = /*effectiveValue*/ + 256 && (l.speed = /*effectiveValue*/ n[8].speed), i & /*effectiveValue*/ - 256 && (a.base_font_size = /*effectiveValue*/ + 256 && (l.base_font_size = /*effectiveValue*/ n[8].base_font_size), i & /*effectiveValue*/ - 256 && (a.intro_title = /*effectiveValue*/ + 256 && (l.intro_title = /*effectiveValue*/ n[8].intro_title), i & /*effectiveValue*/ - 256 && (a.intro_subtitle = /*effectiveValue*/ - n[8].intro_subtitle), e.$set(a); + 256 && (l.intro_subtitle = /*effectiveValue*/ + n[8].intro_subtitle), i & /*effectiveValue*/ + 256 && (l.layout_style = /*effectiveValue*/ + n[8].layout_style), i & /*effectiveValue*/ + 256 && (l.title_uppercase = /*effectiveValue*/ + n[8].title_uppercase), i & /*effectiveValue*/ + 256 && (l.name_uppercase = /*effectiveValue*/ + n[8].name_uppercase), i & /*effectiveValue*/ + 256 && (l.section_title_uppercase = /*effectiveValue*/ + n[8].section_title_uppercase), i & /*effectiveValue*/ + 256 && (l.swap_font_sizes_on_two_column = /*effectiveValue*/ + n[8].swap_font_sizes_on_two_column), e.$set(l); }, i(n) { - t || (L(e.$$.fragment, n), t = !0); + t || (P(e.$$.fragment, n), t = !0); }, o(n) { - N(e.$$.fragment, n), t = !1; + H(e.$$.fragment, n), t = !1; }, d(n) { - _t(e, n); + Ft(e, n); } }; } -function $s(o) { +function Ir(a) { let e, t; - return e = new Br({ + return e = new Ms({ props: { credits: ( /*effectiveValue*/ - o[8].credits + a[8].credits ), speed: ( /*effectiveValue*/ - o[8].speed + a[8].speed ), base_font_size: ( /*effectiveValue*/ - o[8].base_font_size + a[8].base_font_size ), intro_title: ( /*effectiveValue*/ - o[8].intro_title + a[8].intro_title ), intro_subtitle: ( /*effectiveValue*/ - o[8].intro_subtitle + a[8].intro_subtitle + ), + layout_style: ( + /*effectiveValue*/ + a[8].layout_style + ), + title_uppercase: ( + /*effectiveValue*/ + a[8].title_uppercase + ), + name_uppercase: ( + /*effectiveValue*/ + a[8].name_uppercase + ), + section_title_uppercase: ( + /*effectiveValue*/ + a[8].section_title_uppercase + ), + swap_font_sizes_on_two_column: ( + /*effectiveValue*/ + a[8].swap_font_sizes_on_two_column ) } }), { c() { - ut(e.$$.fragment); + kt(e.$$.fragment); }, l(n) { - st(e.$$.fragment, n); + wt(e.$$.fragment, n); }, m(n, i) { - ct(e, n, i), t = !0; + $t(e, n, i), t = !0; }, p(n, i) { - const a = {}; + const l = {}; i & /*effectiveValue*/ - 256 && (a.credits = /*effectiveValue*/ + 256 && (l.credits = /*effectiveValue*/ n[8].credits), i & /*effectiveValue*/ - 256 && (a.speed = /*effectiveValue*/ + 256 && (l.speed = /*effectiveValue*/ n[8].speed), i & /*effectiveValue*/ - 256 && (a.base_font_size = /*effectiveValue*/ + 256 && (l.base_font_size = /*effectiveValue*/ n[8].base_font_size), i & /*effectiveValue*/ - 256 && (a.intro_title = /*effectiveValue*/ + 256 && (l.intro_title = /*effectiveValue*/ n[8].intro_title), i & /*effectiveValue*/ - 256 && (a.intro_subtitle = /*effectiveValue*/ - n[8].intro_subtitle), e.$set(a); + 256 && (l.intro_subtitle = /*effectiveValue*/ + n[8].intro_subtitle), i & /*effectiveValue*/ + 256 && (l.layout_style = /*effectiveValue*/ + n[8].layout_style), i & /*effectiveValue*/ + 256 && (l.title_uppercase = /*effectiveValue*/ + n[8].title_uppercase), i & /*effectiveValue*/ + 256 && (l.name_uppercase = /*effectiveValue*/ + n[8].name_uppercase), i & /*effectiveValue*/ + 256 && (l.section_title_uppercase = /*effectiveValue*/ + n[8].section_title_uppercase), i & /*effectiveValue*/ + 256 && (l.swap_font_sizes_on_two_column = /*effectiveValue*/ + n[8].swap_font_sizes_on_two_column), e.$set(l); }, i(n) { - t || (L(e.$$.fragment, n), t = !0); + t || (P(e.$$.fragment, n), t = !0); }, o(n) { - N(e.$$.fragment, n), t = !1; + H(e.$$.fragment, n), t = !1; }, d(n) { - _t(e, n); + Ft(e, n); } }; } -function ws(o) { +function Rr(a) { let e, t; - return e = new Dr({ + return e = new Cs({ props: { credits: ( /*effectiveValue*/ - o[8].credits + a[8].credits ), speed: ( /*effectiveValue*/ - o[8].speed + a[8].speed ), base_font_size: ( /*effectiveValue*/ - o[8].base_font_size + a[8].base_font_size ), intro_title: ( /*effectiveValue*/ - o[8].intro_title + a[8].intro_title ), intro_subtitle: ( /*effectiveValue*/ - o[8].intro_subtitle + a[8].intro_subtitle ), background_color: ( /*effectiveValue*/ - o[8].scroll_background_color + a[8].scroll_background_color ), title_color: ( /*effectiveValue*/ - o[8].scroll_title_color + a[8].scroll_title_color ), name_color: ( /*effectiveValue*/ - o[8].scroll_name_color + a[8].scroll_name_color + ), + layout_style: ( + /*effectiveValue*/ + a[8].layout_style + ), + title_uppercase: ( + /*effectiveValue*/ + a[8].title_uppercase + ), + name_uppercase: ( + /*effectiveValue*/ + a[8].name_uppercase + ), + section_title_uppercase: ( + /*effectiveValue*/ + a[8].section_title_uppercase + ), + swap_font_sizes_on_two_column: ( + /*effectiveValue*/ + a[8].swap_font_sizes_on_two_column ) } }), { c() { - ut(e.$$.fragment); + kt(e.$$.fragment); }, l(n) { - st(e.$$.fragment, n); + wt(e.$$.fragment, n); }, m(n, i) { - ct(e, n, i), t = !0; + $t(e, n, i), t = !0; }, p(n, i) { - const a = {}; + const l = {}; i & /*effectiveValue*/ - 256 && (a.credits = /*effectiveValue*/ + 256 && (l.credits = /*effectiveValue*/ n[8].credits), i & /*effectiveValue*/ - 256 && (a.speed = /*effectiveValue*/ + 256 && (l.speed = /*effectiveValue*/ n[8].speed), i & /*effectiveValue*/ - 256 && (a.base_font_size = /*effectiveValue*/ + 256 && (l.base_font_size = /*effectiveValue*/ n[8].base_font_size), i & /*effectiveValue*/ - 256 && (a.intro_title = /*effectiveValue*/ + 256 && (l.intro_title = /*effectiveValue*/ n[8].intro_title), i & /*effectiveValue*/ - 256 && (a.intro_subtitle = /*effectiveValue*/ + 256 && (l.intro_subtitle = /*effectiveValue*/ n[8].intro_subtitle), i & /*effectiveValue*/ - 256 && (a.background_color = /*effectiveValue*/ + 256 && (l.background_color = /*effectiveValue*/ n[8].scroll_background_color), i & /*effectiveValue*/ - 256 && (a.title_color = /*effectiveValue*/ + 256 && (l.title_color = /*effectiveValue*/ n[8].scroll_title_color), i & /*effectiveValue*/ - 256 && (a.name_color = /*effectiveValue*/ - n[8].scroll_name_color), e.$set(a); + 256 && (l.name_color = /*effectiveValue*/ + n[8].scroll_name_color), i & /*effectiveValue*/ + 256 && (l.layout_style = /*effectiveValue*/ + n[8].layout_style), i & /*effectiveValue*/ + 256 && (l.title_uppercase = /*effectiveValue*/ + n[8].title_uppercase), i & /*effectiveValue*/ + 256 && (l.name_uppercase = /*effectiveValue*/ + n[8].name_uppercase), i & /*effectiveValue*/ + 256 && (l.section_title_uppercase = /*effectiveValue*/ + n[8].section_title_uppercase), i & /*effectiveValue*/ + 256 && (l.swap_font_sizes_on_two_column = /*effectiveValue*/ + n[8].swap_font_sizes_on_two_column), e.$set(l); }, i(n) { - t || (L(e.$$.fragment, n), t = !0); + t || (P(e.$$.fragment, n), t = !0); }, o(n) { - N(e.$$.fragment, n), t = !1; + H(e.$$.fragment, n), t = !1; }, d(n) { - _t(e, n); + Ft(e, n); } }; } -function ol(o) { +function gl(a) { let e, t, n, i; - const a = [ws, $s, ys], l = []; - function r(s, u) { + const l = [Rr, Ir, zr], o = []; + function s(r, u) { return ( /*effectiveValue*/ - s[8].effect === "scroll" ? 0 : ( + r[8].effect === "scroll" ? 0 : ( /*effectiveValue*/ - s[8].effect === "starwars" ? 1 : ( + r[8].effect === "starwars" ? 1 : ( /*effectiveValue*/ - s[8].effect === "matrix" ? 2 : -1 + r[8].effect === "matrix" ? 2 : -1 ) ) ); } - return ~(t = r(o)) && (n = l[t] = a[t](o)), { + return ~(t = s(a)) && (n = o[t] = l[t](a)), { c() { - e = Q("div"), n && n.c(), this.h(); + e = oe("div"), n && n.c(), this.h(); }, - l(s) { - e = K(s, "DIV", { class: !0 }); - var u = de(e); - n && n.l(u), u.forEach(x), this.h(); + l(r) { + e = ae(r, "DIV", { class: !0 }); + var u = Ce(e); + n && n.l(u), u.forEach(I), this.h(); }, h() { - W(e, "class", "main-credits-panel svelte-1hawtr7"), M( + le(e, "class", "main-credits-panel svelte-1hawtr7"), N( e, "height", /*height_style*/ - o[16] - ), M( + a[16] + ), N( e, "width", /*effectiveValue*/ - o[8].sidebar_position === "right" && /*effectiveValue*/ - o[8].show_licenses ? "calc(100% - var(--sidebar-width, 400px))" : ( + a[8].sidebar_position === "right" && /*effectiveValue*/ + a[8].show_licenses ? "calc(100% - var(--sidebar-width, 400px))" : ( /*width_style*/ - o[15] + a[15] ) ); }, - m(s, u) { - G(s, e, u), ~t && l[t].m(e, null), i = !0; + m(r, u) { + J(r, e, u), ~t && o[t].m(e, null), i = !0; }, - p(s, u) { + p(r, u) { let _ = t; - t = r(s), t === _ ? ~t && l[t].p(s, u) : (n && (Ze(), N(l[_], 1, 1, () => { - l[_] = null; - }), Ue()), ~t ? (n = l[t], n ? n.p(s, u) : (n = l[t] = a[t](s), n.c()), L(n, 1), n.m(e, null)) : n = null), u & /*height_style*/ - 65536 && M( + t = s(r), t === _ ? ~t && o[t].p(r, u) : (n && (st(), H(o[_], 1, 1, () => { + o[_] = null; + }), at()), ~t ? (n = o[t], n ? n.p(r, u) : (n = o[t] = l[t](r), n.c()), P(n, 1), n.m(e, null)) : n = null), u & /*height_style*/ + 65536 && N( e, "height", /*height_style*/ - s[16] + r[16] ), u & /*effectiveValue, width_style*/ - 33024 && M( + 33024 && N( e, "width", /*effectiveValue*/ - s[8].sidebar_position === "right" && /*effectiveValue*/ - s[8].show_licenses ? "calc(100% - var(--sidebar-width, 400px))" : ( + r[8].sidebar_position === "right" && /*effectiveValue*/ + r[8].show_licenses ? "calc(100% - var(--sidebar-width, 400px))" : ( /*width_style*/ - s[15] + r[15] ) ); }, - i(s) { - i || (L(n), i = !0); + i(r) { + i || (P(n), i = !0); }, - o(s) { - N(n), i = !1; + o(r) { + H(n), i = !1; }, - d(s) { - s && x(e), ~t && l[t].d(); + d(r) { + r && I(e), ~t && o[t].d(); } }; } -function al(o) { - let e, t, n = "Licenses", i, a, l = [], r = /* @__PURE__ */ new Map(), s, u = Ki(Object.entries( +function vl(a) { + let e, t, n = "Licenses", i, l, o = [], s = /* @__PURE__ */ new Map(), r, u = ul(Object.entries( /*effectiveValue*/ - o[8].licenses + a[8].licenses )); - const _ = (d) => ( + const _ = (c) => ( /*name*/ - d[24] + c[24] ); - for (let d = 0; d < u.length; d += 1) { - let f = el(o, u, d), g = _(f); - r.set(g, l[d] = rl(g, f)); + for (let c = 0; c < u.length; c += 1) { + let h = dl(a, u, c), g = _(h); + s.set(g, o[c] = bl(g, h)); } - let c = ( + let d = ( /*selected_license_name*/ - o[9] && sl(o) + a[9] && Dl(a) ); return { c() { - e = Q("div"), t = Q("h3"), t.textContent = n, i = Pe(), a = Q("ul"); - for (let d = 0; d < l.length; d += 1) - l[d].c(); - s = Pe(), c && c.c(), this.h(); + e = oe("div"), t = oe("h3"), t.textContent = n, i = tt(), l = oe("ul"); + for (let c = 0; c < o.length; c += 1) + o[c].c(); + r = tt(), d && d.c(), this.h(); }, - l(d) { - e = K(d, "DIV", { class: !0 }); - var f = de(e); - t = K(f, "H3", { class: !0, "data-svelte-h": !0 }), xn(t) !== "svelte-1txs4lo" && (t.textContent = n), i = Oe(f), a = K(f, "UL", {}); - var g = de(a); - for (let m = 0; m < l.length; m += 1) - l[m].l(g); - g.forEach(x), s = Oe(f), c && c.l(f), f.forEach(x), this.h(); + l(c) { + e = ae(c, "DIV", { class: !0 }); + var h = Ce(e); + t = ae(h, "H3", { class: !0, "data-svelte-h": !0 }), Zn(t) !== "svelte-1txs4lo" && (t.textContent = n), i = et(h), l = ae(h, "UL", {}); + var g = Ce(l); + for (let p = 0; p < o.length; p += 1) + o[p].l(g); + g.forEach(I), r = et(h), d && d.l(h), h.forEach(I), this.h(); }, h() { - W(t, "class", "svelte-1hawtr7"), W(e, "class", "licenses-sidebar svelte-1hawtr7"); + le(t, "class", "svelte-1hawtr7"), le(e, "class", "licenses-sidebar svelte-1hawtr7"); }, - m(d, f) { - G(d, e, f), ee(e, t), ee(e, i), ee(e, a); - for (let g = 0; g < l.length; g += 1) - l[g] && l[g].m(a, null); - ee(e, s), c && c.m(e, null); + m(c, h) { + J(c, e, h), re(e, t), re(e, i), re(e, l); + for (let g = 0; g < o.length; g += 1) + o[g] && o[g].m(l, null); + re(e, r), d && d.m(e, null); }, - p(d, f) { - f & /*selected_license_name, Object, effectiveValue, show_license*/ - 131840 && (u = Ki(Object.entries( + p(c, h) { + h & /*selected_license_name, Object, effectiveValue, show_license*/ + 131840 && (u = ul(Object.entries( /*effectiveValue*/ - d[8].licenses - )), l = gs(l, f, _, 1, d, u, r, a, cs, rl, null, el)), /*selected_license_name*/ - d[9] ? c ? c.p(d, f) : (c = sl(d), c.c(), c.m(e, null)) : c && (c.d(1), c = null); + c[8].licenses + )), o = Sr(o, h, _, 1, c, u, s, l, kr, bl, null, dl)), /*selected_license_name*/ + c[9] ? d ? d.p(c, h) : (d = Dl(c), d.c(), d.m(e, null)) : d && (d.d(1), d = null); }, - d(d) { - d && x(e); - for (let f = 0; f < l.length; f += 1) - l[f].d(); - c && c.d(); + d(c) { + c && I(e); + for (let h = 0; h < o.length; h += 1) + o[h].d(); + d && d.d(); } }; } -function rl(o, e) { +function bl(a, e) { let t, n, i = ( /*name*/ e[24] + "" - ), a, l, r, s; + ), l, o, s, r; function u() { return ( /*click_handler*/ @@ -9143,35 +9866,35 @@ function rl(o, e) { ); } return { - key: o, + key: a, first: null, c() { - t = Q("li"), n = Q("button"), a = wn(i), l = Pe(), this.h(); + t = oe("li"), n = oe("button"), l = Mn(i), o = tt(), this.h(); }, l(_) { - t = K(_, "LI", { class: !0 }); - var c = de(t); - n = K(c, "BUTTON", { type: !0, class: !0 }); - var d = de(n); - a = yn(d, i), d.forEach(x), l = Oe(c), c.forEach(x), this.h(); + t = ae(_, "LI", { class: !0 }); + var d = Ce(t); + n = ae(d, "BUTTON", { type: !0, class: !0 }); + var c = Ce(n); + l = On(c, i), c.forEach(I), o = et(d), d.forEach(I), this.h(); }, h() { - W(n, "type", "button"), W(n, "class", "svelte-1hawtr7"), Ji( + le(n, "type", "button"), le(n, "class", "svelte-1hawtr7"), cl( n, "selected", /*selected_license_name*/ e[9] === /*name*/ e[24] - ), W(t, "class", "svelte-1hawtr7"), this.first = t; + ), le(t, "class", "svelte-1hawtr7"), this.first = t; }, - m(_, c) { - G(_, t, c), ee(t, n), ee(n, a), ee(t, l), r || (s = ms(n, "click", u), r = !0); + m(_, d) { + J(_, t, d), re(t, n), re(n, l), re(t, o), s || (r = Ar(n, "click", u), s = !0); }, - p(_, c) { - e = _, c & /*effectiveValue*/ + p(_, d) { + e = _, d & /*effectiveValue*/ 256 && i !== (i = /*name*/ - e[24] + "") && $n(a, i), c & /*selected_license_name, Object, effectiveValue*/ - 768 && Ji( + e[24] + "") && Pn(l, i), d & /*selected_license_name, Object, effectiveValue*/ + 768 && cl( n, "selected", /*selected_license_name*/ @@ -9180,264 +9903,264 @@ function rl(o, e) { ); }, d(_) { - _ && x(t), r = !1, s(); + _ && I(t), s = !1, r(); } }; } -function sl(o) { - let e, t, n, i, a, l = ( +function Dl(a) { + let e, t, n, i, l, o = ( /*effectiveValue*/ - o[8].licenses[ + a[8].licenses[ /*selected_license_name*/ - o[9] + a[9] ] + "" - ), r; + ), s; return { c() { - e = Q("div"), t = Q("h4"), n = wn( + e = oe("div"), t = oe("h4"), n = Mn( /*selected_license_name*/ - o[9] - ), i = Pe(), a = Q("pre"), r = wn(l), this.h(); + a[9] + ), i = tt(), l = oe("pre"), s = Mn(o), this.h(); }, - l(s) { - e = K(s, "DIV", { class: !0 }); - var u = de(e); - t = K(u, "H4", { class: !0 }); - var _ = de(t); - n = yn( + l(r) { + e = ae(r, "DIV", { class: !0 }); + var u = Ce(e); + t = ae(u, "H4", { class: !0 }); + var _ = Ce(t); + n = On( _, /*selected_license_name*/ - o[9] - ), _.forEach(x), i = Oe(u), a = K(u, "PRE", { class: !0 }); - var c = de(a); - r = yn(c, l), c.forEach(x), u.forEach(x), this.h(); + a[9] + ), _.forEach(I), i = et(u), l = ae(u, "PRE", { class: !0 }); + var d = Ce(l); + s = On(d, o), d.forEach(I), u.forEach(I), this.h(); }, h() { - W(t, "class", "svelte-1hawtr7"), W(a, "class", "svelte-1hawtr7"), W(e, "class", "license-display svelte-1hawtr7"); + le(t, "class", "svelte-1hawtr7"), le(l, "class", "svelte-1hawtr7"), le(e, "class", "license-display svelte-1hawtr7"); }, - m(s, u) { - G(s, e, u), ee(e, t), ee(t, n), ee(e, i), ee(e, a), ee(a, r); + m(r, u) { + J(r, e, u), re(e, t), re(t, n), re(e, i), re(e, l), re(l, s); }, - p(s, u) { + p(r, u) { u & /*selected_license_name*/ - 512 && $n( + 512 && Pn( n, /*selected_license_name*/ - s[9] + r[9] ), u & /*effectiveValue, selected_license_name*/ - 768 && l !== (l = /*effectiveValue*/ - s[8].licenses[ + 768 && o !== (o = /*effectiveValue*/ + r[8].licenses[ /*selected_license_name*/ - s[9] - ] + "") && $n(r, l); + r[9] + ] + "") && Pn(s, o); }, - d(s) { - s && x(e); + d(r) { + r && I(e); } }; } -function ul(o) { +function yl(a) { let e, t, n, i = ( /*effectiveValue*/ - o[8].show_licenses && Object.keys( + a[8].show_licenses && Object.keys( /*effectiveValue*/ - o[8].licenses + a[8].licenses ).length > 0 - ), a, l = ( + ), l, o = ( /*effectiveValue*/ - o[8].show_credits && ll(o) - ), r = i && al(o); + a[8].show_credits && ml(a) + ), s = i && vl(a); return { c() { - e = Q("div"), t = Q("div"), l && l.c(), n = Pe(), r && r.c(), this.h(); + e = oe("div"), t = oe("div"), o && o.c(), n = tt(), s && s.c(), this.h(); }, - l(s) { - e = K(s, "DIV", { class: !0 }); - var u = de(e); - t = K(u, "DIV", { class: !0 }); - var _ = de(t); - l && l.l(_), n = Oe(_), r && r.l(_), _.forEach(x), u.forEach(x), this.h(); + l(r) { + e = ae(r, "DIV", { class: !0 }); + var u = Ce(e); + t = ae(u, "DIV", { class: !0 }); + var _ = Ce(t); + o && o.l(_), n = et(_), s && s.l(_), _.forEach(I), u.forEach(I), this.h(); }, h() { - W(t, "class", "credits-panel-wrapper svelte-1hawtr7"), M( + le(t, "class", "credits-panel-wrapper svelte-1hawtr7"), N( t, "width", /*width_style*/ - o[15] - ), M( + a[15] + ), N( t, "height", /*effectiveValue*/ - o[8].sidebar_position === "right" ? ( + a[8].sidebar_position === "right" ? ( /*height_style*/ - o[16] + a[16] ) : void 0 - ), M(t, "--main-panel-width", !/*effectiveValue*/ - o[8].show_credits && /*effectiveValue*/ - o[8].show_licenses ? "0px" : "auto"), W(e, "class", "outer-credits-wrapper svelte-1hawtr7"), M( + ), N(t, "--main-panel-width", !/*effectiveValue*/ + a[8].show_credits && /*effectiveValue*/ + a[8].show_licenses ? "0px" : "auto"), le(e, "class", "outer-credits-wrapper svelte-1hawtr7"), N( e, "width", /*width_style*/ - o[15] + a[15] ); }, - m(s, u) { - G(s, e, u), ee(e, t), l && l.m(t, null), ee(t, n), r && r.m(t, null), a = !0; + m(r, u) { + J(r, e, u), re(e, t), o && o.m(t, null), re(t, n), s && s.m(t, null), l = !0; }, - p(s, u) { + p(r, u) { /*effectiveValue*/ - s[8].show_credits ? l ? (l.p(s, u), u & /*effectiveValue*/ - 256 && L(l, 1)) : (l = ll(s), l.c(), L(l, 1), l.m(t, n)) : l && (Ze(), N(l, 1, 1, () => { - l = null; - }), Ue()), u & /*effectiveValue*/ + r[8].show_credits ? o ? (o.p(r, u), u & /*effectiveValue*/ + 256 && P(o, 1)) : (o = ml(r), o.c(), P(o, 1), o.m(t, n)) : o && (st(), H(o, 1, 1, () => { + o = null; + }), at()), u & /*effectiveValue*/ 256 && (i = /*effectiveValue*/ - s[8].show_licenses && Object.keys( + r[8].show_licenses && Object.keys( /*effectiveValue*/ - s[8].licenses - ).length > 0), i ? r ? r.p(s, u) : (r = al(s), r.c(), r.m(t, null)) : r && (r.d(1), r = null), u & /*width_style*/ - 32768 && M( + r[8].licenses + ).length > 0), i ? s ? s.p(r, u) : (s = vl(r), s.c(), s.m(t, null)) : s && (s.d(1), s = null), u & /*width_style*/ + 32768 && N( t, "width", /*width_style*/ - s[15] + r[15] ), u & /*effectiveValue, height_style*/ - 65792 && M( + 65792 && N( t, "height", /*effectiveValue*/ - s[8].sidebar_position === "right" ? ( + r[8].sidebar_position === "right" ? ( /*height_style*/ - s[16] + r[16] ) : void 0 ), u & /*effectiveValue*/ - 256 && M(t, "--main-panel-width", !/*effectiveValue*/ - s[8].show_credits && /*effectiveValue*/ - s[8].show_licenses ? "0px" : "auto"), u & /*width_style*/ - 32768 && M( + 256 && N(t, "--main-panel-width", !/*effectiveValue*/ + r[8].show_credits && /*effectiveValue*/ + r[8].show_licenses ? "0px" : "auto"), u & /*width_style*/ + 32768 && N( e, "width", /*width_style*/ - s[15] + r[15] ); }, - i(s) { - a || (L(l), a = !0); + i(r) { + l || (P(o), l = !0); }, - o(s) { - N(l), a = !1; + o(r) { + H(o), l = !1; }, - d(s) { - s && x(e), l && l.d(), r && r.d(); + d(r) { + r && I(e), o && o.d(), s && s.d(); } }; } -function Fs(o) { - var d, f, g; +function Lr(a) { + var c, h, g; let e, t, n, i = ( /*effectiveValue*/ - o[8].logo_position - ), a, l, r; - e = new hr({ + a[8].logo_position + ), l, o, s; + e = new ms({ props: { autoscroll: ( /*gradio*/ - o[7].autoscroll + a[7].autoscroll ), i18n: ( /*gradio*/ - o[7].i18n + a[7].i18n ), queue_position: ( /*loading_status*/ - ((d = o[6]) == null ? void 0 : d.queue_position) ?? -1 + ((c = a[6]) == null ? void 0 : c.queue_position) ?? -1 ), queue_size: ( /*loading_status*/ - ((f = o[6]) == null ? void 0 : f.queue_size) ?? 0 + ((h = a[6]) == null ? void 0 : h.queue_size) ?? 0 ), status: ( /*loading_status*/ - ((g = o[6]) == null ? void 0 : g.status) ?? "complete" + ((g = a[6]) == null ? void 0 : g.status) ?? "complete" ) } }); - const s = ( + const r = ( /*#slots*/ - o[21].default - ), u = _s( - s, - o, + a[21].default + ), u = wr( + r, + a, /*$$scope*/ - o[23], + a[23], null ); - let _ = nl(o), c = ( + let _ = hl(a), d = ( /*effectiveValue*/ - (o[8].show_licenses || /*effectiveValue*/ - o[8].show_credits) && il(o) + (a[8].show_licenses || /*effectiveValue*/ + a[8].show_credits) && pl(a) ); return { c() { - ut(e.$$.fragment), t = Pe(), u && u.c(), n = Pe(), _.c(), a = Pe(), c && c.c(), l = Ge(); - }, - l(m) { - st(e.$$.fragment, m), t = Oe(m), u && u.l(m), n = Oe(m), _.l(m), a = Oe(m), c && c.l(m), l = Ge(); - }, - m(m, v) { - ct(e, m, v), G(m, t, v), u && u.m(m, v), G(m, n, v), _.m(m, v), G(m, a, v), c && c.m(m, v), G(m, l, v), r = !0; - }, - p(m, v) { - var p, h, b; - const F = {}; - v & /*gradio*/ - 128 && (F.autoscroll = /*gradio*/ - m[7].autoscroll), v & /*gradio*/ - 128 && (F.i18n = /*gradio*/ - m[7].i18n), v & /*loading_status*/ - 64 && (F.queue_position = /*loading_status*/ - ((p = m[6]) == null ? void 0 : p.queue_position) ?? -1), v & /*loading_status*/ - 64 && (F.queue_size = /*loading_status*/ - ((h = m[6]) == null ? void 0 : h.queue_size) ?? 0), v & /*loading_status*/ - 64 && (F.status = /*loading_status*/ - ((b = m[6]) == null ? void 0 : b.status) ?? "complete"), e.$set(F), u && u.p && (!r || v & /*$$scope*/ - 8388608) && vs( + kt(e.$$.fragment), t = tt(), u && u.c(), n = tt(), _.c(), l = tt(), d && d.c(), o = ot(); + }, + l(p) { + wt(e.$$.fragment, p), t = et(p), u && u.l(p), n = et(p), _.l(p), l = et(p), d && d.l(p), o = ot(); + }, + m(p, D) { + $t(e, p, D), J(p, t, D), u && u.m(p, D), J(p, n, D), _.m(p, D), J(p, l, D), d && d.m(p, D), J(p, o, D), s = !0; + }, + p(p, D) { + var m, f, v; + const k = {}; + D & /*gradio*/ + 128 && (k.autoscroll = /*gradio*/ + p[7].autoscroll), D & /*gradio*/ + 128 && (k.i18n = /*gradio*/ + p[7].i18n), D & /*loading_status*/ + 64 && (k.queue_position = /*loading_status*/ + ((m = p[6]) == null ? void 0 : m.queue_position) ?? -1), D & /*loading_status*/ + 64 && (k.queue_size = /*loading_status*/ + ((f = p[6]) == null ? void 0 : f.queue_size) ?? 0), D & /*loading_status*/ + 64 && (k.status = /*loading_status*/ + ((v = p[6]) == null ? void 0 : v.status) ?? "complete"), e.$set(k), u && u.p && (!s || D & /*$$scope*/ + 8388608) && Br( u, - s, - m, + r, + p, /*$$scope*/ - m[23], - r ? hs( - s, + p[23], + s ? $r( + r, /*$$scope*/ - m[23], - v, + p[23], + D, null - ) : ds( + ) : Fr( /*$$scope*/ - m[23] + p[23] ), null - ), v & /*effectiveValue*/ - 256 && Wt(i, i = /*effectiveValue*/ - m[8].logo_position) ? (Ze(), N(_, 1, 1, Ct), Ue(), _ = nl(m), _.c(), L(_, 1), _.m(a.parentNode, a)) : _.p(m, v), /*effectiveValue*/ - m[8].show_licenses || /*effectiveValue*/ - m[8].show_credits ? c ? (c.p(m, v), v & /*effectiveValue*/ - 256 && L(c, 1)) : (c = il(m), c.c(), L(c, 1), c.m(l.parentNode, l)) : c && (Ze(), N(c, 1, 1, () => { - c = null; - }), Ue()); - }, - i(m) { - r || (L(e.$$.fragment, m), L(u, m), L(_), L(c), r = !0); - }, - o(m) { - N(e.$$.fragment, m), N(u, m), N(_), N(c), r = !1; - }, - d(m) { - m && (x(t), x(n), x(a), x(l)), _t(e, m), u && u.d(m), _.d(m), c && c.d(m); + ), D & /*effectiveValue*/ + 256 && pn(i, i = /*effectiveValue*/ + p[8].logo_position) ? (st(), H(_, 1, 1, Ut), at(), _ = hl(p), _.c(), P(_, 1), _.m(l.parentNode, l)) : _.p(p, D), /*effectiveValue*/ + p[8].show_licenses || /*effectiveValue*/ + p[8].show_credits ? d ? (d.p(p, D), D & /*effectiveValue*/ + 256 && P(d, 1)) : (d = pl(p), d.c(), P(d, 1), d.m(o.parentNode, o)) : d && (st(), H(d, 1, 1, () => { + d = null; + }), at()); + }, + i(p) { + s || (P(e.$$.fragment, p), P(u, p), P(_), P(d), s = !0); + }, + o(p) { + H(e.$$.fragment, p), H(u, p), H(_), H(d), s = !1; + }, + d(p) { + p && (I(t), I(n), I(l), I(o)), Ft(e, p), u && u.d(p), _.d(p), d && d.d(p); } }; } -function ks(o) { +function Or(a) { let e, t = `.credits-panel-wrapper { flex-direction: row !important; --panel-direction: row; @@ -9451,20 +10174,20 @@ function ks(o) { .main-credits-panel { width: calc(100% - var(--sidebar-width, 400px)) !important; }`; return { c() { - e = Q("style"), e.textContent = t; + e = oe("style"), e.textContent = t; }, l(n) { - e = K(n, "STYLE", { "data-svelte-h": !0 }), xn(e) !== "svelte-1hbm6cs" && (e.textContent = t); + e = ae(n, "STYLE", { "data-svelte-h": !0 }), Zn(e) !== "svelte-1hbm6cs" && (e.textContent = t); }, m(n, i) { - G(n, e, i); + J(n, e, i); }, d(n) { - n && x(e); + n && I(e); } }; } -function Cs(o) { +function Pr(a) { let e, t = `.credits-panel-wrapper { flex-direction: column !important; --panel-direction: column; @@ -9484,111 +10207,112 @@ function Cs(o) { }`; return { c() { - e = Q("style"), e.textContent = t; + e = oe("style"), e.textContent = t; }, l(n) { - e = K(n, "STYLE", { "data-svelte-h": !0 }), xn(e) !== "svelte-gyscx4" && (e.textContent = t); + e = ae(n, "STYLE", { "data-svelte-h": !0 }), Zn(e) !== "svelte-gyscx4" && (e.textContent = t); }, m(n, i) { - G(n, e, i); + J(n, e, i); }, d(n) { - n && x(e); + n && I(e); } }; } -function Es(o) { +function Mr(a) { let e, t, n, i; - e = new go({ + e = new ba({ props: { visible: ( /*visible*/ - o[2] + a[2] ), elem_id: ( /*elem_id*/ - o[0] + a[0] ), elem_classes: ( /*elem_classes*/ - o[1] + a[1] ), container: ( /*container*/ - o[3] + a[3] ), scale: ( /*scale*/ - o[4] + a[4] ), min_width: ( /*min_width*/ - o[5] + a[5] ), padding: !1, - $$slots: { default: [Fs] }, - $$scope: { ctx: o } + $$slots: { default: [Lr] }, + $$scope: { ctx: a } } }); - function a(s, u) { + function l(r, u) { return ( /*effectiveValue*/ - s[8].sidebar_position === "bottom" ? Cs : ks + r[8].sidebar_position === "bottom" ? Pr : Or ); } - let l = a(o), r = l(o); + let o = l(a), s = o(a); return { c() { - ut(e.$$.fragment), t = Pe(), r.c(), n = Ge(); + kt(e.$$.fragment), t = tt(), s.c(), n = ot(); }, - l(s) { - st(e.$$.fragment, s), t = Oe(s); - const u = fs("svelte-1lsh18a", document.head); - r.l(u), n = Ge(), u.forEach(x); + l(r) { + wt(e.$$.fragment, r), t = et(r); + const u = Cr("svelte-1lsh18a", document.head); + s.l(u), n = ot(), u.forEach(I); }, - m(s, u) { - ct(e, s, u), G(s, t, u), r.m(document.head, null), ee(document.head, n), i = !0; + m(r, u) { + $t(e, r, u), J(r, t, u), s.m(document.head, null), re(document.head, n), i = !0; }, - p(s, [u]) { + p(r, [u]) { const _ = {}; u & /*visible*/ 4 && (_.visible = /*visible*/ - s[2]), u & /*elem_id*/ + r[2]), u & /*elem_id*/ 1 && (_.elem_id = /*elem_id*/ - s[0]), u & /*elem_classes*/ + r[0]), u & /*elem_classes*/ 2 && (_.elem_classes = /*elem_classes*/ - s[1]), u & /*container*/ + r[1]), u & /*container*/ 8 && (_.container = /*container*/ - s[3]), u & /*scale*/ + r[3]), u & /*scale*/ 16 && (_.scale = /*scale*/ - s[4]), u & /*min_width*/ + r[4]), u & /*min_width*/ 32 && (_.min_width = /*min_width*/ - s[5]), u & /*$$scope, effectiveValue, width_style, height_style, selected_license_name, logo_panel_height, logo_justify, gradio, logo_width_style, logo_height_style, object_fit, loading_status*/ - 8519616 && (_.$$scope = { dirty: u, ctx: s }), e.$set(_), l !== (l = a(s)) && (r.d(1), r = l(s), r && (r.c(), r.m(n.parentNode, n))); + r[5]), u & /*$$scope, effectiveValue, width_style, height_style, selected_license_name, logo_panel_height, logo_justify, gradio, logo_width_style, logo_height_style, object_fit, loading_status*/ + 8519616 && (_.$$scope = { dirty: u, ctx: r }), e.$set(_), o !== (o = l(r)) && (s.d(1), s = o(r), s && (s.c(), s.m(n.parentNode, n))); }, - i(s) { - i || (L(e.$$.fragment, s), i = !0); + i(r) { + i || (P(e.$$.fragment, r), i = !0); }, - o(s) { - N(e.$$.fragment, s), i = !1; + o(r) { + H(e.$$.fragment, r), i = !1; }, - d(s) { - s && x(t), _t(e, s), r.d(s), x(n); + d(r) { + r && I(t), Ft(e, r), s.d(r), I(n); } }; } -function As(o, e, t) { - let n, i, a, l, r, s, u, _, { $$slots: c = {}, $$scope: d } = e, { value: f = null } = e, { elem_id: g = "" } = e, { elem_classes: m = [] } = e, { visible: v = !0 } = e, { container: F = !0 } = e, { scale: p = null } = e, { min_width: h = void 0 } = e, { height: b = void 0 } = e, { width: y = void 0 } = e, { loading_status: D } = e, { gradio: $ } = e, S = null; - function k(C) { - t(9, S = S === C ? null : C); - } - const q = (C) => k(C); - return o.$$set = (C) => { - "value" in C && t(18, f = C.value), "elem_id" in C && t(0, g = C.elem_id), "elem_classes" in C && t(1, m = C.elem_classes), "visible" in C && t(2, v = C.visible), "container" in C && t(3, F = C.container), "scale" in C && t(4, p = C.scale), "min_width" in C && t(5, h = C.min_width), "height" in C && t(19, b = C.height), "width" in C && t(20, y = C.width), "loading_status" in C && t(6, D = C.loading_status), "gradio" in C && t(7, $ = C.gradio), "$$scope" in C && t(23, d = C.$$scope); - }, o.$$.update = () => { - o.$$.dirty & /*value*/ - 262144 && t(8, n = f || { +function Nr(a, e, t) { + let n, i, l, o, s, r, u, _, { $$slots: d = {}, $$scope: c } = e, { value: h = null } = e, { elem_id: g = "" } = e, { elem_classes: p = [] } = e, { visible: D = !0 } = e, { container: k = !0 } = e, { scale: m = null } = e, { min_width: f = void 0 } = e, { height: v = void 0 } = e, { width: y = void 0 } = e, { loading_status: b } = e, { gradio: F } = e, A = null; + function E(w) { + t(9, A = A === w ? null : w); + } + const q = (w) => E(w); + return a.$$set = (w) => { + "value" in w && t(18, h = w.value), "elem_id" in w && t(0, g = w.elem_id), "elem_classes" in w && t(1, p = w.elem_classes), "visible" in w && t(2, D = w.visible), "container" in w && t(3, k = w.container), "scale" in w && t(4, m = w.scale), "min_width" in w && t(5, f = w.min_width), "height" in w && t(19, v = w.height), "width" in w && t(20, y = w.width), "loading_status" in w && t(6, b = w.loading_status), "gradio" in w && t(7, F = w.gradio), "$$scope" in w && t(23, c = w.$$scope); + }, a.$$.update = () => { + a.$$.dirty & /*value*/ + 262144 && t(8, n = h || { credits: [ + { section_title: "Default Team" }, { title: "Lead Developer", name: "John Doe" @@ -9596,18 +10320,6 @@ function As(o, e, t) { { title: "UI/UX Design", name: "Jane Smith" - }, - { - title: "Backend Engineering", - name: "Alex Ray" - }, - { - title: "Component Concept", - name: "Your Name" - }, - { - title: "Quality Assurance", - name: "Sam Wilson" } ], licenses: { @@ -9630,45 +10342,50 @@ function As(o, e, t) { logo_height: null, scroll_background_color: null, scroll_title_color: null, - scroll_name_color: null - }), o.$$.dirty & /*height*/ - 524288 && t(16, i = typeof b == "number" ? `${b}px` : b || "500px"), o.$$.dirty & /*width*/ - 1048576 && t(15, a = typeof y == "number" ? `${y}px` : y || "100%"), o.$$.dirty & /*effectiveValue*/ - 256 && t(14, l = n.logo_width ? typeof n.logo_width == "number" ? `${n.logo_width}px` : n.logo_width : "auto"), o.$$.dirty & /*effectiveValue*/ - 256 && t(13, r = n.logo_height ? typeof n.logo_height == "number" ? `${n.logo_height}px` : n.logo_height : "100px"), o.$$.dirty & /*effectiveValue*/ - 256 && t(12, s = n.logo_height ? typeof n.logo_height == "number" ? `${n.logo_height}px` : n.logo_height : "100px"), o.$$.dirty & /*effectiveValue*/ - 256 && t(11, u = n.logo_sizing === "stretch" ? "fill" : n.logo_sizing === "crop" ? "cover" : "contain"), o.$$.dirty & /*effectiveValue*/ + scroll_name_color: null, + layout_style: "stacked", + title_uppercase: !1, + name_uppercase: !1, + section_title_uppercase: !0, + swap_font_sizes_on_two_column: !1 + }), a.$$.dirty & /*height*/ + 524288 && t(16, i = typeof v == "number" ? `${v}px` : v || "500px"), a.$$.dirty & /*width*/ + 1048576 && t(15, l = typeof y == "number" ? `${y}px` : y || "100%"), a.$$.dirty & /*effectiveValue*/ + 256 && t(14, o = n.logo_width ? typeof n.logo_width == "number" ? `${n.logo_width}px` : n.logo_width : "auto"), a.$$.dirty & /*effectiveValue*/ + 256 && t(13, s = n.logo_height ? typeof n.logo_height == "number" ? `${n.logo_height}px` : n.logo_height : "100px"), a.$$.dirty & /*effectiveValue*/ + 256 && t(12, r = n.logo_height ? typeof n.logo_height == "number" ? `${n.logo_height}px` : n.logo_height : "100px"), a.$$.dirty & /*effectiveValue*/ + 256 && t(11, u = n.logo_sizing === "stretch" ? "fill" : n.logo_sizing === "crop" ? "cover" : "contain"), a.$$.dirty & /*effectiveValue*/ 256 && t(10, _ = n.logo_position === "center" ? "center" : n.logo_position === "left" ? "flex-start" : "flex-end"); }, [ g, - m, - v, - F, p, - h, D, - $, + k, + m, + f, + b, + F, n, - S, + A, _, u, - s, r, + s, + o, l, - a, i, - k, - f, - b, + E, + h, + v, y, - c, + d, q, - d + c ]; } -class w3 extends us { +class R5 extends yr { constructor(e) { - super(), ps(this, e, As, Es, Wt, { + super(), Er(this, e, Nr, Mr, pn, { value: 18, elem_id: 0, elem_classes: 1, @@ -9684,5 +10401,5 @@ class w3 extends us { } } export { - w3 as default + R5 as default };