gradio-checkboxgroupmarkdown 0.0.4__py3-none-any.whl → 0.0.6__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- gradio_checkboxgroupmarkdown/templates/component/index.js +153 -153
- {gradio_checkboxgroupmarkdown-0.0.4.dist-info → gradio_checkboxgroupmarkdown-0.0.6.dist-info}/METADATA +137 -185
- {gradio_checkboxgroupmarkdown-0.0.4.dist-info → gradio_checkboxgroupmarkdown-0.0.6.dist-info}/RECORD +4 -4
- {gradio_checkboxgroupmarkdown-0.0.4.dist-info → gradio_checkboxgroupmarkdown-0.0.6.dist-info}/WHEEL +0 -0
@@ -3744,7 +3744,7 @@ var Pa = {
|
|
3744
3744
|
mu: !0
|
3745
3745
|
}, Mo = function(e) {
|
3746
3746
|
return typeof e != "string" && (e = e.unit), e in Pa || e in zc || e === "ex";
|
3747
|
-
},
|
3747
|
+
}, ke = function(e, t) {
|
3748
3748
|
var r;
|
3749
3749
|
if (e.unit in Pa)
|
3750
3750
|
r = Pa[e.unit] / t.fontMetrics().ptPerEm / t.sizeMultiplier;
|
@@ -4614,8 +4614,8 @@ u(h, m, K, "h", "ℎ");
|
|
4614
4614
|
u(N, m, K, "h", "ℎ");
|
4615
4615
|
var J = "";
|
4616
4616
|
for (var He = 0; He < xn.length; He++) {
|
4617
|
-
var
|
4618
|
-
J = String.fromCharCode(55349, 56320 + He), u(h, m, K,
|
4617
|
+
var xe = xn.charAt(He);
|
4618
|
+
J = String.fromCharCode(55349, 56320 + He), u(h, m, K, xe, J), u(N, m, x, xe, J), J = String.fromCharCode(55349, 56372 + He), u(h, m, K, xe, J), u(N, m, x, xe, J), J = String.fromCharCode(55349, 56424 + He), u(h, m, K, xe, J), u(N, m, x, xe, J), J = String.fromCharCode(55349, 56580 + He), u(h, m, K, xe, J), u(N, m, x, xe, J), J = String.fromCharCode(55349, 56684 + He), u(h, m, K, xe, J), u(N, m, x, xe, J), J = String.fromCharCode(55349, 56736 + He), u(h, m, K, xe, J), u(N, m, x, xe, J), J = String.fromCharCode(55349, 56788 + He), u(h, m, K, xe, J), u(N, m, x, xe, J), J = String.fromCharCode(55349, 56840 + He), u(h, m, K, xe, J), u(N, m, x, xe, J), J = String.fromCharCode(55349, 56944 + He), u(h, m, K, xe, J), u(N, m, x, xe, J), He < 26 && (J = String.fromCharCode(55349, 56632 + He), u(h, m, K, xe, J), u(N, m, x, xe, J), J = String.fromCharCode(55349, 56476 + He), u(h, m, K, xe, J), u(N, m, x, xe, J));
|
4619
4619
|
}
|
4620
4620
|
J = "𝕜";
|
4621
4621
|
u(h, m, K, "k", J);
|
@@ -4891,7 +4891,7 @@ var Wr = [
|
|
4891
4891
|
var R = Qe(["vlist-t"], T);
|
4892
4892
|
return T.length === 2 && R.classes.push("vlist-t2"), R.height = g, R.depth = -d, R;
|
4893
4893
|
}, Zc = (n, e) => {
|
4894
|
-
var t = Qe(["mspace"], [], e), r =
|
4894
|
+
var t = Qe(["mspace"], [], e), r = ke(n, e);
|
4895
4895
|
return t.style.marginRight = P(r), t;
|
4896
4896
|
}, Xr = function(e, t, r) {
|
4897
4897
|
var a = "";
|
@@ -5002,7 +5002,7 @@ var Wr = [
|
|
5002
5002
|
staticSvg: Kc,
|
5003
5003
|
svgData: qo,
|
5004
5004
|
tryCombineChars: Gc
|
5005
|
-
},
|
5005
|
+
}, ye = {
|
5006
5006
|
number: 3,
|
5007
5007
|
unit: "mu"
|
5008
5008
|
}, F0 = {
|
@@ -5013,16 +5013,16 @@ var Wr = [
|
|
5013
5013
|
unit: "mu"
|
5014
5014
|
}, Qc = {
|
5015
5015
|
mord: {
|
5016
|
-
mop:
|
5016
|
+
mop: ye,
|
5017
5017
|
mbin: F0,
|
5018
5018
|
mrel: n0,
|
5019
|
-
minner:
|
5019
|
+
minner: ye
|
5020
5020
|
},
|
5021
5021
|
mop: {
|
5022
|
-
mord:
|
5023
|
-
mop:
|
5022
|
+
mord: ye,
|
5023
|
+
mop: ye,
|
5024
5024
|
mrel: n0,
|
5025
|
-
minner:
|
5025
|
+
minner: ye
|
5026
5026
|
},
|
5027
5027
|
mbin: {
|
5028
5028
|
mord: F0,
|
@@ -5038,46 +5038,46 @@ var Wr = [
|
|
5038
5038
|
},
|
5039
5039
|
mopen: {},
|
5040
5040
|
mclose: {
|
5041
|
-
mop:
|
5041
|
+
mop: ye,
|
5042
5042
|
mbin: F0,
|
5043
5043
|
mrel: n0,
|
5044
|
-
minner:
|
5044
|
+
minner: ye
|
5045
5045
|
},
|
5046
5046
|
mpunct: {
|
5047
|
-
mord:
|
5048
|
-
mop:
|
5047
|
+
mord: ye,
|
5048
|
+
mop: ye,
|
5049
5049
|
mrel: n0,
|
5050
|
-
mopen:
|
5051
|
-
mclose:
|
5052
|
-
mpunct:
|
5053
|
-
minner:
|
5050
|
+
mopen: ye,
|
5051
|
+
mclose: ye,
|
5052
|
+
mpunct: ye,
|
5053
|
+
minner: ye
|
5054
5054
|
},
|
5055
5055
|
minner: {
|
5056
|
-
mord:
|
5057
|
-
mop:
|
5056
|
+
mord: ye,
|
5057
|
+
mop: ye,
|
5058
5058
|
mbin: F0,
|
5059
5059
|
mrel: n0,
|
5060
|
-
mopen:
|
5061
|
-
mpunct:
|
5062
|
-
minner:
|
5060
|
+
mopen: ye,
|
5061
|
+
mpunct: ye,
|
5062
|
+
minner: ye
|
5063
5063
|
}
|
5064
5064
|
}, Jc = {
|
5065
5065
|
mord: {
|
5066
|
-
mop:
|
5066
|
+
mop: ye
|
5067
5067
|
},
|
5068
5068
|
mop: {
|
5069
|
-
mord:
|
5070
|
-
mop:
|
5069
|
+
mord: ye,
|
5070
|
+
mop: ye
|
5071
5071
|
},
|
5072
5072
|
mbin: {},
|
5073
5073
|
mrel: {},
|
5074
5074
|
mopen: {},
|
5075
5075
|
mclose: {
|
5076
|
-
mop:
|
5076
|
+
mop: ye
|
5077
5077
|
},
|
5078
5078
|
mpunct: {},
|
5079
5079
|
minner: {
|
5080
|
-
mop:
|
5080
|
+
mop: ye
|
5081
5081
|
}
|
5082
5082
|
}, Po = {}, An = {}, Sn = {};
|
5083
5083
|
function G(n) {
|
@@ -5124,7 +5124,7 @@ function q0(n) {
|
|
5124
5124
|
}
|
5125
5125
|
var En = function(e) {
|
5126
5126
|
return e.type === "ordgroup" && e.body.length === 1 ? e.body[0] : e;
|
5127
|
-
},
|
5127
|
+
}, Se = function(e) {
|
5128
5128
|
return e.type === "ordgroup" ? e.body : [e];
|
5129
5129
|
}, f0 = C.makeSpan, $c = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], e4 = ["rightmost", "mrel", "mclose", "mpunct"], t4 = {
|
5130
5130
|
display: Q.DISPLAY,
|
@@ -5985,7 +5985,7 @@ G({
|
|
5985
5985
|
mode: t.mode,
|
5986
5986
|
mclass: "m" + r.slice(5),
|
5987
5987
|
// TODO(kevinb): don't prefix with 'm'
|
5988
|
-
body:
|
5988
|
+
body: Se(a),
|
5989
5989
|
isCharacterBox: j.isCharacterBox(a)
|
5990
5990
|
};
|
5991
5991
|
},
|
@@ -6010,7 +6010,7 @@ G({
|
|
6010
6010
|
type: "mclass",
|
6011
6011
|
mode: t.mode,
|
6012
6012
|
mclass: On(e[0]),
|
6013
|
-
body:
|
6013
|
+
body: Se(e[1]),
|
6014
6014
|
isCharacterBox: j.isCharacterBox(e[1])
|
6015
6015
|
};
|
6016
6016
|
}
|
@@ -6035,7 +6035,7 @@ G({
|
|
6035
6035
|
parentIsSupSub: !1,
|
6036
6036
|
symbol: !1,
|
6037
6037
|
suppressBaseShift: r !== "\\stackrel",
|
6038
|
-
body:
|
6038
|
+
body: Se(a)
|
6039
6039
|
}, o = {
|
6040
6040
|
type: "supsub",
|
6041
6041
|
mode: i.mode,
|
@@ -6069,7 +6069,7 @@ G({
|
|
6069
6069
|
type: "pmb",
|
6070
6070
|
mode: t.mode,
|
6071
6071
|
mclass: On(e[0]),
|
6072
|
-
body:
|
6072
|
+
body: Se(e[0])
|
6073
6073
|
};
|
6074
6074
|
},
|
6075
6075
|
htmlBuilder(n, e) {
|
@@ -6309,7 +6309,7 @@ G({
|
|
6309
6309
|
type: "color",
|
6310
6310
|
mode: t.mode,
|
6311
6311
|
color: r,
|
6312
|
-
body:
|
6312
|
+
body: Se(a)
|
6313
6313
|
};
|
6314
6314
|
},
|
6315
6315
|
htmlBuilder: jo,
|
@@ -6363,11 +6363,11 @@ G({
|
|
6363
6363
|
// not within tabular/array environments.
|
6364
6364
|
htmlBuilder(n, e) {
|
6365
6365
|
var t = C.makeSpan(["mspace"], [], e);
|
6366
|
-
return n.newLine && (t.classes.push("newline"), n.size && (t.style.marginTop = P(
|
6366
|
+
return n.newLine && (t.classes.push("newline"), n.size && (t.style.marginTop = P(ke(n.size, e)))), t;
|
6367
6367
|
},
|
6368
6368
|
mathmlBuilder(n, e) {
|
6369
6369
|
var t = new I.MathNode("mspace");
|
6370
|
-
return n.newLine && (t.setAttribute("linebreak", "newline"), n.size && t.setAttribute("height", P(
|
6370
|
+
return n.newLine && (t.setAttribute("linebreak", "newline"), n.size && t.setAttribute("height", P(ke(n.size, e)))), t;
|
6371
6371
|
}
|
6372
6372
|
});
|
6373
6373
|
var Wa = {
|
@@ -6570,14 +6570,14 @@ var br = function(e, t, r) {
|
|
6570
6570
|
r && (B *= a.sizeMultiplier);
|
6571
6571
|
var X = R / 2 - B, $ = [];
|
6572
6572
|
if (d.length > 0) {
|
6573
|
-
var Te = R - k - b, se = Math.round(R * 1e3), U = Fc(d, Math.round(Te * 1e3)), le = new x0(d, U),
|
6574
|
-
width:
|
6573
|
+
var Te = R - k - b, se = Math.round(R * 1e3), U = Fc(d, Math.round(Te * 1e3)), le = new x0(d, U), be = (g / 1e3).toFixed(3) + "em", ue = (se / 1e3).toFixed(3) + "em", Ce = new h0([le], {
|
6574
|
+
width: be,
|
6575
6575
|
height: ue,
|
6576
6576
|
viewBox: "0 0 " + g + " " + se
|
6577
|
-
}),
|
6578
|
-
|
6577
|
+
}), Ae = C.makeSvgSpan([], [Ce], a);
|
6578
|
+
Ae.height = se / 1e3, Ae.style.width = be, Ae.style.height = ue, $.push({
|
6579
6579
|
type: "elem",
|
6580
|
-
elem:
|
6580
|
+
elem: Ae
|
6581
6581
|
});
|
6582
6582
|
} else {
|
6583
6583
|
if ($.push(sa(f, v, i)), $.push(Zr), o === null) {
|
@@ -6942,10 +6942,10 @@ var yi = (n, e) => {
|
|
6942
6942
|
if (r === "sout")
|
6943
6943
|
i = C.makeSpan(["stretchy", "sout"]), i.height = e.fontMetrics().defaultRuleThickness / a, l = -0.5 * e.fontMetrics().xHeight;
|
6944
6944
|
else if (r === "phase") {
|
6945
|
-
var o =
|
6945
|
+
var o = ke({
|
6946
6946
|
number: 0.6,
|
6947
6947
|
unit: "pt"
|
6948
|
-
}, e), c =
|
6948
|
+
}, e), c = ke({
|
6949
6949
|
number: 0.35,
|
6950
6950
|
unit: "ex"
|
6951
6951
|
}, e), f = e.havingBaseSizing();
|
@@ -7284,7 +7284,7 @@ var Zt = function(e, t) {
|
|
7284
7284
|
var v = t.havingStyle(Q.SCRIPT).sizeMultiplier;
|
7285
7285
|
g = 0.2778 * (v / t.sizeMultiplier);
|
7286
7286
|
}
|
7287
|
-
var y = e.colSeparationType === "CD" ?
|
7287
|
+
var y = e.colSeparationType === "CD" ? ke({
|
7288
7288
|
number: 3,
|
7289
7289
|
unit: "ex"
|
7290
7290
|
}, t) : 12 * d, k = 3 * d, E = e.arraystretch * y, A = 0.7 * E, D = 0.3 * E, b = 0;
|
@@ -7304,13 +7304,13 @@ var Zt = function(e, t) {
|
|
7304
7304
|
z < R.depth && (z = R.depth), M < R.height && (M = R.height), O[a] = R;
|
7305
7305
|
}
|
7306
7306
|
var B = e.rowGaps[r], X = 0;
|
7307
|
-
B && (X =
|
7307
|
+
B && (X = ke(B, t), X > 0 && (X += D, z < X && (z = X), X = 0)), e.addJot && (z += k), O.height = M, O.depth = z, b += M, O.pos = b, b += z + X, o[r] = O, F(l[r + 1]);
|
7308
7308
|
}
|
7309
|
-
var $ = b / 2 + t.fontMetrics().axisHeight, Te = e.cols || [], se = [], U, le,
|
7309
|
+
var $ = b / 2 + t.fontMetrics().axisHeight, Te = e.cols || [], se = [], U, le, be = [];
|
7310
7310
|
if (e.tags && e.tags.some(($t) => $t))
|
7311
7311
|
for (r = 0; r < i; ++r) {
|
7312
|
-
var ue = o[r], Ce = ue.pos - $,
|
7313
|
-
|
7312
|
+
var ue = o[r], Ce = ue.pos - $, Ae = e.tags[r], re = void 0;
|
7313
|
+
Ae === !0 ? re = C.makeSpan(["eqn-num"], [], t) : Ae === !1 ? re = C.makeSpan([], [], t) : re = C.makeSpan([], Me(Ae, t, !0), t), re.depth = ue.depth, re.height = ue.height, be.push({
|
7314
7314
|
type: "elem",
|
7315
7315
|
elem: re,
|
7316
7316
|
shift: Ce
|
@@ -7376,11 +7376,11 @@ var Zt = function(e, t) {
|
|
7376
7376
|
children: kt
|
7377
7377
|
}, t);
|
7378
7378
|
}
|
7379
|
-
if (
|
7379
|
+
if (be.length === 0)
|
7380
7380
|
return C.makeSpan(["mord"], [o], t);
|
7381
7381
|
var Nt = C.makeVList({
|
7382
7382
|
positionType: "individualShift",
|
7383
|
-
children:
|
7383
|
+
children: be
|
7384
7384
|
}, t);
|
7385
7385
|
return Nt = C.makeSpan(["tag"], [Nt], t), C.makeFragment([o, Nt]);
|
7386
7386
|
}, z4 = {
|
@@ -7879,7 +7879,7 @@ var hu = (n, e) => {
|
|
7879
7879
|
}
|
7880
7880
|
i = e.havingStyle(a);
|
7881
7881
|
var c = ie(n.denom, i, e), f, d, g;
|
7882
|
-
n.hasBarLine ? (n.barSize ? (d =
|
7882
|
+
n.hasBarLine ? (n.barSize ? (d = ke(n.barSize, e), f = C.makeLineSpan("frac-line", e, d)) : f = C.makeLineSpan("frac-line", e), d = f.height, g = f.height) : (f = null, d = 0, g = e.fontMetrics().defaultRuleThickness);
|
7883
7883
|
var v, y, k;
|
7884
7884
|
t.size === Q.DISPLAY.size || n.size === "display" ? (v = e.fontMetrics().num1, d > 0 ? y = 3 * g : y = 7 * g, k = e.fontMetrics().denom1) : (d > 0 ? (v = e.fontMetrics().num2, y = g) : (v = e.fontMetrics().num3, y = 3 * g), k = e.fontMetrics().denom2);
|
7885
7885
|
var E;
|
@@ -7928,7 +7928,7 @@ var hu = (n, e) => {
|
|
7928
7928
|
if (!n.hasBarLine)
|
7929
7929
|
t.setAttribute("linethickness", "0px");
|
7930
7930
|
else if (n.barSize) {
|
7931
|
-
var r =
|
7931
|
+
var r = ke(n.barSize, e);
|
7932
7932
|
t.setAttribute("linethickness", P(r));
|
7933
7933
|
}
|
7934
7934
|
var a = hu(n.size, e.style);
|
@@ -8285,7 +8285,7 @@ G({
|
|
8285
8285
|
type: "href",
|
8286
8286
|
mode: t.mode,
|
8287
8287
|
href: a,
|
8288
|
-
body:
|
8288
|
+
body: Se(r)
|
8289
8289
|
} : t.formatUnsupportedCmd("\\href");
|
8290
8290
|
},
|
8291
8291
|
htmlBuilder: (n, e) => {
|
@@ -8332,7 +8332,7 @@ G({
|
|
8332
8332
|
type: "href",
|
8333
8333
|
mode: t.mode,
|
8334
8334
|
href: r,
|
8335
|
-
body:
|
8335
|
+
body: Se(s)
|
8336
8336
|
};
|
8337
8337
|
}
|
8338
8338
|
});
|
@@ -8352,7 +8352,7 @@ G({
|
|
8352
8352
|
return {
|
8353
8353
|
type: "hbox",
|
8354
8354
|
mode: t.mode,
|
8355
|
-
body:
|
8355
|
+
body: Se(e[0])
|
8356
8356
|
};
|
8357
8357
|
},
|
8358
8358
|
htmlBuilder(n, e) {
|
@@ -8418,7 +8418,7 @@ G({
|
|
8418
8418
|
type: "html",
|
8419
8419
|
mode: t.mode,
|
8420
8420
|
attributes: o,
|
8421
|
-
body:
|
8421
|
+
body: Se(l)
|
8422
8422
|
} : t.formatUnsupportedCmd(r);
|
8423
8423
|
},
|
8424
8424
|
htmlBuilder: (n, e) => {
|
@@ -8445,8 +8445,8 @@ G({
|
|
8445
8445
|
return {
|
8446
8446
|
type: "htmlmathml",
|
8447
8447
|
mode: t.mode,
|
8448
|
-
html:
|
8449
|
-
mathml:
|
8448
|
+
html: Se(e[0]),
|
8449
|
+
mathml: Se(e[1])
|
8450
8450
|
};
|
8451
8451
|
},
|
8452
8452
|
htmlBuilder: (n, e) => {
|
@@ -8533,10 +8533,10 @@ G({
|
|
8533
8533
|
} : r.formatUnsupportedCmd("\\includegraphics");
|
8534
8534
|
},
|
8535
8535
|
htmlBuilder: (n, e) => {
|
8536
|
-
var t =
|
8537
|
-
n.totalheight.number > 0 && (r =
|
8536
|
+
var t = ke(n.height, e), r = 0;
|
8537
|
+
n.totalheight.number > 0 && (r = ke(n.totalheight, e) - t);
|
8538
8538
|
var a = 0;
|
8539
|
-
n.width.number > 0 && (a =
|
8539
|
+
n.width.number > 0 && (a = ke(n.width, e));
|
8540
8540
|
var i = {
|
8541
8541
|
height: P(t + r)
|
8542
8542
|
};
|
@@ -8547,9 +8547,9 @@ G({
|
|
8547
8547
|
mathmlBuilder: (n, e) => {
|
8548
8548
|
var t = new I.MathNode("mglyph", []);
|
8549
8549
|
t.setAttribute("alt", n.alt);
|
8550
|
-
var r =
|
8551
|
-
if (n.totalheight.number > 0 && (a =
|
8552
|
-
var i =
|
8550
|
+
var r = ke(n.height, e), a = 0;
|
8551
|
+
if (n.totalheight.number > 0 && (a = ke(n.totalheight, e) - r, t.setAttribute("valign", P(-a))), t.setAttribute("height", P(r + a)), n.width.number > 0) {
|
8552
|
+
var i = ke(n.width, e);
|
8553
8553
|
t.setAttribute("width", P(i));
|
8554
8554
|
}
|
8555
8555
|
return t.setAttribute("src", n.src), t;
|
@@ -8583,7 +8583,7 @@ G({
|
|
8583
8583
|
return C.makeGlue(n.dimension, e);
|
8584
8584
|
},
|
8585
8585
|
mathmlBuilder(n, e) {
|
8586
|
-
var t =
|
8586
|
+
var t = ke(n.dimension, e);
|
8587
8587
|
return new I.SpaceNode(t);
|
8588
8588
|
}
|
8589
8589
|
});
|
@@ -8685,10 +8685,10 @@ G({
|
|
8685
8685
|
return {
|
8686
8686
|
type: "mathchoice",
|
8687
8687
|
mode: t.mode,
|
8688
|
-
display:
|
8689
|
-
text:
|
8690
|
-
script:
|
8691
|
-
scriptscript:
|
8688
|
+
display: Se(e[0]),
|
8689
|
+
text: Se(e[1]),
|
8690
|
+
script: Se(e[2]),
|
8691
|
+
scriptscript: Se(e[3])
|
8692
8692
|
};
|
8693
8693
|
},
|
8694
8694
|
htmlBuilder: (n, e) => {
|
@@ -8895,7 +8895,7 @@ G({
|
|
8895
8895
|
limits: !1,
|
8896
8896
|
parentIsSupSub: !1,
|
8897
8897
|
symbol: !1,
|
8898
|
-
body:
|
8898
|
+
body: Se(r)
|
8899
8899
|
};
|
8900
8900
|
},
|
8901
8901
|
htmlBuilder: sr,
|
@@ -9043,7 +9043,7 @@ G({
|
|
9043
9043
|
return {
|
9044
9044
|
type: "operatorname",
|
9045
9045
|
mode: t.mode,
|
9046
|
-
body:
|
9046
|
+
body: Se(a),
|
9047
9047
|
alwaysHandleSupSub: r === "\\operatornamewithlimits",
|
9048
9048
|
limits: !1,
|
9049
9049
|
parentIsSupSub: !1
|
@@ -9118,7 +9118,7 @@ G({
|
|
9118
9118
|
return {
|
9119
9119
|
type: "phantom",
|
9120
9120
|
mode: t.mode,
|
9121
|
-
body:
|
9121
|
+
body: Se(r)
|
9122
9122
|
};
|
9123
9123
|
},
|
9124
9124
|
htmlBuilder: (n, e) => {
|
@@ -9161,7 +9161,7 @@ G({
|
|
9161
9161
|
}, e), C.makeSpan(["mord"], [t], e);
|
9162
9162
|
},
|
9163
9163
|
mathmlBuilder: (n, e) => {
|
9164
|
-
var t = $e(
|
9164
|
+
var t = $e(Se(n.body), e), r = new I.MathNode("mphantom", t), a = new I.MathNode("mpadded", [r]);
|
9165
9165
|
return a.setAttribute("height", "0px"), a.setAttribute("depth", "0px"), a;
|
9166
9166
|
}
|
9167
9167
|
});
|
@@ -9187,7 +9187,7 @@ G({
|
|
9187
9187
|
return C.makeSpan(["mord", "rlap"], [t, r], e);
|
9188
9188
|
},
|
9189
9189
|
mathmlBuilder: (n, e) => {
|
9190
|
-
var t = $e(
|
9190
|
+
var t = $e(Se(n.body), e), r = new I.MathNode("mphantom", t), a = new I.MathNode("mpadded", [r]);
|
9191
9191
|
return a.setAttribute("width", "0px"), a;
|
9192
9192
|
}
|
9193
9193
|
});
|
@@ -9211,7 +9211,7 @@ G({
|
|
9211
9211
|
};
|
9212
9212
|
},
|
9213
9213
|
htmlBuilder(n, e) {
|
9214
|
-
var t = ie(n.body, e), r =
|
9214
|
+
var t = ie(n.body, e), r = ke(n.dy, e);
|
9215
9215
|
return C.makeVList({
|
9216
9216
|
positionType: "shift",
|
9217
9217
|
positionData: -r,
|
@@ -9266,11 +9266,11 @@ G({
|
|
9266
9266
|
};
|
9267
9267
|
},
|
9268
9268
|
htmlBuilder(n, e) {
|
9269
|
-
var t = C.makeSpan(["mord", "rule"], [], e), r =
|
9269
|
+
var t = C.makeSpan(["mord", "rule"], [], e), r = ke(n.width, e), a = ke(n.height, e), i = n.shift ? ke(n.shift, e) : 0;
|
9270
9270
|
return t.style.borderRightWidth = P(r), t.style.borderTopWidth = P(a), t.style.bottom = P(i), t.width = r, t.height = a + i, t.depth = -i, t.maxFontSize = a * 1.125 * e.sizeMultiplier, t;
|
9271
9271
|
},
|
9272
9272
|
mathmlBuilder(n, e) {
|
9273
|
-
var t =
|
9273
|
+
var t = ke(n.width, e), r = ke(n.height, e), a = n.shift ? ke(n.shift, e) : 0, i = e.color && e.getColor() || "black", l = new I.MathNode("mspace");
|
9274
9274
|
l.setAttribute("mathbackground", i), l.setAttribute("width", P(t)), l.setAttribute("height", P(r));
|
9275
9275
|
var s = new I.MathNode("mpadded", [l]);
|
9276
9276
|
return a >= 0 ? s.setAttribute("height", P(a)) : (s.setAttribute("height", P(a)), s.setAttribute("depth", P(-a))), s.setAttribute("voffset", P(a)), s;
|
@@ -9754,7 +9754,7 @@ G({
|
|
9754
9754
|
return {
|
9755
9755
|
type: "text",
|
9756
9756
|
mode: t.mode,
|
9757
|
-
body:
|
9757
|
+
body: Se(a),
|
9758
9758
|
font: r
|
9759
9759
|
};
|
9760
9760
|
},
|
@@ -14364,14 +14364,14 @@ var $l = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
14364
14364
|
var le = X.pattern.toString().match(/[imsuy]*$/)[0];
|
14365
14365
|
X.pattern = RegExp(X.pattern.source, le + "g");
|
14366
14366
|
}
|
14367
|
-
for (var
|
14368
|
-
var
|
14367
|
+
for (var be = X.pattern || X, ue = T.next, Ce = M; ue !== b.tail && !(z && Ce >= z.reach); Ce += ue.value.length, ue = ue.next) {
|
14368
|
+
var Ae = ue.value;
|
14369
14369
|
if (b.length > D.length)
|
14370
14370
|
return;
|
14371
|
-
if (!(
|
14371
|
+
if (!(Ae instanceof o)) {
|
14372
14372
|
var re = 1, oe;
|
14373
14373
|
if (se) {
|
14374
|
-
if (oe = c(
|
14374
|
+
if (oe = c(be, Ce, D, Te), !oe || oe.index >= D.length)
|
14375
14375
|
break;
|
14376
14376
|
var et = oe.index, fe = oe.index + oe[0].length, Ne = Ce;
|
14377
14377
|
for (Ne += ue.value.length; et >= Ne; )
|
@@ -14380,10 +14380,10 @@ var $l = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
14380
14380
|
continue;
|
14381
14381
|
for (var H = ue; H !== b.tail && (Ne < fe || typeof H.value == "string"); H = H.next)
|
14382
14382
|
re++, Ne += H.value.length;
|
14383
|
-
re--,
|
14384
|
-
} else if (oe = c(
|
14383
|
+
re--, Ae = D.slice(Ce, Ne), oe.index -= Ce;
|
14384
|
+
} else if (oe = c(be, 0, Ae, Te), !oe)
|
14385
14385
|
continue;
|
14386
|
-
var et = oe.index, qe = oe[0], tt =
|
14386
|
+
var et = oe.index, qe = oe[0], tt = Ae.slice(0, et), yt = Ae.slice(et + qe.length), wt = Ce + Ae.length;
|
14387
14387
|
z && wt > z.reach && (z.reach = wt);
|
14388
14388
|
var Qt = ue.prev;
|
14389
14389
|
tt && (Qt = g(b, Qt, tt), Ce += tt.length), v(b, Qt, re);
|
@@ -17486,7 +17486,7 @@ o0 = new WeakMap();
|
|
17486
17486
|
const {
|
17487
17487
|
SvelteComponent: mm,
|
17488
17488
|
append_hydration: Ju,
|
17489
|
-
attr:
|
17489
|
+
attr: we,
|
17490
17490
|
bubble: dm,
|
17491
17491
|
check_outros: pm,
|
17492
17492
|
children: $u,
|
@@ -17536,10 +17536,10 @@ function wm(n) {
|
|
17536
17536
|
s && s.l(d), t = e1(d), c && c.l(d), d.forEach(L0), this.h();
|
17537
17537
|
},
|
17538
17538
|
h() {
|
17539
|
-
|
17539
|
+
we(e, "class", r = /*size*/
|
17540
17540
|
n[4] + " " + /*variant*/
|
17541
17541
|
n[3] + " " + /*elem_classes*/
|
17542
|
-
n[1].join(" ") + " svelte-1u1asd3"),
|
17542
|
+
n[1].join(" ") + " svelte-1u1asd3"), we(
|
17543
17543
|
e,
|
17544
17544
|
"id",
|
17545
17545
|
/*elem_id*/
|
@@ -17592,8 +17592,8 @@ function wm(n) {
|
|
17592
17592
|
26 && r !== (r = /*size*/
|
17593
17593
|
f[4] + " " + /*variant*/
|
17594
17594
|
f[3] + " " + /*elem_classes*/
|
17595
|
-
f[1].join(" ") + " svelte-1u1asd3")) &&
|
17596
|
-
1) &&
|
17595
|
+
f[1].join(" ") + " svelte-1u1asd3")) && we(e, "class", r), (!a || d & /*elem_id*/
|
17596
|
+
1) && we(
|
17597
17597
|
e,
|
17598
17598
|
"id",
|
17599
17599
|
/*elem_id*/
|
@@ -17661,20 +17661,20 @@ function km(n) {
|
|
17661
17661
|
i && i.l(c), t = e1(c), s && s.l(c), c.forEach(L0), this.h();
|
17662
17662
|
},
|
17663
17663
|
h() {
|
17664
|
-
|
17664
|
+
we(
|
17665
17665
|
e,
|
17666
17666
|
"href",
|
17667
17667
|
/*link*/
|
17668
17668
|
n[6]
|
17669
|
-
),
|
17669
|
+
), we(e, "rel", "noopener noreferrer"), we(
|
17670
17670
|
e,
|
17671
17671
|
"aria-disabled",
|
17672
17672
|
/*disabled*/
|
17673
17673
|
n[8]
|
17674
|
-
),
|
17674
|
+
), we(e, "class", r = /*size*/
|
17675
17675
|
n[4] + " " + /*variant*/
|
17676
17676
|
n[3] + " " + /*elem_classes*/
|
17677
|
-
n[1].join(" ") + " svelte-1u1asd3"),
|
17677
|
+
n[1].join(" ") + " svelte-1u1asd3"), we(
|
17678
17678
|
e,
|
17679
17679
|
"id",
|
17680
17680
|
/*elem_id*/
|
@@ -17728,13 +17728,13 @@ function km(n) {
|
|
17728
17728
|
),
|
17729
17729
|
null
|
17730
17730
|
), (!a || c & /*link*/
|
17731
|
-
64) &&
|
17731
|
+
64) && we(
|
17732
17732
|
e,
|
17733
17733
|
"href",
|
17734
17734
|
/*link*/
|
17735
17735
|
o[6]
|
17736
17736
|
), (!a || c & /*disabled*/
|
17737
|
-
256) &&
|
17737
|
+
256) && we(
|
17738
17738
|
e,
|
17739
17739
|
"aria-disabled",
|
17740
17740
|
/*disabled*/
|
@@ -17743,8 +17743,8 @@ function km(n) {
|
|
17743
17743
|
26 && r !== (r = /*size*/
|
17744
17744
|
o[4] + " " + /*variant*/
|
17745
17745
|
o[3] + " " + /*elem_classes*/
|
17746
|
-
o[1].join(" ") + " svelte-1u1asd3")) &&
|
17747
|
-
1) &&
|
17746
|
+
o[1].join(" ") + " svelte-1u1asd3")) && we(e, "class", r), (!a || c & /*elem_id*/
|
17747
|
+
1) && we(
|
17748
17748
|
e,
|
17749
17749
|
"id",
|
17750
17750
|
/*elem_id*/
|
@@ -17801,8 +17801,8 @@ function As(n) {
|
|
17801
17801
|
e = Gn(a, "IMG", { class: !0, src: !0, alt: !0 }), this.h();
|
17802
17802
|
},
|
17803
17803
|
h() {
|
17804
|
-
|
17805
|
-
n[7].url) ||
|
17804
|
+
we(e, "class", "button-icon svelte-1u1asd3"), Mn(e.src, t = /*icon*/
|
17805
|
+
n[7].url) || we(e, "src", t), we(e, "alt", r = `${/*value*/
|
17806
17806
|
n[5]} icon`), k0(
|
17807
17807
|
e,
|
17808
17808
|
"right-padded",
|
@@ -17816,9 +17816,9 @@ function As(n) {
|
|
17816
17816
|
p(a, i) {
|
17817
17817
|
i & /*icon*/
|
17818
17818
|
128 && !Mn(e.src, t = /*icon*/
|
17819
|
-
a[7].url) &&
|
17819
|
+
a[7].url) && we(e, "src", t), i & /*value*/
|
17820
17820
|
32 && r !== (r = `${/*value*/
|
17821
|
-
a[5]} icon`) &&
|
17821
|
+
a[5]} icon`) && we(e, "alt", r), i & /*value*/
|
17822
17822
|
32 && k0(
|
17823
17823
|
e,
|
17824
17824
|
"right-padded",
|
@@ -17841,8 +17841,8 @@ function Ss(n) {
|
|
17841
17841
|
e = Gn(a, "IMG", { class: !0, src: !0, alt: !0 }), this.h();
|
17842
17842
|
},
|
17843
17843
|
h() {
|
17844
|
-
|
17845
|
-
n[7].url) ||
|
17844
|
+
we(e, "class", "button-icon svelte-1u1asd3"), Mn(e.src, t = /*icon*/
|
17845
|
+
n[7].url) || we(e, "src", t), we(e, "alt", r = `${/*value*/
|
17846
17846
|
n[5]} icon`);
|
17847
17847
|
},
|
17848
17848
|
m(a, i) {
|
@@ -17851,9 +17851,9 @@ function Ss(n) {
|
|
17851
17851
|
p(a, i) {
|
17852
17852
|
i & /*icon*/
|
17853
17853
|
128 && !Mn(e.src, t = /*icon*/
|
17854
|
-
a[7].url) &&
|
17854
|
+
a[7].url) && we(e, "src", t), i & /*value*/
|
17855
17855
|
32 && r !== (r = `${/*value*/
|
17856
|
-
a[5]} icon`) &&
|
17856
|
+
a[5]} icon`) && we(e, "alt", r);
|
17857
17857
|
},
|
17858
17858
|
d(a) {
|
17859
17859
|
a && L0(e);
|
@@ -18182,7 +18182,7 @@ const {
|
|
18182
18182
|
claim_component: c1,
|
18183
18183
|
claim_element: Wt,
|
18184
18184
|
claim_space: ht,
|
18185
|
-
claim_text:
|
18185
|
+
claim_text: _e,
|
18186
18186
|
create_component: h1,
|
18187
18187
|
create_slot: f1,
|
18188
18188
|
destroy_component: m1,
|
@@ -18202,7 +18202,7 @@ const {
|
|
18202
18202
|
set_data: vt,
|
18203
18203
|
set_style: _0,
|
18204
18204
|
space: ft,
|
18205
|
-
text:
|
18205
|
+
text: De,
|
18206
18206
|
toggle_class: ut,
|
18207
18207
|
transition_in: Tt,
|
18208
18208
|
transition_out: Yt,
|
@@ -18247,14 +18247,14 @@ function Wm(n) {
|
|
18247
18247
|
);
|
18248
18248
|
return {
|
18249
18249
|
c() {
|
18250
|
-
e = Xt("div"), h1(t.$$.fragment), r = ft(), a = Xt("span"), l =
|
18250
|
+
e = Xt("div"), h1(t.$$.fragment), r = ft(), a = Xt("span"), l = De(i), s = ft(), f && f.c(), this.h();
|
18251
18251
|
},
|
18252
18252
|
l(d) {
|
18253
18253
|
e = Wt(d, "DIV", { class: !0 });
|
18254
18254
|
var g = Vt(e);
|
18255
18255
|
c1(t.$$.fragment, g), g.forEach(Y), r = ht(d), a = Wt(d, "SPAN", { class: !0 });
|
18256
18256
|
var v = Vt(a);
|
18257
|
-
l =
|
18257
|
+
l = _e(v, i), v.forEach(Y), s = ht(d), f && f.l(d), this.h();
|
18258
18258
|
},
|
18259
18259
|
h() {
|
18260
18260
|
Mt(e, "class", "clear-status svelte-17v219f"), Mt(a, "class", "error svelte-17v219f");
|
@@ -18432,10 +18432,10 @@ function Ym(n) {
|
|
18432
18432
|
let e;
|
18433
18433
|
return {
|
18434
18434
|
c() {
|
18435
|
-
e =
|
18435
|
+
e = De("processing |");
|
18436
18436
|
},
|
18437
18437
|
l(t) {
|
18438
|
-
e =
|
18438
|
+
e = _e(t, "processing |");
|
18439
18439
|
},
|
18440
18440
|
m(t, r) {
|
18441
18441
|
ee(t, e, r);
|
@@ -18453,17 +18453,17 @@ function jm(n) {
|
|
18453
18453
|
), r, a, i, l;
|
18454
18454
|
return {
|
18455
18455
|
c() {
|
18456
|
-
e =
|
18456
|
+
e = De("queue: "), r = De(t), a = De("/"), i = De(
|
18457
18457
|
/*queue_size*/
|
18458
18458
|
n[3]
|
18459
|
-
), l =
|
18459
|
+
), l = De(" |");
|
18460
18460
|
},
|
18461
18461
|
l(s) {
|
18462
|
-
e =
|
18462
|
+
e = _e(s, "queue: "), r = _e(s, t), a = _e(s, "/"), i = _e(
|
18463
18463
|
s,
|
18464
18464
|
/*queue_size*/
|
18465
18465
|
n[3]
|
18466
|
-
), l =
|
18466
|
+
), l = _e(s, " |");
|
18467
18467
|
},
|
18468
18468
|
m(s, o) {
|
18469
18469
|
ee(s, e, o), ee(s, r, o), ee(s, a, o), ee(s, i, o), ee(s, l, o);
|
@@ -18542,10 +18542,10 @@ function qs(n) {
|
|
18542
18542
|
let o = s(n), c = o(n);
|
18543
18543
|
return {
|
18544
18544
|
c() {
|
18545
|
-
c.c(), e = ft(), r =
|
18545
|
+
c.c(), e = ft(), r = De(t), a = De(" | "), l = De(i);
|
18546
18546
|
},
|
18547
18547
|
l(f) {
|
18548
|
-
c.l(f), e = ht(f), r =
|
18548
|
+
c.l(f), e = ht(f), r = _e(f, t), a = _e(f, " | "), l = _e(f, i);
|
18549
18549
|
},
|
18550
18550
|
m(f, d) {
|
18551
18551
|
c.m(f, d), ee(f, e, d), ee(f, r, d), ee(f, a, d), ee(f, l, d);
|
@@ -18567,10 +18567,10 @@ function Km(n) {
|
|
18567
18567
|
) + "", t;
|
18568
18568
|
return {
|
18569
18569
|
c() {
|
18570
|
-
t =
|
18570
|
+
t = De(e);
|
18571
18571
|
},
|
18572
18572
|
l(r) {
|
18573
|
-
t =
|
18573
|
+
t = _e(r, e);
|
18574
18574
|
},
|
18575
18575
|
m(r, a) {
|
18576
18576
|
ee(r, t, a);
|
@@ -18597,10 +18597,10 @@ function Qm(n) {
|
|
18597
18597
|
) + "", i;
|
18598
18598
|
return {
|
18599
18599
|
c() {
|
18600
|
-
t =
|
18600
|
+
t = De(e), r = De("/"), i = De(a);
|
18601
18601
|
},
|
18602
18602
|
l(l) {
|
18603
|
-
t =
|
18603
|
+
t = _e(l, e), r = _e(l, "/"), i = _e(l, a);
|
18604
18604
|
},
|
18605
18605
|
m(l, s) {
|
18606
18606
|
ee(l, t, s), ee(l, r, s), ee(l, i, s);
|
@@ -18653,17 +18653,17 @@ function Hs(n) {
|
|
18653
18653
|
), r, a;
|
18654
18654
|
return {
|
18655
18655
|
c() {
|
18656
|
-
e =
|
18656
|
+
e = De(
|
18657
18657
|
/*formatted_timer*/
|
18658
18658
|
n[20]
|
18659
|
-
), r =
|
18659
|
+
), r = De(t), a = De("s");
|
18660
18660
|
},
|
18661
18661
|
l(i) {
|
18662
|
-
e =
|
18662
|
+
e = _e(
|
18663
18663
|
i,
|
18664
18664
|
/*formatted_timer*/
|
18665
18665
|
n[20]
|
18666
|
-
), r =
|
18666
|
+
), r = _e(i, t), a = _e(i, "s");
|
18667
18667
|
},
|
18668
18668
|
m(i, l) {
|
18669
18669
|
ee(i, e, l), ee(i, r, l), ee(i, a, l);
|
@@ -18850,10 +18850,10 @@ function ed(n) {
|
|
18850
18850
|
let e;
|
18851
18851
|
return {
|
18852
18852
|
c() {
|
18853
|
-
e =
|
18853
|
+
e = De(" /");
|
18854
18854
|
},
|
18855
18855
|
l(t) {
|
18856
|
-
e =
|
18856
|
+
e = _e(t, " /");
|
18857
18857
|
},
|
18858
18858
|
m(t, r) {
|
18859
18859
|
ee(t, e, r);
|
@@ -18870,10 +18870,10 @@ function Vs(n) {
|
|
18870
18870
|
), t;
|
18871
18871
|
return {
|
18872
18872
|
c() {
|
18873
|
-
t =
|
18873
|
+
t = De(e);
|
18874
18874
|
},
|
18875
18875
|
l(r) {
|
18876
|
-
t =
|
18876
|
+
t = _e(r, e);
|
18877
18877
|
},
|
18878
18878
|
m(r, a) {
|
18879
18879
|
ee(r, t, a);
|
@@ -18892,10 +18892,10 @@ function Ws(n) {
|
|
18892
18892
|
let e;
|
18893
18893
|
return {
|
18894
18894
|
c() {
|
18895
|
-
e =
|
18895
|
+
e = De("-");
|
18896
18896
|
},
|
18897
18897
|
l(t) {
|
18898
|
-
e =
|
18898
|
+
e = _e(t, "-");
|
18899
18899
|
},
|
18900
18900
|
m(t, r) {
|
18901
18901
|
ee(t, e, r);
|
@@ -18913,10 +18913,10 @@ function Xs(n) {
|
|
18913
18913
|
] || 0)).toFixed(1) + "", t, r;
|
18914
18914
|
return {
|
18915
18915
|
c() {
|
18916
|
-
t =
|
18916
|
+
t = De(e), r = De("%");
|
18917
18917
|
},
|
18918
18918
|
l(a) {
|
18919
|
-
t =
|
18919
|
+
t = _e(a, e), r = _e(a, "%");
|
18920
18920
|
},
|
18921
18921
|
m(a, i) {
|
18922
18922
|
ee(a, t, i), ee(a, r, i);
|
@@ -18982,7 +18982,7 @@ function js(n) {
|
|
18982
18982
|
);
|
18983
18983
|
return {
|
18984
18984
|
c() {
|
18985
|
-
e = Xt("p"), t =
|
18985
|
+
e = Xt("p"), t = De(
|
18986
18986
|
/*loading_text*/
|
18987
18987
|
n[9]
|
18988
18988
|
), r = ft(), l && l.c(), this.h();
|
@@ -18990,7 +18990,7 @@ function js(n) {
|
|
18990
18990
|
l(s) {
|
18991
18991
|
e = Wt(s, "P", { class: !0 });
|
18992
18992
|
var o = Vt(e);
|
18993
|
-
t =
|
18993
|
+
t = _e(
|
18994
18994
|
o,
|
18995
18995
|
/*loading_text*/
|
18996
18996
|
n[9]
|
@@ -19182,7 +19182,7 @@ async function nd(n, e = !0) {
|
|
19182
19182
|
function ad(n, e, t) {
|
19183
19183
|
let r, { $$slots: a = {}, $$scope: i } = e;
|
19184
19184
|
const l = Um();
|
19185
|
-
let { i18n: s } = e, { eta: o = null } = e, { queue_position: c } = e, { queue_size: f } = e, { status: d } = e, { scroll_to_output: g = !1 } = e, { timer: v = !0 } = e, { show_progress: y = "full" } = e, { message: k = null } = e, { progress: E = null } = e, { variant: A = "default" } = e, { loading_text: D = "Loading..." } = e, { absolute: b = !0 } = e, { translucent: F = !1 } = e, { border: T = !1 } = e, { autoscroll: M } = e, z, O = !1, R = 0, B = 0, X = null, $ = null, Te = 0, se = null, U, le = null,
|
19185
|
+
let { i18n: s } = e, { eta: o = null } = e, { queue_position: c } = e, { queue_size: f } = e, { status: d } = e, { scroll_to_output: g = !1 } = e, { timer: v = !0 } = e, { show_progress: y = "full" } = e, { message: k = null } = e, { progress: E = null } = e, { variant: A = "default" } = e, { loading_text: D = "Loading..." } = e, { absolute: b = !0 } = e, { translucent: F = !1 } = e, { border: T = !1 } = e, { autoscroll: M } = e, z, O = !1, R = 0, B = 0, X = null, $ = null, Te = 0, se = null, U, le = null, be = !0;
|
19186
19186
|
const ue = () => {
|
19187
19187
|
t(0, o = t(27, X = t(19, re = null))), t(25, R = performance.now()), t(26, B = 0), O = !0, Ce();
|
19188
19188
|
};
|
@@ -19191,11 +19191,11 @@ function ad(n, e, t) {
|
|
19191
19191
|
t(26, B = (performance.now() - R) / 1e3), O && Ce();
|
19192
19192
|
});
|
19193
19193
|
}
|
19194
|
-
function
|
19194
|
+
function Ae() {
|
19195
19195
|
t(26, B = 0), t(0, o = t(27, X = t(19, re = null))), O && (O = !1);
|
19196
19196
|
}
|
19197
19197
|
Hm(() => {
|
19198
|
-
O &&
|
19198
|
+
O && Ae();
|
19199
19199
|
});
|
19200
19200
|
let re = null;
|
19201
19201
|
function oe(H) {
|
@@ -19217,14 +19217,14 @@ function ad(n, e, t) {
|
|
19217
19217
|
n.$$.dirty[0] & /*eta, old_eta, timer_start, eta_from_start*/
|
19218
19218
|
436207617 && (o === null && t(0, o = X), o != null && X !== o && (t(28, $ = (performance.now() - R) / 1e3 + o), t(19, re = $.toFixed(1)), t(27, X = o))), n.$$.dirty[0] & /*eta_from_start, timer_diff*/
|
19219
19219
|
335544320 && t(17, Te = $ === null || $ <= 0 || !B ? null : Math.min(B / $, 1)), n.$$.dirty[0] & /*progress*/
|
19220
|
-
128 && E != null && t(18,
|
19220
|
+
128 && E != null && t(18, be = !1), n.$$.dirty[0] & /*progress, progress_level, progress_bar, last_progress_level*/
|
19221
19221
|
114816 && (E != null ? t(14, se = E.map((H) => {
|
19222
19222
|
if (H.index != null && H.length != null)
|
19223
19223
|
return H.index / H.length;
|
19224
19224
|
if (H.progress != null)
|
19225
19225
|
return H.progress;
|
19226
19226
|
})) : t(14, se = null), se ? (t(15, U = se[se.length - 1]), le && (U === 0 ? t(16, le.style.transition = "0", le) : t(16, le.style.transition = "150ms", le))) : t(15, U = void 0)), n.$$.dirty[0] & /*status*/
|
19227
|
-
16 && (d === "pending" ? ue() :
|
19227
|
+
16 && (d === "pending" ? ue() : Ae()), n.$$.dirty[0] & /*el, scroll_to_output, status, autoscroll*/
|
19228
19228
|
20979728 && z && g && (d === "pending" || d === "complete") && nd(z, M), n.$$.dirty[0] & /*status, message*/
|
19229
19229
|
8388624, n.$$.dirty[0] & /*timer_diff*/
|
19230
19230
|
67108864 && t(20, r = B.toFixed(1));
|
@@ -19247,7 +19247,7 @@ function ad(n, e, t) {
|
|
19247
19247
|
U,
|
19248
19248
|
le,
|
19249
19249
|
Te,
|
19250
|
-
|
19250
|
+
be,
|
19251
19251
|
re,
|
19252
19252
|
r,
|
19253
19253
|
l,
|
@@ -19490,12 +19490,12 @@ function x1() {
|
|
19490
19490
|
TMPLIT_EXPR: se,
|
19491
19491
|
DATA_ATTR: U,
|
19492
19492
|
ARIA_ATTR: le,
|
19493
|
-
IS_SCRIPT_OR_DATA:
|
19493
|
+
IS_SCRIPT_OR_DATA: be,
|
19494
19494
|
ATTR_WHITESPACE: ue,
|
19495
19495
|
CUSTOM_ELEMENT: Ce
|
19496
19496
|
} = ro;
|
19497
19497
|
let {
|
19498
|
-
IS_ALLOWED_URI:
|
19498
|
+
IS_ALLOWED_URI: Ae
|
19499
19499
|
} = ro, re = null;
|
19500
19500
|
const oe = ne({}, [...Js, ...za, ...Ba, ...Na, ...$s]);
|
19501
19501
|
let fe = null;
|
@@ -19540,7 +19540,7 @@ function x1() {
|
|
19540
19540
|
let S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
19541
19541
|
if (!(X0 && X0 === S)) {
|
19542
19542
|
if ((!S || typeof S != "object") && (S = {}), S = M0(S), ur = // eslint-disable-next-line unicorn/prefer-includes
|
19543
|
-
M1.indexOf(S.PARSER_MEDIA_TYPE) === -1 ? z1 : S.PARSER_MEDIA_TYPE, ze = ur === "application/xhtml+xml" ? Ma : kn, re = Et(S, "ALLOWED_TAGS") ? ne({}, S.ALLOWED_TAGS, ze) : oe, fe = Et(S, "ALLOWED_ATTR") ? ne({}, S.ALLOWED_ATTR, ze) : Ne, Kn = Et(S, "ALLOWED_NAMESPACES") ? ne({}, S.ALLOWED_NAMESPACES, Ma) : T1, jn = Et(S, "ADD_URI_SAFE_ATTR") ? ne(M0(Xi), S.ADD_URI_SAFE_ATTR, ze) : Xi, Vi = Et(S, "ADD_DATA_URI_TAGS") ? ne(M0(Wi), S.ADD_DATA_URI_TAGS, ze) : Wi, V0 = Et(S, "FORBID_CONTENTS") ? ne({}, S.FORBID_CONTENTS, ze) : Gi, et = Et(S, "FORBID_TAGS") ? ne({}, S.FORBID_TAGS, ze) : {}, qe = Et(S, "FORBID_ATTR") ? ne({}, S.FORBID_ATTR, ze) : {}, G0 = Et(S, "USE_PROFILES") ? S.USE_PROFILES : !1, tt = S.ALLOW_ARIA_ATTR !== !1, yt = S.ALLOW_DATA_ATTR !== !1, wt = S.ALLOW_UNKNOWN_PROTOCOLS || !1, Qt = S.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Bt = S.SAFE_FOR_TEMPLATES || !1, Jt = S.SAFE_FOR_XML !== !1, kt = S.WHOLE_DOCUMENT || !1, Nt = S.RETURN_DOM || !1, $t = S.RETURN_DOM_FRAGMENT || !1, e0 = S.RETURN_TRUSTED_TYPE || !1, U0 = S.FORCE_BODY || !1, Hi = S.SANITIZE_DOM !== !1, Ui = S.SANITIZE_NAMED_PROPS || !1, Yn = S.KEEP_CONTENT !== !1, or = S.IN_PLACE || !1,
|
19543
|
+
M1.indexOf(S.PARSER_MEDIA_TYPE) === -1 ? z1 : S.PARSER_MEDIA_TYPE, ze = ur === "application/xhtml+xml" ? Ma : kn, re = Et(S, "ALLOWED_TAGS") ? ne({}, S.ALLOWED_TAGS, ze) : oe, fe = Et(S, "ALLOWED_ATTR") ? ne({}, S.ALLOWED_ATTR, ze) : Ne, Kn = Et(S, "ALLOWED_NAMESPACES") ? ne({}, S.ALLOWED_NAMESPACES, Ma) : T1, jn = Et(S, "ADD_URI_SAFE_ATTR") ? ne(M0(Xi), S.ADD_URI_SAFE_ATTR, ze) : Xi, Vi = Et(S, "ADD_DATA_URI_TAGS") ? ne(M0(Wi), S.ADD_DATA_URI_TAGS, ze) : Wi, V0 = Et(S, "FORBID_CONTENTS") ? ne({}, S.FORBID_CONTENTS, ze) : Gi, et = Et(S, "FORBID_TAGS") ? ne({}, S.FORBID_TAGS, ze) : {}, qe = Et(S, "FORBID_ATTR") ? ne({}, S.FORBID_ATTR, ze) : {}, G0 = Et(S, "USE_PROFILES") ? S.USE_PROFILES : !1, tt = S.ALLOW_ARIA_ATTR !== !1, yt = S.ALLOW_DATA_ATTR !== !1, wt = S.ALLOW_UNKNOWN_PROTOCOLS || !1, Qt = S.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Bt = S.SAFE_FOR_TEMPLATES || !1, Jt = S.SAFE_FOR_XML !== !1, kt = S.WHOLE_DOCUMENT || !1, Nt = S.RETURN_DOM || !1, $t = S.RETURN_DOM_FRAGMENT || !1, e0 = S.RETURN_TRUSTED_TYPE || !1, U0 = S.FORCE_BODY || !1, Hi = S.SANITIZE_DOM !== !1, Ui = S.SANITIZE_NAMED_PROPS || !1, Yn = S.KEEP_CONTENT !== !1, or = S.IN_PLACE || !1, Ae = S.ALLOWED_URI_REGEXP || _1, W0 = S.NAMESPACE || t0, Or = S.MATHML_TEXT_INTEGRATION_POINTS || Or, qr = S.HTML_INTEGRATION_POINTS || qr, H = S.CUSTOM_ELEMENT_HANDLING || {}, S.CUSTOM_ELEMENT_HANDLING && Yi(S.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (H.tagNameCheck = S.CUSTOM_ELEMENT_HANDLING.tagNameCheck), S.CUSTOM_ELEMENT_HANDLING && Yi(S.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (H.attributeNameCheck = S.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), S.CUSTOM_ELEMENT_HANDLING && typeof S.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (H.allowCustomizedBuiltInElements = S.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Bt && (yt = !1), $t && (Nt = !0), G0 && (re = ne({}, $s), fe = [], G0.html === !0 && (ne(re, Js), ne(fe, eo)), G0.svg === !0 && (ne(re, za), ne(fe, Ra), ne(fe, fn)), G0.svgFilters === !0 && (ne(re, Ba), ne(fe, Ra), ne(fe, fn)), G0.mathMl === !0 && (ne(re, Na), ne(fe, to), ne(fe, fn))), S.ADD_TAGS && (re === oe && (re = M0(re)), ne(re, S.ADD_TAGS, ze)), S.ADD_ATTR && (fe === Ne && (fe = M0(fe)), ne(fe, S.ADD_ATTR, ze)), S.ADD_URI_SAFE_ATTR && ne(jn, S.ADD_URI_SAFE_ATTR, ze), S.FORBID_CONTENTS && (V0 === Gi && (V0 = M0(V0)), ne(V0, S.FORBID_CONTENTS, ze)), Yn && (re["#text"] = !0), kt && ne(re, ["html", "head", "body"]), re.table && (ne(re, ["tbody"]), delete et.tbody), S.TRUSTED_TYPES_POLICY) {
|
19544
19544
|
if (typeof S.TRUSTED_TYPES_POLICY.createHTML != "function")
|
19545
19545
|
throw pr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
19546
19546
|
if (typeof S.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
@@ -19677,9 +19677,9 @@ function x1() {
|
|
19677
19677
|
q === "is" && H.allowCustomizedBuiltInElements && (H.tagNameCheck instanceof RegExp && Ue(H.tagNameCheck, W) || H.tagNameCheck instanceof Function && H.tagNameCheck(W)))
|
19678
19678
|
) return !1;
|
19679
19679
|
} else if (!jn[q]) {
|
19680
|
-
if (!Ue(
|
19680
|
+
if (!Ue(Ae, dr(W, ue, ""))) {
|
19681
19681
|
if (!((q === "src" || q === "xlink:href" || q === "href") && S !== "script" && ud(W, "data:") === 0 && Vi[S])) {
|
19682
|
-
if (!(wt && !Ue(
|
19682
|
+
if (!(wt && !Ue(be, dr(W, ue, "")))) {
|
19683
19683
|
if (W)
|
19684
19684
|
return !1;
|
19685
19685
|
}
|
@@ -21185,15 +21185,15 @@ function I5(n, e, t) {
|
|
21185
21185
|
o.includes(U) ? t(0, o = o.filter((le) => le !== U)) : t(0, o = [...o, U]), t(1, c = c.map((le) => ({ ...le, selected: o.includes(le.id) }))), a.dispatch("input");
|
21186
21186
|
}
|
21187
21187
|
function O(U) {
|
21188
|
-
const le = U ? c.map((
|
21189
|
-
t(0, o = le), a.dispatch("
|
21188
|
+
const le = U ? c.map((be) => be.id) : [];
|
21189
|
+
t(0, o = le), t(1, c = c.map((be) => ({ ...be, selected: o.includes(be.id) }))), a.dispatch("select");
|
21190
21190
|
}
|
21191
|
-
const R = () => a.dispatch("clear_status", D), B = () => O(!0), X = () => O(!1), $ = (U) => z(U.id), Te = (U, le,
|
21191
|
+
const R = () => a.dispatch("clear_status", D), B = () => O(!0), X = () => O(!1), $ = (U) => z(U.id), Te = (U, le, be) => a.dispatch("select", {
|
21192
21192
|
index: U,
|
21193
21193
|
value: le.id,
|
21194
|
-
selected:
|
21195
|
-
}), se = (U, le,
|
21196
|
-
|
21194
|
+
selected: be.currentTarget.checked
|
21195
|
+
}), se = (U, le, be) => {
|
21196
|
+
be.key === "Enter" && (z(U.id), a.dispatch("select", {
|
21197
21197
|
index: le,
|
21198
21198
|
value: U.id,
|
21199
21199
|
selected: !o.includes(U.id)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: gradio_checkboxgroupmarkdown
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.6
|
4
4
|
Summary: Gradio component for CheckboxGroup with Markdown
|
5
5
|
Author-email: YOUR NAME <YOUREMAIL@domain.com>
|
6
6
|
License-Expression: Apache-2.0
|
@@ -48,216 +48,168 @@ pip install gradio_checkboxgroupmarkdown
|
|
48
48
|
## Usage
|
49
49
|
|
50
50
|
```python
|
51
|
+
|
51
52
|
import gradio as gr
|
53
|
+
|
54
|
+
|
55
|
+
from typing import List
|
56
|
+
import gradio as gr
|
57
|
+
from dataclasses import dataclass
|
52
58
|
import random
|
53
|
-
from typing import List, Dict
|
54
59
|
from gradio_checkboxgroupmarkdown import CheckboxGroupMarkdown
|
55
60
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
"id": article_id,
|
78
|
-
"title": title,
|
79
|
-
"content": content,
|
80
|
-
"selected": False
|
81
|
-
})
|
82
|
-
|
83
|
-
return articles
|
84
|
-
|
85
|
-
def search_articles(search_text: str, master_articles: List[Dict]) -> List[Dict]:
|
86
|
-
print("search_articles")
|
87
|
-
|
88
|
-
"""Search articles based on input text"""
|
89
|
-
if not search_text.strip():
|
90
|
-
return master_articles
|
91
|
-
|
92
|
-
search_terms = search_text.lower().split()
|
93
|
-
filtered_articles = []
|
94
|
-
|
95
|
-
for article in master_articles:
|
96
|
-
text_to_search = (article["title"] + " " + article["content"]).lower()
|
97
|
-
if all(term in text_to_search for term in search_terms):
|
98
|
-
filtered_articles.append(article)
|
99
|
-
|
100
|
-
return filtered_articles
|
61
|
+
# Define two different sets of choices
|
62
|
+
ai_choices = [
|
63
|
+
{
|
64
|
+
"id": "art_101",
|
65
|
+
"title": "Understanding Neural Networks",
|
66
|
+
"content": "# Understanding Neural Networks\nThis article explains the basics of neural networks, their architecture, and how they learn from data.",
|
67
|
+
"selected": False
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"id": "art_102",
|
71
|
+
"title": "A Gentle Introduction to Transformers",
|
72
|
+
"content": "# A Gentle Introduction to Transformers\nTransformers have revolutionized NLP. Learn about attention mechanisms, encoder-decoder architecture, and more.",
|
73
|
+
"selected": False
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"id": "art_103",
|
77
|
+
"title": "Reinforcement Learning Basics",
|
78
|
+
"content": "# Reinforcement Learning Basics\nAn overview of RL concepts like agents, environments, rewards, and policies.",
|
79
|
+
"selected": False
|
80
|
+
}
|
81
|
+
]
|
101
82
|
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
83
|
+
ml_choices = [
|
84
|
+
{
|
85
|
+
"id": "art_104",
|
86
|
+
"title": "Machine Learning Fundamentals",
|
87
|
+
"content": "# Machine Learning Fundamentals\nLearn about supervised, unsupervised, and reinforcement learning approaches.",
|
88
|
+
"selected": False
|
89
|
+
},
|
90
|
+
{
|
91
|
+
"id": "art_105",
|
92
|
+
"title": "Deep Learning vs Traditional ML",
|
93
|
+
"content": "# Deep Learning vs Traditional ML\nUnderstand the key differences between deep learning and traditional machine learning.",
|
94
|
+
"selected": False
|
95
|
+
},
|
96
|
+
{
|
97
|
+
"id": "art_106",
|
98
|
+
"title": "Feature Engineering",
|
99
|
+
"content": "# Feature Engineering\nMaster the art of creating meaningful features from raw data.",
|
100
|
+
"selected": False
|
114
101
|
}
|
102
|
+
]
|
103
|
+
|
104
|
+
# def sentence_builder(selected):
|
105
|
+
# if not selected:
|
106
|
+
# return "You haven't selected any articles yet."
|
115
107
|
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
article["selected"] = article["id"] in selected_ids
|
130
|
-
|
131
|
-
# Get selected articles for second tab
|
132
|
-
selected_articles = [
|
133
|
-
{
|
134
|
-
"id": art["id"],
|
135
|
-
"title": art["title"],
|
136
|
-
"content": art["content"],
|
137
|
-
"selected": True
|
138
|
-
}
|
139
|
-
for art in master_articles
|
140
|
-
if art["selected"]
|
141
|
-
]
|
142
|
-
|
143
|
-
return [
|
144
|
-
gr.update(
|
145
|
-
choices=selected_articles,
|
146
|
-
value=[art["id"] for art in selected_articles]
|
147
|
-
),
|
148
|
-
gr.update(
|
149
|
-
value=[art["id"] for art in filtered_checkbox if art["selected"]]
|
150
|
-
),
|
151
|
-
master_articles,
|
152
|
-
filtered_checkbox
|
153
|
-
]
|
154
|
-
|
155
|
-
def update_filtered_checkbox_articles(selected_choices, filtered_checkbox, master_articles: List[Dict]):
|
156
|
-
print("update_selected_articles")
|
157
|
-
|
158
|
-
"""Update the second CheckboxGroupMarkdown when selections change in the first one"""
|
159
|
-
# Get IDs of newly selected articles
|
160
|
-
selected_ids = {choice["id"] for choice in selected_choices}
|
161
|
-
|
162
|
-
# Update selection status in filtered_checkbox_state
|
163
|
-
for article in filtered_checkbox:
|
164
|
-
if article["id"] in selected_ids:
|
165
|
-
article["selected"] = True
|
166
|
-
else:
|
167
|
-
article["selected"] = False
|
168
|
-
|
169
|
-
# Update selection status in master_articles based on filtered_checkbox
|
170
|
-
filtered_articles_dict = {art["id"]: art["selected"] for art in filtered_checkbox}
|
171
|
-
for article in master_articles:
|
172
|
-
if article["id"] in filtered_articles_dict:
|
173
|
-
article["selected"] = filtered_articles_dict[article["id"]]
|
108
|
+
# if isinstance(selected[0], dict) and "title" in selected[0]:
|
109
|
+
# formatted_choices = []
|
110
|
+
# for choice in selected:
|
111
|
+
# formatted_choices.append(
|
112
|
+
# f"ID: {choice['id']}\nTitle: {choice['title']}\nContent: {choice['content']}"
|
113
|
+
# )
|
114
|
+
# return "Selected articles are:\n\n" + "\n\n".join(formatted_choices)
|
115
|
+
# else:
|
116
|
+
# return "Selected articles are:\n\n- " + "\n- ".join(selected)
|
117
|
+
|
118
|
+
def sentence_builder(selected):
|
119
|
+
print("\nIn sentence_builder:")
|
120
|
+
print("Selected items:", selected)
|
174
121
|
|
175
|
-
|
176
|
-
|
177
|
-
{
|
178
|
-
"id": art["id"],
|
179
|
-
"title": art["title"],
|
180
|
-
"content": art["content"],
|
181
|
-
"selected": True
|
182
|
-
}
|
183
|
-
for art in master_articles
|
184
|
-
if art["selected"]
|
185
|
-
]
|
122
|
+
if not selected:
|
123
|
+
return "You haven't selected any articles yet."
|
186
124
|
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
125
|
+
if isinstance(selected[0], dict) and "title" in selected[0]:
|
126
|
+
formatted_choices = []
|
127
|
+
for choice in selected:
|
128
|
+
print(f"Processing choice: {choice}")
|
129
|
+
formatted_choices.append(
|
130
|
+
f"ID: {choice['id']}\nTitle: {choice['title']}\nContent: {choice['content']}"
|
131
|
+
)
|
132
|
+
return "Selected articles are:\n\n" + "\n\n".join(formatted_choices)
|
133
|
+
else:
|
134
|
+
return "Selected articles are:\n\n- " + "\n- ".join(selected)
|
135
|
+
|
136
|
+
def update_choices(choice_type: str):
|
137
|
+
if choice_type == "AI":
|
138
|
+
return gr.update(choices=ai_choices, value=[]), ""
|
139
|
+
elif choice_type == "ML":
|
140
|
+
return gr.update(choices=ml_choices, value=["art_106"]), ""
|
141
|
+
else: # Random mix
|
142
|
+
mixed_choices = random.sample(ai_choices + ml_choices, 3)
|
143
|
+
return gr.update(choices=mixed_choices, value=[]), ""
|
144
|
+
|
145
|
+
# def update_choices(choice_type: str):
|
146
|
+
# if choice_type == "AI":
|
147
|
+
# choices = [{**c, "selected": False} for c in ai_choices]
|
148
|
+
# return gr.update(choices=choices, value=[]), ""
|
149
|
+
# elif choice_type == "ML":
|
150
|
+
# choices = [{**c, "selected": c["id"] == "art_106"} for c in ml_choices]
|
151
|
+
# return gr.update(choices=choices, value=["art_106"]), ""
|
152
|
+
# else: # Random mix
|
153
|
+
# mixed = random.sample(ai_choices + ml_choices, 3)
|
154
|
+
# choices = [{**c, "selected": False} for c in mixed]
|
155
|
+
# return gr.update(choices=choices, value=[]), ""
|
195
156
|
|
196
|
-
# Create the Gradio interface
|
197
157
|
with gr.Blocks() as demo:
|
198
|
-
gr.Markdown("## Article
|
158
|
+
gr.Markdown("## Interactive Article Selection Demo")
|
199
159
|
|
200
|
-
# Create state to hold master articles list
|
201
|
-
master_articles_state = gr.State(generate_test_articles())
|
202
|
-
filtered_checkbox_state = gr.State(master_articles_state.value)
|
203
|
-
print("generate articles")
|
204
|
-
|
205
|
-
# Search bar
|
206
160
|
with gr.Row():
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
161
|
+
with gr.Column(scale=1):
|
162
|
+
gr.Markdown("### Change Article Categories")
|
163
|
+
with gr.Row():
|
164
|
+
ai_btn = gr.Button("AI Articles", variant="primary")
|
165
|
+
ml_btn = gr.Button("ML Articles", variant="secondary")
|
166
|
+
mix_btn = gr.Button("Random Mix", variant="secondary")
|
213
167
|
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
info="Select articles to add to your collection",
|
168
|
+
with gr.Row():
|
169
|
+
with gr.Column(scale=2):
|
170
|
+
checkbox_group = CheckboxGroupMarkdown(
|
171
|
+
choices=ai_choices, # Start with AI choices
|
172
|
+
label="Select Articles",
|
173
|
+
info="Choose articles to include in your collection",
|
221
174
|
type="all",
|
222
|
-
value=[art["id"] for art in master_articles_state.value if art["selected"]],
|
223
175
|
buttons=["select_all", "deselect_all"]
|
224
176
|
)
|
225
|
-
print("filtered_checkbox")
|
226
177
|
|
227
|
-
with gr.
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
info="
|
232
|
-
|
233
|
-
value=[art["id"] for art in master_articles_state.value if art["selected"]],
|
234
|
-
buttons=["select_all", "deselect_all"]
|
178
|
+
with gr.Column(scale=1):
|
179
|
+
output_text = gr.Textbox(
|
180
|
+
label="Selected Articles",
|
181
|
+
placeholder="Make selections to see results...",
|
182
|
+
info="Selected articles will be displayed here",
|
183
|
+
lines=10
|
235
184
|
)
|
236
|
-
print("selected_checkbox")
|
237
185
|
|
238
186
|
# Event handlers
|
239
|
-
|
240
|
-
fn=
|
241
|
-
inputs=
|
242
|
-
|
243
|
-
outputs=[filtered_checkbox, filtered_checkbox_state]
|
187
|
+
checkbox_group.change(
|
188
|
+
fn=sentence_builder,
|
189
|
+
inputs=checkbox_group,
|
190
|
+
outputs=output_text
|
244
191
|
)
|
245
192
|
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
193
|
+
# Button click handlers to update choices
|
194
|
+
ai_btn.click(
|
195
|
+
fn=lambda: update_choices("AI"),
|
196
|
+
inputs=None,
|
197
|
+
outputs=[checkbox_group, output_text],
|
250
198
|
)
|
251
|
-
|
252
|
-
|
253
|
-
fn=
|
254
|
-
inputs=
|
255
|
-
outputs=[
|
199
|
+
|
200
|
+
ml_btn.click(
|
201
|
+
fn=lambda: update_choices("ML"),
|
202
|
+
inputs=None,
|
203
|
+
outputs=[checkbox_group, output_text],
|
204
|
+
)
|
205
|
+
|
206
|
+
mix_btn.click(
|
207
|
+
fn=lambda: update_choices("MIX"),
|
208
|
+
inputs=None,
|
209
|
+
outputs=[checkbox_group, output_text],
|
256
210
|
)
|
257
|
-
print("Block")
|
258
|
-
|
259
211
|
|
260
|
-
if __name__ ==
|
212
|
+
if __name__ == '__main__':
|
261
213
|
demo.launch()
|
262
214
|
```
|
263
215
|
|
{gradio_checkboxgroupmarkdown-0.0.4.dist-info → gradio_checkboxgroupmarkdown-0.0.6.dist-info}/RECORD
RENAMED
@@ -1,10 +1,10 @@
|
|
1
1
|
gradio_checkboxgroupmarkdown/__init__.py,sha256=Az5vyA8_FE_fVcwmepfA0vQPVcHXp7V2oEOO5zfGcuc,95
|
2
2
|
gradio_checkboxgroupmarkdown/checkboxgroupmarkdown.py,sha256=ZhKlopuEvhyG-RMY5rKTuRokvG5Kdlz0lFEEjCyNvbE,9203
|
3
3
|
gradio_checkboxgroupmarkdown/checkboxgroupmarkdown.pyi,sha256=x293cKPjCuOWNKpZMARDvMMtlVKcdlbhnhM2CyMZ9MY,50495
|
4
|
-
gradio_checkboxgroupmarkdown/templates/component/index.js,sha256=
|
4
|
+
gradio_checkboxgroupmarkdown/templates/component/index.js,sha256=hMBCpwXwDLlvwiZNp2dWgk3eP6Uy_D_nYpJ28iZA6cI,671475
|
5
5
|
gradio_checkboxgroupmarkdown/templates/component/style.css,sha256=EerxnQHoc_xD3U5TDjlSkYRUoeXTWjOhDlrcKaQCeN4,1488060
|
6
6
|
gradio_checkboxgroupmarkdown/templates/example/index.js,sha256=fXHk5hz-RJ65D8XnIz29Mnlnv-YuDl8R4W3mUtnkqZs,1986
|
7
7
|
gradio_checkboxgroupmarkdown/templates/example/style.css,sha256=Aj4k-S41TV83pot-J9j9Fi2UonrXHFC1Jl4Zb1xaYo4,61
|
8
|
-
gradio_checkboxgroupmarkdown-0.0.
|
9
|
-
gradio_checkboxgroupmarkdown-0.0.
|
10
|
-
gradio_checkboxgroupmarkdown-0.0.
|
8
|
+
gradio_checkboxgroupmarkdown-0.0.6.dist-info/METADATA,sha256=gmXl9VYq_uv079y3g0g0VV1r0daPclobSTQMEdJt2qI,15745
|
9
|
+
gradio_checkboxgroupmarkdown-0.0.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
10
|
+
gradio_checkboxgroupmarkdown-0.0.6.dist-info/RECORD,,
|
{gradio_checkboxgroupmarkdown-0.0.4.dist-info → gradio_checkboxgroupmarkdown-0.0.6.dist-info}/WHEEL
RENAMED
File without changes
|