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