@sfgrp/distinguish 0.4.5 → 0.4.6

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.
@@ -1,5 +1,5 @@
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";
1
+ import { defineComponent as S, computed as I, createElementBlock as y, openBlock as p, withDirectives as q, createTextVNode as L, createElementVNode as f, vModelCheckbox as se, Fragment as D, renderList as B, 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 Be, createPinia as Jt } from "pinia";
3
3
  function mt(e, t) {
4
4
  return function() {
5
5
  return e.apply(t, arguments);
@@ -456,7 +456,7 @@ const kt = {
456
456
  silentJSONParsing: !0,
457
457
  forcedJSONParsing: !0,
458
458
  clarifyTimeoutError: !1
459
- }, Nn = typeof URLSearchParams < "u" ? URLSearchParams : qe, Fn = typeof FormData < "u" ? FormData : null, jn = typeof Blob < "u" ? Blob : null, Bn = {
459
+ }, Nn = typeof URLSearchParams < "u" ? URLSearchParams : qe, Fn = typeof FormData < "u" ? FormData : null, jn = typeof Blob < "u" ? Blob : null, Mn = {
460
460
  isBrowser: !0,
461
461
  classes: {
462
462
  URLSearchParams: Nn,
@@ -464,17 +464,17 @@ const kt = {
464
464
  Blob: jn
465
465
  },
466
466
  protocols: ["http", "https", "file", "blob", "url", "data"]
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
467
+ }, He = typeof window < "u" && typeof document < "u", Ne = typeof navigator == "object" && navigator || void 0, Bn = He && (!Ne || ["ReactNative", "NativeScript", "NS"].indexOf(Ne.product) < 0), Vn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
468
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
470
  hasBrowserEnv: He,
471
- hasStandardBrowserEnv: Mn,
471
+ hasStandardBrowserEnv: Bn,
472
472
  hasStandardBrowserWebWorkerEnv: Vn,
473
473
  navigator: Ne,
474
474
  origin: qn
475
475
  }, Symbol.toStringTag, { value: "Module" })), N = {
476
476
  ...Hn,
477
- ...Bn
477
+ ...Mn
478
478
  };
479
479
  function zn(e, t) {
480
480
  return ke(e, new N.classes.URLSearchParams(), Object.assign({
@@ -653,7 +653,7 @@ function es(e, t) {
653
653
  });
654
654
  });
655
655
  }
656
- let B = class {
656
+ let M = class {
657
657
  constructor(t) {
658
658
  t && this.set(t);
659
659
  }
@@ -771,8 +771,8 @@ let B = class {
771
771
  return l.isArray(t) ? t.forEach(o) : o(t), this;
772
772
  }
773
773
  };
774
- B.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
775
- l.reduceDescriptors(B.prototype, ({ value: e }, t) => {
774
+ M.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
775
+ l.reduceDescriptors(M.prototype, ({ value: e }, t) => {
776
776
  let n = t[0].toUpperCase() + t.slice(1);
777
777
  return {
778
778
  get: () => e,
@@ -781,9 +781,9 @@ l.reduceDescriptors(B.prototype, ({ value: e }, t) => {
781
781
  }
782
782
  };
783
783
  });
784
- l.freezeMethods(B);
784
+ l.freezeMethods(M);
785
785
  function $e(e, t) {
786
- const n = this || pe, s = t || n, r = B.from(s.headers);
786
+ const n = this || pe, s = t || n, r = M.from(s.headers);
787
787
  let o = s.data;
788
788
  return l.forEach(e, function(a) {
789
789
  o = a.call(n, o, r.normalize(), t ? t.status : void 0);
@@ -906,7 +906,7 @@ function At(e, t, n) {
906
906
  let s = !is(t);
907
907
  return e && (s || n == !1) ? as(e, t) : t;
908
908
  }
909
- const tt = (e) => e instanceof B ? { ...e } : e;
909
+ const tt = (e) => e instanceof M ? { ...e } : e;
910
910
  function te(e, t) {
911
911
  t = t || {};
912
912
  const n = {};
@@ -974,7 +974,7 @@ function te(e, t) {
974
974
  const Ct = (e) => {
975
975
  const t = te({}, e);
976
976
  let { data: n, withXSRFToken: s, xsrfHeaderName: r, xsrfCookieName: o, headers: i, auth: a } = t;
977
- t.headers = i = B.from(i), t.url = Tt(At(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
977
+ t.headers = i = M.from(i), t.url = Tt(At(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
978
978
  "Authorization",
979
979
  "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
980
980
  );
@@ -996,7 +996,7 @@ const Ct = (e) => {
996
996
  return new Promise(function(n, s) {
997
997
  const r = Ct(e);
998
998
  let o = r.data;
999
- const i = B.from(r.headers).normalize();
999
+ const i = M.from(r.headers).normalize();
1000
1000
  let { responseType: a, onUploadProgress: d, onDownloadProgress: c } = r, u, m, E, A, h;
1001
1001
  function _() {
1002
1002
  A && A(), h && h(), r.cancelToken && r.cancelToken.unsubscribe(u), r.signal && r.signal.removeEventListener("abort", u);
@@ -1006,7 +1006,7 @@ const Ct = (e) => {
1006
1006
  function O() {
1007
1007
  if (!g)
1008
1008
  return;
1009
- const $ = B.from(
1009
+ const $ = M.from(
1010
1010
  "getAllResponseHeaders" in g && g.getAllResponseHeaders()
1011
1011
  ), F = {
1012
1012
  data: !a || a === "text" || a === "json" ? g.responseText : g.response,
@@ -1242,7 +1242,7 @@ const gs = async (e) => {
1242
1242
  return !$ && _ && _(), await new Promise((F, W) => {
1243
1243
  It(F, W, {
1244
1244
  data: K,
1245
- headers: B.from(C.headers),
1245
+ headers: M.from(C.headers),
1246
1246
  status: C.status,
1247
1247
  statusText: C.statusText,
1248
1248
  config: e,
@@ -1307,7 +1307,7 @@ function Ue(e) {
1307
1307
  throw new oe(null, e);
1308
1308
  }
1309
1309
  function ot(e) {
1310
- return Ue(e), e.headers = B.from(e.headers), e.data = $e.call(
1310
+ return Ue(e), e.headers = M.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) {
@@ -1315,13 +1315,13 @@ function ot(e) {
1315
1315
  e,
1316
1316
  e.transformResponse,
1317
1317
  s
1318
- ), s.headers = B.from(s.headers), s;
1318
+ ), s.headers = M.from(s.headers), s;
1319
1319
  }, function(s) {
1320
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
- ), s.response.headers = B.from(s.response.headers))), Promise.reject(s);
1324
+ ), s.response.headers = M.from(s.response.headers))), Promise.reject(s);
1325
1325
  });
1326
1326
  }
1327
1327
  const Lt = "1.8.4", xe = {};
@@ -1430,7 +1430,7 @@ let ee = class {
1430
1430
  (h) => {
1431
1431
  delete o[h];
1432
1432
  }
1433
- ), n.headers = B.concat(i, o);
1433
+ ), n.headers = M.concat(i, o);
1434
1434
  const a = [];
1435
1435
  let d = !0;
1436
1436
  this.interceptors.request.forEach(function(_) {
@@ -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 Be = {
1581
+ const Me = {
1582
1582
  Continue: 100,
1583
1583
  SwitchingProtocols: 101,
1584
1584
  Processing: 102,
@@ -1643,8 +1643,8 @@ const Be = {
1643
1643
  NotExtended: 510,
1644
1644
  NetworkAuthenticationRequired: 511
1645
1645
  };
1646
- Object.entries(Be).forEach(([e, t]) => {
1647
- Be[t] = e;
1646
+ Object.entries(Me).forEach(([e, t]) => {
1647
+ Me[t] = e;
1648
1648
  });
1649
1649
  function Nt(e) {
1650
1650
  const t = new ee(e), n = mt(ee.prototype.request, t);
@@ -1667,28 +1667,28 @@ x.all = function(t) {
1667
1667
  x.spread = vs;
1668
1668
  x.isAxiosError = Rs;
1669
1669
  x.mergeConfig = te;
1670
- x.AxiosHeaders = B;
1670
+ x.AxiosHeaders = M;
1671
1671
  x.formToJSON = (e) => Ot(l.isHTMLForm(e) ? new FormData(e) : e);
1672
1672
  x.getAdapter = Dt.getAdapter;
1673
- x.HttpStatusCode = Be;
1673
+ x.HttpStatusCode = Me;
1674
1674
  x.default = x;
1675
1675
  const {
1676
- Axios: vo,
1677
- AxiosError: Ro,
1678
- CanceledError: Eo,
1679
- isCancel: To,
1680
- CancelToken: ko,
1681
- VERSION: Oo,
1682
- all: xo,
1683
- Cancel: Io,
1684
- isAxiosError: Ao,
1685
- spread: Co,
1686
- toFormData: $o,
1687
- AxiosHeaders: Uo,
1688
- HttpStatusCode: Do,
1689
- formToJSON: Lo,
1690
- getAdapter: Po,
1691
- mergeConfig: No
1676
+ Axios: To,
1677
+ AxiosError: ko,
1678
+ CanceledError: Oo,
1679
+ isCancel: xo,
1680
+ CancelToken: Io,
1681
+ VERSION: Ao,
1682
+ all: Co,
1683
+ Cancel: $o,
1684
+ isAxiosError: Uo,
1685
+ spread: Do,
1686
+ toFormData: Lo,
1687
+ AxiosHeaders: Po,
1688
+ HttpStatusCode: No,
1689
+ formToJSON: Fo,
1690
+ getAdapter: jo,
1691
+ mergeConfig: Mo
1692
1692
  } = x, Ft = (e = {}) => {
1693
1693
  const t = Q(), {
1694
1694
  baseURL: n,
@@ -1724,7 +1724,20 @@ const le = {
1724
1724
  label: e.label,
1725
1725
  position: e.position,
1726
1726
  ...jt(e)
1727
- }), ks = (e) => ({
1727
+ });
1728
+ function ks(e = "") {
1729
+ const t = /^(i|em|b|strong|sub|sup|br|p|span)$/i;
1730
+ return e.replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi, (n, s) => t.test(s) ? n.startsWith("</") ? `</${s}>` : `<${s}>` : "");
1731
+ }
1732
+ function Os(e = "") {
1733
+ const t = /\bhttps?:\/\/[^\s<>"']+[^\s<>"'.,;:!?)]/g;
1734
+ return ks(e).replace(t, (s) => `<a href="${s.replace(/&/g, "&amp;")}" target="_blank" rel="noopener noreferrer">${s}</a>`);
1735
+ }
1736
+ const xs = (e) => ({
1737
+ author: e == null ? void 0 : e.cached_author_string,
1738
+ label: Os(e == null ? void 0 : e.cached),
1739
+ year: e == null ? void 0 : e.year
1740
+ }), Is = (e) => ({
1728
1741
  depictionId: e.id,
1729
1742
  caption: e.caption,
1730
1743
  figureLabel: e.figure_label,
@@ -1744,36 +1757,36 @@ const le = {
1744
1757
  depictionIds: e.depiction_ids,
1745
1758
  usefulness: e.usefulness,
1746
1759
  weight: e.weight
1747
- }), Os = (e) => ({
1760
+ }), As = (e) => ({
1748
1761
  ...fe(e),
1749
1762
  defaultUnit: e.default_unit,
1750
1763
  max: e.max,
1751
1764
  min: e.min
1752
- }), xs = (e) => ({
1765
+ }), Cs = (e) => ({
1753
1766
  ...fe(e),
1754
1767
  defaultUnit: e.default_unit,
1755
1768
  max: e.max,
1756
1769
  min: e.min
1757
- }), Is = (e) => ({
1770
+ }), $s = (e) => ({
1758
1771
  ...fe(e),
1759
1772
  states: e.states.map((t) => jt(t))
1760
- }), As = (e) => ({
1773
+ }), Us = (e) => ({
1761
1774
  ...fe(e),
1762
1775
  characterStates: e.states.map((t) => Ts(t))
1763
- }), Cs = (e) => {
1776
+ }), Ds = (e) => {
1764
1777
  switch (e.type) {
1765
1778
  case ae.Continuous:
1766
- return Os(e);
1779
+ return As(e);
1767
1780
  case ae.Sample:
1768
- return xs(e);
1781
+ return Cs(e);
1769
1782
  case ae.PresenceAbsence:
1770
- return Is(e);
1783
+ return $s(e);
1771
1784
  case ae.Qualitative:
1772
- return As(e);
1785
+ return Us(e);
1773
1786
  default:
1774
1787
  return fe(e);
1775
1788
  }
1776
- }, $s = (e) => ({
1789
+ }, Ls = (e) => ({
1777
1790
  observationMatrixId: e.observation_matrix_id,
1778
1791
  name: e.observation_matrix.name,
1779
1792
  globalId: e.observation_matrix.global_id
@@ -1789,14 +1802,14 @@ const le = {
1789
1802
  observationObjectId: e.object.observation_object_id,
1790
1803
  observationObjectType: e.object.observation_object_type,
1791
1804
  rowId: e.object.id
1792
- }), Us = (e) => ({
1805
+ }), Ps = (e) => ({
1793
1806
  keywordId: e.id,
1794
1807
  definition: e.description,
1795
1808
  name: e.name
1796
- }), Ds = (e) => ({
1809
+ }), Ns = (e) => ({
1797
1810
  languageId: e.id,
1798
1811
  name: e.english_name
1799
- }), J = Me("observationMatrix", {
1812
+ }), J = Be("observationMatrix", {
1800
1813
  state: () => ({
1801
1814
  observationMatrix: void 0,
1802
1815
  citation: void 0,
@@ -1812,8 +1825,12 @@ const le = {
1812
1825
  getDescriptors: (e) => e.descriptors,
1813
1826
  getDescriptorById: (e) => (t) => e.descriptors.find((n) => n.descriptorId === t),
1814
1827
  getDescriptorsUsed: (e) => e.descriptors.filter((t) => t.status === le.Used),
1815
- getDescriptorsUseless: (e) => e.descriptors.filter((t) => t.status === le.Useless),
1816
- getDescriptorsUseful: (e) => e.descriptors.filter((t) => t.status === le.Useful),
1828
+ getDescriptorsUseless: (e) => e.descriptors.filter(
1829
+ (t) => t.status === le.Useless
1830
+ ),
1831
+ getDescriptorsUseful: (e) => e.descriptors.filter(
1832
+ (t) => t.status === le.Useful
1833
+ ),
1817
1834
  getEliminated: (e) => e.eliminated,
1818
1835
  getKeywords: (e) => e.availableKeywords,
1819
1836
  getLanguages: (e) => e.availableLanguages,
@@ -1838,12 +1855,31 @@ const le = {
1838
1855
  setObservationMatrix(e) {
1839
1856
  this.observationMatrix = e;
1840
1857
  },
1841
- async requestInteractiveKey({ observationMatrixId: e, params: t = {}, opt: n = {} }) {
1842
- const s = await Es.key(e, { params: t }), { data: r } = s;
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;
1858
+ setObservationMatrixCitation(e) {
1859
+ this.citation = xs(e);
1860
+ },
1861
+ async requestInteractiveKey({
1862
+ observationMatrixId: e,
1863
+ params: t = {},
1864
+ opt: n = {}
1865
+ }) {
1866
+ const s = await Es.key(e, {
1867
+ params: t
1868
+ }), { data: r } = s;
1869
+ return n.refreshOnlyTaxa || (this.setObservationMatrix(Ls(r)), this.setObservationMatrixCitation(r.observation_matrix_citation), this.setDescriptors(
1870
+ r.list_of_descriptors.map((o) => Ds(o))
1871
+ ), this.setKeywords(
1872
+ r.descriptor_available_keywords.map(
1873
+ (o) => Ps(o)
1874
+ )
1875
+ ), this.setLanguages(
1876
+ r.descriptor_available_languages.map(
1877
+ (o) => Ns(o)
1878
+ )
1879
+ )), this.setEliminated(r.eliminated.map((o) => at(o))), this.setRemaining(r.remaining.map((o) => at(o))), s;
1844
1880
  }
1845
1881
  }
1846
- }), P = Me("filter", {
1882
+ }), P = Be("filter", {
1847
1883
  state: () => ({
1848
1884
  descriptors: {},
1849
1885
  eliminateUnknown: void 0,
@@ -1915,7 +1951,7 @@ const le = {
1915
1951
  this.eliminateUnknown = e;
1916
1952
  }
1917
1953
  }
1918
- }), Q = Me("settings", {
1954
+ }), Q = Be("settings", {
1919
1955
  state: () => ({
1920
1956
  gridLayout: "distinguish-layout-mode-1",
1921
1957
  isLoading: !1,
@@ -1972,7 +2008,7 @@ const le = {
1972
2008
  }).then((s) => this.errorMessage = "").catch((s) => this.errorMessage = s.message).finally(() => this.isLoading = !1));
1973
2009
  }
1974
2010
  }
1975
- }), Ls = /* @__PURE__ */ S({
2011
+ }), Fs = /* @__PURE__ */ S({
1976
2012
  __name: "FilterEliminateUnknowns",
1977
2013
  setup(e) {
1978
2014
  const t = P(), n = I({
@@ -1988,10 +2024,10 @@ const le = {
1988
2024
  }, null, 512), [
1989
2025
  [se, n.value]
1990
2026
  ]),
1991
- r[1] || (r[1] = D(" Eliminate unknowns "))
2027
+ r[1] || (r[1] = L(" Eliminate unknowns "))
1992
2028
  ]));
1993
2029
  }
1994
- }), Ps = ["value"], Ns = /* @__PURE__ */ S({
2030
+ }), js = ["value"], Ms = /* @__PURE__ */ S({
1995
2031
  __name: "FilterErrorTolerance",
1996
2032
  setup(e) {
1997
2033
  const t = [0, 1, 2], n = P(), s = I({
@@ -2011,16 +2047,16 @@ const le = {
2011
2047
  role: "listbox"
2012
2048
  }, [
2013
2049
  o[1] || (o[1] = f("option", { value: "" }, null, -1)),
2014
- (p(), y(L, null, M(t, (i) => f("option", {
2050
+ (p(), y(D, null, B(t, (i) => f("option", {
2015
2051
  key: i,
2016
2052
  value: i
2017
- }, R(i), 9, Ps)), 64))
2053
+ }, R(i), 9, js)), 64))
2018
2054
  ], 512), [
2019
2055
  [ue, s.value]
2020
2056
  ])
2021
2057
  ]));
2022
2058
  }
2023
- }), Fs = [
2059
+ }), Bs = [
2024
2060
  "otu",
2025
2061
  "subspecies",
2026
2062
  "species",
@@ -2030,7 +2066,7 @@ const le = {
2030
2066
  "tribe",
2031
2067
  "subfamily",
2032
2068
  "family"
2033
- ], js = /* @__PURE__ */ S({
2069
+ ], Vs = /* @__PURE__ */ S({
2034
2070
  __name: "FilterRank",
2035
2071
  setup(e) {
2036
2072
  const t = P(), n = I({
@@ -2047,13 +2083,13 @@ const le = {
2047
2083
  "onUpdate:modelValue": r[0] || (r[0] = (o) => n.value = o)
2048
2084
  }, [
2049
2085
  r[1] || (r[1] = f("option", { value: void 0 }, null, -1)),
2050
- (p(!0), y(L, null, M(k(Fs), (o) => (p(), y("option", { key: o }, R(o), 1))), 128))
2086
+ (p(!0), y(D, null, B(k(Bs), (o) => (p(), y("option", { key: o }, R(o), 1))), 128))
2051
2087
  ], 512), [
2052
2088
  [ue, n.value]
2053
2089
  ])
2054
2090
  ]));
2055
2091
  }
2056
- }), Bs = /* @__PURE__ */ S({
2092
+ }), qs = /* @__PURE__ */ S({
2057
2093
  __name: "FilterSort",
2058
2094
  setup(e) {
2059
2095
  const t = ["ordered", "weighted", "optimized"], n = P(), s = I({
@@ -2070,13 +2106,13 @@ const le = {
2070
2106
  "onUpdate:modelValue": o[0] || (o[0] = (i) => s.value = i)
2071
2107
  }, [
2072
2108
  o[1] || (o[1] = f("option", { value: void 0 }, null, -1)),
2073
- (p(), y(L, null, M(t, (i) => f("option", { key: i }, R(i), 1)), 64))
2109
+ (p(), y(D, null, B(t, (i) => f("option", { key: i }, R(i), 1)), 64))
2074
2110
  ], 512), [
2075
2111
  [ue, s.value]
2076
2112
  ])
2077
2113
  ]));
2078
2114
  }
2079
- }), Ms = ["value"], Vs = /* @__PURE__ */ S({
2115
+ }), Hs = ["value"], zs = /* @__PURE__ */ S({
2080
2116
  __name: "FilterLanguage",
2081
2117
  setup(e) {
2082
2118
  const t = P(), n = J(), s = I({
@@ -2095,16 +2131,16 @@ const le = {
2095
2131
  name: "languages",
2096
2132
  role: "listbox"
2097
2133
  }, [
2098
- (p(!0), y(L, null, M(k(n).getLanguages, ({ languageId: i, name: a }) => (p(), y("option", {
2134
+ (p(!0), y(D, null, B(k(n).getLanguages, ({ languageId: i, name: a }) => (p(), y("option", {
2099
2135
  key: i,
2100
2136
  value: i
2101
- }, R(a), 9, Ms))), 128))
2137
+ }, R(a), 9, Hs))), 128))
2102
2138
  ], 512), [
2103
2139
  [ue, s.value]
2104
2140
  ])
2105
2141
  ]));
2106
2142
  }
2107
- }), qs = ["disabled"], ne = /* @__PURE__ */ S({
2143
+ }), Ks = ["disabled"], ne = /* @__PURE__ */ S({
2108
2144
  __name: "VBtn",
2109
2145
  props: {
2110
2146
  color: { default: "primary" },
@@ -2122,9 +2158,9 @@ const le = {
2122
2158
  disabled: s.disabled
2123
2159
  }, [
2124
2160
  U(s.$slots, "default")
2125
- ], 10, qs));
2161
+ ], 10, Ks));
2126
2162
  }
2127
- }), Hs = { class: "distinguish-modal-wrapper" }, zs = { class: "distinguish-modal-header" }, Ks = { class: "distinguish-modal-body" }, Js = { class: "distinguish-modal-footer" }, ze = /* @__PURE__ */ S({
2163
+ }), Js = { class: "distinguish-modal-wrapper" }, Ws = { class: "distinguish-modal-header" }, Xs = { class: "distinguish-modal-body" }, Qs = { class: "distinguish-modal-footer" }, ze = /* @__PURE__ */ S({
2128
2164
  __name: "VModal",
2129
2165
  props: {
2130
2166
  containerClass: {},
@@ -2142,24 +2178,24 @@ const le = {
2142
2178
  onClick: o[2] || (o[2] = (i) => n("close")),
2143
2179
  onKey: o[3] || (o[3] = (i) => n("close"))
2144
2180
  }, [
2145
- f("div", Hs, [
2181
+ f("div", Js, [
2146
2182
  f("div", {
2147
2183
  class: ve(["distinguish-modal-container", r.containerClass]),
2148
2184
  style: qt({ ...r.containerStyle }),
2149
2185
  onClick: o[1] || (o[1] = Vt(() => {
2150
2186
  }, ["stop"]))
2151
2187
  }, [
2152
- f("div", zs, [
2188
+ f("div", Ws, [
2153
2189
  f("div", {
2154
2190
  class: "distinguish-modal-close",
2155
2191
  onClick: o[0] || (o[0] = (i) => n("close"))
2156
2192
  }),
2157
2193
  U(r.$slots, "header")
2158
2194
  ]),
2159
- f("div", Ks, [
2195
+ f("div", Xs, [
2160
2196
  U(r.$slots, "body")
2161
2197
  ]),
2162
- f("div", Js, [
2198
+ f("div", Qs, [
2163
2199
  U(r.$slots, "footer")
2164
2200
  ])
2165
2201
  ], 6)
@@ -2169,7 +2205,7 @@ const le = {
2169
2205
  _: 3
2170
2206
  }));
2171
2207
  }
2172
- }), Ws = { class: "distinguish-list-checkboxes" }, Xs = ["value"], Qs = /* @__PURE__ */ S({
2208
+ }), Gs = { class: "distinguish-list-checkboxes" }, Ys = ["value"], Zs = /* @__PURE__ */ S({
2173
2209
  __name: "FilterKeywords",
2174
2210
  setup(e) {
2175
2211
  const t = J(), n = P(), s = X(!1), r = I({
@@ -2178,7 +2214,7 @@ const le = {
2178
2214
  n.$patch({ keywordIds: o });
2179
2215
  }
2180
2216
  });
2181
- return (o, i) => (p(), y(L, null, [
2217
+ return (o, i) => (p(), y(D, null, [
2182
2218
  v(ne, {
2183
2219
  color: "primary",
2184
2220
  size: "medium",
@@ -2187,7 +2223,7 @@ const le = {
2187
2223
  onClick: i[0] || (i[0] = (a) => s.value = !0)
2188
2224
  }, {
2189
2225
  default: w(() => i[3] || (i[3] = [
2190
- D(" Keyword ")
2226
+ L(" Keyword ")
2191
2227
  ])),
2192
2228
  _: 1
2193
2229
  }, 8, ["disabled", "title"]),
@@ -2199,17 +2235,17 @@ const le = {
2199
2235
  f("h3", null, "Keywords", -1)
2200
2236
  ])),
2201
2237
  body: w(() => [
2202
- f("ul", Ws, [
2203
- (p(!0), y(L, null, M(k(t).getKeywords, ({ keywordId: a, name: d }) => (p(), y("li", { key: a }, [
2238
+ f("ul", Gs, [
2239
+ (p(!0), y(D, null, B(k(t).getKeywords, ({ keywordId: a, name: d }) => (p(), y("li", { key: a }, [
2204
2240
  f("label", null, [
2205
2241
  q(f("input", {
2206
2242
  "onUpdate:modelValue": i[1] || (i[1] = (c) => r.value = c),
2207
2243
  value: a,
2208
2244
  type: "checkbox"
2209
- }, null, 8, Xs), [
2245
+ }, null, 8, Ys), [
2210
2246
  [se, r.value]
2211
2247
  ]),
2212
- D(" " + R(d), 1)
2248
+ L(" " + R(d), 1)
2213
2249
  ])
2214
2250
  ]))), 128))
2215
2251
  ])
@@ -2218,7 +2254,7 @@ const le = {
2218
2254
  })) : j("", !0)
2219
2255
  ], 64));
2220
2256
  }
2221
- }), Gs = /* @__PURE__ */ S({
2257
+ }), er = /* @__PURE__ */ S({
2222
2258
  __name: "SettingRefresh",
2223
2259
  setup(e) {
2224
2260
  const t = Q(), n = I({
@@ -2234,7 +2270,7 @@ const le = {
2234
2270
  }, null, 512), [
2235
2271
  [se, n.value]
2236
2272
  ]),
2237
- r[1] || (r[1] = D(" Refresh only taxa "))
2273
+ r[1] || (r[1] = L(" Refresh only taxa "))
2238
2274
  ]));
2239
2275
  }
2240
2276
  }), Ie = (e, t) => {
@@ -2242,28 +2278,28 @@ const le = {
2242
2278
  for (const [s, r] of t)
2243
2279
  n[s] = r;
2244
2280
  return n;
2245
- }, Ys = {}, Zs = { class: "distinguish-menu-list" };
2246
- function er(e, t) {
2247
- return p(), y("ul", Zs, [
2281
+ }, tr = {}, nr = { class: "distinguish-menu-list" };
2282
+ function sr(e, t) {
2283
+ return p(), y("ul", nr, [
2248
2284
  U(e.$slots, "default")
2249
2285
  ]);
2250
2286
  }
2251
- const tr = /* @__PURE__ */ Ie(Ys, [["render", er]]), nr = {}, sr = { class: "distinguish-list-item" };
2252
- function rr(e, t) {
2253
- return p(), y("li", sr, [
2287
+ const rr = /* @__PURE__ */ Ie(tr, [["render", sr]]), or = {}, ir = { class: "distinguish-list-item" };
2288
+ function ar(e, t) {
2289
+ return p(), y("li", ir, [
2254
2290
  U(e.$slots, "default")
2255
2291
  ]);
2256
2292
  }
2257
- const Y = /* @__PURE__ */ Ie(nr, [["render", rr]]), lt = {
2293
+ const Y = /* @__PURE__ */ Ie(or, [["render", ar]]), lt = {
2258
2294
  "distinguish-layout-mode-1": "distinguish-layout-mode-2",
2259
2295
  "distinguish-layout-mode-2": "distinguish-layout-mode-1"
2260
- }, or = {}, ir = { class: "distinguish-grid" };
2261
- function ar(e, t) {
2262
- return p(), y("div", ir, [
2296
+ }, lr = {}, cr = { class: "distinguish-grid" };
2297
+ function ur(e, t) {
2298
+ return p(), y("div", cr, [
2263
2299
  U(e.$slots, "default")
2264
2300
  ]);
2265
2301
  }
2266
- const Bt = /* @__PURE__ */ Ie(or, [["render", ar]]), lr = /* @__PURE__ */ S({
2302
+ const Mt = /* @__PURE__ */ Ie(lr, [["render", ur]]), dr = /* @__PURE__ */ S({
2267
2303
  __name: "GridToggle",
2268
2304
  setup(e) {
2269
2305
  const t = Q(), n = I(() => t.getLayout), s = () => {
@@ -2276,7 +2312,7 @@ const Bt = /* @__PURE__ */ Ie(or, [["render", ar]]), lr = /* @__PURE__ */ S({
2276
2312
  onClick: s
2277
2313
  }, {
2278
2314
  default: w(() => [
2279
- v(Bt, { class: "distinguish-grid-icon" }, {
2315
+ v(Mt, { class: "distinguish-grid-icon" }, {
2280
2316
  default: w(() => o[0] || (o[0] = [
2281
2317
  f("div", { class: "distinguish-panel-descriptors" }, null, -1),
2282
2318
  f("div", { class: "distinguish-panel-remaining" }, null, -1),
@@ -2288,7 +2324,7 @@ const Bt = /* @__PURE__ */ Ie(or, [["render", ar]]), lr = /* @__PURE__ */ S({
2288
2324
  _: 1
2289
2325
  }, 8, ["class"]));
2290
2326
  }
2291
- }), cr = /* @__PURE__ */ S({
2327
+ }), pr = /* @__PURE__ */ S({
2292
2328
  __name: "ResetButton",
2293
2329
  setup(e) {
2294
2330
  const t = P();
@@ -2298,82 +2334,82 @@ const Bt = /* @__PURE__ */ Ie(or, [["render", ar]]), lr = /* @__PURE__ */ S({
2298
2334
  onClick: s[0] || (s[0] = (r) => k(t).$reset())
2299
2335
  }, {
2300
2336
  default: w(() => s[1] || (s[1] = [
2301
- D(" Reset ")
2337
+ L(" Reset ")
2302
2338
  ])),
2303
2339
  _: 1
2304
2340
  }));
2305
2341
  }
2306
- }), ur = { class: "distinguish-header-error-message" }, dr = /* @__PURE__ */ S({
2342
+ }), fr = { class: "distinguish-header-error-message" }, mr = /* @__PURE__ */ S({
2307
2343
  __name: "ErrorMessage",
2308
2344
  setup(e) {
2309
2345
  const t = Q();
2310
- return (n, s) => (p(), y("span", ur, R(k(t).getErrorMessage), 1));
2346
+ return (n, s) => (p(), y("span", fr, R(k(t).getErrorMessage), 1));
2311
2347
  }
2312
- }), pr = { class: "distinguish-header-bar" }, fr = { class: "distinguish-header-bar__buttons" }, mr = /* @__PURE__ */ S({
2348
+ }), hr = { class: "distinguish-header-bar" }, gr = { class: "distinguish-header-bar__buttons" }, yr = /* @__PURE__ */ S({
2313
2349
  __name: "HeaderBar",
2314
2350
  setup(e) {
2315
- return (t, n) => (p(), y("div", pr, [
2316
- v(dr),
2317
- v(tr, null, {
2351
+ return (t, n) => (p(), y("div", hr, [
2352
+ v(mr),
2353
+ v(rr, null, {
2318
2354
  default: w(() => [
2319
2355
  v(Y, null, {
2320
2356
  default: w(() => [
2321
- v(Gs)
2357
+ v(er)
2322
2358
  ]),
2323
2359
  _: 1
2324
2360
  }),
2325
2361
  v(Y, null, {
2326
2362
  default: w(() => [
2327
- v(Ls)
2363
+ v(Fs)
2328
2364
  ]),
2329
2365
  _: 1
2330
2366
  }),
2331
2367
  v(Y, null, {
2332
2368
  default: w(() => [
2333
- v(Ns)
2369
+ v(Ms)
2334
2370
  ]),
2335
2371
  _: 1
2336
2372
  }),
2337
2373
  v(Y, null, {
2338
2374
  default: w(() => [
2339
- v(js)
2375
+ v(Vs)
2340
2376
  ]),
2341
2377
  _: 1
2342
2378
  }),
2343
2379
  v(Y, null, {
2344
2380
  default: w(() => [
2345
- v(Vs)
2381
+ v(zs)
2346
2382
  ]),
2347
2383
  _: 1
2348
2384
  }),
2349
2385
  v(Y, null, {
2350
2386
  default: w(() => [
2351
- v(Bs)
2387
+ v(qs)
2352
2388
  ]),
2353
2389
  _: 1
2354
2390
  }),
2355
2391
  v(Y, null, {
2356
2392
  default: w(() => [
2357
- v(Qs)
2393
+ v(Zs)
2358
2394
  ]),
2359
2395
  _: 1
2360
2396
  })
2361
2397
  ]),
2362
2398
  _: 1
2363
2399
  }),
2364
- f("div", fr, [
2365
- v(cr),
2366
- v(lr)
2400
+ f("div", gr, [
2401
+ v(pr),
2402
+ v(dr)
2367
2403
  ])
2368
2404
  ]));
2369
2405
  }
2370
- }), hr = {}, gr = { class: "distinguish-panel" };
2371
- function yr(e, t) {
2372
- return p(), y("div", gr, [
2406
+ }), br = {}, _r = { class: "distinguish-panel" };
2407
+ function wr(e, t) {
2408
+ return p(), y("div", _r, [
2373
2409
  U(e.$slots, "default")
2374
2410
  ]);
2375
2411
  }
2376
- const Ke = /* @__PURE__ */ Ie(hr, [["render", yr]]), br = ["innerHTML"], _r = /* @__PURE__ */ S({
2412
+ const Ke = /* @__PURE__ */ Ie(br, [["render", wr]]), Sr = ["innerHTML"], vr = /* @__PURE__ */ S({
2377
2413
  __name: "PanelEliminated",
2378
2414
  props: {
2379
2415
  render: { type: Function }
@@ -2384,14 +2420,14 @@ const Ke = /* @__PURE__ */ Ie(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
2384
2420
  default: w(() => [
2385
2421
  f("h2", null, "Eliminated (" + R(n.value.length) + ")", 1),
2386
2422
  f("ul", null, [
2387
- (p(!0), y(L, null, M(n.value, (o) => (p(), y("li", {
2423
+ (p(!0), y(D, null, B(n.value, (o) => (p(), y("li", {
2388
2424
  key: o.rowId,
2389
2425
  class: "distinguish-row-item"
2390
2426
  }, [
2391
2427
  U(s.$slots, "default", { item: o }, () => [
2392
2428
  f("span", {
2393
2429
  innerHTML: s.render ? s.render(o) : o.objectTag
2394
- }, null, 8, br)
2430
+ }, null, 8, Sr)
2395
2431
  ])
2396
2432
  ]))), 128))
2397
2433
  ])
@@ -2399,7 +2435,7 @@ const Ke = /* @__PURE__ */ Ie(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
2399
2435
  _: 3
2400
2436
  }));
2401
2437
  }
2402
- }), wr = { class: "distinguish-row-filter-buttons" }, Sr = { class: "distinguish-list-checkboxes" }, vr = ["value"], Rr = /* @__PURE__ */ S({
2438
+ }), Rr = { class: "distinguish-row-filter-buttons" }, Er = { class: "distinguish-list-checkboxes" }, Tr = ["value"], kr = /* @__PURE__ */ S({
2403
2439
  __name: "FilterRow",
2404
2440
  setup(e) {
2405
2441
  const t = J(), n = Q(), s = P(), r = X(!1), o = X([]), i = I(() => {
@@ -2413,14 +2449,14 @@ const Ke = /* @__PURE__ */ Ie(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
2413
2449
  });
2414
2450
  return Ht(r, (d) => {
2415
2451
  n.setShouldUpdate(!d), !d && i.value && (s.rowFilter = !0, n.checkUpdate()), o.value = s.getRowIds;
2416
- }), (d, c) => (p(), y(L, null, [
2452
+ }), (d, c) => (p(), y(D, null, [
2417
2453
  v(ne, {
2418
2454
  color: "primary",
2419
2455
  size: "medium",
2420
2456
  onClick: c[0] || (c[0] = (u) => r.value = !0)
2421
2457
  }, {
2422
2458
  default: w(() => c[5] || (c[5] = [
2423
- D(" Select ")
2459
+ L(" Select ")
2424
2460
  ])),
2425
2461
  _: 1
2426
2462
  }),
@@ -2433,7 +2469,7 @@ const Ke = /* @__PURE__ */ Ie(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
2433
2469
  ])),
2434
2470
  body: w(() => [
2435
2471
  f("div", null, [
2436
- f("div", wr, [
2472
+ f("div", Rr, [
2437
2473
  k(t).getRemaining.length !== a.value.length || a.value.length == 0 ? (p(), T(ne, {
2438
2474
  key: 0,
2439
2475
  color: "primary",
@@ -2441,7 +2477,7 @@ const Ke = /* @__PURE__ */ Ie(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
2441
2477
  onClick: c[1] || (c[1] = () => a.value = k(t).getRemaining.map((u) => u.rowId))
2442
2478
  }, {
2443
2479
  default: w(() => c[7] || (c[7] = [
2444
- D(" Select all ")
2480
+ L(" Select all ")
2445
2481
  ])),
2446
2482
  _: 1
2447
2483
  })) : (p(), T(ne, {
@@ -2451,7 +2487,7 @@ const Ke = /* @__PURE__ */ Ie(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
2451
2487
  onClick: c[2] || (c[2] = () => a.value = [])
2452
2488
  }, {
2453
2489
  default: w(() => c[8] || (c[8] = [
2454
- D(" Unselect all ")
2490
+ L(" Unselect all ")
2455
2491
  ])),
2456
2492
  _: 1
2457
2493
  })),
@@ -2460,8 +2496,8 @@ const Ke = /* @__PURE__ */ Ie(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
2460
2496
  rows: k(t).getRemaining
2461
2497
  })
2462
2498
  ]),
2463
- f("ul", Sr, [
2464
- (p(!0), y(L, null, M(k(t).getRemaining, (u) => (p(), y("li", {
2499
+ f("ul", Er, [
2500
+ (p(!0), y(D, null, B(k(t).getRemaining, (u) => (p(), y("li", {
2465
2501
  key: u.rowId
2466
2502
  }, [
2467
2503
  f("label", null, [
@@ -2469,10 +2505,10 @@ const Ke = /* @__PURE__ */ Ie(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
2469
2505
  "onUpdate:modelValue": c[3] || (c[3] = (m) => a.value = m),
2470
2506
  value: u.rowId,
2471
2507
  type: "checkbox"
2472
- }, null, 8, vr), [
2508
+ }, null, 8, Tr), [
2473
2509
  [se, a.value]
2474
2510
  ]),
2475
- D(" " + R(u.objectLabel), 1)
2511
+ L(" " + R(u.objectLabel), 1)
2476
2512
  ])
2477
2513
  ]))), 128))
2478
2514
  ])
@@ -2482,7 +2518,7 @@ const Ke = /* @__PURE__ */ Ie(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
2482
2518
  })) : j("", !0)
2483
2519
  ], 64));
2484
2520
  }
2485
- }), Er = { class: "distinguish-title-section" }, Tr = ["innerHTML"], kr = /* @__PURE__ */ S({
2521
+ }), Or = { class: "distinguish-title-section" }, xr = ["innerHTML"], Ir = /* @__PURE__ */ S({
2486
2522
  __name: "PanelRemaining",
2487
2523
  props: {
2488
2524
  render: { type: Function }
@@ -2491,9 +2527,9 @@ const Ke = /* @__PURE__ */ Ie(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
2491
2527
  const t = J(), n = I(() => t.getRemaining);
2492
2528
  return (s, r) => (p(), T(Ke, { class: "distinguish-panel-remaining" }, {
2493
2529
  default: w(() => [
2494
- f("div", Er, [
2530
+ f("div", Or, [
2495
2531
  f("h2", null, "Remaining (" + R(n.value.length) + ")", 1),
2496
- v(Rr, null, {
2532
+ v(kr, null, {
2497
2533
  "row-filter": w((o) => [
2498
2534
  U(s.$slots, "remaining-row-filter", he(ge(o)))
2499
2535
  ]),
@@ -2501,14 +2537,14 @@ const Ke = /* @__PURE__ */ Ie(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
2501
2537
  })
2502
2538
  ]),
2503
2539
  f("ul", null, [
2504
- (p(!0), y(L, null, M(n.value, (o) => (p(), y("li", {
2540
+ (p(!0), y(D, null, B(n.value, (o) => (p(), y("li", {
2505
2541
  key: o.rowId,
2506
2542
  class: "distinguish-row-item"
2507
2543
  }, [
2508
2544
  U(s.$slots, "default", { item: o }, () => [
2509
2545
  f("span", {
2510
2546
  innerHTML: s.render ? s.render(o) : o.objectTag
2511
- }, null, 8, Tr)
2547
+ }, null, 8, xr)
2512
2548
  ])
2513
2549
  ]))), 128))
2514
2550
  ])
@@ -2517,30 +2553,30 @@ const Ke = /* @__PURE__ */ Ie(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
2517
2553
  }));
2518
2554
  }
2519
2555
  });
2520
- class Or {
2556
+ class Ar {
2521
2557
  static find(t) {
2522
2558
  return Ft().get(`/depictions/${t}.json`, { params: { extend: ["image"] } });
2523
2559
  }
2524
2560
  }
2525
- const xr = {
2561
+ const Cr = {
2526
2562
  key: 0,
2527
2563
  class: "distinguish-depiction-box"
2528
- }, Ir = ["src"], Mt = /* @__PURE__ */ S({
2564
+ }, $r = ["src"], Bt = /* @__PURE__ */ S({
2529
2565
  __name: "VDepiction",
2530
2566
  props: {
2531
2567
  depictionId: {}
2532
2568
  },
2533
2569
  setup(e) {
2534
2570
  const t = e, n = X();
2535
- return Or.find(t.depictionId).then(({ data: s }) => {
2536
- n.value = ks(s);
2537
- }), (s, r) => n.value ? (p(), y("div", xr, [
2571
+ return Ar.find(t.depictionId).then(({ data: s }) => {
2572
+ n.value = Is(s);
2573
+ }), (s, r) => n.value ? (p(), y("div", Cr, [
2538
2574
  f("img", {
2539
2575
  src: n.value.imageUrl
2540
- }, null, 8, Ir)
2576
+ }, null, 8, $r)
2541
2577
  ])) : j("", !0);
2542
2578
  }
2543
- }), Ar = { class: "distinguish-character-descriptor__cell" }, Cr = ["value"], $r = /* @__PURE__ */ S({
2579
+ }), Ur = { class: "distinguish-character-descriptor__cell" }, Dr = ["value"], Lr = /* @__PURE__ */ S({
2544
2580
  __name: "CharacterStateCell",
2545
2581
  props: {
2546
2582
  characterState: {},
@@ -2556,9 +2592,9 @@ const xr = {
2556
2592
  }) : n.removeDescriptor(t.descriptorId);
2557
2593
  }
2558
2594
  });
2559
- return (r, o) => (p(), y("div", Ar, [
2595
+ return (r, o) => (p(), y("div", Ur, [
2560
2596
  f("label", null, [
2561
- (p(!0), y(L, null, M(r.characterState.depictionIds, (i) => (p(), T(Mt, {
2597
+ (p(!0), y(D, null, B(r.characterState.depictionIds, (i) => (p(), T(Bt, {
2562
2598
  key: i,
2563
2599
  "depiction-id": i
2564
2600
  }, null, 8, ["depiction-id"]))), 128)),
@@ -2566,14 +2602,14 @@ const xr = {
2566
2602
  "onUpdate:modelValue": o[0] || (o[0] = (i) => s.value = i),
2567
2603
  value: r.characterState.characterStateId,
2568
2604
  type: "checkbox"
2569
- }, null, 8, Cr), [
2605
+ }, null, 8, Dr), [
2570
2606
  [se, s.value]
2571
2607
  ]),
2572
- D(" " + R(r.characterState.name), 1)
2608
+ L(" " + R(r.characterState.name), 1)
2573
2609
  ])
2574
2610
  ]));
2575
2611
  }
2576
- }), Ur = { class: "distinguish-character-states-grid" }, Dr = /* @__PURE__ */ S({
2612
+ }), Pr = { class: "distinguish-character-states-grid" }, Nr = /* @__PURE__ */ S({
2577
2613
  __name: "CharacterStateGrid",
2578
2614
  props: {
2579
2615
  descriptor: {}
@@ -2587,15 +2623,15 @@ const xr = {
2587
2623
  s.setShouldUpdate(!1), r.value = n.getDescriptorValueById(t.descriptor.descriptorId);
2588
2624
  }), ut(() => {
2589
2625
  s.setShouldUpdate(!0), o.value && s.checkUpdate();
2590
- }), (i, a) => (p(), y("div", Ur, [
2591
- (p(!0), y(L, null, M(i.descriptor.characterStates, (d) => (p(), T($r, {
2626
+ }), (i, a) => (p(), y("div", Pr, [
2627
+ (p(!0), y(D, null, B(i.descriptor.characterStates, (d) => (p(), T(Lr, {
2592
2628
  key: d.characterStateId,
2593
2629
  "descriptor-id": i.descriptor.descriptorId,
2594
2630
  "character-state": d
2595
2631
  }, null, 8, ["descriptor-id", "character-state"]))), 128))
2596
2632
  ]));
2597
2633
  }
2598
- }), Lr = { key: 0 }, Pr = { key: 1 }, Nr = { class: "descriptor-modal__depiction" }, Fr = /* @__PURE__ */ S({
2634
+ }), Fr = { key: 0 }, jr = { key: 1 }, Mr = { class: "descriptor-modal__depiction" }, Br = /* @__PURE__ */ S({
2599
2635
  __name: "DescriptorModal",
2600
2636
  props: {
2601
2637
  descriptor: {}
@@ -2604,17 +2640,17 @@ const xr = {
2604
2640
  return (t, n) => (p(), T(ze, { "container-class": "distinguish-descriptor-modal" }, {
2605
2641
  header: w(() => [
2606
2642
  f("h3", null, R(t.descriptor.name), 1),
2607
- t.descriptor.description ? (p(), y("span", Lr, R(t.descriptor.description), 1)) : (p(), y("i", Pr, " No further description available. "))
2643
+ t.descriptor.description ? (p(), y("span", Fr, R(t.descriptor.description), 1)) : (p(), y("i", jr, " No further description available. "))
2608
2644
  ]),
2609
2645
  body: w(() => [
2610
- f("div", Nr, [
2611
- (p(!0), y(L, null, M(t.descriptor.depictionIds, (s) => (p(), T(Mt, {
2646
+ f("div", Mr, [
2647
+ (p(!0), y(D, null, B(t.descriptor.depictionIds, (s) => (p(), T(Bt, {
2612
2648
  key: s,
2613
2649
  "depiction-id": s
2614
2650
  }, null, 8, ["depiction-id"]))), 128))
2615
2651
  ]),
2616
2652
  n[0] || (n[0] = f("hr", null, null, -1)),
2617
- t.descriptor.type === k(ae).Qualitative ? (p(), T(Dr, {
2653
+ t.descriptor.type === k(ae).Qualitative ? (p(), T(Nr, {
2618
2654
  key: 0,
2619
2655
  descriptor: t.descriptor
2620
2656
  }, null, 8, ["descriptor"])) : j("", !0)
@@ -2622,7 +2658,7 @@ const xr = {
2622
2658
  _: 1
2623
2659
  }));
2624
2660
  }
2625
- }), jr = ["id"], Br = { class: "distinguish-input-label" }, Ae = /* @__PURE__ */ S({
2661
+ }), Vr = ["id"], qr = { class: "distinguish-input-label" }, Ae = /* @__PURE__ */ S({
2626
2662
  __name: "DescriptorContainer",
2627
2663
  props: {
2628
2664
  descriptor: {}
@@ -2633,25 +2669,25 @@ const xr = {
2633
2669
  id: `descriptor-${n.descriptor.descriptorId}`,
2634
2670
  class: "distinguish-descriptor-container"
2635
2671
  }, [
2636
- f("div", Br, [
2672
+ f("div", qr, [
2637
2673
  f("span", {
2638
2674
  class: "distinguish-link",
2639
2675
  onClick: s[0] || (s[0] = (r) => t.value = !0)
2640
2676
  }, [
2641
2677
  U(n.$slots, "title", {}, () => [
2642
- D(R(n.descriptor.name), 1)
2678
+ L(R(n.descriptor.name), 1)
2643
2679
  ])
2644
2680
  ])
2645
2681
  ]),
2646
2682
  U(n.$slots, "default"),
2647
- t.value ? (p(), T(Fr, {
2683
+ t.value ? (p(), T(Br, {
2648
2684
  key: 0,
2649
2685
  descriptor: n.descriptor,
2650
2686
  onClose: s[1] || (s[1] = (r) => t.value = !1)
2651
2687
  }, null, 8, ["descriptor"])) : j("", !0)
2652
- ], 8, jr));
2688
+ ], 8, Vr));
2653
2689
  }
2654
- }), Mr = /* @__PURE__ */ S({
2690
+ }), Hr = /* @__PURE__ */ S({
2655
2691
  __name: "DescriptorContinuous",
2656
2692
  props: {
2657
2693
  descriptor: {}
@@ -2671,7 +2707,7 @@ const xr = {
2671
2707
  descriptor: o.descriptor
2672
2708
  }, {
2673
2709
  title: w(() => [
2674
- D(R(o.descriptor.name) + " (" + R(o.descriptor.min) + "-" + R(o.descriptor.max) + " " + R(o.descriptor.defaultUnit) + ") ", 1)
2710
+ L(R(o.descriptor.name) + " (" + R(o.descriptor.min) + "-" + R(o.descriptor.max) + " " + R(o.descriptor.defaultUnit) + ") ", 1)
2675
2711
  ]),
2676
2712
  default: w(() => [
2677
2713
  q(f("input", {
@@ -2686,7 +2722,7 @@ const xr = {
2686
2722
  _: 1
2687
2723
  }, 8, ["descriptor"]));
2688
2724
  }
2689
- }), Vr = ["value"], qr = { key: 0 }, Hr = /* @__PURE__ */ S({
2725
+ }), zr = ["value"], Kr = { key: 0 }, Jr = /* @__PURE__ */ S({
2690
2726
  __name: "DescriptorPresenceAbsence",
2691
2727
  props: {
2692
2728
  descriptor: {}
@@ -2720,13 +2756,13 @@ const xr = {
2720
2756
  "onUpdate:modelValue": a[0] || (a[0] = (d) => r.value = d)
2721
2757
  }, [
2722
2758
  a[1] || (a[1] = f("option", null, null, -1)),
2723
- (p(), y(L, null, M(t, (d, c) => f("option", {
2759
+ (p(), y(D, null, B(t, (d, c) => f("option", {
2724
2760
  key: c,
2725
2761
  value: d
2726
2762
  }, [
2727
- i.descriptor.status === k(le).Useless ? (p(), y("span", qr, "-")) : j("", !0),
2728
- D(" " + R(c) + " (" + R(o(d)) + ") ", 1)
2729
- ], 8, Vr)), 64))
2763
+ i.descriptor.status === k(le).Useless ? (p(), y("span", Kr, "-")) : j("", !0),
2764
+ L(" " + R(c) + " (" + R(o(d)) + ") ", 1)
2765
+ ], 8, zr)), 64))
2730
2766
  ], 512), [
2731
2767
  [ue, r.value]
2732
2768
  ])
@@ -2734,7 +2770,7 @@ const xr = {
2734
2770
  _: 1
2735
2771
  }, 8, ["descriptor"]));
2736
2772
  }
2737
- }), zr = ["value", "selected"], Kr = { key: 0 }, Jr = { key: 1 }, Wr = /* @__PURE__ */ S({
2773
+ }), Wr = ["value", "selected"], Xr = { key: 0 }, Qr = { key: 1 }, Gr = /* @__PURE__ */ S({
2738
2774
  __name: "DescriptorQualitative",
2739
2775
  props: {
2740
2776
  descriptor: {}
@@ -2759,21 +2795,21 @@ const xr = {
2759
2795
  onChange: s
2760
2796
  }, [
2761
2797
  i[0] || (i[0] = f("option", { value: "" }, null, -1)),
2762
- (p(!0), y(L, null, M(o.descriptor.characterStates, (a) => (p(), y("option", {
2798
+ (p(!0), y(D, null, B(o.descriptor.characterStates, (a) => (p(), y("option", {
2763
2799
  key: a.characterStateId,
2764
2800
  value: a.characterStateId,
2765
2801
  selected: r(a)
2766
2802
  }, [
2767
- r(a) ? (p(), y("span", Kr, ">")) : j("", !0),
2768
- a.status === k(le).Useless ? (p(), y("span", Jr, "-")) : j("", !0),
2769
- D(" " + R(a.name) + " (" + R(a.numberOfObjects) + ") ", 1)
2770
- ], 8, zr))), 128))
2803
+ r(a) ? (p(), y("span", Xr, ">")) : j("", !0),
2804
+ a.status === k(le).Useless ? (p(), y("span", Qr, "-")) : j("", !0),
2805
+ L(" " + R(a.name) + " (" + R(a.numberOfObjects) + ") ", 1)
2806
+ ], 8, Wr))), 128))
2771
2807
  ], 32)
2772
2808
  ]),
2773
2809
  _: 1
2774
2810
  }, 8, ["descriptor"]));
2775
2811
  }
2776
- }), Xr = /* @__PURE__ */ S({
2812
+ }), Yr = /* @__PURE__ */ S({
2777
2813
  __name: "DescriptorSample",
2778
2814
  props: {
2779
2815
  descriptor: {}
@@ -2793,7 +2829,7 @@ const xr = {
2793
2829
  descriptor: o.descriptor
2794
2830
  }, {
2795
2831
  title: w(() => [
2796
- D(R(o.descriptor.name) + " (" + R(o.descriptor.min) + "-" + R(o.descriptor.max) + " " + R(o.descriptor.defaultUnit) + ") ", 1)
2832
+ L(R(o.descriptor.name) + " (" + R(o.descriptor.min) + "-" + R(o.descriptor.max) + " " + R(o.descriptor.defaultUnit) + ") ", 1)
2797
2833
  ]),
2798
2834
  default: w(() => [
2799
2835
  q(f("input", {
@@ -2816,18 +2852,18 @@ const xr = {
2816
2852
  },
2817
2853
  setup(e) {
2818
2854
  const t = {
2819
- DescriptorContinuous: Mr,
2820
- DescriptorPresenceAbsence: Hr,
2821
- DescriptorQualitative: Wr,
2822
- DescriptorSample: Xr
2855
+ DescriptorContinuous: Hr,
2856
+ DescriptorPresenceAbsence: Jr,
2857
+ DescriptorQualitative: Gr,
2858
+ DescriptorSample: Yr
2823
2859
  }, n = (s) => {
2824
2860
  const r = s.replace("::", "");
2825
2861
  return t[r];
2826
2862
  };
2827
- return (s, r) => (p(), y(L, null, [
2863
+ return (s, r) => (p(), y(D, null, [
2828
2864
  f("h2", null, R(s.title), 1),
2829
2865
  f("ol", null, [
2830
- (p(!0), y(L, null, M(s.descriptors, (o) => (p(), y("li", {
2866
+ (p(!0), y(D, null, B(s.descriptors, (o) => (p(), y("li", {
2831
2867
  key: o.descriptorId
2832
2868
  }, [
2833
2869
  (p(), T(zt(n(o.type)), { descriptor: o }, null, 8, ["descriptor"]))
@@ -2835,30 +2871,30 @@ const xr = {
2835
2871
  ])
2836
2872
  ], 64));
2837
2873
  }
2838
- }), Qr = { key: 0 }, Gr = /* @__PURE__ */ S({
2874
+ }), Zr = { key: 0 }, eo = /* @__PURE__ */ S({
2839
2875
  __name: "FilterRowCheckbox",
2840
2876
  setup(e) {
2841
2877
  const t = P(), n = I({
2842
2878
  get: () => t.getRowFilter,
2843
2879
  set: (s) => t.$patch({ rowFilter: s })
2844
2880
  });
2845
- return (s, r) => k(t).rowIds.length ? (p(), y("label", Qr, [
2881
+ return (s, r) => k(t).rowIds.length ? (p(), y("label", Zr, [
2846
2882
  q(f("input", {
2847
2883
  "onUpdate:modelValue": r[0] || (r[0] = (o) => n.value = o),
2848
2884
  type: "checkbox"
2849
2885
  }, null, 512), [
2850
2886
  [se, n.value]
2851
2887
  ]),
2852
- r[1] || (r[1] = D(" Filter "))
2888
+ r[1] || (r[1] = L(" Filter "))
2853
2889
  ])) : j("", !0);
2854
2890
  }
2855
- }), Yr = /* @__PURE__ */ S({
2891
+ }), to = /* @__PURE__ */ S({
2856
2892
  __name: "PanelDescriptors",
2857
2893
  setup(e) {
2858
2894
  const t = J();
2859
2895
  return (n, s) => (p(), T(Ke, { class: "distinguish-panel-descriptors" }, {
2860
2896
  default: w(() => [
2861
- v(Gr),
2897
+ v(eo),
2862
2898
  k(t).getDescriptorsUsed.length ? (p(), T(De, {
2863
2899
  key: 0,
2864
2900
  descriptors: k(t).getDescriptorsUsed,
@@ -2878,7 +2914,7 @@ const xr = {
2878
2914
  _: 1
2879
2915
  }));
2880
2916
  }
2881
- }), Zr = { class: "distinguish-spinner-container" }, eo = { class: "distinguish-spinner-legend" }, to = ["innerHTML"], no = /* @__PURE__ */ S({
2917
+ }), no = { class: "distinguish-spinner-container" }, so = { class: "distinguish-spinner-legend" }, ro = ["innerHTML"], oo = /* @__PURE__ */ S({
2882
2918
  __name: "VSpinner",
2883
2919
  props: {
2884
2920
  legend: {
@@ -2889,11 +2925,11 @@ const xr = {
2889
2925
  setup(e) {
2890
2926
  return (t, n) => (p(), T(dt, { name: "fade" }, {
2891
2927
  default: w(() => [
2892
- f("div", Zr, [
2928
+ f("div", no, [
2893
2929
  f("div", null, [
2894
2930
  n[0] || (n[0] = f("div", { class: "distinguish-spinner" }, null, -1)),
2895
- f("div", eo, [
2896
- f("span", { innerHTML: e.legend }, null, 8, to),
2931
+ f("div", so, [
2932
+ f("span", { innerHTML: e.legend }, null, 8, ro),
2897
2933
  U(t.$slots, "default")
2898
2934
  ])
2899
2935
  ])
@@ -2902,36 +2938,42 @@ const xr = {
2902
2938
  _: 3
2903
2939
  }));
2904
2940
  }
2905
- }), so = { class: "distinguish-title" }, ro = { key: 0 }, oo = /* @__PURE__ */ S({
2906
- __name: "TitleMatrix",
2907
- setup(e) {
2908
- const t = J();
2909
- return (n, s) => (p(), y("h1", so, [
2910
- s[0] || (s[0] = D(" Interactive key ")),
2911
- k(t).getObservationMatrix ? (p(), y("span", ro, "| " + R(k(t).getObservationMatrix.name), 1)) : j("", !0)
2912
- ]));
2913
- }
2914
- }), io = ["title"], ao = /* @__PURE__ */ S({
2941
+ }), io = ["title", "innerHTML"], ao = /* @__PURE__ */ S({
2915
2942
  __name: "TitleMatrixCitation",
2916
2943
  setup(e) {
2917
2944
  const t = J(), n = I(() => {
2918
2945
  const s = t.getCitation;
2919
- return Object.values(s || {}).filter(Boolean).join(", ");
2946
+ return s == null ? void 0 : s.label;
2920
2947
  });
2921
- return (s, r) => (p(), y("span", {
2922
- class: "distinguish-title-citation",
2923
- title: n.value
2924
- }, R(n.value), 9, io));
2948
+ return (s, r) => (p(), y(D, null, [
2949
+ r[0] || (r[0] = L(" - ")),
2950
+ f("span", {
2951
+ class: "distinguish-title-citation",
2952
+ title: n.value,
2953
+ innerHTML: n.value
2954
+ }, null, 8, io)
2955
+ ], 64));
2925
2956
  }
2926
- }), lo = { class: "distinguish-title-section" }, co = /* @__PURE__ */ S({
2927
- __name: "TitleKey",
2957
+ }), lo = { class: "distinguish-title" }, co = {
2958
+ key: 0,
2959
+ class: "distinguish-observation-matrix-title"
2960
+ }, uo = /* @__PURE__ */ S({
2961
+ __name: "TitleMatrix",
2928
2962
  setup(e) {
2929
- return (t, n) => (p(), y("div", lo, [
2930
- v(oo),
2963
+ const t = J();
2964
+ return (n, s) => (p(), y("h1", lo, [
2965
+ k(t).getObservationMatrix ? (p(), y("span", co, R(k(t).getObservationMatrix.name), 1)) : j("", !0),
2931
2966
  v(ao)
2932
2967
  ]));
2933
2968
  }
2934
- }), uo = { class: "distinguish-app-container" }, po = /* @__PURE__ */ S({
2969
+ }), po = { class: "distinguish-title-section" }, fo = /* @__PURE__ */ S({
2970
+ __name: "TitleKey",
2971
+ setup(e) {
2972
+ return (t, n) => (p(), y("div", po, [
2973
+ v(uo)
2974
+ ]));
2975
+ }
2976
+ }), mo = { class: "distinguish-app-container" }, ho = /* @__PURE__ */ S({
2935
2977
  name: "Distinguish",
2936
2978
  __name: "App",
2937
2979
  props: {
@@ -2946,15 +2988,15 @@ const xr = {
2946
2988
  n.setAPIConfig(t.apiConfig), n.setObservationMatrixId(t.observationMatrixId), t.otuId && n.setOtuId(t.otuId), n.checkUpdate();
2947
2989
  })(), s.$subscribe((a) => {
2948
2990
  n.shouldUpdate && n.checkUpdate();
2949
- }), (a, d) => (p(), y("div", uo, [
2950
- v(co),
2951
- v(mr),
2952
- v(Bt, {
2991
+ }), (a, d) => (p(), y("div", mo, [
2992
+ v(fo),
2993
+ v(yr),
2994
+ v(Mt, {
2953
2995
  class: ve(o.value)
2954
2996
  }, {
2955
2997
  default: w(() => [
2956
- v(Yr),
2957
- v(kr, {
2998
+ v(to),
2999
+ v(Ir, {
2958
3000
  render: t.renderItem
2959
3001
  }, {
2960
3002
  "remaining-row-filter": w((c) => [
@@ -2965,7 +3007,7 @@ const xr = {
2965
3007
  ]),
2966
3008
  _: 3
2967
3009
  }, 8, ["render"]),
2968
- v(_r, {
3010
+ v(vr, {
2969
3011
  render: t.renderItem
2970
3012
  }, {
2971
3013
  default: w((c) => [
@@ -2976,31 +3018,31 @@ const xr = {
2976
3018
  ]),
2977
3019
  _: 3
2978
3020
  }, 8, ["class"]),
2979
- r.value ? (p(), T(no, {
3021
+ r.value ? (p(), T(oo, {
2980
3022
  key: 0,
2981
3023
  legend: "Loading interactive key..."
2982
3024
  })) : j("", !0)
2983
3025
  ]));
2984
3026
  }
2985
3027
  });
2986
- function fo(e) {
3028
+ function go(e) {
2987
3029
  const t = e || '[data-interactive-key="true"]';
2988
3030
  return [...document.querySelectorAll(t)].map(
2989
- (r) => yo(r, go(r))
3031
+ (r) => wo(r, _o(r))
2990
3032
  );
2991
3033
  }
2992
- function mo() {
2993
- fo();
3034
+ function yo() {
3035
+ go();
2994
3036
  }
2995
- function ho(e) {
3037
+ function bo(e) {
2996
3038
  return e ? e.split(",").map((t) => Number(t.trim())).filter((t) => !isNaN(t)) : [];
2997
3039
  }
2998
- function go(e) {
3040
+ function _o(e) {
2999
3041
  return {
3000
3042
  observationMatrixId: Number(
3001
3043
  e.getAttribute("data-observation-matrix-id")
3002
3044
  ),
3003
- otuId: ho(e.getAttribute("data-otu-id")),
3045
+ otuId: bo(e.getAttribute("data-otu-id")),
3004
3046
  apiConfig: {
3005
3047
  baseURL: e.getAttribute("data-base-url") || "",
3006
3048
  projectToken: e.getAttribute("data-project-token") || void 0,
@@ -3010,21 +3052,21 @@ function go(e) {
3010
3052
  }
3011
3053
  };
3012
3054
  }
3013
- function yo(e, t) {
3055
+ function wo(e, t) {
3014
3056
  const { apiConfig: n, observationMatrixId: s } = t;
3015
3057
  if (!s)
3016
3058
  throw "Missing observation matrix ID";
3017
3059
  if (!n || !n.projectToken && !n.csrfToken && !(n.projectId && n.userToken))
3018
3060
  throw "Missing API configuration";
3019
- const r = Kt(po, {
3061
+ const r = Kt(ho, {
3020
3062
  observationMatrixId: s,
3021
3063
  apiConfig: n
3022
3064
  });
3023
3065
  return r.use(Jt()), r.mount(e), r;
3024
3066
  }
3025
- typeof window < "u" && window.addEventListener("DOMContentLoaded", mo);
3067
+ typeof window < "u" && window.addEventListener("DOMContentLoaded", yo);
3026
3068
  export {
3027
- po as VueInteractiveKey,
3028
- yo as createInteractiveKey,
3029
- fo as discoverInteractiveKey
3069
+ ho as VueInteractiveKey,
3070
+ wo as createInteractiveKey,
3071
+ go as discoverInteractiveKey
3030
3072
  };