@quidgest/chatbot 0.0.8 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/CBMessage.vue.d.ts +59 -2
- package/dist/components/ChatBot.vue.d.ts +25 -26
- package/dist/components/PulseDots.vue.d.ts +2 -0
- package/dist/index.js +68 -9
- package/dist/index.mjs +2532 -1304
- package/dist/style.css +1 -1
- package/dist/types/chatbot.type.d.ts +14 -0
- package/dist/types/message.type.d.ts +7 -1
- package/package.json +13 -12
- package/src/assets/copy.svg +7 -0
- package/src/assets/styles/styles.scss +107 -23
- package/src/assets/thumbDown.svg +9 -0
- package/src/assets/thumbUp.svg +9 -0
- package/src/assets/user_avatar.png +0 -0
- package/src/components/CBMessage.vue +235 -40
- package/src/components/ChatBot.vue +439 -334
- package/src/components/PulseDots.vue +15 -0
- package/src/types/chatbot.type.ts +15 -0
- package/src/types/message.type.ts +8 -1
package/dist/index.mjs
CHANGED
|
@@ -1,123 +1,123 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
2
|
-
function
|
|
1
|
+
import { getCurrentInstance as lt, computed as S, inject as Mt, defineComponent as q, createElementBlock as C, openBlock as w, normalizeStyle as Re, normalizeClass as V, withModifiers as wn, createCommentVNode as j, createElementVNode as T, createVNode as P, unref as A, renderSlot as U, Fragment as fe, createTextVNode as gt, toDisplayString as pe, toRef as jt, createBlock as _, resolveDynamicComponent as An, h as bt, mergeProps as le, ref as M, withCtx as D, normalizeProps as Ke, guardReactiveProps as et, mergeModels as ge, useModel as Le, createSlots as qt, withDirectives as zt, vModelDynamic as En, onMounted as Ue, onUnmounted as Sn, reactive as yt, watch as re, nextTick as oe, onBeforeUnmount as Rn, Teleport as xn, Transition as Bn, withKeys as Ht, renderList as ct, readonly as Cn, customRef as Tn, getCurrentScope as kn, onScopeDispose as Dn, shallowRef as tt, toValue as ut, toHandlers as On, vModelText as In, resolveComponent as Nn } from "vue";
|
|
2
|
+
function Gt(e, t) {
|
|
3
3
|
return function() {
|
|
4
4
|
return e.apply(t, arguments);
|
|
5
5
|
};
|
|
6
6
|
}
|
|
7
|
-
const { toString:
|
|
8
|
-
const n =
|
|
7
|
+
const { toString: Ln } = Object.prototype, { getPrototypeOf: dt } = Object, Fe = /* @__PURE__ */ ((e) => (t) => {
|
|
8
|
+
const n = Ln.call(t);
|
|
9
9
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
10
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
11
|
-
function
|
|
12
|
-
return e !== null && !
|
|
10
|
+
})(/* @__PURE__ */ Object.create(null)), $ = (e) => (e = e.toLowerCase(), (t) => Fe(t) === e), Pe = (e) => (t) => typeof t === e, { isArray: be } = Array, xe = Pe("undefined");
|
|
11
|
+
function Un(e) {
|
|
12
|
+
return e !== null && !xe(e) && e.constructor !== null && !xe(e.constructor) && Y(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
13
13
|
}
|
|
14
|
-
const
|
|
15
|
-
function
|
|
14
|
+
const Vt = $("ArrayBuffer");
|
|
15
|
+
function Fn(e) {
|
|
16
16
|
let t;
|
|
17
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
17
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Vt(e.buffer), t;
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
if (
|
|
19
|
+
const Pn = Pe("string"), Y = Pe("function"), _t = Pe("number"), Me = (e) => e !== null && typeof e == "object", Mn = (e) => e === !0 || e === !1, Te = (e) => {
|
|
20
|
+
if (Fe(e) !== "object")
|
|
21
21
|
return !1;
|
|
22
|
-
const t =
|
|
22
|
+
const t = dt(e);
|
|
23
23
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
24
|
-
},
|
|
24
|
+
}, jn = $("Date"), qn = $("File"), zn = $("Blob"), Hn = $("FileList"), Gn = (e) => Me(e) && Y(e.pipe), Vn = (e) => {
|
|
25
25
|
let t;
|
|
26
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
27
|
-
t === "object" &&
|
|
28
|
-
},
|
|
29
|
-
function
|
|
26
|
+
return e && (typeof FormData == "function" && e instanceof FormData || Y(e.append) && ((t = Fe(e)) === "formdata" || // detect form-data instance
|
|
27
|
+
t === "object" && Y(e.toString) && e.toString() === "[object FormData]"));
|
|
28
|
+
}, _n = $("URLSearchParams"), [Wn, Jn, Qn, Zn] = ["ReadableStream", "Request", "Response", "Headers"].map($), Yn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
29
|
+
function Be(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
30
30
|
if (e === null || typeof e > "u")
|
|
31
31
|
return;
|
|
32
|
-
let
|
|
33
|
-
if (typeof e != "object" && (e = [e]),
|
|
34
|
-
for (
|
|
35
|
-
t.call(null, e[
|
|
32
|
+
let o, r;
|
|
33
|
+
if (typeof e != "object" && (e = [e]), be(e))
|
|
34
|
+
for (o = 0, r = e.length; o < r; o++)
|
|
35
|
+
t.call(null, e[o], o, e);
|
|
36
36
|
else {
|
|
37
|
-
const
|
|
37
|
+
const s = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = s.length;
|
|
38
38
|
let a;
|
|
39
|
-
for (
|
|
40
|
-
a =
|
|
39
|
+
for (o = 0; o < i; o++)
|
|
40
|
+
a = s[o], t.call(null, e[a], a, e);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Wt(e, t) {
|
|
44
44
|
t = t.toLowerCase();
|
|
45
45
|
const n = Object.keys(e);
|
|
46
|
-
let
|
|
47
|
-
for (;
|
|
48
|
-
if (
|
|
49
|
-
return
|
|
46
|
+
let o = n.length, r;
|
|
47
|
+
for (; o-- > 0; )
|
|
48
|
+
if (r = n[o], t === r.toLowerCase())
|
|
49
|
+
return r;
|
|
50
50
|
return null;
|
|
51
51
|
}
|
|
52
|
-
const
|
|
53
|
-
function
|
|
54
|
-
const { caseless: e } =
|
|
55
|
-
const
|
|
56
|
-
|
|
52
|
+
const ue = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Jt = (e) => !xe(e) && e !== ue;
|
|
53
|
+
function nt() {
|
|
54
|
+
const { caseless: e } = Jt(this) && this || {}, t = {}, n = (o, r) => {
|
|
55
|
+
const s = e && Wt(t, r) || r;
|
|
56
|
+
Te(t[s]) && Te(o) ? t[s] = nt(t[s], o) : Te(o) ? t[s] = nt({}, o) : be(o) ? t[s] = o.slice() : t[s] = o;
|
|
57
57
|
};
|
|
58
|
-
for (let
|
|
59
|
-
arguments[
|
|
58
|
+
for (let o = 0, r = arguments.length; o < r; o++)
|
|
59
|
+
arguments[o] && Be(arguments[o], n);
|
|
60
60
|
return t;
|
|
61
61
|
}
|
|
62
|
-
const
|
|
63
|
-
n &&
|
|
64
|
-
}, { allOwnKeys:
|
|
65
|
-
e.prototype = Object.create(t.prototype,
|
|
62
|
+
const Xn = (e, t, n, { allOwnKeys: o } = {}) => (Be(t, (r, s) => {
|
|
63
|
+
n && Y(r) ? e[s] = Gt(r, n) : e[s] = r;
|
|
64
|
+
}, { allOwnKeys: o }), e), $n = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Kn = (e, t, n, o) => {
|
|
65
|
+
e.prototype = Object.create(t.prototype, o), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
66
66
|
value: t.prototype
|
|
67
67
|
}), n && Object.assign(e.prototype, n);
|
|
68
|
-
},
|
|
69
|
-
let s, i
|
|
68
|
+
}, eo = (e, t, n, o) => {
|
|
69
|
+
let r, s, i;
|
|
70
70
|
const a = {};
|
|
71
71
|
if (t = t || {}, e == null) return t;
|
|
72
72
|
do {
|
|
73
|
-
for (
|
|
74
|
-
|
|
75
|
-
e = n !== !1 &&
|
|
73
|
+
for (r = Object.getOwnPropertyNames(e), s = r.length; s-- > 0; )
|
|
74
|
+
i = r[s], (!o || o(i, e, t)) && !a[i] && (t[i] = e[i], a[i] = !0);
|
|
75
|
+
e = n !== !1 && dt(e);
|
|
76
76
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
77
77
|
return t;
|
|
78
|
-
},
|
|
78
|
+
}, to = (e, t, n) => {
|
|
79
79
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
80
|
-
const
|
|
81
|
-
return
|
|
82
|
-
},
|
|
80
|
+
const o = e.indexOf(t, n);
|
|
81
|
+
return o !== -1 && o === n;
|
|
82
|
+
}, no = (e) => {
|
|
83
83
|
if (!e) return null;
|
|
84
|
-
if (
|
|
84
|
+
if (be(e)) return e;
|
|
85
85
|
let t = e.length;
|
|
86
|
-
if (!
|
|
86
|
+
if (!_t(t)) return null;
|
|
87
87
|
const n = new Array(t);
|
|
88
88
|
for (; t-- > 0; )
|
|
89
89
|
n[t] = e[t];
|
|
90
90
|
return n;
|
|
91
|
-
},
|
|
92
|
-
const
|
|
93
|
-
let
|
|
94
|
-
for (; (
|
|
95
|
-
const
|
|
96
|
-
t.call(e,
|
|
91
|
+
}, oo = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && dt(Uint8Array)), ro = (e, t) => {
|
|
92
|
+
const o = (e && e[Symbol.iterator]).call(e);
|
|
93
|
+
let r;
|
|
94
|
+
for (; (r = o.next()) && !r.done; ) {
|
|
95
|
+
const s = r.value;
|
|
96
|
+
t.call(e, s[0], s[1]);
|
|
97
97
|
}
|
|
98
|
-
},
|
|
98
|
+
}, so = (e, t) => {
|
|
99
99
|
let n;
|
|
100
|
-
const
|
|
100
|
+
const o = [];
|
|
101
101
|
for (; (n = e.exec(t)) !== null; )
|
|
102
|
-
|
|
103
|
-
return
|
|
104
|
-
},
|
|
102
|
+
o.push(n);
|
|
103
|
+
return o;
|
|
104
|
+
}, io = $("HTMLFormElement"), ao = (e) => e.toLowerCase().replace(
|
|
105
105
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
106
|
-
function(n,
|
|
107
|
-
return
|
|
108
|
-
}
|
|
109
|
-
),
|
|
110
|
-
const n = Object.getOwnPropertyDescriptors(e),
|
|
111
|
-
|
|
112
|
-
let
|
|
113
|
-
(
|
|
114
|
-
}), Object.defineProperties(e,
|
|
115
|
-
},
|
|
116
|
-
|
|
117
|
-
if (
|
|
106
|
+
function(n, o, r) {
|
|
107
|
+
return o.toUpperCase() + r;
|
|
108
|
+
}
|
|
109
|
+
), vt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), lo = $("RegExp"), Qt = (e, t) => {
|
|
110
|
+
const n = Object.getOwnPropertyDescriptors(e), o = {};
|
|
111
|
+
Be(n, (r, s) => {
|
|
112
|
+
let i;
|
|
113
|
+
(i = t(r, s, e)) !== !1 && (o[s] = i || r);
|
|
114
|
+
}), Object.defineProperties(e, o);
|
|
115
|
+
}, co = (e) => {
|
|
116
|
+
Qt(e, (t, n) => {
|
|
117
|
+
if (Y(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
118
118
|
return !1;
|
|
119
|
-
const
|
|
120
|
-
if (
|
|
119
|
+
const o = e[n];
|
|
120
|
+
if (Y(o)) {
|
|
121
121
|
if (t.enumerable = !1, "writable" in t) {
|
|
122
122
|
t.writable = !1;
|
|
123
123
|
return;
|
|
@@ -127,104 +127,104 @@ const pn = (e, t, n, { allOwnKeys: r } = {}) => (ne(t, (s, i) => {
|
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
|
-
},
|
|
131
|
-
const n = {},
|
|
132
|
-
|
|
133
|
-
n[
|
|
130
|
+
}, uo = (e, t) => {
|
|
131
|
+
const n = {}, o = (r) => {
|
|
132
|
+
r.forEach((s) => {
|
|
133
|
+
n[s] = !0;
|
|
134
134
|
});
|
|
135
135
|
};
|
|
136
|
-
return
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
function
|
|
140
|
-
return !!(e &&
|
|
141
|
-
}
|
|
142
|
-
const
|
|
143
|
-
const t = new Array(10), n = (
|
|
144
|
-
if (
|
|
145
|
-
if (t.indexOf(
|
|
136
|
+
return be(e) ? o(e) : o(String(e).split(t)), n;
|
|
137
|
+
}, fo = () => {
|
|
138
|
+
}, po = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
139
|
+
function ho(e) {
|
|
140
|
+
return !!(e && Y(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
141
|
+
}
|
|
142
|
+
const mo = (e) => {
|
|
143
|
+
const t = new Array(10), n = (o, r) => {
|
|
144
|
+
if (Me(o)) {
|
|
145
|
+
if (t.indexOf(o) >= 0)
|
|
146
146
|
return;
|
|
147
|
-
if (!("toJSON" in
|
|
148
|
-
t[
|
|
149
|
-
const
|
|
150
|
-
return
|
|
151
|
-
const
|
|
152
|
-
!
|
|
153
|
-
}), t[
|
|
147
|
+
if (!("toJSON" in o)) {
|
|
148
|
+
t[r] = o;
|
|
149
|
+
const s = be(o) ? [] : {};
|
|
150
|
+
return Be(o, (i, a) => {
|
|
151
|
+
const d = n(i, r + 1);
|
|
152
|
+
!xe(d) && (s[a] = d);
|
|
153
|
+
}), t[r] = void 0, s;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
return
|
|
156
|
+
return o;
|
|
157
157
|
};
|
|
158
158
|
return n(e, 0);
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
}, !1), (
|
|
162
|
-
|
|
159
|
+
}, go = $("AsyncFunction"), bo = (e) => e && (Me(e) || Y(e)) && Y(e.then) && Y(e.catch), Zt = ((e, t) => e ? setImmediate : t ? ((n, o) => (ue.addEventListener("message", ({ source: r, data: s }) => {
|
|
160
|
+
r === ue && s === n && o.length && o.shift()();
|
|
161
|
+
}, !1), (r) => {
|
|
162
|
+
o.push(r), ue.postMessage(n, "*");
|
|
163
163
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
164
164
|
typeof setImmediate == "function",
|
|
165
|
-
|
|
166
|
-
),
|
|
167
|
-
isArray:
|
|
168
|
-
isArrayBuffer:
|
|
169
|
-
isBuffer:
|
|
170
|
-
isFormData:
|
|
171
|
-
isArrayBufferView:
|
|
172
|
-
isString:
|
|
173
|
-
isNumber:
|
|
174
|
-
isBoolean:
|
|
175
|
-
isObject:
|
|
176
|
-
isPlainObject:
|
|
177
|
-
isReadableStream:
|
|
178
|
-
isRequest:
|
|
179
|
-
isResponse:
|
|
180
|
-
isHeaders:
|
|
181
|
-
isUndefined:
|
|
182
|
-
isDate:
|
|
183
|
-
isFile:
|
|
184
|
-
isBlob:
|
|
185
|
-
isRegExp:
|
|
186
|
-
isFunction:
|
|
187
|
-
isStream:
|
|
188
|
-
isURLSearchParams:
|
|
189
|
-
isTypedArray:
|
|
190
|
-
isFileList:
|
|
191
|
-
forEach:
|
|
192
|
-
merge:
|
|
193
|
-
extend:
|
|
194
|
-
trim:
|
|
195
|
-
stripBOM:
|
|
196
|
-
inherits:
|
|
197
|
-
toFlatObject:
|
|
198
|
-
kindOf:
|
|
199
|
-
kindOfTest:
|
|
200
|
-
endsWith:
|
|
201
|
-
toArray:
|
|
202
|
-
forEachEntry:
|
|
203
|
-
matchAll:
|
|
204
|
-
isHTMLForm:
|
|
205
|
-
hasOwnProperty:
|
|
206
|
-
hasOwnProp:
|
|
165
|
+
Y(ue.postMessage)
|
|
166
|
+
), yo = typeof queueMicrotask < "u" ? queueMicrotask.bind(ue) : typeof process < "u" && process.nextTick || Zt, l = {
|
|
167
|
+
isArray: be,
|
|
168
|
+
isArrayBuffer: Vt,
|
|
169
|
+
isBuffer: Un,
|
|
170
|
+
isFormData: Vn,
|
|
171
|
+
isArrayBufferView: Fn,
|
|
172
|
+
isString: Pn,
|
|
173
|
+
isNumber: _t,
|
|
174
|
+
isBoolean: Mn,
|
|
175
|
+
isObject: Me,
|
|
176
|
+
isPlainObject: Te,
|
|
177
|
+
isReadableStream: Wn,
|
|
178
|
+
isRequest: Jn,
|
|
179
|
+
isResponse: Qn,
|
|
180
|
+
isHeaders: Zn,
|
|
181
|
+
isUndefined: xe,
|
|
182
|
+
isDate: jn,
|
|
183
|
+
isFile: qn,
|
|
184
|
+
isBlob: zn,
|
|
185
|
+
isRegExp: lo,
|
|
186
|
+
isFunction: Y,
|
|
187
|
+
isStream: Gn,
|
|
188
|
+
isURLSearchParams: _n,
|
|
189
|
+
isTypedArray: oo,
|
|
190
|
+
isFileList: Hn,
|
|
191
|
+
forEach: Be,
|
|
192
|
+
merge: nt,
|
|
193
|
+
extend: Xn,
|
|
194
|
+
trim: Yn,
|
|
195
|
+
stripBOM: $n,
|
|
196
|
+
inherits: Kn,
|
|
197
|
+
toFlatObject: eo,
|
|
198
|
+
kindOf: Fe,
|
|
199
|
+
kindOfTest: $,
|
|
200
|
+
endsWith: to,
|
|
201
|
+
toArray: no,
|
|
202
|
+
forEachEntry: ro,
|
|
203
|
+
matchAll: so,
|
|
204
|
+
isHTMLForm: io,
|
|
205
|
+
hasOwnProperty: vt,
|
|
206
|
+
hasOwnProp: vt,
|
|
207
207
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
208
|
-
reduceDescriptors:
|
|
209
|
-
freezeMethods:
|
|
210
|
-
toObjectSet:
|
|
211
|
-
toCamelCase:
|
|
212
|
-
noop:
|
|
213
|
-
toFiniteNumber:
|
|
214
|
-
findKey:
|
|
215
|
-
global:
|
|
216
|
-
isContextDefined:
|
|
217
|
-
isSpecCompliantForm:
|
|
218
|
-
toJSONObject:
|
|
219
|
-
isAsyncFn:
|
|
220
|
-
isThenable:
|
|
221
|
-
setImmediate:
|
|
222
|
-
asap:
|
|
208
|
+
reduceDescriptors: Qt,
|
|
209
|
+
freezeMethods: co,
|
|
210
|
+
toObjectSet: uo,
|
|
211
|
+
toCamelCase: ao,
|
|
212
|
+
noop: fo,
|
|
213
|
+
toFiniteNumber: po,
|
|
214
|
+
findKey: Wt,
|
|
215
|
+
global: ue,
|
|
216
|
+
isContextDefined: Jt,
|
|
217
|
+
isSpecCompliantForm: ho,
|
|
218
|
+
toJSONObject: mo,
|
|
219
|
+
isAsyncFn: go,
|
|
220
|
+
isThenable: bo,
|
|
221
|
+
setImmediate: Zt,
|
|
222
|
+
asap: yo
|
|
223
223
|
};
|
|
224
|
-
function
|
|
225
|
-
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),
|
|
224
|
+
function E(e, t, n, o, r) {
|
|
225
|
+
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), o && (this.request = o), r && (this.response = r, this.status = r.status ? r.status : null);
|
|
226
226
|
}
|
|
227
|
-
l.inherits(
|
|
227
|
+
l.inherits(E, Error, {
|
|
228
228
|
toJSON: function() {
|
|
229
229
|
return {
|
|
230
230
|
// Standard
|
|
@@ -245,7 +245,7 @@ l.inherits(b, Error, {
|
|
|
245
245
|
};
|
|
246
246
|
}
|
|
247
247
|
});
|
|
248
|
-
const
|
|
248
|
+
const Yt = E.prototype, Xt = {};
|
|
249
249
|
[
|
|
250
250
|
"ERR_BAD_OPTION_VALUE",
|
|
251
251
|
"ERR_BAD_OPTION",
|
|
@@ -261,96 +261,96 @@ const pt = b.prototype, ht = {};
|
|
|
261
261
|
"ERR_INVALID_URL"
|
|
262
262
|
// eslint-disable-next-line func-names
|
|
263
263
|
].forEach((e) => {
|
|
264
|
-
|
|
264
|
+
Xt[e] = { value: e };
|
|
265
265
|
});
|
|
266
|
-
Object.defineProperties(
|
|
267
|
-
Object.defineProperty(
|
|
268
|
-
|
|
269
|
-
const
|
|
270
|
-
return l.toFlatObject(e,
|
|
271
|
-
return
|
|
272
|
-
}, (a) => a !== "isAxiosError"),
|
|
266
|
+
Object.defineProperties(E, Xt);
|
|
267
|
+
Object.defineProperty(Yt, "isAxiosError", { value: !0 });
|
|
268
|
+
E.from = (e, t, n, o, r, s) => {
|
|
269
|
+
const i = Object.create(Yt);
|
|
270
|
+
return l.toFlatObject(e, i, function(d) {
|
|
271
|
+
return d !== Error.prototype;
|
|
272
|
+
}, (a) => a !== "isAxiosError"), E.call(i, e.message, t, n, o, r), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
|
|
273
273
|
};
|
|
274
|
-
const
|
|
275
|
-
function
|
|
274
|
+
const vo = null;
|
|
275
|
+
function ot(e) {
|
|
276
276
|
return l.isPlainObject(e) || l.isArray(e);
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function $t(e) {
|
|
279
279
|
return l.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
280
280
|
}
|
|
281
|
-
function
|
|
282
|
-
return e ? e.concat(t).map(function(
|
|
283
|
-
return
|
|
281
|
+
function wt(e, t, n) {
|
|
282
|
+
return e ? e.concat(t).map(function(r, s) {
|
|
283
|
+
return r = $t(r), !n && s ? "[" + r + "]" : r;
|
|
284
284
|
}).join(n ? "." : "") : t;
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
return l.isArray(e) && !e.some(
|
|
286
|
+
function wo(e) {
|
|
287
|
+
return l.isArray(e) && !e.some(ot);
|
|
288
288
|
}
|
|
289
|
-
const
|
|
289
|
+
const Ao = l.toFlatObject(l, {}, null, function(t) {
|
|
290
290
|
return /^is[A-Z]/.test(t);
|
|
291
291
|
});
|
|
292
|
-
function
|
|
292
|
+
function je(e, t, n) {
|
|
293
293
|
if (!l.isObject(e))
|
|
294
294
|
throw new TypeError("target must be an object");
|
|
295
295
|
t = t || new FormData(), n = l.toFlatObject(n, {
|
|
296
296
|
metaTokens: !0,
|
|
297
297
|
dots: !1,
|
|
298
298
|
indexes: !1
|
|
299
|
-
}, !1, function(
|
|
300
|
-
return !l.isUndefined(h[
|
|
299
|
+
}, !1, function(g, h) {
|
|
300
|
+
return !l.isUndefined(h[g]);
|
|
301
301
|
});
|
|
302
|
-
const
|
|
303
|
-
if (!l.isFunction(
|
|
302
|
+
const o = n.metaTokens, r = n.visitor || u, s = n.dots, i = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && l.isSpecCompliantForm(t);
|
|
303
|
+
if (!l.isFunction(r))
|
|
304
304
|
throw new TypeError("visitor must be a function");
|
|
305
|
-
function c(
|
|
306
|
-
if (
|
|
307
|
-
if (l.isDate(
|
|
308
|
-
return
|
|
309
|
-
if (!
|
|
310
|
-
throw new
|
|
311
|
-
return l.isArrayBuffer(
|
|
312
|
-
}
|
|
313
|
-
function u(
|
|
314
|
-
let
|
|
315
|
-
if (
|
|
316
|
-
if (l.endsWith(
|
|
317
|
-
|
|
318
|
-
else if (l.isArray(
|
|
319
|
-
return
|
|
320
|
-
!(l.isUndefined(
|
|
305
|
+
function c(m) {
|
|
306
|
+
if (m === null) return "";
|
|
307
|
+
if (l.isDate(m))
|
|
308
|
+
return m.toISOString();
|
|
309
|
+
if (!d && l.isBlob(m))
|
|
310
|
+
throw new E("Blob is not supported. Use a Buffer instead.");
|
|
311
|
+
return l.isArrayBuffer(m) || l.isTypedArray(m) ? d && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
|
|
312
|
+
}
|
|
313
|
+
function u(m, g, h) {
|
|
314
|
+
let R = m;
|
|
315
|
+
if (m && !h && typeof m == "object") {
|
|
316
|
+
if (l.endsWith(g, "{}"))
|
|
317
|
+
g = o ? g : g.slice(0, -2), m = JSON.stringify(m);
|
|
318
|
+
else if (l.isArray(m) && wo(m) || (l.isFileList(m) || l.endsWith(g, "[]")) && (R = l.toArray(m)))
|
|
319
|
+
return g = $t(g), R.forEach(function(y, O) {
|
|
320
|
+
!(l.isUndefined(y) || y === null) && t.append(
|
|
321
321
|
// eslint-disable-next-line no-nested-ternary
|
|
322
|
-
|
|
323
|
-
c(
|
|
322
|
+
i === !0 ? wt([g], O, s) : i === null ? g : g + "[]",
|
|
323
|
+
c(y)
|
|
324
324
|
);
|
|
325
325
|
}), !1;
|
|
326
326
|
}
|
|
327
|
-
return
|
|
327
|
+
return ot(m) ? !0 : (t.append(wt(h, g, s), c(m)), !1);
|
|
328
328
|
}
|
|
329
|
-
const
|
|
329
|
+
const f = [], b = Object.assign(Ao, {
|
|
330
330
|
defaultVisitor: u,
|
|
331
331
|
convertValue: c,
|
|
332
|
-
isVisitable:
|
|
332
|
+
isVisitable: ot
|
|
333
333
|
});
|
|
334
|
-
function
|
|
335
|
-
if (!l.isUndefined(
|
|
336
|
-
if (
|
|
337
|
-
throw Error("Circular reference detected in " +
|
|
338
|
-
|
|
339
|
-
(!(l.isUndefined(
|
|
334
|
+
function p(m, g) {
|
|
335
|
+
if (!l.isUndefined(m)) {
|
|
336
|
+
if (f.indexOf(m) !== -1)
|
|
337
|
+
throw Error("Circular reference detected in " + g.join("."));
|
|
338
|
+
f.push(m), l.forEach(m, function(R, k) {
|
|
339
|
+
(!(l.isUndefined(R) || R === null) && r.call(
|
|
340
340
|
t,
|
|
341
|
-
|
|
342
|
-
l.isString(
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
)) === !0 &&
|
|
346
|
-
}),
|
|
341
|
+
R,
|
|
342
|
+
l.isString(k) ? k.trim() : k,
|
|
343
|
+
g,
|
|
344
|
+
b
|
|
345
|
+
)) === !0 && p(R, g ? g.concat(k) : [k]);
|
|
346
|
+
}), f.pop();
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
if (!l.isObject(e))
|
|
350
350
|
throw new TypeError("data must be an object");
|
|
351
|
-
return
|
|
351
|
+
return p(e), t;
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function At(e) {
|
|
354
354
|
const t = {
|
|
355
355
|
"!": "%21",
|
|
356
356
|
"'": "%27",
|
|
@@ -360,44 +360,44 @@ function _e(e) {
|
|
|
360
360
|
"%20": "+",
|
|
361
361
|
"%00": "\0"
|
|
362
362
|
};
|
|
363
|
-
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(
|
|
364
|
-
return t[
|
|
363
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(o) {
|
|
364
|
+
return t[o];
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
this._pairs = [], e &&
|
|
367
|
+
function ft(e, t) {
|
|
368
|
+
this._pairs = [], e && je(e, this, t);
|
|
369
369
|
}
|
|
370
|
-
const
|
|
371
|
-
|
|
370
|
+
const Kt = ft.prototype;
|
|
371
|
+
Kt.append = function(t, n) {
|
|
372
372
|
this._pairs.push([t, n]);
|
|
373
373
|
};
|
|
374
|
-
|
|
375
|
-
const n = t ? function(
|
|
376
|
-
return t.call(this,
|
|
377
|
-
} :
|
|
378
|
-
return this._pairs.map(function(
|
|
379
|
-
return n(
|
|
374
|
+
Kt.toString = function(t) {
|
|
375
|
+
const n = t ? function(o) {
|
|
376
|
+
return t.call(this, o, At);
|
|
377
|
+
} : At;
|
|
378
|
+
return this._pairs.map(function(r) {
|
|
379
|
+
return n(r[0]) + "=" + n(r[1]);
|
|
380
380
|
}, "").join("&");
|
|
381
381
|
};
|
|
382
|
-
function
|
|
382
|
+
function Eo(e) {
|
|
383
383
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function en(e, t, n) {
|
|
386
386
|
if (!t)
|
|
387
387
|
return e;
|
|
388
|
-
const
|
|
388
|
+
const o = n && n.encode || Eo;
|
|
389
389
|
l.isFunction(n) && (n = {
|
|
390
390
|
serialize: n
|
|
391
391
|
});
|
|
392
|
-
const
|
|
393
|
-
let
|
|
394
|
-
if (
|
|
395
|
-
const
|
|
396
|
-
|
|
392
|
+
const r = n && n.serialize;
|
|
393
|
+
let s;
|
|
394
|
+
if (r ? s = r(t, n) : s = l.isURLSearchParams(t) ? t.toString() : new ft(t, n).toString(o), s) {
|
|
395
|
+
const i = e.indexOf("#");
|
|
396
|
+
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
|
|
397
397
|
}
|
|
398
398
|
return e;
|
|
399
399
|
}
|
|
400
|
-
class
|
|
400
|
+
class Et {
|
|
401
401
|
constructor() {
|
|
402
402
|
this.handlers = [];
|
|
403
403
|
}
|
|
@@ -409,12 +409,12 @@ class He {
|
|
|
409
409
|
*
|
|
410
410
|
* @return {Number} An ID used to remove interceptor later
|
|
411
411
|
*/
|
|
412
|
-
use(t, n,
|
|
412
|
+
use(t, n, o) {
|
|
413
413
|
return this.handlers.push({
|
|
414
414
|
fulfilled: t,
|
|
415
415
|
rejected: n,
|
|
416
|
-
synchronous:
|
|
417
|
-
runWhen:
|
|
416
|
+
synchronous: o ? o.synchronous : !1,
|
|
417
|
+
runWhen: o ? o.runWhen : null
|
|
418
418
|
}), this.handlers.length - 1;
|
|
419
419
|
}
|
|
420
420
|
/**
|
|
@@ -446,86 +446,86 @@ class He {
|
|
|
446
446
|
* @returns {void}
|
|
447
447
|
*/
|
|
448
448
|
forEach(t) {
|
|
449
|
-
l.forEach(this.handlers, function(
|
|
450
|
-
|
|
449
|
+
l.forEach(this.handlers, function(o) {
|
|
450
|
+
o !== null && t(o);
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
const
|
|
454
|
+
const tn = {
|
|
455
455
|
silentJSONParsing: !0,
|
|
456
456
|
forcedJSONParsing: !0,
|
|
457
457
|
clarifyTimeoutError: !1
|
|
458
|
-
},
|
|
458
|
+
}, So = typeof URLSearchParams < "u" ? URLSearchParams : ft, Ro = typeof FormData < "u" ? FormData : null, xo = typeof Blob < "u" ? Blob : null, Bo = {
|
|
459
459
|
isBrowser: !0,
|
|
460
460
|
classes: {
|
|
461
|
-
URLSearchParams:
|
|
462
|
-
FormData:
|
|
463
|
-
Blob:
|
|
461
|
+
URLSearchParams: So,
|
|
462
|
+
FormData: Ro,
|
|
463
|
+
Blob: xo
|
|
464
464
|
},
|
|
465
465
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
466
|
-
},
|
|
467
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
466
|
+
}, pt = typeof window < "u" && typeof document < "u", rt = typeof navigator == "object" && navigator || void 0, Co = pt && (!rt || ["ReactNative", "NativeScript", "NS"].indexOf(rt.product) < 0), To = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
467
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ko = pt && window.location.href || "http://localhost", Do = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
468
468
|
__proto__: null,
|
|
469
|
-
hasBrowserEnv:
|
|
470
|
-
hasStandardBrowserEnv:
|
|
471
|
-
hasStandardBrowserWebWorkerEnv:
|
|
472
|
-
navigator:
|
|
473
|
-
origin:
|
|
474
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
475
|
-
...
|
|
476
|
-
...
|
|
469
|
+
hasBrowserEnv: pt,
|
|
470
|
+
hasStandardBrowserEnv: Co,
|
|
471
|
+
hasStandardBrowserWebWorkerEnv: To,
|
|
472
|
+
navigator: rt,
|
|
473
|
+
origin: ko
|
|
474
|
+
}, Symbol.toStringTag, { value: "Module" })), G = {
|
|
475
|
+
...Do,
|
|
476
|
+
...Bo
|
|
477
477
|
};
|
|
478
|
-
function
|
|
479
|
-
return
|
|
480
|
-
visitor: function(n, r, s
|
|
481
|
-
return
|
|
478
|
+
function Oo(e, t) {
|
|
479
|
+
return je(e, new G.classes.URLSearchParams(), Object.assign({
|
|
480
|
+
visitor: function(n, o, r, s) {
|
|
481
|
+
return G.isNode && l.isBuffer(n) ? (this.append(o, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
482
482
|
}
|
|
483
483
|
}, t));
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function Io(e) {
|
|
486
486
|
return l.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function No(e) {
|
|
489
489
|
const t = {}, n = Object.keys(e);
|
|
490
|
-
let
|
|
491
|
-
const
|
|
492
|
-
let
|
|
493
|
-
for (
|
|
494
|
-
|
|
490
|
+
let o;
|
|
491
|
+
const r = n.length;
|
|
492
|
+
let s;
|
|
493
|
+
for (o = 0; o < r; o++)
|
|
494
|
+
s = n[o], t[s] = e[s];
|
|
495
495
|
return t;
|
|
496
496
|
}
|
|
497
|
-
function
|
|
498
|
-
function t(n, r, s
|
|
499
|
-
let
|
|
500
|
-
if (
|
|
501
|
-
const a = Number.isFinite(+
|
|
502
|
-
return
|
|
497
|
+
function nn(e) {
|
|
498
|
+
function t(n, o, r, s) {
|
|
499
|
+
let i = n[s++];
|
|
500
|
+
if (i === "__proto__") return !0;
|
|
501
|
+
const a = Number.isFinite(+i), d = s >= n.length;
|
|
502
|
+
return i = !i && l.isArray(r) ? r.length : i, d ? (l.hasOwnProp(r, i) ? r[i] = [r[i], o] : r[i] = o, !a) : ((!r[i] || !l.isObject(r[i])) && (r[i] = []), t(n, o, r[i], s) && l.isArray(r[i]) && (r[i] = No(r[i])), !a);
|
|
503
503
|
}
|
|
504
504
|
if (l.isFormData(e) && l.isFunction(e.entries)) {
|
|
505
505
|
const n = {};
|
|
506
|
-
return l.forEachEntry(e, (
|
|
507
|
-
t(
|
|
506
|
+
return l.forEachEntry(e, (o, r) => {
|
|
507
|
+
t(Io(o), r, n, 0);
|
|
508
508
|
}), n;
|
|
509
509
|
}
|
|
510
510
|
return null;
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function Lo(e, t, n) {
|
|
513
513
|
if (l.isString(e))
|
|
514
514
|
try {
|
|
515
515
|
return (t || JSON.parse)(e), l.trim(e);
|
|
516
|
-
} catch (
|
|
517
|
-
if (
|
|
518
|
-
throw
|
|
516
|
+
} catch (o) {
|
|
517
|
+
if (o.name !== "SyntaxError")
|
|
518
|
+
throw o;
|
|
519
519
|
}
|
|
520
520
|
return (n || JSON.stringify)(e);
|
|
521
521
|
}
|
|
522
|
-
const
|
|
523
|
-
transitional:
|
|
522
|
+
const Ce = {
|
|
523
|
+
transitional: tn,
|
|
524
524
|
adapter: ["xhr", "http", "fetch"],
|
|
525
525
|
transformRequest: [function(t, n) {
|
|
526
|
-
const
|
|
527
|
-
if (
|
|
528
|
-
return
|
|
526
|
+
const o = n.getContentType() || "", r = o.indexOf("application/json") > -1, s = l.isObject(t);
|
|
527
|
+
if (s && l.isHTMLForm(t) && (t = new FormData(t)), l.isFormData(t))
|
|
528
|
+
return r ? JSON.stringify(nn(t)) : t;
|
|
529
529
|
if (l.isArrayBuffer(t) || l.isBuffer(t) || l.isStream(t) || l.isFile(t) || l.isBlob(t) || l.isReadableStream(t))
|
|
530
530
|
return t;
|
|
531
531
|
if (l.isArrayBufferView(t))
|
|
@@ -533,31 +533,31 @@ const re = {
|
|
|
533
533
|
if (l.isURLSearchParams(t))
|
|
534
534
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
535
535
|
let a;
|
|
536
|
-
if (
|
|
537
|
-
if (
|
|
538
|
-
return
|
|
539
|
-
if ((a = l.isFileList(t)) ||
|
|
540
|
-
const
|
|
541
|
-
return
|
|
536
|
+
if (s) {
|
|
537
|
+
if (o.indexOf("application/x-www-form-urlencoded") > -1)
|
|
538
|
+
return Oo(t, this.formSerializer).toString();
|
|
539
|
+
if ((a = l.isFileList(t)) || o.indexOf("multipart/form-data") > -1) {
|
|
540
|
+
const d = this.env && this.env.FormData;
|
|
541
|
+
return je(
|
|
542
542
|
a ? { "files[]": t } : t,
|
|
543
|
-
|
|
543
|
+
d && new d(),
|
|
544
544
|
this.formSerializer
|
|
545
545
|
);
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
return
|
|
548
|
+
return s || r ? (n.setContentType("application/json", !1), Lo(t)) : t;
|
|
549
549
|
}],
|
|
550
550
|
transformResponse: [function(t) {
|
|
551
|
-
const n = this.transitional ||
|
|
551
|
+
const n = this.transitional || Ce.transitional, o = n && n.forcedJSONParsing, r = this.responseType === "json";
|
|
552
552
|
if (l.isResponse(t) || l.isReadableStream(t))
|
|
553
553
|
return t;
|
|
554
|
-
if (t && l.isString(t) && (
|
|
555
|
-
const
|
|
554
|
+
if (t && l.isString(t) && (o && !this.responseType || r)) {
|
|
555
|
+
const i = !(n && n.silentJSONParsing) && r;
|
|
556
556
|
try {
|
|
557
557
|
return JSON.parse(t);
|
|
558
558
|
} catch (a) {
|
|
559
|
-
if (
|
|
560
|
-
throw a.name === "SyntaxError" ?
|
|
559
|
+
if (i)
|
|
560
|
+
throw a.name === "SyntaxError" ? E.from(a, E.ERR_BAD_RESPONSE, this, null, this.response) : a;
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
return t;
|
|
@@ -572,8 +572,8 @@ const re = {
|
|
|
572
572
|
maxContentLength: -1,
|
|
573
573
|
maxBodyLength: -1,
|
|
574
574
|
env: {
|
|
575
|
-
FormData:
|
|
576
|
-
Blob:
|
|
575
|
+
FormData: G.classes.FormData,
|
|
576
|
+
Blob: G.classes.Blob
|
|
577
577
|
},
|
|
578
578
|
validateStatus: function(t) {
|
|
579
579
|
return t >= 200 && t < 300;
|
|
@@ -586,9 +586,9 @@ const re = {
|
|
|
586
586
|
}
|
|
587
587
|
};
|
|
588
588
|
l.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
589
|
-
|
|
589
|
+
Ce.headers[e] = {};
|
|
590
590
|
});
|
|
591
|
-
const
|
|
591
|
+
const Uo = l.toObjectSet([
|
|
592
592
|
"age",
|
|
593
593
|
"authorization",
|
|
594
594
|
"content-length",
|
|
@@ -606,131 +606,131 @@ const Zn = l.toObjectSet([
|
|
|
606
606
|
"referer",
|
|
607
607
|
"retry-after",
|
|
608
608
|
"user-agent"
|
|
609
|
-
]),
|
|
609
|
+
]), Fo = (e) => {
|
|
610
610
|
const t = {};
|
|
611
|
-
let n,
|
|
611
|
+
let n, o, r;
|
|
612
612
|
return e && e.split(`
|
|
613
|
-
`).forEach(function(
|
|
614
|
-
|
|
613
|
+
`).forEach(function(i) {
|
|
614
|
+
r = i.indexOf(":"), n = i.substring(0, r).trim().toLowerCase(), o = i.substring(r + 1).trim(), !(!n || t[n] && Uo[n]) && (n === "set-cookie" ? t[n] ? t[n].push(o) : t[n] = [o] : t[n] = t[n] ? t[n] + ", " + o : o);
|
|
615
615
|
}), t;
|
|
616
|
-
},
|
|
617
|
-
function
|
|
616
|
+
}, St = Symbol("internals");
|
|
617
|
+
function Ee(e) {
|
|
618
618
|
return e && String(e).trim().toLowerCase();
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
return e === !1 || e == null ? e : l.isArray(e) ? e.map(
|
|
620
|
+
function ke(e) {
|
|
621
|
+
return e === !1 || e == null ? e : l.isArray(e) ? e.map(ke) : String(e);
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function Po(e) {
|
|
624
624
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
625
|
-
let
|
|
626
|
-
for (;
|
|
627
|
-
t[
|
|
625
|
+
let o;
|
|
626
|
+
for (; o = n.exec(e); )
|
|
627
|
+
t[o[1]] = o[2];
|
|
628
628
|
return t;
|
|
629
629
|
}
|
|
630
|
-
const
|
|
631
|
-
function
|
|
632
|
-
if (l.isFunction(
|
|
633
|
-
return
|
|
634
|
-
if (
|
|
635
|
-
if (l.isString(
|
|
636
|
-
return t.indexOf(
|
|
637
|
-
if (l.isRegExp(
|
|
638
|
-
return
|
|
630
|
+
const Mo = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
631
|
+
function _e(e, t, n, o, r) {
|
|
632
|
+
if (l.isFunction(o))
|
|
633
|
+
return o.call(this, t, n);
|
|
634
|
+
if (r && (t = n), !!l.isString(t)) {
|
|
635
|
+
if (l.isString(o))
|
|
636
|
+
return t.indexOf(o) !== -1;
|
|
637
|
+
if (l.isRegExp(o))
|
|
638
|
+
return o.test(t);
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n,
|
|
641
|
+
function jo(e) {
|
|
642
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, o) => n.toUpperCase() + o);
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function qo(e, t) {
|
|
645
645
|
const n = l.toCamelCase(" " + t);
|
|
646
|
-
["get", "set", "has"].forEach((
|
|
647
|
-
Object.defineProperty(e,
|
|
648
|
-
value: function(s, i
|
|
649
|
-
return this[
|
|
646
|
+
["get", "set", "has"].forEach((o) => {
|
|
647
|
+
Object.defineProperty(e, o + n, {
|
|
648
|
+
value: function(r, s, i) {
|
|
649
|
+
return this[o].call(this, t, r, s, i);
|
|
650
650
|
},
|
|
651
651
|
configurable: !0
|
|
652
652
|
});
|
|
653
653
|
});
|
|
654
654
|
}
|
|
655
|
-
let
|
|
655
|
+
let W = class {
|
|
656
656
|
constructor(t) {
|
|
657
657
|
t && this.set(t);
|
|
658
658
|
}
|
|
659
|
-
set(t, n,
|
|
660
|
-
const
|
|
661
|
-
function
|
|
662
|
-
const u =
|
|
659
|
+
set(t, n, o) {
|
|
660
|
+
const r = this;
|
|
661
|
+
function s(a, d, c) {
|
|
662
|
+
const u = Ee(d);
|
|
663
663
|
if (!u)
|
|
664
664
|
throw new Error("header name must be a non-empty string");
|
|
665
|
-
const
|
|
666
|
-
(!
|
|
665
|
+
const f = l.findKey(r, u);
|
|
666
|
+
(!f || r[f] === void 0 || c === !0 || c === void 0 && r[f] !== !1) && (r[f || d] = ke(a));
|
|
667
667
|
}
|
|
668
|
-
const
|
|
668
|
+
const i = (a, d) => l.forEach(a, (c, u) => s(c, u, d));
|
|
669
669
|
if (l.isPlainObject(t) || t instanceof this.constructor)
|
|
670
|
-
|
|
671
|
-
else if (l.isString(t) && (t = t.trim()) &&
|
|
672
|
-
|
|
670
|
+
i(t, n);
|
|
671
|
+
else if (l.isString(t) && (t = t.trim()) && !Mo(t))
|
|
672
|
+
i(Fo(t), n);
|
|
673
673
|
else if (l.isHeaders(t))
|
|
674
|
-
for (const [a,
|
|
675
|
-
|
|
674
|
+
for (const [a, d] of t.entries())
|
|
675
|
+
s(d, a, o);
|
|
676
676
|
else
|
|
677
|
-
t != null &&
|
|
677
|
+
t != null && s(n, t, o);
|
|
678
678
|
return this;
|
|
679
679
|
}
|
|
680
680
|
get(t, n) {
|
|
681
|
-
if (t =
|
|
682
|
-
const
|
|
683
|
-
if (
|
|
684
|
-
const
|
|
681
|
+
if (t = Ee(t), t) {
|
|
682
|
+
const o = l.findKey(this, t);
|
|
683
|
+
if (o) {
|
|
684
|
+
const r = this[o];
|
|
685
685
|
if (!n)
|
|
686
|
-
return
|
|
686
|
+
return r;
|
|
687
687
|
if (n === !0)
|
|
688
|
-
return
|
|
688
|
+
return Po(r);
|
|
689
689
|
if (l.isFunction(n))
|
|
690
|
-
return n.call(this,
|
|
690
|
+
return n.call(this, r, o);
|
|
691
691
|
if (l.isRegExp(n))
|
|
692
|
-
return n.exec(
|
|
692
|
+
return n.exec(r);
|
|
693
693
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
697
|
has(t, n) {
|
|
698
|
-
if (t =
|
|
699
|
-
const
|
|
700
|
-
return !!(
|
|
698
|
+
if (t = Ee(t), t) {
|
|
699
|
+
const o = l.findKey(this, t);
|
|
700
|
+
return !!(o && this[o] !== void 0 && (!n || _e(this, this[o], o, n)));
|
|
701
701
|
}
|
|
702
702
|
return !1;
|
|
703
703
|
}
|
|
704
704
|
delete(t, n) {
|
|
705
|
-
const
|
|
706
|
-
let
|
|
707
|
-
function i
|
|
708
|
-
if (
|
|
709
|
-
const a = l.findKey(
|
|
710
|
-
a && (!n ||
|
|
705
|
+
const o = this;
|
|
706
|
+
let r = !1;
|
|
707
|
+
function s(i) {
|
|
708
|
+
if (i = Ee(i), i) {
|
|
709
|
+
const a = l.findKey(o, i);
|
|
710
|
+
a && (!n || _e(o, o[a], a, n)) && (delete o[a], r = !0);
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
|
-
return l.isArray(t) ? t.forEach(
|
|
713
|
+
return l.isArray(t) ? t.forEach(s) : s(t), r;
|
|
714
714
|
}
|
|
715
715
|
clear(t) {
|
|
716
716
|
const n = Object.keys(this);
|
|
717
|
-
let
|
|
718
|
-
for (;
|
|
719
|
-
const
|
|
720
|
-
(!t ||
|
|
717
|
+
let o = n.length, r = !1;
|
|
718
|
+
for (; o--; ) {
|
|
719
|
+
const s = n[o];
|
|
720
|
+
(!t || _e(this, this[s], s, t, !0)) && (delete this[s], r = !0);
|
|
721
721
|
}
|
|
722
|
-
return
|
|
722
|
+
return r;
|
|
723
723
|
}
|
|
724
724
|
normalize(t) {
|
|
725
|
-
const n = this,
|
|
726
|
-
return l.forEach(this, (
|
|
727
|
-
const
|
|
728
|
-
if (
|
|
729
|
-
n[
|
|
725
|
+
const n = this, o = {};
|
|
726
|
+
return l.forEach(this, (r, s) => {
|
|
727
|
+
const i = l.findKey(o, s);
|
|
728
|
+
if (i) {
|
|
729
|
+
n[i] = ke(r), delete n[s];
|
|
730
730
|
return;
|
|
731
731
|
}
|
|
732
|
-
const a = t ?
|
|
733
|
-
a !==
|
|
732
|
+
const a = t ? jo(s) : String(s).trim();
|
|
733
|
+
a !== s && delete n[s], n[a] = ke(r), o[a] = !0;
|
|
734
734
|
}), this;
|
|
735
735
|
}
|
|
736
736
|
concat(...t) {
|
|
@@ -738,8 +738,8 @@ let F = class {
|
|
|
738
738
|
}
|
|
739
739
|
toJSON(t) {
|
|
740
740
|
const n = /* @__PURE__ */ Object.create(null);
|
|
741
|
-
return l.forEach(this, (
|
|
742
|
-
|
|
741
|
+
return l.forEach(this, (o, r) => {
|
|
742
|
+
o != null && o !== !1 && (n[r] = t && l.isArray(o) ? o.join(", ") : o);
|
|
743
743
|
}), n;
|
|
744
744
|
}
|
|
745
745
|
[Symbol.iterator]() {
|
|
@@ -756,124 +756,124 @@ let F = class {
|
|
|
756
756
|
return t instanceof this ? t : new this(t);
|
|
757
757
|
}
|
|
758
758
|
static concat(t, ...n) {
|
|
759
|
-
const
|
|
760
|
-
return n.forEach((
|
|
759
|
+
const o = new this(t);
|
|
760
|
+
return n.forEach((r) => o.set(r)), o;
|
|
761
761
|
}
|
|
762
762
|
static accessor(t) {
|
|
763
|
-
const
|
|
763
|
+
const o = (this[St] = this[St] = {
|
|
764
764
|
accessors: {}
|
|
765
|
-
}).accessors,
|
|
766
|
-
function i
|
|
767
|
-
const a =
|
|
768
|
-
|
|
765
|
+
}).accessors, r = this.prototype;
|
|
766
|
+
function s(i) {
|
|
767
|
+
const a = Ee(i);
|
|
768
|
+
o[a] || (qo(r, i), o[a] = !0);
|
|
769
769
|
}
|
|
770
|
-
return l.isArray(t) ? t.forEach(
|
|
770
|
+
return l.isArray(t) ? t.forEach(s) : s(t), this;
|
|
771
771
|
}
|
|
772
772
|
};
|
|
773
|
-
|
|
774
|
-
l.reduceDescriptors(
|
|
773
|
+
W.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
774
|
+
l.reduceDescriptors(W.prototype, ({ value: e }, t) => {
|
|
775
775
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
776
776
|
return {
|
|
777
777
|
get: () => e,
|
|
778
|
-
set(
|
|
779
|
-
this[n] =
|
|
778
|
+
set(o) {
|
|
779
|
+
this[n] = o;
|
|
780
780
|
}
|
|
781
781
|
};
|
|
782
782
|
});
|
|
783
|
-
l.freezeMethods(
|
|
784
|
-
function
|
|
785
|
-
const n = this ||
|
|
786
|
-
let
|
|
783
|
+
l.freezeMethods(W);
|
|
784
|
+
function We(e, t) {
|
|
785
|
+
const n = this || Ce, o = t || n, r = W.from(o.headers);
|
|
786
|
+
let s = o.data;
|
|
787
787
|
return l.forEach(e, function(a) {
|
|
788
|
-
|
|
789
|
-
}),
|
|
788
|
+
s = a.call(n, s, r.normalize(), t ? t.status : void 0);
|
|
789
|
+
}), r.normalize(), s;
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function on(e) {
|
|
792
792
|
return !!(e && e.__CANCEL__);
|
|
793
793
|
}
|
|
794
|
-
function
|
|
795
|
-
|
|
794
|
+
function ye(e, t, n) {
|
|
795
|
+
E.call(this, e ?? "canceled", E.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
796
796
|
}
|
|
797
|
-
l.inherits(
|
|
797
|
+
l.inherits(ye, E, {
|
|
798
798
|
__CANCEL__: !0
|
|
799
799
|
});
|
|
800
|
-
function
|
|
801
|
-
const
|
|
802
|
-
!n.status || !
|
|
800
|
+
function rn(e, t, n) {
|
|
801
|
+
const o = n.config.validateStatus;
|
|
802
|
+
!n.status || !o || o(n.status) ? e(n) : t(new E(
|
|
803
803
|
"Request failed with status code " + n.status,
|
|
804
|
-
[
|
|
804
|
+
[E.ERR_BAD_REQUEST, E.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
805
805
|
n.config,
|
|
806
806
|
n.request,
|
|
807
807
|
n
|
|
808
808
|
));
|
|
809
809
|
}
|
|
810
|
-
function
|
|
810
|
+
function zo(e) {
|
|
811
811
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
812
812
|
return t && t[1] || "";
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function Ho(e, t) {
|
|
815
815
|
e = e || 10;
|
|
816
|
-
const n = new Array(e),
|
|
817
|
-
let
|
|
818
|
-
return t = t !== void 0 ? t : 1e3, function(
|
|
819
|
-
const c = Date.now(), u =
|
|
820
|
-
|
|
821
|
-
let
|
|
822
|
-
for (;
|
|
823
|
-
|
|
824
|
-
if (
|
|
816
|
+
const n = new Array(e), o = new Array(e);
|
|
817
|
+
let r = 0, s = 0, i;
|
|
818
|
+
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
819
|
+
const c = Date.now(), u = o[s];
|
|
820
|
+
i || (i = c), n[r] = d, o[r] = c;
|
|
821
|
+
let f = s, b = 0;
|
|
822
|
+
for (; f !== r; )
|
|
823
|
+
b += n[f++], f = f % e;
|
|
824
|
+
if (r = (r + 1) % e, r === s && (s = (s + 1) % e), c - i < t)
|
|
825
825
|
return;
|
|
826
|
-
const
|
|
827
|
-
return
|
|
826
|
+
const p = u && c - u;
|
|
827
|
+
return p ? Math.round(b * 1e3 / p) : void 0;
|
|
828
828
|
};
|
|
829
829
|
}
|
|
830
|
-
function
|
|
831
|
-
let n = 0,
|
|
832
|
-
const
|
|
833
|
-
n = u,
|
|
830
|
+
function Go(e, t) {
|
|
831
|
+
let n = 0, o = 1e3 / t, r, s;
|
|
832
|
+
const i = (c, u = Date.now()) => {
|
|
833
|
+
n = u, r = null, s && (clearTimeout(s), s = null), e.apply(null, c);
|
|
834
834
|
};
|
|
835
835
|
return [(...c) => {
|
|
836
|
-
const u = Date.now(),
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
},
|
|
840
|
-
}, () =>
|
|
841
|
-
}
|
|
842
|
-
const
|
|
843
|
-
let
|
|
844
|
-
const
|
|
845
|
-
return
|
|
846
|
-
const
|
|
847
|
-
|
|
848
|
-
const
|
|
849
|
-
loaded:
|
|
836
|
+
const u = Date.now(), f = u - n;
|
|
837
|
+
f >= o ? i(c, u) : (r = c, s || (s = setTimeout(() => {
|
|
838
|
+
s = null, i(r);
|
|
839
|
+
}, o - f)));
|
|
840
|
+
}, () => r && i(r)];
|
|
841
|
+
}
|
|
842
|
+
const Oe = (e, t, n = 3) => {
|
|
843
|
+
let o = 0;
|
|
844
|
+
const r = Ho(50, 250);
|
|
845
|
+
return Go((s) => {
|
|
846
|
+
const i = s.loaded, a = s.lengthComputable ? s.total : void 0, d = i - o, c = r(d), u = i <= a;
|
|
847
|
+
o = i;
|
|
848
|
+
const f = {
|
|
849
|
+
loaded: i,
|
|
850
850
|
total: a,
|
|
851
|
-
progress: a ?
|
|
852
|
-
bytes:
|
|
851
|
+
progress: a ? i / a : void 0,
|
|
852
|
+
bytes: d,
|
|
853
853
|
rate: c || void 0,
|
|
854
|
-
estimated: c && a && u ? (a -
|
|
855
|
-
event:
|
|
854
|
+
estimated: c && a && u ? (a - i) / c : void 0,
|
|
855
|
+
event: s,
|
|
856
856
|
lengthComputable: a != null,
|
|
857
857
|
[t ? "download" : "upload"]: !0
|
|
858
858
|
};
|
|
859
|
-
e(
|
|
859
|
+
e(f);
|
|
860
860
|
}, n);
|
|
861
|
-
},
|
|
861
|
+
}, Rt = (e, t) => {
|
|
862
862
|
const n = e != null;
|
|
863
|
-
return [(
|
|
863
|
+
return [(o) => t[0]({
|
|
864
864
|
lengthComputable: n,
|
|
865
865
|
total: e,
|
|
866
|
-
loaded:
|
|
866
|
+
loaded: o
|
|
867
867
|
}), t[1]];
|
|
868
|
-
},
|
|
869
|
-
new URL(
|
|
870
|
-
|
|
871
|
-
) : () => !0,
|
|
868
|
+
}, xt = (e) => (...t) => l.asap(() => e(...t)), Vo = G.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, G.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
869
|
+
new URL(G.origin),
|
|
870
|
+
G.navigator && /(msie|trident)/i.test(G.navigator.userAgent)
|
|
871
|
+
) : () => !0, _o = G.hasStandardBrowserEnv ? (
|
|
872
872
|
// Standard browser envs support document.cookie
|
|
873
873
|
{
|
|
874
|
-
write(e, t, n, r, s
|
|
875
|
-
const
|
|
876
|
-
l.isNumber(n) &&
|
|
874
|
+
write(e, t, n, o, r, s) {
|
|
875
|
+
const i = [e + "=" + encodeURIComponent(t)];
|
|
876
|
+
l.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), l.isString(o) && i.push("path=" + o), l.isString(r) && i.push("domain=" + r), s === !0 && i.push("secure"), document.cookie = i.join("; ");
|
|
877
877
|
},
|
|
878
878
|
read(e) {
|
|
879
879
|
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
@@ -895,195 +895,195 @@ const le = (e, t, n = 3) => {
|
|
|
895
895
|
}
|
|
896
896
|
}
|
|
897
897
|
);
|
|
898
|
-
function
|
|
898
|
+
function Wo(e) {
|
|
899
899
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function Jo(e, t) {
|
|
902
902
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
903
903
|
}
|
|
904
|
-
function
|
|
905
|
-
let
|
|
906
|
-
return e &&
|
|
904
|
+
function sn(e, t, n) {
|
|
905
|
+
let o = !Wo(t);
|
|
906
|
+
return e && (o || n == !1) ? Jo(e, t) : t;
|
|
907
907
|
}
|
|
908
|
-
const
|
|
909
|
-
function
|
|
908
|
+
const Bt = (e) => e instanceof W ? { ...e } : e;
|
|
909
|
+
function he(e, t) {
|
|
910
910
|
t = t || {};
|
|
911
911
|
const n = {};
|
|
912
|
-
function
|
|
913
|
-
return l.isPlainObject(c) && l.isPlainObject(u) ? l.merge.call({ caseless:
|
|
912
|
+
function o(c, u, f, b) {
|
|
913
|
+
return l.isPlainObject(c) && l.isPlainObject(u) ? l.merge.call({ caseless: b }, c, u) : l.isPlainObject(u) ? l.merge({}, u) : l.isArray(u) ? u.slice() : u;
|
|
914
914
|
}
|
|
915
|
-
function
|
|
915
|
+
function r(c, u, f, b) {
|
|
916
916
|
if (l.isUndefined(u)) {
|
|
917
917
|
if (!l.isUndefined(c))
|
|
918
|
-
return
|
|
919
|
-
} else return
|
|
918
|
+
return o(void 0, c, f, b);
|
|
919
|
+
} else return o(c, u, f, b);
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function s(c, u) {
|
|
922
922
|
if (!l.isUndefined(u))
|
|
923
|
-
return
|
|
923
|
+
return o(void 0, u);
|
|
924
924
|
}
|
|
925
|
-
function
|
|
925
|
+
function i(c, u) {
|
|
926
926
|
if (l.isUndefined(u)) {
|
|
927
927
|
if (!l.isUndefined(c))
|
|
928
|
-
return
|
|
929
|
-
} else return
|
|
930
|
-
}
|
|
931
|
-
function a(c, u,
|
|
932
|
-
if (
|
|
933
|
-
return
|
|
934
|
-
if (
|
|
935
|
-
return
|
|
936
|
-
}
|
|
937
|
-
const
|
|
938
|
-
url:
|
|
939
|
-
method:
|
|
940
|
-
data:
|
|
941
|
-
baseURL:
|
|
942
|
-
transformRequest:
|
|
943
|
-
transformResponse:
|
|
944
|
-
paramsSerializer:
|
|
945
|
-
timeout:
|
|
946
|
-
timeoutMessage:
|
|
947
|
-
withCredentials:
|
|
948
|
-
withXSRFToken:
|
|
949
|
-
adapter:
|
|
950
|
-
responseType:
|
|
951
|
-
xsrfCookieName:
|
|
952
|
-
xsrfHeaderName:
|
|
953
|
-
onUploadProgress:
|
|
954
|
-
onDownloadProgress:
|
|
955
|
-
decompress:
|
|
956
|
-
maxContentLength:
|
|
957
|
-
maxBodyLength:
|
|
958
|
-
beforeRedirect:
|
|
959
|
-
transport:
|
|
960
|
-
httpAgent:
|
|
961
|
-
httpsAgent:
|
|
962
|
-
cancelToken:
|
|
963
|
-
socketPath:
|
|
964
|
-
responseEncoding:
|
|
928
|
+
return o(void 0, c);
|
|
929
|
+
} else return o(void 0, u);
|
|
930
|
+
}
|
|
931
|
+
function a(c, u, f) {
|
|
932
|
+
if (f in t)
|
|
933
|
+
return o(c, u);
|
|
934
|
+
if (f in e)
|
|
935
|
+
return o(void 0, c);
|
|
936
|
+
}
|
|
937
|
+
const d = {
|
|
938
|
+
url: s,
|
|
939
|
+
method: s,
|
|
940
|
+
data: s,
|
|
941
|
+
baseURL: i,
|
|
942
|
+
transformRequest: i,
|
|
943
|
+
transformResponse: i,
|
|
944
|
+
paramsSerializer: i,
|
|
945
|
+
timeout: i,
|
|
946
|
+
timeoutMessage: i,
|
|
947
|
+
withCredentials: i,
|
|
948
|
+
withXSRFToken: i,
|
|
949
|
+
adapter: i,
|
|
950
|
+
responseType: i,
|
|
951
|
+
xsrfCookieName: i,
|
|
952
|
+
xsrfHeaderName: i,
|
|
953
|
+
onUploadProgress: i,
|
|
954
|
+
onDownloadProgress: i,
|
|
955
|
+
decompress: i,
|
|
956
|
+
maxContentLength: i,
|
|
957
|
+
maxBodyLength: i,
|
|
958
|
+
beforeRedirect: i,
|
|
959
|
+
transport: i,
|
|
960
|
+
httpAgent: i,
|
|
961
|
+
httpsAgent: i,
|
|
962
|
+
cancelToken: i,
|
|
963
|
+
socketPath: i,
|
|
964
|
+
responseEncoding: i,
|
|
965
965
|
validateStatus: a,
|
|
966
|
-
headers: (c, u,
|
|
966
|
+
headers: (c, u, f) => r(Bt(c), Bt(u), f, !0)
|
|
967
967
|
};
|
|
968
968
|
return l.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
|
|
969
|
-
const
|
|
970
|
-
l.isUndefined(
|
|
969
|
+
const f = d[u] || r, b = f(e[u], t[u], u);
|
|
970
|
+
l.isUndefined(b) && f !== a || (n[u] = b);
|
|
971
971
|
}), n;
|
|
972
972
|
}
|
|
973
|
-
const
|
|
974
|
-
const t =
|
|
975
|
-
let { data: n, withXSRFToken:
|
|
976
|
-
t.headers =
|
|
973
|
+
const an = (e) => {
|
|
974
|
+
const t = he({}, e);
|
|
975
|
+
let { data: n, withXSRFToken: o, xsrfHeaderName: r, xsrfCookieName: s, headers: i, auth: a } = t;
|
|
976
|
+
t.headers = i = W.from(i), t.url = en(sn(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
|
|
977
977
|
"Authorization",
|
|
978
978
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
979
979
|
);
|
|
980
|
-
let
|
|
980
|
+
let d;
|
|
981
981
|
if (l.isFormData(n)) {
|
|
982
|
-
if (
|
|
983
|
-
|
|
984
|
-
else if ((
|
|
985
|
-
const [c, ...u] =
|
|
986
|
-
|
|
982
|
+
if (G.hasStandardBrowserEnv || G.hasStandardBrowserWebWorkerEnv)
|
|
983
|
+
i.setContentType(void 0);
|
|
984
|
+
else if ((d = i.getContentType()) !== !1) {
|
|
985
|
+
const [c, ...u] = d ? d.split(";").map((f) => f.trim()).filter(Boolean) : [];
|
|
986
|
+
i.setContentType([c || "multipart/form-data", ...u].join("; "));
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
|
-
if (
|
|
990
|
-
const c =
|
|
991
|
-
c &&
|
|
989
|
+
if (G.hasStandardBrowserEnv && (o && l.isFunction(o) && (o = o(t)), o || o !== !1 && Vo(t.url))) {
|
|
990
|
+
const c = r && s && _o.read(s);
|
|
991
|
+
c && i.set(r, c);
|
|
992
992
|
}
|
|
993
993
|
return t;
|
|
994
|
-
},
|
|
995
|
-
return new Promise(function(n,
|
|
996
|
-
const
|
|
997
|
-
let
|
|
998
|
-
const
|
|
999
|
-
let { responseType: a, onUploadProgress:
|
|
1000
|
-
function
|
|
1001
|
-
|
|
994
|
+
}, Qo = typeof XMLHttpRequest < "u", Zo = Qo && function(e) {
|
|
995
|
+
return new Promise(function(n, o) {
|
|
996
|
+
const r = an(e);
|
|
997
|
+
let s = r.data;
|
|
998
|
+
const i = W.from(r.headers).normalize();
|
|
999
|
+
let { responseType: a, onUploadProgress: d, onDownloadProgress: c } = r, u, f, b, p, m;
|
|
1000
|
+
function g() {
|
|
1001
|
+
p && p(), m && m(), r.cancelToken && r.cancelToken.unsubscribe(u), r.signal && r.signal.removeEventListener("abort", u);
|
|
1002
1002
|
}
|
|
1003
1003
|
let h = new XMLHttpRequest();
|
|
1004
|
-
h.open(
|
|
1005
|
-
function
|
|
1004
|
+
h.open(r.method.toUpperCase(), r.url, !0), h.timeout = r.timeout;
|
|
1005
|
+
function R() {
|
|
1006
1006
|
if (!h)
|
|
1007
1007
|
return;
|
|
1008
|
-
const
|
|
1008
|
+
const y = W.from(
|
|
1009
1009
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1010
|
-
),
|
|
1010
|
+
), I = {
|
|
1011
1011
|
data: !a || a === "text" || a === "json" ? h.responseText : h.response,
|
|
1012
1012
|
status: h.status,
|
|
1013
1013
|
statusText: h.statusText,
|
|
1014
|
-
headers:
|
|
1014
|
+
headers: y,
|
|
1015
1015
|
config: e,
|
|
1016
1016
|
request: h
|
|
1017
1017
|
};
|
|
1018
|
-
|
|
1019
|
-
n(
|
|
1020
|
-
}, function(
|
|
1021
|
-
|
|
1022
|
-
},
|
|
1023
|
-
}
|
|
1024
|
-
"onloadend" in h ? h.onloadend =
|
|
1025
|
-
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1018
|
+
rn(function(H) {
|
|
1019
|
+
n(H), g();
|
|
1020
|
+
}, function(H) {
|
|
1021
|
+
o(H), g();
|
|
1022
|
+
}, I), h = null;
|
|
1023
|
+
}
|
|
1024
|
+
"onloadend" in h ? h.onloadend = R : h.onreadystatechange = function() {
|
|
1025
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(R);
|
|
1026
1026
|
}, h.onabort = function() {
|
|
1027
|
-
h && (
|
|
1027
|
+
h && (o(new E("Request aborted", E.ECONNABORTED, e, h)), h = null);
|
|
1028
1028
|
}, h.onerror = function() {
|
|
1029
|
-
|
|
1029
|
+
o(new E("Network Error", E.ERR_NETWORK, e, h)), h = null;
|
|
1030
1030
|
}, h.ontimeout = function() {
|
|
1031
|
-
let
|
|
1032
|
-
const
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1031
|
+
let O = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
|
1032
|
+
const I = r.transitional || tn;
|
|
1033
|
+
r.timeoutErrorMessage && (O = r.timeoutErrorMessage), o(new E(
|
|
1034
|
+
O,
|
|
1035
|
+
I.clarifyTimeoutError ? E.ETIMEDOUT : E.ECONNABORTED,
|
|
1036
1036
|
e,
|
|
1037
1037
|
h
|
|
1038
1038
|
)), h = null;
|
|
1039
|
-
},
|
|
1040
|
-
h.setRequestHeader(
|
|
1041
|
-
}), l.isUndefined(
|
|
1042
|
-
h && (
|
|
1043
|
-
},
|
|
1044
|
-
const
|
|
1045
|
-
if (
|
|
1046
|
-
|
|
1039
|
+
}, s === void 0 && i.setContentType(null), "setRequestHeader" in h && l.forEach(i.toJSON(), function(O, I) {
|
|
1040
|
+
h.setRequestHeader(I, O);
|
|
1041
|
+
}), l.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), a && a !== "json" && (h.responseType = r.responseType), c && ([b, m] = Oe(c, !0), h.addEventListener("progress", b)), d && h.upload && ([f, p] = Oe(d), h.upload.addEventListener("progress", f), h.upload.addEventListener("loadend", p)), (r.cancelToken || r.signal) && (u = (y) => {
|
|
1042
|
+
h && (o(!y || y.type ? new ye(null, e, h) : y), h.abort(), h = null);
|
|
1043
|
+
}, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
|
|
1044
|
+
const k = zo(r.url);
|
|
1045
|
+
if (k && G.protocols.indexOf(k) === -1) {
|
|
1046
|
+
o(new E("Unsupported protocol " + k + ":", E.ERR_BAD_REQUEST, e));
|
|
1047
1047
|
return;
|
|
1048
1048
|
}
|
|
1049
|
-
h.send(
|
|
1049
|
+
h.send(s || null);
|
|
1050
1050
|
});
|
|
1051
|
-
},
|
|
1051
|
+
}, Yo = (e, t) => {
|
|
1052
1052
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1053
1053
|
if (t || n) {
|
|
1054
|
-
let
|
|
1055
|
-
const
|
|
1056
|
-
if (!
|
|
1057
|
-
|
|
1054
|
+
let o = new AbortController(), r;
|
|
1055
|
+
const s = function(c) {
|
|
1056
|
+
if (!r) {
|
|
1057
|
+
r = !0, a();
|
|
1058
1058
|
const u = c instanceof Error ? c : this.reason;
|
|
1059
|
-
|
|
1059
|
+
o.abort(u instanceof E ? u : new ye(u instanceof Error ? u.message : u));
|
|
1060
1060
|
}
|
|
1061
1061
|
};
|
|
1062
|
-
let
|
|
1063
|
-
|
|
1062
|
+
let i = t && setTimeout(() => {
|
|
1063
|
+
i = null, s(new E(`timeout ${t} of ms exceeded`, E.ETIMEDOUT));
|
|
1064
1064
|
}, t);
|
|
1065
1065
|
const a = () => {
|
|
1066
|
-
e && (
|
|
1067
|
-
c.unsubscribe ? c.unsubscribe(
|
|
1066
|
+
e && (i && clearTimeout(i), i = null, e.forEach((c) => {
|
|
1067
|
+
c.unsubscribe ? c.unsubscribe(s) : c.removeEventListener("abort", s);
|
|
1068
1068
|
}), e = null);
|
|
1069
1069
|
};
|
|
1070
|
-
e.forEach((c) => c.addEventListener("abort",
|
|
1071
|
-
const { signal:
|
|
1072
|
-
return
|
|
1070
|
+
e.forEach((c) => c.addEventListener("abort", s));
|
|
1071
|
+
const { signal: d } = o;
|
|
1072
|
+
return d.unsubscribe = () => l.asap(a), d;
|
|
1073
1073
|
}
|
|
1074
|
-
},
|
|
1074
|
+
}, Xo = function* (e, t) {
|
|
1075
1075
|
let n = e.byteLength;
|
|
1076
1076
|
if (n < t) {
|
|
1077
1077
|
yield e;
|
|
1078
1078
|
return;
|
|
1079
1079
|
}
|
|
1080
|
-
let
|
|
1081
|
-
for (;
|
|
1082
|
-
|
|
1083
|
-
},
|
|
1084
|
-
for await (const n of
|
|
1085
|
-
yield*
|
|
1086
|
-
},
|
|
1080
|
+
let o = 0, r;
|
|
1081
|
+
for (; o < n; )
|
|
1082
|
+
r = o + t, yield e.slice(o, r), o = r;
|
|
1083
|
+
}, $o = async function* (e, t) {
|
|
1084
|
+
for await (const n of Ko(e))
|
|
1085
|
+
yield* Xo(n, t);
|
|
1086
|
+
}, Ko = async function* (e) {
|
|
1087
1087
|
if (e[Symbol.asyncIterator]) {
|
|
1088
1088
|
yield* e;
|
|
1089
1089
|
return;
|
|
@@ -1091,52 +1091,52 @@ const vt = (e) => {
|
|
|
1091
1091
|
const t = e.getReader();
|
|
1092
1092
|
try {
|
|
1093
1093
|
for (; ; ) {
|
|
1094
|
-
const { done: n, value:
|
|
1094
|
+
const { done: n, value: o } = await t.read();
|
|
1095
1095
|
if (n)
|
|
1096
1096
|
break;
|
|
1097
|
-
yield
|
|
1097
|
+
yield o;
|
|
1098
1098
|
}
|
|
1099
1099
|
} finally {
|
|
1100
1100
|
await t.cancel();
|
|
1101
1101
|
}
|
|
1102
|
-
},
|
|
1103
|
-
const
|
|
1104
|
-
let
|
|
1105
|
-
|
|
1102
|
+
}, Ct = (e, t, n, o) => {
|
|
1103
|
+
const r = $o(e, t);
|
|
1104
|
+
let s = 0, i, a = (d) => {
|
|
1105
|
+
i || (i = !0, o && o(d));
|
|
1106
1106
|
};
|
|
1107
1107
|
return new ReadableStream({
|
|
1108
|
-
async pull(
|
|
1108
|
+
async pull(d) {
|
|
1109
1109
|
try {
|
|
1110
|
-
const { done: c, value: u } = await
|
|
1110
|
+
const { done: c, value: u } = await r.next();
|
|
1111
1111
|
if (c) {
|
|
1112
|
-
a(),
|
|
1112
|
+
a(), d.close();
|
|
1113
1113
|
return;
|
|
1114
1114
|
}
|
|
1115
|
-
let
|
|
1115
|
+
let f = u.byteLength;
|
|
1116
1116
|
if (n) {
|
|
1117
|
-
let
|
|
1118
|
-
n(
|
|
1117
|
+
let b = s += f;
|
|
1118
|
+
n(b);
|
|
1119
1119
|
}
|
|
1120
|
-
|
|
1120
|
+
d.enqueue(new Uint8Array(u));
|
|
1121
1121
|
} catch (c) {
|
|
1122
1122
|
throw a(c), c;
|
|
1123
1123
|
}
|
|
1124
1124
|
},
|
|
1125
|
-
cancel(
|
|
1126
|
-
return a(
|
|
1125
|
+
cancel(d) {
|
|
1126
|
+
return a(d), r.return();
|
|
1127
1127
|
}
|
|
1128
1128
|
}, {
|
|
1129
1129
|
highWaterMark: 2
|
|
1130
1130
|
});
|
|
1131
|
-
},
|
|
1131
|
+
}, qe = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ln = qe && typeof ReadableStream == "function", er = qe && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), cn = (e, ...t) => {
|
|
1132
1132
|
try {
|
|
1133
1133
|
return !!e(...t);
|
|
1134
1134
|
} catch {
|
|
1135
1135
|
return !1;
|
|
1136
1136
|
}
|
|
1137
|
-
},
|
|
1137
|
+
}, tr = ln && cn(() => {
|
|
1138
1138
|
let e = !1;
|
|
1139
|
-
const t = new Request(
|
|
1139
|
+
const t = new Request(G.origin, {
|
|
1140
1140
|
body: new ReadableStream(),
|
|
1141
1141
|
method: "POST",
|
|
1142
1142
|
get duplex() {
|
|
@@ -1144,124 +1144,124 @@ const vt = (e) => {
|
|
|
1144
1144
|
}
|
|
1145
1145
|
}).headers.has("Content-Type");
|
|
1146
1146
|
return e && !t;
|
|
1147
|
-
}),
|
|
1148
|
-
stream:
|
|
1147
|
+
}), Tt = 64 * 1024, st = ln && cn(() => l.isReadableStream(new Response("").body)), Ie = {
|
|
1148
|
+
stream: st && ((e) => e.body)
|
|
1149
1149
|
};
|
|
1150
|
-
|
|
1150
|
+
qe && ((e) => {
|
|
1151
1151
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1152
|
-
!
|
|
1153
|
-
throw new
|
|
1152
|
+
!Ie[t] && (Ie[t] = l.isFunction(e[t]) ? (n) => n[t]() : (n, o) => {
|
|
1153
|
+
throw new E(`Response type '${t}' is not supported`, E.ERR_NOT_SUPPORT, o);
|
|
1154
1154
|
});
|
|
1155
1155
|
});
|
|
1156
1156
|
})(new Response());
|
|
1157
|
-
const
|
|
1157
|
+
const nr = async (e) => {
|
|
1158
1158
|
if (e == null)
|
|
1159
1159
|
return 0;
|
|
1160
1160
|
if (l.isBlob(e))
|
|
1161
1161
|
return e.size;
|
|
1162
1162
|
if (l.isSpecCompliantForm(e))
|
|
1163
|
-
return (await new Request(
|
|
1163
|
+
return (await new Request(G.origin, {
|
|
1164
1164
|
method: "POST",
|
|
1165
1165
|
body: e
|
|
1166
1166
|
}).arrayBuffer()).byteLength;
|
|
1167
1167
|
if (l.isArrayBufferView(e) || l.isArrayBuffer(e))
|
|
1168
1168
|
return e.byteLength;
|
|
1169
1169
|
if (l.isURLSearchParams(e) && (e = e + ""), l.isString(e))
|
|
1170
|
-
return (await
|
|
1171
|
-
},
|
|
1170
|
+
return (await er(e)).byteLength;
|
|
1171
|
+
}, or = async (e, t) => {
|
|
1172
1172
|
const n = l.toFiniteNumber(e.getContentLength());
|
|
1173
|
-
return n ??
|
|
1174
|
-
},
|
|
1173
|
+
return n ?? nr(t);
|
|
1174
|
+
}, rr = qe && (async (e) => {
|
|
1175
1175
|
let {
|
|
1176
1176
|
url: t,
|
|
1177
1177
|
method: n,
|
|
1178
|
-
data:
|
|
1179
|
-
signal:
|
|
1180
|
-
cancelToken:
|
|
1181
|
-
timeout:
|
|
1178
|
+
data: o,
|
|
1179
|
+
signal: r,
|
|
1180
|
+
cancelToken: s,
|
|
1181
|
+
timeout: i,
|
|
1182
1182
|
onDownloadProgress: a,
|
|
1183
|
-
onUploadProgress:
|
|
1183
|
+
onUploadProgress: d,
|
|
1184
1184
|
responseType: c,
|
|
1185
1185
|
headers: u,
|
|
1186
|
-
withCredentials:
|
|
1187
|
-
fetchOptions:
|
|
1188
|
-
} =
|
|
1186
|
+
withCredentials: f = "same-origin",
|
|
1187
|
+
fetchOptions: b
|
|
1188
|
+
} = an(e);
|
|
1189
1189
|
c = c ? (c + "").toLowerCase() : "text";
|
|
1190
|
-
let
|
|
1191
|
-
const
|
|
1192
|
-
|
|
1190
|
+
let p = Yo([r, s && s.toAbortSignal()], i), m;
|
|
1191
|
+
const g = p && p.unsubscribe && (() => {
|
|
1192
|
+
p.unsubscribe();
|
|
1193
1193
|
});
|
|
1194
1194
|
let h;
|
|
1195
1195
|
try {
|
|
1196
|
-
if (
|
|
1197
|
-
let
|
|
1196
|
+
if (d && tr && n !== "get" && n !== "head" && (h = await or(u, o)) !== 0) {
|
|
1197
|
+
let I = new Request(t, {
|
|
1198
1198
|
method: "POST",
|
|
1199
|
-
body:
|
|
1199
|
+
body: o,
|
|
1200
1200
|
duplex: "half"
|
|
1201
|
-
}),
|
|
1202
|
-
if (l.isFormData(
|
|
1203
|
-
const [
|
|
1201
|
+
}), N;
|
|
1202
|
+
if (l.isFormData(o) && (N = I.headers.get("content-type")) && u.setContentType(N), I.body) {
|
|
1203
|
+
const [H, X] = Rt(
|
|
1204
1204
|
h,
|
|
1205
|
-
|
|
1205
|
+
Oe(xt(d))
|
|
1206
1206
|
);
|
|
1207
|
-
|
|
1207
|
+
o = Ct(I.body, Tt, H, X);
|
|
1208
1208
|
}
|
|
1209
1209
|
}
|
|
1210
|
-
l.isString(
|
|
1211
|
-
const
|
|
1212
|
-
|
|
1213
|
-
...
|
|
1214
|
-
signal:
|
|
1210
|
+
l.isString(f) || (f = f ? "include" : "omit");
|
|
1211
|
+
const R = "credentials" in Request.prototype;
|
|
1212
|
+
m = new Request(t, {
|
|
1213
|
+
...b,
|
|
1214
|
+
signal: p,
|
|
1215
1215
|
method: n.toUpperCase(),
|
|
1216
1216
|
headers: u.normalize().toJSON(),
|
|
1217
|
-
body:
|
|
1217
|
+
body: o,
|
|
1218
1218
|
duplex: "half",
|
|
1219
|
-
credentials:
|
|
1219
|
+
credentials: R ? f : void 0
|
|
1220
1220
|
});
|
|
1221
|
-
let
|
|
1222
|
-
const
|
|
1223
|
-
if (
|
|
1224
|
-
const
|
|
1225
|
-
["status", "statusText", "headers"].forEach((
|
|
1226
|
-
|
|
1221
|
+
let k = await fetch(m);
|
|
1222
|
+
const y = st && (c === "stream" || c === "response");
|
|
1223
|
+
if (st && (a || y && g)) {
|
|
1224
|
+
const I = {};
|
|
1225
|
+
["status", "statusText", "headers"].forEach((K) => {
|
|
1226
|
+
I[K] = k[K];
|
|
1227
1227
|
});
|
|
1228
|
-
const
|
|
1229
|
-
|
|
1230
|
-
|
|
1228
|
+
const N = l.toFiniteNumber(k.headers.get("content-length")), [H, X] = a && Rt(
|
|
1229
|
+
N,
|
|
1230
|
+
Oe(xt(a), !0)
|
|
1231
1231
|
) || [];
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1232
|
+
k = new Response(
|
|
1233
|
+
Ct(k.body, Tt, H, () => {
|
|
1234
|
+
X && X(), g && g();
|
|
1235
1235
|
}),
|
|
1236
|
-
|
|
1236
|
+
I
|
|
1237
1237
|
);
|
|
1238
1238
|
}
|
|
1239
1239
|
c = c || "text";
|
|
1240
|
-
let
|
|
1241
|
-
return !
|
|
1242
|
-
|
|
1243
|
-
data:
|
|
1244
|
-
headers:
|
|
1245
|
-
status:
|
|
1246
|
-
statusText:
|
|
1240
|
+
let O = await Ie[l.findKey(Ie, c) || "text"](k, e);
|
|
1241
|
+
return !y && g && g(), await new Promise((I, N) => {
|
|
1242
|
+
rn(I, N, {
|
|
1243
|
+
data: O,
|
|
1244
|
+
headers: W.from(k.headers),
|
|
1245
|
+
status: k.status,
|
|
1246
|
+
statusText: k.statusText,
|
|
1247
1247
|
config: e,
|
|
1248
|
-
request:
|
|
1248
|
+
request: m
|
|
1249
1249
|
});
|
|
1250
1250
|
});
|
|
1251
|
-
} catch (
|
|
1252
|
-
throw
|
|
1253
|
-
new
|
|
1251
|
+
} catch (R) {
|
|
1252
|
+
throw g && g(), R && R.name === "TypeError" && /fetch/i.test(R.message) ? Object.assign(
|
|
1253
|
+
new E("Network Error", E.ERR_NETWORK, e, m),
|
|
1254
1254
|
{
|
|
1255
|
-
cause:
|
|
1255
|
+
cause: R.cause || R
|
|
1256
1256
|
}
|
|
1257
|
-
) :
|
|
1257
|
+
) : E.from(R, R && R.code, e, m);
|
|
1258
1258
|
}
|
|
1259
|
-
}),
|
|
1260
|
-
http:
|
|
1261
|
-
xhr:
|
|
1262
|
-
fetch:
|
|
1259
|
+
}), it = {
|
|
1260
|
+
http: vo,
|
|
1261
|
+
xhr: Zo,
|
|
1262
|
+
fetch: rr
|
|
1263
1263
|
};
|
|
1264
|
-
l.forEach(
|
|
1264
|
+
l.forEach(it, (e, t) => {
|
|
1265
1265
|
if (e) {
|
|
1266
1266
|
try {
|
|
1267
1267
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1270,113 +1270,113 @@ l.forEach(Oe, (e, t) => {
|
|
|
1270
1270
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1271
1271
|
}
|
|
1272
1272
|
});
|
|
1273
|
-
const
|
|
1273
|
+
const kt = (e) => `- ${e}`, sr = (e) => l.isFunction(e) || e === null || e === !1, un = {
|
|
1274
1274
|
getAdapter: (e) => {
|
|
1275
1275
|
e = l.isArray(e) ? e : [e];
|
|
1276
1276
|
const { length: t } = e;
|
|
1277
|
-
let n,
|
|
1278
|
-
const
|
|
1279
|
-
for (let
|
|
1280
|
-
n = e[
|
|
1281
|
-
let
|
|
1282
|
-
if (
|
|
1283
|
-
throw new
|
|
1284
|
-
if (
|
|
1277
|
+
let n, o;
|
|
1278
|
+
const r = {};
|
|
1279
|
+
for (let s = 0; s < t; s++) {
|
|
1280
|
+
n = e[s];
|
|
1281
|
+
let i;
|
|
1282
|
+
if (o = n, !sr(n) && (o = it[(i = String(n)).toLowerCase()], o === void 0))
|
|
1283
|
+
throw new E(`Unknown adapter '${i}'`);
|
|
1284
|
+
if (o)
|
|
1285
1285
|
break;
|
|
1286
|
-
|
|
1286
|
+
r[i || "#" + s] = o;
|
|
1287
1287
|
}
|
|
1288
|
-
if (!
|
|
1289
|
-
const
|
|
1290
|
-
([a,
|
|
1288
|
+
if (!o) {
|
|
1289
|
+
const s = Object.entries(r).map(
|
|
1290
|
+
([a, d]) => `adapter ${a} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1291
1291
|
);
|
|
1292
|
-
let
|
|
1293
|
-
` +
|
|
1294
|
-
`) : " " +
|
|
1295
|
-
throw new
|
|
1296
|
-
"There is no suitable adapter to dispatch the request " +
|
|
1292
|
+
let i = t ? s.length > 1 ? `since :
|
|
1293
|
+
` + s.map(kt).join(`
|
|
1294
|
+
`) : " " + kt(s[0]) : "as no adapter specified";
|
|
1295
|
+
throw new E(
|
|
1296
|
+
"There is no suitable adapter to dispatch the request " + i,
|
|
1297
1297
|
"ERR_NOT_SUPPORT"
|
|
1298
1298
|
);
|
|
1299
1299
|
}
|
|
1300
|
-
return
|
|
1300
|
+
return o;
|
|
1301
1301
|
},
|
|
1302
|
-
adapters:
|
|
1302
|
+
adapters: it
|
|
1303
1303
|
};
|
|
1304
|
-
function
|
|
1304
|
+
function Je(e) {
|
|
1305
1305
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1306
|
-
throw new
|
|
1306
|
+
throw new ye(null, e);
|
|
1307
1307
|
}
|
|
1308
|
-
function
|
|
1309
|
-
return
|
|
1308
|
+
function Dt(e) {
|
|
1309
|
+
return Je(e), e.headers = W.from(e.headers), e.data = We.call(
|
|
1310
1310
|
e,
|
|
1311
1311
|
e.transformRequest
|
|
1312
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1313
|
-
return
|
|
1312
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), un.getAdapter(e.adapter || Ce.adapter)(e).then(function(o) {
|
|
1313
|
+
return Je(e), o.data = We.call(
|
|
1314
1314
|
e,
|
|
1315
1315
|
e.transformResponse,
|
|
1316
|
-
|
|
1317
|
-
),
|
|
1318
|
-
}, function(
|
|
1319
|
-
return
|
|
1316
|
+
o
|
|
1317
|
+
), o.headers = W.from(o.headers), o;
|
|
1318
|
+
}, function(o) {
|
|
1319
|
+
return on(o) || (Je(e), o && o.response && (o.response.data = We.call(
|
|
1320
1320
|
e,
|
|
1321
1321
|
e.transformResponse,
|
|
1322
|
-
|
|
1323
|
-
),
|
|
1322
|
+
o.response
|
|
1323
|
+
), o.response.headers = W.from(o.response.headers))), Promise.reject(o);
|
|
1324
1324
|
});
|
|
1325
1325
|
}
|
|
1326
|
-
const
|
|
1326
|
+
const dn = "1.8.4", ze = {};
|
|
1327
1327
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1328
|
-
|
|
1329
|
-
return typeof
|
|
1328
|
+
ze[e] = function(o) {
|
|
1329
|
+
return typeof o === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1330
1330
|
};
|
|
1331
1331
|
});
|
|
1332
|
-
const
|
|
1333
|
-
|
|
1334
|
-
function s
|
|
1335
|
-
return "[Axios v" +
|
|
1332
|
+
const Ot = {};
|
|
1333
|
+
ze.transitional = function(t, n, o) {
|
|
1334
|
+
function r(s, i) {
|
|
1335
|
+
return "[Axios v" + dn + "] Transitional option '" + s + "'" + i + (o ? ". " + o : "");
|
|
1336
1336
|
}
|
|
1337
|
-
return (
|
|
1337
|
+
return (s, i, a) => {
|
|
1338
1338
|
if (t === !1)
|
|
1339
|
-
throw new
|
|
1340
|
-
|
|
1341
|
-
|
|
1339
|
+
throw new E(
|
|
1340
|
+
r(i, " has been removed" + (n ? " in " + n : "")),
|
|
1341
|
+
E.ERR_DEPRECATED
|
|
1342
1342
|
);
|
|
1343
|
-
return n && !
|
|
1344
|
-
|
|
1345
|
-
|
|
1343
|
+
return n && !Ot[i] && (Ot[i] = !0, console.warn(
|
|
1344
|
+
r(
|
|
1345
|
+
i,
|
|
1346
1346
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1347
1347
|
)
|
|
1348
|
-
)), t ? t(
|
|
1348
|
+
)), t ? t(s, i, a) : !0;
|
|
1349
1349
|
};
|
|
1350
1350
|
};
|
|
1351
|
-
|
|
1352
|
-
return (n,
|
|
1351
|
+
ze.spelling = function(t) {
|
|
1352
|
+
return (n, o) => (console.warn(`${o} is likely a misspelling of ${t}`), !0);
|
|
1353
1353
|
};
|
|
1354
|
-
function
|
|
1354
|
+
function ir(e, t, n) {
|
|
1355
1355
|
if (typeof e != "object")
|
|
1356
|
-
throw new
|
|
1357
|
-
const
|
|
1358
|
-
let
|
|
1359
|
-
for (;
|
|
1360
|
-
const
|
|
1361
|
-
if (
|
|
1362
|
-
const a = e[
|
|
1363
|
-
if (
|
|
1364
|
-
throw new
|
|
1356
|
+
throw new E("options must be an object", E.ERR_BAD_OPTION_VALUE);
|
|
1357
|
+
const o = Object.keys(e);
|
|
1358
|
+
let r = o.length;
|
|
1359
|
+
for (; r-- > 0; ) {
|
|
1360
|
+
const s = o[r], i = t[s];
|
|
1361
|
+
if (i) {
|
|
1362
|
+
const a = e[s], d = a === void 0 || i(a, s, e);
|
|
1363
|
+
if (d !== !0)
|
|
1364
|
+
throw new E("option " + s + " must be " + d, E.ERR_BAD_OPTION_VALUE);
|
|
1365
1365
|
continue;
|
|
1366
1366
|
}
|
|
1367
1367
|
if (n !== !0)
|
|
1368
|
-
throw new
|
|
1368
|
+
throw new E("Unknown option " + s, E.ERR_BAD_OPTION);
|
|
1369
1369
|
}
|
|
1370
1370
|
}
|
|
1371
|
-
const
|
|
1372
|
-
assertOptions:
|
|
1373
|
-
validators:
|
|
1374
|
-
},
|
|
1375
|
-
let
|
|
1371
|
+
const De = {
|
|
1372
|
+
assertOptions: ir,
|
|
1373
|
+
validators: ze
|
|
1374
|
+
}, ee = De.validators;
|
|
1375
|
+
let de = class {
|
|
1376
1376
|
constructor(t) {
|
|
1377
1377
|
this.defaults = t, this.interceptors = {
|
|
1378
|
-
request: new
|
|
1379
|
-
response: new
|
|
1378
|
+
request: new Et(),
|
|
1379
|
+
response: new Et()
|
|
1380
1380
|
};
|
|
1381
1381
|
}
|
|
1382
1382
|
/**
|
|
@@ -1390,137 +1390,137 @@ let Q = class {
|
|
|
1390
1390
|
async request(t, n) {
|
|
1391
1391
|
try {
|
|
1392
1392
|
return await this._request(t, n);
|
|
1393
|
-
} catch (
|
|
1394
|
-
if (
|
|
1395
|
-
let
|
|
1396
|
-
Error.captureStackTrace ? Error.captureStackTrace(
|
|
1397
|
-
const
|
|
1393
|
+
} catch (o) {
|
|
1394
|
+
if (o instanceof Error) {
|
|
1395
|
+
let r = {};
|
|
1396
|
+
Error.captureStackTrace ? Error.captureStackTrace(r) : r = new Error();
|
|
1397
|
+
const s = r.stack ? r.stack.replace(/^.+\n/, "") : "";
|
|
1398
1398
|
try {
|
|
1399
|
-
|
|
1400
|
-
` +
|
|
1399
|
+
o.stack ? s && !String(o.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (o.stack += `
|
|
1400
|
+
` + s) : o.stack = s;
|
|
1401
1401
|
} catch {
|
|
1402
1402
|
}
|
|
1403
1403
|
}
|
|
1404
|
-
throw
|
|
1404
|
+
throw o;
|
|
1405
1405
|
}
|
|
1406
1406
|
}
|
|
1407
1407
|
_request(t, n) {
|
|
1408
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
1409
|
-
const { transitional:
|
|
1410
|
-
|
|
1411
|
-
silentJSONParsing:
|
|
1412
|
-
forcedJSONParsing:
|
|
1413
|
-
clarifyTimeoutError:
|
|
1414
|
-
}, !1),
|
|
1415
|
-
serialize:
|
|
1416
|
-
} :
|
|
1417
|
-
encode:
|
|
1418
|
-
serialize:
|
|
1419
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
1420
|
-
baseUrl:
|
|
1421
|
-
withXsrfToken:
|
|
1408
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = he(this.defaults, n);
|
|
1409
|
+
const { transitional: o, paramsSerializer: r, headers: s } = n;
|
|
1410
|
+
o !== void 0 && De.assertOptions(o, {
|
|
1411
|
+
silentJSONParsing: ee.transitional(ee.boolean),
|
|
1412
|
+
forcedJSONParsing: ee.transitional(ee.boolean),
|
|
1413
|
+
clarifyTimeoutError: ee.transitional(ee.boolean)
|
|
1414
|
+
}, !1), r != null && (l.isFunction(r) ? n.paramsSerializer = {
|
|
1415
|
+
serialize: r
|
|
1416
|
+
} : De.assertOptions(r, {
|
|
1417
|
+
encode: ee.function,
|
|
1418
|
+
serialize: ee.function
|
|
1419
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), De.assertOptions(n, {
|
|
1420
|
+
baseUrl: ee.spelling("baseURL"),
|
|
1421
|
+
withXsrfToken: ee.spelling("withXSRFToken")
|
|
1422
1422
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1423
|
-
let
|
|
1424
|
-
|
|
1425
|
-
|
|
1423
|
+
let i = s && l.merge(
|
|
1424
|
+
s.common,
|
|
1425
|
+
s[n.method]
|
|
1426
1426
|
);
|
|
1427
|
-
|
|
1427
|
+
s && l.forEach(
|
|
1428
1428
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1429
|
-
(
|
|
1430
|
-
delete
|
|
1429
|
+
(m) => {
|
|
1430
|
+
delete s[m];
|
|
1431
1431
|
}
|
|
1432
|
-
), n.headers =
|
|
1432
|
+
), n.headers = W.concat(i, s);
|
|
1433
1433
|
const a = [];
|
|
1434
|
-
let
|
|
1435
|
-
this.interceptors.request.forEach(function(
|
|
1436
|
-
typeof
|
|
1434
|
+
let d = !0;
|
|
1435
|
+
this.interceptors.request.forEach(function(g) {
|
|
1436
|
+
typeof g.runWhen == "function" && g.runWhen(n) === !1 || (d = d && g.synchronous, a.unshift(g.fulfilled, g.rejected));
|
|
1437
1437
|
});
|
|
1438
1438
|
const c = [];
|
|
1439
|
-
this.interceptors.response.forEach(function(
|
|
1440
|
-
c.push(
|
|
1439
|
+
this.interceptors.response.forEach(function(g) {
|
|
1440
|
+
c.push(g.fulfilled, g.rejected);
|
|
1441
1441
|
});
|
|
1442
|
-
let u,
|
|
1443
|
-
if (!
|
|
1444
|
-
const
|
|
1445
|
-
for (
|
|
1446
|
-
u = u.then(
|
|
1442
|
+
let u, f = 0, b;
|
|
1443
|
+
if (!d) {
|
|
1444
|
+
const m = [Dt.bind(this), void 0];
|
|
1445
|
+
for (m.unshift.apply(m, a), m.push.apply(m, c), b = m.length, u = Promise.resolve(n); f < b; )
|
|
1446
|
+
u = u.then(m[f++], m[f++]);
|
|
1447
1447
|
return u;
|
|
1448
1448
|
}
|
|
1449
|
-
|
|
1450
|
-
let
|
|
1451
|
-
for (
|
|
1452
|
-
const
|
|
1449
|
+
b = a.length;
|
|
1450
|
+
let p = n;
|
|
1451
|
+
for (f = 0; f < b; ) {
|
|
1452
|
+
const m = a[f++], g = a[f++];
|
|
1453
1453
|
try {
|
|
1454
|
-
|
|
1454
|
+
p = m(p);
|
|
1455
1455
|
} catch (h) {
|
|
1456
|
-
|
|
1456
|
+
g.call(this, h);
|
|
1457
1457
|
break;
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
1460
1460
|
try {
|
|
1461
|
-
u =
|
|
1462
|
-
} catch (
|
|
1463
|
-
return Promise.reject(
|
|
1461
|
+
u = Dt.call(this, p);
|
|
1462
|
+
} catch (m) {
|
|
1463
|
+
return Promise.reject(m);
|
|
1464
1464
|
}
|
|
1465
|
-
for (
|
|
1466
|
-
u = u.then(c[
|
|
1465
|
+
for (f = 0, b = c.length; f < b; )
|
|
1466
|
+
u = u.then(c[f++], c[f++]);
|
|
1467
1467
|
return u;
|
|
1468
1468
|
}
|
|
1469
1469
|
getUri(t) {
|
|
1470
|
-
t =
|
|
1471
|
-
const n =
|
|
1472
|
-
return
|
|
1470
|
+
t = he(this.defaults, t);
|
|
1471
|
+
const n = sn(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1472
|
+
return en(n, t.params, t.paramsSerializer);
|
|
1473
1473
|
}
|
|
1474
1474
|
};
|
|
1475
1475
|
l.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1476
|
-
|
|
1477
|
-
return this.request(
|
|
1476
|
+
de.prototype[t] = function(n, o) {
|
|
1477
|
+
return this.request(he(o || {}, {
|
|
1478
1478
|
method: t,
|
|
1479
1479
|
url: n,
|
|
1480
|
-
data: (
|
|
1480
|
+
data: (o || {}).data
|
|
1481
1481
|
}));
|
|
1482
1482
|
};
|
|
1483
1483
|
});
|
|
1484
1484
|
l.forEach(["post", "put", "patch"], function(t) {
|
|
1485
|
-
function n(
|
|
1486
|
-
return function(
|
|
1487
|
-
return this.request(
|
|
1485
|
+
function n(o) {
|
|
1486
|
+
return function(s, i, a) {
|
|
1487
|
+
return this.request(he(a || {}, {
|
|
1488
1488
|
method: t,
|
|
1489
|
-
headers:
|
|
1489
|
+
headers: o ? {
|
|
1490
1490
|
"Content-Type": "multipart/form-data"
|
|
1491
1491
|
} : {},
|
|
1492
|
-
url:
|
|
1493
|
-
data:
|
|
1492
|
+
url: s,
|
|
1493
|
+
data: i
|
|
1494
1494
|
}));
|
|
1495
1495
|
};
|
|
1496
1496
|
}
|
|
1497
|
-
|
|
1497
|
+
de.prototype[t] = n(), de.prototype[t + "Form"] = n(!0);
|
|
1498
1498
|
});
|
|
1499
|
-
let
|
|
1499
|
+
let ar = class fn {
|
|
1500
1500
|
constructor(t) {
|
|
1501
1501
|
if (typeof t != "function")
|
|
1502
1502
|
throw new TypeError("executor must be a function.");
|
|
1503
1503
|
let n;
|
|
1504
|
-
this.promise = new Promise(function(
|
|
1505
|
-
n =
|
|
1504
|
+
this.promise = new Promise(function(s) {
|
|
1505
|
+
n = s;
|
|
1506
1506
|
});
|
|
1507
|
-
const
|
|
1508
|
-
this.promise.then((
|
|
1509
|
-
if (!
|
|
1510
|
-
let
|
|
1511
|
-
for (;
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
}), this.promise.then = (
|
|
1515
|
-
let
|
|
1516
|
-
const
|
|
1517
|
-
|
|
1518
|
-
}).then(
|
|
1519
|
-
return
|
|
1520
|
-
|
|
1521
|
-
},
|
|
1522
|
-
}, t(function(
|
|
1523
|
-
|
|
1507
|
+
const o = this;
|
|
1508
|
+
this.promise.then((r) => {
|
|
1509
|
+
if (!o._listeners) return;
|
|
1510
|
+
let s = o._listeners.length;
|
|
1511
|
+
for (; s-- > 0; )
|
|
1512
|
+
o._listeners[s](r);
|
|
1513
|
+
o._listeners = null;
|
|
1514
|
+
}), this.promise.then = (r) => {
|
|
1515
|
+
let s;
|
|
1516
|
+
const i = new Promise((a) => {
|
|
1517
|
+
o.subscribe(a), s = a;
|
|
1518
|
+
}).then(r);
|
|
1519
|
+
return i.cancel = function() {
|
|
1520
|
+
o.unsubscribe(s);
|
|
1521
|
+
}, i;
|
|
1522
|
+
}, t(function(s, i, a) {
|
|
1523
|
+
o.reason || (o.reason = new ye(s, i, a), n(o.reason));
|
|
1524
1524
|
});
|
|
1525
1525
|
}
|
|
1526
1526
|
/**
|
|
@@ -1550,8 +1550,8 @@ let Sr = class xt {
|
|
|
1550
1550
|
n !== -1 && this._listeners.splice(n, 1);
|
|
1551
1551
|
}
|
|
1552
1552
|
toAbortSignal() {
|
|
1553
|
-
const t = new AbortController(), n = (
|
|
1554
|
-
t.abort(
|
|
1553
|
+
const t = new AbortController(), n = (o) => {
|
|
1554
|
+
t.abort(o);
|
|
1555
1555
|
};
|
|
1556
1556
|
return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
|
|
1557
1557
|
}
|
|
@@ -1562,22 +1562,22 @@ let Sr = class xt {
|
|
|
1562
1562
|
static source() {
|
|
1563
1563
|
let t;
|
|
1564
1564
|
return {
|
|
1565
|
-
token: new
|
|
1566
|
-
t =
|
|
1565
|
+
token: new fn(function(r) {
|
|
1566
|
+
t = r;
|
|
1567
1567
|
}),
|
|
1568
1568
|
cancel: t
|
|
1569
1569
|
};
|
|
1570
1570
|
}
|
|
1571
1571
|
};
|
|
1572
|
-
function
|
|
1572
|
+
function lr(e) {
|
|
1573
1573
|
return function(n) {
|
|
1574
1574
|
return e.apply(null, n);
|
|
1575
1575
|
};
|
|
1576
1576
|
}
|
|
1577
|
-
function
|
|
1577
|
+
function cr(e) {
|
|
1578
1578
|
return l.isObject(e) && e.isAxiosError === !0;
|
|
1579
1579
|
}
|
|
1580
|
-
const
|
|
1580
|
+
const at = {
|
|
1581
1581
|
Continue: 100,
|
|
1582
1582
|
SwitchingProtocols: 101,
|
|
1583
1583
|
Processing: 102,
|
|
@@ -1642,121 +1642,121 @@ const xe = {
|
|
|
1642
1642
|
NotExtended: 510,
|
|
1643
1643
|
NetworkAuthenticationRequired: 511
|
|
1644
1644
|
};
|
|
1645
|
-
Object.entries(
|
|
1646
|
-
|
|
1645
|
+
Object.entries(at).forEach(([e, t]) => {
|
|
1646
|
+
at[t] = e;
|
|
1647
1647
|
});
|
|
1648
|
-
function
|
|
1649
|
-
const t = new
|
|
1650
|
-
return l.extend(n,
|
|
1651
|
-
return
|
|
1648
|
+
function pn(e) {
|
|
1649
|
+
const t = new de(e), n = Gt(de.prototype.request, t);
|
|
1650
|
+
return l.extend(n, de.prototype, t, { allOwnKeys: !0 }), l.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
|
|
1651
|
+
return pn(he(e, r));
|
|
1652
1652
|
}, n;
|
|
1653
1653
|
}
|
|
1654
|
-
const
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1654
|
+
const F = pn(Ce);
|
|
1655
|
+
F.Axios = de;
|
|
1656
|
+
F.CanceledError = ye;
|
|
1657
|
+
F.CancelToken = ar;
|
|
1658
|
+
F.isCancel = on;
|
|
1659
|
+
F.VERSION = dn;
|
|
1660
|
+
F.toFormData = je;
|
|
1661
|
+
F.AxiosError = E;
|
|
1662
|
+
F.Cancel = F.CanceledError;
|
|
1663
|
+
F.all = function(t) {
|
|
1664
1664
|
return Promise.all(t);
|
|
1665
1665
|
};
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1666
|
+
F.spread = lr;
|
|
1667
|
+
F.isAxiosError = cr;
|
|
1668
|
+
F.mergeConfig = he;
|
|
1669
|
+
F.AxiosHeaders = W;
|
|
1670
|
+
F.formToJSON = (e) => nn(l.isHTMLForm(e) ? new FormData(e) : e);
|
|
1671
|
+
F.getAdapter = un.getAdapter;
|
|
1672
|
+
F.HttpStatusCode = at;
|
|
1673
|
+
F.default = F;
|
|
1674
1674
|
const {
|
|
1675
|
-
Axios:
|
|
1676
|
-
AxiosError:
|
|
1677
|
-
CanceledError:
|
|
1678
|
-
isCancel:
|
|
1679
|
-
CancelToken:
|
|
1680
|
-
VERSION:
|
|
1681
|
-
all:
|
|
1682
|
-
Cancel:
|
|
1683
|
-
isAxiosError:
|
|
1684
|
-
spread:
|
|
1685
|
-
toFormData:
|
|
1686
|
-
AxiosHeaders:
|
|
1687
|
-
HttpStatusCode:
|
|
1688
|
-
formToJSON:
|
|
1689
|
-
getAdapter:
|
|
1690
|
-
mergeConfig:
|
|
1691
|
-
} = S, Tr = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFIGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpu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bYVeNkvnKzMPeuYamVbX1fMfnePb+x2owCmGDRwWVYJAxINUJ2holLTDWAtj2QXesED7r0+uomOFzvYnbY3LDMrIMltw1JtcbavbYrx4vCyMLNcIMG+mEc0AuLkByjlkvDzwn42YIxghm/M2DsoMcYQmNQyIugi6YynMWy3OXwgBPLdbvTA7YmFhqcLFNtd0Mpfr8Hj/tdq4FN9xWkHmkvz7RDl7yP/1CdqGW83dgwWE/FPzZO2E9Bazl5kR3dMj9yBr21Fctofh9/X/vIiNS6jvqMGI7jQMWpC436CFQBqFAFoEIVgIpTEv8PTBPiNKVw25gAAAAASUVORK5CYII=";
|
|
1692
|
-
function
|
|
1675
|
+
Axios: Hi,
|
|
1676
|
+
AxiosError: Gi,
|
|
1677
|
+
CanceledError: Vi,
|
|
1678
|
+
isCancel: _i,
|
|
1679
|
+
CancelToken: Wi,
|
|
1680
|
+
VERSION: Ji,
|
|
1681
|
+
all: Qi,
|
|
1682
|
+
Cancel: Zi,
|
|
1683
|
+
isAxiosError: Yi,
|
|
1684
|
+
spread: Xi,
|
|
1685
|
+
toFormData: $i,
|
|
1686
|
+
AxiosHeaders: Ki,
|
|
1687
|
+
HttpStatusCode: ea,
|
|
1688
|
+
formToJSON: ta,
|
|
1689
|
+
getAdapter: na,
|
|
1690
|
+
mergeConfig: oa
|
|
1691
|
+
} = F;
|
|
1692
|
+
function ur(e) {
|
|
1693
1693
|
return e == null ? !0 : typeof e == "string" || Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1;
|
|
1694
1694
|
}
|
|
1695
|
-
function
|
|
1695
|
+
function It(e) {
|
|
1696
1696
|
return e !== null && typeof e == "object" && !Array.isArray(e);
|
|
1697
1697
|
}
|
|
1698
|
-
function
|
|
1698
|
+
function hn(e = {}, t = {}) {
|
|
1699
1699
|
const n = {};
|
|
1700
|
-
for (const
|
|
1701
|
-
n[
|
|
1702
|
-
for (const
|
|
1703
|
-
const
|
|
1704
|
-
if (
|
|
1705
|
-
n[
|
|
1706
|
-
|
|
1707
|
-
|
|
1700
|
+
for (const o in e)
|
|
1701
|
+
n[o] = e[o];
|
|
1702
|
+
for (const o in t) {
|
|
1703
|
+
const r = e[o], s = t[o];
|
|
1704
|
+
if (It(r) && It(s)) {
|
|
1705
|
+
n[o] = hn(
|
|
1706
|
+
r,
|
|
1707
|
+
s
|
|
1708
1708
|
);
|
|
1709
1709
|
continue;
|
|
1710
1710
|
}
|
|
1711
|
-
n[
|
|
1711
|
+
n[o] = s;
|
|
1712
1712
|
}
|
|
1713
1713
|
return n;
|
|
1714
1714
|
}
|
|
1715
|
-
const
|
|
1716
|
-
function
|
|
1715
|
+
const dr = "q-defaults";
|
|
1716
|
+
function fr() {
|
|
1717
1717
|
var e, t;
|
|
1718
|
-
const n =
|
|
1718
|
+
const n = lt();
|
|
1719
1719
|
if (!n)
|
|
1720
1720
|
throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
|
|
1721
|
-
const
|
|
1722
|
-
if (!
|
|
1723
|
-
const
|
|
1724
|
-
return
|
|
1721
|
+
const o = n.type.name ?? n.type.__name;
|
|
1722
|
+
if (!o) throw new Error("[Quidgest UI] Could not determine component name");
|
|
1723
|
+
const r = pr(), s = (e = r.value) == null ? void 0 : e.Global, i = (t = r.value) == null ? void 0 : t[o];
|
|
1724
|
+
return S(() => hn(s, i));
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1727
|
-
const e =
|
|
1726
|
+
function pr() {
|
|
1727
|
+
const e = Mt(dr, void 0);
|
|
1728
1728
|
if (!e) throw new Error("[Quidgest UI] Could not find defaults instance");
|
|
1729
1729
|
return e;
|
|
1730
1730
|
}
|
|
1731
|
-
function
|
|
1731
|
+
function hr(e) {
|
|
1732
1732
|
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").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").trim().split(/\s+/);
|
|
1733
1733
|
}
|
|
1734
|
-
function
|
|
1735
|
-
return
|
|
1734
|
+
function mr(e) {
|
|
1735
|
+
return hr(e).join("-").toLowerCase();
|
|
1736
1736
|
}
|
|
1737
|
-
function
|
|
1737
|
+
function gr(e, t) {
|
|
1738
1738
|
var n;
|
|
1739
|
-
const
|
|
1740
|
-
return
|
|
1739
|
+
const o = mr(t);
|
|
1740
|
+
return o ? typeof ((n = e.props) == null ? void 0 : n[o]) < "u" : !1;
|
|
1741
1741
|
}
|
|
1742
|
-
function
|
|
1742
|
+
function J(e) {
|
|
1743
1743
|
const t = e, n = t.setup;
|
|
1744
|
-
return n && (t.setup = (
|
|
1745
|
-
const
|
|
1746
|
-
if (
|
|
1747
|
-
const
|
|
1748
|
-
if (
|
|
1749
|
-
const a = new Proxy(
|
|
1750
|
-
get(
|
|
1744
|
+
return n && (t.setup = (o, r) => {
|
|
1745
|
+
const s = fr();
|
|
1746
|
+
if (ur(s.value)) return n(o, r);
|
|
1747
|
+
const i = lt();
|
|
1748
|
+
if (i === null) return n(o, r);
|
|
1749
|
+
const a = new Proxy(o, {
|
|
1750
|
+
get(d, c) {
|
|
1751
1751
|
var u;
|
|
1752
|
-
const
|
|
1753
|
-
return typeof c == "string" && !
|
|
1752
|
+
const f = Reflect.get(d, c), b = (u = s.value) == null ? void 0 : u[c];
|
|
1753
|
+
return typeof c == "string" && !gr(i.vnode, c) ? b ?? f : f;
|
|
1754
1754
|
}
|
|
1755
1755
|
});
|
|
1756
|
-
return n(a,
|
|
1756
|
+
return n(a, r);
|
|
1757
1757
|
}), e;
|
|
1758
1758
|
}
|
|
1759
|
-
const
|
|
1759
|
+
const br = ["id"], yr = /* @__PURE__ */ q({
|
|
1760
1760
|
__name: "QSpinnerLoader",
|
|
1761
1761
|
props: {
|
|
1762
1762
|
id: {},
|
|
@@ -1764,19 +1764,19 @@ const Fr = ["id"], kr = /* @__PURE__ */ q({
|
|
|
1764
1764
|
size: { default: 48 }
|
|
1765
1765
|
},
|
|
1766
1766
|
setup(e) {
|
|
1767
|
-
const t = e, n =
|
|
1767
|
+
const t = e, n = S(() => ({
|
|
1768
1768
|
"font-size": t.size !== 48 ? `${t.size}px` : void 0
|
|
1769
1769
|
}));
|
|
1770
|
-
return (
|
|
1770
|
+
return (o, r) => (w(), C("div", {
|
|
1771
1771
|
id: t.id,
|
|
1772
|
-
class:
|
|
1773
|
-
style:
|
|
1774
|
-
}, null, 14,
|
|
1772
|
+
class: V(["q-spinner-loader", t.class]),
|
|
1773
|
+
style: Re(n.value)
|
|
1774
|
+
}, null, 14, br));
|
|
1775
1775
|
}
|
|
1776
|
-
}),
|
|
1776
|
+
}), vr = J(yr), wr = ["id", "disabled"], Ar = {
|
|
1777
1777
|
key: 0,
|
|
1778
1778
|
class: "q-btn__spinner"
|
|
1779
|
-
},
|
|
1779
|
+
}, Er = { class: "q-btn__content" }, Sr = /* @__PURE__ */ q({
|
|
1780
1780
|
__name: "QButton",
|
|
1781
1781
|
props: {
|
|
1782
1782
|
id: {},
|
|
@@ -1794,11 +1794,11 @@ const Fr = ["id"], kr = /* @__PURE__ */ q({
|
|
|
1794
1794
|
},
|
|
1795
1795
|
emits: ["click"],
|
|
1796
1796
|
setup(e, { emit: t }) {
|
|
1797
|
-
const n = e,
|
|
1798
|
-
function
|
|
1799
|
-
|
|
1797
|
+
const n = e, o = t, r = S(() => n.disabled || n.loading);
|
|
1798
|
+
function s(a) {
|
|
1799
|
+
r.value || o("click", a);
|
|
1800
1800
|
}
|
|
1801
|
-
const
|
|
1801
|
+
const i = S(() => {
|
|
1802
1802
|
const a = n.size !== "regular" ? `q-btn--${n.size}` : void 0;
|
|
1803
1803
|
return [
|
|
1804
1804
|
"q-btn",
|
|
@@ -1814,37 +1814,37 @@ const Fr = ["id"], kr = /* @__PURE__ */ q({
|
|
|
1814
1814
|
n.class
|
|
1815
1815
|
];
|
|
1816
1816
|
});
|
|
1817
|
-
return (a,
|
|
1817
|
+
return (a, d) => (w(), C("button", {
|
|
1818
1818
|
id: n.id,
|
|
1819
1819
|
type: "button",
|
|
1820
|
-
class:
|
|
1821
|
-
disabled:
|
|
1822
|
-
onClick:
|
|
1820
|
+
class: V(i.value),
|
|
1821
|
+
disabled: r.value,
|
|
1822
|
+
onClick: wn(s, ["stop", "prevent"])
|
|
1823
1823
|
}, [
|
|
1824
|
-
a.loading ? (
|
|
1825
|
-
|
|
1826
|
-
])) :
|
|
1827
|
-
|
|
1828
|
-
a.iconOnRight ? (
|
|
1829
|
-
|
|
1824
|
+
a.loading ? (w(), C("div", Ar, [
|
|
1825
|
+
P(A(vr), { size: 20 })
|
|
1826
|
+
])) : j("v-if", !0),
|
|
1827
|
+
T("span", Er, [
|
|
1828
|
+
a.iconOnRight ? (w(), C(
|
|
1829
|
+
fe,
|
|
1830
1830
|
{ key: 0 },
|
|
1831
1831
|
[
|
|
1832
|
-
|
|
1833
|
-
|
|
1832
|
+
gt(
|
|
1833
|
+
pe(n.label),
|
|
1834
1834
|
1
|
|
1835
1835
|
/* TEXT */
|
|
1836
1836
|
)
|
|
1837
1837
|
],
|
|
1838
1838
|
64
|
|
1839
1839
|
/* STABLE_FRAGMENT */
|
|
1840
|
-
)) :
|
|
1841
|
-
|
|
1842
|
-
a.iconOnRight ?
|
|
1843
|
-
|
|
1840
|
+
)) : j("v-if", !0),
|
|
1841
|
+
U(a.$slots, "default"),
|
|
1842
|
+
a.iconOnRight ? j("v-if", !0) : (w(), C(
|
|
1843
|
+
fe,
|
|
1844
1844
|
{ key: 1 },
|
|
1845
1845
|
[
|
|
1846
|
-
|
|
1847
|
-
|
|
1846
|
+
gt(
|
|
1847
|
+
pe(n.label),
|
|
1848
1848
|
1
|
|
1849
1849
|
/* TEXT */
|
|
1850
1850
|
)
|
|
@@ -1853,77 +1853,188 @@ const Fr = ["id"], kr = /* @__PURE__ */ q({
|
|
|
1853
1853
|
/* STABLE_FRAGMENT */
|
|
1854
1854
|
))
|
|
1855
1855
|
])
|
|
1856
|
-
], 10,
|
|
1856
|
+
], 10, wr));
|
|
1857
|
+
}
|
|
1858
|
+
}), te = J(Sr);
|
|
1859
|
+
function Rr(e, t = !1) {
|
|
1860
|
+
return t ? /^#[a-fA-F0-9]{6}$/.test(e) : /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(e);
|
|
1861
|
+
}
|
|
1862
|
+
function xr(e) {
|
|
1863
|
+
const t = e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
|
|
1864
|
+
if (t) {
|
|
1865
|
+
const n = parseInt(t[1], 10), o = parseInt(t[2], 10), r = parseInt(t[3], 10);
|
|
1866
|
+
return { r: n, g: o, b: r };
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1869
|
+
function Br(e) {
|
|
1870
|
+
if (Rr(e)) {
|
|
1871
|
+
e.length === 4 && (e = "#" + e[1] + e[1] + e[2] + e[2] + e[3] + e[3]);
|
|
1872
|
+
const t = parseInt(e.slice(1, 3), 16), n = parseInt(e.slice(3, 5), 16), o = parseInt(e.slice(5, 7), 16);
|
|
1873
|
+
return { r: t, g: n, b: o };
|
|
1874
|
+
} else {
|
|
1875
|
+
const t = xr(e);
|
|
1876
|
+
if (t) return t;
|
|
1877
|
+
}
|
|
1878
|
+
throw new Error("Invalid color format");
|
|
1879
|
+
}
|
|
1880
|
+
function Cr(e, t) {
|
|
1881
|
+
const n = mn(e), o = t / 100;
|
|
1882
|
+
return n.l = n.l - o * n.l, kr(n);
|
|
1883
|
+
}
|
|
1884
|
+
function Tr(e) {
|
|
1885
|
+
const t = e.r.toString(16).padStart(2, "0"), n = e.g.toString(16).padStart(2, "0"), o = e.b.toString(16).padStart(2, "0");
|
|
1886
|
+
return `#${t}${n}${o}`;
|
|
1887
|
+
}
|
|
1888
|
+
function mn(e) {
|
|
1889
|
+
const t = e.r / 255, n = e.g / 255, o = e.b / 255, r = Math.max(t, n, o), s = Math.min(t, n, o);
|
|
1890
|
+
let i = 0, a;
|
|
1891
|
+
const d = (r + s) / 2;
|
|
1892
|
+
if (r === s)
|
|
1893
|
+
i = a = 0;
|
|
1894
|
+
else {
|
|
1895
|
+
const c = r - s;
|
|
1896
|
+
switch (a = d > 0.5 ? c / (2 - r - s) : c / (r + s), r) {
|
|
1897
|
+
case t:
|
|
1898
|
+
i = (n - o) / c + (n < o ? 6 : 0);
|
|
1899
|
+
break;
|
|
1900
|
+
case n:
|
|
1901
|
+
i = (o - t) / c + 2;
|
|
1902
|
+
break;
|
|
1903
|
+
case o:
|
|
1904
|
+
i = (t - n) / c + 4;
|
|
1905
|
+
break;
|
|
1906
|
+
}
|
|
1907
|
+
i /= 6;
|
|
1857
1908
|
}
|
|
1858
|
-
|
|
1909
|
+
return {
|
|
1910
|
+
h: Math.round(i * 360),
|
|
1911
|
+
s: Math.round(a * 100),
|
|
1912
|
+
l: Math.round(d * 100)
|
|
1913
|
+
};
|
|
1914
|
+
}
|
|
1915
|
+
function kr(e) {
|
|
1916
|
+
const t = e.h / 360, n = e.s / 100, o = e.l / 100;
|
|
1917
|
+
let r, s, i;
|
|
1918
|
+
if (n === 0)
|
|
1919
|
+
r = s = i = o;
|
|
1920
|
+
else {
|
|
1921
|
+
const a = o < 0.5 ? o * (1 + n) : o + n - o * n, d = 2 * o - a;
|
|
1922
|
+
r = Qe(d, a, t + 1 / 3), s = Qe(d, a, t), i = Qe(d, a, t - 1 / 3);
|
|
1923
|
+
}
|
|
1924
|
+
return {
|
|
1925
|
+
r: Math.round(r * 255),
|
|
1926
|
+
g: Math.round(s * 255),
|
|
1927
|
+
b: Math.round(i * 255)
|
|
1928
|
+
};
|
|
1929
|
+
}
|
|
1930
|
+
function Qe(e, t, n) {
|
|
1931
|
+
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
1932
|
+
}
|
|
1933
|
+
function Dr(e) {
|
|
1934
|
+
return e > 50 ? "#000" : "#fff";
|
|
1935
|
+
}
|
|
1936
|
+
const Or = Symbol.for("q-theme");
|
|
1937
|
+
function gn() {
|
|
1938
|
+
const e = Mt(Or);
|
|
1939
|
+
if (!e)
|
|
1940
|
+
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
1941
|
+
return e;
|
|
1942
|
+
}
|
|
1943
|
+
function Ir(e, t) {
|
|
1944
|
+
const n = /* @__PURE__ */ new Set(["primary", "info", "success", "warning", "danger", "highlight"]), o = S(() => n.has(A(e) ?? "")), r = S(() => {
|
|
1945
|
+
const s = A(e);
|
|
1946
|
+
if (!s) return;
|
|
1947
|
+
let i = s;
|
|
1948
|
+
const a = gn();
|
|
1949
|
+
if (o.value) {
|
|
1950
|
+
const p = s;
|
|
1951
|
+
i = a.current.value.scheme[p] ?? s;
|
|
1952
|
+
}
|
|
1953
|
+
let d;
|
|
1954
|
+
try {
|
|
1955
|
+
if (d = Br(i), !d) return;
|
|
1956
|
+
} catch (p) {
|
|
1957
|
+
console.error("Failed to parse color:", p);
|
|
1958
|
+
return;
|
|
1959
|
+
}
|
|
1960
|
+
const c = mn(d), u = Dr(c.l), f = Tr(Cr(d, 25)), b = A(t);
|
|
1961
|
+
return {
|
|
1962
|
+
backgroundColor: i,
|
|
1963
|
+
color: b === "tonal" || b === "outlined" ? i : u,
|
|
1964
|
+
hoverColor: b === "tonal" || b === "outlined" ? u : void 0,
|
|
1965
|
+
hoverBackgroundColor: b !== "tonal" && b !== "outlined" ? f : void 0
|
|
1966
|
+
};
|
|
1967
|
+
});
|
|
1968
|
+
return { isUtilityColor: o, style: r };
|
|
1969
|
+
}
|
|
1970
|
+
const Nr = /* @__PURE__ */ q({
|
|
1859
1971
|
__name: "QIcon",
|
|
1860
1972
|
props: {
|
|
1861
1973
|
id: {},
|
|
1862
1974
|
class: {},
|
|
1863
1975
|
icon: {},
|
|
1976
|
+
type: { default: "svg" },
|
|
1864
1977
|
size: {},
|
|
1865
|
-
|
|
1978
|
+
color: {}
|
|
1866
1979
|
},
|
|
1867
1980
|
setup(e) {
|
|
1868
|
-
const t = e, n =
|
|
1981
|
+
const t = e, n = S(() => {
|
|
1869
1982
|
switch (t.type) {
|
|
1870
1983
|
case "svg":
|
|
1871
|
-
return
|
|
1984
|
+
return Vr;
|
|
1872
1985
|
case "font":
|
|
1873
|
-
return
|
|
1986
|
+
return Hr;
|
|
1874
1987
|
case "img":
|
|
1875
|
-
return
|
|
1988
|
+
return Gr;
|
|
1876
1989
|
default:
|
|
1877
1990
|
return;
|
|
1878
1991
|
}
|
|
1992
|
+
}), o = Ir(jt(t, "color"), "bold"), r = S(() => {
|
|
1993
|
+
var s;
|
|
1994
|
+
return {
|
|
1995
|
+
"font-size": t.size !== void 0 ? `${t.size}px` : void 0,
|
|
1996
|
+
color: t.color !== void 0 && t.color !== "primary" ? (s = o.style.value) == null ? void 0 : s.backgroundColor : void 0
|
|
1997
|
+
};
|
|
1879
1998
|
});
|
|
1880
|
-
return (
|
|
1999
|
+
return (s, i) => (w(), _(An(n.value), {
|
|
1881
2000
|
id: t.id,
|
|
1882
|
-
class:
|
|
2001
|
+
class: V(t.class),
|
|
1883
2002
|
icon: t.icon,
|
|
1884
|
-
|
|
1885
|
-
}, null, 8, ["id", "class", "icon", "
|
|
2003
|
+
style: Re(r.value)
|
|
2004
|
+
}, null, 8, ["id", "class", "icon", "style"]));
|
|
1886
2005
|
}
|
|
1887
|
-
}),
|
|
2006
|
+
}), Lr = ["id"], Ur = /* @__PURE__ */ q({
|
|
1888
2007
|
__name: "QIconFont",
|
|
1889
2008
|
props: {
|
|
1890
2009
|
id: {},
|
|
1891
2010
|
class: {},
|
|
1892
2011
|
icon: {},
|
|
1893
|
-
size: {},
|
|
1894
2012
|
library: { default: "" },
|
|
1895
2013
|
variant: {}
|
|
1896
2014
|
},
|
|
1897
2015
|
setup(e) {
|
|
1898
|
-
const t = e, n =
|
|
1899
|
-
|
|
1900
|
-
}));
|
|
1901
|
-
return (i, o) => (A(), T("i", {
|
|
2016
|
+
const t = e, n = S(() => t.variant ? `${t.library}-${t.variant}` : t.library), o = S(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon);
|
|
2017
|
+
return (r, s) => (w(), C("i", {
|
|
1902
2018
|
id: t.id,
|
|
1903
|
-
class:
|
|
1904
|
-
|
|
1905
|
-
}, null, 14, Mr));
|
|
2019
|
+
class: V(["q-icon", "q-icon__font", n.value, o.value, t.class])
|
|
2020
|
+
}, null, 10, Lr));
|
|
1906
2021
|
}
|
|
1907
|
-
}),
|
|
2022
|
+
}), Fr = ["id", "src"], Pr = /* @__PURE__ */ q({
|
|
1908
2023
|
__name: "QIconImg",
|
|
1909
2024
|
props: {
|
|
1910
2025
|
id: {},
|
|
1911
2026
|
class: {},
|
|
1912
|
-
icon: {}
|
|
1913
|
-
size: {}
|
|
2027
|
+
icon: {}
|
|
1914
2028
|
},
|
|
1915
2029
|
setup(e) {
|
|
1916
|
-
const t = e
|
|
1917
|
-
|
|
1918
|
-
}));
|
|
1919
|
-
return (r, s) => (A(), T("img", {
|
|
2030
|
+
const t = e;
|
|
2031
|
+
return (n, o) => (w(), C("img", {
|
|
1920
2032
|
id: t.id,
|
|
1921
2033
|
src: t.icon,
|
|
1922
|
-
class:
|
|
1923
|
-
|
|
1924
|
-
}, null, 14, Hr));
|
|
2034
|
+
class: V(["q-icon", "q-icon__img", t.class])
|
|
2035
|
+
}, null, 10, Fr));
|
|
1925
2036
|
}
|
|
1926
|
-
}),
|
|
2037
|
+
}), Se = {}, Mr = q({
|
|
1927
2038
|
name: "InlineSvg",
|
|
1928
2039
|
inheritAttrs: !1,
|
|
1929
2040
|
props: {
|
|
@@ -1987,14 +2098,14 @@ const Fr = ["id"], kr = /* @__PURE__ */ q({
|
|
|
1987
2098
|
methods: {
|
|
1988
2099
|
copySvgAttrs(e, t) {
|
|
1989
2100
|
const n = t.attributes;
|
|
1990
|
-
if (n) for (const
|
|
2101
|
+
if (n) for (const o of n) e[o.name] = o.value;
|
|
1991
2102
|
},
|
|
1992
2103
|
copyComponentAttrs(e, t) {
|
|
1993
|
-
for (const [n,
|
|
1994
|
-
|
|
2104
|
+
for (const [n, o] of Object.entries(t))
|
|
2105
|
+
o !== !1 && o !== null && o !== void 0 && (e[n] = o);
|
|
1995
2106
|
},
|
|
1996
2107
|
getSvgContent(e) {
|
|
1997
|
-
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)),
|
|
2108
|
+
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)), jr(e, this.title)), e);
|
|
1998
2109
|
},
|
|
1999
2110
|
/**
|
|
2000
2111
|
* Get svgElSource
|
|
@@ -2002,11 +2113,11 @@ const Fr = ["id"], kr = /* @__PURE__ */ q({
|
|
|
2002
2113
|
*/
|
|
2003
2114
|
async getSource(e) {
|
|
2004
2115
|
try {
|
|
2005
|
-
|
|
2006
|
-
const t = await
|
|
2116
|
+
Se[e] || (Se[e] = qr(this.download(e))), this.svgElSource && Se[e].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
|
|
2117
|
+
const t = await Se[e];
|
|
2007
2118
|
this.svgElSource = t, await this.$nextTick(), this.$emit("loaded", this.$el);
|
|
2008
2119
|
} catch (t) {
|
|
2009
|
-
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete
|
|
2120
|
+
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete Se[e], this.$emit("error", t);
|
|
2010
2121
|
}
|
|
2011
2122
|
},
|
|
2012
2123
|
/**
|
|
@@ -2017,88 +2128,103 @@ const Fr = ["id"], kr = /* @__PURE__ */ q({
|
|
|
2017
2128
|
async download(e) {
|
|
2018
2129
|
const t = await fetch(e);
|
|
2019
2130
|
if (!t.ok) throw new Error("Error loading SVG");
|
|
2020
|
-
const n = await t.text(),
|
|
2021
|
-
if (!
|
|
2022
|
-
return
|
|
2131
|
+
const n = await t.text(), o = new DOMParser().parseFromString(n, "text/xml").getElementsByTagName("svg")[0];
|
|
2132
|
+
if (!o) throw new Error("Loaded file is not a valid SVG");
|
|
2133
|
+
return o;
|
|
2023
2134
|
}
|
|
2024
2135
|
},
|
|
2025
2136
|
render() {
|
|
2026
2137
|
if (!this.svgElSource) return null;
|
|
2027
2138
|
const e = this.getSvgContent(this.svgElSource);
|
|
2028
|
-
if (!e) return
|
|
2139
|
+
if (!e) return bt("div", this.$attrs);
|
|
2029
2140
|
const t = {};
|
|
2030
|
-
return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, e), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = e.innerHTML,
|
|
2141
|
+
return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, e), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = e.innerHTML, bt("svg", t);
|
|
2031
2142
|
},
|
|
2032
2143
|
expose: []
|
|
2033
2144
|
});
|
|
2034
|
-
function
|
|
2145
|
+
function jr(e, t) {
|
|
2035
2146
|
const n = e.getElementsByTagName("title");
|
|
2036
2147
|
if (n.length)
|
|
2037
2148
|
n[0].textContent = t;
|
|
2038
2149
|
else {
|
|
2039
|
-
const
|
|
2040
|
-
|
|
2150
|
+
const o = document.createElementNS("http://www.w3.org/2000/svg", "title");
|
|
2151
|
+
o.textContent = t, e.insertBefore(o, e.firstChild);
|
|
2041
2152
|
}
|
|
2042
2153
|
}
|
|
2043
|
-
function
|
|
2154
|
+
function qr(e) {
|
|
2044
2155
|
if (e.getIsPending) return e;
|
|
2045
2156
|
let t = !0;
|
|
2046
2157
|
const n = e.then(
|
|
2047
|
-
(
|
|
2048
|
-
(
|
|
2049
|
-
throw t = !1,
|
|
2158
|
+
(o) => (t = !1, o),
|
|
2159
|
+
(o) => {
|
|
2160
|
+
throw t = !1, o;
|
|
2050
2161
|
}
|
|
2051
2162
|
);
|
|
2052
2163
|
return n.getIsPending = () => t, n;
|
|
2053
2164
|
}
|
|
2054
|
-
const
|
|
2165
|
+
const zr = /* @__PURE__ */ q({
|
|
2055
2166
|
__name: "QIconSvg",
|
|
2056
2167
|
props: {
|
|
2057
2168
|
id: {},
|
|
2058
2169
|
class: {},
|
|
2059
2170
|
icon: {},
|
|
2060
|
-
size: {},
|
|
2061
2171
|
bundle: { default: "" }
|
|
2062
2172
|
},
|
|
2063
2173
|
emits: ["loaded", "unloaded"],
|
|
2064
2174
|
setup(e, { emit: t }) {
|
|
2065
|
-
const n = e,
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
function i(a) {
|
|
2069
|
-
r("loaded", a);
|
|
2175
|
+
const n = e, o = t;
|
|
2176
|
+
function r(i) {
|
|
2177
|
+
o("loaded", i);
|
|
2070
2178
|
}
|
|
2071
|
-
function
|
|
2072
|
-
|
|
2179
|
+
function s() {
|
|
2180
|
+
o("unloaded");
|
|
2073
2181
|
}
|
|
2074
|
-
return (
|
|
2182
|
+
return (i, a) => (w(), _(A(Mr), {
|
|
2075
2183
|
id: n.id,
|
|
2076
|
-
class:
|
|
2184
|
+
class: V(["q-icon", "q-icon__svg", n.class]),
|
|
2077
2185
|
src: n.bundle,
|
|
2078
2186
|
symbol: n.icon,
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
}, null, 8, ["id", "class", "src", "symbol", "style"]));
|
|
2187
|
+
onLoaded: r,
|
|
2188
|
+
onUnloaded: s
|
|
2189
|
+
}, null, 8, ["id", "class", "src", "symbol"]));
|
|
2083
2190
|
}
|
|
2084
|
-
}),
|
|
2085
|
-
let
|
|
2086
|
-
function
|
|
2087
|
-
return
|
|
2191
|
+
}), se = J(Nr), Hr = J(Ur), Gr = J(Pr), Vr = J(zr);
|
|
2192
|
+
let _r = 0;
|
|
2193
|
+
function bn(e) {
|
|
2194
|
+
return A(e) || `uid-${++_r}`;
|
|
2088
2195
|
}
|
|
2089
|
-
const
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2196
|
+
const Wr = ["id"], Jr = ["for"], Qr = /* @__PURE__ */ q({
|
|
2197
|
+
inheritAttrs: !1,
|
|
2198
|
+
__name: "QLabel",
|
|
2199
|
+
props: {
|
|
2200
|
+
id: {},
|
|
2201
|
+
class: {},
|
|
2202
|
+
label: {},
|
|
2203
|
+
for: {}
|
|
2204
|
+
},
|
|
2205
|
+
setup(e) {
|
|
2206
|
+
const t = e;
|
|
2207
|
+
return (n, o) => (w(), C("div", {
|
|
2208
|
+
id: t.id,
|
|
2209
|
+
class: V(["q-label", t.class])
|
|
2210
|
+
}, [
|
|
2211
|
+
U(n.$slots, "prepend"),
|
|
2212
|
+
T("label", le({
|
|
2213
|
+
for: t.for
|
|
2214
|
+
}, n.$attrs), pe(t.label), 17, Jr),
|
|
2215
|
+
U(n.$slots, "append")
|
|
2216
|
+
], 10, Wr));
|
|
2217
|
+
}
|
|
2218
|
+
}), yn = J(Qr), Zr = ["id"], Yr = {
|
|
2093
2219
|
key: 0,
|
|
2094
2220
|
class: "q-field__prepend"
|
|
2095
|
-
},
|
|
2221
|
+
}, Xr = {
|
|
2096
2222
|
key: 1,
|
|
2097
2223
|
class: "q-field__append"
|
|
2098
|
-
},
|
|
2224
|
+
}, $r = {
|
|
2099
2225
|
key: 1,
|
|
2100
2226
|
class: "q-field__extras"
|
|
2101
|
-
},
|
|
2227
|
+
}, Kr = /* @__PURE__ */ q({
|
|
2102
2228
|
inheritAttrs: !1,
|
|
2103
2229
|
__name: "QField",
|
|
2104
2230
|
props: {
|
|
@@ -2109,159 +2235,957 @@ const es = ["id"], ts = {
|
|
|
2109
2235
|
size: { default: "medium" },
|
|
2110
2236
|
readonly: { type: Boolean },
|
|
2111
2237
|
disabled: { type: Boolean },
|
|
2112
|
-
required: { type: Boolean }
|
|
2238
|
+
required: { type: Boolean },
|
|
2239
|
+
invalid: { type: Boolean }
|
|
2113
2240
|
},
|
|
2114
2241
|
setup(e, { expose: t }) {
|
|
2115
|
-
const n = e,
|
|
2242
|
+
const n = e, o = M(null), r = S(() => n.required && !n.readonly && !n.disabled), s = S(() => [
|
|
2116
2243
|
"q-field",
|
|
2117
2244
|
`q-field--${n.size}`,
|
|
2118
2245
|
{
|
|
2119
2246
|
"q-field--readonly": n.readonly,
|
|
2120
2247
|
"q-field--disabled": n.disabled,
|
|
2121
|
-
"q-field--required":
|
|
2248
|
+
"q-field--required": r.value,
|
|
2249
|
+
"q-field--invalid": n.invalid
|
|
2122
2250
|
},
|
|
2123
2251
|
n.class
|
|
2124
2252
|
]);
|
|
2125
2253
|
return t({
|
|
2126
|
-
fieldRef:
|
|
2127
|
-
}), (
|
|
2254
|
+
fieldRef: o
|
|
2255
|
+
}), (i, a) => (w(), C("div", {
|
|
2128
2256
|
id: n.id,
|
|
2129
|
-
class:
|
|
2257
|
+
class: V(s.value)
|
|
2130
2258
|
}, [
|
|
2131
|
-
n.label ? (
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2259
|
+
n.label ? (w(), _(A(yn), {
|
|
2260
|
+
key: 0,
|
|
2261
|
+
class: "q-field__label",
|
|
2262
|
+
label: n.label,
|
|
2263
|
+
for: n.for
|
|
2264
|
+
}, {
|
|
2265
|
+
prepend: D(() => [
|
|
2266
|
+
U(i.$slots, "label.prepend")
|
|
2267
|
+
]),
|
|
2268
|
+
append: D(() => [
|
|
2269
|
+
U(i.$slots, "label.append")
|
|
2270
|
+
]),
|
|
2271
|
+
_: 3
|
|
2272
|
+
/* FORWARDED */
|
|
2273
|
+
}, 8, ["label", "for"])) : j("v-if", !0),
|
|
2274
|
+
U(i.$slots, "control", {}, () => [
|
|
2275
|
+
T(
|
|
2140
2276
|
"div",
|
|
2141
|
-
|
|
2277
|
+
le({
|
|
2142
2278
|
ref_key: "fieldRef",
|
|
2143
|
-
ref:
|
|
2279
|
+
ref: o,
|
|
2144
2280
|
class: "q-field__control"
|
|
2145
|
-
},
|
|
2281
|
+
}, i.$attrs),
|
|
2146
2282
|
[
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
])) :
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
])) :
|
|
2283
|
+
i.$slots.prepend ? (w(), C("div", Yr, [
|
|
2284
|
+
U(i.$slots, "prepend")
|
|
2285
|
+
])) : j("v-if", !0),
|
|
2286
|
+
U(i.$slots, "default"),
|
|
2287
|
+
i.$slots.append ? (w(), C("div", Xr, [
|
|
2288
|
+
U(i.$slots, "append")
|
|
2289
|
+
])) : j("v-if", !0)
|
|
2154
2290
|
],
|
|
2155
2291
|
16
|
|
2156
2292
|
/* FULL_PROPS */
|
|
2157
2293
|
)
|
|
2158
2294
|
]),
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
])) :
|
|
2162
|
-
], 10,
|
|
2163
|
-
}
|
|
2164
|
-
}),
|
|
2165
|
-
|
|
2295
|
+
i.$slots.extras ? (w(), C("div", $r, [
|
|
2296
|
+
U(i.$slots, "extras")
|
|
2297
|
+
])) : j("v-if", !0)
|
|
2298
|
+
], 10, Zr));
|
|
2299
|
+
}
|
|
2300
|
+
}), vn = J(Kr), es = {
|
|
2301
|
+
clearValue: "Clear value"
|
|
2302
|
+
}, ts = {
|
|
2303
|
+
clear: {
|
|
2304
|
+
icon: "close"
|
|
2305
|
+
}
|
|
2306
|
+
}, ns = /* @__PURE__ */ q({
|
|
2307
|
+
__name: "QClearButton",
|
|
2166
2308
|
props: {
|
|
2167
2309
|
id: {},
|
|
2168
|
-
class: {}
|
|
2310
|
+
class: {},
|
|
2311
|
+
icons: { default: () => ts },
|
|
2312
|
+
texts: { default: () => es }
|
|
2313
|
+
},
|
|
2314
|
+
emits: ["click"],
|
|
2315
|
+
setup(e, { emit: t }) {
|
|
2316
|
+
const n = e, o = t;
|
|
2317
|
+
function r(s) {
|
|
2318
|
+
o("click", s);
|
|
2319
|
+
}
|
|
2320
|
+
return (s, i) => (w(), _(A(te), {
|
|
2321
|
+
id: n.id,
|
|
2322
|
+
class: V(["q-clear-btn", n.class]),
|
|
2323
|
+
"aria-label": n.texts.clearValue,
|
|
2324
|
+
"b-style": "plain",
|
|
2325
|
+
borderless: "",
|
|
2326
|
+
tabindex: "-1",
|
|
2327
|
+
onClick: r
|
|
2328
|
+
}, {
|
|
2329
|
+
default: D(() => [
|
|
2330
|
+
P(
|
|
2331
|
+
A(se),
|
|
2332
|
+
Ke(et(n.icons.clear)),
|
|
2333
|
+
null,
|
|
2334
|
+
16
|
|
2335
|
+
/* FULL_PROPS */
|
|
2336
|
+
)
|
|
2337
|
+
]),
|
|
2338
|
+
_: 1
|
|
2339
|
+
/* STABLE */
|
|
2340
|
+
}, 8, ["id", "class", "aria-label"]));
|
|
2341
|
+
}
|
|
2342
|
+
}), os = J(ns), rs = ["id", "type", "required", "placeholder", "readonly", "disabled"], ss = /* @__PURE__ */ q({
|
|
2343
|
+
inheritAttrs: !1,
|
|
2344
|
+
__name: "QTextField",
|
|
2345
|
+
props: /* @__PURE__ */ ge({
|
|
2346
|
+
id: {},
|
|
2347
|
+
class: {},
|
|
2348
|
+
label: {},
|
|
2349
|
+
for: {},
|
|
2350
|
+
size: {},
|
|
2351
|
+
readonly: { type: Boolean },
|
|
2352
|
+
disabled: { type: Boolean },
|
|
2353
|
+
required: { type: Boolean },
|
|
2354
|
+
invalid: { type: Boolean },
|
|
2355
|
+
placeholder: {},
|
|
2356
|
+
clearable: { type: Boolean },
|
|
2357
|
+
type: { default: "text" },
|
|
2358
|
+
texts: {}
|
|
2359
|
+
}, {
|
|
2360
|
+
modelValue: {},
|
|
2361
|
+
modelModifiers: {}
|
|
2362
|
+
}),
|
|
2363
|
+
emits: /* @__PURE__ */ ge(["click:clear"], ["update:modelValue"]),
|
|
2364
|
+
setup(e, { expose: t, emit: n }) {
|
|
2365
|
+
const o = e, r = n, s = Le(e, "modelValue"), i = bn(o.id), a = M(null), d = M(null), c = S(
|
|
2366
|
+
() => o.readonly || o.disabled ? void 0 : o.placeholder
|
|
2367
|
+
), u = S(() => o.clearable && !o.readonly && !o.disabled), f = S(() => u.value && s.value);
|
|
2368
|
+
function b(p) {
|
|
2369
|
+
u.value && (s.value = "", r("click:clear", p));
|
|
2370
|
+
}
|
|
2371
|
+
return t({
|
|
2372
|
+
fieldRef: S(() => {
|
|
2373
|
+
var p;
|
|
2374
|
+
return (p = a.value) == null ? void 0 : p.fieldRef;
|
|
2375
|
+
}),
|
|
2376
|
+
inputRef: d
|
|
2377
|
+
}), (p, m) => (w(), _(A(vn), {
|
|
2378
|
+
ref_key: "fieldRef",
|
|
2379
|
+
ref: a,
|
|
2380
|
+
class: V(["q-text-field", o.class]),
|
|
2381
|
+
for: A(i),
|
|
2382
|
+
label: o.label,
|
|
2383
|
+
size: o.size,
|
|
2384
|
+
readonly: o.readonly,
|
|
2385
|
+
disabled: o.disabled,
|
|
2386
|
+
required: o.required,
|
|
2387
|
+
invalid: o.invalid
|
|
2388
|
+
}, qt({
|
|
2389
|
+
"label.prepend": D(() => [
|
|
2390
|
+
U(p.$slots, "label.prepend")
|
|
2391
|
+
]),
|
|
2392
|
+
"label.append": D(() => [
|
|
2393
|
+
U(p.$slots, "label.append")
|
|
2394
|
+
]),
|
|
2395
|
+
default: D(() => [
|
|
2396
|
+
zt(T("input", le({
|
|
2397
|
+
id: A(i),
|
|
2398
|
+
ref_key: "inputRef",
|
|
2399
|
+
ref: d,
|
|
2400
|
+
"onUpdate:modelValue": m[0] || (m[0] = (g) => s.value = g),
|
|
2401
|
+
class: "q-text-field__input",
|
|
2402
|
+
type: o.type,
|
|
2403
|
+
required: o.required,
|
|
2404
|
+
placeholder: c.value,
|
|
2405
|
+
readonly: o.readonly,
|
|
2406
|
+
disabled: o.disabled
|
|
2407
|
+
}, p.$attrs), null, 16, rs), [
|
|
2408
|
+
[En, s.value]
|
|
2409
|
+
])
|
|
2410
|
+
]),
|
|
2411
|
+
_: 2
|
|
2412
|
+
/* DYNAMIC */
|
|
2413
|
+
}, [
|
|
2414
|
+
p.$slots.prepend ? {
|
|
2415
|
+
name: "prepend",
|
|
2416
|
+
fn: D(() => [
|
|
2417
|
+
U(p.$slots, "prepend")
|
|
2418
|
+
]),
|
|
2419
|
+
key: "0"
|
|
2420
|
+
} : void 0,
|
|
2421
|
+
p.$slots.append || f.value ? {
|
|
2422
|
+
name: "append",
|
|
2423
|
+
fn: D(() => [
|
|
2424
|
+
U(p.$slots, "append"),
|
|
2425
|
+
f.value ? (w(), _(A(os), {
|
|
2426
|
+
key: 0,
|
|
2427
|
+
"data-testid": "q-text-field__clear-button",
|
|
2428
|
+
texts: o.texts,
|
|
2429
|
+
onClick: b
|
|
2430
|
+
}, null, 8, ["texts"])) : j("v-if", !0)
|
|
2431
|
+
]),
|
|
2432
|
+
key: "1"
|
|
2433
|
+
} : void 0,
|
|
2434
|
+
p.$slots.extras ? {
|
|
2435
|
+
name: "extras",
|
|
2436
|
+
fn: D(() => [
|
|
2437
|
+
U(p.$slots, "extras")
|
|
2438
|
+
]),
|
|
2439
|
+
key: "2"
|
|
2440
|
+
} : void 0
|
|
2441
|
+
]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required", "invalid"]));
|
|
2442
|
+
}
|
|
2443
|
+
}), is = J(ss), me = "data-scroll-locked", Ze = "right-scroll-bar-position", Ye = "width-before-scroll-bar", as = "with-scroll-bars-hidden", ls = "--removed-body-scroll-bar-size", cs = {
|
|
2444
|
+
left: 0,
|
|
2445
|
+
top: 0,
|
|
2446
|
+
right: 0,
|
|
2447
|
+
gap: 0
|
|
2448
|
+
}, Xe = (e) => parseInt(e || "", 10) || 0, us = (e) => {
|
|
2449
|
+
const t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], o = t[e === "padding" ? "paddingTop" : "marginTop"], r = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
2450
|
+
return [Xe(n), Xe(o), Xe(r)];
|
|
2451
|
+
}, ds = (e = "margin") => {
|
|
2452
|
+
if (typeof window > "u")
|
|
2453
|
+
return cs;
|
|
2454
|
+
const t = us(e), n = document.documentElement.clientWidth, o = window.innerWidth;
|
|
2455
|
+
return {
|
|
2456
|
+
left: t[0],
|
|
2457
|
+
top: t[1],
|
|
2458
|
+
right: t[2],
|
|
2459
|
+
gap: Math.max(0, o - n + t[2] - t[0])
|
|
2460
|
+
};
|
|
2461
|
+
};
|
|
2462
|
+
function fs() {
|
|
2463
|
+
return document ? document.createElement("style") : null;
|
|
2464
|
+
}
|
|
2465
|
+
function ps(e, t) {
|
|
2466
|
+
e.appendChild(document.createTextNode(t));
|
|
2467
|
+
}
|
|
2468
|
+
function hs(e) {
|
|
2469
|
+
(document.head || document.getElementsByTagName("head")[0]).appendChild(e);
|
|
2470
|
+
}
|
|
2471
|
+
const ms = () => {
|
|
2472
|
+
let e = 0, t = null;
|
|
2473
|
+
return {
|
|
2474
|
+
add: (n) => {
|
|
2475
|
+
e === 0 && (t = fs()) && (ps(t, n), hs(t)), e++;
|
|
2476
|
+
},
|
|
2477
|
+
remove: () => {
|
|
2478
|
+
var n;
|
|
2479
|
+
e--, !e && t && ((n = t.parentNode) == null || n.removeChild(t), t = null);
|
|
2480
|
+
}
|
|
2481
|
+
};
|
|
2482
|
+
}, gs = /* @__PURE__ */ q({
|
|
2483
|
+
__name: "QRemoveScrollBar",
|
|
2484
|
+
props: {
|
|
2485
|
+
noRelative: { type: Boolean },
|
|
2486
|
+
noImportant: { type: Boolean },
|
|
2487
|
+
gapMode: { default: "margin" }
|
|
2169
2488
|
},
|
|
2170
2489
|
setup(e) {
|
|
2171
|
-
const t = e
|
|
2172
|
-
|
|
2490
|
+
const t = e, n = ms(), o = () => {
|
|
2491
|
+
const s = parseInt(document.body.getAttribute(me) || "0", 10);
|
|
2492
|
+
return isFinite(s) ? s : 0;
|
|
2493
|
+
}, r = ({ left: s, top: i, right: a, gap: d }, c, u = "margin", f) => `
|
|
2494
|
+
.${as} {
|
|
2495
|
+
overflow: hidden ${f};
|
|
2496
|
+
padding-right: ${d}px ${f};
|
|
2497
|
+
}
|
|
2498
|
+
body[${me}] {
|
|
2499
|
+
overflow: hidden ${f};
|
|
2500
|
+
overscroll-behavior: contain;
|
|
2501
|
+
${[
|
|
2502
|
+
c && `position: relative ${f};`,
|
|
2503
|
+
u === "margin" && `
|
|
2504
|
+
padding-left: ${s}px;
|
|
2505
|
+
padding-top: ${i}px;
|
|
2506
|
+
padding-right: ${a}px;
|
|
2507
|
+
margin-left:0;
|
|
2508
|
+
margin-top:0;
|
|
2509
|
+
margin-right: ${d}px ${f};
|
|
2510
|
+
`,
|
|
2511
|
+
u === "padding" && `padding-right: ${d}px ${f};`
|
|
2512
|
+
].filter(Boolean).join("")}
|
|
2513
|
+
}
|
|
2514
|
+
|
|
2515
|
+
.${Ze} {
|
|
2516
|
+
right: ${d}px ${f};
|
|
2517
|
+
}
|
|
2518
|
+
|
|
2519
|
+
.${Ye} {
|
|
2520
|
+
margin-right: ${d}px ${f};
|
|
2521
|
+
}
|
|
2522
|
+
|
|
2523
|
+
.${Ze} .${Ze} {
|
|
2524
|
+
right: 0 ${f};
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
.${Ye} .${Ye} {
|
|
2528
|
+
margin-right: 0 ${f};
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
body[${me}] {
|
|
2532
|
+
${ls}: ${d}px;
|
|
2533
|
+
}
|
|
2534
|
+
`;
|
|
2535
|
+
return Ue(() => {
|
|
2536
|
+
document.body.setAttribute(me, (o() + 1).toString());
|
|
2537
|
+
const s = ds(t.gapMode);
|
|
2538
|
+
n.add(
|
|
2539
|
+
r(s, !t.noRelative, t.gapMode, t.noImportant ? "" : "!important")
|
|
2540
|
+
);
|
|
2541
|
+
}), Sn(() => {
|
|
2542
|
+
const s = o() - 1;
|
|
2543
|
+
s <= 0 ? document.body.removeAttribute(me) : document.body.setAttribute(me, s.toString()), n.remove();
|
|
2544
|
+
}), (s, i) => U(s.$slots, "default");
|
|
2545
|
+
}
|
|
2546
|
+
}), bs = J(gs);
|
|
2547
|
+
function ys(e, t, n, o) {
|
|
2548
|
+
const r = (o == null ? void 0 : o.offset) ?? 0, s = (o == null ? void 0 : o.crossOffset) ?? 0, i = (o == null ? void 0 : o.placement) ?? "bottom", a = e.getBoundingClientRect(), d = t.getBoundingClientRect(), c = n == null ? void 0 : n.getBoundingClientRect(), u = vs(a, d, i, r), f = Rs(a, d, u), b = As(f, u, r), p = Es(b, u, s), m = ws(p, d, u);
|
|
2549
|
+
let g;
|
|
2550
|
+
if (o != null && o.arrow) {
|
|
2551
|
+
if (!c)
|
|
2552
|
+
throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
|
|
2553
|
+
g = Ss(m, a, d, c, u);
|
|
2554
|
+
}
|
|
2555
|
+
return { overlayCoords: m, arrowCoords: g, placement: u };
|
|
2556
|
+
}
|
|
2557
|
+
function vs(e, t, n, o) {
|
|
2558
|
+
const r = Nt(e, t, n, o);
|
|
2559
|
+
if (Lt(r)) {
|
|
2560
|
+
const s = ve(n), i = {
|
|
2561
|
+
top: "bottom",
|
|
2562
|
+
bottom: "top",
|
|
2563
|
+
left: "right",
|
|
2564
|
+
right: "left"
|
|
2565
|
+
}[s], a = Nt(
|
|
2566
|
+
e,
|
|
2567
|
+
t,
|
|
2568
|
+
i,
|
|
2569
|
+
o
|
|
2570
|
+
);
|
|
2571
|
+
if (Lt(a))
|
|
2572
|
+
return n;
|
|
2573
|
+
const d = Cs(n);
|
|
2574
|
+
return d ? `${i}-${d}` : i;
|
|
2575
|
+
}
|
|
2576
|
+
return n;
|
|
2577
|
+
}
|
|
2578
|
+
function ws(e, t, n) {
|
|
2579
|
+
const o = Ne(n), r = (i, a, d) => Math.min(Math.max(i, a), d), s = { ...e };
|
|
2580
|
+
return o === "x" ? s.x = r(e.x, 8, window.innerWidth - t.width - 8) : s.y = r(e.y, 8, window.innerHeight - t.height - 8), s;
|
|
2581
|
+
}
|
|
2582
|
+
function As(e, t, n) {
|
|
2583
|
+
const o = ve(t);
|
|
2584
|
+
return {
|
|
2585
|
+
x: e.x + (o === "left" ? -n : o === "right" ? n : 0),
|
|
2586
|
+
y: e.y + (o === "top" ? -n : o === "bottom" ? n : 0)
|
|
2587
|
+
};
|
|
2588
|
+
}
|
|
2589
|
+
function Es(e, t, n) {
|
|
2590
|
+
const o = ve(t);
|
|
2591
|
+
return {
|
|
2592
|
+
x: e.x + (o === "top" || o === "bottom" ? n : 0),
|
|
2593
|
+
y: e.y + (o === "right" || o === "left" ? n : 0)
|
|
2594
|
+
};
|
|
2595
|
+
}
|
|
2596
|
+
function Ss(e, t, n, o, r) {
|
|
2597
|
+
if (Ne(r) === "y") {
|
|
2598
|
+
const s = t.top + t.height / 2, i = e.y + n.height / 2, a = i - s, d = n.height / 2 - a - o.height / 2 + 2;
|
|
2599
|
+
if (d > 0 && d < n.height - o.height)
|
|
2600
|
+
return {
|
|
2601
|
+
y: d
|
|
2602
|
+
};
|
|
2603
|
+
} else {
|
|
2604
|
+
const s = t.left + t.width / 2, i = e.x + n.width / 2, a = i - s, d = n.width / 2 - a - o.width / 2 + 2;
|
|
2605
|
+
if (d > 0 && d < n.width - o.width)
|
|
2606
|
+
return {
|
|
2607
|
+
x: d
|
|
2608
|
+
};
|
|
2609
|
+
}
|
|
2610
|
+
}
|
|
2611
|
+
function Rs(e, t, n) {
|
|
2612
|
+
const [o, r] = n.split("-"), s = e.x + e.width / 2 - t.width / 2, i = e.y + e.height / 2 - t.height / 2;
|
|
2613
|
+
let a;
|
|
2614
|
+
switch (o) {
|
|
2615
|
+
case "top":
|
|
2616
|
+
a = { x: s, y: e.y - t.height };
|
|
2617
|
+
break;
|
|
2618
|
+
case "bottom":
|
|
2619
|
+
a = { x: s, y: e.y + e.height };
|
|
2620
|
+
break;
|
|
2621
|
+
case "left":
|
|
2622
|
+
a = { x: e.x - t.width, y: i };
|
|
2623
|
+
break;
|
|
2624
|
+
case "right":
|
|
2625
|
+
a = { x: e.x + e.width, y: i };
|
|
2626
|
+
break;
|
|
2627
|
+
default:
|
|
2628
|
+
throw new Error(`[Quidgest UI] Invalid placement value: ${n}`);
|
|
2629
|
+
}
|
|
2630
|
+
if (!r)
|
|
2631
|
+
return a;
|
|
2632
|
+
const d = Ne(n) === "y" ? "height" : "width", c = Ne(n), u = e[d] / 2 - t[d] / 2;
|
|
2633
|
+
switch (r) {
|
|
2634
|
+
case "start":
|
|
2635
|
+
a[c] -= u;
|
|
2636
|
+
break;
|
|
2637
|
+
case "end":
|
|
2638
|
+
a[c] += u;
|
|
2639
|
+
break;
|
|
2640
|
+
default:
|
|
2641
|
+
throw new Error(`[Quidgest UI] Invalid alignment value: ${r}`);
|
|
2642
|
+
}
|
|
2643
|
+
return a;
|
|
2644
|
+
}
|
|
2645
|
+
function Nt(e, t, n, o) {
|
|
2646
|
+
const r = ve(n);
|
|
2647
|
+
let s = 0;
|
|
2648
|
+
switch (r) {
|
|
2649
|
+
case "top":
|
|
2650
|
+
s = e.top - (t.height + o);
|
|
2651
|
+
break;
|
|
2652
|
+
case "bottom":
|
|
2653
|
+
s = window.innerHeight - e.bottom - (t.height + o);
|
|
2654
|
+
break;
|
|
2655
|
+
case "left":
|
|
2656
|
+
s = e.left - (t.width + o);
|
|
2657
|
+
break;
|
|
2658
|
+
case "right":
|
|
2659
|
+
s = window.innerWidth - e.right - (t.width + o);
|
|
2660
|
+
break;
|
|
2661
|
+
default:
|
|
2662
|
+
throw new Error(`[Quidgest UI] Invalid side value: ${r}`);
|
|
2663
|
+
}
|
|
2664
|
+
return s;
|
|
2665
|
+
}
|
|
2666
|
+
function xs(e) {
|
|
2667
|
+
return e === "x" ? "y" : "x";
|
|
2668
|
+
}
|
|
2669
|
+
function Bs(e) {
|
|
2670
|
+
const t = ve(e);
|
|
2671
|
+
return ["left", "right"].includes(t) ? "x" : "y";
|
|
2672
|
+
}
|
|
2673
|
+
function Ne(e) {
|
|
2674
|
+
return xs(Bs(e));
|
|
2675
|
+
}
|
|
2676
|
+
function ve(e) {
|
|
2677
|
+
const [t] = e.split("-");
|
|
2678
|
+
return t;
|
|
2679
|
+
}
|
|
2680
|
+
function Cs(e) {
|
|
2681
|
+
const [, t] = e.split("-");
|
|
2682
|
+
return t;
|
|
2683
|
+
}
|
|
2684
|
+
function Lt(e) {
|
|
2685
|
+
return e < 0;
|
|
2686
|
+
}
|
|
2687
|
+
function Ts(e) {
|
|
2688
|
+
return typeof e == "string" ? document.querySelector(e) : e;
|
|
2689
|
+
}
|
|
2690
|
+
const ks = ["id"], Ds = ["role"], Os = /* @__PURE__ */ q({
|
|
2691
|
+
inheritAttrs: !1,
|
|
2692
|
+
__name: "QOverlay",
|
|
2693
|
+
props: /* @__PURE__ */ ge({
|
|
2694
|
+
id: {},
|
|
2695
|
+
class: {},
|
|
2696
|
+
anchor: {},
|
|
2697
|
+
appearance: { default: "regular" },
|
|
2698
|
+
arrow: { type: Boolean },
|
|
2699
|
+
attach: { default: "body" },
|
|
2700
|
+
inline: { type: Boolean },
|
|
2701
|
+
backdropBlur: { type: Boolean },
|
|
2702
|
+
backdropClass: {},
|
|
2703
|
+
delay: { default: 500 },
|
|
2704
|
+
nonModal: { type: Boolean },
|
|
2705
|
+
scrollLock: { type: Boolean },
|
|
2706
|
+
offset: { default: 8 },
|
|
2707
|
+
crossOffset: { default: 0 },
|
|
2708
|
+
persistent: { type: Boolean },
|
|
2709
|
+
placement: { default: "right" },
|
|
2710
|
+
spy: { type: Boolean },
|
|
2711
|
+
transition: { default: "fade" },
|
|
2712
|
+
trigger: { default: "click" },
|
|
2713
|
+
width: { default: "auto" }
|
|
2714
|
+
}, {
|
|
2715
|
+
modelValue: { type: Boolean },
|
|
2716
|
+
modelModifiers: {}
|
|
2717
|
+
}),
|
|
2718
|
+
emits: /* @__PURE__ */ ge(["enter", "leave"], ["update:modelValue"]),
|
|
2719
|
+
setup(e, { emit: t }) {
|
|
2720
|
+
const n = e, o = t, r = Le(e, "modelValue"), { class: s } = gn(), i = S(() => [
|
|
2721
|
+
"q-overlay",
|
|
2722
|
+
`q-overlay--${ve(u.placement)}`,
|
|
2723
|
+
s.value,
|
|
2724
|
+
{
|
|
2725
|
+
"q-overlay--independent": a.value,
|
|
2726
|
+
"q-overlay--inverted": n.appearance === "inverted"
|
|
2727
|
+
},
|
|
2728
|
+
n.class
|
|
2729
|
+
]), a = S(() => n.anchor === void 0), d = S(() => (r.value || u.animating) && !n.nonModal), c = S(() => (r.value || u.animating) && n.scrollLock), u = yt({
|
|
2730
|
+
animating: !1,
|
|
2731
|
+
top: 0,
|
|
2732
|
+
left: 0,
|
|
2733
|
+
width: 0,
|
|
2734
|
+
placement: n.placement
|
|
2735
|
+
}), f = yt({
|
|
2736
|
+
top: void 0,
|
|
2737
|
+
left: void 0,
|
|
2738
|
+
hidden: !0
|
|
2739
|
+
}), b = S(() => u.top !== 0 && u.left !== 0);
|
|
2740
|
+
re(r, () => u.animating = !0);
|
|
2741
|
+
const p = S(() => {
|
|
2742
|
+
if (a.value) return;
|
|
2743
|
+
const x = ie(), Ae = n.width === "anchor", Z = Ae ? x == null ? void 0 : x.getBoundingClientRect().width : void 0;
|
|
2744
|
+
return {
|
|
2745
|
+
top: `${u.top}px`,
|
|
2746
|
+
left: `${u.left}px`,
|
|
2747
|
+
width: Z !== void 0 ? `${Z}px` : void 0
|
|
2748
|
+
};
|
|
2749
|
+
}), m = S(() => {
|
|
2750
|
+
if (n.arrow)
|
|
2751
|
+
return {
|
|
2752
|
+
top: f.top !== void 0 ? `${f.top}px` : void 0,
|
|
2753
|
+
left: f.left !== void 0 ? `${f.left}px` : void 0,
|
|
2754
|
+
opacity: f.hidden ? 0 : 1
|
|
2755
|
+
};
|
|
2756
|
+
}), g = M(null), h = M(null);
|
|
2757
|
+
function R() {
|
|
2758
|
+
const x = ie();
|
|
2759
|
+
if (!x || !h.value)
|
|
2760
|
+
return;
|
|
2761
|
+
const Ae = {
|
|
2762
|
+
placement: n.placement,
|
|
2763
|
+
width: n.width,
|
|
2764
|
+
offset: n.offset,
|
|
2765
|
+
crossOffset: n.crossOffset,
|
|
2766
|
+
arrow: n.arrow
|
|
2767
|
+
}, Z = ys(
|
|
2768
|
+
x,
|
|
2769
|
+
h.value,
|
|
2770
|
+
(g == null ? void 0 : g.value) ?? void 0,
|
|
2771
|
+
Ae
|
|
2772
|
+
);
|
|
2773
|
+
u.left = Z.overlayCoords.x, u.top = Z.overlayCoords.y, u.placement = Z.placement, f.hidden = Z.arrowCoords === void 0, Z.arrowCoords && (f.top = Z.arrowCoords.y, f.left = Z.arrowCoords.x);
|
|
2774
|
+
}
|
|
2775
|
+
re(
|
|
2776
|
+
() => n.placement,
|
|
2777
|
+
() => oe(R)
|
|
2778
|
+
);
|
|
2779
|
+
let k;
|
|
2780
|
+
function y() {
|
|
2781
|
+
I(0);
|
|
2782
|
+
}
|
|
2783
|
+
function O() {
|
|
2784
|
+
I(n.delay);
|
|
2785
|
+
}
|
|
2786
|
+
function I(x) {
|
|
2787
|
+
k && H(), k = window.setTimeout(() => {
|
|
2788
|
+
r.value = !0;
|
|
2789
|
+
}, x);
|
|
2790
|
+
}
|
|
2791
|
+
function N() {
|
|
2792
|
+
if (k && H(), r.value = !1, n.anchor && n.trigger === "click") {
|
|
2793
|
+
const x = ie();
|
|
2794
|
+
x == null || x.focus();
|
|
2795
|
+
}
|
|
2796
|
+
}
|
|
2797
|
+
function H() {
|
|
2798
|
+
clearTimeout(k), k = void 0;
|
|
2799
|
+
}
|
|
2800
|
+
re(b, () => oe(X));
|
|
2801
|
+
function X() {
|
|
2802
|
+
o("enter");
|
|
2803
|
+
}
|
|
2804
|
+
let K;
|
|
2805
|
+
function we() {
|
|
2806
|
+
window.clearTimeout(K), K = window.setTimeout(() => u.animating = !1, 200), o("leave");
|
|
2807
|
+
}
|
|
2808
|
+
function ie() {
|
|
2809
|
+
return n.anchor ? Ts(n.anchor) : null;
|
|
2810
|
+
}
|
|
2811
|
+
let ce;
|
|
2812
|
+
function He() {
|
|
2813
|
+
const x = ie();
|
|
2814
|
+
if (x)
|
|
2815
|
+
switch (ce = new MutationObserver(R), ce.observe(x, {
|
|
2816
|
+
attributes: !1,
|
|
2817
|
+
childList: !0,
|
|
2818
|
+
characterData: !0,
|
|
2819
|
+
subtree: !0
|
|
2820
|
+
}), n.trigger) {
|
|
2821
|
+
case "click":
|
|
2822
|
+
x.addEventListener("click", y);
|
|
2823
|
+
break;
|
|
2824
|
+
case "hover":
|
|
2825
|
+
x.addEventListener("mouseenter", O), x.addEventListener("mouseleave", N), x.addEventListener("focusin", y), x.addEventListener("focusout", N);
|
|
2826
|
+
break;
|
|
2827
|
+
}
|
|
2828
|
+
}
|
|
2829
|
+
function Ge() {
|
|
2830
|
+
const x = ie();
|
|
2831
|
+
if (x)
|
|
2832
|
+
switch (ce == null || ce.disconnect(), n.trigger) {
|
|
2833
|
+
case "click":
|
|
2834
|
+
x.removeEventListener("click", y);
|
|
2835
|
+
break;
|
|
2836
|
+
case "hover":
|
|
2837
|
+
x.removeEventListener("mouseenter", O), x.removeEventListener("mouseleave", N), x.removeEventListener("focusin", y), x.removeEventListener("focusout", N);
|
|
2838
|
+
break;
|
|
2839
|
+
}
|
|
2840
|
+
}
|
|
2841
|
+
function Ve() {
|
|
2842
|
+
window.addEventListener("resize", R), n.scrollLock || window.addEventListener("scroll", R);
|
|
2843
|
+
}
|
|
2844
|
+
function v() {
|
|
2845
|
+
window.removeEventListener("resize", R), n.scrollLock || window.removeEventListener("scroll", R);
|
|
2846
|
+
}
|
|
2847
|
+
let B;
|
|
2848
|
+
function L() {
|
|
2849
|
+
ie() ? (R(), B = window.setTimeout(L, 100)) : N();
|
|
2850
|
+
}
|
|
2851
|
+
function ae() {
|
|
2852
|
+
a.value || (Ve(), n.spy ? L() : R()), (a.value || n.trigger === "click") && oe(() => {
|
|
2853
|
+
var x;
|
|
2854
|
+
return (x = h.value) == null ? void 0 : x.focus();
|
|
2855
|
+
});
|
|
2856
|
+
}
|
|
2857
|
+
function Q() {
|
|
2858
|
+
a.value || v(), n.spy && (clearTimeout(B), B = void 0), u.top = 0, u.left = 0;
|
|
2859
|
+
}
|
|
2860
|
+
function ne() {
|
|
2861
|
+
n.persistent || N();
|
|
2862
|
+
}
|
|
2863
|
+
return Ue(() => {
|
|
2864
|
+
oe(He);
|
|
2865
|
+
}), Rn(() => {
|
|
2866
|
+
Ge(), Q();
|
|
2867
|
+
}), re(
|
|
2868
|
+
r,
|
|
2869
|
+
(x) => {
|
|
2870
|
+
oe(() => x ? ae() : Q());
|
|
2871
|
+
},
|
|
2872
|
+
{ immediate: !0 }
|
|
2873
|
+
), (x, Ae) => (w(), C(
|
|
2874
|
+
fe,
|
|
2875
|
+
null,
|
|
2876
|
+
[
|
|
2877
|
+
(w(), _(xn, {
|
|
2878
|
+
disabled: !r.value && !u.animating || n.inline,
|
|
2879
|
+
to: n.attach
|
|
2880
|
+
}, [
|
|
2881
|
+
d.value ? (w(), C(
|
|
2882
|
+
"div",
|
|
2883
|
+
{
|
|
2884
|
+
key: 0,
|
|
2885
|
+
class: V([
|
|
2886
|
+
n.backdropClass,
|
|
2887
|
+
"q-overlay__underlay",
|
|
2888
|
+
{ "q-overlay__underlay--blur": n.backdropBlur }
|
|
2889
|
+
])
|
|
2890
|
+
},
|
|
2891
|
+
null,
|
|
2892
|
+
2
|
|
2893
|
+
/* CLASS */
|
|
2894
|
+
)) : j("v-if", !0),
|
|
2895
|
+
P(Bn, {
|
|
2896
|
+
name: n.transition,
|
|
2897
|
+
appear: "",
|
|
2898
|
+
onLeave: we
|
|
2899
|
+
}, {
|
|
2900
|
+
default: D(() => [
|
|
2901
|
+
r.value ? (w(), C("div", {
|
|
2902
|
+
key: 0,
|
|
2903
|
+
id: n.id,
|
|
2904
|
+
class: V(i.value),
|
|
2905
|
+
style: Re(p.value)
|
|
2906
|
+
}, [
|
|
2907
|
+
T("div", le({
|
|
2908
|
+
ref_key: "overlayRef",
|
|
2909
|
+
ref: h,
|
|
2910
|
+
class: "q-overlay__content",
|
|
2911
|
+
tabindex: "-1",
|
|
2912
|
+
role: d.value ? "dialog" : void 0
|
|
2913
|
+
}, x.$attrs, {
|
|
2914
|
+
onKeydown: Ht(ne, ["escape"]),
|
|
2915
|
+
onBlur: ne
|
|
2916
|
+
}), [
|
|
2917
|
+
n.arrow ? (w(), C(
|
|
2918
|
+
"div",
|
|
2919
|
+
{
|
|
2920
|
+
key: 0,
|
|
2921
|
+
ref_key: "arrowRef",
|
|
2922
|
+
ref: g,
|
|
2923
|
+
role: "presentation",
|
|
2924
|
+
class: "q-overlay__arrow",
|
|
2925
|
+
style: Re(m.value)
|
|
2926
|
+
},
|
|
2927
|
+
null,
|
|
2928
|
+
4
|
|
2929
|
+
/* STYLE */
|
|
2930
|
+
)) : j("v-if", !0),
|
|
2931
|
+
U(x.$slots, "default")
|
|
2932
|
+
], 16, Ds)
|
|
2933
|
+
], 14, ks)) : j("v-if", !0)
|
|
2934
|
+
]),
|
|
2935
|
+
_: 3
|
|
2936
|
+
/* FORWARDED */
|
|
2937
|
+
}, 8, ["name"])
|
|
2938
|
+
], 8, ["disabled", "to"])),
|
|
2939
|
+
c.value ? (w(), _(A(bs), { key: 0 })) : j("v-if", !0)
|
|
2940
|
+
],
|
|
2941
|
+
64
|
|
2942
|
+
/* STABLE_FRAGMENT */
|
|
2943
|
+
));
|
|
2944
|
+
}
|
|
2945
|
+
}), Is = J(Os), Ns = [
|
|
2946
|
+
{
|
|
2947
|
+
id: "button",
|
|
2948
|
+
icon: {
|
|
2949
|
+
icon: "check"
|
|
2950
|
+
},
|
|
2951
|
+
props: {
|
|
2952
|
+
bStyle: "primary",
|
|
2953
|
+
label: "Ok"
|
|
2954
|
+
}
|
|
2955
|
+
}
|
|
2956
|
+
], Ls = {
|
|
2957
|
+
icon: "check-circle-outline"
|
|
2958
|
+
}, Us = {
|
|
2959
|
+
close: {
|
|
2960
|
+
icon: "close"
|
|
2961
|
+
}
|
|
2962
|
+
}, Fs = { class: "q-dialog__header" }, Ps = { class: "q-dialog__header-title" }, Ms = { class: "q-dialog__body" }, js = {
|
|
2963
|
+
key: 0,
|
|
2964
|
+
class: "q-dialog__body-icon"
|
|
2965
|
+
}, qs = { class: "q-dialog__body-text" }, zs = ["innerHTML"], Hs = { key: 1 }, Gs = { class: "q-dialog__body-actions" }, Vs = /* @__PURE__ */ q({
|
|
2966
|
+
__name: "QDialog",
|
|
2967
|
+
props: /* @__PURE__ */ ge({
|
|
2968
|
+
id: {},
|
|
2969
|
+
class: {},
|
|
2970
|
+
title: {},
|
|
2971
|
+
text: {},
|
|
2972
|
+
icon: { default: () => Ls },
|
|
2973
|
+
buttons: { default: () => Ns },
|
|
2974
|
+
attach: { default: "body" },
|
|
2975
|
+
inline: { type: Boolean },
|
|
2976
|
+
backdropBlur: { type: Boolean, default: !0 },
|
|
2977
|
+
dismissible: { type: Boolean },
|
|
2978
|
+
html: { type: Boolean, default: !0 },
|
|
2979
|
+
icons: { default: () => Us }
|
|
2980
|
+
}, {
|
|
2981
|
+
modelValue: { type: Boolean },
|
|
2982
|
+
modelModifiers: {}
|
|
2983
|
+
}),
|
|
2984
|
+
emits: ["update:modelValue"],
|
|
2985
|
+
setup(e) {
|
|
2986
|
+
const t = e, n = Le(e, "modelValue");
|
|
2987
|
+
function o() {
|
|
2988
|
+
n.value = !1;
|
|
2989
|
+
}
|
|
2990
|
+
function r(s) {
|
|
2991
|
+
var i;
|
|
2992
|
+
(i = s.action) == null || i.call(s), o();
|
|
2993
|
+
}
|
|
2994
|
+
return (s, i) => (w(), _(A(Is), {
|
|
2173
2995
|
id: t.id,
|
|
2174
|
-
|
|
2175
|
-
|
|
2996
|
+
"model-value": n.value,
|
|
2997
|
+
inline: t.inline,
|
|
2998
|
+
attach: t.attach,
|
|
2999
|
+
"backdrop-blur": t.backdropBlur,
|
|
3000
|
+
"backdrop-class": "q-dialog__underlay",
|
|
3001
|
+
"scroll-lock": "",
|
|
3002
|
+
persistent: ""
|
|
3003
|
+
}, {
|
|
3004
|
+
default: D(() => [
|
|
3005
|
+
T(
|
|
3006
|
+
"div",
|
|
3007
|
+
{
|
|
3008
|
+
class: V(["q-dialog", t.class])
|
|
3009
|
+
},
|
|
3010
|
+
[
|
|
3011
|
+
T("div", Fs, [
|
|
3012
|
+
T(
|
|
3013
|
+
"span",
|
|
3014
|
+
Ps,
|
|
3015
|
+
pe(t.title),
|
|
3016
|
+
1
|
|
3017
|
+
/* TEXT */
|
|
3018
|
+
),
|
|
3019
|
+
t.dismissible ? (w(), _(A(te), {
|
|
3020
|
+
key: 0,
|
|
3021
|
+
"b-style": "tertiary",
|
|
3022
|
+
onClick: o
|
|
3023
|
+
}, {
|
|
3024
|
+
default: D(() => [
|
|
3025
|
+
P(
|
|
3026
|
+
A(se),
|
|
3027
|
+
Ke(et(t.icons.close)),
|
|
3028
|
+
null,
|
|
3029
|
+
16
|
|
3030
|
+
/* FULL_PROPS */
|
|
3031
|
+
)
|
|
3032
|
+
]),
|
|
3033
|
+
_: 1
|
|
3034
|
+
/* STABLE */
|
|
3035
|
+
})) : j("v-if", !0)
|
|
3036
|
+
]),
|
|
3037
|
+
U(s.$slots, "body.content", {}, () => [
|
|
3038
|
+
T("div", Ms, [
|
|
3039
|
+
U(s.$slots, "body.icon", {}, () => [
|
|
3040
|
+
t.icon ? (w(), C("span", js, [
|
|
3041
|
+
P(
|
|
3042
|
+
A(se),
|
|
3043
|
+
Ke(et(t.icon)),
|
|
3044
|
+
null,
|
|
3045
|
+
16
|
|
3046
|
+
/* FULL_PROPS */
|
|
3047
|
+
)
|
|
3048
|
+
])) : j("v-if", !0)
|
|
3049
|
+
]),
|
|
3050
|
+
T("div", qs, [
|
|
3051
|
+
t.html ? (w(), C("span", {
|
|
3052
|
+
key: 0,
|
|
3053
|
+
innerHTML: t.text
|
|
3054
|
+
}, null, 8, zs)) : (w(), C(
|
|
3055
|
+
"span",
|
|
3056
|
+
Hs,
|
|
3057
|
+
pe(t.text),
|
|
3058
|
+
1
|
|
3059
|
+
/* TEXT */
|
|
3060
|
+
))
|
|
3061
|
+
]),
|
|
3062
|
+
U(s.$slots, "body.append")
|
|
3063
|
+
])
|
|
3064
|
+
]),
|
|
3065
|
+
T("div", Gs, [
|
|
3066
|
+
(w(!0), C(
|
|
3067
|
+
fe,
|
|
3068
|
+
null,
|
|
3069
|
+
ct(t.buttons, (a) => (w(), _(A(te), le({ ref_for: !0 }, a.props, {
|
|
3070
|
+
key: a.id,
|
|
3071
|
+
onClick: () => r(a)
|
|
3072
|
+
}), {
|
|
3073
|
+
default: D(() => [
|
|
3074
|
+
a.icon ? (w(), _(
|
|
3075
|
+
A(se),
|
|
3076
|
+
le({
|
|
3077
|
+
key: 0,
|
|
3078
|
+
ref_for: !0
|
|
3079
|
+
}, a.icon),
|
|
3080
|
+
null,
|
|
3081
|
+
16
|
|
3082
|
+
/* FULL_PROPS */
|
|
3083
|
+
)) : j("v-if", !0)
|
|
3084
|
+
]),
|
|
3085
|
+
_: 2
|
|
3086
|
+
/* DYNAMIC */
|
|
3087
|
+
}, 1040, ["onClick"]))),
|
|
3088
|
+
128
|
|
3089
|
+
/* KEYED_FRAGMENT */
|
|
3090
|
+
))
|
|
3091
|
+
])
|
|
3092
|
+
],
|
|
3093
|
+
2
|
|
3094
|
+
/* CLASS */
|
|
3095
|
+
)
|
|
3096
|
+
]),
|
|
3097
|
+
_: 3
|
|
3098
|
+
/* FORWARDED */
|
|
3099
|
+
}, 8, ["id", "model-value", "inline", "attach", "backdrop-blur"]));
|
|
2176
3100
|
}
|
|
2177
|
-
}),
|
|
2178
|
-
function
|
|
2179
|
-
return
|
|
3101
|
+
}), _s = J(Vs);
|
|
3102
|
+
function Ws(e) {
|
|
3103
|
+
return kn() ? (Dn(e), !0) : !1;
|
|
2180
3104
|
}
|
|
2181
|
-
const
|
|
3105
|
+
const Js = typeof window < "u" && typeof document < "u";
|
|
2182
3106
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
2183
|
-
const
|
|
3107
|
+
const Qs = () => {
|
|
2184
3108
|
};
|
|
2185
|
-
function
|
|
3109
|
+
function Ut(...e) {
|
|
2186
3110
|
if (e.length !== 1)
|
|
2187
|
-
return
|
|
3111
|
+
return jt(...e);
|
|
2188
3112
|
const t = e[0];
|
|
2189
|
-
return typeof t == "function" ?
|
|
3113
|
+
return typeof t == "function" ? Cn(Tn(() => ({ get: t, set: Qs }))) : M(t);
|
|
2190
3114
|
}
|
|
2191
|
-
const
|
|
2192
|
-
function
|
|
3115
|
+
const ht = Js ? window : void 0;
|
|
3116
|
+
function Ft(e) {
|
|
2193
3117
|
var t;
|
|
2194
|
-
const n =
|
|
3118
|
+
const n = ut(e);
|
|
2195
3119
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
2196
3120
|
}
|
|
2197
|
-
function
|
|
2198
|
-
const e =
|
|
2199
|
-
return t &&
|
|
3121
|
+
function Zs() {
|
|
3122
|
+
const e = tt(!1), t = lt();
|
|
3123
|
+
return t && Ue(() => {
|
|
2200
3124
|
e.value = !0;
|
|
2201
3125
|
}, t), e;
|
|
2202
3126
|
}
|
|
2203
|
-
function
|
|
2204
|
-
const t =
|
|
2205
|
-
return
|
|
2206
|
-
}
|
|
2207
|
-
function
|
|
2208
|
-
const { window:
|
|
2209
|
-
let
|
|
2210
|
-
const
|
|
2211
|
-
|
|
2212
|
-
},
|
|
2213
|
-
const
|
|
2214
|
-
return Array.isArray(
|
|
2215
|
-
}), c =
|
|
2216
|
-
|
|
2217
|
-
(
|
|
2218
|
-
if (a(),
|
|
2219
|
-
|
|
2220
|
-
for (const
|
|
2221
|
-
|
|
3127
|
+
function Ys(e) {
|
|
3128
|
+
const t = Zs();
|
|
3129
|
+
return S(() => (t.value, !!e()));
|
|
3130
|
+
}
|
|
3131
|
+
function Xs(e, t, n = {}) {
|
|
3132
|
+
const { window: o = ht, ...r } = n;
|
|
3133
|
+
let s;
|
|
3134
|
+
const i = Ys(() => o && "ResizeObserver" in o), a = () => {
|
|
3135
|
+
s && (s.disconnect(), s = void 0);
|
|
3136
|
+
}, d = S(() => {
|
|
3137
|
+
const f = ut(e);
|
|
3138
|
+
return Array.isArray(f) ? f.map((b) => Ft(b)) : [Ft(f)];
|
|
3139
|
+
}), c = re(
|
|
3140
|
+
d,
|
|
3141
|
+
(f) => {
|
|
3142
|
+
if (a(), i.value && o) {
|
|
3143
|
+
s = new ResizeObserver(t);
|
|
3144
|
+
for (const b of f)
|
|
3145
|
+
b && s.observe(b, r);
|
|
2222
3146
|
}
|
|
2223
3147
|
},
|
|
2224
3148
|
{ immediate: !0, flush: "post" }
|
|
2225
3149
|
), u = () => {
|
|
2226
3150
|
a(), c();
|
|
2227
3151
|
};
|
|
2228
|
-
return
|
|
2229
|
-
isSupported:
|
|
3152
|
+
return Ws(u), {
|
|
3153
|
+
isSupported: i,
|
|
2230
3154
|
stop: u
|
|
2231
3155
|
};
|
|
2232
3156
|
}
|
|
2233
|
-
function
|
|
3157
|
+
function $s(e = ht, t) {
|
|
2234
3158
|
e && typeof e.requestAnimationFrame == "function" ? e.requestAnimationFrame(t) : t();
|
|
2235
3159
|
}
|
|
2236
|
-
function
|
|
3160
|
+
function Ks(e = {}) {
|
|
2237
3161
|
var t, n;
|
|
2238
|
-
const { window:
|
|
3162
|
+
const { window: o = ht } = e, r = Ut(e == null ? void 0 : e.element), s = Ut((t = e == null ? void 0 : e.input) != null ? t : ""), i = (n = e == null ? void 0 : e.styleProp) != null ? n : "height", a = tt(1), d = tt(0);
|
|
2239
3163
|
function c() {
|
|
2240
3164
|
var u;
|
|
2241
|
-
if (!
|
|
3165
|
+
if (!r.value)
|
|
2242
3166
|
return;
|
|
2243
|
-
let
|
|
2244
|
-
|
|
2245
|
-
const
|
|
2246
|
-
|
|
3167
|
+
let f = "";
|
|
3168
|
+
r.value.style[i] = "1px", a.value = (u = r.value) == null ? void 0 : u.scrollHeight;
|
|
3169
|
+
const b = ut(e == null ? void 0 : e.styleTarget);
|
|
3170
|
+
b ? b.style[i] = `${a.value}px` : f = `${a.value}px`, r.value.style[i] = f;
|
|
2247
3171
|
}
|
|
2248
|
-
return
|
|
3172
|
+
return re([s, r], () => oe(c), { immediate: !0 }), re(a, () => {
|
|
2249
3173
|
var u;
|
|
2250
3174
|
return (u = e == null ? void 0 : e.onResize) == null ? void 0 : u.call(e);
|
|
2251
|
-
}),
|
|
2252
|
-
|
|
2253
|
-
|
|
3175
|
+
}), Xs(r, ([{ contentRect: u }]) => {
|
|
3176
|
+
d.value !== u.width && $s(o, () => {
|
|
3177
|
+
d.value = u.width, c();
|
|
2254
3178
|
});
|
|
2255
|
-
}), e != null && e.watch &&
|
|
2256
|
-
textarea:
|
|
2257
|
-
input:
|
|
3179
|
+
}), e != null && e.watch && re(e.watch, c, { immediate: !0, deep: !0 }), {
|
|
3180
|
+
textarea: r,
|
|
3181
|
+
input: s,
|
|
2258
3182
|
triggerResize: c
|
|
2259
3183
|
};
|
|
2260
3184
|
}
|
|
2261
|
-
const
|
|
3185
|
+
const ei = ["id", "required", "placeholder", "readonly", "disabled", "maxlength", "rows", "cols", "resize", "wrap"], ti = /* @__PURE__ */ q({
|
|
2262
3186
|
inheritAttrs: !1,
|
|
2263
3187
|
__name: "QTextArea",
|
|
2264
|
-
props: /* @__PURE__ */
|
|
3188
|
+
props: /* @__PURE__ */ ge({
|
|
2265
3189
|
id: {},
|
|
2266
3190
|
class: {},
|
|
2267
3191
|
label: {},
|
|
@@ -2270,6 +3194,7 @@ const ws = ["id", "required", "placeholder", "readonly", "disabled", "maxlength"
|
|
|
2270
3194
|
readonly: { type: Boolean },
|
|
2271
3195
|
disabled: { type: Boolean },
|
|
2272
3196
|
required: { type: Boolean },
|
|
3197
|
+
invalid: { type: Boolean },
|
|
2273
3198
|
placeholder: {},
|
|
2274
3199
|
maxLength: {},
|
|
2275
3200
|
rows: { default: 3 },
|
|
@@ -2283,41 +3208,41 @@ const ws = ["id", "required", "placeholder", "readonly", "disabled", "maxlength"
|
|
|
2283
3208
|
}),
|
|
2284
3209
|
emits: ["update:modelValue"],
|
|
2285
3210
|
setup(e) {
|
|
2286
|
-
const t = e, n =
|
|
3211
|
+
const t = e, n = Le(e, "modelValue"), o = bn(t.id), r = S(
|
|
2287
3212
|
() => t.readonly || t.disabled ? void 0 : t.placeholder
|
|
2288
|
-
),
|
|
2289
|
-
element:
|
|
3213
|
+
), s = S(() => ({ input: t.autosize ? a : null })), i = M(), { triggerResize: a } = Ks({
|
|
3214
|
+
element: S(() => t.autosize ? i.value : void 0),
|
|
2290
3215
|
styleProp: "minHeight"
|
|
2291
|
-
}),
|
|
3216
|
+
}), d = S({
|
|
2292
3217
|
get: () => n.value,
|
|
2293
3218
|
set: (c) => {
|
|
2294
3219
|
n.value = t.maxLength ? c == null ? void 0 : c.slice(0, t.maxLength) : c;
|
|
2295
3220
|
}
|
|
2296
3221
|
});
|
|
2297
|
-
return (c, u) => (
|
|
2298
|
-
class:
|
|
2299
|
-
for:
|
|
3222
|
+
return (c, u) => (w(), _(A(vn), {
|
|
3223
|
+
class: V(["q-text-area", t.class]),
|
|
3224
|
+
for: A(o),
|
|
2300
3225
|
label: t.label,
|
|
2301
3226
|
size: t.size,
|
|
2302
3227
|
readonly: t.readonly,
|
|
2303
3228
|
disabled: t.disabled,
|
|
2304
3229
|
required: t.required
|
|
2305
|
-
},
|
|
2306
|
-
"label.prepend":
|
|
2307
|
-
|
|
3230
|
+
}, qt({
|
|
3231
|
+
"label.prepend": D(() => [
|
|
3232
|
+
U(c.$slots, "label.prepend")
|
|
2308
3233
|
]),
|
|
2309
|
-
"label.append":
|
|
2310
|
-
|
|
3234
|
+
"label.append": D(() => [
|
|
3235
|
+
U(c.$slots, "label.append")
|
|
2311
3236
|
]),
|
|
2312
|
-
default:
|
|
2313
|
-
|
|
2314
|
-
id:
|
|
3237
|
+
default: D(() => [
|
|
3238
|
+
zt(T("textarea", le({
|
|
3239
|
+
id: A(o),
|
|
2315
3240
|
ref_key: "textareaRef",
|
|
2316
|
-
ref:
|
|
2317
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
3241
|
+
ref: i,
|
|
3242
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => d.value = f),
|
|
2318
3243
|
class: "q-text-area__input",
|
|
2319
3244
|
required: t.required,
|
|
2320
|
-
placeholder:
|
|
3245
|
+
placeholder: r.value,
|
|
2321
3246
|
readonly: t.readonly,
|
|
2322
3247
|
disabled: t.disabled,
|
|
2323
3248
|
maxlength: t.maxLength,
|
|
@@ -2325,8 +3250,8 @@ const ws = ["id", "required", "placeholder", "readonly", "disabled", "maxlength"
|
|
|
2325
3250
|
cols: t.cols,
|
|
2326
3251
|
resize: t.resize,
|
|
2327
3252
|
wrap: t.wrap
|
|
2328
|
-
}, c.$attrs,
|
|
2329
|
-
[
|
|
3253
|
+
}, c.$attrs, On(s.value, !0)), null, 16, ei), [
|
|
3254
|
+
[In, d.value]
|
|
2330
3255
|
])
|
|
2331
3256
|
]),
|
|
2332
3257
|
_: 2
|
|
@@ -2334,279 +3259,582 @@ const ws = ["id", "required", "placeholder", "readonly", "disabled", "maxlength"
|
|
|
2334
3259
|
}, [
|
|
2335
3260
|
c.$slots.prepend ? {
|
|
2336
3261
|
name: "prepend",
|
|
2337
|
-
fn:
|
|
2338
|
-
|
|
3262
|
+
fn: D(() => [
|
|
3263
|
+
U(c.$slots, "prepend")
|
|
2339
3264
|
]),
|
|
2340
3265
|
key: "0"
|
|
2341
3266
|
} : void 0,
|
|
2342
3267
|
c.$slots.append ? {
|
|
2343
3268
|
name: "append",
|
|
2344
|
-
fn:
|
|
2345
|
-
|
|
3269
|
+
fn: D(() => [
|
|
3270
|
+
U(c.$slots, "append")
|
|
2346
3271
|
]),
|
|
2347
3272
|
key: "1"
|
|
2348
3273
|
} : void 0,
|
|
2349
3274
|
c.$slots.extras ? {
|
|
2350
3275
|
name: "extras",
|
|
2351
|
-
fn:
|
|
2352
|
-
|
|
3276
|
+
fn: D(() => [
|
|
3277
|
+
U(c.$slots, "extras")
|
|
2353
3278
|
]),
|
|
2354
3279
|
key: "2"
|
|
2355
3280
|
} : void 0
|
|
2356
3281
|
]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
|
|
2357
3282
|
}
|
|
2358
|
-
}),
|
|
3283
|
+
}), ni = J(ti), oi = { class: "pulsing-dots" }, ri = /* @__PURE__ */ q({
|
|
3284
|
+
__name: "PulseDots",
|
|
3285
|
+
setup(e) {
|
|
3286
|
+
const t = [1, 2, 3];
|
|
3287
|
+
return (n, o) => (w(), C("div", oi, [
|
|
3288
|
+
(w(), C(fe, null, ct(t, (r, s) => T("span", {
|
|
3289
|
+
key: s,
|
|
3290
|
+
class: "dot",
|
|
3291
|
+
style: Re({ animationDelay: s * 0.2 + "s" })
|
|
3292
|
+
}, " • ", 4)), 64))
|
|
3293
|
+
]));
|
|
3294
|
+
}
|
|
3295
|
+
}), si = `<svg
|
|
3296
|
+
id="Layer_1"
|
|
3297
|
+
class="q-icon q-icon__svg"
|
|
3298
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
3299
|
+
viewBox="0 0 21.7 19.73">
|
|
3300
|
+
<path
|
|
3301
|
+
fill="currentColor"
|
|
3302
|
+
d="M21.7,8.88c0-1.09-.89-1.97-1.97-1.97h-6.23l.95-4.51c.02-.1.03-.21.03-.32,0-.4-.17-.78-.43-1.05l-1.05-1.04-6.49,6.49c-.36.36-.58.86-.58,1.4v9.86c0,1.09.88,1.97,1.97,1.97h8.88c.82,0,1.52-.49,1.82-1.2l2.98-6.95c.09-.23.14-.46.14-.72v-1.97M0,19.73h3.95V7.89H0v11.84Z" />
|
|
3303
|
+
</svg>
|
|
3304
|
+
`, ii = `<svg
|
|
3305
|
+
id="Layer_1"
|
|
3306
|
+
class="q-icon q-icon__svg"
|
|
3307
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
3308
|
+
viewBox="0 0 21.86 19.87">
|
|
3309
|
+
<path
|
|
3310
|
+
fill="currentColor"
|
|
3311
|
+
d="M17.89,11.92h3.97V0h-3.97M13.91,0H4.97c-.82,0-1.53.5-1.83,1.21L.14,8.22c-.09.23-.14.47-.14.73v1.99c0,1.1.89,1.99,1.99,1.99h6.27l-.94,4.54c-.02.1-.03.2-.03.31,0,.42.17.78.44,1.05l1.05,1.05,6.54-6.55c.37-.36.59-.85.59-1.4V1.99c0-1.1-.89-1.99-1.99-1.99Z" />
|
|
3312
|
+
</svg>
|
|
3313
|
+
`, ai = `<svg
|
|
3314
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
3315
|
+
viewBox="0 0 24 24">
|
|
3316
|
+
<path
|
|
3317
|
+
fill="currentColor"
|
|
3318
|
+
d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z" />
|
|
3319
|
+
</svg>
|
|
3320
|
+
`, li = { class: "q-chatbot__message-container" }, ci = { class: "q-chatbot__message-wrapper" }, ui = {
|
|
2359
3321
|
key: 0,
|
|
2360
|
-
class: "q-
|
|
2361
|
-
},
|
|
3322
|
+
class: "q-chatbot__image-preview"
|
|
3323
|
+
}, di = ["src", "alt"], fi = { class: "q-chatbot__message" }, pi = ["innerHTML"], hi = {
|
|
2362
3324
|
key: 1,
|
|
2363
3325
|
class: "q-chatbot__text"
|
|
2364
|
-
},
|
|
3326
|
+
}, mi = {
|
|
3327
|
+
key: 1,
|
|
3328
|
+
class: "q-chatbot__feedback-buttons"
|
|
3329
|
+
}, gi = ["innerHTML"], bi = ["innerHTML"], yi = ["innerHTML"], vi = { class: "q-chatbot__sender" }, wi = /* @__PURE__ */ q({
|
|
2365
3330
|
__name: "CBMessage",
|
|
2366
3331
|
props: {
|
|
2367
3332
|
sender: { default: "user" },
|
|
2368
3333
|
message: {},
|
|
2369
3334
|
date: { default: () => /* @__PURE__ */ new Date() },
|
|
2370
3335
|
loading: { type: Boolean },
|
|
2371
|
-
dateFormat: {}
|
|
3336
|
+
dateFormat: {},
|
|
3337
|
+
imagePreviewUrl: {},
|
|
3338
|
+
texts: { default: () => ({
|
|
3339
|
+
commentDialogTitle: "Would you like to add a comment?",
|
|
3340
|
+
commentPlaceholder: "Type your comment here (optional)...",
|
|
3341
|
+
goodResponse: "Good response",
|
|
3342
|
+
badResponse: "Bad response",
|
|
3343
|
+
copyResponse: "Copy response",
|
|
3344
|
+
submitButton: "Submit",
|
|
3345
|
+
cancelButton: "Cancel",
|
|
3346
|
+
senderImage: "Sender Image",
|
|
3347
|
+
imagePreview: "Image preview"
|
|
3348
|
+
}) },
|
|
3349
|
+
apiEndpoint: {},
|
|
3350
|
+
sessionID: {},
|
|
3351
|
+
userImage: { default: void 0 },
|
|
3352
|
+
chatbotImage: {},
|
|
3353
|
+
isWelcomeMessage: { type: Boolean }
|
|
2372
3354
|
},
|
|
2373
3355
|
setup(e) {
|
|
2374
|
-
const t =
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
3356
|
+
const t = si, n = ii, o = ai, r = e, s = M(!1), i = M(""), a = M(null), d = [
|
|
3357
|
+
{
|
|
3358
|
+
id: "confirm-btn",
|
|
3359
|
+
action: h,
|
|
3360
|
+
props: {
|
|
3361
|
+
label: r.texts.submitButton,
|
|
3362
|
+
"b-style": "primary"
|
|
3363
|
+
}
|
|
3364
|
+
},
|
|
3365
|
+
{
|
|
3366
|
+
id: "cancel-btn",
|
|
3367
|
+
props: {
|
|
3368
|
+
label: r.texts.cancelButton,
|
|
3369
|
+
"b-style": "danger"
|
|
3370
|
+
}
|
|
3371
|
+
}
|
|
3372
|
+
], c = S(() => r.sender === "bot" ? "GenioBot" : "You"), u = S(() => r.sender === "bot" && !Object.values(r.texts || {}).includes(r.message || "") && !r.isWelcomeMessage), f = S(() => r.dateFormat ? m(r.date, r.dateFormat) : r.date.toLocaleString()), b = S(() => `${c.value} ${f.value}`), p = S(
|
|
3373
|
+
() => r.sender === "bot" ? r.chatbotImage : r.userImage
|
|
3374
|
+
);
|
|
3375
|
+
function m(y, O) {
|
|
3376
|
+
const I = y.getDate().toString().padStart(2, "0"), N = (y.getMonth() + 1).toString().padStart(2, "0"), H = y.getFullYear().toString().padStart(2, "0"), X = y.getHours().toString().padStart(2, "0"), K = y.getMinutes().toString().padStart(2, "0"), we = y.getSeconds().toString().padStart(2, "0");
|
|
3377
|
+
return O.replace("dd", I).replace("MM", N).replace("yyyy", H).replace("HH", X).replace("mm", K).replace("ss", we);
|
|
2378
3378
|
}
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
3379
|
+
function g(y) {
|
|
3380
|
+
s.value = !0, i.value = "", a.value = y;
|
|
3381
|
+
}
|
|
3382
|
+
function h() {
|
|
3383
|
+
a.value != null && R(a.value, i.value);
|
|
3384
|
+
}
|
|
3385
|
+
function R(y, O) {
|
|
3386
|
+
F.post(r.apiEndpoint + "/prompt/feedback", {
|
|
3387
|
+
messageSessionID: r.sessionID,
|
|
3388
|
+
feedbackValue: y,
|
|
3389
|
+
feedbackComment: O
|
|
3390
|
+
}).catch((I) => {
|
|
3391
|
+
console.error("Error sending message feedback: ", I);
|
|
3392
|
+
});
|
|
3393
|
+
}
|
|
3394
|
+
function k() {
|
|
3395
|
+
r.message && navigator.clipboard.writeText(r.message).then(() => {
|
|
3396
|
+
console.log("Message copied to clipboard");
|
|
3397
|
+
}).catch((y) => {
|
|
3398
|
+
console.error(
|
|
3399
|
+
"Failed to copy message to clipboard: ",
|
|
3400
|
+
y
|
|
3401
|
+
);
|
|
3402
|
+
});
|
|
3403
|
+
}
|
|
3404
|
+
return (y, O) => {
|
|
3405
|
+
const I = Nn("q-button-group");
|
|
3406
|
+
return w(), C("div", li, [
|
|
3407
|
+
P(A(se), {
|
|
3408
|
+
type: "img",
|
|
3409
|
+
icon: p.value,
|
|
3410
|
+
alt: r.texts.senderImage,
|
|
3411
|
+
class: "q-chatbot__profile"
|
|
3412
|
+
}, null, 8, ["icon", "alt"]),
|
|
3413
|
+
T("div", ci, [
|
|
3414
|
+
r.imagePreviewUrl && r.imagePreviewUrl.length > 0 ? (w(), C("div", ui, [
|
|
3415
|
+
T("img", {
|
|
3416
|
+
src: r.imagePreviewUrl,
|
|
3417
|
+
alt: r.texts.imagePreview
|
|
3418
|
+
}, null, 8, di)
|
|
3419
|
+
])) : j("", !0),
|
|
3420
|
+
T("div", fi, [
|
|
3421
|
+
y.loading ? (w(), _(ri, { key: 0 })) : (w(), C(fe, { key: 1 }, [
|
|
3422
|
+
r.sender === "bot" ? (w(), C("div", {
|
|
3423
|
+
key: 0,
|
|
3424
|
+
class: "q-chatbot__text",
|
|
3425
|
+
innerHTML: r.message
|
|
3426
|
+
}, null, 8, pi)) : (w(), C("div", hi, pe(r.message), 1))
|
|
3427
|
+
], 64))
|
|
3428
|
+
]),
|
|
3429
|
+
P(A(_s), {
|
|
3430
|
+
modelValue: s.value,
|
|
3431
|
+
"onUpdate:modelValue": O[1] || (O[1] = (N) => s.value = N),
|
|
3432
|
+
buttons: d,
|
|
3433
|
+
text: r.texts.commentDialogTitle
|
|
3434
|
+
}, {
|
|
3435
|
+
"body.append": D(() => [
|
|
3436
|
+
P(A(is), {
|
|
3437
|
+
modelValue: i.value,
|
|
3438
|
+
"onUpdate:modelValue": O[0] || (O[0] = (N) => i.value = N),
|
|
3439
|
+
maxLength: 150,
|
|
3440
|
+
size: "large",
|
|
3441
|
+
placeholder: r.texts.commentPlaceholder
|
|
3442
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
3443
|
+
]),
|
|
3444
|
+
_: 1
|
|
3445
|
+
}, 8, ["modelValue", "text"]),
|
|
3446
|
+
u.value ? (w(), C("div", mi, [
|
|
3447
|
+
P(I, null, {
|
|
3448
|
+
default: D(() => [
|
|
3449
|
+
P(A(te), {
|
|
3450
|
+
title: r.texts.goodResponse,
|
|
3451
|
+
borderless: "",
|
|
3452
|
+
disabled: y.loading,
|
|
3453
|
+
"b-style": "secondary",
|
|
3454
|
+
onClick: O[2] || (O[2] = (N) => g(1))
|
|
3455
|
+
}, {
|
|
3456
|
+
default: D(() => [
|
|
3457
|
+
T("span", {
|
|
3458
|
+
innerHTML: A(t),
|
|
3459
|
+
class: "svg-icon"
|
|
3460
|
+
}, null, 8, gi)
|
|
3461
|
+
]),
|
|
3462
|
+
_: 1
|
|
3463
|
+
}, 8, ["title", "disabled"]),
|
|
3464
|
+
P(A(te), {
|
|
3465
|
+
title: r.texts.badResponse,
|
|
3466
|
+
borderless: "",
|
|
3467
|
+
disabled: y.loading,
|
|
3468
|
+
"b-style": "secondary",
|
|
3469
|
+
onClick: O[3] || (O[3] = (N) => g(0))
|
|
3470
|
+
}, {
|
|
3471
|
+
default: D(() => [
|
|
3472
|
+
T("span", {
|
|
3473
|
+
innerHTML: A(n),
|
|
3474
|
+
class: "svg-icon"
|
|
3475
|
+
}, null, 8, bi)
|
|
3476
|
+
]),
|
|
3477
|
+
_: 1
|
|
3478
|
+
}, 8, ["title", "disabled"]),
|
|
3479
|
+
P(A(te), {
|
|
3480
|
+
title: r.texts.copyResponse,
|
|
3481
|
+
borderless: "",
|
|
3482
|
+
disabled: y.loading,
|
|
3483
|
+
"b-style": "secondary",
|
|
3484
|
+
onClick: k
|
|
3485
|
+
}, {
|
|
3486
|
+
default: D(() => [
|
|
3487
|
+
T("span", {
|
|
3488
|
+
innerHTML: A(o),
|
|
3489
|
+
class: "svg-icon"
|
|
3490
|
+
}, null, 8, yi)
|
|
3491
|
+
]),
|
|
3492
|
+
_: 1
|
|
3493
|
+
}, 8, ["title", "disabled"])
|
|
3494
|
+
]),
|
|
3495
|
+
_: 1
|
|
3496
|
+
})
|
|
3497
|
+
])) : j("", !0),
|
|
3498
|
+
T("div", vi, pe(b.value), 1)
|
|
2396
3499
|
])
|
|
2397
|
-
])
|
|
2398
|
-
|
|
3500
|
+
]);
|
|
3501
|
+
};
|
|
2399
3502
|
}
|
|
2400
|
-
}),
|
|
3503
|
+
}), Ai = (e, t) => {
|
|
3504
|
+
const n = e.__vccOpts || e;
|
|
3505
|
+
for (const [o, r] of t)
|
|
3506
|
+
n[o] = r;
|
|
3507
|
+
return n;
|
|
3508
|
+
}, Ei = /* @__PURE__ */ Ai(wi, [["__scopeId", "data-v-695796d5"]]), z = [];
|
|
3509
|
+
for (let e = 0; e < 256; ++e)
|
|
3510
|
+
z.push((e + 256).toString(16).slice(1));
|
|
3511
|
+
function Si(e, t = 0) {
|
|
3512
|
+
return (z[e[t + 0]] + z[e[t + 1]] + z[e[t + 2]] + z[e[t + 3]] + "-" + z[e[t + 4]] + z[e[t + 5]] + "-" + z[e[t + 6]] + z[e[t + 7]] + "-" + z[e[t + 8]] + z[e[t + 9]] + "-" + z[e[t + 10]] + z[e[t + 11]] + z[e[t + 12]] + z[e[t + 13]] + z[e[t + 14]] + z[e[t + 15]]).toLowerCase();
|
|
3513
|
+
}
|
|
3514
|
+
let $e;
|
|
3515
|
+
const Ri = new Uint8Array(16);
|
|
3516
|
+
function xi() {
|
|
3517
|
+
if (!$e) {
|
|
3518
|
+
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
3519
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
3520
|
+
$e = crypto.getRandomValues.bind(crypto);
|
|
3521
|
+
}
|
|
3522
|
+
return $e(Ri);
|
|
3523
|
+
}
|
|
3524
|
+
const Bi = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Pt = { randomUUID: Bi };
|
|
3525
|
+
function Ci(e, t, n) {
|
|
3526
|
+
var r;
|
|
3527
|
+
if (Pt.randomUUID && !e)
|
|
3528
|
+
return Pt.randomUUID();
|
|
3529
|
+
e = e || {};
|
|
3530
|
+
const o = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? xi();
|
|
3531
|
+
if (o.length < 16)
|
|
3532
|
+
throw new Error("Random bytes length must be >= 16");
|
|
3533
|
+
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, Si(o);
|
|
3534
|
+
}
|
|
3535
|
+
const Ti = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFIGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoTWFjaW50b3NoKSIgeG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A2xK/fYBaV99XS/k5Ev/w+6IPetTo6+TraP74MnZHnFWClkuK/Zfbv8+j6UYcaR8xh6JOAB9eovwIYH0VoU2QP5F3P7wxMRj9BiarSSzuwCvjA/L3VtdrFvPYE9ie6qqYb0Omgfh3VKcvIIy5czz8YfQbnFJpLbegDeZGmjqxbSI3r+ScCtwL9GhzsS+jQ1tn1aLxuNRvMBR8OTCD4MZk4SJprO6JecOs6govcn88GfggcEXOwz5uZaboN2Qysi3p0Pf8Y40A4lfgUY96IduzcoaR4xqaOWRvW6nr+3sZJcg4wxNJuLjSOl2lKirU2djAWccvGkX+6cTYcE+G2pti26xnjZJkZhwcisQtMN6kCW4Ch5jUYyNSoufeMU2IBOtxmnpJiQ5zs1RAnD0xS837orHIHAb2MAyODDgzcs8j9fKNxgKwzIFehE8G9gT6fu1RJsSrutvk/GdqIAV0smzEAAAAASUVORK5CYII=", Di = { class: "q-chatbot" }, Oi = { class: "q-chatbot__content" }, Ii = { class: "q-chatbot__tools" }, Ni = {
|
|
3536
|
+
key: 0,
|
|
3537
|
+
class: "q-chatbot__image-preview"
|
|
3538
|
+
}, Li = ["src"], Ui = { class: "q-chatbot__footer-container" }, Fi = { class: "q-chatbot__input" }, Pi = { class: "q-chatbot__send-container" }, Mi = ["accept"], ra = /* @__PURE__ */ q({
|
|
2401
3539
|
name: "ChatBot",
|
|
2402
3540
|
__name: "ChatBot",
|
|
2403
3541
|
props: {
|
|
2404
3542
|
apiEndpoint: { default: "http://localhost:3000" },
|
|
3543
|
+
controllerEndpoint: {},
|
|
2405
3544
|
texts: { default: () => ({
|
|
2406
3545
|
chatbotTitle: "ChatBot",
|
|
2407
|
-
|
|
3546
|
+
sendMessage: "Send message",
|
|
3547
|
+
clearChat: "Clear chat",
|
|
2408
3548
|
inputLabel: "What can I help with?",
|
|
3549
|
+
imageUpload: "Upload Image",
|
|
3550
|
+
imageUploadQButton: "Upload Image",
|
|
3551
|
+
goodResponse: "Good response",
|
|
3552
|
+
badResponse: "Bad response",
|
|
2409
3553
|
initialMessage: "Howdy! I am GenioBot 👋, Quidgest's personal AI assistant! How can I help you?",
|
|
3554
|
+
initialAgentMessage: "Just a temporary message while we are working on the agent mode",
|
|
2410
3555
|
loginError: "Uh oh, I could not authenticate with the Quidgest API endpoint 😓",
|
|
2411
3556
|
botIsSick: "*cough cough* GenioBot is not feeling alright 🥴️🤒, looks like something failed!"
|
|
2412
3557
|
}) },
|
|
2413
3558
|
username: {},
|
|
2414
3559
|
projectPath: {},
|
|
2415
|
-
|
|
3560
|
+
userImage: { default: ki },
|
|
3561
|
+
chatbotImage: { default: Ti },
|
|
3562
|
+
dateFormat: {},
|
|
3563
|
+
mode: { default: "chat" }
|
|
2416
3564
|
},
|
|
2417
3565
|
setup(e) {
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
3566
|
+
const t = M([]), n = M(1), o = M(""), r = M(!1), s = M(!1), i = M(null), a = M(!0), d = M(null), c = M(null), u = S(() => ".png, .jpeg, .jpg, .svg, .webp"), f = M(!1), b = S(() => o.value.trim().length === 0 || r.value || s.value), p = e;
|
|
3567
|
+
Ue(() => {
|
|
3568
|
+
R(), oe(() => {
|
|
3569
|
+
var v;
|
|
3570
|
+
(v = i.value) == null || v.addEventListener("scroll", X);
|
|
3571
|
+
});
|
|
2422
3572
|
});
|
|
2423
|
-
|
|
2424
|
-
|
|
3573
|
+
const m = S(() => s.value || r.value), g = S(() => ({
|
|
3574
|
+
"q-chatbot__footer-disabled": m.value
|
|
3575
|
+
}));
|
|
3576
|
+
function h(v) {
|
|
3577
|
+
s.value = v;
|
|
2425
3578
|
}
|
|
2426
|
-
function
|
|
2427
|
-
|
|
2428
|
-
username:
|
|
3579
|
+
function R() {
|
|
3580
|
+
F.post(p.apiEndpoint + "/auth/login", {
|
|
3581
|
+
username: p.username,
|
|
2429
3582
|
password: "test"
|
|
2430
|
-
}).then((
|
|
2431
|
-
if (
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
}).catch((
|
|
2437
|
-
|
|
2438
|
-
`The following error ocurred while trying to login:
|
|
2439
|
-
` + g
|
|
2440
|
-
);
|
|
3583
|
+
}).then((v) => {
|
|
3584
|
+
if (v.status !== 200 || !v.data.success) {
|
|
3585
|
+
h(!0), y(p.texts.loginError), console.log(`Unsuccessful login, endpoint gave status ${v.status}`);
|
|
3586
|
+
return;
|
|
3587
|
+
}
|
|
3588
|
+
k();
|
|
3589
|
+
}).catch((v) => {
|
|
3590
|
+
h(!0), y(p.texts.loginError), console.log("Error during login: " + v);
|
|
2441
3591
|
});
|
|
2442
3592
|
}
|
|
2443
|
-
function
|
|
2444
|
-
|
|
2445
|
-
username:
|
|
2446
|
-
project:
|
|
2447
|
-
}).then((
|
|
2448
|
-
if (
|
|
2449
|
-
|
|
2450
|
-
|
|
3593
|
+
function k() {
|
|
3594
|
+
F.post(p.apiEndpoint + "/prompt/load", {
|
|
3595
|
+
username: p.username,
|
|
3596
|
+
project: p.projectPath
|
|
3597
|
+
}).then((v) => {
|
|
3598
|
+
if (v.status !== 200 || !v.data.success) {
|
|
3599
|
+
h(!0), y(p.texts.loginError), console.log(`Unsuccessful load, endpoint gave status ${v.status}`);
|
|
3600
|
+
return;
|
|
3601
|
+
}
|
|
3602
|
+
I(), v.data.history.forEach((B) => {
|
|
3603
|
+
const L = B.imageUrl ? p.controllerEndpoint + B.imageUrl : void 0;
|
|
3604
|
+
y(
|
|
3605
|
+
B.content,
|
|
3606
|
+
B.type === "ai" ? "bot" : "user",
|
|
3607
|
+
L,
|
|
3608
|
+
B.sessionID
|
|
2451
3609
|
);
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
w.content,
|
|
2456
|
-
w.type === "ai" ? "bot" : "user"
|
|
2457
|
-
);
|
|
2458
|
-
}
|
|
2459
|
-
);
|
|
2460
|
-
}).catch((g) => {
|
|
2461
|
-
f(!0), d(a.texts.loginError), console.log(
|
|
2462
|
-
`The following error ocurred while trying to login:
|
|
2463
|
-
` + g
|
|
2464
|
-
);
|
|
3610
|
+
});
|
|
3611
|
+
}).catch((v) => {
|
|
3612
|
+
h(!0), y(p.texts.loginError), console.log("Error loading chat data: " + v);
|
|
2465
3613
|
});
|
|
2466
3614
|
}
|
|
2467
|
-
function
|
|
3615
|
+
function y(v, B = "bot", L = null, ae, Q) {
|
|
2468
3616
|
t.value.push({
|
|
2469
|
-
id: n++,
|
|
2470
|
-
message:
|
|
3617
|
+
id: n.value++,
|
|
3618
|
+
message: v,
|
|
2471
3619
|
date: /* @__PURE__ */ new Date(),
|
|
2472
|
-
sender:
|
|
2473
|
-
|
|
3620
|
+
sender: B,
|
|
3621
|
+
imagePreviewUrl: L ?? void 0,
|
|
3622
|
+
sessionID: ae || Ci(),
|
|
3623
|
+
isWelcomeMessage: Q ?? !1
|
|
3624
|
+
}), oe(() => {
|
|
3625
|
+
a.value && H();
|
|
3626
|
+
});
|
|
2474
3627
|
}
|
|
2475
|
-
function
|
|
3628
|
+
function O() {
|
|
2476
3629
|
return t.value.find(
|
|
2477
|
-
(
|
|
3630
|
+
(v) => v.id === n.value - 1
|
|
2478
3631
|
);
|
|
2479
3632
|
}
|
|
2480
|
-
function
|
|
2481
|
-
|
|
3633
|
+
function I() {
|
|
3634
|
+
const v = p.mode === "chat" ? p.texts.initialMessage : p.texts.initialAgentMessage;
|
|
3635
|
+
y(v, "bot", null, void 0, !0);
|
|
2482
3636
|
}
|
|
2483
|
-
function
|
|
2484
|
-
t.value = [],
|
|
3637
|
+
function N() {
|
|
3638
|
+
t.value = [], o.value = "", r.value = !1, h(!1), a.value = !0;
|
|
2485
3639
|
}
|
|
2486
|
-
function
|
|
2487
|
-
|
|
2488
|
-
|
|
3640
|
+
function H() {
|
|
3641
|
+
oe(() => {
|
|
3642
|
+
i.value && i.value.scrollTo({
|
|
3643
|
+
top: i.value.scrollHeight,
|
|
3644
|
+
behavior: "smooth"
|
|
3645
|
+
});
|
|
3646
|
+
});
|
|
2489
3647
|
}
|
|
2490
|
-
function
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
3648
|
+
function X() {
|
|
3649
|
+
if (i.value) {
|
|
3650
|
+
const { scrollTop: B, clientHeight: L, scrollHeight: ae } = i.value;
|
|
3651
|
+
B + L >= ae - 20 ? a.value = !0 : a.value = !1;
|
|
3652
|
+
}
|
|
3653
|
+
}
|
|
3654
|
+
function K() {
|
|
3655
|
+
c.value = "", d.value && (d.value.value = ""), f.value = !1;
|
|
3656
|
+
}
|
|
3657
|
+
function we() {
|
|
3658
|
+
var v;
|
|
3659
|
+
(v = d.value) == null || v.click();
|
|
3660
|
+
}
|
|
3661
|
+
function ie(v) {
|
|
3662
|
+
const B = v.target;
|
|
3663
|
+
d.value = B, B.files && B.files[0] && (c.value = URL.createObjectURL(B.files[0]), f.value = !0);
|
|
3664
|
+
}
|
|
3665
|
+
function ce() {
|
|
3666
|
+
var v, B;
|
|
3667
|
+
o.value.trim().length === 0 || r.value || s.value || (y(o.value, "user", c.value), H(), He(o.value, (B = (v = d.value) == null ? void 0 : v.files) == null ? void 0 : B[0]), K(), o.value = "");
|
|
3668
|
+
}
|
|
3669
|
+
function He(v, B) {
|
|
3670
|
+
y("", "bot");
|
|
3671
|
+
let L = O();
|
|
3672
|
+
const ae = (L == null ? void 0 : L.sessionID) || "";
|
|
3673
|
+
let Q = null;
|
|
3674
|
+
B ? (Q = new FormData(), Q.append("message", v), Q.append("project", p.projectPath), Q.append("user", p.username), Q.append("image", B), Q.append("sessionID", ae)) : Q = {
|
|
3675
|
+
message: v,
|
|
3676
|
+
project: p.projectPath,
|
|
3677
|
+
user: p.username,
|
|
3678
|
+
sessionID: ae
|
|
3679
|
+
}, r.value = !0, F({
|
|
3680
|
+
url: p.apiEndpoint + "/prompt/message",
|
|
2502
3681
|
method: "POST",
|
|
2503
|
-
data:
|
|
2504
|
-
onDownloadProgress: (
|
|
2505
|
-
var
|
|
2506
|
-
const
|
|
2507
|
-
((
|
|
3682
|
+
data: Q,
|
|
3683
|
+
onDownloadProgress: (ne) => {
|
|
3684
|
+
var Z, mt;
|
|
3685
|
+
const x = (Z = ne.event) == null ? void 0 : Z.currentTarget.response;
|
|
3686
|
+
((mt = ne.event) == null ? void 0 : mt.currentTarget.status) === 200 && (L && (L.message = x), a.value && H());
|
|
2508
3687
|
}
|
|
2509
|
-
}).then(({ data:
|
|
2510
|
-
|
|
2511
|
-
}).catch((
|
|
2512
|
-
|
|
3688
|
+
}).then(({ data: ne }) => {
|
|
3689
|
+
L && (L.message = ne);
|
|
3690
|
+
}).catch((ne) => {
|
|
3691
|
+
y(p.texts.botIsSick), h(!0), console.log(ne);
|
|
2513
3692
|
}).finally(() => {
|
|
2514
|
-
|
|
3693
|
+
r.value = !1;
|
|
2515
3694
|
});
|
|
2516
3695
|
}
|
|
2517
|
-
function
|
|
2518
|
-
|
|
2519
|
-
username:
|
|
2520
|
-
project:
|
|
2521
|
-
}).then((
|
|
2522
|
-
if (
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
}).catch((
|
|
2528
|
-
|
|
2529
|
-
`The following error ocurred while trying to communicate with the endpoint:
|
|
2530
|
-
` + g
|
|
2531
|
-
);
|
|
3696
|
+
function Ge() {
|
|
3697
|
+
F.post(p.apiEndpoint + "/prompt/clear", {
|
|
3698
|
+
username: p.username,
|
|
3699
|
+
project: p.projectPath
|
|
3700
|
+
}).then((v) => {
|
|
3701
|
+
if (v.status !== 200 || !v.data.success) {
|
|
3702
|
+
h(!0), y(p.texts.loginError), console.log(`Unsuccessful clear, endpoint gave status ${v.status}`);
|
|
3703
|
+
return;
|
|
3704
|
+
}
|
|
3705
|
+
N(), I();
|
|
3706
|
+
}).catch((v) => {
|
|
3707
|
+
h(!0), y(p.texts.loginError), console.log("Error clearing chat: " + v);
|
|
2532
3708
|
});
|
|
2533
3709
|
}
|
|
2534
|
-
function
|
|
2535
|
-
const
|
|
2536
|
-
return
|
|
3710
|
+
function Ve(v) {
|
|
3711
|
+
const B = ["q-chatbot__messages-wrapper"];
|
|
3712
|
+
return v === "user" && B.push("q-chatbot__messages-wrapper_right"), B;
|
|
2537
3713
|
}
|
|
2538
|
-
return
|
|
2539
|
-
() =>
|
|
3714
|
+
return re(
|
|
3715
|
+
() => p.apiEndpoint,
|
|
2540
3716
|
() => {
|
|
2541
|
-
|
|
3717
|
+
N(), R();
|
|
2542
3718
|
}
|
|
2543
|
-
), (
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
title:
|
|
3719
|
+
), (v, B) => (w(), C("div", Di, [
|
|
3720
|
+
T("div", Oi, [
|
|
3721
|
+
T("div", Ii, [
|
|
3722
|
+
P(A(te), {
|
|
3723
|
+
title: p.texts.clearChat,
|
|
2548
3724
|
"b-style": "secondary",
|
|
2549
|
-
disabled:
|
|
3725
|
+
disabled: s.value,
|
|
2550
3726
|
borderless: "",
|
|
2551
|
-
onClick:
|
|
3727
|
+
onClick: Ge
|
|
2552
3728
|
}, {
|
|
2553
|
-
default:
|
|
2554
|
-
|
|
3729
|
+
default: D(() => [
|
|
3730
|
+
P(A(se), { icon: "bin" })
|
|
2555
3731
|
]),
|
|
2556
3732
|
_: 1
|
|
2557
3733
|
}, 8, ["title", "disabled"])
|
|
2558
3734
|
]),
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
3735
|
+
T("div", {
|
|
3736
|
+
ref_key: "messagesContainer",
|
|
3737
|
+
ref: i,
|
|
3738
|
+
class: "q-chatbot__messages-container",
|
|
3739
|
+
onScroll: X
|
|
3740
|
+
}, [
|
|
3741
|
+
(w(!0), C(fe, null, ct(t.value, (L) => (w(), C("div", {
|
|
3742
|
+
key: L.id,
|
|
3743
|
+
class: V(Ve(L.sender))
|
|
2563
3744
|
}, [
|
|
2564
|
-
|
|
2565
|
-
"date-format":
|
|
2566
|
-
|
|
2567
|
-
|
|
3745
|
+
P(A(Ei), le({ ref_for: !0 }, L, {
|
|
3746
|
+
"date-format": p.dateFormat,
|
|
3747
|
+
"user-image": p.userImage,
|
|
3748
|
+
"chatbot-image": p.chatbotImage,
|
|
3749
|
+
loading: r.value && !L.message,
|
|
3750
|
+
imagePreviewUrl: L.imagePreviewUrl,
|
|
3751
|
+
apiEndpoint: p.apiEndpoint,
|
|
3752
|
+
sessionID: L.sessionID
|
|
3753
|
+
}), null, 16, ["date-format", "user-image", "chatbot-image", "loading", "imagePreviewUrl", "apiEndpoint", "sessionID"])
|
|
2568
3754
|
], 2))), 128))
|
|
2569
|
-
]),
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
P(
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
rows: 2,
|
|
2585
|
-
disabled: R(i),
|
|
2586
|
-
onKeyup: Gt(h, ["enter"])
|
|
2587
|
-
}, null, 8, ["modelValue", "disabled"])
|
|
3755
|
+
], 544),
|
|
3756
|
+
c.value ? (w(), C("div", Ni, [
|
|
3757
|
+
T("img", {
|
|
3758
|
+
src: c.value,
|
|
3759
|
+
alt: "Image preview"
|
|
3760
|
+
}, null, 8, Li),
|
|
3761
|
+
P(A(te), {
|
|
3762
|
+
class: "q-chatbot__remove-image",
|
|
3763
|
+
"b-style": "secondary",
|
|
3764
|
+
flat: "",
|
|
3765
|
+
round: "",
|
|
3766
|
+
onClick: K
|
|
3767
|
+
}, {
|
|
3768
|
+
default: D(() => [
|
|
3769
|
+
P(A(se), { icon: "bin" })
|
|
2588
3770
|
]),
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
3771
|
+
_: 1
|
|
3772
|
+
})
|
|
3773
|
+
])) : j("", !0)
|
|
3774
|
+
]),
|
|
3775
|
+
T("div", Ui, [
|
|
3776
|
+
P(A(yn), {
|
|
3777
|
+
label: p.texts.inputLabel
|
|
3778
|
+
}, null, 8, ["label"]),
|
|
3779
|
+
T("div", {
|
|
3780
|
+
class: V(["q-chatbot__footer", g.value])
|
|
3781
|
+
}, [
|
|
3782
|
+
T("div", Fi, [
|
|
3783
|
+
P(A(ni), {
|
|
3784
|
+
modelValue: o.value,
|
|
3785
|
+
"onUpdate:modelValue": B[0] || (B[0] = (L) => o.value = L),
|
|
3786
|
+
size: "block",
|
|
3787
|
+
autosize: "",
|
|
3788
|
+
resize: "none",
|
|
3789
|
+
rows: 2,
|
|
3790
|
+
disabled: m.value,
|
|
3791
|
+
onKeyup: Ht(ce, ["enter"])
|
|
3792
|
+
}, null, 8, ["modelValue", "disabled"])
|
|
3793
|
+
]),
|
|
3794
|
+
T("div", Pi, [
|
|
3795
|
+
P(A(te), {
|
|
3796
|
+
title: p.texts.imageUpload,
|
|
3797
|
+
"b-style": "primary",
|
|
3798
|
+
class: "q-chatbot__upload",
|
|
3799
|
+
disabled: s.value || r.value || f.value,
|
|
3800
|
+
onClick: we
|
|
3801
|
+
}, {
|
|
3802
|
+
default: D(() => [
|
|
3803
|
+
P(A(se), { icon: "upload" })
|
|
3804
|
+
]),
|
|
3805
|
+
_: 1
|
|
3806
|
+
}, 8, ["title", "disabled"]),
|
|
3807
|
+
T("input", {
|
|
3808
|
+
id: "image-upload",
|
|
3809
|
+
type: "file",
|
|
3810
|
+
ref_key: "imageInput",
|
|
3811
|
+
ref: d,
|
|
3812
|
+
onChange: ie,
|
|
3813
|
+
accept: u.value,
|
|
3814
|
+
class: "hidden-input",
|
|
3815
|
+
style: { display: "none" }
|
|
3816
|
+
}, null, 40, Mi),
|
|
3817
|
+
B[1] || (B[1] = T("div", { class: "spacer" }, null, -1)),
|
|
3818
|
+
P(A(te), {
|
|
3819
|
+
title: p.texts.sendMessage,
|
|
3820
|
+
"b-style": "primary",
|
|
3821
|
+
class: "q-chatbot__send",
|
|
3822
|
+
disabled: b.value,
|
|
3823
|
+
readonly: m.value,
|
|
3824
|
+
loading: r.value,
|
|
3825
|
+
onClick: ce
|
|
3826
|
+
}, {
|
|
3827
|
+
default: D(() => [
|
|
3828
|
+
P(A(se), { icon: "send" })
|
|
3829
|
+
]),
|
|
3830
|
+
_: 1
|
|
3831
|
+
}, 8, ["title", "disabled", "readonly", "loading"])
|
|
2604
3832
|
])
|
|
2605
|
-
])
|
|
3833
|
+
], 2)
|
|
2606
3834
|
])
|
|
2607
3835
|
]));
|
|
2608
3836
|
}
|
|
2609
3837
|
});
|
|
2610
3838
|
export {
|
|
2611
|
-
|
|
3839
|
+
ra as default
|
|
2612
3840
|
};
|