@sfgrp/distinguish 0.4.4 → 0.4.5
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 +200 -192
- package/dist/distinguish.umd.js +5 -5
- package/package.json +1 -1
package/dist/distinguish.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as S, computed as I, createElementBlock as y, openBlock as p, withDirectives as q, createTextVNode as
|
|
2
|
-
import { defineStore as
|
|
1
|
+
import { defineComponent as S, computed as I, createElementBlock as y, openBlock as p, withDirectives as q, createTextVNode as D, createElementVNode as f, vModelCheckbox as se, Fragment as L, renderList as M, toDisplayString as R, vModelSelect as ue, unref as k, normalizeClass as ve, renderSlot as U, onMounted as ct, onUnmounted as ut, createBlock as T, Transition as dt, withCtx as w, withModifiers as Vt, normalizeStyle as qt, ref as X, createVNode as v, createCommentVNode as j, watch as Ht, normalizeProps as he, guardReactiveProps as ge, withKeys as pt, vModelText as ft, resolveDynamicComponent as zt, createApp as Kt } from "vue";
|
|
2
|
+
import { defineStore as Me, createPinia as Jt } from "pinia";
|
|
3
3
|
function mt(e, t) {
|
|
4
4
|
return function() {
|
|
5
5
|
return e.apply(t, arguments);
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
const { toString: Wt } = Object.prototype, { getPrototypeOf:
|
|
8
|
+
const { toString: Wt } = Object.prototype, { getPrototypeOf: Ve } = Object, Re = /* @__PURE__ */ ((e) => (t) => {
|
|
9
9
|
const n = Wt.call(t);
|
|
10
10
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
11
|
-
})(/* @__PURE__ */ Object.create(null)), H = (e) => (e = e.toLowerCase(), (t) =>
|
|
11
|
+
})(/* @__PURE__ */ Object.create(null)), H = (e) => (e = e.toLowerCase(), (t) => Re(t) === e), Ee = (e) => (t) => typeof t === e, { isArray: re } = Array, ce = Ee("undefined");
|
|
12
12
|
function Xt(e) {
|
|
13
13
|
return e !== null && !ce(e) && e.constructor !== null && !ce(e.constructor) && V(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
14
14
|
}
|
|
@@ -17,14 +17,14 @@ function Qt(e) {
|
|
|
17
17
|
let t;
|
|
18
18
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ht(e.buffer), t;
|
|
19
19
|
}
|
|
20
|
-
const Gt =
|
|
21
|
-
if (
|
|
20
|
+
const Gt = Ee("string"), V = Ee("function"), gt = Ee("number"), Te = (e) => e !== null && typeof e == "object", Yt = (e) => e === !0 || e === !1, ye = (e) => {
|
|
21
|
+
if (Re(e) !== "object")
|
|
22
22
|
return !1;
|
|
23
|
-
const t =
|
|
23
|
+
const t = Ve(e);
|
|
24
24
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
25
|
-
}, Zt = H("Date"), en = H("File"), tn = H("Blob"), nn = H("FileList"), sn = (e) =>
|
|
25
|
+
}, Zt = H("Date"), en = H("File"), tn = H("Blob"), nn = H("FileList"), sn = (e) => Te(e) && V(e.pipe), rn = (e) => {
|
|
26
26
|
let t;
|
|
27
|
-
return e && (typeof FormData == "function" && e instanceof FormData || V(e.append) && ((t =
|
|
27
|
+
return e && (typeof FormData == "function" && e instanceof FormData || V(e.append) && ((t = Re(e)) === "formdata" || // detect form-data instance
|
|
28
28
|
t === "object" && V(e.toString) && e.toString() === "[object FormData]"));
|
|
29
29
|
}, on = H("URLSearchParams"), [an, ln, cn, un] = ["ReadableStream", "Request", "Response", "Headers"].map(H), dn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
30
30
|
function de(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
@@ -51,10 +51,10 @@ function yt(e, t) {
|
|
|
51
51
|
return null;
|
|
52
52
|
}
|
|
53
53
|
const Z = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, bt = (e) => !ce(e) && e !== Z;
|
|
54
|
-
function
|
|
54
|
+
function Le() {
|
|
55
55
|
const { caseless: e } = bt(this) && this || {}, t = {}, n = (s, r) => {
|
|
56
56
|
const o = e && yt(t, r) || r;
|
|
57
|
-
|
|
57
|
+
ye(t[o]) && ye(s) ? t[o] = Le(t[o], s) : ye(s) ? t[o] = Le({}, s) : re(s) ? t[o] = s.slice() : t[o] = s;
|
|
58
58
|
};
|
|
59
59
|
for (let s = 0, r = arguments.length; s < r; s++)
|
|
60
60
|
arguments[s] && de(arguments[s], n);
|
|
@@ -73,7 +73,7 @@ const pn = (e, t, n, { allOwnKeys: s } = {}) => (de(t, (r, o) => {
|
|
|
73
73
|
do {
|
|
74
74
|
for (r = Object.getOwnPropertyNames(e), o = r.length; o-- > 0; )
|
|
75
75
|
i = r[o], (!s || s(i, e, t)) && !a[i] && (t[i] = e[i], a[i] = !0);
|
|
76
|
-
e = n !== !1 &&
|
|
76
|
+
e = n !== !1 && Ve(e);
|
|
77
77
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
78
78
|
return t;
|
|
79
79
|
}, gn = (e, t, n) => {
|
|
@@ -89,7 +89,7 @@ const pn = (e, t, n, { allOwnKeys: s } = {}) => (de(t, (r, o) => {
|
|
|
89
89
|
for (; t-- > 0; )
|
|
90
90
|
n[t] = e[t];
|
|
91
91
|
return n;
|
|
92
|
-
}, bn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" &&
|
|
92
|
+
}, bn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ve(Uint8Array)), _n = (e, t) => {
|
|
93
93
|
const s = (e && e[Symbol.iterator]).call(e);
|
|
94
94
|
let r;
|
|
95
95
|
for (; (r = s.next()) && !r.done; ) {
|
|
@@ -142,7 +142,7 @@ function xn(e) {
|
|
|
142
142
|
}
|
|
143
143
|
const In = (e) => {
|
|
144
144
|
const t = new Array(10), n = (s, r) => {
|
|
145
|
-
if (
|
|
145
|
+
if (Te(s)) {
|
|
146
146
|
if (t.indexOf(s) >= 0)
|
|
147
147
|
return;
|
|
148
148
|
if (!("toJSON" in s)) {
|
|
@@ -157,7 +157,7 @@ const In = (e) => {
|
|
|
157
157
|
return s;
|
|
158
158
|
};
|
|
159
159
|
return n(e, 0);
|
|
160
|
-
}, An = H("AsyncFunction"), Cn = (e) => e && (
|
|
160
|
+
}, An = H("AsyncFunction"), Cn = (e) => e && (Te(e) || V(e)) && V(e.then) && V(e.catch), wt = ((e, t) => e ? setImmediate : t ? ((n, s) => (Z.addEventListener("message", ({ source: r, data: o }) => {
|
|
161
161
|
r === Z && o === n && s.length && s.shift()();
|
|
162
162
|
}, !1), (r) => {
|
|
163
163
|
s.push(r), Z.postMessage(n, "*");
|
|
@@ -173,8 +173,8 @@ const In = (e) => {
|
|
|
173
173
|
isString: Gt,
|
|
174
174
|
isNumber: gt,
|
|
175
175
|
isBoolean: Yt,
|
|
176
|
-
isObject:
|
|
177
|
-
isPlainObject:
|
|
176
|
+
isObject: Te,
|
|
177
|
+
isPlainObject: ye,
|
|
178
178
|
isReadableStream: an,
|
|
179
179
|
isRequest: ln,
|
|
180
180
|
isResponse: cn,
|
|
@@ -190,13 +190,13 @@ const In = (e) => {
|
|
|
190
190
|
isTypedArray: bn,
|
|
191
191
|
isFileList: nn,
|
|
192
192
|
forEach: de,
|
|
193
|
-
merge:
|
|
193
|
+
merge: Le,
|
|
194
194
|
extend: pn,
|
|
195
195
|
trim: dn,
|
|
196
196
|
stripBOM: fn,
|
|
197
197
|
inherits: mn,
|
|
198
198
|
toFlatObject: hn,
|
|
199
|
-
kindOf:
|
|
199
|
+
kindOf: Re,
|
|
200
200
|
kindOfTest: H,
|
|
201
201
|
endsWith: gn,
|
|
202
202
|
toArray: yn,
|
|
@@ -273,7 +273,7 @@ b.from = (e, t, n, s, r, o) => {
|
|
|
273
273
|
}, (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;
|
|
274
274
|
};
|
|
275
275
|
const Un = null;
|
|
276
|
-
function
|
|
276
|
+
function Pe(e) {
|
|
277
277
|
return l.isPlainObject(e) || l.isArray(e);
|
|
278
278
|
}
|
|
279
279
|
function Rt(e) {
|
|
@@ -285,12 +285,12 @@ function Xe(e, t, n) {
|
|
|
285
285
|
}).join(n ? "." : "") : t;
|
|
286
286
|
}
|
|
287
287
|
function Dn(e) {
|
|
288
|
-
return l.isArray(e) && !e.some(
|
|
288
|
+
return l.isArray(e) && !e.some(Pe);
|
|
289
289
|
}
|
|
290
290
|
const Ln = l.toFlatObject(l, {}, null, function(t) {
|
|
291
291
|
return /^is[A-Z]/.test(t);
|
|
292
292
|
});
|
|
293
|
-
function
|
|
293
|
+
function ke(e, t, n) {
|
|
294
294
|
if (!l.isObject(e))
|
|
295
295
|
throw new TypeError("target must be an object");
|
|
296
296
|
t = t || new FormData(), n = l.toFlatObject(n, {
|
|
@@ -325,12 +325,12 @@ function Ee(e, t, n) {
|
|
|
325
325
|
);
|
|
326
326
|
}), !1;
|
|
327
327
|
}
|
|
328
|
-
return
|
|
328
|
+
return Pe(h) ? !0 : (t.append(Xe(g, _, o), c(h)), !1);
|
|
329
329
|
}
|
|
330
330
|
const m = [], E = Object.assign(Ln, {
|
|
331
331
|
defaultVisitor: u,
|
|
332
332
|
convertValue: c,
|
|
333
|
-
isVisitable:
|
|
333
|
+
isVisitable: Pe
|
|
334
334
|
});
|
|
335
335
|
function A(h, _) {
|
|
336
336
|
if (!l.isUndefined(h)) {
|
|
@@ -365,10 +365,10 @@ function Qe(e) {
|
|
|
365
365
|
return t[s];
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
this._pairs = [], e &&
|
|
368
|
+
function qe(e, t) {
|
|
369
|
+
this._pairs = [], e && ke(e, this, t);
|
|
370
370
|
}
|
|
371
|
-
const Et =
|
|
371
|
+
const Et = qe.prototype;
|
|
372
372
|
Et.append = function(t, n) {
|
|
373
373
|
this._pairs.push([t, n]);
|
|
374
374
|
};
|
|
@@ -392,7 +392,7 @@ function Tt(e, t, n) {
|
|
|
392
392
|
});
|
|
393
393
|
const r = n && n.serialize;
|
|
394
394
|
let o;
|
|
395
|
-
if (r ? o = r(t, n) : o = l.isURLSearchParams(t) ? t.toString() : new
|
|
395
|
+
if (r ? o = r(t, n) : o = l.isURLSearchParams(t) ? t.toString() : new qe(t, n).toString(s), o) {
|
|
396
396
|
const i = e.indexOf("#");
|
|
397
397
|
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
398
398
|
}
|
|
@@ -456,7 +456,7 @@ const kt = {
|
|
|
456
456
|
silentJSONParsing: !0,
|
|
457
457
|
forcedJSONParsing: !0,
|
|
458
458
|
clarifyTimeoutError: !1
|
|
459
|
-
}, Nn = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
459
|
+
}, Nn = typeof URLSearchParams < "u" ? URLSearchParams : qe, Fn = typeof FormData < "u" ? FormData : null, jn = typeof Blob < "u" ? Blob : null, Bn = {
|
|
460
460
|
isBrowser: !0,
|
|
461
461
|
classes: {
|
|
462
462
|
URLSearchParams: Nn,
|
|
@@ -464,22 +464,22 @@ const kt = {
|
|
|
464
464
|
Blob: jn
|
|
465
465
|
},
|
|
466
466
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
467
|
-
},
|
|
468
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", qn =
|
|
467
|
+
}, He = typeof window < "u" && typeof document < "u", Ne = typeof navigator == "object" && navigator || void 0, Mn = He && (!Ne || ["ReactNative", "NativeScript", "NS"].indexOf(Ne.product) < 0), Vn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
468
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", qn = He && window.location.href || "http://localhost", Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
469
469
|
__proto__: null,
|
|
470
|
-
hasBrowserEnv:
|
|
470
|
+
hasBrowserEnv: He,
|
|
471
471
|
hasStandardBrowserEnv: Mn,
|
|
472
472
|
hasStandardBrowserWebWorkerEnv: Vn,
|
|
473
|
-
navigator:
|
|
473
|
+
navigator: Ne,
|
|
474
474
|
origin: qn
|
|
475
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
475
|
+
}, Symbol.toStringTag, { value: "Module" })), N = {
|
|
476
476
|
...Hn,
|
|
477
477
|
...Bn
|
|
478
478
|
};
|
|
479
479
|
function zn(e, t) {
|
|
480
|
-
return
|
|
480
|
+
return ke(e, new N.classes.URLSearchParams(), Object.assign({
|
|
481
481
|
visitor: function(n, s, r, o) {
|
|
482
|
-
return
|
|
482
|
+
return N.isNode && l.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
483
483
|
}
|
|
484
484
|
}, t));
|
|
485
485
|
}
|
|
@@ -539,7 +539,7 @@ const pe = {
|
|
|
539
539
|
return zn(t, this.formSerializer).toString();
|
|
540
540
|
if ((a = l.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
|
|
541
541
|
const d = this.env && this.env.FormData;
|
|
542
|
-
return
|
|
542
|
+
return ke(
|
|
543
543
|
a ? { "files[]": t } : t,
|
|
544
544
|
d && new d(),
|
|
545
545
|
this.formSerializer
|
|
@@ -573,8 +573,8 @@ const pe = {
|
|
|
573
573
|
maxContentLength: -1,
|
|
574
574
|
maxBodyLength: -1,
|
|
575
575
|
env: {
|
|
576
|
-
FormData:
|
|
577
|
-
Blob:
|
|
576
|
+
FormData: N.classes.FormData,
|
|
577
|
+
Blob: N.classes.Blob
|
|
578
578
|
},
|
|
579
579
|
validateStatus: function(t) {
|
|
580
580
|
return t >= 200 && t < 300;
|
|
@@ -618,8 +618,8 @@ const Xn = l.toObjectSet([
|
|
|
618
618
|
function ie(e) {
|
|
619
619
|
return e && String(e).trim().toLowerCase();
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
return e === !1 || e == null ? e : l.isArray(e) ? e.map(
|
|
621
|
+
function be(e) {
|
|
622
|
+
return e === !1 || e == null ? e : l.isArray(e) ? e.map(be) : String(e);
|
|
623
623
|
}
|
|
624
624
|
function Gn(e) {
|
|
625
625
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -629,7 +629,7 @@ function Gn(e) {
|
|
|
629
629
|
return t;
|
|
630
630
|
}
|
|
631
631
|
const Yn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
632
|
-
function
|
|
632
|
+
function Ce(e, t, n, s, r) {
|
|
633
633
|
if (l.isFunction(s))
|
|
634
634
|
return s.call(this, t, n);
|
|
635
635
|
if (r && (t = n), !!l.isString(t)) {
|
|
@@ -664,7 +664,7 @@ let B = class {
|
|
|
664
664
|
if (!u)
|
|
665
665
|
throw new Error("header name must be a non-empty string");
|
|
666
666
|
const m = l.findKey(r, u);
|
|
667
|
-
(!m || r[m] === void 0 || c === !0 || c === void 0 && r[m] !== !1) && (r[m || d] =
|
|
667
|
+
(!m || r[m] === void 0 || c === !0 || c === void 0 && r[m] !== !1) && (r[m || d] = be(a));
|
|
668
668
|
}
|
|
669
669
|
const i = (a, d) => l.forEach(a, (c, u) => o(c, u, d));
|
|
670
670
|
if (l.isPlainObject(t) || t instanceof this.constructor)
|
|
@@ -698,7 +698,7 @@ let B = class {
|
|
|
698
698
|
has(t, n) {
|
|
699
699
|
if (t = ie(t), t) {
|
|
700
700
|
const s = l.findKey(this, t);
|
|
701
|
-
return !!(s && this[s] !== void 0 && (!n ||
|
|
701
|
+
return !!(s && this[s] !== void 0 && (!n || Ce(this, this[s], s, n)));
|
|
702
702
|
}
|
|
703
703
|
return !1;
|
|
704
704
|
}
|
|
@@ -708,7 +708,7 @@ let B = class {
|
|
|
708
708
|
function o(i) {
|
|
709
709
|
if (i = ie(i), i) {
|
|
710
710
|
const a = l.findKey(s, i);
|
|
711
|
-
a && (!n ||
|
|
711
|
+
a && (!n || Ce(s, s[a], a, n)) && (delete s[a], r = !0);
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
714
|
return l.isArray(t) ? t.forEach(o) : o(t), r;
|
|
@@ -718,7 +718,7 @@ let B = class {
|
|
|
718
718
|
let s = n.length, r = !1;
|
|
719
719
|
for (; s--; ) {
|
|
720
720
|
const o = n[s];
|
|
721
|
-
(!t ||
|
|
721
|
+
(!t || Ce(this, this[o], o, t, !0)) && (delete this[o], r = !0);
|
|
722
722
|
}
|
|
723
723
|
return r;
|
|
724
724
|
}
|
|
@@ -727,11 +727,11 @@ let B = class {
|
|
|
727
727
|
return l.forEach(this, (r, o) => {
|
|
728
728
|
const i = l.findKey(s, o);
|
|
729
729
|
if (i) {
|
|
730
|
-
n[i] =
|
|
730
|
+
n[i] = be(r), delete n[o];
|
|
731
731
|
return;
|
|
732
732
|
}
|
|
733
733
|
const a = t ? Zn(o) : String(o).trim();
|
|
734
|
-
a !== o && delete n[o], n[a] =
|
|
734
|
+
a !== o && delete n[o], n[a] = be(r), s[a] = !0;
|
|
735
735
|
}), this;
|
|
736
736
|
}
|
|
737
737
|
concat(...t) {
|
|
@@ -782,7 +782,7 @@ l.reduceDescriptors(B.prototype, ({ value: e }, t) => {
|
|
|
782
782
|
};
|
|
783
783
|
});
|
|
784
784
|
l.freezeMethods(B);
|
|
785
|
-
function
|
|
785
|
+
function $e(e, t) {
|
|
786
786
|
const n = this || pe, s = t || n, r = B.from(s.headers);
|
|
787
787
|
let o = s.data;
|
|
788
788
|
return l.forEach(e, function(a) {
|
|
@@ -840,7 +840,7 @@ function ss(e, t) {
|
|
|
840
840
|
}, s - m)));
|
|
841
841
|
}, () => r && i(r)];
|
|
842
842
|
}
|
|
843
|
-
const
|
|
843
|
+
const we = (e, t, n = 3) => {
|
|
844
844
|
let s = 0;
|
|
845
845
|
const r = ns(50, 250);
|
|
846
846
|
return ss((o) => {
|
|
@@ -866,10 +866,10 @@ const be = (e, t, n = 3) => {
|
|
|
866
866
|
total: e,
|
|
867
867
|
loaded: s
|
|
868
868
|
}), t[1]];
|
|
869
|
-
}, et = (e) => (...t) => l.asap(() => e(...t)), rs =
|
|
870
|
-
new URL(
|
|
871
|
-
|
|
872
|
-
) : () => !0, os =
|
|
869
|
+
}, et = (e) => (...t) => l.asap(() => e(...t)), rs = N.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, N.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
870
|
+
new URL(N.origin),
|
|
871
|
+
N.navigator && /(msie|trident)/i.test(N.navigator.userAgent)
|
|
872
|
+
) : () => !0, os = N.hasStandardBrowserEnv ? (
|
|
873
873
|
// Standard browser envs support document.cookie
|
|
874
874
|
{
|
|
875
875
|
write(e, t, n, s, r, o) {
|
|
@@ -980,14 +980,14 @@ const Ct = (e) => {
|
|
|
980
980
|
);
|
|
981
981
|
let d;
|
|
982
982
|
if (l.isFormData(n)) {
|
|
983
|
-
if (
|
|
983
|
+
if (N.hasStandardBrowserEnv || N.hasStandardBrowserWebWorkerEnv)
|
|
984
984
|
i.setContentType(void 0);
|
|
985
985
|
else if ((d = i.getContentType()) !== !1) {
|
|
986
986
|
const [c, ...u] = d ? d.split(";").map((m) => m.trim()).filter(Boolean) : [];
|
|
987
987
|
i.setContentType([c || "multipart/form-data", ...u].join("; "));
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
|
-
if (
|
|
990
|
+
if (N.hasStandardBrowserEnv && (s && l.isFunction(s) && (s = s(t)), s || s !== !1 && rs(t.url))) {
|
|
991
991
|
const c = r && o && os.read(o);
|
|
992
992
|
c && i.set(r, c);
|
|
993
993
|
}
|
|
@@ -1039,11 +1039,11 @@ const Ct = (e) => {
|
|
|
1039
1039
|
)), g = null;
|
|
1040
1040
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in g && l.forEach(i.toJSON(), function(K, F) {
|
|
1041
1041
|
g.setRequestHeader(F, K);
|
|
1042
|
-
}), l.isUndefined(r.withCredentials) || (g.withCredentials = !!r.withCredentials), a && a !== "json" && (g.responseType = r.responseType), c && ([E, h] =
|
|
1042
|
+
}), l.isUndefined(r.withCredentials) || (g.withCredentials = !!r.withCredentials), a && a !== "json" && (g.responseType = r.responseType), c && ([E, h] = we(c, !0), g.addEventListener("progress", E)), d && g.upload && ([m, A] = we(d), g.upload.addEventListener("progress", m), g.upload.addEventListener("loadend", A)), (r.cancelToken || r.signal) && (u = ($) => {
|
|
1043
1043
|
g && (s(!$ || $.type ? new oe(null, e, g) : $), g.abort(), g = null);
|
|
1044
1044
|
}, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
|
|
1045
1045
|
const C = ts(r.url);
|
|
1046
|
-
if (C &&
|
|
1046
|
+
if (C && N.protocols.indexOf(C) === -1) {
|
|
1047
1047
|
s(new b("Unsupported protocol " + C + ":", b.ERR_BAD_REQUEST, e));
|
|
1048
1048
|
return;
|
|
1049
1049
|
}
|
|
@@ -1129,7 +1129,7 @@ const Ct = (e) => {
|
|
|
1129
1129
|
}, {
|
|
1130
1130
|
highWaterMark: 2
|
|
1131
1131
|
});
|
|
1132
|
-
},
|
|
1132
|
+
}, Oe = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", $t = Oe && typeof ReadableStream == "function", ms = Oe && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ut = (e, ...t) => {
|
|
1133
1133
|
try {
|
|
1134
1134
|
return !!e(...t);
|
|
1135
1135
|
} catch {
|
|
@@ -1137,7 +1137,7 @@ const Ct = (e) => {
|
|
|
1137
1137
|
}
|
|
1138
1138
|
}, hs = $t && Ut(() => {
|
|
1139
1139
|
let e = !1;
|
|
1140
|
-
const t = new Request(
|
|
1140
|
+
const t = new Request(N.origin, {
|
|
1141
1141
|
body: new ReadableStream(),
|
|
1142
1142
|
method: "POST",
|
|
1143
1143
|
get duplex() {
|
|
@@ -1145,12 +1145,12 @@ const Ct = (e) => {
|
|
|
1145
1145
|
}
|
|
1146
1146
|
}).headers.has("Content-Type");
|
|
1147
1147
|
return e && !t;
|
|
1148
|
-
}), st = 64 * 1024,
|
|
1149
|
-
stream:
|
|
1148
|
+
}), st = 64 * 1024, Fe = $t && Ut(() => l.isReadableStream(new Response("").body)), Se = {
|
|
1149
|
+
stream: Fe && ((e) => e.body)
|
|
1150
1150
|
};
|
|
1151
|
-
|
|
1151
|
+
Oe && ((e) => {
|
|
1152
1152
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1153
|
-
!
|
|
1153
|
+
!Se[t] && (Se[t] = l.isFunction(e[t]) ? (n) => n[t]() : (n, s) => {
|
|
1154
1154
|
throw new b(`Response type '${t}' is not supported`, b.ERR_NOT_SUPPORT, s);
|
|
1155
1155
|
});
|
|
1156
1156
|
});
|
|
@@ -1161,7 +1161,7 @@ const gs = async (e) => {
|
|
|
1161
1161
|
if (l.isBlob(e))
|
|
1162
1162
|
return e.size;
|
|
1163
1163
|
if (l.isSpecCompliantForm(e))
|
|
1164
|
-
return (await new Request(
|
|
1164
|
+
return (await new Request(N.origin, {
|
|
1165
1165
|
method: "POST",
|
|
1166
1166
|
body: e
|
|
1167
1167
|
}).arrayBuffer()).byteLength;
|
|
@@ -1172,7 +1172,7 @@ const gs = async (e) => {
|
|
|
1172
1172
|
}, ys = async (e, t) => {
|
|
1173
1173
|
const n = l.toFiniteNumber(e.getContentLength());
|
|
1174
1174
|
return n ?? gs(t);
|
|
1175
|
-
}, bs =
|
|
1175
|
+
}, bs = Oe && (async (e) => {
|
|
1176
1176
|
let {
|
|
1177
1177
|
url: t,
|
|
1178
1178
|
method: n,
|
|
@@ -1203,7 +1203,7 @@ const gs = async (e) => {
|
|
|
1203
1203
|
if (l.isFormData(s) && (W = F.headers.get("content-type")) && u.setContentType(W), F.body) {
|
|
1204
1204
|
const [G, me] = Ze(
|
|
1205
1205
|
g,
|
|
1206
|
-
|
|
1206
|
+
we(et(d))
|
|
1207
1207
|
);
|
|
1208
1208
|
s = nt(F.body, st, G, me);
|
|
1209
1209
|
}
|
|
@@ -1220,15 +1220,15 @@ const gs = async (e) => {
|
|
|
1220
1220
|
credentials: O ? m : void 0
|
|
1221
1221
|
});
|
|
1222
1222
|
let C = await fetch(h);
|
|
1223
|
-
const $ =
|
|
1224
|
-
if (
|
|
1223
|
+
const $ = Fe && (c === "stream" || c === "response");
|
|
1224
|
+
if (Fe && (a || $ && _)) {
|
|
1225
1225
|
const F = {};
|
|
1226
|
-
["status", "statusText", "headers"].forEach((
|
|
1227
|
-
F[
|
|
1226
|
+
["status", "statusText", "headers"].forEach((Je) => {
|
|
1227
|
+
F[Je] = C[Je];
|
|
1228
1228
|
});
|
|
1229
1229
|
const W = l.toFiniteNumber(C.headers.get("content-length")), [G, me] = a && Ze(
|
|
1230
1230
|
W,
|
|
1231
|
-
|
|
1231
|
+
we(et(a), !0)
|
|
1232
1232
|
) || [];
|
|
1233
1233
|
C = new Response(
|
|
1234
1234
|
nt(C.body, st, G, () => {
|
|
@@ -1238,7 +1238,7 @@ const gs = async (e) => {
|
|
|
1238
1238
|
);
|
|
1239
1239
|
}
|
|
1240
1240
|
c = c || "text";
|
|
1241
|
-
let K = await
|
|
1241
|
+
let K = await Se[l.findKey(Se, c) || "text"](C, e);
|
|
1242
1242
|
return !$ && _ && _(), await new Promise((F, W) => {
|
|
1243
1243
|
It(F, W, {
|
|
1244
1244
|
data: K,
|
|
@@ -1257,12 +1257,12 @@ const gs = async (e) => {
|
|
|
1257
1257
|
}
|
|
1258
1258
|
) : b.from(O, O && O.code, e, h);
|
|
1259
1259
|
}
|
|
1260
|
-
}),
|
|
1260
|
+
}), je = {
|
|
1261
1261
|
http: Un,
|
|
1262
1262
|
xhr: cs,
|
|
1263
1263
|
fetch: bs
|
|
1264
1264
|
};
|
|
1265
|
-
l.forEach(
|
|
1265
|
+
l.forEach(je, (e, t) => {
|
|
1266
1266
|
if (e) {
|
|
1267
1267
|
try {
|
|
1268
1268
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1280,7 +1280,7 @@ const rt = (e) => `- ${e}`, _s = (e) => l.isFunction(e) || e === null || e === !
|
|
|
1280
1280
|
for (let o = 0; o < t; o++) {
|
|
1281
1281
|
n = e[o];
|
|
1282
1282
|
let i;
|
|
1283
|
-
if (s = n, !_s(n) && (s =
|
|
1283
|
+
if (s = n, !_s(n) && (s = je[(i = String(n)).toLowerCase()], s === void 0))
|
|
1284
1284
|
throw new b(`Unknown adapter '${i}'`);
|
|
1285
1285
|
if (s)
|
|
1286
1286
|
break;
|
|
@@ -1300,38 +1300,38 @@ const rt = (e) => `- ${e}`, _s = (e) => l.isFunction(e) || e === null || e === !
|
|
|
1300
1300
|
}
|
|
1301
1301
|
return s;
|
|
1302
1302
|
},
|
|
1303
|
-
adapters:
|
|
1303
|
+
adapters: je
|
|
1304
1304
|
};
|
|
1305
|
-
function
|
|
1305
|
+
function Ue(e) {
|
|
1306
1306
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1307
1307
|
throw new oe(null, e);
|
|
1308
1308
|
}
|
|
1309
1309
|
function ot(e) {
|
|
1310
|
-
return
|
|
1310
|
+
return Ue(e), e.headers = B.from(e.headers), e.data = $e.call(
|
|
1311
1311
|
e,
|
|
1312
1312
|
e.transformRequest
|
|
1313
1313
|
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Dt.getAdapter(e.adapter || pe.adapter)(e).then(function(s) {
|
|
1314
|
-
return
|
|
1314
|
+
return Ue(e), s.data = $e.call(
|
|
1315
1315
|
e,
|
|
1316
1316
|
e.transformResponse,
|
|
1317
1317
|
s
|
|
1318
1318
|
), s.headers = B.from(s.headers), s;
|
|
1319
1319
|
}, function(s) {
|
|
1320
|
-
return xt(s) || (
|
|
1320
|
+
return xt(s) || (Ue(e), s && s.response && (s.response.data = $e.call(
|
|
1321
1321
|
e,
|
|
1322
1322
|
e.transformResponse,
|
|
1323
1323
|
s.response
|
|
1324
1324
|
), s.response.headers = B.from(s.response.headers))), Promise.reject(s);
|
|
1325
1325
|
});
|
|
1326
1326
|
}
|
|
1327
|
-
const Lt = "1.8.4",
|
|
1327
|
+
const Lt = "1.8.4", xe = {};
|
|
1328
1328
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1329
|
-
|
|
1329
|
+
xe[e] = function(s) {
|
|
1330
1330
|
return typeof s === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1331
1331
|
};
|
|
1332
1332
|
});
|
|
1333
1333
|
const it = {};
|
|
1334
|
-
|
|
1334
|
+
xe.transitional = function(t, n, s) {
|
|
1335
1335
|
function r(o, i) {
|
|
1336
1336
|
return "[Axios v" + Lt + "] Transitional option '" + o + "'" + i + (s ? ". " + s : "");
|
|
1337
1337
|
}
|
|
@@ -1349,7 +1349,7 @@ ke.transitional = function(t, n, s) {
|
|
|
1349
1349
|
)), t ? t(o, i, a) : !0;
|
|
1350
1350
|
};
|
|
1351
1351
|
};
|
|
1352
|
-
|
|
1352
|
+
xe.spelling = function(t) {
|
|
1353
1353
|
return (n, s) => (console.warn(`${s} is likely a misspelling of ${t}`), !0);
|
|
1354
1354
|
};
|
|
1355
1355
|
function ws(e, t, n) {
|
|
@@ -1369,10 +1369,10 @@ function ws(e, t, n) {
|
|
|
1369
1369
|
throw new b("Unknown option " + o, b.ERR_BAD_OPTION);
|
|
1370
1370
|
}
|
|
1371
1371
|
}
|
|
1372
|
-
const
|
|
1372
|
+
const _e = {
|
|
1373
1373
|
assertOptions: ws,
|
|
1374
|
-
validators:
|
|
1375
|
-
}, z =
|
|
1374
|
+
validators: xe
|
|
1375
|
+
}, z = _e.validators;
|
|
1376
1376
|
let ee = class {
|
|
1377
1377
|
constructor(t) {
|
|
1378
1378
|
this.defaults = t, this.interceptors = {
|
|
@@ -1408,16 +1408,16 @@ let ee = class {
|
|
|
1408
1408
|
_request(t, n) {
|
|
1409
1409
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = te(this.defaults, n);
|
|
1410
1410
|
const { transitional: s, paramsSerializer: r, headers: o } = n;
|
|
1411
|
-
s !== void 0 &&
|
|
1411
|
+
s !== void 0 && _e.assertOptions(s, {
|
|
1412
1412
|
silentJSONParsing: z.transitional(z.boolean),
|
|
1413
1413
|
forcedJSONParsing: z.transitional(z.boolean),
|
|
1414
1414
|
clarifyTimeoutError: z.transitional(z.boolean)
|
|
1415
1415
|
}, !1), r != null && (l.isFunction(r) ? n.paramsSerializer = {
|
|
1416
1416
|
serialize: r
|
|
1417
|
-
} :
|
|
1417
|
+
} : _e.assertOptions(r, {
|
|
1418
1418
|
encode: z.function,
|
|
1419
1419
|
serialize: z.function
|
|
1420
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
1420
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), _e.assertOptions(n, {
|
|
1421
1421
|
baseUrl: z.spelling("baseURL"),
|
|
1422
1422
|
withXsrfToken: z.spelling("withXSRFToken")
|
|
1423
1423
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1578,7 +1578,7 @@ function vs(e) {
|
|
|
1578
1578
|
function Rs(e) {
|
|
1579
1579
|
return l.isObject(e) && e.isAxiosError === !0;
|
|
1580
1580
|
}
|
|
1581
|
-
const
|
|
1581
|
+
const Be = {
|
|
1582
1582
|
Continue: 100,
|
|
1583
1583
|
SwitchingProtocols: 101,
|
|
1584
1584
|
Processing: 102,
|
|
@@ -1643,8 +1643,8 @@ const Fe = {
|
|
|
1643
1643
|
NotExtended: 510,
|
|
1644
1644
|
NetworkAuthenticationRequired: 511
|
|
1645
1645
|
};
|
|
1646
|
-
Object.entries(
|
|
1647
|
-
|
|
1646
|
+
Object.entries(Be).forEach(([e, t]) => {
|
|
1647
|
+
Be[t] = e;
|
|
1648
1648
|
});
|
|
1649
1649
|
function Nt(e) {
|
|
1650
1650
|
const t = new ee(e), n = mt(ee.prototype.request, t);
|
|
@@ -1658,7 +1658,7 @@ x.CanceledError = oe;
|
|
|
1658
1658
|
x.CancelToken = Ss;
|
|
1659
1659
|
x.isCancel = xt;
|
|
1660
1660
|
x.VERSION = Lt;
|
|
1661
|
-
x.toFormData =
|
|
1661
|
+
x.toFormData = ke;
|
|
1662
1662
|
x.AxiosError = b;
|
|
1663
1663
|
x.Cancel = x.CanceledError;
|
|
1664
1664
|
x.all = function(t) {
|
|
@@ -1670,7 +1670,7 @@ x.mergeConfig = te;
|
|
|
1670
1670
|
x.AxiosHeaders = B;
|
|
1671
1671
|
x.formToJSON = (e) => Ot(l.isHTMLForm(e) ? new FormData(e) : e);
|
|
1672
1672
|
x.getAdapter = Dt.getAdapter;
|
|
1673
|
-
x.HttpStatusCode =
|
|
1673
|
+
x.HttpStatusCode = Be;
|
|
1674
1674
|
x.default = x;
|
|
1675
1675
|
const {
|
|
1676
1676
|
Axios: vo,
|
|
@@ -1796,7 +1796,7 @@ const le = {
|
|
|
1796
1796
|
}), Ds = (e) => ({
|
|
1797
1797
|
languageId: e.id,
|
|
1798
1798
|
name: e.english_name
|
|
1799
|
-
}), J =
|
|
1799
|
+
}), J = Me("observationMatrix", {
|
|
1800
1800
|
state: () => ({
|
|
1801
1801
|
observationMatrix: void 0,
|
|
1802
1802
|
citation: void 0,
|
|
@@ -1843,7 +1843,7 @@ const le = {
|
|
|
1843
1843
|
return n.refreshOnlyTaxa || (this.setObservationMatrix($s(r)), this.setDescriptors(r.list_of_descriptors.map((o) => Cs(o))), this.setKeywords(r.descriptor_available_keywords.map((o) => Us(o))), this.setLanguages(r.descriptor_available_languages.map((o) => Ds(o)))), this.setEliminated(r.eliminated.map((o) => at(o))), this.setRemaining(r.remaining.map((o) => at(o))), s;
|
|
1844
1844
|
}
|
|
1845
1845
|
}
|
|
1846
|
-
}),
|
|
1846
|
+
}), P = Me("filter", {
|
|
1847
1847
|
state: () => ({
|
|
1848
1848
|
descriptors: {},
|
|
1849
1849
|
eliminateUnknown: void 0,
|
|
@@ -1915,7 +1915,7 @@ const le = {
|
|
|
1915
1915
|
this.eliminateUnknown = e;
|
|
1916
1916
|
}
|
|
1917
1917
|
}
|
|
1918
|
-
}), Q =
|
|
1918
|
+
}), Q = Me("settings", {
|
|
1919
1919
|
state: () => ({
|
|
1920
1920
|
gridLayout: "distinguish-layout-mode-1",
|
|
1921
1921
|
isLoading: !1,
|
|
@@ -1962,7 +1962,7 @@ const le = {
|
|
|
1962
1962
|
this.otuId = [e].flat();
|
|
1963
1963
|
},
|
|
1964
1964
|
checkUpdate() {
|
|
1965
|
-
const e =
|
|
1965
|
+
const e = P(), t = J(), n = this.observationMatrixId;
|
|
1966
1966
|
this.shouldUpdate && typeof n == "number" && (this.isLoading = !0, t.requestInteractiveKey({
|
|
1967
1967
|
observationMatrixId: n,
|
|
1968
1968
|
params: e.getFilterParams,
|
|
@@ -1975,7 +1975,7 @@ const le = {
|
|
|
1975
1975
|
}), Ls = /* @__PURE__ */ S({
|
|
1976
1976
|
__name: "FilterEliminateUnknowns",
|
|
1977
1977
|
setup(e) {
|
|
1978
|
-
const t =
|
|
1978
|
+
const t = P(), n = I({
|
|
1979
1979
|
get: () => !!t.getEliminateUknown,
|
|
1980
1980
|
set: (s) => {
|
|
1981
1981
|
t.setEliminateUnknown(s);
|
|
@@ -1988,13 +1988,13 @@ const le = {
|
|
|
1988
1988
|
}, null, 512), [
|
|
1989
1989
|
[se, n.value]
|
|
1990
1990
|
]),
|
|
1991
|
-
r[1] || (r[1] =
|
|
1991
|
+
r[1] || (r[1] = D(" Eliminate unknowns "))
|
|
1992
1992
|
]));
|
|
1993
1993
|
}
|
|
1994
1994
|
}), Ps = ["value"], Ns = /* @__PURE__ */ S({
|
|
1995
1995
|
__name: "FilterErrorTolerance",
|
|
1996
1996
|
setup(e) {
|
|
1997
|
-
const t = [0, 1, 2], n =
|
|
1997
|
+
const t = [0, 1, 2], n = P(), s = I({
|
|
1998
1998
|
get: () => n.getErrorTolerance,
|
|
1999
1999
|
set: (r) => {
|
|
2000
2000
|
n.setErrorTolerance(r);
|
|
@@ -2011,7 +2011,7 @@ const le = {
|
|
|
2011
2011
|
role: "listbox"
|
|
2012
2012
|
}, [
|
|
2013
2013
|
o[1] || (o[1] = f("option", { value: "" }, null, -1)),
|
|
2014
|
-
(p(), y(
|
|
2014
|
+
(p(), y(L, null, M(t, (i) => f("option", {
|
|
2015
2015
|
key: i,
|
|
2016
2016
|
value: i
|
|
2017
2017
|
}, R(i), 9, Ps)), 64))
|
|
@@ -2033,7 +2033,7 @@ const le = {
|
|
|
2033
2033
|
], js = /* @__PURE__ */ S({
|
|
2034
2034
|
__name: "FilterRank",
|
|
2035
2035
|
setup(e) {
|
|
2036
|
-
const t =
|
|
2036
|
+
const t = P(), n = I({
|
|
2037
2037
|
get() {
|
|
2038
2038
|
return t.getIdentifiedToRank;
|
|
2039
2039
|
},
|
|
@@ -2047,7 +2047,7 @@ const le = {
|
|
|
2047
2047
|
"onUpdate:modelValue": r[0] || (r[0] = (o) => n.value = o)
|
|
2048
2048
|
}, [
|
|
2049
2049
|
r[1] || (r[1] = f("option", { value: void 0 }, null, -1)),
|
|
2050
|
-
(p(!0), y(
|
|
2050
|
+
(p(!0), y(L, null, M(k(Fs), (o) => (p(), y("option", { key: o }, R(o), 1))), 128))
|
|
2051
2051
|
], 512), [
|
|
2052
2052
|
[ue, n.value]
|
|
2053
2053
|
])
|
|
@@ -2056,7 +2056,7 @@ const le = {
|
|
|
2056
2056
|
}), Bs = /* @__PURE__ */ S({
|
|
2057
2057
|
__name: "FilterSort",
|
|
2058
2058
|
setup(e) {
|
|
2059
|
-
const t = ["ordered", "weighted", "optimized"], n =
|
|
2059
|
+
const t = ["ordered", "weighted", "optimized"], n = P(), s = I({
|
|
2060
2060
|
get() {
|
|
2061
2061
|
return n.getSorting;
|
|
2062
2062
|
},
|
|
@@ -2070,7 +2070,7 @@ const le = {
|
|
|
2070
2070
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => s.value = i)
|
|
2071
2071
|
}, [
|
|
2072
2072
|
o[1] || (o[1] = f("option", { value: void 0 }, null, -1)),
|
|
2073
|
-
(p(), y(
|
|
2073
|
+
(p(), y(L, null, M(t, (i) => f("option", { key: i }, R(i), 1)), 64))
|
|
2074
2074
|
], 512), [
|
|
2075
2075
|
[ue, s.value]
|
|
2076
2076
|
])
|
|
@@ -2079,7 +2079,7 @@ const le = {
|
|
|
2079
2079
|
}), Ms = ["value"], Vs = /* @__PURE__ */ S({
|
|
2080
2080
|
__name: "FilterLanguage",
|
|
2081
2081
|
setup(e) {
|
|
2082
|
-
const t =
|
|
2082
|
+
const t = P(), n = J(), s = I({
|
|
2083
2083
|
get: () => t.getLanguageId,
|
|
2084
2084
|
set: (r) => {
|
|
2085
2085
|
t.setLanguageId(Number(r));
|
|
@@ -2095,7 +2095,7 @@ const le = {
|
|
|
2095
2095
|
name: "languages",
|
|
2096
2096
|
role: "listbox"
|
|
2097
2097
|
}, [
|
|
2098
|
-
(p(!0), y(
|
|
2098
|
+
(p(!0), y(L, null, M(k(n).getLanguages, ({ languageId: i, name: a }) => (p(), y("option", {
|
|
2099
2099
|
key: i,
|
|
2100
2100
|
value: i
|
|
2101
2101
|
}, R(a), 9, Ms))), 128))
|
|
@@ -2118,13 +2118,13 @@ const le = {
|
|
|
2118
2118
|
]);
|
|
2119
2119
|
return (s, r) => (p(), y("button", {
|
|
2120
2120
|
type: "button",
|
|
2121
|
-
class:
|
|
2121
|
+
class: ve(["distinguish-btn", n.value]),
|
|
2122
2122
|
disabled: s.disabled
|
|
2123
2123
|
}, [
|
|
2124
|
-
|
|
2124
|
+
U(s.$slots, "default")
|
|
2125
2125
|
], 10, qs));
|
|
2126
2126
|
}
|
|
2127
|
-
}), Hs = { class: "distinguish-modal-wrapper" }, zs = { class: "distinguish-modal-header" }, Ks = { class: "distinguish-modal-body" }, Js = { class: "distinguish-modal-footer" },
|
|
2127
|
+
}), Hs = { class: "distinguish-modal-wrapper" }, zs = { class: "distinguish-modal-header" }, Ks = { class: "distinguish-modal-body" }, Js = { class: "distinguish-modal-footer" }, ze = /* @__PURE__ */ S({
|
|
2128
2128
|
__name: "VModal",
|
|
2129
2129
|
props: {
|
|
2130
2130
|
containerClass: {},
|
|
@@ -2144,7 +2144,7 @@ const le = {
|
|
|
2144
2144
|
}, [
|
|
2145
2145
|
f("div", Hs, [
|
|
2146
2146
|
f("div", {
|
|
2147
|
-
class:
|
|
2147
|
+
class: ve(["distinguish-modal-container", r.containerClass]),
|
|
2148
2148
|
style: qt({ ...r.containerStyle }),
|
|
2149
2149
|
onClick: o[1] || (o[1] = Vt(() => {
|
|
2150
2150
|
}, ["stop"]))
|
|
@@ -2154,13 +2154,13 @@ const le = {
|
|
|
2154
2154
|
class: "distinguish-modal-close",
|
|
2155
2155
|
onClick: o[0] || (o[0] = (i) => n("close"))
|
|
2156
2156
|
}),
|
|
2157
|
-
|
|
2157
|
+
U(r.$slots, "header")
|
|
2158
2158
|
]),
|
|
2159
2159
|
f("div", Ks, [
|
|
2160
|
-
|
|
2160
|
+
U(r.$slots, "body")
|
|
2161
2161
|
]),
|
|
2162
2162
|
f("div", Js, [
|
|
2163
|
-
|
|
2163
|
+
U(r.$slots, "footer")
|
|
2164
2164
|
])
|
|
2165
2165
|
], 6)
|
|
2166
2166
|
])
|
|
@@ -2172,13 +2172,13 @@ const le = {
|
|
|
2172
2172
|
}), Ws = { class: "distinguish-list-checkboxes" }, Xs = ["value"], Qs = /* @__PURE__ */ S({
|
|
2173
2173
|
__name: "FilterKeywords",
|
|
2174
2174
|
setup(e) {
|
|
2175
|
-
const t = J(), n =
|
|
2175
|
+
const t = J(), n = P(), s = X(!1), r = I({
|
|
2176
2176
|
get: () => n.getKeywordIds,
|
|
2177
2177
|
set: (o) => {
|
|
2178
2178
|
n.$patch({ keywordIds: o });
|
|
2179
2179
|
}
|
|
2180
2180
|
});
|
|
2181
|
-
return (o, i) => (p(), y(
|
|
2181
|
+
return (o, i) => (p(), y(L, null, [
|
|
2182
2182
|
v(ne, {
|
|
2183
2183
|
color: "primary",
|
|
2184
2184
|
size: "medium",
|
|
@@ -2187,11 +2187,11 @@ const le = {
|
|
|
2187
2187
|
onClick: i[0] || (i[0] = (a) => s.value = !0)
|
|
2188
2188
|
}, {
|
|
2189
2189
|
default: w(() => i[3] || (i[3] = [
|
|
2190
|
-
|
|
2190
|
+
D(" Keyword ")
|
|
2191
2191
|
])),
|
|
2192
2192
|
_: 1
|
|
2193
2193
|
}, 8, ["disabled", "title"]),
|
|
2194
|
-
s.value ? (p(), T(
|
|
2194
|
+
s.value ? (p(), T(ze, {
|
|
2195
2195
|
key: 0,
|
|
2196
2196
|
onClose: i[2] || (i[2] = (a) => s.value = !1)
|
|
2197
2197
|
}, {
|
|
@@ -2200,7 +2200,7 @@ const le = {
|
|
|
2200
2200
|
])),
|
|
2201
2201
|
body: w(() => [
|
|
2202
2202
|
f("ul", Ws, [
|
|
2203
|
-
(p(!0), y(
|
|
2203
|
+
(p(!0), y(L, null, M(k(t).getKeywords, ({ keywordId: a, name: d }) => (p(), y("li", { key: a }, [
|
|
2204
2204
|
f("label", null, [
|
|
2205
2205
|
q(f("input", {
|
|
2206
2206
|
"onUpdate:modelValue": i[1] || (i[1] = (c) => r.value = c),
|
|
@@ -2209,7 +2209,7 @@ const le = {
|
|
|
2209
2209
|
}, null, 8, Xs), [
|
|
2210
2210
|
[se, r.value]
|
|
2211
2211
|
]),
|
|
2212
|
-
|
|
2212
|
+
D(" " + R(d), 1)
|
|
2213
2213
|
])
|
|
2214
2214
|
]))), 128))
|
|
2215
2215
|
])
|
|
@@ -2234,10 +2234,10 @@ const le = {
|
|
|
2234
2234
|
}, null, 512), [
|
|
2235
2235
|
[se, n.value]
|
|
2236
2236
|
]),
|
|
2237
|
-
r[1] || (r[1] =
|
|
2237
|
+
r[1] || (r[1] = D(" Refresh only taxa "))
|
|
2238
2238
|
]));
|
|
2239
2239
|
}
|
|
2240
|
-
}),
|
|
2240
|
+
}), Ie = (e, t) => {
|
|
2241
2241
|
const n = e.__vccOpts || e;
|
|
2242
2242
|
for (const [s, r] of t)
|
|
2243
2243
|
n[s] = r;
|
|
@@ -2245,25 +2245,25 @@ const le = {
|
|
|
2245
2245
|
}, Ys = {}, Zs = { class: "distinguish-menu-list" };
|
|
2246
2246
|
function er(e, t) {
|
|
2247
2247
|
return p(), y("ul", Zs, [
|
|
2248
|
-
|
|
2248
|
+
U(e.$slots, "default")
|
|
2249
2249
|
]);
|
|
2250
2250
|
}
|
|
2251
|
-
const tr = /* @__PURE__ */
|
|
2251
|
+
const tr = /* @__PURE__ */ Ie(Ys, [["render", er]]), nr = {}, sr = { class: "distinguish-list-item" };
|
|
2252
2252
|
function rr(e, t) {
|
|
2253
2253
|
return p(), y("li", sr, [
|
|
2254
|
-
|
|
2254
|
+
U(e.$slots, "default")
|
|
2255
2255
|
]);
|
|
2256
2256
|
}
|
|
2257
|
-
const Y = /* @__PURE__ */
|
|
2257
|
+
const Y = /* @__PURE__ */ Ie(nr, [["render", rr]]), lt = {
|
|
2258
2258
|
"distinguish-layout-mode-1": "distinguish-layout-mode-2",
|
|
2259
2259
|
"distinguish-layout-mode-2": "distinguish-layout-mode-1"
|
|
2260
2260
|
}, or = {}, ir = { class: "distinguish-grid" };
|
|
2261
2261
|
function ar(e, t) {
|
|
2262
2262
|
return p(), y("div", ir, [
|
|
2263
|
-
|
|
2263
|
+
U(e.$slots, "default")
|
|
2264
2264
|
]);
|
|
2265
2265
|
}
|
|
2266
|
-
const Bt = /* @__PURE__ */
|
|
2266
|
+
const Bt = /* @__PURE__ */ Ie(or, [["render", ar]]), lr = /* @__PURE__ */ S({
|
|
2267
2267
|
__name: "GridToggle",
|
|
2268
2268
|
setup(e) {
|
|
2269
2269
|
const t = Q(), n = I(() => t.getLayout), s = () => {
|
|
@@ -2272,7 +2272,7 @@ const Bt = /* @__PURE__ */ Oe(or, [["render", ar]]), lr = /* @__PURE__ */ S({
|
|
|
2272
2272
|
});
|
|
2273
2273
|
};
|
|
2274
2274
|
return (r, o) => (p(), T(ne, {
|
|
2275
|
-
class:
|
|
2275
|
+
class: ve(k(lt)[n.value]),
|
|
2276
2276
|
onClick: s
|
|
2277
2277
|
}, {
|
|
2278
2278
|
default: w(() => [
|
|
@@ -2291,14 +2291,14 @@ const Bt = /* @__PURE__ */ Oe(or, [["render", ar]]), lr = /* @__PURE__ */ S({
|
|
|
2291
2291
|
}), cr = /* @__PURE__ */ S({
|
|
2292
2292
|
__name: "ResetButton",
|
|
2293
2293
|
setup(e) {
|
|
2294
|
-
const t =
|
|
2294
|
+
const t = P();
|
|
2295
2295
|
return (n, s) => (p(), T(ne, {
|
|
2296
2296
|
color: "primary",
|
|
2297
2297
|
size: "medium",
|
|
2298
2298
|
onClick: s[0] || (s[0] = (r) => k(t).$reset())
|
|
2299
2299
|
}, {
|
|
2300
2300
|
default: w(() => s[1] || (s[1] = [
|
|
2301
|
-
|
|
2301
|
+
D(" Reset ")
|
|
2302
2302
|
])),
|
|
2303
2303
|
_: 1
|
|
2304
2304
|
}));
|
|
@@ -2370,25 +2370,25 @@ const Bt = /* @__PURE__ */ Oe(or, [["render", ar]]), lr = /* @__PURE__ */ S({
|
|
|
2370
2370
|
}), hr = {}, gr = { class: "distinguish-panel" };
|
|
2371
2371
|
function yr(e, t) {
|
|
2372
2372
|
return p(), y("div", gr, [
|
|
2373
|
-
|
|
2373
|
+
U(e.$slots, "default")
|
|
2374
2374
|
]);
|
|
2375
2375
|
}
|
|
2376
|
-
const
|
|
2376
|
+
const Ke = /* @__PURE__ */ Ie(hr, [["render", yr]]), br = ["innerHTML"], _r = /* @__PURE__ */ S({
|
|
2377
2377
|
__name: "PanelEliminated",
|
|
2378
2378
|
props: {
|
|
2379
2379
|
render: { type: Function }
|
|
2380
2380
|
},
|
|
2381
2381
|
setup(e) {
|
|
2382
2382
|
const t = J(), n = I(() => t.getEliminated);
|
|
2383
|
-
return (s, r) => (p(), T(
|
|
2383
|
+
return (s, r) => (p(), T(Ke, { class: "distinguish-panel-eliminated" }, {
|
|
2384
2384
|
default: w(() => [
|
|
2385
2385
|
f("h2", null, "Eliminated (" + R(n.value.length) + ")", 1),
|
|
2386
2386
|
f("ul", null, [
|
|
2387
|
-
(p(!0), y(
|
|
2387
|
+
(p(!0), y(L, null, M(n.value, (o) => (p(), y("li", {
|
|
2388
2388
|
key: o.rowId,
|
|
2389
2389
|
class: "distinguish-row-item"
|
|
2390
2390
|
}, [
|
|
2391
|
-
|
|
2391
|
+
U(s.$slots, "default", { item: o }, () => [
|
|
2392
2392
|
f("span", {
|
|
2393
2393
|
innerHTML: s.render ? s.render(o) : o.objectTag
|
|
2394
2394
|
}, null, 8, br)
|
|
@@ -2402,7 +2402,7 @@ const He = /* @__PURE__ */ Oe(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
|
|
|
2402
2402
|
}), wr = { class: "distinguish-row-filter-buttons" }, Sr = { class: "distinguish-list-checkboxes" }, vr = ["value"], Rr = /* @__PURE__ */ S({
|
|
2403
2403
|
__name: "FilterRow",
|
|
2404
2404
|
setup(e) {
|
|
2405
|
-
const t = J(), n = Q(), s =
|
|
2405
|
+
const t = J(), n = Q(), s = P(), r = X(!1), o = X([]), i = I(() => {
|
|
2406
2406
|
const d = s.getRowIds, c = o.value;
|
|
2407
2407
|
return d.length !== c.length || !d.every((u) => c.includes(u));
|
|
2408
2408
|
}), a = I({
|
|
@@ -2413,18 +2413,18 @@ const He = /* @__PURE__ */ Oe(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
|
|
|
2413
2413
|
});
|
|
2414
2414
|
return Ht(r, (d) => {
|
|
2415
2415
|
n.setShouldUpdate(!d), !d && i.value && (s.rowFilter = !0, n.checkUpdate()), o.value = s.getRowIds;
|
|
2416
|
-
}), (d, c) => (p(), y(
|
|
2416
|
+
}), (d, c) => (p(), y(L, null, [
|
|
2417
2417
|
v(ne, {
|
|
2418
2418
|
color: "primary",
|
|
2419
2419
|
size: "medium",
|
|
2420
2420
|
onClick: c[0] || (c[0] = (u) => r.value = !0)
|
|
2421
2421
|
}, {
|
|
2422
2422
|
default: w(() => c[5] || (c[5] = [
|
|
2423
|
-
|
|
2423
|
+
D(" Select ")
|
|
2424
2424
|
])),
|
|
2425
2425
|
_: 1
|
|
2426
2426
|
}),
|
|
2427
|
-
r.value ? (p(), T(
|
|
2427
|
+
r.value ? (p(), T(ze, {
|
|
2428
2428
|
key: 0,
|
|
2429
2429
|
onClose: c[4] || (c[4] = (u) => r.value = !1)
|
|
2430
2430
|
}, {
|
|
@@ -2441,7 +2441,7 @@ const He = /* @__PURE__ */ Oe(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
|
|
|
2441
2441
|
onClick: c[1] || (c[1] = () => a.value = k(t).getRemaining.map((u) => u.rowId))
|
|
2442
2442
|
}, {
|
|
2443
2443
|
default: w(() => c[7] || (c[7] = [
|
|
2444
|
-
|
|
2444
|
+
D(" Select all ")
|
|
2445
2445
|
])),
|
|
2446
2446
|
_: 1
|
|
2447
2447
|
})) : (p(), T(ne, {
|
|
@@ -2451,17 +2451,17 @@ const He = /* @__PURE__ */ Oe(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
|
|
|
2451
2451
|
onClick: c[2] || (c[2] = () => a.value = [])
|
|
2452
2452
|
}, {
|
|
2453
2453
|
default: w(() => c[8] || (c[8] = [
|
|
2454
|
-
|
|
2454
|
+
D(" Unselect all ")
|
|
2455
2455
|
])),
|
|
2456
2456
|
_: 1
|
|
2457
2457
|
})),
|
|
2458
|
-
|
|
2458
|
+
U(d.$slots, "row-filter", {
|
|
2459
2459
|
selectedIds: a.value,
|
|
2460
2460
|
rows: k(t).getRemaining
|
|
2461
2461
|
})
|
|
2462
2462
|
]),
|
|
2463
2463
|
f("ul", Sr, [
|
|
2464
|
-
(p(!0), y(
|
|
2464
|
+
(p(!0), y(L, null, M(k(t).getRemaining, (u) => (p(), y("li", {
|
|
2465
2465
|
key: u.rowId
|
|
2466
2466
|
}, [
|
|
2467
2467
|
f("label", null, [
|
|
@@ -2472,7 +2472,7 @@ const He = /* @__PURE__ */ Oe(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
|
|
|
2472
2472
|
}, null, 8, vr), [
|
|
2473
2473
|
[se, a.value]
|
|
2474
2474
|
]),
|
|
2475
|
-
|
|
2475
|
+
D(" " + R(u.objectLabel), 1)
|
|
2476
2476
|
])
|
|
2477
2477
|
]))), 128))
|
|
2478
2478
|
])
|
|
@@ -2489,18 +2489,23 @@ const He = /* @__PURE__ */ Oe(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
|
|
|
2489
2489
|
},
|
|
2490
2490
|
setup(e) {
|
|
2491
2491
|
const t = J(), n = I(() => t.getRemaining);
|
|
2492
|
-
return (s, r) => (p(), T(
|
|
2492
|
+
return (s, r) => (p(), T(Ke, { class: "distinguish-panel-remaining" }, {
|
|
2493
2493
|
default: w(() => [
|
|
2494
2494
|
f("div", Er, [
|
|
2495
2495
|
f("h2", null, "Remaining (" + R(n.value.length) + ")", 1),
|
|
2496
|
-
v(Rr
|
|
2496
|
+
v(Rr, null, {
|
|
2497
|
+
"row-filter": w((o) => [
|
|
2498
|
+
U(s.$slots, "remaining-row-filter", he(ge(o)))
|
|
2499
|
+
]),
|
|
2500
|
+
_: 3
|
|
2501
|
+
})
|
|
2497
2502
|
]),
|
|
2498
2503
|
f("ul", null, [
|
|
2499
|
-
(p(!0), y(
|
|
2504
|
+
(p(!0), y(L, null, M(n.value, (o) => (p(), y("li", {
|
|
2500
2505
|
key: o.rowId,
|
|
2501
2506
|
class: "distinguish-row-item"
|
|
2502
2507
|
}, [
|
|
2503
|
-
|
|
2508
|
+
U(s.$slots, "default", { item: o }, () => [
|
|
2504
2509
|
f("span", {
|
|
2505
2510
|
innerHTML: s.render ? s.render(o) : o.objectTag
|
|
2506
2511
|
}, null, 8, Tr)
|
|
@@ -2542,7 +2547,7 @@ const xr = {
|
|
|
2542
2547
|
descriptorId: {}
|
|
2543
2548
|
},
|
|
2544
2549
|
setup(e) {
|
|
2545
|
-
const t = e, n =
|
|
2550
|
+
const t = e, n = P(), s = I({
|
|
2546
2551
|
get: () => n.getDescriptorValueById(t.descriptorId) || [],
|
|
2547
2552
|
set: (r) => {
|
|
2548
2553
|
r.length ? n.setDescriptor({
|
|
@@ -2553,7 +2558,7 @@ const xr = {
|
|
|
2553
2558
|
});
|
|
2554
2559
|
return (r, o) => (p(), y("div", Ar, [
|
|
2555
2560
|
f("label", null, [
|
|
2556
|
-
(p(!0), y(
|
|
2561
|
+
(p(!0), y(L, null, M(r.characterState.depictionIds, (i) => (p(), T(Mt, {
|
|
2557
2562
|
key: i,
|
|
2558
2563
|
"depiction-id": i
|
|
2559
2564
|
}, null, 8, ["depiction-id"]))), 128)),
|
|
@@ -2564,7 +2569,7 @@ const xr = {
|
|
|
2564
2569
|
}, null, 8, Cr), [
|
|
2565
2570
|
[se, s.value]
|
|
2566
2571
|
]),
|
|
2567
|
-
|
|
2572
|
+
D(" " + R(r.characterState.name), 1)
|
|
2568
2573
|
])
|
|
2569
2574
|
]));
|
|
2570
2575
|
}
|
|
@@ -2574,7 +2579,7 @@ const xr = {
|
|
|
2574
2579
|
descriptor: {}
|
|
2575
2580
|
},
|
|
2576
2581
|
setup(e) {
|
|
2577
|
-
const t = e, n =
|
|
2582
|
+
const t = e, n = P(), s = Q(), r = X(), o = I(() => {
|
|
2578
2583
|
const i = n.getDescriptorValueById(t.descriptor.descriptorId) || [], a = r.value || [];
|
|
2579
2584
|
return i.length !== a.length || !i.every((d) => a.includes(d));
|
|
2580
2585
|
});
|
|
@@ -2583,7 +2588,7 @@ const xr = {
|
|
|
2583
2588
|
}), ut(() => {
|
|
2584
2589
|
s.setShouldUpdate(!0), o.value && s.checkUpdate();
|
|
2585
2590
|
}), (i, a) => (p(), y("div", Ur, [
|
|
2586
|
-
(p(!0), y(
|
|
2591
|
+
(p(!0), y(L, null, M(i.descriptor.characterStates, (d) => (p(), T($r, {
|
|
2587
2592
|
key: d.characterStateId,
|
|
2588
2593
|
"descriptor-id": i.descriptor.descriptorId,
|
|
2589
2594
|
"character-state": d
|
|
@@ -2596,14 +2601,14 @@ const xr = {
|
|
|
2596
2601
|
descriptor: {}
|
|
2597
2602
|
},
|
|
2598
2603
|
setup(e) {
|
|
2599
|
-
return (t, n) => (p(), T(
|
|
2604
|
+
return (t, n) => (p(), T(ze, { "container-class": "distinguish-descriptor-modal" }, {
|
|
2600
2605
|
header: w(() => [
|
|
2601
2606
|
f("h3", null, R(t.descriptor.name), 1),
|
|
2602
2607
|
t.descriptor.description ? (p(), y("span", Lr, R(t.descriptor.description), 1)) : (p(), y("i", Pr, " No further description available. "))
|
|
2603
2608
|
]),
|
|
2604
2609
|
body: w(() => [
|
|
2605
2610
|
f("div", Nr, [
|
|
2606
|
-
(p(!0), y(
|
|
2611
|
+
(p(!0), y(L, null, M(t.descriptor.depictionIds, (s) => (p(), T(Mt, {
|
|
2607
2612
|
key: s,
|
|
2608
2613
|
"depiction-id": s
|
|
2609
2614
|
}, null, 8, ["depiction-id"]))), 128))
|
|
@@ -2617,7 +2622,7 @@ const xr = {
|
|
|
2617
2622
|
_: 1
|
|
2618
2623
|
}));
|
|
2619
2624
|
}
|
|
2620
|
-
}), jr = ["id"], Br = { class: "distinguish-input-label" },
|
|
2625
|
+
}), jr = ["id"], Br = { class: "distinguish-input-label" }, Ae = /* @__PURE__ */ S({
|
|
2621
2626
|
__name: "DescriptorContainer",
|
|
2622
2627
|
props: {
|
|
2623
2628
|
descriptor: {}
|
|
@@ -2633,12 +2638,12 @@ const xr = {
|
|
|
2633
2638
|
class: "distinguish-link",
|
|
2634
2639
|
onClick: s[0] || (s[0] = (r) => t.value = !0)
|
|
2635
2640
|
}, [
|
|
2636
|
-
|
|
2637
|
-
|
|
2641
|
+
U(n.$slots, "title", {}, () => [
|
|
2642
|
+
D(R(n.descriptor.name), 1)
|
|
2638
2643
|
])
|
|
2639
2644
|
])
|
|
2640
2645
|
]),
|
|
2641
|
-
|
|
2646
|
+
U(n.$slots, "default"),
|
|
2642
2647
|
t.value ? (p(), T(Fr, {
|
|
2643
2648
|
key: 0,
|
|
2644
2649
|
descriptor: n.descriptor,
|
|
@@ -2652,7 +2657,7 @@ const xr = {
|
|
|
2652
2657
|
descriptor: {}
|
|
2653
2658
|
},
|
|
2654
2659
|
setup(e) {
|
|
2655
|
-
const t = e, n =
|
|
2660
|
+
const t = e, n = P(), s = X(
|
|
2656
2661
|
String(n.getDescriptorValueById(t.descriptor.descriptorId))
|
|
2657
2662
|
), r = () => {
|
|
2658
2663
|
const { descriptorId: o } = t.descriptor, i = s.value.trim();
|
|
@@ -2661,12 +2666,12 @@ const xr = {
|
|
|
2661
2666
|
value: i
|
|
2662
2667
|
}) : n.removeDescriptor(o);
|
|
2663
2668
|
};
|
|
2664
|
-
return (o, i) => (p(), T(
|
|
2669
|
+
return (o, i) => (p(), T(Ae, {
|
|
2665
2670
|
class: "distinguish-descriptor-continuous",
|
|
2666
2671
|
descriptor: o.descriptor
|
|
2667
2672
|
}, {
|
|
2668
2673
|
title: w(() => [
|
|
2669
|
-
|
|
2674
|
+
D(R(o.descriptor.name) + " (" + R(o.descriptor.min) + "-" + R(o.descriptor.max) + " " + R(o.descriptor.defaultUnit) + ") ", 1)
|
|
2670
2675
|
]),
|
|
2671
2676
|
default: w(() => [
|
|
2672
2677
|
q(f("input", {
|
|
@@ -2690,7 +2695,7 @@ const xr = {
|
|
|
2690
2695
|
const t = {
|
|
2691
2696
|
Presence: !0,
|
|
2692
2697
|
Absent: !1
|
|
2693
|
-
}, n = e, s =
|
|
2698
|
+
}, n = e, s = P(), r = I({
|
|
2694
2699
|
get: () => s.getDescriptorValueById(
|
|
2695
2700
|
n.descriptor.descriptorId
|
|
2696
2701
|
),
|
|
@@ -2706,7 +2711,7 @@ const xr = {
|
|
|
2706
2711
|
const { states: a } = n.descriptor;
|
|
2707
2712
|
return ((d = a.find((c) => c.name === String(i))) == null ? void 0 : d.numberOfObjects) || 0;
|
|
2708
2713
|
};
|
|
2709
|
-
return (i, a) => (p(), T(
|
|
2714
|
+
return (i, a) => (p(), T(Ae, {
|
|
2710
2715
|
class: "distinguish-descriptor-presence-absence",
|
|
2711
2716
|
descriptor: i.descriptor
|
|
2712
2717
|
}, {
|
|
@@ -2715,12 +2720,12 @@ const xr = {
|
|
|
2715
2720
|
"onUpdate:modelValue": a[0] || (a[0] = (d) => r.value = d)
|
|
2716
2721
|
}, [
|
|
2717
2722
|
a[1] || (a[1] = f("option", null, null, -1)),
|
|
2718
|
-
(p(), y(
|
|
2723
|
+
(p(), y(L, null, M(t, (d, c) => f("option", {
|
|
2719
2724
|
key: c,
|
|
2720
2725
|
value: d
|
|
2721
2726
|
}, [
|
|
2722
2727
|
i.descriptor.status === k(le).Useless ? (p(), y("span", qr, "-")) : j("", !0),
|
|
2723
|
-
|
|
2728
|
+
D(" " + R(c) + " (" + R(o(d)) + ") ", 1)
|
|
2724
2729
|
], 8, Vr)), 64))
|
|
2725
2730
|
], 512), [
|
|
2726
2731
|
[ue, r.value]
|
|
@@ -2735,7 +2740,7 @@ const xr = {
|
|
|
2735
2740
|
descriptor: {}
|
|
2736
2741
|
},
|
|
2737
2742
|
setup(e) {
|
|
2738
|
-
const t = e, n =
|
|
2743
|
+
const t = e, n = P(), s = (o) => {
|
|
2739
2744
|
const i = o.target, { descriptorId: a } = t.descriptor;
|
|
2740
2745
|
i.value ? n.setDescriptor({
|
|
2741
2746
|
descriptorId: a,
|
|
@@ -2744,7 +2749,7 @@ const xr = {
|
|
|
2744
2749
|
}, r = (o) => n.getDescriptorValueById(
|
|
2745
2750
|
t.descriptor.descriptorId
|
|
2746
2751
|
).includes(o.characterStateId);
|
|
2747
|
-
return (o, i) => (p(), T(
|
|
2752
|
+
return (o, i) => (p(), T(Ae, {
|
|
2748
2753
|
class: "distinguish-descriptor-qualitative",
|
|
2749
2754
|
descriptor: o.descriptor
|
|
2750
2755
|
}, {
|
|
@@ -2754,14 +2759,14 @@ const xr = {
|
|
|
2754
2759
|
onChange: s
|
|
2755
2760
|
}, [
|
|
2756
2761
|
i[0] || (i[0] = f("option", { value: "" }, null, -1)),
|
|
2757
|
-
(p(!0), y(
|
|
2762
|
+
(p(!0), y(L, null, M(o.descriptor.characterStates, (a) => (p(), y("option", {
|
|
2758
2763
|
key: a.characterStateId,
|
|
2759
2764
|
value: a.characterStateId,
|
|
2760
2765
|
selected: r(a)
|
|
2761
2766
|
}, [
|
|
2762
2767
|
r(a) ? (p(), y("span", Kr, ">")) : j("", !0),
|
|
2763
2768
|
a.status === k(le).Useless ? (p(), y("span", Jr, "-")) : j("", !0),
|
|
2764
|
-
|
|
2769
|
+
D(" " + R(a.name) + " (" + R(a.numberOfObjects) + ") ", 1)
|
|
2765
2770
|
], 8, zr))), 128))
|
|
2766
2771
|
], 32)
|
|
2767
2772
|
]),
|
|
@@ -2774,7 +2779,7 @@ const xr = {
|
|
|
2774
2779
|
descriptor: {}
|
|
2775
2780
|
},
|
|
2776
2781
|
setup(e) {
|
|
2777
|
-
const t = e, n =
|
|
2782
|
+
const t = e, n = P(), s = X(
|
|
2778
2783
|
String(n.getDescriptorValueById(t.descriptor.descriptorId))
|
|
2779
2784
|
), r = () => {
|
|
2780
2785
|
const { descriptorId: o } = t.descriptor, i = s.value.trim();
|
|
@@ -2783,12 +2788,12 @@ const xr = {
|
|
|
2783
2788
|
value: i
|
|
2784
2789
|
}) : n.removeDescriptor(o);
|
|
2785
2790
|
};
|
|
2786
|
-
return (o, i) => (p(), T(
|
|
2791
|
+
return (o, i) => (p(), T(Ae, {
|
|
2787
2792
|
class: "distinguish-descriptor-sample",
|
|
2788
2793
|
descriptor: o.descriptor
|
|
2789
2794
|
}, {
|
|
2790
2795
|
title: w(() => [
|
|
2791
|
-
|
|
2796
|
+
D(R(o.descriptor.name) + " (" + R(o.descriptor.min) + "-" + R(o.descriptor.max) + " " + R(o.descriptor.defaultUnit) + ") ", 1)
|
|
2792
2797
|
]),
|
|
2793
2798
|
default: w(() => [
|
|
2794
2799
|
q(f("input", {
|
|
@@ -2803,7 +2808,7 @@ const xr = {
|
|
|
2803
2808
|
_: 1
|
|
2804
2809
|
}, 8, ["descriptor"]));
|
|
2805
2810
|
}
|
|
2806
|
-
}),
|
|
2811
|
+
}), De = /* @__PURE__ */ S({
|
|
2807
2812
|
__name: "DescriptorsList",
|
|
2808
2813
|
props: {
|
|
2809
2814
|
title: {},
|
|
@@ -2819,10 +2824,10 @@ const xr = {
|
|
|
2819
2824
|
const r = s.replace("::", "");
|
|
2820
2825
|
return t[r];
|
|
2821
2826
|
};
|
|
2822
|
-
return (s, r) => (p(), y(
|
|
2827
|
+
return (s, r) => (p(), y(L, null, [
|
|
2823
2828
|
f("h2", null, R(s.title), 1),
|
|
2824
2829
|
f("ol", null, [
|
|
2825
|
-
(p(!0), y(
|
|
2830
|
+
(p(!0), y(L, null, M(s.descriptors, (o) => (p(), y("li", {
|
|
2826
2831
|
key: o.descriptorId
|
|
2827
2832
|
}, [
|
|
2828
2833
|
(p(), T(zt(n(o.type)), { descriptor: o }, null, 8, ["descriptor"]))
|
|
@@ -2833,7 +2838,7 @@ const xr = {
|
|
|
2833
2838
|
}), Qr = { key: 0 }, Gr = /* @__PURE__ */ S({
|
|
2834
2839
|
__name: "FilterRowCheckbox",
|
|
2835
2840
|
setup(e) {
|
|
2836
|
-
const t =
|
|
2841
|
+
const t = P(), n = I({
|
|
2837
2842
|
get: () => t.getRowFilter,
|
|
2838
2843
|
set: (s) => t.$patch({ rowFilter: s })
|
|
2839
2844
|
});
|
|
@@ -2844,27 +2849,27 @@ const xr = {
|
|
|
2844
2849
|
}, null, 512), [
|
|
2845
2850
|
[se, n.value]
|
|
2846
2851
|
]),
|
|
2847
|
-
r[1] || (r[1] =
|
|
2852
|
+
r[1] || (r[1] = D(" Filter "))
|
|
2848
2853
|
])) : j("", !0);
|
|
2849
2854
|
}
|
|
2850
2855
|
}), Yr = /* @__PURE__ */ S({
|
|
2851
2856
|
__name: "PanelDescriptors",
|
|
2852
2857
|
setup(e) {
|
|
2853
2858
|
const t = J();
|
|
2854
|
-
return (n, s) => (p(), T(
|
|
2859
|
+
return (n, s) => (p(), T(Ke, { class: "distinguish-panel-descriptors" }, {
|
|
2855
2860
|
default: w(() => [
|
|
2856
2861
|
v(Gr),
|
|
2857
|
-
k(t).getDescriptorsUsed.length ? (p(), T(
|
|
2862
|
+
k(t).getDescriptorsUsed.length ? (p(), T(De, {
|
|
2858
2863
|
key: 0,
|
|
2859
2864
|
descriptors: k(t).getDescriptorsUsed,
|
|
2860
2865
|
title: "Used Descriptors"
|
|
2861
2866
|
}, null, 8, ["descriptors"])) : j("", !0),
|
|
2862
|
-
k(t).getDescriptorsUseful.length ? (p(), T(
|
|
2867
|
+
k(t).getDescriptorsUseful.length ? (p(), T(De, {
|
|
2863
2868
|
key: 1,
|
|
2864
2869
|
descriptors: k(t).getDescriptorsUseful,
|
|
2865
2870
|
title: "Descriptors Useful for Identification"
|
|
2866
2871
|
}, null, 8, ["descriptors"])) : j("", !0),
|
|
2867
|
-
k(t).getDescriptorsUseless.length ? (p(), T(
|
|
2872
|
+
k(t).getDescriptorsUseless.length ? (p(), T(De, {
|
|
2868
2873
|
key: 2,
|
|
2869
2874
|
descriptors: k(t).getDescriptorsUseless,
|
|
2870
2875
|
title: "Descriptors no longer relevant for identification"
|
|
@@ -2889,7 +2894,7 @@ const xr = {
|
|
|
2889
2894
|
n[0] || (n[0] = f("div", { class: "distinguish-spinner" }, null, -1)),
|
|
2890
2895
|
f("div", eo, [
|
|
2891
2896
|
f("span", { innerHTML: e.legend }, null, 8, to),
|
|
2892
|
-
|
|
2897
|
+
U(t.$slots, "default")
|
|
2893
2898
|
])
|
|
2894
2899
|
])
|
|
2895
2900
|
])
|
|
@@ -2902,7 +2907,7 @@ const xr = {
|
|
|
2902
2907
|
setup(e) {
|
|
2903
2908
|
const t = J();
|
|
2904
2909
|
return (n, s) => (p(), y("h1", so, [
|
|
2905
|
-
s[0] || (s[0] =
|
|
2910
|
+
s[0] || (s[0] = D(" Interactive key ")),
|
|
2906
2911
|
k(t).getObservationMatrix ? (p(), y("span", ro, "| " + R(k(t).getObservationMatrix.name), 1)) : j("", !0)
|
|
2907
2912
|
]));
|
|
2908
2913
|
}
|
|
@@ -2936,7 +2941,7 @@ const xr = {
|
|
|
2936
2941
|
otuId: {}
|
|
2937
2942
|
},
|
|
2938
2943
|
setup(e) {
|
|
2939
|
-
const t = e, n = Q(), s =
|
|
2944
|
+
const t = e, n = Q(), s = P(), r = I(() => n.getIsLoading), o = I(() => n.getLayout);
|
|
2940
2945
|
return (() => {
|
|
2941
2946
|
n.setAPIConfig(t.apiConfig), n.setObservationMatrixId(t.observationMatrixId), t.otuId && n.setOtuId(t.otuId), n.checkUpdate();
|
|
2942
2947
|
})(), s.$subscribe((a) => {
|
|
@@ -2945,15 +2950,18 @@ const xr = {
|
|
|
2945
2950
|
v(co),
|
|
2946
2951
|
v(mr),
|
|
2947
2952
|
v(Bt, {
|
|
2948
|
-
class:
|
|
2953
|
+
class: ve(o.value)
|
|
2949
2954
|
}, {
|
|
2950
2955
|
default: w(() => [
|
|
2951
2956
|
v(Yr),
|
|
2952
2957
|
v(kr, {
|
|
2953
2958
|
render: t.renderItem
|
|
2954
2959
|
}, {
|
|
2960
|
+
"remaining-row-filter": w((c) => [
|
|
2961
|
+
U(a.$slots, "remaining-row-filter", he(ge(c)))
|
|
2962
|
+
]),
|
|
2955
2963
|
default: w((c) => [
|
|
2956
|
-
|
|
2964
|
+
U(a.$slots, "remaining-item", he(ge(c)))
|
|
2957
2965
|
]),
|
|
2958
2966
|
_: 3
|
|
2959
2967
|
}, 8, ["render"]),
|
|
@@ -2961,7 +2969,7 @@ const xr = {
|
|
|
2961
2969
|
render: t.renderItem
|
|
2962
2970
|
}, {
|
|
2963
2971
|
default: w((c) => [
|
|
2964
|
-
|
|
2972
|
+
U(a.$slots, "eliminated-item", he(ge(c)))
|
|
2965
2973
|
]),
|
|
2966
2974
|
_: 3
|
|
2967
2975
|
}, 8, ["render"])
|