col-browser 2.6.3 → 2.6.4

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,65 +1,84 @@
1
- var it = Object.defineProperty;
2
- var ct = (e, n, r) => n in e ? it(e, n, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[n] = r;
3
- var X = (e, n, r) => ct(e, typeof n != "symbol" ? n + "" : n, r);
4
- import { j as s } from "./jsx-runtime-BzflLqGi.js";
5
- import * as Oe from "react";
6
- import lt, { useState as k, useRef as C, useMemo as ae, useEffect as P } from "react";
7
- import { Spin as dt, Popover as ut, Radio as fe } from "antd";
8
- import { isArray as Ee, get as H, keyBy as pt, startCase as ft } from "lodash-es";
9
- import { c as re, p as ht } from "./router-CssZk5qZ.js";
10
- import { c as R } from "./config--bs_09I6.js";
11
- import { E as mt, M as gt } from "./ErrorMsg-D5nALHuK.js";
12
- import { I as yt } from "./AntdIcon-B1nMlqyh.js";
13
- import { P as bt } from "./PresentationItem-C4yZ555-.js";
1
+ var ct = Object.defineProperty;
2
+ var lt = (e, n, s) => n in e ? ct(e, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[n] = s;
3
+ var J = (e, n, s) => lt(e, typeof n != "symbol" ? n + "" : n, s);
4
+ import { j as r } from "./jsx-runtime-BzflLqGi.js";
5
+ import * as De from "react";
6
+ import dt, { useState as k, useRef as R, useMemo as ae, useEffect as A } from "react";
7
+ import { Spin as ut, Popover as pt, Radio as fe } from "antd";
8
+ import { isArray as Ee, get as H, keyBy as ft, startCase as ht } from "lodash-es";
9
+ import { c as re, p as mt } from "./router-CssZk5qZ.js";
10
+ import { c as C } from "./config--bs_09I6.js";
11
+ import { E as gt, M as yt } from "./ErrorMsg-D5nALHuK.js";
12
+ import { R as bt } from "./LinkOutlined-2IkQWTV7.js";
13
+ import { I as xt } from "./AntdIcon-B1nMlqyh.js";
14
+ import { P as vt } from "./PresentationItem-C4yZ555-.js";
14
15
  import V from "maplibre-gl";
15
16
  import "maplibre-gl/dist/maplibre-gl.css";
16
- import { r as xt, w as vt } from "./storage-BgdCo9fV.js";
17
- var St = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z" } }] }, name: "book", theme: "outlined" };
17
+ import { r as jt, w as St } from "./storage-BgdCo9fV.js";
18
+ var It = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z" } }] }, name: "book", theme: "outlined" };
18
19
  function ye() {
19
20
  return ye = Object.assign ? Object.assign.bind() : function(e) {
20
21
  for (var n = 1; n < arguments.length; n++) {
21
- var r = arguments[n];
22
- for (var a in r)
23
- Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
22
+ var s = arguments[n];
23
+ for (var a in s)
24
+ Object.prototype.hasOwnProperty.call(s, a) && (e[a] = s[a]);
24
25
  }
25
26
  return e;
26
27
  }, ye.apply(this, arguments);
27
28
  }
28
- const jt = (e, n) => /* @__PURE__ */ Oe.createElement(yt, ye({}, e, {
29
+ const wt = (e, n) => /* @__PURE__ */ De.createElement(xt, ye({}, e, {
29
30
  ref: n,
30
- icon: St
31
- })), De = /* @__PURE__ */ Oe.forwardRef(jt);
32
- process.env.NODE_ENV !== "production" && (De.displayName = "BookOutlined");
33
- class It extends lt.Component {
34
- constructor(r) {
35
- super(r);
36
- X(this, "getData", () => {
37
- const { referenceId: r, datasetKey: a, references: o } = this.props;
38
- if (r) {
39
- const c = Ee(r) ? r : [r], u = [];
31
+ icon: It
32
+ })), ze = /* @__PURE__ */ De.forwardRef(wt);
33
+ process.env.NODE_ENV !== "production" && (ze.displayName = "BookOutlined");
34
+ const Lt = /^(doi:|https?:\/\/(dx\.)?doi\.org\/)/i, kt = (e) => {
35
+ const n = e == null ? void 0 : e.csl;
36
+ if (n != null && n.URL) return n.URL;
37
+ if (n != null && n.DOI) return `https://doi.org/${n.DOI.trim().replace(Lt, "")}`;
38
+ }, Fe = ({ reference: e }) => {
39
+ var s;
40
+ const n = kt(e);
41
+ return !n || (s = e.citation) != null && s.includes(n) ? null : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
42
+ " ",
43
+ /* @__PURE__ */ r.jsx("a", { href: n, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ r.jsx(bt, {}) })
44
+ ] });
45
+ };
46
+ class Rt extends dt.Component {
47
+ constructor(s) {
48
+ super(s);
49
+ J(this, "getData", () => {
50
+ const { referenceId: s, datasetKey: a, references: o } = this.props;
51
+ if (s) {
52
+ const c = Ee(s) ? s : [s], u = [];
40
53
  this.setState({ loading: !0 }), Promise.allSettled(
41
54
  c.map(
42
55
  (f) => H(o, f) ? Promise.resolve(u.push(o[f])) : re(
43
- `${R.dataApi}dataset/${a}/reference/${f}`
56
+ `${C.dataApi}dataset/${a}/reference/${f}`
44
57
  ).then((d) => u.push(d.data)).catch((d) => this.setState({ error: d }))
45
58
  )
46
59
  ).then(() => this.setState({ reference: u, loading: !1 }));
47
60
  }
48
61
  });
49
- X(this, "getContent", () => {
50
- const { error: r, reference: a, loading: o } = this.state;
51
- return o ? /* @__PURE__ */ s.jsx(dt, {}) : r ? /* @__PURE__ */ s.jsx(mt, { error: r }) : a.length === 1 ? a[0].citation : /* @__PURE__ */ s.jsx("ul", { children: a.map((c) => /* @__PURE__ */ s.jsx("li", { children: c.citation }, c.id)) });
62
+ J(this, "getContent", () => {
63
+ const { error: s, reference: a, loading: o } = this.state;
64
+ return o ? /* @__PURE__ */ r.jsx(ut, {}) : s ? /* @__PURE__ */ r.jsx(gt, { error: s }) : a.length === 1 ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
65
+ a[0].citation,
66
+ /* @__PURE__ */ r.jsx(Fe, { reference: a[0] })
67
+ ] }) : /* @__PURE__ */ r.jsx("ul", { children: a.map((c) => /* @__PURE__ */ r.jsxs("li", { children: [
68
+ c.citation,
69
+ /* @__PURE__ */ r.jsx(Fe, { reference: c })
70
+ ] }, c.id)) });
52
71
  });
53
- X(this, "scrollToReference", (r, a) => {
72
+ J(this, "scrollToReference", (s, a) => {
54
73
  const o = document.getElementById(`col-reference-${a}`);
55
- o && (r.preventDefault(), o.scrollIntoView({ behavior: "smooth", block: "start" }));
74
+ o && (s.preventDefault(), o.scrollIntoView({ behavior: "smooth", block: "start" }));
56
75
  });
57
- X(this, "render", () => {
58
- const { referenceId: r, referenceIndexMap: a, trigger: o } = this.props, c = this.props.maxInline || 4, u = Ee(r) ? r : [r];
76
+ J(this, "render", () => {
77
+ const { referenceId: s, referenceIndexMap: a, trigger: o } = this.props, c = this.props.maxInline || 4, u = Ee(s) ? s : [s];
59
78
  let f = a && H(a, u[0]) ? (() => {
60
79
  const d = u.slice(0, c), h = u.length - d.length;
61
80
  return [
62
- ...d.map((p) => /* @__PURE__ */ s.jsx(
81
+ ...d.map((p) => /* @__PURE__ */ r.jsx(
63
82
  "a",
64
83
  {
65
84
  className: "col-reference-link",
@@ -69,17 +88,17 @@ class It extends lt.Component {
69
88
  },
70
89
  p
71
90
  )),
72
- h > 0 ? /* @__PURE__ */ s.jsx("span", { className: "col-reference-link", children: ` +${h}` }, "overflow") : null
91
+ h > 0 ? /* @__PURE__ */ r.jsx("span", { className: "col-reference-link", children: ` +${h}` }, "overflow") : null
73
92
  ];
74
- })() : /* @__PURE__ */ s.jsx(De, { style: { cursor: "pointer" } });
75
- return r ? /* @__PURE__ */ s.jsx("div", { id: `reference_${r}`, style: this.props.style, children: /* @__PURE__ */ s.jsx(
76
- ut,
93
+ })() : /* @__PURE__ */ r.jsx(ze, { style: { cursor: "pointer" } });
94
+ return s ? /* @__PURE__ */ r.jsx("div", { id: `reference_${s}`, style: this.props.style, children: /* @__PURE__ */ r.jsx(
95
+ pt,
77
96
  {
78
- getPopupContainer: () => document.getElementById(`reference_${r}`),
97
+ getPopupContainer: () => document.getElementById(`reference_${s}`),
79
98
  placement: this.props.placement || "left",
80
99
  title: "Reference",
81
100
  onOpenChange: (d) => d && this.getData(),
82
- content: /* @__PURE__ */ s.jsx(
101
+ content: /* @__PURE__ */ r.jsx(
83
102
  "div",
84
103
  {
85
104
  style: {
@@ -93,7 +112,7 @@ class It extends lt.Component {
93
112
  trigger: o || "hover",
94
113
  children: f
95
114
  }
96
- ) }, `reference_${r}`) : "";
115
+ ) }, `reference_${s}`) : "";
97
116
  });
98
117
  this.state = {
99
118
  reference: [],
@@ -109,16 +128,16 @@ const ce = [
109
128
  "form",
110
129
  "subform",
111
130
  "infraspecific name"
112
- ], ze = (e, n) => {
113
- const r = n.indexOf(e);
114
- return r === -1 ? [] : ce.filter((a) => n.indexOf(a) > r);
115
- }, wt = 16, Lt = (e) => {
116
- var n, r;
117
- return ((n = e == null ? void 0 : e.area) == null ? void 0 : n.gazetteer) !== "text" && !!((r = e == null ? void 0 : e.area) != null && r.globalId);
118
- }, kt = async (e, n, r) => {
131
+ ], He = (e, n) => {
132
+ const s = n.indexOf(e);
133
+ return s === -1 ? [] : ce.filter((a) => n.indexOf(a) > s);
134
+ }, Ct = 16, Et = (e) => {
135
+ var n, s;
136
+ return ((n = e == null ? void 0 : e.area) == null ? void 0 : n.gazetteer) !== "text" && !!((s = e == null ? void 0 : e.area) != null && s.globalId);
137
+ }, Ft = async (e, n, s) => {
119
138
  const a = new Array(e.length);
120
139
  let o = 0;
121
- const c = Array.from({ length: Math.min(r, e.length) }, async () => {
140
+ const c = Array.from({ length: Math.min(s, e.length) }, async () => {
122
141
  for (; ; ) {
123
142
  const u = o++;
124
143
  if (u >= e.length) return;
@@ -126,14 +145,14 @@ const ce = [
126
145
  }
127
146
  });
128
147
  return await Promise.all(c), a;
129
- }, Ct = async (e, n, r) => {
148
+ }, Bt = async (e, n, s) => {
130
149
  var f;
131
- if (r.length === 0) return [];
150
+ if (s.length === 0) return [];
132
151
  const a = new URLSearchParams();
133
- a.append("TAXON_ID", n), r.forEach((d) => a.append("rank", d)), ["accepted", "provisionally accepted"].forEach(
152
+ a.append("TAXON_ID", n), s.forEach((d) => a.append("rank", d)), ["accepted", "provisionally accepted"].forEach(
134
153
  (d) => a.append("status", d)
135
154
  ), a.append("limit", "1000");
136
- const o = `${R.dataApi}dataset/${e}/nameusage/search?${a}`, c = await re(o);
155
+ const o = `${C.dataApi}dataset/${e}/nameusage/search?${a}`, c = await re(o);
137
156
  return (((f = c == null ? void 0 : c.data) == null ? void 0 : f.result) || []).filter((d) => {
138
157
  var h;
139
158
  return (h = d == null ? void 0 : d.usage) == null ? void 0 : h.id;
@@ -146,33 +165,33 @@ const ce = [
146
165
  parentId: (L = d.usage) == null ? void 0 : L.parentId
147
166
  };
148
167
  });
149
- }, Rt = async (e, n) => {
150
- const r = `${R.dataApi}dataset/${e}/taxon/${encodeURIComponent(n)}/distribution`;
168
+ }, Mt = async (e, n) => {
169
+ const s = `${C.dataApi}dataset/${e}/taxon/${encodeURIComponent(n)}/distribution`;
151
170
  try {
152
- const a = await re(r);
171
+ const a = await re(s);
153
172
  return Array.isArray(a == null ? void 0 : a.data) ? a.data : [];
154
173
  } catch {
155
174
  return [];
156
175
  }
157
- }, Et = async ({ datasetKey: e, focalTaxon: n, rankOrder: r }) => {
176
+ }, $t = async ({ datasetKey: e, focalTaxon: n, rankOrder: s }) => {
158
177
  var d;
159
- const a = ze((d = n == null ? void 0 : n.name) == null ? void 0 : d.rank, r);
178
+ const a = He((d = n == null ? void 0 : n.name) == null ? void 0 : d.rank, s);
160
179
  let o = !1, c = [];
161
180
  try {
162
- c = await Ct(e, n.id, a);
181
+ c = await Bt(e, n.id, a);
163
182
  } catch {
164
183
  return o = !0, { taxa: [], descendantsFailed: o };
165
184
  }
166
- const u = await kt(
185
+ const u = await Ft(
167
186
  c,
168
- (h) => Rt(e, h.id),
169
- wt
187
+ (h) => Mt(e, h.id),
188
+ Ct
170
189
  );
171
190
  return { taxa: c.map((h, p) => {
172
191
  const y = u[p] || [];
173
- return { ...h, distributions: y, mappable: y.filter(Lt) };
192
+ return { ...h, distributions: y, mappable: y.filter(Et) };
174
193
  }), descendantsFailed: o };
175
- }, Fe = [
194
+ }, Be = [
176
195
  "#E58606",
177
196
  "#5D69B1",
178
197
  "#52BCA3",
@@ -185,29 +204,29 @@ const ce = [
185
204
  "#ED645A",
186
205
  "#CC3A8E",
187
206
  "#A5AA99"
188
- ], Be = (e, n) => {
189
- const r = n.indexOf(e);
190
- return r === -1 ? n.length : r;
191
- }, Ft = (e, n) => {
192
- const r = [...e].sort((o, c) => {
193
- const u = Be(o.rank, n), f = Be(c.rank, n);
207
+ ], Me = (e, n) => {
208
+ const s = n.indexOf(e);
209
+ return s === -1 ? n.length : s;
210
+ }, Gt = (e, n) => {
211
+ const s = [...e].sort((o, c) => {
212
+ const u = Me(o.rank, n), f = Me(c.rank, n);
194
213
  return u !== f ? u - f : o.scientificName.localeCompare(c.scientificName);
195
214
  }), a = {};
196
- return r.forEach((o, c) => {
197
- a[o.id] = Fe[c % Fe.length];
215
+ return s.forEach((o, c) => {
216
+ a[o.id] = Be[c % Be.length];
198
217
  }), a;
199
- }, Bt = (e) => e ?? R.basemapStyle, Mt = /(^|\.)cartocdn\.com$/i, Gt = (e = R.cartoKey) => {
218
+ }, Nt = (e) => e ?? C.basemapStyle, _t = /(^|\.)cartocdn\.com$/i, Pt = (e = C.cartoKey) => {
200
219
  if (e)
201
220
  return (n) => {
202
- let r;
221
+ let s;
203
222
  try {
204
- r = new URL(n);
223
+ s = new URL(n);
205
224
  } catch {
206
225
  return { url: n };
207
226
  }
208
- return !Mt.test(r.hostname) || r.searchParams.has("key") ? { url: n } : (r.searchParams.set("key", e), { url: r.toString() });
227
+ return !_t.test(s.hostname) || s.searchParams.has("key") ? { url: n } : (s.searchParams.set("key", e), { url: s.toString() });
209
228
  };
210
- }, Nt = {
229
+ }, At = {
211
230
  position: "absolute",
212
231
  bottom: 8,
213
232
  left: 8,
@@ -219,21 +238,21 @@ const ce = [
219
238
  fontSize: 12,
220
239
  lineHeight: 1.5,
221
240
  maxWidth: 260
222
- }, $t = {
241
+ }, Ot = {
223
242
  maxHeight: 240,
224
243
  overflowY: "auto"
225
- }, He = {
244
+ }, Ve = {
226
245
  fontWeight: 600,
227
246
  marginTop: 4
228
- }, _t = {
229
- ...He,
247
+ }, Dt = {
248
+ ...Ve,
230
249
  marginTop: 0
231
- }, Ve = {
250
+ }, Ue = {
232
251
  display: "flex",
233
252
  alignItems: "center",
234
253
  gap: 6,
235
254
  paddingLeft: 4
236
- }, At = (e) => ({
255
+ }, zt = (e) => ({
237
256
  display: "inline-block",
238
257
  width: 12,
239
258
  height: 12,
@@ -241,27 +260,27 @@ const ce = [
241
260
  border: "1px solid rgba(0,0,0,0.15)",
242
261
  borderRadius: 2,
243
262
  flex: "0 0 auto"
244
- }), Pt = {
263
+ }), Ht = {
245
264
  marginTop: 6,
246
265
  cursor: "pointer",
247
266
  color: "#1890ff",
248
267
  fontSize: 11
249
- }, Ot = {
268
+ }, Vt = {
250
269
  marginTop: 4,
251
270
  borderTop: "1px solid #eee",
252
271
  paddingTop: 4,
253
272
  color: "#666"
254
- }, Ue = {
273
+ }, Ke = {
255
274
  fontWeight: 600,
256
275
  marginTop: 4
257
- }, Dt = {
258
- ...Ue,
276
+ }, Ut = {
277
+ ...Ke,
259
278
  marginTop: 0
260
- }, zt = {
279
+ }, Kt = {
261
280
  fontStyle: "italic",
262
281
  paddingLeft: 4
263
- }, Me = (e) => e.reduce((n, r) => n + r.taxa.length, 0), Ht = () => /* @__PURE__ */ s.jsxs("div", { style: Ve, children: [
264
- /* @__PURE__ */ s.jsx("svg", { width: "12", height: "12", viewBox: "0 0 12 12", "aria-hidden": "true", children: /* @__PURE__ */ s.jsx(
282
+ }, $e = (e) => e.reduce((n, s) => n + s.taxa.length, 0), Wt = () => /* @__PURE__ */ r.jsxs("div", { style: Ue, children: [
283
+ /* @__PURE__ */ r.jsx("svg", { width: "12", height: "12", viewBox: "0 0 12 12", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(
265
284
  "polygon",
266
285
  {
267
286
  points: "3,1 9,1 11,6 9,11 3,11 1,6",
@@ -270,25 +289,25 @@ const ce = [
270
289
  strokeWidth: "0.75"
271
290
  }
272
291
  ) }),
273
- /* @__PURE__ */ s.jsx("span", { children: "GBIF occurrences" })
274
- ] }), Vt = ({ visibleGroups: e, unmappableGroups: n, showGbif: r }) => {
275
- const [a, o] = k(!1), c = Me(e), u = Me(n);
276
- return c === 0 && u === 0 && !r ? null : /* @__PURE__ */ s.jsxs("div", { style: Nt, children: [
277
- /* @__PURE__ */ s.jsxs("div", { style: $t, children: [
278
- e.map((f, d) => /* @__PURE__ */ s.jsxs("div", { children: [
279
- /* @__PURE__ */ s.jsx("div", { style: d === 0 ? _t : He, children: f.label }),
280
- f.taxa.map((h) => /* @__PURE__ */ s.jsxs("div", { style: Ve, children: [
281
- /* @__PURE__ */ s.jsx("span", { style: At(h.color) }),
282
- /* @__PURE__ */ s.jsx("span", { style: { fontStyle: "italic" }, children: h.displayName || h.scientificName })
292
+ /* @__PURE__ */ r.jsx("span", { children: "GBIF occurrences" })
293
+ ] }), Tt = ({ visibleGroups: e, unmappableGroups: n, showGbif: s }) => {
294
+ const [a, o] = k(!1), c = $e(e), u = $e(n);
295
+ return c === 0 && u === 0 && !s ? null : /* @__PURE__ */ r.jsxs("div", { style: At, children: [
296
+ /* @__PURE__ */ r.jsxs("div", { style: Ot, children: [
297
+ e.map((f, d) => /* @__PURE__ */ r.jsxs("div", { children: [
298
+ /* @__PURE__ */ r.jsx("div", { style: d === 0 ? Dt : Ve, children: f.label }),
299
+ f.taxa.map((h) => /* @__PURE__ */ r.jsxs("div", { style: Ue, children: [
300
+ /* @__PURE__ */ r.jsx("span", { style: zt(h.color) }),
301
+ /* @__PURE__ */ r.jsx("span", { style: { fontStyle: "italic" }, children: h.displayName || h.scientificName })
283
302
  ] }, h.id))
284
303
  ] }, f.rank)),
285
- r && /* @__PURE__ */ s.jsx(Ht, {})
304
+ s && /* @__PURE__ */ r.jsx(Wt, {})
286
305
  ] }),
287
- u > 0 && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
288
- /* @__PURE__ */ s.jsxs(
306
+ u > 0 && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
307
+ /* @__PURE__ */ r.jsxs(
289
308
  "div",
290
309
  {
291
- style: Pt,
310
+ style: Ht,
292
311
  onClick: () => o((f) => !f),
293
312
  children: [
294
313
  a ? "− Hide" : "+",
@@ -298,26 +317,26 @@ const ce = [
298
317
  ]
299
318
  }
300
319
  ),
301
- a && /* @__PURE__ */ s.jsx("div", { style: Ot, children: n.map((f, d) => /* @__PURE__ */ s.jsxs("div", { children: [
302
- /* @__PURE__ */ s.jsx(
320
+ a && /* @__PURE__ */ r.jsx("div", { style: Vt, children: n.map((f, d) => /* @__PURE__ */ r.jsxs("div", { children: [
321
+ /* @__PURE__ */ r.jsx(
303
322
  "div",
304
323
  {
305
- style: d === 0 ? Dt : Ue,
324
+ style: d === 0 ? Ut : Ke,
306
325
  children: f.label
307
326
  }
308
327
  ),
309
- f.taxa.map((h) => /* @__PURE__ */ s.jsx("div", { style: zt, children: h.displayName || h.scientificName }, h.id))
328
+ f.taxa.map((h) => /* @__PURE__ */ r.jsx("div", { style: Kt, children: h.displayName || h.scientificName }, h.id))
310
329
  ] }, f.rank)) })
311
330
  ] })
312
331
  ] });
313
- }, Ut = [
332
+ }, qt = [
314
333
  "establishmentMeans",
315
334
  "degreeOfEstablishment",
316
335
  "pathway",
317
336
  "threatStatus",
318
337
  "year",
319
338
  "lifeStage"
320
- ], Ke = [
339
+ ], We = [
321
340
  { key: "nativeendemic", label: "Native endemic", color: "#0F8554" },
322
341
  { key: "native", label: "Native", color: "#87C55F" },
323
342
  { key: "nativereintroduced", label: "Native reintroduced", color: "#C9DB74" },
@@ -329,49 +348,49 @@ const ce = [
329
348
  },
330
349
  { key: "vagrant", label: "Vagrant", color: "#F6CF71" },
331
350
  { key: "uncertain", label: "Uncertain", color: "#8BE0A4" }
332
- ], We = Object.fromEntries(
333
- Ke.map((e) => [e.key, e.color])
334
- ), le = "#66C5CC", Kt = (e) => String(e || "").toLowerCase().replace(/[^a-z]/g, ""), Te = (e) => {
351
+ ], Te = Object.fromEntries(
352
+ We.map((e) => [e.key, e.color])
353
+ ), le = "#66C5CC", Yt = (e) => String(e || "").toLowerCase().replace(/[^a-z]/g, ""), qe = (e) => {
335
354
  const n = e == null ? void 0 : e.establishmentMeans;
336
355
  if (n == null || n === "") return null;
337
- const r = Kt(n);
338
- return We[r] ? r : "uncertain";
339
- }, Wt = (e) => {
340
- const n = Te(e);
341
- return n == null ? le : We[n];
342
- }, qe = "gbif-visible", Tt = (e) => xt(qe, e), Ge = (e) => vt(qe, e), qt = "/v2/map/occurrence/density/{z}/{x}/{y}@1x.png?srs=EPSG%3A3857&style=iNaturalist.poly&bin=hex&hexPerTile=64&hasCoordinate=true&hasGeospatialIssue=false&occurrenceStatus=PRESENT&checklistKey={checklistKey}&taxonKey={taxonKey}", Q = "col-focal-distributions", T = "col-focal-fill", he = "col-focal-line", ie = "col-gbif-occurrences", A = "col-gbif-occurrences", me = (e) => `col-descendant-${e}`, ee = (e) => `col-descendant-fill-${e}`, te = (e) => `col-descendant-line-${e}`, ge = /* @__PURE__ */ new Map(), Ne = (e, n) => {
343
- const r = `${e}:${n}`;
344
- if (ge.has(r)) return ge.get(r);
345
- const a = `${R.dataApi}vocab/area/${r}`, o = re(a, {
356
+ const s = Yt(n);
357
+ return Te[s] ? s : "uncertain";
358
+ }, Xt = (e) => {
359
+ const n = qe(e);
360
+ return n == null ? le : Te[n];
361
+ }, Ye = "gbif-visible", Zt = (e) => jt(Ye, e), Ge = (e) => St(Ye, e), Jt = "/v2/map/occurrence/density/{z}/{x}/{y}@1x.png?srs=EPSG%3A3857&style=iNaturalist.poly&bin=hex&hexPerTile=64&hasCoordinate=true&hasGeospatialIssue=false&occurrenceStatus=PRESENT&checklistKey={checklistKey}&taxonKey={taxonKey}", Q = "col-focal-distributions", T = "col-focal-fill", he = "col-focal-line", ie = "col-gbif-occurrences", P = "col-gbif-occurrences", me = (e) => `col-descendant-${e}`, ee = (e) => `col-descendant-fill-${e}`, te = (e) => `col-descendant-line-${e}`, ge = /* @__PURE__ */ new Map(), Ne = (e, n) => {
362
+ const s = `${e}:${n}`;
363
+ if (ge.has(s)) return ge.get(s);
364
+ const a = `${C.dataApi}vocab/area/${s}`, o = re(a, {
346
365
  headers: { Accept: "application/geo+json" }
347
366
  }).then(
348
367
  (c) => c.data,
349
368
  () => null
350
369
  );
351
- return ge.set(r, o), o;
352
- }, ne = (e) => String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;"), Ye = (e) => {
370
+ return ge.set(s, o), o;
371
+ }, ne = (e) => String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;"), Xe = (e) => {
353
372
  var a, o;
354
- const n = ((a = e == null ? void 0 : e.area) == null ? void 0 : a.name) || ((o = e == null ? void 0 : e.area) == null ? void 0 : o.globalId) || "", r = Ut.map((c) => [c, e == null ? void 0 : e[c]]).filter(([, c]) => c != null && c !== "").map(
373
+ const n = ((a = e == null ? void 0 : e.area) == null ? void 0 : a.name) || ((o = e == null ? void 0 : e.area) == null ? void 0 : o.globalId) || "", s = qt.map((c) => [c, e == null ? void 0 : e[c]]).filter(([, c]) => c != null && c !== "").map(
355
374
  ([c, u]) => `<div><strong>${ne(c)}:</strong> ${ne(u)}</div>`
356
375
  ).join("");
357
376
  return `<div style="min-width:180px"><div style="font-weight:600;margin-bottom:4px">${ne(
358
377
  n
359
- )}</div>${r}</div>`;
360
- }, Yt = (e, n) => `<div style="font-weight:600;font-style:italic;margin-bottom:4px">${ne(
378
+ )}</div>${s}</div>`;
379
+ }, Qt = (e, n) => `<div style="font-weight:600;font-style:italic;margin-bottom:4px">${ne(
361
380
  e.scientificName
362
- )}</div><div style="color:#888;margin-bottom:4px">${ne(e.rank || "")}</div>` + Ye(n), Zt = {
381
+ )}</div><div style="color:#888;margin-bottom:4px">${ne(e.rank || "")}</div>` + Xe(n), en = {
363
382
  subspecies: "subspecies",
364
383
  variety: "varieties",
365
384
  subvariety: "subvarieties",
366
385
  form: "forms",
367
386
  subform: "subforms",
368
387
  "infraspecific name": "infraspecific names"
369
- }, $e = (e) => Zt[e] || e, Ze = (e) => {
388
+ }, _e = (e) => en[e] || e, Ze = (e) => {
370
389
  if (!e) return "";
371
390
  const n = e.trim().split(/\s+/);
372
391
  return n[n.length - 1];
373
- }, Jt = () => /* @__PURE__ */ s.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6 }, children: [
374
- /* @__PURE__ */ s.jsx("svg", { width: "12", height: "12", viewBox: "0 0 12 12", "aria-hidden": "true", children: /* @__PURE__ */ s.jsx(
392
+ }, tn = () => /* @__PURE__ */ r.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6 }, children: [
393
+ /* @__PURE__ */ r.jsx("svg", { width: "12", height: "12", viewBox: "0 0 12 12", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(
375
394
  "polygon",
376
395
  {
377
396
  points: "3,1 9,1 11,6 9,11 3,11 1,6",
@@ -380,14 +399,14 @@ const ce = [
380
399
  strokeWidth: "0.75"
381
400
  }
382
401
  ) }),
383
- /* @__PURE__ */ s.jsx("span", { children: "GBIF occurrences" })
384
- ] }), Xt = (e) => {
402
+ /* @__PURE__ */ r.jsx("span", { children: "GBIF occurrences" })
403
+ ] }), nn = (e) => {
385
404
  var u;
386
- let n = 1 / 0, r = 1 / 0, a = -1 / 0, o = -1 / 0;
405
+ let n = 1 / 0, s = 1 / 0, a = -1 / 0, o = -1 / 0;
387
406
  const c = (f) => {
388
407
  if (typeof f[0] == "number") {
389
408
  const [d, h] = f;
390
- d < n && (n = d), d > a && (a = d), h < r && (r = h), h > o && (o = h);
409
+ d < n && (n = d), d > a && (a = d), h < s && (s = h), h > o && (o = h);
391
410
  } else
392
411
  for (let d = 0; d < f.length; d++) c(f[d]);
393
412
  };
@@ -396,16 +415,16 @@ const ce = [
396
415
  d != null && d.coordinates && c(d.coordinates);
397
416
  }
398
417
  return n === 1 / 0 ? null : [
399
- [n, r],
418
+ [n, s],
400
419
  [a, o]
401
420
  ];
402
- }, _e = (e) => e ? e.type === "FeatureCollection" ? e.features || [] : [e] : [], Ae = () => {
421
+ }, Pe = (e) => e ? e.type === "FeatureCollection" ? e.features || [] : [e] : [], Ae = () => {
403
422
  var e;
404
423
  return typeof ((e = V) == null ? void 0 : e.supported) == "function" ? V.supported() : typeof WebGLRenderingContext < "u";
405
- }, Qt = ({
424
+ }, rn = ({
406
425
  records: e,
407
426
  onUnmappable: n,
408
- datasetKey: r,
427
+ datasetKey: s,
409
428
  focalTaxon: a,
410
429
  rankOrder: o,
411
430
  gbifChecklistKey: c,
@@ -417,28 +436,28 @@ const ce = [
417
436
  // `configure({ basemapStyle })` value. Changing it rebuilds the map.
418
437
  basemapStyle: f
419
438
  }) => {
420
- var Re;
421
- const d = C(null), h = C(null), p = C(null), y = C(null), M = C(/* @__PURE__ */ new Map()), E = C(/* @__PURE__ */ new Map()), L = C(/* @__PURE__ */ new Map()), O = C(!1), G = C(!1), N = C(/* @__PURE__ */ new Set()), [S, F] = k(null), [D, v] = k(!1), [x, $] = k({
439
+ var Ce;
440
+ const d = R(null), h = R(null), p = R(null), y = R(null), M = R(/* @__PURE__ */ new Map()), E = R(/* @__PURE__ */ new Map()), L = R(/* @__PURE__ */ new Map()), O = R(!1), $ = R(!1), G = R(/* @__PURE__ */ new Set()), [j, F] = k(null), [D, v] = k(!1), [x, N] = k({
422
441
  status: "idle",
423
442
  // idle | loading | ready | empty | error
424
443
  taxa: []
425
444
  }), [U, q] = k(!0), se = !!c && (!e || e.length === 0), [I, z] = k(
426
- () => Tt(!0)
427
- ), [_, be] = k(/* @__PURE__ */ new Set()), [Je, xe] = k(!1), de = C(!1), Xe = () => {
445
+ () => Zt(!0)
446
+ ), [_, be] = k(/* @__PURE__ */ new Set()), [Je, xe] = k(!1), de = R(!1), Qe = () => {
428
447
  z((t) => {
429
448
  const l = !t;
430
449
  return Ge(l), l;
431
450
  });
432
451
  }, ve = () => {
433
452
  z(!0), Ge(!0);
434
- }, Se = ae(() => {
453
+ }, je = ae(() => {
435
454
  if (!(e != null && e.length)) return [];
436
455
  const t = /* @__PURE__ */ new Set();
437
456
  return e.forEach((l) => {
438
- const i = Te(l);
457
+ const i = qe(l);
439
458
  i != null && t.add(i);
440
- }), Ke.filter((l) => t.has(l.key));
441
- }, [e]), Y = ae(() => x.status !== "ready" ? {} : Ft(
459
+ }), We.filter((l) => t.has(l.key));
460
+ }, [e]), Y = ae(() => x.status !== "ready" ? {} : Gt(
442
461
  x.taxa.filter((t) => t.mappable.length > 0),
443
462
  o || []
444
463
  ), [x, o]), ue = ae(() => {
@@ -449,13 +468,13 @@ const ce = [
449
468
  color: Y[m.id],
450
469
  displayName: Ze(m.scientificName)
451
470
  }), l = (m) => {
452
- const j = {};
471
+ const S = {};
453
472
  return m.forEach((b) => {
454
- (j[b.rank] = j[b.rank] || []).push(t(b));
455
- }), ce.filter((b) => j[b]).map((b) => ({
473
+ (S[b.rank] = S[b.rank] || []).push(t(b));
474
+ }), ce.filter((b) => S[b]).map((b) => ({
456
475
  rank: b,
457
- label: $e(b),
458
- taxa: j[b]
476
+ label: _e(b),
477
+ taxa: S[b]
459
478
  }));
460
479
  }, i = l(
461
480
  x.taxa.filter(
@@ -465,13 +484,13 @@ const ce = [
465
484
  x.taxa.filter((m) => m.mappable.length === 0)
466
485
  );
467
486
  return { visibleGroups: i, unmappableGroups: g };
468
- }, [x, Y, _]), je = ue.visibleGroups.length > 0, oe = Bt(f), Ie = R.cartoKey, Qe = `${typeof oe == "string" ? oe : JSON.stringify(oe)}|${Ie || ""}`;
469
- P(() => {
487
+ }, [x, Y, _]), Se = ue.visibleGroups.length > 0, oe = Nt(f), Ie = C.cartoKey, et = `${typeof oe == "string" ? oe : JSON.stringify(oe)}|${Ie || ""}`;
488
+ A(() => {
470
489
  if (!d.current || p.current || !Ae()) return;
471
490
  const t = new V.Map({
472
491
  container: d.current,
473
492
  style: oe,
474
- transformRequest: Gt(Ie),
493
+ transformRequest: Pt(Ie),
475
494
  center: [0, 20],
476
495
  zoom: 1,
477
496
  minZoom: 0,
@@ -494,10 +513,10 @@ const ce = [
494
513
  });
495
514
  const l = typeof ResizeObserver < "u" ? new ResizeObserver(() => t.resize()) : null;
496
515
  return l && l.observe(d.current), () => {
497
- l && l.disconnect(), y.current && (y.current.remove(), y.current = null), t.remove(), p.current = null, O.current = !1, G.current = !1, N.current = /* @__PURE__ */ new Set(), F(null);
516
+ l && l.disconnect(), y.current && (y.current.remove(), y.current = null), t.remove(), p.current = null, O.current = !1, $.current = !1, G.current = /* @__PURE__ */ new Set(), F(null);
498
517
  };
499
- }, [Qe]), P(() => {
500
- const t = S;
518
+ }, [et]), A(() => {
519
+ const t = j;
501
520
  if (!t || !(e != null && e.length)) return;
502
521
  let l = !1;
503
522
  return v(!1), Promise.allSettled(
@@ -510,19 +529,19 @@ const ce = [
510
529
  ).then((i) => {
511
530
  if (l || p.current !== t) return;
512
531
  const g = [], m = /* @__PURE__ */ new Map();
513
- let j = 0;
532
+ let S = 0;
514
533
  i.forEach((w, B) => {
515
534
  if (w.status !== "fulfilled" || !w.value.geojson) {
516
- j += 1;
535
+ S += 1;
517
536
  return;
518
537
  }
519
- const { record: K, geojson: W } = w.value, pe = Wt(K), Z = `focal-${B}`;
520
- m.set(Z, K), _e(W).forEach((J) => {
538
+ const { record: K, geojson: W } = w.value, pe = Xt(K), X = `focal-${B}`;
539
+ m.set(X, K), Pe(W).forEach((Z) => {
521
540
  g.push({
522
- ...J,
541
+ ...Z,
523
542
  properties: {
524
- ...J.properties || {},
525
- _recordKey: Z,
543
+ ...Z.properties || {},
544
+ _recordKey: X,
526
545
  _color: pe
527
546
  }
528
547
  });
@@ -532,7 +551,7 @@ const ce = [
532
551
  if (t.getSource(Q))
533
552
  t.getSource(Q).setData(b);
534
553
  else {
535
- const w = t.getLayer(A) ? A : void 0;
554
+ const w = t.getLayer(P) ? P : void 0;
536
555
  t.addSource(Q, { type: "geojson", data: b }), t.addLayer(
537
556
  {
538
557
  id: T,
@@ -555,23 +574,23 @@ const ce = [
555
574
  }
556
575
  },
557
576
  w
558
- ), t.on("click", T, et), t.on("mouseenter", T, we), t.on("mouseleave", T, Le), O.current = !0;
577
+ ), t.on("click", T, tt), t.on("mouseenter", T, we), t.on("mouseleave", T, Le), O.current = !0;
559
578
  }
560
579
  if (g.length > 0) {
561
- const w = Xt(g);
580
+ const w = nn(g);
562
581
  w && t.fitBounds(w, { padding: 20, animate: !1 });
563
582
  }
564
- typeof n == "function" && n(j), v(!0);
583
+ typeof n == "function" && n(S), v(!0);
565
584
  }), () => {
566
585
  l = !0;
567
586
  };
568
- }, [S, e]);
569
- const et = (t) => {
570
- var j, b;
587
+ }, [j, e]);
588
+ const tt = (t) => {
589
+ var S, b;
571
590
  const l = p.current;
572
591
  if (!l) return;
573
- const i = (j = t.features) == null ? void 0 : j[0], g = (b = i == null ? void 0 : i.properties) == null ? void 0 : b._recordKey, m = g ? M.current.get(g) : null;
574
- m && (y.current && y.current.remove(), y.current = new V.Popup({ closeButton: !0, maxWidth: "320px" }).setLngLat(t.lngLat).setHTML(Ye(m)).addTo(l));
592
+ const i = (S = t.features) == null ? void 0 : S[0], g = (b = i == null ? void 0 : i.properties) == null ? void 0 : b._recordKey, m = g ? M.current.get(g) : null;
593
+ m && (y.current && y.current.remove(), y.current = new V.Popup({ closeButton: !0, maxWidth: "320px" }).setLngLat(t.lngLat).setHTML(Xe(m)).addTo(l));
575
594
  }, we = () => {
576
595
  const t = p.current;
577
596
  t && (t.getCanvas().style.cursor = "pointer");
@@ -579,41 +598,41 @@ const ce = [
579
598
  const t = p.current;
580
599
  t && (t.getCanvas().style.cursor = "");
581
600
  };
582
- P(() => {
601
+ A(() => {
583
602
  const t = p.current;
584
603
  if (!t || !O.current) return;
585
604
  const l = U ? "visible" : "none";
586
605
  t.getLayer(T) && t.setLayoutProperty(T, "visibility", l), t.getLayer(he) && t.setLayoutProperty(he, "visibility", l);
587
- }, [U, D]), P(() => {
588
- const t = S;
606
+ }, [U, D]), A(() => {
607
+ const t = j;
589
608
  if (!t || ((() => {
590
- t.getLayer(A) && t.removeLayer(A), t.getSource(ie) && t.removeSource(ie), G.current = !1;
609
+ t.getLayer(P) && t.removeLayer(P), t.getSource(ie) && t.removeSource(ie), $.current = !1;
591
610
  })(), !c || !(a != null && a.id)) || u === !1) return;
592
- const i = (R.gbifApi + qt).replace("{checklistKey}", encodeURIComponent(c)).replace("{taxonKey}", encodeURIComponent(a.id)), g = R.gbifPortal + "/occurrence/search?checklist_key=" + encodeURIComponent(c) + "&taxon_key=" + encodeURIComponent(a.id);
611
+ const i = (C.gbifApi + Jt).replace("{checklistKey}", encodeURIComponent(c)).replace("{taxonKey}", encodeURIComponent(a.id)), g = C.gbifPortal + "/occurrence/search?checklist_key=" + encodeURIComponent(c) + "&taxon_key=" + encodeURIComponent(a.id);
593
612
  t.addSource(ie, {
594
613
  type: "raster",
595
614
  tiles: [i],
596
615
  tileSize: 256,
597
616
  attribution: '<a href="' + g + '" target="_blank" rel="noopener">GBIF</a> occurrence data'
598
617
  }), t.addLayer({
599
- id: A,
618
+ id: P,
600
619
  type: "raster",
601
620
  source: ie,
602
621
  paint: { "raster-opacity": 0.9 },
603
622
  layout: { visibility: I ? "visible" : "none" }
604
- }), G.current = !0;
605
- }, [S, c, a == null ? void 0 : a.id, u]), P(() => {
623
+ }), $.current = !0;
624
+ }, [j, c, a == null ? void 0 : a.id, u]), A(() => {
606
625
  const t = p.current;
607
- if (!t || !G.current) return;
626
+ if (!t || !$.current) return;
608
627
  const l = I ? "visible" : "none";
609
- t.getLayer(A) && t.setLayoutProperty(A, "visibility", l);
628
+ t.getLayer(P) && t.setLayoutProperty(P, "visibility", l);
610
629
  }, [I]);
611
630
  const ke = (t) => _.has(t) ? "visible" : "none";
612
- P(() => {
613
- const t = S;
614
- if (!t || (N.current.forEach((i) => {
631
+ A(() => {
632
+ const t = j;
633
+ if (!t || (G.current.forEach((i) => {
615
634
  t.getLayer(ee(i)) && t.removeLayer(ee(i)), t.getLayer(te(i)) && t.removeLayer(te(i)), t.getSource(me(i)) && t.removeSource(me(i));
616
- }), N.current = /* @__PURE__ */ new Set(), E.current = /* @__PURE__ */ new Map(), L.current = /* @__PURE__ */ new Map(), x.status !== "ready")) return;
635
+ }), G.current = /* @__PURE__ */ new Set(), E.current = /* @__PURE__ */ new Map(), L.current = /* @__PURE__ */ new Map(), x.status !== "ready")) return;
617
636
  const l = Y;
618
637
  x.taxa.forEach((i) => {
619
638
  i.mappable.length !== 0 && (E.current.set(i.id, i), Promise.allSettled(
@@ -628,29 +647,29 @@ const ce = [
628
647
  const m = [];
629
648
  g.forEach((B, K) => {
630
649
  if (B.status !== "fulfilled" || !B.value.geojson) return;
631
- const { record: W, geojson: pe } = B.value, Z = `desc-${i.id}-${K}`;
632
- L.current.set(Z, { taxon: i, record: W }), _e(pe).forEach((J) => {
650
+ const { record: W, geojson: pe } = B.value, X = `desc-${i.id}-${K}`;
651
+ L.current.set(X, { taxon: i, record: W }), Pe(pe).forEach((Z) => {
633
652
  m.push({
634
- ...J,
653
+ ...Z,
635
654
  properties: {
636
- ...J.properties || {},
637
- _recordKey: Z
655
+ ...Z.properties || {},
656
+ _recordKey: X
638
657
  }
639
658
  });
640
659
  });
641
660
  });
642
- const j = l[i.id] || le, b = { type: "FeatureCollection", features: m }, w = me(i.id);
661
+ const S = l[i.id] || le, b = { type: "FeatureCollection", features: m }, w = me(i.id);
643
662
  if (p.current.getSource(w))
644
663
  p.current.getSource(w).setData(b);
645
664
  else {
646
665
  p.current.addSource(w, { type: "geojson", data: b });
647
- const B = ee(i.id), K = te(i.id), W = p.current.getLayer(A) ? A : void 0;
666
+ const B = ee(i.id), K = te(i.id), W = p.current.getLayer(P) ? P : void 0;
648
667
  p.current.addLayer(
649
668
  {
650
669
  id: B,
651
670
  type: "fill",
652
671
  source: w,
653
- paint: { "fill-color": j, "fill-opacity": 0.55 },
672
+ paint: { "fill-color": S, "fill-opacity": 0.55 },
654
673
  layout: { visibility: ke(i.id) }
655
674
  },
656
675
  W
@@ -659,66 +678,66 @@ const ce = [
659
678
  id: K,
660
679
  type: "line",
661
680
  source: w,
662
- paint: { "line-color": j, "line-width": 2 },
681
+ paint: { "line-color": S, "line-width": 2 },
663
682
  layout: { visibility: ke(i.id) }
664
683
  },
665
684
  W
666
- ), p.current.on("click", B, tt), p.current.on("mouseenter", B, we), p.current.on("mouseleave", B, Le), N.current.add(i.id);
685
+ ), p.current.on("click", B, nt), p.current.on("mouseenter", B, we), p.current.on("mouseleave", B, Le), G.current.add(i.id);
667
686
  }
668
687
  }));
669
688
  });
670
- }, [S, x, Y]);
671
- const tt = (t) => {
672
- var j, b;
689
+ }, [j, x, Y]);
690
+ const nt = (t) => {
691
+ var S, b;
673
692
  const l = p.current;
674
693
  if (!l) return;
675
- const i = (j = t.features) == null ? void 0 : j[0], g = (b = i == null ? void 0 : i.properties) == null ? void 0 : b._recordKey, m = g ? L.current.get(g) : null;
676
- m && (y.current && y.current.remove(), y.current = new V.Popup({ closeButton: !0, maxWidth: "320px" }).setLngLat(t.lngLat).setHTML(Yt(m.taxon, m.record)).addTo(l));
694
+ const i = (S = t.features) == null ? void 0 : S[0], g = (b = i == null ? void 0 : i.properties) == null ? void 0 : b._recordKey, m = g ? L.current.get(g) : null;
695
+ m && (y.current && y.current.remove(), y.current = new V.Popup({ closeButton: !0, maxWidth: "320px" }).setLngLat(t.lngLat).setHTML(Qt(m.taxon, m.record)).addTo(l));
677
696
  };
678
- P(() => {
697
+ A(() => {
679
698
  const t = p.current;
680
- t && N.current.forEach((l) => {
699
+ t && G.current.forEach((l) => {
681
700
  const i = _.has(l) ? "visible" : "none";
682
701
  t.getLayer(ee(l)) && t.setLayoutProperty(ee(l), "visibility", i), t.getLayer(te(l)) && t.setLayoutProperty(te(l), "visibility", i);
683
702
  });
684
703
  }, [_, x]);
685
- const Ce = () => {
704
+ const Re = () => {
686
705
  var i;
687
- if (de.current || !r || !a || !o) return;
706
+ if (de.current || !s || !a || !o) return;
688
707
  const t = (i = a == null ? void 0 : a.name) == null ? void 0 : i.rank;
689
- !t || t !== "species" && !ce.includes(t) || ze(t, o).length === 0 || (de.current = !0, $({ status: "loading", taxa: [] }), Et({ datasetKey: r, focalTaxon: a, rankOrder: o }).then(
708
+ !t || t !== "species" && !ce.includes(t) || He(t, o).length === 0 || (de.current = !0, N({ status: "loading", taxa: [] }), $t({ datasetKey: s, focalTaxon: a, rankOrder: o }).then(
690
709
  ({ taxa: g, descendantsFailed: m }) => {
691
710
  if (m) {
692
- $({ status: "error", taxa: [] });
711
+ N({ status: "error", taxa: [] });
693
712
  return;
694
713
  }
695
714
  if (g.length === 0) {
696
- $({ status: "empty", taxa: [] });
715
+ N({ status: "empty", taxa: [] });
697
716
  return;
698
717
  }
699
- $({ status: "ready", taxa: g });
718
+ N({ status: "ready", taxa: g });
700
719
  }
701
720
  ));
702
- }, nt = () => {
703
- xe(!0), Ce();
704
- }, rt = ae(() => {
721
+ }, rt = () => {
722
+ xe(!0), Re();
723
+ }, st = ae(() => {
705
724
  if (x.status !== "ready") return [];
706
725
  const t = {};
707
726
  return x.taxa.filter((l) => l.mappable.length > 0).forEach((l) => {
708
727
  (t[l.rank] = t[l.rank] || []).push(l);
709
728
  }), ce.filter((l) => t[l]).map((l) => ({
710
729
  rank: l,
711
- label: $e(l),
730
+ label: _e(l),
712
731
  taxa: t[l].slice().sort(
713
732
  (i, g) => i.scientificName.localeCompare(g.scientificName)
714
733
  )
715
734
  }));
716
- }, [x]), st = (t) => {
735
+ }, [x]), ot = (t) => {
717
736
  be((l) => {
718
737
  const i = new Set(l);
719
738
  return i.has(t) ? i.delete(t) : i.add(t), i;
720
739
  });
721
- }, ot = (t) => {
740
+ }, at = (t) => {
722
741
  be((l) => {
723
742
  const i = new Set(l), g = t.every((m) => l.has(m.id));
724
743
  return t.forEach((m) => {
@@ -727,7 +746,7 @@ const ce = [
727
746
  });
728
747
  };
729
748
  if (!Ae())
730
- return /* @__PURE__ */ s.jsx(
749
+ return /* @__PURE__ */ r.jsx(
731
750
  "div",
732
751
  {
733
752
  style: {
@@ -742,7 +761,7 @@ const ce = [
742
761
  }
743
762
  );
744
763
  if (se && !I)
745
- return /* @__PURE__ */ s.jsxs(
764
+ return /* @__PURE__ */ r.jsxs(
746
765
  "div",
747
766
  {
748
767
  className: "col-distributions-map col-distributions-map--collapsed",
@@ -758,8 +777,8 @@ const ce = [
758
777
  fontSize: 12
759
778
  },
760
779
  children: [
761
- /* @__PURE__ */ s.jsx("span", { children: "No curated distribution data." }),
762
- /* @__PURE__ */ s.jsx(
780
+ /* @__PURE__ */ r.jsx("span", { children: "No curated distribution data." }),
781
+ /* @__PURE__ */ r.jsx(
763
782
  "a",
764
783
  {
765
784
  role: "button",
@@ -775,15 +794,15 @@ const ce = [
775
794
  ]
776
795
  }
777
796
  );
778
- const at = ((Re = a == null ? void 0 : a.name) == null ? void 0 : Re.scientificName) || "This taxon";
779
- return /* @__PURE__ */ s.jsxs(
797
+ const it = ((Ce = a == null ? void 0 : a.name) == null ? void 0 : Ce.scientificName) || "This taxon";
798
+ return /* @__PURE__ */ r.jsxs(
780
799
  "div",
781
800
  {
782
801
  className: "col-distributions-map",
783
802
  ref: h,
784
803
  style: { position: "relative" },
785
804
  children: [
786
- /* @__PURE__ */ s.jsx(
805
+ /* @__PURE__ */ r.jsx(
787
806
  "div",
788
807
  {
789
808
  ref: d,
@@ -791,32 +810,32 @@ const ce = [
791
810
  style: { height: 360, width: "100%", background: "#f5f5f5" }
792
811
  }
793
812
  ),
794
- /* @__PURE__ */ s.jsx(
795
- en,
813
+ /* @__PURE__ */ r.jsx(
814
+ sn,
796
815
  {
797
816
  open: Je,
798
- onOpen: nt,
817
+ onOpen: rt,
799
818
  onClose: () => xe(!1),
800
- focalName: at,
819
+ focalName: it,
801
820
  focalReady: D,
802
821
  focalVisible: U,
803
822
  onToggleFocal: () => q((t) => !t),
804
823
  gbifEnabled: !!c,
805
824
  gbifVisible: I,
806
825
  gbifAvailable: u,
807
- onToggleGbif: Xe,
826
+ onToggleGbif: Qe,
808
827
  descendantStatus: x.status,
809
- descendantsByRank: rt,
828
+ descendantsByRank: st,
810
829
  descendantColors: Y,
811
830
  visibleTaxonIds: _,
812
- onToggleTaxon: st,
813
- onToggleRankGroup: ot,
831
+ onToggleTaxon: ot,
832
+ onToggleRankGroup: at,
814
833
  onRetry: () => {
815
- de.current = !1, $({ status: "idle", taxa: [] }), Ce();
834
+ de.current = !1, N({ status: "idle", taxa: [] }), Re();
816
835
  }
817
836
  }
818
837
  ),
819
- !je && (Se.length > 0 || c && u !== !1 && I) && /* @__PURE__ */ s.jsxs(
838
+ !Se && (je.length > 0 || c && u !== !1 && I) && /* @__PURE__ */ r.jsxs(
820
839
  "div",
821
840
  {
822
841
  style: {
@@ -832,12 +851,12 @@ const ce = [
832
851
  lineHeight: 1.5
833
852
  },
834
853
  children: [
835
- Se.map((t) => /* @__PURE__ */ s.jsxs(
854
+ je.map((t) => /* @__PURE__ */ r.jsxs(
836
855
  "div",
837
856
  {
838
857
  style: { display: "flex", alignItems: "center", gap: 6 },
839
858
  children: [
840
- /* @__PURE__ */ s.jsx(
859
+ /* @__PURE__ */ r.jsx(
841
860
  "span",
842
861
  {
843
862
  style: {
@@ -850,17 +869,17 @@ const ce = [
850
869
  }
851
870
  }
852
871
  ),
853
- /* @__PURE__ */ s.jsx("span", { children: t.label })
872
+ /* @__PURE__ */ r.jsx("span", { children: t.label })
854
873
  ]
855
874
  },
856
875
  t.key
857
876
  )),
858
- c && u !== !1 && I && /* @__PURE__ */ s.jsx(Jt, {})
877
+ c && u !== !1 && I && /* @__PURE__ */ r.jsx(tn, {})
859
878
  ]
860
879
  }
861
880
  ),
862
- je && /* @__PURE__ */ s.jsx(
863
- Vt,
881
+ Se && /* @__PURE__ */ r.jsx(
882
+ Tt,
864
883
  {
865
884
  visibleGroups: ue.visibleGroups,
866
885
  unmappableGroups: ue.unmappableGroups,
@@ -870,10 +889,10 @@ const ce = [
870
889
  ]
871
890
  }
872
891
  );
873
- }, en = ({
892
+ }, sn = ({
874
893
  open: e,
875
894
  onOpen: n,
876
- onClose: r,
895
+ onClose: s,
877
896
  focalName: a,
878
897
  focalReady: o,
879
898
  focalVisible: c,
@@ -887,9 +906,9 @@ const ce = [
887
906
  descendantColors: E,
888
907
  visibleTaxonIds: L,
889
908
  onToggleTaxon: O,
890
- onToggleRankGroup: G,
891
- onRetry: N
892
- }) => e ? /* @__PURE__ */ s.jsxs(
909
+ onToggleRankGroup: $,
910
+ onRetry: G
911
+ }) => e ? /* @__PURE__ */ r.jsxs(
893
912
  "div",
894
913
  {
895
914
  style: {
@@ -908,10 +927,10 @@ const ce = [
908
927
  overflowY: "auto",
909
928
  minWidth: 160
910
929
  },
911
- onMouseLeave: r,
930
+ onMouseLeave: s,
912
931
  children: [
913
- /* @__PURE__ */ s.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6 }, children: [
914
- /* @__PURE__ */ s.jsx(
932
+ /* @__PURE__ */ r.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6 }, children: [
933
+ /* @__PURE__ */ r.jsx(
915
934
  "input",
916
935
  {
917
936
  type: "checkbox",
@@ -920,9 +939,9 @@ const ce = [
920
939
  onChange: u
921
940
  }
922
941
  ),
923
- /* @__PURE__ */ s.jsx("span", { style: { fontStyle: "italic" }, children: a })
942
+ /* @__PURE__ */ r.jsx("span", { style: { fontStyle: "italic" }, children: a })
924
943
  ] }),
925
- f && /* @__PURE__ */ s.jsxs(
944
+ f && /* @__PURE__ */ r.jsxs(
926
945
  "div",
927
946
  {
928
947
  style: {
@@ -933,7 +952,7 @@ const ce = [
933
952
  },
934
953
  title: h === !1 ? "GBIF has no occurrence records for this taxon." : void 0,
935
954
  children: [
936
- /* @__PURE__ */ s.jsx(
955
+ /* @__PURE__ */ r.jsx(
937
956
  "input",
938
957
  {
939
958
  type: "checkbox",
@@ -942,20 +961,20 @@ const ce = [
942
961
  onChange: p
943
962
  }
944
963
  ),
945
- /* @__PURE__ */ s.jsx("span", { children: "GBIF occurrences" })
964
+ /* @__PURE__ */ r.jsx("span", { children: "GBIF occurrences" })
946
965
  ]
947
966
  }
948
967
  ),
949
- y === "loading" && /* @__PURE__ */ s.jsx("div", { style: { marginTop: 6, color: "#888" }, children: "Loading descendants…" }),
950
- y === "error" && /* @__PURE__ */ s.jsxs("div", { style: { marginTop: 6, color: "#888" }, children: [
968
+ y === "loading" && /* @__PURE__ */ r.jsx("div", { style: { marginTop: 6, color: "#888" }, children: "Loading descendants…" }),
969
+ y === "error" && /* @__PURE__ */ r.jsxs("div", { style: { marginTop: 6, color: "#888" }, children: [
951
970
  "Couldn't load descendants.",
952
971
  " ",
953
- /* @__PURE__ */ s.jsx("a", { onClick: N, style: { cursor: "pointer" }, children: "Retry" })
972
+ /* @__PURE__ */ r.jsx("a", { onClick: G, style: { cursor: "pointer" }, children: "Retry" })
954
973
  ] }),
955
- y === "ready" && M.map((S) => {
956
- const F = S.taxa.every((v) => L.has(v.id)), D = S.taxa.some((v) => L.has(v.id));
957
- return /* @__PURE__ */ s.jsxs("div", { style: { marginTop: 6 }, children: [
958
- /* @__PURE__ */ s.jsxs(
974
+ y === "ready" && M.map((j) => {
975
+ const F = j.taxa.every((v) => L.has(v.id)), D = j.taxa.some((v) => L.has(v.id));
976
+ return /* @__PURE__ */ r.jsxs("div", { style: { marginTop: 6 }, children: [
977
+ /* @__PURE__ */ r.jsxs(
959
978
  "label",
960
979
  {
961
980
  style: {
@@ -965,7 +984,7 @@ const ce = [
965
984
  fontWeight: 600
966
985
  },
967
986
  children: [
968
- /* @__PURE__ */ s.jsx(
987
+ /* @__PURE__ */ r.jsx(
969
988
  "input",
970
989
  {
971
990
  type: "checkbox",
@@ -973,14 +992,14 @@ const ce = [
973
992
  ref: (v) => {
974
993
  v && (v.indeterminate = !F && D);
975
994
  },
976
- onChange: () => G(S.taxa)
995
+ onChange: () => $(j.taxa)
977
996
  }
978
997
  ),
979
- S.label
998
+ j.label
980
999
  ]
981
1000
  }
982
1001
  ),
983
- /* @__PURE__ */ s.jsx("div", { style: { paddingLeft: 18 }, children: S.taxa.map((v) => /* @__PURE__ */ s.jsxs(
1002
+ /* @__PURE__ */ r.jsx("div", { style: { paddingLeft: 18 }, children: j.taxa.map((v) => /* @__PURE__ */ r.jsxs(
984
1003
  "label",
985
1004
  {
986
1005
  style: {
@@ -989,7 +1008,7 @@ const ce = [
989
1008
  gap: 6
990
1009
  },
991
1010
  children: [
992
- /* @__PURE__ */ s.jsx(
1011
+ /* @__PURE__ */ r.jsx(
993
1012
  "input",
994
1013
  {
995
1014
  type: "checkbox",
@@ -997,7 +1016,7 @@ const ce = [
997
1016
  onChange: () => O(v.id)
998
1017
  }
999
1018
  ),
1000
- /* @__PURE__ */ s.jsx(
1019
+ /* @__PURE__ */ r.jsx(
1001
1020
  "span",
1002
1021
  {
1003
1022
  style: {
@@ -1010,16 +1029,16 @@ const ce = [
1010
1029
  }
1011
1030
  }
1012
1031
  ),
1013
- /* @__PURE__ */ s.jsx("span", { style: { fontStyle: "italic" }, children: Ze(v.scientificName) })
1032
+ /* @__PURE__ */ r.jsx("span", { style: { fontStyle: "italic" }, children: Ze(v.scientificName) })
1014
1033
  ]
1015
1034
  },
1016
1035
  v.id
1017
1036
  )) })
1018
- ] }, S.rank);
1037
+ ] }, j.rank);
1019
1038
  })
1020
1039
  ]
1021
1040
  }
1022
- ) : /* @__PURE__ */ s.jsx(
1041
+ ) : /* @__PURE__ */ r.jsx(
1023
1042
  "button",
1024
1043
  {
1025
1044
  type: "button",
@@ -1045,24 +1064,24 @@ const ce = [
1045
1064
  },
1046
1065
  children: "+"
1047
1066
  }
1048
- ), tn = (e) => {
1049
- var n, r;
1050
- return ((n = e == null ? void 0 : e.area) == null ? void 0 : n.gazetteer) !== "text" && !!((r = e == null ? void 0 : e.area) != null && r.globalId);
1051
- }, Pe = ({ datasetKey: e, data: n }) => {
1052
- const [r, a] = k({});
1053
- return P(() => {
1067
+ ), on = (e) => {
1068
+ var n, s;
1069
+ return ((n = e == null ? void 0 : e.area) == null ? void 0 : n.gazetteer) !== "text" && !!((s = e == null ? void 0 : e.area) != null && s.globalId);
1070
+ }, Oe = ({ datasetKey: e, data: n }) => {
1071
+ const [s, a] = k({});
1072
+ return A(() => {
1054
1073
  let o = !1;
1055
1074
  for (let c = 0; c < n.length; c++)
1056
1075
  if (n[c].gazetteer === "iso") {
1057
1076
  o = !0;
1058
1077
  break;
1059
1078
  }
1060
- o && re(`${R.dataApi}vocab/country`).then((c) => {
1061
- a(pt(c.data, "alpha3"));
1079
+ o && re(`${C.dataApi}vocab/country`).then((c) => {
1080
+ a(ft(c.data, "alpha3"));
1062
1081
  });
1063
- }, []), /* @__PURE__ */ s.jsx("div", { children: n.map((o, c) => /* @__PURE__ */ s.jsxs("span", { children: [
1064
- (o == null ? void 0 : o.merged) && /* @__PURE__ */ s.jsx(
1065
- gt,
1082
+ }, []), /* @__PURE__ */ r.jsx("div", { children: n.map((o, c) => /* @__PURE__ */ r.jsxs("span", { children: [
1083
+ (o == null ? void 0 : o.merged) && /* @__PURE__ */ r.jsx(
1084
+ yt,
1066
1085
  {
1067
1086
  createdBy: o == null ? void 0 : o.createdBy,
1068
1087
  datasetKey: o.datasetKey,
@@ -1071,10 +1090,10 @@ const ce = [
1071
1090
  style: { marginRight: "4px" }
1072
1091
  }
1073
1092
  ),
1074
- (H(r, `[${H(o, "area.name")}].name`) ? ft(H(r, `[${H(o, "area.name")}].name`)) : null) || H(o, "area.name") || H(o, "area.globalId"),
1093
+ (H(s, `[${H(o, "area.name")}].name`) ? ht(H(s, `[${H(o, "area.name")}].name`)) : null) || H(o, "area.name") || H(o, "area.globalId"),
1075
1094
  " ",
1076
- o.referenceId && /* @__PURE__ */ s.jsx(
1077
- It,
1095
+ o.referenceId && /* @__PURE__ */ r.jsx(
1096
+ Rt,
1078
1097
  {
1079
1098
  datasetKey: e,
1080
1099
  referenceId: o.referenceId,
@@ -1083,10 +1102,10 @@ const ce = [
1083
1102
  ),
1084
1103
  c < n.length - 1 && ", "
1085
1104
  ] }, c)) });
1086
- }, gn = ({
1105
+ }, jn = ({
1087
1106
  datasetKey: e,
1088
1107
  data: n,
1089
- style: r,
1108
+ style: s,
1090
1109
  showDistributionMap: a,
1091
1110
  focalTaxon: o,
1092
1111
  rankOrder: c,
@@ -1095,15 +1114,15 @@ const ce = [
1095
1114
  label: d,
1096
1115
  md: h
1097
1116
  }) => {
1098
- const p = n.filter(tn), y = n.length - p.length, M = !!u, E = n.length > 0, [L, O] = k("map"), [G, N] = k(0), [S, F] = k(null);
1099
- P(() => {
1117
+ const p = n.filter(on), y = n.length - p.length, M = !!u, E = n.length > 0, [L, O] = k("map"), [$, G] = k(0), [j, F] = k(null);
1118
+ A(() => {
1100
1119
  if (!u || !(o != null && o.id)) {
1101
1120
  F(null);
1102
1121
  return;
1103
1122
  }
1104
1123
  F(null);
1105
1124
  let I = !1;
1106
- return ht.get(`${R.gbifApi}/v1/occurrence/search`, {
1125
+ return mt.get(`${C.gbifApi}/v1/occurrence/search`, {
1107
1126
  params: {
1108
1127
  checklistKey: u,
1109
1128
  taxonKey: o.id,
@@ -1124,16 +1143,16 @@ const ce = [
1124
1143
  I = !0;
1125
1144
  };
1126
1145
  }, [u, o == null ? void 0 : o.id]);
1127
- const D = M ? S === null || S > 0 : !1, v = p.length > 0 && G >= p.length, x = a && (p.length > 0 || D) && !(p.length > 0 && v && !D);
1146
+ const D = M ? j === null || j > 0 : !1, v = p.length > 0 && $ >= p.length, x = a && (p.length > 0 || D) && !(p.length > 0 && v && !D);
1128
1147
  if (!x && !E) return null;
1129
- const $ = y + G, U = E;
1148
+ const N = y + $, U = E;
1130
1149
  let q;
1131
1150
  if (!x)
1132
- q = /* @__PURE__ */ s.jsx(Pe, { datasetKey: e, data: n });
1151
+ q = /* @__PURE__ */ r.jsx(Oe, { datasetKey: e, data: n });
1133
1152
  else {
1134
1153
  const I = U ? L : "map";
1135
- q = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1136
- U ? /* @__PURE__ */ s.jsxs(
1154
+ q = /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1155
+ U ? /* @__PURE__ */ r.jsxs(
1137
1156
  fe.Group,
1138
1157
  {
1139
1158
  size: "small",
@@ -1141,21 +1160,21 @@ const ce = [
1141
1160
  onChange: (z) => O(z.target.value),
1142
1161
  style: { marginBottom: 8 },
1143
1162
  children: [
1144
- /* @__PURE__ */ s.jsx(fe.Button, { value: "map", children: "Map" }),
1145
- /* @__PURE__ */ s.jsx(fe.Button, { value: "list", children: "List" })
1163
+ /* @__PURE__ */ r.jsx(fe.Button, { value: "map", children: "Map" }),
1164
+ /* @__PURE__ */ r.jsx(fe.Button, { value: "list", children: "List" })
1146
1165
  ]
1147
1166
  }
1148
1167
  ) : (
1149
1168
  // Reserve the vertical space the Map/List toggle would occupy so the
1150
1169
  // map's top edge lines up with the "Distributions" label.
1151
- /* @__PURE__ */ s.jsx("div", { style: { height: 24, marginBottom: 8 } })
1170
+ /* @__PURE__ */ r.jsx("div", { style: { height: 24, marginBottom: 8 } })
1152
1171
  ),
1153
- I === "map" ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1154
- /* @__PURE__ */ s.jsx(
1155
- Qt,
1172
+ I === "map" ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1173
+ /* @__PURE__ */ r.jsx(
1174
+ rn,
1156
1175
  {
1157
1176
  records: p,
1158
- onUnmappable: N,
1177
+ onUnmappable: G,
1159
1178
  datasetKey: e,
1160
1179
  focalTaxon: o,
1161
1180
  rankOrder: c,
@@ -1164,21 +1183,22 @@ const ce = [
1164
1183
  basemapStyle: f
1165
1184
  }
1166
1185
  ),
1167
- U && $ > 0 && /* @__PURE__ */ s.jsx("div", { style: { marginTop: 6 }, children: /* @__PURE__ */ s.jsxs("a", { onClick: () => O("list"), style: { cursor: "pointer" }, children: [
1186
+ U && N > 0 && /* @__PURE__ */ r.jsx("div", { style: { marginTop: 6 }, children: /* @__PURE__ */ r.jsxs("a", { onClick: () => O("list"), style: { cursor: "pointer" }, children: [
1168
1187
  "+",
1169
- $,
1188
+ N,
1170
1189
  " distribution",
1171
- $ === 1 ? "" : "s",
1190
+ N === 1 ? "" : "s",
1172
1191
  " not on map"
1173
1192
  ] }) })
1174
- ] }) : /* @__PURE__ */ s.jsx(Pe, { datasetKey: e, data: n })
1193
+ ] }) : /* @__PURE__ */ r.jsx(Oe, { datasetKey: e, data: n })
1175
1194
  ] });
1176
1195
  }
1177
- const se = /* @__PURE__ */ s.jsx("div", { style: r, children: q });
1178
- return d ? /* @__PURE__ */ s.jsx(bt, { md: h, label: d, children: se }) : se;
1196
+ const se = /* @__PURE__ */ r.jsx("div", { style: s, children: q });
1197
+ return d ? /* @__PURE__ */ r.jsx(vt, { md: h, label: d, children: se }) : se;
1179
1198
  };
1180
1199
  export {
1181
- gn as D,
1182
- It as R
1200
+ jn as D,
1201
+ Fe as R,
1202
+ Rt as a
1183
1203
  };
1184
- //# sourceMappingURL=Distributions-Byhvu1wv.js.map
1204
+ //# sourceMappingURL=Distributions-CvS4r1hC.js.map