Upload folder using huggingface_hub
Browse files- README.md +2 -4
- src/backend/gradio_consilium_roundtable/templates/component/index.js +12 -12
- src/backend/gradio_consilium_roundtable/templates/component/style.css +1 -1
- src/backend/gradio_consilium_roundtable/templates/example/index.js +124 -124
- src/backend/gradio_consilium_roundtable/templates/example/style.css +1 -1
- src/frontend/Index.svelte +1 -1
- src/pyproject.toml +1 -1
README.md
CHANGED
@@ -12,11 +12,8 @@ sdk: gradio
|
|
12 |
pinned: false
|
13 |
app_file: space.py
|
14 |
emoji: π
|
15 |
-
sdk_version: 5.33.0
|
16 |
---
|
17 |
|
18 |
-
πΌ Demo Video: https://youtu.be/oyYlf1BfuU8
|
19 |
-
|
20 |
# `gradio_consilium_roundtable`
|
21 |
<a href="https://pypi.org/project/gradio_consilium_roundtable/" target="_blank"><img alt="PyPI - Version" src="https://img.shields.io/pypi/v/gradio_consilium_roundtable"></a>
|
22 |
|
@@ -475,4 +472,5 @@ The code snippet below is accurate in cases where the component is used as both
|
|
475 |
value: str | None
|
476 |
) -> Any:
|
477 |
return value
|
478 |
-
```
|
|
|
|
12 |
pinned: false
|
13 |
app_file: space.py
|
14 |
emoji: π
|
|
|
15 |
---
|
16 |
|
|
|
|
|
17 |
# `gradio_consilium_roundtable`
|
18 |
<a href="https://pypi.org/project/gradio_consilium_roundtable/" target="_blank"><img alt="PyPI - Version" src="https://img.shields.io/pypi/v/gradio_consilium_roundtable"></a>
|
19 |
|
|
|
472 |
value: str | None
|
473 |
) -> Any:
|
474 |
return value
|
475 |
+
```
|
476 |
+
|
src/backend/gradio_consilium_roundtable/templates/component/index.js
CHANGED
@@ -1487,7 +1487,7 @@ function Be(r) {
|
|
1487 |
), s.forEach(v), this.h();
|
1488 |
},
|
1489 |
h() {
|
1490 |
-
k(e, "class", "block-title svelte-
|
1491 |
},
|
1492 |
m(l, s) {
|
1493 |
q(l, e, s), i && i.m(e, null), I(e, t), I(e, n);
|
@@ -1526,7 +1526,7 @@ function Me(r) {
|
|
1526 |
l.l(o), o.forEach(v), this.h();
|
1527 |
},
|
1528 |
h() {
|
1529 |
-
k(e, "class", "label-icon-container svelte-
|
1530 |
},
|
1531 |
m(s, o) {
|
1532 |
q(s, e, o), l.m(e, null);
|
@@ -1558,7 +1558,7 @@ function Gt(r) {
|
|
1558 |
), i.forEach(v), this.h();
|
1559 |
},
|
1560 |
h() {
|
1561 |
-
k(e, "class", "label-icon-emoji svelte-
|
1562 |
},
|
1563 |
m(n, i) {
|
1564 |
q(n, e, i), I(e, t);
|
@@ -1587,7 +1587,7 @@ function Ut(r) {
|
|
1587 |
},
|
1588 |
h() {
|
1589 |
re(e.src, t = /*label_icon*/
|
1590 |
-
r[0]) || k(e, "src", t), k(e, "alt", "Label Icon"), k(e, "class", "label-icon-image svelte-
|
1591 |
},
|
1592 |
m(l, s) {
|
1593 |
q(l, e, s), n || (i = Ue(
|
@@ -1625,7 +1625,7 @@ function Wt(r) {
|
|
1625 |
n = ae(l, t), l.forEach(v), this.h();
|
1626 |
},
|
1627 |
h() {
|
1628 |
-
k(e, "class", "avatar-emoji svelte-
|
1629 |
},
|
1630 |
m(i, l) {
|
1631 |
q(i, e, l), I(e, n);
|
@@ -1668,7 +1668,7 @@ function Xt(r) {
|
|
1668 |
/*participant*/
|
1669 |
r[31]
|
1670 |
)) || k(e, "src", t), k(e, "alt", n = /*participant*/
|
1671 |
-
r[31]), k(e, "class", "avatar-image svelte-
|
1672 |
},
|
1673 |
m(o, a) {
|
1674 |
q(o, e, a), i || (l = Ue(e, "error", s), i = !0);
|
@@ -1729,7 +1729,7 @@ function Pe(r) {
|
|
1729 |
_ = ae(Y, g), Y.forEach(v), y = V(m), m.forEach(v), this.h();
|
1730 |
},
|
1731 |
h() {
|
1732 |
-
i.a = null, k(n, "class", "bubble-content svelte-
|
1733 |
t,
|
1734 |
"visible",
|
1735 |
/*isBubbleVisible*/
|
@@ -1737,7 +1737,7 @@ function Pe(r) {
|
|
1737 |
/*participant*/
|
1738 |
r[31]
|
1739 |
)
|
1740 |
-
), k(u, "class", "avatar svelte-
|
1741 |
u,
|
1742 |
"speaking",
|
1743 |
/*isAvatarActive*/
|
@@ -1767,7 +1767,7 @@ function Pe(r) {
|
|
1767 |
/*participant*/
|
1768 |
r[31]
|
1769 |
)
|
1770 |
-
), k(p, "class", "participant-name svelte-
|
1771 |
/*index*/
|
1772 |
r[33],
|
1773 |
/*participants*/
|
@@ -1898,10 +1898,10 @@ function Jt(r) {
|
|
1898 |
y.forEach(v), g.forEach(v), p.forEach(v), this.h();
|
1899 |
},
|
1900 |
h() {
|
1901 |
-
k(n, "class", "table-center svelte-
|
1902 |
/*containerClasses*/
|
1903 |
r[10]
|
1904 |
-
) + " svelte-
|
1905 |
e,
|
1906 |
"id",
|
1907 |
/*elem_id*/
|
@@ -1938,7 +1938,7 @@ function Jt(r) {
|
|
1938 |
1024 && s !== (s = Ce(
|
1939 |
/*containerClasses*/
|
1940 |
h[10]
|
1941 |
-
) + " svelte-
|
1942 |
2 && k(
|
1943 |
e,
|
1944 |
"id",
|
|
|
1487 |
), s.forEach(v), this.h();
|
1488 |
},
|
1489 |
h() {
|
1490 |
+
k(e, "class", "block-title svelte-iy6e0k"), k(e, "for", "consilium-roundtable");
|
1491 |
},
|
1492 |
m(l, s) {
|
1493 |
q(l, e, s), i && i.m(e, null), I(e, t), I(e, n);
|
|
|
1526 |
l.l(o), o.forEach(v), this.h();
|
1527 |
},
|
1528 |
h() {
|
1529 |
+
k(e, "class", "label-icon-container svelte-iy6e0k");
|
1530 |
},
|
1531 |
m(s, o) {
|
1532 |
q(s, e, o), l.m(e, null);
|
|
|
1558 |
), i.forEach(v), this.h();
|
1559 |
},
|
1560 |
h() {
|
1561 |
+
k(e, "class", "label-icon-emoji svelte-iy6e0k");
|
1562 |
},
|
1563 |
m(n, i) {
|
1564 |
q(n, e, i), I(e, t);
|
|
|
1587 |
},
|
1588 |
h() {
|
1589 |
re(e.src, t = /*label_icon*/
|
1590 |
+
r[0]) || k(e, "src", t), k(e, "alt", "Label Icon"), k(e, "class", "label-icon-image svelte-iy6e0k");
|
1591 |
},
|
1592 |
m(l, s) {
|
1593 |
q(l, e, s), n || (i = Ue(
|
|
|
1625 |
n = ae(l, t), l.forEach(v), this.h();
|
1626 |
},
|
1627 |
h() {
|
1628 |
+
k(e, "class", "avatar-emoji svelte-iy6e0k");
|
1629 |
},
|
1630 |
m(i, l) {
|
1631 |
q(i, e, l), I(e, n);
|
|
|
1668 |
/*participant*/
|
1669 |
r[31]
|
1670 |
)) || k(e, "src", t), k(e, "alt", n = /*participant*/
|
1671 |
+
r[31]), k(e, "class", "avatar-image svelte-iy6e0k");
|
1672 |
},
|
1673 |
m(o, a) {
|
1674 |
q(o, e, a), i || (l = Ue(e, "error", s), i = !0);
|
|
|
1729 |
_ = ae(Y, g), Y.forEach(v), y = V(m), m.forEach(v), this.h();
|
1730 |
},
|
1731 |
h() {
|
1732 |
+
i.a = null, k(n, "class", "bubble-content svelte-iy6e0k"), k(o, "class", "bubble-arrow svelte-iy6e0k"), k(t, "class", "speech-bubble svelte-iy6e0k"), B(
|
1733 |
t,
|
1734 |
"visible",
|
1735 |
/*isBubbleVisible*/
|
|
|
1737 |
/*participant*/
|
1738 |
r[31]
|
1739 |
)
|
1740 |
+
), k(u, "class", "avatar svelte-iy6e0k"), k(u, "role", "button"), k(u, "tabindex", "0"), B(
|
1741 |
u,
|
1742 |
"speaking",
|
1743 |
/*isAvatarActive*/
|
|
|
1767 |
/*participant*/
|
1768 |
r[31]
|
1769 |
)
|
1770 |
+
), k(p, "class", "participant-name svelte-iy6e0k"), k(e, "class", "participant-seat svelte-iy6e0k"), j(e, "left", Q(
|
1771 |
/*index*/
|
1772 |
r[33],
|
1773 |
/*participants*/
|
|
|
1898 |
y.forEach(v), g.forEach(v), p.forEach(v), this.h();
|
1899 |
},
|
1900 |
h() {
|
1901 |
+
k(n, "class", "table-center svelte-iy6e0k"), k(l, "class", "participants-circle"), k(t, "class", "consilium-container svelte-iy6e0k"), k(t, "id", "consilium-roundtable"), k(e, "class", s = Ce(
|
1902 |
/*containerClasses*/
|
1903 |
r[10]
|
1904 |
+
) + " svelte-iy6e0k"), k(
|
1905 |
e,
|
1906 |
"id",
|
1907 |
/*elem_id*/
|
|
|
1938 |
1024 && s !== (s = Ce(
|
1939 |
/*containerClasses*/
|
1940 |
h[10]
|
1941 |
+
) + " svelte-iy6e0k") && k(e, "class", s), p[0] & /*elem_id*/
|
1942 |
2 && k(
|
1943 |
e,
|
1944 |
"id",
|
src/backend/gradio_consilium_roundtable/templates/component/style.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.hidden.svelte-
|
|
|
1 |
+
.hidden.svelte-iy6e0k{display:none}.block-title.svelte-iy6e0k{padding:10px;font-weight:700;color:gold;display:flex;flex-wrap:wrap;justify-content:center;text-shadow:0 2px 4px rgba(0,0,0,.8)}.label-icon-container.svelte-iy6e0k{width:24px;height:24px}.label-icon-emoji.svelte-iy6e0k{font-size:1.2rem;line-height:1}.label-icon-image.svelte-iy6e0k{width:24px;height:24px;object-fit:contain;border-radius:4px}.wrapper.svelte-iy6e0k{width:600px;height:600px;position:relative}.consilium-container.svelte-iy6e0k{top:190px;position:relative;width:450px;height:300px;margin:20px auto;border-radius:50%;background:linear-gradient(135deg,#0f5132,#198754);border:8px solid #8b4513;box-shadow:0 8px 32px #0006,inset 0 0 20px #0003}.table-center.svelte-iy6e0k{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;background:#0000004d;border-radius:50%;width:140px;height:100px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid #8b4513;box-shadow:inset 0 0 10px #00000080}.participant-seat.svelte-iy6e0k{position:absolute;display:flex;flex-direction:column;align-items:center}.avatar.svelte-iy6e0k{width:60px;height:60px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.4rem;background:linear-gradient(145deg,#fff,#e6e6e6);border:3px solid #8b4513;box-shadow:0 6px 15px #0000004d,inset 0 2px 5px #ffffff80;margin-bottom:8px;transition:all .3s ease;position:relative;z-index:10;overflow:hidden}.avatar.has-image.svelte-iy6e0k{background:#f8f9fa;padding:2px}.avatar-image.svelte-iy6e0k{width:100%;height:100%;object-fit:cover;border-radius:50%}.avatar-emoji.svelte-iy6e0k{font-size:1.4rem;line-height:1}.avatar.thinking.svelte-iy6e0k{border-color:#ff6b35;animation:svelte-iy6e0k-thinking-pulse 1.5s infinite}.avatar.responding.svelte-iy6e0k{border-color:gold;animation:svelte-iy6e0k-speaking-glow 1s infinite}.avatar.speaking.svelte-iy6e0k{border-color:gold}.participant-name.svelte-iy6e0k{font-size:.75rem;font-weight:700;color:gold;text-shadow:0 2px 4px rgba(0,0,0,.8);text-align:center;white-space:nowrap;background:#0000004d;padding:2px 8px;border-radius:10px;border:1px solid #8b4513}.speech-bubble.svelte-iy6e0k{position:absolute;bottom:90px;left:50%;transform:translate(-50%) translateY(20px);background:#fff;border-radius:15px;padding:10px 14px;box-shadow:0 8px 25px #0000004d;z-index:20;opacity:0;transition:all .4s ease;pointer-events:none;border:2px solid #8b4513;min-width:180px;max-width:300px;word-wrap:break-word;white-space:normal}.speech-bubble.visible.svelte-iy6e0k{opacity:1;transform:translate(-50%) translateY(0);pointer-events:auto}.bubble-content.svelte-iy6e0k{font-size:.8rem;color:#333;line-height:1.4;text-align:left;max-height:100px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#8b4513 #f0f0f0}.bubble-content.svelte-iy6e0k::-webkit-scrollbar{width:6px}.bubble-content.svelte-iy6e0k::-webkit-scrollbar-track{background:#f0f0f0;border-radius:3px}.bubble-content.svelte-iy6e0k::-webkit-scrollbar-thumb{background:#8b4513;border-radius:3px}.bubble-content.svelte-iy6e0k::-webkit-scrollbar-thumb:hover{background:#654321}.bubble-arrow.svelte-iy6e0k{position:absolute;bottom:-10px;left:50%;transform:translate(-50%);width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid white}.bubble-arrow.svelte-iy6e0k:before{content:"";position:absolute;bottom:2px;left:50%;transform:translate(-50%);width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-top:12px solid #8b4513}@keyframes svelte-iy6e0k-thinking-pulse{0%,to{transform:scale(1);box-shadow:0 6px 15px #0000004d,0 0 15px #ff6b3566}50%{transform:scale(1.03);box-shadow:0 8px 20px #0006,0 0 25px #ff6b3599}}@keyframes svelte-iy6e0k-speaking-glow{0%,to{box-shadow:0 6px 15px #0000004d,0 0 20px #ffd70080}50%{box-shadow:0 8px 20px #0006,0 0 30px #ffd700cc}}
|
src/backend/gradio_consilium_roundtable/templates/example/index.js
CHANGED
@@ -40,17 +40,17 @@ function C(r, e) {
|
|
40 |
return r;
|
41 |
}
|
42 |
const ct = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
|
43 |
-
function
|
44 |
return r.replace(ct, (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)) : ""));
|
45 |
}
|
46 |
-
const
|
47 |
function w(r, e) {
|
48 |
let t = typeof r == "string" ? r : r.source;
|
49 |
e = e || "";
|
50 |
const n = {
|
51 |
replace: (i, l) => {
|
52 |
let s = typeof l == "string" ? l : l.source;
|
53 |
-
return s = s.replace(
|
54 |
},
|
55 |
getRegex: () => new RegExp(t, e)
|
56 |
};
|
@@ -67,8 +67,8 @@ function Ie(r) {
|
|
67 |
const F = { exec: () => null };
|
68 |
function Re(r, e) {
|
69 |
const t = r.replace(/\|/g, (l, s, o) => {
|
70 |
-
let a = !1,
|
71 |
-
for (; --
|
72 |
a = !a;
|
73 |
return a ? "|" : " |";
|
74 |
}), n = t.split(/ \|/);
|
@@ -241,18 +241,18 @@ class se {
|
|
241 |
};
|
242 |
n = i ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = i ? n : "[*+-]");
|
243 |
const s = new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`);
|
244 |
-
let o = "", a = "",
|
245 |
for (; e; ) {
|
246 |
let c = !1;
|
247 |
if (!(t = s.exec(e)) || this.rules.block.hr.test(e))
|
248 |
break;
|
249 |
o = t[0], e = e.substring(o.length);
|
250 |
-
let
|
251 |
`, 1)[0].replace(/^\t+/, (L) => " ".repeat(3 * L.length)), p = e.split(`
|
252 |
`, 1)[0], g = 0;
|
253 |
-
this.options.pedantic ? (g = 2, a =
|
254 |
let x = !1;
|
255 |
-
if (!
|
256 |
`, e = e.substring(p.length + 1), c = !0), !c) {
|
257 |
const L = new RegExp(`^ {0,${Math.min(3, g - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), T = new RegExp(`^ {0,${Math.min(3, g - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), d = new RegExp(`^ {0,${Math.min(3, g - 1)}}(?:\`\`\`|~~~)`), m = new RegExp(`^ {0,${Math.min(3, g - 1)}}#`);
|
258 |
for (; e; ) {
|
@@ -264,16 +264,16 @@ class se {
|
|
264 |
a += `
|
265 |
` + p.slice(g);
|
266 |
else {
|
267 |
-
if (x ||
|
268 |
break;
|
269 |
a += `
|
270 |
` + p;
|
271 |
}
|
272 |
!x && !p.trim() && (x = !0), o += R + `
|
273 |
-
`, e = e.substring(R.length + 1),
|
274 |
}
|
275 |
}
|
276 |
-
l.loose || (
|
277 |
let y = null, z;
|
278 |
this.options.gfm && (y = /^\[[ xX]\] /.exec(a), y && (z = y[0] !== "[ ] ", a = a.replace(/^\[[ xX]\] +/, ""))), l.items.push({
|
279 |
type: "list_item",
|
@@ -288,7 +288,7 @@ class se {
|
|
288 |
l.items[l.items.length - 1].raw = o.trimEnd(), l.items[l.items.length - 1].text = a.trimEnd(), l.raw = l.raw.trimEnd();
|
289 |
for (let c = 0; c < l.items.length; c++)
|
290 |
if (this.lexer.state.top = !1, l.items[c].tokens = this.lexer.blockTokens(l.items[c].text, []), !l.loose) {
|
291 |
-
const
|
292 |
l.loose = p;
|
293 |
}
|
294 |
if (l.loose)
|
@@ -454,21 +454,21 @@ class se {
|
|
454 |
return;
|
455 |
if (!(i[1] || i[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
|
456 |
const s = [...i[0]].length - 1;
|
457 |
-
let o, a,
|
458 |
-
const
|
459 |
-
for (
|
460 |
if (o = i[1] || i[2] || i[3] || i[4] || i[5] || i[6], !o)
|
461 |
continue;
|
462 |
if (a = [...o].length, i[3] || i[4]) {
|
463 |
-
|
464 |
continue;
|
465 |
} else if ((i[5] || i[6]) && s % 3 && !((s + a) % 3)) {
|
466 |
c += a;
|
467 |
continue;
|
468 |
}
|
469 |
-
if (
|
470 |
continue;
|
471 |
-
a = Math.min(a, a +
|
472 |
const p = [...i[0]][0].length, g = e.slice(0, s + i.index + p + a);
|
473 |
if (Math.min(s, a) % 2) {
|
474 |
const y = g.slice(1, -1);
|
@@ -632,7 +632,7 @@ const gt = /^(?: *(?:\n|$))+/, dt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, kt =
|
|
632 |
...be,
|
633 |
link: w(/^!?\[(label)\]\((.*?)\)/).replace("label", ie).getRegex(),
|
634 |
reflink: w(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", ie).getRegex()
|
635 |
-
},
|
636 |
...be,
|
637 |
escape: w(Ne).replace("])", "~|])").getRegex(),
|
638 |
url: w(/^((?: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(),
|
@@ -640,16 +640,16 @@ const gt = /^(?: *(?:\n|$))+/, dt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, kt =
|
|
640 |
del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,
|
641 |
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
642 |
}, Zt = {
|
643 |
-
...
|
644 |
br: w(Ve).replace("{2,}", "*").getRegex(),
|
645 |
-
text: w(
|
646 |
}, ne = {
|
647 |
normal: me,
|
648 |
gfm: vt,
|
649 |
pedantic: Tt
|
650 |
}, H = {
|
651 |
normal: be,
|
652 |
-
gfm:
|
653 |
breaks: Zt,
|
654 |
pedantic: Dt
|
655 |
};
|
@@ -705,7 +705,7 @@ class P {
|
|
705 |
return this.inlineQueue = [], this.tokens;
|
706 |
}
|
707 |
blockTokens(e, t = []) {
|
708 |
-
this.options.pedantic ? e = e.replace(/\t/g, " ").replace(/^ +$/gm, "") : e = e.replace(/^( *)(\t+)/gm, (o, a,
|
709 |
let n, i, l, s;
|
710 |
for (; e; )
|
711 |
if (!(this.options.extensions && this.options.extensions.block && this.options.extensions.block.some((o) => (n = o.call({ lexer: this }, e, t)) ? (e = e.substring(n.raw.length), t.push(n), !0) : !1))) {
|
@@ -764,9 +764,9 @@ class P {
|
|
764 |
if (l = e, this.options.extensions && this.options.extensions.startBlock) {
|
765 |
let o = 1 / 0;
|
766 |
const a = e.slice(1);
|
767 |
-
let
|
768 |
this.options.extensions.startBlock.forEach((c) => {
|
769 |
-
|
770 |
}), o < 1 / 0 && o >= 0 && (l = e.substring(0, o + 1));
|
771 |
}
|
772 |
if (this.state.top && (n = this.tokenizer.paragraph(l))) {
|
@@ -799,7 +799,7 @@ class P {
|
|
799 |
* Lexing/Compiling
|
800 |
*/
|
801 |
inlineTokens(e, t = []) {
|
802 |
-
let n, i, l, s = e, o, a,
|
803 |
if (this.tokens.links) {
|
804 |
const c = Object.keys(this.tokens.links);
|
805 |
if (c.length > 0)
|
@@ -811,7 +811,7 @@ class P {
|
|
811 |
for (; (o = this.tokenizer.rules.inline.anyPunctuation.exec(s)) != null; )
|
812 |
s = s.slice(0, o.index) + "++" + s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
813 |
for (; e; )
|
814 |
-
if (a || (
|
815 |
if (n = this.tokenizer.escape(e)) {
|
816 |
e = e.substring(n.raw.length), t.push(n);
|
817 |
continue;
|
@@ -828,7 +828,7 @@ class P {
|
|
828 |
e = e.substring(n.raw.length), i = t[t.length - 1], i && n.type === "text" && i.type === "text" ? (i.raw += n.raw, i.text += n.text) : t.push(n);
|
829 |
continue;
|
830 |
}
|
831 |
-
if (n = this.tokenizer.emStrong(e, s,
|
832 |
e = e.substring(n.raw.length), t.push(n);
|
833 |
continue;
|
834 |
}
|
@@ -854,14 +854,14 @@ class P {
|
|
854 |
}
|
855 |
if (l = e, this.options.extensions && this.options.extensions.startInline) {
|
856 |
let c = 1 / 0;
|
857 |
-
const
|
858 |
let p;
|
859 |
this.options.extensions.startInline.forEach((g) => {
|
860 |
-
p = g.call({ lexer: this },
|
861 |
}), c < 1 / 0 && c >= 0 && (l = e.substring(0, c + 1));
|
862 |
}
|
863 |
if (n = this.tokenizer.inlineText(l)) {
|
864 |
-
e = e.substring(n.raw.length), n.raw.slice(-1) !== "_" && (
|
865 |
continue;
|
866 |
}
|
867 |
if (e) {
|
@@ -1049,7 +1049,7 @@ class q {
|
|
1049 |
}
|
1050 |
case "heading": {
|
1051 |
const s = l;
|
1052 |
-
n += this.renderer.heading(this.parseInline(s.tokens), s.depth,
|
1053 |
continue;
|
1054 |
}
|
1055 |
case "code": {
|
@@ -1063,15 +1063,15 @@ class q {
|
|
1063 |
for (let c = 0; c < s.header.length; c++)
|
1064 |
a += this.renderer.tablecell(this.parseInline(s.header[c].tokens), { header: !0, align: s.align[c] });
|
1065 |
o += this.renderer.tablerow(a);
|
1066 |
-
let
|
1067 |
for (let c = 0; c < s.rows.length; c++) {
|
1068 |
-
const
|
1069 |
a = "";
|
1070 |
-
for (let p = 0; p <
|
1071 |
-
a += this.renderer.tablecell(this.parseInline(
|
1072 |
-
|
1073 |
}
|
1074 |
-
n += this.renderer.table(o,
|
1075 |
continue;
|
1076 |
}
|
1077 |
case "blockquote": {
|
@@ -1080,19 +1080,19 @@ class q {
|
|
1080 |
continue;
|
1081 |
}
|
1082 |
case "list": {
|
1083 |
-
const s = l, o = s.ordered, a = s.start,
|
1084 |
let c = "";
|
1085 |
-
for (let
|
1086 |
-
const p = s.items[
|
1087 |
let y = "";
|
1088 |
if (p.task) {
|
1089 |
const z = this.renderer.checkbox(!!g);
|
1090 |
-
|
1091 |
type: "text",
|
1092 |
text: z + " "
|
1093 |
}) : y += z + " ";
|
1094 |
}
|
1095 |
-
y += this.parse(p.tokens,
|
1096 |
}
|
1097 |
n += this.renderer.list(c, o, a);
|
1098 |
continue;
|
@@ -1259,8 +1259,8 @@ class Ot {
|
|
1259 |
for (const a of o.header)
|
1260 |
n = n.concat(this.walkTokens(a.tokens, t));
|
1261 |
for (const a of o.rows)
|
1262 |
-
for (const
|
1263 |
-
n = n.concat(this.walkTokens(
|
1264 |
break;
|
1265 |
}
|
1266 |
case "list": {
|
@@ -1271,8 +1271,8 @@ class Ot {
|
|
1271 |
default: {
|
1272 |
const o = s;
|
1273 |
(l = (i = this.defaults.extensions) == null ? void 0 : i.childTokens) != null && l[o.type] ? this.defaults.extensions.childTokens[o.type].forEach((a) => {
|
1274 |
-
const
|
1275 |
-
n = n.concat(this.walkTokens(
|
1276 |
}) : o.tokens && (n = n.concat(this.walkTokens(o.tokens, t)));
|
1277 |
}
|
1278 |
}
|
@@ -1306,10 +1306,10 @@ class Ot {
|
|
1306 |
throw new Error(`renderer '${s}' does not exist`);
|
1307 |
if (s === "options")
|
1308 |
continue;
|
1309 |
-
const o = s, a = n.renderer[o],
|
1310 |
l[o] = (...c) => {
|
1311 |
-
let
|
1312 |
-
return
|
1313 |
};
|
1314 |
}
|
1315 |
i.renderer = l;
|
@@ -1321,10 +1321,10 @@ class Ot {
|
|
1321 |
throw new Error(`tokenizer '${s}' does not exist`);
|
1322 |
if (["options", "rules", "lexer"].includes(s))
|
1323 |
continue;
|
1324 |
-
const o = s, a = n.tokenizer[o],
|
1325 |
l[o] = (...c) => {
|
1326 |
-
let
|
1327 |
-
return
|
1328 |
};
|
1329 |
}
|
1330 |
i.tokenizer = l;
|
@@ -1336,15 +1336,15 @@ class Ot {
|
|
1336 |
throw new Error(`hook '${s}' does not exist`);
|
1337 |
if (s === "options")
|
1338 |
continue;
|
1339 |
-
const o = s, a = n.hooks[o],
|
1340 |
G.passThroughHooks.has(s) ? l[o] = (c) => {
|
1341 |
if (this.defaults.async)
|
1342 |
-
return Promise.resolve(a.call(l, c)).then((p) =>
|
1343 |
-
const
|
1344 |
-
return
|
1345 |
} : l[o] = (...c) => {
|
1346 |
-
let
|
1347 |
-
return
|
1348 |
};
|
1349 |
}
|
1350 |
i.hooks = l;
|
@@ -1384,8 +1384,8 @@ Z = new WeakSet(), pe = function(e, t) {
|
|
1384 |
s.hooks && (n = s.hooks.preprocess(n));
|
1385 |
let a = e(n, s);
|
1386 |
s.hooks && (a = s.hooks.processAllTokens(a)), s.walkTokens && this.walkTokens(a, s.walkTokens);
|
1387 |
-
let
|
1388 |
-
return s.hooks && (
|
1389 |
} catch (a) {
|
1390 |
return o(a);
|
1391 |
}
|
@@ -1458,7 +1458,7 @@ const {
|
|
1458 |
set_style: j,
|
1459 |
space: V,
|
1460 |
src_url_equal: re,
|
1461 |
-
text:
|
1462 |
toggle_class: M
|
1463 |
} = window.__gradio__svelte__internal;
|
1464 |
function Le(r, e, t) {
|
@@ -1472,7 +1472,7 @@ function Me(r) {
|
|
1472 |
);
|
1473 |
return {
|
1474 |
c() {
|
1475 |
-
e = A("label"), i && i.c(), t = V(), n =
|
1476 |
/*label*/
|
1477 |
r[3]
|
1478 |
), this.h();
|
@@ -1487,7 +1487,7 @@ function Me(r) {
|
|
1487 |
), s.forEach(v), this.h();
|
1488 |
},
|
1489 |
h() {
|
1490 |
-
k(e, "class", "block-title svelte-
|
1491 |
},
|
1492 |
m(l, s) {
|
1493 |
B(l, e, s), i && i.m(e, null), I(e, t), I(e, n);
|
@@ -1526,7 +1526,7 @@ function Pe(r) {
|
|
1526 |
l.l(o), o.forEach(v), this.h();
|
1527 |
},
|
1528 |
h() {
|
1529 |
-
k(e, "class", "label-icon-container svelte-
|
1530 |
},
|
1531 |
m(s, o) {
|
1532 |
B(s, e, o), l.m(e, null);
|
@@ -1543,7 +1543,7 @@ function Gt(r) {
|
|
1543 |
let e, t;
|
1544 |
return {
|
1545 |
c() {
|
1546 |
-
e = A("span"), t =
|
1547 |
/*label_icon*/
|
1548 |
r[0]
|
1549 |
), this.h();
|
@@ -1558,7 +1558,7 @@ function Gt(r) {
|
|
1558 |
), i.forEach(v), this.h();
|
1559 |
},
|
1560 |
h() {
|
1561 |
-
k(e, "class", "label-icon-emoji svelte-
|
1562 |
},
|
1563 |
m(n, i) {
|
1564 |
B(n, e, i), I(e, t);
|
@@ -1587,7 +1587,7 @@ function Wt(r) {
|
|
1587 |
},
|
1588 |
h() {
|
1589 |
re(e.src, t = /*label_icon*/
|
1590 |
-
r[0]) || k(e, "src", t), k(e, "alt", "Label Icon"), k(e, "class", "label-icon-image svelte-
|
1591 |
},
|
1592 |
m(l, s) {
|
1593 |
B(l, e, s), n || (i = We(
|
@@ -1617,7 +1617,7 @@ function Ut(r) {
|
|
1617 |
), n;
|
1618 |
return {
|
1619 |
c() {
|
1620 |
-
e = A("span"), n =
|
1621 |
},
|
1622 |
l(i) {
|
1623 |
e = S(i, "SPAN", { class: !0 });
|
@@ -1625,7 +1625,7 @@ function Ut(r) {
|
|
1625 |
n = ae(l, t), l.forEach(v), this.h();
|
1626 |
},
|
1627 |
h() {
|
1628 |
-
k(e, "class", "avatar-emoji svelte-
|
1629 |
},
|
1630 |
m(i, l) {
|
1631 |
B(i, e, l), I(e, n);
|
@@ -1668,7 +1668,7 @@ function Jt(r) {
|
|
1668 |
/*participant*/
|
1669 |
r[31]
|
1670 |
)) || k(e, "src", t), k(e, "alt", n = /*participant*/
|
1671 |
-
r[31]), k(e, "class", "avatar-image svelte-
|
1672 |
},
|
1673 |
m(o, a) {
|
1674 |
B(o, e, a), i || (l = We(e, "error", s), i = !0);
|
@@ -1698,7 +1698,7 @@ function qe(r) {
|
|
1698 |
r[31]
|
1699 |
)
|
1700 |
) + ""
|
1701 |
-
), s, o, a,
|
1702 |
/*participant*/
|
1703 |
r[31] + ""
|
1704 |
), x, y;
|
@@ -1713,7 +1713,7 @@ function qe(r) {
|
|
1713 |
let L = z(r, [-1, -1]), T = L(r);
|
1714 |
return {
|
1715 |
c() {
|
1716 |
-
e = A("div"), t = A("div"), n = A("div"), i = new jt(!1), s = V(), o = A("div"), a = V(),
|
1717 |
},
|
1718 |
l(d) {
|
1719 |
e = S(d, "DIV", { class: !0, style: !0 });
|
@@ -1722,14 +1722,14 @@ function qe(r) {
|
|
1722 |
var R = $(t);
|
1723 |
n = S(R, "DIV", { class: !0 });
|
1724 |
var J = $(n);
|
1725 |
-
i = Nt(J, !1), J.forEach(v), s = N(R), o = S(R, "DIV", { class: !0 }), $(o).forEach(v), R.forEach(v), a = N(m),
|
1726 |
-
var X = $(
|
1727 |
-
T.l(X), X.forEach(v),
|
1728 |
var Y = $(p);
|
1729 |
x = ae(Y, g), Y.forEach(v), y = N(m), m.forEach(v), this.h();
|
1730 |
},
|
1731 |
h() {
|
1732 |
-
i.a = null, k(n, "class", "bubble-content svelte-
|
1733 |
t,
|
1734 |
"visible",
|
1735 |
/*isBubbleVisible*/
|
@@ -1737,8 +1737,8 @@ function qe(r) {
|
|
1737 |
/*participant*/
|
1738 |
r[31]
|
1739 |
)
|
1740 |
-
), k(
|
1741 |
-
|
1742 |
"speaking",
|
1743 |
/*isAvatarActive*/
|
1744 |
r[17](
|
@@ -1746,7 +1746,7 @@ function qe(r) {
|
|
1746 |
r[31]
|
1747 |
)
|
1748 |
), M(
|
1749 |
-
|
1750 |
"thinking",
|
1751 |
/*thinking*/
|
1752 |
r[7].includes(
|
@@ -1754,20 +1754,20 @@ function qe(r) {
|
|
1754 |
r[31]
|
1755 |
)
|
1756 |
), M(
|
1757 |
-
|
1758 |
"responding",
|
1759 |
/*currentSpeaker*/
|
1760 |
r[6] === /*participant*/
|
1761 |
r[31]
|
1762 |
), M(
|
1763 |
-
|
1764 |
"has-image",
|
1765 |
/*hasCustomImage*/
|
1766 |
r[14](
|
1767 |
/*participant*/
|
1768 |
r[31]
|
1769 |
)
|
1770 |
-
), k(p, "class", "participant-name svelte-
|
1771 |
/*index*/
|
1772 |
r[33],
|
1773 |
/*participants*/
|
@@ -1785,7 +1785,7 @@ function qe(r) {
|
|
1785 |
).transform);
|
1786 |
},
|
1787 |
m(d, m) {
|
1788 |
-
B(d, e, m), I(e, t), I(t, n), i.m(l, n), I(t, s), I(t, o), I(e, a), I(e,
|
1789 |
},
|
1790 |
p(d, m) {
|
1791 |
m[0] & /*participants*/
|
@@ -1805,9 +1805,9 @@ function qe(r) {
|
|
1805 |
/*participant*/
|
1806 |
d[31]
|
1807 |
)
|
1808 |
-
), L === (L = z(d, m)) && T ? T.p(d, m) : (T.d(1), T = L(d), T && (T.c(), T.m(
|
1809 |
131104 && M(
|
1810 |
-
|
1811 |
"speaking",
|
1812 |
/*isAvatarActive*/
|
1813 |
d[17](
|
@@ -1816,7 +1816,7 @@ function qe(r) {
|
|
1816 |
)
|
1817 |
), m[0] & /*thinking, participants*/
|
1818 |
160 && M(
|
1819 |
-
|
1820 |
"thinking",
|
1821 |
/*thinking*/
|
1822 |
d[7].includes(
|
@@ -1825,14 +1825,14 @@ function qe(r) {
|
|
1825 |
)
|
1826 |
), m[0] & /*currentSpeaker, participants*/
|
1827 |
96 && M(
|
1828 |
-
|
1829 |
"responding",
|
1830 |
/*currentSpeaker*/
|
1831 |
d[6] === /*participant*/
|
1832 |
d[31]
|
1833 |
), m[0] & /*hasCustomImage, participants*/
|
1834 |
16416 && M(
|
1835 |
-
|
1836 |
"has-image",
|
1837 |
/*hasCustomImage*/
|
1838 |
d[14](
|
@@ -1871,21 +1871,21 @@ function Xt(r) {
|
|
1871 |
/*show_label*/
|
1872 |
r[4] && /*label*/
|
1873 |
r[3] && Me(r)
|
1874 |
-
),
|
1875 |
/*participants*/
|
1876 |
r[5]
|
1877 |
), c = [];
|
1878 |
-
for (let
|
1879 |
-
c[
|
1880 |
return {
|
1881 |
c() {
|
1882 |
e = A("div"), t = A("div"), n = A("div"), a && a.c(), i = V(), l = A("div");
|
1883 |
-
for (let
|
1884 |
-
c[
|
1885 |
this.h();
|
1886 |
},
|
1887 |
-
l(
|
1888 |
-
e = S(
|
1889 |
var p = $(e);
|
1890 |
t = S(p, "DIV", { class: !0, id: !0 });
|
1891 |
var g = $(t);
|
@@ -1898,10 +1898,10 @@ function Xt(r) {
|
|
1898 |
y.forEach(v), g.forEach(v), p.forEach(v), this.h();
|
1899 |
},
|
1900 |
h() {
|
1901 |
-
k(n, "class", "table-center svelte-
|
1902 |
/*containerClasses*/
|
1903 |
r[10]
|
1904 |
-
) + " svelte-
|
1905 |
e,
|
1906 |
"id",
|
1907 |
/*elem_id*/
|
@@ -1911,50 +1911,50 @@ function Xt(r) {
|
|
1911 |
r[8]), M(e, "hidden", !/*visible*/
|
1912 |
r[2]);
|
1913 |
},
|
1914 |
-
m(
|
1915 |
-
B(
|
1916 |
for (let g = 0; g < c.length; g += 1)
|
1917 |
c[g] && c[g].m(l, null);
|
1918 |
},
|
1919 |
-
p(
|
1920 |
if (/*show_label*/
|
1921 |
-
|
1922 |
-
|
1923 |
522464) {
|
1924 |
-
|
1925 |
/*participants*/
|
1926 |
-
|
1927 |
);
|
1928 |
let g;
|
1929 |
-
for (g = 0; g <
|
1930 |
-
const x = Le(
|
1931 |
c[g] ? c[g].p(x, p) : (c[g] = qe(x), c[g].c(), c[g].m(l, null));
|
1932 |
}
|
1933 |
for (; g < c.length; g += 1)
|
1934 |
c[g].d(1);
|
1935 |
-
c.length =
|
1936 |
}
|
1937 |
p[0] & /*containerClasses*/
|
1938 |
1024 && s !== (s = Ce(
|
1939 |
/*containerClasses*/
|
1940 |
-
|
1941 |
-
) + " svelte-
|
1942 |
2 && k(
|
1943 |
e,
|
1944 |
"id",
|
1945 |
/*elem_id*/
|
1946 |
-
|
1947 |
), p[0] & /*containerStyle, minWidthStyle*/
|
1948 |
768 && o !== (o = /*containerStyle*/
|
1949 |
-
|
1950 |
-
|
1951 |
1028 && M(e, "hidden", !/*visible*/
|
1952 |
-
|
1953 |
},
|
1954 |
i: $e,
|
1955 |
o: $e,
|
1956 |
-
d(
|
1957 |
-
|
1958 |
}
|
1959 |
};
|
1960 |
}
|
@@ -1970,7 +1970,7 @@ function Yt(r) {
|
|
1970 |
return r ? r.startsWith("http://") || r.startsWith("https://") || r.startsWith("data:") : !1;
|
1971 |
}
|
1972 |
function Kt(r, e, t) {
|
1973 |
-
let n, i, l, { gradio: s } = e, { elem_id: o = "" } = e, { elem_classes: a = [] } = e, { visible:
|
1974 |
function J() {
|
1975 |
try {
|
1976 |
const f = JSON.parse(c);
|
@@ -2051,7 +2051,7 @@ function Kt(r, e, t) {
|
|
2051 |
}
|
2052 |
const nt = (f, E) => _e(E, f);
|
2053 |
return r.$$set = (f) => {
|
2054 |
-
"gradio" in f && t(20, s = f.gradio), "elem_id" in f && t(1, o = f.elem_id), "elem_classes" in f && t(21, a = f.elem_classes), "visible" in f && t(2,
|
2055 |
}, r.$$.update = () => {
|
2056 |
r.$$.dirty[0] & /*elem_classes*/
|
2057 |
2097152 && t(10, n = `wrapper ${a.join(" ")}`), r.$$.dirty[0] & /*scale*/
|
@@ -2061,8 +2061,8 @@ function Kt(r, e, t) {
|
|
2061 |
}, [
|
2062 |
p,
|
2063 |
o,
|
2064 |
-
u,
|
2065 |
h,
|
|
|
2066 |
g,
|
2067 |
z,
|
2068 |
T,
|
@@ -2121,8 +2121,8 @@ const {
|
|
2121 |
mount_component: on,
|
2122 |
noop: an,
|
2123 |
safe_not_equal: cn,
|
2124 |
-
transition_in:
|
2125 |
-
transition_out:
|
2126 |
} = window.__gradio__svelte__internal, { onMount: dn } = window.__gradio__svelte__internal;
|
2127 |
function pn(r) {
|
2128 |
let e, t;
|
@@ -2153,10 +2153,10 @@ function pn(r) {
|
|
2153 |
},
|
2154 |
p: an,
|
2155 |
i(n) {
|
2156 |
-
t || (
|
2157 |
},
|
2158 |
o(n) {
|
2159 |
-
|
2160 |
},
|
2161 |
d(n) {
|
2162 |
ln(e, n);
|
|
|
40 |
return r;
|
41 |
}
|
42 |
const ct = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
|
43 |
+
function ut(r) {
|
44 |
return r.replace(ct, (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)) : ""));
|
45 |
}
|
46 |
+
const ht = /(^|[^\[])\^/g;
|
47 |
function w(r, e) {
|
48 |
let t = typeof r == "string" ? r : r.source;
|
49 |
e = e || "";
|
50 |
const n = {
|
51 |
replace: (i, l) => {
|
52 |
let s = typeof l == "string" ? l : l.source;
|
53 |
+
return s = s.replace(ht, "$1"), t = t.replace(i, s), n;
|
54 |
},
|
55 |
getRegex: () => new RegExp(t, e)
|
56 |
};
|
|
|
67 |
const F = { exec: () => null };
|
68 |
function Re(r, e) {
|
69 |
const t = r.replace(/\|/g, (l, s, o) => {
|
70 |
+
let a = !1, h = s;
|
71 |
+
for (; --h >= 0 && o[h] === "\\"; )
|
72 |
a = !a;
|
73 |
return a ? "|" : " |";
|
74 |
}), n = t.split(/ \|/);
|
|
|
241 |
};
|
242 |
n = i ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = i ? n : "[*+-]");
|
243 |
const s = new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`);
|
244 |
+
let o = "", a = "", h = !1;
|
245 |
for (; e; ) {
|
246 |
let c = !1;
|
247 |
if (!(t = s.exec(e)) || this.rules.block.hr.test(e))
|
248 |
break;
|
249 |
o = t[0], e = e.substring(o.length);
|
250 |
+
let u = t[2].split(`
|
251 |
`, 1)[0].replace(/^\t+/, (L) => " ".repeat(3 * L.length)), p = e.split(`
|
252 |
`, 1)[0], g = 0;
|
253 |
+
this.options.pedantic ? (g = 2, a = u.trimStart()) : (g = t[2].search(/[^ ]/), g = g > 4 ? 1 : g, a = u.slice(g), g += t[1].length);
|
254 |
let x = !1;
|
255 |
+
if (!u && /^ *$/.test(p) && (o += p + `
|
256 |
`, e = e.substring(p.length + 1), c = !0), !c) {
|
257 |
const L = new RegExp(`^ {0,${Math.min(3, g - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), T = new RegExp(`^ {0,${Math.min(3, g - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), d = new RegExp(`^ {0,${Math.min(3, g - 1)}}(?:\`\`\`|~~~)`), m = new RegExp(`^ {0,${Math.min(3, g - 1)}}#`);
|
258 |
for (; e; ) {
|
|
|
264 |
a += `
|
265 |
` + p.slice(g);
|
266 |
else {
|
267 |
+
if (x || u.search(/[^ ]/) >= 4 || d.test(u) || m.test(u) || T.test(u))
|
268 |
break;
|
269 |
a += `
|
270 |
` + p;
|
271 |
}
|
272 |
!x && !p.trim() && (x = !0), o += R + `
|
273 |
+
`, e = e.substring(R.length + 1), u = p.slice(g);
|
274 |
}
|
275 |
}
|
276 |
+
l.loose || (h ? l.loose = !0 : /\n *\n *$/.test(o) && (h = !0));
|
277 |
let y = null, z;
|
278 |
this.options.gfm && (y = /^\[[ xX]\] /.exec(a), y && (z = y[0] !== "[ ] ", a = a.replace(/^\[[ xX]\] +/, ""))), l.items.push({
|
279 |
type: "list_item",
|
|
|
288 |
l.items[l.items.length - 1].raw = o.trimEnd(), l.items[l.items.length - 1].text = a.trimEnd(), l.raw = l.raw.trimEnd();
|
289 |
for (let c = 0; c < l.items.length; c++)
|
290 |
if (this.lexer.state.top = !1, l.items[c].tokens = this.lexer.blockTokens(l.items[c].text, []), !l.loose) {
|
291 |
+
const u = l.items[c].tokens.filter((g) => g.type === "space"), p = u.length > 0 && u.some((g) => /\n.*\n/.test(g.raw));
|
292 |
l.loose = p;
|
293 |
}
|
294 |
if (l.loose)
|
|
|
454 |
return;
|
455 |
if (!(i[1] || i[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
|
456 |
const s = [...i[0]].length - 1;
|
457 |
+
let o, a, h = s, c = 0;
|
458 |
+
const u = i[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
459 |
+
for (u.lastIndex = 0, t = t.slice(-1 * e.length + s); (i = u.exec(t)) != null; ) {
|
460 |
if (o = i[1] || i[2] || i[3] || i[4] || i[5] || i[6], !o)
|
461 |
continue;
|
462 |
if (a = [...o].length, i[3] || i[4]) {
|
463 |
+
h += a;
|
464 |
continue;
|
465 |
} else if ((i[5] || i[6]) && s % 3 && !((s + a) % 3)) {
|
466 |
c += a;
|
467 |
continue;
|
468 |
}
|
469 |
+
if (h -= a, h > 0)
|
470 |
continue;
|
471 |
+
a = Math.min(a, a + h + c);
|
472 |
const p = [...i[0]][0].length, g = e.slice(0, s + i.index + p + a);
|
473 |
if (Math.min(s, a) % 2) {
|
474 |
const y = g.slice(1, -1);
|
|
|
632 |
...be,
|
633 |
link: w(/^!?\[(label)\]\((.*?)\)/).replace("label", ie).getRegex(),
|
634 |
reflink: w(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", ie).getRegex()
|
635 |
+
}, he = {
|
636 |
...be,
|
637 |
escape: w(Ne).replace("])", "~|])").getRegex(),
|
638 |
url: w(/^((?: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(),
|
|
|
640 |
del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,
|
641 |
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
642 |
}, Zt = {
|
643 |
+
...he,
|
644 |
br: w(Ve).replace("{2,}", "*").getRegex(),
|
645 |
+
text: w(he.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
646 |
}, ne = {
|
647 |
normal: me,
|
648 |
gfm: vt,
|
649 |
pedantic: Tt
|
650 |
}, H = {
|
651 |
normal: be,
|
652 |
+
gfm: he,
|
653 |
breaks: Zt,
|
654 |
pedantic: Dt
|
655 |
};
|
|
|
705 |
return this.inlineQueue = [], this.tokens;
|
706 |
}
|
707 |
blockTokens(e, t = []) {
|
708 |
+
this.options.pedantic ? e = e.replace(/\t/g, " ").replace(/^ +$/gm, "") : e = e.replace(/^( *)(\t+)/gm, (o, a, h) => a + " ".repeat(h.length));
|
709 |
let n, i, l, s;
|
710 |
for (; e; )
|
711 |
if (!(this.options.extensions && this.options.extensions.block && this.options.extensions.block.some((o) => (n = o.call({ lexer: this }, e, t)) ? (e = e.substring(n.raw.length), t.push(n), !0) : !1))) {
|
|
|
764 |
if (l = e, this.options.extensions && this.options.extensions.startBlock) {
|
765 |
let o = 1 / 0;
|
766 |
const a = e.slice(1);
|
767 |
+
let h;
|
768 |
this.options.extensions.startBlock.forEach((c) => {
|
769 |
+
h = c.call({ lexer: this }, a), typeof h == "number" && h >= 0 && (o = Math.min(o, h));
|
770 |
}), o < 1 / 0 && o >= 0 && (l = e.substring(0, o + 1));
|
771 |
}
|
772 |
if (this.state.top && (n = this.tokenizer.paragraph(l))) {
|
|
|
799 |
* Lexing/Compiling
|
800 |
*/
|
801 |
inlineTokens(e, t = []) {
|
802 |
+
let n, i, l, s = e, o, a, h;
|
803 |
if (this.tokens.links) {
|
804 |
const c = Object.keys(this.tokens.links);
|
805 |
if (c.length > 0)
|
|
|
811 |
for (; (o = this.tokenizer.rules.inline.anyPunctuation.exec(s)) != null; )
|
812 |
s = s.slice(0, o.index) + "++" + s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
813 |
for (; e; )
|
814 |
+
if (a || (h = ""), a = !1, !(this.options.extensions && this.options.extensions.inline && this.options.extensions.inline.some((c) => (n = c.call({ lexer: this }, e, t)) ? (e = e.substring(n.raw.length), t.push(n), !0) : !1))) {
|
815 |
if (n = this.tokenizer.escape(e)) {
|
816 |
e = e.substring(n.raw.length), t.push(n);
|
817 |
continue;
|
|
|
828 |
e = e.substring(n.raw.length), i = t[t.length - 1], i && n.type === "text" && i.type === "text" ? (i.raw += n.raw, i.text += n.text) : t.push(n);
|
829 |
continue;
|
830 |
}
|
831 |
+
if (n = this.tokenizer.emStrong(e, s, h)) {
|
832 |
e = e.substring(n.raw.length), t.push(n);
|
833 |
continue;
|
834 |
}
|
|
|
854 |
}
|
855 |
if (l = e, this.options.extensions && this.options.extensions.startInline) {
|
856 |
let c = 1 / 0;
|
857 |
+
const u = e.slice(1);
|
858 |
let p;
|
859 |
this.options.extensions.startInline.forEach((g) => {
|
860 |
+
p = g.call({ lexer: this }, u), typeof p == "number" && p >= 0 && (c = Math.min(c, p));
|
861 |
}), c < 1 / 0 && c >= 0 && (l = e.substring(0, c + 1));
|
862 |
}
|
863 |
if (n = this.tokenizer.inlineText(l)) {
|
864 |
+
e = e.substring(n.raw.length), n.raw.slice(-1) !== "_" && (h = n.raw.slice(-1)), a = !0, i = t[t.length - 1], i && i.type === "text" ? (i.raw += n.raw, i.text += n.text) : t.push(n);
|
865 |
continue;
|
866 |
}
|
867 |
if (e) {
|
|
|
1049 |
}
|
1050 |
case "heading": {
|
1051 |
const s = l;
|
1052 |
+
n += this.renderer.heading(this.parseInline(s.tokens), s.depth, ut(this.parseInline(s.tokens, this.textRenderer)));
|
1053 |
continue;
|
1054 |
}
|
1055 |
case "code": {
|
|
|
1063 |
for (let c = 0; c < s.header.length; c++)
|
1064 |
a += this.renderer.tablecell(this.parseInline(s.header[c].tokens), { header: !0, align: s.align[c] });
|
1065 |
o += this.renderer.tablerow(a);
|
1066 |
+
let h = "";
|
1067 |
for (let c = 0; c < s.rows.length; c++) {
|
1068 |
+
const u = s.rows[c];
|
1069 |
a = "";
|
1070 |
+
for (let p = 0; p < u.length; p++)
|
1071 |
+
a += this.renderer.tablecell(this.parseInline(u[p].tokens), { header: !1, align: s.align[p] });
|
1072 |
+
h += this.renderer.tablerow(a);
|
1073 |
}
|
1074 |
+
n += this.renderer.table(o, h);
|
1075 |
continue;
|
1076 |
}
|
1077 |
case "blockquote": {
|
|
|
1080 |
continue;
|
1081 |
}
|
1082 |
case "list": {
|
1083 |
+
const s = l, o = s.ordered, a = s.start, h = s.loose;
|
1084 |
let c = "";
|
1085 |
+
for (let u = 0; u < s.items.length; u++) {
|
1086 |
+
const p = s.items[u], g = p.checked, x = p.task;
|
1087 |
let y = "";
|
1088 |
if (p.task) {
|
1089 |
const z = this.renderer.checkbox(!!g);
|
1090 |
+
h ? p.tokens.length > 0 && p.tokens[0].type === "paragraph" ? (p.tokens[0].text = z + " " + p.tokens[0].text, p.tokens[0].tokens && p.tokens[0].tokens.length > 0 && p.tokens[0].tokens[0].type === "text" && (p.tokens[0].tokens[0].text = z + " " + p.tokens[0].tokens[0].text)) : p.tokens.unshift({
|
1091 |
type: "text",
|
1092 |
text: z + " "
|
1093 |
}) : y += z + " ";
|
1094 |
}
|
1095 |
+
y += this.parse(p.tokens, h), c += this.renderer.listitem(y, x, !!g);
|
1096 |
}
|
1097 |
n += this.renderer.list(c, o, a);
|
1098 |
continue;
|
|
|
1259 |
for (const a of o.header)
|
1260 |
n = n.concat(this.walkTokens(a.tokens, t));
|
1261 |
for (const a of o.rows)
|
1262 |
+
for (const h of a)
|
1263 |
+
n = n.concat(this.walkTokens(h.tokens, t));
|
1264 |
break;
|
1265 |
}
|
1266 |
case "list": {
|
|
|
1271 |
default: {
|
1272 |
const o = s;
|
1273 |
(l = (i = this.defaults.extensions) == null ? void 0 : i.childTokens) != null && l[o.type] ? this.defaults.extensions.childTokens[o.type].forEach((a) => {
|
1274 |
+
const h = o[a].flat(1 / 0);
|
1275 |
+
n = n.concat(this.walkTokens(h, t));
|
1276 |
}) : o.tokens && (n = n.concat(this.walkTokens(o.tokens, t)));
|
1277 |
}
|
1278 |
}
|
|
|
1306 |
throw new Error(`renderer '${s}' does not exist`);
|
1307 |
if (s === "options")
|
1308 |
continue;
|
1309 |
+
const o = s, a = n.renderer[o], h = l[o];
|
1310 |
l[o] = (...c) => {
|
1311 |
+
let u = a.apply(l, c);
|
1312 |
+
return u === !1 && (u = h.apply(l, c)), u || "";
|
1313 |
};
|
1314 |
}
|
1315 |
i.renderer = l;
|
|
|
1321 |
throw new Error(`tokenizer '${s}' does not exist`);
|
1322 |
if (["options", "rules", "lexer"].includes(s))
|
1323 |
continue;
|
1324 |
+
const o = s, a = n.tokenizer[o], h = l[o];
|
1325 |
l[o] = (...c) => {
|
1326 |
+
let u = a.apply(l, c);
|
1327 |
+
return u === !1 && (u = h.apply(l, c)), u;
|
1328 |
};
|
1329 |
}
|
1330 |
i.tokenizer = l;
|
|
|
1336 |
throw new Error(`hook '${s}' does not exist`);
|
1337 |
if (s === "options")
|
1338 |
continue;
|
1339 |
+
const o = s, a = n.hooks[o], h = l[o];
|
1340 |
G.passThroughHooks.has(s) ? l[o] = (c) => {
|
1341 |
if (this.defaults.async)
|
1342 |
+
return Promise.resolve(a.call(l, c)).then((p) => h.call(l, p));
|
1343 |
+
const u = a.call(l, c);
|
1344 |
+
return h.call(l, u);
|
1345 |
} : l[o] = (...c) => {
|
1346 |
+
let u = a.apply(l, c);
|
1347 |
+
return u === !1 && (u = h.apply(l, c)), u;
|
1348 |
};
|
1349 |
}
|
1350 |
i.hooks = l;
|
|
|
1384 |
s.hooks && (n = s.hooks.preprocess(n));
|
1385 |
let a = e(n, s);
|
1386 |
s.hooks && (a = s.hooks.processAllTokens(a)), s.walkTokens && this.walkTokens(a, s.walkTokens);
|
1387 |
+
let h = t(a, s);
|
1388 |
+
return s.hooks && (h = s.hooks.postprocess(h)), h;
|
1389 |
} catch (a) {
|
1390 |
return o(a);
|
1391 |
}
|
|
|
1458 |
set_style: j,
|
1459 |
space: V,
|
1460 |
src_url_equal: re,
|
1461 |
+
text: ue,
|
1462 |
toggle_class: M
|
1463 |
} = window.__gradio__svelte__internal;
|
1464 |
function Le(r, e, t) {
|
|
|
1472 |
);
|
1473 |
return {
|
1474 |
c() {
|
1475 |
+
e = A("label"), i && i.c(), t = V(), n = ue(
|
1476 |
/*label*/
|
1477 |
r[3]
|
1478 |
), this.h();
|
|
|
1487 |
), s.forEach(v), this.h();
|
1488 |
},
|
1489 |
h() {
|
1490 |
+
k(e, "class", "block-title svelte-iy6e0k"), k(e, "for", "consilium-roundtable");
|
1491 |
},
|
1492 |
m(l, s) {
|
1493 |
B(l, e, s), i && i.m(e, null), I(e, t), I(e, n);
|
|
|
1526 |
l.l(o), o.forEach(v), this.h();
|
1527 |
},
|
1528 |
h() {
|
1529 |
+
k(e, "class", "label-icon-container svelte-iy6e0k");
|
1530 |
},
|
1531 |
m(s, o) {
|
1532 |
B(s, e, o), l.m(e, null);
|
|
|
1543 |
let e, t;
|
1544 |
return {
|
1545 |
c() {
|
1546 |
+
e = A("span"), t = ue(
|
1547 |
/*label_icon*/
|
1548 |
r[0]
|
1549 |
), this.h();
|
|
|
1558 |
), i.forEach(v), this.h();
|
1559 |
},
|
1560 |
h() {
|
1561 |
+
k(e, "class", "label-icon-emoji svelte-iy6e0k");
|
1562 |
},
|
1563 |
m(n, i) {
|
1564 |
B(n, e, i), I(e, t);
|
|
|
1587 |
},
|
1588 |
h() {
|
1589 |
re(e.src, t = /*label_icon*/
|
1590 |
+
r[0]) || k(e, "src", t), k(e, "alt", "Label Icon"), k(e, "class", "label-icon-image svelte-iy6e0k");
|
1591 |
},
|
1592 |
m(l, s) {
|
1593 |
B(l, e, s), n || (i = We(
|
|
|
1617 |
), n;
|
1618 |
return {
|
1619 |
c() {
|
1620 |
+
e = A("span"), n = ue(t), this.h();
|
1621 |
},
|
1622 |
l(i) {
|
1623 |
e = S(i, "SPAN", { class: !0 });
|
|
|
1625 |
n = ae(l, t), l.forEach(v), this.h();
|
1626 |
},
|
1627 |
h() {
|
1628 |
+
k(e, "class", "avatar-emoji svelte-iy6e0k");
|
1629 |
},
|
1630 |
m(i, l) {
|
1631 |
B(i, e, l), I(e, n);
|
|
|
1668 |
/*participant*/
|
1669 |
r[31]
|
1670 |
)) || k(e, "src", t), k(e, "alt", n = /*participant*/
|
1671 |
+
r[31]), k(e, "class", "avatar-image svelte-iy6e0k");
|
1672 |
},
|
1673 |
m(o, a) {
|
1674 |
B(o, e, a), i || (l = We(e, "error", s), i = !0);
|
|
|
1698 |
r[31]
|
1699 |
)
|
1700 |
) + ""
|
1701 |
+
), s, o, a, h, c, u, p, g = (
|
1702 |
/*participant*/
|
1703 |
r[31] + ""
|
1704 |
), x, y;
|
|
|
1713 |
let L = z(r, [-1, -1]), T = L(r);
|
1714 |
return {
|
1715 |
c() {
|
1716 |
+
e = A("div"), t = A("div"), n = A("div"), i = new jt(!1), s = V(), o = A("div"), a = V(), h = A("div"), T.c(), u = V(), p = A("div"), x = ue(g), y = V(), this.h();
|
1717 |
},
|
1718 |
l(d) {
|
1719 |
e = S(d, "DIV", { class: !0, style: !0 });
|
|
|
1722 |
var R = $(t);
|
1723 |
n = S(R, "DIV", { class: !0 });
|
1724 |
var J = $(n);
|
1725 |
+
i = Nt(J, !1), J.forEach(v), s = N(R), o = S(R, "DIV", { class: !0 }), $(o).forEach(v), R.forEach(v), a = N(m), h = S(m, "DIV", { class: !0, role: !0, tabindex: !0 });
|
1726 |
+
var X = $(h);
|
1727 |
+
T.l(X), X.forEach(v), u = N(m), p = S(m, "DIV", { class: !0 });
|
1728 |
var Y = $(p);
|
1729 |
x = ae(Y, g), Y.forEach(v), y = N(m), m.forEach(v), this.h();
|
1730 |
},
|
1731 |
h() {
|
1732 |
+
i.a = null, k(n, "class", "bubble-content svelte-iy6e0k"), k(o, "class", "bubble-arrow svelte-iy6e0k"), k(t, "class", "speech-bubble svelte-iy6e0k"), M(
|
1733 |
t,
|
1734 |
"visible",
|
1735 |
/*isBubbleVisible*/
|
|
|
1737 |
/*participant*/
|
1738 |
r[31]
|
1739 |
)
|
1740 |
+
), k(h, "class", "avatar svelte-iy6e0k"), k(h, "role", "button"), k(h, "tabindex", "0"), M(
|
1741 |
+
h,
|
1742 |
"speaking",
|
1743 |
/*isAvatarActive*/
|
1744 |
r[17](
|
|
|
1746 |
r[31]
|
1747 |
)
|
1748 |
), M(
|
1749 |
+
h,
|
1750 |
"thinking",
|
1751 |
/*thinking*/
|
1752 |
r[7].includes(
|
|
|
1754 |
r[31]
|
1755 |
)
|
1756 |
), M(
|
1757 |
+
h,
|
1758 |
"responding",
|
1759 |
/*currentSpeaker*/
|
1760 |
r[6] === /*participant*/
|
1761 |
r[31]
|
1762 |
), M(
|
1763 |
+
h,
|
1764 |
"has-image",
|
1765 |
/*hasCustomImage*/
|
1766 |
r[14](
|
1767 |
/*participant*/
|
1768 |
r[31]
|
1769 |
)
|
1770 |
+
), k(p, "class", "participant-name svelte-iy6e0k"), k(e, "class", "participant-seat svelte-iy6e0k"), j(e, "left", Q(
|
1771 |
/*index*/
|
1772 |
r[33],
|
1773 |
/*participants*/
|
|
|
1785 |
).transform);
|
1786 |
},
|
1787 |
m(d, m) {
|
1788 |
+
B(d, e, m), I(e, t), I(t, n), i.m(l, n), I(t, s), I(t, o), I(e, a), I(e, h), T.m(h, null), I(e, u), I(e, p), I(p, x), I(e, y);
|
1789 |
},
|
1790 |
p(d, m) {
|
1791 |
m[0] & /*participants*/
|
|
|
1805 |
/*participant*/
|
1806 |
d[31]
|
1807 |
)
|
1808 |
+
), L === (L = z(d, m)) && T ? T.p(d, m) : (T.d(1), T = L(d), T && (T.c(), T.m(h, null))), m[0] & /*isAvatarActive, participants*/
|
1809 |
131104 && M(
|
1810 |
+
h,
|
1811 |
"speaking",
|
1812 |
/*isAvatarActive*/
|
1813 |
d[17](
|
|
|
1816 |
)
|
1817 |
), m[0] & /*thinking, participants*/
|
1818 |
160 && M(
|
1819 |
+
h,
|
1820 |
"thinking",
|
1821 |
/*thinking*/
|
1822 |
d[7].includes(
|
|
|
1825 |
)
|
1826 |
), m[0] & /*currentSpeaker, participants*/
|
1827 |
96 && M(
|
1828 |
+
h,
|
1829 |
"responding",
|
1830 |
/*currentSpeaker*/
|
1831 |
d[6] === /*participant*/
|
1832 |
d[31]
|
1833 |
), m[0] & /*hasCustomImage, participants*/
|
1834 |
16416 && M(
|
1835 |
+
h,
|
1836 |
"has-image",
|
1837 |
/*hasCustomImage*/
|
1838 |
d[14](
|
|
|
1871 |
/*show_label*/
|
1872 |
r[4] && /*label*/
|
1873 |
r[3] && Me(r)
|
1874 |
+
), h = Ee(
|
1875 |
/*participants*/
|
1876 |
r[5]
|
1877 |
), c = [];
|
1878 |
+
for (let u = 0; u < h.length; u += 1)
|
1879 |
+
c[u] = qe(Le(r, h, u));
|
1880 |
return {
|
1881 |
c() {
|
1882 |
e = A("div"), t = A("div"), n = A("div"), a && a.c(), i = V(), l = A("div");
|
1883 |
+
for (let u = 0; u < c.length; u += 1)
|
1884 |
+
c[u].c();
|
1885 |
this.h();
|
1886 |
},
|
1887 |
+
l(u) {
|
1888 |
+
e = S(u, "DIV", { class: !0, id: !0, style: !0 });
|
1889 |
var p = $(e);
|
1890 |
t = S(p, "DIV", { class: !0, id: !0 });
|
1891 |
var g = $(t);
|
|
|
1898 |
y.forEach(v), g.forEach(v), p.forEach(v), this.h();
|
1899 |
},
|
1900 |
h() {
|
1901 |
+
k(n, "class", "table-center svelte-iy6e0k"), k(l, "class", "participants-circle"), k(t, "class", "consilium-container svelte-iy6e0k"), k(t, "id", "consilium-roundtable"), k(e, "class", s = Ce(
|
1902 |
/*containerClasses*/
|
1903 |
r[10]
|
1904 |
+
) + " svelte-iy6e0k"), k(
|
1905 |
e,
|
1906 |
"id",
|
1907 |
/*elem_id*/
|
|
|
1911 |
r[8]), M(e, "hidden", !/*visible*/
|
1912 |
r[2]);
|
1913 |
},
|
1914 |
+
m(u, p) {
|
1915 |
+
B(u, e, p), I(e, t), I(t, n), a && a.m(n, null), I(t, i), I(t, l);
|
1916 |
for (let g = 0; g < c.length; g += 1)
|
1917 |
c[g] && c[g].m(l, null);
|
1918 |
},
|
1919 |
+
p(u, p) {
|
1920 |
if (/*show_label*/
|
1921 |
+
u[4] && /*label*/
|
1922 |
+
u[3] ? a ? a.p(u, p) : (a = Me(u), a.c(), a.m(n, null)) : a && (a.d(1), a = null), p[0] & /*participants, isAvatarActive, thinking, currentSpeaker, hasCustomImage, getAvatarImageUrl, handleImageError, getEmoji, isBubbleVisible, renderMarkdown, getLatestMessage*/
|
1923 |
522464) {
|
1924 |
+
h = Ee(
|
1925 |
/*participants*/
|
1926 |
+
u[5]
|
1927 |
);
|
1928 |
let g;
|
1929 |
+
for (g = 0; g < h.length; g += 1) {
|
1930 |
+
const x = Le(u, h, g);
|
1931 |
c[g] ? c[g].p(x, p) : (c[g] = qe(x), c[g].c(), c[g].m(l, null));
|
1932 |
}
|
1933 |
for (; g < c.length; g += 1)
|
1934 |
c[g].d(1);
|
1935 |
+
c.length = h.length;
|
1936 |
}
|
1937 |
p[0] & /*containerClasses*/
|
1938 |
1024 && s !== (s = Ce(
|
1939 |
/*containerClasses*/
|
1940 |
+
u[10]
|
1941 |
+
) + " svelte-iy6e0k") && k(e, "class", s), p[0] & /*elem_id*/
|
1942 |
2 && k(
|
1943 |
e,
|
1944 |
"id",
|
1945 |
/*elem_id*/
|
1946 |
+
u[1]
|
1947 |
), p[0] & /*containerStyle, minWidthStyle*/
|
1948 |
768 && o !== (o = /*containerStyle*/
|
1949 |
+
u[9] + "; " + /*minWidthStyle*/
|
1950 |
+
u[8]) && k(e, "style", o), p[0] & /*containerClasses, visible*/
|
1951 |
1028 && M(e, "hidden", !/*visible*/
|
1952 |
+
u[2]);
|
1953 |
},
|
1954 |
i: $e,
|
1955 |
o: $e,
|
1956 |
+
d(u) {
|
1957 |
+
u && v(e), a && a.d(), Vt(c, u);
|
1958 |
}
|
1959 |
};
|
1960 |
}
|
|
|
1970 |
return r ? r.startsWith("http://") || r.startsWith("https://") || r.startsWith("data:") : !1;
|
1971 |
}
|
1972 |
function Kt(r, e, t) {
|
1973 |
+
let n, i, l, { gradio: s } = e, { elem_id: o = "" } = e, { elem_classes: a = [] } = e, { visible: h = !0 } = e, { value: c = "{}" } = e, { label: u = "Consilium Roundtable" } = e, { label_icon: p = "π" } = e, { show_label: g = !0 } = e, { scale: x = null } = e, { min_width: y = void 0 } = e, z = [], L = [], T = null, d = [], m = [], R = {};
|
1974 |
function J() {
|
1975 |
try {
|
1976 |
const f = JSON.parse(c);
|
|
|
2051 |
}
|
2052 |
const nt = (f, E) => _e(E, f);
|
2053 |
return r.$$set = (f) => {
|
2054 |
+
"gradio" in f && t(20, s = f.gradio), "elem_id" in f && t(1, o = f.elem_id), "elem_classes" in f && t(21, a = f.elem_classes), "visible" in f && t(2, h = f.visible), "value" in f && t(22, c = f.value), "label" in f && t(3, u = f.label), "label_icon" in f && t(0, p = f.label_icon), "show_label" in f && t(4, g = f.show_label), "scale" in f && t(23, x = f.scale), "min_width" in f && t(24, y = f.min_width);
|
2055 |
}, r.$$.update = () => {
|
2056 |
r.$$.dirty[0] & /*elem_classes*/
|
2057 |
2097152 && t(10, n = `wrapper ${a.join(" ")}`), r.$$.dirty[0] & /*scale*/
|
|
|
2061 |
}, [
|
2062 |
p,
|
2063 |
o,
|
|
|
2064 |
h,
|
2065 |
+
u,
|
2066 |
g,
|
2067 |
z,
|
2068 |
T,
|
|
|
2121 |
mount_component: on,
|
2122 |
noop: an,
|
2123 |
safe_not_equal: cn,
|
2124 |
+
transition_in: un,
|
2125 |
+
transition_out: hn
|
2126 |
} = window.__gradio__svelte__internal, { onMount: dn } = window.__gradio__svelte__internal;
|
2127 |
function pn(r) {
|
2128 |
let e, t;
|
|
|
2153 |
},
|
2154 |
p: an,
|
2155 |
i(n) {
|
2156 |
+
t || (un(e.$$.fragment, n), t = !0);
|
2157 |
},
|
2158 |
o(n) {
|
2159 |
+
hn(e.$$.fragment, n), t = !1;
|
2160 |
},
|
2161 |
d(n) {
|
2162 |
ln(e, n);
|
src/backend/gradio_consilium_roundtable/templates/example/style.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.hidden.svelte-
|
|
|
1 |
+
.hidden.svelte-iy6e0k{display:none}.block-title.svelte-iy6e0k{padding:10px;font-weight:700;color:gold;display:flex;flex-wrap:wrap;justify-content:center;text-shadow:0 2px 4px rgba(0,0,0,.8)}.label-icon-container.svelte-iy6e0k{width:24px;height:24px}.label-icon-emoji.svelte-iy6e0k{font-size:1.2rem;line-height:1}.label-icon-image.svelte-iy6e0k{width:24px;height:24px;object-fit:contain;border-radius:4px}.wrapper.svelte-iy6e0k{width:600px;height:600px;position:relative}.consilium-container.svelte-iy6e0k{top:190px;position:relative;width:450px;height:300px;margin:20px auto;border-radius:50%;background:linear-gradient(135deg,#0f5132,#198754);border:8px solid #8b4513;box-shadow:0 8px 32px #0006,inset 0 0 20px #0003}.table-center.svelte-iy6e0k{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;background:#0000004d;border-radius:50%;width:140px;height:100px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid #8b4513;box-shadow:inset 0 0 10px #00000080}.participant-seat.svelte-iy6e0k{position:absolute;display:flex;flex-direction:column;align-items:center}.avatar.svelte-iy6e0k{width:60px;height:60px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.4rem;background:linear-gradient(145deg,#fff,#e6e6e6);border:3px solid #8b4513;box-shadow:0 6px 15px #0000004d,inset 0 2px 5px #ffffff80;margin-bottom:8px;transition:all .3s ease;position:relative;z-index:10;overflow:hidden}.avatar.has-image.svelte-iy6e0k{background:#f8f9fa;padding:2px}.avatar-image.svelte-iy6e0k{width:100%;height:100%;object-fit:cover;border-radius:50%}.avatar-emoji.svelte-iy6e0k{font-size:1.4rem;line-height:1}.avatar.thinking.svelte-iy6e0k{border-color:#ff6b35;animation:svelte-iy6e0k-thinking-pulse 1.5s infinite}.avatar.responding.svelte-iy6e0k{border-color:gold;animation:svelte-iy6e0k-speaking-glow 1s infinite}.avatar.speaking.svelte-iy6e0k{border-color:gold}.participant-name.svelte-iy6e0k{font-size:.75rem;font-weight:700;color:gold;text-shadow:0 2px 4px rgba(0,0,0,.8);text-align:center;white-space:nowrap;background:#0000004d;padding:2px 8px;border-radius:10px;border:1px solid #8b4513}.speech-bubble.svelte-iy6e0k{position:absolute;bottom:90px;left:50%;transform:translate(-50%) translateY(20px);background:#fff;border-radius:15px;padding:10px 14px;box-shadow:0 8px 25px #0000004d;z-index:20;opacity:0;transition:all .4s ease;pointer-events:none;border:2px solid #8b4513;min-width:180px;max-width:300px;word-wrap:break-word;white-space:normal}.speech-bubble.visible.svelte-iy6e0k{opacity:1;transform:translate(-50%) translateY(0);pointer-events:auto}.bubble-content.svelte-iy6e0k{font-size:.8rem;color:#333;line-height:1.4;text-align:left;max-height:100px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#8b4513 #f0f0f0}.bubble-content.svelte-iy6e0k::-webkit-scrollbar{width:6px}.bubble-content.svelte-iy6e0k::-webkit-scrollbar-track{background:#f0f0f0;border-radius:3px}.bubble-content.svelte-iy6e0k::-webkit-scrollbar-thumb{background:#8b4513;border-radius:3px}.bubble-content.svelte-iy6e0k::-webkit-scrollbar-thumb:hover{background:#654321}.bubble-arrow.svelte-iy6e0k{position:absolute;bottom:-10px;left:50%;transform:translate(-50%);width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid white}.bubble-arrow.svelte-iy6e0k:before{content:"";position:absolute;bottom:2px;left:50%;transform:translate(-50%);width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-top:12px solid #8b4513}@keyframes svelte-iy6e0k-thinking-pulse{0%,to{transform:scale(1);box-shadow:0 6px 15px #0000004d,0 0 15px #ff6b3566}50%{transform:scale(1.03);box-shadow:0 8px 20px #0006,0 0 25px #ff6b3599}}@keyframes svelte-iy6e0k-speaking-glow{0%,to{box-shadow:0 6px 15px #0000004d,0 0 20px #ffd70080}50%{box-shadow:0 8px 20px #0006,0 0 30px #ffd700cc}}
|
src/frontend/Index.svelte
CHANGED
@@ -266,7 +266,7 @@
|
|
266 |
}
|
267 |
|
268 |
.consilium-container {
|
269 |
-
top:
|
270 |
position: relative;
|
271 |
width: 450px;
|
272 |
height: 300px;
|
|
|
266 |
}
|
267 |
|
268 |
.consilium-container {
|
269 |
+
top: 190px;
|
270 |
position: relative;
|
271 |
width: 450px;
|
272 |
height: 300px;
|
src/pyproject.toml
CHANGED
@@ -8,7 +8,7 @@ build-backend = "hatchling.build"
|
|
8 |
|
9 |
[project]
|
10 |
name = "gradio_consilium_roundtable"
|
11 |
-
version = "0.0.
|
12 |
description = "The roundtable for artificial minds"
|
13 |
readme = "README.md"
|
14 |
license = "apache-2.0"
|
|
|
8 |
|
9 |
[project]
|
10 |
name = "gradio_consilium_roundtable"
|
11 |
+
version = "0.0.6"
|
12 |
description = "The roundtable for artificial minds"
|
13 |
readme = "README.md"
|
14 |
license = "apache-2.0"
|