sg-paisou 0.0.1-beta.3 → 0.0.1-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-chat-sdk.es.js +893 -909
- package/dist/ai-chat-sdk.umd.js +44 -44
- package/dist/style.css +1 -1
- package/package.json +7 -6
package/dist/ai-chat-sdk.es.js
CHANGED
|
@@ -8174,17 +8174,17 @@ var os, ss, ci, Iu, xp = { 6293: function(r) {
|
|
|
8174
8174
|
if ((0, e.getProperty)(W, "inference") != null) {
|
|
8175
8175
|
var re = g(W, !0);
|
|
8176
8176
|
v(N, W, -re, !0);
|
|
8177
|
-
var
|
|
8177
|
+
var Te = _(H, I, !0), le = (0, e.getProperty)(H, "maxAdjust");
|
|
8178
8178
|
le != null && (re = Math.max(re, le));
|
|
8179
8179
|
var pe = void 0;
|
|
8180
8180
|
if (F || !(pe = h(H))) {
|
|
8181
|
-
v(N, (0, e.getProperty)(H, "proof") ? H : H.parent, re -
|
|
8181
|
+
v(N, (0, e.getProperty)(H, "proof") ? H : H.parent, re - Te, !0);
|
|
8182
8182
|
continue;
|
|
8183
8183
|
}
|
|
8184
|
-
var
|
|
8185
|
-
if (
|
|
8186
|
-
var ve = N.nodeFactory.create("node", "mspace", [], { width: re -
|
|
8187
|
-
|
|
8184
|
+
var Qe = (U = pe).parent.childNodes[U.parent.childNodes.indexOf(U) + 1];
|
|
8185
|
+
if (Qe) {
|
|
8186
|
+
var ve = N.nodeFactory.create("node", "mspace", [], { width: re - Te + "em" });
|
|
8187
|
+
Qe.appendChild(ve), H.removeProperty("maxAdjust");
|
|
8188
8188
|
continue;
|
|
8189
8189
|
}
|
|
8190
8190
|
var he = E(pe);
|
|
@@ -10695,8 +10695,8 @@ var os, ss, ci, Iu, xp = { 6293: function(r) {
|
|
|
10695
10695
|
var R = W.value;
|
|
10696
10696
|
D.remove(R);
|
|
10697
10697
|
}
|
|
10698
|
-
} catch (
|
|
10699
|
-
L = { error:
|
|
10698
|
+
} catch (Te) {
|
|
10699
|
+
L = { error: Te };
|
|
10700
10700
|
} finally {
|
|
10701
10701
|
try {
|
|
10702
10702
|
W && !W.done && (C = q.return) && C.call(q);
|
|
@@ -18472,7 +18472,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
18472
18472
|
function re(V, j) {
|
|
18473
18473
|
Array.isArray(V.illegal) && (V.illegal = D.apply(void 0, c(V.illegal)));
|
|
18474
18474
|
}
|
|
18475
|
-
function
|
|
18475
|
+
function Te(V, j) {
|
|
18476
18476
|
if (V.match) {
|
|
18477
18477
|
if (V.begin || V.end) throw Error("begin & end are not supported with match");
|
|
18478
18478
|
V.begin = V.match, delete V.match;
|
|
@@ -18489,15 +18489,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
18489
18489
|
delete V[K];
|
|
18490
18490
|
}), V.keywords = z.keywords, V.begin = C(z.beforeMatch, b(z.begin)), V.starts = { relevance: 0, contains: [Object.assign(z, { endsParent: !0 })] }, V.relevance = 0, delete z.beforeMatch;
|
|
18491
18491
|
}
|
|
18492
|
-
},
|
|
18492
|
+
}, Qe = ["of", "and", "for", "in", "not", "or", "if", "then", "parent", "list", "value"], ve = {}, he = function(V) {
|
|
18493
18493
|
console.error(V);
|
|
18494
18494
|
}, me = function(V) {
|
|
18495
18495
|
for (var j, z = arguments.length, K = Array(z > 1 ? z - 1 : 0), ae = 1; ae < z; ae++) K[ae - 1] = arguments[ae];
|
|
18496
18496
|
(j = console).log.apply(j, ["WARN: ".concat(V)].concat(K));
|
|
18497
18497
|
}, Ae = function(V, j) {
|
|
18498
18498
|
!ve["".concat(V, "/").concat(j)] && (console.log("Deprecated as of ".concat(V, ". ").concat(j)), ve["".concat(V, "/").concat(j)] = !0);
|
|
18499
|
-
},
|
|
18500
|
-
function
|
|
18499
|
+
}, Re = Error();
|
|
18500
|
+
function Me(V, j, z) {
|
|
18501
18501
|
for (var K = z.key, ae = 0, _e = V[K], te = {}, ge = {}, de = 1; de <= j.length; de++) ge[de + ae] = _e[de], te[de + ae] = !0, ae += x(j[de - 1]);
|
|
18502
18502
|
V[K] = ge, V[K]._emit = te, V[K]._multi = !0;
|
|
18503
18503
|
}
|
|
@@ -18505,15 +18505,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
18505
18505
|
var j;
|
|
18506
18506
|
(j = V).scope && l(j.scope) === "object" && j.scope !== null && (j.beginScope = j.scope, delete j.scope), typeof V.beginScope == "string" && (V.beginScope = { _wrap: V.beginScope }), typeof V.endScope == "string" && (V.endScope = { _wrap: V.endScope }), function(z) {
|
|
18507
18507
|
if (Array.isArray(z.begin)) {
|
|
18508
|
-
if (z.skip || z.excludeBegin || z.returnBegin) throw he("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
|
|
18509
|
-
if (l(z.beginScope) !== "object" || z.beginScope === null) throw he("beginScope must be object"),
|
|
18510
|
-
|
|
18508
|
+
if (z.skip || z.excludeBegin || z.returnBegin) throw he("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Re;
|
|
18509
|
+
if (l(z.beginScope) !== "object" || z.beginScope === null) throw he("beginScope must be object"), Re;
|
|
18510
|
+
Me(z, z.begin, { key: "beginScope" }), z.begin = M(z.begin, { joinWith: "" });
|
|
18511
18511
|
}
|
|
18512
18512
|
}(V), function(z) {
|
|
18513
18513
|
if (Array.isArray(z.end)) {
|
|
18514
|
-
if (z.skip || z.excludeEnd || z.returnEnd) throw he("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
|
|
18515
|
-
if (l(z.endScope) !== "object" || z.endScope === null) throw he("endScope must be object"),
|
|
18516
|
-
|
|
18514
|
+
if (z.skip || z.excludeEnd || z.returnEnd) throw he("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Re;
|
|
18515
|
+
if (l(z.endScope) !== "object" || z.endScope === null) throw he("endScope must be object"), Re;
|
|
18516
|
+
Me(z, z.end, { key: "endScope" }), z.end = M(z.end, { joinWith: "" });
|
|
18517
18517
|
}
|
|
18518
18518
|
}(V);
|
|
18519
18519
|
}
|
|
@@ -18529,15 +18529,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
18529
18529
|
return ge.noHighlightRe.test(ne);
|
|
18530
18530
|
}
|
|
18531
18531
|
function st(ne, X, Z) {
|
|
18532
|
-
var
|
|
18533
|
-
l(X) === "object" ? (
|
|
18534
|
-
https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne,
|
|
18535
|
-
var J = { code:
|
|
18532
|
+
var ce = "", ee = "";
|
|
18533
|
+
l(X) === "object" ? (ce = ne, Z = X.ignoreIllegals, ee = X.language) : (Ae("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Ae("10.7.0", `Please use highlight(code, options) instead.
|
|
18534
|
+
https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ce = X), Z === void 0 && (Z = !0);
|
|
18535
|
+
var J = { code: ce, language: ee };
|
|
18536
18536
|
Ce("before:highlight", J);
|
|
18537
|
-
var
|
|
18538
|
-
return
|
|
18537
|
+
var ue = J.result ? J.result : Xe(J.language, J.code, Z);
|
|
18538
|
+
return ue.code = J.code, Ce("after:highlight", ue), ue;
|
|
18539
18539
|
}
|
|
18540
|
-
function Xe(ne, X, Z,
|
|
18540
|
+
function Xe(ne, X, Z, ce) {
|
|
18541
18541
|
var ee = /* @__PURE__ */ Object.create(null);
|
|
18542
18542
|
function J() {
|
|
18543
18543
|
if (!Ee.keywords) {
|
|
@@ -18548,20 +18548,20 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z =
|
|
|
18548
18548
|
Ee.keywordPatternRe.lastIndex = 0;
|
|
18549
18549
|
for (var be = Ee.keywordPatternRe.exec(we), ke = ""; be; ) {
|
|
18550
18550
|
ke += we.substring(fe, be.index);
|
|
18551
|
-
var _t,
|
|
18552
|
-
if (
|
|
18553
|
-
var Be = t(
|
|
18551
|
+
var _t, xe, $ = Je.case_insensitive ? be[0].toLowerCase() : be[0], Oe = (_t = Ee, xe = $, _t.keywords[xe]);
|
|
18552
|
+
if (Oe) {
|
|
18553
|
+
var Be = t(Oe, 2), Ve = Be[0], $e = Be[1];
|
|
18554
18554
|
if (Ze.addText(ke), ke = "", ee[$] = (ee[$] || 0) + 1, ee[$] <= 7 && (Vt += $e), Ve.startsWith("_")) ke += be[0];
|
|
18555
18555
|
else {
|
|
18556
18556
|
var qe = Je.classNameAliases[Ve] || Ve;
|
|
18557
|
-
|
|
18557
|
+
se(be[0], qe);
|
|
18558
18558
|
}
|
|
18559
18559
|
} else ke += be[0];
|
|
18560
18560
|
fe = Ee.keywordPatternRe.lastIndex, be = Ee.keywordPatternRe.exec(we);
|
|
18561
18561
|
}
|
|
18562
18562
|
ke += we.substring(fe), Ze.addText(ke);
|
|
18563
18563
|
}
|
|
18564
|
-
function
|
|
18564
|
+
function ue() {
|
|
18565
18565
|
Ee.subLanguage != null ? function() {
|
|
18566
18566
|
if (we !== "") {
|
|
18567
18567
|
var fe = null;
|
|
@@ -18576,26 +18576,26 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z =
|
|
|
18576
18576
|
}
|
|
18577
18577
|
}() : J(), we = "";
|
|
18578
18578
|
}
|
|
18579
|
-
function
|
|
18579
|
+
function se(fe, be) {
|
|
18580
18580
|
fe !== "" && (Ze.startScope(be), Ze.addText(fe), Ze.endScope());
|
|
18581
18581
|
}
|
|
18582
|
-
function
|
|
18582
|
+
function De(fe, be) {
|
|
18583
18583
|
for (var ke = 1, _t = be.length - 1; ke <= _t; ) {
|
|
18584
18584
|
if (!fe._emit[ke]) {
|
|
18585
18585
|
ke++;
|
|
18586
18586
|
continue;
|
|
18587
18587
|
}
|
|
18588
|
-
var
|
|
18589
|
-
|
|
18588
|
+
var xe = Je.classNameAliases[fe[ke]] || fe[ke], $ = be[ke];
|
|
18589
|
+
xe ? se($, xe) : (we = $, J(), we = ""), ke++;
|
|
18590
18590
|
}
|
|
18591
18591
|
}
|
|
18592
18592
|
function Le(fe, be) {
|
|
18593
|
-
return fe.scope && typeof fe.scope == "string" && Ze.openNode(Je.classNameAliases[fe.scope] || fe.scope), fe.beginScope && (fe.beginScope._wrap ? (
|
|
18593
|
+
return fe.scope && typeof fe.scope == "string" && Ze.openNode(Je.classNameAliases[fe.scope] || fe.scope), fe.beginScope && (fe.beginScope._wrap ? (se(we, Je.classNameAliases[fe.beginScope._wrap] || fe.beginScope._wrap), we = "") : fe.beginScope._multi && (De(fe.beginScope, be), we = "")), Ee = Object.create(fe, { parent: { value: Ee } });
|
|
18594
18594
|
}
|
|
18595
18595
|
var Ie = {};
|
|
18596
18596
|
function gt(fe, be) {
|
|
18597
18597
|
var ke = be && be[0];
|
|
18598
|
-
if (we += fe, ke == null) return
|
|
18598
|
+
if (we += fe, ke == null) return ue(), 0;
|
|
18599
18599
|
if (Ie.type === "begin" && be.type === "end" && Ie.index === be.index && ke === "") {
|
|
18600
18600
|
if (we += X.slice(be.index, be.index + 1), !ae) {
|
|
18601
18601
|
var _t = Error("0 width match regex (".concat(ne, ")"));
|
|
@@ -18603,40 +18603,40 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z =
|
|
|
18603
18603
|
}
|
|
18604
18604
|
return 1;
|
|
18605
18605
|
}
|
|
18606
|
-
if (Ie = be, be.type === "begin") return function(
|
|
18607
|
-
for (var Be =
|
|
18608
|
-
var
|
|
18609
|
-
if (mt && (mt(
|
|
18610
|
-
return
|
|
18606
|
+
if (Ie = be, be.type === "begin") return function(Oe) {
|
|
18607
|
+
for (var Be = Oe[0], Ve = Oe.rule, $e = new m(Ve), qe = [Ve.__beforeBegin, Ve["on:begin"]], Ge = 0; Ge < qe.length; Ge++) {
|
|
18608
|
+
var oe, mt = qe[Ge];
|
|
18609
|
+
if (mt && (mt(Oe, $e), $e.isMatchIgnored))
|
|
18610
|
+
return oe = Be, Ee.matcher.regexIndex === 0 ? (we += oe[0], 1) : (n1 = !0, 0);
|
|
18611
18611
|
}
|
|
18612
|
-
return Ve.skip ? we += Be : (Ve.excludeBegin && (we += Be),
|
|
18612
|
+
return Ve.skip ? we += Be : (Ve.excludeBegin && (we += Be), ue(), !Ve.returnBegin && !Ve.excludeBegin && (we = Be)), Le(Ve, Oe), Ve.returnBegin ? 0 : Be.length;
|
|
18613
18613
|
}(be);
|
|
18614
18614
|
if (be.type !== "illegal" || Z) {
|
|
18615
18615
|
if (be.type === "end") {
|
|
18616
|
-
var
|
|
18617
|
-
var Be =
|
|
18618
|
-
var Xt, Gt, Ut, kt = (Xt =
|
|
18616
|
+
var xe = function(Oe) {
|
|
18617
|
+
var Be = Oe[0], Ve = X.substring(Oe.index), $e = function Ge(oe, mt, Ft) {
|
|
18618
|
+
var Xt, Gt, Ut, kt = (Xt = oe.endRe, Gt = Ft, (Ut = Xt && Xt.exec(Gt)) && Ut.index === 0);
|
|
18619
18619
|
if (kt) {
|
|
18620
|
-
if (
|
|
18621
|
-
var v1 = new m(
|
|
18622
|
-
|
|
18620
|
+
if (oe["on:end"]) {
|
|
18621
|
+
var v1 = new m(oe);
|
|
18622
|
+
oe["on:end"](mt, v1), v1.isMatchIgnored && (kt = !1);
|
|
18623
18623
|
}
|
|
18624
18624
|
if (kt) {
|
|
18625
|
-
for (;
|
|
18626
|
-
return
|
|
18625
|
+
for (; oe.endsParent && oe.parent; ) oe = oe.parent;
|
|
18626
|
+
return oe;
|
|
18627
18627
|
}
|
|
18628
18628
|
}
|
|
18629
|
-
if (
|
|
18630
|
-
}(Ee,
|
|
18629
|
+
if (oe.endsWithParent) return Ge(oe.parent, mt, Ft);
|
|
18630
|
+
}(Ee, Oe, Ve);
|
|
18631
18631
|
if (!$e) return Ye;
|
|
18632
18632
|
var qe = Ee;
|
|
18633
|
-
Ee.endScope && Ee.endScope._wrap ? (
|
|
18633
|
+
Ee.endScope && Ee.endScope._wrap ? (ue(), se(Be, Ee.endScope._wrap)) : Ee.endScope && Ee.endScope._multi ? (ue(), De(Ee.endScope, Oe)) : qe.skip ? we += Be : (!(qe.returnEnd || qe.excludeEnd) && (we += Be), ue(), qe.excludeEnd && (we = Be));
|
|
18634
18634
|
do
|
|
18635
18635
|
Ee.scope && Ze.closeNode(), !Ee.skip && !Ee.subLanguage && (Vt += Ee.relevance), Ee = Ee.parent;
|
|
18636
18636
|
while (Ee !== $e.parent);
|
|
18637
|
-
return $e.starts && Le($e.starts,
|
|
18637
|
+
return $e.starts && Le($e.starts, Oe), qe.returnEnd ? 0 : Be.length;
|
|
18638
18638
|
}(be);
|
|
18639
|
-
if (
|
|
18639
|
+
if (xe !== Ye) return xe;
|
|
18640
18640
|
}
|
|
18641
18641
|
} else {
|
|
18642
18642
|
var $ = Error('Illegal lexeme "' + ke + '" for mode "' + (Ee.scope || "<unnamed>") + '"');
|
|
@@ -18650,69 +18650,69 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z =
|
|
|
18650
18650
|
var Je = ht(ne);
|
|
18651
18651
|
if (!Je) throw he(_e.replace("{}", ne)), Error('Unknown language: "' + ne + '"');
|
|
18652
18652
|
var Mt = function(fe) {
|
|
18653
|
-
function be(
|
|
18654
|
-
return RegExp(S(
|
|
18653
|
+
function be(xe, $) {
|
|
18654
|
+
return RegExp(S(xe), "m" + (fe.case_insensitive ? "i" : "") + (fe.unicodeRegex ? "u" : "") + ($ ? "g" : ""));
|
|
18655
18655
|
}
|
|
18656
|
-
var ke = u(function
|
|
18657
|
-
s(this,
|
|
18658
|
-
}, [{ key: "addRule", value: function(
|
|
18659
|
-
$.position = this.position++, this.matchIndexes[this.matchAt] = $, this.regexes.push([$,
|
|
18656
|
+
var ke = u(function xe() {
|
|
18657
|
+
s(this, xe), this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
|
|
18658
|
+
}, [{ key: "addRule", value: function(xe, $) {
|
|
18659
|
+
$.position = this.position++, this.matchIndexes[this.matchAt] = $, this.regexes.push([$, xe]), this.matchAt += x(xe) + 1;
|
|
18660
18660
|
} }, { key: "compile", value: function() {
|
|
18661
18661
|
this.regexes.length === 0 && (this.exec = function() {
|
|
18662
18662
|
return null;
|
|
18663
18663
|
});
|
|
18664
|
-
var
|
|
18664
|
+
var xe = this.regexes.map(function($) {
|
|
18665
18665
|
return $[1];
|
|
18666
18666
|
});
|
|
18667
|
-
this.matcherRe = be(M(
|
|
18668
|
-
} }, { key: "exec", value: function(
|
|
18667
|
+
this.matcherRe = be(M(xe, { joinWith: "|" }), !0), this.lastIndex = 0;
|
|
18668
|
+
} }, { key: "exec", value: function(xe) {
|
|
18669
18669
|
this.matcherRe.lastIndex = this.lastIndex;
|
|
18670
|
-
var $ = this.matcherRe.exec(
|
|
18670
|
+
var $ = this.matcherRe.exec(xe);
|
|
18671
18671
|
if (!$) return null;
|
|
18672
|
-
var
|
|
18672
|
+
var Oe = $.findIndex(function(Ve, $e) {
|
|
18673
18673
|
return $e > 0 && Ve !== void 0;
|
|
18674
|
-
}), Be = this.matchIndexes[
|
|
18675
|
-
return $.splice(0,
|
|
18676
|
-
} }]), _t = u(function
|
|
18677
|
-
s(this,
|
|
18678
|
-
}, [{ key: "getMatcher", value: function(
|
|
18679
|
-
if (this.multiRegexes[
|
|
18674
|
+
}), Be = this.matchIndexes[Oe];
|
|
18675
|
+
return $.splice(0, Oe), Object.assign($, Be);
|
|
18676
|
+
} }]), _t = u(function xe() {
|
|
18677
|
+
s(this, xe), this.rules = [], this.multiRegexes = [], this.count = 0, this.lastIndex = 0, this.regexIndex = 0;
|
|
18678
|
+
}, [{ key: "getMatcher", value: function(xe) {
|
|
18679
|
+
if (this.multiRegexes[xe]) return this.multiRegexes[xe];
|
|
18680
18680
|
var $ = new ke();
|
|
18681
|
-
return this.rules.slice(
|
|
18682
|
-
var Be = t(
|
|
18681
|
+
return this.rules.slice(xe).forEach(function(Oe) {
|
|
18682
|
+
var Be = t(Oe, 2), Ve = Be[0], $e = Be[1];
|
|
18683
18683
|
return $.addRule(Ve, $e);
|
|
18684
|
-
}), $.compile(), this.multiRegexes[
|
|
18684
|
+
}), $.compile(), this.multiRegexes[xe] = $, $;
|
|
18685
18685
|
} }, { key: "resumingScanAtSamePosition", value: function() {
|
|
18686
18686
|
return this.regexIndex !== 0;
|
|
18687
18687
|
} }, { key: "considerAll", value: function() {
|
|
18688
18688
|
this.regexIndex = 0;
|
|
18689
|
-
} }, { key: "addRule", value: function(
|
|
18690
|
-
this.rules.push([
|
|
18691
|
-
} }, { key: "exec", value: function(
|
|
18689
|
+
} }, { key: "addRule", value: function(xe, $) {
|
|
18690
|
+
this.rules.push([xe, $]), $.type === "begin" && this.count++;
|
|
18691
|
+
} }, { key: "exec", value: function(xe) {
|
|
18692
18692
|
var $ = this.getMatcher(this.regexIndex);
|
|
18693
18693
|
$.lastIndex = this.lastIndex;
|
|
18694
|
-
var
|
|
18695
|
-
if (this.resumingScanAtSamePosition() && !(
|
|
18694
|
+
var Oe = $.exec(xe);
|
|
18695
|
+
if (this.resumingScanAtSamePosition() && !(Oe && Oe.index === this.lastIndex)) {
|
|
18696
18696
|
var Be = this.getMatcher(0);
|
|
18697
|
-
Be.lastIndex = this.lastIndex + 1,
|
|
18697
|
+
Be.lastIndex = this.lastIndex + 1, Oe = Be.exec(xe);
|
|
18698
18698
|
}
|
|
18699
|
-
return
|
|
18699
|
+
return Oe && (this.regexIndex += Oe.position + 1, this.regexIndex === this.count && this.considerAll()), Oe;
|
|
18700
18700
|
} }]);
|
|
18701
18701
|
if (!fe.compilerExtensions && (fe.compilerExtensions = []), fe.contains && fe.contains.includes("self")) throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
|
|
18702
|
-
return fe.classNameAliases = h(fe.classNameAliases || {}), function
|
|
18702
|
+
return fe.classNameAliases = h(fe.classNameAliases || {}), function xe($, Oe) {
|
|
18703
18703
|
if ($.isCompiled) return $;
|
|
18704
|
-
[q,
|
|
18705
|
-
return Ge($,
|
|
18704
|
+
[q, Te, Pe, pe].forEach(function(Ge) {
|
|
18705
|
+
return Ge($, Oe);
|
|
18706
18706
|
}), fe.compilerExtensions.forEach(function(Ge) {
|
|
18707
|
-
return Ge($,
|
|
18707
|
+
return Ge($, Oe);
|
|
18708
18708
|
}), $.__beforeBegin = null, [W, re, le].forEach(function(Ge) {
|
|
18709
|
-
return Ge($,
|
|
18709
|
+
return Ge($, Oe);
|
|
18710
18710
|
}), $.isCompiled = !0;
|
|
18711
18711
|
var Be, Ve, $e, qe = null;
|
|
18712
|
-
return l($.keywords) === "object" && $.keywords.$pattern && ($.keywords = Object.assign({}, $.keywords), qe = $.keywords.$pattern, delete $.keywords.$pattern), qe = qe || /\w+/, $.keywords && ($.keywords = function Ge(
|
|
18712
|
+
return l($.keywords) === "object" && $.keywords.$pattern && ($.keywords = Object.assign({}, $.keywords), qe = $.keywords.$pattern, delete $.keywords.$pattern), qe = qe || /\w+/, $.keywords && ($.keywords = function Ge(oe, mt) {
|
|
18713
18713
|
var Ft = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "keyword", Xt = /* @__PURE__ */ Object.create(null);
|
|
18714
|
-
return typeof
|
|
18715
|
-
Object.assign(Xt, Ge(
|
|
18714
|
+
return typeof oe == "string" ? Gt(Ft, oe.split(" ")) : Array.isArray(oe) ? Gt(Ft, oe) : Object.keys(oe).forEach(function(Ut) {
|
|
18715
|
+
Object.assign(Xt, Ge(oe[Ut], mt, Ut));
|
|
18716
18716
|
}), Xt;
|
|
18717
18717
|
function Gt(Ut, kt) {
|
|
18718
18718
|
mt && (kt = kt.map(function(v1) {
|
|
@@ -18721,26 +18721,26 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z =
|
|
|
18721
18721
|
var P1 = v1.split("|");
|
|
18722
18722
|
Xt[P1[0]] = [Ut, function(X1, qt) {
|
|
18723
18723
|
return qt ? Number(qt) : function(z1) {
|
|
18724
|
-
return
|
|
18724
|
+
return Qe.includes(z1.toLowerCase());
|
|
18725
18725
|
}(X1) ? 0 : 1;
|
|
18726
18726
|
}(P1[0], P1[1])];
|
|
18727
18727
|
});
|
|
18728
18728
|
}
|
|
18729
|
-
}($.keywords, fe.case_insensitive)), $.keywordPatternRe = be(qe, !0),
|
|
18730
|
-
return function(
|
|
18731
|
-
return
|
|
18732
|
-
return h(
|
|
18733
|
-
})),
|
|
18729
|
+
}($.keywords, fe.case_insensitive)), $.keywordPatternRe = be(qe, !0), Oe && (!$.begin && ($.begin = /\B|\b/), $.beginRe = be($.begin), !$.end && !$.endsWithParent && ($.end = /\B|\b/), $.end && ($.endRe = be($.end)), $.terminatorEnd = S($.end) || "", $.endsWithParent && Oe.terminatorEnd && ($.terminatorEnd += ($.end ? "|" : "") + Oe.terminatorEnd)), $.illegal && ($.illegalRe = be($.illegal)), !$.contains && ($.contains = []), $.contains = (Be = []).concat.apply(Be, c($.contains.map(function(Ge) {
|
|
18730
|
+
return function(oe) {
|
|
18731
|
+
return oe.variants && !oe.cachedVariants && (oe.cachedVariants = oe.variants.map(function(mt) {
|
|
18732
|
+
return h(oe, { variants: null }, mt);
|
|
18733
|
+
})), oe.cachedVariants ? oe.cachedVariants : function mt(Ft) {
|
|
18734
18734
|
return !!Ft && (Ft.endsWithParent || mt(Ft.starts));
|
|
18735
|
-
}(
|
|
18735
|
+
}(oe) ? h(oe, { starts: oe.starts ? h(oe.starts) : null }) : Object.isFrozen(oe) ? h(oe) : oe;
|
|
18736
18736
|
}(Ge === "self" ? $ : Ge);
|
|
18737
18737
|
}))), $.contains.forEach(function(Ge) {
|
|
18738
|
-
|
|
18739
|
-
}), $.starts &&
|
|
18738
|
+
xe(Ge, $);
|
|
18739
|
+
}), $.starts && xe($.starts, Oe), $.matcher = (Ve = $, $e = new _t(), Ve.contains.forEach(function(Ge) {
|
|
18740
18740
|
return $e.addRule(Ge.begin, { rule: Ge, type: "begin" });
|
|
18741
18741
|
}), Ve.terminatorEnd && $e.addRule(Ve.terminatorEnd, { type: "end" }), Ve.illegal && $e.addRule(Ve.illegal, { type: "illegal" }), $e), $;
|
|
18742
18742
|
}(fe);
|
|
18743
|
-
}(Je), Zt = "", Ee =
|
|
18743
|
+
}(Je), Zt = "", Ee = ce || Mt, O1 = {}, Ze = new ge.__emitter(ge);
|
|
18744
18744
|
(function() {
|
|
18745
18745
|
for (var fe = [], be = Ee; be !== Je; be = be.parent) be.scope && fe.unshift(be.scope);
|
|
18746
18746
|
fe.forEach(function(ke) {
|
|
@@ -18769,28 +18769,28 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z =
|
|
|
18769
18769
|
}
|
|
18770
18770
|
function dt(ne, X) {
|
|
18771
18771
|
X = X || ge.languages || Object.keys(j);
|
|
18772
|
-
var Z,
|
|
18772
|
+
var Z, ce, ee = ((ce = { value: f(Z = ne), illegal: !1, relevance: 0, _top: te, _emitter: new ge.__emitter(ge) })._emitter.addText(Z), ce), J = X.filter(ht).filter(t1).map(function(Le) {
|
|
18773
18773
|
return Xe(Le, ne, !1);
|
|
18774
18774
|
});
|
|
18775
18775
|
J.unshift(ee);
|
|
18776
|
-
var
|
|
18776
|
+
var ue = t(J.sort(function(Le, Ie) {
|
|
18777
18777
|
if (Le.relevance !== Ie.relevance) return Ie.relevance - Le.relevance;
|
|
18778
18778
|
if (Le.language && Ie.language) {
|
|
18779
18779
|
if (ht(Le.language).supersetOf === Ie.language) return 1;
|
|
18780
18780
|
if (ht(Ie.language).supersetOf === Le.language) return -1;
|
|
18781
18781
|
}
|
|
18782
18782
|
return 0;
|
|
18783
|
-
}), 2),
|
|
18784
|
-
return
|
|
18783
|
+
}), 2), se = ue[0], De = ue[1];
|
|
18784
|
+
return se.secondBest = De, se;
|
|
18785
18785
|
}
|
|
18786
18786
|
function We(ne) {
|
|
18787
|
-
var X = function(
|
|
18788
|
-
var Le =
|
|
18789
|
-
Le +=
|
|
18787
|
+
var X = function(De) {
|
|
18788
|
+
var Le = De.className + " ";
|
|
18789
|
+
Le += De.parentNode ? De.parentNode.className : "";
|
|
18790
18790
|
var Ie = ge.languageDetectRe.exec(Le);
|
|
18791
18791
|
if (Ie) {
|
|
18792
18792
|
var gt = ht(Ie[1]);
|
|
18793
|
-
return !gt && (me(_e.replace("{}", Ie[1])), me("Falling back to no-highlight mode for this block.",
|
|
18793
|
+
return !gt && (me(_e.replace("{}", Ie[1])), me("Falling back to no-highlight mode for this block.", De)), gt ? Ie[1] : "no-highlight";
|
|
18794
18794
|
}
|
|
18795
18795
|
return Le.split(/\s+/).find(function(Je) {
|
|
18796
18796
|
return de(Je) || ht(Je);
|
|
@@ -18802,8 +18802,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z =
|
|
|
18802
18802
|
return;
|
|
18803
18803
|
}
|
|
18804
18804
|
if (ne.children.length > 0 && (!ge.ignoreUnescapedHTML && (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(ne)), ge.throwUnescapedHTML)) throw new nt("One of your code blocks includes unescaped HTML.", ne.innerHTML);
|
|
18805
|
-
var Z,
|
|
18806
|
-
ne.innerHTML =
|
|
18805
|
+
var Z, ce, ee, J, ue = ne.textContent, se = X ? st(ue, { language: X, ignoreIllegals: !0 }) : dt(ue);
|
|
18806
|
+
ne.innerHTML = se.value, ne.dataset.highlighted = "yes", Z = ne, ce = X, ee = se.language, J = ce && z[ce] || ee, Z.classList.add("hljs"), Z.classList.add("language-".concat(J)), ne.result = { language: se.language, re: se.relevance, relevance: se.relevance }, se.secondBest && (ne.secondBest = { language: se.secondBest.language, relevance: se.secondBest.relevance }), Ce("after:highlightElement", { el: ne, result: se, text: ue });
|
|
18807
18807
|
}
|
|
18808
18808
|
}
|
|
18809
18809
|
var Ot = !1;
|
|
@@ -18821,8 +18821,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z =
|
|
|
18821
18821
|
}
|
|
18822
18822
|
function h1(ne, X) {
|
|
18823
18823
|
var Z = X.languageName;
|
|
18824
|
-
typeof ne == "string" && (ne = [ne]), ne.forEach(function(
|
|
18825
|
-
z[
|
|
18824
|
+
typeof ne == "string" && (ne = [ne]), ne.forEach(function(ce) {
|
|
18825
|
+
z[ce.toLowerCase()] = Z;
|
|
18826
18826
|
});
|
|
18827
18827
|
}
|
|
18828
18828
|
function t1(ne) {
|
|
@@ -18834,7 +18834,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z =
|
|
|
18834
18834
|
Z[ne] && Z[ne](X);
|
|
18835
18835
|
});
|
|
18836
18836
|
}
|
|
18837
|
-
for (var
|
|
18837
|
+
for (var Ne in Object.assign(V, { highlight: st, highlightAuto: dt, highlightAll: ze, highlightElement: We, highlightBlock: function(ne) {
|
|
18838
18838
|
return Ae("10.7.0", "highlightBlock will be removed entirely in v12.0"), Ae("10.7.0", "Please use highlightElement now."), We(ne);
|
|
18839
18839
|
}, configure: function(ne) {
|
|
18840
18840
|
ge = h(ge, ne);
|
|
@@ -18846,17 +18846,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z =
|
|
|
18846
18846
|
var Z = null;
|
|
18847
18847
|
try {
|
|
18848
18848
|
Z = X(V);
|
|
18849
|
-
} catch (
|
|
18850
|
-
if (he("Language definition for '{}' could not be registered.".replace("{}", ne)), ae) he(
|
|
18851
|
-
else throw
|
|
18849
|
+
} catch (ce) {
|
|
18850
|
+
if (he("Language definition for '{}' could not be registered.".replace("{}", ne)), ae) he(ce);
|
|
18851
|
+
else throw ce;
|
|
18852
18852
|
Z = te;
|
|
18853
18853
|
}
|
|
18854
18854
|
!Z.name && (Z.name = ne), j[ne] = Z, Z.rawDefinition = X.bind(null, V), Z.aliases && h1(Z.aliases, { languageName: ne });
|
|
18855
18855
|
}, unregisterLanguage: function(ne) {
|
|
18856
18856
|
delete j[ne];
|
|
18857
18857
|
for (var X = 0, Z = Object.keys(z); X < Z.length; X++) {
|
|
18858
|
-
var
|
|
18859
|
-
z[
|
|
18858
|
+
var ce = Z[X];
|
|
18859
|
+
z[ce] === ne && delete z[ce];
|
|
18860
18860
|
}
|
|
18861
18861
|
}, listLanguages: function() {
|
|
18862
18862
|
return Object.keys(j);
|
|
@@ -18874,16 +18874,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z =
|
|
|
18874
18874
|
ae = !1;
|
|
18875
18875
|
}, V.safeMode = function() {
|
|
18876
18876
|
ae = !0;
|
|
18877
|
-
}, V.versionString = "11.11.1", V.regex = { concat: C, lookahead: b, either: D, optional: L, anyNumberOfTimes: A }, G) l(G[
|
|
18877
|
+
}, V.versionString = "11.11.1", V.regex = { concat: C, lookahead: b, either: D, optional: L, anyNumberOfTimes: A }, G) l(G[Ne]) === "object" && function ne(X) {
|
|
18878
18878
|
return X instanceof Map ? X.clear = X.delete = X.set = function() {
|
|
18879
18879
|
throw Error("map is read-only");
|
|
18880
18880
|
} : X instanceof Set && (X.add = X.clear = X.delete = function() {
|
|
18881
18881
|
throw Error("set is read-only");
|
|
18882
18882
|
}), Object.freeze(X), Object.getOwnPropertyNames(X).forEach(function(Z) {
|
|
18883
|
-
var
|
|
18884
|
-
(ee === "object" || ee === "function") && !Object.isFrozen(
|
|
18883
|
+
var ce = X[Z], ee = l(ce);
|
|
18884
|
+
(ee === "object" || ee === "function") && !Object.isFrozen(ce) && ne(ce);
|
|
18885
18885
|
}), X;
|
|
18886
|
-
}(G[
|
|
18886
|
+
}(G[Ne]);
|
|
18887
18887
|
return Object.assign(V, G), V;
|
|
18888
18888
|
}, je = Ke({});
|
|
18889
18889
|
je.newInstance = function() {
|
|
@@ -20056,18 +20056,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
20056
20056
|
}, re = function() {
|
|
20057
20057
|
var te = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
20058
20058
|
return { className: "subst", label: "interpol", begin: d(/\\/, te, /\(/), end: /\)/ };
|
|
20059
|
-
},
|
|
20059
|
+
}, Te = function() {
|
|
20060
20060
|
var te = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
20061
20061
|
return { begin: d(te, /"""/), end: d(/"""/, te), contains: [q(te), W(te), re(te)] };
|
|
20062
20062
|
}, le = function() {
|
|
20063
20063
|
var te = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
20064
20064
|
return { begin: d(te, /"/), end: d(/"/, te), contains: [q(te), re(te)] };
|
|
20065
|
-
}, pe = { className: "string", variants: [
|
|
20065
|
+
}, pe = { className: "string", variants: [Te(), Te("#"), Te("##"), Te("###"), le(), le("#"), le("##"), le("###")] }, Qe = [C.BACKSLASH_ESCAPE, { begin: /\[/, end: /\]/, relevance: 0, contains: [C.BACKSLASH_ESCAPE] }], ve = function(te) {
|
|
20066
20066
|
var ge = d(te, /\//), de = d(/\//, te);
|
|
20067
|
-
return { begin: ge, end: de, contains: [].concat(
|
|
20068
|
-
}, he = { scope: "regexp", variants: [ve("###"), ve("##"), ve("#"), { begin: /\/[^\s](?=[^/\n]*\/)/, end: /\//, contains:
|
|
20069
|
-
|
|
20070
|
-
var nt = { begin: /\(/, end: /\)/, relevance: 0, keywords: B, contains: ["self", { match: d(S, /\s*:/), keywords: "_|0", relevance: 0 }].concat(O, [he], U, H, I, [Y, pe], Ae,
|
|
20067
|
+
return { begin: ge, end: de, contains: [].concat(Qe, [{ scope: "comment", begin: "#(?!.*".concat(de, ")"), end: /$/ }]) };
|
|
20068
|
+
}, he = { scope: "regexp", variants: [ve("###"), ve("##"), ve("#"), { begin: /\/[^\s](?=[^/\n]*\/)/, end: /\//, contains: Qe }] }, me = { match: d(/`/, S, /`/) }, Ae = [me, { className: "variable", match: /\$\d+/ }, { className: "variable", match: "\\$".concat(y, "+") }], Re = [{ match: /(@|#(un)?)available/, scope: "keyword", starts: { contains: [{ begin: /\(/, end: /\)/, keywords: L, contains: [].concat(I, [Y, pe]) }] } }, { scope: "keyword", match: d(/@/, c.apply(void 0, A), T(c(/\(/, /\s+/))) }, { scope: "meta", match: d(/@/, S) }], Me = { match: T(/\b[A-Z]/), relevance: 0, contains: [{ className: "type", match: d(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, y, "+") }, { className: "type", match: b, relevance: 0 }, { match: /[?!]+/, relevance: 0 }, { match: /\.\.\./, relevance: 0 }, { match: d(/\s+&\s+/, T(b)), relevance: 0 }] }, Pe = { begin: /</, end: />/, keywords: B, contains: [].concat(O, U, Re, [F, Me]) };
|
|
20069
|
+
Me.contains.push(Pe);
|
|
20070
|
+
var nt = { begin: /\(/, end: /\)/, relevance: 0, keywords: B, contains: ["self", { match: d(S, /\s*:/), keywords: "_|0", relevance: 0 }].concat(O, [he], U, H, I, [Y, pe], Ae, Re, [Me]) }, Ye = { begin: /</, end: />/, keywords: "repeat each", contains: [].concat(O, [Me]) }, Ke = { begin: /\(/, end: /\)/, keywords: B, contains: [{ begin: c(T(d(S, /\s*:/)), T(d(S, /\s+/, S, /\s*:/))), end: /:/, relevance: 0, contains: [{ className: "keyword", match: /\b_\b/ }, { className: "params", match: S }] }].concat(O, U, I, [Y, pe], Re, [Me, nt]), endsParent: !0, illegal: /["']/ }, je = { match: [/(func|macro)/, /\s+/, c(me.match, S, g)], className: { 1: "keyword", 3: "title.function" }, contains: [Ye, Ke, D], illegal: [/\[/, /%/] }, V = { begin: [/precedencegroup/, /\s+/, b], className: { 1: "keyword", 3: "title" }, contains: [Me], keywords: [].concat(m, l), end: /}/ }, j = { begin: [/(struct|protocol|class|extension|enum|actor)/, /\s+/, S, /\s*/], beginScope: { 1: "keyword", 3: "title.class" }, keywords: B, contains: [Ye].concat(U, [{ begin: /:/, end: /\{/, keywords: B, contains: [{ scope: "title.class.inherited", match: b }].concat(U), relevance: 0 }]) }, z, K = function(te, ge) {
|
|
20071
20071
|
var de = typeof Symbol < "u" && te[Symbol.iterator] || te["@@iterator"];
|
|
20072
20072
|
if (!de) {
|
|
20073
20073
|
if (Array.isArray(te) || (de = t(te))) {
|
|
@@ -20113,7 +20113,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
20113
20113
|
} finally {
|
|
20114
20114
|
K.f();
|
|
20115
20115
|
}
|
|
20116
|
-
return { name: "Swift", keywords: B, contains: [].concat(O, [je, { match: [/\b(?:subscript|init[?!]?)/, /\s*(?=[<(])/], className: { 1: "keyword" }, contains: [Ye, Ke, D], illegal: /\[|%/ }, { match: [/class\b/, /\s+/, /func\b/, /\s+/, /\b[A-Za-z_][A-Za-z0-9_]*\b/], scope: { 1: "keyword", 3: "keyword", 5: "title.function" } }, { match: [/class\b/, /\s+/, /var\b/], scope: { 1: "keyword", 3: "keyword" } }, j, { match: [/operator/, /\s+/, g], className: { 1: "keyword", 3: "title" } }, V, { beginKeywords: "import", end: /$/, contains: [].concat(O), relevance: 0 }, he], U, H, I, [Y, pe], Ae,
|
|
20116
|
+
return { name: "Swift", keywords: B, contains: [].concat(O, [je, { match: [/\b(?:subscript|init[?!]?)/, /\s*(?=[<(])/], className: { 1: "keyword" }, contains: [Ye, Ke, D], illegal: /\[|%/ }, { match: [/class\b/, /\s+/, /func\b/, /\s+/, /\b[A-Za-z_][A-Za-z0-9_]*\b/], scope: { 1: "keyword", 3: "keyword", 5: "title.function" } }, { match: [/class\b/, /\s+/, /var\b/], scope: { 1: "keyword", 3: "keyword" } }, j, { match: [/operator/, /\s+/, g], className: { 1: "keyword", 3: "title" } }, V, { beginKeywords: "import", end: /$/, contains: [].concat(O), relevance: 0 }, he], U, H, I, [Y, pe], Ae, Re, [Me, nt]) };
|
|
20117
20117
|
};
|
|
20118
20118
|
}, 3385: function(r) {
|
|
20119
20119
|
r.exports = function(e) {
|
|
@@ -20171,36 +20171,36 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
20171
20171
|
}, 1692: function(r) {
|
|
20172
20172
|
var e = "[A-Za-z$_][0-9A-Za-z$_]*", t = ["as", "in", "of", "if", "for", "while", "finally", "var", "new", "function", "do", "return", "void", "else", "break", "catch", "instanceof", "with", "throw", "case", "default", "try", "switch", "continue", "typeof", "delete", "let", "yield", "const", "class", "debugger", "async", "await", "static", "import", "from", "export", "extends", "using"], i = ["true", "false", "null", "undefined", "NaN", "Infinity"], Q = ["Object", "Function", "Boolean", "Symbol", "Math", "Date", "Number", "BigInt", "String", "RegExp", "Array", "Float32Array", "Float64Array", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Int32Array", "Uint16Array", "Uint32Array", "BigInt64Array", "BigUint64Array", "Set", "Map", "WeakSet", "WeakMap", "ArrayBuffer", "SharedArrayBuffer", "Atomics", "DataView", "JSON", "Promise", "Generator", "GeneratorFunction", "AsyncFunction", "Reflect", "Proxy", "Intl", "WebAssembly"], p = ["Error", "EvalError", "InternalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError"], T = ["setInterval", "setTimeout", "clearInterval", "clearTimeout", "require", "exports", "eval", "isFinite", "isNaN", "parseFloat", "parseInt", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "unescape"], d = ["arguments", "this", "super", "console", "window", "document", "localStorage", "sessionStorage", "module", "global"], c = [].concat(T, Q, p);
|
|
20173
20173
|
r.exports = function(n) {
|
|
20174
|
-
var a, s, o, u, l, m, f, h, E, _, g, v, y, S, b, A, L, C, D, x, O, M, N, R, w, k, B, U, H, F, I = n.regex, P = (s = (a = n).regex, o = function(
|
|
20175
|
-
var he = ve.after, me = "</" +
|
|
20176
|
-
return
|
|
20177
|
-
}, u = "<>", l = "</>", m = /<[A-Za-z0-9\\._:-]+/, f = /\/[A-Za-z0-9\\._:-]+>|\/>/, h = function(
|
|
20178
|
-
var he, me =
|
|
20174
|
+
var a, s, o, u, l, m, f, h, E, _, g, v, y, S, b, A, L, C, D, x, O, M, N, R, w, k, B, U, H, F, I = n.regex, P = (s = (a = n).regex, o = function(Qe, ve) {
|
|
20175
|
+
var he = ve.after, me = "</" + Qe[0].slice(1);
|
|
20176
|
+
return Qe.input.indexOf(me, he) !== -1;
|
|
20177
|
+
}, u = "<>", l = "</>", m = /<[A-Za-z0-9\\._:-]+/, f = /\/[A-Za-z0-9\\._:-]+>|\/>/, h = function(Qe, ve) {
|
|
20178
|
+
var he, me = Qe[0].length + Qe.index, Ae = Qe.input[me];
|
|
20179
20179
|
if (Ae === "<" || Ae === ",") {
|
|
20180
20180
|
ve.ignoreMatch();
|
|
20181
20181
|
return;
|
|
20182
20182
|
}
|
|
20183
|
-
Ae === ">" && !o(
|
|
20184
|
-
var
|
|
20185
|
-
if ((he =
|
|
20183
|
+
Ae === ">" && !o(Qe, { after: me }) && ve.ignoreMatch();
|
|
20184
|
+
var Re = Qe.input.substring(me);
|
|
20185
|
+
if ((he = Re.match(/^\s*=/)) || (he = Re.match(/^\s+extends\s+/)) && he.index === 0) {
|
|
20186
20186
|
ve.ignoreMatch();
|
|
20187
20187
|
return;
|
|
20188
20188
|
}
|
|
20189
|
-
}, E = { $pattern: e, keyword: t, literal: i, built_in: c, "variable.language": d }, _ = "[0-9](_?[0-9])*", g = "\\.(".concat(_, ")"), v = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", y = { className: "number", variants: [{ begin: "(\\b(".concat(v, ")((").concat(g, ")|\\.)?|(").concat(g, "))") + "[eE][+-]?(".concat(_, ")\\b") }, { begin: "\\b(".concat(v, ")\\b((").concat(g, ")\\b|\\.)?|(").concat(g, ")\\b") }, { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" }, { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" }, { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" }, { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" }, { begin: "\\b0[0-7]+n?\\b" }], relevance: 0 }, S = { className: "subst", begin: "\\$\\{", end: "\\}", keywords: E, contains: [] }, b = { begin: ".?html`", end: "", starts: { end: "`", returnEnd: !1, contains: [a.BACKSLASH_ESCAPE, S], subLanguage: "xml" } }, A = { begin: ".?css`", end: "", starts: { end: "`", returnEnd: !1, contains: [a.BACKSLASH_ESCAPE, S], subLanguage: "css" } }, L = { begin: ".?gql`", end: "", starts: { end: "`", returnEnd: !1, contains: [a.BACKSLASH_ESCAPE, S], subLanguage: "graphql" } }, C = { className: "string", begin: "`", end: "`", contains: [a.BACKSLASH_ESCAPE, S] }, D = { className: "comment", variants: [a.COMMENT(/\/\*\*(?!\/)/, "\\*/", { relevance: 0, contains: [{ begin: "(?=@[A-Za-z]+)", relevance: 0, contains: [{ className: "doctag", begin: "@[A-Za-z]+" }, { className: "type", begin: "\\{", end: "\\}", excludeEnd: !0, excludeBegin: !0, relevance: 0 }, { className: "variable", begin: e + "(?=\\s*(-)|$)", endsParent: !0, relevance: 0 }, { begin: /(?=[^\n])\s/, relevance: 0 }] }] }), a.C_BLOCK_COMMENT_MODE, a.C_LINE_COMMENT_MODE] }, x = [a.APOS_STRING_MODE, a.QUOTE_STRING_MODE, b, A, L, C, { match: /\$\d+/ }, y], S.contains = x.concat({ begin: /\{/, end: /\}/, keywords: E, contains: ["self"].concat(x) }), M = (O = [].concat(D, S.contains)).concat([{ begin: /(\s*)\(/, end: /\)/, keywords: E, contains: ["self"].concat(O) }]), N = { className: "params", begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: E, contains: M }, R = { variants: [{ match: [/class/, /\s+/, e, /\s+/, /extends/, /\s+/, s.concat(e, "(", s.concat(/\./, e), ")*")], scope: { 1: "keyword", 3: "title.class", 5: "keyword", 7: "title.class.inherited" } }, { match: [/class/, /\s+/, e], scope: { 1: "keyword", 3: "title.class" } }] }, w = { relevance: 0, match: s.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/), className: "title.class", keywords: { _: [].concat(Q, p) } }, B = { match: s.concat(/\b/, (k = [].concat(T, ["super", "import"]).map(function(
|
|
20190
|
-
return "".concat(
|
|
20191
|
-
}), s.concat("(?!", k.join("|"), ")")), e, s.lookahead(/\s*\(/)), className: "title.function", relevance: 0 }, U = { begin: s.concat(/\./, s.lookahead(s.concat(e, /(?![0-9A-Za-z$_(])/))), end: e, excludeBegin: !0, keywords: "prototype", className: "property", relevance: 0 }, H = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + a.UNDERSCORE_IDENT_RE + ")\\s*=>", F = { match: [/const|var|let/, /\s+/, e, /\s*/, /=\s*/, /(async\s*)?/, s.lookahead(H)], keywords: "async", className: { 1: "keyword", 3: "title.function" }, contains: [N] }, { name: "JavaScript", aliases: ["js", "jsx", "mjs", "cjs"], keywords: E, exports: { PARAMS_CONTAINS: M, CLASS_REFERENCE: w }, illegal: /#(?![$_A-z])/, contains: [a.SHEBANG({ label: "shebang", binary: "node", relevance: 5 }), { label: "use_strict", className: "meta", relevance: 10, begin: /^\s*['"]use (strict|asm)['"]/ }, a.APOS_STRING_MODE, a.QUOTE_STRING_MODE, b, A, L, C, D, { match: /\$\d+/ }, y, w, { scope: "attr", match: e + s.lookahead(":"), relevance: 0 }, F, { begin: "(" + a.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*", keywords: "return throw case", relevance: 0, contains: [D, a.REGEXP_MODE, { className: "function", begin: H, returnBegin: !0, end: "\\s*=>", contains: [{ className: "params", variants: [{ begin: a.UNDERSCORE_IDENT_RE, relevance: 0 }, { className: null, begin: /\(\s*\)/, skip: !0 }, { begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: E, contains: M }] }] }, { begin: /,/, relevance: 0 }, { match: /\s+/, relevance: 0 }, { variants: [{ begin: u, end: l }, { match: /<[A-Za-z0-9\\._:-]+\s*\/>/ }, { begin: m, "on:begin": h, end: f }], subLanguage: "xml", contains: [{ begin: m, end: f, skip: !0, contains: ["self"] }] }] }, { variants: [{ match: [/function/, /\s+/, e, /(?=\s*\()/] }, { match: [/function/, /\s*(?=\()/] }], className: { 1: "keyword", 3: "title.function" }, label: "func.def", contains: [N], illegal: /%/ }, { beginKeywords: "while if switch catch for" }, { begin: "\\b(?!function)" + a.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", returnBegin: !0, label: "func.def", contains: [N, a.inherit(a.TITLE_MODE, { begin: e, className: "title.function" })] }, { match: /\.\.\./, relevance: 0 }, U, { match: "\\$" + e, relevance: 0 }, { match: [/\bconstructor(?=\s*\()/], className: { 1: "title.function" }, contains: [N] }, B, { relevance: 0, match: /\b[A-Z][A-Z_0-9]+\b/, className: "variable.constant" }, R, { match: [/get|set/, /\s+/, e, /(?=\()/], className: { 1: "keyword", 3: "title.function" }, contains: [{ begin: /\(\)/ }, N] }, { match: /\$[(.]/ }] }), G = ["any", "void", "number", "boolean", "string", "object", "never", "symbol", "bigint", "unknown"], Y = { begin: [/namespace/, /\s+/, n.IDENT_RE], beginScope: { 1: "keyword", 3: "title.class" } }, q = { beginKeywords: "interface", end: /\{/, excludeEnd: !0, keywords: { keyword: "interface extends", built_in: G }, contains: [P.exports.CLASS_REFERENCE] }, W = { $pattern: e, keyword: t.concat(["type", "interface", "public", "private", "protected", "implements", "declare", "abstract", "readonly", "enum", "override", "satisfies"]), literal: i, built_in: c.concat(G), "variable.language": d }, re = { className: "meta", begin: "@" + e },
|
|
20192
|
-
var me =
|
|
20189
|
+
}, E = { $pattern: e, keyword: t, literal: i, built_in: c, "variable.language": d }, _ = "[0-9](_?[0-9])*", g = "\\.(".concat(_, ")"), v = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", y = { className: "number", variants: [{ begin: "(\\b(".concat(v, ")((").concat(g, ")|\\.)?|(").concat(g, "))") + "[eE][+-]?(".concat(_, ")\\b") }, { begin: "\\b(".concat(v, ")\\b((").concat(g, ")\\b|\\.)?|(").concat(g, ")\\b") }, { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" }, { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" }, { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" }, { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" }, { begin: "\\b0[0-7]+n?\\b" }], relevance: 0 }, S = { className: "subst", begin: "\\$\\{", end: "\\}", keywords: E, contains: [] }, b = { begin: ".?html`", end: "", starts: { end: "`", returnEnd: !1, contains: [a.BACKSLASH_ESCAPE, S], subLanguage: "xml" } }, A = { begin: ".?css`", end: "", starts: { end: "`", returnEnd: !1, contains: [a.BACKSLASH_ESCAPE, S], subLanguage: "css" } }, L = { begin: ".?gql`", end: "", starts: { end: "`", returnEnd: !1, contains: [a.BACKSLASH_ESCAPE, S], subLanguage: "graphql" } }, C = { className: "string", begin: "`", end: "`", contains: [a.BACKSLASH_ESCAPE, S] }, D = { className: "comment", variants: [a.COMMENT(/\/\*\*(?!\/)/, "\\*/", { relevance: 0, contains: [{ begin: "(?=@[A-Za-z]+)", relevance: 0, contains: [{ className: "doctag", begin: "@[A-Za-z]+" }, { className: "type", begin: "\\{", end: "\\}", excludeEnd: !0, excludeBegin: !0, relevance: 0 }, { className: "variable", begin: e + "(?=\\s*(-)|$)", endsParent: !0, relevance: 0 }, { begin: /(?=[^\n])\s/, relevance: 0 }] }] }), a.C_BLOCK_COMMENT_MODE, a.C_LINE_COMMENT_MODE] }, x = [a.APOS_STRING_MODE, a.QUOTE_STRING_MODE, b, A, L, C, { match: /\$\d+/ }, y], S.contains = x.concat({ begin: /\{/, end: /\}/, keywords: E, contains: ["self"].concat(x) }), M = (O = [].concat(D, S.contains)).concat([{ begin: /(\s*)\(/, end: /\)/, keywords: E, contains: ["self"].concat(O) }]), N = { className: "params", begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: E, contains: M }, R = { variants: [{ match: [/class/, /\s+/, e, /\s+/, /extends/, /\s+/, s.concat(e, "(", s.concat(/\./, e), ")*")], scope: { 1: "keyword", 3: "title.class", 5: "keyword", 7: "title.class.inherited" } }, { match: [/class/, /\s+/, e], scope: { 1: "keyword", 3: "title.class" } }] }, w = { relevance: 0, match: s.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/), className: "title.class", keywords: { _: [].concat(Q, p) } }, B = { match: s.concat(/\b/, (k = [].concat(T, ["super", "import"]).map(function(Qe) {
|
|
20190
|
+
return "".concat(Qe, "\\s*\\(");
|
|
20191
|
+
}), s.concat("(?!", k.join("|"), ")")), e, s.lookahead(/\s*\(/)), className: "title.function", relevance: 0 }, U = { begin: s.concat(/\./, s.lookahead(s.concat(e, /(?![0-9A-Za-z$_(])/))), end: e, excludeBegin: !0, keywords: "prototype", className: "property", relevance: 0 }, H = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + a.UNDERSCORE_IDENT_RE + ")\\s*=>", F = { match: [/const|var|let/, /\s+/, e, /\s*/, /=\s*/, /(async\s*)?/, s.lookahead(H)], keywords: "async", className: { 1: "keyword", 3: "title.function" }, contains: [N] }, { name: "JavaScript", aliases: ["js", "jsx", "mjs", "cjs"], keywords: E, exports: { PARAMS_CONTAINS: M, CLASS_REFERENCE: w }, illegal: /#(?![$_A-z])/, contains: [a.SHEBANG({ label: "shebang", binary: "node", relevance: 5 }), { label: "use_strict", className: "meta", relevance: 10, begin: /^\s*['"]use (strict|asm)['"]/ }, a.APOS_STRING_MODE, a.QUOTE_STRING_MODE, b, A, L, C, D, { match: /\$\d+/ }, y, w, { scope: "attr", match: e + s.lookahead(":"), relevance: 0 }, F, { begin: "(" + a.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*", keywords: "return throw case", relevance: 0, contains: [D, a.REGEXP_MODE, { className: "function", begin: H, returnBegin: !0, end: "\\s*=>", contains: [{ className: "params", variants: [{ begin: a.UNDERSCORE_IDENT_RE, relevance: 0 }, { className: null, begin: /\(\s*\)/, skip: !0 }, { begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: E, contains: M }] }] }, { begin: /,/, relevance: 0 }, { match: /\s+/, relevance: 0 }, { variants: [{ begin: u, end: l }, { match: /<[A-Za-z0-9\\._:-]+\s*\/>/ }, { begin: m, "on:begin": h, end: f }], subLanguage: "xml", contains: [{ begin: m, end: f, skip: !0, contains: ["self"] }] }] }, { variants: [{ match: [/function/, /\s+/, e, /(?=\s*\()/] }, { match: [/function/, /\s*(?=\()/] }], className: { 1: "keyword", 3: "title.function" }, label: "func.def", contains: [N], illegal: /%/ }, { beginKeywords: "while if switch catch for" }, { begin: "\\b(?!function)" + a.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", returnBegin: !0, label: "func.def", contains: [N, a.inherit(a.TITLE_MODE, { begin: e, className: "title.function" })] }, { match: /\.\.\./, relevance: 0 }, U, { match: "\\$" + e, relevance: 0 }, { match: [/\bconstructor(?=\s*\()/], className: { 1: "title.function" }, contains: [N] }, B, { relevance: 0, match: /\b[A-Z][A-Z_0-9]+\b/, className: "variable.constant" }, R, { match: [/get|set/, /\s+/, e, /(?=\()/], className: { 1: "keyword", 3: "title.function" }, contains: [{ begin: /\(\)/ }, N] }, { match: /\$[(.]/ }] }), G = ["any", "void", "number", "boolean", "string", "object", "never", "symbol", "bigint", "unknown"], Y = { begin: [/namespace/, /\s+/, n.IDENT_RE], beginScope: { 1: "keyword", 3: "title.class" } }, q = { beginKeywords: "interface", end: /\{/, excludeEnd: !0, keywords: { keyword: "interface extends", built_in: G }, contains: [P.exports.CLASS_REFERENCE] }, W = { $pattern: e, keyword: t.concat(["type", "interface", "public", "private", "protected", "implements", "declare", "abstract", "readonly", "enum", "override", "satisfies"]), literal: i, built_in: c.concat(G), "variable.language": d }, re = { className: "meta", begin: "@" + e }, Te = function(Qe, ve, he) {
|
|
20192
|
+
var me = Qe.contains.findIndex(function(Ae) {
|
|
20193
20193
|
return Ae.label === ve;
|
|
20194
20194
|
});
|
|
20195
20195
|
if (me === -1) throw Error("can not find mode to replace");
|
|
20196
|
-
|
|
20196
|
+
Qe.contains.splice(me, 1, he);
|
|
20197
20197
|
};
|
|
20198
20198
|
Object.assign(P.keywords, W), P.exports.PARAMS_CONTAINS.push(re);
|
|
20199
|
-
var le = P.contains.find(function(
|
|
20200
|
-
return
|
|
20199
|
+
var le = P.contains.find(function(Qe) {
|
|
20200
|
+
return Qe.scope === "attr";
|
|
20201
20201
|
}), pe = Object.assign({}, le, { match: I.concat(e, I.lookahead(/\s*\?:/)) });
|
|
20202
|
-
return P.exports.PARAMS_CONTAINS.push([P.exports.CLASS_REFERENCE, le, pe]), P.contains = P.contains.concat([re, Y, q, pe]),
|
|
20203
|
-
return
|
|
20202
|
+
return P.exports.PARAMS_CONTAINS.push([P.exports.CLASS_REFERENCE, le, pe]), P.contains = P.contains.concat([re, Y, q, pe]), Te(P, "shebang", n.SHEBANG()), Te(P, "use_strict", { className: "meta", relevance: 10, begin: /^\s*['"]use strict['"]/ }), P.contains.find(function(Qe) {
|
|
20203
|
+
return Qe.label === "func.def";
|
|
20204
20204
|
}).relevance = 0, Object.assign(P, { name: "TypeScript", aliases: ["ts", "tsx", "mts", "cts"] }), P;
|
|
20205
20205
|
};
|
|
20206
20206
|
}, 5039: function(r) {
|
|
@@ -20441,19 +20441,19 @@ let mo = function(r) {
|
|
|
20441
20441
|
}(C = L) || function(Y, q) {
|
|
20442
20442
|
var W = Y == null ? null : typeof Symbol < "u" && Y[Symbol.iterator] || Y["@@iterator"];
|
|
20443
20443
|
if (W != null) {
|
|
20444
|
-
var re,
|
|
20444
|
+
var re, Te, le, pe, Qe = [], ve = !0, he = !1;
|
|
20445
20445
|
try {
|
|
20446
|
-
if (le = (W = W.call(Y)).next, q !== 0) for (; !(ve = (re = le.call(W)).done) && (
|
|
20446
|
+
if (le = (W = W.call(Y)).next, q !== 0) for (; !(ve = (re = le.call(W)).done) && (Qe.push(re.value), Qe.length !== q); ve = !0) ;
|
|
20447
20447
|
} catch (me) {
|
|
20448
|
-
he = !0,
|
|
20448
|
+
he = !0, Te = me;
|
|
20449
20449
|
} finally {
|
|
20450
20450
|
try {
|
|
20451
20451
|
if (!ve && W.return != null && (pe = W.return(), Object(pe) !== pe)) return;
|
|
20452
20452
|
} finally {
|
|
20453
|
-
if (he) throw
|
|
20453
|
+
if (he) throw Te;
|
|
20454
20454
|
}
|
|
20455
20455
|
}
|
|
20456
|
-
return
|
|
20456
|
+
return Qe;
|
|
20457
20457
|
}
|
|
20458
20458
|
}(C, 3) || ju(C, D) || function() {
|
|
20459
20459
|
throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
@@ -20468,19 +20468,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
20468
20468
|
}), N.forEach(function(Y) {
|
|
20469
20469
|
Y !== "" && (M === "" || Y.trim().length < M.trim().length) && (M = Y);
|
|
20470
20470
|
}), M), '<span style="visibility: hidden;"><span>'.concat(R, "</span></span>")), G = function(Y, q, W) {
|
|
20471
|
-
var re = Array(Y.length).fill(!1).map(function(
|
|
20471
|
+
var re = Array(Y.length).fill(!1).map(function(Te, le) {
|
|
20472
20472
|
return U6(Y[le]);
|
|
20473
20473
|
});
|
|
20474
|
-
return re.forEach(function(
|
|
20475
|
-
|
|
20476
|
-
if (
|
|
20477
|
-
var ve =
|
|
20474
|
+
return re.forEach(function(Te, le) {
|
|
20475
|
+
Te.forEach(function(pe, Qe) {
|
|
20476
|
+
if (Qe < q) {
|
|
20477
|
+
var ve = Te.every(function(me) {
|
|
20478
20478
|
return me.trim() === "";
|
|
20479
20479
|
}), he = re.every(function(me) {
|
|
20480
|
-
return me[
|
|
20480
|
+
return me[Qe].trim() === "";
|
|
20481
20481
|
});
|
|
20482
|
-
ve || he ? re[le][
|
|
20483
|
-
} else re[le][
|
|
20482
|
+
ve || he ? re[le][Qe] = W : re[le][Qe] = re[le][Qe];
|
|
20483
|
+
} else re[le][Qe] = re[le][Qe];
|
|
20484
20484
|
});
|
|
20485
20485
|
}), re;
|
|
20486
20486
|
}(I, U, P).map(function(Y) {
|
|
@@ -20863,10 +20863,10 @@ let Ku = function(r) {
|
|
|
20863
20863
|
if (G) {
|
|
20864
20864
|
var re = document.getElementById("temp_chtml");
|
|
20865
20865
|
!re && ((re = document.createElement("div")).id = "temp_chtml", document.body.appendChild(re)), re.innerHTML += "$$".concat(R, "$$");
|
|
20866
|
-
var
|
|
20867
|
-
!document.renders && (document.renders = []), document.renders.push(
|
|
20866
|
+
var Te = { done: !1 };
|
|
20867
|
+
!document.renders && (document.renders = []), document.renders.push(Te), window.MathJax1.typesetPromise().then(function() {
|
|
20868
20868
|
setTimeout(function() {
|
|
20869
|
-
|
|
20869
|
+
Te.done = !0;
|
|
20870
20870
|
}, 1e3);
|
|
20871
20871
|
}), B = window.MathJax1.tex2chtml(R, { display: !0 }).outerHTML;
|
|
20872
20872
|
} else if (Y) {
|
|
@@ -20876,8 +20876,8 @@ let Ku = function(r) {
|
|
|
20876
20876
|
var pe = R.replace(/^\\uwave/, "").replace(/^\{/, "").replace(/\}$/, "");
|
|
20877
20877
|
if (pe) return B = '<span class="text-wave-special">'.concat(pe, "</span>");
|
|
20878
20878
|
} else if (U) {
|
|
20879
|
-
var
|
|
20880
|
-
!
|
|
20879
|
+
var Qe = document.getElementById("temp_chtml");
|
|
20880
|
+
!Qe && ((Qe = document.createElement("div")).id = "temp_chtml", document.body.appendChild(Qe)), Qe.innerHTML += "$$".concat(R, "$$");
|
|
20881
20881
|
var ve = { done: !1 };
|
|
20882
20882
|
!document.renders && (document.renders = []), document.renders.push(ve), window.MathJax1.typesetPromise().then(function() {
|
|
20883
20883
|
setTimeout(function() {
|
|
@@ -20887,8 +20887,8 @@ let Ku = function(r) {
|
|
|
20887
20887
|
} else B = window.MathJax.tex2svg(R, { display: !0 }).outerHTML;
|
|
20888
20888
|
var he = (B.match(/mathcolor="red"/g) || []).length, me = (R.match(/color{red}/g) || []).length;
|
|
20889
20889
|
(k = B.includes('mathcolor="red"') && he > me || B.includes("data-mjx-error")) && !S && (S = !0);
|
|
20890
|
-
} catch (
|
|
20891
|
-
console.log("error",
|
|
20890
|
+
} catch (Me) {
|
|
20891
|
+
console.log("error", Me), B = R, k = !0, !S && (S = !0);
|
|
20892
20892
|
}
|
|
20893
20893
|
var Ae = 0;
|
|
20894
20894
|
try {
|
|
@@ -20896,8 +20896,8 @@ let Ku = function(r) {
|
|
|
20896
20896
|
} catch {
|
|
20897
20897
|
Ae = 0;
|
|
20898
20898
|
}
|
|
20899
|
-
var
|
|
20900
|
-
return k ? n ? R : '<span class="mathtex-block"'.concat(
|
|
20899
|
+
var Re = Ae >= 2;
|
|
20900
|
+
return k ? n ? R : '<span class="mathtex-block"'.concat(Re ? " layer-margin" : "").concat(G ? " text-boxed-special" : "").concat(F ? " text-wave-special" : "").concat(Y ? " text-underline-special" : "", '">').concat(B, "</span>") : '<span class="mathtex-block'.concat(Re ? " layer-margin" : "").concat(G ? " text-boxed-special" : "").concat(F ? " text-wave-special" : "").concat(Y ? " text-underline-special" : "", '">').concat(B, "</span>");
|
|
20901
20901
|
};
|
|
20902
20902
|
if (h === "latexContent") return r;
|
|
20903
20903
|
var A = RegExp('fill="red"', "g"), L = "";
|
|
@@ -21007,8 +21007,8 @@ let Xu = function() {
|
|
|
21007
21007
|
var re = Y6.convert(R, { display: !0 });
|
|
21008
21008
|
B = g4.outerHTML(re);
|
|
21009
21009
|
} else if (Y) {
|
|
21010
|
-
var
|
|
21011
|
-
if (
|
|
21010
|
+
var Te = R.replace(/^\\underline/, "").replace(/^\{/, "").replace(/\}$/, "");
|
|
21011
|
+
if (Te) return B = '<span class="text-underline-special">'.concat(Te, "</span>");
|
|
21012
21012
|
} else if (F) {
|
|
21013
21013
|
var le = R.replace(/^\\uwave/, "").replace(/^\{/, "").replace(/\}$/, "");
|
|
21014
21014
|
if (le) return B = '<span class="text-wave-special">'.concat(le, "</span>");
|
|
@@ -21016,13 +21016,13 @@ let Xu = function() {
|
|
|
21016
21016
|
var pe = Y6.convert(R, { display: !0 });
|
|
21017
21017
|
B = g4.outerHTML(pe);
|
|
21018
21018
|
} else {
|
|
21019
|
-
var
|
|
21020
|
-
B = g4.outerHTML(
|
|
21019
|
+
var Qe = Y6.convert(R, { display: !0 });
|
|
21020
|
+
B = g4.outerHTML(Qe);
|
|
21021
21021
|
}
|
|
21022
21022
|
var ve = (B.match(/mathcolor="red"/g) || []).length, he = (R.match(/color{red}/g) || []).length;
|
|
21023
21023
|
(k = B.includes('mathcolor="red"') && ve > he || B.includes("data-mjx-error")) && !S && (S = !0);
|
|
21024
|
-
} catch (
|
|
21025
|
-
console.log("Server render error:",
|
|
21024
|
+
} catch (Re) {
|
|
21025
|
+
console.log("Server render error:", Re), B = R, k = !0, !S && (S = !0);
|
|
21026
21026
|
}
|
|
21027
21027
|
var me = 0;
|
|
21028
21028
|
try {
|
|
@@ -23162,49 +23162,49 @@ let dc = function(r) {
|
|
|
23162
23162
|
if (!(i.startsWith("[") && i.endsWith("]"))) return "".concat(r, `
|
|
23163
23163
|
<img src='`).concat(i, "' alt='题目配图' style='width: 100%; height: auto;'>");
|
|
23164
23164
|
var c = (i = i.slice(1, -1)).split(","), n = "";
|
|
23165
|
-
return c.forEach(function(
|
|
23166
|
-
|
|
23165
|
+
return c.forEach(function(Ne) {
|
|
23166
|
+
Ne && (n += '<img src="'.concat(Ne, '" alt="题目配图" style="width: 100%; height: auto;">'));
|
|
23167
23167
|
}), "".concat(r, `
|
|
23168
23168
|
`).concat(n);
|
|
23169
23169
|
}
|
|
23170
23170
|
if (t === "单选" || t === "判断" || t === "填空") {
|
|
23171
|
-
var a, s, o = r, u = [].concat(T).sort(function(
|
|
23172
|
-
return ne.start -
|
|
23173
|
-
}), l = function(
|
|
23174
|
-
var X = typeof Symbol < "u" &&
|
|
23171
|
+
var a, s, o = r, u = [].concat(T).sort(function(Ne, ne) {
|
|
23172
|
+
return ne.start - Ne.start;
|
|
23173
|
+
}), l = function(Ne, ne) {
|
|
23174
|
+
var X = typeof Symbol < "u" && Ne[Symbol.iterator] || Ne["@@iterator"];
|
|
23175
23175
|
if (!X) {
|
|
23176
|
-
if (Array.isArray(
|
|
23177
|
-
if (
|
|
23178
|
-
if (typeof
|
|
23179
|
-
var Le = {}.toString.call(
|
|
23180
|
-
return Le === "Object" &&
|
|
23176
|
+
if (Array.isArray(Ne) || (X = function(se, De) {
|
|
23177
|
+
if (se) {
|
|
23178
|
+
if (typeof se == "string") return Is(se, De);
|
|
23179
|
+
var Le = {}.toString.call(se).slice(8, -1);
|
|
23180
|
+
return Le === "Object" && se.constructor && (Le = se.constructor.name), Le === "Map" || Le === "Set" ? Array.from(se) : Le === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Le) ? Is(se, De) : void 0;
|
|
23181
23181
|
}
|
|
23182
|
-
}(
|
|
23183
|
-
X && (
|
|
23184
|
-
var Z = 0,
|
|
23182
|
+
}(Ne))) {
|
|
23183
|
+
X && (Ne = X);
|
|
23184
|
+
var Z = 0, ce = function() {
|
|
23185
23185
|
};
|
|
23186
|
-
return { s:
|
|
23187
|
-
return Z >=
|
|
23188
|
-
}, e: function(
|
|
23189
|
-
throw
|
|
23190
|
-
}, f:
|
|
23186
|
+
return { s: ce, n: function() {
|
|
23187
|
+
return Z >= Ne.length ? { done: !0 } : { done: !1, value: Ne[Z++] };
|
|
23188
|
+
}, e: function(se) {
|
|
23189
|
+
throw se;
|
|
23190
|
+
}, f: ce };
|
|
23191
23191
|
}
|
|
23192
23192
|
throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
23193
23193
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
23194
23194
|
}
|
|
23195
|
-
var ee, J = !0,
|
|
23195
|
+
var ee, J = !0, ue = !1;
|
|
23196
23196
|
return { s: function() {
|
|
23197
|
-
X = X.call(
|
|
23197
|
+
X = X.call(Ne);
|
|
23198
23198
|
}, n: function() {
|
|
23199
|
-
var
|
|
23200
|
-
return J =
|
|
23201
|
-
}, e: function(
|
|
23202
|
-
|
|
23199
|
+
var se = X.next();
|
|
23200
|
+
return J = se.done, se;
|
|
23201
|
+
}, e: function(se) {
|
|
23202
|
+
ue = !0, ee = se;
|
|
23203
23203
|
}, f: function() {
|
|
23204
23204
|
try {
|
|
23205
23205
|
J || X.return == null || X.return();
|
|
23206
23206
|
} finally {
|
|
23207
|
-
if (
|
|
23207
|
+
if (ue) throw ee;
|
|
23208
23208
|
}
|
|
23209
23209
|
} };
|
|
23210
23210
|
}(u);
|
|
@@ -23249,16 +23249,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23249
23249
|
q === "\\left(" && W === "\\right)" && (o = o.substring(0, h - 6) + o.substring(h, E) + o.substring(E + 7), h -= 6, E -= 6);
|
|
23250
23250
|
} else h = U, E = H;
|
|
23251
23251
|
else {
|
|
23252
|
-
var re = o.substring(h - 6, h),
|
|
23253
|
-
re === "\\left(" &&
|
|
23252
|
+
var re = o.substring(h - 6, h), Te = o.substring(E, E + 7);
|
|
23253
|
+
re === "\\left(" && Te === "\\right)" ? (R = !0, w = !0, k = "( ", B = " )", Y = !0) : (R = !1, w = !1, k = "", B = "", U = h, H = E, Y = !1);
|
|
23254
23254
|
}
|
|
23255
23255
|
for (var le = /\\enclose\{circle\}\{([^{}]*?)##[^#]*##([^{}]*?)\}/g, pe = void 0; (pe = le.exec(r)) !== null; ) if (pe.index < h && pe.index + pe[0].length > E) {
|
|
23256
23256
|
x = !0;
|
|
23257
23257
|
break;
|
|
23258
23258
|
}
|
|
23259
23259
|
if (!x) {
|
|
23260
|
-
var
|
|
23261
|
-
/^\\enclose\{circle\}\{[^{}]+\}$/.test(
|
|
23260
|
+
var Qe = f.replace(/^##|##$/g, "").trim();
|
|
23261
|
+
/^\\enclose\{circle\}\{[^{}]+\}$/.test(Qe) && (x = !0);
|
|
23262
23262
|
}
|
|
23263
23263
|
for (var ve = /\\enclose\{box\}\{([^{}]*?)##[^#]*##([^{}]*?)\}/g, he = void 0; (he = ve.exec(r)) !== null; ) if (he.index < h && he.index + he[0].length > E) {
|
|
23264
23264
|
O = !0;
|
|
@@ -23268,11 +23268,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23268
23268
|
var me = f.replace(/^##|##$/g, "").trim();
|
|
23269
23269
|
/^\\enclose\{box\}\{[^{}]+\}$/.test(me) && (O = !0);
|
|
23270
23270
|
}
|
|
23271
|
-
for (var Ae = /\\underline\{([^{}]*?)##[^#]*##([^{}]*?)\}/g,
|
|
23271
|
+
for (var Ae = /\\underline\{([^{}]*?)##[^#]*##([^{}]*?)\}/g, Re = void 0; (Re = Ae.exec(r)) !== null; ) if (Re.index < h && Re.index + Re[0].length > E) {
|
|
23272
23272
|
D = !0;
|
|
23273
23273
|
break;
|
|
23274
23274
|
}
|
|
23275
|
-
for (var
|
|
23275
|
+
for (var Me = /\\frac\{(?:[^{}]*##[^#]*##[^{}]*|[^{}]*)\}\{[^{}]*\}|\\frac\{[^{}]*\}\{(?:[^{}]*##[^#]*##[^{}]*|[^{}]*)\}/g, Pe = void 0; (Pe = Me.exec(r)) !== null; ) {
|
|
23276
23276
|
var nt = Pe[0], Ye = Pe.index, Ke = Ye + nt.length;
|
|
23277
23277
|
if (h >= Ye && E <= Ke) {
|
|
23278
23278
|
M = !0;
|
|
@@ -23303,16 +23303,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23303
23303
|
f.startsWith("$$") && f.endsWith("$$") && ze ? We = e ? "$$".concat(g, "color{").concat(Q, "}{").concat(g, "enclose{circle}{").concat(g, "color{black}{").concat(ze[1], "}}}").concat(g, "color{black}{}$$") : "$$".concat(g, "color{black}{").concat(g, "enclose{circle}{").concat(g, "phantom{").concat(ze[1], "}}}").concat(g, "color{black}{}$$") : f.startsWith("$$") && f.endsWith("$$") && ht ? We = e ? "$$".concat(g, "color{").concat(Q, "}{").concat(g, "enclose{box}{").concat(g, "color{black}{").concat(ht[1], "}}}").concat(g, "color{black}{}$$") : "$$".concat(g, "color{black}{").concat(g, "enclose{box}{").concat(g, "phantom{").concat(ht[1], "}}}").concat(g, "color{black}{}$$") : ae && _e ? We = e ? '<span style="display: inline-block; min-width: '.concat(20, "px; ").concat(j, '"><span style="display: inline-block;outline: 1.3px solid ').concat(Q, '; outline-offset: 2px;">').concat(te).concat(f).concat(ge, "</span></span>") : '<span style="display: inline-block; min-width: '.concat(20, "px; ").concat(j, '"><span style="display: inline-block;">').concat(te, '<span style="visibility: hidden;">').concat(f, "</span>").concat(ge, "</span></span>") : f.includes("underline") && (V = f, /^\$\$\\underline\{[\s\S]*\}\$\$/.test(V)) ? We = e ? '<span style="display: inline-block; min-width: '.concat(20, "px; ").concat(j, "; outline: 1.3px solid ").concat(Q, '; outline-offset: 2px;">').concat(f, "</span>") : '<span style="display: inline-block; min-width: '.concat(20, "px; ").concat(j, '; border-bottom: 1px solid black"><span style="visibility: hidden;">').concat(f, "</span></span>") : We = e ? '<span style="display: inline-block; min-width: '.concat(20, "px; ").concat(j, ";border-bottom: 1px solid black;outline: 1.3px solid ").concat(Q, '; outline-offset: 2px;">').concat(f, "</span>") : '<span style="display: inline-block; min-width: '.concat(20, "px; ").concat(j, ';border-bottom: 1px solid black"><span style="visibility: hidden;">').concat(f, "</span></span>"), o = o.substring(0, z) + We + o.substring(K);
|
|
23304
23304
|
}
|
|
23305
23305
|
}
|
|
23306
|
-
} catch (
|
|
23307
|
-
l.e(
|
|
23306
|
+
} catch (Ne) {
|
|
23307
|
+
l.e(Ne);
|
|
23308
23308
|
} finally {
|
|
23309
23309
|
l.f();
|
|
23310
23310
|
}
|
|
23311
23311
|
if (i && i !== "[]")
|
|
23312
23312
|
if (i.startsWith("[") && i.endsWith("]")) {
|
|
23313
23313
|
var h1 = (i = i.slice(1, -1)).split(","), t1 = "";
|
|
23314
|
-
h1.forEach(function(
|
|
23315
|
-
|
|
23314
|
+
h1.forEach(function(Ne) {
|
|
23315
|
+
Ne && (t1 += '<img src="'.concat(Ne, '" alt="题目配图" style="width: 100%; height: auto;">'));
|
|
23316
23316
|
}), o = "".concat(o, `
|
|
23317
23317
|
`).concat(t1);
|
|
23318
23318
|
} else o = "".concat(o, `
|
|
@@ -23322,14 +23322,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23322
23322
|
if (t === "解答") {
|
|
23323
23323
|
console.log("解答11111111");
|
|
23324
23324
|
var Ce = r;
|
|
23325
|
-
return [].concat(T).sort(function(
|
|
23326
|
-
return ne.start -
|
|
23327
|
-
}).forEach(function(
|
|
23328
|
-
|
|
23329
|
-
for (var X =
|
|
23330
|
-
if (
|
|
23331
|
-
var Le =
|
|
23332
|
-
if (Le < Z && Ie >
|
|
23325
|
+
return [].concat(T).sort(function(Ne, ne) {
|
|
23326
|
+
return ne.start - Ne.start;
|
|
23327
|
+
}).forEach(function(Ne, ne) {
|
|
23328
|
+
Ne.fullMatch;
|
|
23329
|
+
for (var X = Ne.answer, Z = Ne.start, ce = Ne.end, ee = !1, J = "\\", ue = [], se = 0; se < Ce.length - 1; se++) Ce.substr(se, 2) === "$$" && (ue.push(se), se++);
|
|
23330
|
+
if (ue.length >= 2) for (var De = 0; De < ue.length - 1; De += 2) {
|
|
23331
|
+
var Le = ue[De], Ie = ue[De + 1] + 2;
|
|
23332
|
+
if (Le < Z && Ie > ce && !Ce.substring(Z, ce).includes("$$")) {
|
|
23333
23333
|
var gt = Ce.substring(Le + 2, Ie - 2);
|
|
23334
23334
|
if (!gt.includes("$$")) {
|
|
23335
23335
|
var Je = gt.match(/^[^\\]*?(\\+)/);
|
|
@@ -23340,8 +23340,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23340
23340
|
}
|
|
23341
23341
|
if (ee) {
|
|
23342
23342
|
var Mt, Zt, Ee, O1 = !1, Ze = !1, we = !1, Vt = !1, bt = !1;
|
|
23343
|
-
Ce.charAt(Z - 1), Ce.charAt(
|
|
23344
|
-
var r1 = Z, n1 =
|
|
23343
|
+
Ce.charAt(Z - 1), Ce.charAt(ce);
|
|
23344
|
+
var r1 = Z, n1 = ce;
|
|
23345
23345
|
if (Z > 0) {
|
|
23346
23346
|
for (var Lt = Z - 1; Lt >= 0 && Ce.charAt(Lt) === " "; ) Lt--;
|
|
23347
23347
|
if (Lt >= 0) {
|
|
@@ -23349,8 +23349,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23349
23349
|
(Y1 === "(" || Y1 === "(") && (r1 = Lt, Vt = !0);
|
|
23350
23350
|
}
|
|
23351
23351
|
}
|
|
23352
|
-
if (
|
|
23353
|
-
for (var Kt =
|
|
23352
|
+
if (ce < Ce.length) {
|
|
23353
|
+
for (var Kt = ce; Kt < Ce.length && Ce.charAt(Kt) === " "; ) Kt++;
|
|
23354
23354
|
if (Kt < Ce.length) {
|
|
23355
23355
|
var fe = Ce.charAt(Kt);
|
|
23356
23356
|
(fe === ")" || fe === ")") && (n1 = Kt + 1, bt = !0);
|
|
@@ -23359,14 +23359,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23359
23359
|
var be = !1;
|
|
23360
23360
|
if (Vt && bt)
|
|
23361
23361
|
if (be) {
|
|
23362
|
-
var ke = Ce.substring(Z - 6, Z), _t = Ce.substring(
|
|
23363
|
-
ke === "\\left(" && _t === "\\right)" && (Ce = Ce.substring(0, Z - 6) + Ce.substring(Z,
|
|
23364
|
-
} else Z = r1,
|
|
23362
|
+
var ke = Ce.substring(Z - 6, Z), _t = Ce.substring(ce, ce + 7);
|
|
23363
|
+
ke === "\\left(" && _t === "\\right)" && (Ce = Ce.substring(0, Z - 6) + Ce.substring(Z, ce) + Ce.substring(ce + 7), Z -= 6, ce -= 6);
|
|
23364
|
+
} else Z = r1, ce = n1;
|
|
23365
23365
|
else {
|
|
23366
|
-
var
|
|
23367
|
-
|
|
23366
|
+
var xe = Ce.substring(Z - 6, Z), $ = Ce.substring(ce, ce + 7);
|
|
23367
|
+
xe === "\\left(" && $ === "\\right)" ? (Vt = !0, bt = !0, be = !0) : (Vt = !1, bt = !1, r1 = Z, n1 = ce, be = !1);
|
|
23368
23368
|
}
|
|
23369
|
-
for (var
|
|
23369
|
+
for (var Oe = /\\enclose\{circle\}\{([^{}]*?)##[^#]*##([^{}]*?)\}/g; (Mt = Oe.exec(r)) !== null; ) if (Mt.index < Z && Mt.index + Mt[0].length > ce) {
|
|
23370
23370
|
Ze = !0;
|
|
23371
23371
|
break;
|
|
23372
23372
|
}
|
|
@@ -23374,7 +23374,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23374
23374
|
var Be = X.replace(/^##|##$/g, "").trim();
|
|
23375
23375
|
/^\\enclose\{circle\}\{[^{}]+\}$/.test(Be) && (Ze = !0);
|
|
23376
23376
|
}
|
|
23377
|
-
for (var Ve = /\\enclose\{box\}\{([^{}]*?)##[^#]*##([^{}]*?)\}/g; (Zt = Ve.exec(r)) !== null; ) if (Zt.index < Z && Zt.index + Zt[0].length >
|
|
23377
|
+
for (var Ve = /\\enclose\{box\}\{([^{}]*?)##[^#]*##([^{}]*?)\}/g; (Zt = Ve.exec(r)) !== null; ) if (Zt.index < Z && Zt.index + Zt[0].length > ce) {
|
|
23378
23378
|
we = !0;
|
|
23379
23379
|
break;
|
|
23380
23380
|
}
|
|
@@ -23400,29 +23400,29 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23400
23400
|
}
|
|
23401
23401
|
}
|
|
23402
23402
|
return vt;
|
|
23403
|
-
}(
|
|
23404
|
-
Ge && (O1 = !0, Z =
|
|
23403
|
+
}(Ne, r), Ge = qe.isInUnderline, oe = qe.underlineStart, mt = qe.underlineEnd;
|
|
23404
|
+
Ge && (O1 = !0, Z = oe, ce = mt);
|
|
23405
23405
|
for (var Ft = /\\frac\{(?:[^{}]*##[^#]*##[^{}]*|[^{}]*)\}\{[^{}]*\}|\\frac\{[^{}]*\}\{(?:[^{}]*##[^#]*##[^{}]*|[^{}]*)\}/g; (Ee = Ft.exec(r)) !== null; ) {
|
|
23406
23406
|
var Xt = Ee[0], Gt = Ee.index, Ut = Gt + Xt.length;
|
|
23407
|
-
if (Z >= Gt &&
|
|
23407
|
+
if (Z >= Gt && ce <= Ut) break;
|
|
23408
23408
|
}
|
|
23409
|
-
Ce.substring(Z - 7, Z) === "\\boxed{" && Ce.substring(
|
|
23409
|
+
Ce.substring(Z - 7, Z) === "\\boxed{" && Ce.substring(ce, ce + 1) === "}" && (Z -= 7, ce += 1);
|
|
23410
23410
|
var kt = X, v1 = X.length > 20 ? "" : "text-align: center;";
|
|
23411
23411
|
O1 && (kt = '<span style="display: inline-block; min-width: 20px; '.concat(v1, '; border-bottom: 1px solid black">$$').concat(X, "$$</span>"));
|
|
23412
23412
|
var P1 = '<div style="min-height: 150px; border: 1px dashed '.concat(Q, "; margin-top: 10px; visibility: ").concat(e ? "visible" : "hidden", `" >
|
|
23413
23413
|
<div style="padding: 10px;">`).concat(kt, `</div>
|
|
23414
23414
|
</div>`);
|
|
23415
|
-
Ce = Ce.substring(0, Z) + P1 + Ce.substring(
|
|
23415
|
+
Ce = Ce.substring(0, Z) + P1 + Ce.substring(ce);
|
|
23416
23416
|
} else {
|
|
23417
23417
|
var X1 = '<div style="min-height: 150px; border: 1px dashed '.concat(Q, "; margin-top: 10px; visibility: ").concat(e ? "visible" : "hidden", `" >
|
|
23418
23418
|
<div style="padding: 10px;">`).concat(X, `</div>
|
|
23419
23419
|
</div>`);
|
|
23420
|
-
Ce = Ce.substring(0, Z) + X1 + Ce.substring(
|
|
23420
|
+
Ce = Ce.substring(0, Z) + X1 + Ce.substring(ce);
|
|
23421
23421
|
}
|
|
23422
23422
|
}), Ce;
|
|
23423
23423
|
}
|
|
23424
|
-
} catch (
|
|
23425
|
-
return console.error("处理答案回填时出错:",
|
|
23424
|
+
} catch (Ne) {
|
|
23425
|
+
return console.error("处理答案回填时出错:", Ne), r;
|
|
23426
23426
|
}
|
|
23427
23427
|
}, pc = function(r, e) {
|
|
23428
23428
|
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = arguments.length > 3 ? arguments[3] : void 0, Q = !(arguments.length > 4) || arguments[4] === void 0 || arguments[4];
|
|
@@ -23522,9 +23522,9 @@ function pr() {
|
|
|
23522
23522
|
var I = B.delegate;
|
|
23523
23523
|
if (I) {
|
|
23524
23524
|
var P = function Y(q, W) {
|
|
23525
|
-
var re = W.method,
|
|
23526
|
-
if (
|
|
23527
|
-
var le = s(
|
|
23525
|
+
var re = W.method, Te = q.iterator[re];
|
|
23526
|
+
if (Te === r) return W.delegate = null, re === "throw" && q.iterator.return && (W.method = "return", W.arg = r, Y(q, W), W.method === "throw") || re !== "return" && (W.method = "throw", W.arg = TypeError("The iterator does not provide a '" + re + "' method")), m;
|
|
23527
|
+
var le = s(Te, q.iterator, W.arg);
|
|
23528
23528
|
if (le.type === "throw") return W.method = "throw", W.arg = le.arg, W.delegate = null, m;
|
|
23529
23529
|
var pe = le.arg;
|
|
23530
23530
|
return pe ? pe.done ? (W[q.resultName] = pe.value, W.next = q.nextLoc, W.method !== "return" && (W.method = "next", W.arg = r), W.delegate = null, m) : pe : (W.method = "throw", W.arg = TypeError("iterator result is not an object"), W.delegate = null, m);
|
|
@@ -33156,8 +33156,8 @@ var Ac = function(r) {
|
|
|
33156
33156
|
if ((0, e.getProperty)(q, "inference") != null) {
|
|
33157
33157
|
var W = g(q, !0);
|
|
33158
33158
|
v(N, q, -W, !0);
|
|
33159
|
-
var re = _(U, F, !0),
|
|
33160
|
-
|
|
33159
|
+
var re = _(U, F, !0), Te = (0, e.getProperty)(U, "maxAdjust");
|
|
33160
|
+
Te != null && (W = Math.max(W, Te));
|
|
33161
33161
|
var le = void 0;
|
|
33162
33162
|
if (H || !(le = h(U))) {
|
|
33163
33163
|
v(N, (0, e.getProperty)(U, "proof") ? U : U.parent, W - re, !0);
|
|
@@ -33165,8 +33165,8 @@ var Ac = function(r) {
|
|
|
33165
33165
|
}
|
|
33166
33166
|
var pe = (B = le).parent.childNodes[B.parent.childNodes.indexOf(B) + 1];
|
|
33167
33167
|
if (pe) {
|
|
33168
|
-
var
|
|
33169
|
-
pe.appendChild(
|
|
33168
|
+
var Qe = N.nodeFactory.create("node", "mspace", [], { width: W - re + "em" });
|
|
33169
|
+
pe.appendChild(Qe), U.removeProperty("maxAdjust");
|
|
33170
33170
|
continue;
|
|
33171
33171
|
}
|
|
33172
33172
|
var ve = E(le);
|
|
@@ -35673,8 +35673,8 @@ var Ac = function(r) {
|
|
|
35673
35673
|
var R = W.value;
|
|
35674
35674
|
D.remove(R);
|
|
35675
35675
|
}
|
|
35676
|
-
} catch (
|
|
35677
|
-
L = { error:
|
|
35676
|
+
} catch (Te) {
|
|
35677
|
+
L = { error: Te };
|
|
35678
35678
|
} finally {
|
|
35679
35679
|
try {
|
|
35680
35680
|
W && !W.done && (C = q.return) && C.call(q);
|
|
@@ -43441,7 +43441,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
43441
43441
|
function re(V, j) {
|
|
43442
43442
|
Array.isArray(V.illegal) && (V.illegal = D.apply(void 0, c(V.illegal)));
|
|
43443
43443
|
}
|
|
43444
|
-
function
|
|
43444
|
+
function Te(V, j) {
|
|
43445
43445
|
if (V.match) {
|
|
43446
43446
|
if (V.begin || V.end) throw Error("begin & end are not supported with match");
|
|
43447
43447
|
V.begin = V.match, delete V.match;
|
|
@@ -43458,30 +43458,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
43458
43458
|
delete V[K];
|
|
43459
43459
|
}), V.keywords = z.keywords, V.begin = C(z.beforeMatch, b(z.begin)), V.starts = { relevance: 0, contains: [Object.assign(z, { endsParent: !0 })] }, V.relevance = 0, delete z.beforeMatch;
|
|
43460
43460
|
}
|
|
43461
|
-
},
|
|
43461
|
+
}, Qe = ["of", "and", "for", "in", "not", "or", "if", "then", "parent", "list", "value"], ve = {}, he = function(V) {
|
|
43462
43462
|
console.error(V);
|
|
43463
43463
|
}, me = function(V) {
|
|
43464
43464
|
for (var j, z = arguments.length, K = Array(z > 1 ? z - 1 : 0), ae = 1; ae < z; ae++) K[ae - 1] = arguments[ae];
|
|
43465
43465
|
(j = console).log.apply(j, ["WARN: ".concat(V)].concat(K));
|
|
43466
43466
|
}, Ae = function(V, j) {
|
|
43467
43467
|
ve["".concat(V, "/").concat(j)] || (console.log("Deprecated as of ".concat(V, ". ").concat(j)), ve["".concat(V, "/").concat(j)] = !0);
|
|
43468
|
-
},
|
|
43469
|
-
function
|
|
43468
|
+
}, Re = Error();
|
|
43469
|
+
function Me(V, j, z) {
|
|
43470
43470
|
for (var K = z.key, ae = 0, _e = V[K], te = {}, ge = {}, de = 1; de <= j.length; de++) ge[de + ae] = _e[de], te[de + ae] = !0, ae += x(j[de - 1]);
|
|
43471
43471
|
V[K] = ge, V[K]._emit = te, V[K]._multi = !0;
|
|
43472
43472
|
}
|
|
43473
43473
|
function Pe(V) {
|
|
43474
43474
|
V.scope && l(V.scope) === "object" && V.scope !== null && (V.beginScope = V.scope, delete V.scope), typeof V.beginScope == "string" && (V.beginScope = { _wrap: V.beginScope }), typeof V.endScope == "string" && (V.endScope = { _wrap: V.endScope }), function(j) {
|
|
43475
43475
|
if (Array.isArray(j.begin)) {
|
|
43476
|
-
if (j.skip || j.excludeBegin || j.returnBegin) throw he("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
|
|
43477
|
-
if (l(j.beginScope) !== "object" || j.beginScope === null) throw he("beginScope must be object"),
|
|
43478
|
-
|
|
43476
|
+
if (j.skip || j.excludeBegin || j.returnBegin) throw he("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Re;
|
|
43477
|
+
if (l(j.beginScope) !== "object" || j.beginScope === null) throw he("beginScope must be object"), Re;
|
|
43478
|
+
Me(j, j.begin, { key: "beginScope" }), j.begin = M(j.begin, { joinWith: "" });
|
|
43479
43479
|
}
|
|
43480
43480
|
}(V), function(j) {
|
|
43481
43481
|
if (Array.isArray(j.end)) {
|
|
43482
|
-
if (j.skip || j.excludeEnd || j.returnEnd) throw he("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
|
|
43483
|
-
if (l(j.endScope) !== "object" || j.endScope === null) throw he("endScope must be object"),
|
|
43484
|
-
|
|
43482
|
+
if (j.skip || j.excludeEnd || j.returnEnd) throw he("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Re;
|
|
43483
|
+
if (l(j.endScope) !== "object" || j.endScope === null) throw he("endScope must be object"), Re;
|
|
43484
|
+
Me(j, j.end, { key: "endScope" }), j.end = M(j.end, { joinWith: "" });
|
|
43485
43485
|
}
|
|
43486
43486
|
}(V);
|
|
43487
43487
|
}
|
|
@@ -43497,15 +43497,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
43497
43497
|
return ge.noHighlightRe.test(ne);
|
|
43498
43498
|
}
|
|
43499
43499
|
function st(ne, X, Z) {
|
|
43500
|
-
var
|
|
43501
|
-
l(X) === "object" ? (
|
|
43502
|
-
https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne,
|
|
43503
|
-
var J = { code:
|
|
43500
|
+
var ce = "", ee = "";
|
|
43501
|
+
l(X) === "object" ? (ce = ne, Z = X.ignoreIllegals, ee = X.language) : (Ae("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Ae("10.7.0", `Please use highlight(code, options) instead.
|
|
43502
|
+
https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ce = X), Z === void 0 && (Z = !0);
|
|
43503
|
+
var J = { code: ce, language: ee };
|
|
43504
43504
|
Ce("before:highlight", J);
|
|
43505
|
-
var
|
|
43506
|
-
return
|
|
43505
|
+
var ue = J.result ? J.result : Xe(J.language, J.code, Z);
|
|
43506
|
+
return ue.code = J.code, Ce("after:highlight", ue), ue;
|
|
43507
43507
|
}
|
|
43508
|
-
function Xe(ne, X, Z,
|
|
43508
|
+
function Xe(ne, X, Z, ce) {
|
|
43509
43509
|
var ee = /* @__PURE__ */ Object.create(null);
|
|
43510
43510
|
function J() {
|
|
43511
43511
|
if (!Ee.keywords) {
|
|
@@ -43516,20 +43516,20 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z =
|
|
|
43516
43516
|
Ee.keywordPatternRe.lastIndex = 0;
|
|
43517
43517
|
for (var be = Ee.keywordPatternRe.exec(we), ke = ""; be; ) {
|
|
43518
43518
|
ke += we.substring(fe, be.index);
|
|
43519
|
-
var _t = Je.case_insensitive ? be[0].toLowerCase() : be[0],
|
|
43520
|
-
if (
|
|
43521
|
-
var $ = t(
|
|
43522
|
-
if (Ze.addText(ke), ke = "", ee[_t] = (ee[_t] || 0) + 1, ee[_t] <= 7 && (Vt += Be),
|
|
43519
|
+
var _t = Je.case_insensitive ? be[0].toLowerCase() : be[0], xe = Ee.keywords[_t];
|
|
43520
|
+
if (xe) {
|
|
43521
|
+
var $ = t(xe, 2), Oe = $[0], Be = $[1];
|
|
43522
|
+
if (Ze.addText(ke), ke = "", ee[_t] = (ee[_t] || 0) + 1, ee[_t] <= 7 && (Vt += Be), Oe.startsWith("_")) ke += be[0];
|
|
43523
43523
|
else {
|
|
43524
|
-
var Ve = Je.classNameAliases[
|
|
43525
|
-
|
|
43524
|
+
var Ve = Je.classNameAliases[Oe] || Oe;
|
|
43525
|
+
se(be[0], Ve);
|
|
43526
43526
|
}
|
|
43527
43527
|
} else ke += be[0];
|
|
43528
43528
|
fe = Ee.keywordPatternRe.lastIndex, be = Ee.keywordPatternRe.exec(we);
|
|
43529
43529
|
}
|
|
43530
43530
|
ke += we.substring(fe), Ze.addText(ke);
|
|
43531
43531
|
}
|
|
43532
|
-
function
|
|
43532
|
+
function ue() {
|
|
43533
43533
|
Ee.subLanguage != null ? function() {
|
|
43534
43534
|
if (we !== "") {
|
|
43535
43535
|
var fe = null;
|
|
@@ -43544,26 +43544,26 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z =
|
|
|
43544
43544
|
}
|
|
43545
43545
|
}() : J(), we = "";
|
|
43546
43546
|
}
|
|
43547
|
-
function
|
|
43547
|
+
function se(fe, be) {
|
|
43548
43548
|
fe !== "" && (Ze.startScope(be), Ze.addText(fe), Ze.endScope());
|
|
43549
43549
|
}
|
|
43550
|
-
function
|
|
43550
|
+
function De(fe, be) {
|
|
43551
43551
|
for (var ke = 1, _t = be.length - 1; ke <= _t; ) {
|
|
43552
43552
|
if (!fe._emit[ke]) {
|
|
43553
43553
|
ke++;
|
|
43554
43554
|
continue;
|
|
43555
43555
|
}
|
|
43556
|
-
var
|
|
43557
|
-
|
|
43556
|
+
var xe = Je.classNameAliases[fe[ke]] || fe[ke], $ = be[ke];
|
|
43557
|
+
xe ? se($, xe) : (we = $, J(), we = ""), ke++;
|
|
43558
43558
|
}
|
|
43559
43559
|
}
|
|
43560
43560
|
function Le(fe, be) {
|
|
43561
|
-
return fe.scope && typeof fe.scope == "string" && Ze.openNode(Je.classNameAliases[fe.scope] || fe.scope), fe.beginScope && (fe.beginScope._wrap ? (
|
|
43561
|
+
return fe.scope && typeof fe.scope == "string" && Ze.openNode(Je.classNameAliases[fe.scope] || fe.scope), fe.beginScope && (fe.beginScope._wrap ? (se(we, Je.classNameAliases[fe.beginScope._wrap] || fe.beginScope._wrap), we = "") : fe.beginScope._multi && (De(fe.beginScope, be), we = "")), Ee = Object.create(fe, { parent: { value: Ee } });
|
|
43562
43562
|
}
|
|
43563
43563
|
var Ie = {};
|
|
43564
43564
|
function gt(fe, be) {
|
|
43565
43565
|
var ke = be && be[0];
|
|
43566
|
-
if (we += fe, ke == null) return
|
|
43566
|
+
if (we += fe, ke == null) return ue(), 0;
|
|
43567
43567
|
if (Ie.type === "begin" && be.type === "end" && Ie.index === be.index && ke === "") {
|
|
43568
43568
|
if (we += X.slice(be.index, be.index + 1), !ae) {
|
|
43569
43569
|
var _t = Error("0 width match regex (".concat(ne, ")"));
|
|
@@ -43571,39 +43571,39 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z =
|
|
|
43571
43571
|
}
|
|
43572
43572
|
return 1;
|
|
43573
43573
|
}
|
|
43574
|
-
if (Ie = be, be.type === "begin") return function(
|
|
43575
|
-
for (var Be =
|
|
43576
|
-
var
|
|
43577
|
-
if (
|
|
43574
|
+
if (Ie = be, be.type === "begin") return function(Oe) {
|
|
43575
|
+
for (var Be = Oe[0], Ve = Oe.rule, $e = new m(Ve), qe = [Ve.__beforeBegin, Ve["on:begin"]], Ge = 0; Ge < qe.length; Ge++) {
|
|
43576
|
+
var oe = qe[Ge];
|
|
43577
|
+
if (oe && (oe(Oe, $e), $e.isMatchIgnored)) return Ee.matcher.regexIndex === 0 ? (we += Be[0], 1) : (n1 = !0, 0);
|
|
43578
43578
|
}
|
|
43579
|
-
return Ve.skip ? we += Be : (Ve.excludeBegin && (we += Be),
|
|
43579
|
+
return Ve.skip ? we += Be : (Ve.excludeBegin && (we += Be), ue(), Ve.returnBegin || Ve.excludeBegin || (we = Be)), Le(Ve, Oe), Ve.returnBegin ? 0 : Be.length;
|
|
43580
43580
|
}(be);
|
|
43581
43581
|
if (be.type !== "illegal" || Z) {
|
|
43582
43582
|
if (be.type === "end") {
|
|
43583
|
-
var
|
|
43584
|
-
var Be =
|
|
43585
|
-
var Xt, Gt, Ut = (Gt = (Xt =
|
|
43583
|
+
var xe = function(Oe) {
|
|
43584
|
+
var Be = Oe[0], Ve = X.substring(Oe.index), $e = function Ge(oe, mt, Ft) {
|
|
43585
|
+
var Xt, Gt, Ut = (Gt = (Xt = oe.endRe) && Xt.exec(Ft)) && Gt.index === 0;
|
|
43586
43586
|
if (Ut) {
|
|
43587
|
-
if (
|
|
43588
|
-
var kt = new m(
|
|
43589
|
-
|
|
43587
|
+
if (oe["on:end"]) {
|
|
43588
|
+
var kt = new m(oe);
|
|
43589
|
+
oe["on:end"](mt, kt), kt.isMatchIgnored && (Ut = !1);
|
|
43590
43590
|
}
|
|
43591
43591
|
if (Ut) {
|
|
43592
|
-
for (;
|
|
43593
|
-
return
|
|
43592
|
+
for (; oe.endsParent && oe.parent; ) oe = oe.parent;
|
|
43593
|
+
return oe;
|
|
43594
43594
|
}
|
|
43595
43595
|
}
|
|
43596
|
-
if (
|
|
43597
|
-
}(Ee,
|
|
43596
|
+
if (oe.endsWithParent) return Ge(oe.parent, mt, Ft);
|
|
43597
|
+
}(Ee, Oe, Ve);
|
|
43598
43598
|
if (!$e) return Ye;
|
|
43599
43599
|
var qe = Ee;
|
|
43600
|
-
Ee.endScope && Ee.endScope._wrap ? (
|
|
43600
|
+
Ee.endScope && Ee.endScope._wrap ? (ue(), se(Be, Ee.endScope._wrap)) : Ee.endScope && Ee.endScope._multi ? (ue(), De(Ee.endScope, Oe)) : qe.skip ? we += Be : (qe.returnEnd || qe.excludeEnd || (we += Be), ue(), qe.excludeEnd && (we = Be));
|
|
43601
43601
|
do
|
|
43602
43602
|
Ee.scope && Ze.closeNode(), Ee.skip || Ee.subLanguage || (Vt += Ee.relevance), Ee = Ee.parent;
|
|
43603
43603
|
while (Ee !== $e.parent);
|
|
43604
|
-
return $e.starts && Le($e.starts,
|
|
43604
|
+
return $e.starts && Le($e.starts, Oe), qe.returnEnd ? 0 : Be.length;
|
|
43605
43605
|
}(be);
|
|
43606
|
-
if (
|
|
43606
|
+
if (xe !== Ye) return xe;
|
|
43607
43607
|
}
|
|
43608
43608
|
} else {
|
|
43609
43609
|
var $ = Error('Illegal lexeme "' + ke + '" for mode "' + (Ee.scope || "<unnamed>") + '"');
|
|
@@ -43617,92 +43617,92 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z =
|
|
|
43617
43617
|
var Je = ht(ne);
|
|
43618
43618
|
if (!Je) throw he(_e.replace("{}", ne)), Error('Unknown language: "' + ne + '"');
|
|
43619
43619
|
var Mt = function(fe) {
|
|
43620
|
-
function be(
|
|
43621
|
-
return RegExp(S(
|
|
43620
|
+
function be(xe, $) {
|
|
43621
|
+
return RegExp(S(xe), "m" + (fe.case_insensitive ? "i" : "") + (fe.unicodeRegex ? "u" : "") + ($ ? "g" : ""));
|
|
43622
43622
|
}
|
|
43623
|
-
var ke = u(function
|
|
43624
|
-
s(this,
|
|
43625
|
-
}, [{ key: "addRule", value: function(
|
|
43626
|
-
$.position = this.position++, this.matchIndexes[this.matchAt] = $, this.regexes.push([$,
|
|
43623
|
+
var ke = u(function xe() {
|
|
43624
|
+
s(this, xe), this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
|
|
43625
|
+
}, [{ key: "addRule", value: function(xe, $) {
|
|
43626
|
+
$.position = this.position++, this.matchIndexes[this.matchAt] = $, this.regexes.push([$, xe]), this.matchAt += x(xe) + 1;
|
|
43627
43627
|
} }, { key: "compile", value: function() {
|
|
43628
43628
|
this.regexes.length === 0 && (this.exec = function() {
|
|
43629
43629
|
return null;
|
|
43630
43630
|
});
|
|
43631
|
-
var
|
|
43631
|
+
var xe = this.regexes.map(function($) {
|
|
43632
43632
|
return $[1];
|
|
43633
43633
|
});
|
|
43634
|
-
this.matcherRe = be(M(
|
|
43635
|
-
} }, { key: "exec", value: function(
|
|
43634
|
+
this.matcherRe = be(M(xe, { joinWith: "|" }), !0), this.lastIndex = 0;
|
|
43635
|
+
} }, { key: "exec", value: function(xe) {
|
|
43636
43636
|
this.matcherRe.lastIndex = this.lastIndex;
|
|
43637
|
-
var $ = this.matcherRe.exec(
|
|
43637
|
+
var $ = this.matcherRe.exec(xe);
|
|
43638
43638
|
if (!$) return null;
|
|
43639
|
-
var
|
|
43639
|
+
var Oe = $.findIndex(function(Ve, $e) {
|
|
43640
43640
|
return $e > 0 && Ve !== void 0;
|
|
43641
|
-
}), Be = this.matchIndexes[
|
|
43642
|
-
return $.splice(0,
|
|
43643
|
-
} }]), _t = u(function
|
|
43644
|
-
s(this,
|
|
43645
|
-
}, [{ key: "getMatcher", value: function(
|
|
43646
|
-
if (this.multiRegexes[
|
|
43641
|
+
}), Be = this.matchIndexes[Oe];
|
|
43642
|
+
return $.splice(0, Oe), Object.assign($, Be);
|
|
43643
|
+
} }]), _t = u(function xe() {
|
|
43644
|
+
s(this, xe), this.rules = [], this.multiRegexes = [], this.count = 0, this.lastIndex = 0, this.regexIndex = 0;
|
|
43645
|
+
}, [{ key: "getMatcher", value: function(xe) {
|
|
43646
|
+
if (this.multiRegexes[xe]) return this.multiRegexes[xe];
|
|
43647
43647
|
var $ = new ke();
|
|
43648
|
-
return this.rules.slice(
|
|
43649
|
-
var Be = t(
|
|
43648
|
+
return this.rules.slice(xe).forEach(function(Oe) {
|
|
43649
|
+
var Be = t(Oe, 2), Ve = Be[0], $e = Be[1];
|
|
43650
43650
|
return $.addRule(Ve, $e);
|
|
43651
|
-
}), $.compile(), this.multiRegexes[
|
|
43651
|
+
}), $.compile(), this.multiRegexes[xe] = $, $;
|
|
43652
43652
|
} }, { key: "resumingScanAtSamePosition", value: function() {
|
|
43653
43653
|
return this.regexIndex !== 0;
|
|
43654
43654
|
} }, { key: "considerAll", value: function() {
|
|
43655
43655
|
this.regexIndex = 0;
|
|
43656
|
-
} }, { key: "addRule", value: function(
|
|
43657
|
-
this.rules.push([
|
|
43658
|
-
} }, { key: "exec", value: function(
|
|
43656
|
+
} }, { key: "addRule", value: function(xe, $) {
|
|
43657
|
+
this.rules.push([xe, $]), $.type === "begin" && this.count++;
|
|
43658
|
+
} }, { key: "exec", value: function(xe) {
|
|
43659
43659
|
var $ = this.getMatcher(this.regexIndex);
|
|
43660
43660
|
$.lastIndex = this.lastIndex;
|
|
43661
|
-
var
|
|
43662
|
-
if (this.resumingScanAtSamePosition() && !(
|
|
43661
|
+
var Oe = $.exec(xe);
|
|
43662
|
+
if (this.resumingScanAtSamePosition() && !(Oe && Oe.index === this.lastIndex)) {
|
|
43663
43663
|
var Be = this.getMatcher(0);
|
|
43664
|
-
Be.lastIndex = this.lastIndex + 1,
|
|
43664
|
+
Be.lastIndex = this.lastIndex + 1, Oe = Be.exec(xe);
|
|
43665
43665
|
}
|
|
43666
|
-
return
|
|
43666
|
+
return Oe && (this.regexIndex += Oe.position + 1, this.regexIndex === this.count && this.considerAll()), Oe;
|
|
43667
43667
|
} }]);
|
|
43668
43668
|
if (fe.compilerExtensions || (fe.compilerExtensions = []), fe.contains && fe.contains.includes("self")) throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
|
|
43669
|
-
return fe.classNameAliases = h(fe.classNameAliases || {}), function
|
|
43669
|
+
return fe.classNameAliases = h(fe.classNameAliases || {}), function xe($, Oe) {
|
|
43670
43670
|
if ($.isCompiled) return $;
|
|
43671
|
-
[q,
|
|
43672
|
-
return qe($,
|
|
43671
|
+
[q, Te, Pe, pe].forEach(function(qe) {
|
|
43672
|
+
return qe($, Oe);
|
|
43673
43673
|
}), fe.compilerExtensions.forEach(function(qe) {
|
|
43674
|
-
return qe($,
|
|
43674
|
+
return qe($, Oe);
|
|
43675
43675
|
}), $.__beforeBegin = null, [W, re, le].forEach(function(qe) {
|
|
43676
|
-
return qe($,
|
|
43676
|
+
return qe($, Oe);
|
|
43677
43677
|
}), $.isCompiled = !0;
|
|
43678
43678
|
var Be, Ve, $e = null;
|
|
43679
|
-
return l($.keywords) === "object" && $.keywords.$pattern && ($.keywords = Object.assign({}, $.keywords), $e = $.keywords.$pattern, delete $.keywords.$pattern), $e = $e || /\w+/, $.keywords && ($.keywords = function qe(Ge,
|
|
43679
|
+
return l($.keywords) === "object" && $.keywords.$pattern && ($.keywords = Object.assign({}, $.keywords), $e = $.keywords.$pattern, delete $.keywords.$pattern), $e = $e || /\w+/, $.keywords && ($.keywords = function qe(Ge, oe) {
|
|
43680
43680
|
var mt = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "keyword", Ft = /* @__PURE__ */ Object.create(null);
|
|
43681
43681
|
return typeof Ge == "string" ? Xt(mt, Ge.split(" ")) : Array.isArray(Ge) ? Xt(mt, Ge) : Object.keys(Ge).forEach(function(Gt) {
|
|
43682
|
-
Object.assign(Ft, qe(Ge[Gt],
|
|
43682
|
+
Object.assign(Ft, qe(Ge[Gt], oe, Gt));
|
|
43683
43683
|
}), Ft;
|
|
43684
43684
|
function Xt(Gt, Ut) {
|
|
43685
|
-
|
|
43685
|
+
oe && (Ut = Ut.map(function(kt) {
|
|
43686
43686
|
return kt.toLowerCase();
|
|
43687
43687
|
})), Ut.forEach(function(kt) {
|
|
43688
43688
|
var v1, P1, X1, qt = kt.split("|");
|
|
43689
|
-
Ft[qt[0]] = [Gt, (v1 = qt[0], (P1 = qt[1]) ? Number(P1) : (X1 = v1,
|
|
43689
|
+
Ft[qt[0]] = [Gt, (v1 = qt[0], (P1 = qt[1]) ? Number(P1) : (X1 = v1, Qe.includes(X1.toLowerCase()) ? 0 : 1))];
|
|
43690
43690
|
});
|
|
43691
43691
|
}
|
|
43692
|
-
}($.keywords, fe.case_insensitive)), $.keywordPatternRe = be($e, !0),
|
|
43692
|
+
}($.keywords, fe.case_insensitive)), $.keywordPatternRe = be($e, !0), Oe && ($.begin || ($.begin = /\B|\b/), $.beginRe = be($.begin), $.end || $.endsWithParent || ($.end = /\B|\b/), $.end && ($.endRe = be($.end)), $.terminatorEnd = S($.end) || "", $.endsWithParent && Oe.terminatorEnd && ($.terminatorEnd += ($.end ? "|" : "") + Oe.terminatorEnd)), $.illegal && ($.illegalRe = be($.illegal)), $.contains || ($.contains = []), $.contains = (Be = []).concat.apply(Be, c($.contains.map(function(qe) {
|
|
43693
43693
|
var Ge;
|
|
43694
|
-
return (Ge = qe === "self" ? $ : qe).variants && !Ge.cachedVariants && (Ge.cachedVariants = Ge.variants.map(function(
|
|
43695
|
-
return h(Ge, { variants: null },
|
|
43696
|
-
})), Ge.cachedVariants ? Ge.cachedVariants : function
|
|
43697
|
-
return !!mt && (mt.endsWithParent ||
|
|
43694
|
+
return (Ge = qe === "self" ? $ : qe).variants && !Ge.cachedVariants && (Ge.cachedVariants = Ge.variants.map(function(oe) {
|
|
43695
|
+
return h(Ge, { variants: null }, oe);
|
|
43696
|
+
})), Ge.cachedVariants ? Ge.cachedVariants : function oe(mt) {
|
|
43697
|
+
return !!mt && (mt.endsWithParent || oe(mt.starts));
|
|
43698
43698
|
}(Ge) ? h(Ge, { starts: Ge.starts ? h(Ge.starts) : null }) : Object.isFrozen(Ge) ? h(Ge) : Ge;
|
|
43699
43699
|
}))), $.contains.forEach(function(qe) {
|
|
43700
|
-
|
|
43701
|
-
}), $.starts &&
|
|
43700
|
+
xe(qe, $);
|
|
43701
|
+
}), $.starts && xe($.starts, Oe), $.matcher = (Ve = new _t(), $.contains.forEach(function(qe) {
|
|
43702
43702
|
return Ve.addRule(qe.begin, { rule: qe, type: "begin" });
|
|
43703
43703
|
}), $.terminatorEnd && Ve.addRule($.terminatorEnd, { type: "end" }), $.illegal && Ve.addRule($.illegal, { type: "illegal" }), Ve), $;
|
|
43704
43704
|
}(fe);
|
|
43705
|
-
}(Je), Zt = "", Ee =
|
|
43705
|
+
}(Je), Zt = "", Ee = ce || Mt, O1 = {}, Ze = new ge.__emitter(ge);
|
|
43706
43706
|
(function() {
|
|
43707
43707
|
for (var fe = [], be = Ee; be !== Je; be = be.parent) be.scope && fe.unshift(be.scope);
|
|
43708
43708
|
fe.forEach(function(ke) {
|
|
@@ -43731,30 +43731,30 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z =
|
|
|
43731
43731
|
}
|
|
43732
43732
|
function dt(ne, X) {
|
|
43733
43733
|
X = X || ge.languages || Object.keys(j);
|
|
43734
|
-
var Z,
|
|
43735
|
-
return Xe(
|
|
43734
|
+
var Z, ce = ((Z = { value: f(ne), illegal: !1, relevance: 0, _top: te, _emitter: new ge.__emitter(ge) })._emitter.addText(ne), Z), ee = X.filter(ht).filter(t1).map(function(De) {
|
|
43735
|
+
return Xe(De, ne, !1);
|
|
43736
43736
|
});
|
|
43737
|
-
ee.unshift(
|
|
43738
|
-
var J = t(ee.sort(function(
|
|
43739
|
-
if (
|
|
43740
|
-
if (
|
|
43741
|
-
if (ht(
|
|
43742
|
-
if (ht(Le.language).supersetOf ===
|
|
43737
|
+
ee.unshift(ce);
|
|
43738
|
+
var J = t(ee.sort(function(De, Le) {
|
|
43739
|
+
if (De.relevance !== Le.relevance) return Le.relevance - De.relevance;
|
|
43740
|
+
if (De.language && Le.language) {
|
|
43741
|
+
if (ht(De.language).supersetOf === Le.language) return 1;
|
|
43742
|
+
if (ht(Le.language).supersetOf === De.language) return -1;
|
|
43743
43743
|
}
|
|
43744
43744
|
return 0;
|
|
43745
|
-
}), 2),
|
|
43746
|
-
return
|
|
43745
|
+
}), 2), ue = J[0], se = J[1];
|
|
43746
|
+
return ue.secondBest = se, ue;
|
|
43747
43747
|
}
|
|
43748
43748
|
function We(ne) {
|
|
43749
|
-
var X = function(
|
|
43750
|
-
var
|
|
43751
|
-
|
|
43752
|
-
var
|
|
43753
|
-
if (
|
|
43754
|
-
var Le = ht(
|
|
43755
|
-
return Le || (me(_e.replace("{}",
|
|
43756
|
-
}
|
|
43757
|
-
return
|
|
43749
|
+
var X = function(ue) {
|
|
43750
|
+
var se = ue.className + " ";
|
|
43751
|
+
se += ue.parentNode ? ue.parentNode.className : "";
|
|
43752
|
+
var De = ge.languageDetectRe.exec(se);
|
|
43753
|
+
if (De) {
|
|
43754
|
+
var Le = ht(De[1]);
|
|
43755
|
+
return Le || (me(_e.replace("{}", De[1])), me("Falling back to no-highlight mode for this block.", ue)), Le ? De[1] : "no-highlight";
|
|
43756
|
+
}
|
|
43757
|
+
return se.split(/\s+/).find(function(Ie) {
|
|
43758
43758
|
return de(Ie) || ht(Ie);
|
|
43759
43759
|
});
|
|
43760
43760
|
}(ne);
|
|
@@ -43764,8 +43764,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z =
|
|
|
43764
43764
|
return;
|
|
43765
43765
|
}
|
|
43766
43766
|
if (ne.children.length > 0 && (ge.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(ne)), ge.throwUnescapedHTML)) throw new nt("One of your code blocks includes unescaped HTML.", ne.innerHTML);
|
|
43767
|
-
var Z,
|
|
43768
|
-
ne.innerHTML = J.value, ne.dataset.highlighted = "yes", Z = J.language,
|
|
43767
|
+
var Z, ce, ee = ne.textContent, J = X ? st(ee, { language: X, ignoreIllegals: !0 }) : dt(ee);
|
|
43768
|
+
ne.innerHTML = J.value, ne.dataset.highlighted = "yes", Z = J.language, ce = X && z[X] || Z, ne.classList.add("hljs"), ne.classList.add("language-".concat(ce)), ne.result = { language: J.language, re: J.relevance, relevance: J.relevance }, J.secondBest && (ne.secondBest = { language: J.secondBest.language, relevance: J.secondBest.relevance }), Ce("after:highlightElement", { el: ne, result: J, text: ee });
|
|
43769
43769
|
}
|
|
43770
43770
|
}
|
|
43771
43771
|
var Ot = !1;
|
|
@@ -43783,8 +43783,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z =
|
|
|
43783
43783
|
}
|
|
43784
43784
|
function h1(ne, X) {
|
|
43785
43785
|
var Z = X.languageName;
|
|
43786
|
-
typeof ne == "string" && (ne = [ne]), ne.forEach(function(
|
|
43787
|
-
z[
|
|
43786
|
+
typeof ne == "string" && (ne = [ne]), ne.forEach(function(ce) {
|
|
43787
|
+
z[ce.toLowerCase()] = Z;
|
|
43788
43788
|
});
|
|
43789
43789
|
}
|
|
43790
43790
|
function t1(ne) {
|
|
@@ -43796,7 +43796,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z =
|
|
|
43796
43796
|
Z[ne] && Z[ne](X);
|
|
43797
43797
|
});
|
|
43798
43798
|
}
|
|
43799
|
-
for (var
|
|
43799
|
+
for (var Ne in Object.assign(V, { highlight: st, highlightAuto: dt, highlightAll: ze, highlightElement: We, highlightBlock: function(ne) {
|
|
43800
43800
|
return Ae("10.7.0", "highlightBlock will be removed entirely in v12.0"), Ae("10.7.0", "Please use highlightElement now."), We(ne);
|
|
43801
43801
|
}, configure: function(ne) {
|
|
43802
43802
|
ge = h(ge, ne);
|
|
@@ -43808,17 +43808,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z =
|
|
|
43808
43808
|
var Z = null;
|
|
43809
43809
|
try {
|
|
43810
43810
|
Z = X(V);
|
|
43811
|
-
} catch (
|
|
43812
|
-
if (he("Language definition for '{}' could not be registered.".replace("{}", ne)), ae) he(
|
|
43813
|
-
else throw
|
|
43811
|
+
} catch (ce) {
|
|
43812
|
+
if (he("Language definition for '{}' could not be registered.".replace("{}", ne)), ae) he(ce);
|
|
43813
|
+
else throw ce;
|
|
43814
43814
|
Z = te;
|
|
43815
43815
|
}
|
|
43816
43816
|
Z.name || (Z.name = ne), j[ne] = Z, Z.rawDefinition = X.bind(null, V), Z.aliases && h1(Z.aliases, { languageName: ne });
|
|
43817
43817
|
}, unregisterLanguage: function(ne) {
|
|
43818
43818
|
delete j[ne];
|
|
43819
43819
|
for (var X = 0, Z = Object.keys(z); X < Z.length; X++) {
|
|
43820
|
-
var
|
|
43821
|
-
z[
|
|
43820
|
+
var ce = Z[X];
|
|
43821
|
+
z[ce] === ne && delete z[ce];
|
|
43822
43822
|
}
|
|
43823
43823
|
}, listLanguages: function() {
|
|
43824
43824
|
return Object.keys(j);
|
|
@@ -43836,16 +43836,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ee = ne, ue = X), Z =
|
|
|
43836
43836
|
ae = !1;
|
|
43837
43837
|
}, V.safeMode = function() {
|
|
43838
43838
|
ae = !0;
|
|
43839
|
-
}, V.versionString = "11.11.1", V.regex = { concat: C, lookahead: b, either: D, optional: L, anyNumberOfTimes: A }, G) l(G[
|
|
43839
|
+
}, V.versionString = "11.11.1", V.regex = { concat: C, lookahead: b, either: D, optional: L, anyNumberOfTimes: A }, G) l(G[Ne]) === "object" && function ne(X) {
|
|
43840
43840
|
return X instanceof Map ? X.clear = X.delete = X.set = function() {
|
|
43841
43841
|
throw Error("map is read-only");
|
|
43842
43842
|
} : X instanceof Set && (X.add = X.clear = X.delete = function() {
|
|
43843
43843
|
throw Error("set is read-only");
|
|
43844
43844
|
}), Object.freeze(X), Object.getOwnPropertyNames(X).forEach(function(Z) {
|
|
43845
|
-
var
|
|
43846
|
-
ee !== "object" && ee !== "function" || Object.isFrozen(
|
|
43845
|
+
var ce = X[Z], ee = l(ce);
|
|
43846
|
+
ee !== "object" && ee !== "function" || Object.isFrozen(ce) || ne(ce);
|
|
43847
43847
|
}), X;
|
|
43848
|
-
}(G[
|
|
43848
|
+
}(G[Ne]);
|
|
43849
43849
|
return Object.assign(V, G), V;
|
|
43850
43850
|
}, je = Ke({});
|
|
43851
43851
|
je.newInstance = function() {
|
|
@@ -45015,18 +45015,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45015
45015
|
}, re = function() {
|
|
45016
45016
|
var te = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
45017
45017
|
return { className: "subst", label: "interpol", begin: d(/\\/, te, /\(/), end: /\)/ };
|
|
45018
|
-
},
|
|
45018
|
+
}, Te = function() {
|
|
45019
45019
|
var te = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
45020
45020
|
return { begin: d(te, /"""/), end: d(/"""/, te), contains: [q(te), W(te), re(te)] };
|
|
45021
45021
|
}, le = function() {
|
|
45022
45022
|
var te = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
45023
45023
|
return { begin: d(te, /"/), end: d(/"/, te), contains: [q(te), re(te)] };
|
|
45024
|
-
}, pe = { className: "string", variants: [
|
|
45024
|
+
}, pe = { className: "string", variants: [Te(), Te("#"), Te("##"), Te("###"), le(), le("#"), le("##"), le("###")] }, Qe = [C.BACKSLASH_ESCAPE, { begin: /\[/, end: /\]/, relevance: 0, contains: [C.BACKSLASH_ESCAPE] }], ve = function(te) {
|
|
45025
45025
|
var ge = d(te, /\//), de = d(/\//, te);
|
|
45026
|
-
return { begin: ge, end: de, contains: [].concat(
|
|
45027
|
-
}, he = { scope: "regexp", variants: [ve("###"), ve("##"), ve("#"), { begin: /\/[^\s](?=[^/\n]*\/)/, end: /\//, contains:
|
|
45028
|
-
|
|
45029
|
-
var nt, Ye = { begin: /\(/, end: /\)/, relevance: 0, keywords: B, contains: ["self", { match: d(S, /\s*:/), keywords: "_|0", relevance: 0 }].concat(O, [he], U, H, I, [Y, pe], Ae,
|
|
45026
|
+
return { begin: ge, end: de, contains: [].concat(Qe, [{ scope: "comment", begin: "#(?!.*".concat(de, ")"), end: /$/ }]) };
|
|
45027
|
+
}, he = { scope: "regexp", variants: [ve("###"), ve("##"), ve("#"), { begin: /\/[^\s](?=[^/\n]*\/)/, end: /\//, contains: Qe }] }, me = { match: d(/`/, S, /`/) }, Ae = [me, { className: "variable", match: /\$\d+/ }, { className: "variable", match: "\\$".concat(y, "+") }], Re = [{ match: /(@|#(un)?)available/, scope: "keyword", starts: { contains: [{ begin: /\(/, end: /\)/, keywords: L, contains: [].concat(I, [Y, pe]) }] } }, { scope: "keyword", match: d(/@/, c.apply(void 0, A), T(c(/\(/, /\s+/))) }, { scope: "meta", match: d(/@/, S) }], Me = { match: T(/\b[A-Z]/), relevance: 0, contains: [{ className: "type", match: d(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, y, "+") }, { className: "type", match: b, relevance: 0 }, { match: /[?!]+/, relevance: 0 }, { match: /\.\.\./, relevance: 0 }, { match: d(/\s+&\s+/, T(b)), relevance: 0 }] }, Pe = { begin: /</, end: />/, keywords: B, contains: [].concat(O, U, Re, [F, Me]) };
|
|
45028
|
+
Me.contains.push(Pe);
|
|
45029
|
+
var nt, Ye = { begin: /\(/, end: /\)/, relevance: 0, keywords: B, contains: ["self", { match: d(S, /\s*:/), keywords: "_|0", relevance: 0 }].concat(O, [he], U, H, I, [Y, pe], Ae, Re, [Me]) }, Ke = { begin: /</, end: />/, keywords: "repeat each", contains: [].concat(O, [Me]) }, je = { begin: /\(/, end: /\)/, keywords: B, contains: [{ begin: c(T(d(S, /\s*:/)), T(d(S, /\s+/, S, /\s*:/))), end: /:/, relevance: 0, contains: [{ className: "keyword", match: /\b_\b/ }, { className: "params", match: S }] }].concat(O, U, I, [Y, pe], Re, [Me, Ye]), endsParent: !0, illegal: /["']/ }, V = { match: [/(func|macro)/, /\s+/, c(me.match, S, g)], className: { 1: "keyword", 3: "title.function" }, contains: [Ke, je, D], illegal: [/\[/, /%/] }, j = { begin: [/precedencegroup/, /\s+/, b], className: { 1: "keyword", 3: "title" }, contains: [Me], keywords: [].concat(m, l), end: /}/ }, z = { begin: [/(struct|protocol|class|extension|enum|actor)/, /\s+/, S, /\s*/], beginScope: { 1: "keyword", 3: "title.class" }, keywords: B, contains: [Ke].concat(U, [{ begin: /:/, end: /\{/, keywords: B, contains: [{ scope: "title.class.inherited", match: b }].concat(U), relevance: 0 }]) }, K = function(te, ge) {
|
|
45030
45030
|
var de = typeof Symbol < "u" && te[Symbol.iterator] || te["@@iterator"];
|
|
45031
45031
|
if (!de) {
|
|
45032
45032
|
if (Array.isArray(te) || (de = t(te))) {
|
|
@@ -45072,7 +45072,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45072
45072
|
} finally {
|
|
45073
45073
|
K.f();
|
|
45074
45074
|
}
|
|
45075
|
-
return { name: "Swift", keywords: B, contains: [].concat(O, [V, { match: [/\b(?:subscript|init[?!]?)/, /\s*(?=[<(])/], className: { 1: "keyword" }, contains: [Ke, je, D], illegal: /\[|%/ }, { match: [/class\b/, /\s+/, /func\b/, /\s+/, /\b[A-Za-z_][A-Za-z0-9_]*\b/], scope: { 1: "keyword", 3: "keyword", 5: "title.function" } }, { match: [/class\b/, /\s+/, /var\b/], scope: { 1: "keyword", 3: "keyword" } }, z, { match: [/operator/, /\s+/, g], className: { 1: "keyword", 3: "title" } }, j, { beginKeywords: "import", end: /$/, contains: [].concat(O), relevance: 0 }, he], U, H, I, [Y, pe], Ae,
|
|
45075
|
+
return { name: "Swift", keywords: B, contains: [].concat(O, [V, { match: [/\b(?:subscript|init[?!]?)/, /\s*(?=[<(])/], className: { 1: "keyword" }, contains: [Ke, je, D], illegal: /\[|%/ }, { match: [/class\b/, /\s+/, /func\b/, /\s+/, /\b[A-Za-z_][A-Za-z0-9_]*\b/], scope: { 1: "keyword", 3: "keyword", 5: "title.function" } }, { match: [/class\b/, /\s+/, /var\b/], scope: { 1: "keyword", 3: "keyword" } }, z, { match: [/operator/, /\s+/, g], className: { 1: "keyword", 3: "title" } }, j, { beginKeywords: "import", end: /$/, contains: [].concat(O), relevance: 0 }, he], U, H, I, [Y, pe], Ae, Re, [Me, Ye]) };
|
|
45076
45076
|
};
|
|
45077
45077
|
}, 3385: function(r) {
|
|
45078
45078
|
r.exports = function(e) {
|
|
@@ -45129,36 +45129,36 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45129
45129
|
}, 1692: function(r) {
|
|
45130
45130
|
var e = "[A-Za-z$_][0-9A-Za-z$_]*", t = ["as", "in", "of", "if", "for", "while", "finally", "var", "new", "function", "do", "return", "void", "else", "break", "catch", "instanceof", "with", "throw", "case", "default", "try", "switch", "continue", "typeof", "delete", "let", "yield", "const", "class", "debugger", "async", "await", "static", "import", "from", "export", "extends", "using"], i = ["true", "false", "null", "undefined", "NaN", "Infinity"], Q = ["Object", "Function", "Boolean", "Symbol", "Math", "Date", "Number", "BigInt", "String", "RegExp", "Array", "Float32Array", "Float64Array", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Int32Array", "Uint16Array", "Uint32Array", "BigInt64Array", "BigUint64Array", "Set", "Map", "WeakSet", "WeakMap", "ArrayBuffer", "SharedArrayBuffer", "Atomics", "DataView", "JSON", "Promise", "Generator", "GeneratorFunction", "AsyncFunction", "Reflect", "Proxy", "Intl", "WebAssembly"], p = ["Error", "EvalError", "InternalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError"], T = ["setInterval", "setTimeout", "clearInterval", "clearTimeout", "require", "exports", "eval", "isFinite", "isNaN", "parseFloat", "parseInt", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "unescape"], d = ["arguments", "this", "super", "console", "window", "document", "localStorage", "sessionStorage", "module", "global"], c = [].concat(T, Q, p);
|
|
45131
45131
|
r.exports = function(n) {
|
|
45132
|
-
var a, s, o, u, l, m, f, h, E, _, g, v, y, S, b, A, L, C, D, x, O, M, N, R, w, k, B, U = n.regex, H = (a = n.regex, s = function(
|
|
45133
|
-
var pe = le.after,
|
|
45134
|
-
return
|
|
45135
|
-
}, o = /<[A-Za-z0-9\\._:-]+/, u = /\/[A-Za-z0-9\\._:-]+>|\/>/, l = function(
|
|
45136
|
-
var pe,
|
|
45132
|
+
var a, s, o, u, l, m, f, h, E, _, g, v, y, S, b, A, L, C, D, x, O, M, N, R, w, k, B, U = n.regex, H = (a = n.regex, s = function(Te, le) {
|
|
45133
|
+
var pe = le.after, Qe = "</" + Te[0].slice(1);
|
|
45134
|
+
return Te.input.indexOf(Qe, pe) !== -1;
|
|
45135
|
+
}, o = /<[A-Za-z0-9\\._:-]+/, u = /\/[A-Za-z0-9\\._:-]+>|\/>/, l = function(Te, le) {
|
|
45136
|
+
var pe, Qe = Te[0].length + Te.index, ve = Te.input[Qe];
|
|
45137
45137
|
if (ve === "<" || ve === ",") {
|
|
45138
45138
|
le.ignoreMatch();
|
|
45139
45139
|
return;
|
|
45140
45140
|
}
|
|
45141
|
-
ve !== ">" || s(
|
|
45142
|
-
var he =
|
|
45141
|
+
ve !== ">" || s(Te, { after: Qe }) || le.ignoreMatch();
|
|
45142
|
+
var he = Te.input.substring(Qe);
|
|
45143
45143
|
if ((pe = he.match(/^\s*=/)) || (pe = he.match(/^\s+extends\s+/)) && pe.index === 0) {
|
|
45144
45144
|
le.ignoreMatch();
|
|
45145
45145
|
return;
|
|
45146
45146
|
}
|
|
45147
|
-
}, m = { $pattern: e, keyword: t, literal: i, built_in: c, "variable.language": d }, f = "[0-9](_?[0-9])*", h = "\\.(".concat(f, ")"), E = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", _ = { className: "number", variants: [{ begin: "(\\b(".concat(E, ")((").concat(h, ")|\\.)?|(").concat(h, "))") + "[eE][+-]?(".concat(f, ")\\b") }, { begin: "\\b(".concat(E, ")\\b((").concat(h, ")\\b|\\.)?|(").concat(h, ")\\b") }, { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" }, { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" }, { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" }, { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" }, { begin: "\\b0[0-7]+n?\\b" }], relevance: 0 }, g = { className: "subst", begin: "\\$\\{", end: "\\}", keywords: m, contains: [] }, v = { begin: ".?html`", end: "", starts: { end: "`", returnEnd: !1, contains: [n.BACKSLASH_ESCAPE, g], subLanguage: "xml" } }, y = { begin: ".?css`", end: "", starts: { end: "`", returnEnd: !1, contains: [n.BACKSLASH_ESCAPE, g], subLanguage: "css" } }, S = { begin: ".?gql`", end: "", starts: { end: "`", returnEnd: !1, contains: [n.BACKSLASH_ESCAPE, g], subLanguage: "graphql" } }, b = { className: "string", begin: "`", end: "`", contains: [n.BACKSLASH_ESCAPE, g] }, A = { className: "comment", variants: [n.COMMENT(/\/\*\*(?!\/)/, "\\*/", { relevance: 0, contains: [{ begin: "(?=@[A-Za-z]+)", relevance: 0, contains: [{ className: "doctag", begin: "@[A-Za-z]+" }, { className: "type", begin: "\\{", end: "\\}", excludeEnd: !0, excludeBegin: !0, relevance: 0 }, { className: "variable", begin: e + "(?=\\s*(-)|$)", endsParent: !0, relevance: 0 }, { begin: /(?=[^\n])\s/, relevance: 0 }] }] }), n.C_BLOCK_COMMENT_MODE, n.C_LINE_COMMENT_MODE] }, L = [n.APOS_STRING_MODE, n.QUOTE_STRING_MODE, v, y, S, b, { match: /\$\d+/ }, _], g.contains = L.concat({ begin: /\{/, end: /\}/, keywords: m, contains: ["self"].concat(L) }), D = (C = [].concat(A, g.contains)).concat([{ begin: /(\s*)\(/, end: /\)/, keywords: m, contains: ["self"].concat(C) }]), x = { className: "params", begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: m, contains: D }, O = { variants: [{ match: [/class/, /\s+/, e, /\s+/, /extends/, /\s+/, a.concat(e, "(", a.concat(/\./, e), ")*")], scope: { 1: "keyword", 3: "title.class", 5: "keyword", 7: "title.class.inherited" } }, { match: [/class/, /\s+/, e], scope: { 1: "keyword", 3: "title.class" } }] }, M = { relevance: 0, match: a.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/), className: "title.class", keywords: { _: [].concat(Q, p) } }, R = { match: a.concat(/\b/, (N = [].concat(T, ["super", "import"]).map(function(
|
|
45148
|
-
return "".concat(
|
|
45149
|
-
}), a.concat("(?!", N.join("|"), ")")), e, a.lookahead(/\s*\(/)), className: "title.function", relevance: 0 }, w = { begin: a.concat(/\./, a.lookahead(a.concat(e, /(?![0-9A-Za-z$_(])/))), end: e, excludeBegin: !0, keywords: "prototype", className: "property", relevance: 0 }, k = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + n.UNDERSCORE_IDENT_RE + ")\\s*=>", B = { match: [/const|var|let/, /\s+/, e, /\s*/, /=\s*/, /(async\s*)?/, a.lookahead(k)], keywords: "async", className: { 1: "keyword", 3: "title.function" }, contains: [x] }, { name: "JavaScript", aliases: ["js", "jsx", "mjs", "cjs"], keywords: m, exports: { PARAMS_CONTAINS: D, CLASS_REFERENCE: M }, illegal: /#(?![$_A-z])/, contains: [n.SHEBANG({ label: "shebang", binary: "node", relevance: 5 }), { label: "use_strict", className: "meta", relevance: 10, begin: /^\s*['"]use (strict|asm)['"]/ }, n.APOS_STRING_MODE, n.QUOTE_STRING_MODE, v, y, S, b, A, { match: /\$\d+/ }, _, M, { scope: "attr", match: e + a.lookahead(":"), relevance: 0 }, B, { begin: "(" + n.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*", keywords: "return throw case", relevance: 0, contains: [A, n.REGEXP_MODE, { className: "function", begin: k, returnBegin: !0, end: "\\s*=>", contains: [{ className: "params", variants: [{ begin: n.UNDERSCORE_IDENT_RE, relevance: 0 }, { className: null, begin: /\(\s*\)/, skip: !0 }, { begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: m, contains: D }] }] }, { begin: /,/, relevance: 0 }, { match: /\s+/, relevance: 0 }, { variants: [{ begin: "<>", end: "</>" }, { match: /<[A-Za-z0-9\\._:-]+\s*\/>/ }, { begin: o, "on:begin": l, end: u }], subLanguage: "xml", contains: [{ begin: o, end: u, skip: !0, contains: ["self"] }] }] }, { variants: [{ match: [/function/, /\s+/, e, /(?=\s*\()/] }, { match: [/function/, /\s*(?=\()/] }], className: { 1: "keyword", 3: "title.function" }, label: "func.def", contains: [x], illegal: /%/ }, { beginKeywords: "while if switch catch for" }, { begin: "\\b(?!function)" + n.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", returnBegin: !0, label: "func.def", contains: [x, n.inherit(n.TITLE_MODE, { begin: e, className: "title.function" })] }, { match: /\.\.\./, relevance: 0 }, w, { match: "\\$" + e, relevance: 0 }, { match: [/\bconstructor(?=\s*\()/], className: { 1: "title.function" }, contains: [x] }, R, { relevance: 0, match: /\b[A-Z][A-Z_0-9]+\b/, className: "variable.constant" }, O, { match: [/get|set/, /\s+/, e, /(?=\()/], className: { 1: "keyword", 3: "title.function" }, contains: [{ begin: /\(\)/ }, x] }, { match: /\$[(.]/ }] }), F = ["any", "void", "number", "boolean", "string", "object", "never", "symbol", "bigint", "unknown"], I = { begin: [/namespace/, /\s+/, n.IDENT_RE], beginScope: { 1: "keyword", 3: "title.class" } }, P = { beginKeywords: "interface", end: /\{/, excludeEnd: !0, keywords: { keyword: "interface extends", built_in: F }, contains: [H.exports.CLASS_REFERENCE] }, G = { $pattern: e, keyword: t.concat(["type", "interface", "public", "private", "protected", "implements", "declare", "abstract", "readonly", "enum", "override", "satisfies"]), literal: i, built_in: c.concat(F), "variable.language": d }, Y = { className: "meta", begin: "@" + e }, q = function(
|
|
45150
|
-
var
|
|
45147
|
+
}, m = { $pattern: e, keyword: t, literal: i, built_in: c, "variable.language": d }, f = "[0-9](_?[0-9])*", h = "\\.(".concat(f, ")"), E = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", _ = { className: "number", variants: [{ begin: "(\\b(".concat(E, ")((").concat(h, ")|\\.)?|(").concat(h, "))") + "[eE][+-]?(".concat(f, ")\\b") }, { begin: "\\b(".concat(E, ")\\b((").concat(h, ")\\b|\\.)?|(").concat(h, ")\\b") }, { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" }, { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" }, { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" }, { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" }, { begin: "\\b0[0-7]+n?\\b" }], relevance: 0 }, g = { className: "subst", begin: "\\$\\{", end: "\\}", keywords: m, contains: [] }, v = { begin: ".?html`", end: "", starts: { end: "`", returnEnd: !1, contains: [n.BACKSLASH_ESCAPE, g], subLanguage: "xml" } }, y = { begin: ".?css`", end: "", starts: { end: "`", returnEnd: !1, contains: [n.BACKSLASH_ESCAPE, g], subLanguage: "css" } }, S = { begin: ".?gql`", end: "", starts: { end: "`", returnEnd: !1, contains: [n.BACKSLASH_ESCAPE, g], subLanguage: "graphql" } }, b = { className: "string", begin: "`", end: "`", contains: [n.BACKSLASH_ESCAPE, g] }, A = { className: "comment", variants: [n.COMMENT(/\/\*\*(?!\/)/, "\\*/", { relevance: 0, contains: [{ begin: "(?=@[A-Za-z]+)", relevance: 0, contains: [{ className: "doctag", begin: "@[A-Za-z]+" }, { className: "type", begin: "\\{", end: "\\}", excludeEnd: !0, excludeBegin: !0, relevance: 0 }, { className: "variable", begin: e + "(?=\\s*(-)|$)", endsParent: !0, relevance: 0 }, { begin: /(?=[^\n])\s/, relevance: 0 }] }] }), n.C_BLOCK_COMMENT_MODE, n.C_LINE_COMMENT_MODE] }, L = [n.APOS_STRING_MODE, n.QUOTE_STRING_MODE, v, y, S, b, { match: /\$\d+/ }, _], g.contains = L.concat({ begin: /\{/, end: /\}/, keywords: m, contains: ["self"].concat(L) }), D = (C = [].concat(A, g.contains)).concat([{ begin: /(\s*)\(/, end: /\)/, keywords: m, contains: ["self"].concat(C) }]), x = { className: "params", begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: m, contains: D }, O = { variants: [{ match: [/class/, /\s+/, e, /\s+/, /extends/, /\s+/, a.concat(e, "(", a.concat(/\./, e), ")*")], scope: { 1: "keyword", 3: "title.class", 5: "keyword", 7: "title.class.inherited" } }, { match: [/class/, /\s+/, e], scope: { 1: "keyword", 3: "title.class" } }] }, M = { relevance: 0, match: a.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/), className: "title.class", keywords: { _: [].concat(Q, p) } }, R = { match: a.concat(/\b/, (N = [].concat(T, ["super", "import"]).map(function(Te) {
|
|
45148
|
+
return "".concat(Te, "\\s*\\(");
|
|
45149
|
+
}), a.concat("(?!", N.join("|"), ")")), e, a.lookahead(/\s*\(/)), className: "title.function", relevance: 0 }, w = { begin: a.concat(/\./, a.lookahead(a.concat(e, /(?![0-9A-Za-z$_(])/))), end: e, excludeBegin: !0, keywords: "prototype", className: "property", relevance: 0 }, k = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + n.UNDERSCORE_IDENT_RE + ")\\s*=>", B = { match: [/const|var|let/, /\s+/, e, /\s*/, /=\s*/, /(async\s*)?/, a.lookahead(k)], keywords: "async", className: { 1: "keyword", 3: "title.function" }, contains: [x] }, { name: "JavaScript", aliases: ["js", "jsx", "mjs", "cjs"], keywords: m, exports: { PARAMS_CONTAINS: D, CLASS_REFERENCE: M }, illegal: /#(?![$_A-z])/, contains: [n.SHEBANG({ label: "shebang", binary: "node", relevance: 5 }), { label: "use_strict", className: "meta", relevance: 10, begin: /^\s*['"]use (strict|asm)['"]/ }, n.APOS_STRING_MODE, n.QUOTE_STRING_MODE, v, y, S, b, A, { match: /\$\d+/ }, _, M, { scope: "attr", match: e + a.lookahead(":"), relevance: 0 }, B, { begin: "(" + n.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*", keywords: "return throw case", relevance: 0, contains: [A, n.REGEXP_MODE, { className: "function", begin: k, returnBegin: !0, end: "\\s*=>", contains: [{ className: "params", variants: [{ begin: n.UNDERSCORE_IDENT_RE, relevance: 0 }, { className: null, begin: /\(\s*\)/, skip: !0 }, { begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: m, contains: D }] }] }, { begin: /,/, relevance: 0 }, { match: /\s+/, relevance: 0 }, { variants: [{ begin: "<>", end: "</>" }, { match: /<[A-Za-z0-9\\._:-]+\s*\/>/ }, { begin: o, "on:begin": l, end: u }], subLanguage: "xml", contains: [{ begin: o, end: u, skip: !0, contains: ["self"] }] }] }, { variants: [{ match: [/function/, /\s+/, e, /(?=\s*\()/] }, { match: [/function/, /\s*(?=\()/] }], className: { 1: "keyword", 3: "title.function" }, label: "func.def", contains: [x], illegal: /%/ }, { beginKeywords: "while if switch catch for" }, { begin: "\\b(?!function)" + n.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", returnBegin: !0, label: "func.def", contains: [x, n.inherit(n.TITLE_MODE, { begin: e, className: "title.function" })] }, { match: /\.\.\./, relevance: 0 }, w, { match: "\\$" + e, relevance: 0 }, { match: [/\bconstructor(?=\s*\()/], className: { 1: "title.function" }, contains: [x] }, R, { relevance: 0, match: /\b[A-Z][A-Z_0-9]+\b/, className: "variable.constant" }, O, { match: [/get|set/, /\s+/, e, /(?=\()/], className: { 1: "keyword", 3: "title.function" }, contains: [{ begin: /\(\)/ }, x] }, { match: /\$[(.]/ }] }), F = ["any", "void", "number", "boolean", "string", "object", "never", "symbol", "bigint", "unknown"], I = { begin: [/namespace/, /\s+/, n.IDENT_RE], beginScope: { 1: "keyword", 3: "title.class" } }, P = { beginKeywords: "interface", end: /\{/, excludeEnd: !0, keywords: { keyword: "interface extends", built_in: F }, contains: [H.exports.CLASS_REFERENCE] }, G = { $pattern: e, keyword: t.concat(["type", "interface", "public", "private", "protected", "implements", "declare", "abstract", "readonly", "enum", "override", "satisfies"]), literal: i, built_in: c.concat(F), "variable.language": d }, Y = { className: "meta", begin: "@" + e }, q = function(Te, le, pe) {
|
|
45150
|
+
var Qe = Te.contains.findIndex(function(ve) {
|
|
45151
45151
|
return ve.label === le;
|
|
45152
45152
|
});
|
|
45153
|
-
if (
|
|
45154
|
-
|
|
45153
|
+
if (Qe === -1) throw Error("can not find mode to replace");
|
|
45154
|
+
Te.contains.splice(Qe, 1, pe);
|
|
45155
45155
|
};
|
|
45156
45156
|
Object.assign(H.keywords, G), H.exports.PARAMS_CONTAINS.push(Y);
|
|
45157
|
-
var W = H.contains.find(function(
|
|
45158
|
-
return
|
|
45157
|
+
var W = H.contains.find(function(Te) {
|
|
45158
|
+
return Te.scope === "attr";
|
|
45159
45159
|
}), re = Object.assign({}, W, { match: U.concat(e, U.lookahead(/\s*\?:/)) });
|
|
45160
|
-
return H.exports.PARAMS_CONTAINS.push([H.exports.CLASS_REFERENCE, W, re]), H.contains = H.contains.concat([Y, I, P, re]), q(H, "shebang", n.SHEBANG()), q(H, "use_strict", { className: "meta", relevance: 10, begin: /^\s*['"]use strict['"]/ }), H.contains.find(function(
|
|
45161
|
-
return
|
|
45160
|
+
return H.exports.PARAMS_CONTAINS.push([H.exports.CLASS_REFERENCE, W, re]), H.contains = H.contains.concat([Y, I, P, re]), q(H, "shebang", n.SHEBANG()), q(H, "use_strict", { className: "meta", relevance: 10, begin: /^\s*['"]use strict['"]/ }), H.contains.find(function(Te) {
|
|
45161
|
+
return Te.label === "func.def";
|
|
45162
45162
|
}).relevance = 0, Object.assign(H, { name: "TypeScript", aliases: ["ts", "tsx", "mts", "cts"] }), H;
|
|
45163
45163
|
};
|
|
45164
45164
|
}, 5039: function(r) {
|
|
@@ -45456,16 +45456,16 @@ var So = function(r) {
|
|
|
45456
45456
|
}(b) || function(P, G) {
|
|
45457
45457
|
var Y = P == null ? null : typeof Symbol < "u" && P[Symbol.iterator] || P["@@iterator"];
|
|
45458
45458
|
if (Y != null) {
|
|
45459
|
-
var q, W, re,
|
|
45459
|
+
var q, W, re, Te, le = [], pe = !0, Qe = !1;
|
|
45460
45460
|
try {
|
|
45461
45461
|
for (re = (Y = Y.call(P)).next; !(pe = (q = re.call(Y)).done) && (le.push(q.value), le.length !== G); pe = !0) ;
|
|
45462
45462
|
} catch (ve) {
|
|
45463
|
-
|
|
45463
|
+
Qe = !0, W = ve;
|
|
45464
45464
|
} finally {
|
|
45465
45465
|
try {
|
|
45466
|
-
if (!pe && Y.return != null && (
|
|
45466
|
+
if (!pe && Y.return != null && (Te = Y.return(), Object(Te) !== Te)) return;
|
|
45467
45467
|
} finally {
|
|
45468
|
-
if (
|
|
45468
|
+
if (Qe) throw W;
|
|
45469
45469
|
}
|
|
45470
45470
|
}
|
|
45471
45471
|
return le;
|
|
@@ -45487,10 +45487,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45487
45487
|
})).forEach(function(P, G) {
|
|
45488
45488
|
P.forEach(function(Y, q) {
|
|
45489
45489
|
if (q < L) {
|
|
45490
|
-
var W = P.every(function(
|
|
45491
|
-
return
|
|
45492
|
-
}), re = D.every(function(
|
|
45493
|
-
return
|
|
45490
|
+
var W = P.every(function(Te) {
|
|
45491
|
+
return Te.trim() === "";
|
|
45492
|
+
}), re = D.every(function(Te) {
|
|
45493
|
+
return Te[q].trim() === "";
|
|
45494
45494
|
});
|
|
45495
45495
|
W || re ? D[G][q] = C : D[G][q] = D[G][q];
|
|
45496
45496
|
} else D[G][q] = D[G][q];
|
|
@@ -45857,10 +45857,10 @@ var Bc = function(r) {
|
|
|
45857
45857
|
if (G) {
|
|
45858
45858
|
var re = document.getElementById("temp_chtml");
|
|
45859
45859
|
re || ((re = document.createElement("div")).id = "temp_chtml", document.body.appendChild(re)), re.innerHTML += "$$".concat(R, "$$");
|
|
45860
|
-
var
|
|
45861
|
-
document.renders || (document.renders = []), document.renders.push(
|
|
45860
|
+
var Te = { done: !1 };
|
|
45861
|
+
document.renders || (document.renders = []), document.renders.push(Te), window.MathJax1.typesetPromise().then(function() {
|
|
45862
45862
|
setTimeout(function() {
|
|
45863
|
-
|
|
45863
|
+
Te.done = !0;
|
|
45864
45864
|
}, 1e3);
|
|
45865
45865
|
}), B = window.MathJax1.tex2chtml(R, { display: !0 }).outerHTML;
|
|
45866
45866
|
} else if (Y) {
|
|
@@ -45870,8 +45870,8 @@ var Bc = function(r) {
|
|
|
45870
45870
|
var pe = R.replace(/^\\uwave/, "").replace(/^\{/, "").replace(/\}$/, "");
|
|
45871
45871
|
if (pe) return B = '<span class="text-wave-special">'.concat(pe, "</span>");
|
|
45872
45872
|
} else if (U) {
|
|
45873
|
-
var
|
|
45874
|
-
|
|
45873
|
+
var Qe = document.getElementById("temp_chtml");
|
|
45874
|
+
Qe || ((Qe = document.createElement("div")).id = "temp_chtml", document.body.appendChild(Qe)), Qe.innerHTML += "$$".concat(R, "$$");
|
|
45875
45875
|
var ve = { done: !1 };
|
|
45876
45876
|
document.renders || (document.renders = []), document.renders.push(ve), window.MathJax1.typesetPromise().then(function() {
|
|
45877
45877
|
setTimeout(function() {
|
|
@@ -45881,8 +45881,8 @@ var Bc = function(r) {
|
|
|
45881
45881
|
} else B = window.MathJax.tex2svg(R, { display: !0 }).outerHTML;
|
|
45882
45882
|
var he = (B.match(/mathcolor="red"/g) || []).length, me = (R.match(/color{red}/g) || []).length;
|
|
45883
45883
|
(k = B.includes('mathcolor="red"') && he > me || B.includes("data-mjx-error")) && !S && (S = !0);
|
|
45884
|
-
} catch (
|
|
45885
|
-
console.log("error",
|
|
45884
|
+
} catch (Me) {
|
|
45885
|
+
console.log("error", Me), B = R, k = !0, S || (S = !0);
|
|
45886
45886
|
}
|
|
45887
45887
|
var Ae = 0;
|
|
45888
45888
|
try {
|
|
@@ -45890,8 +45890,8 @@ var Bc = function(r) {
|
|
|
45890
45890
|
} catch {
|
|
45891
45891
|
Ae = 0;
|
|
45892
45892
|
}
|
|
45893
|
-
var
|
|
45894
|
-
return k ? n ? R : '<span class="mathtex-block"'.concat(
|
|
45893
|
+
var Re = Ae > 2;
|
|
45894
|
+
return k ? n ? R : '<span class="mathtex-block"'.concat(Re ? " layer-margin" : "").concat(G ? " text-boxed-special" : "").concat(F ? " text-wave-special" : "").concat(Y ? " text-underline-special" : "", '">').concat(B, "</span>") : '<span class="mathtex-block'.concat(Re ? " layer-margin" : "").concat(G ? " text-boxed-special" : "").concat(F ? " text-wave-special" : "").concat(Y ? " text-underline-special" : "", '">').concat(B, "</span>");
|
|
45895
45895
|
};
|
|
45896
45896
|
if (h === "latexContent") return r;
|
|
45897
45897
|
var A = RegExp('fill="red"', "g"), L = "";
|
|
@@ -45999,8 +45999,8 @@ var T5 = Am.mathjax.document("", { InputJax: new Lm.TeX({ packages: Om.AllPackag
|
|
|
45999
45999
|
var re = T5.convert(R, { display: !0 });
|
|
46000
46000
|
B = A4.outerHTML(re);
|
|
46001
46001
|
} else if (Y) {
|
|
46002
|
-
var
|
|
46003
|
-
if (
|
|
46002
|
+
var Te = R.replace(/^\\underline/, "").replace(/^\{/, "").replace(/\}$/, "");
|
|
46003
|
+
if (Te) return B = '<span class="text-underline-special">'.concat(Te, "</span>");
|
|
46004
46004
|
} else if (F) {
|
|
46005
46005
|
var le = R.replace(/^\\uwave/, "").replace(/^\{/, "").replace(/\}$/, "");
|
|
46006
46006
|
if (le) return B = '<span class="text-wave-special">'.concat(le, "</span>");
|
|
@@ -46008,13 +46008,13 @@ var T5 = Am.mathjax.document("", { InputJax: new Lm.TeX({ packages: Om.AllPackag
|
|
|
46008
46008
|
var pe = T5.convert(R, { display: !0 });
|
|
46009
46009
|
B = A4.outerHTML(pe);
|
|
46010
46010
|
} else {
|
|
46011
|
-
var
|
|
46012
|
-
B = A4.outerHTML(
|
|
46011
|
+
var Qe = T5.convert(R, { display: !0 });
|
|
46012
|
+
B = A4.outerHTML(Qe);
|
|
46013
46013
|
}
|
|
46014
46014
|
var ve = (B.match(/mathcolor="red"/g) || []).length, he = (R.match(/color{red}/g) || []).length;
|
|
46015
46015
|
(k = B.includes('mathcolor="red"') && ve > he || B.includes("data-mjx-error")) && !S && (S = !0);
|
|
46016
|
-
} catch (
|
|
46017
|
-
console.log("Server render error:",
|
|
46016
|
+
} catch (Re) {
|
|
46017
|
+
console.log("Server render error:", Re), B = R, k = !0, S || (S = !0);
|
|
46018
46018
|
}
|
|
46019
46019
|
var me = 0;
|
|
46020
46020
|
try {
|
|
@@ -48066,49 +48066,49 @@ var nT = function(r) {
|
|
|
48066
48066
|
if (!(i.startsWith("[") && i.endsWith("]"))) return "".concat(r, `
|
|
48067
48067
|
<img src='`).concat(i, "' alt='题目配图' style='width: 100%; height: auto;'>");
|
|
48068
48068
|
var c = (i = i.slice(1, -1)).split(","), n = "";
|
|
48069
|
-
return c.forEach(function(
|
|
48070
|
-
|
|
48069
|
+
return c.forEach(function(Ne) {
|
|
48070
|
+
Ne && (n += '<img src="'.concat(Ne, '" alt="题目配图" style="width: 100%; height: auto;">'));
|
|
48071
48071
|
}), "".concat(r, `
|
|
48072
48072
|
`).concat(n);
|
|
48073
48073
|
}
|
|
48074
48074
|
if (t === "单选" || t === "判断" || t === "填空") {
|
|
48075
|
-
var a, s, o = r, u = [].concat(T).sort(function(
|
|
48076
|
-
return ne.start -
|
|
48077
|
-
}), l = function(
|
|
48078
|
-
var X = typeof Symbol < "u" &&
|
|
48075
|
+
var a, s, o = r, u = [].concat(T).sort(function(Ne, ne) {
|
|
48076
|
+
return ne.start - Ne.start;
|
|
48077
|
+
}), l = function(Ne, ne) {
|
|
48078
|
+
var X = typeof Symbol < "u" && Ne[Symbol.iterator] || Ne["@@iterator"];
|
|
48079
48079
|
if (!X) {
|
|
48080
|
-
if (Array.isArray(
|
|
48081
|
-
if (
|
|
48082
|
-
if (typeof
|
|
48083
|
-
var Le = {}.toString.call(
|
|
48084
|
-
return Le === "Object" &&
|
|
48080
|
+
if (Array.isArray(Ne) || (X = function(se, De) {
|
|
48081
|
+
if (se) {
|
|
48082
|
+
if (typeof se == "string") return x7(se, void 0);
|
|
48083
|
+
var Le = {}.toString.call(se).slice(8, -1);
|
|
48084
|
+
return Le === "Object" && se.constructor && (Le = se.constructor.name), Le === "Map" || Le === "Set" ? Array.from(se) : Le === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Le) ? x7(se, De) : void 0;
|
|
48085
48085
|
}
|
|
48086
|
-
}(
|
|
48087
|
-
X && (
|
|
48088
|
-
var Z = 0,
|
|
48086
|
+
}(Ne))) {
|
|
48087
|
+
X && (Ne = X);
|
|
48088
|
+
var Z = 0, ce = function() {
|
|
48089
48089
|
};
|
|
48090
|
-
return { s:
|
|
48091
|
-
return Z >=
|
|
48092
|
-
}, e: function(
|
|
48093
|
-
throw
|
|
48094
|
-
}, f:
|
|
48090
|
+
return { s: ce, n: function() {
|
|
48091
|
+
return Z >= Ne.length ? { done: !0 } : { done: !1, value: Ne[Z++] };
|
|
48092
|
+
}, e: function(se) {
|
|
48093
|
+
throw se;
|
|
48094
|
+
}, f: ce };
|
|
48095
48095
|
}
|
|
48096
48096
|
throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
48097
48097
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
48098
48098
|
}
|
|
48099
|
-
var ee, J = !0,
|
|
48099
|
+
var ee, J = !0, ue = !1;
|
|
48100
48100
|
return { s: function() {
|
|
48101
|
-
X = X.call(
|
|
48101
|
+
X = X.call(Ne);
|
|
48102
48102
|
}, n: function() {
|
|
48103
|
-
var
|
|
48104
|
-
return J =
|
|
48105
|
-
}, e: function(
|
|
48106
|
-
|
|
48103
|
+
var se = X.next();
|
|
48104
|
+
return J = se.done, se;
|
|
48105
|
+
}, e: function(se) {
|
|
48106
|
+
ue = !0, ee = se;
|
|
48107
48107
|
}, f: function() {
|
|
48108
48108
|
try {
|
|
48109
48109
|
J || X.return == null || X.return();
|
|
48110
48110
|
} finally {
|
|
48111
|
-
if (
|
|
48111
|
+
if (ue) throw ee;
|
|
48112
48112
|
}
|
|
48113
48113
|
} };
|
|
48114
48114
|
}(u);
|
|
@@ -48153,16 +48153,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
48153
48153
|
q === "\\left(" && W === "\\right)" && (o = o.substring(0, h - 6) + o.substring(h, E) + o.substring(E + 7), h -= 6, E -= 6);
|
|
48154
48154
|
} else h = U, E = H;
|
|
48155
48155
|
else {
|
|
48156
|
-
var re = o.substring(h - 6, h),
|
|
48157
|
-
re === "\\left(" &&
|
|
48156
|
+
var re = o.substring(h - 6, h), Te = o.substring(E, E + 7);
|
|
48157
|
+
re === "\\left(" && Te === "\\right)" ? (R = !0, w = !0, k = "( ", B = " )", Y = !0) : (R = !1, w = !1, k = "", B = "", U = h, H = E, Y = !1);
|
|
48158
48158
|
}
|
|
48159
48159
|
for (var le = /\\enclose\{circle\}\{([^{}]*?)##[^#]*##([^{}]*?)\}/g, pe = void 0; (pe = le.exec(r)) !== null; ) if (pe.index < h && pe.index + pe[0].length > E) {
|
|
48160
48160
|
x = !0;
|
|
48161
48161
|
break;
|
|
48162
48162
|
}
|
|
48163
48163
|
if (!x) {
|
|
48164
|
-
var
|
|
48165
|
-
/^\\enclose\{circle\}\{[^{}]+\}$/.test(
|
|
48164
|
+
var Qe = f.replace(/^##|##$/g, "").trim();
|
|
48165
|
+
/^\\enclose\{circle\}\{[^{}]+\}$/.test(Qe) && (x = !0);
|
|
48166
48166
|
}
|
|
48167
48167
|
for (var ve = /\\enclose\{box\}\{([^{}]*?)##[^#]*##([^{}]*?)\}/g, he = void 0; (he = ve.exec(r)) !== null; ) if (he.index < h && he.index + he[0].length > E) {
|
|
48168
48168
|
O = !0;
|
|
@@ -48172,11 +48172,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
48172
48172
|
var me = f.replace(/^##|##$/g, "").trim();
|
|
48173
48173
|
/^\\enclose\{box\}\{[^{}]+\}$/.test(me) && (O = !0);
|
|
48174
48174
|
}
|
|
48175
|
-
for (var Ae = /\\underline\{([^{}]*?)##[^#]*##([^{}]*?)\}/g,
|
|
48175
|
+
for (var Ae = /\\underline\{([^{}]*?)##[^#]*##([^{}]*?)\}/g, Re = void 0; (Re = Ae.exec(r)) !== null; ) if (Re.index < h && Re.index + Re[0].length > E) {
|
|
48176
48176
|
D = !0;
|
|
48177
48177
|
break;
|
|
48178
48178
|
}
|
|
48179
|
-
for (var
|
|
48179
|
+
for (var Me = /\\frac\{(?:[^{}]*##[^#]*##[^{}]*|[^{}]*)\}\{[^{}]*\}|\\frac\{[^{}]*\}\{(?:[^{}]*##[^#]*##[^{}]*|[^{}]*)\}/g, Pe = void 0; (Pe = Me.exec(r)) !== null; ) {
|
|
48180
48180
|
var nt = Pe[0], Ye = Pe.index, Ke = Ye + nt.length;
|
|
48181
48181
|
if (h >= Ye && E <= Ke) {
|
|
48182
48182
|
M = !0;
|
|
@@ -48207,16 +48207,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
48207
48207
|
We = f.startsWith("$$") && f.endsWith("$$") && ze ? e ? "$$".concat(g, "color{").concat(Q, "}{").concat(g, "enclose{circle}{").concat(g, "color{black}{").concat(ze[1], "}}}").concat(g, "color{black}{}$$") : "$$".concat(g, "color{black}{").concat(g, "enclose{circle}{").concat(g, "phantom{").concat(ze[1], "}}}").concat(g, "color{black}{}$$") : f.startsWith("$$") && f.endsWith("$$") && ht ? e ? "$$".concat(g, "color{").concat(Q, "}{").concat(g, "enclose{box}{").concat(g, "color{black}{").concat(ht[1], "}}}").concat(g, "color{black}{}$$") : "$$".concat(g, "color{black}{").concat(g, "enclose{box}{").concat(g, "phantom{").concat(ht[1], "}}}").concat(g, "color{black}{}$$") : ae && _e ? e ? '<span style="display: inline-block; min-width: '.concat(20, "px; ").concat(j, '"><span style="display: inline-block;outline: 1.3px solid ').concat(Q, '; outline-offset: 2px;">').concat(te).concat(f).concat(ge, "</span></span>") : '<span style="display: inline-block; min-width: '.concat(20, "px; ").concat(j, '"><span style="display: inline-block;">').concat(te, '<span style="visibility: hidden;">').concat(f, "</span>").concat(ge, "</span></span>") : f.includes("underline") && (V = f, /^\$\$\\underline\{[\s\S]*\}\$\$/.test(V)) ? e ? '<span style="display: inline-block; min-width: '.concat(20, "px; ").concat(j, "; outline: 1.3px solid ").concat(Q, '; outline-offset: 2px;">').concat(f, "</span>") : '<span style="display: inline-block; min-width: '.concat(20, "px; ").concat(j, '; border-bottom: 1px solid black"><span style="visibility: hidden;">').concat(f, "</span></span>") : e ? '<span style="display: inline-block; min-width: '.concat(20, "px; ").concat(j, ";border-bottom: 1px solid black;outline: 1.3px solid ").concat(Q, '; outline-offset: 2px;">').concat(f, "</span>") : '<span style="display: inline-block; min-width: '.concat(20, "px; ").concat(j, ';border-bottom: 1px solid black"><span style="visibility: hidden;">').concat(f, "</span></span>"), o = o.substring(0, z) + We + o.substring(K);
|
|
48208
48208
|
}
|
|
48209
48209
|
}
|
|
48210
|
-
} catch (
|
|
48211
|
-
l.e(
|
|
48210
|
+
} catch (Ne) {
|
|
48211
|
+
l.e(Ne);
|
|
48212
48212
|
} finally {
|
|
48213
48213
|
l.f();
|
|
48214
48214
|
}
|
|
48215
48215
|
if (i && i !== "[]")
|
|
48216
48216
|
if (i.startsWith("[") && i.endsWith("]")) {
|
|
48217
48217
|
var h1 = (i = i.slice(1, -1)).split(","), t1 = "";
|
|
48218
|
-
h1.forEach(function(
|
|
48219
|
-
|
|
48218
|
+
h1.forEach(function(Ne) {
|
|
48219
|
+
Ne && (t1 += '<img src="'.concat(Ne, '" alt="题目配图" style="width: 100%; height: auto;">'));
|
|
48220
48220
|
}), o = "".concat(o, `
|
|
48221
48221
|
`).concat(t1);
|
|
48222
48222
|
} else o = "".concat(o, `
|
|
@@ -48226,14 +48226,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
48226
48226
|
if (t === "解答") {
|
|
48227
48227
|
console.log("解答11111111");
|
|
48228
48228
|
var Ce = r;
|
|
48229
|
-
return [].concat(T).sort(function(
|
|
48230
|
-
return ne.start -
|
|
48231
|
-
}).forEach(function(
|
|
48232
|
-
|
|
48233
|
-
for (var X =
|
|
48234
|
-
if (
|
|
48235
|
-
var Le =
|
|
48236
|
-
if (Le < Z && Ie >
|
|
48229
|
+
return [].concat(T).sort(function(Ne, ne) {
|
|
48230
|
+
return ne.start - Ne.start;
|
|
48231
|
+
}).forEach(function(Ne, ne) {
|
|
48232
|
+
Ne.fullMatch;
|
|
48233
|
+
for (var X = Ne.answer, Z = Ne.start, ce = Ne.end, ee = !1, J = "\\", ue = [], se = 0; se < Ce.length - 1; se++) Ce.substr(se, 2) === "$$" && (ue.push(se), se++);
|
|
48234
|
+
if (ue.length >= 2) for (var De = 0; De < ue.length - 1; De += 2) {
|
|
48235
|
+
var Le = ue[De], Ie = ue[De + 1] + 2;
|
|
48236
|
+
if (Le < Z && Ie > ce && !Ce.substring(Z, ce).includes("$$")) {
|
|
48237
48237
|
var gt = Ce.substring(Le + 2, Ie - 2);
|
|
48238
48238
|
if (!gt.includes("$$")) {
|
|
48239
48239
|
var Je = gt.match(/^[^\\]*?(\\+)/);
|
|
@@ -48244,8 +48244,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
48244
48244
|
}
|
|
48245
48245
|
if (ee) {
|
|
48246
48246
|
var Mt, Zt, Ee, O1 = !1, Ze = !1, we = !1, Vt = !1, bt = !1;
|
|
48247
|
-
Ce.charAt(Z - 1), Ce.charAt(
|
|
48248
|
-
var r1 = Z, n1 =
|
|
48247
|
+
Ce.charAt(Z - 1), Ce.charAt(ce);
|
|
48248
|
+
var r1 = Z, n1 = ce;
|
|
48249
48249
|
if (Z > 0) {
|
|
48250
48250
|
for (var Lt = Z - 1; Lt >= 0 && Ce.charAt(Lt) === " "; ) Lt--;
|
|
48251
48251
|
if (Lt >= 0) {
|
|
@@ -48253,8 +48253,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
48253
48253
|
(Y1 === "(" || Y1 === "(") && (r1 = Lt, Vt = !0);
|
|
48254
48254
|
}
|
|
48255
48255
|
}
|
|
48256
|
-
if (
|
|
48257
|
-
for (var Kt =
|
|
48256
|
+
if (ce < Ce.length) {
|
|
48257
|
+
for (var Kt = ce; Kt < Ce.length && Ce.charAt(Kt) === " "; ) Kt++;
|
|
48258
48258
|
if (Kt < Ce.length) {
|
|
48259
48259
|
var fe = Ce.charAt(Kt);
|
|
48260
48260
|
(fe === ")" || fe === ")") && (n1 = Kt + 1, bt = !0);
|
|
@@ -48263,14 +48263,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
48263
48263
|
var be = !1;
|
|
48264
48264
|
if (Vt && bt)
|
|
48265
48265
|
if (be) {
|
|
48266
|
-
var ke = Ce.substring(Z - 6, Z), _t = Ce.substring(
|
|
48267
|
-
ke === "\\left(" && _t === "\\right)" && (Ce = Ce.substring(0, Z - 6) + Ce.substring(Z,
|
|
48268
|
-
} else Z = r1,
|
|
48266
|
+
var ke = Ce.substring(Z - 6, Z), _t = Ce.substring(ce, ce + 7);
|
|
48267
|
+
ke === "\\left(" && _t === "\\right)" && (Ce = Ce.substring(0, Z - 6) + Ce.substring(Z, ce) + Ce.substring(ce + 7), Z -= 6, ce -= 6);
|
|
48268
|
+
} else Z = r1, ce = n1;
|
|
48269
48269
|
else {
|
|
48270
|
-
var
|
|
48271
|
-
|
|
48270
|
+
var xe = Ce.substring(Z - 6, Z), $ = Ce.substring(ce, ce + 7);
|
|
48271
|
+
xe === "\\left(" && $ === "\\right)" ? (Vt = !0, bt = !0, be = !0) : (Vt = !1, bt = !1, r1 = Z, n1 = ce, be = !1);
|
|
48272
48272
|
}
|
|
48273
|
-
for (var
|
|
48273
|
+
for (var Oe = /\\enclose\{circle\}\{([^{}]*?)##[^#]*##([^{}]*?)\}/g; (Mt = Oe.exec(r)) !== null; ) if (Mt.index < Z && Mt.index + Mt[0].length > ce) {
|
|
48274
48274
|
Ze = !0;
|
|
48275
48275
|
break;
|
|
48276
48276
|
}
|
|
@@ -48278,7 +48278,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
48278
48278
|
var Be = X.replace(/^##|##$/g, "").trim();
|
|
48279
48279
|
/^\\enclose\{circle\}\{[^{}]+\}$/.test(Be) && (Ze = !0);
|
|
48280
48280
|
}
|
|
48281
|
-
for (var Ve = /\\enclose\{box\}\{([^{}]*?)##[^#]*##([^{}]*?)\}/g; (Zt = Ve.exec(r)) !== null; ) if (Zt.index < Z && Zt.index + Zt[0].length >
|
|
48281
|
+
for (var Ve = /\\enclose\{box\}\{([^{}]*?)##[^#]*##([^{}]*?)\}/g; (Zt = Ve.exec(r)) !== null; ) if (Zt.index < Z && Zt.index + Zt[0].length > ce) {
|
|
48282
48282
|
we = !0;
|
|
48283
48283
|
break;
|
|
48284
48284
|
}
|
|
@@ -48303,29 +48303,29 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
48303
48303
|
}
|
|
48304
48304
|
}
|
|
48305
48305
|
return vt;
|
|
48306
|
-
}(
|
|
48307
|
-
Ge && (O1 = !0, Z =
|
|
48306
|
+
}(Ne, r), Ge = qe.isInUnderline, oe = qe.underlineStart, mt = qe.underlineEnd;
|
|
48307
|
+
Ge && (O1 = !0, Z = oe, ce = mt);
|
|
48308
48308
|
for (var Ft = /\\frac\{(?:[^{}]*##[^#]*##[^{}]*|[^{}]*)\}\{[^{}]*\}|\\frac\{[^{}]*\}\{(?:[^{}]*##[^#]*##[^{}]*|[^{}]*)\}/g; (Ee = Ft.exec(r)) !== null; ) {
|
|
48309
48309
|
var Xt = Ee[0], Gt = Ee.index, Ut = Gt + Xt.length;
|
|
48310
|
-
if (Z >= Gt &&
|
|
48310
|
+
if (Z >= Gt && ce <= Ut) break;
|
|
48311
48311
|
}
|
|
48312
|
-
Ce.substring(Z - 7, Z) === "\\boxed{" && Ce.substring(
|
|
48312
|
+
Ce.substring(Z - 7, Z) === "\\boxed{" && Ce.substring(ce, ce + 1) === "}" && (Z -= 7, ce += 1);
|
|
48313
48313
|
var kt = X, v1 = X.length > 20 ? "" : "text-align: center;";
|
|
48314
48314
|
O1 && (kt = '<span style="display: inline-block; min-width: 20px; '.concat(v1, '; border-bottom: 1px solid black">$$').concat(X, "$$</span>"));
|
|
48315
48315
|
var P1 = '<div style="min-height: 150px; border: 1px dashed '.concat(Q, "; margin-top: 10px; visibility: ").concat(e ? "visible" : "hidden", `" >
|
|
48316
48316
|
<div style="padding: 10px;">`).concat(kt, `</div>
|
|
48317
48317
|
</div>`);
|
|
48318
|
-
Ce = Ce.substring(0, Z) + P1 + Ce.substring(
|
|
48318
|
+
Ce = Ce.substring(0, Z) + P1 + Ce.substring(ce);
|
|
48319
48319
|
} else {
|
|
48320
48320
|
var X1 = '<div style="min-height: 150px; border: 1px dashed '.concat(Q, "; margin-top: 10px; visibility: ").concat(e ? "visible" : "hidden", `" >
|
|
48321
48321
|
<div style="padding: 10px;">`).concat(X, `</div>
|
|
48322
48322
|
</div>`);
|
|
48323
|
-
Ce = Ce.substring(0, Z) + X1 + Ce.substring(
|
|
48323
|
+
Ce = Ce.substring(0, Z) + X1 + Ce.substring(ce);
|
|
48324
48324
|
}
|
|
48325
48325
|
}), Ce;
|
|
48326
48326
|
}
|
|
48327
|
-
} catch (
|
|
48328
|
-
return console.error("处理答案回填时出错:",
|
|
48327
|
+
} catch (Ne) {
|
|
48328
|
+
return console.error("处理答案回填时出错:", Ne), r;
|
|
48329
48329
|
}
|
|
48330
48330
|
}, aT = function(r, e) {
|
|
48331
48331
|
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = arguments.length > 3 ? arguments[3] : void 0, Q = !(arguments.length > 4) || arguments[4] === void 0 || arguments[4];
|
|
@@ -48387,9 +48387,9 @@ function Ri() {
|
|
|
48387
48387
|
var I = k.delegate;
|
|
48388
48388
|
if (I) {
|
|
48389
48389
|
var P = function Y(q, W) {
|
|
48390
|
-
var re = W.method,
|
|
48391
|
-
if (
|
|
48392
|
-
var le = s(
|
|
48390
|
+
var re = W.method, Te = q.iterator[re];
|
|
48391
|
+
if (Te === r) return W.delegate = null, re === "throw" && q.iterator.return && (W.method = "return", W.arg = r, Y(q, W), W.method === "throw") || re !== "return" && (W.method = "throw", W.arg = TypeError("The iterator does not provide a '" + re + "' method")), m;
|
|
48392
|
+
var le = s(Te, q.iterator, W.arg);
|
|
48393
48393
|
if (le.type === "throw") return W.method = "throw", W.arg = le.arg, W.delegate = null, m;
|
|
48394
48394
|
var pe = le.arg;
|
|
48395
48395
|
return pe ? pe.done ? (W[q.resultName] = pe.value, W.next = q.nextLoc, W.method !== "return" && (W.method = "next", W.arg = r), W.delegate = null, m) : pe : (W.method = "throw", W.arg = TypeError("iterator result is not an object"), W.delegate = null, m);
|
|
@@ -49004,14 +49004,14 @@ var Ih = _1(function r(e, t, i, Q, p, T) {
|
|
|
49004
49004
|
var P, G, Y, q, W = (H == null || (Y = H.height) === null || Y === void 0 || (q = Y.baseVal) === null || q === void 0 ? void 0 : q.value) || 0;
|
|
49005
49005
|
w = Math.max(w, W, H.offsetHeight || 0);
|
|
49006
49006
|
} else if (H.classList.contains("mathjax_content")) {
|
|
49007
|
-
var re,
|
|
49007
|
+
var re, Te, le, pe = ((re = H.childNodes[0]) === null || re === void 0 || (Te = re.height) === null || Te === void 0 || (le = Te.baseVal) === null || le === void 0 ? void 0 : le.value) || 0;
|
|
49008
49008
|
w = Math.max(w, pe, H.offsetHeight);
|
|
49009
49009
|
} else {
|
|
49010
49010
|
w = Math.max(w, H.offsetHeight || 0);
|
|
49011
|
-
var
|
|
49012
|
-
|
|
49013
|
-
var me, Ae,
|
|
49014
|
-
w = Math.max(w,
|
|
49011
|
+
var Qe = H.querySelectorAll(".mathjax_content");
|
|
49012
|
+
Qe.length > 0 && Qe.forEach(function(he) {
|
|
49013
|
+
var me, Ae, Re, Me = ((me = he.childNodes[0]) === null || me === void 0 || (Ae = me.height) === null || Ae === void 0 || (Re = Ae.baseVal) === null || Re === void 0 ? void 0 : Re.value) || 0;
|
|
49014
|
+
w = Math.max(w, Me, he.offsetHeight || 0);
|
|
49015
49015
|
});
|
|
49016
49016
|
}
|
|
49017
49017
|
var ve = H.offsetWidth || 0;
|
|
@@ -49034,41 +49034,41 @@ var Ih = _1(function r(e, t, i, Q, p, T) {
|
|
|
49034
49034
|
}
|
|
49035
49035
|
var U = "";
|
|
49036
49036
|
b && (U = window.getComputedStyle(b).getPropertyValue("border-bottom-color")), function(H, F, I, P, G, Y, q, W) {
|
|
49037
|
-
var re = F.map(function(
|
|
49038
|
-
var pe = vi(I, P),
|
|
49039
|
-
return he = he || " ", '<span class="fill_in_blank_answer_content_container_'.concat(G, '" data-index="').concat(Y, '" origin-data-width="').concat(ve, '" style="').concat(pe.answerContent).concat(W ? "border-bottom-color: ".concat(W) : "", '"><span class="fill_in_blank_answer_content fill_in_blank_answer_content_').concat(G, '" style="').concat(pe.answerContentWrapper).concat(he ? "" : "border: none;", "visibility: ").concat(P.showAnswer ? "visible" : "hidden", ";").concat((P.showAnswer, ""), ";width: ").concat(
|
|
49037
|
+
var re = F.map(function(Te, le) {
|
|
49038
|
+
var pe = vi(I, P), Qe = Te.width, ve = Te.originWidth, he = Te.content;
|
|
49039
|
+
return he = he || " ", '<span class="fill_in_blank_answer_content_container_'.concat(G, '" data-index="').concat(Y, '" origin-data-width="').concat(ve, '" style="').concat(pe.answerContent).concat(W ? "border-bottom-color: ".concat(W) : "", '"><span class="fill_in_blank_answer_content fill_in_blank_answer_content_').concat(G, '" style="').concat(pe.answerContentWrapper).concat(he ? "" : "border: none;", "visibility: ").concat(P.showAnswer ? "visible" : "hidden", ";").concat((P.showAnswer, ""), ";width: ").concat(Qe, 'px;text-align: left;">').concat((q ? n5("0px", q + "px", "top") : "") + he || "", "</span></span>").concat(le === F.length - 1 ? "" : "<br>");
|
|
49040
49040
|
}).join("");
|
|
49041
49041
|
H.outerHTML = re;
|
|
49042
49042
|
}(b, function(H, F, I, P, G) {
|
|
49043
|
-
var Y = parseFloat(tt("".concat(10, "vw"), P)), q = [], W = I -= parseFloat(tt("".concat(0.7, "vw"), P)), re = H.offsetWidth - parseFloat(tt("".concat(0.7, "vw"), P)),
|
|
49044
|
-
|
|
49043
|
+
var Y = parseFloat(tt("".concat(10, "vw"), P)), q = [], W = I -= parseFloat(tt("".concat(0.7, "vw"), P)), re = H.offsetWidth - parseFloat(tt("".concat(0.7, "vw"), P)), Te = G * Kn, le = (Te - G) / 2;
|
|
49044
|
+
Te < Y && (le = (Y - G) / 2);
|
|
49045
49045
|
var pe = le;
|
|
49046
49046
|
if (I === le) q.push({ content: "", width: I, originWidth: "0" }), q.push({ content: "", width: 0, originWidth: "0" }), I = re;
|
|
49047
49047
|
else if (I < le) for (q.push({ content: "", width: I, originWidth: "0" }), le -= I; le > 0; ) le > re ? (q.push({ content: "", width: re, originWidth: "0" }), le -= re, I = re) : le < re ? (q.push({ content: n5(le + "px", "0px", "left"), width: le, originWidth: "0" }), I = re - le, le = 0) : (q.push({ content: "", width: re, originWidth: "0" }), q.push({ content: "", width: 0, originWidth: "0" }), le = 0, I = re);
|
|
49048
49048
|
else console.log("lineBreak, 进入"), q.push({ content: n5(le + "px", "0px", "left"), width: le, originWidth: "0" }), I -= le, console.log("lineBreak, 进入2", le, I);
|
|
49049
|
-
for (var
|
|
49049
|
+
for (var Qe = 0, ve = 0; ve < F.length; ) {
|
|
49050
49050
|
var he = F[ve], me = he.width, Ae = he.content;
|
|
49051
49051
|
if (I > me) q[q.length - 1].content += Ae, q[q.length - 1].width += me, q[q.length - 1].originWidth = parseFloat(q[q.length - 1].originWidth) + me + "", I -= me, ve++;
|
|
49052
49052
|
else if (I < me) {
|
|
49053
49053
|
if (q.length === 1) {
|
|
49054
|
-
var
|
|
49055
|
-
if (
|
|
49056
|
-
var
|
|
49054
|
+
var Re = W - q[q.length - 1].width - parseFloat(tt("".concat(0.7, "vw"), P));
|
|
49055
|
+
if (Qe += Re, q[q.length - 1] && q[q.length - 1].content.includes("fill_in_blank_block_empty")) {
|
|
49056
|
+
var Me = q[q.length - 1], Pe = Me.originWidth, nt = Me.width - parseFloat(Pe) + Re, Ye = q[q.length - 1].content;
|
|
49057
49057
|
Ye = Ye.replace(/(<span[^>]*class="[^"]*fill_in_blank_block_empty[^"]*"[^>]*style="[^"]*padding-left:\s*)[^;"]+([^"]*")/g, "$1".concat(nt, "px$2")), q[q.length - 1].content = Ye;
|
|
49058
49058
|
}
|
|
49059
49059
|
q[q.length - 1].width = W;
|
|
49060
49060
|
} else {
|
|
49061
49061
|
var Ke = re - q[q.length - 1].width - parseFloat(tt("".concat(0.7, "vw"), P));
|
|
49062
|
-
if (
|
|
49062
|
+
if (Qe += Ke, q[q.length - 1] && q[q.length - 1].content.includes("fill_in_blank_block_empty")) {
|
|
49063
49063
|
var je = q[q.length - 1], V = je.originWidth, j = je.width - parseFloat(V) + Ke, z = q[q.length - 1].content;
|
|
49064
49064
|
z = z.replace(/(<span[^>]*class="[^"]*fill_in_blank_block_empty[^"]*"[^>]*style="[^"]*padding-left:\s*)[^;"]+([^"]*")/g, "$1".concat(j, "px$2")), q[q.length - 1].content = z;
|
|
49065
49065
|
}
|
|
49066
49066
|
q[q.length - 1].width = re;
|
|
49067
49067
|
}
|
|
49068
49068
|
q.push({ content: "", width: 0, originWidth: "0" }), I = re;
|
|
49069
|
-
} else q[q.length - 1].content += Ae, q.length === 1 ? (
|
|
49069
|
+
} else q[q.length - 1].content += Ae, q.length === 1 ? (Qe += W - q[q.length - 1].width, q[q.length - 1].width = W) : (Qe += re - q[q.length - 1].width, q[q.length - 1].width = re), q[q.length - 1].originWidth = parseFloat(q[q.length - 1].originWidth) + me + "", q.push({ content: "", width: 0, originWidth: "0" }), I = re, ve++;
|
|
49070
49070
|
}
|
|
49071
|
-
for (le = pe +
|
|
49071
|
+
for (le = pe + Qe; le > 0; ) I > le ? (q[q.length - 1].width += le, le = 0) : I === le ? (q.length === 1 ? q[q.length - 1].width = W : q[q.length - 1].width = re, le = 0) : (q.length === 1 ? q[q.length - 1].width = W : q[q.length - 1].width = re, q.push({ content: "", width: 0, originWidth: "0" }), le -= I, I = re);
|
|
49072
49072
|
if (q[q.length - 1].width < parseFloat(tt("".concat(10, "vw"), P)))
|
|
49073
49073
|
if (q[q.length - 1].content === "")
|
|
49074
49074
|
if (q[q.length - 2])
|
|
@@ -50089,8 +50089,8 @@ var dT = _1(function r(e, t, i, Q) {
|
|
|
50089
50089
|
var t, i, Q, p, T = this;
|
|
50090
50090
|
r.tempShowAnswer !== void 0 && (r.showAnswer = r.tempShowAnswer), this.content = function(P) {
|
|
50091
50091
|
var G, Y, q = P, W = RegExp(String.raw(Ys || (G = [`<p\b[^>]*>s*<spans+class=["']mathjax_content["']s*>s*<svg\b[^>]*>s*<title\b[^>]*>~*</title>s*</svg>s*</span>s*</p>`], Y = [`<p\\b[^>]*>\\s*<span\\s+class=["']mathjax_content["']\\s*>\\s*<svg\\b[^>]*>\\s*<title\\b[^>]*>~*<\\/title>\\s*<\\/svg>\\s*<\\/span>\\s*<\\/p>`], Ys = Object.freeze(Object.defineProperties(G, { raw: { value: Object.freeze(Y) } })))), "ig"), re = q.match(W);
|
|
50092
|
-
return console.log("list", re), re == null || re.forEach(function(
|
|
50093
|
-
console.log("item",
|
|
50092
|
+
return console.log("list", re), re == null || re.forEach(function(Te) {
|
|
50093
|
+
console.log("item", Te), q = q.replace(Te, "");
|
|
50094
50094
|
}), q;
|
|
50095
50095
|
}(this.content), this.end = !1;
|
|
50096
50096
|
var d = { justify: "left", left: "left", right: "right", center: "center", start: "left", end: "right", initial: "left", inherit: "left", unset: "left", revert: "left", "revert-layer": "left" };
|
|
@@ -50114,33 +50114,33 @@ var dT = _1(function r(e, t, i, Q) {
|
|
|
50114
50114
|
if (Y < 90 || q > parseFloat(tt("".concat(70, "vw"), e))) {
|
|
50115
50115
|
var W = document.querySelectorAll("#question-".concat(T.id, "-img")), re = document.querySelector("#essay-question-content-".concat(T.id));
|
|
50116
50116
|
if (W && re) {
|
|
50117
|
-
var
|
|
50118
|
-
if (
|
|
50119
|
-
var ve = Array.from(
|
|
50117
|
+
var Te = Array.from(W), le = !1, pe = "", Qe = re.childNodes[re.childNodes.length - 1];
|
|
50118
|
+
if (Qe && Qe.nodeType === 1 && Qe.nodeName.toLowerCase() === "div") {
|
|
50119
|
+
var ve = Array.from(Qe.childNodes).find(function(Me) {
|
|
50120
50120
|
var Pe;
|
|
50121
|
-
return
|
|
50121
|
+
return Me.nodeType === 1 && ((Pe = Me.getAttribute("id")) === null || Pe === void 0 ? void 0 : Pe.startsWith("serialBox-"));
|
|
50122
50122
|
});
|
|
50123
50123
|
if (ve) {
|
|
50124
|
-
var he = Array.from(ve.childNodes), me = he.find(function(
|
|
50124
|
+
var he = Array.from(ve.childNodes), me = he.find(function(Me) {
|
|
50125
50125
|
var Pe;
|
|
50126
|
-
return
|
|
50126
|
+
return Me.nodeType === 1 && ((Pe = Me.getAttribute("id")) === null || Pe === void 0 ? void 0 : Pe.startsWith("serial-"));
|
|
50127
50127
|
});
|
|
50128
50128
|
le = he.length === 1 && !!me, pe = me || "", he.length > 1 && he[he.length - 1] && (re = he[he.length - 1]);
|
|
50129
50129
|
}
|
|
50130
50130
|
}
|
|
50131
50131
|
if (r.showAnswer || !x) {
|
|
50132
|
-
var Ae =
|
|
50132
|
+
var Ae = Te.pop() || void 0;
|
|
50133
50133
|
if (Ae == null || Ae.setAttribute("style", "text-align: ".concat(L, ";")), le) {
|
|
50134
|
-
var
|
|
50135
|
-
return
|
|
50134
|
+
var Re = Array.from(Ae == null ? void 0 : Ae.childNodes).reverse().find(function(Me) {
|
|
50135
|
+
return Me.nodeType === 1;
|
|
50136
50136
|
}) || "";
|
|
50137
|
-
pe.appendChild(
|
|
50137
|
+
pe.appendChild(Re), Ae && Ae.remove();
|
|
50138
50138
|
} else re.appendChild(Ae);
|
|
50139
|
-
|
|
50140
|
-
return
|
|
50139
|
+
Te.forEach(function(Me) {
|
|
50140
|
+
return Me.remove();
|
|
50141
50141
|
});
|
|
50142
|
-
} else
|
|
50143
|
-
return
|
|
50142
|
+
} else Te.forEach(function(Me) {
|
|
50143
|
+
return Me.remove();
|
|
50144
50144
|
});
|
|
50145
50145
|
}
|
|
50146
50146
|
}
|
|
@@ -50148,8 +50148,8 @@ var dT = _1(function r(e, t, i, Q) {
|
|
|
50148
50148
|
P(!0);
|
|
50149
50149
|
} else G.onload = function() {
|
|
50150
50150
|
G.getAttribute("height"), G.getAttribute("width");
|
|
50151
|
-
var
|
|
50152
|
-
if (
|
|
50151
|
+
var Me = G.offsetHeight, Pe = G.offsetWidth;
|
|
50152
|
+
if (Me < 90 || Pe > parseFloat(tt("".concat(70, "vw"), e))) {
|
|
50153
50153
|
var nt = document.querySelectorAll("#question-".concat(T.id, "-img")), Ye = document.querySelector("#essay-question-content-".concat(T.id));
|
|
50154
50154
|
if (nt && Ye) {
|
|
50155
50155
|
var Ke = Array.from(nt), je = !1, V = "", j = Ye.childNodes[Ye.childNodes.length - 1];
|
|
@@ -50200,12 +50200,12 @@ var dT = _1(function r(e, t, i, Q) {
|
|
|
50200
50200
|
}), (W = W.filter(function(Pe) {
|
|
50201
50201
|
return Pe.innerHTML !== " " && Pe.innerHTML !== "";
|
|
50202
50202
|
})).length === 1) {
|
|
50203
|
-
var re = W[0].innerHTML,
|
|
50204
|
-
if (le && le.length === 1 &&
|
|
50205
|
-
var ve = document.createElement("p"), he = "", me = "", Ae =
|
|
50206
|
-
(
|
|
50207
|
-
var
|
|
50208
|
-
|
|
50203
|
+
var re = W[0].innerHTML, Te = W[0].style, le = re.match(/<img[^>]*>/g), pe = re.replace(/\s+/g, "").trim(), Qe = /^<img[^>]*>$/.test(pe);
|
|
50204
|
+
if (le && le.length === 1 && Qe) {
|
|
50205
|
+
var ve = document.createElement("p"), he = "", me = "", Ae = Te.match(/text-align:\s*([^;]+)/), Re = Ae ? Ae[1].trim() : "left";
|
|
50206
|
+
(Re = d[Re] || Re) === "right" ? (he = n.questionImgRightAct, me = n.questionRightImg) : Re === "left" && (he = n.questionImgLeftAct, me = n.questionLeftImg), ve.id = "question-".concat(T.id, "-img"), ve.style.cssText = r.showAnswer ? he : me, ve.innerHTML = re;
|
|
50207
|
+
var Me = document.querySelector(".jiaoyan-cloud-question-essay-answer-content");
|
|
50208
|
+
Me && ["left", "right"].includes(Re) && G && (Me.insertBefore(ve, Me.firstChild), Y.remove());
|
|
50209
50209
|
}
|
|
50210
50210
|
}
|
|
50211
50211
|
}
|
|
@@ -50219,8 +50219,8 @@ var dT = _1(function r(e, t, i, Q) {
|
|
|
50219
50219
|
}).then(function() {
|
|
50220
50220
|
var P = document.getElementById("essay-question-content-".concat(O.id)), G = P == null ? void 0 : P.querySelector(".jiaoyanyun-table-wrapper"), Y = G == null ? void 0 : G.previousSibling;
|
|
50221
50221
|
if (Y) {
|
|
50222
|
-
var q, W, re,
|
|
50223
|
-
pe.length > 3 && (
|
|
50222
|
+
var q, W, re, Te, le, pe = Array.from(Y.childNodes), Qe = !1;
|
|
50223
|
+
pe.length > 3 && (Qe = /^\(\d+\)$/.test((q = pe[0]) === null || q === void 0 ? void 0 : q.innerHTML) && ((W = pe[1]) === null || W === void 0 ? void 0 : W.innerHTML) === "0" && ((re = pe[1]) === null || re === void 0 ? void 0 : re.style.visibility) === "hidden" && ((Te = pe[2]) === null || Te === void 0 ? void 0 : Te.innerHTML) === "0" && ((le = pe[2]) === null || le === void 0 ? void 0 : le.style.visibility) === "hidden"), Qe && (G.style.paddingLeft = "".concat(parseFloat(tt("7vw", e)), "px"), G.style.width = "calc(100% - ".concat(parseFloat(tt("7vw", e)), "px)"));
|
|
50224
50224
|
}
|
|
50225
50225
|
}).then(function() {
|
|
50226
50226
|
var P = document.getElementById("essay-question-content-".concat(O.id)), G = P == null ? void 0 : P.firstChild;
|
|
@@ -50376,15 +50376,15 @@ var dT = _1(function r(e, t, i, Q) {
|
|
|
50376
50376
|
}(P);
|
|
50377
50377
|
var q = P.match(/<p[^>]*><img[^>]*>(\s*|<span[^>]*>\s*<\/span>)\s*<\/p>$/g), W = P.match(/<p[^>]*>.*<img[^>]*>(\s*|<span[^>]*>\s*<\/span>)\s*<\/p>$/g);
|
|
50378
50378
|
if (q && q.length === 1 && !y) {
|
|
50379
|
-
var re = P.indexOf(q[0]),
|
|
50380
|
-
le.includes("<p") && ((L = d[L = pe ? pe[1].trim() : "left"] || L) === "left" || L === "right") && (Y = (Y = le).replace(/<p[^>]*>/g, "").replace(/<\/p>/g, ""), P = P.replace(
|
|
50379
|
+
var re = P.indexOf(q[0]), Te = P.slice(re, re + q[0].length), le = Te, pe = (le = /<img[^>]*class\s*=/.test(le) ? le.replace(/class="([^"]*)"/, 'class="$1 custome-img-pos-'.concat(G, '"')) : le.replace(/<img/, '<img class="custome-img-pos-'.concat(G, '"'))).match(/<p[^>]*style="[^"]*text-align:\s*([^;'"\s]+)[^"]*"/);
|
|
50380
|
+
le.includes("<p") && ((L = d[L = pe ? pe[1].trim() : "left"] || L) === "left" || L === "right") && (Y = (Y = le).replace(/<p[^>]*>/g, "").replace(/<\/p>/g, ""), P = P.replace(Te, ""));
|
|
50381
50381
|
} else if (q && q.length === 1 || !W || W.length !== 1 || y) {
|
|
50382
|
-
var
|
|
50383
|
-
if (
|
|
50384
|
-
var he =
|
|
50382
|
+
var Qe = P.match(/<p[^>]*>[^]*?<\/p>/g), ve = P.endsWith("</p>");
|
|
50383
|
+
if (Qe && Qe.length > 1 && !y && ve) {
|
|
50384
|
+
var he = Qe[Qe.length - 1], me = he.match(/<p[^>]*><img[^>]*>(\s*|<span[^>]*>\s*<\/span>)\s*<\/p>$/g);
|
|
50385
50385
|
if (me && me.length === 1) {
|
|
50386
|
-
var Ae = P.lastIndexOf(me[0]),
|
|
50387
|
-
|
|
50386
|
+
var Ae = P.lastIndexOf(me[0]), Re = P.slice(Ae, Ae + me[0].length), Me = Re, Pe = (Me = /<img[^>]*class\s*=/.test(Me) ? Me.replace(/class="([^"]*)"/, 'class="$1 custome-img-pos-'.concat(G, '"')) : Me.replace(/<img/, '<img class="custome-img-pos-'.concat(G, '"'))).match(/<p[^>]*style="[^"]*text-align:\s*([^;'"\s]+)[^"]*"/);
|
|
50387
|
+
Me.includes("<p") && ((L = d[L = Pe ? Pe[1].trim() : "left"] || L) === "left" || L === "right") && (Y = (Y = Me).replace(/<p[^>]*>/g, "").replace(/<\/p>/g, ""), P = P.replace(Re, ""));
|
|
50388
50388
|
}
|
|
50389
50389
|
}
|
|
50390
50390
|
} else {
|
|
@@ -51110,15 +51110,15 @@ function j7(r, e, t, i, Q, p, T, d, c) {
|
|
|
51110
51110
|
if (!t) return;
|
|
51111
51111
|
var E, _ = [], g = h;
|
|
51112
51112
|
if (g = g.map(function(Z) {
|
|
51113
|
-
var
|
|
51113
|
+
var ce = null, ee = i[Z.imgIndex == 0 ? 0 : Z.imgIndex || l], J = 0, ue = 0;
|
|
51114
51114
|
if (ee && t) {
|
|
51115
51115
|
t.setLineDash([6, 4]);
|
|
51116
|
-
var
|
|
51117
|
-
J =
|
|
51116
|
+
var se = ee.getBoundingClientRect();
|
|
51117
|
+
J = se.top, ue = se.left;
|
|
51118
51118
|
}
|
|
51119
|
-
return
|
|
51120
|
-
return { x:
|
|
51121
|
-
}) : { x:
|
|
51119
|
+
return ce = typeof Z.coordinates == "string" ? Z.coordinates : Array.isArray(Z.coordinates) ? Z.coordinates.map(function(De) {
|
|
51120
|
+
return { x: ue + De.x, y: J + De.y };
|
|
51121
|
+
}) : { x: ue + Z.coordinates.center[0].x, y: J + Z.coordinates.center[0].y, radium: Z.coordinates.radium }, y1(y1({}, Z), {}, { coordinates: ce });
|
|
51122
51122
|
}), l !== void 0) {
|
|
51123
51123
|
var v = i[l];
|
|
51124
51124
|
if (v && t) {
|
|
@@ -51134,8 +51134,8 @@ function j7(r, e, t, i, Q, p, T, d, c) {
|
|
|
51134
51134
|
for (var A = 1; A < _.length; A++) t.lineTo(_[A].x, _[A].y);
|
|
51135
51135
|
t.closePath(), t.stroke();
|
|
51136
51136
|
var L = (((E = c.new_label) === null || E === void 0 ? void 0 : E.split(",")) || []).every(function(Z) {
|
|
51137
|
-
return Z = Z.trim(), $h.some(function(
|
|
51138
|
-
return
|
|
51137
|
+
return Z = Z.trim(), $h.some(function(ce) {
|
|
51138
|
+
return ce.includes(Z);
|
|
51139
51139
|
});
|
|
51140
51140
|
});
|
|
51141
51141
|
if (T && (!L || L && o !== "region_plot" && o !== "region_plot_local")) {
|
|
@@ -51161,10 +51161,10 @@ function j7(r, e, t, i, Q, p, T, d, c) {
|
|
|
51161
51161
|
G.width, G.height, w = u.map(function(Z) {
|
|
51162
51162
|
return { x: q + Z.x, y: Y + Z.y };
|
|
51163
51163
|
}), k = k.map(function(Z) {
|
|
51164
|
-
var
|
|
51165
|
-
return
|
|
51164
|
+
var ce = null;
|
|
51165
|
+
return ce = typeof Z.coordinates == "string" ? Z.coordinates : Array.isArray(Z.coordinates) ? Z.coordinates.map(function(ee) {
|
|
51166
51166
|
return { x: q + ee.x, y: Y + ee.y };
|
|
51167
|
-
}) : { x: q + Z.coordinates.center[0].x, y: Y + Z.coordinates.center[0].y, radium: Z.coordinates.radium }, y1(y1({}, Z), {}, { coordinates:
|
|
51167
|
+
}) : { x: q + Z.coordinates.center[0].x, y: Y + Z.coordinates.center[0].y, radium: Z.coordinates.radium }, y1(y1({}, Z), {}, { coordinates: ce });
|
|
51168
51168
|
});
|
|
51169
51169
|
} else if (w = u, d === "text_image") return;
|
|
51170
51170
|
if (w.length > 0) {
|
|
@@ -51179,8 +51179,8 @@ function j7(r, e, t, i, Q, p, T, d, c) {
|
|
|
51179
51179
|
return Z.answer_text;
|
|
51180
51180
|
}).join("");
|
|
51181
51181
|
if (re) {
|
|
51182
|
-
var
|
|
51183
|
-
|
|
51182
|
+
var Te = document.createElement("div");
|
|
51183
|
+
Te.style.width = "".concat(U - F, "px"), Te.style.height = "".concat(H - I, "px"), Te.style.position = "absolute", Te.style.top = "".concat(w[0].y, "px"), Te.style.left = "".concat(w[0].x, "px"), Te.style.display = "flex", Te.style.alignItems = "center", Te.style.justifyContent = "center", Te.innerHTML = M2(re), r.appendChild(Te);
|
|
51184
51184
|
}
|
|
51185
51185
|
U7(k, t, r, T);
|
|
51186
51186
|
}
|
|
@@ -51189,20 +51189,20 @@ function j7(r, e, t, i, Q, p, T, d, c) {
|
|
|
51189
51189
|
var le = i[l];
|
|
51190
51190
|
if (le && t) {
|
|
51191
51191
|
t.setLineDash([6, 4]);
|
|
51192
|
-
var pe,
|
|
51193
|
-
|
|
51192
|
+
var pe, Qe = le.getBoundingClientRect(), ve = Qe.top, he = Qe.left;
|
|
51193
|
+
Qe.width, Qe.height;
|
|
51194
51194
|
var me = u.map(function(Z) {
|
|
51195
51195
|
return { x: he + Z.x, y: ve + Z.y };
|
|
51196
51196
|
});
|
|
51197
51197
|
if (pe = (h || []).map(function(Z) {
|
|
51198
|
-
return y1(y1({}, Z), {}, { coordinates: (Z.coordinates || []).map(function(
|
|
51199
|
-
return { x: he +
|
|
51198
|
+
return y1(y1({}, Z), {}, { coordinates: (Z.coordinates || []).map(function(ce) {
|
|
51199
|
+
return { x: he + ce.x, y: ve + ce.y };
|
|
51200
51200
|
}) });
|
|
51201
51201
|
}), me.length > 0) {
|
|
51202
51202
|
if (me.length == 4) {
|
|
51203
|
-
(function(Z,
|
|
51203
|
+
(function(Z, ce) {
|
|
51204
51204
|
if (Z) {
|
|
51205
|
-
var ee, J = (ee =
|
|
51205
|
+
var ee, J = (ee = ce, { maxX: Math.max.apply(Math, Yt(ee.map(function(Mt) {
|
|
51206
51206
|
return Mt.x;
|
|
51207
51207
|
}))), maxY: Math.max.apply(Math, Yt(ee.map(function(Mt) {
|
|
51208
51208
|
return Mt.y;
|
|
@@ -51210,11 +51210,11 @@ function j7(r, e, t, i, Q, p, T, d, c) {
|
|
|
51210
51210
|
return Mt.x;
|
|
51211
51211
|
}))), minY: Math.min.apply(Math, Yt(ee.map(function(Mt) {
|
|
51212
51212
|
return Mt.y;
|
|
51213
|
-
}))) }),
|
|
51213
|
+
}))) }), ue = J.maxX, se = J.maxY, De = J.minX, Le = J.minY, Ie = { x: (ue + De) / 2, y: (se + Le) / 2 }, gt = Math.abs(ue - De) / 2, Je = Math.abs(se - Le) / 2;
|
|
51214
51214
|
Z.save(), Z.beginPath(), Z.setLineDash([6, 4]), Z.ellipse(Ie.x, Ie.y, gt, Je, 0, -Math.PI / 2, 0, !1), Z.ellipse(Ie.x, Ie.y, gt, Je, 0, 0, Math.PI / 2, !1), Z.ellipse(Ie.x, Ie.y, gt, Je, 0, Math.PI / 2, Math.PI, !1), Z.ellipse(Ie.x, Ie.y, gt, Je, 0, Math.PI, Math.PI / 2, !1), Z.stroke(), Z.setLineDash([]), Z.restore();
|
|
51215
51215
|
}
|
|
51216
51216
|
})(t, me);
|
|
51217
|
-
var Ae = e3(me),
|
|
51217
|
+
var Ae = e3(me), Re = Ae.maxX, Me = Ae.maxY, Pe = Ae.minX, nt = Ae.minY;
|
|
51218
51218
|
if (T) {
|
|
51219
51219
|
var Ye = (pe || []).filter(function(Z) {
|
|
51220
51220
|
return Z.type == "文本答案";
|
|
@@ -51223,7 +51223,7 @@ function j7(r, e, t, i, Q, p, T, d, c) {
|
|
|
51223
51223
|
}).join("");
|
|
51224
51224
|
if (Ye) {
|
|
51225
51225
|
var Ke = document.createElement("div");
|
|
51226
|
-
Ke.style.position = "absolute", Ke.style.width = "".concat(
|
|
51226
|
+
Ke.style.position = "absolute", Ke.style.width = "".concat(Re - Pe, "px"), Ke.style.height = "".concat(Me - nt, "px"), Ke.style.top = "".concat(nt, "px"), Ke.style.left = "".concat(Pe, "px"), Ke.style.display = "flex", Ke.style.alignItems = "center", Ke.style.justifyContent = "center", Ke.innerHTML = M2(Ye), r.appendChild(Ke);
|
|
51227
51227
|
}
|
|
51228
51228
|
}
|
|
51229
51229
|
} else if (me.length == 6)
|
|
@@ -51268,26 +51268,26 @@ function j7(r, e, t, i, Q, p, T, d, c) {
|
|
|
51268
51268
|
var t1 = u.map(function(Z) {
|
|
51269
51269
|
return { x: h1 + Z.x, y: ht + Z.y };
|
|
51270
51270
|
}), Ce = (h || []).map(function(Z) {
|
|
51271
|
-
return y1(y1({}, Z), {}, { coordinates: Z.coordinates.map(function(
|
|
51272
|
-
return { x: h1 +
|
|
51271
|
+
return y1(y1({}, Z), {}, { coordinates: Z.coordinates.map(function(ce) {
|
|
51272
|
+
return { x: h1 + ce.x, y: ht + ce.y };
|
|
51273
51273
|
}) });
|
|
51274
51274
|
});
|
|
51275
51275
|
if (t1.length > 0) {
|
|
51276
|
-
var
|
|
51277
|
-
if (!
|
|
51276
|
+
var Ne = function(Z, ce) {
|
|
51277
|
+
if (!ce || ce.length !== 3) {
|
|
51278
51278
|
console.warn("绘制扇形需要3个点坐标");
|
|
51279
51279
|
return;
|
|
51280
51280
|
}
|
|
51281
|
-
return function(ee, J,
|
|
51281
|
+
return function(ee, J, ue, se) {
|
|
51282
51282
|
if (ee) {
|
|
51283
|
-
var
|
|
51284
|
-
ee.save(), ee.beginPath(), ee.moveTo(J.x, J.y), ee.setLineDash([6, 4]), ee.arc(J.x, J.y,
|
|
51283
|
+
var De = Math.sqrt(Math.pow(ue.x - J.x, 2) + Math.pow(ue.y - J.y, 2)), Le = Math.atan2(ue.y - J.y, ue.x - J.x), Ie = Math.atan2(se.y - J.y, se.x - J.x);
|
|
51284
|
+
ee.save(), ee.beginPath(), ee.moveTo(J.x, J.y), ee.setLineDash([6, 4]), ee.arc(J.x, J.y, De, Le, Ie, !1), ee.closePath(), ee.stroke(), ee.setLineDash([]), ee.restore();
|
|
51285
51285
|
var gt = Le + (Ie - Le) / 2;
|
|
51286
51286
|
Ie < Le && (gt = Le + (Ie + 2 * Math.PI - Le) / 2) > Math.PI && (gt -= 2 * Math.PI);
|
|
51287
|
-
var Je = { x: J.x +
|
|
51287
|
+
var Je = { x: J.x + De * Math.cos(gt), y: J.y + De * Math.sin(gt) };
|
|
51288
51288
|
return { x: (Je.x + J.x) / 2, y: (Je.y + J.y) / 2 };
|
|
51289
51289
|
}
|
|
51290
|
-
}(Z,
|
|
51290
|
+
}(Z, ce[0], ce[1], ce[2]);
|
|
51291
51291
|
}(t, t1);
|
|
51292
51292
|
if (T) {
|
|
51293
51293
|
var ne = (Ce || []).filter(function(Z) {
|
|
@@ -51297,7 +51297,7 @@ function j7(r, e, t, i, Q, p, T, d, c) {
|
|
|
51297
51297
|
}).join("");
|
|
51298
51298
|
if (ne) {
|
|
51299
51299
|
var X = document.createElement("div");
|
|
51300
|
-
X.style.position = "absolute", X.style.top = "".concat(
|
|
51300
|
+
X.style.position = "absolute", X.style.top = "".concat(Ne.y, "px"), X.style.left = "".concat(Ne.x, "px"), X.style.display = "flex", X.style.alignItems = "center", X.style.justifyContent = "center", X.style.transform = "translate(-50%, -50%)", X.innerHTML = M2(ne), r.appendChild(X);
|
|
51301
51301
|
}
|
|
51302
51302
|
}
|
|
51303
51303
|
}
|
|
@@ -51789,9 +51789,9 @@ function Hi() {
|
|
|
51789
51789
|
var I = B.delegate;
|
|
51790
51790
|
if (I) {
|
|
51791
51791
|
var P = function Y(q, W) {
|
|
51792
|
-
var re = W.method,
|
|
51793
|
-
if (
|
|
51794
|
-
var le = s(
|
|
51792
|
+
var re = W.method, Te = q.iterator[re];
|
|
51793
|
+
if (Te === r) return W.delegate = null, re === "throw" && q.iterator.return && (W.method = "return", W.arg = r, Y(q, W), W.method === "throw") || re !== "return" && (W.method = "throw", W.arg = TypeError("The iterator does not provide a '" + re + "' method")), m;
|
|
51794
|
+
var le = s(Te, q.iterator, W.arg);
|
|
51795
51795
|
if (le.type === "throw") return W.method = "throw", W.arg = le.arg, W.delegate = null, m;
|
|
51796
51796
|
var pe = le.arg;
|
|
51797
51797
|
return pe ? pe.done ? (W[q.resultName] = pe.value, W.next = q.nextLoc, W.method !== "return" && (W.method = "next", W.arg = r), W.delegate = null, m) : pe : (W.method = "throw", W.arg = TypeError("iterator result is not an object"), W.delegate = null, m);
|
|
@@ -55531,7 +55531,7 @@ const R6 = {
|
|
|
55531
55531
|
}, hG = () => null;
|
|
55532
55532
|
let J3 = null;
|
|
55533
55533
|
const O9 = (r) => {
|
|
55534
|
-
const t = JSON.parse('{"busKey":"biz_question_info","code":0,"data":{"content":"Darren bought 140 basketballs for the school teams.He gave $$ \\frac { 4 } { 7 } $$ of the basketballs to the boys team and $$ \\frac { 7 } { 1 2 } $$ of the remainder to the girlsteam The rest of the balls were then kept in the storeroom for P. E. classes.How many basketballs were kept for P.E. classes?Answer: basketballs.","envNumber":0,"imagePath":"https://kjdsfz-cdn.thethinkacademy.com/thinksnap/20251121/1763733021540nxcBr7W2vO.jpg","ocrText":"Darren bought 140 basketballs for the school teams.He gave $$ \\frac { 4 } { 7 } $$ of the basketballs to the boys team and $$ \\frac { 7 } { 1 2 } $$ of the remainder to the girlsteam The rest of the balls were then kept in the storeroom for P. E. classes.How many basketballs were kept for P.E. classes?Answer: basketballs.","questionId":"1","sessionId":"","similarity":0.0,"talId":"","pkgName": "
|
|
55534
|
+
const t = JSON.parse('{"busKey":"biz_question_info","code":0,"data":{"content":"Darren bought 140 basketballs for the school teams.He gave $$ \\frac { 4 } { 7 } $$ of the basketballs to the boys team and $$ \\frac { 7 } { 1 2 } $$ of the remainder to the girlsteam The rest of the balls were then kept in the storeroom for P. E. classes.How many basketballs were kept for P.E. classes?Answer: basketballs.","envNumber":0,"imagePath":"https://kjdsfz-cdn.thethinkacademy.com/thinksnap/20251121/1763733021540nxcBr7W2vO.jpg","ocrText":"Darren bought 140 basketballs for the school teams.He gave $$ \\frac { 4 } { 7 } $$ of the basketballs to the boys team and $$ \\frac { 7 } { 1 2 } $$ of the remainder to the girlsteam The rest of the balls were then kept in the storeroom for P. E. classes.How many basketballs were kept for P.E. classes?Answer: basketballs.","questionId":"1","sessionId":"","similarity":0.0,"talId":"","pkgName": "SGpaisou"},"message":""}');
|
|
55535
55535
|
r(t.data), J3 = (i) => {
|
|
55536
55536
|
console.log("[Bridge] ✅ 收到 sendMsgCommon 消息:", i);
|
|
55537
55537
|
const Q = JSON.parse(i);
|
|
@@ -55720,7 +55720,7 @@ const $G = (r) => {
|
|
|
55720
55720
|
}))(`axios@${Math.random()}`, []) : (t) => setTimeout(t))(
|
|
55721
55721
|
typeof setImmediate == "function",
|
|
55722
55722
|
I1(fr.postMessage)
|
|
55723
|
-
), rU = typeof queueMicrotask < "u" ? queueMicrotask.bind(fr) : typeof process < "u" && process.nextTick || Zd, nU = (r) => r != null && I1(r[w6]),
|
|
55723
|
+
), rU = typeof queueMicrotask < "u" ? queueMicrotask.bind(fr) : typeof process < "u" && process.nextTick || Zd, nU = (r) => r != null && I1(r[w6]), ie = {
|
|
55724
55724
|
isArray: x3,
|
|
55725
55725
|
isArrayBuffer: jd,
|
|
55726
55726
|
isBuffer: Dn,
|
|
@@ -55783,7 +55783,7 @@ const $G = (r) => {
|
|
|
55783
55783
|
function ot(r, e, t, i, Q) {
|
|
55784
55784
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = r, this.name = "AxiosError", e && (this.code = e), t && (this.config = t), i && (this.request = i), Q && (this.response = Q, this.status = Q.status ? Q.status : null);
|
|
55785
55785
|
}
|
|
55786
|
-
|
|
55786
|
+
ie.inherits(ot, Error, {
|
|
55787
55787
|
toJSON: function() {
|
|
55788
55788
|
return {
|
|
55789
55789
|
// Standard
|
|
@@ -55798,7 +55798,7 @@ oe.inherits(ot, Error, {
|
|
|
55798
55798
|
columnNumber: this.columnNumber,
|
|
55799
55799
|
stack: this.stack,
|
|
55800
55800
|
// Axios
|
|
55801
|
-
config:
|
|
55801
|
+
config: ie.toJSONObject(this.config),
|
|
55802
55802
|
code: this.code,
|
|
55803
55803
|
status: this.status
|
|
55804
55804
|
};
|
|
@@ -55826,7 +55826,7 @@ Object.defineProperties(ot, Xd);
|
|
|
55826
55826
|
Object.defineProperty(Kd, "isAxiosError", { value: !0 });
|
|
55827
55827
|
ot.from = (r, e, t, i, Q, p) => {
|
|
55828
55828
|
const T = Object.create(Kd);
|
|
55829
|
-
|
|
55829
|
+
ie.toFlatObject(r, T, function(a) {
|
|
55830
55830
|
return a !== Error.prototype;
|
|
55831
55831
|
}, (n) => n !== "isAxiosError");
|
|
55832
55832
|
const d = r && r.message ? r.message : "Error", c = e == null && r ? r.code : e;
|
|
@@ -55834,10 +55834,10 @@ ot.from = (r, e, t, i, Q, p) => {
|
|
|
55834
55834
|
};
|
|
55835
55835
|
const aU = null;
|
|
55836
55836
|
function co(r) {
|
|
55837
|
-
return
|
|
55837
|
+
return ie.isPlainObject(r) || ie.isArray(r);
|
|
55838
55838
|
}
|
|
55839
55839
|
function Jd(r) {
|
|
55840
|
-
return
|
|
55840
|
+
return ie.endsWith(r, "[]") ? r.slice(0, -2) : r;
|
|
55841
55841
|
}
|
|
55842
55842
|
function R9(r, e, t) {
|
|
55843
55843
|
return r ? r.concat(e).map(function(Q, p) {
|
|
@@ -55845,42 +55845,42 @@ function R9(r, e, t) {
|
|
|
55845
55845
|
}).join(t ? "." : "") : e;
|
|
55846
55846
|
}
|
|
55847
55847
|
function iU(r) {
|
|
55848
|
-
return
|
|
55848
|
+
return ie.isArray(r) && !r.some(co);
|
|
55849
55849
|
}
|
|
55850
|
-
const oU =
|
|
55850
|
+
const oU = ie.toFlatObject(ie, {}, null, function(e) {
|
|
55851
55851
|
return /^is[A-Z]/.test(e);
|
|
55852
55852
|
});
|
|
55853
55853
|
function F6(r, e, t) {
|
|
55854
|
-
if (!
|
|
55854
|
+
if (!ie.isObject(r))
|
|
55855
55855
|
throw new TypeError("target must be an object");
|
|
55856
|
-
e = e || new FormData(), t =
|
|
55856
|
+
e = e || new FormData(), t = ie.toFlatObject(t, {
|
|
55857
55857
|
metaTokens: !0,
|
|
55858
55858
|
dots: !1,
|
|
55859
55859
|
indexes: !1
|
|
55860
55860
|
}, !1, function(m, f) {
|
|
55861
|
-
return !
|
|
55861
|
+
return !ie.isUndefined(f[m]);
|
|
55862
55862
|
});
|
|
55863
|
-
const i = t.metaTokens, Q = t.visitor || a, p = t.dots, T = t.indexes, c = (t.Blob || typeof Blob < "u" && Blob) &&
|
|
55864
|
-
if (!
|
|
55863
|
+
const i = t.metaTokens, Q = t.visitor || a, p = t.dots, T = t.indexes, c = (t.Blob || typeof Blob < "u" && Blob) && ie.isSpecCompliantForm(e);
|
|
55864
|
+
if (!ie.isFunction(Q))
|
|
55865
55865
|
throw new TypeError("visitor must be a function");
|
|
55866
55866
|
function n(l) {
|
|
55867
55867
|
if (l === null) return "";
|
|
55868
|
-
if (
|
|
55868
|
+
if (ie.isDate(l))
|
|
55869
55869
|
return l.toISOString();
|
|
55870
|
-
if (
|
|
55870
|
+
if (ie.isBoolean(l))
|
|
55871
55871
|
return l.toString();
|
|
55872
|
-
if (!c &&
|
|
55872
|
+
if (!c && ie.isBlob(l))
|
|
55873
55873
|
throw new ot("Blob is not supported. Use a Buffer instead.");
|
|
55874
|
-
return
|
|
55874
|
+
return ie.isArrayBuffer(l) || ie.isTypedArray(l) ? c && typeof Blob == "function" ? new Blob([l]) : Buffer.from(l) : l;
|
|
55875
55875
|
}
|
|
55876
55876
|
function a(l, m, f) {
|
|
55877
55877
|
let h = l;
|
|
55878
55878
|
if (l && !f && typeof l == "object") {
|
|
55879
|
-
if (
|
|
55879
|
+
if (ie.endsWith(m, "{}"))
|
|
55880
55880
|
m = i ? m : m.slice(0, -2), l = JSON.stringify(l);
|
|
55881
|
-
else if (
|
|
55881
|
+
else if (ie.isArray(l) && iU(l) || (ie.isFileList(l) || ie.endsWith(m, "[]")) && (h = ie.toArray(l)))
|
|
55882
55882
|
return m = Jd(m), h.forEach(function(_, g) {
|
|
55883
|
-
!(
|
|
55883
|
+
!(ie.isUndefined(_) || _ === null) && e.append(
|
|
55884
55884
|
// eslint-disable-next-line no-nested-ternary
|
|
55885
55885
|
T === !0 ? R9([m], g, p) : T === null ? m : m + "[]",
|
|
55886
55886
|
n(_)
|
|
@@ -55895,21 +55895,21 @@ function F6(r, e, t) {
|
|
|
55895
55895
|
isVisitable: co
|
|
55896
55896
|
});
|
|
55897
55897
|
function u(l, m) {
|
|
55898
|
-
if (!
|
|
55898
|
+
if (!ie.isUndefined(l)) {
|
|
55899
55899
|
if (s.indexOf(l) !== -1)
|
|
55900
55900
|
throw Error("Circular reference detected in " + m.join("."));
|
|
55901
|
-
s.push(l),
|
|
55902
|
-
(!(
|
|
55901
|
+
s.push(l), ie.forEach(l, function(h, E) {
|
|
55902
|
+
(!(ie.isUndefined(h) || h === null) && Q.call(
|
|
55903
55903
|
e,
|
|
55904
55904
|
h,
|
|
55905
|
-
|
|
55905
|
+
ie.isString(E) ? E.trim() : E,
|
|
55906
55906
|
m,
|
|
55907
55907
|
o
|
|
55908
55908
|
)) === !0 && u(h, m ? m.concat(E) : [E]);
|
|
55909
55909
|
}), s.pop();
|
|
55910
55910
|
}
|
|
55911
55911
|
}
|
|
55912
|
-
if (!
|
|
55912
|
+
if (!ie.isObject(r))
|
|
55913
55913
|
throw new TypeError("data must be an object");
|
|
55914
55914
|
return u(r), e;
|
|
55915
55915
|
}
|
|
@@ -55949,12 +55949,12 @@ function ep(r, e, t) {
|
|
|
55949
55949
|
if (!e)
|
|
55950
55950
|
return r;
|
|
55951
55951
|
const i = t && t.encode || sU;
|
|
55952
|
-
|
|
55952
|
+
ie.isFunction(t) && (t = {
|
|
55953
55953
|
serialize: t
|
|
55954
55954
|
});
|
|
55955
55955
|
const Q = t && t.serialize;
|
|
55956
55956
|
let p;
|
|
55957
|
-
if (Q ? p = Q(e, t) : p =
|
|
55957
|
+
if (Q ? p = Q(e, t) : p = ie.isURLSearchParams(e) ? e.toString() : new y0(e, t).toString(i), p) {
|
|
55958
55958
|
const T = r.indexOf("#");
|
|
55959
55959
|
T !== -1 && (r = r.slice(0, T)), r += (r.indexOf("?") === -1 ? "?" : "&") + p;
|
|
55960
55960
|
}
|
|
@@ -56009,7 +56009,7 @@ class I9 {
|
|
|
56009
56009
|
* @returns {void}
|
|
56010
56010
|
*/
|
|
56011
56011
|
forEach(e) {
|
|
56012
|
-
|
|
56012
|
+
ie.forEach(this.handlers, function(i) {
|
|
56013
56013
|
i !== null && e(i);
|
|
56014
56014
|
});
|
|
56015
56015
|
}
|
|
@@ -56041,13 +56041,13 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", pU
|
|
|
56041
56041
|
function mU(r, e) {
|
|
56042
56042
|
return F6(r, new S1.classes.URLSearchParams(), {
|
|
56043
56043
|
visitor: function(t, i, Q, p) {
|
|
56044
|
-
return S1.isNode &&
|
|
56044
|
+
return S1.isNode && ie.isBuffer(t) ? (this.append(i, t.toString("base64")), !1) : p.defaultVisitor.apply(this, arguments);
|
|
56045
56045
|
},
|
|
56046
56046
|
...e
|
|
56047
56047
|
});
|
|
56048
56048
|
}
|
|
56049
56049
|
function hU(r) {
|
|
56050
|
-
return
|
|
56050
|
+
return ie.matchAll(/\w+|\[(\w*)]/g, r).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
56051
56051
|
}
|
|
56052
56052
|
function gU(r) {
|
|
56053
56053
|
const e = {}, t = Object.keys(r);
|
|
@@ -56063,20 +56063,20 @@ function rp(r) {
|
|
|
56063
56063
|
let T = t[p++];
|
|
56064
56064
|
if (T === "__proto__") return !0;
|
|
56065
56065
|
const d = Number.isFinite(+T), c = p >= t.length;
|
|
56066
|
-
return T = !T &&
|
|
56066
|
+
return T = !T && ie.isArray(Q) ? Q.length : T, c ? (ie.hasOwnProp(Q, T) ? Q[T] = [Q[T], i] : Q[T] = i, !d) : ((!Q[T] || !ie.isObject(Q[T])) && (Q[T] = []), e(t, i, Q[T], p) && ie.isArray(Q[T]) && (Q[T] = gU(Q[T])), !d);
|
|
56067
56067
|
}
|
|
56068
|
-
if (
|
|
56068
|
+
if (ie.isFormData(r) && ie.isFunction(r.entries)) {
|
|
56069
56069
|
const t = {};
|
|
56070
|
-
return
|
|
56070
|
+
return ie.forEachEntry(r, (i, Q) => {
|
|
56071
56071
|
e(hU(i), Q, t, 0);
|
|
56072
56072
|
}), t;
|
|
56073
56073
|
}
|
|
56074
56074
|
return null;
|
|
56075
56075
|
}
|
|
56076
56076
|
function _U(r, e, t) {
|
|
56077
|
-
if (
|
|
56077
|
+
if (ie.isString(r))
|
|
56078
56078
|
try {
|
|
56079
|
-
return (e || JSON.parse)(r),
|
|
56079
|
+
return (e || JSON.parse)(r), ie.trim(r);
|
|
56080
56080
|
} catch (i) {
|
|
56081
56081
|
if (i.name !== "SyntaxError")
|
|
56082
56082
|
throw i;
|
|
@@ -56087,20 +56087,20 @@ const Mn = {
|
|
|
56087
56087
|
transitional: tp,
|
|
56088
56088
|
adapter: ["xhr", "http", "fetch"],
|
|
56089
56089
|
transformRequest: [function(e, t) {
|
|
56090
|
-
const i = t.getContentType() || "", Q = i.indexOf("application/json") > -1, p =
|
|
56091
|
-
if (p &&
|
|
56090
|
+
const i = t.getContentType() || "", Q = i.indexOf("application/json") > -1, p = ie.isObject(e);
|
|
56091
|
+
if (p && ie.isHTMLForm(e) && (e = new FormData(e)), ie.isFormData(e))
|
|
56092
56092
|
return Q ? JSON.stringify(rp(e)) : e;
|
|
56093
|
-
if (
|
|
56093
|
+
if (ie.isArrayBuffer(e) || ie.isBuffer(e) || ie.isStream(e) || ie.isFile(e) || ie.isBlob(e) || ie.isReadableStream(e))
|
|
56094
56094
|
return e;
|
|
56095
|
-
if (
|
|
56095
|
+
if (ie.isArrayBufferView(e))
|
|
56096
56096
|
return e.buffer;
|
|
56097
|
-
if (
|
|
56097
|
+
if (ie.isURLSearchParams(e))
|
|
56098
56098
|
return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
56099
56099
|
let d;
|
|
56100
56100
|
if (p) {
|
|
56101
56101
|
if (i.indexOf("application/x-www-form-urlencoded") > -1)
|
|
56102
56102
|
return mU(e, this.formSerializer).toString();
|
|
56103
|
-
if ((d =
|
|
56103
|
+
if ((d = ie.isFileList(e)) || i.indexOf("multipart/form-data") > -1) {
|
|
56104
56104
|
const c = this.env && this.env.FormData;
|
|
56105
56105
|
return F6(
|
|
56106
56106
|
d ? { "files[]": e } : e,
|
|
@@ -56113,9 +56113,9 @@ const Mn = {
|
|
|
56113
56113
|
}],
|
|
56114
56114
|
transformResponse: [function(e) {
|
|
56115
56115
|
const t = this.transitional || Mn.transitional, i = t && t.forcedJSONParsing, Q = this.responseType === "json";
|
|
56116
|
-
if (
|
|
56116
|
+
if (ie.isResponse(e) || ie.isReadableStream(e))
|
|
56117
56117
|
return e;
|
|
56118
|
-
if (e &&
|
|
56118
|
+
if (e && ie.isString(e) && (i && !this.responseType || Q)) {
|
|
56119
56119
|
const T = !(t && t.silentJSONParsing) && Q;
|
|
56120
56120
|
try {
|
|
56121
56121
|
return JSON.parse(e, this.parseReviver);
|
|
@@ -56149,10 +56149,10 @@ const Mn = {
|
|
|
56149
56149
|
}
|
|
56150
56150
|
}
|
|
56151
56151
|
};
|
|
56152
|
-
|
|
56152
|
+
ie.forEach(["delete", "get", "head", "post", "put", "patch"], (r) => {
|
|
56153
56153
|
Mn.headers[r] = {};
|
|
56154
56154
|
});
|
|
56155
|
-
const EU =
|
|
56155
|
+
const EU = ie.toObjectSet([
|
|
56156
56156
|
"age",
|
|
56157
56157
|
"authorization",
|
|
56158
56158
|
"content-length",
|
|
@@ -56182,7 +56182,7 @@ function V3(r) {
|
|
|
56182
56182
|
return r && String(r).trim().toLowerCase();
|
|
56183
56183
|
}
|
|
56184
56184
|
function I4(r) {
|
|
56185
|
-
return r === !1 || r == null ? r :
|
|
56185
|
+
return r === !1 || r == null ? r : ie.isArray(r) ? r.map(I4) : String(r);
|
|
56186
56186
|
}
|
|
56187
56187
|
function vU(r) {
|
|
56188
56188
|
const e = /* @__PURE__ */ Object.create(null), t = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -56193,12 +56193,12 @@ function vU(r) {
|
|
|
56193
56193
|
}
|
|
56194
56194
|
const yU = (r) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());
|
|
56195
56195
|
function Aa(r, e, t, i, Q) {
|
|
56196
|
-
if (
|
|
56196
|
+
if (ie.isFunction(i))
|
|
56197
56197
|
return i.call(this, e, t);
|
|
56198
|
-
if (Q && (e = t), !!
|
|
56199
|
-
if (
|
|
56198
|
+
if (Q && (e = t), !!ie.isString(e)) {
|
|
56199
|
+
if (ie.isString(i))
|
|
56200
56200
|
return e.indexOf(i) !== -1;
|
|
56201
|
-
if (
|
|
56201
|
+
if (ie.isRegExp(i))
|
|
56202
56202
|
return i.test(e);
|
|
56203
56203
|
}
|
|
56204
56204
|
}
|
|
@@ -56206,7 +56206,7 @@ function SU(r) {
|
|
|
56206
56206
|
return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, i) => t.toUpperCase() + i);
|
|
56207
56207
|
}
|
|
56208
56208
|
function AU(r, e) {
|
|
56209
|
-
const t =
|
|
56209
|
+
const t = ie.toCamelCase(" " + e);
|
|
56210
56210
|
["get", "set", "has"].forEach((i) => {
|
|
56211
56211
|
Object.defineProperty(r, i + t, {
|
|
56212
56212
|
value: function(Q, p, T) {
|
|
@@ -56226,20 +56226,20 @@ let H1 = class {
|
|
|
56226
56226
|
const a = V3(c);
|
|
56227
56227
|
if (!a)
|
|
56228
56228
|
throw new Error("header name must be a non-empty string");
|
|
56229
|
-
const s =
|
|
56229
|
+
const s = ie.findKey(Q, a);
|
|
56230
56230
|
(!s || Q[s] === void 0 || n === !0 || n === void 0 && Q[s] !== !1) && (Q[s || c] = I4(d));
|
|
56231
56231
|
}
|
|
56232
|
-
const T = (d, c) =>
|
|
56233
|
-
if (
|
|
56232
|
+
const T = (d, c) => ie.forEach(d, (n, a) => p(n, a, c));
|
|
56233
|
+
if (ie.isPlainObject(e) || e instanceof this.constructor)
|
|
56234
56234
|
T(e, t);
|
|
56235
|
-
else if (
|
|
56235
|
+
else if (ie.isString(e) && (e = e.trim()) && !yU(e))
|
|
56236
56236
|
T(bU(e), t);
|
|
56237
|
-
else if (
|
|
56237
|
+
else if (ie.isObject(e) && ie.isIterable(e)) {
|
|
56238
56238
|
let d = {}, c, n;
|
|
56239
56239
|
for (const a of e) {
|
|
56240
|
-
if (!
|
|
56240
|
+
if (!ie.isArray(a))
|
|
56241
56241
|
throw TypeError("Object iterator must return a key-value pair");
|
|
56242
|
-
d[n = a[0]] = (c = d[n]) ?
|
|
56242
|
+
d[n = a[0]] = (c = d[n]) ? ie.isArray(c) ? [...c, a[1]] : [c, a[1]] : a[1];
|
|
56243
56243
|
}
|
|
56244
56244
|
T(d, t);
|
|
56245
56245
|
} else
|
|
@@ -56248,16 +56248,16 @@ let H1 = class {
|
|
|
56248
56248
|
}
|
|
56249
56249
|
get(e, t) {
|
|
56250
56250
|
if (e = V3(e), e) {
|
|
56251
|
-
const i =
|
|
56251
|
+
const i = ie.findKey(this, e);
|
|
56252
56252
|
if (i) {
|
|
56253
56253
|
const Q = this[i];
|
|
56254
56254
|
if (!t)
|
|
56255
56255
|
return Q;
|
|
56256
56256
|
if (t === !0)
|
|
56257
56257
|
return vU(Q);
|
|
56258
|
-
if (
|
|
56258
|
+
if (ie.isFunction(t))
|
|
56259
56259
|
return t.call(this, Q, i);
|
|
56260
|
-
if (
|
|
56260
|
+
if (ie.isRegExp(t))
|
|
56261
56261
|
return t.exec(Q);
|
|
56262
56262
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
56263
56263
|
}
|
|
@@ -56265,7 +56265,7 @@ let H1 = class {
|
|
|
56265
56265
|
}
|
|
56266
56266
|
has(e, t) {
|
|
56267
56267
|
if (e = V3(e), e) {
|
|
56268
|
-
const i =
|
|
56268
|
+
const i = ie.findKey(this, e);
|
|
56269
56269
|
return !!(i && this[i] !== void 0 && (!t || Aa(this, this[i], i, t)));
|
|
56270
56270
|
}
|
|
56271
56271
|
return !1;
|
|
@@ -56275,11 +56275,11 @@ let H1 = class {
|
|
|
56275
56275
|
let Q = !1;
|
|
56276
56276
|
function p(T) {
|
|
56277
56277
|
if (T = V3(T), T) {
|
|
56278
|
-
const d =
|
|
56278
|
+
const d = ie.findKey(i, T);
|
|
56279
56279
|
d && (!t || Aa(i, i[d], d, t)) && (delete i[d], Q = !0);
|
|
56280
56280
|
}
|
|
56281
56281
|
}
|
|
56282
|
-
return
|
|
56282
|
+
return ie.isArray(e) ? e.forEach(p) : p(e), Q;
|
|
56283
56283
|
}
|
|
56284
56284
|
clear(e) {
|
|
56285
56285
|
const t = Object.keys(this);
|
|
@@ -56292,8 +56292,8 @@ let H1 = class {
|
|
|
56292
56292
|
}
|
|
56293
56293
|
normalize(e) {
|
|
56294
56294
|
const t = this, i = {};
|
|
56295
|
-
return
|
|
56296
|
-
const T =
|
|
56295
|
+
return ie.forEach(this, (Q, p) => {
|
|
56296
|
+
const T = ie.findKey(i, p);
|
|
56297
56297
|
if (T) {
|
|
56298
56298
|
t[T] = I4(Q), delete t[p];
|
|
56299
56299
|
return;
|
|
@@ -56307,8 +56307,8 @@ let H1 = class {
|
|
|
56307
56307
|
}
|
|
56308
56308
|
toJSON(e) {
|
|
56309
56309
|
const t = /* @__PURE__ */ Object.create(null);
|
|
56310
|
-
return
|
|
56311
|
-
i != null && i !== !1 && (t[Q] = e &&
|
|
56310
|
+
return ie.forEach(this, (i, Q) => {
|
|
56311
|
+
i != null && i !== !1 && (t[Q] = e && ie.isArray(i) ? i.join(", ") : i);
|
|
56312
56312
|
}), t;
|
|
56313
56313
|
}
|
|
56314
56314
|
[Symbol.iterator]() {
|
|
@@ -56339,11 +56339,11 @@ let H1 = class {
|
|
|
56339
56339
|
const d = V3(T);
|
|
56340
56340
|
i[d] || (AU(Q, T), i[d] = !0);
|
|
56341
56341
|
}
|
|
56342
|
-
return
|
|
56342
|
+
return ie.isArray(e) ? e.forEach(p) : p(e), this;
|
|
56343
56343
|
}
|
|
56344
56344
|
};
|
|
56345
56345
|
H1.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
56346
|
-
|
|
56346
|
+
ie.reduceDescriptors(H1.prototype, ({ value: r }, e) => {
|
|
56347
56347
|
let t = e[0].toUpperCase() + e.slice(1);
|
|
56348
56348
|
return {
|
|
56349
56349
|
get: () => r,
|
|
@@ -56352,11 +56352,11 @@ oe.reduceDescriptors(H1.prototype, ({ value: r }, e) => {
|
|
|
56352
56352
|
}
|
|
56353
56353
|
};
|
|
56354
56354
|
});
|
|
56355
|
-
|
|
56355
|
+
ie.freezeMethods(H1);
|
|
56356
56356
|
function La(r, e) {
|
|
56357
56357
|
const t = this || Mn, i = e || t, Q = H1.from(i.headers);
|
|
56358
56358
|
let p = i.data;
|
|
56359
|
-
return
|
|
56359
|
+
return ie.forEach(r, function(d) {
|
|
56360
56360
|
p = d.call(t, p, Q.normalize(), e ? e.status : void 0);
|
|
56361
56361
|
}), Q.normalize(), p;
|
|
56362
56362
|
}
|
|
@@ -56366,7 +56366,7 @@ function np(r) {
|
|
|
56366
56366
|
function O3(r, e, t) {
|
|
56367
56367
|
ot.call(this, r ?? "canceled", ot.ERR_CANCELED, e, t), this.name = "CanceledError";
|
|
56368
56368
|
}
|
|
56369
|
-
|
|
56369
|
+
ie.inherits(O3, ot, {
|
|
56370
56370
|
__CANCEL__: !0
|
|
56371
56371
|
});
|
|
56372
56372
|
function ap(r, e, t) {
|
|
@@ -56437,7 +56437,7 @@ const o6 = (r, e, t = 3) => {
|
|
|
56437
56437
|
total: r,
|
|
56438
56438
|
loaded: i
|
|
56439
56439
|
}), e[1]];
|
|
56440
|
-
}, k9 = (r) => (...e) =>
|
|
56440
|
+
}, k9 = (r) => (...e) => ie.asap(() => r(...e)), xU = S1.hasStandardBrowserEnv ? /* @__PURE__ */ ((r, e) => (t) => (t = new URL(t, S1.origin), r.protocol === t.protocol && r.host === t.host && (e || r.port === t.port)))(
|
|
56441
56441
|
new URL(S1.origin),
|
|
56442
56442
|
S1.navigator && /(msie|trident)/i.test(S1.navigator.userAgent)
|
|
56443
56443
|
) : () => !0, OU = S1.hasStandardBrowserEnv ? (
|
|
@@ -56446,7 +56446,7 @@ const o6 = (r, e, t = 3) => {
|
|
|
56446
56446
|
write(r, e, t, i, Q, p, T) {
|
|
56447
56447
|
if (typeof document > "u") return;
|
|
56448
56448
|
const d = [`${r}=${encodeURIComponent(e)}`];
|
|
56449
|
-
|
|
56449
|
+
ie.isNumber(t) && d.push(`expires=${new Date(t).toUTCString()}`), ie.isString(i) && d.push(`path=${i}`), ie.isString(Q) && d.push(`domain=${Q}`), p === !0 && d.push("secure"), ie.isString(T) && d.push(`SameSite=${T}`), document.cookie = d.join("; ");
|
|
56450
56450
|
},
|
|
56451
56451
|
read(r) {
|
|
56452
56452
|
if (typeof document > "u") return null;
|
|
@@ -56484,21 +56484,21 @@ function br(r, e) {
|
|
|
56484
56484
|
e = e || {};
|
|
56485
56485
|
const t = {};
|
|
56486
56486
|
function i(n, a, s, o) {
|
|
56487
|
-
return
|
|
56487
|
+
return ie.isPlainObject(n) && ie.isPlainObject(a) ? ie.merge.call({ caseless: o }, n, a) : ie.isPlainObject(a) ? ie.merge({}, a) : ie.isArray(a) ? a.slice() : a;
|
|
56488
56488
|
}
|
|
56489
56489
|
function Q(n, a, s, o) {
|
|
56490
|
-
if (
|
|
56491
|
-
if (!
|
|
56490
|
+
if (ie.isUndefined(a)) {
|
|
56491
|
+
if (!ie.isUndefined(n))
|
|
56492
56492
|
return i(void 0, n, s, o);
|
|
56493
56493
|
} else return i(n, a, s, o);
|
|
56494
56494
|
}
|
|
56495
56495
|
function p(n, a) {
|
|
56496
|
-
if (!
|
|
56496
|
+
if (!ie.isUndefined(a))
|
|
56497
56497
|
return i(void 0, a);
|
|
56498
56498
|
}
|
|
56499
56499
|
function T(n, a) {
|
|
56500
|
-
if (
|
|
56501
|
-
if (!
|
|
56500
|
+
if (ie.isUndefined(a)) {
|
|
56501
|
+
if (!ie.isUndefined(n))
|
|
56502
56502
|
return i(void 0, n);
|
|
56503
56503
|
} else return i(void 0, a);
|
|
56504
56504
|
}
|
|
@@ -56539,9 +56539,9 @@ function br(r, e) {
|
|
|
56539
56539
|
validateStatus: d,
|
|
56540
56540
|
headers: (n, a, s) => Q(P9(n), P9(a), s, !0)
|
|
56541
56541
|
};
|
|
56542
|
-
return
|
|
56542
|
+
return ie.forEach(Object.keys({ ...r, ...e }), function(a) {
|
|
56543
56543
|
const s = c[a] || Q, o = s(r[a], e[a], a);
|
|
56544
|
-
|
|
56544
|
+
ie.isUndefined(o) && s !== d || (t[a] = o);
|
|
56545
56545
|
}), t;
|
|
56546
56546
|
}
|
|
56547
56547
|
const op = (r) => {
|
|
@@ -56550,17 +56550,17 @@ const op = (r) => {
|
|
|
56550
56550
|
if (e.headers = T = H1.from(T), e.url = ep(ip(e.baseURL, e.url, e.allowAbsoluteUrls), r.params, r.paramsSerializer), d && T.set(
|
|
56551
56551
|
"Authorization",
|
|
56552
56552
|
"Basic " + btoa((d.username || "") + ":" + (d.password ? unescape(encodeURIComponent(d.password)) : ""))
|
|
56553
|
-
),
|
|
56553
|
+
), ie.isFormData(t)) {
|
|
56554
56554
|
if (S1.hasStandardBrowserEnv || S1.hasStandardBrowserWebWorkerEnv)
|
|
56555
56555
|
T.setContentType(void 0);
|
|
56556
|
-
else if (
|
|
56556
|
+
else if (ie.isFunction(t.getHeaders)) {
|
|
56557
56557
|
const c = t.getHeaders(), n = ["content-type", "content-length"];
|
|
56558
56558
|
Object.entries(c).forEach(([a, s]) => {
|
|
56559
56559
|
n.includes(a.toLowerCase()) && T.set(a, s);
|
|
56560
56560
|
});
|
|
56561
56561
|
}
|
|
56562
56562
|
}
|
|
56563
|
-
if (S1.hasStandardBrowserEnv && (i &&
|
|
56563
|
+
if (S1.hasStandardBrowserEnv && (i && ie.isFunction(i) && (i = i(e)), i || i !== !1 && xU(e.url))) {
|
|
56564
56564
|
const c = Q && p && OU.read(p);
|
|
56565
56565
|
c && T.set(Q, c);
|
|
56566
56566
|
}
|
|
@@ -56611,9 +56611,9 @@ const op = (r) => {
|
|
|
56611
56611
|
r,
|
|
56612
56612
|
f
|
|
56613
56613
|
)), f = null;
|
|
56614
|
-
}, p === void 0 && T.setContentType(null), "setRequestHeader" in f &&
|
|
56614
|
+
}, p === void 0 && T.setContentType(null), "setRequestHeader" in f && ie.forEach(T.toJSON(), function(g, v) {
|
|
56615
56615
|
f.setRequestHeader(v, g);
|
|
56616
|
-
}),
|
|
56616
|
+
}), ie.isUndefined(Q.withCredentials) || (f.withCredentials = !!Q.withCredentials), d && d !== "json" && (f.responseType = Q.responseType), n && ([o, l] = o6(n, !0), f.addEventListener("progress", o)), c && f.upload && ([s, u] = o6(c), f.upload.addEventListener("progress", s), f.upload.addEventListener("loadend", u)), (Q.cancelToken || Q.signal) && (a = (_) => {
|
|
56617
56617
|
f && (i(!_ || _.type ? new O3(null, r, f) : _), f.abort(), f = null);
|
|
56618
56618
|
}, Q.cancelToken && Q.cancelToken.subscribe(a), Q.signal && (Q.signal.aborted ? a() : Q.signal.addEventListener("abort", a)));
|
|
56619
56619
|
const E = LU(Q.url);
|
|
@@ -56644,7 +56644,7 @@ const op = (r) => {
|
|
|
56644
56644
|
};
|
|
56645
56645
|
r.forEach((n) => n.addEventListener("abort", p));
|
|
56646
56646
|
const { signal: c } = i;
|
|
56647
|
-
return c.unsubscribe = () =>
|
|
56647
|
+
return c.unsubscribe = () => ie.asap(d), c;
|
|
56648
56648
|
}
|
|
56649
56649
|
}, HU = function* (r, e) {
|
|
56650
56650
|
let t = r.byteLength;
|
|
@@ -56703,20 +56703,20 @@ const op = (r) => {
|
|
|
56703
56703
|
}, {
|
|
56704
56704
|
highWaterMark: 2
|
|
56705
56705
|
});
|
|
56706
|
-
}, V9 = 64 * 1024, { isFunction: m4 } =
|
|
56706
|
+
}, V9 = 64 * 1024, { isFunction: m4 } = ie, PU = (({ Request: r, Response: e }) => ({
|
|
56707
56707
|
Request: r,
|
|
56708
56708
|
Response: e
|
|
56709
|
-
}))(
|
|
56709
|
+
}))(ie.global), {
|
|
56710
56710
|
ReadableStream: G9,
|
|
56711
56711
|
TextEncoder: U9
|
|
56712
|
-
} =
|
|
56712
|
+
} = ie.global, j9 = (r, ...e) => {
|
|
56713
56713
|
try {
|
|
56714
56714
|
return !!r(...e);
|
|
56715
56715
|
} catch {
|
|
56716
56716
|
return !1;
|
|
56717
56717
|
}
|
|
56718
56718
|
}, BU = (r) => {
|
|
56719
|
-
r =
|
|
56719
|
+
r = ie.merge.call({
|
|
56720
56720
|
skipUndefined: !0
|
|
56721
56721
|
}, PU, r);
|
|
56722
56722
|
const { fetch: e, Request: t, Response: i } = r, Q = e ? m4(e) : typeof fetch == "function", p = m4(t), T = m4(i);
|
|
@@ -56732,7 +56732,7 @@ const op = (r) => {
|
|
|
56732
56732
|
}
|
|
56733
56733
|
}).headers.has("Content-Type");
|
|
56734
56734
|
return l && !m;
|
|
56735
|
-
}), a = T && d && j9(() =>
|
|
56735
|
+
}), a = T && d && j9(() => ie.isReadableStream(new i("").body)), s = {
|
|
56736
56736
|
stream: a && ((l) => l.body)
|
|
56737
56737
|
};
|
|
56738
56738
|
Q && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((l) => {
|
|
@@ -56746,19 +56746,19 @@ const op = (r) => {
|
|
|
56746
56746
|
const o = async (l) => {
|
|
56747
56747
|
if (l == null)
|
|
56748
56748
|
return 0;
|
|
56749
|
-
if (
|
|
56749
|
+
if (ie.isBlob(l))
|
|
56750
56750
|
return l.size;
|
|
56751
|
-
if (
|
|
56751
|
+
if (ie.isSpecCompliantForm(l))
|
|
56752
56752
|
return (await new t(S1.origin, {
|
|
56753
56753
|
method: "POST",
|
|
56754
56754
|
body: l
|
|
56755
56755
|
}).arrayBuffer()).byteLength;
|
|
56756
|
-
if (
|
|
56756
|
+
if (ie.isArrayBufferView(l) || ie.isArrayBuffer(l))
|
|
56757
56757
|
return l.byteLength;
|
|
56758
|
-
if (
|
|
56758
|
+
if (ie.isURLSearchParams(l) && (l = l + ""), ie.isString(l))
|
|
56759
56759
|
return (await c(l)).byteLength;
|
|
56760
56760
|
}, u = async (l, m) => {
|
|
56761
|
-
const f =
|
|
56761
|
+
const f = ie.toFiniteNumber(l.getContentLength());
|
|
56762
56762
|
return f ?? o(m);
|
|
56763
56763
|
};
|
|
56764
56764
|
return async (l) => {
|
|
@@ -56789,7 +56789,7 @@ const op = (r) => {
|
|
|
56789
56789
|
body: h,
|
|
56790
56790
|
duplex: "half"
|
|
56791
56791
|
}), H;
|
|
56792
|
-
if (
|
|
56792
|
+
if (ie.isFormData(h) && (H = U.headers.get("content-type")) && b.setContentType(H), U.body) {
|
|
56793
56793
|
const [F, I] = F9(
|
|
56794
56794
|
M,
|
|
56795
56795
|
o6(k9(y))
|
|
@@ -56797,7 +56797,7 @@ const op = (r) => {
|
|
|
56797
56797
|
h = B9(U.body, V9, F, I);
|
|
56798
56798
|
}
|
|
56799
56799
|
}
|
|
56800
|
-
|
|
56800
|
+
ie.isString(A) || (A = A ? "include" : "omit");
|
|
56801
56801
|
const N = p && "credentials" in t.prototype, R = {
|
|
56802
56802
|
...L,
|
|
56803
56803
|
signal: D,
|
|
@@ -56815,7 +56815,7 @@ const op = (r) => {
|
|
|
56815
56815
|
["status", "statusText", "headers"].forEach((P) => {
|
|
56816
56816
|
U[P] = w[P];
|
|
56817
56817
|
});
|
|
56818
|
-
const H =
|
|
56818
|
+
const H = ie.toFiniteNumber(w.headers.get("content-length")), [F, I] = v && F9(
|
|
56819
56819
|
H,
|
|
56820
56820
|
o6(k9(v), !0)
|
|
56821
56821
|
) || [];
|
|
@@ -56827,7 +56827,7 @@ const op = (r) => {
|
|
|
56827
56827
|
);
|
|
56828
56828
|
}
|
|
56829
56829
|
S = S || "text";
|
|
56830
|
-
let B = await s[
|
|
56830
|
+
let B = await s[ie.findKey(s, S) || "text"](w, l);
|
|
56831
56831
|
return !k && O && O(), await new Promise((U, H) => {
|
|
56832
56832
|
ap(U, H, {
|
|
56833
56833
|
data: B,
|
|
@@ -56867,7 +56867,7 @@ const A0 = {
|
|
|
56867
56867
|
get: sp
|
|
56868
56868
|
}
|
|
56869
56869
|
};
|
|
56870
|
-
|
|
56870
|
+
ie.forEach(A0, (r, e) => {
|
|
56871
56871
|
if (r) {
|
|
56872
56872
|
try {
|
|
56873
56873
|
Object.defineProperty(r, "name", { value: e });
|
|
@@ -56876,9 +56876,9 @@ oe.forEach(A0, (r, e) => {
|
|
|
56876
56876
|
Object.defineProperty(r, "adapterName", { value: e });
|
|
56877
56877
|
}
|
|
56878
56878
|
});
|
|
56879
|
-
const q9 = (r) => `- ${r}`, GU = (r) =>
|
|
56879
|
+
const q9 = (r) => `- ${r}`, GU = (r) => ie.isFunction(r) || r === null || r === !1;
|
|
56880
56880
|
function UU(r, e) {
|
|
56881
|
-
r =
|
|
56881
|
+
r = ie.isArray(r) ? r : [r];
|
|
56882
56882
|
const { length: t } = r;
|
|
56883
56883
|
let i, Q;
|
|
56884
56884
|
const p = {};
|
|
@@ -56887,7 +56887,7 @@ function UU(r, e) {
|
|
|
56887
56887
|
let d;
|
|
56888
56888
|
if (Q = i, !GU(i) && (Q = A0[(d = String(i)).toLowerCase()], Q === void 0))
|
|
56889
56889
|
throw new ot(`Unknown adapter '${d}'`);
|
|
56890
|
-
if (Q && (
|
|
56890
|
+
if (Q && (ie.isFunction(Q) || (Q = Q.get(e))))
|
|
56891
56891
|
break;
|
|
56892
56892
|
p[d || "#" + T] = Q;
|
|
56893
56893
|
}
|
|
@@ -57027,7 +57027,7 @@ let _r = class {
|
|
|
57027
57027
|
silentJSONParsing: E2.transitional(E2.boolean),
|
|
57028
57028
|
forcedJSONParsing: E2.transitional(E2.boolean),
|
|
57029
57029
|
clarifyTimeoutError: E2.transitional(E2.boolean)
|
|
57030
|
-
}, !1), Q != null && (
|
|
57030
|
+
}, !1), Q != null && (ie.isFunction(Q) ? t.paramsSerializer = {
|
|
57031
57031
|
serialize: Q
|
|
57032
57032
|
} : H4.assertOptions(Q, {
|
|
57033
57033
|
encode: E2.function,
|
|
@@ -57036,11 +57036,11 @@ let _r = class {
|
|
|
57036
57036
|
baseUrl: E2.spelling("baseURL"),
|
|
57037
57037
|
withXsrfToken: E2.spelling("withXSRFToken")
|
|
57038
57038
|
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
57039
|
-
let T = p &&
|
|
57039
|
+
let T = p && ie.merge(
|
|
57040
57040
|
p.common,
|
|
57041
57041
|
p[t.method]
|
|
57042
57042
|
);
|
|
57043
|
-
p &&
|
|
57043
|
+
p && ie.forEach(
|
|
57044
57044
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
57045
57045
|
(l) => {
|
|
57046
57046
|
delete p[l];
|
|
@@ -57088,7 +57088,7 @@ let _r = class {
|
|
|
57088
57088
|
return ep(t, e.params, e.paramsSerializer);
|
|
57089
57089
|
}
|
|
57090
57090
|
};
|
|
57091
|
-
|
|
57091
|
+
ie.forEach(["delete", "get", "head", "options"], function(e) {
|
|
57092
57092
|
_r.prototype[e] = function(t, i) {
|
|
57093
57093
|
return this.request(br(i || {}, {
|
|
57094
57094
|
method: e,
|
|
@@ -57097,7 +57097,7 @@ oe.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
57097
57097
|
}));
|
|
57098
57098
|
};
|
|
57099
57099
|
});
|
|
57100
|
-
|
|
57100
|
+
ie.forEach(["post", "put", "patch"], function(e) {
|
|
57101
57101
|
function t(i) {
|
|
57102
57102
|
return function(p, T, d) {
|
|
57103
57103
|
return this.request(br(d || {}, {
|
|
@@ -57191,7 +57191,7 @@ function YU(r) {
|
|
|
57191
57191
|
};
|
|
57192
57192
|
}
|
|
57193
57193
|
function zU(r) {
|
|
57194
|
-
return
|
|
57194
|
+
return ie.isObject(r) && r.isAxiosError === !0;
|
|
57195
57195
|
}
|
|
57196
57196
|
const Qo = {
|
|
57197
57197
|
Continue: 100,
|
|
@@ -57269,7 +57269,7 @@ Object.entries(Qo).forEach(([r, e]) => {
|
|
|
57269
57269
|
});
|
|
57270
57270
|
function Tp(r) {
|
|
57271
57271
|
const e = new _r(r), t = Gd(_r.prototype.request, e);
|
|
57272
|
-
return
|
|
57272
|
+
return ie.extend(t, _r.prototype, e, { allOwnKeys: !0 }), ie.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(Q) {
|
|
57273
57273
|
return Tp(br(r, Q));
|
|
57274
57274
|
}, t;
|
|
57275
57275
|
}
|
|
@@ -57289,7 +57289,7 @@ zt.spread = YU;
|
|
|
57289
57289
|
zt.isAxiosError = zU;
|
|
57290
57290
|
zt.mergeConfig = br;
|
|
57291
57291
|
zt.AxiosHeaders = H1;
|
|
57292
|
-
zt.formToJSON = (r) => rp(
|
|
57292
|
+
zt.formToJSON = (r) => rp(ie.isHTMLForm(r) ? new FormData(r) : r);
|
|
57293
57293
|
zt.getAdapter = lp.getAdapter;
|
|
57294
57294
|
zt.HttpStatusCode = Qo;
|
|
57295
57295
|
zt.default = zt;
|
|
@@ -58630,7 +58630,7 @@ function fp() {
|
|
|
58630
58630
|
]);
|
|
58631
58631
|
},
|
|
58632
58632
|
_doProcessBlock: function(l, m) {
|
|
58633
|
-
for (var f = this._hash.words, h = f[0], E = f[1], _ = f[2], g = f[3], v = f[4], y = f[5], S = f[6], b = f[7], A = h.high, L = h.low, C = E.high, D = E.low, x = _.high, O = _.low, M = g.high, N = g.low, R = v.high, w = v.low, k = y.high, B = y.low, U = S.high, H = S.low, F = b.high, I = b.low, P = A, G = L, Y = C, q = D, W = x, re = O,
|
|
58633
|
+
for (var f = this._hash.words, h = f[0], E = f[1], _ = f[2], g = f[3], v = f[4], y = f[5], S = f[6], b = f[7], A = h.high, L = h.low, C = E.high, D = E.low, x = _.high, O = _.low, M = g.high, N = g.low, R = v.high, w = v.low, k = y.high, B = y.low, U = S.high, H = S.low, F = b.high, I = b.low, P = A, G = L, Y = C, q = D, W = x, re = O, Te = M, le = N, pe = R, Qe = w, ve = k, he = B, me = U, Ae = H, Re = F, Me = I, Pe = 0; Pe < 80; Pe++) {
|
|
58634
58634
|
var nt, Ye, Ke = o[Pe];
|
|
58635
58635
|
if (Pe < 16)
|
|
58636
58636
|
Ye = Ke.high = l[m + Pe * 2] | 0, nt = Ke.low = l[m + Pe * 2 + 1] | 0;
|
|
@@ -58638,10 +58638,10 @@ function fp() {
|
|
|
58638
58638
|
var je = o[Pe - 15], V = je.high, j = je.low, z = (V >>> 1 | j << 31) ^ (V >>> 8 | j << 24) ^ V >>> 7, K = (j >>> 1 | V << 31) ^ (j >>> 8 | V << 24) ^ (j >>> 7 | V << 25), ae = o[Pe - 2], _e = ae.high, te = ae.low, ge = (_e >>> 19 | te << 13) ^ (_e << 3 | te >>> 29) ^ _e >>> 6, de = (te >>> 19 | _e << 13) ^ (te << 3 | _e >>> 29) ^ (te >>> 6 | _e << 26), st = o[Pe - 7], Xe = st.high, dt = st.low, We = o[Pe - 16], Ot = We.high, ze = We.low;
|
|
58639
58639
|
nt = K + dt, Ye = z + Xe + (nt >>> 0 < K >>> 0 ? 1 : 0), nt = nt + de, Ye = Ye + ge + (nt >>> 0 < de >>> 0 ? 1 : 0), nt = nt + ze, Ye = Ye + Ot + (nt >>> 0 < ze >>> 0 ? 1 : 0), Ke.high = Ye, Ke.low = nt;
|
|
58640
58640
|
}
|
|
58641
|
-
var ht = pe & ve ^ ~pe & me, h1 =
|
|
58642
|
-
|
|
58641
|
+
var ht = pe & ve ^ ~pe & me, h1 = Qe & he ^ ~Qe & Ae, t1 = P & Y ^ P & W ^ Y & W, Ce = G & q ^ G & re ^ q & re, Ne = (P >>> 28 | G << 4) ^ (P << 30 | G >>> 2) ^ (P << 25 | G >>> 7), ne = (G >>> 28 | P << 4) ^ (G << 30 | P >>> 2) ^ (G << 25 | P >>> 7), X = (pe >>> 14 | Qe << 18) ^ (pe >>> 18 | Qe << 14) ^ (pe << 23 | Qe >>> 9), Z = (Qe >>> 14 | pe << 18) ^ (Qe >>> 18 | pe << 14) ^ (Qe << 23 | pe >>> 9), ce = s[Pe], ee = ce.high, J = ce.low, ue = Me + Z, se = Re + X + (ue >>> 0 < Me >>> 0 ? 1 : 0), ue = ue + h1, se = se + ht + (ue >>> 0 < h1 >>> 0 ? 1 : 0), ue = ue + J, se = se + ee + (ue >>> 0 < J >>> 0 ? 1 : 0), ue = ue + nt, se = se + Ye + (ue >>> 0 < nt >>> 0 ? 1 : 0), De = ne + Ce, Le = Ne + t1 + (De >>> 0 < ne >>> 0 ? 1 : 0);
|
|
58642
|
+
Re = me, Me = Ae, me = ve, Ae = he, ve = pe, he = Qe, Qe = le + ue | 0, pe = Te + se + (Qe >>> 0 < le >>> 0 ? 1 : 0) | 0, Te = W, le = re, W = Y, re = q, Y = P, q = G, G = ue + De | 0, P = se + Le + (G >>> 0 < ue >>> 0 ? 1 : 0) | 0;
|
|
58643
58643
|
}
|
|
58644
|
-
L = h.low = L + G, h.high = A + P + (L >>> 0 < G >>> 0 ? 1 : 0), D = E.low = D + q, E.high = C + Y + (D >>> 0 < q >>> 0 ? 1 : 0), O = _.low = O + re, _.high = x + W + (O >>> 0 < re >>> 0 ? 1 : 0), N = g.low = N + le, g.high = M +
|
|
58644
|
+
L = h.low = L + G, h.high = A + P + (L >>> 0 < G >>> 0 ? 1 : 0), D = E.low = D + q, E.high = C + Y + (D >>> 0 < q >>> 0 ? 1 : 0), O = _.low = O + re, _.high = x + W + (O >>> 0 < re >>> 0 ? 1 : 0), N = g.low = N + le, g.high = M + Te + (N >>> 0 < le >>> 0 ? 1 : 0), w = v.low = w + Qe, v.high = R + pe + (w >>> 0 < Qe >>> 0 ? 1 : 0), B = y.low = B + he, y.high = k + ve + (B >>> 0 < he >>> 0 ? 1 : 0), H = S.low = H + Ae, S.high = U + me + (H >>> 0 < Ae >>> 0 ? 1 : 0), I = b.low = I + Me, b.high = F + Re + (I >>> 0 < Me >>> 0 ? 1 : 0);
|
|
58645
58645
|
},
|
|
58646
58646
|
_doFinalize: function() {
|
|
58647
58647
|
var l = this._data, m = l.words, f = this._nDataBytes * 8, h = l.sigBytes * 8;
|
|
@@ -62789,14 +62789,11 @@ class Kj {
|
|
|
62789
62789
|
a1(this, "manualPlayRequestId", null);
|
|
62790
62790
|
}
|
|
62791
62791
|
// 当前手动播放请求的ID
|
|
62792
|
-
|
|
62793
|
-
|
|
62794
|
-
|
|
62792
|
+
cleanupAudio(e) {
|
|
62793
|
+
e && (e.pause(), e.currentTime = 0, URL.revokeObjectURL(e.src));
|
|
62794
|
+
}
|
|
62795
62795
|
addAudio(e) {
|
|
62796
|
-
if (this.isMuted || this.isCleared)
|
|
62797
|
-
console.log("[TTS] Skipping audio add - player is muted or cleared");
|
|
62798
|
-
return;
|
|
62799
|
-
}
|
|
62796
|
+
if (this.isMuted || this.isCleared) return;
|
|
62800
62797
|
const t = new Audio(URL.createObjectURL(e));
|
|
62801
62798
|
this.audioQueue.push(t), !this.isPlaying && !this.isMuted && !this.isCleared && this.playNext();
|
|
62802
62799
|
}
|
|
@@ -62809,21 +62806,17 @@ class Kj {
|
|
|
62809
62806
|
return;
|
|
62810
62807
|
}
|
|
62811
62808
|
const e = !this.isPlaying;
|
|
62812
|
-
this.isPlaying = !0, e && this.autoPlayCallbacks.onStart && this.autoPlayCallbacks.onStart(), this.currentAudio = this.audioQueue.shift()
|
|
62813
|
-
|
|
62814
|
-
}, this.currentAudio.onerror = (t) => {
|
|
62809
|
+
this.isPlaying = !0, e && this.autoPlayCallbacks.onStart && this.autoPlayCallbacks.onStart(), this.currentAudio = this.audioQueue.shift();
|
|
62810
|
+
const t = () => {
|
|
62815
62811
|
this.currentAudio && URL.revokeObjectURL(this.currentAudio.src), this.playNext();
|
|
62816
|
-
}
|
|
62817
|
-
|
|
62818
|
-
});
|
|
62812
|
+
};
|
|
62813
|
+
this.currentAudio.onended = t, this.currentAudio.onerror = t, this.currentAudio.play().catch(t);
|
|
62819
62814
|
}
|
|
62820
62815
|
/**
|
|
62821
62816
|
* 设置静音状态
|
|
62822
62817
|
*/
|
|
62823
62818
|
setMuted(e) {
|
|
62824
|
-
this.isMuted = e, e && (this.
|
|
62825
|
-
URL.revokeObjectURL(t.src);
|
|
62826
|
-
}), this.audioQueue = [], this.isPlaying = !1);
|
|
62819
|
+
this.isMuted = e, e && (this.cleanupAudio(this.currentAudio), this.currentAudio = null, this.audioQueue.forEach((t) => URL.revokeObjectURL(t.src)), this.audioQueue = [], this.isPlaying = !1);
|
|
62827
62820
|
}
|
|
62828
62821
|
/**
|
|
62829
62822
|
* 停止所有播放并清空队列
|
|
@@ -62834,11 +62827,8 @@ class Kj {
|
|
|
62834
62827
|
* 4. 阻止后续音频的添加和播放(即使音频还在下载)
|
|
62835
62828
|
*/
|
|
62836
62829
|
clear() {
|
|
62837
|
-
|
|
62838
|
-
|
|
62839
|
-
e > 0 && (console.log(`[TTS] Clearing ${e} audio(s) from queue`), this.audioQueue.forEach((t) => {
|
|
62840
|
-
URL.revokeObjectURL(t.src);
|
|
62841
|
-
})), this.audioQueue = [], this.isPlaying = !1, this.autoPlayMessageId = null, this.autoPlayCallbacks = {}, this.isStreamComplete = !0, this.manualPlayAudio && (console.log("[TTS] Stopping manual playback"), this.manualPlayAudio.pause(), this.manualPlayAudio.currentTime = 0, URL.revokeObjectURL(this.manualPlayAudio.src), this.manualPlayAudio = null), this.manualPlayMessageId = null, console.log("[TTS] clear() completed - all TTS operations stopped");
|
|
62830
|
+
var e, t;
|
|
62831
|
+
this.isCleared = !0, this.currentAbortController && (this.currentAbortController.abort(), this.currentAbortController = null), this.currentAudio && (this.cleanupAudio(this.currentAudio), this.currentAudio = null, (t = (e = this.autoPlayCallbacks).onEnd) == null || t.call(e)), this.audioQueue.forEach((i) => URL.revokeObjectURL(i.src)), this.audioQueue = [], this.isPlaying = !1, this.autoPlayMessageId = null, this.autoPlayCallbacks = {}, this.isStreamComplete = !0, this.cleanupAudio(this.manualPlayAudio), this.manualPlayAudio = null, this.manualPlayMessageId = null;
|
|
62842
62832
|
}
|
|
62843
62833
|
/**
|
|
62844
62834
|
* 销毁播放器,释放所有资源(组件卸载时调用)
|
|
@@ -62852,27 +62842,27 @@ class Kj {
|
|
|
62852
62842
|
* @param requestId - 请求ID,用于验证是否是最新的请求
|
|
62853
62843
|
*/
|
|
62854
62844
|
playManual(e, t, i, Q, p) {
|
|
62855
|
-
if (
|
|
62856
|
-
|
|
62845
|
+
if (i && i !== this.manualPlayRequestId) {
|
|
62846
|
+
p == null || p();
|
|
62857
62847
|
return;
|
|
62858
62848
|
}
|
|
62859
|
-
this.
|
|
62860
|
-
|
|
62861
|
-
|
|
62862
|
-
|
|
62863
|
-
|
|
62864
|
-
|
|
62865
|
-
|
|
62866
|
-
|
|
62867
|
-
}).catch((
|
|
62868
|
-
|
|
62849
|
+
this.cleanupAudio(this.manualPlayAudio), this.manualPlayAudio = null, this.currentAudio && this.isPlaying && this.currentAudio.pause(), t && (this.manualPlayMessageId = t), this.manualPlayAudio = new Audio(URL.createObjectURL(e)), Q == null || Q();
|
|
62850
|
+
const T = () => {
|
|
62851
|
+
this.manualPlayAudio && URL.revokeObjectURL(this.manualPlayAudio.src), this.manualPlayAudio = null, this.manualPlayMessageId = null, this.manualPlayRequestId = null, p == null || p();
|
|
62852
|
+
}, d = () => {
|
|
62853
|
+
this.currentAudio && this.isPlaying && !this.isMuted && this.currentAudio.play().catch(() => this.playNext());
|
|
62854
|
+
};
|
|
62855
|
+
this.manualPlayAudio.onended = () => {
|
|
62856
|
+
T(), d();
|
|
62857
|
+
}, this.manualPlayAudio.onerror = T, this.manualPlayAudio.play().catch(() => {
|
|
62858
|
+
this.manualPlayRequestId = null, p == null || p();
|
|
62869
62859
|
});
|
|
62870
62860
|
}
|
|
62871
62861
|
/**
|
|
62872
62862
|
* 取消手动播放请求
|
|
62873
62863
|
*/
|
|
62874
62864
|
cancelManualPlayRequest(e) {
|
|
62875
|
-
|
|
62865
|
+
this.manualPlayAbortController && (this.manualPlayAbortController.abort(), this.manualPlayAbortController = null), this.manualPlayRequestId = null, this.manualPlayAudio && (!e || this.manualPlayMessageId === e) && (this.cleanupAudio(this.manualPlayAudio), this.manualPlayAudio = null, this.manualPlayMessageId = null);
|
|
62876
62866
|
}
|
|
62877
62867
|
/**
|
|
62878
62868
|
* 设置手动播放的请求ID
|
|
@@ -62890,9 +62880,7 @@ class Kj {
|
|
|
62890
62880
|
* 停止手动播放
|
|
62891
62881
|
*/
|
|
62892
62882
|
stopManual(e) {
|
|
62893
|
-
e && this.manualPlayMessageId !== e || this.manualPlayAudio && (this.
|
|
62894
|
-
this.playNext();
|
|
62895
|
-
}));
|
|
62883
|
+
e && this.manualPlayMessageId !== e || this.manualPlayAudio && (this.cleanupAudio(this.manualPlayAudio), this.manualPlayAudio = null, this.manualPlayMessageId = null, this.currentAudio && this.isPlaying && !this.isMuted && this.currentAudio.play().catch(() => this.playNext()));
|
|
62896
62884
|
}
|
|
62897
62885
|
/**
|
|
62898
62886
|
* 检查消息是否正在手动播放
|
|
@@ -62913,7 +62901,7 @@ const it = new Kj(), Ep = async (r, e, t, i, Q) => {
|
|
|
62913
62901
|
let a = null, s = !1, o = !1, u = !1;
|
|
62914
62902
|
const l = Q || new AbortController();
|
|
62915
62903
|
i && it.setAbortController(l), l.signal.addEventListener("abort", () => {
|
|
62916
|
-
u || (o = !0
|
|
62904
|
+
u || (o = !0);
|
|
62917
62905
|
});
|
|
62918
62906
|
let m = 0, f = 0;
|
|
62919
62907
|
const h = /* @__PURE__ */ new Map(), E = () => {
|
|
@@ -62923,7 +62911,7 @@ const it = new Kj(), Ep = async (r, e, t, i, Q) => {
|
|
|
62923
62911
|
}
|
|
62924
62912
|
for (; h.has(f); ) {
|
|
62925
62913
|
const _ = h.get(f);
|
|
62926
|
-
h.delete(f), i ? i(_) : a || (a = _, s || (s = !0,
|
|
62914
|
+
h.delete(f), i ? i(_) : a || (a = _, s || (s = !0, c(a), l.abort(), it.setAbortController(null))), f++;
|
|
62927
62915
|
}
|
|
62928
62916
|
};
|
|
62929
62917
|
_p(`${D0[T.envNumber || 0]}/v1/sg/tts`, {
|
|
@@ -62947,16 +62935,10 @@ const it = new Kj(), Ep = async (r, e, t, i, Q) => {
|
|
|
62947
62935
|
if (g.event === "audio-url" && g.data) {
|
|
62948
62936
|
const v = g.data, y = m++;
|
|
62949
62937
|
fetch(v).then(async (S) => {
|
|
62950
|
-
if (i && it.isCleared) {
|
|
62951
|
-
console.log(`[TTS] Audio chunk #${y} downloaded but player is cleared (auto-play), discarding`);
|
|
62952
|
-
return;
|
|
62953
|
-
}
|
|
62954
|
-
if (S.ok) {
|
|
62938
|
+
if (!(i && it.isCleared) && S.ok) {
|
|
62955
62939
|
const b = await S.blob();
|
|
62956
|
-
if (
|
|
62957
|
-
console.log(`[TTS] Audio chunk #${y} blob ready but player is cleared (auto-play), discarding`);
|
|
62940
|
+
if (i && it.isCleared)
|
|
62958
62941
|
return;
|
|
62959
|
-
}
|
|
62960
62942
|
h.set(y, b), E();
|
|
62961
62943
|
}
|
|
62962
62944
|
}).catch((S) => {
|
|
@@ -62989,18 +62971,17 @@ const it = new Kj(), Ep = async (r, e, t, i, Q) => {
|
|
|
62989
62971
|
}
|
|
62990
62972
|
}, Xj = async (r, e, t, i, Q) => {
|
|
62991
62973
|
const p = `${e}_${Date.now()}`;
|
|
62992
|
-
if (
|
|
62993
|
-
|
|
62974
|
+
if (!(t != null && t.trim())) {
|
|
62975
|
+
Q == null || Q();
|
|
62994
62976
|
return;
|
|
62995
62977
|
}
|
|
62996
62978
|
it.setManualPlayRequestId(p);
|
|
62997
62979
|
try {
|
|
62998
|
-
console.log("[TTS] Fetching TTS audio...");
|
|
62999
62980
|
const T = new AbortController();
|
|
63000
62981
|
it.setManualPlayAbortController(T);
|
|
63001
62982
|
const d = await Ep(r, e, t, void 0, T);
|
|
63002
|
-
if (
|
|
63003
|
-
|
|
62983
|
+
if (it.setManualPlayAbortController(null), it.manualPlayRequestId !== p) {
|
|
62984
|
+
Q == null || Q();
|
|
63004
62985
|
return;
|
|
63005
62986
|
}
|
|
63006
62987
|
if (!d || d.size === 0) {
|
|
@@ -63009,7 +62990,7 @@ const it = new Kj(), Ep = async (r, e, t, i, Q) => {
|
|
|
63009
62990
|
}
|
|
63010
62991
|
it.playManual(d, e, p, i, Q);
|
|
63011
62992
|
} catch (T) {
|
|
63012
|
-
|
|
62993
|
+
it.setManualPlayAbortController(null), (T == null ? void 0 : T.name) === "AbortError" || Q == null || Q();
|
|
63013
62994
|
}
|
|
63014
62995
|
}, Jj = (r) => {
|
|
63015
62996
|
it.cancelManualPlayRequest(r), it.stopManual(r);
|
|
@@ -63656,37 +63637,38 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
63656
63637
|
showMessageFeedback: q,
|
|
63657
63638
|
feedbackPosition: W,
|
|
63658
63639
|
currentLongPressMessage: re,
|
|
63659
|
-
currentLongPressMessageId:
|
|
63640
|
+
currentLongPressMessageId: Te,
|
|
63660
63641
|
isDownVoted: le,
|
|
63661
63642
|
subject_id: pe,
|
|
63662
|
-
getCurrentMessage:
|
|
63643
|
+
getCurrentMessage: Qe,
|
|
63663
63644
|
handleLongPressStart: ve,
|
|
63664
63645
|
handleLongPressEnd: he,
|
|
63665
63646
|
closeFeedbackPopup: me,
|
|
63666
63647
|
handleMessageFeedback: Ae,
|
|
63667
|
-
handleClose:
|
|
63668
|
-
} = aq(D, s), { questionConfirmMessageId:
|
|
63648
|
+
handleClose: Re
|
|
63649
|
+
} = aq(D, s), { questionConfirmMessageId: Me, isQuickReply: Pe, initNormalQuestionFlow: nt } = lq(
|
|
63669
63650
|
x,
|
|
63670
63651
|
D,
|
|
63671
63652
|
R,
|
|
63672
63653
|
w
|
|
63673
|
-
), { isKeyboardVisible: Ye, keyboardHeight: Ke } = uq(), je = (ee) => ug(ee), V = () => {
|
|
63674
|
-
var
|
|
63675
|
-
|
|
63654
|
+
), { isKeyboardVisible: Ye, keyboardHeight: Ke } = uq(), je = (ee) => ug(ee), V = (ee) => {
|
|
63655
|
+
var ue, se;
|
|
63656
|
+
const J = typeof ee == "boolean" ? ee : !p.value;
|
|
63657
|
+
p.value = J, it.setMuted(!p.value), (se = (ue = u.value.muteButton) == null ? void 0 : ue.onClick) == null || se.call(ue, p.value);
|
|
63676
63658
|
}, j = () => {
|
|
63677
|
-
var ee, J,
|
|
63659
|
+
var ee, J, ue;
|
|
63678
63660
|
if (!(H.value || B.value && ((ee = o.value) != null && ee.historyType)) && T.value.trim()) {
|
|
63679
63661
|
it.clear();
|
|
63680
|
-
const
|
|
63681
|
-
|
|
63662
|
+
const se = L.value.findIndex((Ie) => Ie.isNetworkError);
|
|
63663
|
+
se !== -1 && L.value.splice(se, 1);
|
|
63682
63664
|
for (let Ie = L.value.length - 1; Ie >= 0; Ie--)
|
|
63683
63665
|
if (L.value[Ie].type === "ai") {
|
|
63684
63666
|
L.value[Ie].showFeedbackAndContinue = !1, L.value[Ie].showFeedbackOnly = !1, L.value[Ie].showCompletionSection = !1, L.value[Ie].category = 0;
|
|
63685
63667
|
break;
|
|
63686
63668
|
}
|
|
63687
|
-
const
|
|
63688
|
-
T.value = "", (
|
|
63689
|
-
|
|
63669
|
+
const De = T.value.trim(), Le = M(De);
|
|
63670
|
+
T.value = "", (ue = (J = u.value.input) == null ? void 0 : J.onSend) == null || ue.call(J, De), setTimeout(() => F(
|
|
63671
|
+
De,
|
|
63690
63672
|
o.value.session_id,
|
|
63691
63673
|
p.value,
|
|
63692
63674
|
k.value,
|
|
@@ -63700,16 +63682,16 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
63700
63682
|
var ee;
|
|
63701
63683
|
H.value || B.value && ((ee = o.value) != null && ee.historyType) || (it.clear(), Q("messageSend", "voice", ""), d.value = !0);
|
|
63702
63684
|
}, K = (ee) => {
|
|
63703
|
-
var
|
|
63685
|
+
var ue, se;
|
|
63704
63686
|
d.value = !1;
|
|
63705
63687
|
const J = ee == null ? void 0 : ee.content;
|
|
63706
|
-
J.trim() && ((
|
|
63688
|
+
J.trim() && ((se = (ue = u.value.input) == null ? void 0 : ue.onSend) == null || se.call(ue, J), T.value = J);
|
|
63707
63689
|
}, ae = () => {
|
|
63708
63690
|
d.value = !1;
|
|
63709
63691
|
}, _e = (ee) => {
|
|
63710
63692
|
if (ee.isRotating) return;
|
|
63711
63693
|
ee.isRotating = !0;
|
|
63712
|
-
const J = L.value.findIndex((
|
|
63694
|
+
const J = L.value.findIndex((ue) => ue.isNetworkError);
|
|
63713
63695
|
J !== -1 && L.value.splice(J, 1), setTimeout(() => {
|
|
63714
63696
|
ee.isRotating = !1, ee.sendStatus = "pending", setTimeout(() => F(
|
|
63715
63697
|
ee.content,
|
|
@@ -63722,15 +63704,15 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
63722
63704
|
}, 600);
|
|
63723
63705
|
}, te = (ee) => {
|
|
63724
63706
|
it.clear();
|
|
63725
|
-
const J = L.value.findIndex((
|
|
63707
|
+
const J = L.value.findIndex((se) => se.isNetworkError);
|
|
63726
63708
|
J !== -1 && L.value.splice(J, 1);
|
|
63727
|
-
for (let
|
|
63728
|
-
if (L.value[
|
|
63729
|
-
L.value[
|
|
63709
|
+
for (let se = L.value.length - 1; se >= 0; se--)
|
|
63710
|
+
if (L.value[se].type === "ai") {
|
|
63711
|
+
L.value[se].showFeedbackAndContinue = !1, L.value[se].showFeedbackOnly = !1, L.value[se].showCompletionSection = !1, L.value[se].category = 0;
|
|
63730
63712
|
break;
|
|
63731
63713
|
}
|
|
63732
|
-
const
|
|
63733
|
-
|
|
63714
|
+
const ue = D(ee);
|
|
63715
|
+
ue && (ue.showFeedbackAndContinue = !1, ue.isPlayingTTS = !1, ue.showCompletionSection = !1), M("Continue"), setTimeout(() => F(
|
|
63734
63716
|
"Continue",
|
|
63735
63717
|
o.value.session_id,
|
|
63736
63718
|
p.value,
|
|
@@ -63738,43 +63720,43 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
63738
63720
|
), 300);
|
|
63739
63721
|
}, ge = (ee) => {
|
|
63740
63722
|
it.clear();
|
|
63741
|
-
const J = L.value.findIndex((
|
|
63723
|
+
const J = L.value.findIndex((se) => se.isNetworkError);
|
|
63742
63724
|
J !== -1 && L.value.splice(J, 1);
|
|
63743
|
-
for (let
|
|
63744
|
-
if (L.value[
|
|
63745
|
-
L.value[
|
|
63725
|
+
for (let se = L.value.length - 1; se >= 0; se--)
|
|
63726
|
+
if (L.value[se].type === "ai") {
|
|
63727
|
+
L.value[se].showFeedbackAndContinue = !1, L.value[se].showFeedbackOnly = !1, L.value[se].showCompletionSection = !1, L.value[se].category = 0;
|
|
63746
63728
|
break;
|
|
63747
63729
|
}
|
|
63748
|
-
const
|
|
63730
|
+
const ue = M(ee);
|
|
63749
63731
|
setTimeout(() => F(
|
|
63750
63732
|
ee,
|
|
63751
63733
|
o.value.session_id,
|
|
63752
63734
|
p.value,
|
|
63753
63735
|
k.value,
|
|
63754
63736
|
!1,
|
|
63755
|
-
|
|
63737
|
+
ue,
|
|
63756
63738
|
b.value || A.value
|
|
63757
63739
|
// 如果已出现讲题完成区域或已在追问模式,则为追问
|
|
63758
63740
|
), 300);
|
|
63759
63741
|
}, de = (ee, J) => {
|
|
63760
63742
|
it.clear();
|
|
63761
|
-
const
|
|
63762
|
-
|
|
63743
|
+
const ue = L.value.findIndex((Le) => Le.isNetworkError);
|
|
63744
|
+
ue !== -1 && L.value.splice(ue, 1);
|
|
63763
63745
|
for (let Le = L.value.length - 1; Le >= 0; Le--)
|
|
63764
63746
|
if (L.value[Le].type === "ai") {
|
|
63765
63747
|
L.value[Le].showFeedbackAndContinue = !1, L.value[Le].showFeedbackOnly = !1, L.value[Le].showCompletionSection = !1, L.value[Le].category = 0;
|
|
63766
63748
|
break;
|
|
63767
63749
|
}
|
|
63768
|
-
const
|
|
63769
|
-
|
|
63770
|
-
const
|
|
63750
|
+
const se = D(J);
|
|
63751
|
+
se && (se.showCompletionSection = !1);
|
|
63752
|
+
const De = M(ee);
|
|
63771
63753
|
setTimeout(() => F(
|
|
63772
63754
|
ee,
|
|
63773
63755
|
o.value.session_id,
|
|
63774
63756
|
p.value,
|
|
63775
63757
|
k.value,
|
|
63776
63758
|
!1,
|
|
63777
|
-
|
|
63759
|
+
De,
|
|
63778
63760
|
!0
|
|
63779
63761
|
), 300);
|
|
63780
63762
|
}, st = () => {
|
|
@@ -63786,7 +63768,7 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
63786
63768
|
session_id: J,
|
|
63787
63769
|
sessionId: J
|
|
63788
63770
|
});
|
|
63789
|
-
const
|
|
63771
|
+
const ue = M("Explain Again");
|
|
63790
63772
|
setTimeout(() => {
|
|
63791
63773
|
F(
|
|
63792
63774
|
"Explain Again",
|
|
@@ -63794,18 +63776,18 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
63794
63776
|
p.value,
|
|
63795
63777
|
k.value,
|
|
63796
63778
|
!1,
|
|
63797
|
-
|
|
63779
|
+
ue,
|
|
63798
63780
|
!1
|
|
63799
63781
|
);
|
|
63800
63782
|
}, 300);
|
|
63801
63783
|
}, dt = () => {
|
|
63802
|
-
const ee = L.value.findIndex((
|
|
63784
|
+
const ee = L.value.findIndex((se) => se.isNetworkError);
|
|
63803
63785
|
ee !== -1 && L.value.splice(ee, 1);
|
|
63804
|
-
const J = D(
|
|
63786
|
+
const J = D(Me.value);
|
|
63805
63787
|
J && (J.showButtons = !1), H.value = !1;
|
|
63806
|
-
const
|
|
63807
|
-
M(
|
|
63808
|
-
|
|
63788
|
+
const ue = v.value.startExplaining;
|
|
63789
|
+
M(ue), setTimeout(() => F(
|
|
63790
|
+
ue,
|
|
63809
63791
|
o.value.session_id,
|
|
63810
63792
|
p.value,
|
|
63811
63793
|
k.value
|
|
@@ -63818,7 +63800,7 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
63818
63800
|
eventType: "click"
|
|
63819
63801
|
}), await W2({ subject_id: (ee = o.value) == null ? void 0 : ee.session_id, question: "Not my question" }), gp();
|
|
63820
63802
|
}, Ot = async (ee) => {
|
|
63821
|
-
var J,
|
|
63803
|
+
var J, ue;
|
|
63822
63804
|
if (ee === "upvote")
|
|
63823
63805
|
ne({
|
|
63824
63806
|
eventName: "SnapThink_Result_Feedback",
|
|
@@ -63831,7 +63813,7 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
63831
63813
|
}), await W2({ subject_id: (J = o.value) == null ? void 0 : J.session_id, vote: "upvote" });
|
|
63832
63814
|
else if (ee === "downvote") {
|
|
63833
63815
|
if (le.value) {
|
|
63834
|
-
await W2({ subject_id: (
|
|
63816
|
+
await W2({ subject_id: (ue = o.value) == null ? void 0 : ue.session_id, vote: "downvote" });
|
|
63835
63817
|
return;
|
|
63836
63818
|
}
|
|
63837
63819
|
P.value = !0, G.value = "feedback", Y.value = "angry";
|
|
@@ -63852,13 +63834,13 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
63852
63834
|
k.value
|
|
63853
63835
|
);
|
|
63854
63836
|
}, ht = async (ee, J) => {
|
|
63855
|
-
var
|
|
63837
|
+
var ue, se;
|
|
63856
63838
|
if (ee) {
|
|
63857
63839
|
if (ee === "upvote")
|
|
63858
|
-
await W2({ subject_id: (
|
|
63840
|
+
await W2({ subject_id: (ue = o.value) == null ? void 0 : ue.session_id, vote: "upvote" });
|
|
63859
63841
|
else if (ee === "downvote") {
|
|
63860
63842
|
if (J) {
|
|
63861
|
-
await W2({ subject_id: (
|
|
63843
|
+
await W2({ subject_id: (se = o.value) == null ? void 0 : se.session_id, vote: "downvote" });
|
|
63862
63844
|
return;
|
|
63863
63845
|
}
|
|
63864
63846
|
P.value = !0, G.value = "feedback", Y.value = "angry";
|
|
@@ -63870,18 +63852,18 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
63870
63852
|
c.value = !1, n.value = "";
|
|
63871
63853
|
}, Ce = () => {
|
|
63872
63854
|
setTimeout(() => R(), 100);
|
|
63873
|
-
},
|
|
63874
|
-
var
|
|
63855
|
+
}, Ne = (ee) => ee.pkgName !== "SGpaisou" && ee.snapThinkSource === "correctionNotebook" ? 5 : ee.pkgName !== "SGpaisou" && ee.snapThinkSource === "history" ? 4 : ee.favorite === 1 ? 3 : ee.isOverSevenDays === 0 || ee.isOverSevenDays ? 2 : 1, ne = (ee) => {
|
|
63856
|
+
var ue, se, De, Le, Ie, gt, Je;
|
|
63875
63857
|
const J = {
|
|
63876
|
-
question_id: ((
|
|
63877
|
-
question_url: ((
|
|
63858
|
+
question_id: ((ue = o.value) == null ? void 0 : ue.question_id) || ((se = o.value) == null ? void 0 : se.questionId) || "",
|
|
63859
|
+
question_url: ((De = o.value) == null ? void 0 : De.imagePath) || ((Le = o.value) == null ? void 0 : Le.image_path) || "",
|
|
63878
63860
|
question_text: ((Ie = o.value) == null ? void 0 : Ie.ocrText) || ((gt = o.value) == null ? void 0 : gt.content) || "",
|
|
63879
63861
|
App_platform: ((Je = o.value) == null ? void 0 : Je.pkgName) === "SGpaisou" ? "1" : "2",
|
|
63880
63862
|
...ee
|
|
63881
63863
|
};
|
|
63882
63864
|
Q("messageSend", "dataCollection", J);
|
|
63883
63865
|
}, X = async (ee) => {
|
|
63884
|
-
var
|
|
63866
|
+
var ue, se;
|
|
63885
63867
|
console.log("[AIChatComponent] Received biz_question_info:", ee);
|
|
63886
63868
|
const J = ee;
|
|
63887
63869
|
M9(), a.setQuestionInfo(J);
|
|
@@ -63891,20 +63873,20 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
63891
63873
|
questionImage: J.imagePath,
|
|
63892
63874
|
questionId: J.question_id
|
|
63893
63875
|
});
|
|
63894
|
-
const
|
|
63876
|
+
const De = {
|
|
63895
63877
|
session_id: J.sessionId,
|
|
63896
63878
|
question_id: J.questionId,
|
|
63897
63879
|
content: J.content,
|
|
63898
63880
|
orc_text: J.ocrText,
|
|
63899
63881
|
image_path: J.imagePath
|
|
63900
|
-
}, Le = await hp(
|
|
63882
|
+
}, Le = await hp(De);
|
|
63901
63883
|
if (Le != null && Le.data) {
|
|
63902
63884
|
const Ie = {
|
|
63903
63885
|
...J,
|
|
63904
63886
|
...Le.data,
|
|
63905
|
-
envNumber: J.envNumber || ((
|
|
63887
|
+
envNumber: J.envNumber || ((ue = a.userInfo) == null ? void 0 : ue.envNumber),
|
|
63906
63888
|
imgUrl: J.imagePath,
|
|
63907
|
-
avatar: (
|
|
63889
|
+
avatar: (se = a.userInfo) == null ? void 0 : se.avatar
|
|
63908
63890
|
};
|
|
63909
63891
|
a.updateQuestionInfo(Ie), N(), Z(o.value), w1(() => {
|
|
63910
63892
|
o.value.question_type !== 0 && ne({
|
|
@@ -63912,30 +63894,30 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
63912
63894
|
eventName: "SnapThink_Result_Show",
|
|
63913
63895
|
eventShowName: "结果页曝光",
|
|
63914
63896
|
eventType: "exposure",
|
|
63915
|
-
Result_Show_mode:
|
|
63897
|
+
Result_Show_mode: Ne(o.value),
|
|
63916
63898
|
Result_Show_type: o.value.question_type === 1 ? 1 : 2
|
|
63917
63899
|
});
|
|
63918
63900
|
}), Q("messageSend", "questionData", {
|
|
63919
|
-
question_type: o.value.question_type,
|
|
63920
63901
|
session_id: o.value.session_id
|
|
63921
63902
|
});
|
|
63922
63903
|
}
|
|
63923
63904
|
gG();
|
|
63924
|
-
} catch (
|
|
63925
|
-
console.error("[AIChatComponent] handleSearchQuestion error:",
|
|
63905
|
+
} catch (De) {
|
|
63906
|
+
console.error("[AIChatComponent] handleSearchQuestion error:", De);
|
|
63926
63907
|
}
|
|
63927
63908
|
}, Z = (ee) => {
|
|
63928
|
-
|
|
63909
|
+
const J = ee.question_type ?? ee.questionType;
|
|
63910
|
+
if (J === 1 || J === "1")
|
|
63929
63911
|
return;
|
|
63930
|
-
if (ee.pkgName !== "SGpaisou" &&
|
|
63931
|
-
const
|
|
63912
|
+
if (ee.pkgName !== "SGpaisou" && J !== 0 && J !== "0") {
|
|
63913
|
+
const De = M("Start Explaining");
|
|
63932
63914
|
setTimeout(() => F(
|
|
63933
63915
|
"Start Explaining",
|
|
63934
63916
|
ee.session_id,
|
|
63935
63917
|
p.value,
|
|
63936
63918
|
k.value,
|
|
63937
63919
|
!1,
|
|
63938
|
-
|
|
63920
|
+
De
|
|
63939
63921
|
), 300), Pe.value = !0;
|
|
63940
63922
|
} else
|
|
63941
63923
|
nt(
|
|
@@ -63943,45 +63925,47 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
63943
63925
|
v.value,
|
|
63944
63926
|
p.value,
|
|
63945
63927
|
k.value,
|
|
63946
|
-
() => U(ee, v.value,
|
|
63947
|
-
(
|
|
63948
|
-
P.value =
|
|
63928
|
+
() => U(ee, v.value, Me.value),
|
|
63929
|
+
(De) => {
|
|
63930
|
+
P.value = De;
|
|
63949
63931
|
},
|
|
63950
|
-
(
|
|
63951
|
-
G.value =
|
|
63932
|
+
(De) => {
|
|
63933
|
+
G.value = De;
|
|
63952
63934
|
},
|
|
63953
|
-
(
|
|
63954
|
-
H.value =
|
|
63935
|
+
(De) => {
|
|
63936
|
+
H.value = De;
|
|
63955
63937
|
}
|
|
63956
63938
|
);
|
|
63957
|
-
},
|
|
63958
|
-
var J,
|
|
63939
|
+
}, ce = async () => {
|
|
63940
|
+
var J, ue;
|
|
63959
63941
|
const ee = await Aj(o.value.session_id);
|
|
63960
63942
|
if (ee != null && ee.data) {
|
|
63961
|
-
const
|
|
63943
|
+
const se = {
|
|
63962
63944
|
...o.value,
|
|
63963
63945
|
...ee.data,
|
|
63964
63946
|
envNumber: o.value.envNumber || ((J = a.userInfo) == null ? void 0 : J.envNumber),
|
|
63965
63947
|
imgUrl: o.value.imagePath,
|
|
63966
|
-
avatar: (
|
|
63948
|
+
avatar: (ue = a.userInfo) == null ? void 0 : ue.avatar
|
|
63967
63949
|
};
|
|
63968
|
-
a.updateQuestionInfo(
|
|
63950
|
+
a.updateQuestionInfo(se);
|
|
63969
63951
|
}
|
|
63970
63952
|
};
|
|
63971
63953
|
return l6(() => {
|
|
63972
|
-
var
|
|
63973
|
-
if ((
|
|
63974
|
-
|
|
63954
|
+
var J;
|
|
63955
|
+
if ((J = o.value) != null && J.historyType) {
|
|
63956
|
+
ce(), U(o.value, v.value, Me.value), o.value.isOverSevenDays ? H.value = !0 : H.value = !1;
|
|
63975
63957
|
return;
|
|
63976
63958
|
}
|
|
63977
|
-
if (!i.questionInfo
|
|
63978
|
-
|
|
63979
|
-
|
|
63980
|
-
X(Qe);
|
|
63981
|
-
})) : O9((Qe) => {
|
|
63982
|
-
X(Qe);
|
|
63983
|
-
});
|
|
63959
|
+
if ((!a.userInfo || Object.keys(a.userInfo).length === 0) && i.questionInfo && Object.keys(i.questionInfo).length > 0) {
|
|
63960
|
+
a.updateQuestionInfo(i.questionInfo), X(i.questionInfo);
|
|
63961
|
+
return;
|
|
63984
63962
|
}
|
|
63963
|
+
const ee = hG();
|
|
63964
|
+
ee ? ee.pkgName !== "SGpaisou" ? X(ee) : (X(ee), O9((ue) => {
|
|
63965
|
+
X(ue);
|
|
63966
|
+
})) : O9((ue) => {
|
|
63967
|
+
X(ue);
|
|
63968
|
+
});
|
|
63985
63969
|
}), wu(() => {
|
|
63986
63970
|
it.destroy(), M9();
|
|
63987
63971
|
}), mr(() => i.questionInfo, (ee) => {
|
|
@@ -63991,7 +63975,7 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
63991
63975
|
eventName: "SnapThink_Result_Show",
|
|
63992
63976
|
eventShowName: "结果页曝光",
|
|
63993
63977
|
eventType: "exposure",
|
|
63994
|
-
Result_Show_mode:
|
|
63978
|
+
Result_Show_mode: Ne(ee),
|
|
63995
63979
|
// 1-正常进来, 2-历史记录, 3-收藏题, 4-精准练历史记录, 5-精准练错题本
|
|
63996
63980
|
Result_Show_type: ee.question_type === 1 ? 1 : 2
|
|
63997
63981
|
// 1-result, 2-AI result
|
|
@@ -64016,13 +64000,13 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
64016
64000
|
isSoundOn: p,
|
|
64017
64001
|
handleMuteToggle: V
|
|
64018
64002
|
}), (ee, J) => {
|
|
64019
|
-
var
|
|
64003
|
+
var ue, se, De, Le, Ie, gt, Je, Mt, Zt, Ee, O1, Ze, we, Vt, bt, r1, n1, Lt, Y1, Kt, fe, be, ke, _t, xe, $, Oe, Be, Ve, $e, qe, Ge;
|
|
64020
64004
|
return et(), at("div", {
|
|
64021
|
-
class: $t(["ai-chat-container", (
|
|
64005
|
+
class: $t(["ai-chat-container", (ue = u.value.customClasses) == null ? void 0 : ue.container, { "keyboard-visible": ye(Ye) }]),
|
|
64022
64006
|
style: Nt(l.value.container)
|
|
64023
64007
|
}, [
|
|
64024
|
-
((
|
|
64025
|
-
((
|
|
64008
|
+
((se = o.value) == null ? void 0 : se.question_type) !== 1 ? (et(), at(Xr, { key: 0 }, [
|
|
64009
|
+
((De = o.value) == null ? void 0 : De.pkgName) === "SGpaisou" ? (et(), at("div", {
|
|
64026
64010
|
key: 0,
|
|
64027
64011
|
class: $t(["ai-sticky-header", (Le = u.value.customClasses) == null ? void 0 : Le.header]),
|
|
64028
64012
|
style: Nt(l.value.header)
|
|
@@ -64066,11 +64050,11 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
64066
64050
|
class: $t(["chat-content", (r1 = u.value.customClasses) == null ? void 0 : r1.chatContent]),
|
|
64067
64051
|
style: Nt(l.value.chatContent),
|
|
64068
64052
|
onClick: J[7] || (J[7] = //@ts-ignore
|
|
64069
|
-
(...
|
|
64053
|
+
(...oe) => ye(me) && ye(me)(...oe)),
|
|
64070
64054
|
onScroll: J[8] || (J[8] = //@ts-ignore
|
|
64071
|
-
(...
|
|
64055
|
+
(...oe) => ye(me) && ye(me)(...oe)),
|
|
64072
64056
|
onTouchmove: J[9] || (J[9] = //@ts-ignore
|
|
64073
|
-
(...
|
|
64057
|
+
(...oe) => ye(me) && ye(me)(...oe))
|
|
64074
64058
|
}, [
|
|
64075
64059
|
Se("div", {
|
|
64076
64060
|
class: "chat-messages",
|
|
@@ -64078,15 +64062,15 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
64078
64062
|
ref: C
|
|
64079
64063
|
}, [
|
|
64080
64064
|
Lp(ee.$slots, "message-list-header", {}, void 0, !0),
|
|
64081
|
-
(et(!0), at(Xr, null, G3(ye(L), (
|
|
64065
|
+
(et(!0), at(Xr, null, G3(ye(L), (oe) => {
|
|
64082
64066
|
var mt, Ft, Xt, Gt, Ut, kt, v1, P1, X1, qt, z1, s2, l2, vt, Dr, u2, H2, W1, Z1, xr, c2, F2, O0, M0, N0, R0, w0, I0, H0, F0, k0, P0, B0, V0, G0, U0, j0, q0, Y0, z0, W0, Z0, K0, X0, J0, $0, es, ts, rs, ns, as;
|
|
64083
64067
|
return et(), at("div", {
|
|
64084
|
-
key:
|
|
64085
|
-
class: $t(["message", `${
|
|
64068
|
+
key: oe.id,
|
|
64069
|
+
class: $t(["message", `${oe.type}-message`]),
|
|
64086
64070
|
style: Nt({ marginBottom: (mt = l.value.messages) == null ? void 0 : mt.messageGap })
|
|
64087
64071
|
}, [
|
|
64088
|
-
|
|
64089
|
-
|
|
64072
|
+
oe.type === "ai" && !oe.category ? (et(), at("div", pq, [
|
|
64073
|
+
oe.isNetworkError ? (et(), at("div", fq, [
|
|
64090
64074
|
Se("img", {
|
|
64091
64075
|
src: ye(pt).networkErrorIcon,
|
|
64092
64076
|
alt: "error",
|
|
@@ -64102,12 +64086,12 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
64102
64086
|
key: 1,
|
|
64103
64087
|
class: "message-content",
|
|
64104
64088
|
style: Nt((Ft = l.value.messages) == null ? void 0 : Ft.aiMessage),
|
|
64105
|
-
onTouchstart: (Et) => !ye(H) && !
|
|
64089
|
+
onTouchstart: (Et) => !ye(H) && !oe.disableLongPress && ye(ve)(Et, oe),
|
|
64106
64090
|
onTouchend: J[1] || (J[1] = //@ts-ignore
|
|
64107
64091
|
(...Et) => ye(he) && ye(he)(...Et)),
|
|
64108
64092
|
onTouchcancel: J[2] || (J[2] = //@ts-ignore
|
|
64109
64093
|
(...Et) => ye(he) && ye(he)(...Et)),
|
|
64110
|
-
onMousedown: (Et) => !ye(H) && !
|
|
64094
|
+
onMousedown: (Et) => !ye(H) && !oe.disableLongPress && ye(ve)(Et, oe),
|
|
64111
64095
|
onMouseup: J[3] || (J[3] = //@ts-ignore
|
|
64112
64096
|
(...Et) => ye(he) && ye(he)(...Et)),
|
|
64113
64097
|
onMouseleave: J[4] || (J[4] = //@ts-ignore
|
|
@@ -64115,11 +64099,11 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
64115
64099
|
}, [
|
|
64116
64100
|
Se("span", gq, [
|
|
64117
64101
|
Se("span", {
|
|
64118
|
-
innerHTML: je(
|
|
64102
|
+
innerHTML: je(oe.content)
|
|
64119
64103
|
}, null, 8, _q),
|
|
64120
|
-
|
|
64104
|
+
oe.isTyping || oe.isStreaming ? (et(), at("span", Eq)) : St("", !0)
|
|
64121
64105
|
]),
|
|
64122
|
-
|
|
64106
|
+
oe.showButtons ? (et(), at("div", bq, [
|
|
64123
64107
|
Se("button", {
|
|
64124
64108
|
class: $t((Gt = (Xt = y.value) == null ? void 0 : Xt.notMyQuestion) == null ? void 0 : Gt.className),
|
|
64125
64109
|
style: Nt((kt = (Ut = y.value) == null ? void 0 : Ut.notMyQuestion) == null ? void 0 : kt.style),
|
|
@@ -64131,55 +64115,55 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
64131
64115
|
onClick: dt
|
|
64132
64116
|
}, b2((vt = (l2 = y.value) == null ? void 0 : l2.startExplaining) == null ? void 0 : vt.text), 7)
|
|
64133
64117
|
])) : St("", !0),
|
|
64134
|
-
|
|
64118
|
+
oe.showFeedbackOnly ? (et(), at("div", vq, [
|
|
64135
64119
|
Se("img", {
|
|
64136
|
-
src:
|
|
64137
|
-
onClick: (Et) => ze(
|
|
64138
|
-
alt:
|
|
64120
|
+
src: oe.isPlayingTTS ? g.value.volumeing : g.value.volume,
|
|
64121
|
+
onClick: (Et) => ze(oe.isPlayingTTS ? "volumeing" : "volume", oe),
|
|
64122
|
+
alt: oe.isPlayingTTS ? "播放中" : "播放"
|
|
64139
64123
|
}, null, 8, yq),
|
|
64140
64124
|
Se("img", {
|
|
64141
|
-
src:
|
|
64142
|
-
onClick: (Et) => ze("upvote",
|
|
64143
|
-
alt:
|
|
64125
|
+
src: oe.vote === "upvote" ? g.value.praiseing : g.value.praise,
|
|
64126
|
+
onClick: (Et) => ze("upvote", oe),
|
|
64127
|
+
alt: oe.vote === "upvote" ? "已点赞" : "点赞"
|
|
64144
64128
|
}, null, 8, Sq),
|
|
64145
64129
|
Se("img", {
|
|
64146
|
-
src:
|
|
64147
|
-
onClick: (Et) => ze("downvote",
|
|
64148
|
-
alt:
|
|
64130
|
+
src: oe.vote === "downvote" ? g.value.trampleing : g.value.trample,
|
|
64131
|
+
onClick: (Et) => ze("downvote", oe),
|
|
64132
|
+
alt: oe.vote === "downvote" ? "已不喜欢" : "不喜欢"
|
|
64149
64133
|
}, null, 8, Aq)
|
|
64150
64134
|
])) : St("", !0),
|
|
64151
|
-
|
|
64135
|
+
oe.showFeedbackAndContinue ? (et(), at("div", Lq, [
|
|
64152
64136
|
Se("div", Cq, [
|
|
64153
64137
|
Se("img", {
|
|
64154
|
-
src:
|
|
64155
|
-
onClick: (Et) => ze(
|
|
64156
|
-
alt:
|
|
64138
|
+
src: oe.isPlayingTTS ? g.value.volumeing : g.value.volume,
|
|
64139
|
+
onClick: (Et) => ze(oe.isPlayingTTS ? "volumeing" : "volume", oe),
|
|
64140
|
+
alt: oe.isPlayingTTS ? "播放中" : "播放"
|
|
64157
64141
|
}, null, 8, Dq),
|
|
64158
64142
|
Se("img", {
|
|
64159
|
-
src:
|
|
64160
|
-
onClick: (Et) => ze("upvote",
|
|
64161
|
-
alt:
|
|
64143
|
+
src: oe.vote === "upvote" ? g.value.praiseing : g.value.praise,
|
|
64144
|
+
onClick: (Et) => ze("upvote", oe),
|
|
64145
|
+
alt: oe.vote === "upvote" ? "已点赞" : "点赞"
|
|
64162
64146
|
}, null, 8, xq),
|
|
64163
64147
|
Se("img", {
|
|
64164
|
-
src:
|
|
64165
|
-
onClick: (Et) => ze("downvote",
|
|
64166
|
-
alt:
|
|
64148
|
+
src: oe.vote === "downvote" ? g.value.trampleing : g.value.trample,
|
|
64149
|
+
onClick: (Et) => ze("downvote", oe),
|
|
64150
|
+
alt: oe.vote === "downvote" ? "已不喜欢" : "不喜欢"
|
|
64167
64151
|
}, null, 8, Oq)
|
|
64168
64152
|
]),
|
|
64169
64153
|
Se("button", {
|
|
64170
64154
|
class: $t((u2 = (Dr = y.value) == null ? void 0 : Dr.continue) == null ? void 0 : u2.className),
|
|
64171
64155
|
style: Nt((W1 = (H2 = y.value) == null ? void 0 : H2.continue) == null ? void 0 : W1.style),
|
|
64172
64156
|
disabled: ye(B) && ((Z1 = o.value) == null ? void 0 : Z1.historyType),
|
|
64173
|
-
onClick: (Et) => te(
|
|
64157
|
+
onClick: (Et) => te(oe.id)
|
|
64174
64158
|
}, b2((c2 = (xr = y.value) == null ? void 0 : xr.continue) == null ? void 0 : c2.text), 15, Mq)
|
|
64175
64159
|
])) : St("", !0)
|
|
64176
64160
|
], 44, hq))
|
|
64177
64161
|
])) : St("", !0),
|
|
64178
|
-
|
|
64179
|
-
|
|
64162
|
+
oe.type === "user" ? (et(), at("div", Nq, [
|
|
64163
|
+
oe.sendStatus === "failed" ? (et(), at("div", {
|
|
64180
64164
|
key: 0,
|
|
64181
|
-
class: $t(["resend-icon", { rotating:
|
|
64182
|
-
onClick: (Et) => _e(
|
|
64165
|
+
class: $t(["resend-icon", { rotating: oe.isRotating }]),
|
|
64166
|
+
onClick: (Et) => _e(oe)
|
|
64183
64167
|
}, [
|
|
64184
64168
|
Se("img", {
|
|
64185
64169
|
src: ye(pt).resendIcon,
|
|
@@ -64188,23 +64172,23 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
64188
64172
|
}, null, 8, wq)
|
|
64189
64173
|
], 10, Rq)) : St("", !0),
|
|
64190
64174
|
Se("div", {
|
|
64191
|
-
class: $t(["message-content", { "background-transparent":
|
|
64175
|
+
class: $t(["message-content", { "background-transparent": oe.imageUrl }]),
|
|
64192
64176
|
style: Nt((F2 = l.value.messages) == null ? void 0 : F2.userMessage)
|
|
64193
64177
|
}, [
|
|
64194
|
-
|
|
64178
|
+
oe.imageUrl ? (et(), at("div", Iq, [
|
|
64195
64179
|
(et(), at("img", {
|
|
64196
|
-
key:
|
|
64197
|
-
src:
|
|
64180
|
+
key: oe.imageUrl,
|
|
64181
|
+
src: oe.imageUrl,
|
|
64198
64182
|
alt: "Question Image",
|
|
64199
64183
|
onLoad: Ce,
|
|
64200
|
-
onClick: (Et) => h1(
|
|
64184
|
+
onClick: (Et) => h1(oe.imageUrl)
|
|
64201
64185
|
}, null, 40, Hq))
|
|
64202
64186
|
])) : St("", !0),
|
|
64203
64187
|
Se("div", {
|
|
64204
|
-
innerHTML: je(
|
|
64188
|
+
innerHTML: je(oe.content)
|
|
64205
64189
|
}, null, 8, Fq),
|
|
64206
|
-
|
|
64207
|
-
(et(!0), at(Xr, null, G3(
|
|
64190
|
+
oe.options && oe.options.length > 0 ? (et(), at("div", kq, [
|
|
64191
|
+
(et(!0), at(Xr, null, G3(oe.options, (Et, V6) => (et(), at("span", {
|
|
64208
64192
|
key: V6,
|
|
64209
64193
|
innerHTML: je(Et)
|
|
64210
64194
|
}, null, 8, Pq))), 128))
|
|
@@ -64222,27 +64206,27 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
64222
64206
|
}, null, 12, Vq)
|
|
64223
64207
|
])
|
|
64224
64208
|
])) : St("", !0),
|
|
64225
|
-
|
|
64209
|
+
oe.showCompletionSection || oe.category ? (et(), at("div", Gq, [
|
|
64226
64210
|
Se("div", Uq, [
|
|
64227
64211
|
Se("span", jq, b2((H0 = v.value) == null ? void 0 : H0.wasThisHelpful), 1),
|
|
64228
64212
|
Se("img", {
|
|
64229
64213
|
src: g.value.smiling,
|
|
64230
64214
|
onClick: J[5] || (J[5] = (Et) => Ot("upvote")),
|
|
64231
|
-
class: $t({ voted:
|
|
64232
|
-
alt:
|
|
64215
|
+
class: $t({ voted: oe.vote === "upvote" }),
|
|
64216
|
+
alt: oe.vote === "upvote" ? "已点赞" : "赞"
|
|
64233
64217
|
}, null, 10, qq),
|
|
64234
64218
|
Se("img", {
|
|
64235
64219
|
src: g.value.anger,
|
|
64236
64220
|
onClick: J[6] || (J[6] = (Et) => Ot("downvote")),
|
|
64237
|
-
class: $t({ voted:
|
|
64238
|
-
alt:
|
|
64221
|
+
class: $t({ voted: oe.vote === "downvote" }),
|
|
64222
|
+
alt: oe.vote === "downvote" ? "已踩" : "踩"
|
|
64239
64223
|
}, null, 10, Yq)
|
|
64240
64224
|
]),
|
|
64241
|
-
|
|
64242
|
-
(et(!0), at(Xr, null, G3(
|
|
64225
|
+
oe.followUpQuestions && oe.followUpQuestions.length > 0 ? (et(), at("div", zq, [
|
|
64226
|
+
(et(!0), at(Xr, null, G3(oe.followUpQuestions, (Et, V6) => (et(), at("div", {
|
|
64243
64227
|
key: V6,
|
|
64244
64228
|
class: "follow-up-item",
|
|
64245
|
-
onClick: (fY) => de(Et,
|
|
64229
|
+
onClick: (fY) => de(Et, oe.id)
|
|
64246
64230
|
}, [
|
|
64247
64231
|
Se("img", {
|
|
64248
64232
|
src: g.value.star,
|
|
@@ -64295,22 +64279,22 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
64295
64279
|
J[16] || (J[16] = Se("div", { class: "popup-arrow" }, null, -1)),
|
|
64296
64280
|
Se("div", $q, [
|
|
64297
64281
|
Se("img", {
|
|
64298
|
-
src: (n1 = ye(
|
|
64299
|
-
onClick: J[10] || (J[10] = (
|
|
64282
|
+
src: (n1 = ye(Qe)()) != null && n1.isPlayingTTS ? g.value.volumeing : g.value.volume,
|
|
64283
|
+
onClick: J[10] || (J[10] = (oe) => {
|
|
64300
64284
|
var mt;
|
|
64301
|
-
return ze((mt = ye(
|
|
64285
|
+
return ze((mt = ye(Qe)()) != null && mt.isPlayingTTS ? "volumeing" : "volume", ye(re));
|
|
64302
64286
|
}),
|
|
64303
|
-
alt: (Lt = ye(
|
|
64287
|
+
alt: (Lt = ye(Qe)()) != null && Lt.isPlayingTTS ? "播放中" : "播放"
|
|
64304
64288
|
}, null, 8, eY),
|
|
64305
64289
|
Se("img", {
|
|
64306
|
-
src: ((Y1 = ye(
|
|
64307
|
-
onClick: J[11] || (J[11] = (
|
|
64308
|
-
alt: ((Kt = ye(
|
|
64290
|
+
src: ((Y1 = ye(Qe)()) == null ? void 0 : Y1.vote) === "upvote" ? g.value.praiseing : g.value.praise,
|
|
64291
|
+
onClick: J[11] || (J[11] = (oe) => ze("upvote", ye(re))),
|
|
64292
|
+
alt: ((Kt = ye(Qe)()) == null ? void 0 : Kt.vote) === "upvote" ? "已点赞" : "点赞"
|
|
64309
64293
|
}, null, 8, tY),
|
|
64310
64294
|
Se("img", {
|
|
64311
|
-
src: ((fe = ye(
|
|
64312
|
-
onClick: J[12] || (J[12] = (
|
|
64313
|
-
alt: ((be = ye(
|
|
64295
|
+
src: ((fe = ye(Qe)()) == null ? void 0 : fe.vote) === "downvote" ? g.value.trampleing : g.value.trample,
|
|
64296
|
+
onClick: J[12] || (J[12] = (oe) => ze("downvote", ye(re))),
|
|
64297
|
+
alt: ((be = ye(Qe)()) == null ? void 0 : be.vote) === "downvote" ? "已不喜欢" : "不喜欢"
|
|
64314
64298
|
}, null, 8, rY)
|
|
64315
64299
|
])
|
|
64316
64300
|
], 38)) : St("", !0),
|
|
@@ -64321,25 +64305,25 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
64321
64305
|
bottom: ye(Ye) ? ye(Ke) + 24 + "px" : "auto"
|
|
64322
64306
|
})
|
|
64323
64307
|
}, [
|
|
64324
|
-
((_t = u.value.feedback) == null ? void 0 : _t.show) !== !1 && f.value.length > 0 && ye(Pe) && !ye(Ye) || ((
|
|
64308
|
+
((_t = u.value.feedback) == null ? void 0 : _t.show) !== !1 && f.value.length > 0 && ye(Pe) && !ye(Ye) || ((xe = o.value) == null ? void 0 : xe.pkgName) !== "SGpaisou" ? (et(), at("div", {
|
|
64325
64309
|
key: 0,
|
|
64326
64310
|
class: $t(["feedback-buttons", { disabled: ye(H) || d.value }]),
|
|
64327
64311
|
style: Nt((($ = u.value.feedback) == null ? void 0 : $.containerStyle) || {})
|
|
64328
64312
|
}, [
|
|
64329
|
-
(et(!0), at(Xr, null, G3(f.value, (
|
|
64330
|
-
key:
|
|
64313
|
+
(et(!0), at(Xr, null, G3(f.value, (oe) => (et(), at("button", {
|
|
64314
|
+
key: oe.id,
|
|
64331
64315
|
class: "feedback-btn",
|
|
64332
|
-
style: Nt(
|
|
64333
|
-
onClick: (mt) => ge(
|
|
64316
|
+
style: Nt(oe.style),
|
|
64317
|
+
onClick: (mt) => ge(oe.text),
|
|
64334
64318
|
disabled: ye(H) || d.value
|
|
64335
64319
|
}, [
|
|
64336
|
-
|
|
64320
|
+
oe.icon ? (et(), at("img", {
|
|
64337
64321
|
key: 0,
|
|
64338
|
-
src:
|
|
64322
|
+
src: oe.icon,
|
|
64339
64323
|
alt: "",
|
|
64340
64324
|
style: { width: "24px", height: "24px", "vertical-align": "middle", "margin-right": "8px" }
|
|
64341
64325
|
}, null, 8, aY)) : St("", !0),
|
|
64342
|
-
G6(" " + b2(
|
|
64326
|
+
G6(" " + b2(oe.text), 1)
|
|
64343
64327
|
], 12, nY))), 128))
|
|
64344
64328
|
], 6)) : St("", !0),
|
|
64345
64329
|
Se("div", iY, [
|
|
@@ -64350,12 +64334,12 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
64350
64334
|
Mu(Se("input", {
|
|
64351
64335
|
ref: "mainInputRef",
|
|
64352
64336
|
type: "text",
|
|
64353
|
-
"onUpdate:modelValue": J[14] || (J[14] = (
|
|
64337
|
+
"onUpdate:modelValue": J[14] || (J[14] = (oe) => T.value = oe),
|
|
64354
64338
|
placeholder: S.value,
|
|
64355
64339
|
onKeyup: Cp(j, ["enter"]),
|
|
64356
64340
|
class: "chat-input",
|
|
64357
64341
|
style: Nt(E.value),
|
|
64358
|
-
disabled: ye(H) || ye(B) && ((
|
|
64342
|
+
disabled: ye(H) || ye(B) && ((Oe = o.value) == null ? void 0 : Oe.historyType) || d.value
|
|
64359
64343
|
}, null, 44, oY), [
|
|
64360
64344
|
[Nu, T.value]
|
|
64361
64345
|
]),
|
|
@@ -64410,14 +64394,14 @@ const cq = { class: "ai-avatar" }, Tq = ["src", "alt"], Qq = { class: "ai-info"
|
|
|
64410
64394
|
visible: ye(P),
|
|
64411
64395
|
feedbackType: ye(Y),
|
|
64412
64396
|
subject_id: ye(pe),
|
|
64413
|
-
currentLongPressMessageId: ye(
|
|
64414
|
-
onClose: ye(
|
|
64397
|
+
currentLongPressMessageId: ye(Te),
|
|
64398
|
+
onClose: ye(Re),
|
|
64415
64399
|
onTracking: ne
|
|
64416
64400
|
}, null, 8, ["dialogType", "visible", "feedbackType", "subject_id", "currentLongPressMessageId", "onClose"])
|
|
64417
64401
|
], 6);
|
|
64418
64402
|
};
|
|
64419
64403
|
}
|
|
64420
|
-
}), dY = /* @__PURE__ */ d6(QY, [["__scopeId", "data-v-
|
|
64404
|
+
}), dY = /* @__PURE__ */ d6(QY, [["__scopeId", "data-v-e4f05eeb"]]);
|
|
64421
64405
|
function F4(r) {
|
|
64422
64406
|
const e = { ...Ue };
|
|
64423
64407
|
return r && Object.keys(r).forEach((t) => {
|