@363045841yyt/klinechart 0.2.7 → 0.2.9
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/README.md +4 -0
- package/dist/components/IndicatorSelector.vue.d.ts +2 -5
- package/dist/core/theme/colors.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1087 -953
- package/dist/klinechart.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7,16 +7,16 @@ var T = Object.create, E = Object.defineProperty, D = Object.getOwnPropertyDescr
|
|
|
7
7
|
enumerable: !0
|
|
8
8
|
});
|
|
9
9
|
return t || E(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
10
|
-
},
|
|
10
|
+
}, ee = (e, t, n, r) => {
|
|
11
11
|
if (t && typeof t == "object" || typeof t == "function") for (var i = O(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !A.call(e, s) && s !== n && E(e, s, {
|
|
12
12
|
get: ((e) => t[e]).bind(null, s),
|
|
13
13
|
enumerable: !(r = D(t, s)) || r.enumerable
|
|
14
14
|
});
|
|
15
15
|
return e;
|
|
16
|
-
},
|
|
16
|
+
}, te = (e, t, n) => (n = e == null ? {} : T(k(e)), ee(t || !e || !e.__esModule ? E(n, "default", {
|
|
17
17
|
value: e,
|
|
18
18
|
enumerable: !0
|
|
19
|
-
}) : n, e)),
|
|
19
|
+
}) : n, e)), P = (e) => A.call(e, "module.exports") ? e["module.exports"] : ee(E({}, "__esModule", { value: !0 }), e), F = class {
|
|
20
20
|
listeners = /* @__PURE__ */ new Map();
|
|
21
21
|
on(e, t) {
|
|
22
22
|
this.listeners.has(e) || this.listeners.set(e, /* @__PURE__ */ new Set()), this.listeners.get(e).add(t);
|
|
@@ -50,79 +50,79 @@ var T = Object.create, E = Object.defineProperty, D = Object.getOwnPropertyDescr
|
|
|
50
50
|
};
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/bind.js
|
|
53
|
-
function
|
|
53
|
+
function ne(e, t) {
|
|
54
54
|
return function() {
|
|
55
55
|
return e.apply(t, arguments);
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/utils.js
|
|
60
|
-
var { toString:
|
|
61
|
-
let n =
|
|
60
|
+
var { toString: I } = Object.prototype, { getPrototypeOf: re } = Object, { iterator: ie, toStringTag: ae } = Symbol, oe = ((e) => (t) => {
|
|
61
|
+
let n = I.call(t);
|
|
62
62
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
63
|
-
})(Object.create(null)),
|
|
64
|
-
function
|
|
65
|
-
return e !== null && !
|
|
63
|
+
})(Object.create(null)), L = (e) => (e = e.toLowerCase(), (t) => oe(t) === e), se = (e) => (t) => typeof t === e, { isArray: ce } = Array, le = se("undefined");
|
|
64
|
+
function ue(e) {
|
|
65
|
+
return e !== null && !le(e) && e.constructor !== null && !le(e.constructor) && B(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
function
|
|
67
|
+
var R = L("ArrayBuffer");
|
|
68
|
+
function de(e) {
|
|
69
69
|
let t;
|
|
70
|
-
return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer &&
|
|
71
|
-
}
|
|
72
|
-
var
|
|
73
|
-
if (
|
|
74
|
-
let t =
|
|
75
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
76
|
-
},
|
|
77
|
-
if (!
|
|
70
|
+
return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && R(e.buffer), t;
|
|
71
|
+
}
|
|
72
|
+
var z = se("string"), B = se("function"), fe = se("number"), pe = (e) => typeof e == "object" && !!e, me = (e) => e === !0 || e === !1, he = (e) => {
|
|
73
|
+
if (oe(e) !== "object") return !1;
|
|
74
|
+
let t = re(e);
|
|
75
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ae in e) && !(ie in e);
|
|
76
|
+
}, ge = (e) => {
|
|
77
|
+
if (!pe(e) || ue(e)) return !1;
|
|
78
78
|
try {
|
|
79
79
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
80
80
|
} catch {
|
|
81
81
|
return !1;
|
|
82
82
|
}
|
|
83
|
-
},
|
|
84
|
-
function
|
|
83
|
+
}, _e = L("Date"), ve = L("File"), ye = (e) => !!(e && e.uri !== void 0), be = (e) => e && e.getParts !== void 0, xe = L("Blob"), Se = L("FileList"), Ce = (e) => pe(e) && B(e.pipe);
|
|
84
|
+
function we() {
|
|
85
85
|
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
86
86
|
}
|
|
87
|
-
var
|
|
87
|
+
var Te = we(), Ee = Te.FormData === void 0 ? void 0 : Te.FormData, De = (e) => {
|
|
88
88
|
let t;
|
|
89
|
-
return e && (
|
|
90
|
-
},
|
|
89
|
+
return e && (Ee && e instanceof Ee || B(e.append) && ((t = oe(e)) === "formdata" || t === "object" && B(e.toString) && e.toString() === "[object FormData]"));
|
|
90
|
+
}, Oe = L("URLSearchParams"), [ke, Ae, je, Me] = [
|
|
91
91
|
"ReadableStream",
|
|
92
92
|
"Request",
|
|
93
93
|
"Response",
|
|
94
94
|
"Headers"
|
|
95
|
-
].map(
|
|
96
|
-
function
|
|
95
|
+
].map(L), Ne = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
96
|
+
function Pe(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
97
97
|
if (e == null) return;
|
|
98
98
|
let r, i;
|
|
99
|
-
if (typeof e != "object" && (e = [e]),
|
|
99
|
+
if (typeof e != "object" && (e = [e]), ce(e)) for (r = 0, i = e.length; r < i; r++) t.call(null, e[r], r, e);
|
|
100
100
|
else {
|
|
101
|
-
if (
|
|
101
|
+
if (ue(e)) return;
|
|
102
102
|
let i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length, o;
|
|
103
103
|
for (r = 0; r < a; r++) o = i[r], t.call(null, e[o], o, e);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
if (
|
|
106
|
+
function Fe(e, t) {
|
|
107
|
+
if (ue(e)) return null;
|
|
108
108
|
t = t.toLowerCase();
|
|
109
109
|
let n = Object.keys(e), r = n.length, i;
|
|
110
110
|
for (; r-- > 0;) if (i = n[r], t === i.toLowerCase()) return i;
|
|
111
111
|
return null;
|
|
112
112
|
}
|
|
113
|
-
var
|
|
114
|
-
function
|
|
115
|
-
let { caseless: e, skipUndefined: t } =
|
|
113
|
+
var Ie = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Le = (e) => !le(e) && e !== Ie;
|
|
114
|
+
function Re() {
|
|
115
|
+
let { caseless: e, skipUndefined: t } = Le(this) && this || {}, n = {}, r = (r, i) => {
|
|
116
116
|
if (i === "__proto__" || i === "constructor" || i === "prototype") return;
|
|
117
|
-
let a = e &&
|
|
118
|
-
|
|
117
|
+
let a = e && Fe(n, i) || i;
|
|
118
|
+
he(n[a]) && he(r) ? n[a] = Re(n[a], r) : he(r) ? n[a] = Re({}, r) : ce(r) ? n[a] = r.slice() : (!t || !le(r)) && (n[a] = r);
|
|
119
119
|
};
|
|
120
|
-
for (let e = 0, t = arguments.length; e < t; e++) arguments[e] &&
|
|
120
|
+
for (let e = 0, t = arguments.length; e < t; e++) arguments[e] && Pe(arguments[e], r);
|
|
121
121
|
return n;
|
|
122
122
|
}
|
|
123
|
-
var
|
|
124
|
-
n &&
|
|
125
|
-
value:
|
|
123
|
+
var ze = (e, t, n, { allOwnKeys: r } = {}) => (Pe(t, (t, r) => {
|
|
124
|
+
n && B(t) ? Object.defineProperty(e, r, {
|
|
125
|
+
value: ne(t, n),
|
|
126
126
|
writable: !0,
|
|
127
127
|
enumerable: !0,
|
|
128
128
|
configurable: !0
|
|
@@ -132,60 +132,60 @@ var Be = (e, t, n, { allOwnKeys: r } = {}) => (Fe(t, (t, r) => {
|
|
|
132
132
|
enumerable: !0,
|
|
133
133
|
configurable: !0
|
|
134
134
|
});
|
|
135
|
-
}, { allOwnKeys: r }), e),
|
|
135
|
+
}, { allOwnKeys: r }), e), Be = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ve = (e, t, n, r) => {
|
|
136
136
|
e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
|
|
137
137
|
value: e,
|
|
138
138
|
writable: !0,
|
|
139
139
|
enumerable: !1,
|
|
140
140
|
configurable: !0
|
|
141
141
|
}), Object.defineProperty(e, "super", { value: t.prototype }), n && Object.assign(e.prototype, n);
|
|
142
|
-
},
|
|
142
|
+
}, He = (e, t, n, r) => {
|
|
143
143
|
let i, a, o, s = {};
|
|
144
144
|
if (t ||= {}, e == null) return t;
|
|
145
145
|
do {
|
|
146
146
|
for (i = Object.getOwnPropertyNames(e), a = i.length; a-- > 0;) o = i[a], (!r || r(o, e, t)) && !s[o] && (t[o] = e[o], s[o] = !0);
|
|
147
|
-
e = n !== !1 &&
|
|
147
|
+
e = n !== !1 && re(e);
|
|
148
148
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
149
149
|
return t;
|
|
150
|
-
},
|
|
150
|
+
}, Ue = (e, t, n) => {
|
|
151
151
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
152
152
|
let r = e.indexOf(t, n);
|
|
153
153
|
return r !== -1 && r === n;
|
|
154
|
-
},
|
|
154
|
+
}, We = (e) => {
|
|
155
155
|
if (!e) return null;
|
|
156
|
-
if (
|
|
156
|
+
if (ce(e)) return e;
|
|
157
157
|
let t = e.length;
|
|
158
|
-
if (!
|
|
158
|
+
if (!fe(t)) return null;
|
|
159
159
|
let n = Array(t);
|
|
160
160
|
for (; t-- > 0;) n[t] = e[t];
|
|
161
161
|
return n;
|
|
162
|
-
},
|
|
163
|
-
let n = (e && e[
|
|
162
|
+
}, Ge = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && re(Uint8Array)), Ke = (e, t) => {
|
|
163
|
+
let n = (e && e[ie]).call(e), r;
|
|
164
164
|
for (; (r = n.next()) && !r.done;) {
|
|
165
165
|
let n = r.value;
|
|
166
166
|
t.call(e, n[0], n[1]);
|
|
167
167
|
}
|
|
168
|
-
},
|
|
168
|
+
}, qe = (e, t) => {
|
|
169
169
|
let n, r = [];
|
|
170
170
|
for (; (n = e.exec(t)) !== null;) r.push(n);
|
|
171
171
|
return r;
|
|
172
|
-
},
|
|
172
|
+
}, Je = L("HTMLFormElement"), Ye = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, t, n) {
|
|
173
173
|
return t.toUpperCase() + n;
|
|
174
|
-
}),
|
|
174
|
+
}), Xe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ze = L("RegExp"), Qe = (e, t) => {
|
|
175
175
|
let n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
176
|
-
|
|
176
|
+
Pe(n, (n, i) => {
|
|
177
177
|
let a;
|
|
178
178
|
(a = t(n, i, e)) !== !1 && (r[i] = a || n);
|
|
179
179
|
}), Object.defineProperties(e, r);
|
|
180
|
-
},
|
|
181
|
-
|
|
182
|
-
if (
|
|
180
|
+
}, $e = (e) => {
|
|
181
|
+
Qe(e, (t, n) => {
|
|
182
|
+
if (B(e) && [
|
|
183
183
|
"arguments",
|
|
184
184
|
"caller",
|
|
185
185
|
"callee"
|
|
186
186
|
].indexOf(n) !== -1) return !1;
|
|
187
187
|
let r = e[n];
|
|
188
|
-
if (
|
|
188
|
+
if (B(r)) {
|
|
189
189
|
if (t.enumerable = !1, "writable" in t) {
|
|
190
190
|
t.writable = !1;
|
|
191
191
|
return;
|
|
@@ -195,99 +195,99 @@ var Be = (e, t, n, { allOwnKeys: r } = {}) => (Fe(t, (t, r) => {
|
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
197
|
});
|
|
198
|
-
},
|
|
198
|
+
}, et = (e, t) => {
|
|
199
199
|
let n = {}, r = (e) => {
|
|
200
200
|
e.forEach((e) => {
|
|
201
201
|
n[e] = !0;
|
|
202
202
|
});
|
|
203
203
|
};
|
|
204
|
-
return
|
|
205
|
-
},
|
|
206
|
-
function
|
|
207
|
-
return !!(e &&
|
|
204
|
+
return ce(e) ? r(e) : r(String(e).split(t)), n;
|
|
205
|
+
}, tt = () => {}, nt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
206
|
+
function rt(e) {
|
|
207
|
+
return !!(e && B(e.append) && e[ae] === "FormData" && e[ie]);
|
|
208
208
|
}
|
|
209
|
-
var
|
|
209
|
+
var it = (e) => {
|
|
210
210
|
let t = Array(10), n = (e, r) => {
|
|
211
|
-
if (
|
|
211
|
+
if (pe(e)) {
|
|
212
212
|
if (t.indexOf(e) >= 0) return;
|
|
213
|
-
if (
|
|
213
|
+
if (ue(e)) return e;
|
|
214
214
|
if (!("toJSON" in e)) {
|
|
215
215
|
t[r] = e;
|
|
216
|
-
let i =
|
|
217
|
-
return
|
|
216
|
+
let i = ce(e) ? [] : {};
|
|
217
|
+
return Pe(e, (e, t) => {
|
|
218
218
|
let a = n(e, r + 1);
|
|
219
|
-
!
|
|
219
|
+
!le(a) && (i[t] = a);
|
|
220
220
|
}), t[r] = void 0, i;
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
return e;
|
|
224
224
|
};
|
|
225
225
|
return n(e, 0);
|
|
226
|
-
},
|
|
227
|
-
n ===
|
|
226
|
+
}, at = L("AsyncFunction"), ot = (e) => e && (pe(e) || B(e)) && B(e.then) && B(e.catch), st = ((e, t) => e ? setImmediate : t ? ((e, t) => (Ie.addEventListener("message", ({ source: n, data: r }) => {
|
|
227
|
+
n === Ie && r === e && t.length && t.shift()();
|
|
228
228
|
}, !1), (n) => {
|
|
229
|
-
t.push(n),
|
|
230
|
-
}))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function",
|
|
231
|
-
isArray:
|
|
232
|
-
isArrayBuffer:
|
|
233
|
-
isBuffer:
|
|
234
|
-
isFormData:
|
|
235
|
-
isArrayBufferView:
|
|
236
|
-
isString:
|
|
237
|
-
isNumber:
|
|
238
|
-
isBoolean:
|
|
239
|
-
isObject:
|
|
240
|
-
isPlainObject:
|
|
241
|
-
isEmptyObject:
|
|
242
|
-
isReadableStream:
|
|
243
|
-
isRequest:
|
|
244
|
-
isResponse:
|
|
245
|
-
isHeaders:
|
|
246
|
-
isUndefined:
|
|
247
|
-
isDate:
|
|
248
|
-
isFile:
|
|
249
|
-
isReactNativeBlob:
|
|
250
|
-
isReactNative:
|
|
251
|
-
isBlob:
|
|
252
|
-
isRegExp:
|
|
253
|
-
isFunction:
|
|
254
|
-
isStream:
|
|
255
|
-
isURLSearchParams:
|
|
256
|
-
isTypedArray:
|
|
257
|
-
isFileList:
|
|
258
|
-
forEach:
|
|
259
|
-
merge:
|
|
260
|
-
extend:
|
|
261
|
-
trim:
|
|
262
|
-
stripBOM:
|
|
263
|
-
inherits:
|
|
264
|
-
toFlatObject:
|
|
265
|
-
kindOf:
|
|
266
|
-
kindOfTest:
|
|
267
|
-
endsWith:
|
|
268
|
-
toArray:
|
|
269
|
-
forEachEntry:
|
|
270
|
-
matchAll:
|
|
271
|
-
isHTMLForm:
|
|
272
|
-
hasOwnProperty:
|
|
273
|
-
hasOwnProp:
|
|
274
|
-
reduceDescriptors:
|
|
275
|
-
freezeMethods:
|
|
276
|
-
toObjectSet:
|
|
277
|
-
toCamelCase:
|
|
278
|
-
noop:
|
|
279
|
-
toFiniteNumber:
|
|
280
|
-
findKey:
|
|
281
|
-
global:
|
|
282
|
-
isContextDefined:
|
|
283
|
-
isSpecCompliantForm:
|
|
284
|
-
toJSONObject:
|
|
285
|
-
isAsyncFn:
|
|
286
|
-
isThenable:
|
|
287
|
-
setImmediate:
|
|
288
|
-
asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
289
|
-
isIterable: (e) => e != null &&
|
|
290
|
-
},
|
|
229
|
+
t.push(n), Ie.postMessage(e, "*");
|
|
230
|
+
}))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function", B(Ie.postMessage)), V = {
|
|
231
|
+
isArray: ce,
|
|
232
|
+
isArrayBuffer: R,
|
|
233
|
+
isBuffer: ue,
|
|
234
|
+
isFormData: De,
|
|
235
|
+
isArrayBufferView: de,
|
|
236
|
+
isString: z,
|
|
237
|
+
isNumber: fe,
|
|
238
|
+
isBoolean: me,
|
|
239
|
+
isObject: pe,
|
|
240
|
+
isPlainObject: he,
|
|
241
|
+
isEmptyObject: ge,
|
|
242
|
+
isReadableStream: ke,
|
|
243
|
+
isRequest: Ae,
|
|
244
|
+
isResponse: je,
|
|
245
|
+
isHeaders: Me,
|
|
246
|
+
isUndefined: le,
|
|
247
|
+
isDate: _e,
|
|
248
|
+
isFile: ve,
|
|
249
|
+
isReactNativeBlob: ye,
|
|
250
|
+
isReactNative: be,
|
|
251
|
+
isBlob: xe,
|
|
252
|
+
isRegExp: Ze,
|
|
253
|
+
isFunction: B,
|
|
254
|
+
isStream: Ce,
|
|
255
|
+
isURLSearchParams: Oe,
|
|
256
|
+
isTypedArray: Ge,
|
|
257
|
+
isFileList: Se,
|
|
258
|
+
forEach: Pe,
|
|
259
|
+
merge: Re,
|
|
260
|
+
extend: ze,
|
|
261
|
+
trim: Ne,
|
|
262
|
+
stripBOM: Be,
|
|
263
|
+
inherits: Ve,
|
|
264
|
+
toFlatObject: He,
|
|
265
|
+
kindOf: oe,
|
|
266
|
+
kindOfTest: L,
|
|
267
|
+
endsWith: Ue,
|
|
268
|
+
toArray: We,
|
|
269
|
+
forEachEntry: Ke,
|
|
270
|
+
matchAll: qe,
|
|
271
|
+
isHTMLForm: Je,
|
|
272
|
+
hasOwnProperty: Xe,
|
|
273
|
+
hasOwnProp: Xe,
|
|
274
|
+
reduceDescriptors: Qe,
|
|
275
|
+
freezeMethods: $e,
|
|
276
|
+
toObjectSet: et,
|
|
277
|
+
toCamelCase: Ye,
|
|
278
|
+
noop: tt,
|
|
279
|
+
toFiniteNumber: nt,
|
|
280
|
+
findKey: Fe,
|
|
281
|
+
global: Ie,
|
|
282
|
+
isContextDefined: Le,
|
|
283
|
+
isSpecCompliantForm: rt,
|
|
284
|
+
toJSONObject: it,
|
|
285
|
+
isAsyncFn: at,
|
|
286
|
+
isThenable: ot,
|
|
287
|
+
setImmediate: st,
|
|
288
|
+
asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(Ie) : typeof process < "u" && process.nextTick || st,
|
|
289
|
+
isIterable: (e) => e != null && B(e[ie])
|
|
290
|
+
}, H = class e extends Error {
|
|
291
291
|
static from(t, n, r, i, a, o) {
|
|
292
292
|
let s = new e(t.message, n || t.code, r, i, a);
|
|
293
293
|
return s.cause = t, s.name = t.name, t.status != null && s.status == null && (s.status = t.status), o && Object.assign(s, o), s;
|
|
@@ -310,80 +310,80 @@ var at = (e) => {
|
|
|
310
310
|
lineNumber: this.lineNumber,
|
|
311
311
|
columnNumber: this.columnNumber,
|
|
312
312
|
stack: this.stack,
|
|
313
|
-
config:
|
|
313
|
+
config: V.toJSONObject(this.config),
|
|
314
314
|
code: this.code,
|
|
315
315
|
status: this.status
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
318
|
};
|
|
319
|
-
|
|
319
|
+
H.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE", H.ERR_BAD_OPTION = "ERR_BAD_OPTION", H.ECONNABORTED = "ECONNABORTED", H.ETIMEDOUT = "ETIMEDOUT", H.ERR_NETWORK = "ERR_NETWORK", H.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS", H.ERR_DEPRECATED = "ERR_DEPRECATED", H.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE", H.ERR_BAD_REQUEST = "ERR_BAD_REQUEST", H.ERR_CANCELED = "ERR_CANCELED", H.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT", H.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
320
320
|
//#endregion
|
|
321
321
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/toFormData.js
|
|
322
|
-
function
|
|
323
|
-
return
|
|
322
|
+
function ct(e) {
|
|
323
|
+
return V.isPlainObject(e) || V.isArray(e);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
326
|
-
return
|
|
325
|
+
function lt(e) {
|
|
326
|
+
return V.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function ut(e, t, n) {
|
|
329
329
|
return e ? e.concat(t).map(function(e, t) {
|
|
330
|
-
return e =
|
|
330
|
+
return e = lt(e), !n && t ? "[" + e + "]" : e;
|
|
331
331
|
}).join(n ? "." : "") : t;
|
|
332
332
|
}
|
|
333
|
-
function
|
|
334
|
-
return
|
|
333
|
+
function dt(e) {
|
|
334
|
+
return V.isArray(e) && !e.some(ct);
|
|
335
335
|
}
|
|
336
|
-
var
|
|
336
|
+
var ft = V.toFlatObject(V, {}, null, function(e) {
|
|
337
337
|
return /^is[A-Z]/.test(e);
|
|
338
338
|
});
|
|
339
|
-
function
|
|
340
|
-
if (!
|
|
341
|
-
t ||= new FormData(), n =
|
|
339
|
+
function pt(e, t, n) {
|
|
340
|
+
if (!V.isObject(e)) throw TypeError("target must be an object");
|
|
341
|
+
t ||= new FormData(), n = V.toFlatObject(n, {
|
|
342
342
|
metaTokens: !0,
|
|
343
343
|
dots: !1,
|
|
344
344
|
indexes: !1
|
|
345
345
|
}, !1, function(e, t) {
|
|
346
|
-
return !
|
|
346
|
+
return !V.isUndefined(t[e]);
|
|
347
347
|
});
|
|
348
|
-
let r = n.metaTokens, i = n.visitor || l, a = n.dots, o = n.indexes, s = (n.Blob || typeof Blob < "u" && Blob) &&
|
|
349
|
-
if (!
|
|
348
|
+
let r = n.metaTokens, i = n.visitor || l, a = n.dots, o = n.indexes, s = (n.Blob || typeof Blob < "u" && Blob) && V.isSpecCompliantForm(t);
|
|
349
|
+
if (!V.isFunction(i)) throw TypeError("visitor must be a function");
|
|
350
350
|
function c(e) {
|
|
351
351
|
if (e === null) return "";
|
|
352
|
-
if (
|
|
353
|
-
if (
|
|
354
|
-
if (!s &&
|
|
355
|
-
return
|
|
352
|
+
if (V.isDate(e)) return e.toISOString();
|
|
353
|
+
if (V.isBoolean(e)) return e.toString();
|
|
354
|
+
if (!s && V.isBlob(e)) throw new H("Blob is not supported. Use a Buffer instead.");
|
|
355
|
+
return V.isArrayBuffer(e) || V.isTypedArray(e) ? s && typeof Blob == "function" ? new Blob([e]) : Buffer.from(e) : e;
|
|
356
356
|
}
|
|
357
357
|
function l(e, n, i) {
|
|
358
358
|
let s = e;
|
|
359
|
-
if (
|
|
359
|
+
if (V.isReactNative(t) && V.isReactNativeBlob(e)) return t.append(ut(i, n, a), c(e)), !1;
|
|
360
360
|
if (e && !i && typeof e == "object") {
|
|
361
|
-
if (
|
|
362
|
-
else if (
|
|
363
|
-
!(
|
|
361
|
+
if (V.endsWith(n, "{}")) n = r ? n : n.slice(0, -2), e = JSON.stringify(e);
|
|
362
|
+
else if (V.isArray(e) && dt(e) || (V.isFileList(e) || V.endsWith(n, "[]")) && (s = V.toArray(e))) return n = lt(n), s.forEach(function(e, r) {
|
|
363
|
+
!(V.isUndefined(e) || e === null) && t.append(o === !0 ? ut([n], r, a) : o === null ? n : n + "[]", c(e));
|
|
364
364
|
}), !1;
|
|
365
365
|
}
|
|
366
|
-
return
|
|
366
|
+
return ct(e) ? !0 : (t.append(ut(i, n, a), c(e)), !1);
|
|
367
367
|
}
|
|
368
|
-
let u = [], d = Object.assign(
|
|
368
|
+
let u = [], d = Object.assign(ft, {
|
|
369
369
|
defaultVisitor: l,
|
|
370
370
|
convertValue: c,
|
|
371
|
-
isVisitable:
|
|
371
|
+
isVisitable: ct
|
|
372
372
|
});
|
|
373
373
|
function f(e, n) {
|
|
374
|
-
if (!
|
|
374
|
+
if (!V.isUndefined(e)) {
|
|
375
375
|
if (u.indexOf(e) !== -1) throw Error("Circular reference detected in " + n.join("."));
|
|
376
|
-
u.push(e),
|
|
377
|
-
(!(
|
|
376
|
+
u.push(e), V.forEach(e, function(e, r) {
|
|
377
|
+
(!(V.isUndefined(e) || e === null) && i.call(t, e, V.isString(r) ? r.trim() : r, n, d)) === !0 && f(e, n ? n.concat(r) : [r]);
|
|
378
378
|
}), u.pop();
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
-
if (!
|
|
381
|
+
if (!V.isObject(e)) throw TypeError("data must be an object");
|
|
382
382
|
return f(e), t;
|
|
383
383
|
}
|
|
384
384
|
//#endregion
|
|
385
385
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
386
|
-
function
|
|
386
|
+
function mt(e) {
|
|
387
387
|
let t = {
|
|
388
388
|
"!": "%21",
|
|
389
389
|
"'": "%27",
|
|
@@ -397,29 +397,29 @@ function ht(e) {
|
|
|
397
397
|
return t[e];
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
this._pairs = [], e &&
|
|
400
|
+
function ht(e, t) {
|
|
401
|
+
this._pairs = [], e && pt(e, this, t);
|
|
402
402
|
}
|
|
403
|
-
var
|
|
404
|
-
|
|
403
|
+
var gt = ht.prototype;
|
|
404
|
+
gt.append = function(e, t) {
|
|
405
405
|
this._pairs.push([e, t]);
|
|
406
|
-
},
|
|
406
|
+
}, gt.toString = function(e) {
|
|
407
407
|
let t = e ? function(t) {
|
|
408
|
-
return e.call(this, t,
|
|
409
|
-
} :
|
|
408
|
+
return e.call(this, t, mt);
|
|
409
|
+
} : mt;
|
|
410
410
|
return this._pairs.map(function(e) {
|
|
411
411
|
return t(e[0]) + "=" + t(e[1]);
|
|
412
412
|
}, "").join("&");
|
|
413
413
|
};
|
|
414
414
|
//#endregion
|
|
415
415
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/buildURL.js
|
|
416
|
-
function
|
|
416
|
+
function _t(e) {
|
|
417
417
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function vt(e, t, n) {
|
|
420
420
|
if (!t) return e;
|
|
421
|
-
let r = n && n.encode ||
|
|
422
|
-
if (o = a ? a(t, i) :
|
|
421
|
+
let r = n && n.encode || _t, i = V.isFunction(n) ? { serialize: n } : n, a = i && i.serialize, o;
|
|
422
|
+
if (o = a ? a(t, i) : V.isURLSearchParams(t) ? t.toString() : new ht(t, i).toString(r), o) {
|
|
423
423
|
let t = e.indexOf("#");
|
|
424
424
|
t !== -1 && (e = e.slice(0, t)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
425
425
|
}
|
|
@@ -427,7 +427,7 @@ function yt(e, t, n) {
|
|
|
427
427
|
}
|
|
428
428
|
//#endregion
|
|
429
429
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/core/InterceptorManager.js
|
|
430
|
-
var
|
|
430
|
+
var yt = class {
|
|
431
431
|
constructor() {
|
|
432
432
|
this.handlers = [];
|
|
433
433
|
}
|
|
@@ -446,19 +446,19 @@ var bt = class {
|
|
|
446
446
|
this.handlers &&= [];
|
|
447
447
|
}
|
|
448
448
|
forEach(e) {
|
|
449
|
-
|
|
449
|
+
V.forEach(this.handlers, function(t) {
|
|
450
450
|
t !== null && e(t);
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
|
-
},
|
|
453
|
+
}, bt = {
|
|
454
454
|
silentJSONParsing: !0,
|
|
455
455
|
forcedJSONParsing: !0,
|
|
456
456
|
clarifyTimeoutError: !1,
|
|
457
457
|
legacyInterceptorReqResOrdering: !0
|
|
458
|
-
},
|
|
458
|
+
}, xt = {
|
|
459
459
|
isBrowser: !0,
|
|
460
460
|
classes: {
|
|
461
|
-
URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams :
|
|
461
|
+
URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams : ht,
|
|
462
462
|
FormData: typeof FormData < "u" ? FormData : null,
|
|
463
463
|
Blob: typeof Blob < "u" ? Blob : null
|
|
464
464
|
},
|
|
@@ -470,97 +470,97 @@ var bt = class {
|
|
|
470
470
|
"url",
|
|
471
471
|
"data"
|
|
472
472
|
]
|
|
473
|
-
},
|
|
474
|
-
hasBrowserEnv: () =>
|
|
475
|
-
hasStandardBrowserEnv: () =>
|
|
476
|
-
hasStandardBrowserWebWorkerEnv: () =>
|
|
477
|
-
navigator: () =>
|
|
478
|
-
origin: () =>
|
|
479
|
-
}),
|
|
473
|
+
}, St = /* @__PURE__ */ N({
|
|
474
|
+
hasBrowserEnv: () => Ct,
|
|
475
|
+
hasStandardBrowserEnv: () => Tt,
|
|
476
|
+
hasStandardBrowserWebWorkerEnv: () => Et,
|
|
477
|
+
navigator: () => wt,
|
|
478
|
+
origin: () => Dt
|
|
479
|
+
}), Ct = typeof window < "u" && typeof document < "u", wt = typeof navigator == "object" && navigator || void 0, Tt = Ct && (!wt || [
|
|
480
480
|
"ReactNative",
|
|
481
481
|
"NativeScript",
|
|
482
482
|
"NS"
|
|
483
|
-
].indexOf(
|
|
484
|
-
...
|
|
485
|
-
...
|
|
483
|
+
].indexOf(wt.product) < 0), Et = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Dt = Ct && window.location.href || "http://localhost", U = {
|
|
484
|
+
...St,
|
|
485
|
+
...xt
|
|
486
486
|
};
|
|
487
487
|
//#endregion
|
|
488
488
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
489
|
-
function
|
|
490
|
-
return
|
|
489
|
+
function Ot(e, t) {
|
|
490
|
+
return pt(e, new U.classes.URLSearchParams(), {
|
|
491
491
|
visitor: function(e, t, n, r) {
|
|
492
|
-
return
|
|
492
|
+
return U.isNode && V.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
|
|
493
493
|
},
|
|
494
494
|
...t
|
|
495
495
|
});
|
|
496
496
|
}
|
|
497
497
|
//#endregion
|
|
498
498
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
499
|
-
function
|
|
500
|
-
return
|
|
499
|
+
function kt(e) {
|
|
500
|
+
return V.matchAll(/\w+|\[(\w*)]/g, e).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function At(e) {
|
|
503
503
|
let t = {}, n = Object.keys(e), r, i = n.length, a;
|
|
504
504
|
for (r = 0; r < i; r++) a = n[r], t[a] = e[a];
|
|
505
505
|
return t;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function jt(e) {
|
|
508
508
|
function t(e, n, r, i) {
|
|
509
509
|
let a = e[i++];
|
|
510
510
|
if (a === "__proto__") return !0;
|
|
511
511
|
let o = Number.isFinite(+a), s = i >= e.length;
|
|
512
|
-
return a = !a &&
|
|
512
|
+
return a = !a && V.isArray(r) ? r.length : a, s ? (V.hasOwnProp(r, a) ? r[a] = [r[a], n] : r[a] = n, !o) : ((!r[a] || !V.isObject(r[a])) && (r[a] = []), t(e, n, r[a], i) && V.isArray(r[a]) && (r[a] = At(r[a])), !o);
|
|
513
513
|
}
|
|
514
|
-
if (
|
|
514
|
+
if (V.isFormData(e) && V.isFunction(e.entries)) {
|
|
515
515
|
let n = {};
|
|
516
|
-
return
|
|
517
|
-
t(
|
|
516
|
+
return V.forEachEntry(e, (e, r) => {
|
|
517
|
+
t(kt(e), r, n, 0);
|
|
518
518
|
}), n;
|
|
519
519
|
}
|
|
520
520
|
return null;
|
|
521
521
|
}
|
|
522
522
|
//#endregion
|
|
523
523
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/defaults/index.js
|
|
524
|
-
function
|
|
525
|
-
if (
|
|
526
|
-
return (t || JSON.parse)(e),
|
|
524
|
+
function Mt(e, t, n) {
|
|
525
|
+
if (V.isString(e)) try {
|
|
526
|
+
return (t || JSON.parse)(e), V.trim(e);
|
|
527
527
|
} catch (e) {
|
|
528
528
|
if (e.name !== "SyntaxError") throw e;
|
|
529
529
|
}
|
|
530
530
|
return (n || JSON.stringify)(e);
|
|
531
531
|
}
|
|
532
|
-
var
|
|
533
|
-
transitional:
|
|
532
|
+
var Nt = {
|
|
533
|
+
transitional: bt,
|
|
534
534
|
adapter: [
|
|
535
535
|
"xhr",
|
|
536
536
|
"http",
|
|
537
537
|
"fetch"
|
|
538
538
|
],
|
|
539
539
|
transformRequest: [function(e, t) {
|
|
540
|
-
let n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i =
|
|
541
|
-
if (i &&
|
|
542
|
-
if (
|
|
543
|
-
if (
|
|
544
|
-
if (
|
|
540
|
+
let n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i = V.isObject(e);
|
|
541
|
+
if (i && V.isHTMLForm(e) && (e = new FormData(e)), V.isFormData(e)) return r ? JSON.stringify(jt(e)) : e;
|
|
542
|
+
if (V.isArrayBuffer(e) || V.isBuffer(e) || V.isStream(e) || V.isFile(e) || V.isBlob(e) || V.isReadableStream(e)) return e;
|
|
543
|
+
if (V.isArrayBufferView(e)) return e.buffer;
|
|
544
|
+
if (V.isURLSearchParams(e)) return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
545
545
|
let a;
|
|
546
546
|
if (i) {
|
|
547
|
-
if (n.indexOf("application/x-www-form-urlencoded") > -1) return
|
|
548
|
-
if ((a =
|
|
547
|
+
if (n.indexOf("application/x-www-form-urlencoded") > -1) return Ot(e, this.formSerializer).toString();
|
|
548
|
+
if ((a = V.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
|
|
549
549
|
let t = this.env && this.env.FormData;
|
|
550
|
-
return
|
|
550
|
+
return pt(a ? { "files[]": e } : e, t && new t(), this.formSerializer);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
return i || r ? (t.setContentType("application/json", !1),
|
|
553
|
+
return i || r ? (t.setContentType("application/json", !1), Mt(e)) : e;
|
|
554
554
|
}],
|
|
555
555
|
transformResponse: [function(e) {
|
|
556
|
-
let t = this.transitional ||
|
|
557
|
-
if (
|
|
558
|
-
if (e &&
|
|
556
|
+
let t = this.transitional || Nt.transitional, n = t && t.forcedJSONParsing, r = this.responseType === "json";
|
|
557
|
+
if (V.isResponse(e) || V.isReadableStream(e)) return e;
|
|
558
|
+
if (e && V.isString(e) && (n && !this.responseType || r)) {
|
|
559
559
|
let n = !(t && t.silentJSONParsing) && r;
|
|
560
560
|
try {
|
|
561
561
|
return JSON.parse(e, this.parseReviver);
|
|
562
562
|
} catch (e) {
|
|
563
|
-
if (n) throw e.name === "SyntaxError" ?
|
|
563
|
+
if (n) throw e.name === "SyntaxError" ? H.from(e, H.ERR_BAD_RESPONSE, this, null, this.response) : e;
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
566
|
return e;
|
|
@@ -571,8 +571,8 @@ var Pt = {
|
|
|
571
571
|
maxContentLength: -1,
|
|
572
572
|
maxBodyLength: -1,
|
|
573
573
|
env: {
|
|
574
|
-
FormData:
|
|
575
|
-
Blob:
|
|
574
|
+
FormData: U.classes.FormData,
|
|
575
|
+
Blob: U.classes.Blob
|
|
576
576
|
},
|
|
577
577
|
validateStatus: function(e) {
|
|
578
578
|
return e >= 200 && e < 300;
|
|
@@ -582,7 +582,7 @@ var Pt = {
|
|
|
582
582
|
"Content-Type": void 0
|
|
583
583
|
} }
|
|
584
584
|
};
|
|
585
|
-
|
|
585
|
+
V.forEach([
|
|
586
586
|
"delete",
|
|
587
587
|
"get",
|
|
588
588
|
"head",
|
|
@@ -590,11 +590,11 @@ B.forEach([
|
|
|
590
590
|
"put",
|
|
591
591
|
"patch"
|
|
592
592
|
], (e) => {
|
|
593
|
-
|
|
593
|
+
Nt.headers[e] = {};
|
|
594
594
|
});
|
|
595
595
|
//#endregion
|
|
596
596
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/parseHeaders.js
|
|
597
|
-
var
|
|
597
|
+
var Pt = V.toObjectSet([
|
|
598
598
|
"age",
|
|
599
599
|
"authorization",
|
|
600
600
|
"content-length",
|
|
@@ -612,25 +612,25 @@ var Ft = B.toObjectSet([
|
|
|
612
612
|
"referer",
|
|
613
613
|
"retry-after",
|
|
614
614
|
"user-agent"
|
|
615
|
-
]),
|
|
615
|
+
]), Ft = (e) => {
|
|
616
616
|
let t = {}, n, r, i;
|
|
617
617
|
return e && e.split("\n").forEach(function(e) {
|
|
618
|
-
i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] &&
|
|
618
|
+
i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] && Pt[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
619
619
|
}), t;
|
|
620
|
-
},
|
|
621
|
-
function
|
|
620
|
+
}, It = Symbol("internals"), Lt = (e) => !/[\r\n]/.test(e);
|
|
621
|
+
function Rt(e, t) {
|
|
622
622
|
if (!(e === !1 || e == null)) {
|
|
623
|
-
if (
|
|
624
|
-
e.forEach((e) =>
|
|
623
|
+
if (V.isArray(e)) {
|
|
624
|
+
e.forEach((e) => Rt(e, t));
|
|
625
625
|
return;
|
|
626
626
|
}
|
|
627
|
-
if (!
|
|
627
|
+
if (!Lt(String(e))) throw Error(`Invalid character in header content ["${t}"]`);
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function zt(e) {
|
|
631
631
|
return e && String(e).trim().toLowerCase();
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function Bt(e) {
|
|
634
634
|
let t = e.length;
|
|
635
635
|
for (; t > 0;) {
|
|
636
636
|
let n = e.charCodeAt(t - 1);
|
|
@@ -639,27 +639,27 @@ function Vt(e) {
|
|
|
639
639
|
}
|
|
640
640
|
return t === e.length ? e : e.slice(0, t);
|
|
641
641
|
}
|
|
642
|
-
function
|
|
643
|
-
return e === !1 || e == null ? e :
|
|
642
|
+
function Vt(e) {
|
|
643
|
+
return e === !1 || e == null ? e : V.isArray(e) ? e.map(Vt) : Bt(String(e));
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function Ht(e) {
|
|
646
646
|
let t = Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g, r;
|
|
647
647
|
for (; r = n.exec(e);) t[r[1]] = r[2];
|
|
648
648
|
return t;
|
|
649
649
|
}
|
|
650
|
-
var
|
|
651
|
-
function
|
|
652
|
-
if (
|
|
653
|
-
if (i && (t = n),
|
|
654
|
-
if (
|
|
655
|
-
if (
|
|
650
|
+
var Ut = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
651
|
+
function Wt(e, t, n, r, i) {
|
|
652
|
+
if (V.isFunction(r)) return r.call(this, t, n);
|
|
653
|
+
if (i && (t = n), V.isString(t)) {
|
|
654
|
+
if (V.isString(r)) return t.indexOf(r) !== -1;
|
|
655
|
+
if (V.isRegExp(r)) return r.test(t);
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function Gt(e) {
|
|
659
659
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, n) => t.toUpperCase() + n);
|
|
660
660
|
}
|
|
661
|
-
function
|
|
662
|
-
let n =
|
|
661
|
+
function Kt(e, t) {
|
|
662
|
+
let n = V.toCamelCase(" " + t);
|
|
663
663
|
[
|
|
664
664
|
"get",
|
|
665
665
|
"set",
|
|
@@ -673,79 +673,79 @@ function qt(e, t) {
|
|
|
673
673
|
});
|
|
674
674
|
});
|
|
675
675
|
}
|
|
676
|
-
var
|
|
676
|
+
var W = class {
|
|
677
677
|
constructor(e) {
|
|
678
678
|
e && this.set(e);
|
|
679
679
|
}
|
|
680
680
|
set(e, t, n) {
|
|
681
681
|
let r = this;
|
|
682
682
|
function i(e, t, n) {
|
|
683
|
-
let i =
|
|
683
|
+
let i = zt(t);
|
|
684
684
|
if (!i) throw Error("header name must be a non-empty string");
|
|
685
|
-
let a =
|
|
686
|
-
(!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (
|
|
685
|
+
let a = V.findKey(r, i);
|
|
686
|
+
(!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (Rt(e, t), r[a || t] = Vt(e));
|
|
687
687
|
}
|
|
688
|
-
let a = (e, t) =>
|
|
689
|
-
if (
|
|
690
|
-
else if (
|
|
691
|
-
else if (
|
|
688
|
+
let a = (e, t) => V.forEach(e, (e, n) => i(e, n, t));
|
|
689
|
+
if (V.isPlainObject(e) || e instanceof this.constructor) a(e, t);
|
|
690
|
+
else if (V.isString(e) && (e = e.trim()) && !Ut(e)) a(Ft(e), t);
|
|
691
|
+
else if (V.isObject(e) && V.isIterable(e)) {
|
|
692
692
|
let n = {}, r, i;
|
|
693
693
|
for (let t of e) {
|
|
694
|
-
if (!
|
|
695
|
-
n[i = t[0]] = (r = n[i]) ?
|
|
694
|
+
if (!V.isArray(t)) throw TypeError("Object iterator must return a key-value pair");
|
|
695
|
+
n[i = t[0]] = (r = n[i]) ? V.isArray(r) ? [...r, t[1]] : [r, t[1]] : t[1];
|
|
696
696
|
}
|
|
697
697
|
a(n, t);
|
|
698
698
|
} else e != null && i(t, e, n);
|
|
699
699
|
return this;
|
|
700
700
|
}
|
|
701
701
|
get(e, t) {
|
|
702
|
-
if (e =
|
|
703
|
-
let n =
|
|
702
|
+
if (e = zt(e), e) {
|
|
703
|
+
let n = V.findKey(this, e);
|
|
704
704
|
if (n) {
|
|
705
705
|
let e = this[n];
|
|
706
706
|
if (!t) return e;
|
|
707
|
-
if (t === !0) return
|
|
708
|
-
if (
|
|
709
|
-
if (
|
|
707
|
+
if (t === !0) return Ht(e);
|
|
708
|
+
if (V.isFunction(t)) return t.call(this, e, n);
|
|
709
|
+
if (V.isRegExp(t)) return t.exec(e);
|
|
710
710
|
throw TypeError("parser must be boolean|regexp|function");
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
714
|
has(e, t) {
|
|
715
|
-
if (e =
|
|
716
|
-
let n =
|
|
717
|
-
return !!(n && this[n] !== void 0 && (!t ||
|
|
715
|
+
if (e = zt(e), e) {
|
|
716
|
+
let n = V.findKey(this, e);
|
|
717
|
+
return !!(n && this[n] !== void 0 && (!t || Wt(this, this[n], n, t)));
|
|
718
718
|
}
|
|
719
719
|
return !1;
|
|
720
720
|
}
|
|
721
721
|
delete(e, t) {
|
|
722
722
|
let n = this, r = !1;
|
|
723
723
|
function i(e) {
|
|
724
|
-
if (e =
|
|
725
|
-
let i =
|
|
726
|
-
i && (!t ||
|
|
724
|
+
if (e = zt(e), e) {
|
|
725
|
+
let i = V.findKey(n, e);
|
|
726
|
+
i && (!t || Wt(n, n[i], i, t)) && (delete n[i], r = !0);
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
|
-
return
|
|
729
|
+
return V.isArray(e) ? e.forEach(i) : i(e), r;
|
|
730
730
|
}
|
|
731
731
|
clear(e) {
|
|
732
732
|
let t = Object.keys(this), n = t.length, r = !1;
|
|
733
733
|
for (; n--;) {
|
|
734
734
|
let i = t[n];
|
|
735
|
-
(!e ||
|
|
735
|
+
(!e || Wt(this, this[i], i, e, !0)) && (delete this[i], r = !0);
|
|
736
736
|
}
|
|
737
737
|
return r;
|
|
738
738
|
}
|
|
739
739
|
normalize(e) {
|
|
740
740
|
let t = this, n = {};
|
|
741
|
-
return
|
|
742
|
-
let a =
|
|
741
|
+
return V.forEach(this, (r, i) => {
|
|
742
|
+
let a = V.findKey(n, i);
|
|
743
743
|
if (a) {
|
|
744
|
-
t[a] =
|
|
744
|
+
t[a] = Vt(r), delete t[i];
|
|
745
745
|
return;
|
|
746
746
|
}
|
|
747
|
-
let o = e ?
|
|
748
|
-
o !== i && delete t[i], t[o] =
|
|
747
|
+
let o = e ? Gt(i) : String(i).trim();
|
|
748
|
+
o !== i && delete t[i], t[o] = Vt(r), n[o] = !0;
|
|
749
749
|
}), this;
|
|
750
750
|
}
|
|
751
751
|
concat(...e) {
|
|
@@ -753,8 +753,8 @@ var U = class {
|
|
|
753
753
|
}
|
|
754
754
|
toJSON(e) {
|
|
755
755
|
let t = Object.create(null);
|
|
756
|
-
return
|
|
757
|
-
n != null && n !== !1 && (t[r] = e &&
|
|
756
|
+
return V.forEach(this, (n, r) => {
|
|
757
|
+
n != null && n !== !1 && (t[r] = e && V.isArray(n) ? n.join(", ") : n);
|
|
758
758
|
}), t;
|
|
759
759
|
}
|
|
760
760
|
[Symbol.iterator]() {
|
|
@@ -777,22 +777,22 @@ var U = class {
|
|
|
777
777
|
return t.forEach((e) => n.set(e)), n;
|
|
778
778
|
}
|
|
779
779
|
static accessor(e) {
|
|
780
|
-
let t = (this[
|
|
780
|
+
let t = (this[It] = this[It] = { accessors: {} }).accessors, n = this.prototype;
|
|
781
781
|
function r(e) {
|
|
782
|
-
let r =
|
|
783
|
-
t[r] || (
|
|
782
|
+
let r = zt(e);
|
|
783
|
+
t[r] || (Kt(n, e), t[r] = !0);
|
|
784
784
|
}
|
|
785
|
-
return
|
|
785
|
+
return V.isArray(e) ? e.forEach(r) : r(e), this;
|
|
786
786
|
}
|
|
787
787
|
};
|
|
788
|
-
|
|
788
|
+
W.accessor([
|
|
789
789
|
"Content-Type",
|
|
790
790
|
"Content-Length",
|
|
791
791
|
"Accept",
|
|
792
792
|
"Accept-Encoding",
|
|
793
793
|
"User-Agent",
|
|
794
794
|
"Authorization"
|
|
795
|
-
]),
|
|
795
|
+
]), V.reduceDescriptors(W.prototype, ({ value: e }, t) => {
|
|
796
796
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
797
797
|
return {
|
|
798
798
|
get: () => e,
|
|
@@ -800,42 +800,42 @@ U.accessor([
|
|
|
800
800
|
this[n] = e;
|
|
801
801
|
}
|
|
802
802
|
};
|
|
803
|
-
}),
|
|
803
|
+
}), V.freezeMethods(W);
|
|
804
804
|
//#endregion
|
|
805
805
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/core/transformData.js
|
|
806
|
-
function
|
|
807
|
-
let n = this ||
|
|
808
|
-
return
|
|
806
|
+
function qt(e, t) {
|
|
807
|
+
let n = this || Nt, r = t || n, i = W.from(r.headers), a = r.data;
|
|
808
|
+
return V.forEach(e, function(e) {
|
|
809
809
|
a = e.call(n, a, i.normalize(), t ? t.status : void 0);
|
|
810
810
|
}), i.normalize(), a;
|
|
811
811
|
}
|
|
812
812
|
//#endregion
|
|
813
813
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/cancel/isCancel.js
|
|
814
|
-
function
|
|
814
|
+
function Jt(e) {
|
|
815
815
|
return !!(e && e.__CANCEL__);
|
|
816
816
|
}
|
|
817
817
|
//#endregion
|
|
818
818
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/cancel/CanceledError.js
|
|
819
|
-
var
|
|
819
|
+
var Yt = class extends H {
|
|
820
820
|
constructor(e, t, n) {
|
|
821
|
-
super(e ?? "canceled",
|
|
821
|
+
super(e ?? "canceled", H.ERR_CANCELED, t, n), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
822
822
|
}
|
|
823
823
|
};
|
|
824
824
|
//#endregion
|
|
825
825
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/core/settle.js
|
|
826
|
-
function
|
|
826
|
+
function Xt(e, t, n) {
|
|
827
827
|
let r = n.config.validateStatus;
|
|
828
|
-
!n.status || !r || r(n.status) ? e(n) : t(new
|
|
828
|
+
!n.status || !r || r(n.status) ? e(n) : t(new H("Request failed with status code " + n.status, [H.ERR_BAD_REQUEST, H.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], n.config, n.request, n));
|
|
829
829
|
}
|
|
830
830
|
//#endregion
|
|
831
831
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/parseProtocol.js
|
|
832
|
-
function
|
|
832
|
+
function Zt(e) {
|
|
833
833
|
let t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
834
834
|
return t && t[1] || "";
|
|
835
835
|
}
|
|
836
836
|
//#endregion
|
|
837
837
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/speedometer.js
|
|
838
|
-
function
|
|
838
|
+
function Qt(e, t) {
|
|
839
839
|
e ||= 10;
|
|
840
840
|
let n = Array(e), r = Array(e), i = 0, a = 0, o;
|
|
841
841
|
return t = t === void 0 ? 1e3 : t, function(s) {
|
|
@@ -850,7 +850,7 @@ function $t(e, t) {
|
|
|
850
850
|
}
|
|
851
851
|
//#endregion
|
|
852
852
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/throttle.js
|
|
853
|
-
function
|
|
853
|
+
function $t(e, t) {
|
|
854
854
|
let n = 0, r = 1e3 / t, i, a, o = (t, r = Date.now()) => {
|
|
855
855
|
n = r, i = null, a &&= (clearTimeout(a), null), e(...t);
|
|
856
856
|
};
|
|
@@ -863,9 +863,9 @@ function en(e, t) {
|
|
|
863
863
|
}
|
|
864
864
|
//#endregion
|
|
865
865
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/progressEventReducer.js
|
|
866
|
-
var
|
|
867
|
-
let r = 0, i =
|
|
868
|
-
return
|
|
866
|
+
var en = (e, t, n = 3) => {
|
|
867
|
+
let r = 0, i = Qt(50, 250);
|
|
868
|
+
return $t((n) => {
|
|
869
869
|
let a = n.loaded, o = n.lengthComputable ? n.total : void 0, s = a - r, c = i(s), l = a <= o;
|
|
870
870
|
r = a, e({
|
|
871
871
|
loaded: a,
|
|
@@ -879,18 +879,18 @@ var tn = (e, t, n = 3) => {
|
|
|
879
879
|
[t ? "download" : "upload"]: !0
|
|
880
880
|
});
|
|
881
881
|
}, n);
|
|
882
|
-
},
|
|
882
|
+
}, tn = (e, t) => {
|
|
883
883
|
let n = e != null;
|
|
884
884
|
return [(r) => t[0]({
|
|
885
885
|
lengthComputable: n,
|
|
886
886
|
total: e,
|
|
887
887
|
loaded: r
|
|
888
888
|
}), t[1]];
|
|
889
|
-
},
|
|
889
|
+
}, nn = (e) => (...t) => V.asap(() => e(...t)), rn = U.hasStandardBrowserEnv ? ((e, t) => (n) => (n = new URL(n, U.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(new URL(U.origin), U.navigator && /(msie|trident)/i.test(U.navigator.userAgent)) : () => !0, an = U.hasStandardBrowserEnv ? {
|
|
890
890
|
write(e, t, n, r, i, a, o) {
|
|
891
891
|
if (typeof document > "u") return;
|
|
892
892
|
let s = [`${e}=${encodeURIComponent(t)}`];
|
|
893
|
-
|
|
893
|
+
V.isNumber(n) && s.push(`expires=${new Date(n).toUTCString()}`), V.isString(r) && s.push(`path=${r}`), V.isString(i) && s.push(`domain=${i}`), a === !0 && s.push("secure"), V.isString(o) && s.push(`SameSite=${o}`), document.cookie = s.join("; ");
|
|
894
894
|
},
|
|
895
895
|
read(e) {
|
|
896
896
|
if (typeof document > "u") return null;
|
|
@@ -909,39 +909,39 @@ var tn = (e, t, n = 3) => {
|
|
|
909
909
|
};
|
|
910
910
|
//#endregion
|
|
911
911
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
912
|
-
function
|
|
912
|
+
function on(e) {
|
|
913
913
|
return typeof e == "string" ? /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) : !1;
|
|
914
914
|
}
|
|
915
915
|
//#endregion
|
|
916
916
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/combineURLs.js
|
|
917
|
-
function
|
|
917
|
+
function sn(e, t) {
|
|
918
918
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
919
919
|
}
|
|
920
920
|
//#endregion
|
|
921
921
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/core/buildFullPath.js
|
|
922
|
-
function
|
|
923
|
-
let r = !
|
|
924
|
-
return e && (r || n == 0) ?
|
|
922
|
+
function cn(e, t, n) {
|
|
923
|
+
let r = !on(t);
|
|
924
|
+
return e && (r || n == 0) ? sn(e, t) : t;
|
|
925
925
|
}
|
|
926
926
|
//#endregion
|
|
927
927
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/core/mergeConfig.js
|
|
928
|
-
var
|
|
929
|
-
function
|
|
928
|
+
var ln = (e) => e instanceof W ? { ...e } : e;
|
|
929
|
+
function un(e, t) {
|
|
930
930
|
t ||= {};
|
|
931
931
|
let n = {};
|
|
932
932
|
function r(e, t, n, r) {
|
|
933
|
-
return
|
|
933
|
+
return V.isPlainObject(e) && V.isPlainObject(t) ? V.merge.call({ caseless: r }, e, t) : V.isPlainObject(t) ? V.merge({}, t) : V.isArray(t) ? t.slice() : t;
|
|
934
934
|
}
|
|
935
935
|
function i(e, t, n, i) {
|
|
936
|
-
if (!
|
|
937
|
-
if (!
|
|
936
|
+
if (!V.isUndefined(t)) return r(e, t, n, i);
|
|
937
|
+
if (!V.isUndefined(e)) return r(void 0, e, n, i);
|
|
938
938
|
}
|
|
939
939
|
function a(e, t) {
|
|
940
|
-
if (!
|
|
940
|
+
if (!V.isUndefined(t)) return r(void 0, t);
|
|
941
941
|
}
|
|
942
942
|
function o(e, t) {
|
|
943
|
-
if (!
|
|
944
|
-
if (!
|
|
943
|
+
if (!V.isUndefined(t)) return r(void 0, t);
|
|
944
|
+
if (!V.isUndefined(e)) return r(void 0, e);
|
|
945
945
|
}
|
|
946
946
|
function s(n, i, a) {
|
|
947
947
|
if (a in t) return r(n, i);
|
|
@@ -976,38 +976,38 @@ function dn(e, t) {
|
|
|
976
976
|
socketPath: o,
|
|
977
977
|
responseEncoding: o,
|
|
978
978
|
validateStatus: s,
|
|
979
|
-
headers: (e, t, n) => i(
|
|
979
|
+
headers: (e, t, n) => i(ln(e), ln(t), n, !0)
|
|
980
980
|
};
|
|
981
|
-
return
|
|
981
|
+
return V.forEach(Object.keys({
|
|
982
982
|
...e,
|
|
983
983
|
...t
|
|
984
984
|
}), function(r) {
|
|
985
985
|
if (r === "__proto__" || r === "constructor" || r === "prototype") return;
|
|
986
|
-
let a =
|
|
987
|
-
|
|
986
|
+
let a = V.hasOwnProp(c, r) ? c[r] : i, o = a(e[r], t[r], r);
|
|
987
|
+
V.isUndefined(o) && a !== s || (n[r] = o);
|
|
988
988
|
}), n;
|
|
989
989
|
}
|
|
990
990
|
//#endregion
|
|
991
991
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/resolveConfig.js
|
|
992
|
-
var
|
|
993
|
-
let t =
|
|
994
|
-
if (t.headers = o =
|
|
995
|
-
if (
|
|
996
|
-
else if (
|
|
992
|
+
var dn = (e) => {
|
|
993
|
+
let t = un({}, e), { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: s } = t;
|
|
994
|
+
if (t.headers = o = W.from(o), t.url = vt(cn(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), s && o.set("Authorization", "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))), V.isFormData(n)) {
|
|
995
|
+
if (U.hasStandardBrowserEnv || U.hasStandardBrowserWebWorkerEnv) o.setContentType(void 0);
|
|
996
|
+
else if (V.isFunction(n.getHeaders)) {
|
|
997
997
|
let e = n.getHeaders(), t = ["content-type", "content-length"];
|
|
998
998
|
Object.entries(e).forEach(([e, n]) => {
|
|
999
999
|
t.includes(e.toLowerCase()) && o.set(e, n);
|
|
1000
1000
|
});
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
1003
|
-
if (
|
|
1004
|
-
let e = i && a &&
|
|
1003
|
+
if (U.hasStandardBrowserEnv && (r && V.isFunction(r) && (r = r(t)), r || r !== !1 && rn(t.url))) {
|
|
1004
|
+
let e = i && a && an.read(a);
|
|
1005
1005
|
e && o.set(i, e);
|
|
1006
1006
|
}
|
|
1007
1007
|
return t;
|
|
1008
|
-
},
|
|
1008
|
+
}, fn = typeof XMLHttpRequest < "u" && function(e) {
|
|
1009
1009
|
return new Promise(function(t, n) {
|
|
1010
|
-
let r =
|
|
1010
|
+
let r = dn(e), i = r.data, a = W.from(r.headers).normalize(), { responseType: o, onUploadProgress: s, onDownloadProgress: c } = r, l, u, d, f, p;
|
|
1011
1011
|
function m() {
|
|
1012
1012
|
f && f(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(l), r.signal && r.signal.removeEventListener("abort", l);
|
|
1013
1013
|
}
|
|
@@ -1015,8 +1015,8 @@ var fn = (e) => {
|
|
|
1015
1015
|
h.open(r.method.toUpperCase(), r.url, !0), h.timeout = r.timeout;
|
|
1016
1016
|
function g() {
|
|
1017
1017
|
if (!h) return;
|
|
1018
|
-
let r =
|
|
1019
|
-
|
|
1018
|
+
let r = W.from("getAllResponseHeaders" in h && h.getAllResponseHeaders());
|
|
1019
|
+
Xt(function(e) {
|
|
1020
1020
|
t(e), m();
|
|
1021
1021
|
}, function(e) {
|
|
1022
1022
|
n(e), m();
|
|
@@ -1032,36 +1032,36 @@ var fn = (e) => {
|
|
|
1032
1032
|
"onloadend" in h ? h.onloadend = g : h.onreadystatechange = function() {
|
|
1033
1033
|
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(g);
|
|
1034
1034
|
}, h.onabort = function() {
|
|
1035
|
-
h &&= (n(new
|
|
1035
|
+
h &&= (n(new H("Request aborted", H.ECONNABORTED, e, h)), null);
|
|
1036
1036
|
}, h.onerror = function(t) {
|
|
1037
|
-
let r = new
|
|
1037
|
+
let r = new H(t && t.message ? t.message : "Network Error", H.ERR_NETWORK, e, h);
|
|
1038
1038
|
r.event = t || null, n(r), h = null;
|
|
1039
1039
|
}, h.ontimeout = function() {
|
|
1040
|
-
let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional ||
|
|
1041
|
-
r.timeoutErrorMessage && (t = r.timeoutErrorMessage), n(new
|
|
1042
|
-
}, i === void 0 && a.setContentType(null), "setRequestHeader" in h &&
|
|
1040
|
+
let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional || bt;
|
|
1041
|
+
r.timeoutErrorMessage && (t = r.timeoutErrorMessage), n(new H(t, i.clarifyTimeoutError ? H.ETIMEDOUT : H.ECONNABORTED, e, h)), h = null;
|
|
1042
|
+
}, i === void 0 && a.setContentType(null), "setRequestHeader" in h && V.forEach(a.toJSON(), function(e, t) {
|
|
1043
1043
|
h.setRequestHeader(t, e);
|
|
1044
|
-
}),
|
|
1045
|
-
h &&= (n(!t || t.type ? new
|
|
1044
|
+
}), V.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), o && o !== "json" && (h.responseType = r.responseType), c && ([d, p] = en(c, !0), h.addEventListener("progress", d)), s && h.upload && ([u, f] = en(s), h.upload.addEventListener("progress", u), h.upload.addEventListener("loadend", f)), (r.cancelToken || r.signal) && (l = (t) => {
|
|
1045
|
+
h &&= (n(!t || t.type ? new Yt(null, e, h) : t), h.abort(), null);
|
|
1046
1046
|
}, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
|
|
1047
|
-
let _ =
|
|
1048
|
-
if (_ &&
|
|
1049
|
-
n(new
|
|
1047
|
+
let _ = Zt(r.url);
|
|
1048
|
+
if (_ && U.protocols.indexOf(_) === -1) {
|
|
1049
|
+
n(new H("Unsupported protocol " + _ + ":", H.ERR_BAD_REQUEST, e));
|
|
1050
1050
|
return;
|
|
1051
1051
|
}
|
|
1052
1052
|
h.send(i || null);
|
|
1053
1053
|
});
|
|
1054
|
-
},
|
|
1054
|
+
}, pn = (e, t) => {
|
|
1055
1055
|
let { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1056
1056
|
if (t || n) {
|
|
1057
1057
|
let n = new AbortController(), r, i = function(e) {
|
|
1058
1058
|
if (!r) {
|
|
1059
1059
|
r = !0, o();
|
|
1060
1060
|
let t = e instanceof Error ? e : this.reason;
|
|
1061
|
-
n.abort(t instanceof
|
|
1061
|
+
n.abort(t instanceof H ? t : new Yt(t instanceof Error ? t.message : t));
|
|
1062
1062
|
}
|
|
1063
1063
|
}, a = t && setTimeout(() => {
|
|
1064
|
-
a = null, i(new
|
|
1064
|
+
a = null, i(new H(`timeout of ${t}ms exceeded`, H.ETIMEDOUT));
|
|
1065
1065
|
}, t), o = () => {
|
|
1066
1066
|
e &&= (a && clearTimeout(a), a = null, e.forEach((e) => {
|
|
1067
1067
|
e.unsubscribe ? e.unsubscribe(i) : e.removeEventListener("abort", i);
|
|
@@ -1069,9 +1069,9 @@ var fn = (e) => {
|
|
|
1069
1069
|
};
|
|
1070
1070
|
e.forEach((e) => e.addEventListener("abort", i));
|
|
1071
1071
|
let { signal: s } = n;
|
|
1072
|
-
return s.unsubscribe = () =>
|
|
1072
|
+
return s.unsubscribe = () => V.asap(o), s;
|
|
1073
1073
|
}
|
|
1074
|
-
},
|
|
1074
|
+
}, mn = function* (e, t) {
|
|
1075
1075
|
let n = e.byteLength;
|
|
1076
1076
|
if (!t || n < t) {
|
|
1077
1077
|
yield e;
|
|
@@ -1079,9 +1079,9 @@ var fn = (e) => {
|
|
|
1079
1079
|
}
|
|
1080
1080
|
let r = 0, i;
|
|
1081
1081
|
for (; r < n;) i = r + t, yield e.slice(r, i), r = i;
|
|
1082
|
-
},
|
|
1083
|
-
for await (let n of
|
|
1084
|
-
},
|
|
1082
|
+
}, hn = async function* (e, t) {
|
|
1083
|
+
for await (let n of gn(e)) yield* mn(n, t);
|
|
1084
|
+
}, gn = async function* (e) {
|
|
1085
1085
|
if (e[Symbol.asyncIterator]) {
|
|
1086
1086
|
yield* e;
|
|
1087
1087
|
return;
|
|
@@ -1096,8 +1096,8 @@ var fn = (e) => {
|
|
|
1096
1096
|
} finally {
|
|
1097
1097
|
await t.cancel();
|
|
1098
1098
|
}
|
|
1099
|
-
},
|
|
1100
|
-
let i =
|
|
1099
|
+
}, _n = (e, t, n, r) => {
|
|
1100
|
+
let i = hn(e, t), a = 0, o, s = (e) => {
|
|
1101
1101
|
o || (o = !0, r && r(e));
|
|
1102
1102
|
};
|
|
1103
1103
|
return new ReadableStream({
|
|
@@ -1118,21 +1118,21 @@ var fn = (e) => {
|
|
|
1118
1118
|
return s(e), i.return();
|
|
1119
1119
|
}
|
|
1120
1120
|
}, { highWaterMark: 2 });
|
|
1121
|
-
},
|
|
1121
|
+
}, vn = 64 * 1024, { isFunction: yn } = V, bn = (({ Request: e, Response: t }) => ({
|
|
1122
1122
|
Request: e,
|
|
1123
1123
|
Response: t
|
|
1124
|
-
}))(
|
|
1124
|
+
}))(V.global), { ReadableStream: xn, TextEncoder: Sn } = V.global, Cn = (e, ...t) => {
|
|
1125
1125
|
try {
|
|
1126
1126
|
return !!e(...t);
|
|
1127
1127
|
} catch {
|
|
1128
1128
|
return !1;
|
|
1129
1129
|
}
|
|
1130
|
-
},
|
|
1131
|
-
e =
|
|
1132
|
-
let { fetch: t, Request: n, Response: r } = e, i = t ?
|
|
1130
|
+
}, wn = (e) => {
|
|
1131
|
+
e = V.merge.call({ skipUndefined: !0 }, bn, e);
|
|
1132
|
+
let { fetch: t, Request: n, Response: r } = e, i = t ? yn(t) : typeof fetch == "function", a = yn(n), o = yn(r);
|
|
1133
1133
|
if (!i) return !1;
|
|
1134
|
-
let s = i &&
|
|
1135
|
-
let e = !1, t = new
|
|
1134
|
+
let s = i && yn(xn), c = i && (typeof Sn == "function" ? ((e) => (t) => e.encode(t))(new Sn()) : async (e) => new Uint8Array(await new n(e).arrayBuffer())), l = a && s && Cn(() => {
|
|
1135
|
+
let e = !1, t = new xn(), r = new n(U.origin, {
|
|
1136
1136
|
body: t,
|
|
1137
1137
|
method: "POST",
|
|
1138
1138
|
get duplex() {
|
|
@@ -1140,7 +1140,7 @@ var fn = (e) => {
|
|
|
1140
1140
|
}
|
|
1141
1141
|
}).headers.has("Content-Type");
|
|
1142
1142
|
return t.cancel(), e && !r;
|
|
1143
|
-
}), u = o && s &&
|
|
1143
|
+
}), u = o && s && Cn(() => V.isReadableStream(new r("").body)), d = { stream: u && ((e) => e.body) };
|
|
1144
1144
|
i && [
|
|
1145
1145
|
"text",
|
|
1146
1146
|
"arrayBuffer",
|
|
@@ -1151,23 +1151,23 @@ var fn = (e) => {
|
|
|
1151
1151
|
!d[e] && (d[e] = (t, n) => {
|
|
1152
1152
|
let r = t && t[e];
|
|
1153
1153
|
if (r) return r.call(t);
|
|
1154
|
-
throw new
|
|
1154
|
+
throw new H(`Response type '${e}' is not supported`, H.ERR_NOT_SUPPORT, n);
|
|
1155
1155
|
});
|
|
1156
1156
|
});
|
|
1157
1157
|
let f = async (e) => {
|
|
1158
1158
|
if (e == null) return 0;
|
|
1159
|
-
if (
|
|
1160
|
-
if (
|
|
1159
|
+
if (V.isBlob(e)) return e.size;
|
|
1160
|
+
if (V.isSpecCompliantForm(e)) return (await new n(U.origin, {
|
|
1161
1161
|
method: "POST",
|
|
1162
1162
|
body: e
|
|
1163
1163
|
}).arrayBuffer()).byteLength;
|
|
1164
|
-
if (
|
|
1165
|
-
if (
|
|
1166
|
-
}, p = async (e, t) =>
|
|
1164
|
+
if (V.isArrayBufferView(e) || V.isArrayBuffer(e)) return e.byteLength;
|
|
1165
|
+
if (V.isURLSearchParams(e) && (e += ""), V.isString(e)) return (await c(e)).byteLength;
|
|
1166
|
+
}, p = async (e, t) => V.toFiniteNumber(e.getContentLength()) ?? f(t);
|
|
1167
1167
|
return async (e) => {
|
|
1168
|
-
let { url: i, method: o, data: s, signal: c, cancelToken: f, timeout: m, onDownloadProgress: h, onUploadProgress: g, responseType: _, headers: v, withCredentials: y = "same-origin", fetchOptions: b } =
|
|
1168
|
+
let { url: i, method: o, data: s, signal: c, cancelToken: f, timeout: m, onDownloadProgress: h, onUploadProgress: g, responseType: _, headers: v, withCredentials: y = "same-origin", fetchOptions: b } = dn(e), x = t || fetch;
|
|
1169
1169
|
_ = _ ? (_ + "").toLowerCase() : "text";
|
|
1170
|
-
let S =
|
|
1170
|
+
let S = pn([c, f && f.toAbortSignal()], m), C = null, w = S && S.unsubscribe && (() => {
|
|
1171
1171
|
S.unsubscribe();
|
|
1172
1172
|
}), T;
|
|
1173
1173
|
try {
|
|
@@ -1177,12 +1177,12 @@ var fn = (e) => {
|
|
|
1177
1177
|
body: s,
|
|
1178
1178
|
duplex: "half"
|
|
1179
1179
|
}), t;
|
|
1180
|
-
if (
|
|
1181
|
-
let [t, n] =
|
|
1182
|
-
s =
|
|
1180
|
+
if (V.isFormData(s) && (t = e.headers.get("content-type")) && v.setContentType(t), e.body) {
|
|
1181
|
+
let [t, n] = tn(T, en(nn(g)));
|
|
1182
|
+
s = _n(e.body, vn, t, n);
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
1185
|
-
|
|
1185
|
+
V.isString(y) || (y = y ? "include" : "omit");
|
|
1186
1186
|
let t = a && "credentials" in n.prototype, c = {
|
|
1187
1187
|
...b,
|
|
1188
1188
|
signal: S,
|
|
@@ -1203,17 +1203,17 @@ var fn = (e) => {
|
|
|
1203
1203
|
].forEach((t) => {
|
|
1204
1204
|
e[t] = f[t];
|
|
1205
1205
|
});
|
|
1206
|
-
let t =
|
|
1207
|
-
f = new r(
|
|
1206
|
+
let t = V.toFiniteNumber(f.headers.get("content-length")), [n, i] = h && tn(t, en(nn(h), !0)) || [];
|
|
1207
|
+
f = new r(_n(f.body, vn, n, () => {
|
|
1208
1208
|
i && i(), w && w();
|
|
1209
1209
|
}), e);
|
|
1210
1210
|
}
|
|
1211
1211
|
_ ||= "text";
|
|
1212
|
-
let E = await d[
|
|
1212
|
+
let E = await d[V.findKey(d, _) || "text"](f, e);
|
|
1213
1213
|
return !m && w && w(), await new Promise((t, n) => {
|
|
1214
|
-
|
|
1214
|
+
Xt(t, n, {
|
|
1215
1215
|
data: E,
|
|
1216
|
-
headers:
|
|
1216
|
+
headers: W.from(f.headers),
|
|
1217
1217
|
status: f.status,
|
|
1218
1218
|
statusText: f.statusText,
|
|
1219
1219
|
config: e,
|
|
@@ -1221,27 +1221,27 @@ var fn = (e) => {
|
|
|
1221
1221
|
});
|
|
1222
1222
|
});
|
|
1223
1223
|
} catch (t) {
|
|
1224
|
-
throw w && w(), t && t.name === "TypeError" && /Load failed|fetch/i.test(t.message) ? Object.assign(new
|
|
1224
|
+
throw w && w(), t && t.name === "TypeError" && /Load failed|fetch/i.test(t.message) ? Object.assign(new H("Network Error", H.ERR_NETWORK, e, C, t && t.response), { cause: t.cause || t }) : H.from(t, t && t.code, e, C, t && t.response);
|
|
1225
1225
|
}
|
|
1226
1226
|
};
|
|
1227
|
-
},
|
|
1227
|
+
}, Tn = /* @__PURE__ */ new Map(), En = (e) => {
|
|
1228
1228
|
let t = e && e.env || {}, { fetch: n, Request: r, Response: i } = t, a = [
|
|
1229
1229
|
r,
|
|
1230
1230
|
i,
|
|
1231
1231
|
n
|
|
1232
|
-
], o = a.length, s, c, l =
|
|
1233
|
-
for (; o--;) s = a[o], c = l.get(s), c === void 0 && l.set(s, c = o ? /* @__PURE__ */ new Map() :
|
|
1232
|
+
], o = a.length, s, c, l = Tn;
|
|
1233
|
+
for (; o--;) s = a[o], c = l.get(s), c === void 0 && l.set(s, c = o ? /* @__PURE__ */ new Map() : wn(t)), l = c;
|
|
1234
1234
|
return c;
|
|
1235
1235
|
};
|
|
1236
|
-
|
|
1236
|
+
En();
|
|
1237
1237
|
//#endregion
|
|
1238
1238
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/adapters/adapters.js
|
|
1239
|
-
var
|
|
1239
|
+
var Dn = {
|
|
1240
1240
|
http: null,
|
|
1241
|
-
xhr:
|
|
1242
|
-
fetch: { get:
|
|
1241
|
+
xhr: fn,
|
|
1242
|
+
fetch: { get: En }
|
|
1243
1243
|
};
|
|
1244
|
-
|
|
1244
|
+
V.forEach(Dn, (e, t) => {
|
|
1245
1245
|
if (e) {
|
|
1246
1246
|
try {
|
|
1247
1247
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1249,46 +1249,46 @@ B.forEach(On, (e, t) => {
|
|
|
1249
1249
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1250
1250
|
}
|
|
1251
1251
|
});
|
|
1252
|
-
var
|
|
1253
|
-
function
|
|
1254
|
-
e =
|
|
1252
|
+
var On = (e) => `- ${e}`, kn = (e) => V.isFunction(e) || e === null || e === !1;
|
|
1253
|
+
function An(e, t) {
|
|
1254
|
+
e = V.isArray(e) ? e : [e];
|
|
1255
1255
|
let { length: n } = e, r, i, a = {};
|
|
1256
1256
|
for (let o = 0; o < n; o++) {
|
|
1257
1257
|
r = e[o];
|
|
1258
1258
|
let n;
|
|
1259
|
-
if (i = r, !
|
|
1260
|
-
if (i && (
|
|
1259
|
+
if (i = r, !kn(r) && (i = Dn[(n = String(r)).toLowerCase()], i === void 0)) throw new H(`Unknown adapter '${n}'`);
|
|
1260
|
+
if (i && (V.isFunction(i) || (i = i.get(t)))) break;
|
|
1261
1261
|
a[n || "#" + o] = i;
|
|
1262
1262
|
}
|
|
1263
1263
|
if (!i) {
|
|
1264
1264
|
let e = Object.entries(a).map(([e, t]) => `adapter ${e} ` + (t === !1 ? "is not supported by the environment" : "is not available in the build"));
|
|
1265
|
-
throw new
|
|
1265
|
+
throw new H("There is no suitable adapter to dispatch the request " + (n ? e.length > 1 ? "since :\n" + e.map(On).join("\n") : " " + On(e[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT");
|
|
1266
1266
|
}
|
|
1267
1267
|
return i;
|
|
1268
1268
|
}
|
|
1269
|
-
var
|
|
1270
|
-
getAdapter:
|
|
1271
|
-
adapters:
|
|
1269
|
+
var jn = {
|
|
1270
|
+
getAdapter: An,
|
|
1271
|
+
adapters: Dn
|
|
1272
1272
|
};
|
|
1273
1273
|
//#endregion
|
|
1274
1274
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/core/dispatchRequest.js
|
|
1275
|
-
function
|
|
1276
|
-
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new
|
|
1275
|
+
function Mn(e) {
|
|
1276
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new Yt(null, e);
|
|
1277
1277
|
}
|
|
1278
|
-
function
|
|
1279
|
-
return
|
|
1278
|
+
function Nn(e) {
|
|
1279
|
+
return Mn(e), e.headers = W.from(e.headers), e.data = qt.call(e, e.transformRequest), [
|
|
1280
1280
|
"post",
|
|
1281
1281
|
"put",
|
|
1282
1282
|
"patch"
|
|
1283
|
-
].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1284
|
-
return
|
|
1283
|
+
].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), jn.getAdapter(e.adapter || Nt.adapter, e)(e).then(function(t) {
|
|
1284
|
+
return Mn(e), t.data = qt.call(e, e.transformResponse, t), t.headers = W.from(t.headers), t;
|
|
1285
1285
|
}, function(t) {
|
|
1286
|
-
return
|
|
1286
|
+
return Jt(t) || (Mn(e), t && t.response && (t.response.data = qt.call(e, e.transformResponse, t.response), t.response.headers = W.from(t.response.headers))), Promise.reject(t);
|
|
1287
1287
|
});
|
|
1288
1288
|
}
|
|
1289
1289
|
//#endregion
|
|
1290
1290
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/env/data.js
|
|
1291
|
-
var
|
|
1291
|
+
var Pn = "1.15.0", Fn = {};
|
|
1292
1292
|
[
|
|
1293
1293
|
"object",
|
|
1294
1294
|
"boolean",
|
|
@@ -1297,43 +1297,43 @@ var Fn = "1.15.0", In = {};
|
|
|
1297
1297
|
"string",
|
|
1298
1298
|
"symbol"
|
|
1299
1299
|
].forEach((e, t) => {
|
|
1300
|
-
|
|
1300
|
+
Fn[e] = function(n) {
|
|
1301
1301
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1302
1302
|
};
|
|
1303
1303
|
});
|
|
1304
|
-
var
|
|
1305
|
-
|
|
1304
|
+
var In = {};
|
|
1305
|
+
Fn.transitional = function(e, t, n) {
|
|
1306
1306
|
function r(e, t) {
|
|
1307
|
-
return "[Axios v" +
|
|
1307
|
+
return "[Axios v" + Pn + "] Transitional option '" + e + "'" + t + (n ? ". " + n : "");
|
|
1308
1308
|
}
|
|
1309
1309
|
return (n, i, a) => {
|
|
1310
|
-
if (e === !1) throw new
|
|
1311
|
-
return t && !
|
|
1310
|
+
if (e === !1) throw new H(r(i, " has been removed" + (t ? " in " + t : "")), H.ERR_DEPRECATED);
|
|
1311
|
+
return t && !In[i] && (In[i] = !0, console.warn(r(i, " has been deprecated since v" + t + " and will be removed in the near future"))), e ? e(n, i, a) : !0;
|
|
1312
1312
|
};
|
|
1313
|
-
},
|
|
1313
|
+
}, Fn.spelling = function(e) {
|
|
1314
1314
|
return (t, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
|
|
1315
1315
|
};
|
|
1316
|
-
function
|
|
1317
|
-
if (typeof e != "object") throw new
|
|
1316
|
+
function Ln(e, t, n) {
|
|
1317
|
+
if (typeof e != "object") throw new H("options must be an object", H.ERR_BAD_OPTION_VALUE);
|
|
1318
1318
|
let r = Object.keys(e), i = r.length;
|
|
1319
1319
|
for (; i-- > 0;) {
|
|
1320
1320
|
let a = r[i], o = t[a];
|
|
1321
1321
|
if (o) {
|
|
1322
1322
|
let t = e[a], n = t === void 0 || o(t, a, e);
|
|
1323
|
-
if (n !== !0) throw new
|
|
1323
|
+
if (n !== !0) throw new H("option " + a + " must be " + n, H.ERR_BAD_OPTION_VALUE);
|
|
1324
1324
|
continue;
|
|
1325
1325
|
}
|
|
1326
|
-
if (n !== !0) throw new
|
|
1326
|
+
if (n !== !0) throw new H("Unknown option " + a, H.ERR_BAD_OPTION);
|
|
1327
1327
|
}
|
|
1328
1328
|
}
|
|
1329
|
-
var
|
|
1330
|
-
assertOptions:
|
|
1331
|
-
validators:
|
|
1332
|
-
},
|
|
1329
|
+
var Rn = {
|
|
1330
|
+
assertOptions: Ln,
|
|
1331
|
+
validators: Fn
|
|
1332
|
+
}, G = Rn.validators, zn = class {
|
|
1333
1333
|
constructor(e) {
|
|
1334
1334
|
this.defaults = e || {}, this.interceptors = {
|
|
1335
|
-
request: new
|
|
1336
|
-
response: new
|
|
1335
|
+
request: new yt(),
|
|
1336
|
+
response: new yt()
|
|
1337
1337
|
};
|
|
1338
1338
|
}
|
|
1339
1339
|
async request(e, t) {
|
|
@@ -1360,22 +1360,22 @@ var zn = {
|
|
|
1360
1360
|
}
|
|
1361
1361
|
}
|
|
1362
1362
|
_request(e, t) {
|
|
1363
|
-
typeof e == "string" ? (t ||= {}, t.url = e) : t = e || {}, t =
|
|
1363
|
+
typeof e == "string" ? (t ||= {}, t.url = e) : t = e || {}, t = un(this.defaults, t);
|
|
1364
1364
|
let { transitional: n, paramsSerializer: r, headers: i } = t;
|
|
1365
|
-
n !== void 0 &&
|
|
1366
|
-
silentJSONParsing:
|
|
1367
|
-
forcedJSONParsing:
|
|
1368
|
-
clarifyTimeoutError:
|
|
1369
|
-
legacyInterceptorReqResOrdering:
|
|
1370
|
-
}, !1), r != null && (
|
|
1371
|
-
encode:
|
|
1372
|
-
serialize:
|
|
1373
|
-
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls),
|
|
1374
|
-
baseUrl:
|
|
1375
|
-
withXsrfToken:
|
|
1365
|
+
n !== void 0 && Rn.assertOptions(n, {
|
|
1366
|
+
silentJSONParsing: G.transitional(G.boolean),
|
|
1367
|
+
forcedJSONParsing: G.transitional(G.boolean),
|
|
1368
|
+
clarifyTimeoutError: G.transitional(G.boolean),
|
|
1369
|
+
legacyInterceptorReqResOrdering: G.transitional(G.boolean)
|
|
1370
|
+
}, !1), r != null && (V.isFunction(r) ? t.paramsSerializer = { serialize: r } : Rn.assertOptions(r, {
|
|
1371
|
+
encode: G.function,
|
|
1372
|
+
serialize: G.function
|
|
1373
|
+
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls), Rn.assertOptions(t, {
|
|
1374
|
+
baseUrl: G.spelling("baseURL"),
|
|
1375
|
+
withXsrfToken: G.spelling("withXSRFToken")
|
|
1376
1376
|
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
1377
|
-
let a = i &&
|
|
1378
|
-
i &&
|
|
1377
|
+
let a = i && V.merge(i.common, i[t.method]);
|
|
1378
|
+
i && V.forEach([
|
|
1379
1379
|
"delete",
|
|
1380
1380
|
"get",
|
|
1381
1381
|
"head",
|
|
@@ -1385,12 +1385,12 @@ var zn = {
|
|
|
1385
1385
|
"common"
|
|
1386
1386
|
], (e) => {
|
|
1387
1387
|
delete i[e];
|
|
1388
|
-
}), t.headers =
|
|
1388
|
+
}), t.headers = W.concat(a, i);
|
|
1389
1389
|
let o = [], s = !0;
|
|
1390
1390
|
this.interceptors.request.forEach(function(e) {
|
|
1391
1391
|
if (typeof e.runWhen == "function" && e.runWhen(t) === !1) return;
|
|
1392
1392
|
s &&= e.synchronous;
|
|
1393
|
-
let n = t.transitional ||
|
|
1393
|
+
let n = t.transitional || bt;
|
|
1394
1394
|
n && n.legacyInterceptorReqResOrdering ? o.unshift(e.fulfilled, e.rejected) : o.push(e.fulfilled, e.rejected);
|
|
1395
1395
|
});
|
|
1396
1396
|
let c = [];
|
|
@@ -1399,7 +1399,7 @@ var zn = {
|
|
|
1399
1399
|
});
|
|
1400
1400
|
let l, u = 0, d;
|
|
1401
1401
|
if (!s) {
|
|
1402
|
-
let e = [
|
|
1402
|
+
let e = [Nn.bind(this), void 0];
|
|
1403
1403
|
for (e.unshift(...o), e.push(...c), d = e.length, l = Promise.resolve(t); u < d;) l = l.then(e[u++], e[u++]);
|
|
1404
1404
|
return l;
|
|
1405
1405
|
}
|
|
@@ -1415,7 +1415,7 @@ var zn = {
|
|
|
1415
1415
|
}
|
|
1416
1416
|
}
|
|
1417
1417
|
try {
|
|
1418
|
-
l =
|
|
1418
|
+
l = Nn.call(this, f);
|
|
1419
1419
|
} catch (e) {
|
|
1420
1420
|
return Promise.reject(e);
|
|
1421
1421
|
}
|
|
@@ -1423,30 +1423,30 @@ var zn = {
|
|
|
1423
1423
|
return l;
|
|
1424
1424
|
}
|
|
1425
1425
|
getUri(e) {
|
|
1426
|
-
return e =
|
|
1426
|
+
return e = un(this.defaults, e), vt(cn(e.baseURL, e.url, e.allowAbsoluteUrls), e.params, e.paramsSerializer);
|
|
1427
1427
|
}
|
|
1428
1428
|
};
|
|
1429
|
-
|
|
1429
|
+
V.forEach([
|
|
1430
1430
|
"delete",
|
|
1431
1431
|
"get",
|
|
1432
1432
|
"head",
|
|
1433
1433
|
"options"
|
|
1434
1434
|
], function(e) {
|
|
1435
|
-
|
|
1436
|
-
return this.request(
|
|
1435
|
+
zn.prototype[e] = function(t, n) {
|
|
1436
|
+
return this.request(un(n || {}, {
|
|
1437
1437
|
method: e,
|
|
1438
1438
|
url: t,
|
|
1439
1439
|
data: (n || {}).data
|
|
1440
1440
|
}));
|
|
1441
1441
|
};
|
|
1442
|
-
}),
|
|
1442
|
+
}), V.forEach([
|
|
1443
1443
|
"post",
|
|
1444
1444
|
"put",
|
|
1445
1445
|
"patch"
|
|
1446
1446
|
], function(e) {
|
|
1447
1447
|
function t(t) {
|
|
1448
1448
|
return function(n, r, i) {
|
|
1449
|
-
return this.request(
|
|
1449
|
+
return this.request(un(i || {}, {
|
|
1450
1450
|
method: e,
|
|
1451
1451
|
headers: t ? { "Content-Type": "multipart/form-data" } : {},
|
|
1452
1452
|
url: n,
|
|
@@ -1454,11 +1454,11 @@ B.forEach([
|
|
|
1454
1454
|
}));
|
|
1455
1455
|
};
|
|
1456
1456
|
}
|
|
1457
|
-
|
|
1457
|
+
zn.prototype[e] = t(), zn.prototype[e + "Form"] = t(!0);
|
|
1458
1458
|
});
|
|
1459
1459
|
//#endregion
|
|
1460
1460
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/cancel/CancelToken.js
|
|
1461
|
-
var
|
|
1461
|
+
var Bn = class e {
|
|
1462
1462
|
constructor(e) {
|
|
1463
1463
|
if (typeof e != "function") throw TypeError("executor must be a function.");
|
|
1464
1464
|
let t;
|
|
@@ -1479,7 +1479,7 @@ var Vn = class e {
|
|
|
1479
1479
|
n.unsubscribe(t);
|
|
1480
1480
|
}, r;
|
|
1481
1481
|
}, e(function(e, r, i) {
|
|
1482
|
-
n.reason || (n.reason = new
|
|
1482
|
+
n.reason || (n.reason = new Yt(e, r, i), t(n.reason));
|
|
1483
1483
|
});
|
|
1484
1484
|
}
|
|
1485
1485
|
throwIfRequested() {
|
|
@@ -1515,19 +1515,19 @@ var Vn = class e {
|
|
|
1515
1515
|
};
|
|
1516
1516
|
//#endregion
|
|
1517
1517
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/spread.js
|
|
1518
|
-
function
|
|
1518
|
+
function Vn(e) {
|
|
1519
1519
|
return function(t) {
|
|
1520
1520
|
return e.apply(null, t);
|
|
1521
1521
|
};
|
|
1522
1522
|
}
|
|
1523
1523
|
//#endregion
|
|
1524
1524
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/isAxiosError.js
|
|
1525
|
-
function
|
|
1526
|
-
return
|
|
1525
|
+
function Hn(e) {
|
|
1526
|
+
return V.isObject(e) && e.isAxiosError === !0;
|
|
1527
1527
|
}
|
|
1528
1528
|
//#endregion
|
|
1529
1529
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
1530
|
-
var
|
|
1530
|
+
var Un = {
|
|
1531
1531
|
Continue: 100,
|
|
1532
1532
|
SwitchingProtocols: 101,
|
|
1533
1533
|
Processing: 102,
|
|
@@ -1598,37 +1598,37 @@ var Wn = {
|
|
|
1598
1598
|
SslHandshakeFailed: 525,
|
|
1599
1599
|
InvalidSslCertificate: 526
|
|
1600
1600
|
};
|
|
1601
|
-
Object.entries(
|
|
1602
|
-
|
|
1601
|
+
Object.entries(Un).forEach(([e, t]) => {
|
|
1602
|
+
Un[t] = e;
|
|
1603
1603
|
});
|
|
1604
1604
|
//#endregion
|
|
1605
1605
|
//#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/axios.js
|
|
1606
|
-
function
|
|
1607
|
-
let t = new
|
|
1608
|
-
return
|
|
1609
|
-
return
|
|
1606
|
+
function Wn(e) {
|
|
1607
|
+
let t = new zn(e), n = ne(zn.prototype.request, t);
|
|
1608
|
+
return V.extend(n, zn.prototype, t, { allOwnKeys: !0 }), V.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(t) {
|
|
1609
|
+
return Wn(un(e, t));
|
|
1610
1610
|
}, n;
|
|
1611
1611
|
}
|
|
1612
|
-
var
|
|
1613
|
-
|
|
1612
|
+
var K = Wn(Nt);
|
|
1613
|
+
K.Axios = zn, K.CanceledError = Yt, K.CancelToken = Bn, K.isCancel = Jt, K.VERSION = Pn, K.toFormData = pt, K.AxiosError = H, K.Cancel = K.CanceledError, K.all = function(e) {
|
|
1614
1614
|
return Promise.all(e);
|
|
1615
|
-
},
|
|
1615
|
+
}, K.spread = Vn, K.isAxiosError = Hn, K.mergeConfig = un, K.AxiosHeaders = W, K.formToJSON = (e) => jt(V.isHTMLForm(e) ? new FormData(e) : e), K.getAdapter = jn.getAdapter, K.HttpStatusCode = Un, K.default = K;
|
|
1616
1616
|
//#endregion
|
|
1617
1617
|
//#region src/api/data/baostock.ts
|
|
1618
|
-
function
|
|
1618
|
+
function Gn(e) {
|
|
1619
1619
|
if (/^\d{8}$/.test(e)) return `${e.slice(0, 4)}-${e.slice(4, 6)}-${e.slice(6, 8)}`;
|
|
1620
1620
|
if (/^\d{4}-\d{2}-\d{2}T/.test(e)) return e.slice(0, 10);
|
|
1621
1621
|
if (/^\d{4}-\d{2}-\d{2}$/.test(e)) return e;
|
|
1622
1622
|
let t = new Date(e);
|
|
1623
1623
|
return Number.isNaN(t.getTime()) ? e : t.toISOString().slice(0, 10);
|
|
1624
1624
|
}
|
|
1625
|
-
function
|
|
1625
|
+
function Kn(e) {
|
|
1626
1626
|
let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
|
|
1627
1627
|
if (!t) throw Error(`无法解析日期: ${e}`);
|
|
1628
1628
|
let n = Number(t[1]), r = Number(t[2]), i = Number(t[3]);
|
|
1629
1629
|
return Date.UTC(n, r - 1, i, -8, 0, 0, 0);
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1631
|
+
function qn(e) {
|
|
1632
1632
|
return e && {
|
|
1633
1633
|
daily: "d",
|
|
1634
1634
|
weekly: "w",
|
|
@@ -1639,20 +1639,20 @@ function Jn(e) {
|
|
|
1639
1639
|
60: "60"
|
|
1640
1640
|
}[e] || "d";
|
|
1641
1641
|
}
|
|
1642
|
-
function
|
|
1642
|
+
function Jn(e) {
|
|
1643
1643
|
return e && {
|
|
1644
1644
|
qfq: "2",
|
|
1645
1645
|
hfq: "1",
|
|
1646
1646
|
none: "3"
|
|
1647
1647
|
}[e] || "3";
|
|
1648
1648
|
}
|
|
1649
|
-
function
|
|
1650
|
-
let t =
|
|
1649
|
+
function Yn(e) {
|
|
1650
|
+
let t = Gn(e.date), n = (e) => {
|
|
1651
1651
|
let t = parseFloat(e);
|
|
1652
1652
|
return Number.isNaN(t) ? 0 : t;
|
|
1653
1653
|
};
|
|
1654
1654
|
return {
|
|
1655
|
-
timestamp:
|
|
1655
|
+
timestamp: Kn(t),
|
|
1656
1656
|
stockCode: e.code,
|
|
1657
1657
|
open: n(e.open),
|
|
1658
1658
|
high: n(e.high),
|
|
@@ -1664,30 +1664,30 @@ function Xn(e) {
|
|
|
1664
1664
|
turnoverRate: n(e.turn)
|
|
1665
1665
|
};
|
|
1666
1666
|
}
|
|
1667
|
-
var
|
|
1668
|
-
async function
|
|
1669
|
-
let { timeout: t, ...n } = e, r = `${
|
|
1667
|
+
var Xn = "", Zn = "/api/stock/kdata";
|
|
1668
|
+
async function Qn(e) {
|
|
1669
|
+
let { timeout: t, ...n } = e, r = `${Xn}${Zn}`, i = {
|
|
1670
1670
|
stock_code: n.symbol,
|
|
1671
1671
|
start_date: n.start_date,
|
|
1672
1672
|
end_date: n.end_date,
|
|
1673
|
-
frequency:
|
|
1674
|
-
adjustflag:
|
|
1673
|
+
frequency: qn(n.period),
|
|
1674
|
+
adjustflag: Jn(n.adjust),
|
|
1675
1675
|
timeout: t
|
|
1676
1676
|
};
|
|
1677
1677
|
try {
|
|
1678
|
-
let e = (await
|
|
1678
|
+
let e = (await K.get(r, {
|
|
1679
1679
|
params: i,
|
|
1680
1680
|
timeout: t ? t * 1e3 : void 0
|
|
1681
1681
|
})).data;
|
|
1682
1682
|
if (!e.success) throw Error(`获取K线数据失败: ${e.error_msg || "未知错误"} (code: ${e.error_code})`);
|
|
1683
|
-
return !e.data || e.data.length === 0 ? [] : e.data.map(
|
|
1683
|
+
return !e.data || e.data.length === 0 ? [] : e.data.map(Yn).sort((e, t) => e.timestamp - t.timestamp);
|
|
1684
1684
|
} catch (e) {
|
|
1685
|
-
throw
|
|
1685
|
+
throw K.isAxiosError(e) ? Error(`获取K线数据失败: ${e.message}`) : e;
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
1688
|
//#endregion
|
|
1689
1689
|
//#region src/types/price.ts
|
|
1690
|
-
function
|
|
1690
|
+
function $n(e) {
|
|
1691
1691
|
return e.map((e) => ({
|
|
1692
1692
|
timestamp: e.timestamp,
|
|
1693
1693
|
open: e.open,
|
|
@@ -1705,23 +1705,23 @@ function er(e) {
|
|
|
1705
1705
|
}
|
|
1706
1706
|
//#endregion
|
|
1707
1707
|
//#region src/api/data/kLine.ts
|
|
1708
|
-
var
|
|
1709
|
-
function
|
|
1708
|
+
var er = "/api/public/stock_zh_a_hist";
|
|
1709
|
+
function tr(e) {
|
|
1710
1710
|
if (/^\d{8}$/.test(e)) return `${e.slice(0, 4)}-${e.slice(4, 6)}-${e.slice(6, 8)}`;
|
|
1711
1711
|
if (/^\d{4}-\d{2}-\d{2}T/.test(e)) return e.slice(0, 10);
|
|
1712
1712
|
if (/^\d{4}-\d{2}-\d{2}$/.test(e)) return e;
|
|
1713
1713
|
let t = new Date(e);
|
|
1714
1714
|
return Number.isNaN(t.getTime()) ? e : t.toISOString().slice(0, 10);
|
|
1715
1715
|
}
|
|
1716
|
-
function
|
|
1716
|
+
function nr(e) {
|
|
1717
1717
|
let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
|
|
1718
1718
|
if (!t) throw Error(`无法解析日期: ${e}`);
|
|
1719
1719
|
let n = Number(t[1]), r = Number(t[2]), i = Number(t[3]);
|
|
1720
1720
|
return Date.UTC(n, r - 1, i, -8, 0, 0, 0);
|
|
1721
1721
|
}
|
|
1722
|
-
function
|
|
1722
|
+
function rr(e) {
|
|
1723
1723
|
return {
|
|
1724
|
-
timestamp:
|
|
1724
|
+
timestamp: nr(tr(e.日期)),
|
|
1725
1725
|
stockCode: e.股票代码,
|
|
1726
1726
|
open: e.开盘,
|
|
1727
1727
|
close: e.收盘,
|
|
@@ -1735,23 +1735,23 @@ function ir(e) {
|
|
|
1735
1735
|
turnoverRate: e.换手率
|
|
1736
1736
|
};
|
|
1737
1737
|
}
|
|
1738
|
-
async function
|
|
1738
|
+
async function ir(e) {
|
|
1739
1739
|
try {
|
|
1740
1740
|
let { timeout: t, ...n } = e;
|
|
1741
|
-
return (await
|
|
1741
|
+
return (await K.get(er, {
|
|
1742
1742
|
params: n,
|
|
1743
1743
|
timeout: t ? t * 1e3 : void 0
|
|
1744
|
-
})).data.map(
|
|
1744
|
+
})).data.map(rr);
|
|
1745
1745
|
} catch (e) {
|
|
1746
|
-
throw
|
|
1746
|
+
throw K.isAxiosError(e) ? Error(`获取K线数据失败: ${e.message}`) : e;
|
|
1747
1747
|
}
|
|
1748
1748
|
}
|
|
1749
1749
|
//#endregion
|
|
1750
1750
|
//#region src/api/data/unified.ts
|
|
1751
|
-
var
|
|
1751
|
+
var ar = class {
|
|
1752
1752
|
name = "baostock";
|
|
1753
1753
|
async fetchKLineData(e) {
|
|
1754
|
-
return
|
|
1754
|
+
return Qn({
|
|
1755
1755
|
symbol: this.addMarketPrefix(e.symbol),
|
|
1756
1756
|
start_date: e.startDate,
|
|
1757
1757
|
end_date: e.endDate,
|
|
@@ -1771,7 +1771,7 @@ var or = class {
|
|
|
1771
1771
|
addMarketPrefix(e) {
|
|
1772
1772
|
return /^(6|68)\d{5}$/.test(e) ? `sh.${e}` : /^(0|3)\d{5}$/.test(e) ? `sz.${e}` : e;
|
|
1773
1773
|
}
|
|
1774
|
-
},
|
|
1774
|
+
}, or = class {
|
|
1775
1775
|
name = "dongcai";
|
|
1776
1776
|
async fetchKLineData(e) {
|
|
1777
1777
|
let t = e.startDate.replace(/-/g, ""), n = e.endDate.replace(/-/g, ""), r = {
|
|
@@ -1780,7 +1780,7 @@ var or = class {
|
|
|
1780
1780
|
monthly: "monthly"
|
|
1781
1781
|
}[e.period];
|
|
1782
1782
|
if (!r) throw Error(`东财数据源不支持周期: ${e.period}`);
|
|
1783
|
-
return
|
|
1783
|
+
return $n(await ir({
|
|
1784
1784
|
symbol: e.symbol,
|
|
1785
1785
|
start_date: t,
|
|
1786
1786
|
end_date: n,
|
|
@@ -1789,27 +1789,27 @@ var or = class {
|
|
|
1789
1789
|
timeout: e.timeout
|
|
1790
1790
|
}));
|
|
1791
1791
|
}
|
|
1792
|
-
},
|
|
1792
|
+
}, sr = class {
|
|
1793
1793
|
static instances = /* @__PURE__ */ new Map();
|
|
1794
1794
|
static create(e) {
|
|
1795
1795
|
if (!this.instances.has(e)) switch (e) {
|
|
1796
1796
|
case "baostock":
|
|
1797
|
-
this.instances.set(e, new
|
|
1797
|
+
this.instances.set(e, new ar());
|
|
1798
1798
|
break;
|
|
1799
1799
|
case "dongcai":
|
|
1800
|
-
this.instances.set(e, new
|
|
1800
|
+
this.instances.set(e, new or());
|
|
1801
1801
|
break;
|
|
1802
1802
|
default: throw Error(`未知的数据源类型: ${e}`);
|
|
1803
1803
|
}
|
|
1804
1804
|
return this.instances.get(e);
|
|
1805
1805
|
}
|
|
1806
1806
|
};
|
|
1807
|
-
async function
|
|
1808
|
-
return
|
|
1807
|
+
async function cr(e, t) {
|
|
1808
|
+
return sr.create(e).fetchKLineData(t);
|
|
1809
1809
|
}
|
|
1810
1810
|
//#endregion
|
|
1811
1811
|
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js
|
|
1812
|
-
var
|
|
1812
|
+
var lr = /* @__PURE__ */ M(((e) => {
|
|
1813
1813
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
|
|
1814
1814
|
var t = class {};
|
|
1815
1815
|
e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
@@ -1914,9 +1914,9 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
1914
1914
|
return new r(e.toString());
|
|
1915
1915
|
}
|
|
1916
1916
|
e.regexpCode = g;
|
|
1917
|
-
})),
|
|
1917
|
+
})), ur = /* @__PURE__ */ M(((e) => {
|
|
1918
1918
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
|
|
1919
|
-
var t =
|
|
1919
|
+
var t = lr(), n = class extends Error {
|
|
1920
1920
|
constructor(e) {
|
|
1921
1921
|
super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
|
|
1922
1922
|
}
|
|
@@ -2025,9 +2025,9 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
2025
2025
|
return c;
|
|
2026
2026
|
}
|
|
2027
2027
|
};
|
|
2028
|
-
})),
|
|
2028
|
+
})), q = /* @__PURE__ */ M(((e) => {
|
|
2029
2029
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.or = e.and = e.not = e.CodeGen = e.operators = e.varKinds = e.ValueScopeName = e.ValueScope = e.Scope = e.Name = e.regexpCode = e.stringify = e.getProperty = e.nil = e.strConcat = e.str = e._ = void 0;
|
|
2030
|
-
var t =
|
|
2030
|
+
var t = lr(), n = ur(), r = lr();
|
|
2031
2031
|
Object.defineProperty(e, "_", {
|
|
2032
2032
|
enumerable: !0,
|
|
2033
2033
|
get: function() {
|
|
@@ -2069,7 +2069,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
2069
2069
|
return r.Name;
|
|
2070
2070
|
}
|
|
2071
2071
|
});
|
|
2072
|
-
var i =
|
|
2072
|
+
var i = ur();
|
|
2073
2073
|
Object.defineProperty(e, "Scope", {
|
|
2074
2074
|
enumerable: !0,
|
|
2075
2075
|
get: function() {
|
|
@@ -2521,28 +2521,28 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
2521
2521
|
for (let n in t) e[n] = (e[n] || 0) - (t[n] || 0);
|
|
2522
2522
|
}
|
|
2523
2523
|
function j(e) {
|
|
2524
|
-
return typeof e == "boolean" || typeof e == "number" || e === null ? !e : (0, t._)`!${
|
|
2524
|
+
return typeof e == "boolean" || typeof e == "number" || e === null ? !e : (0, t._)`!${F(e)}`;
|
|
2525
2525
|
}
|
|
2526
2526
|
e.not = j;
|
|
2527
|
-
var M =
|
|
2527
|
+
var M = P(e.operators.AND);
|
|
2528
2528
|
function N(...e) {
|
|
2529
2529
|
return e.reduce(M);
|
|
2530
2530
|
}
|
|
2531
2531
|
e.and = N;
|
|
2532
|
-
var
|
|
2533
|
-
function
|
|
2534
|
-
return e.reduce(
|
|
2532
|
+
var ee = P(e.operators.OR);
|
|
2533
|
+
function te(...e) {
|
|
2534
|
+
return e.reduce(ee);
|
|
2535
2535
|
}
|
|
2536
|
-
e.or =
|
|
2537
|
-
function
|
|
2538
|
-
return (n, r) => n === t.nil ? r : r === t.nil ? n : (0, t._)`${
|
|
2536
|
+
e.or = te;
|
|
2537
|
+
function P(e) {
|
|
2538
|
+
return (n, r) => n === t.nil ? r : r === t.nil ? n : (0, t._)`${F(n)} ${e} ${F(r)}`;
|
|
2539
2539
|
}
|
|
2540
|
-
function
|
|
2540
|
+
function F(e) {
|
|
2541
2541
|
return e instanceof t.Name ? e : (0, t._)`(${e})`;
|
|
2542
2542
|
}
|
|
2543
|
-
})),
|
|
2543
|
+
})), J = /* @__PURE__ */ M(((e) => {
|
|
2544
2544
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.checkStrictMode = e.getErrorPath = e.Type = e.useFunc = e.setEvaluated = e.evaluatedPropsToName = e.mergeEvaluated = e.eachItem = e.unescapeJsonPointer = e.escapeJsonPointer = e.escapeFragment = e.unescapeFragment = e.schemaRefOrVal = e.schemaHasRulesButRef = e.schemaHasRules = e.checkUnknownRules = e.alwaysValidSchema = e.toHash = void 0;
|
|
2545
|
-
var t =
|
|
2545
|
+
var t = q(), n = lr();
|
|
2546
2546
|
function r(e) {
|
|
2547
2547
|
let t = {};
|
|
2548
2548
|
for (let n of e) t[n] = !0;
|
|
@@ -2665,9 +2665,9 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
2665
2665
|
}
|
|
2666
2666
|
}
|
|
2667
2667
|
e.checkStrictMode = x;
|
|
2668
|
-
})),
|
|
2668
|
+
})), dr = /* @__PURE__ */ M(((e) => {
|
|
2669
2669
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2670
|
-
var t =
|
|
2670
|
+
var t = q();
|
|
2671
2671
|
e.default = {
|
|
2672
2672
|
data: new t.Name("data"),
|
|
2673
2673
|
valCxt: new t.Name("valCxt"),
|
|
@@ -2686,9 +2686,9 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
2686
2686
|
jsonLen: new t.Name("jsonLen"),
|
|
2687
2687
|
jsonPart: new t.Name("jsonPart")
|
|
2688
2688
|
};
|
|
2689
|
-
})),
|
|
2689
|
+
})), fr = /* @__PURE__ */ M(((e) => {
|
|
2690
2690
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
2691
|
-
var t =
|
|
2691
|
+
var t = q(), n = J(), r = dr();
|
|
2692
2692
|
e.keywordError = { message: ({ keyword: e }) => (0, t.str)`must pass "${e}" keyword validation` }, e.keyword$DataError = { message: ({ keyword: e, schemaType: n }) => n ? (0, t.str)`"${e}" keyword must be ${n} ($data)` : (0, t.str)`"${e}" keyword is invalid ($data)` };
|
|
2693
2693
|
function i(n, r = e.keywordError, i, a) {
|
|
2694
2694
|
let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
|
|
@@ -2750,9 +2750,9 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
2750
2750
|
let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
|
|
2751
2751
|
a.push([u.keyword, o], [u.params, typeof n == "function" ? n(e) : n || (0, t._)`{}`]), d.messages && a.push([u.message, typeof i == "function" ? i(e) : i]), d.verbose && a.push([u.schema, c], [u.parentSchema, (0, t._)`${p}${m}`], [r.default.data, s]), f && a.push([u.propertyName, f]);
|
|
2752
2752
|
}
|
|
2753
|
-
})),
|
|
2753
|
+
})), pr = /* @__PURE__ */ M(((e) => {
|
|
2754
2754
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
|
|
2755
|
-
var t =
|
|
2755
|
+
var t = fr(), n = q(), r = dr(), i = { message: "boolean schema is false" };
|
|
2756
2756
|
function a(e) {
|
|
2757
2757
|
let { gen: t, schema: i, validateName: a } = e;
|
|
2758
2758
|
i === !1 ? s(e, !1) : typeof i == "object" && i.$async === !0 ? t.return(r.default.data) : (t.assign((0, n._)`${a}.errors`, null), t.return(!0));
|
|
@@ -2776,7 +2776,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
2776
2776
|
};
|
|
2777
2777
|
(0, t.reportError)(o, i, void 0, n);
|
|
2778
2778
|
}
|
|
2779
|
-
})),
|
|
2779
|
+
})), mr = /* @__PURE__ */ M(((e) => {
|
|
2780
2780
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
|
|
2781
2781
|
var t = new Set([
|
|
2782
2782
|
"string",
|
|
@@ -2830,7 +2830,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
2830
2830
|
};
|
|
2831
2831
|
}
|
|
2832
2832
|
e.getRules = r;
|
|
2833
|
-
})),
|
|
2833
|
+
})), hr = /* @__PURE__ */ M(((e) => {
|
|
2834
2834
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
|
|
2835
2835
|
function t({ schema: e, self: t }, r) {
|
|
2836
2836
|
let i = t.RULES.types[r];
|
|
@@ -2845,9 +2845,9 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
2845
2845
|
return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
|
|
2846
2846
|
}
|
|
2847
2847
|
e.shouldUseRule = r;
|
|
2848
|
-
})),
|
|
2848
|
+
})), gr = /* @__PURE__ */ M(((e) => {
|
|
2849
2849
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
|
|
2850
|
-
var t =
|
|
2850
|
+
var t = mr(), n = hr(), r = fr(), i = q(), a = J(), o;
|
|
2851
2851
|
(function(e) {
|
|
2852
2852
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
2853
2853
|
})(o || (e.DataType = o = {}));
|
|
@@ -2982,9 +2982,9 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
2982
2982
|
it: e
|
|
2983
2983
|
};
|
|
2984
2984
|
}
|
|
2985
|
-
})),
|
|
2985
|
+
})), _r = /* @__PURE__ */ M(((e) => {
|
|
2986
2986
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
|
|
2987
|
-
var t =
|
|
2987
|
+
var t = q(), n = J();
|
|
2988
2988
|
function r(e, t) {
|
|
2989
2989
|
let { properties: n, items: r } = e.schema;
|
|
2990
2990
|
if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
|
|
@@ -3002,9 +3002,9 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
3002
3002
|
let u = (0, t._)`${l} === undefined`;
|
|
3003
3003
|
c.useDefaults === "empty" && (u = (0, t._)`${u} || ${l} === null || ${l} === ""`), a.if(u, (0, t._)`${l} = ${(0, t.stringify)(i)}`);
|
|
3004
3004
|
}
|
|
3005
|
-
})),
|
|
3005
|
+
})), vr = /* @__PURE__ */ M(((e) => {
|
|
3006
3006
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateUnion = e.validateArray = e.usePattern = e.callValidateCode = e.schemaProperties = e.allSchemaProperties = e.noPropertyInData = e.propertyInData = e.isOwnProperty = e.hasPropFunc = e.reportMissingProp = e.checkMissingProp = e.checkReportMissingProp = void 0;
|
|
3007
|
-
var t =
|
|
3007
|
+
var t = q(), n = J(), r = dr(), i = J();
|
|
3008
3008
|
function a(e, n) {
|
|
3009
3009
|
let { gen: r, data: i, it: a } = e;
|
|
3010
3010
|
r.if(d(r, i, n, a.opts.ownProperties), () => {
|
|
@@ -3108,7 +3108,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
3108
3108
|
e.validateUnion = v;
|
|
3109
3109
|
})), yr = /* @__PURE__ */ M(((e) => {
|
|
3110
3110
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
|
|
3111
|
-
var t =
|
|
3111
|
+
var t = q(), n = dr(), r = vr(), i = fr();
|
|
3112
3112
|
function a(e, n) {
|
|
3113
3113
|
let { gen: r, keyword: i, schema: a, parentSchema: o, it: s } = e, c = n.macro.call(s.self, a, o, s), l = u(r, i, c);
|
|
3114
3114
|
s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
|
|
@@ -3189,7 +3189,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
3189
3189
|
e.validateKeywordUsage = f;
|
|
3190
3190
|
})), br = /* @__PURE__ */ M(((e) => {
|
|
3191
3191
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
|
|
3192
|
-
var t =
|
|
3192
|
+
var t = q(), n = J();
|
|
3193
3193
|
function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
|
|
3194
3194
|
if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
|
|
3195
3195
|
if (r !== void 0) {
|
|
@@ -3322,7 +3322,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
3322
3322
|
}
|
|
3323
3323
|
})), Cr = /* @__PURE__ */ M(((e) => {
|
|
3324
3324
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
|
|
3325
|
-
var t =
|
|
3325
|
+
var t = J(), n = xr(), r = Sr(), i = new Set([
|
|
3326
3326
|
"type",
|
|
3327
3327
|
"format",
|
|
3328
3328
|
"pattern",
|
|
@@ -3413,7 +3413,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
3413
3413
|
e.getSchemaRefs = h;
|
|
3414
3414
|
})), wr = /* @__PURE__ */ M(((e) => {
|
|
3415
3415
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
|
|
3416
|
-
var t =
|
|
3416
|
+
var t = pr(), n = gr(), r = hr(), i = gr(), a = _r(), o = yr(), s = br(), c = q(), l = dr(), u = Cr(), d = J(), f = fr();
|
|
3417
3417
|
function p(e) {
|
|
3418
3418
|
if (S(e) && (w(e), x(e))) {
|
|
3419
3419
|
_(e);
|
|
@@ -3513,68 +3513,68 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
3513
3513
|
function N(e, t, n, a) {
|
|
3514
3514
|
let { gen: o, schema: s, data: u, allErrors: f, opts: p, self: m } = e, { RULES: h } = m;
|
|
3515
3515
|
if (s.$ref && (p.ignoreKeywordsWithRef || !(0, d.schemaHasRulesButRef)(s, h))) {
|
|
3516
|
-
o.block(() =>
|
|
3516
|
+
o.block(() => L(e, "$ref", h.all.$ref.definition));
|
|
3517
3517
|
return;
|
|
3518
3518
|
}
|
|
3519
|
-
p.jtd ||
|
|
3519
|
+
p.jtd || te(e, t), o.block(() => {
|
|
3520
3520
|
for (let e of h.rules) g(e);
|
|
3521
3521
|
g(h.post);
|
|
3522
3522
|
});
|
|
3523
3523
|
function g(d) {
|
|
3524
|
-
(0, r.shouldUseGroup)(s, d) && (d.type ? (o.if((0, i.checkDataType)(d.type, u, p.strictNumbers)),
|
|
3524
|
+
(0, r.shouldUseGroup)(s, d) && (d.type ? (o.if((0, i.checkDataType)(d.type, u, p.strictNumbers)), ee(e, d), t.length === 1 && t[0] === d.type && n && (o.else(), (0, i.reportTypeError)(e)), o.endIf()) : ee(e, d), f || o.if((0, c._)`${l.default.errors} === ${a || 0}`));
|
|
3525
3525
|
}
|
|
3526
3526
|
}
|
|
3527
|
-
function
|
|
3527
|
+
function ee(e, t) {
|
|
3528
3528
|
let { gen: n, schema: i, opts: { useDefaults: o } } = e;
|
|
3529
3529
|
o && (0, a.assignDefaults)(e, t.type), n.block(() => {
|
|
3530
|
-
for (let n of t.rules) (0, r.shouldUseRule)(i, n) &&
|
|
3530
|
+
for (let n of t.rules) (0, r.shouldUseRule)(i, n) && L(e, n.keyword, n.definition, t.type);
|
|
3531
3531
|
});
|
|
3532
3532
|
}
|
|
3533
|
-
function ee(e, t) {
|
|
3534
|
-
e.schemaEnv.meta || !e.opts.strictTypes || (te(e, t), e.opts.allowUnionTypes || ne(e, t), re(e, e.dataTypes));
|
|
3535
|
-
}
|
|
3536
3533
|
function te(e, t) {
|
|
3534
|
+
e.schemaEnv.meta || !e.opts.strictTypes || (P(e, t), e.opts.allowUnionTypes || F(e, t), ne(e, e.dataTypes));
|
|
3535
|
+
}
|
|
3536
|
+
function P(e, t) {
|
|
3537
3537
|
if (t.length) {
|
|
3538
3538
|
if (!e.dataTypes.length) {
|
|
3539
3539
|
e.dataTypes = t;
|
|
3540
3540
|
return;
|
|
3541
3541
|
}
|
|
3542
3542
|
t.forEach((t) => {
|
|
3543
|
-
|
|
3544
|
-
}),
|
|
3543
|
+
re(e.dataTypes, t) || ae(e, `type "${t}" not allowed by context "${e.dataTypes.join(",")}"`);
|
|
3544
|
+
}), ie(e, t);
|
|
3545
3545
|
}
|
|
3546
3546
|
}
|
|
3547
|
-
function
|
|
3548
|
-
t.length > 1 && !(t.length === 2 && t.includes("null")) &&
|
|
3547
|
+
function F(e, t) {
|
|
3548
|
+
t.length > 1 && !(t.length === 2 && t.includes("null")) && ae(e, "use allowUnionTypes to allow union type keyword");
|
|
3549
3549
|
}
|
|
3550
|
-
function
|
|
3550
|
+
function ne(e, t) {
|
|
3551
3551
|
let n = e.self.RULES.all;
|
|
3552
3552
|
for (let i in n) {
|
|
3553
3553
|
let a = n[i];
|
|
3554
3554
|
if (typeof a == "object" && (0, r.shouldUseRule)(e.schema, a)) {
|
|
3555
3555
|
let { type: n } = a.definition;
|
|
3556
|
-
n.length && !n.some((e) =>
|
|
3556
|
+
n.length && !n.some((e) => I(t, e)) && ae(e, `missing type "${n.join(",")}" for keyword "${i}"`);
|
|
3557
3557
|
}
|
|
3558
3558
|
}
|
|
3559
3559
|
}
|
|
3560
|
-
function
|
|
3560
|
+
function I(e, t) {
|
|
3561
3561
|
return e.includes(t) || t === "number" && e.includes("integer");
|
|
3562
3562
|
}
|
|
3563
|
-
function
|
|
3563
|
+
function re(e, t) {
|
|
3564
3564
|
return e.includes(t) || t === "integer" && e.includes("number");
|
|
3565
3565
|
}
|
|
3566
|
-
function
|
|
3566
|
+
function ie(e, t) {
|
|
3567
3567
|
let n = [];
|
|
3568
|
-
for (let r of e.dataTypes)
|
|
3568
|
+
for (let r of e.dataTypes) re(t, r) ? n.push(r) : t.includes("integer") && r === "number" && n.push("integer");
|
|
3569
3569
|
e.dataTypes = n;
|
|
3570
3570
|
}
|
|
3571
|
-
function
|
|
3571
|
+
function ae(e, t) {
|
|
3572
3572
|
let n = e.schemaEnv.baseId + e.errSchemaPath;
|
|
3573
3573
|
t += ` at "${n}" (strictTypes)`, (0, d.checkStrictMode)(e, t, e.opts.strictTypes);
|
|
3574
3574
|
}
|
|
3575
|
-
var
|
|
3575
|
+
var oe = class {
|
|
3576
3576
|
constructor(e, t, n) {
|
|
3577
|
-
if ((0, o.validateKeywordUsage)(e, t, n), this.gen = e.gen, this.allErrors = e.allErrors, this.keyword = n, this.data = e.data, this.schema = e.schema[n], this.$data = t.$data && e.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, d.schemaRefOrVal)(e, this.schema, n, this.$data), this.schemaType = t.schemaType, this.parentSchema = e.schema, this.params = {}, this.it = e, this.def = t, this.$data) this.schemaCode = e.gen.const("vSchema",
|
|
3577
|
+
if ((0, o.validateKeywordUsage)(e, t, n), this.gen = e.gen, this.allErrors = e.allErrors, this.keyword = n, this.data = e.data, this.schema = e.schema[n], this.$data = t.$data && e.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, d.schemaRefOrVal)(e, this.schema, n, this.$data), this.schemaType = t.schemaType, this.parentSchema = e.schema, this.params = {}, this.it = e, this.def = t, this.$data) this.schemaCode = e.gen.const("vSchema", le(this.$data, e));
|
|
3578
3578
|
else if (this.schemaCode = this.schemaValue, !(0, o.validSchemaType)(this.schema, t.schemaType, t.allowUndefined)) throw Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);
|
|
3579
3579
|
("code" in t ? t.trackErrors : t.errors !== !1) && (this.errsCount = e.gen.const("_errs", l.default.errors));
|
|
3580
3580
|
}
|
|
@@ -3672,20 +3672,20 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
3672
3672
|
if (n.opts.unevaluated && (n.props !== !0 || n.items !== !0)) return r.if(t, () => this.mergeEvaluated(e, c.Name)), !0;
|
|
3673
3673
|
}
|
|
3674
3674
|
};
|
|
3675
|
-
e.KeywordCxt =
|
|
3676
|
-
function
|
|
3677
|
-
let i = new
|
|
3675
|
+
e.KeywordCxt = oe;
|
|
3676
|
+
function L(e, t, n, r) {
|
|
3677
|
+
let i = new oe(e, n, t);
|
|
3678
3678
|
"code" in n ? n.code(i, r) : i.$data && n.validate ? (0, o.funcKeywordCode)(i, n) : "macro" in n ? (0, o.macroKeywordCode)(i, n) : (n.compile || n.validate) && (0, o.funcKeywordCode)(i, n);
|
|
3679
3679
|
}
|
|
3680
|
-
var
|
|
3681
|
-
function
|
|
3680
|
+
var se = /^\/(?:[^~]|~0|~1)*$/, ce = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
3681
|
+
function le(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
|
|
3682
3682
|
let i, a;
|
|
3683
3683
|
if (e === "") return l.default.rootData;
|
|
3684
3684
|
if (e[0] === "/") {
|
|
3685
|
-
if (!
|
|
3685
|
+
if (!se.test(e)) throw Error(`Invalid JSON-pointer: ${e}`);
|
|
3686
3686
|
i = e, a = l.default.rootData;
|
|
3687
3687
|
} else {
|
|
3688
|
-
let o =
|
|
3688
|
+
let o = ce.exec(e);
|
|
3689
3689
|
if (!o) throw Error(`Invalid JSON-pointer: ${e}`);
|
|
3690
3690
|
let s = +o[1];
|
|
3691
3691
|
if (i = o[2], i === "#") {
|
|
@@ -3702,7 +3702,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
3702
3702
|
return `Cannot access ${e} ${n} levels up, current level is ${t}`;
|
|
3703
3703
|
}
|
|
3704
3704
|
}
|
|
3705
|
-
e.getData =
|
|
3705
|
+
e.getData = le;
|
|
3706
3706
|
})), Tr = /* @__PURE__ */ M(((e) => {
|
|
3707
3707
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
|
|
3708
3708
|
constructor(e) {
|
|
@@ -3719,7 +3719,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
3719
3719
|
};
|
|
3720
3720
|
})), Dr = /* @__PURE__ */ M(((e) => {
|
|
3721
3721
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
|
|
3722
|
-
var t =
|
|
3722
|
+
var t = q(), n = Tr(), r = dr(), i = Cr(), a = J(), o = wr(), s = class {
|
|
3723
3723
|
constructor(e) {
|
|
3724
3724
|
this.refs = {}, this.dynamicAnchors = {};
|
|
3725
3725
|
let t;
|
|
@@ -4266,7 +4266,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
4266
4266
|
return t.KeywordCxt;
|
|
4267
4267
|
}
|
|
4268
4268
|
});
|
|
4269
|
-
var n =
|
|
4269
|
+
var n = q();
|
|
4270
4270
|
Object.defineProperty(e, "_", {
|
|
4271
4271
|
enumerable: !0,
|
|
4272
4272
|
get: function() {
|
|
@@ -4298,7 +4298,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
4298
4298
|
return n.CodeGen;
|
|
4299
4299
|
}
|
|
4300
4300
|
});
|
|
4301
|
-
var r = Tr(), i = Er(), a =
|
|
4301
|
+
var r = Tr(), i = Er(), a = mr(), o = Dr(), s = q(), c = Cr(), l = gr(), u = J(), d = (Fr(), P(Or).default), f = zr(), p = (e, t) => new RegExp(e, t);
|
|
4302
4302
|
p.code = "new RegExp";
|
|
4303
4303
|
var m = [
|
|
4304
4304
|
"removeAdditional",
|
|
@@ -4551,7 +4551,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
4551
4551
|
let t = n[e];
|
|
4552
4552
|
if (typeof t != "object") continue;
|
|
4553
4553
|
let { $data: r } = t.definition, a = i[e];
|
|
4554
|
-
r && a && (i[e] =
|
|
4554
|
+
r && a && (i[e] = te(a));
|
|
4555
4555
|
}
|
|
4556
4556
|
}
|
|
4557
4557
|
return e;
|
|
@@ -4678,11 +4678,11 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
4678
4678
|
}
|
|
4679
4679
|
function N(e) {
|
|
4680
4680
|
let { metaSchema: t } = e;
|
|
4681
|
-
t !== void 0 && (e.$data && this.opts.$data && (t =
|
|
4681
|
+
t !== void 0 && (e.$data && this.opts.$data && (t = te(t)), e.validateSchema = this.compile(t, !0));
|
|
4682
4682
|
}
|
|
4683
|
-
var
|
|
4684
|
-
function
|
|
4685
|
-
return { anyOf: [e,
|
|
4683
|
+
var ee = { $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" };
|
|
4684
|
+
function te(e) {
|
|
4685
|
+
return { anyOf: [e, ee] };
|
|
4686
4686
|
}
|
|
4687
4687
|
})), Vr = /* @__PURE__ */ M(((e) => {
|
|
4688
4688
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
@@ -4693,7 +4693,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
4693
4693
|
};
|
|
4694
4694
|
})), Hr = /* @__PURE__ */ M(((e) => {
|
|
4695
4695
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
|
|
4696
|
-
var t = Er(), n =
|
|
4696
|
+
var t = Er(), n = vr(), r = q(), i = dr(), a = Dr(), o = J(), s = {
|
|
4697
4697
|
keyword: "$ref",
|
|
4698
4698
|
schemaType: "string",
|
|
4699
4699
|
code(e) {
|
|
@@ -4781,7 +4781,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
4781
4781
|
];
|
|
4782
4782
|
})), Wr = /* @__PURE__ */ M(((e) => {
|
|
4783
4783
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4784
|
-
var t =
|
|
4784
|
+
var t = q(), n = t.operators, r = {
|
|
4785
4785
|
maximum: {
|
|
4786
4786
|
okStr: "<=",
|
|
4787
4787
|
ok: n.LTE,
|
|
@@ -4819,7 +4819,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
4819
4819
|
};
|
|
4820
4820
|
})), Gr = /* @__PURE__ */ M(((e) => {
|
|
4821
4821
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4822
|
-
var t =
|
|
4822
|
+
var t = q();
|
|
4823
4823
|
e.default = {
|
|
4824
4824
|
keyword: "multipleOf",
|
|
4825
4825
|
type: "number",
|
|
@@ -4844,7 +4844,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
4844
4844
|
e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
|
|
4845
4845
|
})), qr = /* @__PURE__ */ M(((e) => {
|
|
4846
4846
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4847
|
-
var t =
|
|
4847
|
+
var t = q(), n = J(), r = Kr();
|
|
4848
4848
|
e.default = {
|
|
4849
4849
|
keyword: ["maxLength", "minLength"],
|
|
4850
4850
|
type: "string",
|
|
@@ -4864,7 +4864,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
4864
4864
|
};
|
|
4865
4865
|
})), Jr = /* @__PURE__ */ M(((e) => {
|
|
4866
4866
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4867
|
-
var t =
|
|
4867
|
+
var t = vr(), n = J(), r = q();
|
|
4868
4868
|
e.default = {
|
|
4869
4869
|
keyword: "pattern",
|
|
4870
4870
|
type: "string",
|
|
@@ -4887,7 +4887,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
4887
4887
|
};
|
|
4888
4888
|
})), Yr = /* @__PURE__ */ M(((e) => {
|
|
4889
4889
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4890
|
-
var t =
|
|
4890
|
+
var t = q();
|
|
4891
4891
|
e.default = {
|
|
4892
4892
|
keyword: ["maxProperties", "minProperties"],
|
|
4893
4893
|
type: "object",
|
|
@@ -4907,7 +4907,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
4907
4907
|
};
|
|
4908
4908
|
})), Xr = /* @__PURE__ */ M(((e) => {
|
|
4909
4909
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4910
|
-
var t =
|
|
4910
|
+
var t = vr(), n = q(), r = J();
|
|
4911
4911
|
e.default = {
|
|
4912
4912
|
keyword: "required",
|
|
4913
4913
|
type: "object",
|
|
@@ -4955,7 +4955,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
4955
4955
|
};
|
|
4956
4956
|
})), Zr = /* @__PURE__ */ M(((e) => {
|
|
4957
4957
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4958
|
-
var t =
|
|
4958
|
+
var t = q();
|
|
4959
4959
|
e.default = {
|
|
4960
4960
|
keyword: ["maxItems", "minItems"],
|
|
4961
4961
|
type: "array",
|
|
@@ -4979,7 +4979,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
4979
4979
|
t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
|
|
4980
4980
|
})), $r = /* @__PURE__ */ M(((e) => {
|
|
4981
4981
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4982
|
-
var t =
|
|
4982
|
+
var t = gr(), n = q(), r = J(), i = Qr();
|
|
4983
4983
|
e.default = {
|
|
4984
4984
|
keyword: "uniqueItems",
|
|
4985
4985
|
type: "array",
|
|
@@ -5022,7 +5022,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
5022
5022
|
};
|
|
5023
5023
|
})), ei = /* @__PURE__ */ M(((e) => {
|
|
5024
5024
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5025
|
-
var t =
|
|
5025
|
+
var t = q(), n = J(), r = Qr();
|
|
5026
5026
|
e.default = {
|
|
5027
5027
|
keyword: "const",
|
|
5028
5028
|
$data: !0,
|
|
@@ -5037,7 +5037,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
5037
5037
|
};
|
|
5038
5038
|
})), ti = /* @__PURE__ */ M(((e) => {
|
|
5039
5039
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5040
|
-
var t =
|
|
5040
|
+
var t = q(), n = J(), r = Qr();
|
|
5041
5041
|
e.default = {
|
|
5042
5042
|
keyword: "enum",
|
|
5043
5043
|
schemaType: "array",
|
|
@@ -5092,7 +5092,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
5092
5092
|
];
|
|
5093
5093
|
})), ri = /* @__PURE__ */ M(((e) => {
|
|
5094
5094
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
|
|
5095
|
-
var t =
|
|
5095
|
+
var t = q(), n = J(), r = {
|
|
5096
5096
|
keyword: "additionalItems",
|
|
5097
5097
|
type: "array",
|
|
5098
5098
|
schemaType: ["boolean", "object"],
|
|
@@ -5132,7 +5132,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
5132
5132
|
e.validateAdditionalItems = i, e.default = r;
|
|
5133
5133
|
})), ii = /* @__PURE__ */ M(((e) => {
|
|
5134
5134
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
|
|
5135
|
-
var t =
|
|
5135
|
+
var t = q(), n = J(), r = vr(), i = {
|
|
5136
5136
|
keyword: "items",
|
|
5137
5137
|
type: "array",
|
|
5138
5138
|
schemaType: [
|
|
@@ -5179,7 +5179,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
5179
5179
|
};
|
|
5180
5180
|
})), oi = /* @__PURE__ */ M(((e) => {
|
|
5181
5181
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5182
|
-
var t =
|
|
5182
|
+
var t = q(), n = J(), r = vr(), i = ri();
|
|
5183
5183
|
e.default = {
|
|
5184
5184
|
keyword: "items",
|
|
5185
5185
|
type: "array",
|
|
@@ -5196,7 +5196,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
5196
5196
|
};
|
|
5197
5197
|
})), si = /* @__PURE__ */ M(((e) => {
|
|
5198
5198
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5199
|
-
var t =
|
|
5199
|
+
var t = q(), n = J();
|
|
5200
5200
|
e.default = {
|
|
5201
5201
|
keyword: "contains",
|
|
5202
5202
|
type: "array",
|
|
@@ -5251,7 +5251,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
5251
5251
|
};
|
|
5252
5252
|
})), ci = /* @__PURE__ */ M(((e) => {
|
|
5253
5253
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
5254
|
-
var t =
|
|
5254
|
+
var t = q(), n = J(), r = vr();
|
|
5255
5255
|
e.error = {
|
|
5256
5256
|
message: ({ params: { property: e, depsCount: n, deps: r } }) => {
|
|
5257
5257
|
let i = n === 1 ? "property" : "properties";
|
|
@@ -5312,7 +5312,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
5312
5312
|
e.validateSchemaDeps = s, e.default = i;
|
|
5313
5313
|
})), li = /* @__PURE__ */ M(((e) => {
|
|
5314
5314
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5315
|
-
var t =
|
|
5315
|
+
var t = q(), n = J();
|
|
5316
5316
|
e.default = {
|
|
5317
5317
|
keyword: "propertyNames",
|
|
5318
5318
|
type: "object",
|
|
@@ -5340,7 +5340,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
5340
5340
|
};
|
|
5341
5341
|
})), ui = /* @__PURE__ */ M(((e) => {
|
|
5342
5342
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5343
|
-
var t =
|
|
5343
|
+
var t = vr(), n = q(), r = dr(), i = J();
|
|
5344
5344
|
e.default = {
|
|
5345
5345
|
keyword: "additionalProperties",
|
|
5346
5346
|
type: ["object"],
|
|
@@ -5407,7 +5407,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
5407
5407
|
};
|
|
5408
5408
|
})), di = /* @__PURE__ */ M(((e) => {
|
|
5409
5409
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5410
|
-
var t = wr(), n =
|
|
5410
|
+
var t = wr(), n = vr(), r = J(), i = ui();
|
|
5411
5411
|
e.default = {
|
|
5412
5412
|
keyword: "properties",
|
|
5413
5413
|
type: "object",
|
|
@@ -5436,7 +5436,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
5436
5436
|
};
|
|
5437
5437
|
})), fi = /* @__PURE__ */ M(((e) => {
|
|
5438
5438
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5439
|
-
var t =
|
|
5439
|
+
var t = vr(), n = q(), r = J(), i = J();
|
|
5440
5440
|
e.default = {
|
|
5441
5441
|
keyword: "patternProperties",
|
|
5442
5442
|
type: "object",
|
|
@@ -5471,7 +5471,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
5471
5471
|
};
|
|
5472
5472
|
})), pi = /* @__PURE__ */ M(((e) => {
|
|
5473
5473
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5474
|
-
var t =
|
|
5474
|
+
var t = J();
|
|
5475
5475
|
e.default = {
|
|
5476
5476
|
keyword: "not",
|
|
5477
5477
|
schemaType: ["object", "boolean"],
|
|
@@ -5497,12 +5497,12 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
5497
5497
|
keyword: "anyOf",
|
|
5498
5498
|
schemaType: "array",
|
|
5499
5499
|
trackErrors: !0,
|
|
5500
|
-
code:
|
|
5500
|
+
code: vr().validateUnion,
|
|
5501
5501
|
error: { message: "must match a schema in anyOf" }
|
|
5502
5502
|
};
|
|
5503
5503
|
})), hi = /* @__PURE__ */ M(((e) => {
|
|
5504
5504
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5505
|
-
var t =
|
|
5505
|
+
var t = q(), n = J();
|
|
5506
5506
|
e.default = {
|
|
5507
5507
|
keyword: "oneOf",
|
|
5508
5508
|
schemaType: "array",
|
|
@@ -5534,7 +5534,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
5534
5534
|
};
|
|
5535
5535
|
})), gi = /* @__PURE__ */ M(((e) => {
|
|
5536
5536
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5537
|
-
var t =
|
|
5537
|
+
var t = J();
|
|
5538
5538
|
e.default = {
|
|
5539
5539
|
keyword: "allOf",
|
|
5540
5540
|
schemaType: "array",
|
|
@@ -5555,7 +5555,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
5555
5555
|
};
|
|
5556
5556
|
})), _i = /* @__PURE__ */ M(((e) => {
|
|
5557
5557
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5558
|
-
var t =
|
|
5558
|
+
var t = q(), n = J(), r = {
|
|
5559
5559
|
keyword: "if",
|
|
5560
5560
|
schemaType: ["object", "boolean"],
|
|
5561
5561
|
trackErrors: !0,
|
|
@@ -5598,7 +5598,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
5598
5598
|
e.default = r;
|
|
5599
5599
|
})), vi = /* @__PURE__ */ M(((e) => {
|
|
5600
5600
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5601
|
-
var t =
|
|
5601
|
+
var t = J();
|
|
5602
5602
|
e.default = {
|
|
5603
5603
|
keyword: ["then", "else"],
|
|
5604
5604
|
schemaType: ["object", "boolean"],
|
|
@@ -5628,7 +5628,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
5628
5628
|
e.default = _;
|
|
5629
5629
|
})), bi = /* @__PURE__ */ M(((e) => {
|
|
5630
5630
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5631
|
-
var t =
|
|
5631
|
+
var t = q();
|
|
5632
5632
|
e.default = {
|
|
5633
5633
|
keyword: "format",
|
|
5634
5634
|
type: ["number", "string"],
|
|
@@ -5736,7 +5736,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
5736
5736
|
})(t || (e.DiscrError = t = {}));
|
|
5737
5737
|
})), Ti = /* @__PURE__ */ M(((e) => {
|
|
5738
5738
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5739
|
-
var t =
|
|
5739
|
+
var t = q(), n = wi(), r = Dr(), i = Er(), a = J();
|
|
5740
5740
|
e.default = {
|
|
5741
5741
|
keyword: "discriminator",
|
|
5742
5742
|
type: "object",
|
|
@@ -5947,9 +5947,9 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
5947
5947
|
properties: Mi,
|
|
5948
5948
|
default: !0
|
|
5949
5949
|
};
|
|
5950
|
-
})), Fi = /* @__PURE__ */
|
|
5950
|
+
})), Fi = /* @__PURE__ */ te((/* @__PURE__ */ M(((e, t) => {
|
|
5951
5951
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.MissingRefError = e.ValidationError = e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = e.Ajv = void 0;
|
|
5952
|
-
var n = Br(), r = Ci(), i = Ti(), a = (Pi(),
|
|
5952
|
+
var n = Br(), r = Ci(), i = Ti(), a = (Pi(), P(Ei).default), o = ["/properties"], s = "http://json-schema.org/draft-07/schema", c = class extends n.default {
|
|
5953
5953
|
_addVocabularies() {
|
|
5954
5954
|
super._addVocabularies(), r.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(i.default);
|
|
5955
5955
|
}
|
|
@@ -5970,7 +5970,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
5970
5970
|
return l.KeywordCxt;
|
|
5971
5971
|
}
|
|
5972
5972
|
});
|
|
5973
|
-
var u =
|
|
5973
|
+
var u = q();
|
|
5974
5974
|
Object.defineProperty(e, "_", {
|
|
5975
5975
|
enumerable: !0,
|
|
5976
5976
|
get: function() {
|
|
@@ -6586,7 +6586,7 @@ var Vi = (typeof document < "u" ? document.createElement("canvas") : null)?.getC
|
|
|
6586
6586
|
validator;
|
|
6587
6587
|
events;
|
|
6588
6588
|
constructor(e) {
|
|
6589
|
-
this.chart = e, this.validator = new Hi(), this.events = new
|
|
6589
|
+
this.chart = e, this.validator = new Hi(), this.events = new F();
|
|
6590
6590
|
}
|
|
6591
6591
|
async applyConfig(e) {
|
|
6592
6592
|
let t = this.validator.validate(e);
|
|
@@ -6617,7 +6617,7 @@ var Vi = (typeof document < "u" ? document.createElement("canvas") : null)?.getC
|
|
|
6617
6617
|
}
|
|
6618
6618
|
async doApplyConfig(e) {
|
|
6619
6619
|
console.log("[Semantic] doApplyConfig start, data config:", e.data);
|
|
6620
|
-
let t = await
|
|
6620
|
+
let t = await cr(e.data.source, {
|
|
6621
6621
|
symbol: e.data.symbol,
|
|
6622
6622
|
startDate: e.data.startDate,
|
|
6623
6623
|
endDate: e.data.endDate,
|
|
@@ -6942,7 +6942,7 @@ var oa = Symbol("global-pane"), Y = {
|
|
|
6942
6942
|
configManager;
|
|
6943
6943
|
isDestroyed = !1;
|
|
6944
6944
|
constructor() {
|
|
6945
|
-
this.registry = new sa(), this.eventBus = new
|
|
6945
|
+
this.registry = new sa(), this.eventBus = new F(), this.hookSystem = new ca(), this.configManager = new la();
|
|
6946
6946
|
}
|
|
6947
6947
|
events = {
|
|
6948
6948
|
on: (e, t) => {
|
|
@@ -7304,6 +7304,7 @@ var Da = {
|
|
|
7304
7304
|
WHITE: "rgb(255, 255, 255)",
|
|
7305
7305
|
LIGHT_GRAY: "rgba(255, 255, 255, 0.92)",
|
|
7306
7306
|
PURE_WHITE: "#ffffff",
|
|
7307
|
+
TRANSPARENT: "transparent",
|
|
7307
7308
|
ACTIVE: "#1890ff",
|
|
7308
7309
|
ACTIVE_HOVER: "#40a9ff",
|
|
7309
7310
|
HOVER: "#f0f0f0"
|
|
@@ -7706,18 +7707,33 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
|
|
|
7706
7707
|
_: 1
|
|
7707
7708
|
})]));
|
|
7708
7709
|
}
|
|
7709
|
-
}), [["__scopeId", "data-v-730f2212"]]), Ro = { class: "indicator-selector" }, zo = { class: "indicator-
|
|
7710
|
+
}), [["__scopeId", "data-v-730f2212"]]), Ro = { class: "indicator-selector" }, zo = { class: "indicator-scroll-container" }, Bo = { class: "indicator-list" }, Vo = ["onMouseenter"], Ho = { class: "btn-content" }, Uo = {
|
|
7710
7711
|
key: 0,
|
|
7711
7712
|
class: "param-hint"
|
|
7712
|
-
},
|
|
7713
|
+
}, Wo = {
|
|
7714
|
+
key: 0,
|
|
7715
|
+
class: "hover-overlay"
|
|
7716
|
+
}, Go = ["onClick"], Ko = ["onClick"], qo = { class: "indicator-item" }, Jo = { class: "menu-section" }, Yo = { class: "menu-items" }, Xo = ["disabled", "onClick"], Zo = {
|
|
7717
|
+
key: 0,
|
|
7718
|
+
class: "param-hint"
|
|
7719
|
+
}, Qo = {
|
|
7720
|
+
key: 1,
|
|
7721
|
+
class: "active-tag"
|
|
7722
|
+
}, $o = { class: "menu-section" }, es = { class: "menu-items" }, ts = ["disabled", "onClick"], ns = {
|
|
7723
|
+
key: 0,
|
|
7724
|
+
class: "param-hint"
|
|
7725
|
+
}, rs = {
|
|
7726
|
+
key: 1,
|
|
7727
|
+
class: "active-tag"
|
|
7728
|
+
}, is = /* @__PURE__ */ po(/* @__PURE__ */ u({
|
|
7713
7729
|
__name: "IndicatorSelector",
|
|
7714
7730
|
props: {
|
|
7715
7731
|
activeIndicators: {},
|
|
7716
7732
|
indicatorParams: {}
|
|
7717
7733
|
},
|
|
7718
7734
|
emits: ["toggle", "updateParams"],
|
|
7719
|
-
setup(
|
|
7720
|
-
let
|
|
7735
|
+
setup(u, { emit: d }) {
|
|
7736
|
+
let y = [
|
|
7721
7737
|
{
|
|
7722
7738
|
id: "MA",
|
|
7723
7739
|
label: "MA",
|
|
@@ -7737,6 +7753,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
|
|
|
7737
7753
|
min: 2,
|
|
7738
7754
|
max: 100,
|
|
7739
7755
|
step: 1,
|
|
7756
|
+
default: 20,
|
|
7740
7757
|
description: "计算移动平均线的周期数,周期越长轨道越平滑"
|
|
7741
7758
|
}, {
|
|
7742
7759
|
key: "multiplier",
|
|
@@ -7745,6 +7762,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
|
|
|
7745
7762
|
min: .1,
|
|
7746
7763
|
max: 5,
|
|
7747
7764
|
step: .1,
|
|
7765
|
+
default: 2,
|
|
7748
7766
|
description: "标准差倍数,决定轨道宽度,通常为 2"
|
|
7749
7767
|
}]
|
|
7750
7768
|
},
|
|
@@ -7762,6 +7780,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
|
|
|
7762
7780
|
min: 2,
|
|
7763
7781
|
max: 50,
|
|
7764
7782
|
step: 1,
|
|
7783
|
+
default: 12,
|
|
7765
7784
|
description: "快线 EMA 周期,对价格变化更敏感"
|
|
7766
7785
|
},
|
|
7767
7786
|
{
|
|
@@ -7771,6 +7790,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
|
|
|
7771
7790
|
min: 2,
|
|
7772
7791
|
max: 100,
|
|
7773
7792
|
step: 1,
|
|
7793
|
+
default: 26,
|
|
7774
7794
|
description: "慢线 EMA 周期,用于计算 DIF"
|
|
7775
7795
|
},
|
|
7776
7796
|
{
|
|
@@ -7780,6 +7800,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
|
|
|
7780
7800
|
min: 2,
|
|
7781
7801
|
max: 50,
|
|
7782
7802
|
step: 1,
|
|
7803
|
+
default: 9,
|
|
7783
7804
|
description: "DEA 的 EMA 周期,用于生成买卖信号"
|
|
7784
7805
|
}
|
|
7785
7806
|
]
|
|
@@ -7798,6 +7819,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
|
|
|
7798
7819
|
min: 2,
|
|
7799
7820
|
max: 100,
|
|
7800
7821
|
step: 1,
|
|
7822
|
+
default: 6,
|
|
7801
7823
|
description: "第一条 RSI 周期,通常为 6(快线)"
|
|
7802
7824
|
},
|
|
7803
7825
|
{
|
|
@@ -7807,6 +7829,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
|
|
|
7807
7829
|
min: 2,
|
|
7808
7830
|
max: 100,
|
|
7809
7831
|
step: 1,
|
|
7832
|
+
default: 12,
|
|
7810
7833
|
description: "第二条 RSI 周期,通常为 12(中线)"
|
|
7811
7834
|
},
|
|
7812
7835
|
{
|
|
@@ -7816,6 +7839,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
|
|
|
7816
7839
|
min: 2,
|
|
7817
7840
|
max: 100,
|
|
7818
7841
|
step: 1,
|
|
7842
|
+
default: 24,
|
|
7819
7843
|
description: "第三条 RSI 周期,通常为 24(慢线)"
|
|
7820
7844
|
}
|
|
7821
7845
|
]
|
|
@@ -7833,6 +7857,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
|
|
|
7833
7857
|
min: 2,
|
|
7834
7858
|
max: 100,
|
|
7835
7859
|
step: 1,
|
|
7860
|
+
default: 14,
|
|
7836
7861
|
description: "计算周期,周期越短信号越灵敏"
|
|
7837
7862
|
}]
|
|
7838
7863
|
},
|
|
@@ -7849,6 +7874,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
|
|
|
7849
7874
|
min: 2,
|
|
7850
7875
|
max: 100,
|
|
7851
7876
|
step: 1,
|
|
7877
|
+
default: 9,
|
|
7852
7878
|
description: "计算 K 值的周期,统计 N 日内价格区间"
|
|
7853
7879
|
}, {
|
|
7854
7880
|
key: "m",
|
|
@@ -7857,6 +7883,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
|
|
|
7857
7883
|
min: 1,
|
|
7858
7884
|
max: 50,
|
|
7859
7885
|
step: 1,
|
|
7886
|
+
default: 3,
|
|
7860
7887
|
description: "D 值是 K 的 M 日移动平均,使信号更平滑"
|
|
7861
7888
|
}]
|
|
7862
7889
|
},
|
|
@@ -7873,6 +7900,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
|
|
|
7873
7900
|
min: 2,
|
|
7874
7901
|
max: 100,
|
|
7875
7902
|
step: 1,
|
|
7903
|
+
default: 10,
|
|
7876
7904
|
description: "与多少日前价格比较,周期越短越灵敏"
|
|
7877
7905
|
}]
|
|
7878
7906
|
},
|
|
@@ -7889,6 +7917,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
|
|
|
7889
7917
|
min: 2,
|
|
7890
7918
|
max: 100,
|
|
7891
7919
|
step: 1,
|
|
7920
|
+
default: 14,
|
|
7892
7921
|
description: "回溯周期,统计周期内最高最低价"
|
|
7893
7922
|
}]
|
|
7894
7923
|
},
|
|
@@ -7906,6 +7935,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
|
|
|
7906
7935
|
min: 2,
|
|
7907
7936
|
max: 100,
|
|
7908
7937
|
step: 1,
|
|
7938
|
+
default: 10,
|
|
7909
7939
|
description: "短期变化率周期"
|
|
7910
7940
|
},
|
|
7911
7941
|
{
|
|
@@ -7915,6 +7945,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
|
|
|
7915
7945
|
min: 2,
|
|
7916
7946
|
max: 100,
|
|
7917
7947
|
step: 1,
|
|
7948
|
+
default: 15,
|
|
7918
7949
|
description: "中短期变化率周期"
|
|
7919
7950
|
},
|
|
7920
7951
|
{
|
|
@@ -7924,6 +7955,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
|
|
|
7924
7955
|
min: 2,
|
|
7925
7956
|
max: 100,
|
|
7926
7957
|
step: 1,
|
|
7958
|
+
default: 20,
|
|
7927
7959
|
description: "中长期变化率周期"
|
|
7928
7960
|
},
|
|
7929
7961
|
{
|
|
@@ -7933,6 +7965,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
|
|
|
7933
7965
|
min: 2,
|
|
7934
7966
|
max: 100,
|
|
7935
7967
|
step: 1,
|
|
7968
|
+
default: 30,
|
|
7936
7969
|
description: "长期变化率周期"
|
|
7937
7970
|
},
|
|
7938
7971
|
{
|
|
@@ -7942,6 +7975,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
|
|
|
7942
7975
|
min: 2,
|
|
7943
7976
|
max: 50,
|
|
7944
7977
|
step: 1,
|
|
7978
|
+
default: 9,
|
|
7945
7979
|
description: "信号线的 SMA 周期"
|
|
7946
7980
|
}
|
|
7947
7981
|
]
|
|
@@ -7959,81 +7993,181 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
|
|
|
7959
7993
|
min: 2,
|
|
7960
7994
|
max: 100,
|
|
7961
7995
|
step: 1,
|
|
7996
|
+
default: 9,
|
|
7962
7997
|
description: "计算周期,周期越短越敏感"
|
|
7963
7998
|
}]
|
|
7964
7999
|
}
|
|
7965
|
-
],
|
|
7966
|
-
|
|
7967
|
-
|
|
8000
|
+
], S = y.filter((e) => e.pane === "main"), T = y.filter((e) => e.pane === "sub"), E = u, D = d, O = _(null), k = _(null), A = _(!1), j = _(null), M = _(null), N = _(!1), ee = _({
|
|
8001
|
+
left: "0",
|
|
8002
|
+
bottom: "0"
|
|
8003
|
+
}), te = r(() => E.activeIndicators?.length ? E.activeIndicators.map((e) => y.find((t) => t.id === e)).filter((e) => e !== void 0) : []), P = r(() => j.value && y.find((e) => e.id === j.value) || null);
|
|
8004
|
+
function F(e) {
|
|
8005
|
+
return E.activeIndicators?.includes(e) ?? !1;
|
|
7968
8006
|
}
|
|
7969
|
-
function
|
|
7970
|
-
|
|
7971
|
-
|
|
8007
|
+
function ne(e) {
|
|
8008
|
+
if (F(e)) return;
|
|
8009
|
+
let t = y.find((t) => t.id === e);
|
|
8010
|
+
t && (t.pane === "main" && y.filter((t) => t.pane === "main" && t.id !== e && F(t.id)).forEach((e) => D("toggle", e.id, !1)), D("toggle", e, !0), N.value = !1);
|
|
7972
8011
|
}
|
|
7973
|
-
function
|
|
7974
|
-
|
|
8012
|
+
function I(e) {
|
|
8013
|
+
D("toggle", e, !1);
|
|
7975
8014
|
}
|
|
7976
|
-
function
|
|
7977
|
-
|
|
7978
|
-
|
|
8015
|
+
function re(e) {
|
|
8016
|
+
j.value = e, A.value = !0;
|
|
8017
|
+
}
|
|
8018
|
+
function ie(e) {
|
|
8019
|
+
let t = y.find((t) => t.id === e);
|
|
8020
|
+
if (!t?.params) return {};
|
|
8021
|
+
let n = {};
|
|
8022
|
+
for (let e of t.params) n[e.key] = e.default ?? e.min ?? 1;
|
|
7979
8023
|
return {
|
|
7980
|
-
...
|
|
7981
|
-
...
|
|
8024
|
+
...n,
|
|
8025
|
+
...E.indicatorParams?.[e] || {}
|
|
7982
8026
|
};
|
|
7983
8027
|
}
|
|
7984
|
-
function
|
|
7985
|
-
let t =
|
|
7986
|
-
return e.params ? e.params.map((e) => t[e.key]).join(",") : "";
|
|
8028
|
+
function ae(e) {
|
|
8029
|
+
let t = ie(e.id);
|
|
8030
|
+
return e.params ? e.params.map((e) => t[e.key] ?? "").join(",") : "";
|
|
7987
8031
|
}
|
|
7988
|
-
function
|
|
7989
|
-
|
|
7990
|
-
}
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
|
|
7994
|
-
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
}
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
}
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
"
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
"
|
|
8021
|
-
|
|
8022
|
-
|
|
8023
|
-
"
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8032
|
+
function oe(e) {
|
|
8033
|
+
j.value && D("updateParams", j.value, e), A.value = !1;
|
|
8034
|
+
}
|
|
8035
|
+
function L() {
|
|
8036
|
+
if (!N.value && O.value) {
|
|
8037
|
+
let e = O.value.getBoundingClientRect(), t = window.innerWidth, n = e.left + e.width / 2;
|
|
8038
|
+
n + 160 > t - 8 && (n = t - 160 - 8), n - 160 < 8 && (n = 168), ee.value = {
|
|
8039
|
+
left: `${n}px`,
|
|
8040
|
+
bottom: `${window.innerHeight - e.top + 8}px`
|
|
8041
|
+
};
|
|
8042
|
+
}
|
|
8043
|
+
N.value = !N.value;
|
|
8044
|
+
}
|
|
8045
|
+
function se(e) {
|
|
8046
|
+
let t = k.value && !k.value.contains(e.target), n = O.value && !O.value.contains(e.target);
|
|
8047
|
+
t && n && (N.value = !1);
|
|
8048
|
+
}
|
|
8049
|
+
function ce() {
|
|
8050
|
+
N.value &&= !1;
|
|
8051
|
+
}
|
|
8052
|
+
return m(() => {
|
|
8053
|
+
document.addEventListener("click", se), window.addEventListener("resize", ce);
|
|
8054
|
+
}), h(() => {
|
|
8055
|
+
document.removeEventListener("click", se), window.removeEventListener("resize", ce);
|
|
8056
|
+
}), (r, u) => (g(), o("div", Ro, [
|
|
8057
|
+
s("div", zo, [s("div", Bo, [(g(!0), o(e, null, v(te.value, (e) => (g(), o("div", {
|
|
8058
|
+
key: e.id,
|
|
8059
|
+
class: "indicator-item"
|
|
8060
|
+
}, [s("div", {
|
|
8061
|
+
class: "indicator-btn-wrapper",
|
|
8062
|
+
onMouseenter: (t) => M.value = e.id,
|
|
8063
|
+
onMouseleave: u[0] ||= (e) => M.value = null
|
|
8064
|
+
}, [s("button", { class: f(["indicator-btn", {
|
|
8065
|
+
active: !0,
|
|
8066
|
+
hovering: M.value === e.id
|
|
8067
|
+
}]) }, [s("span", Ho, [c(b(e.label) + " ", 1), e.params ? (g(), o("span", Uo, " (" + b(ae(e)) + ") ", 1)) : a("", !0)]), l(n, { name: "fade" }, {
|
|
8068
|
+
default: C(() => [M.value === e.id ? (g(), o("div", Wo, [
|
|
8069
|
+
s("button", {
|
|
8070
|
+
class: "action-btn settings-btn",
|
|
8071
|
+
onClick: w((t) => re(e.id), ["stop"]),
|
|
8072
|
+
title: "编辑参数"
|
|
8073
|
+
}, [...u[2] ||= [s("svg", {
|
|
8074
|
+
viewBox: "0 0 24 24",
|
|
8075
|
+
width: "14",
|
|
8076
|
+
height: "14",
|
|
8077
|
+
fill: "currentColor"
|
|
8078
|
+
}, [s("path", { d: "M19.14 12.94c.04-.31.06-.63.06-.94 0-.31-.02-.63-.06-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.04.31-.06.63-.06.94s.02.63.06.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z" })], -1)]], 8, Go),
|
|
8079
|
+
u[4] ||= s("span", { class: "divider" }, null, -1),
|
|
8080
|
+
s("button", {
|
|
8081
|
+
class: "action-btn remove-btn",
|
|
8082
|
+
onClick: w((t) => I(e.id), ["stop"]),
|
|
8083
|
+
title: "移除指标"
|
|
8084
|
+
}, [...u[3] ||= [s("svg", {
|
|
8085
|
+
viewBox: "0 0 24 24",
|
|
8086
|
+
width: "14",
|
|
8087
|
+
height: "14",
|
|
8088
|
+
fill: "currentColor"
|
|
8089
|
+
}, [s("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })], -1)]], 8, Ko)
|
|
8090
|
+
])) : a("", !0)]),
|
|
8091
|
+
_: 2
|
|
8092
|
+
}, 1024)], 2)], 40, Vo)]))), 128)), s("div", qo, [s("button", {
|
|
8093
|
+
ref_key: "addBtnRef",
|
|
8094
|
+
ref: O,
|
|
8095
|
+
class: "add-btn",
|
|
8096
|
+
onClick: L,
|
|
8097
|
+
title: "添加指标"
|
|
8098
|
+
}, [...u[5] ||= [s("svg", {
|
|
8099
|
+
viewBox: "0 0 24 24",
|
|
8100
|
+
width: "16",
|
|
8101
|
+
height: "16",
|
|
8102
|
+
fill: "currentColor"
|
|
8103
|
+
}, [s("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" })], -1)]], 512)])])]),
|
|
8104
|
+
(g(), i(t, { to: "body" }, [l(n, { name: "slide" }, {
|
|
8105
|
+
default: C(() => [N.value ? (g(), o("div", {
|
|
8106
|
+
key: 0,
|
|
8107
|
+
class: "add-menu",
|
|
8108
|
+
ref_key: "addMenuRef",
|
|
8109
|
+
ref: k,
|
|
8110
|
+
style: p(ee.value)
|
|
8111
|
+
}, [s("div", Jo, [u[7] ||= s("div", { class: "menu-title" }, "主图指标", -1), s("div", Yo, [(g(!0), o(e, null, v(x(S), (e) => (g(), o("button", {
|
|
8112
|
+
key: e.id,
|
|
8113
|
+
class: f(["menu-item", { disabled: F(e.id) }]),
|
|
8114
|
+
disabled: F(e.id),
|
|
8115
|
+
onClick: (t) => ne(e.id)
|
|
8116
|
+
}, [
|
|
8117
|
+
c(b(e.label) + " ", 1),
|
|
8118
|
+
e.params ? (g(), o("span", Zo, " (" + b(e.name) + ") ", 1)) : a("", !0),
|
|
8119
|
+
F(e.id) ? (g(), o("span", Qo, [...u[6] ||= [s("svg", {
|
|
8120
|
+
viewBox: "0 0 24 24",
|
|
8121
|
+
width: "14",
|
|
8122
|
+
height: "14",
|
|
8123
|
+
fill: "currentColor"
|
|
8124
|
+
}, [s("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" })], -1)]])) : a("", !0)
|
|
8125
|
+
], 10, Xo))), 128))])]), s("div", $o, [u[9] ||= s("div", { class: "menu-title" }, "副图指标", -1), s("div", es, [(g(!0), o(e, null, v(x(T), (e) => (g(), o("button", {
|
|
8126
|
+
key: e.id,
|
|
8127
|
+
class: f(["menu-item", { disabled: F(e.id) }]),
|
|
8128
|
+
disabled: F(e.id),
|
|
8129
|
+
onClick: (t) => ne(e.id)
|
|
8130
|
+
}, [
|
|
8131
|
+
c(b(e.label) + " ", 1),
|
|
8132
|
+
e.params ? (g(), o("span", ns, " (" + b(e.name) + ") ", 1)) : a("", !0),
|
|
8133
|
+
F(e.id) ? (g(), o("span", rs, [...u[8] ||= [s("svg", {
|
|
8134
|
+
viewBox: "0 0 24 24",
|
|
8135
|
+
width: "14",
|
|
8136
|
+
height: "14",
|
|
8137
|
+
fill: "currentColor"
|
|
8138
|
+
}, [s("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" })], -1)]])) : a("", !0)
|
|
8139
|
+
], 10, ts))), 128))])])], 4)) : a("", !0)]),
|
|
8140
|
+
_: 1
|
|
8141
|
+
})])),
|
|
8142
|
+
P.value ? (g(), i(Lo, {
|
|
8143
|
+
key: 0,
|
|
8144
|
+
visible: A.value,
|
|
8145
|
+
"indicator-id": P.value.id,
|
|
8146
|
+
"indicator-name": P.value.name,
|
|
8147
|
+
"indicator-description": P.value.description,
|
|
8148
|
+
params: P.value.params || [],
|
|
8149
|
+
values: ie(P.value.id),
|
|
8150
|
+
onClose: u[1] ||= (e) => A.value = !1,
|
|
8151
|
+
onConfirm: oe
|
|
8152
|
+
}, null, 8, [
|
|
8153
|
+
"visible",
|
|
8154
|
+
"indicator-id",
|
|
8155
|
+
"indicator-name",
|
|
8156
|
+
"indicator-description",
|
|
8157
|
+
"params",
|
|
8158
|
+
"values"
|
|
8159
|
+
])) : a("", !0)
|
|
8160
|
+
]));
|
|
8161
|
+
}
|
|
8162
|
+
}), [["__scopeId", "data-v-76ea9e8f"]]);
|
|
8029
8163
|
//#endregion
|
|
8030
8164
|
//#region src/core/utils/klineConfig.ts
|
|
8031
|
-
function
|
|
8165
|
+
function as(e, t) {
|
|
8032
8166
|
let n = Math.round(e * t);
|
|
8033
8167
|
return n % 2 == 0 && (n += 1), Math.max(1, n);
|
|
8034
8168
|
}
|
|
8035
|
-
function
|
|
8036
|
-
let r =
|
|
8169
|
+
function os(e, t, n) {
|
|
8170
|
+
let r = as(e, n), i = Math.round(t * n), a = r + i, o = i;
|
|
8037
8171
|
return {
|
|
8038
8172
|
kWidthPx: r,
|
|
8039
8173
|
kGapPx: i,
|
|
@@ -8047,14 +8181,14 @@ function Go(e, t, n) {
|
|
|
8047
8181
|
}
|
|
8048
8182
|
//#endregion
|
|
8049
8183
|
//#region src/core/viewport/viewport.ts
|
|
8050
|
-
function
|
|
8051
|
-
let { unitPx: o, startXPx: s } =
|
|
8184
|
+
function ss(e, t, n, r, i, a = 1) {
|
|
8185
|
+
let { unitPx: o, startXPx: s } = os(n, r, a), c = e * a, l = t * a;
|
|
8052
8186
|
return {
|
|
8053
8187
|
start: Math.max(0, Math.floor((c - s) / o) - 1),
|
|
8054
8188
|
end: Math.min(i, Math.ceil((c + l - s) / o) + 1)
|
|
8055
8189
|
};
|
|
8056
8190
|
}
|
|
8057
|
-
function
|
|
8191
|
+
function cs(e, t, n) {
|
|
8058
8192
|
let r = -Infinity, i = Infinity;
|
|
8059
8193
|
for (let a = t; a < n && a < e.length; a++) {
|
|
8060
8194
|
let t = e[a];
|
|
@@ -8070,7 +8204,7 @@ function qo(e, t, n) {
|
|
|
8070
8204
|
}
|
|
8071
8205
|
//#endregion
|
|
8072
8206
|
//#region src/core/scale/priceScale.ts
|
|
8073
|
-
var
|
|
8207
|
+
var ls = class {
|
|
8074
8208
|
range = {
|
|
8075
8209
|
maxPrice: 100,
|
|
8076
8210
|
minPrice: 0
|
|
@@ -8104,7 +8238,7 @@ var Jo = class {
|
|
|
8104
8238
|
let { maxPrice: t, minPrice: n } = this.range, r = t - n || 1, i = Math.max(1, this.height - this.paddingTop - this.paddingBottom);
|
|
8105
8239
|
return n + (1 - (e - this.paddingTop) / i) * r;
|
|
8106
8240
|
}
|
|
8107
|
-
},
|
|
8241
|
+
}, us = class {
|
|
8108
8242
|
id;
|
|
8109
8243
|
top = 0;
|
|
8110
8244
|
height = 0;
|
|
@@ -8112,7 +8246,7 @@ var Jo = class {
|
|
|
8112
8246
|
maxPrice: 100,
|
|
8113
8247
|
minPrice: 0
|
|
8114
8248
|
};
|
|
8115
|
-
yAxis = new
|
|
8249
|
+
yAxis = new ls();
|
|
8116
8250
|
renderers = [];
|
|
8117
8251
|
constructor(e) {
|
|
8118
8252
|
this.id = e;
|
|
@@ -8127,9 +8261,9 @@ var Jo = class {
|
|
|
8127
8261
|
this.renderers.push(e);
|
|
8128
8262
|
}
|
|
8129
8263
|
updateRange(e, t) {
|
|
8130
|
-
this.priceRange =
|
|
8264
|
+
this.priceRange = cs(e, t.start, t.end), this.yAxis.setRange(this.priceRange);
|
|
8131
8265
|
}
|
|
8132
|
-
},
|
|
8266
|
+
}, ds = class {
|
|
8133
8267
|
chart;
|
|
8134
8268
|
isDragging = !1;
|
|
8135
8269
|
dragStartX = 0;
|
|
@@ -8294,22 +8428,22 @@ var Jo = class {
|
|
|
8294
8428
|
this.hoveredIndex = null;
|
|
8295
8429
|
return;
|
|
8296
8430
|
}
|
|
8297
|
-
let T = a - C.top, E = C.yAxis.priceToY(w.open), D = C.yAxis.priceToY(w.close), O = C.yAxis.priceToY(w.high), k = C.yAxis.priceToY(w.low), A = Math.min(E, D), j = Math.max(E, D), M = m - this.kLinePositions[b], N = _ / 2,
|
|
8298
|
-
if (!
|
|
8431
|
+
let T = a - C.top, E = C.yAxis.priceToY(w.open), D = C.yAxis.priceToY(w.close), O = C.yAxis.priceToY(w.high), k = C.yAxis.priceToY(w.low), A = Math.min(E, D), j = Math.max(E, D), M = m - this.kLinePositions[b], N = _ / 2, ee = Math.abs(j - A), te = ee < 8 ? (A + j) / 2 - 8 / 2 : A, P = ee < 8 ? (A + j) / 2 + 8 / 2 : j, F = T >= te && T <= P && M >= 0 && M <= _, ne = Math.abs(M - N) <= 3 && T >= O && T <= k;
|
|
8432
|
+
if (!F && !ne) {
|
|
8299
8433
|
this.hoveredIndex = null;
|
|
8300
8434
|
return;
|
|
8301
8435
|
}
|
|
8302
8436
|
this.hoveredIndex = this.crosshairIndex;
|
|
8303
|
-
let
|
|
8437
|
+
let I = this.tooltipSize.width, re = this.tooltipSize.height, ie = i + 14, ae = i - 14 - I, oe = ie + I + 12 <= s ? ie : ae, L = a + 14, se = Math.max(12, s - I - 12), ce = Math.max(12, c - re - 12);
|
|
8304
8438
|
this.tooltipPos = {
|
|
8305
|
-
x: Math.min(Math.max(
|
|
8306
|
-
y: Math.min(Math.max(
|
|
8439
|
+
x: Math.min(Math.max(oe, 12), se),
|
|
8440
|
+
y: Math.min(Math.max(L, 12), ce)
|
|
8307
8441
|
};
|
|
8308
8442
|
}
|
|
8309
8443
|
reset() {
|
|
8310
8444
|
this.isDragging = !1, this.dragStartX = 0, this.scrollStartX = 0, this.isTouchSession = !1, this.crosshairPos = null, this.crosshairIndex = null, this.hoveredIndex = null, this.activePaneId = null, this.hoveredMarkerId = null, this.clickedMarkerId = null, this.hoveredMarkerData = null, this.clickedMarkerData = null, this.kLinePositions = null, this.visibleRange = null, this.kWidthPx = null;
|
|
8311
8445
|
}
|
|
8312
|
-
},
|
|
8446
|
+
}, fs = class {
|
|
8313
8447
|
dom;
|
|
8314
8448
|
pane;
|
|
8315
8449
|
opt;
|
|
@@ -8335,7 +8469,7 @@ var Jo = class {
|
|
|
8335
8469
|
};
|
|
8336
8470
|
//#endregion
|
|
8337
8471
|
//#region src/core/renderers/subVolume.ts
|
|
8338
|
-
function
|
|
8472
|
+
function ps(e = {}) {
|
|
8339
8473
|
let { paneId: t = "sub" } = e;
|
|
8340
8474
|
return {
|
|
8341
8475
|
name: `volume_${t}`,
|
|
@@ -8354,26 +8488,26 @@ function Qo(e = {}) {
|
|
|
8354
8488
|
if (!r) continue;
|
|
8355
8489
|
let i = r.volume;
|
|
8356
8490
|
if (!i) continue;
|
|
8357
|
-
let a =
|
|
8358
|
-
d &&
|
|
8491
|
+
let a = hs(r), d = c[e - u];
|
|
8492
|
+
d && ms(t, d, a, i, f, o, s, n.height);
|
|
8359
8493
|
}
|
|
8360
8494
|
t.restore();
|
|
8361
8495
|
}
|
|
8362
8496
|
};
|
|
8363
8497
|
}
|
|
8364
|
-
function
|
|
8365
|
-
let c =
|
|
8498
|
+
function ms(e, t, n, r, i, a, o, s) {
|
|
8499
|
+
let c = gs(r, i, s), l = a;
|
|
8366
8500
|
e.fillStyle = n, e.fillRect(t, c, l, s - c);
|
|
8367
8501
|
}
|
|
8368
|
-
function
|
|
8502
|
+
function hs(e) {
|
|
8369
8503
|
return e.close > e.open ? X.UP : e.close < e.open ? X.DOWN : X.NEUTRAL;
|
|
8370
8504
|
}
|
|
8371
|
-
function
|
|
8505
|
+
function gs(e, t, n) {
|
|
8372
8506
|
return n - n / t * e;
|
|
8373
8507
|
}
|
|
8374
8508
|
//#endregion
|
|
8375
8509
|
//#region src/utils/priceToY.ts
|
|
8376
|
-
function
|
|
8510
|
+
function _s(e, t, n, r, i, a) {
|
|
8377
8511
|
let o = t - n || 1, s = (e - n) / o;
|
|
8378
8512
|
return i + Math.max(1, r - i - a) * (1 - s);
|
|
8379
8513
|
}
|
|
@@ -8385,7 +8519,7 @@ function Z(e, t) {
|
|
|
8385
8519
|
function Q(e, t) {
|
|
8386
8520
|
return (Math.floor(e * t) + .5) / t;
|
|
8387
8521
|
}
|
|
8388
|
-
function
|
|
8522
|
+
function vs(e, t, n, r) {
|
|
8389
8523
|
if (t === n) return null;
|
|
8390
8524
|
let i = Math.min(t, n), a = Math.max(t, n), o = Math.round(e * r), s = Math.round(i * r), c = Math.round(a * r);
|
|
8391
8525
|
return {
|
|
@@ -8395,7 +8529,7 @@ function rs(e, t, n, r) {
|
|
|
8395
8529
|
height: Math.max(1, c - s) / r
|
|
8396
8530
|
};
|
|
8397
8531
|
}
|
|
8398
|
-
function
|
|
8532
|
+
function ys(e, t, n, r) {
|
|
8399
8533
|
if (e === t) return null;
|
|
8400
8534
|
let i = Math.min(e, t), a = Math.max(e, t), o = Math.round(i * r), s = Math.round(a * r), c = Math.round(n * r);
|
|
8401
8535
|
return {
|
|
@@ -8405,7 +8539,7 @@ function is(e, t, n, r) {
|
|
|
8405
8539
|
height: 1 / r
|
|
8406
8540
|
};
|
|
8407
8541
|
}
|
|
8408
|
-
function
|
|
8542
|
+
function bs(e, t, n, r, i) {
|
|
8409
8543
|
let a = e + n, o = n, s = Math.round(t * i), c = Math.round((t + r) * i), l = Math.max(1, c - s), u = e + (n - 1) / 2, d = u, f = o % 2 == 1;
|
|
8410
8544
|
return {
|
|
8411
8545
|
bodyRect: {
|
|
@@ -8428,7 +8562,7 @@ function as(e, t, n, r, i) {
|
|
|
8428
8562
|
}
|
|
8429
8563
|
//#endregion
|
|
8430
8564
|
//#region src/core/renderers/Indicator/ma.ts
|
|
8431
|
-
function
|
|
8565
|
+
function xs(e, t) {
|
|
8432
8566
|
let n = Array(e.length);
|
|
8433
8567
|
if (e.length < t) return n;
|
|
8434
8568
|
let r = 0;
|
|
@@ -8444,7 +8578,7 @@ function os(e, t) {
|
|
|
8444
8578
|
}
|
|
8445
8579
|
return n;
|
|
8446
8580
|
}
|
|
8447
|
-
function
|
|
8581
|
+
function Ss(e = {}) {
|
|
8448
8582
|
let t = {
|
|
8449
8583
|
ma5: !0,
|
|
8450
8584
|
ma10: !0,
|
|
@@ -8456,7 +8590,7 @@ function ss(e = {}) {
|
|
|
8456
8590
|
function i(e, t) {
|
|
8457
8591
|
let i = n.get(t);
|
|
8458
8592
|
if (i && r === e) return i.values;
|
|
8459
|
-
let a =
|
|
8593
|
+
let a = xs(e, t);
|
|
8460
8594
|
return n.set(t, {
|
|
8461
8595
|
period: t,
|
|
8462
8596
|
values: a
|
|
@@ -8472,7 +8606,7 @@ function ss(e = {}) {
|
|
|
8472
8606
|
for (let n = a.start; n < a.end && n < t.length; n++) {
|
|
8473
8607
|
let r = t[n];
|
|
8474
8608
|
if (r === void 0) continue;
|
|
8475
|
-
let i = l[n - a.start] + o / 2, s =
|
|
8609
|
+
let i = l[n - a.start] + o / 2, s = _s(r, h, g, u, p, m), d = Q(i, c), f = Q(s, c);
|
|
8476
8610
|
_ ? (e.moveTo(d, f), _ = !1) : e.lineTo(d, f);
|
|
8477
8611
|
}
|
|
8478
8612
|
e.stroke();
|
|
@@ -8501,7 +8635,7 @@ function ss(e = {}) {
|
|
|
8501
8635
|
}
|
|
8502
8636
|
//#endregion
|
|
8503
8637
|
//#region src/utils/kline/ma.ts
|
|
8504
|
-
function
|
|
8638
|
+
function Cs(e, t, n) {
|
|
8505
8639
|
if (t < n - 1) return;
|
|
8506
8640
|
let r = 0;
|
|
8507
8641
|
for (let i = 0; i < n; i++) {
|
|
@@ -8513,7 +8647,7 @@ function cs(e, t, n) {
|
|
|
8513
8647
|
}
|
|
8514
8648
|
//#endregion
|
|
8515
8649
|
//#region src/core/renderers/Indicator/maLegend.ts
|
|
8516
|
-
function
|
|
8650
|
+
function ws(e) {
|
|
8517
8651
|
let t = {
|
|
8518
8652
|
ma5: !0,
|
|
8519
8653
|
ma10: !0,
|
|
@@ -8538,23 +8672,23 @@ function ls(e) {
|
|
|
8538
8672
|
if (t.ma5 && l.push({
|
|
8539
8673
|
label: "MA5",
|
|
8540
8674
|
color: ja.MA5,
|
|
8541
|
-
value:
|
|
8675
|
+
value: Cs(o, c, 5)
|
|
8542
8676
|
}), t.ma10 && l.push({
|
|
8543
8677
|
label: "MA10",
|
|
8544
8678
|
color: ja.MA10,
|
|
8545
|
-
value:
|
|
8679
|
+
value: Cs(o, c, 10)
|
|
8546
8680
|
}), t.ma20 && l.push({
|
|
8547
8681
|
label: "MA20",
|
|
8548
8682
|
color: ja.MA20,
|
|
8549
|
-
value:
|
|
8683
|
+
value: Cs(o, c, 20)
|
|
8550
8684
|
}), t.ma30 && l.push({
|
|
8551
8685
|
label: "MA30",
|
|
8552
8686
|
color: ja.MA30,
|
|
8553
|
-
value:
|
|
8687
|
+
value: Cs(o, c, 30)
|
|
8554
8688
|
}), t.ma60 && l.push({
|
|
8555
8689
|
label: "MA60",
|
|
8556
8690
|
color: ja.MA60,
|
|
8557
|
-
value:
|
|
8691
|
+
value: Cs(o, c, 60)
|
|
8558
8692
|
}), l.length > 0) {
|
|
8559
8693
|
let e = 12, t = s;
|
|
8560
8694
|
r.fillStyle = X.NEUTRAL, r.fillText("均线", e, t), e += r.measureText("均线").width + 10;
|
|
@@ -8575,7 +8709,7 @@ function ls(e) {
|
|
|
8575
8709
|
}
|
|
8576
8710
|
//#endregion
|
|
8577
8711
|
//#region src/core/renderers/Indicator/boll.ts
|
|
8578
|
-
function
|
|
8712
|
+
function Ts(e, t, n) {
|
|
8579
8713
|
let r = Array(e.length);
|
|
8580
8714
|
if (e.length < t) return r;
|
|
8581
8715
|
let i = 0, a = [];
|
|
@@ -8608,7 +8742,7 @@ function us(e, t, n) {
|
|
|
8608
8742
|
}
|
|
8609
8743
|
return r;
|
|
8610
8744
|
}
|
|
8611
|
-
function
|
|
8745
|
+
function Es(e = {}) {
|
|
8612
8746
|
let t = {
|
|
8613
8747
|
period: 20,
|
|
8614
8748
|
multiplier: 2,
|
|
@@ -8619,7 +8753,7 @@ function ds(e = {}) {
|
|
|
8619
8753
|
...e
|
|
8620
8754
|
}, n = null, r = 0, i = 0, a = [];
|
|
8621
8755
|
function o(e) {
|
|
8622
|
-
return (n !== e || r !== t.period || i !== t.multiplier) && (a =
|
|
8756
|
+
return (n !== e || r !== t.period || i !== t.multiplier) && (a = Ts(e, t.period, t.multiplier), n = e, r = t.period, i = t.multiplier), a;
|
|
8623
8757
|
}
|
|
8624
8758
|
return {
|
|
8625
8759
|
name: "boll",
|
|
@@ -8649,13 +8783,13 @@ function ds(e = {}) {
|
|
|
8649
8783
|
for (let t = C; t < w; t++) {
|
|
8650
8784
|
let r = p[t];
|
|
8651
8785
|
if (!r) continue;
|
|
8652
|
-
let i = d[t - a.start] + m.kWidth / 2, o =
|
|
8786
|
+
let i = d[t - a.start] + m.kWidth / 2, o = _s(r.upper, x, S, g, y, b), s = Q(i, u), c = Q(o, u);
|
|
8653
8787
|
e ? (n.moveTo(s, c), e = !1) : n.lineTo(s, c);
|
|
8654
8788
|
}
|
|
8655
8789
|
for (let e = w - 1; e >= C; e--) {
|
|
8656
8790
|
let t = p[e];
|
|
8657
8791
|
if (!t) continue;
|
|
8658
|
-
let r = d[e - a.start] + m.kWidth / 2, i =
|
|
8792
|
+
let r = d[e - a.start] + m.kWidth / 2, i = _s(t.lower, x, S, g, y, b), o = Q(r, u), s = Q(i, u);
|
|
8659
8793
|
n.lineTo(o, s);
|
|
8660
8794
|
}
|
|
8661
8795
|
n.closePath(), n.fill();
|
|
@@ -8667,7 +8801,7 @@ function ds(e = {}) {
|
|
|
8667
8801
|
for (let t = C; t < w; t++) {
|
|
8668
8802
|
let i = p[t];
|
|
8669
8803
|
if (!i) continue;
|
|
8670
|
-
let o = d[t - a.start] + m.kWidth / 2, s =
|
|
8804
|
+
let o = d[t - a.start] + m.kWidth / 2, s = _s(i[e], x, S, g, y, b), c = Q(o, u), l = Q(s, u);
|
|
8671
8805
|
r ? (n.moveTo(c, l), r = !1) : n.lineTo(c, l);
|
|
8672
8806
|
}
|
|
8673
8807
|
n.stroke();
|
|
@@ -8685,7 +8819,7 @@ function ds(e = {}) {
|
|
|
8685
8819
|
}
|
|
8686
8820
|
};
|
|
8687
8821
|
}
|
|
8688
|
-
function
|
|
8822
|
+
function Ds(e, t, n = 20, r = 2) {
|
|
8689
8823
|
if (t < n - 1 || t >= e.length) return null;
|
|
8690
8824
|
let i = 0;
|
|
8691
8825
|
for (let r = 0; r < n; r++) {
|
|
@@ -8708,7 +8842,7 @@ function fs(e, t, n = 20, r = 2) {
|
|
|
8708
8842
|
}
|
|
8709
8843
|
//#endregion
|
|
8710
8844
|
//#region src/core/renderers/Indicator/bollLegend.ts
|
|
8711
|
-
function
|
|
8845
|
+
function Os(e) {
|
|
8712
8846
|
let t = {
|
|
8713
8847
|
period: 20,
|
|
8714
8848
|
multiplier: 2,
|
|
@@ -8728,7 +8862,7 @@ function ps(e) {
|
|
|
8728
8862
|
if (!o.length) return;
|
|
8729
8863
|
let s = (12 + e.yPaddingPx) / 2;
|
|
8730
8864
|
r.save(), r.font = "12px Arial", r.textAlign = "left";
|
|
8731
|
-
let c =
|
|
8865
|
+
let c = Ds(o, Math.min(a.end - 1, o.length - 1), t.period, t.multiplier), l = 12;
|
|
8732
8866
|
r.fillStyle = X.NEUTRAL, r.fillText(`BOLL(${t.period},${t.multiplier})`, l, s), l += r.measureText(`BOLL(${t.period},${t.multiplier})`).width + 10, c && (r.fillStyle = Ma.UPPER, r.fillText(`上轨:${c.upper.toFixed(2)}`, l, s), l += r.measureText(`上轨:${c.upper.toFixed(2)}`).width + 10, r.fillStyle = Ma.MIDDLE, r.fillText(`中轨:${c.middle.toFixed(2)}`, l, s), l += r.measureText(`中轨:${c.middle.toFixed(2)}`).width + 10, r.fillStyle = Ma.LOWER, r.fillText(`下轨:${c.lower.toFixed(2)}`, l, s)), r.restore();
|
|
8733
8867
|
},
|
|
8734
8868
|
getConfig() {
|
|
@@ -8741,7 +8875,7 @@ function ps(e) {
|
|
|
8741
8875
|
}
|
|
8742
8876
|
//#endregion
|
|
8743
8877
|
//#region src/core/renderers/Indicator/macd.ts
|
|
8744
|
-
function
|
|
8878
|
+
function ks(e, t) {
|
|
8745
8879
|
let n = Array(e.length), r = 2 / (t + 1);
|
|
8746
8880
|
if (e.length === 0) return n;
|
|
8747
8881
|
n[0] = e[0].close;
|
|
@@ -8751,7 +8885,7 @@ function ms(e, t) {
|
|
|
8751
8885
|
}
|
|
8752
8886
|
return n;
|
|
8753
8887
|
}
|
|
8754
|
-
function
|
|
8888
|
+
function As(e, t) {
|
|
8755
8889
|
let n = Array(e.length), r = 2 / (t + 1), i = e.findIndex((e) => e !== void 0);
|
|
8756
8890
|
if (i === -1) return n;
|
|
8757
8891
|
n[i] = e[i];
|
|
@@ -8761,15 +8895,15 @@ function hs(e, t) {
|
|
|
8761
8895
|
}
|
|
8762
8896
|
return n;
|
|
8763
8897
|
}
|
|
8764
|
-
function
|
|
8898
|
+
function js(e, t, n, r) {
|
|
8765
8899
|
let i = Array(e.length);
|
|
8766
8900
|
if (e.length < n) return i;
|
|
8767
|
-
let a =
|
|
8901
|
+
let a = ks(e, t), o = ks(e, n), s = Array(e.length);
|
|
8768
8902
|
for (let t = 0; t < e.length; t++) {
|
|
8769
8903
|
let e = a[t], n = o[t];
|
|
8770
8904
|
e !== void 0 && n !== void 0 && (s[t] = e - n);
|
|
8771
8905
|
}
|
|
8772
|
-
let c =
|
|
8906
|
+
let c = As(s, r);
|
|
8773
8907
|
for (let t = 0; t < e.length; t++) {
|
|
8774
8908
|
let e = s[t], n = c[t];
|
|
8775
8909
|
e !== void 0 && n !== void 0 && (i[t] = {
|
|
@@ -8780,7 +8914,7 @@ function gs(e, t, n, r) {
|
|
|
8780
8914
|
}
|
|
8781
8915
|
return i;
|
|
8782
8916
|
}
|
|
8783
|
-
function
|
|
8917
|
+
function Ms(e = {}) {
|
|
8784
8918
|
let { paneId: t = "sub", config: n = {} } = e, r = {
|
|
8785
8919
|
fastPeriod: 12,
|
|
8786
8920
|
slowPeriod: 26,
|
|
@@ -8791,7 +8925,7 @@ function _s(e = {}) {
|
|
|
8791
8925
|
...n
|
|
8792
8926
|
}, i = null, a = 0, o = 0, s = 0, c = [];
|
|
8793
8927
|
function l(e) {
|
|
8794
|
-
return (i !== e || a !== r.fastPeriod || o !== r.slowPeriod || s !== r.signalPeriod) && (c =
|
|
8928
|
+
return (i !== e || a !== r.fastPeriod || o !== r.slowPeriod || s !== r.signalPeriod) && (c = js(e, r.fastPeriod, r.slowPeriod, r.signalPeriod), i = e, a = r.fastPeriod, o = r.slowPeriod, s = r.signalPeriod), c;
|
|
8795
8929
|
}
|
|
8796
8930
|
return {
|
|
8797
8931
|
name: `macd_${t}`,
|
|
@@ -8864,11 +8998,11 @@ function _s(e = {}) {
|
|
|
8864
8998
|
}
|
|
8865
8999
|
};
|
|
8866
9000
|
}
|
|
8867
|
-
function
|
|
8868
|
-
return t < r || t >= e.length ? null :
|
|
9001
|
+
function Ns(e, t, n = 12, r = 26, i = 9) {
|
|
9002
|
+
return t < r || t >= e.length ? null : js(e, n, r, i)[t] ?? null;
|
|
8869
9003
|
}
|
|
8870
|
-
function
|
|
8871
|
-
let a =
|
|
9004
|
+
function Ps(e, t, n = 12, r = 26, i = 9) {
|
|
9005
|
+
let a = Ns(e, t, n, r, i);
|
|
8872
9006
|
return a ? {
|
|
8873
9007
|
name: "MACD",
|
|
8874
9008
|
params: [
|
|
@@ -8897,7 +9031,7 @@ function ys(e, t, n = 12, r = 26, i = 9) {
|
|
|
8897
9031
|
}
|
|
8898
9032
|
//#endregion
|
|
8899
9033
|
//#region src/core/renderers/Indicator/rsi.ts
|
|
8900
|
-
function
|
|
9034
|
+
function Fs(e, t) {
|
|
8901
9035
|
let n = Array(e.length);
|
|
8902
9036
|
if (e.length < t + 1) return n;
|
|
8903
9037
|
let r = [];
|
|
@@ -8919,7 +9053,7 @@ function bs(e, t) {
|
|
|
8919
9053
|
}
|
|
8920
9054
|
return n;
|
|
8921
9055
|
}
|
|
8922
|
-
function
|
|
9056
|
+
function Is(e = {}) {
|
|
8923
9057
|
let { paneId: t = "sub", config: n = {} } = e, r = {
|
|
8924
9058
|
period1: 6,
|
|
8925
9059
|
period2: 12,
|
|
@@ -8930,7 +9064,7 @@ function xs(e = {}) {
|
|
|
8930
9064
|
...n
|
|
8931
9065
|
}, i = null, a = 0, o = 0, s = 0, c = [], l = [], u = [];
|
|
8932
9066
|
function d(e) {
|
|
8933
|
-
return (i !== e || a !== r.period1 || o !== r.period2 || s !== r.period3) && (c =
|
|
9067
|
+
return (i !== e || a !== r.period1 || o !== r.period2 || s !== r.period3) && (c = Fs(e, r.period1), l = Fs(e, r.period2), u = Fs(e, r.period3), i = e, a = r.period1, o = r.period2, s = r.period3), {
|
|
8934
9068
|
rsi1: c,
|
|
8935
9069
|
rsi2: l,
|
|
8936
9070
|
rsi3: u
|
|
@@ -8976,9 +9110,9 @@ function xs(e = {}) {
|
|
|
8976
9110
|
}
|
|
8977
9111
|
};
|
|
8978
9112
|
}
|
|
8979
|
-
function
|
|
9113
|
+
function Ls(e, t, n = 6, r = 12, i = 24) {
|
|
8980
9114
|
if (t < n + 1 || t >= e.length) return null;
|
|
8981
|
-
let a =
|
|
9115
|
+
let a = Fs(e, n)[t], o = Fs(e, r)[t], s = Fs(e, i)[t], c = [];
|
|
8982
9116
|
return a !== void 0 && c.push({
|
|
8983
9117
|
label: `RSI${n}`,
|
|
8984
9118
|
value: a,
|
|
@@ -9003,7 +9137,7 @@ function Ss(e, t, n = 6, r = 12, i = 24) {
|
|
|
9003
9137
|
}
|
|
9004
9138
|
//#endregion
|
|
9005
9139
|
//#region src/core/renderers/Indicator/cci.ts
|
|
9006
|
-
function
|
|
9140
|
+
function Rs(e, t) {
|
|
9007
9141
|
let n = Array(e.length);
|
|
9008
9142
|
if (e.length < t) return n;
|
|
9009
9143
|
let r = e.map((e) => (e.high + e.low + e.close) / 3);
|
|
@@ -9017,14 +9151,14 @@ function Cs(e, t) {
|
|
|
9017
9151
|
}
|
|
9018
9152
|
return n;
|
|
9019
9153
|
}
|
|
9020
|
-
function
|
|
9154
|
+
function zs(e = {}) {
|
|
9021
9155
|
let { paneId: t = "sub", config: n = {} } = e, r = {
|
|
9022
9156
|
period: 14,
|
|
9023
9157
|
showCCI: !0,
|
|
9024
9158
|
...n
|
|
9025
9159
|
}, i = null, a = 0, o = [];
|
|
9026
9160
|
function s(e) {
|
|
9027
|
-
return (i !== e || a !== r.period) && (o =
|
|
9161
|
+
return (i !== e || a !== r.period) && (o = Rs(e, r.period), i = e, a = r.period), o;
|
|
9028
9162
|
}
|
|
9029
9163
|
return {
|
|
9030
9164
|
name: `cci_${t}`,
|
|
@@ -9074,12 +9208,12 @@ function ws(e = {}) {
|
|
|
9074
9208
|
}
|
|
9075
9209
|
};
|
|
9076
9210
|
}
|
|
9077
|
-
function
|
|
9078
|
-
return
|
|
9211
|
+
function Bs(e, t, n) {
|
|
9212
|
+
return Rs(e, n)[t];
|
|
9079
9213
|
}
|
|
9080
|
-
function
|
|
9214
|
+
function Vs(e, t, n = 14) {
|
|
9081
9215
|
if (t < n || t >= e.length) return null;
|
|
9082
|
-
let r =
|
|
9216
|
+
let r = Bs(e, t, n);
|
|
9083
9217
|
return r === void 0 ? null : {
|
|
9084
9218
|
name: "CCI",
|
|
9085
9219
|
params: [n],
|
|
@@ -9092,7 +9226,7 @@ function Es(e, t, n = 14) {
|
|
|
9092
9226
|
}
|
|
9093
9227
|
//#endregion
|
|
9094
9228
|
//#region src/core/renderers/Indicator/stoch.ts
|
|
9095
|
-
function
|
|
9229
|
+
function Hs(e, t, n) {
|
|
9096
9230
|
let r = Array(e.length);
|
|
9097
9231
|
if (e.length < t) return r;
|
|
9098
9232
|
let i = Array(e.length);
|
|
@@ -9120,7 +9254,7 @@ function Ds(e, t, n) {
|
|
|
9120
9254
|
}
|
|
9121
9255
|
return r;
|
|
9122
9256
|
}
|
|
9123
|
-
function
|
|
9257
|
+
function Us(e = {}) {
|
|
9124
9258
|
let { paneId: t = "sub", config: n = {} } = e, r = {
|
|
9125
9259
|
n: 9,
|
|
9126
9260
|
m: 3,
|
|
@@ -9129,7 +9263,7 @@ function Os(e = {}) {
|
|
|
9129
9263
|
...n
|
|
9130
9264
|
}, i = null, a = 0, o = 0, s = [];
|
|
9131
9265
|
function c(e) {
|
|
9132
|
-
return (i !== e || a !== r.n || o !== r.m) && (s =
|
|
9266
|
+
return (i !== e || a !== r.n || o !== r.m) && (s = Hs(e, r.n, r.m), i = e, a = r.n, o = r.m), s;
|
|
9133
9267
|
}
|
|
9134
9268
|
return {
|
|
9135
9269
|
name: `stoch_${t}`,
|
|
@@ -9185,12 +9319,12 @@ function Os(e = {}) {
|
|
|
9185
9319
|
}
|
|
9186
9320
|
};
|
|
9187
9321
|
}
|
|
9188
|
-
function
|
|
9189
|
-
return
|
|
9322
|
+
function Ws(e, t, n, r) {
|
|
9323
|
+
return Hs(e, n, r)[t];
|
|
9190
9324
|
}
|
|
9191
|
-
function
|
|
9325
|
+
function Gs(e, t, n = 9, r = 3) {
|
|
9192
9326
|
if (t < n + r - 1 || t >= e.length) return null;
|
|
9193
|
-
let i =
|
|
9327
|
+
let i = Ws(e, t, n, r);
|
|
9194
9328
|
return i ? {
|
|
9195
9329
|
name: "STOCH",
|
|
9196
9330
|
params: [n, r],
|
|
@@ -9207,7 +9341,7 @@ function As(e, t, n = 9, r = 3) {
|
|
|
9207
9341
|
}
|
|
9208
9342
|
//#endregion
|
|
9209
9343
|
//#region src/core/renderers/Indicator/mom.ts
|
|
9210
|
-
function
|
|
9344
|
+
function Ks(e, t) {
|
|
9211
9345
|
let n = Array(e.length);
|
|
9212
9346
|
if (e.length < t + 1) return n;
|
|
9213
9347
|
for (let r = t; r < e.length; r++) {
|
|
@@ -9216,14 +9350,14 @@ function js(e, t) {
|
|
|
9216
9350
|
}
|
|
9217
9351
|
return n;
|
|
9218
9352
|
}
|
|
9219
|
-
function
|
|
9353
|
+
function qs(e = {}) {
|
|
9220
9354
|
let { paneId: t = "sub", config: n = {} } = e, r = {
|
|
9221
9355
|
period: 10,
|
|
9222
9356
|
showMOM: !0,
|
|
9223
9357
|
...n
|
|
9224
9358
|
}, i = null, a = 0, o = [];
|
|
9225
9359
|
function s(e) {
|
|
9226
|
-
return (i !== e || a !== r.period) && (o =
|
|
9360
|
+
return (i !== e || a !== r.period) && (o = Ks(e, r.period), i = e, a = r.period), o;
|
|
9227
9361
|
}
|
|
9228
9362
|
return {
|
|
9229
9363
|
name: `mom_${t}`,
|
|
@@ -9274,12 +9408,12 @@ function Ms(e = {}) {
|
|
|
9274
9408
|
}
|
|
9275
9409
|
};
|
|
9276
9410
|
}
|
|
9277
|
-
function
|
|
9278
|
-
return
|
|
9411
|
+
function Js(e, t, n) {
|
|
9412
|
+
return Ks(e, n)[t];
|
|
9279
9413
|
}
|
|
9280
|
-
function
|
|
9414
|
+
function Ys(e, t, n = 10) {
|
|
9281
9415
|
if (t < n || t >= e.length) return null;
|
|
9282
|
-
let r =
|
|
9416
|
+
let r = Js(e, t, n);
|
|
9283
9417
|
return r === void 0 ? null : {
|
|
9284
9418
|
name: "MOM",
|
|
9285
9419
|
params: [n],
|
|
@@ -9292,7 +9426,7 @@ function Ps(e, t, n = 10) {
|
|
|
9292
9426
|
}
|
|
9293
9427
|
//#endregion
|
|
9294
9428
|
//#region src/core/renderers/Indicator/wmsr.ts
|
|
9295
|
-
function
|
|
9429
|
+
function Xs(e, t) {
|
|
9296
9430
|
let n = Array(e.length);
|
|
9297
9431
|
if (e.length < t) return n;
|
|
9298
9432
|
for (let r = t - 1; r < e.length; r++) {
|
|
@@ -9306,14 +9440,14 @@ function Fs(e, t) {
|
|
|
9306
9440
|
}
|
|
9307
9441
|
return n;
|
|
9308
9442
|
}
|
|
9309
|
-
function
|
|
9443
|
+
function Zs(e = {}) {
|
|
9310
9444
|
let { paneId: t = "sub", config: n = {} } = e, r = {
|
|
9311
9445
|
period: 14,
|
|
9312
9446
|
showWMSR: !0,
|
|
9313
9447
|
...n
|
|
9314
9448
|
}, i = null, a = 0, o = [];
|
|
9315
9449
|
function s(e) {
|
|
9316
|
-
return (i !== e || a !== r.period) && (o =
|
|
9450
|
+
return (i !== e || a !== r.period) && (o = Xs(e, r.period), i = e, a = r.period), o;
|
|
9317
9451
|
}
|
|
9318
9452
|
return {
|
|
9319
9453
|
name: `wmsr_${t}`,
|
|
@@ -9356,12 +9490,12 @@ function Is(e = {}) {
|
|
|
9356
9490
|
}
|
|
9357
9491
|
};
|
|
9358
9492
|
}
|
|
9359
|
-
function
|
|
9360
|
-
return
|
|
9493
|
+
function Qs(e, t, n) {
|
|
9494
|
+
return Xs(e, n)[t];
|
|
9361
9495
|
}
|
|
9362
|
-
function
|
|
9496
|
+
function $s(e, t, n = 14) {
|
|
9363
9497
|
if (t < n || t >= e.length) return null;
|
|
9364
|
-
let r =
|
|
9498
|
+
let r = Qs(e, t, n);
|
|
9365
9499
|
return r === void 0 ? null : {
|
|
9366
9500
|
name: "WMSR",
|
|
9367
9501
|
params: [n],
|
|
@@ -9374,7 +9508,7 @@ function Rs(e, t, n = 14) {
|
|
|
9374
9508
|
}
|
|
9375
9509
|
//#endregion
|
|
9376
9510
|
//#region src/core/renderers/Indicator/kst.ts
|
|
9377
|
-
function
|
|
9511
|
+
function ec(e, t) {
|
|
9378
9512
|
let n = Array(e.length);
|
|
9379
9513
|
if (e.length < t + 1) return n;
|
|
9380
9514
|
for (let r = t; r < e.length; r++) {
|
|
@@ -9383,7 +9517,7 @@ function zs(e, t) {
|
|
|
9383
9517
|
}
|
|
9384
9518
|
return n;
|
|
9385
9519
|
}
|
|
9386
|
-
function
|
|
9520
|
+
function tc(e, t) {
|
|
9387
9521
|
let n = Array(e.length), r = 0, i = 0;
|
|
9388
9522
|
for (let a = 0; a < e.length; a++) {
|
|
9389
9523
|
let o = e[a];
|
|
@@ -9397,13 +9531,13 @@ function Bs(e, t) {
|
|
|
9397
9531
|
}
|
|
9398
9532
|
return n;
|
|
9399
9533
|
}
|
|
9400
|
-
function
|
|
9401
|
-
let o = Array(e.length), s =
|
|
9534
|
+
function nc(e, t, n, r, i, a) {
|
|
9535
|
+
let o = Array(e.length), s = ec(e, t), c = ec(e, n), l = ec(e, r), u = ec(e, i), d = tc(s, 10), f = tc(c, 10), p = tc(l, 10), m = tc(u, 15), h = Array(e.length);
|
|
9402
9536
|
for (let t = 0; t < e.length; t++) {
|
|
9403
9537
|
let e = d[t], n = f[t], r = p[t], i = m[t];
|
|
9404
9538
|
e !== void 0 && n !== void 0 && r !== void 0 && i !== void 0 && (h[t] = e * 1 + n * 2 + r * 3 + i * 4);
|
|
9405
9539
|
}
|
|
9406
|
-
let g =
|
|
9540
|
+
let g = tc(h, a);
|
|
9407
9541
|
for (let t = 0; t < e.length; t++) {
|
|
9408
9542
|
let e = h[t], n = g[t];
|
|
9409
9543
|
e !== void 0 && n !== void 0 && (o[t] = {
|
|
@@ -9413,7 +9547,7 @@ function Vs(e, t, n, r, i, a) {
|
|
|
9413
9547
|
}
|
|
9414
9548
|
return o;
|
|
9415
9549
|
}
|
|
9416
|
-
function
|
|
9550
|
+
function rc(e = {}) {
|
|
9417
9551
|
let { paneId: t = "sub", config: n = {} } = e, r = {
|
|
9418
9552
|
roc1: 10,
|
|
9419
9553
|
roc2: 15,
|
|
@@ -9426,7 +9560,7 @@ function Hs(e = {}) {
|
|
|
9426
9560
|
}, i = null, a = "", o = [];
|
|
9427
9561
|
function s(e) {
|
|
9428
9562
|
let t = `${r.roc1}-${r.roc2}-${r.roc3}-${r.roc4}-${r.signalPeriod}`;
|
|
9429
|
-
return (i !== e || a !== t) && (o =
|
|
9563
|
+
return (i !== e || a !== t) && (o = nc(e, r.roc1, r.roc2, r.roc3, r.roc4, r.signalPeriod), i = e, a = t), o;
|
|
9430
9564
|
}
|
|
9431
9565
|
return {
|
|
9432
9566
|
name: `kst_${t}`,
|
|
@@ -9490,12 +9624,12 @@ function Hs(e = {}) {
|
|
|
9490
9624
|
}
|
|
9491
9625
|
};
|
|
9492
9626
|
}
|
|
9493
|
-
function
|
|
9494
|
-
return
|
|
9627
|
+
function ic(e, t, n, r, i, a, o) {
|
|
9628
|
+
return nc(e, n, r, i, a, o)[t];
|
|
9495
9629
|
}
|
|
9496
|
-
function
|
|
9630
|
+
function ac(e, t, n = 10, r = 15, i = 20, a = 30, o = 9) {
|
|
9497
9631
|
if (t < a + 15 + o || t >= e.length) return null;
|
|
9498
|
-
let s =
|
|
9632
|
+
let s = ic(e, t, n, r, i, a, o);
|
|
9499
9633
|
return s ? {
|
|
9500
9634
|
name: "KST",
|
|
9501
9635
|
params: [
|
|
@@ -9518,7 +9652,7 @@ function Ws(e, t, n = 10, r = 15, i = 20, a = 30, o = 9) {
|
|
|
9518
9652
|
}
|
|
9519
9653
|
//#endregion
|
|
9520
9654
|
//#region src/core/renderers/Indicator/fastk.ts
|
|
9521
|
-
function
|
|
9655
|
+
function oc(e, t) {
|
|
9522
9656
|
let n = Array(e.length);
|
|
9523
9657
|
if (e.length < t) return n;
|
|
9524
9658
|
for (let r = t - 1; r < e.length; r++) {
|
|
@@ -9532,14 +9666,14 @@ function Gs(e, t) {
|
|
|
9532
9666
|
}
|
|
9533
9667
|
return n;
|
|
9534
9668
|
}
|
|
9535
|
-
function
|
|
9669
|
+
function sc(e = {}) {
|
|
9536
9670
|
let { paneId: t = "sub", config: n = {} } = e, r = {
|
|
9537
9671
|
period: 9,
|
|
9538
9672
|
showFASTK: !0,
|
|
9539
9673
|
...n
|
|
9540
9674
|
}, i = null, a = 0, o = [];
|
|
9541
9675
|
function s(e) {
|
|
9542
|
-
return (i !== e || a !== r.period) && (o =
|
|
9676
|
+
return (i !== e || a !== r.period) && (o = oc(e, r.period), i = e, a = r.period), o;
|
|
9543
9677
|
}
|
|
9544
9678
|
return {
|
|
9545
9679
|
name: `fastk_${t}`,
|
|
@@ -9582,12 +9716,12 @@ function Ks(e = {}) {
|
|
|
9582
9716
|
}
|
|
9583
9717
|
};
|
|
9584
9718
|
}
|
|
9585
|
-
function
|
|
9586
|
-
return
|
|
9719
|
+
function cc(e, t, n) {
|
|
9720
|
+
return oc(e, n)[t];
|
|
9587
9721
|
}
|
|
9588
|
-
function
|
|
9722
|
+
function lc(e, t, n = 9) {
|
|
9589
9723
|
if (t < n || t >= e.length) return null;
|
|
9590
|
-
let r =
|
|
9724
|
+
let r = cc(e, t, n);
|
|
9591
9725
|
return r === void 0 ? null : {
|
|
9592
9726
|
name: "FASTK",
|
|
9593
9727
|
params: [n],
|
|
@@ -9600,24 +9734,24 @@ function Js(e, t, n = 9) {
|
|
|
9600
9734
|
}
|
|
9601
9735
|
//#endregion
|
|
9602
9736
|
//#region src/core/renderers/Indicator/index.ts
|
|
9603
|
-
function
|
|
9737
|
+
function uc(e) {
|
|
9604
9738
|
let { indicatorId: t, paneId: n } = e;
|
|
9605
9739
|
switch (t) {
|
|
9606
|
-
case "VOLUME": return
|
|
9607
|
-
case "MACD": return
|
|
9608
|
-
case "RSI": return
|
|
9609
|
-
case "CCI": return
|
|
9610
|
-
case "STOCH": return
|
|
9611
|
-
case "MOM": return
|
|
9612
|
-
case "WMSR": return
|
|
9613
|
-
case "KST": return
|
|
9614
|
-
case "FASTK": return
|
|
9740
|
+
case "VOLUME": return ps({ paneId: n });
|
|
9741
|
+
case "MACD": return Ms({ paneId: n });
|
|
9742
|
+
case "RSI": return Is({ paneId: n });
|
|
9743
|
+
case "CCI": return zs({ paneId: n });
|
|
9744
|
+
case "STOCH": return Us({ paneId: n });
|
|
9745
|
+
case "MOM": return qs({ paneId: n });
|
|
9746
|
+
case "WMSR": return Zs({ paneId: n });
|
|
9747
|
+
case "KST": return rc({ paneId: n });
|
|
9748
|
+
case "FASTK": return sc({ paneId: n });
|
|
9615
9749
|
default: throw Error(`Unknown indicator: ${t}`);
|
|
9616
9750
|
}
|
|
9617
9751
|
}
|
|
9618
9752
|
//#endregion
|
|
9619
9753
|
//#region src/core/chart.ts
|
|
9620
|
-
var
|
|
9754
|
+
var dc = class e {
|
|
9621
9755
|
dom;
|
|
9622
9756
|
opt;
|
|
9623
9757
|
data = [];
|
|
@@ -9629,7 +9763,7 @@ var Xs = class e {
|
|
|
9629
9763
|
pluginHost;
|
|
9630
9764
|
rendererPluginManager;
|
|
9631
9765
|
constructor(e, t) {
|
|
9632
|
-
this.dom = e, this.opt = t, this.interaction = new
|
|
9766
|
+
this.dom = e, this.opt = t, this.interaction = new ds(this), this.markerManager = new go(), this.pluginHost = da(), this.rendererPluginManager = new pa(), this.rendererPluginManager.setPluginHost(this.pluginHost), this.rendererPluginManager.setInvalidateCallback(() => this.scheduleDraw()), this.initPanes();
|
|
9633
9767
|
}
|
|
9634
9768
|
get plugin() {
|
|
9635
9769
|
return this.pluginHost;
|
|
@@ -9663,10 +9797,10 @@ var Xs = class e {
|
|
|
9663
9797
|
console.log("[Chart] draw aborted: no data");
|
|
9664
9798
|
return;
|
|
9665
9799
|
}
|
|
9666
|
-
let { start: t, end: n } =
|
|
9800
|
+
let { start: t, end: n } = ss(e.scrollLeft, e.plotWidth, this.opt.kWidth, this.opt.kGap, this.data.length, e.dpr), r = {
|
|
9667
9801
|
start: t,
|
|
9668
9802
|
end: n
|
|
9669
|
-
}, i = this.calcKLinePositions(r), { kWidthPx: a } =
|
|
9803
|
+
}, i = this.calcKLinePositions(r), { kWidthPx: a } = os(this.opt.kWidth, this.opt.kGap, e.dpr);
|
|
9670
9804
|
this.interaction.setKLinePositions(i, r, a);
|
|
9671
9805
|
for (let t of this.paneRenderers) {
|
|
9672
9806
|
let n = t.getPane(), a = t.getDom().plotCanvas.getContext("2d"), o = t.getDom().yAxisCanvas.getContext("2d");
|
|
@@ -9819,7 +9953,7 @@ var Xs = class e {
|
|
|
9819
9953
|
calcKLinePositions(e) {
|
|
9820
9954
|
let { start: t, end: n } = e, r = n - t;
|
|
9821
9955
|
if (r <= 0) return [];
|
|
9822
|
-
let i = this.viewport?.dpr || window.devicePixelRatio || 1, { unitPx: a, startXPx: o } =
|
|
9956
|
+
let i = this.viewport?.dpr || window.devicePixelRatio || 1, { unitPx: a, startXPx: o } = os(this.opt.kWidth, this.opt.kGap, i), s = Array(r);
|
|
9823
9957
|
for (let e = 0; e < r; e++) s[e] = (o + (t + e) * a) / i;
|
|
9824
9958
|
return s;
|
|
9825
9959
|
}
|
|
@@ -9837,9 +9971,9 @@ var Xs = class e {
|
|
|
9837
9971
|
console.warn(`Pane "${e}" already exists`);
|
|
9838
9972
|
return;
|
|
9839
9973
|
}
|
|
9840
|
-
let t = new
|
|
9974
|
+
let t = new us(e), n = document.createElement("canvas"), r = document.createElement("canvas");
|
|
9841
9975
|
n.id = `${e}-plot`, n.className = "plot-canvas", n.style.position = "absolute", n.style.left = "0", n.style.top = "0", r.id = `${e}-yAxis`, r.className = "y-axis-canvas", r.style.position = "absolute", r.style.right = "0";
|
|
9842
|
-
let i = new
|
|
9976
|
+
let i = new fs({
|
|
9843
9977
|
plotCanvas: n,
|
|
9844
9978
|
yAxisCanvas: r
|
|
9845
9979
|
}, t, {
|
|
@@ -9870,7 +10004,7 @@ var Xs = class e {
|
|
|
9870
10004
|
return n && this.updateRendererConfig(e, n), !0;
|
|
9871
10005
|
}
|
|
9872
10006
|
this.addPane(r);
|
|
9873
|
-
let i =
|
|
10007
|
+
let i = uc({
|
|
9874
10008
|
indicatorId: t,
|
|
9875
10009
|
paneId: r
|
|
9876
10010
|
});
|
|
@@ -9908,7 +10042,7 @@ var Xs = class e {
|
|
|
9908
10042
|
return this.data;
|
|
9909
10043
|
}
|
|
9910
10044
|
getContentWidth() {
|
|
9911
|
-
let e = this.data?.length ?? 0, t = this.viewport?.dpr || window.devicePixelRatio || 1, { startXPx: n, unitPx: r } =
|
|
10045
|
+
let e = this.data?.length ?? 0, t = this.viewport?.dpr || window.devicePixelRatio || 1, { startXPx: n, unitPx: r } = os(this.opt.kWidth, this.opt.kGap, t);
|
|
9912
10046
|
return (n + e * r) / t + (this.opt.rightAxisWidth + (this.opt.priceLabelWidth || 60));
|
|
9913
10047
|
}
|
|
9914
10048
|
resize() {
|
|
@@ -9925,8 +10059,8 @@ var Xs = class e {
|
|
|
9925
10059
|
}
|
|
9926
10060
|
initPanes() {
|
|
9927
10061
|
this.paneRenderers = this.opt.panes.map((e) => {
|
|
9928
|
-
let t = new
|
|
9929
|
-
return n.id = `${e.id}-plot`, n.className = "plot-canvas", n.style.position = "absolute", n.style.left = "0", n.style.top = "0", r.id = `${e.id}-yAxis`, r.className = "y-axis-canvas", r.style.position = "absolute", r.style.right = "0", new
|
|
10062
|
+
let t = new us(e.id), n = document.createElement("canvas"), r = document.createElement("canvas");
|
|
10063
|
+
return n.id = `${e.id}-plot`, n.className = "plot-canvas", n.style.position = "absolute", n.style.left = "0", n.style.top = "0", r.id = `${e.id}-yAxis`, r.className = "y-axis-canvas", r.style.position = "absolute", r.style.right = "0", new fs({
|
|
9930
10064
|
plotCanvas: n,
|
|
9931
10065
|
yAxisCanvas: r
|
|
9932
10066
|
}, t, {
|
|
@@ -9979,18 +10113,18 @@ var Xs = class e {
|
|
|
9979
10113
|
};
|
|
9980
10114
|
//#endregion
|
|
9981
10115
|
//#region src/types/kLine.ts
|
|
9982
|
-
function
|
|
10116
|
+
function fc(e) {
|
|
9983
10117
|
return e.open > e.close ? "down" : e.open < e.close ? "up" : "flat";
|
|
9984
10118
|
}
|
|
9985
10119
|
//#endregion
|
|
9986
10120
|
//#region src/types/volumePrice.ts
|
|
9987
10121
|
var $ = /* @__PURE__ */ function(e) {
|
|
9988
10122
|
return e.RISE_WITH_VOLUME = "rise_with_volume", e.RISE_WITHOUT_VOLUME = "rise_without_volume", e.FALL_WITH_VOLUME = "fall_with_volume", e.FALL_WITHOUT_VOLUME = "fall_without_volume", e.OTHERS = "others", e;
|
|
9989
|
-
}({}),
|
|
10123
|
+
}({}), pc = {
|
|
9990
10124
|
volumeAmplifyThreshold: 1.5,
|
|
9991
10125
|
volumeShrinkThreshold: .8,
|
|
9992
10126
|
avgPeriod: 20
|
|
9993
|
-
},
|
|
10127
|
+
}, mc = class {
|
|
9994
10128
|
prefixSum = [];
|
|
9995
10129
|
dataLength = 0;
|
|
9996
10130
|
build(e) {
|
|
@@ -10015,8 +10149,8 @@ var $ = /* @__PURE__ */ function(e) {
|
|
|
10015
10149
|
return this.dataLength;
|
|
10016
10150
|
}
|
|
10017
10151
|
};
|
|
10018
|
-
function
|
|
10019
|
-
let i = new
|
|
10152
|
+
function hc(e, t, n, r = pc) {
|
|
10153
|
+
let i = new mc();
|
|
10020
10154
|
i.build(e);
|
|
10021
10155
|
let a = [], { volumeAmplifyThreshold: o, volumeShrinkThreshold: s, avgPeriod: c } = r;
|
|
10022
10156
|
for (let r = t; r < n && r < e.length; r++) {
|
|
@@ -10037,7 +10171,7 @@ function ec(e, t, n, r = Qs) {
|
|
|
10037
10171
|
}
|
|
10038
10172
|
//#endregion
|
|
10039
10173
|
//#region src/core/renderers/candle.ts
|
|
10040
|
-
function
|
|
10174
|
+
function gc() {
|
|
10041
10175
|
return {
|
|
10042
10176
|
name: "candle",
|
|
10043
10177
|
version: "1.0.0",
|
|
@@ -10048,36 +10182,36 @@ function tc() {
|
|
|
10048
10182
|
draw(e) {
|
|
10049
10183
|
let { ctx: t, pane: n, data: r, range: i, scrollLeft: a, kWidth: o, kGap: s, dpr: c, kLinePositions: l, markerManager: u } = e, d = r;
|
|
10050
10184
|
if (!d.length) return;
|
|
10051
|
-
let { kWidthPx: f } =
|
|
10185
|
+
let { kWidthPx: f } = os(o, s, c);
|
|
10052
10186
|
t.save(), t.translate(-a, 0);
|
|
10053
|
-
let p = l || [], m =
|
|
10187
|
+
let p = l || [], m = hc(d, i.start, i.end, pc);
|
|
10054
10188
|
for (let e = i.start; e < i.end && e < d.length; e++) {
|
|
10055
10189
|
let r = d[e];
|
|
10056
10190
|
if (!r) continue;
|
|
10057
10191
|
let a = n.yAxis.priceToY(r.open), s = n.yAxis.priceToY(r.close), l = n.yAxis.priceToY(r.high), h = n.yAxis.priceToY(r.low), g = Math.min(a, s), _ = Math.max(Math.abs(a - s), 1), v = p[e - i.start];
|
|
10058
10192
|
if (!v) continue;
|
|
10059
|
-
let y =
|
|
10060
|
-
t.fillStyle =
|
|
10193
|
+
let y = bs(Math.round(v * c), g, f, _, c);
|
|
10194
|
+
t.fillStyle = fc(r) === "up" ? X.UP : X.DOWN, t.fillRect(y.bodyRect.x, y.bodyRect.y, y.bodyRect.width, y.bodyRect.height);
|
|
10061
10195
|
let b = y.wickRect.width, x = y.wickRect.x, S = y.bodyRect.y, C = y.bodyRect.y + y.bodyRect.height, w = Math.max(r.open, r.close), T = Math.min(r.open, r.close);
|
|
10062
10196
|
if (r.high > w) {
|
|
10063
|
-
let e =
|
|
10197
|
+
let e = vs(x, l, S, c);
|
|
10064
10198
|
e && t.fillRect(e.x, e.y, b, e.height);
|
|
10065
10199
|
}
|
|
10066
10200
|
if (r.low < T) {
|
|
10067
|
-
let e =
|
|
10201
|
+
let e = vs(x, C, h, c);
|
|
10068
10202
|
e && t.fillRect(e.x, e.y, b, e.height);
|
|
10069
10203
|
}
|
|
10070
10204
|
let E = m[e - i.start];
|
|
10071
10205
|
if (E !== $.OTHERS && u) {
|
|
10072
10206
|
let n = E === $.RISE_WITH_VOLUME || E === $.RISE_WITHOUT_VOLUME ? l - 15 : h + 15;
|
|
10073
|
-
|
|
10207
|
+
_c(t, y.bodyRect.x + y.bodyRect.width / 2, n, E, e, o, 4, u);
|
|
10074
10208
|
}
|
|
10075
10209
|
}
|
|
10076
10210
|
t.restore();
|
|
10077
10211
|
}
|
|
10078
10212
|
};
|
|
10079
10213
|
}
|
|
10080
|
-
function
|
|
10214
|
+
function _c(e, t, n, r, i, a, o = 4, s) {
|
|
10081
10215
|
let c = Math.min(a, 20), l = c * Math.sqrt(3) / 2, u, d;
|
|
10082
10216
|
switch (r) {
|
|
10083
10217
|
case $.RISE_WITH_VOLUME:
|
|
@@ -10141,12 +10275,12 @@ function nc(e, t, n, r, i, a, o = 4, s) {
|
|
|
10141
10275
|
}
|
|
10142
10276
|
//#endregion
|
|
10143
10277
|
//#region src/core/utils/tickCount.ts
|
|
10144
|
-
function
|
|
10278
|
+
function vc(e, t) {
|
|
10145
10279
|
return t ? Math.max(4, Math.min(8, Math.round(e / 80))) : 2;
|
|
10146
10280
|
}
|
|
10147
10281
|
//#endregion
|
|
10148
10282
|
//#region src/core/renderers/gridLines.ts
|
|
10149
|
-
function
|
|
10283
|
+
function yc() {
|
|
10150
10284
|
return {
|
|
10151
10285
|
name: "gridLines",
|
|
10152
10286
|
version: "1.0.0",
|
|
@@ -10157,11 +10291,11 @@ function ic() {
|
|
|
10157
10291
|
draw(e) {
|
|
10158
10292
|
let { ctx: t, pane: n, data: r, range: i, scrollLeft: a, kWidth: o, dpr: s, kLinePositions: c } = e, l = r;
|
|
10159
10293
|
if (!l.length) return;
|
|
10160
|
-
let u =
|
|
10294
|
+
let u = vc(n.height, n.id === "main");
|
|
10161
10295
|
t.save(), t.fillStyle = Aa.HORIZONTAL, t.translate(-a, 0);
|
|
10162
10296
|
let d = t.canvas.width / s, f = a, p = a + d, m = n.yAxis.getPaddingTop(), h = n.yAxis.getPaddingBottom(), g = m, _ = Math.max(m, n.height - h), v = Math.max(0, _ - g);
|
|
10163
10297
|
for (let e = 0; e < u; e++) {
|
|
10164
|
-
let n = u <= 1 ? 0 : e / (u - 1), r =
|
|
10298
|
+
let n = u <= 1 ? 0 : e / (u - 1), r = ys(f, p, Math.round(g + n * v), s);
|
|
10165
10299
|
r && t.fillRect(r.x, r.y, r.width, r.height);
|
|
10166
10300
|
}
|
|
10167
10301
|
let y = Ea(l);
|
|
@@ -10169,7 +10303,7 @@ function ic() {
|
|
|
10169
10303
|
if (e < i.start || e >= i.end || e >= l.length) continue;
|
|
10170
10304
|
let r = e - i.start;
|
|
10171
10305
|
if (r < 0 || r >= c.length) continue;
|
|
10172
|
-
let a =
|
|
10306
|
+
let a = vs(c[r] + o / 2, 0, n.height, s);
|
|
10173
10307
|
a && t.fillRect(a.x, a.y, a.width, a.height);
|
|
10174
10308
|
}
|
|
10175
10309
|
t.restore();
|
|
@@ -10178,7 +10312,7 @@ function ic() {
|
|
|
10178
10312
|
}
|
|
10179
10313
|
//#endregion
|
|
10180
10314
|
//#region src/core/renderers/lastPrice.ts
|
|
10181
|
-
function
|
|
10315
|
+
function bc() {
|
|
10182
10316
|
return {
|
|
10183
10317
|
name: "lastPriceLine",
|
|
10184
10318
|
version: "1.0.0",
|
|
@@ -10199,7 +10333,7 @@ function ac() {
|
|
|
10199
10333
|
}
|
|
10200
10334
|
//#endregion
|
|
10201
10335
|
//#region src/core/renderers/extremaMarkers.ts
|
|
10202
|
-
function
|
|
10336
|
+
function xc() {
|
|
10203
10337
|
return {
|
|
10204
10338
|
name: "extremaMarkers",
|
|
10205
10339
|
version: "1.0.0",
|
|
@@ -10222,28 +10356,28 @@ function oc() {
|
|
|
10222
10356
|
let t = e - i.start;
|
|
10223
10357
|
return t < 0 || t >= l.length ? 0 : l[t] + o / 2;
|
|
10224
10358
|
};
|
|
10225
|
-
t.save(), t.translate(-a, 0),
|
|
10359
|
+
t.save(), t.translate(-a, 0), Sc(t, _(h), n.yAxis.priceToY(p), p, s, c, a), Sc(t, _(g), n.yAxis.priceToY(m), m, s, c, a), t.restore();
|
|
10226
10360
|
}
|
|
10227
10361
|
};
|
|
10228
10362
|
}
|
|
10229
|
-
function
|
|
10363
|
+
function Sc(e, t, n, r, i, a, o) {
|
|
10230
10364
|
let s = r.toFixed(2);
|
|
10231
10365
|
e.font = "12px Arial";
|
|
10232
10366
|
let c = e.measureText(s).width, l = t - o + 30 + 4 + c > a, u = t, d = l ? t - 30 : t + 30;
|
|
10233
10367
|
u > d && ([u, d] = [d, u]);
|
|
10234
|
-
let f =
|
|
10368
|
+
let f = ys(u, d, n, i);
|
|
10235
10369
|
f && (e.fillStyle = Da.WEAK, e.fillRect(f.x, f.y, f.width, f.height));
|
|
10236
10370
|
let p = Z(d, i), m = Z(n, i);
|
|
10237
10371
|
e.fillStyle = Da.WEAK, e.beginPath(), e.arc(p, m, 2, 0, Math.PI * 2), e.fill(), e.font = "12px Arial", e.textBaseline = "middle", e.fillStyle = X.NEUTRAL, l ? (e.textAlign = "right", e.fillText(s, Z(t - 30 - 4, i), Z(n, i))) : (e.textAlign = "left", e.fillText(s, Z(t + 30 + 4, i), Z(n, i)));
|
|
10238
10372
|
}
|
|
10239
10373
|
//#endregion
|
|
10240
10374
|
//#region src/utils/kLineDraw/axis.ts
|
|
10241
|
-
function
|
|
10242
|
-
let { x: n, y: r, width: i, height: a, priceRange: o, yPaddingPx: s = 0, dpr: c, ticks: l = 10, bgColor: u = Oa.
|
|
10375
|
+
function Cc(e, t) {
|
|
10376
|
+
let { x: n, y: r, width: i, height: a, priceRange: o, yPaddingPx: s = 0, dpr: c, ticks: l = 10, bgColor: u = Oa.TRANSPARENT, textColor: d = Da.SECONDARY, lineColor: f = ka.DARK, fontSize: p = 16, paddingX: m = 12, drawLeftBorder: h = !0, drawTickLines: g = !0 } = t, _ = Math.max(0, Math.min(s, Math.floor(a / 2) - 1)), { maxPrice: v, minPrice: y } = o, b = v - y, x = b === 0 ? 0 : b / (Math.max(2, l) - 1);
|
|
10243
10377
|
e.fillStyle = u, e.fillRect(n, r, i, a), h && (e.strokeStyle = f, e.lineWidth = 1, e.beginPath(), e.moveTo(Q(n, c), r), e.lineTo(Q(n, c), r + a), e.stroke()), e.font = `${p}px -apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif`, e.textBaseline = "middle", e.textAlign = "left";
|
|
10244
10378
|
let S = n + m;
|
|
10245
10379
|
for (let t = 0; t < Math.max(2, l); t++) {
|
|
10246
|
-
let i = b === 0 ? v : v - x * t, o = Math.round(
|
|
10380
|
+
let i = b === 0 ? v : v - x * t, o = Math.round(_s(i, v, y, a, _, _) + r);
|
|
10247
10381
|
if (g) {
|
|
10248
10382
|
e.strokeStyle = f, e.beginPath();
|
|
10249
10383
|
let t = Q(o, c);
|
|
@@ -10252,14 +10386,14 @@ function cc(e, t) {
|
|
|
10252
10386
|
e.fillStyle = d, e.fillText(i.toFixed(2), Z(S, c), Z(o, c));
|
|
10253
10387
|
}
|
|
10254
10388
|
}
|
|
10255
|
-
function
|
|
10389
|
+
function wc(e, t) {
|
|
10256
10390
|
let { x: n, y: r, width: i, height: a, crosshairX: o, timestamp: s, dpr: c, bgColor: l = Oa.WHITE, textColor: u = Da.PRIMARY, fontSize: d = 16, paddingX: f = 8, paddingY: p = 4 } = t, m = Ta(s);
|
|
10257
10391
|
e.save(), e.font = `${d}px -apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif`, e.textBaseline = "middle", e.textAlign = "center";
|
|
10258
10392
|
let h = Math.round(e.measureText(m).width), g = Math.min(i, h + f * 2), _ = Math.min(a, d + p * 2), v = Math.min(Math.max(o, n + g / 2), n + i - g / 2), y = r + a / 2, b = v - g / 2;
|
|
10259
10393
|
y - _ / 2, e.fillStyle = l, e.fillRect(Z(b, c), 0, Z(g, c), Z(_, c)), e.fillStyle = u, e.fillText(m, Z(v, c), Z(y, c)), e.restore();
|
|
10260
10394
|
}
|
|
10261
|
-
function
|
|
10262
|
-
let { x: n, y: r, width: i, height: a, data: o, scrollLeft: s, kWidth: c, kGap: l, startIndex: u, endIndex: d, dpr: f, bgColor: p = Oa.
|
|
10395
|
+
function Tc(e, t) {
|
|
10396
|
+
let { x: n, y: r, width: i, height: a, data: o, scrollLeft: s, kWidth: c, kGap: l, startIndex: u, endIndex: d, dpr: f, bgColor: p = Oa.TRANSPARENT, textColor: m = Da.SECONDARY, lineColor: h = ka.DARK, fontSize: g = 16, paddingX: _ = 8, drawTopBorder: v = !0, drawBottomBorder: y = !0 } = t, b = Math.round(c * f), x = b % 2 == 0 ? b + 1 : b, S = Math.round(l * f), C = x + S, w = S, T = C / f, E = w / f, D = x / f;
|
|
10263
10397
|
e.fillStyle = p, e.fillRect(n, r, i, a), v && (e.strokeStyle = h, e.lineWidth = 1, e.beginPath(), e.moveTo(n, Q(r, f)), e.lineTo(n + i, Q(r, f)), e.stroke()), y && (e.strokeStyle = h, e.lineWidth = 1, e.beginPath(), e.moveTo(n, Q(r + a, f)), e.lineTo(n + i, Q(r + a, f)), e.stroke()), e.textAlign = "center", e.textBaseline = "middle";
|
|
10264
10398
|
let O = r + a / 2, k = Ea(o).filter((e) => e >= u && e < d);
|
|
10265
10399
|
for (let t of k) {
|
|
@@ -10278,7 +10412,7 @@ function uc(e, t) {
|
|
|
10278
10412
|
}
|
|
10279
10413
|
//#endregion
|
|
10280
10414
|
//#region src/core/renderers/yAxis.ts
|
|
10281
|
-
function
|
|
10415
|
+
function Ec(e) {
|
|
10282
10416
|
return {
|
|
10283
10417
|
name: "yAxis",
|
|
10284
10418
|
version: "1.0.0",
|
|
@@ -10287,8 +10421,8 @@ function dc(e) {
|
|
|
10287
10421
|
paneId: oa,
|
|
10288
10422
|
priority: Y.SYSTEM_YAXIS,
|
|
10289
10423
|
draw(t) {
|
|
10290
|
-
let { ctx: n, pane: r, dpr: i, yAxisCtx: a } = t, o = a || n, s =
|
|
10291
|
-
|
|
10424
|
+
let { ctx: n, pane: r, dpr: i, yAxisCtx: a } = t, o = a || n, s = vc(r.height, r.id === "main");
|
|
10425
|
+
Cc(o, {
|
|
10292
10426
|
x: 0,
|
|
10293
10427
|
y: r.top,
|
|
10294
10428
|
width: e.axisWidth,
|
|
@@ -10305,19 +10439,19 @@ function dc(e) {
|
|
|
10305
10439
|
}
|
|
10306
10440
|
//#endregion
|
|
10307
10441
|
//#region src/core/renderers/timeAxis.ts
|
|
10308
|
-
var
|
|
10309
|
-
function
|
|
10442
|
+
var Dc = Symbol("time-axis");
|
|
10443
|
+
function Oc(e) {
|
|
10310
10444
|
return {
|
|
10311
10445
|
name: "timeAxis",
|
|
10312
10446
|
version: "1.0.0",
|
|
10313
10447
|
description: "时间轴渲染器",
|
|
10314
10448
|
debugName: "时间轴",
|
|
10315
|
-
paneId:
|
|
10449
|
+
paneId: Dc,
|
|
10316
10450
|
priority: Y.SYSTEM_XAXIS,
|
|
10317
10451
|
isSystem: !0,
|
|
10318
10452
|
draw(t) {
|
|
10319
10453
|
let { ctx: n, data: r, range: i, scrollLeft: a, kWidth: o, kGap: s, dpr: c, paneWidth: l } = t, u = r, d = n, f = l, p = e.height;
|
|
10320
|
-
d.setTransform(1, 0, 0, 1, 0, 0), d.scale(c, c), d.clearRect(0, 0, f, p),
|
|
10454
|
+
d.setTransform(1, 0, 0, 1, 0, 0), d.scale(c, c), d.clearRect(0, 0, f, p), Tc(d, {
|
|
10321
10455
|
x: 0,
|
|
10322
10456
|
y: 0,
|
|
10323
10457
|
width: f,
|
|
@@ -10335,7 +10469,7 @@ function pc(e) {
|
|
|
10335
10469
|
let m = e.getCrosshair?.();
|
|
10336
10470
|
if (m && typeof m.index == "number") {
|
|
10337
10471
|
let e = u[m.index];
|
|
10338
|
-
e &&
|
|
10472
|
+
e && wc(d, {
|
|
10339
10473
|
x: 0,
|
|
10340
10474
|
y: 0,
|
|
10341
10475
|
width: f,
|
|
@@ -10350,7 +10484,7 @@ function pc(e) {
|
|
|
10350
10484
|
}
|
|
10351
10485
|
//#endregion
|
|
10352
10486
|
//#region src/core/renderers/crosshair.ts
|
|
10353
|
-
function
|
|
10487
|
+
function kc(e) {
|
|
10354
10488
|
return {
|
|
10355
10489
|
name: "crosshair",
|
|
10356
10490
|
version: "1.0.0",
|
|
@@ -10363,9 +10497,9 @@ function mc(e) {
|
|
|
10363
10497
|
if (o.isDragging || !o.pos) return;
|
|
10364
10498
|
let { x: s, y: c } = o.pos, l = r.id === o.activePaneId, u = l ? c - r.top : -1;
|
|
10365
10499
|
n.save(), n.beginPath(), n.rect(0, 0, a, r.height), n.clip(), n.fillStyle = Ba.LINE;
|
|
10366
|
-
let d =
|
|
10500
|
+
let d = vs(s, 0, r.height, i);
|
|
10367
10501
|
if (d && n.fillRect(d.x, d.y, d.width, d.height), l && u >= 0) {
|
|
10368
|
-
let e =
|
|
10502
|
+
let e = ys(0, a, Math.min(u, r.height - 1 / i), i);
|
|
10369
10503
|
e && n.fillRect(e.x, e.y, e.width, e.height);
|
|
10370
10504
|
}
|
|
10371
10505
|
n.restore();
|
|
@@ -10374,14 +10508,14 @@ function mc(e) {
|
|
|
10374
10508
|
}
|
|
10375
10509
|
//#endregion
|
|
10376
10510
|
//#region src/core/renderers/globalBorders.ts
|
|
10377
|
-
var
|
|
10378
|
-
function
|
|
10511
|
+
var Ac = Symbol("global-borders");
|
|
10512
|
+
function jc(e) {
|
|
10379
10513
|
return {
|
|
10380
10514
|
name: "globalBorders",
|
|
10381
10515
|
version: "1.0.0",
|
|
10382
10516
|
description: "全局边框渲染器",
|
|
10383
10517
|
debugName: "边框",
|
|
10384
|
-
paneId:
|
|
10518
|
+
paneId: Ac,
|
|
10385
10519
|
priority: Y.SYSTEM_BORDER,
|
|
10386
10520
|
isSystem: !0,
|
|
10387
10521
|
draw(t) {
|
|
@@ -10408,7 +10542,7 @@ function gc(e) {
|
|
|
10408
10542
|
}
|
|
10409
10543
|
//#endregion
|
|
10410
10544
|
//#region src/core/renderers/paneTitle.ts
|
|
10411
|
-
function
|
|
10545
|
+
function Mc(e) {
|
|
10412
10546
|
let t = { ...e };
|
|
10413
10547
|
return {
|
|
10414
10548
|
name: `paneTitle_${e.paneId}`,
|
|
@@ -10449,7 +10583,7 @@ function _c(e) {
|
|
|
10449
10583
|
}
|
|
10450
10584
|
//#endregion
|
|
10451
10585
|
//#region src/components/KLineChart.vue?vue&type=script&setup=true&lang.ts
|
|
10452
|
-
var
|
|
10586
|
+
var Nc = { class: "chart-wrapper" }, Pc = 4, Fc = /* @__PURE__ */ po(/* @__PURE__ */ u({
|
|
10453
10587
|
__name: "KLineChart",
|
|
10454
10588
|
props: {
|
|
10455
10589
|
semanticConfig: {},
|
|
@@ -10478,16 +10612,16 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
|
|
|
10478
10612
|
let O = _(null), k = _(null), A = _({
|
|
10479
10613
|
x: 0,
|
|
10480
10614
|
y: 0
|
|
10481
|
-
}), j = _(!1), M = _(null), N = _(null),
|
|
10615
|
+
}), j = _(!1), M = _(null), N = _(null), ee = _({
|
|
10482
10616
|
x: 0,
|
|
10483
10617
|
y: 0
|
|
10484
|
-
}),
|
|
10618
|
+
}), te = r(() => {
|
|
10485
10619
|
let e = M.value;
|
|
10486
10620
|
if (typeof e != "number") return null;
|
|
10487
10621
|
let t = C.value?.getData();
|
|
10488
10622
|
return t && e >= 0 && e < t.length ? t[e] : null;
|
|
10489
|
-
}),
|
|
10490
|
-
function
|
|
10623
|
+
}), P = r(() => M.value), F = r(() => ee.value), ne = r(() => C.value?.getData() ?? []);
|
|
10624
|
+
function I() {
|
|
10491
10625
|
let e = C.value?.interaction;
|
|
10492
10626
|
if (!e) {
|
|
10493
10627
|
M.value = null, N.value = null, O.value = null, k.value = null;
|
|
@@ -10495,18 +10629,18 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
|
|
|
10495
10629
|
}
|
|
10496
10630
|
M.value = e.hoveredIndex ?? null, N.value = e.crosshairIndex ?? null, O.value = e.hoveredMarkerData ?? null, k.value = e.hoveredCustomMarker ?? null;
|
|
10497
10631
|
let t = e.tooltipPos;
|
|
10498
|
-
t && (
|
|
10632
|
+
t && (ee.value = {
|
|
10499
10633
|
x: t.x,
|
|
10500
10634
|
y: t.y
|
|
10501
10635
|
});
|
|
10502
10636
|
}
|
|
10637
|
+
function re(e) {
|
|
10638
|
+
j.value = !0, C.value?.interaction.onMouseDown(e), I();
|
|
10639
|
+
}
|
|
10503
10640
|
function ie(e) {
|
|
10504
|
-
j.value = !0, C.value?.interaction.
|
|
10641
|
+
j.value = !0, C.value?.interaction.onPointerDown(e), I();
|
|
10505
10642
|
}
|
|
10506
10643
|
function ae(e) {
|
|
10507
|
-
j.value = !0, C.value?.interaction.onPointerDown(e), F();
|
|
10508
|
-
}
|
|
10509
|
-
function oe(e) {
|
|
10510
10644
|
let t = v.value;
|
|
10511
10645
|
if (t) {
|
|
10512
10646
|
let n = t.getBoundingClientRect();
|
|
@@ -10515,9 +10649,9 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
|
|
|
10515
10649
|
y: e.clientY - n.top
|
|
10516
10650
|
};
|
|
10517
10651
|
}
|
|
10518
|
-
C.value?.interaction.onMouseMove(e),
|
|
10652
|
+
C.value?.interaction.onMouseMove(e), I();
|
|
10519
10653
|
}
|
|
10520
|
-
function
|
|
10654
|
+
function oe(e) {
|
|
10521
10655
|
let t = v.value;
|
|
10522
10656
|
if (t) {
|
|
10523
10657
|
let n = t.getBoundingClientRect();
|
|
@@ -10526,24 +10660,24 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
|
|
|
10526
10660
|
y: e.clientY - n.top
|
|
10527
10661
|
};
|
|
10528
10662
|
}
|
|
10529
|
-
C.value?.interaction.onPointerMove(e),
|
|
10663
|
+
C.value?.interaction.onPointerMove(e), I();
|
|
10530
10664
|
}
|
|
10531
|
-
function
|
|
10532
|
-
j.value = !1, C.value?.interaction.onMouseUp(),
|
|
10665
|
+
function L() {
|
|
10666
|
+
j.value = !1, C.value?.interaction.onMouseUp(), I();
|
|
10533
10667
|
}
|
|
10534
|
-
function
|
|
10535
|
-
j.value = !1, C.value?.interaction.onPointerUp(e),
|
|
10668
|
+
function se(e) {
|
|
10669
|
+
j.value = !1, C.value?.interaction.onPointerUp(e), I();
|
|
10536
10670
|
}
|
|
10537
|
-
function
|
|
10671
|
+
function ce() {
|
|
10538
10672
|
j.value = !1, C.value?.interaction.onMouseLeave(), M.value = null;
|
|
10539
10673
|
}
|
|
10540
|
-
function
|
|
10674
|
+
function le(e) {
|
|
10541
10675
|
j.value = !1, C.value?.interaction.onPointerLeave(e), M.value = null;
|
|
10542
10676
|
}
|
|
10543
|
-
function
|
|
10544
|
-
C.value?.interaction.onScroll(),
|
|
10677
|
+
function ue() {
|
|
10678
|
+
C.value?.interaction.onScroll(), I();
|
|
10545
10679
|
}
|
|
10546
|
-
let
|
|
10680
|
+
let R = _(["MA"]), de = _({}), z = _([]), B = [
|
|
10547
10681
|
"VOLUME",
|
|
10548
10682
|
"MACD",
|
|
10549
10683
|
"RSI",
|
|
@@ -10554,7 +10688,7 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
|
|
|
10554
10688
|
"KST",
|
|
10555
10689
|
"FASTK"
|
|
10556
10690
|
];
|
|
10557
|
-
S(r(() =>
|
|
10691
|
+
S(r(() => z.value.length === 0 ? [{
|
|
10558
10692
|
id: "main",
|
|
10559
10693
|
ratio: 1,
|
|
10560
10694
|
visible: !0
|
|
@@ -10562,14 +10696,14 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
|
|
|
10562
10696
|
id: "main",
|
|
10563
10697
|
ratio: 1,
|
|
10564
10698
|
visible: !0
|
|
10565
|
-
}, ...
|
|
10699
|
+
}, ...z.value.map((e) => ({
|
|
10566
10700
|
id: e.id,
|
|
10567
10701
|
ratio: 1,
|
|
10568
10702
|
visible: !0
|
|
10569
10703
|
}))]), (e) => {
|
|
10570
10704
|
C.value?.updatePaneLayout(e);
|
|
10571
10705
|
}, { flush: "post" });
|
|
10572
|
-
function
|
|
10706
|
+
function fe(e) {
|
|
10573
10707
|
switch (e) {
|
|
10574
10708
|
case "MACD": return {
|
|
10575
10709
|
fastPeriod: 12,
|
|
@@ -10599,74 +10733,74 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
|
|
|
10599
10733
|
default: return {};
|
|
10600
10734
|
}
|
|
10601
10735
|
}
|
|
10602
|
-
function
|
|
10603
|
-
if (
|
|
10736
|
+
function pe(e = "VOLUME", t) {
|
|
10737
|
+
if (z.value.length >= Pc) return !1;
|
|
10604
10738
|
let n = `sub_${e}`;
|
|
10605
|
-
if (
|
|
10606
|
-
if (!C.value?.createSubPane(e, t ??
|
|
10607
|
-
let r =
|
|
10739
|
+
if (z.value.some((e) => e.id === n)) return !0;
|
|
10740
|
+
if (!C.value?.createSubPane(e, t ?? fe(e))) return !1;
|
|
10741
|
+
let r = Mc({
|
|
10608
10742
|
paneId: n,
|
|
10609
10743
|
title: e,
|
|
10610
|
-
getTitleInfo: () =>
|
|
10744
|
+
getTitleInfo: () => ve(n)
|
|
10611
10745
|
});
|
|
10612
|
-
return C.value?.useRenderer(r),
|
|
10746
|
+
return C.value?.useRenderer(r), z.value.push({
|
|
10613
10747
|
id: n,
|
|
10614
10748
|
indicatorId: e,
|
|
10615
10749
|
rendererName: `${e.toLowerCase()}_${n}`,
|
|
10616
10750
|
paneTitleRendererName: r.name,
|
|
10617
|
-
params: t ??
|
|
10618
|
-
}),
|
|
10751
|
+
params: t ?? fe(e)
|
|
10752
|
+
}), R.value.includes(e) || R.value.push(e), !0;
|
|
10619
10753
|
}
|
|
10620
|
-
function
|
|
10621
|
-
let t =
|
|
10754
|
+
function me(e) {
|
|
10755
|
+
let t = z.value.findIndex((t) => t.id === e);
|
|
10622
10756
|
if (t === -1) return;
|
|
10623
|
-
let n =
|
|
10624
|
-
n && (C.value?.removeRenderer(n.paneTitleRendererName), C.value?.removeSubPane(n.indicatorId),
|
|
10757
|
+
let n = z.value[t];
|
|
10758
|
+
n && (C.value?.removeRenderer(n.paneTitleRendererName), C.value?.removeSubPane(n.indicatorId), z.value.splice(t, 1), z.value.some((e) => e.indicatorId === n.indicatorId) || (R.value = R.value.filter((e) => e !== n.indicatorId)));
|
|
10625
10759
|
}
|
|
10626
|
-
function
|
|
10627
|
-
for (let e of
|
|
10628
|
-
C.value?.clearSubPanes(),
|
|
10760
|
+
function he() {
|
|
10761
|
+
for (let e of z.value) C.value?.removeRenderer(e.paneTitleRendererName);
|
|
10762
|
+
C.value?.clearSubPanes(), z.value = [], R.value = R.value.filter((e) => !B.includes(e));
|
|
10629
10763
|
}
|
|
10630
|
-
function
|
|
10764
|
+
function ge() {
|
|
10631
10765
|
let e = C.value?.getSubPaneIndicators() ?? [];
|
|
10632
|
-
|
|
10766
|
+
z.value = [];
|
|
10633
10767
|
for (let t of e) {
|
|
10634
|
-
let e = `sub_${t}`, n =
|
|
10768
|
+
let e = `sub_${t}`, n = Mc({
|
|
10635
10769
|
paneId: e,
|
|
10636
10770
|
title: t,
|
|
10637
|
-
getTitleInfo: () =>
|
|
10771
|
+
getTitleInfo: () => ve(e)
|
|
10638
10772
|
});
|
|
10639
|
-
C.value?.useRenderer(n),
|
|
10773
|
+
C.value?.useRenderer(n), z.value.push({
|
|
10640
10774
|
id: e,
|
|
10641
10775
|
indicatorId: t,
|
|
10642
10776
|
rendererName: `${t.toLowerCase()}_${e}`,
|
|
10643
10777
|
paneTitleRendererName: n.name,
|
|
10644
|
-
params:
|
|
10645
|
-
}),
|
|
10778
|
+
params: fe(t)
|
|
10779
|
+
}), R.value.includes(t) || R.value.push(t);
|
|
10646
10780
|
}
|
|
10647
10781
|
}
|
|
10648
|
-
function
|
|
10649
|
-
let n =
|
|
10782
|
+
function _e(e, t) {
|
|
10783
|
+
let n = z.value.find((t) => t.id === e);
|
|
10650
10784
|
if (!n) return;
|
|
10651
10785
|
let r = n.indicatorId;
|
|
10652
|
-
C.value?.removeRenderer(n.paneTitleRendererName), C.value?.removeSubPane(r), C.value?.createSubPane(t,
|
|
10653
|
-
let i = `sub_${t}`, a =
|
|
10786
|
+
C.value?.removeRenderer(n.paneTitleRendererName), C.value?.removeSubPane(r), C.value?.createSubPane(t, fe(t));
|
|
10787
|
+
let i = `sub_${t}`, a = Mc({
|
|
10654
10788
|
paneId: i,
|
|
10655
10789
|
title: t,
|
|
10656
|
-
getTitleInfo: () =>
|
|
10790
|
+
getTitleInfo: () => ve(i)
|
|
10657
10791
|
});
|
|
10658
10792
|
C.value?.useRenderer(a);
|
|
10659
|
-
let o =
|
|
10660
|
-
o !== -1 && (
|
|
10793
|
+
let o = z.value.findIndex((t) => t.id === e);
|
|
10794
|
+
o !== -1 && (z.value[o] = {
|
|
10661
10795
|
id: i,
|
|
10662
10796
|
indicatorId: t,
|
|
10663
10797
|
rendererName: `${t.toLowerCase()}_${i}`,
|
|
10664
10798
|
paneTitleRendererName: a.name,
|
|
10665
|
-
params:
|
|
10666
|
-
}),
|
|
10799
|
+
params: fe(t)
|
|
10800
|
+
}), R.value = R.value.filter((e) => e !== r), R.value.includes(t) || R.value.push(t);
|
|
10667
10801
|
}
|
|
10668
|
-
function
|
|
10669
|
-
let t =
|
|
10802
|
+
function ve(e) {
|
|
10803
|
+
let t = z.value.find((t) => t.id === e);
|
|
10670
10804
|
if (!t) return null;
|
|
10671
10805
|
let n = C.value?.getData();
|
|
10672
10806
|
if (!n || n.length === 0) return null;
|
|
@@ -10679,26 +10813,26 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
|
|
|
10679
10813
|
let i = N.value;
|
|
10680
10814
|
if (i === null) return null;
|
|
10681
10815
|
switch (t.indicatorId) {
|
|
10682
|
-
case "MACD": return
|
|
10683
|
-
case "RSI": return
|
|
10684
|
-
case "CCI": return
|
|
10685
|
-
case "STOCH": return
|
|
10686
|
-
case "MOM": return
|
|
10687
|
-
case "WMSR": return
|
|
10688
|
-
case "KST": return
|
|
10689
|
-
case "FASTK": return
|
|
10816
|
+
case "MACD": return Ps(n, i, r.fastPeriod ?? 12, r.slowPeriod ?? 26, r.signalPeriod ?? 9);
|
|
10817
|
+
case "RSI": return Ls(n, i, r.period1 ?? 6, r.period2 ?? 12, r.period3 ?? 24);
|
|
10818
|
+
case "CCI": return Vs(n, i, r.period ?? 14);
|
|
10819
|
+
case "STOCH": return Gs(n, i, r.n ?? 9, r.m ?? 3);
|
|
10820
|
+
case "MOM": return Ys(n, i, r.period ?? 10);
|
|
10821
|
+
case "WMSR": return $s(n, i, r.period ?? 14);
|
|
10822
|
+
case "KST": return ac(n, i, r.roc1 ?? 10, r.roc2 ?? 15, r.roc3 ?? 20, r.roc4 ?? 30, r.signalPeriod ?? 9);
|
|
10823
|
+
case "FASTK": return lc(n, i, r.period ?? 9);
|
|
10690
10824
|
default: return null;
|
|
10691
10825
|
}
|
|
10692
10826
|
}
|
|
10693
|
-
function
|
|
10827
|
+
function ye(e, t) {
|
|
10694
10828
|
if (e === "MA") {
|
|
10695
|
-
t ? (
|
|
10829
|
+
t ? (R.value.includes(e) || R.value.push(e), C.value?.updateRendererConfig("ma", {
|
|
10696
10830
|
ma5: !0,
|
|
10697
10831
|
ma10: !0,
|
|
10698
10832
|
ma20: !0,
|
|
10699
10833
|
ma30: !0,
|
|
10700
10834
|
ma60: !0
|
|
10701
|
-
}), C.value?.setRendererEnabled("maLegend", !0)) : (
|
|
10835
|
+
}), C.value?.setRendererEnabled("maLegend", !0)) : (R.value = R.value.filter((t) => t !== e), C.value?.updateRendererConfig("ma", {
|
|
10702
10836
|
ma5: !1,
|
|
10703
10837
|
ma10: !1,
|
|
10704
10838
|
ma20: !1,
|
|
@@ -10708,44 +10842,44 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
|
|
|
10708
10842
|
return;
|
|
10709
10843
|
}
|
|
10710
10844
|
if (e === "BOLL") {
|
|
10711
|
-
t ?
|
|
10845
|
+
t ? R.value.includes(e) || R.value.push(e) : R.value = R.value.filter((t) => t !== e), C.value?.setRendererEnabled("boll", t), C.value?.setRendererEnabled("bollLegend", t), E();
|
|
10712
10846
|
return;
|
|
10713
10847
|
}
|
|
10714
|
-
if (
|
|
10848
|
+
if (B.includes(e)) {
|
|
10715
10849
|
if (t) {
|
|
10716
|
-
if (
|
|
10717
|
-
if (!
|
|
10718
|
-
let t =
|
|
10719
|
-
t &&
|
|
10850
|
+
if (z.value.find((t) => t.indicatorId === e)) return;
|
|
10851
|
+
if (!pe(e)) {
|
|
10852
|
+
let t = z.value[z.value.length - 1];
|
|
10853
|
+
t && _e(t.id, e);
|
|
10720
10854
|
}
|
|
10721
|
-
} else
|
|
10855
|
+
} else z.value.filter((t) => t.indicatorId === e).forEach((e) => me(e.id));
|
|
10722
10856
|
E();
|
|
10723
10857
|
}
|
|
10724
10858
|
}
|
|
10725
|
-
function
|
|
10726
|
-
if (
|
|
10859
|
+
function be(e, t) {
|
|
10860
|
+
if (de.value[e] = t, e === "BOLL") {
|
|
10727
10861
|
C.value?.updateRendererConfig("boll", t), C.value?.updateRendererConfig("bollLegend", t), E();
|
|
10728
10862
|
return;
|
|
10729
10863
|
}
|
|
10730
|
-
|
|
10864
|
+
B.includes(e) && z.value.filter((t) => t.indicatorId === e).forEach((e) => {
|
|
10731
10865
|
e.params = { ...t }, C.value?.updateRendererConfig(e.rendererName, t);
|
|
10732
10866
|
}), E();
|
|
10733
10867
|
}
|
|
10734
|
-
let
|
|
10735
|
-
let e = T.value, t = window.devicePixelRatio || 1, { startXPx: r, unitPx: i } =
|
|
10868
|
+
let xe = r(() => {
|
|
10869
|
+
let e = T.value, t = window.devicePixelRatio || 1, { startXPx: r, unitPx: i } = os(b.value, x.value, t);
|
|
10736
10870
|
return (r + e * i) / t + (n.rightAxisWidth + n.priceLabelWidth);
|
|
10737
10871
|
});
|
|
10738
|
-
function
|
|
10872
|
+
function Se() {
|
|
10739
10873
|
let e = v.value;
|
|
10740
10874
|
e && (e.scrollLeft = e.scrollWidth, E());
|
|
10741
10875
|
}
|
|
10742
10876
|
return t({
|
|
10743
10877
|
scheduleRender: E,
|
|
10744
|
-
scrollToRight:
|
|
10745
|
-
addSubPane:
|
|
10746
|
-
removeSubPane:
|
|
10747
|
-
switchSubIndicator:
|
|
10748
|
-
clearAllSubPanes:
|
|
10878
|
+
scrollToRight: Se,
|
|
10879
|
+
addSubPane: pe,
|
|
10880
|
+
removeSubPane: me,
|
|
10881
|
+
switchSubIndicator: _e,
|
|
10882
|
+
clearAllSubPanes: he,
|
|
10749
10883
|
get plugin() {
|
|
10750
10884
|
return C.value?.plugin;
|
|
10751
10885
|
}
|
|
@@ -10753,9 +10887,9 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
|
|
|
10753
10887
|
let e = v.value, t = u.value, r = c.value;
|
|
10754
10888
|
if (!e || !t || !r) return;
|
|
10755
10889
|
e.addEventListener("wheel", (e) => {
|
|
10756
|
-
C.value?.interaction.onWheel(e),
|
|
10890
|
+
C.value?.interaction.onWheel(e), I();
|
|
10757
10891
|
}, { passive: !1 });
|
|
10758
|
-
let i = new
|
|
10892
|
+
let i = new dc({
|
|
10759
10893
|
container: e,
|
|
10760
10894
|
canvasLayer: t,
|
|
10761
10895
|
xAxisCanvas: r
|
|
@@ -10780,16 +10914,16 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
|
|
|
10780
10914
|
if (!r) return;
|
|
10781
10915
|
let a = Math.max(0, r.scrollWidth - r.clientWidth);
|
|
10782
10916
|
r.scrollLeft = Math.min(Math.max(0, n), a), i.applyZoom(e, t);
|
|
10783
|
-
}), i.useRenderer(
|
|
10917
|
+
}), i.useRenderer(yc()), i.useRenderer(xc()), i.useRenderer(Ss({
|
|
10784
10918
|
ma5: !0,
|
|
10785
10919
|
ma10: !0,
|
|
10786
10920
|
ma20: !0,
|
|
10787
10921
|
ma30: !0,
|
|
10788
10922
|
ma60: !0
|
|
10789
|
-
})), i.useRenderer(
|
|
10923
|
+
})), i.useRenderer(Es()), i.setRendererEnabled("boll", !1), i.useRenderer(gc()), i.useRenderer(bc()), i.useRenderer(va()), i.useRenderer(Ec({
|
|
10790
10924
|
axisWidth: n.rightAxisWidth,
|
|
10791
10925
|
yPaddingPx: n.yPaddingPx
|
|
10792
|
-
})), i.useRenderer(
|
|
10926
|
+
})), i.useRenderer(ws({
|
|
10793
10927
|
yPaddingPx: n.yPaddingPx,
|
|
10794
10928
|
showMA: {
|
|
10795
10929
|
ma5: !0,
|
|
@@ -10798,11 +10932,11 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
|
|
|
10798
10932
|
ma30: !0,
|
|
10799
10933
|
ma60: !0
|
|
10800
10934
|
}
|
|
10801
|
-
})), i.useRenderer(
|
|
10935
|
+
})), i.useRenderer(Os({ yPaddingPx: n.yPaddingPx })), i.setRendererEnabled("bollLegend", !1), i.useRenderer(kc({ getCrosshairState: () => ({
|
|
10802
10936
|
pos: i.interaction.crosshairPos,
|
|
10803
10937
|
activePaneId: i.interaction.activePaneId,
|
|
10804
10938
|
isDragging: i.interaction.isDraggingState()
|
|
10805
|
-
}) })), i.useRenderer(
|
|
10939
|
+
}) })), i.useRenderer(Oc({
|
|
10806
10940
|
height: n.bottomAxisHeight,
|
|
10807
10941
|
getCrosshair: () => {
|
|
10808
10942
|
let e = i.interaction.crosshairPos, t = i.interaction.hoveredIndex;
|
|
@@ -10811,13 +10945,13 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
|
|
|
10811
10945
|
index: t
|
|
10812
10946
|
} : null;
|
|
10813
10947
|
}
|
|
10814
|
-
})), i.useRenderer(
|
|
10948
|
+
})), i.useRenderer(jc({ getPaneInfos: () => i.getPaneRenderers().map((e) => ({
|
|
10815
10949
|
top: e.getPane().top,
|
|
10816
10950
|
height: e.getPane().height
|
|
10817
10951
|
})) })), C.value = i, i.resize(), w.value = new Ui(i), w.value.on("config:error", (e) => {
|
|
10818
10952
|
console.error("Semantic config error:", e);
|
|
10819
10953
|
}), w.value.on("config:ready", () => {
|
|
10820
|
-
T.value = i.getData()?.length ?? 0,
|
|
10954
|
+
T.value = i.getData()?.length ?? 0, ge(), d(() => Se());
|
|
10821
10955
|
}), w.value.applyConfig(n.semanticConfig).then((e) => {
|
|
10822
10956
|
e && !e.success && console.error("Semantic config apply failed:", e.errors);
|
|
10823
10957
|
}), i.interaction.setOnMarkerHover((e) => {
|
|
@@ -10852,22 +10986,22 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
|
|
|
10852
10986
|
let t = await w.value?.applyConfig(e);
|
|
10853
10987
|
t && !t.success && console.error("Semantic config apply failed:", t.errors);
|
|
10854
10988
|
}
|
|
10855
|
-
}, { deep: !0 }), (e, t) => (g(), o("div",
|
|
10989
|
+
}, { deep: !0 }), (e, t) => (g(), o("div", Nc, [s("div", {
|
|
10856
10990
|
class: f(["chart-container", { "is-dragging": j.value }]),
|
|
10857
10991
|
ref_key: "containerRef",
|
|
10858
10992
|
ref: v,
|
|
10859
|
-
onScrollPassive:
|
|
10860
|
-
onMousedown:
|
|
10861
|
-
onMousemove:
|
|
10862
|
-
onMouseup:
|
|
10863
|
-
onMouseleave:
|
|
10864
|
-
onPointerdown:
|
|
10865
|
-
onPointermove:
|
|
10866
|
-
onPointerup:
|
|
10867
|
-
onPointerleave:
|
|
10993
|
+
onScrollPassive: ue,
|
|
10994
|
+
onMousedown: re,
|
|
10995
|
+
onMousemove: ae,
|
|
10996
|
+
onMouseup: L,
|
|
10997
|
+
onMouseleave: ce,
|
|
10998
|
+
onPointerdown: ie,
|
|
10999
|
+
onPointermove: oe,
|
|
11000
|
+
onPointerup: se,
|
|
11001
|
+
onPointerleave: le
|
|
10868
11002
|
}, [s("div", {
|
|
10869
11003
|
class: "scroll-content",
|
|
10870
|
-
style: p({ width:
|
|
11004
|
+
style: p({ width: xe.value + "px" })
|
|
10871
11005
|
}, [s("div", {
|
|
10872
11006
|
class: "canvas-layer",
|
|
10873
11007
|
ref_key: "canvasLayerRef",
|
|
@@ -10878,12 +11012,12 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
|
|
|
10878
11012
|
ref_key: "xAxisCanvasRef",
|
|
10879
11013
|
ref: c
|
|
10880
11014
|
}, null, 512),
|
|
10881
|
-
|
|
11015
|
+
te.value ? (g(), i(mo, {
|
|
10882
11016
|
key: 0,
|
|
10883
|
-
k:
|
|
10884
|
-
index:
|
|
10885
|
-
data:
|
|
10886
|
-
pos:
|
|
11017
|
+
k: te.value,
|
|
11018
|
+
index: P.value,
|
|
11019
|
+
data: ne.value,
|
|
11020
|
+
pos: F.value,
|
|
10887
11021
|
"set-el": D
|
|
10888
11022
|
}, null, 8, [
|
|
10889
11023
|
"k",
|
|
@@ -10896,15 +11030,15 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
|
|
|
10896
11030
|
marker: O.value || k.value,
|
|
10897
11031
|
pos: A.value
|
|
10898
11032
|
}, null, 8, ["marker", "pos"])) : a("", !0)
|
|
10899
|
-
], 512)], 4)], 34), l(
|
|
10900
|
-
"active-indicators":
|
|
10901
|
-
"indicator-params":
|
|
10902
|
-
onToggle:
|
|
10903
|
-
onUpdateParams:
|
|
11033
|
+
], 512)], 4)], 34), l(is, {
|
|
11034
|
+
"active-indicators": R.value,
|
|
11035
|
+
"indicator-params": de.value,
|
|
11036
|
+
onToggle: ye,
|
|
11037
|
+
onUpdateParams: be
|
|
10904
11038
|
}, null, 8, ["active-indicators", "indicator-params"])]));
|
|
10905
11039
|
}
|
|
10906
|
-
}), [["__scopeId", "data-v-8c9105eb"]]),
|
|
10907
|
-
e.component("KLineChart",
|
|
11040
|
+
}), [["__scopeId", "data-v-8c9105eb"]]), Ic = { install(e) {
|
|
11041
|
+
e.component("KLineChart", Fc);
|
|
10908
11042
|
} };
|
|
10909
11043
|
//#endregion
|
|
10910
|
-
export { la as ConfigManager,
|
|
11044
|
+
export { la as ConfigManager, F as EventBus, oa as GLOBAL_PANE_ID, ca as HookSystem, Fc as KLineChart, Ic as KMapPlugin, ua as PluginHostImpl, sa as PluginRegistry, ia as PluginState, Y as RENDERER_PRIORITY, pa as RendererPluginManager, da as createPluginHost, aa as wrapPaneInfo };
|