@363045841yyt/klinechart 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +9 -9
- package/dist/index.js +621 -595
- package/dist/klinechart.css +1 -1
- package/package.json +2 -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
|
+
}, P = (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
|
+
}, ee = (e, t, n) => (n = e == null ? {} : T(k(e)), P(t || !e || !e.__esModule ? E(n, "default", {
|
|
17
17
|
value: e,
|
|
18
18
|
enumerable: !0
|
|
19
|
-
}) : n, e)),
|
|
19
|
+
}) : n, e)), F = (e) => A.call(e, "module.exports") ? e["module.exports"] : P(E({}, "__esModule", { value: !0 }), e), I = 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,54 +50,54 @@ var T = Object.create, E = Object.defineProperty, D = Object.getOwnPropertyDescr
|
|
|
50
50
|
};
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/helpers/bind.js
|
|
53
|
-
function
|
|
53
|
+
function te(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.2/node_modules/axios/lib/utils.js
|
|
60
|
-
var { toString:
|
|
61
|
-
let n =
|
|
60
|
+
var { toString: ne } = Object.prototype, { getPrototypeOf: re } = Object, { iterator: ie, toStringTag: ae } = Symbol, oe = ((e) => (t) => {
|
|
61
|
+
let n = ne.call(t);
|
|
62
62
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
63
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
64
|
function ue(e) {
|
|
65
|
-
return e !== null && !le(e) && e.constructor !== null && !le(e.constructor) &&
|
|
65
|
+
return e !== null && !le(e) && e.constructor !== null && !le(e.constructor) && V(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
66
66
|
}
|
|
67
67
|
var R = L("ArrayBuffer");
|
|
68
|
-
function
|
|
68
|
+
function z(e) {
|
|
69
69
|
let t;
|
|
70
70
|
return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && R(e.buffer), t;
|
|
71
71
|
}
|
|
72
|
-
var
|
|
72
|
+
var B = se("string"), V = se("function"), de = se("number"), fe = (e) => typeof e == "object" && !!e, pe = (e) => e === !0 || e === !1, me = (e) => {
|
|
73
73
|
if (oe(e) !== "object") return !1;
|
|
74
|
-
let t =
|
|
75
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
76
|
-
},
|
|
77
|
-
if (!
|
|
74
|
+
let t = re(e);
|
|
75
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ae in e) && !(ie in e);
|
|
76
|
+
}, he = (e) => {
|
|
77
|
+
if (!fe(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
|
+
}, ge = L("Date"), _e = L("File"), ve = (e) => !!(e && e.uri !== void 0), ye = (e) => e && e.getParts !== void 0, be = L("Blob"), xe = L("FileList"), Se = (e) => fe(e) && V(e.pipe);
|
|
84
|
+
function Ce() {
|
|
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 we = Ce(), Te = we.FormData === void 0 ? void 0 : we.FormData, Ee = (e) => {
|
|
88
88
|
if (!e) return !1;
|
|
89
|
-
if (
|
|
90
|
-
let t =
|
|
91
|
-
if (!t || t === Object.prototype || !
|
|
89
|
+
if (Te && e instanceof Te) return !0;
|
|
90
|
+
let t = re(e);
|
|
91
|
+
if (!t || t === Object.prototype || !V(e.append)) return !1;
|
|
92
92
|
let n = oe(e);
|
|
93
|
-
return n === "formdata" || n === "object" &&
|
|
94
|
-
},
|
|
93
|
+
return n === "formdata" || n === "object" && V(e.toString) && e.toString() === "[object FormData]";
|
|
94
|
+
}, De = L("URLSearchParams"), [Oe, ke, Ae, je] = [
|
|
95
95
|
"ReadableStream",
|
|
96
96
|
"Request",
|
|
97
97
|
"Response",
|
|
98
98
|
"Headers"
|
|
99
|
-
].map(L),
|
|
100
|
-
function
|
|
99
|
+
].map(L), Me = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
100
|
+
function Ne(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
101
101
|
if (e == null) return;
|
|
102
102
|
let r, i;
|
|
103
103
|
if (typeof e != "object" && (e = [e]), ce(e)) for (r = 0, i = e.length; r < i; r++) t.call(null, e[r], r, e);
|
|
@@ -107,26 +107,26 @@ function Pe(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
107
107
|
for (r = 0; r < a; r++) o = i[r], t.call(null, e[o], o, e);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Pe(e, t) {
|
|
111
111
|
if (ue(e)) return null;
|
|
112
112
|
t = t.toLowerCase();
|
|
113
113
|
let n = Object.keys(e), r = n.length, i;
|
|
114
114
|
for (; r-- > 0;) if (i = n[r], t === i.toLowerCase()) return i;
|
|
115
115
|
return null;
|
|
116
116
|
}
|
|
117
|
-
var
|
|
118
|
-
function
|
|
119
|
-
let { caseless: e, skipUndefined: t } =
|
|
117
|
+
var Fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ie = (e) => !le(e) && e !== Fe;
|
|
118
|
+
function Le() {
|
|
119
|
+
let { caseless: e, skipUndefined: t } = Ie(this) && this || {}, n = {}, r = (r, i) => {
|
|
120
120
|
if (i === "__proto__" || i === "constructor" || i === "prototype") return;
|
|
121
|
-
let a = e &&
|
|
122
|
-
|
|
121
|
+
let a = e && Pe(n, i) || i;
|
|
122
|
+
me(n[a]) && me(r) ? n[a] = Le(n[a], r) : me(r) ? n[a] = Le({}, r) : ce(r) ? n[a] = r.slice() : (!t || !le(r)) && (n[a] = r);
|
|
123
123
|
};
|
|
124
|
-
for (let e = 0, t = arguments.length; e < t; e++) arguments[e] &&
|
|
124
|
+
for (let e = 0, t = arguments.length; e < t; e++) arguments[e] && Ne(arguments[e], r);
|
|
125
125
|
return n;
|
|
126
126
|
}
|
|
127
|
-
var
|
|
128
|
-
n &&
|
|
129
|
-
value:
|
|
127
|
+
var Re = (e, t, n, { allOwnKeys: r } = {}) => (Ne(t, (t, r) => {
|
|
128
|
+
n && V(t) ? Object.defineProperty(e, r, {
|
|
129
|
+
value: te(t, n),
|
|
130
130
|
writable: !0,
|
|
131
131
|
enumerable: !0,
|
|
132
132
|
configurable: !0
|
|
@@ -136,60 +136,60 @@ var ze = (e, t, n, { allOwnKeys: r } = {}) => (Pe(t, (t, r) => {
|
|
|
136
136
|
enumerable: !0,
|
|
137
137
|
configurable: !0
|
|
138
138
|
});
|
|
139
|
-
}, { allOwnKeys: r }), e),
|
|
139
|
+
}, { allOwnKeys: r }), e), ze = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Be = (e, t, n, r) => {
|
|
140
140
|
e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
|
|
141
141
|
value: e,
|
|
142
142
|
writable: !0,
|
|
143
143
|
enumerable: !1,
|
|
144
144
|
configurable: !0
|
|
145
145
|
}), Object.defineProperty(e, "super", { value: t.prototype }), n && Object.assign(e.prototype, n);
|
|
146
|
-
},
|
|
146
|
+
}, Ve = (e, t, n, r) => {
|
|
147
147
|
let i, a, o, s = {};
|
|
148
148
|
if (t ||= {}, e == null) return t;
|
|
149
149
|
do {
|
|
150
150
|
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);
|
|
151
|
-
e = n !== !1 &&
|
|
151
|
+
e = n !== !1 && re(e);
|
|
152
152
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
153
153
|
return t;
|
|
154
|
-
},
|
|
154
|
+
}, He = (e, t, n) => {
|
|
155
155
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
156
156
|
let r = e.indexOf(t, n);
|
|
157
157
|
return r !== -1 && r === n;
|
|
158
|
-
},
|
|
158
|
+
}, Ue = (e) => {
|
|
159
159
|
if (!e) return null;
|
|
160
160
|
if (ce(e)) return e;
|
|
161
161
|
let t = e.length;
|
|
162
|
-
if (!
|
|
162
|
+
if (!de(t)) return null;
|
|
163
163
|
let n = Array(t);
|
|
164
164
|
for (; t-- > 0;) n[t] = e[t];
|
|
165
165
|
return n;
|
|
166
|
-
},
|
|
167
|
-
let n = (e && e[
|
|
166
|
+
}, We = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && re(Uint8Array)), Ge = (e, t) => {
|
|
167
|
+
let n = (e && e[ie]).call(e), r;
|
|
168
168
|
for (; (r = n.next()) && !r.done;) {
|
|
169
169
|
let n = r.value;
|
|
170
170
|
t.call(e, n[0], n[1]);
|
|
171
171
|
}
|
|
172
|
-
},
|
|
172
|
+
}, Ke = (e, t) => {
|
|
173
173
|
let n, r = [];
|
|
174
174
|
for (; (n = e.exec(t)) !== null;) r.push(n);
|
|
175
175
|
return r;
|
|
176
|
-
},
|
|
176
|
+
}, qe = L("HTMLFormElement"), Je = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, t, n) {
|
|
177
177
|
return t.toUpperCase() + n;
|
|
178
|
-
}),
|
|
178
|
+
}), Ye = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Xe = L("RegExp"), Ze = (e, t) => {
|
|
179
179
|
let n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
180
|
-
|
|
180
|
+
Ne(n, (n, i) => {
|
|
181
181
|
let a;
|
|
182
182
|
(a = t(n, i, e)) !== !1 && (r[i] = a || n);
|
|
183
183
|
}), Object.defineProperties(e, r);
|
|
184
|
-
},
|
|
185
|
-
|
|
186
|
-
if (
|
|
184
|
+
}, Qe = (e) => {
|
|
185
|
+
Ze(e, (t, n) => {
|
|
186
|
+
if (V(e) && [
|
|
187
187
|
"arguments",
|
|
188
188
|
"caller",
|
|
189
189
|
"callee"
|
|
190
190
|
].indexOf(n) !== -1) return !1;
|
|
191
191
|
let r = e[n];
|
|
192
|
-
if (
|
|
192
|
+
if (V(r)) {
|
|
193
193
|
if (t.enumerable = !1, "writable" in t) {
|
|
194
194
|
t.writable = !1;
|
|
195
195
|
return;
|
|
@@ -199,26 +199,26 @@ var ze = (e, t, n, { allOwnKeys: r } = {}) => (Pe(t, (t, r) => {
|
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
|
-
},
|
|
202
|
+
}, $e = (e, t) => {
|
|
203
203
|
let n = {}, r = (e) => {
|
|
204
204
|
e.forEach((e) => {
|
|
205
205
|
n[e] = !0;
|
|
206
206
|
});
|
|
207
207
|
};
|
|
208
208
|
return ce(e) ? r(e) : r(String(e).split(t)), n;
|
|
209
|
-
},
|
|
210
|
-
function
|
|
211
|
-
return !!(e &&
|
|
209
|
+
}, et = () => {}, tt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
210
|
+
function nt(e) {
|
|
211
|
+
return !!(e && V(e.append) && e[ae] === "FormData" && e[ie]);
|
|
212
212
|
}
|
|
213
|
-
var
|
|
213
|
+
var rt = (e) => {
|
|
214
214
|
let t = Array(10), n = (e, r) => {
|
|
215
|
-
if (
|
|
215
|
+
if (fe(e)) {
|
|
216
216
|
if (t.indexOf(e) >= 0) return;
|
|
217
217
|
if (ue(e)) return e;
|
|
218
218
|
if (!("toJSON" in e)) {
|
|
219
219
|
t[r] = e;
|
|
220
220
|
let i = ce(e) ? [] : {};
|
|
221
|
-
return
|
|
221
|
+
return Ne(e, (e, t) => {
|
|
222
222
|
let a = n(e, r + 1);
|
|
223
223
|
!le(a) && (i[t] = a);
|
|
224
224
|
}), t[r] = void 0, i;
|
|
@@ -227,71 +227,71 @@ var it = (e) => {
|
|
|
227
227
|
return e;
|
|
228
228
|
};
|
|
229
229
|
return n(e, 0);
|
|
230
|
-
},
|
|
231
|
-
n ===
|
|
230
|
+
}, it = L("AsyncFunction"), at = (e) => e && (fe(e) || V(e)) && V(e.then) && V(e.catch), ot = ((e, t) => e ? setImmediate : t ? ((e, t) => (Fe.addEventListener("message", ({ source: n, data: r }) => {
|
|
231
|
+
n === Fe && r === e && t.length && t.shift()();
|
|
232
232
|
}, !1), (n) => {
|
|
233
|
-
t.push(n),
|
|
234
|
-
}))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function",
|
|
233
|
+
t.push(n), Fe.postMessage(e, "*");
|
|
234
|
+
}))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function", V(Fe.postMessage)), H = {
|
|
235
235
|
isArray: ce,
|
|
236
236
|
isArrayBuffer: R,
|
|
237
237
|
isBuffer: ue,
|
|
238
|
-
isFormData:
|
|
239
|
-
isArrayBufferView:
|
|
240
|
-
isString:
|
|
241
|
-
isNumber:
|
|
242
|
-
isBoolean:
|
|
243
|
-
isObject:
|
|
244
|
-
isPlainObject:
|
|
245
|
-
isEmptyObject:
|
|
246
|
-
isReadableStream:
|
|
247
|
-
isRequest:
|
|
248
|
-
isResponse:
|
|
249
|
-
isHeaders:
|
|
238
|
+
isFormData: Ee,
|
|
239
|
+
isArrayBufferView: z,
|
|
240
|
+
isString: B,
|
|
241
|
+
isNumber: de,
|
|
242
|
+
isBoolean: pe,
|
|
243
|
+
isObject: fe,
|
|
244
|
+
isPlainObject: me,
|
|
245
|
+
isEmptyObject: he,
|
|
246
|
+
isReadableStream: Oe,
|
|
247
|
+
isRequest: ke,
|
|
248
|
+
isResponse: Ae,
|
|
249
|
+
isHeaders: je,
|
|
250
250
|
isUndefined: le,
|
|
251
|
-
isDate:
|
|
252
|
-
isFile:
|
|
253
|
-
isReactNativeBlob:
|
|
254
|
-
isReactNative:
|
|
255
|
-
isBlob:
|
|
256
|
-
isRegExp:
|
|
257
|
-
isFunction:
|
|
258
|
-
isStream:
|
|
259
|
-
isURLSearchParams:
|
|
260
|
-
isTypedArray:
|
|
261
|
-
isFileList:
|
|
262
|
-
forEach:
|
|
263
|
-
merge:
|
|
264
|
-
extend:
|
|
265
|
-
trim:
|
|
266
|
-
stripBOM:
|
|
267
|
-
inherits:
|
|
268
|
-
toFlatObject:
|
|
251
|
+
isDate: ge,
|
|
252
|
+
isFile: _e,
|
|
253
|
+
isReactNativeBlob: ve,
|
|
254
|
+
isReactNative: ye,
|
|
255
|
+
isBlob: be,
|
|
256
|
+
isRegExp: Xe,
|
|
257
|
+
isFunction: V,
|
|
258
|
+
isStream: Se,
|
|
259
|
+
isURLSearchParams: De,
|
|
260
|
+
isTypedArray: We,
|
|
261
|
+
isFileList: xe,
|
|
262
|
+
forEach: Ne,
|
|
263
|
+
merge: Le,
|
|
264
|
+
extend: Re,
|
|
265
|
+
trim: Me,
|
|
266
|
+
stripBOM: ze,
|
|
267
|
+
inherits: Be,
|
|
268
|
+
toFlatObject: Ve,
|
|
269
269
|
kindOf: oe,
|
|
270
270
|
kindOfTest: L,
|
|
271
|
-
endsWith:
|
|
272
|
-
toArray:
|
|
273
|
-
forEachEntry:
|
|
274
|
-
matchAll:
|
|
275
|
-
isHTMLForm:
|
|
276
|
-
hasOwnProperty:
|
|
277
|
-
hasOwnProp:
|
|
278
|
-
reduceDescriptors:
|
|
279
|
-
freezeMethods:
|
|
280
|
-
toObjectSet:
|
|
281
|
-
toCamelCase:
|
|
282
|
-
noop:
|
|
283
|
-
toFiniteNumber:
|
|
284
|
-
findKey:
|
|
285
|
-
global:
|
|
286
|
-
isContextDefined:
|
|
287
|
-
isSpecCompliantForm:
|
|
288
|
-
toJSONObject:
|
|
289
|
-
isAsyncFn:
|
|
290
|
-
isThenable:
|
|
291
|
-
setImmediate:
|
|
292
|
-
asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
293
|
-
isIterable: (e) => e != null &&
|
|
294
|
-
},
|
|
271
|
+
endsWith: He,
|
|
272
|
+
toArray: Ue,
|
|
273
|
+
forEachEntry: Ge,
|
|
274
|
+
matchAll: Ke,
|
|
275
|
+
isHTMLForm: qe,
|
|
276
|
+
hasOwnProperty: Ye,
|
|
277
|
+
hasOwnProp: Ye,
|
|
278
|
+
reduceDescriptors: Ze,
|
|
279
|
+
freezeMethods: Qe,
|
|
280
|
+
toObjectSet: $e,
|
|
281
|
+
toCamelCase: Je,
|
|
282
|
+
noop: et,
|
|
283
|
+
toFiniteNumber: tt,
|
|
284
|
+
findKey: Pe,
|
|
285
|
+
global: Fe,
|
|
286
|
+
isContextDefined: Ie,
|
|
287
|
+
isSpecCompliantForm: nt,
|
|
288
|
+
toJSONObject: rt,
|
|
289
|
+
isAsyncFn: it,
|
|
290
|
+
isThenable: at,
|
|
291
|
+
setImmediate: ot,
|
|
292
|
+
asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(Fe) : typeof process < "u" && process.nextTick || ot,
|
|
293
|
+
isIterable: (e) => e != null && V(e[ie])
|
|
294
|
+
}, U = class e extends Error {
|
|
295
295
|
static from(t, n, r, i, a, o) {
|
|
296
296
|
let s = new e(t.message, n || t.code, r, i, a);
|
|
297
297
|
return s.cause = t, s.name = t.name, t.status != null && s.status == null && (s.status = t.status), o && Object.assign(s, o), s;
|
|
@@ -314,81 +314,81 @@ var it = (e) => {
|
|
|
314
314
|
lineNumber: this.lineNumber,
|
|
315
315
|
columnNumber: this.columnNumber,
|
|
316
316
|
stack: this.stack,
|
|
317
|
-
config:
|
|
317
|
+
config: H.toJSONObject(this.config),
|
|
318
318
|
code: this.code,
|
|
319
319
|
status: this.status
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
322
|
};
|
|
323
|
-
|
|
323
|
+
U.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE", U.ERR_BAD_OPTION = "ERR_BAD_OPTION", U.ECONNABORTED = "ECONNABORTED", U.ETIMEDOUT = "ETIMEDOUT", U.ERR_NETWORK = "ERR_NETWORK", U.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS", U.ERR_DEPRECATED = "ERR_DEPRECATED", U.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE", U.ERR_BAD_REQUEST = "ERR_BAD_REQUEST", U.ERR_CANCELED = "ERR_CANCELED", U.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT", U.ERR_INVALID_URL = "ERR_INVALID_URL", U.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
324
324
|
//#endregion
|
|
325
325
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/helpers/toFormData.js
|
|
326
|
-
function
|
|
327
|
-
return
|
|
326
|
+
function st(e) {
|
|
327
|
+
return H.isPlainObject(e) || H.isArray(e);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
330
|
-
return
|
|
329
|
+
function ct(e) {
|
|
330
|
+
return H.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function lt(e, t, n) {
|
|
333
333
|
return e ? e.concat(t).map(function(e, t) {
|
|
334
|
-
return e =
|
|
334
|
+
return e = ct(e), !n && t ? "[" + e + "]" : e;
|
|
335
335
|
}).join(n ? "." : "") : t;
|
|
336
336
|
}
|
|
337
|
-
function
|
|
338
|
-
return
|
|
337
|
+
function ut(e) {
|
|
338
|
+
return H.isArray(e) && !e.some(st);
|
|
339
339
|
}
|
|
340
|
-
var
|
|
340
|
+
var dt = H.toFlatObject(H, {}, null, function(e) {
|
|
341
341
|
return /^is[A-Z]/.test(e);
|
|
342
342
|
});
|
|
343
|
-
function
|
|
344
|
-
if (!
|
|
345
|
-
t ||= new FormData(), n =
|
|
343
|
+
function ft(e, t, n) {
|
|
344
|
+
if (!H.isObject(e)) throw TypeError("target must be an object");
|
|
345
|
+
t ||= new FormData(), n = H.toFlatObject(n, {
|
|
346
346
|
metaTokens: !0,
|
|
347
347
|
dots: !1,
|
|
348
348
|
indexes: !1
|
|
349
349
|
}, !1, function(e, t) {
|
|
350
|
-
return !
|
|
350
|
+
return !H.isUndefined(t[e]);
|
|
351
351
|
});
|
|
352
|
-
let r = n.metaTokens, i = n.visitor || d, a = n.dots, o = n.indexes, s = n.Blob || typeof Blob < "u" && Blob, c = n.maxDepth === void 0 ? 100 : n.maxDepth, l = s &&
|
|
353
|
-
if (!
|
|
352
|
+
let r = n.metaTokens, i = n.visitor || d, a = n.dots, o = n.indexes, s = n.Blob || typeof Blob < "u" && Blob, c = n.maxDepth === void 0 ? 100 : n.maxDepth, l = s && H.isSpecCompliantForm(t);
|
|
353
|
+
if (!H.isFunction(i)) throw TypeError("visitor must be a function");
|
|
354
354
|
function u(e) {
|
|
355
355
|
if (e === null) return "";
|
|
356
|
-
if (
|
|
357
|
-
if (
|
|
358
|
-
if (!l &&
|
|
359
|
-
return
|
|
356
|
+
if (H.isDate(e)) return e.toISOString();
|
|
357
|
+
if (H.isBoolean(e)) return e.toString();
|
|
358
|
+
if (!l && H.isBlob(e)) throw new U("Blob is not supported. Use a Buffer instead.");
|
|
359
|
+
return H.isArrayBuffer(e) || H.isTypedArray(e) ? l && typeof Blob == "function" ? new Blob([e]) : Buffer.from(e) : e;
|
|
360
360
|
}
|
|
361
361
|
function d(e, n, i) {
|
|
362
362
|
let s = e;
|
|
363
|
-
if (
|
|
363
|
+
if (H.isReactNative(t) && H.isReactNativeBlob(e)) return t.append(lt(i, n, a), u(e)), !1;
|
|
364
364
|
if (e && !i && typeof e == "object") {
|
|
365
|
-
if (
|
|
366
|
-
else if (
|
|
367
|
-
!(
|
|
365
|
+
if (H.endsWith(n, "{}")) n = r ? n : n.slice(0, -2), e = JSON.stringify(e);
|
|
366
|
+
else if (H.isArray(e) && ut(e) || (H.isFileList(e) || H.endsWith(n, "[]")) && (s = H.toArray(e))) return n = ct(n), s.forEach(function(e, r) {
|
|
367
|
+
!(H.isUndefined(e) || e === null) && t.append(o === !0 ? lt([n], r, a) : o === null ? n : n + "[]", u(e));
|
|
368
368
|
}), !1;
|
|
369
369
|
}
|
|
370
|
-
return
|
|
370
|
+
return st(e) ? !0 : (t.append(lt(i, n, a), u(e)), !1);
|
|
371
371
|
}
|
|
372
|
-
let f = [], p = Object.assign(
|
|
372
|
+
let f = [], p = Object.assign(dt, {
|
|
373
373
|
defaultVisitor: d,
|
|
374
374
|
convertValue: u,
|
|
375
|
-
isVisitable:
|
|
375
|
+
isVisitable: st
|
|
376
376
|
});
|
|
377
377
|
function m(e, n, r = 0) {
|
|
378
|
-
if (!
|
|
379
|
-
if (r > c) throw new
|
|
378
|
+
if (!H.isUndefined(e)) {
|
|
379
|
+
if (r > c) throw new U("Object is too deeply nested (" + r + " levels). Max depth: " + c, U.ERR_FORM_DATA_DEPTH_EXCEEDED);
|
|
380
380
|
if (f.indexOf(e) !== -1) throw Error("Circular reference detected in " + n.join("."));
|
|
381
|
-
f.push(e),
|
|
382
|
-
(!(
|
|
381
|
+
f.push(e), H.forEach(e, function(e, a) {
|
|
382
|
+
(!(H.isUndefined(e) || e === null) && i.call(t, e, H.isString(a) ? a.trim() : a, n, p)) === !0 && m(e, n ? n.concat(a) : [a], r + 1);
|
|
383
383
|
}), f.pop();
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
if (!
|
|
386
|
+
if (!H.isObject(e)) throw TypeError("data must be an object");
|
|
387
387
|
return m(e), t;
|
|
388
388
|
}
|
|
389
389
|
//#endregion
|
|
390
390
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
391
|
-
function
|
|
391
|
+
function pt(e) {
|
|
392
392
|
let t = {
|
|
393
393
|
"!": "%21",
|
|
394
394
|
"'": "%27",
|
|
@@ -401,29 +401,29 @@ function mt(e) {
|
|
|
401
401
|
return t[e];
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
|
-
function
|
|
405
|
-
this._pairs = [], e &&
|
|
404
|
+
function mt(e, t) {
|
|
405
|
+
this._pairs = [], e && ft(e, this, t);
|
|
406
406
|
}
|
|
407
|
-
var
|
|
408
|
-
|
|
407
|
+
var ht = mt.prototype;
|
|
408
|
+
ht.append = function(e, t) {
|
|
409
409
|
this._pairs.push([e, t]);
|
|
410
|
-
},
|
|
410
|
+
}, ht.toString = function(e) {
|
|
411
411
|
let t = e ? function(t) {
|
|
412
|
-
return e.call(this, t,
|
|
413
|
-
} :
|
|
412
|
+
return e.call(this, t, pt);
|
|
413
|
+
} : pt;
|
|
414
414
|
return this._pairs.map(function(e) {
|
|
415
415
|
return t(e[0]) + "=" + t(e[1]);
|
|
416
416
|
}, "").join("&");
|
|
417
417
|
};
|
|
418
418
|
//#endregion
|
|
419
419
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/helpers/buildURL.js
|
|
420
|
-
function
|
|
420
|
+
function gt(e) {
|
|
421
421
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function _t(e, t, n) {
|
|
424
424
|
if (!t) return e;
|
|
425
|
-
let r = n && n.encode ||
|
|
426
|
-
if (o = a ? a(t, i) :
|
|
425
|
+
let r = n && n.encode || gt, i = H.isFunction(n) ? { serialize: n } : n, a = i && i.serialize, o;
|
|
426
|
+
if (o = a ? a(t, i) : H.isURLSearchParams(t) ? t.toString() : new mt(t, i).toString(r), o) {
|
|
427
427
|
let t = e.indexOf("#");
|
|
428
428
|
t !== -1 && (e = e.slice(0, t)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
429
429
|
}
|
|
@@ -431,7 +431,7 @@ function vt(e, t, n) {
|
|
|
431
431
|
}
|
|
432
432
|
//#endregion
|
|
433
433
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/core/InterceptorManager.js
|
|
434
|
-
var
|
|
434
|
+
var vt = class {
|
|
435
435
|
constructor() {
|
|
436
436
|
this.handlers = [];
|
|
437
437
|
}
|
|
@@ -450,19 +450,19 @@ var yt = class {
|
|
|
450
450
|
this.handlers &&= [];
|
|
451
451
|
}
|
|
452
452
|
forEach(e) {
|
|
453
|
-
|
|
453
|
+
H.forEach(this.handlers, function(t) {
|
|
454
454
|
t !== null && e(t);
|
|
455
455
|
});
|
|
456
456
|
}
|
|
457
|
-
},
|
|
457
|
+
}, yt = {
|
|
458
458
|
silentJSONParsing: !0,
|
|
459
459
|
forcedJSONParsing: !0,
|
|
460
460
|
clarifyTimeoutError: !1,
|
|
461
461
|
legacyInterceptorReqResOrdering: !0
|
|
462
|
-
},
|
|
462
|
+
}, bt = {
|
|
463
463
|
isBrowser: !0,
|
|
464
464
|
classes: {
|
|
465
|
-
URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams :
|
|
465
|
+
URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams : mt,
|
|
466
466
|
FormData: typeof FormData < "u" ? FormData : null,
|
|
467
467
|
Blob: typeof Blob < "u" ? Blob : null
|
|
468
468
|
},
|
|
@@ -474,99 +474,99 @@ var yt = class {
|
|
|
474
474
|
"url",
|
|
475
475
|
"data"
|
|
476
476
|
]
|
|
477
|
-
},
|
|
478
|
-
hasBrowserEnv: () =>
|
|
479
|
-
hasStandardBrowserEnv: () =>
|
|
480
|
-
hasStandardBrowserWebWorkerEnv: () =>
|
|
481
|
-
navigator: () =>
|
|
482
|
-
origin: () =>
|
|
483
|
-
}),
|
|
477
|
+
}, xt = /* @__PURE__ */ N({
|
|
478
|
+
hasBrowserEnv: () => St,
|
|
479
|
+
hasStandardBrowserEnv: () => wt,
|
|
480
|
+
hasStandardBrowserWebWorkerEnv: () => Tt,
|
|
481
|
+
navigator: () => Ct,
|
|
482
|
+
origin: () => Et
|
|
483
|
+
}), St = typeof window < "u" && typeof document < "u", Ct = typeof navigator == "object" && navigator || void 0, wt = St && (!Ct || [
|
|
484
484
|
"ReactNative",
|
|
485
485
|
"NativeScript",
|
|
486
486
|
"NS"
|
|
487
|
-
].indexOf(
|
|
488
|
-
...
|
|
489
|
-
...
|
|
487
|
+
].indexOf(Ct.product) < 0), Tt = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Et = St && window.location.href || "http://localhost", W = {
|
|
488
|
+
...xt,
|
|
489
|
+
...bt
|
|
490
490
|
};
|
|
491
491
|
//#endregion
|
|
492
492
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
493
|
-
function
|
|
494
|
-
return
|
|
493
|
+
function Dt(e, t) {
|
|
494
|
+
return ft(e, new W.classes.URLSearchParams(), {
|
|
495
495
|
visitor: function(e, t, n, r) {
|
|
496
|
-
return
|
|
496
|
+
return W.isNode && H.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
|
|
497
497
|
},
|
|
498
498
|
...t
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
501
|
//#endregion
|
|
502
502
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
503
|
-
function
|
|
504
|
-
return
|
|
503
|
+
function Ot(e) {
|
|
504
|
+
return H.matchAll(/\w+|\[(\w*)]/g, e).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function kt(e) {
|
|
507
507
|
let t = {}, n = Object.keys(e), r, i = n.length, a;
|
|
508
508
|
for (r = 0; r < i; r++) a = n[r], t[a] = e[a];
|
|
509
509
|
return t;
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function At(e) {
|
|
512
512
|
function t(e, n, r, i) {
|
|
513
513
|
let a = e[i++];
|
|
514
514
|
if (a === "__proto__") return !0;
|
|
515
515
|
let o = Number.isFinite(+a), s = i >= e.length;
|
|
516
|
-
return a = !a &&
|
|
516
|
+
return a = !a && H.isArray(r) ? r.length : a, s ? (H.hasOwnProp(r, a) ? r[a] = H.isArray(r[a]) ? r[a].concat(n) : [r[a], n] : r[a] = n, !o) : ((!r[a] || !H.isObject(r[a])) && (r[a] = []), t(e, n, r[a], i) && H.isArray(r[a]) && (r[a] = kt(r[a])), !o);
|
|
517
517
|
}
|
|
518
|
-
if (
|
|
518
|
+
if (H.isFormData(e) && H.isFunction(e.entries)) {
|
|
519
519
|
let n = {};
|
|
520
|
-
return
|
|
521
|
-
t(
|
|
520
|
+
return H.forEachEntry(e, (e, r) => {
|
|
521
|
+
t(Ot(e), r, n, 0);
|
|
522
522
|
}), n;
|
|
523
523
|
}
|
|
524
524
|
return null;
|
|
525
525
|
}
|
|
526
526
|
//#endregion
|
|
527
527
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/defaults/index.js
|
|
528
|
-
var
|
|
529
|
-
function
|
|
530
|
-
if (
|
|
531
|
-
return (t || JSON.parse)(e),
|
|
528
|
+
var jt = (e, t) => e != null && H.hasOwnProp(e, t) ? e[t] : void 0;
|
|
529
|
+
function Mt(e, t, n) {
|
|
530
|
+
if (H.isString(e)) try {
|
|
531
|
+
return (t || JSON.parse)(e), H.trim(e);
|
|
532
532
|
} catch (e) {
|
|
533
533
|
if (e.name !== "SyntaxError") throw e;
|
|
534
534
|
}
|
|
535
535
|
return (n || JSON.stringify)(e);
|
|
536
536
|
}
|
|
537
|
-
var
|
|
538
|
-
transitional:
|
|
537
|
+
var Nt = {
|
|
538
|
+
transitional: yt,
|
|
539
539
|
adapter: [
|
|
540
540
|
"xhr",
|
|
541
541
|
"http",
|
|
542
542
|
"fetch"
|
|
543
543
|
],
|
|
544
544
|
transformRequest: [function(e, t) {
|
|
545
|
-
let n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i =
|
|
546
|
-
if (i &&
|
|
547
|
-
if (
|
|
548
|
-
if (
|
|
549
|
-
if (
|
|
545
|
+
let n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i = H.isObject(e);
|
|
546
|
+
if (i && H.isHTMLForm(e) && (e = new FormData(e)), H.isFormData(e)) return r ? JSON.stringify(At(e)) : e;
|
|
547
|
+
if (H.isArrayBuffer(e) || H.isBuffer(e) || H.isStream(e) || H.isFile(e) || H.isBlob(e) || H.isReadableStream(e)) return e;
|
|
548
|
+
if (H.isArrayBufferView(e)) return e.buffer;
|
|
549
|
+
if (H.isURLSearchParams(e)) return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
550
550
|
let a;
|
|
551
551
|
if (i) {
|
|
552
|
-
let t =
|
|
553
|
-
if (n.indexOf("application/x-www-form-urlencoded") > -1) return
|
|
554
|
-
if ((a =
|
|
555
|
-
let n =
|
|
556
|
-
return
|
|
552
|
+
let t = jt(this, "formSerializer");
|
|
553
|
+
if (n.indexOf("application/x-www-form-urlencoded") > -1) return Dt(e, t).toString();
|
|
554
|
+
if ((a = H.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
|
|
555
|
+
let n = jt(this, "env"), r = n && n.FormData;
|
|
556
|
+
return ft(a ? { "files[]": e } : e, r && new r(), t);
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
return i || r ? (t.setContentType("application/json", !1),
|
|
559
|
+
return i || r ? (t.setContentType("application/json", !1), Mt(e)) : e;
|
|
560
560
|
}],
|
|
561
561
|
transformResponse: [function(e) {
|
|
562
|
-
let t =
|
|
563
|
-
if (
|
|
564
|
-
if (e &&
|
|
562
|
+
let t = jt(this, "transitional") || Nt.transitional, n = t && t.forcedJSONParsing, r = jt(this, "responseType"), i = r === "json";
|
|
563
|
+
if (H.isResponse(e) || H.isReadableStream(e)) return e;
|
|
564
|
+
if (e && H.isString(e) && (n && !r || i)) {
|
|
565
565
|
let n = !(t && t.silentJSONParsing) && i;
|
|
566
566
|
try {
|
|
567
|
-
return JSON.parse(e,
|
|
567
|
+
return JSON.parse(e, jt(this, "parseReviver"));
|
|
568
568
|
} catch (e) {
|
|
569
|
-
if (n) throw e.name === "SyntaxError" ?
|
|
569
|
+
if (n) throw e.name === "SyntaxError" ? U.from(e, U.ERR_BAD_RESPONSE, this, null, jt(this, "response")) : e;
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
572
|
return e;
|
|
@@ -577,8 +577,8 @@ var Pt = {
|
|
|
577
577
|
maxContentLength: -1,
|
|
578
578
|
maxBodyLength: -1,
|
|
579
579
|
env: {
|
|
580
|
-
FormData:
|
|
581
|
-
Blob:
|
|
580
|
+
FormData: W.classes.FormData,
|
|
581
|
+
Blob: W.classes.Blob
|
|
582
582
|
},
|
|
583
583
|
validateStatus: function(e) {
|
|
584
584
|
return e >= 200 && e < 300;
|
|
@@ -588,7 +588,7 @@ var Pt = {
|
|
|
588
588
|
"Content-Type": void 0
|
|
589
589
|
} }
|
|
590
590
|
};
|
|
591
|
-
|
|
591
|
+
H.forEach([
|
|
592
592
|
"delete",
|
|
593
593
|
"get",
|
|
594
594
|
"head",
|
|
@@ -596,11 +596,11 @@ V.forEach([
|
|
|
596
596
|
"put",
|
|
597
597
|
"patch"
|
|
598
598
|
], (e) => {
|
|
599
|
-
|
|
599
|
+
Nt.headers[e] = {};
|
|
600
600
|
});
|
|
601
601
|
//#endregion
|
|
602
602
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/helpers/parseHeaders.js
|
|
603
|
-
var
|
|
603
|
+
var Pt = H.toObjectSet([
|
|
604
604
|
"age",
|
|
605
605
|
"authorization",
|
|
606
606
|
"content-length",
|
|
@@ -618,13 +618,13 @@ var Ft = V.toObjectSet([
|
|
|
618
618
|
"referer",
|
|
619
619
|
"retry-after",
|
|
620
620
|
"user-agent"
|
|
621
|
-
]),
|
|
621
|
+
]), Ft = (e) => {
|
|
622
622
|
let t = {}, n, r, i;
|
|
623
623
|
return e && e.split("\n").forEach(function(e) {
|
|
624
|
-
i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] &&
|
|
624
|
+
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);
|
|
625
625
|
}), t;
|
|
626
|
-
},
|
|
627
|
-
function
|
|
626
|
+
}, It = Symbol("internals"), Lt = /[^\x09\x20-\x7E\x80-\xFF]/g;
|
|
627
|
+
function Rt(e) {
|
|
628
628
|
let t = 0, n = e.length;
|
|
629
629
|
for (; t < n;) {
|
|
630
630
|
let n = e.charCodeAt(t);
|
|
@@ -638,33 +638,33 @@ function zt(e) {
|
|
|
638
638
|
}
|
|
639
639
|
return t === 0 && n === e.length ? e : e.slice(t, n);
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function zt(e) {
|
|
642
642
|
return e && String(e).trim().toLowerCase();
|
|
643
643
|
}
|
|
644
|
+
function Bt(e) {
|
|
645
|
+
return Rt(e.replace(Lt, ""));
|
|
646
|
+
}
|
|
644
647
|
function Vt(e) {
|
|
645
|
-
return
|
|
648
|
+
return e === !1 || e == null ? e : H.isArray(e) ? e.map(Vt) : Bt(String(e));
|
|
646
649
|
}
|
|
647
650
|
function Ht(e) {
|
|
648
|
-
return e === !1 || e == null ? e : V.isArray(e) ? e.map(Ht) : Vt(String(e));
|
|
649
|
-
}
|
|
650
|
-
function Ut(e) {
|
|
651
651
|
let t = Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g, r;
|
|
652
652
|
for (; r = n.exec(e);) t[r[1]] = r[2];
|
|
653
653
|
return t;
|
|
654
654
|
}
|
|
655
|
-
var
|
|
656
|
-
function
|
|
657
|
-
if (
|
|
658
|
-
if (i && (t = n),
|
|
659
|
-
if (
|
|
660
|
-
if (
|
|
655
|
+
var Ut = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
656
|
+
function Wt(e, t, n, r, i) {
|
|
657
|
+
if (H.isFunction(r)) return r.call(this, t, n);
|
|
658
|
+
if (i && (t = n), H.isString(t)) {
|
|
659
|
+
if (H.isString(r)) return t.indexOf(r) !== -1;
|
|
660
|
+
if (H.isRegExp(r)) return r.test(t);
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function Gt(e) {
|
|
664
664
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, n) => t.toUpperCase() + n);
|
|
665
665
|
}
|
|
666
|
-
function
|
|
667
|
-
let n =
|
|
666
|
+
function Kt(e, t) {
|
|
667
|
+
let n = H.toCamelCase(" " + t);
|
|
668
668
|
[
|
|
669
669
|
"get",
|
|
670
670
|
"set",
|
|
@@ -678,79 +678,79 @@ function qt(e, t) {
|
|
|
678
678
|
});
|
|
679
679
|
});
|
|
680
680
|
}
|
|
681
|
-
var
|
|
681
|
+
var G = class {
|
|
682
682
|
constructor(e) {
|
|
683
683
|
e && this.set(e);
|
|
684
684
|
}
|
|
685
685
|
set(e, t, n) {
|
|
686
686
|
let r = this;
|
|
687
687
|
function i(e, t, n) {
|
|
688
|
-
let i =
|
|
688
|
+
let i = zt(t);
|
|
689
689
|
if (!i) throw Error("header name must be a non-empty string");
|
|
690
|
-
let a =
|
|
691
|
-
(!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (r[a || t] =
|
|
690
|
+
let a = H.findKey(r, i);
|
|
691
|
+
(!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (r[a || t] = Vt(e));
|
|
692
692
|
}
|
|
693
|
-
let a = (e, t) =>
|
|
694
|
-
if (
|
|
695
|
-
else if (
|
|
696
|
-
else if (
|
|
693
|
+
let a = (e, t) => H.forEach(e, (e, n) => i(e, n, t));
|
|
694
|
+
if (H.isPlainObject(e) || e instanceof this.constructor) a(e, t);
|
|
695
|
+
else if (H.isString(e) && (e = e.trim()) && !Ut(e)) a(Ft(e), t);
|
|
696
|
+
else if (H.isObject(e) && H.isIterable(e)) {
|
|
697
697
|
let n = {}, r, i;
|
|
698
698
|
for (let t of e) {
|
|
699
|
-
if (!
|
|
700
|
-
n[i = t[0]] = (r = n[i]) ?
|
|
699
|
+
if (!H.isArray(t)) throw TypeError("Object iterator must return a key-value pair");
|
|
700
|
+
n[i = t[0]] = (r = n[i]) ? H.isArray(r) ? [...r, t[1]] : [r, t[1]] : t[1];
|
|
701
701
|
}
|
|
702
702
|
a(n, t);
|
|
703
703
|
} else e != null && i(t, e, n);
|
|
704
704
|
return this;
|
|
705
705
|
}
|
|
706
706
|
get(e, t) {
|
|
707
|
-
if (e =
|
|
708
|
-
let n =
|
|
707
|
+
if (e = zt(e), e) {
|
|
708
|
+
let n = H.findKey(this, e);
|
|
709
709
|
if (n) {
|
|
710
710
|
let e = this[n];
|
|
711
711
|
if (!t) return e;
|
|
712
|
-
if (t === !0) return
|
|
713
|
-
if (
|
|
714
|
-
if (
|
|
712
|
+
if (t === !0) return Ht(e);
|
|
713
|
+
if (H.isFunction(t)) return t.call(this, e, n);
|
|
714
|
+
if (H.isRegExp(t)) return t.exec(e);
|
|
715
715
|
throw TypeError("parser must be boolean|regexp|function");
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
719
|
has(e, t) {
|
|
720
|
-
if (e =
|
|
721
|
-
let n =
|
|
722
|
-
return !!(n && this[n] !== void 0 && (!t ||
|
|
720
|
+
if (e = zt(e), e) {
|
|
721
|
+
let n = H.findKey(this, e);
|
|
722
|
+
return !!(n && this[n] !== void 0 && (!t || Wt(this, this[n], n, t)));
|
|
723
723
|
}
|
|
724
724
|
return !1;
|
|
725
725
|
}
|
|
726
726
|
delete(e, t) {
|
|
727
727
|
let n = this, r = !1;
|
|
728
728
|
function i(e) {
|
|
729
|
-
if (e =
|
|
730
|
-
let i =
|
|
731
|
-
i && (!t ||
|
|
729
|
+
if (e = zt(e), e) {
|
|
730
|
+
let i = H.findKey(n, e);
|
|
731
|
+
i && (!t || Wt(n, n[i], i, t)) && (delete n[i], r = !0);
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
|
-
return
|
|
734
|
+
return H.isArray(e) ? e.forEach(i) : i(e), r;
|
|
735
735
|
}
|
|
736
736
|
clear(e) {
|
|
737
737
|
let t = Object.keys(this), n = t.length, r = !1;
|
|
738
738
|
for (; n--;) {
|
|
739
739
|
let i = t[n];
|
|
740
|
-
(!e ||
|
|
740
|
+
(!e || Wt(this, this[i], i, e, !0)) && (delete this[i], r = !0);
|
|
741
741
|
}
|
|
742
742
|
return r;
|
|
743
743
|
}
|
|
744
744
|
normalize(e) {
|
|
745
745
|
let t = this, n = {};
|
|
746
|
-
return
|
|
747
|
-
let a =
|
|
746
|
+
return H.forEach(this, (r, i) => {
|
|
747
|
+
let a = H.findKey(n, i);
|
|
748
748
|
if (a) {
|
|
749
|
-
t[a] =
|
|
749
|
+
t[a] = Vt(r), delete t[i];
|
|
750
750
|
return;
|
|
751
751
|
}
|
|
752
|
-
let o = e ?
|
|
753
|
-
o !== i && delete t[i], t[o] =
|
|
752
|
+
let o = e ? Gt(i) : String(i).trim();
|
|
753
|
+
o !== i && delete t[i], t[o] = Vt(r), n[o] = !0;
|
|
754
754
|
}), this;
|
|
755
755
|
}
|
|
756
756
|
concat(...e) {
|
|
@@ -758,8 +758,8 @@ var W = class {
|
|
|
758
758
|
}
|
|
759
759
|
toJSON(e) {
|
|
760
760
|
let t = Object.create(null);
|
|
761
|
-
return
|
|
762
|
-
n != null && n !== !1 && (t[r] = e &&
|
|
761
|
+
return H.forEach(this, (n, r) => {
|
|
762
|
+
n != null && n !== !1 && (t[r] = e && H.isArray(n) ? n.join(", ") : n);
|
|
763
763
|
}), t;
|
|
764
764
|
}
|
|
765
765
|
[Symbol.iterator]() {
|
|
@@ -782,22 +782,22 @@ var W = class {
|
|
|
782
782
|
return t.forEach((e) => n.set(e)), n;
|
|
783
783
|
}
|
|
784
784
|
static accessor(e) {
|
|
785
|
-
let t = (this[
|
|
785
|
+
let t = (this[It] = this[It] = { accessors: {} }).accessors, n = this.prototype;
|
|
786
786
|
function r(e) {
|
|
787
|
-
let r =
|
|
788
|
-
t[r] || (
|
|
787
|
+
let r = zt(e);
|
|
788
|
+
t[r] || (Kt(n, e), t[r] = !0);
|
|
789
789
|
}
|
|
790
|
-
return
|
|
790
|
+
return H.isArray(e) ? e.forEach(r) : r(e), this;
|
|
791
791
|
}
|
|
792
792
|
};
|
|
793
|
-
|
|
793
|
+
G.accessor([
|
|
794
794
|
"Content-Type",
|
|
795
795
|
"Content-Length",
|
|
796
796
|
"Accept",
|
|
797
797
|
"Accept-Encoding",
|
|
798
798
|
"User-Agent",
|
|
799
799
|
"Authorization"
|
|
800
|
-
]),
|
|
800
|
+
]), H.reduceDescriptors(G.prototype, ({ value: e }, t) => {
|
|
801
801
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
802
802
|
return {
|
|
803
803
|
get: () => e,
|
|
@@ -805,42 +805,42 @@ W.accessor([
|
|
|
805
805
|
this[n] = e;
|
|
806
806
|
}
|
|
807
807
|
};
|
|
808
|
-
}),
|
|
808
|
+
}), H.freezeMethods(G);
|
|
809
809
|
//#endregion
|
|
810
810
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/core/transformData.js
|
|
811
|
-
function
|
|
812
|
-
let n = this ||
|
|
813
|
-
return
|
|
811
|
+
function qt(e, t) {
|
|
812
|
+
let n = this || Nt, r = t || n, i = G.from(r.headers), a = r.data;
|
|
813
|
+
return H.forEach(e, function(e) {
|
|
814
814
|
a = e.call(n, a, i.normalize(), t ? t.status : void 0);
|
|
815
815
|
}), i.normalize(), a;
|
|
816
816
|
}
|
|
817
817
|
//#endregion
|
|
818
818
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/cancel/isCancel.js
|
|
819
|
-
function
|
|
819
|
+
function Jt(e) {
|
|
820
820
|
return !!(e && e.__CANCEL__);
|
|
821
821
|
}
|
|
822
822
|
//#endregion
|
|
823
823
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/cancel/CanceledError.js
|
|
824
|
-
var
|
|
824
|
+
var Yt = class extends U {
|
|
825
825
|
constructor(e, t, n) {
|
|
826
|
-
super(e ?? "canceled",
|
|
826
|
+
super(e ?? "canceled", U.ERR_CANCELED, t, n), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
827
827
|
}
|
|
828
828
|
};
|
|
829
829
|
//#endregion
|
|
830
830
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/core/settle.js
|
|
831
|
-
function
|
|
831
|
+
function Xt(e, t, n) {
|
|
832
832
|
let r = n.config.validateStatus;
|
|
833
|
-
!n.status || !r || r(n.status) ? e(n) : t(new
|
|
833
|
+
!n.status || !r || r(n.status) ? e(n) : t(new U("Request failed with status code " + n.status, [U.ERR_BAD_REQUEST, U.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], n.config, n.request, n));
|
|
834
834
|
}
|
|
835
835
|
//#endregion
|
|
836
836
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/helpers/parseProtocol.js
|
|
837
|
-
function
|
|
837
|
+
function Zt(e) {
|
|
838
838
|
let t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
839
839
|
return t && t[1] || "";
|
|
840
840
|
}
|
|
841
841
|
//#endregion
|
|
842
842
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/helpers/speedometer.js
|
|
843
|
-
function
|
|
843
|
+
function Qt(e, t) {
|
|
844
844
|
e ||= 10;
|
|
845
845
|
let n = Array(e), r = Array(e), i = 0, a = 0, o;
|
|
846
846
|
return t = t === void 0 ? 1e3 : t, function(s) {
|
|
@@ -855,7 +855,7 @@ function $t(e, t) {
|
|
|
855
855
|
}
|
|
856
856
|
//#endregion
|
|
857
857
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/helpers/throttle.js
|
|
858
|
-
function
|
|
858
|
+
function $t(e, t) {
|
|
859
859
|
let n = 0, r = 1e3 / t, i, a, o = (t, r = Date.now()) => {
|
|
860
860
|
n = r, i = null, a &&= (clearTimeout(a), null), e(...t);
|
|
861
861
|
};
|
|
@@ -868,9 +868,9 @@ function en(e, t) {
|
|
|
868
868
|
}
|
|
869
869
|
//#endregion
|
|
870
870
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/helpers/progressEventReducer.js
|
|
871
|
-
var
|
|
872
|
-
let r = 0, i =
|
|
873
|
-
return
|
|
871
|
+
var en = (e, t, n = 3) => {
|
|
872
|
+
let r = 0, i = Qt(50, 250);
|
|
873
|
+
return $t((n) => {
|
|
874
874
|
let a = n.loaded, o = n.lengthComputable ? n.total : void 0, s = o == null ? a : Math.min(a, o), c = Math.max(0, s - r), l = i(c);
|
|
875
875
|
r = Math.max(r, s), e({
|
|
876
876
|
loaded: s,
|
|
@@ -884,18 +884,18 @@ var tn = (e, t, n = 3) => {
|
|
|
884
884
|
[t ? "download" : "upload"]: !0
|
|
885
885
|
});
|
|
886
886
|
}, n);
|
|
887
|
-
},
|
|
887
|
+
}, tn = (e, t) => {
|
|
888
888
|
let n = e != null;
|
|
889
889
|
return [(r) => t[0]({
|
|
890
890
|
lengthComputable: n,
|
|
891
891
|
total: e,
|
|
892
892
|
loaded: r
|
|
893
893
|
}), t[1]];
|
|
894
|
-
},
|
|
894
|
+
}, nn = (e) => (...t) => H.asap(() => e(...t)), rn = W.hasStandardBrowserEnv ? ((e, t) => (n) => (n = new URL(n, W.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(new URL(W.origin), W.navigator && /(msie|trident)/i.test(W.navigator.userAgent)) : () => !0, an = W.hasStandardBrowserEnv ? {
|
|
895
895
|
write(e, t, n, r, i, a, o) {
|
|
896
896
|
if (typeof document > "u") return;
|
|
897
897
|
let s = [`${e}=${encodeURIComponent(t)}`];
|
|
898
|
-
|
|
898
|
+
H.isNumber(n) && s.push(`expires=${new Date(n).toUTCString()}`), H.isString(r) && s.push(`path=${r}`), H.isString(i) && s.push(`domain=${i}`), a === !0 && s.push("secure"), H.isString(o) && s.push(`SameSite=${o}`), document.cookie = s.join("; ");
|
|
899
899
|
},
|
|
900
900
|
read(e) {
|
|
901
901
|
if (typeof document > "u") return null;
|
|
@@ -914,24 +914,24 @@ var tn = (e, t, n = 3) => {
|
|
|
914
914
|
};
|
|
915
915
|
//#endregion
|
|
916
916
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
917
|
-
function
|
|
917
|
+
function on(e) {
|
|
918
918
|
return typeof e == "string" ? /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) : !1;
|
|
919
919
|
}
|
|
920
920
|
//#endregion
|
|
921
921
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/helpers/combineURLs.js
|
|
922
|
-
function
|
|
922
|
+
function sn(e, t) {
|
|
923
923
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
924
924
|
}
|
|
925
925
|
//#endregion
|
|
926
926
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/core/buildFullPath.js
|
|
927
|
-
function
|
|
928
|
-
let r = !
|
|
929
|
-
return e && (r || n === !1) ?
|
|
927
|
+
function cn(e, t, n) {
|
|
928
|
+
let r = !on(t);
|
|
929
|
+
return e && (r || n === !1) ? sn(e, t) : t;
|
|
930
930
|
}
|
|
931
931
|
//#endregion
|
|
932
932
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/core/mergeConfig.js
|
|
933
|
-
var
|
|
934
|
-
function
|
|
933
|
+
var ln = (e) => e instanceof G ? { ...e } : e;
|
|
934
|
+
function un(e, t) {
|
|
935
935
|
t ||= {};
|
|
936
936
|
let n = Object.create(null);
|
|
937
937
|
Object.defineProperty(n, "hasOwnProperty", {
|
|
@@ -941,22 +941,22 @@ function dn(e, t) {
|
|
|
941
941
|
configurable: !0
|
|
942
942
|
});
|
|
943
943
|
function r(e, t, n, r) {
|
|
944
|
-
return
|
|
944
|
+
return H.isPlainObject(e) && H.isPlainObject(t) ? H.merge.call({ caseless: r }, e, t) : H.isPlainObject(t) ? H.merge({}, t) : H.isArray(t) ? t.slice() : t;
|
|
945
945
|
}
|
|
946
946
|
function i(e, t, n, i) {
|
|
947
|
-
if (!
|
|
948
|
-
if (!
|
|
947
|
+
if (!H.isUndefined(t)) return r(e, t, n, i);
|
|
948
|
+
if (!H.isUndefined(e)) return r(void 0, e, n, i);
|
|
949
949
|
}
|
|
950
950
|
function a(e, t) {
|
|
951
|
-
if (!
|
|
951
|
+
if (!H.isUndefined(t)) return r(void 0, t);
|
|
952
952
|
}
|
|
953
953
|
function o(e, t) {
|
|
954
|
-
if (!
|
|
955
|
-
if (!
|
|
954
|
+
if (!H.isUndefined(t)) return r(void 0, t);
|
|
955
|
+
if (!H.isUndefined(e)) return r(void 0, e);
|
|
956
956
|
}
|
|
957
957
|
function s(n, i, a) {
|
|
958
|
-
if (
|
|
959
|
-
if (
|
|
958
|
+
if (H.hasOwnProp(t, a)) return r(n, i);
|
|
959
|
+
if (H.hasOwnProp(e, a)) return r(void 0, n);
|
|
960
960
|
}
|
|
961
961
|
let c = {
|
|
962
962
|
url: a,
|
|
@@ -988,38 +988,38 @@ function dn(e, t) {
|
|
|
988
988
|
allowedSocketPaths: o,
|
|
989
989
|
responseEncoding: o,
|
|
990
990
|
validateStatus: s,
|
|
991
|
-
headers: (e, t, n) => i(
|
|
991
|
+
headers: (e, t, n) => i(ln(e), ln(t), n, !0)
|
|
992
992
|
};
|
|
993
|
-
return
|
|
993
|
+
return H.forEach(Object.keys({
|
|
994
994
|
...e,
|
|
995
995
|
...t
|
|
996
996
|
}), function(r) {
|
|
997
997
|
if (r === "__proto__" || r === "constructor" || r === "prototype") return;
|
|
998
|
-
let a =
|
|
999
|
-
|
|
998
|
+
let a = H.hasOwnProp(c, r) ? c[r] : i, o = a(H.hasOwnProp(e, r) ? e[r] : void 0, H.hasOwnProp(t, r) ? t[r] : void 0, r);
|
|
999
|
+
H.isUndefined(o) && a !== s || (n[r] = o);
|
|
1000
1000
|
}), n;
|
|
1001
1001
|
}
|
|
1002
1002
|
//#endregion
|
|
1003
1003
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/helpers/resolveConfig.js
|
|
1004
|
-
var
|
|
1005
|
-
let t =
|
|
1006
|
-
if (t.headers = s =
|
|
1007
|
-
if (
|
|
1008
|
-
else if (
|
|
1004
|
+
var dn = (e) => {
|
|
1005
|
+
let t = un({}, e), n = (e) => H.hasOwnProp(t, e) ? t[e] : void 0, r = n("data"), i = n("withXSRFToken"), a = n("xsrfHeaderName"), o = n("xsrfCookieName"), s = n("headers"), c = n("auth"), l = n("baseURL"), u = n("allowAbsoluteUrls"), d = n("url");
|
|
1006
|
+
if (t.headers = s = G.from(s), t.url = _t(cn(l, d, u), e.params, e.paramsSerializer), c && s.set("Authorization", "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))), H.isFormData(r)) {
|
|
1007
|
+
if (W.hasStandardBrowserEnv || W.hasStandardBrowserWebWorkerEnv) s.setContentType(void 0);
|
|
1008
|
+
else if (H.isFunction(r.getHeaders)) {
|
|
1009
1009
|
let e = r.getHeaders(), t = ["content-type", "content-length"];
|
|
1010
1010
|
Object.entries(e).forEach(([e, n]) => {
|
|
1011
1011
|
t.includes(e.toLowerCase()) && s.set(e, n);
|
|
1012
1012
|
});
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
|
-
if (
|
|
1016
|
-
let e = a && o &&
|
|
1015
|
+
if (W.hasStandardBrowserEnv && (H.isFunction(i) && (i = i(t)), i === !0 || i == null && rn(t.url))) {
|
|
1016
|
+
let e = a && o && an.read(o);
|
|
1017
1017
|
e && s.set(a, e);
|
|
1018
1018
|
}
|
|
1019
1019
|
return t;
|
|
1020
|
-
},
|
|
1020
|
+
}, fn = typeof XMLHttpRequest < "u" && function(e) {
|
|
1021
1021
|
return new Promise(function(t, n) {
|
|
1022
|
-
let r =
|
|
1022
|
+
let r = dn(e), i = r.data, a = G.from(r.headers).normalize(), { responseType: o, onUploadProgress: s, onDownloadProgress: c } = r, l, u, d, f, p;
|
|
1023
1023
|
function m() {
|
|
1024
1024
|
f && f(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(l), r.signal && r.signal.removeEventListener("abort", l);
|
|
1025
1025
|
}
|
|
@@ -1027,8 +1027,8 @@ var fn = (e) => {
|
|
|
1027
1027
|
h.open(r.method.toUpperCase(), r.url, !0), h.timeout = r.timeout;
|
|
1028
1028
|
function g() {
|
|
1029
1029
|
if (!h) return;
|
|
1030
|
-
let r =
|
|
1031
|
-
|
|
1030
|
+
let r = G.from("getAllResponseHeaders" in h && h.getAllResponseHeaders());
|
|
1031
|
+
Xt(function(e) {
|
|
1032
1032
|
t(e), m();
|
|
1033
1033
|
}, function(e) {
|
|
1034
1034
|
n(e), m();
|
|
@@ -1044,36 +1044,36 @@ var fn = (e) => {
|
|
|
1044
1044
|
"onloadend" in h ? h.onloadend = g : h.onreadystatechange = function() {
|
|
1045
1045
|
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(g);
|
|
1046
1046
|
}, h.onabort = function() {
|
|
1047
|
-
h &&= (n(new
|
|
1047
|
+
h &&= (n(new U("Request aborted", U.ECONNABORTED, e, h)), null);
|
|
1048
1048
|
}, h.onerror = function(t) {
|
|
1049
|
-
let r = new
|
|
1049
|
+
let r = new U(t && t.message ? t.message : "Network Error", U.ERR_NETWORK, e, h);
|
|
1050
1050
|
r.event = t || null, n(r), h = null;
|
|
1051
1051
|
}, h.ontimeout = function() {
|
|
1052
|
-
let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional ||
|
|
1053
|
-
r.timeoutErrorMessage && (t = r.timeoutErrorMessage), n(new
|
|
1054
|
-
}, i === void 0 && a.setContentType(null), "setRequestHeader" in h &&
|
|
1052
|
+
let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional || yt;
|
|
1053
|
+
r.timeoutErrorMessage && (t = r.timeoutErrorMessage), n(new U(t, i.clarifyTimeoutError ? U.ETIMEDOUT : U.ECONNABORTED, e, h)), h = null;
|
|
1054
|
+
}, i === void 0 && a.setContentType(null), "setRequestHeader" in h && H.forEach(a.toJSON(), function(e, t) {
|
|
1055
1055
|
h.setRequestHeader(t, e);
|
|
1056
|
-
}),
|
|
1057
|
-
h &&= (n(!t || t.type ? new
|
|
1056
|
+
}), H.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) => {
|
|
1057
|
+
h &&= (n(!t || t.type ? new Yt(null, e, h) : t), h.abort(), null);
|
|
1058
1058
|
}, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
|
|
1059
|
-
let _ =
|
|
1060
|
-
if (_ &&
|
|
1061
|
-
n(new
|
|
1059
|
+
let _ = Zt(r.url);
|
|
1060
|
+
if (_ && W.protocols.indexOf(_) === -1) {
|
|
1061
|
+
n(new U("Unsupported protocol " + _ + ":", U.ERR_BAD_REQUEST, e));
|
|
1062
1062
|
return;
|
|
1063
1063
|
}
|
|
1064
1064
|
h.send(i || null);
|
|
1065
1065
|
});
|
|
1066
|
-
},
|
|
1066
|
+
}, pn = (e, t) => {
|
|
1067
1067
|
let { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1068
1068
|
if (t || n) {
|
|
1069
1069
|
let n = new AbortController(), r, i = function(e) {
|
|
1070
1070
|
if (!r) {
|
|
1071
1071
|
r = !0, o();
|
|
1072
1072
|
let t = e instanceof Error ? e : this.reason;
|
|
1073
|
-
n.abort(t instanceof
|
|
1073
|
+
n.abort(t instanceof U ? t : new Yt(t instanceof Error ? t.message : t));
|
|
1074
1074
|
}
|
|
1075
1075
|
}, a = t && setTimeout(() => {
|
|
1076
|
-
a = null, i(new
|
|
1076
|
+
a = null, i(new U(`timeout of ${t}ms exceeded`, U.ETIMEDOUT));
|
|
1077
1077
|
}, t), o = () => {
|
|
1078
1078
|
e &&= (a && clearTimeout(a), a = null, e.forEach((e) => {
|
|
1079
1079
|
e.unsubscribe ? e.unsubscribe(i) : e.removeEventListener("abort", i);
|
|
@@ -1081,9 +1081,9 @@ var fn = (e) => {
|
|
|
1081
1081
|
};
|
|
1082
1082
|
e.forEach((e) => e.addEventListener("abort", i));
|
|
1083
1083
|
let { signal: s } = n;
|
|
1084
|
-
return s.unsubscribe = () =>
|
|
1084
|
+
return s.unsubscribe = () => H.asap(o), s;
|
|
1085
1085
|
}
|
|
1086
|
-
},
|
|
1086
|
+
}, mn = function* (e, t) {
|
|
1087
1087
|
let n = e.byteLength;
|
|
1088
1088
|
if (!t || n < t) {
|
|
1089
1089
|
yield e;
|
|
@@ -1091,9 +1091,9 @@ var fn = (e) => {
|
|
|
1091
1091
|
}
|
|
1092
1092
|
let r = 0, i;
|
|
1093
1093
|
for (; r < n;) i = r + t, yield e.slice(r, i), r = i;
|
|
1094
|
-
},
|
|
1095
|
-
for await (let n of
|
|
1096
|
-
},
|
|
1094
|
+
}, hn = async function* (e, t) {
|
|
1095
|
+
for await (let n of gn(e)) yield* mn(n, t);
|
|
1096
|
+
}, gn = async function* (e) {
|
|
1097
1097
|
if (e[Symbol.asyncIterator]) {
|
|
1098
1098
|
yield* e;
|
|
1099
1099
|
return;
|
|
@@ -1108,8 +1108,8 @@ var fn = (e) => {
|
|
|
1108
1108
|
} finally {
|
|
1109
1109
|
await t.cancel();
|
|
1110
1110
|
}
|
|
1111
|
-
},
|
|
1112
|
-
let i =
|
|
1111
|
+
}, _n = (e, t, n, r) => {
|
|
1112
|
+
let i = hn(e, t), a = 0, o, s = (e) => {
|
|
1113
1113
|
o || (o = !0, r && r(e));
|
|
1114
1114
|
};
|
|
1115
1115
|
return new ReadableStream({
|
|
@@ -1130,29 +1130,29 @@ var fn = (e) => {
|
|
|
1130
1130
|
return s(e), i.return();
|
|
1131
1131
|
}
|
|
1132
1132
|
}, { highWaterMark: 2 });
|
|
1133
|
-
},
|
|
1133
|
+
}, vn = 64 * 1024, { isFunction: yn } = H, bn = (({ Request: e, Response: t }) => ({
|
|
1134
1134
|
Request: e,
|
|
1135
1135
|
Response: t
|
|
1136
|
-
}))(
|
|
1136
|
+
}))(H.global), { ReadableStream: xn, TextEncoder: Sn } = H.global, Cn = (e, ...t) => {
|
|
1137
1137
|
try {
|
|
1138
1138
|
return !!e(...t);
|
|
1139
1139
|
} catch {
|
|
1140
1140
|
return !1;
|
|
1141
1141
|
}
|
|
1142
|
-
},
|
|
1143
|
-
e =
|
|
1144
|
-
let { fetch: t, Request: n, Response: r } = e, i = t ?
|
|
1142
|
+
}, wn = (e) => {
|
|
1143
|
+
e = H.merge.call({ skipUndefined: !0 }, bn, e);
|
|
1144
|
+
let { fetch: t, Request: n, Response: r } = e, i = t ? yn(t) : typeof fetch == "function", a = yn(n), o = yn(r);
|
|
1145
1145
|
if (!i) return !1;
|
|
1146
|
-
let s = i &&
|
|
1147
|
-
let e = !1, t = new n(
|
|
1148
|
-
body: new
|
|
1146
|
+
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(() => {
|
|
1147
|
+
let e = !1, t = new n(W.origin, {
|
|
1148
|
+
body: new xn(),
|
|
1149
1149
|
method: "POST",
|
|
1150
1150
|
get duplex() {
|
|
1151
1151
|
return e = !0, "half";
|
|
1152
1152
|
}
|
|
1153
1153
|
}), r = t.headers.has("Content-Type");
|
|
1154
1154
|
return t.body != null && t.body.cancel(), e && !r;
|
|
1155
|
-
}), u = o && s &&
|
|
1155
|
+
}), u = o && s && Cn(() => H.isReadableStream(new r("").body)), d = { stream: u && ((e) => e.body) };
|
|
1156
1156
|
i && [
|
|
1157
1157
|
"text",
|
|
1158
1158
|
"arrayBuffer",
|
|
@@ -1163,23 +1163,23 @@ var fn = (e) => {
|
|
|
1163
1163
|
!d[e] && (d[e] = (t, n) => {
|
|
1164
1164
|
let r = t && t[e];
|
|
1165
1165
|
if (r) return r.call(t);
|
|
1166
|
-
throw new
|
|
1166
|
+
throw new U(`Response type '${e}' is not supported`, U.ERR_NOT_SUPPORT, n);
|
|
1167
1167
|
});
|
|
1168
1168
|
});
|
|
1169
1169
|
let f = async (e) => {
|
|
1170
1170
|
if (e == null) return 0;
|
|
1171
|
-
if (
|
|
1172
|
-
if (
|
|
1171
|
+
if (H.isBlob(e)) return e.size;
|
|
1172
|
+
if (H.isSpecCompliantForm(e)) return (await new n(W.origin, {
|
|
1173
1173
|
method: "POST",
|
|
1174
1174
|
body: e
|
|
1175
1175
|
}).arrayBuffer()).byteLength;
|
|
1176
|
-
if (
|
|
1177
|
-
if (
|
|
1178
|
-
}, p = async (e, t) =>
|
|
1176
|
+
if (H.isArrayBufferView(e) || H.isArrayBuffer(e)) return e.byteLength;
|
|
1177
|
+
if (H.isURLSearchParams(e) && (e += ""), H.isString(e)) return (await c(e)).byteLength;
|
|
1178
|
+
}, p = async (e, t) => H.toFiniteNumber(e.getContentLength()) ?? f(t);
|
|
1179
1179
|
return async (e) => {
|
|
1180
|
-
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 } =
|
|
1180
|
+
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;
|
|
1181
1181
|
_ = _ ? (_ + "").toLowerCase() : "text";
|
|
1182
|
-
let S =
|
|
1182
|
+
let S = pn([c, f && f.toAbortSignal()], m), C = null, w = S && S.unsubscribe && (() => {
|
|
1183
1183
|
S.unsubscribe();
|
|
1184
1184
|
}), T;
|
|
1185
1185
|
try {
|
|
@@ -1189,14 +1189,14 @@ var fn = (e) => {
|
|
|
1189
1189
|
body: s,
|
|
1190
1190
|
duplex: "half"
|
|
1191
1191
|
}), t;
|
|
1192
|
-
if (
|
|
1193
|
-
let [t, n] =
|
|
1194
|
-
s =
|
|
1192
|
+
if (H.isFormData(s) && (t = e.headers.get("content-type")) && v.setContentType(t), e.body) {
|
|
1193
|
+
let [t, n] = tn(T, en(nn(g)));
|
|
1194
|
+
s = _n(e.body, vn, t, n);
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
1197
|
-
|
|
1197
|
+
H.isString(y) || (y = y ? "include" : "omit");
|
|
1198
1198
|
let t = a && "credentials" in n.prototype;
|
|
1199
|
-
if (
|
|
1199
|
+
if (H.isFormData(s)) {
|
|
1200
1200
|
let e = v.getContentType();
|
|
1201
1201
|
e && /^multipart\/form-data/i.test(e) && !/boundary=/i.test(e) && v.delete("content-type");
|
|
1202
1202
|
}
|
|
@@ -1220,17 +1220,17 @@ var fn = (e) => {
|
|
|
1220
1220
|
].forEach((t) => {
|
|
1221
1221
|
e[t] = f[t];
|
|
1222
1222
|
});
|
|
1223
|
-
let t =
|
|
1224
|
-
f = new r(
|
|
1223
|
+
let t = H.toFiniteNumber(f.headers.get("content-length")), [n, i] = h && tn(t, en(nn(h), !0)) || [];
|
|
1224
|
+
f = new r(_n(f.body, vn, n, () => {
|
|
1225
1225
|
i && i(), w && w();
|
|
1226
1226
|
}), e);
|
|
1227
1227
|
}
|
|
1228
1228
|
_ ||= "text";
|
|
1229
|
-
let E = await d[
|
|
1229
|
+
let E = await d[H.findKey(d, _) || "text"](f, e);
|
|
1230
1230
|
return !m && w && w(), await new Promise((t, n) => {
|
|
1231
|
-
|
|
1231
|
+
Xt(t, n, {
|
|
1232
1232
|
data: E,
|
|
1233
|
-
headers:
|
|
1233
|
+
headers: G.from(f.headers),
|
|
1234
1234
|
status: f.status,
|
|
1235
1235
|
statusText: f.statusText,
|
|
1236
1236
|
config: e,
|
|
@@ -1238,27 +1238,27 @@ var fn = (e) => {
|
|
|
1238
1238
|
});
|
|
1239
1239
|
});
|
|
1240
1240
|
} catch (t) {
|
|
1241
|
-
throw w && w(), t && t.name === "TypeError" && /Load failed|fetch/i.test(t.message) ? Object.assign(new
|
|
1241
|
+
throw w && w(), t && t.name === "TypeError" && /Load failed|fetch/i.test(t.message) ? Object.assign(new U("Network Error", U.ERR_NETWORK, e, C, t && t.response), { cause: t.cause || t }) : U.from(t, t && t.code, e, C, t && t.response);
|
|
1242
1242
|
}
|
|
1243
1243
|
};
|
|
1244
|
-
},
|
|
1244
|
+
}, Tn = /* @__PURE__ */ new Map(), En = (e) => {
|
|
1245
1245
|
let t = e && e.env || {}, { fetch: n, Request: r, Response: i } = t, a = [
|
|
1246
1246
|
r,
|
|
1247
1247
|
i,
|
|
1248
1248
|
n
|
|
1249
|
-
], o = a.length, s, c, l =
|
|
1250
|
-
for (; o--;) s = a[o], c = l.get(s), c === void 0 && l.set(s, c = o ? /* @__PURE__ */ new Map() :
|
|
1249
|
+
], o = a.length, s, c, l = Tn;
|
|
1250
|
+
for (; o--;) s = a[o], c = l.get(s), c === void 0 && l.set(s, c = o ? /* @__PURE__ */ new Map() : wn(t)), l = c;
|
|
1251
1251
|
return c;
|
|
1252
1252
|
};
|
|
1253
|
-
|
|
1253
|
+
En();
|
|
1254
1254
|
//#endregion
|
|
1255
1255
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/adapters/adapters.js
|
|
1256
|
-
var
|
|
1256
|
+
var Dn = {
|
|
1257
1257
|
http: null,
|
|
1258
|
-
xhr:
|
|
1259
|
-
fetch: { get:
|
|
1258
|
+
xhr: fn,
|
|
1259
|
+
fetch: { get: En }
|
|
1260
1260
|
};
|
|
1261
|
-
|
|
1261
|
+
H.forEach(Dn, (e, t) => {
|
|
1262
1262
|
if (e) {
|
|
1263
1263
|
try {
|
|
1264
1264
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1266,46 +1266,46 @@ V.forEach(On, (e, t) => {
|
|
|
1266
1266
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1267
1267
|
}
|
|
1268
1268
|
});
|
|
1269
|
-
var
|
|
1270
|
-
function
|
|
1271
|
-
e =
|
|
1269
|
+
var On = (e) => `- ${e}`, kn = (e) => H.isFunction(e) || e === null || e === !1;
|
|
1270
|
+
function An(e, t) {
|
|
1271
|
+
e = H.isArray(e) ? e : [e];
|
|
1272
1272
|
let { length: n } = e, r, i, a = {};
|
|
1273
1273
|
for (let o = 0; o < n; o++) {
|
|
1274
1274
|
r = e[o];
|
|
1275
1275
|
let n;
|
|
1276
|
-
if (i = r, !
|
|
1277
|
-
if (i && (
|
|
1276
|
+
if (i = r, !kn(r) && (i = Dn[(n = String(r)).toLowerCase()], i === void 0)) throw new U(`Unknown adapter '${n}'`);
|
|
1277
|
+
if (i && (H.isFunction(i) || (i = i.get(t)))) break;
|
|
1278
1278
|
a[n || "#" + o] = i;
|
|
1279
1279
|
}
|
|
1280
1280
|
if (!i) {
|
|
1281
1281
|
let e = Object.entries(a).map(([e, t]) => `adapter ${e} ` + (t === !1 ? "is not supported by the environment" : "is not available in the build"));
|
|
1282
|
-
throw new
|
|
1282
|
+
throw new U("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");
|
|
1283
1283
|
}
|
|
1284
1284
|
return i;
|
|
1285
1285
|
}
|
|
1286
|
-
var
|
|
1287
|
-
getAdapter:
|
|
1288
|
-
adapters:
|
|
1286
|
+
var jn = {
|
|
1287
|
+
getAdapter: An,
|
|
1288
|
+
adapters: Dn
|
|
1289
1289
|
};
|
|
1290
1290
|
//#endregion
|
|
1291
1291
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/core/dispatchRequest.js
|
|
1292
|
-
function
|
|
1293
|
-
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new
|
|
1292
|
+
function Mn(e) {
|
|
1293
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new Yt(null, e);
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1296
|
-
return
|
|
1295
|
+
function Nn(e) {
|
|
1296
|
+
return Mn(e), e.headers = G.from(e.headers), e.data = qt.call(e, e.transformRequest), [
|
|
1297
1297
|
"post",
|
|
1298
1298
|
"put",
|
|
1299
1299
|
"patch"
|
|
1300
|
-
].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1301
|
-
return
|
|
1300
|
+
].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), jn.getAdapter(e.adapter || Nt.adapter, e)(e).then(function(t) {
|
|
1301
|
+
return Mn(e), t.data = qt.call(e, e.transformResponse, t), t.headers = G.from(t.headers), t;
|
|
1302
1302
|
}, function(t) {
|
|
1303
|
-
return
|
|
1303
|
+
return Jt(t) || (Mn(e), t && t.response && (t.response.data = qt.call(e, e.transformResponse, t.response), t.response.headers = G.from(t.response.headers))), Promise.reject(t);
|
|
1304
1304
|
});
|
|
1305
1305
|
}
|
|
1306
1306
|
//#endregion
|
|
1307
1307
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/env/data.js
|
|
1308
|
-
var
|
|
1308
|
+
var Pn = "1.15.2", Fn = {};
|
|
1309
1309
|
[
|
|
1310
1310
|
"object",
|
|
1311
1311
|
"boolean",
|
|
@@ -1314,43 +1314,43 @@ var Fn = "1.15.2", In = {};
|
|
|
1314
1314
|
"string",
|
|
1315
1315
|
"symbol"
|
|
1316
1316
|
].forEach((e, t) => {
|
|
1317
|
-
|
|
1317
|
+
Fn[e] = function(n) {
|
|
1318
1318
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1319
1319
|
};
|
|
1320
1320
|
});
|
|
1321
|
-
var
|
|
1322
|
-
|
|
1321
|
+
var In = {};
|
|
1322
|
+
Fn.transitional = function(e, t, n) {
|
|
1323
1323
|
function r(e, t) {
|
|
1324
|
-
return "[Axios v" +
|
|
1324
|
+
return "[Axios v" + Pn + "] Transitional option '" + e + "'" + t + (n ? ". " + n : "");
|
|
1325
1325
|
}
|
|
1326
1326
|
return (n, i, a) => {
|
|
1327
|
-
if (e === !1) throw new
|
|
1328
|
-
return t && !
|
|
1327
|
+
if (e === !1) throw new U(r(i, " has been removed" + (t ? " in " + t : "")), U.ERR_DEPRECATED);
|
|
1328
|
+
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;
|
|
1329
1329
|
};
|
|
1330
|
-
},
|
|
1330
|
+
}, Fn.spelling = function(e) {
|
|
1331
1331
|
return (t, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
|
|
1332
1332
|
};
|
|
1333
|
-
function
|
|
1334
|
-
if (typeof e != "object") throw new
|
|
1333
|
+
function Ln(e, t, n) {
|
|
1334
|
+
if (typeof e != "object") throw new U("options must be an object", U.ERR_BAD_OPTION_VALUE);
|
|
1335
1335
|
let r = Object.keys(e), i = r.length;
|
|
1336
1336
|
for (; i-- > 0;) {
|
|
1337
1337
|
let a = r[i], o = Object.prototype.hasOwnProperty.call(t, a) ? t[a] : void 0;
|
|
1338
1338
|
if (o) {
|
|
1339
1339
|
let t = e[a], n = t === void 0 || o(t, a, e);
|
|
1340
|
-
if (n !== !0) throw new
|
|
1340
|
+
if (n !== !0) throw new U("option " + a + " must be " + n, U.ERR_BAD_OPTION_VALUE);
|
|
1341
1341
|
continue;
|
|
1342
1342
|
}
|
|
1343
|
-
if (n !== !0) throw new
|
|
1343
|
+
if (n !== !0) throw new U("Unknown option " + a, U.ERR_BAD_OPTION);
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
|
-
var
|
|
1347
|
-
assertOptions:
|
|
1348
|
-
validators:
|
|
1349
|
-
},
|
|
1346
|
+
var Rn = {
|
|
1347
|
+
assertOptions: Ln,
|
|
1348
|
+
validators: Fn
|
|
1349
|
+
}, zn = Rn.validators, Bn = class {
|
|
1350
1350
|
constructor(e) {
|
|
1351
1351
|
this.defaults = e || {}, this.interceptors = {
|
|
1352
|
-
request: new
|
|
1353
|
-
response: new
|
|
1352
|
+
request: new vt(),
|
|
1353
|
+
response: new vt()
|
|
1354
1354
|
};
|
|
1355
1355
|
}
|
|
1356
1356
|
async request(e, t) {
|
|
@@ -1377,22 +1377,22 @@ var zn = {
|
|
|
1377
1377
|
}
|
|
1378
1378
|
}
|
|
1379
1379
|
_request(e, t) {
|
|
1380
|
-
typeof e == "string" ? (t ||= {}, t.url = e) : t = e || {}, t =
|
|
1380
|
+
typeof e == "string" ? (t ||= {}, t.url = e) : t = e || {}, t = un(this.defaults, t);
|
|
1381
1381
|
let { transitional: n, paramsSerializer: r, headers: i } = t;
|
|
1382
|
-
n !== void 0 &&
|
|
1383
|
-
silentJSONParsing:
|
|
1384
|
-
forcedJSONParsing:
|
|
1385
|
-
clarifyTimeoutError:
|
|
1386
|
-
legacyInterceptorReqResOrdering:
|
|
1387
|
-
}, !1), r != null && (
|
|
1388
|
-
encode:
|
|
1389
|
-
serialize:
|
|
1390
|
-
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls),
|
|
1391
|
-
baseUrl:
|
|
1392
|
-
withXsrfToken:
|
|
1382
|
+
n !== void 0 && Rn.assertOptions(n, {
|
|
1383
|
+
silentJSONParsing: zn.transitional(zn.boolean),
|
|
1384
|
+
forcedJSONParsing: zn.transitional(zn.boolean),
|
|
1385
|
+
clarifyTimeoutError: zn.transitional(zn.boolean),
|
|
1386
|
+
legacyInterceptorReqResOrdering: zn.transitional(zn.boolean)
|
|
1387
|
+
}, !1), r != null && (H.isFunction(r) ? t.paramsSerializer = { serialize: r } : Rn.assertOptions(r, {
|
|
1388
|
+
encode: zn.function,
|
|
1389
|
+
serialize: zn.function
|
|
1390
|
+
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls), Rn.assertOptions(t, {
|
|
1391
|
+
baseUrl: zn.spelling("baseURL"),
|
|
1392
|
+
withXsrfToken: zn.spelling("withXSRFToken")
|
|
1393
1393
|
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
1394
|
-
let a = i &&
|
|
1395
|
-
i &&
|
|
1394
|
+
let a = i && H.merge(i.common, i[t.method]);
|
|
1395
|
+
i && H.forEach([
|
|
1396
1396
|
"delete",
|
|
1397
1397
|
"get",
|
|
1398
1398
|
"head",
|
|
@@ -1402,12 +1402,12 @@ var zn = {
|
|
|
1402
1402
|
"common"
|
|
1403
1403
|
], (e) => {
|
|
1404
1404
|
delete i[e];
|
|
1405
|
-
}), t.headers =
|
|
1405
|
+
}), t.headers = G.concat(a, i);
|
|
1406
1406
|
let o = [], s = !0;
|
|
1407
1407
|
this.interceptors.request.forEach(function(e) {
|
|
1408
1408
|
if (typeof e.runWhen == "function" && e.runWhen(t) === !1) return;
|
|
1409
1409
|
s &&= e.synchronous;
|
|
1410
|
-
let n = t.transitional ||
|
|
1410
|
+
let n = t.transitional || yt;
|
|
1411
1411
|
n && n.legacyInterceptorReqResOrdering ? o.unshift(e.fulfilled, e.rejected) : o.push(e.fulfilled, e.rejected);
|
|
1412
1412
|
});
|
|
1413
1413
|
let c = [];
|
|
@@ -1416,7 +1416,7 @@ var zn = {
|
|
|
1416
1416
|
});
|
|
1417
1417
|
let l, u = 0, d;
|
|
1418
1418
|
if (!s) {
|
|
1419
|
-
let e = [
|
|
1419
|
+
let e = [Nn.bind(this), void 0];
|
|
1420
1420
|
for (e.unshift(...o), e.push(...c), d = e.length, l = Promise.resolve(t); u < d;) l = l.then(e[u++], e[u++]);
|
|
1421
1421
|
return l;
|
|
1422
1422
|
}
|
|
@@ -1432,7 +1432,7 @@ var zn = {
|
|
|
1432
1432
|
}
|
|
1433
1433
|
}
|
|
1434
1434
|
try {
|
|
1435
|
-
l =
|
|
1435
|
+
l = Nn.call(this, f);
|
|
1436
1436
|
} catch (e) {
|
|
1437
1437
|
return Promise.reject(e);
|
|
1438
1438
|
}
|
|
@@ -1440,30 +1440,30 @@ var zn = {
|
|
|
1440
1440
|
return l;
|
|
1441
1441
|
}
|
|
1442
1442
|
getUri(e) {
|
|
1443
|
-
return e =
|
|
1443
|
+
return e = un(this.defaults, e), _t(cn(e.baseURL, e.url, e.allowAbsoluteUrls), e.params, e.paramsSerializer);
|
|
1444
1444
|
}
|
|
1445
1445
|
};
|
|
1446
|
-
|
|
1446
|
+
H.forEach([
|
|
1447
1447
|
"delete",
|
|
1448
1448
|
"get",
|
|
1449
1449
|
"head",
|
|
1450
1450
|
"options"
|
|
1451
1451
|
], function(e) {
|
|
1452
1452
|
Bn.prototype[e] = function(t, n) {
|
|
1453
|
-
return this.request(
|
|
1453
|
+
return this.request(un(n || {}, {
|
|
1454
1454
|
method: e,
|
|
1455
1455
|
url: t,
|
|
1456
1456
|
data: (n || {}).data
|
|
1457
1457
|
}));
|
|
1458
1458
|
};
|
|
1459
|
-
}),
|
|
1459
|
+
}), H.forEach([
|
|
1460
1460
|
"post",
|
|
1461
1461
|
"put",
|
|
1462
1462
|
"patch"
|
|
1463
1463
|
], function(e) {
|
|
1464
1464
|
function t(t) {
|
|
1465
1465
|
return function(n, r, i) {
|
|
1466
|
-
return this.request(
|
|
1466
|
+
return this.request(un(i || {}, {
|
|
1467
1467
|
method: e,
|
|
1468
1468
|
headers: t ? { "Content-Type": "multipart/form-data" } : {},
|
|
1469
1469
|
url: n,
|
|
@@ -1496,7 +1496,7 @@ var Vn = class e {
|
|
|
1496
1496
|
n.unsubscribe(t);
|
|
1497
1497
|
}, r;
|
|
1498
1498
|
}, e(function(e, r, i) {
|
|
1499
|
-
n.reason || (n.reason = new
|
|
1499
|
+
n.reason || (n.reason = new Yt(e, r, i), t(n.reason));
|
|
1500
1500
|
});
|
|
1501
1501
|
}
|
|
1502
1502
|
throwIfRequested() {
|
|
@@ -1540,7 +1540,7 @@ function Hn(e) {
|
|
|
1540
1540
|
//#endregion
|
|
1541
1541
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/helpers/isAxiosError.js
|
|
1542
1542
|
function Un(e) {
|
|
1543
|
-
return
|
|
1543
|
+
return H.isObject(e) && e.isAxiosError === !0;
|
|
1544
1544
|
}
|
|
1545
1545
|
//#endregion
|
|
1546
1546
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
@@ -1621,15 +1621,15 @@ Object.entries(Wn).forEach(([e, t]) => {
|
|
|
1621
1621
|
//#endregion
|
|
1622
1622
|
//#region node_modules/.pnpm/axios@1.15.2/node_modules/axios/lib/axios.js
|
|
1623
1623
|
function Gn(e) {
|
|
1624
|
-
let t = new Bn(e), n =
|
|
1625
|
-
return
|
|
1626
|
-
return Gn(
|
|
1624
|
+
let t = new Bn(e), n = te(Bn.prototype.request, t);
|
|
1625
|
+
return H.extend(n, Bn.prototype, t, { allOwnKeys: !0 }), H.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(t) {
|
|
1626
|
+
return Gn(un(e, t));
|
|
1627
1627
|
}, n;
|
|
1628
1628
|
}
|
|
1629
|
-
var K = Gn(
|
|
1630
|
-
K.Axios = Bn, K.CanceledError =
|
|
1629
|
+
var K = Gn(Nt);
|
|
1630
|
+
K.Axios = Bn, K.CanceledError = Yt, K.CancelToken = Vn, K.isCancel = Jt, K.VERSION = Pn, K.toFormData = ft, K.AxiosError = U, K.Cancel = K.CanceledError, K.all = function(e) {
|
|
1631
1631
|
return Promise.all(e);
|
|
1632
|
-
}, K.spread = Hn, K.isAxiosError = Un, K.mergeConfig =
|
|
1632
|
+
}, K.spread = Hn, K.isAxiosError = Un, K.mergeConfig = un, K.AxiosHeaders = G, K.formToJSON = (e) => At(H.isHTMLForm(e) ? new FormData(e) : e), K.getAdapter = jn.getAdapter, K.HttpStatusCode = Wn, K.default = K;
|
|
1633
1633
|
//#endregion
|
|
1634
1634
|
//#region src/api/data/baostock.ts
|
|
1635
1635
|
function Kn(e) {
|
|
@@ -2538,23 +2538,23 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
2538
2538
|
for (let n in t) e[n] = (e[n] || 0) - (t[n] || 0);
|
|
2539
2539
|
}
|
|
2540
2540
|
function j(e) {
|
|
2541
|
-
return typeof e == "boolean" || typeof e == "number" || e === null ? !e : (0, t._)`!${
|
|
2541
|
+
return typeof e == "boolean" || typeof e == "number" || e === null ? !e : (0, t._)`!${I(e)}`;
|
|
2542
2542
|
}
|
|
2543
2543
|
e.not = j;
|
|
2544
|
-
var M =
|
|
2544
|
+
var M = F(e.operators.AND);
|
|
2545
2545
|
function N(...e) {
|
|
2546
2546
|
return e.reduce(M);
|
|
2547
2547
|
}
|
|
2548
2548
|
e.and = N;
|
|
2549
|
-
var
|
|
2550
|
-
function
|
|
2551
|
-
return e.reduce(
|
|
2552
|
-
}
|
|
2553
|
-
e.or = te;
|
|
2554
|
-
function P(e) {
|
|
2555
|
-
return (n, r) => n === t.nil ? r : r === t.nil ? n : (0, t._)`${F(n)} ${e} ${F(r)}`;
|
|
2549
|
+
var P = F(e.operators.OR);
|
|
2550
|
+
function ee(...e) {
|
|
2551
|
+
return e.reduce(P);
|
|
2556
2552
|
}
|
|
2553
|
+
e.or = ee;
|
|
2557
2554
|
function F(e) {
|
|
2555
|
+
return (n, r) => n === t.nil ? r : r === t.nil ? n : (0, t._)`${I(n)} ${e} ${I(r)}`;
|
|
2556
|
+
}
|
|
2557
|
+
function I(e) {
|
|
2558
2558
|
return e instanceof t.Name ? e : (0, t._)`(${e})`;
|
|
2559
2559
|
}
|
|
2560
2560
|
})), J = /* @__PURE__ */ M(((e) => {
|
|
@@ -3533,59 +3533,59 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
3533
3533
|
o.block(() => L(e, "$ref", h.all.$ref.definition));
|
|
3534
3534
|
return;
|
|
3535
3535
|
}
|
|
3536
|
-
p.jtd ||
|
|
3536
|
+
p.jtd || ee(e, t), o.block(() => {
|
|
3537
3537
|
for (let e of h.rules) g(e);
|
|
3538
3538
|
g(h.post);
|
|
3539
3539
|
});
|
|
3540
3540
|
function g(d) {
|
|
3541
|
-
(0, r.shouldUseGroup)(s, d) && (d.type ? (o.if((0, i.checkDataType)(d.type, u, p.strictNumbers)),
|
|
3541
|
+
(0, r.shouldUseGroup)(s, d) && (d.type ? (o.if((0, i.checkDataType)(d.type, u, p.strictNumbers)), P(e, d), t.length === 1 && t[0] === d.type && n && (o.else(), (0, i.reportTypeError)(e)), o.endIf()) : P(e, d), f || o.if((0, c._)`${l.default.errors} === ${a || 0}`));
|
|
3542
3542
|
}
|
|
3543
3543
|
}
|
|
3544
|
-
function
|
|
3544
|
+
function P(e, t) {
|
|
3545
3545
|
let { gen: n, schema: i, opts: { useDefaults: o } } = e;
|
|
3546
3546
|
o && (0, a.assignDefaults)(e, t.type), n.block(() => {
|
|
3547
3547
|
for (let n of t.rules) (0, r.shouldUseRule)(i, n) && L(e, n.keyword, n.definition, t.type);
|
|
3548
3548
|
});
|
|
3549
3549
|
}
|
|
3550
|
-
function
|
|
3551
|
-
e.schemaEnv.meta || !e.opts.strictTypes || (
|
|
3550
|
+
function ee(e, t) {
|
|
3551
|
+
e.schemaEnv.meta || !e.opts.strictTypes || (F(e, t), e.opts.allowUnionTypes || I(e, t), te(e, e.dataTypes));
|
|
3552
3552
|
}
|
|
3553
|
-
function
|
|
3553
|
+
function F(e, t) {
|
|
3554
3554
|
if (t.length) {
|
|
3555
3555
|
if (!e.dataTypes.length) {
|
|
3556
3556
|
e.dataTypes = t;
|
|
3557
3557
|
return;
|
|
3558
3558
|
}
|
|
3559
3559
|
t.forEach((t) => {
|
|
3560
|
-
|
|
3561
|
-
}),
|
|
3560
|
+
re(e.dataTypes, t) || ae(e, `type "${t}" not allowed by context "${e.dataTypes.join(",")}"`);
|
|
3561
|
+
}), ie(e, t);
|
|
3562
3562
|
}
|
|
3563
3563
|
}
|
|
3564
|
-
function
|
|
3565
|
-
t.length > 1 && !(t.length === 2 && t.includes("null")) &&
|
|
3564
|
+
function I(e, t) {
|
|
3565
|
+
t.length > 1 && !(t.length === 2 && t.includes("null")) && ae(e, "use allowUnionTypes to allow union type keyword");
|
|
3566
3566
|
}
|
|
3567
|
-
function
|
|
3567
|
+
function te(e, t) {
|
|
3568
3568
|
let n = e.self.RULES.all;
|
|
3569
3569
|
for (let i in n) {
|
|
3570
3570
|
let a = n[i];
|
|
3571
3571
|
if (typeof a == "object" && (0, r.shouldUseRule)(e.schema, a)) {
|
|
3572
3572
|
let { type: n } = a.definition;
|
|
3573
|
-
n.length && !n.some((e) =>
|
|
3573
|
+
n.length && !n.some((e) => ne(t, e)) && ae(e, `missing type "${n.join(",")}" for keyword "${i}"`);
|
|
3574
3574
|
}
|
|
3575
3575
|
}
|
|
3576
3576
|
}
|
|
3577
|
-
function
|
|
3577
|
+
function ne(e, t) {
|
|
3578
3578
|
return e.includes(t) || t === "number" && e.includes("integer");
|
|
3579
3579
|
}
|
|
3580
|
-
function
|
|
3580
|
+
function re(e, t) {
|
|
3581
3581
|
return e.includes(t) || t === "integer" && e.includes("number");
|
|
3582
3582
|
}
|
|
3583
|
-
function
|
|
3583
|
+
function ie(e, t) {
|
|
3584
3584
|
let n = [];
|
|
3585
|
-
for (let r of e.dataTypes)
|
|
3585
|
+
for (let r of e.dataTypes) re(t, r) ? n.push(r) : t.includes("integer") && r === "number" && n.push("integer");
|
|
3586
3586
|
e.dataTypes = n;
|
|
3587
3587
|
}
|
|
3588
|
-
function
|
|
3588
|
+
function ae(e, t) {
|
|
3589
3589
|
let n = e.schemaEnv.baseId + e.errSchemaPath;
|
|
3590
3590
|
t += ` at "${n}" (strictTypes)`, (0, d.checkStrictMode)(e, t, e.opts.strictTypes);
|
|
3591
3591
|
}
|
|
@@ -4315,7 +4315,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
4315
4315
|
return n.CodeGen;
|
|
4316
4316
|
}
|
|
4317
4317
|
});
|
|
4318
|
-
var r = Er(), i = Dr(), a = hr(), o = Or(), s = q(), c = wr(), l = _r(), u = J(), d = (Ir(),
|
|
4318
|
+
var r = Er(), i = Dr(), a = hr(), o = Or(), s = q(), c = wr(), l = _r(), u = J(), d = (Ir(), F(kr).default), f = Br(), p = (e, t) => new RegExp(e, t);
|
|
4319
4319
|
p.code = "new RegExp";
|
|
4320
4320
|
var m = [
|
|
4321
4321
|
"removeAdditional",
|
|
@@ -4568,7 +4568,7 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
4568
4568
|
let t = n[e];
|
|
4569
4569
|
if (typeof t != "object") continue;
|
|
4570
4570
|
let { $data: r } = t.definition, a = i[e];
|
|
4571
|
-
r && a && (i[e] =
|
|
4571
|
+
r && a && (i[e] = ee(a));
|
|
4572
4572
|
}
|
|
4573
4573
|
}
|
|
4574
4574
|
return e;
|
|
@@ -4695,11 +4695,11 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
4695
4695
|
}
|
|
4696
4696
|
function N(e) {
|
|
4697
4697
|
let { metaSchema: t } = e;
|
|
4698
|
-
t !== void 0 && (e.$data && this.opts.$data && (t =
|
|
4698
|
+
t !== void 0 && (e.$data && this.opts.$data && (t = ee(t)), e.validateSchema = this.compile(t, !0));
|
|
4699
4699
|
}
|
|
4700
|
-
var
|
|
4701
|
-
function
|
|
4702
|
-
return { anyOf: [e,
|
|
4700
|
+
var P = { $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" };
|
|
4701
|
+
function ee(e) {
|
|
4702
|
+
return { anyOf: [e, P] };
|
|
4703
4703
|
}
|
|
4704
4704
|
})), Hr = /* @__PURE__ */ M(((e) => {
|
|
4705
4705
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
@@ -5964,9 +5964,9 @@ var ur = /* @__PURE__ */ M(((e) => {
|
|
|
5964
5964
|
properties: Ni,
|
|
5965
5965
|
default: !0
|
|
5966
5966
|
};
|
|
5967
|
-
})), Ii = /* @__PURE__ */
|
|
5967
|
+
})), Ii = /* @__PURE__ */ ee((/* @__PURE__ */ M(((e, t) => {
|
|
5968
5968
|
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;
|
|
5969
|
-
var n = Vr(), r = wi(), i = Ei(), a = (Fi(),
|
|
5969
|
+
var n = Vr(), r = wi(), i = Ei(), a = (Fi(), F(Di).default), o = ["/properties"], s = "http://json-schema.org/draft-07/schema", c = class extends n.default {
|
|
5970
5970
|
_addVocabularies() {
|
|
5971
5971
|
super._addVocabularies(), r.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(i.default);
|
|
5972
5972
|
}
|
|
@@ -6603,7 +6603,7 @@ var Hi = (typeof document < "u" ? document.createElement("canvas") : null)?.getC
|
|
|
6603
6603
|
validator;
|
|
6604
6604
|
events;
|
|
6605
6605
|
constructor(e) {
|
|
6606
|
-
this.chart = e, this.validator = new Ui(), this.events = new
|
|
6606
|
+
this.chart = e, this.validator = new Ui(), this.events = new I();
|
|
6607
6607
|
}
|
|
6608
6608
|
async applyConfig(e) {
|
|
6609
6609
|
let t = this.validator.validate(e);
|
|
@@ -6980,7 +6980,7 @@ var sa = Symbol("global-pane"), Y = {
|
|
|
6980
6980
|
configManager;
|
|
6981
6981
|
isDestroyed = !1;
|
|
6982
6982
|
constructor() {
|
|
6983
|
-
this.registry = new ca(), this.eventBus = new
|
|
6983
|
+
this.registry = new ca(), this.eventBus = new I(), this.hookSystem = new la(), this.configManager = new ua();
|
|
6984
6984
|
}
|
|
6985
6985
|
events = {
|
|
6986
6986
|
on: (e, t) => {
|
|
@@ -7753,7 +7753,7 @@ var to = { class: "kline-tooltip__title" }, no = { key: 0 }, ro = { class: "klin
|
|
|
7753
7753
|
_: 1
|
|
7754
7754
|
})]));
|
|
7755
7755
|
}
|
|
7756
|
-
}), [["__scopeId", "data-v-
|
|
7756
|
+
}), [["__scopeId", "data-v-c14eedcc"]]), Vo = { class: "indicator-selector" }, Ho = { class: "indicator-scroll-container" }, Uo = { class: "indicator-list" }, Wo = ["onMouseenter"], Go = { class: "btn-content" }, Ko = {
|
|
7757
7757
|
key: 0,
|
|
7758
7758
|
class: "param-hint"
|
|
7759
7759
|
}, qo = {
|
|
@@ -8098,25 +8098,25 @@ var to = { class: "kline-tooltip__title" }, no = { key: 0 }, ro = { class: "klin
|
|
|
8098
8098
|
description: "计算周期,周期越短越敏感"
|
|
8099
8099
|
}]
|
|
8100
8100
|
}
|
|
8101
|
-
], 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),
|
|
8101
|
+
], 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), P = _({
|
|
8102
8102
|
left: "0",
|
|
8103
8103
|
bottom: "0"
|
|
8104
|
-
}),
|
|
8105
|
-
function
|
|
8104
|
+
}), ee = r(() => E.activeIndicators?.length ? E.activeIndicators.map((e) => y.find((t) => t.id === e)).filter((e) => e !== void 0) : []), F = r(() => j.value && y.find((e) => e.id === j.value) || null);
|
|
8105
|
+
function I(e) {
|
|
8106
8106
|
return E.activeIndicators?.includes(e) ?? !1;
|
|
8107
8107
|
}
|
|
8108
|
-
function
|
|
8109
|
-
if (
|
|
8108
|
+
function te(e) {
|
|
8109
|
+
if (I(e)) return;
|
|
8110
8110
|
let t = y.find((t) => t.id === e);
|
|
8111
|
-
t && (t.pane === "main" && y.filter((t) => t.pane === "main" && t.id !== e &&
|
|
8111
|
+
t && (t.pane === "main" && y.filter((t) => t.pane === "main" && t.id !== e && I(t.id)).forEach((e) => D("toggle", e.id, !1)), D("toggle", e, !0), N.value = !1);
|
|
8112
8112
|
}
|
|
8113
|
-
function
|
|
8113
|
+
function ne(e) {
|
|
8114
8114
|
D("toggle", e, !1);
|
|
8115
8115
|
}
|
|
8116
|
-
function
|
|
8116
|
+
function re(e) {
|
|
8117
8117
|
j.value = e, A.value = !0;
|
|
8118
8118
|
}
|
|
8119
|
-
function
|
|
8119
|
+
function ie(e) {
|
|
8120
8120
|
let t = y.find((t) => t.id === e);
|
|
8121
8121
|
if (!t?.params) return {};
|
|
8122
8122
|
let n = {};
|
|
@@ -8125,8 +8125,8 @@ var to = { class: "kline-tooltip__title" }, no = { key: 0 }, ro = { class: "klin
|
|
|
8125
8125
|
for (let [e, t] of Object.entries(r)) typeof t == "number" && (i[e] = t);
|
|
8126
8126
|
return i;
|
|
8127
8127
|
}
|
|
8128
|
-
function
|
|
8129
|
-
let t =
|
|
8128
|
+
function ae(e) {
|
|
8129
|
+
let t = ie(e.id);
|
|
8130
8130
|
return e.params ? e.params.map((e) => t[e.key] ?? "").join(",") : "";
|
|
8131
8131
|
}
|
|
8132
8132
|
function oe(e) {
|
|
@@ -8135,7 +8135,7 @@ var to = { class: "kline-tooltip__title" }, no = { key: 0 }, ro = { class: "klin
|
|
|
8135
8135
|
function L() {
|
|
8136
8136
|
if (!N.value && O.value) {
|
|
8137
8137
|
let e = O.value.getBoundingClientRect(), t = window.innerWidth, n = e.left + e.width / 2;
|
|
8138
|
-
n + 160 > t - 8 && (n = t - 160 - 8), n - 160 < 8 && (n = 168),
|
|
8138
|
+
n + 160 > t - 8 && (n = t - 160 - 8), n - 160 < 8 && (n = 168), P.value = {
|
|
8139
8139
|
left: `${n}px`,
|
|
8140
8140
|
bottom: `${window.innerHeight - e.top + 8}px`
|
|
8141
8141
|
};
|
|
@@ -8154,7 +8154,7 @@ var to = { class: "kline-tooltip__title" }, no = { key: 0 }, ro = { class: "klin
|
|
|
8154
8154
|
}), h(() => {
|
|
8155
8155
|
document.removeEventListener("click", se), window.removeEventListener("resize", ce);
|
|
8156
8156
|
}), (r, u) => (g(), o("div", Vo, [
|
|
8157
|
-
s("div", Ho, [s("div", Uo, [(g(!0), o(e, null, v(
|
|
8157
|
+
s("div", Ho, [s("div", Uo, [(g(!0), o(e, null, v(ee.value, (e) => (g(), o("div", {
|
|
8158
8158
|
key: e.id,
|
|
8159
8159
|
class: "indicator-item"
|
|
8160
8160
|
}, [s("div", {
|
|
@@ -8164,12 +8164,12 @@ var to = { class: "kline-tooltip__title" }, no = { key: 0 }, ro = { class: "klin
|
|
|
8164
8164
|
}, [s("button", { class: f(["indicator-btn", {
|
|
8165
8165
|
active: !0,
|
|
8166
8166
|
hovering: M.value === e.id
|
|
8167
|
-
}]) }, [s("span", Go, [c(b(e.label) + " ", 1), e.params ? (g(), o("span", Ko, " (" + b(
|
|
8167
|
+
}]) }, [s("span", Go, [c(b(e.label) + " ", 1), e.params ? (g(), o("span", Ko, " (" + b(ae(e)) + ") ", 1)) : a("", !0)]), l(n, { name: "fade" }, {
|
|
8168
8168
|
default: C(() => [M.value === e.id ? (g(), o("div", qo, [
|
|
8169
8169
|
e.params ? (g(), o("button", {
|
|
8170
8170
|
key: 0,
|
|
8171
8171
|
class: "action-btn settings-btn",
|
|
8172
|
-
onClick: w((t) =>
|
|
8172
|
+
onClick: w((t) => re(e.id), ["stop"]),
|
|
8173
8173
|
title: "编辑参数"
|
|
8174
8174
|
}, [...u[2] ||= [s("svg", {
|
|
8175
8175
|
viewBox: "0 0 24 24",
|
|
@@ -8180,7 +8180,7 @@ var to = { class: "kline-tooltip__title" }, no = { key: 0 }, ro = { class: "klin
|
|
|
8180
8180
|
e.params ? (g(), o("span", Yo)) : a("", !0),
|
|
8181
8181
|
s("button", {
|
|
8182
8182
|
class: "action-btn remove-btn",
|
|
8183
|
-
onClick: w((t) =>
|
|
8183
|
+
onClick: w((t) => ne(e.id), ["stop"]),
|
|
8184
8184
|
title: "移除指标"
|
|
8185
8185
|
}, [...u[3] ||= [s("svg", {
|
|
8186
8186
|
viewBox: "0 0 24 24",
|
|
@@ -8208,16 +8208,16 @@ var to = { class: "kline-tooltip__title" }, no = { key: 0 }, ro = { class: "klin
|
|
|
8208
8208
|
class: "add-menu",
|
|
8209
8209
|
ref_key: "addMenuRef",
|
|
8210
8210
|
ref: k,
|
|
8211
|
-
style: p(
|
|
8211
|
+
style: p(P.value)
|
|
8212
8212
|
}, [s("div", Qo, [u[6] ||= s("div", { class: "menu-title" }, "主图指标", -1), s("div", $o, [(g(!0), o(e, null, v(x(S), (e) => (g(), o("button", {
|
|
8213
8213
|
key: e.id,
|
|
8214
|
-
class: f(["menu-item", { disabled:
|
|
8215
|
-
disabled:
|
|
8216
|
-
onClick: (t) =>
|
|
8214
|
+
class: f(["menu-item", { disabled: I(e.id) }]),
|
|
8215
|
+
disabled: I(e.id),
|
|
8216
|
+
onClick: (t) => te(e.id)
|
|
8217
8217
|
}, [
|
|
8218
8218
|
c(b(e.label) + " ", 1),
|
|
8219
8219
|
e.params ? (g(), o("span", ts, " (" + b(e.name) + ") ", 1)) : a("", !0),
|
|
8220
|
-
|
|
8220
|
+
I(e.id) ? (g(), o("span", ns, [...u[5] ||= [s("svg", {
|
|
8221
8221
|
viewBox: "0 0 24 24",
|
|
8222
8222
|
width: "14",
|
|
8223
8223
|
height: "14",
|
|
@@ -8225,13 +8225,13 @@ var to = { class: "kline-tooltip__title" }, no = { key: 0 }, ro = { class: "klin
|
|
|
8225
8225
|
}, [s("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" })], -1)]])) : a("", !0)
|
|
8226
8226
|
], 10, es))), 128))])]), s("div", rs, [u[8] ||= s("div", { class: "menu-title" }, "副图指标", -1), s("div", is, [(g(!0), o(e, null, v(x(T), (e) => (g(), o("button", {
|
|
8227
8227
|
key: e.id,
|
|
8228
|
-
class: f(["menu-item", { disabled:
|
|
8229
|
-
disabled:
|
|
8230
|
-
onClick: (t) =>
|
|
8228
|
+
class: f(["menu-item", { disabled: I(e.id) }]),
|
|
8229
|
+
disabled: I(e.id),
|
|
8230
|
+
onClick: (t) => te(e.id)
|
|
8231
8231
|
}, [
|
|
8232
8232
|
c(b(e.label) + " ", 1),
|
|
8233
8233
|
e.params ? (g(), o("span", os, " (" + b(e.name) + ") ", 1)) : a("", !0),
|
|
8234
|
-
|
|
8234
|
+
I(e.id) ? (g(), o("span", ss, [...u[7] ||= [s("svg", {
|
|
8235
8235
|
viewBox: "0 0 24 24",
|
|
8236
8236
|
width: "14",
|
|
8237
8237
|
height: "14",
|
|
@@ -8240,14 +8240,14 @@ var to = { class: "kline-tooltip__title" }, no = { key: 0 }, ro = { class: "klin
|
|
|
8240
8240
|
], 10, as))), 128))])])], 4)) : a("", !0)]),
|
|
8241
8241
|
_: 1
|
|
8242
8242
|
})])),
|
|
8243
|
-
|
|
8243
|
+
F.value ? (g(), i(Bo, {
|
|
8244
8244
|
key: 0,
|
|
8245
8245
|
visible: A.value,
|
|
8246
|
-
"indicator-id":
|
|
8247
|
-
"indicator-name":
|
|
8248
|
-
"indicator-description":
|
|
8249
|
-
params:
|
|
8250
|
-
values:
|
|
8246
|
+
"indicator-id": F.value.id,
|
|
8247
|
+
"indicator-name": F.value.name,
|
|
8248
|
+
"indicator-description": F.value.description,
|
|
8249
|
+
params: F.value.params || [],
|
|
8250
|
+
values: ie(F.value.id),
|
|
8251
8251
|
onClose: u[1] ||= (e) => A.value = !1,
|
|
8252
8252
|
onConfirm: oe
|
|
8253
8253
|
}, null, 8, [
|
|
@@ -8561,13 +8561,13 @@ var ps = class {
|
|
|
8561
8561
|
this.hoveredIndex = null;
|
|
8562
8562
|
return;
|
|
8563
8563
|
}
|
|
8564
|
-
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,
|
|
8565
|
-
if (!
|
|
8564
|
+
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, P = Math.abs(j - A), ee = P < 8 ? (A + j) / 2 - 8 / 2 : A, F = P < 8 ? (A + j) / 2 + 8 / 2 : j, I = T >= ee && T <= F && M >= 0 && M <= _, te = Math.abs(M - N) <= 3 && T >= O && T <= k;
|
|
8565
|
+
if (!I && !te) {
|
|
8566
8566
|
this.hoveredIndex = null;
|
|
8567
8567
|
return;
|
|
8568
8568
|
}
|
|
8569
8569
|
this.hoveredIndex = this.crosshairIndex;
|
|
8570
|
-
let
|
|
8570
|
+
let ne = this.tooltipSize.width, re = this.tooltipSize.height, ie = i + 14, ae = i - 14 - ne, oe = ie + ne + 12 <= s ? ie : ae, L = a + 14, se = Math.max(12, s - ne - 12), ce = Math.max(12, c - re - 12);
|
|
8571
8571
|
this.tooltipPos = {
|
|
8572
8572
|
x: Math.min(Math.max(oe, 12), se),
|
|
8573
8573
|
y: Math.min(Math.max(L, 12), ce)
|
|
@@ -8594,9 +8594,9 @@ var ps = class {
|
|
|
8594
8594
|
}
|
|
8595
8595
|
resize(e, t, n) {
|
|
8596
8596
|
let r = this.dom.plotCanvas, i = this.dom.yAxisCanvas;
|
|
8597
|
-
r.
|
|
8597
|
+
r.width = Math.round(e * n), r.height = Math.round(t * n), r.style.width = `${r.width / n}px`, r.style.height = `${r.height / n}px`;
|
|
8598
8598
|
let a = this.opt.rightAxisWidth + (this.opt.priceLabelWidth || 60);
|
|
8599
|
-
i.
|
|
8599
|
+
i.width = Math.round(a * n), i.height = Math.round(t * n), i.style.width = `${i.width / n}px`, i.style.height = `${i.height / n}px`;
|
|
8600
8600
|
}
|
|
8601
8601
|
destroy() {}
|
|
8602
8602
|
};
|
|
@@ -9263,16 +9263,22 @@ function Bs(e = {}) {
|
|
|
9263
9263
|
t.save(), t.translate(-o, 0);
|
|
9264
9264
|
let b = Math.max(a.start, r.slowPeriod - 1), x = Math.min(a.end, f.length);
|
|
9265
9265
|
if (r.showBAR) {
|
|
9266
|
-
let e = s + c - 1;
|
|
9267
|
-
for (let
|
|
9268
|
-
let
|
|
9269
|
-
if (!
|
|
9270
|
-
let o =
|
|
9271
|
-
|
|
9272
|
-
let c = o + (s - e) / 2, l = n.height - (i.macd - _) / v * n.height, u = i.macd >= 0, f = r > 0 ? p[r - 1] : null, m;
|
|
9273
|
-
m = f ? i.macd >= f.macd : !0;
|
|
9266
|
+
let e = (s + c) * u, r = Math.max(1, Math.round(e - 1)) / u, i = Math.round(y * u) / u, o = d[b - a.start] ?? 0, l = Math.round((o + (s - r) / 2) * u);
|
|
9267
|
+
for (let a = b; a < x; a++) {
|
|
9268
|
+
let o = p[a];
|
|
9269
|
+
if (!o) continue;
|
|
9270
|
+
let s = (l + (a - b) * Math.round(e)) / u, c = n.height - (o.macd - _) / v * n.height, d = o.macd >= 0, f = a > 0 ? p[a - 1] : null, m;
|
|
9271
|
+
m = f ? o.macd >= f.macd : !0;
|
|
9274
9272
|
let h;
|
|
9275
|
-
h =
|
|
9273
|
+
h = d ? m ? Pa.BAR_UP : Pa.BAR_UP_LIGHT : m ? Pa.BAR_DOWN_LIGHT : Pa.BAR_DOWN, t.fillStyle = h;
|
|
9274
|
+
let g = Math.round(c * u) / u, y = 1 / u;
|
|
9275
|
+
if (d) {
|
|
9276
|
+
let e = i - g, n = e <= 0 ? y : Math.max(e, y), a = e <= 0 ? i - y : i - n;
|
|
9277
|
+
t.fillRect(s, a, r, n);
|
|
9278
|
+
} else {
|
|
9279
|
+
let e = g - i, n = e <= 0 ? y : Math.max(e, y);
|
|
9280
|
+
t.fillRect(s, i, r, n);
|
|
9281
|
+
}
|
|
9276
9282
|
}
|
|
9277
9283
|
}
|
|
9278
9284
|
if (r.showDIF) {
|
|
@@ -10900,21 +10906,21 @@ var Hc = { class: "chart-wrapper" }, Uc = 4, Wc = /* @__PURE__ */ go(/* @__PURE_
|
|
|
10900
10906
|
let O = _(null), k = _(null), A = _({
|
|
10901
10907
|
x: 0,
|
|
10902
10908
|
y: 0
|
|
10903
|
-
}), j = _(!1), M = _(null), N = _(null),
|
|
10909
|
+
}), j = _(!1), M = _(null), N = _(null), P = _({
|
|
10904
10910
|
x: 0,
|
|
10905
10911
|
y: 0
|
|
10906
|
-
}),
|
|
10912
|
+
}), ee = _(0), F = r(() => {
|
|
10907
10913
|
let e = M.value;
|
|
10908
10914
|
if (typeof e != "number") return null;
|
|
10909
|
-
|
|
10915
|
+
ee.value;
|
|
10910
10916
|
let t = C.value?.getData();
|
|
10911
10917
|
return t && e >= 0 && e < t.length ? t[e] : null;
|
|
10912
|
-
}),
|
|
10913
|
-
function
|
|
10914
|
-
|
|
10918
|
+
}), I = r(() => M.value), te = r(() => P.value), ne = r(() => (ee.value, C.value?.getData() ?? []));
|
|
10919
|
+
function re() {
|
|
10920
|
+
ee.value++;
|
|
10915
10921
|
}
|
|
10916
|
-
let
|
|
10917
|
-
function
|
|
10922
|
+
let ie = null;
|
|
10923
|
+
function ae() {
|
|
10918
10924
|
let e = C.value?.interaction;
|
|
10919
10925
|
if (!e) {
|
|
10920
10926
|
M.value = null, N.value = null, O.value = null, k.value = null;
|
|
@@ -10922,18 +10928,18 @@ var Hc = { class: "chart-wrapper" }, Uc = 4, Wc = /* @__PURE__ */ go(/* @__PURE_
|
|
|
10922
10928
|
}
|
|
10923
10929
|
M.value = e.hoveredIndex ?? null, N.value = e.crosshairIndex ?? null, O.value = e.hoveredMarkerData ?? null, k.value = e.hoveredCustomMarker ?? null;
|
|
10924
10930
|
let t = e.tooltipPos;
|
|
10925
|
-
t && (
|
|
10931
|
+
t && (P.value = {
|
|
10926
10932
|
x: t.x,
|
|
10927
10933
|
y: t.y
|
|
10928
10934
|
});
|
|
10929
10935
|
}
|
|
10930
10936
|
function oe() {
|
|
10931
|
-
|
|
10932
|
-
|
|
10937
|
+
ie ||= requestAnimationFrame(() => {
|
|
10938
|
+
ae(), ie = null;
|
|
10933
10939
|
});
|
|
10934
10940
|
}
|
|
10935
10941
|
function L(e) {
|
|
10936
|
-
j.value = !0, C.value?.interaction.onPointerDown(e),
|
|
10942
|
+
j.value = !0, C.value?.interaction.onPointerDown(e), ae();
|
|
10937
10943
|
}
|
|
10938
10944
|
function se(e) {
|
|
10939
10945
|
let t = v.value;
|
|
@@ -10947,15 +10953,15 @@ var Hc = { class: "chart-wrapper" }, Uc = 4, Wc = /* @__PURE__ */ go(/* @__PURE_
|
|
|
10947
10953
|
C.value?.interaction.onPointerMove(e), oe();
|
|
10948
10954
|
}
|
|
10949
10955
|
function ce(e) {
|
|
10950
|
-
j.value = !1, C.value?.interaction.onPointerUp(e),
|
|
10956
|
+
j.value = !1, C.value?.interaction.onPointerUp(e), ae();
|
|
10951
10957
|
}
|
|
10952
10958
|
function le(e) {
|
|
10953
10959
|
j.value = !1, C.value?.interaction.onPointerLeave(e), M.value = null;
|
|
10954
10960
|
}
|
|
10955
10961
|
function ue() {
|
|
10956
|
-
C.value?.interaction.onScroll(),
|
|
10962
|
+
C.value?.interaction.onScroll(), ae();
|
|
10957
10963
|
}
|
|
10958
|
-
let R = _([]),
|
|
10964
|
+
let R = _([]), z = _({}), B = _([]), V = [
|
|
10959
10965
|
"VOLUME",
|
|
10960
10966
|
"MACD",
|
|
10961
10967
|
"RSI",
|
|
@@ -10966,7 +10972,7 @@ var Hc = { class: "chart-wrapper" }, Uc = 4, Wc = /* @__PURE__ */ go(/* @__PURE_
|
|
|
10966
10972
|
"KST",
|
|
10967
10973
|
"FASTK"
|
|
10968
10974
|
];
|
|
10969
|
-
S(r(() =>
|
|
10975
|
+
S(r(() => B.value.length === 0 ? [{
|
|
10970
10976
|
id: "main",
|
|
10971
10977
|
ratio: 1,
|
|
10972
10978
|
visible: !0
|
|
@@ -10974,14 +10980,14 @@ var Hc = { class: "chart-wrapper" }, Uc = 4, Wc = /* @__PURE__ */ go(/* @__PURE_
|
|
|
10974
10980
|
id: "main",
|
|
10975
10981
|
ratio: 1,
|
|
10976
10982
|
visible: !0
|
|
10977
|
-
}, ...
|
|
10983
|
+
}, ...B.value.map((e) => ({
|
|
10978
10984
|
id: e.id,
|
|
10979
10985
|
ratio: 1,
|
|
10980
10986
|
visible: !0
|
|
10981
10987
|
}))]), (e) => {
|
|
10982
10988
|
C.value?.updatePaneLayout(e);
|
|
10983
10989
|
}, { flush: "post" });
|
|
10984
|
-
function
|
|
10990
|
+
function de(e) {
|
|
10985
10991
|
switch (e) {
|
|
10986
10992
|
case "MACD": return {
|
|
10987
10993
|
fastPeriod: 12,
|
|
@@ -11011,99 +11017,99 @@ var Hc = { class: "chart-wrapper" }, Uc = 4, Wc = /* @__PURE__ */ go(/* @__PURE_
|
|
|
11011
11017
|
default: return {};
|
|
11012
11018
|
}
|
|
11013
11019
|
}
|
|
11014
|
-
function
|
|
11015
|
-
if (
|
|
11020
|
+
function fe(e = "VOLUME", t) {
|
|
11021
|
+
if (B.value.length >= Uc) return !1;
|
|
11016
11022
|
let n = `sub_${e}`;
|
|
11017
|
-
if (
|
|
11018
|
-
if (!C.value?.createSubPane(e, t ??
|
|
11023
|
+
if (B.value.some((e) => e.id === n)) return !0;
|
|
11024
|
+
if (!C.value?.createSubPane(e, t ?? de(e))) return !1;
|
|
11019
11025
|
let r = Vc({
|
|
11020
11026
|
paneId: n,
|
|
11021
11027
|
title: e,
|
|
11022
|
-
getTitleInfo: () =>
|
|
11028
|
+
getTitleInfo: () => ve(n)
|
|
11023
11029
|
});
|
|
11024
|
-
return C.value?.useRenderer(r),
|
|
11030
|
+
return C.value?.useRenderer(r), B.value.push({
|
|
11025
11031
|
id: n,
|
|
11026
11032
|
indicatorId: e,
|
|
11027
11033
|
rendererName: `${e.toLowerCase()}_${n}`,
|
|
11028
11034
|
paneTitleRendererName: r.name,
|
|
11029
|
-
params: t ??
|
|
11035
|
+
params: t ?? de(e)
|
|
11030
11036
|
}), R.value.includes(e) || R.value.push(e), !0;
|
|
11031
11037
|
}
|
|
11032
|
-
function
|
|
11033
|
-
let t =
|
|
11038
|
+
function pe(e) {
|
|
11039
|
+
let t = B.value.findIndex((t) => t.id === e);
|
|
11034
11040
|
if (t === -1) return;
|
|
11035
|
-
let n =
|
|
11036
|
-
n && (C.value?.removeRenderer(n.paneTitleRendererName), C.value?.removeSubPane(n.indicatorId),
|
|
11041
|
+
let n = B.value[t];
|
|
11042
|
+
n && (C.value?.removeRenderer(n.paneTitleRendererName), C.value?.removeSubPane(n.indicatorId), B.value.splice(t, 1), B.value.some((e) => e.indicatorId === n.indicatorId) || (R.value = R.value.filter((e) => e !== n.indicatorId)));
|
|
11037
11043
|
}
|
|
11038
|
-
function
|
|
11039
|
-
for (let e of
|
|
11040
|
-
C.value?.clearSubPanes(),
|
|
11044
|
+
function me() {
|
|
11045
|
+
for (let e of B.value) C.value?.removeRenderer(e.paneTitleRendererName);
|
|
11046
|
+
C.value?.clearSubPanes(), B.value = [], R.value = R.value.filter((e) => !V.includes(e));
|
|
11041
11047
|
}
|
|
11042
|
-
function
|
|
11048
|
+
function he() {
|
|
11043
11049
|
let e = n.semanticConfig.indicators?.main;
|
|
11044
|
-
if (e) for (let t of e) t.enabled && (R.value.includes(t.type) || R.value.push(t.type), t.params && (
|
|
11050
|
+
if (e) for (let t of e) t.enabled && (R.value.includes(t.type) || R.value.push(t.type), t.params && (z.value[t.type] = t.params));
|
|
11045
11051
|
}
|
|
11046
|
-
S(R, (e) => {
|
|
11052
|
+
S([R, z], ([e]) => {
|
|
11047
11053
|
let t = C.value;
|
|
11048
11054
|
t && (t.updateRendererConfig("mainIndicatorLegend", { indicators: {
|
|
11049
11055
|
MA: {
|
|
11050
11056
|
enabled: e.includes("MA"),
|
|
11051
|
-
params:
|
|
11057
|
+
params: z.value.MA || {}
|
|
11052
11058
|
},
|
|
11053
11059
|
BOLL: {
|
|
11054
11060
|
enabled: e.includes("BOLL"),
|
|
11055
|
-
params:
|
|
11061
|
+
params: z.value.BOLL || {}
|
|
11056
11062
|
},
|
|
11057
11063
|
EXPMA: {
|
|
11058
11064
|
enabled: e.includes("EXPMA"),
|
|
11059
|
-
params:
|
|
11065
|
+
params: z.value.EXPMA || {}
|
|
11060
11066
|
},
|
|
11061
11067
|
ENE: {
|
|
11062
11068
|
enabled: e.includes("ENE"),
|
|
11063
|
-
params:
|
|
11069
|
+
params: z.value.ENE || {}
|
|
11064
11070
|
}
|
|
11065
11071
|
} }), t.setRendererEnabled("ma", e.includes("MA")), t.setRendererEnabled("boll", e.includes("BOLL")), t.setRendererEnabled("expma", e.includes("EXPMA")), t.setRendererEnabled("ene", e.includes("ENE")), E());
|
|
11066
11072
|
}, { deep: !0 });
|
|
11067
|
-
function
|
|
11073
|
+
function ge() {
|
|
11068
11074
|
let e = C.value?.getSubPaneIndicators() ?? [];
|
|
11069
|
-
|
|
11075
|
+
B.value = [];
|
|
11070
11076
|
for (let t of e) {
|
|
11071
11077
|
let e = `sub_${t}`, n = Vc({
|
|
11072
11078
|
paneId: e,
|
|
11073
11079
|
title: t,
|
|
11074
|
-
getTitleInfo: () =>
|
|
11080
|
+
getTitleInfo: () => ve(e)
|
|
11075
11081
|
});
|
|
11076
|
-
C.value?.useRenderer(n),
|
|
11082
|
+
C.value?.useRenderer(n), B.value.push({
|
|
11077
11083
|
id: e,
|
|
11078
11084
|
indicatorId: t,
|
|
11079
11085
|
rendererName: `${t.toLowerCase()}_${e}`,
|
|
11080
11086
|
paneTitleRendererName: n.name,
|
|
11081
|
-
params:
|
|
11087
|
+
params: de(t)
|
|
11082
11088
|
}), R.value.includes(t) || R.value.push(t);
|
|
11083
11089
|
}
|
|
11084
11090
|
}
|
|
11085
|
-
function
|
|
11086
|
-
let n =
|
|
11091
|
+
function _e(e, t) {
|
|
11092
|
+
let n = B.value.find((t) => t.id === e);
|
|
11087
11093
|
if (!n) return;
|
|
11088
11094
|
let r = n.indicatorId;
|
|
11089
|
-
C.value?.removeRenderer(n.paneTitleRendererName), C.value?.removeSubPane(r), C.value?.createSubPane(t,
|
|
11095
|
+
C.value?.removeRenderer(n.paneTitleRendererName), C.value?.removeSubPane(r), C.value?.createSubPane(t, de(t));
|
|
11090
11096
|
let i = `sub_${t}`, a = Vc({
|
|
11091
11097
|
paneId: i,
|
|
11092
11098
|
title: t,
|
|
11093
|
-
getTitleInfo: () =>
|
|
11099
|
+
getTitleInfo: () => ve(i)
|
|
11094
11100
|
});
|
|
11095
11101
|
C.value?.useRenderer(a);
|
|
11096
|
-
let o =
|
|
11097
|
-
o !== -1 && (
|
|
11102
|
+
let o = B.value.findIndex((t) => t.id === e);
|
|
11103
|
+
o !== -1 && (B.value[o] = {
|
|
11098
11104
|
id: i,
|
|
11099
11105
|
indicatorId: t,
|
|
11100
11106
|
rendererName: `${t.toLowerCase()}_${i}`,
|
|
11101
11107
|
paneTitleRendererName: a.name,
|
|
11102
|
-
params:
|
|
11108
|
+
params: de(t)
|
|
11103
11109
|
}), R.value = R.value.filter((e) => e !== r), R.value.includes(t) || R.value.push(t);
|
|
11104
11110
|
}
|
|
11105
|
-
function
|
|
11106
|
-
let t =
|
|
11111
|
+
function ve(e) {
|
|
11112
|
+
let t = B.value.find((t) => t.id === e);
|
|
11107
11113
|
if (!t) return null;
|
|
11108
11114
|
let n = C.value?.getData();
|
|
11109
11115
|
if (!n || n.length === 0) return null;
|
|
@@ -11127,28 +11133,48 @@ var Hc = { class: "chart-wrapper" }, Uc = 4, Wc = /* @__PURE__ */ go(/* @__PURE_
|
|
|
11127
11133
|
default: return null;
|
|
11128
11134
|
}
|
|
11129
11135
|
}
|
|
11130
|
-
function
|
|
11136
|
+
function ye(e, t) {
|
|
11131
11137
|
if (e === "MA" || e === "BOLL" || e === "EXPMA" || e === "ENE") {
|
|
11132
11138
|
t ? R.value.includes(e) || R.value.push(e) : R.value = R.value.filter((t) => t !== e);
|
|
11133
11139
|
return;
|
|
11134
11140
|
}
|
|
11135
|
-
if (
|
|
11141
|
+
if (V.includes(e)) {
|
|
11136
11142
|
if (t) {
|
|
11137
|
-
if (R.value.includes(e) || R.value.push(e),
|
|
11138
|
-
if (!
|
|
11139
|
-
let t =
|
|
11140
|
-
t &&
|
|
11143
|
+
if (R.value.includes(e) || R.value.push(e), B.value.find((t) => t.indicatorId === e)) return;
|
|
11144
|
+
if (!fe(e)) {
|
|
11145
|
+
let t = B.value[B.value.length - 1];
|
|
11146
|
+
t && _e(t.id, e);
|
|
11141
11147
|
}
|
|
11142
|
-
} else R.value = R.value.filter((t) => t !== e),
|
|
11148
|
+
} else R.value = R.value.filter((t) => t !== e), B.value.filter((t) => t.indicatorId === e).forEach((e) => pe(e.id));
|
|
11143
11149
|
E();
|
|
11144
11150
|
}
|
|
11145
11151
|
}
|
|
11152
|
+
function be() {
|
|
11153
|
+
C.value?.updateRendererConfig("mainIndicatorLegend", { indicators: {
|
|
11154
|
+
MA: {
|
|
11155
|
+
enabled: R.value.includes("MA"),
|
|
11156
|
+
params: z.value.MA || {}
|
|
11157
|
+
},
|
|
11158
|
+
BOLL: {
|
|
11159
|
+
enabled: R.value.includes("BOLL"),
|
|
11160
|
+
params: z.value.BOLL || {}
|
|
11161
|
+
},
|
|
11162
|
+
EXPMA: {
|
|
11163
|
+
enabled: R.value.includes("EXPMA"),
|
|
11164
|
+
params: z.value.EXPMA || {}
|
|
11165
|
+
},
|
|
11166
|
+
ENE: {
|
|
11167
|
+
enabled: R.value.includes("ENE"),
|
|
11168
|
+
params: z.value.ENE || {}
|
|
11169
|
+
}
|
|
11170
|
+
} });
|
|
11171
|
+
}
|
|
11146
11172
|
function xe(e, t) {
|
|
11147
|
-
if (
|
|
11148
|
-
e === "BOLL" && C.value?.updateRendererConfig("boll", t), e === "EXPMA" && C.value?.updateRendererConfig("expma", t), e === "ENE" && C.value?.updateRendererConfig("ene", t), E();
|
|
11173
|
+
if (z.value[e] = t, e === "MA" || e === "BOLL" || e === "EXPMA" || e === "ENE") {
|
|
11174
|
+
e === "BOLL" && C.value?.updateRendererConfig("boll", t), e === "EXPMA" && C.value?.updateRendererConfig("expma", t), e === "ENE" && C.value?.updateRendererConfig("ene", t), be(), E();
|
|
11149
11175
|
return;
|
|
11150
11176
|
}
|
|
11151
|
-
|
|
11177
|
+
V.includes(e) && B.value.filter((t) => t.indicatorId === e).forEach((e) => {
|
|
11152
11178
|
e.params = { ...t }, C.value?.updateRendererConfig(e.rendererName, t);
|
|
11153
11179
|
}), E();
|
|
11154
11180
|
}
|
|
@@ -11163,10 +11189,10 @@ var Hc = { class: "chart-wrapper" }, Uc = 4, Wc = /* @__PURE__ */ go(/* @__PURE_
|
|
|
11163
11189
|
return t({
|
|
11164
11190
|
scheduleRender: E,
|
|
11165
11191
|
scrollToRight: Ce,
|
|
11166
|
-
addSubPane:
|
|
11167
|
-
removeSubPane:
|
|
11168
|
-
switchSubIndicator:
|
|
11169
|
-
clearAllSubPanes:
|
|
11192
|
+
addSubPane: fe,
|
|
11193
|
+
removeSubPane: pe,
|
|
11194
|
+
switchSubIndicator: _e,
|
|
11195
|
+
clearAllSubPanes: me,
|
|
11170
11196
|
get plugin() {
|
|
11171
11197
|
return C.value?.plugin;
|
|
11172
11198
|
}
|
|
@@ -11174,7 +11200,7 @@ var Hc = { class: "chart-wrapper" }, Uc = 4, Wc = /* @__PURE__ */ go(/* @__PURE_
|
|
|
11174
11200
|
let e = v.value, t = u.value, r = c.value;
|
|
11175
11201
|
if (!e || !t || !r) return;
|
|
11176
11202
|
let i = (e) => {
|
|
11177
|
-
C.value?.interaction.onWheel(e),
|
|
11203
|
+
C.value?.interaction.onWheel(e), ae();
|
|
11178
11204
|
};
|
|
11179
11205
|
e.addEventListener("wheel", i, { passive: !1 });
|
|
11180
11206
|
let a = new yc({
|
|
@@ -11235,7 +11261,7 @@ var Hc = { class: "chart-wrapper" }, Uc = 4, Wc = /* @__PURE__ */ go(/* @__PURE_
|
|
|
11235
11261
|
})), C.value = a, a.resize(), w.value = new Wi(a), w.value.on("config:error", (e) => {
|
|
11236
11262
|
console.error("Semantic config error:", e);
|
|
11237
11263
|
}), w.value.on("config:ready", () => {
|
|
11238
|
-
T.value = a.getData()?.length ?? 0,
|
|
11264
|
+
T.value = a.getData()?.length ?? 0, re(), he(), ge(), d(() => Ce());
|
|
11239
11265
|
}), w.value.applyConfig(n.semanticConfig).then((e) => {
|
|
11240
11266
|
e && !e.success && console.error("Semantic config apply failed:", e.errors);
|
|
11241
11267
|
}), a.interaction.setOnMarkerHover((e) => {
|
|
@@ -11292,12 +11318,12 @@ var Hc = { class: "chart-wrapper" }, Uc = 4, Wc = /* @__PURE__ */ go(/* @__PURE_
|
|
|
11292
11318
|
ref_key: "xAxisCanvasRef",
|
|
11293
11319
|
ref: c
|
|
11294
11320
|
}, null, 512),
|
|
11295
|
-
|
|
11321
|
+
F.value ? (g(), i(_o, {
|
|
11296
11322
|
key: 0,
|
|
11297
|
-
k:
|
|
11298
|
-
index:
|
|
11299
|
-
data:
|
|
11300
|
-
pos:
|
|
11323
|
+
k: F.value,
|
|
11324
|
+
index: I.value,
|
|
11325
|
+
data: ne.value,
|
|
11326
|
+
pos: te.value,
|
|
11301
11327
|
"set-el": D
|
|
11302
11328
|
}, null, 8, [
|
|
11303
11329
|
"k",
|
|
@@ -11312,13 +11338,13 @@ var Hc = { class: "chart-wrapper" }, Uc = 4, Wc = /* @__PURE__ */ go(/* @__PURE_
|
|
|
11312
11338
|
}, null, 8, ["marker", "pos"])) : a("", !0)
|
|
11313
11339
|
], 512)], 4)], 34), l(cs, {
|
|
11314
11340
|
"active-indicators": R.value,
|
|
11315
|
-
"indicator-params":
|
|
11316
|
-
onToggle:
|
|
11341
|
+
"indicator-params": z.value,
|
|
11342
|
+
onToggle: ye,
|
|
11317
11343
|
onUpdateParams: xe
|
|
11318
11344
|
}, null, 8, ["active-indicators", "indicator-params"])]));
|
|
11319
11345
|
}
|
|
11320
|
-
}), [["__scopeId", "data-v-
|
|
11346
|
+
}), [["__scopeId", "data-v-d60162bc"]]), Gc = { install(e) {
|
|
11321
11347
|
e.component("KLineChart", Wc);
|
|
11322
11348
|
} };
|
|
11323
11349
|
//#endregion
|
|
11324
|
-
export { ua as ConfigManager,
|
|
11350
|
+
export { ua as ConfigManager, I as EventBus, sa as GLOBAL_PANE_ID, la as HookSystem, Wc as KLineChart, Gc as KMapPlugin, da as PluginHostImpl, ca as PluginRegistry, aa as PluginState, Y as RENDERER_PRIORITY, ma as RendererPluginManager, fa as createPluginHost, oa as wrapPaneInfo };
|