@linker-design-plus/tiny-peony 1.3.7 → 1.3.8
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +139 -137
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var vE = Object.defineProperty;
|
|
2
2
|
var xE = (C, e, B) => e in C ? vE(C, e, { enumerable: !0, configurable: !0, writable: !0, value: B }) : C[e] = B;
|
|
3
3
|
var Z = (C, e, B) => xE(C, typeof e != "symbol" ? e + "" : e, B);
|
|
4
|
-
import { getCurrentScope as bE, onScopeDispose as TE, isRef as PE, ref as cA, toValue as Sg, readonly as jE, watch as Vg, computed as GA, shallowRef as
|
|
5
|
-
import { Message as Lg, Row as zE, Col as wI, Input as
|
|
6
|
-
var
|
|
4
|
+
import { getCurrentScope as bE, onScopeDispose as TE, isRef as PE, ref as cA, toValue as Sg, readonly as jE, watch as Vg, computed as GA, shallowRef as nB, getCurrentInstance as yB, onMounted as Mg, toRaw as WE, defineComponent as HA, withDirectives as RI, openBlock as iA, createElementBlock as aA, normalizeClass as NA, unref as wA, withModifiers as dC, Fragment as Eg, renderList as uB, createElementVNode as EA, toDisplayString as Wg, vShow as FI, createVNode as R, render as DC, createBlock as VE, withCtx as ng, createTextVNode as pA, inject as ZA, normalizeStyle as pg, h as lI, nextTick as yC, resolveComponent as xA, mergeProps as NI, reactive as OE, toRefs as XE, onBeforeUnmount as fB, onUnmounted as uC, provide as RB } from "vue";
|
|
5
|
+
import { Message as Lg, Row as zE, Col as wI, Input as iB, Space as ZE, Button as rC, Modal as rB, Tooltip as _E } from "@arco-design/web-vue";
|
|
6
|
+
var fC = (C) => Object.prototype.toString.call(C), $E = (C) => fC(C) === "[object Null]", Ae = (C) => fC(C) === "[object Number]", ge = (C) => fC(C) === "[object String]", aC = (C, e) => e ? typeof e == "string" ? ` ${C}--${e}` : Array.isArray(e) ? e.reduce((B, t) => B + aC(C, t), "") : Object.keys(e).reduce((B, t) => B + (e[t] ? aC(C, t) : ""), "") : "", Ie = (C) => (e, B) => (e && typeof e != "string" && (B = e, e = ""), e = e ? `${C}__${e}` : C, `${e}${aC(e, B)}`), FB = (C) => (e) => {
|
|
7
7
|
const B = `${C}-${e}`;
|
|
8
8
|
return [Ie(B), B];
|
|
9
9
|
};
|
|
10
|
-
const Og = FB("tag"), WA = FB("c"),
|
|
10
|
+
const Og = FB("tag"), WA = FB("c"), RC = (C) => {
|
|
11
11
|
let e = !1;
|
|
12
12
|
return function(...t) {
|
|
13
13
|
e || (requestAnimationFrame(() => {
|
|
@@ -52,7 +52,7 @@ const re = (C, e) => {
|
|
|
52
52
|
}, ae = (C, e) => {
|
|
53
53
|
const { inputType: B } = e;
|
|
54
54
|
C.content.calcTextCount() >= C.maxLength && B.includes("insert") && B !== "insertParagraph" && e.preventDefault();
|
|
55
|
-
},
|
|
55
|
+
}, FC = (C, e) => {
|
|
56
56
|
const B = [], t = C.content.calcTextCount();
|
|
57
57
|
let n = C.maxLength - t;
|
|
58
58
|
if (n <= 0 || !e.length) return [];
|
|
@@ -96,7 +96,7 @@ class se extends ee {
|
|
|
96
96
|
// 增加内容(增量)
|
|
97
97
|
appendContent(B, t) {
|
|
98
98
|
var i;
|
|
99
|
-
const n =
|
|
99
|
+
const n = FC(this._editor, GB(B) ? B : [B]), s = this.getParas()[0], r = (i = s.textContent) != null && i.length ? void 0 : n.shift();
|
|
100
100
|
r && (s.innerHTML = r, t == null || t(s)), n.forEach((h) => {
|
|
101
101
|
const w = document.createElement("p");
|
|
102
102
|
w.innerHTML = h, w.classList.add(JA), this._editorElement.appendChild(w), t == null || t(w);
|
|
@@ -308,11 +308,11 @@ function de() {
|
|
|
308
308
|
}
|
|
309
309
|
return zI(he);
|
|
310
310
|
}
|
|
311
|
-
const De = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
|
311
|
+
const De = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), aB = { randomUUID: De };
|
|
312
312
|
function kB(C, e, B) {
|
|
313
313
|
var n;
|
|
314
|
-
if (
|
|
315
|
-
return
|
|
314
|
+
if (aB.randomUUID && !C)
|
|
315
|
+
return aB.randomUUID();
|
|
316
316
|
C = C || {};
|
|
317
317
|
const t = C.random ?? ((n = C.rng) == null ? void 0 : n.call(C)) ?? de();
|
|
318
318
|
if (t.length < 16)
|
|
@@ -323,7 +323,7 @@ const DI = (C, e) => {
|
|
|
323
323
|
var s;
|
|
324
324
|
const B = window.getSelection(), t = document.createRange(), n = e.lastChild;
|
|
325
325
|
H(n) || H(B) || (t.setStartAfter(n), t.setEndAfter(n), B.removeAllRanges(), B.addRange(t), (s = C.plugin.pausation) == null || s.add({ delay: 1 }));
|
|
326
|
-
},
|
|
326
|
+
}, NC = (C, e) => {
|
|
327
327
|
const B = new InputEvent("beforeinput", {
|
|
328
328
|
bubbles: !0,
|
|
329
329
|
cancelable: !0,
|
|
@@ -526,7 +526,7 @@ class fe extends Ee {
|
|
|
526
526
|
var n, s;
|
|
527
527
|
B.preventDefault(), Fe(this._editorElement);
|
|
528
528
|
const t = ((s = (n = B.clipboardData) == null ? void 0 : n.getData("text/plain")) == null ? void 0 : s.split(/(?:\r?\n){2,}/).map((r) => r.trim()).filter((r) => r)) ?? [];
|
|
529
|
-
|
|
529
|
+
NC(this, FC(this, t));
|
|
530
530
|
}
|
|
531
531
|
_handleBeforeInput(B) {
|
|
532
532
|
ae(this, B);
|
|
@@ -570,7 +570,7 @@ const Jg = (C, e, B, t) => {
|
|
|
570
570
|
for (; t && t !== e; )
|
|
571
571
|
B.push(t), t = t.nextElementSibling;
|
|
572
572
|
return B;
|
|
573
|
-
},
|
|
573
|
+
}, GC = (C) => {
|
|
574
574
|
const e = document.createElement("div");
|
|
575
575
|
return e.setAttribute("class", `editor-${C}-tag-modal`), e;
|
|
576
576
|
}, zA = (C, e, B) => {
|
|
@@ -643,7 +643,7 @@ const Jg = (C, e, B, t) => {
|
|
|
643
643
|
function UB(C) {
|
|
644
644
|
return bE() ? (TE(C), !0) : !1;
|
|
645
645
|
}
|
|
646
|
-
const
|
|
646
|
+
const kC = typeof window < "u" && typeof document < "u";
|
|
647
647
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
648
648
|
const Ge = Object.prototype.toString, ke = (C) => Ge.call(C) === "[object Object]", cC = () => {
|
|
649
649
|
};
|
|
@@ -657,7 +657,7 @@ function Se(C) {
|
|
|
657
657
|
e = void 0, t && await t;
|
|
658
658
|
}, B;
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function sB(C) {
|
|
661
661
|
return Array.isArray(C) ? C : [C];
|
|
662
662
|
}
|
|
663
663
|
function Le(C, e, B = {}) {
|
|
@@ -676,7 +676,7 @@ function Le(C, e, B = {}) {
|
|
|
676
676
|
n.value = !1, s = null, C(...w);
|
|
677
677
|
}, Sg(e));
|
|
678
678
|
}
|
|
679
|
-
return t && (n.value = !0,
|
|
679
|
+
return t && (n.value = !0, kC && h()), UB(i), {
|
|
680
680
|
isPending: jE(n),
|
|
681
681
|
start: h,
|
|
682
682
|
stop: i
|
|
@@ -697,7 +697,7 @@ function yI(C = !1, e = {}) {
|
|
|
697
697
|
}
|
|
698
698
|
return n ? r : [s, r];
|
|
699
699
|
}
|
|
700
|
-
const MB =
|
|
700
|
+
const MB = kC ? window : void 0, pB = kC ? window.navigator : void 0;
|
|
701
701
|
function Ue(C) {
|
|
702
702
|
var e;
|
|
703
703
|
const B = Sg(C);
|
|
@@ -707,7 +707,7 @@ function Ng(...C) {
|
|
|
707
707
|
let e, B, t, n;
|
|
708
708
|
if (typeof C[0] == "string" || Array.isArray(C[0]) ? ([B, t, n] = C, e = MB) : [e, B, t, n] = C, !e)
|
|
709
709
|
return cC;
|
|
710
|
-
B =
|
|
710
|
+
B = sB(B), t = sB(t);
|
|
711
711
|
const s = [], r = () => {
|
|
712
712
|
s.forEach((d) => d()), s.length = 0;
|
|
713
713
|
}, i = (d, y, f, F) => (d.addEventListener(y, f, F), () => d.removeEventListener(y, f, F)), h = Vg(
|
|
@@ -727,7 +727,7 @@ function Ng(...C) {
|
|
|
727
727
|
return UB(w), w;
|
|
728
728
|
}
|
|
729
729
|
function Me() {
|
|
730
|
-
const C = cA(!1), e =
|
|
730
|
+
const C = cA(!1), e = yB();
|
|
731
731
|
return e && Mg(() => {
|
|
732
732
|
C.value = !0;
|
|
733
733
|
}, e), C;
|
|
@@ -736,11 +736,11 @@ function JB(C) {
|
|
|
736
736
|
const e = Me();
|
|
737
737
|
return GA(() => (e.value, !!C()));
|
|
738
738
|
}
|
|
739
|
-
function
|
|
739
|
+
function cB(C, e = {}) {
|
|
740
740
|
const {
|
|
741
741
|
controls: B = !1,
|
|
742
742
|
navigator: t = pB
|
|
743
|
-
} = e, n = JB(() => t && "permissions" in t), s =
|
|
743
|
+
} = e, n = JB(() => t && "permissions" in t), s = nB(), r = typeof C == "string" ? { name: C } : C, i = nB(), h = () => {
|
|
744
744
|
var d, y;
|
|
745
745
|
i.value = (y = (d = s.value) == null ? void 0 : d.state) != null ? y : "prompt";
|
|
746
746
|
};
|
|
@@ -772,7 +772,7 @@ function pe(C = {}) {
|
|
|
772
772
|
source: t,
|
|
773
773
|
copiedDuring: n = 1500,
|
|
774
774
|
legacy: s = !1
|
|
775
|
-
} = C, r = JB(() => e && "clipboard" in e), i =
|
|
775
|
+
} = C, r = JB(() => e && "clipboard" in e), i = cB("clipboard-read"), h = cB("clipboard-write"), w = GA(() => r.value || s), d = cA(""), y = cA(!1), f = Le(() => y.value = !1, n, { immediate: !1 });
|
|
776
776
|
function F() {
|
|
777
777
|
r.value && U(i.value) ? e.clipboard.readText().then((M) => {
|
|
778
778
|
d.value = M;
|
|
@@ -864,7 +864,7 @@ const Ye = ["onClick"], He = /* @__PURE__ */ HA({
|
|
|
864
864
|
onClick: i[0] || (i[0] = dC(() => {
|
|
865
865
|
}, ["stop"]))
|
|
866
866
|
}, [
|
|
867
|
-
(iA(), aA(Eg, null,
|
|
867
|
+
(iA(), aA(Eg, null, uB(s, (h, w) => EA("li", {
|
|
868
868
|
key: w,
|
|
869
869
|
class: NA(wA(n)("item")),
|
|
870
870
|
onClick: (d) => t("ok", d, h.value)
|
|
@@ -905,7 +905,7 @@ const Ye = ["onClick"], He = /* @__PURE__ */ HA({
|
|
|
905
905
|
`
|
|
906
906
|
), e;
|
|
907
907
|
}, be = (C, e) => {
|
|
908
|
-
const B =
|
|
908
|
+
const B = GC(v.pausation), { onOK: t } = e, n = (w, d) => {
|
|
909
909
|
t == null || t(w, d), s();
|
|
910
910
|
}, s = () => {
|
|
911
911
|
h.component && (h.component.props.visible = !1);
|
|
@@ -1042,7 +1042,7 @@ const Pe = { style: { display: "none" } }, je = /* @__PURE__ */ HA({
|
|
|
1042
1042
|
class: NA(wA(n)("content"))
|
|
1043
1043
|
}, {
|
|
1044
1044
|
default: ng(() => [
|
|
1045
|
-
R(wA(
|
|
1045
|
+
R(wA(iB), {
|
|
1046
1046
|
"model-value": B.oldText,
|
|
1047
1047
|
"max-length": 15,
|
|
1048
1048
|
placeholder: "请输入",
|
|
@@ -1055,7 +1055,7 @@ const Pe = { style: { display: "none" } }, je = /* @__PURE__ */ HA({
|
|
|
1055
1055
|
R(wA(wI), { span: 24 }, {
|
|
1056
1056
|
default: ng(() => [
|
|
1057
1057
|
EA("span", Pe, Wg(B.modelValue), 1),
|
|
1058
|
-
R(wA(
|
|
1058
|
+
R(wA(iB), {
|
|
1059
1059
|
modelValue: i.value,
|
|
1060
1060
|
"onUpdate:modelValue": w[0] || (w[0] = (d) => i.value = d),
|
|
1061
1061
|
"max-length": 15,
|
|
@@ -1121,7 +1121,7 @@ const ug = v.pronunciation, [fg] = Og(ug), mB = fg("close"), { x: Oe, y: Xe } =
|
|
|
1121
1121
|
</g>
|
|
1122
1122
|
</g>
|
|
1123
1123
|
</svg>`, Ze = (C, e) => {
|
|
1124
|
-
const B =
|
|
1124
|
+
const B = GC(v.pronunciation), { oldText: t, onOk: n, onCancel: s, onTryPlay: r } = e, i = (u, N, G) => {
|
|
1125
1125
|
n == null || n(u, N, G), w();
|
|
1126
1126
|
}, h = (u) => {
|
|
1127
1127
|
s == null || s(u), w();
|
|
@@ -1230,7 +1230,7 @@ const KB = [
|
|
|
1230
1230
|
"rgba(255, 232, 145, 0.5)",
|
|
1231
1231
|
"rgba(201, 233, 104, 0.5)",
|
|
1232
1232
|
"rgba(255, 206, 190, 0.5)"
|
|
1233
|
-
], Rg = v.anchor, [$e] = Og(Rg),
|
|
1233
|
+
], Rg = v.anchor, [$e] = Og(Rg), lB = /* @__PURE__ */ new Map();
|
|
1234
1234
|
class At extends kI {
|
|
1235
1235
|
constructor(B) {
|
|
1236
1236
|
super();
|
|
@@ -1247,7 +1247,7 @@ class At extends kI {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
remove(B) {
|
|
1249
1249
|
const { top: t, id: n } = B.dataset, s = n.split("_")[1], r = this.data[t].findIndex((y) => y.id === Number(s));
|
|
1250
|
-
r > -1 && (this.data[t].splice(r, 1),
|
|
1250
|
+
r > -1 && (this.data[t].splice(r, 1), lB.delete(s));
|
|
1251
1251
|
const i = Array.from(B.childNodes);
|
|
1252
1252
|
if (i.every((y) => yA(y))) {
|
|
1253
1253
|
zA(B), B.replaceWith(B.textContent);
|
|
@@ -1258,7 +1258,7 @@ class At extends kI {
|
|
|
1258
1258
|
}
|
|
1259
1259
|
_recordAnchor(B, t, n, s) {
|
|
1260
1260
|
const r = this.data[n] ?? (this.data[n] = []);
|
|
1261
|
-
B.id = t, B.top = n, r.push({ background: s, data: B, id: t }),
|
|
1261
|
+
B.id = t, B.top = n, r.push({ background: s, data: B, id: t }), lB.set(String(t), B);
|
|
1262
1262
|
}
|
|
1263
1263
|
get _newAnchorId() {
|
|
1264
1264
|
const B = Object.values(this.data).flat().map((t) => t.id);
|
|
@@ -1389,7 +1389,7 @@ const gt = ["onClick"], It = /* @__PURE__ */ HA({
|
|
|
1389
1389
|
EA("li", {
|
|
1390
1390
|
class: NA(wA(n)("word"))
|
|
1391
1391
|
}, "“" + Wg(B.word) + "”", 3),
|
|
1392
|
-
(iA(!0), aA(Eg, null,
|
|
1392
|
+
(iA(!0), aA(Eg, null, uB(B.data, (h, w) => (iA(), aA("li", {
|
|
1393
1393
|
key: w,
|
|
1394
1394
|
class: NA(wA(n)("item")),
|
|
1395
1395
|
onClick: (d) => s(d, h)
|
|
@@ -1429,7 +1429,7 @@ const gt = ["onClick"], It = /* @__PURE__ */ HA({
|
|
|
1429
1429
|
`
|
|
1430
1430
|
), s;
|
|
1431
1431
|
}, ot = (C, e) => {
|
|
1432
|
-
const B =
|
|
1432
|
+
const B = GC(v.homophones), { word: t, data: n, onOK: s, onCancel: r } = e, i = (F, u) => {
|
|
1433
1433
|
s == null || s(F, u), w();
|
|
1434
1434
|
}, h = (F) => {
|
|
1435
1435
|
r == null || r(F), w();
|
|
@@ -1575,14 +1575,14 @@ const it = {
|
|
|
1575
1575
|
withHighlight: !1,
|
|
1576
1576
|
withAuditHighlight: !1,
|
|
1577
1577
|
withRefineHighlight: !1
|
|
1578
|
-
}, hg = Symbol("Editor"),
|
|
1578
|
+
}, hg = Symbol("Editor"), SC = "highlight", [rt] = Og("audit-highlight"), wC = rt(), vB = (C, e) => Array.from(
|
|
1579
1579
|
C.element.querySelectorAll(`span[data-frag-id="anchor_${e}"]`)
|
|
1580
|
-
), at = (C) => C.classList.contains(
|
|
1580
|
+
), at = (C) => C.classList.contains(SC), st = (C, e) => {
|
|
1581
1581
|
vB(C, e).forEach((t) => {
|
|
1582
|
-
!at(t) && t.classList.add(
|
|
1582
|
+
!at(t) && t.classList.add(SC);
|
|
1583
1583
|
});
|
|
1584
1584
|
}, ct = (C, e) => {
|
|
1585
|
-
vB(C, e).forEach((t) => t.classList.remove(
|
|
1585
|
+
vB(C, e).forEach((t) => t.classList.remove(SC));
|
|
1586
1586
|
}, lt = (C, e) => {
|
|
1587
1587
|
Vg(
|
|
1588
1588
|
() => e.listenAnchorId,
|
|
@@ -1707,7 +1707,7 @@ const it = {
|
|
|
1707
1707
|
};
|
|
1708
1708
|
}, wt = Symbol("ArcoConfigProvider"), ht = "arco", dt = "$arco", Xg = (C) => {
|
|
1709
1709
|
var e, B, t;
|
|
1710
|
-
const n =
|
|
1710
|
+
const n = yB(), s = ZA(wt, void 0);
|
|
1711
1711
|
return `${(t = (B = s == null ? void 0 : s.prefixCls) != null ? B : (e = n == null ? void 0 : n.appContext.config.globalProperties[dt]) == null ? void 0 : e.classPrefix) != null ? t : ht}-${C}`;
|
|
1712
1712
|
}, Dt = Object.prototype.toString;
|
|
1713
1713
|
function zg(C) {
|
|
@@ -2191,7 +2191,7 @@ var Xt = Object.create, xB = Object.defineProperty, zt = Object.getOwnPropertyDe
|
|
|
2191
2191
|
function ZB() {
|
|
2192
2192
|
var A = zB();
|
|
2193
2193
|
function g(Q, o) {
|
|
2194
|
-
return UA = Q.exports, _A = UA.F, gA(),
|
|
2194
|
+
return UA = Q.exports, _A = UA.F, gA(), MC = UA.I, UI(UA.G), $A(), UA;
|
|
2195
2195
|
}
|
|
2196
2196
|
VA();
|
|
2197
2197
|
function I(Q) {
|
|
@@ -2205,14 +2205,14 @@ var Xt = Object.create, xB = Object.defineProperty, zt = Object.getOwnPropertyDe
|
|
|
2205
2205
|
return OA || (OA = TA()), XB(LA, OA, A, I).catch(w), {};
|
|
2206
2206
|
}
|
|
2207
2207
|
var AA, FA;
|
|
2208
|
-
function
|
|
2208
|
+
function LC(A) {
|
|
2209
2209
|
this.name = "ExitStatus", this.message = `Program terminated with exit(${A})`, this.status = A;
|
|
2210
2210
|
}
|
|
2211
2211
|
var MI = (A) => {
|
|
2212
2212
|
for (; A.length > 0; ) A.shift()(i);
|
|
2213
|
-
},
|
|
2213
|
+
}, UC = i.noExitRuntime || !0, II = [], MC, pI = (A) => {
|
|
2214
2214
|
var g = II[A];
|
|
2215
|
-
return g || (A >= II.length && (II.length = A + 1), II[A] = g =
|
|
2215
|
+
return g || (A >= II.length && (II.length = A + 1), II[A] = g = MC.get(A)), g;
|
|
2216
2216
|
}, _B = (A, g) => pI(A)(g);
|
|
2217
2217
|
class $B {
|
|
2218
2218
|
constructor(g) {
|
|
@@ -2252,28 +2252,28 @@ var Xt = Object.create, xB = Object.defineProperty, zt = Object.getOwnPropertyDe
|
|
|
2252
2252
|
return W[this.ptr + 16 >> 2];
|
|
2253
2253
|
}
|
|
2254
2254
|
get_exception_ptr() {
|
|
2255
|
-
var g =
|
|
2255
|
+
var g = eB(this.get_type());
|
|
2256
2256
|
if (g) return W[this.excPtr >> 2];
|
|
2257
2257
|
var I = this.get_adjusted_ptr();
|
|
2258
2258
|
return I !== 0 ? I : this.excPtr;
|
|
2259
2259
|
}
|
|
2260
2260
|
}
|
|
2261
|
-
var
|
|
2261
|
+
var pC = 0, AQ = (A, g, I) => {
|
|
2262
2262
|
var Q = new $B(A);
|
|
2263
|
-
throw Q.init(g, I),
|
|
2263
|
+
throw Q.init(g, I), pC = A, pC;
|
|
2264
2264
|
}, gQ = () => {
|
|
2265
2265
|
Ig("");
|
|
2266
2266
|
}, IQ = (A, g, I, Q, o) => {
|
|
2267
2267
|
}, CQ = () => {
|
|
2268
2268
|
for (var A = new Array(256), g = 0; g < 256; ++g) A[g] = String.fromCharCode(g);
|
|
2269
|
-
|
|
2270
|
-
},
|
|
2271
|
-
for (var g = "", I = A; x[I]; ) g +=
|
|
2269
|
+
JC = A;
|
|
2270
|
+
}, JC, PA = (A) => {
|
|
2271
|
+
for (var g = "", I = A; x[I]; ) g += JC[x[I++]];
|
|
2272
2272
|
return g;
|
|
2273
2273
|
}, dg = {}, sg = {}, CI = {}, Dg, CA = (A) => {
|
|
2274
2274
|
throw new Dg(A);
|
|
2275
|
-
},
|
|
2276
|
-
throw new
|
|
2275
|
+
}, YC, BI = (A) => {
|
|
2276
|
+
throw new YC(A);
|
|
2277
2277
|
}, cg = (A, g, I) => {
|
|
2278
2278
|
A.forEach(function(l) {
|
|
2279
2279
|
CI[l] = g;
|
|
@@ -2318,19 +2318,19 @@ var Xt = Object.create, xB = Object.defineProperty, zt = Object.getOwnPropertyDe
|
|
|
2318
2318
|
return I.$$.ptrType.registeredClass.name;
|
|
2319
2319
|
}
|
|
2320
2320
|
CA(g(A) + " instance already deleted");
|
|
2321
|
-
}, YI = !1,
|
|
2321
|
+
}, YI = !1, HC = (A) => {
|
|
2322
2322
|
}, eQ = (A) => {
|
|
2323
2323
|
A.smartPtr ? A.smartPtrType.rawDestructor(A.smartPtr) : A.ptrType.registeredClass.rawDestructor(A.ptr);
|
|
2324
|
-
},
|
|
2324
|
+
}, mC = (A) => {
|
|
2325
2325
|
A.count.value -= 1;
|
|
2326
2326
|
var g = A.count.value === 0;
|
|
2327
2327
|
g && eQ(A);
|
|
2328
|
-
},
|
|
2328
|
+
}, KC = (A, g, I) => {
|
|
2329
2329
|
if (g === I) return A;
|
|
2330
2330
|
if (I.baseClass === void 0) return null;
|
|
2331
|
-
var Q =
|
|
2331
|
+
var Q = KC(A, g, I.baseClass);
|
|
2332
2332
|
return Q === null ? null : I.downcast(Q);
|
|
2333
|
-
},
|
|
2333
|
+
}, qC = {}, tQ = () => Object.keys(qg).length, oQ = () => {
|
|
2334
2334
|
var A = [];
|
|
2335
2335
|
for (var g in qg) qg.hasOwnProperty(g) && A.push(qg[g]);
|
|
2336
2336
|
return A;
|
|
@@ -2363,15 +2363,15 @@ var Xt = Object.create, xB = Object.defineProperty, zt = Object.getOwnPropertyDe
|
|
|
2363
2363
|
function o() {
|
|
2364
2364
|
return this.isSmartPointer ? QI(this.registeredClass.instancePrototype, { ptrType: this.pointeeType, ptr: g, smartPtrType: this, smartPtr: A }) : QI(this.registeredClass.instancePrototype, { ptrType: this, ptr: A });
|
|
2365
2365
|
}
|
|
2366
|
-
var a = this.registeredClass.getActualType(g), c =
|
|
2366
|
+
var a = this.registeredClass.getActualType(g), c = qC[a];
|
|
2367
2367
|
if (!c) return o.call(this);
|
|
2368
2368
|
var l;
|
|
2369
2369
|
this.isConst ? l = c.constPointerType : l = c.pointerType;
|
|
2370
|
-
var D =
|
|
2370
|
+
var D = KC(g, this.registeredClass, l.registeredClass);
|
|
2371
2371
|
return D === null ? o.call(this) : this.isSmartPointer ? QI(l.registeredClass.instancePrototype, { ptrType: l, ptr: D, smartPtrType: this, smartPtr: A }) : QI(l.registeredClass.instancePrototype, { ptrType: l, ptr: D });
|
|
2372
2372
|
}
|
|
2373
2373
|
var vg = (A) => typeof FinalizationRegistry > "u" ? (vg = (g) => g, A) : (YI = new FinalizationRegistry((g) => {
|
|
2374
|
-
|
|
2374
|
+
mC(g.$$);
|
|
2375
2375
|
}), vg = (g) => {
|
|
2376
2376
|
var I = g.$$, Q = !!I.smartPtr;
|
|
2377
2377
|
if (Q) {
|
|
@@ -2379,7 +2379,7 @@ var Xt = Object.create, xB = Object.defineProperty, zt = Object.getOwnPropertyDe
|
|
|
2379
2379
|
YI.register(g, o, g);
|
|
2380
2380
|
}
|
|
2381
2381
|
return g;
|
|
2382
|
-
},
|
|
2382
|
+
}, HC = (g) => YI.unregister(g), vg(A)), cQ = () => {
|
|
2383
2383
|
Object.assign(EI.prototype, { isAliasOf(A) {
|
|
2384
2384
|
if (!(this instanceof EI) || !(A instanceof EI)) return !1;
|
|
2385
2385
|
var g = this.$$.ptrType.registeredClass, I = this.$$.ptr;
|
|
@@ -2392,7 +2392,7 @@ var Xt = Object.create, xB = Object.defineProperty, zt = Object.getOwnPropertyDe
|
|
|
2392
2392
|
var A = vg(Object.create(Object.getPrototypeOf(this), { $$: { value: EQ(this.$$) } }));
|
|
2393
2393
|
return A.$$.count.value += 1, A.$$.deleteScheduled = !1, A;
|
|
2394
2394
|
}, delete() {
|
|
2395
|
-
this.$$.ptr || JI(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && CA("Object already scheduled for deletion"),
|
|
2395
|
+
this.$$.ptr || JI(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && CA("Object already scheduled for deletion"), HC(this), mC(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
|
|
2396
2396
|
}, isDeleted() {
|
|
2397
2397
|
return !this.$$.ptr;
|
|
2398
2398
|
}, deleteLater() {
|
|
@@ -2500,8 +2500,8 @@ var Xt = Object.create, xB = Object.defineProperty, zt = Object.getOwnPropertyDe
|
|
|
2500
2500
|
return I.prototype = Object.create(A.prototype), I.prototype.constructor = I, I.prototype.toString = function() {
|
|
2501
2501
|
return this.message === void 0 ? this.name : `${this.name}: ${this.message}`;
|
|
2502
2502
|
}, I;
|
|
2503
|
-
},
|
|
2504
|
-
var g =
|
|
2503
|
+
}, vC, xC = (A) => {
|
|
2504
|
+
var g = BB(A), I = PA(g);
|
|
2505
2505
|
return Qg(g), I;
|
|
2506
2506
|
}, nI = (A, g) => {
|
|
2507
2507
|
var I = [], Q = {};
|
|
@@ -2514,7 +2514,7 @@ var Xt = Object.create, xB = Object.defineProperty, zt = Object.getOwnPropertyDe
|
|
|
2514
2514
|
I.push(a), Q[a] = !0;
|
|
2515
2515
|
}
|
|
2516
2516
|
}
|
|
2517
|
-
throw g.forEach(o), new
|
|
2517
|
+
throw g.forEach(o), new vC(`${A}: ` + I.map(xC).join([", "]));
|
|
2518
2518
|
}, LQ = (A, g, I, Q, o, a, c, l, D, k, L, m, J) => {
|
|
2519
2519
|
L = PA(L), a = lg(o, a), l && (l = lg(c, l)), k && (k = lg(D, k)), J = lg(m, J);
|
|
2520
2520
|
var q = dQ(L);
|
|
@@ -2528,15 +2528,15 @@ var Xt = Object.create, xB = Object.defineProperty, zt = Object.getOwnPropertyDe
|
|
|
2528
2528
|
var dA = eI(L, function(...XI) {
|
|
2529
2529
|
if (Object.getPrototypeOf(this) !== S) throw new Dg("Use 'new' to construct " + L);
|
|
2530
2530
|
if (Y.constructor_body === void 0) throw new Dg(L + " has no accessible constructor");
|
|
2531
|
-
var
|
|
2532
|
-
if (
|
|
2533
|
-
return
|
|
2531
|
+
var oB = Y.constructor_body[XI.length];
|
|
2532
|
+
if (oB === void 0) throw new Dg(`Tried to invoke ctor of ${L} with invalid number of parameters (${XI.length}) - expected (${Object.keys(Y.constructor_body).toString()}) parameters instead!`);
|
|
2533
|
+
return oB.apply(this, XI);
|
|
2534
2534
|
}), S = Object.create(lA, { constructor: { value: dA } });
|
|
2535
2535
|
dA.prototype = S;
|
|
2536
2536
|
var Y = new DQ(L, dA, S, J, sA, a, l, k);
|
|
2537
2537
|
Y.baseClass && ((hA = Y.baseClass).__derivedClasses ?? (hA.__derivedClasses = []), Y.baseClass.__derivedClasses.push(Y));
|
|
2538
2538
|
var DA = new oI(L, Y, !0, !1, !1), oA = new oI(L + "*", Y, !1, !1, !1), vA = new oI(L + " const*", Y, !1, !0, !1);
|
|
2539
|
-
return
|
|
2539
|
+
return qC[A] = { pointerType: oA, constPointerType: vA }, FQ(q, dA), [DA, oA, vA];
|
|
2540
2540
|
});
|
|
2541
2541
|
}, UQ = (A) => {
|
|
2542
2542
|
for (; A.length; ) {
|
|
@@ -2544,7 +2544,7 @@ var Xt = Object.create, xB = Object.defineProperty, zt = Object.getOwnPropertyDe
|
|
|
2544
2544
|
I(g);
|
|
2545
2545
|
}
|
|
2546
2546
|
};
|
|
2547
|
-
function
|
|
2547
|
+
function bC(A) {
|
|
2548
2548
|
for (var g = 1; g < A.length; ++g) if (A[g] !== null && A[g].destructorFunction === void 0) return !0;
|
|
2549
2549
|
return !1;
|
|
2550
2550
|
}
|
|
@@ -2557,7 +2557,7 @@ var Xt = Object.create, xB = Object.defineProperty, zt = Object.getOwnPropertyDe
|
|
|
2557
2557
|
return o instanceof Object ? o : Q;
|
|
2558
2558
|
}
|
|
2559
2559
|
function pQ(A, g, I, Q) {
|
|
2560
|
-
for (var o =
|
|
2560
|
+
for (var o = bC(A), a = A.length, c = "", l = "", D = 0; D < a - 2; ++D) c += (D !== 0 ? ", " : "") + "arg" + D, l += (D !== 0 ? ", " : "") + "arg" + D + "Wired";
|
|
2561
2561
|
var k = `
|
|
2562
2562
|
return function (${c}) {
|
|
2563
2563
|
if (arguments.length !== ${a - 2}) {
|
|
@@ -2586,7 +2586,7 @@ return ret;
|
|
|
2586
2586
|
function qI(A, g, I, Q, o, a) {
|
|
2587
2587
|
var c = g.length;
|
|
2588
2588
|
c < 2 && CA("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
2589
|
-
for (var l = g[1] !== null && I !== null, D =
|
|
2589
|
+
for (var l = g[1] !== null && I !== null, D = bC(g), k = g[0].name !== "void", L = [A, CA, Q, o, UQ, g[0], g[1]], m = 0; m < c - 2; ++m) L.push(g[m + 2]);
|
|
2590
2590
|
if (!D) for (var m = l ? 1 : 2; m < g.length; ++m) g[m].destructorFunction !== null && L.push(g[m].destructorFunction);
|
|
2591
2591
|
let [J, q] = pQ(g, l, k, a);
|
|
2592
2592
|
J.push(q);
|
|
@@ -2596,13 +2596,13 @@ return ret;
|
|
|
2596
2596
|
var vI = (A, g) => {
|
|
2597
2597
|
for (var I = [], Q = 0; Q < A; Q++) I.push(W[g + Q * 4 >> 2]);
|
|
2598
2598
|
return I;
|
|
2599
|
-
},
|
|
2599
|
+
}, TC = (A) => {
|
|
2600
2600
|
A = A.trim();
|
|
2601
2601
|
let g = A.indexOf("(");
|
|
2602
2602
|
return g !== -1 ? A.substr(0, g) : A;
|
|
2603
2603
|
}, JQ = (A, g, I, Q, o, a, c, l) => {
|
|
2604
2604
|
var D = vI(I, Q);
|
|
2605
|
-
g = PA(g), g =
|
|
2605
|
+
g = PA(g), g = TC(g), a = lg(o, a), cg([], [A], (k) => {
|
|
2606
2606
|
k = k[0];
|
|
2607
2607
|
var L = `${k.name}.${g}`;
|
|
2608
2608
|
function m() {
|
|
@@ -2628,7 +2628,7 @@ return ret;
|
|
|
2628
2628
|
});
|
|
2629
2629
|
}, HQ = (A, g, I, Q, o, a, c, l, D) => {
|
|
2630
2630
|
var k = vI(I, Q);
|
|
2631
|
-
g = PA(g), g =
|
|
2631
|
+
g = PA(g), g = TC(g), a = lg(o, a), cg([], [A], (L) => {
|
|
2632
2632
|
L = L[0];
|
|
2633
2633
|
var m = `${L.name}.${g}`;
|
|
2634
2634
|
g.startsWith("@@") && (g = Symbol[g.substring(2)]), l && L.registeredClass.pureVirtualFunctions.push(g);
|
|
@@ -2663,7 +2663,7 @@ return ret;
|
|
|
2663
2663
|
} }, vQ = { name: "emscripten::val", fromWireType: (A) => {
|
|
2664
2664
|
var g = iI.toValue(A);
|
|
2665
2665
|
return mQ(A), g;
|
|
2666
|
-
}, toWireType: (A, g) => iI.toHandle(g), argPackAdvance: tg, readValueFromPointer: tI, destructorFunction: null },
|
|
2666
|
+
}, toWireType: (A, g) => iI.toHandle(g), argPackAdvance: tg, readValueFromPointer: tI, destructorFunction: null }, PC = (A) => Cg(A, vQ), bI = (A) => {
|
|
2667
2667
|
if (A === null) return "null";
|
|
2668
2668
|
var g = typeof A;
|
|
2669
2669
|
return g === "object" || g === "array" || g === "function" ? A.toString() : "" + A;
|
|
@@ -2715,7 +2715,7 @@ return ret;
|
|
|
2715
2715
|
}
|
|
2716
2716
|
I = PA(I), Cg(A, { name: I, fromWireType: a, argPackAdvance: tg, readValueFromPointer: a }, { ignoreDuplicateRegistrations: !0 });
|
|
2717
2717
|
}, WQ = (A, g) => {
|
|
2718
|
-
|
|
2718
|
+
PC(A);
|
|
2719
2719
|
}, TI = (A, g, I, Q) => {
|
|
2720
2720
|
if (!(Q > 0)) return 0;
|
|
2721
2721
|
for (var o = I, a = I + Q - 1, c = 0; c < A.length; ++c) {
|
|
@@ -2739,15 +2739,15 @@ return ret;
|
|
|
2739
2739
|
}
|
|
2740
2740
|
}
|
|
2741
2741
|
return g[I] = 0, I - o;
|
|
2742
|
-
},
|
|
2742
|
+
}, jC = (A, g, I) => TI(A, x, g, I), PI = (A) => {
|
|
2743
2743
|
for (var g = 0, I = 0; I < A.length; ++I) {
|
|
2744
2744
|
var Q = A.charCodeAt(I);
|
|
2745
2745
|
Q <= 127 ? g++ : Q <= 2047 ? g += 2 : Q >= 55296 && Q <= 57343 ? (g += 4, ++I) : g += 3;
|
|
2746
2746
|
}
|
|
2747
2747
|
return g;
|
|
2748
|
-
},
|
|
2748
|
+
}, WC = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, yg = (A, g, I) => {
|
|
2749
2749
|
for (var Q = g + I, o = g; A[o] && !(o >= Q); ) ++o;
|
|
2750
|
-
if (o - g > 16 && A.buffer &&
|
|
2750
|
+
if (o - g > 16 && A.buffer && WC) return WC.decode(A.subarray(g, o));
|
|
2751
2751
|
for (var a = ""; g < o; ) {
|
|
2752
2752
|
var c = A[g++];
|
|
2753
2753
|
if (!(c & 128)) {
|
|
@@ -2789,7 +2789,7 @@ return ret;
|
|
|
2789
2789
|
var a, c = typeof o == "string";
|
|
2790
2790
|
c || o instanceof Uint8Array || o instanceof Uint8ClampedArray || o instanceof Int8Array || CA("Cannot pass non-string to std::string"), I && c ? a = PI(o) : a = o.length;
|
|
2791
2791
|
var l = OI(4 + a + 1), D = l + 4;
|
|
2792
|
-
if (W[l >> 2] = a, I && c)
|
|
2792
|
+
if (W[l >> 2] = a, I && c) jC(o, D, a + 1);
|
|
2793
2793
|
else if (c) for (var k = 0; k < a; ++k) {
|
|
2794
2794
|
var L = o.charCodeAt(k);
|
|
2795
2795
|
L > 255 && (Qg(D), CA("String has UTF-16 code units that do not fit in 8 bits")), x[D + k] = L;
|
|
@@ -2799,9 +2799,9 @@ return ret;
|
|
|
2799
2799
|
}, argPackAdvance: tg, readValueFromPointer: tI, destructorFunction(Q) {
|
|
2800
2800
|
Qg(Q);
|
|
2801
2801
|
} });
|
|
2802
|
-
},
|
|
2802
|
+
}, VC = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, OQ = (A, g) => {
|
|
2803
2803
|
for (var I = A, Q = I >> 1, o = Q + g / 2; !(Q >= o) && _[Q]; ) ++Q;
|
|
2804
|
-
if (I = Q << 1, I - A > 32 &&
|
|
2804
|
+
if (I = Q << 1, I - A > 32 && VC) return VC.decode(x.subarray(A, I));
|
|
2805
2805
|
for (var a = "", c = 0; !(c >= g / 2); ++c) {
|
|
2806
2806
|
var l = j[A + c * 2 >> 1];
|
|
2807
2807
|
if (l == 0) break;
|
|
@@ -2866,43 +2866,43 @@ return ret;
|
|
|
2866
2866
|
g = PA(g), Cg(A, { isVoid: !0, name: g, argPackAdvance: 0, fromWireType: () => {
|
|
2867
2867
|
}, toWireType: (I, Q) => {
|
|
2868
2868
|
} });
|
|
2869
|
-
},
|
|
2870
|
-
|
|
2869
|
+
}, OC = () => N || "./this.program", IE = (A, g) => {
|
|
2870
|
+
jC(OC(), A, g);
|
|
2871
2871
|
}, CE = (A, g, I) => x.copyWithin(A, g, g + I), BE = () => {
|
|
2872
|
-
|
|
2872
|
+
UC = !1, zC = 0;
|
|
2873
2873
|
}, QE = (A, g) => {
|
|
2874
2874
|
var I = sg[A];
|
|
2875
|
-
return I === void 0 && CA(`${g} has unknown type ${
|
|
2875
|
+
return I === void 0 && CA(`${g} has unknown type ${xC(A)}`), I;
|
|
2876
2876
|
}, EE = (A, g) => {
|
|
2877
2877
|
A = QE(A, "_emval_take_value");
|
|
2878
2878
|
var I = A.readValueFromPointer(g);
|
|
2879
2879
|
return iI.toHandle(I);
|
|
2880
|
-
}, xg = {},
|
|
2881
|
-
if (A instanceof
|
|
2880
|
+
}, xg = {}, XC = (A) => {
|
|
2881
|
+
if (A instanceof LC || A == "unwind") return p;
|
|
2882
2882
|
G(1, A);
|
|
2883
|
-
},
|
|
2883
|
+
}, zC = 0, ZC = () => UC || zC > 0, _C = (A) => {
|
|
2884
2884
|
var g;
|
|
2885
|
-
p = A,
|
|
2885
|
+
p = A, ZC() || ((g = i.onExit) == null || g.call(i, A), mA = !0), G(A, new LC(A));
|
|
2886
2886
|
}, eE = (A, g) => {
|
|
2887
|
-
p = A,
|
|
2887
|
+
p = A, _C(A);
|
|
2888
2888
|
}, tE = eE, oE = () => {
|
|
2889
|
-
if (!
|
|
2889
|
+
if (!ZC()) try {
|
|
2890
2890
|
tE(p);
|
|
2891
2891
|
} catch (A) {
|
|
2892
|
-
|
|
2892
|
+
XC(A);
|
|
2893
2893
|
}
|
|
2894
2894
|
}, nE = (A) => {
|
|
2895
2895
|
if (!mA) try {
|
|
2896
2896
|
A(), oE();
|
|
2897
2897
|
} catch (g) {
|
|
2898
|
-
|
|
2898
|
+
XC(g);
|
|
2899
2899
|
}
|
|
2900
|
-
},
|
|
2901
|
-
|
|
2900
|
+
}, $C;
|
|
2901
|
+
$C = () => performance.now();
|
|
2902
2902
|
var iE = (A, g) => {
|
|
2903
2903
|
if (xg[A] && (clearTimeout(xg[A].id), delete xg[A]), !g) return 0;
|
|
2904
2904
|
var I = setTimeout(() => {
|
|
2905
|
-
delete xg[A], nE(() =>
|
|
2905
|
+
delete xg[A], nE(() => EB(A, $C()));
|
|
2906
2906
|
}, g);
|
|
2907
2907
|
return xg[A] = { id: I, timeout_ms: g }, 0;
|
|
2908
2908
|
}, rE = (A) => {
|
|
@@ -2911,7 +2911,7 @@ return ret;
|
|
|
2911
2911
|
x.length, rE();
|
|
2912
2912
|
}, jI = {}, bg = () => {
|
|
2913
2913
|
if (!bg.strings) {
|
|
2914
|
-
var A = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", g = { USER: "web_user", LOGNAME: "web_user", PATH: "/", PWD: "/", HOME: "/home/web_user", LANG: A, _:
|
|
2914
|
+
var A = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", g = { USER: "web_user", LOGNAME: "web_user", PATH: "/", PWD: "/", HOME: "/home/web_user", LANG: A, _: OC() };
|
|
2915
2915
|
for (var I in jI) jI[I] === void 0 ? delete g[I] : g[I] = jI[I];
|
|
2916
2916
|
var Q = [];
|
|
2917
2917
|
for (var I in g) Q.push(`${I}=${g[I]}`);
|
|
@@ -2963,7 +2963,7 @@ return ret;
|
|
|
2963
2963
|
} catch {
|
|
2964
2964
|
}
|
|
2965
2965
|
Ig("initRandomDevice");
|
|
2966
|
-
},
|
|
2966
|
+
}, AB = (A) => (AB = wE())(A), Bg = { resolve: (...A) => {
|
|
2967
2967
|
for (var g = "", I = !1, Q = A.length - 1; Q >= -1 && !I; Q--) {
|
|
2968
2968
|
var o = Q >= 0 ? A[Q] : E.cwd();
|
|
2969
2969
|
if (typeof o != "string") throw new TypeError("Arguments to path.resolve must be strings");
|
|
@@ -3058,9 +3058,9 @@ return ret;
|
|
|
3058
3058
|
g === null || g === 10 ? (QA(yg(A.output, 0)), A.output = []) : g != 0 && A.output.push(g);
|
|
3059
3059
|
}, fsync(A) {
|
|
3060
3060
|
A.output && A.output.length > 0 && (QA(yg(A.output, 0)), A.output = []);
|
|
3061
|
-
} } }, dE = (A, g) => (x.fill(0, A, A + g), A), DE = (A, g) => Math.ceil(A / g) * g,
|
|
3061
|
+
} } }, dE = (A, g) => (x.fill(0, A, A + g), A), DE = (A, g) => Math.ceil(A / g) * g, gB = (A) => {
|
|
3062
3062
|
A = DE(A, 65536);
|
|
3063
|
-
var g =
|
|
3063
|
+
var g = QB(65536, A);
|
|
3064
3064
|
return g ? dE(g, A) : 0;
|
|
3065
3065
|
}, z = { ops_table: null, mount(A) {
|
|
3066
3066
|
return z.createNode(null, "/", 16895, 0);
|
|
@@ -3149,7 +3149,7 @@ return ret;
|
|
|
3149
3149
|
var a, c, l = A.node.contents;
|
|
3150
3150
|
if (!(o & 2) && l.buffer === K.buffer) c = !1, a = l.byteOffset;
|
|
3151
3151
|
else {
|
|
3152
|
-
if ((I > 0 || I + g < l.length) && (l.subarray ? l = l.subarray(I, I + g) : l = Array.prototype.slice.call(l, I, I + g)), c = !0, a =
|
|
3152
|
+
if ((I > 0 || I + g < l.length) && (l.subarray ? l = l.subarray(I, I + g) : l = Array.prototype.slice.call(l, I, I + g)), c = !0, a = gB(g), !a) throw new E.ErrnoError(48);
|
|
3153
3153
|
K.set(l, a);
|
|
3154
3154
|
}
|
|
3155
3155
|
return { ptr: a, allocated: c };
|
|
@@ -3657,7 +3657,7 @@ return ret;
|
|
|
3657
3657
|
E.mkdir("/tmp"), E.mkdir("/home"), E.mkdir("/home/web_user");
|
|
3658
3658
|
}, createDefaultDevices() {
|
|
3659
3659
|
E.mkdir("/dev"), E.registerDevice(E.makedev(1, 3), { read: () => 0, write: (Q, o, a, c, l) => c }), E.mkdev("/dev/null", E.makedev(1, 3)), wg.register(E.makedev(5, 0), wg.default_tty_ops), wg.register(E.makedev(6, 0), wg.default_tty1_ops), E.mkdev("/dev/tty", E.makedev(5, 0)), E.mkdev("/dev/tty1", E.makedev(6, 0));
|
|
3660
|
-
var A = new Uint8Array(1024), g = 0, I = () => (g === 0 && (g =
|
|
3660
|
+
var A = new Uint8Array(1024), g = 0, I = () => (g === 0 && (g = AB(A).byteLength), A[--g]);
|
|
3661
3661
|
E.createDevice("/dev", "random", I), E.createDevice("/dev", "urandom", I), E.mkdir("/dev/shm"), E.mkdir("/dev/shm/tmp");
|
|
3662
3662
|
}, createSpecialDirectories() {
|
|
3663
3663
|
E.mkdir("/proc");
|
|
@@ -3831,7 +3831,7 @@ return ret;
|
|
|
3831
3831
|
}
|
|
3832
3832
|
return k.read = (J, q, V, sA, lA) => (E.forceLoadFile(D), m(J, q, V, sA, lA)), k.mmap = (J, q, V, sA, lA) => {
|
|
3833
3833
|
E.forceLoadFile(D);
|
|
3834
|
-
var dA =
|
|
3834
|
+
var dA = gB(q);
|
|
3835
3835
|
if (!dA) throw new E.ErrnoError(48);
|
|
3836
3836
|
return m(J, K, dA, q, V), { ptr: dA, allocated: !0 };
|
|
3837
3837
|
}, D.stream_ops = k, D;
|
|
@@ -3927,9 +3927,9 @@ return ret;
|
|
|
3927
3927
|
var sI = (A) => A % 4 === 0 && (A % 100 !== 0 || A % 400 === 0), JE = (A, g) => {
|
|
3928
3928
|
for (var I = 0, Q = 0; Q <= g; I += A[Q++]) ;
|
|
3929
3929
|
return I;
|
|
3930
|
-
},
|
|
3930
|
+
}, IB = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], CB = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], YE = (A, g) => {
|
|
3931
3931
|
for (var I = new Date(A.getTime()); g > 0; ) {
|
|
3932
|
-
var Q = sI(I.getFullYear()), o = I.getMonth(), a = (Q ?
|
|
3932
|
+
var Q = sI(I.getFullYear()), o = I.getMonth(), a = (Q ? IB : CB)[o];
|
|
3933
3933
|
if (g > a - I.getDate()) g -= a - I.getDate() + 1, I.setDate(1), o < 11 ? I.setMonth(o + 1) : (I.setMonth(0), I.setFullYear(I.getFullYear() + 1));
|
|
3934
3934
|
else return I.setDate(I.getDate() + g), I;
|
|
3935
3935
|
}
|
|
@@ -3982,7 +3982,7 @@ return ret;
|
|
|
3982
3982
|
}, "%d": (S) => J(S.tm_mday, 2), "%e": (S) => m(S.tm_mday, 2, " "), "%g": (S) => sA(S).toString().substring(2), "%G": sA, "%H": (S) => J(S.tm_hour, 2), "%I": (S) => {
|
|
3983
3983
|
var Y = S.tm_hour;
|
|
3984
3984
|
return Y == 0 ? Y = 12 : Y > 12 && (Y -= 12), J(Y, 2);
|
|
3985
|
-
}, "%j": (S) => J(S.tm_mday + JE(sI(S.tm_year + 1900) ?
|
|
3985
|
+
}, "%j": (S) => J(S.tm_mday + JE(sI(S.tm_year + 1900) ? IB : CB, S.tm_mon - 1), 3), "%m": (S) => J(S.tm_mon + 1, 2), "%M": (S) => J(S.tm_min, 2), "%n": () => `
|
|
3986
3986
|
`, "%p": (S) => S.tm_hour >= 0 && S.tm_hour < 12 ? "AM" : "PM", "%S": (S) => J(S.tm_sec, 2), "%t": () => " ", "%u": (S) => S.tm_wday || 7, "%U": (S) => {
|
|
3987
3987
|
var Y = S.tm_yday + 7 - S.tm_wday;
|
|
3988
3988
|
return J(Math.floor(Y / 7), 2);
|
|
@@ -4016,18 +4016,18 @@ return ret;
|
|
|
4016
4016
|
constructor(A) {
|
|
4017
4017
|
super(A), this.name = "BindingError";
|
|
4018
4018
|
}
|
|
4019
|
-
},
|
|
4019
|
+
}, YC = i.InternalError = class extends Error {
|
|
4020
4020
|
constructor(A) {
|
|
4021
4021
|
super(A), this.name = "InternalError";
|
|
4022
4022
|
}
|
|
4023
|
-
}, cQ(), iQ(), RQ(),
|
|
4024
|
-
var qE = { t: _B, f: AQ, x: gQ, p: IQ, k: QQ, j: LQ, d: JQ, o: YQ, c: HQ, E:
|
|
4023
|
+
}, cQ(), iQ(), RQ(), vC = i.UnboundTypeError = SQ(Error, "UnboundTypeError"), qQ(), E.createPreloadedFile = FE, E.staticInit();
|
|
4024
|
+
var qE = { t: _B, f: AQ, x: gQ, p: IQ, k: QQ, j: LQ, d: JQ, o: YQ, c: HQ, E: PC, i: bQ, b: PQ, a: jQ, y: WQ, h: VQ, e: AE, l: gE, v: IE, w: CE, u: BE, m: EE, r: iE, s: aE, B: cE, C: lE, A: GE, z: SE, n: UE, g: pE, D: _C, q: KE }, UA = ZB(), BB = (A) => (BB = UA.H)(A), OI = (A) => (OI = UA.J)(A), Qg = (A) => (Qg = UA.K)(A), QB = (A, g) => (QB = UA.L)(A, g), EB = (A, g) => (EB = UA.M)(A, g), eB = (A) => (eB = UA.N)(A);
|
|
4025
4025
|
i.dynCall_jiji = (A, g, I, Q, o) => (i.dynCall_jiji = UA.O)(A, g, I, Q, o), i.dynCall_viijii = (A, g, I, Q, o, a, c) => (i.dynCall_viijii = UA.P)(A, g, I, Q, o, a, c), i.dynCall_iiiiij = (A, g, I, Q, o, a, c) => (i.dynCall_iiiiij = UA.Q)(A, g, I, Q, o, a, c), i.dynCall_iiiiijj = (A, g, I, Q, o, a, c, l, D) => (i.dynCall_iiiiijj = UA.R)(A, g, I, Q, o, a, c, l, D), i.dynCall_iiiiiijj = (A, g, I, Q, o, a, c, l, D, k) => (i.dynCall_iiiiiijj = UA.S)(A, g, I, Q, o, a, c, l, D, k);
|
|
4026
4026
|
var cI;
|
|
4027
4027
|
rA = function A() {
|
|
4028
|
-
cI ||
|
|
4028
|
+
cI || tB(), cI || (rA = A);
|
|
4029
4029
|
};
|
|
4030
|
-
function
|
|
4030
|
+
function tB() {
|
|
4031
4031
|
if (eg > 0 || (rg(), eg > 0)) return;
|
|
4032
4032
|
function A() {
|
|
4033
4033
|
cI || (cI = !0, i.calledRun = !0, !mA && ($g(), h(i), i.onRuntimeInitialized && i.onRuntimeInitialized(), Yg()));
|
|
@@ -4039,7 +4039,7 @@ return ret;
|
|
|
4039
4039
|
}, 1)) : A();
|
|
4040
4040
|
}
|
|
4041
4041
|
if (i.preInit) for (typeof i.preInit == "function" && (i.preInit = [i.preInit]); i.preInit.length > 0; ) i.preInit.pop()();
|
|
4042
|
-
return
|
|
4042
|
+
return tB(), r = d, r;
|
|
4043
4043
|
};
|
|
4044
4044
|
})();
|
|
4045
4045
|
typeof C == "object" && typeof e == "object" ? e.exports = B : typeof define == "function" && define.amd && define([], () => B);
|
|
@@ -4102,7 +4102,7 @@ const to = [
|
|
|
4102
4102
|
modalClass: QC(w) || Array.isArray(w) ? w : ""
|
|
4103
4103
|
};
|
|
4104
4104
|
return n === "syncConfirm" ? new Promise((u) => {
|
|
4105
|
-
|
|
4105
|
+
rB.confirm(
|
|
4106
4106
|
{
|
|
4107
4107
|
...F,
|
|
4108
4108
|
onOk: () => u(!0),
|
|
@@ -4110,7 +4110,7 @@ const to = [
|
|
|
4110
4110
|
},
|
|
4111
4111
|
r
|
|
4112
4112
|
);
|
|
4113
|
-
}) :
|
|
4113
|
+
}) : rB[n](F, r);
|
|
4114
4114
|
};
|
|
4115
4115
|
return { Modal: to.reduce((n, s) => (n[s] = (r, i) => B(s, r, i), n), {}) };
|
|
4116
4116
|
}, EC = /* @__PURE__ */ HA({
|
|
@@ -4142,7 +4142,7 @@ const to = [
|
|
|
4142
4142
|
maskClosable: !1
|
|
4143
4143
|
}, n = cA(`cmid-${Math.random().toString(32).substring(2, 10)}`);
|
|
4144
4144
|
Vg(() => B.visible, (h) => {
|
|
4145
|
-
h &&
|
|
4145
|
+
h && yC(() => {
|
|
4146
4146
|
const w = document.querySelector(`#${n.value} .arco-modal-body`);
|
|
4147
4147
|
w && (w.scrollTop = 0);
|
|
4148
4148
|
});
|
|
@@ -4447,9 +4447,9 @@ const to = [
|
|
|
4447
4447
|
(O = (M = B == null ? void 0 : B.editorAction.value) == null ? void 0 : M.plugin.pausation) == null || O.add({ delay: U }), d(!1);
|
|
4448
4448
|
}, r = async () => {
|
|
4449
4449
|
let G = "", U = [];
|
|
4450
|
-
G = await (window.microApp ? window.rawWindow.navigator : window.navigator).clipboard.readText(), U = (G == null ? void 0 : G.split(/(?:\r?\n){2,}/).map((O) => O.trim()).filter((O) => O)) ?? [],
|
|
4450
|
+
G = await (window.microApp ? window.rawWindow.navigator : window.navigator).clipboard.readText(), U = (G == null ? void 0 : G.split(/(?:\r?\n){2,}/).map((O) => O.trim()).filter((O) => O)) ?? [], NC(
|
|
4451
4451
|
B.editorCore.value,
|
|
4452
|
-
|
|
4452
|
+
FC(B.editorCore.value, U)
|
|
4453
4453
|
), d(!1);
|
|
4454
4454
|
}, i = cA(), h = cA(!1), w = cA({ zIndex: -10 }), d = (G) => {
|
|
4455
4455
|
h.value = G ?? !h.value, u(!1);
|
|
@@ -4739,7 +4739,7 @@ const An = /* @__PURE__ */ uA(Zo, [["render", $o]]), PB = () => {
|
|
|
4739
4739
|
return (B == null ? void 0 : B.contentVisible.value) && ((d = (w = C.modelValue[C.modelValue.length - 1]) == null ? void 0 : w.content) == null ? void 0 : d.length);
|
|
4740
4740
|
}), s = () => {
|
|
4741
4741
|
var w;
|
|
4742
|
-
H(e) || H(e.editorCore.value) || (B.revertRange(),
|
|
4742
|
+
H(e) || H(e.editorCore.value) || (B.revertRange(), NC(e == null ? void 0 : e.editorCore.value, [((w = B.activedContent.value) == null ? void 0 : w.content) ?? ""]), B.setVisible(!1));
|
|
4743
4743
|
}, r = () => {
|
|
4744
4744
|
var M;
|
|
4745
4745
|
if (H(e) || H(e.editorCore.value)) return;
|
|
@@ -4891,7 +4891,7 @@ function an(C, e) {
|
|
|
4891
4891
|
}, null, -1)
|
|
4892
4892
|
]));
|
|
4893
4893
|
}
|
|
4894
|
-
const jB = /* @__PURE__ */ uA(nn, [["render", an]]), [
|
|
4894
|
+
const jB = /* @__PURE__ */ uA(nn, [["render", an]]), [wB] = WA("refine-input"), sn = /* @__PURE__ */ HA({
|
|
4895
4895
|
name: "RefineInput",
|
|
4896
4896
|
props: {
|
|
4897
4897
|
modelValue: {
|
|
@@ -4915,7 +4915,7 @@ const jB = /* @__PURE__ */ uA(nn, [["render", an]]), [lB] = WA("refine-input"),
|
|
|
4915
4915
|
}));
|
|
4916
4916
|
};
|
|
4917
4917
|
return () => R("div", {
|
|
4918
|
-
class:
|
|
4918
|
+
class: wB("", {
|
|
4919
4919
|
generating: !!(B != null && B.generating.value),
|
|
4920
4920
|
contentable: !!B.content.value.length
|
|
4921
4921
|
})
|
|
@@ -4935,7 +4935,7 @@ const jB = /* @__PURE__ */ uA(nn, [["render", an]]), [lB] = WA("refine-input"),
|
|
|
4935
4935
|
suffix: () => {
|
|
4936
4936
|
var r;
|
|
4937
4937
|
return R("span", {
|
|
4938
|
-
class:
|
|
4938
|
+
class: wB("send", {
|
|
4939
4939
|
disabled: !((r = B == null ? void 0 : B.prompt.value) != null && r.length) && [KA.未生成, KA.生成结束].includes(B.contentState.value)
|
|
4940
4940
|
}),
|
|
4941
4941
|
onClick: () => (B == null ? void 0 : B.contentState.value) === KA.未生成 ? s() : B.abortSession()
|
|
@@ -5073,18 +5073,18 @@ const jB = /* @__PURE__ */ uA(nn, [["render", an]]), [lB] = WA("refine-input"),
|
|
|
5073
5073
|
}, w = (u) => {
|
|
5074
5074
|
var N;
|
|
5075
5075
|
t.value && ((N = B.value) != null && N.contains(u.target) || (e.unhighlightRange(), n(!1)));
|
|
5076
|
-
}, d =
|
|
5076
|
+
}, d = RC(() => {
|
|
5077
5077
|
t.value && i();
|
|
5078
5078
|
});
|
|
5079
5079
|
Mg(() => {
|
|
5080
5080
|
var u;
|
|
5081
5081
|
document.addEventListener("mousedown", w), document.addEventListener("mouseup", h), (u = e.scrollElm.value) == null || u.addEventListener("scroll", d);
|
|
5082
|
-
}),
|
|
5082
|
+
}), uC(() => {
|
|
5083
5083
|
var u;
|
|
5084
5084
|
document.removeEventListener("mousedown", w), document.removeEventListener("mouseup", h), (u = e.scrollElm.value) == null || u.removeEventListener("scroll", d);
|
|
5085
5085
|
});
|
|
5086
5086
|
const y = () => {
|
|
5087
|
-
e.highlightRange(), n(!1), e.showRefineGenerator(),
|
|
5087
|
+
e.highlightRange(), n(!1), e.showRefineGenerator(), yC(() => {
|
|
5088
5088
|
e.calcModalPosition();
|
|
5089
5089
|
});
|
|
5090
5090
|
}, {
|
|
@@ -5120,7 +5120,7 @@ const jB = /* @__PURE__ */ uA(nn, [["render", an]]), [lB] = WA("refine-input"),
|
|
|
5120
5120
|
}
|
|
5121
5121
|
}, null), pA("复制")])]);
|
|
5122
5122
|
}
|
|
5123
|
-
}), dI = 144,
|
|
5123
|
+
}), dI = 144, hB = 200, wn = (C) => {
|
|
5124
5124
|
ZA(hg);
|
|
5125
5125
|
const { refineGeneratorRef: e, scrollElm: B } = C, [t, n] = SA(
|
|
5126
5126
|
Fg.底部
|
|
@@ -5128,26 +5128,28 @@ const jB = /* @__PURE__ */ uA(nn, [["render", an]]), [lB] = WA("refine-input"),
|
|
|
5128
5128
|
gg.顶部对齐
|
|
5129
5129
|
), w = () => {
|
|
5130
5130
|
if (!C.visible.value) return;
|
|
5131
|
-
const y = C.scrollElm.value, f = Number.parseFloat(getComputedStyle(y).height), u = y.scrollTop + f, N = Number.parseFloat(getComputedStyle(e.value).top), G = Number.parseFloat(
|
|
5131
|
+
const y = C.scrollElm.value, f = Number.parseFloat(getComputedStyle(y).height), u = y.scrollTop + f, N = Number.parseFloat(getComputedStyle(e.value).top), G = Number.parseFloat(
|
|
5132
|
+
getComputedStyle(C.refineGeneratorRef.value).height
|
|
5133
|
+
);
|
|
5132
5134
|
console.log(
|
|
5133
5135
|
"---handleModalPositionByScroll ",
|
|
5134
5136
|
`
|
|
5135
5137
|
generatorPosition: ${u > N + G ? Fg.底部 : Fg.顶部}
|
|
5136
5138
|
shortcutPosition: ${u > N + G + dI ? Ag.底部 : Ag.顶部}
|
|
5137
|
-
subShortcutPosition: ${u > N + G + dI +
|
|
5139
|
+
subShortcutPosition: ${u > N + G + dI + hB ? gg.顶部对齐 : gg.底部对齐}
|
|
5138
5140
|
`
|
|
5139
5141
|
), n(
|
|
5140
5142
|
u > N + G ? Fg.底部 : Fg.顶部
|
|
5141
5143
|
), r(
|
|
5142
5144
|
u > N + G + dI + 8 ? Ag.底部 : Ag.顶部
|
|
5143
5145
|
), h(
|
|
5144
|
-
u > N + G + dI +
|
|
5146
|
+
u > N + G + dI + hB ? gg.顶部对齐 : gg.底部对齐
|
|
5145
5147
|
);
|
|
5146
|
-
}, d =
|
|
5148
|
+
}, d = RC(w);
|
|
5147
5149
|
return Mg(() => {
|
|
5148
5150
|
var y;
|
|
5149
5151
|
(y = B.value) == null || y.addEventListener("scroll", d);
|
|
5150
|
-
}),
|
|
5152
|
+
}), uC(() => {
|
|
5151
5153
|
var y;
|
|
5152
5154
|
(y = B.value) == null || y.removeEventListener("scroll", d);
|
|
5153
5155
|
}), {
|
|
@@ -5200,13 +5202,13 @@ const jB = /* @__PURE__ */ uA(nn, [["render", an]]), [lB] = WA("refine-input"),
|
|
|
5200
5202
|
}, O = (rA) => {
|
|
5201
5203
|
var VA;
|
|
5202
5204
|
N.value && ((VA = f.value) != null && VA.contains(rA.target) || (B(), G(!1)));
|
|
5203
|
-
}, P =
|
|
5205
|
+
}, P = RC(() => {
|
|
5204
5206
|
N.value && U();
|
|
5205
5207
|
}), [X, $] = SA(void 0);
|
|
5206
5208
|
Mg(() => {
|
|
5207
5209
|
var rA;
|
|
5208
5210
|
$(document.body.querySelector(".c-editor-container--refinable")), document.addEventListener("mousedown", O), (rA = X.value) == null || rA.addEventListener("scroll", P);
|
|
5209
|
-
}),
|
|
5211
|
+
}), uC(() => {
|
|
5210
5212
|
var rA;
|
|
5211
5213
|
document.removeEventListener("mousedown", O), (rA = X.value) == null || rA.removeEventListener("scroll", P);
|
|
5212
5214
|
});
|
|
@@ -5262,8 +5264,8 @@ const jB = /* @__PURE__ */ uA(nn, [["render", an]]), [lB] = WA("refine-input"),
|
|
|
5262
5264
|
console.log("---onerror ", TA), $A();
|
|
5263
5265
|
}
|
|
5264
5266
|
});
|
|
5265
|
-
function $A() {
|
|
5266
|
-
|
|
5267
|
+
async function $A() {
|
|
5268
|
+
LA(!1), j(KA.未生成), await yC(), AI(), mA(!0);
|
|
5267
5269
|
}
|
|
5268
5270
|
function Ig(TA) {
|
|
5269
5271
|
const OA = JSON.parse(TA.data);
|
|
@@ -5397,7 +5399,7 @@ function Gn(C, e) {
|
|
|
5397
5399
|
}, null, -1)
|
|
5398
5400
|
]), 16);
|
|
5399
5401
|
}
|
|
5400
|
-
const
|
|
5402
|
+
const dB = /* @__PURE__ */ uA(Nn, [["render", Gn]]), [MA] = WA("editor-container"), [jA] = WA("anchor-item"), DB = /* @__PURE__ */ HA({
|
|
5401
5403
|
name: "EditorContainer",
|
|
5402
5404
|
props: {
|
|
5403
5405
|
preTime: {
|
|
@@ -5589,7 +5591,7 @@ const hB = /* @__PURE__ */ uA(Nn, [["render", Gn]]), [MA] = WA("editor-container
|
|
|
5589
5591
|
class: jA("info-speed-volume")
|
|
5590
5592
|
}, [pA("语速: "), IA.speed, pA(", 音量: "), IA.volume]), R("div", {
|
|
5591
5593
|
onClick: () => p(BA, tA, IA)
|
|
5592
|
-
}, [R(
|
|
5594
|
+
}, [R(dB, {
|
|
5593
5595
|
class: jA("info-rem")
|
|
5594
5596
|
}, null)]), RA()]), fA ? R(Eg, null, [R("div", {
|
|
5595
5597
|
class: jA("btn-layer"),
|
|
@@ -5599,7 +5601,7 @@ const hB = /* @__PURE__ */ uA(Nn, [["render", Gn]]), [MA] = WA("editor-container
|
|
|
5599
5601
|
}, [RA()]), R("div", {
|
|
5600
5602
|
class: jA("rem"),
|
|
5601
5603
|
onClick: () => p(BA, tA, IA)
|
|
5602
|
-
}, [R(
|
|
5604
|
+
}, [R(dB, {
|
|
5603
5605
|
class: jA("info-rem")
|
|
5604
5606
|
}, null)])]) : null]));
|
|
5605
5607
|
}, j = () => {
|
|
@@ -5762,9 +5764,9 @@ const hB = /* @__PURE__ */ uA(Nn, [["render", Gn]]), [MA] = WA("editor-container
|
|
|
5762
5764
|
render() {
|
|
5763
5765
|
return this.innerRender();
|
|
5764
5766
|
}
|
|
5765
|
-
}), iC = Object.assign(
|
|
5767
|
+
}), iC = Object.assign(DB, {
|
|
5766
5768
|
install: (C, e) => {
|
|
5767
|
-
C.component("EditorContainer",
|
|
5769
|
+
C.component("EditorContainer", DB);
|
|
5768
5770
|
}
|
|
5769
5771
|
}), Un = Object.assign(iC, {
|
|
5770
5772
|
install: (C) => {
|