mc-react-library 0.7.7 → 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 +729 -723
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./main.css";
|
|
2
|
-
import
|
|
3
|
-
import { fromOptimade as
|
|
4
|
-
var
|
|
2
|
+
import _n, { useState as B, useRef as Mt, useEffect as rt, useMemo as Wn } from "react";
|
|
3
|
+
import { fromOptimade as Xn, fromStructureData as qn, fromJSON as Bt, toJSON as mn, parseStructure as on } from "matsci-parse";
|
|
4
|
+
var Tt = { exports: {} }, _t = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
7
7
|
* react-jsx-runtime.production.min.js
|
|
@@ -11,16 +11,16 @@ var Dt = { exports: {} }, _t = {};
|
|
|
11
11
|
* This source code is licensed under the MIT license found in the
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
if (
|
|
17
|
-
|
|
18
|
-
var t =
|
|
14
|
+
var sn;
|
|
15
|
+
function $n() {
|
|
16
|
+
if (sn) return _t;
|
|
17
|
+
sn = 1;
|
|
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
19
|
function m(a, g, l) {
|
|
20
|
-
var
|
|
20
|
+
var x, h = {}, p = null, f = null;
|
|
21
21
|
l !== void 0 && (p = "" + l), g.key !== void 0 && (p = "" + g.key), g.ref !== void 0 && (f = g.ref);
|
|
22
|
-
for (
|
|
23
|
-
if (a && a.defaultProps) for (
|
|
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;
|
|
@@ -35,27 +35,27 @@ var mt = {};
|
|
|
35
35
|
* This source code is licensed under the MIT license found in the
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
37
|
*/
|
|
38
|
-
var
|
|
39
|
-
function
|
|
40
|
-
return
|
|
41
|
-
var t =
|
|
38
|
+
var an;
|
|
39
|
+
function te() {
|
|
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"), 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
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
48
|
var C = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
49
49
|
function j(n) {
|
|
50
50
|
{
|
|
51
|
-
for (var c = arguments.length, u = new Array(c > 1 ? c - 1 : 0),
|
|
52
|
-
u[
|
|
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
53
|
T("error", n, u);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
function T(n, c, u) {
|
|
57
57
|
{
|
|
58
|
-
var
|
|
58
|
+
var P = C.ReactDebugCurrentFrame, A = P.getStackAddendum();
|
|
59
59
|
A !== "" && (c += "%s", u = u.concat([A]));
|
|
60
60
|
var S = u.map(function(w) {
|
|
61
61
|
return String(w);
|
|
@@ -63,19 +63,19 @@ function ne() {
|
|
|
63
63
|
S.unshift("Warning: " + c), Function.prototype.apply.call(console[n], console, S);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
var
|
|
66
|
+
var R = !1, E = !1, G = !1, pt = !1, ht = !1, K;
|
|
67
67
|
K = Symbol.for("react.module.reference");
|
|
68
|
-
function
|
|
69
|
-
return !!(typeof n == "string" || typeof n == "function" || n === s || n === _ || ht || n === i || n === l || n ===
|
|
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
73
|
n.$$typeof === K || n.getModuleId !== void 0));
|
|
74
74
|
}
|
|
75
75
|
function Q(n, c, u) {
|
|
76
|
-
var
|
|
77
|
-
if (
|
|
78
|
-
return
|
|
76
|
+
var P = n.displayName;
|
|
77
|
+
if (P)
|
|
78
|
+
return P;
|
|
79
79
|
var A = c.displayName || c.name || "";
|
|
80
80
|
return A !== "" ? u + "(" + A + ")" : u;
|
|
81
81
|
}
|
|
@@ -100,7 +100,7 @@ function ne() {
|
|
|
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")
|
|
@@ -114,8 +114,8 @@ function ne() {
|
|
|
114
114
|
case g:
|
|
115
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
120
|
var A = n, S = A._payload, w = A._init;
|
|
121
121
|
try {
|
|
@@ -127,18 +127,18 @@ function ne() {
|
|
|
127
127
|
}
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
130
|
-
var V = Object.assign, X = 0, at, ct, d, y,
|
|
131
|
-
function
|
|
130
|
+
var V = Object.assign, X = 0, at, ct, d, y, I, D, W;
|
|
131
|
+
function Ht() {
|
|
132
132
|
}
|
|
133
|
-
|
|
134
|
-
function
|
|
133
|
+
Ht.__reactDisabledLog = !0;
|
|
134
|
+
function wn() {
|
|
135
135
|
{
|
|
136
136
|
if (X === 0) {
|
|
137
|
-
at = console.log, ct = console.info, d = console.warn, y = console.error,
|
|
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,
|
|
141
|
-
value:
|
|
141
|
+
value: Ht,
|
|
142
142
|
writable: !0
|
|
143
143
|
};
|
|
144
144
|
Object.defineProperties(console, {
|
|
@@ -154,7 +154,7 @@ function ne() {
|
|
|
154
154
|
X++;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function kn() {
|
|
158
158
|
{
|
|
159
159
|
if (X--, X === 0) {
|
|
160
160
|
var n = {
|
|
@@ -176,7 +176,7 @@ function ne() {
|
|
|
176
176
|
value: y
|
|
177
177
|
}),
|
|
178
178
|
group: V({}, n, {
|
|
179
|
-
value:
|
|
179
|
+
value: I
|
|
180
180
|
}),
|
|
181
181
|
groupCollapsed: V({}, n, {
|
|
182
182
|
value: D
|
|
@@ -189,39 +189,39 @@ function ne() {
|
|
|
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
|
|
193
|
-
function
|
|
192
|
+
var jt = C.ReactCurrentDispatcher, Ct;
|
|
193
|
+
function Pt(n, c, u) {
|
|
194
194
|
{
|
|
195
|
-
if (
|
|
195
|
+
if (Ct === void 0)
|
|
196
196
|
try {
|
|
197
197
|
throw Error();
|
|
198
198
|
} catch (A) {
|
|
199
|
-
var
|
|
200
|
-
|
|
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
|
|
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
|
-
function
|
|
212
|
-
if (!n ||
|
|
211
|
+
function Ut(n, c) {
|
|
212
|
+
if (!n || St)
|
|
213
213
|
return "";
|
|
214
214
|
{
|
|
215
|
-
var u =
|
|
215
|
+
var u = vt.get(n);
|
|
216
216
|
if (u !== void 0)
|
|
217
217
|
return u;
|
|
218
218
|
}
|
|
219
|
-
var
|
|
220
|
-
|
|
219
|
+
var P;
|
|
220
|
+
St = !0;
|
|
221
221
|
var A = Error.prepareStackTrace;
|
|
222
222
|
Error.prepareStackTrace = void 0;
|
|
223
223
|
var S;
|
|
224
|
-
S =
|
|
224
|
+
S = jt.current, jt.current = null, wn();
|
|
225
225
|
try {
|
|
226
226
|
if (c) {
|
|
227
227
|
var w = function() {
|
|
@@ -235,14 +235,14 @@ function ne() {
|
|
|
235
235
|
try {
|
|
236
236
|
Reflect.construct(w, []);
|
|
237
237
|
} catch (M) {
|
|
238
|
-
|
|
238
|
+
P = M;
|
|
239
239
|
}
|
|
240
240
|
Reflect.construct(n, [], w);
|
|
241
241
|
} else {
|
|
242
242
|
try {
|
|
243
243
|
w.call();
|
|
244
244
|
} catch (M) {
|
|
245
|
-
|
|
245
|
+
P = M;
|
|
246
246
|
}
|
|
247
247
|
n.call(w.prototype);
|
|
248
248
|
}
|
|
@@ -250,39 +250,39 @@ function ne() {
|
|
|
250
250
|
try {
|
|
251
251
|
throw Error();
|
|
252
252
|
} catch (M) {
|
|
253
|
-
|
|
253
|
+
P = M;
|
|
254
254
|
}
|
|
255
255
|
n();
|
|
256
256
|
}
|
|
257
257
|
} catch (M) {
|
|
258
|
-
if (M &&
|
|
259
|
-
for (var
|
|
260
|
-
`), O =
|
|
261
|
-
`), N =
|
|
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 ||
|
|
267
|
+
if (N--, F--, F < 0 || b[N] !== O[F]) {
|
|
268
268
|
var L = `
|
|
269
|
-
` +
|
|
270
|
-
return n.displayName && L.includes("<anonymous>") && (L = L.replace("<anonymous>", n.displayName)), typeof n == "function" &&
|
|
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
|
-
|
|
277
|
+
St = !1, jt.current = S, kn(), Error.prepareStackTrace = A;
|
|
278
278
|
}
|
|
279
|
-
var it = n ? n.displayName || n.name : "", q = it ?
|
|
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
|
|
283
|
-
return
|
|
282
|
+
function jn(n, c, u) {
|
|
283
|
+
return Ut(n, !1);
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function Cn(n) {
|
|
286
286
|
var c = n.prototype;
|
|
287
287
|
return !!(c && c.isReactComponent);
|
|
288
288
|
}
|
|
@@ -290,23 +290,23 @@ function ne() {
|
|
|
290
290
|
if (n == null)
|
|
291
291
|
return "";
|
|
292
292
|
if (typeof n == "function")
|
|
293
|
-
return
|
|
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
304
|
case g:
|
|
305
|
-
return
|
|
305
|
+
return jn(n.render);
|
|
306
306
|
case h:
|
|
307
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
311
|
return yt(S(A), c, u);
|
|
312
312
|
} catch {
|
|
@@ -315,30 +315,30 @@ function ne() {
|
|
|
315
315
|
}
|
|
316
316
|
return "";
|
|
317
317
|
}
|
|
318
|
-
var lt = Object.prototype.hasOwnProperty,
|
|
319
|
-
function
|
|
318
|
+
var lt = Object.prototype.hasOwnProperty, Jt = {}, Vt = C.ReactDebugCurrentFrame;
|
|
319
|
+
function xt(n) {
|
|
320
320
|
if (n) {
|
|
321
321
|
var c = n._owner, u = yt(n.type, n._source, c ? c.type : null);
|
|
322
|
-
|
|
322
|
+
Vt.setExtraStackFrame(u);
|
|
323
323
|
} else
|
|
324
|
-
|
|
324
|
+
Vt.setExtraStackFrame(null);
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function Sn(n, c, u, P, A) {
|
|
327
327
|
{
|
|
328
328
|
var S = Function.call.bind(lt);
|
|
329
329
|
for (var w in n)
|
|
330
330
|
if (S(n, w)) {
|
|
331
|
-
var
|
|
331
|
+
var b = void 0;
|
|
332
332
|
try {
|
|
333
333
|
if (typeof n[w] != "function") {
|
|
334
|
-
var O = Error((
|
|
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
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
|
}
|
|
@@ -346,33 +346,33 @@ function ne() {
|
|
|
346
346
|
function It(n) {
|
|
347
347
|
return In(n);
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function Rn(n) {
|
|
350
350
|
{
|
|
351
351
|
var c = typeof Symbol == "function" && Symbol.toStringTag, u = c && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
352
352
|
return u;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Nn(n) {
|
|
356
356
|
try {
|
|
357
|
-
return
|
|
357
|
+
return Yt(n), !1;
|
|
358
358
|
} catch {
|
|
359
359
|
return !0;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Yt(n) {
|
|
363
363
|
return "" + n;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
366
|
-
if (
|
|
367
|
-
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
365
|
+
function Gt(n) {
|
|
366
|
+
if (Nn(n))
|
|
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
|
|
369
|
+
var Kt = C.ReactCurrentOwner, Fn = {
|
|
370
370
|
key: !0,
|
|
371
371
|
ref: !0,
|
|
372
372
|
__self: !0,
|
|
373
373
|
__source: !0
|
|
374
|
-
},
|
|
375
|
-
function
|
|
374
|
+
}, Qt, Wt;
|
|
375
|
+
function zn(n) {
|
|
376
376
|
if (lt.call(n, "ref")) {
|
|
377
377
|
var c = Object.getOwnPropertyDescriptor(n, "ref").get;
|
|
378
378
|
if (c && c.isReactWarning)
|
|
@@ -380,7 +380,7 @@ function ne() {
|
|
|
380
380
|
}
|
|
381
381
|
return n.ref !== void 0;
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function En(n) {
|
|
384
384
|
if (lt.call(n, "key")) {
|
|
385
385
|
var c = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
386
386
|
if (c && c.isReactWarning)
|
|
@@ -388,13 +388,13 @@ function ne() {
|
|
|
388
388
|
}
|
|
389
389
|
return n.key !== void 0;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
392
|
-
typeof n.ref == "string" &&
|
|
391
|
+
function Bn(n, c) {
|
|
392
|
+
typeof n.ref == "string" && Kt.current;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function Tn(n, c) {
|
|
395
395
|
{
|
|
396
396
|
var u = function() {
|
|
397
|
-
|
|
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
399
|
u.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
400
400
|
get: u,
|
|
@@ -402,10 +402,10 @@ function ne() {
|
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function Dn(n, c) {
|
|
406
406
|
{
|
|
407
407
|
var u = function() {
|
|
408
|
-
|
|
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
410
|
u.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
411
411
|
get: u,
|
|
@@ -413,8 +413,8 @@ function ne() {
|
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
var
|
|
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
|
|
@@ -425,58 +425,58 @@ function ne() {
|
|
|
425
425
|
// Record the component responsible for creating this element.
|
|
426
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
442
|
value: A
|
|
443
|
-
}), Object.freeze && (Object.freeze(
|
|
443
|
+
}), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
|
|
444
444
|
};
|
|
445
|
-
function
|
|
445
|
+
function Mn(n, c, u, P, A) {
|
|
446
446
|
{
|
|
447
|
-
var S, w = {},
|
|
448
|
-
u !== void 0 && (
|
|
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
449
|
for (S in c)
|
|
450
|
-
lt.call(c, S) && !
|
|
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
453
|
for (S in N)
|
|
454
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
|
|
460
|
+
return On(n, b, O, A, P, Kt.current, w);
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
var
|
|
463
|
+
var Rt = C.ReactCurrentOwner, Xt = C.ReactDebugCurrentFrame;
|
|
464
464
|
function ot(n) {
|
|
465
465
|
if (n) {
|
|
466
466
|
var c = n._owner, u = yt(n.type, n._source, c ? c.type : null);
|
|
467
|
-
|
|
467
|
+
Xt.setExtraStackFrame(u);
|
|
468
468
|
} else
|
|
469
|
-
|
|
469
|
+
Xt.setExtraStackFrame(null);
|
|
470
470
|
}
|
|
471
|
-
var
|
|
472
|
-
|
|
473
|
-
function
|
|
471
|
+
var Nt;
|
|
472
|
+
Nt = !1;
|
|
473
|
+
function Ft(n) {
|
|
474
474
|
return typeof n == "object" && n !== null && n.$$typeof === r;
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function qt() {
|
|
477
477
|
{
|
|
478
|
-
if (
|
|
479
|
-
var n = J(
|
|
478
|
+
if (Rt.current) {
|
|
479
|
+
var n = J(Rt.current.type);
|
|
480
480
|
if (n)
|
|
481
481
|
return `
|
|
482
482
|
|
|
@@ -485,13 +485,13 @@ 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
|
-
var
|
|
492
|
-
function
|
|
491
|
+
var $t = {};
|
|
492
|
+
function Zn(n) {
|
|
493
493
|
{
|
|
494
|
-
var c =
|
|
494
|
+
var c = qt();
|
|
495
495
|
if (!c) {
|
|
496
496
|
var u = typeof n == "string" ? n : n.displayName || n.name;
|
|
497
497
|
u && (c = `
|
|
@@ -501,39 +501,39 @@ Check the top-level render call using <` + u + ">.");
|
|
|
501
501
|
return c;
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function tn(n, c) {
|
|
505
505
|
{
|
|
506
506
|
if (!n._store || n._store.validated || n.key != null)
|
|
507
507
|
return;
|
|
508
508
|
n._store.validated = !0;
|
|
509
|
-
var u =
|
|
510
|
-
if (
|
|
509
|
+
var u = Zn(c);
|
|
510
|
+
if ($t[u])
|
|
511
511
|
return;
|
|
512
|
-
|
|
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
|
-
function
|
|
517
|
+
function nn(n, c) {
|
|
518
518
|
{
|
|
519
519
|
if (typeof n != "object")
|
|
520
520
|
return;
|
|
521
521
|
if (It(n))
|
|
522
522
|
for (var u = 0; u < n.length; u++) {
|
|
523
|
-
var
|
|
524
|
-
|
|
523
|
+
var P = n[u];
|
|
524
|
+
Ft(P) && tn(P, c);
|
|
525
525
|
}
|
|
526
|
-
else if (
|
|
526
|
+
else if (Ft(n))
|
|
527
527
|
n._store && (n._store.validated = !0);
|
|
528
528
|
else if (n) {
|
|
529
529
|
var A = k(n);
|
|
530
530
|
if (typeof A == "function" && A !== n.entries)
|
|
531
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
|
}
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function Hn(n) {
|
|
537
537
|
{
|
|
538
538
|
var c = n.type;
|
|
539
539
|
if (c == null || typeof c == "string")
|
|
@@ -548,130 +548,136 @@ Check the top-level render call using <` + u + ">.");
|
|
|
548
548
|
else
|
|
549
549
|
return;
|
|
550
550
|
if (u) {
|
|
551
|
-
var
|
|
552
|
-
|
|
553
|
-
} else if (c.PropTypes !== void 0 && !
|
|
554
|
-
|
|
551
|
+
var P = J(c);
|
|
552
|
+
Sn(u, n.props, "prop", P, n);
|
|
553
|
+
} else if (c.PropTypes !== void 0 && !Nt) {
|
|
554
|
+
Nt = !0;
|
|
555
555
|
var A = J(c);
|
|
556
556
|
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A || "Unknown");
|
|
557
557
|
}
|
|
558
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
|
-
function
|
|
561
|
+
function Un(n) {
|
|
562
562
|
{
|
|
563
563
|
for (var c = Object.keys(n.props), u = 0; u < c.length; u++) {
|
|
564
|
-
var
|
|
565
|
-
if (
|
|
566
|
-
ot(n), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
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
570
|
n.ref !== null && (ot(n), j("Invalid attribute `ref` supplied to `React.Fragment`."), ot(null));
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
var
|
|
574
|
-
function
|
|
573
|
+
var en = {};
|
|
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 O =
|
|
581
|
-
O ?
|
|
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" : It(n) ? N = "array" : n !== void 0 && n.$$typeof === r ? (N = "<" + (J(n.type) || "Unknown") + " />",
|
|
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 =
|
|
585
|
+
var F = Mn(n, c, u, A, S);
|
|
586
586
|
if (F == null)
|
|
587
587
|
return F;
|
|
588
588
|
if (w) {
|
|
589
589
|
var L = c.children;
|
|
590
590
|
if (L !== void 0)
|
|
591
|
-
if (
|
|
591
|
+
if (P)
|
|
592
592
|
if (It(L)) {
|
|
593
593
|
for (var it = 0; it < L.length; it++)
|
|
594
|
-
|
|
594
|
+
nn(L[it], n);
|
|
595
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
|
-
|
|
599
|
+
nn(L, n);
|
|
600
600
|
}
|
|
601
601
|
if (lt.call(c, "key")) {
|
|
602
|
-
var q = J(n), M = Object.keys(c).filter(function(
|
|
603
|
-
return
|
|
604
|
-
}),
|
|
605
|
-
if (!
|
|
606
|
-
var
|
|
602
|
+
var q = J(n), M = Object.keys(c).filter(function(Qn) {
|
|
603
|
+
return Qn !== "key";
|
|
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
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} />`,
|
|
612
|
+
<%s key={someKey} {...props} />`, zt, q, Kn, q), en[q + zt] = !0;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
return n === s ?
|
|
615
|
+
return n === s ? Un(F) : Hn(F), F;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
function
|
|
619
|
-
return
|
|
618
|
+
function Jn(n, c, u) {
|
|
619
|
+
return rn(n, c, u, !0);
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
return
|
|
621
|
+
function Vn(n, c, u) {
|
|
622
|
+
return rn(n, c, u, !1);
|
|
623
623
|
}
|
|
624
|
-
var
|
|
625
|
-
mt.Fragment = s, mt.jsx =
|
|
624
|
+
var Yn = Vn, Gn = Jn;
|
|
625
|
+
mt.Fragment = s, mt.jsx = Yn, mt.jsxs = Gn;
|
|
626
626
|
}()), mt;
|
|
627
627
|
}
|
|
628
|
-
process.env.NODE_ENV === "production" ?
|
|
629
|
-
var e =
|
|
630
|
-
const
|
|
631
|
-
button:
|
|
628
|
+
process.env.NODE_ENV === "production" ? Tt.exports = $n() : Tt.exports = te();
|
|
629
|
+
var e = Tt.exports;
|
|
630
|
+
const ne = "_button_qg5kh_1", ee = {
|
|
631
|
+
button: ne
|
|
632
632
|
};
|
|
633
|
-
function
|
|
634
|
-
return /* @__PURE__ */ e.jsx("button", { className: `${
|
|
633
|
+
function di({ className: t = "", ...r }) {
|
|
634
|
+
return /* @__PURE__ */ e.jsx("button", { className: `${ee.button} ${t}`, ...r, children: "TEST" });
|
|
635
635
|
}
|
|
636
|
-
const
|
|
637
|
-
archive_doicitation: oe,
|
|
638
|
-
doi_badge: ie,
|
|
639
|
-
doi_left: se,
|
|
640
|
-
doi_right: ae
|
|
641
|
-
}, ce = ({
|
|
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 yi({
|
|
|
680
686
|
children: _ = "?",
|
|
681
687
|
...m
|
|
682
688
|
}) {
|
|
683
|
-
const [a, g] = B(!1), l =
|
|
689
|
+
const [a, g] = B(!1), l = Mt(null), x = r !== void 0 ? r : t, h = x != null;
|
|
684
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);
|
|
@@ -715,15 +721,15 @@ function yi({
|
|
|
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 bi({ 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%",
|
|
@@ -751,7 +757,7 @@ function bi({ className: t = "", style: r, ...o }) {
|
|
|
751
757
|
}
|
|
752
758
|
);
|
|
753
759
|
}
|
|
754
|
-
function
|
|
760
|
+
function gn({ className: t = "h-4 w-4", ...r }) {
|
|
755
761
|
return /* @__PURE__ */ e.jsxs(
|
|
756
762
|
"svg",
|
|
757
763
|
{
|
|
@@ -771,7 +777,7 @@ function un({ className: t = "h-4 w-4", ...r }) {
|
|
|
771
777
|
}
|
|
772
778
|
);
|
|
773
779
|
}
|
|
774
|
-
function
|
|
780
|
+
function un({ className: t = "h-4 w-4", ...r }) {
|
|
775
781
|
return /* @__PURE__ */ e.jsx(
|
|
776
782
|
"svg",
|
|
777
783
|
{
|
|
@@ -788,7 +794,7 @@ function dn({ 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 ge({ className: t = "h-4 w-4", ...r }) {
|
|
|
829
835
|
}
|
|
830
836
|
);
|
|
831
837
|
}
|
|
832
|
-
const $ = (...t) => t.filter(Boolean).join(" "),
|
|
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 xi({
|
|
|
843
849
|
classes: _ = {},
|
|
844
850
|
...m
|
|
845
851
|
}) {
|
|
846
|
-
const [a, g] = B(!1), l =
|
|
852
|
+
const [a, g] = B(!1), l = Mt(null), x = `${t}/nodes/${r}/download`, h = o || ce;
|
|
847
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);
|
|
@@ -871,7 +877,7 @@ function xi({
|
|
|
871
877
|
onClick: () => g((p) => !p),
|
|
872
878
|
className: $("struct-download__button", _.button),
|
|
873
879
|
children: /* @__PURE__ */ e.jsx(
|
|
874
|
-
|
|
880
|
+
Lt,
|
|
875
881
|
{
|
|
876
882
|
className: $("struct-download__icon", _.icon)
|
|
877
883
|
}
|
|
@@ -893,7 +899,7 @@ function xi({
|
|
|
893
899
|
"a",
|
|
894
900
|
{
|
|
895
901
|
role: "menuitem",
|
|
896
|
-
href: `${
|
|
902
|
+
href: `${x}?download_format=${p}`,
|
|
897
903
|
className: $(_.menuLink),
|
|
898
904
|
children: f
|
|
899
905
|
}
|
|
@@ -907,8 +913,8 @@ function xi({
|
|
|
907
913
|
}
|
|
908
914
|
);
|
|
909
915
|
}
|
|
910
|
-
const
|
|
911
|
-
function
|
|
916
|
+
const le = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIoAAACACAYAAADUHPECAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAAC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L3l/8zMLTQ675dZYzq1gCKqSRU5ECPLScBk7MsZkuWzPEwnrRULO3wYeHKv7VXr3qoy5YZU0uOpk+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 wi({
|
|
|
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 wi({
|
|
|
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 wi({
|
|
|
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",
|
|
@@ -971,14 +977,14 @@ function ki({
|
|
|
971
977
|
containerClassName: a = "",
|
|
972
978
|
switchClassName: g = "",
|
|
973
979
|
thumbClassName: l = "",
|
|
974
|
-
...
|
|
980
|
+
...x
|
|
975
981
|
}) {
|
|
976
|
-
const [h, p] = B(!1), f = i !== void 0,
|
|
982
|
+
const [h, p] = B(!1), f = i !== void 0, v = f ? i : h;
|
|
977
983
|
rt(() => {
|
|
978
984
|
f && p(i);
|
|
979
985
|
}, [i, f]);
|
|
980
986
|
const z = () => {
|
|
981
|
-
const k = !
|
|
987
|
+
const k = !v;
|
|
982
988
|
f || p(k), _(k);
|
|
983
989
|
};
|
|
984
990
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -986,14 +992,14 @@ function ki({
|
|
|
986
992
|
{
|
|
987
993
|
className: `${tt.toggleSwitchWrapper} ${a}`,
|
|
988
994
|
style: { fontSize: s },
|
|
989
|
-
...
|
|
995
|
+
...x,
|
|
990
996
|
children: [
|
|
991
997
|
/* @__PURE__ */ e.jsx("span", { className: `${tt.toggleLabel} ${m}`, children: r }),
|
|
992
998
|
/* @__PURE__ */ e.jsx("div", { className: tt.toggleSwitchContainer, children: /* @__PURE__ */ e.jsx(
|
|
993
999
|
"button",
|
|
994
1000
|
{
|
|
995
1001
|
type: "button",
|
|
996
|
-
className: `${tt.toggleSwitch} ${
|
|
1002
|
+
className: `${tt.toggleSwitch} ${v ? tt.toggled : ""} ${g}`,
|
|
997
1003
|
onClick: z,
|
|
998
1004
|
style: { "--switch-length": t },
|
|
999
1005
|
children: /* @__PURE__ */ e.jsx("div", { className: `${tt.thumb} ${l}` })
|
|
@@ -1004,13 +1010,13 @@ function ki({
|
|
|
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,
|
|
@@ -1024,7 +1030,7 @@ function Ai({
|
|
|
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 ? {
|
|
@@ -1034,15 +1040,15 @@ function Ai({
|
|
|
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
1050
|
const Y = (...t) => t.filter(Boolean).join(" ");
|
|
1045
|
-
function
|
|
1051
|
+
function ye({
|
|
1046
1052
|
onFile: t,
|
|
1047
1053
|
accept: r,
|
|
1048
1054
|
fileName: o,
|
|
@@ -1053,15 +1059,15 @@ function Ae({
|
|
|
1053
1059
|
hint: a,
|
|
1054
1060
|
className: g,
|
|
1055
1061
|
classes: l = {},
|
|
1056
|
-
...
|
|
1062
|
+
...x
|
|
1057
1063
|
}) {
|
|
1058
|
-
const h =
|
|
1064
|
+
const h = Mt(null), [p, f] = B(!1), v = (k) => {
|
|
1059
1065
|
!k || s || t == null || t(k);
|
|
1060
1066
|
}, z = (k) => {
|
|
1061
1067
|
var C;
|
|
1062
|
-
k.preventDefault(), f(!1),
|
|
1068
|
+
k.preventDefault(), f(!1), v((C = k.dataTransfer.files) == null ? void 0 : C[0]);
|
|
1063
1069
|
};
|
|
1064
|
-
return /* @__PURE__ */ e.jsxs("div", { className: Y("mc-dropzone", g, l.root), ...
|
|
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
|
{
|
|
@@ -1072,7 +1078,7 @@ function Ae({
|
|
|
1072
1078
|
className: Y(l.input),
|
|
1073
1079
|
onChange: (k) => {
|
|
1074
1080
|
var C;
|
|
1075
|
-
|
|
1081
|
+
v((C = k.target.files) == null ? void 0 : C[0]), k.target.value = "";
|
|
1076
1082
|
},
|
|
1077
1083
|
hidden: !0
|
|
1078
1084
|
}
|
|
@@ -1097,7 +1103,7 @@ function Ae({
|
|
|
1097
1103
|
l.button
|
|
1098
1104
|
),
|
|
1099
1105
|
children: [
|
|
1100
|
-
/* @__PURE__ */ e.jsx("span", { className: Y("mc-dropzone__icon", l.icon), children: /* @__PURE__ */ e.jsx(
|
|
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
1108
|
/* @__PURE__ */ e.jsx("p", { className: Y("mc-dropzone__title", l.fileName), children: o }),
|
|
1103
1109
|
/* @__PURE__ */ e.jsx("p", { className: Y("mc-dropzone__subtitle", l.subtitle), children: m })
|
|
@@ -1116,12 +1122,12 @@ function Ae({
|
|
|
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,
|
|
@@ -1132,9 +1138,9 @@ function Ce({
|
|
|
1132
1138
|
deleteLabel: a = "Delete",
|
|
1133
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", g, l.root), ...
|
|
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 Ce({
|
|
|
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(
|
|
@@ -1182,22 +1188,22 @@ function Ce({
|
|
|
1182
1188
|
)) })
|
|
1183
1189
|
] });
|
|
1184
1190
|
}
|
|
1185
|
-
function
|
|
1191
|
+
function dn(t) {
|
|
1186
1192
|
var o;
|
|
1187
1193
|
const r = (o = String(t).match(
|
|
1188
1194
|
/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/
|
|
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,
|
|
@@ -1210,22 +1216,22 @@ function Ie({
|
|
|
1210
1216
|
if (!m) return;
|
|
1211
1217
|
const a = s ?? _.get("format"), g = _.get("tag");
|
|
1212
1218
|
fetch(m).then((l) => l.json()).then((l) => {
|
|
1213
|
-
const
|
|
1214
|
-
structure:
|
|
1219
|
+
const x = a === "optimade" ? { structure: Xn(ke(l)), format: a } : {
|
|
1220
|
+
structure: qn(we(l)),
|
|
1215
1221
|
format: "aiida"
|
|
1216
|
-
}, h = g ??
|
|
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
|
|
1224
|
-
function
|
|
1229
|
+
const je = "#", nt = (...t) => t.filter(Boolean).join(" ");
|
|
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,
|
|
@@ -1236,29 +1242,29 @@ function ji({
|
|
|
1236
1242
|
classes: a = {},
|
|
1237
1243
|
...g
|
|
1238
1244
|
}) {
|
|
1239
|
-
const [l,
|
|
1245
|
+
const [l, x] = B(() => Et() === t);
|
|
1240
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) {
|
|
1247
1253
|
o();
|
|
1248
1254
|
return;
|
|
1249
1255
|
}
|
|
1250
|
-
|
|
1256
|
+
Et() === t && window.history.replaceState(
|
|
1251
1257
|
null,
|
|
1252
1258
|
"",
|
|
1253
1259
|
window.location.pathname + window.location.search
|
|
1254
|
-
),
|
|
1260
|
+
), x(!1);
|
|
1255
1261
|
};
|
|
1256
1262
|
return rt(() => {
|
|
1257
1263
|
if (!p) return;
|
|
1258
|
-
const
|
|
1264
|
+
const v = (z) => {
|
|
1259
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
|
{
|
|
@@ -1270,7 +1276,7 @@ function ji({
|
|
|
1270
1276
|
{
|
|
1271
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: [
|
|
@@ -1306,7 +1312,7 @@ function ji({
|
|
|
1306
1312
|
) : null;
|
|
1307
1313
|
}
|
|
1308
1314
|
const H = (...t) => t.filter(Boolean).join(" ");
|
|
1309
|
-
function
|
|
1315
|
+
function bi({
|
|
1310
1316
|
title: t,
|
|
1311
1317
|
text: r,
|
|
1312
1318
|
filename: o = "text.txt",
|
|
@@ -1316,10 +1322,10 @@ function Ci({
|
|
|
1316
1322
|
classes: m = {},
|
|
1317
1323
|
...a
|
|
1318
1324
|
}) {
|
|
1319
|
-
const [g, l] = B(!0), [
|
|
1325
|
+
const [g, l] = B(!0), [x, h] = B(!1), p = s !== void 0 ? s : g, f = () => {
|
|
1320
1326
|
const k = !p;
|
|
1321
1327
|
i ? i(k) : l(k);
|
|
1322
|
-
},
|
|
1328
|
+
}, v = async (k) => {
|
|
1323
1329
|
k.stopPropagation();
|
|
1324
1330
|
try {
|
|
1325
1331
|
await navigator.clipboard.writeText(r), h(!0), setTimeout(() => {
|
|
@@ -1396,7 +1402,7 @@ function Ci({
|
|
|
1396
1402
|
"button",
|
|
1397
1403
|
{
|
|
1398
1404
|
type: "button",
|
|
1399
|
-
onClick:
|
|
1405
|
+
onClick: v,
|
|
1400
1406
|
className: H(
|
|
1401
1407
|
"text-renderer__action",
|
|
1402
1408
|
"text-renderer__copy-button",
|
|
@@ -1404,8 +1410,8 @@ function Ci({
|
|
|
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
|
),
|
|
@@ -1421,7 +1427,7 @@ function Ci({
|
|
|
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
|
}
|
|
@@ -1455,7 +1461,7 @@ function Ci({
|
|
|
1455
1461
|
);
|
|
1456
1462
|
}
|
|
1457
1463
|
const U = (...t) => t.filter(Boolean).join(" ");
|
|
1458
|
-
function
|
|
1464
|
+
function wi({
|
|
1459
1465
|
title: t,
|
|
1460
1466
|
text: r,
|
|
1461
1467
|
filename: o = "text.txt",
|
|
@@ -1466,9 +1472,9 @@ function Si({
|
|
|
1466
1472
|
classes: a = {},
|
|
1467
1473
|
...g
|
|
1468
1474
|
}) {
|
|
1469
|
-
const [l,
|
|
1475
|
+
const [l, x] = B(!0), [h, p] = B(!1), f = s !== void 0 ? s : l, v = () => {
|
|
1470
1476
|
const C = !f;
|
|
1471
|
-
i ? i(C) :
|
|
1477
|
+
i ? i(C) : x(C);
|
|
1472
1478
|
}, z = async (C) => {
|
|
1473
1479
|
C.stopPropagation();
|
|
1474
1480
|
try {
|
|
@@ -1482,8 +1488,8 @@ function Si({
|
|
|
1482
1488
|
C.stopPropagation();
|
|
1483
1489
|
const j = new Blob([r], {
|
|
1484
1490
|
type: "text/plain;charset=utf-8"
|
|
1485
|
-
}), T = URL.createObjectURL(j),
|
|
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",
|
|
@@ -1503,7 +1509,7 @@ function Si({
|
|
|
1503
1509
|
"button",
|
|
1504
1510
|
{
|
|
1505
1511
|
type: "button",
|
|
1506
|
-
onClick:
|
|
1512
|
+
onClick: v,
|
|
1507
1513
|
className: U("text-renderer__toggle", a.toggle),
|
|
1508
1514
|
"aria-expanded": f,
|
|
1509
1515
|
children: [
|
|
@@ -1554,7 +1560,7 @@ function Si({
|
|
|
1554
1560
|
a.copyButton
|
|
1555
1561
|
),
|
|
1556
1562
|
children: [
|
|
1557
|
-
h ? /* @__PURE__ */ e.jsx(
|
|
1563
|
+
h ? /* @__PURE__ */ e.jsx(un, { className: "text-renderer__action-icon" }) : /* @__PURE__ */ e.jsx(gn, { className: "text-renderer__action-icon" }),
|
|
1558
1564
|
/* @__PURE__ */ e.jsx("span", { children: h ? "Copied!" : "Copy" })
|
|
1559
1565
|
]
|
|
1560
1566
|
}
|
|
@@ -1571,7 +1577,7 @@ function Si({
|
|
|
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
|
}
|
|
@@ -1606,7 +1612,7 @@ function Si({
|
|
|
1606
1612
|
);
|
|
1607
1613
|
}
|
|
1608
1614
|
const st = (...t) => t.filter(Boolean).join(" ");
|
|
1609
|
-
function
|
|
1615
|
+
function ki({
|
|
1610
1616
|
title: t,
|
|
1611
1617
|
children: r,
|
|
1612
1618
|
className: o = "",
|
|
@@ -1615,7 +1621,7 @@ function Ri({
|
|
|
1615
1621
|
classes: _ = {},
|
|
1616
1622
|
...m
|
|
1617
1623
|
}) {
|
|
1618
|
-
const [a, g] = B(!0), l = s !== void 0 ? s : a,
|
|
1624
|
+
const [a, g] = B(!0), l = s !== void 0 ? s : a, x = () => {
|
|
1619
1625
|
const h = !l;
|
|
1620
1626
|
i ? i(h) : g(h);
|
|
1621
1627
|
};
|
|
@@ -1636,7 +1642,7 @@ function Ri({
|
|
|
1636
1642
|
"button",
|
|
1637
1643
|
{
|
|
1638
1644
|
type: "button",
|
|
1639
|
-
onClick:
|
|
1645
|
+
onClick: x,
|
|
1640
1646
|
className: st("info-accordion__toggle", _.toggle),
|
|
1641
1647
|
"aria-expanded": l,
|
|
1642
1648
|
children: [
|
|
@@ -1700,7 +1706,7 @@ function Ri({
|
|
|
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);
|
|
@@ -1737,20 +1743,20 @@ function Fe(t, { maxEntries: r = 50 } = {}) {
|
|
|
1737
1743
|
}
|
|
1738
1744
|
return { load: o, save: s, add: i, remove: _, clear: m };
|
|
1739
1745
|
}
|
|
1740
|
-
const
|
|
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
|
-
const
|
|
1753
|
+
const fn = (t) => `${hn()}?${t}`;
|
|
1748
1754
|
function Pn(t) {
|
|
1749
|
-
const r = t ?
|
|
1755
|
+
const r = t ? fn(t) : hn();
|
|
1750
1756
|
window.history.replaceState(null, "", r + window.location.hash);
|
|
1751
1757
|
}
|
|
1752
|
-
async function
|
|
1753
|
-
const o = await fetch(
|
|
1758
|
+
async function Re(t, r) {
|
|
1759
|
+
const o = await fetch(pn(r), {
|
|
1754
1760
|
method: "POST",
|
|
1755
1761
|
headers: { "Content-Type": "application/json" },
|
|
1756
1762
|
body: JSON.stringify(t)
|
|
@@ -1760,26 +1766,26 @@ async function Be(t, r) {
|
|
|
1760
1766
|
const { id: s } = await o.json();
|
|
1761
1767
|
return s;
|
|
1762
1768
|
}
|
|
1763
|
-
async function
|
|
1764
|
-
const o = await fetch(`${
|
|
1769
|
+
async function Ne(t, r) {
|
|
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
|
-
structure:
|
|
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
|
-
return { structure:
|
|
1785
|
+
return { structure: Bt(t.structure), fileName: t.fileName };
|
|
1780
1786
|
}
|
|
1781
|
-
const et = (...t) => t.filter(Boolean).join(" "),
|
|
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,
|
|
@@ -1790,61 +1796,61 @@ function Ni({
|
|
|
1790
1796
|
title: a = "Drop your crystal structure here",
|
|
1791
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
|
-
), [z, k] = B(null), [C, j] = B(null), [T,
|
|
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"), y = d &&
|
|
1804
|
-
return y && (
|
|
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
1819
|
format: y,
|
|
1814
1820
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1815
|
-
structure:
|
|
1821
|
+
structure: mn(I)
|
|
1816
1822
|
})
|
|
1817
1823
|
));
|
|
1818
|
-
}, Q = (d, { remember: y = !0, fromLink:
|
|
1819
|
-
|
|
1824
|
+
}, Q = (d, { remember: y = !0, fromLink: I = !1 } = {}) => {
|
|
1825
|
+
R(null);
|
|
1820
1826
|
try {
|
|
1821
1827
|
r == null || r(d.structure);
|
|
1822
1828
|
} catch (D) {
|
|
1823
|
-
return
|
|
1829
|
+
return R((D == null ? void 0 : D.message) ?? String(D)), !1;
|
|
1824
1830
|
}
|
|
1825
|
-
return
|
|
1831
|
+
return I || Pn(null), t == null || t(d), y && At(d, { unique: I }), !0;
|
|
1826
1832
|
};
|
|
1827
1833
|
rt(() => {
|
|
1828
1834
|
K && Q(
|
|
1829
1835
|
{
|
|
1830
1836
|
format: K.format,
|
|
1831
|
-
structure:
|
|
1837
|
+
structure: Bt(K.structure),
|
|
1832
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
1844
|
let y = !1;
|
|
1839
|
-
return j("shared structure"),
|
|
1845
|
+
return j("shared structure"), Ne(d, x).then((I) => {
|
|
1840
1846
|
if (y) return;
|
|
1841
|
-
const { structure: D, fileName: W } =
|
|
1847
|
+
const { structure: D, fileName: W } = ze(I);
|
|
1842
1848
|
Q(
|
|
1843
1849
|
{ format: "shared", structure: D, fileName: W ?? d, shareId: d },
|
|
1844
1850
|
{ fromLink: !0 }
|
|
1845
1851
|
);
|
|
1846
|
-
}).catch((
|
|
1847
|
-
y ||
|
|
1852
|
+
}).catch((I) => {
|
|
1853
|
+
y || R(`Loading shared structure failed: ${I.message}`);
|
|
1848
1854
|
}).finally(() => {
|
|
1849
1855
|
y || j(null);
|
|
1850
1856
|
}), () => {
|
|
@@ -1853,57 +1859,57 @@ function Ni({
|
|
|
1853
1859
|
}, []);
|
|
1854
1860
|
const ft = async (d) => {
|
|
1855
1861
|
if (d) {
|
|
1856
|
-
k(d),
|
|
1862
|
+
k(d), R(null), j(d.name);
|
|
1857
1863
|
try {
|
|
1858
|
-
const y = await d.text(), { format:
|
|
1864
|
+
const y = await d.text(), { format: I, structure: D } = on(y, {
|
|
1859
1865
|
fileName: d.name
|
|
1860
1866
|
});
|
|
1861
|
-
Q({ format:
|
|
1867
|
+
Q({ format: I, structure: D, fileName: d.name });
|
|
1862
1868
|
} catch (y) {
|
|
1863
|
-
|
|
1869
|
+
R((y == null ? void 0 : y.message) ?? String(y));
|
|
1864
1870
|
} finally {
|
|
1865
1871
|
j(null);
|
|
1866
1872
|
}
|
|
1867
1873
|
}
|
|
1868
|
-
}, J = ({ structure: d, format: y, fileName:
|
|
1869
|
-
Q({ format: y, structure: d, fileName:
|
|
1874
|
+
}, J = ({ structure: d, format: y, fileName: I }) => {
|
|
1875
|
+
Q({ format: y, structure: d, fileName: I }, { fromLink: !0 });
|
|
1870
1876
|
}, V = (d) => {
|
|
1871
1877
|
try {
|
|
1872
1878
|
Q(
|
|
1873
1879
|
{
|
|
1874
1880
|
format: d.format,
|
|
1875
|
-
structure:
|
|
1881
|
+
structure: Bt(d.structure),
|
|
1876
1882
|
fileName: d.fileName
|
|
1877
1883
|
},
|
|
1878
1884
|
{ remember: !1 }
|
|
1879
1885
|
);
|
|
1880
1886
|
} catch (y) {
|
|
1881
|
-
|
|
1887
|
+
R((y == null ? void 0 : y.message) ?? String(y));
|
|
1882
1888
|
}
|
|
1883
1889
|
}, X = async (d) => {
|
|
1884
|
-
|
|
1890
|
+
R(null), ht(d.url);
|
|
1885
1891
|
try {
|
|
1886
1892
|
const y = await fetch(d.url);
|
|
1887
1893
|
if (!y.ok) throw new Error(`Failed to load example (${y.status})`);
|
|
1888
|
-
const
|
|
1889
|
-
fileName:
|
|
1894
|
+
const I = d.fileName ?? Ee(d.url), { format: D, structure: W } = on(await y.text(), {
|
|
1895
|
+
fileName: I
|
|
1890
1896
|
});
|
|
1891
|
-
Q({ format: D, structure: W, fileName:
|
|
1897
|
+
Q({ format: D, structure: W, fileName: I }, { remember: !1 });
|
|
1892
1898
|
} catch (y) {
|
|
1893
|
-
|
|
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
1904
|
i.reduce((d, y) => {
|
|
1899
|
-
var
|
|
1900
|
-
return (d[
|
|
1905
|
+
var 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
1909
|
return /* @__PURE__ */ e.jsxs("div", { className: et("mc-structure-upload", h, p.root), ...f, children: [
|
|
1904
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
1914
|
accept: g,
|
|
1909
1915
|
fileName: z == null ? void 0 : z.name,
|
|
@@ -1920,11 +1926,11 @@ function Ni({
|
|
|
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
1931
|
autoLoad: !K,
|
|
1926
1932
|
onLoaded: J,
|
|
1927
|
-
onError: (d) =>
|
|
1933
|
+
onError: (d) => R(d)
|
|
1928
1934
|
}
|
|
1929
1935
|
),
|
|
1930
1936
|
i.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: et("mc-structure-upload__examples", p.examples), children: [
|
|
@@ -1934,7 +1940,7 @@ function Ni({
|
|
|
1934
1940
|
{
|
|
1935
1941
|
value: "",
|
|
1936
1942
|
onChange: (d) => {
|
|
1937
|
-
const y = i.find((
|
|
1943
|
+
const y = i.find((I) => I.url === d.target.value);
|
|
1938
1944
|
y && X(y);
|
|
1939
1945
|
},
|
|
1940
1946
|
disabled: pt !== null,
|
|
@@ -1947,19 +1953,19 @@ function Ni({
|
|
|
1947
1953
|
)
|
|
1948
1954
|
] }),
|
|
1949
1955
|
E.length > 0 && /* @__PURE__ */ e.jsx(
|
|
1950
|
-
|
|
1956
|
+
be,
|
|
1951
1957
|
{
|
|
1952
1958
|
className: et("mc-structure-upload__history", p.history),
|
|
1953
1959
|
title: s,
|
|
1954
1960
|
entries: E,
|
|
1955
1961
|
onLoad: V,
|
|
1956
|
-
onDelete: (d) => G(
|
|
1957
|
-
onClear: () => G(
|
|
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(" "),
|
|
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(" "), ln = { status: "idle" }, Le =
|
|
|
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,7 +1999,7 @@ const ut = (...t) => t.filter(Boolean).join(" "), ln = { status: "idle" }, Le =
|
|
|
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
|
}
|
|
1996
|
-
),
|
|
2002
|
+
), De = () => /* @__PURE__ */ e.jsx(
|
|
1997
2003
|
"svg",
|
|
1998
2004
|
{
|
|
1999
2005
|
viewBox: "0 0 16 16",
|
|
@@ -2008,17 +2014,17 @@ const ut = (...t) => t.filter(Boolean).join(" "), ln = { status: "idle" }, Le =
|
|
|
2008
2014
|
children: /* @__PURE__ */ e.jsx("path", { d: "M3 8.5 6.5 12 13 4.5" })
|
|
2009
2015
|
}
|
|
2010
2016
|
);
|
|
2011
|
-
async function
|
|
2017
|
+
async function ln(t) {
|
|
2012
2018
|
try {
|
|
2013
2019
|
return await navigator.clipboard.writeText(t), !0;
|
|
2014
2020
|
} catch {
|
|
2015
2021
|
return !1;
|
|
2016
2022
|
}
|
|
2017
2023
|
}
|
|
2018
|
-
function
|
|
2024
|
+
function Ci({
|
|
2019
2025
|
data: t,
|
|
2020
2026
|
toDocument: r = (h) => h,
|
|
2021
|
-
kvUrl: o =
|
|
2027
|
+
kvUrl: o = Dt,
|
|
2022
2028
|
shareId: s,
|
|
2023
2029
|
onShared: i,
|
|
2024
2030
|
label: _ = "Share",
|
|
@@ -2026,30 +2032,30 @@ function Fi({
|
|
|
2026
2032
|
children: a,
|
|
2027
2033
|
className: g,
|
|
2028
2034
|
classes: l = {},
|
|
2029
|
-
...
|
|
2035
|
+
...x
|
|
2030
2036
|
}) {
|
|
2031
|
-
const [h, p] = B({ ...
|
|
2037
|
+
const [h, p] = B({ ...cn, data: t }), f = h.data === t ? h : cn;
|
|
2032
2038
|
if (!t) return null;
|
|
2033
|
-
const
|
|
2034
|
-
const
|
|
2035
|
-
|
|
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" });
|
|
2036
2042
|
try {
|
|
2037
|
-
const E = f.id ?? s ?? await
|
|
2043
|
+
const E = f.id ?? s ?? await Re(r(t), o);
|
|
2038
2044
|
Pn(E), E !== s && (i == null || i(E));
|
|
2039
|
-
const G =
|
|
2040
|
-
|
|
2045
|
+
const G = fn(E);
|
|
2046
|
+
R({ status: "done", id: E, link: G, copied: await ln(G) });
|
|
2041
2047
|
} catch (E) {
|
|
2042
|
-
|
|
2048
|
+
R({ status: "error", message: (E == null ? void 0 : E.message) ?? String(E) });
|
|
2043
2049
|
}
|
|
2044
|
-
}, k = async () => p({ ...f, data: t, copied: await
|
|
2050
|
+
}, k = async () => p({ ...f, data: t, copied: await ln(f.link) }), C = f.status === "done" ? /* @__PURE__ */ e.jsxs(
|
|
2045
2051
|
"button",
|
|
2046
2052
|
{
|
|
2047
2053
|
type: "button",
|
|
2048
2054
|
onClick: k,
|
|
2049
|
-
title:
|
|
2055
|
+
title: v,
|
|
2050
2056
|
className: ut("mc-share__button", l.button),
|
|
2051
2057
|
children: [
|
|
2052
|
-
f.copied ? /* @__PURE__ */ e.jsx(
|
|
2058
|
+
f.copied ? /* @__PURE__ */ e.jsx(De, {}) : /* @__PURE__ */ e.jsx(Te, {}),
|
|
2053
2059
|
f.copied ? "Copied" : "Copy link"
|
|
2054
2060
|
]
|
|
2055
2061
|
}
|
|
@@ -2059,10 +2065,10 @@ function Fi({
|
|
|
2059
2065
|
type: "button",
|
|
2060
2066
|
onClick: z,
|
|
2061
2067
|
disabled: f.status === "uploading",
|
|
2062
|
-
title:
|
|
2068
|
+
title: v,
|
|
2063
2069
|
className: ut("mc-share__button", l.button),
|
|
2064
2070
|
children: [
|
|
2065
|
-
/* @__PURE__ */ e.jsx(
|
|
2071
|
+
/* @__PURE__ */ e.jsx(Be, {}),
|
|
2066
2072
|
f.status === "uploading" ? m : _
|
|
2067
2073
|
]
|
|
2068
2074
|
}
|
|
@@ -2074,20 +2080,20 @@ function Fi({
|
|
|
2074
2080
|
{
|
|
2075
2081
|
readOnly: !0,
|
|
2076
2082
|
value: f.link,
|
|
2077
|
-
onFocus: (
|
|
2083
|
+
onFocus: (R) => R.target.select(),
|
|
2078
2084
|
"aria-label": "Share link",
|
|
2079
|
-
title:
|
|
2085
|
+
title: v,
|
|
2080
2086
|
className: ut("mc-share__input", l.result)
|
|
2081
2087
|
}
|
|
2082
2088
|
) : null;
|
|
2083
|
-
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), ...
|
|
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: [
|
|
2084
2090
|
j,
|
|
2085
2091
|
T,
|
|
2086
2092
|
C
|
|
2087
2093
|
] });
|
|
2088
2094
|
}
|
|
2089
|
-
const
|
|
2090
|
-
function
|
|
2095
|
+
const kt = (...t) => t.filter(Boolean).join(" ");
|
|
2096
|
+
function Si({
|
|
2091
2097
|
title: t,
|
|
2092
2098
|
logo: r,
|
|
2093
2099
|
logoAlt: o = "",
|
|
@@ -2097,13 +2103,13 @@ function zi({
|
|
|
2097
2103
|
classes: m = {},
|
|
2098
2104
|
...a
|
|
2099
2105
|
}) {
|
|
2100
|
-
return /* @__PURE__ */ e.jsxs("header", { className:
|
|
2106
|
+
return /* @__PURE__ */ e.jsxs("header", { className: kt("mc-app-header", _, m.root), ...a, children: [
|
|
2101
2107
|
/* @__PURE__ */ e.jsxs("div", { className: "mc-app-header__text", children: [
|
|
2102
|
-
/* @__PURE__ */ e.jsx("h1", { className:
|
|
2108
|
+
/* @__PURE__ */ e.jsx("h1", { className: kt("mc-app-header__title", m.title), children: t }),
|
|
2103
2109
|
i,
|
|
2104
|
-
s.length > 0 && /* @__PURE__ */ e.jsx("div", { className:
|
|
2105
|
-
const { doi: l, ...
|
|
2106
|
-
return /* @__PURE__ */ e.jsx(
|
|
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);
|
|
2107
2113
|
}) })
|
|
2108
2114
|
] }),
|
|
2109
2115
|
r && (typeof r == "string" ? /* @__PURE__ */ e.jsx(
|
|
@@ -2111,18 +2117,18 @@ function zi({
|
|
|
2111
2117
|
{
|
|
2112
2118
|
src: r,
|
|
2113
2119
|
alt: o,
|
|
2114
|
-
className:
|
|
2120
|
+
className: kt("mc-app-header__logo", m.logo)
|
|
2115
2121
|
}
|
|
2116
2122
|
) : r)
|
|
2117
2123
|
] });
|
|
2118
2124
|
}
|
|
2119
|
-
function
|
|
2125
|
+
function Ii(t) {
|
|
2120
2126
|
return t.split(/(\d+)/).map((o, s) => o.match(/\d+/) ? /* @__PURE__ */ e.jsx("sub", { children: o }, s) : o);
|
|
2121
2127
|
}
|
|
2122
|
-
const
|
|
2128
|
+
const Oe = {
|
|
2123
2129
|
display: "inline-block",
|
|
2124
2130
|
position: "relative"
|
|
2125
|
-
},
|
|
2131
|
+
}, Me = {
|
|
2126
2132
|
position: "absolute",
|
|
2127
2133
|
top: "0.15em",
|
|
2128
2134
|
left: 0,
|
|
@@ -2131,32 +2137,32 @@ const Ue = {
|
|
|
2131
2137
|
height: 0,
|
|
2132
2138
|
zIndex: 1
|
|
2133
2139
|
};
|
|
2134
|
-
function
|
|
2140
|
+
function Ri(t) {
|
|
2135
2141
|
let r = !1, o = !1;
|
|
2136
|
-
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:
|
|
2137
|
-
/* @__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 }),
|
|
2138
2144
|
s
|
|
2139
2145
|
] }, i)) : r ? (r = !1, /* @__PURE__ */ e.jsx("sub", { children: s }, i)) : s) });
|
|
2140
2146
|
}
|
|
2141
|
-
function
|
|
2147
|
+
function yn(t) {
|
|
2142
2148
|
return Math.sqrt(t.reduce((r, o) => r + o * o, 0));
|
|
2143
2149
|
}
|
|
2144
2150
|
function xn(t, r) {
|
|
2145
2151
|
return t.reduce((o, s, i) => o + s * r[i], 0);
|
|
2146
2152
|
}
|
|
2147
|
-
function
|
|
2153
|
+
function Le(t) {
|
|
2148
2154
|
return t[0].map((r, o) => t.map((s) => s[o]));
|
|
2149
2155
|
}
|
|
2150
|
-
function
|
|
2156
|
+
function Ze(t, r) {
|
|
2151
2157
|
return t.map((o) => o.map((s) => s * r));
|
|
2152
2158
|
}
|
|
2153
|
-
function
|
|
2159
|
+
function He(t) {
|
|
2154
2160
|
return Array.from(
|
|
2155
2161
|
{ length: t },
|
|
2156
2162
|
(r, o) => Array.from({ length: t }, (s, i) => o === i ? 1 : 0)
|
|
2157
2163
|
);
|
|
2158
2164
|
}
|
|
2159
|
-
function
|
|
2165
|
+
function Ue(t, r) {
|
|
2160
2166
|
for (var o = [], s = 0; s < t.length; s++) {
|
|
2161
2167
|
o[s] = [];
|
|
2162
2168
|
for (var i = 0; i < r[0].length; i++) {
|
|
@@ -2167,8 +2173,8 @@ function Ke(t, r) {
|
|
|
2167
2173
|
}
|
|
2168
2174
|
return o;
|
|
2169
2175
|
}
|
|
2170
|
-
function
|
|
2171
|
-
const r = t.length, o = t.map((i) =>
|
|
2176
|
+
function Je(t) {
|
|
2177
|
+
const r = t.length, o = t.map((i) => yn(i)), s = Array.from({ length: r }, () => Array(r).fill(0));
|
|
2172
2178
|
for (let i = 0; i < r; i++)
|
|
2173
2179
|
for (let _ = 0; _ < r; _++) {
|
|
2174
2180
|
if (i === _) {
|
|
@@ -2179,14 +2185,14 @@ function Qe(t) {
|
|
|
2179
2185
|
if (a > 0 && g > 0) {
|
|
2180
2186
|
let l = m / (a * g);
|
|
2181
2187
|
l = Math.max(-1, Math.min(1, l));
|
|
2182
|
-
const
|
|
2183
|
-
s[i][_] =
|
|
2188
|
+
const x = Math.acos(l);
|
|
2189
|
+
s[i][_] = x * (180 / Math.PI);
|
|
2184
2190
|
} else
|
|
2185
2191
|
s[i][_] = null;
|
|
2186
2192
|
}
|
|
2187
2193
|
return { lengths: o, angles: s };
|
|
2188
2194
|
}
|
|
2189
|
-
function
|
|
2195
|
+
function Ve(t) {
|
|
2190
2196
|
const r = t.length, o = t.map((i) => i.slice()), s = Array.from(
|
|
2191
2197
|
{ length: r },
|
|
2192
2198
|
(i, _) => Array.from({ length: r }, (m, a) => _ === a ? 1 : 0)
|
|
@@ -2209,7 +2215,7 @@ function We(t) {
|
|
|
2209
2215
|
}
|
|
2210
2216
|
return s;
|
|
2211
2217
|
}
|
|
2212
|
-
function
|
|
2218
|
+
function bn(t) {
|
|
2213
2219
|
const r = t.length;
|
|
2214
2220
|
if (r === 1) return t[0][0];
|
|
2215
2221
|
if (r === 2)
|
|
@@ -2217,520 +2223,520 @@ function wn(t) {
|
|
|
2217
2223
|
let o = 0;
|
|
2218
2224
|
for (let s = 0; s < r; s++) {
|
|
2219
2225
|
const i = t.slice(1).map((m) => m.filter((a, g) => g !== s)), _ = s % 2 === 0 ? 1 : -1;
|
|
2220
|
-
o += _ * t[0][s] *
|
|
2226
|
+
o += _ * t[0][s] * bn(i);
|
|
2221
2227
|
}
|
|
2222
2228
|
return o;
|
|
2223
2229
|
}
|
|
2224
|
-
const
|
|
2230
|
+
const Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2225
2231
|
__proto__: null,
|
|
2226
|
-
determinant:
|
|
2232
|
+
determinant: bn,
|
|
2227
2233
|
dot: xn,
|
|
2228
|
-
getMatrixParams:
|
|
2229
|
-
identityMatrix:
|
|
2230
|
-
invertMatrix:
|
|
2231
|
-
multiplyMatrices:
|
|
2232
|
-
norm:
|
|
2233
|
-
scalarMultiply:
|
|
2234
|
-
transpose:
|
|
2235
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2234
|
+
getMatrixParams: Je,
|
|
2235
|
+
identityMatrix: He,
|
|
2236
|
+
invertMatrix: Ve,
|
|
2237
|
+
multiplyMatrices: Ue,
|
|
2238
|
+
norm: yn,
|
|
2239
|
+
scalarMultiply: Ze,
|
|
2240
|
+
transpose: Le
|
|
2241
|
+
}, Symbol.toStringTag, { value: "Module" })), Ye = {
|
|
2236
2242
|
Z: 1,
|
|
2237
2243
|
mz: 1.00794
|
|
2238
|
-
},
|
|
2244
|
+
}, Ge = {
|
|
2239
2245
|
Z: 2,
|
|
2240
2246
|
mz: 4.002602
|
|
2241
|
-
},
|
|
2247
|
+
}, Ke = {
|
|
2242
2248
|
Z: 3,
|
|
2243
2249
|
mz: 6.941
|
|
2244
|
-
},
|
|
2250
|
+
}, Qe = {
|
|
2245
2251
|
Z: 4,
|
|
2246
2252
|
mz: 9.012182
|
|
2247
|
-
},
|
|
2253
|
+
}, We = {
|
|
2248
2254
|
Z: 5,
|
|
2249
2255
|
mz: 10.811
|
|
2250
|
-
},
|
|
2256
|
+
}, Xe = {
|
|
2251
2257
|
Z: 6,
|
|
2252
2258
|
mz: 12.0107
|
|
2253
|
-
},
|
|
2259
|
+
}, qe = {
|
|
2254
2260
|
Z: 7,
|
|
2255
2261
|
mz: 14.0067
|
|
2256
|
-
},
|
|
2262
|
+
}, $e = {
|
|
2257
2263
|
Z: 8,
|
|
2258
2264
|
mz: 15.9994
|
|
2259
|
-
},
|
|
2265
|
+
}, tr = {
|
|
2260
2266
|
Z: 9,
|
|
2261
2267
|
mz: 18.9984032
|
|
2262
|
-
},
|
|
2268
|
+
}, nr = {
|
|
2263
2269
|
Z: 10,
|
|
2264
2270
|
mz: 20.1797
|
|
2265
|
-
},
|
|
2271
|
+
}, er = {
|
|
2266
2272
|
Z: 11,
|
|
2267
2273
|
mz: 22.98976928
|
|
2268
|
-
},
|
|
2274
|
+
}, rr = {
|
|
2269
2275
|
Z: 12,
|
|
2270
2276
|
mz: 24.305
|
|
2271
|
-
},
|
|
2277
|
+
}, or = {
|
|
2272
2278
|
Z: 13,
|
|
2273
2279
|
mz: 26.9815386
|
|
2274
|
-
},
|
|
2280
|
+
}, ir = {
|
|
2275
2281
|
Z: 14,
|
|
2276
2282
|
mz: 28.0855
|
|
2277
|
-
},
|
|
2283
|
+
}, sr = {
|
|
2278
2284
|
Z: 15,
|
|
2279
2285
|
mz: 30.973762
|
|
2280
|
-
},
|
|
2286
|
+
}, ar = {
|
|
2281
2287
|
Z: 16,
|
|
2282
2288
|
mz: 32.065
|
|
2283
|
-
},
|
|
2289
|
+
}, cr = {
|
|
2284
2290
|
Z: 17,
|
|
2285
2291
|
mz: 35.453
|
|
2286
|
-
},
|
|
2292
|
+
}, lr = {
|
|
2287
2293
|
Z: 18,
|
|
2288
2294
|
mz: 39.948
|
|
2289
|
-
},
|
|
2295
|
+
}, _r = {
|
|
2290
2296
|
Z: 19,
|
|
2291
2297
|
mz: 39.0983
|
|
2292
|
-
},
|
|
2298
|
+
}, mr = {
|
|
2293
2299
|
Z: 20,
|
|
2294
2300
|
mz: 40.078
|
|
2295
|
-
},
|
|
2301
|
+
}, gr = {
|
|
2296
2302
|
Z: 21,
|
|
2297
2303
|
mz: 44.955912
|
|
2298
|
-
},
|
|
2304
|
+
}, ur = {
|
|
2299
2305
|
Z: 22,
|
|
2300
2306
|
mz: 47.867
|
|
2301
|
-
},
|
|
2307
|
+
}, dr = {
|
|
2302
2308
|
Z: 23,
|
|
2303
2309
|
mz: 50.9415
|
|
2304
|
-
},
|
|
2310
|
+
}, pr = {
|
|
2305
2311
|
Z: 24,
|
|
2306
2312
|
mz: 51.9961
|
|
2307
|
-
},
|
|
2313
|
+
}, hr = {
|
|
2308
2314
|
Z: 25,
|
|
2309
2315
|
mz: 54.938045
|
|
2310
|
-
},
|
|
2316
|
+
}, fr = {
|
|
2311
2317
|
Z: 26,
|
|
2312
2318
|
mz: 55.845
|
|
2313
|
-
},
|
|
2319
|
+
}, Pr = {
|
|
2314
2320
|
Z: 27,
|
|
2315
2321
|
mz: 58.933195
|
|
2316
|
-
},
|
|
2322
|
+
}, vr = {
|
|
2317
2323
|
Z: 28,
|
|
2318
2324
|
mz: 58.6934
|
|
2319
|
-
},
|
|
2325
|
+
}, yr = {
|
|
2320
2326
|
Z: 29,
|
|
2321
2327
|
mz: 63.546
|
|
2322
|
-
},
|
|
2328
|
+
}, xr = {
|
|
2323
2329
|
Z: 30,
|
|
2324
2330
|
mz: 65.409
|
|
2325
|
-
},
|
|
2331
|
+
}, br = {
|
|
2326
2332
|
Z: 31,
|
|
2327
2333
|
mz: 69.723
|
|
2328
|
-
},
|
|
2334
|
+
}, wr = {
|
|
2329
2335
|
Z: 32,
|
|
2330
2336
|
mz: 72.64
|
|
2331
|
-
},
|
|
2337
|
+
}, kr = {
|
|
2332
2338
|
Z: 33,
|
|
2333
2339
|
mz: 74.9216
|
|
2334
|
-
},
|
|
2340
|
+
}, Ar = {
|
|
2335
2341
|
Z: 34,
|
|
2336
2342
|
mz: 78.96
|
|
2337
|
-
},
|
|
2343
|
+
}, jr = {
|
|
2338
2344
|
Z: 35,
|
|
2339
2345
|
mz: 79.904
|
|
2340
|
-
},
|
|
2346
|
+
}, Cr = {
|
|
2341
2347
|
Z: 36,
|
|
2342
2348
|
mz: 83.798
|
|
2343
|
-
},
|
|
2349
|
+
}, Sr = {
|
|
2344
2350
|
Z: 37,
|
|
2345
2351
|
mz: 85.4678
|
|
2346
|
-
},
|
|
2352
|
+
}, Ir = {
|
|
2347
2353
|
Z: 38,
|
|
2348
2354
|
mz: 87.62
|
|
2349
|
-
},
|
|
2355
|
+
}, Rr = {
|
|
2350
2356
|
Z: 39,
|
|
2351
2357
|
mz: 88.90585
|
|
2352
|
-
},
|
|
2358
|
+
}, Nr = {
|
|
2353
2359
|
Z: 40,
|
|
2354
2360
|
mz: 91.224
|
|
2355
|
-
},
|
|
2361
|
+
}, Fr = {
|
|
2356
2362
|
Z: 41,
|
|
2357
2363
|
mz: 92.90638
|
|
2358
|
-
},
|
|
2364
|
+
}, zr = {
|
|
2359
2365
|
Z: 42,
|
|
2360
2366
|
mz: 95.94
|
|
2361
|
-
},
|
|
2367
|
+
}, Er = {
|
|
2362
2368
|
Z: 43,
|
|
2363
2369
|
mz: 98
|
|
2364
|
-
},
|
|
2370
|
+
}, Br = {
|
|
2365
2371
|
Z: 44,
|
|
2366
2372
|
mz: 101.07
|
|
2367
|
-
},
|
|
2373
|
+
}, Tr = {
|
|
2368
2374
|
Z: 45,
|
|
2369
2375
|
mz: 102.9055
|
|
2370
|
-
},
|
|
2376
|
+
}, Dr = {
|
|
2371
2377
|
Z: 46,
|
|
2372
2378
|
mz: 106.42
|
|
2373
|
-
},
|
|
2379
|
+
}, Or = {
|
|
2374
2380
|
Z: 47,
|
|
2375
2381
|
mz: 107.8682
|
|
2376
|
-
},
|
|
2382
|
+
}, Mr = {
|
|
2377
2383
|
Z: 48,
|
|
2378
2384
|
mz: 112.411
|
|
2379
|
-
},
|
|
2385
|
+
}, Lr = {
|
|
2380
2386
|
Z: 49,
|
|
2381
2387
|
mz: 114.818
|
|
2382
|
-
},
|
|
2388
|
+
}, Zr = {
|
|
2383
2389
|
Z: 50,
|
|
2384
2390
|
mz: 118.71
|
|
2385
|
-
},
|
|
2391
|
+
}, Hr = {
|
|
2386
2392
|
Z: 51,
|
|
2387
2393
|
mz: 121.76
|
|
2388
|
-
},
|
|
2394
|
+
}, Ur = {
|
|
2389
2395
|
Z: 52,
|
|
2390
2396
|
mz: 127.6
|
|
2391
|
-
},
|
|
2397
|
+
}, Jr = {
|
|
2392
2398
|
Z: 53,
|
|
2393
2399
|
mz: 126.90447
|
|
2394
|
-
},
|
|
2400
|
+
}, Vr = {
|
|
2395
2401
|
Z: 54,
|
|
2396
2402
|
mz: 131.293
|
|
2397
|
-
},
|
|
2403
|
+
}, Yr = {
|
|
2398
2404
|
Z: 55,
|
|
2399
2405
|
mz: 132.9054519
|
|
2400
|
-
},
|
|
2406
|
+
}, Gr = {
|
|
2401
2407
|
Z: 56,
|
|
2402
2408
|
mz: 137.327
|
|
2403
|
-
},
|
|
2409
|
+
}, Kr = {
|
|
2404
2410
|
Z: 57,
|
|
2405
2411
|
mz: 138.90547
|
|
2406
|
-
},
|
|
2412
|
+
}, Qr = {
|
|
2407
2413
|
Z: 58,
|
|
2408
2414
|
mz: 140.116
|
|
2409
|
-
},
|
|
2415
|
+
}, Wr = {
|
|
2410
2416
|
Z: 59,
|
|
2411
2417
|
mz: 140.90765
|
|
2412
|
-
},
|
|
2418
|
+
}, Xr = {
|
|
2413
2419
|
Z: 60,
|
|
2414
2420
|
mz: 144.242
|
|
2415
|
-
},
|
|
2421
|
+
}, qr = {
|
|
2416
2422
|
Z: 61,
|
|
2417
2423
|
mz: 145
|
|
2418
|
-
},
|
|
2424
|
+
}, $r = {
|
|
2419
2425
|
Z: 62,
|
|
2420
2426
|
mz: 150.36
|
|
2421
|
-
},
|
|
2427
|
+
}, to = {
|
|
2422
2428
|
Z: 63,
|
|
2423
2429
|
mz: 151.964
|
|
2424
|
-
},
|
|
2430
|
+
}, no = {
|
|
2425
2431
|
Z: 64,
|
|
2426
2432
|
mz: 157.25
|
|
2427
|
-
},
|
|
2433
|
+
}, eo = {
|
|
2428
2434
|
Z: 65,
|
|
2429
2435
|
mz: 158.92535
|
|
2430
|
-
},
|
|
2436
|
+
}, ro = {
|
|
2431
2437
|
Z: 66,
|
|
2432
2438
|
mz: 162.5
|
|
2433
|
-
},
|
|
2439
|
+
}, oo = {
|
|
2434
2440
|
Z: 67,
|
|
2435
2441
|
mz: 164.93032
|
|
2436
|
-
},
|
|
2442
|
+
}, io = {
|
|
2437
2443
|
Z: 68,
|
|
2438
2444
|
mz: 167.259
|
|
2439
|
-
},
|
|
2445
|
+
}, so = {
|
|
2440
2446
|
Z: 69,
|
|
2441
2447
|
mz: 168.93421
|
|
2442
|
-
},
|
|
2448
|
+
}, ao = {
|
|
2443
2449
|
Z: 70,
|
|
2444
2450
|
mz: 173.04
|
|
2445
|
-
},
|
|
2451
|
+
}, co = {
|
|
2446
2452
|
Z: 71,
|
|
2447
2453
|
mz: 174.967
|
|
2448
|
-
},
|
|
2454
|
+
}, lo = {
|
|
2449
2455
|
Z: 72,
|
|
2450
2456
|
mz: 178.49
|
|
2451
|
-
},
|
|
2457
|
+
}, _o = {
|
|
2452
2458
|
Z: 73,
|
|
2453
2459
|
mz: 180.94788
|
|
2454
|
-
},
|
|
2460
|
+
}, mo = {
|
|
2455
2461
|
Z: 74,
|
|
2456
2462
|
mz: 183.84
|
|
2457
|
-
},
|
|
2463
|
+
}, go = {
|
|
2458
2464
|
Z: 75,
|
|
2459
2465
|
mz: 186.207
|
|
2460
|
-
},
|
|
2466
|
+
}, uo = {
|
|
2461
2467
|
Z: 76,
|
|
2462
2468
|
mz: 190.23
|
|
2463
|
-
},
|
|
2469
|
+
}, po = {
|
|
2464
2470
|
Z: 77,
|
|
2465
2471
|
mz: 192.217
|
|
2466
|
-
},
|
|
2472
|
+
}, ho = {
|
|
2467
2473
|
Z: 78,
|
|
2468
2474
|
mz: 195.084
|
|
2469
|
-
},
|
|
2475
|
+
}, fo = {
|
|
2470
2476
|
Z: 79,
|
|
2471
2477
|
mz: 196.966569
|
|
2472
|
-
},
|
|
2478
|
+
}, Po = {
|
|
2473
2479
|
Z: 80,
|
|
2474
2480
|
mz: 200.59
|
|
2475
|
-
},
|
|
2481
|
+
}, vo = {
|
|
2476
2482
|
Z: 81,
|
|
2477
2483
|
mz: 204.3833
|
|
2478
|
-
},
|
|
2484
|
+
}, yo = {
|
|
2479
2485
|
Z: 82,
|
|
2480
2486
|
mz: 207.2
|
|
2481
|
-
},
|
|
2487
|
+
}, xo = {
|
|
2482
2488
|
Z: 83,
|
|
2483
2489
|
mz: 208.9804
|
|
2484
|
-
},
|
|
2490
|
+
}, bo = {
|
|
2485
2491
|
Z: 84,
|
|
2486
2492
|
mz: 210
|
|
2487
|
-
},
|
|
2493
|
+
}, wo = {
|
|
2488
2494
|
Z: 85,
|
|
2489
2495
|
mz: 210
|
|
2490
|
-
},
|
|
2496
|
+
}, ko = {
|
|
2491
2497
|
Z: 86,
|
|
2492
2498
|
mz: 220
|
|
2493
|
-
},
|
|
2499
|
+
}, Ao = {
|
|
2494
2500
|
Z: 87,
|
|
2495
2501
|
mz: 223
|
|
2496
|
-
},
|
|
2502
|
+
}, jo = {
|
|
2497
2503
|
Z: 88,
|
|
2498
2504
|
mz: 226
|
|
2499
|
-
},
|
|
2505
|
+
}, Co = {
|
|
2500
2506
|
Z: 89,
|
|
2501
2507
|
mz: 227
|
|
2502
|
-
},
|
|
2508
|
+
}, So = {
|
|
2503
2509
|
Z: 90,
|
|
2504
2510
|
mz: 232.03806
|
|
2505
|
-
},
|
|
2511
|
+
}, Io = {
|
|
2506
2512
|
Z: 91,
|
|
2507
2513
|
mz: 231.03588
|
|
2508
|
-
},
|
|
2514
|
+
}, Ro = {
|
|
2509
2515
|
Z: 92,
|
|
2510
2516
|
mz: 238.02891
|
|
2511
|
-
},
|
|
2517
|
+
}, No = {
|
|
2512
2518
|
Z: 93,
|
|
2513
2519
|
mz: 237
|
|
2514
|
-
},
|
|
2520
|
+
}, Fo = {
|
|
2515
2521
|
Z: 94,
|
|
2516
2522
|
mz: 244
|
|
2517
|
-
},
|
|
2523
|
+
}, zo = {
|
|
2518
2524
|
Z: 95,
|
|
2519
2525
|
mz: 243
|
|
2520
|
-
},
|
|
2526
|
+
}, Eo = {
|
|
2521
2527
|
Z: 96,
|
|
2522
2528
|
mz: 247
|
|
2523
|
-
},
|
|
2529
|
+
}, Bo = {
|
|
2524
2530
|
Z: 97,
|
|
2525
2531
|
mz: 247
|
|
2526
|
-
},
|
|
2532
|
+
}, To = {
|
|
2527
2533
|
Z: 98,
|
|
2528
2534
|
mz: 251
|
|
2529
|
-
},
|
|
2535
|
+
}, Do = {
|
|
2530
2536
|
Z: 99,
|
|
2531
2537
|
mz: 252
|
|
2532
|
-
},
|
|
2538
|
+
}, Oo = {
|
|
2533
2539
|
Z: 100,
|
|
2534
2540
|
mz: 257
|
|
2535
|
-
},
|
|
2541
|
+
}, Mo = {
|
|
2536
2542
|
Z: 101,
|
|
2537
2543
|
mz: 258
|
|
2538
|
-
},
|
|
2544
|
+
}, Lo = {
|
|
2539
2545
|
Z: 102,
|
|
2540
2546
|
mz: 259
|
|
2541
|
-
},
|
|
2547
|
+
}, Zo = {
|
|
2542
2548
|
Z: 103,
|
|
2543
2549
|
mz: 262
|
|
2544
|
-
},
|
|
2550
|
+
}, Ho = {
|
|
2545
2551
|
Z: 104,
|
|
2546
2552
|
mz: 267
|
|
2547
|
-
},
|
|
2553
|
+
}, Uo = {
|
|
2548
2554
|
Z: 105,
|
|
2549
2555
|
mz: 268
|
|
2550
|
-
},
|
|
2556
|
+
}, Jo = {
|
|
2551
2557
|
Z: 106,
|
|
2552
2558
|
mz: 269
|
|
2553
|
-
},
|
|
2559
|
+
}, Vo = {
|
|
2554
2560
|
Z: 107,
|
|
2555
2561
|
mz: 270
|
|
2556
|
-
},
|
|
2562
|
+
}, Yo = {
|
|
2557
2563
|
Z: 108,
|
|
2558
2564
|
mz: 270
|
|
2559
|
-
},
|
|
2565
|
+
}, Go = {
|
|
2560
2566
|
Z: 109,
|
|
2561
2567
|
mz: 278
|
|
2562
|
-
},
|
|
2568
|
+
}, Ko = {
|
|
2563
2569
|
Z: 110,
|
|
2564
2570
|
mz: 281
|
|
2565
|
-
},
|
|
2571
|
+
}, Qo = {
|
|
2566
2572
|
Z: 111,
|
|
2567
2573
|
mz: 282
|
|
2568
|
-
},
|
|
2574
|
+
}, Wo = {
|
|
2569
2575
|
Z: 112,
|
|
2570
2576
|
mz: 285
|
|
2571
|
-
},
|
|
2577
|
+
}, Xo = {
|
|
2572
2578
|
Z: 113,
|
|
2573
2579
|
mz: 286
|
|
2574
|
-
},
|
|
2580
|
+
}, qo = {
|
|
2575
2581
|
Z: 114,
|
|
2576
2582
|
mz: 289
|
|
2577
|
-
},
|
|
2583
|
+
}, $o = {
|
|
2578
2584
|
Z: 115,
|
|
2579
2585
|
mz: 290
|
|
2580
|
-
},
|
|
2586
|
+
}, ti = {
|
|
2581
2587
|
Z: 116,
|
|
2582
2588
|
mz: 293
|
|
2583
|
-
},
|
|
2589
|
+
}, ni = {
|
|
2584
2590
|
Z: 117,
|
|
2585
2591
|
mz: 294
|
|
2586
|
-
},
|
|
2592
|
+
}, ei = {
|
|
2587
2593
|
Z: 118,
|
|
2588
2594
|
mz: 294
|
|
2589
|
-
},
|
|
2590
|
-
H:
|
|
2591
|
-
He:
|
|
2592
|
-
Li:
|
|
2593
|
-
Be:
|
|
2594
|
-
B:
|
|
2595
|
-
C:
|
|
2596
|
-
N:
|
|
2597
|
-
O:
|
|
2598
|
-
F:
|
|
2599
|
-
Ne:
|
|
2600
|
-
Na:
|
|
2601
|
-
Mg:
|
|
2602
|
-
Al:
|
|
2603
|
-
Si:
|
|
2604
|
-
P:
|
|
2605
|
-
S:
|
|
2606
|
-
Cl:
|
|
2607
|
-
Ar:
|
|
2608
|
-
K:
|
|
2609
|
-
Ca:
|
|
2610
|
-
Sc:
|
|
2611
|
-
Ti:
|
|
2612
|
-
V:
|
|
2613
|
-
Cr:
|
|
2614
|
-
Mn:
|
|
2615
|
-
Fe:
|
|
2616
|
-
Co:
|
|
2617
|
-
Ni:
|
|
2618
|
-
Cu:
|
|
2619
|
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
2685
|
-
Cm:
|
|
2686
|
-
Bk:
|
|
2687
|
-
Cf:
|
|
2688
|
-
Es:
|
|
2689
|
-
Fm:
|
|
2690
|
-
Md:
|
|
2691
|
-
No:
|
|
2692
|
-
Lr:
|
|
2693
|
-
Rf:
|
|
2694
|
-
Db:
|
|
2695
|
-
Sg:
|
|
2696
|
-
Bh:
|
|
2697
|
-
Hs:
|
|
2698
|
-
Mt:
|
|
2699
|
-
Ds:
|
|
2700
|
-
Rg:
|
|
2701
|
-
Cn:
|
|
2702
|
-
Nh:
|
|
2703
|
-
Fl:
|
|
2704
|
-
Mc:
|
|
2705
|
-
Lv:
|
|
2706
|
-
Ts:
|
|
2707
|
-
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
|
|
2708
2714
|
};
|
|
2709
|
-
function
|
|
2715
|
+
function oi(t) {
|
|
2710
2716
|
var r = t.split(/(?=[A-Z])/), o = 0;
|
|
2711
2717
|
return r.forEach((s) => {
|
|
2712
2718
|
let i = s.match(/\d+/), _ = i == null ? 1 : parseInt(i[0]);
|
|
2713
2719
|
o += _;
|
|
2714
2720
|
}), o;
|
|
2715
2721
|
}
|
|
2716
|
-
function
|
|
2722
|
+
function ii(t) {
|
|
2717
2723
|
return t.split(/(?=[A-Z])/).length;
|
|
2718
2724
|
}
|
|
2719
|
-
function
|
|
2725
|
+
function si(t, r) {
|
|
2720
2726
|
var o = t.split(/(?=[A-Z])/);
|
|
2721
2727
|
let s = 0;
|
|
2722
2728
|
return o.forEach((i) => {
|
|
2723
2729
|
var l;
|
|
2724
|
-
const _ = i.match(/([a-zA-Z]+)(\d*)/), m = _[1], a = parseInt(_[2] || "1"), g = ((l =
|
|
2730
|
+
const _ = i.match(/([a-zA-Z]+)(\d*)/), m = _[1], a = parseInt(_[2] || "1"), g = ((l = ri[m]) == null ? void 0 : l.mz) || 0;
|
|
2725
2731
|
s += g * a;
|
|
2726
2732
|
}), Math.round(s * 1e4 / (r.value * 6.0223));
|
|
2727
2733
|
}
|
|
2728
|
-
const
|
|
2734
|
+
const Fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2729
2735
|
__proto__: null,
|
|
2730
|
-
calculateDensity:
|
|
2731
|
-
countNumberOfAtoms:
|
|
2732
|
-
countNumberOfElements:
|
|
2733
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2736
|
+
calculateDensity: si,
|
|
2737
|
+
countNumberOfAtoms: oi,
|
|
2738
|
+
countNumberOfElements: ii
|
|
2739
|
+
}, Symbol.toStringTag, { value: "Module" })), Ot = {
|
|
2734
2740
|
1: {
|
|
2735
2741
|
pg_int: "1",
|
|
2736
2742
|
sg_int: "P1",
|
|
@@ -3881,14 +3887,14 @@ const Di = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3881
3887
|
sg_int: "Ia-3d",
|
|
3882
3888
|
sg_int_short: "Ia-3d"
|
|
3883
3889
|
}
|
|
3884
|
-
},
|
|
3890
|
+
}, Zt = {
|
|
3885
3891
|
a: "triclinic",
|
|
3886
3892
|
m: "monoclinic",
|
|
3887
3893
|
o: "orthorhombic",
|
|
3888
3894
|
t: "tetragonal",
|
|
3889
3895
|
h: "hexagonal",
|
|
3890
3896
|
c: "cubic"
|
|
3891
|
-
},
|
|
3897
|
+
}, ai = {
|
|
3892
3898
|
aP: "triclinic",
|
|
3893
3899
|
mP: "simple monoclinic",
|
|
3894
3900
|
mS: "base-centered monoclinic",
|
|
@@ -3909,34 +3915,34 @@ function dt(t) {
|
|
|
3909
3915
|
throw new Error(`Invalid space group number ${t}`);
|
|
3910
3916
|
return t < 3 ? "a" : t < 16 ? "m" : t < 75 ? "o" : t < 143 ? "t" : t < 195 ? "h" : "c";
|
|
3911
3917
|
}
|
|
3912
|
-
function
|
|
3913
|
-
return t > 142 && t < 168 ? "trigonal" :
|
|
3918
|
+
function ci(t) {
|
|
3919
|
+
return t > 142 && t < 168 ? "trigonal" : Zt[dt(t)];
|
|
3914
3920
|
}
|
|
3915
|
-
function
|
|
3916
|
-
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)];
|
|
3917
3923
|
}
|
|
3918
|
-
function
|
|
3919
|
-
let r =
|
|
3924
|
+
function _i(t) {
|
|
3925
|
+
let r = Ot[t.toString()].sg_int_short.charAt(0), o = r;
|
|
3920
3926
|
["A", "C"].includes(r) && (o = "S");
|
|
3921
3927
|
let s = dt(t) + o;
|
|
3922
|
-
return [s,
|
|
3928
|
+
return [s, ai[s]];
|
|
3923
3929
|
}
|
|
3924
|
-
function
|
|
3930
|
+
function zi(t) {
|
|
3925
3931
|
if (t < 1 || t > 230)
|
|
3926
3932
|
throw new Error(`Invalid space group number ${t}`);
|
|
3927
|
-
let r =
|
|
3933
|
+
let r = _i(t);
|
|
3928
3934
|
return {
|
|
3929
|
-
space_group_symbol:
|
|
3930
|
-
point_group_symbol:
|
|
3935
|
+
space_group_symbol: Ot[t.toString()].sg_int_short,
|
|
3936
|
+
point_group_symbol: Ot[t.toString()].pg_int,
|
|
3931
3937
|
crystal_family_pearson: dt(t),
|
|
3932
|
-
crystal_family:
|
|
3933
|
-
crystal_system:
|
|
3934
|
-
lattice_system:
|
|
3938
|
+
crystal_family: Zt[dt(t)],
|
|
3939
|
+
crystal_system: ci(t),
|
|
3940
|
+
lattice_system: li(t),
|
|
3935
3941
|
bravais_lattice_pearson: r[0],
|
|
3936
3942
|
bravais_lattice: r[1]
|
|
3937
3943
|
};
|
|
3938
3944
|
}
|
|
3939
|
-
function
|
|
3945
|
+
function Ei(t) {
|
|
3940
3946
|
return t.includes("P") ? [
|
|
3941
3947
|
[1, 0, 0],
|
|
3942
3948
|
[0, 1, 0],
|
|
@@ -3972,38 +3978,38 @@ function Mi(t) {
|
|
|
3972
3978
|
]);
|
|
3973
3979
|
}
|
|
3974
3980
|
export {
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
3981
|
+
re as DoiBadge,
|
|
3982
|
+
Pi as ExploreButton,
|
|
3983
|
+
xi as HashModal,
|
|
3984
|
+
pi as HelpButton,
|
|
3985
|
+
Dt as KV_STORE_URL,
|
|
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,
|
|
4010
|
+
fn as shareLinkFor,
|
|
4011
|
+
dn as shortHashForUrl,
|
|
4006
4012
|
Pn as syncAddressBar,
|
|
4007
|
-
|
|
4008
|
-
|
|
4013
|
+
Ai as toStructureShare,
|
|
4014
|
+
Re as uploadShare
|
|
4009
4015
|
};
|