st-comp 0.0.185 → 0.0.186
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/es/CustomFunction.cjs +1 -1
- package/es/CustomFunction.js +7 -7
- package/es/VarSelectDialog.cjs +3 -3
- package/es/VarSelectDialog.js +268 -265
- package/es/VarietySearch.cjs +10 -10
- package/es/VarietySearch.js +940 -937
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +6 -6
- package/lib/{index-5955b737.js → index-26fab3e5.js} +26 -20
- package/lib/{python-cf7a203d.js → python-c34eeb40.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/CustomFunction/index.vue +1 -1
- package/packages/VarSelectDialog/index.vue +21 -2
- package/packages/VarietySearch/components/FactorScreen/index.vue +22 -2
package/es/VarietySearch.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { b as Pu, c as Oe, p as Ve, o as $e, k as Re, u as ce, _ as se, e as Me, w as X0, l as r0 } from "./base-62a70f61.js";
|
|
2
2
|
import "./el-tag-914c96a9.js";
|
|
3
3
|
import { E as de, a as fe } from "./el-select-7846f331.js";
|
|
4
|
-
import { h as
|
|
5
|
-
import { U as pe, C as be, u as
|
|
4
|
+
import { h as o0, e as ut, g as et, d as tt, f as nt, l as rt } from "./el-scrollbar-31d72626.js";
|
|
5
|
+
import { U as pe, C as be, u as ot, d as at, g as a0, E as lt } from "./el-popper-05a8f271.js";
|
|
6
6
|
import { b as it, c as ct, E as st, a as dt } from "./el-table-column-cd63e722.js";
|
|
7
7
|
import { E as ft, a as pt } from "./el-message-box-38779ab9.js";
|
|
8
|
-
import { ref as eu, inject as l0, computed as W, defineComponent as
|
|
8
|
+
import { ref as eu, inject as l0, computed as W, defineComponent as vu, openBlock as D, createElementBlock as S, normalizeClass as lu, unref as I, createElementVNode as O, withDirectives as Uu, isRef as i0, withModifiers as qu, vModelRadio as c0, renderSlot as he, createTextVNode as B, toDisplayString as uu, nextTick as me, normalizeStyle as s0, onMounted as d0, provide as bt, reactive as ht, toRefs as mt, watch as Au, Fragment as q, renderList as j, createBlock as L, mergeProps as xt, mergeModels as Nu, useModel as ju, withCtx as F, createVNode as k, createCommentVNode as P, resolveComponent as qe, vShow as f0, pushScopeId as xe, popScopeId as _e, createSlots as Yu } from "vue";
|
|
9
9
|
import { E as ge } from "./el-dialog-c2451c86.js";
|
|
10
10
|
import "./el-overlay-a6f43919.js";
|
|
11
11
|
import { E as _t, a as gt } from "./el-form-item-64c14a64.js";
|
|
@@ -38,7 +38,7 @@ const x0 = Pu({
|
|
|
38
38
|
type: [String, Number, Boolean],
|
|
39
39
|
default: void 0
|
|
40
40
|
},
|
|
41
|
-
size:
|
|
41
|
+
size: o0,
|
|
42
42
|
disabled: Boolean,
|
|
43
43
|
label: {
|
|
44
44
|
type: [String, Number, Boolean],
|
|
@@ -59,14 +59,14 @@ const x0 = Pu({
|
|
|
59
59
|
[pe]: (u) => Oe(u) || Ve(u) || $e(u),
|
|
60
60
|
[be]: (u) => Oe(u) || Ve(u) || $e(u)
|
|
61
61
|
}, g0 = Symbol("radioGroupKey"), k0 = (u, e) => {
|
|
62
|
-
const t = eu(), n = l0(g0, void 0), r = W(() => !!n),
|
|
62
|
+
const t = eu(), n = l0(g0, void 0), r = W(() => !!n), o = W(() => Re(u.value) ? u.label : u.value), l = W({
|
|
63
63
|
get() {
|
|
64
64
|
return r.value ? n.modelValue : u.modelValue;
|
|
65
65
|
},
|
|
66
66
|
set(s) {
|
|
67
|
-
r.value ? n.changeEvent(s) : e && e(pe, s), t.value.checked = u.modelValue ===
|
|
67
|
+
r.value ? n.changeEvent(s) : e && e(pe, s), t.value.checked = u.modelValue === o.value;
|
|
68
68
|
}
|
|
69
|
-
}),
|
|
69
|
+
}), a = ut(W(() => n == null ? void 0 : n.size)), c = et(W(() => n == null ? void 0 : n.disabled)), i = eu(!1), f = W(() => c.value || r.value && l.value !== o.value ? -1 : 0);
|
|
70
70
|
return Ft({
|
|
71
71
|
from: "label act as value",
|
|
72
72
|
replacement: "value",
|
|
@@ -78,33 +78,33 @@ const x0 = Pu({
|
|
|
78
78
|
isGroup: r,
|
|
79
79
|
radioGroup: n,
|
|
80
80
|
focus: i,
|
|
81
|
-
size:
|
|
81
|
+
size: a,
|
|
82
82
|
disabled: c,
|
|
83
83
|
tabIndex: f,
|
|
84
84
|
modelValue: l,
|
|
85
|
-
actualValue:
|
|
85
|
+
actualValue: o
|
|
86
86
|
};
|
|
87
|
-
}, Tt =
|
|
87
|
+
}, Tt = vu({
|
|
88
88
|
name: "ElRadio"
|
|
89
|
-
}), St = /* @__PURE__ */
|
|
89
|
+
}), St = /* @__PURE__ */ vu({
|
|
90
90
|
...Tt,
|
|
91
91
|
props: wt,
|
|
92
92
|
emits: _0,
|
|
93
93
|
setup(u, { emit: e }) {
|
|
94
|
-
const t = u, n = ce("radio"), { radioRef: r, radioGroup:
|
|
94
|
+
const t = u, n = ce("radio"), { radioRef: r, radioGroup: o, focus: l, size: a, disabled: c, modelValue: i, actualValue: f } = k0(t, e);
|
|
95
95
|
function s() {
|
|
96
96
|
me(() => e(be, i.value));
|
|
97
97
|
}
|
|
98
98
|
return (p, m) => {
|
|
99
99
|
var d;
|
|
100
|
-
return D(),
|
|
100
|
+
return D(), S("label", {
|
|
101
101
|
class: lu([
|
|
102
102
|
I(n).b(),
|
|
103
103
|
I(n).is("disabled", I(c)),
|
|
104
104
|
I(n).is("focus", I(l)),
|
|
105
105
|
I(n).is("bordered", p.border),
|
|
106
106
|
I(n).is("checked", I(i) === I(f)),
|
|
107
|
-
I(n).m(I(
|
|
107
|
+
I(n).m(I(a))
|
|
108
108
|
])
|
|
109
109
|
}, [
|
|
110
110
|
O("span", {
|
|
@@ -120,7 +120,7 @@ const x0 = Pu({
|
|
|
120
120
|
"onUpdate:modelValue": (w) => i0(i) ? i.value = w : null,
|
|
121
121
|
class: lu(I(n).e("original")),
|
|
122
122
|
value: I(f),
|
|
123
|
-
name: p.name || ((d = I(
|
|
123
|
+
name: p.name || ((d = I(o)) == null ? void 0 : d.name),
|
|
124
124
|
disabled: I(c),
|
|
125
125
|
checked: I(i) === I(f),
|
|
126
126
|
type: "radio",
|
|
@@ -142,7 +142,7 @@ const x0 = Pu({
|
|
|
142
142
|
}, ["stop"])
|
|
143
143
|
}, [
|
|
144
144
|
he(p.$slots, "default", {}, () => [
|
|
145
|
-
B(
|
|
145
|
+
B(uu(p.label), 1)
|
|
146
146
|
])
|
|
147
147
|
], 42, ["onKeydown"])
|
|
148
148
|
], 2);
|
|
@@ -152,13 +152,13 @@ const x0 = Pu({
|
|
|
152
152
|
var y0 = /* @__PURE__ */ se(St, [["__file", "radio.vue"]]);
|
|
153
153
|
const It = Pu({
|
|
154
154
|
...x0
|
|
155
|
-
}), Ot =
|
|
155
|
+
}), Ot = vu({
|
|
156
156
|
name: "ElRadioButton"
|
|
157
|
-
}), Vt = /* @__PURE__ */
|
|
157
|
+
}), Vt = /* @__PURE__ */ vu({
|
|
158
158
|
...Ot,
|
|
159
159
|
props: It,
|
|
160
160
|
setup(u) {
|
|
161
|
-
const e = u, t = ce("radio"), { radioRef: n, focus: r, size:
|
|
161
|
+
const e = u, t = ce("radio"), { radioRef: n, focus: r, size: o, disabled: l, modelValue: a, radioGroup: c, actualValue: i } = k0(e), f = W(() => ({
|
|
162
162
|
backgroundColor: (c == null ? void 0 : c.fill) || "",
|
|
163
163
|
borderColor: (c == null ? void 0 : c.fill) || "",
|
|
164
164
|
boxShadow: c != null && c.fill ? `-1px 0 0 0 ${c.fill}` : "",
|
|
@@ -166,19 +166,19 @@ const It = Pu({
|
|
|
166
166
|
}));
|
|
167
167
|
return (s, p) => {
|
|
168
168
|
var m;
|
|
169
|
-
return D(),
|
|
169
|
+
return D(), S("label", {
|
|
170
170
|
class: lu([
|
|
171
171
|
I(t).b("button"),
|
|
172
|
-
I(t).is("active", I(
|
|
172
|
+
I(t).is("active", I(a) === I(i)),
|
|
173
173
|
I(t).is("disabled", I(l)),
|
|
174
174
|
I(t).is("focus", I(r)),
|
|
175
|
-
I(t).bm("button", I(
|
|
175
|
+
I(t).bm("button", I(o))
|
|
176
176
|
])
|
|
177
177
|
}, [
|
|
178
178
|
Uu(O("input", {
|
|
179
179
|
ref_key: "radioRef",
|
|
180
180
|
ref: n,
|
|
181
|
-
"onUpdate:modelValue": (d) => i0(
|
|
181
|
+
"onUpdate:modelValue": (d) => i0(a) ? a.value = d : null,
|
|
182
182
|
class: lu(I(t).be("button", "original-radio")),
|
|
183
183
|
value: I(i),
|
|
184
184
|
type: "radio",
|
|
@@ -189,16 +189,16 @@ const It = Pu({
|
|
|
189
189
|
onClick: qu(() => {
|
|
190
190
|
}, ["stop"])
|
|
191
191
|
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
|
|
192
|
-
[c0, I(
|
|
192
|
+
[c0, I(a)]
|
|
193
193
|
]),
|
|
194
194
|
O("span", {
|
|
195
195
|
class: lu(I(t).be("button", "inner")),
|
|
196
|
-
style: s0(I(
|
|
196
|
+
style: s0(I(a) === I(i) ? I(f) : {}),
|
|
197
197
|
onKeydown: qu(() => {
|
|
198
198
|
}, ["stop"])
|
|
199
199
|
}, [
|
|
200
200
|
he(s.$slots, "default", {}, () => [
|
|
201
|
-
B(
|
|
201
|
+
B(uu(s.label), 1)
|
|
202
202
|
])
|
|
203
203
|
], 46, ["onKeydown"])
|
|
204
204
|
], 2);
|
|
@@ -211,7 +211,7 @@ const $t = Pu({
|
|
|
211
211
|
type: String,
|
|
212
212
|
default: void 0
|
|
213
213
|
},
|
|
214
|
-
size:
|
|
214
|
+
size: o0,
|
|
215
215
|
disabled: Boolean,
|
|
216
216
|
modelValue: {
|
|
217
217
|
type: [String, Number, Boolean],
|
|
@@ -240,25 +240,25 @@ const $t = Pu({
|
|
|
240
240
|
type: Me(Object),
|
|
241
241
|
default: () => C0
|
|
242
242
|
},
|
|
243
|
-
...
|
|
243
|
+
...ot(["ariaLabel"])
|
|
244
244
|
}), Rt = _0, C0 = {
|
|
245
245
|
label: "label",
|
|
246
246
|
value: "value",
|
|
247
247
|
disabled: "disabled"
|
|
248
|
-
}, Mt =
|
|
248
|
+
}, Mt = vu({
|
|
249
249
|
name: "ElRadioGroup"
|
|
250
|
-
}), qt = /* @__PURE__ */
|
|
250
|
+
}), qt = /* @__PURE__ */ vu({
|
|
251
251
|
...Mt,
|
|
252
252
|
props: $t,
|
|
253
253
|
emits: Rt,
|
|
254
254
|
setup(u, { emit: e }) {
|
|
255
|
-
const t = u, n = ce("radio"), r = At(),
|
|
255
|
+
const t = u, n = ce("radio"), r = At(), o = eu(), { formItem: l } = tt(), { inputId: a, isLabeledByFormItem: c } = nt(t, {
|
|
256
256
|
formItemContext: l
|
|
257
257
|
}), i = (m) => {
|
|
258
258
|
e(pe, m), me(() => e(be, m));
|
|
259
259
|
};
|
|
260
260
|
d0(() => {
|
|
261
|
-
const m =
|
|
261
|
+
const m = o.value.querySelectorAll("[type=radio]"), d = m[0];
|
|
262
262
|
!Array.from(m).some((w) => w.checked) && d && (d.tabIndex = 0);
|
|
263
263
|
});
|
|
264
264
|
const f = W(() => t.name || r.value), s = W(() => ({
|
|
@@ -277,18 +277,18 @@ const $t = Pu({
|
|
|
277
277
|
changeEvent: i,
|
|
278
278
|
name: f
|
|
279
279
|
})), Au(() => t.modelValue, (m, d) => {
|
|
280
|
-
t.validateEvent && !rt(m, d) && (l == null || l.validate("change").catch((w) =>
|
|
281
|
-
}), (m, d) => (D(),
|
|
282
|
-
id: I(
|
|
280
|
+
t.validateEvent && !rt(m, d) && (l == null || l.validate("change").catch((w) => at()));
|
|
281
|
+
}), (m, d) => (D(), S("div", {
|
|
282
|
+
id: I(a),
|
|
283
283
|
ref_key: "radioGroupRef",
|
|
284
|
-
ref:
|
|
284
|
+
ref: o,
|
|
285
285
|
class: lu(I(n).b("group")),
|
|
286
286
|
role: "radiogroup",
|
|
287
287
|
"aria-label": I(c) ? void 0 : m.ariaLabel || "radio-group",
|
|
288
288
|
"aria-labelledby": I(c) ? I(l).labelId : void 0
|
|
289
289
|
}, [
|
|
290
290
|
he(m.$slots, "default", {}, () => [
|
|
291
|
-
(D(!0),
|
|
291
|
+
(D(!0), S(q, null, j(t.options, (w, $) => (D(), L(y0, xt({ key: $ }, p(w)), null, 16))), 128))
|
|
292
292
|
])
|
|
293
293
|
], 10, ["id", "aria-label", "aria-labelledby"]));
|
|
294
294
|
}
|
|
@@ -926,38 +926,38 @@ function zt(u) {
|
|
|
926
926
|
}
|
|
927
927
|
return e;
|
|
928
928
|
}
|
|
929
|
-
function
|
|
930
|
-
typeof e != "string" && (e =
|
|
929
|
+
function ku(u, e) {
|
|
930
|
+
typeof e != "string" && (e = ku.defaultChars);
|
|
931
931
|
const t = zt(e);
|
|
932
932
|
return u.replace(/(%[a-f0-9]{2})+/gi, function(n) {
|
|
933
933
|
let r = "";
|
|
934
|
-
for (let
|
|
935
|
-
const
|
|
936
|
-
if (
|
|
937
|
-
r += t[
|
|
934
|
+
for (let o = 0, l = n.length; o < l; o += 3) {
|
|
935
|
+
const a = parseInt(n.slice(o + 1, o + 3), 16);
|
|
936
|
+
if (a < 128) {
|
|
937
|
+
r += t[a];
|
|
938
938
|
continue;
|
|
939
939
|
}
|
|
940
|
-
if ((
|
|
941
|
-
const c = parseInt(n.slice(
|
|
940
|
+
if ((a & 224) === 192 && o + 3 < l) {
|
|
941
|
+
const c = parseInt(n.slice(o + 4, o + 6), 16);
|
|
942
942
|
if ((c & 192) === 128) {
|
|
943
|
-
const i =
|
|
944
|
-
i < 128 ? r += "��" : r += String.fromCharCode(i),
|
|
943
|
+
const i = a << 6 & 1984 | c & 63;
|
|
944
|
+
i < 128 ? r += "��" : r += String.fromCharCode(i), o += 3;
|
|
945
945
|
continue;
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
|
-
if ((
|
|
949
|
-
const c = parseInt(n.slice(
|
|
948
|
+
if ((a & 240) === 224 && o + 6 < l) {
|
|
949
|
+
const c = parseInt(n.slice(o + 4, o + 6), 16), i = parseInt(n.slice(o + 7, o + 9), 16);
|
|
950
950
|
if ((c & 192) === 128 && (i & 192) === 128) {
|
|
951
|
-
const f =
|
|
952
|
-
f < 2048 || f >= 55296 && f <= 57343 ? r += "���" : r += String.fromCharCode(f),
|
|
951
|
+
const f = a << 12 & 61440 | c << 6 & 4032 | i & 63;
|
|
952
|
+
f < 2048 || f >= 55296 && f <= 57343 ? r += "���" : r += String.fromCharCode(f), o += 6;
|
|
953
953
|
continue;
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
|
-
if ((
|
|
957
|
-
const c = parseInt(n.slice(
|
|
956
|
+
if ((a & 248) === 240 && o + 9 < l) {
|
|
957
|
+
const c = parseInt(n.slice(o + 4, o + 6), 16), i = parseInt(n.slice(o + 7, o + 9), 16), f = parseInt(n.slice(o + 10, o + 12), 16);
|
|
958
958
|
if ((c & 192) === 128 && (i & 192) === 128 && (f & 192) === 128) {
|
|
959
|
-
let s =
|
|
960
|
-
s < 65536 || s > 1114111 ? r += "����" : (s -= 65536, r += String.fromCharCode(55296 + (s >> 10), 56320 + (s & 1023))),
|
|
959
|
+
let s = a << 18 & 1835008 | c << 12 & 258048 | i << 6 & 4032 | f & 63;
|
|
960
|
+
s < 65536 || s > 1114111 ? r += "����" : (s -= 65536, r += String.fromCharCode(55296 + (s >> 10), 56320 + (s & 1023))), o += 9;
|
|
961
961
|
continue;
|
|
962
962
|
}
|
|
963
963
|
}
|
|
@@ -966,8 +966,8 @@ function gu(u, e) {
|
|
|
966
966
|
return r;
|
|
967
967
|
});
|
|
968
968
|
}
|
|
969
|
-
|
|
970
|
-
|
|
969
|
+
ku.defaultChars = ";/?:@&=+$,#";
|
|
970
|
+
ku.componentChars = "";
|
|
971
971
|
const Pe = {};
|
|
972
972
|
function Lt(u) {
|
|
973
973
|
let e = Pe[u];
|
|
@@ -986,28 +986,28 @@ function Ou(u, e, t) {
|
|
|
986
986
|
typeof e != "string" && (t = e, e = Ou.defaultChars), typeof t > "u" && (t = !0);
|
|
987
987
|
const n = Lt(e);
|
|
988
988
|
let r = "";
|
|
989
|
-
for (let
|
|
990
|
-
const
|
|
991
|
-
if (t &&
|
|
992
|
-
r += u.slice(
|
|
989
|
+
for (let o = 0, l = u.length; o < l; o++) {
|
|
990
|
+
const a = u.charCodeAt(o);
|
|
991
|
+
if (t && a === 37 && o + 2 < l && /^[0-9a-f]{2}$/i.test(u.slice(o + 1, o + 3))) {
|
|
992
|
+
r += u.slice(o, o + 3), o += 2;
|
|
993
993
|
continue;
|
|
994
994
|
}
|
|
995
|
-
if (
|
|
996
|
-
r += n[
|
|
995
|
+
if (a < 128) {
|
|
996
|
+
r += n[a];
|
|
997
997
|
continue;
|
|
998
998
|
}
|
|
999
|
-
if (
|
|
1000
|
-
if (
|
|
1001
|
-
const c = u.charCodeAt(
|
|
999
|
+
if (a >= 55296 && a <= 57343) {
|
|
1000
|
+
if (a >= 55296 && a <= 56319 && o + 1 < l) {
|
|
1001
|
+
const c = u.charCodeAt(o + 1);
|
|
1002
1002
|
if (c >= 56320 && c <= 57343) {
|
|
1003
|
-
r += encodeURIComponent(u[
|
|
1003
|
+
r += encodeURIComponent(u[o] + u[o + 1]), o++;
|
|
1004
1004
|
continue;
|
|
1005
1005
|
}
|
|
1006
1006
|
}
|
|
1007
1007
|
r += "%EF%BF%BD";
|
|
1008
1008
|
continue;
|
|
1009
1009
|
}
|
|
1010
|
-
r += encodeURIComponent(u[
|
|
1010
|
+
r += encodeURIComponent(u[o]);
|
|
1011
1011
|
}
|
|
1012
1012
|
return r;
|
|
1013
1013
|
}
|
|
@@ -1043,24 +1043,24 @@ function De(u, e) {
|
|
|
1043
1043
|
return t.parse(u, e), t;
|
|
1044
1044
|
}
|
|
1045
1045
|
Bu.prototype.parse = function(u, e) {
|
|
1046
|
-
let t, n, r,
|
|
1047
|
-
if (
|
|
1048
|
-
const i = Nt.exec(
|
|
1046
|
+
let t, n, r, o = u;
|
|
1047
|
+
if (o = o.trim(), !e && u.split("#").length === 1) {
|
|
1048
|
+
const i = Nt.exec(o);
|
|
1049
1049
|
if (i)
|
|
1050
1050
|
return this.pathname = i[1], i[2] && (this.search = i[2]), this;
|
|
1051
1051
|
}
|
|
1052
|
-
let l = Pt.exec(
|
|
1053
|
-
if (l && (l = l[0], t = l.toLowerCase(), this.protocol = l,
|
|
1052
|
+
let l = Pt.exec(o);
|
|
1053
|
+
if (l && (l = l[0], t = l.toLowerCase(), this.protocol = l, o = o.substr(l.length)), (e || l || o.match(/^\/\/[^@\/]+@[^@\/]+/)) && (r = o.substr(0, 2) === "//", r && !(l && Ze[l]) && (o = o.substr(2), this.slashes = !0)), !Ze[l] && (r || l && !He[l])) {
|
|
1054
1054
|
let i = -1;
|
|
1055
1055
|
for (let d = 0; d < Ne.length; d++)
|
|
1056
|
-
n =
|
|
1056
|
+
n = o.indexOf(Ne[d]), n !== -1 && (i === -1 || n < i) && (i = n);
|
|
1057
1057
|
let f, s;
|
|
1058
|
-
i === -1 ? s =
|
|
1058
|
+
i === -1 ? s = o.lastIndexOf("@") : s = o.lastIndexOf("@", i), s !== -1 && (f = o.slice(0, s), o = o.slice(s + 1), this.auth = f), i = -1;
|
|
1059
1059
|
for (let d = 0; d < Ue.length; d++)
|
|
1060
|
-
n =
|
|
1061
|
-
i === -1 && (i =
|
|
1062
|
-
const p =
|
|
1063
|
-
|
|
1060
|
+
n = o.indexOf(Ue[d]), n !== -1 && (i === -1 || n < i) && (i = n);
|
|
1061
|
+
i === -1 && (i = o.length), o[i - 1] === ":" && i--;
|
|
1062
|
+
const p = o.slice(0, i);
|
|
1063
|
+
o = o.slice(i), this.parseHost(p), this.hostname = this.hostname || "";
|
|
1064
1064
|
const m = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
1065
1065
|
if (!m) {
|
|
1066
1066
|
const d = this.hostname.split(/\./);
|
|
@@ -1072,7 +1072,7 @@ Bu.prototype.parse = function(u, e) {
|
|
|
1072
1072
|
A.charCodeAt(v) > 127 ? h += "x" : h += A[v];
|
|
1073
1073
|
if (!h.match(je)) {
|
|
1074
1074
|
const v = d.slice(0, w), b = d.slice(w + 1), x = A.match(Jt);
|
|
1075
|
-
x && (v.push(x[1]), b.unshift(x[2])), b.length && (
|
|
1075
|
+
x && (v.push(x[1]), b.unshift(x[2])), b.length && (o = b.join(".") + o), this.hostname = v.join(".");
|
|
1076
1076
|
break;
|
|
1077
1077
|
}
|
|
1078
1078
|
}
|
|
@@ -1080,10 +1080,10 @@ Bu.prototype.parse = function(u, e) {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
this.hostname.length > Gt && (this.hostname = ""), m && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
|
|
1082
1082
|
}
|
|
1083
|
-
const
|
|
1084
|
-
|
|
1085
|
-
const c =
|
|
1086
|
-
return c !== -1 && (this.search =
|
|
1083
|
+
const a = o.indexOf("#");
|
|
1084
|
+
a !== -1 && (this.hash = o.substr(a), o = o.slice(0, a));
|
|
1085
|
+
const c = o.indexOf("?");
|
|
1086
|
+
return c !== -1 && (this.search = o.substr(c), o = o.slice(0, c)), o && (this.pathname = o), He[t] && this.hostname && !this.pathname && (this.pathname = ""), this;
|
|
1087
1087
|
};
|
|
1088
1088
|
Bu.prototype.parseHost = function(u) {
|
|
1089
1089
|
let e = Ut.exec(u);
|
|
@@ -1091,7 +1091,7 @@ Bu.prototype.parseHost = function(u) {
|
|
|
1091
1091
|
};
|
|
1092
1092
|
const Wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1093
1093
|
__proto__: null,
|
|
1094
|
-
decode:
|
|
1094
|
+
decode: ku,
|
|
1095
1095
|
encode: Ou,
|
|
1096
1096
|
format: Ce,
|
|
1097
1097
|
parse: De
|
|
@@ -1161,17 +1161,17 @@ var hu;
|
|
|
1161
1161
|
(function(u) {
|
|
1162
1162
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
1163
1163
|
})(hu || (hu = {}));
|
|
1164
|
-
function
|
|
1164
|
+
function ae(u) {
|
|
1165
1165
|
return u >= Q.ZERO && u <= Q.NINE;
|
|
1166
1166
|
}
|
|
1167
1167
|
function rn(u) {
|
|
1168
1168
|
return u >= Q.UPPER_A && u <= Q.UPPER_F || u >= Q.LOWER_A && u <= Q.LOWER_F;
|
|
1169
1169
|
}
|
|
1170
|
-
function an(u) {
|
|
1171
|
-
return u >= Q.UPPER_A && u <= Q.UPPER_Z || u >= Q.LOWER_A && u <= Q.LOWER_Z || oe(u);
|
|
1172
|
-
}
|
|
1173
1170
|
function on(u) {
|
|
1174
|
-
return u
|
|
1171
|
+
return u >= Q.UPPER_A && u <= Q.UPPER_Z || u >= Q.LOWER_A && u <= Q.LOWER_Z || ae(u);
|
|
1172
|
+
}
|
|
1173
|
+
function an(u) {
|
|
1174
|
+
return u === Q.EQUALS || on(u);
|
|
1175
1175
|
}
|
|
1176
1176
|
var G;
|
|
1177
1177
|
(function(u) {
|
|
@@ -1228,8 +1228,8 @@ class ln {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
addToNumericResult(e, t, n, r) {
|
|
1230
1230
|
if (t !== n) {
|
|
1231
|
-
const
|
|
1232
|
-
this.result = this.result * Math.pow(r,
|
|
1231
|
+
const o = n - t;
|
|
1232
|
+
this.result = this.result * Math.pow(r, o) + parseInt(e.substr(t, o), r), this.consumed += o;
|
|
1233
1233
|
}
|
|
1234
1234
|
}
|
|
1235
1235
|
/**
|
|
@@ -1245,7 +1245,7 @@ class ln {
|
|
|
1245
1245
|
const n = t;
|
|
1246
1246
|
for (; t < e.length; ) {
|
|
1247
1247
|
const r = e.charCodeAt(t);
|
|
1248
|
-
if (
|
|
1248
|
+
if (ae(r) || rn(r))
|
|
1249
1249
|
t += 1;
|
|
1250
1250
|
else
|
|
1251
1251
|
return this.addToNumericResult(e, n, t, 16), this.emitNumericEntity(r, 3);
|
|
@@ -1265,7 +1265,7 @@ class ln {
|
|
|
1265
1265
|
const n = t;
|
|
1266
1266
|
for (; t < e.length; ) {
|
|
1267
1267
|
const r = e.charCodeAt(t);
|
|
1268
|
-
if (
|
|
1268
|
+
if (ae(r))
|
|
1269
1269
|
t += 1;
|
|
1270
1270
|
else
|
|
1271
1271
|
return this.addToNumericResult(e, n, t, 10), this.emitNumericEntity(r, 2);
|
|
@@ -1306,17 +1306,17 @@ class ln {
|
|
|
1306
1306
|
*/
|
|
1307
1307
|
stateNamedEntity(e, t) {
|
|
1308
1308
|
const { decodeTree: n } = this;
|
|
1309
|
-
let r = n[this.treeIndex],
|
|
1309
|
+
let r = n[this.treeIndex], o = (r & hu.VALUE_LENGTH) >> 14;
|
|
1310
1310
|
for (; t < e.length; t++, this.excess++) {
|
|
1311
1311
|
const l = e.charCodeAt(t);
|
|
1312
|
-
if (this.treeIndex = cn(n, r, this.treeIndex + Math.max(1,
|
|
1312
|
+
if (this.treeIndex = cn(n, r, this.treeIndex + Math.max(1, o), l), this.treeIndex < 0)
|
|
1313
1313
|
return this.result === 0 || // If we are parsing an attribute
|
|
1314
1314
|
this.decodeMode === bu.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
1315
|
-
(
|
|
1316
|
-
|
|
1317
|
-
if (r = n[this.treeIndex],
|
|
1315
|
+
(o === 0 || // And there should be no invalid characters.
|
|
1316
|
+
an(l)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1317
|
+
if (r = n[this.treeIndex], o = (r & hu.VALUE_LENGTH) >> 14, o !== 0) {
|
|
1318
1318
|
if (l === Q.SEMI)
|
|
1319
|
-
return this.emitNamedEntityData(this.treeIndex,
|
|
1319
|
+
return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
|
|
1320
1320
|
this.decodeMode !== bu.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
@@ -1371,40 +1371,40 @@ class ln {
|
|
|
1371
1371
|
function S0(u) {
|
|
1372
1372
|
let e = "";
|
|
1373
1373
|
const t = new ln(u, (n) => e += en(n));
|
|
1374
|
-
return function(r,
|
|
1375
|
-
let l = 0,
|
|
1376
|
-
for (; (
|
|
1377
|
-
e += r.slice(l,
|
|
1374
|
+
return function(r, o) {
|
|
1375
|
+
let l = 0, a = 0;
|
|
1376
|
+
for (; (a = r.indexOf("&", a)) >= 0; ) {
|
|
1377
|
+
e += r.slice(l, a), t.startEntity(o);
|
|
1378
1378
|
const i = t.write(
|
|
1379
1379
|
r,
|
|
1380
1380
|
// Skip the "&"
|
|
1381
|
-
|
|
1381
|
+
a + 1
|
|
1382
1382
|
);
|
|
1383
1383
|
if (i < 0) {
|
|
1384
|
-
l =
|
|
1384
|
+
l = a + t.end();
|
|
1385
1385
|
break;
|
|
1386
1386
|
}
|
|
1387
|
-
l =
|
|
1387
|
+
l = a + i, a = i === 0 ? l + 1 : l;
|
|
1388
1388
|
}
|
|
1389
1389
|
const c = e + r.slice(l);
|
|
1390
1390
|
return e = "", c;
|
|
1391
1391
|
};
|
|
1392
1392
|
}
|
|
1393
1393
|
function cn(u, e, t, n) {
|
|
1394
|
-
const r = (e & hu.BRANCH_LENGTH) >> 7,
|
|
1394
|
+
const r = (e & hu.BRANCH_LENGTH) >> 7, o = e & hu.JUMP_TABLE;
|
|
1395
1395
|
if (r === 0)
|
|
1396
|
-
return
|
|
1397
|
-
if (
|
|
1398
|
-
const c = n -
|
|
1396
|
+
return o !== 0 && n === o ? t : -1;
|
|
1397
|
+
if (o) {
|
|
1398
|
+
const c = n - o;
|
|
1399
1399
|
return c < 0 || c >= r ? -1 : u[t + c] - 1;
|
|
1400
1400
|
}
|
|
1401
|
-
let l = t,
|
|
1402
|
-
for (; l <=
|
|
1403
|
-
const c = l +
|
|
1401
|
+
let l = t, a = l + r - 1;
|
|
1402
|
+
for (; l <= a; ) {
|
|
1403
|
+
const c = l + a >>> 1, i = u[c];
|
|
1404
1404
|
if (i < n)
|
|
1405
1405
|
l = c + 1;
|
|
1406
1406
|
else if (i > n)
|
|
1407
|
-
|
|
1407
|
+
a = c - 1;
|
|
1408
1408
|
else
|
|
1409
1409
|
return u[c + r];
|
|
1410
1410
|
}
|
|
@@ -1462,7 +1462,7 @@ function xn(u, e) {
|
|
|
1462
1462
|
function _n(u) {
|
|
1463
1463
|
return u.indexOf("\\") < 0 ? u : u.replace(V0, "$1");
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function yu(u) {
|
|
1466
1466
|
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(hn, function(e, t, n) {
|
|
1467
1467
|
return t || xn(e, n);
|
|
1468
1468
|
});
|
|
@@ -1571,18 +1571,18 @@ const En = { mdurl: Wt, ucmicro: Yt }, Fn = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
1571
1571
|
isWhiteSpace: wu,
|
|
1572
1572
|
lib: En,
|
|
1573
1573
|
normalizeReference: Hu,
|
|
1574
|
-
unescapeAll:
|
|
1574
|
+
unescapeAll: yu,
|
|
1575
1575
|
unescapeMd: _n
|
|
1576
1576
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1577
1577
|
function An(u, e, t) {
|
|
1578
|
-
let n, r,
|
|
1579
|
-
const
|
|
1580
|
-
for (u.pos = e + 1, n = 1; u.pos <
|
|
1581
|
-
if (
|
|
1578
|
+
let n, r, o, l;
|
|
1579
|
+
const a = u.posMax, c = u.pos;
|
|
1580
|
+
for (u.pos = e + 1, n = 1; u.pos < a; ) {
|
|
1581
|
+
if (o = u.src.charCodeAt(u.pos), o === 93 && (n--, n === 0)) {
|
|
1582
1582
|
r = !0;
|
|
1583
1583
|
break;
|
|
1584
1584
|
}
|
|
1585
|
-
if (l = u.pos, u.md.inline.skipToken(u),
|
|
1585
|
+
if (l = u.pos, u.md.inline.skipToken(u), o === 91) {
|
|
1586
1586
|
if (l === u.pos - 1)
|
|
1587
1587
|
n++;
|
|
1588
1588
|
else if (t)
|
|
@@ -1594,7 +1594,7 @@ function An(u, e, t) {
|
|
|
1594
1594
|
}
|
|
1595
1595
|
function wn(u, e, t) {
|
|
1596
1596
|
let n, r = e;
|
|
1597
|
-
const
|
|
1597
|
+
const o = {
|
|
1598
1598
|
ok: !1,
|
|
1599
1599
|
pos: 0,
|
|
1600
1600
|
str: ""
|
|
@@ -1602,16 +1602,16 @@ function wn(u, e, t) {
|
|
|
1602
1602
|
if (u.charCodeAt(r) === 60) {
|
|
1603
1603
|
for (r++; r < t; ) {
|
|
1604
1604
|
if (n = u.charCodeAt(r), n === 10 || n === 60)
|
|
1605
|
-
return
|
|
1605
|
+
return o;
|
|
1606
1606
|
if (n === 62)
|
|
1607
|
-
return
|
|
1607
|
+
return o.pos = r + 1, o.str = yu(u.slice(e + 1, r)), o.ok = !0, o;
|
|
1608
1608
|
if (n === 92 && r + 1 < t) {
|
|
1609
1609
|
r += 2;
|
|
1610
1610
|
continue;
|
|
1611
1611
|
}
|
|
1612
1612
|
r++;
|
|
1613
1613
|
}
|
|
1614
|
-
return
|
|
1614
|
+
return o;
|
|
1615
1615
|
}
|
|
1616
1616
|
let l = 0;
|
|
1617
1617
|
for (; r < t && (n = u.charCodeAt(r), !(n === 32 || n < 32 || n === 127)); ) {
|
|
@@ -1622,7 +1622,7 @@ function wn(u, e, t) {
|
|
|
1622
1622
|
continue;
|
|
1623
1623
|
}
|
|
1624
1624
|
if (n === 40 && (l++, l > 32))
|
|
1625
|
-
return
|
|
1625
|
+
return o;
|
|
1626
1626
|
if (n === 41) {
|
|
1627
1627
|
if (l === 0)
|
|
1628
1628
|
break;
|
|
@@ -1630,10 +1630,10 @@ function wn(u, e, t) {
|
|
|
1630
1630
|
}
|
|
1631
1631
|
r++;
|
|
1632
1632
|
}
|
|
1633
|
-
return e === r || l !== 0 || (
|
|
1633
|
+
return e === r || l !== 0 || (o.str = yu(u.slice(e, r)), o.pos = r, o.ok = !0), o;
|
|
1634
1634
|
}
|
|
1635
1635
|
function Tn(u, e, t, n) {
|
|
1636
|
-
let r,
|
|
1636
|
+
let r, o = e;
|
|
1637
1637
|
const l = {
|
|
1638
1638
|
// if `true`, this is a valid link title
|
|
1639
1639
|
ok: !1,
|
|
@@ -1649,21 +1649,21 @@ function Tn(u, e, t, n) {
|
|
|
1649
1649
|
if (n)
|
|
1650
1650
|
l.str = n.str, l.marker = n.marker;
|
|
1651
1651
|
else {
|
|
1652
|
-
if (
|
|
1652
|
+
if (o >= t)
|
|
1653
1653
|
return l;
|
|
1654
|
-
let
|
|
1655
|
-
if (
|
|
1654
|
+
let a = u.charCodeAt(o);
|
|
1655
|
+
if (a !== 34 && a !== 39 && a !== 40)
|
|
1656
1656
|
return l;
|
|
1657
|
-
e++,
|
|
1657
|
+
e++, o++, a === 40 && (a = 41), l.marker = a;
|
|
1658
1658
|
}
|
|
1659
|
-
for (;
|
|
1660
|
-
if (r = u.charCodeAt(
|
|
1661
|
-
return l.pos =
|
|
1659
|
+
for (; o < t; ) {
|
|
1660
|
+
if (r = u.charCodeAt(o), r === l.marker)
|
|
1661
|
+
return l.pos = o + 1, l.str += yu(u.slice(e, o)), l.ok = !0, l;
|
|
1662
1662
|
if (r === 40 && l.marker === 41)
|
|
1663
1663
|
return l;
|
|
1664
|
-
r === 92 &&
|
|
1664
|
+
r === 92 && o + 1 < t && o++, o++;
|
|
1665
1665
|
}
|
|
1666
|
-
return l.can_continue = !0, l.str +=
|
|
1666
|
+
return l.can_continue = !0, l.str += yu(u.slice(e, o)), l;
|
|
1667
1667
|
}
|
|
1668
1668
|
const Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1669
1669
|
__proto__: null,
|
|
@@ -1672,40 +1672,40 @@ const Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1672
1672
|
parseLinkTitle: Tn
|
|
1673
1673
|
}, Symbol.toStringTag, { value: "Module" })), su = {};
|
|
1674
1674
|
su.code_inline = function(u, e, t, n, r) {
|
|
1675
|
-
const
|
|
1676
|
-
return "<code" + r.renderAttrs(
|
|
1675
|
+
const o = u[e];
|
|
1676
|
+
return "<code" + r.renderAttrs(o) + ">" + mu(o.content) + "</code>";
|
|
1677
1677
|
};
|
|
1678
1678
|
su.code_block = function(u, e, t, n, r) {
|
|
1679
|
-
const
|
|
1680
|
-
return "<pre" + r.renderAttrs(
|
|
1679
|
+
const o = u[e];
|
|
1680
|
+
return "<pre" + r.renderAttrs(o) + "><code>" + mu(u[e].content) + `</code></pre>
|
|
1681
1681
|
`;
|
|
1682
1682
|
};
|
|
1683
1683
|
su.fence = function(u, e, t, n, r) {
|
|
1684
|
-
const
|
|
1685
|
-
let
|
|
1684
|
+
const o = u[e], l = o.info ? yu(o.info).trim() : "";
|
|
1685
|
+
let a = "", c = "";
|
|
1686
1686
|
if (l) {
|
|
1687
1687
|
const f = l.split(/(\s+)/g);
|
|
1688
|
-
|
|
1688
|
+
a = f[0], c = f.slice(2).join("");
|
|
1689
1689
|
}
|
|
1690
1690
|
let i;
|
|
1691
|
-
if (t.highlight ? i = t.highlight(
|
|
1691
|
+
if (t.highlight ? i = t.highlight(o.content, a, c) || mu(o.content) : i = mu(o.content), i.indexOf("<pre") === 0)
|
|
1692
1692
|
return i + `
|
|
1693
1693
|
`;
|
|
1694
1694
|
if (l) {
|
|
1695
|
-
const f =
|
|
1696
|
-
f < 0 ? s.push(["class", t.langPrefix +
|
|
1695
|
+
const f = o.attrIndex("class"), s = o.attrs ? o.attrs.slice() : [];
|
|
1696
|
+
f < 0 ? s.push(["class", t.langPrefix + a]) : (s[f] = s[f].slice(), s[f][1] += " " + t.langPrefix + a);
|
|
1697
1697
|
const p = {
|
|
1698
1698
|
attrs: s
|
|
1699
1699
|
};
|
|
1700
1700
|
return `<pre><code${r.renderAttrs(p)}>${i}</code></pre>
|
|
1701
1701
|
`;
|
|
1702
1702
|
}
|
|
1703
|
-
return `<pre><code${r.renderAttrs(
|
|
1703
|
+
return `<pre><code${r.renderAttrs(o)}>${i}</code></pre>
|
|
1704
1704
|
`;
|
|
1705
1705
|
};
|
|
1706
1706
|
su.image = function(u, e, t, n, r) {
|
|
1707
|
-
const
|
|
1708
|
-
return
|
|
1707
|
+
const o = u[e];
|
|
1708
|
+
return o.attrs[o.attrIndex("alt")][1] = r.renderInlineAsText(o.children, t, n), r.renderToken(u, e, t);
|
|
1709
1709
|
};
|
|
1710
1710
|
su.hardbreak = function(u, e, t) {
|
|
1711
1711
|
return t.xhtmlOut ? `<br />
|
|
@@ -1727,10 +1727,10 @@ su.html_block = function(u, e) {
|
|
|
1727
1727
|
su.html_inline = function(u, e) {
|
|
1728
1728
|
return u[e].content;
|
|
1729
1729
|
};
|
|
1730
|
-
function
|
|
1730
|
+
function Cu() {
|
|
1731
1731
|
this.rules = Zu({}, su);
|
|
1732
1732
|
}
|
|
1733
|
-
|
|
1733
|
+
Cu.prototype.renderAttrs = function(e) {
|
|
1734
1734
|
let t, n, r;
|
|
1735
1735
|
if (!e.attrs)
|
|
1736
1736
|
return "";
|
|
@@ -1738,33 +1738,33 @@ vu.prototype.renderAttrs = function(e) {
|
|
|
1738
1738
|
r += " " + mu(e.attrs[t][0]) + '="' + mu(e.attrs[t][1]) + '"';
|
|
1739
1739
|
return r;
|
|
1740
1740
|
};
|
|
1741
|
-
|
|
1741
|
+
Cu.prototype.renderToken = function(e, t, n) {
|
|
1742
1742
|
const r = e[t];
|
|
1743
|
-
let
|
|
1743
|
+
let o = "";
|
|
1744
1744
|
if (r.hidden)
|
|
1745
1745
|
return "";
|
|
1746
|
-
r.block && r.nesting !== -1 && t && e[t - 1].hidden && (
|
|
1747
|
-
`),
|
|
1746
|
+
r.block && r.nesting !== -1 && t && e[t - 1].hidden && (o += `
|
|
1747
|
+
`), o += (r.nesting === -1 ? "</" : "<") + r.tag, o += this.renderAttrs(r), r.nesting === 0 && n.xhtmlOut && (o += " /");
|
|
1748
1748
|
let l = !1;
|
|
1749
1749
|
if (r.block && (l = !0, r.nesting === 1 && t + 1 < e.length)) {
|
|
1750
|
-
const
|
|
1751
|
-
(
|
|
1750
|
+
const a = e[t + 1];
|
|
1751
|
+
(a.type === "inline" || a.hidden || a.nesting === -1 && a.tag === r.tag) && (l = !1);
|
|
1752
1752
|
}
|
|
1753
|
-
return
|
|
1754
|
-
` : ">",
|
|
1753
|
+
return o += l ? `>
|
|
1754
|
+
` : ">", o;
|
|
1755
1755
|
};
|
|
1756
|
-
|
|
1756
|
+
Cu.prototype.renderInline = function(u, e, t) {
|
|
1757
1757
|
let n = "";
|
|
1758
1758
|
const r = this.rules;
|
|
1759
|
-
for (let
|
|
1760
|
-
const
|
|
1761
|
-
typeof r[
|
|
1759
|
+
for (let o = 0, l = u.length; o < l; o++) {
|
|
1760
|
+
const a = u[o].type;
|
|
1761
|
+
typeof r[a] < "u" ? n += r[a](u, o, e, t, this) : n += this.renderToken(u, o, e);
|
|
1762
1762
|
}
|
|
1763
1763
|
return n;
|
|
1764
1764
|
};
|
|
1765
|
-
|
|
1765
|
+
Cu.prototype.renderInlineAsText = function(u, e, t) {
|
|
1766
1766
|
let n = "";
|
|
1767
|
-
for (let r = 0,
|
|
1767
|
+
for (let r = 0, o = u.length; r < o; r++)
|
|
1768
1768
|
switch (u[r].type) {
|
|
1769
1769
|
case "text":
|
|
1770
1770
|
n += u[r].content;
|
|
@@ -1784,12 +1784,12 @@ vu.prototype.renderInlineAsText = function(u, e, t) {
|
|
|
1784
1784
|
}
|
|
1785
1785
|
return n;
|
|
1786
1786
|
};
|
|
1787
|
-
|
|
1787
|
+
Cu.prototype.render = function(u, e, t) {
|
|
1788
1788
|
let n = "";
|
|
1789
1789
|
const r = this.rules;
|
|
1790
|
-
for (let
|
|
1791
|
-
const
|
|
1792
|
-
|
|
1790
|
+
for (let o = 0, l = u.length; o < l; o++) {
|
|
1791
|
+
const a = u[o].type;
|
|
1792
|
+
a === "inline" ? n += this.renderInline(u[o].children, e, t) : typeof r[a] < "u" ? n += r[a](u, o, e, t, this) : n += this.renderToken(u, o, e, t);
|
|
1793
1793
|
}
|
|
1794
1794
|
return n;
|
|
1795
1795
|
};
|
|
@@ -1821,25 +1821,25 @@ tu.prototype.at = function(u, e, t) {
|
|
|
1821
1821
|
this.__rules__[n].fn = e, this.__rules__[n].alt = r.alt || [], this.__cache__ = null;
|
|
1822
1822
|
};
|
|
1823
1823
|
tu.prototype.before = function(u, e, t, n) {
|
|
1824
|
-
const r = this.__find__(u),
|
|
1824
|
+
const r = this.__find__(u), o = n || {};
|
|
1825
1825
|
if (r === -1)
|
|
1826
1826
|
throw new Error("Parser rule not found: " + u);
|
|
1827
1827
|
this.__rules__.splice(r, 0, {
|
|
1828
1828
|
name: e,
|
|
1829
1829
|
enabled: !0,
|
|
1830
1830
|
fn: t,
|
|
1831
|
-
alt:
|
|
1831
|
+
alt: o.alt || []
|
|
1832
1832
|
}), this.__cache__ = null;
|
|
1833
1833
|
};
|
|
1834
1834
|
tu.prototype.after = function(u, e, t, n) {
|
|
1835
|
-
const r = this.__find__(u),
|
|
1835
|
+
const r = this.__find__(u), o = n || {};
|
|
1836
1836
|
if (r === -1)
|
|
1837
1837
|
throw new Error("Parser rule not found: " + u);
|
|
1838
1838
|
this.__rules__.splice(r + 1, 0, {
|
|
1839
1839
|
name: e,
|
|
1840
1840
|
enabled: !0,
|
|
1841
1841
|
fn: t,
|
|
1842
|
-
alt:
|
|
1842
|
+
alt: o.alt || []
|
|
1843
1843
|
}), this.__cache__ = null;
|
|
1844
1844
|
};
|
|
1845
1845
|
tu.prototype.push = function(u, e, t) {
|
|
@@ -1885,10 +1885,10 @@ tu.prototype.disable = function(u, e) {
|
|
|
1885
1885
|
tu.prototype.getRules = function(u) {
|
|
1886
1886
|
return this.__cache__ === null && this.__compile__(), this.__cache__[u] || [];
|
|
1887
1887
|
};
|
|
1888
|
-
function
|
|
1888
|
+
function au(u, e, t) {
|
|
1889
1889
|
this.type = u, this.tag = e, this.attrs = null, this.map = null, this.nesting = t, this.level = 0, this.children = null, this.content = "", this.markup = "", this.info = "", this.meta = null, this.block = !1, this.hidden = !1;
|
|
1890
1890
|
}
|
|
1891
|
-
|
|
1891
|
+
au.prototype.attrIndex = function(e) {
|
|
1892
1892
|
if (!this.attrs)
|
|
1893
1893
|
return -1;
|
|
1894
1894
|
const t = this.attrs;
|
|
@@ -1897,26 +1897,26 @@ ou.prototype.attrIndex = function(e) {
|
|
|
1897
1897
|
return n;
|
|
1898
1898
|
return -1;
|
|
1899
1899
|
};
|
|
1900
|
-
|
|
1900
|
+
au.prototype.attrPush = function(e) {
|
|
1901
1901
|
this.attrs ? this.attrs.push(e) : this.attrs = [e];
|
|
1902
1902
|
};
|
|
1903
|
-
|
|
1903
|
+
au.prototype.attrSet = function(e, t) {
|
|
1904
1904
|
const n = this.attrIndex(e), r = [e, t];
|
|
1905
1905
|
n < 0 ? this.attrPush(r) : this.attrs[n] = r;
|
|
1906
1906
|
};
|
|
1907
|
-
|
|
1907
|
+
au.prototype.attrGet = function(e) {
|
|
1908
1908
|
const t = this.attrIndex(e);
|
|
1909
1909
|
let n = null;
|
|
1910
1910
|
return t >= 0 && (n = this.attrs[t][1]), n;
|
|
1911
1911
|
};
|
|
1912
|
-
|
|
1912
|
+
au.prototype.attrJoin = function(e, t) {
|
|
1913
1913
|
const n = this.attrIndex(e);
|
|
1914
1914
|
n < 0 ? this.attrPush([e, t]) : this.attrs[n][1] = this.attrs[n][1] + " " + t;
|
|
1915
1915
|
};
|
|
1916
1916
|
function $0(u, e, t) {
|
|
1917
1917
|
this.src = u, this.env = t, this.tokens = [], this.inlineMode = !1, this.md = e;
|
|
1918
1918
|
}
|
|
1919
|
-
$0.prototype.Token =
|
|
1919
|
+
$0.prototype.Token = au;
|
|
1920
1920
|
const In = /\r\n?|\n/g, On = /\0/g;
|
|
1921
1921
|
function Vn(u) {
|
|
1922
1922
|
let e;
|
|
@@ -1946,19 +1946,19 @@ function Bn(u) {
|
|
|
1946
1946
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
1947
1947
|
if (e[t].type !== "inline" || !u.md.linkify.pretest(e[t].content))
|
|
1948
1948
|
continue;
|
|
1949
|
-
let r = e[t].children,
|
|
1949
|
+
let r = e[t].children, o = 0;
|
|
1950
1950
|
for (let l = r.length - 1; l >= 0; l--) {
|
|
1951
|
-
const
|
|
1952
|
-
if (
|
|
1953
|
-
for (l--; r[l].level !==
|
|
1951
|
+
const a = r[l];
|
|
1952
|
+
if (a.type === "link_close") {
|
|
1953
|
+
for (l--; r[l].level !== a.level && r[l].type !== "link_open"; )
|
|
1954
1954
|
l--;
|
|
1955
1955
|
continue;
|
|
1956
1956
|
}
|
|
1957
|
-
if (
|
|
1958
|
-
const c =
|
|
1957
|
+
if (a.type === "html_inline" && (Mn(a.content) && o > 0 && o--, qn(a.content) && o++), !(o > 0) && a.type === "text" && u.md.linkify.test(a.content)) {
|
|
1958
|
+
const c = a.content;
|
|
1959
1959
|
let i = u.md.linkify.match(c);
|
|
1960
1960
|
const f = [];
|
|
1961
|
-
let s =
|
|
1961
|
+
let s = a.level, p = 0;
|
|
1962
1962
|
i.length > 0 && i[0].index === 0 && l > 0 && r[l - 1].type === "text_special" && (i = i.slice(1));
|
|
1963
1963
|
for (let m = 0; m < i.length; m++) {
|
|
1964
1964
|
const d = i[m].url, w = u.md.normalizeLink(d);
|
|
@@ -2023,16 +2023,16 @@ function Gn(u, e) {
|
|
|
2023
2023
|
let t;
|
|
2024
2024
|
const n = [];
|
|
2025
2025
|
for (let r = 0; r < u.length; r++) {
|
|
2026
|
-
const
|
|
2026
|
+
const o = u[r], l = u[r].level;
|
|
2027
2027
|
for (t = n.length - 1; t >= 0 && !(n[t].level <= l); t--)
|
|
2028
2028
|
;
|
|
2029
|
-
if (n.length = t + 1,
|
|
2029
|
+
if (n.length = t + 1, o.type !== "text")
|
|
2030
2030
|
continue;
|
|
2031
|
-
let
|
|
2031
|
+
let a = o.content, c = 0, i = a.length;
|
|
2032
2032
|
u:
|
|
2033
2033
|
for (; c < i; ) {
|
|
2034
2034
|
Ge.lastIndex = c;
|
|
2035
|
-
const f = Ge.exec(
|
|
2035
|
+
const f = Ge.exec(a);
|
|
2036
2036
|
if (!f)
|
|
2037
2037
|
break;
|
|
2038
2038
|
let s = !0, p = !0;
|
|
@@ -2040,7 +2040,7 @@ function Gn(u, e) {
|
|
|
2040
2040
|
const m = f[0] === "'";
|
|
2041
2041
|
let d = 32;
|
|
2042
2042
|
if (f.index - 1 >= 0)
|
|
2043
|
-
d =
|
|
2043
|
+
d = a.charCodeAt(f.index - 1);
|
|
2044
2044
|
else
|
|
2045
2045
|
for (t = r - 1; t >= 0 && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t--)
|
|
2046
2046
|
if (u[t].content) {
|
|
@@ -2049,7 +2049,7 @@ function Gn(u, e) {
|
|
|
2049
2049
|
}
|
|
2050
2050
|
let w = 32;
|
|
2051
2051
|
if (c < i)
|
|
2052
|
-
w =
|
|
2052
|
+
w = a.charCodeAt(c);
|
|
2053
2053
|
else
|
|
2054
2054
|
for (t = r + 1; t < u.length && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t++)
|
|
2055
2055
|
if (u[t].content) {
|
|
@@ -2058,7 +2058,7 @@ function Gn(u, e) {
|
|
|
2058
2058
|
}
|
|
2059
2059
|
const $ = Su(d) || Tu(String.fromCharCode(d)), A = Su(w) || Tu(String.fromCharCode(w)), h = wu(d), v = wu(w);
|
|
2060
2060
|
if (v ? s = !1 : A && (h || $ || (s = !1)), h ? p = !1 : $ && (v || A || (p = !1)), w === 34 && f[0] === '"' && d >= 48 && d <= 57 && (p = s = !1), s && p && (s = $, p = A), !s && !p) {
|
|
2061
|
-
m && (
|
|
2061
|
+
m && (o.content = Ru(o.content, f.index, Je));
|
|
2062
2062
|
continue;
|
|
2063
2063
|
}
|
|
2064
2064
|
if (p)
|
|
@@ -2069,11 +2069,11 @@ function Gn(u, e) {
|
|
|
2069
2069
|
if (b.single === m && n[t].level === l) {
|
|
2070
2070
|
b = n[t];
|
|
2071
2071
|
let x, _;
|
|
2072
|
-
m ? (x = e.md.options.quotes[2], _ = e.md.options.quotes[3]) : (x = e.md.options.quotes[0], _ = e.md.options.quotes[1]),
|
|
2072
|
+
m ? (x = e.md.options.quotes[2], _ = e.md.options.quotes[3]) : (x = e.md.options.quotes[0], _ = e.md.options.quotes[1]), o.content = Ru(o.content, f.index, _), u[b.token].content = Ru(
|
|
2073
2073
|
u[b.token].content,
|
|
2074
2074
|
b.pos,
|
|
2075
2075
|
x
|
|
2076
|
-
), c += _.length - 1, b.token === r && (c += x.length - 1),
|
|
2076
|
+
), c += _.length - 1, b.token === r && (c += x.length - 1), a = o.content, i = a.length, n.length = t;
|
|
2077
2077
|
continue u;
|
|
2078
2078
|
}
|
|
2079
2079
|
}
|
|
@@ -2082,7 +2082,7 @@ function Gn(u, e) {
|
|
|
2082
2082
|
pos: f.index,
|
|
2083
2083
|
single: m,
|
|
2084
2084
|
level: l
|
|
2085
|
-
}) : p && m && (
|
|
2085
|
+
}) : p && m && (o.content = Ru(o.content, f.index, Je));
|
|
2086
2086
|
}
|
|
2087
2087
|
}
|
|
2088
2088
|
}
|
|
@@ -2094,14 +2094,14 @@ function Jn(u) {
|
|
|
2094
2094
|
function Wn(u) {
|
|
2095
2095
|
let e, t;
|
|
2096
2096
|
const n = u.tokens, r = n.length;
|
|
2097
|
-
for (let
|
|
2098
|
-
if (n[
|
|
2097
|
+
for (let o = 0; o < r; o++) {
|
|
2098
|
+
if (n[o].type !== "inline")
|
|
2099
2099
|
continue;
|
|
2100
|
-
const l = n[
|
|
2101
|
-
for (e = 0; e <
|
|
2100
|
+
const l = n[o].children, a = l.length;
|
|
2101
|
+
for (e = 0; e < a; e++)
|
|
2102
2102
|
l[e].type === "text_special" && (l[e].type = "text");
|
|
2103
|
-
for (e = t = 0; e <
|
|
2104
|
-
l[e].type === "text" && e + 1 <
|
|
2103
|
+
for (e = t = 0; e < a; e++)
|
|
2104
|
+
l[e].type === "text" && e + 1 < a && l[e + 1].type === "text" ? l[e + 1].content = l[e].content + l[e + 1].content : (e !== t && (l[t] = l[e]), t++);
|
|
2105
2105
|
e !== t && (l.length = t);
|
|
2106
2106
|
}
|
|
2107
2107
|
}
|
|
@@ -2130,20 +2130,20 @@ we.prototype.State = $0;
|
|
|
2130
2130
|
function du(u, e, t, n) {
|
|
2131
2131
|
this.src = u, this.md = e, this.env = t, this.tokens = n, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
|
|
2132
2132
|
const r = this.src;
|
|
2133
|
-
for (let
|
|
2133
|
+
for (let o = 0, l = 0, a = 0, c = 0, i = r.length, f = !1; l < i; l++) {
|
|
2134
2134
|
const s = r.charCodeAt(l);
|
|
2135
2135
|
if (!f)
|
|
2136
2136
|
if (N(s)) {
|
|
2137
|
-
|
|
2137
|
+
a++, s === 9 ? c += 4 - c % 4 : c++;
|
|
2138
2138
|
continue;
|
|
2139
2139
|
} else
|
|
2140
2140
|
f = !0;
|
|
2141
|
-
(s === 10 || l === i - 1) && (s !== 10 && l++, this.bMarks.push(
|
|
2141
|
+
(s === 10 || l === i - 1) && (s !== 10 && l++, this.bMarks.push(o), this.eMarks.push(l), this.tShift.push(a), this.sCount.push(c), this.bsCount.push(0), f = !1, a = 0, c = 0, o = l + 1);
|
|
2142
2142
|
}
|
|
2143
2143
|
this.bMarks.push(r.length), this.eMarks.push(r.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
|
|
2144
2144
|
}
|
|
2145
2145
|
du.prototype.push = function(u, e, t) {
|
|
2146
|
-
const n = new
|
|
2146
|
+
const n = new au(u, e, t);
|
|
2147
2147
|
return n.block = !0, t < 0 && this.level--, n.level = this.level, t > 0 && this.level++, this.tokens.push(n), n;
|
|
2148
2148
|
};
|
|
2149
2149
|
du.prototype.isEmpty = function(e) {
|
|
@@ -2186,26 +2186,26 @@ du.prototype.skipCharsBack = function(e, t, n) {
|
|
|
2186
2186
|
du.prototype.getLines = function(e, t, n, r) {
|
|
2187
2187
|
if (e >= t)
|
|
2188
2188
|
return "";
|
|
2189
|
-
const
|
|
2190
|
-
for (let l = 0,
|
|
2189
|
+
const o = new Array(t - e);
|
|
2190
|
+
for (let l = 0, a = e; a < t; a++, l++) {
|
|
2191
2191
|
let c = 0;
|
|
2192
|
-
const i = this.bMarks[
|
|
2192
|
+
const i = this.bMarks[a];
|
|
2193
2193
|
let f = i, s;
|
|
2194
|
-
for (
|
|
2194
|
+
for (a + 1 < t || r ? s = this.eMarks[a] + 1 : s = this.eMarks[a]; f < s && c < n; ) {
|
|
2195
2195
|
const p = this.src.charCodeAt(f);
|
|
2196
2196
|
if (N(p))
|
|
2197
|
-
p === 9 ? c += 4 - (c + this.bsCount[
|
|
2198
|
-
else if (f - i < this.tShift[
|
|
2197
|
+
p === 9 ? c += 4 - (c + this.bsCount[a]) % 4 : c++;
|
|
2198
|
+
else if (f - i < this.tShift[a])
|
|
2199
2199
|
c++;
|
|
2200
2200
|
else
|
|
2201
2201
|
break;
|
|
2202
2202
|
f++;
|
|
2203
2203
|
}
|
|
2204
|
-
c > n ?
|
|
2204
|
+
c > n ? o[l] = new Array(c - n + 1).join(" ") + this.src.slice(f, s) : o[l] = this.src.slice(f, s);
|
|
2205
2205
|
}
|
|
2206
|
-
return
|
|
2206
|
+
return o.join("");
|
|
2207
2207
|
};
|
|
2208
|
-
du.prototype.Token =
|
|
2208
|
+
du.prototype.Token = au;
|
|
2209
2209
|
const Qn = 65536;
|
|
2210
2210
|
function ee(u, e) {
|
|
2211
2211
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
|
@@ -2213,10 +2213,10 @@ function ee(u, e) {
|
|
|
2213
2213
|
}
|
|
2214
2214
|
function We(u) {
|
|
2215
2215
|
const e = [], t = u.length;
|
|
2216
|
-
let n = 0, r = u.charCodeAt(n),
|
|
2216
|
+
let n = 0, r = u.charCodeAt(n), o = !1, l = 0, a = "";
|
|
2217
2217
|
for (; n < t; )
|
|
2218
|
-
r === 124 && (
|
|
2219
|
-
return e.push(
|
|
2218
|
+
r === 124 && (o ? (a += u.substring(l, n - 1), l = n) : (e.push(a + u.substring(l, n)), a = "", l = n + 1)), o = r === 92, n++, r = u.charCodeAt(n);
|
|
2219
|
+
return e.push(a + u.substring(l)), e;
|
|
2220
2220
|
}
|
|
2221
2221
|
function Yn(u, e, t, n) {
|
|
2222
2222
|
if (e + 2 > t)
|
|
@@ -2224,20 +2224,20 @@ function Yn(u, e, t, n) {
|
|
|
2224
2224
|
let r = e + 1;
|
|
2225
2225
|
if (u.sCount[r] < u.blkIndent || u.sCount[r] - u.blkIndent >= 4)
|
|
2226
2226
|
return !1;
|
|
2227
|
-
let
|
|
2228
|
-
if (
|
|
2227
|
+
let o = u.bMarks[r] + u.tShift[r];
|
|
2228
|
+
if (o >= u.eMarks[r])
|
|
2229
2229
|
return !1;
|
|
2230
|
-
const l = u.src.charCodeAt(
|
|
2231
|
-
if (l !== 124 && l !== 45 && l !== 58 ||
|
|
2230
|
+
const l = u.src.charCodeAt(o++);
|
|
2231
|
+
if (l !== 124 && l !== 45 && l !== 58 || o >= u.eMarks[r])
|
|
2232
2232
|
return !1;
|
|
2233
|
-
const
|
|
2234
|
-
if (
|
|
2233
|
+
const a = u.src.charCodeAt(o++);
|
|
2234
|
+
if (a !== 124 && a !== 45 && a !== 58 && !N(a) || l === 45 && N(a))
|
|
2235
2235
|
return !1;
|
|
2236
|
-
for (;
|
|
2237
|
-
const b = u.src.charCodeAt(
|
|
2236
|
+
for (; o < u.eMarks[r]; ) {
|
|
2237
|
+
const b = u.src.charCodeAt(o);
|
|
2238
2238
|
if (b !== 124 && b !== 45 && b !== 58 && !N(b))
|
|
2239
2239
|
return !1;
|
|
2240
|
-
|
|
2240
|
+
o++;
|
|
2241
2241
|
}
|
|
2242
2242
|
let c = ee(u, e + 1), i = c.split("|");
|
|
2243
2243
|
const f = [];
|
|
@@ -2317,30 +2317,30 @@ function Kn(u, e, t) {
|
|
|
2317
2317
|
break;
|
|
2318
2318
|
}
|
|
2319
2319
|
u.line = r;
|
|
2320
|
-
const
|
|
2321
|
-
return
|
|
2322
|
-
`,
|
|
2320
|
+
const o = u.push("code_block", "code", 0);
|
|
2321
|
+
return o.content = u.getLines(e, r, 4 + u.blkIndent, !1) + `
|
|
2322
|
+
`, o.map = [e, u.line], !0;
|
|
2323
2323
|
}
|
|
2324
2324
|
function Xn(u, e, t, n) {
|
|
2325
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2326
|
-
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 >
|
|
2325
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2326
|
+
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 > o)
|
|
2327
2327
|
return !1;
|
|
2328
2328
|
const l = u.src.charCodeAt(r);
|
|
2329
2329
|
if (l !== 126 && l !== 96)
|
|
2330
2330
|
return !1;
|
|
2331
|
-
let
|
|
2331
|
+
let a = r;
|
|
2332
2332
|
r = u.skipChars(r, l);
|
|
2333
|
-
let c = r -
|
|
2333
|
+
let c = r - a;
|
|
2334
2334
|
if (c < 3)
|
|
2335
2335
|
return !1;
|
|
2336
|
-
const i = u.src.slice(
|
|
2336
|
+
const i = u.src.slice(a, r), f = u.src.slice(r, o);
|
|
2337
2337
|
if (l === 96 && f.indexOf(String.fromCharCode(l)) >= 0)
|
|
2338
2338
|
return !1;
|
|
2339
2339
|
if (n)
|
|
2340
2340
|
return !0;
|
|
2341
2341
|
let s = e, p = !1;
|
|
2342
|
-
for (; s++, !(s >= t || (r =
|
|
2343
|
-
if (u.src.charCodeAt(r) === l && !(u.sCount[s] - u.blkIndent >= 4) && (r = u.skipChars(r, l), !(r -
|
|
2342
|
+
for (; s++, !(s >= t || (r = a = u.bMarks[s] + u.tShift[s], o = u.eMarks[s], r < o && u.sCount[s] < u.blkIndent)); )
|
|
2343
|
+
if (u.src.charCodeAt(r) === l && !(u.sCount[s] - u.blkIndent >= 4) && (r = u.skipChars(r, l), !(r - a < c) && (r = u.skipSpaces(r), !(r < o)))) {
|
|
2344
2344
|
p = !0;
|
|
2345
2345
|
break;
|
|
2346
2346
|
}
|
|
@@ -2349,24 +2349,24 @@ function Xn(u, e, t, n) {
|
|
|
2349
2349
|
return m.info = f, m.content = u.getLines(e + 1, s, c, !0), m.markup = i, m.map = [e, u.line], !0;
|
|
2350
2350
|
}
|
|
2351
2351
|
function ur(u, e, t, n) {
|
|
2352
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2352
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2353
2353
|
const l = u.lineMax;
|
|
2354
2354
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 62)
|
|
2355
2355
|
return !1;
|
|
2356
2356
|
if (n)
|
|
2357
2357
|
return !0;
|
|
2358
|
-
const
|
|
2358
|
+
const a = [], c = [], i = [], f = [], s = u.md.block.ruler.getRules("blockquote"), p = u.parentType;
|
|
2359
2359
|
u.parentType = "blockquote";
|
|
2360
2360
|
let m = !1, d;
|
|
2361
2361
|
for (d = e; d < t; d++) {
|
|
2362
2362
|
const v = u.sCount[d] < u.blkIndent;
|
|
2363
|
-
if (r = u.bMarks[d] + u.tShift[d],
|
|
2363
|
+
if (r = u.bMarks[d] + u.tShift[d], o = u.eMarks[d], r >= o)
|
|
2364
2364
|
break;
|
|
2365
2365
|
if (u.src.charCodeAt(r++) === 62 && !v) {
|
|
2366
2366
|
let x = u.sCount[d] + 1, _, g;
|
|
2367
2367
|
u.src.charCodeAt(r) === 32 ? (r++, x++, g = !1, _ = !0) : u.src.charCodeAt(r) === 9 ? (_ = !0, (u.bsCount[d] + x) % 4 === 3 ? (r++, x++, g = !1) : g = !0) : _ = !1;
|
|
2368
2368
|
let V = x;
|
|
2369
|
-
for (
|
|
2369
|
+
for (a.push(u.bMarks[d]), u.bMarks[d] = r; r < o; ) {
|
|
2370
2370
|
const y = u.src.charCodeAt(r);
|
|
2371
2371
|
if (N(y))
|
|
2372
2372
|
y === 9 ? V += 4 - (V + u.bsCount[d] + (g ? 1 : 0)) % 4 : V++;
|
|
@@ -2374,7 +2374,7 @@ function ur(u, e, t, n) {
|
|
|
2374
2374
|
break;
|
|
2375
2375
|
r++;
|
|
2376
2376
|
}
|
|
2377
|
-
m = r >=
|
|
2377
|
+
m = r >= o, c.push(u.bsCount[d]), u.bsCount[d] = u.sCount[d] + 1 + (_ ? 1 : 0), i.push(u.sCount[d]), u.sCount[d] = V - x, f.push(u.tShift[d]), u.tShift[d] = r - u.bMarks[d];
|
|
2378
2378
|
continue;
|
|
2379
2379
|
}
|
|
2380
2380
|
if (m)
|
|
@@ -2386,10 +2386,10 @@ function ur(u, e, t, n) {
|
|
|
2386
2386
|
break;
|
|
2387
2387
|
}
|
|
2388
2388
|
if (b) {
|
|
2389
|
-
u.lineMax = d, u.blkIndent !== 0 && (
|
|
2389
|
+
u.lineMax = d, u.blkIndent !== 0 && (a.push(u.bMarks[d]), c.push(u.bsCount[d]), f.push(u.tShift[d]), i.push(u.sCount[d]), u.sCount[d] -= u.blkIndent);
|
|
2390
2390
|
break;
|
|
2391
2391
|
}
|
|
2392
|
-
|
|
2392
|
+
a.push(u.bMarks[d]), c.push(u.bsCount[d]), f.push(u.tShift[d]), i.push(u.sCount[d]), u.sCount[d] = -1;
|
|
2393
2393
|
}
|
|
2394
2394
|
const w = u.blkIndent;
|
|
2395
2395
|
u.blkIndent = 0;
|
|
@@ -2400,31 +2400,31 @@ function ur(u, e, t, n) {
|
|
|
2400
2400
|
const h = u.push("blockquote_close", "blockquote", -1);
|
|
2401
2401
|
h.markup = ">", u.lineMax = l, u.parentType = p, A[1] = u.line;
|
|
2402
2402
|
for (let v = 0; v < f.length; v++)
|
|
2403
|
-
u.bMarks[v + e] =
|
|
2403
|
+
u.bMarks[v + e] = a[v], u.tShift[v + e] = f[v], u.sCount[v + e] = i[v], u.bsCount[v + e] = c[v];
|
|
2404
2404
|
return u.blkIndent = w, !0;
|
|
2405
2405
|
}
|
|
2406
2406
|
function er(u, e, t, n) {
|
|
2407
2407
|
const r = u.eMarks[e];
|
|
2408
2408
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2409
2409
|
return !1;
|
|
2410
|
-
let
|
|
2411
|
-
const l = u.src.charCodeAt(
|
|
2410
|
+
let o = u.bMarks[e] + u.tShift[e];
|
|
2411
|
+
const l = u.src.charCodeAt(o++);
|
|
2412
2412
|
if (l !== 42 && l !== 45 && l !== 95)
|
|
2413
2413
|
return !1;
|
|
2414
|
-
let
|
|
2415
|
-
for (;
|
|
2416
|
-
const i = u.src.charCodeAt(
|
|
2414
|
+
let a = 1;
|
|
2415
|
+
for (; o < r; ) {
|
|
2416
|
+
const i = u.src.charCodeAt(o++);
|
|
2417
2417
|
if (i !== l && !N(i))
|
|
2418
2418
|
return !1;
|
|
2419
|
-
i === l &&
|
|
2419
|
+
i === l && a++;
|
|
2420
2420
|
}
|
|
2421
|
-
if (
|
|
2421
|
+
if (a < 3)
|
|
2422
2422
|
return !1;
|
|
2423
2423
|
if (n)
|
|
2424
2424
|
return !0;
|
|
2425
2425
|
u.line = e + 1;
|
|
2426
2426
|
const c = u.push("hr", "hr", 0);
|
|
2427
|
-
return c.map = [e, u.line], c.markup = Array(
|
|
2427
|
+
return c.map = [e, u.line], c.markup = Array(a + 1).join(String.fromCharCode(l)), !0;
|
|
2428
2428
|
}
|
|
2429
2429
|
function Qe(u, e) {
|
|
2430
2430
|
const t = u.eMarks[e];
|
|
@@ -2433,8 +2433,8 @@ function Qe(u, e) {
|
|
|
2433
2433
|
if (r !== 42 && r !== 45 && r !== 43)
|
|
2434
2434
|
return -1;
|
|
2435
2435
|
if (n < t) {
|
|
2436
|
-
const
|
|
2437
|
-
if (!N(
|
|
2436
|
+
const o = u.src.charCodeAt(n);
|
|
2437
|
+
if (!N(o))
|
|
2438
2438
|
return -1;
|
|
2439
2439
|
}
|
|
2440
2440
|
return n;
|
|
@@ -2444,22 +2444,22 @@ function Ye(u, e) {
|
|
|
2444
2444
|
let r = t;
|
|
2445
2445
|
if (r + 1 >= n)
|
|
2446
2446
|
return -1;
|
|
2447
|
-
let
|
|
2448
|
-
if (
|
|
2447
|
+
let o = u.src.charCodeAt(r++);
|
|
2448
|
+
if (o < 48 || o > 57)
|
|
2449
2449
|
return -1;
|
|
2450
2450
|
for (; ; ) {
|
|
2451
2451
|
if (r >= n)
|
|
2452
2452
|
return -1;
|
|
2453
|
-
if (
|
|
2453
|
+
if (o = u.src.charCodeAt(r++), o >= 48 && o <= 57) {
|
|
2454
2454
|
if (r - t >= 10)
|
|
2455
2455
|
return -1;
|
|
2456
2456
|
continue;
|
|
2457
2457
|
}
|
|
2458
|
-
if (
|
|
2458
|
+
if (o === 41 || o === 46)
|
|
2459
2459
|
break;
|
|
2460
2460
|
return -1;
|
|
2461
2461
|
}
|
|
2462
|
-
return r < n && (
|
|
2462
|
+
return r < n && (o = u.src.charCodeAt(r), !N(o)) ? -1 : r;
|
|
2463
2463
|
}
|
|
2464
2464
|
function tr(u, e) {
|
|
2465
2465
|
const t = u.level + 2;
|
|
@@ -2467,7 +2467,7 @@ function tr(u, e) {
|
|
|
2467
2467
|
u.tokens[n].level === t && u.tokens[n].type === "paragraph_open" && (u.tokens[n + 2].hidden = !0, u.tokens[n].hidden = !0, n += 2);
|
|
2468
2468
|
}
|
|
2469
2469
|
function nr(u, e, t, n) {
|
|
2470
|
-
let r,
|
|
2470
|
+
let r, o, l, a, c = e, i = !0;
|
|
2471
2471
|
if (u.sCount[c] - u.blkIndent >= 4 || u.listIndent >= 0 && u.sCount[c] - u.listIndent >= 4 && u.sCount[c] < u.blkIndent)
|
|
2472
2472
|
return !1;
|
|
2473
2473
|
let f = !1;
|
|
@@ -2485,37 +2485,37 @@ function nr(u, e, t, n) {
|
|
|
2485
2485
|
if (n)
|
|
2486
2486
|
return !0;
|
|
2487
2487
|
const d = u.src.charCodeAt(m - 1), w = u.tokens.length;
|
|
2488
|
-
s ? (
|
|
2488
|
+
s ? (a = u.push("ordered_list_open", "ol", 1), p !== 1 && (a.attrs = [["start", p]])) : a = u.push("bullet_list_open", "ul", 1);
|
|
2489
2489
|
const $ = [c, 0];
|
|
2490
|
-
|
|
2490
|
+
a.map = $, a.markup = String.fromCharCode(d);
|
|
2491
2491
|
let A = !1;
|
|
2492
2492
|
const h = u.md.block.ruler.getRules("list"), v = u.parentType;
|
|
2493
2493
|
for (u.parentType = "list"; c < t; ) {
|
|
2494
|
-
|
|
2494
|
+
o = m, r = u.eMarks[c];
|
|
2495
2495
|
const b = u.sCount[c] + m - (u.bMarks[c] + u.tShift[c]);
|
|
2496
2496
|
let x = b;
|
|
2497
|
-
for (;
|
|
2498
|
-
const Z = u.src.charCodeAt(
|
|
2497
|
+
for (; o < r; ) {
|
|
2498
|
+
const Z = u.src.charCodeAt(o);
|
|
2499
2499
|
if (Z === 9)
|
|
2500
2500
|
x += 4 - (x + u.bsCount[c]) % 4;
|
|
2501
2501
|
else if (Z === 32)
|
|
2502
2502
|
x++;
|
|
2503
2503
|
else
|
|
2504
2504
|
break;
|
|
2505
|
-
|
|
2505
|
+
o++;
|
|
2506
2506
|
}
|
|
2507
|
-
const _ =
|
|
2507
|
+
const _ = o;
|
|
2508
2508
|
let g;
|
|
2509
2509
|
_ >= r ? g = 1 : g = x - b, g > 4 && (g = 1);
|
|
2510
2510
|
const V = b + g;
|
|
2511
|
-
|
|
2511
|
+
a = u.push("list_item_open", "li", 1), a.markup = String.fromCharCode(d);
|
|
2512
2512
|
const y = [c, 0];
|
|
2513
|
-
|
|
2514
|
-
const
|
|
2515
|
-
if (u.listIndent = u.blkIndent, u.blkIndent = V, u.tight = !0, u.tShift[c] = _ - u.bMarks[c], u.sCount[c] = x, _ >= r && u.isEmpty(c + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, c, t, !0), (!u.tight || A) && (i = !1), A = u.line - c > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = U, u.tShift[c] =
|
|
2513
|
+
a.map = y, s && (a.info = u.src.slice(l, m - 1));
|
|
2514
|
+
const T = u.tight, E = u.tShift[c], z = u.sCount[c], U = u.listIndent;
|
|
2515
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = V, u.tight = !0, u.tShift[c] = _ - u.bMarks[c], u.sCount[c] = x, _ >= r && u.isEmpty(c + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, c, t, !0), (!u.tight || A) && (i = !1), A = u.line - c > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = U, u.tShift[c] = E, u.sCount[c] = z, u.tight = T, a = u.push("list_item_close", "li", -1), a.markup = String.fromCharCode(d), c = u.line, y[1] = c, c >= t || u.sCount[c] < u.blkIndent || u.sCount[c] - u.blkIndent >= 4)
|
|
2516
2516
|
break;
|
|
2517
2517
|
let C = !1;
|
|
2518
|
-
for (let Z = 0,
|
|
2518
|
+
for (let Z = 0, X = h.length; Z < X; Z++)
|
|
2519
2519
|
if (h[Z](u, c, t, !0)) {
|
|
2520
2520
|
C = !0;
|
|
2521
2521
|
break;
|
|
@@ -2531,13 +2531,13 @@ function nr(u, e, t, n) {
|
|
|
2531
2531
|
if (d !== u.src.charCodeAt(m - 1))
|
|
2532
2532
|
break;
|
|
2533
2533
|
}
|
|
2534
|
-
return s ?
|
|
2534
|
+
return s ? a = u.push("ordered_list_close", "ol", -1) : a = u.push("bullet_list_close", "ul", -1), a.markup = String.fromCharCode(d), $[1] = c, u.line = c, u.parentType = v, i && tr(u, w), !0;
|
|
2535
2535
|
}
|
|
2536
2536
|
function rr(u, e, t, n) {
|
|
2537
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2537
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e], l = e + 1;
|
|
2538
2538
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 91)
|
|
2539
2539
|
return !1;
|
|
2540
|
-
function
|
|
2540
|
+
function a(h) {
|
|
2541
2541
|
const v = u.lineMax;
|
|
2542
2542
|
if (h >= v || u.isEmpty(h))
|
|
2543
2543
|
return null;
|
|
@@ -2546,8 +2546,8 @@ function rr(u, e, t, n) {
|
|
|
2546
2546
|
const g = u.md.block.ruler.getRules("reference"), V = u.parentType;
|
|
2547
2547
|
u.parentType = "reference";
|
|
2548
2548
|
let y = !1;
|
|
2549
|
-
for (let
|
|
2550
|
-
if (g[
|
|
2549
|
+
for (let T = 0, E = g.length; T < E; T++)
|
|
2550
|
+
if (g[T](u, h, v, !0)) {
|
|
2551
2551
|
y = !0;
|
|
2552
2552
|
break;
|
|
2553
2553
|
}
|
|
@@ -2557,10 +2557,10 @@ function rr(u, e, t, n) {
|
|
|
2557
2557
|
const x = u.bMarks[h] + u.tShift[h], _ = u.eMarks[h];
|
|
2558
2558
|
return u.src.slice(x, _ + 1);
|
|
2559
2559
|
}
|
|
2560
|
-
let c = u.src.slice(r,
|
|
2561
|
-
|
|
2560
|
+
let c = u.src.slice(r, o + 1);
|
|
2561
|
+
o = c.length;
|
|
2562
2562
|
let i = -1;
|
|
2563
|
-
for (r = 1; r <
|
|
2563
|
+
for (r = 1; r < o; r++) {
|
|
2564
2564
|
const h = c.charCodeAt(r);
|
|
2565
2565
|
if (h === 91)
|
|
2566
2566
|
return !1;
|
|
@@ -2568,24 +2568,24 @@ function rr(u, e, t, n) {
|
|
|
2568
2568
|
i = r;
|
|
2569
2569
|
break;
|
|
2570
2570
|
} else if (h === 10) {
|
|
2571
|
-
const v =
|
|
2572
|
-
v !== null && (c += v,
|
|
2573
|
-
} else if (h === 92 && (r++, r <
|
|
2574
|
-
const v =
|
|
2575
|
-
v !== null && (c += v,
|
|
2571
|
+
const v = a(l);
|
|
2572
|
+
v !== null && (c += v, o = c.length, l++);
|
|
2573
|
+
} else if (h === 92 && (r++, r < o && c.charCodeAt(r) === 10)) {
|
|
2574
|
+
const v = a(l);
|
|
2575
|
+
v !== null && (c += v, o = c.length, l++);
|
|
2576
2576
|
}
|
|
2577
2577
|
}
|
|
2578
2578
|
if (i < 0 || c.charCodeAt(i + 1) !== 58)
|
|
2579
2579
|
return !1;
|
|
2580
|
-
for (r = i + 2; r <
|
|
2580
|
+
for (r = i + 2; r < o; r++) {
|
|
2581
2581
|
const h = c.charCodeAt(r);
|
|
2582
2582
|
if (h === 10) {
|
|
2583
|
-
const v =
|
|
2584
|
-
v !== null && (c += v,
|
|
2583
|
+
const v = a(l);
|
|
2584
|
+
v !== null && (c += v, o = c.length, l++);
|
|
2585
2585
|
} else if (!N(h))
|
|
2586
2586
|
break;
|
|
2587
2587
|
}
|
|
2588
|
-
const f = u.md.helpers.parseLinkDestination(c, r,
|
|
2588
|
+
const f = u.md.helpers.parseLinkDestination(c, r, o);
|
|
2589
2589
|
if (!f.ok)
|
|
2590
2590
|
return !1;
|
|
2591
2591
|
const s = u.md.normalizeLink(f.str);
|
|
@@ -2593,41 +2593,41 @@ function rr(u, e, t, n) {
|
|
|
2593
2593
|
return !1;
|
|
2594
2594
|
r = f.pos;
|
|
2595
2595
|
const p = r, m = l, d = r;
|
|
2596
|
-
for (; r <
|
|
2596
|
+
for (; r < o; r++) {
|
|
2597
2597
|
const h = c.charCodeAt(r);
|
|
2598
2598
|
if (h === 10) {
|
|
2599
|
-
const v =
|
|
2600
|
-
v !== null && (c += v,
|
|
2599
|
+
const v = a(l);
|
|
2600
|
+
v !== null && (c += v, o = c.length, l++);
|
|
2601
2601
|
} else if (!N(h))
|
|
2602
2602
|
break;
|
|
2603
2603
|
}
|
|
2604
|
-
let w = u.md.helpers.parseLinkTitle(c, r,
|
|
2604
|
+
let w = u.md.helpers.parseLinkTitle(c, r, o);
|
|
2605
2605
|
for (; w.can_continue; ) {
|
|
2606
|
-
const h =
|
|
2606
|
+
const h = a(l);
|
|
2607
2607
|
if (h === null)
|
|
2608
2608
|
break;
|
|
2609
|
-
c += h, r =
|
|
2609
|
+
c += h, r = o, o = c.length, l++, w = u.md.helpers.parseLinkTitle(c, r, o, w);
|
|
2610
2610
|
}
|
|
2611
2611
|
let $;
|
|
2612
|
-
for (r <
|
|
2612
|
+
for (r < o && d !== r && w.ok ? ($ = w.str, r = w.pos) : ($ = "", r = p, l = m); r < o; ) {
|
|
2613
2613
|
const h = c.charCodeAt(r);
|
|
2614
2614
|
if (!N(h))
|
|
2615
2615
|
break;
|
|
2616
2616
|
r++;
|
|
2617
2617
|
}
|
|
2618
|
-
if (r <
|
|
2619
|
-
for ($ = "", r = p, l = m; r <
|
|
2618
|
+
if (r < o && c.charCodeAt(r) !== 10 && $)
|
|
2619
|
+
for ($ = "", r = p, l = m; r < o; ) {
|
|
2620
2620
|
const h = c.charCodeAt(r);
|
|
2621
2621
|
if (!N(h))
|
|
2622
2622
|
break;
|
|
2623
2623
|
r++;
|
|
2624
2624
|
}
|
|
2625
|
-
if (r <
|
|
2625
|
+
if (r < o && c.charCodeAt(r) !== 10)
|
|
2626
2626
|
return !1;
|
|
2627
2627
|
const A = Hu(c.slice(1, i));
|
|
2628
2628
|
return A ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[A] > "u" && (u.env.references[A] = { title: $, href: s }), u.line = l), !0) : !1;
|
|
2629
2629
|
}
|
|
2630
|
-
const
|
|
2630
|
+
const or = [
|
|
2631
2631
|
"address",
|
|
2632
2632
|
"article",
|
|
2633
2633
|
"aside",
|
|
@@ -2690,30 +2690,30 @@ const ar = [
|
|
|
2690
2690
|
"tr",
|
|
2691
2691
|
"track",
|
|
2692
2692
|
"ul"
|
|
2693
|
-
],
|
|
2693
|
+
], ar = "[a-zA-Z_:][a-zA-Z0-9:._-]*", lr = "[^\"'=<>`\\x00-\\x20]+", ir = "'[^']*'", cr = '"[^"]*"', sr = "(?:" + lr + "|" + ir + "|" + cr + ")", dr = "(?:\\s+" + ar + "(?:\\s*=\\s*" + sr + ")?)", M0 = "<[A-Za-z][A-Za-z0-9\\-]*" + dr + "*\\s*\\/?>", q0 = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", fr = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", pr = "<[?][\\s\\S]*?[?]>", br = "<![A-Za-z][^>]*>", hr = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", mr = new RegExp("^(?:" + M0 + "|" + q0 + "|" + fr + "|" + pr + "|" + br + "|" + hr + ")"), xr = new RegExp("^(?:" + M0 + "|" + q0 + ")"), _u = [
|
|
2694
2694
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
2695
2695
|
[/^<!--/, /-->/, !0],
|
|
2696
2696
|
[/^<\?/, /\?>/, !0],
|
|
2697
2697
|
[/^<![A-Z]/, />/, !0],
|
|
2698
2698
|
[/^<!\[CDATA\[/, /\]\]>/, !0],
|
|
2699
|
-
[new RegExp("^</?(" +
|
|
2699
|
+
[new RegExp("^</?(" + or.join("|") + ")(?=(\\s|/?>|$))", "i"), /^$/, !0],
|
|
2700
2700
|
[new RegExp(xr.source + "\\s*$"), /^$/, !1]
|
|
2701
2701
|
];
|
|
2702
2702
|
function _r(u, e, t, n) {
|
|
2703
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2703
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2704
2704
|
if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(r) !== 60)
|
|
2705
2705
|
return !1;
|
|
2706
|
-
let l = u.src.slice(r,
|
|
2707
|
-
for (;
|
|
2706
|
+
let l = u.src.slice(r, o), a = 0;
|
|
2707
|
+
for (; a < _u.length && !_u[a][0].test(l); a++)
|
|
2708
2708
|
;
|
|
2709
|
-
if (
|
|
2709
|
+
if (a === _u.length)
|
|
2710
2710
|
return !1;
|
|
2711
2711
|
if (n)
|
|
2712
|
-
return
|
|
2712
|
+
return _u[a][2];
|
|
2713
2713
|
let c = e + 1;
|
|
2714
|
-
if (!
|
|
2714
|
+
if (!_u[a][1].test(l)) {
|
|
2715
2715
|
for (; c < t && !(u.sCount[c] < u.blkIndent); c++)
|
|
2716
|
-
if (r = u.bMarks[c] + u.tShift[c],
|
|
2716
|
+
if (r = u.bMarks[c] + u.tShift[c], o = u.eMarks[c], l = u.src.slice(r, o), _u[a][1].test(l)) {
|
|
2717
2717
|
l.length !== 0 && c++;
|
|
2718
2718
|
break;
|
|
2719
2719
|
}
|
|
@@ -2723,28 +2723,28 @@ function _r(u, e, t, n) {
|
|
|
2723
2723
|
return i.map = [e, c], i.content = u.getLines(e, c, u.blkIndent, !0), !0;
|
|
2724
2724
|
}
|
|
2725
2725
|
function gr(u, e, t, n) {
|
|
2726
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2726
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2727
2727
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2728
2728
|
return !1;
|
|
2729
2729
|
let l = u.src.charCodeAt(r);
|
|
2730
|
-
if (l !== 35 || r >=
|
|
2730
|
+
if (l !== 35 || r >= o)
|
|
2731
2731
|
return !1;
|
|
2732
|
-
let
|
|
2733
|
-
for (l = u.src.charCodeAt(++r); l === 35 && r <
|
|
2734
|
-
|
|
2735
|
-
if (
|
|
2732
|
+
let a = 1;
|
|
2733
|
+
for (l = u.src.charCodeAt(++r); l === 35 && r < o && a <= 6; )
|
|
2734
|
+
a++, l = u.src.charCodeAt(++r);
|
|
2735
|
+
if (a > 6 || r < o && !N(l))
|
|
2736
2736
|
return !1;
|
|
2737
2737
|
if (n)
|
|
2738
2738
|
return !0;
|
|
2739
|
-
|
|
2740
|
-
const c = u.skipCharsBack(
|
|
2741
|
-
c > r && N(u.src.charCodeAt(c - 1)) && (
|
|
2742
|
-
const i = u.push("heading_open", "h" + String(
|
|
2743
|
-
i.markup = "########".slice(0,
|
|
2739
|
+
o = u.skipSpacesBack(o, r);
|
|
2740
|
+
const c = u.skipCharsBack(o, 35, r);
|
|
2741
|
+
c > r && N(u.src.charCodeAt(c - 1)) && (o = c), u.line = e + 1;
|
|
2742
|
+
const i = u.push("heading_open", "h" + String(a), 1);
|
|
2743
|
+
i.markup = "########".slice(0, a), i.map = [e, u.line];
|
|
2744
2744
|
const f = u.push("inline", "", 0);
|
|
2745
|
-
f.content = u.src.slice(r,
|
|
2746
|
-
const s = u.push("heading_close", "h" + String(
|
|
2747
|
-
return s.markup = "########".slice(0,
|
|
2745
|
+
f.content = u.src.slice(r, o).trim(), f.map = [e, u.line], f.children = [];
|
|
2746
|
+
const s = u.push("heading_close", "h" + String(a), -1);
|
|
2747
|
+
return s.markup = "########".slice(0, a), !0;
|
|
2748
2748
|
}
|
|
2749
2749
|
function kr(u, e, t) {
|
|
2750
2750
|
const n = u.md.block.ruler.getRules("paragraph");
|
|
@@ -2752,59 +2752,59 @@ function kr(u, e, t) {
|
|
|
2752
2752
|
return !1;
|
|
2753
2753
|
const r = u.parentType;
|
|
2754
2754
|
u.parentType = "paragraph";
|
|
2755
|
-
let
|
|
2756
|
-
for (;
|
|
2757
|
-
if (u.sCount[
|
|
2755
|
+
let o = 0, l, a = e + 1;
|
|
2756
|
+
for (; a < t && !u.isEmpty(a); a++) {
|
|
2757
|
+
if (u.sCount[a] - u.blkIndent > 3)
|
|
2758
2758
|
continue;
|
|
2759
|
-
if (u.sCount[
|
|
2760
|
-
let m = u.bMarks[
|
|
2761
|
-
const d = u.eMarks[
|
|
2759
|
+
if (u.sCount[a] >= u.blkIndent) {
|
|
2760
|
+
let m = u.bMarks[a] + u.tShift[a];
|
|
2761
|
+
const d = u.eMarks[a];
|
|
2762
2762
|
if (m < d && (l = u.src.charCodeAt(m), (l === 45 || l === 61) && (m = u.skipChars(m, l), m = u.skipSpaces(m), m >= d))) {
|
|
2763
|
-
|
|
2763
|
+
o = l === 61 ? 1 : 2;
|
|
2764
2764
|
break;
|
|
2765
2765
|
}
|
|
2766
2766
|
}
|
|
2767
|
-
if (u.sCount[
|
|
2767
|
+
if (u.sCount[a] < 0)
|
|
2768
2768
|
continue;
|
|
2769
2769
|
let p = !1;
|
|
2770
2770
|
for (let m = 0, d = n.length; m < d; m++)
|
|
2771
|
-
if (n[m](u,
|
|
2771
|
+
if (n[m](u, a, t, !0)) {
|
|
2772
2772
|
p = !0;
|
|
2773
2773
|
break;
|
|
2774
2774
|
}
|
|
2775
2775
|
if (p)
|
|
2776
2776
|
break;
|
|
2777
2777
|
}
|
|
2778
|
-
if (!
|
|
2778
|
+
if (!o)
|
|
2779
2779
|
return !1;
|
|
2780
|
-
const c = u.getLines(e,
|
|
2781
|
-
u.line =
|
|
2782
|
-
const i = u.push("heading_open", "h" + String(
|
|
2780
|
+
const c = u.getLines(e, a, u.blkIndent, !1).trim();
|
|
2781
|
+
u.line = a + 1;
|
|
2782
|
+
const i = u.push("heading_open", "h" + String(o), 1);
|
|
2783
2783
|
i.markup = String.fromCharCode(l), i.map = [e, u.line];
|
|
2784
2784
|
const f = u.push("inline", "", 0);
|
|
2785
2785
|
f.content = c, f.map = [e, u.line - 1], f.children = [];
|
|
2786
|
-
const s = u.push("heading_close", "h" + String(
|
|
2786
|
+
const s = u.push("heading_close", "h" + String(o), -1);
|
|
2787
2787
|
return s.markup = String.fromCharCode(l), u.parentType = r, !0;
|
|
2788
2788
|
}
|
|
2789
2789
|
function yr(u, e, t) {
|
|
2790
2790
|
const n = u.md.block.ruler.getRules("paragraph"), r = u.parentType;
|
|
2791
|
-
let
|
|
2792
|
-
for (u.parentType = "paragraph";
|
|
2793
|
-
if (u.sCount[
|
|
2791
|
+
let o = e + 1;
|
|
2792
|
+
for (u.parentType = "paragraph"; o < t && !u.isEmpty(o); o++) {
|
|
2793
|
+
if (u.sCount[o] - u.blkIndent > 3 || u.sCount[o] < 0)
|
|
2794
2794
|
continue;
|
|
2795
2795
|
let i = !1;
|
|
2796
2796
|
for (let f = 0, s = n.length; f < s; f++)
|
|
2797
|
-
if (n[f](u,
|
|
2797
|
+
if (n[f](u, o, t, !0)) {
|
|
2798
2798
|
i = !0;
|
|
2799
2799
|
break;
|
|
2800
2800
|
}
|
|
2801
2801
|
if (i)
|
|
2802
2802
|
break;
|
|
2803
2803
|
}
|
|
2804
|
-
const l = u.getLines(e,
|
|
2805
|
-
u.line =
|
|
2806
|
-
const
|
|
2807
|
-
|
|
2804
|
+
const l = u.getLines(e, o, u.blkIndent, !1).trim();
|
|
2805
|
+
u.line = o;
|
|
2806
|
+
const a = u.push("paragraph_open", "p", 1);
|
|
2807
|
+
a.map = [e, u.line];
|
|
2808
2808
|
const c = u.push("inline", "", 0);
|
|
2809
2809
|
return c.content = l, c.map = [e, u.line], c.children = [], u.push("paragraph_close", "p", -1), u.parentType = r, !0;
|
|
2810
2810
|
}
|
|
@@ -2829,10 +2829,10 @@ function Gu() {
|
|
|
2829
2829
|
this.ruler.push(Mu[u][0], Mu[u][1], { alt: (Mu[u][2] || []).slice() });
|
|
2830
2830
|
}
|
|
2831
2831
|
Gu.prototype.tokenize = function(u, e, t) {
|
|
2832
|
-
const n = this.ruler.getRules(""), r = n.length,
|
|
2833
|
-
let l = e,
|
|
2832
|
+
const n = this.ruler.getRules(""), r = n.length, o = u.md.options.maxNesting;
|
|
2833
|
+
let l = e, a = !1;
|
|
2834
2834
|
for (; l < t && (u.line = l = u.skipEmptyLines(l), !(l >= t || u.sCount[l] < u.blkIndent)); ) {
|
|
2835
|
-
if (u.level >=
|
|
2835
|
+
if (u.level >= o) {
|
|
2836
2836
|
u.line = t;
|
|
2837
2837
|
break;
|
|
2838
2838
|
}
|
|
@@ -2846,7 +2846,7 @@ Gu.prototype.tokenize = function(u, e, t) {
|
|
|
2846
2846
|
}
|
|
2847
2847
|
if (!i)
|
|
2848
2848
|
throw new Error("none of the block rules matched");
|
|
2849
|
-
u.tight = !
|
|
2849
|
+
u.tight = !a, u.isEmpty(u.line - 1) && (a = !0), l = u.line, l < t && u.isEmpty(l) && (a = !0, l++, u.line = l);
|
|
2850
2850
|
}
|
|
2851
2851
|
};
|
|
2852
2852
|
Gu.prototype.parse = function(u, e, t, n) {
|
|
@@ -2860,24 +2860,24 @@ function Vu(u, e, t, n) {
|
|
|
2860
2860
|
this.src = u, this.env = t, this.md = e, this.tokens = n, this.tokens_meta = Array(n.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0;
|
|
2861
2861
|
}
|
|
2862
2862
|
Vu.prototype.pushPending = function() {
|
|
2863
|
-
const u = new
|
|
2863
|
+
const u = new au("text", "", 0);
|
|
2864
2864
|
return u.content = this.pending, u.level = this.pendingLevel, this.tokens.push(u), this.pending = "", u;
|
|
2865
2865
|
};
|
|
2866
2866
|
Vu.prototype.push = function(u, e, t) {
|
|
2867
2867
|
this.pending && this.pushPending();
|
|
2868
|
-
const n = new
|
|
2868
|
+
const n = new au(u, e, t);
|
|
2869
2869
|
let r = null;
|
|
2870
2870
|
return t < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), n.level = this.level, t > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], r = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(n), this.tokens_meta.push(r), n;
|
|
2871
2871
|
};
|
|
2872
2872
|
Vu.prototype.scanDelims = function(u, e) {
|
|
2873
2873
|
const t = this.posMax, n = this.src.charCodeAt(u), r = u > 0 ? this.src.charCodeAt(u - 1) : 32;
|
|
2874
|
-
let
|
|
2875
|
-
for (;
|
|
2876
|
-
|
|
2877
|
-
const l =
|
|
2874
|
+
let o = u;
|
|
2875
|
+
for (; o < t && this.src.charCodeAt(o) === n; )
|
|
2876
|
+
o++;
|
|
2877
|
+
const l = o - u, a = o < t ? this.src.charCodeAt(o) : 32, c = Su(r) || Tu(String.fromCharCode(r)), i = Su(a) || Tu(String.fromCharCode(a)), f = wu(r), s = wu(a), p = !s && (!i || f || c), m = !f && (!c || s || i);
|
|
2878
2878
|
return { can_open: p && (e || !m || c), can_close: m && (e || !p || i), length: l };
|
|
2879
2879
|
};
|
|
2880
|
-
Vu.prototype.Token =
|
|
2880
|
+
Vu.prototype.Token = au;
|
|
2881
2881
|
function vr(u) {
|
|
2882
2882
|
switch (u) {
|
|
2883
2883
|
case 10:
|
|
@@ -2924,26 +2924,26 @@ function Er(u, e) {
|
|
|
2924
2924
|
const r = u.pending.match(Dr);
|
|
2925
2925
|
if (!r)
|
|
2926
2926
|
return !1;
|
|
2927
|
-
const
|
|
2927
|
+
const o = r[1], l = u.md.linkify.matchAtStart(u.src.slice(t - o.length));
|
|
2928
2928
|
if (!l)
|
|
2929
2929
|
return !1;
|
|
2930
|
-
let
|
|
2931
|
-
if (
|
|
2930
|
+
let a = l.url;
|
|
2931
|
+
if (a.length <= o.length)
|
|
2932
2932
|
return !1;
|
|
2933
|
-
|
|
2934
|
-
const c = u.md.normalizeLink(
|
|
2933
|
+
a = a.replace(/\*+$/, "");
|
|
2934
|
+
const c = u.md.normalizeLink(a);
|
|
2935
2935
|
if (!u.md.validateLink(c))
|
|
2936
2936
|
return !1;
|
|
2937
2937
|
if (!e) {
|
|
2938
|
-
u.pending = u.pending.slice(0, -
|
|
2938
|
+
u.pending = u.pending.slice(0, -o.length);
|
|
2939
2939
|
const i = u.push("link_open", "a", 1);
|
|
2940
2940
|
i.attrs = [["href", c]], i.markup = "linkify", i.info = "auto";
|
|
2941
2941
|
const f = u.push("text", "", 0);
|
|
2942
|
-
f.content = u.md.normalizeLinkText(
|
|
2942
|
+
f.content = u.md.normalizeLinkText(a);
|
|
2943
2943
|
const s = u.push("link_close", "a", -1);
|
|
2944
2944
|
s.markup = "linkify", s.info = "auto";
|
|
2945
2945
|
}
|
|
2946
|
-
return u.pos +=
|
|
2946
|
+
return u.pos += a.length - o.length, !0;
|
|
2947
2947
|
}
|
|
2948
2948
|
function Fr(u, e) {
|
|
2949
2949
|
let t = u.pos;
|
|
@@ -2953,10 +2953,10 @@ function Fr(u, e) {
|
|
|
2953
2953
|
if (!e)
|
|
2954
2954
|
if (n >= 0 && u.pending.charCodeAt(n) === 32)
|
|
2955
2955
|
if (n >= 1 && u.pending.charCodeAt(n - 1) === 32) {
|
|
2956
|
-
let
|
|
2957
|
-
for (;
|
|
2958
|
-
|
|
2959
|
-
u.pending = u.pending.slice(0,
|
|
2956
|
+
let o = n - 1;
|
|
2957
|
+
for (; o >= 1 && u.pending.charCodeAt(o - 1) === 32; )
|
|
2958
|
+
o--;
|
|
2959
|
+
u.pending = u.pending.slice(0, o), u.push("hardbreak", "br", 0);
|
|
2960
2960
|
} else
|
|
2961
2961
|
u.pending = u.pending.slice(0, -1), u.push("softbreak", "br", 0);
|
|
2962
2962
|
else
|
|
@@ -2982,15 +2982,15 @@ function Ar(u, e) {
|
|
|
2982
2982
|
t++;
|
|
2983
2983
|
return u.pos = t, !0;
|
|
2984
2984
|
}
|
|
2985
|
-
let
|
|
2985
|
+
let o = u.src[t];
|
|
2986
2986
|
if (r >= 55296 && r <= 56319 && t + 1 < n) {
|
|
2987
|
-
const
|
|
2988
|
-
|
|
2987
|
+
const a = u.src.charCodeAt(t + 1);
|
|
2988
|
+
a >= 56320 && a <= 57343 && (o += u.src[t + 1], t++);
|
|
2989
2989
|
}
|
|
2990
|
-
const l = "\\" +
|
|
2990
|
+
const l = "\\" + o;
|
|
2991
2991
|
if (!e) {
|
|
2992
|
-
const
|
|
2993
|
-
r < 256 && Te[r] !== 0 ?
|
|
2992
|
+
const a = u.push("text_special", "", 0);
|
|
2993
|
+
r < 256 && Te[r] !== 0 ? a.content = o : a.content = l, a.markup = l, a.info = "escape";
|
|
2994
2994
|
}
|
|
2995
2995
|
return u.pos = t + 1, !0;
|
|
2996
2996
|
}
|
|
@@ -3000,18 +3000,18 @@ function wr(u, e) {
|
|
|
3000
3000
|
return !1;
|
|
3001
3001
|
const r = t;
|
|
3002
3002
|
t++;
|
|
3003
|
-
const
|
|
3004
|
-
for (; t <
|
|
3003
|
+
const o = u.posMax;
|
|
3004
|
+
for (; t < o && u.src.charCodeAt(t) === 96; )
|
|
3005
3005
|
t++;
|
|
3006
|
-
const l = u.src.slice(r, t),
|
|
3007
|
-
if (u.backticksScanned && (u.backticks[
|
|
3008
|
-
return e || (u.pending += l), u.pos +=
|
|
3006
|
+
const l = u.src.slice(r, t), a = l.length;
|
|
3007
|
+
if (u.backticksScanned && (u.backticks[a] || 0) <= r)
|
|
3008
|
+
return e || (u.pending += l), u.pos += a, !0;
|
|
3009
3009
|
let c = t, i;
|
|
3010
3010
|
for (; (i = u.src.indexOf("`", c)) !== -1; ) {
|
|
3011
|
-
for (c = i + 1; c <
|
|
3011
|
+
for (c = i + 1; c < o && u.src.charCodeAt(c) === 96; )
|
|
3012
3012
|
c++;
|
|
3013
3013
|
const f = c - i;
|
|
3014
|
-
if (f ===
|
|
3014
|
+
if (f === a) {
|
|
3015
3015
|
if (!e) {
|
|
3016
3016
|
const s = u.push("code_inline", "code", 0);
|
|
3017
3017
|
s.markup = l, s.content = u.src.slice(t, i).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
|
|
@@ -3020,21 +3020,21 @@ function wr(u, e) {
|
|
|
3020
3020
|
}
|
|
3021
3021
|
u.backticks[f] = i;
|
|
3022
3022
|
}
|
|
3023
|
-
return u.backticksScanned = !0, e || (u.pending += l), u.pos +=
|
|
3023
|
+
return u.backticksScanned = !0, e || (u.pending += l), u.pos += a, !0;
|
|
3024
3024
|
}
|
|
3025
3025
|
function Tr(u, e) {
|
|
3026
3026
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
3027
3027
|
if (e || n !== 126)
|
|
3028
3028
|
return !1;
|
|
3029
3029
|
const r = u.scanDelims(u.pos, !0);
|
|
3030
|
-
let
|
|
3030
|
+
let o = r.length;
|
|
3031
3031
|
const l = String.fromCharCode(n);
|
|
3032
|
-
if (
|
|
3032
|
+
if (o < 2)
|
|
3033
3033
|
return !1;
|
|
3034
|
-
let
|
|
3035
|
-
|
|
3036
|
-
for (let c = 0; c <
|
|
3037
|
-
|
|
3034
|
+
let a;
|
|
3035
|
+
o % 2 && (a = u.push("text", "", 0), a.content = l, o--);
|
|
3036
|
+
for (let c = 0; c < o; c += 2)
|
|
3037
|
+
a = u.push("text", "", 0), a.content = l + l, u.delimiters.push({
|
|
3038
3038
|
marker: n,
|
|
3039
3039
|
length: 0,
|
|
3040
3040
|
// disable "rule of 3" length checks meant for emphasis
|
|
@@ -3048,19 +3048,19 @@ function Tr(u, e) {
|
|
|
3048
3048
|
function Ke(u, e) {
|
|
3049
3049
|
let t;
|
|
3050
3050
|
const n = [], r = e.length;
|
|
3051
|
-
for (let
|
|
3052
|
-
const l = e[
|
|
3051
|
+
for (let o = 0; o < r; o++) {
|
|
3052
|
+
const l = e[o];
|
|
3053
3053
|
if (l.marker !== 126 || l.end === -1)
|
|
3054
3054
|
continue;
|
|
3055
|
-
const
|
|
3056
|
-
t = u.tokens[l.token], t.type = "s_open", t.tag = "s", t.nesting = 1, t.markup = "~~", t.content = "", t = u.tokens[
|
|
3055
|
+
const a = e[l.end];
|
|
3056
|
+
t = u.tokens[l.token], t.type = "s_open", t.tag = "s", t.nesting = 1, t.markup = "~~", t.content = "", t = u.tokens[a.token], t.type = "s_close", t.tag = "s", t.nesting = -1, t.markup = "~~", t.content = "", u.tokens[a.token - 1].type === "text" && u.tokens[a.token - 1].content === "~" && n.push(a.token - 1);
|
|
3057
3057
|
}
|
|
3058
3058
|
for (; n.length; ) {
|
|
3059
|
-
const
|
|
3060
|
-
let l =
|
|
3059
|
+
const o = n.pop();
|
|
3060
|
+
let l = o + 1;
|
|
3061
3061
|
for (; l < u.tokens.length && u.tokens[l].type === "s_close"; )
|
|
3062
3062
|
l++;
|
|
3063
|
-
l--,
|
|
3063
|
+
l--, o !== l && (t = u.tokens[l], u.tokens[l] = u.tokens[o], u.tokens[o] = t);
|
|
3064
3064
|
}
|
|
3065
3065
|
}
|
|
3066
3066
|
function Sr(u) {
|
|
@@ -3078,7 +3078,7 @@ function Ir(u, e) {
|
|
|
3078
3078
|
if (e || n !== 95 && n !== 42)
|
|
3079
3079
|
return !1;
|
|
3080
3080
|
const r = u.scanDelims(u.pos, n === 42);
|
|
3081
|
-
for (let
|
|
3081
|
+
for (let o = 0; o < r.length; o++) {
|
|
3082
3082
|
const l = u.push("text", "", 0);
|
|
3083
3083
|
l.content = String.fromCharCode(n), u.delimiters.push({
|
|
3084
3084
|
// Char code of the starting marker (number).
|
|
@@ -3109,12 +3109,12 @@ function Xe(u, e) {
|
|
|
3109
3109
|
const r = e[n];
|
|
3110
3110
|
if (r.marker !== 95 && r.marker !== 42 || r.end === -1)
|
|
3111
3111
|
continue;
|
|
3112
|
-
const
|
|
3112
|
+
const o = e[r.end], l = n > 0 && e[n - 1].end === r.end + 1 && // check that first two markers match and adjacent
|
|
3113
3113
|
e[n - 1].marker === r.marker && e[n - 1].token === r.token - 1 && // check that last two markers are adjacent (we can safely assume they match)
|
|
3114
|
-
e[r.end + 1].token ===
|
|
3115
|
-
c.type = l ? "strong_open" : "em_open", c.tag = l ? "strong" : "em", c.nesting = 1, c.markup = l ?
|
|
3116
|
-
const i = u.tokens[
|
|
3117
|
-
i.type = l ? "strong_close" : "em_close", i.tag = l ? "strong" : "em", i.nesting = -1, i.markup = l ?
|
|
3114
|
+
e[r.end + 1].token === o.token + 1, a = String.fromCharCode(r.marker), c = u.tokens[r.token];
|
|
3115
|
+
c.type = l ? "strong_open" : "em_open", c.tag = l ? "strong" : "em", c.nesting = 1, c.markup = l ? a + a : a, c.content = "";
|
|
3116
|
+
const i = u.tokens[o.token];
|
|
3117
|
+
i.type = l ? "strong_close" : "em_close", i.tag = l ? "strong" : "em", i.nesting = -1, i.markup = l ? a + a : a, i.content = "", l && (u.tokens[e[n - 1].token].content = "", u.tokens[e[r.end + 1].token].content = "", n--);
|
|
3118
3118
|
}
|
|
3119
3119
|
}
|
|
3120
3120
|
function Or(u) {
|
|
@@ -3128,7 +3128,7 @@ const z0 = {
|
|
|
3128
3128
|
postProcess: Or
|
|
3129
3129
|
};
|
|
3130
3130
|
function Vr(u, e) {
|
|
3131
|
-
let t, n, r,
|
|
3131
|
+
let t, n, r, o, l = "", a = "", c = u.pos, i = !0;
|
|
3132
3132
|
if (u.src.charCodeAt(u.pos) !== 91)
|
|
3133
3133
|
return !1;
|
|
3134
3134
|
const f = u.pos, s = u.posMax, p = u.pos + 1, m = u.md.helpers.parseLinkLabel(u, u.pos, !0);
|
|
@@ -3144,7 +3144,7 @@ function Vr(u, e) {
|
|
|
3144
3144
|
for (l = u.md.normalizeLink(r.str), u.md.validateLink(l) ? d = r.pos : l = "", c = d; d < s && (t = u.src.charCodeAt(d), !(!N(t) && t !== 10)); d++)
|
|
3145
3145
|
;
|
|
3146
3146
|
if (r = u.md.helpers.parseLinkTitle(u.src, d, u.posMax), d < s && c !== d && r.ok)
|
|
3147
|
-
for (
|
|
3147
|
+
for (a = r.str, d = r.pos; d < s && (t = u.src.charCodeAt(d), !(!N(t) && t !== 10)); d++)
|
|
3148
3148
|
;
|
|
3149
3149
|
}
|
|
3150
3150
|
(d >= s || u.src.charCodeAt(d) !== 41) && (i = !0), d++;
|
|
@@ -3152,44 +3152,44 @@ function Vr(u, e) {
|
|
|
3152
3152
|
if (i) {
|
|
3153
3153
|
if (typeof u.env.references > "u")
|
|
3154
3154
|
return !1;
|
|
3155
|
-
if (d < s && u.src.charCodeAt(d) === 91 ? (c = d + 1, d = u.md.helpers.parseLinkLabel(u, d), d >= 0 ? n = u.src.slice(c, d++) : d = m + 1) : d = m + 1, n || (n = u.src.slice(p, m)),
|
|
3155
|
+
if (d < s && u.src.charCodeAt(d) === 91 ? (c = d + 1, d = u.md.helpers.parseLinkLabel(u, d), d >= 0 ? n = u.src.slice(c, d++) : d = m + 1) : d = m + 1, n || (n = u.src.slice(p, m)), o = u.env.references[Hu(n)], !o)
|
|
3156
3156
|
return u.pos = f, !1;
|
|
3157
|
-
l =
|
|
3157
|
+
l = o.href, a = o.title;
|
|
3158
3158
|
}
|
|
3159
3159
|
if (!e) {
|
|
3160
3160
|
u.pos = p, u.posMax = m;
|
|
3161
3161
|
const w = u.push("link_open", "a", 1), $ = [["href", l]];
|
|
3162
|
-
w.attrs = $,
|
|
3162
|
+
w.attrs = $, a && $.push(["title", a]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
|
|
3163
3163
|
}
|
|
3164
3164
|
return u.pos = d, u.posMax = s, !0;
|
|
3165
3165
|
}
|
|
3166
3166
|
function $r(u, e) {
|
|
3167
|
-
let t, n, r,
|
|
3167
|
+
let t, n, r, o, l, a, c, i, f = "";
|
|
3168
3168
|
const s = u.pos, p = u.posMax;
|
|
3169
3169
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
|
3170
3170
|
return !1;
|
|
3171
3171
|
const m = u.pos + 2, d = u.md.helpers.parseLinkLabel(u, u.pos + 1, !1);
|
|
3172
3172
|
if (d < 0)
|
|
3173
3173
|
return !1;
|
|
3174
|
-
if (
|
|
3175
|
-
for (
|
|
3174
|
+
if (o = d + 1, o < p && u.src.charCodeAt(o) === 40) {
|
|
3175
|
+
for (o++; o < p && (t = u.src.charCodeAt(o), !(!N(t) && t !== 10)); o++)
|
|
3176
3176
|
;
|
|
3177
|
-
if (
|
|
3177
|
+
if (o >= p)
|
|
3178
3178
|
return !1;
|
|
3179
|
-
for (i =
|
|
3179
|
+
for (i = o, a = u.md.helpers.parseLinkDestination(u.src, o, u.posMax), a.ok && (f = u.md.normalizeLink(a.str), u.md.validateLink(f) ? o = a.pos : f = ""), i = o; o < p && (t = u.src.charCodeAt(o), !(!N(t) && t !== 10)); o++)
|
|
3180
3180
|
;
|
|
3181
|
-
if (
|
|
3182
|
-
for (c =
|
|
3181
|
+
if (a = u.md.helpers.parseLinkTitle(u.src, o, u.posMax), o < p && i !== o && a.ok)
|
|
3182
|
+
for (c = a.str, o = a.pos; o < p && (t = u.src.charCodeAt(o), !(!N(t) && t !== 10)); o++)
|
|
3183
3183
|
;
|
|
3184
3184
|
else
|
|
3185
3185
|
c = "";
|
|
3186
|
-
if (
|
|
3186
|
+
if (o >= p || u.src.charCodeAt(o) !== 41)
|
|
3187
3187
|
return u.pos = s, !1;
|
|
3188
|
-
|
|
3188
|
+
o++;
|
|
3189
3189
|
} else {
|
|
3190
3190
|
if (typeof u.env.references > "u")
|
|
3191
3191
|
return !1;
|
|
3192
|
-
if (
|
|
3192
|
+
if (o < p && u.src.charCodeAt(o) === 91 ? (i = o + 1, o = u.md.helpers.parseLinkLabel(u, o), o >= 0 ? r = u.src.slice(i, o++) : o = d + 1) : o = d + 1, r || (r = u.src.slice(m, d)), l = u.env.references[Hu(r)], !l)
|
|
3193
3193
|
return u.pos = s, !1;
|
|
3194
3194
|
f = l.href, c = l.title;
|
|
3195
3195
|
}
|
|
@@ -3205,7 +3205,7 @@ function $r(u, e) {
|
|
|
3205
3205
|
const $ = u.push("image", "img", 0), A = [["src", f], ["alt", ""]];
|
|
3206
3206
|
$.attrs = A, $.children = w, $.content = n, c && A.push(["title", c]);
|
|
3207
3207
|
}
|
|
3208
|
-
return u.pos =
|
|
3208
|
+
return u.pos = o, u.posMax = p, !0;
|
|
3209
3209
|
}
|
|
3210
3210
|
const Rr = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, Mr = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
3211
3211
|
function qr(u, e) {
|
|
@@ -3222,34 +3222,34 @@ function qr(u, e) {
|
|
|
3222
3222
|
if (l === 62)
|
|
3223
3223
|
break;
|
|
3224
3224
|
}
|
|
3225
|
-
const
|
|
3226
|
-
if (Mr.test(
|
|
3227
|
-
const l = u.md.normalizeLink(
|
|
3225
|
+
const o = u.src.slice(n + 1, t);
|
|
3226
|
+
if (Mr.test(o)) {
|
|
3227
|
+
const l = u.md.normalizeLink(o);
|
|
3228
3228
|
if (!u.md.validateLink(l))
|
|
3229
3229
|
return !1;
|
|
3230
3230
|
if (!e) {
|
|
3231
|
-
const
|
|
3232
|
-
|
|
3231
|
+
const a = u.push("link_open", "a", 1);
|
|
3232
|
+
a.attrs = [["href", l]], a.markup = "autolink", a.info = "auto";
|
|
3233
3233
|
const c = u.push("text", "", 0);
|
|
3234
|
-
c.content = u.md.normalizeLinkText(
|
|
3234
|
+
c.content = u.md.normalizeLinkText(o);
|
|
3235
3235
|
const i = u.push("link_close", "a", -1);
|
|
3236
3236
|
i.markup = "autolink", i.info = "auto";
|
|
3237
3237
|
}
|
|
3238
|
-
return u.pos +=
|
|
3238
|
+
return u.pos += o.length + 2, !0;
|
|
3239
3239
|
}
|
|
3240
|
-
if (Rr.test(
|
|
3241
|
-
const l = u.md.normalizeLink("mailto:" +
|
|
3240
|
+
if (Rr.test(o)) {
|
|
3241
|
+
const l = u.md.normalizeLink("mailto:" + o);
|
|
3242
3242
|
if (!u.md.validateLink(l))
|
|
3243
3243
|
return !1;
|
|
3244
3244
|
if (!e) {
|
|
3245
|
-
const
|
|
3246
|
-
|
|
3245
|
+
const a = u.push("link_open", "a", 1);
|
|
3246
|
+
a.attrs = [["href", l]], a.markup = "autolink", a.info = "auto";
|
|
3247
3247
|
const c = u.push("text", "", 0);
|
|
3248
|
-
c.content = u.md.normalizeLinkText(
|
|
3248
|
+
c.content = u.md.normalizeLinkText(o);
|
|
3249
3249
|
const i = u.push("link_close", "a", -1);
|
|
3250
3250
|
i.markup = "autolink", i.info = "auto";
|
|
3251
3251
|
}
|
|
3252
|
-
return u.pos +=
|
|
3252
|
+
return u.pos += o.length + 2, !0;
|
|
3253
3253
|
}
|
|
3254
3254
|
return !1;
|
|
3255
3255
|
}
|
|
@@ -3272,14 +3272,14 @@ function Pr(u, e) {
|
|
|
3272
3272
|
const r = u.src.charCodeAt(n + 1);
|
|
3273
3273
|
if (r !== 33 && r !== 63 && r !== 47 && !Lr(r))
|
|
3274
3274
|
return !1;
|
|
3275
|
-
const
|
|
3276
|
-
if (!
|
|
3275
|
+
const o = u.src.slice(n).match(mr);
|
|
3276
|
+
if (!o)
|
|
3277
3277
|
return !1;
|
|
3278
3278
|
if (!e) {
|
|
3279
3279
|
const l = u.push("html_inline", "", 0);
|
|
3280
|
-
l.content =
|
|
3280
|
+
l.content = o[0], Br(l.content) && u.linkLevel++, zr(l.content) && u.linkLevel--;
|
|
3281
3281
|
}
|
|
3282
|
-
return u.pos +=
|
|
3282
|
+
return u.pos += o[0].length, !0;
|
|
3283
3283
|
}
|
|
3284
3284
|
const Ur = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, Nr = /^&([a-z][a-z0-9]{1,31});/i;
|
|
3285
3285
|
function jr(u, e) {
|
|
@@ -3287,24 +3287,24 @@ function jr(u, e) {
|
|
|
3287
3287
|
if (u.src.charCodeAt(t) !== 38 || t + 1 >= n)
|
|
3288
3288
|
return !1;
|
|
3289
3289
|
if (u.src.charCodeAt(t + 1) === 35) {
|
|
3290
|
-
const
|
|
3291
|
-
if (
|
|
3290
|
+
const o = u.src.slice(t).match(Ur);
|
|
3291
|
+
if (o) {
|
|
3292
3292
|
if (!e) {
|
|
3293
|
-
const l =
|
|
3294
|
-
|
|
3293
|
+
const l = o[1][0].toLowerCase() === "x" ? parseInt(o[1].slice(1), 16) : parseInt(o[1], 10), a = u.push("text_special", "", 0);
|
|
3294
|
+
a.content = Ae(l) ? zu(l) : zu(65533), a.markup = o[0], a.info = "entity";
|
|
3295
3295
|
}
|
|
3296
|
-
return u.pos +=
|
|
3296
|
+
return u.pos += o[0].length, !0;
|
|
3297
3297
|
}
|
|
3298
3298
|
} else {
|
|
3299
|
-
const
|
|
3300
|
-
if (
|
|
3301
|
-
const l = I0(
|
|
3302
|
-
if (l !==
|
|
3299
|
+
const o = u.src.slice(t).match(Nr);
|
|
3300
|
+
if (o) {
|
|
3301
|
+
const l = I0(o[0]);
|
|
3302
|
+
if (l !== o[0]) {
|
|
3303
3303
|
if (!e) {
|
|
3304
|
-
const
|
|
3305
|
-
|
|
3304
|
+
const a = u.push("text_special", "", 0);
|
|
3305
|
+
a.content = l, a.markup = o[0], a.info = "entity";
|
|
3306
3306
|
}
|
|
3307
|
-
return u.pos +=
|
|
3307
|
+
return u.pos += o[0].length, !0;
|
|
3308
3308
|
}
|
|
3309
3309
|
}
|
|
3310
3310
|
}
|
|
@@ -3315,26 +3315,26 @@ function u0(u) {
|
|
|
3315
3315
|
if (!t)
|
|
3316
3316
|
return;
|
|
3317
3317
|
let n = 0, r = -2;
|
|
3318
|
-
const
|
|
3318
|
+
const o = [];
|
|
3319
3319
|
for (let l = 0; l < t; l++) {
|
|
3320
|
-
const
|
|
3321
|
-
if (
|
|
3320
|
+
const a = u[l];
|
|
3321
|
+
if (o.push(0), (u[n].marker !== a.marker || r !== a.token - 1) && (n = l), r = a.token, a.length = a.length || 0, !a.close)
|
|
3322
3322
|
continue;
|
|
3323
|
-
e.hasOwnProperty(
|
|
3324
|
-
const c = e[
|
|
3325
|
-
let i = n -
|
|
3326
|
-
for (; i > c; i -=
|
|
3323
|
+
e.hasOwnProperty(a.marker) || (e[a.marker] = [-1, -1, -1, -1, -1, -1]);
|
|
3324
|
+
const c = e[a.marker][(a.open ? 3 : 0) + a.length % 3];
|
|
3325
|
+
let i = n - o[n] - 1, f = i;
|
|
3326
|
+
for (; i > c; i -= o[i] + 1) {
|
|
3327
3327
|
const s = u[i];
|
|
3328
|
-
if (s.marker ===
|
|
3328
|
+
if (s.marker === a.marker && s.open && s.end < 0) {
|
|
3329
3329
|
let p = !1;
|
|
3330
|
-
if ((s.close ||
|
|
3331
|
-
const m = i > 0 && !u[i - 1].open ?
|
|
3332
|
-
|
|
3330
|
+
if ((s.close || a.open) && (s.length + a.length) % 3 === 0 && (s.length % 3 !== 0 || a.length % 3 !== 0) && (p = !0), !p) {
|
|
3331
|
+
const m = i > 0 && !u[i - 1].open ? o[i - 1] + 1 : 0;
|
|
3332
|
+
o[l] = l - i + m, o[i] = m, a.open = !1, s.end = l, s.close = !1, f = -1, r = -2;
|
|
3333
3333
|
break;
|
|
3334
3334
|
}
|
|
3335
3335
|
}
|
|
3336
3336
|
}
|
|
3337
|
-
f !== -1 && (e[
|
|
3337
|
+
f !== -1 && (e[a.marker][(a.open ? 3 : 0) + (a.length || 0) % 3] = f);
|
|
3338
3338
|
}
|
|
3339
3339
|
}
|
|
3340
3340
|
function Zr(u) {
|
|
@@ -3345,9 +3345,9 @@ function Zr(u) {
|
|
|
3345
3345
|
}
|
|
3346
3346
|
function Hr(u) {
|
|
3347
3347
|
let e, t, n = 0;
|
|
3348
|
-
const r = u.tokens,
|
|
3349
|
-
for (e = t = 0; e <
|
|
3350
|
-
r[e].nesting < 0 && n--, r[e].level = n, r[e].nesting > 0 && n++, r[e].type === "text" && e + 1 <
|
|
3348
|
+
const r = u.tokens, o = u.tokens.length;
|
|
3349
|
+
for (e = t = 0; e < o; e++)
|
|
3350
|
+
r[e].nesting < 0 && n--, r[e].level = n, r[e].nesting > 0 && n++, r[e].type === "text" && e + 1 < o && r[e + 1].type === "text" ? r[e + 1].content = r[e].content + r[e + 1].content : (e !== t && (r[t] = r[e]), t++);
|
|
3351
3351
|
e !== t && (r.length = t);
|
|
3352
3352
|
}
|
|
3353
3353
|
const te = [
|
|
@@ -3380,32 +3380,32 @@ function $u() {
|
|
|
3380
3380
|
this.ruler2.push(ne[u][0], ne[u][1]);
|
|
3381
3381
|
}
|
|
3382
3382
|
$u.prototype.skipToken = function(u) {
|
|
3383
|
-
const e = u.pos, t = this.ruler.getRules(""), n = t.length, r = u.md.options.maxNesting,
|
|
3384
|
-
if (typeof
|
|
3385
|
-
u.pos =
|
|
3383
|
+
const e = u.pos, t = this.ruler.getRules(""), n = t.length, r = u.md.options.maxNesting, o = u.cache;
|
|
3384
|
+
if (typeof o[e] < "u") {
|
|
3385
|
+
u.pos = o[e];
|
|
3386
3386
|
return;
|
|
3387
3387
|
}
|
|
3388
3388
|
let l = !1;
|
|
3389
3389
|
if (u.level < r) {
|
|
3390
|
-
for (let
|
|
3391
|
-
if (u.level++, l = t[
|
|
3390
|
+
for (let a = 0; a < n; a++)
|
|
3391
|
+
if (u.level++, l = t[a](u, !0), u.level--, l) {
|
|
3392
3392
|
if (e >= u.pos)
|
|
3393
3393
|
throw new Error("inline rule didn't increment state.pos");
|
|
3394
3394
|
break;
|
|
3395
3395
|
}
|
|
3396
3396
|
} else
|
|
3397
3397
|
u.pos = u.posMax;
|
|
3398
|
-
l || u.pos++,
|
|
3398
|
+
l || u.pos++, o[e] = u.pos;
|
|
3399
3399
|
};
|
|
3400
3400
|
$u.prototype.tokenize = function(u) {
|
|
3401
3401
|
const e = this.ruler.getRules(""), t = e.length, n = u.posMax, r = u.md.options.maxNesting;
|
|
3402
3402
|
for (; u.pos < n; ) {
|
|
3403
|
-
const
|
|
3403
|
+
const o = u.pos;
|
|
3404
3404
|
let l = !1;
|
|
3405
3405
|
if (u.level < r) {
|
|
3406
|
-
for (let
|
|
3407
|
-
if (l = e[
|
|
3408
|
-
if (
|
|
3406
|
+
for (let a = 0; a < t; a++)
|
|
3407
|
+
if (l = e[a](u, !1), l) {
|
|
3408
|
+
if (o >= u.pos)
|
|
3409
3409
|
throw new Error("inline rule didn't increment state.pos");
|
|
3410
3410
|
break;
|
|
3411
3411
|
}
|
|
@@ -3422,9 +3422,9 @@ $u.prototype.tokenize = function(u) {
|
|
|
3422
3422
|
$u.prototype.parse = function(u, e, t, n) {
|
|
3423
3423
|
const r = new this.State(u, e, t, n);
|
|
3424
3424
|
this.tokenize(r);
|
|
3425
|
-
const
|
|
3426
|
-
for (let
|
|
3427
|
-
a
|
|
3425
|
+
const o = this.ruler2.getRules(""), l = o.length;
|
|
3426
|
+
for (let a = 0; a < l; a++)
|
|
3427
|
+
o[a](r);
|
|
3428
3428
|
};
|
|
3429
3429
|
$u.prototype.State = Vu;
|
|
3430
3430
|
function Gr(u) {
|
|
@@ -3506,11 +3506,11 @@ const Xr = {
|
|
|
3506
3506
|
)), t.re.mailto.test(n) ? n.match(t.re.mailto)[0].length : 0;
|
|
3507
3507
|
}
|
|
3508
3508
|
}
|
|
3509
|
-
},
|
|
3510
|
-
function
|
|
3509
|
+
}, uo = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", eo = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
|
|
3510
|
+
function to(u) {
|
|
3511
3511
|
u.__index__ = -1, u.__text_cache__ = "";
|
|
3512
3512
|
}
|
|
3513
|
-
function
|
|
3513
|
+
function no(u) {
|
|
3514
3514
|
return function(e, t) {
|
|
3515
3515
|
const n = e.slice(t);
|
|
3516
3516
|
return u.test(n) ? n.match(u)[0].length : 0;
|
|
@@ -3523,53 +3523,53 @@ function t0() {
|
|
|
3523
3523
|
}
|
|
3524
3524
|
function Lu(u) {
|
|
3525
3525
|
const e = u.re = Gr(u.__opts__), t = u.__tlds__.slice();
|
|
3526
|
-
u.onCompile(), u.__tlds_replaced__ || t.push(
|
|
3527
|
-
function n(
|
|
3528
|
-
return
|
|
3526
|
+
u.onCompile(), u.__tlds_replaced__ || t.push(uo), t.push(e.src_xn), e.src_tlds = t.join("|");
|
|
3527
|
+
function n(a) {
|
|
3528
|
+
return a.replace("%TLDS%", e.src_tlds);
|
|
3529
3529
|
}
|
|
3530
3530
|
e.email_fuzzy = RegExp(n(e.tpl_email_fuzzy), "i"), e.link_fuzzy = RegExp(n(e.tpl_link_fuzzy), "i"), e.link_no_ip_fuzzy = RegExp(n(e.tpl_link_no_ip_fuzzy), "i"), e.host_fuzzy_test = RegExp(n(e.tpl_host_fuzzy_test), "i");
|
|
3531
3531
|
const r = [];
|
|
3532
3532
|
u.__compiled__ = {};
|
|
3533
|
-
function a
|
|
3534
|
-
throw new Error('(LinkifyIt) Invalid schema "' +
|
|
3533
|
+
function o(a, c) {
|
|
3534
|
+
throw new Error('(LinkifyIt) Invalid schema "' + a + '": ' + c);
|
|
3535
3535
|
}
|
|
3536
|
-
Object.keys(u.__schemas__).forEach(function(
|
|
3537
|
-
const c = u.__schemas__[
|
|
3536
|
+
Object.keys(u.__schemas__).forEach(function(a) {
|
|
3537
|
+
const c = u.__schemas__[a];
|
|
3538
3538
|
if (c === null)
|
|
3539
3539
|
return;
|
|
3540
3540
|
const i = { validate: null, link: null };
|
|
3541
|
-
if (u.__compiled__[
|
|
3542
|
-
Qr(c.validate) ? i.validate =
|
|
3541
|
+
if (u.__compiled__[a] = i, Wr(c)) {
|
|
3542
|
+
Qr(c.validate) ? i.validate = no(c.validate) : e0(c.validate) ? i.validate = c.validate : o(a, c), e0(c.normalize) ? i.normalize = c.normalize : c.normalize ? o(a, c) : i.normalize = t0();
|
|
3543
3543
|
return;
|
|
3544
3544
|
}
|
|
3545
3545
|
if (Jr(c)) {
|
|
3546
|
-
r.push(
|
|
3546
|
+
r.push(a);
|
|
3547
3547
|
return;
|
|
3548
3548
|
}
|
|
3549
|
-
a
|
|
3550
|
-
}), r.forEach(function(
|
|
3551
|
-
u.__compiled__[u.__schemas__[
|
|
3549
|
+
o(a, c);
|
|
3550
|
+
}), r.forEach(function(a) {
|
|
3551
|
+
u.__compiled__[u.__schemas__[a]] && (u.__compiled__[a].validate = u.__compiled__[u.__schemas__[a]].validate, u.__compiled__[a].normalize = u.__compiled__[u.__schemas__[a]].normalize);
|
|
3552
3552
|
}), u.__compiled__[""] = { validate: null, normalize: t0() };
|
|
3553
|
-
const l = Object.keys(u.__compiled__).filter(function(
|
|
3554
|
-
return
|
|
3553
|
+
const l = Object.keys(u.__compiled__).filter(function(a) {
|
|
3554
|
+
return a.length > 0 && u.__compiled__[a];
|
|
3555
3555
|
}).map(Yr).join("|");
|
|
3556
3556
|
u.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + l + ")", "i"), u.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + l + ")", "ig"), u.re.schema_at_start = RegExp("^" + u.re.schema_search.source, "i"), u.re.pretest = RegExp(
|
|
3557
3557
|
"(" + u.re.schema_test.source + ")|(" + u.re.host_fuzzy_test.source + ")|@",
|
|
3558
3558
|
"i"
|
|
3559
|
-
),
|
|
3559
|
+
), to(u);
|
|
3560
3560
|
}
|
|
3561
|
-
function
|
|
3561
|
+
function ro(u, e) {
|
|
3562
3562
|
const t = u.__index__, n = u.__last_index__, r = u.__text_cache__.slice(t, n);
|
|
3563
3563
|
this.schema = u.__schema__.toLowerCase(), this.index = t + e, this.lastIndex = n + e, this.raw = r, this.text = r, this.url = r;
|
|
3564
3564
|
}
|
|
3565
3565
|
function ie(u, e) {
|
|
3566
|
-
const t = new
|
|
3566
|
+
const t = new ro(u, e);
|
|
3567
3567
|
return u.__compiled__[t.schema].normalize(t, u), t;
|
|
3568
3568
|
}
|
|
3569
3569
|
function ru(u, e) {
|
|
3570
3570
|
if (!(this instanceof ru))
|
|
3571
3571
|
return new ru(u, e);
|
|
3572
|
-
e || Kr(u) && (e = u, u = {}), this.__opts__ = le({}, L0, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = le({}, Xr, u), this.__compiled__ = {}, this.__tlds__ =
|
|
3572
|
+
e || Kr(u) && (e = u, u = {}), this.__opts__ = le({}, L0, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = le({}, Xr, u), this.__compiled__ = {}, this.__tlds__ = eo, this.__tlds_replaced__ = !1, this.re = {}, Lu(this);
|
|
3573
3573
|
}
|
|
3574
3574
|
ru.prototype.add = function(e, t) {
|
|
3575
3575
|
return this.__schemas__[e] = t, Lu(this), this;
|
|
@@ -3580,15 +3580,15 @@ ru.prototype.set = function(e) {
|
|
|
3580
3580
|
ru.prototype.test = function(e) {
|
|
3581
3581
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
|
3582
3582
|
return !1;
|
|
3583
|
-
let t, n, r,
|
|
3583
|
+
let t, n, r, o, l, a, c, i, f;
|
|
3584
3584
|
if (this.re.schema_test.test(e)) {
|
|
3585
3585
|
for (c = this.re.schema_search, c.lastIndex = 0; (t = c.exec(e)) !== null; )
|
|
3586
|
-
if (
|
|
3587
|
-
this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length +
|
|
3586
|
+
if (o = this.testSchemaAt(e, t[2], c.lastIndex), o) {
|
|
3587
|
+
this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + o;
|
|
3588
3588
|
break;
|
|
3589
3589
|
}
|
|
3590
3590
|
}
|
|
3591
|
-
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (i = e.search(this.re.host_fuzzy_test), i >= 0 && (this.__index__ < 0 || i < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (l = n.index + n[1].length, (this.__index__ < 0 || l < this.__index__) && (this.__schema__ = "", this.__index__ = l, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (f = e.indexOf("@"), f >= 0 && (r = e.match(this.re.email_fuzzy)) !== null && (l = r.index + r[1].length,
|
|
3591
|
+
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (i = e.search(this.re.host_fuzzy_test), i >= 0 && (this.__index__ < 0 || i < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (l = n.index + n[1].length, (this.__index__ < 0 || l < this.__index__) && (this.__schema__ = "", this.__index__ = l, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (f = e.indexOf("@"), f >= 0 && (r = e.match(this.re.email_fuzzy)) !== null && (l = r.index + r[1].length, a = r.index + r[0].length, (this.__index__ < 0 || l < this.__index__ || l === this.__index__ && a > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = l, this.__last_index__ = a))), this.__index__ >= 0;
|
|
3592
3592
|
};
|
|
3593
3593
|
ru.prototype.pretest = function(e) {
|
|
3594
3594
|
return this.re.pretest.test(e);
|
|
@@ -3615,8 +3615,8 @@ ru.prototype.matchAtStart = function(e) {
|
|
|
3615
3615
|
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n, ie(this, 0)) : null;
|
|
3616
3616
|
};
|
|
3617
3617
|
ru.prototype.tlds = function(e, t) {
|
|
3618
|
-
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r,
|
|
3619
|
-
return n !==
|
|
3618
|
+
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r, o) {
|
|
3619
|
+
return n !== o[r - 1];
|
|
3620
3620
|
}).reverse(), Lu(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, Lu(this), this);
|
|
3621
3621
|
};
|
|
3622
3622
|
ru.prototype.normalize = function(e) {
|
|
@@ -3624,15 +3624,15 @@ ru.prototype.normalize = function(e) {
|
|
|
3624
3624
|
};
|
|
3625
3625
|
ru.prototype.onCompile = function() {
|
|
3626
3626
|
};
|
|
3627
|
-
const
|
|
3627
|
+
const gu = 2147483647, iu = 36, Se = 1, Iu = 26, oo = 38, ao = 700, P0 = 72, U0 = 128, N0 = "-", lo = /^xn--/, io = /[^\0-\x7F]/, co = /[\x2E\u3002\uFF0E\uFF61]/g, so = {
|
|
3628
3628
|
overflow: "Overflow: input needs wider integers to process",
|
|
3629
3629
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3630
3630
|
"invalid-input": "Invalid input"
|
|
3631
|
-
}, re = iu - Se, cu = Math.floor,
|
|
3631
|
+
}, re = iu - Se, cu = Math.floor, oe = String.fromCharCode;
|
|
3632
3632
|
function pu(u) {
|
|
3633
|
-
throw new RangeError(
|
|
3633
|
+
throw new RangeError(so[u]);
|
|
3634
3634
|
}
|
|
3635
|
-
function
|
|
3635
|
+
function fo(u, e) {
|
|
3636
3636
|
const t = [];
|
|
3637
3637
|
let n = u.length;
|
|
3638
3638
|
for (; n--; )
|
|
@@ -3642,9 +3642,9 @@ function da(u, e) {
|
|
|
3642
3642
|
function j0(u, e) {
|
|
3643
3643
|
const t = u.split("@");
|
|
3644
3644
|
let n = "";
|
|
3645
|
-
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(
|
|
3646
|
-
const r = u.split("."),
|
|
3647
|
-
return n +
|
|
3645
|
+
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(co, ".");
|
|
3646
|
+
const r = u.split("."), o = fo(r, e).join(".");
|
|
3647
|
+
return n + o;
|
|
3648
3648
|
}
|
|
3649
3649
|
function Z0(u) {
|
|
3650
3650
|
const e = [];
|
|
@@ -3653,83 +3653,83 @@ function Z0(u) {
|
|
|
3653
3653
|
for (; t < n; ) {
|
|
3654
3654
|
const r = u.charCodeAt(t++);
|
|
3655
3655
|
if (r >= 55296 && r <= 56319 && t < n) {
|
|
3656
|
-
const
|
|
3657
|
-
(
|
|
3656
|
+
const o = u.charCodeAt(t++);
|
|
3657
|
+
(o & 64512) == 56320 ? e.push(((r & 1023) << 10) + (o & 1023) + 65536) : (e.push(r), t--);
|
|
3658
3658
|
} else
|
|
3659
3659
|
e.push(r);
|
|
3660
3660
|
}
|
|
3661
3661
|
return e;
|
|
3662
3662
|
}
|
|
3663
|
-
const
|
|
3663
|
+
const po = (u) => String.fromCodePoint(...u), bo = function(u) {
|
|
3664
3664
|
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : iu;
|
|
3665
3665
|
}, n0 = function(u, e) {
|
|
3666
3666
|
return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
|
|
3667
3667
|
}, H0 = function(u, e, t) {
|
|
3668
3668
|
let n = 0;
|
|
3669
|
-
for (u = t ? cu(u /
|
|
3669
|
+
for (u = t ? cu(u / ao) : u >> 1, u += cu(u / e); u > re * Iu >> 1; n += iu)
|
|
3670
3670
|
u = cu(u / re);
|
|
3671
|
-
return cu(n + (re + 1) * u / (u +
|
|
3671
|
+
return cu(n + (re + 1) * u / (u + oo));
|
|
3672
3672
|
}, G0 = function(u) {
|
|
3673
3673
|
const e = [], t = u.length;
|
|
3674
|
-
let n = 0, r = U0,
|
|
3674
|
+
let n = 0, r = U0, o = P0, l = u.lastIndexOf(N0);
|
|
3675
3675
|
l < 0 && (l = 0);
|
|
3676
|
-
for (let
|
|
3677
|
-
u.charCodeAt(
|
|
3678
|
-
for (let
|
|
3676
|
+
for (let a = 0; a < l; ++a)
|
|
3677
|
+
u.charCodeAt(a) >= 128 && pu("not-basic"), e.push(u.charCodeAt(a));
|
|
3678
|
+
for (let a = l > 0 ? l + 1 : 0; a < t; ) {
|
|
3679
3679
|
const c = n;
|
|
3680
3680
|
for (let f = 1, s = iu; ; s += iu) {
|
|
3681
|
-
|
|
3682
|
-
const p =
|
|
3683
|
-
p >= iu && pu("invalid-input"), p > cu((
|
|
3684
|
-
const m = s <=
|
|
3681
|
+
a >= t && pu("invalid-input");
|
|
3682
|
+
const p = bo(u.charCodeAt(a++));
|
|
3683
|
+
p >= iu && pu("invalid-input"), p > cu((gu - n) / f) && pu("overflow"), n += p * f;
|
|
3684
|
+
const m = s <= o ? Se : s >= o + Iu ? Iu : s - o;
|
|
3685
3685
|
if (p < m)
|
|
3686
3686
|
break;
|
|
3687
3687
|
const d = iu - m;
|
|
3688
|
-
f > cu(
|
|
3688
|
+
f > cu(gu / d) && pu("overflow"), f *= d;
|
|
3689
3689
|
}
|
|
3690
3690
|
const i = e.length + 1;
|
|
3691
|
-
|
|
3691
|
+
o = H0(n - c, i, c == 0), cu(n / i) > gu - r && pu("overflow"), r += cu(n / i), n %= i, e.splice(n++, 0, r);
|
|
3692
3692
|
}
|
|
3693
3693
|
return String.fromCodePoint(...e);
|
|
3694
3694
|
}, J0 = function(u) {
|
|
3695
3695
|
const e = [];
|
|
3696
3696
|
u = Z0(u);
|
|
3697
3697
|
const t = u.length;
|
|
3698
|
-
let n = U0, r = 0,
|
|
3698
|
+
let n = U0, r = 0, o = P0;
|
|
3699
3699
|
for (const c of u)
|
|
3700
|
-
c < 128 && e.push(
|
|
3700
|
+
c < 128 && e.push(oe(c));
|
|
3701
3701
|
const l = e.length;
|
|
3702
|
-
let
|
|
3703
|
-
for (l && e.push(N0);
|
|
3704
|
-
let c =
|
|
3702
|
+
let a = l;
|
|
3703
|
+
for (l && e.push(N0); a < t; ) {
|
|
3704
|
+
let c = gu;
|
|
3705
3705
|
for (const f of u)
|
|
3706
3706
|
f >= n && f < c && (c = f);
|
|
3707
|
-
const i =
|
|
3708
|
-
c - n > cu((
|
|
3707
|
+
const i = a + 1;
|
|
3708
|
+
c - n > cu((gu - r) / i) && pu("overflow"), r += (c - n) * i, n = c;
|
|
3709
3709
|
for (const f of u)
|
|
3710
|
-
if (f < n && ++r >
|
|
3710
|
+
if (f < n && ++r > gu && pu("overflow"), f === n) {
|
|
3711
3711
|
let s = r;
|
|
3712
3712
|
for (let p = iu; ; p += iu) {
|
|
3713
|
-
const m = p <=
|
|
3713
|
+
const m = p <= o ? Se : p >= o + Iu ? Iu : p - o;
|
|
3714
3714
|
if (s < m)
|
|
3715
3715
|
break;
|
|
3716
3716
|
const d = s - m, w = iu - m;
|
|
3717
3717
|
e.push(
|
|
3718
|
-
|
|
3718
|
+
oe(n0(m + d % w, 0))
|
|
3719
3719
|
), s = cu(d / w);
|
|
3720
3720
|
}
|
|
3721
|
-
e.push(
|
|
3721
|
+
e.push(oe(n0(s, 0))), o = H0(r, i, a === l), r = 0, ++a;
|
|
3722
3722
|
}
|
|
3723
3723
|
++r, ++n;
|
|
3724
3724
|
}
|
|
3725
3725
|
return e.join("");
|
|
3726
|
-
},
|
|
3726
|
+
}, ho = function(u) {
|
|
3727
3727
|
return j0(u, function(e) {
|
|
3728
|
-
return
|
|
3728
|
+
return lo.test(e) ? G0(e.slice(4).toLowerCase()) : e;
|
|
3729
3729
|
});
|
|
3730
|
-
},
|
|
3730
|
+
}, mo = function(u) {
|
|
3731
3731
|
return j0(u, function(e) {
|
|
3732
|
-
return
|
|
3732
|
+
return io.test(e) ? "xn--" + J0(e) : e;
|
|
3733
3733
|
});
|
|
3734
3734
|
}, W0 = {
|
|
3735
3735
|
/**
|
|
@@ -3747,13 +3747,13 @@ const fa = (u) => String.fromCodePoint(...u), pa = function(u) {
|
|
|
3747
3747
|
*/
|
|
3748
3748
|
ucs2: {
|
|
3749
3749
|
decode: Z0,
|
|
3750
|
-
encode:
|
|
3750
|
+
encode: po
|
|
3751
3751
|
},
|
|
3752
3752
|
decode: G0,
|
|
3753
3753
|
encode: J0,
|
|
3754
|
-
toASCII:
|
|
3755
|
-
toUnicode:
|
|
3756
|
-
},
|
|
3754
|
+
toASCII: mo,
|
|
3755
|
+
toUnicode: ho
|
|
3756
|
+
}, xo = {
|
|
3757
3757
|
options: {
|
|
3758
3758
|
// Enable HTML tags in source
|
|
3759
3759
|
html: !1,
|
|
@@ -3789,7 +3789,7 @@ const fa = (u) => String.fromCodePoint(...u), pa = function(u) {
|
|
|
3789
3789
|
block: {},
|
|
3790
3790
|
inline: {}
|
|
3791
3791
|
}
|
|
3792
|
-
},
|
|
3792
|
+
}, _o = {
|
|
3793
3793
|
options: {
|
|
3794
3794
|
// Enable HTML tags in source
|
|
3795
3795
|
html: !1,
|
|
@@ -3844,7 +3844,7 @@ const fa = (u) => String.fromCodePoint(...u), pa = function(u) {
|
|
|
3844
3844
|
]
|
|
3845
3845
|
}
|
|
3846
3846
|
}
|
|
3847
|
-
},
|
|
3847
|
+
}, go = {
|
|
3848
3848
|
options: {
|
|
3849
3849
|
// Enable HTML tags in source
|
|
3850
3850
|
html: !0,
|
|
@@ -3918,17 +3918,17 @@ const fa = (u) => String.fromCodePoint(...u), pa = function(u) {
|
|
|
3918
3918
|
]
|
|
3919
3919
|
}
|
|
3920
3920
|
}
|
|
3921
|
-
},
|
|
3922
|
-
default:
|
|
3923
|
-
zero:
|
|
3924
|
-
commonmark:
|
|
3925
|
-
},
|
|
3926
|
-
function
|
|
3921
|
+
}, ko = {
|
|
3922
|
+
default: xo,
|
|
3923
|
+
zero: _o,
|
|
3924
|
+
commonmark: go
|
|
3925
|
+
}, yo = /^(vbscript|javascript|file|data):/, vo = /^data:image\/(gif|png|jpeg|webp);/;
|
|
3926
|
+
function Co(u) {
|
|
3927
3927
|
const e = u.trim().toLowerCase();
|
|
3928
|
-
return
|
|
3928
|
+
return yo.test(e) ? vo.test(e) : !0;
|
|
3929
3929
|
}
|
|
3930
3930
|
const Q0 = ["http:", "https:", "mailto:"];
|
|
3931
|
-
function
|
|
3931
|
+
function Do(u) {
|
|
3932
3932
|
const e = De(u, !0);
|
|
3933
3933
|
if (e.hostname && (!e.protocol || Q0.indexOf(e.protocol) >= 0))
|
|
3934
3934
|
try {
|
|
@@ -3937,28 +3937,28 @@ function Ca(u) {
|
|
|
3937
3937
|
}
|
|
3938
3938
|
return Ou(Ce(e));
|
|
3939
3939
|
}
|
|
3940
|
-
function
|
|
3940
|
+
function Eo(u) {
|
|
3941
3941
|
const e = De(u, !0);
|
|
3942
3942
|
if (e.hostname && (!e.protocol || Q0.indexOf(e.protocol) >= 0))
|
|
3943
3943
|
try {
|
|
3944
3944
|
e.hostname = W0.toUnicode(e.hostname);
|
|
3945
3945
|
} catch {
|
|
3946
3946
|
}
|
|
3947
|
-
return
|
|
3947
|
+
return ku(Ce(e), ku.defaultChars + "%");
|
|
3948
3948
|
}
|
|
3949
|
-
function
|
|
3950
|
-
if (!(this instanceof
|
|
3951
|
-
return new
|
|
3952
|
-
e || Fe(u) || (e = u || {}, u = "default"), this.inline = new $u(), this.block = new Gu(), this.core = new we(), this.renderer = new
|
|
3949
|
+
function ou(u, e) {
|
|
3950
|
+
if (!(this instanceof ou))
|
|
3951
|
+
return new ou(u, e);
|
|
3952
|
+
e || Fe(u) || (e = u || {}, u = "default"), this.inline = new $u(), this.block = new Gu(), this.core = new we(), this.renderer = new Cu(), this.linkify = new ru(), this.validateLink = Co, this.normalizeLink = Do, this.normalizeLinkText = Eo, this.utils = Fn, this.helpers = Zu({}, Sn), this.options = {}, this.configure(u), e && this.set(e);
|
|
3953
3953
|
}
|
|
3954
|
-
|
|
3954
|
+
ou.prototype.set = function(u) {
|
|
3955
3955
|
return Zu(this.options, u), this;
|
|
3956
3956
|
};
|
|
3957
|
-
|
|
3957
|
+
ou.prototype.configure = function(u) {
|
|
3958
3958
|
const e = this;
|
|
3959
3959
|
if (Fe(u)) {
|
|
3960
3960
|
const t = u;
|
|
3961
|
-
if (u =
|
|
3961
|
+
if (u = ko[t], !u)
|
|
3962
3962
|
throw new Error('Wrong `markdown-it` preset "' + t + '", check name');
|
|
3963
3963
|
}
|
|
3964
3964
|
if (!u)
|
|
@@ -3967,7 +3967,7 @@ au.prototype.configure = function(u) {
|
|
|
3967
3967
|
u.components[t].rules && e[t].ruler.enableOnly(u.components[t].rules), u.components[t].rules2 && e[t].ruler2.enableOnly(u.components[t].rules2);
|
|
3968
3968
|
}), this;
|
|
3969
3969
|
};
|
|
3970
|
-
|
|
3970
|
+
ou.prototype.enable = function(u, e) {
|
|
3971
3971
|
let t = [];
|
|
3972
3972
|
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(r) {
|
|
3973
3973
|
t = t.concat(this[r].ruler.enable(u, !0));
|
|
@@ -3979,7 +3979,7 @@ au.prototype.enable = function(u, e) {
|
|
|
3979
3979
|
throw new Error("MarkdownIt. Failed to enable unknown rule(s): " + n);
|
|
3980
3980
|
return this;
|
|
3981
3981
|
};
|
|
3982
|
-
|
|
3982
|
+
ou.prototype.disable = function(u, e) {
|
|
3983
3983
|
let t = [];
|
|
3984
3984
|
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(r) {
|
|
3985
3985
|
t = t.concat(this[r].ruler.disable(u, !0));
|
|
@@ -3991,27 +3991,27 @@ au.prototype.disable = function(u, e) {
|
|
|
3991
3991
|
throw new Error("MarkdownIt. Failed to disable unknown rule(s): " + n);
|
|
3992
3992
|
return this;
|
|
3993
3993
|
};
|
|
3994
|
-
|
|
3994
|
+
ou.prototype.use = function(u) {
|
|
3995
3995
|
const e = [this].concat(Array.prototype.slice.call(arguments, 1));
|
|
3996
3996
|
return u.apply(u, e), this;
|
|
3997
3997
|
};
|
|
3998
|
-
|
|
3998
|
+
ou.prototype.parse = function(u, e) {
|
|
3999
3999
|
if (typeof u != "string")
|
|
4000
4000
|
throw new Error("Input data should be a String");
|
|
4001
4001
|
const t = new this.core.State(u, this, e);
|
|
4002
4002
|
return this.core.process(t), t.tokens;
|
|
4003
4003
|
};
|
|
4004
|
-
|
|
4004
|
+
ou.prototype.render = function(u, e) {
|
|
4005
4005
|
return e = e || {}, this.renderer.render(this.parse(u, e), this.options, e);
|
|
4006
4006
|
};
|
|
4007
|
-
|
|
4007
|
+
ou.prototype.parseInline = function(u, e) {
|
|
4008
4008
|
const t = new this.core.State(u, this, e);
|
|
4009
4009
|
return t.inlineMode = !0, this.core.process(t), t.tokens;
|
|
4010
4010
|
};
|
|
4011
|
-
|
|
4011
|
+
ou.prototype.renderInline = function(u, e) {
|
|
4012
4012
|
return e = e || {}, this.renderer.render(this.parseInline(u, e), this.options, e);
|
|
4013
4013
|
};
|
|
4014
|
-
const
|
|
4014
|
+
const Fo = ["innerHTML"], Ao = {
|
|
4015
4015
|
__name: "FactorDescription",
|
|
4016
4016
|
props: /* @__PURE__ */ Nu({
|
|
4017
4017
|
factorType: { type: String, default: "模版" },
|
|
@@ -4022,13 +4022,13 @@ const Ea = ["innerHTML"], Fa = {
|
|
|
4022
4022
|
}),
|
|
4023
4023
|
emits: ["update:visible"],
|
|
4024
4024
|
setup(u) {
|
|
4025
|
-
const { request: e } = l0("stConfig"), t = new
|
|
4025
|
+
const { request: e } = l0("stConfig"), t = new ou(), n = eu(""), r = ju(u, "visible");
|
|
4026
4026
|
return d0(async () => {
|
|
4027
|
-
const { data:
|
|
4027
|
+
const { data: o } = await e.post("/middleLayer/special/getOss", { url: "resource/factor_select.md" }), l = new Uint8Array(o.data), c = new TextDecoder("utf-8").decode(l);
|
|
4028
4028
|
n.value = t.render(c);
|
|
4029
|
-
}), (
|
|
4030
|
-
const
|
|
4031
|
-
return D(),
|
|
4029
|
+
}), (o, l) => {
|
|
4030
|
+
const a = it, c = ct, i = a0, f = ge;
|
|
4031
|
+
return D(), L(f, {
|
|
4032
4032
|
modelValue: r.value,
|
|
4033
4033
|
"onUpdate:modelValue": l[0] || (l[0] = (s) => r.value = s),
|
|
4034
4034
|
title: u.factorType === "模版" ? "因子说明" : "脚本编写说明",
|
|
@@ -4041,37 +4041,37 @@ const Ea = ["innerHTML"], Fa = {
|
|
|
4041
4041
|
modal: !1,
|
|
4042
4042
|
"modal-penetrable": !0
|
|
4043
4043
|
}, {
|
|
4044
|
-
default:
|
|
4044
|
+
default: F(() => [
|
|
4045
4045
|
k(i, { height: "500px" }, {
|
|
4046
|
-
default:
|
|
4047
|
-
u.factorType === "模版" ? (D(),
|
|
4046
|
+
default: F(() => [
|
|
4047
|
+
u.factorType === "模版" ? (D(), L(c, {
|
|
4048
4048
|
key: 0,
|
|
4049
4049
|
data: u.data,
|
|
4050
4050
|
border: "",
|
|
4051
4051
|
height: "500"
|
|
4052
4052
|
}, {
|
|
4053
|
-
default:
|
|
4054
|
-
k(
|
|
4053
|
+
default: F(() => [
|
|
4054
|
+
k(a, {
|
|
4055
4055
|
prop: "factorName",
|
|
4056
4056
|
label: "因子名称",
|
|
4057
4057
|
width: "200"
|
|
4058
4058
|
}),
|
|
4059
|
-
k(
|
|
4059
|
+
k(a, {
|
|
4060
4060
|
prop: "factorDesc",
|
|
4061
4061
|
label: "因子说明"
|
|
4062
4062
|
}),
|
|
4063
|
-
k(
|
|
4063
|
+
k(a, {
|
|
4064
4064
|
prop: "factorScoreDefine",
|
|
4065
4065
|
label: "分值定义"
|
|
4066
4066
|
})
|
|
4067
4067
|
]),
|
|
4068
4068
|
_: 1
|
|
4069
|
-
}, 8, ["data"])) :
|
|
4070
|
-
u.factorType === "脚本" ? (D(),
|
|
4069
|
+
}, 8, ["data"])) : P("", !0),
|
|
4070
|
+
u.factorType === "脚本" ? (D(), S("div", {
|
|
4071
4071
|
key: 1,
|
|
4072
4072
|
class: "markdown-body",
|
|
4073
4073
|
innerHTML: n.value
|
|
4074
|
-
}, null, 8,
|
|
4074
|
+
}, null, 8, Fo)) : P("", !0)
|
|
4075
4075
|
]),
|
|
4076
4076
|
_: 1
|
|
4077
4077
|
})
|
|
@@ -4081,7 +4081,7 @@ const Ea = ["innerHTML"], Fa = {
|
|
|
4081
4081
|
};
|
|
4082
4082
|
}
|
|
4083
4083
|
};
|
|
4084
|
-
const Y0 = (u) => (xe("data-v-
|
|
4084
|
+
const Y0 = (u) => (xe("data-v-b7036a88"), u = u(), _e(), u), wo = { class: "factor-screen" }, To = { style: { "white-space": "pre-line" } }, So = { class: "custom-header" }, Io = { class: "left" }, Oo = ["id"], Vo = { class: "right" }, $o = { class: "form-row" }, Ro = { class: "index" }, Mo = { style: { display: "flex", "align-items": "center", width: "100%", height: "24px" } }, qo = /* @__PURE__ */ Y0(() => /* @__PURE__ */ O("span", null, "~", -1)), Bo = /* @__PURE__ */ Y0(() => /* @__PURE__ */ O("span", null, "&&代表and,||代表or", -1)), zo = { class: "dialog-footer" }, Lo = {
|
|
4085
4085
|
__name: "index",
|
|
4086
4086
|
props: /* @__PURE__ */ Nu({
|
|
4087
4087
|
config: {
|
|
@@ -4113,7 +4113,7 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4113
4113
|
}),
|
|
4114
4114
|
emits: ["update:data"],
|
|
4115
4115
|
setup(u) {
|
|
4116
|
-
const e = u, t = ju(u, "data"), n = eu(), r = eu(),
|
|
4116
|
+
const e = u, t = ju(u, "data"), n = eu(), r = eu(), o = eu(!1), l = eu(!1), a = eu("模版"), c = eu(null), i = eu({
|
|
4117
4117
|
// 筛选因子列表
|
|
4118
4118
|
list: [
|
|
4119
4119
|
{
|
|
@@ -4133,9 +4133,9 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4133
4133
|
factorSelectExpr: ""
|
|
4134
4134
|
});
|
|
4135
4135
|
Au(
|
|
4136
|
-
() => [
|
|
4136
|
+
() => [a.value, o.value],
|
|
4137
4137
|
() => {
|
|
4138
|
-
(
|
|
4138
|
+
(a.value === "模版" || o.value === !1) && r.value.close();
|
|
4139
4139
|
},
|
|
4140
4140
|
{ deep: !0 }
|
|
4141
4141
|
);
|
|
@@ -4146,18 +4146,18 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4146
4146
|
sqlEnable: b,
|
|
4147
4147
|
sqlValue: x,
|
|
4148
4148
|
factorSelectExpr: _
|
|
4149
|
-
}, i.value.list.length || m(),
|
|
4150
|
-
_ ? (
|
|
4149
|
+
}, i.value.list.length || m(), o.value = !0, me(() => {
|
|
4150
|
+
_ ? (a.value = "脚本", n.value.setValue(_)) : a.value = "模版", n.value.resize();
|
|
4151
4151
|
});
|
|
4152
4152
|
}, s = () => {
|
|
4153
|
-
if (
|
|
4153
|
+
if (a.value === "模版")
|
|
4154
4154
|
c.value.validate((v) => {
|
|
4155
4155
|
const { list: b, sqlEnable: x, sqlValue: _ } = i.value;
|
|
4156
4156
|
if (v) {
|
|
4157
4157
|
if (x) {
|
|
4158
4158
|
if (!_)
|
|
4159
4159
|
return J.error("SQL语句不能为空");
|
|
4160
|
-
const g = ze(_), V = b.map((
|
|
4160
|
+
const g = ze(_), V = b.map((T, E) => `条件${E + 1}`), y = g.filter((T) => !V.includes(T));
|
|
4161
4161
|
if (y.length)
|
|
4162
4162
|
return J.error(`请检查SQL语句, 不存在[${y}]`);
|
|
4163
4163
|
}
|
|
@@ -4166,7 +4166,7 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4166
4166
|
sqlEnable: x,
|
|
4167
4167
|
sqlValue: _,
|
|
4168
4168
|
factorSelectExpr: ""
|
|
4169
|
-
},
|
|
4169
|
+
}, o.value = !1;
|
|
4170
4170
|
}
|
|
4171
4171
|
});
|
|
4172
4172
|
else {
|
|
@@ -4178,7 +4178,7 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4178
4178
|
sqlEnable: 0,
|
|
4179
4179
|
sqlValue: null,
|
|
4180
4180
|
factorSelectExpr: v
|
|
4181
|
-
},
|
|
4181
|
+
}, o.value = !1;
|
|
4182
4182
|
}
|
|
4183
4183
|
}, p = (v) => {
|
|
4184
4184
|
i.value.list.splice(v, 1);
|
|
@@ -4218,7 +4218,7 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4218
4218
|
case "compare": {
|
|
4219
4219
|
const { cycle: b, factor: x, compareType: _, cycle2: g, factor2: V } = v;
|
|
4220
4220
|
let y = "";
|
|
4221
|
-
return y += ` ${e.config.cycleOptions.find(({ value:
|
|
4221
|
+
return y += ` ${e.config.cycleOptions.find(({ value: T }) => T === b).label}`, y += ` ${e.config.factorOptions.find(({ value: T }) => T === x).label}`, y += ` ${_}`, y += ` ${e.config.cycleOptions.find(({ value: T }) => T === g).label}`, y += ` ${e.config.factorOptions.find(({ value: T }) => T === V).label}`, y;
|
|
4222
4222
|
}
|
|
4223
4223
|
default: {
|
|
4224
4224
|
const { cycle: b, factor: x, score: _ } = v;
|
|
@@ -4264,77 +4264,80 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4264
4264
|
const b = v, x = n.value.getInstance(), _ = x.getPosition(), V = n.value.getValue().split(`
|
|
4265
4265
|
`);
|
|
4266
4266
|
if (_.lineNumber <= V.length) {
|
|
4267
|
-
const y = _.lineNumber - 1,
|
|
4268
|
-
|
|
4269
|
-
|
|
4267
|
+
const y = _.lineNumber - 1, T = V[y], E = _.column - 1, z = E > 0 ? T[E - 1] : "", U = E < T.length ? T[E] : "";
|
|
4268
|
+
let C = b;
|
|
4269
|
+
z && z !== " " && !/[\s({[ ]/.test(z) && (C = " " + C), U && U !== " " && !/[\s)}\]]/.test(U) && (C = C + " ");
|
|
4270
|
+
const Z = T.substring(0, E) + C + T.substring(E);
|
|
4271
|
+
V[y] = Z;
|
|
4272
|
+
const X = V.join(`
|
|
4270
4273
|
`);
|
|
4271
|
-
n.value.setValue(
|
|
4272
|
-
const
|
|
4274
|
+
n.value.setValue(X);
|
|
4275
|
+
const xu = _.column + C.length;
|
|
4273
4276
|
x.setPosition({
|
|
4274
4277
|
lineNumber: _.lineNumber,
|
|
4275
|
-
column:
|
|
4278
|
+
column: xu
|
|
4276
4279
|
}), x.focus();
|
|
4277
4280
|
}
|
|
4278
4281
|
};
|
|
4279
4282
|
return (v, b) => {
|
|
4280
4283
|
var Ie;
|
|
4281
|
-
const x = pt, _ = m0, g = Et, V = h0, y = Ct,
|
|
4282
|
-
return D(),
|
|
4283
|
-
O("div",
|
|
4284
|
+
const x = pt, _ = m0, g = Et, V = h0, y = Ct, T = lt, E = E0, z = ve, U = qe("st-customFunction"), C = de, Z = fe, X = _t, xu = b0, Eu = ye, Fu = p0, Y = gt, K = a0, Qu = ge, K0 = qe("st-varSelectDialog");
|
|
4285
|
+
return D(), S(q, null, [
|
|
4286
|
+
O("div", wo, [
|
|
4284
4287
|
O("div", null, [
|
|
4285
|
-
t.value.sqlEnable && t.value.sqlValue ? (D(),
|
|
4288
|
+
t.value.sqlEnable && t.value.sqlValue ? (D(), L(_, {
|
|
4286
4289
|
key: 0,
|
|
4287
4290
|
closable: "",
|
|
4288
4291
|
type: "info",
|
|
4289
4292
|
title: t.value.sqlValue,
|
|
4290
4293
|
onClose: b[0] || (b[0] = (M) => $("sqlTag"))
|
|
4291
4294
|
}, {
|
|
4292
|
-
default:
|
|
4295
|
+
default: F(() => [
|
|
4293
4296
|
k(x, {
|
|
4294
4297
|
type: "info",
|
|
4295
4298
|
truncated: "",
|
|
4296
4299
|
style: { "max-width": "500px" }
|
|
4297
4300
|
}, {
|
|
4298
|
-
default:
|
|
4299
|
-
B(
|
|
4301
|
+
default: F(() => [
|
|
4302
|
+
B(uu(t.value.sqlValue), 1)
|
|
4300
4303
|
]),
|
|
4301
4304
|
_: 1
|
|
4302
4305
|
})
|
|
4303
4306
|
]),
|
|
4304
4307
|
_: 1
|
|
4305
|
-
}, 8, ["title"])) :
|
|
4306
|
-
!t.value.sqlEnable && t.value.list.length ? (D(!0),
|
|
4308
|
+
}, 8, ["title"])) : P("", !0),
|
|
4309
|
+
!t.value.sqlEnable && t.value.list.length ? (D(!0), S(q, { key: 1 }, j(t.value.list, (M, nu) => (D(), L(_, {
|
|
4307
4310
|
closable: "",
|
|
4308
4311
|
type: "info",
|
|
4309
4312
|
onClose: (R) => $("factorTag", nu)
|
|
4310
4313
|
}, {
|
|
4311
|
-
default:
|
|
4312
|
-
B(
|
|
4314
|
+
default: F(() => [
|
|
4315
|
+
B(uu(w(M)), 1)
|
|
4313
4316
|
]),
|
|
4314
4317
|
_: 2
|
|
4315
|
-
}, 1032, ["onClose"]))), 256)) :
|
|
4316
|
-
t.value.factorSelectExpr ? (D(),
|
|
4318
|
+
}, 1032, ["onClose"]))), 256)) : P("", !0),
|
|
4319
|
+
t.value.factorSelectExpr ? (D(), L(g, {
|
|
4317
4320
|
key: 2,
|
|
4318
4321
|
width: "500",
|
|
4319
4322
|
placement: "bottom-start"
|
|
4320
4323
|
}, {
|
|
4321
|
-
reference:
|
|
4324
|
+
reference: F(() => [
|
|
4322
4325
|
k(_, {
|
|
4323
4326
|
closable: "",
|
|
4324
4327
|
type: "info",
|
|
4325
4328
|
onClose: b[1] || (b[1] = (M) => $("scriptTag"))
|
|
4326
4329
|
}, {
|
|
4327
|
-
default:
|
|
4330
|
+
default: F(() => [
|
|
4328
4331
|
B(" 脚本模式 ")
|
|
4329
4332
|
]),
|
|
4330
4333
|
_: 1
|
|
4331
4334
|
})
|
|
4332
4335
|
]),
|
|
4333
|
-
default:
|
|
4334
|
-
O("div",
|
|
4336
|
+
default: F(() => [
|
|
4337
|
+
O("div", To, uu(t.value.factorSelectExpr), 1)
|
|
4335
4338
|
]),
|
|
4336
4339
|
_: 1
|
|
4337
|
-
})) :
|
|
4340
|
+
})) : P("", !0),
|
|
4338
4341
|
k(V, {
|
|
4339
4342
|
class: "screen-btn",
|
|
4340
4343
|
type: "primary",
|
|
@@ -4343,7 +4346,7 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4343
4346
|
icon: I(Ku),
|
|
4344
4347
|
onClick: f
|
|
4345
4348
|
}, {
|
|
4346
|
-
default:
|
|
4349
|
+
default: F(() => [
|
|
4347
4350
|
B(" 添加因子 ")
|
|
4348
4351
|
]),
|
|
4349
4352
|
_: 1
|
|
@@ -4351,8 +4354,8 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4351
4354
|
]),
|
|
4352
4355
|
k(Qu, {
|
|
4353
4356
|
"modal-class": "factor-dialog",
|
|
4354
|
-
modelValue:
|
|
4355
|
-
"onUpdate:modelValue": b[8] || (b[8] = (M) =>
|
|
4357
|
+
modelValue: o.value,
|
|
4358
|
+
"onUpdate:modelValue": b[8] || (b[8] = (M) => o.value = M),
|
|
4356
4359
|
width: "1000",
|
|
4357
4360
|
"align-center": "",
|
|
4358
4361
|
"destroy-on-close": "",
|
|
@@ -4362,23 +4365,23 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4362
4365
|
"modal-penetrable": !0,
|
|
4363
4366
|
"show-close": !1
|
|
4364
4367
|
}, {
|
|
4365
|
-
header:
|
|
4366
|
-
O("div",
|
|
4367
|
-
O("div",
|
|
4368
|
+
header: F(({ titleId: M, titleClass: nu }) => [
|
|
4369
|
+
O("div", So, [
|
|
4370
|
+
O("div", Io, [
|
|
4368
4371
|
O("span", {
|
|
4369
4372
|
id: M,
|
|
4370
4373
|
class: lu(nu)
|
|
4371
|
-
}, " 因子筛选 ", 10,
|
|
4372
|
-
k(
|
|
4374
|
+
}, " 因子筛选 ", 10, Oo),
|
|
4375
|
+
k(T, {
|
|
4373
4376
|
effect: "dark",
|
|
4374
4377
|
content: "点击查看: 因子使用说明",
|
|
4375
4378
|
placement: "right"
|
|
4376
4379
|
}, {
|
|
4377
|
-
default:
|
|
4380
|
+
default: F(() => [
|
|
4378
4381
|
k(y, {
|
|
4379
4382
|
onClick: b[2] || (b[2] = (R) => l.value = !0)
|
|
4380
4383
|
}, {
|
|
4381
|
-
default:
|
|
4384
|
+
default: F(() => [
|
|
4382
4385
|
k(I(kt))
|
|
4383
4386
|
]),
|
|
4384
4387
|
_: 1
|
|
@@ -4386,17 +4389,17 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4386
4389
|
]),
|
|
4387
4390
|
_: 1
|
|
4388
4391
|
}),
|
|
4389
|
-
k(
|
|
4390
|
-
modelValue:
|
|
4391
|
-
"onUpdate:modelValue": b[3] || (b[3] = (R) =>
|
|
4392
|
+
k(z, {
|
|
4393
|
+
modelValue: a.value,
|
|
4394
|
+
"onUpdate:modelValue": b[3] || (b[3] = (R) => a.value = R),
|
|
4392
4395
|
size: "small"
|
|
4393
4396
|
}, {
|
|
4394
|
-
default:
|
|
4395
|
-
k(
|
|
4397
|
+
default: F(() => [
|
|
4398
|
+
k(E, {
|
|
4396
4399
|
label: "模版",
|
|
4397
4400
|
value: "模版"
|
|
4398
4401
|
}),
|
|
4399
|
-
k(
|
|
4402
|
+
k(E, {
|
|
4400
4403
|
label: "脚本",
|
|
4401
4404
|
value: "脚本"
|
|
4402
4405
|
})
|
|
@@ -4407,25 +4410,25 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4407
4410
|
size: "small",
|
|
4408
4411
|
onInsert: h
|
|
4409
4412
|
}, null, 512), [
|
|
4410
|
-
[f0,
|
|
4413
|
+
[f0, a.value === "脚本"]
|
|
4411
4414
|
])
|
|
4412
4415
|
]),
|
|
4413
|
-
O("div",
|
|
4414
|
-
|
|
4416
|
+
O("div", Vo, [
|
|
4417
|
+
a.value === "脚本" ? (D(), L(V, {
|
|
4415
4418
|
key: 0,
|
|
4416
4419
|
size: "small",
|
|
4417
4420
|
type: "primary",
|
|
4418
4421
|
onClick: A
|
|
4419
4422
|
}, {
|
|
4420
|
-
default:
|
|
4423
|
+
default: F(() => [
|
|
4421
4424
|
B("变量选择器")
|
|
4422
4425
|
]),
|
|
4423
4426
|
_: 1
|
|
4424
|
-
})) :
|
|
4427
|
+
})) : P("", !0),
|
|
4425
4428
|
k(y, {
|
|
4426
|
-
onClick: b[4] || (b[4] = (R) =>
|
|
4429
|
+
onClick: b[4] || (b[4] = (R) => o.value = !1)
|
|
4427
4430
|
}, {
|
|
4428
|
-
default:
|
|
4431
|
+
default: F(() => [
|
|
4429
4432
|
k(I(yt))
|
|
4430
4433
|
]),
|
|
4431
4434
|
_: 1
|
|
@@ -4433,49 +4436,49 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4433
4436
|
])
|
|
4434
4437
|
])
|
|
4435
4438
|
]),
|
|
4436
|
-
footer:
|
|
4437
|
-
O("div",
|
|
4439
|
+
footer: F(() => [
|
|
4440
|
+
O("div", zo, [
|
|
4438
4441
|
k(V, {
|
|
4439
4442
|
type: "primary",
|
|
4440
4443
|
onClick: s
|
|
4441
4444
|
}, {
|
|
4442
|
-
default:
|
|
4445
|
+
default: F(() => [
|
|
4443
4446
|
B("确定")
|
|
4444
4447
|
]),
|
|
4445
4448
|
_: 1
|
|
4446
4449
|
})
|
|
4447
4450
|
])
|
|
4448
4451
|
]),
|
|
4449
|
-
default:
|
|
4450
|
-
|
|
4452
|
+
default: F(() => [
|
|
4453
|
+
a.value === "模版" ? (D(), L(K, {
|
|
4451
4454
|
key: 0,
|
|
4452
4455
|
height: "400px"
|
|
4453
4456
|
}, {
|
|
4454
|
-
default:
|
|
4457
|
+
default: F(() => [
|
|
4455
4458
|
k(Y, {
|
|
4456
4459
|
ref_key: "dialogFormRef",
|
|
4457
4460
|
ref: c,
|
|
4458
4461
|
model: i.value
|
|
4459
4462
|
}, {
|
|
4460
|
-
default:
|
|
4461
|
-
(D(!0),
|
|
4462
|
-
O("span",
|
|
4463
|
-
M.key === "compare" ? (D(),
|
|
4464
|
-
u.config.cycleShow ? (D(),
|
|
4463
|
+
default: F(() => [
|
|
4464
|
+
(D(!0), S(q, null, j(i.value.list, (M, nu) => (D(), S("div", $o, [
|
|
4465
|
+
O("span", Ro, uu(`条件${nu + 1}`), 1),
|
|
4466
|
+
M.key === "compare" ? (D(), S(q, { key: 0 }, [
|
|
4467
|
+
u.config.cycleShow ? (D(), L(X, {
|
|
4465
4468
|
key: 0,
|
|
4466
4469
|
prop: "list." + nu + ".cycle",
|
|
4467
4470
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
4468
4471
|
style: { width: "100px", "margin-right": "10px" }
|
|
4469
4472
|
}, {
|
|
4470
|
-
default:
|
|
4473
|
+
default: F(() => [
|
|
4471
4474
|
k(Z, {
|
|
4472
4475
|
modelValue: M.cycle,
|
|
4473
4476
|
"onUpdate:modelValue": (R) => M.cycle = R,
|
|
4474
4477
|
placeholder: "选择周期",
|
|
4475
4478
|
size: "small"
|
|
4476
4479
|
}, {
|
|
4477
|
-
default:
|
|
4478
|
-
(D(!0),
|
|
4480
|
+
default: F(() => [
|
|
4481
|
+
(D(!0), S(q, null, j(u.config.cycleOptions, ({ label: R, value: H }) => (D(), L(C, {
|
|
4479
4482
|
label: R,
|
|
4480
4483
|
value: H,
|
|
4481
4484
|
key: H
|
|
@@ -4485,13 +4488,13 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4485
4488
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
4486
4489
|
]),
|
|
4487
4490
|
_: 2
|
|
4488
|
-
}, 1032, ["prop"])) :
|
|
4489
|
-
k(
|
|
4491
|
+
}, 1032, ["prop"])) : P("", !0),
|
|
4492
|
+
k(X, {
|
|
4490
4493
|
prop: "list." + nu + ".factor",
|
|
4491
4494
|
rules: { required: !0, message: "因子不能为空", trigger: "blur" },
|
|
4492
4495
|
style: { width: "132px", "margin-right": "10px" }
|
|
4493
4496
|
}, {
|
|
4494
|
-
default:
|
|
4497
|
+
default: F(() => [
|
|
4495
4498
|
k(Z, {
|
|
4496
4499
|
modelValue: M.factor,
|
|
4497
4500
|
"onUpdate:modelValue": (R) => M.factor = R,
|
|
@@ -4500,10 +4503,10 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4500
4503
|
size: "small",
|
|
4501
4504
|
"no-match-text": "无匹配数据"
|
|
4502
4505
|
}, {
|
|
4503
|
-
default:
|
|
4506
|
+
default: F(() => {
|
|
4504
4507
|
var R;
|
|
4505
4508
|
return [
|
|
4506
|
-
(D(!0),
|
|
4509
|
+
(D(!0), S(q, null, j((R = u.config.factorOptions) == null ? void 0 : R.filter((H) => [4].includes(H.type)), ({ label: H, value: fu }) => (D(), L(C, {
|
|
4507
4510
|
label: H,
|
|
4508
4511
|
value: fu,
|
|
4509
4512
|
key: fu
|
|
@@ -4515,15 +4518,15 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4515
4518
|
]),
|
|
4516
4519
|
_: 2
|
|
4517
4520
|
}, 1032, ["prop"]),
|
|
4518
|
-
k(
|
|
4519
|
-
default:
|
|
4521
|
+
k(X, { style: { width: "52px", "margin-right": "10px" } }, {
|
|
4522
|
+
default: F(() => [
|
|
4520
4523
|
k(Z, {
|
|
4521
4524
|
modelValue: M.compareType,
|
|
4522
4525
|
"onUpdate:modelValue": (R) => M.compareType = R,
|
|
4523
4526
|
size: "small"
|
|
4524
4527
|
}, {
|
|
4525
|
-
default:
|
|
4526
|
-
(D(),
|
|
4528
|
+
default: F(() => [
|
|
4529
|
+
(D(), S(q, null, j([">", ">=", "<", "<="], (R) => k(C, {
|
|
4527
4530
|
label: R,
|
|
4528
4531
|
value: R,
|
|
4529
4532
|
key: R
|
|
@@ -4534,21 +4537,21 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4534
4537
|
]),
|
|
4535
4538
|
_: 2
|
|
4536
4539
|
}, 1024),
|
|
4537
|
-
u.config.cycleShow ? (D(),
|
|
4540
|
+
u.config.cycleShow ? (D(), L(X, {
|
|
4538
4541
|
key: 1,
|
|
4539
4542
|
prop: "list." + nu + ".cycle2",
|
|
4540
4543
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
4541
4544
|
style: { width: "100px", "margin-right": "10px" }
|
|
4542
4545
|
}, {
|
|
4543
|
-
default:
|
|
4546
|
+
default: F(() => [
|
|
4544
4547
|
k(Z, {
|
|
4545
4548
|
modelValue: M.cycle2,
|
|
4546
4549
|
"onUpdate:modelValue": (R) => M.cycle2 = R,
|
|
4547
4550
|
placeholder: "选择周期",
|
|
4548
4551
|
size: "small"
|
|
4549
4552
|
}, {
|
|
4550
|
-
default:
|
|
4551
|
-
(D(!0),
|
|
4553
|
+
default: F(() => [
|
|
4554
|
+
(D(!0), S(q, null, j(u.config.cycleOptions, ({ label: R, value: H }) => (D(), L(C, {
|
|
4552
4555
|
label: R,
|
|
4553
4556
|
value: H,
|
|
4554
4557
|
key: H
|
|
@@ -4558,13 +4561,13 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4558
4561
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
4559
4562
|
]),
|
|
4560
4563
|
_: 2
|
|
4561
|
-
}, 1032, ["prop"])) :
|
|
4562
|
-
k(
|
|
4564
|
+
}, 1032, ["prop"])) : P("", !0),
|
|
4565
|
+
k(X, {
|
|
4563
4566
|
prop: "list." + nu + ".factor2",
|
|
4564
4567
|
rules: { required: !0, message: "因子不能为空", trigger: "blur" },
|
|
4565
4568
|
style: { width: "132px", "margin-right": "10px" }
|
|
4566
4569
|
}, {
|
|
4567
|
-
default:
|
|
4570
|
+
default: F(() => [
|
|
4568
4571
|
k(Z, {
|
|
4569
4572
|
modelValue: M.factor2,
|
|
4570
4573
|
"onUpdate:modelValue": (R) => M.factor2 = R,
|
|
@@ -4573,10 +4576,10 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4573
4576
|
size: "small",
|
|
4574
4577
|
"no-match-text": "无匹配数据"
|
|
4575
4578
|
}, {
|
|
4576
|
-
default:
|
|
4579
|
+
default: F(() => {
|
|
4577
4580
|
var R;
|
|
4578
4581
|
return [
|
|
4579
|
-
(D(!0),
|
|
4582
|
+
(D(!0), S(q, null, j((R = u.config.factorOptions) == null ? void 0 : R.filter((H) => [4].includes(H.type)), ({ label: H, value: fu }) => (D(), L(C, {
|
|
4580
4583
|
label: H,
|
|
4581
4584
|
value: fu,
|
|
4582
4585
|
key: fu
|
|
@@ -4588,22 +4591,22 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4588
4591
|
]),
|
|
4589
4592
|
_: 2
|
|
4590
4593
|
}, 1032, ["prop"])
|
|
4591
|
-
], 64)) : (D(),
|
|
4592
|
-
u.config.cycleShow ? (D(),
|
|
4594
|
+
], 64)) : (D(), S(q, { key: 1 }, [
|
|
4595
|
+
u.config.cycleShow ? (D(), L(X, {
|
|
4593
4596
|
key: 0,
|
|
4594
4597
|
prop: "list." + nu + ".cycle",
|
|
4595
4598
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
4596
4599
|
style: { width: "100px", "margin-right": "10px" }
|
|
4597
4600
|
}, {
|
|
4598
|
-
default:
|
|
4601
|
+
default: F(() => [
|
|
4599
4602
|
k(Z, {
|
|
4600
4603
|
modelValue: M.cycle,
|
|
4601
4604
|
"onUpdate:modelValue": (R) => M.cycle = R,
|
|
4602
4605
|
placeholder: "选择周期",
|
|
4603
4606
|
size: "small"
|
|
4604
4607
|
}, {
|
|
4605
|
-
default:
|
|
4606
|
-
(D(!0),
|
|
4608
|
+
default: F(() => [
|
|
4609
|
+
(D(!0), S(q, null, j(u.config.cycleOptions, ({ label: R, value: H }) => (D(), L(C, {
|
|
4607
4610
|
label: R,
|
|
4608
4611
|
value: H,
|
|
4609
4612
|
key: H
|
|
@@ -4613,13 +4616,13 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4613
4616
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
4614
4617
|
]),
|
|
4615
4618
|
_: 2
|
|
4616
|
-
}, 1032, ["prop"])) :
|
|
4617
|
-
k(
|
|
4619
|
+
}, 1032, ["prop"])) : P("", !0),
|
|
4620
|
+
k(X, {
|
|
4618
4621
|
prop: "list." + nu + ".factor",
|
|
4619
4622
|
rules: { required: !0, message: "因子不能为空", trigger: "blur" },
|
|
4620
4623
|
style: { width: "194px", "margin-right": "10px" }
|
|
4621
4624
|
}, {
|
|
4622
|
-
default:
|
|
4625
|
+
default: F(() => [
|
|
4623
4626
|
k(Z, {
|
|
4624
4627
|
modelValue: M.factor,
|
|
4625
4628
|
"onUpdate:modelValue": (R) => M.factor = R,
|
|
@@ -4628,10 +4631,10 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4628
4631
|
size: "small",
|
|
4629
4632
|
"no-match-text": "无匹配数据"
|
|
4630
4633
|
}, {
|
|
4631
|
-
default:
|
|
4634
|
+
default: F(() => {
|
|
4632
4635
|
var R;
|
|
4633
4636
|
return [
|
|
4634
|
-
(D(!0),
|
|
4637
|
+
(D(!0), S(q, null, j((R = u.config.factorOptions) == null ? void 0 : R.filter((H) => [1, 3].includes(H.type)), ({ label: H, value: fu }) => (D(), L(C, {
|
|
4635
4638
|
label: H,
|
|
4636
4639
|
value: fu,
|
|
4637
4640
|
key: fu
|
|
@@ -4643,21 +4646,21 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4643
4646
|
]),
|
|
4644
4647
|
_: 2
|
|
4645
4648
|
}, 1032, ["prop"]),
|
|
4646
|
-
k(
|
|
4649
|
+
k(X, {
|
|
4647
4650
|
prop: "list." + nu + ".score",
|
|
4648
4651
|
rules: { validator: I(Bt), trigger: "blur" },
|
|
4649
4652
|
style: { width: "200px", "margin-right": "10px" }
|
|
4650
4653
|
}, {
|
|
4651
|
-
default:
|
|
4652
|
-
O("div",
|
|
4653
|
-
k(
|
|
4654
|
+
default: F(() => [
|
|
4655
|
+
O("div", Mo, [
|
|
4656
|
+
k(xu, {
|
|
4654
4657
|
modelValue: M.score[0],
|
|
4655
4658
|
"onUpdate:modelValue": (R) => M.score[0] = R,
|
|
4656
4659
|
size: "small",
|
|
4657
4660
|
"controls-position": "right"
|
|
4658
4661
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
4659
|
-
|
|
4660
|
-
k(
|
|
4662
|
+
qo,
|
|
4663
|
+
k(xu, {
|
|
4661
4664
|
modelValue: M.score[1],
|
|
4662
4665
|
"onUpdate:modelValue": (R) => M.score[1] = R,
|
|
4663
4666
|
size: "small",
|
|
@@ -4671,7 +4674,7 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4671
4674
|
k(y, {
|
|
4672
4675
|
onClick: (R) => p(nu)
|
|
4673
4676
|
}, {
|
|
4674
|
-
default:
|
|
4677
|
+
default: F(() => [
|
|
4675
4678
|
k(I(vt))
|
|
4676
4679
|
]),
|
|
4677
4680
|
_: 2
|
|
@@ -4685,7 +4688,7 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4685
4688
|
onClick: m,
|
|
4686
4689
|
style: { "margin-bottom": "10px" }
|
|
4687
4690
|
}, {
|
|
4688
|
-
default:
|
|
4691
|
+
default: F(() => [
|
|
4689
4692
|
B("添加因子")
|
|
4690
4693
|
]),
|
|
4691
4694
|
_: 1
|
|
@@ -4698,19 +4701,19 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4698
4701
|
onClick: b[5] || (b[5] = (M) => m("compare")),
|
|
4699
4702
|
style: { "margin-bottom": "10px" }
|
|
4700
4703
|
}, {
|
|
4701
|
-
default:
|
|
4704
|
+
default: F(() => [
|
|
4702
4705
|
B("添加因子对比")
|
|
4703
4706
|
]),
|
|
4704
4707
|
_: 1
|
|
4705
4708
|
}, 8, ["icon"]),
|
|
4706
|
-
u.config.sqlShow ? (D(),
|
|
4707
|
-
k(
|
|
4708
|
-
default:
|
|
4709
|
-
k(
|
|
4709
|
+
u.config.sqlShow ? (D(), S(q, { key: 0 }, [
|
|
4710
|
+
k(X, { label: "SQL功能: " }, {
|
|
4711
|
+
default: F(() => [
|
|
4712
|
+
k(z, {
|
|
4710
4713
|
modelValue: i.value.sqlEnable,
|
|
4711
4714
|
"onUpdate:modelValue": b[6] || (b[6] = (M) => i.value.sqlEnable = M)
|
|
4712
4715
|
}, {
|
|
4713
|
-
default:
|
|
4716
|
+
default: F(() => [
|
|
4714
4717
|
k(Eu, {
|
|
4715
4718
|
label: "关闭",
|
|
4716
4719
|
value: 0
|
|
@@ -4722,22 +4725,22 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4722
4725
|
]),
|
|
4723
4726
|
_: 1
|
|
4724
4727
|
}, 8, ["modelValue"]),
|
|
4725
|
-
i.value.sqlEnable ? (D(),
|
|
4728
|
+
i.value.sqlEnable ? (D(), L(V, {
|
|
4726
4729
|
key: 0,
|
|
4727
4730
|
type: "primary",
|
|
4728
4731
|
size: "small",
|
|
4729
4732
|
onClick: d,
|
|
4730
4733
|
style: { "margin-left": "auto" }
|
|
4731
4734
|
}, {
|
|
4732
|
-
default:
|
|
4735
|
+
default: F(() => [
|
|
4733
4736
|
B("生成SQL")
|
|
4734
4737
|
]),
|
|
4735
4738
|
_: 1
|
|
4736
|
-
})) :
|
|
4739
|
+
})) : P("", !0)
|
|
4737
4740
|
]),
|
|
4738
4741
|
_: 1
|
|
4739
4742
|
}),
|
|
4740
|
-
i.value.sqlEnable ? (D(),
|
|
4743
|
+
i.value.sqlEnable ? (D(), S(q, { key: 0 }, [
|
|
4741
4744
|
k(Fu, {
|
|
4742
4745
|
modelValue: i.value.sqlValue,
|
|
4743
4746
|
"onUpdate:modelValue": b[7] || (b[7] = (M) => i.value.sqlValue = M),
|
|
@@ -4745,17 +4748,17 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4745
4748
|
type: "textarea",
|
|
4746
4749
|
style: { "margin-bottom": "10px" }
|
|
4747
4750
|
}, null, 8, ["modelValue"]),
|
|
4748
|
-
|
|
4749
|
-
], 64)) :
|
|
4750
|
-
], 64)) :
|
|
4751
|
+
Bo
|
|
4752
|
+
], 64)) : P("", !0)
|
|
4753
|
+
], 64)) : P("", !0)
|
|
4751
4754
|
]),
|
|
4752
4755
|
_: 1
|
|
4753
4756
|
}, 8, ["model"])
|
|
4754
4757
|
]),
|
|
4755
4758
|
_: 1
|
|
4756
|
-
})) :
|
|
4759
|
+
})) : P("", !0),
|
|
4757
4760
|
O("div", {
|
|
4758
|
-
style: s0([{ width: "968px", height: "400px" },
|
|
4761
|
+
style: s0([{ width: "968px", height: "400px" }, a.value === "脚本" ? null : { position: "fixed", top: "-400px", zIndex: -1, visibility: "hidden", pointerEvents: "none" }])
|
|
4759
4762
|
}, [
|
|
4760
4763
|
k(Dt, {
|
|
4761
4764
|
ref_key: "monacoEditorRef",
|
|
@@ -4767,10 +4770,10 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4767
4770
|
_: 1
|
|
4768
4771
|
}, 8, ["modelValue"])
|
|
4769
4772
|
]),
|
|
4770
|
-
k(
|
|
4773
|
+
k(Ao, {
|
|
4771
4774
|
visible: l.value,
|
|
4772
4775
|
"onUpdate:visible": b[9] || (b[9] = (M) => l.value = M),
|
|
4773
|
-
factorType:
|
|
4776
|
+
factorType: a.value,
|
|
4774
4777
|
data: (Ie = u.config.factorDescriptions) == null ? void 0 : Ie.filter((M) => [1, 3].includes(M.type))
|
|
4775
4778
|
}, null, 8, ["visible", "factorType", "data"]),
|
|
4776
4779
|
k(K0, {
|
|
@@ -4780,20 +4783,20 @@ const Y0 = (u) => (xe("data-v-13053ba7"), u = u(), _e(), u), Aa = { class: "fact
|
|
|
4780
4783
|
], 64);
|
|
4781
4784
|
};
|
|
4782
4785
|
}
|
|
4783
|
-
},
|
|
4784
|
-
const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u),
|
|
4786
|
+
}, Po = /* @__PURE__ */ ke(Lo, [["__scopeId", "data-v-b7036a88"]]);
|
|
4787
|
+
const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Uo = {
|
|
4785
4788
|
key: 0,
|
|
4786
4789
|
class: "common-indicator"
|
|
4787
|
-
},
|
|
4790
|
+
}, No = { class: "indicator" }, jo = /* @__PURE__ */ Wu(() => /* @__PURE__ */ O("div", { class: "title" }, [
|
|
4788
4791
|
/* @__PURE__ */ O("span", null, "常用指标: "),
|
|
4789
4792
|
/* @__PURE__ */ O("span", null, "不限")
|
|
4790
|
-
], -1)),
|
|
4793
|
+
], -1)), Zo = { class: "options" }, Ho = ["onClick"], Go = { class: "tags" }, Jo = ["onClick"], Wo = { style: { "font-size": "18px" } }, Qo = {
|
|
4791
4794
|
key: 0,
|
|
4792
4795
|
class: "out-box"
|
|
4793
|
-
},
|
|
4796
|
+
}, Yo = /* @__PURE__ */ Wu(() => /* @__PURE__ */ O("span", null, "自定义: ", -1)), Ko = {
|
|
4794
4797
|
key: 0,
|
|
4795
4798
|
class: "convenient-option-box"
|
|
4796
|
-
},
|
|
4799
|
+
}, Xo = { class: "out-box" }, ua = /* @__PURE__ */ Wu(() => /* @__PURE__ */ O("span", null, "自定义: ", -1)), ea = { key: 0 }, ta = { key: 0 }, na = { key: 0 }, ra = { key: 1 }, oa = { class: "tFeaturelncomes-option-box" }, aa = { class: "tFeaturelncomes-out-box" }, la = /* @__PURE__ */ Wu(() => /* @__PURE__ */ O("span", null, "自定义: ", -1)), ia = { key: 2 }, ca = { key: 3 }, sa = { key: 4 }, da = { key: 5 }, fa = { key: 6 }, pa = { style: { display: "flex", "align-items": "center" } }, ba = { key: 7 }, ha = { class: "dialog-footer" }, ma = {
|
|
4797
4800
|
__name: "index",
|
|
4798
4801
|
props: /* @__PURE__ */ Nu({
|
|
4799
4802
|
config: { type: Object, default: () => {
|
|
@@ -4819,10 +4822,10 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
4819
4822
|
{ label: "保留意见", value: 2 },
|
|
4820
4823
|
{ label: "否定意见", value: 3 },
|
|
4821
4824
|
{ label: "无法表示意见", value: 4 }
|
|
4822
|
-
], n = ju(u, "data"), r = u,
|
|
4825
|
+
], n = ju(u, "data"), r = u, o = eu(!1), l = W(() => {
|
|
4823
4826
|
var A;
|
|
4824
4827
|
return (A = r.data.find((h) => h.radioType === "1")) == null ? void 0 : A.key;
|
|
4825
|
-
}),
|
|
4828
|
+
}), a = W(() => {
|
|
4826
4829
|
let A = [];
|
|
4827
4830
|
return r.varietyMarket === null && !r.commonOption.length ? A = r.config.options : (A = r.config.options, r.varietyMarket && (A = A.filter(({ parent: h }) => h.varietyMarketIds.includes(r.varietyMarket))), r.commonOption.length && (A = A.filter(({ parent: h }) => {
|
|
4828
4831
|
const { commonOptionIds: v } = h;
|
|
@@ -4898,7 +4901,7 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
4898
4901
|
// 默认排名
|
|
4899
4902
|
};
|
|
4900
4903
|
}
|
|
4901
|
-
|
|
4904
|
+
o.value = !0;
|
|
4902
4905
|
}, s = () => {
|
|
4903
4906
|
var h, v;
|
|
4904
4907
|
switch (i.value.key) {
|
|
@@ -4950,8 +4953,8 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
4950
4953
|
const { label: b, radioType: x, radio: _, rankRange: g } = i.value, V = (y) => {
|
|
4951
4954
|
if (y === "" || y === null || y === void 0)
|
|
4952
4955
|
return !1;
|
|
4953
|
-
const
|
|
4954
|
-
return !isNaN(
|
|
4956
|
+
const T = Number(y);
|
|
4957
|
+
return !isNaN(T);
|
|
4955
4958
|
};
|
|
4956
4959
|
if (!_)
|
|
4957
4960
|
return J.warning("格式错误: 请选择时间");
|
|
@@ -4972,12 +4975,12 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
4972
4975
|
if (["", null].includes(g[0]) && ["", null].includes(g[1]))
|
|
4973
4976
|
return J.warning("格式错误: 请至少填写一个值");
|
|
4974
4977
|
if (_ === "1") {
|
|
4975
|
-
const
|
|
4976
|
-
if (isNaN(
|
|
4978
|
+
const T = Number(g[0]), E = Number(g[1]);
|
|
4979
|
+
if (isNaN(T) || isNaN(E))
|
|
4977
4980
|
return J.warning("格式错误: 请填写数字");
|
|
4978
|
-
if (
|
|
4981
|
+
if (T < 0 || E < 0)
|
|
4979
4982
|
return J.warning("格式错误: 请填写大于0的数字");
|
|
4980
|
-
if (
|
|
4983
|
+
if (T > E)
|
|
4981
4984
|
return J.warning("格式错误: 请填写正确的排名范围");
|
|
4982
4985
|
}
|
|
4983
4986
|
const V = _ === "1" ? "" : x[0] ?? "", y = _ === "1" ? "" : x[1] ?? "";
|
|
@@ -4985,9 +4988,9 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
4985
4988
|
}
|
|
4986
4989
|
}
|
|
4987
4990
|
const A = n.value.findIndex(({ key: b }) => b === i.value.key);
|
|
4988
|
-
A === -1 ? n.value.push(i.value) : n.value.splice(A, 1, i.value),
|
|
4991
|
+
A === -1 ? n.value.push(i.value) : n.value.splice(A, 1, i.value), o.value = !1;
|
|
4989
4992
|
}, p = (A) => {
|
|
4990
|
-
c.value =
|
|
4993
|
+
c.value = a.value.find(({ key: h }) => h === A.key), i.value = JSON.parse(JSON.stringify(A)), o.value = !0;
|
|
4991
4994
|
}, m = (A) => {
|
|
4992
4995
|
n.value.splice(A, 1);
|
|
4993
4996
|
}, d = (A) => {
|
|
@@ -5038,68 +5041,68 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5038
5041
|
}
|
|
5039
5042
|
};
|
|
5040
5043
|
Au(
|
|
5041
|
-
() =>
|
|
5044
|
+
() => a.value,
|
|
5042
5045
|
() => {
|
|
5043
|
-
n.value.length && (n.value = n.value.filter(({ key: A }) =>
|
|
5046
|
+
n.value.length && (n.value = n.value.filter(({ key: A }) => a.value.find((h) => h.key === A)));
|
|
5044
5047
|
}
|
|
5045
5048
|
);
|
|
5046
5049
|
const $ = () => {
|
|
5047
5050
|
i.value.radio = null, i.value.rankRange = [null, null];
|
|
5048
5051
|
};
|
|
5049
5052
|
return (A, h) => {
|
|
5050
|
-
const v = m0, b = E0, x = ve, _ = p0, g = h0, V = de, y = fe,
|
|
5051
|
-
return u.config.show &&
|
|
5052
|
-
O("div",
|
|
5053
|
-
|
|
5054
|
-
O("div",
|
|
5055
|
-
(D(!0),
|
|
5053
|
+
const v = m0, b = E0, x = ve, _ = p0, g = h0, V = de, y = fe, T = ye, E = b0, z = ge;
|
|
5054
|
+
return u.config.show && a.value.length ? (D(), S("div", Uo, [
|
|
5055
|
+
O("div", No, [
|
|
5056
|
+
jo,
|
|
5057
|
+
O("div", Zo, [
|
|
5058
|
+
(D(!0), S(q, null, j(a.value, (U) => (D(), S("span", {
|
|
5056
5059
|
key: U.key,
|
|
5057
5060
|
onClick: (C) => f(U)
|
|
5058
|
-
},
|
|
5061
|
+
}, uu(U.label), 9, Ho))), 128))
|
|
5059
5062
|
])
|
|
5060
5063
|
]),
|
|
5061
|
-
O("div",
|
|
5062
|
-
(D(!0),
|
|
5064
|
+
O("div", Go, [
|
|
5065
|
+
(D(!0), S(q, null, j(n.value, (U, C) => (D(), L(v, {
|
|
5063
5066
|
closable: "",
|
|
5064
5067
|
type: "info",
|
|
5065
5068
|
onClose: (Z) => m(C)
|
|
5066
5069
|
}, {
|
|
5067
|
-
default:
|
|
5068
|
-
O("span", null,
|
|
5070
|
+
default: F(() => [
|
|
5071
|
+
O("span", null, uu(U.tagText), 1),
|
|
5069
5072
|
O("span", {
|
|
5070
5073
|
class: "edit",
|
|
5071
5074
|
onClick: (Z) => p(U)
|
|
5072
|
-
}, "编辑", 8,
|
|
5075
|
+
}, "编辑", 8, Jo)
|
|
5073
5076
|
]),
|
|
5074
5077
|
_: 2
|
|
5075
5078
|
}, 1032, ["onClose"]))), 256))
|
|
5076
5079
|
]),
|
|
5077
|
-
k(
|
|
5078
|
-
modelValue:
|
|
5079
|
-
"onUpdate:modelValue": h[26] || (h[26] = (U) =>
|
|
5080
|
+
k(z, {
|
|
5081
|
+
modelValue: o.value,
|
|
5082
|
+
"onUpdate:modelValue": h[26] || (h[26] = (U) => o.value = U),
|
|
5080
5083
|
title: c.value.label,
|
|
5081
5084
|
width: "600",
|
|
5082
5085
|
"align-center": "",
|
|
5083
5086
|
"destroy-on-close": ""
|
|
5084
5087
|
}, Yu({
|
|
5085
|
-
footer:
|
|
5086
|
-
O("div",
|
|
5088
|
+
footer: F(() => [
|
|
5089
|
+
O("div", ha, [
|
|
5087
5090
|
k(g, {
|
|
5088
5091
|
type: "primary",
|
|
5089
5092
|
onClick: s
|
|
5090
5093
|
}, {
|
|
5091
|
-
default:
|
|
5094
|
+
default: F(() => [
|
|
5092
5095
|
B("确定")
|
|
5093
5096
|
]),
|
|
5094
5097
|
_: 1
|
|
5095
5098
|
})
|
|
5096
5099
|
])
|
|
5097
5100
|
]),
|
|
5098
|
-
default:
|
|
5101
|
+
default: F(() => {
|
|
5099
5102
|
var U;
|
|
5100
5103
|
return [
|
|
5101
|
-
c.value.type === void 0 && i.value.radioType === "1" ? (D(),
|
|
5102
|
-
|
|
5104
|
+
c.value.type === void 0 && i.value.radioType === "1" ? (D(), S("div", Qo, [
|
|
5105
|
+
Yo,
|
|
5103
5106
|
k(_, {
|
|
5104
5107
|
modelValue: i.value.rankRange[0],
|
|
5105
5108
|
"onUpdate:modelValue": h[2] || (h[2] = (C) => i.value.rankRange[0] = C),
|
|
@@ -5111,20 +5114,20 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5111
5114
|
"onUpdate:modelValue": h[3] || (h[3] = (C) => i.value.rankRange[1] = C),
|
|
5112
5115
|
style: { flex: "1" }
|
|
5113
5116
|
}, null, 8, ["modelValue"])
|
|
5114
|
-
])) : c.value.type === void 0 ? (D(),
|
|
5115
|
-
(U = c.value.convenientOptions) != null && U.length ? (D(),
|
|
5116
|
-
(D(!0),
|
|
5117
|
+
])) : c.value.type === void 0 ? (D(), S(q, { key: 1 }, [
|
|
5118
|
+
(U = c.value.convenientOptions) != null && U.length ? (D(), S("div", Ko, [
|
|
5119
|
+
(D(!0), S(q, null, j(c.value.convenientOptions, (C) => (D(), L(g, {
|
|
5117
5120
|
key: C.text,
|
|
5118
5121
|
onClick: (Z) => d(C)
|
|
5119
5122
|
}, {
|
|
5120
|
-
default:
|
|
5121
|
-
B(
|
|
5123
|
+
default: F(() => [
|
|
5124
|
+
B(uu(C.text), 1)
|
|
5122
5125
|
]),
|
|
5123
5126
|
_: 2
|
|
5124
5127
|
}, 1032, ["onClick"]))), 128))
|
|
5125
|
-
])) :
|
|
5126
|
-
O("div",
|
|
5127
|
-
|
|
5128
|
+
])) : P("", !0),
|
|
5129
|
+
O("div", Xo, [
|
|
5130
|
+
ua,
|
|
5128
5131
|
k(_, {
|
|
5129
5132
|
modelValue: i.value.range[0],
|
|
5130
5133
|
"onUpdate:modelValue": h[5] || (h[5] = (C) => i.value.range[0] = C),
|
|
@@ -5132,15 +5135,15 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5132
5135
|
}, Yu({ _: 2 }, [
|
|
5133
5136
|
c.value.unitOptions.length ? {
|
|
5134
5137
|
name: "append",
|
|
5135
|
-
fn:
|
|
5136
|
-
c.value.unitOptions.length === 1 ? (D(),
|
|
5138
|
+
fn: F(() => [
|
|
5139
|
+
c.value.unitOptions.length === 1 ? (D(), S("span", ea, uu(i.value.unit[0]), 1)) : (D(), L(y, {
|
|
5137
5140
|
key: 1,
|
|
5138
5141
|
modelValue: i.value.unit[0],
|
|
5139
5142
|
"onUpdate:modelValue": h[4] || (h[4] = (C) => i.value.unit[0] = C),
|
|
5140
5143
|
style: { width: "72px" }
|
|
5141
5144
|
}, {
|
|
5142
|
-
default:
|
|
5143
|
-
(D(!0),
|
|
5145
|
+
default: F(() => [
|
|
5146
|
+
(D(!0), S(q, null, j(c.value.unitOptions, (C) => (D(), L(V, {
|
|
5144
5147
|
label: C,
|
|
5145
5148
|
value: C
|
|
5146
5149
|
}, null, 8, ["label", "value"]))), 256))
|
|
@@ -5159,15 +5162,15 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5159
5162
|
}, Yu({ _: 2 }, [
|
|
5160
5163
|
c.value.unitOptions.length ? {
|
|
5161
5164
|
name: "append",
|
|
5162
|
-
fn:
|
|
5163
|
-
c.value.unitOptions.length === 1 ? (D(),
|
|
5165
|
+
fn: F(() => [
|
|
5166
|
+
c.value.unitOptions.length === 1 ? (D(), S("span", ta, uu(i.value.unit[1]), 1)) : (D(), L(y, {
|
|
5164
5167
|
key: 1,
|
|
5165
5168
|
modelValue: i.value.unit[1],
|
|
5166
5169
|
"onUpdate:modelValue": h[6] || (h[6] = (C) => i.value.unit[1] = C),
|
|
5167
5170
|
style: { width: "72px" }
|
|
5168
5171
|
}, {
|
|
5169
|
-
default:
|
|
5170
|
-
(D(!0),
|
|
5172
|
+
default: F(() => [
|
|
5173
|
+
(D(!0), S(q, null, j(c.value.unitOptions, (C) => (D(), L(V, {
|
|
5171
5174
|
label: C,
|
|
5172
5175
|
value: C
|
|
5173
5176
|
}, null, 8, ["label", "value"]))), 256))
|
|
@@ -5179,31 +5182,31 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5179
5182
|
} : void 0
|
|
5180
5183
|
]), 1032, ["modelValue"])
|
|
5181
5184
|
])
|
|
5182
|
-
], 64)) : (D(),
|
|
5183
|
-
c.value.key === "st" ? (D(),
|
|
5185
|
+
], 64)) : (D(), S(q, { key: 2 }, [
|
|
5186
|
+
c.value.key === "st" ? (D(), S("div", na, [
|
|
5184
5187
|
k(x, {
|
|
5185
5188
|
modelValue: i.value.st,
|
|
5186
5189
|
"onUpdate:modelValue": h[8] || (h[8] = (C) => i.value.st = C)
|
|
5187
5190
|
}, {
|
|
5188
|
-
default:
|
|
5189
|
-
k(
|
|
5191
|
+
default: F(() => [
|
|
5192
|
+
k(T, {
|
|
5190
5193
|
label: "是",
|
|
5191
5194
|
value: 1
|
|
5192
5195
|
}),
|
|
5193
|
-
k(
|
|
5196
|
+
k(T, {
|
|
5194
5197
|
label: "否",
|
|
5195
5198
|
value: 0
|
|
5196
5199
|
})
|
|
5197
5200
|
]),
|
|
5198
5201
|
_: 1
|
|
5199
5202
|
}, 8, ["modelValue"])
|
|
5200
|
-
])) :
|
|
5201
|
-
c.value.key === "tFeaturelncomes" ? (D(),
|
|
5202
|
-
O("div",
|
|
5203
|
+
])) : P("", !0),
|
|
5204
|
+
c.value.key === "tFeaturelncomes" ? (D(), S("div", ra, [
|
|
5205
|
+
O("div", oa, [
|
|
5203
5206
|
k(g, {
|
|
5204
5207
|
onClick: h[9] || (h[9] = (C) => w("≤0"))
|
|
5205
5208
|
}, {
|
|
5206
|
-
default:
|
|
5209
|
+
default: F(() => [
|
|
5207
5210
|
B("≤0")
|
|
5208
5211
|
]),
|
|
5209
5212
|
_: 1
|
|
@@ -5211,7 +5214,7 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5211
5214
|
k(g, {
|
|
5212
5215
|
onClick: h[10] || (h[10] = (C) => w("≥0"))
|
|
5213
5216
|
}, {
|
|
5214
|
-
default:
|
|
5217
|
+
default: F(() => [
|
|
5215
5218
|
B("≥0")
|
|
5216
5219
|
]),
|
|
5217
5220
|
_: 1
|
|
@@ -5219,7 +5222,7 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5219
5222
|
k(g, {
|
|
5220
5223
|
onClick: h[11] || (h[11] = (C) => w("五年内有四年以上盈利超过5千万"))
|
|
5221
5224
|
}, {
|
|
5222
|
-
default:
|
|
5225
|
+
default: F(() => [
|
|
5223
5226
|
B("五年内有四年以上盈利超过5千万")
|
|
5224
5227
|
]),
|
|
5225
5228
|
_: 1
|
|
@@ -5227,7 +5230,7 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5227
5230
|
k(g, {
|
|
5228
5231
|
onClick: h[12] || (h[12] = (C) => w("≥10亿"))
|
|
5229
5232
|
}, {
|
|
5230
|
-
default:
|
|
5233
|
+
default: F(() => [
|
|
5231
5234
|
B("≥10亿")
|
|
5232
5235
|
]),
|
|
5233
5236
|
_: 1
|
|
@@ -5235,28 +5238,28 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5235
5238
|
k(g, {
|
|
5236
5239
|
onClick: h[13] || (h[13] = (C) => w("≥20亿"))
|
|
5237
5240
|
}, {
|
|
5238
|
-
default:
|
|
5241
|
+
default: F(() => [
|
|
5239
5242
|
B("≥20亿")
|
|
5240
5243
|
]),
|
|
5241
5244
|
_: 1
|
|
5242
5245
|
})
|
|
5243
5246
|
]),
|
|
5244
|
-
O("div",
|
|
5245
|
-
|
|
5247
|
+
O("div", aa, [
|
|
5248
|
+
la,
|
|
5246
5249
|
O("div", null, [
|
|
5247
|
-
k(
|
|
5250
|
+
k(E, {
|
|
5248
5251
|
modelValue: i.value.withFewYears,
|
|
5249
5252
|
"onUpdate:modelValue": h[14] || (h[14] = (C) => i.value.withFewYears = C),
|
|
5250
5253
|
"controls-position": "right"
|
|
5251
5254
|
}, null, 8, ["modelValue"]),
|
|
5252
5255
|
B(" 年内 "),
|
|
5253
|
-
k(
|
|
5256
|
+
k(E, {
|
|
5254
5257
|
modelValue: i.value.yearsCount,
|
|
5255
5258
|
"onUpdate:modelValue": h[15] || (h[15] = (C) => i.value.yearsCount = C),
|
|
5256
5259
|
"controls-position": "right"
|
|
5257
5260
|
}, null, 8, ["modelValue"]),
|
|
5258
|
-
B(" 年以上盈利" +
|
|
5259
|
-
k(
|
|
5261
|
+
B(" 年以上盈利" + uu(i.value.rule === 1 ? "超" : "跌") + "过 ", 1),
|
|
5262
|
+
k(E, {
|
|
5260
5263
|
modelValue: i.value.netProfit,
|
|
5261
5264
|
"onUpdate:modelValue": h[16] || (h[16] = (C) => i.value.netProfit = C),
|
|
5262
5265
|
"controls-position": "right"
|
|
@@ -5264,8 +5267,8 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5264
5267
|
B(" 亿 ")
|
|
5265
5268
|
])
|
|
5266
5269
|
])
|
|
5267
|
-
])) :
|
|
5268
|
-
c.value.key === "priceLevels" ? (D(),
|
|
5270
|
+
])) : P("", !0),
|
|
5271
|
+
c.value.key === "priceLevels" ? (D(), S("div", ia, [
|
|
5269
5272
|
k(y, {
|
|
5270
5273
|
modelValue: i.value.priceLevels,
|
|
5271
5274
|
"onUpdate:modelValue": h[17] || (h[17] = (C) => i.value.priceLevels = C),
|
|
@@ -5274,8 +5277,8 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5274
5277
|
placeholder: "请选择",
|
|
5275
5278
|
style: { width: "420px" }
|
|
5276
5279
|
}, {
|
|
5277
|
-
default:
|
|
5278
|
-
(D(),
|
|
5280
|
+
default: F(() => [
|
|
5281
|
+
(D(), S(q, null, j([1, 2, 3, 4, 5], (C) => k(V, {
|
|
5279
5282
|
key: C,
|
|
5280
5283
|
label: `${C}分位`,
|
|
5281
5284
|
value: C
|
|
@@ -5283,8 +5286,8 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5283
5286
|
]),
|
|
5284
5287
|
_: 1
|
|
5285
5288
|
}, 8, ["modelValue"])
|
|
5286
|
-
])) :
|
|
5287
|
-
c.value.key === "peTtmLevels" ? (D(),
|
|
5289
|
+
])) : P("", !0),
|
|
5290
|
+
c.value.key === "peTtmLevels" ? (D(), S("div", ca, [
|
|
5288
5291
|
k(y, {
|
|
5289
5292
|
modelValue: i.value.peTtmLevels,
|
|
5290
5293
|
"onUpdate:modelValue": h[18] || (h[18] = (C) => i.value.peTtmLevels = C),
|
|
@@ -5293,8 +5296,8 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5293
5296
|
placeholder: "请选择",
|
|
5294
5297
|
style: { width: "420px" }
|
|
5295
5298
|
}, {
|
|
5296
|
-
default:
|
|
5297
|
-
(D(),
|
|
5299
|
+
default: F(() => [
|
|
5300
|
+
(D(), S(q, null, j([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], (C) => k(V, {
|
|
5298
5301
|
key: C,
|
|
5299
5302
|
label: `${C}分位`,
|
|
5300
5303
|
value: C
|
|
@@ -5302,37 +5305,37 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5302
5305
|
]),
|
|
5303
5306
|
_: 1
|
|
5304
5307
|
}, 8, ["modelValue"])
|
|
5305
|
-
])) :
|
|
5306
|
-
c.value.key === "optionsCpType" ? (D(),
|
|
5308
|
+
])) : P("", !0),
|
|
5309
|
+
c.value.key === "optionsCpType" ? (D(), S("div", sa, [
|
|
5307
5310
|
k(x, {
|
|
5308
5311
|
modelValue: i.value.optionsCpType,
|
|
5309
5312
|
"onUpdate:modelValue": h[19] || (h[19] = (C) => i.value.optionsCpType = C)
|
|
5310
5313
|
}, {
|
|
5311
|
-
default:
|
|
5312
|
-
k(
|
|
5314
|
+
default: F(() => [
|
|
5315
|
+
k(T, {
|
|
5313
5316
|
label: "看涨",
|
|
5314
5317
|
value: 1
|
|
5315
5318
|
}),
|
|
5316
|
-
k(
|
|
5319
|
+
k(T, {
|
|
5317
5320
|
label: "看跌",
|
|
5318
5321
|
value: 2
|
|
5319
5322
|
})
|
|
5320
5323
|
]),
|
|
5321
5324
|
_: 1
|
|
5322
5325
|
}, 8, ["modelValue"])
|
|
5323
|
-
])) :
|
|
5324
|
-
c.value.key === "perVolumn" ? (D(),
|
|
5326
|
+
])) : P("", !0),
|
|
5327
|
+
c.value.key === "perVolumn" ? (D(), S("div", da, [
|
|
5325
5328
|
k(x, {
|
|
5326
5329
|
modelValue: i.value.radio,
|
|
5327
5330
|
"onUpdate:modelValue": h[20] || (h[20] = (C) => i.value.radio = C)
|
|
5328
5331
|
}, {
|
|
5329
|
-
default:
|
|
5330
|
-
(D(),
|
|
5332
|
+
default: F(() => [
|
|
5333
|
+
(D(), S(q, null, j(e, (C) => k(T, {
|
|
5331
5334
|
key: C.value,
|
|
5332
5335
|
value: C.value
|
|
5333
5336
|
}, {
|
|
5334
|
-
default:
|
|
5335
|
-
B(
|
|
5337
|
+
default: F(() => [
|
|
5338
|
+
B(uu(C.label), 1)
|
|
5336
5339
|
]),
|
|
5337
5340
|
_: 2
|
|
5338
5341
|
}, 1032, ["value"])), 64))
|
|
@@ -5347,8 +5350,8 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5347
5350
|
placeholder: "请选择",
|
|
5348
5351
|
style: { width: "420px" }
|
|
5349
5352
|
}, {
|
|
5350
|
-
default:
|
|
5351
|
-
(D(),
|
|
5353
|
+
default: F(() => [
|
|
5354
|
+
(D(), S(q, null, j([1, 2, 3, 4, 5], (C) => k(V, {
|
|
5352
5355
|
key: C,
|
|
5353
5356
|
label: `${C}分位`,
|
|
5354
5357
|
value: C
|
|
@@ -5356,33 +5359,33 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5356
5359
|
]),
|
|
5357
5360
|
_: 1
|
|
5358
5361
|
}, 8, ["modelValue"])
|
|
5359
|
-
])) :
|
|
5360
|
-
c.value.key === "mainFlow" ? (D(),
|
|
5362
|
+
])) : P("", !0),
|
|
5363
|
+
c.value.key === "mainFlow" ? (D(), S("div", fa, [
|
|
5361
5364
|
k(x, {
|
|
5362
5365
|
modelValue: i.value.radio,
|
|
5363
5366
|
"onUpdate:modelValue": h[22] || (h[22] = (C) => i.value.radio = C)
|
|
5364
5367
|
}, {
|
|
5365
|
-
default:
|
|
5366
|
-
k(
|
|
5367
|
-
default:
|
|
5368
|
+
default: F(() => [
|
|
5369
|
+
k(T, { value: "3" }, {
|
|
5370
|
+
default: F(() => [
|
|
5368
5371
|
B("3日")
|
|
5369
5372
|
]),
|
|
5370
5373
|
_: 1
|
|
5371
5374
|
}),
|
|
5372
|
-
k(
|
|
5373
|
-
default:
|
|
5375
|
+
k(T, { value: "5" }, {
|
|
5376
|
+
default: F(() => [
|
|
5374
5377
|
B("5日")
|
|
5375
5378
|
]),
|
|
5376
5379
|
_: 1
|
|
5377
5380
|
}),
|
|
5378
|
-
k(
|
|
5379
|
-
default:
|
|
5381
|
+
k(T, { value: "10" }, {
|
|
5382
|
+
default: F(() => [
|
|
5380
5383
|
B("10日")
|
|
5381
5384
|
]),
|
|
5382
5385
|
_: 1
|
|
5383
5386
|
}),
|
|
5384
|
-
k(
|
|
5385
|
-
default:
|
|
5387
|
+
k(T, { value: "20" }, {
|
|
5388
|
+
default: F(() => [
|
|
5386
5389
|
B("20日")
|
|
5387
5390
|
]),
|
|
5388
5391
|
_: 1
|
|
@@ -5390,8 +5393,8 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5390
5393
|
]),
|
|
5391
5394
|
_: 1
|
|
5392
5395
|
}, 8, ["modelValue"]),
|
|
5393
|
-
O("div",
|
|
5394
|
-
O("span", null,
|
|
5396
|
+
O("div", pa, [
|
|
5397
|
+
O("span", null, uu(i.value.radioType === "0" ? "涨幅范围" : "排名范围") + ": ", 1),
|
|
5395
5398
|
k(_, {
|
|
5396
5399
|
modelValue: i.value.rankRange[0],
|
|
5397
5400
|
"onUpdate:modelValue": h[23] || (h[23] = (C) => i.value.rankRange[0] = C),
|
|
@@ -5404,14 +5407,14 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5404
5407
|
style: { flex: "1" }
|
|
5405
5408
|
}, null, 8, ["modelValue"])
|
|
5406
5409
|
])
|
|
5407
|
-
])) :
|
|
5408
|
-
c.value.key === "auditOpinionType" ? (D(),
|
|
5410
|
+
])) : P("", !0),
|
|
5411
|
+
c.value.key === "auditOpinionType" ? (D(), S("div", ba, [
|
|
5409
5412
|
k(x, {
|
|
5410
5413
|
modelValue: i.value.enumType,
|
|
5411
5414
|
"onUpdate:modelValue": h[25] || (h[25] = (C) => i.value.enumType = C)
|
|
5412
5415
|
}, {
|
|
5413
|
-
default:
|
|
5414
|
-
(D(),
|
|
5416
|
+
default: F(() => [
|
|
5417
|
+
(D(), S(q, null, j(t, (C, Z) => k(T, {
|
|
5415
5418
|
key: Z,
|
|
5416
5419
|
label: C.label,
|
|
5417
5420
|
value: C.value
|
|
@@ -5419,7 +5422,7 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5419
5422
|
]),
|
|
5420
5423
|
_: 1
|
|
5421
5424
|
}, 8, ["modelValue"])
|
|
5422
|
-
])) :
|
|
5425
|
+
])) : P("", !0)
|
|
5423
5426
|
], 64))
|
|
5424
5427
|
];
|
|
5425
5428
|
}),
|
|
@@ -5427,14 +5430,14 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5427
5430
|
}, [
|
|
5428
5431
|
c.value.showRankType ? {
|
|
5429
5432
|
name: "header",
|
|
5430
|
-
fn:
|
|
5431
|
-
O("span",
|
|
5433
|
+
fn: F(() => [
|
|
5434
|
+
O("span", Wo, uu(c.value.label), 1),
|
|
5432
5435
|
k(x, {
|
|
5433
5436
|
modelValue: i.value.radioType,
|
|
5434
5437
|
"onUpdate:modelValue": h[0] || (h[0] = (U) => i.value.radioType = U),
|
|
5435
5438
|
style: { "vertical-align": "4px", "margin-left": "12px" }
|
|
5436
5439
|
}, {
|
|
5437
|
-
default:
|
|
5440
|
+
default: F(() => [
|
|
5438
5441
|
k(b, {
|
|
5439
5442
|
label: "数值",
|
|
5440
5443
|
value: "0"
|
|
@@ -5451,15 +5454,15 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5451
5454
|
key: "0"
|
|
5452
5455
|
} : c.value.key === "mainFlow" ? {
|
|
5453
5456
|
name: "header",
|
|
5454
|
-
fn:
|
|
5455
|
-
O("span", { style: { "font-size": "18px" } },
|
|
5457
|
+
fn: F(() => [
|
|
5458
|
+
O("span", { style: { "font-size": "18px" } }, uu(c.value.label), 1),
|
|
5456
5459
|
k(x, {
|
|
5457
5460
|
modelValue: i.value.radioType,
|
|
5458
5461
|
"onUpdate:modelValue": h[1] || (h[1] = (U) => i.value.radioType = U),
|
|
5459
5462
|
style: { "vertical-align": "4px", "margin-left": "12px" },
|
|
5460
5463
|
onChange: $
|
|
5461
5464
|
}, {
|
|
5462
|
-
default:
|
|
5465
|
+
default: F(() => [
|
|
5463
5466
|
k(b, {
|
|
5464
5467
|
label: "涨幅范围",
|
|
5465
5468
|
value: "0"
|
|
@@ -5476,29 +5479,29 @@ const Wu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Pa = {
|
|
|
5476
5479
|
key: "1"
|
|
5477
5480
|
} : void 0
|
|
5478
5481
|
]), 1032, ["modelValue", "title"])
|
|
5479
|
-
])) :
|
|
5482
|
+
])) : P("", !0);
|
|
5480
5483
|
};
|
|
5481
5484
|
}
|
|
5482
|
-
},
|
|
5483
|
-
const
|
|
5485
|
+
}, xa = /* @__PURE__ */ ke(ma, [["__scopeId", "data-v-3e69da40"]]);
|
|
5486
|
+
const Du = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), _a = { class: "variety-search" }, ga = {
|
|
5484
5487
|
key: 0,
|
|
5485
5488
|
class: "variety-search-row"
|
|
5486
|
-
},
|
|
5489
|
+
}, ka = { class: "title" }, ya = /* @__PURE__ */ Du(() => /* @__PURE__ */ O("span", null, "品种市场: ", -1)), va = {
|
|
5487
5490
|
key: 1,
|
|
5488
5491
|
class: "variety-search-row"
|
|
5489
|
-
},
|
|
5492
|
+
}, Ca = { class: "title" }, Da = /* @__PURE__ */ Du(() => /* @__PURE__ */ O("span", null, "常用选项: ", -1)), Ea = {
|
|
5490
5493
|
key: 2,
|
|
5491
5494
|
class: "variety-search-row"
|
|
5492
|
-
},
|
|
5495
|
+
}, Fa = { class: "title" }, Aa = /* @__PURE__ */ Du(() => /* @__PURE__ */ O("span", null, "上市板块: ", -1)), wa = {
|
|
5493
5496
|
key: 3,
|
|
5494
5497
|
class: "variety-search-row"
|
|
5495
|
-
},
|
|
5498
|
+
}, Ta = { class: "title" }, Sa = /* @__PURE__ */ Du(() => /* @__PURE__ */ O("span", null, "自定标签: ", -1)), Ia = {
|
|
5496
5499
|
key: 4,
|
|
5497
5500
|
class: "variety-search-row"
|
|
5498
|
-
},
|
|
5501
|
+
}, Oa = { class: "title" }, Va = /* @__PURE__ */ Du(() => /* @__PURE__ */ O("span", null, "价差转换: ", -1)), $a = {
|
|
5499
5502
|
key: 5,
|
|
5500
5503
|
class: "variety-search-row"
|
|
5501
|
-
},
|
|
5504
|
+
}, Ra = { class: "title" }, Ma = /* @__PURE__ */ Du(() => /* @__PURE__ */ O("span", null, "因子筛选: ", -1)), qa = {
|
|
5502
5505
|
__name: "index",
|
|
5503
5506
|
props: /* @__PURE__ */ Nu({ config: { type: Object, default: {} } }, {
|
|
5504
5507
|
searchData: {},
|
|
@@ -5537,13 +5540,13 @@ const Cu = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), _o = { class: "vari
|
|
|
5537
5540
|
const m = Be[p], d = t.config[p] ?? {}, w = { ...m, ...d };
|
|
5538
5541
|
s[p] = w;
|
|
5539
5542
|
}), s;
|
|
5540
|
-
}),
|
|
5543
|
+
}), o = W(() => r.value.varietyMarket.options), l = W(() => {
|
|
5541
5544
|
const { varietyMarket: s } = n.value;
|
|
5542
|
-
return s ?
|
|
5545
|
+
return s ? o.value.find(({ value: m }) => m === s).memo.reduce((m, d) => {
|
|
5543
5546
|
const w = r.value.commonOption.options.find(($) => $.value === d);
|
|
5544
5547
|
return w && m.push(w), m;
|
|
5545
5548
|
}, []) : r.value.commonOption.options;
|
|
5546
|
-
}),
|
|
5549
|
+
}), a = W(() => {
|
|
5547
5550
|
const { varietyMarket: s } = n.value;
|
|
5548
5551
|
return s ? r.value.marketIds.options.filter((p) => p.varietyMarketIds.includes(s)) : r.value.marketIds.options;
|
|
5549
5552
|
}), c = W(() => r.value.customTag.options), i = W(() => r.value.jcTranslate.jcOptions), f = (s) => {
|
|
@@ -5593,7 +5596,7 @@ const Cu = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), _o = { class: "vari
|
|
|
5593
5596
|
(p = n.value.commonOption) != null && p.length && (n.value.commonOption = n.value.commonOption.filter((m) => s.find(({ value: d }) => d === m)));
|
|
5594
5597
|
}
|
|
5595
5598
|
), Au(
|
|
5596
|
-
() =>
|
|
5599
|
+
() => a.value,
|
|
5597
5600
|
(s) => {
|
|
5598
5601
|
var p;
|
|
5599
5602
|
(p = n.value.marketIds) != null && p.length && (n.value.marketIds = n.value.marketIds.filter((m) => s.find(({ value: d }) => d === m)));
|
|
@@ -5637,17 +5640,17 @@ const Cu = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), _o = { class: "vari
|
|
|
5637
5640
|
}
|
|
5638
5641
|
})), v.sqlEnable) {
|
|
5639
5642
|
const b = v.list.reduce((_, g, V) => {
|
|
5640
|
-
var
|
|
5643
|
+
var T, E;
|
|
5641
5644
|
const y = `条件${V + 1}`;
|
|
5642
5645
|
switch (g.key) {
|
|
5643
5646
|
case "compare": {
|
|
5644
|
-
let
|
|
5645
|
-
(
|
|
5647
|
+
let z = "";
|
|
5648
|
+
(T = r.value.factorScreen) != null && T.cycleShow ? z = `freq_id = ${g.cycle} and factor_id = ${g.factor} ${g.compareType} freq_id = ${g.cycle2} and factor_id = ${g.factor2}` : z = `factor_id = ${g.factor} ${g.compareType} factor_id = ${g.factor2}`, _.set(y, `(${z})`);
|
|
5646
5649
|
break;
|
|
5647
5650
|
}
|
|
5648
5651
|
default: {
|
|
5649
|
-
let
|
|
5650
|
-
(
|
|
5652
|
+
let z = `factor_id = ${g.factor} and `;
|
|
5653
|
+
(E = r.value.factorScreen) != null && E.cycleShow && (z = `freq_id = ${g.cycle} and factor_id = ${g.factor} and `), (g.score[0] || g.score[0] === 0) && (g.score[1] || g.score[1] === 0) ? z += `score >= ${g.score[0]} and score <= ${g.score[1]}` : g.score[0] || g.score[0] === 0 ? z += `score >= ${g.score[0]}` : (g.score[1] || g.score[1] === 0) && (z += `score <= ${g.score[1]}`), _.set(y, `(${z})`);
|
|
5651
5654
|
}
|
|
5652
5655
|
}
|
|
5653
5656
|
return _;
|
|
@@ -5662,31 +5665,31 @@ const Cu = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), _o = { class: "vari
|
|
|
5662
5665
|
p.enableSql = v.sqlEnable === 1 ? 2 : 1, v.factorSelectExpr && (p.factorSelectExpr = v.factorSelectExpr);
|
|
5663
5666
|
}
|
|
5664
5667
|
{
|
|
5665
|
-
const v = ["expireDays", "virtualRealDegree", "yearProfitRate", "impliedVolatility", "levelMultiplier", "turnover", "volume", "openInterest", "optionsCpType", "optionGear"], b = s.commonIndicator.reduce((
|
|
5666
|
-
const { key: U, type: C, range: Z, unit:
|
|
5668
|
+
const v = ["expireDays", "virtualRealDegree", "yearProfitRate", "impliedVolatility", "levelMultiplier", "turnover", "volume", "openInterest", "optionsCpType", "optionGear"], b = s.commonIndicator.reduce((E, z) => {
|
|
5669
|
+
const { key: U, type: C, range: Z, unit: X, radioType: xu, radio: Eu, rankRange: Fu } = z;
|
|
5667
5670
|
if (U === "mainFlow") {
|
|
5668
|
-
let [Y, K] = Fu, Qu =
|
|
5669
|
-
|
|
5671
|
+
let [Y, K] = Fu, Qu = xu === "0" ? `netInfow${Eu}d` : `last${Eu}DayMainFlowRank`;
|
|
5672
|
+
E.push({ column: Qu, start: Y, end: K });
|
|
5670
5673
|
}
|
|
5671
5674
|
if (U === "auditOpinionType")
|
|
5672
|
-
|
|
5673
|
-
else if (
|
|
5675
|
+
E.push({ column: z.key, enumType: z.enumType });
|
|
5676
|
+
else if (xu === "1")
|
|
5674
5677
|
p.sortBy = {
|
|
5675
|
-
column:
|
|
5678
|
+
column: z.key,
|
|
5676
5679
|
start: Fu[0] || null,
|
|
5677
5680
|
end: Fu[1] || null
|
|
5678
5681
|
};
|
|
5679
5682
|
else if (["dividendYield", "incrementRevenueLyr", "netProfitGrowthRatioLyr", "fiveYearRoe"].includes(U)) {
|
|
5680
5683
|
let [Y, K] = Z;
|
|
5681
|
-
["", null].includes(Y) || (Y = Y / 100), ["", null].includes(K) || (K = K / 100),
|
|
5682
|
-
column:
|
|
5684
|
+
["", null].includes(Y) || (Y = Y / 100), ["", null].includes(K) || (K = K / 100), E.push({
|
|
5685
|
+
column: z.key,
|
|
5683
5686
|
start: Y,
|
|
5684
5687
|
end: K
|
|
5685
5688
|
});
|
|
5686
5689
|
} else if (C === void 0 && !v.includes(U)) {
|
|
5687
5690
|
let [Y, K] = Z;
|
|
5688
5691
|
if (!["", null].includes(Y))
|
|
5689
|
-
switch (
|
|
5692
|
+
switch (X[0]) {
|
|
5690
5693
|
case "亿":
|
|
5691
5694
|
Y = Y * 1e8;
|
|
5692
5695
|
break;
|
|
@@ -5698,7 +5701,7 @@ const Cu = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), _o = { class: "vari
|
|
|
5698
5701
|
break;
|
|
5699
5702
|
}
|
|
5700
5703
|
if (!["", null].includes(K))
|
|
5701
|
-
switch (
|
|
5704
|
+
switch (X[1]) {
|
|
5702
5705
|
case "亿":
|
|
5703
5706
|
K = K * 1e8;
|
|
5704
5707
|
break;
|
|
@@ -5709,63 +5712,63 @@ const Cu = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), _o = { class: "vari
|
|
|
5709
5712
|
K = K;
|
|
5710
5713
|
break;
|
|
5711
5714
|
}
|
|
5712
|
-
|
|
5713
|
-
column:
|
|
5715
|
+
E.push({
|
|
5716
|
+
column: z.key,
|
|
5714
5717
|
start: Y,
|
|
5715
5718
|
end: K
|
|
5716
5719
|
});
|
|
5717
5720
|
}
|
|
5718
|
-
return
|
|
5721
|
+
return E;
|
|
5719
5722
|
}, []);
|
|
5720
5723
|
b.length && (p.query = b);
|
|
5721
|
-
const x = s.commonIndicator.find(({ key:
|
|
5724
|
+
const x = s.commonIndicator.find(({ key: E }) => E === "st");
|
|
5722
5725
|
x && (p.st = x.st);
|
|
5723
|
-
const _ = s.commonIndicator.find(({ key:
|
|
5726
|
+
const _ = s.commonIndicator.find(({ key: E }) => E === "tFeaturelncomes");
|
|
5724
5727
|
_ && (p.netProfitQueryDto = { ..._, netProfit: _.netProfit * 1e8 });
|
|
5725
|
-
const g = s.commonIndicator.find(({ key:
|
|
5728
|
+
const g = s.commonIndicator.find(({ key: E }) => E === "priceLevels");
|
|
5726
5729
|
g && (p.priceLevels = g.priceLevels);
|
|
5727
|
-
const V = s.commonIndicator.find(({ key:
|
|
5730
|
+
const V = s.commonIndicator.find(({ key: E }) => E === "peTtmLevels");
|
|
5728
5731
|
V && (p.peTtmLevels = V.peTtmLevels);
|
|
5729
5732
|
const y = {};
|
|
5730
|
-
s.commonIndicator.forEach((
|
|
5731
|
-
const { key:
|
|
5732
|
-
switch (
|
|
5733
|
+
s.commonIndicator.forEach((E) => {
|
|
5734
|
+
const { key: z } = E;
|
|
5735
|
+
switch (z) {
|
|
5733
5736
|
case "expireDays":
|
|
5734
|
-
["", null].includes(
|
|
5737
|
+
["", null].includes(E.range[0]) || (y.minExpireDays = E.range[0]), ["", null].includes(E.range[1]) || (y.maxExpireDays = E.range[1]);
|
|
5735
5738
|
break;
|
|
5736
5739
|
case "virtualRealDegree":
|
|
5737
|
-
["", null].includes(
|
|
5740
|
+
["", null].includes(E.range[0]) || (y.minVirtualRealDegree = E.range[0] / 100), ["", null].includes(E.range[1]) || (y.maxVirtualRealDegree = E.range[1] / 100);
|
|
5738
5741
|
break;
|
|
5739
5742
|
case "yearProfitRate":
|
|
5740
|
-
["", null].includes(
|
|
5743
|
+
["", null].includes(E.range[0]) || (y.minYearProfitRate = E.range[0] / 100), ["", null].includes(E.range[1]) || (y.maxYearProfitRate = E.range[1] / 100);
|
|
5741
5744
|
break;
|
|
5742
5745
|
case "impliedVolatility":
|
|
5743
|
-
["", null].includes(
|
|
5746
|
+
["", null].includes(E.range[0]) || (y.minImpliedVolatility = E.range[0] / 100), ["", null].includes(E.range[1]) || (y.maxImpliedVolatility = E.range[1] / 100);
|
|
5744
5747
|
break;
|
|
5745
5748
|
case "levelMultiplier":
|
|
5746
|
-
["", null].includes(
|
|
5749
|
+
["", null].includes(E.range[0]) || (y.minLevelMultiplier = E.range[0]), ["", null].includes(E.range[1]) || (y.maxLevelMultiplier = E.range[1]);
|
|
5747
5750
|
break;
|
|
5748
5751
|
case "turnover":
|
|
5749
|
-
["", null].includes(
|
|
5752
|
+
["", null].includes(E.range[0]) || (y.minTurnover = E.range[0] * 1e4), ["", null].includes(E.range[1]) || (y.maxTurnover = E.range[1] * 1e4);
|
|
5750
5753
|
break;
|
|
5751
5754
|
case "volume":
|
|
5752
|
-
["", null].includes(
|
|
5755
|
+
["", null].includes(E.range[0]) || (y.minVolume = E.range[0]), ["", null].includes(E.range[1]) || (y.maxVolume = E.range[1]);
|
|
5753
5756
|
break;
|
|
5754
5757
|
case "openInterest":
|
|
5755
|
-
["", null].includes(
|
|
5758
|
+
["", null].includes(E.range[0]) || (y.minOpenInterest = E.range[0]), ["", null].includes(E.range[1]) || (y.maxOpenInterest = E.range[1]);
|
|
5756
5759
|
break;
|
|
5757
5760
|
case "optionsCpType":
|
|
5758
|
-
y.optionsCpType =
|
|
5761
|
+
y.optionsCpType = E.optionsCpType;
|
|
5759
5762
|
break;
|
|
5760
5763
|
case "optionGear":
|
|
5761
|
-
["", null].includes(
|
|
5764
|
+
["", null].includes(E.range[0]) || (y.minOptionGear = E.range[0]), ["", null].includes(E.range[1]) || (y.maxOptionGear = E.range[1]);
|
|
5762
5765
|
break;
|
|
5763
5766
|
}
|
|
5764
5767
|
});
|
|
5765
|
-
const
|
|
5766
|
-
|
|
5767
|
-
type:
|
|
5768
|
-
value:
|
|
5768
|
+
const T = s.commonIndicator.find(({ key: E }) => E === "perVolumn");
|
|
5769
|
+
T && (p.perVolumn = {
|
|
5770
|
+
type: T.radio,
|
|
5771
|
+
value: T.levels
|
|
5769
5772
|
}), Object.keys(y).length && (p.searchOptionDto = {
|
|
5770
5773
|
...p.searchOptionDto,
|
|
5771
5774
|
...y
|
|
@@ -5803,10 +5806,10 @@ const Cu = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), _o = { class: "vari
|
|
|
5803
5806
|
}), (s, p) => {
|
|
5804
5807
|
var v, b, x, _, g, V;
|
|
5805
5808
|
const m = ye, d = ve, w = st, $ = dt, A = de, h = fe;
|
|
5806
|
-
return D(),
|
|
5807
|
-
(v = r.value.varietyMarket) != null && v.show ? (D(),
|
|
5808
|
-
O("div",
|
|
5809
|
-
|
|
5809
|
+
return D(), S("div", _a, [
|
|
5810
|
+
(v = r.value.varietyMarket) != null && v.show ? (D(), S("div", ga, [
|
|
5811
|
+
O("div", ka, [
|
|
5812
|
+
ya,
|
|
5810
5813
|
O("span", {
|
|
5811
5814
|
onClick: p[0] || (p[0] = (y) => f("varietyMarket"))
|
|
5812
5815
|
}, "不限")
|
|
@@ -5816,19 +5819,19 @@ const Cu = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), _o = { class: "vari
|
|
|
5816
5819
|
"onUpdate:modelValue": p[1] || (p[1] = (y) => n.value.varietyMarket = y),
|
|
5817
5820
|
size: "small"
|
|
5818
5821
|
}, {
|
|
5819
|
-
default:
|
|
5820
|
-
(D(!0),
|
|
5822
|
+
default: F(() => [
|
|
5823
|
+
(D(!0), S(q, null, j(o.value, ({ label: y, value: T }) => (D(), L(m, {
|
|
5821
5824
|
label: y,
|
|
5822
|
-
value:
|
|
5823
|
-
key:
|
|
5825
|
+
value: T,
|
|
5826
|
+
key: T
|
|
5824
5827
|
}, null, 8, ["label", "value"]))), 128))
|
|
5825
5828
|
]),
|
|
5826
5829
|
_: 1
|
|
5827
5830
|
}, 8, ["modelValue"])
|
|
5828
|
-
])) :
|
|
5829
|
-
(b = r.value.commonOption) != null && b.show && l.value.length ? (D(),
|
|
5830
|
-
O("div",
|
|
5831
|
-
|
|
5831
|
+
])) : P("", !0),
|
|
5832
|
+
(b = r.value.commonOption) != null && b.show && l.value.length ? (D(), S("div", va, [
|
|
5833
|
+
O("div", Ca, [
|
|
5834
|
+
Da,
|
|
5832
5835
|
O("span", {
|
|
5833
5836
|
onClick: p[2] || (p[2] = (y) => f("commonOption"))
|
|
5834
5837
|
}, "不限")
|
|
@@ -5838,19 +5841,19 @@ const Cu = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), _o = { class: "vari
|
|
|
5838
5841
|
"onUpdate:modelValue": p[3] || (p[3] = (y) => n.value.commonOption = y),
|
|
5839
5842
|
size: "small"
|
|
5840
5843
|
}, {
|
|
5841
|
-
default:
|
|
5842
|
-
(D(!0),
|
|
5844
|
+
default: F(() => [
|
|
5845
|
+
(D(!0), S(q, null, j(l.value, ({ label: y, value: T }) => (D(), L(w, {
|
|
5843
5846
|
label: y,
|
|
5844
|
-
value:
|
|
5845
|
-
key:
|
|
5847
|
+
value: T,
|
|
5848
|
+
key: T
|
|
5846
5849
|
}, null, 8, ["label", "value"]))), 128))
|
|
5847
5850
|
]),
|
|
5848
5851
|
_: 1
|
|
5849
5852
|
}, 8, ["modelValue"])
|
|
5850
|
-
])) :
|
|
5851
|
-
(x = r.value.marketIds) != null && x.show &&
|
|
5852
|
-
O("div",
|
|
5853
|
-
|
|
5853
|
+
])) : P("", !0),
|
|
5854
|
+
(x = r.value.marketIds) != null && x.show && a.value.length ? (D(), S("div", Ea, [
|
|
5855
|
+
O("div", Fa, [
|
|
5856
|
+
Aa,
|
|
5854
5857
|
O("span", {
|
|
5855
5858
|
onClick: p[4] || (p[4] = (y) => f("marketIds"))
|
|
5856
5859
|
}, "不限")
|
|
@@ -5860,19 +5863,19 @@ const Cu = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), _o = { class: "vari
|
|
|
5860
5863
|
"onUpdate:modelValue": p[5] || (p[5] = (y) => n.value.marketIds = y),
|
|
5861
5864
|
size: "small"
|
|
5862
5865
|
}, {
|
|
5863
|
-
default:
|
|
5864
|
-
(D(!0),
|
|
5866
|
+
default: F(() => [
|
|
5867
|
+
(D(!0), S(q, null, j(a.value, ({ label: y, value: T }) => (D(), L(w, {
|
|
5865
5868
|
label: y,
|
|
5866
|
-
value:
|
|
5867
|
-
key:
|
|
5869
|
+
value: T,
|
|
5870
|
+
key: T
|
|
5868
5871
|
}, null, 8, ["label", "value"]))), 128))
|
|
5869
5872
|
]),
|
|
5870
5873
|
_: 1
|
|
5871
5874
|
}, 8, ["modelValue"])
|
|
5872
|
-
])) :
|
|
5873
|
-
(_ = r.value.customTag) != null && _.show && c.value.length ? (D(),
|
|
5874
|
-
O("div",
|
|
5875
|
-
|
|
5875
|
+
])) : P("", !0),
|
|
5876
|
+
(_ = r.value.customTag) != null && _.show && c.value.length ? (D(), S("div", wa, [
|
|
5877
|
+
O("div", Ta, [
|
|
5878
|
+
Sa,
|
|
5876
5879
|
O("span", {
|
|
5877
5880
|
onClick: p[6] || (p[6] = (y) => f("customTag"))
|
|
5878
5881
|
}, "不限")
|
|
@@ -5882,19 +5885,19 @@ const Cu = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), _o = { class: "vari
|
|
|
5882
5885
|
"onUpdate:modelValue": p[7] || (p[7] = (y) => n.value.customTag = y),
|
|
5883
5886
|
size: "small"
|
|
5884
5887
|
}, {
|
|
5885
|
-
default:
|
|
5886
|
-
(D(!0),
|
|
5888
|
+
default: F(() => [
|
|
5889
|
+
(D(!0), S(q, null, j(c.value, ({ label: y, value: T }) => (D(), L(w, {
|
|
5887
5890
|
label: y,
|
|
5888
|
-
value:
|
|
5889
|
-
key:
|
|
5891
|
+
value: T,
|
|
5892
|
+
key: T
|
|
5890
5893
|
}, null, 8, ["label", "value"]))), 128))
|
|
5891
5894
|
]),
|
|
5892
5895
|
_: 1
|
|
5893
5896
|
}, 8, ["modelValue"])
|
|
5894
|
-
])) :
|
|
5895
|
-
(g = r.value.jcTranslate) != null && g.show ? (D(),
|
|
5896
|
-
O("div",
|
|
5897
|
-
|
|
5897
|
+
])) : P("", !0),
|
|
5898
|
+
(g = r.value.jcTranslate) != null && g.show ? (D(), S("div", Ia, [
|
|
5899
|
+
O("div", Oa, [
|
|
5900
|
+
Va,
|
|
5898
5901
|
O("span", {
|
|
5899
5902
|
onClick: p[8] || (p[8] = (y) => f("jcTranslate"))
|
|
5900
5903
|
}, "不限")
|
|
@@ -5904,15 +5907,15 @@ const Cu = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), _o = { class: "vari
|
|
|
5904
5907
|
"onUpdate:modelValue": p[9] || (p[9] = (y) => n.value.jcTranslate.type = y),
|
|
5905
5908
|
size: "small"
|
|
5906
5909
|
}, {
|
|
5907
|
-
default:
|
|
5910
|
+
default: F(() => [
|
|
5908
5911
|
k(m, { value: 2 }, {
|
|
5909
|
-
default:
|
|
5912
|
+
default: F(() => [
|
|
5910
5913
|
B("价差转品种")
|
|
5911
5914
|
]),
|
|
5912
5915
|
_: 1
|
|
5913
5916
|
}),
|
|
5914
5917
|
k(m, { value: 1 }, {
|
|
5915
|
-
default:
|
|
5918
|
+
default: F(() => [
|
|
5916
5919
|
B("品种转价差")
|
|
5917
5920
|
]),
|
|
5918
5921
|
_: 1
|
|
@@ -5930,8 +5933,8 @@ const Cu = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), _o = { class: "vari
|
|
|
5930
5933
|
placeholder: "请选择价差品种",
|
|
5931
5934
|
style: { width: "140px" }
|
|
5932
5935
|
}, {
|
|
5933
|
-
default:
|
|
5934
|
-
(D(!0),
|
|
5936
|
+
default: F(() => [
|
|
5937
|
+
(D(!0), S(q, null, j(i.value, (y) => (D(), L(A, {
|
|
5935
5938
|
key: y.value,
|
|
5936
5939
|
label: y.label,
|
|
5937
5940
|
value: y.value
|
|
@@ -5941,21 +5944,21 @@ const Cu = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), _o = { class: "vari
|
|
|
5941
5944
|
}, 8, ["modelValue"]), [
|
|
5942
5945
|
[f0, n.value.jcTranslate.type === 1]
|
|
5943
5946
|
])
|
|
5944
|
-
])) :
|
|
5945
|
-
(V = r.value.factorScreen) != null && V.show ? (D(),
|
|
5946
|
-
O("div",
|
|
5947
|
-
|
|
5947
|
+
])) : P("", !0),
|
|
5948
|
+
(V = r.value.factorScreen) != null && V.show ? (D(), S("div", $a, [
|
|
5949
|
+
O("div", Ra, [
|
|
5950
|
+
Ma,
|
|
5948
5951
|
O("span", {
|
|
5949
5952
|
onClick: p[11] || (p[11] = (y) => f("factorScreen"))
|
|
5950
5953
|
}, "不限")
|
|
5951
5954
|
]),
|
|
5952
|
-
k(
|
|
5955
|
+
k(Po, {
|
|
5953
5956
|
data: n.value.factorScreen,
|
|
5954
5957
|
"onUpdate:data": p[12] || (p[12] = (y) => n.value.factorScreen = y),
|
|
5955
5958
|
config: r.value.factorScreen
|
|
5956
5959
|
}, null, 8, ["data", "config"])
|
|
5957
|
-
])) :
|
|
5958
|
-
k(
|
|
5960
|
+
])) : P("", !0),
|
|
5961
|
+
k(xa, {
|
|
5959
5962
|
data: n.value.commonIndicator,
|
|
5960
5963
|
"onUpdate:data": p[13] || (p[13] = (y) => n.value.commonIndicator = y),
|
|
5961
5964
|
varietyMarket: n.value.varietyMarket,
|
|
@@ -5965,9 +5968,9 @@ const Cu = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), _o = { class: "vari
|
|
|
5965
5968
|
]);
|
|
5966
5969
|
};
|
|
5967
5970
|
}
|
|
5968
|
-
},
|
|
5971
|
+
}, Ba = /* @__PURE__ */ ke(qa, [["__scopeId", "data-v-efd872de"]]), kl = {
|
|
5969
5972
|
install(u) {
|
|
5970
|
-
u.component("st-varietySearch",
|
|
5973
|
+
u.component("st-varietySearch", Ba);
|
|
5971
5974
|
}
|
|
5972
5975
|
};
|
|
5973
5976
|
export {
|