@sfgrp/distinguish 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/distinguish.es.js +959 -939
- package/dist/distinguish.umd.js +4 -4
- package/package.json +8 -2
package/dist/distinguish.es.js
CHANGED
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { defineStore as je, createPinia as
|
|
3
|
-
function
|
|
1
|
+
import { defineComponent as S, computed as C, openBlock as p, createElementBlock as y, withDirectives as q, createElementVNode as f, vModelCheckbox as le, createTextVNode as j, Fragment as U, renderList as B, toDisplayString as E, vModelSelect as ce, unref as k, normalizeClass as be, renderSlot as $, onMounted as pt, onUnmounted as ft, createBlock as R, Transition as mt, withCtx as w, normalizeStyle as Kt, withModifiers as zt, ref as G, createVNode as v, createCommentVNode as M, watch as Jt, withKeys as ht, vModelText as gt, resolveDynamicComponent as Wt, normalizeProps as We, guardReactiveProps as Ge, createApp as Gt } from "vue";
|
|
2
|
+
import { defineStore as je, createPinia as Qt } from "pinia";
|
|
3
|
+
function yt(e, t) {
|
|
4
4
|
return function() {
|
|
5
5
|
return e.apply(t, arguments);
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
const { toString:
|
|
9
|
-
const n =
|
|
8
|
+
const { toString: Xt } = Object.prototype, { getPrototypeOf: Be } = Object, _e = /* @__PURE__ */ ((e) => (t) => {
|
|
9
|
+
const n = Xt.call(t);
|
|
10
10
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
11
11
|
})(/* @__PURE__ */ Object.create(null)), H = (e) => (e = e.toLowerCase(), (t) => _e(t) === e), we = (e) => (t) => typeof t === e, { isArray: ne } = Array, ae = we("undefined");
|
|
12
|
-
function
|
|
13
|
-
return e !== null && !ae(e) && e.constructor !== null && !ae(e.constructor) &&
|
|
12
|
+
function Yt(e) {
|
|
13
|
+
return e !== null && !ae(e) && e.constructor !== null && !ae(e.constructor) && V(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
14
14
|
}
|
|
15
|
-
const
|
|
16
|
-
function
|
|
15
|
+
const bt = H("ArrayBuffer");
|
|
16
|
+
function Zt(e) {
|
|
17
17
|
let t;
|
|
18
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
18
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && bt(e.buffer), t;
|
|
19
19
|
}
|
|
20
|
-
const
|
|
20
|
+
const en = we("string"), V = we("function"), _t = we("number"), Se = (e) => e !== null && typeof e == "object", tn = (e) => e === !0 || e === !1, me = (e) => {
|
|
21
21
|
if (_e(e) !== "object")
|
|
22
22
|
return !1;
|
|
23
23
|
const t = Be(e);
|
|
24
24
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
25
|
-
},
|
|
25
|
+
}, nn = H("Date"), sn = H("File"), rn = H("Blob"), on = H("FileList"), an = (e) => Se(e) && V(e.pipe), ln = (e) => {
|
|
26
26
|
let t;
|
|
27
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
28
|
-
t === "object" &&
|
|
29
|
-
},
|
|
27
|
+
return e && (typeof FormData == "function" && e instanceof FormData || V(e.append) && ((t = _e(e)) === "formdata" || // detect form-data instance
|
|
28
|
+
t === "object" && V(e.toString) && e.toString() === "[object FormData]"));
|
|
29
|
+
}, cn = H("URLSearchParams"), [un, dn, pn, fn] = ["ReadableStream", "Request", "Response", "Headers"].map(H), mn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
30
30
|
function ue(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
31
31
|
if (e === null || typeof e > "u")
|
|
32
32
|
return;
|
|
33
|
-
let
|
|
33
|
+
let s, r;
|
|
34
34
|
if (typeof e != "object" && (e = [e]), ne(e))
|
|
35
|
-
for (
|
|
36
|
-
t.call(null, e[
|
|
35
|
+
for (s = 0, r = e.length; s < r; s++)
|
|
36
|
+
t.call(null, e[s], s, e);
|
|
37
37
|
else {
|
|
38
38
|
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
39
39
|
let a;
|
|
40
|
-
for (
|
|
41
|
-
a = o[
|
|
40
|
+
for (s = 0; s < i; s++)
|
|
41
|
+
a = o[s], t.call(null, e[a], a, e);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function wt(e, t) {
|
|
45
45
|
t = t.toLowerCase();
|
|
46
46
|
const n = Object.keys(e);
|
|
47
|
-
let
|
|
48
|
-
for (;
|
|
49
|
-
if (
|
|
50
|
-
return
|
|
47
|
+
let s = n.length, r;
|
|
48
|
+
for (; s-- > 0; )
|
|
49
|
+
if (r = n[s], t === r.toLowerCase())
|
|
50
|
+
return r;
|
|
51
51
|
return null;
|
|
52
52
|
}
|
|
53
|
-
const Y = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
53
|
+
const Y = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, St = (e) => !ae(e) && e !== Y;
|
|
54
54
|
function De() {
|
|
55
|
-
const { caseless: e } =
|
|
56
|
-
const o = e &&
|
|
57
|
-
me(t[o]) && me(
|
|
55
|
+
const { caseless: e } = St(this) && this || {}, t = {}, n = (s, r) => {
|
|
56
|
+
const o = e && wt(t, r) || r;
|
|
57
|
+
me(t[o]) && me(s) ? t[o] = De(t[o], s) : me(s) ? t[o] = De({}, s) : ne(s) ? t[o] = s.slice() : t[o] = s;
|
|
58
58
|
};
|
|
59
|
-
for (let
|
|
60
|
-
arguments[
|
|
59
|
+
for (let s = 0, r = arguments.length; s < r; s++)
|
|
60
|
+
arguments[s] && ue(arguments[s], n);
|
|
61
61
|
return t;
|
|
62
62
|
}
|
|
63
|
-
const
|
|
64
|
-
n &&
|
|
65
|
-
}, { allOwnKeys:
|
|
66
|
-
e.prototype = Object.create(t.prototype,
|
|
63
|
+
const hn = (e, t, n, { allOwnKeys: s } = {}) => (ue(t, (r, o) => {
|
|
64
|
+
n && V(r) ? e[o] = yt(r, n) : e[o] = r;
|
|
65
|
+
}, { allOwnKeys: s }), e), gn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), yn = (e, t, n, s) => {
|
|
66
|
+
e.prototype = Object.create(t.prototype, s), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
67
67
|
value: t.prototype
|
|
68
68
|
}), n && Object.assign(e.prototype, n);
|
|
69
|
-
},
|
|
70
|
-
let
|
|
69
|
+
}, bn = (e, t, n, s) => {
|
|
70
|
+
let r, o, i;
|
|
71
71
|
const a = {};
|
|
72
72
|
if (t = t || {}, e == null) return t;
|
|
73
73
|
do {
|
|
74
|
-
for (
|
|
75
|
-
i =
|
|
74
|
+
for (r = Object.getOwnPropertyNames(e), o = r.length; o-- > 0; )
|
|
75
|
+
i = r[o], (!s || s(i, e, t)) && !a[i] && (t[i] = e[i], a[i] = !0);
|
|
76
76
|
e = n !== !1 && Be(e);
|
|
77
77
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
78
78
|
return t;
|
|
79
|
-
},
|
|
79
|
+
}, _n = (e, t, n) => {
|
|
80
80
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
81
|
-
const
|
|
82
|
-
return
|
|
83
|
-
},
|
|
81
|
+
const s = e.indexOf(t, n);
|
|
82
|
+
return s !== -1 && s === n;
|
|
83
|
+
}, wn = (e) => {
|
|
84
84
|
if (!e) return null;
|
|
85
85
|
if (ne(e)) return e;
|
|
86
86
|
let t = e.length;
|
|
87
|
-
if (!
|
|
87
|
+
if (!_t(t)) return null;
|
|
88
88
|
const n = new Array(t);
|
|
89
89
|
for (; t-- > 0; )
|
|
90
90
|
n[t] = e[t];
|
|
91
91
|
return n;
|
|
92
|
-
},
|
|
93
|
-
const
|
|
94
|
-
let
|
|
95
|
-
for (; (
|
|
96
|
-
const o =
|
|
92
|
+
}, Sn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Be(Uint8Array)), vn = (e, t) => {
|
|
93
|
+
const s = (e && e[Symbol.iterator]).call(e);
|
|
94
|
+
let r;
|
|
95
|
+
for (; (r = s.next()) && !r.done; ) {
|
|
96
|
+
const o = r.value;
|
|
97
97
|
t.call(e, o[0], o[1]);
|
|
98
98
|
}
|
|
99
|
-
},
|
|
99
|
+
}, En = (e, t) => {
|
|
100
100
|
let n;
|
|
101
|
-
const
|
|
101
|
+
const s = [];
|
|
102
102
|
for (; (n = e.exec(t)) !== null; )
|
|
103
|
-
|
|
104
|
-
return
|
|
105
|
-
},
|
|
103
|
+
s.push(n);
|
|
104
|
+
return s;
|
|
105
|
+
}, Rn = H("HTMLFormElement"), Tn = (e) => e.toLowerCase().replace(
|
|
106
106
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
107
|
-
function(n,
|
|
108
|
-
return
|
|
107
|
+
function(n, s, r) {
|
|
108
|
+
return s.toUpperCase() + r;
|
|
109
109
|
}
|
|
110
|
-
),
|
|
111
|
-
const n = Object.getOwnPropertyDescriptors(e),
|
|
112
|
-
ue(n, (
|
|
110
|
+
), Qe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), On = H("RegExp"), vt = (e, t) => {
|
|
111
|
+
const n = Object.getOwnPropertyDescriptors(e), s = {};
|
|
112
|
+
ue(n, (r, o) => {
|
|
113
113
|
let i;
|
|
114
|
-
(i = t(
|
|
115
|
-
}), Object.defineProperties(e,
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
if (
|
|
114
|
+
(i = t(r, o, e)) !== !1 && (s[o] = i || r);
|
|
115
|
+
}), Object.defineProperties(e, s);
|
|
116
|
+
}, kn = (e) => {
|
|
117
|
+
vt(e, (t, n) => {
|
|
118
|
+
if (V(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
119
119
|
return !1;
|
|
120
|
-
const
|
|
121
|
-
if (
|
|
120
|
+
const s = e[n];
|
|
121
|
+
if (V(s)) {
|
|
122
122
|
if (t.enumerable = !1, "writable" in t) {
|
|
123
123
|
t.writable = !1;
|
|
124
124
|
return;
|
|
@@ -128,114 +128,114 @@ const fn = (e, t, n, { allOwnKeys: r } = {}) => (ue(t, (s, o) => {
|
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
});
|
|
131
|
-
},
|
|
132
|
-
const n = {},
|
|
133
|
-
|
|
131
|
+
}, xn = (e, t) => {
|
|
132
|
+
const n = {}, s = (r) => {
|
|
133
|
+
r.forEach((o) => {
|
|
134
134
|
n[o] = !0;
|
|
135
135
|
});
|
|
136
136
|
};
|
|
137
|
-
return ne(e) ?
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
DIGIT:
|
|
137
|
+
return ne(e) ? s(e) : s(String(e).split(t)), n;
|
|
138
|
+
}, An = () => {
|
|
139
|
+
}, In = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, ke = "abcdefghijklmnopqrstuvwxyz", Xe = "0123456789", Et = {
|
|
140
|
+
DIGIT: Xe,
|
|
141
141
|
ALPHA: ke,
|
|
142
|
-
ALPHA_DIGIT: ke + ke.toUpperCase() +
|
|
143
|
-
},
|
|
142
|
+
ALPHA_DIGIT: ke + ke.toUpperCase() + Xe
|
|
143
|
+
}, Cn = (e = 16, t = Et.ALPHA_DIGIT) => {
|
|
144
144
|
let n = "";
|
|
145
|
-
const { length:
|
|
145
|
+
const { length: s } = t;
|
|
146
146
|
for (; e--; )
|
|
147
|
-
n += t[Math.random() *
|
|
147
|
+
n += t[Math.random() * s | 0];
|
|
148
148
|
return n;
|
|
149
149
|
};
|
|
150
|
-
function
|
|
151
|
-
return !!(e &&
|
|
150
|
+
function Dn(e) {
|
|
151
|
+
return !!(e && V(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
152
152
|
}
|
|
153
|
-
const
|
|
154
|
-
const t = new Array(10), n = (
|
|
155
|
-
if (Se(
|
|
156
|
-
if (t.indexOf(
|
|
153
|
+
const Un = (e) => {
|
|
154
|
+
const t = new Array(10), n = (s, r) => {
|
|
155
|
+
if (Se(s)) {
|
|
156
|
+
if (t.indexOf(s) >= 0)
|
|
157
157
|
return;
|
|
158
|
-
if (!("toJSON" in
|
|
159
|
-
t[
|
|
160
|
-
const o = ne(
|
|
161
|
-
return ue(
|
|
162
|
-
const d = n(i,
|
|
158
|
+
if (!("toJSON" in s)) {
|
|
159
|
+
t[r] = s;
|
|
160
|
+
const o = ne(s) ? [] : {};
|
|
161
|
+
return ue(s, (i, a) => {
|
|
162
|
+
const d = n(i, r + 1);
|
|
163
163
|
!ae(d) && (o[a] = d);
|
|
164
|
-
}), t[
|
|
164
|
+
}), t[r] = void 0, o;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
return
|
|
167
|
+
return s;
|
|
168
168
|
};
|
|
169
169
|
return n(e, 0);
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
}, !1), (
|
|
173
|
-
|
|
170
|
+
}, Ln = H("AsyncFunction"), $n = (e) => e && (Se(e) || V(e)) && V(e.then) && V(e.catch), Rt = ((e, t) => e ? setImmediate : t ? ((n, s) => (Y.addEventListener("message", ({ source: r, data: o }) => {
|
|
171
|
+
r === Y && o === n && s.length && s.shift()();
|
|
172
|
+
}, !1), (r) => {
|
|
173
|
+
s.push(r), Y.postMessage(n, "*");
|
|
174
174
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
175
175
|
typeof setImmediate == "function",
|
|
176
|
-
|
|
177
|
-
),
|
|
176
|
+
V(Y.postMessage)
|
|
177
|
+
), Pn = typeof queueMicrotask < "u" ? queueMicrotask.bind(Y) : typeof process < "u" && process.nextTick || Rt, l = {
|
|
178
178
|
isArray: ne,
|
|
179
|
-
isArrayBuffer:
|
|
180
|
-
isBuffer:
|
|
181
|
-
isFormData:
|
|
182
|
-
isArrayBufferView:
|
|
183
|
-
isString:
|
|
184
|
-
isNumber:
|
|
185
|
-
isBoolean:
|
|
179
|
+
isArrayBuffer: bt,
|
|
180
|
+
isBuffer: Yt,
|
|
181
|
+
isFormData: ln,
|
|
182
|
+
isArrayBufferView: Zt,
|
|
183
|
+
isString: en,
|
|
184
|
+
isNumber: _t,
|
|
185
|
+
isBoolean: tn,
|
|
186
186
|
isObject: Se,
|
|
187
187
|
isPlainObject: me,
|
|
188
|
-
isReadableStream:
|
|
189
|
-
isRequest:
|
|
190
|
-
isResponse:
|
|
191
|
-
isHeaders:
|
|
188
|
+
isReadableStream: un,
|
|
189
|
+
isRequest: dn,
|
|
190
|
+
isResponse: pn,
|
|
191
|
+
isHeaders: fn,
|
|
192
192
|
isUndefined: ae,
|
|
193
|
-
isDate:
|
|
194
|
-
isFile:
|
|
195
|
-
isBlob:
|
|
196
|
-
isRegExp:
|
|
197
|
-
isFunction:
|
|
198
|
-
isStream:
|
|
199
|
-
isURLSearchParams:
|
|
200
|
-
isTypedArray:
|
|
201
|
-
isFileList:
|
|
193
|
+
isDate: nn,
|
|
194
|
+
isFile: sn,
|
|
195
|
+
isBlob: rn,
|
|
196
|
+
isRegExp: On,
|
|
197
|
+
isFunction: V,
|
|
198
|
+
isStream: an,
|
|
199
|
+
isURLSearchParams: cn,
|
|
200
|
+
isTypedArray: Sn,
|
|
201
|
+
isFileList: on,
|
|
202
202
|
forEach: ue,
|
|
203
203
|
merge: De,
|
|
204
|
-
extend:
|
|
205
|
-
trim:
|
|
206
|
-
stripBOM:
|
|
207
|
-
inherits:
|
|
208
|
-
toFlatObject:
|
|
204
|
+
extend: hn,
|
|
205
|
+
trim: mn,
|
|
206
|
+
stripBOM: gn,
|
|
207
|
+
inherits: yn,
|
|
208
|
+
toFlatObject: bn,
|
|
209
209
|
kindOf: _e,
|
|
210
210
|
kindOfTest: H,
|
|
211
|
-
endsWith:
|
|
212
|
-
toArray:
|
|
213
|
-
forEachEntry:
|
|
214
|
-
matchAll:
|
|
215
|
-
isHTMLForm:
|
|
216
|
-
hasOwnProperty:
|
|
217
|
-
hasOwnProp:
|
|
211
|
+
endsWith: _n,
|
|
212
|
+
toArray: wn,
|
|
213
|
+
forEachEntry: vn,
|
|
214
|
+
matchAll: En,
|
|
215
|
+
isHTMLForm: Rn,
|
|
216
|
+
hasOwnProperty: Qe,
|
|
217
|
+
hasOwnProp: Qe,
|
|
218
218
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
219
|
-
reduceDescriptors:
|
|
220
|
-
freezeMethods:
|
|
221
|
-
toObjectSet:
|
|
222
|
-
toCamelCase:
|
|
223
|
-
noop:
|
|
224
|
-
toFiniteNumber:
|
|
225
|
-
findKey:
|
|
219
|
+
reduceDescriptors: vt,
|
|
220
|
+
freezeMethods: kn,
|
|
221
|
+
toObjectSet: xn,
|
|
222
|
+
toCamelCase: Tn,
|
|
223
|
+
noop: An,
|
|
224
|
+
toFiniteNumber: In,
|
|
225
|
+
findKey: wt,
|
|
226
226
|
global: Y,
|
|
227
|
-
isContextDefined:
|
|
228
|
-
ALPHABET:
|
|
229
|
-
generateString:
|
|
230
|
-
isSpecCompliantForm:
|
|
231
|
-
toJSONObject:
|
|
232
|
-
isAsyncFn:
|
|
233
|
-
isThenable:
|
|
234
|
-
setImmediate:
|
|
235
|
-
asap:
|
|
227
|
+
isContextDefined: St,
|
|
228
|
+
ALPHABET: Et,
|
|
229
|
+
generateString: Cn,
|
|
230
|
+
isSpecCompliantForm: Dn,
|
|
231
|
+
toJSONObject: Un,
|
|
232
|
+
isAsyncFn: Ln,
|
|
233
|
+
isThenable: $n,
|
|
234
|
+
setImmediate: Rt,
|
|
235
|
+
asap: Pn
|
|
236
236
|
};
|
|
237
|
-
function b(e, t, n,
|
|
238
|
-
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),
|
|
237
|
+
function b(e, t, n, s, r) {
|
|
238
|
+
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), s && (this.request = s), r && (this.response = r, this.status = r.status ? r.status : null);
|
|
239
239
|
}
|
|
240
240
|
l.inherits(b, Error, {
|
|
241
241
|
toJSON: function() {
|
|
@@ -258,7 +258,7 @@ l.inherits(b, Error, {
|
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
260
|
});
|
|
261
|
-
const
|
|
261
|
+
const Tt = b.prototype, Ot = {};
|
|
262
262
|
[
|
|
263
263
|
"ERR_BAD_OPTION_VALUE",
|
|
264
264
|
"ERR_BAD_OPTION",
|
|
@@ -274,32 +274,32 @@ const Et = b.prototype, Rt = {};
|
|
|
274
274
|
"ERR_INVALID_URL"
|
|
275
275
|
// eslint-disable-next-line func-names
|
|
276
276
|
].forEach((e) => {
|
|
277
|
-
|
|
277
|
+
Ot[e] = { value: e };
|
|
278
278
|
});
|
|
279
|
-
Object.defineProperties(b,
|
|
280
|
-
Object.defineProperty(
|
|
281
|
-
b.from = (e, t, n,
|
|
282
|
-
const i = Object.create(
|
|
279
|
+
Object.defineProperties(b, Ot);
|
|
280
|
+
Object.defineProperty(Tt, "isAxiosError", { value: !0 });
|
|
281
|
+
b.from = (e, t, n, s, r, o) => {
|
|
282
|
+
const i = Object.create(Tt);
|
|
283
283
|
return l.toFlatObject(e, i, function(d) {
|
|
284
284
|
return d !== Error.prototype;
|
|
285
|
-
}, (a) => a !== "isAxiosError"), b.call(i, e.message, t, n,
|
|
285
|
+
}, (a) => a !== "isAxiosError"), b.call(i, e.message, t, n, s, r), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
286
286
|
};
|
|
287
|
-
const
|
|
287
|
+
const Nn = null;
|
|
288
288
|
function Ue(e) {
|
|
289
289
|
return l.isPlainObject(e) || l.isArray(e);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function kt(e) {
|
|
292
292
|
return l.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
295
|
-
return e ? e.concat(t).map(function(
|
|
296
|
-
return
|
|
294
|
+
function Ye(e, t, n) {
|
|
295
|
+
return e ? e.concat(t).map(function(r, o) {
|
|
296
|
+
return r = kt(r), !n && o ? "[" + r + "]" : r;
|
|
297
297
|
}).join(n ? "." : "") : t;
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function Fn(e) {
|
|
300
300
|
return l.isArray(e) && !e.some(Ue);
|
|
301
301
|
}
|
|
302
|
-
const
|
|
302
|
+
const jn = l.toFlatObject(l, {}, null, function(t) {
|
|
303
303
|
return /^is[A-Z]/.test(t);
|
|
304
304
|
});
|
|
305
305
|
function ve(e, t, n) {
|
|
@@ -312,8 +312,8 @@ function ve(e, t, n) {
|
|
|
312
312
|
}, !1, function(_, g) {
|
|
313
313
|
return !l.isUndefined(g[_]);
|
|
314
314
|
});
|
|
315
|
-
const
|
|
316
|
-
if (!l.isFunction(
|
|
315
|
+
const s = n.metaTokens, r = n.visitor || u, o = n.dots, i = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && l.isSpecCompliantForm(t);
|
|
316
|
+
if (!l.isFunction(r))
|
|
317
317
|
throw new TypeError("visitor must be a function");
|
|
318
318
|
function c(h) {
|
|
319
319
|
if (h === null) return "";
|
|
@@ -327,19 +327,19 @@ function ve(e, t, n) {
|
|
|
327
327
|
let O = h;
|
|
328
328
|
if (h && !g && typeof h == "object") {
|
|
329
329
|
if (l.endsWith(_, "{}"))
|
|
330
|
-
_ =
|
|
331
|
-
else if (l.isArray(h) &&
|
|
332
|
-
return _ =
|
|
330
|
+
_ = s ? _ : _.slice(0, -2), h = JSON.stringify(h);
|
|
331
|
+
else if (l.isArray(h) && Fn(h) || (l.isFileList(h) || l.endsWith(_, "[]")) && (O = l.toArray(h)))
|
|
332
|
+
return _ = kt(_), O.forEach(function(D, K) {
|
|
333
333
|
!(l.isUndefined(D) || D === null) && t.append(
|
|
334
334
|
// eslint-disable-next-line no-nested-ternary
|
|
335
|
-
i === !0 ?
|
|
335
|
+
i === !0 ? Ye([_], K, o) : i === null ? _ : _ + "[]",
|
|
336
336
|
c(D)
|
|
337
337
|
);
|
|
338
338
|
}), !1;
|
|
339
339
|
}
|
|
340
|
-
return Ue(h) ? !0 : (t.append(
|
|
340
|
+
return Ue(h) ? !0 : (t.append(Ye(g, _, o), c(h)), !1);
|
|
341
341
|
}
|
|
342
|
-
const m = [], T = Object.assign(
|
|
342
|
+
const m = [], T = Object.assign(jn, {
|
|
343
343
|
defaultVisitor: u,
|
|
344
344
|
convertValue: c,
|
|
345
345
|
isVisitable: Ue
|
|
@@ -349,7 +349,7 @@ function ve(e, t, n) {
|
|
|
349
349
|
if (m.indexOf(h) !== -1)
|
|
350
350
|
throw Error("Circular reference detected in " + _.join("."));
|
|
351
351
|
m.push(h), l.forEach(h, function(O, I) {
|
|
352
|
-
(!(l.isUndefined(O) || O === null) &&
|
|
352
|
+
(!(l.isUndefined(O) || O === null) && r.call(
|
|
353
353
|
t,
|
|
354
354
|
O,
|
|
355
355
|
l.isString(I) ? I.trim() : I,
|
|
@@ -363,7 +363,7 @@ function ve(e, t, n) {
|
|
|
363
363
|
throw new TypeError("data must be an object");
|
|
364
364
|
return A(e), t;
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function Ze(e) {
|
|
367
367
|
const t = {
|
|
368
368
|
"!": "%21",
|
|
369
369
|
"'": "%27",
|
|
@@ -373,40 +373,40 @@ function Xe(e) {
|
|
|
373
373
|
"%20": "+",
|
|
374
374
|
"%00": "\0"
|
|
375
375
|
};
|
|
376
|
-
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(
|
|
377
|
-
return t[
|
|
376
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(s) {
|
|
377
|
+
return t[s];
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
380
|
function Me(e, t) {
|
|
381
381
|
this._pairs = [], e && ve(e, this, t);
|
|
382
382
|
}
|
|
383
|
-
const
|
|
384
|
-
|
|
383
|
+
const xt = Me.prototype;
|
|
384
|
+
xt.append = function(t, n) {
|
|
385
385
|
this._pairs.push([t, n]);
|
|
386
386
|
};
|
|
387
|
-
|
|
388
|
-
const n = t ? function(
|
|
389
|
-
return t.call(this,
|
|
390
|
-
} :
|
|
391
|
-
return this._pairs.map(function(
|
|
392
|
-
return n(
|
|
387
|
+
xt.toString = function(t) {
|
|
388
|
+
const n = t ? function(s) {
|
|
389
|
+
return t.call(this, s, Ze);
|
|
390
|
+
} : Ze;
|
|
391
|
+
return this._pairs.map(function(r) {
|
|
392
|
+
return n(r[0]) + "=" + n(r[1]);
|
|
393
393
|
}, "").join("&");
|
|
394
394
|
};
|
|
395
|
-
function
|
|
395
|
+
function Bn(e) {
|
|
396
396
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function At(e, t, n) {
|
|
399
399
|
if (!t)
|
|
400
400
|
return e;
|
|
401
|
-
const
|
|
401
|
+
const s = n && n.encode || Bn, r = n && n.serialize;
|
|
402
402
|
let o;
|
|
403
|
-
if (
|
|
403
|
+
if (r ? o = r(t, n) : o = l.isURLSearchParams(t) ? t.toString() : new Me(t, n).toString(s), o) {
|
|
404
404
|
const i = e.indexOf("#");
|
|
405
405
|
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
406
406
|
}
|
|
407
407
|
return e;
|
|
408
408
|
}
|
|
409
|
-
class
|
|
409
|
+
class et {
|
|
410
410
|
constructor() {
|
|
411
411
|
this.handlers = [];
|
|
412
412
|
}
|
|
@@ -418,12 +418,12 @@ class Ye {
|
|
|
418
418
|
*
|
|
419
419
|
* @return {Number} An ID used to remove interceptor later
|
|
420
420
|
*/
|
|
421
|
-
use(t, n,
|
|
421
|
+
use(t, n, s) {
|
|
422
422
|
return this.handlers.push({
|
|
423
423
|
fulfilled: t,
|
|
424
424
|
rejected: n,
|
|
425
|
-
synchronous:
|
|
426
|
-
runWhen:
|
|
425
|
+
synchronous: s ? s.synchronous : !1,
|
|
426
|
+
runWhen: s ? s.runWhen : null
|
|
427
427
|
}), this.handlers.length - 1;
|
|
428
428
|
}
|
|
429
429
|
/**
|
|
@@ -455,86 +455,86 @@ class Ye {
|
|
|
455
455
|
* @returns {void}
|
|
456
456
|
*/
|
|
457
457
|
forEach(t) {
|
|
458
|
-
l.forEach(this.handlers, function(
|
|
459
|
-
|
|
458
|
+
l.forEach(this.handlers, function(s) {
|
|
459
|
+
s !== null && t(s);
|
|
460
460
|
});
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
const
|
|
463
|
+
const It = {
|
|
464
464
|
silentJSONParsing: !0,
|
|
465
465
|
forcedJSONParsing: !0,
|
|
466
466
|
clarifyTimeoutError: !1
|
|
467
|
-
},
|
|
467
|
+
}, Mn = typeof URLSearchParams < "u" ? URLSearchParams : Me, Vn = typeof FormData < "u" ? FormData : null, qn = typeof Blob < "u" ? Blob : null, Hn = {
|
|
468
468
|
isBrowser: !0,
|
|
469
469
|
classes: {
|
|
470
|
-
URLSearchParams:
|
|
471
|
-
FormData:
|
|
472
|
-
Blob:
|
|
470
|
+
URLSearchParams: Mn,
|
|
471
|
+
FormData: Vn,
|
|
472
|
+
Blob: qn
|
|
473
473
|
},
|
|
474
474
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
475
|
-
}, Ve = typeof window < "u" && typeof document < "u", Le = typeof navigator == "object" && navigator || void 0,
|
|
476
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
475
|
+
}, Ve = typeof window < "u" && typeof document < "u", Le = typeof navigator == "object" && navigator || void 0, Kn = Ve && (!Le || ["ReactNative", "NativeScript", "NS"].indexOf(Le.product) < 0), zn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
476
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Jn = Ve && window.location.href || "http://localhost", Wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
477
477
|
__proto__: null,
|
|
478
478
|
hasBrowserEnv: Ve,
|
|
479
|
-
hasStandardBrowserEnv:
|
|
480
|
-
hasStandardBrowserWebWorkerEnv:
|
|
479
|
+
hasStandardBrowserEnv: Kn,
|
|
480
|
+
hasStandardBrowserWebWorkerEnv: zn,
|
|
481
481
|
navigator: Le,
|
|
482
|
-
origin:
|
|
483
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
484
|
-
...
|
|
485
|
-
...
|
|
482
|
+
origin: Jn
|
|
483
|
+
}, Symbol.toStringTag, { value: "Module" })), N = {
|
|
484
|
+
...Wn,
|
|
485
|
+
...Hn
|
|
486
486
|
};
|
|
487
|
-
function
|
|
488
|
-
return ve(e, new
|
|
489
|
-
visitor: function(n,
|
|
490
|
-
return
|
|
487
|
+
function Gn(e, t) {
|
|
488
|
+
return ve(e, new N.classes.URLSearchParams(), Object.assign({
|
|
489
|
+
visitor: function(n, s, r, o) {
|
|
490
|
+
return N.isNode && l.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
491
491
|
}
|
|
492
492
|
}, t));
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function Qn(e) {
|
|
495
495
|
return l.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function Xn(e) {
|
|
498
498
|
const t = {}, n = Object.keys(e);
|
|
499
|
-
let
|
|
500
|
-
const
|
|
499
|
+
let s;
|
|
500
|
+
const r = n.length;
|
|
501
501
|
let o;
|
|
502
|
-
for (
|
|
503
|
-
o = n[
|
|
502
|
+
for (s = 0; s < r; s++)
|
|
503
|
+
o = n[s], t[o] = e[o];
|
|
504
504
|
return t;
|
|
505
505
|
}
|
|
506
|
-
function
|
|
507
|
-
function t(n,
|
|
506
|
+
function Ct(e) {
|
|
507
|
+
function t(n, s, r, o) {
|
|
508
508
|
let i = n[o++];
|
|
509
509
|
if (i === "__proto__") return !0;
|
|
510
510
|
const a = Number.isFinite(+i), d = o >= n.length;
|
|
511
|
-
return i = !i && l.isArray(
|
|
511
|
+
return i = !i && l.isArray(r) ? r.length : i, d ? (l.hasOwnProp(r, i) ? r[i] = [r[i], s] : r[i] = s, !a) : ((!r[i] || !l.isObject(r[i])) && (r[i] = []), t(n, s, r[i], o) && l.isArray(r[i]) && (r[i] = Xn(r[i])), !a);
|
|
512
512
|
}
|
|
513
513
|
if (l.isFormData(e) && l.isFunction(e.entries)) {
|
|
514
514
|
const n = {};
|
|
515
|
-
return l.forEachEntry(e, (
|
|
516
|
-
t(
|
|
515
|
+
return l.forEachEntry(e, (s, r) => {
|
|
516
|
+
t(Qn(s), r, n, 0);
|
|
517
517
|
}), n;
|
|
518
518
|
}
|
|
519
519
|
return null;
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function Yn(e, t, n) {
|
|
522
522
|
if (l.isString(e))
|
|
523
523
|
try {
|
|
524
524
|
return (t || JSON.parse)(e), l.trim(e);
|
|
525
|
-
} catch (
|
|
526
|
-
if (
|
|
527
|
-
throw
|
|
525
|
+
} catch (s) {
|
|
526
|
+
if (s.name !== "SyntaxError")
|
|
527
|
+
throw s;
|
|
528
528
|
}
|
|
529
529
|
return (0, JSON.stringify)(e);
|
|
530
530
|
}
|
|
531
531
|
const de = {
|
|
532
|
-
transitional:
|
|
532
|
+
transitional: It,
|
|
533
533
|
adapter: ["xhr", "http", "fetch"],
|
|
534
534
|
transformRequest: [function(t, n) {
|
|
535
|
-
const
|
|
535
|
+
const s = n.getContentType() || "", r = s.indexOf("application/json") > -1, o = l.isObject(t);
|
|
536
536
|
if (o && l.isHTMLForm(t) && (t = new FormData(t)), l.isFormData(t))
|
|
537
|
-
return
|
|
537
|
+
return r ? JSON.stringify(Ct(t)) : t;
|
|
538
538
|
if (l.isArrayBuffer(t) || l.isBuffer(t) || l.isStream(t) || l.isFile(t) || l.isBlob(t) || l.isReadableStream(t))
|
|
539
539
|
return t;
|
|
540
540
|
if (l.isArrayBufferView(t))
|
|
@@ -543,9 +543,9 @@ const de = {
|
|
|
543
543
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
544
544
|
let a;
|
|
545
545
|
if (o) {
|
|
546
|
-
if (
|
|
547
|
-
return
|
|
548
|
-
if ((a = l.isFileList(t)) ||
|
|
546
|
+
if (s.indexOf("application/x-www-form-urlencoded") > -1)
|
|
547
|
+
return Gn(t, this.formSerializer).toString();
|
|
548
|
+
if ((a = l.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
|
|
549
549
|
const d = this.env && this.env.FormData;
|
|
550
550
|
return ve(
|
|
551
551
|
a ? { "files[]": t } : t,
|
|
@@ -554,14 +554,14 @@ const de = {
|
|
|
554
554
|
);
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
return o ||
|
|
557
|
+
return o || r ? (n.setContentType("application/json", !1), Yn(t)) : t;
|
|
558
558
|
}],
|
|
559
559
|
transformResponse: [function(t) {
|
|
560
|
-
const n = this.transitional || de.transitional,
|
|
560
|
+
const n = this.transitional || de.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
|
|
561
561
|
if (l.isResponse(t) || l.isReadableStream(t))
|
|
562
562
|
return t;
|
|
563
|
-
if (t && l.isString(t) && (
|
|
564
|
-
const i = !(n && n.silentJSONParsing) &&
|
|
563
|
+
if (t && l.isString(t) && (s && !this.responseType || r)) {
|
|
564
|
+
const i = !(n && n.silentJSONParsing) && r;
|
|
565
565
|
try {
|
|
566
566
|
return JSON.parse(t);
|
|
567
567
|
} catch (a) {
|
|
@@ -581,8 +581,8 @@ const de = {
|
|
|
581
581
|
maxContentLength: -1,
|
|
582
582
|
maxBodyLength: -1,
|
|
583
583
|
env: {
|
|
584
|
-
FormData:
|
|
585
|
-
Blob:
|
|
584
|
+
FormData: N.classes.FormData,
|
|
585
|
+
Blob: N.classes.Blob
|
|
586
586
|
},
|
|
587
587
|
validateStatus: function(t) {
|
|
588
588
|
return t >= 200 && t < 300;
|
|
@@ -597,7 +597,7 @@ const de = {
|
|
|
597
597
|
l.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
598
598
|
de.headers[e] = {};
|
|
599
599
|
});
|
|
600
|
-
const
|
|
600
|
+
const Zn = l.toObjectSet([
|
|
601
601
|
"age",
|
|
602
602
|
"authorization",
|
|
603
603
|
"content-length",
|
|
@@ -615,131 +615,131 @@ const Xn = l.toObjectSet([
|
|
|
615
615
|
"referer",
|
|
616
616
|
"retry-after",
|
|
617
617
|
"user-agent"
|
|
618
|
-
]),
|
|
618
|
+
]), es = (e) => {
|
|
619
619
|
const t = {};
|
|
620
|
-
let n,
|
|
620
|
+
let n, s, r;
|
|
621
621
|
return e && e.split(`
|
|
622
622
|
`).forEach(function(i) {
|
|
623
|
-
|
|
623
|
+
r = i.indexOf(":"), n = i.substring(0, r).trim().toLowerCase(), s = i.substring(r + 1).trim(), !(!n || t[n] && Zn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(s) : t[n] = [s] : t[n] = t[n] ? t[n] + ", " + s : s);
|
|
624
624
|
}), t;
|
|
625
|
-
},
|
|
626
|
-
function
|
|
625
|
+
}, tt = Symbol("internals");
|
|
626
|
+
function re(e) {
|
|
627
627
|
return e && String(e).trim().toLowerCase();
|
|
628
628
|
}
|
|
629
629
|
function he(e) {
|
|
630
630
|
return e === !1 || e == null ? e : l.isArray(e) ? e.map(he) : String(e);
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function ts(e) {
|
|
633
633
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
634
|
-
let
|
|
635
|
-
for (;
|
|
636
|
-
t[
|
|
634
|
+
let s;
|
|
635
|
+
for (; s = n.exec(e); )
|
|
636
|
+
t[s[1]] = s[2];
|
|
637
637
|
return t;
|
|
638
638
|
}
|
|
639
|
-
const
|
|
640
|
-
function xe(e, t, n,
|
|
641
|
-
if (l.isFunction(
|
|
642
|
-
return
|
|
643
|
-
if (
|
|
644
|
-
if (l.isString(
|
|
645
|
-
return t.indexOf(
|
|
646
|
-
if (l.isRegExp(
|
|
647
|
-
return
|
|
639
|
+
const ns = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
640
|
+
function xe(e, t, n, s, r) {
|
|
641
|
+
if (l.isFunction(s))
|
|
642
|
+
return s.call(this, t, n);
|
|
643
|
+
if (r && (t = n), !!l.isString(t)) {
|
|
644
|
+
if (l.isString(s))
|
|
645
|
+
return t.indexOf(s) !== -1;
|
|
646
|
+
if (l.isRegExp(s))
|
|
647
|
+
return s.test(t);
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
|
-
function
|
|
651
|
-
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n,
|
|
650
|
+
function ss(e) {
|
|
651
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, s) => n.toUpperCase() + s);
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function rs(e, t) {
|
|
654
654
|
const n = l.toCamelCase(" " + t);
|
|
655
|
-
["get", "set", "has"].forEach((
|
|
656
|
-
Object.defineProperty(e,
|
|
657
|
-
value: function(
|
|
658
|
-
return this[
|
|
655
|
+
["get", "set", "has"].forEach((s) => {
|
|
656
|
+
Object.defineProperty(e, s + n, {
|
|
657
|
+
value: function(r, o, i) {
|
|
658
|
+
return this[s].call(this, t, r, o, i);
|
|
659
659
|
},
|
|
660
660
|
configurable: !0
|
|
661
661
|
});
|
|
662
662
|
});
|
|
663
663
|
}
|
|
664
|
-
class
|
|
664
|
+
class F {
|
|
665
665
|
constructor(t) {
|
|
666
666
|
t && this.set(t);
|
|
667
667
|
}
|
|
668
|
-
set(t, n,
|
|
669
|
-
const
|
|
668
|
+
set(t, n, s) {
|
|
669
|
+
const r = this;
|
|
670
670
|
function o(a, d, c) {
|
|
671
|
-
const u =
|
|
671
|
+
const u = re(d);
|
|
672
672
|
if (!u)
|
|
673
673
|
throw new Error("header name must be a non-empty string");
|
|
674
|
-
const m = l.findKey(
|
|
675
|
-
(!m ||
|
|
674
|
+
const m = l.findKey(r, u);
|
|
675
|
+
(!m || r[m] === void 0 || c === !0 || c === void 0 && r[m] !== !1) && (r[m || d] = he(a));
|
|
676
676
|
}
|
|
677
677
|
const i = (a, d) => l.forEach(a, (c, u) => o(c, u, d));
|
|
678
678
|
if (l.isPlainObject(t) || t instanceof this.constructor)
|
|
679
679
|
i(t, n);
|
|
680
|
-
else if (l.isString(t) && (t = t.trim()) && !
|
|
681
|
-
i(
|
|
680
|
+
else if (l.isString(t) && (t = t.trim()) && !ns(t))
|
|
681
|
+
i(es(t), n);
|
|
682
682
|
else if (l.isHeaders(t))
|
|
683
683
|
for (const [a, d] of t.entries())
|
|
684
|
-
o(d, a,
|
|
684
|
+
o(d, a, s);
|
|
685
685
|
else
|
|
686
|
-
t != null && o(n, t,
|
|
686
|
+
t != null && o(n, t, s);
|
|
687
687
|
return this;
|
|
688
688
|
}
|
|
689
689
|
get(t, n) {
|
|
690
|
-
if (t =
|
|
691
|
-
const
|
|
692
|
-
if (
|
|
693
|
-
const
|
|
690
|
+
if (t = re(t), t) {
|
|
691
|
+
const s = l.findKey(this, t);
|
|
692
|
+
if (s) {
|
|
693
|
+
const r = this[s];
|
|
694
694
|
if (!n)
|
|
695
|
-
return
|
|
695
|
+
return r;
|
|
696
696
|
if (n === !0)
|
|
697
|
-
return
|
|
697
|
+
return ts(r);
|
|
698
698
|
if (l.isFunction(n))
|
|
699
|
-
return n.call(this,
|
|
699
|
+
return n.call(this, r, s);
|
|
700
700
|
if (l.isRegExp(n))
|
|
701
|
-
return n.exec(
|
|
701
|
+
return n.exec(r);
|
|
702
702
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
706
|
has(t, n) {
|
|
707
|
-
if (t =
|
|
708
|
-
const
|
|
709
|
-
return !!(
|
|
707
|
+
if (t = re(t), t) {
|
|
708
|
+
const s = l.findKey(this, t);
|
|
709
|
+
return !!(s && this[s] !== void 0 && (!n || xe(this, this[s], s, n)));
|
|
710
710
|
}
|
|
711
711
|
return !1;
|
|
712
712
|
}
|
|
713
713
|
delete(t, n) {
|
|
714
|
-
const
|
|
715
|
-
let
|
|
714
|
+
const s = this;
|
|
715
|
+
let r = !1;
|
|
716
716
|
function o(i) {
|
|
717
|
-
if (i =
|
|
718
|
-
const a = l.findKey(
|
|
719
|
-
a && (!n || xe(
|
|
717
|
+
if (i = re(i), i) {
|
|
718
|
+
const a = l.findKey(s, i);
|
|
719
|
+
a && (!n || xe(s, s[a], a, n)) && (delete s[a], r = !0);
|
|
720
720
|
}
|
|
721
721
|
}
|
|
722
|
-
return l.isArray(t) ? t.forEach(o) : o(t),
|
|
722
|
+
return l.isArray(t) ? t.forEach(o) : o(t), r;
|
|
723
723
|
}
|
|
724
724
|
clear(t) {
|
|
725
725
|
const n = Object.keys(this);
|
|
726
|
-
let
|
|
727
|
-
for (;
|
|
728
|
-
const o = n[
|
|
729
|
-
(!t || xe(this, this[o], o, t, !0)) && (delete this[o],
|
|
726
|
+
let s = n.length, r = !1;
|
|
727
|
+
for (; s--; ) {
|
|
728
|
+
const o = n[s];
|
|
729
|
+
(!t || xe(this, this[o], o, t, !0)) && (delete this[o], r = !0);
|
|
730
730
|
}
|
|
731
|
-
return
|
|
731
|
+
return r;
|
|
732
732
|
}
|
|
733
733
|
normalize(t) {
|
|
734
|
-
const n = this,
|
|
735
|
-
return l.forEach(this, (
|
|
736
|
-
const i = l.findKey(
|
|
734
|
+
const n = this, s = {};
|
|
735
|
+
return l.forEach(this, (r, o) => {
|
|
736
|
+
const i = l.findKey(s, o);
|
|
737
737
|
if (i) {
|
|
738
|
-
n[i] = he(
|
|
738
|
+
n[i] = he(r), delete n[o];
|
|
739
739
|
return;
|
|
740
740
|
}
|
|
741
|
-
const a = t ?
|
|
742
|
-
a !== o && delete n[o], n[a] = he(
|
|
741
|
+
const a = t ? ss(o) : String(o).trim();
|
|
742
|
+
a !== o && delete n[o], n[a] = he(r), s[a] = !0;
|
|
743
743
|
}), this;
|
|
744
744
|
}
|
|
745
745
|
concat(...t) {
|
|
@@ -747,8 +747,8 @@ class N {
|
|
|
747
747
|
}
|
|
748
748
|
toJSON(t) {
|
|
749
749
|
const n = /* @__PURE__ */ Object.create(null);
|
|
750
|
-
return l.forEach(this, (
|
|
751
|
-
|
|
750
|
+
return l.forEach(this, (s, r) => {
|
|
751
|
+
s != null && s !== !1 && (n[r] = t && l.isArray(s) ? s.join(", ") : s);
|
|
752
752
|
}), n;
|
|
753
753
|
}
|
|
754
754
|
[Symbol.iterator]() {
|
|
@@ -765,50 +765,50 @@ class N {
|
|
|
765
765
|
return t instanceof this ? t : new this(t);
|
|
766
766
|
}
|
|
767
767
|
static concat(t, ...n) {
|
|
768
|
-
const
|
|
769
|
-
return n.forEach((
|
|
768
|
+
const s = new this(t);
|
|
769
|
+
return n.forEach((r) => s.set(r)), s;
|
|
770
770
|
}
|
|
771
771
|
static accessor(t) {
|
|
772
|
-
const
|
|
772
|
+
const s = (this[tt] = this[tt] = {
|
|
773
773
|
accessors: {}
|
|
774
|
-
}).accessors,
|
|
774
|
+
}).accessors, r = this.prototype;
|
|
775
775
|
function o(i) {
|
|
776
|
-
const a =
|
|
777
|
-
|
|
776
|
+
const a = re(i);
|
|
777
|
+
s[a] || (rs(r, i), s[a] = !0);
|
|
778
778
|
}
|
|
779
779
|
return l.isArray(t) ? t.forEach(o) : o(t), this;
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
|
-
|
|
783
|
-
l.reduceDescriptors(
|
|
782
|
+
F.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
783
|
+
l.reduceDescriptors(F.prototype, ({ value: e }, t) => {
|
|
784
784
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
785
785
|
return {
|
|
786
786
|
get: () => e,
|
|
787
|
-
set(
|
|
788
|
-
this[n] =
|
|
787
|
+
set(s) {
|
|
788
|
+
this[n] = s;
|
|
789
789
|
}
|
|
790
790
|
};
|
|
791
791
|
});
|
|
792
|
-
l.freezeMethods(
|
|
792
|
+
l.freezeMethods(F);
|
|
793
793
|
function Ae(e, t) {
|
|
794
|
-
const n = this || de,
|
|
795
|
-
let o =
|
|
794
|
+
const n = this || de, s = t || n, r = F.from(s.headers);
|
|
795
|
+
let o = s.data;
|
|
796
796
|
return l.forEach(e, function(a) {
|
|
797
|
-
o = a.call(n, o,
|
|
798
|
-
}),
|
|
797
|
+
o = a.call(n, o, r.normalize(), t ? t.status : void 0);
|
|
798
|
+
}), r.normalize(), o;
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function Dt(e) {
|
|
801
801
|
return !!(e && e.__CANCEL__);
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function se(e, t, n) {
|
|
804
804
|
b.call(this, e ?? "canceled", b.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
805
805
|
}
|
|
806
|
-
l.inherits(
|
|
806
|
+
l.inherits(se, b, {
|
|
807
807
|
__CANCEL__: !0
|
|
808
808
|
});
|
|
809
|
-
function
|
|
810
|
-
const
|
|
811
|
-
!n.status || !
|
|
809
|
+
function Ut(e, t, n) {
|
|
810
|
+
const s = n.config.validateStatus;
|
|
811
|
+
!n.status || !s || s(n.status) ? e(n) : t(new b(
|
|
812
812
|
"Request failed with status code " + n.status,
|
|
813
813
|
[b.ERR_BAD_REQUEST, b.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
814
814
|
n.config,
|
|
@@ -816,44 +816,44 @@ function Ct(e, t, n) {
|
|
|
816
816
|
n
|
|
817
817
|
));
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function os(e) {
|
|
820
820
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
821
821
|
return t && t[1] || "";
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function is(e, t) {
|
|
824
824
|
e = e || 10;
|
|
825
|
-
const n = new Array(e),
|
|
826
|
-
let
|
|
825
|
+
const n = new Array(e), s = new Array(e);
|
|
826
|
+
let r = 0, o = 0, i;
|
|
827
827
|
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
828
|
-
const c = Date.now(), u =
|
|
829
|
-
i || (i = c), n[
|
|
828
|
+
const c = Date.now(), u = s[o];
|
|
829
|
+
i || (i = c), n[r] = d, s[r] = c;
|
|
830
830
|
let m = o, T = 0;
|
|
831
|
-
for (; m !==
|
|
831
|
+
for (; m !== r; )
|
|
832
832
|
T += n[m++], m = m % e;
|
|
833
|
-
if (
|
|
833
|
+
if (r = (r + 1) % e, r === o && (o = (o + 1) % e), c - i < t)
|
|
834
834
|
return;
|
|
835
835
|
const A = u && c - u;
|
|
836
836
|
return A ? Math.round(T * 1e3 / A) : void 0;
|
|
837
837
|
};
|
|
838
838
|
}
|
|
839
|
-
function
|
|
840
|
-
let n = 0,
|
|
839
|
+
function as(e, t) {
|
|
840
|
+
let n = 0, s = 1e3 / t, r, o;
|
|
841
841
|
const i = (c, u = Date.now()) => {
|
|
842
|
-
n = u,
|
|
842
|
+
n = u, r = null, o && (clearTimeout(o), o = null), e.apply(null, c);
|
|
843
843
|
};
|
|
844
844
|
return [(...c) => {
|
|
845
845
|
const u = Date.now(), m = u - n;
|
|
846
|
-
m >=
|
|
847
|
-
o = null, i(
|
|
848
|
-
},
|
|
849
|
-
}, () =>
|
|
846
|
+
m >= s ? i(c, u) : (r = c, o || (o = setTimeout(() => {
|
|
847
|
+
o = null, i(r);
|
|
848
|
+
}, s - m)));
|
|
849
|
+
}, () => r && i(r)];
|
|
850
850
|
}
|
|
851
851
|
const ge = (e, t, n = 3) => {
|
|
852
|
-
let
|
|
853
|
-
const
|
|
854
|
-
return
|
|
855
|
-
const i = o.loaded, a = o.lengthComputable ? o.total : void 0, d = i -
|
|
856
|
-
|
|
852
|
+
let s = 0;
|
|
853
|
+
const r = is(50, 250);
|
|
854
|
+
return as((o) => {
|
|
855
|
+
const i = o.loaded, a = o.lengthComputable ? o.total : void 0, d = i - s, c = r(d), u = i <= a;
|
|
856
|
+
s = i;
|
|
857
857
|
const m = {
|
|
858
858
|
loaded: i,
|
|
859
859
|
total: a,
|
|
@@ -867,20 +867,20 @@ const ge = (e, t, n = 3) => {
|
|
|
867
867
|
};
|
|
868
868
|
e(m);
|
|
869
869
|
}, n);
|
|
870
|
-
},
|
|
870
|
+
}, nt = (e, t) => {
|
|
871
871
|
const n = e != null;
|
|
872
|
-
return [(
|
|
872
|
+
return [(s) => t[0]({
|
|
873
873
|
lengthComputable: n,
|
|
874
874
|
total: e,
|
|
875
|
-
loaded:
|
|
875
|
+
loaded: s
|
|
876
876
|
}), t[1]];
|
|
877
|
-
},
|
|
877
|
+
}, st = (e) => (...t) => l.asap(() => e(...t)), ls = N.hasStandardBrowserEnv ? (
|
|
878
878
|
// Standard browser envs have full support of the APIs needed to test
|
|
879
879
|
// whether the request URL is of the same origin as current location.
|
|
880
880
|
function() {
|
|
881
|
-
const t =
|
|
882
|
-
let
|
|
883
|
-
function
|
|
881
|
+
const t = N.navigator && /(msie|trident)/i.test(N.navigator.userAgent), n = document.createElement("a");
|
|
882
|
+
let s;
|
|
883
|
+
function r(o) {
|
|
884
884
|
let i = o;
|
|
885
885
|
return t && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
|
|
886
886
|
href: n.href,
|
|
@@ -893,9 +893,9 @@ const ge = (e, t, n = 3) => {
|
|
|
893
893
|
pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
|
|
894
894
|
};
|
|
895
895
|
}
|
|
896
|
-
return
|
|
897
|
-
const a = l.isString(i) ?
|
|
898
|
-
return a.protocol ===
|
|
896
|
+
return s = r(window.location.href), function(i) {
|
|
897
|
+
const a = l.isString(i) ? r(i) : i;
|
|
898
|
+
return a.protocol === s.protocol && a.host === s.host;
|
|
899
899
|
};
|
|
900
900
|
}()
|
|
901
901
|
) : (
|
|
@@ -905,12 +905,12 @@ const ge = (e, t, n = 3) => {
|
|
|
905
905
|
return !0;
|
|
906
906
|
};
|
|
907
907
|
}()
|
|
908
|
-
),
|
|
908
|
+
), cs = N.hasStandardBrowserEnv ? (
|
|
909
909
|
// Standard browser envs support document.cookie
|
|
910
910
|
{
|
|
911
|
-
write(e, t, n,
|
|
911
|
+
write(e, t, n, s, r, o) {
|
|
912
912
|
const i = [e + "=" + encodeURIComponent(t)];
|
|
913
|
-
l.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), l.isString(
|
|
913
|
+
l.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), l.isString(s) && i.push("path=" + s), l.isString(r) && i.push("domain=" + r), o === !0 && i.push("secure"), document.cookie = i.join("; ");
|
|
914
914
|
},
|
|
915
915
|
read(e) {
|
|
916
916
|
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
@@ -932,43 +932,43 @@ const ge = (e, t, n = 3) => {
|
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
934
|
);
|
|
935
|
-
function
|
|
935
|
+
function us(e) {
|
|
936
936
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function ds(e, t) {
|
|
939
939
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
940
940
|
}
|
|
941
|
-
function
|
|
942
|
-
return e && !
|
|
941
|
+
function Lt(e, t) {
|
|
942
|
+
return e && !us(t) ? ds(e, t) : t;
|
|
943
943
|
}
|
|
944
|
-
const
|
|
944
|
+
const rt = (e) => e instanceof F ? { ...e } : e;
|
|
945
945
|
function ee(e, t) {
|
|
946
946
|
t = t || {};
|
|
947
947
|
const n = {};
|
|
948
|
-
function
|
|
948
|
+
function s(c, u, m) {
|
|
949
949
|
return l.isPlainObject(c) && l.isPlainObject(u) ? l.merge.call({ caseless: m }, c, u) : l.isPlainObject(u) ? l.merge({}, u) : l.isArray(u) ? u.slice() : u;
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function r(c, u, m) {
|
|
952
952
|
if (l.isUndefined(u)) {
|
|
953
953
|
if (!l.isUndefined(c))
|
|
954
|
-
return
|
|
955
|
-
} else return
|
|
954
|
+
return s(void 0, c, m);
|
|
955
|
+
} else return s(c, u, m);
|
|
956
956
|
}
|
|
957
957
|
function o(c, u) {
|
|
958
958
|
if (!l.isUndefined(u))
|
|
959
|
-
return
|
|
959
|
+
return s(void 0, u);
|
|
960
960
|
}
|
|
961
961
|
function i(c, u) {
|
|
962
962
|
if (l.isUndefined(u)) {
|
|
963
963
|
if (!l.isUndefined(c))
|
|
964
|
-
return
|
|
965
|
-
} else return
|
|
964
|
+
return s(void 0, c);
|
|
965
|
+
} else return s(void 0, u);
|
|
966
966
|
}
|
|
967
967
|
function a(c, u, m) {
|
|
968
968
|
if (m in t)
|
|
969
|
-
return
|
|
969
|
+
return s(c, u);
|
|
970
970
|
if (m in e)
|
|
971
|
-
return
|
|
971
|
+
return s(void 0, c);
|
|
972
972
|
}
|
|
973
973
|
const d = {
|
|
974
974
|
url: o,
|
|
@@ -999,51 +999,51 @@ function ee(e, t) {
|
|
|
999
999
|
socketPath: i,
|
|
1000
1000
|
responseEncoding: i,
|
|
1001
1001
|
validateStatus: a,
|
|
1002
|
-
headers: (c, u) =>
|
|
1002
|
+
headers: (c, u) => r(rt(c), rt(u), !0)
|
|
1003
1003
|
};
|
|
1004
1004
|
return l.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
|
|
1005
|
-
const m = d[u] ||
|
|
1005
|
+
const m = d[u] || r, T = m(e[u], t[u], u);
|
|
1006
1006
|
l.isUndefined(T) && m !== a || (n[u] = T);
|
|
1007
1007
|
}), n;
|
|
1008
1008
|
}
|
|
1009
|
-
const
|
|
1009
|
+
const $t = (e) => {
|
|
1010
1010
|
const t = ee({}, e);
|
|
1011
|
-
let { data: n, withXSRFToken:
|
|
1012
|
-
t.headers = i =
|
|
1011
|
+
let { data: n, withXSRFToken: s, xsrfHeaderName: r, xsrfCookieName: o, headers: i, auth: a } = t;
|
|
1012
|
+
t.headers = i = F.from(i), t.url = At(Lt(t.baseURL, t.url), e.params, e.paramsSerializer), a && i.set(
|
|
1013
1013
|
"Authorization",
|
|
1014
1014
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
1015
1015
|
);
|
|
1016
1016
|
let d;
|
|
1017
1017
|
if (l.isFormData(n)) {
|
|
1018
|
-
if (
|
|
1018
|
+
if (N.hasStandardBrowserEnv || N.hasStandardBrowserWebWorkerEnv)
|
|
1019
1019
|
i.setContentType(void 0);
|
|
1020
1020
|
else if ((d = i.getContentType()) !== !1) {
|
|
1021
1021
|
const [c, ...u] = d ? d.split(";").map((m) => m.trim()).filter(Boolean) : [];
|
|
1022
1022
|
i.setContentType([c || "multipart/form-data", ...u].join("; "));
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
|
-
if (
|
|
1026
|
-
const c =
|
|
1027
|
-
c && i.set(
|
|
1025
|
+
if (N.hasStandardBrowserEnv && (s && l.isFunction(s) && (s = s(t)), s || s !== !1 && ls(t.url))) {
|
|
1026
|
+
const c = r && o && cs.read(o);
|
|
1027
|
+
c && i.set(r, c);
|
|
1028
1028
|
}
|
|
1029
1029
|
return t;
|
|
1030
|
-
},
|
|
1031
|
-
return new Promise(function(n,
|
|
1032
|
-
const
|
|
1033
|
-
let o =
|
|
1034
|
-
const i =
|
|
1035
|
-
let { responseType: a, onUploadProgress: d, onDownloadProgress: c } =
|
|
1030
|
+
}, ps = typeof XMLHttpRequest < "u", fs = ps && function(e) {
|
|
1031
|
+
return new Promise(function(n, s) {
|
|
1032
|
+
const r = $t(e);
|
|
1033
|
+
let o = r.data;
|
|
1034
|
+
const i = F.from(r.headers).normalize();
|
|
1035
|
+
let { responseType: a, onUploadProgress: d, onDownloadProgress: c } = r, u, m, T, A, h;
|
|
1036
1036
|
function _() {
|
|
1037
|
-
A && A(), h && h(),
|
|
1037
|
+
A && A(), h && h(), r.cancelToken && r.cancelToken.unsubscribe(u), r.signal && r.signal.removeEventListener("abort", u);
|
|
1038
1038
|
}
|
|
1039
1039
|
let g = new XMLHttpRequest();
|
|
1040
|
-
g.open(
|
|
1040
|
+
g.open(r.method.toUpperCase(), r.url, !0), g.timeout = r.timeout;
|
|
1041
1041
|
function O() {
|
|
1042
1042
|
if (!g)
|
|
1043
1043
|
return;
|
|
1044
|
-
const D =
|
|
1044
|
+
const D = F.from(
|
|
1045
1045
|
"getAllResponseHeaders" in g && g.getAllResponseHeaders()
|
|
1046
|
-
),
|
|
1046
|
+
), P = {
|
|
1047
1047
|
data: !a || a === "text" || a === "json" ? g.responseText : g.response,
|
|
1048
1048
|
status: g.status,
|
|
1049
1049
|
statusText: g.statusText,
|
|
@@ -1051,48 +1051,48 @@ const Ut = (e) => {
|
|
|
1051
1051
|
config: e,
|
|
1052
1052
|
request: g
|
|
1053
1053
|
};
|
|
1054
|
-
|
|
1054
|
+
Ut(function(Q) {
|
|
1055
1055
|
n(Q), _();
|
|
1056
1056
|
}, function(Q) {
|
|
1057
|
-
|
|
1058
|
-
},
|
|
1057
|
+
s(Q), _();
|
|
1058
|
+
}, P), g = null;
|
|
1059
1059
|
}
|
|
1060
1060
|
"onloadend" in g ? g.onloadend = O : g.onreadystatechange = function() {
|
|
1061
1061
|
!g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.indexOf("file:") === 0) || setTimeout(O);
|
|
1062
1062
|
}, g.onabort = function() {
|
|
1063
|
-
g && (
|
|
1063
|
+
g && (s(new b("Request aborted", b.ECONNABORTED, e, g)), g = null);
|
|
1064
1064
|
}, g.onerror = function() {
|
|
1065
|
-
|
|
1065
|
+
s(new b("Network Error", b.ERR_NETWORK, e, g)), g = null;
|
|
1066
1066
|
}, g.ontimeout = function() {
|
|
1067
|
-
let K =
|
|
1068
|
-
const
|
|
1069
|
-
|
|
1067
|
+
let K = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
|
1068
|
+
const P = r.transitional || It;
|
|
1069
|
+
r.timeoutErrorMessage && (K = r.timeoutErrorMessage), s(new b(
|
|
1070
1070
|
K,
|
|
1071
|
-
|
|
1071
|
+
P.clarifyTimeoutError ? b.ETIMEDOUT : b.ECONNABORTED,
|
|
1072
1072
|
e,
|
|
1073
1073
|
g
|
|
1074
1074
|
)), g = null;
|
|
1075
|
-
}, o === void 0 && i.setContentType(null), "setRequestHeader" in g && l.forEach(i.toJSON(), function(K,
|
|
1076
|
-
g.setRequestHeader(
|
|
1077
|
-
}), l.isUndefined(
|
|
1078
|
-
g && (
|
|
1079
|
-
},
|
|
1080
|
-
const I =
|
|
1081
|
-
if (I &&
|
|
1082
|
-
|
|
1075
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in g && l.forEach(i.toJSON(), function(K, P) {
|
|
1076
|
+
g.setRequestHeader(P, K);
|
|
1077
|
+
}), l.isUndefined(r.withCredentials) || (g.withCredentials = !!r.withCredentials), a && a !== "json" && (g.responseType = r.responseType), c && ([T, h] = ge(c, !0), g.addEventListener("progress", T)), d && g.upload && ([m, A] = ge(d), g.upload.addEventListener("progress", m), g.upload.addEventListener("loadend", A)), (r.cancelToken || r.signal) && (u = (D) => {
|
|
1078
|
+
g && (s(!D || D.type ? new se(null, e, g) : D), g.abort(), g = null);
|
|
1079
|
+
}, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
|
|
1080
|
+
const I = os(r.url);
|
|
1081
|
+
if (I && N.protocols.indexOf(I) === -1) {
|
|
1082
|
+
s(new b("Unsupported protocol " + I + ":", b.ERR_BAD_REQUEST, e));
|
|
1083
1083
|
return;
|
|
1084
1084
|
}
|
|
1085
1085
|
g.send(o || null);
|
|
1086
1086
|
});
|
|
1087
|
-
},
|
|
1087
|
+
}, ms = (e, t) => {
|
|
1088
1088
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1089
1089
|
if (t || n) {
|
|
1090
|
-
let
|
|
1090
|
+
let s = new AbortController(), r;
|
|
1091
1091
|
const o = function(c) {
|
|
1092
|
-
if (!
|
|
1093
|
-
|
|
1092
|
+
if (!r) {
|
|
1093
|
+
r = !0, a();
|
|
1094
1094
|
const u = c instanceof Error ? c : this.reason;
|
|
1095
|
-
|
|
1095
|
+
s.abort(u instanceof b ? u : new se(u instanceof Error ? u.message : u));
|
|
1096
1096
|
}
|
|
1097
1097
|
};
|
|
1098
1098
|
let i = t && setTimeout(() => {
|
|
@@ -1104,22 +1104,22 @@ const Ut = (e) => {
|
|
|
1104
1104
|
}), e = null);
|
|
1105
1105
|
};
|
|
1106
1106
|
e.forEach((c) => c.addEventListener("abort", o));
|
|
1107
|
-
const { signal: d } =
|
|
1107
|
+
const { signal: d } = s;
|
|
1108
1108
|
return d.unsubscribe = () => l.asap(a), d;
|
|
1109
1109
|
}
|
|
1110
|
-
},
|
|
1110
|
+
}, hs = function* (e, t) {
|
|
1111
1111
|
let n = e.byteLength;
|
|
1112
1112
|
if (n < t) {
|
|
1113
1113
|
yield e;
|
|
1114
1114
|
return;
|
|
1115
1115
|
}
|
|
1116
|
-
let
|
|
1117
|
-
for (;
|
|
1118
|
-
|
|
1119
|
-
},
|
|
1120
|
-
for await (const n of
|
|
1121
|
-
yield*
|
|
1122
|
-
},
|
|
1116
|
+
let s = 0, r;
|
|
1117
|
+
for (; s < n; )
|
|
1118
|
+
r = s + t, yield e.slice(s, r), s = r;
|
|
1119
|
+
}, gs = async function* (e, t) {
|
|
1120
|
+
for await (const n of ys(e))
|
|
1121
|
+
yield* hs(n, t);
|
|
1122
|
+
}, ys = async function* (e) {
|
|
1123
1123
|
if (e[Symbol.asyncIterator]) {
|
|
1124
1124
|
yield* e;
|
|
1125
1125
|
return;
|
|
@@ -1127,23 +1127,23 @@ const Ut = (e) => {
|
|
|
1127
1127
|
const t = e.getReader();
|
|
1128
1128
|
try {
|
|
1129
1129
|
for (; ; ) {
|
|
1130
|
-
const { done: n, value:
|
|
1130
|
+
const { done: n, value: s } = await t.read();
|
|
1131
1131
|
if (n)
|
|
1132
1132
|
break;
|
|
1133
|
-
yield
|
|
1133
|
+
yield s;
|
|
1134
1134
|
}
|
|
1135
1135
|
} finally {
|
|
1136
1136
|
await t.cancel();
|
|
1137
1137
|
}
|
|
1138
|
-
},
|
|
1139
|
-
const
|
|
1138
|
+
}, ot = (e, t, n, s) => {
|
|
1139
|
+
const r = gs(e, t);
|
|
1140
1140
|
let o = 0, i, a = (d) => {
|
|
1141
|
-
i || (i = !0,
|
|
1141
|
+
i || (i = !0, s && s(d));
|
|
1142
1142
|
};
|
|
1143
1143
|
return new ReadableStream({
|
|
1144
1144
|
async pull(d) {
|
|
1145
1145
|
try {
|
|
1146
|
-
const { done: c, value: u } = await
|
|
1146
|
+
const { done: c, value: u } = await r.next();
|
|
1147
1147
|
if (c) {
|
|
1148
1148
|
a(), d.close();
|
|
1149
1149
|
return;
|
|
@@ -1159,20 +1159,20 @@ const Ut = (e) => {
|
|
|
1159
1159
|
}
|
|
1160
1160
|
},
|
|
1161
1161
|
cancel(d) {
|
|
1162
|
-
return a(d),
|
|
1162
|
+
return a(d), r.return();
|
|
1163
1163
|
}
|
|
1164
1164
|
}, {
|
|
1165
1165
|
highWaterMark: 2
|
|
1166
1166
|
});
|
|
1167
|
-
}, Ee = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
|
1167
|
+
}, Ee = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Pt = Ee && typeof ReadableStream == "function", bs = Ee && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Nt = (e, ...t) => {
|
|
1168
1168
|
try {
|
|
1169
1169
|
return !!e(...t);
|
|
1170
1170
|
} catch {
|
|
1171
1171
|
return !1;
|
|
1172
1172
|
}
|
|
1173
|
-
},
|
|
1173
|
+
}, _s = Pt && Nt(() => {
|
|
1174
1174
|
let e = !1;
|
|
1175
|
-
const t = new Request(
|
|
1175
|
+
const t = new Request(N.origin, {
|
|
1176
1176
|
body: new ReadableStream(),
|
|
1177
1177
|
method: "POST",
|
|
1178
1178
|
get duplex() {
|
|
@@ -1180,39 +1180,39 @@ const Ut = (e) => {
|
|
|
1180
1180
|
}
|
|
1181
1181
|
}).headers.has("Content-Type");
|
|
1182
1182
|
return e && !t;
|
|
1183
|
-
}),
|
|
1183
|
+
}), it = 64 * 1024, $e = Pt && Nt(() => l.isReadableStream(new Response("").body)), ye = {
|
|
1184
1184
|
stream: $e && ((e) => e.body)
|
|
1185
1185
|
};
|
|
1186
1186
|
Ee && ((e) => {
|
|
1187
1187
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1188
|
-
!ye[t] && (ye[t] = l.isFunction(e[t]) ? (n) => n[t]() : (n,
|
|
1189
|
-
throw new b(`Response type '${t}' is not supported`, b.ERR_NOT_SUPPORT,
|
|
1188
|
+
!ye[t] && (ye[t] = l.isFunction(e[t]) ? (n) => n[t]() : (n, s) => {
|
|
1189
|
+
throw new b(`Response type '${t}' is not supported`, b.ERR_NOT_SUPPORT, s);
|
|
1190
1190
|
});
|
|
1191
1191
|
});
|
|
1192
1192
|
})(new Response());
|
|
1193
|
-
const
|
|
1193
|
+
const ws = async (e) => {
|
|
1194
1194
|
if (e == null)
|
|
1195
1195
|
return 0;
|
|
1196
1196
|
if (l.isBlob(e))
|
|
1197
1197
|
return e.size;
|
|
1198
1198
|
if (l.isSpecCompliantForm(e))
|
|
1199
|
-
return (await new Request(
|
|
1199
|
+
return (await new Request(N.origin, {
|
|
1200
1200
|
method: "POST",
|
|
1201
1201
|
body: e
|
|
1202
1202
|
}).arrayBuffer()).byteLength;
|
|
1203
1203
|
if (l.isArrayBufferView(e) || l.isArrayBuffer(e))
|
|
1204
1204
|
return e.byteLength;
|
|
1205
1205
|
if (l.isURLSearchParams(e) && (e = e + ""), l.isString(e))
|
|
1206
|
-
return (await
|
|
1207
|
-
},
|
|
1206
|
+
return (await bs(e)).byteLength;
|
|
1207
|
+
}, Ss = async (e, t) => {
|
|
1208
1208
|
const n = l.toFiniteNumber(e.getContentLength());
|
|
1209
|
-
return n ??
|
|
1210
|
-
},
|
|
1209
|
+
return n ?? ws(t);
|
|
1210
|
+
}, vs = Ee && (async (e) => {
|
|
1211
1211
|
let {
|
|
1212
1212
|
url: t,
|
|
1213
1213
|
method: n,
|
|
1214
|
-
data:
|
|
1215
|
-
signal:
|
|
1214
|
+
data: s,
|
|
1215
|
+
signal: r,
|
|
1216
1216
|
cancelToken: o,
|
|
1217
1217
|
timeout: i,
|
|
1218
1218
|
onDownloadProgress: a,
|
|
@@ -1221,26 +1221,26 @@ const br = async (e) => {
|
|
|
1221
1221
|
headers: u,
|
|
1222
1222
|
withCredentials: m = "same-origin",
|
|
1223
1223
|
fetchOptions: T
|
|
1224
|
-
} =
|
|
1224
|
+
} = $t(e);
|
|
1225
1225
|
c = c ? (c + "").toLowerCase() : "text";
|
|
1226
|
-
let A =
|
|
1226
|
+
let A = ms([r, o && o.toAbortSignal()], i), h;
|
|
1227
1227
|
const _ = A && A.unsubscribe && (() => {
|
|
1228
1228
|
A.unsubscribe();
|
|
1229
1229
|
});
|
|
1230
1230
|
let g;
|
|
1231
1231
|
try {
|
|
1232
|
-
if (d &&
|
|
1233
|
-
let
|
|
1232
|
+
if (d && _s && n !== "get" && n !== "head" && (g = await Ss(u, s)) !== 0) {
|
|
1233
|
+
let P = new Request(t, {
|
|
1234
1234
|
method: "POST",
|
|
1235
|
-
body:
|
|
1235
|
+
body: s,
|
|
1236
1236
|
duplex: "half"
|
|
1237
1237
|
}), J;
|
|
1238
|
-
if (l.isFormData(
|
|
1239
|
-
const [Q, fe] =
|
|
1238
|
+
if (l.isFormData(s) && (J = P.headers.get("content-type")) && u.setContentType(J), P.body) {
|
|
1239
|
+
const [Q, fe] = nt(
|
|
1240
1240
|
g,
|
|
1241
|
-
ge(
|
|
1241
|
+
ge(st(d))
|
|
1242
1242
|
);
|
|
1243
|
-
|
|
1243
|
+
s = ot(P.body, it, Q, fe);
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
1246
|
l.isString(m) || (m = m ? "include" : "omit");
|
|
@@ -1250,34 +1250,34 @@ const br = async (e) => {
|
|
|
1250
1250
|
signal: A,
|
|
1251
1251
|
method: n.toUpperCase(),
|
|
1252
1252
|
headers: u.normalize().toJSON(),
|
|
1253
|
-
body:
|
|
1253
|
+
body: s,
|
|
1254
1254
|
duplex: "half",
|
|
1255
1255
|
credentials: O ? m : void 0
|
|
1256
1256
|
});
|
|
1257
1257
|
let I = await fetch(h);
|
|
1258
1258
|
const D = $e && (c === "stream" || c === "response");
|
|
1259
1259
|
if ($e && (a || D && _)) {
|
|
1260
|
-
const
|
|
1260
|
+
const P = {};
|
|
1261
1261
|
["status", "statusText", "headers"].forEach((Je) => {
|
|
1262
|
-
|
|
1262
|
+
P[Je] = I[Je];
|
|
1263
1263
|
});
|
|
1264
|
-
const J = l.toFiniteNumber(I.headers.get("content-length")), [Q, fe] = a &&
|
|
1264
|
+
const J = l.toFiniteNumber(I.headers.get("content-length")), [Q, fe] = a && nt(
|
|
1265
1265
|
J,
|
|
1266
|
-
ge(
|
|
1266
|
+
ge(st(a), !0)
|
|
1267
1267
|
) || [];
|
|
1268
1268
|
I = new Response(
|
|
1269
|
-
|
|
1269
|
+
ot(I.body, it, Q, () => {
|
|
1270
1270
|
fe && fe(), _ && _();
|
|
1271
1271
|
}),
|
|
1272
|
-
|
|
1272
|
+
P
|
|
1273
1273
|
);
|
|
1274
1274
|
}
|
|
1275
1275
|
c = c || "text";
|
|
1276
1276
|
let K = await ye[l.findKey(ye, c) || "text"](I, e);
|
|
1277
|
-
return !D && _ && _(), await new Promise((
|
|
1278
|
-
|
|
1277
|
+
return !D && _ && _(), await new Promise((P, J) => {
|
|
1278
|
+
Ut(P, J, {
|
|
1279
1279
|
data: K,
|
|
1280
|
-
headers:
|
|
1280
|
+
headers: F.from(I.headers),
|
|
1281
1281
|
status: I.status,
|
|
1282
1282
|
statusText: I.statusText,
|
|
1283
1283
|
config: e,
|
|
@@ -1293,9 +1293,9 @@ const br = async (e) => {
|
|
|
1293
1293
|
) : b.from(O, O && O.code, e, h);
|
|
1294
1294
|
}
|
|
1295
1295
|
}), Pe = {
|
|
1296
|
-
http:
|
|
1297
|
-
xhr:
|
|
1298
|
-
fetch:
|
|
1296
|
+
http: Nn,
|
|
1297
|
+
xhr: fs,
|
|
1298
|
+
fetch: vs
|
|
1299
1299
|
};
|
|
1300
1300
|
l.forEach(Pe, (e, t) => {
|
|
1301
1301
|
if (e) {
|
|
@@ -1306,91 +1306,91 @@ l.forEach(Pe, (e, t) => {
|
|
|
1306
1306
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1307
1307
|
}
|
|
1308
1308
|
});
|
|
1309
|
-
const
|
|
1309
|
+
const at = (e) => `- ${e}`, Es = (e) => l.isFunction(e) || e === null || e === !1, Ft = {
|
|
1310
1310
|
getAdapter: (e) => {
|
|
1311
1311
|
e = l.isArray(e) ? e : [e];
|
|
1312
1312
|
const { length: t } = e;
|
|
1313
|
-
let n,
|
|
1314
|
-
const
|
|
1313
|
+
let n, s;
|
|
1314
|
+
const r = {};
|
|
1315
1315
|
for (let o = 0; o < t; o++) {
|
|
1316
1316
|
n = e[o];
|
|
1317
1317
|
let i;
|
|
1318
|
-
if (
|
|
1318
|
+
if (s = n, !Es(n) && (s = Pe[(i = String(n)).toLowerCase()], s === void 0))
|
|
1319
1319
|
throw new b(`Unknown adapter '${i}'`);
|
|
1320
|
-
if (
|
|
1320
|
+
if (s)
|
|
1321
1321
|
break;
|
|
1322
|
-
|
|
1322
|
+
r[i || "#" + o] = s;
|
|
1323
1323
|
}
|
|
1324
|
-
if (!
|
|
1325
|
-
const o = Object.entries(
|
|
1324
|
+
if (!s) {
|
|
1325
|
+
const o = Object.entries(r).map(
|
|
1326
1326
|
([a, d]) => `adapter ${a} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1327
1327
|
);
|
|
1328
1328
|
let i = t ? o.length > 1 ? `since :
|
|
1329
|
-
` + o.map(
|
|
1330
|
-
`) : " " +
|
|
1329
|
+
` + o.map(at).join(`
|
|
1330
|
+
`) : " " + at(o[0]) : "as no adapter specified";
|
|
1331
1331
|
throw new b(
|
|
1332
1332
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1333
1333
|
"ERR_NOT_SUPPORT"
|
|
1334
1334
|
);
|
|
1335
1335
|
}
|
|
1336
|
-
return
|
|
1336
|
+
return s;
|
|
1337
1337
|
},
|
|
1338
1338
|
adapters: Pe
|
|
1339
1339
|
};
|
|
1340
1340
|
function Ie(e) {
|
|
1341
1341
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1342
|
-
throw new
|
|
1342
|
+
throw new se(null, e);
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1345
|
-
return Ie(e), e.headers =
|
|
1344
|
+
function lt(e) {
|
|
1345
|
+
return Ie(e), e.headers = F.from(e.headers), e.data = Ae.call(
|
|
1346
1346
|
e,
|
|
1347
1347
|
e.transformRequest
|
|
1348
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1349
|
-
return Ie(e),
|
|
1348
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ft.getAdapter(e.adapter || de.adapter)(e).then(function(s) {
|
|
1349
|
+
return Ie(e), s.data = Ae.call(
|
|
1350
1350
|
e,
|
|
1351
1351
|
e.transformResponse,
|
|
1352
|
-
|
|
1353
|
-
),
|
|
1354
|
-
}, function(
|
|
1355
|
-
return
|
|
1352
|
+
s
|
|
1353
|
+
), s.headers = F.from(s.headers), s;
|
|
1354
|
+
}, function(s) {
|
|
1355
|
+
return Dt(s) || (Ie(e), s && s.response && (s.response.data = Ae.call(
|
|
1356
1356
|
e,
|
|
1357
1357
|
e.transformResponse,
|
|
1358
|
-
|
|
1359
|
-
),
|
|
1358
|
+
s.response
|
|
1359
|
+
), s.response.headers = F.from(s.response.headers))), Promise.reject(s);
|
|
1360
1360
|
});
|
|
1361
1361
|
}
|
|
1362
|
-
const
|
|
1362
|
+
const jt = "1.7.7", qe = {};
|
|
1363
1363
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1364
|
-
qe[e] = function(
|
|
1365
|
-
return typeof
|
|
1364
|
+
qe[e] = function(s) {
|
|
1365
|
+
return typeof s === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1366
1366
|
};
|
|
1367
1367
|
});
|
|
1368
|
-
const
|
|
1369
|
-
qe.transitional = function(t, n,
|
|
1370
|
-
function
|
|
1371
|
-
return "[Axios v" +
|
|
1368
|
+
const ct = {};
|
|
1369
|
+
qe.transitional = function(t, n, s) {
|
|
1370
|
+
function r(o, i) {
|
|
1371
|
+
return "[Axios v" + jt + "] Transitional option '" + o + "'" + i + (s ? ". " + s : "");
|
|
1372
1372
|
}
|
|
1373
1373
|
return (o, i, a) => {
|
|
1374
1374
|
if (t === !1)
|
|
1375
1375
|
throw new b(
|
|
1376
|
-
|
|
1376
|
+
r(i, " has been removed" + (n ? " in " + n : "")),
|
|
1377
1377
|
b.ERR_DEPRECATED
|
|
1378
1378
|
);
|
|
1379
|
-
return n && !
|
|
1380
|
-
|
|
1379
|
+
return n && !ct[i] && (ct[i] = !0, console.warn(
|
|
1380
|
+
r(
|
|
1381
1381
|
i,
|
|
1382
1382
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1383
1383
|
)
|
|
1384
1384
|
)), t ? t(o, i, a) : !0;
|
|
1385
1385
|
};
|
|
1386
1386
|
};
|
|
1387
|
-
function
|
|
1387
|
+
function Rs(e, t, n) {
|
|
1388
1388
|
if (typeof e != "object")
|
|
1389
1389
|
throw new b("options must be an object", b.ERR_BAD_OPTION_VALUE);
|
|
1390
|
-
const
|
|
1391
|
-
let
|
|
1392
|
-
for (;
|
|
1393
|
-
const o = r
|
|
1390
|
+
const s = Object.keys(e);
|
|
1391
|
+
let r = s.length;
|
|
1392
|
+
for (; r-- > 0; ) {
|
|
1393
|
+
const o = s[r], i = t[o];
|
|
1394
1394
|
if (i) {
|
|
1395
1395
|
const a = e[o], d = a === void 0 || i(a, o, e);
|
|
1396
1396
|
if (d !== !0)
|
|
@@ -1402,14 +1402,14 @@ function vr(e, t, n) {
|
|
|
1402
1402
|
}
|
|
1403
1403
|
}
|
|
1404
1404
|
const Ne = {
|
|
1405
|
-
assertOptions:
|
|
1405
|
+
assertOptions: Rs,
|
|
1406
1406
|
validators: qe
|
|
1407
1407
|
}, W = Ne.validators;
|
|
1408
1408
|
class Z {
|
|
1409
1409
|
constructor(t) {
|
|
1410
1410
|
this.defaults = t, this.interceptors = {
|
|
1411
|
-
request: new
|
|
1412
|
-
response: new
|
|
1411
|
+
request: new et(),
|
|
1412
|
+
response: new et()
|
|
1413
1413
|
};
|
|
1414
1414
|
}
|
|
1415
1415
|
/**
|
|
@@ -1423,30 +1423,30 @@ class Z {
|
|
|
1423
1423
|
async request(t, n) {
|
|
1424
1424
|
try {
|
|
1425
1425
|
return await this._request(t, n);
|
|
1426
|
-
} catch (
|
|
1427
|
-
if (
|
|
1428
|
-
let
|
|
1429
|
-
Error.captureStackTrace ? Error.captureStackTrace(
|
|
1430
|
-
const o =
|
|
1426
|
+
} catch (s) {
|
|
1427
|
+
if (s instanceof Error) {
|
|
1428
|
+
let r;
|
|
1429
|
+
Error.captureStackTrace ? Error.captureStackTrace(r = {}) : r = new Error();
|
|
1430
|
+
const o = r.stack ? r.stack.replace(/^.+\n/, "") : "";
|
|
1431
1431
|
try {
|
|
1432
|
-
|
|
1433
|
-
` + o) :
|
|
1432
|
+
s.stack ? o && !String(s.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (s.stack += `
|
|
1433
|
+
` + o) : s.stack = o;
|
|
1434
1434
|
} catch {
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
|
-
throw
|
|
1437
|
+
throw s;
|
|
1438
1438
|
}
|
|
1439
1439
|
}
|
|
1440
1440
|
_request(t, n) {
|
|
1441
1441
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = ee(this.defaults, n);
|
|
1442
|
-
const { transitional:
|
|
1443
|
-
|
|
1442
|
+
const { transitional: s, paramsSerializer: r, headers: o } = n;
|
|
1443
|
+
s !== void 0 && Ne.assertOptions(s, {
|
|
1444
1444
|
silentJSONParsing: W.transitional(W.boolean),
|
|
1445
1445
|
forcedJSONParsing: W.transitional(W.boolean),
|
|
1446
1446
|
clarifyTimeoutError: W.transitional(W.boolean)
|
|
1447
|
-
}, !1),
|
|
1448
|
-
serialize:
|
|
1449
|
-
} : Ne.assertOptions(
|
|
1447
|
+
}, !1), r != null && (l.isFunction(r) ? n.paramsSerializer = {
|
|
1448
|
+
serialize: r
|
|
1449
|
+
} : Ne.assertOptions(r, {
|
|
1450
1450
|
encode: W.function,
|
|
1451
1451
|
serialize: W.function
|
|
1452
1452
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1459,7 +1459,7 @@ class Z {
|
|
|
1459
1459
|
(h) => {
|
|
1460
1460
|
delete o[h];
|
|
1461
1461
|
}
|
|
1462
|
-
), n.headers =
|
|
1462
|
+
), n.headers = F.concat(i, o);
|
|
1463
1463
|
const a = [];
|
|
1464
1464
|
let d = !0;
|
|
1465
1465
|
this.interceptors.request.forEach(function(_) {
|
|
@@ -1471,7 +1471,7 @@ class Z {
|
|
|
1471
1471
|
});
|
|
1472
1472
|
let u, m = 0, T;
|
|
1473
1473
|
if (!d) {
|
|
1474
|
-
const h = [
|
|
1474
|
+
const h = [lt.bind(this), void 0];
|
|
1475
1475
|
for (h.unshift.apply(h, a), h.push.apply(h, c), T = h.length, u = Promise.resolve(n); m < T; )
|
|
1476
1476
|
u = u.then(h[m++], h[m++]);
|
|
1477
1477
|
return u;
|
|
@@ -1488,7 +1488,7 @@ class Z {
|
|
|
1488
1488
|
}
|
|
1489
1489
|
}
|
|
1490
1490
|
try {
|
|
1491
|
-
u =
|
|
1491
|
+
u = lt.call(this, A);
|
|
1492
1492
|
} catch (h) {
|
|
1493
1493
|
return Promise.reject(h);
|
|
1494
1494
|
}
|
|
@@ -1498,25 +1498,25 @@ class Z {
|
|
|
1498
1498
|
}
|
|
1499
1499
|
getUri(t) {
|
|
1500
1500
|
t = ee(this.defaults, t);
|
|
1501
|
-
const n =
|
|
1502
|
-
return
|
|
1501
|
+
const n = Lt(t.baseURL, t.url);
|
|
1502
|
+
return At(n, t.params, t.paramsSerializer);
|
|
1503
1503
|
}
|
|
1504
1504
|
}
|
|
1505
1505
|
l.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1506
|
-
Z.prototype[t] = function(n,
|
|
1507
|
-
return this.request(ee(
|
|
1506
|
+
Z.prototype[t] = function(n, s) {
|
|
1507
|
+
return this.request(ee(s || {}, {
|
|
1508
1508
|
method: t,
|
|
1509
1509
|
url: n,
|
|
1510
|
-
data: (
|
|
1510
|
+
data: (s || {}).data
|
|
1511
1511
|
}));
|
|
1512
1512
|
};
|
|
1513
1513
|
});
|
|
1514
1514
|
l.forEach(["post", "put", "patch"], function(t) {
|
|
1515
|
-
function n(
|
|
1515
|
+
function n(s) {
|
|
1516
1516
|
return function(o, i, a) {
|
|
1517
1517
|
return this.request(ee(a || {}, {
|
|
1518
1518
|
method: t,
|
|
1519
|
-
headers:
|
|
1519
|
+
headers: s ? {
|
|
1520
1520
|
"Content-Type": "multipart/form-data"
|
|
1521
1521
|
} : {},
|
|
1522
1522
|
url: o,
|
|
@@ -1534,23 +1534,23 @@ class He {
|
|
|
1534
1534
|
this.promise = new Promise(function(o) {
|
|
1535
1535
|
n = o;
|
|
1536
1536
|
});
|
|
1537
|
-
const
|
|
1538
|
-
this.promise.then((
|
|
1539
|
-
if (!
|
|
1540
|
-
let o =
|
|
1537
|
+
const s = this;
|
|
1538
|
+
this.promise.then((r) => {
|
|
1539
|
+
if (!s._listeners) return;
|
|
1540
|
+
let o = s._listeners.length;
|
|
1541
1541
|
for (; o-- > 0; )
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
}), this.promise.then = (
|
|
1542
|
+
s._listeners[o](r);
|
|
1543
|
+
s._listeners = null;
|
|
1544
|
+
}), this.promise.then = (r) => {
|
|
1545
1545
|
let o;
|
|
1546
1546
|
const i = new Promise((a) => {
|
|
1547
|
-
|
|
1548
|
-
}).then(
|
|
1547
|
+
s.subscribe(a), o = a;
|
|
1548
|
+
}).then(r);
|
|
1549
1549
|
return i.cancel = function() {
|
|
1550
|
-
|
|
1550
|
+
s.unsubscribe(o);
|
|
1551
1551
|
}, i;
|
|
1552
1552
|
}, t(function(o, i, a) {
|
|
1553
|
-
|
|
1553
|
+
s.reason || (s.reason = new se(o, i, a), n(s.reason));
|
|
1554
1554
|
});
|
|
1555
1555
|
}
|
|
1556
1556
|
/**
|
|
@@ -1580,8 +1580,8 @@ class He {
|
|
|
1580
1580
|
n !== -1 && this._listeners.splice(n, 1);
|
|
1581
1581
|
}
|
|
1582
1582
|
toAbortSignal() {
|
|
1583
|
-
const t = new AbortController(), n = (
|
|
1584
|
-
t.abort(
|
|
1583
|
+
const t = new AbortController(), n = (s) => {
|
|
1584
|
+
t.abort(s);
|
|
1585
1585
|
};
|
|
1586
1586
|
return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
|
|
1587
1587
|
}
|
|
@@ -1592,19 +1592,19 @@ class He {
|
|
|
1592
1592
|
static source() {
|
|
1593
1593
|
let t;
|
|
1594
1594
|
return {
|
|
1595
|
-
token: new He(function(
|
|
1596
|
-
t =
|
|
1595
|
+
token: new He(function(r) {
|
|
1596
|
+
t = r;
|
|
1597
1597
|
}),
|
|
1598
1598
|
cancel: t
|
|
1599
1599
|
};
|
|
1600
1600
|
}
|
|
1601
1601
|
}
|
|
1602
|
-
function
|
|
1602
|
+
function Ts(e) {
|
|
1603
1603
|
return function(n) {
|
|
1604
1604
|
return e.apply(null, n);
|
|
1605
1605
|
};
|
|
1606
1606
|
}
|
|
1607
|
-
function
|
|
1607
|
+
function Os(e) {
|
|
1608
1608
|
return l.isObject(e) && e.isAxiosError === !0;
|
|
1609
1609
|
}
|
|
1610
1610
|
const Fe = {
|
|
@@ -1675,68 +1675,68 @@ const Fe = {
|
|
|
1675
1675
|
Object.entries(Fe).forEach(([e, t]) => {
|
|
1676
1676
|
Fe[t] = e;
|
|
1677
1677
|
});
|
|
1678
|
-
function
|
|
1679
|
-
const t = new Z(e), n =
|
|
1680
|
-
return l.extend(n, Z.prototype, t, { allOwnKeys: !0 }), l.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(
|
|
1681
|
-
return
|
|
1678
|
+
function Bt(e) {
|
|
1679
|
+
const t = new Z(e), n = yt(Z.prototype.request, t);
|
|
1680
|
+
return l.extend(n, Z.prototype, t, { allOwnKeys: !0 }), l.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
|
|
1681
|
+
return Bt(ee(e, r));
|
|
1682
1682
|
}, n;
|
|
1683
1683
|
}
|
|
1684
|
-
const x =
|
|
1684
|
+
const x = Bt(de);
|
|
1685
1685
|
x.Axios = Z;
|
|
1686
|
-
x.CanceledError =
|
|
1686
|
+
x.CanceledError = se;
|
|
1687
1687
|
x.CancelToken = He;
|
|
1688
|
-
x.isCancel =
|
|
1689
|
-
x.VERSION =
|
|
1688
|
+
x.isCancel = Dt;
|
|
1689
|
+
x.VERSION = jt;
|
|
1690
1690
|
x.toFormData = ve;
|
|
1691
1691
|
x.AxiosError = b;
|
|
1692
1692
|
x.Cancel = x.CanceledError;
|
|
1693
1693
|
x.all = function(t) {
|
|
1694
1694
|
return Promise.all(t);
|
|
1695
1695
|
};
|
|
1696
|
-
x.spread =
|
|
1697
|
-
x.isAxiosError =
|
|
1696
|
+
x.spread = Ts;
|
|
1697
|
+
x.isAxiosError = Os;
|
|
1698
1698
|
x.mergeConfig = ee;
|
|
1699
|
-
x.AxiosHeaders =
|
|
1700
|
-
x.formToJSON = (e) =>
|
|
1701
|
-
x.getAdapter =
|
|
1699
|
+
x.AxiosHeaders = F;
|
|
1700
|
+
x.formToJSON = (e) => Ct(l.isHTMLForm(e) ? new FormData(e) : e);
|
|
1701
|
+
x.getAdapter = Ft.getAdapter;
|
|
1702
1702
|
x.HttpStatusCode = Fe;
|
|
1703
1703
|
x.default = x;
|
|
1704
|
-
const
|
|
1704
|
+
const Mt = (e = {}) => {
|
|
1705
1705
|
const t = te(), {
|
|
1706
1706
|
baseURL: n,
|
|
1707
|
-
projectId:
|
|
1708
|
-
projectToken:
|
|
1707
|
+
projectId: s,
|
|
1708
|
+
projectToken: r,
|
|
1709
1709
|
userToken: o,
|
|
1710
1710
|
csrfToken: i
|
|
1711
1711
|
} = t.getAPIConfig, a = {
|
|
1712
1712
|
baseURL: n,
|
|
1713
1713
|
params: {
|
|
1714
|
-
project_id:
|
|
1715
|
-
project_token:
|
|
1714
|
+
project_id: s,
|
|
1715
|
+
project_token: r,
|
|
1716
1716
|
token: o
|
|
1717
1717
|
},
|
|
1718
1718
|
...e
|
|
1719
1719
|
};
|
|
1720
|
-
return (!
|
|
1720
|
+
return (!r || !(s && o) && i) && Object.assign(a, { headers: { "X-CSRF-Token": i } }), x.create({
|
|
1721
1721
|
...a
|
|
1722
1722
|
});
|
|
1723
1723
|
};
|
|
1724
|
-
class
|
|
1724
|
+
class ks {
|
|
1725
1725
|
static key(t, n) {
|
|
1726
|
-
return
|
|
1726
|
+
return Mt().get(`/observation_matrices/${t}/key`, n);
|
|
1727
1727
|
}
|
|
1728
1728
|
}
|
|
1729
1729
|
const ie = {
|
|
1730
1730
|
Used: "used",
|
|
1731
1731
|
Useful: "useful",
|
|
1732
1732
|
Useless: "useless"
|
|
1733
|
-
},
|
|
1733
|
+
}, xs = (e) => ({
|
|
1734
1734
|
characterStateId: e.id,
|
|
1735
1735
|
depictionIds: e.depiction_ids,
|
|
1736
1736
|
label: e.label,
|
|
1737
1737
|
position: e.position,
|
|
1738
|
-
...
|
|
1739
|
-
}),
|
|
1738
|
+
...Vt(e)
|
|
1739
|
+
}), As = (e) => ({
|
|
1740
1740
|
depictionId: e.id,
|
|
1741
1741
|
caption: e.caption,
|
|
1742
1742
|
figureLabel: e.figure_label,
|
|
@@ -1756,44 +1756,44 @@ const ie = {
|
|
|
1756
1756
|
depictionIds: e.depiction_ids,
|
|
1757
1757
|
usefulness: e.usefulness,
|
|
1758
1758
|
weight: e.weight
|
|
1759
|
-
}),
|
|
1759
|
+
}), Is = (e) => ({
|
|
1760
1760
|
...pe(e),
|
|
1761
1761
|
defaultUnit: e.default_unit,
|
|
1762
1762
|
max: e.max,
|
|
1763
1763
|
min: e.min
|
|
1764
|
-
}),
|
|
1764
|
+
}), Cs = (e) => ({
|
|
1765
1765
|
...pe(e),
|
|
1766
1766
|
defaultUnit: e.default_unit,
|
|
1767
1767
|
max: e.max,
|
|
1768
1768
|
min: e.min
|
|
1769
|
-
}),
|
|
1769
|
+
}), Ds = (e) => ({
|
|
1770
1770
|
...pe(e),
|
|
1771
|
-
states: e.states.map((t) =>
|
|
1772
|
-
}),
|
|
1771
|
+
states: e.states.map((t) => Vt(t))
|
|
1772
|
+
}), Us = (e) => ({
|
|
1773
1773
|
...pe(e),
|
|
1774
|
-
characterStates: e.states.map((t) =>
|
|
1775
|
-
}),
|
|
1774
|
+
characterStates: e.states.map((t) => xs(t))
|
|
1775
|
+
}), Ls = (e) => {
|
|
1776
1776
|
switch (e.type) {
|
|
1777
1777
|
case oe.Continuous:
|
|
1778
|
-
return
|
|
1778
|
+
return Is(e);
|
|
1779
1779
|
case oe.Sample:
|
|
1780
|
-
return
|
|
1780
|
+
return Cs(e);
|
|
1781
1781
|
case oe.PresenceAbsence:
|
|
1782
|
-
return
|
|
1782
|
+
return Ds(e);
|
|
1783
1783
|
case oe.Qualitative:
|
|
1784
|
-
return
|
|
1784
|
+
return Us(e);
|
|
1785
1785
|
default:
|
|
1786
1786
|
return pe(e);
|
|
1787
1787
|
}
|
|
1788
|
-
},
|
|
1788
|
+
}, $s = (e) => ({
|
|
1789
1789
|
observationMatrixId: e.observation_matrix_id,
|
|
1790
1790
|
name: e.observation_matrix.name,
|
|
1791
1791
|
globalId: e.observation_matrix.global_id
|
|
1792
|
-
}),
|
|
1792
|
+
}), Vt = (e) => ({
|
|
1793
1793
|
name: e.name,
|
|
1794
1794
|
numberOfObjects: e.number_of_objects,
|
|
1795
1795
|
status: e.status
|
|
1796
|
-
}),
|
|
1796
|
+
}), ut = (e) => ({
|
|
1797
1797
|
errorDescriptors: e.error_descriptors,
|
|
1798
1798
|
errors: e.errors,
|
|
1799
1799
|
objectLabel: e.object.object_label,
|
|
@@ -1801,11 +1801,11 @@ const ie = {
|
|
|
1801
1801
|
observationObjectId: e.object.observation_object_id,
|
|
1802
1802
|
observationObjectType: e.object.observation_object_type,
|
|
1803
1803
|
rowId: e.object.id
|
|
1804
|
-
}),
|
|
1804
|
+
}), Ps = (e) => ({
|
|
1805
1805
|
keywordId: e.id,
|
|
1806
1806
|
definition: e.description,
|
|
1807
1807
|
name: e.name
|
|
1808
|
-
}),
|
|
1808
|
+
}), Ns = (e) => ({
|
|
1809
1809
|
languageId: e.id,
|
|
1810
1810
|
name: e.english_name
|
|
1811
1811
|
}), z = je("observationMatrix", {
|
|
@@ -1851,8 +1851,8 @@ const ie = {
|
|
|
1851
1851
|
this.observationMatrix = e;
|
|
1852
1852
|
},
|
|
1853
1853
|
async requestInteractiveKey({ observationMatrixId: e, params: t = {}, opt: n = {} }) {
|
|
1854
|
-
const
|
|
1855
|
-
return n.refreshOnlyTaxa || (this.setObservationMatrix(
|
|
1854
|
+
const s = await ks.key(e, { params: t }), { data: r } = s;
|
|
1855
|
+
return n.refreshOnlyTaxa || (this.setObservationMatrix($s(r)), this.setDescriptors(r.list_of_descriptors.map((o) => Ls(o))), this.setKeywords(r.descriptor_available_keywords.map((o) => Ps(o))), this.setLanguages(r.descriptor_available_languages.map((o) => Ns(o)))), this.setEliminated(r.eliminated.map((o) => ut(o))), this.setRemaining(r.remaining.map((o) => ut(o))), s;
|
|
1856
1856
|
}
|
|
1857
1857
|
}
|
|
1858
1858
|
}), L = je("filter", {
|
|
@@ -1881,7 +1881,7 @@ const ie = {
|
|
|
1881
1881
|
},
|
|
1882
1882
|
getFilterParams: (e) => ({
|
|
1883
1883
|
selected_descriptors: Object.entries(e.descriptors).map(
|
|
1884
|
-
([n,
|
|
1884
|
+
([n, s]) => Array.isArray(s) ? `${n}:${s.join("|")}` : `${n}:${s}`
|
|
1885
1885
|
).join("||"),
|
|
1886
1886
|
language_id: e.languageId,
|
|
1887
1887
|
keyword_ids: e.keywordIds,
|
|
@@ -1964,58 +1964,58 @@ const ie = {
|
|
|
1964
1964
|
opt: {
|
|
1965
1965
|
refreshOnlyTaxa: this.refreshOnlyTaxa
|
|
1966
1966
|
}
|
|
1967
|
-
}).then((
|
|
1967
|
+
}).then((s) => this.errorMessage = "").catch((s) => this.errorMessage = s.message).finally(() => this.isLoading = !1));
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
|
-
}),
|
|
1970
|
+
}), Fs = /* @__PURE__ */ S({
|
|
1971
1971
|
__name: "FilterEliminateUnknowns",
|
|
1972
1972
|
setup(e) {
|
|
1973
1973
|
const t = L(), n = C({
|
|
1974
1974
|
get: () => !!t.getEliminateUknown,
|
|
1975
|
-
set: (
|
|
1976
|
-
t.setEliminateUnknown(
|
|
1975
|
+
set: (s) => {
|
|
1976
|
+
t.setEliminateUnknown(s);
|
|
1977
1977
|
}
|
|
1978
1978
|
});
|
|
1979
|
-
return (
|
|
1980
|
-
|
|
1981
|
-
"onUpdate:modelValue":
|
|
1979
|
+
return (s, r) => (p(), y("label", null, [
|
|
1980
|
+
q(f("input", {
|
|
1981
|
+
"onUpdate:modelValue": r[0] || (r[0] = (o) => n.value = o),
|
|
1982
1982
|
type: "checkbox"
|
|
1983
1983
|
}, null, 512), [
|
|
1984
1984
|
[le, n.value]
|
|
1985
1985
|
]),
|
|
1986
|
-
|
|
1986
|
+
r[1] || (r[1] = j(" Eliminate unknowns "))
|
|
1987
1987
|
]));
|
|
1988
1988
|
}
|
|
1989
|
-
}),
|
|
1989
|
+
}), js = ["value"], Bs = /* @__PURE__ */ S({
|
|
1990
1990
|
__name: "FilterErrorTolerance",
|
|
1991
1991
|
setup(e) {
|
|
1992
|
-
const t = [0, 1, 2], n = L(),
|
|
1992
|
+
const t = [0, 1, 2], n = L(), s = C({
|
|
1993
1993
|
get: () => n.getErrorTolerance,
|
|
1994
|
-
set: (
|
|
1995
|
-
n.setErrorTolerance(
|
|
1994
|
+
set: (r) => {
|
|
1995
|
+
n.setErrorTolerance(r);
|
|
1996
1996
|
}
|
|
1997
1997
|
});
|
|
1998
|
-
return (
|
|
1998
|
+
return (r, o) => (p(), y("div", null, [
|
|
1999
1999
|
o[2] || (o[2] = f("label", {
|
|
2000
2000
|
for: "languages",
|
|
2001
2001
|
class: "distinguish-input-label"
|
|
2002
2002
|
}, " Error tolerance ", -1)),
|
|
2003
|
-
|
|
2004
|
-
"onUpdate:modelValue": o[0] || (o[0] = (i) =>
|
|
2003
|
+
q(f("select", {
|
|
2004
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => s.value = i),
|
|
2005
2005
|
name: "languages",
|
|
2006
2006
|
role: "listbox"
|
|
2007
2007
|
}, [
|
|
2008
2008
|
o[1] || (o[1] = f("option", { value: "" }, null, -1)),
|
|
2009
|
-
(p(), y(U, null,
|
|
2009
|
+
(p(), y(U, null, B(t, (i) => f("option", {
|
|
2010
2010
|
key: i,
|
|
2011
2011
|
value: i
|
|
2012
|
-
}, E(i), 9,
|
|
2012
|
+
}, E(i), 9, js)), 64))
|
|
2013
2013
|
], 512), [
|
|
2014
|
-
[ce,
|
|
2014
|
+
[ce, s.value]
|
|
2015
2015
|
])
|
|
2016
2016
|
]));
|
|
2017
2017
|
}
|
|
2018
|
-
}),
|
|
2018
|
+
}), Ms = [
|
|
2019
2019
|
"otu",
|
|
2020
2020
|
"subspecies",
|
|
2021
2021
|
"species",
|
|
@@ -2025,81 +2025,81 @@ const ie = {
|
|
|
2025
2025
|
"tribe",
|
|
2026
2026
|
"subfamily",
|
|
2027
2027
|
"family"
|
|
2028
|
-
],
|
|
2028
|
+
], Vs = /* @__PURE__ */ S({
|
|
2029
2029
|
__name: "FilterRank",
|
|
2030
2030
|
setup(e) {
|
|
2031
2031
|
const t = L(), n = C({
|
|
2032
2032
|
get() {
|
|
2033
2033
|
return t.getIdentifiedToRank;
|
|
2034
2034
|
},
|
|
2035
|
-
set(
|
|
2036
|
-
t.$patch({ identifiedToRank:
|
|
2035
|
+
set(s) {
|
|
2036
|
+
t.$patch({ identifiedToRank: s });
|
|
2037
2037
|
}
|
|
2038
2038
|
});
|
|
2039
|
-
return (
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
"onUpdate:modelValue":
|
|
2039
|
+
return (s, r) => (p(), y("div", null, [
|
|
2040
|
+
r[2] || (r[2] = f("label", { class: "distinguish-input-label" }, "Identified to rank", -1)),
|
|
2041
|
+
q(f("select", {
|
|
2042
|
+
"onUpdate:modelValue": r[0] || (r[0] = (o) => n.value = o)
|
|
2043
2043
|
}, [
|
|
2044
|
-
|
|
2045
|
-
(p(!0), y(U, null,
|
|
2044
|
+
r[1] || (r[1] = f("option", { value: void 0 }, null, -1)),
|
|
2045
|
+
(p(!0), y(U, null, B(k(Ms), (o) => (p(), y("option", { key: o }, E(o), 1))), 128))
|
|
2046
2046
|
], 512), [
|
|
2047
2047
|
[ce, n.value]
|
|
2048
2048
|
])
|
|
2049
2049
|
]));
|
|
2050
2050
|
}
|
|
2051
|
-
}),
|
|
2051
|
+
}), qs = /* @__PURE__ */ S({
|
|
2052
2052
|
__name: "FilterSort",
|
|
2053
2053
|
setup(e) {
|
|
2054
|
-
const t = ["ordered", "weighted", "optimized"], n = L(),
|
|
2054
|
+
const t = ["ordered", "weighted", "optimized"], n = L(), s = C({
|
|
2055
2055
|
get() {
|
|
2056
2056
|
return n.getSorting;
|
|
2057
2057
|
},
|
|
2058
|
-
set(
|
|
2059
|
-
n.$patch({ sorting:
|
|
2058
|
+
set(r) {
|
|
2059
|
+
n.$patch({ sorting: r });
|
|
2060
2060
|
}
|
|
2061
2061
|
});
|
|
2062
|
-
return (
|
|
2062
|
+
return (r, o) => (p(), y("div", null, [
|
|
2063
2063
|
o[2] || (o[2] = f("label", { class: "distinguish-input-label" }, "Descriptor sorting", -1)),
|
|
2064
|
-
|
|
2065
|
-
"onUpdate:modelValue": o[0] || (o[0] = (i) =>
|
|
2064
|
+
q(f("select", {
|
|
2065
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => s.value = i)
|
|
2066
2066
|
}, [
|
|
2067
2067
|
o[1] || (o[1] = f("option", { value: void 0 }, null, -1)),
|
|
2068
|
-
(p(), y(U, null,
|
|
2068
|
+
(p(), y(U, null, B(t, (i) => f("option", { key: i }, E(i), 1)), 64))
|
|
2069
2069
|
], 512), [
|
|
2070
|
-
[ce,
|
|
2070
|
+
[ce, s.value]
|
|
2071
2071
|
])
|
|
2072
2072
|
]));
|
|
2073
2073
|
}
|
|
2074
|
-
}),
|
|
2074
|
+
}), Hs = ["value"], Ks = /* @__PURE__ */ S({
|
|
2075
2075
|
__name: "FilterLanguage",
|
|
2076
2076
|
setup(e) {
|
|
2077
|
-
const t = L(), n = z(),
|
|
2077
|
+
const t = L(), n = z(), s = C({
|
|
2078
2078
|
get: () => t.getLanguageId,
|
|
2079
|
-
set: (
|
|
2080
|
-
t.setLanguageId(Number(
|
|
2079
|
+
set: (r) => {
|
|
2080
|
+
t.setLanguageId(Number(r));
|
|
2081
2081
|
}
|
|
2082
2082
|
});
|
|
2083
|
-
return (
|
|
2083
|
+
return (r, o) => (p(), y("div", null, [
|
|
2084
2084
|
o[1] || (o[1] = f("label", {
|
|
2085
2085
|
for: "languages",
|
|
2086
2086
|
class: "distinguish-input-label"
|
|
2087
2087
|
}, " Languages ", -1)),
|
|
2088
|
-
|
|
2089
|
-
"onUpdate:modelValue": o[0] || (o[0] = (i) =>
|
|
2088
|
+
q(f("select", {
|
|
2089
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => s.value = i),
|
|
2090
2090
|
name: "languages",
|
|
2091
2091
|
role: "listbox"
|
|
2092
2092
|
}, [
|
|
2093
|
-
(p(!0), y(U, null,
|
|
2093
|
+
(p(!0), y(U, null, B(k(n).getLanguages, ({ languageId: i, name: a }) => (p(), y("option", {
|
|
2094
2094
|
key: i,
|
|
2095
2095
|
value: i
|
|
2096
|
-
}, E(a), 9,
|
|
2096
|
+
}, E(a), 9, Hs))), 128))
|
|
2097
2097
|
], 512), [
|
|
2098
|
-
[ce,
|
|
2098
|
+
[ce, s.value]
|
|
2099
2099
|
])
|
|
2100
2100
|
]));
|
|
2101
2101
|
}
|
|
2102
|
-
}),
|
|
2102
|
+
}), zs = ["disabled"], Re = /* @__PURE__ */ S({
|
|
2103
2103
|
__name: "VBtn",
|
|
2104
2104
|
props: {
|
|
2105
2105
|
color: { default: "primary" },
|
|
@@ -2111,15 +2111,15 @@ const ie = {
|
|
|
2111
2111
|
`distinguish-btn-${t.color}-color`,
|
|
2112
2112
|
`distinguish-btn-${t.size}-size`
|
|
2113
2113
|
]);
|
|
2114
|
-
return (
|
|
2114
|
+
return (s, r) => (p(), y("button", {
|
|
2115
2115
|
type: "button",
|
|
2116
2116
|
class: be(["distinguish-btn", n.value]),
|
|
2117
|
-
disabled:
|
|
2117
|
+
disabled: s.disabled
|
|
2118
2118
|
}, [
|
|
2119
|
-
|
|
2120
|
-
], 10,
|
|
2119
|
+
$(s.$slots, "default")
|
|
2120
|
+
], 10, zs));
|
|
2121
2121
|
}
|
|
2122
|
-
}),
|
|
2122
|
+
}), Js = { class: "distinguish-modal-wrapper" }, Ws = { class: "distinguish-modal-header" }, Gs = { class: "distinguish-modal-body" }, Qs = { class: "distinguish-modal-footer" }, Ke = /* @__PURE__ */ S({
|
|
2123
2123
|
__name: "VModal",
|
|
2124
2124
|
props: {
|
|
2125
2125
|
containerClass: {},
|
|
@@ -2127,35 +2127,35 @@ const ie = {
|
|
|
2127
2127
|
},
|
|
2128
2128
|
emits: ["close"],
|
|
2129
2129
|
setup(e, { emit: t }) {
|
|
2130
|
-
const n = t,
|
|
2131
|
-
|
|
2130
|
+
const n = t, s = (r) => {
|
|
2131
|
+
r.preventDefault(), r.key === "Escape" && n("close");
|
|
2132
2132
|
};
|
|
2133
|
-
return
|
|
2134
|
-
default:
|
|
2133
|
+
return pt(() => document.addEventListener("keydown", s)), ft(() => document.removeEventListener("keydown", s)), (r, o) => (p(), R(mt, { name: "distinguish-modal" }, {
|
|
2134
|
+
default: w(() => [
|
|
2135
2135
|
f("div", {
|
|
2136
2136
|
class: "distinguish-modal-mask",
|
|
2137
2137
|
onClick: o[2] || (o[2] = (i) => n("close")),
|
|
2138
2138
|
onKey: o[3] || (o[3] = (i) => n("close"))
|
|
2139
2139
|
}, [
|
|
2140
|
-
f("div",
|
|
2140
|
+
f("div", Js, [
|
|
2141
2141
|
f("div", {
|
|
2142
|
-
class: be(["distinguish-modal-container",
|
|
2143
|
-
style:
|
|
2144
|
-
onClick: o[1] || (o[1] =
|
|
2142
|
+
class: be(["distinguish-modal-container", r.containerClass]),
|
|
2143
|
+
style: Kt({ ...r.containerStyle }),
|
|
2144
|
+
onClick: o[1] || (o[1] = zt(() => {
|
|
2145
2145
|
}, ["stop"]))
|
|
2146
2146
|
}, [
|
|
2147
|
-
f("div",
|
|
2147
|
+
f("div", Ws, [
|
|
2148
2148
|
f("div", {
|
|
2149
2149
|
class: "distinguish-modal-close",
|
|
2150
2150
|
onClick: o[0] || (o[0] = (i) => n("close"))
|
|
2151
2151
|
}),
|
|
2152
|
-
|
|
2152
|
+
$(r.$slots, "header")
|
|
2153
2153
|
]),
|
|
2154
|
-
f("div",
|
|
2155
|
-
|
|
2154
|
+
f("div", Gs, [
|
|
2155
|
+
$(r.$slots, "body")
|
|
2156
2156
|
]),
|
|
2157
|
-
f("div",
|
|
2158
|
-
|
|
2157
|
+
f("div", Qs, [
|
|
2158
|
+
$(r.$slots, "footer")
|
|
2159
2159
|
])
|
|
2160
2160
|
], 6)
|
|
2161
2161
|
])
|
|
@@ -2164,10 +2164,10 @@ const ie = {
|
|
|
2164
2164
|
_: 3
|
|
2165
2165
|
}));
|
|
2166
2166
|
}
|
|
2167
|
-
}),
|
|
2167
|
+
}), Xs = { class: "distinguish-list-checkboxes" }, Ys = ["value"], Zs = /* @__PURE__ */ S({
|
|
2168
2168
|
__name: "FilterKeywords",
|
|
2169
2169
|
setup(e) {
|
|
2170
|
-
const t = z(), n = L(),
|
|
2170
|
+
const t = z(), n = L(), s = G(!1), r = C({
|
|
2171
2171
|
get: () => n.getKeywordIds,
|
|
2172
2172
|
set: (o) => {
|
|
2173
2173
|
n.$patch({ keywordIds: o });
|
|
@@ -2179,100 +2179,100 @@ const ie = {
|
|
|
2179
2179
|
size: "medium",
|
|
2180
2180
|
disabled: !k(t).getKeywords.length,
|
|
2181
2181
|
title: k(t).getKeywords.length ? "" : "No tags defined.",
|
|
2182
|
-
onClick: i[0] || (i[0] = (a) =>
|
|
2182
|
+
onClick: i[0] || (i[0] = (a) => s.value = !0)
|
|
2183
2183
|
}, {
|
|
2184
|
-
default:
|
|
2185
|
-
|
|
2184
|
+
default: w(() => i[3] || (i[3] = [
|
|
2185
|
+
j(" Keyword ")
|
|
2186
2186
|
])),
|
|
2187
2187
|
_: 1
|
|
2188
2188
|
}, 8, ["disabled", "title"]),
|
|
2189
|
-
|
|
2189
|
+
s.value ? (p(), R(Ke, {
|
|
2190
2190
|
key: 0,
|
|
2191
|
-
onClose: i[2] || (i[2] = (a) =>
|
|
2191
|
+
onClose: i[2] || (i[2] = (a) => s.value = !1)
|
|
2192
2192
|
}, {
|
|
2193
|
-
header:
|
|
2193
|
+
header: w(() => i[4] || (i[4] = [
|
|
2194
2194
|
f("h3", null, "Keywords", -1)
|
|
2195
2195
|
])),
|
|
2196
|
-
body:
|
|
2197
|
-
f("ul",
|
|
2198
|
-
(p(!0), y(U, null,
|
|
2196
|
+
body: w(() => [
|
|
2197
|
+
f("ul", Xs, [
|
|
2198
|
+
(p(!0), y(U, null, B(k(t).getKeywords, ({ keywordId: a, name: d }) => (p(), y("li", { key: a }, [
|
|
2199
2199
|
f("label", null, [
|
|
2200
|
-
|
|
2201
|
-
"onUpdate:modelValue": i[1] || (i[1] = (c) =>
|
|
2200
|
+
q(f("input", {
|
|
2201
|
+
"onUpdate:modelValue": i[1] || (i[1] = (c) => r.value = c),
|
|
2202
2202
|
value: a,
|
|
2203
2203
|
type: "checkbox"
|
|
2204
|
-
}, null, 8,
|
|
2205
|
-
[le,
|
|
2204
|
+
}, null, 8, Ys), [
|
|
2205
|
+
[le, r.value]
|
|
2206
2206
|
]),
|
|
2207
|
-
|
|
2207
|
+
j(" " + E(d), 1)
|
|
2208
2208
|
])
|
|
2209
2209
|
]))), 128))
|
|
2210
2210
|
])
|
|
2211
2211
|
]),
|
|
2212
2212
|
_: 1
|
|
2213
|
-
})) :
|
|
2213
|
+
})) : M("", !0)
|
|
2214
2214
|
], 64));
|
|
2215
2215
|
}
|
|
2216
|
-
}),
|
|
2216
|
+
}), er = /* @__PURE__ */ S({
|
|
2217
2217
|
__name: "SettingRefresh",
|
|
2218
2218
|
setup(e) {
|
|
2219
2219
|
const t = te(), n = C({
|
|
2220
2220
|
get: () => t.getRefreshOnlyTaxa,
|
|
2221
|
-
set: (
|
|
2222
|
-
t.setRefreshOnlyTaxa(
|
|
2221
|
+
set: (s) => {
|
|
2222
|
+
t.setRefreshOnlyTaxa(s);
|
|
2223
2223
|
}
|
|
2224
2224
|
});
|
|
2225
|
-
return (
|
|
2226
|
-
|
|
2227
|
-
"onUpdate:modelValue":
|
|
2225
|
+
return (s, r) => (p(), y("label", null, [
|
|
2226
|
+
q(f("input", {
|
|
2227
|
+
"onUpdate:modelValue": r[0] || (r[0] = (o) => n.value = o),
|
|
2228
2228
|
type: "checkbox"
|
|
2229
2229
|
}, null, 512), [
|
|
2230
2230
|
[le, n.value]
|
|
2231
2231
|
]),
|
|
2232
|
-
|
|
2232
|
+
r[1] || (r[1] = j(" Refresh only taxa "))
|
|
2233
2233
|
]));
|
|
2234
2234
|
}
|
|
2235
2235
|
}), Te = (e, t) => {
|
|
2236
2236
|
const n = e.__vccOpts || e;
|
|
2237
|
-
for (const [
|
|
2238
|
-
n[
|
|
2237
|
+
for (const [s, r] of t)
|
|
2238
|
+
n[s] = r;
|
|
2239
2239
|
return n;
|
|
2240
|
-
},
|
|
2241
|
-
function
|
|
2242
|
-
return p(), y("ul",
|
|
2243
|
-
|
|
2240
|
+
}, tr = {}, nr = { class: "distinguish-menu-list" };
|
|
2241
|
+
function sr(e, t) {
|
|
2242
|
+
return p(), y("ul", nr, [
|
|
2243
|
+
$(e.$slots, "default")
|
|
2244
2244
|
]);
|
|
2245
2245
|
}
|
|
2246
|
-
const
|
|
2247
|
-
function
|
|
2248
|
-
return p(), y("li",
|
|
2249
|
-
|
|
2246
|
+
const rr = /* @__PURE__ */ Te(tr, [["render", sr]]), or = {}, ir = { class: "distinguish-list-item" };
|
|
2247
|
+
function ar(e, t) {
|
|
2248
|
+
return p(), y("li", ir, [
|
|
2249
|
+
$(e.$slots, "default")
|
|
2250
2250
|
]);
|
|
2251
2251
|
}
|
|
2252
|
-
const X = /* @__PURE__ */ Te(
|
|
2252
|
+
const X = /* @__PURE__ */ Te(or, [["render", ar]]), dt = {
|
|
2253
2253
|
"distinguish-layout-mode-1": "distinguish-layout-mode-2",
|
|
2254
2254
|
"distinguish-layout-mode-2": "distinguish-layout-mode-1"
|
|
2255
|
-
},
|
|
2256
|
-
function
|
|
2257
|
-
return p(), y("div",
|
|
2258
|
-
|
|
2255
|
+
}, lr = {}, cr = { class: "distinguish-grid" };
|
|
2256
|
+
function ur(e, t) {
|
|
2257
|
+
return p(), y("div", cr, [
|
|
2258
|
+
$(e.$slots, "default")
|
|
2259
2259
|
]);
|
|
2260
2260
|
}
|
|
2261
|
-
const
|
|
2261
|
+
const qt = /* @__PURE__ */ Te(lr, [["render", ur]]), dr = /* @__PURE__ */ S({
|
|
2262
2262
|
__name: "GridToggle",
|
|
2263
2263
|
setup(e) {
|
|
2264
|
-
const t = te(), n = C(() => t.getLayout),
|
|
2264
|
+
const t = te(), n = C(() => t.getLayout), s = () => {
|
|
2265
2265
|
t.$patch({
|
|
2266
|
-
gridLayout:
|
|
2266
|
+
gridLayout: dt[n.value]
|
|
2267
2267
|
});
|
|
2268
2268
|
};
|
|
2269
|
-
return (
|
|
2270
|
-
class: be(k(
|
|
2271
|
-
onClick:
|
|
2269
|
+
return (r, o) => (p(), R(Re, {
|
|
2270
|
+
class: be(k(dt)[n.value]),
|
|
2271
|
+
onClick: s
|
|
2272
2272
|
}, {
|
|
2273
|
-
default:
|
|
2274
|
-
v(
|
|
2275
|
-
default:
|
|
2273
|
+
default: w(() => [
|
|
2274
|
+
v(qt, { class: "distinguish-grid-icon" }, {
|
|
2275
|
+
default: w(() => o[0] || (o[0] = [
|
|
2276
2276
|
f("div", { class: "distinguish-panel-descriptors" }, null, -1),
|
|
2277
2277
|
f("div", { class: "distinguish-panel-remaining" }, null, -1),
|
|
2278
2278
|
f("div", { class: "distinguish-panel-eliminated" }, null, -1)
|
|
@@ -2283,337 +2283,347 @@ const Mt = /* @__PURE__ */ Te(is, [["render", ls]]), cs = /* @__PURE__ */ w({
|
|
|
2283
2283
|
_: 1
|
|
2284
2284
|
}, 8, ["class"]));
|
|
2285
2285
|
}
|
|
2286
|
-
}),
|
|
2286
|
+
}), pr = /* @__PURE__ */ S({
|
|
2287
2287
|
__name: "ResetButton",
|
|
2288
2288
|
setup(e) {
|
|
2289
2289
|
const t = L();
|
|
2290
|
-
return (n,
|
|
2290
|
+
return (n, s) => (p(), R(Re, {
|
|
2291
2291
|
color: "primary",
|
|
2292
2292
|
size: "medium",
|
|
2293
|
-
onClick:
|
|
2293
|
+
onClick: s[0] || (s[0] = (r) => k(t).$reset())
|
|
2294
2294
|
}, {
|
|
2295
|
-
default:
|
|
2296
|
-
|
|
2295
|
+
default: w(() => s[1] || (s[1] = [
|
|
2296
|
+
j(" Reset ")
|
|
2297
2297
|
])),
|
|
2298
2298
|
_: 1
|
|
2299
2299
|
}));
|
|
2300
2300
|
}
|
|
2301
|
-
}),
|
|
2301
|
+
}), fr = { class: "distinguish-header-error-message" }, mr = /* @__PURE__ */ S({
|
|
2302
2302
|
__name: "ErrorMessage",
|
|
2303
2303
|
setup(e) {
|
|
2304
2304
|
const t = te();
|
|
2305
|
-
return (n,
|
|
2305
|
+
return (n, s) => (p(), y("span", fr, E(k(t).getErrorMessage), 1));
|
|
2306
2306
|
}
|
|
2307
|
-
}),
|
|
2307
|
+
}), hr = { class: "distinguish-header-bar" }, gr = { class: "distinguish-header-bar__buttons" }, yr = /* @__PURE__ */ S({
|
|
2308
2308
|
__name: "HeaderBar",
|
|
2309
2309
|
setup(e) {
|
|
2310
|
-
return (t, n) => (p(), y("div",
|
|
2311
|
-
v(
|
|
2312
|
-
v(
|
|
2313
|
-
default:
|
|
2310
|
+
return (t, n) => (p(), y("div", hr, [
|
|
2311
|
+
v(mr),
|
|
2312
|
+
v(rr, null, {
|
|
2313
|
+
default: w(() => [
|
|
2314
2314
|
v(X, null, {
|
|
2315
|
-
default:
|
|
2316
|
-
v(
|
|
2315
|
+
default: w(() => [
|
|
2316
|
+
v(er)
|
|
2317
2317
|
]),
|
|
2318
2318
|
_: 1
|
|
2319
2319
|
}),
|
|
2320
2320
|
v(X, null, {
|
|
2321
|
-
default:
|
|
2322
|
-
v(
|
|
2321
|
+
default: w(() => [
|
|
2322
|
+
v(Fs)
|
|
2323
2323
|
]),
|
|
2324
2324
|
_: 1
|
|
2325
2325
|
}),
|
|
2326
2326
|
v(X, null, {
|
|
2327
|
-
default:
|
|
2328
|
-
v(
|
|
2327
|
+
default: w(() => [
|
|
2328
|
+
v(Bs)
|
|
2329
2329
|
]),
|
|
2330
2330
|
_: 1
|
|
2331
2331
|
}),
|
|
2332
2332
|
v(X, null, {
|
|
2333
|
-
default:
|
|
2334
|
-
v(
|
|
2333
|
+
default: w(() => [
|
|
2334
|
+
v(Vs)
|
|
2335
2335
|
]),
|
|
2336
2336
|
_: 1
|
|
2337
2337
|
}),
|
|
2338
2338
|
v(X, null, {
|
|
2339
|
-
default:
|
|
2340
|
-
v(
|
|
2339
|
+
default: w(() => [
|
|
2340
|
+
v(Ks)
|
|
2341
2341
|
]),
|
|
2342
2342
|
_: 1
|
|
2343
2343
|
}),
|
|
2344
2344
|
v(X, null, {
|
|
2345
|
-
default:
|
|
2346
|
-
v(
|
|
2345
|
+
default: w(() => [
|
|
2346
|
+
v(qs)
|
|
2347
2347
|
]),
|
|
2348
2348
|
_: 1
|
|
2349
2349
|
}),
|
|
2350
2350
|
v(X, null, {
|
|
2351
|
-
default:
|
|
2352
|
-
v(
|
|
2351
|
+
default: w(() => [
|
|
2352
|
+
v(Zs)
|
|
2353
2353
|
]),
|
|
2354
2354
|
_: 1
|
|
2355
2355
|
})
|
|
2356
2356
|
]),
|
|
2357
2357
|
_: 1
|
|
2358
2358
|
}),
|
|
2359
|
-
f("div",
|
|
2360
|
-
v(
|
|
2361
|
-
v(
|
|
2359
|
+
f("div", gr, [
|
|
2360
|
+
v(pr),
|
|
2361
|
+
v(dr)
|
|
2362
2362
|
])
|
|
2363
2363
|
]));
|
|
2364
2364
|
}
|
|
2365
|
-
}),
|
|
2366
|
-
function
|
|
2367
|
-
return p(), y("div",
|
|
2368
|
-
|
|
2365
|
+
}), br = {}, _r = { class: "distinguish-panel" };
|
|
2366
|
+
function wr(e, t) {
|
|
2367
|
+
return p(), y("div", _r, [
|
|
2368
|
+
$(e.$slots, "default")
|
|
2369
2369
|
]);
|
|
2370
2370
|
}
|
|
2371
|
-
const ze = /* @__PURE__ */ Te(
|
|
2371
|
+
const ze = /* @__PURE__ */ Te(br, [["render", wr]]), Sr = ["innerHTML"], vr = /* @__PURE__ */ S({
|
|
2372
2372
|
__name: "PanelEliminated",
|
|
2373
2373
|
props: {
|
|
2374
2374
|
render: { type: Function }
|
|
2375
2375
|
},
|
|
2376
2376
|
setup(e) {
|
|
2377
2377
|
const t = z(), n = C(() => t.getEliminated);
|
|
2378
|
-
return (
|
|
2379
|
-
default:
|
|
2378
|
+
return (s, r) => (p(), R(ze, { class: "distinguish-panel-eliminated" }, {
|
|
2379
|
+
default: w(() => [
|
|
2380
2380
|
f("h2", null, "Eliminated (" + E(n.value.length) + ")", 1),
|
|
2381
2381
|
f("ul", null, [
|
|
2382
|
-
(p(!0), y(U, null,
|
|
2382
|
+
(p(!0), y(U, null, B(n.value, (o) => (p(), y("li", {
|
|
2383
2383
|
key: o.rowId,
|
|
2384
|
-
class: "distinguish-row-item"
|
|
2385
|
-
|
|
2386
|
-
|
|
2384
|
+
class: "distinguish-row-item"
|
|
2385
|
+
}, [
|
|
2386
|
+
$(s.$slots, "default", { item: o }, () => [
|
|
2387
|
+
f("span", {
|
|
2388
|
+
innerHTML: s.render ? s.render(o) : o.objectTag
|
|
2389
|
+
}, null, 8, Sr)
|
|
2390
|
+
])
|
|
2391
|
+
]))), 128))
|
|
2387
2392
|
])
|
|
2388
2393
|
]),
|
|
2389
|
-
_:
|
|
2394
|
+
_: 3
|
|
2390
2395
|
}));
|
|
2391
2396
|
}
|
|
2392
|
-
}),
|
|
2397
|
+
}), Er = { class: "distinguish-list-checkboxes" }, Rr = ["value"], Tr = /* @__PURE__ */ S({
|
|
2393
2398
|
__name: "FilterRow",
|
|
2394
2399
|
setup(e) {
|
|
2395
|
-
const t = z(), n = te(),
|
|
2396
|
-
const d =
|
|
2400
|
+
const t = z(), n = te(), s = L(), r = G(!1), o = G([]), i = C(() => {
|
|
2401
|
+
const d = s.getRowIds, c = o.value;
|
|
2397
2402
|
return d.length !== c.length || !d.every((u) => c.includes(u));
|
|
2398
2403
|
}), a = C({
|
|
2399
|
-
get: () =>
|
|
2404
|
+
get: () => s.getRowIds,
|
|
2400
2405
|
set: (d) => {
|
|
2401
|
-
|
|
2406
|
+
s.$patch({ rowIds: d });
|
|
2402
2407
|
}
|
|
2403
2408
|
});
|
|
2404
|
-
return
|
|
2405
|
-
n.setShouldUpdate(!d), !d && i.value && n.checkUpdate(), o.value =
|
|
2409
|
+
return Jt(r, (d) => {
|
|
2410
|
+
n.setShouldUpdate(!d), !d && i.value && n.checkUpdate(), o.value = s.getRowIds;
|
|
2406
2411
|
}), (d, c) => (p(), y(U, null, [
|
|
2407
2412
|
v(Re, {
|
|
2408
2413
|
color: "primary",
|
|
2409
2414
|
size: "medium",
|
|
2410
|
-
onClick: c[0] || (c[0] = (u) =>
|
|
2415
|
+
onClick: c[0] || (c[0] = (u) => r.value = !0)
|
|
2411
2416
|
}, {
|
|
2412
|
-
default:
|
|
2413
|
-
|
|
2417
|
+
default: w(() => c[3] || (c[3] = [
|
|
2418
|
+
j(" Select ")
|
|
2414
2419
|
])),
|
|
2415
2420
|
_: 1
|
|
2416
2421
|
}),
|
|
2417
|
-
|
|
2422
|
+
r.value ? (p(), R(Ke, {
|
|
2418
2423
|
key: 0,
|
|
2419
|
-
onClose: c[2] || (c[2] = (u) =>
|
|
2424
|
+
onClose: c[2] || (c[2] = (u) => r.value = !1)
|
|
2420
2425
|
}, {
|
|
2421
|
-
header:
|
|
2426
|
+
header: w(() => c[4] || (c[4] = [
|
|
2422
2427
|
f("h3", null, "Filter row", -1)
|
|
2423
2428
|
])),
|
|
2424
|
-
body:
|
|
2429
|
+
body: w(() => [
|
|
2425
2430
|
f("div", null, [
|
|
2426
|
-
f("ul",
|
|
2427
|
-
(p(!0), y(U, null,
|
|
2431
|
+
f("ul", Er, [
|
|
2432
|
+
(p(!0), y(U, null, B(k(t).getRemaining, (u) => (p(), y("li", {
|
|
2428
2433
|
key: u.rowId
|
|
2429
2434
|
}, [
|
|
2430
2435
|
f("label", null, [
|
|
2431
|
-
|
|
2436
|
+
q(f("input", {
|
|
2432
2437
|
"onUpdate:modelValue": c[1] || (c[1] = (m) => a.value = m),
|
|
2433
2438
|
value: u.rowId,
|
|
2434
2439
|
type: "checkbox"
|
|
2435
|
-
}, null, 8,
|
|
2440
|
+
}, null, 8, Rr), [
|
|
2436
2441
|
[le, a.value]
|
|
2437
2442
|
]),
|
|
2438
|
-
|
|
2443
|
+
j(" " + E(u.objectLabel), 1)
|
|
2439
2444
|
])
|
|
2440
2445
|
]))), 128))
|
|
2441
2446
|
])
|
|
2442
2447
|
])
|
|
2443
2448
|
]),
|
|
2444
2449
|
_: 1
|
|
2445
|
-
})) :
|
|
2450
|
+
})) : M("", !0)
|
|
2446
2451
|
], 64));
|
|
2447
2452
|
}
|
|
2448
|
-
}),
|
|
2453
|
+
}), Or = { class: "distinguish-title-section" }, kr = ["innerHTML"], xr = /* @__PURE__ */ S({
|
|
2449
2454
|
__name: "PanelRemaining",
|
|
2450
2455
|
props: {
|
|
2451
2456
|
render: { type: Function }
|
|
2452
2457
|
},
|
|
2453
2458
|
setup(e) {
|
|
2454
2459
|
const t = z(), n = C(() => t.getRemaining);
|
|
2455
|
-
return (
|
|
2456
|
-
default:
|
|
2457
|
-
f("div",
|
|
2460
|
+
return (s, r) => (p(), R(ze, { class: "distinguish-panel-remaining" }, {
|
|
2461
|
+
default: w(() => [
|
|
2462
|
+
f("div", Or, [
|
|
2458
2463
|
f("h2", null, "Remaining (" + E(n.value.length) + ")", 1),
|
|
2459
|
-
v(
|
|
2464
|
+
v(Tr)
|
|
2460
2465
|
]),
|
|
2461
2466
|
f("ul", null, [
|
|
2462
|
-
(p(!0), y(U, null,
|
|
2467
|
+
(p(!0), y(U, null, B(n.value, (o) => (p(), y("li", {
|
|
2463
2468
|
key: o.rowId,
|
|
2464
|
-
class: "distinguish-row-item"
|
|
2465
|
-
|
|
2466
|
-
|
|
2469
|
+
class: "distinguish-row-item"
|
|
2470
|
+
}, [
|
|
2471
|
+
$(s.$slots, "default", { item: o }, () => [
|
|
2472
|
+
f("span", {
|
|
2473
|
+
innerHTML: s.render ? s.render(o) : o.objectTag
|
|
2474
|
+
}, null, 8, kr)
|
|
2475
|
+
])
|
|
2476
|
+
]))), 128))
|
|
2467
2477
|
])
|
|
2468
2478
|
]),
|
|
2469
|
-
_:
|
|
2479
|
+
_: 3
|
|
2470
2480
|
}));
|
|
2471
2481
|
}
|
|
2472
2482
|
});
|
|
2473
|
-
class
|
|
2483
|
+
class Ar {
|
|
2474
2484
|
static find(t) {
|
|
2475
|
-
return
|
|
2485
|
+
return Mt().get(`/depictions/${t}.json`, { params: { extend: ["image"] } });
|
|
2476
2486
|
}
|
|
2477
2487
|
}
|
|
2478
|
-
const
|
|
2488
|
+
const Ir = {
|
|
2479
2489
|
key: 0,
|
|
2480
2490
|
class: "distinguish-depiction-box"
|
|
2481
|
-
},
|
|
2491
|
+
}, Cr = ["src"], Ht = /* @__PURE__ */ S({
|
|
2482
2492
|
__name: "VDepiction",
|
|
2483
2493
|
props: {
|
|
2484
2494
|
depictionId: {}
|
|
2485
2495
|
},
|
|
2486
2496
|
setup(e) {
|
|
2487
2497
|
const t = e, n = G();
|
|
2488
|
-
return
|
|
2489
|
-
n.value =
|
|
2490
|
-
}), (
|
|
2498
|
+
return Ar.find(t.depictionId).then(({ data: s }) => {
|
|
2499
|
+
n.value = As(s);
|
|
2500
|
+
}), (s, r) => n.value ? (p(), y("div", Ir, [
|
|
2491
2501
|
f("img", {
|
|
2492
2502
|
src: n.value.imageUrl
|
|
2493
|
-
}, null, 8,
|
|
2494
|
-
])) :
|
|
2503
|
+
}, null, 8, Cr)
|
|
2504
|
+
])) : M("", !0);
|
|
2495
2505
|
}
|
|
2496
|
-
}),
|
|
2506
|
+
}), Dr = { class: "distinguish-character-descriptor__cell" }, Ur = ["value"], Lr = /* @__PURE__ */ S({
|
|
2497
2507
|
__name: "CharacterStateCell",
|
|
2498
2508
|
props: {
|
|
2499
2509
|
characterState: {},
|
|
2500
2510
|
descriptorId: {}
|
|
2501
2511
|
},
|
|
2502
2512
|
setup(e) {
|
|
2503
|
-
const t = e, n = L(),
|
|
2513
|
+
const t = e, n = L(), s = C({
|
|
2504
2514
|
get: () => n.getDescriptorValueById(t.descriptorId) || [],
|
|
2505
|
-
set: (
|
|
2506
|
-
|
|
2515
|
+
set: (r) => {
|
|
2516
|
+
r.length ? n.setDescriptor({
|
|
2507
2517
|
descriptorId: t.descriptorId,
|
|
2508
|
-
value:
|
|
2518
|
+
value: r
|
|
2509
2519
|
}) : n.removeDescriptor(t.descriptorId);
|
|
2510
2520
|
}
|
|
2511
2521
|
});
|
|
2512
|
-
return (
|
|
2522
|
+
return (r, o) => (p(), y("div", Dr, [
|
|
2513
2523
|
f("label", null, [
|
|
2514
|
-
(p(!0), y(U, null,
|
|
2524
|
+
(p(!0), y(U, null, B(r.characterState.depictionIds, (i) => (p(), R(Ht, {
|
|
2515
2525
|
key: i,
|
|
2516
2526
|
"depiction-id": i
|
|
2517
2527
|
}, null, 8, ["depiction-id"]))), 128)),
|
|
2518
|
-
|
|
2519
|
-
"onUpdate:modelValue": o[0] || (o[0] = (i) =>
|
|
2520
|
-
value:
|
|
2528
|
+
q(f("input", {
|
|
2529
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => s.value = i),
|
|
2530
|
+
value: r.characterState.characterStateId,
|
|
2521
2531
|
type: "checkbox"
|
|
2522
|
-
}, null, 8,
|
|
2523
|
-
[le,
|
|
2532
|
+
}, null, 8, Ur), [
|
|
2533
|
+
[le, s.value]
|
|
2524
2534
|
]),
|
|
2525
|
-
|
|
2535
|
+
j(" " + E(r.characterState.name), 1)
|
|
2526
2536
|
])
|
|
2527
2537
|
]));
|
|
2528
2538
|
}
|
|
2529
|
-
}),
|
|
2539
|
+
}), $r = { class: "distinguish-character-states-grid" }, Pr = /* @__PURE__ */ S({
|
|
2530
2540
|
__name: "CharacterStateGrid",
|
|
2531
2541
|
props: {
|
|
2532
2542
|
descriptor: {}
|
|
2533
2543
|
},
|
|
2534
2544
|
setup(e) {
|
|
2535
|
-
const t = e, n = L(),
|
|
2536
|
-
const i = n.getDescriptorValueById(t.descriptor.descriptorId) || [], a =
|
|
2545
|
+
const t = e, n = L(), s = te(), r = G(), o = C(() => {
|
|
2546
|
+
const i = n.getDescriptorValueById(t.descriptor.descriptorId) || [], a = r.value || [];
|
|
2537
2547
|
return i.length !== a.length || !i.every((d) => a.includes(d));
|
|
2538
2548
|
});
|
|
2539
|
-
return
|
|
2540
|
-
|
|
2541
|
-
}),
|
|
2542
|
-
|
|
2543
|
-
}), (i, a) => (p(), y("div",
|
|
2544
|
-
(p(!0), y(U, null,
|
|
2549
|
+
return pt(() => {
|
|
2550
|
+
s.setShouldUpdate(!1), r.value = n.getDescriptorValueById(t.descriptor.descriptorId);
|
|
2551
|
+
}), ft(() => {
|
|
2552
|
+
s.setShouldUpdate(!0), o.value && s.checkUpdate();
|
|
2553
|
+
}), (i, a) => (p(), y("div", $r, [
|
|
2554
|
+
(p(!0), y(U, null, B(i.descriptor.characterStates, (d) => (p(), R(Lr, {
|
|
2545
2555
|
key: d.characterStateId,
|
|
2546
2556
|
"descriptor-id": i.descriptor.descriptorId,
|
|
2547
2557
|
"character-state": d
|
|
2548
2558
|
}, null, 8, ["descriptor-id", "character-state"]))), 128))
|
|
2549
2559
|
]));
|
|
2550
2560
|
}
|
|
2551
|
-
}),
|
|
2561
|
+
}), Nr = { key: 0 }, Fr = { key: 1 }, jr = { class: "descriptor-modal__depiction" }, Br = /* @__PURE__ */ S({
|
|
2552
2562
|
__name: "DescriptorModal",
|
|
2553
2563
|
props: {
|
|
2554
2564
|
descriptor: {}
|
|
2555
2565
|
},
|
|
2556
2566
|
setup(e) {
|
|
2557
2567
|
return (t, n) => (p(), R(Ke, { "container-class": "distinguish-descriptor-modal" }, {
|
|
2558
|
-
header:
|
|
2568
|
+
header: w(() => [
|
|
2559
2569
|
f("h3", null, E(t.descriptor.name), 1),
|
|
2560
|
-
t.descriptor.description ? (p(), y("span",
|
|
2570
|
+
t.descriptor.description ? (p(), y("span", Nr, E(t.descriptor.description), 1)) : (p(), y("i", Fr, " No further description available. "))
|
|
2561
2571
|
]),
|
|
2562
|
-
body:
|
|
2563
|
-
f("div",
|
|
2564
|
-
(p(!0), y(U, null,
|
|
2565
|
-
key:
|
|
2566
|
-
"depiction-id":
|
|
2572
|
+
body: w(() => [
|
|
2573
|
+
f("div", jr, [
|
|
2574
|
+
(p(!0), y(U, null, B(t.descriptor.depictionIds, (s) => (p(), R(Ht, {
|
|
2575
|
+
key: s,
|
|
2576
|
+
"depiction-id": s
|
|
2567
2577
|
}, null, 8, ["depiction-id"]))), 128))
|
|
2568
2578
|
]),
|
|
2569
2579
|
n[0] || (n[0] = f("hr", null, null, -1)),
|
|
2570
|
-
t.descriptor.type === k(oe).Qualitative ? (p(), R(
|
|
2580
|
+
t.descriptor.type === k(oe).Qualitative ? (p(), R(Pr, {
|
|
2571
2581
|
key: 0,
|
|
2572
2582
|
descriptor: t.descriptor
|
|
2573
|
-
}, null, 8, ["descriptor"])) :
|
|
2583
|
+
}, null, 8, ["descriptor"])) : M("", !0)
|
|
2574
2584
|
]),
|
|
2575
2585
|
_: 1
|
|
2576
2586
|
}));
|
|
2577
2587
|
}
|
|
2578
|
-
}),
|
|
2588
|
+
}), Mr = ["id"], Vr = { class: "distinguish-input-label" }, Oe = /* @__PURE__ */ S({
|
|
2579
2589
|
__name: "DescriptorContainer",
|
|
2580
2590
|
props: {
|
|
2581
2591
|
descriptor: {}
|
|
2582
2592
|
},
|
|
2583
2593
|
setup(e) {
|
|
2584
2594
|
const t = G(!1);
|
|
2585
|
-
return (n,
|
|
2595
|
+
return (n, s) => (p(), y("div", {
|
|
2586
2596
|
id: `descriptor-${n.descriptor.descriptorId}`,
|
|
2587
2597
|
class: "distinguish-descriptor-container"
|
|
2588
2598
|
}, [
|
|
2589
|
-
f("div",
|
|
2599
|
+
f("div", Vr, [
|
|
2590
2600
|
f("span", {
|
|
2591
2601
|
class: "distinguish-link",
|
|
2592
|
-
onClick:
|
|
2602
|
+
onClick: s[0] || (s[0] = (r) => t.value = !0)
|
|
2593
2603
|
}, [
|
|
2594
|
-
|
|
2595
|
-
|
|
2604
|
+
$(n.$slots, "title", {}, () => [
|
|
2605
|
+
j(E(n.descriptor.name), 1)
|
|
2596
2606
|
])
|
|
2597
2607
|
])
|
|
2598
2608
|
]),
|
|
2599
|
-
|
|
2600
|
-
t.value ? (p(), R(
|
|
2609
|
+
$(n.$slots, "default"),
|
|
2610
|
+
t.value ? (p(), R(Br, {
|
|
2601
2611
|
key: 0,
|
|
2602
2612
|
descriptor: n.descriptor,
|
|
2603
|
-
onClose:
|
|
2604
|
-
}, null, 8, ["descriptor"])) :
|
|
2605
|
-
], 8,
|
|
2613
|
+
onClose: s[1] || (s[1] = (r) => t.value = !1)
|
|
2614
|
+
}, null, 8, ["descriptor"])) : M("", !0)
|
|
2615
|
+
], 8, Mr));
|
|
2606
2616
|
}
|
|
2607
|
-
}),
|
|
2617
|
+
}), qr = /* @__PURE__ */ S({
|
|
2608
2618
|
__name: "DescriptorContinuous",
|
|
2609
2619
|
props: {
|
|
2610
2620
|
descriptor: {}
|
|
2611
2621
|
},
|
|
2612
2622
|
setup(e) {
|
|
2613
|
-
const t = e, n = L(),
|
|
2623
|
+
const t = e, n = L(), s = G(
|
|
2614
2624
|
String(n.getDescriptorValueById(t.descriptor.descriptorId))
|
|
2615
|
-
),
|
|
2616
|
-
const { descriptorId: o } = t.descriptor, i =
|
|
2625
|
+
), r = () => {
|
|
2626
|
+
const { descriptorId: o } = t.descriptor, i = s.value.trim();
|
|
2617
2627
|
i ? n.setDescriptor({
|
|
2618
2628
|
descriptorId: o,
|
|
2619
2629
|
value: i
|
|
@@ -2623,23 +2633,23 @@ const xs = {
|
|
|
2623
2633
|
class: "distinguish-descriptor-continuous",
|
|
2624
2634
|
descriptor: o.descriptor
|
|
2625
2635
|
}, {
|
|
2626
|
-
title:
|
|
2627
|
-
|
|
2636
|
+
title: w(() => [
|
|
2637
|
+
j(E(o.descriptor.name) + " (" + E(o.descriptor.min) + "-" + E(o.descriptor.max) + " " + E(o.descriptor.defaultUnit) + ") ", 1)
|
|
2628
2638
|
]),
|
|
2629
|
-
default:
|
|
2630
|
-
|
|
2631
|
-
"onUpdate:modelValue": i[0] || (i[0] = (a) =>
|
|
2639
|
+
default: w(() => [
|
|
2640
|
+
q(f("input", {
|
|
2641
|
+
"onUpdate:modelValue": i[0] || (i[0] = (a) => s.value = a),
|
|
2632
2642
|
type: "text",
|
|
2633
|
-
onBlur:
|
|
2634
|
-
onKeyup:
|
|
2643
|
+
onBlur: r,
|
|
2644
|
+
onKeyup: ht(r, ["enter"])
|
|
2635
2645
|
}, null, 544), [
|
|
2636
|
-
[
|
|
2646
|
+
[gt, s.value]
|
|
2637
2647
|
])
|
|
2638
2648
|
]),
|
|
2639
2649
|
_: 1
|
|
2640
2650
|
}, 8, ["descriptor"]));
|
|
2641
2651
|
}
|
|
2642
|
-
}),
|
|
2652
|
+
}), Hr = ["value"], Kr = { key: 0 }, zr = /* @__PURE__ */ S({
|
|
2643
2653
|
__name: "DescriptorPresenceAbsence",
|
|
2644
2654
|
props: {
|
|
2645
2655
|
descriptor: {}
|
|
@@ -2648,16 +2658,16 @@ const xs = {
|
|
|
2648
2658
|
const t = {
|
|
2649
2659
|
Presence: !0,
|
|
2650
2660
|
Absent: !1
|
|
2651
|
-
}, n = e,
|
|
2652
|
-
get: () =>
|
|
2661
|
+
}, n = e, s = L(), r = C({
|
|
2662
|
+
get: () => s.getDescriptorValueById(
|
|
2653
2663
|
n.descriptor.descriptorId
|
|
2654
2664
|
),
|
|
2655
2665
|
set: (i) => {
|
|
2656
2666
|
const { descriptorId: a } = n.descriptor;
|
|
2657
|
-
typeof i == "boolean" ?
|
|
2667
|
+
typeof i == "boolean" ? s.setDescriptor({
|
|
2658
2668
|
descriptorId: a,
|
|
2659
2669
|
value: !!i
|
|
2660
|
-
}) :
|
|
2670
|
+
}) : s.removeDescriptor(a);
|
|
2661
2671
|
}
|
|
2662
2672
|
}), o = (i) => {
|
|
2663
2673
|
var d;
|
|
@@ -2668,74 +2678,74 @@ const xs = {
|
|
|
2668
2678
|
class: "distinguish-descriptor-presence-absence",
|
|
2669
2679
|
descriptor: i.descriptor
|
|
2670
2680
|
}, {
|
|
2671
|
-
default:
|
|
2672
|
-
|
|
2673
|
-
"onUpdate:modelValue": a[0] || (a[0] = (d) =>
|
|
2681
|
+
default: w(() => [
|
|
2682
|
+
q(f("select", {
|
|
2683
|
+
"onUpdate:modelValue": a[0] || (a[0] = (d) => r.value = d)
|
|
2674
2684
|
}, [
|
|
2675
2685
|
a[1] || (a[1] = f("option", null, null, -1)),
|
|
2676
|
-
(p(), y(U, null,
|
|
2686
|
+
(p(), y(U, null, B(t, (d, c) => f("option", {
|
|
2677
2687
|
key: c,
|
|
2678
2688
|
value: d
|
|
2679
2689
|
}, [
|
|
2680
|
-
i.descriptor.status === k(ie).Useless ? (p(), y("span",
|
|
2681
|
-
|
|
2682
|
-
], 8,
|
|
2690
|
+
i.descriptor.status === k(ie).Useless ? (p(), y("span", Kr, "-")) : M("", !0),
|
|
2691
|
+
j(" " + E(c) + " (" + E(o(d)) + ") ", 1)
|
|
2692
|
+
], 8, Hr)), 64))
|
|
2683
2693
|
], 512), [
|
|
2684
|
-
[ce,
|
|
2694
|
+
[ce, r.value]
|
|
2685
2695
|
])
|
|
2686
2696
|
]),
|
|
2687
2697
|
_: 1
|
|
2688
2698
|
}, 8, ["descriptor"]));
|
|
2689
2699
|
}
|
|
2690
|
-
}),
|
|
2700
|
+
}), Jr = ["value", "selected"], Wr = { key: 0 }, Gr = { key: 1 }, Qr = /* @__PURE__ */ S({
|
|
2691
2701
|
__name: "DescriptorQualitative",
|
|
2692
2702
|
props: {
|
|
2693
2703
|
descriptor: {}
|
|
2694
2704
|
},
|
|
2695
2705
|
setup(e) {
|
|
2696
|
-
const t = e, n = L(),
|
|
2706
|
+
const t = e, n = L(), s = (o) => {
|
|
2697
2707
|
const i = o.target, { descriptorId: a } = t.descriptor;
|
|
2698
2708
|
i.value ? n.setDescriptor({
|
|
2699
2709
|
descriptorId: a,
|
|
2700
2710
|
value: [Number(i.value)]
|
|
2701
2711
|
}) : n.removeDescriptor(a);
|
|
2702
|
-
},
|
|
2712
|
+
}, r = (o) => n.getDescriptorValueById(
|
|
2703
2713
|
t.descriptor.descriptorId
|
|
2704
2714
|
).includes(o.characterStateId);
|
|
2705
2715
|
return (o, i) => (p(), R(Oe, {
|
|
2706
2716
|
class: "distinguish-descriptor-qualitative",
|
|
2707
2717
|
descriptor: o.descriptor
|
|
2708
2718
|
}, {
|
|
2709
|
-
default:
|
|
2719
|
+
default: w(() => [
|
|
2710
2720
|
f("select", {
|
|
2711
2721
|
name: "listbox",
|
|
2712
|
-
onChange:
|
|
2722
|
+
onChange: s
|
|
2713
2723
|
}, [
|
|
2714
2724
|
i[0] || (i[0] = f("option", { value: "" }, null, -1)),
|
|
2715
|
-
(p(!0), y(U, null,
|
|
2725
|
+
(p(!0), y(U, null, B(o.descriptor.characterStates, (a) => (p(), y("option", {
|
|
2716
2726
|
key: a.characterStateId,
|
|
2717
2727
|
value: a.characterStateId,
|
|
2718
|
-
selected:
|
|
2728
|
+
selected: r(a)
|
|
2719
2729
|
}, [
|
|
2720
|
-
|
|
2721
|
-
a.status === k(ie).Useless ? (p(), y("span",
|
|
2722
|
-
|
|
2723
|
-
], 8,
|
|
2730
|
+
r(a) ? (p(), y("span", Wr, ">")) : M("", !0),
|
|
2731
|
+
a.status === k(ie).Useless ? (p(), y("span", Gr, "-")) : M("", !0),
|
|
2732
|
+
j(" " + E(a.name) + " (" + E(a.numberOfObjects) + ") ", 1)
|
|
2733
|
+
], 8, Jr))), 128))
|
|
2724
2734
|
], 32)
|
|
2725
2735
|
]),
|
|
2726
2736
|
_: 1
|
|
2727
2737
|
}, 8, ["descriptor"]));
|
|
2728
2738
|
}
|
|
2729
|
-
}),
|
|
2739
|
+
}), Xr = /* @__PURE__ */ S({
|
|
2730
2740
|
__name: "DescriptorSample",
|
|
2731
2741
|
props: {
|
|
2732
2742
|
descriptor: {}
|
|
2733
2743
|
},
|
|
2734
2744
|
setup(e) {
|
|
2735
|
-
const t = e, n = L(),
|
|
2745
|
+
const t = e, n = L(), s = G(
|
|
2736
2746
|
String(n.getDescriptorValueById(t.descriptor.descriptorId))
|
|
2737
|
-
),
|
|
2738
|
-
const { descriptorId: o } = t.descriptor, i =
|
|
2747
|
+
), r = () => {
|
|
2748
|
+
const { descriptorId: o } = t.descriptor, i = s.value.trim();
|
|
2739
2749
|
i ? n.setDescriptor({
|
|
2740
2750
|
descriptorId: o,
|
|
2741
2751
|
value: i
|
|
@@ -2745,23 +2755,23 @@ const xs = {
|
|
|
2745
2755
|
class: "distinguish-descriptor-sample",
|
|
2746
2756
|
descriptor: o.descriptor
|
|
2747
2757
|
}, {
|
|
2748
|
-
title:
|
|
2749
|
-
|
|
2758
|
+
title: w(() => [
|
|
2759
|
+
j(E(o.descriptor.name) + " (" + E(o.descriptor.min) + "-" + E(o.descriptor.max) + " " + E(o.descriptor.defaultUnit) + ") ", 1)
|
|
2750
2760
|
]),
|
|
2751
|
-
default:
|
|
2752
|
-
|
|
2753
|
-
"onUpdate:modelValue": i[0] || (i[0] = (a) =>
|
|
2761
|
+
default: w(() => [
|
|
2762
|
+
q(f("input", {
|
|
2763
|
+
"onUpdate:modelValue": i[0] || (i[0] = (a) => s.value = a),
|
|
2754
2764
|
type: "text",
|
|
2755
|
-
onBlur:
|
|
2756
|
-
onKeyup:
|
|
2765
|
+
onBlur: r,
|
|
2766
|
+
onKeyup: ht(r, ["enter"])
|
|
2757
2767
|
}, null, 544), [
|
|
2758
|
-
[
|
|
2768
|
+
[gt, s.value]
|
|
2759
2769
|
])
|
|
2760
2770
|
]),
|
|
2761
2771
|
_: 1
|
|
2762
2772
|
}, 8, ["descriptor"]));
|
|
2763
2773
|
}
|
|
2764
|
-
}), Ce = /* @__PURE__ */
|
|
2774
|
+
}), Ce = /* @__PURE__ */ S({
|
|
2765
2775
|
__name: "DescriptorsList",
|
|
2766
2776
|
props: {
|
|
2767
2777
|
title: {},
|
|
@@ -2769,51 +2779,51 @@ const xs = {
|
|
|
2769
2779
|
},
|
|
2770
2780
|
setup(e) {
|
|
2771
2781
|
const t = {
|
|
2772
|
-
DescriptorContinuous:
|
|
2773
|
-
DescriptorPresenceAbsence:
|
|
2774
|
-
DescriptorQualitative:
|
|
2775
|
-
DescriptorSample:
|
|
2776
|
-
}, n = (
|
|
2777
|
-
const
|
|
2778
|
-
return t[
|
|
2782
|
+
DescriptorContinuous: qr,
|
|
2783
|
+
DescriptorPresenceAbsence: zr,
|
|
2784
|
+
DescriptorQualitative: Qr,
|
|
2785
|
+
DescriptorSample: Xr
|
|
2786
|
+
}, n = (s) => {
|
|
2787
|
+
const r = s.replace("::", "");
|
|
2788
|
+
return t[r];
|
|
2779
2789
|
};
|
|
2780
|
-
return (
|
|
2781
|
-
f("h2", null, E(
|
|
2790
|
+
return (s, r) => (p(), y(U, null, [
|
|
2791
|
+
f("h2", null, E(s.title), 1),
|
|
2782
2792
|
f("ol", null, [
|
|
2783
|
-
(p(!0), y(U, null,
|
|
2793
|
+
(p(!0), y(U, null, B(s.descriptors, (o) => (p(), y("li", {
|
|
2784
2794
|
key: o.descriptorId
|
|
2785
2795
|
}, [
|
|
2786
|
-
(p(), R(
|
|
2796
|
+
(p(), R(Wt(n(o.type)), { descriptor: o }, null, 8, ["descriptor"]))
|
|
2787
2797
|
]))), 128))
|
|
2788
2798
|
])
|
|
2789
2799
|
], 64));
|
|
2790
2800
|
}
|
|
2791
|
-
}),
|
|
2801
|
+
}), Yr = /* @__PURE__ */ S({
|
|
2792
2802
|
__name: "PanelDescriptors",
|
|
2793
2803
|
setup(e) {
|
|
2794
2804
|
const t = z();
|
|
2795
|
-
return (n,
|
|
2796
|
-
default:
|
|
2805
|
+
return (n, s) => (p(), R(ze, { class: "distinguish-panel-descriptors" }, {
|
|
2806
|
+
default: w(() => [
|
|
2797
2807
|
k(t).getDescriptorsUsed.length ? (p(), R(Ce, {
|
|
2798
2808
|
key: 0,
|
|
2799
2809
|
descriptors: k(t).getDescriptorsUsed,
|
|
2800
2810
|
title: "Used Descriptors"
|
|
2801
|
-
}, null, 8, ["descriptors"])) :
|
|
2811
|
+
}, null, 8, ["descriptors"])) : M("", !0),
|
|
2802
2812
|
k(t).getDescriptorsUseful.length ? (p(), R(Ce, {
|
|
2803
2813
|
key: 1,
|
|
2804
2814
|
descriptors: k(t).getDescriptorsUseful,
|
|
2805
2815
|
title: "Descriptors Useful for Identification"
|
|
2806
|
-
}, null, 8, ["descriptors"])) :
|
|
2816
|
+
}, null, 8, ["descriptors"])) : M("", !0),
|
|
2807
2817
|
k(t).getDescriptorsUseless.length ? (p(), R(Ce, {
|
|
2808
2818
|
key: 2,
|
|
2809
2819
|
descriptors: k(t).getDescriptorsUseless,
|
|
2810
2820
|
title: "Descriptors no longer relevant for identification"
|
|
2811
|
-
}, null, 8, ["descriptors"])) :
|
|
2821
|
+
}, null, 8, ["descriptors"])) : M("", !0)
|
|
2812
2822
|
]),
|
|
2813
2823
|
_: 1
|
|
2814
2824
|
}));
|
|
2815
2825
|
}
|
|
2816
|
-
}),
|
|
2826
|
+
}), Zr = { class: "distinguish-spinner-container" }, eo = { class: "distinguish-spinner-legend" }, to = ["innerHTML"], no = /* @__PURE__ */ S({
|
|
2817
2827
|
__name: "VSpinner",
|
|
2818
2828
|
props: {
|
|
2819
2829
|
legend: {
|
|
@@ -2822,14 +2832,14 @@ const xs = {
|
|
|
2822
2832
|
}
|
|
2823
2833
|
},
|
|
2824
2834
|
setup(e) {
|
|
2825
|
-
return (t, n) => (p(), R(
|
|
2826
|
-
default:
|
|
2827
|
-
f("div",
|
|
2835
|
+
return (t, n) => (p(), R(mt, { name: "fade" }, {
|
|
2836
|
+
default: w(() => [
|
|
2837
|
+
f("div", Zr, [
|
|
2828
2838
|
f("div", null, [
|
|
2829
2839
|
n[0] || (n[0] = f("div", { class: "distinguish-spinner" }, null, -1)),
|
|
2830
|
-
f("div",
|
|
2831
|
-
f("span", { innerHTML: e.legend }, null, 8,
|
|
2832
|
-
|
|
2840
|
+
f("div", eo, [
|
|
2841
|
+
f("span", { innerHTML: e.legend }, null, 8, to),
|
|
2842
|
+
$(t.$slots, "default")
|
|
2833
2843
|
])
|
|
2834
2844
|
])
|
|
2835
2845
|
])
|
|
@@ -2837,36 +2847,36 @@ const xs = {
|
|
|
2837
2847
|
_: 3
|
|
2838
2848
|
}));
|
|
2839
2849
|
}
|
|
2840
|
-
}),
|
|
2850
|
+
}), so = { class: "distinguish-title" }, ro = { key: 0 }, oo = /* @__PURE__ */ S({
|
|
2841
2851
|
__name: "TitleMatrix",
|
|
2842
2852
|
setup(e) {
|
|
2843
2853
|
const t = z();
|
|
2844
|
-
return (n,
|
|
2845
|
-
|
|
2846
|
-
k(t).getObservationMatrix ? (p(), y("span",
|
|
2854
|
+
return (n, s) => (p(), y("h1", so, [
|
|
2855
|
+
s[0] || (s[0] = j(" Interactive key ")),
|
|
2856
|
+
k(t).getObservationMatrix ? (p(), y("span", ro, "| " + E(k(t).getObservationMatrix.name), 1)) : M("", !0)
|
|
2847
2857
|
]));
|
|
2848
2858
|
}
|
|
2849
|
-
}),
|
|
2859
|
+
}), io = ["title"], ao = /* @__PURE__ */ S({
|
|
2850
2860
|
__name: "TitleMatrixCitation",
|
|
2851
2861
|
setup(e) {
|
|
2852
2862
|
const t = z(), n = C(() => {
|
|
2853
|
-
const
|
|
2854
|
-
return Object.values(
|
|
2863
|
+
const s = t.getCitation;
|
|
2864
|
+
return Object.values(s || {}).filter(Boolean).join(", ");
|
|
2855
2865
|
});
|
|
2856
|
-
return (
|
|
2866
|
+
return (s, r) => (p(), y("span", {
|
|
2857
2867
|
class: "distinguish-title-citation",
|
|
2858
2868
|
title: n.value
|
|
2859
|
-
}, E(n.value), 9,
|
|
2869
|
+
}, E(n.value), 9, io));
|
|
2860
2870
|
}
|
|
2861
|
-
}),
|
|
2871
|
+
}), lo = { class: "distinguish-title-section" }, co = /* @__PURE__ */ S({
|
|
2862
2872
|
__name: "TitleKey",
|
|
2863
2873
|
setup(e) {
|
|
2864
|
-
return (t, n) => (p(), y("div",
|
|
2865
|
-
v(
|
|
2866
|
-
v(
|
|
2874
|
+
return (t, n) => (p(), y("div", lo, [
|
|
2875
|
+
v(oo),
|
|
2876
|
+
v(ao)
|
|
2867
2877
|
]));
|
|
2868
2878
|
}
|
|
2869
|
-
}),
|
|
2879
|
+
}), uo = { class: "distinguish-app-container" }, po = /* @__PURE__ */ S({
|
|
2870
2880
|
name: "Distinguish",
|
|
2871
2881
|
__name: "App",
|
|
2872
2882
|
props: {
|
|
@@ -2875,45 +2885,55 @@ const xs = {
|
|
|
2875
2885
|
renderItem: { type: Function }
|
|
2876
2886
|
},
|
|
2877
2887
|
setup(e) {
|
|
2878
|
-
const t = e, n = te(),
|
|
2888
|
+
const t = e, n = te(), s = L(), r = C(() => n.getIsLoading), o = C(() => n.getLayout);
|
|
2879
2889
|
return (() => {
|
|
2880
2890
|
n.setAPIConfig(t.apiConfig), n.setObservationMatrixId(t.observationMatrixId), n.checkUpdate();
|
|
2881
|
-
})(),
|
|
2891
|
+
})(), s.$subscribe((a) => {
|
|
2882
2892
|
n.shouldUpdate && n.checkUpdate();
|
|
2883
|
-
}), (a, d) => (p(), y("div",
|
|
2884
|
-
v(
|
|
2885
|
-
v(
|
|
2886
|
-
v(
|
|
2893
|
+
}), (a, d) => (p(), y("div", uo, [
|
|
2894
|
+
v(co),
|
|
2895
|
+
v(yr),
|
|
2896
|
+
v(qt, {
|
|
2887
2897
|
class: be(o.value)
|
|
2888
2898
|
}, {
|
|
2889
|
-
default:
|
|
2890
|
-
v(
|
|
2891
|
-
v(
|
|
2899
|
+
default: w(() => [
|
|
2900
|
+
v(Yr),
|
|
2901
|
+
v(xr, {
|
|
2892
2902
|
render: t.renderItem
|
|
2893
|
-
},
|
|
2894
|
-
|
|
2903
|
+
}, {
|
|
2904
|
+
default: w((c) => [
|
|
2905
|
+
$(a.$slots, "remaining-item", We(Ge(c)))
|
|
2906
|
+
]),
|
|
2907
|
+
_: 3
|
|
2908
|
+
}, 8, ["render"]),
|
|
2909
|
+
v(vr, {
|
|
2895
2910
|
render: t.renderItem
|
|
2896
|
-
},
|
|
2911
|
+
}, {
|
|
2912
|
+
default: w((c) => [
|
|
2913
|
+
$(a.$slots, "eliminated-item", We(Ge(c)))
|
|
2914
|
+
]),
|
|
2915
|
+
_: 3
|
|
2916
|
+
}, 8, ["render"])
|
|
2897
2917
|
]),
|
|
2898
|
-
_:
|
|
2918
|
+
_: 3
|
|
2899
2919
|
}, 8, ["class"]),
|
|
2900
|
-
|
|
2920
|
+
r.value ? (p(), R(no, {
|
|
2901
2921
|
key: 0,
|
|
2902
2922
|
legend: "Loading interactive key..."
|
|
2903
|
-
})) :
|
|
2923
|
+
})) : M("", !0)
|
|
2904
2924
|
]));
|
|
2905
2925
|
}
|
|
2906
2926
|
});
|
|
2907
|
-
function
|
|
2927
|
+
function fo(e) {
|
|
2908
2928
|
const t = e || '[data-interactive-key="true"]';
|
|
2909
2929
|
return [...document.querySelectorAll(t)].map(
|
|
2910
|
-
(
|
|
2930
|
+
(r) => go(r, ho(r))
|
|
2911
2931
|
);
|
|
2912
2932
|
}
|
|
2913
|
-
function
|
|
2914
|
-
|
|
2933
|
+
function mo() {
|
|
2934
|
+
fo();
|
|
2915
2935
|
}
|
|
2916
|
-
function
|
|
2936
|
+
function ho(e) {
|
|
2917
2937
|
return {
|
|
2918
2938
|
observationMatrixId: Number(
|
|
2919
2939
|
e.getAttribute("data-observation-matrix-id")
|
|
@@ -2927,21 +2947,21 @@ function fo(e) {
|
|
|
2927
2947
|
}
|
|
2928
2948
|
};
|
|
2929
2949
|
}
|
|
2930
|
-
function
|
|
2931
|
-
const { apiConfig: n, observationMatrixId:
|
|
2932
|
-
if (!
|
|
2950
|
+
function go(e, t) {
|
|
2951
|
+
const { apiConfig: n, observationMatrixId: s } = t;
|
|
2952
|
+
if (!s)
|
|
2933
2953
|
throw "Missing observation matrix ID";
|
|
2934
2954
|
if (!n || !n.projectToken && !n.csrfToken && !(n.projectId && n.userToken))
|
|
2935
2955
|
throw "Missing API configuration";
|
|
2936
|
-
const
|
|
2937
|
-
observationMatrixId:
|
|
2956
|
+
const r = Gt(po, {
|
|
2957
|
+
observationMatrixId: s,
|
|
2938
2958
|
apiConfig: n
|
|
2939
2959
|
});
|
|
2940
|
-
return
|
|
2960
|
+
return r.use(Qt()), r.mount(e), r;
|
|
2941
2961
|
}
|
|
2942
|
-
window.addEventListener("DOMContentLoaded",
|
|
2962
|
+
window == null || window.addEventListener("DOMContentLoaded", mo);
|
|
2943
2963
|
export {
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2964
|
+
po as VueInteractiveKey,
|
|
2965
|
+
go as createInteractiveKey,
|
|
2966
|
+
fo as discoverInteractiveKey
|
|
2947
2967
|
};
|