diff --git "a/src/backend/gradio_log/templates/component/index.js" "b/src/backend/gradio_log/templates/component/index.js" --- "a/src/backend/gradio_log/templates/component/index.js" +++ "b/src/backend/gradio_log/templates/component/index.js" @@ -1,30 +1,30 @@ const { - SvelteComponent: $l, - assign: Zl, - children: Jl, - claim_element: Ql, - create_slot: eh, + SvelteComponent: Zl, + assign: Jl, + children: Ql, + claim_element: eh, + create_slot: th, detach: ia, - element: th, - get_all_dirty_from_scope: rh, - get_slot_changes: ih, - get_spread_update: sh, - init: nh, - insert_hydration: ah, - safe_not_equal: oh, + element: rh, + get_all_dirty_from_scope: ih, + get_slot_changes: sh, + get_spread_update: nh, + init: ah, + insert_hydration: oh, + safe_not_equal: lh, set_dynamic_element_data: sa, - set_style: Xe, + set_style: Ye, toggle_class: nt, - transition_in: Qo, - transition_out: e0, - update_slot_base: lh + transition_in: e0, + transition_out: t0, + update_slot_base: hh } = window.__gradio__svelte__internal; -function hh(i) { +function ch(i) { let e, t, r; const n = ( /*#slots*/ i[22].default - ), o = eh( + ), o = th( n, i, /*$$scope*/ @@ -46,16 +46,16 @@ function hh(i) { } ], s = {}; for (let a = 0; a < c.length; a += 1) - s = Zl(s, c[a]); + s = Jl(s, c[a]); return { c() { - e = th( + e = rh( /*tag*/ i[18] ), o && o.c(), this.h(); }, l(a) { - e = Ql( + e = eh( a, /*tag*/ (i[18] || "null").toUpperCase(), @@ -65,7 +65,7 @@ function hh(i) { class: !0 } ); - var u = Jl(e); + var u = Ql(e); o && o.l(u), u.forEach(ia), this.h(); }, h() { @@ -104,7 +104,7 @@ function hh(i) { "auto-margin", /*scale*/ i[16] === null - ), Xe( + ), Ye( e, "height", /*get_dimension*/ @@ -112,7 +112,7 @@ function hh(i) { /*height*/ i[1] ) - ), Xe( + ), Ye( e, "min-height", /*get_dimension*/ @@ -120,7 +120,7 @@ function hh(i) { /*min_height*/ i[2] ) - ), Xe( + ), Ye( e, "max-height", /*get_dimension*/ @@ -128,7 +128,7 @@ function hh(i) { /*max_height*/ i[3] ) - ), Xe(e, "width", typeof /*width*/ + ), Ye(e, "width", typeof /*width*/ i[4] == "number" ? `calc(min(${/*width*/ i[4]}px, 100%))` : ( /*get_dimension*/ @@ -136,12 +136,12 @@ function hh(i) { /*width*/ i[4] ) - )), Xe( + )), Ye( e, "border-style", /*variant*/ i[7] - ), Xe( + ), Ye( e, "overflow", /*allow_overflow*/ @@ -149,32 +149,32 @@ function hh(i) { /*overflow_behavior*/ i[15] ) : "hidden" - ), Xe( + ), Ye( e, "flex-grow", /*scale*/ i[16] - ), Xe(e, "min-width", `calc(min(${/*min_width*/ - i[17]}px, 100%))`), Xe(e, "border-width", "var(--block-border-width)"); + ), Ye(e, "min-width", `calc(min(${/*min_width*/ + i[17]}px, 100%))`), Ye(e, "border-width", "var(--block-border-width)"); }, m(a, u) { - ah(a, e, u), o && o.m(e, null), r = !0; + oh(a, e, u), o && o.m(e, null), r = !0; }, p(a, u) { o && o.p && (!r || u & /*$$scope*/ - 2097152) && lh( + 2097152) && hh( o, n, a, /*$$scope*/ a[21], - r ? ih( + r ? sh( n, /*$$scope*/ a[21], u, null - ) : rh( + ) : ih( /*$$scope*/ a[21] ), @@ -182,7 +182,7 @@ function hh(i) { ), sa( /*tag*/ a[18] - )(e, s = sh(c, [ + )(e, s = nh(c, [ (!r || u & /*test_id*/ 1024) && { "data-testid": ( /*test_id*/ @@ -229,7 +229,7 @@ function hh(i) { /*scale*/ a[16] === null ), u & /*height*/ - 2 && Xe( + 2 && Ye( e, "height", /*get_dimension*/ @@ -238,7 +238,7 @@ function hh(i) { a[1] ) ), u & /*min_height*/ - 4 && Xe( + 4 && Ye( e, "min-height", /*get_dimension*/ @@ -247,7 +247,7 @@ function hh(i) { a[2] ) ), u & /*max_height*/ - 8 && Xe( + 8 && Ye( e, "max-height", /*get_dimension*/ @@ -256,7 +256,7 @@ function hh(i) { a[3] ) ), u & /*width*/ - 16 && Xe(e, "width", typeof /*width*/ + 16 && Ye(e, "width", typeof /*width*/ a[4] == "number" ? `calc(min(${/*width*/ a[4]}px, 100%))` : ( /*get_dimension*/ @@ -265,13 +265,13 @@ function hh(i) { a[4] ) )), u & /*variant*/ - 128 && Xe( + 128 && Ye( e, "border-style", /*variant*/ a[7] ), u & /*allow_overflow, overflow_behavior*/ - 49152 && Xe( + 49152 && Ye( e, "overflow", /*allow_overflow*/ @@ -280,30 +280,30 @@ function hh(i) { a[15] ) : "hidden" ), u & /*scale*/ - 65536 && Xe( + 65536 && Ye( e, "flex-grow", /*scale*/ a[16] ), u & /*min_width*/ - 131072 && Xe(e, "min-width", `calc(min(${/*min_width*/ + 131072 && Ye(e, "min-width", `calc(min(${/*min_width*/ a[17]}px, 100%))`); }, i(a) { - r || (Qo(o, a), r = !0); + r || (e0(o, a), r = !0); }, o(a) { - e0(o, a), r = !1; + t0(o, a), r = !1; }, d(a) { a && ia(e), o && o.d(a); } }; } -function ch(i) { +function uh(i) { let e, t = ( /*tag*/ - i[18] && hh(i) + i[18] && ch(i) ); return { c() { @@ -320,17 +320,17 @@ function ch(i) { r[18] && t.p(r, n); }, i(r) { - e || (Qo(t, r), e = !0); + e || (e0(t, r), e = !0); }, o(r) { - e0(t, r), e = !1; + t0(t, r), e = !1; }, d(r) { t && t.d(r); } }; } -function uh(i, e, t) { +function dh(i, e, t) { let { $$slots: r = {}, $$scope: n } = e, { height: o = void 0 } = e, { min_height: c = void 0 } = e, { max_height: s = void 0 } = e, { width: a = void 0 } = e, { elem_id: u = "" } = e, { elem_classes: p = [] } = e, { variant: f = "solid" } = e, { border_mode: g = "base" } = e, { padding: v = !0 } = e, { type: C = "normal" } = e, { test_id: b = void 0 } = e, { explicit_call: d = !1 } = e, { container: m = !0 } = e, { visible: h = !0 } = e, { allow_overflow: l = !0 } = e, { overflow_behavior: _ = "auto" } = e, { scale: S = null } = e, { min_width: x = 0 } = e, { flex: D = !1 } = e; h || (D = !1); let y = C === "fieldset" ? "fieldset" : "div"; @@ -370,9 +370,9 @@ function uh(i, e, t) { r ]; } -class dh extends $l { +class fh extends Zl { constructor(e) { - super(), nh(this, e, uh, ch, oh, { + super(), ah(this, e, dh, uh, lh, { height: 1, min_height: 2, max_height: 3, @@ -449,42 +449,42 @@ class ie { } } ie.prototype.__proto__ = Error.prototype; -var fh = function(e, t) { +var mh = function(e, t) { return e.indexOf(t) !== -1; -}, mh = function(e, t) { +}, ph = function(e, t) { return e === void 0 ? t : e; -}, ph = /([A-Z])/g, _h = function(e) { - return e.replace(ph, "-$1").toLowerCase(); -}, gh = { +}, _h = /([A-Z])/g, gh = function(e) { + return e.replace(_h, "-$1").toLowerCase(); +}, vh = { "&": "&", ">": ">", "<": "<", '"': """, "'": "'" -}, vh = /[&><"']/g; -function bh(i) { - return String(i).replace(vh, (e) => gh[e]); +}, bh = /[&><"']/g; +function wh(i) { + return String(i).replace(bh, (e) => vh[e]); } -var t0 = function i(e) { +var r0 = function i(e) { return e.type === "ordgroup" || e.type === "color" ? e.body.length === 1 ? i(e.body[0]) : e : e.type === "font" ? i(e.body) : e; -}, wh = function(e) { - var t = t0(e); - return t.type === "mathord" || t.type === "textord" || t.type === "atom"; }, yh = function(e) { + var t = r0(e); + return t.type === "mathord" || t.type === "textord" || t.type === "atom"; +}, Sh = function(e) { if (!e) throw new Error("Expected non-null, but got " + String(e)); return e; -}, Sh = function(e) { +}, Ch = function(e) { var t = /^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e); return t ? t[2] !== ":" || !/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1]) ? null : t[1].toLowerCase() : "_relative"; }, _e = { - contains: fh, - deflt: mh, - escape: bh, - hyphenate: _h, - getBaseElem: t0, - isCharacterBox: wh, - protocolFromUrl: Sh + contains: mh, + deflt: ph, + escape: wh, + hyphenate: gh, + getBaseElem: r0, + isCharacterBox: yh, + protocolFromUrl: Ch }, Hi = { displayMode: { type: "boolean", @@ -572,7 +572,7 @@ var t0 = function i(e) { cli: !1 } }; -function Ch(i) { +function xh(i) { if (i.default) return i.default; var e = i.type, t = Array.isArray(e) ? e[0] : e; @@ -595,7 +595,7 @@ class cn { for (var t in Hi) if (Hi.hasOwnProperty(t)) { var r = Hi[t]; - this[t] = e[t] !== void 0 ? r.processor ? r.processor(e[t]) : e[t] : Ch(r); + this[t] = e[t] !== void 0 ? r.processor ? r.processor(e[t]) : e[t] : xh(r); } } /** @@ -647,7 +647,7 @@ class cn { return !!r; } } -class ur { +class dr { constructor(e, t, r) { this.id = void 0, this.size = void 0, this.cramped = void 0, this.id = e, this.size = t, this.cramped = r; } @@ -655,40 +655,40 @@ class ur { * Get the style of a superscript given a base in the current style. */ sup() { - return Ut[xh[this.id]]; + return Ut[kh[this.id]]; } /** * Get the style of a subscript given a base in the current style. */ sub() { - return Ut[kh[this.id]]; + return Ut[Dh[this.id]]; } /** * Get the style of a fraction numerator given the fraction in the current * style. */ fracNum() { - return Ut[Dh[this.id]]; + return Ut[Eh[this.id]]; } /** * Get the style of a fraction denominator given the fraction in the current * style. */ fracDen() { - return Ut[Eh[this.id]]; + return Ut[Ah[this.id]]; } /** * Get the cramped version of a style (in particular, cramping a cramped style * doesn't change the style). */ cramp() { - return Ut[Ah[this.id]]; + return Ut[Th[this.id]]; } /** * Get a text or display version of this style. */ text() { - return Ut[Th[this.id]]; + return Ut[Mh[this.id]]; } /** * Return true if this style is tightly spaced (scriptstyle/scriptscriptstyle) @@ -697,7 +697,7 @@ class ur { return this.size >= 2; } } -var un = 0, Xi = 1, qr = 2, sr = 3, hi = 4, bt = 5, Wr = 6, tt = 7, Ut = [new ur(un, 0, !1), new ur(Xi, 0, !0), new ur(qr, 1, !1), new ur(sr, 1, !0), new ur(hi, 2, !1), new ur(bt, 2, !0), new ur(Wr, 3, !1), new ur(tt, 3, !0)], xh = [hi, bt, hi, bt, Wr, tt, Wr, tt], kh = [bt, bt, bt, bt, tt, tt, tt, tt], Dh = [qr, sr, hi, bt, Wr, tt, Wr, tt], Eh = [sr, sr, bt, bt, tt, tt, tt, tt], Ah = [Xi, Xi, sr, sr, bt, bt, tt, tt], Th = [un, Xi, qr, sr, qr, sr, qr, sr], ve = { +var un = 0, Xi = 1, qr = 2, nr = 3, hi = 4, bt = 5, Wr = 6, tt = 7, Ut = [new dr(un, 0, !1), new dr(Xi, 0, !0), new dr(qr, 1, !1), new dr(nr, 1, !0), new dr(hi, 2, !1), new dr(bt, 2, !0), new dr(Wr, 3, !1), new dr(tt, 3, !0)], kh = [hi, bt, hi, bt, Wr, tt, Wr, tt], Dh = [bt, bt, bt, bt, tt, tt, tt, tt], Eh = [qr, nr, hi, bt, Wr, tt, Wr, tt], Ah = [nr, nr, bt, bt, tt, tt, tt, tt], Th = [Xi, Xi, nr, nr, bt, bt, tt, tt], Mh = [un, Xi, qr, nr, qr, nr, qr, nr], ve = { DISPLAY: Ut[un], TEXT: Ut[qr], SCRIPT: Ut[hi], @@ -761,7 +761,7 @@ var un = 0, Xi = 1, qr = 2, sr = 3, hi = 4, bt = 5, Wr = 6, tt = 7, Ut = [new ur name: "hangul", blocks: [[44032, 55215]] }]; -function Mh(i) { +function Bh(i) { for (var e = 0; e < Us.length; e++) for (var t = Us[e], r = 0; r < t.blocks.length; r++) { var n = t.blocks[r]; @@ -772,13 +772,13 @@ function Mh(i) { } var Ni = []; Us.forEach((i) => i.blocks.forEach((e) => Ni.push(...e))); -function r0(i) { +function i0(i) { for (var e = 0; e < Ni.length; e += 2) if (i >= Ni[e] && i <= Ni[e + 1]) return !0; return !1; } -var Ir = 80, Bh = function(e, t) { +var Ir = 80, Fh = function(e, t) { return "M95," + (622 + e + t) + ` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 @@ -791,7 +791,7 @@ H400000v` + (40 + e) + `H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z M` + (834 + e) + " " + t + "h400000v" + (40 + e) + "h-400000z"; -}, Fh = function(e, t) { +}, Rh = function(e, t) { return "M263," + (601 + e + t) + `c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 @@ -803,7 +803,7 @@ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z M` + (1001 + e) + " " + t + "h400000v" + (40 + e) + "h-400000z"; -}, Rh = function(e, t) { +}, Lh = function(e, t) { return "M983 " + (10 + e + t) + ` l` + e / 3.13 + " -" + e + ` c4,-6.7,10,-10,18,-10 H400000v` + (40 + e) + ` @@ -814,7 +814,7 @@ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z M` + (1001 + e) + " " + t + "h400000v" + (40 + e) + "h-400000z"; -}, Lh = function(e, t) { +}, Oh = function(e, t) { return "M424," + (2398 + e + t) + ` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 @@ -826,7 +826,7 @@ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M` + (1001 + e) + " " + t + ` h400000v` + (40 + e) + "h-400000z"; -}, Oh = function(e, t) { +}, Ih = function(e, t) { return "M473," + (2713 + e + t) + ` c339.3,-1799.3,509.3,-2700,510,-2702 l` + e / 5.298 + " -" + e + ` c3.3,-7.3,9.3,-11,18,-11 H400000v` + (40 + e) + `H1017.7 @@ -835,40 +835,40 @@ c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 606zM` + (1001 + e) + " " + t + "h400000v" + (40 + e) + "H1017.7z"; -}, Ih = function(e) { +}, Ph = function(e) { var t = e / 2; return "M400000 " + e + " H0 L" + t + " 0 l65 45 L145 " + (e - 80) + " H400000z"; -}, Ph = function(e, t, r) { +}, zh = function(e, t, r) { var n = r - 54 - t - e; return "M702 " + (e + t) + "H400000" + (40 + e) + ` H742v` + n + `l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 219 661 l218 661zM702 ` + t + "H400000v" + (40 + e) + "H742z"; -}, zh = function(e, t, r) { +}, Hh = function(e, t, r) { t = 1e3 * t; var n = ""; switch (e) { case "sqrtMain": - n = Bh(t, Ir); + n = Fh(t, Ir); break; case "sqrtSize1": - n = Fh(t, Ir); + n = Rh(t, Ir); break; case "sqrtSize2": - n = Rh(t, Ir); + n = Lh(t, Ir); break; case "sqrtSize3": - n = Lh(t, Ir); + n = Oh(t, Ir); break; case "sqrtSize4": - n = Oh(t, Ir); + n = Ih(t, Ir); break; case "sqrtTall": - n = Ph(t, Ir, r); + n = zh(t, Ir, r); } return n; -}, Hh = function(e, t) { +}, Nh = function(e, t) { switch (e) { case "⎜": return "M291 0 H417 V" + t + " H291z M291 0 H417 V" + t + " H291z"; @@ -1143,7 +1143,7 @@ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z` -}, Nh = function(e, t) { +}, qh = function(e, t) { switch (e) { case "lbrack": return "M403 1759 V84 H666 V0 H319 V1759 v" + t + ` v1759 h347 v-84 @@ -3457,14 +3457,14 @@ var Wt = { ю: "m", я: "r" }; -function qh(i, e) { +function Uh(i, e) { Wt[i] = e; } function dn(i, e, t) { if (!Wt[e]) throw new Error("Font metrics not found for font: " + e + "."); var r = i.charCodeAt(0), n = Wt[e][r]; - if (!n && i[0] in aa && (r = aa[i[0]].charCodeAt(0), n = Wt[e][r]), !n && t === "text" && r0(r) && (n = Wt[e][77]), n) + if (!n && i[0] in aa && (r = aa[i[0]].charCodeAt(0), n = Wt[e][r]), !n && t === "text" && i0(r) && (n = Wt[e][77]), n) return { depth: n[0], height: n[1], @@ -3474,7 +3474,7 @@ function dn(i, e, t) { }; } var ms = {}; -function Uh(i) { +function Wh(i) { var e; if (i >= 5 ? e = 0 : i >= 3 ? e = 1 : e = 2, !ms[e]) { var t = ms[e] = { @@ -3485,7 +3485,7 @@ function Uh(i) { } return ms[e]; } -var Wh = [ +var jh = [ // Each element contains [textsize, scriptsize, scriptscriptsize]. // The size mappings are taken from TeX with \normalsize=10pt. [1, 1, 1], @@ -3525,9 +3525,9 @@ var Wh = [ 2.074, 2.488 ], la = function(e, t) { - return t.size < 2 ? e : Wh[e - 1][t.size - 1]; + return t.size < 2 ? e : jh[e - 1][t.size - 1]; }; -class ir { +class sr { // A font family applies to a group of fonts (i.e. SansSerif), while a font // represents a specific font (i.e. SansSerif Bold). // See: https://tex.stackexchange.com/questions/22350/difference-between-textrm-and-mathrm @@ -3535,7 +3535,7 @@ class ir { * The base size index. */ constructor(e) { - this.style = void 0, this.color = void 0, this.size = void 0, this.textSize = void 0, this.phantom = void 0, this.font = void 0, this.fontFamily = void 0, this.fontWeight = void 0, this.fontShape = void 0, this.sizeMultiplier = void 0, this.maxSize = void 0, this.minRuleThickness = void 0, this._fontMetrics = void 0, this.style = e.style, this.color = e.color, this.size = e.size || ir.BASESIZE, this.textSize = e.textSize || this.size, this.phantom = !!e.phantom, this.font = e.font || "", this.fontFamily = e.fontFamily || "", this.fontWeight = e.fontWeight || "", this.fontShape = e.fontShape || "", this.sizeMultiplier = oa[this.size - 1], this.maxSize = e.maxSize, this.minRuleThickness = e.minRuleThickness, this._fontMetrics = void 0; + this.style = void 0, this.color = void 0, this.size = void 0, this.textSize = void 0, this.phantom = void 0, this.font = void 0, this.fontFamily = void 0, this.fontWeight = void 0, this.fontShape = void 0, this.sizeMultiplier = void 0, this.maxSize = void 0, this.minRuleThickness = void 0, this._fontMetrics = void 0, this.style = e.style, this.color = e.color, this.size = e.size || sr.BASESIZE, this.textSize = e.textSize || this.size, this.phantom = !!e.phantom, this.font = e.font || "", this.fontFamily = e.fontFamily || "", this.fontWeight = e.fontWeight || "", this.fontShape = e.fontShape || "", this.sizeMultiplier = oa[this.size - 1], this.maxSize = e.maxSize, this.minRuleThickness = e.minRuleThickness, this._fontMetrics = void 0; } /** * Returns a new options object with the same properties as "this". Properties @@ -3557,7 +3557,7 @@ class ir { }; for (var r in e) e.hasOwnProperty(r) && (t[r] = e[r]); - return new ir(t); + return new sr(t); } /** * Return an options object with the given style. If `this.style === style`, @@ -3594,8 +3594,8 @@ class ir { */ havingBaseStyle(e) { e = e || this.style.text(); - var t = la(ir.BASESIZE, e); - return this.size === t && this.textSize === ir.BASESIZE && this.style === e ? this : this.extend({ + var t = la(sr.BASESIZE, e); + return this.size === t && this.textSize === sr.BASESIZE && this.style === e ? this : this.extend({ style: e, size: t }); @@ -3687,13 +3687,13 @@ class ir { * `this.havingSize(BASESIZE).sizingClasses(this)`. */ baseSizingClasses() { - return this.size !== ir.BASESIZE ? ["sizing", "reset-size" + this.size, "size" + ir.BASESIZE] : []; + return this.size !== sr.BASESIZE ? ["sizing", "reset-size" + this.size, "size" + sr.BASESIZE] : []; } /** * Return the font metrics for this size. */ fontMetrics() { - return this._fontMetrics || (this._fontMetrics = Uh(this.size)), this._fontMetrics; + return this._fontMetrics || (this._fontMetrics = Wh(this.size)), this._fontMetrics; } /** * Gets the CSS color of the current options object @@ -3702,7 +3702,7 @@ class ir { return this.phantom ? "transparent" : this.color; } } -ir.BASESIZE = 6; +sr.BASESIZE = 6; var Ws = { // https://en.wikibooks.org/wiki/LaTeX/Lengths and // https://tex.stackexchange.com/a/8263 @@ -3731,12 +3731,12 @@ var Ws = { // https://tex.stackexchange.com/a/41371 px: 803 / 800 // \pdfpxdimen defaults to 1 bp in pdfTeX and LuaTeX -}, jh = { +}, Gh = { ex: !0, em: !0, mu: !0 -}, i0 = function(e) { - return typeof e != "string" && (e = e.unit), e in Ws || e in jh || e === "ex"; +}, s0 = function(e) { + return typeof e != "string" && (e = e.unit), e in Ws || e in Gh || e === "ex"; }, ze = function(e, t) { var r; if (e.unit in Ws) @@ -3756,17 +3756,17 @@ var Ws = { return Math.min(e.number * r, t.maxSize); }, le = function(e) { return +e.toFixed(4) + "em"; -}, _r = function(e) { +}, gr = function(e) { return e.filter((t) => t).join(" "); -}, s0 = function(e, t, r) { +}, n0 = function(e, t, r) { if (this.classes = e || [], this.attributes = {}, this.height = 0, this.depth = 0, this.maxFontSize = 0, this.style = r || {}, t) { t.style.isTight() && this.classes.push("mtight"); var n = t.getColor(); n && (this.style.color = n); } -}, n0 = function(e) { +}, a0 = function(e) { var t = document.createElement(e); - t.className = _r(this.classes); + t.className = gr(this.classes); for (var r in this.style) this.style.hasOwnProperty(r) && (t.style[r] = this.style[r]); for (var n in this.attributes) @@ -3774,9 +3774,9 @@ var Ws = { for (var o = 0; o < this.children.length; o++) t.appendChild(this.children[o].toNode()); return t; -}, a0 = function(e) { +}, o0 = function(e) { var t = "<" + e; - this.classes.length && (t += ' class="' + _e.escape(_r(this.classes)) + '"'); + this.classes.length && (t += ' class="' + _e.escape(gr(this.classes)) + '"'); var r = ""; for (var n in this.style) this.style.hasOwnProperty(n) && (r += _e.hyphenate(n) + ":" + this.style[n] + ";"); @@ -3790,7 +3790,7 @@ var Ws = { }; class di { constructor(e, t, r, n) { - this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.width = void 0, this.maxFontSize = void 0, this.style = void 0, s0.call(this, e, r, n), this.children = t || []; + this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.width = void 0, this.maxFontSize = void 0, this.style = void 0, n0.call(this, e, r, n), this.children = t || []; } /** * Sets an arbitrary attribute on the span. Warning: use this wisely. Not @@ -3804,15 +3804,15 @@ class di { return _e.contains(this.classes, e); } toNode() { - return n0.call(this, "span"); + return a0.call(this, "span"); } toMarkup() { - return a0.call(this, "span"); + return o0.call(this, "span"); } } class fn { constructor(e, t, r, n) { - this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, s0.call(this, t, n), this.children = r || [], this.setAttribute("href", e); + this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, n0.call(this, t, n), this.children = r || [], this.setAttribute("href", e); } setAttribute(e, t) { this.attributes[e] = t; @@ -3821,13 +3821,13 @@ class fn { return _e.contains(this.classes, e); } toNode() { - return n0.call(this, "a"); + return a0.call(this, "a"); } toMarkup() { - return a0.call(this, "a"); + return o0.call(this, "a"); } } -class Gh { +class Vh { constructor(e, t, r) { this.src = void 0, this.alt = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, this.alt = t, this.src = e, this.classes = ["mord"], this.style = r; } @@ -3848,7 +3848,7 @@ class Gh { return t && (e += ' style="' + _e.escape(t) + '"'), e += "'/>", e; } } -var Vh = { +var Kh = { î: "ı̂", ï: "ı̈", í: "ı́", @@ -3858,8 +3858,8 @@ var Vh = { class Ct { constructor(e, t, r, n, o, c, s, a) { this.text = void 0, this.height = void 0, this.depth = void 0, this.italic = void 0, this.skew = void 0, this.width = void 0, this.maxFontSize = void 0, this.classes = void 0, this.style = void 0, this.text = e, this.height = t || 0, this.depth = r || 0, this.italic = n || 0, this.skew = o || 0, this.width = c || 0, this.classes = s || [], this.style = a || {}, this.maxFontSize = 0; - var u = Mh(this.text.charCodeAt(0)); - u && this.classes.push(u + "_fallback"), /[îïíì]/.test(this.text) && (this.text = Vh[this.text]); + var u = Bh(this.text.charCodeAt(0)); + u && this.classes.push(u + "_fallback"), /[îïíì]/.test(this.text) && (this.text = Kh[this.text]); } hasClass(e) { return _e.contains(this.classes, e); @@ -3870,7 +3870,7 @@ class Ct { */ toNode() { var e = document.createTextNode(this.text), t = null; - this.italic > 0 && (t = document.createElement("span"), t.style.marginRight = le(this.italic)), this.classes.length > 0 && (t = t || document.createElement("span"), t.className = _r(this.classes)); + this.italic > 0 && (t = document.createElement("span"), t.style.marginRight = le(this.italic)), this.classes.length > 0 && (t = t || document.createElement("span"), t.className = gr(this.classes)); for (var r in this.style) this.style.hasOwnProperty(r) && (t = t || document.createElement("span"), t.style[r] = this.style[r]); return t ? (t.appendChild(e), t) : e; @@ -3880,7 +3880,7 @@ class Ct { */ toMarkup() { var e = !1, t = " 0 && (r += "margin-right:" + this.italic + "em;"); for (var n in this.style) @@ -3890,7 +3890,7 @@ class Ct { return e ? (t += ">", t += o, t += "", t) : o; } } -class ar { +class or { constructor(e, t) { this.children = void 0, this.attributes = void 0, this.children = e || [], this.attributes = t || {}; } @@ -3912,7 +3912,7 @@ class ar { return e += "", e; } } -class gr { +class vr { constructor(e, t) { this.pathName = void 0, this.alternate = void 0, this.pathName = e, this.alternate = t; } @@ -3946,19 +3946,19 @@ function ha(i) { return i; throw new Error("Expected symbolNode but got " + String(i) + "."); } -function Kh(i) { +function Xh(i) { if (i instanceof di) return i; throw new Error("Expected span but got " + String(i) + "."); } -var Xh = { +var Yh = { bin: 1, close: 1, inner: 1, open: 1, punct: 1, rel: 1 -}, Yh = { +}, $h = { "accent-token": 1, mathord: 1, "op-token": 1, @@ -3975,7 +3975,7 @@ function w(i, e, t, r, n, o) { replace: r }, o && r && (Oe[i][r] = Oe[i][n]); } -var k = "math", Q = "text", A = "main", P = "ams", Ie = "accent-token", ce = "bin", it = "close", jr = "inner", ge = "mathord", We = "op-token", ft = "open", is = "punct", z = "rel", hr = "spacing", q = "textord"; +var k = "math", Q = "text", A = "main", P = "ams", Ie = "accent-token", ce = "bin", it = "close", jr = "inner", ge = "mathord", We = "op-token", ft = "open", is = "punct", z = "rel", cr = "spacing", q = "textord"; w(k, A, z, "≡", "\\equiv", !0); w(k, A, z, "≺", "\\prec", !0); w(k, A, z, "≻", "\\succ", !0); @@ -4419,15 +4419,15 @@ w(k, A, z, "→", "\\rightarrow", !0); w(k, A, z, "→", "\\to"); w(k, P, z, "≱", "\\ngeq", !0); w(k, P, z, "≰", "\\nleq", !0); -w(k, A, hr, " ", "\\ "); -w(k, A, hr, " ", "\\space"); -w(k, A, hr, " ", "\\nobreakspace"); -w(Q, A, hr, " ", "\\ "); -w(Q, A, hr, " ", " "); -w(Q, A, hr, " ", "\\space"); -w(Q, A, hr, " ", "\\nobreakspace"); -w(k, A, hr, null, "\\nobreak"); -w(k, A, hr, null, "\\allowbreak"); +w(k, A, cr, " ", "\\ "); +w(k, A, cr, " ", "\\space"); +w(k, A, cr, " ", "\\nobreakspace"); +w(Q, A, cr, " ", "\\ "); +w(Q, A, cr, " ", " "); +w(Q, A, cr, " ", "\\space"); +w(Q, A, cr, " ", "\\nobreakspace"); +w(k, A, cr, null, "\\nobreak"); +w(k, A, cr, null, "\\allowbreak"); w(k, A, is, ",", ","); w(k, A, is, ";", ";"); w(k, P, ce, "⊼", "\\barwedge", !0); @@ -4546,7 +4546,7 @@ w(Q, A, Ie, "ˇ", "\\v"); w(Q, A, Ie, "¨", '\\"'); w(Q, A, Ie, "˝", "\\H"); w(Q, A, Ie, "◯", "\\textcircled"); -var o0 = { +var l0 = { "--": !0, "---": !0, "``": !0, @@ -4604,17 +4604,17 @@ w(k, P, q, "Z", "ℤ"); w(Q, P, q, "Z", "ℤ"); w(k, A, ge, "h", "ℎ"); w(Q, A, ge, "h", "ℎ"); -var we = ""; +var ye = ""; for (var Qe = 0; Qe < Yi.length; Qe++) { var qe = Yi.charAt(Qe); - we = String.fromCharCode(55349, 56320 + Qe), w(k, A, ge, qe, we), w(Q, A, q, qe, we), we = String.fromCharCode(55349, 56372 + Qe), w(k, A, ge, qe, we), w(Q, A, q, qe, we), we = String.fromCharCode(55349, 56424 + Qe), w(k, A, ge, qe, we), w(Q, A, q, qe, we), we = String.fromCharCode(55349, 56580 + Qe), w(k, A, ge, qe, we), w(Q, A, q, qe, we), we = String.fromCharCode(55349, 56684 + Qe), w(k, A, ge, qe, we), w(Q, A, q, qe, we), we = String.fromCharCode(55349, 56736 + Qe), w(k, A, ge, qe, we), w(Q, A, q, qe, we), we = String.fromCharCode(55349, 56788 + Qe), w(k, A, ge, qe, we), w(Q, A, q, qe, we), we = String.fromCharCode(55349, 56840 + Qe), w(k, A, ge, qe, we), w(Q, A, q, qe, we), we = String.fromCharCode(55349, 56944 + Qe), w(k, A, ge, qe, we), w(Q, A, q, qe, we), Qe < 26 && (we = String.fromCharCode(55349, 56632 + Qe), w(k, A, ge, qe, we), w(Q, A, q, qe, we), we = String.fromCharCode(55349, 56476 + Qe), w(k, A, ge, qe, we), w(Q, A, q, qe, we)); + ye = String.fromCharCode(55349, 56320 + Qe), w(k, A, ge, qe, ye), w(Q, A, q, qe, ye), ye = String.fromCharCode(55349, 56372 + Qe), w(k, A, ge, qe, ye), w(Q, A, q, qe, ye), ye = String.fromCharCode(55349, 56424 + Qe), w(k, A, ge, qe, ye), w(Q, A, q, qe, ye), ye = String.fromCharCode(55349, 56580 + Qe), w(k, A, ge, qe, ye), w(Q, A, q, qe, ye), ye = String.fromCharCode(55349, 56684 + Qe), w(k, A, ge, qe, ye), w(Q, A, q, qe, ye), ye = String.fromCharCode(55349, 56736 + Qe), w(k, A, ge, qe, ye), w(Q, A, q, qe, ye), ye = String.fromCharCode(55349, 56788 + Qe), w(k, A, ge, qe, ye), w(Q, A, q, qe, ye), ye = String.fromCharCode(55349, 56840 + Qe), w(k, A, ge, qe, ye), w(Q, A, q, qe, ye), ye = String.fromCharCode(55349, 56944 + Qe), w(k, A, ge, qe, ye), w(Q, A, q, qe, ye), Qe < 26 && (ye = String.fromCharCode(55349, 56632 + Qe), w(k, A, ge, qe, ye), w(Q, A, q, qe, ye), ye = String.fromCharCode(55349, 56476 + Qe), w(k, A, ge, qe, ye), w(Q, A, q, qe, ye)); } -we = "𝕜"; -w(k, A, ge, "k", we); -w(Q, A, q, "k", we); -for (var yr = 0; yr < 10; yr++) { - var dr = yr.toString(); - we = String.fromCharCode(55349, 57294 + yr), w(k, A, ge, dr, we), w(Q, A, q, dr, we), we = String.fromCharCode(55349, 57314 + yr), w(k, A, ge, dr, we), w(Q, A, q, dr, we), we = String.fromCharCode(55349, 57324 + yr), w(k, A, ge, dr, we), w(Q, A, q, dr, we), we = String.fromCharCode(55349, 57334 + yr), w(k, A, ge, dr, we), w(Q, A, q, dr, we); +ye = "𝕜"; +w(k, A, ge, "k", ye); +w(Q, A, q, "k", ye); +for (var Sr = 0; Sr < 10; Sr++) { + var fr = Sr.toString(); + ye = String.fromCharCode(55349, 57294 + Sr), w(k, A, ge, fr, ye), w(Q, A, q, fr, ye), ye = String.fromCharCode(55349, 57314 + Sr), w(k, A, ge, fr, ye), w(Q, A, q, fr, ye), ye = String.fromCharCode(55349, 57324 + Sr), w(k, A, ge, fr, ye), w(Q, A, q, fr, ye), ye = String.fromCharCode(55349, 57334 + Sr), w(k, A, ge, fr, ye), w(Q, A, q, fr, ye); } var Gs = "ÐÞþ"; for (var vs = 0; vs < Gs.length; vs++) { @@ -4688,7 +4688,7 @@ var wi = [ // 0-9 bold sans-serif ["mathtt", "texttt", "Typewriter-Regular"] // 0-9 monospace -], $h = function(e, t) { +], Zh = function(e, t) { var r = e.charCodeAt(0), n = e.charCodeAt(1), o = (r - 55296) * 1024 + (n - 56320) + 65536, c = t === "math" ? 0 : 1; if (119808 <= o && o < 120484) { var s = Math.floor((o - 119808) / 26); @@ -4723,9 +4723,9 @@ var wi = [ p && (a.style.color = p); } return a; -}, Zh = function(e, t, r, n) { +}, Jh = function(e, t, r, n) { return n === void 0 && (n = []), r.font === "boldsymbol" && ss(e, "Main-Bold", t).metrics ? Ot(e, "Main-Bold", t, r, n.concat(["mathbf"])) : e === "\\" || Oe[t][e].font === "main" ? Ot(e, "Main-Regular", t, r, n) : Ot(e, "AMS-Regular", t, r, n.concat(["amsrm"])); -}, Jh = function(e, t, r, n, o) { +}, Qh = function(e, t, r, n, o) { return o !== "textord" && ss(e, "Math-BoldItalic", t).metrics ? { fontName: "Math-BoldItalic", fontClass: "boldsymbol" @@ -4733,22 +4733,22 @@ var wi = [ fontName: "Main-Bold", fontClass: "mathbf" }; -}, Qh = function(e, t, r) { +}, ec = function(e, t, r) { var n = e.mode, o = e.text, c = ["mord"], s = n === "math" || n === "text" && t.font, a = s ? t.font : t.fontFamily, u = "", p = ""; - if (o.charCodeAt(0) === 55349 && ([u, p] = $h(o, n)), u.length > 0) + if (o.charCodeAt(0) === 55349 && ([u, p] = Zh(o, n)), u.length > 0) return Ot(o, u, n, t, c.concat(p)); if (a) { var f, g; if (a === "boldsymbol") { - var v = Jh(o, n, t, c, r); + var v = Qh(o, n, t, c, r); f = v.fontName, g = [v.fontClass]; - } else s ? (f = c0[a].fontName, g = [a]) : (f = yi(a, t.fontWeight, t.fontShape), g = [a, t.fontWeight, t.fontShape]); + } else s ? (f = u0[a].fontName, g = [a]) : (f = yi(a, t.fontWeight, t.fontShape), g = [a, t.fontWeight, t.fontShape]); if (ss(o, f, n).metrics) return Ot(o, f, n, t, c.concat(g)); - if (o0.hasOwnProperty(o) && f.slice(0, 10) === "Typewriter") { + if (l0.hasOwnProperty(o) && f.slice(0, 10) === "Typewriter") { for (var C = [], b = 0; b < o.length; b++) C.push(Ot(o[b], f, n, t, c.concat(g))); - return h0(C); + return c0(C); } } if (r === "mathord") @@ -4767,8 +4767,8 @@ var wi = [ } } else throw new Error("unexpected type: " + r + " in makeOrd"); -}, ec = (i, e) => { - if (_r(i.classes) !== _r(e.classes) || i.skew !== e.skew || i.maxFontSize !== e.maxFontSize) +}, tc = (i, e) => { + if (gr(i.classes) !== gr(e.classes) || i.skew !== e.skew || i.maxFontSize !== e.maxFontSize) return !1; if (i.classes.length === 1) { var t = i.classes[0]; @@ -4782,10 +4782,10 @@ var wi = [ if (e.style.hasOwnProperty(n) && i.style[n] !== e.style[n]) return !1; return !0; -}, tc = (i) => { +}, rc = (i) => { for (var e = 0; e < i.length - 1; e++) { var t = i[e], r = i[e + 1]; - t instanceof Ct && r instanceof Ct && ec(t, r) && (t.text += r.text, t.height = Math.max(t.height, r.height), t.depth = Math.max(t.depth, r.depth), t.italic = r.italic, i.splice(e + 1, 1), e--); + t instanceof Ct && r instanceof Ct && tc(t, r) && (t.text += r.text, t.height = Math.max(t.height, r.height), t.depth = Math.max(t.depth, r.depth), t.italic = r.italic, i.splice(e + 1, 1), e--); } return i; }, mn = function(e) { @@ -4797,18 +4797,18 @@ var wi = [ }, ot = function(e, t, r, n) { var o = new di(e, t, r, n); return mn(o), o; -}, l0 = (i, e, t, r) => new di(i, e, t, r), rc = function(e, t, r) { +}, h0 = (i, e, t, r) => new di(i, e, t, r), ic = function(e, t, r) { var n = ot([e], [], t); return n.height = Math.max(r || t.fontMetrics().defaultRuleThickness, t.minRuleThickness), n.style.borderBottomWidth = le(n.height), n.maxFontSize = 1, n; -}, ic = function(e, t, r, n) { +}, sc = function(e, t, r, n) { var o = new fn(e, t, r, n); return mn(o), o; -}, h0 = function(e) { +}, c0 = function(e) { var t = new ui(e); return mn(t), t; -}, sc = function(e, t) { +}, nc = function(e, t) { return e instanceof ui ? ot([], [e], t) : e; -}, nc = function(e) { +}, ac = function(e) { if (e.positionType === "individualShift") { for (var t = e.children, r = [t[0]], n = -t[0].shift - t[0].elem.depth, o = n, c = 1; c < t.length; c++) { var s = -t[c].shift - o - t[c].elem.depth, a = s - (t[c - 1].elem.height + t[c - 1].elem.depth); @@ -4846,11 +4846,11 @@ var wi = [ children: e.children, depth: u }; -}, ac = function(e, t) { +}, oc = function(e, t) { for (var { children: r, depth: n - } = nc(e), o = 0, c = 0; c < r.length; c++) { + } = ac(e), o = 0, c = 0; c < r.length; c++) { var s = r[c]; if (s.type === "elem") { var a = s.elem; @@ -4882,7 +4882,7 @@ var wi = [ S = [ot(["vlist-r"], [_])]; var E = ot(["vlist-t"], S); return S.length === 2 && E.classes.push("vlist-t2"), E.height = g, E.depth = -f, E; -}, oc = (i, e) => { +}, lc = (i, e) => { var t = ot(["mspace"], [], e), r = ze(i, e); return t.style.marginRight = le(r), t; }, yi = function(e, t, r) { @@ -4905,7 +4905,7 @@ var wi = [ } var o; return t === "textbf" && r === "textit" ? o = "BoldItalic" : t === "textbf" ? o = "Bold" : t === "textit" ? o = "Italic" : o = "Regular", n + "-" + o; -}, c0 = { +}, u0 = { // styles mathbf: { variant: "bold", @@ -4955,7 +4955,7 @@ var wi = [ variant: "monospace", fontName: "Typewriter-Regular" } -}, u0 = { +}, d0 = { // path, width, height vec: ["vec", 0.471, 0.714], // values from the font glyph @@ -4964,77 +4964,77 @@ var wi = [ oiintSize2: ["oiintSize2", 1.472, 0.659], oiiintSize1: ["oiiintSize1", 1.304, 0.499], oiiintSize2: ["oiiintSize2", 1.98, 0.659] -}, lc = function(e, t) { - var [r, n, o] = u0[e], c = new gr(r), s = new ar([c], { +}, hc = function(e, t) { + var [r, n, o] = d0[e], c = new vr(r), s = new or([c], { width: le(n), height: le(o), // Override CSS rule `.katex svg { width: 100% }` style: "width:" + le(n), viewBox: "0 0 " + 1e3 * n + " " + 1e3 * o, preserveAspectRatio: "xMinYMin" - }), a = l0(["overlay"], [s], t); + }), a = h0(["overlay"], [s], t); return a.height = o, a.style.height = le(o), a.style.width = le(n), a; }, G = { - fontMap: c0, + fontMap: u0, makeSymbol: Ot, - mathsym: Zh, + mathsym: Jh, makeSpan: ot, - makeSvgSpan: l0, - makeLineSpan: rc, - makeAnchor: ic, - makeFragment: h0, - wrapFragment: sc, - makeVList: ac, - makeOrd: Qh, - makeGlue: oc, - staticSvg: lc, - svgData: u0, - tryCombineChars: tc + makeSvgSpan: h0, + makeLineSpan: ic, + makeAnchor: sc, + makeFragment: c0, + wrapFragment: nc, + makeVList: oc, + makeOrd: ec, + makeGlue: lc, + staticSvg: hc, + svgData: d0, + tryCombineChars: rc }, Pe = { number: 3, unit: "mu" -}, Sr = { +}, Cr = { number: 4, unit: "mu" -}, tr = { +}, rr = { number: 5, unit: "mu" -}, hc = { +}, cc = { mord: { mop: Pe, - mbin: Sr, - mrel: tr, + mbin: Cr, + mrel: rr, minner: Pe }, mop: { mord: Pe, mop: Pe, - mrel: tr, + mrel: rr, minner: Pe }, mbin: { - mord: Sr, - mop: Sr, - mopen: Sr, - minner: Sr + mord: Cr, + mop: Cr, + mopen: Cr, + minner: Cr }, mrel: { - mord: tr, - mop: tr, - mopen: tr, - minner: tr + mord: rr, + mop: rr, + mopen: rr, + minner: rr }, mopen: {}, mclose: { mop: Pe, - mbin: Sr, - mrel: tr, + mbin: Cr, + mrel: rr, minner: Pe }, mpunct: { mord: Pe, mop: Pe, - mrel: tr, + mrel: rr, mopen: Pe, mclose: Pe, mpunct: Pe, @@ -5043,13 +5043,13 @@ var wi = [ minner: { mord: Pe, mop: Pe, - mbin: Sr, - mrel: tr, + mbin: Cr, + mrel: rr, mopen: Pe, mpunct: Pe, minner: Pe } -}, cc = { +}, uc = { mord: { mop: Pe }, @@ -5067,7 +5067,7 @@ var wi = [ minner: { mop: Pe } -}, d0 = {}, $i = {}, Zi = {}; +}, f0 = {}, $i = {}, Zi = {}; function he(i) { for (var { type: e, @@ -5088,10 +5088,10 @@ function he(i) { primitive: !!r.primitive, handler: n }, a = 0; a < t.length; ++a) - d0[t[a]] = s; + f0[t[a]] = s; e && (o && ($i[e] = o), c && (Zi[e] = c)); } -function Er(i) { +function Ar(i) { var { type: e, htmlBuilder: t, @@ -5114,12 +5114,12 @@ var Ji = function(e) { return e.type === "ordgroup" && e.body.length === 1 ? e.body[0] : e; }, Ue = function(e) { return e.type === "ordgroup" ? e.body : [e]; -}, or = G.makeSpan, uc = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], dc = ["rightmost", "mrel", "mclose", "mpunct"], fc = { +}, lr = G.makeSpan, dc = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], fc = ["rightmost", "mrel", "mclose", "mpunct"], mc = { display: ve.DISPLAY, text: ve.TEXT, script: ve.SCRIPT, scriptscript: ve.SCRIPTSCRIPT -}, mc = { +}, pc = { mord: "mord", mop: "mop", mbin: "mbin", @@ -5143,16 +5143,16 @@ var Ji = function(e) { var u = t; if (e.length === 1) { var p = e[0]; - p.type === "sizing" ? u = t.havingSize(p.size) : p.type === "styling" && (u = t.havingStyle(fc[p.style])); + p.type === "sizing" ? u = t.havingSize(p.size) : p.type === "styling" && (u = t.havingStyle(mc[p.style])); } - var f = or([n[0] || "leftmost"], [], t), g = or([n[1] || "rightmost"], [], t), v = r === "root"; + var f = lr([n[0] || "leftmost"], [], t), g = lr([n[1] || "rightmost"], [], t), v = r === "root"; return pa(o, (C, b) => { var d = b.classes[0], m = C.classes[0]; - d === "mbin" && _e.contains(dc, m) ? b.classes[0] = "mord" : m === "mbin" && _e.contains(uc, d) && (C.classes[0] = "mord"); + d === "mbin" && _e.contains(fc, m) ? b.classes[0] = "mord" : m === "mbin" && _e.contains(dc, d) && (C.classes[0] = "mord"); }, { node: f }, g, v), pa(o, (C, b) => { - var d = Vs(b), m = Vs(C), h = d && m ? C.hasClass("mtight") ? cc[d][m] : hc[d][m] : null; + var d = Vs(b), m = Vs(C), h = d && m ? C.hasClass("mtight") ? uc[d][m] : cc[d][m] : null; if (h) return G.makeGlue(h, u); }, { @@ -5161,7 +5161,7 @@ var Ji = function(e) { }, pa = function i(e, t, r, n, o) { n && e.push(n); for (var c = 0; c < e.length; c++) { - var s = e[c], a = f0(s); + var s = e[c], a = m0(s); if (a) { i(a.children, t, r, null, o); continue; @@ -5171,15 +5171,15 @@ var Ji = function(e) { var p = t(s, r.node); p && (r.insertAfter ? r.insertAfter(p) : (e.unshift(p), c++)); } - u ? r.node = s : o && s.hasClass("newline") && (r.node = or(["leftmost"])), r.insertAfter = /* @__PURE__ */ ((f) => (g) => { + u ? r.node = s : o && s.hasClass("newline") && (r.node = lr(["leftmost"])), r.insertAfter = /* @__PURE__ */ ((f) => (g) => { e.splice(f + 1, 0, g), c++; })(c); } n && e.pop(); -}, f0 = function(e) { +}, m0 = function(e) { return e instanceof ui || e instanceof fn || e instanceof di && e.hasClass("enclosing") ? e : null; -}, pc = function i(e, t) { - var r = f0(e); +}, _c = function i(e, t) { + var r = m0(e); if (r) { var n = r.children; if (n.length) { @@ -5191,17 +5191,17 @@ var Ji = function(e) { } return e; }, Vs = function(e, t) { - return e ? (t && (e = pc(e, t)), mc[e.classes[0]] || null) : null; + return e ? (t && (e = _c(e, t)), pc[e.classes[0]] || null) : null; }, ci = function(e, t) { var r = ["nulldelimiter"].concat(e.baseSizingClasses()); - return or(t.concat(r)); + return lr(t.concat(r)); }, Ae = function(e, t, r) { if (!e) - return or(); + return lr(); if ($i[e.type]) { var n = $i[e.type](e, t); if (r && t.size !== r.size) { - n = or(t.sizingClasses(r), [n], t); + n = lr(t.sizingClasses(r), [n], t); var o = t.sizeMultiplier / r.sizeMultiplier; n.height *= o, n.depth *= o; } @@ -5210,7 +5210,7 @@ var Ji = function(e) { throw new ie("Got group of unknown type: '" + e.type + "'"); }; function Si(i, e) { - var t = or(["base"], i, e), r = or(["strut"]); + var t = lr(["base"], i, e), r = lr(["strut"]); return r.style.height = le(t.height + t.depth), t.depth && (r.style.verticalAlign = le(-t.depth)), t.children.unshift(r), t; } function Ks(i, e) { @@ -5227,14 +5227,14 @@ function Ks(i, e) { c.length > 0 && o.push(Si(c, e)); var u; t ? (u = Si(je(t, e, !0)), u.classes = ["tag"], o.push(u)) : n && o.push(n); - var p = or(["katex-html"], o); + var p = lr(["katex-html"], o); if (p.setAttribute("aria-hidden", "true"), u) { var f = u.children[0]; f.style.height = le(p.height + p.depth), p.depth && (f.style.verticalAlign = le(-p.depth)); } return p; } -function m0(i) { +function p0(i) { return new ui(i); } class vt { @@ -5261,7 +5261,7 @@ class vt { var e = document.createElementNS("http://www.w3.org/1998/Math/MathML", this.type); for (var t in this.attributes) Object.prototype.hasOwnProperty.call(this.attributes, t) && e.setAttribute(t, this.attributes[t]); - this.classes.length > 0 && (e.className = _r(this.classes)); + this.classes.length > 0 && (e.className = gr(this.classes)); for (var r = 0; r < this.children.length; r++) e.appendChild(this.children[r].toNode()); return e; @@ -5273,7 +5273,7 @@ class vt { var e = "<" + this.type; for (var t in this.attributes) Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="', e += _e.escape(this.attributes[t]), e += '"'); - this.classes.length > 0 && (e += ' class ="' + _e.escape(_r(this.classes)) + '"'), e += ">"; + this.classes.length > 0 && (e += ' class ="' + _e.escape(gr(this.classes)) + '"'), e += ">"; for (var r = 0; r < this.children.length; r++) e += this.children[r].toMarkup(); return e += "", e; @@ -5310,7 +5310,7 @@ class si { return this.text; } } -class _c { +class gc { /** * Create a Space node with width given in CSS ems. */ @@ -5342,10 +5342,10 @@ class _c { var te = { MathNode: vt, TextNode: si, - SpaceNode: _c, - newDocumentFragment: m0 + SpaceNode: gc, + newDocumentFragment: p0 }, xt = function(e, t, r) { - return Oe[t][e] && Oe[t][e].replace && e.charCodeAt(0) !== 55349 && !(o0.hasOwnProperty(e) && r && (r.fontFamily && r.fontFamily.slice(4, 6) === "tt" || r.font && r.font.slice(4, 6) === "tt")) && (e = Oe[t][e].replace), new te.TextNode(e); + return Oe[t][e] && Oe[t][e].replace && e.charCodeAt(0) !== 55349 && !(l0.hasOwnProperty(e) && r && (r.fontFamily && r.fontFamily.slice(4, 6) === "tt" || r.font && r.font.slice(4, 6) === "tt")) && (e = Oe[t][e].replace), new te.TextNode(e); }, pn = function(e) { return e.length === 1 ? e[0] : new te.MathNode("mrow", e); }, _n = function(e, t) { @@ -5387,11 +5387,11 @@ var te = { return dn(o, c, n) ? G.fontMap[r].variant : null; }, lt = function(e, t, r) { if (e.length === 1) { - var n = Fe(e[0], t); + var n = Re(e[0], t); return r && n instanceof vt && n.type === "mo" && (n.setAttribute("lspace", "0em"), n.setAttribute("rspace", "0em")), [n]; } for (var o = [], c, s = 0; s < e.length; s++) { - var a = Fe(e[s], t); + var a = Re(e[s], t); if (a instanceof vt && c instanceof vt) { if (a.type === "mtext" && c.type === "mtext" && a.getAttribute("mathvariant") === c.getAttribute("mathvariant")) { c.children.push(...a.children); @@ -5416,9 +5416,9 @@ var te = { o.push(a), c = a; } return o; -}, vr = function(e, t, r) { +}, br = function(e, t, r) { return pn(lt(e, t, r)); -}, Fe = function(e, t) { +}, Re = function(e, t) { if (!e) return new te.MathNode("mrow"); if (Zi[e.type]) { @@ -5437,20 +5437,20 @@ function _a(i, e, t, r, n) { var p = n ? "katex" : "katex-mathml"; return G.makeSpan([p], [u]); } -var p0 = function(e) { - return new ir({ +var _0 = function(e) { + return new sr({ style: e.displayMode ? ve.DISPLAY : ve.TEXT, maxSize: e.maxSize, minRuleThickness: e.minRuleThickness }); -}, _0 = function(e, t) { +}, g0 = function(e, t) { if (t.displayMode) { var r = ["katex-display"]; t.leqno && r.push("leqno"), t.fleqn && r.push("fleqn"), e = G.makeSpan(r, [e]); } return e; -}, gc = function(e, t, r) { - var n = p0(r), o; +}, vc = function(e, t, r) { + var n = _0(r), o; if (r.output === "mathml") return _a(e, t, n, r.displayMode, !0); if (r.output === "html") { @@ -5460,11 +5460,11 @@ var p0 = function(e) { var s = _a(e, t, n, r.displayMode, !1), a = Ks(e, n); o = G.makeSpan(["katex"], [s, a]); } - return _0(o, r); -}, vc = function(e, t, r) { - var n = p0(r), o = Ks(e, n), c = G.makeSpan(["katex"], [o]); - return _0(c, r); -}, bc = { + return g0(o, r); +}, bc = function(e, t, r) { + var n = _0(r), o = Ks(e, n), c = G.makeSpan(["katex"], [o]); + return g0(c, r); +}, wc = { widehat: "^", widecheck: "ˇ", widetilde: "~", @@ -5509,10 +5509,10 @@ var p0 = function(e) { "\\cdrightarrow": "→", "\\cdleftarrow": "←", "\\cdlongequal": "=" -}, wc = function(e) { - var t = new te.MathNode("mo", [new te.TextNode(bc[e.replace(/^\\/, "")])]); +}, yc = function(e) { + var t = new te.MathNode("mo", [new te.TextNode(wc[e.replace(/^\\/, "")])]); return t.setAttribute("stretchy", "true"), t; -}, yc = { +}, Sc = { // path(s), minWidth, height, align overrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"], overleftarrow: [["leftarrow"], 0.888, 522, "xMinYMin"], @@ -5559,20 +5559,20 @@ var p0 = function(e) { xrightleftarrows: [["baraboveleftarrow", "rightarrowabovebar"], 1.75, 901], xrightequilibrium: [["baraboveshortleftharpoon", "rightharpoonaboveshortbar"], 1.75, 716], xleftequilibrium: [["shortbaraboveleftharpoon", "shortrightharpoonabovebar"], 1.75, 716] -}, Sc = function(e) { +}, Cc = function(e) { return e.type === "ordgroup" ? e.body.length : 1; -}, Cc = function(e, t) { +}, xc = function(e, t) { function r() { var s = 4e5, a = e.label.slice(1); if (_e.contains(["widehat", "widecheck", "widetilde", "utilde"], a)) { - var u = e, p = Sc(u.base), f, g, v; + var u = e, p = Cc(u.base), f, g, v; if (p > 5) a === "widehat" || a === "widecheck" ? (f = 420, s = 2364, v = 0.42, g = a + "4") : (f = 312, s = 2340, v = 0.34, g = "tilde4"); else { var C = [1, 1, 2, 2, 3, 3][p]; a === "widehat" || a === "widecheck" ? (s = [0, 1062, 2364, 2364, 2364][C], f = [0, 239, 300, 360, 420][C], v = [0, 0.24, 0.3, 0.3, 0.36, 0.42][C], g = a + C) : (s = [0, 600, 1033, 2339, 2340][C], f = [0, 260, 286, 306, 312][C], v = [0, 0.26, 0.286, 0.3, 0.306, 0.34][C], g = "tilde" + C); } - var b = new gr(g), d = new ar([b], { + var b = new vr(g), d = new or([b], { width: "100%", height: le(v), viewBox: "0 0 " + s + " " + f, @@ -5584,7 +5584,7 @@ var p0 = function(e) { height: v }; } else { - var m = [], h = yc[a], [l, _, S] = h, x = S / 1e3, D = l.length, y, E; + var m = [], h = Sc[a], [l, _, S] = h, x = S / 1e3, D = l.length, y, E; if (D === 1) { var B = h[3]; y = ["hide-tail"], E = [B]; @@ -5596,7 +5596,7 @@ var p0 = function(e) { throw new Error(`Correct katexImagesData or update code here to support ` + D + " children."); for (var O = 0; O < D; O++) { - var N = new gr(l[O]), R = new ar([N], { + var N = new vr(l[O]), R = new or([N], { width: "400em", height: le(x), viewBox: "0 0 " + s + " " + S, @@ -5623,7 +5623,7 @@ var p0 = function(e) { height: c } = r(); return n.height = c, n.style.height = le(c), o > 0 && (n.style.minWidth = le(o)), n; -}, xc = function(e, t, r, n, o) { +}, kc = function(e, t, r, n, o) { var c, s = e.height + e.depth + r + n; if (/fbox|color|angl/.test(t)) { if (c = G.makeSpan(["stretchy", t], [], o), t === "fbox") { @@ -5645,17 +5645,17 @@ var p0 = function(e) { y2: "0", "stroke-width": "0.046em" })); - var p = new ar(u, { + var p = new or(u, { width: "100%", height: le(s) }); c = G.makeSvgSpan([], [p], o); } return c.height = s, c.style.height = le(s), c; -}, lr = { - encloseSpan: xc, - mathMLnode: wc, - svgSpan: Cc +}, hr = { + encloseSpan: kc, + mathMLnode: yc, + svgSpan: xc }; function Ce(i, e) { if (!i || i.type !== e) @@ -5669,11 +5669,11 @@ function gn(i) { return e; } function ns(i) { - return i && (i.type === "atom" || Yh.hasOwnProperty(i.type)) ? i : null; + return i && (i.type === "atom" || $h.hasOwnProperty(i.type)) ? i : null; } var vn = (i, e) => { var t, r, n; - i && i.type === "supsub" ? (r = Ce(i.base, "accent"), t = r.base, i.base = t, n = Kh(Ae(i, e)), i.base = r) : (r = Ce(i, "accent"), t = r.base); + i && i.type === "supsub" ? (r = Ce(i.base, "accent"), t = r.base, i.base = t, n = Xh(Ae(i, e)), i.base = r) : (r = Ce(i, "accent"), t = r.base); var o = Ae(t, e.havingCrampedStyle()), c = r.isShifty && _e.isCharacterBox(t), s = 0; if (c) { var a = _e.getBaseElem(t), u = Ae(a, e.havingCrampedStyle()); @@ -5681,7 +5681,7 @@ var vn = (i, e) => { } var p = r.label === "\\c", f = p ? o.height + o.depth : Math.min(o.height, e.fontMetrics().xHeight), g; if (r.isStretchy) - g = lr.svgSpan(r, e), g = G.makeVList({ + g = hr.svgSpan(r, e), g = G.makeVList({ positionType: "firstBaseline", children: [{ type: "elem", @@ -5721,10 +5721,10 @@ var vn = (i, e) => { } var m = G.makeSpan(["mord", "accent"], [g], e); return n ? (n.children[0] = m, n.height = Math.max(m.height, n.height), n.classes[0] = "mord", n) : m; -}, g0 = (i, e) => { - var t = i.isStretchy ? lr.mathMLnode(i.label) : new te.MathNode("mo", [xt(i.label, i.mode)]), r = new te.MathNode("mover", [Fe(i.base, e), t]); +}, v0 = (i, e) => { + var t = i.isStretchy ? hr.mathMLnode(i.label) : new te.MathNode("mo", [xt(i.label, i.mode)]), r = new te.MathNode("mover", [Re(i.base, e), t]); return r.setAttribute("accent", "true"), r; -}, kc = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((i) => "\\" + i).join("|")); +}, Dc = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((i) => "\\" + i).join("|")); he({ type: "accent", names: ["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring", "\\widecheck", "\\widehat", "\\widetilde", "\\overrightarrow", "\\overleftarrow", "\\Overrightarrow", "\\overleftrightarrow", "\\overgroup", "\\overlinesegment", "\\overleftharpoon", "\\overrightharpoon"], @@ -5732,7 +5732,7 @@ he({ numArgs: 1 }, handler: (i, e) => { - var t = Ji(e[0]), r = !kc.test(i.funcName), n = !r || i.funcName === "\\widehat" || i.funcName === "\\widetilde" || i.funcName === "\\widecheck"; + var t = Ji(e[0]), r = !Dc.test(i.funcName), n = !r || i.funcName === "\\widehat" || i.funcName === "\\widetilde" || i.funcName === "\\widecheck"; return { type: "accent", mode: i.parser.mode, @@ -5743,7 +5743,7 @@ he({ }; }, htmlBuilder: vn, - mathmlBuilder: g0 + mathmlBuilder: v0 }); he({ type: "accent", @@ -5767,7 +5767,7 @@ he({ }; }, htmlBuilder: vn, - mathmlBuilder: g0 + mathmlBuilder: v0 }); he({ type: "accentUnder", @@ -5788,7 +5788,7 @@ he({ }; }, htmlBuilder: (i, e) => { - var t = Ae(i.base, e), r = lr.svgSpan(i, e), n = i.label === "\\utilde" ? 0.12 : 0, o = G.makeVList({ + var t = Ae(i.base, e), r = hr.svgSpan(i, e), n = i.label === "\\utilde" ? 0.12 : 0, o = G.makeVList({ positionType: "top", positionData: t.height, children: [{ @@ -5806,7 +5806,7 @@ he({ return G.makeSpan(["mord", "accentunder"], [o], e); }, mathmlBuilder: (i, e) => { - var t = lr.mathMLnode(i.label), r = new te.MathNode("munder", [Fe(i.base, e), t]); + var t = hr.mathMLnode(i.label), r = new te.MathNode("munder", [Re(i.base, e), t]); return r.setAttribute("accentunder", "true"), r; } }); @@ -5870,7 +5870,7 @@ he({ n.classes.push(o + "-arrow-pad"); var c; i.below && (r = e.havingStyle(t.sub()), c = G.wrapFragment(Ae(i.below, r, e), e), c.classes.push(o + "-arrow-pad")); - var s = lr.svgSpan(i, e), a = -e.fontMetrics().axisHeight + 0.5 * s.height, u = -e.fontMetrics().axisHeight - 0.5 * s.height - 0.111; + var s = hr.svgSpan(i, e), a = -e.fontMetrics().axisHeight + 0.5 * s.height, u = -e.fontMetrics().axisHeight - 0.5 * s.height - 0.111; (n.depth > 0.25 || i.label === "\\xleftequilibrium") && (u -= n.depth); var p; if (c) { @@ -5907,30 +5907,30 @@ he({ return p.children[0].children[0].children[1].classes.push("svg-align"), G.makeSpan(["mrel", "x-arrow"], [p], e); }, mathmlBuilder(i, e) { - var t = lr.mathMLnode(i.label); + var t = hr.mathMLnode(i.label); t.setAttribute("minsize", i.label.charAt(0) === "x" ? "1.75em" : "3.0em"); var r; if (i.body) { - var n = Ci(Fe(i.body, e)); + var n = Ci(Re(i.body, e)); if (i.below) { - var o = Ci(Fe(i.below, e)); + var o = Ci(Re(i.below, e)); r = new te.MathNode("munderover", [t, o, n]); } else r = new te.MathNode("mover", [t, n]); } else if (i.below) { - var c = Ci(Fe(i.below, e)); + var c = Ci(Re(i.below, e)); r = new te.MathNode("munder", [t, c]); } else r = Ci(), r = new te.MathNode("mover", [t, r]); return r; } }); -var Dc = G.makeSpan; -function v0(i, e) { +var Ec = G.makeSpan; +function b0(i, e) { var t = je(i.body, e, !0); - return Dc([i.mclass], t, e); + return Ec([i.mclass], t, e); } -function b0(i, e) { +function w0(i, e) { var t, r = lt(i.body, e); return i.mclass === "minner" ? t = new te.MathNode("mpadded", r) : i.mclass === "mord" ? i.isCharacterBox ? (t = r[0], t.type = "mi") : t = new te.MathNode("mi", r) : (i.isCharacterBox ? (t = r[0], t.type = "mo") : t = new te.MathNode("mo", r), i.mclass === "mbin" ? (t.attributes.lspace = "0.22em", t.attributes.rspace = "0.22em") : i.mclass === "mpunct" ? (t.attributes.lspace = "0em", t.attributes.rspace = "0.17em") : i.mclass === "mopen" || i.mclass === "mclose" ? (t.attributes.lspace = "0em", t.attributes.rspace = "0em") : i.mclass === "minner" && (t.attributes.lspace = "0.0556em", t.attributes.width = "+0.1111em")), t; } @@ -5955,8 +5955,8 @@ he({ isCharacterBox: _e.isCharacterBox(n) }; }, - htmlBuilder: v0, - mathmlBuilder: b0 + htmlBuilder: b0, + mathmlBuilder: w0 }); var as = (i) => { var e = i.type === "ordgroup" && i.body.length ? i.body[0] : i; @@ -6017,8 +6017,8 @@ he({ isCharacterBox: _e.isCharacterBox(a) }; }, - htmlBuilder: v0, - mathmlBuilder: b0 + htmlBuilder: b0, + mathmlBuilder: w0 }); he({ type: "pmb", @@ -6047,7 +6047,7 @@ he({ return r.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), r; } }); -var Ec = { +var Ac = { ">": "\\\\cdrightarrow", "<": "\\\\cdleftarrow", "=": "\\\\cdlongequal", @@ -6060,9 +6060,9 @@ var Ec = { body: [], mode: "math", style: "display" -}), va = (i) => i.type === "textord" && i.text === "@", Ac = (i, e) => (i.type === "mathord" || i.type === "atom") && i.text === e; -function Tc(i, e, t) { - var r = Ec[i]; +}), va = (i) => i.type === "textord" && i.text === "@", Tc = (i, e) => (i.type === "mathord" || i.type === "atom") && i.text === e; +function Mc(i, e, t) { + var r = Ac[i]; switch (r) { case "\\\\cdrightarrow": case "\\\\cdleftarrow": @@ -6099,7 +6099,7 @@ function Tc(i, e, t) { }; } } -function Mc(i) { +function Bc(i) { var e = []; for (i.gullet.beginGroup(), i.gullet.macros.set("\\cr", "\\\\\\relax"), i.gullet.beginGroup(); ; ) { e.push(i.parseExpression(!1, "\\\\")), i.gullet.endGroup(), i.gullet.beginGroup(); @@ -6130,7 +6130,7 @@ function Mc(i) { }, !("=|.".indexOf(u) > -1)) if ("<>AV".indexOf(u) > -1) for (var f = 0; f < 2; f++) { for (var g = !0, v = a + 1; v < c.length; v++) { - if (Ac(c[v], u)) { + if (Tc(c[v], u)) { g = !1, a = v; break; } @@ -6143,7 +6143,7 @@ function Mc(i) { } else throw new ie('Expected one of "<>AV=|." after @', c[a]); - var C = Tc(u, p, i), b = { + var C = Mc(u, p, i), b = { type: "styling", body: [C], mode: "math", @@ -6198,7 +6198,7 @@ he({ return r.classes.push("cd-label-" + i.side), r.style.bottom = le(0.8 - r.depth), r.height = 0, r.depth = 0, r; }, mathmlBuilder(i, e) { - var t = new te.MathNode("mrow", [Fe(i.label, e)]); + var t = new te.MathNode("mrow", [Re(i.label, e)]); return t = new te.MathNode("mpadded", [t]), t.setAttribute("width", "0"), i.side === "left" && t.setAttribute("lspace", "-1width"), t.setAttribute("voffset", "0.7em"), t = new te.MathNode("mstyle", [t]), t.setAttribute("displaystyle", "false"), t.setAttribute("scriptlevel", "1"), t; } }); @@ -6223,7 +6223,7 @@ he({ return t.classes.push("cd-vert-arrow"), t; }, mathmlBuilder(i, e) { - return new te.MathNode("mrow", [Fe(i.fragment, e)]); + return new te.MathNode("mrow", [Re(i.fragment, e)]); } }); he({ @@ -6252,10 +6252,10 @@ he({ }; } }); -var w0 = (i, e) => { +var y0 = (i, e) => { var t = je(i.body, e.withColor(i.color), !1); return G.makeFragment(t); -}, y0 = (i, e) => { +}, S0 = (i, e) => { var t = lt(i.body, e.withColor(i.color)), r = new te.MathNode("mstyle", t); return r.setAttribute("mathcolor", i.color), r; }; @@ -6278,8 +6278,8 @@ he({ body: Ue(n) }; }, - htmlBuilder: w0, - mathmlBuilder: y0 + htmlBuilder: y0, + mathmlBuilder: S0 }); he({ type: "color", @@ -6303,8 +6303,8 @@ he({ body: o }; }, - htmlBuilder: w0, - mathmlBuilder: y0 + htmlBuilder: y0, + mathmlBuilder: S0 }); he({ type: "cr", @@ -6346,15 +6346,15 @@ var Xs = { "\\xdef": "\\xdef", "\\let": "\\\\globallet", "\\futurelet": "\\\\globalfuture" -}, S0 = (i) => { +}, C0 = (i) => { var e = i.text; if (/^(?:[\\{}$&#^_]|EOF)$/.test(e)) throw new ie("Expected a control sequence", i); return e; -}, Bc = (i) => { +}, Fc = (i) => { var e = i.gullet.popToken(); return e.text === "=" && (e = i.gullet.popToken(), e.text === " " && (e = i.gullet.popToken())), e; -}, C0 = (i, e, t, r) => { +}, x0 = (i, e, t, r) => { var n = i.gullet.macros.get(t.text); n == null && (t.noexpand = !0, n = { tokens: [t], @@ -6447,10 +6447,10 @@ he({ var { parser: e, funcName: t - } = i, r = S0(e.gullet.popToken()); + } = i, r = C0(e.gullet.popToken()); e.gullet.consumeSpaces(); - var n = Bc(e); - return C0(e, r, n, t === "\\\\globallet"), { + var n = Fc(e); + return x0(e, r, n, t === "\\\\globallet"), { type: "internal", mode: e.mode }; @@ -6472,8 +6472,8 @@ he({ var { parser: e, funcName: t - } = i, r = S0(e.gullet.popToken()), n = e.gullet.popToken(), o = e.gullet.popToken(); - return C0(e, r, o, t === "\\\\globalfuture"), e.gullet.pushToken(o), e.gullet.pushToken(n), { + } = i, r = C0(e.gullet.popToken()), n = e.gullet.popToken(), o = e.gullet.popToken(); + return x0(e, r, o, t === "\\\\globalfuture"), e.gullet.pushToken(o), e.gullet.pushToken(n), { type: "internal", mode: e.mode }; @@ -6487,17 +6487,17 @@ var ti = function(e, t, r) { }, bn = function(e, t, r, n) { var o = r.havingBaseStyle(t), c = G.makeSpan(n.concat(o.sizingClasses(r)), [e], r), s = o.sizeMultiplier / r.sizeMultiplier; return c.height *= s, c.depth *= s, c.maxFontSize = o.sizeMultiplier, c; -}, x0 = function(e, t, r) { +}, k0 = function(e, t, r) { var n = t.havingBaseStyle(r), o = (1 - t.sizeMultiplier / n.sizeMultiplier) * t.fontMetrics().axisHeight; e.classes.push("delimcenter"), e.style.top = le(o), e.height -= o, e.depth += o; -}, Fc = function(e, t, r, n, o, c) { +}, Rc = function(e, t, r, n, o, c) { var s = G.makeSymbol(e, "Main-Regular", o, n), a = bn(s, t, n, c); - return r && x0(a, n, t), a; -}, Rc = function(e, t, r, n) { + return r && k0(a, n, t), a; +}, Lc = function(e, t, r, n) { return G.makeSymbol(e, "Size" + t + "-Regular", r, n); -}, k0 = function(e, t, r, n, o, c) { - var s = Rc(e, t, o, n), a = bn(G.makeSpan(["delimsizing", "size" + t], [s], n), ve.TEXT, n, c); - return r && x0(a, n, ve.TEXT), a; +}, D0 = function(e, t, r, n, o, c) { + var s = Lc(e, t, o, n), a = bn(G.makeSpan(["delimsizing", "size" + t], [s], n), ve.TEXT, n, c); + return r && k0(a, n, ve.TEXT), a; }, bs = function(e, t, r) { var n; t === "Size1-Regular" ? n = "delim-size1" : n = "delim-size4"; @@ -6507,7 +6507,7 @@ var ti = function(e, t, r) { elem: o }; }, ws = function(e, t, r) { - var n = Wt["Size4-Regular"][e.charCodeAt(0)] ? Wt["Size4-Regular"][e.charCodeAt(0)][4] : Wt["Size1-Regular"][e.charCodeAt(0)][4], o = new gr("inner", Hh(e, Math.round(1e3 * t))), c = new ar([o], { + var n = Wt["Size4-Regular"][e.charCodeAt(0)] ? Wt["Size4-Regular"][e.charCodeAt(0)][4] : Wt["Size1-Regular"][e.charCodeAt(0)][4], o = new vr("inner", Nh(e, Math.round(1e3 * t))), c = new or([o], { width: le(n), height: le(t), // Override CSS rule `.katex svg { width: 100% }` @@ -6522,11 +6522,11 @@ var ti = function(e, t, r) { }, Ys = 8e-3, xi = { type: "kern", size: -1 * Ys -}, Lc = ["|", "\\lvert", "\\rvert", "\\vert"], Oc = ["\\|", "\\lVert", "\\rVert", "\\Vert"], D0 = function(e, t, r, n, o, c) { +}, Oc = ["|", "\\lvert", "\\rvert", "\\vert"], Ic = ["\\|", "\\lVert", "\\rVert", "\\Vert"], E0 = function(e, t, r, n, o, c) { var s, a, u, p, f = "", g = 0; s = u = p = e, a = null; var v = "Size1-Regular"; - e === "\\uparrow" ? u = p = "⏐" : e === "\\Uparrow" ? u = p = "‖" : e === "\\downarrow" ? s = u = "⏐" : e === "\\Downarrow" ? s = u = "‖" : e === "\\updownarrow" ? (s = "\\uparrow", u = "⏐", p = "\\downarrow") : e === "\\Updownarrow" ? (s = "\\Uparrow", u = "‖", p = "\\Downarrow") : _e.contains(Lc, e) ? (u = "∣", f = "vert", g = 333) : _e.contains(Oc, e) ? (u = "∥", f = "doublevert", g = 556) : e === "[" || e === "\\lbrack" ? (s = "⎡", u = "⎢", p = "⎣", v = "Size4-Regular", f = "lbrack", g = 667) : e === "]" || e === "\\rbrack" ? (s = "⎤", u = "⎥", p = "⎦", v = "Size4-Regular", f = "rbrack", g = 667) : e === "\\lfloor" || e === "⌊" ? (u = s = "⎢", p = "⎣", v = "Size4-Regular", f = "lfloor", g = 667) : e === "\\lceil" || e === "⌈" ? (s = "⎡", u = p = "⎢", v = "Size4-Regular", f = "lceil", g = 667) : e === "\\rfloor" || e === "⌋" ? (u = s = "⎥", p = "⎦", v = "Size4-Regular", f = "rfloor", g = 667) : e === "\\rceil" || e === "⌉" ? (s = "⎤", u = p = "⎥", v = "Size4-Regular", f = "rceil", g = 667) : e === "(" || e === "\\lparen" ? (s = "⎛", u = "⎜", p = "⎝", v = "Size4-Regular", f = "lparen", g = 875) : e === ")" || e === "\\rparen" ? (s = "⎞", u = "⎟", p = "⎠", v = "Size4-Regular", f = "rparen", g = 875) : e === "\\{" || e === "\\lbrace" ? (s = "⎧", a = "⎨", p = "⎩", u = "⎪", v = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (s = "⎫", a = "⎬", p = "⎭", u = "⎪", v = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (s = "⎧", p = "⎩", u = "⎪", v = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (s = "⎫", p = "⎭", u = "⎪", v = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (s = "⎧", p = "⎭", u = "⎪", v = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (s = "⎫", p = "⎩", u = "⎪", v = "Size4-Regular"); + e === "\\uparrow" ? u = p = "⏐" : e === "\\Uparrow" ? u = p = "‖" : e === "\\downarrow" ? s = u = "⏐" : e === "\\Downarrow" ? s = u = "‖" : e === "\\updownarrow" ? (s = "\\uparrow", u = "⏐", p = "\\downarrow") : e === "\\Updownarrow" ? (s = "\\Uparrow", u = "‖", p = "\\Downarrow") : _e.contains(Oc, e) ? (u = "∣", f = "vert", g = 333) : _e.contains(Ic, e) ? (u = "∥", f = "doublevert", g = 556) : e === "[" || e === "\\lbrack" ? (s = "⎡", u = "⎢", p = "⎣", v = "Size4-Regular", f = "lbrack", g = 667) : e === "]" || e === "\\rbrack" ? (s = "⎤", u = "⎥", p = "⎦", v = "Size4-Regular", f = "rbrack", g = 667) : e === "\\lfloor" || e === "⌊" ? (u = s = "⎢", p = "⎣", v = "Size4-Regular", f = "lfloor", g = 667) : e === "\\lceil" || e === "⌈" ? (s = "⎡", u = p = "⎢", v = "Size4-Regular", f = "lceil", g = 667) : e === "\\rfloor" || e === "⌋" ? (u = s = "⎥", p = "⎦", v = "Size4-Regular", f = "rfloor", g = 667) : e === "\\rceil" || e === "⌉" ? (s = "⎤", u = p = "⎥", v = "Size4-Regular", f = "rceil", g = 667) : e === "(" || e === "\\lparen" ? (s = "⎛", u = "⎜", p = "⎝", v = "Size4-Regular", f = "lparen", g = 875) : e === ")" || e === "\\rparen" ? (s = "⎞", u = "⎟", p = "⎠", v = "Size4-Regular", f = "rparen", g = 875) : e === "\\{" || e === "\\lbrace" ? (s = "⎧", a = "⎨", p = "⎩", u = "⎪", v = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (s = "⎫", a = "⎬", p = "⎭", u = "⎪", v = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (s = "⎧", p = "⎩", u = "⎪", v = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (s = "⎫", p = "⎭", u = "⎪", v = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (s = "⎧", p = "⎭", u = "⎪", v = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (s = "⎫", p = "⎩", u = "⎪", v = "Size4-Regular"); var C = ti(s, v, o), b = C.height + C.depth, d = ti(u, v, o), m = d.height + d.depth, h = ti(p, v, o), l = h.height + h.depth, _ = 0, S = 1; if (a !== null) { var x = ti(a, v, o); @@ -6536,7 +6536,7 @@ var ti = function(e, t, r) { r && (B *= n.sizeMultiplier); var O = E / 2 - B, N = []; if (f.length > 0) { - var R = E - b - l, j = Math.round(E * 1e3), Y = Nh(f, Math.round(R * 1e3)), ee = new gr(f, Y), ne = (g / 1e3).toFixed(3) + "em", Z = (j / 1e3).toFixed(3) + "em", T = new ar([ee], { + var R = E - b - l, j = Math.round(E * 1e3), Y = qh(f, Math.round(R * 1e3)), ee = new vr(f, Y), ne = (g / 1e3).toFixed(3) + "em", Z = (j / 1e3).toFixed(3) + "em", T = new or([ee], { width: ne, height: Z, viewBox: "0 0 " + g + " " + j @@ -6562,7 +6562,7 @@ var ti = function(e, t, r) { }, K); return bn(G.makeSpan(["delimsizing", "mult"], [re], K), ve.TEXT, n, c); }, ys = 80, Ss = 0.08, Cs = function(e, t, r, n, o) { - var c = zh(e, n, r), s = new gr(e, c), a = new ar([s], { + var c = Hh(e, n, r), s = new vr(e, c), a = new or([s], { // Note: 1000:1 ratio of viewBox to document em width. width: "400em", height: le(t), @@ -6570,8 +6570,8 @@ var ti = function(e, t, r) { preserveAspectRatio: "xMinYMin slice" }); return G.makeSvgSpan(["hide-tail"], [a], o); -}, Ic = function(e, t) { - var r = t.havingBaseSizing(), n = M0("\\surd", e * r.sizeMultiplier, T0, r), o = r.sizeMultiplier, c = Math.max(0, t.minRuleThickness - t.fontMetrics().sqrtRuleThickness), s, a = 0, u = 0, p = 0, f; +}, Pc = function(e, t) { + var r = t.havingBaseSizing(), n = B0("\\surd", e * r.sizeMultiplier, M0, r), o = r.sizeMultiplier, c = Math.max(0, t.minRuleThickness - t.fontMetrics().sqrtRuleThickness), s, a = 0, u = 0, p = 0, f; return n.type === "small" ? (p = 1e3 + 1e3 * c + ys, e < 1 ? o = 1 : e < 1.4 && (o = 0.7), a = (1 + c + Ss) / o, u = (1 + c) / o, s = Cs("sqrtMain", a, p, c, t), s.style.minWidth = "0.853em", f = 0.833 / o) : n.type === "large" ? (p = (1e3 + ys) * ni[n.size], u = (ni[n.size] + c) / o, a = (ni[n.size] + c + Ss) / o, s = Cs("sqrtSize" + n.size, a, p, c, t), s.style.minWidth = "1.02em", f = 1 / o) : (a = e + c + Ss, u = e + c, p = Math.floor(1e3 * e + c) + ys, s = Cs("sqrtTall", a, p, c, t), s.style.minWidth = "0.742em", f = 1.056), s.height = u, s.style.height = le(a), { span: s, advanceWidth: f, @@ -6581,13 +6581,13 @@ var ti = function(e, t, r) { // have thicker rules. ruleWidth: (t.fontMetrics().sqrtRuleThickness + c) * o }; -}, E0 = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], Pc = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], A0 = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], ni = [0, 1.2, 1.8, 2.4, 3], zc = function(e, t, r, n, o) { - if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), _e.contains(E0, e) || _e.contains(A0, e)) - return k0(e, t, !1, r, n, o); - if (_e.contains(Pc, e)) - return D0(e, ni[t], !1, r, n, o); +}, A0 = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], zc = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], T0 = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], ni = [0, 1.2, 1.8, 2.4, 3], Hc = function(e, t, r, n, o) { + if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), _e.contains(A0, e) || _e.contains(T0, e)) + return D0(e, t, !1, r, n, o); + if (_e.contains(zc, e)) + return E0(e, ni[t], !1, r, n, o); throw new ie("Illegal delimiter: '" + e + "'"); -}, Hc = [{ +}, Nc = [{ type: "small", style: ve.SCRIPTSCRIPT }, { @@ -6608,7 +6608,7 @@ var ti = function(e, t, r) { }, { type: "large", size: 4 -}], Nc = [{ +}], qc = [{ type: "small", style: ve.SCRIPTSCRIPT }, { @@ -6619,7 +6619,7 @@ var ti = function(e, t, r) { style: ve.TEXT }, { type: "stack" -}], T0 = [{ +}], M0 = [{ type: "small", style: ve.SCRIPTSCRIPT }, { @@ -6642,7 +6642,7 @@ var ti = function(e, t, r) { size: 4 }, { type: "stack" -}], qc = function(e) { +}], Uc = function(e) { if (e.type === "small") return "Main-Regular"; if (e.type === "large") @@ -6650,9 +6650,9 @@ var ti = function(e, t, r) { if (e.type === "stack") return "Size4-Regular"; throw new Error("Add support for delim type '" + e.type + "' here."); -}, M0 = function(e, t, r, n) { +}, B0 = function(e, t, r, n) { for (var o = Math.min(2, 3 - n.style.size), c = o; c < r.length && r[c].type !== "stack"; c++) { - var s = ti(e, qc(r[c]), "math"), a = s.height + s.depth; + var s = ti(e, Uc(r[c]), "math"), a = s.height + s.depth; if (r[c].type === "small") { var u = n.havingBaseStyle(r[c].style); a *= u.sizeMultiplier; @@ -6661,13 +6661,13 @@ var ti = function(e, t, r) { return r[c]; } return r[r.length - 1]; -}, B0 = function(e, t, r, n, o, c) { +}, F0 = function(e, t, r, n, o, c) { e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"); var s; - _e.contains(A0, e) ? s = Hc : _e.contains(E0, e) ? s = T0 : s = Nc; - var a = M0(e, t, s, n); - return a.type === "small" ? Fc(e, a.style, r, n, o, c) : a.type === "large" ? k0(e, a.size, r, n, o, c) : D0(e, t, r, n, o, c); -}, Uc = function(e, t, r, n, o, c) { + _e.contains(T0, e) ? s = Nc : _e.contains(A0, e) ? s = M0 : s = qc; + var a = B0(e, t, s, n); + return a.type === "small" ? Rc(e, a.style, r, n, o, c) : a.type === "large" ? D0(e, a.size, r, n, o, c) : E0(e, t, r, n, o, c); +}, Wc = function(e, t, r, n, o, c) { var s = n.fontMetrics().axisHeight * n.sizeMultiplier, a = 901, u = 5 / n.fontMetrics().ptPerEm, p = Math.max(t - s, r + s), f = Math.max( // In real TeX, calculations are done using integral values which are // 65536 per pt, or 655360 per em. So, the division here truncates in @@ -6681,13 +6681,13 @@ var ti = function(e, t, r) { p / 500 * a, 2 * p - u ); - return B0(e, f, !0, n, o, c); -}, nr = { - sqrtImage: Ic, - sizedDelim: zc, + return F0(e, f, !0, n, o, c); +}, ar = { + sqrtImage: Pc, + sizedDelim: Hc, sizeToMaxHeight: ni, - customSizedDelim: B0, - leftRightDelim: Uc + customSizedDelim: F0, + leftRightDelim: Wc }, ba = { "\\bigl": { mclass: "mopen", @@ -6753,10 +6753,10 @@ var ti = function(e, t, r) { mclass: "mord", size: 4 } -}, Wc = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "<", ">", "\\langle", "⟨", "\\rangle", "⟩", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."]; +}, jc = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "<", ">", "\\langle", "⟨", "\\rangle", "⟩", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."]; function os(i, e) { var t = ns(i); - if (t && _e.contains(Wc, t.text)) + if (t && _e.contains(jc, t.text)) return t; throw t ? new ie("Invalid delimiter '" + t.text + "' after '" + e.funcName + "'", i) : new ie("Invalid delimiter type '" + i.type + "'", i); } @@ -6777,13 +6777,13 @@ he({ delim: t.text }; }, - htmlBuilder: (i, e) => i.delim === "." ? G.makeSpan([i.mclass]) : nr.sizedDelim(i.delim, i.size, e, i.mode, [i.mclass]), + htmlBuilder: (i, e) => i.delim === "." ? G.makeSpan([i.mclass]) : ar.sizedDelim(i.delim, i.size, e, i.mode, [i.mclass]), mathmlBuilder: (i) => { var e = []; i.delim !== "." && e.push(xt(i.delim, i.mode)); var t = new te.MathNode("mo", e); i.mclass === "mopen" || i.mclass === "mclose" ? t.setAttribute("fence", "true") : t.setAttribute("fence", "false"), t.setAttribute("stretchy", "true"); - var r = le(nr.sizeToMaxHeight[i.size]); + var r = le(ar.sizeToMaxHeight[i.size]); return t.setAttribute("minsize", r), t.setAttribute("maxsize", r), t; } }); @@ -6839,17 +6839,17 @@ he({ t[c].isMiddle ? o = !0 : (r = Math.max(t[c].height, r), n = Math.max(t[c].depth, n)); r *= e.sizeMultiplier, n *= e.sizeMultiplier; var s; - if (i.left === "." ? s = ci(e, ["mopen"]) : s = nr.leftRightDelim(i.left, r, n, e, i.mode, ["mopen"]), t.unshift(s), o) + if (i.left === "." ? s = ci(e, ["mopen"]) : s = ar.leftRightDelim(i.left, r, n, e, i.mode, ["mopen"]), t.unshift(s), o) for (var a = 1; a < t.length; a++) { var u = t[a], p = u.isMiddle; - p && (t[a] = nr.leftRightDelim(p.delim, r, n, p.options, i.mode, [])); + p && (t[a] = ar.leftRightDelim(p.delim, r, n, p.options, i.mode, [])); } var f; if (i.right === ".") f = ci(e, ["mclose"]); else { var g = i.rightColor ? e.withColor(i.rightColor) : e; - f = nr.leftRightDelim(i.right, r, n, g, i.mode, ["mclose"]); + f = ar.leftRightDelim(i.right, r, n, g, i.mode, ["mclose"]); } return t.push(f), G.makeSpan(["minner"], t, e); }, @@ -6889,7 +6889,7 @@ he({ if (i.delim === ".") t = ci(e, []); else { - t = nr.sizedDelim(i.delim, 1, e, i.mode, []); + t = ar.sizedDelim(i.delim, 1, e, i.mode, []); var r = { delim: i.delim, options: e @@ -6918,7 +6918,7 @@ var wn = (i, e) => { n = n / p.sizeMultiplier; var f = t.height + t.depth + a + u; t.style.paddingLeft = le(f / 2 + a); - var g = Math.floor(1e3 * f * n), v = Ih(g), C = new ar([new gr("phase", v)], { + var g = Math.floor(1e3 * f * n), v = Ph(g), C = new or([new vr("phase", v)], { width: "400em", height: le(g / 1e3), viewBox: "0 0 400000 " + g, @@ -6933,7 +6933,7 @@ var wn = (i, e) => { // default e.minRuleThickness // User override. - ), b = e.fontMetrics().fboxsep + (r === "colorbox" ? 0 : m), d = b) : r === "angl" ? (m = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), b = 4 * m, d = Math.max(0, 0.25 - t.depth)) : (b = s ? 0.2 : 0, d = b), o = lr.encloseSpan(t, r, b, d, e), /fbox|boxed|fcolorbox/.test(r) ? (o.style.borderStyle = "solid", o.style.borderWidth = le(m)) : r === "angl" && m !== 0.049 && (o.style.borderTopWidth = le(m), o.style.borderRightWidth = le(m)), c = t.depth + d, i.backgroundColor && (o.style.backgroundColor = i.backgroundColor, i.borderColor && (o.style.borderColor = i.borderColor)); + ), b = e.fontMetrics().fboxsep + (r === "colorbox" ? 0 : m), d = b) : r === "angl" ? (m = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), b = 4 * m, d = Math.max(0, 0.25 - t.depth)) : (b = s ? 0.2 : 0, d = b), o = hr.encloseSpan(t, r, b, d, e), /fbox|boxed|fcolorbox/.test(r) ? (o.style.borderStyle = "solid", o.style.borderWidth = le(m)) : r === "angl" && m !== 0.049 && (o.style.borderTopWidth = le(m), o.style.borderRightWidth = le(m)), c = t.depth + d, i.backgroundColor && (o.style.backgroundColor = i.backgroundColor, i.borderColor && (o.style.borderColor = i.borderColor)); } var h; if (i.backgroundColor) @@ -6975,7 +6975,7 @@ var wn = (i, e) => { } return /cancel/.test(r) && (h.height = t.height, h.depth = t.depth), /cancel/.test(r) && !s ? G.makeSpan(["mord", "cancel-lap"], [h], e) : G.makeSpan(["mord"], [h], e); }, yn = (i, e) => { - var t = 0, r = new te.MathNode(i.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [Fe(i.body, e)]); + var t = 0, r = new te.MathNode(i.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [Re(i.body, e)]); switch (i.label) { case "\\cancel": r.setAttribute("notation", "updiagonalstrike"); @@ -7123,7 +7123,7 @@ he({ }; } }); -var F0 = {}; +var R0 = {}; function $t(i) { for (var { type: e, @@ -7139,12 +7139,12 @@ function $t(i) { numOptionalArgs: 0, handler: n }, a = 0; a < t.length; ++a) - F0[t[a]] = s; + R0[t[a]] = s; o && ($i[e] = o), c && (Zi[e] = c); } -var R0 = {}; +var L0 = {}; function M(i, e) { - R0[i] = e; + L0[i] = e; } function ya(i) { var e = []; @@ -7163,7 +7163,7 @@ function Sn(i) { if (i.indexOf("ed") === -1) return i.indexOf("*") === -1; } -function br(i, e, t) { +function wr(i, e, t) { var { hskipBeforeAndAfter: r, addJot: n, @@ -7254,11 +7254,11 @@ var Zt = function(e, t) { number: 3, unit: "ex" }, t) : 12 * f, b = 3 * f, d = e.arraystretch * C, m = 0.7 * d, h = 0.3 * d, l = 0; - function _($) { - for (var Ye = 0; Ye < $.length; ++Ye) - Ye > 0 && (l += 0.25), u.push({ + function _(Ve) { + for (var $ = 0; $ < Ve.length; ++$) + $ > 0 && (l += 0.25), u.push({ pos: l, - isDashed: $[Ye] + isDashed: Ve[$] }); } for (_(c[0]), r = 0; r < e.body.length; ++r) { @@ -7273,7 +7273,7 @@ var Zt = function(e, t) { B && (O = ze(B, t), O > 0 && (O += h, D < O && (D = O), O = 0)), e.addJot && (D += b), y.height = x, y.depth = D, l += x, y.pos = l, l += D + O, a[r] = y, _(c[r + 1]); } var N = l / 2 + t.fontMetrics().axisHeight, R = e.cols || [], j = [], Y, ee, ne = []; - if (e.tags && e.tags.some(($) => $)) + if (e.tags && e.tags.some((Ve) => Ve)) for (r = 0; r < o; ++r) { var Z = a[r], T = Z.pos - N, L = e.tags[r], I = void 0; L === !0 ? I = G.makeSpan(["eqn-num"], [], t) : L === !1 ? I = G.makeSpan([], [], t) : I = G.makeSpan([], je(L, t, !0), t), I.depth = Z.depth, I.height = Z.height, ne.push({ @@ -7326,15 +7326,15 @@ var Zt = function(e, t) { elem: a, shift: 0 }]; u.length > 0; ) { - var De = u.pop(), Re = De.pos - N; + var De = u.pop(), Te = De.pos - N; De.isDashed ? xe.push({ type: "elem", elem: be, - shift: Re + shift: Te }) : xe.push({ type: "elem", elem: se, - shift: Re + shift: Te }); } a = G.makeVList({ @@ -7344,19 +7344,19 @@ var Zt = function(e, t) { } if (ne.length === 0) return G.makeSpan(["mord"], [a], t); - var fe = G.makeVList({ + var de = G.makeVList({ positionType: "individualShift", children: ne }, t); - return fe = G.makeSpan(["tag"], [fe], t), G.makeFragment([a, fe]); -}, jc = { + return de = G.makeSpan(["tag"], [de], t), G.makeFragment([a, de]); +}, Gc = { c: "center ", l: "left ", r: "right " }, Jt = function(e, t) { for (var r = [], n = new te.MathNode("mtd", [], ["mtr-glue"]), o = new te.MathNode("mtd", [], ["mml-eqn-num"]), c = 0; c < e.body.length; c++) { for (var s = e.body[c], a = [], u = 0; u < s.length; u++) - a.push(new te.MathNode("mtd", [Fe(s[u], t)])); + a.push(new te.MathNode("mtd", [Re(s[u], t)])); e.tags && e.tags[c] && (a.unshift(n), a.push(n), e.leqno ? a.unshift(o) : a.push(o)), r.push(new te.MathNode("mtr", a)); } var p = new te.MathNode("mtable", r), f = e.arraystretch === 0.5 ? 0.1 : 0.16 + e.arraystretch - 1 + (e.addJot ? 0.09 : 0); @@ -7366,7 +7366,7 @@ var Zt = function(e, t) { var C = e.cols, b = "", d = !1, m = 0, h = C.length; C[0].type === "separator" && (g += "top ", m = 1), C[C.length - 1].type === "separator" && (g += "bottom ", h -= 1); for (var l = m; l < h; l++) - C[l].type === "align" ? (v += jc[C[l].align], d && (b += "none "), d = !0) : C[l].type === "separator" && d && (b += C[l].separator === "|" ? "solid " : "dashed ", d = !1); + C[l].type === "align" ? (v += Gc[C[l].align], d && (b += "none "), d = !0) : C[l].type === "separator" && d && (b += C[l].separator === "|" ? "solid " : "dashed ", d = !1); p.setAttribute("columnalign", v.trim()), /[sd]/.test(b) && p.setAttribute("columnlines", b.trim()); } if (e.colSeparationType === "align") { @@ -7379,9 +7379,9 @@ var Zt = function(e, t) { for (var E = 1; E < y.length - 1; E++) D += y[E].length === 0 ? "none " : y[E][0] ? "dashed " : "solid "; return /[sd]/.test(D) && p.setAttribute("rowlines", D.trim()), g !== "" && (p = new te.MathNode("menclose", [p]), p.setAttribute("notation", g.trim())), e.arraystretch && e.arraystretch < 1 && (p = new te.MathNode("mstyle", [p]), p.setAttribute("scriptlevel", "1")), p; -}, L0 = function(e, t) { +}, O0 = function(e, t) { e.envName.indexOf("ed") === -1 && ls(e); - var r = [], n = e.envName.indexOf("at") > -1 ? "alignat" : "align", o = e.envName === "split", c = br(e.parser, { + var r = [], n = e.envName.indexOf("at") > -1 ? "alignat" : "align", o = e.envName === "split", c = wr(e.parser, { cols: r, addJot: !0, autoTag: o ? void 0 : Sn(e.envName), @@ -7457,7 +7457,7 @@ $t({ // \@preamble in lttab.dtx maxNumCols: n.length }; - return br(i.parser, o, Cn(i.envName)); + return wr(i.parser, o, Cn(i.envName)); }, htmlBuilder: Zt, mathmlBuilder: Jt @@ -7494,7 +7494,7 @@ $t({ }]; } } - var o = br(i.parser, r, Cn(i.envName)), c = Math.max(0, ...o.body.map((s) => s.length)); + var o = wr(i.parser, r, Cn(i.envName)), c = Math.max(0, ...o.body.map((s) => s.length)); return o.cols = new Array(c).fill({ type: "align", align: t @@ -7520,7 +7520,7 @@ $t({ handler(i) { var e = { arraystretch: 0.5 - }, t = br(i.parser, e, "script"); + }, t = wr(i.parser, e, "script"); return t.colSeparationType = "small", t; }, htmlBuilder: Zt, @@ -7549,7 +7549,7 @@ $t({ hskipBeforeAndAfter: !1, arraystretch: 0.5 }; - if (o = br(i.parser, o, "script"), o.body.length > 0 && o.body[0].length > 1) + if (o = wr(i.parser, o, "script"), o.body.length > 0 && o.body[0].length > 1) throw new ie("{subarray} can contain only one column"); return o; }, @@ -7581,7 +7581,7 @@ $t({ pregap: 0, postgap: 0 }] - }, t = br(i.parser, e, Cn(i.envName)); + }, t = wr(i.parser, e, Cn(i.envName)); return { type: "leftright", mode: i.mode, @@ -7600,7 +7600,7 @@ $t({ props: { numArgs: 0 }, - handler: L0, + handler: O0, htmlBuilder: Zt, mathmlBuilder: Jt }); @@ -7623,7 +7623,7 @@ $t({ emptySingleRow: !0, leqno: i.parser.settings.leqno }; - return br(i.parser, e, "display"); + return wr(i.parser, e, "display"); }, htmlBuilder: Zt, mathmlBuilder: Jt @@ -7634,7 +7634,7 @@ $t({ props: { numArgs: 1 }, - handler: L0, + handler: O0, htmlBuilder: Zt, mathmlBuilder: Jt }); @@ -7653,7 +7653,7 @@ $t({ maxNumCols: 1, leqno: i.parser.settings.leqno }; - return br(i.parser, e, "display"); + return wr(i.parser, e, "display"); }, htmlBuilder: Zt, mathmlBuilder: Jt @@ -7665,7 +7665,7 @@ $t({ numArgs: 0 }, handler(i) { - return ls(i), Mc(i.parser); + return ls(i), Bc(i.parser); }, htmlBuilder: Zt, mathmlBuilder: Jt @@ -7685,7 +7685,7 @@ he({ throw new ie(i.funcName + " valid only within array environment"); } }); -var Sa = F0; +var Sa = R0; he({ type: "environment", names: ["\\begin", "\\end"], @@ -7727,12 +7727,12 @@ he({ }; } }); -var O0 = (i, e) => { +var I0 = (i, e) => { var t = i.font, r = e.withFont(t); return Ae(i.body, r); -}, I0 = (i, e) => { +}, P0 = (i, e) => { var t = i.font, r = e.withFont(t); - return Fe(i.body, r); + return Re(i.body, r); }, Ca = { "\\Bbb": "\\mathbb", "\\bold": "\\mathbf", @@ -7775,8 +7775,8 @@ he({ body: n }; }, - htmlBuilder: O0, - mathmlBuilder: I0 + htmlBuilder: I0, + mathmlBuilder: P0 }); he({ type: "mclass", @@ -7828,14 +7828,14 @@ he({ } }; }, - htmlBuilder: O0, - mathmlBuilder: I0 + htmlBuilder: I0, + mathmlBuilder: P0 }); -var P0 = (i, e) => { +var z0 = (i, e) => { var t = e; return i === "display" ? t = t.id >= ve.SCRIPT.id ? t.text() : ve.DISPLAY : i === "text" && t.size === ve.DISPLAY.size ? t = ve.TEXT : i === "script" ? t = ve.SCRIPT : i === "scriptscript" && (t = ve.SCRIPTSCRIPT), t; }, xn = (i, e) => { - var t = P0(i.size, e.style), r = t.fracNum(), n = t.fracDen(), o; + var t = z0(i.size, e.style), r = t.fracNum(), n = t.fracDen(), o; o = e.havingStyle(r); var c = Ae(i.numer, o, e); if (i.continued) { @@ -7887,16 +7887,16 @@ var P0 = (i, e) => { var _; t.size === ve.DISPLAY.size ? _ = e.fontMetrics().delim1 : t.size === ve.SCRIPTSCRIPT.size ? _ = e.havingStyle(ve.SCRIPT).fontMetrics().delim2 : _ = e.fontMetrics().delim2; var S, x; - return i.leftDelim == null ? S = ci(e, ["mopen"]) : S = nr.customSizedDelim(i.leftDelim, _, !0, e.havingStyle(t), i.mode, ["mopen"]), i.continued ? x = G.makeSpan([]) : i.rightDelim == null ? x = ci(e, ["mclose"]) : x = nr.customSizedDelim(i.rightDelim, _, !0, e.havingStyle(t), i.mode, ["mclose"]), G.makeSpan(["mord"].concat(o.sizingClasses(e)), [S, G.makeSpan(["mfrac"], [d]), x], e); + return i.leftDelim == null ? S = ci(e, ["mopen"]) : S = ar.customSizedDelim(i.leftDelim, _, !0, e.havingStyle(t), i.mode, ["mopen"]), i.continued ? x = G.makeSpan([]) : i.rightDelim == null ? x = ci(e, ["mclose"]) : x = ar.customSizedDelim(i.rightDelim, _, !0, e.havingStyle(t), i.mode, ["mclose"]), G.makeSpan(["mord"].concat(o.sizingClasses(e)), [S, G.makeSpan(["mfrac"], [d]), x], e); }, kn = (i, e) => { - var t = new te.MathNode("mfrac", [Fe(i.numer, e), Fe(i.denom, e)]); + var t = new te.MathNode("mfrac", [Re(i.numer, e), Re(i.denom, e)]); if (!i.hasBarLine) t.setAttribute("linethickness", "0px"); else if (i.barSize) { var r = ze(i.barSize, e); t.setAttribute("linethickness", le(r)); } - var n = P0(i.size, e.style); + var n = z0(i.size, e.style); if (n.size !== e.style.size) { t = new te.MathNode("mstyle", [t]); var o = n.size === ve.DISPLAY.size ? "true" : "false"; @@ -8129,7 +8129,7 @@ he({ var { parser: t, funcName: r - } = i, n = e[0], o = yh(Ce(e[1], "infix").size), c = e[2], s = o.number > 0; + } = i, n = e[0], o = Sh(Ce(e[1], "infix").size), c = e[2], s = o.number > 0; return { type: "genfrac", mode: t.mode, @@ -8146,10 +8146,10 @@ he({ htmlBuilder: xn, mathmlBuilder: kn }); -var z0 = (i, e) => { +var H0 = (i, e) => { var t = e.style, r, n; i.type === "supsub" ? (r = i.sup ? Ae(i.sup, e.havingStyle(t.sup()), e) : Ae(i.sub, e.havingStyle(t.sub()), e), n = Ce(i.base, "horizBrace")) : n = Ce(i, "horizBrace"); - var o = Ae(n.base, e.havingBaseStyle(ve.DISPLAY)), c = lr.svgSpan(n, e), s; + var o = Ae(n.base, e.havingBaseStyle(ve.DISPLAY)), c = hr.svgSpan(n, e), s; if (n.isOver ? (s = G.makeVList({ positionType: "firstBaseline", children: [{ @@ -8205,9 +8205,9 @@ var z0 = (i, e) => { }, e); } return G.makeSpan(["mord", n.isOver ? "mover" : "munder"], [s], e); -}, Gc = (i, e) => { - var t = lr.mathMLnode(i.label); - return new te.MathNode(i.isOver ? "mover" : "munder", [Fe(i.base, e), t]); +}, Vc = (i, e) => { + var t = hr.mathMLnode(i.label); + return new te.MathNode(i.isOver ? "mover" : "munder", [Re(i.base, e), t]); }; he({ type: "horizBrace", @@ -8228,8 +8228,8 @@ he({ base: e[0] }; }, - htmlBuilder: z0, - mathmlBuilder: Gc + htmlBuilder: H0, + mathmlBuilder: Vc }); he({ type: "href", @@ -8258,7 +8258,7 @@ he({ return G.makeAnchor(i.href, [], t, e); }, mathmlBuilder: (i, e) => { - var t = vr(i.body, e); + var t = br(i.body, e); return t instanceof vt || (t = new vt("mrow", [t])), t.setAttribute("href", i.href), t; } }); @@ -8394,7 +8394,7 @@ he({ o !== "class" && i.attributes.hasOwnProperty(o) && n.setAttribute(o, i.attributes[o]); return n; }, - mathmlBuilder: (i, e) => vr(i.body, e) + mathmlBuilder: (i, e) => br(i.body, e) }); he({ type: "htmlmathml", @@ -8418,7 +8418,7 @@ he({ var t = je(i.html, e, !1); return G.makeFragment(t); }, - mathmlBuilder: (i, e) => vr(i.mathml, e) + mathmlBuilder: (i, e) => br(i.mathml, e) }); var xs = function(e) { if (/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e)) @@ -8434,7 +8434,7 @@ var xs = function(e) { // sign + magnitude, cast to number unit: t[3] }; - if (!i0(r)) + if (!s0(r)) throw new ie("Invalid unit: '" + r.unit + "' in \\includegraphics."); return r; }; @@ -8506,7 +8506,7 @@ he({ height: le(t + r) }; n > 0 && (o.width = le(n)), r > 0 && (o.verticalAlign = le(-r)); - var c = new Gh(i.src, i.alt, o); + var c = new Vh(i.src, i.alt, o); return c.height = t, c.depth = r, c; }, mathmlBuilder: (i, e) => { @@ -8578,7 +8578,7 @@ he({ return o.style.height = le(n.height + n.depth), n.depth && (o.style.verticalAlign = le(-n.depth)), n.children.unshift(o), n = G.makeSpan(["thinbox"], [n], e), G.makeSpan(["mord", "vbox"], [n], e); }, mathmlBuilder: (i, e) => { - var t = new te.MathNode("mpadded", [Fe(i.body, e)]); + var t = new te.MathNode("mpadded", [Re(i.body, e)]); if (i.alignment !== "rlap") { var r = i.alignment === "llap" ? "-1" : "-0.5"; t.setAttribute("lspace", r + "width"); @@ -8662,10 +8662,10 @@ he({ }, mathmlBuilder: (i, e) => { var t = Da(i, e); - return vr(t, e); + return br(t, e); } }); -var H0 = (i, e, t, r, n, o, c) => { +var N0 = (i, e, t, r, n, o, c) => { i = G.makeSpan([], [i]); var s = t && _e.isCharacterBox(t), a, u; if (e) { @@ -8761,11 +8761,11 @@ var H0 = (i, e, t, r, n, o, c) => { m.style.marginRight = le(o), d.unshift(m); } return G.makeSpan(["mop", "op-limits"], d, r); -}, N0 = ["\\smallint"], Gr = (i, e) => { +}, q0 = ["\\smallint"], Gr = (i, e) => { var t, r, n = !1, o; i.type === "supsub" ? (t = i.sup, r = i.sub, o = Ce(i.base, "op"), n = !0) : o = Ce(i, "op"); var c = e.style, s = !1; - c.size === ve.DISPLAY.size && o.symbol && !_e.contains(N0, o.name) && (s = !0); + c.size === ve.DISPLAY.size && o.symbol && !_e.contains(q0, o.name) && (s = !0); var a; if (o.symbol) { var u = s ? "Size2-Regular" : "Size1-Regular", p = ""; @@ -8793,20 +8793,20 @@ var H0 = (i, e, t, r, n, o, c) => { a = G.makeSpan(["mop"], C, e); } var d = 0, m = 0; - return (a instanceof Ct || o.name === "\\oiint" || o.name === "\\oiiint") && !o.suppressBaseShift && (d = (a.height - a.depth) / 2 - e.fontMetrics().axisHeight, m = a.italic), n ? H0(a, t, r, e, c, m, d) : (d && (a.style.position = "relative", a.style.top = le(d)), a); + return (a instanceof Ct || o.name === "\\oiint" || o.name === "\\oiiint") && !o.suppressBaseShift && (d = (a.height - a.depth) / 2 - e.fontMetrics().axisHeight, m = a.italic), n ? N0(a, t, r, e, c, m, d) : (d && (a.style.position = "relative", a.style.top = le(d)), a); }, fi = (i, e) => { var t; if (i.symbol) - t = new vt("mo", [xt(i.name, i.mode)]), _e.contains(N0, i.name) && t.setAttribute("largeop", "false"); + t = new vt("mo", [xt(i.name, i.mode)]), _e.contains(q0, i.name) && t.setAttribute("largeop", "false"); else if (i.body) t = new vt("mo", lt(i.body, e)); else { t = new vt("mi", [new si(i.name.slice(1))]); var r = new vt("mo", [xt("⁡", "text")]); - i.parentIsSupSub ? t = new vt("mrow", [t, r]) : t = m0([t, r]); + i.parentIsSupSub ? t = new vt("mrow", [t, r]) : t = p0([t, r]); } return t; -}, Vc = { +}, Kc = { "∏": "\\prod", "∐": "\\coprod", "∑": "\\sum", @@ -8831,7 +8831,7 @@ he({ parser: t, funcName: r } = i, n = r; - return n.length === 1 && (n = Vc[n]), { + return n.length === 1 && (n = Kc[n]), { type: "op", mode: t.mode, limits: !0, @@ -8866,7 +8866,7 @@ he({ htmlBuilder: Gr, mathmlBuilder: fi }); -var Kc = { +var Xc = { "∫": "\\int", "∬": "\\iint", "∭": "\\iiint", @@ -8931,7 +8931,7 @@ he({ parser: e, funcName: t } = i, r = t; - return r.length === 1 && (r = Kc[r]), { + return r.length === 1 && (r = Xc[r]), { type: "op", mode: e.mode, limits: !1, @@ -8943,7 +8943,7 @@ he({ htmlBuilder: Gr, mathmlBuilder: fi }); -var q0 = (i, e) => { +var U0 = (i, e) => { var t, r, n = !1, o; i.type === "supsub" ? (t = i.sup, r = i.sub, o = Ce(i.base, "operatorname"), n = !0) : o = Ce(i, "operatorname"); var c; @@ -8962,8 +8962,8 @@ var q0 = (i, e) => { c = G.makeSpan(["mop"], a, e); } else c = G.makeSpan(["mop"], [], e); - return n ? H0(c, t, r, e, e.style, 0, 0) : c; -}, Xc = (i, e) => { + return n ? N0(c, t, r, e, e.style, 0, 0) : c; +}, Yc = (i, e) => { for (var t = lt(i.body, e.withFont("mathrm")), r = !0, n = 0; n < t.length; n++) { var o = t[n]; if (!(o instanceof te.SpaceNode)) if (o instanceof te.MathNode) @@ -9014,17 +9014,17 @@ he({ parentIsSupSub: !1 }; }, - htmlBuilder: q0, - mathmlBuilder: Xc + htmlBuilder: U0, + mathmlBuilder: Yc }); M("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@"); -Er({ +Ar({ type: "ordgroup", htmlBuilder(i, e) { return i.semisimple ? G.makeFragment(je(i.body, e, !1)) : G.makeSpan(["mord"], je(i.body, e, !0), e); }, mathmlBuilder(i, e) { - return vr(i.body, e, !0); + return br(i.body, e, !0); } }); he({ @@ -9065,7 +9065,7 @@ he({ mathmlBuilder(i, e) { var t = new te.MathNode("mo", [new te.TextNode("‾")]); t.setAttribute("stretchy", "true"); - var r = new te.MathNode("mover", [Fe(i.body, e), t]); + var r = new te.MathNode("mover", [Re(i.body, e), t]); return r.setAttribute("accent", "true"), r; } }); @@ -9187,7 +9187,7 @@ he({ }, e); }, mathmlBuilder(i, e) { - var t = new te.MathNode("mpadded", [Fe(i.body, e)]), r = i.dy.number + i.dy.unit; + var t = new te.MathNode("mpadded", [Re(i.body, e)]), r = i.dy.number + i.dy.unit; return t.setAttribute("voffset", r), t; } }); @@ -9239,16 +9239,16 @@ he({ return n >= 0 ? s.setAttribute("height", le(n)) : (s.setAttribute("height", le(n)), s.setAttribute("depth", le(-n))), s.setAttribute("voffset", le(n)), s; } }); -function U0(i, e, t) { +function W0(i, e, t) { for (var r = je(i, e, !1), n = e.sizeMultiplier / t.sizeMultiplier, o = 0; o < r.length; o++) { var c = r[o].classes.indexOf("sizing"); c < 0 ? Array.prototype.push.apply(r[o].classes, e.sizingClasses(t)) : r[o].classes[c + 1] === "reset-size" + e.size && (r[o].classes[c + 1] = "reset-size" + t.size), r[o].height *= n, r[o].depth *= n; } return G.makeFragment(r); } -var Ea = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], Yc = (i, e) => { +var Ea = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], $c = (i, e) => { var t = e.havingSize(i.size); - return U0(i.body, t, e); + return W0(i.body, t, e); }; he({ type: "sizing", @@ -9271,7 +9271,7 @@ he({ body: o }; }, - htmlBuilder: Yc, + htmlBuilder: $c, mathmlBuilder: (i, e) => { var t = e.havingSize(i.size), r = lt(i.body, t), n = new te.MathNode("mstyle", r); return n.setAttribute("mathsize", le(t.sizeMultiplier)), n; @@ -9332,7 +9332,7 @@ he({ return G.makeSpan(["mord"], [o], e); }, mathmlBuilder: (i, e) => { - var t = new te.MathNode("mpadded", [Fe(i.body, e)]); + var t = new te.MathNode("mpadded", [Re(i.body, e)]); return i.smashHeight && t.setAttribute("height", "0px"), i.smashDepth && t.setAttribute("depth", "0px"), t; } }); @@ -9363,7 +9363,7 @@ he({ span: a, ruleWidth: u, advanceWidth: p - } = nr.sqrtImage(s, e), f = a.height - u; + } = ar.sqrtImage(s, e), f = a.height - u; f > t.height + t.depth + c && (c = (c + f - t.height - t.depth) / 2); var g = a.height - t.height - c - u; t.style.paddingLeft = le(p); @@ -9402,7 +9402,7 @@ he({ body: t, index: r } = i; - return r ? new te.MathNode("mroot", [Fe(t, e), Fe(r, e)]) : new te.MathNode("msqrt", [Fe(t, e)]); + return r ? new te.MathNode("mroot", [Re(t, e), Re(r, e)]) : new te.MathNode("msqrt", [Re(t, e)]); } }); var Aa = { @@ -9436,7 +9436,7 @@ he({ }, htmlBuilder(i, e) { var t = Aa[i.style], r = e.havingStyle(t).withFont(""); - return U0(i.body, r, e); + return W0(i.body, r, e); }, mathmlBuilder(i, e) { var t = Aa[i.style], r = e.havingStyle(t), n = lt(i.body, r), o = new te.MathNode("mstyle", n), c = { @@ -9448,7 +9448,7 @@ he({ return o.setAttribute("scriptlevel", s[0]), o.setAttribute("displaystyle", s[1]), o; } }); -var $c = function(e, t) { +var Zc = function(e, t) { var r = e.base; if (r) if (r.type === "op") { @@ -9456,22 +9456,22 @@ var $c = function(e, t) { return n ? Gr : null; } else if (r.type === "operatorname") { var o = r.alwaysHandleSupSub && (t.style.size === ve.DISPLAY.size || r.limits); - return o ? q0 : null; + return o ? U0 : null; } else { if (r.type === "accent") return _e.isCharacterBox(r.base) ? vn : null; if (r.type === "horizBrace") { var c = !e.sub; - return c === r.isOver ? z0 : null; + return c === r.isOver ? H0 : null; } else return null; } else return null; }; -Er({ +Ar({ type: "supsub", htmlBuilder(i, e) { - var t = $c(i, e); + var t = Zc(i, e); if (t) return t(i, e); var { @@ -9550,8 +9550,8 @@ Er({ mathmlBuilder(i, e) { var t = !1, r, n; i.base && i.base.type === "horizBrace" && (n = !!i.sup, n === i.base.isOver && (t = !0, r = i.base.isOver)), i.base && (i.base.type === "op" || i.base.type === "operatorname") && (i.base.parentIsSupSub = !0); - var o = [Fe(i.base, e)]; - i.sub && o.push(Fe(i.sub, e)), i.sup && o.push(Fe(i.sup, e)); + var o = [Re(i.base, e)]; + i.sub && o.push(Re(i.sub, e)), i.sup && o.push(Re(i.sup, e)); var c; if (t) c = r ? "mover" : "munder"; @@ -9570,7 +9570,7 @@ Er({ return new te.MathNode(c, o); } }); -Er({ +Ar({ type: "atom", htmlBuilder(i, e) { return G.mathsym(i.text, i.mode, e, ["m" + i.family]); @@ -9584,29 +9584,29 @@ Er({ return t; } }); -var W0 = { +var j0 = { mi: "italic", mn: "normal", mtext: "normal" }; -Er({ +Ar({ type: "mathord", htmlBuilder(i, e) { return G.makeOrd(i, e, "mathord"); }, mathmlBuilder(i, e) { var t = new te.MathNode("mi", [xt(i.text, i.mode, e)]), r = _n(i, e) || "italic"; - return r !== W0[t.type] && t.setAttribute("mathvariant", r), t; + return r !== j0[t.type] && t.setAttribute("mathvariant", r), t; } }); -Er({ +Ar({ type: "textord", htmlBuilder(i, e) { return G.makeOrd(i, e, "textord"); }, mathmlBuilder(i, e) { var t = xt(i.text, i.mode, e), r = _n(i, e) || "normal", n; - return i.mode === "text" ? n = new te.MathNode("mtext", [t]) : /[0-9]/.test(i.text) ? n = new te.MathNode("mn", [t]) : i.text === "\\prime" ? n = new te.MathNode("mo", [t]) : n = new te.MathNode("mi", [t]), r !== W0[n.type] && n.setAttribute("mathvariant", r), n; + return i.mode === "text" ? n = new te.MathNode("mtext", [t]) : /[0-9]/.test(i.text) ? n = new te.MathNode("mn", [t]) : i.text === "\\prime" ? n = new te.MathNode("mo", [t]) : n = new te.MathNode("mi", [t]), r !== j0[n.type] && n.setAttribute("mathvariant", r), n; } }); var ks = { @@ -9623,7 +9623,7 @@ var ks = { className: "nobreak" } }; -Er({ +Ar({ type: "spacing", htmlBuilder(i, e) { if (Ds.hasOwnProperty(i.text)) { @@ -9655,10 +9655,10 @@ var Ta = () => { var i = new te.MathNode("mtd", []); return i.setAttribute("width", "50%"), i; }; -Er({ +Ar({ type: "tag", mathmlBuilder(i, e) { - var t = new te.MathNode("mtable", [new te.MathNode("mtr", [Ta(), new te.MathNode("mtd", [vr(i.body, e)]), Ta(), new te.MathNode("mtd", [vr(i.tag, e)])])]); + var t = new te.MathNode("mtable", [new te.MathNode("mtr", [Ta(), new te.MathNode("mtd", [br(i.body, e)]), Ta(), new te.MathNode("mtd", [br(i.tag, e)])])]); return t.setAttribute("width", "100%"), t; } }); @@ -9671,7 +9671,7 @@ var Ma = { }, Ba = { "\\textbf": "textbf", "\\textmd": "textmd" -}, Zc = { +}, Jc = { "\\textit": "textit", "\\textup": "textup" }, Fa = (i, e) => { @@ -9684,7 +9684,7 @@ var Ma = { if (t === "\\emph") return e.fontShape === "textit" ? e.withTextFontShape("textup") : e.withTextFontShape("textit"); } else return e; - return e.withTextFontShape(Zc[t]); + return e.withTextFontShape(Jc[t]); }; he({ type: "text", @@ -9727,7 +9727,7 @@ he({ }, mathmlBuilder(i, e) { var t = Fa(i, e); - return vr(i.body, t); + return br(i.body, t); } }); he({ @@ -9770,7 +9770,7 @@ he({ mathmlBuilder(i, e) { var t = new te.MathNode("mo", [new te.TextNode("‾")]); t.setAttribute("stretchy", "true"); - var r = new te.MathNode("munder", [Fe(i.body, e), t]); + var r = new te.MathNode("munder", [Re(i.body, e), t]); return r.setAttribute("accentunder", "true"), r; } }); @@ -9805,7 +9805,7 @@ he({ }, e); }, mathmlBuilder(i, e) { - return new te.MathNode("mpadded", [Fe(i.body, e)], ["vcenter"]); + return new te.MathNode("mpadded", [Re(i.body, e)], ["vcenter"]); } }); he({ @@ -9830,23 +9830,23 @@ he({ return r.setAttribute("mathvariant", "monospace"), r; } }); -var Ra = (i) => i.body.replace(/ /g, i.star ? "␣" : " "), mr = d0, j0 = `[ \r - ]`, Jc = "\\\\[a-zA-Z@]+", Qc = "\\\\[^\uD800-\uDFFF]", eu = "(" + Jc + ")" + j0 + "*", tu = `\\\\( +var Ra = (i) => i.body.replace(/ /g, i.star ? "␣" : " "), pr = f0, G0 = `[ \r + ]`, Qc = "\\\\[a-zA-Z@]+", eu = "\\\\[^\uD800-\uDFFF]", tu = "(" + Qc + ")" + G0 + "*", ru = `\\\\( |[ \r ]+ -?)[ \r ]*`, $s = "[̀-ͯ]", ru = new RegExp($s + "+$"), iu = "(" + j0 + "+)|" + // whitespace -(tu + "|") + // \whitespace +?)[ \r ]*`, $s = "[̀-ͯ]", iu = new RegExp($s + "+$"), su = "(" + G0 + "+)|" + // whitespace +(ru + "|") + // \whitespace "([!-\\[\\]-‧‪-퟿豈-￿]" + // single codepoint ($s + "*") + // ...plus accents "|[\uD800-\uDBFF][\uDC00-\uDFFF]" + // surrogate pair ($s + "*") + // ...plus accents "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + // \verb unstarred -("|" + eu) + // \macroName + spaces -("|" + Qc + ")"); +("|" + tu) + // \macroName + spaces +("|" + eu + ")"); class La { // Category codes. The lexer only supports comment characters (14) for now. // MacroExpander additionally distinguishes active (13). constructor(e, t) { - this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = t, this.tokenRegex = new RegExp(iu, "g"), this.catcodes = { + this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = t, this.tokenRegex = new RegExp(su, "g"), this.catcodes = { "%": 14, // comment character "~": 13 @@ -9875,7 +9875,7 @@ class La { return new St(n, new ct(this, t, this.tokenRegex.lastIndex)); } } -class su { +class nu { /** * Both arguments are optional. The first argument is an object of * built-in mappings which never change. The second argument is an object @@ -9946,7 +9946,7 @@ class su { t == null ? delete this.current[e] : this.current[e] = t; } } -var nu = R0; +var au = L0; M("\\noexpand", function(i) { var e = i.popToken(); return i.isExpandable(e.text) && (e.noexpand = !0, e.treatAsRelax = !0), { @@ -10081,7 +10081,7 @@ M("\\errmessage", (i) => { }); M("\\show", (i) => { var e = i.popToken(), t = e.text; - return console.log(e, i.macros.get(t), mr[t], Oe.math[t], Oe.text[t]), ""; + return console.log(e, i.macros.get(t), pr[t], Oe.math[t], Oe.text[t]), ""; }); M("\\bgroup", "{"); M("\\egroup", "}"); @@ -10288,9 +10288,9 @@ M("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}"); M("\\mod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"); M("\\newline", "\\\\\\relax"); M("\\TeX", "\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}"); -var G0 = le(Wt["Main-Regular"][84][1] - 0.7 * Wt["Main-Regular"][65][1]); -M("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + G0 + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}"); -M("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + G0 + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}"); +var V0 = le(Wt["Main-Regular"][84][1] - 0.7 * Wt["Main-Regular"][65][1]); +M("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + V0 + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}"); +M("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + V0 + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}"); M("\\hspace", "\\@ifstar\\@hspacer\\@hspace"); M("\\@hspace", "\\hskip #1\\relax"); M("\\@hspacer", "\\rule{0pt}{0pt}\\hskip #1\\relax"); @@ -10436,7 +10436,7 @@ M("\\ket", "\\mathinner{|{#1}\\rangle}"); M("\\braket", "\\mathinner{\\langle{#1}\\rangle}"); M("\\Bra", "\\left\\langle#1\\right|"); M("\\Ket", "\\left|#1\\right\\rangle"); -var V0 = (i) => (e) => { +var K0 = (i) => (e) => { var t = e.consumeArg().tokens, r = e.consumeArg().tokens, n = e.consumeArg().tokens, o = e.consumeArg().tokens, c = e.macros.get("|"), s = e.macros.get("\\|"); e.macros.beginGroup(); var a = (f) => (g) => { @@ -10463,8 +10463,8 @@ var V0 = (i) => (e) => { numArgs: 0 }; }; -M("\\bra@ket", V0(!1)); -M("\\bra@set", V0(!0)); +M("\\bra@ket", K0(!1)); +M("\\bra@set", K0(!0)); M("\\Braket", "\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"); M("\\Set", "\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"); M("\\set", "\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"); @@ -10525,7 +10525,7 @@ M("\\grayH", "\\textcolor{##3b3e40}{#1}"); M("\\grayI", "\\textcolor{##21242c}{#1}"); M("\\kaBlue", "\\textcolor{##314453}{#1}"); M("\\kaGreen", "\\textcolor{##71B307}{#1}"); -var K0 = { +var X0 = { "^": !0, // Parser.js _: !0, @@ -10535,9 +10535,9 @@ var K0 = { "\\nolimits": !0 // Parser.js }; -class au { +class ou { constructor(e, t, r) { - this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = t, this.expansionCount = 0, this.feed(e), this.macros = new su(nu, t.macros), this.mode = r, this.stack = []; + this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = t, this.expansionCount = 0, this.feed(e), this.macros = new nu(au, t.macros), this.mode = r, this.stack = []; } /** * Feed a new input string to the same MacroExpander @@ -10819,14 +10819,14 @@ class au { * `implicitCommands`. */ isDefined(e) { - return this.macros.has(e) || mr.hasOwnProperty(e) || Oe.math.hasOwnProperty(e) || Oe.text.hasOwnProperty(e) || K0.hasOwnProperty(e); + return this.macros.has(e) || pr.hasOwnProperty(e) || Oe.math.hasOwnProperty(e) || Oe.text.hasOwnProperty(e) || X0.hasOwnProperty(e); } /** * Determine whether a command is expandable. */ isExpandable(e) { var t = this.macros.get(e); - return t != null ? typeof t == "string" || typeof t == "function" || !t.unexpandable : mr.hasOwnProperty(e) && !mr[e].primitive; + return t != null ? typeof t == "string" || typeof t == "function" || !t.unexpandable : pr.hasOwnProperty(e) && !pr[e].primitive; } } var Pa = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, ki = Object.freeze({ @@ -11327,7 +11327,7 @@ var Pa = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ }; class hs { constructor(e, t) { - this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new au(e, t, this.mode), this.settings = t, this.leftrightDepth = 0; + this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new ou(e, t, this.mode), this.settings = t, this.leftrightDepth = 0; } /** * Checks a result to make sure it has the right type, and throws an @@ -11395,7 +11395,7 @@ class hs { for (var r = []; ; ) { this.mode === "math" && this.consumeSpaces(); var n = this.fetch(); - if (hs.endOfExpression.indexOf(n.text) !== -1 || t && n.text === t || e && mr[n.text] && mr[n.text].infix) + if (hs.endOfExpression.indexOf(n.text) !== -1 || t && n.text === t || e && pr[n.text] && pr[n.text].infix) break; var o = this.parseAtom(t); if (o) { @@ -11545,7 +11545,7 @@ class hs { * Parses an entire function, including its base and all of its arguments. */ parseFunction(e, t) { - var r = this.fetch(), n = r.text, o = mr[n]; + var r = this.fetch(), n = r.text, o = pr[n]; if (!o) return null; if (this.consume(), t && t !== "atom" && !o.allowedInArgument) @@ -11569,7 +11569,7 @@ class hs { parser: this, token: n, breakOnTokenText: o - }, s = mr[e]; + }, s = pr[e]; if (s && s.handler) return s.handler(c, t, r); throw new ie("No function handler for " + e); @@ -11713,7 +11713,7 @@ class hs { // sign + magnitude, cast to number unit: n[3] }; - if (!i0(o)) + if (!s0(o)) throw new ie("Invalid unit: '" + o.unit + "'", t); return { type: "size", @@ -11781,7 +11781,7 @@ class hs { // use-begingroup-instead-of-bgroup semisimple: n === "\\begingroup" || void 0 }; - } else if (o = this.parseFunction(t, e) || this.parseSymbol(), o == null && n[0] === "\\" && !K0.hasOwnProperty(n)) { + } else if (o = this.parseFunction(t, e) || this.parseSymbol(), o == null && n[0] === "\\" && !X0.hasOwnProperty(n)) { if (this.settings.throwOnError) throw new ie("Undefined control sequence: " + n, r); o = this.formatUnsupportedCmd(n), this.consume(); @@ -11837,13 +11837,13 @@ class hs { }; } za.hasOwnProperty(t[0]) && !Oe[this.mode][t[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + t[0] + '" used in math mode', e), t = za[t[0]] + t.slice(1)); - var o = ru.exec(t); + var o = iu.exec(t); o && (t = t.substring(0, o.index), t === "i" ? t = "ı" : t === "j" && (t = "ȷ")); var c; if (Oe[this.mode][t]) { this.settings.strict && this.mode === "math" && Gs.indexOf(t) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + t[0] + '" used in math mode', e); var s = Oe[this.mode][t].group, a = ct.range(e), u; - if (Xh.hasOwnProperty(s)) { + if (Yh.hasOwnProperty(s)) { var p = s; u = { type: "atom", @@ -11861,7 +11861,7 @@ class hs { }; c = u; } else if (t.charCodeAt(0) >= 128) - this.settings.strict && (r0(t.charCodeAt(0)) ? this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Unicode text character "' + t[0] + '" used in math mode', e) : this.settings.reportNonstrict("unknownSymbol", 'Unrecognized Unicode character "' + t[0] + '"' + (" (" + t.charCodeAt(0) + ")"), e)), c = { + this.settings.strict && (i0(t.charCodeAt(0)) ? this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Unicode text character "' + t[0] + '" used in math mode', e) : this.settings.reportNonstrict("unknownSymbol", 'Unrecognized Unicode character "' + t[0] + '"' + (" (" + t.charCodeAt(0) + ")"), e)), c = { type: "textord", mode: "text", loc: ct.range(e), @@ -11909,21 +11909,21 @@ var An = function(e, t) { }]; } return n; -}, X0 = function(e, t, r) { +}, Y0 = function(e, t, r) { t.textContent = ""; var n = Tn(e, r).toNode(); t.appendChild(n); }; -typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), X0 = function() { +typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), Y0 = function() { throw new ie("KaTeX doesn't work in quirks mode."); }); -var ou = function(e, t) { +var lu = function(e, t) { var r = Tn(e, t).toMarkup(); return r; -}, lu = function(e, t) { +}, hu = function(e, t) { var r = new cn(t); return An(e, r); -}, Y0 = function(e, t, r) { +}, $0 = function(e, t, r) { if (r.throwOnError || !(e instanceof ie)) throw e; var n = G.makeSpan(["katex-error"], [new Ct(t)]); @@ -11932,17 +11932,17 @@ var ou = function(e, t) { var r = new cn(t); try { var n = An(e, r); - return gc(n, e, r); + return vc(n, e, r); } catch (o) { - return Y0(o, e, r); + return $0(o, e, r); } -}, hu = function(e, t) { +}, cu = function(e, t) { var r = new cn(t); try { var n = An(e, r); - return vc(n, e, r); + return bc(n, e, r); } catch (o) { - return Y0(o, e, r); + return $0(o, e, r); } }, Ha = { /** @@ -11953,12 +11953,12 @@ var ou = function(e, t) { * Renders the given LaTeX into an HTML+MathML combination, and adds * it as a child to the specified DOM node. */ - render: X0, + render: Y0, /** * Renders the given LaTeX into an HTML+MathML combination string, * for sending to the client. */ - renderToString: ou, + renderToString: lu, /** * KaTeX error, usually during parsing. */ @@ -11975,7 +11975,7 @@ var ou = function(e, t) { * The internal tree representation is unstable and is very likely * to change. Use at your own risk. */ - __parse: lu, + __parse: hu, /** * Renders the given LaTeX into an HTML+MathML internal DOM tree * representation, without flattening that representation to a string. @@ -11993,12 +11993,12 @@ var ou = function(e, t) { * The internal tree representation is unstable and is very likely * to change. Use at your own risk. */ - __renderToHTMLTree: hu, + __renderToHTMLTree: cu, /** * extends internal font metrics object with a new object * each key in the new object represents a font name */ - __setFontMetrics: qh, + __setFontMetrics: Uh, /** * adds a new symbol to builtin symbols table */ @@ -12024,11 +12024,11 @@ var ou = function(e, t) { Span: di, Anchor: fn, SymbolNode: Ct, - SvgNode: ar, - PathNode: gr, + SvgNode: or, + PathNode: vr, LineNode: js } -}, cu = function(e, t, r) { +}, uu = function(e, t, r) { for (var n = r, o = 0, c = e.length; n < t.length; ) { var s = t[n]; if (o <= 0 && t.slice(n, n + c) === e) @@ -12036,18 +12036,18 @@ var ou = function(e, t) { s === "\\" ? n++ : s === "{" ? o++ : s === "}" && o--, n++; } return -1; -}, uu = function(e) { +}, du = function(e) { return e.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"); -}, du = /^\\begin{/, fu = function(e, t) { - for (var r, n = [], o = new RegExp("(" + t.map((u) => uu(u.left)).join("|") + ")"); r = e.search(o), r !== -1; ) { +}, fu = /^\\begin{/, mu = function(e, t) { + for (var r, n = [], o = new RegExp("(" + t.map((u) => du(u.left)).join("|") + ")"); r = e.search(o), r !== -1; ) { r > 0 && (n.push({ type: "text", data: e.slice(0, r) }), e = e.slice(r)); var c = t.findIndex((u) => e.startsWith(u.left)); - if (r = cu(t[c].right, e, t[c].left.length), r === -1) + if (r = uu(t[c].right, e, t[c].left.length), r === -1) break; - var s = e.slice(0, r + t[c].right.length), a = du.test(s) ? s : e.slice(t[c].left.length, r); + var s = e.slice(0, r + t[c].right.length), a = fu.test(s) ? s : e.slice(t[c].left.length, r); n.push({ type: "math", data: a, @@ -12059,8 +12059,8 @@ var ou = function(e, t) { type: "text", data: e }), n; -}, mu = function(e, t) { - var r = fu(e, t.delimiters); +}, pu = function(e, t) { + var r = mu(e, t.delimiters); if (r.length === 1 && r[0].type === "text") return null; for (var n = document.createDocumentFragment(), o = 0; o < r.length; o++) @@ -12080,13 +12080,13 @@ var ou = function(e, t) { n.appendChild(c); } return n; -}, pu = function i(e, t) { +}, _u = function i(e, t) { for (var r = 0; r < e.childNodes.length; r++) { var n = e.childNodes[r]; if (n.nodeType === 3) { for (var o = n.textContent, c = n.nextSibling, s = 0; c && c.nodeType === Node.TEXT_NODE; ) o += c.textContent, c = c.nextSibling, s++; - var a = mu(o, t); + var a = pu(o, t); if (a) { for (var u = 0; u < s; u++) n.nextSibling.remove(); @@ -12098,7 +12098,7 @@ var ou = function(e, t) { f && i(n, t); }(); } -}, _u = function(e, t) { +}, gu = function(e, t) { if (!e) throw new Error("No element provided to render"); var r = {}; @@ -12149,7 +12149,7 @@ var ou = function(e, t) { right: "\\]", display: !0 } - ], r.ignoredTags = r.ignoredTags || ["script", "noscript", "style", "textarea", "pre", "code", "option"], r.ignoredClasses = r.ignoredClasses || [], r.errorCallback = r.errorCallback || console.error, r.macros = r.macros || {}, pu(e, r); + ], r.ignoredTags = r.ignoredTags || ["script", "noscript", "style", "textarea", "pre", "code", "option"], r.ignoredClasses = r.ignoredClasses || [], r.errorCallback = r.errorCallback || console.error, r.macros = r.macros || {}, _u(e, r); }; function Mn() { return { @@ -12165,37 +12165,37 @@ function Mn() { walkTokens: null }; } -let Ar = Mn(); -function $0(i) { - Ar = i; +let Tr = Mn(); +function Z0(i) { + Tr = i; } -const Z0 = /[&<>"']/, gu = new RegExp(Z0.source, "g"), J0 = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, vu = new RegExp(J0.source, "g"), bu = { +const J0 = /[&<>"']/, vu = new RegExp(J0.source, "g"), Q0 = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, bu = new RegExp(Q0.source, "g"), wu = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" -}, Na = (i) => bu[i]; +}, Na = (i) => wu[i]; function ut(i, e) { if (e) { - if (Z0.test(i)) - return i.replace(gu, Na); - } else if (J0.test(i)) - return i.replace(vu, Na); + if (J0.test(i)) + return i.replace(vu, Na); + } else if (Q0.test(i)) + return i.replace(bu, Na); return i; } -const wu = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig; -function yu(i) { - return i.replace(wu, (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 yu = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig; +function Su(i) { + return i.replace(yu, (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 Su = /(^|[^\[])\^/g; -function Be(i, e) { +const Cu = /(^|[^\[])\^/g; +function Fe(i, e) { let t = typeof i == "string" ? i : i.source; e = e || ""; const r = { replace: (n, o) => { let c = typeof o == "string" ? o : o.source; - return c = c.replace(Su, "$1"), t = t.replace(n, c), r; + return c = c.replace(Cu, "$1"), t = t.replace(n, c), r; }, getRegex: () => new RegExp(t, e) }; @@ -12244,7 +12244,7 @@ function Di(i, e, t) { } return i.slice(0, r - n); } -function Cu(i, e) { +function xu(i, e) { if (i.indexOf(e[1]) === -1) return -1; let t = 0; @@ -12279,7 +12279,7 @@ function Wa(i, e, t, r) { text: ut(c) }; } -function xu(i, e) { +function ku(i, e) { const t = i.match(/^(\s+)(?:```)/); if (t === null) return e; @@ -12301,7 +12301,7 @@ class Qi { lexer; // set by the lexer constructor(e) { - this.options = e || Ar; + this.options = e || Tr; } space(e) { const t = this.rules.block.newline.exec(e); @@ -12327,7 +12327,7 @@ class Qi { fences(e) { const t = this.rules.block.fences.exec(e); if (t) { - const r = t[0], n = xu(r, t[3] || ""); + const r = t[0], n = ku(r, t[3] || ""); return { type: "code", raw: r, @@ -12567,7 +12567,7 @@ class Qi { if ((r.length - c.length) % 2 === 0) return; } else { - const c = Cu(t[2], "()"); + const c = xu(t[2], "()"); if (c > -1) { const a = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + c; t[2] = t[2].substring(0, c), t[0] = t[0].substring(0, a).trim(), t[3] = ""; @@ -12730,79 +12730,79 @@ class Qi { } } } -const ku = /^(?: *(?:\n|$))+/, Du = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Eu = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, mi = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Au = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Q0 = /(?:[*+-]|\d{1,9}[.)])/, el = Be(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, Q0).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(), Bn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Tu = /^[^\n]+/, Fn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Mu = Be(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", Fn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Bu = Be(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Q0).getRegex(), cs = "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", Rn = /|$))/, Fu = Be("^ {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", Rn).replace("tag", cs).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), tl = Be(Bn).replace("hr", mi).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", cs).getRegex(), Ru = Be(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", tl).getRegex(), Ln = { - blockquote: Ru, - code: Du, - def: Mu, - fences: Eu, - heading: Au, +const Du = /^(?: *(?:\n|$))+/, Eu = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Au = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, mi = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Tu = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, el = /(?:[*+-]|\d{1,9}[.)])/, tl = Fe(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, el).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(), Bn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Mu = /^[^\n]+/, Fn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Bu = Fe(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", Fn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Fu = Fe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, el).getRegex(), cs = "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", Rn = /|$))/, Ru = Fe("^ {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", Rn).replace("tag", cs).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), rl = Fe(Bn).replace("hr", mi).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", cs).getRegex(), Lu = Fe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", rl).getRegex(), Ln = { + blockquote: Lu, + code: Eu, + def: Bu, + fences: Au, + heading: Tu, hr: mi, - html: Fu, - lheading: el, - list: Bu, - newline: ku, - paragraph: tl, + html: Ru, + lheading: tl, + list: Fu, + newline: Du, + paragraph: rl, table: ai, - text: Tu -}, ja = Be("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", mi).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", cs).getRegex(), Lu = { + text: Mu +}, ja = Fe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", mi).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", cs).getRegex(), Ou = { ...Ln, table: ja, - paragraph: Be(Bn).replace("hr", mi).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ja).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", cs).getRegex() -}, Ou = { + paragraph: Fe(Bn).replace("hr", mi).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ja).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", cs).getRegex() +}, Iu = { ...Ln, - html: Be(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Rn).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(), + html: Fe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Rn).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: ai, // fences not supported lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, - paragraph: Be(Bn).replace("hr", mi).replace("heading", ` *#{1,6} *[^ -]`).replace("lheading", el).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() -}, rl = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Iu = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, il = /^( {2,}|\\)\n(?!\s*$)/, Pu = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, Nu = Be(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, pi).getRegex(), qu = Be("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, pi).getRegex(), Uu = Be("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, pi).getRegex(), Wu = Be(/\\([punct])/, "gu").replace(/punct/g, pi).getRegex(), ju = Be(/^<(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(), Gu = Be(Rn).replace("(?:-->|$)", "-->").getRegex(), Vu = Be("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", Gu).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), es = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Ku = Be(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", es).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), sl = Be(/^!?\[(label)\]\[(ref)\]/).replace("label", es).replace("ref", Fn).getRegex(), nl = Be(/^!?\[(ref)\](?:\[\])?/).replace("ref", Fn).getRegex(), Xu = Be("reflink|nolink(?!\\()", "g").replace("reflink", sl).replace("nolink", nl).getRegex(), On = { + paragraph: Fe(Bn).replace("hr", mi).replace("heading", ` *#{1,6} *[^ +]`).replace("lheading", tl).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() +}, il = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Pu = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, sl = /^( {2,}|\\)\n(?!\s*$)/, zu = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, qu = Fe(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, pi).getRegex(), Uu = Fe("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, pi).getRegex(), Wu = Fe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, pi).getRegex(), ju = Fe(/\\([punct])/, "gu").replace(/punct/g, pi).getRegex(), Gu = Fe(/^<(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(), Vu = Fe(Rn).replace("(?:-->|$)", "-->").getRegex(), Ku = Fe("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", Vu).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), es = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Xu = Fe(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", es).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), nl = Fe(/^!?\[(label)\]\[(ref)\]/).replace("label", es).replace("ref", Fn).getRegex(), al = Fe(/^!?\[(ref)\](?:\[\])?/).replace("ref", Fn).getRegex(), Yu = Fe("reflink|nolink(?!\\()", "g").replace("reflink", nl).replace("nolink", al).getRegex(), On = { _backpedal: ai, // only used for GFM url - anyPunctuation: Wu, - autolink: ju, - blockSkip: Hu, - br: il, - code: Iu, + anyPunctuation: ju, + autolink: Gu, + blockSkip: Nu, + br: sl, + code: Pu, del: ai, - emStrongLDelim: Nu, - emStrongRDelimAst: qu, - emStrongRDelimUnd: Uu, - escape: rl, - link: Ku, - nolink: nl, - punctuation: zu, - reflink: sl, - reflinkSearch: Xu, - tag: Vu, - text: Pu, + emStrongLDelim: qu, + emStrongRDelimAst: Uu, + emStrongRDelimUnd: Wu, + escape: il, + link: Xu, + nolink: al, + punctuation: Hu, + reflink: nl, + reflinkSearch: Yu, + tag: Ku, + text: zu, url: ai -}, Yu = { +}, $u = { ...On, - link: Be(/^!?\[(label)\]\((.*?)\)/).replace("label", es).getRegex(), - reflink: Be(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", es).getRegex() + link: Fe(/^!?\[(label)\]\((.*?)\)/).replace("label", es).getRegex(), + reflink: Fe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", es).getRegex() }, Zs = { ...On, - escape: Be(rl).replace("])", "~|])").getRegex(), - url: Be(/^((?: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(), + escape: Fe(il).replace("])", "~|])").getRegex(), + url: Fe(/^((?: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]*?(?:(?=[\\"']/, Ju = new RegExp(ol.source, "g"), ll = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Qu = new RegExp(ll.source, "g"), e1 = { +const ll = /[&<>"']/, Qu = new RegExp(ll.source, "g"), hl = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, e1 = new RegExp(hl.source, "g"), t1 = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" -}, Ka = (i) => e1[i]; +}, Ka = (i) => t1[i]; function Xa(i, e) { if (e) { - if (ol.test(i)) - return i.replace(Ju, Ka); - } else if (ll.test(i)) - return i.replace(Qu, Ka); + if (ll.test(i)) + return i.replace(Qu, Ka); + } else if (hl.test(i)) + return i.replace(e1, Ka); return i; } -const t1 = /[\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, r1 = Object.hasOwnProperty; +const r1 = /[\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, i1 = Object.hasOwnProperty; class Pn { /** * Create a new slug class. @@ -13658,9 +13658,9 @@ class Pn { */ slug(e, t) { const r = this; - let n = i1(e, t === !0); + let n = s1(e, t === !0); const o = n; - for (; r1.call(r.occurrences, n); ) + for (; i1.call(r.occurrences, n); ) r.occurrences[o]++, n = o + "-" + r.occurrences[o]; return r.occurrences[n] = 0, n; } @@ -13673,33 +13673,33 @@ class Pn { this.occurrences = /* @__PURE__ */ Object.create(null); } } -function i1(i, e) { - return typeof i != "string" ? "" : (e || (i = i.toLowerCase()), i.replace(t1, "").replace(/ /g, "-")); +function s1(i, e) { + return typeof i != "string" ? "" : (e || (i = i.toLowerCase()), i.replace(r1, "").replace(/ /g, "-")); } -let hl = new Pn(), cl = []; -function s1({ prefix: i = "", globalSlugs: e = !1 } = {}) { +let cl = new Pn(), ul = []; +function n1({ prefix: i = "", globalSlugs: e = !1 } = {}) { return { headerIds: !1, // prevent deprecation warning; remove this once headerIds option is removed hooks: { preprocess(t) { - return e || n1(), t; + return e || a1(), t; } }, renderer: { heading(t, r, n) { n = n.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi, ""); - const o = `${i}${hl.slug(n)}`, c = { level: r, text: t, id: o }; - return cl.push(c), `${t} + const o = `${i}${cl.slug(n)}`, c = { level: r, text: t, id: o }; + return ul.push(c), `${t} `; } } }; } -function n1() { - cl = [], hl = new Pn(); +function a1() { + ul = [], cl = new Pn(); } -var Ya = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ul = { exports: {} }; +var Ya = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, dl = { exports: {} }; (function(i) { var e = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {}; /** @@ -14855,8 +14855,8 @@ var Ya = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t C || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), C = !0), t.plugins.fileHighlight.highlight.apply(this, arguments); }; }(); -})(ul); -var As = ul.exports; +})(dl); +var As = dl.exports; Prism.languages.python = { comment: { pattern: /(^|[^\\])#.*/, @@ -15198,34 +15198,34 @@ Prism.languages.py = Prism.languages.python; o[n[c]] = i.languages.bash[n[c]]; i.languages.sh = i.languages.bash, i.languages.shell = i.languages.bash; })(Prism); -const a1 = '', o1 = ` +const o1 = '', l1 = ` -`, l1 = `${o1} - ${l1} -`, dl = /[&<>"']/, h1 = new RegExp(dl.source, "g"), fl = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, c1 = new RegExp(fl.source, "g"), u1 = { + ${l1} + ${h1} +`, fl = /[&<>"']/, c1 = new RegExp(fl.source, "g"), ml = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, u1 = new RegExp(ml.source, "g"), d1 = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" -}, Za = (i) => u1[i] || ""; +}, Za = (i) => d1[i] || ""; function Ts(i, e) { if (e) { - if (dl.test(i)) - return i.replace(h1, Za); - } else if (fl.test(i)) - return i.replace(c1, Za); + if (fl.test(i)) + return i.replace(c1, Za); + } else if (ml.test(i)) + return i.replace(u1, Za); return i; } -function d1(i) { +function f1(i) { const e = i.map((t) => ({ start: new RegExp(t.left.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&")), end: new RegExp(t.right.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&")) @@ -15259,7 +15259,7 @@ function d1(i) { } }; } -const f1 = { +const m1 = { code(i, e, t) { const r = (e ?? "").match(/\S*/)?.[0] ?? ""; return i = i.replace(/\n$/, "") + ` @@ -15267,48 +15267,48 @@ const f1 = { ` : '
' + $a + "
" + (t ? i : Ts(i, !0)) + `
`; } -}, m1 = new Pn(); -function p1({ +}, p1 = new Pn(); +function _1({ header_links: i, line_breaks: e, latex_delimiters: t }) { - const r = new al(); + const r = new ol(); r.use( { gfm: !0, pedantic: !1, breaks: e }, - Zu({ + Ju({ highlight: (o, c) => As.languages[c] ? As.highlight(o, As.languages[c], c) : o }), - { renderer: f1 } - ), i && (r.use(s1()), r.use({ + { renderer: m1 } + ), i && (r.use(n1()), r.use({ extensions: [ { name: "heading", level: "block", renderer(o) { - const c = o.raw.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi, ""), s = "h" + m1.slug(c), a = o.depth, u = this.parser.parseInline(o.tokens); - return `${a1}${u} + const c = o.raw.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi, ""), s = "h" + p1.slug(c), a = o.depth, u = this.parser.parseInline(o.tokens); + return `${o1}${u} `; } } ] })); - const n = d1(t); + const n = f1(t); return r.use({ extensions: [n] }), r; } -const Js = (i) => JSON.parse(JSON.stringify(i)), _1 = (i) => i.nodeType === 1, g1 = (i) => z1.has(i.tagName), v1 = (i) => "action" in i, b1 = (i) => i.tagName === "IFRAME", w1 = (i) => "formAction" in i, y1 = (i) => "protocol" in i, Ai = /* @__PURE__ */ (() => { +const Js = (i) => JSON.parse(JSON.stringify(i)), g1 = (i) => i.nodeType === 1, v1 = (i) => H1.has(i.tagName), b1 = (i) => "action" in i, w1 = (i) => i.tagName === "IFRAME", y1 = (i) => "formAction" in i, S1 = (i) => "protocol" in i, Ai = /* @__PURE__ */ (() => { const i = /^(?:\w+script|data):/i; return (e) => i.test(e); -})(), S1 = /* @__PURE__ */ (() => { +})(), C1 = /* @__PURE__ */ (() => { const i = /(?:script|data):/i; return (e) => i.test(e); -})(), C1 = (i) => { +})(), x1 = (i) => { const e = {}; for (let t = 0, r = i.length; t < r; t++) { const n = i[t]; @@ -15316,20 +15316,20 @@ const Js = (i) => JSON.parse(JSON.stringify(i)), _1 = (i) => i.nodeType === 1, g e[o] ? e[o] = e[o].concat(n[o]) : e[o] = n[o]; } return e; -}, ml = (i, e) => { +}, pl = (i, e) => { let t = i.firstChild; for (; t; ) { const r = t.nextSibling; - _1(t) && (e(t, i), t.parentNode && ml(t, e)), t = r; + g1(t) && (e(t, i), t.parentNode && pl(t, e)), t = r; } -}, x1 = (i, e) => { +}, k1 = (i, e) => { const t = document.createNodeIterator(i, NodeFilter.SHOW_ELEMENT); let r; for (; r = t.nextNode(); ) { const n = r.parentNode; n && e(r, n); } -}, k1 = (i, e) => !!globalThis.document && !!globalThis.document.createNodeIterator ? x1(i, e) : ml(i, e), pl = [ +}, D1 = (i, e) => !!globalThis.document && !!globalThis.document.createNodeIterator ? k1(i, e) : pl(i, e), _l = [ "a", "abbr", "acronym", @@ -15447,7 +15447,7 @@ const Js = (i) => JSON.parse(JSON.stringify(i)), _1 = (i) => i.nodeType === 1, g "var", "video", "wbr" -], D1 = [ +], E1 = [ "basefont", "command", "data", @@ -15460,10 +15460,10 @@ const Js = (i) => JSON.parse(JSON.stringify(i)), _1 = (i) => i.nodeType === 1, g "textarea", "title", "xmp" -], E1 = /* @__PURE__ */ new Set([ - ...pl, - ...D1 -]), _l = [ +], A1 = /* @__PURE__ */ new Set([ + ..._l, + ...E1 +]), gl = [ "svg", "a", "altglyph", @@ -15532,7 +15532,7 @@ const Js = (i) => JSON.parse(JSON.stringify(i)), _1 = (i) => i.nodeType === 1, g "feSpotLight", "feTile", "feTurbulence" -], A1 = [ +], T1 = [ "animate", "color-profile", "cursor", @@ -15556,10 +15556,10 @@ const Js = (i) => JSON.parse(JSON.stringify(i)), _1 = (i) => i.nodeType === 1, g "solidcolor", "unknown", "use" -], T1 = /* @__PURE__ */ new Set([ - ..._l, - ...A1 -]), gl = [ +], M1 = /* @__PURE__ */ new Set([ + ...gl, + ...T1 +]), vl = [ "math", "menclose", "merror", @@ -15589,7 +15589,7 @@ const Js = (i) => JSON.parse(JSON.stringify(i)), _1 = (i) => i.nodeType === 1, g "mtr", "munder", "munderover" -], M1 = [ +], B1 = [ "maction", "maligngroup", "malignmark", @@ -15605,10 +15605,10 @@ const Js = (i) => JSON.parse(JSON.stringify(i)), _1 = (i) => i.nodeType === 1, g "annotation-xml", "mprescripts", "none" -], B1 = /* @__PURE__ */ new Set([ - ...gl, - ...M1 -]), F1 = [ +], F1 = /* @__PURE__ */ new Set([ + ...vl, + ...B1 +]), R1 = [ "abbr", "accept", "accept-charset", @@ -15817,7 +15817,7 @@ const Js = (i) => JSON.parse(JSON.stringify(i)), _1 = (i) => i.nodeType === 1, g "webkitdirectory", "width", "wrap" -], R1 = [ +], L1 = [ "accent-height", "accumulate", "additive", @@ -16001,7 +16001,7 @@ const Js = (i) => JSON.parse(JSON.stringify(i)), _1 = (i) => i.nodeType === 1, g "y2", "z", "zoomandpan" -], L1 = [ +], O1 = [ "accent", "accentunder", "align", @@ -16059,38 +16059,38 @@ const Js = (i) => JSON.parse(JSON.stringify(i)), _1 = (i) => i.nodeType === 1, g HTML: "http://www.w3.org/1999/xhtml", SVG: "http://www.w3.org/2000/svg", MATH: "http://www.w3.org/1998/Math/MathML" -}, O1 = { - [zt.HTML]: E1, - [zt.SVG]: T1, - [zt.MATH]: B1 }, I1 = { + [zt.HTML]: A1, + [zt.SVG]: M1, + [zt.MATH]: F1 +}, P1 = { [zt.HTML]: "html", [zt.SVG]: "svg", [zt.MATH]: "math" -}, P1 = { +}, z1 = { [zt.HTML]: "", [zt.SVG]: "svg:", [zt.MATH]: "math:" -}, z1 = /* @__PURE__ */ new Set([ +}, H1 = /* @__PURE__ */ new Set([ "A", "AREA", "BUTTON", "FORM", "IFRAME", "INPUT" -]), vl = { +]), bl = { allowComments: !0, allowCustomElements: !1, allowUnknownMarkup: !1, allowElements: [ - ...pl, - ..._l.map((i) => `svg:${i}`), - ...gl.map((i) => `math:${i}`) + ..._l, + ...gl.map((i) => `svg:${i}`), + ...vl.map((i) => `math:${i}`) ], - allowAttributes: C1([ - Object.fromEntries(F1.map((i) => [i, ["*"]])), - Object.fromEntries(R1.map((i) => [i, ["svg:*"]])), - Object.fromEntries(L1.map((i) => [i, ["math:*"]])) + allowAttributes: x1([ + Object.fromEntries(R1.map((i) => [i, ["*"]])), + Object.fromEntries(L1.map((i) => [i, ["svg:*"]])), + Object.fromEntries(O1.map((i) => [i, ["math:*"]])) ]) }; var Ms = function(i, e, t, r, n) { @@ -16098,18 +16098,18 @@ var Ms = function(i, e, t, r, n) { if (r === "a" && !n) throw new TypeError("Private accessor was defined without a setter"); if (typeof e == "function" ? i !== e || !n : !e.has(i)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); return r === "a" ? n.call(i, t) : n ? n.value = t : e.set(i, t), t; -}, Cr = function(i, e, t, r) { +}, xr = function(i, e, t, r) { if (t === "a" && !r) throw new TypeError("Private accessor was defined without a getter"); if (typeof e == "function" ? i !== e || !r : !e.has(i)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); return t === "m" ? r : t === "a" ? r.call(i) : r ? r.value : e.get(i); -}, fr, Ui, Wi; -class bl { +}, mr, Ui, Wi; +class wl { /* CONSTRUCTOR */ constructor(e = {}) { - fr.set(this, void 0), Ui.set(this, void 0), Wi.set(this, void 0), this.getConfiguration = () => Js(Cr(this, fr, "f")), this.sanitize = (p) => { - const f = Cr(this, Ui, "f"), g = Cr(this, Wi, "f"); - return k1(p, (v, C) => { - const b = v.namespaceURI || zt.HTML, d = C.namespaceURI || zt.HTML, m = O1[b], h = I1[b], l = P1[b], _ = v.tagName.toLowerCase(), S = `${l}${_}`, D = `${l}*`; + mr.set(this, void 0), Ui.set(this, void 0), Wi.set(this, void 0), this.getConfiguration = () => Js(xr(this, mr, "f")), this.sanitize = (p) => { + const f = xr(this, Ui, "f"), g = xr(this, Wi, "f"); + return D1(p, (v, C) => { + const b = v.namespaceURI || zt.HTML, d = C.namespaceURI || zt.HTML, m = I1[b], h = P1[b], l = z1[b], _ = v.tagName.toLowerCase(), S = `${l}${_}`, D = `${l}*`; if (!m.has(_) || !f.has(S) || b !== d && _ !== h) C.removeChild(v); else { @@ -16119,11 +16119,11 @@ class bl { const O = y[B], N = g[O]; (!N || !N.has(D) && !N.has(S)) && v.removeAttribute(O); } - if (g1(v)) - if (y1(v)) { + if (v1(v)) + if (S1(v)) { const B = v.getAttribute("href"); - B && S1(B) && Ai(v.protocol) && v.removeAttribute("href"); - } else v1(v) ? Ai(v.action) && v.removeAttribute("action") : w1(v) ? Ai(v.formAction) && v.removeAttribute("formaction") : b1(v) && (Ai(v.src) && v.removeAttribute("formaction"), v.setAttribute("sandbox", "allow-scripts")); + B && C1(B) && Ai(v.protocol) && v.removeAttribute("href"); + } else b1(v) ? Ai(v.action) && v.removeAttribute("action") : y1(v) ? Ai(v.formAction) && v.removeAttribute("formaction") : w1(v) && (Ai(v.src) && v.removeAttribute("formaction"), v.setAttribute("sandbox", "allow-scripts")); } } }), p; @@ -16143,14 +16143,14 @@ class bl { throw new Error('"dropElements" is not supported yet, use "allowElements" instead'); if (s) throw new Error('"dropAttributes" is not supported yet, use "allowAttributes" instead'); - Ms(this, fr, Js(vl), "f"); + Ms(this, mr, Js(bl), "f"); const { allowElements: a, allowAttributes: u } = e; - a && (Cr(this, fr, "f").allowElements = e.allowElements), u && (Cr(this, fr, "f").allowAttributes = e.allowAttributes), Ms(this, Ui, new Set(Cr(this, fr, "f").allowElements), "f"), Ms(this, Wi, Object.fromEntries(Object.entries(Cr(this, fr, "f").allowAttributes || {}).map(([p, f]) => [p, new Set(f)])), "f"); + a && (xr(this, mr, "f").allowElements = e.allowElements), u && (xr(this, mr, "f").allowAttributes = e.allowAttributes), Ms(this, Ui, new Set(xr(this, mr, "f").allowElements), "f"), Ms(this, Wi, Object.fromEntries(Object.entries(xr(this, mr, "f").allowAttributes || {}).map(([p, f]) => [p, new Set(f)])), "f"); } } -fr = /* @__PURE__ */ new WeakMap(), Ui = /* @__PURE__ */ new WeakMap(), Wi = /* @__PURE__ */ new WeakMap(); -bl.getDefaultConfiguration = () => Js(vl); -const H1 = (i, e) => { +mr = /* @__PURE__ */ new WeakMap(), Ui = /* @__PURE__ */ new WeakMap(), Wi = /* @__PURE__ */ new WeakMap(); +wl.getDefaultConfiguration = () => Js(bl); +const N1 = (i, e) => { try { return !!i && new URL(i).origin !== new URL(e).origin; } catch { @@ -16158,46 +16158,46 @@ const H1 = (i, e) => { } }; function Ja(i, e) { - const t = new bl(), r = new DOMParser().parseFromString(i, "text/html"); - return wl(r.body, "A", (n) => { - n instanceof HTMLElement && "target" in n && H1(n.getAttribute("href"), e) && (n.setAttribute("target", "_blank"), n.setAttribute("rel", "noopener noreferrer")); + const t = new wl(), r = new DOMParser().parseFromString(i, "text/html"); + return yl(r.body, "A", (n) => { + n instanceof HTMLElement && "target" in n && N1(n.getAttribute("href"), e) && (n.setAttribute("target", "_blank"), n.setAttribute("rel", "noopener noreferrer")); }), t.sanitize(r).body.innerHTML; } -function wl(i, e, t) { +function yl(i, e, t) { i && (i.nodeName === e || typeof e == "function") && t(i); const r = i?.childNodes || []; for (let n = 0; n < r.length; n++) - wl(r[n], e, t); + yl(r[n], e, t); } const { - HtmlTagHydration: N1, - SvelteComponent: q1, - attr: U1, - binding_callbacks: W1, - children: j1, - claim_element: G1, - claim_html_tag: V1, + HtmlTagHydration: q1, + SvelteComponent: U1, + attr: W1, + binding_callbacks: j1, + children: G1, + claim_element: V1, + claim_html_tag: K1, detach: Qa, - element: K1, - init: X1, - insert_hydration: Y1, + element: X1, + init: Y1, + insert_hydration: $1, noop: eo, - safe_not_equal: $1, + safe_not_equal: Z1, toggle_class: Ti -} = window.__gradio__svelte__internal, { afterUpdate: Z1 } = window.__gradio__svelte__internal; -function J1(i) { +} = window.__gradio__svelte__internal, { afterUpdate: J1 } = window.__gradio__svelte__internal; +function Q1(i) { let e, t; return { c() { - e = K1("span"), t = new N1(!1), this.h(); + e = X1("span"), t = new q1(!1), this.h(); }, l(r) { - e = G1(r, "SPAN", { class: !0 }); - var n = j1(e); - t = V1(n, !1), n.forEach(Qa), this.h(); + e = V1(r, "SPAN", { class: !0 }); + var n = G1(e); + t = K1(n, !1), n.forEach(Qa), this.h(); }, h() { - t.a = null, U1(e, "class", "md svelte-1m32c2s"), Ti( + t.a = null, W1(e, "class", "md svelte-1m32c2s"), Ti( e, "chatbot", /*chatbot*/ @@ -16210,7 +16210,7 @@ function J1(i) { ); }, m(r, n) { - Y1(r, e, n), t.m( + $1(r, e, n), t.m( /*html*/ i[3], e @@ -16245,9 +16245,9 @@ function J1(i) { function to(i) { return i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); } -function Q1(i, e, t) { +function ed(i, e, t) { let { chatbot: r = !0 } = e, { message: n } = e, { sanitize_html: o = !0 } = e, { latex_delimiters: c = [] } = e, { render_markdown: s = !0 } = e, { line_breaks: a = !0 } = e, { header_links: u = !1 } = e, { root: p } = e, f, g; - const v = p1({ + const v = _1({ header_links: u, line_breaks: a, latex_delimiters: c @@ -16264,16 +16264,16 @@ function Q1(i, e, t) { return o && Ja && (h = Ja(h, p)), h; } async function b(m) { - c.length > 0 && m && c.some((l) => m.includes(l.left) && m.includes(l.right)) && _u(f, { + c.length > 0 && m && c.some((l) => m.includes(l.left) && m.includes(l.right)) && gu(f, { delimiters: c, throwOnError: !1 }); } - Z1(async () => { + J1(async () => { f && document.body.contains(f) ? await b(n) : console.error("Element is not in the DOM"); }); function d(m) { - W1[m ? "unshift" : "push"](() => { + j1[m ? "unshift" : "push"](() => { f = m, t(2, f); }); } @@ -16296,9 +16296,9 @@ function Q1(i, e, t) { d ]; } -class ed extends q1 { +class td extends U1 { constructor(e) { - super(), X1(this, e, Q1, J1, $1, { + super(), Y1(this, e, ed, Q1, Z1, { chatbot: 0, message: 4, sanitize_html: 5, @@ -16311,25 +16311,25 @@ class ed extends q1 { } } const { - SvelteComponent: td, - attr: rd, - children: id, - claim_component: sd, - claim_element: nd, - create_component: ad, - destroy_component: od, + SvelteComponent: rd, + attr: id, + children: sd, + claim_component: nd, + claim_element: ad, + create_component: od, + destroy_component: ld, detach: ro, - element: ld, - init: hd, - insert_hydration: cd, - mount_component: ud, - safe_not_equal: dd, - transition_in: fd, - transition_out: md + element: hd, + init: cd, + insert_hydration: ud, + mount_component: dd, + safe_not_equal: fd, + transition_in: md, + transition_out: pd } = window.__gradio__svelte__internal; -function pd(i) { +function _d(i) { let e, t, r; - return t = new ed({ + return t = new td({ props: { root: ( /*root*/ @@ -16343,18 +16343,18 @@ function pd(i) { } }), { c() { - e = ld("div"), ad(t.$$.fragment), this.h(); + e = hd("div"), od(t.$$.fragment), this.h(); }, l(n) { - e = nd(n, "DIV", { class: !0 }); - var o = id(e); - sd(t.$$.fragment, o), o.forEach(ro), this.h(); + e = ad(n, "DIV", { class: !0 }); + var o = sd(e); + nd(t.$$.fragment, o), o.forEach(ro), this.h(); }, h() { - rd(e, "class", "svelte-17qq50w"); + id(e, "class", "svelte-17qq50w"); }, m(n, o) { - cd(n, e, o), ud(t, e, null), r = !0; + ud(n, e, o), dd(t, e, null), r = !0; }, p(n, [o]) { const c = {}; @@ -16365,57 +16365,57 @@ function pd(i) { n[0]), t.$set(c); }, i(n) { - r || (fd(t.$$.fragment, n), r = !0); + r || (md(t.$$.fragment, n), r = !0); }, o(n) { - md(t.$$.fragment, n), r = !1; + pd(t.$$.fragment, n), r = !1; }, d(n) { - n && ro(e), od(t); + n && ro(e), ld(t); } }; } -function _d(i, e, t) { +function gd(i, e, t) { let { info: r } = e, { root: n } = e; return i.$$set = (o) => { "info" in o && t(0, r = o.info), "root" in o && t(1, n = o.root); }, [r, n]; } -class gd extends td { +class vd extends rd { constructor(e) { - super(), hd(this, e, _d, pd, dd, { info: 0, root: 1 }); + super(), cd(this, e, gd, _d, fd, { info: 0, root: 1 }); } } const { - SvelteComponent: vd, + SvelteComponent: bd, attr: io, - check_outros: bd, - children: wd, - claim_component: yd, - claim_element: Sd, - claim_space: Cd, - create_component: xd, - create_slot: kd, - destroy_component: Dd, + check_outros: wd, + children: yd, + claim_component: Sd, + claim_element: Cd, + claim_space: xd, + create_component: kd, + create_slot: Dd, + destroy_component: Ed, detach: Mi, - element: Ed, + element: Ad, empty: so, - get_all_dirty_from_scope: Ad, - get_slot_changes: Td, - group_outros: Md, - init: Bd, + get_all_dirty_from_scope: Td, + get_slot_changes: Md, + group_outros: Bd, + init: Fd, insert_hydration: Bs, - mount_component: Fd, - safe_not_equal: Rd, - space: Ld, + mount_component: Rd, + safe_not_equal: Ld, + space: Od, toggle_class: Pr, transition_in: ri, transition_out: ji, - update_slot_base: Od + update_slot_base: Id } = window.__gradio__svelte__internal; function no(i) { let e, t; - return e = new gd({ + return e = new vd({ props: { root: ( /*root*/ @@ -16428,13 +16428,13 @@ function no(i) { } }), { c() { - xd(e.$$.fragment); + kd(e.$$.fragment); }, l(r) { - yd(e.$$.fragment, r); + Sd(e.$$.fragment, r); }, m(r, n) { - Fd(e, r, n), t = !0; + Rd(e, r, n), t = !0; }, p(r, n) { const o = {}; @@ -16451,16 +16451,16 @@ function no(i) { ji(e.$$.fragment, r), t = !1; }, d(r) { - Dd(e, r); + Ed(e, r); } }; } -function Id(i) { +function Pd(i) { let e, t, r, n; const o = ( /*#slots*/ i[4].default - ), c = kd( + ), c = Dd( o, i, /*$$scope*/ @@ -16473,12 +16473,12 @@ function Id(i) { ); return { c() { - e = Ed("span"), c && c.c(), t = Ld(), s && s.c(), r = so(), this.h(); + e = Ad("span"), c && c.c(), t = Od(), s && s.c(), r = so(), this.h(); }, l(a) { - e = Sd(a, "SPAN", { "data-testid": !0, class: !0 }); - var u = wd(e); - c && c.l(u), u.forEach(Mi), t = Cd(a), s && s.l(a), r = so(), this.h(); + e = Cd(a, "SPAN", { "data-testid": !0, class: !0 }); + var u = yd(e); + c && c.l(u), u.forEach(Mi), t = xd(a), s && s.l(a), r = so(), this.h(); }, h() { io(e, "data-testid", "block-info"), io(e, "class", "svelte-22c38v"), Pr(e, "sr-only", !/*show_label*/ @@ -16495,19 +16495,19 @@ function Id(i) { }, p(a, [u]) { c && c.p && (!n || u & /*$$scope*/ - 8) && Od( + 8) && Id( c, o, a, /*$$scope*/ a[3], - n ? Td( + n ? Md( o, /*$$scope*/ a[3], u, null - ) : Ad( + ) : Td( /*$$scope*/ a[3] ), @@ -16524,9 +16524,9 @@ function Id(i) { a[1] != null ), /*info*/ a[1] ? s ? (s.p(a, u), u & /*info*/ - 2 && ri(s, 1)) : (s = no(a), s.c(), ri(s, 1), s.m(r.parentNode, r)) : s && (Md(), ji(s, 1, 1, () => { + 2 && ri(s, 1)) : (s = no(a), s.c(), ri(s, 1), s.m(r.parentNode, r)) : s && (Bd(), ji(s, 1, 1, () => { s = null; - }), bd()); + }), wd()); }, i(a) { n || (ri(c, a), ri(s), n = !0); @@ -16539,56 +16539,56 @@ function Id(i) { } }; } -function Pd(i, e, t) { +function zd(i, e, t) { let { $$slots: r = {}, $$scope: n } = e, { show_label: o = !0 } = e, { info: c = void 0 } = e, { root: s } = e; return i.$$set = (a) => { "show_label" in a && t(0, o = a.show_label), "info" in a && t(1, c = a.info), "root" in a && t(2, s = a.root), "$$scope" in a && t(3, n = a.$$scope); }, [o, c, s, n, r]; } -class zd extends vd { +class Hd extends bd { constructor(e) { - super(), Bd(this, e, Pd, Id, Rd, { show_label: 0, info: 1, root: 2 }); + super(), Fd(this, e, zd, Pd, Ld, { show_label: 0, info: 1, root: 2 }); } } const { - SvelteComponent: Hd, + SvelteComponent: Nd, append_hydration: Gi, - attr: rr, - bubble: Nd, - check_outros: qd, + attr: ir, + bubble: qd, + check_outros: Ud, children: Qs, - claim_component: Ud, + claim_component: Wd, claim_element: en, claim_space: ao, - claim_text: Wd, + claim_text: jd, construct_svelte_component: oo, create_component: lo, - create_slot: jd, + create_slot: Gd, destroy_component: ho, detach: oi, element: tn, - get_all_dirty_from_scope: Gd, - get_slot_changes: Vd, - group_outros: Kd, - init: Xd, - insert_hydration: yl, - listen: Yd, + get_all_dirty_from_scope: Vd, + get_slot_changes: Kd, + group_outros: Xd, + init: Yd, + insert_hydration: Sl, + listen: $d, mount_component: co, - safe_not_equal: $d, - set_data: Zd, + safe_not_equal: Zd, + set_data: Jd, set_style: Bi, space: uo, - text: Jd, + text: Qd, toggle_class: at, transition_in: Fs, transition_out: Rs, - update_slot_base: Qd + update_slot_base: ef } = window.__gradio__svelte__internal; function fo(i) { let e, t; return { c() { - e = tn("span"), t = Jd( + e = tn("span"), t = Qd( /*label*/ i[1] ), this.h(); @@ -16596,21 +16596,21 @@ function fo(i) { l(r) { e = en(r, "SPAN", { class: !0 }); var n = Qs(e); - t = Wd( + t = jd( n, /*label*/ i[1] ), n.forEach(oi), this.h(); }, h() { - rr(e, "class", "svelte-vk34kx"); + ir(e, "class", "svelte-vk34kx"); }, m(r, n) { - yl(r, e, n), Gi(e, t); + Sl(r, e, n), Gi(e, t); }, p(r, n) { n & /*label*/ - 2 && Zd( + 2 && Jd( t, /*label*/ r[1] @@ -16621,7 +16621,7 @@ function fo(i) { } }; } -function ef(i) { +function tf(i) { let e, t, r, n, o, c, s, a, u = ( /*show_label*/ i[2] && fo(i) @@ -16637,7 +16637,7 @@ function ef(i) { const g = ( /*#slots*/ i[14].default - ), v = jd( + ), v = Gd( g, i, /*$$scope*/ @@ -16658,10 +16658,10 @@ function ef(i) { var b = Qs(e); u && u.l(b), t = ao(b), r = en(b, "DIV", { class: !0 }); var d = Qs(r); - n && Ud(n.$$.fragment, d), o = ao(d), v && v.l(d), d.forEach(oi), b.forEach(oi), this.h(); + n && Wd(n.$$.fragment, d), o = ao(d), v && v.l(d), d.forEach(oi), b.forEach(oi), this.h(); }, h() { - rr(r, "class", "svelte-vk34kx"), at( + ir(r, "class", "svelte-vk34kx"), at( r, "small", /*size*/ @@ -16677,22 +16677,22 @@ function ef(i) { /*size*/ i[4] === "medium" ), e.disabled = /*disabled*/ - i[7], rr( + i[7], ir( e, "aria-label", /*label*/ i[1] - ), rr( + ), ir( e, "aria-haspopup", /*hasPopup*/ i[8] - ), rr( + ), ir( e, "title", /*label*/ i[1] - ), rr(e, "class", "svelte-vk34kx"), at( + ), ir(e, "class", "svelte-vk34kx"), at( e, "pending", /*pending*/ @@ -16724,7 +16724,7 @@ function ef(i) { )); }, m(C, b) { - yl(C, e, b), u && u.m(e, null), Gi(e, t), Gi(e, r), n && co(n, r, null), Gi(r, o), v && v.m(r, null), c = !0, s || (a = Yd( + Sl(C, e, b), u && u.m(e, null), Gi(e, t), Gi(e, r), n && co(n, r, null), Gi(r, o), v && v.m(r, null), c = !0, s || (a = $d( e, "click", /*click_handler*/ @@ -16737,28 +16737,28 @@ function ef(i) { 1 && p !== (p = /*Icon*/ C[0])) { if (n) { - Kd(); + Xd(); const d = n; Rs(d.$$.fragment, 1, 0, () => { ho(d, 1); - }), qd(); + }), Ud(); } p ? (n = oo(p, f()), lo(n.$$.fragment), Fs(n.$$.fragment, 1), co(n, r, o)) : n = null; } v && v.p && (!c || b & /*$$scope*/ - 8192) && Qd( + 8192) && ef( v, g, C, /*$$scope*/ C[13], - c ? Vd( + c ? Kd( g, /*$$scope*/ C[13], b, null - ) : Gd( + ) : Vd( /*$$scope*/ C[13] ), @@ -16784,19 +16784,19 @@ function ef(i) { ), (!c || b & /*disabled*/ 128) && (e.disabled = /*disabled*/ C[7]), (!c || b & /*label*/ - 2) && rr( + 2) && ir( e, "aria-label", /*label*/ C[1] ), (!c || b & /*hasPopup*/ - 256) && rr( + 256) && ir( e, "aria-haspopup", /*hasPopup*/ C[8] ), (!c || b & /*label*/ - 2) && rr( + 2) && ir( e, "title", /*label*/ @@ -16849,10 +16849,10 @@ function ef(i) { } }; } -function tf(i, e, t) { +function rf(i, e, t) { let r, { $$slots: n = {}, $$scope: o } = e, { Icon: c } = e, { label: s = "" } = e, { show_label: a = !1 } = e, { pending: u = !1 } = e, { size: p = "small" } = e, { padded: f = !0 } = e, { highlight: g = !1 } = e, { disabled: v = !1 } = e, { hasPopup: C = !1 } = e, { color: b = "var(--block-label-text-color)" } = e, { transparent: d = !1 } = e, { background: m = "var(--block-background-fill)" } = e; function h(l) { - Nd.call(this, i, l); + qd.call(this, i, l); } return i.$$set = (l) => { "Icon" in l && t(0, c = l.Icon), "label" in l && t(1, s = l.label), "show_label" in l && t(2, a = l.show_label), "pending" in l && t(3, u = l.pending), "size" in l && t(4, p = l.size), "padded" in l && t(5, f = l.padded), "highlight" in l && t(6, g = l.highlight), "disabled" in l && t(7, v = l.disabled), "hasPopup" in l && t(8, C = l.hasPopup), "color" in l && t(12, b = l.color), "transparent" in l && t(9, d = l.transparent), "background" in l && t(10, m = l.background), "$$scope" in l && t(13, o = l.$$scope); @@ -16878,9 +16878,9 @@ function tf(i, e, t) { h ]; } -class rf extends Hd { +class sf extends Nd { constructor(e) { - super(), Xd(this, e, tf, ef, $d, { + super(), Yd(this, e, rf, tf, Zd, { Icon: 0, label: 1, show_label: 2, @@ -16897,20 +16897,20 @@ class rf extends Hd { } } const { - SvelteComponent: sf, + SvelteComponent: nf, append_hydration: Ls, attr: Mt, children: Fi, claim_svg_element: Ri, detach: Yr, - init: nf, - insert_hydration: af, + init: af, + insert_hydration: of, noop: Os, - safe_not_equal: of, + safe_not_equal: lf, set_style: qt, svg_element: Li } = window.__gradio__svelte__internal; -function lf(i) { +function hf(i) { let e, t, r, n; return { c() { @@ -16937,7 +16937,7 @@ function lf(i) { Mt(r, "d", "M18,6L6.087,17.913"), qt(r, "fill", "none"), qt(r, "fill-rule", "nonzero"), qt(r, "stroke-width", "2px"), Mt(t, "transform", "matrix(1.14096,-0.140958,-0.140958,1.14096,-0.0559523,0.0559523)"), Mt(n, "d", "M4.364,4.364L19.636,19.636"), qt(n, "fill", "none"), qt(n, "fill-rule", "nonzero"), qt(n, "stroke-width", "2px"), Mt(e, "width", "100%"), Mt(e, "height", "100%"), Mt(e, "viewBox", "0 0 24 24"), Mt(e, "version", "1.1"), Mt(e, "xmlns", "http://www.w3.org/2000/svg"), Mt(e, "xmlns:xlink", "http://www.w3.org/1999/xlink"), Mt(e, "xml:space", "preserve"), Mt(e, "stroke", "currentColor"), qt(e, "fill-rule", "evenodd"), qt(e, "clip-rule", "evenodd"), qt(e, "stroke-linecap", "round"), qt(e, "stroke-linejoin", "round"); }, m(o, c) { - af(o, e, c), Ls(e, t), Ls(t, r), Ls(e, n); + of(o, e, c), Ls(e, t), Ls(t, r), Ls(e, n); }, p: Os, i: Os, @@ -16947,12 +16947,12 @@ function lf(i) { } }; } -class hf extends sf { +class cf extends nf { constructor(e) { - super(), nf(this, e, null, lf, of, {}); + super(), af(this, e, null, hf, lf, {}); } } -const cf = [ +const uf = [ { color: "red", primary: 600, secondary: 100 }, { color: "green", primary: 600, secondary: 100 }, { color: "blue", primary: 600, secondary: 100 }, @@ -17256,7 +17256,7 @@ const cf = [ 950: "#4c0519" } }; -cf.reduce( +uf.reduce( (i, { color: e, primary: t, secondary: r }) => ({ ...i, [e]: { @@ -17275,20 +17275,20 @@ function Hr(i) { } function Vi() { } -function uf(i, e) { +function df(i, e) { return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function"; } -const Sl = typeof window < "u"; -let po = Sl ? () => window.performance.now() : () => Date.now(), Cl = Sl ? (i) => requestAnimationFrame(i) : Vi; +const Cl = typeof window < "u"; +let po = Cl ? () => window.performance.now() : () => Date.now(), xl = Cl ? (i) => requestAnimationFrame(i) : Vi; const Ur = /* @__PURE__ */ new Set(); -function xl(i) { +function kl(i) { Ur.forEach((e) => { e.c(i) || (Ur.delete(e), e.f()); - }), Ur.size !== 0 && Cl(xl); + }), Ur.size !== 0 && xl(kl); } -function df(i) { +function ff(i) { let e; - return Ur.size === 0 && Cl(xl), { + return Ur.size === 0 && xl(kl), { promise: new Promise((t) => { Ur.add(e = { c: i, f: t }); }), @@ -17298,11 +17298,11 @@ function df(i) { }; } const zr = []; -function ff(i, e = Vi) { +function mf(i, e = Vi) { let t; const r = /* @__PURE__ */ new Set(); function n(s) { - if (uf(i, s) && (i = s, t)) { + if (df(i, s) && (i = s, t)) { const a = !zr.length; for (const u of r) u[1](), zr.push(u, i); @@ -17346,12 +17346,12 @@ function rn(i, e, t, r) { } } function go(i, e = {}) { - const t = ff(i), { stiffness: r = 0.15, damping: n = 0.8, precision: o = 0.01 } = e; + const t = mf(i), { stiffness: r = 0.15, damping: n = 0.8, precision: o = 0.01 } = e; let c, s, a, u = i, p = i, f = 1, g = 0, v = !1; function C(d, m = {}) { p = d; const h = a = {}; - return i == null || m.hard || b.stiffness >= 1 && b.damping >= 1 ? (v = !0, c = po(), u = d, t.set(i = p), Promise.resolve()) : (m.soft && (g = 1 / ((m.soft === !0 ? 0.5 : +m.soft) * 60), f = 0), s || (c = po(), v = !1, s = df((l) => { + return i == null || m.hard || b.stiffness >= 1 && b.damping >= 1 ? (v = !0, c = po(), u = d, t.set(i = p), Promise.resolve()) : (m.soft && (g = 1 / ((m.soft === !0 ? 0.5 : +m.soft) * 60), f = 0), s || (c = po(), v = !1, s = ff((l) => { if (v) return v = !1, s = null, !1; f = Math.min(f + g, 1); @@ -17379,31 +17379,31 @@ function go(i, e = {}) { return b; } const { - SvelteComponent: mf, + SvelteComponent: pf, append_hydration: Bt, attr: Ee, children: _t, - claim_element: pf, + claim_element: _f, claim_svg_element: Ft, component_subscribe: vo, detach: ht, - element: _f, - init: gf, - insert_hydration: vf, + element: gf, + init: vf, + insert_hydration: bf, noop: bo, - safe_not_equal: bf, + safe_not_equal: wf, set_style: Oi, svg_element: Rt, toggle_class: wo -} = window.__gradio__svelte__internal, { onMount: wf } = window.__gradio__svelte__internal; -function yf(i) { +} = window.__gradio__svelte__internal, { onMount: yf } = window.__gradio__svelte__internal; +function Sf(i) { let e, t, r, n, o, c, s, a, u, p, f, g; return { c() { - e = _f("div"), t = Rt("svg"), r = Rt("g"), n = Rt("path"), o = Rt("path"), c = Rt("path"), s = Rt("path"), a = Rt("g"), u = Rt("path"), p = Rt("path"), f = Rt("path"), g = Rt("path"), this.h(); + e = gf("div"), t = Rt("svg"), r = Rt("g"), n = Rt("path"), o = Rt("path"), c = Rt("path"), s = Rt("path"), a = Rt("g"), u = Rt("path"), p = Rt("path"), f = Rt("path"), g = Rt("path"), this.h(); }, l(v) { - e = pf(v, "DIV", { class: !0 }); + e = _f(v, "DIV", { class: !0 }); var C = _t(e); t = Ft(C, "svg", { viewBox: !0, @@ -17451,7 +17451,7 @@ function yf(i) { ); }, m(v, C) { - vf(v, e, C), Bt(e, t), Bt(t, r), Bt(r, n), Bt(r, o), Bt(r, c), Bt(r, s), Bt(t, a), Bt(a, u), Bt(a, p), Bt(a, f), Bt(a, g); + bf(v, e, C), Bt(e, t), Bt(t, r), Bt(r, n), Bt(r, o), Bt(r, c), Bt(r, s), Bt(t, a), Bt(a, u), Bt(a, p), Bt(a, f), Bt(a, g); }, p(v, [C]) { C & /*$top*/ @@ -17475,7 +17475,7 @@ function yf(i) { } }; } -function Sf(i, e, t) { +function Cf(i, e, t) { let r, n, { margin: o = !0 } = e; const c = go([0, 0]); vo(i, c, (g) => t(1, r = g)); @@ -17491,51 +17491,51 @@ function Sf(i, e, t) { async function f() { await Promise.all([c.set([125, 0]), s.set([-125, 0])]), p(); } - return wf(() => (f(), () => a = !0)), i.$$set = (g) => { + return yf(() => (f(), () => a = !0)), i.$$set = (g) => { "margin" in g && t(0, o = g.margin); }, [o, r, n, c, s]; } -class Cf extends mf { +class xf extends pf { constructor(e) { - super(), gf(this, e, Sf, yf, bf, { margin: 0 }); + super(), vf(this, e, Cf, Sf, wf, { margin: 0 }); } } const { - SvelteComponent: xf, - append_hydration: kr, + SvelteComponent: kf, + append_hydration: Dr, attr: Pt, binding_callbacks: yo, check_outros: sn, children: Vt, - claim_component: kl, + claim_component: Dl, claim_element: Kt, claim_space: wt, claim_text: He, - create_component: Dl, - create_slot: El, - destroy_component: Al, - destroy_each: Tl, + create_component: El, + create_slot: Al, + destroy_component: Tl, + destroy_each: Ml, detach: pe, element: Xt, empty: kt, ensure_array_like: rs, - get_all_dirty_from_scope: Ml, - get_slot_changes: Bl, + get_all_dirty_from_scope: Bl, + get_slot_changes: Fl, group_outros: nn, - init: kf, + init: Df, insert_hydration: Se, - mount_component: Fl, + mount_component: Rl, noop: an, - safe_not_equal: Df, + safe_not_equal: Ef, set_data: Dt, - set_style: pr, + set_style: _r, space: yt, text: Ne, toggle_class: gt, transition_in: It, transition_out: Yt, - update_slot_base: Rl -} = window.__gradio__svelte__internal, { tick: Ef } = window.__gradio__svelte__internal, { onDestroy: Af } = window.__gradio__svelte__internal, { createEventDispatcher: Tf } = window.__gradio__svelte__internal, Mf = (i) => ({}), So = (i) => ({}), Bf = (i) => ({}), Co = (i) => ({}); + update_slot_base: Ll +} = window.__gradio__svelte__internal, { tick: Af } = window.__gradio__svelte__internal, { onDestroy: Tf } = window.__gradio__svelte__internal, { createEventDispatcher: Mf } = window.__gradio__svelte__internal, Bf = (i) => ({}), So = (i) => ({}), Ff = (i) => ({}), Co = (i) => ({}); function xo(i, e, t) { const r = i.slice(); return r[40] = e[t], r[42] = t, r; @@ -17544,14 +17544,14 @@ function ko(i, e, t) { const r = i.slice(); return r[40] = e[t], r; } -function Ff(i) { +function Rf(i) { let e, t, r, n, o = ( /*i18n*/ i[1]("common.error") + "" ), c, s, a; - t = new rf({ + t = new sf({ props: { - Icon: hf, + Icon: cf, label: ( /*i18n*/ i[1]("common.clear") @@ -17566,7 +17566,7 @@ function Ff(i) { const u = ( /*#slots*/ i[30].error - ), p = El( + ), p = Al( u, i, /*$$scope*/ @@ -17575,12 +17575,12 @@ function Ff(i) { ); return { c() { - e = Xt("div"), Dl(t.$$.fragment), r = yt(), n = Xt("span"), c = Ne(o), s = yt(), p && p.c(), this.h(); + e = Xt("div"), El(t.$$.fragment), r = yt(), n = Xt("span"), c = Ne(o), s = yt(), p && p.c(), this.h(); }, l(f) { e = Kt(f, "DIV", { class: !0 }); var g = Vt(e); - kl(t.$$.fragment, g), g.forEach(pe), r = wt(f), n = Kt(f, "SPAN", { class: !0 }); + Dl(t.$$.fragment, g), g.forEach(pe), r = wt(f), n = Kt(f, "SPAN", { class: !0 }); var v = Vt(n); c = He(v, o), v.forEach(pe), s = wt(f), p && p.l(f), this.h(); }, @@ -17588,7 +17588,7 @@ function Ff(i) { Pt(e, "class", "clear-status svelte-17v219f"), Pt(n, "class", "error svelte-17v219f"); }, m(f, g) { - Se(f, e, g), Fl(t, e, null), Se(f, r, g), Se(f, n, g), kr(n, c), Se(f, s, g), p && p.m(f, g), a = !0; + Se(f, e, g), Rl(t, e, null), Se(f, r, g), Se(f, n, g), Dr(n, c), Se(f, s, g), p && p.m(f, g), a = !0; }, p(f, g) { const v = {}; @@ -17597,19 +17597,19 @@ function Ff(i) { f[1]("common.clear")), t.$set(v), (!a || g[0] & /*i18n*/ 2) && o !== (o = /*i18n*/ f[1]("common.error") + "") && Dt(c, o), p && p.p && (!a || g[0] & /*$$scope*/ - 536870912) && Rl( + 536870912) && Ll( p, u, f, /*$$scope*/ f[29], - a ? Bl( + a ? Fl( u, /*$$scope*/ f[29], g, - Mf - ) : Ml( + Bf + ) : Bl( /*$$scope*/ f[29] ), @@ -17623,11 +17623,11 @@ function Ff(i) { Yt(t.$$.fragment, f), Yt(p, f), a = !1; }, d(f) { - f && (pe(e), pe(r), pe(n), pe(s)), Al(t), p && p.d(f); + f && (pe(e), pe(r), pe(n), pe(s)), Tl(t), p && p.d(f); } }; } -function Rf(i) { +function Lf(i) { let e, t, r, n, o, c, s, a, u, p = ( /*variant*/ i[8] === "default" && /*show_eta_bar*/ @@ -17638,23 +17638,23 @@ function Rf(i) { if ( /*progress*/ l[7] - ) return If; + ) return Pf; if ( /*queue_position*/ l[2] !== null && /*queue_size*/ l[3] !== void 0 && /*queue_position*/ l[2] >= 0 - ) return Of; + ) return If; if ( /*queue_position*/ l[2] === 0 - ) return Lf; + ) return Of; } let g = f(i), v = g && g(i), C = ( /*timer*/ i[5] && To(i) ); - const b = [Nf, Hf], d = []; + const b = [qf, Nf], d = []; function m(l, _) { return ( /*last_progress_level*/ @@ -17690,7 +17690,7 @@ function Rf(i) { ); }, m(l, _) { - p && p.m(l, _), Se(l, e, _), Se(l, t, _), v && v.m(t, null), kr(t, r), C && C.m(t, null), Se(l, n, _), ~o && d[o].m(l, _), Se(l, s, _), h && h.m(l, _), Se(l, a, _), u = !0; + p && p.m(l, _), Se(l, e, _), Se(l, t, _), v && v.m(t, null), Dr(t, r), C && C.m(t, null), Se(l, n, _), ~o && d[o].m(l, _), Se(l, s, _), h && h.m(l, _), Se(l, a, _), u = !0; }, p(l, _) { /*variant*/ @@ -17741,7 +17741,7 @@ function Do(i) { e = Kt(r, "DIV", { class: !0 }), Vt(e).forEach(pe), this.h(); }, h() { - Pt(e, "class", "eta-bar svelte-17v219f"), pr(e, "transform", t); + Pt(e, "class", "eta-bar svelte-17v219f"), _r(e, "transform", t); }, m(r, n) { Se(r, e, n); @@ -17749,14 +17749,14 @@ function Do(i) { p(r, n) { n[0] & /*eta_level*/ 131072 && t !== (t = `translateX(${/*eta_level*/ - (r[17] || 0) * 100 - 100}%)`) && pr(e, "transform", t); + (r[17] || 0) * 100 - 100}%)`) && _r(e, "transform", t); }, d(r) { r && pe(e); } }; } -function Lf(i) { +function Of(i) { let e; return { c() { @@ -17774,7 +17774,7 @@ function Lf(i) { } }; } -function Of(i) { +function If(i) { let e, t = ( /*queue_position*/ i[2] + 1 + "" @@ -17811,7 +17811,7 @@ function Of(i) { } }; } -function If(i) { +function Pf(i) { let e, t = rs( /*progress*/ i[7] @@ -17852,7 +17852,7 @@ function If(i) { } }, d(n) { - n && pe(e), Tl(r, n); + n && pe(e), Ml(r, n); } }; } @@ -17864,7 +17864,7 @@ function Eo(i) { function s(p, f) { return ( /*p*/ - p[40].length != null ? zf : Pf + p[40].length != null ? Hf : zf ); } let a = s(i), u = a(i); @@ -17888,7 +17888,7 @@ function Eo(i) { } }; } -function Pf(i) { +function zf(i) { let e = Hr( /*p*/ i[40].index || 0 @@ -17915,7 +17915,7 @@ function Pf(i) { } }; } -function zf(i) { +function Hf(i) { let e = Hr( /*p*/ i[40].index || 0 @@ -18012,22 +18012,22 @@ function To(i) { } }; } -function Hf(i) { +function Nf(i) { let e, t; - return e = new Cf({ + return e = new xf({ props: { margin: ( /*variant*/ i[8] === "default" ) } }), { c() { - Dl(e.$$.fragment); + El(e.$$.fragment); }, l(r) { - kl(e.$$.fragment, r); + Dl(e.$$.fragment, r); }, m(r, n) { - Fl(e, r, n), t = !0; + Rl(e, r, n), t = !0; }, p(r, n) { const o = {}; @@ -18042,11 +18042,11 @@ function Hf(i) { Yt(e.$$.fragment, r), t = !1; }, d(r) { - Al(e, r); + Tl(e, r); } }; } -function Nf(i) { +function qf(i) { let e, t, r, n, o, c = `${/*last_progress_level*/ i[15] * 100}%`, s = ( /*progress*/ @@ -18066,16 +18066,16 @@ function Nf(i) { o = Kt(f, "DIV", { class: !0 }), Vt(o).forEach(pe), f.forEach(pe), u.forEach(pe), this.h(); }, h() { - Pt(t, "class", "progress-level-inner svelte-17v219f"), Pt(o, "class", "progress-bar svelte-17v219f"), pr(o, "width", c), Pt(n, "class", "progress-bar-wrap svelte-17v219f"), Pt(e, "class", "progress-level svelte-17v219f"); + Pt(t, "class", "progress-level-inner svelte-17v219f"), Pt(o, "class", "progress-bar svelte-17v219f"), _r(o, "width", c), Pt(n, "class", "progress-bar-wrap svelte-17v219f"), Pt(e, "class", "progress-level svelte-17v219f"); }, m(a, u) { - Se(a, e, u), kr(e, t), s && s.m(t, null), kr(e, r), kr(e, n), kr(n, o), i[31](o); + Se(a, e, u), Dr(e, t), s && s.m(t, null), Dr(e, r), Dr(e, n), Dr(n, o), i[31](o); }, p(a, u) { /*progress*/ a[7] != null ? s ? s.p(a, u) : (s = Mo(a), s.c(), s.m(t, null)) : s && (s.d(1), s = null), u[0] & /*last_progress_level*/ 32768 && c !== (c = `${/*last_progress_level*/ - a[15] * 100}%`) && pr(o, "width", c); + a[15] * 100}%`) && _r(o, "width", c); }, i: an, o: an, @@ -18125,14 +18125,14 @@ function Mo(i) { } }, d(n) { - n && pe(e), Tl(r, n); + n && pe(e), Ml(r, n); } }; } function Bo(i) { let e, t, r, n, o = ( /*i*/ - i[42] !== 0 && qf() + i[42] !== 0 && Uf() ), c = ( /*p*/ i[40].desc != null && Fo(i) @@ -18174,7 +18174,7 @@ function Bo(i) { } }; } -function qf(i) { +function Uf(i) { let e; return { c() { @@ -18301,7 +18301,7 @@ function Io(i) { const o = ( /*#slots*/ i[30]["additional-loading-text"] - ), c = El( + ), c = Al( o, i, /*$$scope*/ @@ -18328,7 +18328,7 @@ function Io(i) { Pt(e, "class", "loading svelte-17v219f"); }, m(s, a) { - Se(s, e, a), kr(e, t), Se(s, r, a), c && c.m(s, a), n = !0; + Se(s, e, a), Dr(e, t), Se(s, r, a), c && c.m(s, a), n = !0; }, p(s, a) { (!n || a[0] & /*loading_text*/ @@ -18337,19 +18337,19 @@ function Io(i) { /*loading_text*/ s[9] ), c && c.p && (!n || a[0] & /*$$scope*/ - 536870912) && Rl( + 536870912) && Ll( c, o, s, /*$$scope*/ s[29], - n ? Bl( + n ? Fl( o, /*$$scope*/ s[29], a, - Bf - ) : Ml( + Ff + ) : Bl( /*$$scope*/ s[29] ), @@ -18367,9 +18367,9 @@ function Io(i) { } }; } -function Uf(i) { +function Wf(i) { let e, t, r, n, o; - const c = [Rf, Ff], s = []; + const c = [Lf, Rf], s = []; function a(u, p) { return ( /*status*/ @@ -18415,12 +18415,12 @@ function Uf(i) { "border", /*border*/ i[12] - ), pr( + ), _r( e, "position", /*absolute*/ i[10] ? "absolute" : "static" - ), pr( + ), _r( e, "padding", /*absolute*/ @@ -18466,13 +18466,13 @@ function Uf(i) { /*border*/ u[12] ), p[0] & /*absolute*/ - 1024 && pr( + 1024 && _r( e, "position", /*absolute*/ u[10] ? "absolute" : "static" ), p[0] & /*absolute*/ - 1024 && pr( + 1024 && _r( e, "padding", /*absolute*/ @@ -18491,13 +18491,13 @@ function Uf(i) { }; } let Ii = [], Is = !1; -const Wf = typeof window < "u", Ll = Wf ? window.requestAnimationFrame : (i) => { +const jf = typeof window < "u", Ol = jf ? window.requestAnimationFrame : (i) => { }; -async function jf(i, e = !0) { +async function Gf(i, e = !0) { if (!(window.__gradio_mode__ === "website" || window.__gradio_mode__ !== "app" && e !== !0)) { if (Ii.push(i), !Is) Is = !0; else return; - await Ef(), Ll(() => { + await Af(), Ol(() => { let t = [0, 0]; for (let r = 0; r < Ii.length; r++) { const o = Ii[r].getBoundingClientRect(); @@ -18507,22 +18507,22 @@ async function jf(i, e = !0) { }); } } -function Gf(i, e, t) { +function Vf(i, e, t) { let r, { $$slots: n = {}, $$scope: o } = e; - const c = Tf(); + const c = Mf(); let { i18n: s } = e, { eta: a = null } = e, { queue_position: u } = e, { queue_size: p } = e, { status: f } = e, { scroll_to_output: g = !1 } = e, { timer: v = !0 } = e, { show_progress: C = "full" } = e, { message: b = null } = e, { progress: d = null } = e, { variant: m = "default" } = e, { loading_text: h = "Loading..." } = e, { absolute: l = !0 } = e, { translucent: _ = !1 } = e, { border: S = !1 } = e, { autoscroll: x } = e, D, y = !1, E = 0, B = 0, O = null, N = null, R = 0, j = null, Y, ee = null, ne = !0; const Z = () => { t(0, a = t(27, O = t(19, I = null))), t(25, E = performance.now()), t(26, B = 0), y = !0, T(); }; function T() { - Ll(() => { + Ol(() => { t(26, B = (performance.now() - E) / 1e3), y && T(); }); } function L() { t(26, B = 0), t(0, a = t(27, O = t(19, I = null))), y && (y = !1); } - Af(() => { + Tf(() => { y && L(); }); let I = null; @@ -18553,7 +18553,7 @@ function Gf(i, e, t) { return V.progress; })) : t(14, j = null), j ? (t(15, Y = j[j.length - 1]), ee && (Y === 0 ? t(16, ee.style.transition = "0", ee) : t(16, ee.style.transition = "150ms", ee))) : t(15, Y = void 0)), i.$$.dirty[0] & /*status*/ 16 && (f === "pending" ? Z() : L()), i.$$.dirty[0] & /*el, scroll_to_output, status, autoscroll*/ - 20979728 && D && g && (f === "pending" || f === "complete") && jf(D, x), i.$$.dirty[0] & /*status, message*/ + 20979728 && D && g && (f === "pending" || f === "complete") && Gf(D, x), i.$$.dirty[0] & /*status, message*/ 8388624, i.$$.dirty[0] & /*timer_diff*/ 67108864 && t(20, r = B.toFixed(1)); }, [ @@ -18593,14 +18593,14 @@ function Gf(i, e, t) { re ]; } -class Vf extends xf { +class Kf extends kf { constructor(e) { - super(), kf( + super(), Df( this, e, - Gf, - Uf, - Df, + Vf, + Wf, + Ef, { i18n: 1, eta: 0, @@ -18626,16 +18626,16 @@ class Vf extends xf { } /*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */ const { - entries: Ol, + entries: Il, setPrototypeOf: Po, - isFrozen: Kf, - getPrototypeOf: Xf, - getOwnPropertyDescriptor: Yf + isFrozen: Xf, + getPrototypeOf: Yf, + getOwnPropertyDescriptor: $f } = Object; let { freeze: rt, seal: Et, - create: Il + create: Pl } = Object, { apply: on, construct: ln @@ -18652,7 +18652,7 @@ on || (on = function(e, t, r) { ln || (ln = function(e, t) { return new e(...t); }); -const Pi = dt(Array.prototype.forEach), zo = dt(Array.prototype.pop), $r = dt(Array.prototype.push), Ki = dt(String.prototype.toLowerCase), Ps = dt(String.prototype.toString), Ho = dt(String.prototype.match), Zr = dt(String.prototype.replace), $f = dt(String.prototype.indexOf), Zf = dt(String.prototype.trim), Lt = dt(Object.prototype.hasOwnProperty), et = dt(RegExp.prototype.test), Jr = Jf(TypeError); +const Pi = dt(Array.prototype.forEach), zo = dt(Array.prototype.pop), $r = dt(Array.prototype.push), Ki = dt(String.prototype.toLowerCase), Ps = dt(String.prototype.toString), Ho = dt(String.prototype.match), Zr = dt(String.prototype.replace), Zf = dt(String.prototype.indexOf), Jf = dt(String.prototype.trim), Lt = dt(Object.prototype.hasOwnProperty), et = dt(RegExp.prototype.test), Jr = Qf(TypeError); function dt(i) { return function(e) { for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++) @@ -18660,7 +18660,7 @@ function dt(i) { return on(i, e, r); }; } -function Jf(i) { +function Qf(i) { return function() { for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r]; @@ -18675,58 +18675,58 @@ function ke(i, e) { let n = e[r]; if (typeof n == "string") { const o = t(n); - o !== n && (Kf(e) || (e[r] = o), n = o); + o !== n && (Xf(e) || (e[r] = o), n = o); } i[n] = !0; } return i; } -function Qf(i) { +function em(i) { for (let e = 0; e < i.length; e++) Lt(i, e) || (i[e] = null); return i; } -function xr(i) { - const e = Il(null); - for (const [t, r] of Ol(i)) - Lt(i, t) && (Array.isArray(r) ? e[t] = Qf(r) : r && typeof r == "object" && r.constructor === Object ? e[t] = xr(r) : e[t] = r); +function kr(i) { + const e = Pl(null); + for (const [t, r] of Il(i)) + Lt(i, t) && (Array.isArray(r) ? e[t] = em(r) : r && typeof r == "object" && r.constructor === Object ? e[t] = kr(r) : e[t] = r); return e; } function Qr(i, e) { for (; i !== null; ) { - const r = Yf(i, e); + const r = $f(i, e); if (r) { if (r.get) return dt(r.get); if (typeof r.value == "function") return dt(r.value); } - i = Xf(i); + i = Yf(i); } function t() { return null; } return t; } -const No = rt(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), zs = rt(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Hs = rt(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), em = rt(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Ns = rt(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), tm = rt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), qo = rt(["#text"]), Uo = rt(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), qs = rt(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Wo = rt(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), zi = rt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), rm = Et(/\{\{[\w\W]*|[\w\W]*\}\}/gm), im = Et(/<%[\w\W]*|[\w\W]*%>/gm), sm = Et(/\${[\w\W]*}/gm), nm = Et(/^data-[\-\w.\u00B7-\uFFFF]/), am = Et(/^aria-[\-\w]+$/), Pl = Et( +const No = rt(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), zs = rt(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Hs = rt(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), tm = rt(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Ns = rt(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), rm = rt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), qo = rt(["#text"]), Uo = rt(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), qs = rt(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Wo = rt(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), zi = rt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), im = Et(/\{\{[\w\W]*|[\w\W]*\}\}/gm), sm = Et(/<%[\w\W]*|[\w\W]*%>/gm), nm = Et(/\${[\w\W]*}/gm), am = Et(/^data-[\-\w.\u00B7-\uFFFF]/), om = Et(/^aria-[\-\w]+$/), zl = Et( /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i // eslint-disable-line no-useless-escape -), om = Et(/^(?:\w+script|data):/i), lm = Et( +), lm = Et(/^(?:\w+script|data):/i), hm = Et( /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex -), zl = Et(/^html$/i), hm = Et(/^[a-z][.\w]*(-[.\w]+)+$/i); +), Hl = Et(/^html$/i), cm = Et(/^[a-z][.\w]*(-[.\w]+)+$/i); var jo = /* @__PURE__ */ Object.freeze({ __proto__: null, - MUSTACHE_EXPR: rm, - ERB_EXPR: im, - TMPLIT_EXPR: sm, - DATA_ATTR: nm, - ARIA_ATTR: am, - IS_ALLOWED_URI: Pl, - IS_SCRIPT_OR_DATA: om, - ATTR_WHITESPACE: lm, - DOCTYPE_NAME: zl, - CUSTOM_ELEMENT: hm + MUSTACHE_EXPR: im, + ERB_EXPR: sm, + TMPLIT_EXPR: nm, + DATA_ATTR: am, + ARIA_ATTR: om, + IS_ALLOWED_URI: zl, + IS_SCRIPT_OR_DATA: lm, + ATTR_WHITESPACE: hm, + DOCTYPE_NAME: Hl, + CUSTOM_ELEMENT: cm }); const ei = { element: 1, @@ -18744,9 +18744,9 @@ const ei = { documentFragment: 11, notation: 12 // Deprecated -}, cm = function() { +}, um = function() { return typeof window > "u" ? null : window; -}, um = function(e, t) { +}, dm = function(e, t) { if (typeof e != "object" || typeof e.createPolicy != "function") return null; let r = null; @@ -18766,9 +18766,9 @@ const ei = { return console.warn("TrustedTypes policy " + o + " could not be created."), null; } }; -function Hl() { - let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : cm(); - const e = (me) => Hl(me); +function Nl() { + let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : um(); + const e = (me) => Nl(me); if (e.version = "3.1.7", e.removed = [], !i || !i.document || i.document.nodeType !== ei.document) return e.isSupported = !1, e; let { @@ -18799,7 +18799,7 @@ function Hl() { importNode: B } = r; let O = {}; - e.isSupported = typeof Ol == "function" && typeof l == "function" && x && x.createHTMLDocument !== void 0; + e.isSupported = typeof Il == "function" && typeof l == "function" && x && x.createHTMLDocument !== void 0; const { MUSTACHE_EXPR: N, ERB_EXPR: R, @@ -18816,7 +18816,7 @@ function Hl() { const H = ke({}, [...No, ...zs, ...Hs, ...Ns, ...qo]); let K = null; const re = ke({}, [...Uo, ...qs, ...Wo, ...zi]); - let V = Object.seal(Il(null, { + let V = Object.seal(Pl(null, { tagNameCheck: { writable: !0, configurable: !1, @@ -18835,57 +18835,57 @@ function Hl() { enumerable: !0, value: !1 } - })), ue = null, W = null, F = !0, X = !0, J = !1, oe = !0, se = !1, be = !0, xe = !1, De = !1, Re = !1, fe = !1, $ = !1, Ye = !1, Tr = !0, Mr = !1; + })), ue = null, W = null, F = !0, X = !0, J = !1, oe = !0, se = !1, be = !0, xe = !1, De = !1, Te = !1, de = !1, Ve = !1, $ = !1, Qt = !0, Mr = !1; const Br = "user-content-"; - let $e = !0, At = !1, Ve = {}, mt = null; + let $e = !0, At = !1, Ke = {}, mt = null; const Fr = ke({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]); let Tt = null; - const wr = ke({}, ["audio", "video", "img", "source", "image", "track"]); + const yr = ke({}, ["audio", "video", "img", "source", "image", "track"]); let pt = null; - const cr = ke({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Te = "http://www.w3.org/1998/Math/MathML", Rr = "http://www.w3.org/2000/svg", Qt = "http://www.w3.org/1999/xhtml"; - let Lr = Qt, us = !1, ds = null; - const Wl = ke({}, [Te, Rr, Qt], Ps); + const ur = ke({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Me = "http://www.w3.org/1998/Math/MathML", Rr = "http://www.w3.org/2000/svg", er = "http://www.w3.org/1999/xhtml"; + let Lr = er, us = !1, ds = null; + const jl = ke({}, [Me, Rr, er], Ps); let Vr = null; - const jl = ["application/xhtml+xml", "text/html"], Gl = "text/html"; + const Gl = ["application/xhtml+xml", "text/html"], Vl = "text/html"; let Ge = null, Or = null; - const Vl = t.createElement("form"), Un = function(U) { + const Kl = t.createElement("form"), Un = function(U) { return U instanceof RegExp || U instanceof Function; }, fs = function() { let U = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; if (!(Or && Or === U)) { - if ((!U || typeof U != "object") && (U = {}), U = xr(U), Vr = // eslint-disable-next-line unicorn/prefer-includes - jl.indexOf(U.PARSER_MEDIA_TYPE) === -1 ? Gl : U.PARSER_MEDIA_TYPE, Ge = Vr === "application/xhtml+xml" ? Ps : Ki, I = Lt(U, "ALLOWED_TAGS") ? ke({}, U.ALLOWED_TAGS, Ge) : H, K = Lt(U, "ALLOWED_ATTR") ? ke({}, U.ALLOWED_ATTR, Ge) : re, ds = Lt(U, "ALLOWED_NAMESPACES") ? ke({}, U.ALLOWED_NAMESPACES, Ps) : Wl, pt = Lt(U, "ADD_URI_SAFE_ATTR") ? ke( - xr(cr), + if ((!U || typeof U != "object") && (U = {}), U = kr(U), Vr = // eslint-disable-next-line unicorn/prefer-includes + Gl.indexOf(U.PARSER_MEDIA_TYPE) === -1 ? Vl : U.PARSER_MEDIA_TYPE, Ge = Vr === "application/xhtml+xml" ? Ps : Ki, I = Lt(U, "ALLOWED_TAGS") ? ke({}, U.ALLOWED_TAGS, Ge) : H, K = Lt(U, "ALLOWED_ATTR") ? ke({}, U.ALLOWED_ATTR, Ge) : re, ds = Lt(U, "ALLOWED_NAMESPACES") ? ke({}, U.ALLOWED_NAMESPACES, Ps) : jl, pt = Lt(U, "ADD_URI_SAFE_ATTR") ? ke( + kr(ur), // eslint-disable-line indent U.ADD_URI_SAFE_ATTR, // eslint-disable-line indent Ge // eslint-disable-line indent - ) : cr, Tt = Lt(U, "ADD_DATA_URI_TAGS") ? ke( - xr(wr), + ) : ur, Tt = Lt(U, "ADD_DATA_URI_TAGS") ? ke( + kr(yr), // eslint-disable-line indent U.ADD_DATA_URI_TAGS, // eslint-disable-line indent Ge // eslint-disable-line indent - ) : wr, mt = Lt(U, "FORBID_CONTENTS") ? ke({}, U.FORBID_CONTENTS, Ge) : Fr, ue = Lt(U, "FORBID_TAGS") ? ke({}, U.FORBID_TAGS, Ge) : {}, W = Lt(U, "FORBID_ATTR") ? ke({}, U.FORBID_ATTR, Ge) : {}, Ve = Lt(U, "USE_PROFILES") ? U.USE_PROFILES : !1, F = U.ALLOW_ARIA_ATTR !== !1, X = U.ALLOW_DATA_ATTR !== !1, J = U.ALLOW_UNKNOWN_PROTOCOLS || !1, oe = U.ALLOW_SELF_CLOSE_IN_ATTR !== !1, se = U.SAFE_FOR_TEMPLATES || !1, be = U.SAFE_FOR_XML !== !1, xe = U.WHOLE_DOCUMENT || !1, fe = U.RETURN_DOM || !1, $ = U.RETURN_DOM_FRAGMENT || !1, Ye = U.RETURN_TRUSTED_TYPE || !1, Re = U.FORCE_BODY || !1, Tr = U.SANITIZE_DOM !== !1, Mr = U.SANITIZE_NAMED_PROPS || !1, $e = U.KEEP_CONTENT !== !1, At = U.IN_PLACE || !1, L = U.ALLOWED_URI_REGEXP || Pl, Lr = U.NAMESPACE || Qt, V = U.CUSTOM_ELEMENT_HANDLING || {}, U.CUSTOM_ELEMENT_HANDLING && Un(U.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (V.tagNameCheck = U.CUSTOM_ELEMENT_HANDLING.tagNameCheck), U.CUSTOM_ELEMENT_HANDLING && Un(U.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (V.attributeNameCheck = U.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), U.CUSTOM_ELEMENT_HANDLING && typeof U.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (V.allowCustomizedBuiltInElements = U.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), se && (X = !1), $ && (fe = !0), Ve && (I = ke({}, qo), K = [], Ve.html === !0 && (ke(I, No), ke(K, Uo)), Ve.svg === !0 && (ke(I, zs), ke(K, qs), ke(K, zi)), Ve.svgFilters === !0 && (ke(I, Hs), ke(K, qs), ke(K, zi)), Ve.mathMl === !0 && (ke(I, Ns), ke(K, Wo), ke(K, zi))), U.ADD_TAGS && (I === H && (I = xr(I)), ke(I, U.ADD_TAGS, Ge)), U.ADD_ATTR && (K === re && (K = xr(K)), ke(K, U.ADD_ATTR, Ge)), U.ADD_URI_SAFE_ATTR && ke(pt, U.ADD_URI_SAFE_ATTR, Ge), U.FORBID_CONTENTS && (mt === Fr && (mt = xr(mt)), ke(mt, U.FORBID_CONTENTS, Ge)), $e && (I["#text"] = !0), xe && ke(I, ["html", "head", "body"]), I.table && (ke(I, ["tbody"]), delete ue.tbody), U.TRUSTED_TYPES_POLICY) { + ) : yr, mt = Lt(U, "FORBID_CONTENTS") ? ke({}, U.FORBID_CONTENTS, Ge) : Fr, ue = Lt(U, "FORBID_TAGS") ? ke({}, U.FORBID_TAGS, Ge) : {}, W = Lt(U, "FORBID_ATTR") ? ke({}, U.FORBID_ATTR, Ge) : {}, Ke = Lt(U, "USE_PROFILES") ? U.USE_PROFILES : !1, F = U.ALLOW_ARIA_ATTR !== !1, X = U.ALLOW_DATA_ATTR !== !1, J = U.ALLOW_UNKNOWN_PROTOCOLS || !1, oe = U.ALLOW_SELF_CLOSE_IN_ATTR !== !1, se = U.SAFE_FOR_TEMPLATES || !1, be = U.SAFE_FOR_XML !== !1, xe = U.WHOLE_DOCUMENT || !1, de = U.RETURN_DOM || !1, Ve = U.RETURN_DOM_FRAGMENT || !1, $ = U.RETURN_TRUSTED_TYPE || !1, Te = U.FORCE_BODY || !1, Qt = U.SANITIZE_DOM !== !1, Mr = U.SANITIZE_NAMED_PROPS || !1, $e = U.KEEP_CONTENT !== !1, At = U.IN_PLACE || !1, L = U.ALLOWED_URI_REGEXP || zl, Lr = U.NAMESPACE || er, V = U.CUSTOM_ELEMENT_HANDLING || {}, U.CUSTOM_ELEMENT_HANDLING && Un(U.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (V.tagNameCheck = U.CUSTOM_ELEMENT_HANDLING.tagNameCheck), U.CUSTOM_ELEMENT_HANDLING && Un(U.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (V.attributeNameCheck = U.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), U.CUSTOM_ELEMENT_HANDLING && typeof U.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (V.allowCustomizedBuiltInElements = U.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), se && (X = !1), Ve && (de = !0), Ke && (I = ke({}, qo), K = [], Ke.html === !0 && (ke(I, No), ke(K, Uo)), Ke.svg === !0 && (ke(I, zs), ke(K, qs), ke(K, zi)), Ke.svgFilters === !0 && (ke(I, Hs), ke(K, qs), ke(K, zi)), Ke.mathMl === !0 && (ke(I, Ns), ke(K, Wo), ke(K, zi))), U.ADD_TAGS && (I === H && (I = kr(I)), ke(I, U.ADD_TAGS, Ge)), U.ADD_ATTR && (K === re && (K = kr(K)), ke(K, U.ADD_ATTR, Ge)), U.ADD_URI_SAFE_ATTR && ke(pt, U.ADD_URI_SAFE_ATTR, Ge), U.FORBID_CONTENTS && (mt === Fr && (mt = kr(mt)), ke(mt, U.FORBID_CONTENTS, Ge)), $e && (I["#text"] = !0), xe && ke(I, ["html", "head", "body"]), I.table && (ke(I, ["tbody"]), delete ue.tbody), U.TRUSTED_TYPES_POLICY) { if (typeof U.TRUSTED_TYPES_POLICY.createHTML != "function") throw Jr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.'); if (typeof U.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Jr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.'); _ = U.TRUSTED_TYPES_POLICY, S = _.createHTML(""); } else - _ === void 0 && (_ = um(v, n)), _ !== null && typeof S == "string" && (S = _.createHTML("")); + _ === void 0 && (_ = dm(v, n)), _ !== null && typeof S == "string" && (S = _.createHTML("")); rt && rt(U), Or = U; } - }, Wn = ke({}, ["mi", "mo", "mn", "ms", "mtext"]), jn = ke({}, ["annotation-xml"]), Kl = ke({}, ["title", "style", "font", "a", "script"]), Gn = ke({}, [...zs, ...Hs, ...em]), Vn = ke({}, [...Ns, ...tm]), Xl = function(U) { + }, Wn = ke({}, ["mi", "mo", "mn", "ms", "mtext"]), jn = ke({}, ["annotation-xml"]), Xl = ke({}, ["title", "style", "font", "a", "script"]), Gn = ke({}, [...zs, ...Hs, ...tm]), Vn = ke({}, [...Ns, ...rm]), Yl = function(U) { let ae = l(U); (!ae || !ae.tagName) && (ae = { namespaceURI: Lr, tagName: "template" }); - const de = Ki(U.tagName), Le = Ki(ae.tagName); - return ds[U.namespaceURI] ? U.namespaceURI === Rr ? ae.namespaceURI === Qt ? de === "svg" : ae.namespaceURI === Te ? de === "svg" && (Le === "annotation-xml" || Wn[Le]) : !!Gn[de] : U.namespaceURI === Te ? ae.namespaceURI === Qt ? de === "math" : ae.namespaceURI === Rr ? de === "math" && jn[Le] : !!Vn[de] : U.namespaceURI === Qt ? ae.namespaceURI === Rr && !jn[Le] || ae.namespaceURI === Te && !Wn[Le] ? !1 : !Vn[de] && (Kl[de] || !Gn[de]) : !!(Vr === "application/xhtml+xml" && ds[U.namespaceURI]) : !1; + const fe = Ki(U.tagName), Le = Ki(ae.tagName); + return ds[U.namespaceURI] ? U.namespaceURI === Rr ? ae.namespaceURI === er ? fe === "svg" : ae.namespaceURI === Me ? fe === "svg" && (Le === "annotation-xml" || Wn[Le]) : !!Gn[fe] : U.namespaceURI === Me ? ae.namespaceURI === er ? fe === "math" : ae.namespaceURI === Rr ? fe === "math" && jn[Le] : !!Vn[fe] : U.namespaceURI === er ? ae.namespaceURI === Rr && !jn[Le] || ae.namespaceURI === Me && !Wn[Le] ? !1 : !Vn[fe] && (Xl[fe] || !Gn[fe]) : !!(Vr === "application/xhtml+xml" && ds[U.namespaceURI]) : !1; }, Ht = function(U) { $r(e.removed, { element: U @@ -18908,7 +18908,7 @@ function Hl() { }); } if (ae.removeAttribute(U), U === "is" && !K[U]) - if (fe || $) + if (de || Ve) try { Ht(ae); } catch { @@ -18919,16 +18919,16 @@ function Hl() { } catch { } }, Kn = function(U) { - let ae = null, de = null; - if (Re) + let ae = null, fe = null; + if (Te) U = "" + U; else { - const Ke = Ho(U, /^[\r\n\t ]+/); - de = Ke && Ke[0]; + const Xe = Ho(U, /^[\r\n\t ]+/); + fe = Xe && Xe[0]; } - Vr === "application/xhtml+xml" && Lr === Qt && (U = '' + U + ""); + Vr === "application/xhtml+xml" && Lr === er && (U = '' + U + ""); const Le = _ ? _.createHTML(U) : U; - if (Lr === Qt) + if (Lr === er) try { ae = new g().parseFromString(Le, Vr); } catch { @@ -18941,7 +18941,7 @@ function Hl() { } } const Ze = ae.body || ae.documentElement; - return U && de && Ze.insertBefore(t.createTextNode(de), Ze.childNodes[0] || null), Lr === Qt ? E.call(ae, xe ? "html" : "body")[0] : xe ? ae.documentElement : Ze; + return U && fe && Ze.insertBefore(t.createTextNode(fe), Ze.childNodes[0] || null), Lr === er ? E.call(ae, xe ? "html" : "body")[0] : xe ? ae.documentElement : Ze; }, Xn = function(U) { return D.call( U.ownerDocument || U, @@ -18954,28 +18954,28 @@ function Hl() { return U instanceof f && (typeof U.nodeName != "string" || typeof U.textContent != "string" || typeof U.removeChild != "function" || !(U.attributes instanceof p) || typeof U.removeAttribute != "function" || typeof U.setAttribute != "function" || typeof U.namespaceURI != "string" || typeof U.insertBefore != "function" || typeof U.hasChildNodes != "function"); }, $n = function(U) { return typeof s == "function" && U instanceof s; - }, er = function(U, ae, de) { + }, tr = function(U, ae, fe) { O[U] && Pi(O[U], (Le) => { - Le.call(e, ae, de, Or); + Le.call(e, ae, fe, Or); }); }, Zn = function(U) { let ae = null; - if (er("beforeSanitizeElements", U, null), Yn(U)) + if (tr("beforeSanitizeElements", U, null), Yn(U)) return Ht(U), !0; - const de = Ge(U.nodeName); - if (er("uponSanitizeElement", U, { - tagName: de, + const fe = Ge(U.nodeName); + if (tr("uponSanitizeElement", U, { + tagName: fe, allowedTags: I }), U.hasChildNodes() && !$n(U.firstElementChild) && et(/<[/\w]/g, U.innerHTML) && et(/<[/\w]/g, U.textContent) || U.nodeType === ei.progressingInstruction || be && U.nodeType === ei.comment && et(/<[/\w]/g, U.data)) return Ht(U), !0; - if (!I[de] || ue[de]) { - if (!ue[de] && Qn(de) && (V.tagNameCheck instanceof RegExp && et(V.tagNameCheck, de) || V.tagNameCheck instanceof Function && V.tagNameCheck(de))) + if (!I[fe] || ue[fe]) { + if (!ue[fe] && Qn(fe) && (V.tagNameCheck instanceof RegExp && et(V.tagNameCheck, fe) || V.tagNameCheck instanceof Function && V.tagNameCheck(fe))) return !1; - if ($e && !mt[de]) { + if ($e && !mt[fe]) { const Le = l(U) || U.parentNode, Ze = h(U) || U.childNodes; if (Ze && Le) { - const Ke = Ze.length; - for (let st = Ke - 1; st >= 0; --st) { + const Xe = Ze.length; + for (let st = Xe - 1; st >= 0; --st) { const Nt = b(Ze[st], !0); Nt.__removalCount = (U.__removalCount || 0) + 1, Le.insertBefore(Nt, m(U)); } @@ -18983,13 +18983,13 @@ function Hl() { } return Ht(U), !0; } - return U instanceof a && !Xl(U) || (de === "noscript" || de === "noembed" || de === "noframes") && et(/<\/no(script|embed|frames)/i, U.innerHTML) ? (Ht(U), !0) : (se && U.nodeType === ei.text && (ae = U.textContent, Pi([N, R, j], (Le) => { + return U instanceof a && !Yl(U) || (fe === "noscript" || fe === "noembed" || fe === "noframes") && et(/<\/no(script|embed|frames)/i, U.innerHTML) ? (Ht(U), !0) : (se && U.nodeType === ei.text && (ae = U.textContent, Pi([N, R, j], (Le) => { ae = Zr(ae, Le, " "); }), U.textContent !== ae && ($r(e.removed, { element: U.cloneNode() - }), U.textContent = ae)), er("afterSanitizeElements", U, null), !1); - }, Jn = function(U, ae, de) { - if (Tr && (ae === "id" || ae === "name") && (de in t || de in Vl)) + }), U.textContent = ae)), tr("afterSanitizeElements", U, null), !1); + }, Jn = function(U, ae, fe) { + if (Qt && (ae === "id" || ae === "name") && (fe in t || fe in Kl)) return !1; if (!(X && !W[ae] && et(Y, ae))) { if (!(F && et(ee, ae))) { @@ -19000,13 +19000,13 @@ function Hl() { // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck !(Qn(U) && (V.tagNameCheck instanceof RegExp && et(V.tagNameCheck, U) || V.tagNameCheck instanceof Function && V.tagNameCheck(U)) && (V.attributeNameCheck instanceof RegExp && et(V.attributeNameCheck, ae) || V.attributeNameCheck instanceof Function && V.attributeNameCheck(ae)) || // Alternative, second condition checks if it's an `is`-attribute, AND // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck - ae === "is" && V.allowCustomizedBuiltInElements && (V.tagNameCheck instanceof RegExp && et(V.tagNameCheck, de) || V.tagNameCheck instanceof Function && V.tagNameCheck(de))) + ae === "is" && V.allowCustomizedBuiltInElements && (V.tagNameCheck instanceof RegExp && et(V.tagNameCheck, fe) || V.tagNameCheck instanceof Function && V.tagNameCheck(fe))) ) return !1; } else if (!pt[ae]) { - if (!et(L, Zr(de, Z, ""))) { - if (!((ae === "src" || ae === "xlink:href" || ae === "href") && U !== "script" && $f(de, "data:") === 0 && Tt[U])) { - if (!(J && !et(ne, Zr(de, Z, "")))) { - if (de) + if (!et(L, Zr(fe, Z, ""))) { + if (!((ae === "src" || ae === "xlink:href" || ae === "href") && U !== "script" && Zf(fe, "data:") === 0 && Tt[U])) { + if (!(J && !et(ne, Zr(fe, Z, "")))) { + if (fe) return !1; } } @@ -19018,13 +19018,13 @@ function Hl() { }, Qn = function(U) { return U !== "annotation-xml" && Ho(U, T); }, ea = function(U) { - er("beforeSanitizeAttributes", U, null); + tr("beforeSanitizeAttributes", U, null); const { attributes: ae } = U; if (!ae) return; - const de = { + const fe = { attrName: "", attrValue: "", keepAttr: !0, @@ -19033,15 +19033,15 @@ function Hl() { let Le = ae.length; for (; Le--; ) { const Ze = ae[Le], { - name: Ke, + name: Xe, namespaceURI: st, value: Nt - } = Ze, Kr = Ge(Ke); - let Je = Ke === "value" ? Nt : Zf(Nt); - if (de.attrName = Kr, de.attrValue = Je, de.keepAttr = !0, de.forceKeepAttr = void 0, er("uponSanitizeAttribute", U, de), Je = de.attrValue, de.forceKeepAttr || (_i(Ke, U), !de.keepAttr)) + } = Ze, Kr = Ge(Xe); + let Je = Xe === "value" ? Nt : Jf(Nt); + if (fe.attrName = Kr, fe.attrValue = Je, fe.keepAttr = !0, fe.forceKeepAttr = void 0, tr("uponSanitizeAttribute", U, fe), Je = fe.attrValue, fe.forceKeepAttr || (_i(Xe, U), !fe.keepAttr)) continue; if (!oe && et(/\/>/i, Je)) { - _i(Ke, U); + _i(Xe, U); continue; } se && Pi([N, R, j], (ra) => { @@ -19049,8 +19049,8 @@ function Hl() { }); const ta = Ge(U.nodeName); if (Jn(ta, Kr, Je)) { - if (Mr && (Kr === "id" || Kr === "name") && (_i(Ke, U), Je = Br + Je), be && et(/((--!?|])>)|<\/(style|title)/i, Je)) { - _i(Ke, U); + if (Mr && (Kr === "id" || Kr === "name") && (_i(Xe, U), Je = Br + Je), be && et(/((--!?|])>)|<\/(style|title)/i, Je)) { + _i(Xe, U); continue; } if (_ && typeof v == "object" && typeof v.getAttributeType == "function" && !st) @@ -19065,21 +19065,21 @@ function Hl() { } } try { - st ? U.setAttributeNS(st, Ke, Je) : U.setAttribute(Ke, Je), Yn(U) ? Ht(U) : zo(e.removed); + st ? U.setAttributeNS(st, Xe, Je) : U.setAttribute(Xe, Je), Yn(U) ? Ht(U) : zo(e.removed); } catch { } } } - er("afterSanitizeAttributes", U, null); - }, Yl = function me(U) { + tr("afterSanitizeAttributes", U, null); + }, $l = function me(U) { let ae = null; - const de = Xn(U); - for (er("beforeSanitizeShadowDOM", U, null); ae = de.nextNode(); ) - er("uponSanitizeShadowNode", ae, null), !Zn(ae) && (ae.content instanceof o && me(ae.content), ea(ae)); - er("afterSanitizeShadowDOM", U, null); + const fe = Xn(U); + for (tr("beforeSanitizeShadowDOM", U, null); ae = fe.nextNode(); ) + tr("uponSanitizeShadowNode", ae, null), !Zn(ae) && (ae.content instanceof o && me(ae.content), ea(ae)); + tr("afterSanitizeShadowDOM", U, null); }; return e.sanitize = function(me) { - let U = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, ae = null, de = null, Le = null, Ze = null; + let U = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, ae = null, fe = null, Le = null, Ze = null; if (us = !me, us && (me = ""), typeof me != "string" && !$n(me)) if (typeof me.toString == "function") { if (me = me.toString(), typeof me != "string") @@ -19095,22 +19095,22 @@ function Hl() { throw Jr("root node is forbidden and cannot be sanitized in-place"); } } else if (me instanceof s) - ae = Kn(""), de = ae.ownerDocument.importNode(me, !0), de.nodeType === ei.element && de.nodeName === "BODY" || de.nodeName === "HTML" ? ae = de : ae.appendChild(de); + ae = Kn(""), fe = ae.ownerDocument.importNode(me, !0), fe.nodeType === ei.element && fe.nodeName === "BODY" || fe.nodeName === "HTML" ? ae = fe : ae.appendChild(fe); else { - if (!fe && !se && !xe && // eslint-disable-next-line unicorn/prefer-includes + if (!de && !se && !xe && // eslint-disable-next-line unicorn/prefer-includes me.indexOf("<") === -1) - return _ && Ye ? _.createHTML(me) : me; + return _ && $ ? _.createHTML(me) : me; if (ae = Kn(me), !ae) - return fe ? null : Ye ? S : ""; + return de ? null : $ ? S : ""; } - ae && Re && Ht(ae.firstChild); - const Ke = Xn(At ? me : ae); - for (; Le = Ke.nextNode(); ) - Zn(Le) || (Le.content instanceof o && Yl(Le.content), ea(Le)); + ae && Te && Ht(ae.firstChild); + const Xe = Xn(At ? me : ae); + for (; Le = Xe.nextNode(); ) + Zn(Le) || (Le.content instanceof o && $l(Le.content), ea(Le)); if (At) return me; - if (fe) { - if ($) + if (de) { + if (Ve) for (Ze = y.call(ae.ownerDocument); ae.firstChild; ) Ze.appendChild(ae.firstChild); else @@ -19118,10 +19118,10 @@ function Hl() { return (K.shadowroot || K.shadowrootmode) && (Ze = B.call(r, Ze, !0)), Ze; } let st = xe ? ae.outerHTML : ae.innerHTML; - return xe && I["!doctype"] && ae.ownerDocument && ae.ownerDocument.doctype && ae.ownerDocument.doctype.name && et(zl, ae.ownerDocument.doctype.name) && (st = " + return xe && I["!doctype"] && ae.ownerDocument && ae.ownerDocument.doctype && ae.ownerDocument.doctype.name && et(Hl, ae.ownerDocument.doctype.name) && (st = " ` + st), se && Pi([N, R, j], (Nt) => { st = Zr(st, Nt, " "); - }), _ && Ye ? _.createHTML(st) : st; + }), _ && $ ? _.createHTML(st) : st; }, e.setConfig = function() { let me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; fs(me), De = !0; @@ -19129,8 +19129,8 @@ function Hl() { Or = null, De = !1; }, e.isValidAttribute = function(me, U, ae) { Or || fs({}); - const de = Ge(me), Le = Ge(U); - return Jn(de, Le, ae); + const fe = Ge(me), Le = Ge(U); + return Jn(fe, Le, ae); }, e.addHook = function(me, U) { typeof U == "function" && (O[me] = O[me] || [], $r(O[me], U)); }, e.removeHook = function(me) { @@ -19142,8 +19142,8 @@ function Hl() { O = {}; }, e; } -Hl(); -var Nl = { exports: {} }; +Nl(); +var ql = { exports: {} }; (function(i, e) { (function(t, r) { i.exports = r(); @@ -19704,7 +19704,7 @@ WARNING: This link could potentially be dangerous`)) { if (be === 0) return; const xe = ne.C0.ESC + (this.coreService.decPrivateModes.applicationCursorKeys ? "O" : "[") + (se.deltaY < 0 ? "A" : "B"); let De = ""; - for (let Re = 0; Re < Math.abs(be); Re++) De += xe; + for (let Te = 0; Te < Math.abs(be); Te++) De += xe; return this.coreService.triggerDataEvent(De, !0), this.cancel(se, !0); } return this.viewport.handleWheel(se) ? this.cancel(se) : void 0; @@ -20460,26 +20460,26 @@ WARNING: This link could potentially be dangerous`)) { x.loadCell(be, this._workCell); let xe = this._workCell.getWidth(); if (xe === 0) continue; - let De = !1, Re = be, fe = this._workCell; + let De = !1, Te = be, de = this._workCell; if (Z.length > 0 && be === Z[0][0]) { De = !0; - const Te = Z.shift(); - fe = new m.JoinedCellData(this._workCell, x.translateToString(!0, Te[0], Te[1]), Te[1] - Te[0]), Re = Te[1] - 1, xe = fe.getWidth(); + const Me = Z.shift(); + de = new m.JoinedCellData(this._workCell, x.translateToString(!0, Me[0], Me[1]), Me[1] - Me[0]), Te = Me[1] - 1, xe = de.getWidth(); } - const $ = this._isCellInSelection(be, D), Ye = y && be === O, Tr = se && be >= Y && be <= ee; + const Ve = this._isCellInSelection(be, D), $ = y && be === O, Qt = se && be >= Y && be <= ee; let Mr = !1; - this._decorationService.forEachDecorationAtCell(be, D, void 0, (Te) => { + this._decorationService.forEachDecorationAtCell(be, D, void 0, (Me) => { Mr = !0; }); - let Br = fe.getChars() || g.WHITESPACE_CELL_CHAR; - if (Br === " " && (fe.isUnderline() || fe.isOverline()) && (Br = " "), J = xe * R - j.get(Br, fe.isBold(), fe.isItalic()), L) { - if (H && ($ && X || !$ && !X && fe.bg === re) && ($ && X && T.selectionForeground || fe.fg === V) && fe.extended.ext === ue && Tr === W && J === F && !Ye && !De && !Mr) { - fe.isInvisible() ? K += g.WHITESPACE_CELL_CHAR : K += Br, H++; + let Br = de.getChars() || g.WHITESPACE_CELL_CHAR; + if (Br === " " && (de.isUnderline() || de.isOverline()) && (Br = " "), J = xe * R - j.get(Br, de.isBold(), de.isItalic()), L) { + if (H && (Ve && X || !Ve && !X && de.bg === re) && (Ve && X && T.selectionForeground || de.fg === V) && de.extended.ext === ue && Qt === W && J === F && !$ && !De && !Mr) { + de.isInvisible() ? K += g.WHITESPACE_CELL_CHAR : K += Br, H++; continue; } H && (L.textContent = K), L = this._document.createElement("span"), H = 0, K = ""; } else L = this._document.createElement("span"); - if (re = fe.bg, V = fe.fg, ue = fe.extended.ext, W = Tr, F = J, X = $, De && O >= be && O <= Re && (O = be), !this._coreService.isCursorHidden && Ye && this._coreService.isCursorInitialized) { + if (re = de.bg, V = de.fg, ue = de.extended.ext, W = Qt, F = J, X = Ve, De && O >= be && O <= Te && (O = be), !this._coreService.isCursorHidden && $ && this._coreService.isCursorInitialized) { if (oe.push("xterm-cursor"), this._coreBrowserService.isFocused) N && oe.push("xterm-cursor-blink"), oe.push(E === "bar" ? "xterm-cursor-bar" : E === "underline" ? "xterm-cursor-underline" : "xterm-cursor-block"); else if (B) switch (B) { case "outline": @@ -20495,47 +20495,47 @@ WARNING: This link could potentially be dangerous`)) { oe.push("xterm-cursor-underline"); } } - if (fe.isBold() && oe.push("xterm-bold"), fe.isItalic() && oe.push("xterm-italic"), fe.isDim() && oe.push("xterm-dim"), K = fe.isInvisible() ? g.WHITESPACE_CELL_CHAR : fe.getChars() || g.WHITESPACE_CELL_CHAR, fe.isUnderline() && (oe.push(`xterm-underline-${fe.extended.underlineStyle}`), K === " " && (K = " "), !fe.isUnderlineColorDefault())) if (fe.isUnderlineColorRGB()) L.style.textDecorationColor = `rgb(${l.AttributeData.toColorRGB(fe.getUnderlineColor()).join(",")})`; + if (de.isBold() && oe.push("xterm-bold"), de.isItalic() && oe.push("xterm-italic"), de.isDim() && oe.push("xterm-dim"), K = de.isInvisible() ? g.WHITESPACE_CELL_CHAR : de.getChars() || g.WHITESPACE_CELL_CHAR, de.isUnderline() && (oe.push(`xterm-underline-${de.extended.underlineStyle}`), K === " " && (K = " "), !de.isUnderlineColorDefault())) if (de.isUnderlineColorRGB()) L.style.textDecorationColor = `rgb(${l.AttributeData.toColorRGB(de.getUnderlineColor()).join(",")})`; else { - let Te = fe.getUnderlineColor(); - this._optionsService.rawOptions.drawBoldTextInBrightColors && fe.isBold() && Te < 8 && (Te += 8), L.style.textDecorationColor = T.ansi[Te].css; + let Me = de.getUnderlineColor(); + this._optionsService.rawOptions.drawBoldTextInBrightColors && de.isBold() && Me < 8 && (Me += 8), L.style.textDecorationColor = T.ansi[Me].css; } - fe.isOverline() && (oe.push("xterm-overline"), K === " " && (K = " ")), fe.isStrikethrough() && oe.push("xterm-strikethrough"), Tr && (L.style.textDecoration = "underline"); - let $e = fe.getFgColor(), At = fe.getFgColorMode(), Ve = fe.getBgColor(), mt = fe.getBgColorMode(); - const Fr = !!fe.isInverse(); + de.isOverline() && (oe.push("xterm-overline"), K === " " && (K = " ")), de.isStrikethrough() && oe.push("xterm-strikethrough"), Qt && (L.style.textDecoration = "underline"); + let $e = de.getFgColor(), At = de.getFgColorMode(), Ke = de.getBgColor(), mt = de.getBgColorMode(); + const Fr = !!de.isInverse(); if (Fr) { - const Te = $e; - $e = Ve, Ve = Te; + const Me = $e; + $e = Ke, Ke = Me; const Rr = At; At = mt, mt = Rr; } - let Tt, wr, pt, cr = !1; - switch (this._decorationService.forEachDecorationAtCell(be, D, void 0, (Te) => { - Te.options.layer !== "top" && cr || (Te.backgroundColorRGB && (mt = 50331648, Ve = Te.backgroundColorRGB.rgba >> 8 & 16777215, Tt = Te.backgroundColorRGB), Te.foregroundColorRGB && (At = 50331648, $e = Te.foregroundColorRGB.rgba >> 8 & 16777215, wr = Te.foregroundColorRGB), cr = Te.options.layer === "top"); - }), !cr && $ && (Tt = this._coreBrowserService.isFocused ? T.selectionBackgroundOpaque : T.selectionInactiveBackgroundOpaque, Ve = Tt.rgba >> 8 & 16777215, mt = 50331648, cr = !0, T.selectionForeground && (At = 50331648, $e = T.selectionForeground.rgba >> 8 & 16777215, wr = T.selectionForeground)), cr && oe.push("xterm-decoration-top"), mt) { + let Tt, yr, pt, ur = !1; + switch (this._decorationService.forEachDecorationAtCell(be, D, void 0, (Me) => { + Me.options.layer !== "top" && ur || (Me.backgroundColorRGB && (mt = 50331648, Ke = Me.backgroundColorRGB.rgba >> 8 & 16777215, Tt = Me.backgroundColorRGB), Me.foregroundColorRGB && (At = 50331648, $e = Me.foregroundColorRGB.rgba >> 8 & 16777215, yr = Me.foregroundColorRGB), ur = Me.options.layer === "top"); + }), !ur && Ve && (Tt = this._coreBrowserService.isFocused ? T.selectionBackgroundOpaque : T.selectionInactiveBackgroundOpaque, Ke = Tt.rgba >> 8 & 16777215, mt = 50331648, ur = !0, T.selectionForeground && (At = 50331648, $e = T.selectionForeground.rgba >> 8 & 16777215, yr = T.selectionForeground)), ur && oe.push("xterm-decoration-top"), mt) { case 16777216: case 33554432: - pt = T.ansi[Ve], oe.push(`xterm-bg-${Ve}`); + pt = T.ansi[Ke], oe.push(`xterm-bg-${Ke}`); break; case 50331648: - pt = b.channels.toColor(Ve >> 16, Ve >> 8 & 255, 255 & Ve), this._addStyle(L, `background-color:#${S((Ve >>> 0).toString(16), "0", 6)}`); + pt = b.channels.toColor(Ke >> 16, Ke >> 8 & 255, 255 & Ke), this._addStyle(L, `background-color:#${S((Ke >>> 0).toString(16), "0", 6)}`); break; default: Fr ? (pt = T.foreground, oe.push(`xterm-bg-${f.INVERTED_DEFAULT_COLOR}`)) : pt = T.background; } - switch (Tt || fe.isDim() && (Tt = b.color.multiplyOpacity(pt, 0.5)), At) { + switch (Tt || de.isDim() && (Tt = b.color.multiplyOpacity(pt, 0.5)), At) { case 16777216: case 33554432: - fe.isBold() && $e < 8 && this._optionsService.rawOptions.drawBoldTextInBrightColors && ($e += 8), this._applyMinimumContrast(L, pt, T.ansi[$e], fe, Tt, void 0) || oe.push(`xterm-fg-${$e}`); + de.isBold() && $e < 8 && this._optionsService.rawOptions.drawBoldTextInBrightColors && ($e += 8), this._applyMinimumContrast(L, pt, T.ansi[$e], de, Tt, void 0) || oe.push(`xterm-fg-${$e}`); break; case 50331648: - const Te = b.channels.toColor($e >> 16 & 255, $e >> 8 & 255, 255 & $e); - this._applyMinimumContrast(L, pt, Te, fe, Tt, wr) || this._addStyle(L, `color:#${S($e.toString(16), "0", 6)}`); + const Me = b.channels.toColor($e >> 16 & 255, $e >> 8 & 255, 255 & $e); + this._applyMinimumContrast(L, pt, Me, de, Tt, yr) || this._addStyle(L, `color:#${S($e.toString(16), "0", 6)}`); break; default: - this._applyMinimumContrast(L, pt, T.foreground, fe, Tt, wr) || Fr && oe.push(`xterm-fg-${f.INVERTED_DEFAULT_COLOR}`); + this._applyMinimumContrast(L, pt, T.foreground, de, Tt, yr) || Fr && oe.push(`xterm-fg-${f.INVERTED_DEFAULT_COLOR}`); } - oe.length && (L.className = oe.join(" "), oe.length = 0), Ye || De || Mr ? L.textContent = K : H++, J !== this.defaultSpacing && (L.style.letterSpacing = `${J}px`), ne.push(L), be = Re; + oe.length && (L.className = oe.join(" "), oe.length = 0), $ || De || Mr ? L.textContent = K : H++, J !== this.defaultSpacing && (L.style.letterSpacing = `${J}px`), ne.push(L), be = Te; } return L && H && (L.textContent = K), ne; } @@ -20788,7 +20788,7 @@ WARNING: This link could potentially be dangerous`)) { } } s.JoinedCellData = b; - let d = s.CharacterJoinerService = class ql { + let d = s.CharacterJoinerService = class Ul { constructor(h) { this._bufferService = h, this._characterJoiners = [], this._nextCharacterJoinerId = 0, this._workCell = new v.CellData(); } @@ -20832,7 +20832,7 @@ WARNING: This link could potentially be dangerous`)) { } for (let E = 1; E < this._characterJoiners.length; E++) try { const B = this._characterJoiners[E].handler(D); - for (let O = 0; O < B.length; O++) ql._mergeRanges(y, B[O]); + for (let O = 0; O < B.length; O++) Ul._mergeRanges(y, B[O]); } catch (B) { console.error(B); } @@ -21840,23 +21840,23 @@ WARNING: This link could potentially be dangerous`)) { let oe = this._parser.precedingJoinState; for (let se = L; se < I; ++se) { if (H = T[se], H < 127 && re) { - const Re = re[String.fromCharCode(H)]; - Re && (H = Re.charCodeAt(0)); + const Te = re[String.fromCharCode(H)]; + Te && (H = Te.charCodeAt(0)); } const be = this._unicodeService.charProperties(H, oe); K = x.UnicodeService.extractWidth(be); const xe = x.UnicodeService.extractShouldJoin(be), De = xe ? x.UnicodeService.extractWidth(oe) : 0; if (oe = be, V && this._onA11yChar.fire((0, b.stringFromCodePoint)(H)), this._getCurrentLinkId() && this._oscLinkService.addLineToLink(this._getCurrentLinkId(), this._activeBuffer.ybase + this._activeBuffer.y), this._activeBuffer.x + K - De > ue) { if (W) { - const Re = J; - let fe = this._activeBuffer.x - De; - for (this._activeBuffer.x = De, this._activeBuffer.y++, this._activeBuffer.y === this._activeBuffer.scrollBottom + 1 ? (this._activeBuffer.y--, this._bufferService.scroll(this._eraseAttrData(), !0)) : (this._activeBuffer.y >= this._bufferService.rows && (this._activeBuffer.y = this._bufferService.rows - 1), this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y).isWrapped = !0), J = this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y), De > 0 && J instanceof d.BufferLine && J.copyCellsFrom(Re, fe, 0, De, !1); fe < ue; ) Re.setCellFromCodepoint(fe++, 0, 1, X); + const Te = J; + let de = this._activeBuffer.x - De; + for (this._activeBuffer.x = De, this._activeBuffer.y++, this._activeBuffer.y === this._activeBuffer.scrollBottom + 1 ? (this._activeBuffer.y--, this._bufferService.scroll(this._eraseAttrData(), !0)) : (this._activeBuffer.y >= this._bufferService.rows && (this._activeBuffer.y = this._bufferService.rows - 1), this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y).isWrapped = !0), J = this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y), De > 0 && J instanceof d.BufferLine && J.copyCellsFrom(Te, de, 0, De, !1); de < ue; ) Te.setCellFromCodepoint(de++, 0, 1, X); } else if (this._activeBuffer.x = ue - 1, K === 2) continue; } if (xe && this._activeBuffer.x) { - const Re = J.getWidth(this._activeBuffer.x - 1) ? 1 : 2; - J.addCodepointToCell(this._activeBuffer.x - Re, H, K); - for (let fe = K - De; --fe >= 0; ) J.setCellFromCodepoint(this._activeBuffer.x++, 0, 0, X); + const Te = J.getWidth(this._activeBuffer.x - 1) ? 1 : 2; + J.addCodepointToCell(this._activeBuffer.x - Te, H, K); + for (let de = K - De; --de >= 0; ) J.setCellFromCodepoint(this._activeBuffer.x++, 0, 0, X); } else if (F && (J.insertCells(this._activeBuffer.x, K - De, this._activeBuffer.getNullCell(X)), J.getWidth(ue - 1) === 2 && J.setCellFromCodepoint(ue - 1, h.NULL_CELL_CODE, h.NULL_CELL_WIDTH, X)), J.setCellFromCodepoint(this._activeBuffer.x++, H, K, X), K > 0) for (; --K; ) J.setCellFromCodepoint(this._activeBuffer.x++, 0, 0, X); } this._parser.precedingJoinState = oe, this._activeBuffer.x < ue && I - L > 0 && J.getWidth(this._activeBuffer.x) === 0 && !J.hasContent(this._activeBuffer.x) && J.setCellFromCodepoint(this._activeBuffer.x, 0, 1, X), this._dirtyRowTracker.markDirty(this._activeBuffer.y); @@ -25172,8 +25172,8 @@ WARNING: This link could potentially be dangerous`)) { c.Terminal = b; })(), o; })()); -})(Nl); -var dm = Nl.exports, Ul = { exports: {} }; +})(ql); +var fm = ql.exports, Wl = { exports: {} }; (function(i, e) { (function(t, r) { i.exports = r(); @@ -25203,39 +25203,40 @@ var dm = Nl.exports, Ul = { exports: {} }; }; })(), t; })()); -})(Ul); -var fm = Ul.exports; +})(Wl); +var mm = Wl.exports; const { - SvelteComponent: mm, + SvelteComponent: pm, append_hydration: Go, - assign: pm, + assign: _m, attr: Vo, - binding_callbacks: _m, - check_outros: gm, + binding_callbacks: gm, + check_outros: vm, children: Ko, claim_component: zn, claim_element: Xo, claim_space: Yo, - claim_text: vm, + claim_text: bm, create_component: Hn, destroy_component: Nn, detach: ii, element: $o, - flush: ye, - get_spread_object: bm, - get_spread_update: wm, - group_outros: ym, - init: Sm, + flush: we, + get_spread_object: wm, + get_spread_update: ym, + group_outros: Sm, + init: Cm, insert_hydration: hn, mount_component: qn, - safe_not_equal: Cm, - set_data: xm, - space: Zo, - text: km, + safe_not_equal: xm, + set_data: km, + set_style: Zo, + space: Jo, + text: Dm, transition_in: Nr, transition_out: li -} = window.__gradio__svelte__internal, { onMount: Dm } = window.__gradio__svelte__internal; -function Jo(i) { +} = window.__gradio__svelte__internal, { onMount: Em } = window.__gradio__svelte__internal; +function Qo(i) { let e, t; const r = [ { autoscroll: ( @@ -25247,12 +25248,12 @@ function Jo(i) { i[0].i18n ) }, /*loading_status*/ - i[9] + i[10] ]; let n = {}; for (let o = 0; o < r.length; o += 1) - n = pm(n, r[o]); - return e = new Vf({ props: n }), { + n = _m(n, r[o]); + return e = new Kf({ props: n }), { c() { Hn(e.$$.fragment); }, @@ -25264,7 +25265,7 @@ function Jo(i) { }, p(o, c) { const s = c[0] & /*gradio, loading_status*/ - 513 ? wm(r, [ + 1025 ? ym(r, [ c[0] & /*gradio*/ 1 && { autoscroll: ( /*gradio*/ @@ -25276,9 +25277,9 @@ function Jo(i) { o[0].i18n ) }, c[0] & /*loading_status*/ - 512 && bm( + 1024 && wm( /*loading_status*/ - o[9] + o[10] ) ]) : {}; e.$set(s); @@ -25294,20 +25295,20 @@ function Jo(i) { } }; } -function Em(i) { +function Am(i) { let e; return { c() { - e = km( + e = Dm( /*label*/ - i[1] + i[2] ); }, l(t) { - e = vm( + e = bm( t, /*label*/ - i[1] + i[2] ); }, m(t, r) { @@ -25315,10 +25316,10 @@ function Em(i) { }, p(t, r) { r[0] & /*label*/ - 2 && xm( + 4 && km( e, /*label*/ - t[1] + t[2] ); }, d(t) { @@ -25326,48 +25327,48 @@ function Em(i) { } }; } -function Am(i) { +function Tm(i) { let e, t, r, n, o, c, s = ( /*loading_status*/ - i[9] && Jo(i) + i[10] && Qo(i) ); - return r = new zd({ + return r = new Hd({ props: { show_label: ( /*show_label*/ - i[6] + i[7] ), info: void 0, - $$slots: { default: [Em] }, + $$slots: { default: [Am] }, $$scope: { ctx: i } } }), { c() { - s && s.c(), e = Zo(), t = $o("div"), Hn(r.$$.fragment), n = Zo(), o = $o("div"), this.h(); + s && s.c(), e = Jo(), t = $o("div"), Hn(r.$$.fragment), n = Jo(), o = $o("div"), this.h(); }, l(a) { - s && s.l(a), e = Yo(a), t = Xo(a, "DIV", { class: !0 }); + s && s.l(a), e = Yo(a), t = Xo(a, "DIV", { style: !0, class: !0 }); var u = Ko(t); - zn(r.$$.fragment, u), n = Yo(u), o = Xo(u, "DIV", { class: !0 }), Ko(o).forEach(ii), u.forEach(ii), this.h(); + zn(r.$$.fragment, u), n = Yo(u), o = Xo(u, "DIV", { style: !0, class: !0 }), Ko(o).forEach(ii), u.forEach(ii), this.h(); }, h() { - Vo(o, "class", "svelte-1jxdgz3"), Vo(t, "class", "svelte-1jxdgz3"); + Zo(o, "height", "calc(100% - 10px)"), Vo(o, "class", "svelte-1jxdgz3"), Zo(t, "height", "100%"), Vo(t, "class", "svelte-1jxdgz3"); }, m(a, u) { - s && s.m(a, u), hn(a, e, u), hn(a, t, u), qn(r, t, null), Go(t, n), Go(t, o), i[49](o), c = !0; + s && s.m(a, u), hn(a, e, u), hn(a, t, u), qn(r, t, null), Go(t, n), Go(t, o), i[50](o), c = !0; }, p(a, u) { /*loading_status*/ - a[9] ? s ? (s.p(a, u), u[0] & /*loading_status*/ - 512 && Nr(s, 1)) : (s = Jo(a), s.c(), Nr(s, 1), s.m(e.parentNode, e)) : s && (ym(), li(s, 1, 1, () => { + a[10] ? s ? (s.p(a, u), u[0] & /*loading_status*/ + 1024 && Nr(s, 1)) : (s = Qo(a), s.c(), Nr(s, 1), s.m(e.parentNode, e)) : s && (Sm(), li(s, 1, 1, () => { s = null; - }), gm()); + }), vm()); const p = {}; u[0] & /*show_label*/ - 64 && (p.show_label = /*show_label*/ - a[6]), u[0] & /*label*/ - 2 | u[1] & /*$$scope*/ - 1048576 && (p.$$scope = { dirty: u, ctx: a }), r.$set(p); + 128 && (p.show_label = /*show_label*/ + a[7]), u[0] & /*label*/ + 4 | u[1] & /*$$scope*/ + 2097152 && (p.$$scope = { dirty: u, ctx: a }), r.$set(p); }, i(a) { c || (Nr(s), Nr(r.$$.fragment, a), c = !0); @@ -25376,39 +25377,43 @@ function Am(i) { li(s), li(r.$$.fragment, a), c = !1; }, d(a) { - a && (ii(e), ii(t)), s && s.d(a), Nn(r), i[49](null); + a && (ii(e), ii(t)), s && s.d(a), Nn(r), i[50](null); } }; } -function Tm(i) { +function Mm(i) { let e, t; - return e = new dh({ + return e = new fh({ props: { visible: ( /*visible*/ - i[5] + i[6] ), elem_id: ( /*elem_id*/ - i[3] + i[4] ), scale: ( /*scale*/ - i[7] + i[8] ), min_width: ( /*min_width*/ - i[8] + i[9] + ), + height: ( + /*height*/ + i[1] ), elem_classes: [ .../*elem_classes*/ - i[4], + i[5], /*dark*/ - i[2] ? "dark" : "" + i[3] ? "dark" : "" ], allow_overflow: !1, padding: !0, - $$slots: { default: [Am] }, + $$slots: { default: [Tm] }, $$scope: { ctx: i } } }), { @@ -25424,22 +25429,24 @@ function Tm(i) { p(r, n) { const o = {}; n[0] & /*visible*/ - 32 && (o.visible = /*visible*/ - r[5]), n[0] & /*elem_id*/ - 8 && (o.elem_id = /*elem_id*/ - r[3]), n[0] & /*scale*/ - 128 && (o.scale = /*scale*/ - r[7]), n[0] & /*min_width*/ - 256 && (o.min_width = /*min_width*/ - r[8]), n[0] & /*elem_classes, dark*/ - 20 && (o.elem_classes = [ + 64 && (o.visible = /*visible*/ + r[6]), n[0] & /*elem_id*/ + 16 && (o.elem_id = /*elem_id*/ + r[4]), n[0] & /*scale*/ + 256 && (o.scale = /*scale*/ + r[8]), n[0] & /*min_width*/ + 512 && (o.min_width = /*min_width*/ + r[9]), n[0] & /*height*/ + 2 && (o.height = /*height*/ + r[1]), n[0] & /*elem_classes, dark*/ + 40 && (o.elem_classes = [ .../*elem_classes*/ - r[4], + r[5], /*dark*/ - r[2] ? "dark" : "" + r[3] ? "dark" : "" ]), n[0] & /*termNode, show_label, label, gradio, loading_status*/ - 1603 | n[1] & /*$$scope*/ - 1048576 && (o.$$scope = { dirty: n, ctx: r }), e.$set(o); + 3205 | n[1] & /*$$scope*/ + 2097152 && (o.$$scope = { dirty: n, ctx: r }), e.$set(o); }, i(r) { t || (Nr(e.$$.fragment, r), t = !0); @@ -25452,71 +25459,71 @@ function Tm(i) { } }; } -function Mm(i, e, t) { - let r, { gradio: n } = e, { log_file: o = "" } = e, { label: c = `log of ${o}` } = e, { dark: s = !1 } = e, { elem_id: a = "" } = e, { elem_classes: u = ["terminal-block"] } = e, { visible: p = !0 } = e, { value: f = "" } = e, { show_label: g } = e, { scale: v = null } = e, { min_width: C = void 0 } = e, { loading_status: b = void 0 } = e, { xterm_allow_proposed_api: d } = e, { xterm_allow_transparency: m } = e, { xterm_alt_click_moves_cursor: h } = e, { xterm_convert_eol: l } = e, { xterm_cursor_blink: _ } = e, { xterm_cursor_inactive_style: S } = e, { xterm_cursor_style: x } = e, { xterm_cursor_width: D } = e, { xterm_custom_glyphs: y } = e, { xterm_disable_stdin: E } = e, { xterm_document_override: B } = e, { xterm_draw_bold_text_in_bright_colors: O } = e, { xterm_fast_scroll_modifier: N } = e, { xterm_fast_scroll_sensitivity: R } = e, { xterm_font_family: j } = e, { xterm_font_size: Y } = e, { xterm_font_weight: ee } = e, { xterm_font_weight_bold: ne } = e, { xterm_ignore_bracketed_paste_mode: Z } = e, { xterm_letter_spacing: T } = e, { xterm_line_height: L } = e, { xterm_log_level: I } = e, { xterm_mac_option_click_forces_selection: H } = e, { xterm_mac_option_is_meta: K } = e, { xterm_minimum_contrast_ratio: re } = e, { xterm_overview_ruler_width: V } = e, { xterm_rescale_overlapping_glyphs: ue } = e, { xterm_right_click_selects_word: W } = e, { xterm_screen_reader_mode: F } = e, { xterm_scroll_on_user_input: X } = e, { xterm_scroll_sensitivity: J } = e, { xterm_scrollback: oe } = e, { xterm_smooth_scroll_duration: se } = e, { xterm_tab_stop_width: be } = e, { xterm_windows_mode: xe } = e, De, Re; - Dm(() => { - t(48, De = new dm.Terminal({ +function Bm(i, e, t) { + let r, { gradio: n } = e, { height: o = 240 } = e, { log_file: c = "" } = e, { label: s = `log of ${c}` } = e, { dark: a = !1 } = e, { elem_id: u = "" } = e, { elem_classes: p = ["terminal-block"] } = e, { visible: f = !0 } = e, { value: g = "" } = e, { show_label: v } = e, { scale: C = null } = e, { min_width: b = void 0 } = e, { loading_status: d = void 0 } = e, { xterm_allow_proposed_api: m } = e, { xterm_allow_transparency: h } = e, { xterm_alt_click_moves_cursor: l } = e, { xterm_convert_eol: _ } = e, { xterm_cursor_blink: S } = e, { xterm_cursor_inactive_style: x } = e, { xterm_cursor_style: D } = e, { xterm_cursor_width: y } = e, { xterm_custom_glyphs: E } = e, { xterm_disable_stdin: B } = e, { xterm_document_override: O } = e, { xterm_draw_bold_text_in_bright_colors: N } = e, { xterm_fast_scroll_modifier: R } = e, { xterm_fast_scroll_sensitivity: j } = e, { xterm_font_family: Y } = e, { xterm_font_size: ee } = e, { xterm_font_weight: ne } = e, { xterm_font_weight_bold: Z } = e, { xterm_ignore_bracketed_paste_mode: T } = e, { xterm_letter_spacing: L } = e, { xterm_line_height: I } = e, { xterm_log_level: H } = e, { xterm_mac_option_click_forces_selection: K } = e, { xterm_mac_option_is_meta: re } = e, { xterm_minimum_contrast_ratio: V } = e, { xterm_overview_ruler_width: ue } = e, { xterm_rescale_overlapping_glyphs: W } = e, { xterm_right_click_selects_word: F } = e, { xterm_screen_reader_mode: X } = e, { xterm_scroll_on_user_input: J } = e, { xterm_scroll_sensitivity: oe } = e, { xterm_scrollback: se } = e, { xterm_smooth_scroll_duration: be } = e, { xterm_tab_stop_width: xe } = e, { xterm_windows_mode: De } = e, Te, de; + Em(() => { + t(49, Te = new fm.Terminal({ theme: r, - allowProposedApi: d, - allowTransparency: m, - altClickMovesCursor: h, - convertEol: l, - cursorBlink: _, - cursorInactiveStyle: S, - cursorStyle: x, - cursorWidth: D, - customGlyphs: y, - disableStdin: E, - documentOverride: B, - drawBoldTextInBrightColors: O, - fastScrollModifier: N, - fastScrollSensitivity: R, - fontFamily: j, - fontSize: Y, - fontWeight: ee, - fontWeightBold: ne, - ignoreBracketedPasteMode: Z, - letterSpacing: T, - lineHeight: L, - logLevel: I, - macOptionClickForcesSelection: H, - macOptionIsMeta: K, - minimumContrastRatio: re, - overviewRulerWidth: V, - rescaleOverlappingGlyphs: ue, - rightClickSelectsWord: W, - screenReaderMode: F, - scrollOnUserInput: X, - scrollSensitivity: J, - smoothScrollDuration: se, - tabStopWidth: be, - scrollback: oe, - windowsMode: xe - })), De.open(Re); - const $ = new fm.FitAddon(); - De.loadAddon($), setTimeout( + allowProposedApi: m, + allowTransparency: h, + altClickMovesCursor: l, + convertEol: _, + cursorBlink: S, + cursorInactiveStyle: x, + cursorStyle: D, + cursorWidth: y, + customGlyphs: E, + disableStdin: B, + documentOverride: O, + drawBoldTextInBrightColors: N, + fastScrollModifier: R, + fastScrollSensitivity: j, + fontFamily: Y, + fontSize: ee, + fontWeight: ne, + fontWeightBold: Z, + ignoreBracketedPasteMode: T, + letterSpacing: L, + lineHeight: I, + logLevel: H, + macOptionClickForcesSelection: K, + macOptionIsMeta: re, + minimumContrastRatio: V, + overviewRulerWidth: ue, + rescaleOverlappingGlyphs: W, + rightClickSelectsWord: F, + screenReaderMode: X, + scrollOnUserInput: J, + scrollSensitivity: oe, + smoothScrollDuration: be, + tabStopWidth: xe, + scrollback: se, + windowsMode: De + })), Te.open(de); + const $ = new mm.FitAddon(); + Te.loadAddon($); + const Qt = () => { + $.fit(); + }; + return setTimeout( () => { $.fit(); }, 300 - ); - const Ye = () => { - $.fit(); - }; - return window.addEventListener("resize", Ye), () => { - window.removeEventListener("resize", Ye); + ), window.addEventListener("resize", Qt), () => { + window.removeEventListener("resize", Qt); }; }); - function fe($) { - _m[$ ? "unshift" : "push"](() => { - Re = $, t(10, Re); + function Ve($) { + gm[$ ? "unshift" : "push"](() => { + de = $, t(11, de); }); } return i.$$set = ($) => { - "gradio" in $ && t(0, n = $.gradio), "log_file" in $ && t(11, o = $.log_file), "label" in $ && t(1, c = $.label), "dark" in $ && t(2, s = $.dark), "elem_id" in $ && t(3, a = $.elem_id), "elem_classes" in $ && t(4, u = $.elem_classes), "visible" in $ && t(5, p = $.visible), "value" in $ && t(12, f = $.value), "show_label" in $ && t(6, g = $.show_label), "scale" in $ && t(7, v = $.scale), "min_width" in $ && t(8, C = $.min_width), "loading_status" in $ && t(9, b = $.loading_status), "xterm_allow_proposed_api" in $ && t(13, d = $.xterm_allow_proposed_api), "xterm_allow_transparency" in $ && t(14, m = $.xterm_allow_transparency), "xterm_alt_click_moves_cursor" in $ && t(15, h = $.xterm_alt_click_moves_cursor), "xterm_convert_eol" in $ && t(16, l = $.xterm_convert_eol), "xterm_cursor_blink" in $ && t(17, _ = $.xterm_cursor_blink), "xterm_cursor_inactive_style" in $ && t(18, S = $.xterm_cursor_inactive_style), "xterm_cursor_style" in $ && t(19, x = $.xterm_cursor_style), "xterm_cursor_width" in $ && t(20, D = $.xterm_cursor_width), "xterm_custom_glyphs" in $ && t(21, y = $.xterm_custom_glyphs), "xterm_disable_stdin" in $ && t(22, E = $.xterm_disable_stdin), "xterm_document_override" in $ && t(23, B = $.xterm_document_override), "xterm_draw_bold_text_in_bright_colors" in $ && t(24, O = $.xterm_draw_bold_text_in_bright_colors), "xterm_fast_scroll_modifier" in $ && t(25, N = $.xterm_fast_scroll_modifier), "xterm_fast_scroll_sensitivity" in $ && t(26, R = $.xterm_fast_scroll_sensitivity), "xterm_font_family" in $ && t(27, j = $.xterm_font_family), "xterm_font_size" in $ && t(28, Y = $.xterm_font_size), "xterm_font_weight" in $ && t(29, ee = $.xterm_font_weight), "xterm_font_weight_bold" in $ && t(30, ne = $.xterm_font_weight_bold), "xterm_ignore_bracketed_paste_mode" in $ && t(31, Z = $.xterm_ignore_bracketed_paste_mode), "xterm_letter_spacing" in $ && t(32, T = $.xterm_letter_spacing), "xterm_line_height" in $ && t(33, L = $.xterm_line_height), "xterm_log_level" in $ && t(34, I = $.xterm_log_level), "xterm_mac_option_click_forces_selection" in $ && t(35, H = $.xterm_mac_option_click_forces_selection), "xterm_mac_option_is_meta" in $ && t(36, K = $.xterm_mac_option_is_meta), "xterm_minimum_contrast_ratio" in $ && t(37, re = $.xterm_minimum_contrast_ratio), "xterm_overview_ruler_width" in $ && t(38, V = $.xterm_overview_ruler_width), "xterm_rescale_overlapping_glyphs" in $ && t(39, ue = $.xterm_rescale_overlapping_glyphs), "xterm_right_click_selects_word" in $ && t(40, W = $.xterm_right_click_selects_word), "xterm_screen_reader_mode" in $ && t(41, F = $.xterm_screen_reader_mode), "xterm_scroll_on_user_input" in $ && t(42, X = $.xterm_scroll_on_user_input), "xterm_scroll_sensitivity" in $ && t(43, J = $.xterm_scroll_sensitivity), "xterm_scrollback" in $ && t(44, oe = $.xterm_scrollback), "xterm_smooth_scroll_duration" in $ && t(45, se = $.xterm_smooth_scroll_duration), "xterm_tab_stop_width" in $ && t(46, be = $.xterm_tab_stop_width), "xterm_windows_mode" in $ && t(47, xe = $.xterm_windows_mode); + "gradio" in $ && t(0, n = $.gradio), "height" in $ && t(1, o = $.height), "log_file" in $ && t(12, c = $.log_file), "label" in $ && t(2, s = $.label), "dark" in $ && t(3, a = $.dark), "elem_id" in $ && t(4, u = $.elem_id), "elem_classes" in $ && t(5, p = $.elem_classes), "visible" in $ && t(6, f = $.visible), "value" in $ && t(13, g = $.value), "show_label" in $ && t(7, v = $.show_label), "scale" in $ && t(8, C = $.scale), "min_width" in $ && t(9, b = $.min_width), "loading_status" in $ && t(10, d = $.loading_status), "xterm_allow_proposed_api" in $ && t(14, m = $.xterm_allow_proposed_api), "xterm_allow_transparency" in $ && t(15, h = $.xterm_allow_transparency), "xterm_alt_click_moves_cursor" in $ && t(16, l = $.xterm_alt_click_moves_cursor), "xterm_convert_eol" in $ && t(17, _ = $.xterm_convert_eol), "xterm_cursor_blink" in $ && t(18, S = $.xterm_cursor_blink), "xterm_cursor_inactive_style" in $ && t(19, x = $.xterm_cursor_inactive_style), "xterm_cursor_style" in $ && t(20, D = $.xterm_cursor_style), "xterm_cursor_width" in $ && t(21, y = $.xterm_cursor_width), "xterm_custom_glyphs" in $ && t(22, E = $.xterm_custom_glyphs), "xterm_disable_stdin" in $ && t(23, B = $.xterm_disable_stdin), "xterm_document_override" in $ && t(24, O = $.xterm_document_override), "xterm_draw_bold_text_in_bright_colors" in $ && t(25, N = $.xterm_draw_bold_text_in_bright_colors), "xterm_fast_scroll_modifier" in $ && t(26, R = $.xterm_fast_scroll_modifier), "xterm_fast_scroll_sensitivity" in $ && t(27, j = $.xterm_fast_scroll_sensitivity), "xterm_font_family" in $ && t(28, Y = $.xterm_font_family), "xterm_font_size" in $ && t(29, ee = $.xterm_font_size), "xterm_font_weight" in $ && t(30, ne = $.xterm_font_weight), "xterm_font_weight_bold" in $ && t(31, Z = $.xterm_font_weight_bold), "xterm_ignore_bracketed_paste_mode" in $ && t(32, T = $.xterm_ignore_bracketed_paste_mode), "xterm_letter_spacing" in $ && t(33, L = $.xterm_letter_spacing), "xterm_line_height" in $ && t(34, I = $.xterm_line_height), "xterm_log_level" in $ && t(35, H = $.xterm_log_level), "xterm_mac_option_click_forces_selection" in $ && t(36, K = $.xterm_mac_option_click_forces_selection), "xterm_mac_option_is_meta" in $ && t(37, re = $.xterm_mac_option_is_meta), "xterm_minimum_contrast_ratio" in $ && t(38, V = $.xterm_minimum_contrast_ratio), "xterm_overview_ruler_width" in $ && t(39, ue = $.xterm_overview_ruler_width), "xterm_rescale_overlapping_glyphs" in $ && t(40, W = $.xterm_rescale_overlapping_glyphs), "xterm_right_click_selects_word" in $ && t(41, F = $.xterm_right_click_selects_word), "xterm_screen_reader_mode" in $ && t(42, X = $.xterm_screen_reader_mode), "xterm_scroll_on_user_input" in $ && t(43, J = $.xterm_scroll_on_user_input), "xterm_scroll_sensitivity" in $ && t(44, oe = $.xterm_scroll_sensitivity), "xterm_scrollback" in $ && t(45, se = $.xterm_scrollback), "xterm_smooth_scroll_duration" in $ && t(46, be = $.xterm_smooth_scroll_duration), "xterm_tab_stop_width" in $ && t(47, xe = $.xterm_tab_stop_width), "xterm_windows_mode" in $ && t(48, De = $.xterm_windows_mode); }, i.$$.update = () => { i.$$.dirty[0] & /*dark*/ - 4 && (r = s ? { + 8 && (r = a ? { foreground: "white", background: "#1F2937" } : { @@ -25524,24 +25531,24 @@ function Mm(i, e, t) { background: "white", selectionBackground: "#e5e7eb" }), i.$$.dirty[0] & /*value*/ - 4096 | i.$$.dirty[1] & /*term*/ - 131072 && De && f && f.trim() !== "" && De.write(f.replace(/\n/g, ` + 8192 | i.$$.dirty[1] & /*term*/ + 262144 && Te && g && g.trim() !== "" && Te.write(g.replace(/\n/g, ` \r`)); }, [ n, - c, + o, s, a, u, p, - g, + f, v, C, b, - Re, - o, - f, d, + de, + c, + g, m, h, l, @@ -25577,65 +25584,67 @@ function Mm(i, e, t) { be, xe, De, - fe + Te, + Ve ]; } -class Bm extends mm { +class Fm extends pm { constructor(e) { - super(), Sm( + super(), Cm( this, e, + Bm, Mm, - Tm, - Cm, + xm, { gradio: 0, - log_file: 11, - label: 1, - dark: 2, - elem_id: 3, - elem_classes: 4, - visible: 5, - value: 12, - show_label: 6, - scale: 7, - min_width: 8, - loading_status: 9, - xterm_allow_proposed_api: 13, - xterm_allow_transparency: 14, - xterm_alt_click_moves_cursor: 15, - xterm_convert_eol: 16, - xterm_cursor_blink: 17, - xterm_cursor_inactive_style: 18, - xterm_cursor_style: 19, - xterm_cursor_width: 20, - xterm_custom_glyphs: 21, - xterm_disable_stdin: 22, - xterm_document_override: 23, - xterm_draw_bold_text_in_bright_colors: 24, - xterm_fast_scroll_modifier: 25, - xterm_fast_scroll_sensitivity: 26, - xterm_font_family: 27, - xterm_font_size: 28, - xterm_font_weight: 29, - xterm_font_weight_bold: 30, - xterm_ignore_bracketed_paste_mode: 31, - xterm_letter_spacing: 32, - xterm_line_height: 33, - xterm_log_level: 34, - xterm_mac_option_click_forces_selection: 35, - xterm_mac_option_is_meta: 36, - xterm_minimum_contrast_ratio: 37, - xterm_overview_ruler_width: 38, - xterm_rescale_overlapping_glyphs: 39, - xterm_right_click_selects_word: 40, - xterm_screen_reader_mode: 41, - xterm_scroll_on_user_input: 42, - xterm_scroll_sensitivity: 43, - xterm_scrollback: 44, - xterm_smooth_scroll_duration: 45, - xterm_tab_stop_width: 46, - xterm_windows_mode: 47 + height: 1, + log_file: 12, + label: 2, + dark: 3, + elem_id: 4, + elem_classes: 5, + visible: 6, + value: 13, + show_label: 7, + scale: 8, + min_width: 9, + loading_status: 10, + xterm_allow_proposed_api: 14, + xterm_allow_transparency: 15, + xterm_alt_click_moves_cursor: 16, + xterm_convert_eol: 17, + xterm_cursor_blink: 18, + xterm_cursor_inactive_style: 19, + xterm_cursor_style: 20, + xterm_cursor_width: 21, + xterm_custom_glyphs: 22, + xterm_disable_stdin: 23, + xterm_document_override: 24, + xterm_draw_bold_text_in_bright_colors: 25, + xterm_fast_scroll_modifier: 26, + xterm_fast_scroll_sensitivity: 27, + xterm_font_family: 28, + xterm_font_size: 29, + xterm_font_weight: 30, + xterm_font_weight_bold: 31, + xterm_ignore_bracketed_paste_mode: 32, + xterm_letter_spacing: 33, + xterm_line_height: 34, + xterm_log_level: 35, + xterm_mac_option_click_forces_selection: 36, + xterm_mac_option_is_meta: 37, + xterm_minimum_contrast_ratio: 38, + xterm_overview_ruler_width: 39, + xterm_rescale_overlapping_glyphs: 40, + xterm_right_click_selects_word: 41, + xterm_screen_reader_mode: 42, + xterm_scroll_on_user_input: 43, + xterm_scroll_sensitivity: 44, + xterm_scrollback: 45, + xterm_smooth_scroll_duration: 46, + xterm_tab_stop_width: 47, + xterm_windows_mode: 48 }, null, [-1, -1] @@ -25645,285 +25654,291 @@ class Bm extends mm { return this.$$.ctx[0]; } set gradio(e) { - this.$$set({ gradio: e }), ye(); + this.$$set({ gradio: e }), we(); + } + get height() { + return this.$$.ctx[1]; + } + set height(e) { + this.$$set({ height: e }), we(); } get log_file() { - return this.$$.ctx[11]; + return this.$$.ctx[12]; } set log_file(e) { - this.$$set({ log_file: e }), ye(); + this.$$set({ log_file: e }), we(); } get label() { - return this.$$.ctx[1]; + return this.$$.ctx[2]; } set label(e) { - this.$$set({ label: e }), ye(); + this.$$set({ label: e }), we(); } get dark() { - return this.$$.ctx[2]; + return this.$$.ctx[3]; } set dark(e) { - this.$$set({ dark: e }), ye(); + this.$$set({ dark: e }), we(); } get elem_id() { - return this.$$.ctx[3]; + return this.$$.ctx[4]; } set elem_id(e) { - this.$$set({ elem_id: e }), ye(); + this.$$set({ elem_id: e }), we(); } get elem_classes() { - return this.$$.ctx[4]; + return this.$$.ctx[5]; } set elem_classes(e) { - this.$$set({ elem_classes: e }), ye(); + this.$$set({ elem_classes: e }), we(); } get visible() { - return this.$$.ctx[5]; + return this.$$.ctx[6]; } set visible(e) { - this.$$set({ visible: e }), ye(); + this.$$set({ visible: e }), we(); } get value() { - return this.$$.ctx[12]; + return this.$$.ctx[13]; } set value(e) { - this.$$set({ value: e }), ye(); + this.$$set({ value: e }), we(); } get show_label() { - return this.$$.ctx[6]; + return this.$$.ctx[7]; } set show_label(e) { - this.$$set({ show_label: e }), ye(); + this.$$set({ show_label: e }), we(); } get scale() { - return this.$$.ctx[7]; + return this.$$.ctx[8]; } set scale(e) { - this.$$set({ scale: e }), ye(); + this.$$set({ scale: e }), we(); } get min_width() { - return this.$$.ctx[8]; + return this.$$.ctx[9]; } set min_width(e) { - this.$$set({ min_width: e }), ye(); + this.$$set({ min_width: e }), we(); } get loading_status() { - return this.$$.ctx[9]; + return this.$$.ctx[10]; } set loading_status(e) { - this.$$set({ loading_status: e }), ye(); + this.$$set({ loading_status: e }), we(); } get xterm_allow_proposed_api() { - return this.$$.ctx[13]; + return this.$$.ctx[14]; } set xterm_allow_proposed_api(e) { - this.$$set({ xterm_allow_proposed_api: e }), ye(); + this.$$set({ xterm_allow_proposed_api: e }), we(); } get xterm_allow_transparency() { - return this.$$.ctx[14]; + return this.$$.ctx[15]; } set xterm_allow_transparency(e) { - this.$$set({ xterm_allow_transparency: e }), ye(); + this.$$set({ xterm_allow_transparency: e }), we(); } get xterm_alt_click_moves_cursor() { - return this.$$.ctx[15]; + return this.$$.ctx[16]; } set xterm_alt_click_moves_cursor(e) { - this.$$set({ xterm_alt_click_moves_cursor: e }), ye(); + this.$$set({ xterm_alt_click_moves_cursor: e }), we(); } get xterm_convert_eol() { - return this.$$.ctx[16]; + return this.$$.ctx[17]; } set xterm_convert_eol(e) { - this.$$set({ xterm_convert_eol: e }), ye(); + this.$$set({ xterm_convert_eol: e }), we(); } get xterm_cursor_blink() { - return this.$$.ctx[17]; + return this.$$.ctx[18]; } set xterm_cursor_blink(e) { - this.$$set({ xterm_cursor_blink: e }), ye(); + this.$$set({ xterm_cursor_blink: e }), we(); } get xterm_cursor_inactive_style() { - return this.$$.ctx[18]; + return this.$$.ctx[19]; } set xterm_cursor_inactive_style(e) { - this.$$set({ xterm_cursor_inactive_style: e }), ye(); + this.$$set({ xterm_cursor_inactive_style: e }), we(); } get xterm_cursor_style() { - return this.$$.ctx[19]; + return this.$$.ctx[20]; } set xterm_cursor_style(e) { - this.$$set({ xterm_cursor_style: e }), ye(); + this.$$set({ xterm_cursor_style: e }), we(); } get xterm_cursor_width() { - return this.$$.ctx[20]; + return this.$$.ctx[21]; } set xterm_cursor_width(e) { - this.$$set({ xterm_cursor_width: e }), ye(); + this.$$set({ xterm_cursor_width: e }), we(); } get xterm_custom_glyphs() { - return this.$$.ctx[21]; + return this.$$.ctx[22]; } set xterm_custom_glyphs(e) { - this.$$set({ xterm_custom_glyphs: e }), ye(); + this.$$set({ xterm_custom_glyphs: e }), we(); } get xterm_disable_stdin() { - return this.$$.ctx[22]; + return this.$$.ctx[23]; } set xterm_disable_stdin(e) { - this.$$set({ xterm_disable_stdin: e }), ye(); + this.$$set({ xterm_disable_stdin: e }), we(); } get xterm_document_override() { - return this.$$.ctx[23]; + return this.$$.ctx[24]; } set xterm_document_override(e) { - this.$$set({ xterm_document_override: e }), ye(); + this.$$set({ xterm_document_override: e }), we(); } get xterm_draw_bold_text_in_bright_colors() { - return this.$$.ctx[24]; + return this.$$.ctx[25]; } set xterm_draw_bold_text_in_bright_colors(e) { - this.$$set({ xterm_draw_bold_text_in_bright_colors: e }), ye(); + this.$$set({ xterm_draw_bold_text_in_bright_colors: e }), we(); } get xterm_fast_scroll_modifier() { - return this.$$.ctx[25]; + return this.$$.ctx[26]; } set xterm_fast_scroll_modifier(e) { - this.$$set({ xterm_fast_scroll_modifier: e }), ye(); + this.$$set({ xterm_fast_scroll_modifier: e }), we(); } get xterm_fast_scroll_sensitivity() { - return this.$$.ctx[26]; + return this.$$.ctx[27]; } set xterm_fast_scroll_sensitivity(e) { - this.$$set({ xterm_fast_scroll_sensitivity: e }), ye(); + this.$$set({ xterm_fast_scroll_sensitivity: e }), we(); } get xterm_font_family() { - return this.$$.ctx[27]; + return this.$$.ctx[28]; } set xterm_font_family(e) { - this.$$set({ xterm_font_family: e }), ye(); + this.$$set({ xterm_font_family: e }), we(); } get xterm_font_size() { - return this.$$.ctx[28]; + return this.$$.ctx[29]; } set xterm_font_size(e) { - this.$$set({ xterm_font_size: e }), ye(); + this.$$set({ xterm_font_size: e }), we(); } get xterm_font_weight() { - return this.$$.ctx[29]; + return this.$$.ctx[30]; } set xterm_font_weight(e) { - this.$$set({ xterm_font_weight: e }), ye(); + this.$$set({ xterm_font_weight: e }), we(); } get xterm_font_weight_bold() { - return this.$$.ctx[30]; + return this.$$.ctx[31]; } set xterm_font_weight_bold(e) { - this.$$set({ xterm_font_weight_bold: e }), ye(); + this.$$set({ xterm_font_weight_bold: e }), we(); } get xterm_ignore_bracketed_paste_mode() { - return this.$$.ctx[31]; + return this.$$.ctx[32]; } set xterm_ignore_bracketed_paste_mode(e) { - this.$$set({ xterm_ignore_bracketed_paste_mode: e }), ye(); + this.$$set({ xterm_ignore_bracketed_paste_mode: e }), we(); } get xterm_letter_spacing() { - return this.$$.ctx[32]; + return this.$$.ctx[33]; } set xterm_letter_spacing(e) { - this.$$set({ xterm_letter_spacing: e }), ye(); + this.$$set({ xterm_letter_spacing: e }), we(); } get xterm_line_height() { - return this.$$.ctx[33]; + return this.$$.ctx[34]; } set xterm_line_height(e) { - this.$$set({ xterm_line_height: e }), ye(); + this.$$set({ xterm_line_height: e }), we(); } get xterm_log_level() { - return this.$$.ctx[34]; + return this.$$.ctx[35]; } set xterm_log_level(e) { - this.$$set({ xterm_log_level: e }), ye(); + this.$$set({ xterm_log_level: e }), we(); } get xterm_mac_option_click_forces_selection() { - return this.$$.ctx[35]; + return this.$$.ctx[36]; } set xterm_mac_option_click_forces_selection(e) { - this.$$set({ xterm_mac_option_click_forces_selection: e }), ye(); + this.$$set({ xterm_mac_option_click_forces_selection: e }), we(); } get xterm_mac_option_is_meta() { - return this.$$.ctx[36]; + return this.$$.ctx[37]; } set xterm_mac_option_is_meta(e) { - this.$$set({ xterm_mac_option_is_meta: e }), ye(); + this.$$set({ xterm_mac_option_is_meta: e }), we(); } get xterm_minimum_contrast_ratio() { - return this.$$.ctx[37]; + return this.$$.ctx[38]; } set xterm_minimum_contrast_ratio(e) { - this.$$set({ xterm_minimum_contrast_ratio: e }), ye(); + this.$$set({ xterm_minimum_contrast_ratio: e }), we(); } get xterm_overview_ruler_width() { - return this.$$.ctx[38]; + return this.$$.ctx[39]; } set xterm_overview_ruler_width(e) { - this.$$set({ xterm_overview_ruler_width: e }), ye(); + this.$$set({ xterm_overview_ruler_width: e }), we(); } get xterm_rescale_overlapping_glyphs() { - return this.$$.ctx[39]; + return this.$$.ctx[40]; } set xterm_rescale_overlapping_glyphs(e) { - this.$$set({ xterm_rescale_overlapping_glyphs: e }), ye(); + this.$$set({ xterm_rescale_overlapping_glyphs: e }), we(); } get xterm_right_click_selects_word() { - return this.$$.ctx[40]; + return this.$$.ctx[41]; } set xterm_right_click_selects_word(e) { - this.$$set({ xterm_right_click_selects_word: e }), ye(); + this.$$set({ xterm_right_click_selects_word: e }), we(); } get xterm_screen_reader_mode() { - return this.$$.ctx[41]; + return this.$$.ctx[42]; } set xterm_screen_reader_mode(e) { - this.$$set({ xterm_screen_reader_mode: e }), ye(); + this.$$set({ xterm_screen_reader_mode: e }), we(); } get xterm_scroll_on_user_input() { - return this.$$.ctx[42]; + return this.$$.ctx[43]; } set xterm_scroll_on_user_input(e) { - this.$$set({ xterm_scroll_on_user_input: e }), ye(); + this.$$set({ xterm_scroll_on_user_input: e }), we(); } get xterm_scroll_sensitivity() { - return this.$$.ctx[43]; + return this.$$.ctx[44]; } set xterm_scroll_sensitivity(e) { - this.$$set({ xterm_scroll_sensitivity: e }), ye(); + this.$$set({ xterm_scroll_sensitivity: e }), we(); } get xterm_scrollback() { - return this.$$.ctx[44]; + return this.$$.ctx[45]; } set xterm_scrollback(e) { - this.$$set({ xterm_scrollback: e }), ye(); + this.$$set({ xterm_scrollback: e }), we(); } get xterm_smooth_scroll_duration() { - return this.$$.ctx[45]; + return this.$$.ctx[46]; } set xterm_smooth_scroll_duration(e) { - this.$$set({ xterm_smooth_scroll_duration: e }), ye(); + this.$$set({ xterm_smooth_scroll_duration: e }), we(); } get xterm_tab_stop_width() { - return this.$$.ctx[46]; + return this.$$.ctx[47]; } set xterm_tab_stop_width(e) { - this.$$set({ xterm_tab_stop_width: e }), ye(); + this.$$set({ xterm_tab_stop_width: e }), we(); } get xterm_windows_mode() { - return this.$$.ctx[47]; + return this.$$.ctx[48]; } set xterm_windows_mode(e) { - this.$$set({ xterm_windows_mode: e }), ye(); + this.$$set({ xterm_windows_mode: e }), we(); } } export { - Bm as default + Fm as default };