st-comp 0.0.195 → 0.0.196
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/VarietySearch.cjs +2 -2
- package/es/VarietySearch.js +891 -891
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +2 -2
- package/lib/{index-ec9fb74c.js → index-dac23ed6.js} +4 -4
- package/lib/{python-9c93f491.js → python-fdc6b946.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietySearch/components/FactorScreen/index.vue +4 -0
package/es/VarietySearch.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as Uu, c as Oe, p as
|
|
1
|
+
import { b as Uu, c as Oe, p as Ve, o as $e, k as Re, u as se, _ as de, e as Me, w as X0, l as r0 } from "./base-62a70f61.js";
|
|
2
2
|
import "./el-tag-ada32d9e.js";
|
|
3
3
|
import { E as fe, a as pe } from "./el-select-bfade57c.js";
|
|
4
|
-
import { h as
|
|
5
|
-
import { U as be, C as he, u as rt, d as
|
|
4
|
+
import { h as a0, e as ut, g as et, d as tt, f as nt } from "./el-scrollbar-d8e60ed2.js";
|
|
5
|
+
import { U as be, C as he, u as rt, d as at, E as o0, a as ot } from "./el-popper-f38ba0a1.js";
|
|
6
6
|
import { b as lt, c as it, E as ct, a as st } from "./el-table-column-41685d02.js";
|
|
7
7
|
import { E as dt, a as ft } from "./el-message-box-1286fd77.js";
|
|
8
|
-
import { ref as eu, inject as l0, computed as Q, defineComponent as
|
|
8
|
+
import { ref as eu, inject as l0, computed as Q, defineComponent as Du, openBlock as E, createElementBlock as S, normalizeClass as lu, unref as O, createElementVNode as V, withDirectives as Nu, isRef as i0, withModifiers as qu, vModelRadio as c0, renderSlot as me, createTextVNode as L, toDisplayString as uu, nextTick as Bu, normalizeStyle as s0, onMounted as d0, provide as pt, reactive as bt, toRefs as ht, watch as vu, Fragment as z, renderList as Z, createBlock as P, mergeProps as mt, mergeModels as ju, useModel as Zu, withCtx as D, createVNode as y, createCommentVNode as U, resolveComponent as qe, vShow as f0, pushScopeId as xe, popScopeId as _e, createSlots as Ku } from "vue";
|
|
9
9
|
import { E as ge } from "./el-dialog-43cb14a3.js";
|
|
10
10
|
import "./el-overlay-0310aac7.js";
|
|
11
11
|
import { E as xt, a as _t } from "./el-form-item-5425e443.js";
|
|
@@ -19,8 +19,8 @@ import { M as Ct } from "./index-bc8e277e.js";
|
|
|
19
19
|
import { E as W } from "./el-message-4e885359.js";
|
|
20
20
|
import { _ as ke } from "./_plugin-vue_export-helper-dad06003.js";
|
|
21
21
|
import { E as m0 } from "./index-787d3588.js";
|
|
22
|
-
import { E as
|
|
23
|
-
import { u as
|
|
22
|
+
import { E as Et } from "./index-843be67c.js";
|
|
23
|
+
import { u as Dt } from "./index-2e331d74.js";
|
|
24
24
|
import { u as Ft } from "./index-89502796.js";
|
|
25
25
|
import { i as At } from "./index-3e26cc9f.js";
|
|
26
26
|
import "./index-482f09b5.js";
|
|
@@ -42,7 +42,7 @@ const x0 = Uu({
|
|
|
42
42
|
type: [String, Number, Boolean],
|
|
43
43
|
default: void 0
|
|
44
44
|
},
|
|
45
|
-
size:
|
|
45
|
+
size: a0,
|
|
46
46
|
disabled: Boolean,
|
|
47
47
|
label: {
|
|
48
48
|
type: [String, Number, Boolean],
|
|
@@ -60,18 +60,18 @@ const x0 = Uu({
|
|
|
60
60
|
...x0,
|
|
61
61
|
border: Boolean
|
|
62
62
|
}), _0 = {
|
|
63
|
-
[be]: (u) => Oe(u) ||
|
|
64
|
-
[he]: (u) => Oe(u) ||
|
|
63
|
+
[be]: (u) => Oe(u) || Ve(u) || $e(u),
|
|
64
|
+
[he]: (u) => Oe(u) || Ve(u) || $e(u)
|
|
65
65
|
}, g0 = Symbol("radioGroupKey"), k0 = (u, e) => {
|
|
66
|
-
const t = eu(), n = l0(g0, void 0), r = Q(() => !!n),
|
|
66
|
+
const t = eu(), n = l0(g0, void 0), r = Q(() => !!n), a = Q(() => Re(u.value) ? u.label : u.value), l = Q({
|
|
67
67
|
get() {
|
|
68
68
|
return r.value ? n.modelValue : u.modelValue;
|
|
69
69
|
},
|
|
70
70
|
set(s) {
|
|
71
|
-
r.value ? n.changeEvent(s) : e && e(be, s), t.value.checked = u.modelValue ===
|
|
71
|
+
r.value ? n.changeEvent(s) : e && e(be, s), t.value.checked = u.modelValue === a.value;
|
|
72
72
|
}
|
|
73
|
-
}),
|
|
74
|
-
return
|
|
73
|
+
}), o = ut(Q(() => n == null ? void 0 : n.size)), c = et(Q(() => n == null ? void 0 : n.disabled)), i = eu(!1), f = Q(() => c.value || r.value && l.value !== a.value ? -1 : 0);
|
|
74
|
+
return Dt({
|
|
75
75
|
from: "label act as value",
|
|
76
76
|
replacement: "value",
|
|
77
77
|
version: "3.0.0",
|
|
@@ -82,49 +82,49 @@ const x0 = Uu({
|
|
|
82
82
|
isGroup: r,
|
|
83
83
|
radioGroup: n,
|
|
84
84
|
focus: i,
|
|
85
|
-
size:
|
|
85
|
+
size: o,
|
|
86
86
|
disabled: c,
|
|
87
87
|
tabIndex: f,
|
|
88
88
|
modelValue: l,
|
|
89
|
-
actualValue:
|
|
89
|
+
actualValue: a
|
|
90
90
|
};
|
|
91
|
-
}, Tt =
|
|
91
|
+
}, Tt = Du({
|
|
92
92
|
name: "ElRadio"
|
|
93
|
-
}), St = /* @__PURE__ */
|
|
93
|
+
}), St = /* @__PURE__ */ Du({
|
|
94
94
|
...Tt,
|
|
95
95
|
props: wt,
|
|
96
96
|
emits: _0,
|
|
97
97
|
setup(u, { emit: e }) {
|
|
98
|
-
const t = u, n = se("radio"), { radioRef: r, radioGroup:
|
|
98
|
+
const t = u, n = se("radio"), { radioRef: r, radioGroup: a, focus: l, size: o, disabled: c, modelValue: i, actualValue: f } = k0(t, e);
|
|
99
99
|
function s() {
|
|
100
100
|
Bu(() => e(he, i.value));
|
|
101
101
|
}
|
|
102
102
|
return (p, m) => {
|
|
103
103
|
var d;
|
|
104
|
-
return
|
|
104
|
+
return E(), S("label", {
|
|
105
105
|
class: lu([
|
|
106
106
|
O(n).b(),
|
|
107
107
|
O(n).is("disabled", O(c)),
|
|
108
108
|
O(n).is("focus", O(l)),
|
|
109
109
|
O(n).is("bordered", p.border),
|
|
110
110
|
O(n).is("checked", O(i) === O(f)),
|
|
111
|
-
O(n).m(O(
|
|
111
|
+
O(n).m(O(o))
|
|
112
112
|
])
|
|
113
113
|
}, [
|
|
114
|
-
|
|
114
|
+
V("span", {
|
|
115
115
|
class: lu([
|
|
116
116
|
O(n).e("input"),
|
|
117
117
|
O(n).is("disabled", O(c)),
|
|
118
118
|
O(n).is("checked", O(i) === O(f))
|
|
119
119
|
])
|
|
120
120
|
}, [
|
|
121
|
-
Nu(
|
|
121
|
+
Nu(V("input", {
|
|
122
122
|
ref_key: "radioRef",
|
|
123
123
|
ref: r,
|
|
124
124
|
"onUpdate:modelValue": (w) => i0(i) ? i.value = w : null,
|
|
125
125
|
class: lu(O(n).e("original")),
|
|
126
126
|
value: O(f),
|
|
127
|
-
name: p.name || ((d = O(
|
|
127
|
+
name: p.name || ((d = O(a)) == null ? void 0 : d.name),
|
|
128
128
|
disabled: O(c),
|
|
129
129
|
checked: O(i) === O(f),
|
|
130
130
|
type: "radio",
|
|
@@ -136,11 +136,11 @@ const x0 = Uu({
|
|
|
136
136
|
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "checked", "onFocus", "onBlur", "onClick"]), [
|
|
137
137
|
[c0, O(i)]
|
|
138
138
|
]),
|
|
139
|
-
|
|
139
|
+
V("span", {
|
|
140
140
|
class: lu(O(n).e("inner"))
|
|
141
141
|
}, null, 2)
|
|
142
142
|
], 2),
|
|
143
|
-
|
|
143
|
+
V("span", {
|
|
144
144
|
class: lu(O(n).e("label")),
|
|
145
145
|
onKeydown: qu(() => {
|
|
146
146
|
}, ["stop"])
|
|
@@ -156,13 +156,13 @@ const x0 = Uu({
|
|
|
156
156
|
var y0 = /* @__PURE__ */ de(St, [["__file", "radio.vue"]]);
|
|
157
157
|
const It = Uu({
|
|
158
158
|
...x0
|
|
159
|
-
}), Ot =
|
|
159
|
+
}), Ot = Du({
|
|
160
160
|
name: "ElRadioButton"
|
|
161
|
-
}),
|
|
161
|
+
}), Vt = /* @__PURE__ */ Du({
|
|
162
162
|
...Ot,
|
|
163
163
|
props: It,
|
|
164
164
|
setup(u) {
|
|
165
|
-
const e = u, t = se("radio"), { radioRef: n, focus: r, size:
|
|
165
|
+
const e = u, t = se("radio"), { radioRef: n, focus: r, size: a, disabled: l, modelValue: o, radioGroup: c, actualValue: i } = k0(e), f = Q(() => ({
|
|
166
166
|
backgroundColor: (c == null ? void 0 : c.fill) || "",
|
|
167
167
|
borderColor: (c == null ? void 0 : c.fill) || "",
|
|
168
168
|
boxShadow: c != null && c.fill ? `-1px 0 0 0 ${c.fill}` : "",
|
|
@@ -170,19 +170,19 @@ const It = Uu({
|
|
|
170
170
|
}));
|
|
171
171
|
return (s, p) => {
|
|
172
172
|
var m;
|
|
173
|
-
return
|
|
173
|
+
return E(), S("label", {
|
|
174
174
|
class: lu([
|
|
175
175
|
O(t).b("button"),
|
|
176
|
-
O(t).is("active", O(
|
|
176
|
+
O(t).is("active", O(o) === O(i)),
|
|
177
177
|
O(t).is("disabled", O(l)),
|
|
178
178
|
O(t).is("focus", O(r)),
|
|
179
|
-
O(t).bm("button", O(
|
|
179
|
+
O(t).bm("button", O(a))
|
|
180
180
|
])
|
|
181
181
|
}, [
|
|
182
|
-
Nu(
|
|
182
|
+
Nu(V("input", {
|
|
183
183
|
ref_key: "radioRef",
|
|
184
184
|
ref: n,
|
|
185
|
-
"onUpdate:modelValue": (d) => i0(
|
|
185
|
+
"onUpdate:modelValue": (d) => i0(o) ? o.value = d : null,
|
|
186
186
|
class: lu(O(t).be("button", "original-radio")),
|
|
187
187
|
value: O(i),
|
|
188
188
|
type: "radio",
|
|
@@ -193,11 +193,11 @@ const It = Uu({
|
|
|
193
193
|
onClick: qu(() => {
|
|
194
194
|
}, ["stop"])
|
|
195
195
|
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
|
|
196
|
-
[c0, O(
|
|
196
|
+
[c0, O(o)]
|
|
197
197
|
]),
|
|
198
|
-
|
|
198
|
+
V("span", {
|
|
199
199
|
class: lu(O(t).be("button", "inner")),
|
|
200
|
-
style: s0(O(
|
|
200
|
+
style: s0(O(o) === O(i) ? O(f) : {}),
|
|
201
201
|
onKeydown: qu(() => {
|
|
202
202
|
}, ["stop"])
|
|
203
203
|
}, [
|
|
@@ -209,13 +209,13 @@ const It = Uu({
|
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
211
|
});
|
|
212
|
-
var v0 = /* @__PURE__ */ de(
|
|
213
|
-
const
|
|
212
|
+
var v0 = /* @__PURE__ */ de(Vt, [["__file", "radio-button.vue"]]);
|
|
213
|
+
const $t = Uu({
|
|
214
214
|
id: {
|
|
215
215
|
type: String,
|
|
216
216
|
default: void 0
|
|
217
217
|
},
|
|
218
|
-
size:
|
|
218
|
+
size: a0,
|
|
219
219
|
disabled: Boolean,
|
|
220
220
|
modelValue: {
|
|
221
221
|
type: [String, Number, Boolean],
|
|
@@ -249,20 +249,20 @@ const Vt = Uu({
|
|
|
249
249
|
label: "label",
|
|
250
250
|
value: "value",
|
|
251
251
|
disabled: "disabled"
|
|
252
|
-
}, Mt =
|
|
252
|
+
}, Mt = Du({
|
|
253
253
|
name: "ElRadioGroup"
|
|
254
|
-
}), qt = /* @__PURE__ */
|
|
254
|
+
}), qt = /* @__PURE__ */ Du({
|
|
255
255
|
...Mt,
|
|
256
|
-
props:
|
|
256
|
+
props: $t,
|
|
257
257
|
emits: Rt,
|
|
258
258
|
setup(u, { emit: e }) {
|
|
259
|
-
const t = u, n = se("radio"), r = Ft(),
|
|
259
|
+
const t = u, n = se("radio"), r = Ft(), a = eu(), { formItem: l } = tt(), { inputId: o, isLabeledByFormItem: c } = nt(t, {
|
|
260
260
|
formItemContext: l
|
|
261
261
|
}), i = (m) => {
|
|
262
262
|
e(be, m), Bu(() => e(he, m));
|
|
263
263
|
};
|
|
264
264
|
d0(() => {
|
|
265
|
-
const m =
|
|
265
|
+
const m = a.value.querySelectorAll("[type=radio]"), d = m[0];
|
|
266
266
|
!Array.from(m).some((w) => w.checked) && d && (d.tabIndex = 0);
|
|
267
267
|
});
|
|
268
268
|
const f = Q(() => t.name || r.value), s = Q(() => ({
|
|
@@ -281,27 +281,27 @@ const Vt = Uu({
|
|
|
281
281
|
changeEvent: i,
|
|
282
282
|
name: f
|
|
283
283
|
})), vu(() => t.modelValue, (m, d) => {
|
|
284
|
-
t.validateEvent && !At(m, d) && (l == null || l.validate("change").catch((w) =>
|
|
285
|
-
}), (m, d) => (
|
|
286
|
-
id: O(
|
|
284
|
+
t.validateEvent && !At(m, d) && (l == null || l.validate("change").catch((w) => at()));
|
|
285
|
+
}), (m, d) => (E(), S("div", {
|
|
286
|
+
id: O(o),
|
|
287
287
|
ref_key: "radioGroupRef",
|
|
288
|
-
ref:
|
|
288
|
+
ref: a,
|
|
289
289
|
class: lu(O(n).b("group")),
|
|
290
290
|
role: "radiogroup",
|
|
291
291
|
"aria-label": O(c) ? void 0 : m.ariaLabel || "radio-group",
|
|
292
292
|
"aria-labelledby": O(c) ? O(l).labelId : void 0
|
|
293
293
|
}, [
|
|
294
294
|
me(m.$slots, "default", {}, () => [
|
|
295
|
-
(
|
|
295
|
+
(E(!0), S(z, null, Z(t.options, (w, $) => (E(), P(y0, mt({ key: $ }, p(w)), null, 16))), 128))
|
|
296
296
|
])
|
|
297
297
|
], 10, ["id", "aria-label", "aria-labelledby"]));
|
|
298
298
|
}
|
|
299
299
|
});
|
|
300
|
-
var
|
|
300
|
+
var E0 = /* @__PURE__ */ de(qt, [["__file", "radio-group.vue"]]);
|
|
301
301
|
const ye = X0(y0, {
|
|
302
302
|
RadioButton: v0,
|
|
303
|
-
RadioGroup:
|
|
304
|
-
}), ve = r0(
|
|
303
|
+
RadioGroup: E0
|
|
304
|
+
}), ve = r0(E0), D0 = r0(v0);
|
|
305
305
|
const Be = {
|
|
306
306
|
// 品种市场 [选项: 预警字典1000]
|
|
307
307
|
varietyMarket: {
|
|
@@ -943,33 +943,33 @@ function Cu(u, e) {
|
|
|
943
943
|
const t = Lt(e);
|
|
944
944
|
return u.replace(/(%[a-f0-9]{2})+/gi, function(n) {
|
|
945
945
|
let r = "";
|
|
946
|
-
for (let
|
|
947
|
-
const
|
|
948
|
-
if (
|
|
949
|
-
r += t[
|
|
946
|
+
for (let a = 0, l = n.length; a < l; a += 3) {
|
|
947
|
+
const o = parseInt(n.slice(a + 1, a + 3), 16);
|
|
948
|
+
if (o < 128) {
|
|
949
|
+
r += t[o];
|
|
950
950
|
continue;
|
|
951
951
|
}
|
|
952
|
-
if ((
|
|
953
|
-
const c = parseInt(n.slice(
|
|
952
|
+
if ((o & 224) === 192 && a + 3 < l) {
|
|
953
|
+
const c = parseInt(n.slice(a + 4, a + 6), 16);
|
|
954
954
|
if ((c & 192) === 128) {
|
|
955
|
-
const i =
|
|
956
|
-
i < 128 ? r += "��" : r += String.fromCharCode(i),
|
|
955
|
+
const i = o << 6 & 1984 | c & 63;
|
|
956
|
+
i < 128 ? r += "��" : r += String.fromCharCode(i), a += 3;
|
|
957
957
|
continue;
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
|
-
if ((
|
|
961
|
-
const c = parseInt(n.slice(
|
|
960
|
+
if ((o & 240) === 224 && a + 6 < l) {
|
|
961
|
+
const c = parseInt(n.slice(a + 4, a + 6), 16), i = parseInt(n.slice(a + 7, a + 9), 16);
|
|
962
962
|
if ((c & 192) === 128 && (i & 192) === 128) {
|
|
963
|
-
const f =
|
|
964
|
-
f < 2048 || f >= 55296 && f <= 57343 ? r += "���" : r += String.fromCharCode(f),
|
|
963
|
+
const f = o << 12 & 61440 | c << 6 & 4032 | i & 63;
|
|
964
|
+
f < 2048 || f >= 55296 && f <= 57343 ? r += "���" : r += String.fromCharCode(f), a += 6;
|
|
965
965
|
continue;
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
|
-
if ((
|
|
969
|
-
const c = parseInt(n.slice(
|
|
968
|
+
if ((o & 248) === 240 && a + 9 < l) {
|
|
969
|
+
const c = parseInt(n.slice(a + 4, a + 6), 16), i = parseInt(n.slice(a + 7, a + 9), 16), f = parseInt(n.slice(a + 10, a + 12), 16);
|
|
970
970
|
if ((c & 192) === 128 && (i & 192) === 128 && (f & 192) === 128) {
|
|
971
|
-
let s =
|
|
972
|
-
s < 65536 || s > 1114111 ? r += "����" : (s -= 65536, r += String.fromCharCode(55296 + (s >> 10), 56320 + (s & 1023))),
|
|
971
|
+
let s = o << 18 & 1835008 | c << 12 & 258048 | i << 6 & 4032 | f & 63;
|
|
972
|
+
s < 65536 || s > 1114111 ? r += "����" : (s -= 65536, r += String.fromCharCode(55296 + (s >> 10), 56320 + (s & 1023))), a += 9;
|
|
973
973
|
continue;
|
|
974
974
|
}
|
|
975
975
|
}
|
|
@@ -998,28 +998,28 @@ function Ou(u, e, t) {
|
|
|
998
998
|
typeof e != "string" && (t = e, e = Ou.defaultChars), typeof t > "u" && (t = !0);
|
|
999
999
|
const n = Pt(e);
|
|
1000
1000
|
let r = "";
|
|
1001
|
-
for (let
|
|
1002
|
-
const
|
|
1003
|
-
if (t &&
|
|
1004
|
-
r += u.slice(
|
|
1001
|
+
for (let a = 0, l = u.length; a < l; a++) {
|
|
1002
|
+
const o = u.charCodeAt(a);
|
|
1003
|
+
if (t && o === 37 && a + 2 < l && /^[0-9a-f]{2}$/i.test(u.slice(a + 1, a + 3))) {
|
|
1004
|
+
r += u.slice(a, a + 3), a += 2;
|
|
1005
1005
|
continue;
|
|
1006
1006
|
}
|
|
1007
|
-
if (
|
|
1008
|
-
r += n[
|
|
1007
|
+
if (o < 128) {
|
|
1008
|
+
r += n[o];
|
|
1009
1009
|
continue;
|
|
1010
1010
|
}
|
|
1011
|
-
if (
|
|
1012
|
-
if (
|
|
1013
|
-
const c = u.charCodeAt(
|
|
1011
|
+
if (o >= 55296 && o <= 57343) {
|
|
1012
|
+
if (o >= 55296 && o <= 56319 && a + 1 < l) {
|
|
1013
|
+
const c = u.charCodeAt(a + 1);
|
|
1014
1014
|
if (c >= 56320 && c <= 57343) {
|
|
1015
|
-
r += encodeURIComponent(u[
|
|
1015
|
+
r += encodeURIComponent(u[a] + u[a + 1]), a++;
|
|
1016
1016
|
continue;
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
1019
|
r += "%EF%BF%BD";
|
|
1020
1020
|
continue;
|
|
1021
1021
|
}
|
|
1022
|
-
r += encodeURIComponent(u[
|
|
1022
|
+
r += encodeURIComponent(u[a]);
|
|
1023
1023
|
}
|
|
1024
1024
|
return r;
|
|
1025
1025
|
}
|
|
@@ -1048,35 +1048,35 @@ const Ut = /^([a-z0-9.+-]+:)/i, Nt = /:[0-9]*$/, jt = /^(\/\/?(?!\/)[^\?\s]*)(\?
|
|
|
1048
1048
|
"gopher:": !0,
|
|
1049
1049
|
"file:": !0
|
|
1050
1050
|
};
|
|
1051
|
-
function
|
|
1051
|
+
function Ee(u, e) {
|
|
1052
1052
|
if (u && u instanceof zu)
|
|
1053
1053
|
return u;
|
|
1054
1054
|
const t = new zu();
|
|
1055
1055
|
return t.parse(u, e), t;
|
|
1056
1056
|
}
|
|
1057
1057
|
zu.prototype.parse = function(u, e) {
|
|
1058
|
-
let t, n, r,
|
|
1059
|
-
if (
|
|
1060
|
-
const i = jt.exec(
|
|
1058
|
+
let t, n, r, a = u;
|
|
1059
|
+
if (a = a.trim(), !e && u.split("#").length === 1) {
|
|
1060
|
+
const i = jt.exec(a);
|
|
1061
1061
|
if (i)
|
|
1062
1062
|
return this.pathname = i[1], i[2] && (this.search = i[2]), this;
|
|
1063
1063
|
}
|
|
1064
|
-
let l = Ut.exec(
|
|
1065
|
-
if (l && (l = l[0], t = l.toLowerCase(), this.protocol = l,
|
|
1064
|
+
let l = Ut.exec(a);
|
|
1065
|
+
if (l && (l = l[0], t = l.toLowerCase(), this.protocol = l, a = a.substr(l.length)), (e || l || a.match(/^\/\/[^@\/]+@[^@\/]+/)) && (r = a.substr(0, 2) === "//", r && !(l && Ze[l]) && (a = a.substr(2), this.slashes = !0)), !Ze[l] && (r || l && !He[l])) {
|
|
1066
1066
|
let i = -1;
|
|
1067
1067
|
for (let d = 0; d < Ne.length; d++)
|
|
1068
|
-
n =
|
|
1068
|
+
n = a.indexOf(Ne[d]), n !== -1 && (i === -1 || n < i) && (i = n);
|
|
1069
1069
|
let f, s;
|
|
1070
|
-
i === -1 ? s =
|
|
1070
|
+
i === -1 ? s = a.lastIndexOf("@") : s = a.lastIndexOf("@", i), s !== -1 && (f = a.slice(0, s), a = a.slice(s + 1), this.auth = f), i = -1;
|
|
1071
1071
|
for (let d = 0; d < Ue.length; d++)
|
|
1072
|
-
n =
|
|
1073
|
-
i === -1 && (i =
|
|
1074
|
-
const p =
|
|
1075
|
-
|
|
1072
|
+
n = a.indexOf(Ue[d]), n !== -1 && (i === -1 || n < i) && (i = n);
|
|
1073
|
+
i === -1 && (i = a.length), a[i - 1] === ":" && i--;
|
|
1074
|
+
const p = a.slice(0, i);
|
|
1075
|
+
a = a.slice(i), this.parseHost(p), this.hostname = this.hostname || "";
|
|
1076
1076
|
const m = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
1077
1077
|
if (!m) {
|
|
1078
1078
|
const d = this.hostname.split(/\./);
|
|
1079
|
-
for (let w = 0,
|
|
1079
|
+
for (let w = 0, $ = d.length; w < $; w++) {
|
|
1080
1080
|
const A = d[w];
|
|
1081
1081
|
if (A && !A.match(je)) {
|
|
1082
1082
|
let h = "";
|
|
@@ -1084,7 +1084,7 @@ zu.prototype.parse = function(u, e) {
|
|
|
1084
1084
|
A.charCodeAt(k) > 127 ? h += "x" : h += A[k];
|
|
1085
1085
|
if (!h.match(je)) {
|
|
1086
1086
|
const k = d.slice(0, w), b = d.slice(w + 1), x = A.match(Wt);
|
|
1087
|
-
x && (k.push(x[1]), b.unshift(x[2])), b.length && (
|
|
1087
|
+
x && (k.push(x[1]), b.unshift(x[2])), b.length && (a = b.join(".") + a), this.hostname = k.join(".");
|
|
1088
1088
|
break;
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
@@ -1092,10 +1092,10 @@ zu.prototype.parse = function(u, e) {
|
|
|
1092
1092
|
}
|
|
1093
1093
|
this.hostname.length > Jt && (this.hostname = ""), m && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
|
|
1094
1094
|
}
|
|
1095
|
-
const
|
|
1096
|
-
|
|
1097
|
-
const c =
|
|
1098
|
-
return c !== -1 && (this.search =
|
|
1095
|
+
const o = a.indexOf("#");
|
|
1096
|
+
o !== -1 && (this.hash = a.substr(o), a = a.slice(0, o));
|
|
1097
|
+
const c = a.indexOf("?");
|
|
1098
|
+
return c !== -1 && (this.search = a.substr(c), a = a.slice(0, c)), a && (this.pathname = a), He[t] && this.hostname && !this.pathname && (this.pathname = ""), this;
|
|
1099
1099
|
};
|
|
1100
1100
|
zu.prototype.parseHost = function(u) {
|
|
1101
1101
|
let e = Nt.exec(u);
|
|
@@ -1106,13 +1106,13 @@ const Qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1106
1106
|
decode: Cu,
|
|
1107
1107
|
encode: Ou,
|
|
1108
1108
|
format: Ce,
|
|
1109
|
-
parse:
|
|
1110
|
-
}, Symbol.toStringTag, { value: "Module" })), F0 = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, A0 = /[\0-\x1F\x7F-\x9F]/, Yt = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,
|
|
1109
|
+
parse: Ee
|
|
1110
|
+
}, Symbol.toStringTag, { value: "Module" })), F0 = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, A0 = /[\0-\x1F\x7F-\x9F]/, Yt = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, De = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, w0 = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, T0 = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1111
1111
|
__proto__: null,
|
|
1112
1112
|
Any: F0,
|
|
1113
1113
|
Cc: A0,
|
|
1114
1114
|
Cf: Yt,
|
|
1115
|
-
P:
|
|
1115
|
+
P: De,
|
|
1116
1116
|
S: w0,
|
|
1117
1117
|
Z: T0
|
|
1118
1118
|
}, Symbol.toStringTag, { value: "Module" })), Xt = new Uint16Array(
|
|
@@ -1176,14 +1176,14 @@ var hu;
|
|
|
1176
1176
|
function le(u) {
|
|
1177
1177
|
return u >= Y.ZERO && u <= Y.NINE;
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1179
|
+
function an(u) {
|
|
1180
1180
|
return u >= Y.UPPER_A && u <= Y.UPPER_F || u >= Y.LOWER_A && u <= Y.LOWER_F;
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1182
|
+
function on(u) {
|
|
1183
1183
|
return u >= Y.UPPER_A && u <= Y.UPPER_Z || u >= Y.LOWER_A && u <= Y.LOWER_Z || le(u);
|
|
1184
1184
|
}
|
|
1185
1185
|
function ln(u) {
|
|
1186
|
-
return u === Y.EQUALS ||
|
|
1186
|
+
return u === Y.EQUALS || on(u);
|
|
1187
1187
|
}
|
|
1188
1188
|
var J;
|
|
1189
1189
|
(function(u) {
|
|
@@ -1240,8 +1240,8 @@ class cn {
|
|
|
1240
1240
|
}
|
|
1241
1241
|
addToNumericResult(e, t, n, r) {
|
|
1242
1242
|
if (t !== n) {
|
|
1243
|
-
const
|
|
1244
|
-
this.result = this.result * Math.pow(r,
|
|
1243
|
+
const a = n - t;
|
|
1244
|
+
this.result = this.result * Math.pow(r, a) + parseInt(e.substr(t, a), r), this.consumed += a;
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
1247
1247
|
/**
|
|
@@ -1257,7 +1257,7 @@ class cn {
|
|
|
1257
1257
|
const n = t;
|
|
1258
1258
|
for (; t < e.length; ) {
|
|
1259
1259
|
const r = e.charCodeAt(t);
|
|
1260
|
-
if (le(r) ||
|
|
1260
|
+
if (le(r) || an(r))
|
|
1261
1261
|
t += 1;
|
|
1262
1262
|
else
|
|
1263
1263
|
return this.addToNumericResult(e, n, t, 16), this.emitNumericEntity(r, 3);
|
|
@@ -1318,17 +1318,17 @@ class cn {
|
|
|
1318
1318
|
*/
|
|
1319
1319
|
stateNamedEntity(e, t) {
|
|
1320
1320
|
const { decodeTree: n } = this;
|
|
1321
|
-
let r = n[this.treeIndex],
|
|
1321
|
+
let r = n[this.treeIndex], a = (r & hu.VALUE_LENGTH) >> 14;
|
|
1322
1322
|
for (; t < e.length; t++, this.excess++) {
|
|
1323
1323
|
const l = e.charCodeAt(t);
|
|
1324
|
-
if (this.treeIndex = sn(n, r, this.treeIndex + Math.max(1,
|
|
1324
|
+
if (this.treeIndex = sn(n, r, this.treeIndex + Math.max(1, a), l), this.treeIndex < 0)
|
|
1325
1325
|
return this.result === 0 || // If we are parsing an attribute
|
|
1326
1326
|
this.decodeMode === bu.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
1327
|
-
(
|
|
1327
|
+
(a === 0 || // And there should be no invalid characters.
|
|
1328
1328
|
ln(l)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1329
|
-
if (r = n[this.treeIndex],
|
|
1329
|
+
if (r = n[this.treeIndex], a = (r & hu.VALUE_LENGTH) >> 14, a !== 0) {
|
|
1330
1330
|
if (l === Y.SEMI)
|
|
1331
|
-
return this.emitNamedEntityData(this.treeIndex,
|
|
1331
|
+
return this.emitNamedEntityData(this.treeIndex, a, this.consumed + this.excess);
|
|
1332
1332
|
this.decodeMode !== bu.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
1333
1333
|
}
|
|
1334
1334
|
}
|
|
@@ -1383,40 +1383,40 @@ class cn {
|
|
|
1383
1383
|
function S0(u) {
|
|
1384
1384
|
let e = "";
|
|
1385
1385
|
const t = new cn(u, (n) => e += tn(n));
|
|
1386
|
-
return function(r,
|
|
1387
|
-
let l = 0,
|
|
1388
|
-
for (; (
|
|
1389
|
-
e += r.slice(l,
|
|
1386
|
+
return function(r, a) {
|
|
1387
|
+
let l = 0, o = 0;
|
|
1388
|
+
for (; (o = r.indexOf("&", o)) >= 0; ) {
|
|
1389
|
+
e += r.slice(l, o), t.startEntity(a);
|
|
1390
1390
|
const i = t.write(
|
|
1391
1391
|
r,
|
|
1392
1392
|
// Skip the "&"
|
|
1393
|
-
|
|
1393
|
+
o + 1
|
|
1394
1394
|
);
|
|
1395
1395
|
if (i < 0) {
|
|
1396
|
-
l =
|
|
1396
|
+
l = o + t.end();
|
|
1397
1397
|
break;
|
|
1398
1398
|
}
|
|
1399
|
-
l =
|
|
1399
|
+
l = o + i, o = i === 0 ? l + 1 : l;
|
|
1400
1400
|
}
|
|
1401
1401
|
const c = e + r.slice(l);
|
|
1402
1402
|
return e = "", c;
|
|
1403
1403
|
};
|
|
1404
1404
|
}
|
|
1405
1405
|
function sn(u, e, t, n) {
|
|
1406
|
-
const r = (e & hu.BRANCH_LENGTH) >> 7,
|
|
1406
|
+
const r = (e & hu.BRANCH_LENGTH) >> 7, a = e & hu.JUMP_TABLE;
|
|
1407
1407
|
if (r === 0)
|
|
1408
|
-
return
|
|
1409
|
-
if (
|
|
1410
|
-
const c = n -
|
|
1408
|
+
return a !== 0 && n === a ? t : -1;
|
|
1409
|
+
if (a) {
|
|
1410
|
+
const c = n - a;
|
|
1411
1411
|
return c < 0 || c >= r ? -1 : u[t + c] - 1;
|
|
1412
1412
|
}
|
|
1413
|
-
let l = t,
|
|
1414
|
-
for (; l <=
|
|
1415
|
-
const c = l +
|
|
1413
|
+
let l = t, o = l + r - 1;
|
|
1414
|
+
for (; l <= o; ) {
|
|
1415
|
+
const c = l + o >>> 1, i = u[c];
|
|
1416
1416
|
if (i < n)
|
|
1417
1417
|
l = c + 1;
|
|
1418
1418
|
else if (i > n)
|
|
1419
|
-
|
|
1419
|
+
o = c - 1;
|
|
1420
1420
|
else
|
|
1421
1421
|
return u[c + r];
|
|
1422
1422
|
}
|
|
@@ -1462,7 +1462,7 @@ function Lu(u) {
|
|
|
1462
1462
|
}
|
|
1463
1463
|
return String.fromCharCode(u);
|
|
1464
1464
|
}
|
|
1465
|
-
const
|
|
1465
|
+
const V0 = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, hn = /&([a-z#][a-z0-9]{1,31});/gi, mn = new RegExp(V0.source + "|" + hn.source, "gi"), xn = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
|
|
1466
1466
|
function _n(u, e) {
|
|
1467
1467
|
if (e.charCodeAt(0) === 35 && xn.test(e)) {
|
|
1468
1468
|
const n = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
|
|
@@ -1472,9 +1472,9 @@ function _n(u, e) {
|
|
|
1472
1472
|
return t !== u ? t : u;
|
|
1473
1473
|
}
|
|
1474
1474
|
function gn(u) {
|
|
1475
|
-
return u.indexOf("\\") < 0 ? u : u.replace(
|
|
1475
|
+
return u.indexOf("\\") < 0 ? u : u.replace(V0, "$1");
|
|
1476
1476
|
}
|
|
1477
|
-
function
|
|
1477
|
+
function Eu(u) {
|
|
1478
1478
|
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(mn, function(e, t, n) {
|
|
1479
1479
|
return t || _n(e, n);
|
|
1480
1480
|
});
|
|
@@ -1491,9 +1491,9 @@ function Cn(u) {
|
|
|
1491
1491
|
function mu(u) {
|
|
1492
1492
|
return kn.test(u) ? u.replace(yn, Cn) : u;
|
|
1493
1493
|
}
|
|
1494
|
-
const
|
|
1495
|
-
function
|
|
1496
|
-
return u.replace(
|
|
1494
|
+
const En = /[.?*+^$[\]\\(){}|-]/g;
|
|
1495
|
+
function Dn(u) {
|
|
1496
|
+
return u.replace(En, "\\$&");
|
|
1497
1497
|
}
|
|
1498
1498
|
function j(u) {
|
|
1499
1499
|
switch (u) {
|
|
@@ -1523,7 +1523,7 @@ function wu(u) {
|
|
|
1523
1523
|
return !1;
|
|
1524
1524
|
}
|
|
1525
1525
|
function Tu(u) {
|
|
1526
|
-
return
|
|
1526
|
+
return De.test(u) || w0.test(u);
|
|
1527
1527
|
}
|
|
1528
1528
|
function Su(u) {
|
|
1529
1529
|
switch (u) {
|
|
@@ -1572,7 +1572,7 @@ const Fn = { mdurl: Qt, ucmicro: Kt }, An = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
1572
1572
|
arrayReplaceAt: O0,
|
|
1573
1573
|
assign: Hu,
|
|
1574
1574
|
escapeHtml: mu,
|
|
1575
|
-
escapeRE:
|
|
1575
|
+
escapeRE: Dn,
|
|
1576
1576
|
fromCodePoint: Lu,
|
|
1577
1577
|
has: bn,
|
|
1578
1578
|
isMdAsciiPunct: Su,
|
|
@@ -1583,18 +1583,18 @@ const Fn = { mdurl: Qt, ucmicro: Kt }, An = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
1583
1583
|
isWhiteSpace: wu,
|
|
1584
1584
|
lib: Fn,
|
|
1585
1585
|
normalizeReference: Gu,
|
|
1586
|
-
unescapeAll:
|
|
1586
|
+
unescapeAll: Eu,
|
|
1587
1587
|
unescapeMd: gn
|
|
1588
1588
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1589
1589
|
function wn(u, e, t) {
|
|
1590
|
-
let n, r,
|
|
1591
|
-
const
|
|
1592
|
-
for (u.pos = e + 1, n = 1; u.pos <
|
|
1593
|
-
if (
|
|
1590
|
+
let n, r, a, l;
|
|
1591
|
+
const o = u.posMax, c = u.pos;
|
|
1592
|
+
for (u.pos = e + 1, n = 1; u.pos < o; ) {
|
|
1593
|
+
if (a = u.src.charCodeAt(u.pos), a === 93 && (n--, n === 0)) {
|
|
1594
1594
|
r = !0;
|
|
1595
1595
|
break;
|
|
1596
1596
|
}
|
|
1597
|
-
if (l = u.pos, u.md.inline.skipToken(u),
|
|
1597
|
+
if (l = u.pos, u.md.inline.skipToken(u), a === 91) {
|
|
1598
1598
|
if (l === u.pos - 1)
|
|
1599
1599
|
n++;
|
|
1600
1600
|
else if (t)
|
|
@@ -1606,7 +1606,7 @@ function wn(u, e, t) {
|
|
|
1606
1606
|
}
|
|
1607
1607
|
function Tn(u, e, t) {
|
|
1608
1608
|
let n, r = e;
|
|
1609
|
-
const
|
|
1609
|
+
const a = {
|
|
1610
1610
|
ok: !1,
|
|
1611
1611
|
pos: 0,
|
|
1612
1612
|
str: ""
|
|
@@ -1614,16 +1614,16 @@ function Tn(u, e, t) {
|
|
|
1614
1614
|
if (u.charCodeAt(r) === 60) {
|
|
1615
1615
|
for (r++; r < t; ) {
|
|
1616
1616
|
if (n = u.charCodeAt(r), n === 10 || n === 60)
|
|
1617
|
-
return
|
|
1617
|
+
return a;
|
|
1618
1618
|
if (n === 62)
|
|
1619
|
-
return
|
|
1619
|
+
return a.pos = r + 1, a.str = Eu(u.slice(e + 1, r)), a.ok = !0, a;
|
|
1620
1620
|
if (n === 92 && r + 1 < t) {
|
|
1621
1621
|
r += 2;
|
|
1622
1622
|
continue;
|
|
1623
1623
|
}
|
|
1624
1624
|
r++;
|
|
1625
1625
|
}
|
|
1626
|
-
return
|
|
1626
|
+
return a;
|
|
1627
1627
|
}
|
|
1628
1628
|
let l = 0;
|
|
1629
1629
|
for (; r < t && (n = u.charCodeAt(r), !(n === 32 || n < 32 || n === 127)); ) {
|
|
@@ -1634,7 +1634,7 @@ function Tn(u, e, t) {
|
|
|
1634
1634
|
continue;
|
|
1635
1635
|
}
|
|
1636
1636
|
if (n === 40 && (l++, l > 32))
|
|
1637
|
-
return
|
|
1637
|
+
return a;
|
|
1638
1638
|
if (n === 41) {
|
|
1639
1639
|
if (l === 0)
|
|
1640
1640
|
break;
|
|
@@ -1642,10 +1642,10 @@ function Tn(u, e, t) {
|
|
|
1642
1642
|
}
|
|
1643
1643
|
r++;
|
|
1644
1644
|
}
|
|
1645
|
-
return e === r || l !== 0 || (
|
|
1645
|
+
return e === r || l !== 0 || (a.str = Eu(u.slice(e, r)), a.pos = r, a.ok = !0), a;
|
|
1646
1646
|
}
|
|
1647
1647
|
function Sn(u, e, t, n) {
|
|
1648
|
-
let r,
|
|
1648
|
+
let r, a = e;
|
|
1649
1649
|
const l = {
|
|
1650
1650
|
// if `true`, this is a valid link title
|
|
1651
1651
|
ok: !1,
|
|
@@ -1661,21 +1661,21 @@ function Sn(u, e, t, n) {
|
|
|
1661
1661
|
if (n)
|
|
1662
1662
|
l.str = n.str, l.marker = n.marker;
|
|
1663
1663
|
else {
|
|
1664
|
-
if (
|
|
1664
|
+
if (a >= t)
|
|
1665
1665
|
return l;
|
|
1666
|
-
let
|
|
1667
|
-
if (
|
|
1666
|
+
let o = u.charCodeAt(a);
|
|
1667
|
+
if (o !== 34 && o !== 39 && o !== 40)
|
|
1668
1668
|
return l;
|
|
1669
|
-
e++,
|
|
1669
|
+
e++, a++, o === 40 && (o = 41), l.marker = o;
|
|
1670
1670
|
}
|
|
1671
|
-
for (;
|
|
1672
|
-
if (r = u.charCodeAt(
|
|
1673
|
-
return l.pos =
|
|
1671
|
+
for (; a < t; ) {
|
|
1672
|
+
if (r = u.charCodeAt(a), r === l.marker)
|
|
1673
|
+
return l.pos = a + 1, l.str += Eu(u.slice(e, a)), l.ok = !0, l;
|
|
1674
1674
|
if (r === 40 && l.marker === 41)
|
|
1675
1675
|
return l;
|
|
1676
|
-
r === 92 &&
|
|
1676
|
+
r === 92 && a + 1 < t && a++, a++;
|
|
1677
1677
|
}
|
|
1678
|
-
return l.can_continue = !0, l.str +=
|
|
1678
|
+
return l.can_continue = !0, l.str += Eu(u.slice(e, a)), l;
|
|
1679
1679
|
}
|
|
1680
1680
|
const In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1681
1681
|
__proto__: null,
|
|
@@ -1684,40 +1684,40 @@ const In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1684
1684
|
parseLinkTitle: Sn
|
|
1685
1685
|
}, Symbol.toStringTag, { value: "Module" })), su = {};
|
|
1686
1686
|
su.code_inline = function(u, e, t, n, r) {
|
|
1687
|
-
const
|
|
1688
|
-
return "<code" + r.renderAttrs(
|
|
1687
|
+
const a = u[e];
|
|
1688
|
+
return "<code" + r.renderAttrs(a) + ">" + mu(a.content) + "</code>";
|
|
1689
1689
|
};
|
|
1690
1690
|
su.code_block = function(u, e, t, n, r) {
|
|
1691
|
-
const
|
|
1692
|
-
return "<pre" + r.renderAttrs(
|
|
1691
|
+
const a = u[e];
|
|
1692
|
+
return "<pre" + r.renderAttrs(a) + "><code>" + mu(u[e].content) + `</code></pre>
|
|
1693
1693
|
`;
|
|
1694
1694
|
};
|
|
1695
1695
|
su.fence = function(u, e, t, n, r) {
|
|
1696
|
-
const
|
|
1697
|
-
let
|
|
1696
|
+
const a = u[e], l = a.info ? Eu(a.info).trim() : "";
|
|
1697
|
+
let o = "", c = "";
|
|
1698
1698
|
if (l) {
|
|
1699
1699
|
const f = l.split(/(\s+)/g);
|
|
1700
|
-
|
|
1700
|
+
o = f[0], c = f.slice(2).join("");
|
|
1701
1701
|
}
|
|
1702
1702
|
let i;
|
|
1703
|
-
if (t.highlight ? i = t.highlight(
|
|
1703
|
+
if (t.highlight ? i = t.highlight(a.content, o, c) || mu(a.content) : i = mu(a.content), i.indexOf("<pre") === 0)
|
|
1704
1704
|
return i + `
|
|
1705
1705
|
`;
|
|
1706
1706
|
if (l) {
|
|
1707
|
-
const f =
|
|
1708
|
-
f < 0 ? s.push(["class", t.langPrefix +
|
|
1707
|
+
const f = a.attrIndex("class"), s = a.attrs ? a.attrs.slice() : [];
|
|
1708
|
+
f < 0 ? s.push(["class", t.langPrefix + o]) : (s[f] = s[f].slice(), s[f][1] += " " + t.langPrefix + o);
|
|
1709
1709
|
const p = {
|
|
1710
1710
|
attrs: s
|
|
1711
1711
|
};
|
|
1712
1712
|
return `<pre><code${r.renderAttrs(p)}>${i}</code></pre>
|
|
1713
1713
|
`;
|
|
1714
1714
|
}
|
|
1715
|
-
return `<pre><code${r.renderAttrs(
|
|
1715
|
+
return `<pre><code${r.renderAttrs(a)}>${i}</code></pre>
|
|
1716
1716
|
`;
|
|
1717
1717
|
};
|
|
1718
1718
|
su.image = function(u, e, t, n, r) {
|
|
1719
|
-
const
|
|
1720
|
-
return
|
|
1719
|
+
const a = u[e];
|
|
1720
|
+
return a.attrs[a.attrIndex("alt")][1] = r.renderInlineAsText(a.children, t, n), r.renderToken(u, e, t);
|
|
1721
1721
|
};
|
|
1722
1722
|
su.hardbreak = function(u, e, t) {
|
|
1723
1723
|
return t.xhtmlOut ? `<br />
|
|
@@ -1752,31 +1752,31 @@ Fu.prototype.renderAttrs = function(e) {
|
|
|
1752
1752
|
};
|
|
1753
1753
|
Fu.prototype.renderToken = function(e, t, n) {
|
|
1754
1754
|
const r = e[t];
|
|
1755
|
-
let
|
|
1755
|
+
let a = "";
|
|
1756
1756
|
if (r.hidden)
|
|
1757
1757
|
return "";
|
|
1758
|
-
r.block && r.nesting !== -1 && t && e[t - 1].hidden && (
|
|
1759
|
-
`),
|
|
1758
|
+
r.block && r.nesting !== -1 && t && e[t - 1].hidden && (a += `
|
|
1759
|
+
`), a += (r.nesting === -1 ? "</" : "<") + r.tag, a += this.renderAttrs(r), r.nesting === 0 && n.xhtmlOut && (a += " /");
|
|
1760
1760
|
let l = !1;
|
|
1761
1761
|
if (r.block && (l = !0, r.nesting === 1 && t + 1 < e.length)) {
|
|
1762
|
-
const
|
|
1763
|
-
(
|
|
1762
|
+
const o = e[t + 1];
|
|
1763
|
+
(o.type === "inline" || o.hidden || o.nesting === -1 && o.tag === r.tag) && (l = !1);
|
|
1764
1764
|
}
|
|
1765
|
-
return
|
|
1766
|
-
` : ">",
|
|
1765
|
+
return a += l ? `>
|
|
1766
|
+
` : ">", a;
|
|
1767
1767
|
};
|
|
1768
1768
|
Fu.prototype.renderInline = function(u, e, t) {
|
|
1769
1769
|
let n = "";
|
|
1770
1770
|
const r = this.rules;
|
|
1771
|
-
for (let
|
|
1772
|
-
const
|
|
1773
|
-
typeof r[
|
|
1771
|
+
for (let a = 0, l = u.length; a < l; a++) {
|
|
1772
|
+
const o = u[a].type;
|
|
1773
|
+
typeof r[o] < "u" ? n += r[o](u, a, e, t, this) : n += this.renderToken(u, a, e);
|
|
1774
1774
|
}
|
|
1775
1775
|
return n;
|
|
1776
1776
|
};
|
|
1777
1777
|
Fu.prototype.renderInlineAsText = function(u, e, t) {
|
|
1778
1778
|
let n = "";
|
|
1779
|
-
for (let r = 0,
|
|
1779
|
+
for (let r = 0, a = u.length; r < a; r++)
|
|
1780
1780
|
switch (u[r].type) {
|
|
1781
1781
|
case "text":
|
|
1782
1782
|
n += u[r].content;
|
|
@@ -1799,9 +1799,9 @@ Fu.prototype.renderInlineAsText = function(u, e, t) {
|
|
|
1799
1799
|
Fu.prototype.render = function(u, e, t) {
|
|
1800
1800
|
let n = "";
|
|
1801
1801
|
const r = this.rules;
|
|
1802
|
-
for (let
|
|
1803
|
-
const
|
|
1804
|
-
|
|
1802
|
+
for (let a = 0, l = u.length; a < l; a++) {
|
|
1803
|
+
const o = u[a].type;
|
|
1804
|
+
o === "inline" ? n += this.renderInline(u[a].children, e, t) : typeof r[o] < "u" ? n += r[o](u, a, e, t, this) : n += this.renderToken(u, a, e, t);
|
|
1805
1805
|
}
|
|
1806
1806
|
return n;
|
|
1807
1807
|
};
|
|
@@ -1833,25 +1833,25 @@ tu.prototype.at = function(u, e, t) {
|
|
|
1833
1833
|
this.__rules__[n].fn = e, this.__rules__[n].alt = r.alt || [], this.__cache__ = null;
|
|
1834
1834
|
};
|
|
1835
1835
|
tu.prototype.before = function(u, e, t, n) {
|
|
1836
|
-
const r = this.__find__(u),
|
|
1836
|
+
const r = this.__find__(u), a = n || {};
|
|
1837
1837
|
if (r === -1)
|
|
1838
1838
|
throw new Error("Parser rule not found: " + u);
|
|
1839
1839
|
this.__rules__.splice(r, 0, {
|
|
1840
1840
|
name: e,
|
|
1841
1841
|
enabled: !0,
|
|
1842
1842
|
fn: t,
|
|
1843
|
-
alt:
|
|
1843
|
+
alt: a.alt || []
|
|
1844
1844
|
}), this.__cache__ = null;
|
|
1845
1845
|
};
|
|
1846
1846
|
tu.prototype.after = function(u, e, t, n) {
|
|
1847
|
-
const r = this.__find__(u),
|
|
1847
|
+
const r = this.__find__(u), a = n || {};
|
|
1848
1848
|
if (r === -1)
|
|
1849
1849
|
throw new Error("Parser rule not found: " + u);
|
|
1850
1850
|
this.__rules__.splice(r + 1, 0, {
|
|
1851
1851
|
name: e,
|
|
1852
1852
|
enabled: !0,
|
|
1853
1853
|
fn: t,
|
|
1854
|
-
alt:
|
|
1854
|
+
alt: a.alt || []
|
|
1855
1855
|
}), this.__cache__ = null;
|
|
1856
1856
|
};
|
|
1857
1857
|
tu.prototype.push = function(u, e, t) {
|
|
@@ -1897,10 +1897,10 @@ tu.prototype.disable = function(u, e) {
|
|
|
1897
1897
|
tu.prototype.getRules = function(u) {
|
|
1898
1898
|
return this.__cache__ === null && this.__compile__(), this.__cache__[u] || [];
|
|
1899
1899
|
};
|
|
1900
|
-
function
|
|
1900
|
+
function ou(u, e, t) {
|
|
1901
1901
|
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;
|
|
1902
1902
|
}
|
|
1903
|
-
|
|
1903
|
+
ou.prototype.attrIndex = function(e) {
|
|
1904
1904
|
if (!this.attrs)
|
|
1905
1905
|
return -1;
|
|
1906
1906
|
const t = this.attrs;
|
|
@@ -1909,31 +1909,31 @@ au.prototype.attrIndex = function(e) {
|
|
|
1909
1909
|
return n;
|
|
1910
1910
|
return -1;
|
|
1911
1911
|
};
|
|
1912
|
-
|
|
1912
|
+
ou.prototype.attrPush = function(e) {
|
|
1913
1913
|
this.attrs ? this.attrs.push(e) : this.attrs = [e];
|
|
1914
1914
|
};
|
|
1915
|
-
|
|
1915
|
+
ou.prototype.attrSet = function(e, t) {
|
|
1916
1916
|
const n = this.attrIndex(e), r = [e, t];
|
|
1917
1917
|
n < 0 ? this.attrPush(r) : this.attrs[n] = r;
|
|
1918
1918
|
};
|
|
1919
|
-
|
|
1919
|
+
ou.prototype.attrGet = function(e) {
|
|
1920
1920
|
const t = this.attrIndex(e);
|
|
1921
1921
|
let n = null;
|
|
1922
1922
|
return t >= 0 && (n = this.attrs[t][1]), n;
|
|
1923
1923
|
};
|
|
1924
|
-
|
|
1924
|
+
ou.prototype.attrJoin = function(e, t) {
|
|
1925
1925
|
const n = this.attrIndex(e);
|
|
1926
1926
|
n < 0 ? this.attrPush([e, t]) : this.attrs[n][1] = this.attrs[n][1] + " " + t;
|
|
1927
1927
|
};
|
|
1928
|
-
function
|
|
1928
|
+
function $0(u, e, t) {
|
|
1929
1929
|
this.src = u, this.env = t, this.tokens = [], this.inlineMode = !1, this.md = e;
|
|
1930
1930
|
}
|
|
1931
|
-
|
|
1932
|
-
const On = /\r\n?|\n/g,
|
|
1933
|
-
function
|
|
1931
|
+
$0.prototype.Token = ou;
|
|
1932
|
+
const On = /\r\n?|\n/g, Vn = /\0/g;
|
|
1933
|
+
function $n(u) {
|
|
1934
1934
|
let e;
|
|
1935
1935
|
e = u.src.replace(On, `
|
|
1936
|
-
`), e = e.replace(
|
|
1936
|
+
`), e = e.replace(Vn, "�"), u.src = e;
|
|
1937
1937
|
}
|
|
1938
1938
|
function Rn(u) {
|
|
1939
1939
|
let e;
|
|
@@ -1958,26 +1958,26 @@ function zn(u) {
|
|
|
1958
1958
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
1959
1959
|
if (e[t].type !== "inline" || !u.md.linkify.pretest(e[t].content))
|
|
1960
1960
|
continue;
|
|
1961
|
-
let r = e[t].children,
|
|
1961
|
+
let r = e[t].children, a = 0;
|
|
1962
1962
|
for (let l = r.length - 1; l >= 0; l--) {
|
|
1963
|
-
const
|
|
1964
|
-
if (
|
|
1965
|
-
for (l--; r[l].level !==
|
|
1963
|
+
const o = r[l];
|
|
1964
|
+
if (o.type === "link_close") {
|
|
1965
|
+
for (l--; r[l].level !== o.level && r[l].type !== "link_open"; )
|
|
1966
1966
|
l--;
|
|
1967
1967
|
continue;
|
|
1968
1968
|
}
|
|
1969
|
-
if (
|
|
1970
|
-
const c =
|
|
1969
|
+
if (o.type === "html_inline" && (qn(o.content) && a > 0 && a--, Bn(o.content) && a++), !(a > 0) && o.type === "text" && u.md.linkify.test(o.content)) {
|
|
1970
|
+
const c = o.content;
|
|
1971
1971
|
let i = u.md.linkify.match(c);
|
|
1972
1972
|
const f = [];
|
|
1973
|
-
let s =
|
|
1973
|
+
let s = o.level, p = 0;
|
|
1974
1974
|
i.length > 0 && i[0].index === 0 && l > 0 && r[l - 1].type === "text_special" && (i = i.slice(1));
|
|
1975
1975
|
for (let m = 0; m < i.length; m++) {
|
|
1976
1976
|
const d = i[m].url, w = u.md.normalizeLink(d);
|
|
1977
1977
|
if (!u.md.validateLink(w))
|
|
1978
1978
|
continue;
|
|
1979
|
-
let
|
|
1980
|
-
i[m].schema ? i[m].schema === "mailto:" && !/^mailto:/i.test(
|
|
1979
|
+
let $ = i[m].text;
|
|
1980
|
+
i[m].schema ? i[m].schema === "mailto:" && !/^mailto:/i.test($) ? $ = u.md.normalizeLinkText("mailto:" + $).replace(/^mailto:/, "") : $ = u.md.normalizeLinkText($) : $ = u.md.normalizeLinkText("http://" + $).replace(/^http:\/\//, "");
|
|
1981
1981
|
const A = i[m].index;
|
|
1982
1982
|
if (A > p) {
|
|
1983
1983
|
const x = new u.Token("text", "", 0);
|
|
@@ -1986,7 +1986,7 @@ function zn(u) {
|
|
|
1986
1986
|
const h = new u.Token("link_open", "a", 1);
|
|
1987
1987
|
h.attrs = [["href", w]], h.level = s++, h.markup = "linkify", h.info = "auto", f.push(h);
|
|
1988
1988
|
const k = new u.Token("text", "", 0);
|
|
1989
|
-
k.content =
|
|
1989
|
+
k.content = $, k.level = s, f.push(k);
|
|
1990
1990
|
const b = new u.Token("link_close", "a", -1);
|
|
1991
1991
|
b.level = --s, b.markup = "linkify", b.info = "auto", f.push(b), p = i[m].lastIndex;
|
|
1992
1992
|
}
|
|
@@ -2035,16 +2035,16 @@ function Jn(u, e) {
|
|
|
2035
2035
|
let t;
|
|
2036
2036
|
const n = [];
|
|
2037
2037
|
for (let r = 0; r < u.length; r++) {
|
|
2038
|
-
const
|
|
2038
|
+
const a = u[r], l = u[r].level;
|
|
2039
2039
|
for (t = n.length - 1; t >= 0 && !(n[t].level <= l); t--)
|
|
2040
2040
|
;
|
|
2041
|
-
if (n.length = t + 1,
|
|
2041
|
+
if (n.length = t + 1, a.type !== "text")
|
|
2042
2042
|
continue;
|
|
2043
|
-
let
|
|
2043
|
+
let o = a.content, c = 0, i = o.length;
|
|
2044
2044
|
u:
|
|
2045
2045
|
for (; c < i; ) {
|
|
2046
2046
|
Ge.lastIndex = c;
|
|
2047
|
-
const f = Ge.exec(
|
|
2047
|
+
const f = Ge.exec(o);
|
|
2048
2048
|
if (!f)
|
|
2049
2049
|
break;
|
|
2050
2050
|
let s = !0, p = !0;
|
|
@@ -2052,7 +2052,7 @@ function Jn(u, e) {
|
|
|
2052
2052
|
const m = f[0] === "'";
|
|
2053
2053
|
let d = 32;
|
|
2054
2054
|
if (f.index - 1 >= 0)
|
|
2055
|
-
d =
|
|
2055
|
+
d = o.charCodeAt(f.index - 1);
|
|
2056
2056
|
else
|
|
2057
2057
|
for (t = r - 1; t >= 0 && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t--)
|
|
2058
2058
|
if (u[t].content) {
|
|
@@ -2061,16 +2061,16 @@ function Jn(u, e) {
|
|
|
2061
2061
|
}
|
|
2062
2062
|
let w = 32;
|
|
2063
2063
|
if (c < i)
|
|
2064
|
-
w =
|
|
2064
|
+
w = o.charCodeAt(c);
|
|
2065
2065
|
else
|
|
2066
2066
|
for (t = r + 1; t < u.length && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t++)
|
|
2067
2067
|
if (u[t].content) {
|
|
2068
2068
|
w = u[t].content.charCodeAt(0);
|
|
2069
2069
|
break;
|
|
2070
2070
|
}
|
|
2071
|
-
const
|
|
2072
|
-
if (k ? s = !1 : A && (h ||
|
|
2073
|
-
m && (
|
|
2071
|
+
const $ = Su(d) || Tu(String.fromCharCode(d)), A = Su(w) || Tu(String.fromCharCode(w)), h = wu(d), k = wu(w);
|
|
2072
|
+
if (k ? s = !1 : A && (h || $ || (s = !1)), h ? p = !1 : $ && (k || A || (p = !1)), w === 34 && f[0] === '"' && d >= 48 && d <= 57 && (p = s = !1), s && p && (s = $, p = A), !s && !p) {
|
|
2073
|
+
m && (a.content = Ru(a.content, f.index, Je));
|
|
2074
2074
|
continue;
|
|
2075
2075
|
}
|
|
2076
2076
|
if (p)
|
|
@@ -2081,11 +2081,11 @@ function Jn(u, e) {
|
|
|
2081
2081
|
if (b.single === m && n[t].level === l) {
|
|
2082
2082
|
b = n[t];
|
|
2083
2083
|
let x, g;
|
|
2084
|
-
m ? (x = e.md.options.quotes[2], g = e.md.options.quotes[3]) : (x = e.md.options.quotes[0], g = e.md.options.quotes[1]),
|
|
2084
|
+
m ? (x = e.md.options.quotes[2], g = e.md.options.quotes[3]) : (x = e.md.options.quotes[0], g = e.md.options.quotes[1]), a.content = Ru(a.content, f.index, g), u[b.token].content = Ru(
|
|
2085
2085
|
u[b.token].content,
|
|
2086
2086
|
b.pos,
|
|
2087
2087
|
x
|
|
2088
|
-
), c += g.length - 1, b.token === r && (c += x.length - 1),
|
|
2088
|
+
), c += g.length - 1, b.token === r && (c += x.length - 1), o = a.content, i = o.length, n.length = t;
|
|
2089
2089
|
continue u;
|
|
2090
2090
|
}
|
|
2091
2091
|
}
|
|
@@ -2094,7 +2094,7 @@ function Jn(u, e) {
|
|
|
2094
2094
|
pos: f.index,
|
|
2095
2095
|
single: m,
|
|
2096
2096
|
level: l
|
|
2097
|
-
}) : p && m && (
|
|
2097
|
+
}) : p && m && (a.content = Ru(a.content, f.index, Je));
|
|
2098
2098
|
}
|
|
2099
2099
|
}
|
|
2100
2100
|
}
|
|
@@ -2106,19 +2106,19 @@ function Wn(u) {
|
|
|
2106
2106
|
function Qn(u) {
|
|
2107
2107
|
let e, t;
|
|
2108
2108
|
const n = u.tokens, r = n.length;
|
|
2109
|
-
for (let
|
|
2110
|
-
if (n[
|
|
2109
|
+
for (let a = 0; a < r; a++) {
|
|
2110
|
+
if (n[a].type !== "inline")
|
|
2111
2111
|
continue;
|
|
2112
|
-
const l = n[
|
|
2113
|
-
for (e = 0; e <
|
|
2112
|
+
const l = n[a].children, o = l.length;
|
|
2113
|
+
for (e = 0; e < o; e++)
|
|
2114
2114
|
l[e].type === "text_special" && (l[e].type = "text");
|
|
2115
|
-
for (e = t = 0; e <
|
|
2116
|
-
l[e].type === "text" && e + 1 <
|
|
2115
|
+
for (e = t = 0; e < o; e++)
|
|
2116
|
+
l[e].type === "text" && e + 1 < o && l[e + 1].type === "text" ? l[e + 1].content = l[e].content + l[e + 1].content : (e !== t && (l[t] = l[e]), t++);
|
|
2117
2117
|
e !== t && (l.length = t);
|
|
2118
2118
|
}
|
|
2119
2119
|
}
|
|
2120
2120
|
const ee = [
|
|
2121
|
-
["normalize",
|
|
2121
|
+
["normalize", $n],
|
|
2122
2122
|
["block", Rn],
|
|
2123
2123
|
["inline", Mn],
|
|
2124
2124
|
["linkify", zn],
|
|
@@ -2138,24 +2138,24 @@ we.prototype.process = function(u) {
|
|
|
2138
2138
|
for (let t = 0, n = e.length; t < n; t++)
|
|
2139
2139
|
e[t](u);
|
|
2140
2140
|
};
|
|
2141
|
-
we.prototype.State =
|
|
2141
|
+
we.prototype.State = $0;
|
|
2142
2142
|
function du(u, e, t, n) {
|
|
2143
2143
|
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;
|
|
2144
2144
|
const r = this.src;
|
|
2145
|
-
for (let
|
|
2145
|
+
for (let a = 0, l = 0, o = 0, c = 0, i = r.length, f = !1; l < i; l++) {
|
|
2146
2146
|
const s = r.charCodeAt(l);
|
|
2147
2147
|
if (!f)
|
|
2148
2148
|
if (j(s)) {
|
|
2149
|
-
|
|
2149
|
+
o++, s === 9 ? c += 4 - c % 4 : c++;
|
|
2150
2150
|
continue;
|
|
2151
2151
|
} else
|
|
2152
2152
|
f = !0;
|
|
2153
|
-
(s === 10 || l === i - 1) && (s !== 10 && l++, this.bMarks.push(
|
|
2153
|
+
(s === 10 || l === i - 1) && (s !== 10 && l++, this.bMarks.push(a), this.eMarks.push(l), this.tShift.push(o), this.sCount.push(c), this.bsCount.push(0), f = !1, o = 0, c = 0, a = l + 1);
|
|
2154
2154
|
}
|
|
2155
2155
|
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;
|
|
2156
2156
|
}
|
|
2157
2157
|
du.prototype.push = function(u, e, t) {
|
|
2158
|
-
const n = new
|
|
2158
|
+
const n = new ou(u, e, t);
|
|
2159
2159
|
return n.block = !0, t < 0 && this.level--, n.level = this.level, t > 0 && this.level++, this.tokens.push(n), n;
|
|
2160
2160
|
};
|
|
2161
2161
|
du.prototype.isEmpty = function(e) {
|
|
@@ -2198,26 +2198,26 @@ du.prototype.skipCharsBack = function(e, t, n) {
|
|
|
2198
2198
|
du.prototype.getLines = function(e, t, n, r) {
|
|
2199
2199
|
if (e >= t)
|
|
2200
2200
|
return "";
|
|
2201
|
-
const
|
|
2202
|
-
for (let l = 0,
|
|
2201
|
+
const a = new Array(t - e);
|
|
2202
|
+
for (let l = 0, o = e; o < t; o++, l++) {
|
|
2203
2203
|
let c = 0;
|
|
2204
|
-
const i = this.bMarks[
|
|
2204
|
+
const i = this.bMarks[o];
|
|
2205
2205
|
let f = i, s;
|
|
2206
|
-
for (
|
|
2206
|
+
for (o + 1 < t || r ? s = this.eMarks[o] + 1 : s = this.eMarks[o]; f < s && c < n; ) {
|
|
2207
2207
|
const p = this.src.charCodeAt(f);
|
|
2208
2208
|
if (j(p))
|
|
2209
|
-
p === 9 ? c += 4 - (c + this.bsCount[
|
|
2210
|
-
else if (f - i < this.tShift[
|
|
2209
|
+
p === 9 ? c += 4 - (c + this.bsCount[o]) % 4 : c++;
|
|
2210
|
+
else if (f - i < this.tShift[o])
|
|
2211
2211
|
c++;
|
|
2212
2212
|
else
|
|
2213
2213
|
break;
|
|
2214
2214
|
f++;
|
|
2215
2215
|
}
|
|
2216
|
-
c > n ?
|
|
2216
|
+
c > n ? a[l] = new Array(c - n + 1).join(" ") + this.src.slice(f, s) : a[l] = this.src.slice(f, s);
|
|
2217
2217
|
}
|
|
2218
|
-
return
|
|
2218
|
+
return a.join("");
|
|
2219
2219
|
};
|
|
2220
|
-
du.prototype.Token =
|
|
2220
|
+
du.prototype.Token = ou;
|
|
2221
2221
|
const Yn = 65536;
|
|
2222
2222
|
function te(u, e) {
|
|
2223
2223
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
|
@@ -2225,10 +2225,10 @@ function te(u, e) {
|
|
|
2225
2225
|
}
|
|
2226
2226
|
function We(u) {
|
|
2227
2227
|
const e = [], t = u.length;
|
|
2228
|
-
let n = 0, r = u.charCodeAt(n),
|
|
2228
|
+
let n = 0, r = u.charCodeAt(n), a = !1, l = 0, o = "";
|
|
2229
2229
|
for (; n < t; )
|
|
2230
|
-
r === 124 && (
|
|
2231
|
-
return e.push(
|
|
2230
|
+
r === 124 && (a ? (o += u.substring(l, n - 1), l = n) : (e.push(o + u.substring(l, n)), o = "", l = n + 1)), a = r === 92, n++, r = u.charCodeAt(n);
|
|
2231
|
+
return e.push(o + u.substring(l)), e;
|
|
2232
2232
|
}
|
|
2233
2233
|
function Kn(u, e, t, n) {
|
|
2234
2234
|
if (e + 2 > t)
|
|
@@ -2236,20 +2236,20 @@ function Kn(u, e, t, n) {
|
|
|
2236
2236
|
let r = e + 1;
|
|
2237
2237
|
if (u.sCount[r] < u.blkIndent || u.sCount[r] - u.blkIndent >= 4)
|
|
2238
2238
|
return !1;
|
|
2239
|
-
let
|
|
2240
|
-
if (
|
|
2239
|
+
let a = u.bMarks[r] + u.tShift[r];
|
|
2240
|
+
if (a >= u.eMarks[r])
|
|
2241
2241
|
return !1;
|
|
2242
|
-
const l = u.src.charCodeAt(
|
|
2243
|
-
if (l !== 124 && l !== 45 && l !== 58 ||
|
|
2242
|
+
const l = u.src.charCodeAt(a++);
|
|
2243
|
+
if (l !== 124 && l !== 45 && l !== 58 || a >= u.eMarks[r])
|
|
2244
2244
|
return !1;
|
|
2245
|
-
const
|
|
2246
|
-
if (
|
|
2245
|
+
const o = u.src.charCodeAt(a++);
|
|
2246
|
+
if (o !== 124 && o !== 45 && o !== 58 && !j(o) || l === 45 && j(o))
|
|
2247
2247
|
return !1;
|
|
2248
|
-
for (;
|
|
2249
|
-
const b = u.src.charCodeAt(
|
|
2248
|
+
for (; a < u.eMarks[r]; ) {
|
|
2249
|
+
const b = u.src.charCodeAt(a);
|
|
2250
2250
|
if (b !== 124 && b !== 45 && b !== 58 && !j(b))
|
|
2251
2251
|
return !1;
|
|
2252
|
-
|
|
2252
|
+
a++;
|
|
2253
2253
|
}
|
|
2254
2254
|
let c = te(u, e + 1), i = c.split("|");
|
|
2255
2255
|
const f = [];
|
|
@@ -2276,8 +2276,8 @@ function Kn(u, e, t, n) {
|
|
|
2276
2276
|
u.parentType = "table";
|
|
2277
2277
|
const m = u.md.block.ruler.getRules("blockquote"), d = u.push("table_open", "table", 1), w = [e, 0];
|
|
2278
2278
|
d.map = w;
|
|
2279
|
-
const
|
|
2280
|
-
|
|
2279
|
+
const $ = u.push("thead_open", "thead", 1);
|
|
2280
|
+
$.map = [e, e + 1];
|
|
2281
2281
|
const A = u.push("tr_open", "tr", 1);
|
|
2282
2282
|
A.map = [e, e + 1];
|
|
2283
2283
|
for (let b = 0; b < i.length; b++) {
|
|
@@ -2329,30 +2329,30 @@ function Xn(u, e, t) {
|
|
|
2329
2329
|
break;
|
|
2330
2330
|
}
|
|
2331
2331
|
u.line = r;
|
|
2332
|
-
const
|
|
2333
|
-
return
|
|
2334
|
-
`,
|
|
2332
|
+
const a = u.push("code_block", "code", 0);
|
|
2333
|
+
return a.content = u.getLines(e, r, 4 + u.blkIndent, !1) + `
|
|
2334
|
+
`, a.map = [e, u.line], !0;
|
|
2335
2335
|
}
|
|
2336
2336
|
function ur(u, e, t, n) {
|
|
2337
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2338
|
-
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 >
|
|
2337
|
+
let r = u.bMarks[e] + u.tShift[e], a = u.eMarks[e];
|
|
2338
|
+
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 > a)
|
|
2339
2339
|
return !1;
|
|
2340
2340
|
const l = u.src.charCodeAt(r);
|
|
2341
2341
|
if (l !== 126 && l !== 96)
|
|
2342
2342
|
return !1;
|
|
2343
|
-
let
|
|
2343
|
+
let o = r;
|
|
2344
2344
|
r = u.skipChars(r, l);
|
|
2345
|
-
let c = r -
|
|
2345
|
+
let c = r - o;
|
|
2346
2346
|
if (c < 3)
|
|
2347
2347
|
return !1;
|
|
2348
|
-
const i = u.src.slice(
|
|
2348
|
+
const i = u.src.slice(o, r), f = u.src.slice(r, a);
|
|
2349
2349
|
if (l === 96 && f.indexOf(String.fromCharCode(l)) >= 0)
|
|
2350
2350
|
return !1;
|
|
2351
2351
|
if (n)
|
|
2352
2352
|
return !0;
|
|
2353
2353
|
let s = e, p = !1;
|
|
2354
|
-
for (; s++, !(s >= t || (r =
|
|
2355
|
-
if (u.src.charCodeAt(r) === l && !(u.sCount[s] - u.blkIndent >= 4) && (r = u.skipChars(r, l), !(r -
|
|
2354
|
+
for (; s++, !(s >= t || (r = o = u.bMarks[s] + u.tShift[s], a = u.eMarks[s], r < a && u.sCount[s] < u.blkIndent)); )
|
|
2355
|
+
if (u.src.charCodeAt(r) === l && !(u.sCount[s] - u.blkIndent >= 4) && (r = u.skipChars(r, l), !(r - o < c) && (r = u.skipSpaces(r), !(r < a)))) {
|
|
2356
2356
|
p = !0;
|
|
2357
2357
|
break;
|
|
2358
2358
|
}
|
|
@@ -2361,24 +2361,24 @@ function ur(u, e, t, n) {
|
|
|
2361
2361
|
return m.info = f, m.content = u.getLines(e + 1, s, c, !0), m.markup = i, m.map = [e, u.line], !0;
|
|
2362
2362
|
}
|
|
2363
2363
|
function er(u, e, t, n) {
|
|
2364
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2364
|
+
let r = u.bMarks[e] + u.tShift[e], a = u.eMarks[e];
|
|
2365
2365
|
const l = u.lineMax;
|
|
2366
2366
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 62)
|
|
2367
2367
|
return !1;
|
|
2368
2368
|
if (n)
|
|
2369
2369
|
return !0;
|
|
2370
|
-
const
|
|
2370
|
+
const o = [], c = [], i = [], f = [], s = u.md.block.ruler.getRules("blockquote"), p = u.parentType;
|
|
2371
2371
|
u.parentType = "blockquote";
|
|
2372
2372
|
let m = !1, d;
|
|
2373
2373
|
for (d = e; d < t; d++) {
|
|
2374
2374
|
const k = u.sCount[d] < u.blkIndent;
|
|
2375
|
-
if (r = u.bMarks[d] + u.tShift[d],
|
|
2375
|
+
if (r = u.bMarks[d] + u.tShift[d], a = u.eMarks[d], r >= a)
|
|
2376
2376
|
break;
|
|
2377
2377
|
if (u.src.charCodeAt(r++) === 62 && !k) {
|
|
2378
2378
|
let x = u.sCount[d] + 1, g, _;
|
|
2379
2379
|
u.src.charCodeAt(r) === 32 ? (r++, x++, _ = !1, g = !0) : u.src.charCodeAt(r) === 9 ? (g = !0, (u.bsCount[d] + x) % 4 === 3 ? (r++, x++, _ = !1) : _ = !0) : g = !1;
|
|
2380
2380
|
let I = x;
|
|
2381
|
-
for (
|
|
2381
|
+
for (o.push(u.bMarks[d]), u.bMarks[d] = r; r < a; ) {
|
|
2382
2382
|
const v = u.src.charCodeAt(r);
|
|
2383
2383
|
if (j(v))
|
|
2384
2384
|
v === 9 ? I += 4 - (I + u.bsCount[d] + (_ ? 1 : 0)) % 4 : I++;
|
|
@@ -2386,7 +2386,7 @@ function er(u, e, t, n) {
|
|
|
2386
2386
|
break;
|
|
2387
2387
|
r++;
|
|
2388
2388
|
}
|
|
2389
|
-
m = r >=
|
|
2389
|
+
m = r >= a, c.push(u.bsCount[d]), u.bsCount[d] = u.sCount[d] + 1 + (g ? 1 : 0), i.push(u.sCount[d]), u.sCount[d] = I - x, f.push(u.tShift[d]), u.tShift[d] = r - u.bMarks[d];
|
|
2390
2390
|
continue;
|
|
2391
2391
|
}
|
|
2392
2392
|
if (m)
|
|
@@ -2398,45 +2398,45 @@ function er(u, e, t, n) {
|
|
|
2398
2398
|
break;
|
|
2399
2399
|
}
|
|
2400
2400
|
if (b) {
|
|
2401
|
-
u.lineMax = d, u.blkIndent !== 0 && (
|
|
2401
|
+
u.lineMax = d, u.blkIndent !== 0 && (o.push(u.bMarks[d]), c.push(u.bsCount[d]), f.push(u.tShift[d]), i.push(u.sCount[d]), u.sCount[d] -= u.blkIndent);
|
|
2402
2402
|
break;
|
|
2403
2403
|
}
|
|
2404
|
-
|
|
2404
|
+
o.push(u.bMarks[d]), c.push(u.bsCount[d]), f.push(u.tShift[d]), i.push(u.sCount[d]), u.sCount[d] = -1;
|
|
2405
2405
|
}
|
|
2406
2406
|
const w = u.blkIndent;
|
|
2407
2407
|
u.blkIndent = 0;
|
|
2408
|
-
const
|
|
2409
|
-
|
|
2408
|
+
const $ = u.push("blockquote_open", "blockquote", 1);
|
|
2409
|
+
$.markup = ">";
|
|
2410
2410
|
const A = [e, 0];
|
|
2411
|
-
|
|
2411
|
+
$.map = A, u.md.block.tokenize(u, e, d);
|
|
2412
2412
|
const h = u.push("blockquote_close", "blockquote", -1);
|
|
2413
2413
|
h.markup = ">", u.lineMax = l, u.parentType = p, A[1] = u.line;
|
|
2414
2414
|
for (let k = 0; k < f.length; k++)
|
|
2415
|
-
u.bMarks[k + e] =
|
|
2415
|
+
u.bMarks[k + e] = o[k], u.tShift[k + e] = f[k], u.sCount[k + e] = i[k], u.bsCount[k + e] = c[k];
|
|
2416
2416
|
return u.blkIndent = w, !0;
|
|
2417
2417
|
}
|
|
2418
2418
|
function tr(u, e, t, n) {
|
|
2419
2419
|
const r = u.eMarks[e];
|
|
2420
2420
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2421
2421
|
return !1;
|
|
2422
|
-
let
|
|
2423
|
-
const l = u.src.charCodeAt(
|
|
2422
|
+
let a = u.bMarks[e] + u.tShift[e];
|
|
2423
|
+
const l = u.src.charCodeAt(a++);
|
|
2424
2424
|
if (l !== 42 && l !== 45 && l !== 95)
|
|
2425
2425
|
return !1;
|
|
2426
|
-
let
|
|
2427
|
-
for (;
|
|
2428
|
-
const i = u.src.charCodeAt(
|
|
2426
|
+
let o = 1;
|
|
2427
|
+
for (; a < r; ) {
|
|
2428
|
+
const i = u.src.charCodeAt(a++);
|
|
2429
2429
|
if (i !== l && !j(i))
|
|
2430
2430
|
return !1;
|
|
2431
|
-
i === l &&
|
|
2431
|
+
i === l && o++;
|
|
2432
2432
|
}
|
|
2433
|
-
if (
|
|
2433
|
+
if (o < 3)
|
|
2434
2434
|
return !1;
|
|
2435
2435
|
if (n)
|
|
2436
2436
|
return !0;
|
|
2437
2437
|
u.line = e + 1;
|
|
2438
2438
|
const c = u.push("hr", "hr", 0);
|
|
2439
|
-
return c.map = [e, u.line], c.markup = Array(
|
|
2439
|
+
return c.map = [e, u.line], c.markup = Array(o + 1).join(String.fromCharCode(l)), !0;
|
|
2440
2440
|
}
|
|
2441
2441
|
function Qe(u, e) {
|
|
2442
2442
|
const t = u.eMarks[e];
|
|
@@ -2445,8 +2445,8 @@ function Qe(u, e) {
|
|
|
2445
2445
|
if (r !== 42 && r !== 45 && r !== 43)
|
|
2446
2446
|
return -1;
|
|
2447
2447
|
if (n < t) {
|
|
2448
|
-
const
|
|
2449
|
-
if (!j(
|
|
2448
|
+
const a = u.src.charCodeAt(n);
|
|
2449
|
+
if (!j(a))
|
|
2450
2450
|
return -1;
|
|
2451
2451
|
}
|
|
2452
2452
|
return n;
|
|
@@ -2456,22 +2456,22 @@ function Ye(u, e) {
|
|
|
2456
2456
|
let r = t;
|
|
2457
2457
|
if (r + 1 >= n)
|
|
2458
2458
|
return -1;
|
|
2459
|
-
let
|
|
2460
|
-
if (
|
|
2459
|
+
let a = u.src.charCodeAt(r++);
|
|
2460
|
+
if (a < 48 || a > 57)
|
|
2461
2461
|
return -1;
|
|
2462
2462
|
for (; ; ) {
|
|
2463
2463
|
if (r >= n)
|
|
2464
2464
|
return -1;
|
|
2465
|
-
if (
|
|
2465
|
+
if (a = u.src.charCodeAt(r++), a >= 48 && a <= 57) {
|
|
2466
2466
|
if (r - t >= 10)
|
|
2467
2467
|
return -1;
|
|
2468
2468
|
continue;
|
|
2469
2469
|
}
|
|
2470
|
-
if (
|
|
2470
|
+
if (a === 41 || a === 46)
|
|
2471
2471
|
break;
|
|
2472
2472
|
return -1;
|
|
2473
2473
|
}
|
|
2474
|
-
return r < n && (
|
|
2474
|
+
return r < n && (a = u.src.charCodeAt(r), !j(a)) ? -1 : r;
|
|
2475
2475
|
}
|
|
2476
2476
|
function nr(u, e) {
|
|
2477
2477
|
const t = u.level + 2;
|
|
@@ -2479,7 +2479,7 @@ function nr(u, e) {
|
|
|
2479
2479
|
u.tokens[n].level === t && u.tokens[n].type === "paragraph_open" && (u.tokens[n + 2].hidden = !0, u.tokens[n].hidden = !0, n += 2);
|
|
2480
2480
|
}
|
|
2481
2481
|
function rr(u, e, t, n) {
|
|
2482
|
-
let r,
|
|
2482
|
+
let r, a, l, o, c = e, i = !0;
|
|
2483
2483
|
if (u.sCount[c] - u.blkIndent >= 4 || u.listIndent >= 0 && u.sCount[c] - u.listIndent >= 4 && u.sCount[c] < u.blkIndent)
|
|
2484
2484
|
return !1;
|
|
2485
2485
|
let f = !1;
|
|
@@ -2497,34 +2497,34 @@ function rr(u, e, t, n) {
|
|
|
2497
2497
|
if (n)
|
|
2498
2498
|
return !0;
|
|
2499
2499
|
const d = u.src.charCodeAt(m - 1), w = u.tokens.length;
|
|
2500
|
-
s ? (
|
|
2501
|
-
const
|
|
2502
|
-
|
|
2500
|
+
s ? (o = u.push("ordered_list_open", "ol", 1), p !== 1 && (o.attrs = [["start", p]])) : o = u.push("bullet_list_open", "ul", 1);
|
|
2501
|
+
const $ = [c, 0];
|
|
2502
|
+
o.map = $, o.markup = String.fromCharCode(d);
|
|
2503
2503
|
let A = !1;
|
|
2504
2504
|
const h = u.md.block.ruler.getRules("list"), k = u.parentType;
|
|
2505
2505
|
for (u.parentType = "list"; c < t; ) {
|
|
2506
|
-
|
|
2506
|
+
a = m, r = u.eMarks[c];
|
|
2507
2507
|
const b = u.sCount[c] + m - (u.bMarks[c] + u.tShift[c]);
|
|
2508
2508
|
let x = b;
|
|
2509
|
-
for (;
|
|
2510
|
-
const N = u.src.charCodeAt(
|
|
2509
|
+
for (; a < r; ) {
|
|
2510
|
+
const N = u.src.charCodeAt(a);
|
|
2511
2511
|
if (N === 9)
|
|
2512
2512
|
x += 4 - (x + u.bsCount[c]) % 4;
|
|
2513
2513
|
else if (N === 32)
|
|
2514
2514
|
x++;
|
|
2515
2515
|
else
|
|
2516
2516
|
break;
|
|
2517
|
-
|
|
2517
|
+
a++;
|
|
2518
2518
|
}
|
|
2519
|
-
const g =
|
|
2519
|
+
const g = a;
|
|
2520
2520
|
let _;
|
|
2521
2521
|
g >= r ? _ = 1 : _ = x - b, _ > 4 && (_ = 1);
|
|
2522
2522
|
const I = b + _;
|
|
2523
|
-
|
|
2523
|
+
o = u.push("list_item_open", "li", 1), o.markup = String.fromCharCode(d);
|
|
2524
2524
|
const v = [c, 0];
|
|
2525
|
-
|
|
2525
|
+
o.map = v, s && (o.info = u.src.slice(l, m - 1));
|
|
2526
2526
|
const T = u.tight, F = u.tShift[c], q = u.sCount[c], B = u.listIndent;
|
|
2527
|
-
if (u.listIndent = u.blkIndent, u.blkIndent = I, u.tight = !0, u.tShift[c] = g - u.bMarks[c], u.sCount[c] = x, g >= 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 = B, u.tShift[c] = F, u.sCount[c] = q, u.tight = T,
|
|
2527
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = I, u.tight = !0, u.tShift[c] = g - u.bMarks[c], u.sCount[c] = x, g >= 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 = B, u.tShift[c] = F, u.sCount[c] = q, u.tight = T, o = u.push("list_item_close", "li", -1), o.markup = String.fromCharCode(d), c = u.line, v[1] = c, c >= t || u.sCount[c] < u.blkIndent || u.sCount[c] - u.blkIndent >= 4)
|
|
2528
2528
|
break;
|
|
2529
2529
|
let C = !1;
|
|
2530
2530
|
for (let N = 0, H = h.length; N < H; N++)
|
|
@@ -2543,13 +2543,13 @@ function rr(u, e, t, n) {
|
|
|
2543
2543
|
if (d !== u.src.charCodeAt(m - 1))
|
|
2544
2544
|
break;
|
|
2545
2545
|
}
|
|
2546
|
-
return s ?
|
|
2546
|
+
return s ? o = u.push("ordered_list_close", "ol", -1) : o = u.push("bullet_list_close", "ul", -1), o.markup = String.fromCharCode(d), $[1] = c, u.line = c, u.parentType = k, i && nr(u, w), !0;
|
|
2547
2547
|
}
|
|
2548
|
-
function
|
|
2549
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2548
|
+
function ar(u, e, t, n) {
|
|
2549
|
+
let r = u.bMarks[e] + u.tShift[e], a = u.eMarks[e], l = e + 1;
|
|
2550
2550
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 91)
|
|
2551
2551
|
return !1;
|
|
2552
|
-
function
|
|
2552
|
+
function o(h) {
|
|
2553
2553
|
const k = u.lineMax;
|
|
2554
2554
|
if (h >= k || u.isEmpty(h))
|
|
2555
2555
|
return null;
|
|
@@ -2569,10 +2569,10 @@ function or(u, e, t, n) {
|
|
|
2569
2569
|
const x = u.bMarks[h] + u.tShift[h], g = u.eMarks[h];
|
|
2570
2570
|
return u.src.slice(x, g + 1);
|
|
2571
2571
|
}
|
|
2572
|
-
let c = u.src.slice(r,
|
|
2573
|
-
|
|
2572
|
+
let c = u.src.slice(r, a + 1);
|
|
2573
|
+
a = c.length;
|
|
2574
2574
|
let i = -1;
|
|
2575
|
-
for (r = 1; r <
|
|
2575
|
+
for (r = 1; r < a; r++) {
|
|
2576
2576
|
const h = c.charCodeAt(r);
|
|
2577
2577
|
if (h === 91)
|
|
2578
2578
|
return !1;
|
|
@@ -2580,24 +2580,24 @@ function or(u, e, t, n) {
|
|
|
2580
2580
|
i = r;
|
|
2581
2581
|
break;
|
|
2582
2582
|
} else if (h === 10) {
|
|
2583
|
-
const k =
|
|
2584
|
-
k !== null && (c += k,
|
|
2585
|
-
} else if (h === 92 && (r++, r <
|
|
2586
|
-
const k =
|
|
2587
|
-
k !== null && (c += k,
|
|
2583
|
+
const k = o(l);
|
|
2584
|
+
k !== null && (c += k, a = c.length, l++);
|
|
2585
|
+
} else if (h === 92 && (r++, r < a && c.charCodeAt(r) === 10)) {
|
|
2586
|
+
const k = o(l);
|
|
2587
|
+
k !== null && (c += k, a = c.length, l++);
|
|
2588
2588
|
}
|
|
2589
2589
|
}
|
|
2590
2590
|
if (i < 0 || c.charCodeAt(i + 1) !== 58)
|
|
2591
2591
|
return !1;
|
|
2592
|
-
for (r = i + 2; r <
|
|
2592
|
+
for (r = i + 2; r < a; r++) {
|
|
2593
2593
|
const h = c.charCodeAt(r);
|
|
2594
2594
|
if (h === 10) {
|
|
2595
|
-
const k =
|
|
2596
|
-
k !== null && (c += k,
|
|
2595
|
+
const k = o(l);
|
|
2596
|
+
k !== null && (c += k, a = c.length, l++);
|
|
2597
2597
|
} else if (!j(h))
|
|
2598
2598
|
break;
|
|
2599
2599
|
}
|
|
2600
|
-
const f = u.md.helpers.parseLinkDestination(c, r,
|
|
2600
|
+
const f = u.md.helpers.parseLinkDestination(c, r, a);
|
|
2601
2601
|
if (!f.ok)
|
|
2602
2602
|
return !1;
|
|
2603
2603
|
const s = u.md.normalizeLink(f.str);
|
|
@@ -2605,41 +2605,41 @@ function or(u, e, t, n) {
|
|
|
2605
2605
|
return !1;
|
|
2606
2606
|
r = f.pos;
|
|
2607
2607
|
const p = r, m = l, d = r;
|
|
2608
|
-
for (; r <
|
|
2608
|
+
for (; r < a; r++) {
|
|
2609
2609
|
const h = c.charCodeAt(r);
|
|
2610
2610
|
if (h === 10) {
|
|
2611
|
-
const k =
|
|
2612
|
-
k !== null && (c += k,
|
|
2611
|
+
const k = o(l);
|
|
2612
|
+
k !== null && (c += k, a = c.length, l++);
|
|
2613
2613
|
} else if (!j(h))
|
|
2614
2614
|
break;
|
|
2615
2615
|
}
|
|
2616
|
-
let w = u.md.helpers.parseLinkTitle(c, r,
|
|
2616
|
+
let w = u.md.helpers.parseLinkTitle(c, r, a);
|
|
2617
2617
|
for (; w.can_continue; ) {
|
|
2618
|
-
const h =
|
|
2618
|
+
const h = o(l);
|
|
2619
2619
|
if (h === null)
|
|
2620
2620
|
break;
|
|
2621
|
-
c += h, r =
|
|
2621
|
+
c += h, r = a, a = c.length, l++, w = u.md.helpers.parseLinkTitle(c, r, a, w);
|
|
2622
2622
|
}
|
|
2623
|
-
let
|
|
2624
|
-
for (r <
|
|
2623
|
+
let $;
|
|
2624
|
+
for (r < a && d !== r && w.ok ? ($ = w.str, r = w.pos) : ($ = "", r = p, l = m); r < a; ) {
|
|
2625
2625
|
const h = c.charCodeAt(r);
|
|
2626
2626
|
if (!j(h))
|
|
2627
2627
|
break;
|
|
2628
2628
|
r++;
|
|
2629
2629
|
}
|
|
2630
|
-
if (r <
|
|
2631
|
-
for (
|
|
2630
|
+
if (r < a && c.charCodeAt(r) !== 10 && $)
|
|
2631
|
+
for ($ = "", r = p, l = m; r < a; ) {
|
|
2632
2632
|
const h = c.charCodeAt(r);
|
|
2633
2633
|
if (!j(h))
|
|
2634
2634
|
break;
|
|
2635
2635
|
r++;
|
|
2636
2636
|
}
|
|
2637
|
-
if (r <
|
|
2637
|
+
if (r < a && c.charCodeAt(r) !== 10)
|
|
2638
2638
|
return !1;
|
|
2639
2639
|
const A = Gu(c.slice(1, i));
|
|
2640
|
-
return A ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[A] > "u" && (u.env.references[A] = { title:
|
|
2640
|
+
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;
|
|
2641
2641
|
}
|
|
2642
|
-
const
|
|
2642
|
+
const or = [
|
|
2643
2643
|
"address",
|
|
2644
2644
|
"article",
|
|
2645
2645
|
"aside",
|
|
@@ -2708,24 +2708,24 @@ const ar = [
|
|
|
2708
2708
|
[/^<\?/, /\?>/, !0],
|
|
2709
2709
|
[/^<![A-Z]/, />/, !0],
|
|
2710
2710
|
[/^<!\[CDATA\[/, /\]\]>/, !0],
|
|
2711
|
-
[new RegExp("^</?(" +
|
|
2711
|
+
[new RegExp("^</?(" + or.join("|") + ")(?=(\\s|/?>|$))", "i"), /^$/, !0],
|
|
2712
2712
|
[new RegExp(_r.source + "\\s*$"), /^$/, !1]
|
|
2713
2713
|
];
|
|
2714
2714
|
function gr(u, e, t, n) {
|
|
2715
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2715
|
+
let r = u.bMarks[e] + u.tShift[e], a = u.eMarks[e];
|
|
2716
2716
|
if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(r) !== 60)
|
|
2717
2717
|
return !1;
|
|
2718
|
-
let l = u.src.slice(r,
|
|
2719
|
-
for (;
|
|
2718
|
+
let l = u.src.slice(r, a), o = 0;
|
|
2719
|
+
for (; o < ku.length && !ku[o][0].test(l); o++)
|
|
2720
2720
|
;
|
|
2721
|
-
if (
|
|
2721
|
+
if (o === ku.length)
|
|
2722
2722
|
return !1;
|
|
2723
2723
|
if (n)
|
|
2724
|
-
return ku[
|
|
2724
|
+
return ku[o][2];
|
|
2725
2725
|
let c = e + 1;
|
|
2726
|
-
if (!ku[
|
|
2726
|
+
if (!ku[o][1].test(l)) {
|
|
2727
2727
|
for (; c < t && !(u.sCount[c] < u.blkIndent); c++)
|
|
2728
|
-
if (r = u.bMarks[c] + u.tShift[c],
|
|
2728
|
+
if (r = u.bMarks[c] + u.tShift[c], a = u.eMarks[c], l = u.src.slice(r, a), ku[o][1].test(l)) {
|
|
2729
2729
|
l.length !== 0 && c++;
|
|
2730
2730
|
break;
|
|
2731
2731
|
}
|
|
@@ -2735,28 +2735,28 @@ function gr(u, e, t, n) {
|
|
|
2735
2735
|
return i.map = [e, c], i.content = u.getLines(e, c, u.blkIndent, !0), !0;
|
|
2736
2736
|
}
|
|
2737
2737
|
function kr(u, e, t, n) {
|
|
2738
|
-
let r = u.bMarks[e] + u.tShift[e],
|
|
2738
|
+
let r = u.bMarks[e] + u.tShift[e], a = u.eMarks[e];
|
|
2739
2739
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2740
2740
|
return !1;
|
|
2741
2741
|
let l = u.src.charCodeAt(r);
|
|
2742
|
-
if (l !== 35 || r >=
|
|
2742
|
+
if (l !== 35 || r >= a)
|
|
2743
2743
|
return !1;
|
|
2744
|
-
let
|
|
2745
|
-
for (l = u.src.charCodeAt(++r); l === 35 && r <
|
|
2746
|
-
|
|
2747
|
-
if (
|
|
2744
|
+
let o = 1;
|
|
2745
|
+
for (l = u.src.charCodeAt(++r); l === 35 && r < a && o <= 6; )
|
|
2746
|
+
o++, l = u.src.charCodeAt(++r);
|
|
2747
|
+
if (o > 6 || r < a && !j(l))
|
|
2748
2748
|
return !1;
|
|
2749
2749
|
if (n)
|
|
2750
2750
|
return !0;
|
|
2751
|
-
|
|
2752
|
-
const c = u.skipCharsBack(
|
|
2753
|
-
c > r && j(u.src.charCodeAt(c - 1)) && (
|
|
2754
|
-
const i = u.push("heading_open", "h" + String(
|
|
2755
|
-
i.markup = "########".slice(0,
|
|
2751
|
+
a = u.skipSpacesBack(a, r);
|
|
2752
|
+
const c = u.skipCharsBack(a, 35, r);
|
|
2753
|
+
c > r && j(u.src.charCodeAt(c - 1)) && (a = c), u.line = e + 1;
|
|
2754
|
+
const i = u.push("heading_open", "h" + String(o), 1);
|
|
2755
|
+
i.markup = "########".slice(0, o), i.map = [e, u.line];
|
|
2756
2756
|
const f = u.push("inline", "", 0);
|
|
2757
|
-
f.content = u.src.slice(r,
|
|
2758
|
-
const s = u.push("heading_close", "h" + String(
|
|
2759
|
-
return s.markup = "########".slice(0,
|
|
2757
|
+
f.content = u.src.slice(r, a).trim(), f.map = [e, u.line], f.children = [];
|
|
2758
|
+
const s = u.push("heading_close", "h" + String(o), -1);
|
|
2759
|
+
return s.markup = "########".slice(0, o), !0;
|
|
2760
2760
|
}
|
|
2761
2761
|
function yr(u, e, t) {
|
|
2762
2762
|
const n = u.md.block.ruler.getRules("paragraph");
|
|
@@ -2764,59 +2764,59 @@ function yr(u, e, t) {
|
|
|
2764
2764
|
return !1;
|
|
2765
2765
|
const r = u.parentType;
|
|
2766
2766
|
u.parentType = "paragraph";
|
|
2767
|
-
let
|
|
2768
|
-
for (;
|
|
2769
|
-
if (u.sCount[
|
|
2767
|
+
let a = 0, l, o = e + 1;
|
|
2768
|
+
for (; o < t && !u.isEmpty(o); o++) {
|
|
2769
|
+
if (u.sCount[o] - u.blkIndent > 3)
|
|
2770
2770
|
continue;
|
|
2771
|
-
if (u.sCount[
|
|
2772
|
-
let m = u.bMarks[
|
|
2773
|
-
const d = u.eMarks[
|
|
2771
|
+
if (u.sCount[o] >= u.blkIndent) {
|
|
2772
|
+
let m = u.bMarks[o] + u.tShift[o];
|
|
2773
|
+
const d = u.eMarks[o];
|
|
2774
2774
|
if (m < d && (l = u.src.charCodeAt(m), (l === 45 || l === 61) && (m = u.skipChars(m, l), m = u.skipSpaces(m), m >= d))) {
|
|
2775
|
-
|
|
2775
|
+
a = l === 61 ? 1 : 2;
|
|
2776
2776
|
break;
|
|
2777
2777
|
}
|
|
2778
2778
|
}
|
|
2779
|
-
if (u.sCount[
|
|
2779
|
+
if (u.sCount[o] < 0)
|
|
2780
2780
|
continue;
|
|
2781
2781
|
let p = !1;
|
|
2782
2782
|
for (let m = 0, d = n.length; m < d; m++)
|
|
2783
|
-
if (n[m](u,
|
|
2783
|
+
if (n[m](u, o, t, !0)) {
|
|
2784
2784
|
p = !0;
|
|
2785
2785
|
break;
|
|
2786
2786
|
}
|
|
2787
2787
|
if (p)
|
|
2788
2788
|
break;
|
|
2789
2789
|
}
|
|
2790
|
-
if (!
|
|
2790
|
+
if (!a)
|
|
2791
2791
|
return !1;
|
|
2792
|
-
const c = u.getLines(e,
|
|
2793
|
-
u.line =
|
|
2794
|
-
const i = u.push("heading_open", "h" + String(
|
|
2792
|
+
const c = u.getLines(e, o, u.blkIndent, !1).trim();
|
|
2793
|
+
u.line = o + 1;
|
|
2794
|
+
const i = u.push("heading_open", "h" + String(a), 1);
|
|
2795
2795
|
i.markup = String.fromCharCode(l), i.map = [e, u.line];
|
|
2796
2796
|
const f = u.push("inline", "", 0);
|
|
2797
2797
|
f.content = c, f.map = [e, u.line - 1], f.children = [];
|
|
2798
|
-
const s = u.push("heading_close", "h" + String(
|
|
2798
|
+
const s = u.push("heading_close", "h" + String(a), -1);
|
|
2799
2799
|
return s.markup = String.fromCharCode(l), u.parentType = r, !0;
|
|
2800
2800
|
}
|
|
2801
2801
|
function vr(u, e, t) {
|
|
2802
2802
|
const n = u.md.block.ruler.getRules("paragraph"), r = u.parentType;
|
|
2803
|
-
let
|
|
2804
|
-
for (u.parentType = "paragraph";
|
|
2805
|
-
if (u.sCount[
|
|
2803
|
+
let a = e + 1;
|
|
2804
|
+
for (u.parentType = "paragraph"; a < t && !u.isEmpty(a); a++) {
|
|
2805
|
+
if (u.sCount[a] - u.blkIndent > 3 || u.sCount[a] < 0)
|
|
2806
2806
|
continue;
|
|
2807
2807
|
let i = !1;
|
|
2808
2808
|
for (let f = 0, s = n.length; f < s; f++)
|
|
2809
|
-
if (n[f](u,
|
|
2809
|
+
if (n[f](u, a, t, !0)) {
|
|
2810
2810
|
i = !0;
|
|
2811
2811
|
break;
|
|
2812
2812
|
}
|
|
2813
2813
|
if (i)
|
|
2814
2814
|
break;
|
|
2815
2815
|
}
|
|
2816
|
-
const l = u.getLines(e,
|
|
2817
|
-
u.line =
|
|
2818
|
-
const
|
|
2819
|
-
|
|
2816
|
+
const l = u.getLines(e, a, u.blkIndent, !1).trim();
|
|
2817
|
+
u.line = a;
|
|
2818
|
+
const o = u.push("paragraph_open", "p", 1);
|
|
2819
|
+
o.map = [e, u.line];
|
|
2820
2820
|
const c = u.push("inline", "", 0);
|
|
2821
2821
|
return c.content = l, c.map = [e, u.line], c.children = [], u.push("paragraph_close", "p", -1), u.parentType = r, !0;
|
|
2822
2822
|
}
|
|
@@ -2829,7 +2829,7 @@ const Mu = [
|
|
|
2829
2829
|
["blockquote", er, ["paragraph", "reference", "blockquote", "list"]],
|
|
2830
2830
|
["hr", tr, ["paragraph", "reference", "blockquote", "list"]],
|
|
2831
2831
|
["list", rr, ["paragraph", "reference", "blockquote"]],
|
|
2832
|
-
["reference",
|
|
2832
|
+
["reference", ar],
|
|
2833
2833
|
["html_block", gr, ["paragraph", "reference", "blockquote"]],
|
|
2834
2834
|
["heading", kr, ["paragraph", "reference", "blockquote"]],
|
|
2835
2835
|
["lheading", yr],
|
|
@@ -2841,10 +2841,10 @@ function Ju() {
|
|
|
2841
2841
|
this.ruler.push(Mu[u][0], Mu[u][1], { alt: (Mu[u][2] || []).slice() });
|
|
2842
2842
|
}
|
|
2843
2843
|
Ju.prototype.tokenize = function(u, e, t) {
|
|
2844
|
-
const n = this.ruler.getRules(""), r = n.length,
|
|
2845
|
-
let l = e,
|
|
2844
|
+
const n = this.ruler.getRules(""), r = n.length, a = u.md.options.maxNesting;
|
|
2845
|
+
let l = e, o = !1;
|
|
2846
2846
|
for (; l < t && (u.line = l = u.skipEmptyLines(l), !(l >= t || u.sCount[l] < u.blkIndent)); ) {
|
|
2847
|
-
if (u.level >=
|
|
2847
|
+
if (u.level >= a) {
|
|
2848
2848
|
u.line = t;
|
|
2849
2849
|
break;
|
|
2850
2850
|
}
|
|
@@ -2858,7 +2858,7 @@ Ju.prototype.tokenize = function(u, e, t) {
|
|
|
2858
2858
|
}
|
|
2859
2859
|
if (!i)
|
|
2860
2860
|
throw new Error("none of the block rules matched");
|
|
2861
|
-
u.tight = !
|
|
2861
|
+
u.tight = !o, u.isEmpty(u.line - 1) && (o = !0), l = u.line, l < t && u.isEmpty(l) && (o = !0, l++, u.line = l);
|
|
2862
2862
|
}
|
|
2863
2863
|
};
|
|
2864
2864
|
Ju.prototype.parse = function(u, e, t, n) {
|
|
@@ -2868,28 +2868,28 @@ Ju.prototype.parse = function(u, e, t, n) {
|
|
|
2868
2868
|
this.tokenize(r, r.line, r.lineMax);
|
|
2869
2869
|
};
|
|
2870
2870
|
Ju.prototype.State = du;
|
|
2871
|
-
function
|
|
2871
|
+
function Vu(u, e, t, n) {
|
|
2872
2872
|
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;
|
|
2873
2873
|
}
|
|
2874
|
-
|
|
2875
|
-
const u = new
|
|
2874
|
+
Vu.prototype.pushPending = function() {
|
|
2875
|
+
const u = new ou("text", "", 0);
|
|
2876
2876
|
return u.content = this.pending, u.level = this.pendingLevel, this.tokens.push(u), this.pending = "", u;
|
|
2877
2877
|
};
|
|
2878
|
-
|
|
2878
|
+
Vu.prototype.push = function(u, e, t) {
|
|
2879
2879
|
this.pending && this.pushPending();
|
|
2880
|
-
const n = new
|
|
2880
|
+
const n = new ou(u, e, t);
|
|
2881
2881
|
let r = null;
|
|
2882
2882
|
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;
|
|
2883
2883
|
};
|
|
2884
|
-
|
|
2884
|
+
Vu.prototype.scanDelims = function(u, e) {
|
|
2885
2885
|
const t = this.posMax, n = this.src.charCodeAt(u), r = u > 0 ? this.src.charCodeAt(u - 1) : 32;
|
|
2886
|
-
let
|
|
2887
|
-
for (;
|
|
2888
|
-
|
|
2889
|
-
const l =
|
|
2886
|
+
let a = u;
|
|
2887
|
+
for (; a < t && this.src.charCodeAt(a) === n; )
|
|
2888
|
+
a++;
|
|
2889
|
+
const l = a - u, o = a < t ? this.src.charCodeAt(a) : 32, c = Su(r) || Tu(String.fromCharCode(r)), i = Su(o) || Tu(String.fromCharCode(o)), f = wu(r), s = wu(o), p = !s && (!i || f || c), m = !f && (!c || s || i);
|
|
2890
2890
|
return { can_open: p && (e || !m || c), can_close: m && (e || !p || i), length: l };
|
|
2891
2891
|
};
|
|
2892
|
-
|
|
2892
|
+
Vu.prototype.Token = ou;
|
|
2893
2893
|
function Cr(u) {
|
|
2894
2894
|
switch (u) {
|
|
2895
2895
|
case 10:
|
|
@@ -2920,42 +2920,42 @@ function Cr(u) {
|
|
|
2920
2920
|
return !1;
|
|
2921
2921
|
}
|
|
2922
2922
|
}
|
|
2923
|
-
function
|
|
2923
|
+
function Er(u, e) {
|
|
2924
2924
|
let t = u.pos;
|
|
2925
2925
|
for (; t < u.posMax && !Cr(u.src.charCodeAt(t)); )
|
|
2926
2926
|
t++;
|
|
2927
2927
|
return t === u.pos ? !1 : (e || (u.pending += u.src.slice(u.pos, t)), u.pos = t, !0);
|
|
2928
2928
|
}
|
|
2929
|
-
const
|
|
2929
|
+
const Dr = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
|
|
2930
2930
|
function Fr(u, e) {
|
|
2931
2931
|
if (!u.md.options.linkify || u.linkLevel > 0)
|
|
2932
2932
|
return !1;
|
|
2933
2933
|
const t = u.pos, n = u.posMax;
|
|
2934
2934
|
if (t + 3 > n || u.src.charCodeAt(t) !== 58 || u.src.charCodeAt(t + 1) !== 47 || u.src.charCodeAt(t + 2) !== 47)
|
|
2935
2935
|
return !1;
|
|
2936
|
-
const r = u.pending.match(
|
|
2936
|
+
const r = u.pending.match(Dr);
|
|
2937
2937
|
if (!r)
|
|
2938
2938
|
return !1;
|
|
2939
|
-
const
|
|
2939
|
+
const a = r[1], l = u.md.linkify.matchAtStart(u.src.slice(t - a.length));
|
|
2940
2940
|
if (!l)
|
|
2941
2941
|
return !1;
|
|
2942
|
-
let
|
|
2943
|
-
if (
|
|
2942
|
+
let o = l.url;
|
|
2943
|
+
if (o.length <= a.length)
|
|
2944
2944
|
return !1;
|
|
2945
|
-
|
|
2946
|
-
const c = u.md.normalizeLink(
|
|
2945
|
+
o = o.replace(/\*+$/, "");
|
|
2946
|
+
const c = u.md.normalizeLink(o);
|
|
2947
2947
|
if (!u.md.validateLink(c))
|
|
2948
2948
|
return !1;
|
|
2949
2949
|
if (!e) {
|
|
2950
|
-
u.pending = u.pending.slice(0, -
|
|
2950
|
+
u.pending = u.pending.slice(0, -a.length);
|
|
2951
2951
|
const i = u.push("link_open", "a", 1);
|
|
2952
2952
|
i.attrs = [["href", c]], i.markup = "linkify", i.info = "auto";
|
|
2953
2953
|
const f = u.push("text", "", 0);
|
|
2954
|
-
f.content = u.md.normalizeLinkText(
|
|
2954
|
+
f.content = u.md.normalizeLinkText(o);
|
|
2955
2955
|
const s = u.push("link_close", "a", -1);
|
|
2956
2956
|
s.markup = "linkify", s.info = "auto";
|
|
2957
2957
|
}
|
|
2958
|
-
return u.pos +=
|
|
2958
|
+
return u.pos += o.length - a.length, !0;
|
|
2959
2959
|
}
|
|
2960
2960
|
function Ar(u, e) {
|
|
2961
2961
|
let t = u.pos;
|
|
@@ -2965,10 +2965,10 @@ function Ar(u, e) {
|
|
|
2965
2965
|
if (!e)
|
|
2966
2966
|
if (n >= 0 && u.pending.charCodeAt(n) === 32)
|
|
2967
2967
|
if (n >= 1 && u.pending.charCodeAt(n - 1) === 32) {
|
|
2968
|
-
let
|
|
2969
|
-
for (;
|
|
2970
|
-
|
|
2971
|
-
u.pending = u.pending.slice(0,
|
|
2968
|
+
let a = n - 1;
|
|
2969
|
+
for (; a >= 1 && u.pending.charCodeAt(a - 1) === 32; )
|
|
2970
|
+
a--;
|
|
2971
|
+
u.pending = u.pending.slice(0, a), u.push("hardbreak", "br", 0);
|
|
2972
2972
|
} else
|
|
2973
2973
|
u.pending = u.pending.slice(0, -1), u.push("softbreak", "br", 0);
|
|
2974
2974
|
else
|
|
@@ -2994,15 +2994,15 @@ function wr(u, e) {
|
|
|
2994
2994
|
t++;
|
|
2995
2995
|
return u.pos = t, !0;
|
|
2996
2996
|
}
|
|
2997
|
-
let
|
|
2997
|
+
let a = u.src[t];
|
|
2998
2998
|
if (r >= 55296 && r <= 56319 && t + 1 < n) {
|
|
2999
|
-
const
|
|
3000
|
-
|
|
2999
|
+
const o = u.src.charCodeAt(t + 1);
|
|
3000
|
+
o >= 56320 && o <= 57343 && (a += u.src[t + 1], t++);
|
|
3001
3001
|
}
|
|
3002
|
-
const l = "\\" +
|
|
3002
|
+
const l = "\\" + a;
|
|
3003
3003
|
if (!e) {
|
|
3004
|
-
const
|
|
3005
|
-
r < 256 && Te[r] !== 0 ?
|
|
3004
|
+
const o = u.push("text_special", "", 0);
|
|
3005
|
+
r < 256 && Te[r] !== 0 ? o.content = a : o.content = l, o.markup = l, o.info = "escape";
|
|
3006
3006
|
}
|
|
3007
3007
|
return u.pos = t + 1, !0;
|
|
3008
3008
|
}
|
|
@@ -3012,18 +3012,18 @@ function Tr(u, e) {
|
|
|
3012
3012
|
return !1;
|
|
3013
3013
|
const r = t;
|
|
3014
3014
|
t++;
|
|
3015
|
-
const
|
|
3016
|
-
for (; t <
|
|
3015
|
+
const a = u.posMax;
|
|
3016
|
+
for (; t < a && u.src.charCodeAt(t) === 96; )
|
|
3017
3017
|
t++;
|
|
3018
|
-
const l = u.src.slice(r, t),
|
|
3019
|
-
if (u.backticksScanned && (u.backticks[
|
|
3020
|
-
return e || (u.pending += l), u.pos +=
|
|
3018
|
+
const l = u.src.slice(r, t), o = l.length;
|
|
3019
|
+
if (u.backticksScanned && (u.backticks[o] || 0) <= r)
|
|
3020
|
+
return e || (u.pending += l), u.pos += o, !0;
|
|
3021
3021
|
let c = t, i;
|
|
3022
3022
|
for (; (i = u.src.indexOf("`", c)) !== -1; ) {
|
|
3023
|
-
for (c = i + 1; c <
|
|
3023
|
+
for (c = i + 1; c < a && u.src.charCodeAt(c) === 96; )
|
|
3024
3024
|
c++;
|
|
3025
3025
|
const f = c - i;
|
|
3026
|
-
if (f ===
|
|
3026
|
+
if (f === o) {
|
|
3027
3027
|
if (!e) {
|
|
3028
3028
|
const s = u.push("code_inline", "code", 0);
|
|
3029
3029
|
s.markup = l, s.content = u.src.slice(t, i).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
|
|
@@ -3032,21 +3032,21 @@ function Tr(u, e) {
|
|
|
3032
3032
|
}
|
|
3033
3033
|
u.backticks[f] = i;
|
|
3034
3034
|
}
|
|
3035
|
-
return u.backticksScanned = !0, e || (u.pending += l), u.pos +=
|
|
3035
|
+
return u.backticksScanned = !0, e || (u.pending += l), u.pos += o, !0;
|
|
3036
3036
|
}
|
|
3037
3037
|
function Sr(u, e) {
|
|
3038
3038
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
3039
3039
|
if (e || n !== 126)
|
|
3040
3040
|
return !1;
|
|
3041
3041
|
const r = u.scanDelims(u.pos, !0);
|
|
3042
|
-
let
|
|
3042
|
+
let a = r.length;
|
|
3043
3043
|
const l = String.fromCharCode(n);
|
|
3044
|
-
if (
|
|
3044
|
+
if (a < 2)
|
|
3045
3045
|
return !1;
|
|
3046
|
-
let
|
|
3047
|
-
|
|
3048
|
-
for (let c = 0; c <
|
|
3049
|
-
|
|
3046
|
+
let o;
|
|
3047
|
+
a % 2 && (o = u.push("text", "", 0), o.content = l, a--);
|
|
3048
|
+
for (let c = 0; c < a; c += 2)
|
|
3049
|
+
o = u.push("text", "", 0), o.content = l + l, u.delimiters.push({
|
|
3050
3050
|
marker: n,
|
|
3051
3051
|
length: 0,
|
|
3052
3052
|
// disable "rule of 3" length checks meant for emphasis
|
|
@@ -3060,19 +3060,19 @@ function Sr(u, e) {
|
|
|
3060
3060
|
function Ke(u, e) {
|
|
3061
3061
|
let t;
|
|
3062
3062
|
const n = [], r = e.length;
|
|
3063
|
-
for (let
|
|
3064
|
-
const l = e[
|
|
3063
|
+
for (let a = 0; a < r; a++) {
|
|
3064
|
+
const l = e[a];
|
|
3065
3065
|
if (l.marker !== 126 || l.end === -1)
|
|
3066
3066
|
continue;
|
|
3067
|
-
const
|
|
3068
|
-
t = u.tokens[l.token], t.type = "s_open", t.tag = "s", t.nesting = 1, t.markup = "~~", t.content = "", t = u.tokens[
|
|
3067
|
+
const o = e[l.end];
|
|
3068
|
+
t = u.tokens[l.token], t.type = "s_open", t.tag = "s", t.nesting = 1, t.markup = "~~", t.content = "", t = u.tokens[o.token], t.type = "s_close", t.tag = "s", t.nesting = -1, t.markup = "~~", t.content = "", u.tokens[o.token - 1].type === "text" && u.tokens[o.token - 1].content === "~" && n.push(o.token - 1);
|
|
3069
3069
|
}
|
|
3070
3070
|
for (; n.length; ) {
|
|
3071
|
-
const
|
|
3072
|
-
let l =
|
|
3071
|
+
const a = n.pop();
|
|
3072
|
+
let l = a + 1;
|
|
3073
3073
|
for (; l < u.tokens.length && u.tokens[l].type === "s_close"; )
|
|
3074
3074
|
l++;
|
|
3075
|
-
l--,
|
|
3075
|
+
l--, a !== l && (t = u.tokens[l], u.tokens[l] = u.tokens[a], u.tokens[a] = t);
|
|
3076
3076
|
}
|
|
3077
3077
|
}
|
|
3078
3078
|
function Ir(u) {
|
|
@@ -3090,7 +3090,7 @@ function Or(u, e) {
|
|
|
3090
3090
|
if (e || n !== 95 && n !== 42)
|
|
3091
3091
|
return !1;
|
|
3092
3092
|
const r = u.scanDelims(u.pos, n === 42);
|
|
3093
|
-
for (let
|
|
3093
|
+
for (let a = 0; a < r.length; a++) {
|
|
3094
3094
|
const l = u.push("text", "", 0);
|
|
3095
3095
|
l.content = String.fromCharCode(n), u.delimiters.push({
|
|
3096
3096
|
// Char code of the starting marker (number).
|
|
@@ -3121,15 +3121,15 @@ function Xe(u, e) {
|
|
|
3121
3121
|
const r = e[n];
|
|
3122
3122
|
if (r.marker !== 95 && r.marker !== 42 || r.end === -1)
|
|
3123
3123
|
continue;
|
|
3124
|
-
const
|
|
3124
|
+
const a = e[r.end], l = n > 0 && e[n - 1].end === r.end + 1 && // check that first two markers match and adjacent
|
|
3125
3125
|
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)
|
|
3126
|
-
e[r.end + 1].token ===
|
|
3127
|
-
c.type = l ? "strong_open" : "em_open", c.tag = l ? "strong" : "em", c.nesting = 1, c.markup = l ?
|
|
3128
|
-
const i = u.tokens[
|
|
3129
|
-
i.type = l ? "strong_close" : "em_close", i.tag = l ? "strong" : "em", i.nesting = -1, i.markup = l ?
|
|
3126
|
+
e[r.end + 1].token === a.token + 1, o = String.fromCharCode(r.marker), c = u.tokens[r.token];
|
|
3127
|
+
c.type = l ? "strong_open" : "em_open", c.tag = l ? "strong" : "em", c.nesting = 1, c.markup = l ? o + o : o, c.content = "";
|
|
3128
|
+
const i = u.tokens[a.token];
|
|
3129
|
+
i.type = l ? "strong_close" : "em_close", i.tag = l ? "strong" : "em", i.nesting = -1, i.markup = l ? o + o : o, i.content = "", l && (u.tokens[e[n - 1].token].content = "", u.tokens[e[r.end + 1].token].content = "", n--);
|
|
3130
3130
|
}
|
|
3131
3131
|
}
|
|
3132
|
-
function
|
|
3132
|
+
function Vr(u) {
|
|
3133
3133
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
3134
3134
|
Xe(u, u.delimiters);
|
|
3135
3135
|
for (let n = 0; n < t; n++)
|
|
@@ -3137,10 +3137,10 @@ function $r(u) {
|
|
|
3137
3137
|
}
|
|
3138
3138
|
const z0 = {
|
|
3139
3139
|
tokenize: Or,
|
|
3140
|
-
postProcess:
|
|
3140
|
+
postProcess: Vr
|
|
3141
3141
|
};
|
|
3142
|
-
function
|
|
3143
|
-
let t, n, r,
|
|
3142
|
+
function $r(u, e) {
|
|
3143
|
+
let t, n, r, a, l = "", o = "", c = u.pos, i = !0;
|
|
3144
3144
|
if (u.src.charCodeAt(u.pos) !== 91)
|
|
3145
3145
|
return !1;
|
|
3146
3146
|
const f = u.pos, s = u.posMax, p = u.pos + 1, m = u.md.helpers.parseLinkLabel(u, u.pos, !0);
|
|
@@ -3156,7 +3156,7 @@ function Vr(u, e) {
|
|
|
3156
3156
|
for (l = u.md.normalizeLink(r.str), u.md.validateLink(l) ? d = r.pos : l = "", c = d; d < s && (t = u.src.charCodeAt(d), !(!j(t) && t !== 10)); d++)
|
|
3157
3157
|
;
|
|
3158
3158
|
if (r = u.md.helpers.parseLinkTitle(u.src, d, u.posMax), d < s && c !== d && r.ok)
|
|
3159
|
-
for (
|
|
3159
|
+
for (o = r.str, d = r.pos; d < s && (t = u.src.charCodeAt(d), !(!j(t) && t !== 10)); d++)
|
|
3160
3160
|
;
|
|
3161
3161
|
}
|
|
3162
3162
|
(d >= s || u.src.charCodeAt(d) !== 41) && (i = !0), d++;
|
|
@@ -3164,44 +3164,44 @@ function Vr(u, e) {
|
|
|
3164
3164
|
if (i) {
|
|
3165
3165
|
if (typeof u.env.references > "u")
|
|
3166
3166
|
return !1;
|
|
3167
|
-
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)),
|
|
3167
|
+
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)), a = u.env.references[Gu(n)], !a)
|
|
3168
3168
|
return u.pos = f, !1;
|
|
3169
|
-
l =
|
|
3169
|
+
l = a.href, o = a.title;
|
|
3170
3170
|
}
|
|
3171
3171
|
if (!e) {
|
|
3172
3172
|
u.pos = p, u.posMax = m;
|
|
3173
|
-
const w = u.push("link_open", "a", 1),
|
|
3174
|
-
w.attrs =
|
|
3173
|
+
const w = u.push("link_open", "a", 1), $ = [["href", l]];
|
|
3174
|
+
w.attrs = $, o && $.push(["title", o]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
|
|
3175
3175
|
}
|
|
3176
3176
|
return u.pos = d, u.posMax = s, !0;
|
|
3177
3177
|
}
|
|
3178
3178
|
function Rr(u, e) {
|
|
3179
|
-
let t, n, r,
|
|
3179
|
+
let t, n, r, a, l, o, c, i, f = "";
|
|
3180
3180
|
const s = u.pos, p = u.posMax;
|
|
3181
3181
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
|
3182
3182
|
return !1;
|
|
3183
3183
|
const m = u.pos + 2, d = u.md.helpers.parseLinkLabel(u, u.pos + 1, !1);
|
|
3184
3184
|
if (d < 0)
|
|
3185
3185
|
return !1;
|
|
3186
|
-
if (
|
|
3187
|
-
for (
|
|
3186
|
+
if (a = d + 1, a < p && u.src.charCodeAt(a) === 40) {
|
|
3187
|
+
for (a++; a < p && (t = u.src.charCodeAt(a), !(!j(t) && t !== 10)); a++)
|
|
3188
3188
|
;
|
|
3189
|
-
if (
|
|
3189
|
+
if (a >= p)
|
|
3190
3190
|
return !1;
|
|
3191
|
-
for (i =
|
|
3191
|
+
for (i = a, o = u.md.helpers.parseLinkDestination(u.src, a, u.posMax), o.ok && (f = u.md.normalizeLink(o.str), u.md.validateLink(f) ? a = o.pos : f = ""), i = a; a < p && (t = u.src.charCodeAt(a), !(!j(t) && t !== 10)); a++)
|
|
3192
3192
|
;
|
|
3193
|
-
if (
|
|
3194
|
-
for (c =
|
|
3193
|
+
if (o = u.md.helpers.parseLinkTitle(u.src, a, u.posMax), a < p && i !== a && o.ok)
|
|
3194
|
+
for (c = o.str, a = o.pos; a < p && (t = u.src.charCodeAt(a), !(!j(t) && t !== 10)); a++)
|
|
3195
3195
|
;
|
|
3196
3196
|
else
|
|
3197
3197
|
c = "";
|
|
3198
|
-
if (
|
|
3198
|
+
if (a >= p || u.src.charCodeAt(a) !== 41)
|
|
3199
3199
|
return u.pos = s, !1;
|
|
3200
|
-
|
|
3200
|
+
a++;
|
|
3201
3201
|
} else {
|
|
3202
3202
|
if (typeof u.env.references > "u")
|
|
3203
3203
|
return !1;
|
|
3204
|
-
if (
|
|
3204
|
+
if (a < p && u.src.charCodeAt(a) === 91 ? (i = a + 1, a = u.md.helpers.parseLinkLabel(u, a), a >= 0 ? r = u.src.slice(i, a++) : a = d + 1) : a = d + 1, r || (r = u.src.slice(m, d)), l = u.env.references[Gu(r)], !l)
|
|
3205
3205
|
return u.pos = s, !1;
|
|
3206
3206
|
f = l.href, c = l.title;
|
|
3207
3207
|
}
|
|
@@ -3214,10 +3214,10 @@ function Rr(u, e) {
|
|
|
3214
3214
|
u.env,
|
|
3215
3215
|
w
|
|
3216
3216
|
);
|
|
3217
|
-
const
|
|
3218
|
-
|
|
3217
|
+
const $ = u.push("image", "img", 0), A = [["src", f], ["alt", ""]];
|
|
3218
|
+
$.attrs = A, $.children = w, $.content = n, c && A.push(["title", c]);
|
|
3219
3219
|
}
|
|
3220
|
-
return u.pos =
|
|
3220
|
+
return u.pos = a, u.posMax = p, !0;
|
|
3221
3221
|
}
|
|
3222
3222
|
const Mr = /^([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])?)*)$/, qr = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
3223
3223
|
function Br(u, e) {
|
|
@@ -3234,34 +3234,34 @@ function Br(u, e) {
|
|
|
3234
3234
|
if (l === 62)
|
|
3235
3235
|
break;
|
|
3236
3236
|
}
|
|
3237
|
-
const
|
|
3238
|
-
if (qr.test(
|
|
3239
|
-
const l = u.md.normalizeLink(
|
|
3237
|
+
const a = u.src.slice(n + 1, t);
|
|
3238
|
+
if (qr.test(a)) {
|
|
3239
|
+
const l = u.md.normalizeLink(a);
|
|
3240
3240
|
if (!u.md.validateLink(l))
|
|
3241
3241
|
return !1;
|
|
3242
3242
|
if (!e) {
|
|
3243
|
-
const
|
|
3244
|
-
|
|
3243
|
+
const o = u.push("link_open", "a", 1);
|
|
3244
|
+
o.attrs = [["href", l]], o.markup = "autolink", o.info = "auto";
|
|
3245
3245
|
const c = u.push("text", "", 0);
|
|
3246
|
-
c.content = u.md.normalizeLinkText(
|
|
3246
|
+
c.content = u.md.normalizeLinkText(a);
|
|
3247
3247
|
const i = u.push("link_close", "a", -1);
|
|
3248
3248
|
i.markup = "autolink", i.info = "auto";
|
|
3249
3249
|
}
|
|
3250
|
-
return u.pos +=
|
|
3250
|
+
return u.pos += a.length + 2, !0;
|
|
3251
3251
|
}
|
|
3252
|
-
if (Mr.test(
|
|
3253
|
-
const l = u.md.normalizeLink("mailto:" +
|
|
3252
|
+
if (Mr.test(a)) {
|
|
3253
|
+
const l = u.md.normalizeLink("mailto:" + a);
|
|
3254
3254
|
if (!u.md.validateLink(l))
|
|
3255
3255
|
return !1;
|
|
3256
3256
|
if (!e) {
|
|
3257
|
-
const
|
|
3258
|
-
|
|
3257
|
+
const o = u.push("link_open", "a", 1);
|
|
3258
|
+
o.attrs = [["href", l]], o.markup = "autolink", o.info = "auto";
|
|
3259
3259
|
const c = u.push("text", "", 0);
|
|
3260
|
-
c.content = u.md.normalizeLinkText(
|
|
3260
|
+
c.content = u.md.normalizeLinkText(a);
|
|
3261
3261
|
const i = u.push("link_close", "a", -1);
|
|
3262
3262
|
i.markup = "autolink", i.info = "auto";
|
|
3263
3263
|
}
|
|
3264
|
-
return u.pos +=
|
|
3264
|
+
return u.pos += a.length + 2, !0;
|
|
3265
3265
|
}
|
|
3266
3266
|
return !1;
|
|
3267
3267
|
}
|
|
@@ -3284,14 +3284,14 @@ function Ur(u, e) {
|
|
|
3284
3284
|
const r = u.src.charCodeAt(n + 1);
|
|
3285
3285
|
if (r !== 33 && r !== 63 && r !== 47 && !Pr(r))
|
|
3286
3286
|
return !1;
|
|
3287
|
-
const
|
|
3288
|
-
if (!
|
|
3287
|
+
const a = u.src.slice(n).match(xr);
|
|
3288
|
+
if (!a)
|
|
3289
3289
|
return !1;
|
|
3290
3290
|
if (!e) {
|
|
3291
3291
|
const l = u.push("html_inline", "", 0);
|
|
3292
|
-
l.content =
|
|
3292
|
+
l.content = a[0], zr(l.content) && u.linkLevel++, Lr(l.content) && u.linkLevel--;
|
|
3293
3293
|
}
|
|
3294
|
-
return u.pos +=
|
|
3294
|
+
return u.pos += a[0].length, !0;
|
|
3295
3295
|
}
|
|
3296
3296
|
const Nr = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, jr = /^&([a-z][a-z0-9]{1,31});/i;
|
|
3297
3297
|
function Zr(u, e) {
|
|
@@ -3299,24 +3299,24 @@ function Zr(u, e) {
|
|
|
3299
3299
|
if (u.src.charCodeAt(t) !== 38 || t + 1 >= n)
|
|
3300
3300
|
return !1;
|
|
3301
3301
|
if (u.src.charCodeAt(t + 1) === 35) {
|
|
3302
|
-
const
|
|
3303
|
-
if (
|
|
3302
|
+
const a = u.src.slice(t).match(Nr);
|
|
3303
|
+
if (a) {
|
|
3304
3304
|
if (!e) {
|
|
3305
|
-
const l =
|
|
3306
|
-
|
|
3305
|
+
const l = a[1][0].toLowerCase() === "x" ? parseInt(a[1].slice(1), 16) : parseInt(a[1], 10), o = u.push("text_special", "", 0);
|
|
3306
|
+
o.content = Ae(l) ? Lu(l) : Lu(65533), o.markup = a[0], o.info = "entity";
|
|
3307
3307
|
}
|
|
3308
|
-
return u.pos +=
|
|
3308
|
+
return u.pos += a[0].length, !0;
|
|
3309
3309
|
}
|
|
3310
3310
|
} else {
|
|
3311
|
-
const
|
|
3312
|
-
if (
|
|
3313
|
-
const l = I0(
|
|
3314
|
-
if (l !==
|
|
3311
|
+
const a = u.src.slice(t).match(jr);
|
|
3312
|
+
if (a) {
|
|
3313
|
+
const l = I0(a[0]);
|
|
3314
|
+
if (l !== a[0]) {
|
|
3315
3315
|
if (!e) {
|
|
3316
|
-
const
|
|
3317
|
-
|
|
3316
|
+
const o = u.push("text_special", "", 0);
|
|
3317
|
+
o.content = l, o.markup = a[0], o.info = "entity";
|
|
3318
3318
|
}
|
|
3319
|
-
return u.pos +=
|
|
3319
|
+
return u.pos += a[0].length, !0;
|
|
3320
3320
|
}
|
|
3321
3321
|
}
|
|
3322
3322
|
}
|
|
@@ -3327,26 +3327,26 @@ function u0(u) {
|
|
|
3327
3327
|
if (!t)
|
|
3328
3328
|
return;
|
|
3329
3329
|
let n = 0, r = -2;
|
|
3330
|
-
const
|
|
3330
|
+
const a = [];
|
|
3331
3331
|
for (let l = 0; l < t; l++) {
|
|
3332
|
-
const
|
|
3333
|
-
if (
|
|
3332
|
+
const o = u[l];
|
|
3333
|
+
if (a.push(0), (u[n].marker !== o.marker || r !== o.token - 1) && (n = l), r = o.token, o.length = o.length || 0, !o.close)
|
|
3334
3334
|
continue;
|
|
3335
|
-
e.hasOwnProperty(
|
|
3336
|
-
const c = e[
|
|
3337
|
-
let i = n -
|
|
3338
|
-
for (; i > c; i -=
|
|
3335
|
+
e.hasOwnProperty(o.marker) || (e[o.marker] = [-1, -1, -1, -1, -1, -1]);
|
|
3336
|
+
const c = e[o.marker][(o.open ? 3 : 0) + o.length % 3];
|
|
3337
|
+
let i = n - a[n] - 1, f = i;
|
|
3338
|
+
for (; i > c; i -= a[i] + 1) {
|
|
3339
3339
|
const s = u[i];
|
|
3340
|
-
if (s.marker ===
|
|
3340
|
+
if (s.marker === o.marker && s.open && s.end < 0) {
|
|
3341
3341
|
let p = !1;
|
|
3342
|
-
if ((s.close ||
|
|
3343
|
-
const m = i > 0 && !u[i - 1].open ?
|
|
3344
|
-
|
|
3342
|
+
if ((s.close || o.open) && (s.length + o.length) % 3 === 0 && (s.length % 3 !== 0 || o.length % 3 !== 0) && (p = !0), !p) {
|
|
3343
|
+
const m = i > 0 && !u[i - 1].open ? a[i - 1] + 1 : 0;
|
|
3344
|
+
a[l] = l - i + m, a[i] = m, o.open = !1, s.end = l, s.close = !1, f = -1, r = -2;
|
|
3345
3345
|
break;
|
|
3346
3346
|
}
|
|
3347
3347
|
}
|
|
3348
3348
|
}
|
|
3349
|
-
f !== -1 && (e[
|
|
3349
|
+
f !== -1 && (e[o.marker][(o.open ? 3 : 0) + (o.length || 0) % 3] = f);
|
|
3350
3350
|
}
|
|
3351
3351
|
}
|
|
3352
3352
|
function Hr(u) {
|
|
@@ -3357,20 +3357,20 @@ function Hr(u) {
|
|
|
3357
3357
|
}
|
|
3358
3358
|
function Gr(u) {
|
|
3359
3359
|
let e, t, n = 0;
|
|
3360
|
-
const r = u.tokens,
|
|
3361
|
-
for (e = t = 0; e <
|
|
3362
|
-
r[e].nesting < 0 && n--, r[e].level = n, r[e].nesting > 0 && n++, r[e].type === "text" && e + 1 <
|
|
3360
|
+
const r = u.tokens, a = u.tokens.length;
|
|
3361
|
+
for (e = t = 0; e < a; e++)
|
|
3362
|
+
r[e].nesting < 0 && n--, r[e].level = n, r[e].nesting > 0 && n++, r[e].type === "text" && e + 1 < a && r[e + 1].type === "text" ? r[e + 1].content = r[e].content + r[e + 1].content : (e !== t && (r[t] = r[e]), t++);
|
|
3363
3363
|
e !== t && (r.length = t);
|
|
3364
3364
|
}
|
|
3365
3365
|
const ne = [
|
|
3366
|
-
["text",
|
|
3366
|
+
["text", Er],
|
|
3367
3367
|
["linkify", Fr],
|
|
3368
3368
|
["newline", Ar],
|
|
3369
3369
|
["escape", wr],
|
|
3370
3370
|
["backticks", Tr],
|
|
3371
3371
|
["strikethrough", B0.tokenize],
|
|
3372
3372
|
["emphasis", z0.tokenize],
|
|
3373
|
-
["link",
|
|
3373
|
+
["link", $r],
|
|
3374
3374
|
["image", Rr],
|
|
3375
3375
|
["autolink", Br],
|
|
3376
3376
|
["html_inline", Ur],
|
|
@@ -3383,7 +3383,7 @@ const ne = [
|
|
|
3383
3383
|
// rule below merges unused segments back with the rest of the text
|
|
3384
3384
|
["fragments_join", Gr]
|
|
3385
3385
|
];
|
|
3386
|
-
function
|
|
3386
|
+
function $u() {
|
|
3387
3387
|
this.ruler = new tu();
|
|
3388
3388
|
for (let u = 0; u < ne.length; u++)
|
|
3389
3389
|
this.ruler.push(ne[u][0], ne[u][1]);
|
|
@@ -3391,33 +3391,33 @@ function Vu() {
|
|
|
3391
3391
|
for (let u = 0; u < re.length; u++)
|
|
3392
3392
|
this.ruler2.push(re[u][0], re[u][1]);
|
|
3393
3393
|
}
|
|
3394
|
-
|
|
3395
|
-
const e = u.pos, t = this.ruler.getRules(""), n = t.length, r = u.md.options.maxNesting,
|
|
3396
|
-
if (typeof
|
|
3397
|
-
u.pos =
|
|
3394
|
+
$u.prototype.skipToken = function(u) {
|
|
3395
|
+
const e = u.pos, t = this.ruler.getRules(""), n = t.length, r = u.md.options.maxNesting, a = u.cache;
|
|
3396
|
+
if (typeof a[e] < "u") {
|
|
3397
|
+
u.pos = a[e];
|
|
3398
3398
|
return;
|
|
3399
3399
|
}
|
|
3400
3400
|
let l = !1;
|
|
3401
3401
|
if (u.level < r) {
|
|
3402
|
-
for (let
|
|
3403
|
-
if (u.level++, l = t[
|
|
3402
|
+
for (let o = 0; o < n; o++)
|
|
3403
|
+
if (u.level++, l = t[o](u, !0), u.level--, l) {
|
|
3404
3404
|
if (e >= u.pos)
|
|
3405
3405
|
throw new Error("inline rule didn't increment state.pos");
|
|
3406
3406
|
break;
|
|
3407
3407
|
}
|
|
3408
3408
|
} else
|
|
3409
3409
|
u.pos = u.posMax;
|
|
3410
|
-
l || u.pos++,
|
|
3410
|
+
l || u.pos++, a[e] = u.pos;
|
|
3411
3411
|
};
|
|
3412
|
-
|
|
3412
|
+
$u.prototype.tokenize = function(u) {
|
|
3413
3413
|
const e = this.ruler.getRules(""), t = e.length, n = u.posMax, r = u.md.options.maxNesting;
|
|
3414
3414
|
for (; u.pos < n; ) {
|
|
3415
|
-
const
|
|
3415
|
+
const a = u.pos;
|
|
3416
3416
|
let l = !1;
|
|
3417
3417
|
if (u.level < r) {
|
|
3418
|
-
for (let
|
|
3419
|
-
if (l = e[
|
|
3420
|
-
if (
|
|
3418
|
+
for (let o = 0; o < t; o++)
|
|
3419
|
+
if (l = e[o](u, !1), l) {
|
|
3420
|
+
if (a >= u.pos)
|
|
3421
3421
|
throw new Error("inline rule didn't increment state.pos");
|
|
3422
3422
|
break;
|
|
3423
3423
|
}
|
|
@@ -3431,17 +3431,17 @@ Vu.prototype.tokenize = function(u) {
|
|
|
3431
3431
|
}
|
|
3432
3432
|
u.pending && u.pushPending();
|
|
3433
3433
|
};
|
|
3434
|
-
|
|
3434
|
+
$u.prototype.parse = function(u, e, t, n) {
|
|
3435
3435
|
const r = new this.State(u, e, t, n);
|
|
3436
3436
|
this.tokenize(r);
|
|
3437
|
-
const
|
|
3438
|
-
for (let
|
|
3439
|
-
o
|
|
3437
|
+
const a = this.ruler2.getRules(""), l = a.length;
|
|
3438
|
+
for (let o = 0; o < l; o++)
|
|
3439
|
+
a[o](r);
|
|
3440
3440
|
};
|
|
3441
|
-
|
|
3441
|
+
$u.prototype.State = Vu;
|
|
3442
3442
|
function Jr(u) {
|
|
3443
3443
|
const e = {};
|
|
3444
|
-
u = u || {}, e.src_Any = F0.source, e.src_Cc = A0.source, e.src_Z = T0.source, e.src_P =
|
|
3444
|
+
u = u || {}, e.src_Any = F0.source, e.src_Cc = A0.source, e.src_Z = T0.source, e.src_P = De.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|");
|
|
3445
3445
|
const t = "[><|]";
|
|
3446
3446
|
return e.src_pseudo_letter = "(?:(?!" + t + "|" + e.src_ZPCc + ")" + e.src_Any + ")", e.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", e.src_auth = "(?:(?:(?!" + e.src_ZCc + "|[@/\\[\\]()]).)+@)?", e.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", e.src_host_terminator = "(?=$|" + t + "|" + e.src_ZPCc + ")(?!" + (u["---"] ? "-(?!--)|" : "-|") + "_|:\\d|\\.-|\\.(?!$|" + e.src_ZPCc + "))", e.src_path = "(?:[/?#](?:(?!" + e.src_ZCc + "|" + t + `|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!` + e.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + e.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + e.src_ZCc + '|[}]).)*\\}|\\"(?:(?!' + e.src_ZCc + `|["]).)+\\"|\\'(?:(?!` + e.src_ZCc + "|[']).)+\\'|\\'(?=" + e.src_pseudo_letter + "|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + e.src_ZCc + "|[.]|$)|" + (u["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + // allow `,,,` in paths
|
|
3447
3447
|
",(?!" + e.src_ZCc + "|$)|;(?!" + e.src_ZCc + "|$)|\\!+(?!" + e.src_ZCc + "|[!]|$)|\\?(?!" + e.src_ZCc + "|[?]|$))+|\\/)?", e.src_email_name = '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*', e.src_xn = "xn--[a-z0-9\\-]{1,59}", e.src_domain_root = // Allow letters & digits (http://test1)
|
|
@@ -3486,7 +3486,7 @@ function Xr(u) {
|
|
|
3486
3486
|
return e || L0.hasOwnProperty(t);
|
|
3487
3487
|
}, !1);
|
|
3488
3488
|
}
|
|
3489
|
-
const
|
|
3489
|
+
const ua = {
|
|
3490
3490
|
"http:": {
|
|
3491
3491
|
validate: function(u, e, t) {
|
|
3492
3492
|
const n = u.slice(e);
|
|
@@ -3518,11 +3518,11 @@ const uo = {
|
|
|
3518
3518
|
)), t.re.mailto.test(n) ? n.match(t.re.mailto)[0].length : 0;
|
|
3519
3519
|
}
|
|
3520
3520
|
}
|
|
3521
|
-
},
|
|
3522
|
-
function
|
|
3521
|
+
}, ea = "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]", ta = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
|
|
3522
|
+
function na(u) {
|
|
3523
3523
|
u.__index__ = -1, u.__text_cache__ = "";
|
|
3524
3524
|
}
|
|
3525
|
-
function
|
|
3525
|
+
function ra(u) {
|
|
3526
3526
|
return function(e, t) {
|
|
3527
3527
|
const n = e.slice(t);
|
|
3528
3528
|
return u.test(n) ? n.match(u)[0].length : 0;
|
|
@@ -3535,53 +3535,53 @@ function t0() {
|
|
|
3535
3535
|
}
|
|
3536
3536
|
function Pu(u) {
|
|
3537
3537
|
const e = u.re = Jr(u.__opts__), t = u.__tlds__.slice();
|
|
3538
|
-
u.onCompile(), u.__tlds_replaced__ || t.push(
|
|
3539
|
-
function n(
|
|
3540
|
-
return
|
|
3538
|
+
u.onCompile(), u.__tlds_replaced__ || t.push(ea), t.push(e.src_xn), e.src_tlds = t.join("|");
|
|
3539
|
+
function n(o) {
|
|
3540
|
+
return o.replace("%TLDS%", e.src_tlds);
|
|
3541
3541
|
}
|
|
3542
3542
|
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");
|
|
3543
3543
|
const r = [];
|
|
3544
3544
|
u.__compiled__ = {};
|
|
3545
|
-
function o
|
|
3546
|
-
throw new Error('(LinkifyIt) Invalid schema "' +
|
|
3545
|
+
function a(o, c) {
|
|
3546
|
+
throw new Error('(LinkifyIt) Invalid schema "' + o + '": ' + c);
|
|
3547
3547
|
}
|
|
3548
|
-
Object.keys(u.__schemas__).forEach(function(
|
|
3549
|
-
const c = u.__schemas__[
|
|
3548
|
+
Object.keys(u.__schemas__).forEach(function(o) {
|
|
3549
|
+
const c = u.__schemas__[o];
|
|
3550
3550
|
if (c === null)
|
|
3551
3551
|
return;
|
|
3552
3552
|
const i = { validate: null, link: null };
|
|
3553
|
-
if (u.__compiled__[
|
|
3554
|
-
Yr(c.validate) ? i.validate =
|
|
3553
|
+
if (u.__compiled__[o] = i, Qr(c)) {
|
|
3554
|
+
Yr(c.validate) ? i.validate = ra(c.validate) : e0(c.validate) ? i.validate = c.validate : a(o, c), e0(c.normalize) ? i.normalize = c.normalize : c.normalize ? a(o, c) : i.normalize = t0();
|
|
3555
3555
|
return;
|
|
3556
3556
|
}
|
|
3557
3557
|
if (Wr(c)) {
|
|
3558
|
-
r.push(
|
|
3558
|
+
r.push(o);
|
|
3559
3559
|
return;
|
|
3560
3560
|
}
|
|
3561
|
-
o
|
|
3562
|
-
}), r.forEach(function(
|
|
3563
|
-
u.__compiled__[u.__schemas__[
|
|
3561
|
+
a(o, c);
|
|
3562
|
+
}), r.forEach(function(o) {
|
|
3563
|
+
u.__compiled__[u.__schemas__[o]] && (u.__compiled__[o].validate = u.__compiled__[u.__schemas__[o]].validate, u.__compiled__[o].normalize = u.__compiled__[u.__schemas__[o]].normalize);
|
|
3564
3564
|
}), u.__compiled__[""] = { validate: null, normalize: t0() };
|
|
3565
|
-
const l = Object.keys(u.__compiled__).filter(function(
|
|
3566
|
-
return
|
|
3565
|
+
const l = Object.keys(u.__compiled__).filter(function(o) {
|
|
3566
|
+
return o.length > 0 && u.__compiled__[o];
|
|
3567
3567
|
}).map(Kr).join("|");
|
|
3568
3568
|
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(
|
|
3569
3569
|
"(" + u.re.schema_test.source + ")|(" + u.re.host_fuzzy_test.source + ")|@",
|
|
3570
3570
|
"i"
|
|
3571
|
-
),
|
|
3571
|
+
), na(u);
|
|
3572
3572
|
}
|
|
3573
|
-
function
|
|
3573
|
+
function aa(u, e) {
|
|
3574
3574
|
const t = u.__index__, n = u.__last_index__, r = u.__text_cache__.slice(t, n);
|
|
3575
3575
|
this.schema = u.__schema__.toLowerCase(), this.index = t + e, this.lastIndex = n + e, this.raw = r, this.text = r, this.url = r;
|
|
3576
3576
|
}
|
|
3577
3577
|
function ce(u, e) {
|
|
3578
|
-
const t = new
|
|
3578
|
+
const t = new aa(u, e);
|
|
3579
3579
|
return u.__compiled__[t.schema].normalize(t, u), t;
|
|
3580
3580
|
}
|
|
3581
3581
|
function ru(u, e) {
|
|
3582
3582
|
if (!(this instanceof ru))
|
|
3583
3583
|
return new ru(u, e);
|
|
3584
|
-
e || Xr(u) && (e = u, u = {}), this.__opts__ = ie({}, L0, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = ie({},
|
|
3584
|
+
e || Xr(u) && (e = u, u = {}), this.__opts__ = ie({}, L0, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = ie({}, ua, u), this.__compiled__ = {}, this.__tlds__ = ta, this.__tlds_replaced__ = !1, this.re = {}, Pu(this);
|
|
3585
3585
|
}
|
|
3586
3586
|
ru.prototype.add = function(e, t) {
|
|
3587
3587
|
return this.__schemas__[e] = t, Pu(this), this;
|
|
@@ -3592,15 +3592,15 @@ ru.prototype.set = function(e) {
|
|
|
3592
3592
|
ru.prototype.test = function(e) {
|
|
3593
3593
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
|
3594
3594
|
return !1;
|
|
3595
|
-
let t, n, r,
|
|
3595
|
+
let t, n, r, a, l, o, c, i, f;
|
|
3596
3596
|
if (this.re.schema_test.test(e)) {
|
|
3597
3597
|
for (c = this.re.schema_search, c.lastIndex = 0; (t = c.exec(e)) !== null; )
|
|
3598
|
-
if (
|
|
3599
|
-
this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length +
|
|
3598
|
+
if (a = this.testSchemaAt(e, t[2], c.lastIndex), a) {
|
|
3599
|
+
this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + a;
|
|
3600
3600
|
break;
|
|
3601
3601
|
}
|
|
3602
3602
|
}
|
|
3603
|
-
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,
|
|
3603
|
+
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, o = r.index + r[0].length, (this.__index__ < 0 || l < this.__index__ || l === this.__index__ && o > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = l, this.__last_index__ = o))), this.__index__ >= 0;
|
|
3604
3604
|
};
|
|
3605
3605
|
ru.prototype.pretest = function(e) {
|
|
3606
3606
|
return this.re.pretest.test(e);
|
|
@@ -3627,8 +3627,8 @@ ru.prototype.matchAtStart = function(e) {
|
|
|
3627
3627
|
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n, ce(this, 0)) : null;
|
|
3628
3628
|
};
|
|
3629
3629
|
ru.prototype.tlds = function(e, t) {
|
|
3630
|
-
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r,
|
|
3631
|
-
return n !==
|
|
3630
|
+
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r, a) {
|
|
3631
|
+
return n !== a[r - 1];
|
|
3632
3632
|
}).reverse(), Pu(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, Pu(this), this);
|
|
3633
3633
|
};
|
|
3634
3634
|
ru.prototype.normalize = function(e) {
|
|
@@ -3636,15 +3636,15 @@ ru.prototype.normalize = function(e) {
|
|
|
3636
3636
|
};
|
|
3637
3637
|
ru.prototype.onCompile = function() {
|
|
3638
3638
|
};
|
|
3639
|
-
const yu = 2147483647, iu = 36, Se = 1, Iu = 26,
|
|
3639
|
+
const yu = 2147483647, iu = 36, Se = 1, Iu = 26, oa = 38, la = 700, P0 = 72, U0 = 128, N0 = "-", ia = /^xn--/, ca = /[^\0-\x7F]/, sa = /[\x2E\u3002\uFF0E\uFF61]/g, da = {
|
|
3640
3640
|
overflow: "Overflow: input needs wider integers to process",
|
|
3641
3641
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3642
3642
|
"invalid-input": "Invalid input"
|
|
3643
|
-
},
|
|
3643
|
+
}, ae = iu - Se, cu = Math.floor, oe = String.fromCharCode;
|
|
3644
3644
|
function pu(u) {
|
|
3645
|
-
throw new RangeError(
|
|
3645
|
+
throw new RangeError(da[u]);
|
|
3646
3646
|
}
|
|
3647
|
-
function
|
|
3647
|
+
function fa(u, e) {
|
|
3648
3648
|
const t = [];
|
|
3649
3649
|
let n = u.length;
|
|
3650
3650
|
for (; n--; )
|
|
@@ -3654,9 +3654,9 @@ function po(u, e) {
|
|
|
3654
3654
|
function j0(u, e) {
|
|
3655
3655
|
const t = u.split("@");
|
|
3656
3656
|
let n = "";
|
|
3657
|
-
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(
|
|
3658
|
-
const r = u.split("."),
|
|
3659
|
-
return n +
|
|
3657
|
+
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(sa, ".");
|
|
3658
|
+
const r = u.split("."), a = fa(r, e).join(".");
|
|
3659
|
+
return n + a;
|
|
3660
3660
|
}
|
|
3661
3661
|
function Z0(u) {
|
|
3662
3662
|
const e = [];
|
|
@@ -3665,83 +3665,83 @@ function Z0(u) {
|
|
|
3665
3665
|
for (; t < n; ) {
|
|
3666
3666
|
const r = u.charCodeAt(t++);
|
|
3667
3667
|
if (r >= 55296 && r <= 56319 && t < n) {
|
|
3668
|
-
const
|
|
3669
|
-
(
|
|
3668
|
+
const a = u.charCodeAt(t++);
|
|
3669
|
+
(a & 64512) == 56320 ? e.push(((r & 1023) << 10) + (a & 1023) + 65536) : (e.push(r), t--);
|
|
3670
3670
|
} else
|
|
3671
3671
|
e.push(r);
|
|
3672
3672
|
}
|
|
3673
3673
|
return e;
|
|
3674
3674
|
}
|
|
3675
|
-
const
|
|
3675
|
+
const pa = (u) => String.fromCodePoint(...u), ba = function(u) {
|
|
3676
3676
|
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : iu;
|
|
3677
3677
|
}, n0 = function(u, e) {
|
|
3678
3678
|
return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
|
|
3679
3679
|
}, H0 = function(u, e, t) {
|
|
3680
3680
|
let n = 0;
|
|
3681
|
-
for (u = t ? cu(u /
|
|
3682
|
-
u = cu(u /
|
|
3683
|
-
return cu(n + (
|
|
3681
|
+
for (u = t ? cu(u / la) : u >> 1, u += cu(u / e); u > ae * Iu >> 1; n += iu)
|
|
3682
|
+
u = cu(u / ae);
|
|
3683
|
+
return cu(n + (ae + 1) * u / (u + oa));
|
|
3684
3684
|
}, G0 = function(u) {
|
|
3685
3685
|
const e = [], t = u.length;
|
|
3686
|
-
let n = 0, r = U0,
|
|
3686
|
+
let n = 0, r = U0, a = P0, l = u.lastIndexOf(N0);
|
|
3687
3687
|
l < 0 && (l = 0);
|
|
3688
|
-
for (let
|
|
3689
|
-
u.charCodeAt(
|
|
3690
|
-
for (let
|
|
3688
|
+
for (let o = 0; o < l; ++o)
|
|
3689
|
+
u.charCodeAt(o) >= 128 && pu("not-basic"), e.push(u.charCodeAt(o));
|
|
3690
|
+
for (let o = l > 0 ? l + 1 : 0; o < t; ) {
|
|
3691
3691
|
const c = n;
|
|
3692
3692
|
for (let f = 1, s = iu; ; s += iu) {
|
|
3693
|
-
|
|
3694
|
-
const p =
|
|
3693
|
+
o >= t && pu("invalid-input");
|
|
3694
|
+
const p = ba(u.charCodeAt(o++));
|
|
3695
3695
|
p >= iu && pu("invalid-input"), p > cu((yu - n) / f) && pu("overflow"), n += p * f;
|
|
3696
|
-
const m = s <=
|
|
3696
|
+
const m = s <= a ? Se : s >= a + Iu ? Iu : s - a;
|
|
3697
3697
|
if (p < m)
|
|
3698
3698
|
break;
|
|
3699
3699
|
const d = iu - m;
|
|
3700
3700
|
f > cu(yu / d) && pu("overflow"), f *= d;
|
|
3701
3701
|
}
|
|
3702
3702
|
const i = e.length + 1;
|
|
3703
|
-
|
|
3703
|
+
a = H0(n - c, i, c == 0), cu(n / i) > yu - r && pu("overflow"), r += cu(n / i), n %= i, e.splice(n++, 0, r);
|
|
3704
3704
|
}
|
|
3705
3705
|
return String.fromCodePoint(...e);
|
|
3706
3706
|
}, J0 = function(u) {
|
|
3707
3707
|
const e = [];
|
|
3708
3708
|
u = Z0(u);
|
|
3709
3709
|
const t = u.length;
|
|
3710
|
-
let n = U0, r = 0,
|
|
3710
|
+
let n = U0, r = 0, a = P0;
|
|
3711
3711
|
for (const c of u)
|
|
3712
|
-
c < 128 && e.push(
|
|
3712
|
+
c < 128 && e.push(oe(c));
|
|
3713
3713
|
const l = e.length;
|
|
3714
|
-
let
|
|
3715
|
-
for (l && e.push(N0);
|
|
3714
|
+
let o = l;
|
|
3715
|
+
for (l && e.push(N0); o < t; ) {
|
|
3716
3716
|
let c = yu;
|
|
3717
3717
|
for (const f of u)
|
|
3718
3718
|
f >= n && f < c && (c = f);
|
|
3719
|
-
const i =
|
|
3719
|
+
const i = o + 1;
|
|
3720
3720
|
c - n > cu((yu - r) / i) && pu("overflow"), r += (c - n) * i, n = c;
|
|
3721
3721
|
for (const f of u)
|
|
3722
3722
|
if (f < n && ++r > yu && pu("overflow"), f === n) {
|
|
3723
3723
|
let s = r;
|
|
3724
3724
|
for (let p = iu; ; p += iu) {
|
|
3725
|
-
const m = p <=
|
|
3725
|
+
const m = p <= a ? Se : p >= a + Iu ? Iu : p - a;
|
|
3726
3726
|
if (s < m)
|
|
3727
3727
|
break;
|
|
3728
3728
|
const d = s - m, w = iu - m;
|
|
3729
3729
|
e.push(
|
|
3730
|
-
|
|
3730
|
+
oe(n0(m + d % w, 0))
|
|
3731
3731
|
), s = cu(d / w);
|
|
3732
3732
|
}
|
|
3733
|
-
e.push(
|
|
3733
|
+
e.push(oe(n0(s, 0))), a = H0(r, i, o === l), r = 0, ++o;
|
|
3734
3734
|
}
|
|
3735
3735
|
++r, ++n;
|
|
3736
3736
|
}
|
|
3737
3737
|
return e.join("");
|
|
3738
|
-
},
|
|
3738
|
+
}, ha = function(u) {
|
|
3739
3739
|
return j0(u, function(e) {
|
|
3740
|
-
return
|
|
3740
|
+
return ia.test(e) ? G0(e.slice(4).toLowerCase()) : e;
|
|
3741
3741
|
});
|
|
3742
|
-
},
|
|
3742
|
+
}, ma = function(u) {
|
|
3743
3743
|
return j0(u, function(e) {
|
|
3744
|
-
return
|
|
3744
|
+
return ca.test(e) ? "xn--" + J0(e) : e;
|
|
3745
3745
|
});
|
|
3746
3746
|
}, W0 = {
|
|
3747
3747
|
/**
|
|
@@ -3759,13 +3759,13 @@ const bo = (u) => String.fromCodePoint(...u), ho = function(u) {
|
|
|
3759
3759
|
*/
|
|
3760
3760
|
ucs2: {
|
|
3761
3761
|
decode: Z0,
|
|
3762
|
-
encode:
|
|
3762
|
+
encode: pa
|
|
3763
3763
|
},
|
|
3764
3764
|
decode: G0,
|
|
3765
3765
|
encode: J0,
|
|
3766
|
-
toASCII:
|
|
3767
|
-
toUnicode:
|
|
3768
|
-
},
|
|
3766
|
+
toASCII: ma,
|
|
3767
|
+
toUnicode: ha
|
|
3768
|
+
}, xa = {
|
|
3769
3769
|
options: {
|
|
3770
3770
|
// Enable HTML tags in source
|
|
3771
3771
|
html: !1,
|
|
@@ -3801,7 +3801,7 @@ const bo = (u) => String.fromCodePoint(...u), ho = function(u) {
|
|
|
3801
3801
|
block: {},
|
|
3802
3802
|
inline: {}
|
|
3803
3803
|
}
|
|
3804
|
-
},
|
|
3804
|
+
}, _a = {
|
|
3805
3805
|
options: {
|
|
3806
3806
|
// Enable HTML tags in source
|
|
3807
3807
|
html: !1,
|
|
@@ -3856,7 +3856,7 @@ const bo = (u) => String.fromCodePoint(...u), ho = function(u) {
|
|
|
3856
3856
|
]
|
|
3857
3857
|
}
|
|
3858
3858
|
}
|
|
3859
|
-
},
|
|
3859
|
+
}, ga = {
|
|
3860
3860
|
options: {
|
|
3861
3861
|
// Enable HTML tags in source
|
|
3862
3862
|
html: !0,
|
|
@@ -3930,18 +3930,18 @@ const bo = (u) => String.fromCodePoint(...u), ho = function(u) {
|
|
|
3930
3930
|
]
|
|
3931
3931
|
}
|
|
3932
3932
|
}
|
|
3933
|
-
},
|
|
3934
|
-
default:
|
|
3935
|
-
zero:
|
|
3936
|
-
commonmark:
|
|
3937
|
-
},
|
|
3938
|
-
function
|
|
3933
|
+
}, ka = {
|
|
3934
|
+
default: xa,
|
|
3935
|
+
zero: _a,
|
|
3936
|
+
commonmark: ga
|
|
3937
|
+
}, ya = /^(vbscript|javascript|file|data):/, va = /^data:image\/(gif|png|jpeg|webp);/;
|
|
3938
|
+
function Ca(u) {
|
|
3939
3939
|
const e = u.trim().toLowerCase();
|
|
3940
|
-
return
|
|
3940
|
+
return ya.test(e) ? va.test(e) : !0;
|
|
3941
3941
|
}
|
|
3942
3942
|
const Q0 = ["http:", "https:", "mailto:"];
|
|
3943
|
-
function
|
|
3944
|
-
const e =
|
|
3943
|
+
function Ea(u) {
|
|
3944
|
+
const e = Ee(u, !0);
|
|
3945
3945
|
if (e.hostname && (!e.protocol || Q0.indexOf(e.protocol) >= 0))
|
|
3946
3946
|
try {
|
|
3947
3947
|
e.hostname = W0.toASCII(e.hostname);
|
|
@@ -3949,8 +3949,8 @@ function Eo(u) {
|
|
|
3949
3949
|
}
|
|
3950
3950
|
return Ou(Ce(e));
|
|
3951
3951
|
}
|
|
3952
|
-
function
|
|
3953
|
-
const e =
|
|
3952
|
+
function Da(u) {
|
|
3953
|
+
const e = Ee(u, !0);
|
|
3954
3954
|
if (e.hostname && (!e.protocol || Q0.indexOf(e.protocol) >= 0))
|
|
3955
3955
|
try {
|
|
3956
3956
|
e.hostname = W0.toUnicode(e.hostname);
|
|
@@ -3958,19 +3958,19 @@ function Fo(u) {
|
|
|
3958
3958
|
}
|
|
3959
3959
|
return Cu(Ce(e), Cu.defaultChars + "%");
|
|
3960
3960
|
}
|
|
3961
|
-
function
|
|
3962
|
-
if (!(this instanceof
|
|
3963
|
-
return new
|
|
3964
|
-
e || Fe(u) || (e = u || {}, u = "default"), this.inline = new
|
|
3961
|
+
function au(u, e) {
|
|
3962
|
+
if (!(this instanceof au))
|
|
3963
|
+
return new au(u, e);
|
|
3964
|
+
e || Fe(u) || (e = u || {}, u = "default"), this.inline = new $u(), this.block = new Ju(), this.core = new we(), this.renderer = new Fu(), this.linkify = new ru(), this.validateLink = Ca, this.normalizeLink = Ea, this.normalizeLinkText = Da, this.utils = An, this.helpers = Hu({}, In), this.options = {}, this.configure(u), e && this.set(e);
|
|
3965
3965
|
}
|
|
3966
|
-
|
|
3966
|
+
au.prototype.set = function(u) {
|
|
3967
3967
|
return Hu(this.options, u), this;
|
|
3968
3968
|
};
|
|
3969
|
-
|
|
3969
|
+
au.prototype.configure = function(u) {
|
|
3970
3970
|
const e = this;
|
|
3971
3971
|
if (Fe(u)) {
|
|
3972
3972
|
const t = u;
|
|
3973
|
-
if (u =
|
|
3973
|
+
if (u = ka[t], !u)
|
|
3974
3974
|
throw new Error('Wrong `markdown-it` preset "' + t + '", check name');
|
|
3975
3975
|
}
|
|
3976
3976
|
if (!u)
|
|
@@ -3979,7 +3979,7 @@ ou.prototype.configure = function(u) {
|
|
|
3979
3979
|
u.components[t].rules && e[t].ruler.enableOnly(u.components[t].rules), u.components[t].rules2 && e[t].ruler2.enableOnly(u.components[t].rules2);
|
|
3980
3980
|
}), this;
|
|
3981
3981
|
};
|
|
3982
|
-
|
|
3982
|
+
au.prototype.enable = 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.enable(u, !0));
|
|
@@ -3991,7 +3991,7 @@ ou.prototype.enable = function(u, e) {
|
|
|
3991
3991
|
throw new Error("MarkdownIt. Failed to enable unknown rule(s): " + n);
|
|
3992
3992
|
return this;
|
|
3993
3993
|
};
|
|
3994
|
-
|
|
3994
|
+
au.prototype.disable = function(u, e) {
|
|
3995
3995
|
let t = [];
|
|
3996
3996
|
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(r) {
|
|
3997
3997
|
t = t.concat(this[r].ruler.disable(u, !0));
|
|
@@ -4003,27 +4003,27 @@ ou.prototype.disable = function(u, e) {
|
|
|
4003
4003
|
throw new Error("MarkdownIt. Failed to disable unknown rule(s): " + n);
|
|
4004
4004
|
return this;
|
|
4005
4005
|
};
|
|
4006
|
-
|
|
4006
|
+
au.prototype.use = function(u) {
|
|
4007
4007
|
const e = [this].concat(Array.prototype.slice.call(arguments, 1));
|
|
4008
4008
|
return u.apply(u, e), this;
|
|
4009
4009
|
};
|
|
4010
|
-
|
|
4010
|
+
au.prototype.parse = function(u, e) {
|
|
4011
4011
|
if (typeof u != "string")
|
|
4012
4012
|
throw new Error("Input data should be a String");
|
|
4013
4013
|
const t = new this.core.State(u, this, e);
|
|
4014
4014
|
return this.core.process(t), t.tokens;
|
|
4015
4015
|
};
|
|
4016
|
-
|
|
4016
|
+
au.prototype.render = function(u, e) {
|
|
4017
4017
|
return e = e || {}, this.renderer.render(this.parse(u, e), this.options, e);
|
|
4018
4018
|
};
|
|
4019
|
-
|
|
4019
|
+
au.prototype.parseInline = function(u, e) {
|
|
4020
4020
|
const t = new this.core.State(u, this, e);
|
|
4021
4021
|
return t.inlineMode = !0, this.core.process(t), t.tokens;
|
|
4022
4022
|
};
|
|
4023
|
-
|
|
4023
|
+
au.prototype.renderInline = function(u, e) {
|
|
4024
4024
|
return e = e || {}, this.renderer.render(this.parseInline(u, e), this.options, e);
|
|
4025
4025
|
};
|
|
4026
|
-
const
|
|
4026
|
+
const Fa = ["innerHTML"], Aa = {
|
|
4027
4027
|
__name: "FactorDescription",
|
|
4028
4028
|
props: /* @__PURE__ */ ju({
|
|
4029
4029
|
factorType: { type: String, default: "模版" },
|
|
@@ -4034,13 +4034,13 @@ const Ao = ["innerHTML"], wo = {
|
|
|
4034
4034
|
}),
|
|
4035
4035
|
emits: ["update:visible"],
|
|
4036
4036
|
setup(u) {
|
|
4037
|
-
const { request: e } = l0("stConfig"), t = new
|
|
4037
|
+
const { request: e } = l0("stConfig"), t = new au(), n = eu(""), r = Zu(u, "visible");
|
|
4038
4038
|
return d0(async () => {
|
|
4039
|
-
const { data:
|
|
4039
|
+
const { data: a } = await e.post("/middleLayer/special/getOss", { url: "resource/factor_select.md" }), l = new Uint8Array(a.data), c = new TextDecoder("utf-8").decode(l);
|
|
4040
4040
|
n.value = t.render(c);
|
|
4041
|
-
}), (
|
|
4042
|
-
const
|
|
4043
|
-
return
|
|
4041
|
+
}), (a, l) => {
|
|
4042
|
+
const o = lt, c = it, i = o0, f = ge;
|
|
4043
|
+
return E(), P(f, {
|
|
4044
4044
|
modelValue: r.value,
|
|
4045
4045
|
"onUpdate:modelValue": l[0] || (l[0] = (s) => r.value = s),
|
|
4046
4046
|
title: u.factorType === "模版" ? "因子说明" : "脚本编写说明",
|
|
@@ -4053,37 +4053,37 @@ const Ao = ["innerHTML"], wo = {
|
|
|
4053
4053
|
modal: !1,
|
|
4054
4054
|
"modal-penetrable": !0
|
|
4055
4055
|
}, {
|
|
4056
|
-
default:
|
|
4056
|
+
default: D(() => [
|
|
4057
4057
|
y(i, { height: "500px" }, {
|
|
4058
|
-
default:
|
|
4059
|
-
u.factorType === "模版" ? (
|
|
4058
|
+
default: D(() => [
|
|
4059
|
+
u.factorType === "模版" ? (E(), P(c, {
|
|
4060
4060
|
key: 0,
|
|
4061
4061
|
data: u.data,
|
|
4062
4062
|
border: "",
|
|
4063
4063
|
height: "500"
|
|
4064
4064
|
}, {
|
|
4065
|
-
default:
|
|
4066
|
-
y(
|
|
4065
|
+
default: D(() => [
|
|
4066
|
+
y(o, {
|
|
4067
4067
|
prop: "factorName",
|
|
4068
4068
|
label: "因子名称",
|
|
4069
4069
|
width: "200"
|
|
4070
4070
|
}),
|
|
4071
|
-
y(
|
|
4071
|
+
y(o, {
|
|
4072
4072
|
prop: "factorDesc",
|
|
4073
4073
|
label: "因子说明"
|
|
4074
4074
|
}),
|
|
4075
|
-
y(
|
|
4075
|
+
y(o, {
|
|
4076
4076
|
prop: "factorScoreDefine",
|
|
4077
4077
|
label: "分值定义"
|
|
4078
4078
|
})
|
|
4079
4079
|
]),
|
|
4080
4080
|
_: 1
|
|
4081
4081
|
}, 8, ["data"])) : U("", !0),
|
|
4082
|
-
u.factorType === "脚本" ? (
|
|
4082
|
+
u.factorType === "脚本" ? (E(), S("div", {
|
|
4083
4083
|
key: 1,
|
|
4084
4084
|
class: "markdown-body",
|
|
4085
4085
|
innerHTML: n.value
|
|
4086
|
-
}, null, 8,
|
|
4086
|
+
}, null, 8, Fa)) : U("", !0)
|
|
4087
4087
|
]),
|
|
4088
4088
|
_: 1
|
|
4089
4089
|
})
|
|
@@ -4093,7 +4093,7 @@ const Ao = ["innerHTML"], wo = {
|
|
|
4093
4093
|
};
|
|
4094
4094
|
}
|
|
4095
4095
|
};
|
|
4096
|
-
const Y0 = (u) => (xe("data-v-
|
|
4096
|
+
const Y0 = (u) => (xe("data-v-deab9c48"), u = u(), _e(), u), wa = { class: "factor-screen" }, Ta = { style: { "white-space": "pre-line" } }, Sa = { class: "custom-header" }, Ia = { class: "left" }, Oa = ["id"], Va = { class: "right" }, $a = { class: "form-row" }, Ra = { class: "index" }, Ma = { style: { display: "flex", "align-items": "center", width: "100%", height: "24px" } }, qa = /* @__PURE__ */ Y0(() => /* @__PURE__ */ V("span", null, "~", -1)), Ba = /* @__PURE__ */ Y0(() => /* @__PURE__ */ V("span", null, "&&代表and,||代表or", -1)), za = { class: "dialog-footer" }, La = {
|
|
4097
4097
|
__name: "index",
|
|
4098
4098
|
props: /* @__PURE__ */ ju({
|
|
4099
4099
|
config: {
|
|
@@ -4125,7 +4125,7 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4125
4125
|
}),
|
|
4126
4126
|
emits: ["update:data"],
|
|
4127
4127
|
setup(u) {
|
|
4128
|
-
const e = u, t = Zu(u, "data"), n = eu(), r = eu(),
|
|
4128
|
+
const e = u, t = Zu(u, "data"), n = eu(), r = eu(), a = eu(!1), l = eu(!1), o = eu("脚本"), c = eu(null), i = eu({
|
|
4129
4129
|
// 筛选因子列表
|
|
4130
4130
|
list: [
|
|
4131
4131
|
{
|
|
@@ -4150,9 +4150,9 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4150
4150
|
sqlEnable: b,
|
|
4151
4151
|
sqlValue: x,
|
|
4152
4152
|
factorSelectExpr: g
|
|
4153
|
-
}, i.value.list.length || m(),
|
|
4153
|
+
}, i.value.list.length || m(), a.value = !0;
|
|
4154
4154
|
}, s = () => {
|
|
4155
|
-
if (
|
|
4155
|
+
if (o.value === "模版")
|
|
4156
4156
|
c.value.validate((k) => {
|
|
4157
4157
|
const { list: b, sqlEnable: x, sqlValue: g } = i.value;
|
|
4158
4158
|
if (k) {
|
|
@@ -4168,7 +4168,7 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4168
4168
|
sqlEnable: x,
|
|
4169
4169
|
sqlValue: g,
|
|
4170
4170
|
factorSelectExpr: ""
|
|
4171
|
-
},
|
|
4171
|
+
}, a.value = !1;
|
|
4172
4172
|
}
|
|
4173
4173
|
});
|
|
4174
4174
|
else {
|
|
@@ -4180,7 +4180,7 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4180
4180
|
sqlEnable: 0,
|
|
4181
4181
|
sqlValue: null,
|
|
4182
4182
|
factorSelectExpr: k
|
|
4183
|
-
},
|
|
4183
|
+
}, a.value = !1;
|
|
4184
4184
|
}
|
|
4185
4185
|
}, p = (k) => {
|
|
4186
4186
|
i.value.list.splice(k, 1);
|
|
@@ -4228,7 +4228,7 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4228
4228
|
return _ += ` ${e.config.cycleOptions.find(({ value: I }) => I === b).label}`, _ += ` ${e.config.factorOptions.find(({ value: I }) => I === x).label}`, _ += ` ${g[0] || g[0] === 0 ? `${g[0]}分` : "∞"}`, _ += " ~", _ += ` ${g[1] || g[1] === 0 ? `${g[1]}分` : "∞"}`, _;
|
|
4229
4229
|
}
|
|
4230
4230
|
}
|
|
4231
|
-
},
|
|
4231
|
+
}, $ = (k, b) => {
|
|
4232
4232
|
switch (k) {
|
|
4233
4233
|
case "sqlTag": {
|
|
4234
4234
|
t.value = {
|
|
@@ -4288,12 +4288,12 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4288
4288
|
}
|
|
4289
4289
|
};
|
|
4290
4290
|
return vu(
|
|
4291
|
-
() =>
|
|
4291
|
+
() => a.value,
|
|
4292
4292
|
(k) => {
|
|
4293
4293
|
switch (k) {
|
|
4294
4294
|
case !0: {
|
|
4295
4295
|
Bu(() => {
|
|
4296
|
-
n.value.resize(), t.value.factorSelectExpr && (
|
|
4296
|
+
n.value.resize(), t.value.factorSelectExpr && (o.value = "脚本", n.value.setValue(t.value.factorSelectExpr), n.value.focusToEnd()), (t.value.sqlEnable && t.value.sqlValue || !t.value.sqlEnable && t.value.list.length) && (o.value = "模版");
|
|
4297
4297
|
});
|
|
4298
4298
|
break;
|
|
4299
4299
|
}
|
|
@@ -4304,7 +4304,7 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4304
4304
|
}
|
|
4305
4305
|
}
|
|
4306
4306
|
), vu(
|
|
4307
|
-
() =>
|
|
4307
|
+
() => o.value,
|
|
4308
4308
|
(k) => {
|
|
4309
4309
|
k === "模版" && r.value.close(), k === "脚本" && Bu(() => {
|
|
4310
4310
|
n.value.focusToEnd();
|
|
@@ -4313,24 +4313,24 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4313
4313
|
{ deep: !0 }
|
|
4314
4314
|
), (k, b) => {
|
|
4315
4315
|
var Ie;
|
|
4316
|
-
const x = ft, g = m0, _ =
|
|
4317
|
-
return
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
t.value.sqlEnable && t.value.sqlValue ? (
|
|
4316
|
+
const x = ft, g = m0, _ = Et, I = h0, v = vt, T = ot, F = D0, q = ve, B = qe("st-customFunction"), C = fe, N = pe, H = xt, xu = b0, _u = ye, gu = p0, K = _t, X = o0, Yu = ge, K0 = qe("st-varSelectDialog");
|
|
4317
|
+
return E(), S(z, null, [
|
|
4318
|
+
V("div", wa, [
|
|
4319
|
+
V("div", null, [
|
|
4320
|
+
t.value.sqlEnable && t.value.sqlValue ? (E(), P(g, {
|
|
4321
4321
|
key: 0,
|
|
4322
4322
|
closable: "",
|
|
4323
4323
|
type: "info",
|
|
4324
4324
|
title: t.value.sqlValue,
|
|
4325
|
-
onClose: b[0] || (b[0] = (M) =>
|
|
4325
|
+
onClose: b[0] || (b[0] = (M) => $("sqlTag"))
|
|
4326
4326
|
}, {
|
|
4327
|
-
default:
|
|
4327
|
+
default: D(() => [
|
|
4328
4328
|
y(x, {
|
|
4329
4329
|
type: "info",
|
|
4330
4330
|
truncated: "",
|
|
4331
4331
|
style: { "max-width": "500px" }
|
|
4332
4332
|
}, {
|
|
4333
|
-
default:
|
|
4333
|
+
default: D(() => [
|
|
4334
4334
|
L(uu(t.value.sqlValue), 1)
|
|
4335
4335
|
]),
|
|
4336
4336
|
_: 1
|
|
@@ -4338,35 +4338,35 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4338
4338
|
]),
|
|
4339
4339
|
_: 1
|
|
4340
4340
|
}, 8, ["title"])) : U("", !0),
|
|
4341
|
-
!t.value.sqlEnable && t.value.list.length ? (
|
|
4341
|
+
!t.value.sqlEnable && t.value.list.length ? (E(!0), S(z, { key: 1 }, Z(t.value.list, (M, nu) => (E(), P(g, {
|
|
4342
4342
|
closable: "",
|
|
4343
4343
|
type: "info",
|
|
4344
|
-
onClose: (R) =>
|
|
4344
|
+
onClose: (R) => $("factorTag", nu)
|
|
4345
4345
|
}, {
|
|
4346
|
-
default:
|
|
4346
|
+
default: D(() => [
|
|
4347
4347
|
L(uu(w(M)), 1)
|
|
4348
4348
|
]),
|
|
4349
4349
|
_: 2
|
|
4350
4350
|
}, 1032, ["onClose"]))), 256)) : U("", !0),
|
|
4351
|
-
t.value.factorSelectExpr ? (
|
|
4351
|
+
t.value.factorSelectExpr ? (E(), P(_, {
|
|
4352
4352
|
key: 2,
|
|
4353
4353
|
width: "500",
|
|
4354
4354
|
placement: "bottom-start"
|
|
4355
4355
|
}, {
|
|
4356
|
-
reference:
|
|
4356
|
+
reference: D(() => [
|
|
4357
4357
|
y(g, {
|
|
4358
4358
|
closable: "",
|
|
4359
4359
|
type: "info",
|
|
4360
|
-
onClose: b[1] || (b[1] = (M) =>
|
|
4360
|
+
onClose: b[1] || (b[1] = (M) => $("scriptTag"))
|
|
4361
4361
|
}, {
|
|
4362
|
-
default:
|
|
4362
|
+
default: D(() => [
|
|
4363
4363
|
L(" 脚本模式 ")
|
|
4364
4364
|
]),
|
|
4365
4365
|
_: 1
|
|
4366
4366
|
})
|
|
4367
4367
|
]),
|
|
4368
|
-
default:
|
|
4369
|
-
|
|
4368
|
+
default: D(() => [
|
|
4369
|
+
V("div", Ta, uu(t.value.factorSelectExpr), 1)
|
|
4370
4370
|
]),
|
|
4371
4371
|
_: 1
|
|
4372
4372
|
})) : U("", !0),
|
|
@@ -4378,7 +4378,7 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4378
4378
|
icon: O(Xu),
|
|
4379
4379
|
onClick: f
|
|
4380
4380
|
}, {
|
|
4381
|
-
default:
|
|
4381
|
+
default: D(() => [
|
|
4382
4382
|
L(" 添加因子 ")
|
|
4383
4383
|
]),
|
|
4384
4384
|
_: 1
|
|
@@ -4386,8 +4386,8 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4386
4386
|
]),
|
|
4387
4387
|
y(Yu, {
|
|
4388
4388
|
"modal-class": "factor-dialog",
|
|
4389
|
-
modelValue:
|
|
4390
|
-
"onUpdate:modelValue": b[8] || (b[8] = (M) =>
|
|
4389
|
+
modelValue: a.value,
|
|
4390
|
+
"onUpdate:modelValue": b[8] || (b[8] = (M) => a.value = M),
|
|
4391
4391
|
width: "1000",
|
|
4392
4392
|
"align-center": "",
|
|
4393
4393
|
"destroy-on-close": "",
|
|
@@ -4397,23 +4397,23 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4397
4397
|
"modal-penetrable": !0,
|
|
4398
4398
|
"show-close": !1
|
|
4399
4399
|
}, {
|
|
4400
|
-
header:
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4400
|
+
header: D(({ titleId: M, titleClass: nu }) => [
|
|
4401
|
+
V("div", Sa, [
|
|
4402
|
+
V("div", Ia, [
|
|
4403
|
+
V("span", {
|
|
4404
4404
|
id: M,
|
|
4405
4405
|
class: lu(nu)
|
|
4406
|
-
}, " 因子筛选 ", 10,
|
|
4406
|
+
}, " 因子筛选 ", 10, Oa),
|
|
4407
4407
|
y(T, {
|
|
4408
4408
|
effect: "dark",
|
|
4409
4409
|
content: "点击查看: 因子使用说明",
|
|
4410
4410
|
placement: "right"
|
|
4411
4411
|
}, {
|
|
4412
|
-
default:
|
|
4412
|
+
default: D(() => [
|
|
4413
4413
|
y(v, {
|
|
4414
4414
|
onClick: b[2] || (b[2] = (R) => l.value = !0)
|
|
4415
4415
|
}, {
|
|
4416
|
-
default:
|
|
4416
|
+
default: D(() => [
|
|
4417
4417
|
y(O(gt))
|
|
4418
4418
|
]),
|
|
4419
4419
|
_: 1
|
|
@@ -4422,11 +4422,11 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4422
4422
|
_: 1
|
|
4423
4423
|
}),
|
|
4424
4424
|
y(q, {
|
|
4425
|
-
modelValue:
|
|
4426
|
-
"onUpdate:modelValue": b[3] || (b[3] = (R) =>
|
|
4425
|
+
modelValue: o.value,
|
|
4426
|
+
"onUpdate:modelValue": b[3] || (b[3] = (R) => o.value = R),
|
|
4427
4427
|
size: "small"
|
|
4428
4428
|
}, {
|
|
4429
|
-
default:
|
|
4429
|
+
default: D(() => [
|
|
4430
4430
|
y(F, {
|
|
4431
4431
|
label: "模版",
|
|
4432
4432
|
value: "模版"
|
|
@@ -4442,25 +4442,25 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4442
4442
|
size: "small",
|
|
4443
4443
|
onInsert: h
|
|
4444
4444
|
}, null, 512), [
|
|
4445
|
-
[f0,
|
|
4445
|
+
[f0, o.value === "脚本"]
|
|
4446
4446
|
])
|
|
4447
4447
|
]),
|
|
4448
|
-
|
|
4449
|
-
|
|
4448
|
+
V("div", Va, [
|
|
4449
|
+
o.value === "脚本" ? (E(), P(I, {
|
|
4450
4450
|
key: 0,
|
|
4451
4451
|
size: "small",
|
|
4452
4452
|
type: "primary",
|
|
4453
4453
|
onClick: A
|
|
4454
4454
|
}, {
|
|
4455
|
-
default:
|
|
4455
|
+
default: D(() => [
|
|
4456
4456
|
L("变量选择器")
|
|
4457
4457
|
]),
|
|
4458
4458
|
_: 1
|
|
4459
4459
|
})) : U("", !0),
|
|
4460
4460
|
y(v, {
|
|
4461
|
-
onClick: b[4] || (b[4] = (R) =>
|
|
4461
|
+
onClick: b[4] || (b[4] = (R) => a.value = !1)
|
|
4462
4462
|
}, {
|
|
4463
|
-
default:
|
|
4463
|
+
default: D(() => [
|
|
4464
4464
|
y(O(kt))
|
|
4465
4465
|
]),
|
|
4466
4466
|
_: 1
|
|
@@ -4468,49 +4468,49 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4468
4468
|
])
|
|
4469
4469
|
])
|
|
4470
4470
|
]),
|
|
4471
|
-
footer:
|
|
4472
|
-
|
|
4471
|
+
footer: D(() => [
|
|
4472
|
+
V("div", za, [
|
|
4473
4473
|
y(I, {
|
|
4474
4474
|
type: "primary",
|
|
4475
4475
|
onClick: s
|
|
4476
4476
|
}, {
|
|
4477
|
-
default:
|
|
4477
|
+
default: D(() => [
|
|
4478
4478
|
L("确定")
|
|
4479
4479
|
]),
|
|
4480
4480
|
_: 1
|
|
4481
4481
|
})
|
|
4482
4482
|
])
|
|
4483
4483
|
]),
|
|
4484
|
-
default:
|
|
4485
|
-
|
|
4484
|
+
default: D(() => [
|
|
4485
|
+
o.value === "模版" ? (E(), P(X, {
|
|
4486
4486
|
key: 0,
|
|
4487
4487
|
height: "400px"
|
|
4488
4488
|
}, {
|
|
4489
|
-
default:
|
|
4489
|
+
default: D(() => [
|
|
4490
4490
|
y(K, {
|
|
4491
4491
|
ref_key: "dialogFormRef",
|
|
4492
4492
|
ref: c,
|
|
4493
4493
|
model: i.value
|
|
4494
4494
|
}, {
|
|
4495
|
-
default:
|
|
4496
|
-
(
|
|
4497
|
-
|
|
4498
|
-
M.key === "compare" ? (
|
|
4499
|
-
u.config.cycleShow ? (
|
|
4495
|
+
default: D(() => [
|
|
4496
|
+
(E(!0), S(z, null, Z(i.value.list, (M, nu) => (E(), S("div", $a, [
|
|
4497
|
+
V("span", Ra, uu(`条件${nu + 1}`), 1),
|
|
4498
|
+
M.key === "compare" ? (E(), S(z, { key: 0 }, [
|
|
4499
|
+
u.config.cycleShow ? (E(), P(H, {
|
|
4500
4500
|
key: 0,
|
|
4501
4501
|
prop: "list." + nu + ".cycle",
|
|
4502
4502
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
4503
4503
|
style: { width: "100px", "margin-right": "10px" }
|
|
4504
4504
|
}, {
|
|
4505
|
-
default:
|
|
4505
|
+
default: D(() => [
|
|
4506
4506
|
y(N, {
|
|
4507
4507
|
modelValue: M.cycle,
|
|
4508
4508
|
"onUpdate:modelValue": (R) => M.cycle = R,
|
|
4509
4509
|
placeholder: "选择周期",
|
|
4510
4510
|
size: "small"
|
|
4511
4511
|
}, {
|
|
4512
|
-
default:
|
|
4513
|
-
(
|
|
4512
|
+
default: D(() => [
|
|
4513
|
+
(E(!0), S(z, null, Z(u.config.cycleOptions, ({ label: R, value: G }) => (E(), P(C, {
|
|
4514
4514
|
label: R,
|
|
4515
4515
|
value: G,
|
|
4516
4516
|
key: G
|
|
@@ -4526,7 +4526,7 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4526
4526
|
rules: { required: !0, message: "因子不能为空", trigger: "blur" },
|
|
4527
4527
|
style: { width: "132px", "margin-right": "10px" }
|
|
4528
4528
|
}, {
|
|
4529
|
-
default:
|
|
4529
|
+
default: D(() => [
|
|
4530
4530
|
y(N, {
|
|
4531
4531
|
modelValue: M.factor,
|
|
4532
4532
|
"onUpdate:modelValue": (R) => M.factor = R,
|
|
@@ -4535,10 +4535,10 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4535
4535
|
size: "small",
|
|
4536
4536
|
"no-match-text": "无匹配数据"
|
|
4537
4537
|
}, {
|
|
4538
|
-
default:
|
|
4538
|
+
default: D(() => {
|
|
4539
4539
|
var R;
|
|
4540
4540
|
return [
|
|
4541
|
-
(
|
|
4541
|
+
(E(!0), S(z, null, Z((R = u.config.factorOptions) == null ? void 0 : R.filter((G) => [4].includes(G.type)), ({ label: G, value: fu }) => (E(), P(C, {
|
|
4542
4542
|
label: G,
|
|
4543
4543
|
value: fu,
|
|
4544
4544
|
key: fu
|
|
@@ -4551,14 +4551,14 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4551
4551
|
_: 2
|
|
4552
4552
|
}, 1032, ["prop"]),
|
|
4553
4553
|
y(H, { style: { width: "52px", "margin-right": "10px" } }, {
|
|
4554
|
-
default:
|
|
4554
|
+
default: D(() => [
|
|
4555
4555
|
y(N, {
|
|
4556
4556
|
modelValue: M.compareType,
|
|
4557
4557
|
"onUpdate:modelValue": (R) => M.compareType = R,
|
|
4558
4558
|
size: "small"
|
|
4559
4559
|
}, {
|
|
4560
|
-
default:
|
|
4561
|
-
(
|
|
4560
|
+
default: D(() => [
|
|
4561
|
+
(E(), S(z, null, Z([">", ">=", "<", "<="], (R) => y(C, {
|
|
4562
4562
|
label: R,
|
|
4563
4563
|
value: R,
|
|
4564
4564
|
key: R
|
|
@@ -4569,21 +4569,21 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4569
4569
|
]),
|
|
4570
4570
|
_: 2
|
|
4571
4571
|
}, 1024),
|
|
4572
|
-
u.config.cycleShow ? (
|
|
4572
|
+
u.config.cycleShow ? (E(), P(H, {
|
|
4573
4573
|
key: 1,
|
|
4574
4574
|
prop: "list." + nu + ".cycle2",
|
|
4575
4575
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
4576
4576
|
style: { width: "100px", "margin-right": "10px" }
|
|
4577
4577
|
}, {
|
|
4578
|
-
default:
|
|
4578
|
+
default: D(() => [
|
|
4579
4579
|
y(N, {
|
|
4580
4580
|
modelValue: M.cycle2,
|
|
4581
4581
|
"onUpdate:modelValue": (R) => M.cycle2 = R,
|
|
4582
4582
|
placeholder: "选择周期",
|
|
4583
4583
|
size: "small"
|
|
4584
4584
|
}, {
|
|
4585
|
-
default:
|
|
4586
|
-
(
|
|
4585
|
+
default: D(() => [
|
|
4586
|
+
(E(!0), S(z, null, Z(u.config.cycleOptions, ({ label: R, value: G }) => (E(), P(C, {
|
|
4587
4587
|
label: R,
|
|
4588
4588
|
value: G,
|
|
4589
4589
|
key: G
|
|
@@ -4599,7 +4599,7 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4599
4599
|
rules: { required: !0, message: "因子不能为空", trigger: "blur" },
|
|
4600
4600
|
style: { width: "132px", "margin-right": "10px" }
|
|
4601
4601
|
}, {
|
|
4602
|
-
default:
|
|
4602
|
+
default: D(() => [
|
|
4603
4603
|
y(N, {
|
|
4604
4604
|
modelValue: M.factor2,
|
|
4605
4605
|
"onUpdate:modelValue": (R) => M.factor2 = R,
|
|
@@ -4608,10 +4608,10 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4608
4608
|
size: "small",
|
|
4609
4609
|
"no-match-text": "无匹配数据"
|
|
4610
4610
|
}, {
|
|
4611
|
-
default:
|
|
4611
|
+
default: D(() => {
|
|
4612
4612
|
var R;
|
|
4613
4613
|
return [
|
|
4614
|
-
(
|
|
4614
|
+
(E(!0), S(z, null, Z((R = u.config.factorOptions) == null ? void 0 : R.filter((G) => [4].includes(G.type)), ({ label: G, value: fu }) => (E(), P(C, {
|
|
4615
4615
|
label: G,
|
|
4616
4616
|
value: fu,
|
|
4617
4617
|
key: fu
|
|
@@ -4623,22 +4623,22 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4623
4623
|
]),
|
|
4624
4624
|
_: 2
|
|
4625
4625
|
}, 1032, ["prop"])
|
|
4626
|
-
], 64)) : (
|
|
4627
|
-
u.config.cycleShow ? (
|
|
4626
|
+
], 64)) : (E(), S(z, { key: 1 }, [
|
|
4627
|
+
u.config.cycleShow ? (E(), P(H, {
|
|
4628
4628
|
key: 0,
|
|
4629
4629
|
prop: "list." + nu + ".cycle",
|
|
4630
4630
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
4631
4631
|
style: { width: "100px", "margin-right": "10px" }
|
|
4632
4632
|
}, {
|
|
4633
|
-
default:
|
|
4633
|
+
default: D(() => [
|
|
4634
4634
|
y(N, {
|
|
4635
4635
|
modelValue: M.cycle,
|
|
4636
4636
|
"onUpdate:modelValue": (R) => M.cycle = R,
|
|
4637
4637
|
placeholder: "选择周期",
|
|
4638
4638
|
size: "small"
|
|
4639
4639
|
}, {
|
|
4640
|
-
default:
|
|
4641
|
-
(
|
|
4640
|
+
default: D(() => [
|
|
4641
|
+
(E(!0), S(z, null, Z(u.config.cycleOptions, ({ label: R, value: G }) => (E(), P(C, {
|
|
4642
4642
|
label: R,
|
|
4643
4643
|
value: G,
|
|
4644
4644
|
key: G
|
|
@@ -4654,7 +4654,7 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4654
4654
|
rules: { required: !0, message: "因子不能为空", trigger: "blur" },
|
|
4655
4655
|
style: { width: "194px", "margin-right": "10px" }
|
|
4656
4656
|
}, {
|
|
4657
|
-
default:
|
|
4657
|
+
default: D(() => [
|
|
4658
4658
|
y(N, {
|
|
4659
4659
|
modelValue: M.factor,
|
|
4660
4660
|
"onUpdate:modelValue": (R) => M.factor = R,
|
|
@@ -4663,10 +4663,10 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4663
4663
|
size: "small",
|
|
4664
4664
|
"no-match-text": "无匹配数据"
|
|
4665
4665
|
}, {
|
|
4666
|
-
default:
|
|
4666
|
+
default: D(() => {
|
|
4667
4667
|
var R;
|
|
4668
4668
|
return [
|
|
4669
|
-
(
|
|
4669
|
+
(E(!0), S(z, null, Z((R = u.config.factorOptions) == null ? void 0 : R.filter((G) => [1, 3].includes(G.type)), ({ label: G, value: fu }) => (E(), P(C, {
|
|
4670
4670
|
label: G,
|
|
4671
4671
|
value: fu,
|
|
4672
4672
|
key: fu
|
|
@@ -4683,15 +4683,15 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4683
4683
|
rules: { validator: O(Bt), trigger: "blur" },
|
|
4684
4684
|
style: { width: "200px", "margin-right": "10px" }
|
|
4685
4685
|
}, {
|
|
4686
|
-
default:
|
|
4687
|
-
|
|
4686
|
+
default: D(() => [
|
|
4687
|
+
V("div", Ma, [
|
|
4688
4688
|
y(xu, {
|
|
4689
4689
|
modelValue: M.score[0],
|
|
4690
4690
|
"onUpdate:modelValue": (R) => M.score[0] = R,
|
|
4691
4691
|
size: "small",
|
|
4692
4692
|
"controls-position": "right"
|
|
4693
4693
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
4694
|
-
|
|
4694
|
+
qa,
|
|
4695
4695
|
y(xu, {
|
|
4696
4696
|
modelValue: M.score[1],
|
|
4697
4697
|
"onUpdate:modelValue": (R) => M.score[1] = R,
|
|
@@ -4706,7 +4706,7 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4706
4706
|
y(v, {
|
|
4707
4707
|
onClick: (R) => p(nu)
|
|
4708
4708
|
}, {
|
|
4709
|
-
default:
|
|
4709
|
+
default: D(() => [
|
|
4710
4710
|
y(O(yt))
|
|
4711
4711
|
]),
|
|
4712
4712
|
_: 2
|
|
@@ -4720,7 +4720,7 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4720
4720
|
onClick: m,
|
|
4721
4721
|
style: { "margin-bottom": "10px" }
|
|
4722
4722
|
}, {
|
|
4723
|
-
default:
|
|
4723
|
+
default: D(() => [
|
|
4724
4724
|
L("添加因子")
|
|
4725
4725
|
]),
|
|
4726
4726
|
_: 1
|
|
@@ -4733,19 +4733,19 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4733
4733
|
onClick: b[5] || (b[5] = (M) => m("compare")),
|
|
4734
4734
|
style: { "margin-bottom": "10px" }
|
|
4735
4735
|
}, {
|
|
4736
|
-
default:
|
|
4736
|
+
default: D(() => [
|
|
4737
4737
|
L("添加因子对比")
|
|
4738
4738
|
]),
|
|
4739
4739
|
_: 1
|
|
4740
4740
|
}, 8, ["icon"]),
|
|
4741
|
-
u.config.sqlShow ? (
|
|
4741
|
+
u.config.sqlShow ? (E(), S(z, { key: 0 }, [
|
|
4742
4742
|
y(H, { label: "SQL功能: " }, {
|
|
4743
|
-
default:
|
|
4743
|
+
default: D(() => [
|
|
4744
4744
|
y(q, {
|
|
4745
4745
|
modelValue: i.value.sqlEnable,
|
|
4746
4746
|
"onUpdate:modelValue": b[6] || (b[6] = (M) => i.value.sqlEnable = M)
|
|
4747
4747
|
}, {
|
|
4748
|
-
default:
|
|
4748
|
+
default: D(() => [
|
|
4749
4749
|
y(_u, {
|
|
4750
4750
|
label: "关闭",
|
|
4751
4751
|
value: 0
|
|
@@ -4757,14 +4757,14 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4757
4757
|
]),
|
|
4758
4758
|
_: 1
|
|
4759
4759
|
}, 8, ["modelValue"]),
|
|
4760
|
-
i.value.sqlEnable ? (
|
|
4760
|
+
i.value.sqlEnable ? (E(), P(I, {
|
|
4761
4761
|
key: 0,
|
|
4762
4762
|
type: "primary",
|
|
4763
4763
|
size: "small",
|
|
4764
4764
|
onClick: d,
|
|
4765
4765
|
style: { "margin-left": "auto" }
|
|
4766
4766
|
}, {
|
|
4767
|
-
default:
|
|
4767
|
+
default: D(() => [
|
|
4768
4768
|
L("生成SQL")
|
|
4769
4769
|
]),
|
|
4770
4770
|
_: 1
|
|
@@ -4772,7 +4772,7 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4772
4772
|
]),
|
|
4773
4773
|
_: 1
|
|
4774
4774
|
}),
|
|
4775
|
-
i.value.sqlEnable ? (
|
|
4775
|
+
i.value.sqlEnable ? (E(), S(z, { key: 0 }, [
|
|
4776
4776
|
y(gu, {
|
|
4777
4777
|
modelValue: i.value.sqlValue,
|
|
4778
4778
|
"onUpdate:modelValue": b[7] || (b[7] = (M) => i.value.sqlValue = M),
|
|
@@ -4780,7 +4780,7 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4780
4780
|
type: "textarea",
|
|
4781
4781
|
style: { "margin-bottom": "10px" }
|
|
4782
4782
|
}, null, 8, ["modelValue"]),
|
|
4783
|
-
|
|
4783
|
+
Ba
|
|
4784
4784
|
], 64)) : U("", !0)
|
|
4785
4785
|
], 64)) : U("", !0)
|
|
4786
4786
|
]),
|
|
@@ -4789,8 +4789,8 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4789
4789
|
]),
|
|
4790
4790
|
_: 1
|
|
4791
4791
|
})) : U("", !0),
|
|
4792
|
-
|
|
4793
|
-
style: s0([{ width: "968px", height: "400px" },
|
|
4792
|
+
V("div", {
|
|
4793
|
+
style: s0([{ width: "968px", height: "400px" }, o.value === "脚本" ? null : { position: "fixed", top: "-400px", zIndex: -1, visibility: "hidden", pointerEvents: "none" }])
|
|
4794
4794
|
}, [
|
|
4795
4795
|
y(Ct, {
|
|
4796
4796
|
ref_key: "monacoEditorRef",
|
|
@@ -4803,10 +4803,10 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4803
4803
|
_: 1
|
|
4804
4804
|
}, 8, ["modelValue"])
|
|
4805
4805
|
]),
|
|
4806
|
-
y(
|
|
4806
|
+
y(Aa, {
|
|
4807
4807
|
visible: l.value,
|
|
4808
4808
|
"onUpdate:visible": b[9] || (b[9] = (M) => l.value = M),
|
|
4809
|
-
factorType:
|
|
4809
|
+
factorType: o.value,
|
|
4810
4810
|
data: (Ie = u.config.factorDescriptions) == null ? void 0 : Ie.filter((M) => [1, 3].includes(M.type))
|
|
4811
4811
|
}, null, 8, ["visible", "factorType", "data"]),
|
|
4812
4812
|
y(K0, {
|
|
@@ -4816,20 +4816,20 @@ const Y0 = (u) => (xe("data-v-f1bea35b"), u = u(), _e(), u), To = { class: "fact
|
|
|
4816
4816
|
], 64);
|
|
4817
4817
|
};
|
|
4818
4818
|
}
|
|
4819
|
-
},
|
|
4820
|
-
const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u),
|
|
4819
|
+
}, Pa = /* @__PURE__ */ ke(La, [["__scopeId", "data-v-deab9c48"]]);
|
|
4820
|
+
const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), Ua = {
|
|
4821
4821
|
key: 0,
|
|
4822
4822
|
class: "common-indicator"
|
|
4823
|
-
},
|
|
4824
|
-
/* @__PURE__ */
|
|
4825
|
-
/* @__PURE__ */
|
|
4826
|
-
], -1)),
|
|
4823
|
+
}, Na = { class: "indicator" }, ja = /* @__PURE__ */ Qu(() => /* @__PURE__ */ V("div", { class: "title" }, [
|
|
4824
|
+
/* @__PURE__ */ V("span", null, "常用指标: "),
|
|
4825
|
+
/* @__PURE__ */ V("span", null, "不限")
|
|
4826
|
+
], -1)), Za = { class: "options" }, Ha = ["onClick"], Ga = { class: "tags" }, Ja = ["onClick"], Wa = { style: { "font-size": "18px" } }, Qa = {
|
|
4827
4827
|
key: 0,
|
|
4828
4828
|
class: "out-box"
|
|
4829
|
-
},
|
|
4829
|
+
}, Ya = /* @__PURE__ */ Qu(() => /* @__PURE__ */ V("span", null, "自定义: ", -1)), Ka = {
|
|
4830
4830
|
key: 0,
|
|
4831
4831
|
class: "convenient-option-box"
|
|
4832
|
-
},
|
|
4832
|
+
}, Xa = { class: "out-box" }, uo = /* @__PURE__ */ Qu(() => /* @__PURE__ */ V("span", null, "自定义: ", -1)), eo = { key: 0 }, to = { key: 0 }, no = { key: 0 }, ro = { key: 1 }, ao = { class: "tFeaturelncomes-option-box" }, oo = { class: "tFeaturelncomes-out-box" }, lo = /* @__PURE__ */ Qu(() => /* @__PURE__ */ V("span", null, "自定义: ", -1)), io = { key: 2 }, co = { key: 3 }, so = { key: 4 }, fo = { key: 5 }, po = { key: 6 }, bo = { style: { display: "flex", "align-items": "center" } }, ho = { key: 7 }, mo = { class: "dialog-footer" }, xo = {
|
|
4833
4833
|
__name: "index",
|
|
4834
4834
|
props: /* @__PURE__ */ ju({
|
|
4835
4835
|
config: { type: Object, default: () => {
|
|
@@ -4855,10 +4855,10 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
4855
4855
|
{ label: "保留意见", value: 2 },
|
|
4856
4856
|
{ label: "否定意见", value: 3 },
|
|
4857
4857
|
{ label: "无法表示意见", value: 4 }
|
|
4858
|
-
], n = Zu(u, "data"), r = u,
|
|
4858
|
+
], n = Zu(u, "data"), r = u, a = eu(!1), l = Q(() => {
|
|
4859
4859
|
var A;
|
|
4860
4860
|
return (A = r.data.find((h) => h.radioType === "1")) == null ? void 0 : A.key;
|
|
4861
|
-
}),
|
|
4861
|
+
}), o = Q(() => {
|
|
4862
4862
|
let A = [];
|
|
4863
4863
|
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 }) => {
|
|
4864
4864
|
const { commonOptionIds: k } = h;
|
|
@@ -4934,7 +4934,7 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
4934
4934
|
// 默认排名
|
|
4935
4935
|
};
|
|
4936
4936
|
}
|
|
4937
|
-
|
|
4937
|
+
a.value = !0;
|
|
4938
4938
|
}, s = () => {
|
|
4939
4939
|
var h, k;
|
|
4940
4940
|
switch (i.value.key) {
|
|
@@ -5021,9 +5021,9 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5021
5021
|
}
|
|
5022
5022
|
}
|
|
5023
5023
|
const A = n.value.findIndex(({ key: b }) => b === i.value.key);
|
|
5024
|
-
A === -1 ? n.value.push(i.value) : n.value.splice(A, 1, i.value),
|
|
5024
|
+
A === -1 ? n.value.push(i.value) : n.value.splice(A, 1, i.value), a.value = !1;
|
|
5025
5025
|
}, p = (A) => {
|
|
5026
|
-
c.value =
|
|
5026
|
+
c.value = o.value.find(({ key: h }) => h === A.key), i.value = JSON.parse(JSON.stringify(A)), a.value = !0;
|
|
5027
5027
|
}, m = (A) => {
|
|
5028
5028
|
n.value.splice(A, 1);
|
|
5029
5029
|
}, d = (A) => {
|
|
@@ -5074,68 +5074,68 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5074
5074
|
}
|
|
5075
5075
|
};
|
|
5076
5076
|
vu(
|
|
5077
|
-
() =>
|
|
5077
|
+
() => o.value,
|
|
5078
5078
|
() => {
|
|
5079
|
-
n.value.length && (n.value = n.value.filter(({ key: A }) =>
|
|
5079
|
+
n.value.length && (n.value = n.value.filter(({ key: A }) => o.value.find((h) => h.key === A)));
|
|
5080
5080
|
}
|
|
5081
5081
|
);
|
|
5082
|
-
const
|
|
5082
|
+
const $ = () => {
|
|
5083
5083
|
i.value.radio = null, i.value.rankRange = [null, null];
|
|
5084
5084
|
};
|
|
5085
5085
|
return (A, h) => {
|
|
5086
|
-
const k = m0, b =
|
|
5087
|
-
return u.config.show &&
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
(
|
|
5086
|
+
const k = m0, b = D0, x = ve, g = p0, _ = h0, I = fe, v = pe, T = ye, F = b0, q = ge;
|
|
5087
|
+
return u.config.show && o.value.length ? (E(), S("div", Ua, [
|
|
5088
|
+
V("div", Na, [
|
|
5089
|
+
ja,
|
|
5090
|
+
V("div", Za, [
|
|
5091
|
+
(E(!0), S(z, null, Z(o.value, (B) => (E(), S("span", {
|
|
5092
5092
|
key: B.key,
|
|
5093
5093
|
onClick: (C) => f(B)
|
|
5094
|
-
}, uu(B.label), 9,
|
|
5094
|
+
}, uu(B.label), 9, Ha))), 128))
|
|
5095
5095
|
])
|
|
5096
5096
|
]),
|
|
5097
|
-
|
|
5098
|
-
(
|
|
5097
|
+
V("div", Ga, [
|
|
5098
|
+
(E(!0), S(z, null, Z(n.value, (B, C) => (E(), P(k, {
|
|
5099
5099
|
closable: "",
|
|
5100
5100
|
type: "info",
|
|
5101
5101
|
onClose: (N) => m(C)
|
|
5102
5102
|
}, {
|
|
5103
|
-
default:
|
|
5104
|
-
|
|
5105
|
-
|
|
5103
|
+
default: D(() => [
|
|
5104
|
+
V("span", null, uu(B.tagText), 1),
|
|
5105
|
+
V("span", {
|
|
5106
5106
|
class: "edit",
|
|
5107
5107
|
onClick: (N) => p(B)
|
|
5108
|
-
}, "编辑", 8,
|
|
5108
|
+
}, "编辑", 8, Ja)
|
|
5109
5109
|
]),
|
|
5110
5110
|
_: 2
|
|
5111
5111
|
}, 1032, ["onClose"]))), 256))
|
|
5112
5112
|
]),
|
|
5113
5113
|
y(q, {
|
|
5114
|
-
modelValue:
|
|
5115
|
-
"onUpdate:modelValue": h[26] || (h[26] = (B) =>
|
|
5114
|
+
modelValue: a.value,
|
|
5115
|
+
"onUpdate:modelValue": h[26] || (h[26] = (B) => a.value = B),
|
|
5116
5116
|
title: c.value.label,
|
|
5117
5117
|
width: "600",
|
|
5118
5118
|
"align-center": "",
|
|
5119
5119
|
"destroy-on-close": ""
|
|
5120
5120
|
}, Ku({
|
|
5121
|
-
footer:
|
|
5122
|
-
|
|
5121
|
+
footer: D(() => [
|
|
5122
|
+
V("div", mo, [
|
|
5123
5123
|
y(_, {
|
|
5124
5124
|
type: "primary",
|
|
5125
5125
|
onClick: s
|
|
5126
5126
|
}, {
|
|
5127
|
-
default:
|
|
5127
|
+
default: D(() => [
|
|
5128
5128
|
L("确定")
|
|
5129
5129
|
]),
|
|
5130
5130
|
_: 1
|
|
5131
5131
|
})
|
|
5132
5132
|
])
|
|
5133
5133
|
]),
|
|
5134
|
-
default:
|
|
5134
|
+
default: D(() => {
|
|
5135
5135
|
var B;
|
|
5136
5136
|
return [
|
|
5137
|
-
c.value.type === void 0 && i.value.radioType === "1" ? (
|
|
5138
|
-
|
|
5137
|
+
c.value.type === void 0 && i.value.radioType === "1" ? (E(), S("div", Qa, [
|
|
5138
|
+
Ya,
|
|
5139
5139
|
y(g, {
|
|
5140
5140
|
modelValue: i.value.rankRange[0],
|
|
5141
5141
|
"onUpdate:modelValue": h[2] || (h[2] = (C) => i.value.rankRange[0] = C),
|
|
@@ -5147,20 +5147,20 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5147
5147
|
"onUpdate:modelValue": h[3] || (h[3] = (C) => i.value.rankRange[1] = C),
|
|
5148
5148
|
style: { flex: "1" }
|
|
5149
5149
|
}, null, 8, ["modelValue"])
|
|
5150
|
-
])) : c.value.type === void 0 ? (
|
|
5151
|
-
(B = c.value.convenientOptions) != null && B.length ? (
|
|
5152
|
-
(
|
|
5150
|
+
])) : c.value.type === void 0 ? (E(), S(z, { key: 1 }, [
|
|
5151
|
+
(B = c.value.convenientOptions) != null && B.length ? (E(), S("div", Ka, [
|
|
5152
|
+
(E(!0), S(z, null, Z(c.value.convenientOptions, (C) => (E(), P(_, {
|
|
5153
5153
|
key: C.text,
|
|
5154
5154
|
onClick: (N) => d(C)
|
|
5155
5155
|
}, {
|
|
5156
|
-
default:
|
|
5156
|
+
default: D(() => [
|
|
5157
5157
|
L(uu(C.text), 1)
|
|
5158
5158
|
]),
|
|
5159
5159
|
_: 2
|
|
5160
5160
|
}, 1032, ["onClick"]))), 128))
|
|
5161
5161
|
])) : U("", !0),
|
|
5162
|
-
|
|
5163
|
-
|
|
5162
|
+
V("div", Xa, [
|
|
5163
|
+
uo,
|
|
5164
5164
|
y(g, {
|
|
5165
5165
|
modelValue: i.value.range[0],
|
|
5166
5166
|
"onUpdate:modelValue": h[5] || (h[5] = (C) => i.value.range[0] = C),
|
|
@@ -5168,15 +5168,15 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5168
5168
|
}, Ku({ _: 2 }, [
|
|
5169
5169
|
c.value.unitOptions.length ? {
|
|
5170
5170
|
name: "append",
|
|
5171
|
-
fn:
|
|
5172
|
-
c.value.unitOptions.length === 1 ? (
|
|
5171
|
+
fn: D(() => [
|
|
5172
|
+
c.value.unitOptions.length === 1 ? (E(), S("span", eo, uu(i.value.unit[0]), 1)) : (E(), P(v, {
|
|
5173
5173
|
key: 1,
|
|
5174
5174
|
modelValue: i.value.unit[0],
|
|
5175
5175
|
"onUpdate:modelValue": h[4] || (h[4] = (C) => i.value.unit[0] = C),
|
|
5176
5176
|
style: { width: "72px" }
|
|
5177
5177
|
}, {
|
|
5178
|
-
default:
|
|
5179
|
-
(
|
|
5178
|
+
default: D(() => [
|
|
5179
|
+
(E(!0), S(z, null, Z(c.value.unitOptions, (C) => (E(), P(I, {
|
|
5180
5180
|
label: C,
|
|
5181
5181
|
value: C
|
|
5182
5182
|
}, null, 8, ["label", "value"]))), 256))
|
|
@@ -5195,15 +5195,15 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5195
5195
|
}, Ku({ _: 2 }, [
|
|
5196
5196
|
c.value.unitOptions.length ? {
|
|
5197
5197
|
name: "append",
|
|
5198
|
-
fn:
|
|
5199
|
-
c.value.unitOptions.length === 1 ? (
|
|
5198
|
+
fn: D(() => [
|
|
5199
|
+
c.value.unitOptions.length === 1 ? (E(), S("span", to, uu(i.value.unit[1]), 1)) : (E(), P(v, {
|
|
5200
5200
|
key: 1,
|
|
5201
5201
|
modelValue: i.value.unit[1],
|
|
5202
5202
|
"onUpdate:modelValue": h[6] || (h[6] = (C) => i.value.unit[1] = C),
|
|
5203
5203
|
style: { width: "72px" }
|
|
5204
5204
|
}, {
|
|
5205
|
-
default:
|
|
5206
|
-
(
|
|
5205
|
+
default: D(() => [
|
|
5206
|
+
(E(!0), S(z, null, Z(c.value.unitOptions, (C) => (E(), P(I, {
|
|
5207
5207
|
label: C,
|
|
5208
5208
|
value: C
|
|
5209
5209
|
}, null, 8, ["label", "value"]))), 256))
|
|
@@ -5215,13 +5215,13 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5215
5215
|
} : void 0
|
|
5216
5216
|
]), 1032, ["modelValue"])
|
|
5217
5217
|
])
|
|
5218
|
-
], 64)) : (
|
|
5219
|
-
c.value.key === "st" ? (
|
|
5218
|
+
], 64)) : (E(), S(z, { key: 2 }, [
|
|
5219
|
+
c.value.key === "st" ? (E(), S("div", no, [
|
|
5220
5220
|
y(x, {
|
|
5221
5221
|
modelValue: i.value.st,
|
|
5222
5222
|
"onUpdate:modelValue": h[8] || (h[8] = (C) => i.value.st = C)
|
|
5223
5223
|
}, {
|
|
5224
|
-
default:
|
|
5224
|
+
default: D(() => [
|
|
5225
5225
|
y(T, {
|
|
5226
5226
|
label: "是",
|
|
5227
5227
|
value: 1
|
|
@@ -5234,12 +5234,12 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5234
5234
|
_: 1
|
|
5235
5235
|
}, 8, ["modelValue"])
|
|
5236
5236
|
])) : U("", !0),
|
|
5237
|
-
c.value.key === "tFeaturelncomes" ? (
|
|
5238
|
-
|
|
5237
|
+
c.value.key === "tFeaturelncomes" ? (E(), S("div", ro, [
|
|
5238
|
+
V("div", ao, [
|
|
5239
5239
|
y(_, {
|
|
5240
5240
|
onClick: h[9] || (h[9] = (C) => w("≤0"))
|
|
5241
5241
|
}, {
|
|
5242
|
-
default:
|
|
5242
|
+
default: D(() => [
|
|
5243
5243
|
L("≤0")
|
|
5244
5244
|
]),
|
|
5245
5245
|
_: 1
|
|
@@ -5247,7 +5247,7 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5247
5247
|
y(_, {
|
|
5248
5248
|
onClick: h[10] || (h[10] = (C) => w("≥0"))
|
|
5249
5249
|
}, {
|
|
5250
|
-
default:
|
|
5250
|
+
default: D(() => [
|
|
5251
5251
|
L("≥0")
|
|
5252
5252
|
]),
|
|
5253
5253
|
_: 1
|
|
@@ -5255,7 +5255,7 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5255
5255
|
y(_, {
|
|
5256
5256
|
onClick: h[11] || (h[11] = (C) => w("五年内有四年以上盈利超过5千万"))
|
|
5257
5257
|
}, {
|
|
5258
|
-
default:
|
|
5258
|
+
default: D(() => [
|
|
5259
5259
|
L("五年内有四年以上盈利超过5千万")
|
|
5260
5260
|
]),
|
|
5261
5261
|
_: 1
|
|
@@ -5263,7 +5263,7 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5263
5263
|
y(_, {
|
|
5264
5264
|
onClick: h[12] || (h[12] = (C) => w("≥10亿"))
|
|
5265
5265
|
}, {
|
|
5266
|
-
default:
|
|
5266
|
+
default: D(() => [
|
|
5267
5267
|
L("≥10亿")
|
|
5268
5268
|
]),
|
|
5269
5269
|
_: 1
|
|
@@ -5271,15 +5271,15 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5271
5271
|
y(_, {
|
|
5272
5272
|
onClick: h[13] || (h[13] = (C) => w("≥20亿"))
|
|
5273
5273
|
}, {
|
|
5274
|
-
default:
|
|
5274
|
+
default: D(() => [
|
|
5275
5275
|
L("≥20亿")
|
|
5276
5276
|
]),
|
|
5277
5277
|
_: 1
|
|
5278
5278
|
})
|
|
5279
5279
|
]),
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5280
|
+
V("div", oo, [
|
|
5281
|
+
lo,
|
|
5282
|
+
V("div", null, [
|
|
5283
5283
|
y(F, {
|
|
5284
5284
|
modelValue: i.value.withFewYears,
|
|
5285
5285
|
"onUpdate:modelValue": h[14] || (h[14] = (C) => i.value.withFewYears = C),
|
|
@@ -5301,7 +5301,7 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5301
5301
|
])
|
|
5302
5302
|
])
|
|
5303
5303
|
])) : U("", !0),
|
|
5304
|
-
c.value.key === "priceLevels" ? (
|
|
5304
|
+
c.value.key === "priceLevels" ? (E(), S("div", io, [
|
|
5305
5305
|
y(v, {
|
|
5306
5306
|
modelValue: i.value.priceLevels,
|
|
5307
5307
|
"onUpdate:modelValue": h[17] || (h[17] = (C) => i.value.priceLevels = C),
|
|
@@ -5310,8 +5310,8 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5310
5310
|
placeholder: "请选择",
|
|
5311
5311
|
style: { width: "420px" }
|
|
5312
5312
|
}, {
|
|
5313
|
-
default:
|
|
5314
|
-
(
|
|
5313
|
+
default: D(() => [
|
|
5314
|
+
(E(), S(z, null, Z([1, 2, 3, 4, 5], (C) => y(I, {
|
|
5315
5315
|
key: C,
|
|
5316
5316
|
label: `${C}分位`,
|
|
5317
5317
|
value: C
|
|
@@ -5320,7 +5320,7 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5320
5320
|
_: 1
|
|
5321
5321
|
}, 8, ["modelValue"])
|
|
5322
5322
|
])) : U("", !0),
|
|
5323
|
-
c.value.key === "peTtmLevels" ? (
|
|
5323
|
+
c.value.key === "peTtmLevels" ? (E(), S("div", co, [
|
|
5324
5324
|
y(v, {
|
|
5325
5325
|
modelValue: i.value.peTtmLevels,
|
|
5326
5326
|
"onUpdate:modelValue": h[18] || (h[18] = (C) => i.value.peTtmLevels = C),
|
|
@@ -5329,8 +5329,8 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5329
5329
|
placeholder: "请选择",
|
|
5330
5330
|
style: { width: "420px" }
|
|
5331
5331
|
}, {
|
|
5332
|
-
default:
|
|
5333
|
-
(
|
|
5332
|
+
default: D(() => [
|
|
5333
|
+
(E(), S(z, null, Z([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], (C) => y(I, {
|
|
5334
5334
|
key: C,
|
|
5335
5335
|
label: `${C}分位`,
|
|
5336
5336
|
value: C
|
|
@@ -5339,12 +5339,12 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5339
5339
|
_: 1
|
|
5340
5340
|
}, 8, ["modelValue"])
|
|
5341
5341
|
])) : U("", !0),
|
|
5342
|
-
c.value.key === "optionsCpType" ? (
|
|
5342
|
+
c.value.key === "optionsCpType" ? (E(), S("div", so, [
|
|
5343
5343
|
y(x, {
|
|
5344
5344
|
modelValue: i.value.optionsCpType,
|
|
5345
5345
|
"onUpdate:modelValue": h[19] || (h[19] = (C) => i.value.optionsCpType = C)
|
|
5346
5346
|
}, {
|
|
5347
|
-
default:
|
|
5347
|
+
default: D(() => [
|
|
5348
5348
|
y(T, {
|
|
5349
5349
|
label: "看涨",
|
|
5350
5350
|
value: 1
|
|
@@ -5357,17 +5357,17 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5357
5357
|
_: 1
|
|
5358
5358
|
}, 8, ["modelValue"])
|
|
5359
5359
|
])) : U("", !0),
|
|
5360
|
-
c.value.key === "perVolumn" ? (
|
|
5360
|
+
c.value.key === "perVolumn" ? (E(), S("div", fo, [
|
|
5361
5361
|
y(x, {
|
|
5362
5362
|
modelValue: i.value.radio,
|
|
5363
5363
|
"onUpdate:modelValue": h[20] || (h[20] = (C) => i.value.radio = C)
|
|
5364
5364
|
}, {
|
|
5365
|
-
default:
|
|
5366
|
-
(
|
|
5365
|
+
default: D(() => [
|
|
5366
|
+
(E(), S(z, null, Z(e, (C) => y(T, {
|
|
5367
5367
|
key: C.value,
|
|
5368
5368
|
value: C.value
|
|
5369
5369
|
}, {
|
|
5370
|
-
default:
|
|
5370
|
+
default: D(() => [
|
|
5371
5371
|
L(uu(C.label), 1)
|
|
5372
5372
|
]),
|
|
5373
5373
|
_: 2
|
|
@@ -5383,8 +5383,8 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5383
5383
|
placeholder: "请选择",
|
|
5384
5384
|
style: { width: "420px" }
|
|
5385
5385
|
}, {
|
|
5386
|
-
default:
|
|
5387
|
-
(
|
|
5386
|
+
default: D(() => [
|
|
5387
|
+
(E(), S(z, null, Z([1, 2, 3, 4, 5], (C) => y(I, {
|
|
5388
5388
|
key: C,
|
|
5389
5389
|
label: `${C}分位`,
|
|
5390
5390
|
value: C
|
|
@@ -5393,32 +5393,32 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5393
5393
|
_: 1
|
|
5394
5394
|
}, 8, ["modelValue"])
|
|
5395
5395
|
])) : U("", !0),
|
|
5396
|
-
c.value.key === "mainFlow" ? (
|
|
5396
|
+
c.value.key === "mainFlow" ? (E(), S("div", po, [
|
|
5397
5397
|
y(x, {
|
|
5398
5398
|
modelValue: i.value.radio,
|
|
5399
5399
|
"onUpdate:modelValue": h[22] || (h[22] = (C) => i.value.radio = C)
|
|
5400
5400
|
}, {
|
|
5401
|
-
default:
|
|
5401
|
+
default: D(() => [
|
|
5402
5402
|
y(T, { value: "3" }, {
|
|
5403
|
-
default:
|
|
5403
|
+
default: D(() => [
|
|
5404
5404
|
L("3日")
|
|
5405
5405
|
]),
|
|
5406
5406
|
_: 1
|
|
5407
5407
|
}),
|
|
5408
5408
|
y(T, { value: "5" }, {
|
|
5409
|
-
default:
|
|
5409
|
+
default: D(() => [
|
|
5410
5410
|
L("5日")
|
|
5411
5411
|
]),
|
|
5412
5412
|
_: 1
|
|
5413
5413
|
}),
|
|
5414
5414
|
y(T, { value: "10" }, {
|
|
5415
|
-
default:
|
|
5415
|
+
default: D(() => [
|
|
5416
5416
|
L("10日")
|
|
5417
5417
|
]),
|
|
5418
5418
|
_: 1
|
|
5419
5419
|
}),
|
|
5420
5420
|
y(T, { value: "20" }, {
|
|
5421
|
-
default:
|
|
5421
|
+
default: D(() => [
|
|
5422
5422
|
L("20日")
|
|
5423
5423
|
]),
|
|
5424
5424
|
_: 1
|
|
@@ -5426,8 +5426,8 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5426
5426
|
]),
|
|
5427
5427
|
_: 1
|
|
5428
5428
|
}, 8, ["modelValue"]),
|
|
5429
|
-
|
|
5430
|
-
|
|
5429
|
+
V("div", bo, [
|
|
5430
|
+
V("span", null, uu(i.value.radioType === "0" ? "涨幅范围" : "排名范围") + ": ", 1),
|
|
5431
5431
|
y(g, {
|
|
5432
5432
|
modelValue: i.value.rankRange[0],
|
|
5433
5433
|
"onUpdate:modelValue": h[23] || (h[23] = (C) => i.value.rankRange[0] = C),
|
|
@@ -5441,13 +5441,13 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5441
5441
|
}, null, 8, ["modelValue"])
|
|
5442
5442
|
])
|
|
5443
5443
|
])) : U("", !0),
|
|
5444
|
-
c.value.key === "auditOpinionType" ? (
|
|
5444
|
+
c.value.key === "auditOpinionType" ? (E(), S("div", ho, [
|
|
5445
5445
|
y(x, {
|
|
5446
5446
|
modelValue: i.value.enumType,
|
|
5447
5447
|
"onUpdate:modelValue": h[25] || (h[25] = (C) => i.value.enumType = C)
|
|
5448
5448
|
}, {
|
|
5449
|
-
default:
|
|
5450
|
-
(
|
|
5449
|
+
default: D(() => [
|
|
5450
|
+
(E(), S(z, null, Z(t, (C, N) => y(T, {
|
|
5451
5451
|
key: N,
|
|
5452
5452
|
label: C.label,
|
|
5453
5453
|
value: C.value
|
|
@@ -5463,14 +5463,14 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5463
5463
|
}, [
|
|
5464
5464
|
c.value.showRankType ? {
|
|
5465
5465
|
name: "header",
|
|
5466
|
-
fn:
|
|
5467
|
-
|
|
5466
|
+
fn: D(() => [
|
|
5467
|
+
V("span", Wa, uu(c.value.label), 1),
|
|
5468
5468
|
y(x, {
|
|
5469
5469
|
modelValue: i.value.radioType,
|
|
5470
5470
|
"onUpdate:modelValue": h[0] || (h[0] = (B) => i.value.radioType = B),
|
|
5471
5471
|
style: { "vertical-align": "4px", "margin-left": "12px" }
|
|
5472
5472
|
}, {
|
|
5473
|
-
default:
|
|
5473
|
+
default: D(() => [
|
|
5474
5474
|
y(b, {
|
|
5475
5475
|
label: "数值",
|
|
5476
5476
|
value: "0"
|
|
@@ -5487,15 +5487,15 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5487
5487
|
key: "0"
|
|
5488
5488
|
} : c.value.key === "mainFlow" ? {
|
|
5489
5489
|
name: "header",
|
|
5490
|
-
fn:
|
|
5491
|
-
|
|
5490
|
+
fn: D(() => [
|
|
5491
|
+
V("span", { style: { "font-size": "18px" } }, uu(c.value.label), 1),
|
|
5492
5492
|
y(x, {
|
|
5493
5493
|
modelValue: i.value.radioType,
|
|
5494
5494
|
"onUpdate:modelValue": h[1] || (h[1] = (B) => i.value.radioType = B),
|
|
5495
5495
|
style: { "vertical-align": "4px", "margin-left": "12px" },
|
|
5496
|
-
onChange:
|
|
5496
|
+
onChange: $
|
|
5497
5497
|
}, {
|
|
5498
|
-
default:
|
|
5498
|
+
default: D(() => [
|
|
5499
5499
|
y(b, {
|
|
5500
5500
|
label: "涨幅范围",
|
|
5501
5501
|
value: "0"
|
|
@@ -5515,26 +5515,26 @@ const Qu = (u) => (xe("data-v-3e69da40"), u = u(), _e(), u), No = {
|
|
|
5515
5515
|
])) : U("", !0);
|
|
5516
5516
|
};
|
|
5517
5517
|
}
|
|
5518
|
-
},
|
|
5519
|
-
const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u),
|
|
5518
|
+
}, _o = /* @__PURE__ */ ke(xo, [["__scopeId", "data-v-3e69da40"]]);
|
|
5519
|
+
const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), go = { class: "variety-search" }, ko = {
|
|
5520
5520
|
key: 0,
|
|
5521
5521
|
class: "variety-search-row"
|
|
5522
|
-
},
|
|
5522
|
+
}, yo = { class: "title" }, vo = /* @__PURE__ */ Au(() => /* @__PURE__ */ V("span", null, "品种市场: ", -1)), Co = {
|
|
5523
5523
|
key: 1,
|
|
5524
5524
|
class: "variety-search-row"
|
|
5525
|
-
},
|
|
5525
|
+
}, Eo = { class: "title" }, Do = /* @__PURE__ */ Au(() => /* @__PURE__ */ V("span", null, "常用选项: ", -1)), Fo = {
|
|
5526
5526
|
key: 2,
|
|
5527
5527
|
class: "variety-search-row"
|
|
5528
|
-
},
|
|
5528
|
+
}, Ao = { class: "title" }, wo = /* @__PURE__ */ Au(() => /* @__PURE__ */ V("span", null, "上市板块: ", -1)), To = {
|
|
5529
5529
|
key: 3,
|
|
5530
5530
|
class: "variety-search-row"
|
|
5531
|
-
},
|
|
5531
|
+
}, So = { class: "title" }, Io = /* @__PURE__ */ Au(() => /* @__PURE__ */ V("span", null, "自定标签: ", -1)), Oo = {
|
|
5532
5532
|
key: 4,
|
|
5533
5533
|
class: "variety-search-row"
|
|
5534
|
-
},
|
|
5534
|
+
}, Vo = { class: "title" }, $o = /* @__PURE__ */ Au(() => /* @__PURE__ */ V("span", null, "价差转换: ", -1)), Ro = {
|
|
5535
5535
|
key: 5,
|
|
5536
5536
|
class: "variety-search-row"
|
|
5537
|
-
},
|
|
5537
|
+
}, Mo = { class: "title" }, qo = /* @__PURE__ */ Au(() => /* @__PURE__ */ V("span", null, "因子筛选: ", -1)), Bo = {
|
|
5538
5538
|
__name: "index",
|
|
5539
5539
|
props: /* @__PURE__ */ ju({ config: { type: Object, default: {} } }, {
|
|
5540
5540
|
searchData: {},
|
|
@@ -5573,13 +5573,13 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), ga = { class: "vari
|
|
|
5573
5573
|
const m = Be[p], d = t.config[p] ?? {}, w = { ...m, ...d };
|
|
5574
5574
|
s[p] = w;
|
|
5575
5575
|
}), s;
|
|
5576
|
-
}),
|
|
5576
|
+
}), a = Q(() => r.value.varietyMarket.options), l = Q(() => {
|
|
5577
5577
|
const { varietyMarket: s } = n.value;
|
|
5578
|
-
return s ?
|
|
5579
|
-
const w = r.value.commonOption.options.find((
|
|
5578
|
+
return s ? a.value.find(({ value: m }) => m === s).memo.reduce((m, d) => {
|
|
5579
|
+
const w = r.value.commonOption.options.find(($) => $.value === d);
|
|
5580
5580
|
return w && m.push(w), m;
|
|
5581
5581
|
}, []) : r.value.commonOption.options;
|
|
5582
|
-
}),
|
|
5582
|
+
}), o = Q(() => {
|
|
5583
5583
|
const { varietyMarket: s } = n.value;
|
|
5584
5584
|
return s ? r.value.marketIds.options.filter((p) => p.varietyMarketIds.includes(s)) : r.value.marketIds.options;
|
|
5585
5585
|
}), c = Q(() => r.value.customTag.options), i = Q(() => r.value.jcTranslate.jcOptions), f = (s) => {
|
|
@@ -5629,7 +5629,7 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), ga = { class: "vari
|
|
|
5629
5629
|
(p = n.value.commonOption) != null && p.length && (n.value.commonOption = n.value.commonOption.filter((m) => s.find(({ value: d }) => d === m)));
|
|
5630
5630
|
}
|
|
5631
5631
|
), vu(
|
|
5632
|
-
() =>
|
|
5632
|
+
() => o.value,
|
|
5633
5633
|
(s) => {
|
|
5634
5634
|
var p;
|
|
5635
5635
|
(p = n.value.marketIds) != null && p.length && (n.value.marketIds = n.value.marketIds.filter((m) => s.find(({ value: d }) => d === m)));
|
|
@@ -5637,10 +5637,10 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), ga = { class: "vari
|
|
|
5637
5637
|
), e({
|
|
5638
5638
|
// 生成接口传参结构的数据
|
|
5639
5639
|
formatData: (s) => {
|
|
5640
|
-
var m, d, w,
|
|
5640
|
+
var m, d, w, $, A, h;
|
|
5641
5641
|
console.log("%c[st-varietySearch]: 正在生成接口传参...", "color: tomato");
|
|
5642
5642
|
const p = {};
|
|
5643
|
-
if (s.varietyMarket && (p.exchangeId = String(s.varietyMarket)), (m = s.commonOption) != null && m.length && (p.optionId = s.commonOption.join(",")), (d = s.marketIds) != null && d.length && (p.marketIds = s.marketIds), (w = s.customTag) != null && w.length && (p.tagIds = s.customTag), (
|
|
5643
|
+
if (s.varietyMarket && (p.exchangeId = String(s.varietyMarket)), (m = s.commonOption) != null && m.length && (p.optionId = s.commonOption.join(",")), (d = s.marketIds) != null && d.length && (p.marketIds = s.marketIds), (w = s.customTag) != null && w.length && (p.tagIds = s.customTag), ($ = r.value.jcTranslate) != null && $.show) {
|
|
5644
5644
|
const { jcTranslate: k } = s, { type: b, jcList: x } = k;
|
|
5645
5645
|
switch (b) {
|
|
5646
5646
|
case 1: {
|
|
@@ -5838,12 +5838,12 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), ga = { class: "vari
|
|
|
5838
5838
|
}
|
|
5839
5839
|
}), (s, p) => {
|
|
5840
5840
|
var k, b, x, g, _, I;
|
|
5841
|
-
const m = ye, d = ve, w = ct,
|
|
5842
|
-
return
|
|
5843
|
-
(k = r.value.varietyMarket) != null && k.show ? (
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5841
|
+
const m = ye, d = ve, w = ct, $ = st, A = fe, h = pe;
|
|
5842
|
+
return E(), S("div", go, [
|
|
5843
|
+
(k = r.value.varietyMarket) != null && k.show ? (E(), S("div", ko, [
|
|
5844
|
+
V("div", yo, [
|
|
5845
|
+
vo,
|
|
5846
|
+
V("span", {
|
|
5847
5847
|
onClick: p[0] || (p[0] = (v) => f("varietyMarket"))
|
|
5848
5848
|
}, "不限")
|
|
5849
5849
|
]),
|
|
@@ -5852,8 +5852,8 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), ga = { class: "vari
|
|
|
5852
5852
|
"onUpdate:modelValue": p[1] || (p[1] = (v) => n.value.varietyMarket = v),
|
|
5853
5853
|
size: "small"
|
|
5854
5854
|
}, {
|
|
5855
|
-
default:
|
|
5856
|
-
(
|
|
5855
|
+
default: D(() => [
|
|
5856
|
+
(E(!0), S(z, null, Z(a.value, ({ label: v, value: T }) => (E(), P(m, {
|
|
5857
5857
|
label: v,
|
|
5858
5858
|
value: T,
|
|
5859
5859
|
key: T
|
|
@@ -5862,20 +5862,20 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), ga = { class: "vari
|
|
|
5862
5862
|
_: 1
|
|
5863
5863
|
}, 8, ["modelValue"])
|
|
5864
5864
|
])) : U("", !0),
|
|
5865
|
-
(b = r.value.commonOption) != null && b.show && l.value.length ? (
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5865
|
+
(b = r.value.commonOption) != null && b.show && l.value.length ? (E(), S("div", Co, [
|
|
5866
|
+
V("div", Eo, [
|
|
5867
|
+
Do,
|
|
5868
|
+
V("span", {
|
|
5869
5869
|
onClick: p[2] || (p[2] = (v) => f("commonOption"))
|
|
5870
5870
|
}, "不限")
|
|
5871
5871
|
]),
|
|
5872
|
-
y(
|
|
5872
|
+
y($, {
|
|
5873
5873
|
modelValue: n.value.commonOption,
|
|
5874
5874
|
"onUpdate:modelValue": p[3] || (p[3] = (v) => n.value.commonOption = v),
|
|
5875
5875
|
size: "small"
|
|
5876
5876
|
}, {
|
|
5877
|
-
default:
|
|
5878
|
-
(
|
|
5877
|
+
default: D(() => [
|
|
5878
|
+
(E(!0), S(z, null, Z(l.value, ({ label: v, value: T }) => (E(), P(w, {
|
|
5879
5879
|
label: v,
|
|
5880
5880
|
value: T,
|
|
5881
5881
|
key: T
|
|
@@ -5884,20 +5884,20 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), ga = { class: "vari
|
|
|
5884
5884
|
_: 1
|
|
5885
5885
|
}, 8, ["modelValue"])
|
|
5886
5886
|
])) : U("", !0),
|
|
5887
|
-
(x = r.value.marketIds) != null && x.show &&
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5887
|
+
(x = r.value.marketIds) != null && x.show && o.value.length ? (E(), S("div", Fo, [
|
|
5888
|
+
V("div", Ao, [
|
|
5889
|
+
wo,
|
|
5890
|
+
V("span", {
|
|
5891
5891
|
onClick: p[4] || (p[4] = (v) => f("marketIds"))
|
|
5892
5892
|
}, "不限")
|
|
5893
5893
|
]),
|
|
5894
|
-
y(
|
|
5894
|
+
y($, {
|
|
5895
5895
|
modelValue: n.value.marketIds,
|
|
5896
5896
|
"onUpdate:modelValue": p[5] || (p[5] = (v) => n.value.marketIds = v),
|
|
5897
5897
|
size: "small"
|
|
5898
5898
|
}, {
|
|
5899
|
-
default:
|
|
5900
|
-
(
|
|
5899
|
+
default: D(() => [
|
|
5900
|
+
(E(!0), S(z, null, Z(o.value, ({ label: v, value: T }) => (E(), P(w, {
|
|
5901
5901
|
label: v,
|
|
5902
5902
|
value: T,
|
|
5903
5903
|
key: T
|
|
@@ -5906,20 +5906,20 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), ga = { class: "vari
|
|
|
5906
5906
|
_: 1
|
|
5907
5907
|
}, 8, ["modelValue"])
|
|
5908
5908
|
])) : U("", !0),
|
|
5909
|
-
(g = r.value.customTag) != null && g.show && c.value.length ? (
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5909
|
+
(g = r.value.customTag) != null && g.show && c.value.length ? (E(), S("div", To, [
|
|
5910
|
+
V("div", So, [
|
|
5911
|
+
Io,
|
|
5912
|
+
V("span", {
|
|
5913
5913
|
onClick: p[6] || (p[6] = (v) => f("customTag"))
|
|
5914
5914
|
}, "不限")
|
|
5915
5915
|
]),
|
|
5916
|
-
y(
|
|
5916
|
+
y($, {
|
|
5917
5917
|
modelValue: n.value.customTag,
|
|
5918
5918
|
"onUpdate:modelValue": p[7] || (p[7] = (v) => n.value.customTag = v),
|
|
5919
5919
|
size: "small"
|
|
5920
5920
|
}, {
|
|
5921
|
-
default:
|
|
5922
|
-
(
|
|
5921
|
+
default: D(() => [
|
|
5922
|
+
(E(!0), S(z, null, Z(c.value, ({ label: v, value: T }) => (E(), P(w, {
|
|
5923
5923
|
label: v,
|
|
5924
5924
|
value: T,
|
|
5925
5925
|
key: T
|
|
@@ -5928,10 +5928,10 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), ga = { class: "vari
|
|
|
5928
5928
|
_: 1
|
|
5929
5929
|
}, 8, ["modelValue"])
|
|
5930
5930
|
])) : U("", !0),
|
|
5931
|
-
(_ = r.value.jcTranslate) != null && _.show ? (
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5931
|
+
(_ = r.value.jcTranslate) != null && _.show ? (E(), S("div", Oo, [
|
|
5932
|
+
V("div", Vo, [
|
|
5933
|
+
$o,
|
|
5934
|
+
V("span", {
|
|
5935
5935
|
onClick: p[8] || (p[8] = (v) => f("jcTranslate"))
|
|
5936
5936
|
}, "不限")
|
|
5937
5937
|
]),
|
|
@@ -5940,15 +5940,15 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), ga = { class: "vari
|
|
|
5940
5940
|
"onUpdate:modelValue": p[9] || (p[9] = (v) => n.value.jcTranslate.type = v),
|
|
5941
5941
|
size: "small"
|
|
5942
5942
|
}, {
|
|
5943
|
-
default:
|
|
5943
|
+
default: D(() => [
|
|
5944
5944
|
y(m, { value: 2 }, {
|
|
5945
|
-
default:
|
|
5945
|
+
default: D(() => [
|
|
5946
5946
|
L("价差转品种")
|
|
5947
5947
|
]),
|
|
5948
5948
|
_: 1
|
|
5949
5949
|
}),
|
|
5950
5950
|
y(m, { value: 1 }, {
|
|
5951
|
-
default:
|
|
5951
|
+
default: D(() => [
|
|
5952
5952
|
L("品种转价差")
|
|
5953
5953
|
]),
|
|
5954
5954
|
_: 1
|
|
@@ -5966,8 +5966,8 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), ga = { class: "vari
|
|
|
5966
5966
|
placeholder: "请选择价差品种",
|
|
5967
5967
|
style: { width: "140px" }
|
|
5968
5968
|
}, {
|
|
5969
|
-
default:
|
|
5970
|
-
(
|
|
5969
|
+
default: D(() => [
|
|
5970
|
+
(E(!0), S(z, null, Z(i.value, (v) => (E(), P(A, {
|
|
5971
5971
|
key: v.value,
|
|
5972
5972
|
label: v.label,
|
|
5973
5973
|
value: v.value
|
|
@@ -5978,20 +5978,20 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), ga = { class: "vari
|
|
|
5978
5978
|
[f0, n.value.jcTranslate.type === 1]
|
|
5979
5979
|
])
|
|
5980
5980
|
])) : U("", !0),
|
|
5981
|
-
(I = r.value.factorScreen) != null && I.show ? (
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5981
|
+
(I = r.value.factorScreen) != null && I.show ? (E(), S("div", Ro, [
|
|
5982
|
+
V("div", Mo, [
|
|
5983
|
+
qo,
|
|
5984
|
+
V("span", {
|
|
5985
5985
|
onClick: p[11] || (p[11] = (v) => f("factorScreen"))
|
|
5986
5986
|
}, "不限")
|
|
5987
5987
|
]),
|
|
5988
|
-
y(
|
|
5988
|
+
y(Pa, {
|
|
5989
5989
|
data: n.value.factorScreen,
|
|
5990
5990
|
"onUpdate:data": p[12] || (p[12] = (v) => n.value.factorScreen = v),
|
|
5991
5991
|
config: r.value.factorScreen
|
|
5992
5992
|
}, null, 8, ["data", "config"])
|
|
5993
5993
|
])) : U("", !0),
|
|
5994
|
-
y(
|
|
5994
|
+
y(_o, {
|
|
5995
5995
|
data: n.value.commonIndicator,
|
|
5996
5996
|
"onUpdate:data": p[13] || (p[13] = (v) => n.value.commonIndicator = v),
|
|
5997
5997
|
varietyMarket: n.value.varietyMarket,
|
|
@@ -6001,11 +6001,11 @@ const Au = (u) => (xe("data-v-efd872de"), u = u(), _e(), u), ga = { class: "vari
|
|
|
6001
6001
|
]);
|
|
6002
6002
|
};
|
|
6003
6003
|
}
|
|
6004
|
-
},
|
|
6004
|
+
}, zo = /* @__PURE__ */ ke(Bo, [["__scopeId", "data-v-efd872de"]]), Dl = {
|
|
6005
6005
|
install(u) {
|
|
6006
|
-
u.component("st-varietySearch",
|
|
6006
|
+
u.component("st-varietySearch", zo);
|
|
6007
6007
|
}
|
|
6008
6008
|
};
|
|
6009
6009
|
export {
|
|
6010
|
-
|
|
6010
|
+
Dl as default
|
|
6011
6011
|
};
|