@dracor/react 1.0.0-alpha.2 → 1.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,15 +1,16 @@
1
- import _1, { useState as S, useEffect as I, Fragment as c1, useRef as u1 } from "react";
2
- import { Helmet as p1 } from "react-helmet-async";
1
+ import _1, { useState as E, useEffect as z, Fragment as c1, useRef as p1 } from "react";
2
+ import { Helmet as i1 } from "react-helmet-async";
3
3
  import j1 from "swagger-ui-react";
4
- import { FontAwesomeIcon as Z } from "@fortawesome/react-fontawesome";
5
- import { faClipboard as b1, faLanguage as w1, faCaretDown as E1, faPenFancy as M1, faTheaterMasks as N1, faBook as y1 } from "@fortawesome/free-solid-svg-icons";
6
- import { CopyToClipboard as k1 } from "react-copy-to-clipboard";
7
- import { Menu as i1, MenuButton as o1, Transition as h1, MenuItems as d1, MenuItem as v1 } from "@headlessui/react";
8
- import { Link as F, useLocation as m1 } from "@tanstack/react-router";
9
- import { faGithub as Z1 } from "@fortawesome/free-brands-svg-icons";
10
- import { useReactTable as A1, getFilteredRowModel as C1, getSortedRowModel as T1, getCoreRowModel as R1, flexRender as t1 } from "@tanstack/react-table";
11
- import S1 from "CETEIcean";
12
- var q = { exports: {} }, z = {};
4
+ import b1 from "react-markdown";
5
+ import { FontAwesomeIcon as y } from "@fortawesome/react-fontawesome";
6
+ import { faClipboard as w1, faLanguage as E1, faCaretDown as M1, faPenFancy as N1, faTheaterMasks as y1, faBook as k1 } from "@fortawesome/free-solid-svg-icons";
7
+ import { CopyToClipboard as Z1 } from "react-copy-to-clipboard";
8
+ import { Menu as o1, MenuButton as h1, Transition as d1, MenuItems as v1, MenuItem as m1 } from "@headlessui/react";
9
+ import { Link as I, useLocation as x1 } from "@tanstack/react-router";
10
+ import { faGithub as A1 } from "@fortawesome/free-brands-svg-icons";
11
+ import { useReactTable as T1, getFilteredRowModel as R1, getSortedRowModel as C1, getCoreRowModel as S1, flexRender as t1 } from "@tanstack/react-table";
12
+ import P1 from "CETEIcean";
13
+ var q = { exports: {} }, S = {};
13
14
  /**
14
15
  * @license React
15
16
  * react-jsx-runtime.production.js
@@ -20,16 +21,16 @@ var q = { exports: {} }, z = {};
20
21
  * LICENSE file in the root directory of this source tree.
21
22
  */
22
23
  var r1;
23
- function P1() {
24
- if (r1) return z;
24
+ function H1() {
25
+ if (r1) return S;
25
26
  r1 = 1;
26
- var s = Symbol.for("react.transitional.element"), l = Symbol.for("react.fragment");
27
- function r(t, c, n) {
27
+ var s = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
28
+ function l(t, c, n) {
28
29
  var o = null;
29
30
  if (n !== void 0 && (o = "" + n), c.key !== void 0 && (o = "" + c.key), "key" in c) {
30
31
  n = {};
31
- for (var v in c)
32
- v !== "key" && (n[v] = c[v]);
32
+ for (var m in c)
33
+ m !== "key" && (n[m] = c[m]);
33
34
  } else n = c;
34
35
  return c = n.ref, {
35
36
  $$typeof: s,
@@ -39,9 +40,9 @@ function P1() {
39
40
  props: n
40
41
  };
41
42
  }
42
- return z.Fragment = l, z.jsx = r, z.jsxs = r, z;
43
+ return S.Fragment = r, S.jsx = l, S.jsxs = l, S;
43
44
  }
44
- var O = {};
45
+ var P = {};
45
46
  /**
46
47
  * @license React
47
48
  * react-jsx-runtime.development.js
@@ -52,25 +53,25 @@ var O = {};
52
53
  * LICENSE file in the root directory of this source tree.
53
54
  */
54
55
  var l1;
55
- function H1() {
56
- return l1 || (l1 = 1, process.env.NODE_ENV !== "production" && function() {
56
+ function z1() {
57
+ return l1 || (l1 = 1, process.env.NODE_ENV !== "production" && (function() {
57
58
  function s(a) {
58
59
  if (a == null) return null;
59
60
  if (typeof a == "function")
60
- return a.$$typeof === C ? null : a.displayName || a.name || null;
61
+ return a.$$typeof === L ? null : a.displayName || a.name || null;
61
62
  if (typeof a == "string") return a;
62
63
  switch (a) {
63
- case P:
64
+ case A:
64
65
  return "Fragment";
65
- case B:
66
- return "Profiler";
67
66
  case D:
67
+ return "Profiler";
68
+ case F:
68
69
  return "StrictMode";
69
70
  case Y:
70
71
  return "Suspense";
71
- case W:
72
+ case T:
72
73
  return "SuspenseList";
73
- case A:
74
+ case $:
74
75
  return "Activity";
75
76
  }
76
77
  if (typeof a == "object")
@@ -79,16 +80,16 @@ function H1() {
79
80
  ), a.$$typeof) {
80
81
  case b:
81
82
  return "Portal";
82
- case M:
83
+ case X:
83
84
  return (a.displayName || "Context") + ".Provider";
84
- case V:
85
+ case M:
85
86
  return (a._context.displayName || "Context") + ".Consumer";
86
- case X:
87
+ case B:
87
88
  var i = a.render;
88
89
  return a = a.displayName, a || (a = i.displayName || i.name || "", a = a !== "" ? "ForwardRef(" + a + ")" : "ForwardRef"), a;
89
- case N:
90
+ case O:
90
91
  return i = a.displayName || null, i !== null ? i : s(a.type) || "Memo";
91
- case y:
92
+ case R:
92
93
  i = a._payload, a = a._init;
93
94
  try {
94
95
  return s(a(i));
@@ -97,29 +98,29 @@ function H1() {
97
98
  }
98
99
  return null;
99
100
  }
100
- function l(a) {
101
+ function r(a) {
101
102
  return "" + a;
102
103
  }
103
- function r(a) {
104
+ function l(a) {
104
105
  try {
105
- l(a);
106
+ r(a);
106
107
  var i = !1;
107
108
  } catch {
108
109
  i = !0;
109
110
  }
110
111
  if (i) {
111
112
  i = console;
112
- var h = i.error, f = typeof Symbol == "function" && Symbol.toStringTag && a[Symbol.toStringTag] || a.constructor.name || "Object";
113
- return h.call(
113
+ var v = i.error, u = typeof Symbol == "function" && Symbol.toStringTag && a[Symbol.toStringTag] || a.constructor.name || "Object";
114
+ return v.call(
114
115
  i,
115
116
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
116
- f
117
- ), l(a);
117
+ u
118
+ ), r(a);
118
119
  }
119
120
  }
120
121
  function t(a) {
121
- if (a === P) return "<>";
122
- if (typeof a == "object" && a !== null && a.$$typeof === y)
122
+ if (a === A) return "<>";
123
+ if (typeof a == "object" && a !== null && a.$$typeof === R)
123
124
  return "<...>";
124
125
  try {
125
126
  var i = s(a);
@@ -129,28 +130,28 @@ function H1() {
129
130
  }
130
131
  }
131
132
  function c() {
132
- var a = w.A;
133
+ var a = N.A;
133
134
  return a === null ? null : a.getOwner();
134
135
  }
135
136
  function n() {
136
137
  return Error("react-stack-top-frame");
137
138
  }
138
139
  function o(a) {
139
- if (T.call(a, "key")) {
140
+ if (k.call(a, "key")) {
140
141
  var i = Object.getOwnPropertyDescriptor(a, "key").get;
141
142
  if (i && i.isReactWarning) return !1;
142
143
  }
143
144
  return a.key !== void 0;
144
145
  }
145
- function v(a, i) {
146
- function h() {
146
+ function m(a, i) {
147
+ function v() {
147
148
  Q || (Q = !0, console.error(
148
149
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
149
150
  i
150
151
  ));
151
152
  }
152
- h.isReactWarning = !0, Object.defineProperty(a, "key", {
153
- get: h,
153
+ v.isReactWarning = !0, Object.defineProperty(a, "key", {
154
+ get: v,
154
155
  configurable: !0
155
156
  });
156
157
  }
@@ -160,14 +161,14 @@ function H1() {
160
161
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
161
162
  )), a = this.props.ref, a !== void 0 ? a : null;
162
163
  }
163
- function x(a, i, h, f, E, j, G, U) {
164
- return h = j.ref, a = {
165
- $$typeof: m,
164
+ function h(a, i, v, u, w, j, G, U) {
165
+ return v = j.ref, a = {
166
+ $$typeof: x,
166
167
  type: a,
167
168
  key: i,
168
169
  props: j,
169
- _owner: E
170
- }, (h !== void 0 ? h : null) !== null ? Object.defineProperty(a, "ref", {
170
+ _owner: w
171
+ }, (v !== void 0 ? v : null) !== null ? Object.defineProperty(a, "ref", {
171
172
  enumerable: !1,
172
173
  get: _
173
174
  }) : Object.defineProperty(a, "ref", { enumerable: !1, value: null }), a._store = {}, Object.defineProperty(a._store, "validated", {
@@ -192,110 +193,110 @@ function H1() {
192
193
  value: U
193
194
  }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
194
195
  }
195
- function d(a, i, h, f, E, j, G, U) {
196
+ function d(a, i, v, u, w, j, G, U) {
196
197
  var g = i.children;
197
198
  if (g !== void 0)
198
- if (f)
199
- if (H(g)) {
200
- for (f = 0; f < g.length; f++)
201
- u(g[f]);
199
+ if (u)
200
+ if (C(g)) {
201
+ for (u = 0; u < g.length; u++)
202
+ f(g[u]);
202
203
  Object.freeze && Object.freeze(g);
203
204
  } else
204
205
  console.error(
205
206
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
206
207
  );
207
- else u(g);
208
- if (T.call(i, "key")) {
208
+ else f(g);
209
+ if (k.call(i, "key")) {
209
210
  g = s(a);
210
- var R = Object.keys(i).filter(function(g1) {
211
+ var Z = Object.keys(i).filter(function(g1) {
211
212
  return g1 !== "key";
212
213
  });
213
- f = 0 < R.length ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}", s1[g + f] || (R = 0 < R.length ? "{" + R.join(": ..., ") + ": ...}" : "{}", console.error(
214
+ u = 0 < Z.length ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}", s1[g + u] || (Z = 0 < Z.length ? "{" + Z.join(": ..., ") + ": ...}" : "{}", console.error(
214
215
  `A props object containing a "key" prop is being spread into JSX:
215
216
  let props = %s;
216
217
  <%s {...props} />
217
218
  React keys must be passed directly to JSX without using spread:
218
219
  let props = %s;
219
220
  <%s key={someKey} {...props} />`,
220
- f,
221
+ u,
221
222
  g,
222
- R,
223
+ Z,
223
224
  g
224
- ), s1[g + f] = !0);
225
+ ), s1[g + u] = !0);
225
226
  }
226
- if (g = null, h !== void 0 && (r(h), g = "" + h), o(i) && (r(i.key), g = "" + i.key), "key" in i) {
227
- h = {};
227
+ if (g = null, v !== void 0 && (l(v), g = "" + v), o(i) && (l(i.key), g = "" + i.key), "key" in i) {
228
+ v = {};
228
229
  for (var J in i)
229
- J !== "key" && (h[J] = i[J]);
230
- } else h = i;
231
- return g && v(
232
- h,
230
+ J !== "key" && (v[J] = i[J]);
231
+ } else v = i;
232
+ return g && m(
233
+ v,
233
234
  typeof a == "function" ? a.displayName || a.name || "Unknown" : a
234
- ), x(
235
+ ), h(
235
236
  a,
236
237
  g,
237
238
  j,
238
- E,
239
+ w,
239
240
  c(),
240
- h,
241
+ v,
241
242
  G,
242
243
  U
243
244
  );
244
245
  }
245
- function u(a) {
246
- typeof a == "object" && a !== null && a.$$typeof === m && a._store && (a._store.validated = 1);
246
+ function f(a) {
247
+ typeof a == "object" && a !== null && a.$$typeof === x && a._store && (a._store.validated = 1);
247
248
  }
248
- var p = _1, m = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), P = Symbol.for("react.fragment"), D = Symbol.for("react.strict_mode"), B = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), M = Symbol.for("react.context"), X = Symbol.for("react.forward_ref"), Y = Symbol.for("react.suspense"), W = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), A = Symbol.for("react.activity"), C = Symbol.for("react.client.reference"), w = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, T = Object.prototype.hasOwnProperty, H = Array.isArray, k = console.createTask ? console.createTask : function() {
249
+ var p = _1, x = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), A = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), M = Symbol.for("react.consumer"), X = Symbol.for("react.context"), B = Symbol.for("react.forward_ref"), Y = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), L = Symbol.for("react.client.reference"), N = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, k = Object.prototype.hasOwnProperty, C = Array.isArray, W = console.createTask ? console.createTask : function() {
249
250
  return null;
250
251
  };
251
252
  p = {
252
- "react-stack-bottom-frame": function(a) {
253
+ react_stack_bottom_frame: function(a) {
253
254
  return a();
254
255
  }
255
256
  };
256
- var Q, K = {}, e1 = p["react-stack-bottom-frame"].bind(
257
+ var Q, K = {}, e1 = p.react_stack_bottom_frame.bind(
257
258
  p,
258
259
  n
259
- )(), a1 = k(t(n)), s1 = {};
260
- O.Fragment = P, O.jsx = function(a, i, h, f, E) {
261
- var j = 1e4 > w.recentlyCreatedOwnerStacks++;
260
+ )(), a1 = W(t(n)), s1 = {};
261
+ P.Fragment = A, P.jsx = function(a, i, v, u, w) {
262
+ var j = 1e4 > N.recentlyCreatedOwnerStacks++;
262
263
  return d(
263
264
  a,
264
265
  i,
265
- h,
266
+ v,
266
267
  !1,
267
- f,
268
- E,
268
+ u,
269
+ w,
269
270
  j ? Error("react-stack-top-frame") : e1,
270
- j ? k(t(a)) : a1
271
+ j ? W(t(a)) : a1
271
272
  );
272
- }, O.jsxs = function(a, i, h, f, E) {
273
- var j = 1e4 > w.recentlyCreatedOwnerStacks++;
273
+ }, P.jsxs = function(a, i, v, u, w) {
274
+ var j = 1e4 > N.recentlyCreatedOwnerStacks++;
274
275
  return d(
275
276
  a,
276
277
  i,
277
- h,
278
+ v,
278
279
  !0,
279
- f,
280
- E,
280
+ u,
281
+ w,
281
282
  j ? Error("react-stack-top-frame") : e1,
282
- j ? k(t(a)) : a1
283
+ j ? W(t(a)) : a1
283
284
  );
284
285
  };
285
- }()), O;
286
+ })()), P;
286
287
  }
287
288
  var n1;
288
- function z1() {
289
- return n1 || (n1 = 1, process.env.NODE_ENV === "production" ? q.exports = P1() : q.exports = H1()), q.exports;
289
+ function O1() {
290
+ return n1 || (n1 = 1, process.env.NODE_ENV === "production" ? q.exports = H1() : q.exports = z1()), q.exports;
290
291
  }
291
- var e = z1();
292
- function g0({ url: s, title: l }) {
292
+ var e = O1();
293
+ function _0({ url: s, title: r }) {
293
294
  return /* @__PURE__ */ e.jsxs("div", { children: [
294
- l !== void 0 && /* @__PURE__ */ e.jsx(p1, { children: /* @__PURE__ */ e.jsx("title", { children: l }) }),
295
+ r !== void 0 && /* @__PURE__ */ e.jsx(i1, { children: /* @__PURE__ */ e.jsx("title", { children: r }) }),
295
296
  /* @__PURE__ */ e.jsx(j1, { url: s, deepLinking: !0 })
296
297
  ] });
297
298
  }
298
- const O1 = [
299
+ const $1 = [
299
300
  {
300
301
  schema: "wikidata",
301
302
  label: "Wikidata",
@@ -326,73 +327,72 @@ const O1 = [
326
327
  url: "https://d-nb.info/gnd"
327
328
  }
328
329
  ];
329
- function x1({ showLabel: s, children: l, className: r }) {
330
+ function f1({ showLabel: s, children: r, className: l }) {
330
331
  let t = "inline-flex bg-white bg-no-repeat bg-[5px] rounded-sm px-1.5 gap-1 align-text-bottom", c;
331
- const n = O1.find(({ pattern: x, url: d, schema: u }) => {
332
+ const n = $1.find(({ pattern: h, url: d, schema: f }) => {
332
333
  const p = new RegExp(
333
- `^(?:${x || d}/|${u}:)([a-z\\d]+)$`,
334
+ `^(?:${h || d}/|${f}:)([a-z\\d]+)$`,
334
335
  "i"
335
- ), m = l.match(p);
336
- return m ? (c = m[1], !0) : !1;
336
+ ), x = r.match(p);
337
+ return x ? (c = x[1], !0) : !1;
337
338
  });
338
339
  if (!n)
339
- return /* @__PURE__ */ e.jsx("span", { className: t, children: l });
340
- const { url: o, label: v, classes: _ = "" } = n;
340
+ return /* @__PURE__ */ e.jsx("span", { className: t, children: r });
341
+ const { url: o, label: m, classes: _ = "" } = n;
341
342
  return t += ` ${_}`, /* @__PURE__ */ e.jsxs("span", { className: t, children: [
342
- s && `${v}: `,
343
- /* @__PURE__ */ e.jsx("a", { className: r, href: `${o}/${c}`, title: v, children: c })
343
+ s && `${m}: `,
344
+ /* @__PURE__ */ e.jsx("a", { className: l, href: `${o}/${c}`, title: m, children: c })
344
345
  ] });
345
346
  }
346
- function $(s, l = 0) {
347
+ function H(s, r = 0) {
347
348
  if (s === null)
348
349
  return "";
349
- const r = parseInt(s, 10);
350
- return r < 0 ? `${r * -1} BCE` : r < l ? `${r} CE` : String(r);
350
+ const l = parseInt(s, 10);
351
+ return l < 0 ? `${l * -1} BCE` : l < r ? `${l} CE` : String(l);
351
352
  }
352
- function L(s, l = "en-GB") {
353
- const r = `${s}`;
354
- if (r.match("^-[0-9]{4}/-[0-9]{4}$")) {
355
- const t = r.split("/").map((c) => parseInt(c, 10) * -1);
353
+ function V(s, r = "en-GB") {
354
+ const l = `${s}`;
355
+ if (l.match("^-[0-9]{4}/-[0-9]{4}$")) {
356
+ const t = l.split("/").map((c) => parseInt(c, 10) * -1);
356
357
  return `${t[0]}-${t[1]} BCE`;
357
358
  }
358
- if (r.match("^-?[0-9]{4}/-?[0-9]{4}$")) {
359
- const t = r.split("/");
360
- return `${$(t[0])}-${$(t[1], 1e3)}`;
359
+ if (l.match("^-?[0-9]{4}/-?[0-9]{4}$")) {
360
+ const t = l.split("/");
361
+ return `${H(t[0])}-${H(t[1], 1e3)}`;
361
362
  }
362
- if (r.match("^[0-9]{4}-[0-9]{2}$"))
363
- return new Date(r).toLocaleDateString(l, { month: "long", year: "numeric" });
364
- if (r.match("^[0-9]{4}-[0-9]{2}-[0-9]{2}$"))
365
- return new Date(r).toLocaleDateString(l, {
363
+ if (l.match("^[0-9]{4}-[0-9]{2}$"))
364
+ return new Date(l).toLocaleDateString(r, { month: "long", year: "numeric" });
365
+ if (l.match("^[0-9]{4}-[0-9]{2}-[0-9]{2}$"))
366
+ return new Date(l).toLocaleDateString(r, {
366
367
  day: "numeric",
367
368
  month: "long",
368
369
  year: "numeric"
369
370
  });
370
- if (r.match("^>-?[0-9]{4}")) {
371
- const t = r.substring(1);
372
- return `after ${$(t, 1e3)}`;
371
+ if (l.match("^>-?[0-9]{4}")) {
372
+ const t = l.substring(1);
373
+ return `after ${H(t, 1e3)}`;
373
374
  }
374
- if (r.match("^<-?[0-9]{4}")) {
375
- const t = r.substring(1);
376
- return `before ${$(t, 1e3)}`;
375
+ if (l.match("^<-?[0-9]{4}")) {
376
+ const t = l.substring(1);
377
+ return `before ${H(t, 1e3)}`;
377
378
  }
378
- return r.match("^-?[0-9]{4}") ? $(r, 1e3) : r;
379
+ return l.match("^-?[0-9]{4}") ? H(l, 1e3) : l;
379
380
  }
380
- const $1 = "https://query.wikidata.org/sparql", V1 = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' width='102' height='137' viewBox='-305 -516 610 820'%3E%3Ctitle%3EWikimedia Commons Logo%3C/title%3E%3Cdefs%3E%3CclipPath id='c'%3E%3Ccircle r='298'/%3E%3C/clipPath%3E%3C/defs%3E%3Ccircle r='100' fill='%23900'/%3E%3Cg fill='%23069'%3E%3Cg id='arrow' clip-path='url(%23c)'%3E%3Cpath d='m-11 180v118h22v-118'/%3E%3Cpath d='m-43 185l43-75 43 75'/%3E%3C/g%3E%3Cg id='arrows3'%3E%3Cuse xlink:href='%23arrow' transform='rotate(45)'/%3E%3Cuse xlink:href='%23arrow' transform='rotate(90)'/%3E%3Cuse xlink:href='%23arrow' transform='rotate(135)'/%3E%3C/g%3E%3Cuse xlink:href='%23arrows3' transform='scale(-1 1)'/%3E%3Cpath id='blue_path' transform='rotate(-45)' stroke='%23069' stroke-width='84' fill='none' d='M 0,-256 A 256 256 0 1 0 256,0 C 256,-100 155,-150 250,-275'/%3E%3Cpath id='arrow_top' d='m-23-515s-36 135-80 185 116-62 170-5-90-180-90-180z'/%3E%3C/g%3E%3C/svg%3E";
381
- function _0({
381
+ const L1 = "https://query.wikidata.org/sparql", q1 = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' width='102' height='137' viewBox='-305 -516 610 820'%3E%3Ctitle%3EWikimedia Commons Logo%3C/title%3E%3Cdefs%3E%3CclipPath id='c'%3E%3Ccircle r='298'/%3E%3C/clipPath%3E%3C/defs%3E%3Ccircle r='100' fill='%23900'/%3E%3Cg fill='%23069'%3E%3Cg id='arrow' clip-path='url(%23c)'%3E%3Cpath d='m-11 180v118h22v-118'/%3E%3Cpath d='m-43 185l43-75 43 75'/%3E%3C/g%3E%3Cg id='arrows3'%3E%3Cuse xlink:href='%23arrow' transform='rotate(45)'/%3E%3Cuse xlink:href='%23arrow' transform='rotate(90)'/%3E%3Cuse xlink:href='%23arrow' transform='rotate(135)'/%3E%3C/g%3E%3Cuse xlink:href='%23arrows3' transform='scale(-1 1)'/%3E%3Cpath id='blue_path' transform='rotate(-45)' stroke='%23069' stroke-width='84' fill='none' d='M 0,-256 A 256 256 0 1 0 256,0 C 256,-100 155,-150 250,-275'/%3E%3Cpath id='arrow_top' d='m-23-515s-36 135-80 185 116-62 170-5-90-180-90-180z'/%3E%3C/g%3E%3C/svg%3E";
382
+ function p0({
382
383
  wikidataId: s,
383
- name: l,
384
- birthLabel: r = "b.",
384
+ name: r,
385
+ birthLabel: l = "b.",
385
386
  deathLabel: t = "d.",
386
387
  unknownLabel: c = "unknown"
387
388
  }) {
388
- const [n, o] = S(null);
389
- I(() => {
389
+ const [n, o] = E(null);
390
+ z(() => {
390
391
  function p(b) {
391
- return b.startsWith("http://www.wikidata.org/.well-known/genid") ? c : L(b.replace(/^(-?\d{4}).*$/, "$1"));
392
+ return b.startsWith("http://www.wikidata.org/.well-known/genid") ? c : V(b.replace(/^(-?\d{4}).*$/, "$1"));
392
393
  }
393
- async function m(b) {
394
- var V;
395
- const P = `
394
+ async function x(b) {
395
+ const A = `
396
396
  SELECT ?author ?authorLabel ?birthDate ?deathDate ?gender ?genderLabel
397
397
  ?birthPlace ?birthPlaceLabel ?birthCoord
398
398
  ?deathPlace ?deathPlaceLabel ?deathCoord
@@ -409,36 +409,36 @@ WHERE {
409
409
  OPTIONAL { ?author wdt:P227 ?gnd. }
410
410
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en". }
411
411
  }
412
- `, D = `${$1}?query=${encodeURIComponent(P)}`, B = {
412
+ `, F = `${L1}?query=${encodeURIComponent(A)}`, D = {
413
413
  method: "GET",
414
414
  headers: {
415
415
  Accept: "application/json"
416
416
  }
417
417
  };
418
418
  try {
419
- const M = await fetch(D, B);
419
+ const M = await fetch(F, D);
420
420
  if (M.status !== 200) {
421
421
  console.log(M.status);
422
422
  return;
423
423
  }
424
- const Y = ((V = (await M.json()).results) == null ? void 0 : V.bindings) || [], {
425
- authorLabel: W,
426
- img: N,
427
- birthDate: y,
428
- birthPlaceLabel: A,
429
- deathDate: C,
430
- deathPlaceLabel: w
431
- } = Y[0], T = [], H = [];
432
- y != null && y.value && T.push(p(y.value)), A != null && A.value && T.push(A.value), C != null && C.value && H.push(p(C.value)), w != null && w.value && H.push(w.value);
433
- const k = { name: W.value, birth: T, death: H };
434
- N != null && N.value && (k.imageUrl = N.value.replace(/^http:/, "https:"), k.commonsPage = N.value.replace(/Special:FilePath\//, "File:").replace(/^http:/, "https:")), o(k);
424
+ const B = (await M.json()).results?.bindings || [], {
425
+ authorLabel: Y,
426
+ img: T,
427
+ birthDate: O,
428
+ birthPlaceLabel: R,
429
+ deathDate: $,
430
+ deathPlaceLabel: L
431
+ } = B[0], N = [], k = [];
432
+ O?.value && N.push(p(O.value)), R?.value && N.push(R.value), $?.value && k.push(p($.value)), L?.value && k.push(L.value);
433
+ const C = { name: Y.value, birth: N, death: k };
434
+ T?.value && (C.imageUrl = T.value.replace(/^http:/, "https:"), C.commonsPage = T.value.replace(/Special:FilePath\//, "File:").replace(/^http:/, "https:")), o(C);
435
435
  } catch (M) {
436
436
  console.log(M);
437
437
  }
438
438
  }
439
- s && m(s);
439
+ s && x(s);
440
440
  }, [s, c]);
441
- const { name: v, imageUrl: _, commonsPage: x, birth: d = [], death: u = [] } = n || {};
441
+ const { name: m, imageUrl: _, commonsPage: h, birth: d = [], death: f = [] } = n || {};
442
442
  return /* @__PURE__ */ e.jsxs("div", { className: "flex whitespace-nowrap", children: [
443
443
  /* @__PURE__ */ e.jsxs(
444
444
  "div",
@@ -450,21 +450,21 @@ WHERE {
450
450
  "img",
451
451
  {
452
452
  src: _,
453
- title: v,
453
+ title: m,
454
454
  alt: "",
455
455
  className: "object-cover object-top w-full h-full"
456
456
  }
457
457
  ),
458
- x && /* @__PURE__ */ e.jsx(
458
+ h && /* @__PURE__ */ e.jsx(
459
459
  "a",
460
460
  {
461
- href: x,
461
+ href: h,
462
462
  title: "© Wikimedia Commons",
463
463
  className: "absolute flex inset-0 z-10 bg-white/0 hover:bg-white/60",
464
464
  children: /* @__PURE__ */ e.jsx(
465
465
  "img",
466
466
  {
467
- src: V1,
467
+ src: q1,
468
468
  className: "opacity-0 hover:opacity-100 place-self-center w-full h-full p-[20%]",
469
469
  width: "17",
470
470
  alt: "Wikimedia Commons"
@@ -476,47 +476,47 @@ WHERE {
476
476
  }
477
477
  ),
478
478
  /* @__PURE__ */ e.jsxs("span", { children: [
479
- /* @__PURE__ */ e.jsx("div", { className: "text-lg", children: l || v }),
480
- s && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(x1, { children: `wikidata:${s}` }) }),
479
+ /* @__PURE__ */ e.jsx("div", { className: "text-lg", children: r || m }),
480
+ s && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(f1, { children: `wikidata:${s}` }) }),
481
481
  d.length > 0 && /* @__PURE__ */ e.jsxs("div", { children: [
482
- r,
482
+ l,
483
483
  " ",
484
484
  d.join(", ")
485
485
  ] }),
486
- u.length > 0 && /* @__PURE__ */ e.jsxs("div", { children: [
486
+ f.length > 0 && /* @__PURE__ */ e.jsxs("div", { children: [
487
487
  t,
488
488
  " ",
489
- u.join(", ")
489
+ f.join(", ")
490
490
  ] })
491
491
  ] })
492
492
  ] });
493
493
  }
494
- const u0 = ({ data: s }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: s.map((l, r) => /* @__PURE__ */ e.jsxs("span", { children: [
495
- r > 0 && /* @__PURE__ */ e.jsx("br", {}),
496
- l.name,
497
- l.pseudonym && /* @__PURE__ */ e.jsxs("i", { children: [
494
+ const j0 = ({ data: s }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: s.map((r, l) => /* @__PURE__ */ e.jsxs("span", { children: [
495
+ l > 0 && /* @__PURE__ */ e.jsx("br", {}),
496
+ r.name,
497
+ r.pseudonym && /* @__PURE__ */ e.jsxs("i", { children: [
498
498
  " (",
499
- l.pseudonym,
499
+ r.pseudonym,
500
500
  ")"
501
501
  ] }),
502
- l.ref && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
502
+ r.ref && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
503
503
  " ",
504
- /* @__PURE__ */ e.jsx("small", { children: /* @__PURE__ */ e.jsx(x1, { children: l.ref }) })
504
+ /* @__PURE__ */ e.jsx("small", { children: /* @__PURE__ */ e.jsx(f1, { children: r.ref }) })
505
505
  ] })
506
- ] }, `${r}-${l.name}`)) });
507
- function q1({
506
+ ] }, `${l}-${r.name}`)) });
507
+ function V1({
508
508
  value: s,
509
- onChange: l,
510
- debounce: r = 500,
509
+ onChange: r,
510
+ debounce: l = 500,
511
511
  ...t
512
512
  }) {
513
- const [c, n] = S(s);
514
- return I(() => {
513
+ const [c, n] = E(s);
514
+ return z(() => {
515
515
  n(s);
516
- }, [s]), I(() => {
516
+ }, [s]), z(() => {
517
517
  const o = setTimeout(() => {
518
- l(c);
519
- }, r);
518
+ r(c);
519
+ }, l);
520
520
  return () => clearTimeout(o);
521
521
  }, [c]), /* @__PURE__ */ e.jsx(
522
522
  "input",
@@ -527,7 +527,39 @@ function q1({
527
527
  }
528
528
  );
529
529
  }
530
- const L1 = (s) => /* @__PURE__ */ e.jsxs(
530
+ function b0({ url: s, match: r }) {
531
+ const [l, t] = E(""), [c, n] = E("");
532
+ return z(() => {
533
+ async function o(_) {
534
+ try {
535
+ const h = await fetch(_, { method: "GET" });
536
+ if (h.status == 404) {
537
+ t("Not Found"), n("Not Found");
538
+ return;
539
+ }
540
+ if (h.status !== 200)
541
+ throw console.log(h.status), new Error(`Request failed with status ${h.status}`);
542
+ const d = h.headers.get("content-type");
543
+ if (console.log({ contentType: d }), !d || !d.includes("text/markdown")) {
544
+ t("Oops, we haven't got Markdown!"), n("No Markdown");
545
+ return;
546
+ }
547
+ const f = await h.text();
548
+ t(f);
549
+ const x = f.replace(/^\s+/, "").split(/(\n|\r|\r\n){2,}/)[0].match(/^#\s*(.+)/);
550
+ n(x ? x[1] : "...");
551
+ } catch (h) {
552
+ h instanceof Error && h.message === "Request failed with status code 404" ? (t("Not Found"), n("Not Found")) : (t("Something went wrong."), n("Error"), console.error(h));
553
+ }
554
+ }
555
+ const m = s || (r ? r() : null);
556
+ m && o(m);
557
+ }, [s, r]), /* @__PURE__ */ e.jsxs("div", { children: [
558
+ c && /* @__PURE__ */ e.jsx(i1, { children: /* @__PURE__ */ e.jsx("title", { children: c }) }),
559
+ /* @__PURE__ */ e.jsx(b1, { children: l })
560
+ ] });
561
+ }
562
+ const I1 = (s) => /* @__PURE__ */ e.jsxs(
531
563
  "svg",
532
564
  {
533
565
  xmlns: "http://www.w3.org/2000/svg",
@@ -621,7 +653,7 @@ const L1 = (s) => /* @__PURE__ */ e.jsxs(
621
653
  ] }) })
622
654
  ]
623
655
  }
624
- ), I1 = (s) => /* @__PURE__ */ e.jsxs(
656
+ ), F1 = (s) => /* @__PURE__ */ e.jsxs(
625
657
  "svg",
626
658
  {
627
659
  xmlns: "http://www.w3.org/2000/svg",
@@ -670,7 +702,7 @@ const L1 = (s) => /* @__PURE__ */ e.jsxs(
670
702
  ] }) })
671
703
  ]
672
704
  }
673
- ), F1 = (s) => /* @__PURE__ */ e.jsxs(
705
+ ), D1 = (s) => /* @__PURE__ */ e.jsxs(
674
706
  "svg",
675
707
  {
676
708
  xmlns: "http://www.w3.org/2000/svg",
@@ -724,7 +756,7 @@ const L1 = (s) => /* @__PURE__ */ e.jsxs(
724
756
  ] }) })
725
757
  ]
726
758
  }
727
- ), D1 = (s) => /* @__PURE__ */ e.jsxs(
759
+ ), B1 = (s) => /* @__PURE__ */ e.jsxs(
728
760
  "svg",
729
761
  {
730
762
  xmlns: "http://www.w3.org/2000/svg",
@@ -788,7 +820,7 @@ const L1 = (s) => /* @__PURE__ */ e.jsxs(
788
820
  ] }) })
789
821
  ]
790
822
  }
791
- ), B1 = (s) => /* @__PURE__ */ e.jsxs(
823
+ ), Y1 = (s) => /* @__PURE__ */ e.jsxs(
792
824
  "svg",
793
825
  {
794
826
  xmlns: "http://www.w3.org/2000/svg",
@@ -844,7 +876,7 @@ const L1 = (s) => /* @__PURE__ */ e.jsxs(
844
876
  ] }) })
845
877
  ]
846
878
  }
847
- ), Y1 = (s) => /* @__PURE__ */ e.jsxs(
879
+ ), W1 = (s) => /* @__PURE__ */ e.jsxs(
848
880
  "svg",
849
881
  {
850
882
  xmlns: "http://www.w3.org/2000/svg",
@@ -904,7 +936,7 @@ const L1 = (s) => /* @__PURE__ */ e.jsxs(
904
936
  ] }) })
905
937
  ]
906
938
  }
907
- ), W1 = (s) => /* @__PURE__ */ e.jsxs(
939
+ ), G1 = (s) => /* @__PURE__ */ e.jsxs(
908
940
  "svg",
909
941
  {
910
942
  xmlns: "http://www.w3.org/2000/svg",
@@ -957,7 +989,7 @@ const L1 = (s) => /* @__PURE__ */ e.jsxs(
957
989
  ] }) })
958
990
  ]
959
991
  }
960
- ), G1 = (s) => /* @__PURE__ */ e.jsxs(
992
+ ), U1 = (s) => /* @__PURE__ */ e.jsxs(
961
993
  "svg",
962
994
  {
963
995
  xmlns: "http://www.w3.org/2000/svg",
@@ -1010,7 +1042,7 @@ const L1 = (s) => /* @__PURE__ */ e.jsxs(
1010
1042
  ] }) })
1011
1043
  ]
1012
1044
  }
1013
- ), U1 = (s) => /* @__PURE__ */ e.jsxs(
1045
+ ), J1 = (s) => /* @__PURE__ */ e.jsxs(
1014
1046
  "svg",
1015
1047
  {
1016
1048
  xmlns: "http://www.w3.org/2000/svg",
@@ -1100,41 +1132,41 @@ const L1 = (s) => /* @__PURE__ */ e.jsxs(
1100
1132
  ]
1101
1133
  }
1102
1134
  );
1103
- function p0({ href: s, type: l, name: r }) {
1104
- const t = "w-14", c = r.match(/^[a-z0-9]/i) ? r : "download";
1135
+ function w0({ href: s, type: r, name: l }) {
1136
+ const t = "w-14", c = l.match(/^[a-z0-9]/i) ? l : "download";
1105
1137
  let n;
1106
- switch (l) {
1138
+ switch (r) {
1107
1139
  case "bibtex":
1108
- n = /* @__PURE__ */ e.jsx(L1, { className: t });
1140
+ n = /* @__PURE__ */ e.jsx(I1, { className: t });
1109
1141
  break;
1110
1142
  case "csv":
1111
- n = /* @__PURE__ */ e.jsx(I1, { className: t });
1143
+ n = /* @__PURE__ */ e.jsx(F1, { className: t });
1112
1144
  break;
1113
1145
  case "gexf":
1114
- n = /* @__PURE__ */ e.jsx(F1, { className: t });
1146
+ n = /* @__PURE__ */ e.jsx(D1, { className: t });
1115
1147
  break;
1116
1148
  case "graphml":
1117
- n = /* @__PURE__ */ e.jsx(D1, { className: t });
1149
+ n = /* @__PURE__ */ e.jsx(B1, { className: t });
1118
1150
  break;
1119
1151
  case "json":
1120
- n = /* @__PURE__ */ e.jsx(B1, { className: t });
1152
+ n = /* @__PURE__ */ e.jsx(Y1, { className: t });
1121
1153
  break;
1122
1154
  case "rdf":
1123
- n = /* @__PURE__ */ e.jsx(Y1, { className: t });
1155
+ n = /* @__PURE__ */ e.jsx(W1, { className: t });
1124
1156
  break;
1125
1157
  case "ris":
1126
- n = /* @__PURE__ */ e.jsx(W1, { className: t });
1158
+ n = /* @__PURE__ */ e.jsx(G1, { className: t });
1127
1159
  break;
1128
1160
  case "tei":
1129
- n = /* @__PURE__ */ e.jsx(G1, { className: t });
1161
+ n = /* @__PURE__ */ e.jsx(U1, { className: t });
1130
1162
  break;
1131
1163
  case "txt":
1132
- n = /* @__PURE__ */ e.jsx(U1, { className: t });
1164
+ n = /* @__PURE__ */ e.jsx(J1, { className: t });
1133
1165
  break;
1134
1166
  }
1135
1167
  return /* @__PURE__ */ e.jsx("a", { href: s, download: c, className: "inline-block", children: n || c });
1136
1168
  }
1137
- const J1 = (s) => /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 384 384", ...s, children: [
1169
+ const X1 = (s) => /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 384 384", ...s, children: [
1138
1170
  /* @__PURE__ */ e.jsxs("defs", { children: [
1139
1171
  /* @__PURE__ */ e.jsx("clipPath", { id: "dracor_svg__clip-path", children: /* @__PURE__ */ e.jsx(
1140
1172
  "path",
@@ -1157,7 +1189,7 @@ const J1 = (s) => /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000
1157
1189
  }
1158
1190
  }
1159
1191
  ) }) }) })
1160
- ] }), X1 = (s) => /* @__PURE__ */ e.jsx(
1192
+ ] }), Q1 = (s) => /* @__PURE__ */ e.jsx(
1161
1193
  "svg",
1162
1194
  {
1163
1195
  xmlns: "http://www.w3.org/2000/svg",
@@ -1197,39 +1229,39 @@ const J1 = (s) => /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000
1197
1229
  ] })
1198
1230
  ] })
1199
1231
  }
1200
- ), { protocol: Q1, host: K1 } = window.location, e0 = `${Q1}//${K1}/id/`;
1201
- function j0({
1232
+ ), { protocol: K1, host: e0 } = window.location, a0 = `${K1}//${e0}/id/`;
1233
+ function E0({
1202
1234
  children: s,
1203
- className: l = "",
1204
- uri: r,
1235
+ className: r = "",
1236
+ uri: l,
1205
1237
  prefix: t,
1206
1238
  icon: c
1207
1239
  }) {
1208
- const n = s, o = r || `${t || e0}${n}`;
1240
+ const n = s, o = l || `${t || a0}${n}`;
1209
1241
  return /* @__PURE__ */ e.jsxs(
1210
1242
  "span",
1211
1243
  {
1212
- className: `inline-flex bg-white rounded-sm px-1.5 gap-1 align-text-bottom cursor-pointer ${l}`,
1244
+ className: `inline-flex bg-white rounded-sm px-1.5 gap-1 align-text-bottom cursor-pointer ${r}`,
1213
1245
  children: [
1214
- c === "ein" && /* @__PURE__ */ e.jsx(X1, { style: { width: "25px" } }),
1215
- c === "dracor" && /* @__PURE__ */ e.jsx(J1, { style: { width: "15px" } }),
1216
- /* @__PURE__ */ e.jsx(k1, { text: o, children: /* @__PURE__ */ e.jsxs("span", { title: "copy to clipboard", children: [
1246
+ c === "ein" && /* @__PURE__ */ e.jsx(Q1, { style: { width: "25px" } }),
1247
+ c === "dracor" && /* @__PURE__ */ e.jsx(X1, { style: { width: "15px" } }),
1248
+ /* @__PURE__ */ e.jsx(Z1, { text: o, children: /* @__PURE__ */ e.jsxs("span", { title: "copy to clipboard", children: [
1217
1249
  /* @__PURE__ */ e.jsx("span", { className: "pr-1", children: n }),
1218
- /* @__PURE__ */ e.jsx(Z, { icon: b1, size: "sm" })
1250
+ /* @__PURE__ */ e.jsx(y, { icon: w1, size: "sm" })
1219
1251
  ] }) })
1220
1252
  ]
1221
1253
  }
1222
1254
  );
1223
1255
  }
1224
- function b0({
1256
+ function M0({
1225
1257
  languages: s,
1226
- current: l = "",
1227
- onSelect: r
1258
+ current: r = "",
1259
+ onSelect: l
1228
1260
  }) {
1229
- return /* @__PURE__ */ e.jsxs(i1, { as: "div", className: "relative inline-block text-left", children: [
1230
- /* @__PURE__ */ e.jsx(o1, { className: "relative justify-center inline-flex mr-8 hover:text-neutral-100", children: /* @__PURE__ */ e.jsx(Z, { icon: w1, size: "2x" }) }),
1261
+ return /* @__PURE__ */ e.jsxs(o1, { as: "div", className: "relative inline-block text-left", children: [
1262
+ /* @__PURE__ */ e.jsx(h1, { className: "relative justify-center inline-flex mr-8 hover:text-neutral-100", children: /* @__PURE__ */ e.jsx(y, { icon: E1, size: "2x" }) }),
1231
1263
  /* @__PURE__ */ e.jsx(
1232
- h1,
1264
+ d1,
1233
1265
  {
1234
1266
  as: c1,
1235
1267
  enter: "transition ease-out duration-100",
@@ -1238,12 +1270,12 @@ function b0({
1238
1270
  leave: "transition ease-in duration-75",
1239
1271
  leaveFrom: "transform opacity-100 scale-100",
1240
1272
  leaveTo: "transform opacity-0 scale-95",
1241
- children: /* @__PURE__ */ e.jsx(d1, { className: "flex flex-col origin-top absolute top-6 mt-2 p-[0.2em] rounded-sm shadow-lg bg-white ring-1 ring-black/10 focus:outline-none z-10", children: s.map((t) => /* @__PURE__ */ e.jsx(v1, { children: /* @__PURE__ */ e.jsx(
1273
+ children: /* @__PURE__ */ e.jsx(v1, { className: "flex flex-col origin-top absolute top-6 mt-2 p-[0.2em] rounded-sm shadow-lg bg-white ring-1 ring-black/10 focus:outline-none z-10", children: s.map((t) => /* @__PURE__ */ e.jsx(m1, { children: /* @__PURE__ */ e.jsx(
1242
1274
  "button",
1243
1275
  {
1244
1276
  className: `group flex w-full items-center rounded-sm px-2 py-1
1245
- text-sm ${t === l ? "bg-blue-300 text-white font-medium" : "text-gray-900 hover:text-gray-900 hover:bg-blue-100"}`,
1246
- onClick: () => r(t),
1277
+ text-sm ${t === r ? "bg-blue-300 text-white font-medium" : "text-gray-900 hover:text-gray-900 hover:bg-blue-100"}`,
1278
+ onClick: () => l(t),
1247
1279
  children: t
1248
1280
  },
1249
1281
  t
@@ -1252,27 +1284,27 @@ function b0({
1252
1284
  )
1253
1285
  ] });
1254
1286
  }
1255
- function a0({ label: s, href: l, active: r, className: t }) {
1256
- return /* @__PURE__ */ e.jsx(F, { to: l, className: f1(r, t), children: s });
1287
+ function s0({ label: s, href: r, active: l, className: t }) {
1288
+ return /* @__PURE__ */ e.jsx(I, { to: r, className: u1(l, t), children: s });
1257
1289
  }
1258
- function f1(s = !1, l = "") {
1290
+ function u1(s = !1, r = "") {
1259
1291
  return `block md:inline-block justify-center text-white hover:text-blue-100
1260
1292
  uppercase
1261
- ${s ? "border-b-4" : ""} ${l}`;
1293
+ ${s ? "border-b-4" : ""} ${r}`;
1262
1294
  }
1263
- function s0({ label: s, items: l, menuClass: r }) {
1264
- const t = m1();
1265
- function c({ href: o, selected: v }) {
1266
- return v !== void 0 ? v : t.pathname.startsWith(o);
1295
+ function t0({ label: s, items: r, menuClass: l }) {
1296
+ const t = x1();
1297
+ function c({ href: o, selected: m }) {
1298
+ return m !== void 0 ? m : t.pathname.startsWith(o);
1267
1299
  }
1268
- const n = !!l.find((o) => c(o));
1269
- return /* @__PURE__ */ e.jsxs(i1, { as: "div", className: "relative inline-block text-left", children: [
1270
- /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(o1, { className: f1(n, r), children: [
1300
+ const n = !!r.find((o) => c(o));
1301
+ return /* @__PURE__ */ e.jsxs(o1, { as: "div", className: "relative inline-block text-left", children: [
1302
+ /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(h1, { className: u1(n, l), children: [
1271
1303
  s,
1272
1304
  /* @__PURE__ */ e.jsx(
1273
- Z,
1305
+ y,
1274
1306
  {
1275
- icon: E1,
1307
+ icon: M1,
1276
1308
  className: "ml-2 mt-1",
1277
1309
  size: "sm",
1278
1310
  "aria-hidden": "true"
@@ -1280,7 +1312,7 @@ function s0({ label: s, items: l, menuClass: r }) {
1280
1312
  )
1281
1313
  ] }) }),
1282
1314
  /* @__PURE__ */ e.jsx(
1283
- h1,
1315
+ d1,
1284
1316
  {
1285
1317
  as: c1,
1286
1318
  enter: "transition ease-out duration-100",
@@ -1289,8 +1321,8 @@ function s0({ label: s, items: l, menuClass: r }) {
1289
1321
  leave: "transition ease-in duration-75",
1290
1322
  leaveFrom: "transform opacity-100 scale-100",
1291
1323
  leaveTo: "transform opacity-0 scale-95",
1292
- children: /* @__PURE__ */ e.jsx(d1, { className: "absolute left-0 mt-2 min-w-fit whitespace-nowrap origin-top-right divide-y divide-gray-100 rounded-sm bg-white shadow-lg focus:outline-hidden", children: /* @__PURE__ */ e.jsx("div", { className: "px-1 py-1", children: l.map((o) => /* @__PURE__ */ e.jsx(v1, { children: /* @__PURE__ */ e.jsx(
1293
- F,
1324
+ children: /* @__PURE__ */ e.jsx(v1, { className: "absolute left-0 mt-2 min-w-fit whitespace-nowrap origin-top-right divide-y divide-gray-100 rounded-sm bg-white shadow-lg focus:outline-hidden", children: /* @__PURE__ */ e.jsx("div", { className: "px-1 py-1", children: r.map((o) => /* @__PURE__ */ e.jsx(m1, { children: /* @__PURE__ */ e.jsx(
1325
+ I,
1294
1326
  {
1295
1327
  to: o.href,
1296
1328
  className: `group flex w-full items-center rounded-sm px-2 py-1
@@ -1302,36 +1334,36 @@ function s0({ label: s, items: l, menuClass: r }) {
1302
1334
  )
1303
1335
  ] });
1304
1336
  }
1305
- function w0({
1337
+ function N0({
1306
1338
  title: s,
1307
- logo: l,
1308
- logoClass: r,
1339
+ logo: r,
1340
+ logoClass: l,
1309
1341
  version: t,
1310
1342
  gitHubUrl: c,
1311
1343
  gitHubIcon: n,
1312
1344
  gitHubTitle: o,
1313
- addItem: v,
1345
+ addItem: m,
1314
1346
  navItems: _
1315
1347
  }) {
1316
- const [x, d] = S(!1), u = m1();
1317
- function p({ href: m, active: b }) {
1318
- return b !== void 0 ? b : u.pathname.startsWith(m);
1348
+ const [h, d] = E(!1), f = x1();
1349
+ function p({ href: x, active: b }) {
1350
+ return b !== void 0 ? b : f.pathname.startsWith(x);
1319
1351
  }
1320
1352
  return /* @__PURE__ */ e.jsxs("nav", { className: "flex items-center justify-between flex-wrap p-4 bg-primary text-white font-medium", children: [
1321
- /* @__PURE__ */ e.jsx(F, { to: "/", children: /* @__PURE__ */ e.jsx(
1353
+ /* @__PURE__ */ e.jsx(I, { to: "/", children: /* @__PURE__ */ e.jsx(
1322
1354
  "img",
1323
1355
  {
1324
1356
  alt: `${s} logo`,
1325
1357
  title: `${s}${t ? ` (${t})` : ""}`,
1326
- className: `h-12 ${r || ""}`,
1327
- src: l
1358
+ className: `h-12 ${l || ""}`,
1359
+ src: r
1328
1360
  }
1329
1361
  ) }),
1330
1362
  /* @__PURE__ */ e.jsx("div", { className: "block md:hidden", children: /* @__PURE__ */ e.jsx(
1331
1363
  "button",
1332
1364
  {
1333
1365
  className: "flex items-center px-3 py-2 hover:text-blue-100",
1334
- onClick: () => d(!x),
1366
+ onClick: () => d(!h),
1335
1367
  children: /* @__PURE__ */ e.jsxs(
1336
1368
  "svg",
1337
1369
  {
@@ -1349,34 +1381,34 @@ function w0({
1349
1381
  /* @__PURE__ */ e.jsxs(
1350
1382
  "div",
1351
1383
  {
1352
- className: `block md:flex grow md:items-center w-full md:w-auto ${x ? "" : "hidden"}`,
1384
+ className: `block md:flex grow md:items-center w-full md:w-auto ${h ? "" : "hidden"}`,
1353
1385
  children: [
1354
- (_ == null ? void 0 : _.length) && /* @__PURE__ */ e.jsx("div", { className: "my-2 md:grow md:flex-row flex justify-center flex-col gap-4", children: _.map(
1355
- (m) => "items" in m ? /* @__PURE__ */ e.jsx(
1356
- s0,
1386
+ _?.length && /* @__PURE__ */ e.jsx("div", { className: "my-2 md:grow md:flex-row flex justify-center flex-col gap-4", children: _.map(
1387
+ (x) => "items" in x ? /* @__PURE__ */ e.jsx(
1388
+ t0,
1357
1389
  {
1358
- label: m.label,
1359
- items: m.items
1390
+ label: x.label,
1391
+ items: x.items
1360
1392
  },
1361
- m.label
1393
+ x.label
1362
1394
  ) : /* @__PURE__ */ e.jsx(
1363
- a0,
1395
+ s0,
1364
1396
  {
1365
- label: m.label,
1366
- href: m.href,
1367
- active: p(m)
1397
+ label: x.label,
1398
+ href: x.href,
1399
+ active: p(x)
1368
1400
  },
1369
- m.label
1401
+ x.label
1370
1402
  )
1371
1403
  ) }),
1372
- v,
1404
+ m,
1373
1405
  c && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
1374
1406
  "a",
1375
1407
  {
1376
1408
  href: c,
1377
1409
  title: o || "GitHub",
1378
1410
  className: "text-white text-2xl",
1379
- children: n || /* @__PURE__ */ e.jsx(Z, { icon: Z1, size: "2xl" })
1411
+ children: n || /* @__PURE__ */ e.jsx(y, { icon: A1, size: "2xl" })
1380
1412
  }
1381
1413
  ) })
1382
1414
  ]
@@ -1384,9 +1416,9 @@ function w0({
1384
1416
  )
1385
1417
  ] });
1386
1418
  }
1387
- function E0({ columns: s, data: l, defaultSort: r = [] }) {
1388
- const [t, c] = S(r), [n, o] = S(""), [v] = S(l), _ = A1({
1389
- data: v,
1419
+ function y0({ columns: s, data: r, defaultSort: l = [] }) {
1420
+ const [t, c] = E(l), [n, o] = E(""), [m] = E(r), _ = T1({
1421
+ data: m,
1390
1422
  columns: s,
1391
1423
  state: {
1392
1424
  sorting: t,
@@ -1394,18 +1426,18 @@ function E0({ columns: s, data: l, defaultSort: r = [] }) {
1394
1426
  },
1395
1427
  onSortingChange: c,
1396
1428
  onGlobalFilterChange: o,
1397
- getCoreRowModel: R1(),
1398
- getSortedRowModel: T1(),
1399
- getFilteredRowModel: C1(),
1429
+ getCoreRowModel: S1(),
1430
+ getSortedRowModel: C1(),
1431
+ getFilteredRowModel: R1(),
1400
1432
  debugTable: !0
1401
1433
  });
1402
1434
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1403
1435
  /* @__PURE__ */ e.jsxs("div", { className: "mb-2", children: [
1404
1436
  /* @__PURE__ */ e.jsx(
1405
- q1,
1437
+ V1,
1406
1438
  {
1407
1439
  value: n ?? "",
1408
- onChange: (x) => o(String(x)),
1440
+ onChange: (h) => o(String(h)),
1409
1441
  placeholder: "Search"
1410
1442
  }
1411
1443
  ),
@@ -1416,7 +1448,7 @@ function E0({ columns: s, data: l, defaultSort: r = [] }) {
1416
1448
  ] })
1417
1449
  ] }),
1418
1450
  /* @__PURE__ */ e.jsx("div", { className: "flex", children: /* @__PURE__ */ e.jsxs("table", { children: [
1419
- /* @__PURE__ */ e.jsx("thead", { children: _.getHeaderGroups().map((x) => /* @__PURE__ */ e.jsx("tr", { children: x.headers.map((d) => /* @__PURE__ */ e.jsx("th", { colSpan: d.colSpan, children: d.isPlaceholder ? null : /* @__PURE__ */ e.jsxs(
1451
+ /* @__PURE__ */ e.jsx("thead", { children: _.getHeaderGroups().map((h) => /* @__PURE__ */ e.jsx("tr", { children: h.headers.map((d) => /* @__PURE__ */ e.jsx("th", { colSpan: d.colSpan, children: d.isPlaceholder ? null : /* @__PURE__ */ e.jsxs(
1420
1452
  "div",
1421
1453
  {
1422
1454
  className: d.column.getCanSort() ? "cursor-pointer select-none" : "",
@@ -1427,44 +1459,42 @@ function E0({ columns: s, data: l, defaultSort: r = [] }) {
1427
1459
  d.getContext()
1428
1460
  ),
1429
1461
  " ",
1430
- /* @__PURE__ */ e.jsx(t0, { status: d.column.getIsSorted() })
1462
+ /* @__PURE__ */ e.jsx(r0, { status: d.column.getIsSorted() })
1431
1463
  ]
1432
1464
  }
1433
- ) }, d.id)) }, x.id)) }),
1434
- /* @__PURE__ */ e.jsx("tbody", { children: _.getRowModel().rows.map((x, d) => /* @__PURE__ */ e.jsx("tr", { className: d % 2 ? "" : "bg-neutral-200", children: x.getVisibleCells().map((u) => /* @__PURE__ */ e.jsx("td", { children: t1(u.column.columnDef.cell, u.getContext()) }, u.id)) }, x.id)) })
1465
+ ) }, d.id)) }, h.id)) }),
1466
+ /* @__PURE__ */ e.jsx("tbody", { children: _.getRowModel().rows.map((h, d) => /* @__PURE__ */ e.jsx("tr", { className: d % 2 ? "" : "bg-neutral-200", children: h.getVisibleCells().map((f) => /* @__PURE__ */ e.jsx("td", { children: t1(f.column.columnDef.cell, f.getContext()) }, f.id)) }, h.id)) })
1435
1467
  ] }) })
1436
1468
  ] });
1437
1469
  }
1438
- function t0({ status: s }) {
1470
+ function r0({ status: s }) {
1439
1471
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1440
1472
  /* @__PURE__ */ e.jsx("span", { className: s !== "asc" ? "opacity-40" : "", children: "▲" }),
1441
1473
  /* @__PURE__ */ e.jsx("span", { className: s !== "desc" ? "opacity-40" : "", children: "▼" })
1442
1474
  ] });
1443
1475
  }
1444
- function M0({ data: s }) {
1445
- return /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-center text-gray-500 border-b border-gray-200 dark:text-gray-400 dark:border-gray-700", children: /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap -mb-px gap-3", children: s.map(({ label: l, href: r, active: t }) => /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(F, { to: r, className: r0(t || !1), children: l }) }, r)) }) });
1476
+ function k0({ data: s }) {
1477
+ return /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-center text-gray-500 border-b border-gray-200 dark:text-gray-400 dark:border-gray-700", children: /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap -mb-px gap-3", children: s.map(({ label: r, href: l, active: t }) => /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(I, { to: l, className: l0(t || !1), children: r }) }, l)) }) });
1446
1478
  }
1447
- function r0(s) {
1448
- let l = "inline-block p-4 border-b-2 text-gray-500 hover:text-gray-600";
1449
- return s ? l += " border-primary" : l += " border-transparent hover:border-gray-300", l;
1479
+ function l0(s) {
1480
+ let r = "inline-block p-4 border-b-2 text-gray-500 hover:text-gray-600";
1481
+ return s ? r += " border-primary" : r += " border-transparent hover:border-gray-300", r;
1450
1482
  }
1451
- function N0({ url: s }) {
1452
- const l = u1(null);
1453
- return I(() => {
1454
- var t;
1455
- const r = new S1();
1456
- for (; (t = l.current) != null && t.firstChild; )
1457
- l.current.removeChild(l.current.firstChild);
1458
- r.getHTML5(s, (c) => {
1459
- var n;
1460
- (n = l.current) == null || n.appendChild(c);
1483
+ function Z0({ url: s }) {
1484
+ const r = p1(null);
1485
+ return z(() => {
1486
+ const l = new P1();
1487
+ for (; r.current?.firstChild; )
1488
+ r.current.removeChild(r.current.firstChild);
1489
+ l.getHTML5(s, (t) => {
1490
+ r.current?.appendChild(t);
1461
1491
  });
1462
- }, [s]), /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("div", { ref: l }) });
1492
+ }, [s]), /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("div", { ref: r }) });
1463
1493
  }
1464
- function y0({
1494
+ function A0({
1465
1495
  written: s,
1466
- premiere: l,
1467
- print: r,
1496
+ premiere: r,
1497
+ print: l,
1468
1498
  locale: t,
1469
1499
  labelPremiered: c = "premiered",
1470
1500
  labelPrinted: n = "printed",
@@ -1473,42 +1503,43 @@ function y0({
1473
1503
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1474
1504
  s && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1475
1505
  /* @__PURE__ */ e.jsxs("span", { title: o, children: [
1476
- /* @__PURE__ */ e.jsx(Z, { icon: M1, size: "sm" }),
1506
+ /* @__PURE__ */ e.jsx(y, { icon: N1, size: "sm" }),
1477
1507
  " ",
1478
- L(s, t)
1508
+ V(s, t)
1479
1509
  ] }),
1480
1510
  " "
1481
1511
  ] }),
1482
- l && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1512
+ r && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1483
1513
  /* @__PURE__ */ e.jsxs("span", { title: c, children: [
1484
- /* @__PURE__ */ e.jsx(Z, { icon: N1, size: "sm" }),
1514
+ /* @__PURE__ */ e.jsx(y, { icon: y1, size: "sm" }),
1485
1515
  " ",
1486
- L(l, t)
1516
+ V(r, t)
1487
1517
  ] }),
1488
1518
  " "
1489
1519
  ] }),
1490
- r && /* @__PURE__ */ e.jsxs("span", { title: n, children: [
1491
- /* @__PURE__ */ e.jsx(Z, { icon: y1, size: "sm" }),
1520
+ l && /* @__PURE__ */ e.jsxs("span", { title: n, children: [
1521
+ /* @__PURE__ */ e.jsx(y, { icon: k1, size: "sm" }),
1492
1522
  " ",
1493
- L(r, t)
1523
+ V(l, t)
1494
1524
  ] })
1495
1525
  ] });
1496
1526
  }
1497
1527
  export {
1498
- g0 as ApiDoc,
1499
- _0 as AuthorInfo,
1500
- u0 as Authors,
1501
- q1 as DebouncedInput,
1502
- p0 as DownloadButton,
1503
- j0 as IdCopy,
1504
- x1 as IdLink,
1505
- b0 as LanguageMenu,
1506
- w0 as NavBar,
1507
- N0 as TEIText,
1508
- E0 as Table,
1509
- M0 as Tabs,
1510
- y0 as Years,
1511
- $ as formatEra,
1512
- L as formatYear
1528
+ _0 as ApiDoc,
1529
+ p0 as AuthorInfo,
1530
+ j0 as Authors,
1531
+ V1 as DebouncedInput,
1532
+ b0 as DocPage,
1533
+ w0 as DownloadButton,
1534
+ E0 as IdCopy,
1535
+ f1 as IdLink,
1536
+ M0 as LanguageMenu,
1537
+ N0 as NavBar,
1538
+ Z0 as TEIText,
1539
+ y0 as Table,
1540
+ k0 as Tabs,
1541
+ A0 as Years,
1542
+ H as formatEra,
1543
+ V as formatYear
1513
1544
  };
1514
1545
  //# sourceMappingURL=index.es.js.map