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