@quidgest/chatbot 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/components/CBMessage.vue.d.ts +4 -4
- package/dist/components/ChatBot.vue.d.ts +6 -5
- package/dist/components/index.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -3066
- package/dist/index.mjs +1811 -2238
- package/dist/style.css +1 -93
- package/package.json +11 -7
- package/src/assets/styles/styles.scss +6 -6
- package/src/components/CBMessage.vue +4 -5
- package/src/components/ChatBot.vue +102 -88
- package/src/components/index.ts +3 -6
- package/src/types/message.type.ts +5 -5
- package/src/types/texts.type.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,382 +1,243 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, getCurrentInstance, inject, ref, provide, withModifiers, createVNode, unref, createCommentVNode, createElementVNode, Fragment, createTextVNode, toDisplayString, renderSlot, createBlock, resolveDynamicComponent, h as
|
|
2
|
-
function
|
|
3
|
-
return function
|
|
4
|
-
return
|
|
1
|
+
import { defineComponent as L, computed as B, openBlock as y, createElementBlock as E, normalizeClass as j, normalizeStyle as he, getCurrentInstance as lt, inject as zt, ref as G, provide as Ut, withModifiers as Mt, createVNode as M, unref as w, createCommentVNode as k, createElementVNode as _, Fragment as ue, createTextVNode as Me, toDisplayString as re, renderSlot as x, createBlock as oe, resolveDynamicComponent as _t, h as _e, mergeProps as De, mergeModels as Ht, useModel as Qt, createSlots as ct, withCtx as I, withDirectives as Wt, vModelDynamic as Gt, normalizeProps as He, guardReactiveProps as Qe, onMounted as Vt, nextTick as We, watch as Jt, renderList as Xt, isRef as Yt, withKeys as Zt } from "vue";
|
|
2
|
+
function ut(e, t) {
|
|
3
|
+
return function() {
|
|
4
|
+
return e.apply(t, arguments);
|
|
5
5
|
};
|
|
6
6
|
}
|
|
7
|
-
const { toString } = Object.prototype
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const kindOfTest = (type) => {
|
|
14
|
-
type = type.toLowerCase();
|
|
15
|
-
return (thing) => kindOf(thing) === type;
|
|
16
|
-
};
|
|
17
|
-
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
18
|
-
const { isArray } = Array;
|
|
19
|
-
const isUndefined = typeOfTest("undefined");
|
|
20
|
-
function isBuffer(val) {
|
|
21
|
-
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
7
|
+
const { toString: Kt } = Object.prototype, { getPrototypeOf: ke } = Object, me = /* @__PURE__ */ ((e) => (t) => {
|
|
8
|
+
const n = Kt.call(t);
|
|
9
|
+
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
10
|
+
})(/* @__PURE__ */ Object.create(null)), z = (e) => (e = e.toLowerCase(), (t) => me(t) === e), ge = (e) => (t) => typeof t === e, { isArray: $ } = Array, se = ge("undefined");
|
|
11
|
+
function $t(e) {
|
|
12
|
+
return e !== null && !se(e) && e.constructor !== null && !se(e.constructor) && F(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
22
13
|
}
|
|
23
|
-
const
|
|
24
|
-
function
|
|
25
|
-
let
|
|
26
|
-
|
|
27
|
-
result = ArrayBuffer.isView(val);
|
|
28
|
-
} else {
|
|
29
|
-
result = val && val.buffer && isArrayBuffer(val.buffer);
|
|
30
|
-
}
|
|
31
|
-
return result;
|
|
14
|
+
const dt = z("ArrayBuffer");
|
|
15
|
+
function en(e) {
|
|
16
|
+
let t;
|
|
17
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && dt(e.buffer), t;
|
|
32
18
|
}
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const isDate = kindOfTest("Date");
|
|
46
|
-
const isFile = kindOfTest("File");
|
|
47
|
-
const isBlob = kindOfTest("Blob");
|
|
48
|
-
const isFileList = kindOfTest("FileList");
|
|
49
|
-
const isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
50
|
-
const isFormData = (thing) => {
|
|
51
|
-
let kind;
|
|
52
|
-
return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
|
|
53
|
-
kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
|
|
54
|
-
};
|
|
55
|
-
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
56
|
-
const trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
57
|
-
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
58
|
-
if (obj === null || typeof obj === "undefined") {
|
|
19
|
+
const tn = ge("string"), F = ge("function"), ft = ge("number"), be = (e) => e !== null && typeof e == "object", nn = (e) => e === !0 || e === !1, le = (e) => {
|
|
20
|
+
if (me(e) !== "object")
|
|
21
|
+
return !1;
|
|
22
|
+
const t = ke(e);
|
|
23
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
24
|
+
}, rn = z("Date"), sn = z("File"), on = z("Blob"), an = z("FileList"), ln = (e) => be(e) && F(e.pipe), cn = (e) => {
|
|
25
|
+
let t;
|
|
26
|
+
return e && (typeof FormData == "function" && e instanceof FormData || F(e.append) && ((t = me(e)) === "formdata" || // detect form-data instance
|
|
27
|
+
t === "object" && F(e.toString) && e.toString() === "[object FormData]"));
|
|
28
|
+
}, un = z("URLSearchParams"), [dn, fn, pn, hn] = ["ReadableStream", "Request", "Response", "Headers"].map(z), mn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
29
|
+
function ie(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
30
|
+
if (e === null || typeof e > "u")
|
|
59
31
|
return;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
for (
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
} else {
|
|
71
|
-
const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
72
|
-
const len = keys.length;
|
|
73
|
-
let key;
|
|
74
|
-
for (i2 = 0; i2 < len; i2++) {
|
|
75
|
-
key = keys[i2];
|
|
76
|
-
fn.call(null, obj[key], key, obj);
|
|
77
|
-
}
|
|
32
|
+
let r, s;
|
|
33
|
+
if (typeof e != "object" && (e = [e]), $(e))
|
|
34
|
+
for (r = 0, s = e.length; r < s; r++)
|
|
35
|
+
t.call(null, e[r], r, e);
|
|
36
|
+
else {
|
|
37
|
+
const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
|
|
38
|
+
let l;
|
|
39
|
+
for (r = 0; r < o; r++)
|
|
40
|
+
l = i[r], t.call(null, e[l], l, e);
|
|
78
41
|
}
|
|
79
42
|
}
|
|
80
|
-
function
|
|
81
|
-
|
|
82
|
-
const
|
|
83
|
-
let
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
if (key === _key.toLowerCase()) {
|
|
88
|
-
return _key;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
43
|
+
function pt(e, t) {
|
|
44
|
+
t = t.toLowerCase();
|
|
45
|
+
const n = Object.keys(e);
|
|
46
|
+
let r = n.length, s;
|
|
47
|
+
for (; r-- > 0; )
|
|
48
|
+
if (s = n[r], t === s.toLowerCase())
|
|
49
|
+
return s;
|
|
91
50
|
return null;
|
|
92
51
|
}
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
})();
|
|
98
|
-
const isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
99
|
-
function merge() {
|
|
100
|
-
const { caseless } = isContextDefined(this) && this || {};
|
|
101
|
-
const result = {};
|
|
102
|
-
const assignValue = (val, key) => {
|
|
103
|
-
const targetKey = caseless && findKey(result, key) || key;
|
|
104
|
-
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
105
|
-
result[targetKey] = merge(result[targetKey], val);
|
|
106
|
-
} else if (isPlainObject(val)) {
|
|
107
|
-
result[targetKey] = merge({}, val);
|
|
108
|
-
} else if (isArray(val)) {
|
|
109
|
-
result[targetKey] = val.slice();
|
|
110
|
-
} else {
|
|
111
|
-
result[targetKey] = val;
|
|
112
|
-
}
|
|
52
|
+
const J = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ht = (e) => !se(e) && e !== J;
|
|
53
|
+
function Re() {
|
|
54
|
+
const { caseless: e } = ht(this) && this || {}, t = {}, n = (r, s) => {
|
|
55
|
+
const i = e && pt(t, s) || s;
|
|
56
|
+
le(t[i]) && le(r) ? t[i] = Re(t[i], r) : le(r) ? t[i] = Re({}, r) : $(r) ? t[i] = r.slice() : t[i] = r;
|
|
113
57
|
};
|
|
114
|
-
for (let
|
|
115
|
-
arguments[
|
|
116
|
-
|
|
117
|
-
return result;
|
|
58
|
+
for (let r = 0, s = arguments.length; r < s; r++)
|
|
59
|
+
arguments[r] && ie(arguments[r], n);
|
|
60
|
+
return t;
|
|
118
61
|
}
|
|
119
|
-
const
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
};
|
|
129
|
-
const stripBOM = (content) => {
|
|
130
|
-
if (content.charCodeAt(0) === 65279) {
|
|
131
|
-
content = content.slice(1);
|
|
132
|
-
}
|
|
133
|
-
return content;
|
|
134
|
-
};
|
|
135
|
-
const inherits = (constructor, superConstructor, props, descriptors2) => {
|
|
136
|
-
constructor.prototype = Object.create(superConstructor.prototype, descriptors2);
|
|
137
|
-
constructor.prototype.constructor = constructor;
|
|
138
|
-
Object.defineProperty(constructor, "super", {
|
|
139
|
-
value: superConstructor.prototype
|
|
140
|
-
});
|
|
141
|
-
props && Object.assign(constructor.prototype, props);
|
|
142
|
-
};
|
|
143
|
-
const toFlatObject = (sourceObj, destObj, filter2, propFilter) => {
|
|
144
|
-
let props;
|
|
145
|
-
let i2;
|
|
146
|
-
let prop;
|
|
147
|
-
const merged = {};
|
|
148
|
-
destObj = destObj || {};
|
|
149
|
-
if (sourceObj == null)
|
|
150
|
-
return destObj;
|
|
62
|
+
const gn = (e, t, n, { allOwnKeys: r } = {}) => (ie(t, (s, i) => {
|
|
63
|
+
n && F(s) ? e[i] = ut(s, n) : e[i] = s;
|
|
64
|
+
}, { allOwnKeys: r }), e), bn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), yn = (e, t, n, r) => {
|
|
65
|
+
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
66
|
+
value: t.prototype
|
|
67
|
+
}), n && Object.assign(e.prototype, n);
|
|
68
|
+
}, wn = (e, t, n, r) => {
|
|
69
|
+
let s, i, o;
|
|
70
|
+
const l = {};
|
|
71
|
+
if (t = t || {}, e == null) return t;
|
|
151
72
|
do {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
73
|
+
for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
|
|
74
|
+
o = s[i], (!r || r(o, e, t)) && !l[o] && (t[o] = e[o], l[o] = !0);
|
|
75
|
+
e = n !== !1 && ke(e);
|
|
76
|
+
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
77
|
+
return t;
|
|
78
|
+
}, An = (e, t, n) => {
|
|
79
|
+
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
80
|
+
const r = e.indexOf(t, n);
|
|
81
|
+
return r !== -1 && r === n;
|
|
82
|
+
}, En = (e) => {
|
|
83
|
+
if (!e) return null;
|
|
84
|
+
if ($(e)) return e;
|
|
85
|
+
let t = e.length;
|
|
86
|
+
if (!ft(t)) return null;
|
|
87
|
+
const n = new Array(t);
|
|
88
|
+
for (; t-- > 0; )
|
|
89
|
+
n[t] = e[t];
|
|
90
|
+
return n;
|
|
91
|
+
}, Sn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ke(Uint8Array)), vn = (e, t) => {
|
|
92
|
+
const r = (e && e[Symbol.iterator]).call(e);
|
|
93
|
+
let s;
|
|
94
|
+
for (; (s = r.next()) && !s.done; ) {
|
|
95
|
+
const i = s.value;
|
|
96
|
+
t.call(e, i[0], i[1]);
|
|
97
|
+
}
|
|
98
|
+
}, Rn = (e, t) => {
|
|
99
|
+
let n;
|
|
100
|
+
const r = [];
|
|
101
|
+
for (; (n = e.exec(t)) !== null; )
|
|
102
|
+
r.push(n);
|
|
103
|
+
return r;
|
|
104
|
+
}, Tn = z("HTMLFormElement"), Cn = (e) => e.toLowerCase().replace(
|
|
105
|
+
/[-_\s]([a-z\d])(\w*)/g,
|
|
106
|
+
function(n, r, s) {
|
|
107
|
+
return r.toUpperCase() + s;
|
|
108
|
+
}
|
|
109
|
+
), Ge = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), On = z("RegExp"), mt = (e, t) => {
|
|
110
|
+
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
111
|
+
ie(n, (s, i) => {
|
|
112
|
+
let o;
|
|
113
|
+
(o = t(s, i, e)) !== !1 && (r[i] = o || s);
|
|
114
|
+
}), Object.defineProperties(e, r);
|
|
115
|
+
}, Bn = (e) => {
|
|
116
|
+
mt(e, (t, n) => {
|
|
117
|
+
if (F(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
118
|
+
return !1;
|
|
119
|
+
const r = e[n];
|
|
120
|
+
if (F(r)) {
|
|
121
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
122
|
+
t.writable = !1;
|
|
123
|
+
return;
|
|
159
124
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
return destObj;
|
|
164
|
-
};
|
|
165
|
-
const endsWith = (str, searchString, position) => {
|
|
166
|
-
str = String(str);
|
|
167
|
-
if (position === void 0 || position > str.length) {
|
|
168
|
-
position = str.length;
|
|
169
|
-
}
|
|
170
|
-
position -= searchString.length;
|
|
171
|
-
const lastIndex = str.indexOf(searchString, position);
|
|
172
|
-
return lastIndex !== -1 && lastIndex === position;
|
|
173
|
-
};
|
|
174
|
-
const toArray = (thing) => {
|
|
175
|
-
if (!thing)
|
|
176
|
-
return null;
|
|
177
|
-
if (isArray(thing))
|
|
178
|
-
return thing;
|
|
179
|
-
let i2 = thing.length;
|
|
180
|
-
if (!isNumber(i2))
|
|
181
|
-
return null;
|
|
182
|
-
const arr = new Array(i2);
|
|
183
|
-
while (i2-- > 0) {
|
|
184
|
-
arr[i2] = thing[i2];
|
|
185
|
-
}
|
|
186
|
-
return arr;
|
|
187
|
-
};
|
|
188
|
-
const isTypedArray = /* @__PURE__ */ ((TypedArray) => {
|
|
189
|
-
return (thing) => {
|
|
190
|
-
return TypedArray && thing instanceof TypedArray;
|
|
191
|
-
};
|
|
192
|
-
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
193
|
-
const forEachEntry = (obj, fn) => {
|
|
194
|
-
const generator = obj && obj[Symbol.iterator];
|
|
195
|
-
const iterator = generator.call(obj);
|
|
196
|
-
let result;
|
|
197
|
-
while ((result = iterator.next()) && !result.done) {
|
|
198
|
-
const pair = result.value;
|
|
199
|
-
fn.call(obj, pair[0], pair[1]);
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
|
-
const matchAll = (regExp, str) => {
|
|
203
|
-
let matches;
|
|
204
|
-
const arr = [];
|
|
205
|
-
while ((matches = regExp.exec(str)) !== null) {
|
|
206
|
-
arr.push(matches);
|
|
207
|
-
}
|
|
208
|
-
return arr;
|
|
209
|
-
};
|
|
210
|
-
const isHTMLForm = kindOfTest("HTMLFormElement");
|
|
211
|
-
const toCamelCase = (str) => {
|
|
212
|
-
return str.toLowerCase().replace(
|
|
213
|
-
/[-_\s]([a-z\d])(\w*)/g,
|
|
214
|
-
function replacer(m2, p1, p2) {
|
|
215
|
-
return p1.toUpperCase() + p2;
|
|
216
|
-
}
|
|
217
|
-
);
|
|
218
|
-
};
|
|
219
|
-
const hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
220
|
-
const isRegExp = kindOfTest("RegExp");
|
|
221
|
-
const reduceDescriptors = (obj, reducer) => {
|
|
222
|
-
const descriptors2 = Object.getOwnPropertyDescriptors(obj);
|
|
223
|
-
const reducedDescriptors = {};
|
|
224
|
-
forEach(descriptors2, (descriptor, name) => {
|
|
225
|
-
let ret;
|
|
226
|
-
if ((ret = reducer(descriptor, name, obj)) !== false) {
|
|
227
|
-
reducedDescriptors[name] = ret || descriptor;
|
|
228
|
-
}
|
|
229
|
-
});
|
|
230
|
-
Object.defineProperties(obj, reducedDescriptors);
|
|
231
|
-
};
|
|
232
|
-
const freezeMethods = (obj) => {
|
|
233
|
-
reduceDescriptors(obj, (descriptor, name) => {
|
|
234
|
-
if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
|
|
235
|
-
return false;
|
|
236
|
-
}
|
|
237
|
-
const value = obj[name];
|
|
238
|
-
if (!isFunction(value))
|
|
239
|
-
return;
|
|
240
|
-
descriptor.enumerable = false;
|
|
241
|
-
if ("writable" in descriptor) {
|
|
242
|
-
descriptor.writable = false;
|
|
243
|
-
return;
|
|
244
|
-
}
|
|
245
|
-
if (!descriptor.set) {
|
|
246
|
-
descriptor.set = () => {
|
|
247
|
-
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
248
|
-
};
|
|
125
|
+
t.set || (t.set = () => {
|
|
126
|
+
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
127
|
+
});
|
|
249
128
|
}
|
|
250
129
|
});
|
|
251
|
-
}
|
|
252
|
-
const
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
arr.forEach((value) => {
|
|
256
|
-
obj[value] = true;
|
|
130
|
+
}, xn = (e, t) => {
|
|
131
|
+
const n = {}, r = (s) => {
|
|
132
|
+
s.forEach((i) => {
|
|
133
|
+
n[i] = !0;
|
|
257
134
|
});
|
|
258
135
|
};
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
136
|
+
return $(e) ? r(e) : r(String(e).split(t)), n;
|
|
137
|
+
}, Pn = () => {
|
|
138
|
+
}, Nn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Ae = "abcdefghijklmnopqrstuvwxyz", Ve = "0123456789", gt = {
|
|
139
|
+
DIGIT: Ve,
|
|
140
|
+
ALPHA: Ae,
|
|
141
|
+
ALPHA_DIGIT: Ae + Ae.toUpperCase() + Ve
|
|
142
|
+
}, Dn = (e = 16, t = gt.ALPHA_DIGIT) => {
|
|
143
|
+
let n = "";
|
|
144
|
+
const { length: r } = t;
|
|
145
|
+
for (; e--; )
|
|
146
|
+
n += t[Math.random() * r | 0];
|
|
147
|
+
return n;
|
|
267
148
|
};
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
const ALPHABET = {
|
|
271
|
-
DIGIT,
|
|
272
|
-
ALPHA,
|
|
273
|
-
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
274
|
-
};
|
|
275
|
-
const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
276
|
-
let str = "";
|
|
277
|
-
const { length } = alphabet;
|
|
278
|
-
while (size--) {
|
|
279
|
-
str += alphabet[Math.random() * length | 0];
|
|
280
|
-
}
|
|
281
|
-
return str;
|
|
282
|
-
};
|
|
283
|
-
function isSpecCompliantForm(thing) {
|
|
284
|
-
return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);
|
|
149
|
+
function kn(e) {
|
|
150
|
+
return !!(e && F(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
285
151
|
}
|
|
286
|
-
const
|
|
287
|
-
const
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
if (stack.indexOf(source) >= 0) {
|
|
152
|
+
const Fn = (e) => {
|
|
153
|
+
const t = new Array(10), n = (r, s) => {
|
|
154
|
+
if (be(r)) {
|
|
155
|
+
if (t.indexOf(r) >= 0)
|
|
291
156
|
return;
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
});
|
|
300
|
-
stack[i2] = void 0;
|
|
301
|
-
return target;
|
|
157
|
+
if (!("toJSON" in r)) {
|
|
158
|
+
t[s] = r;
|
|
159
|
+
const i = $(r) ? [] : {};
|
|
160
|
+
return ie(r, (o, l) => {
|
|
161
|
+
const d = n(o, s + 1);
|
|
162
|
+
!se(d) && (i[l] = d);
|
|
163
|
+
}), t[s] = void 0, i;
|
|
302
164
|
}
|
|
303
165
|
}
|
|
304
|
-
return
|
|
166
|
+
return r;
|
|
305
167
|
};
|
|
306
|
-
return
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
168
|
+
return n(e, 0);
|
|
169
|
+
}, Ln = z("AsyncFunction"), qn = (e) => e && (be(e) || F(e)) && F(e.then) && F(e.catch), bt = ((e, t) => e ? setImmediate : t ? ((n, r) => (J.addEventListener("message", ({ source: s, data: i }) => {
|
|
170
|
+
s === J && i === n && r.length && r.shift()();
|
|
171
|
+
}, !1), (s) => {
|
|
172
|
+
r.push(s), J.postMessage(n, "*");
|
|
173
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
174
|
+
typeof setImmediate == "function",
|
|
175
|
+
F(J.postMessage)
|
|
176
|
+
), In = typeof queueMicrotask < "u" ? queueMicrotask.bind(J) : typeof process < "u" && process.nextTick || bt, a = {
|
|
177
|
+
isArray: $,
|
|
178
|
+
isArrayBuffer: dt,
|
|
179
|
+
isBuffer: $t,
|
|
180
|
+
isFormData: cn,
|
|
181
|
+
isArrayBufferView: en,
|
|
182
|
+
isString: tn,
|
|
183
|
+
isNumber: ft,
|
|
184
|
+
isBoolean: nn,
|
|
185
|
+
isObject: be,
|
|
186
|
+
isPlainObject: le,
|
|
187
|
+
isReadableStream: dn,
|
|
188
|
+
isRequest: fn,
|
|
189
|
+
isResponse: pn,
|
|
190
|
+
isHeaders: hn,
|
|
191
|
+
isUndefined: se,
|
|
192
|
+
isDate: rn,
|
|
193
|
+
isFile: sn,
|
|
194
|
+
isBlob: on,
|
|
195
|
+
isRegExp: On,
|
|
196
|
+
isFunction: F,
|
|
197
|
+
isStream: ln,
|
|
198
|
+
isURLSearchParams: un,
|
|
199
|
+
isTypedArray: Sn,
|
|
200
|
+
isFileList: an,
|
|
201
|
+
forEach: ie,
|
|
202
|
+
merge: Re,
|
|
203
|
+
extend: gn,
|
|
204
|
+
trim: mn,
|
|
205
|
+
stripBOM: bn,
|
|
206
|
+
inherits: yn,
|
|
207
|
+
toFlatObject: wn,
|
|
208
|
+
kindOf: me,
|
|
209
|
+
kindOfTest: z,
|
|
210
|
+
endsWith: An,
|
|
211
|
+
toArray: En,
|
|
212
|
+
forEachEntry: vn,
|
|
213
|
+
matchAll: Rn,
|
|
214
|
+
isHTMLForm: Tn,
|
|
215
|
+
hasOwnProperty: Ge,
|
|
216
|
+
hasOwnProp: Ge,
|
|
347
217
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
348
|
-
reduceDescriptors,
|
|
349
|
-
freezeMethods,
|
|
350
|
-
toObjectSet,
|
|
351
|
-
toCamelCase,
|
|
352
|
-
noop,
|
|
353
|
-
toFiniteNumber,
|
|
354
|
-
findKey,
|
|
355
|
-
global:
|
|
356
|
-
isContextDefined,
|
|
357
|
-
ALPHABET,
|
|
358
|
-
generateString,
|
|
359
|
-
isSpecCompliantForm,
|
|
360
|
-
toJSONObject,
|
|
361
|
-
isAsyncFn,
|
|
362
|
-
isThenable
|
|
218
|
+
reduceDescriptors: mt,
|
|
219
|
+
freezeMethods: Bn,
|
|
220
|
+
toObjectSet: xn,
|
|
221
|
+
toCamelCase: Cn,
|
|
222
|
+
noop: Pn,
|
|
223
|
+
toFiniteNumber: Nn,
|
|
224
|
+
findKey: pt,
|
|
225
|
+
global: J,
|
|
226
|
+
isContextDefined: ht,
|
|
227
|
+
ALPHABET: gt,
|
|
228
|
+
generateString: Dn,
|
|
229
|
+
isSpecCompliantForm: kn,
|
|
230
|
+
toJSONObject: Fn,
|
|
231
|
+
isAsyncFn: Ln,
|
|
232
|
+
isThenable: qn,
|
|
233
|
+
setImmediate: bt,
|
|
234
|
+
asap: In
|
|
363
235
|
};
|
|
364
|
-
function
|
|
365
|
-
Error.call(this);
|
|
366
|
-
if (Error.captureStackTrace) {
|
|
367
|
-
Error.captureStackTrace(this, this.constructor);
|
|
368
|
-
} else {
|
|
369
|
-
this.stack = new Error().stack;
|
|
370
|
-
}
|
|
371
|
-
this.message = message;
|
|
372
|
-
this.name = "AxiosError";
|
|
373
|
-
code && (this.code = code);
|
|
374
|
-
config && (this.config = config);
|
|
375
|
-
request && (this.request = request);
|
|
376
|
-
response && (this.response = response);
|
|
236
|
+
function b(e, t, n, r, s) {
|
|
237
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
377
238
|
}
|
|
378
|
-
|
|
379
|
-
toJSON: function
|
|
239
|
+
a.inherits(b, Error, {
|
|
240
|
+
toJSON: function() {
|
|
380
241
|
return {
|
|
381
242
|
// Standard
|
|
382
243
|
message: this.message,
|
|
@@ -390,14 +251,13 @@ utils$1.inherits(AxiosError, Error, {
|
|
|
390
251
|
columnNumber: this.columnNumber,
|
|
391
252
|
stack: this.stack,
|
|
392
253
|
// Axios
|
|
393
|
-
config:
|
|
254
|
+
config: a.toJSONObject(this.config),
|
|
394
255
|
code: this.code,
|
|
395
|
-
status: this.
|
|
256
|
+
status: this.status
|
|
396
257
|
};
|
|
397
258
|
}
|
|
398
259
|
});
|
|
399
|
-
const
|
|
400
|
-
const descriptors = {};
|
|
260
|
+
const yt = b.prototype, wt = {};
|
|
401
261
|
[
|
|
402
262
|
"ERR_BAD_OPTION_VALUE",
|
|
403
263
|
"ERR_BAD_OPTION",
|
|
@@ -412,139 +272,98 @@ const descriptors = {};
|
|
|
412
272
|
"ERR_NOT_SUPPORT",
|
|
413
273
|
"ERR_INVALID_URL"
|
|
414
274
|
// eslint-disable-next-line func-names
|
|
415
|
-
].forEach((
|
|
416
|
-
|
|
275
|
+
].forEach((e) => {
|
|
276
|
+
wt[e] = { value: e };
|
|
417
277
|
});
|
|
418
|
-
Object.defineProperties(
|
|
419
|
-
Object.defineProperty(
|
|
420
|
-
|
|
421
|
-
const
|
|
422
|
-
|
|
423
|
-
return
|
|
424
|
-
}, (
|
|
425
|
-
return prop !== "isAxiosError";
|
|
426
|
-
});
|
|
427
|
-
AxiosError.call(axiosError, error.message, code, config, request, response);
|
|
428
|
-
axiosError.cause = error;
|
|
429
|
-
axiosError.name = error.name;
|
|
430
|
-
customProps && Object.assign(axiosError, customProps);
|
|
431
|
-
return axiosError;
|
|
278
|
+
Object.defineProperties(b, wt);
|
|
279
|
+
Object.defineProperty(yt, "isAxiosError", { value: !0 });
|
|
280
|
+
b.from = (e, t, n, r, s, i) => {
|
|
281
|
+
const o = Object.create(yt);
|
|
282
|
+
return a.toFlatObject(e, o, function(d) {
|
|
283
|
+
return d !== Error.prototype;
|
|
284
|
+
}, (l) => l !== "isAxiosError"), b.call(o, e.message, t, n, r, s), o.cause = e, o.name = e.name, i && Object.assign(o, i), o;
|
|
432
285
|
};
|
|
433
|
-
const
|
|
434
|
-
function
|
|
435
|
-
return
|
|
286
|
+
const jn = null;
|
|
287
|
+
function Te(e) {
|
|
288
|
+
return a.isPlainObject(e) || a.isArray(e);
|
|
436
289
|
}
|
|
437
|
-
function
|
|
438
|
-
return
|
|
290
|
+
function At(e) {
|
|
291
|
+
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
439
292
|
}
|
|
440
|
-
function
|
|
441
|
-
|
|
442
|
-
return
|
|
443
|
-
|
|
444
|
-
token = removeBrackets(token);
|
|
445
|
-
return !dots && i2 ? "[" + token + "]" : token;
|
|
446
|
-
}).join(dots ? "." : "");
|
|
293
|
+
function Je(e, t, n) {
|
|
294
|
+
return e ? e.concat(t).map(function(s, i) {
|
|
295
|
+
return s = At(s), !n && i ? "[" + s + "]" : s;
|
|
296
|
+
}).join(n ? "." : "") : t;
|
|
447
297
|
}
|
|
448
|
-
function
|
|
449
|
-
return
|
|
298
|
+
function zn(e) {
|
|
299
|
+
return a.isArray(e) && !e.some(Te);
|
|
450
300
|
}
|
|
451
|
-
const
|
|
452
|
-
return /^is[A-Z]/.test(
|
|
301
|
+
const Un = a.toFlatObject(a, {}, null, function(t) {
|
|
302
|
+
return /^is[A-Z]/.test(t);
|
|
453
303
|
});
|
|
454
|
-
function
|
|
455
|
-
if (!
|
|
304
|
+
function ye(e, t, n) {
|
|
305
|
+
if (!a.isObject(e))
|
|
456
306
|
throw new TypeError("target must be an object");
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
}, false, function defined(option, source) {
|
|
464
|
-
return !utils$1.isUndefined(source[option]);
|
|
307
|
+
t = t || new FormData(), n = a.toFlatObject(n, {
|
|
308
|
+
metaTokens: !0,
|
|
309
|
+
dots: !1,
|
|
310
|
+
indexes: !1
|
|
311
|
+
}, !1, function(g, h) {
|
|
312
|
+
return !a.isUndefined(h[g]);
|
|
465
313
|
});
|
|
466
|
-
const metaTokens =
|
|
467
|
-
|
|
468
|
-
const dots = options.dots;
|
|
469
|
-
const indexes = options.indexes;
|
|
470
|
-
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
471
|
-
const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
|
|
472
|
-
if (!utils$1.isFunction(visitor)) {
|
|
314
|
+
const r = n.metaTokens, s = n.visitor || u, i = n.dots, o = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
|
|
315
|
+
if (!a.isFunction(s))
|
|
473
316
|
throw new TypeError("visitor must be a function");
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
if (
|
|
477
|
-
return
|
|
478
|
-
if (
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
if (
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
let arr = value;
|
|
491
|
-
if (value && !path && typeof value === "object") {
|
|
492
|
-
if (utils$1.endsWith(key, "{}")) {
|
|
493
|
-
key = metaTokens ? key : key.slice(0, -2);
|
|
494
|
-
value = JSON.stringify(value);
|
|
495
|
-
} else if (utils$1.isArray(value) && isFlatArray(value) || (utils$1.isFileList(value) || utils$1.endsWith(key, "[]")) && (arr = utils$1.toArray(value))) {
|
|
496
|
-
key = removeBrackets(key);
|
|
497
|
-
arr.forEach(function each(el, index) {
|
|
498
|
-
!(utils$1.isUndefined(el) || el === null) && formData.append(
|
|
317
|
+
function c(p) {
|
|
318
|
+
if (p === null) return "";
|
|
319
|
+
if (a.isDate(p))
|
|
320
|
+
return p.toISOString();
|
|
321
|
+
if (!d && a.isBlob(p))
|
|
322
|
+
throw new b("Blob is not supported. Use a Buffer instead.");
|
|
323
|
+
return a.isArrayBuffer(p) || a.isTypedArray(p) ? d && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
324
|
+
}
|
|
325
|
+
function u(p, g, h) {
|
|
326
|
+
let v = p;
|
|
327
|
+
if (p && !h && typeof p == "object") {
|
|
328
|
+
if (a.endsWith(g, "{}"))
|
|
329
|
+
g = r ? g : g.slice(0, -2), p = JSON.stringify(p);
|
|
330
|
+
else if (a.isArray(p) && zn(p) || (a.isFileList(p) || a.endsWith(g, "[]")) && (v = a.toArray(p)))
|
|
331
|
+
return g = At(g), v.forEach(function(O, q) {
|
|
332
|
+
!(a.isUndefined(O) || O === null) && t.append(
|
|
499
333
|
// eslint-disable-next-line no-nested-ternary
|
|
500
|
-
|
|
501
|
-
|
|
334
|
+
o === !0 ? Je([g], q, i) : o === null ? g : g + "[]",
|
|
335
|
+
c(O)
|
|
502
336
|
);
|
|
503
|
-
});
|
|
504
|
-
return false;
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
if (isVisitable(value)) {
|
|
508
|
-
return true;
|
|
509
|
-
}
|
|
510
|
-
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
511
|
-
return false;
|
|
512
|
-
}
|
|
513
|
-
const stack = [];
|
|
514
|
-
const exposedHelpers = Object.assign(predicates, {
|
|
515
|
-
defaultVisitor,
|
|
516
|
-
convertValue,
|
|
517
|
-
isVisitable
|
|
518
|
-
});
|
|
519
|
-
function build(value, path) {
|
|
520
|
-
if (utils$1.isUndefined(value))
|
|
521
|
-
return;
|
|
522
|
-
if (stack.indexOf(value) !== -1) {
|
|
523
|
-
throw Error("Circular reference detected in " + path.join("."));
|
|
337
|
+
}), !1;
|
|
524
338
|
}
|
|
525
|
-
|
|
526
|
-
utils$1.forEach(value, function each(el, key) {
|
|
527
|
-
const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(
|
|
528
|
-
formData,
|
|
529
|
-
el,
|
|
530
|
-
utils$1.isString(key) ? key.trim() : key,
|
|
531
|
-
path,
|
|
532
|
-
exposedHelpers
|
|
533
|
-
);
|
|
534
|
-
if (result === true) {
|
|
535
|
-
build(el, path ? path.concat(key) : [key]);
|
|
536
|
-
}
|
|
537
|
-
});
|
|
538
|
-
stack.pop();
|
|
339
|
+
return Te(p) ? !0 : (t.append(Je(h, g, i), c(p)), !1);
|
|
539
340
|
}
|
|
540
|
-
|
|
341
|
+
const f = [], A = Object.assign(Un, {
|
|
342
|
+
defaultVisitor: u,
|
|
343
|
+
convertValue: c,
|
|
344
|
+
isVisitable: Te
|
|
345
|
+
});
|
|
346
|
+
function R(p, g) {
|
|
347
|
+
if (!a.isUndefined(p)) {
|
|
348
|
+
if (f.indexOf(p) !== -1)
|
|
349
|
+
throw Error("Circular reference detected in " + g.join("."));
|
|
350
|
+
f.push(p), a.forEach(p, function(v, C) {
|
|
351
|
+
(!(a.isUndefined(v) || v === null) && s.call(
|
|
352
|
+
t,
|
|
353
|
+
v,
|
|
354
|
+
a.isString(C) ? C.trim() : C,
|
|
355
|
+
g,
|
|
356
|
+
A
|
|
357
|
+
)) === !0 && R(v, g ? g.concat(C) : [C]);
|
|
358
|
+
}), f.pop();
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
if (!a.isObject(e))
|
|
541
362
|
throw new TypeError("data must be an object");
|
|
542
|
-
|
|
543
|
-
build(obj);
|
|
544
|
-
return formData;
|
|
363
|
+
return R(e), t;
|
|
545
364
|
}
|
|
546
|
-
function
|
|
547
|
-
const
|
|
365
|
+
function Xe(e) {
|
|
366
|
+
const t = {
|
|
548
367
|
"!": "%21",
|
|
549
368
|
"'": "%27",
|
|
550
369
|
"(": "%28",
|
|
@@ -553,51 +372,40 @@ function encode$1(str) {
|
|
|
553
372
|
"%20": "+",
|
|
554
373
|
"%00": "\0"
|
|
555
374
|
};
|
|
556
|
-
return encodeURIComponent(
|
|
557
|
-
return
|
|
375
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
376
|
+
return t[r];
|
|
558
377
|
});
|
|
559
378
|
}
|
|
560
|
-
function
|
|
561
|
-
this._pairs = [];
|
|
562
|
-
params && toFormData(params, this, options);
|
|
379
|
+
function Fe(e, t) {
|
|
380
|
+
this._pairs = [], e && ye(e, this, t);
|
|
563
381
|
}
|
|
564
|
-
const
|
|
565
|
-
|
|
566
|
-
this._pairs.push([
|
|
382
|
+
const Et = Fe.prototype;
|
|
383
|
+
Et.append = function(t, n) {
|
|
384
|
+
this._pairs.push([t, n]);
|
|
567
385
|
};
|
|
568
|
-
|
|
569
|
-
const
|
|
570
|
-
return
|
|
571
|
-
} :
|
|
572
|
-
return this._pairs.map(function
|
|
573
|
-
return
|
|
386
|
+
Et.toString = function(t) {
|
|
387
|
+
const n = t ? function(r) {
|
|
388
|
+
return t.call(this, r, Xe);
|
|
389
|
+
} : Xe;
|
|
390
|
+
return this._pairs.map(function(s) {
|
|
391
|
+
return n(s[0]) + "=" + n(s[1]);
|
|
574
392
|
}, "").join("&");
|
|
575
393
|
};
|
|
576
|
-
function
|
|
577
|
-
return encodeURIComponent(
|
|
394
|
+
function Mn(e) {
|
|
395
|
+
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
578
396
|
}
|
|
579
|
-
function
|
|
580
|
-
if (!
|
|
581
|
-
return
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, options).toString(_encode);
|
|
590
|
-
}
|
|
591
|
-
if (serializedParams) {
|
|
592
|
-
const hashmarkIndex = url.indexOf("#");
|
|
593
|
-
if (hashmarkIndex !== -1) {
|
|
594
|
-
url = url.slice(0, hashmarkIndex);
|
|
595
|
-
}
|
|
596
|
-
url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
|
|
597
|
-
}
|
|
598
|
-
return url;
|
|
397
|
+
function St(e, t, n) {
|
|
398
|
+
if (!t)
|
|
399
|
+
return e;
|
|
400
|
+
const r = n && n.encode || Mn, s = n && n.serialize;
|
|
401
|
+
let i;
|
|
402
|
+
if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new Fe(t, n).toString(r), i) {
|
|
403
|
+
const o = e.indexOf("#");
|
|
404
|
+
o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
405
|
+
}
|
|
406
|
+
return e;
|
|
599
407
|
}
|
|
600
|
-
class
|
|
408
|
+
class Ye {
|
|
601
409
|
constructor() {
|
|
602
410
|
this.handlers = [];
|
|
603
411
|
}
|
|
@@ -609,14 +417,13 @@ class InterceptorManager {
|
|
|
609
417
|
*
|
|
610
418
|
* @return {Number} An ID used to remove interceptor later
|
|
611
419
|
*/
|
|
612
|
-
use(
|
|
613
|
-
this.handlers.push({
|
|
614
|
-
fulfilled,
|
|
615
|
-
rejected,
|
|
616
|
-
synchronous:
|
|
617
|
-
runWhen:
|
|
618
|
-
});
|
|
619
|
-
return this.handlers.length - 1;
|
|
420
|
+
use(t, n, r) {
|
|
421
|
+
return this.handlers.push({
|
|
422
|
+
fulfilled: t,
|
|
423
|
+
rejected: n,
|
|
424
|
+
synchronous: r ? r.synchronous : !1,
|
|
425
|
+
runWhen: r ? r.runWhen : null
|
|
426
|
+
}), this.handlers.length - 1;
|
|
620
427
|
}
|
|
621
428
|
/**
|
|
622
429
|
* Remove an interceptor from the stack
|
|
@@ -625,10 +432,8 @@ class InterceptorManager {
|
|
|
625
432
|
*
|
|
626
433
|
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
627
434
|
*/
|
|
628
|
-
eject(
|
|
629
|
-
|
|
630
|
-
this.handlers[id] = null;
|
|
631
|
-
}
|
|
435
|
+
eject(t) {
|
|
436
|
+
this.handlers[t] && (this.handlers[t] = null);
|
|
632
437
|
}
|
|
633
438
|
/**
|
|
634
439
|
* Clear all interceptors from the stack
|
|
@@ -636,9 +441,7 @@ class InterceptorManager {
|
|
|
636
441
|
* @returns {void}
|
|
637
442
|
*/
|
|
638
443
|
clear() {
|
|
639
|
-
|
|
640
|
-
this.handlers = [];
|
|
641
|
-
}
|
|
444
|
+
this.handlers && (this.handlers = []);
|
|
642
445
|
}
|
|
643
446
|
/**
|
|
644
447
|
* Iterate over all the registered interceptors
|
|
@@ -650,187 +453,122 @@ class InterceptorManager {
|
|
|
650
453
|
*
|
|
651
454
|
* @returns {void}
|
|
652
455
|
*/
|
|
653
|
-
forEach(
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
fn(h2);
|
|
657
|
-
}
|
|
456
|
+
forEach(t) {
|
|
457
|
+
a.forEach(this.handlers, function(r) {
|
|
458
|
+
r !== null && t(r);
|
|
658
459
|
});
|
|
659
460
|
}
|
|
660
461
|
}
|
|
661
|
-
const
|
|
662
|
-
silentJSONParsing:
|
|
663
|
-
forcedJSONParsing:
|
|
664
|
-
clarifyTimeoutError:
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
const FormData$1 = typeof FormData !== "undefined" ? FormData : null;
|
|
668
|
-
const Blob$1 = typeof Blob !== "undefined" ? Blob : null;
|
|
669
|
-
const platform$1 = {
|
|
670
|
-
isBrowser: true,
|
|
462
|
+
const vt = {
|
|
463
|
+
silentJSONParsing: !0,
|
|
464
|
+
forcedJSONParsing: !0,
|
|
465
|
+
clarifyTimeoutError: !1
|
|
466
|
+
}, _n = typeof URLSearchParams < "u" ? URLSearchParams : Fe, Hn = typeof FormData < "u" ? FormData : null, Qn = typeof Blob < "u" ? Blob : null, Wn = {
|
|
467
|
+
isBrowser: !0,
|
|
671
468
|
classes: {
|
|
672
|
-
URLSearchParams:
|
|
673
|
-
FormData:
|
|
674
|
-
Blob:
|
|
469
|
+
URLSearchParams: _n,
|
|
470
|
+
FormData: Hn,
|
|
471
|
+
Blob: Qn
|
|
675
472
|
},
|
|
676
473
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
const hasStandardBrowserEnv = ((product) => {
|
|
680
|
-
return hasBrowserEnv && ["ReactNative", "NativeScript", "NS"].indexOf(product) < 0;
|
|
681
|
-
})(typeof navigator !== "undefined" && navigator.product);
|
|
682
|
-
const hasStandardBrowserWebWorkerEnv = (() => {
|
|
683
|
-
return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
|
|
684
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
685
|
-
})();
|
|
686
|
-
const utils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
474
|
+
}, Le = typeof window < "u" && typeof document < "u", Ce = typeof navigator == "object" && navigator || void 0, Gn = Le && (!Ce || ["ReactNative", "NativeScript", "NS"].indexOf(Ce.product) < 0), Vn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
475
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Jn = Le && window.location.href || "http://localhost", Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
687
476
|
__proto__: null,
|
|
688
|
-
hasBrowserEnv,
|
|
689
|
-
hasStandardBrowserEnv,
|
|
690
|
-
hasStandardBrowserWebWorkerEnv
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
...
|
|
477
|
+
hasBrowserEnv: Le,
|
|
478
|
+
hasStandardBrowserEnv: Gn,
|
|
479
|
+
hasStandardBrowserWebWorkerEnv: Vn,
|
|
480
|
+
navigator: Ce,
|
|
481
|
+
origin: Jn
|
|
482
|
+
}, Symbol.toStringTag, { value: "Module" })), N = {
|
|
483
|
+
...Xn,
|
|
484
|
+
...Wn
|
|
695
485
|
};
|
|
696
|
-
function
|
|
697
|
-
return
|
|
698
|
-
visitor: function(
|
|
699
|
-
|
|
700
|
-
this.append(key, value.toString("base64"));
|
|
701
|
-
return false;
|
|
702
|
-
}
|
|
703
|
-
return helpers.defaultVisitor.apply(this, arguments);
|
|
486
|
+
function Yn(e, t) {
|
|
487
|
+
return ye(e, new N.classes.URLSearchParams(), Object.assign({
|
|
488
|
+
visitor: function(n, r, s, i) {
|
|
489
|
+
return N.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
704
490
|
}
|
|
705
|
-
},
|
|
491
|
+
}, t));
|
|
706
492
|
}
|
|
707
|
-
function
|
|
708
|
-
return
|
|
709
|
-
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
710
|
-
});
|
|
493
|
+
function Zn(e) {
|
|
494
|
+
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
711
495
|
}
|
|
712
|
-
function
|
|
713
|
-
const
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
obj[key] = arr[key];
|
|
721
|
-
}
|
|
722
|
-
return obj;
|
|
496
|
+
function Kn(e) {
|
|
497
|
+
const t = {}, n = Object.keys(e);
|
|
498
|
+
let r;
|
|
499
|
+
const s = n.length;
|
|
500
|
+
let i;
|
|
501
|
+
for (r = 0; r < s; r++)
|
|
502
|
+
i = n[r], t[i] = e[i];
|
|
503
|
+
return t;
|
|
723
504
|
}
|
|
724
|
-
function
|
|
725
|
-
function
|
|
726
|
-
let
|
|
727
|
-
if (
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
target[name] = value;
|
|
737
|
-
}
|
|
738
|
-
return !isNumericKey;
|
|
739
|
-
}
|
|
740
|
-
if (!target[name] || !utils$1.isObject(target[name])) {
|
|
741
|
-
target[name] = [];
|
|
742
|
-
}
|
|
743
|
-
const result = buildPath(path, value, target[name], index);
|
|
744
|
-
if (result && utils$1.isArray(target[name])) {
|
|
745
|
-
target[name] = arrayToObject(target[name]);
|
|
746
|
-
}
|
|
747
|
-
return !isNumericKey;
|
|
748
|
-
}
|
|
749
|
-
if (utils$1.isFormData(formData) && utils$1.isFunction(formData.entries)) {
|
|
750
|
-
const obj = {};
|
|
751
|
-
utils$1.forEachEntry(formData, (name, value) => {
|
|
752
|
-
buildPath(parsePropPath(name), value, obj, 0);
|
|
753
|
-
});
|
|
754
|
-
return obj;
|
|
505
|
+
function Rt(e) {
|
|
506
|
+
function t(n, r, s, i) {
|
|
507
|
+
let o = n[i++];
|
|
508
|
+
if (o === "__proto__") return !0;
|
|
509
|
+
const l = Number.isFinite(+o), d = i >= n.length;
|
|
510
|
+
return o = !o && a.isArray(s) ? s.length : o, d ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !l) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] = Kn(s[o])), !l);
|
|
511
|
+
}
|
|
512
|
+
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
513
|
+
const n = {};
|
|
514
|
+
return a.forEachEntry(e, (r, s) => {
|
|
515
|
+
t(Zn(r), s, n, 0);
|
|
516
|
+
}), n;
|
|
755
517
|
}
|
|
756
518
|
return null;
|
|
757
519
|
}
|
|
758
|
-
function
|
|
759
|
-
if (
|
|
520
|
+
function $n(e, t, n) {
|
|
521
|
+
if (a.isString(e))
|
|
760
522
|
try {
|
|
761
|
-
(
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
throw e2;
|
|
766
|
-
}
|
|
523
|
+
return (t || JSON.parse)(e), a.trim(e);
|
|
524
|
+
} catch (r) {
|
|
525
|
+
if (r.name !== "SyntaxError")
|
|
526
|
+
throw r;
|
|
767
527
|
}
|
|
768
|
-
|
|
769
|
-
return (encoder || JSON.stringify)(rawValue);
|
|
528
|
+
return (0, JSON.stringify)(e);
|
|
770
529
|
}
|
|
771
|
-
const
|
|
772
|
-
transitional:
|
|
773
|
-
adapter: ["xhr", "http"],
|
|
774
|
-
transformRequest: [function
|
|
775
|
-
const
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
if (
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
if (
|
|
783
|
-
return
|
|
784
|
-
|
|
785
|
-
if (
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
return data.toString();
|
|
794
|
-
}
|
|
795
|
-
let isFileList2;
|
|
796
|
-
if (isObjectPayload) {
|
|
797
|
-
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
798
|
-
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
799
|
-
}
|
|
800
|
-
if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
801
|
-
const _FormData = this.env && this.env.FormData;
|
|
802
|
-
return toFormData(
|
|
803
|
-
isFileList2 ? { "files[]": data } : data,
|
|
804
|
-
_FormData && new _FormData(),
|
|
530
|
+
const ae = {
|
|
531
|
+
transitional: vt,
|
|
532
|
+
adapter: ["xhr", "http", "fetch"],
|
|
533
|
+
transformRequest: [function(t, n) {
|
|
534
|
+
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = a.isObject(t);
|
|
535
|
+
if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
536
|
+
return s ? JSON.stringify(Rt(t)) : t;
|
|
537
|
+
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
538
|
+
return t;
|
|
539
|
+
if (a.isArrayBufferView(t))
|
|
540
|
+
return t.buffer;
|
|
541
|
+
if (a.isURLSearchParams(t))
|
|
542
|
+
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
543
|
+
let l;
|
|
544
|
+
if (i) {
|
|
545
|
+
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
546
|
+
return Yn(t, this.formSerializer).toString();
|
|
547
|
+
if ((l = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
548
|
+
const d = this.env && this.env.FormData;
|
|
549
|
+
return ye(
|
|
550
|
+
l ? { "files[]": t } : t,
|
|
551
|
+
d && new d(),
|
|
805
552
|
this.formSerializer
|
|
806
553
|
);
|
|
807
554
|
}
|
|
808
555
|
}
|
|
809
|
-
|
|
810
|
-
headers.setContentType("application/json", false);
|
|
811
|
-
return stringifySafely(data);
|
|
812
|
-
}
|
|
813
|
-
return data;
|
|
556
|
+
return i || s ? (n.setContentType("application/json", !1), $n(t)) : t;
|
|
814
557
|
}],
|
|
815
|
-
transformResponse: [function
|
|
816
|
-
const
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
if (
|
|
820
|
-
const
|
|
821
|
-
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
558
|
+
transformResponse: [function(t) {
|
|
559
|
+
const n = this.transitional || ae.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
560
|
+
if (a.isResponse(t) || a.isReadableStream(t))
|
|
561
|
+
return t;
|
|
562
|
+
if (t && a.isString(t) && (r && !this.responseType || s)) {
|
|
563
|
+
const o = !(n && n.silentJSONParsing) && s;
|
|
822
564
|
try {
|
|
823
|
-
return JSON.parse(
|
|
824
|
-
} catch (
|
|
825
|
-
if (
|
|
826
|
-
|
|
827
|
-
throw AxiosError.from(e2, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
828
|
-
}
|
|
829
|
-
throw e2;
|
|
830
|
-
}
|
|
565
|
+
return JSON.parse(t);
|
|
566
|
+
} catch (l) {
|
|
567
|
+
if (o)
|
|
568
|
+
throw l.name === "SyntaxError" ? b.from(l, b.ERR_BAD_RESPONSE, this, null, this.response) : l;
|
|
831
569
|
}
|
|
832
570
|
}
|
|
833
|
-
return
|
|
571
|
+
return t;
|
|
834
572
|
}],
|
|
835
573
|
/**
|
|
836
574
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
@@ -842,24 +580,23 @@ const defaults = {
|
|
|
842
580
|
maxContentLength: -1,
|
|
843
581
|
maxBodyLength: -1,
|
|
844
582
|
env: {
|
|
845
|
-
FormData:
|
|
846
|
-
Blob:
|
|
583
|
+
FormData: N.classes.FormData,
|
|
584
|
+
Blob: N.classes.Blob
|
|
847
585
|
},
|
|
848
|
-
validateStatus: function
|
|
849
|
-
return
|
|
586
|
+
validateStatus: function(t) {
|
|
587
|
+
return t >= 200 && t < 300;
|
|
850
588
|
},
|
|
851
589
|
headers: {
|
|
852
590
|
common: {
|
|
853
|
-
|
|
591
|
+
Accept: "application/json, text/plain, */*",
|
|
854
592
|
"Content-Type": void 0
|
|
855
593
|
}
|
|
856
594
|
}
|
|
857
595
|
};
|
|
858
|
-
|
|
859
|
-
|
|
596
|
+
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
597
|
+
ae.headers[e] = {};
|
|
860
598
|
});
|
|
861
|
-
const
|
|
862
|
-
const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
599
|
+
const er = a.toObjectSet([
|
|
863
600
|
"age",
|
|
864
601
|
"authorization",
|
|
865
602
|
"content-length",
|
|
@@ -877,299 +614,309 @@ const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
|
877
614
|
"referer",
|
|
878
615
|
"retry-after",
|
|
879
616
|
"user-agent"
|
|
880
|
-
])
|
|
881
|
-
const
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
if (!key || parsed[key] && ignoreDuplicateOf[key]) {
|
|
891
|
-
return;
|
|
892
|
-
}
|
|
893
|
-
if (key === "set-cookie") {
|
|
894
|
-
if (parsed[key]) {
|
|
895
|
-
parsed[key].push(val);
|
|
896
|
-
} else {
|
|
897
|
-
parsed[key] = [val];
|
|
898
|
-
}
|
|
899
|
-
} else {
|
|
900
|
-
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
901
|
-
}
|
|
902
|
-
});
|
|
903
|
-
return parsed;
|
|
904
|
-
};
|
|
905
|
-
const $internals = Symbol("internals");
|
|
906
|
-
function normalizeHeader(header) {
|
|
907
|
-
return header && String(header).trim().toLowerCase();
|
|
617
|
+
]), tr = (e) => {
|
|
618
|
+
const t = {};
|
|
619
|
+
let n, r, s;
|
|
620
|
+
return e && e.split(`
|
|
621
|
+
`).forEach(function(o) {
|
|
622
|
+
s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && er[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
623
|
+
}), t;
|
|
624
|
+
}, Ze = Symbol("internals");
|
|
625
|
+
function te(e) {
|
|
626
|
+
return e && String(e).trim().toLowerCase();
|
|
908
627
|
}
|
|
909
|
-
function
|
|
910
|
-
|
|
911
|
-
return value;
|
|
912
|
-
}
|
|
913
|
-
return utils$1.isArray(value) ? value.map(normalizeValue) : String(value);
|
|
628
|
+
function ce(e) {
|
|
629
|
+
return e === !1 || e == null ? e : a.isArray(e) ? e.map(ce) : String(e);
|
|
914
630
|
}
|
|
915
|
-
function
|
|
916
|
-
const
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
}
|
|
922
|
-
return tokens;
|
|
631
|
+
function nr(e) {
|
|
632
|
+
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
633
|
+
let r;
|
|
634
|
+
for (; r = n.exec(e); )
|
|
635
|
+
t[r[1]] = r[2];
|
|
636
|
+
return t;
|
|
923
637
|
}
|
|
924
|
-
const
|
|
925
|
-
function
|
|
926
|
-
if (
|
|
927
|
-
return
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
return;
|
|
934
|
-
if (utils$1.isString(filter2)) {
|
|
935
|
-
return value.indexOf(filter2) !== -1;
|
|
936
|
-
}
|
|
937
|
-
if (utils$1.isRegExp(filter2)) {
|
|
938
|
-
return filter2.test(value);
|
|
638
|
+
const rr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
639
|
+
function Ee(e, t, n, r, s) {
|
|
640
|
+
if (a.isFunction(r))
|
|
641
|
+
return r.call(this, t, n);
|
|
642
|
+
if (s && (t = n), !!a.isString(t)) {
|
|
643
|
+
if (a.isString(r))
|
|
644
|
+
return t.indexOf(r) !== -1;
|
|
645
|
+
if (a.isRegExp(r))
|
|
646
|
+
return r.test(t);
|
|
939
647
|
}
|
|
940
648
|
}
|
|
941
|
-
function
|
|
942
|
-
return
|
|
943
|
-
return char.toUpperCase() + str;
|
|
944
|
-
});
|
|
649
|
+
function sr(e) {
|
|
650
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
945
651
|
}
|
|
946
|
-
function
|
|
947
|
-
const
|
|
948
|
-
["get", "set", "has"].forEach((
|
|
949
|
-
Object.defineProperty(
|
|
950
|
-
value: function(
|
|
951
|
-
return this[
|
|
652
|
+
function or(e, t) {
|
|
653
|
+
const n = a.toCamelCase(" " + t);
|
|
654
|
+
["get", "set", "has"].forEach((r) => {
|
|
655
|
+
Object.defineProperty(e, r + n, {
|
|
656
|
+
value: function(s, i, o) {
|
|
657
|
+
return this[r].call(this, t, s, i, o);
|
|
952
658
|
},
|
|
953
|
-
configurable:
|
|
659
|
+
configurable: !0
|
|
954
660
|
});
|
|
955
661
|
});
|
|
956
662
|
}
|
|
957
|
-
class
|
|
958
|
-
constructor(
|
|
959
|
-
|
|
960
|
-
}
|
|
961
|
-
set(
|
|
962
|
-
const
|
|
963
|
-
function
|
|
964
|
-
const
|
|
965
|
-
if (!
|
|
663
|
+
class D {
|
|
664
|
+
constructor(t) {
|
|
665
|
+
t && this.set(t);
|
|
666
|
+
}
|
|
667
|
+
set(t, n, r) {
|
|
668
|
+
const s = this;
|
|
669
|
+
function i(l, d, c) {
|
|
670
|
+
const u = te(d);
|
|
671
|
+
if (!u)
|
|
966
672
|
throw new Error("header name must be a non-empty string");
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
}
|
|
673
|
+
const f = a.findKey(s, u);
|
|
674
|
+
(!f || s[f] === void 0 || c === !0 || c === void 0 && s[f] !== !1) && (s[f || d] = ce(l));
|
|
675
|
+
}
|
|
676
|
+
const o = (l, d) => a.forEach(l, (c, u) => i(c, u, d));
|
|
677
|
+
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
678
|
+
o(t, n);
|
|
679
|
+
else if (a.isString(t) && (t = t.trim()) && !rr(t))
|
|
680
|
+
o(tr(t), n);
|
|
681
|
+
else if (a.isHeaders(t))
|
|
682
|
+
for (const [l, d] of t.entries())
|
|
683
|
+
i(d, l, r);
|
|
684
|
+
else
|
|
685
|
+
t != null && i(n, t, r);
|
|
981
686
|
return this;
|
|
982
687
|
}
|
|
983
|
-
get(
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
if (
|
|
993
|
-
return
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
return parser.call(this, value, key);
|
|
997
|
-
}
|
|
998
|
-
if (utils$1.isRegExp(parser)) {
|
|
999
|
-
return parser.exec(value);
|
|
1000
|
-
}
|
|
688
|
+
get(t, n) {
|
|
689
|
+
if (t = te(t), t) {
|
|
690
|
+
const r = a.findKey(this, t);
|
|
691
|
+
if (r) {
|
|
692
|
+
const s = this[r];
|
|
693
|
+
if (!n)
|
|
694
|
+
return s;
|
|
695
|
+
if (n === !0)
|
|
696
|
+
return nr(s);
|
|
697
|
+
if (a.isFunction(n))
|
|
698
|
+
return n.call(this, s, r);
|
|
699
|
+
if (a.isRegExp(n))
|
|
700
|
+
return n.exec(s);
|
|
1001
701
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
1002
702
|
}
|
|
1003
703
|
}
|
|
1004
704
|
}
|
|
1005
|
-
has(
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
705
|
+
has(t, n) {
|
|
706
|
+
if (t = te(t), t) {
|
|
707
|
+
const r = a.findKey(this, t);
|
|
708
|
+
return !!(r && this[r] !== void 0 && (!n || Ee(this, this[r], r, n)));
|
|
1010
709
|
}
|
|
1011
|
-
return
|
|
1012
|
-
}
|
|
1013
|
-
delete(
|
|
1014
|
-
const
|
|
1015
|
-
let
|
|
1016
|
-
function
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
|
|
1021
|
-
delete self2[key];
|
|
1022
|
-
deleted = true;
|
|
1023
|
-
}
|
|
710
|
+
return !1;
|
|
711
|
+
}
|
|
712
|
+
delete(t, n) {
|
|
713
|
+
const r = this;
|
|
714
|
+
let s = !1;
|
|
715
|
+
function i(o) {
|
|
716
|
+
if (o = te(o), o) {
|
|
717
|
+
const l = a.findKey(r, o);
|
|
718
|
+
l && (!n || Ee(r, r[l], l, n)) && (delete r[l], s = !0);
|
|
1024
719
|
}
|
|
1025
720
|
}
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
const keys = Object.keys(this);
|
|
1035
|
-
let i2 = keys.length;
|
|
1036
|
-
let deleted = false;
|
|
1037
|
-
while (i2--) {
|
|
1038
|
-
const key = keys[i2];
|
|
1039
|
-
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
1040
|
-
delete this[key];
|
|
1041
|
-
deleted = true;
|
|
1042
|
-
}
|
|
721
|
+
return a.isArray(t) ? t.forEach(i) : i(t), s;
|
|
722
|
+
}
|
|
723
|
+
clear(t) {
|
|
724
|
+
const n = Object.keys(this);
|
|
725
|
+
let r = n.length, s = !1;
|
|
726
|
+
for (; r--; ) {
|
|
727
|
+
const i = n[r];
|
|
728
|
+
(!t || Ee(this, this[i], i, t, !0)) && (delete this[i], s = !0);
|
|
1043
729
|
}
|
|
1044
|
-
return
|
|
1045
|
-
}
|
|
1046
|
-
normalize(
|
|
1047
|
-
const
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
self2[key] = normalizeValue(value);
|
|
1053
|
-
delete self2[header];
|
|
730
|
+
return s;
|
|
731
|
+
}
|
|
732
|
+
normalize(t) {
|
|
733
|
+
const n = this, r = {};
|
|
734
|
+
return a.forEach(this, (s, i) => {
|
|
735
|
+
const o = a.findKey(r, i);
|
|
736
|
+
if (o) {
|
|
737
|
+
n[o] = ce(s), delete n[i];
|
|
1054
738
|
return;
|
|
1055
739
|
}
|
|
1056
|
-
const
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
}
|
|
1060
|
-
self2[normalized] = normalizeValue(value);
|
|
1061
|
-
headers[normalized] = true;
|
|
1062
|
-
});
|
|
1063
|
-
return this;
|
|
740
|
+
const l = t ? sr(i) : String(i).trim();
|
|
741
|
+
l !== i && delete n[i], n[l] = ce(s), r[l] = !0;
|
|
742
|
+
}), this;
|
|
1064
743
|
}
|
|
1065
|
-
concat(...
|
|
1066
|
-
return this.constructor.concat(this, ...
|
|
744
|
+
concat(...t) {
|
|
745
|
+
return this.constructor.concat(this, ...t);
|
|
1067
746
|
}
|
|
1068
|
-
toJSON(
|
|
1069
|
-
const
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
});
|
|
1073
|
-
return obj;
|
|
747
|
+
toJSON(t) {
|
|
748
|
+
const n = /* @__PURE__ */ Object.create(null);
|
|
749
|
+
return a.forEach(this, (r, s) => {
|
|
750
|
+
r != null && r !== !1 && (n[s] = t && a.isArray(r) ? r.join(", ") : r);
|
|
751
|
+
}), n;
|
|
1074
752
|
}
|
|
1075
753
|
[Symbol.iterator]() {
|
|
1076
754
|
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
1077
755
|
}
|
|
1078
756
|
toString() {
|
|
1079
|
-
return Object.entries(this.toJSON()).map(([
|
|
757
|
+
return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
|
|
758
|
+
`);
|
|
1080
759
|
}
|
|
1081
760
|
get [Symbol.toStringTag]() {
|
|
1082
761
|
return "AxiosHeaders";
|
|
1083
762
|
}
|
|
1084
|
-
static from(
|
|
1085
|
-
return
|
|
763
|
+
static from(t) {
|
|
764
|
+
return t instanceof this ? t : new this(t);
|
|
1086
765
|
}
|
|
1087
|
-
static concat(
|
|
1088
|
-
const
|
|
1089
|
-
|
|
1090
|
-
return computed2;
|
|
766
|
+
static concat(t, ...n) {
|
|
767
|
+
const r = new this(t);
|
|
768
|
+
return n.forEach((s) => r.set(s)), r;
|
|
1091
769
|
}
|
|
1092
|
-
static accessor(
|
|
1093
|
-
const
|
|
770
|
+
static accessor(t) {
|
|
771
|
+
const r = (this[Ze] = this[Ze] = {
|
|
1094
772
|
accessors: {}
|
|
1095
|
-
};
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
const lHeader = normalizeHeader(_header);
|
|
1100
|
-
if (!accessors[lHeader]) {
|
|
1101
|
-
buildAccessors(prototype2, _header);
|
|
1102
|
-
accessors[lHeader] = true;
|
|
1103
|
-
}
|
|
773
|
+
}).accessors, s = this.prototype;
|
|
774
|
+
function i(o) {
|
|
775
|
+
const l = te(o);
|
|
776
|
+
r[l] || (or(s, o), r[l] = !0);
|
|
1104
777
|
}
|
|
1105
|
-
|
|
1106
|
-
return this;
|
|
778
|
+
return a.isArray(t) ? t.forEach(i) : i(t), this;
|
|
1107
779
|
}
|
|
1108
780
|
}
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
let
|
|
781
|
+
D.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
782
|
+
a.reduceDescriptors(D.prototype, ({ value: e }, t) => {
|
|
783
|
+
let n = t[0].toUpperCase() + t.slice(1);
|
|
1112
784
|
return {
|
|
1113
|
-
get: () =>
|
|
1114
|
-
set(
|
|
1115
|
-
this[
|
|
785
|
+
get: () => e,
|
|
786
|
+
set(r) {
|
|
787
|
+
this[n] = r;
|
|
1116
788
|
}
|
|
1117
789
|
};
|
|
1118
790
|
});
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
utils$1.forEach(fns, function transform(fn) {
|
|
1127
|
-
data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
|
|
1128
|
-
});
|
|
1129
|
-
headers.normalize();
|
|
1130
|
-
return data;
|
|
791
|
+
a.freezeMethods(D);
|
|
792
|
+
function Se(e, t) {
|
|
793
|
+
const n = this || ae, r = t || n, s = D.from(r.headers);
|
|
794
|
+
let i = r.data;
|
|
795
|
+
return a.forEach(e, function(l) {
|
|
796
|
+
i = l.call(n, i, s.normalize(), t ? t.status : void 0);
|
|
797
|
+
}), s.normalize(), i;
|
|
1131
798
|
}
|
|
1132
|
-
function
|
|
1133
|
-
return !!(
|
|
799
|
+
function Tt(e) {
|
|
800
|
+
return !!(e && e.__CANCEL__);
|
|
1134
801
|
}
|
|
1135
|
-
function
|
|
1136
|
-
|
|
1137
|
-
this.name = "CanceledError";
|
|
802
|
+
function ee(e, t, n) {
|
|
803
|
+
b.call(this, e ?? "canceled", b.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
1138
804
|
}
|
|
1139
|
-
|
|
1140
|
-
__CANCEL__:
|
|
805
|
+
a.inherits(ee, b, {
|
|
806
|
+
__CANCEL__: !0
|
|
1141
807
|
});
|
|
1142
|
-
function
|
|
1143
|
-
const
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
808
|
+
function Ct(e, t, n) {
|
|
809
|
+
const r = n.config.validateStatus;
|
|
810
|
+
!n.status || !r || r(n.status) ? e(n) : t(new b(
|
|
811
|
+
"Request failed with status code " + n.status,
|
|
812
|
+
[b.ERR_BAD_REQUEST, b.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
813
|
+
n.config,
|
|
814
|
+
n.request,
|
|
815
|
+
n
|
|
816
|
+
));
|
|
817
|
+
}
|
|
818
|
+
function ir(e) {
|
|
819
|
+
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
820
|
+
return t && t[1] || "";
|
|
1155
821
|
}
|
|
1156
|
-
|
|
822
|
+
function ar(e, t) {
|
|
823
|
+
e = e || 10;
|
|
824
|
+
const n = new Array(e), r = new Array(e);
|
|
825
|
+
let s = 0, i = 0, o;
|
|
826
|
+
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
827
|
+
const c = Date.now(), u = r[i];
|
|
828
|
+
o || (o = c), n[s] = d, r[s] = c;
|
|
829
|
+
let f = i, A = 0;
|
|
830
|
+
for (; f !== s; )
|
|
831
|
+
A += n[f++], f = f % e;
|
|
832
|
+
if (s = (s + 1) % e, s === i && (i = (i + 1) % e), c - o < t)
|
|
833
|
+
return;
|
|
834
|
+
const R = u && c - u;
|
|
835
|
+
return R ? Math.round(A * 1e3 / R) : void 0;
|
|
836
|
+
};
|
|
837
|
+
}
|
|
838
|
+
function lr(e, t) {
|
|
839
|
+
let n = 0, r = 1e3 / t, s, i;
|
|
840
|
+
const o = (c, u = Date.now()) => {
|
|
841
|
+
n = u, s = null, i && (clearTimeout(i), i = null), e.apply(null, c);
|
|
842
|
+
};
|
|
843
|
+
return [(...c) => {
|
|
844
|
+
const u = Date.now(), f = u - n;
|
|
845
|
+
f >= r ? o(c, u) : (s = c, i || (i = setTimeout(() => {
|
|
846
|
+
i = null, o(s);
|
|
847
|
+
}, r - f)));
|
|
848
|
+
}, () => s && o(s)];
|
|
849
|
+
}
|
|
850
|
+
const de = (e, t, n = 3) => {
|
|
851
|
+
let r = 0;
|
|
852
|
+
const s = ar(50, 250);
|
|
853
|
+
return lr((i) => {
|
|
854
|
+
const o = i.loaded, l = i.lengthComputable ? i.total : void 0, d = o - r, c = s(d), u = o <= l;
|
|
855
|
+
r = o;
|
|
856
|
+
const f = {
|
|
857
|
+
loaded: o,
|
|
858
|
+
total: l,
|
|
859
|
+
progress: l ? o / l : void 0,
|
|
860
|
+
bytes: d,
|
|
861
|
+
rate: c || void 0,
|
|
862
|
+
estimated: c && l && u ? (l - o) / c : void 0,
|
|
863
|
+
event: i,
|
|
864
|
+
lengthComputable: l != null,
|
|
865
|
+
[t ? "download" : "upload"]: !0
|
|
866
|
+
};
|
|
867
|
+
e(f);
|
|
868
|
+
}, n);
|
|
869
|
+
}, Ke = (e, t) => {
|
|
870
|
+
const n = e != null;
|
|
871
|
+
return [(r) => t[0]({
|
|
872
|
+
lengthComputable: n,
|
|
873
|
+
total: e,
|
|
874
|
+
loaded: r
|
|
875
|
+
}), t[1]];
|
|
876
|
+
}, $e = (e) => (...t) => a.asap(() => e(...t)), cr = N.hasStandardBrowserEnv ? (
|
|
877
|
+
// Standard browser envs have full support of the APIs needed to test
|
|
878
|
+
// whether the request URL is of the same origin as current location.
|
|
879
|
+
function() {
|
|
880
|
+
const t = N.navigator && /(msie|trident)/i.test(N.navigator.userAgent), n = document.createElement("a");
|
|
881
|
+
let r;
|
|
882
|
+
function s(i) {
|
|
883
|
+
let o = i;
|
|
884
|
+
return t && (n.setAttribute("href", o), o = n.href), n.setAttribute("href", o), {
|
|
885
|
+
href: n.href,
|
|
886
|
+
protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
|
|
887
|
+
host: n.host,
|
|
888
|
+
search: n.search ? n.search.replace(/^\?/, "") : "",
|
|
889
|
+
hash: n.hash ? n.hash.replace(/^#/, "") : "",
|
|
890
|
+
hostname: n.hostname,
|
|
891
|
+
port: n.port,
|
|
892
|
+
pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
|
|
893
|
+
};
|
|
894
|
+
}
|
|
895
|
+
return r = s(window.location.href), function(o) {
|
|
896
|
+
const l = a.isString(o) ? s(o) : o;
|
|
897
|
+
return l.protocol === r.protocol && l.host === r.host;
|
|
898
|
+
};
|
|
899
|
+
}()
|
|
900
|
+
) : (
|
|
901
|
+
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
902
|
+
/* @__PURE__ */ function() {
|
|
903
|
+
return function() {
|
|
904
|
+
return !0;
|
|
905
|
+
};
|
|
906
|
+
}()
|
|
907
|
+
), ur = N.hasStandardBrowserEnv ? (
|
|
1157
908
|
// Standard browser envs support document.cookie
|
|
1158
909
|
{
|
|
1159
|
-
write(
|
|
1160
|
-
const
|
|
1161
|
-
|
|
1162
|
-
utils$1.isString(path) && cookie.push("path=" + path);
|
|
1163
|
-
utils$1.isString(domain) && cookie.push("domain=" + domain);
|
|
1164
|
-
secure === true && cookie.push("secure");
|
|
1165
|
-
document.cookie = cookie.join("; ");
|
|
910
|
+
write(e, t, n, r, s, i) {
|
|
911
|
+
const o = [e + "=" + encodeURIComponent(t)];
|
|
912
|
+
a.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), a.isString(r) && o.push("path=" + r), a.isString(s) && o.push("domain=" + s), i === !0 && o.push("secure"), document.cookie = o.join("; ");
|
|
1166
913
|
},
|
|
1167
|
-
read(
|
|
1168
|
-
const
|
|
1169
|
-
return
|
|
914
|
+
read(e) {
|
|
915
|
+
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
916
|
+
return t ? decodeURIComponent(t[3]) : null;
|
|
1170
917
|
},
|
|
1171
|
-
remove(
|
|
1172
|
-
this.write(
|
|
918
|
+
remove(e) {
|
|
919
|
+
this.write(e, "", Date.now() - 864e5);
|
|
1173
920
|
}
|
|
1174
921
|
}
|
|
1175
922
|
) : (
|
|
@@ -1184,498 +931,484 @@ const cookies = platform.hasStandardBrowserEnv ? (
|
|
|
1184
931
|
}
|
|
1185
932
|
}
|
|
1186
933
|
);
|
|
1187
|
-
function
|
|
1188
|
-
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(
|
|
934
|
+
function dr(e) {
|
|
935
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
1189
936
|
}
|
|
1190
|
-
function
|
|
1191
|
-
return
|
|
1192
|
-
}
|
|
1193
|
-
function buildFullPath(baseURL, requestedURL) {
|
|
1194
|
-
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
|
1195
|
-
return combineURLs(baseURL, requestedURL);
|
|
1196
|
-
}
|
|
1197
|
-
return requestedURL;
|
|
1198
|
-
}
|
|
1199
|
-
const isURLSameOrigin = platform.hasStandardBrowserEnv ? (
|
|
1200
|
-
// Standard browser envs have full support of the APIs needed to test
|
|
1201
|
-
// whether the request URL is of the same origin as current location.
|
|
1202
|
-
function standardBrowserEnv() {
|
|
1203
|
-
const msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
1204
|
-
const urlParsingNode = document.createElement("a");
|
|
1205
|
-
let originURL;
|
|
1206
|
-
function resolveURL(url) {
|
|
1207
|
-
let href = url;
|
|
1208
|
-
if (msie) {
|
|
1209
|
-
urlParsingNode.setAttribute("href", href);
|
|
1210
|
-
href = urlParsingNode.href;
|
|
1211
|
-
}
|
|
1212
|
-
urlParsingNode.setAttribute("href", href);
|
|
1213
|
-
return {
|
|
1214
|
-
href: urlParsingNode.href,
|
|
1215
|
-
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
|
|
1216
|
-
host: urlParsingNode.host,
|
|
1217
|
-
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
|
|
1218
|
-
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
|
|
1219
|
-
hostname: urlParsingNode.hostname,
|
|
1220
|
-
port: urlParsingNode.port,
|
|
1221
|
-
pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
|
|
1222
|
-
};
|
|
1223
|
-
}
|
|
1224
|
-
originURL = resolveURL(window.location.href);
|
|
1225
|
-
return function isURLSameOrigin2(requestURL) {
|
|
1226
|
-
const parsed = utils$1.isString(requestURL) ? resolveURL(requestURL) : requestURL;
|
|
1227
|
-
return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
|
|
1228
|
-
};
|
|
1229
|
-
}()
|
|
1230
|
-
) : (
|
|
1231
|
-
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
1232
|
-
/* @__PURE__ */ function nonStandardBrowserEnv() {
|
|
1233
|
-
return function isURLSameOrigin2() {
|
|
1234
|
-
return true;
|
|
1235
|
-
};
|
|
1236
|
-
}()
|
|
1237
|
-
);
|
|
1238
|
-
function parseProtocol(url) {
|
|
1239
|
-
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
1240
|
-
return match && match[1] || "";
|
|
937
|
+
function fr(e, t) {
|
|
938
|
+
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1241
939
|
}
|
|
1242
|
-
function
|
|
1243
|
-
|
|
1244
|
-
const bytes = new Array(samplesCount);
|
|
1245
|
-
const timestamps = new Array(samplesCount);
|
|
1246
|
-
let head = 0;
|
|
1247
|
-
let tail = 0;
|
|
1248
|
-
let firstSampleTS;
|
|
1249
|
-
min = min !== void 0 ? min : 1e3;
|
|
1250
|
-
return function push(chunkLength) {
|
|
1251
|
-
const now = Date.now();
|
|
1252
|
-
const startedAt = timestamps[tail];
|
|
1253
|
-
if (!firstSampleTS) {
|
|
1254
|
-
firstSampleTS = now;
|
|
1255
|
-
}
|
|
1256
|
-
bytes[head] = chunkLength;
|
|
1257
|
-
timestamps[head] = now;
|
|
1258
|
-
let i2 = tail;
|
|
1259
|
-
let bytesCount = 0;
|
|
1260
|
-
while (i2 !== head) {
|
|
1261
|
-
bytesCount += bytes[i2++];
|
|
1262
|
-
i2 = i2 % samplesCount;
|
|
1263
|
-
}
|
|
1264
|
-
head = (head + 1) % samplesCount;
|
|
1265
|
-
if (head === tail) {
|
|
1266
|
-
tail = (tail + 1) % samplesCount;
|
|
1267
|
-
}
|
|
1268
|
-
if (now - firstSampleTS < min) {
|
|
1269
|
-
return;
|
|
1270
|
-
}
|
|
1271
|
-
const passed = startedAt && now - startedAt;
|
|
1272
|
-
return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
|
|
1273
|
-
};
|
|
940
|
+
function Ot(e, t) {
|
|
941
|
+
return e && !dr(t) ? fr(e, t) : t;
|
|
1274
942
|
}
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
943
|
+
const et = (e) => e instanceof D ? { ...e } : e;
|
|
944
|
+
function Y(e, t) {
|
|
945
|
+
t = t || {};
|
|
946
|
+
const n = {};
|
|
947
|
+
function r(c, u, f) {
|
|
948
|
+
return a.isPlainObject(c) && a.isPlainObject(u) ? a.merge.call({ caseless: f }, c, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u;
|
|
949
|
+
}
|
|
950
|
+
function s(c, u, f) {
|
|
951
|
+
if (a.isUndefined(u)) {
|
|
952
|
+
if (!a.isUndefined(c))
|
|
953
|
+
return r(void 0, c, f);
|
|
954
|
+
} else return r(c, u, f);
|
|
955
|
+
}
|
|
956
|
+
function i(c, u) {
|
|
957
|
+
if (!a.isUndefined(u))
|
|
958
|
+
return r(void 0, u);
|
|
959
|
+
}
|
|
960
|
+
function o(c, u) {
|
|
961
|
+
if (a.isUndefined(u)) {
|
|
962
|
+
if (!a.isUndefined(c))
|
|
963
|
+
return r(void 0, c);
|
|
964
|
+
} else return r(void 0, u);
|
|
965
|
+
}
|
|
966
|
+
function l(c, u, f) {
|
|
967
|
+
if (f in t)
|
|
968
|
+
return r(c, u);
|
|
969
|
+
if (f in e)
|
|
970
|
+
return r(void 0, c);
|
|
971
|
+
}
|
|
972
|
+
const d = {
|
|
973
|
+
url: i,
|
|
974
|
+
method: i,
|
|
975
|
+
data: i,
|
|
976
|
+
baseURL: o,
|
|
977
|
+
transformRequest: o,
|
|
978
|
+
transformResponse: o,
|
|
979
|
+
paramsSerializer: o,
|
|
980
|
+
timeout: o,
|
|
981
|
+
timeoutMessage: o,
|
|
982
|
+
withCredentials: o,
|
|
983
|
+
withXSRFToken: o,
|
|
984
|
+
adapter: o,
|
|
985
|
+
responseType: o,
|
|
986
|
+
xsrfCookieName: o,
|
|
987
|
+
xsrfHeaderName: o,
|
|
988
|
+
onUploadProgress: o,
|
|
989
|
+
onDownloadProgress: o,
|
|
990
|
+
decompress: o,
|
|
991
|
+
maxContentLength: o,
|
|
992
|
+
maxBodyLength: o,
|
|
993
|
+
beforeRedirect: o,
|
|
994
|
+
transport: o,
|
|
995
|
+
httpAgent: o,
|
|
996
|
+
httpsAgent: o,
|
|
997
|
+
cancelToken: o,
|
|
998
|
+
socketPath: o,
|
|
999
|
+
responseEncoding: o,
|
|
1000
|
+
validateStatus: l,
|
|
1001
|
+
headers: (c, u) => s(et(c), et(u), !0)
|
|
1296
1002
|
};
|
|
1003
|
+
return a.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
|
|
1004
|
+
const f = d[u] || s, A = f(e[u], t[u], u);
|
|
1005
|
+
a.isUndefined(A) && f !== l || (n[u] = A);
|
|
1006
|
+
}), n;
|
|
1297
1007
|
}
|
|
1298
|
-
const
|
|
1299
|
-
const
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
}
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
let
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
if (!request) {
|
|
1008
|
+
const Bt = (e) => {
|
|
1009
|
+
const t = Y({}, e);
|
|
1010
|
+
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: l } = t;
|
|
1011
|
+
t.headers = o = D.from(o), t.url = St(Ot(t.baseURL, t.url), e.params, e.paramsSerializer), l && o.set(
|
|
1012
|
+
"Authorization",
|
|
1013
|
+
"Basic " + btoa((l.username || "") + ":" + (l.password ? unescape(encodeURIComponent(l.password)) : ""))
|
|
1014
|
+
);
|
|
1015
|
+
let d;
|
|
1016
|
+
if (a.isFormData(n)) {
|
|
1017
|
+
if (N.hasStandardBrowserEnv || N.hasStandardBrowserWebWorkerEnv)
|
|
1018
|
+
o.setContentType(void 0);
|
|
1019
|
+
else if ((d = o.getContentType()) !== !1) {
|
|
1020
|
+
const [c, ...u] = d ? d.split(";").map((f) => f.trim()).filter(Boolean) : [];
|
|
1021
|
+
o.setContentType([c || "multipart/form-data", ...u].join("; "));
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
if (N.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && cr(t.url))) {
|
|
1025
|
+
const c = s && i && ur.read(i);
|
|
1026
|
+
c && o.set(s, c);
|
|
1027
|
+
}
|
|
1028
|
+
return t;
|
|
1029
|
+
}, pr = typeof XMLHttpRequest < "u", hr = pr && function(e) {
|
|
1030
|
+
return new Promise(function(n, r) {
|
|
1031
|
+
const s = Bt(e);
|
|
1032
|
+
let i = s.data;
|
|
1033
|
+
const o = D.from(s.headers).normalize();
|
|
1034
|
+
let { responseType: l, onUploadProgress: d, onDownloadProgress: c } = s, u, f, A, R, p;
|
|
1035
|
+
function g() {
|
|
1036
|
+
R && R(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
|
|
1037
|
+
}
|
|
1038
|
+
let h = new XMLHttpRequest();
|
|
1039
|
+
h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
|
|
1040
|
+
function v() {
|
|
1041
|
+
if (!h)
|
|
1333
1042
|
return;
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
headers: responseHeaders,
|
|
1344
|
-
config,
|
|
1345
|
-
request
|
|
1346
|
-
};
|
|
1347
|
-
settle(function _resolve(value) {
|
|
1348
|
-
resolve(value);
|
|
1349
|
-
done();
|
|
1350
|
-
}, function _reject(err) {
|
|
1351
|
-
reject(err);
|
|
1352
|
-
done();
|
|
1353
|
-
}, response);
|
|
1354
|
-
request = null;
|
|
1355
|
-
}
|
|
1356
|
-
if ("onloadend" in request) {
|
|
1357
|
-
request.onloadend = onloadend;
|
|
1358
|
-
} else {
|
|
1359
|
-
request.onreadystatechange = function handleLoad() {
|
|
1360
|
-
if (!request || request.readyState !== 4) {
|
|
1361
|
-
return;
|
|
1362
|
-
}
|
|
1363
|
-
if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {
|
|
1364
|
-
return;
|
|
1365
|
-
}
|
|
1366
|
-
setTimeout(onloadend);
|
|
1043
|
+
const O = D.from(
|
|
1044
|
+
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1045
|
+
), P = {
|
|
1046
|
+
data: !l || l === "text" || l === "json" ? h.responseText : h.response,
|
|
1047
|
+
status: h.status,
|
|
1048
|
+
statusText: h.statusText,
|
|
1049
|
+
headers: O,
|
|
1050
|
+
config: e,
|
|
1051
|
+
request: h
|
|
1367
1052
|
};
|
|
1053
|
+
Ct(function(Q) {
|
|
1054
|
+
n(Q), g();
|
|
1055
|
+
}, function(Q) {
|
|
1056
|
+
r(Q), g();
|
|
1057
|
+
}, P), h = null;
|
|
1058
|
+
}
|
|
1059
|
+
"onloadend" in h ? h.onloadend = v : h.onreadystatechange = function() {
|
|
1060
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(v);
|
|
1061
|
+
}, h.onabort = function() {
|
|
1062
|
+
h && (r(new b("Request aborted", b.ECONNABORTED, e, h)), h = null);
|
|
1063
|
+
}, h.onerror = function() {
|
|
1064
|
+
r(new b("Network Error", b.ERR_NETWORK, e, h)), h = null;
|
|
1065
|
+
}, h.ontimeout = function() {
|
|
1066
|
+
let q = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1067
|
+
const P = s.transitional || vt;
|
|
1068
|
+
s.timeoutErrorMessage && (q = s.timeoutErrorMessage), r(new b(
|
|
1069
|
+
q,
|
|
1070
|
+
P.clarifyTimeoutError ? b.ETIMEDOUT : b.ECONNABORTED,
|
|
1071
|
+
e,
|
|
1072
|
+
h
|
|
1073
|
+
)), h = null;
|
|
1074
|
+
}, i === void 0 && o.setContentType(null), "setRequestHeader" in h && a.forEach(o.toJSON(), function(q, P) {
|
|
1075
|
+
h.setRequestHeader(P, q);
|
|
1076
|
+
}), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), l && l !== "json" && (h.responseType = s.responseType), c && ([A, p] = de(c, !0), h.addEventListener("progress", A)), d && h.upload && ([f, R] = de(d), h.upload.addEventListener("progress", f), h.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (u = (O) => {
|
|
1077
|
+
h && (r(!O || O.type ? new ee(null, e, h) : O), h.abort(), h = null);
|
|
1078
|
+
}, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
|
|
1079
|
+
const C = ir(s.url);
|
|
1080
|
+
if (C && N.protocols.indexOf(C) === -1) {
|
|
1081
|
+
r(new b("Unsupported protocol " + C + ":", b.ERR_BAD_REQUEST, e));
|
|
1082
|
+
return;
|
|
1368
1083
|
}
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1084
|
+
h.send(i || null);
|
|
1085
|
+
});
|
|
1086
|
+
}, mr = (e, t) => {
|
|
1087
|
+
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1088
|
+
if (t || n) {
|
|
1089
|
+
let r = new AbortController(), s;
|
|
1090
|
+
const i = function(c) {
|
|
1091
|
+
if (!s) {
|
|
1092
|
+
s = !0, l();
|
|
1093
|
+
const u = c instanceof Error ? c : this.reason;
|
|
1094
|
+
r.abort(u instanceof b ? u : new ee(u instanceof Error ? u.message : u));
|
|
1372
1095
|
}
|
|
1373
|
-
reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
|
|
1374
|
-
request = null;
|
|
1375
1096
|
};
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1097
|
+
let o = t && setTimeout(() => {
|
|
1098
|
+
o = null, i(new b(`timeout ${t} of ms exceeded`, b.ETIMEDOUT));
|
|
1099
|
+
}, t);
|
|
1100
|
+
const l = () => {
|
|
1101
|
+
e && (o && clearTimeout(o), o = null, e.forEach((c) => {
|
|
1102
|
+
c.unsubscribe ? c.unsubscribe(i) : c.removeEventListener("abort", i);
|
|
1103
|
+
}), e = null);
|
|
1379
1104
|
};
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
}
|
|
1409
|
-
if (!utils$1.isUndefined(config.withCredentials)) {
|
|
1410
|
-
request.withCredentials = !!config.withCredentials;
|
|
1411
|
-
}
|
|
1412
|
-
if (responseType && responseType !== "json") {
|
|
1413
|
-
request.responseType = config.responseType;
|
|
1414
|
-
}
|
|
1415
|
-
if (typeof config.onDownloadProgress === "function") {
|
|
1416
|
-
request.addEventListener("progress", progressEventReducer(config.onDownloadProgress, true));
|
|
1417
|
-
}
|
|
1418
|
-
if (typeof config.onUploadProgress === "function" && request.upload) {
|
|
1419
|
-
request.upload.addEventListener("progress", progressEventReducer(config.onUploadProgress));
|
|
1105
|
+
e.forEach((c) => c.addEventListener("abort", i));
|
|
1106
|
+
const { signal: d } = r;
|
|
1107
|
+
return d.unsubscribe = () => a.asap(l), d;
|
|
1108
|
+
}
|
|
1109
|
+
}, gr = function* (e, t) {
|
|
1110
|
+
let n = e.byteLength;
|
|
1111
|
+
if (n < t) {
|
|
1112
|
+
yield e;
|
|
1113
|
+
return;
|
|
1114
|
+
}
|
|
1115
|
+
let r = 0, s;
|
|
1116
|
+
for (; r < n; )
|
|
1117
|
+
s = r + t, yield e.slice(r, s), r = s;
|
|
1118
|
+
}, br = async function* (e, t) {
|
|
1119
|
+
for await (const n of yr(e))
|
|
1120
|
+
yield* gr(n, t);
|
|
1121
|
+
}, yr = async function* (e) {
|
|
1122
|
+
if (e[Symbol.asyncIterator]) {
|
|
1123
|
+
yield* e;
|
|
1124
|
+
return;
|
|
1125
|
+
}
|
|
1126
|
+
const t = e.getReader();
|
|
1127
|
+
try {
|
|
1128
|
+
for (; ; ) {
|
|
1129
|
+
const { done: n, value: r } = await t.read();
|
|
1130
|
+
if (n)
|
|
1131
|
+
break;
|
|
1132
|
+
yield r;
|
|
1420
1133
|
}
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1134
|
+
} finally {
|
|
1135
|
+
await t.cancel();
|
|
1136
|
+
}
|
|
1137
|
+
}, tt = (e, t, n, r) => {
|
|
1138
|
+
const s = br(e, t);
|
|
1139
|
+
let i = 0, o, l = (d) => {
|
|
1140
|
+
o || (o = !0, r && r(d));
|
|
1141
|
+
};
|
|
1142
|
+
return new ReadableStream({
|
|
1143
|
+
async pull(d) {
|
|
1144
|
+
try {
|
|
1145
|
+
const { done: c, value: u } = await s.next();
|
|
1146
|
+
if (c) {
|
|
1147
|
+
l(), d.close();
|
|
1424
1148
|
return;
|
|
1425
1149
|
}
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1150
|
+
let f = u.byteLength;
|
|
1151
|
+
if (n) {
|
|
1152
|
+
let A = i += f;
|
|
1153
|
+
n(A);
|
|
1154
|
+
}
|
|
1155
|
+
d.enqueue(new Uint8Array(u));
|
|
1156
|
+
} catch (c) {
|
|
1157
|
+
throw l(c), c;
|
|
1433
1158
|
}
|
|
1159
|
+
},
|
|
1160
|
+
cancel(d) {
|
|
1161
|
+
return l(d), s.return();
|
|
1434
1162
|
}
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
|
|
1438
|
-
return;
|
|
1439
|
-
}
|
|
1440
|
-
request.send(requestData || null);
|
|
1163
|
+
}, {
|
|
1164
|
+
highWaterMark: 2
|
|
1441
1165
|
});
|
|
1166
|
+
}, we = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", xt = we && typeof ReadableStream == "function", wr = we && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Pt = (e, ...t) => {
|
|
1167
|
+
try {
|
|
1168
|
+
return !!e(...t);
|
|
1169
|
+
} catch {
|
|
1170
|
+
return !1;
|
|
1171
|
+
}
|
|
1172
|
+
}, Ar = xt && Pt(() => {
|
|
1173
|
+
let e = !1;
|
|
1174
|
+
const t = new Request(N.origin, {
|
|
1175
|
+
body: new ReadableStream(),
|
|
1176
|
+
method: "POST",
|
|
1177
|
+
get duplex() {
|
|
1178
|
+
return e = !0, "half";
|
|
1179
|
+
}
|
|
1180
|
+
}).headers.has("Content-Type");
|
|
1181
|
+
return e && !t;
|
|
1182
|
+
}), nt = 64 * 1024, Oe = xt && Pt(() => a.isReadableStream(new Response("").body)), fe = {
|
|
1183
|
+
stream: Oe && ((e) => e.body)
|
|
1442
1184
|
};
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1185
|
+
we && ((e) => {
|
|
1186
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1187
|
+
!fe[t] && (fe[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
|
|
1188
|
+
throw new b(`Response type '${t}' is not supported`, b.ERR_NOT_SUPPORT, r);
|
|
1189
|
+
});
|
|
1190
|
+
});
|
|
1191
|
+
})(new Response());
|
|
1192
|
+
const Er = async (e) => {
|
|
1193
|
+
if (e == null)
|
|
1194
|
+
return 0;
|
|
1195
|
+
if (a.isBlob(e))
|
|
1196
|
+
return e.size;
|
|
1197
|
+
if (a.isSpecCompliantForm(e))
|
|
1198
|
+
return (await new Request(N.origin, {
|
|
1199
|
+
method: "POST",
|
|
1200
|
+
body: e
|
|
1201
|
+
}).arrayBuffer()).byteLength;
|
|
1202
|
+
if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
|
|
1203
|
+
return e.byteLength;
|
|
1204
|
+
if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
|
|
1205
|
+
return (await wr(e)).byteLength;
|
|
1206
|
+
}, Sr = async (e, t) => {
|
|
1207
|
+
const n = a.toFiniteNumber(e.getContentLength());
|
|
1208
|
+
return n ?? Er(t);
|
|
1209
|
+
}, vr = we && (async (e) => {
|
|
1210
|
+
let {
|
|
1211
|
+
url: t,
|
|
1212
|
+
method: n,
|
|
1213
|
+
data: r,
|
|
1214
|
+
signal: s,
|
|
1215
|
+
cancelToken: i,
|
|
1216
|
+
timeout: o,
|
|
1217
|
+
onDownloadProgress: l,
|
|
1218
|
+
onUploadProgress: d,
|
|
1219
|
+
responseType: c,
|
|
1220
|
+
headers: u,
|
|
1221
|
+
withCredentials: f = "same-origin",
|
|
1222
|
+
fetchOptions: A
|
|
1223
|
+
} = Bt(e);
|
|
1224
|
+
c = c ? (c + "").toLowerCase() : "text";
|
|
1225
|
+
let R = mr([s, i && i.toAbortSignal()], o), p;
|
|
1226
|
+
const g = R && R.unsubscribe && (() => {
|
|
1227
|
+
R.unsubscribe();
|
|
1228
|
+
});
|
|
1229
|
+
let h;
|
|
1230
|
+
try {
|
|
1231
|
+
if (d && Ar && n !== "get" && n !== "head" && (h = await Sr(u, r)) !== 0) {
|
|
1232
|
+
let P = new Request(t, {
|
|
1233
|
+
method: "POST",
|
|
1234
|
+
body: r,
|
|
1235
|
+
duplex: "half"
|
|
1236
|
+
}), U;
|
|
1237
|
+
if (a.isFormData(r) && (U = P.headers.get("content-type")) && u.setContentType(U), P.body) {
|
|
1238
|
+
const [Q, Z] = Ke(
|
|
1239
|
+
h,
|
|
1240
|
+
de($e(d))
|
|
1241
|
+
);
|
|
1242
|
+
r = tt(P.body, nt, Q, Z);
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
a.isString(f) || (f = f ? "include" : "omit");
|
|
1246
|
+
const v = "credentials" in Request.prototype;
|
|
1247
|
+
p = new Request(t, {
|
|
1248
|
+
...A,
|
|
1249
|
+
signal: R,
|
|
1250
|
+
method: n.toUpperCase(),
|
|
1251
|
+
headers: u.normalize().toJSON(),
|
|
1252
|
+
body: r,
|
|
1253
|
+
duplex: "half",
|
|
1254
|
+
credentials: v ? f : void 0
|
|
1255
|
+
});
|
|
1256
|
+
let C = await fetch(p);
|
|
1257
|
+
const O = Oe && (c === "stream" || c === "response");
|
|
1258
|
+
if (Oe && (l || O && g)) {
|
|
1259
|
+
const P = {};
|
|
1260
|
+
["status", "statusText", "headers"].forEach((m) => {
|
|
1261
|
+
P[m] = C[m];
|
|
1262
|
+
});
|
|
1263
|
+
const U = a.toFiniteNumber(C.headers.get("content-length")), [Q, Z] = l && Ke(
|
|
1264
|
+
U,
|
|
1265
|
+
de($e(l), !0)
|
|
1266
|
+
) || [];
|
|
1267
|
+
C = new Response(
|
|
1268
|
+
tt(C.body, nt, Q, () => {
|
|
1269
|
+
Z && Z(), g && g();
|
|
1270
|
+
}),
|
|
1271
|
+
P
|
|
1272
|
+
);
|
|
1273
|
+
}
|
|
1274
|
+
c = c || "text";
|
|
1275
|
+
let q = await fe[a.findKey(fe, c) || "text"](C, e);
|
|
1276
|
+
return !O && g && g(), await new Promise((P, U) => {
|
|
1277
|
+
Ct(P, U, {
|
|
1278
|
+
data: q,
|
|
1279
|
+
headers: D.from(C.headers),
|
|
1280
|
+
status: C.status,
|
|
1281
|
+
statusText: C.statusText,
|
|
1282
|
+
config: e,
|
|
1283
|
+
request: p
|
|
1284
|
+
});
|
|
1285
|
+
});
|
|
1286
|
+
} catch (v) {
|
|
1287
|
+
throw g && g(), v && v.name === "TypeError" && /fetch/i.test(v.message) ? Object.assign(
|
|
1288
|
+
new b("Network Error", b.ERR_NETWORK, e, p),
|
|
1289
|
+
{
|
|
1290
|
+
cause: v.cause || v
|
|
1291
|
+
}
|
|
1292
|
+
) : b.from(v, v && v.code, e, p);
|
|
1293
|
+
}
|
|
1294
|
+
}), Be = {
|
|
1295
|
+
http: jn,
|
|
1296
|
+
xhr: hr,
|
|
1297
|
+
fetch: vr
|
|
1446
1298
|
};
|
|
1447
|
-
|
|
1448
|
-
if (
|
|
1299
|
+
a.forEach(Be, (e, t) => {
|
|
1300
|
+
if (e) {
|
|
1449
1301
|
try {
|
|
1450
|
-
Object.defineProperty(
|
|
1451
|
-
} catch
|
|
1302
|
+
Object.defineProperty(e, "name", { value: t });
|
|
1303
|
+
} catch {
|
|
1452
1304
|
}
|
|
1453
|
-
Object.defineProperty(
|
|
1305
|
+
Object.defineProperty(e, "adapterName", { value: t });
|
|
1454
1306
|
}
|
|
1455
1307
|
});
|
|
1456
|
-
const
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
const
|
|
1462
|
-
let
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
adapter = nameOrAdapter;
|
|
1469
|
-
if (!isResolvedHandle(nameOrAdapter)) {
|
|
1470
|
-
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
1471
|
-
if (adapter === void 0) {
|
|
1472
|
-
throw new AxiosError(`Unknown adapter '${id}'`);
|
|
1473
|
-
}
|
|
1474
|
-
}
|
|
1475
|
-
if (adapter) {
|
|
1308
|
+
const rt = (e) => `- ${e}`, Rr = (e) => a.isFunction(e) || e === null || e === !1, Nt = {
|
|
1309
|
+
getAdapter: (e) => {
|
|
1310
|
+
e = a.isArray(e) ? e : [e];
|
|
1311
|
+
const { length: t } = e;
|
|
1312
|
+
let n, r;
|
|
1313
|
+
const s = {};
|
|
1314
|
+
for (let i = 0; i < t; i++) {
|
|
1315
|
+
n = e[i];
|
|
1316
|
+
let o;
|
|
1317
|
+
if (r = n, !Rr(n) && (r = Be[(o = String(n)).toLowerCase()], r === void 0))
|
|
1318
|
+
throw new b(`Unknown adapter '${o}'`);
|
|
1319
|
+
if (r)
|
|
1476
1320
|
break;
|
|
1477
|
-
|
|
1478
|
-
rejectedReasons[id || "#" + i2] = adapter;
|
|
1321
|
+
s[o || "#" + i] = r;
|
|
1479
1322
|
}
|
|
1480
|
-
if (!
|
|
1481
|
-
const
|
|
1482
|
-
([
|
|
1323
|
+
if (!r) {
|
|
1324
|
+
const i = Object.entries(s).map(
|
|
1325
|
+
([l, d]) => `adapter ${l} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1483
1326
|
);
|
|
1484
|
-
let
|
|
1485
|
-
|
|
1486
|
-
|
|
1327
|
+
let o = t ? i.length > 1 ? `since :
|
|
1328
|
+
` + i.map(rt).join(`
|
|
1329
|
+
`) : " " + rt(i[0]) : "as no adapter specified";
|
|
1330
|
+
throw new b(
|
|
1331
|
+
"There is no suitable adapter to dispatch the request " + o,
|
|
1487
1332
|
"ERR_NOT_SUPPORT"
|
|
1488
1333
|
);
|
|
1489
1334
|
}
|
|
1490
|
-
return
|
|
1335
|
+
return r;
|
|
1491
1336
|
},
|
|
1492
|
-
adapters:
|
|
1337
|
+
adapters: Be
|
|
1493
1338
|
};
|
|
1494
|
-
function
|
|
1495
|
-
if (
|
|
1496
|
-
|
|
1497
|
-
}
|
|
1498
|
-
if (config.signal && config.signal.aborted) {
|
|
1499
|
-
throw new CanceledError(null, config);
|
|
1500
|
-
}
|
|
1501
|
-
}
|
|
1502
|
-
function dispatchRequest(config) {
|
|
1503
|
-
throwIfCancellationRequested(config);
|
|
1504
|
-
config.headers = AxiosHeaders$1.from(config.headers);
|
|
1505
|
-
config.data = transformData.call(
|
|
1506
|
-
config,
|
|
1507
|
-
config.transformRequest
|
|
1508
|
-
);
|
|
1509
|
-
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
1510
|
-
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
1511
|
-
}
|
|
1512
|
-
const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
|
|
1513
|
-
return adapter(config).then(function onAdapterResolution(response) {
|
|
1514
|
-
throwIfCancellationRequested(config);
|
|
1515
|
-
response.data = transformData.call(
|
|
1516
|
-
config,
|
|
1517
|
-
config.transformResponse,
|
|
1518
|
-
response
|
|
1519
|
-
);
|
|
1520
|
-
response.headers = AxiosHeaders$1.from(response.headers);
|
|
1521
|
-
return response;
|
|
1522
|
-
}, function onAdapterRejection(reason) {
|
|
1523
|
-
if (!isCancel(reason)) {
|
|
1524
|
-
throwIfCancellationRequested(config);
|
|
1525
|
-
if (reason && reason.response) {
|
|
1526
|
-
reason.response.data = transformData.call(
|
|
1527
|
-
config,
|
|
1528
|
-
config.transformResponse,
|
|
1529
|
-
reason.response
|
|
1530
|
-
);
|
|
1531
|
-
reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
|
|
1532
|
-
}
|
|
1533
|
-
}
|
|
1534
|
-
return Promise.reject(reason);
|
|
1535
|
-
});
|
|
1339
|
+
function ve(e) {
|
|
1340
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1341
|
+
throw new ee(null, e);
|
|
1536
1342
|
}
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
return getMergedValue(a2, b2, caseless);
|
|
1554
|
-
} else if (!utils$1.isUndefined(a2)) {
|
|
1555
|
-
return getMergedValue(void 0, a2, caseless);
|
|
1556
|
-
}
|
|
1557
|
-
}
|
|
1558
|
-
function valueFromConfig2(a2, b2) {
|
|
1559
|
-
if (!utils$1.isUndefined(b2)) {
|
|
1560
|
-
return getMergedValue(void 0, b2);
|
|
1561
|
-
}
|
|
1562
|
-
}
|
|
1563
|
-
function defaultToConfig2(a2, b2) {
|
|
1564
|
-
if (!utils$1.isUndefined(b2)) {
|
|
1565
|
-
return getMergedValue(void 0, b2);
|
|
1566
|
-
} else if (!utils$1.isUndefined(a2)) {
|
|
1567
|
-
return getMergedValue(void 0, a2);
|
|
1568
|
-
}
|
|
1569
|
-
}
|
|
1570
|
-
function mergeDirectKeys(a2, b2, prop) {
|
|
1571
|
-
if (prop in config2) {
|
|
1572
|
-
return getMergedValue(a2, b2);
|
|
1573
|
-
} else if (prop in config1) {
|
|
1574
|
-
return getMergedValue(void 0, a2);
|
|
1575
|
-
}
|
|
1576
|
-
}
|
|
1577
|
-
const mergeMap = {
|
|
1578
|
-
url: valueFromConfig2,
|
|
1579
|
-
method: valueFromConfig2,
|
|
1580
|
-
data: valueFromConfig2,
|
|
1581
|
-
baseURL: defaultToConfig2,
|
|
1582
|
-
transformRequest: defaultToConfig2,
|
|
1583
|
-
transformResponse: defaultToConfig2,
|
|
1584
|
-
paramsSerializer: defaultToConfig2,
|
|
1585
|
-
timeout: defaultToConfig2,
|
|
1586
|
-
timeoutMessage: defaultToConfig2,
|
|
1587
|
-
withCredentials: defaultToConfig2,
|
|
1588
|
-
withXSRFToken: defaultToConfig2,
|
|
1589
|
-
adapter: defaultToConfig2,
|
|
1590
|
-
responseType: defaultToConfig2,
|
|
1591
|
-
xsrfCookieName: defaultToConfig2,
|
|
1592
|
-
xsrfHeaderName: defaultToConfig2,
|
|
1593
|
-
onUploadProgress: defaultToConfig2,
|
|
1594
|
-
onDownloadProgress: defaultToConfig2,
|
|
1595
|
-
decompress: defaultToConfig2,
|
|
1596
|
-
maxContentLength: defaultToConfig2,
|
|
1597
|
-
maxBodyLength: defaultToConfig2,
|
|
1598
|
-
beforeRedirect: defaultToConfig2,
|
|
1599
|
-
transport: defaultToConfig2,
|
|
1600
|
-
httpAgent: defaultToConfig2,
|
|
1601
|
-
httpsAgent: defaultToConfig2,
|
|
1602
|
-
cancelToken: defaultToConfig2,
|
|
1603
|
-
socketPath: defaultToConfig2,
|
|
1604
|
-
responseEncoding: defaultToConfig2,
|
|
1605
|
-
validateStatus: mergeDirectKeys,
|
|
1606
|
-
headers: (a2, b2) => mergeDeepProperties(headersToObject(a2), headersToObject(b2), true)
|
|
1607
|
-
};
|
|
1608
|
-
utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
|
|
1609
|
-
const merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
1610
|
-
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
1611
|
-
utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
1343
|
+
function st(e) {
|
|
1344
|
+
return ve(e), e.headers = D.from(e.headers), e.data = Se.call(
|
|
1345
|
+
e,
|
|
1346
|
+
e.transformRequest
|
|
1347
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Nt.getAdapter(e.adapter || ae.adapter)(e).then(function(r) {
|
|
1348
|
+
return ve(e), r.data = Se.call(
|
|
1349
|
+
e,
|
|
1350
|
+
e.transformResponse,
|
|
1351
|
+
r
|
|
1352
|
+
), r.headers = D.from(r.headers), r;
|
|
1353
|
+
}, function(r) {
|
|
1354
|
+
return Tt(r) || (ve(e), r && r.response && (r.response.data = Se.call(
|
|
1355
|
+
e,
|
|
1356
|
+
e.transformResponse,
|
|
1357
|
+
r.response
|
|
1358
|
+
), r.response.headers = D.from(r.response.headers))), Promise.reject(r);
|
|
1612
1359
|
});
|
|
1613
|
-
return config;
|
|
1614
1360
|
}
|
|
1615
|
-
const
|
|
1616
|
-
|
|
1617
|
-
[
|
|
1618
|
-
|
|
1619
|
-
return typeof thing === type || "a" + (i2 < 1 ? "n " : " ") + type;
|
|
1361
|
+
const Dt = "1.7.7", qe = {};
|
|
1362
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1363
|
+
qe[e] = function(r) {
|
|
1364
|
+
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1620
1365
|
};
|
|
1621
1366
|
});
|
|
1622
|
-
const
|
|
1623
|
-
|
|
1624
|
-
function
|
|
1625
|
-
return "[Axios v" +
|
|
1626
|
-
}
|
|
1627
|
-
return (
|
|
1628
|
-
if (
|
|
1629
|
-
throw new
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
);
|
|
1633
|
-
}
|
|
1634
|
-
if (version && !deprecatedWarnings[opt]) {
|
|
1635
|
-
deprecatedWarnings[opt] = true;
|
|
1636
|
-
console.warn(
|
|
1637
|
-
formatMessage(
|
|
1638
|
-
opt,
|
|
1639
|
-
" has been deprecated since v" + version + " and will be removed in the near future"
|
|
1640
|
-
)
|
|
1367
|
+
const ot = {};
|
|
1368
|
+
qe.transitional = function(t, n, r) {
|
|
1369
|
+
function s(i, o) {
|
|
1370
|
+
return "[Axios v" + Dt + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
|
|
1371
|
+
}
|
|
1372
|
+
return (i, o, l) => {
|
|
1373
|
+
if (t === !1)
|
|
1374
|
+
throw new b(
|
|
1375
|
+
s(o, " has been removed" + (n ? " in " + n : "")),
|
|
1376
|
+
b.ERR_DEPRECATED
|
|
1641
1377
|
);
|
|
1642
|
-
|
|
1643
|
-
|
|
1378
|
+
return n && !ot[o] && (ot[o] = !0, console.warn(
|
|
1379
|
+
s(
|
|
1380
|
+
o,
|
|
1381
|
+
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1382
|
+
)
|
|
1383
|
+
)), t ? t(i, o, l) : !0;
|
|
1644
1384
|
};
|
|
1645
1385
|
};
|
|
1646
|
-
function
|
|
1647
|
-
if (typeof
|
|
1648
|
-
throw new
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
const result = value === void 0 || validator2(value, opt, options);
|
|
1658
|
-
if (result !== true) {
|
|
1659
|
-
throw new AxiosError("option " + opt + " must be " + result, AxiosError.ERR_BAD_OPTION_VALUE);
|
|
1660
|
-
}
|
|
1386
|
+
function Tr(e, t, n) {
|
|
1387
|
+
if (typeof e != "object")
|
|
1388
|
+
throw new b("options must be an object", b.ERR_BAD_OPTION_VALUE);
|
|
1389
|
+
const r = Object.keys(e);
|
|
1390
|
+
let s = r.length;
|
|
1391
|
+
for (; s-- > 0; ) {
|
|
1392
|
+
const i = r[s], o = t[i];
|
|
1393
|
+
if (o) {
|
|
1394
|
+
const l = e[i], d = l === void 0 || o(l, i, e);
|
|
1395
|
+
if (d !== !0)
|
|
1396
|
+
throw new b("option " + i + " must be " + d, b.ERR_BAD_OPTION_VALUE);
|
|
1661
1397
|
continue;
|
|
1662
1398
|
}
|
|
1663
|
-
if (
|
|
1664
|
-
throw new
|
|
1665
|
-
}
|
|
1399
|
+
if (n !== !0)
|
|
1400
|
+
throw new b("Unknown option " + i, b.ERR_BAD_OPTION);
|
|
1666
1401
|
}
|
|
1667
1402
|
}
|
|
1668
|
-
const
|
|
1669
|
-
assertOptions,
|
|
1670
|
-
validators:
|
|
1671
|
-
};
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
request: new InterceptorManager(),
|
|
1678
|
-
response: new InterceptorManager()
|
|
1403
|
+
const xe = {
|
|
1404
|
+
assertOptions: Tr,
|
|
1405
|
+
validators: qe
|
|
1406
|
+
}, V = xe.validators;
|
|
1407
|
+
class X {
|
|
1408
|
+
constructor(t) {
|
|
1409
|
+
this.defaults = t, this.interceptors = {
|
|
1410
|
+
request: new Ye(),
|
|
1411
|
+
response: new Ye()
|
|
1679
1412
|
};
|
|
1680
1413
|
}
|
|
1681
1414
|
/**
|
|
@@ -1686,244 +1419,194 @@ class Axios {
|
|
|
1686
1419
|
*
|
|
1687
1420
|
* @returns {Promise} The Promise to be fulfilled
|
|
1688
1421
|
*/
|
|
1689
|
-
async request(
|
|
1422
|
+
async request(t, n) {
|
|
1690
1423
|
try {
|
|
1691
|
-
return await this._request(
|
|
1692
|
-
} catch (
|
|
1693
|
-
if (
|
|
1694
|
-
let
|
|
1695
|
-
Error.captureStackTrace ? Error.captureStackTrace(
|
|
1696
|
-
const
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1424
|
+
return await this._request(t, n);
|
|
1425
|
+
} catch (r) {
|
|
1426
|
+
if (r instanceof Error) {
|
|
1427
|
+
let s;
|
|
1428
|
+
Error.captureStackTrace ? Error.captureStackTrace(s = {}) : s = new Error();
|
|
1429
|
+
const i = s.stack ? s.stack.replace(/^.+\n/, "") : "";
|
|
1430
|
+
try {
|
|
1431
|
+
r.stack ? i && !String(r.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
1432
|
+
` + i) : r.stack = i;
|
|
1433
|
+
} catch {
|
|
1701
1434
|
}
|
|
1702
1435
|
}
|
|
1703
|
-
throw
|
|
1704
|
-
}
|
|
1705
|
-
}
|
|
1706
|
-
_request(
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
if (paramsSerializer != null) {
|
|
1723
|
-
if (utils$1.isFunction(paramsSerializer)) {
|
|
1724
|
-
config.paramsSerializer = {
|
|
1725
|
-
serialize: paramsSerializer
|
|
1726
|
-
};
|
|
1727
|
-
} else {
|
|
1728
|
-
validator.assertOptions(paramsSerializer, {
|
|
1729
|
-
encode: validators.function,
|
|
1730
|
-
serialize: validators.function
|
|
1731
|
-
}, true);
|
|
1732
|
-
}
|
|
1733
|
-
}
|
|
1734
|
-
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
1735
|
-
let contextHeaders = headers && utils$1.merge(
|
|
1736
|
-
headers.common,
|
|
1737
|
-
headers[config.method]
|
|
1436
|
+
throw r;
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
_request(t, n) {
|
|
1440
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Y(this.defaults, n);
|
|
1441
|
+
const { transitional: r, paramsSerializer: s, headers: i } = n;
|
|
1442
|
+
r !== void 0 && xe.assertOptions(r, {
|
|
1443
|
+
silentJSONParsing: V.transitional(V.boolean),
|
|
1444
|
+
forcedJSONParsing: V.transitional(V.boolean),
|
|
1445
|
+
clarifyTimeoutError: V.transitional(V.boolean)
|
|
1446
|
+
}, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
1447
|
+
serialize: s
|
|
1448
|
+
} : xe.assertOptions(s, {
|
|
1449
|
+
encode: V.function,
|
|
1450
|
+
serialize: V.function
|
|
1451
|
+
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1452
|
+
let o = i && a.merge(
|
|
1453
|
+
i.common,
|
|
1454
|
+
i[n.method]
|
|
1738
1455
|
);
|
|
1739
|
-
|
|
1456
|
+
i && a.forEach(
|
|
1740
1457
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1741
|
-
(
|
|
1742
|
-
delete
|
|
1458
|
+
(p) => {
|
|
1459
|
+
delete i[p];
|
|
1743
1460
|
}
|
|
1744
|
-
);
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config) === false) {
|
|
1750
|
-
return;
|
|
1751
|
-
}
|
|
1752
|
-
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
1753
|
-
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
1461
|
+
), n.headers = D.concat(o, i);
|
|
1462
|
+
const l = [];
|
|
1463
|
+
let d = !0;
|
|
1464
|
+
this.interceptors.request.forEach(function(g) {
|
|
1465
|
+
typeof g.runWhen == "function" && g.runWhen(n) === !1 || (d = d && g.synchronous, l.unshift(g.fulfilled, g.rejected));
|
|
1754
1466
|
});
|
|
1755
|
-
const
|
|
1756
|
-
this.interceptors.response.forEach(function
|
|
1757
|
-
|
|
1467
|
+
const c = [];
|
|
1468
|
+
this.interceptors.response.forEach(function(g) {
|
|
1469
|
+
c.push(g.fulfilled, g.rejected);
|
|
1758
1470
|
});
|
|
1759
|
-
let
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
}
|
|
1771
|
-
return promise;
|
|
1772
|
-
}
|
|
1773
|
-
len = requestInterceptorChain.length;
|
|
1774
|
-
let newConfig = config;
|
|
1775
|
-
i2 = 0;
|
|
1776
|
-
while (i2 < len) {
|
|
1777
|
-
const onFulfilled = requestInterceptorChain[i2++];
|
|
1778
|
-
const onRejected = requestInterceptorChain[i2++];
|
|
1471
|
+
let u, f = 0, A;
|
|
1472
|
+
if (!d) {
|
|
1473
|
+
const p = [st.bind(this), void 0];
|
|
1474
|
+
for (p.unshift.apply(p, l), p.push.apply(p, c), A = p.length, u = Promise.resolve(n); f < A; )
|
|
1475
|
+
u = u.then(p[f++], p[f++]);
|
|
1476
|
+
return u;
|
|
1477
|
+
}
|
|
1478
|
+
A = l.length;
|
|
1479
|
+
let R = n;
|
|
1480
|
+
for (f = 0; f < A; ) {
|
|
1481
|
+
const p = l[f++], g = l[f++];
|
|
1779
1482
|
try {
|
|
1780
|
-
|
|
1781
|
-
} catch (
|
|
1782
|
-
|
|
1483
|
+
R = p(R);
|
|
1484
|
+
} catch (h) {
|
|
1485
|
+
g.call(this, h);
|
|
1783
1486
|
break;
|
|
1784
1487
|
}
|
|
1785
1488
|
}
|
|
1786
1489
|
try {
|
|
1787
|
-
|
|
1788
|
-
} catch (
|
|
1789
|
-
return Promise.reject(
|
|
1790
|
-
}
|
|
1791
|
-
i2 = 0;
|
|
1792
|
-
len = responseInterceptorChain.length;
|
|
1793
|
-
while (i2 < len) {
|
|
1794
|
-
promise = promise.then(responseInterceptorChain[i2++], responseInterceptorChain[i2++]);
|
|
1490
|
+
u = st.call(this, R);
|
|
1491
|
+
} catch (p) {
|
|
1492
|
+
return Promise.reject(p);
|
|
1795
1493
|
}
|
|
1796
|
-
|
|
1494
|
+
for (f = 0, A = c.length; f < A; )
|
|
1495
|
+
u = u.then(c[f++], c[f++]);
|
|
1496
|
+
return u;
|
|
1797
1497
|
}
|
|
1798
|
-
getUri(
|
|
1799
|
-
|
|
1800
|
-
const
|
|
1801
|
-
return
|
|
1498
|
+
getUri(t) {
|
|
1499
|
+
t = Y(this.defaults, t);
|
|
1500
|
+
const n = Ot(t.baseURL, t.url);
|
|
1501
|
+
return St(n, t.params, t.paramsSerializer);
|
|
1802
1502
|
}
|
|
1803
1503
|
}
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
return this.request(
|
|
1807
|
-
method,
|
|
1808
|
-
url,
|
|
1809
|
-
data: (
|
|
1504
|
+
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1505
|
+
X.prototype[t] = function(n, r) {
|
|
1506
|
+
return this.request(Y(r || {}, {
|
|
1507
|
+
method: t,
|
|
1508
|
+
url: n,
|
|
1509
|
+
data: (r || {}).data
|
|
1810
1510
|
}));
|
|
1811
1511
|
};
|
|
1812
1512
|
});
|
|
1813
|
-
|
|
1814
|
-
function
|
|
1815
|
-
return function
|
|
1816
|
-
return this.request(
|
|
1817
|
-
method,
|
|
1818
|
-
headers:
|
|
1513
|
+
a.forEach(["post", "put", "patch"], function(t) {
|
|
1514
|
+
function n(r) {
|
|
1515
|
+
return function(i, o, l) {
|
|
1516
|
+
return this.request(Y(l || {}, {
|
|
1517
|
+
method: t,
|
|
1518
|
+
headers: r ? {
|
|
1819
1519
|
"Content-Type": "multipart/form-data"
|
|
1820
1520
|
} : {},
|
|
1821
|
-
url,
|
|
1822
|
-
data
|
|
1521
|
+
url: i,
|
|
1522
|
+
data: o
|
|
1823
1523
|
}));
|
|
1824
1524
|
};
|
|
1825
1525
|
}
|
|
1826
|
-
|
|
1827
|
-
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
1526
|
+
X.prototype[t] = n(), X.prototype[t + "Form"] = n(!0);
|
|
1828
1527
|
});
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
if (typeof executor !== "function") {
|
|
1528
|
+
class Ie {
|
|
1529
|
+
constructor(t) {
|
|
1530
|
+
if (typeof t != "function")
|
|
1833
1531
|
throw new TypeError("executor must be a function.");
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
resolvePromise = resolve;
|
|
1532
|
+
let n;
|
|
1533
|
+
this.promise = new Promise(function(i) {
|
|
1534
|
+
n = i;
|
|
1838
1535
|
});
|
|
1839
|
-
const
|
|
1840
|
-
this.promise.then((
|
|
1841
|
-
if (!
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
token.unsubscribe(_resolve);
|
|
1857
|
-
};
|
|
1858
|
-
return promise;
|
|
1859
|
-
};
|
|
1860
|
-
executor(function cancel(message, config, request) {
|
|
1861
|
-
if (token.reason) {
|
|
1862
|
-
return;
|
|
1863
|
-
}
|
|
1864
|
-
token.reason = new CanceledError(message, config, request);
|
|
1865
|
-
resolvePromise(token.reason);
|
|
1536
|
+
const r = this;
|
|
1537
|
+
this.promise.then((s) => {
|
|
1538
|
+
if (!r._listeners) return;
|
|
1539
|
+
let i = r._listeners.length;
|
|
1540
|
+
for (; i-- > 0; )
|
|
1541
|
+
r._listeners[i](s);
|
|
1542
|
+
r._listeners = null;
|
|
1543
|
+
}), this.promise.then = (s) => {
|
|
1544
|
+
let i;
|
|
1545
|
+
const o = new Promise((l) => {
|
|
1546
|
+
r.subscribe(l), i = l;
|
|
1547
|
+
}).then(s);
|
|
1548
|
+
return o.cancel = function() {
|
|
1549
|
+
r.unsubscribe(i);
|
|
1550
|
+
}, o;
|
|
1551
|
+
}, t(function(i, o, l) {
|
|
1552
|
+
r.reason || (r.reason = new ee(i, o, l), n(r.reason));
|
|
1866
1553
|
});
|
|
1867
1554
|
}
|
|
1868
1555
|
/**
|
|
1869
1556
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
1870
1557
|
*/
|
|
1871
1558
|
throwIfRequested() {
|
|
1872
|
-
if (this.reason)
|
|
1559
|
+
if (this.reason)
|
|
1873
1560
|
throw this.reason;
|
|
1874
|
-
}
|
|
1875
1561
|
}
|
|
1876
1562
|
/**
|
|
1877
1563
|
* Subscribe to the cancel signal
|
|
1878
1564
|
*/
|
|
1879
|
-
subscribe(
|
|
1565
|
+
subscribe(t) {
|
|
1880
1566
|
if (this.reason) {
|
|
1881
|
-
|
|
1567
|
+
t(this.reason);
|
|
1882
1568
|
return;
|
|
1883
1569
|
}
|
|
1884
|
-
|
|
1885
|
-
this._listeners.push(listener);
|
|
1886
|
-
} else {
|
|
1887
|
-
this._listeners = [listener];
|
|
1888
|
-
}
|
|
1570
|
+
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
1889
1571
|
}
|
|
1890
1572
|
/**
|
|
1891
1573
|
* Unsubscribe from the cancel signal
|
|
1892
1574
|
*/
|
|
1893
|
-
unsubscribe(
|
|
1894
|
-
if (!this._listeners)
|
|
1575
|
+
unsubscribe(t) {
|
|
1576
|
+
if (!this._listeners)
|
|
1895
1577
|
return;
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1578
|
+
const n = this._listeners.indexOf(t);
|
|
1579
|
+
n !== -1 && this._listeners.splice(n, 1);
|
|
1580
|
+
}
|
|
1581
|
+
toAbortSignal() {
|
|
1582
|
+
const t = new AbortController(), n = (r) => {
|
|
1583
|
+
t.abort(r);
|
|
1584
|
+
};
|
|
1585
|
+
return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
|
|
1901
1586
|
}
|
|
1902
1587
|
/**
|
|
1903
1588
|
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1904
1589
|
* cancels the `CancelToken`.
|
|
1905
1590
|
*/
|
|
1906
1591
|
static source() {
|
|
1907
|
-
let
|
|
1908
|
-
const token = new CancelToken(function executor(c) {
|
|
1909
|
-
cancel = c;
|
|
1910
|
-
});
|
|
1592
|
+
let t;
|
|
1911
1593
|
return {
|
|
1912
|
-
token
|
|
1913
|
-
|
|
1594
|
+
token: new Ie(function(s) {
|
|
1595
|
+
t = s;
|
|
1596
|
+
}),
|
|
1597
|
+
cancel: t
|
|
1914
1598
|
};
|
|
1915
1599
|
}
|
|
1916
1600
|
}
|
|
1917
|
-
|
|
1918
|
-
function
|
|
1919
|
-
|
|
1920
|
-
return callback.apply(null, arr);
|
|
1601
|
+
function Cr(e) {
|
|
1602
|
+
return function(n) {
|
|
1603
|
+
return e.apply(null, n);
|
|
1921
1604
|
};
|
|
1922
1605
|
}
|
|
1923
|
-
function
|
|
1924
|
-
return
|
|
1606
|
+
function Or(e) {
|
|
1607
|
+
return a.isObject(e) && e.isAxiosError === !0;
|
|
1925
1608
|
}
|
|
1926
|
-
const
|
|
1609
|
+
const Pe = {
|
|
1927
1610
|
Continue: 100,
|
|
1928
1611
|
SwitchingProtocols: 101,
|
|
1929
1612
|
Processing: 102,
|
|
@@ -1988,56 +1671,50 @@ const HttpStatusCode = {
|
|
|
1988
1671
|
NotExtended: 510,
|
|
1989
1672
|
NetworkAuthenticationRequired: 511
|
|
1990
1673
|
};
|
|
1991
|
-
Object.entries(
|
|
1992
|
-
|
|
1674
|
+
Object.entries(Pe).forEach(([e, t]) => {
|
|
1675
|
+
Pe[t] = e;
|
|
1993
1676
|
});
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
utils$1.extend(instance, context, null, { allOwnKeys: true });
|
|
2000
|
-
instance.create = function create(instanceConfig) {
|
|
2001
|
-
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
2002
|
-
};
|
|
2003
|
-
return instance;
|
|
1677
|
+
function kt(e) {
|
|
1678
|
+
const t = new X(e), n = ut(X.prototype.request, t);
|
|
1679
|
+
return a.extend(n, X.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1680
|
+
return kt(Y(e, s));
|
|
1681
|
+
}, n;
|
|
2004
1682
|
}
|
|
2005
|
-
const
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
return Promise.all(
|
|
1683
|
+
const T = kt(ae);
|
|
1684
|
+
T.Axios = X;
|
|
1685
|
+
T.CanceledError = ee;
|
|
1686
|
+
T.CancelToken = Ie;
|
|
1687
|
+
T.isCancel = Tt;
|
|
1688
|
+
T.VERSION = Dt;
|
|
1689
|
+
T.toFormData = ye;
|
|
1690
|
+
T.AxiosError = b;
|
|
1691
|
+
T.Cancel = T.CanceledError;
|
|
1692
|
+
T.all = function(t) {
|
|
1693
|
+
return Promise.all(t);
|
|
2016
1694
|
};
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
const ChatBotIcon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFIGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuM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1696
|
+
T.isAxiosError = Or;
|
|
1697
|
+
T.mergeConfig = Y;
|
|
1698
|
+
T.AxiosHeaders = D;
|
|
1699
|
+
T.formToJSON = (e) => Rt(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1700
|
+
T.getAdapter = Nt.getAdapter;
|
|
1701
|
+
T.HttpStatusCode = Pe;
|
|
1702
|
+
T.default = T;
|
|
1703
|
+
const Br = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFIGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoT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RARcETaLPQZC1vOTVfD8+PMEN7xE1rbLBGfm8eGnf3ulDBo/jqWxHpoUk3inYv7tLw4LkgYkbyQMi0aKC9Qua9u4Rn15OeZSTIj5gHCBAfzES7GS1Dym9pebpPx8ZBbouWwhOzY7JCwUsdS/h/3Il9/9PZ8v8XwIFqvI0C/r8H77z8J9oN+H36TiNsW/Qz3FXtgSkrbHxsIBE0hwxNkfKGUuV8mwvARwhUiziZhJBl5i5I1IMmAQuIRD0HtPXdj9dRcMfxQV6czvt/tG/ScJIWRYomaHaOJo93Sr1GChLd3u9o3l7ar3fRFK6MsPXu13n32XIHQ8HdO2iL5aR1MS0AX7zxW/VQsxb+3tXCXdwjgUuJ1cAuUiDHVdzI1JTZmNVOFmbfOjh1U1vcR0w89lc3V9OCFbekm7gJWWbom23h4vWajkU4NWaVWZnGo3bYVeNkvnKzMPeuYamVbX1fMfnePb+x2owCmGDRwWVYJAxINUJ2holLTDWAtj2QXesED7r0+uomOFzvYnbY3LDMrIMltw1JtcbavbYrx4vCyMLNcIMG+mEc0AuLkByjlkvDzwn42YIxghm/M2DsoMcYQmNQyIugi6YynMWy3OXwgBPLdbvTA7YmFhqcLFNtd0Mpfr8Hj/tdq4FN9xWkHmkvz7RDl7yP/1CdqGW83dgwWE/FPzZO2E9Bazl5kR3dMj9yBr21Fctofh9/X/vIiNS6jvqMGI7jQMWpC436CFQBqFAFoEIVgIpTEv8PTBPiNKVw25gAAAAASUVORK5CYII=", xr = /* @__PURE__ */ L({
|
|
2027
1704
|
__name: "QSpinnerLoader",
|
|
2028
1705
|
props: {
|
|
2029
1706
|
size: { default: 48 },
|
|
2030
1707
|
class: { default: void 0 }
|
|
2031
1708
|
},
|
|
2032
|
-
setup(
|
|
2033
|
-
const
|
|
2034
|
-
"font-size":
|
|
1709
|
+
setup(e) {
|
|
1710
|
+
const t = e, n = B(() => ({
|
|
1711
|
+
"font-size": t.size !== 48 ? `${t.size}px` : void 0
|
|
2035
1712
|
}));
|
|
2036
|
-
return (
|
|
1713
|
+
return (r, s) => (y(), E(
|
|
2037
1714
|
"div",
|
|
2038
1715
|
{
|
|
2039
|
-
class:
|
|
2040
|
-
style:
|
|
1716
|
+
class: j(["q-spinner-loader", t.class]),
|
|
1717
|
+
style: he(n.value)
|
|
2041
1718
|
},
|
|
2042
1719
|
null,
|
|
2043
1720
|
6
|
|
@@ -2045,85 +1722,79 @@ const u$2 = /* @__PURE__ */ defineComponent({
|
|
|
2045
1722
|
));
|
|
2046
1723
|
}
|
|
2047
1724
|
});
|
|
2048
|
-
function
|
|
2049
|
-
return
|
|
1725
|
+
function Ne(e) {
|
|
1726
|
+
return e == null ? !0 : typeof e == "string" || Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1;
|
|
2050
1727
|
}
|
|
2051
|
-
function
|
|
2052
|
-
return
|
|
1728
|
+
function it(e) {
|
|
1729
|
+
return e !== null && typeof e == "object" && !Array.isArray(e);
|
|
2053
1730
|
}
|
|
2054
|
-
function
|
|
2055
|
-
const
|
|
2056
|
-
for (const
|
|
2057
|
-
|
|
2058
|
-
for (const
|
|
2059
|
-
const
|
|
2060
|
-
if (
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
1731
|
+
function je(e = {}, t = {}) {
|
|
1732
|
+
const n = {};
|
|
1733
|
+
for (const r in e)
|
|
1734
|
+
n[r] = e[r];
|
|
1735
|
+
for (const r in t) {
|
|
1736
|
+
const s = e[r], i = t[r];
|
|
1737
|
+
if (it(s) && it(i)) {
|
|
1738
|
+
n[r] = je(
|
|
1739
|
+
s,
|
|
1740
|
+
i
|
|
2064
1741
|
);
|
|
2065
1742
|
continue;
|
|
2066
1743
|
}
|
|
2067
|
-
|
|
1744
|
+
n[r] = i;
|
|
2068
1745
|
}
|
|
2069
|
-
return
|
|
1746
|
+
return n;
|
|
2070
1747
|
}
|
|
2071
|
-
const
|
|
2072
|
-
function
|
|
2073
|
-
var
|
|
2074
|
-
const
|
|
2075
|
-
if (!
|
|
1748
|
+
const Ft = "q-defaults";
|
|
1749
|
+
function Pr() {
|
|
1750
|
+
var e, t;
|
|
1751
|
+
const n = lt();
|
|
1752
|
+
if (!n)
|
|
2076
1753
|
throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
|
|
2077
|
-
const
|
|
2078
|
-
if (!
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
return computed(() => f(o2, c));
|
|
1754
|
+
const r = n.type.name ?? n.type.__name;
|
|
1755
|
+
if (!r) throw new Error("[Quidgest UI] Could not determine component name");
|
|
1756
|
+
const s = Lt(), i = (e = s.value) == null ? void 0 : e.Global, o = (t = s.value) == null ? void 0 : t[r];
|
|
1757
|
+
return B(() => je(i, o));
|
|
2082
1758
|
}
|
|
2083
|
-
function
|
|
2084
|
-
if (
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
provide(i, o2);
|
|
1759
|
+
function Nr(e) {
|
|
1760
|
+
if (Ne(e)) return;
|
|
1761
|
+
const t = Lt(), n = G(e), r = B(() => Ne(n.value) ? t.value : je(t.value, n.value));
|
|
1762
|
+
Ut(Ft, r);
|
|
2088
1763
|
}
|
|
2089
|
-
function
|
|
2090
|
-
const
|
|
2091
|
-
if (!
|
|
2092
|
-
|
|
2093
|
-
return e2;
|
|
1764
|
+
function Lt() {
|
|
1765
|
+
const e = zt(Ft, void 0);
|
|
1766
|
+
if (!e) throw new Error("[Quidgest UI] Could not find defaults instance");
|
|
1767
|
+
return e;
|
|
2094
1768
|
}
|
|
2095
|
-
function
|
|
2096
|
-
return
|
|
1769
|
+
function Dr(e) {
|
|
1770
|
+
return e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([0-9])([A-Za-z])/g, "$1-$2").replace(/([A-Za-z])([0-9])/g, "$1-$2").toLowerCase();
|
|
2097
1771
|
}
|
|
2098
|
-
function
|
|
2099
|
-
var
|
|
2100
|
-
const
|
|
2101
|
-
return
|
|
1772
|
+
function kr(e, t) {
|
|
1773
|
+
var n;
|
|
1774
|
+
const r = Dr(t);
|
|
1775
|
+
return r ? typeof ((n = e.props) == null ? void 0 : n[r]) < "u" : !1;
|
|
2102
1776
|
}
|
|
2103
|
-
function
|
|
2104
|
-
const
|
|
2105
|
-
return
|
|
2106
|
-
const
|
|
2107
|
-
if (
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
const f2 = Reflect.get(l2, u2), p2 = (i2 = o2.value) == null ? void 0 : i2[u2];
|
|
2116
|
-
return typeof u2 == "string" && !y(s.vnode, u2) ? p2 ?? f2 : f2;
|
|
1777
|
+
function H(e) {
|
|
1778
|
+
const t = e.setup;
|
|
1779
|
+
return t && (e.setup = (n, r) => {
|
|
1780
|
+
const s = Pr();
|
|
1781
|
+
if (Ne(s.value)) return t(n, r);
|
|
1782
|
+
const i = lt();
|
|
1783
|
+
if (i === null) return t(n, r);
|
|
1784
|
+
const o = new Proxy(n, {
|
|
1785
|
+
get(l, d) {
|
|
1786
|
+
var c;
|
|
1787
|
+
const u = Reflect.get(l, d), f = (c = s.value) == null ? void 0 : c[d];
|
|
1788
|
+
return typeof d == "string" && !kr(i.vnode, d) ? f ?? u : u;
|
|
2117
1789
|
}
|
|
2118
1790
|
});
|
|
2119
|
-
return
|
|
2120
|
-
}),
|
|
1791
|
+
return t(o, r);
|
|
1792
|
+
}), e;
|
|
2121
1793
|
}
|
|
2122
|
-
const
|
|
2123
|
-
const h$3 = ["disabled"], z$2 = {
|
|
1794
|
+
const Fr = H(xr), Lr = ["disabled"], qr = {
|
|
2124
1795
|
key: 0,
|
|
2125
1796
|
class: "q-btn__spinner"
|
|
2126
|
-
},
|
|
1797
|
+
}, Ir = { class: "q-btn__content" }, jr = /* @__PURE__ */ L({
|
|
2127
1798
|
__name: "QButton",
|
|
2128
1799
|
props: {
|
|
2129
1800
|
active: { type: Boolean },
|
|
@@ -2139,57 +1810,57 @@ const h$3 = ["disabled"], z$2 = {
|
|
|
2139
1810
|
class: { default: void 0 }
|
|
2140
1811
|
},
|
|
2141
1812
|
emits: ["click"],
|
|
2142
|
-
setup(
|
|
2143
|
-
const
|
|
2144
|
-
function
|
|
2145
|
-
|
|
1813
|
+
setup(e, { emit: t }) {
|
|
1814
|
+
const n = e, r = t, s = B(() => n.disabled || n.loading);
|
|
1815
|
+
function i(l) {
|
|
1816
|
+
s.value || r("click", l);
|
|
2146
1817
|
}
|
|
2147
|
-
const
|
|
2148
|
-
const
|
|
1818
|
+
const o = B(() => {
|
|
1819
|
+
const l = n.size !== "regular" ? `q-btn--${n.size}` : void 0;
|
|
2149
1820
|
return [
|
|
2150
1821
|
"q-btn",
|
|
2151
|
-
`q-btn--${
|
|
2152
|
-
|
|
1822
|
+
`q-btn--${n.bStyle}`,
|
|
1823
|
+
l,
|
|
2153
1824
|
{
|
|
2154
|
-
"q-btn--active":
|
|
2155
|
-
"q-btn--borderless":
|
|
2156
|
-
"q-btn--elevated":
|
|
2157
|
-
"q-btn--block":
|
|
2158
|
-
"q-btn--loading":
|
|
1825
|
+
"q-btn--active": n.active,
|
|
1826
|
+
"q-btn--borderless": n.borderless,
|
|
1827
|
+
"q-btn--elevated": n.elevated,
|
|
1828
|
+
"q-btn--block": n.block,
|
|
1829
|
+
"q-btn--loading": n.loading
|
|
2159
1830
|
},
|
|
2160
|
-
|
|
1831
|
+
n.class
|
|
2161
1832
|
];
|
|
2162
1833
|
});
|
|
2163
|
-
return (
|
|
1834
|
+
return (l, d) => (y(), E("button", {
|
|
2164
1835
|
type: "button",
|
|
2165
|
-
class:
|
|
2166
|
-
disabled:
|
|
2167
|
-
onClick:
|
|
1836
|
+
class: j(o.value),
|
|
1837
|
+
disabled: s.value,
|
|
1838
|
+
onClick: Mt(i, ["stop", "prevent"])
|
|
2168
1839
|
}, [
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
])) :
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
1840
|
+
l.loading ? (y(), E("div", qr, [
|
|
1841
|
+
M(w(Fr), { size: 20 })
|
|
1842
|
+
])) : k("v-if", !0),
|
|
1843
|
+
_("span", Ir, [
|
|
1844
|
+
l.iconOnRight ? (y(), E(
|
|
1845
|
+
ue,
|
|
2175
1846
|
{ key: 0 },
|
|
2176
1847
|
[
|
|
2177
|
-
|
|
2178
|
-
|
|
1848
|
+
Me(
|
|
1849
|
+
re(n.label),
|
|
2179
1850
|
1
|
|
2180
1851
|
/* TEXT */
|
|
2181
1852
|
)
|
|
2182
1853
|
],
|
|
2183
1854
|
64
|
|
2184
1855
|
/* STABLE_FRAGMENT */
|
|
2185
|
-
)) :
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
1856
|
+
)) : k("v-if", !0),
|
|
1857
|
+
x(l.$slots, "default"),
|
|
1858
|
+
l.iconOnRight ? k("v-if", !0) : (y(), E(
|
|
1859
|
+
ue,
|
|
2189
1860
|
{ key: 1 },
|
|
2190
1861
|
[
|
|
2191
|
-
|
|
2192
|
-
|
|
1862
|
+
Me(
|
|
1863
|
+
re(n.label),
|
|
2193
1864
|
1
|
|
2194
1865
|
/* TEXT */
|
|
2195
1866
|
)
|
|
@@ -2198,97 +1869,90 @@ const h$3 = ["disabled"], z$2 = {
|
|
|
2198
1869
|
/* STABLE_FRAGMENT */
|
|
2199
1870
|
))
|
|
2200
1871
|
])
|
|
2201
|
-
], 10,
|
|
1872
|
+
], 10, Lr));
|
|
2202
1873
|
}
|
|
2203
|
-
})
|
|
2204
|
-
const p$2 = C$3(O);
|
|
2205
|
-
const _$1 = /* @__PURE__ */ defineComponent({
|
|
1874
|
+
}), at = H(jr), zr = /* @__PURE__ */ L({
|
|
2206
1875
|
__name: "QIcon",
|
|
2207
1876
|
props: {
|
|
2208
1877
|
icon: {},
|
|
2209
|
-
type: { default: "svg" },
|
|
2210
1878
|
size: { default: void 0 },
|
|
2211
|
-
class: { default: void 0 }
|
|
1879
|
+
class: { default: void 0 },
|
|
1880
|
+
type: { default: "svg" }
|
|
2212
1881
|
},
|
|
2213
|
-
setup(
|
|
2214
|
-
const
|
|
2215
|
-
switch (
|
|
1882
|
+
setup(e) {
|
|
1883
|
+
const t = e, n = B(() => {
|
|
1884
|
+
switch (t.type) {
|
|
2216
1885
|
case "svg":
|
|
2217
|
-
return
|
|
1886
|
+
return Xr;
|
|
2218
1887
|
case "font":
|
|
2219
|
-
return
|
|
1888
|
+
return Vr;
|
|
2220
1889
|
case "img":
|
|
2221
|
-
return
|
|
1890
|
+
return Jr;
|
|
2222
1891
|
default:
|
|
2223
1892
|
return;
|
|
2224
1893
|
}
|
|
2225
1894
|
});
|
|
2226
|
-
return (
|
|
2227
|
-
class:
|
|
2228
|
-
icon:
|
|
2229
|
-
size:
|
|
1895
|
+
return (r, s) => (y(), oe(_t(n.value), {
|
|
1896
|
+
class: j(t.class),
|
|
1897
|
+
icon: t.icon,
|
|
1898
|
+
size: t.size
|
|
2230
1899
|
}, null, 8, ["class", "icon", "size"]));
|
|
2231
1900
|
}
|
|
2232
|
-
})
|
|
2233
|
-
const v = /* @__PURE__ */ defineComponent({
|
|
1901
|
+
}), Ur = /* @__PURE__ */ L({
|
|
2234
1902
|
__name: "QIconFont",
|
|
2235
1903
|
props: {
|
|
2236
1904
|
icon: {},
|
|
2237
|
-
library: { default: "" },
|
|
2238
|
-
variant: { default: "" },
|
|
2239
1905
|
size: { default: void 0 },
|
|
2240
|
-
class: { default: void 0 }
|
|
1906
|
+
class: { default: void 0 },
|
|
1907
|
+
library: { default: "" },
|
|
1908
|
+
variant: { default: "" }
|
|
2241
1909
|
},
|
|
2242
|
-
setup(
|
|
2243
|
-
const
|
|
2244
|
-
"font-size":
|
|
1910
|
+
setup(e) {
|
|
1911
|
+
const t = e, n = B(() => t.variant ? `${t.library}-${t.variant}` : t.library), r = B(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), s = B(() => ({
|
|
1912
|
+
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
2245
1913
|
}));
|
|
2246
|
-
return (
|
|
1914
|
+
return (i, o) => (y(), E(
|
|
2247
1915
|
"i",
|
|
2248
1916
|
{
|
|
2249
|
-
class:
|
|
2250
|
-
style:
|
|
1917
|
+
class: j(["q-icon", "q-icon__font", n.value, r.value, t.class]),
|
|
1918
|
+
style: he(s.value)
|
|
2251
1919
|
},
|
|
2252
1920
|
null,
|
|
2253
1921
|
6
|
|
2254
1922
|
/* CLASS, STYLE */
|
|
2255
1923
|
));
|
|
2256
1924
|
}
|
|
2257
|
-
})
|
|
2258
|
-
const a$1 = ["src"], u$1 = /* @__PURE__ */ defineComponent({
|
|
1925
|
+
}), Mr = ["src"], _r = /* @__PURE__ */ L({
|
|
2259
1926
|
__name: "QIconImg",
|
|
2260
1927
|
props: {
|
|
2261
1928
|
icon: {},
|
|
2262
1929
|
size: {},
|
|
2263
1930
|
class: {}
|
|
2264
1931
|
},
|
|
2265
|
-
setup(
|
|
2266
|
-
const
|
|
2267
|
-
"font-size":
|
|
1932
|
+
setup(e) {
|
|
1933
|
+
const t = e, n = B(() => ({
|
|
1934
|
+
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
2268
1935
|
}));
|
|
2269
|
-
return (
|
|
2270
|
-
src:
|
|
2271
|
-
class:
|
|
2272
|
-
style:
|
|
2273
|
-
}, null, 14,
|
|
1936
|
+
return (r, s) => (y(), E("img", {
|
|
1937
|
+
src: t.icon,
|
|
1938
|
+
class: j(["q-icon", "q-icon__img", t.class]),
|
|
1939
|
+
style: he(n.value)
|
|
1940
|
+
}, null, 14, Mr));
|
|
2274
1941
|
}
|
|
2275
|
-
})
|
|
2276
|
-
const o = {}, h$2 = defineComponent({
|
|
1942
|
+
}), ne = {}, Hr = L({
|
|
2277
1943
|
name: "InlineSvg",
|
|
2278
1944
|
emits: {
|
|
2279
|
-
loaded: (
|
|
2280
|
-
unloaded: () =>
|
|
2281
|
-
error: (
|
|
1945
|
+
loaded: (e) => typeof e == "object",
|
|
1946
|
+
unloaded: () => !0,
|
|
1947
|
+
error: (e) => typeof e == "object"
|
|
2282
1948
|
},
|
|
2283
|
-
inheritAttrs:
|
|
1949
|
+
inheritAttrs: !1,
|
|
2284
1950
|
render() {
|
|
2285
|
-
if (!this.svgElSource)
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
const e2 = {};
|
|
2291
|
-
return this.copySvgAttrs(e2, this.svgElSource), this.copySvgAttrs(e2, t2), this.copyComponentAttrs(e2, this.$attrs), e2.innerHTML = t2.innerHTML, h$4("svg", e2);
|
|
1951
|
+
if (!this.svgElSource) return null;
|
|
1952
|
+
const e = this.getSvgContent(this.svgElSource);
|
|
1953
|
+
if (!e) return _e("div", this.$attrs);
|
|
1954
|
+
const t = {};
|
|
1955
|
+
return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, e), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = e.innerHTML, _e("svg", t);
|
|
2292
1956
|
},
|
|
2293
1957
|
props: {
|
|
2294
1958
|
/**
|
|
@@ -2296,7 +1960,7 @@ const o = {}, h$2 = defineComponent({
|
|
|
2296
1960
|
*/
|
|
2297
1961
|
src: {
|
|
2298
1962
|
type: String,
|
|
2299
|
-
required:
|
|
1963
|
+
required: !0
|
|
2300
1964
|
},
|
|
2301
1965
|
/**
|
|
2302
1966
|
* The ID of the SVG symbol to be rendered.
|
|
@@ -2326,7 +1990,7 @@ const o = {}, h$2 = defineComponent({
|
|
|
2326
1990
|
*/
|
|
2327
1991
|
keepDuringLoading: {
|
|
2328
1992
|
type: Boolean,
|
|
2329
|
-
default:
|
|
1993
|
+
default: !0
|
|
2330
1994
|
}
|
|
2331
1995
|
},
|
|
2332
1996
|
data() {
|
|
@@ -2339,30 +2003,28 @@ const o = {}, h$2 = defineComponent({
|
|
|
2339
2003
|
await this.getSource(this.src);
|
|
2340
2004
|
},
|
|
2341
2005
|
methods: {
|
|
2342
|
-
copySvgAttrs(
|
|
2343
|
-
const
|
|
2344
|
-
if (
|
|
2345
|
-
for (const n2 of r2)
|
|
2346
|
-
t2[n2.name] = n2.value;
|
|
2006
|
+
copySvgAttrs(e, t) {
|
|
2007
|
+
const n = t.attributes;
|
|
2008
|
+
if (n) for (const r of n) e[r.name] = r.value;
|
|
2347
2009
|
},
|
|
2348
|
-
copyComponentAttrs(
|
|
2349
|
-
for (const [
|
|
2350
|
-
|
|
2010
|
+
copyComponentAttrs(e, t) {
|
|
2011
|
+
for (const [n, r] of Object.entries(t))
|
|
2012
|
+
r !== !1 && r !== null && r !== void 0 && (e[n] = r);
|
|
2351
2013
|
},
|
|
2352
|
-
getSvgContent(
|
|
2353
|
-
return this.symbol && (
|
|
2014
|
+
getSvgContent(e) {
|
|
2015
|
+
return this.symbol && (e = e.getElementById(this.symbol), !e) ? null : (this.transformSource && (e = e.cloneNode(!0), e = this.transformSource(e)), this.title && (this.transformSource || (e = e.cloneNode(!0)), Qr(e, this.title)), e);
|
|
2354
2016
|
},
|
|
2355
2017
|
/**
|
|
2356
2018
|
* Get svgElSource
|
|
2357
2019
|
* @param {string} src
|
|
2358
2020
|
*/
|
|
2359
|
-
async getSource(
|
|
2021
|
+
async getSource(e) {
|
|
2360
2022
|
try {
|
|
2361
|
-
|
|
2362
|
-
const
|
|
2363
|
-
this.svgElSource =
|
|
2364
|
-
} catch (
|
|
2365
|
-
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete
|
|
2023
|
+
ne[e] || (ne[e] = Wr(this.download(e))), this.svgElSource && ne[e].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
|
|
2024
|
+
const t = await ne[e];
|
|
2025
|
+
this.svgElSource = t, await this.$nextTick(), this.$emit("loaded", this.$el);
|
|
2026
|
+
} catch (t) {
|
|
2027
|
+
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete ne[e], this.$emit("error", t);
|
|
2366
2028
|
}
|
|
2367
2029
|
},
|
|
2368
2030
|
/**
|
|
@@ -2370,92 +2032,88 @@ const o = {}, h$2 = defineComponent({
|
|
|
2370
2032
|
* @param {string} url
|
|
2371
2033
|
* @returns {PromiseWithState<Element>}
|
|
2372
2034
|
*/
|
|
2373
|
-
async download(
|
|
2374
|
-
const
|
|
2375
|
-
if (!
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
throw new Error("Loaded file is not a valid SVG");
|
|
2380
|
-
return i2;
|
|
2035
|
+
async download(e) {
|
|
2036
|
+
const t = await fetch(e);
|
|
2037
|
+
if (!t.ok) throw new Error("Error loading SVG");
|
|
2038
|
+
const n = await t.text(), r = new DOMParser().parseFromString(n, "text/xml").getElementsByTagName("svg")[0];
|
|
2039
|
+
if (!r) throw new Error("Loaded file is not a valid SVG");
|
|
2040
|
+
return r;
|
|
2381
2041
|
}
|
|
2382
2042
|
},
|
|
2383
2043
|
watch: {
|
|
2384
|
-
src(
|
|
2385
|
-
this.getSource(
|
|
2044
|
+
src(e) {
|
|
2045
|
+
this.getSource(e);
|
|
2386
2046
|
}
|
|
2387
2047
|
},
|
|
2388
2048
|
expose: []
|
|
2389
2049
|
});
|
|
2390
|
-
function
|
|
2391
|
-
const
|
|
2392
|
-
if (
|
|
2393
|
-
|
|
2050
|
+
function Qr(e, t) {
|
|
2051
|
+
const n = e.getElementsByTagName("title");
|
|
2052
|
+
if (n.length)
|
|
2053
|
+
n[0].textContent = t;
|
|
2394
2054
|
else {
|
|
2395
|
-
const
|
|
2396
|
-
|
|
2055
|
+
const r = document.createElementNS("http://www.w3.org/2000/svg", "title");
|
|
2056
|
+
r.textContent = t, e.insertBefore(r, e.firstChild);
|
|
2397
2057
|
}
|
|
2398
2058
|
}
|
|
2399
|
-
function
|
|
2400
|
-
if (
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
(
|
|
2405
|
-
|
|
2406
|
-
throw e2 = false, n2;
|
|
2059
|
+
function Wr(e) {
|
|
2060
|
+
if (e.getIsPending) return e;
|
|
2061
|
+
let t = !0;
|
|
2062
|
+
const n = e.then(
|
|
2063
|
+
(r) => (t = !1, r),
|
|
2064
|
+
(r) => {
|
|
2065
|
+
throw t = !1, r;
|
|
2407
2066
|
}
|
|
2408
2067
|
);
|
|
2409
|
-
return
|
|
2068
|
+
return n.getIsPending = () => t, n;
|
|
2410
2069
|
}
|
|
2411
|
-
const
|
|
2070
|
+
const Gr = /* @__PURE__ */ L({
|
|
2412
2071
|
__name: "QIconSvg",
|
|
2413
2072
|
props: {
|
|
2414
2073
|
icon: {},
|
|
2415
|
-
bundle: { default: "" },
|
|
2416
2074
|
size: { default: void 0 },
|
|
2417
|
-
class: { default: void 0 }
|
|
2075
|
+
class: { default: void 0 },
|
|
2076
|
+
bundle: { default: "" }
|
|
2418
2077
|
},
|
|
2419
2078
|
emits: ["loaded", "unloaded"],
|
|
2420
|
-
setup(
|
|
2421
|
-
const
|
|
2422
|
-
"font-size":
|
|
2079
|
+
setup(e, { emit: t }) {
|
|
2080
|
+
const n = e, r = t, s = B(() => ({
|
|
2081
|
+
"font-size": n.size !== void 0 ? `${n.size}px` : void 0
|
|
2423
2082
|
}));
|
|
2424
|
-
function
|
|
2425
|
-
|
|
2426
|
-
}
|
|
2427
|
-
function
|
|
2428
|
-
|
|
2429
|
-
}
|
|
2430
|
-
return (
|
|
2431
|
-
class:
|
|
2432
|
-
src:
|
|
2433
|
-
symbol:
|
|
2434
|
-
style:
|
|
2435
|
-
onLoaded:
|
|
2436
|
-
onUnloaded:
|
|
2083
|
+
function i(l) {
|
|
2084
|
+
r("loaded", l);
|
|
2085
|
+
}
|
|
2086
|
+
function o() {
|
|
2087
|
+
r("unloaded");
|
|
2088
|
+
}
|
|
2089
|
+
return (l, d) => (y(), oe(w(Hr), {
|
|
2090
|
+
class: j(["q-icon", "q-icon__svg", n.class]),
|
|
2091
|
+
src: n.bundle,
|
|
2092
|
+
symbol: n.icon,
|
|
2093
|
+
style: he(s.value),
|
|
2094
|
+
onLoaded: i,
|
|
2095
|
+
onUnloaded: o
|
|
2437
2096
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
2438
2097
|
}
|
|
2439
|
-
});
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
return u2 || `uid-${++e}`;
|
|
2098
|
+
}), pe = H(zr), Vr = H(Ur), Jr = H(_r), Xr = H(Gr);
|
|
2099
|
+
let Yr = 0;
|
|
2100
|
+
function qt(e) {
|
|
2101
|
+
return e || `uid-${++Yr}`;
|
|
2444
2102
|
}
|
|
2445
|
-
const
|
|
2103
|
+
const Zr = ["id"], Kr = {
|
|
2446
2104
|
key: 0,
|
|
2447
2105
|
class: "q-field__label"
|
|
2448
|
-
},
|
|
2106
|
+
}, $r = ["for"], es = {
|
|
2449
2107
|
key: 0,
|
|
2450
2108
|
class: "q-field__prepend"
|
|
2451
|
-
},
|
|
2109
|
+
}, ts = {
|
|
2452
2110
|
key: 1,
|
|
2453
2111
|
class: "q-field__append"
|
|
2454
|
-
},
|
|
2112
|
+
}, ns = {
|
|
2455
2113
|
key: 1,
|
|
2456
2114
|
class: "q-field__extras"
|
|
2457
|
-
},
|
|
2458
|
-
inheritAttrs:
|
|
2115
|
+
}, rs = /* @__PURE__ */ L({
|
|
2116
|
+
inheritAttrs: !1,
|
|
2459
2117
|
__name: "QField",
|
|
2460
2118
|
props: {
|
|
2461
2119
|
id: { default: void 0 },
|
|
@@ -2467,62 +2125,60 @@ const b = ["id"], h$1 = {
|
|
|
2467
2125
|
required: { type: Boolean },
|
|
2468
2126
|
class: { default: void 0 }
|
|
2469
2127
|
},
|
|
2470
|
-
setup(
|
|
2471
|
-
const
|
|
2472
|
-
return
|
|
2473
|
-
fieldRef:
|
|
2474
|
-
}), (
|
|
2475
|
-
id:
|
|
2476
|
-
class:
|
|
2128
|
+
setup(e, { expose: t }) {
|
|
2129
|
+
const n = e, r = qt(n.id), s = G(null), i = B(() => n.required && !n.readonly && !n.disabled);
|
|
2130
|
+
return t({
|
|
2131
|
+
fieldRef: s
|
|
2132
|
+
}), (o, l) => (y(), E("div", {
|
|
2133
|
+
id: w(r),
|
|
2134
|
+
class: j([
|
|
2477
2135
|
"q-field",
|
|
2478
|
-
`q-field--${
|
|
2136
|
+
`q-field--${n.size}`,
|
|
2479
2137
|
{
|
|
2480
|
-
"q-field--readonly":
|
|
2481
|
-
"q-field--disabled":
|
|
2482
|
-
"q-field--required":
|
|
2138
|
+
"q-field--readonly": n.readonly,
|
|
2139
|
+
"q-field--disabled": n.disabled,
|
|
2140
|
+
"q-field--required": i.value
|
|
2483
2141
|
},
|
|
2484
|
-
|
|
2142
|
+
n.class
|
|
2485
2143
|
])
|
|
2486
2144
|
}, [
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
for:
|
|
2491
|
-
},
|
|
2492
|
-
|
|
2493
|
-
])) :
|
|
2494
|
-
|
|
2495
|
-
|
|
2145
|
+
n.label ? (y(), E("div", Kr, [
|
|
2146
|
+
x(o.$slots, "label.prepend"),
|
|
2147
|
+
_("label", {
|
|
2148
|
+
for: n.for
|
|
2149
|
+
}, re(n.label), 9, $r),
|
|
2150
|
+
x(o.$slots, "label.append")
|
|
2151
|
+
])) : k("v-if", !0),
|
|
2152
|
+
x(o.$slots, "control", {}, () => [
|
|
2153
|
+
_(
|
|
2496
2154
|
"div",
|
|
2497
|
-
|
|
2155
|
+
De({
|
|
2498
2156
|
class: "q-field__control",
|
|
2499
2157
|
ref_key: "fieldRef",
|
|
2500
|
-
ref:
|
|
2501
|
-
},
|
|
2158
|
+
ref: s
|
|
2159
|
+
}, o.$attrs),
|
|
2502
2160
|
[
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
])) :
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
])) :
|
|
2161
|
+
o.$slots.prepend ? (y(), E("div", es, [
|
|
2162
|
+
x(o.$slots, "prepend")
|
|
2163
|
+
])) : k("v-if", !0),
|
|
2164
|
+
x(o.$slots, "default"),
|
|
2165
|
+
o.$slots.append ? (y(), E("div", ts, [
|
|
2166
|
+
x(o.$slots, "append")
|
|
2167
|
+
])) : k("v-if", !0)
|
|
2510
2168
|
],
|
|
2511
2169
|
16
|
|
2512
2170
|
/* FULL_PROPS */
|
|
2513
2171
|
)
|
|
2514
2172
|
]),
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
])) :
|
|
2518
|
-
], 10,
|
|
2173
|
+
o.$slots.extras ? (y(), E("div", ns, [
|
|
2174
|
+
x(o.$slots, "extras")
|
|
2175
|
+
])) : k("v-if", !0)
|
|
2176
|
+
], 10, Zr));
|
|
2519
2177
|
}
|
|
2520
|
-
})
|
|
2521
|
-
|
|
2522
|
-
const C = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], L = /* @__PURE__ */ defineComponent({
|
|
2523
|
-
inheritAttrs: false,
|
|
2178
|
+
}), It = H(rs), ss = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], os = /* @__PURE__ */ L({
|
|
2179
|
+
inheritAttrs: !1,
|
|
2524
2180
|
__name: "QTextField",
|
|
2525
|
-
props: /* @__PURE__ */
|
|
2181
|
+
props: /* @__PURE__ */ Ht({
|
|
2526
2182
|
id: { default: void 0 },
|
|
2527
2183
|
placeholder: { default: "" },
|
|
2528
2184
|
label: { default: "" },
|
|
@@ -2539,86 +2195,84 @@ const C = ["id", "type", "role", "required", "placeholder", "readonly", "disable
|
|
|
2539
2195
|
modelModifiers: {}
|
|
2540
2196
|
}),
|
|
2541
2197
|
emits: ["update:modelValue"],
|
|
2542
|
-
setup(
|
|
2543
|
-
const
|
|
2544
|
-
() =>
|
|
2198
|
+
setup(e, { expose: t }) {
|
|
2199
|
+
const n = e, r = Qt(e, "modelValue"), s = qt(n.id), i = G(null), o = G(null), l = B(
|
|
2200
|
+
() => n.readonly || n.disabled ? "" : n.placeholder
|
|
2545
2201
|
);
|
|
2546
|
-
return
|
|
2547
|
-
fieldRef:
|
|
2548
|
-
var
|
|
2549
|
-
return (
|
|
2202
|
+
return t({
|
|
2203
|
+
fieldRef: B(() => {
|
|
2204
|
+
var d;
|
|
2205
|
+
return (d = i.value) == null ? void 0 : d.fieldRef;
|
|
2550
2206
|
}),
|
|
2551
|
-
inputRef:
|
|
2552
|
-
}), (
|
|
2207
|
+
inputRef: o
|
|
2208
|
+
}), (d, c) => (y(), oe(w(It), {
|
|
2553
2209
|
ref_key: "fieldRef",
|
|
2554
|
-
ref:
|
|
2555
|
-
class:
|
|
2556
|
-
for:
|
|
2557
|
-
label:
|
|
2558
|
-
size:
|
|
2559
|
-
readonly:
|
|
2560
|
-
disabled:
|
|
2561
|
-
required:
|
|
2562
|
-
},
|
|
2563
|
-
"label.prepend":
|
|
2564
|
-
|
|
2210
|
+
ref: i,
|
|
2211
|
+
class: j(["q-text-field", n.class]),
|
|
2212
|
+
for: w(s),
|
|
2213
|
+
label: n.label,
|
|
2214
|
+
size: n.size,
|
|
2215
|
+
readonly: n.readonly,
|
|
2216
|
+
disabled: n.disabled,
|
|
2217
|
+
required: n.required
|
|
2218
|
+
}, ct({
|
|
2219
|
+
"label.prepend": I(() => [
|
|
2220
|
+
x(d.$slots, "label.prepend")
|
|
2565
2221
|
]),
|
|
2566
|
-
"label.append":
|
|
2567
|
-
|
|
2222
|
+
"label.append": I(() => [
|
|
2223
|
+
x(d.$slots, "label.append")
|
|
2568
2224
|
]),
|
|
2569
|
-
default:
|
|
2570
|
-
|
|
2571
|
-
"onUpdate:modelValue":
|
|
2225
|
+
default: I(() => [
|
|
2226
|
+
Wt(_("input", De({
|
|
2227
|
+
"onUpdate:modelValue": c[0] || (c[0] = (u) => r.value = u),
|
|
2572
2228
|
ref_key: "inputRef",
|
|
2573
|
-
ref:
|
|
2574
|
-
id:
|
|
2229
|
+
ref: o,
|
|
2230
|
+
id: w(s),
|
|
2575
2231
|
class: "q-text-field__input",
|
|
2576
|
-
type:
|
|
2577
|
-
role:
|
|
2578
|
-
required:
|
|
2579
|
-
placeholder:
|
|
2580
|
-
readonly:
|
|
2581
|
-
disabled:
|
|
2582
|
-
maxlength:
|
|
2583
|
-
},
|
|
2584
|
-
[
|
|
2232
|
+
type: n.type,
|
|
2233
|
+
role: n.role,
|
|
2234
|
+
required: n.required,
|
|
2235
|
+
placeholder: l.value,
|
|
2236
|
+
readonly: n.readonly,
|
|
2237
|
+
disabled: n.disabled,
|
|
2238
|
+
maxlength: n.maxLength
|
|
2239
|
+
}, d.$attrs), null, 16, ss), [
|
|
2240
|
+
[Gt, r.value]
|
|
2585
2241
|
])
|
|
2586
2242
|
]),
|
|
2587
2243
|
_: 2
|
|
2588
2244
|
/* DYNAMIC */
|
|
2589
2245
|
}, [
|
|
2590
|
-
|
|
2246
|
+
d.$slots.prepend ? {
|
|
2591
2247
|
name: "prepend",
|
|
2592
|
-
fn:
|
|
2593
|
-
|
|
2248
|
+
fn: I(() => [
|
|
2249
|
+
x(d.$slots, "prepend")
|
|
2594
2250
|
]),
|
|
2595
2251
|
key: "0"
|
|
2596
2252
|
} : void 0,
|
|
2597
|
-
|
|
2253
|
+
d.$slots.append ? {
|
|
2598
2254
|
name: "append",
|
|
2599
|
-
fn:
|
|
2600
|
-
|
|
2255
|
+
fn: I(() => [
|
|
2256
|
+
x(d.$slots, "append")
|
|
2601
2257
|
]),
|
|
2602
2258
|
key: "1"
|
|
2603
2259
|
} : void 0,
|
|
2604
|
-
|
|
2260
|
+
d.$slots.extras ? {
|
|
2605
2261
|
name: "extras",
|
|
2606
|
-
fn:
|
|
2607
|
-
|
|
2262
|
+
fn: I(() => [
|
|
2263
|
+
x(d.$slots, "extras")
|
|
2608
2264
|
]),
|
|
2609
2265
|
key: "2"
|
|
2610
2266
|
} : void 0
|
|
2611
2267
|
]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
|
|
2612
2268
|
}
|
|
2613
|
-
})
|
|
2614
|
-
const p$1 = C$3(L);
|
|
2615
|
-
const q = {
|
|
2269
|
+
}), is = H(os), as = {
|
|
2616
2270
|
key: 0,
|
|
2617
2271
|
class: "q-input-group__prepend"
|
|
2618
|
-
},
|
|
2272
|
+
}, ls = { key: 0 }, cs = {
|
|
2619
2273
|
key: 1,
|
|
2620
2274
|
class: "q-input-group__append"
|
|
2621
|
-
},
|
|
2275
|
+
}, us = { key: 0 }, ds = /* @__PURE__ */ L({
|
|
2622
2276
|
__name: "QInputGroup",
|
|
2623
2277
|
props: {
|
|
2624
2278
|
id: { default: void 0 },
|
|
@@ -2629,93 +2283,82 @@ const q = {
|
|
|
2629
2283
|
size: { default: "large" },
|
|
2630
2284
|
class: { default: void 0 }
|
|
2631
2285
|
},
|
|
2632
|
-
setup(
|
|
2633
|
-
const
|
|
2634
|
-
return
|
|
2286
|
+
setup(e) {
|
|
2287
|
+
const t = e;
|
|
2288
|
+
return Nr({
|
|
2635
2289
|
QField: {
|
|
2636
2290
|
size: "block"
|
|
2637
2291
|
}
|
|
2638
|
-
}), (
|
|
2639
|
-
id:
|
|
2640
|
-
class:
|
|
2641
|
-
label:
|
|
2642
|
-
required:
|
|
2643
|
-
size:
|
|
2644
|
-
},
|
|
2645
|
-
default:
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2292
|
+
}), (n, r) => (y(), oe(w(It), {
|
|
2293
|
+
id: t.id,
|
|
2294
|
+
class: j(["q-input-group", t.class]),
|
|
2295
|
+
label: t.label,
|
|
2296
|
+
required: t.required,
|
|
2297
|
+
size: t.size
|
|
2298
|
+
}, ct({
|
|
2299
|
+
default: I(() => [
|
|
2300
|
+
n.$slots.prepend || t.prependIcon ? (y(), E("div", as, [
|
|
2301
|
+
t.prependIcon ? (y(), E("span", ls, [
|
|
2302
|
+
M(
|
|
2303
|
+
w(pe),
|
|
2304
|
+
He(Qe(t.prependIcon)),
|
|
2651
2305
|
null,
|
|
2652
2306
|
16
|
|
2653
2307
|
/* FULL_PROPS */
|
|
2654
2308
|
)
|
|
2655
|
-
])) :
|
|
2656
|
-
|
|
2657
|
-
])) :
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2309
|
+
])) : k("v-if", !0),
|
|
2310
|
+
x(n.$slots, "prepend")
|
|
2311
|
+
])) : k("v-if", !0),
|
|
2312
|
+
x(n.$slots, "default"),
|
|
2313
|
+
n.$slots.append || t.appendIcon ? (y(), E("div", cs, [
|
|
2314
|
+
t.appendIcon ? (y(), E("span", us, [
|
|
2315
|
+
M(
|
|
2316
|
+
w(pe),
|
|
2317
|
+
He(Qe(t.appendIcon)),
|
|
2664
2318
|
null,
|
|
2665
2319
|
16
|
|
2666
2320
|
/* FULL_PROPS */
|
|
2667
2321
|
)
|
|
2668
|
-
])) :
|
|
2669
|
-
|
|
2670
|
-
])) :
|
|
2322
|
+
])) : k("v-if", !0),
|
|
2323
|
+
x(n.$slots, "append")
|
|
2324
|
+
])) : k("v-if", !0)
|
|
2671
2325
|
]),
|
|
2672
2326
|
_: 2
|
|
2673
2327
|
/* DYNAMIC */
|
|
2674
2328
|
}, [
|
|
2675
|
-
|
|
2329
|
+
n.$slots.extras ? {
|
|
2676
2330
|
name: "extras",
|
|
2677
|
-
fn:
|
|
2678
|
-
|
|
2331
|
+
fn: I(() => [
|
|
2332
|
+
x(n.$slots, "extras")
|
|
2679
2333
|
]),
|
|
2680
2334
|
key: "0"
|
|
2681
2335
|
} : void 0
|
|
2682
2336
|
]), 1032, ["id", "class", "label", "required", "size"]));
|
|
2683
2337
|
}
|
|
2684
|
-
})
|
|
2685
|
-
const m = C$3(Q);
|
|
2686
|
-
const p = /* @__PURE__ */ defineComponent({
|
|
2338
|
+
}), fs = H(ds), ps = /* @__PURE__ */ L({
|
|
2687
2339
|
__name: "QLineLoader",
|
|
2688
2340
|
props: {
|
|
2689
2341
|
class: { default: void 0 }
|
|
2690
2342
|
},
|
|
2691
|
-
setup(
|
|
2692
|
-
const
|
|
2693
|
-
return (
|
|
2343
|
+
setup(e) {
|
|
2344
|
+
const t = e;
|
|
2345
|
+
return (n, r) => (y(), E(
|
|
2694
2346
|
"div",
|
|
2695
2347
|
{
|
|
2696
|
-
class:
|
|
2348
|
+
class: j(["q-line-loader", t.class])
|
|
2697
2349
|
},
|
|
2698
2350
|
null,
|
|
2699
2351
|
2
|
|
2700
2352
|
/* CLASS */
|
|
2701
2353
|
));
|
|
2702
2354
|
}
|
|
2703
|
-
})
|
|
2704
|
-
const t = C$3(p);
|
|
2705
|
-
const _hoisted_1$1 = { class: "q-chatbot__message-container" };
|
|
2706
|
-
const _hoisted_2$1 = ["src"];
|
|
2707
|
-
const _hoisted_3$1 = { class: "q-chatbot__message-wrapper" };
|
|
2708
|
-
const _hoisted_4$1 = {
|
|
2355
|
+
}), hs = H(ps), ms = { class: "q-chatbot__message-container" }, gs = ["src"], bs = { class: "q-chatbot__message-wrapper" }, ys = {
|
|
2709
2356
|
key: 0,
|
|
2710
2357
|
class: "q-chatbot__sender"
|
|
2711
|
-
}
|
|
2712
|
-
const _hoisted_5 = { class: "q-chatbot__message" };
|
|
2713
|
-
const _hoisted_6 = ["innerHTML"];
|
|
2714
|
-
const _hoisted_7 = {
|
|
2358
|
+
}, ws = { class: "q-chatbot__message" }, As = ["innerHTML"], Es = {
|
|
2715
2359
|
key: 1,
|
|
2716
2360
|
class: "q-chatbot__text"
|
|
2717
|
-
}
|
|
2718
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
2361
|
+
}, Ss = /* @__PURE__ */ L({
|
|
2719
2362
|
__name: "CBMessage",
|
|
2720
2363
|
props: {
|
|
2721
2364
|
sender: { default: "user" },
|
|
@@ -2724,58 +2367,35 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2724
2367
|
loading: { type: Boolean },
|
|
2725
2368
|
dateFormat: {}
|
|
2726
2369
|
},
|
|
2727
|
-
setup(
|
|
2728
|
-
const
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
2751
|
-
props.sender === "bot" ? (openBlock(), createElementBlock("img", {
|
|
2752
|
-
key: 0,
|
|
2753
|
-
src: unref(ChatBotIcon),
|
|
2754
|
-
alt: "Chatbot",
|
|
2755
|
-
class: "q-chatbot__profile"
|
|
2756
|
-
}, null, 8, _hoisted_2$1)) : createCommentVNode("", true),
|
|
2757
|
-
createElementVNode("div", _hoisted_3$1, [
|
|
2758
|
-
!_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_4$1, toDisplayString(messageHeader.value), 1)) : createCommentVNode("", true),
|
|
2759
|
-
createElementVNode("div", _hoisted_5, [
|
|
2760
|
-
_ctx.loading ? (openBlock(), createBlock(unref(t), { key: 0 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2761
|
-
props.sender == "bot" ? (openBlock(), createElementBlock("div", {
|
|
2762
|
-
key: 0,
|
|
2763
|
-
class: "q-chatbot__text",
|
|
2764
|
-
innerHTML: props.message
|
|
2765
|
-
}, null, 8, _hoisted_6)) : (openBlock(), createElementBlock("div", _hoisted_7, toDisplayString(props.message), 1))
|
|
2766
|
-
], 64))
|
|
2767
|
-
])
|
|
2370
|
+
setup(e) {
|
|
2371
|
+
const t = e, n = B(() => t.sender === "bot" ? "GenioBot" : "You"), r = B(() => t.dateFormat ? i(t.date, t.dateFormat) : t.date.toLocaleString()), s = B(() => `${n.value} ${r.value}`);
|
|
2372
|
+
function i(o, l) {
|
|
2373
|
+
const d = o.getDate().toString().padStart(2, "0"), c = (o.getMonth() + 1).toString().padStart(2, "0"), u = o.getFullYear().toString().padStart(2, "0"), f = o.getHours().toString().padStart(2, "0"), A = o.getMinutes().toString().padStart(2, "0"), R = o.getSeconds().toString().padStart(2, "0");
|
|
2374
|
+
return l.replace("dd", d).replace("MM", c).replace("yyyy", u).replace("HH", f).replace("mm", A).replace("ss", R);
|
|
2375
|
+
}
|
|
2376
|
+
return (o, l) => (y(), E("div", ms, [
|
|
2377
|
+
t.sender === "bot" ? (y(), E("img", {
|
|
2378
|
+
key: 0,
|
|
2379
|
+
src: w(Br),
|
|
2380
|
+
alt: "Chatbot",
|
|
2381
|
+
class: "q-chatbot__profile"
|
|
2382
|
+
}, null, 8, gs)) : k("", !0),
|
|
2383
|
+
_("div", bs, [
|
|
2384
|
+
o.loading ? k("", !0) : (y(), E("div", ys, re(s.value), 1)),
|
|
2385
|
+
_("div", ws, [
|
|
2386
|
+
o.loading ? (y(), oe(w(hs), { key: 0 })) : (y(), E(ue, { key: 1 }, [
|
|
2387
|
+
t.sender == "bot" ? (y(), E("div", {
|
|
2388
|
+
key: 0,
|
|
2389
|
+
class: "q-chatbot__text",
|
|
2390
|
+
innerHTML: t.message
|
|
2391
|
+
}, null, 8, As)) : (y(), E("div", Es, re(t.message), 1))
|
|
2392
|
+
], 64))
|
|
2768
2393
|
])
|
|
2769
|
-
])
|
|
2770
|
-
|
|
2394
|
+
])
|
|
2395
|
+
]));
|
|
2771
2396
|
}
|
|
2772
|
-
})
|
|
2773
|
-
|
|
2774
|
-
const _hoisted_2 = { class: "q-chatbot__content" };
|
|
2775
|
-
const _hoisted_3 = { class: "q-chatbot__tools" };
|
|
2776
|
-
const _hoisted_4 = { class: "q-chatbot__messages-container" };
|
|
2777
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2778
|
-
...{ name: "ChatBot" },
|
|
2397
|
+
}), vs = { class: "q-chatbot" }, Rs = { class: "q-chatbot__content" }, Ts = { class: "q-chatbot__tools" }, Cs = { class: "q-chatbot__messages-container" }, xs = /* @__PURE__ */ L({
|
|
2398
|
+
name: "ChatBot",
|
|
2779
2399
|
__name: "ChatBot",
|
|
2780
2400
|
props: {
|
|
2781
2401
|
apiEndpoint: { default: "http://localhost:3000" },
|
|
@@ -2791,274 +2411,227 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2791
2411
|
projectPath: {},
|
|
2792
2412
|
dateFormat: {}
|
|
2793
2413
|
},
|
|
2794
|
-
setup(
|
|
2795
|
-
let
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
let isLoading = ref(false);
|
|
2800
|
-
let isChatDisabled = false;
|
|
2801
|
-
const scrollElement = ref(null);
|
|
2802
|
-
const promptInput = ref(null);
|
|
2803
|
-
const props = __props;
|
|
2804
|
-
onMounted(() => {
|
|
2805
|
-
initChat();
|
|
2806
|
-
});
|
|
2807
|
-
const userMessages = computed(() => {
|
|
2808
|
-
return messages.value.filter((m2) => m2.sender === "user");
|
|
2414
|
+
setup(e) {
|
|
2415
|
+
let t = G([]), n = [], r = 1, s = G(""), i = G(!1), o = !1;
|
|
2416
|
+
const l = G(null), d = G(null), c = e;
|
|
2417
|
+
Vt(() => {
|
|
2418
|
+
A();
|
|
2809
2419
|
});
|
|
2810
|
-
|
|
2811
|
-
|
|
2420
|
+
const u = B(() => t.value.filter((m) => m.sender === "user"));
|
|
2421
|
+
function f(m) {
|
|
2422
|
+
o = m;
|
|
2812
2423
|
}
|
|
2813
|
-
function
|
|
2814
|
-
|
|
2815
|
-
username:
|
|
2424
|
+
function A() {
|
|
2425
|
+
T.post(c.apiEndpoint + "/auth/login", {
|
|
2426
|
+
username: c.username,
|
|
2816
2427
|
password: "test"
|
|
2817
|
-
}).then((
|
|
2818
|
-
if (
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
return console.log(
|
|
2822
|
-
`Unsuccessful login, endpoint gave status ${response.status}`
|
|
2428
|
+
}).then((m) => {
|
|
2429
|
+
if (m.status != 200 || !m.data.success)
|
|
2430
|
+
return f(!0), p(c.texts.loginError), console.log(
|
|
2431
|
+
`Unsuccessful login, endpoint gave status ${m.status}`
|
|
2823
2432
|
);
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
console.log(
|
|
2830
|
-
"The following error ocurred while trying to login: \n" + error
|
|
2433
|
+
R();
|
|
2434
|
+
}).catch((m) => {
|
|
2435
|
+
f(!0), p(c.texts.loginError), console.log(
|
|
2436
|
+
`The following error ocurred while trying to login:
|
|
2437
|
+
` + m
|
|
2831
2438
|
);
|
|
2832
2439
|
});
|
|
2833
2440
|
}
|
|
2834
|
-
function
|
|
2835
|
-
|
|
2836
|
-
username:
|
|
2837
|
-
project:
|
|
2838
|
-
}).then((
|
|
2839
|
-
if (
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
return console.log(
|
|
2843
|
-
`Unsuccessful load, endpoint gave status ${response.status}`
|
|
2441
|
+
function R() {
|
|
2442
|
+
T.post(c.apiEndpoint + "/prompt/load", {
|
|
2443
|
+
username: c.username,
|
|
2444
|
+
project: c.projectPath
|
|
2445
|
+
}).then((m) => {
|
|
2446
|
+
if (m.status != 200 || !m.data.success)
|
|
2447
|
+
return f(!0), p(c.texts.loginError), console.log(
|
|
2448
|
+
`Unsuccessful load, endpoint gave status ${m.status}`
|
|
2844
2449
|
);
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2450
|
+
h(), m.data.history.forEach(
|
|
2451
|
+
(S) => {
|
|
2452
|
+
p(
|
|
2453
|
+
S.content,
|
|
2454
|
+
S.type === "ai" ? "bot" : "user"
|
|
2455
|
+
);
|
|
2456
|
+
}
|
|
2457
|
+
);
|
|
2458
|
+
}).catch((m) => {
|
|
2459
|
+
f(!0), p(c.texts.loginError), console.log(
|
|
2460
|
+
`The following error ocurred while trying to login:
|
|
2461
|
+
` + m
|
|
2855
2462
|
);
|
|
2856
2463
|
});
|
|
2857
2464
|
}
|
|
2858
|
-
function
|
|
2859
|
-
|
|
2860
|
-
id:
|
|
2861
|
-
message,
|
|
2465
|
+
function p(m, S = "bot") {
|
|
2466
|
+
t.value.push({
|
|
2467
|
+
id: r++,
|
|
2468
|
+
message: m,
|
|
2862
2469
|
date: /* @__PURE__ */ new Date(),
|
|
2863
|
-
sender
|
|
2864
|
-
});
|
|
2865
|
-
nextTick(scrollToBottom);
|
|
2470
|
+
sender: S
|
|
2471
|
+
}), We(C);
|
|
2866
2472
|
}
|
|
2867
|
-
function
|
|
2868
|
-
return
|
|
2869
|
-
(
|
|
2473
|
+
function g() {
|
|
2474
|
+
return t.value.find(
|
|
2475
|
+
(m) => m.id === r - 1
|
|
2870
2476
|
);
|
|
2871
2477
|
}
|
|
2872
|
-
function
|
|
2873
|
-
|
|
2874
|
-
}
|
|
2875
|
-
function
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
}
|
|
2882
|
-
function
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
)
|
|
2902
|
-
);
|
|
2903
|
-
} else if (event.key == "ArrowDown") {
|
|
2904
|
-
let previousHistoryText = msgHistoryStack.pop();
|
|
2905
|
-
if (!previousHistoryText) {
|
|
2906
|
-
userPrompt.value = "";
|
|
2907
|
-
return;
|
|
2478
|
+
function h() {
|
|
2479
|
+
p(c.texts.initialMessage);
|
|
2480
|
+
}
|
|
2481
|
+
function v() {
|
|
2482
|
+
t.value = [], n = [], s.value = "", i.value = !1, f(!1);
|
|
2483
|
+
}
|
|
2484
|
+
function C() {
|
|
2485
|
+
var m;
|
|
2486
|
+
(m = l.value) == null || m.scrollIntoView({ behavior: "smooth" });
|
|
2487
|
+
}
|
|
2488
|
+
function O(m) {
|
|
2489
|
+
if (d.value != null) {
|
|
2490
|
+
if (m.key == "ArrowUp") {
|
|
2491
|
+
if (u.value.length == 0) return;
|
|
2492
|
+
let S = u.value[u.value.length - 1 - n.length];
|
|
2493
|
+
if (!S) return;
|
|
2494
|
+
n.push(s.value), s.value = S.message, We(
|
|
2495
|
+
() => U(
|
|
2496
|
+
d.value,
|
|
2497
|
+
S.message.length
|
|
2498
|
+
)
|
|
2499
|
+
);
|
|
2500
|
+
} else if (m.key == "ArrowDown") {
|
|
2501
|
+
let S = n.pop();
|
|
2502
|
+
if (!S) {
|
|
2503
|
+
s.value = "";
|
|
2504
|
+
return;
|
|
2505
|
+
}
|
|
2506
|
+
s.value = S;
|
|
2908
2507
|
}
|
|
2909
|
-
userPrompt.value = previousHistoryText;
|
|
2910
2508
|
}
|
|
2911
2509
|
}
|
|
2912
|
-
function
|
|
2913
|
-
|
|
2914
|
-
return;
|
|
2915
|
-
addChatMessage(userPrompt.value, "user");
|
|
2916
|
-
setChatPrompt(userPrompt.value);
|
|
2917
|
-
userPrompt.value = "";
|
|
2510
|
+
function q() {
|
|
2511
|
+
s.value.trim().length == 0 || i.value || o || (p(s.value, "user"), P(s.value), s.value = "");
|
|
2918
2512
|
}
|
|
2919
|
-
function
|
|
2920
|
-
|
|
2921
|
-
let
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
user: props.username
|
|
2513
|
+
function P(m) {
|
|
2514
|
+
p("");
|
|
2515
|
+
let S = g(), W = {
|
|
2516
|
+
message: m,
|
|
2517
|
+
project: c.projectPath,
|
|
2518
|
+
user: c.username
|
|
2926
2519
|
};
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
url: props.apiEndpoint + "/prompt/message",
|
|
2520
|
+
i.value = !0, T({
|
|
2521
|
+
url: c.apiEndpoint + "/prompt/message",
|
|
2930
2522
|
method: "POST",
|
|
2931
|
-
data:
|
|
2932
|
-
onDownloadProgress: (
|
|
2933
|
-
var
|
|
2934
|
-
const
|
|
2935
|
-
|
|
2936
|
-
if (status != 200)
|
|
2937
|
-
return;
|
|
2938
|
-
if (msg)
|
|
2939
|
-
msg.message = chunk;
|
|
2940
|
-
scrollToBottom();
|
|
2523
|
+
data: W,
|
|
2524
|
+
onDownloadProgress: (K) => {
|
|
2525
|
+
var ze, Ue;
|
|
2526
|
+
const jt = (ze = K.event) == null ? void 0 : ze.currentTarget.response;
|
|
2527
|
+
((Ue = K.event) == null ? void 0 : Ue.currentTarget.status) == 200 && (S && (S.message = jt), C());
|
|
2941
2528
|
}
|
|
2942
|
-
}).then(({ data }) => {
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
addChatMessage(props.texts.botIsSick);
|
|
2947
|
-
setDisabledState(true);
|
|
2948
|
-
console.log(error);
|
|
2529
|
+
}).then(({ data: K }) => {
|
|
2530
|
+
S && (S.message = K);
|
|
2531
|
+
}).catch((K) => {
|
|
2532
|
+
p(c.texts.botIsSick), f(!0), console.log(K);
|
|
2949
2533
|
}).finally(() => {
|
|
2950
|
-
|
|
2534
|
+
i.value = !1;
|
|
2951
2535
|
});
|
|
2952
2536
|
}
|
|
2953
|
-
function
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
addChatMessage(props.texts.loginError);
|
|
2965
|
-
return console.log(
|
|
2966
|
-
`Unsuccessful login, endpoint gave status ${response.status}`
|
|
2537
|
+
function U(m, S) {
|
|
2538
|
+
m.focus(), m.setSelectionRange(S, S);
|
|
2539
|
+
}
|
|
2540
|
+
function Q() {
|
|
2541
|
+
T.post(c.apiEndpoint + "/prompt/clear", {
|
|
2542
|
+
username: c.username,
|
|
2543
|
+
project: c.projectPath
|
|
2544
|
+
}).then((m) => {
|
|
2545
|
+
if (m.status != 200 || !m.data.success)
|
|
2546
|
+
return f(!0), p(c.texts.loginError), console.log(
|
|
2547
|
+
`Unsuccessful login, endpoint gave status ${m.status}`
|
|
2967
2548
|
);
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
addChatMessage(props.texts.loginError);
|
|
2974
|
-
console.log(
|
|
2975
|
-
"The following error ocurred while trying to communicate with the endpoint: \n" + error
|
|
2549
|
+
v(), h();
|
|
2550
|
+
}).catch((m) => {
|
|
2551
|
+
f(!0), p(c.texts.loginError), console.log(
|
|
2552
|
+
`The following error ocurred while trying to communicate with the endpoint:
|
|
2553
|
+
` + m
|
|
2976
2554
|
);
|
|
2977
2555
|
});
|
|
2978
2556
|
}
|
|
2979
|
-
function
|
|
2980
|
-
const
|
|
2981
|
-
|
|
2982
|
-
classes.push("q-chatbot__messages-wrapper_right");
|
|
2983
|
-
return classes;
|
|
2557
|
+
function Z(m) {
|
|
2558
|
+
const S = ["q-chatbot__messages-wrapper"];
|
|
2559
|
+
return m == "user" && S.push("q-chatbot__messages-wrapper_right"), S;
|
|
2984
2560
|
}
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
]),
|
|
3006
|
-
createElementVNode("div", _hoisted_4, [
|
|
3007
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(messages), (message) => {
|
|
3008
|
-
return openBlock(), createElementBlock("div", {
|
|
3009
|
-
key: message.id,
|
|
3010
|
-
class: normalizeClass(getMessageClasses(message.sender))
|
|
3011
|
-
}, [
|
|
3012
|
-
createVNode(unref(_sfc_main$1), mergeProps(message, {
|
|
3013
|
-
"date-format": props.dateFormat,
|
|
3014
|
-
loading: unref(isLoading) && !message.message
|
|
3015
|
-
}), null, 16, ["date-format", "loading"])
|
|
3016
|
-
], 2);
|
|
3017
|
-
}), 128))
|
|
3018
|
-
]),
|
|
3019
|
-
createElementVNode("div", {
|
|
3020
|
-
ref_key: "scrollElement",
|
|
3021
|
-
ref: scrollElement
|
|
3022
|
-
}, null, 512)
|
|
2561
|
+
return Jt(
|
|
2562
|
+
() => c.apiEndpoint,
|
|
2563
|
+
() => {
|
|
2564
|
+
v(), A();
|
|
2565
|
+
}
|
|
2566
|
+
), (m, S) => (y(), E("div", vs, [
|
|
2567
|
+
_("div", Rs, [
|
|
2568
|
+
_("div", Ts, [
|
|
2569
|
+
M(w(at), {
|
|
2570
|
+
title: c.texts.qButtonTitle,
|
|
2571
|
+
"b-style": "secondary",
|
|
2572
|
+
disabled: w(o),
|
|
2573
|
+
borderless: "",
|
|
2574
|
+
onClick: Q
|
|
2575
|
+
}, {
|
|
2576
|
+
default: I(() => [
|
|
2577
|
+
M(w(pe), { icon: "bin" })
|
|
2578
|
+
]),
|
|
2579
|
+
_: 1
|
|
2580
|
+
}, 8, ["title", "disabled"])
|
|
3023
2581
|
]),
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
2582
|
+
_("div", Cs, [
|
|
2583
|
+
(y(!0), E(ue, null, Xt(w(t), (W) => (y(), E("div", {
|
|
2584
|
+
key: W.id,
|
|
2585
|
+
class: j(Z(W.sender))
|
|
2586
|
+
}, [
|
|
2587
|
+
M(w(Ss), De({ ref_for: !0 }, W, {
|
|
2588
|
+
"date-format": c.dateFormat,
|
|
2589
|
+
loading: w(i) && !W.message
|
|
2590
|
+
}), null, 16, ["date-format", "loading"])
|
|
2591
|
+
], 2))), 128))
|
|
2592
|
+
]),
|
|
2593
|
+
_("div", {
|
|
2594
|
+
ref_key: "scrollElement",
|
|
2595
|
+
ref: l
|
|
2596
|
+
}, null, 512)
|
|
2597
|
+
]),
|
|
2598
|
+
M(w(fs), {
|
|
2599
|
+
size: "block",
|
|
2600
|
+
disabled: w(o)
|
|
2601
|
+
}, {
|
|
2602
|
+
append: I(() => [
|
|
2603
|
+
M(w(at), {
|
|
2604
|
+
title: c.texts.qButtonTitle,
|
|
2605
|
+
"b-style": "primary",
|
|
2606
|
+
class: "q-chatbot__send",
|
|
2607
|
+
disabled: w(o) || w(i),
|
|
2608
|
+
loading: w(i),
|
|
2609
|
+
onClick: q
|
|
2610
|
+
}, {
|
|
2611
|
+
default: I(() => [
|
|
2612
|
+
M(w(pe), { icon: "send" })
|
|
2613
|
+
]),
|
|
2614
|
+
_: 1
|
|
2615
|
+
}, 8, ["title", "disabled", "loading"])
|
|
2616
|
+
]),
|
|
2617
|
+
default: I(() => [
|
|
2618
|
+
M(w(is), {
|
|
2619
|
+
ref_key: "promptInput",
|
|
2620
|
+
ref: d,
|
|
2621
|
+
modelValue: w(s),
|
|
2622
|
+
"onUpdate:modelValue": S[0] || (S[0] = (W) => Yt(s) ? s.value = W : s = W),
|
|
2623
|
+
class: "q-chatbot__input",
|
|
2624
|
+
placeholder: c.texts.placeholderMessage,
|
|
2625
|
+
disabled: w(o),
|
|
2626
|
+
onKeyup: Zt(q, ["enter"]),
|
|
2627
|
+
onKeydown: O
|
|
2628
|
+
}, null, 8, ["modelValue", "placeholder", "disabled"])
|
|
2629
|
+
]),
|
|
2630
|
+
_: 1
|
|
2631
|
+
}, 8, ["disabled"])
|
|
2632
|
+
]));
|
|
3060
2633
|
}
|
|
3061
2634
|
});
|
|
3062
2635
|
export {
|
|
3063
|
-
|
|
2636
|
+
xs as default
|
|
3064
2637
|
};
|