mc-react-library 0.7.6 → 0.7.8
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/main.css +1 -1
- package/dist/main.js +964 -922
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./main.css";
|
|
2
|
-
import _n, { useState as B, useRef as Mt, useEffect as
|
|
2
|
+
import _n, { useState as B, useRef as Mt, useEffect as rt, useMemo as Wn } from "react";
|
|
3
3
|
import { fromOptimade as Xn, fromStructureData as qn, fromJSON as Bt, toJSON as mn, parseStructure as on } from "matsci-parse";
|
|
4
4
|
var Tt = { exports: {} }, _t = {};
|
|
5
5
|
/**
|
|
@@ -16,11 +16,11 @@ function $n() {
|
|
|
16
16
|
if (sn) return _t;
|
|
17
17
|
sn = 1;
|
|
18
18
|
var t = _n, r = Symbol.for("react.element"), o = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
|
-
function m(a,
|
|
20
|
-
var
|
|
21
|
-
l !== void 0 && (p = "" + l),
|
|
22
|
-
for (
|
|
23
|
-
if (a && a.defaultProps) for (
|
|
19
|
+
function m(a, g, l) {
|
|
20
|
+
var x, h = {}, p = null, f = null;
|
|
21
|
+
l !== void 0 && (p = "" + l), g.key !== void 0 && (p = "" + g.key), g.ref !== void 0 && (f = g.ref);
|
|
22
|
+
for (x in g) s.call(g, x) && !_.hasOwnProperty(x) && (h[x] = g[x]);
|
|
23
|
+
if (a && a.defaultProps) for (x in g = a.defaultProps, g) h[x] === void 0 && (h[x] = g[x]);
|
|
24
24
|
return { $$typeof: r, type: a, key: p, ref: f, props: h, _owner: i.current };
|
|
25
25
|
}
|
|
26
26
|
return _t.Fragment = o, _t.jsx = m, _t.jsxs = m, _t;
|
|
@@ -38,54 +38,54 @@ var mt = {};
|
|
|
38
38
|
var an;
|
|
39
39
|
function te() {
|
|
40
40
|
return an || (an = 1, process.env.NODE_ENV !== "production" && function() {
|
|
41
|
-
var t = _n, r = Symbol.for("react.element"), o = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), a = Symbol.for("react.context"),
|
|
42
|
-
function
|
|
41
|
+
var t = _n, r = Symbol.for("react.element"), o = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), a = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), v = Symbol.iterator, z = "@@iterator";
|
|
42
|
+
function k(n) {
|
|
43
43
|
if (n === null || typeof n != "object")
|
|
44
44
|
return null;
|
|
45
|
-
var c =
|
|
45
|
+
var c = v && n[v] || n[z];
|
|
46
46
|
return typeof c == "function" ? c : null;
|
|
47
47
|
}
|
|
48
|
-
var
|
|
49
|
-
function
|
|
48
|
+
var C = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
49
|
+
function j(n) {
|
|
50
50
|
{
|
|
51
|
-
for (var c = arguments.length,
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
for (var c = arguments.length, u = new Array(c > 1 ? c - 1 : 0), P = 1; P < c; P++)
|
|
52
|
+
u[P - 1] = arguments[P];
|
|
53
|
+
T("error", n, u);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function T(n, c, u) {
|
|
57
57
|
{
|
|
58
|
-
var
|
|
59
|
-
|
|
60
|
-
var
|
|
58
|
+
var P = C.ReactDebugCurrentFrame, A = P.getStackAddendum();
|
|
59
|
+
A !== "" && (c += "%s", u = u.concat([A]));
|
|
60
|
+
var S = u.map(function(w) {
|
|
61
61
|
return String(w);
|
|
62
62
|
});
|
|
63
|
-
|
|
63
|
+
S.unshift("Warning: " + c), Function.prototype.apply.call(console[n], console, S);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
var
|
|
67
|
-
|
|
68
|
-
function
|
|
69
|
-
return !!(typeof n == "string" || typeof n == "function" || n === s || n === _ || ht || n === i || n === l || n ===
|
|
66
|
+
var R = !1, E = !1, G = !1, pt = !1, ht = !1, K;
|
|
67
|
+
K = Symbol.for("react.module.reference");
|
|
68
|
+
function At(n) {
|
|
69
|
+
return !!(typeof n == "string" || typeof n == "function" || n === s || n === _ || ht || n === i || n === l || n === x || pt || n === f || R || E || G || typeof n == "object" && n !== null && (n.$$typeof === p || n.$$typeof === h || n.$$typeof === m || n.$$typeof === a || n.$$typeof === g || // This needs to include all possible module reference object
|
|
70
70
|
// types supported by any Flight configuration anywhere since
|
|
71
71
|
// we don't know which Flight build this will end up being used
|
|
72
72
|
// with.
|
|
73
|
-
n.$$typeof ===
|
|
73
|
+
n.$$typeof === K || n.getModuleId !== void 0));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
var
|
|
77
|
-
if (
|
|
78
|
-
return
|
|
79
|
-
var
|
|
80
|
-
return
|
|
75
|
+
function Q(n, c, u) {
|
|
76
|
+
var P = n.displayName;
|
|
77
|
+
if (P)
|
|
78
|
+
return P;
|
|
79
|
+
var A = c.displayName || c.name || "";
|
|
80
|
+
return A !== "" ? u + "(" + A + ")" : u;
|
|
81
81
|
}
|
|
82
82
|
function ft(n) {
|
|
83
83
|
return n.displayName || "Context";
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function J(n) {
|
|
86
86
|
if (n == null)
|
|
87
87
|
return null;
|
|
88
|
-
if (typeof n.tag == "number" &&
|
|
88
|
+
if (typeof n.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
|
89
89
|
return n.displayName || n.name || null;
|
|
90
90
|
if (typeof n == "string")
|
|
91
91
|
return n;
|
|
@@ -100,7 +100,7 @@ function te() {
|
|
|
100
100
|
return "StrictMode";
|
|
101
101
|
case l:
|
|
102
102
|
return "Suspense";
|
|
103
|
-
case
|
|
103
|
+
case x:
|
|
104
104
|
return "SuspenseList";
|
|
105
105
|
}
|
|
106
106
|
if (typeof n == "object")
|
|
@@ -109,17 +109,17 @@ function te() {
|
|
|
109
109
|
var c = n;
|
|
110
110
|
return ft(c) + ".Consumer";
|
|
111
111
|
case m:
|
|
112
|
-
var
|
|
113
|
-
return ft(
|
|
114
|
-
case
|
|
115
|
-
return
|
|
112
|
+
var u = n;
|
|
113
|
+
return ft(u._context) + ".Provider";
|
|
114
|
+
case g:
|
|
115
|
+
return Q(n, n.render, "ForwardRef");
|
|
116
116
|
case h:
|
|
117
|
-
var
|
|
118
|
-
return
|
|
117
|
+
var P = n.displayName || null;
|
|
118
|
+
return P !== null ? P : J(n.type) || "Memo";
|
|
119
119
|
case p: {
|
|
120
|
-
var
|
|
120
|
+
var A = n, S = A._payload, w = A._init;
|
|
121
121
|
try {
|
|
122
|
-
return
|
|
122
|
+
return J(w(S));
|
|
123
123
|
} catch {
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
@@ -127,14 +127,14 @@ function te() {
|
|
|
127
127
|
}
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
130
|
-
var
|
|
130
|
+
var V = Object.assign, X = 0, at, ct, d, y, I, D, W;
|
|
131
131
|
function Ht() {
|
|
132
132
|
}
|
|
133
133
|
Ht.__reactDisabledLog = !0;
|
|
134
134
|
function wn() {
|
|
135
135
|
{
|
|
136
|
-
if (
|
|
137
|
-
at = console.log, ct = console.info, d = console.warn,
|
|
136
|
+
if (X === 0) {
|
|
137
|
+
at = console.log, ct = console.info, d = console.warn, y = console.error, I = console.group, D = console.groupCollapsed, W = console.groupEnd;
|
|
138
138
|
var n = {
|
|
139
139
|
configurable: !0,
|
|
140
140
|
enumerable: !0,
|
|
@@ -151,77 +151,77 @@ function te() {
|
|
|
151
151
|
groupEnd: n
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
|
|
154
|
+
X++;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function kn() {
|
|
158
158
|
{
|
|
159
|
-
if (
|
|
159
|
+
if (X--, X === 0) {
|
|
160
160
|
var n = {
|
|
161
161
|
configurable: !0,
|
|
162
162
|
enumerable: !0,
|
|
163
163
|
writable: !0
|
|
164
164
|
};
|
|
165
165
|
Object.defineProperties(console, {
|
|
166
|
-
log:
|
|
166
|
+
log: V({}, n, {
|
|
167
167
|
value: at
|
|
168
168
|
}),
|
|
169
|
-
info:
|
|
169
|
+
info: V({}, n, {
|
|
170
170
|
value: ct
|
|
171
171
|
}),
|
|
172
|
-
warn:
|
|
172
|
+
warn: V({}, n, {
|
|
173
173
|
value: d
|
|
174
174
|
}),
|
|
175
|
-
error:
|
|
176
|
-
value:
|
|
175
|
+
error: V({}, n, {
|
|
176
|
+
value: y
|
|
177
177
|
}),
|
|
178
|
-
group:
|
|
178
|
+
group: V({}, n, {
|
|
179
179
|
value: I
|
|
180
180
|
}),
|
|
181
|
-
groupCollapsed:
|
|
182
|
-
value:
|
|
181
|
+
groupCollapsed: V({}, n, {
|
|
182
|
+
value: D
|
|
183
183
|
}),
|
|
184
|
-
groupEnd:
|
|
185
|
-
value:
|
|
184
|
+
groupEnd: V({}, n, {
|
|
185
|
+
value: W
|
|
186
186
|
})
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
|
|
189
|
+
X < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
var jt =
|
|
193
|
-
function
|
|
192
|
+
var jt = C.ReactCurrentDispatcher, Ct;
|
|
193
|
+
function Pt(n, c, u) {
|
|
194
194
|
{
|
|
195
195
|
if (Ct === void 0)
|
|
196
196
|
try {
|
|
197
197
|
throw Error();
|
|
198
|
-
} catch (
|
|
199
|
-
var
|
|
200
|
-
Ct =
|
|
198
|
+
} catch (A) {
|
|
199
|
+
var P = A.stack.trim().match(/\n( *(at )?)/);
|
|
200
|
+
Ct = P && P[1] || "";
|
|
201
201
|
}
|
|
202
202
|
return `
|
|
203
203
|
` + Ct + n;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
var St = !1,
|
|
206
|
+
var St = !1, vt;
|
|
207
207
|
{
|
|
208
|
-
var
|
|
209
|
-
|
|
208
|
+
var An = typeof WeakMap == "function" ? WeakMap : Map;
|
|
209
|
+
vt = new An();
|
|
210
210
|
}
|
|
211
211
|
function Ut(n, c) {
|
|
212
212
|
if (!n || St)
|
|
213
213
|
return "";
|
|
214
214
|
{
|
|
215
|
-
var
|
|
216
|
-
if (
|
|
217
|
-
return
|
|
215
|
+
var u = vt.get(n);
|
|
216
|
+
if (u !== void 0)
|
|
217
|
+
return u;
|
|
218
218
|
}
|
|
219
|
-
var
|
|
219
|
+
var P;
|
|
220
220
|
St = !0;
|
|
221
|
-
var
|
|
221
|
+
var A = Error.prepareStackTrace;
|
|
222
222
|
Error.prepareStackTrace = void 0;
|
|
223
|
-
var
|
|
224
|
-
|
|
223
|
+
var S;
|
|
224
|
+
S = jt.current, jt.current = null, wn();
|
|
225
225
|
try {
|
|
226
226
|
if (c) {
|
|
227
227
|
var w = function() {
|
|
@@ -234,122 +234,122 @@ function te() {
|
|
|
234
234
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
235
235
|
try {
|
|
236
236
|
Reflect.construct(w, []);
|
|
237
|
-
} catch (
|
|
238
|
-
|
|
237
|
+
} catch (M) {
|
|
238
|
+
P = M;
|
|
239
239
|
}
|
|
240
240
|
Reflect.construct(n, [], w);
|
|
241
241
|
} else {
|
|
242
242
|
try {
|
|
243
243
|
w.call();
|
|
244
|
-
} catch (
|
|
245
|
-
|
|
244
|
+
} catch (M) {
|
|
245
|
+
P = M;
|
|
246
246
|
}
|
|
247
247
|
n.call(w.prototype);
|
|
248
248
|
}
|
|
249
249
|
} else {
|
|
250
250
|
try {
|
|
251
251
|
throw Error();
|
|
252
|
-
} catch (
|
|
253
|
-
|
|
252
|
+
} catch (M) {
|
|
253
|
+
P = M;
|
|
254
254
|
}
|
|
255
255
|
n();
|
|
256
256
|
}
|
|
257
|
-
} catch (
|
|
258
|
-
if (
|
|
259
|
-
for (var
|
|
260
|
-
`),
|
|
261
|
-
`), N =
|
|
257
|
+
} catch (M) {
|
|
258
|
+
if (M && P && typeof M.stack == "string") {
|
|
259
|
+
for (var b = M.stack.split(`
|
|
260
|
+
`), O = P.stack.split(`
|
|
261
|
+
`), N = b.length - 1, F = O.length - 1; N >= 1 && F >= 0 && b[N] !== O[F]; )
|
|
262
262
|
F--;
|
|
263
263
|
for (; N >= 1 && F >= 0; N--, F--)
|
|
264
|
-
if (
|
|
264
|
+
if (b[N] !== O[F]) {
|
|
265
265
|
if (N !== 1 || F !== 1)
|
|
266
266
|
do
|
|
267
|
-
if (N--, F--, F < 0 ||
|
|
268
|
-
var
|
|
269
|
-
` +
|
|
270
|
-
return n.displayName &&
|
|
267
|
+
if (N--, F--, F < 0 || b[N] !== O[F]) {
|
|
268
|
+
var L = `
|
|
269
|
+
` + b[N].replace(" at new ", " at ");
|
|
270
|
+
return n.displayName && L.includes("<anonymous>") && (L = L.replace("<anonymous>", n.displayName)), typeof n == "function" && vt.set(n, L), L;
|
|
271
271
|
}
|
|
272
272
|
while (N >= 1 && F >= 0);
|
|
273
273
|
break;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
} finally {
|
|
277
|
-
St = !1, jt.current =
|
|
277
|
+
St = !1, jt.current = S, kn(), Error.prepareStackTrace = A;
|
|
278
278
|
}
|
|
279
|
-
var
|
|
280
|
-
return typeof n == "function" &&
|
|
279
|
+
var it = n ? n.displayName || n.name : "", q = it ? Pt(it) : "";
|
|
280
|
+
return typeof n == "function" && vt.set(n, q), q;
|
|
281
281
|
}
|
|
282
|
-
function jn(n, c,
|
|
282
|
+
function jn(n, c, u) {
|
|
283
283
|
return Ut(n, !1);
|
|
284
284
|
}
|
|
285
285
|
function Cn(n) {
|
|
286
286
|
var c = n.prototype;
|
|
287
287
|
return !!(c && c.isReactComponent);
|
|
288
288
|
}
|
|
289
|
-
function yt(n, c,
|
|
289
|
+
function yt(n, c, u) {
|
|
290
290
|
if (n == null)
|
|
291
291
|
return "";
|
|
292
292
|
if (typeof n == "function")
|
|
293
293
|
return Ut(n, Cn(n));
|
|
294
294
|
if (typeof n == "string")
|
|
295
|
-
return
|
|
295
|
+
return Pt(n);
|
|
296
296
|
switch (n) {
|
|
297
297
|
case l:
|
|
298
|
-
return
|
|
299
|
-
case
|
|
300
|
-
return
|
|
298
|
+
return Pt("Suspense");
|
|
299
|
+
case x:
|
|
300
|
+
return Pt("SuspenseList");
|
|
301
301
|
}
|
|
302
302
|
if (typeof n == "object")
|
|
303
303
|
switch (n.$$typeof) {
|
|
304
|
-
case
|
|
304
|
+
case g:
|
|
305
305
|
return jn(n.render);
|
|
306
306
|
case h:
|
|
307
|
-
return yt(n.type, c,
|
|
307
|
+
return yt(n.type, c, u);
|
|
308
308
|
case p: {
|
|
309
|
-
var
|
|
309
|
+
var P = n, A = P._payload, S = P._init;
|
|
310
310
|
try {
|
|
311
|
-
return yt(
|
|
311
|
+
return yt(S(A), c, u);
|
|
312
312
|
} catch {
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
return "";
|
|
317
317
|
}
|
|
318
|
-
var lt = Object.prototype.hasOwnProperty, Jt = {}, Vt =
|
|
319
|
-
function
|
|
318
|
+
var lt = Object.prototype.hasOwnProperty, Jt = {}, Vt = C.ReactDebugCurrentFrame;
|
|
319
|
+
function xt(n) {
|
|
320
320
|
if (n) {
|
|
321
|
-
var c = n._owner,
|
|
322
|
-
Vt.setExtraStackFrame(
|
|
321
|
+
var c = n._owner, u = yt(n.type, n._source, c ? c.type : null);
|
|
322
|
+
Vt.setExtraStackFrame(u);
|
|
323
323
|
} else
|
|
324
324
|
Vt.setExtraStackFrame(null);
|
|
325
325
|
}
|
|
326
|
-
function Sn(n, c,
|
|
326
|
+
function Sn(n, c, u, P, A) {
|
|
327
327
|
{
|
|
328
|
-
var
|
|
328
|
+
var S = Function.call.bind(lt);
|
|
329
329
|
for (var w in n)
|
|
330
|
-
if (
|
|
331
|
-
var
|
|
330
|
+
if (S(n, w)) {
|
|
331
|
+
var b = void 0;
|
|
332
332
|
try {
|
|
333
333
|
if (typeof n[w] != "function") {
|
|
334
|
-
var
|
|
335
|
-
throw
|
|
334
|
+
var O = Error((P || "React class") + ": " + u + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
335
|
+
throw O.name = "Invariant Violation", O;
|
|
336
336
|
}
|
|
337
|
-
|
|
337
|
+
b = n[w](c, w, P, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
338
338
|
} catch (N) {
|
|
339
|
-
|
|
339
|
+
b = N;
|
|
340
340
|
}
|
|
341
|
-
|
|
341
|
+
b && !(b instanceof Error) && (xt(A), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", P || "React class", u, w, typeof b), xt(null)), b instanceof Error && !(b.message in Jt) && (Jt[b.message] = !0, xt(A), j("Failed %s type: %s", u, b.message), xt(null));
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
var
|
|
346
|
-
function
|
|
347
|
-
return
|
|
345
|
+
var In = Array.isArray;
|
|
346
|
+
function It(n) {
|
|
347
|
+
return In(n);
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function Rn(n) {
|
|
350
350
|
{
|
|
351
|
-
var c = typeof Symbol == "function" && Symbol.toStringTag,
|
|
352
|
-
return
|
|
351
|
+
var c = typeof Symbol == "function" && Symbol.toStringTag, u = c && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
352
|
+
return u;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
function Nn(n) {
|
|
@@ -364,9 +364,9 @@ function te() {
|
|
|
364
364
|
}
|
|
365
365
|
function Gt(n) {
|
|
366
366
|
if (Nn(n))
|
|
367
|
-
return
|
|
367
|
+
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Rn(n)), Yt(n);
|
|
368
368
|
}
|
|
369
|
-
var Kt =
|
|
369
|
+
var Kt = C.ReactCurrentOwner, Fn = {
|
|
370
370
|
key: !0,
|
|
371
371
|
ref: !0,
|
|
372
372
|
__self: !0,
|
|
@@ -393,78 +393,78 @@ function te() {
|
|
|
393
393
|
}
|
|
394
394
|
function Tn(n, c) {
|
|
395
395
|
{
|
|
396
|
-
var
|
|
397
|
-
Qt || (Qt = !0,
|
|
396
|
+
var u = function() {
|
|
397
|
+
Qt || (Qt = !0, j("%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://reactjs.org/link/special-props)", c));
|
|
398
398
|
};
|
|
399
|
-
|
|
400
|
-
get:
|
|
399
|
+
u.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
400
|
+
get: u,
|
|
401
401
|
configurable: !0
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
function Dn(n, c) {
|
|
406
406
|
{
|
|
407
|
-
var
|
|
408
|
-
Wt || (Wt = !0,
|
|
407
|
+
var u = function() {
|
|
408
|
+
Wt || (Wt = !0, j("%s: `ref` 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://reactjs.org/link/special-props)", c));
|
|
409
409
|
};
|
|
410
|
-
|
|
411
|
-
get:
|
|
410
|
+
u.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
411
|
+
get: u,
|
|
412
412
|
configurable: !0
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
var On = function(n, c,
|
|
417
|
-
var
|
|
416
|
+
var On = function(n, c, u, P, A, S, w) {
|
|
417
|
+
var b = {
|
|
418
418
|
// This tag allows us to uniquely identify this as a React Element
|
|
419
419
|
$$typeof: r,
|
|
420
420
|
// Built-in properties that belong on the element
|
|
421
421
|
type: n,
|
|
422
422
|
key: c,
|
|
423
|
-
ref:
|
|
423
|
+
ref: u,
|
|
424
424
|
props: w,
|
|
425
425
|
// Record the component responsible for creating this element.
|
|
426
|
-
_owner:
|
|
426
|
+
_owner: S
|
|
427
427
|
};
|
|
428
|
-
return
|
|
428
|
+
return b._store = {}, Object.defineProperty(b._store, "validated", {
|
|
429
429
|
configurable: !1,
|
|
430
430
|
enumerable: !1,
|
|
431
431
|
writable: !0,
|
|
432
432
|
value: !1
|
|
433
|
-
}), Object.defineProperty(
|
|
433
|
+
}), Object.defineProperty(b, "_self", {
|
|
434
434
|
configurable: !1,
|
|
435
435
|
enumerable: !1,
|
|
436
436
|
writable: !1,
|
|
437
|
-
value:
|
|
438
|
-
}), Object.defineProperty(
|
|
437
|
+
value: P
|
|
438
|
+
}), Object.defineProperty(b, "_source", {
|
|
439
439
|
configurable: !1,
|
|
440
440
|
enumerable: !1,
|
|
441
441
|
writable: !1,
|
|
442
|
-
value:
|
|
443
|
-
}), Object.freeze && (Object.freeze(
|
|
442
|
+
value: A
|
|
443
|
+
}), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
|
|
444
444
|
};
|
|
445
|
-
function Mn(n, c,
|
|
445
|
+
function Mn(n, c, u, P, A) {
|
|
446
446
|
{
|
|
447
|
-
var
|
|
448
|
-
|
|
449
|
-
for (
|
|
450
|
-
lt.call(c,
|
|
447
|
+
var S, w = {}, b = null, O = null;
|
|
448
|
+
u !== void 0 && (Gt(u), b = "" + u), En(c) && (Gt(c.key), b = "" + c.key), zn(c) && (O = c.ref, Bn(c, A));
|
|
449
|
+
for (S in c)
|
|
450
|
+
lt.call(c, S) && !Fn.hasOwnProperty(S) && (w[S] = c[S]);
|
|
451
451
|
if (n && n.defaultProps) {
|
|
452
452
|
var N = n.defaultProps;
|
|
453
|
-
for (
|
|
454
|
-
w[
|
|
453
|
+
for (S in N)
|
|
454
|
+
w[S] === void 0 && (w[S] = N[S]);
|
|
455
455
|
}
|
|
456
|
-
if (
|
|
456
|
+
if (b || O) {
|
|
457
457
|
var F = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
458
|
-
|
|
458
|
+
b && Tn(w, F), O && Dn(w, F);
|
|
459
459
|
}
|
|
460
|
-
return On(n,
|
|
460
|
+
return On(n, b, O, A, P, Kt.current, w);
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
var
|
|
464
|
-
function
|
|
463
|
+
var Rt = C.ReactCurrentOwner, Xt = C.ReactDebugCurrentFrame;
|
|
464
|
+
function ot(n) {
|
|
465
465
|
if (n) {
|
|
466
|
-
var c = n._owner,
|
|
467
|
-
Xt.setExtraStackFrame(
|
|
466
|
+
var c = n._owner, u = yt(n.type, n._source, c ? c.type : null);
|
|
467
|
+
Xt.setExtraStackFrame(u);
|
|
468
468
|
} else
|
|
469
469
|
Xt.setExtraStackFrame(null);
|
|
470
470
|
}
|
|
@@ -475,8 +475,8 @@ function te() {
|
|
|
475
475
|
}
|
|
476
476
|
function qt() {
|
|
477
477
|
{
|
|
478
|
-
if (
|
|
479
|
-
var n =
|
|
478
|
+
if (Rt.current) {
|
|
479
|
+
var n = J(Rt.current.type);
|
|
480
480
|
if (n)
|
|
481
481
|
return `
|
|
482
482
|
|
|
@@ -485,18 +485,18 @@ Check the render method of \`` + n + "`.";
|
|
|
485
485
|
return "";
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function Ln(n) {
|
|
489
489
|
return "";
|
|
490
490
|
}
|
|
491
491
|
var $t = {};
|
|
492
|
-
function
|
|
492
|
+
function Zn(n) {
|
|
493
493
|
{
|
|
494
494
|
var c = qt();
|
|
495
495
|
if (!c) {
|
|
496
|
-
var
|
|
497
|
-
|
|
496
|
+
var u = typeof n == "string" ? n : n.displayName || n.name;
|
|
497
|
+
u && (c = `
|
|
498
498
|
|
|
499
|
-
Check the top-level render call using <` +
|
|
499
|
+
Check the top-level render call using <` + u + ">.");
|
|
500
500
|
}
|
|
501
501
|
return c;
|
|
502
502
|
}
|
|
@@ -506,29 +506,29 @@ Check the top-level render call using <` + g + ">.");
|
|
|
506
506
|
if (!n._store || n._store.validated || n.key != null)
|
|
507
507
|
return;
|
|
508
508
|
n._store.validated = !0;
|
|
509
|
-
var
|
|
510
|
-
if ($t[
|
|
509
|
+
var u = Zn(c);
|
|
510
|
+
if ($t[u])
|
|
511
511
|
return;
|
|
512
|
-
$t[
|
|
513
|
-
var
|
|
514
|
-
n && n._owner && n._owner !==
|
|
512
|
+
$t[u] = !0;
|
|
513
|
+
var P = "";
|
|
514
|
+
n && n._owner && n._owner !== Rt.current && (P = " It was passed a child from " + J(n._owner.type) + "."), ot(n), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, P), ot(null);
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
function nn(n, c) {
|
|
518
518
|
{
|
|
519
519
|
if (typeof n != "object")
|
|
520
520
|
return;
|
|
521
|
-
if (
|
|
522
|
-
for (var
|
|
523
|
-
var
|
|
524
|
-
Ft(
|
|
521
|
+
if (It(n))
|
|
522
|
+
for (var u = 0; u < n.length; u++) {
|
|
523
|
+
var P = n[u];
|
|
524
|
+
Ft(P) && tn(P, c);
|
|
525
525
|
}
|
|
526
526
|
else if (Ft(n))
|
|
527
527
|
n._store && (n._store.validated = !0);
|
|
528
528
|
else if (n) {
|
|
529
|
-
var
|
|
530
|
-
if (typeof
|
|
531
|
-
for (var
|
|
529
|
+
var A = k(n);
|
|
530
|
+
if (typeof A == "function" && A !== n.entries)
|
|
531
|
+
for (var S = A.call(n), w; !(w = S.next()).done; )
|
|
532
532
|
Ft(w.value) && tn(w.value, c);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
@@ -538,88 +538,88 @@ Check the top-level render call using <` + g + ">.");
|
|
|
538
538
|
var c = n.type;
|
|
539
539
|
if (c == null || typeof c == "string")
|
|
540
540
|
return;
|
|
541
|
-
var
|
|
541
|
+
var u;
|
|
542
542
|
if (typeof c == "function")
|
|
543
|
-
|
|
544
|
-
else if (typeof c == "object" && (c.$$typeof ===
|
|
543
|
+
u = c.propTypes;
|
|
544
|
+
else if (typeof c == "object" && (c.$$typeof === g || // Note: Memo only checks outer props here.
|
|
545
545
|
// Inner props are checked in the reconciler.
|
|
546
546
|
c.$$typeof === h))
|
|
547
|
-
|
|
547
|
+
u = c.propTypes;
|
|
548
548
|
else
|
|
549
549
|
return;
|
|
550
|
-
if (
|
|
551
|
-
var
|
|
552
|
-
Sn(
|
|
550
|
+
if (u) {
|
|
551
|
+
var P = J(c);
|
|
552
|
+
Sn(u, n.props, "prop", P, n);
|
|
553
553
|
} else if (c.PropTypes !== void 0 && !Nt) {
|
|
554
554
|
Nt = !0;
|
|
555
|
-
var
|
|
556
|
-
|
|
555
|
+
var A = J(c);
|
|
556
|
+
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A || "Unknown");
|
|
557
557
|
}
|
|
558
|
-
typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved &&
|
|
558
|
+
typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
function Un(n) {
|
|
562
562
|
{
|
|
563
|
-
for (var c = Object.keys(n.props),
|
|
564
|
-
var
|
|
565
|
-
if (
|
|
566
|
-
|
|
563
|
+
for (var c = Object.keys(n.props), u = 0; u < c.length; u++) {
|
|
564
|
+
var P = c[u];
|
|
565
|
+
if (P !== "children" && P !== "key") {
|
|
566
|
+
ot(n), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", P), ot(null);
|
|
567
567
|
break;
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
|
-
n.ref !== null && (
|
|
570
|
+
n.ref !== null && (ot(n), j("Invalid attribute `ref` supplied to `React.Fragment`."), ot(null));
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
var en = {};
|
|
574
|
-
function rn(n, c,
|
|
574
|
+
function rn(n, c, u, P, A, S) {
|
|
575
575
|
{
|
|
576
|
-
var w =
|
|
576
|
+
var w = At(n);
|
|
577
577
|
if (!w) {
|
|
578
|
-
var
|
|
579
|
-
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (
|
|
580
|
-
var
|
|
581
|
-
|
|
578
|
+
var b = "";
|
|
579
|
+
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
580
|
+
var O = Ln();
|
|
581
|
+
O ? b += O : b += qt();
|
|
582
582
|
var N;
|
|
583
|
-
n === null ? N = "null" :
|
|
583
|
+
n === null ? N = "null" : It(n) ? N = "array" : n !== void 0 && n.$$typeof === r ? (N = "<" + (J(n.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : N = typeof n, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, b);
|
|
584
584
|
}
|
|
585
|
-
var F = Mn(n, c,
|
|
585
|
+
var F = Mn(n, c, u, A, S);
|
|
586
586
|
if (F == null)
|
|
587
587
|
return F;
|
|
588
588
|
if (w) {
|
|
589
|
-
var
|
|
590
|
-
if (
|
|
591
|
-
if (
|
|
592
|
-
if (
|
|
593
|
-
for (var
|
|
594
|
-
nn(
|
|
595
|
-
Object.freeze && Object.freeze(
|
|
589
|
+
var L = c.children;
|
|
590
|
+
if (L !== void 0)
|
|
591
|
+
if (P)
|
|
592
|
+
if (It(L)) {
|
|
593
|
+
for (var it = 0; it < L.length; it++)
|
|
594
|
+
nn(L[it], n);
|
|
595
|
+
Object.freeze && Object.freeze(L);
|
|
596
596
|
} else
|
|
597
|
-
|
|
597
|
+
j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
598
598
|
else
|
|
599
|
-
nn(
|
|
599
|
+
nn(L, n);
|
|
600
600
|
}
|
|
601
601
|
if (lt.call(c, "key")) {
|
|
602
|
-
var
|
|
602
|
+
var q = J(n), M = Object.keys(c).filter(function(Qn) {
|
|
603
603
|
return Qn !== "key";
|
|
604
|
-
}), zt =
|
|
605
|
-
if (!en[
|
|
606
|
-
var Kn =
|
|
607
|
-
|
|
604
|
+
}), zt = M.length > 0 ? "{key: someKey, " + M.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
605
|
+
if (!en[q + zt]) {
|
|
606
|
+
var Kn = M.length > 0 ? "{" + M.join(": ..., ") + ": ...}" : "{}";
|
|
607
|
+
j(`A props object containing a "key" prop is being spread into JSX:
|
|
608
608
|
let props = %s;
|
|
609
609
|
<%s {...props} />
|
|
610
610
|
React keys must be passed directly to JSX without using spread:
|
|
611
611
|
let props = %s;
|
|
612
|
-
<%s key={someKey} {...props} />`, zt,
|
|
612
|
+
<%s key={someKey} {...props} />`, zt, q, Kn, q), en[q + zt] = !0;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
return n === s ? Un(F) : Hn(F), F;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
function Jn(n, c,
|
|
619
|
-
return rn(n, c,
|
|
618
|
+
function Jn(n, c, u) {
|
|
619
|
+
return rn(n, c, u, !0);
|
|
620
620
|
}
|
|
621
|
-
function Vn(n, c,
|
|
622
|
-
return rn(n, c,
|
|
621
|
+
function Vn(n, c, u) {
|
|
622
|
+
return rn(n, c, u, !1);
|
|
623
623
|
}
|
|
624
624
|
var Yn = Vn, Gn = Jn;
|
|
625
625
|
mt.Fragment = s, mt.jsx = Yn, mt.jsxs = Gn;
|
|
@@ -630,48 +630,54 @@ var e = Tt.exports;
|
|
|
630
630
|
const ne = "_button_qg5kh_1", ee = {
|
|
631
631
|
button: ne
|
|
632
632
|
};
|
|
633
|
-
function
|
|
633
|
+
function di({ className: t = "", ...r }) {
|
|
634
634
|
return /* @__PURE__ */ e.jsx("button", { className: `${ee.button} ${t}`, ...r, children: "TEST" });
|
|
635
635
|
}
|
|
636
|
-
const re =
|
|
637
|
-
archive_doicitation: re,
|
|
638
|
-
doi_badge: oe,
|
|
639
|
-
doi_left: ie,
|
|
640
|
-
doi_right: se
|
|
641
|
-
}, fi = ({
|
|
636
|
+
const re = ({
|
|
642
637
|
doi_id: t,
|
|
643
638
|
doi: r,
|
|
644
639
|
label: o = "DOI",
|
|
645
|
-
color: s
|
|
640
|
+
color: s,
|
|
646
641
|
className: i = "",
|
|
647
|
-
|
|
642
|
+
style: _,
|
|
643
|
+
...m
|
|
648
644
|
}) => {
|
|
649
|
-
let
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
children:
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
645
|
+
let a = "";
|
|
646
|
+
t != null ? a = `10.24435/materialscloud:${t}` : a = r;
|
|
647
|
+
const g = o === "Paper DOI" ? "mc-doi--paper" : "";
|
|
648
|
+
return /* @__PURE__ */ e.jsx(
|
|
649
|
+
"div",
|
|
650
|
+
{
|
|
651
|
+
className: ["mc-doi", g, i].filter(Boolean).join(" "),
|
|
652
|
+
style: s ? { "--mc-doi-color": s, ..._ } : _,
|
|
653
|
+
...m,
|
|
654
|
+
children: /* @__PURE__ */ e.jsxs("span", { className: "mc-doi__badge", children: [
|
|
655
|
+
/* @__PURE__ */ e.jsx("span", { className: "mc-doi__label", children: o }),
|
|
656
|
+
/* @__PURE__ */ e.jsx(
|
|
657
|
+
"a",
|
|
658
|
+
{
|
|
659
|
+
href: `https://doi.org/${a}`,
|
|
660
|
+
className: "mc-doi__link",
|
|
661
|
+
target: "_blank",
|
|
662
|
+
rel: "noreferrer",
|
|
663
|
+
children: a
|
|
664
|
+
}
|
|
665
|
+
)
|
|
666
|
+
] })
|
|
667
|
+
}
|
|
668
|
+
);
|
|
663
669
|
}, gt = (...t) => t.filter(Boolean).join(" ");
|
|
664
|
-
function
|
|
670
|
+
function oe(t) {
|
|
665
671
|
const r = t == null ? void 0 : t.type, o = (r == null ? void 0 : r.displayName) || (r == null ? void 0 : r.name) || (typeof r == "string" ? r : "");
|
|
666
672
|
return typeof o == "string" && o.toLowerCase().includes("popover");
|
|
667
673
|
}
|
|
668
|
-
function
|
|
674
|
+
function ie(t) {
|
|
669
675
|
let r = t;
|
|
670
|
-
for (; r && typeof r == "object" && "props" in r &&
|
|
676
|
+
for (; r && typeof r == "object" && "props" in r && oe(r); )
|
|
671
677
|
r = r.props.children;
|
|
672
678
|
return r;
|
|
673
679
|
}
|
|
674
|
-
function
|
|
680
|
+
function pi({
|
|
675
681
|
popover: t,
|
|
676
682
|
content: r,
|
|
677
683
|
placement: o = "top",
|
|
@@ -680,13 +686,13 @@ function vi({
|
|
|
680
686
|
children: _ = "?",
|
|
681
687
|
...m
|
|
682
688
|
}) {
|
|
683
|
-
const [a,
|
|
684
|
-
return
|
|
689
|
+
const [a, g] = B(!1), l = Mt(null), x = r !== void 0 ? r : t, h = x != null;
|
|
690
|
+
return rt(() => {
|
|
685
691
|
if (!a || !h) return;
|
|
686
|
-
const p = (
|
|
687
|
-
l.current && !l.current.contains(
|
|
688
|
-
}, f = (
|
|
689
|
-
|
|
692
|
+
const p = (v) => {
|
|
693
|
+
l.current && !l.current.contains(v.target) && g(!1);
|
|
694
|
+
}, f = (v) => {
|
|
695
|
+
v.key === "Escape" && g(!1);
|
|
690
696
|
};
|
|
691
697
|
return document.addEventListener("pointerdown", p), document.addEventListener("keydown", f), () => {
|
|
692
698
|
document.removeEventListener("pointerdown", p), document.removeEventListener("keydown", f);
|
|
@@ -703,7 +709,7 @@ function vi({
|
|
|
703
709
|
{
|
|
704
710
|
type: "button",
|
|
705
711
|
className: gt("help-button__trigger", i.trigger),
|
|
706
|
-
onClick: () =>
|
|
712
|
+
onClick: () => g((p) => !p),
|
|
707
713
|
"aria-expanded": a,
|
|
708
714
|
"aria-haspopup": "dialog",
|
|
709
715
|
children: _
|
|
@@ -715,15 +721,15 @@ function vi({
|
|
|
715
721
|
role: "dialog",
|
|
716
722
|
"data-placement": o,
|
|
717
723
|
className: gt("help-button__popover", i.popover),
|
|
718
|
-
children:
|
|
724
|
+
children: ie(x)
|
|
719
725
|
}
|
|
720
726
|
)
|
|
721
727
|
]
|
|
722
728
|
}
|
|
723
729
|
) : /* @__PURE__ */ e.jsx("div", { className: gt("help-button", s, i.root), ...m, children: /* @__PURE__ */ e.jsx("span", { className: gt("help-button__trigger", i.trigger), children: _ }) });
|
|
724
730
|
}
|
|
725
|
-
const
|
|
726
|
-
function
|
|
731
|
+
const se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20width='36.012337'%20height='31.802971'%20viewBox='0%200%2036.012336%2031.802972'%20id='svg9098'%20version='1.1'%20inkscape:version='0.91%20r13725'%20sodipodi:docname='mclogo-split-rotate-v9.svg'%3e%3cdefs%20id='defs9100'%20/%3e%3csodipodi:namedview%20id='base'%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1.0'%20inkscape:pageopacity='0.0'%20inkscape:pageshadow='2'%20inkscape:zoom='11.2'%20inkscape:cx='14.890099'%20inkscape:cy='23.051314'%20inkscape:document-units='px'%20inkscape:current-layer='g9'%20showgrid='false'%20units='px'%20inkscape:window-width='1680'%20inkscape:window-height='940'%20inkscape:window-x='0'%20inkscape:window-y='1'%20inkscape:window-maximized='1'%20fit-margin-top='3'%20fit-margin-left='3'%20fit-margin-right='3'%20fit-margin-bottom='5'%20/%3e%3cmetadata%20id='metadata9103'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cg%20inkscape:label='Layer%201'%20inkscape:groupmode='layer'%20id='layer1'%20transform='translate(3.0066849,-1015.2422)'%3e%3cg%20id='mctriangle'%20transform='matrix(1.1533275,0,0,1.1556928,-379.094,391.20844)'%3e%3cg%20transform='translate(2975.41,266.50511)'%20style='display:inline;stroke:%23d21f15;stroke-width:0.86616874;stroke-opacity:1'%20id='layer6'%20/%3e%3cg%20id='g9'%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.49344,550.22655%20C%20334.49344,546.23874%20337.72144,543.00587%20341.70205,543.00587%20345.68227,543.00587%20348.90912,546.23874%20348.90912,550.22655'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88989985;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9220'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.49344,550.41953%20C%20331.53412,550.41953%20329.1333,552.88285%20329.1333,555.92274%20329.1333,558.96264%20331.53412,561.42596%20334.49344,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9224'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20348.90912,550.41953%20C%20351.86844,550.41953%20354.26926,552.88285%20354.26926,555.92274%20354.26926,558.96264%20351.86844,561.42596%20348.90912,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9228'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.45731,561.42596%20348.92565,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9232'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.49344,550.22655%20C%20334.49344,546.23874%20337.72144,543.00587%20341.70205,543.00587%20345.68227,543.00587%20348.90912,546.23874%20348.90912,550.22655'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88989985;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9236'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.49344,550.41953%20C%20331.53412,550.41953%20329.1333,552.88285%20329.1333,555.92274%20329.1333,558.96264%20331.53412,561.42596%20334.49344,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9240'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20348.90912,550.41953%20C%20351.86844,550.41953%20354.26926,552.88285%20354.26926,555.92274%20354.26926,558.96264%20351.86844,561.42596%20348.90912,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9244'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.45731,561.42596%20348.92565,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9248'%20/%3e%3cellipse%20ry='0.25958455'%20rx='0.26011693'%20cy='553.91522'%20cx='341.70126'%20id='ref'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.4000001;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20/%3e%3cpath%20id='mctriangleonly'%20d='M%20335.13723,550.18801%20338.41923,555.66439%20341.70129,561.14077%20344.98332,555.66439%20348.26535,550.18801%20341.70129,550.18801%20Z'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.91575587;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20inkscape:connector-curvature='0'%20/%3e%3ccircle%20cy='550.02032'%20cx='348.39252'%20id='circle7840-5'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:%23ffffff;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.88349211;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20r='1.4070433'%20/%3e%3ccircle%20cy='550.02032'%20cx='335.01007'%20id='circle7842-0'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:%23ffffff;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.88349211;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20r='1.4070433'%20/%3e%3ccircle%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:%23ffffff;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.88349211;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20id='circle7844-5'%20cx='341.70132'%20cy='561.30841'%20r='1.4070433'%20/%3e%3ccircle%20r='1.4070433'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:%23ffffff;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.88349211;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate;filter-blend-mode:normal;filter-gaussianBlur-deviation:0'%20id='movingcircle'%20cx='335.01007'%20cy='550.02032'%3e%3canimateTransform%20id='anim1'%20repeatCount='indefinite'%20begin='0s'%20dur='1s'%20values='0.0%200.0;13.38245%200.0;6.69125%2011.28809;0.0%200.0'%20type='translate'%20attributeName='transform'%20/%3e%3c/circle%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
732
|
+
function hi({ className: t = "", style: r, ...o }) {
|
|
727
733
|
return /* @__PURE__ */ e.jsx(
|
|
728
734
|
"div",
|
|
729
735
|
{
|
|
@@ -738,7 +744,7 @@ function Pi({ className: t = "", style: r, ...o }) {
|
|
|
738
744
|
children: /* @__PURE__ */ e.jsx(
|
|
739
745
|
"img",
|
|
740
746
|
{
|
|
741
|
-
src:
|
|
747
|
+
src: se,
|
|
742
748
|
alt: "Materials Cloud spinner",
|
|
743
749
|
style: {
|
|
744
750
|
width: "100%",
|
|
@@ -788,7 +794,7 @@ function un({ className: t = "h-4 w-4", ...r }) {
|
|
|
788
794
|
}
|
|
789
795
|
);
|
|
790
796
|
}
|
|
791
|
-
function
|
|
797
|
+
function Lt({ className: t = "h-4 w-4", ...r }) {
|
|
792
798
|
return /* @__PURE__ */ e.jsxs(
|
|
793
799
|
"svg",
|
|
794
800
|
{
|
|
@@ -809,7 +815,7 @@ function Zt({ className: t = "h-4 w-4", ...r }) {
|
|
|
809
815
|
}
|
|
810
816
|
);
|
|
811
817
|
}
|
|
812
|
-
function
|
|
818
|
+
function ae({ className: t = "h-4 w-4", ...r }) {
|
|
813
819
|
return /* @__PURE__ */ e.jsxs(
|
|
814
820
|
"svg",
|
|
815
821
|
{
|
|
@@ -829,12 +835,12 @@ function _e({ className: t = "h-4 w-4", ...r }) {
|
|
|
829
835
|
}
|
|
830
836
|
);
|
|
831
837
|
}
|
|
832
|
-
const
|
|
838
|
+
const $ = (...t) => t.filter(Boolean).join(" "), ce = [
|
|
833
839
|
{ format: "cif", label: "CIF" },
|
|
834
840
|
{ format: "xsf", label: "XSF" },
|
|
835
841
|
{ format: "xyz", label: "XYZ" }
|
|
836
842
|
];
|
|
837
|
-
function
|
|
843
|
+
function fi({
|
|
838
844
|
aiida_rest_url: t,
|
|
839
845
|
uuid: r,
|
|
840
846
|
download_formats: o,
|
|
@@ -843,13 +849,13 @@ function yi({
|
|
|
843
849
|
classes: _ = {},
|
|
844
850
|
...m
|
|
845
851
|
}) {
|
|
846
|
-
const [a,
|
|
847
|
-
return
|
|
852
|
+
const [a, g] = B(!1), l = Mt(null), x = `${t}/nodes/${r}/download`, h = o || ce;
|
|
853
|
+
return rt(() => {
|
|
848
854
|
if (!a) return;
|
|
849
|
-
const p = (
|
|
850
|
-
l.current && !l.current.contains(
|
|
851
|
-
}, f = (
|
|
852
|
-
|
|
855
|
+
const p = (v) => {
|
|
856
|
+
l.current && !l.current.contains(v.target) && g(!1);
|
|
857
|
+
}, f = (v) => {
|
|
858
|
+
v.key === "Escape" && g(!1);
|
|
853
859
|
};
|
|
854
860
|
return document.addEventListener("pointerdown", p), document.addEventListener("keydown", f), () => {
|
|
855
861
|
document.removeEventListener("pointerdown", p), document.removeEventListener("keydown", f);
|
|
@@ -858,7 +864,7 @@ function yi({
|
|
|
858
864
|
"div",
|
|
859
865
|
{
|
|
860
866
|
ref: l,
|
|
861
|
-
className:
|
|
867
|
+
className: $("struct-download", i, _.root),
|
|
862
868
|
...m,
|
|
863
869
|
children: [
|
|
864
870
|
/* @__PURE__ */ e.jsx(
|
|
@@ -868,33 +874,33 @@ function yi({
|
|
|
868
874
|
title: s,
|
|
869
875
|
"aria-expanded": a,
|
|
870
876
|
"aria-haspopup": "menu",
|
|
871
|
-
onClick: () =>
|
|
872
|
-
className:
|
|
877
|
+
onClick: () => g((p) => !p),
|
|
878
|
+
className: $("struct-download__button", _.button),
|
|
873
879
|
children: /* @__PURE__ */ e.jsx(
|
|
874
|
-
|
|
880
|
+
Lt,
|
|
875
881
|
{
|
|
876
|
-
className:
|
|
882
|
+
className: $("struct-download__icon", _.icon)
|
|
877
883
|
}
|
|
878
884
|
)
|
|
879
885
|
}
|
|
880
886
|
),
|
|
881
|
-
a && /* @__PURE__ */ e.jsx("div", { className:
|
|
887
|
+
a && /* @__PURE__ */ e.jsx("div", { className: $("struct-download__dropdown", _.dropdown), children: /* @__PURE__ */ e.jsx(
|
|
882
888
|
"ul",
|
|
883
889
|
{
|
|
884
890
|
role: "menu",
|
|
885
|
-
className:
|
|
891
|
+
className: $("struct-download__menu", _.menu),
|
|
886
892
|
children: h.map(({ format: p, label: f }) => /* @__PURE__ */ e.jsx(
|
|
887
893
|
"li",
|
|
888
894
|
{
|
|
889
895
|
role: "none",
|
|
890
|
-
className:
|
|
891
|
-
onClick: () =>
|
|
896
|
+
className: $(_.menuItem),
|
|
897
|
+
onClick: () => g(!1),
|
|
892
898
|
children: /* @__PURE__ */ e.jsx(
|
|
893
899
|
"a",
|
|
894
900
|
{
|
|
895
901
|
role: "menuitem",
|
|
896
|
-
href: `${
|
|
897
|
-
className:
|
|
902
|
+
href: `${x}?download_format=${p}`,
|
|
903
|
+
className: $(_.menuLink),
|
|
898
904
|
children: f
|
|
899
905
|
}
|
|
900
906
|
)
|
|
@@ -907,8 +913,8 @@ function yi({
|
|
|
907
913
|
}
|
|
908
914
|
);
|
|
909
915
|
}
|
|
910
|
-
const
|
|
911
|
-
function
|
|
916
|
+
const le = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIoAAACACAYAAADUHPECAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAA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675dZYzq1gCKqSRU5ECPLScBk7MsZkuWzPEwnrRULO3wYeHKv7VXr3qoy5YZU0uOpk+N8qNgFfrwautM2E+1JqEyPxeRIT8VUtcdjIQfZxi5vA97AhIv/BiwFeQXUovAUk8PIA6F99VMaU6gHKpkmNSXIODXVySnA4f5EjPIno9KfkLQ/0E1Y2shrWFJaM8qLKrpe/GRyD/hnXIzVfHH7SvD8uXJU8GQMcAiWTH4kFnC+NxbxVoUfCYIlS2/GUoFXYf6tJuA5RNeg4htqYqevK8JJrvg/1r/N4lnuwIgAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTctMTAtMTJUMTY6MDc6MzQrMDI6MDB1PnpAAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE3LTEwLTEyVDE2OjA3OjM0KzAyOjAwBGPC/AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAAASUVORK5CYII=", bt = (...t) => t.filter(Boolean).join(" ");
|
|
917
|
+
function Pi({
|
|
912
918
|
explore_url: t,
|
|
913
919
|
uuid: r,
|
|
914
920
|
placement: o = "bottom",
|
|
@@ -918,20 +924,20 @@ function bi({
|
|
|
918
924
|
...m
|
|
919
925
|
}) {
|
|
920
926
|
const a = `${t}/details/${r}?nodeType=NODE`;
|
|
921
|
-
return /* @__PURE__ */ e.jsxs("span", { className:
|
|
927
|
+
return /* @__PURE__ */ e.jsxs("span", { className: bt("explore-button", i, _.root), ...m, children: [
|
|
922
928
|
/* @__PURE__ */ e.jsx(
|
|
923
929
|
"a",
|
|
924
930
|
{
|
|
925
931
|
href: a,
|
|
926
932
|
target: "_blank",
|
|
927
933
|
rel: "noreferrer",
|
|
928
|
-
className:
|
|
934
|
+
className: bt("explore-button__link", _.link),
|
|
929
935
|
children: /* @__PURE__ */ e.jsx(
|
|
930
936
|
"img",
|
|
931
937
|
{
|
|
932
|
-
src:
|
|
938
|
+
src: le,
|
|
933
939
|
alt: "Explore provenance",
|
|
934
|
-
className:
|
|
940
|
+
className: bt("explore-button__logo", _.logo)
|
|
935
941
|
}
|
|
936
942
|
)
|
|
937
943
|
}
|
|
@@ -941,7 +947,7 @@ function bi({
|
|
|
941
947
|
{
|
|
942
948
|
role: "tooltip",
|
|
943
949
|
"data-placement": o,
|
|
944
|
-
className:
|
|
950
|
+
className: bt("explore-button__tooltip", _.tooltip),
|
|
945
951
|
children: s ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
946
952
|
"Browse provenance",
|
|
947
953
|
/* @__PURE__ */ e.jsx("br", {}),
|
|
@@ -951,15 +957,15 @@ function bi({
|
|
|
951
957
|
)
|
|
952
958
|
] });
|
|
953
959
|
}
|
|
954
|
-
const
|
|
955
|
-
toggleSwitchWrapper:
|
|
956
|
-
toggleLabel:
|
|
957
|
-
toggleSwitchContainer:
|
|
958
|
-
toggleSwitch:
|
|
959
|
-
thumb:
|
|
960
|
-
toggled:
|
|
960
|
+
const _e = "_toggleSwitchWrapper_i81zd_2", me = "_toggleLabel_i81zd_11", ge = "_toggleSwitchContainer_i81zd_16", ue = "_toggleSwitch_i81zd_2", de = "_thumb_i81zd_34", pe = "_toggled_i81zd_46", tt = {
|
|
961
|
+
toggleSwitchWrapper: _e,
|
|
962
|
+
toggleLabel: me,
|
|
963
|
+
toggleSwitchContainer: ge,
|
|
964
|
+
toggleSwitch: ue,
|
|
965
|
+
thumb: de,
|
|
966
|
+
toggled: pe
|
|
961
967
|
};
|
|
962
|
-
function
|
|
968
|
+
function vi({
|
|
963
969
|
switchLength: t = "50px",
|
|
964
970
|
labelLeft: r = "Left",
|
|
965
971
|
labelRight: o = "Right",
|
|
@@ -969,48 +975,48 @@ function xi({
|
|
|
969
975
|
},
|
|
970
976
|
labelClassName: m = "",
|
|
971
977
|
containerClassName: a = "",
|
|
972
|
-
switchClassName:
|
|
978
|
+
switchClassName: g = "",
|
|
973
979
|
thumbClassName: l = "",
|
|
974
|
-
...
|
|
980
|
+
...x
|
|
975
981
|
}) {
|
|
976
|
-
const [h, p] = B(!1), f = i !== void 0,
|
|
977
|
-
|
|
982
|
+
const [h, p] = B(!1), f = i !== void 0, v = f ? i : h;
|
|
983
|
+
rt(() => {
|
|
978
984
|
f && p(i);
|
|
979
985
|
}, [i, f]);
|
|
980
|
-
const
|
|
981
|
-
const
|
|
982
|
-
f || p(
|
|
986
|
+
const z = () => {
|
|
987
|
+
const k = !v;
|
|
988
|
+
f || p(k), _(k);
|
|
983
989
|
};
|
|
984
990
|
return /* @__PURE__ */ e.jsxs(
|
|
985
991
|
"div",
|
|
986
992
|
{
|
|
987
|
-
className: `${
|
|
993
|
+
className: `${tt.toggleSwitchWrapper} ${a}`,
|
|
988
994
|
style: { fontSize: s },
|
|
989
|
-
...
|
|
995
|
+
...x,
|
|
990
996
|
children: [
|
|
991
|
-
/* @__PURE__ */ e.jsx("span", { className: `${
|
|
992
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
997
|
+
/* @__PURE__ */ e.jsx("span", { className: `${tt.toggleLabel} ${m}`, children: r }),
|
|
998
|
+
/* @__PURE__ */ e.jsx("div", { className: tt.toggleSwitchContainer, children: /* @__PURE__ */ e.jsx(
|
|
993
999
|
"button",
|
|
994
1000
|
{
|
|
995
1001
|
type: "button",
|
|
996
|
-
className: `${
|
|
997
|
-
onClick:
|
|
1002
|
+
className: `${tt.toggleSwitch} ${v ? tt.toggled : ""} ${g}`,
|
|
1003
|
+
onClick: z,
|
|
998
1004
|
style: { "--switch-length": t },
|
|
999
|
-
children: /* @__PURE__ */ e.jsx("div", { className: `${
|
|
1005
|
+
children: /* @__PURE__ */ e.jsx("div", { className: `${tt.thumb} ${l}` })
|
|
1000
1006
|
}
|
|
1001
1007
|
) }),
|
|
1002
|
-
/* @__PURE__ */ e.jsx("span", { className: `${
|
|
1008
|
+
/* @__PURE__ */ e.jsx("span", { className: `${tt.toggleLabel} ${m}`, children: o })
|
|
1003
1009
|
]
|
|
1004
1010
|
}
|
|
1005
1011
|
);
|
|
1006
1012
|
}
|
|
1007
|
-
const
|
|
1008
|
-
card:
|
|
1009
|
-
header:
|
|
1010
|
-
body:
|
|
1011
|
-
footer:
|
|
1013
|
+
const he = "_card_6y0jx_1", fe = "_header_6y0jx_13", Pe = "_body_6y0jx_18", ve = "_footer_6y0jx_23", wt = {
|
|
1014
|
+
card: he,
|
|
1015
|
+
header: fe,
|
|
1016
|
+
body: Pe,
|
|
1017
|
+
footer: ve
|
|
1012
1018
|
};
|
|
1013
|
-
function
|
|
1019
|
+
function yi({
|
|
1014
1020
|
children: t,
|
|
1015
1021
|
header: r,
|
|
1016
1022
|
footer: o,
|
|
@@ -1019,12 +1025,12 @@ function wi({
|
|
|
1019
1025
|
style: _,
|
|
1020
1026
|
scrollable: m = !1,
|
|
1021
1027
|
maxHeight: a,
|
|
1022
|
-
...
|
|
1028
|
+
...g
|
|
1023
1029
|
}) {
|
|
1024
1030
|
return /* @__PURE__ */ e.jsxs(
|
|
1025
1031
|
"div",
|
|
1026
1032
|
{
|
|
1027
|
-
className: `${
|
|
1033
|
+
className: `${wt.card} ${s}`,
|
|
1028
1034
|
style: {
|
|
1029
1035
|
..._,
|
|
1030
1036
|
...m ? {
|
|
@@ -1032,17 +1038,17 @@ function wi({
|
|
|
1032
1038
|
overflow: "auto"
|
|
1033
1039
|
} : {}
|
|
1034
1040
|
},
|
|
1035
|
-
...
|
|
1041
|
+
...g,
|
|
1036
1042
|
children: [
|
|
1037
|
-
r && /* @__PURE__ */ e.jsx("div", { className:
|
|
1038
|
-
/* @__PURE__ */ e.jsx("div", { className: `${
|
|
1039
|
-
o && /* @__PURE__ */ e.jsx("div", { className:
|
|
1043
|
+
r && /* @__PURE__ */ e.jsx("div", { className: wt.header, children: r }),
|
|
1044
|
+
/* @__PURE__ */ e.jsx("div", { className: `${wt.body} ${i}`, children: t }),
|
|
1045
|
+
o && /* @__PURE__ */ e.jsx("div", { className: wt.footer, children: o })
|
|
1040
1046
|
]
|
|
1041
1047
|
}
|
|
1042
1048
|
);
|
|
1043
1049
|
}
|
|
1044
|
-
const
|
|
1045
|
-
function
|
|
1050
|
+
const Y = (...t) => t.filter(Boolean).join(" ");
|
|
1051
|
+
function ye({
|
|
1046
1052
|
onFile: t,
|
|
1047
1053
|
accept: r,
|
|
1048
1054
|
fileName: o,
|
|
@@ -1051,17 +1057,17 @@ function we({
|
|
|
1051
1057
|
subtitle: _,
|
|
1052
1058
|
replaceHint: m = "Click or drop another file to replace it",
|
|
1053
1059
|
hint: a,
|
|
1054
|
-
className:
|
|
1060
|
+
className: g,
|
|
1055
1061
|
classes: l = {},
|
|
1056
|
-
...
|
|
1062
|
+
...x
|
|
1057
1063
|
}) {
|
|
1058
|
-
const h = Mt(null), [p, f] = B(!1),
|
|
1059
|
-
!
|
|
1060
|
-
},
|
|
1061
|
-
var
|
|
1062
|
-
|
|
1064
|
+
const h = Mt(null), [p, f] = B(!1), v = (k) => {
|
|
1065
|
+
!k || s || t == null || t(k);
|
|
1066
|
+
}, z = (k) => {
|
|
1067
|
+
var C;
|
|
1068
|
+
k.preventDefault(), f(!1), v((C = k.dataTransfer.files) == null ? void 0 : C[0]);
|
|
1063
1069
|
};
|
|
1064
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
1070
|
+
return /* @__PURE__ */ e.jsxs("div", { className: Y("mc-dropzone", g, l.root), ...x, children: [
|
|
1065
1071
|
/* @__PURE__ */ e.jsx(
|
|
1066
1072
|
"input",
|
|
1067
1073
|
{
|
|
@@ -1069,10 +1075,10 @@ function we({
|
|
|
1069
1075
|
type: "file",
|
|
1070
1076
|
accept: r,
|
|
1071
1077
|
disabled: s,
|
|
1072
|
-
className:
|
|
1073
|
-
onChange: (
|
|
1074
|
-
var
|
|
1075
|
-
|
|
1078
|
+
className: Y(l.input),
|
|
1079
|
+
onChange: (k) => {
|
|
1080
|
+
var C;
|
|
1081
|
+
v((C = k.target.files) == null ? void 0 : C[0]), k.target.value = "";
|
|
1076
1082
|
},
|
|
1077
1083
|
hidden: !0
|
|
1078
1084
|
}
|
|
@@ -1083,32 +1089,32 @@ function we({
|
|
|
1083
1089
|
type: "button",
|
|
1084
1090
|
disabled: s,
|
|
1085
1091
|
onClick: () => {
|
|
1086
|
-
var
|
|
1087
|
-
return (
|
|
1092
|
+
var k;
|
|
1093
|
+
return (k = h.current) == null ? void 0 : k.click();
|
|
1088
1094
|
},
|
|
1089
|
-
onDragOver: (
|
|
1090
|
-
|
|
1095
|
+
onDragOver: (k) => {
|
|
1096
|
+
k.preventDefault(), f(!0);
|
|
1091
1097
|
},
|
|
1092
1098
|
onDragLeave: () => f(!1),
|
|
1093
|
-
onDrop:
|
|
1094
|
-
className:
|
|
1099
|
+
onDrop: z,
|
|
1100
|
+
className: Y(
|
|
1095
1101
|
"mc-dropzone__button",
|
|
1096
1102
|
p && "mc-dropzone__button--dragging",
|
|
1097
1103
|
l.button
|
|
1098
1104
|
),
|
|
1099
1105
|
children: [
|
|
1100
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1106
|
+
/* @__PURE__ */ e.jsx("span", { className: Y("mc-dropzone__icon", l.icon), children: /* @__PURE__ */ e.jsx(ae, { className: "mc-dropzone__icon-svg" }) }),
|
|
1101
1107
|
o ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1102
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
1103
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
1108
|
+
/* @__PURE__ */ e.jsx("p", { className: Y("mc-dropzone__title", l.fileName), children: o }),
|
|
1109
|
+
/* @__PURE__ */ e.jsx("p", { className: Y("mc-dropzone__subtitle", l.subtitle), children: m })
|
|
1104
1110
|
] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1105
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
1106
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
1111
|
+
/* @__PURE__ */ e.jsx("p", { className: Y("mc-dropzone__title", l.title), children: i }),
|
|
1112
|
+
/* @__PURE__ */ e.jsx("p", { className: Y("mc-dropzone__subtitle", l.subtitle), children: _ ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1107
1113
|
"or",
|
|
1108
1114
|
" ",
|
|
1109
1115
|
/* @__PURE__ */ e.jsx("span", { className: "mc-dropzone__browse", children: "browse your files" })
|
|
1110
1116
|
] }) }),
|
|
1111
|
-
a && /* @__PURE__ */ e.jsx("p", { className:
|
|
1117
|
+
a && /* @__PURE__ */ e.jsx("p", { className: Y("mc-dropzone__hint", l.hint), children: a })
|
|
1112
1118
|
] })
|
|
1113
1119
|
]
|
|
1114
1120
|
}
|
|
@@ -1116,12 +1122,12 @@ function we({
|
|
|
1116
1122
|
] });
|
|
1117
1123
|
}
|
|
1118
1124
|
const Z = (...t) => t.filter(Boolean).join(" ");
|
|
1119
|
-
function
|
|
1125
|
+
function xe(t) {
|
|
1120
1126
|
if (!t) return null;
|
|
1121
1127
|
const r = new Date(t);
|
|
1122
1128
|
return Number.isNaN(r.getTime()) ? String(t) : r.toLocaleString();
|
|
1123
1129
|
}
|
|
1124
|
-
function
|
|
1130
|
+
function be({
|
|
1125
1131
|
entries: t = [],
|
|
1126
1132
|
onLoad: r,
|
|
1127
1133
|
onDelete: o,
|
|
@@ -1130,11 +1136,11 @@ function ke({
|
|
|
1130
1136
|
clearLabel: _ = "Clear all",
|
|
1131
1137
|
loadLabel: m = "Load",
|
|
1132
1138
|
deleteLabel: a = "Delete",
|
|
1133
|
-
className:
|
|
1139
|
+
className: g,
|
|
1134
1140
|
classes: l = {},
|
|
1135
|
-
...
|
|
1141
|
+
...x
|
|
1136
1142
|
}) {
|
|
1137
|
-
return t.length === 0 ? null : /* @__PURE__ */ e.jsxs("div", { className: Z("mc-history",
|
|
1143
|
+
return t.length === 0 ? null : /* @__PURE__ */ e.jsxs("div", { className: Z("mc-history", g, l.root), ...x, children: [
|
|
1138
1144
|
/* @__PURE__ */ e.jsxs("div", { className: Z("mc-history__header", l.header), children: [
|
|
1139
1145
|
/* @__PURE__ */ e.jsx("p", { className: Z("mc-history__title", l.title), children: i }),
|
|
1140
1146
|
s && /* @__PURE__ */ e.jsx(
|
|
@@ -1154,7 +1160,7 @@ function ke({
|
|
|
1154
1160
|
children: [
|
|
1155
1161
|
/* @__PURE__ */ e.jsxs("div", { className: Z("mc-history__details", l.details), children: [
|
|
1156
1162
|
/* @__PURE__ */ e.jsx("p", { className: Z("mc-history__name", l.fileName), children: h.fileName }),
|
|
1157
|
-
h.date && /* @__PURE__ */ e.jsx("p", { className: Z("mc-history__date", l.date), children:
|
|
1163
|
+
h.date && /* @__PURE__ */ e.jsx("p", { className: Z("mc-history__date", l.date), children: xe(h.date) })
|
|
1158
1164
|
] }),
|
|
1159
1165
|
h.format && /* @__PURE__ */ e.jsx("span", { className: Z("mc-history__format", l.format), children: String(h.format).toUpperCase() }),
|
|
1160
1166
|
r && /* @__PURE__ */ e.jsx(
|
|
@@ -1189,43 +1195,43 @@ function dn(t) {
|
|
|
1189
1195
|
)) == null ? void 0 : o[0];
|
|
1190
1196
|
return r ? r.split("-")[0] : null;
|
|
1191
1197
|
}
|
|
1192
|
-
function
|
|
1198
|
+
function we(t) {
|
|
1193
1199
|
var r;
|
|
1194
1200
|
return ((r = t == null ? void 0 : t.data) == null ? void 0 : r.attributes) ?? (t == null ? void 0 : t.data) ?? t;
|
|
1195
1201
|
}
|
|
1196
|
-
function
|
|
1202
|
+
function ke(t) {
|
|
1197
1203
|
const r = (t == null ? void 0 : t.data) ?? t;
|
|
1198
1204
|
return Array.isArray(r) ? r[0] : r;
|
|
1199
1205
|
}
|
|
1200
|
-
function
|
|
1206
|
+
function Ae({
|
|
1201
1207
|
onLoaded: t,
|
|
1202
1208
|
onError: r,
|
|
1203
1209
|
fromURL: o,
|
|
1204
1210
|
format: s,
|
|
1205
1211
|
autoLoad: i = !0
|
|
1206
1212
|
}) {
|
|
1207
|
-
return
|
|
1213
|
+
return rt(() => {
|
|
1208
1214
|
if (!i) return;
|
|
1209
1215
|
const _ = new URLSearchParams(window.location.search), m = o ?? _.get("fromURL");
|
|
1210
1216
|
if (!m) return;
|
|
1211
|
-
const a = s ?? _.get("format"),
|
|
1217
|
+
const a = s ?? _.get("format"), g = _.get("tag");
|
|
1212
1218
|
fetch(m).then((l) => l.json()).then((l) => {
|
|
1213
|
-
const
|
|
1214
|
-
structure: qn(
|
|
1219
|
+
const x = a === "optimade" ? { structure: Xn(ke(l)), format: a } : {
|
|
1220
|
+
structure: qn(we(l)),
|
|
1215
1221
|
format: "aiida"
|
|
1216
|
-
}, h =
|
|
1217
|
-
t == null || t({ ...
|
|
1222
|
+
}, h = g ?? dn(m) ?? new URL(m).pathname.split("/").filter(Boolean).pop() ?? m;
|
|
1223
|
+
t == null || t({ ...x, fileName: h, sourceUrl: m });
|
|
1218
1224
|
}).catch(
|
|
1219
1225
|
(l) => r == null ? void 0 : r(l instanceof Error ? l.message : String(l))
|
|
1220
1226
|
);
|
|
1221
1227
|
}, []), null;
|
|
1222
1228
|
}
|
|
1223
|
-
const
|
|
1229
|
+
const je = "#", nt = (...t) => t.filter(Boolean).join(" ");
|
|
1224
1230
|
function Et() {
|
|
1225
1231
|
const t = typeof window < "u" ? window.location.hash : "";
|
|
1226
|
-
return t.startsWith(
|
|
1232
|
+
return t.startsWith(je) ? t.slice(1) : t;
|
|
1227
1233
|
}
|
|
1228
|
-
function
|
|
1234
|
+
function xi({
|
|
1229
1235
|
hash: t,
|
|
1230
1236
|
open: r,
|
|
1231
1237
|
onClose: o,
|
|
@@ -1234,13 +1240,13 @@ function Ai({
|
|
|
1234
1240
|
maxWidth: _ = "48rem",
|
|
1235
1241
|
className: m,
|
|
1236
1242
|
classes: a = {},
|
|
1237
|
-
...
|
|
1243
|
+
...g
|
|
1238
1244
|
}) {
|
|
1239
|
-
const [l,
|
|
1240
|
-
|
|
1245
|
+
const [l, x] = B(() => Et() === t);
|
|
1246
|
+
rt(() => {
|
|
1241
1247
|
if (r !== void 0) return;
|
|
1242
|
-
const
|
|
1243
|
-
return
|
|
1248
|
+
const v = () => x(Et() === t);
|
|
1249
|
+
return v(), window.addEventListener("hashchange", v), () => window.removeEventListener("hashchange", v);
|
|
1244
1250
|
}, [t, r]);
|
|
1245
1251
|
const p = r !== void 0 ? r : l, f = () => {
|
|
1246
1252
|
if (o) {
|
|
@@ -1251,44 +1257,44 @@ function Ai({
|
|
|
1251
1257
|
null,
|
|
1252
1258
|
"",
|
|
1253
1259
|
window.location.pathname + window.location.search
|
|
1254
|
-
),
|
|
1260
|
+
), x(!1);
|
|
1255
1261
|
};
|
|
1256
|
-
return
|
|
1262
|
+
return rt(() => {
|
|
1257
1263
|
if (!p) return;
|
|
1258
|
-
const
|
|
1259
|
-
|
|
1264
|
+
const v = (z) => {
|
|
1265
|
+
z.key === "Escape" && f();
|
|
1260
1266
|
};
|
|
1261
|
-
return document.addEventListener("keydown",
|
|
1267
|
+
return document.addEventListener("keydown", v), () => document.removeEventListener("keydown", v);
|
|
1262
1268
|
}, [p, o, t]), p ? /* @__PURE__ */ e.jsx(
|
|
1263
1269
|
"div",
|
|
1264
1270
|
{
|
|
1265
|
-
className:
|
|
1271
|
+
className: nt("hash-modal", m, a.root),
|
|
1266
1272
|
onClick: f,
|
|
1267
|
-
...
|
|
1273
|
+
...g,
|
|
1268
1274
|
children: /* @__PURE__ */ e.jsxs(
|
|
1269
1275
|
"div",
|
|
1270
1276
|
{
|
|
1271
|
-
className:
|
|
1277
|
+
className: nt("hash-modal__dialog", a.dialog),
|
|
1272
1278
|
style: { "--hash-modal-max-width": _ },
|
|
1273
|
-
onClick: (
|
|
1279
|
+
onClick: (v) => v.stopPropagation(),
|
|
1274
1280
|
role: "dialog",
|
|
1275
1281
|
"aria-modal": "true",
|
|
1276
1282
|
children: [
|
|
1277
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1278
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
1283
|
+
/* @__PURE__ */ e.jsxs("div", { className: nt("hash-modal__header", a.header), children: [
|
|
1284
|
+
/* @__PURE__ */ e.jsx("h2", { className: nt("hash-modal__title", a.title), children: s }),
|
|
1279
1285
|
/* @__PURE__ */ e.jsx(
|
|
1280
1286
|
"button",
|
|
1281
1287
|
{
|
|
1282
1288
|
type: "button",
|
|
1283
1289
|
onClick: f,
|
|
1284
1290
|
"aria-label": "Close",
|
|
1285
|
-
className:
|
|
1291
|
+
className: nt("hash-modal__close", a.closeButton),
|
|
1286
1292
|
children: /* @__PURE__ */ e.jsx(
|
|
1287
1293
|
"svg",
|
|
1288
1294
|
{
|
|
1289
1295
|
viewBox: "0 0 24 24",
|
|
1290
1296
|
fill: "none",
|
|
1291
|
-
className:
|
|
1297
|
+
className: nt("hash-modal__close-icon", a.closeIcon),
|
|
1292
1298
|
stroke: "currentColor",
|
|
1293
1299
|
strokeWidth: "2",
|
|
1294
1300
|
"aria-hidden": "true",
|
|
@@ -1298,15 +1304,15 @@ function Ai({
|
|
|
1298
1304
|
}
|
|
1299
1305
|
)
|
|
1300
1306
|
] }),
|
|
1301
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
1307
|
+
/* @__PURE__ */ e.jsx("div", { className: nt("hash-modal__body", a.body), children: i })
|
|
1302
1308
|
]
|
|
1303
1309
|
}
|
|
1304
1310
|
)
|
|
1305
1311
|
}
|
|
1306
1312
|
) : null;
|
|
1307
1313
|
}
|
|
1308
|
-
const
|
|
1309
|
-
function
|
|
1314
|
+
const H = (...t) => t.filter(Boolean).join(" ");
|
|
1315
|
+
function bi({
|
|
1310
1316
|
title: t,
|
|
1311
1317
|
text: r,
|
|
1312
1318
|
filename: o = "text.txt",
|
|
@@ -1316,11 +1322,11 @@ function ki({
|
|
|
1316
1322
|
classes: m = {},
|
|
1317
1323
|
...a
|
|
1318
1324
|
}) {
|
|
1319
|
-
const [
|
|
1320
|
-
const
|
|
1321
|
-
i ? i(
|
|
1322
|
-
},
|
|
1323
|
-
|
|
1325
|
+
const [g, l] = B(!0), [x, h] = B(!1), p = s !== void 0 ? s : g, f = () => {
|
|
1326
|
+
const k = !p;
|
|
1327
|
+
i ? i(k) : l(k);
|
|
1328
|
+
}, v = async (k) => {
|
|
1329
|
+
k.stopPropagation();
|
|
1324
1330
|
try {
|
|
1325
1331
|
await navigator.clipboard.writeText(r), h(!0), setTimeout(() => {
|
|
1326
1332
|
h(!1);
|
|
@@ -1328,17 +1334,17 @@ function ki({
|
|
|
1328
1334
|
} catch {
|
|
1329
1335
|
h(!1);
|
|
1330
1336
|
}
|
|
1331
|
-
},
|
|
1332
|
-
|
|
1333
|
-
const
|
|
1337
|
+
}, z = (k) => {
|
|
1338
|
+
k.stopPropagation();
|
|
1339
|
+
const C = new Blob([r], {
|
|
1334
1340
|
type: "text/plain;charset=utf-8"
|
|
1335
|
-
}),
|
|
1336
|
-
|
|
1341
|
+
}), j = URL.createObjectURL(C), T = document.createElement("a");
|
|
1342
|
+
T.href = j, T.download = o, document.body.appendChild(T), T.click(), T.remove(), URL.revokeObjectURL(j);
|
|
1337
1343
|
};
|
|
1338
1344
|
return /* @__PURE__ */ e.jsxs(
|
|
1339
1345
|
"div",
|
|
1340
1346
|
{
|
|
1341
|
-
className:
|
|
1347
|
+
className: H(
|
|
1342
1348
|
"mc-acc",
|
|
1343
1349
|
"text-renderer",
|
|
1344
1350
|
p && "mc-acc--open",
|
|
@@ -1348,20 +1354,20 @@ function ki({
|
|
|
1348
1354
|
),
|
|
1349
1355
|
...a,
|
|
1350
1356
|
children: [
|
|
1351
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1357
|
+
/* @__PURE__ */ e.jsxs("div", { className: H("text-renderer__header", m.header), children: [
|
|
1352
1358
|
/* @__PURE__ */ e.jsxs(
|
|
1353
1359
|
"button",
|
|
1354
1360
|
{
|
|
1355
1361
|
type: "button",
|
|
1356
1362
|
onClick: f,
|
|
1357
|
-
className:
|
|
1363
|
+
className: H("text-renderer__toggle", m.toggle),
|
|
1358
1364
|
"aria-expanded": p,
|
|
1359
1365
|
children: [
|
|
1360
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1366
|
+
/* @__PURE__ */ e.jsx("span", { className: H("text-renderer__title", m.title), children: t }),
|
|
1361
1367
|
/* @__PURE__ */ e.jsx(
|
|
1362
1368
|
"span",
|
|
1363
1369
|
{
|
|
1364
|
-
className:
|
|
1370
|
+
className: H(
|
|
1365
1371
|
"mc-acc__chevron",
|
|
1366
1372
|
"text-renderer__chevron",
|
|
1367
1373
|
p && "mc-acc__chevron--open",
|
|
@@ -1391,21 +1397,21 @@ function ki({
|
|
|
1391
1397
|
]
|
|
1392
1398
|
}
|
|
1393
1399
|
),
|
|
1394
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1400
|
+
/* @__PURE__ */ e.jsxs("div", { className: H("text-renderer__actions", m.actions), children: [
|
|
1395
1401
|
/* @__PURE__ */ e.jsxs(
|
|
1396
1402
|
"button",
|
|
1397
1403
|
{
|
|
1398
1404
|
type: "button",
|
|
1399
|
-
onClick:
|
|
1400
|
-
className:
|
|
1405
|
+
onClick: v,
|
|
1406
|
+
className: H(
|
|
1401
1407
|
"text-renderer__action",
|
|
1402
1408
|
"text-renderer__copy-button",
|
|
1403
1409
|
m.action,
|
|
1404
1410
|
m.copyButton
|
|
1405
1411
|
),
|
|
1406
1412
|
children: [
|
|
1407
|
-
|
|
1408
|
-
/* @__PURE__ */ e.jsx("span", { children:
|
|
1413
|
+
x ? /* @__PURE__ */ e.jsx(un, { className: "text-renderer__action-icon" }) : /* @__PURE__ */ e.jsx(gn, { className: "text-renderer__action-icon" }),
|
|
1414
|
+
/* @__PURE__ */ e.jsx("span", { children: x ? "Copied!" : "Copy" })
|
|
1409
1415
|
]
|
|
1410
1416
|
}
|
|
1411
1417
|
),
|
|
@@ -1413,15 +1419,15 @@ function ki({
|
|
|
1413
1419
|
"button",
|
|
1414
1420
|
{
|
|
1415
1421
|
type: "button",
|
|
1416
|
-
onClick:
|
|
1417
|
-
className:
|
|
1422
|
+
onClick: z,
|
|
1423
|
+
className: H(
|
|
1418
1424
|
"text-renderer__action",
|
|
1419
1425
|
"text-renderer__download-button",
|
|
1420
1426
|
m.action,
|
|
1421
1427
|
m.downloadButton
|
|
1422
1428
|
),
|
|
1423
1429
|
children: [
|
|
1424
|
-
/* @__PURE__ */ e.jsx(
|
|
1430
|
+
/* @__PURE__ */ e.jsx(Lt, { className: "text-renderer__action-icon" }),
|
|
1425
1431
|
/* @__PURE__ */ e.jsx("span", { children: "Download" })
|
|
1426
1432
|
]
|
|
1427
1433
|
}
|
|
@@ -1431,7 +1437,7 @@ function ki({
|
|
|
1431
1437
|
/* @__PURE__ */ e.jsx(
|
|
1432
1438
|
"div",
|
|
1433
1439
|
{
|
|
1434
|
-
className:
|
|
1440
|
+
className: H(
|
|
1435
1441
|
"mc-acc__collapse",
|
|
1436
1442
|
"text-renderer__content-wrapper",
|
|
1437
1443
|
p && "mc-acc__collapse--open",
|
|
@@ -1440,12 +1446,12 @@ function ki({
|
|
|
1440
1446
|
children: /* @__PURE__ */ e.jsx("div", { className: "mc-acc__collapse-inner", children: /* @__PURE__ */ e.jsx(
|
|
1441
1447
|
"div",
|
|
1442
1448
|
{
|
|
1443
|
-
className:
|
|
1449
|
+
className: H(
|
|
1444
1450
|
"mc-acc__panel",
|
|
1445
1451
|
"text-renderer__content",
|
|
1446
1452
|
m.content
|
|
1447
1453
|
),
|
|
1448
|
-
children: /* @__PURE__ */ e.jsx("div", { className:
|
|
1454
|
+
children: /* @__PURE__ */ e.jsx("div", { className: H("text-renderer__scroll", m.scroll), children: /* @__PURE__ */ e.jsx("pre", { className: H("text-renderer__pre", m.pre), children: r }) })
|
|
1449
1455
|
}
|
|
1450
1456
|
) })
|
|
1451
1457
|
}
|
|
@@ -1454,8 +1460,8 @@ function ki({
|
|
|
1454
1460
|
}
|
|
1455
1461
|
);
|
|
1456
1462
|
}
|
|
1457
|
-
const
|
|
1458
|
-
function
|
|
1463
|
+
const U = (...t) => t.filter(Boolean).join(" ");
|
|
1464
|
+
function wi({
|
|
1459
1465
|
title: t,
|
|
1460
1466
|
text: r,
|
|
1461
1467
|
filename: o = "text.txt",
|
|
@@ -1464,13 +1470,13 @@ function ji({
|
|
|
1464
1470
|
extraActions: _,
|
|
1465
1471
|
className: m,
|
|
1466
1472
|
classes: a = {},
|
|
1467
|
-
...
|
|
1473
|
+
...g
|
|
1468
1474
|
}) {
|
|
1469
|
-
const [l,
|
|
1470
|
-
const
|
|
1471
|
-
i ? i(
|
|
1472
|
-
},
|
|
1473
|
-
|
|
1475
|
+
const [l, x] = B(!0), [h, p] = B(!1), f = s !== void 0 ? s : l, v = () => {
|
|
1476
|
+
const C = !f;
|
|
1477
|
+
i ? i(C) : x(C);
|
|
1478
|
+
}, z = async (C) => {
|
|
1479
|
+
C.stopPropagation();
|
|
1474
1480
|
try {
|
|
1475
1481
|
await navigator.clipboard.writeText(r), p(!0), setTimeout(() => {
|
|
1476
1482
|
p(!1);
|
|
@@ -1478,17 +1484,17 @@ function ji({
|
|
|
1478
1484
|
} catch {
|
|
1479
1485
|
p(!1);
|
|
1480
1486
|
}
|
|
1481
|
-
},
|
|
1482
|
-
|
|
1483
|
-
const
|
|
1487
|
+
}, k = (C) => {
|
|
1488
|
+
C.stopPropagation();
|
|
1489
|
+
const j = new Blob([r], {
|
|
1484
1490
|
type: "text/plain;charset=utf-8"
|
|
1485
|
-
}),
|
|
1486
|
-
|
|
1491
|
+
}), T = URL.createObjectURL(j), R = document.createElement("a");
|
|
1492
|
+
R.href = T, R.download = o, document.body.appendChild(R), R.click(), R.remove(), URL.revokeObjectURL(T);
|
|
1487
1493
|
};
|
|
1488
1494
|
return /* @__PURE__ */ e.jsxs(
|
|
1489
1495
|
"div",
|
|
1490
1496
|
{
|
|
1491
|
-
className:
|
|
1497
|
+
className: U(
|
|
1492
1498
|
"mc-acc",
|
|
1493
1499
|
"text-renderer",
|
|
1494
1500
|
f && "mc-acc--open",
|
|
@@ -1496,22 +1502,22 @@ function ji({
|
|
|
1496
1502
|
m,
|
|
1497
1503
|
a.root
|
|
1498
1504
|
),
|
|
1499
|
-
...
|
|
1505
|
+
...g,
|
|
1500
1506
|
children: [
|
|
1501
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1507
|
+
/* @__PURE__ */ e.jsxs("div", { className: U("text-renderer__header", a.header), children: [
|
|
1502
1508
|
/* @__PURE__ */ e.jsxs(
|
|
1503
1509
|
"button",
|
|
1504
1510
|
{
|
|
1505
1511
|
type: "button",
|
|
1506
|
-
onClick:
|
|
1507
|
-
className:
|
|
1512
|
+
onClick: v,
|
|
1513
|
+
className: U("text-renderer__toggle", a.toggle),
|
|
1508
1514
|
"aria-expanded": f,
|
|
1509
1515
|
children: [
|
|
1510
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1516
|
+
/* @__PURE__ */ e.jsx("span", { className: U("text-renderer__title", a.title), children: t }),
|
|
1511
1517
|
/* @__PURE__ */ e.jsx(
|
|
1512
1518
|
"span",
|
|
1513
1519
|
{
|
|
1514
|
-
className:
|
|
1520
|
+
className: U(
|
|
1515
1521
|
"mc-acc__chevron",
|
|
1516
1522
|
"text-renderer__chevron",
|
|
1517
1523
|
f && "mc-acc__chevron--open",
|
|
@@ -1541,13 +1547,13 @@ function ji({
|
|
|
1541
1547
|
]
|
|
1542
1548
|
}
|
|
1543
1549
|
),
|
|
1544
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1550
|
+
/* @__PURE__ */ e.jsxs("div", { className: U("text-renderer__actions", a.actions), children: [
|
|
1545
1551
|
/* @__PURE__ */ e.jsxs(
|
|
1546
1552
|
"button",
|
|
1547
1553
|
{
|
|
1548
1554
|
type: "button",
|
|
1549
|
-
onClick:
|
|
1550
|
-
className:
|
|
1555
|
+
onClick: z,
|
|
1556
|
+
className: U(
|
|
1551
1557
|
"text-renderer__action",
|
|
1552
1558
|
"text-renderer__copy-button",
|
|
1553
1559
|
a.action,
|
|
@@ -1563,15 +1569,15 @@ function ji({
|
|
|
1563
1569
|
"button",
|
|
1564
1570
|
{
|
|
1565
1571
|
type: "button",
|
|
1566
|
-
onClick:
|
|
1567
|
-
className:
|
|
1572
|
+
onClick: k,
|
|
1573
|
+
className: U(
|
|
1568
1574
|
"text-renderer__action",
|
|
1569
1575
|
"text-renderer__download-button",
|
|
1570
1576
|
a.action,
|
|
1571
1577
|
a.downloadButton
|
|
1572
1578
|
),
|
|
1573
1579
|
children: [
|
|
1574
|
-
/* @__PURE__ */ e.jsx(
|
|
1580
|
+
/* @__PURE__ */ e.jsx(Lt, { className: "text-renderer__action-icon" }),
|
|
1575
1581
|
/* @__PURE__ */ e.jsx("span", { children: "Download" })
|
|
1576
1582
|
]
|
|
1577
1583
|
}
|
|
@@ -1582,7 +1588,7 @@ function ji({
|
|
|
1582
1588
|
/* @__PURE__ */ e.jsx(
|
|
1583
1589
|
"div",
|
|
1584
1590
|
{
|
|
1585
|
-
className:
|
|
1591
|
+
className: U(
|
|
1586
1592
|
"mc-acc__collapse",
|
|
1587
1593
|
"text-renderer__content-wrapper",
|
|
1588
1594
|
f && "mc-acc__collapse--open",
|
|
@@ -1591,12 +1597,12 @@ function ji({
|
|
|
1591
1597
|
children: /* @__PURE__ */ e.jsx("div", { className: "mc-acc__collapse-inner", children: /* @__PURE__ */ e.jsx(
|
|
1592
1598
|
"div",
|
|
1593
1599
|
{
|
|
1594
|
-
className:
|
|
1600
|
+
className: U(
|
|
1595
1601
|
"mc-acc__panel",
|
|
1596
1602
|
"text-renderer__content",
|
|
1597
1603
|
a.content
|
|
1598
1604
|
),
|
|
1599
|
-
children: /* @__PURE__ */ e.jsx("div", { className:
|
|
1605
|
+
children: /* @__PURE__ */ e.jsx("div", { className: U("text-renderer__scroll", a.scroll), children: /* @__PURE__ */ e.jsx("pre", { className: U("text-renderer__pre", a.pre), children: r }) })
|
|
1600
1606
|
}
|
|
1601
1607
|
) })
|
|
1602
1608
|
}
|
|
@@ -1605,8 +1611,8 @@ function ji({
|
|
|
1605
1611
|
}
|
|
1606
1612
|
);
|
|
1607
1613
|
}
|
|
1608
|
-
const
|
|
1609
|
-
function
|
|
1614
|
+
const st = (...t) => t.filter(Boolean).join(" ");
|
|
1615
|
+
function ki({
|
|
1610
1616
|
title: t,
|
|
1611
1617
|
children: r,
|
|
1612
1618
|
className: o = "",
|
|
@@ -1615,14 +1621,14 @@ function Ci({
|
|
|
1615
1621
|
classes: _ = {},
|
|
1616
1622
|
...m
|
|
1617
1623
|
}) {
|
|
1618
|
-
const [a,
|
|
1624
|
+
const [a, g] = B(!0), l = s !== void 0 ? s : a, x = () => {
|
|
1619
1625
|
const h = !l;
|
|
1620
|
-
i ? i(h) :
|
|
1626
|
+
i ? i(h) : g(h);
|
|
1621
1627
|
};
|
|
1622
1628
|
return /* @__PURE__ */ e.jsxs(
|
|
1623
1629
|
"div",
|
|
1624
1630
|
{
|
|
1625
|
-
className:
|
|
1631
|
+
className: st(
|
|
1626
1632
|
"mc-acc",
|
|
1627
1633
|
"info-accordion",
|
|
1628
1634
|
l && "mc-acc--open",
|
|
@@ -1636,15 +1642,15 @@ function Ci({
|
|
|
1636
1642
|
"button",
|
|
1637
1643
|
{
|
|
1638
1644
|
type: "button",
|
|
1639
|
-
onClick:
|
|
1640
|
-
className:
|
|
1645
|
+
onClick: x,
|
|
1646
|
+
className: st("info-accordion__toggle", _.toggle),
|
|
1641
1647
|
"aria-expanded": l,
|
|
1642
1648
|
children: [
|
|
1643
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1649
|
+
/* @__PURE__ */ e.jsx("span", { className: st("info-accordion__title", _.title), children: t }),
|
|
1644
1650
|
/* @__PURE__ */ e.jsx(
|
|
1645
1651
|
"span",
|
|
1646
1652
|
{
|
|
1647
|
-
className:
|
|
1653
|
+
className: st(
|
|
1648
1654
|
"mc-acc__chevron",
|
|
1649
1655
|
"info-accordion__chevron",
|
|
1650
1656
|
l && "mc-acc__chevron--open",
|
|
@@ -1677,7 +1683,7 @@ function Ci({
|
|
|
1677
1683
|
/* @__PURE__ */ e.jsx(
|
|
1678
1684
|
"div",
|
|
1679
1685
|
{
|
|
1680
|
-
className:
|
|
1686
|
+
className: st(
|
|
1681
1687
|
"mc-acc__collapse",
|
|
1682
1688
|
"info-accordion__content-wrapper",
|
|
1683
1689
|
l && "mc-acc__collapse--open",
|
|
@@ -1686,7 +1692,7 @@ function Ci({
|
|
|
1686
1692
|
children: /* @__PURE__ */ e.jsx("div", { className: "mc-acc__collapse-inner", children: /* @__PURE__ */ e.jsx(
|
|
1687
1693
|
"div",
|
|
1688
1694
|
{
|
|
1689
|
-
className:
|
|
1695
|
+
className: st(
|
|
1690
1696
|
"mc-acc__panel",
|
|
1691
1697
|
"info-accordion__content",
|
|
1692
1698
|
_.content
|
|
@@ -1700,13 +1706,13 @@ function Ci({
|
|
|
1700
1706
|
}
|
|
1701
1707
|
);
|
|
1702
1708
|
}
|
|
1703
|
-
function
|
|
1709
|
+
function Ce(t, { maxEntries: r = 50 } = {}) {
|
|
1704
1710
|
function o() {
|
|
1705
1711
|
try {
|
|
1706
1712
|
const a = localStorage.getItem(t);
|
|
1707
1713
|
if (!a) return [];
|
|
1708
|
-
const
|
|
1709
|
-
return Array.isArray(
|
|
1714
|
+
const g = JSON.parse(a);
|
|
1715
|
+
return Array.isArray(g) ? g : [];
|
|
1710
1716
|
} catch {
|
|
1711
1717
|
return [];
|
|
1712
1718
|
}
|
|
@@ -1722,34 +1728,34 @@ function Ie(t, { maxEntries: r = 50 } = {}) {
|
|
|
1722
1728
|
}
|
|
1723
1729
|
}
|
|
1724
1730
|
function i(a) {
|
|
1725
|
-
const
|
|
1731
|
+
const g = [a, ...o().filter((l) => l.id !== a.id)].slice(
|
|
1726
1732
|
0,
|
|
1727
1733
|
r
|
|
1728
1734
|
);
|
|
1729
|
-
return s(
|
|
1735
|
+
return s(g), g;
|
|
1730
1736
|
}
|
|
1731
1737
|
function _(a) {
|
|
1732
|
-
const
|
|
1733
|
-
return s(
|
|
1738
|
+
const g = o().filter((l) => l.id !== a);
|
|
1739
|
+
return s(g), g;
|
|
1734
1740
|
}
|
|
1735
1741
|
function m() {
|
|
1736
1742
|
return s([]), [];
|
|
1737
1743
|
}
|
|
1738
1744
|
return { load: o, save: s, add: i, remove: _, clear: m };
|
|
1739
1745
|
}
|
|
1740
|
-
const Dt = "https://kv-store.materialscloud.org",
|
|
1741
|
-
function
|
|
1746
|
+
const Dt = "https://kv-store.materialscloud.org", Se = /^[A-Za-z0-9_-]+$/, pn = (t) => `${(t || Dt).replace(/\/+$/, "")}/api/shares`, hn = () => window.location.origin + window.location.pathname;
|
|
1747
|
+
function Ie() {
|
|
1742
1748
|
const r = [...new URLSearchParams(window.location.search)].find(
|
|
1743
|
-
([o, s]) => s === "" &&
|
|
1749
|
+
([o, s]) => s === "" && Se.test(o)
|
|
1744
1750
|
);
|
|
1745
1751
|
return r ? r[0] : null;
|
|
1746
1752
|
}
|
|
1747
1753
|
const fn = (t) => `${hn()}?${t}`;
|
|
1748
|
-
function
|
|
1754
|
+
function Pn(t) {
|
|
1749
1755
|
const r = t ? fn(t) : hn();
|
|
1750
1756
|
window.history.replaceState(null, "", r + window.location.hash);
|
|
1751
1757
|
}
|
|
1752
|
-
async function
|
|
1758
|
+
async function Re(t, r) {
|
|
1753
1759
|
const o = await fetch(pn(r), {
|
|
1754
1760
|
method: "POST",
|
|
1755
1761
|
headers: { "Content-Type": "application/json" },
|
|
@@ -1760,26 +1766,26 @@ async function ze(t, r) {
|
|
|
1760
1766
|
const { id: s } = await o.json();
|
|
1761
1767
|
return s;
|
|
1762
1768
|
}
|
|
1763
|
-
async function
|
|
1769
|
+
async function Ne(t, r) {
|
|
1764
1770
|
const o = await fetch(`${pn(r)}/${encodeURIComponent(t)}`);
|
|
1765
1771
|
if (o.status === 404)
|
|
1766
1772
|
throw new Error("shared data not found (links expire after 30 days)");
|
|
1767
1773
|
if (!o.ok) throw new Error(`could not load shared data (${o.status})`);
|
|
1768
1774
|
return o.json();
|
|
1769
1775
|
}
|
|
1770
|
-
const
|
|
1771
|
-
kind:
|
|
1772
|
-
version:
|
|
1776
|
+
const vn = "structure", Fe = 1, Ai = ({ structure: t, fileName: r }) => ({
|
|
1777
|
+
kind: vn,
|
|
1778
|
+
version: Fe,
|
|
1773
1779
|
fileName: r,
|
|
1774
1780
|
structure: mn(t)
|
|
1775
1781
|
});
|
|
1776
|
-
function
|
|
1777
|
-
if ((t == null ? void 0 : t.kind) !==
|
|
1782
|
+
function ze(t) {
|
|
1783
|
+
if ((t == null ? void 0 : t.kind) !== vn || !t.structure)
|
|
1778
1784
|
throw new Error("this link does not hold a structure");
|
|
1779
1785
|
return { structure: Bt(t.structure), fileName: t.fileName };
|
|
1780
1786
|
}
|
|
1781
|
-
const
|
|
1782
|
-
function
|
|
1787
|
+
const et = (...t) => t.filter(Boolean).join(" "), Ee = (t) => t.split(/[?#]/)[0].split("/").pop();
|
|
1788
|
+
function ji({
|
|
1783
1789
|
onStructureParsed: t,
|
|
1784
1790
|
validate: r,
|
|
1785
1791
|
historyKey: o,
|
|
@@ -1788,88 +1794,88 @@ function Ri({
|
|
|
1788
1794
|
examplesTitle: _ = "Otherwise, pick an example",
|
|
1789
1795
|
label: m = "Upload a crystal structure",
|
|
1790
1796
|
title: a = "Drop your crystal structure here",
|
|
1791
|
-
accept:
|
|
1797
|
+
accept: g = ".cif,.xyz,.vasp,.poscar,.xsf,.in,.pwi",
|
|
1792
1798
|
hint: l = "CIF, XYZ, POSCAR, XSF and Quantum ESPRESSO files",
|
|
1793
|
-
kvUrl:
|
|
1799
|
+
kvUrl: x,
|
|
1794
1800
|
className: h,
|
|
1795
1801
|
classes: p = {},
|
|
1796
1802
|
...f
|
|
1797
1803
|
}) {
|
|
1798
|
-
const
|
|
1799
|
-
() => o ?
|
|
1804
|
+
const v = Wn(
|
|
1805
|
+
() => o ? Ce(o) : null,
|
|
1800
1806
|
[o]
|
|
1801
|
-
), [
|
|
1807
|
+
), [z, k] = B(null), [C, j] = B(null), [T, R] = B(null), [E, G] = B(() => (v == null ? void 0 : v.load()) ?? []), [pt, ht] = B(null), [K] = B(() => {
|
|
1802
1808
|
try {
|
|
1803
|
-
const d = new URLSearchParams(window.location.search).get("fromURL"),
|
|
1804
|
-
return
|
|
1809
|
+
const d = new URLSearchParams(window.location.search).get("fromURL"), y = d && dn(d);
|
|
1810
|
+
return y && (v == null ? void 0 : v.load().find((I) => I.fileName === y)) || null;
|
|
1805
1811
|
} catch {
|
|
1806
1812
|
return null;
|
|
1807
1813
|
}
|
|
1808
|
-
}),
|
|
1809
|
-
|
|
1810
|
-
|
|
1814
|
+
}), At = ({ fileName: d, format: y, structure: I }, { unique: D = !1 } = {}) => {
|
|
1815
|
+
v && (D && v.load().some((W) => W.fileName === d) || G(
|
|
1816
|
+
v.add({
|
|
1811
1817
|
id: crypto.randomUUID(),
|
|
1812
1818
|
fileName: d,
|
|
1813
|
-
format:
|
|
1819
|
+
format: y,
|
|
1814
1820
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1815
1821
|
structure: mn(I)
|
|
1816
1822
|
})
|
|
1817
1823
|
));
|
|
1818
|
-
},
|
|
1819
|
-
|
|
1824
|
+
}, Q = (d, { remember: y = !0, fromLink: I = !1 } = {}) => {
|
|
1825
|
+
R(null);
|
|
1820
1826
|
try {
|
|
1821
1827
|
r == null || r(d.structure);
|
|
1822
|
-
} catch (
|
|
1823
|
-
return
|
|
1828
|
+
} catch (D) {
|
|
1829
|
+
return R((D == null ? void 0 : D.message) ?? String(D)), !1;
|
|
1824
1830
|
}
|
|
1825
|
-
return I ||
|
|
1831
|
+
return I || Pn(null), t == null || t(d), y && At(d, { unique: I }), !0;
|
|
1826
1832
|
};
|
|
1827
|
-
|
|
1828
|
-
|
|
1833
|
+
rt(() => {
|
|
1834
|
+
K && Q(
|
|
1829
1835
|
{
|
|
1830
|
-
format:
|
|
1831
|
-
structure: Bt(
|
|
1832
|
-
fileName:
|
|
1836
|
+
format: K.format,
|
|
1837
|
+
structure: Bt(K.structure),
|
|
1838
|
+
fileName: K.fileName
|
|
1833
1839
|
},
|
|
1834
1840
|
{ remember: !1, fromLink: !0 }
|
|
1835
1841
|
);
|
|
1836
|
-
const d =
|
|
1842
|
+
const d = Ie();
|
|
1837
1843
|
if (!d) return;
|
|
1838
|
-
let
|
|
1839
|
-
return
|
|
1840
|
-
if (
|
|
1841
|
-
const { structure:
|
|
1842
|
-
|
|
1843
|
-
{ format: "shared", structure:
|
|
1844
|
+
let y = !1;
|
|
1845
|
+
return j("shared structure"), Ne(d, x).then((I) => {
|
|
1846
|
+
if (y) return;
|
|
1847
|
+
const { structure: D, fileName: W } = ze(I);
|
|
1848
|
+
Q(
|
|
1849
|
+
{ format: "shared", structure: D, fileName: W ?? d, shareId: d },
|
|
1844
1850
|
{ fromLink: !0 }
|
|
1845
1851
|
);
|
|
1846
1852
|
}).catch((I) => {
|
|
1847
|
-
|
|
1853
|
+
y || R(`Loading shared structure failed: ${I.message}`);
|
|
1848
1854
|
}).finally(() => {
|
|
1849
|
-
|
|
1855
|
+
y || j(null);
|
|
1850
1856
|
}), () => {
|
|
1851
|
-
|
|
1857
|
+
y = !0;
|
|
1852
1858
|
};
|
|
1853
1859
|
}, []);
|
|
1854
1860
|
const ft = async (d) => {
|
|
1855
1861
|
if (d) {
|
|
1856
|
-
|
|
1862
|
+
k(d), R(null), j(d.name);
|
|
1857
1863
|
try {
|
|
1858
|
-
const
|
|
1864
|
+
const y = await d.text(), { format: I, structure: D } = on(y, {
|
|
1859
1865
|
fileName: d.name
|
|
1860
1866
|
});
|
|
1861
|
-
|
|
1862
|
-
} catch (
|
|
1863
|
-
|
|
1867
|
+
Q({ format: I, structure: D, fileName: d.name });
|
|
1868
|
+
} catch (y) {
|
|
1869
|
+
R((y == null ? void 0 : y.message) ?? String(y));
|
|
1864
1870
|
} finally {
|
|
1865
|
-
|
|
1871
|
+
j(null);
|
|
1866
1872
|
}
|
|
1867
1873
|
}
|
|
1868
|
-
},
|
|
1869
|
-
|
|
1870
|
-
},
|
|
1874
|
+
}, J = ({ structure: d, format: y, fileName: I }) => {
|
|
1875
|
+
Q({ format: y, structure: d, fileName: I }, { fromLink: !0 });
|
|
1876
|
+
}, V = (d) => {
|
|
1871
1877
|
try {
|
|
1872
|
-
|
|
1878
|
+
Q(
|
|
1873
1879
|
{
|
|
1874
1880
|
format: d.format,
|
|
1875
1881
|
structure: Bt(d.structure),
|
|
@@ -1877,89 +1883,89 @@ function Ri({
|
|
|
1877
1883
|
},
|
|
1878
1884
|
{ remember: !1 }
|
|
1879
1885
|
);
|
|
1880
|
-
} catch (
|
|
1881
|
-
|
|
1886
|
+
} catch (y) {
|
|
1887
|
+
R((y == null ? void 0 : y.message) ?? String(y));
|
|
1882
1888
|
}
|
|
1883
|
-
},
|
|
1884
|
-
|
|
1889
|
+
}, X = async (d) => {
|
|
1890
|
+
R(null), ht(d.url);
|
|
1885
1891
|
try {
|
|
1886
|
-
const
|
|
1887
|
-
if (!
|
|
1888
|
-
const I = d.fileName ??
|
|
1892
|
+
const y = await fetch(d.url);
|
|
1893
|
+
if (!y.ok) throw new Error(`Failed to load example (${y.status})`);
|
|
1894
|
+
const I = d.fileName ?? Ee(d.url), { format: D, structure: W } = on(await y.text(), {
|
|
1889
1895
|
fileName: I
|
|
1890
1896
|
});
|
|
1891
|
-
|
|
1892
|
-
} catch (
|
|
1893
|
-
|
|
1897
|
+
Q({ format: D, structure: W, fileName: I }, { remember: !1 });
|
|
1898
|
+
} catch (y) {
|
|
1899
|
+
R((y == null ? void 0 : y.message) ?? String(y));
|
|
1894
1900
|
} finally {
|
|
1895
1901
|
ht(null);
|
|
1896
1902
|
}
|
|
1897
1903
|
}, at = i.some((d) => d.family) ? Object.entries(
|
|
1898
|
-
i.reduce((d,
|
|
1904
|
+
i.reduce((d, y) => {
|
|
1899
1905
|
var I;
|
|
1900
|
-
return (d[I =
|
|
1906
|
+
return (d[I = y.family ?? "Other"] || (d[I] = [])).push(y), d;
|
|
1901
1907
|
}, {})
|
|
1902
1908
|
) : null, ct = (d) => /* @__PURE__ */ e.jsx("option", { value: d.url, children: d.label }, d.url);
|
|
1903
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
1904
|
-
/* @__PURE__ */ e.jsx("label", { className:
|
|
1909
|
+
return /* @__PURE__ */ e.jsxs("div", { className: et("mc-structure-upload", h, p.root), ...f, children: [
|
|
1910
|
+
/* @__PURE__ */ e.jsx("label", { className: et("mc-structure-upload__label", p.label), children: m }),
|
|
1905
1911
|
/* @__PURE__ */ e.jsx(
|
|
1906
|
-
|
|
1912
|
+
ye,
|
|
1907
1913
|
{
|
|
1908
|
-
accept:
|
|
1909
|
-
fileName:
|
|
1914
|
+
accept: g,
|
|
1915
|
+
fileName: z == null ? void 0 : z.name,
|
|
1910
1916
|
onFile: ft,
|
|
1911
1917
|
title: a,
|
|
1912
1918
|
hint: l
|
|
1913
1919
|
}
|
|
1914
1920
|
),
|
|
1915
|
-
|
|
1921
|
+
C && /* @__PURE__ */ e.jsxs("p", { className: et("mc-structure-upload__status", p.status), children: [
|
|
1916
1922
|
/* @__PURE__ */ e.jsx("span", { className: "mc-structure-upload__spinner" }),
|
|
1917
1923
|
"Loading ",
|
|
1918
|
-
|
|
1924
|
+
C,
|
|
1919
1925
|
"…"
|
|
1920
1926
|
] }),
|
|
1921
|
-
|
|
1927
|
+
T && /* @__PURE__ */ e.jsx("p", { className: et("mc-structure-upload__error", p.error), children: T }),
|
|
1922
1928
|
/* @__PURE__ */ e.jsx(
|
|
1923
|
-
|
|
1929
|
+
Ae,
|
|
1924
1930
|
{
|
|
1925
|
-
autoLoad: !
|
|
1926
|
-
onLoaded:
|
|
1927
|
-
onError: (d) =>
|
|
1931
|
+
autoLoad: !K,
|
|
1932
|
+
onLoaded: J,
|
|
1933
|
+
onError: (d) => R(d)
|
|
1928
1934
|
}
|
|
1929
1935
|
),
|
|
1930
|
-
i.length > 0 && /* @__PURE__ */ e.jsxs("div", { className:
|
|
1936
|
+
i.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: et("mc-structure-upload__examples", p.examples), children: [
|
|
1931
1937
|
/* @__PURE__ */ e.jsx("p", { className: "mc-structure-upload__examples-title", children: _ }),
|
|
1932
1938
|
/* @__PURE__ */ e.jsxs(
|
|
1933
1939
|
"select",
|
|
1934
1940
|
{
|
|
1935
1941
|
value: "",
|
|
1936
1942
|
onChange: (d) => {
|
|
1937
|
-
const
|
|
1938
|
-
|
|
1943
|
+
const y = i.find((I) => I.url === d.target.value);
|
|
1944
|
+
y && X(y);
|
|
1939
1945
|
},
|
|
1940
1946
|
disabled: pt !== null,
|
|
1941
|
-
className:
|
|
1947
|
+
className: et("mc-structure-upload__select", p.select),
|
|
1942
1948
|
children: [
|
|
1943
1949
|
/* @__PURE__ */ e.jsx("option", { value: "", children: pt ? "Loading example…" : "Select an example…" }),
|
|
1944
|
-
at ? at.map(([d,
|
|
1950
|
+
at ? at.map(([d, y]) => /* @__PURE__ */ e.jsx("optgroup", { label: d, children: y.map(ct) }, d)) : i.map(ct)
|
|
1945
1951
|
]
|
|
1946
1952
|
}
|
|
1947
1953
|
)
|
|
1948
1954
|
] }),
|
|
1949
|
-
|
|
1950
|
-
|
|
1955
|
+
E.length > 0 && /* @__PURE__ */ e.jsx(
|
|
1956
|
+
be,
|
|
1951
1957
|
{
|
|
1952
|
-
className:
|
|
1958
|
+
className: et("mc-structure-upload__history", p.history),
|
|
1953
1959
|
title: s,
|
|
1954
|
-
entries:
|
|
1955
|
-
onLoad:
|
|
1956
|
-
onDelete: (d) =>
|
|
1957
|
-
onClear: () =>
|
|
1960
|
+
entries: E,
|
|
1961
|
+
onLoad: V,
|
|
1962
|
+
onDelete: (d) => G(v.remove(d)),
|
|
1963
|
+
onClear: () => G(v.clear())
|
|
1958
1964
|
}
|
|
1959
1965
|
)
|
|
1960
1966
|
] });
|
|
1961
1967
|
}
|
|
1962
|
-
const ut = (...t) => t.filter(Boolean).join(" "), cn = { status: "idle" },
|
|
1968
|
+
const ut = (...t) => t.filter(Boolean).join(" "), cn = { status: "idle" }, Be = () => /* @__PURE__ */ e.jsxs(
|
|
1963
1969
|
"svg",
|
|
1964
1970
|
{
|
|
1965
1971
|
viewBox: "0 0 16 16",
|
|
@@ -1977,7 +1983,7 @@ const ut = (...t) => t.filter(Boolean).join(" "), cn = { status: "idle" }, Oe =
|
|
|
1977
1983
|
/* @__PURE__ */ e.jsx("path", { d: "M5.8 7 10.2 4.5M5.8 9l4.4 2.5" })
|
|
1978
1984
|
]
|
|
1979
1985
|
}
|
|
1980
|
-
),
|
|
1986
|
+
), Te = () => /* @__PURE__ */ e.jsxs(
|
|
1981
1987
|
"svg",
|
|
1982
1988
|
{
|
|
1983
1989
|
viewBox: "0 0 16 16",
|
|
@@ -1993,6 +1999,20 @@ const ut = (...t) => t.filter(Boolean).join(" "), cn = { status: "idle" }, Oe =
|
|
|
1993
1999
|
/* @__PURE__ */ e.jsx("path", { d: "M3 11V3a1.5 1.5 0 0 1 1.5-1.5H10", strokeLinecap: "round" })
|
|
1994
2000
|
]
|
|
1995
2001
|
}
|
|
2002
|
+
), De = () => /* @__PURE__ */ e.jsx(
|
|
2003
|
+
"svg",
|
|
2004
|
+
{
|
|
2005
|
+
viewBox: "0 0 16 16",
|
|
2006
|
+
width: "1em",
|
|
2007
|
+
height: "1em",
|
|
2008
|
+
fill: "none",
|
|
2009
|
+
stroke: "currentColor",
|
|
2010
|
+
strokeWidth: "1.75",
|
|
2011
|
+
strokeLinecap: "round",
|
|
2012
|
+
strokeLinejoin: "round",
|
|
2013
|
+
"aria-hidden": "true",
|
|
2014
|
+
children: /* @__PURE__ */ e.jsx("path", { d: "M3 8.5 6.5 12 13 4.5" })
|
|
2015
|
+
}
|
|
1996
2016
|
);
|
|
1997
2017
|
async function ln(t) {
|
|
1998
2018
|
try {
|
|
@@ -2001,7 +2021,7 @@ async function ln(t) {
|
|
|
2001
2021
|
return !1;
|
|
2002
2022
|
}
|
|
2003
2023
|
}
|
|
2004
|
-
function
|
|
2024
|
+
function Ci({
|
|
2005
2025
|
data: t,
|
|
2006
2026
|
toDocument: r = (h) => h,
|
|
2007
2027
|
kvUrl: o = Dt,
|
|
@@ -2010,84 +2030,105 @@ function Ii({
|
|
|
2010
2030
|
label: _ = "Share",
|
|
2011
2031
|
busyLabel: m = "Sharing…",
|
|
2012
2032
|
children: a,
|
|
2013
|
-
className:
|
|
2033
|
+
className: g,
|
|
2014
2034
|
classes: l = {},
|
|
2015
|
-
...
|
|
2035
|
+
...x
|
|
2016
2036
|
}) {
|
|
2017
2037
|
const [h, p] = B({ ...cn, data: t }), f = h.data === t ? h : cn;
|
|
2018
2038
|
if (!t) return null;
|
|
2019
|
-
const
|
|
2020
|
-
const
|
|
2021
|
-
|
|
2039
|
+
const v = `Anyone with this link can view the data. It is stored on ${new URL(o || Dt).host} and expires after 30 days.`, z = async () => {
|
|
2040
|
+
const R = (E) => p({ ...E, data: t });
|
|
2041
|
+
R({ status: "uploading" });
|
|
2022
2042
|
try {
|
|
2023
|
-
const
|
|
2024
|
-
|
|
2025
|
-
const
|
|
2026
|
-
|
|
2027
|
-
} catch (
|
|
2028
|
-
|
|
2029
|
-
}
|
|
2030
|
-
},
|
|
2043
|
+
const E = f.id ?? s ?? await Re(r(t), o);
|
|
2044
|
+
Pn(E), E !== s && (i == null || i(E));
|
|
2045
|
+
const G = fn(E);
|
|
2046
|
+
R({ status: "done", id: E, link: G, copied: await ln(G) });
|
|
2047
|
+
} catch (E) {
|
|
2048
|
+
R({ status: "error", message: (E == null ? void 0 : E.message) ?? String(E) });
|
|
2049
|
+
}
|
|
2050
|
+
}, k = async () => p({ ...f, data: t, copied: await ln(f.link) }), C = f.status === "done" ? /* @__PURE__ */ e.jsxs(
|
|
2031
2051
|
"button",
|
|
2032
2052
|
{
|
|
2033
2053
|
type: "button",
|
|
2034
|
-
onClick:
|
|
2054
|
+
onClick: k,
|
|
2055
|
+
title: v,
|
|
2056
|
+
className: ut("mc-share__button", l.button),
|
|
2057
|
+
children: [
|
|
2058
|
+
f.copied ? /* @__PURE__ */ e.jsx(De, {}) : /* @__PURE__ */ e.jsx(Te, {}),
|
|
2059
|
+
f.copied ? "Copied" : "Copy link"
|
|
2060
|
+
]
|
|
2061
|
+
}
|
|
2062
|
+
) : /* @__PURE__ */ e.jsxs(
|
|
2063
|
+
"button",
|
|
2064
|
+
{
|
|
2065
|
+
type: "button",
|
|
2066
|
+
onClick: z,
|
|
2035
2067
|
disabled: f.status === "uploading",
|
|
2068
|
+
title: v,
|
|
2036
2069
|
className: ut("mc-share__button", l.button),
|
|
2037
2070
|
children: [
|
|
2038
|
-
/* @__PURE__ */ e.jsx(
|
|
2071
|
+
/* @__PURE__ */ e.jsx(Be, {}),
|
|
2039
2072
|
f.status === "uploading" ? m : _
|
|
2040
2073
|
]
|
|
2041
2074
|
}
|
|
2042
|
-
),
|
|
2075
|
+
), j = f.status === "error" ? /* @__PURE__ */ e.jsxs("span", { role: "alert", className: ut("mc-share__error", l.error), children: [
|
|
2043
2076
|
"Sharing failed: ",
|
|
2044
2077
|
f.message
|
|
2045
|
-
] }) : null,
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
{
|
|
2060
|
-
type: "button",
|
|
2061
|
-
onClick: E,
|
|
2062
|
-
className: ut("mc-share__button", l.button),
|
|
2063
|
-
children: [
|
|
2064
|
-
/* @__PURE__ */ e.jsx(Me, {}),
|
|
2065
|
-
"Copy"
|
|
2066
|
-
]
|
|
2067
|
-
}
|
|
2068
|
-
)
|
|
2069
|
-
] }),
|
|
2070
|
-
/* @__PURE__ */ e.jsxs("p", { className: "mc-share__note", children: [
|
|
2071
|
-
f.copied && "Link copied to clipboard. ",
|
|
2072
|
-
"Anyone with this link can view the data. It is stored on",
|
|
2073
|
-
" ",
|
|
2074
|
-
new URL(o || Dt).host,
|
|
2075
|
-
" and expires after 30 days."
|
|
2076
|
-
] })
|
|
2077
|
-
] }) : null;
|
|
2078
|
-
return typeof a == "function" ? a({ button: A, error: S, result: C, status: f.status }) : /* @__PURE__ */ e.jsxs("div", { className: ut("mc-share", u, l.root), ...b, children: [
|
|
2079
|
-
/* @__PURE__ */ e.jsx("div", { className: "mc-share__actions", children: A }),
|
|
2080
|
-
S,
|
|
2078
|
+
] }) : null, T = f.status === "done" ? /* @__PURE__ */ e.jsx(
|
|
2079
|
+
"input",
|
|
2080
|
+
{
|
|
2081
|
+
readOnly: !0,
|
|
2082
|
+
value: f.link,
|
|
2083
|
+
onFocus: (R) => R.target.select(),
|
|
2084
|
+
"aria-label": "Share link",
|
|
2085
|
+
title: v,
|
|
2086
|
+
className: ut("mc-share__input", l.result)
|
|
2087
|
+
}
|
|
2088
|
+
) : null;
|
|
2089
|
+
return typeof a == "function" ? a({ button: C, error: j, result: T, status: f.status }) : /* @__PURE__ */ e.jsxs("div", { className: ut("mc-share", g, l.root), ...x, children: [
|
|
2090
|
+
j,
|
|
2091
|
+
T,
|
|
2081
2092
|
C
|
|
2082
2093
|
] });
|
|
2083
2094
|
}
|
|
2084
|
-
|
|
2095
|
+
const kt = (...t) => t.filter(Boolean).join(" ");
|
|
2096
|
+
function Si({
|
|
2097
|
+
title: t,
|
|
2098
|
+
logo: r,
|
|
2099
|
+
logoAlt: o = "",
|
|
2100
|
+
dois: s = [],
|
|
2101
|
+
children: i,
|
|
2102
|
+
className: _,
|
|
2103
|
+
classes: m = {},
|
|
2104
|
+
...a
|
|
2105
|
+
}) {
|
|
2106
|
+
return /* @__PURE__ */ e.jsxs("header", { className: kt("mc-app-header", _, m.root), ...a, children: [
|
|
2107
|
+
/* @__PURE__ */ e.jsxs("div", { className: "mc-app-header__text", children: [
|
|
2108
|
+
/* @__PURE__ */ e.jsx("h1", { className: kt("mc-app-header__title", m.title), children: t }),
|
|
2109
|
+
i,
|
|
2110
|
+
s.length > 0 && /* @__PURE__ */ e.jsx("div", { className: kt("mc-app-header__dois", m.dois), children: s.map((g) => {
|
|
2111
|
+
const { doi: l, ...x } = typeof g == "string" ? { doi: g } : g;
|
|
2112
|
+
return /* @__PURE__ */ e.jsx(re, { doi: l, ...x }, l);
|
|
2113
|
+
}) })
|
|
2114
|
+
] }),
|
|
2115
|
+
r && (typeof r == "string" ? /* @__PURE__ */ e.jsx(
|
|
2116
|
+
"img",
|
|
2117
|
+
{
|
|
2118
|
+
src: r,
|
|
2119
|
+
alt: o,
|
|
2120
|
+
className: kt("mc-app-header__logo", m.logo)
|
|
2121
|
+
}
|
|
2122
|
+
) : r)
|
|
2123
|
+
] });
|
|
2124
|
+
}
|
|
2125
|
+
function Ii(t) {
|
|
2085
2126
|
return t.split(/(\d+)/).map((o, s) => o.match(/\d+/) ? /* @__PURE__ */ e.jsx("sub", { children: o }, s) : o);
|
|
2086
2127
|
}
|
|
2087
|
-
const
|
|
2128
|
+
const Oe = {
|
|
2088
2129
|
display: "inline-block",
|
|
2089
2130
|
position: "relative"
|
|
2090
|
-
},
|
|
2131
|
+
}, Me = {
|
|
2091
2132
|
position: "absolute",
|
|
2092
2133
|
top: "0.15em",
|
|
2093
2134
|
left: 0,
|
|
@@ -2096,32 +2137,32 @@ const Ze = {
|
|
|
2096
2137
|
height: 0,
|
|
2097
2138
|
zIndex: 1
|
|
2098
2139
|
};
|
|
2099
|
-
function
|
|
2140
|
+
function Ri(t) {
|
|
2100
2141
|
let r = !1, o = !1;
|
|
2101
|
-
return /* @__PURE__ */ e.jsx("span", { children: t.split("").map((s, i) => s == "-" ? (o = !0, null) : s == "_" ? (r = !0, null) : o ? (o = !1, /* @__PURE__ */ e.jsxs("span", { style:
|
|
2102
|
-
/* @__PURE__ */ e.jsx("span", { style:
|
|
2142
|
+
return /* @__PURE__ */ e.jsx("span", { children: t.split("").map((s, i) => s == "-" ? (o = !0, null) : s == "_" ? (r = !0, null) : o ? (o = !1, /* @__PURE__ */ e.jsxs("span", { style: Oe, children: [
|
|
2143
|
+
/* @__PURE__ */ e.jsx("span", { style: Me }),
|
|
2103
2144
|
s
|
|
2104
2145
|
] }, i)) : r ? (r = !1, /* @__PURE__ */ e.jsx("sub", { children: s }, i)) : s) });
|
|
2105
2146
|
}
|
|
2106
2147
|
function yn(t) {
|
|
2107
2148
|
return Math.sqrt(t.reduce((r, o) => r + o * o, 0));
|
|
2108
2149
|
}
|
|
2109
|
-
function
|
|
2150
|
+
function xn(t, r) {
|
|
2110
2151
|
return t.reduce((o, s, i) => o + s * r[i], 0);
|
|
2111
2152
|
}
|
|
2112
|
-
function
|
|
2153
|
+
function Le(t) {
|
|
2113
2154
|
return t[0].map((r, o) => t.map((s) => s[o]));
|
|
2114
2155
|
}
|
|
2115
|
-
function
|
|
2156
|
+
function Ze(t, r) {
|
|
2116
2157
|
return t.map((o) => o.map((s) => s * r));
|
|
2117
2158
|
}
|
|
2118
|
-
function
|
|
2159
|
+
function He(t) {
|
|
2119
2160
|
return Array.from(
|
|
2120
2161
|
{ length: t },
|
|
2121
2162
|
(r, o) => Array.from({ length: t }, (s, i) => o === i ? 1 : 0)
|
|
2122
2163
|
);
|
|
2123
2164
|
}
|
|
2124
|
-
function
|
|
2165
|
+
function Ue(t, r) {
|
|
2125
2166
|
for (var o = [], s = 0; s < t.length; s++) {
|
|
2126
2167
|
o[s] = [];
|
|
2127
2168
|
for (var i = 0; i < r[0].length; i++) {
|
|
@@ -2132,7 +2173,7 @@ function Ve(t, r) {
|
|
|
2132
2173
|
}
|
|
2133
2174
|
return o;
|
|
2134
2175
|
}
|
|
2135
|
-
function
|
|
2176
|
+
function Je(t) {
|
|
2136
2177
|
const r = t.length, o = t.map((i) => yn(i)), s = Array.from({ length: r }, () => Array(r).fill(0));
|
|
2137
2178
|
for (let i = 0; i < r; i++)
|
|
2138
2179
|
for (let _ = 0; _ < r; _++) {
|
|
@@ -2140,18 +2181,18 @@ function Ye(t) {
|
|
|
2140
2181
|
s[i][_] = 0;
|
|
2141
2182
|
continue;
|
|
2142
2183
|
}
|
|
2143
|
-
const m =
|
|
2144
|
-
if (a > 0 &&
|
|
2145
|
-
let l = m / (a *
|
|
2184
|
+
const m = xn(t[i], t[_]), a = o[i], g = o[_];
|
|
2185
|
+
if (a > 0 && g > 0) {
|
|
2186
|
+
let l = m / (a * g);
|
|
2146
2187
|
l = Math.max(-1, Math.min(1, l));
|
|
2147
|
-
const
|
|
2148
|
-
s[i][_] =
|
|
2188
|
+
const x = Math.acos(l);
|
|
2189
|
+
s[i][_] = x * (180 / Math.PI);
|
|
2149
2190
|
} else
|
|
2150
2191
|
s[i][_] = null;
|
|
2151
2192
|
}
|
|
2152
2193
|
return { lengths: o, angles: s };
|
|
2153
2194
|
}
|
|
2154
|
-
function
|
|
2195
|
+
function Ve(t) {
|
|
2155
2196
|
const r = t.length, o = t.map((i) => i.slice()), s = Array.from(
|
|
2156
2197
|
{ length: r },
|
|
2157
2198
|
(i, _) => Array.from({ length: r }, (m, a) => _ === a ? 1 : 0)
|
|
@@ -2167,534 +2208,534 @@ function Ge(t) {
|
|
|
2167
2208
|
o[i][a] /= m, s[i][a] /= m;
|
|
2168
2209
|
for (let a = 0; a < r; a++) {
|
|
2169
2210
|
if (a === i) continue;
|
|
2170
|
-
const
|
|
2211
|
+
const g = o[a][i];
|
|
2171
2212
|
for (let l = 0; l < r; l++)
|
|
2172
|
-
o[a][l] -=
|
|
2213
|
+
o[a][l] -= g * o[i][l], s[a][l] -= g * s[i][l];
|
|
2173
2214
|
}
|
|
2174
2215
|
}
|
|
2175
2216
|
return s;
|
|
2176
2217
|
}
|
|
2177
|
-
function
|
|
2218
|
+
function bn(t) {
|
|
2178
2219
|
const r = t.length;
|
|
2179
2220
|
if (r === 1) return t[0][0];
|
|
2180
2221
|
if (r === 2)
|
|
2181
2222
|
return t[0][0] * t[1][1] - t[0][1] * t[1][0];
|
|
2182
2223
|
let o = 0;
|
|
2183
2224
|
for (let s = 0; s < r; s++) {
|
|
2184
|
-
const i = t.slice(1).map((m) => m.filter((a,
|
|
2185
|
-
o += _ * t[0][s] *
|
|
2225
|
+
const i = t.slice(1).map((m) => m.filter((a, g) => g !== s)), _ = s % 2 === 0 ? 1 : -1;
|
|
2226
|
+
o += _ * t[0][s] * bn(i);
|
|
2186
2227
|
}
|
|
2187
2228
|
return o;
|
|
2188
2229
|
}
|
|
2189
|
-
const
|
|
2230
|
+
const Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2190
2231
|
__proto__: null,
|
|
2191
|
-
determinant:
|
|
2192
|
-
dot:
|
|
2193
|
-
getMatrixParams:
|
|
2194
|
-
identityMatrix:
|
|
2195
|
-
invertMatrix:
|
|
2196
|
-
multiplyMatrices:
|
|
2232
|
+
determinant: bn,
|
|
2233
|
+
dot: xn,
|
|
2234
|
+
getMatrixParams: Je,
|
|
2235
|
+
identityMatrix: He,
|
|
2236
|
+
invertMatrix: Ve,
|
|
2237
|
+
multiplyMatrices: Ue,
|
|
2197
2238
|
norm: yn,
|
|
2198
|
-
scalarMultiply:
|
|
2199
|
-
transpose:
|
|
2200
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2239
|
+
scalarMultiply: Ze,
|
|
2240
|
+
transpose: Le
|
|
2241
|
+
}, Symbol.toStringTag, { value: "Module" })), Ye = {
|
|
2201
2242
|
Z: 1,
|
|
2202
2243
|
mz: 1.00794
|
|
2203
|
-
},
|
|
2244
|
+
}, Ge = {
|
|
2204
2245
|
Z: 2,
|
|
2205
2246
|
mz: 4.002602
|
|
2206
|
-
},
|
|
2247
|
+
}, Ke = {
|
|
2207
2248
|
Z: 3,
|
|
2208
2249
|
mz: 6.941
|
|
2209
|
-
},
|
|
2250
|
+
}, Qe = {
|
|
2210
2251
|
Z: 4,
|
|
2211
2252
|
mz: 9.012182
|
|
2212
|
-
},
|
|
2253
|
+
}, We = {
|
|
2213
2254
|
Z: 5,
|
|
2214
2255
|
mz: 10.811
|
|
2215
|
-
},
|
|
2256
|
+
}, Xe = {
|
|
2216
2257
|
Z: 6,
|
|
2217
2258
|
mz: 12.0107
|
|
2218
|
-
},
|
|
2259
|
+
}, qe = {
|
|
2219
2260
|
Z: 7,
|
|
2220
2261
|
mz: 14.0067
|
|
2221
|
-
},
|
|
2262
|
+
}, $e = {
|
|
2222
2263
|
Z: 8,
|
|
2223
2264
|
mz: 15.9994
|
|
2224
|
-
},
|
|
2265
|
+
}, tr = {
|
|
2225
2266
|
Z: 9,
|
|
2226
2267
|
mz: 18.9984032
|
|
2227
|
-
},
|
|
2268
|
+
}, nr = {
|
|
2228
2269
|
Z: 10,
|
|
2229
2270
|
mz: 20.1797
|
|
2230
|
-
},
|
|
2271
|
+
}, er = {
|
|
2231
2272
|
Z: 11,
|
|
2232
2273
|
mz: 22.98976928
|
|
2233
|
-
},
|
|
2274
|
+
}, rr = {
|
|
2234
2275
|
Z: 12,
|
|
2235
2276
|
mz: 24.305
|
|
2236
|
-
},
|
|
2277
|
+
}, or = {
|
|
2237
2278
|
Z: 13,
|
|
2238
2279
|
mz: 26.9815386
|
|
2239
|
-
},
|
|
2280
|
+
}, ir = {
|
|
2240
2281
|
Z: 14,
|
|
2241
2282
|
mz: 28.0855
|
|
2242
|
-
},
|
|
2283
|
+
}, sr = {
|
|
2243
2284
|
Z: 15,
|
|
2244
2285
|
mz: 30.973762
|
|
2245
|
-
},
|
|
2286
|
+
}, ar = {
|
|
2246
2287
|
Z: 16,
|
|
2247
2288
|
mz: 32.065
|
|
2248
|
-
},
|
|
2289
|
+
}, cr = {
|
|
2249
2290
|
Z: 17,
|
|
2250
2291
|
mz: 35.453
|
|
2251
|
-
},
|
|
2292
|
+
}, lr = {
|
|
2252
2293
|
Z: 18,
|
|
2253
2294
|
mz: 39.948
|
|
2254
|
-
},
|
|
2295
|
+
}, _r = {
|
|
2255
2296
|
Z: 19,
|
|
2256
2297
|
mz: 39.0983
|
|
2257
|
-
},
|
|
2298
|
+
}, mr = {
|
|
2258
2299
|
Z: 20,
|
|
2259
2300
|
mz: 40.078
|
|
2260
|
-
},
|
|
2301
|
+
}, gr = {
|
|
2261
2302
|
Z: 21,
|
|
2262
2303
|
mz: 44.955912
|
|
2263
|
-
},
|
|
2304
|
+
}, ur = {
|
|
2264
2305
|
Z: 22,
|
|
2265
2306
|
mz: 47.867
|
|
2266
|
-
},
|
|
2307
|
+
}, dr = {
|
|
2267
2308
|
Z: 23,
|
|
2268
2309
|
mz: 50.9415
|
|
2269
|
-
},
|
|
2310
|
+
}, pr = {
|
|
2270
2311
|
Z: 24,
|
|
2271
2312
|
mz: 51.9961
|
|
2272
|
-
},
|
|
2313
|
+
}, hr = {
|
|
2273
2314
|
Z: 25,
|
|
2274
2315
|
mz: 54.938045
|
|
2275
|
-
},
|
|
2316
|
+
}, fr = {
|
|
2276
2317
|
Z: 26,
|
|
2277
2318
|
mz: 55.845
|
|
2278
|
-
},
|
|
2319
|
+
}, Pr = {
|
|
2279
2320
|
Z: 27,
|
|
2280
2321
|
mz: 58.933195
|
|
2281
|
-
},
|
|
2322
|
+
}, vr = {
|
|
2282
2323
|
Z: 28,
|
|
2283
2324
|
mz: 58.6934
|
|
2284
|
-
},
|
|
2325
|
+
}, yr = {
|
|
2285
2326
|
Z: 29,
|
|
2286
2327
|
mz: 63.546
|
|
2287
|
-
},
|
|
2328
|
+
}, xr = {
|
|
2288
2329
|
Z: 30,
|
|
2289
2330
|
mz: 65.409
|
|
2290
|
-
},
|
|
2331
|
+
}, br = {
|
|
2291
2332
|
Z: 31,
|
|
2292
2333
|
mz: 69.723
|
|
2293
|
-
},
|
|
2334
|
+
}, wr = {
|
|
2294
2335
|
Z: 32,
|
|
2295
2336
|
mz: 72.64
|
|
2296
|
-
},
|
|
2337
|
+
}, kr = {
|
|
2297
2338
|
Z: 33,
|
|
2298
2339
|
mz: 74.9216
|
|
2299
|
-
},
|
|
2340
|
+
}, Ar = {
|
|
2300
2341
|
Z: 34,
|
|
2301
2342
|
mz: 78.96
|
|
2302
|
-
},
|
|
2343
|
+
}, jr = {
|
|
2303
2344
|
Z: 35,
|
|
2304
2345
|
mz: 79.904
|
|
2305
|
-
},
|
|
2346
|
+
}, Cr = {
|
|
2306
2347
|
Z: 36,
|
|
2307
2348
|
mz: 83.798
|
|
2308
|
-
},
|
|
2349
|
+
}, Sr = {
|
|
2309
2350
|
Z: 37,
|
|
2310
2351
|
mz: 85.4678
|
|
2311
|
-
},
|
|
2352
|
+
}, Ir = {
|
|
2312
2353
|
Z: 38,
|
|
2313
2354
|
mz: 87.62
|
|
2314
|
-
},
|
|
2355
|
+
}, Rr = {
|
|
2315
2356
|
Z: 39,
|
|
2316
2357
|
mz: 88.90585
|
|
2317
|
-
},
|
|
2358
|
+
}, Nr = {
|
|
2318
2359
|
Z: 40,
|
|
2319
2360
|
mz: 91.224
|
|
2320
|
-
},
|
|
2361
|
+
}, Fr = {
|
|
2321
2362
|
Z: 41,
|
|
2322
2363
|
mz: 92.90638
|
|
2323
|
-
},
|
|
2364
|
+
}, zr = {
|
|
2324
2365
|
Z: 42,
|
|
2325
2366
|
mz: 95.94
|
|
2326
|
-
},
|
|
2367
|
+
}, Er = {
|
|
2327
2368
|
Z: 43,
|
|
2328
2369
|
mz: 98
|
|
2329
|
-
},
|
|
2370
|
+
}, Br = {
|
|
2330
2371
|
Z: 44,
|
|
2331
2372
|
mz: 101.07
|
|
2332
|
-
},
|
|
2373
|
+
}, Tr = {
|
|
2333
2374
|
Z: 45,
|
|
2334
2375
|
mz: 102.9055
|
|
2335
|
-
},
|
|
2376
|
+
}, Dr = {
|
|
2336
2377
|
Z: 46,
|
|
2337
2378
|
mz: 106.42
|
|
2338
|
-
},
|
|
2379
|
+
}, Or = {
|
|
2339
2380
|
Z: 47,
|
|
2340
2381
|
mz: 107.8682
|
|
2341
|
-
},
|
|
2382
|
+
}, Mr = {
|
|
2342
2383
|
Z: 48,
|
|
2343
2384
|
mz: 112.411
|
|
2344
|
-
},
|
|
2385
|
+
}, Lr = {
|
|
2345
2386
|
Z: 49,
|
|
2346
2387
|
mz: 114.818
|
|
2347
|
-
},
|
|
2388
|
+
}, Zr = {
|
|
2348
2389
|
Z: 50,
|
|
2349
2390
|
mz: 118.71
|
|
2350
|
-
},
|
|
2391
|
+
}, Hr = {
|
|
2351
2392
|
Z: 51,
|
|
2352
2393
|
mz: 121.76
|
|
2353
|
-
},
|
|
2394
|
+
}, Ur = {
|
|
2354
2395
|
Z: 52,
|
|
2355
2396
|
mz: 127.6
|
|
2356
|
-
},
|
|
2397
|
+
}, Jr = {
|
|
2357
2398
|
Z: 53,
|
|
2358
2399
|
mz: 126.90447
|
|
2359
|
-
},
|
|
2400
|
+
}, Vr = {
|
|
2360
2401
|
Z: 54,
|
|
2361
2402
|
mz: 131.293
|
|
2362
|
-
},
|
|
2403
|
+
}, Yr = {
|
|
2363
2404
|
Z: 55,
|
|
2364
2405
|
mz: 132.9054519
|
|
2365
|
-
},
|
|
2406
|
+
}, Gr = {
|
|
2366
2407
|
Z: 56,
|
|
2367
2408
|
mz: 137.327
|
|
2368
|
-
},
|
|
2409
|
+
}, Kr = {
|
|
2369
2410
|
Z: 57,
|
|
2370
2411
|
mz: 138.90547
|
|
2371
|
-
},
|
|
2412
|
+
}, Qr = {
|
|
2372
2413
|
Z: 58,
|
|
2373
2414
|
mz: 140.116
|
|
2374
|
-
},
|
|
2415
|
+
}, Wr = {
|
|
2375
2416
|
Z: 59,
|
|
2376
2417
|
mz: 140.90765
|
|
2377
|
-
},
|
|
2418
|
+
}, Xr = {
|
|
2378
2419
|
Z: 60,
|
|
2379
2420
|
mz: 144.242
|
|
2380
|
-
},
|
|
2421
|
+
}, qr = {
|
|
2381
2422
|
Z: 61,
|
|
2382
2423
|
mz: 145
|
|
2383
|
-
},
|
|
2424
|
+
}, $r = {
|
|
2384
2425
|
Z: 62,
|
|
2385
2426
|
mz: 150.36
|
|
2386
|
-
},
|
|
2427
|
+
}, to = {
|
|
2387
2428
|
Z: 63,
|
|
2388
2429
|
mz: 151.964
|
|
2389
|
-
},
|
|
2430
|
+
}, no = {
|
|
2390
2431
|
Z: 64,
|
|
2391
2432
|
mz: 157.25
|
|
2392
|
-
},
|
|
2433
|
+
}, eo = {
|
|
2393
2434
|
Z: 65,
|
|
2394
2435
|
mz: 158.92535
|
|
2395
|
-
},
|
|
2436
|
+
}, ro = {
|
|
2396
2437
|
Z: 66,
|
|
2397
2438
|
mz: 162.5
|
|
2398
|
-
},
|
|
2439
|
+
}, oo = {
|
|
2399
2440
|
Z: 67,
|
|
2400
2441
|
mz: 164.93032
|
|
2401
|
-
},
|
|
2442
|
+
}, io = {
|
|
2402
2443
|
Z: 68,
|
|
2403
2444
|
mz: 167.259
|
|
2404
|
-
},
|
|
2445
|
+
}, so = {
|
|
2405
2446
|
Z: 69,
|
|
2406
2447
|
mz: 168.93421
|
|
2407
|
-
},
|
|
2448
|
+
}, ao = {
|
|
2408
2449
|
Z: 70,
|
|
2409
2450
|
mz: 173.04
|
|
2410
|
-
},
|
|
2451
|
+
}, co = {
|
|
2411
2452
|
Z: 71,
|
|
2412
2453
|
mz: 174.967
|
|
2413
|
-
},
|
|
2454
|
+
}, lo = {
|
|
2414
2455
|
Z: 72,
|
|
2415
2456
|
mz: 178.49
|
|
2416
|
-
},
|
|
2457
|
+
}, _o = {
|
|
2417
2458
|
Z: 73,
|
|
2418
2459
|
mz: 180.94788
|
|
2419
|
-
},
|
|
2460
|
+
}, mo = {
|
|
2420
2461
|
Z: 74,
|
|
2421
2462
|
mz: 183.84
|
|
2422
|
-
},
|
|
2463
|
+
}, go = {
|
|
2423
2464
|
Z: 75,
|
|
2424
2465
|
mz: 186.207
|
|
2425
|
-
},
|
|
2466
|
+
}, uo = {
|
|
2426
2467
|
Z: 76,
|
|
2427
2468
|
mz: 190.23
|
|
2428
|
-
},
|
|
2469
|
+
}, po = {
|
|
2429
2470
|
Z: 77,
|
|
2430
2471
|
mz: 192.217
|
|
2431
|
-
},
|
|
2472
|
+
}, ho = {
|
|
2432
2473
|
Z: 78,
|
|
2433
2474
|
mz: 195.084
|
|
2434
|
-
},
|
|
2475
|
+
}, fo = {
|
|
2435
2476
|
Z: 79,
|
|
2436
2477
|
mz: 196.966569
|
|
2437
|
-
},
|
|
2478
|
+
}, Po = {
|
|
2438
2479
|
Z: 80,
|
|
2439
2480
|
mz: 200.59
|
|
2440
|
-
},
|
|
2481
|
+
}, vo = {
|
|
2441
2482
|
Z: 81,
|
|
2442
2483
|
mz: 204.3833
|
|
2443
|
-
},
|
|
2484
|
+
}, yo = {
|
|
2444
2485
|
Z: 82,
|
|
2445
2486
|
mz: 207.2
|
|
2446
|
-
},
|
|
2487
|
+
}, xo = {
|
|
2447
2488
|
Z: 83,
|
|
2448
2489
|
mz: 208.9804
|
|
2449
|
-
},
|
|
2490
|
+
}, bo = {
|
|
2450
2491
|
Z: 84,
|
|
2451
2492
|
mz: 210
|
|
2452
|
-
},
|
|
2493
|
+
}, wo = {
|
|
2453
2494
|
Z: 85,
|
|
2454
2495
|
mz: 210
|
|
2455
|
-
},
|
|
2496
|
+
}, ko = {
|
|
2456
2497
|
Z: 86,
|
|
2457
2498
|
mz: 220
|
|
2458
|
-
},
|
|
2499
|
+
}, Ao = {
|
|
2459
2500
|
Z: 87,
|
|
2460
2501
|
mz: 223
|
|
2461
|
-
},
|
|
2502
|
+
}, jo = {
|
|
2462
2503
|
Z: 88,
|
|
2463
2504
|
mz: 226
|
|
2464
|
-
},
|
|
2505
|
+
}, Co = {
|
|
2465
2506
|
Z: 89,
|
|
2466
2507
|
mz: 227
|
|
2467
|
-
},
|
|
2508
|
+
}, So = {
|
|
2468
2509
|
Z: 90,
|
|
2469
2510
|
mz: 232.03806
|
|
2470
|
-
},
|
|
2511
|
+
}, Io = {
|
|
2471
2512
|
Z: 91,
|
|
2472
2513
|
mz: 231.03588
|
|
2473
|
-
},
|
|
2514
|
+
}, Ro = {
|
|
2474
2515
|
Z: 92,
|
|
2475
2516
|
mz: 238.02891
|
|
2476
|
-
},
|
|
2517
|
+
}, No = {
|
|
2477
2518
|
Z: 93,
|
|
2478
2519
|
mz: 237
|
|
2479
|
-
},
|
|
2520
|
+
}, Fo = {
|
|
2480
2521
|
Z: 94,
|
|
2481
2522
|
mz: 244
|
|
2482
|
-
},
|
|
2523
|
+
}, zo = {
|
|
2483
2524
|
Z: 95,
|
|
2484
2525
|
mz: 243
|
|
2485
|
-
},
|
|
2526
|
+
}, Eo = {
|
|
2486
2527
|
Z: 96,
|
|
2487
2528
|
mz: 247
|
|
2488
|
-
},
|
|
2529
|
+
}, Bo = {
|
|
2489
2530
|
Z: 97,
|
|
2490
2531
|
mz: 247
|
|
2491
|
-
},
|
|
2532
|
+
}, To = {
|
|
2492
2533
|
Z: 98,
|
|
2493
2534
|
mz: 251
|
|
2494
|
-
},
|
|
2535
|
+
}, Do = {
|
|
2495
2536
|
Z: 99,
|
|
2496
2537
|
mz: 252
|
|
2497
|
-
},
|
|
2538
|
+
}, Oo = {
|
|
2498
2539
|
Z: 100,
|
|
2499
2540
|
mz: 257
|
|
2500
|
-
},
|
|
2541
|
+
}, Mo = {
|
|
2501
2542
|
Z: 101,
|
|
2502
2543
|
mz: 258
|
|
2503
|
-
},
|
|
2544
|
+
}, Lo = {
|
|
2504
2545
|
Z: 102,
|
|
2505
2546
|
mz: 259
|
|
2506
|
-
},
|
|
2547
|
+
}, Zo = {
|
|
2507
2548
|
Z: 103,
|
|
2508
2549
|
mz: 262
|
|
2509
|
-
},
|
|
2550
|
+
}, Ho = {
|
|
2510
2551
|
Z: 104,
|
|
2511
2552
|
mz: 267
|
|
2512
|
-
},
|
|
2553
|
+
}, Uo = {
|
|
2513
2554
|
Z: 105,
|
|
2514
2555
|
mz: 268
|
|
2515
|
-
},
|
|
2556
|
+
}, Jo = {
|
|
2516
2557
|
Z: 106,
|
|
2517
2558
|
mz: 269
|
|
2518
|
-
},
|
|
2559
|
+
}, Vo = {
|
|
2519
2560
|
Z: 107,
|
|
2520
2561
|
mz: 270
|
|
2521
|
-
},
|
|
2562
|
+
}, Yo = {
|
|
2522
2563
|
Z: 108,
|
|
2523
2564
|
mz: 270
|
|
2524
|
-
},
|
|
2565
|
+
}, Go = {
|
|
2525
2566
|
Z: 109,
|
|
2526
2567
|
mz: 278
|
|
2527
|
-
},
|
|
2568
|
+
}, Ko = {
|
|
2528
2569
|
Z: 110,
|
|
2529
2570
|
mz: 281
|
|
2530
|
-
},
|
|
2571
|
+
}, Qo = {
|
|
2531
2572
|
Z: 111,
|
|
2532
2573
|
mz: 282
|
|
2533
|
-
},
|
|
2574
|
+
}, Wo = {
|
|
2534
2575
|
Z: 112,
|
|
2535
2576
|
mz: 285
|
|
2536
|
-
},
|
|
2577
|
+
}, Xo = {
|
|
2537
2578
|
Z: 113,
|
|
2538
2579
|
mz: 286
|
|
2539
|
-
},
|
|
2580
|
+
}, qo = {
|
|
2540
2581
|
Z: 114,
|
|
2541
2582
|
mz: 289
|
|
2542
|
-
},
|
|
2583
|
+
}, $o = {
|
|
2543
2584
|
Z: 115,
|
|
2544
2585
|
mz: 290
|
|
2545
|
-
},
|
|
2586
|
+
}, ti = {
|
|
2546
2587
|
Z: 116,
|
|
2547
2588
|
mz: 293
|
|
2548
|
-
},
|
|
2589
|
+
}, ni = {
|
|
2549
2590
|
Z: 117,
|
|
2550
2591
|
mz: 294
|
|
2551
|
-
},
|
|
2592
|
+
}, ei = {
|
|
2552
2593
|
Z: 118,
|
|
2553
2594
|
mz: 294
|
|
2554
|
-
},
|
|
2555
|
-
H:
|
|
2556
|
-
He:
|
|
2557
|
-
Li:
|
|
2558
|
-
Be:
|
|
2559
|
-
B:
|
|
2560
|
-
C:
|
|
2561
|
-
N:
|
|
2562
|
-
O:
|
|
2563
|
-
F:
|
|
2564
|
-
Ne:
|
|
2565
|
-
Na:
|
|
2566
|
-
Mg:
|
|
2567
|
-
Al:
|
|
2568
|
-
Si:
|
|
2569
|
-
P:
|
|
2570
|
-
S:
|
|
2571
|
-
Cl:
|
|
2572
|
-
Ar:
|
|
2573
|
-
K:
|
|
2574
|
-
Ca:
|
|
2575
|
-
Sc:
|
|
2576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:
|
|
2642
|
-
Ra:
|
|
2643
|
-
Ac:
|
|
2644
|
-
Th:
|
|
2645
|
-
Pa:
|
|
2646
|
-
U:
|
|
2647
|
-
Np:
|
|
2648
|
-
Pu:
|
|
2649
|
-
Am:
|
|
2650
|
-
Cm:
|
|
2651
|
-
Bk:
|
|
2652
|
-
Cf:
|
|
2653
|
-
Es:
|
|
2654
|
-
Fm:
|
|
2655
|
-
Md:
|
|
2656
|
-
No:
|
|
2657
|
-
Lr:
|
|
2658
|
-
Rf:
|
|
2659
|
-
Db:
|
|
2660
|
-
Sg:
|
|
2661
|
-
Bh:
|
|
2662
|
-
Hs:
|
|
2663
|
-
Mt:
|
|
2664
|
-
Ds:
|
|
2665
|
-
Rg:
|
|
2666
|
-
Cn:
|
|
2667
|
-
Nh:
|
|
2668
|
-
Fl:
|
|
2669
|
-
Mc:
|
|
2670
|
-
Lv:
|
|
2671
|
-
Ts:
|
|
2672
|
-
Og:
|
|
2595
|
+
}, ri = {
|
|
2596
|
+
H: Ye,
|
|
2597
|
+
He: Ge,
|
|
2598
|
+
Li: Ke,
|
|
2599
|
+
Be: Qe,
|
|
2600
|
+
B: We,
|
|
2601
|
+
C: Xe,
|
|
2602
|
+
N: qe,
|
|
2603
|
+
O: $e,
|
|
2604
|
+
F: tr,
|
|
2605
|
+
Ne: nr,
|
|
2606
|
+
Na: er,
|
|
2607
|
+
Mg: rr,
|
|
2608
|
+
Al: or,
|
|
2609
|
+
Si: ir,
|
|
2610
|
+
P: sr,
|
|
2611
|
+
S: ar,
|
|
2612
|
+
Cl: cr,
|
|
2613
|
+
Ar: lr,
|
|
2614
|
+
K: _r,
|
|
2615
|
+
Ca: mr,
|
|
2616
|
+
Sc: gr,
|
|
2617
|
+
Ti: ur,
|
|
2618
|
+
V: dr,
|
|
2619
|
+
Cr: pr,
|
|
2620
|
+
Mn: hr,
|
|
2621
|
+
Fe: fr,
|
|
2622
|
+
Co: Pr,
|
|
2623
|
+
Ni: vr,
|
|
2624
|
+
Cu: yr,
|
|
2625
|
+
Zn: xr,
|
|
2626
|
+
Ga: br,
|
|
2627
|
+
Ge: wr,
|
|
2628
|
+
As: kr,
|
|
2629
|
+
Se: Ar,
|
|
2630
|
+
Br: jr,
|
|
2631
|
+
Kr: Cr,
|
|
2632
|
+
Rb: Sr,
|
|
2633
|
+
Sr: Ir,
|
|
2634
|
+
Y: Rr,
|
|
2635
|
+
Zr: Nr,
|
|
2636
|
+
Nb: Fr,
|
|
2637
|
+
Mo: zr,
|
|
2638
|
+
Tc: Er,
|
|
2639
|
+
Ru: Br,
|
|
2640
|
+
Rh: Tr,
|
|
2641
|
+
Pd: Dr,
|
|
2642
|
+
Ag: Or,
|
|
2643
|
+
Cd: Mr,
|
|
2644
|
+
In: Lr,
|
|
2645
|
+
Sn: Zr,
|
|
2646
|
+
Sb: Hr,
|
|
2647
|
+
Te: Ur,
|
|
2648
|
+
I: Jr,
|
|
2649
|
+
Xe: Vr,
|
|
2650
|
+
Cs: Yr,
|
|
2651
|
+
Ba: Gr,
|
|
2652
|
+
La: Kr,
|
|
2653
|
+
Ce: Qr,
|
|
2654
|
+
Pr: Wr,
|
|
2655
|
+
Nd: Xr,
|
|
2656
|
+
Pm: qr,
|
|
2657
|
+
Sm: $r,
|
|
2658
|
+
Eu: to,
|
|
2659
|
+
Gd: no,
|
|
2660
|
+
Tb: eo,
|
|
2661
|
+
Dy: ro,
|
|
2662
|
+
Ho: oo,
|
|
2663
|
+
Er: io,
|
|
2664
|
+
Tm: so,
|
|
2665
|
+
Yb: ao,
|
|
2666
|
+
Lu: co,
|
|
2667
|
+
Hf: lo,
|
|
2668
|
+
Ta: _o,
|
|
2669
|
+
W: mo,
|
|
2670
|
+
Re: go,
|
|
2671
|
+
Os: uo,
|
|
2672
|
+
Ir: po,
|
|
2673
|
+
Pt: ho,
|
|
2674
|
+
Au: fo,
|
|
2675
|
+
Hg: Po,
|
|
2676
|
+
Tl: vo,
|
|
2677
|
+
Pb: yo,
|
|
2678
|
+
Bi: xo,
|
|
2679
|
+
Po: bo,
|
|
2680
|
+
At: wo,
|
|
2681
|
+
Rn: ko,
|
|
2682
|
+
Fr: Ao,
|
|
2683
|
+
Ra: jo,
|
|
2684
|
+
Ac: Co,
|
|
2685
|
+
Th: So,
|
|
2686
|
+
Pa: Io,
|
|
2687
|
+
U: Ro,
|
|
2688
|
+
Np: No,
|
|
2689
|
+
Pu: Fo,
|
|
2690
|
+
Am: zo,
|
|
2691
|
+
Cm: Eo,
|
|
2692
|
+
Bk: Bo,
|
|
2693
|
+
Cf: To,
|
|
2694
|
+
Es: Do,
|
|
2695
|
+
Fm: Oo,
|
|
2696
|
+
Md: Mo,
|
|
2697
|
+
No: Lo,
|
|
2698
|
+
Lr: Zo,
|
|
2699
|
+
Rf: Ho,
|
|
2700
|
+
Db: Uo,
|
|
2701
|
+
Sg: Jo,
|
|
2702
|
+
Bh: Vo,
|
|
2703
|
+
Hs: Yo,
|
|
2704
|
+
Mt: Go,
|
|
2705
|
+
Ds: Ko,
|
|
2706
|
+
Rg: Qo,
|
|
2707
|
+
Cn: Wo,
|
|
2708
|
+
Nh: Xo,
|
|
2709
|
+
Fl: qo,
|
|
2710
|
+
Mc: $o,
|
|
2711
|
+
Lv: ti,
|
|
2712
|
+
Ts: ni,
|
|
2713
|
+
Og: ei
|
|
2673
2714
|
};
|
|
2674
|
-
function
|
|
2715
|
+
function oi(t) {
|
|
2675
2716
|
var r = t.split(/(?=[A-Z])/), o = 0;
|
|
2676
2717
|
return r.forEach((s) => {
|
|
2677
2718
|
let i = s.match(/\d+/), _ = i == null ? 1 : parseInt(i[0]);
|
|
2678
2719
|
o += _;
|
|
2679
2720
|
}), o;
|
|
2680
2721
|
}
|
|
2681
|
-
function
|
|
2722
|
+
function ii(t) {
|
|
2682
2723
|
return t.split(/(?=[A-Z])/).length;
|
|
2683
2724
|
}
|
|
2684
|
-
function
|
|
2725
|
+
function si(t, r) {
|
|
2685
2726
|
var o = t.split(/(?=[A-Z])/);
|
|
2686
2727
|
let s = 0;
|
|
2687
2728
|
return o.forEach((i) => {
|
|
2688
2729
|
var l;
|
|
2689
|
-
const _ = i.match(/([a-zA-Z]+)(\d*)/), m = _[1], a = parseInt(_[2] || "1"),
|
|
2690
|
-
s +=
|
|
2730
|
+
const _ = i.match(/([a-zA-Z]+)(\d*)/), m = _[1], a = parseInt(_[2] || "1"), g = ((l = ri[m]) == null ? void 0 : l.mz) || 0;
|
|
2731
|
+
s += g * a;
|
|
2691
2732
|
}), Math.round(s * 1e4 / (r.value * 6.0223));
|
|
2692
2733
|
}
|
|
2693
|
-
const
|
|
2734
|
+
const Fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2694
2735
|
__proto__: null,
|
|
2695
|
-
calculateDensity:
|
|
2696
|
-
countNumberOfAtoms:
|
|
2697
|
-
countNumberOfElements:
|
|
2736
|
+
calculateDensity: si,
|
|
2737
|
+
countNumberOfAtoms: oi,
|
|
2738
|
+
countNumberOfElements: ii
|
|
2698
2739
|
}, Symbol.toStringTag, { value: "Module" })), Ot = {
|
|
2699
2740
|
1: {
|
|
2700
2741
|
pg_int: "1",
|
|
@@ -3846,14 +3887,14 @@ const Ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3846
3887
|
sg_int: "Ia-3d",
|
|
3847
3888
|
sg_int_short: "Ia-3d"
|
|
3848
3889
|
}
|
|
3849
|
-
},
|
|
3890
|
+
}, Zt = {
|
|
3850
3891
|
a: "triclinic",
|
|
3851
3892
|
m: "monoclinic",
|
|
3852
3893
|
o: "orthorhombic",
|
|
3853
3894
|
t: "tetragonal",
|
|
3854
3895
|
h: "hexagonal",
|
|
3855
3896
|
c: "cubic"
|
|
3856
|
-
},
|
|
3897
|
+
}, ai = {
|
|
3857
3898
|
aP: "triclinic",
|
|
3858
3899
|
mP: "simple monoclinic",
|
|
3859
3900
|
mS: "base-centered monoclinic",
|
|
@@ -3874,34 +3915,34 @@ function dt(t) {
|
|
|
3874
3915
|
throw new Error(`Invalid space group number ${t}`);
|
|
3875
3916
|
return t < 3 ? "a" : t < 16 ? "m" : t < 75 ? "o" : t < 143 ? "t" : t < 195 ? "h" : "c";
|
|
3876
3917
|
}
|
|
3877
|
-
function
|
|
3878
|
-
return t > 142 && t < 168 ? "trigonal" :
|
|
3918
|
+
function ci(t) {
|
|
3919
|
+
return t > 142 && t < 168 ? "trigonal" : Zt[dt(t)];
|
|
3879
3920
|
}
|
|
3880
|
-
function
|
|
3881
|
-
return [146, 148, 155, 160, 161, 166, 167].includes(t) ? "rhombohedral" :
|
|
3921
|
+
function li(t) {
|
|
3922
|
+
return [146, 148, 155, 160, 161, 166, 167].includes(t) ? "rhombohedral" : Zt[dt(t)];
|
|
3882
3923
|
}
|
|
3883
|
-
function
|
|
3924
|
+
function _i(t) {
|
|
3884
3925
|
let r = Ot[t.toString()].sg_int_short.charAt(0), o = r;
|
|
3885
3926
|
["A", "C"].includes(r) && (o = "S");
|
|
3886
3927
|
let s = dt(t) + o;
|
|
3887
|
-
return [s,
|
|
3928
|
+
return [s, ai[s]];
|
|
3888
3929
|
}
|
|
3889
|
-
function
|
|
3930
|
+
function zi(t) {
|
|
3890
3931
|
if (t < 1 || t > 230)
|
|
3891
3932
|
throw new Error(`Invalid space group number ${t}`);
|
|
3892
|
-
let r =
|
|
3933
|
+
let r = _i(t);
|
|
3893
3934
|
return {
|
|
3894
3935
|
space_group_symbol: Ot[t.toString()].sg_int_short,
|
|
3895
3936
|
point_group_symbol: Ot[t.toString()].pg_int,
|
|
3896
3937
|
crystal_family_pearson: dt(t),
|
|
3897
|
-
crystal_family:
|
|
3898
|
-
crystal_system:
|
|
3899
|
-
lattice_system:
|
|
3938
|
+
crystal_family: Zt[dt(t)],
|
|
3939
|
+
crystal_system: ci(t),
|
|
3940
|
+
lattice_system: li(t),
|
|
3900
3941
|
bravais_lattice_pearson: r[0],
|
|
3901
3942
|
bravais_lattice: r[1]
|
|
3902
3943
|
};
|
|
3903
3944
|
}
|
|
3904
|
-
function
|
|
3945
|
+
function Ei(t) {
|
|
3905
3946
|
return t.includes("P") ? [
|
|
3906
3947
|
[1, 0, 0],
|
|
3907
3948
|
[0, 1, 0],
|
|
@@ -3937,37 +3978,38 @@ function Ti(t) {
|
|
|
3937
3978
|
]);
|
|
3938
3979
|
}
|
|
3939
3980
|
export {
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3981
|
+
re as DoiBadge,
|
|
3982
|
+
Pi as ExploreButton,
|
|
3983
|
+
xi as HashModal,
|
|
3984
|
+
pi as HelpButton,
|
|
3944
3985
|
Dt as KV_STORE_URL,
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
zi as
|
|
3967
|
-
|
|
3986
|
+
Si as McAppHeader,
|
|
3987
|
+
bi as McCopyAccordion,
|
|
3988
|
+
wi as McCopyExtraAccordion,
|
|
3989
|
+
ye as McDropzone,
|
|
3990
|
+
be as McHistoryList,
|
|
3991
|
+
ki as McInfoAccordion,
|
|
3992
|
+
Ci as McShareButton,
|
|
3993
|
+
ji as McStructureUpload,
|
|
3994
|
+
yi as McloudCard,
|
|
3995
|
+
hi as McloudSpinner,
|
|
3996
|
+
Ae as RemoteStructureLoader,
|
|
3997
|
+
fi as StructDownloadButton,
|
|
3998
|
+
di as TestButton,
|
|
3999
|
+
vi as ToggleSwitch,
|
|
4000
|
+
Ce as createHistoryStore,
|
|
4001
|
+
Ne as fetchShare,
|
|
4002
|
+
Ii as formatChemicalFormula,
|
|
4003
|
+
Ri as formatSpaceGroupSymbol,
|
|
4004
|
+
Fi as formula,
|
|
4005
|
+
ze as fromStructureShare,
|
|
4006
|
+
Ei as getPrimToConvMatrix,
|
|
4007
|
+
zi as getSymmetryInfo,
|
|
4008
|
+
Ni as matrix,
|
|
4009
|
+
Ie as shareIdFromLocation,
|
|
3968
4010
|
fn as shareLinkFor,
|
|
3969
4011
|
dn as shortHashForUrl,
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
4012
|
+
Pn as syncAddressBar,
|
|
4013
|
+
Ai as toStructureShare,
|
|
4014
|
+
Re as uploadShare
|
|
3973
4015
|
};
|