mc-react-library 0.7.0 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/examples/Si.cif +26 -0
- package/dist/main.css +1 -1
- package/dist/main.js +1501 -2043
- package/package.json +11 -6
package/dist/main.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "./main.css";
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import _n, { useState as E, useRef as Zt, useEffect as nt, useMemo as Yn } from "react";
|
|
3
|
+
import { fromOptimade as Gn, fromStructureData as Kn, fromJSON as Tt, toJSON as mn, parseStructure as on } from "matsci-parse";
|
|
4
|
+
var Dt = { exports: {} }, lt = {};
|
|
4
5
|
/**
|
|
5
6
|
* @license React
|
|
6
7
|
* react-jsx-runtime.production.min.js
|
|
@@ -10,21 +11,21 @@ var At = { exports: {} }, $ = {};
|
|
|
10
11
|
* This source code is licensed under the MIT license found in the
|
|
11
12
|
* LICENSE file in the root directory of this source tree.
|
|
12
13
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
17
|
-
var t =
|
|
18
|
-
function
|
|
19
|
-
var
|
|
20
|
-
l !== void 0 && (
|
|
21
|
-
for (
|
|
22
|
-
if (a && a.defaultProps) for (
|
|
23
|
-
return { $$typeof:
|
|
14
|
+
var sn;
|
|
15
|
+
function Qn() {
|
|
16
|
+
if (sn) return lt;
|
|
17
|
+
sn = 1;
|
|
18
|
+
var t = _n, r = Symbol.for("react.element"), i = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
|
+
function m(a, g, l) {
|
|
20
|
+
var u, p = {}, f = null, b = null;
|
|
21
|
+
l !== void 0 && (f = "" + l), g.key !== void 0 && (f = "" + g.key), g.ref !== void 0 && (b = g.ref);
|
|
22
|
+
for (u in g) s.call(g, u) && !_.hasOwnProperty(u) && (p[u] = g[u]);
|
|
23
|
+
if (a && a.defaultProps) for (u in g = a.defaultProps, g) p[u] === void 0 && (p[u] = g[u]);
|
|
24
|
+
return { $$typeof: r, type: a, key: f, ref: b, props: p, _owner: o.current };
|
|
24
25
|
}
|
|
25
|
-
return
|
|
26
|
+
return lt.Fragment = i, lt.jsx = m, lt.jsxs = m, lt;
|
|
26
27
|
}
|
|
27
|
-
var
|
|
28
|
+
var _t = {};
|
|
28
29
|
/**
|
|
29
30
|
* @license React
|
|
30
31
|
* react-jsx-runtime.development.js
|
|
@@ -34,91 +35,91 @@ var tt = {};
|
|
|
34
35
|
* This source code is licensed under the MIT license found in the
|
|
35
36
|
* LICENSE file in the root directory of this source tree.
|
|
36
37
|
*/
|
|
37
|
-
var
|
|
38
|
-
function
|
|
39
|
-
return
|
|
40
|
-
var t =
|
|
38
|
+
var an;
|
|
39
|
+
function Wn() {
|
|
40
|
+
return an || (an = 1, process.env.NODE_ENV !== "production" && function() {
|
|
41
|
+
var t = _n, r = Symbol.for("react.element"), i = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), o = 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"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), y = Symbol.iterator, R = "@@iterator";
|
|
41
42
|
function A(n) {
|
|
42
43
|
if (n === null || typeof n != "object")
|
|
43
44
|
return null;
|
|
44
|
-
var c =
|
|
45
|
+
var c = y && n[y] || n[R];
|
|
45
46
|
return typeof c == "function" ? c : null;
|
|
46
47
|
}
|
|
47
|
-
var
|
|
48
|
-
function
|
|
48
|
+
var j = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
49
|
+
function I(n) {
|
|
49
50
|
{
|
|
50
|
-
for (var c = arguments.length,
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
for (var c = arguments.length, d = new Array(c > 1 ? c - 1 : 0), P = 1; P < c; P++)
|
|
52
|
+
d[P - 1] = arguments[P];
|
|
53
|
+
O("error", n, d);
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
|
-
function
|
|
56
|
+
function O(n, c, d) {
|
|
56
57
|
{
|
|
57
|
-
var
|
|
58
|
-
|
|
59
|
-
var
|
|
60
|
-
return String(
|
|
58
|
+
var P = j.ReactDebugCurrentFrame, k = P.getStackAddendum();
|
|
59
|
+
k !== "" && (c += "%s", d = d.concat([k]));
|
|
60
|
+
var C = d.map(function(w) {
|
|
61
|
+
return String(w);
|
|
61
62
|
});
|
|
62
|
-
|
|
63
|
+
C.unshift("Warning: " + c), Function.prototype.apply.call(console[n], console, C);
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
function
|
|
68
|
-
return !!(typeof n == "string" || typeof n == "function" || n ===
|
|
66
|
+
var z = !1, dt = !1, ot = !1, pt = !1, ht = !1, Y;
|
|
67
|
+
Y = Symbol.for("react.module.reference");
|
|
68
|
+
function kt(n) {
|
|
69
|
+
return !!(typeof n == "string" || typeof n == "function" || n === s || n === _ || ht || n === o || n === l || n === u || pt || n === b || z || dt || ot || typeof n == "object" && n !== null && (n.$$typeof === f || n.$$typeof === p || n.$$typeof === m || n.$$typeof === a || n.$$typeof === g || // This needs to include all possible module reference object
|
|
69
70
|
// types supported by any Flight configuration anywhere since
|
|
70
71
|
// we don't know which Flight build this will end up being used
|
|
71
72
|
// with.
|
|
72
|
-
n.$$typeof ===
|
|
73
|
+
n.$$typeof === Y || n.getModuleId !== void 0));
|
|
73
74
|
}
|
|
74
|
-
function
|
|
75
|
-
var
|
|
76
|
-
if (
|
|
77
|
-
return
|
|
78
|
-
var
|
|
79
|
-
return
|
|
75
|
+
function G(n, c, d) {
|
|
76
|
+
var P = n.displayName;
|
|
77
|
+
if (P)
|
|
78
|
+
return P;
|
|
79
|
+
var k = c.displayName || c.name || "";
|
|
80
|
+
return k !== "" ? d + "(" + k + ")" : d;
|
|
80
81
|
}
|
|
81
|
-
function
|
|
82
|
+
function ft(n) {
|
|
82
83
|
return n.displayName || "Context";
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
+
function U(n) {
|
|
85
86
|
if (n == null)
|
|
86
87
|
return null;
|
|
87
|
-
if (typeof n.tag == "number" &&
|
|
88
|
+
if (typeof n.tag == "number" && I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
|
88
89
|
return n.displayName || n.name || null;
|
|
89
90
|
if (typeof n == "string")
|
|
90
91
|
return n;
|
|
91
92
|
switch (n) {
|
|
92
|
-
case
|
|
93
|
+
case s:
|
|
93
94
|
return "Fragment";
|
|
94
|
-
case
|
|
95
|
+
case i:
|
|
95
96
|
return "Portal";
|
|
96
|
-
case
|
|
97
|
+
case _:
|
|
97
98
|
return "Profiler";
|
|
98
|
-
case
|
|
99
|
+
case o:
|
|
99
100
|
return "StrictMode";
|
|
100
101
|
case l:
|
|
101
102
|
return "Suspense";
|
|
102
|
-
case
|
|
103
|
+
case u:
|
|
103
104
|
return "SuspenseList";
|
|
104
105
|
}
|
|
105
106
|
if (typeof n == "object")
|
|
106
107
|
switch (n.$$typeof) {
|
|
107
108
|
case a:
|
|
108
109
|
var c = n;
|
|
109
|
-
return
|
|
110
|
-
case
|
|
111
|
-
var
|
|
112
|
-
return
|
|
113
|
-
case
|
|
114
|
-
return
|
|
115
|
-
case
|
|
116
|
-
var
|
|
117
|
-
return
|
|
118
|
-
case
|
|
119
|
-
var
|
|
110
|
+
return ft(c) + ".Consumer";
|
|
111
|
+
case m:
|
|
112
|
+
var d = n;
|
|
113
|
+
return ft(d._context) + ".Provider";
|
|
114
|
+
case g:
|
|
115
|
+
return G(n, n.render, "ForwardRef");
|
|
116
|
+
case p:
|
|
117
|
+
var P = n.displayName || null;
|
|
118
|
+
return P !== null ? P : U(n.type) || "Memo";
|
|
119
|
+
case f: {
|
|
120
|
+
var k = n, C = k._payload, w = k._init;
|
|
120
121
|
try {
|
|
121
|
-
return
|
|
122
|
+
return U(w(C));
|
|
122
123
|
} catch {
|
|
123
124
|
return null;
|
|
124
125
|
}
|
|
@@ -126,18 +127,18 @@ function Vn() {
|
|
|
126
127
|
}
|
|
127
128
|
return null;
|
|
128
129
|
}
|
|
129
|
-
var
|
|
130
|
-
function
|
|
130
|
+
var J = Object.assign, Q = 0, st, at, h, v, S, B, K;
|
|
131
|
+
function Ht() {
|
|
131
132
|
}
|
|
132
|
-
|
|
133
|
-
function
|
|
133
|
+
Ht.__reactDisabledLog = !0;
|
|
134
|
+
function vn() {
|
|
134
135
|
{
|
|
135
|
-
if (
|
|
136
|
-
|
|
136
|
+
if (Q === 0) {
|
|
137
|
+
st = console.log, at = console.info, h = console.warn, v = console.error, S = console.group, B = console.groupCollapsed, K = console.groupEnd;
|
|
137
138
|
var n = {
|
|
138
139
|
configurable: !0,
|
|
139
140
|
enumerable: !0,
|
|
140
|
-
value:
|
|
141
|
+
value: Ht,
|
|
141
142
|
writable: !0
|
|
142
143
|
};
|
|
143
144
|
Object.defineProperties(console, {
|
|
@@ -150,332 +151,332 @@ function Vn() {
|
|
|
150
151
|
groupEnd: n
|
|
151
152
|
});
|
|
152
153
|
}
|
|
153
|
-
|
|
154
|
+
Q++;
|
|
154
155
|
}
|
|
155
156
|
}
|
|
156
|
-
function
|
|
157
|
+
function yn() {
|
|
157
158
|
{
|
|
158
|
-
if (
|
|
159
|
+
if (Q--, Q === 0) {
|
|
159
160
|
var n = {
|
|
160
161
|
configurable: !0,
|
|
161
162
|
enumerable: !0,
|
|
162
163
|
writable: !0
|
|
163
164
|
};
|
|
164
165
|
Object.defineProperties(console, {
|
|
165
|
-
log:
|
|
166
|
-
value:
|
|
166
|
+
log: J({}, n, {
|
|
167
|
+
value: st
|
|
167
168
|
}),
|
|
168
|
-
info:
|
|
169
|
-
value:
|
|
169
|
+
info: J({}, n, {
|
|
170
|
+
value: at
|
|
170
171
|
}),
|
|
171
|
-
warn:
|
|
172
|
-
value:
|
|
172
|
+
warn: J({}, n, {
|
|
173
|
+
value: h
|
|
173
174
|
}),
|
|
174
|
-
error:
|
|
175
|
-
value:
|
|
175
|
+
error: J({}, n, {
|
|
176
|
+
value: v
|
|
176
177
|
}),
|
|
177
|
-
group:
|
|
178
|
-
value:
|
|
178
|
+
group: J({}, n, {
|
|
179
|
+
value: S
|
|
179
180
|
}),
|
|
180
|
-
groupCollapsed:
|
|
181
|
-
value:
|
|
181
|
+
groupCollapsed: J({}, n, {
|
|
182
|
+
value: B
|
|
182
183
|
}),
|
|
183
|
-
groupEnd:
|
|
184
|
-
value:
|
|
184
|
+
groupEnd: J({}, n, {
|
|
185
|
+
value: K
|
|
185
186
|
})
|
|
186
187
|
});
|
|
187
188
|
}
|
|
188
|
-
|
|
189
|
+
Q < 0 && I("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
189
190
|
}
|
|
190
191
|
}
|
|
191
|
-
var
|
|
192
|
-
function
|
|
192
|
+
var jt = j.ReactCurrentDispatcher, Ct;
|
|
193
|
+
function Pt(n, c, d) {
|
|
193
194
|
{
|
|
194
|
-
if (
|
|
195
|
+
if (Ct === void 0)
|
|
195
196
|
try {
|
|
196
197
|
throw Error();
|
|
197
|
-
} catch (
|
|
198
|
-
var
|
|
199
|
-
|
|
198
|
+
} catch (k) {
|
|
199
|
+
var P = k.stack.trim().match(/\n( *(at )?)/);
|
|
200
|
+
Ct = P && P[1] || "";
|
|
200
201
|
}
|
|
201
202
|
return `
|
|
202
|
-
` +
|
|
203
|
+
` + Ct + n;
|
|
203
204
|
}
|
|
204
205
|
}
|
|
205
|
-
var
|
|
206
|
+
var Rt = !1, vt;
|
|
206
207
|
{
|
|
207
|
-
var
|
|
208
|
-
|
|
208
|
+
var bn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
209
|
+
vt = new bn();
|
|
209
210
|
}
|
|
210
|
-
function
|
|
211
|
-
if (!n ||
|
|
211
|
+
function Ut(n, c) {
|
|
212
|
+
if (!n || Rt)
|
|
212
213
|
return "";
|
|
213
214
|
{
|
|
214
|
-
var
|
|
215
|
-
if (
|
|
216
|
-
return
|
|
215
|
+
var d = vt.get(n);
|
|
216
|
+
if (d !== void 0)
|
|
217
|
+
return d;
|
|
217
218
|
}
|
|
218
|
-
var
|
|
219
|
-
|
|
220
|
-
var
|
|
219
|
+
var P;
|
|
220
|
+
Rt = !0;
|
|
221
|
+
var k = Error.prepareStackTrace;
|
|
221
222
|
Error.prepareStackTrace = void 0;
|
|
222
|
-
var
|
|
223
|
-
|
|
223
|
+
var C;
|
|
224
|
+
C = jt.current, jt.current = null, vn();
|
|
224
225
|
try {
|
|
225
226
|
if (c) {
|
|
226
|
-
var
|
|
227
|
+
var w = function() {
|
|
227
228
|
throw Error();
|
|
228
229
|
};
|
|
229
|
-
if (Object.defineProperty(
|
|
230
|
+
if (Object.defineProperty(w.prototype, "props", {
|
|
230
231
|
set: function() {
|
|
231
232
|
throw Error();
|
|
232
233
|
}
|
|
233
234
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
234
235
|
try {
|
|
235
|
-
Reflect.construct(
|
|
236
|
-
} catch (
|
|
237
|
-
|
|
236
|
+
Reflect.construct(w, []);
|
|
237
|
+
} catch (D) {
|
|
238
|
+
P = D;
|
|
238
239
|
}
|
|
239
|
-
Reflect.construct(n, [],
|
|
240
|
+
Reflect.construct(n, [], w);
|
|
240
241
|
} else {
|
|
241
242
|
try {
|
|
242
|
-
|
|
243
|
-
} catch (
|
|
244
|
-
|
|
243
|
+
w.call();
|
|
244
|
+
} catch (D) {
|
|
245
|
+
P = D;
|
|
245
246
|
}
|
|
246
|
-
n.call(
|
|
247
|
+
n.call(w.prototype);
|
|
247
248
|
}
|
|
248
249
|
} else {
|
|
249
250
|
try {
|
|
250
251
|
throw Error();
|
|
251
|
-
} catch (
|
|
252
|
-
|
|
252
|
+
} catch (D) {
|
|
253
|
+
P = D;
|
|
253
254
|
}
|
|
254
255
|
n();
|
|
255
256
|
}
|
|
256
|
-
} catch (
|
|
257
|
-
if (
|
|
258
|
-
for (var
|
|
259
|
-
`),
|
|
260
|
-
`),
|
|
261
|
-
|
|
262
|
-
for (;
|
|
263
|
-
if (
|
|
264
|
-
if (
|
|
257
|
+
} catch (D) {
|
|
258
|
+
if (D && P && typeof D.stack == "string") {
|
|
259
|
+
for (var x = D.stack.split(`
|
|
260
|
+
`), T = P.stack.split(`
|
|
261
|
+
`), N = x.length - 1, F = T.length - 1; N >= 1 && F >= 0 && x[N] !== T[F]; )
|
|
262
|
+
F--;
|
|
263
|
+
for (; N >= 1 && F >= 0; N--, F--)
|
|
264
|
+
if (x[N] !== T[F]) {
|
|
265
|
+
if (N !== 1 || F !== 1)
|
|
265
266
|
do
|
|
266
|
-
if (
|
|
267
|
-
var
|
|
268
|
-
` +
|
|
269
|
-
return n.displayName &&
|
|
267
|
+
if (N--, F--, F < 0 || x[N] !== T[F]) {
|
|
268
|
+
var Z = `
|
|
269
|
+
` + x[N].replace(" at new ", " at ");
|
|
270
|
+
return n.displayName && Z.includes("<anonymous>") && (Z = Z.replace("<anonymous>", n.displayName)), typeof n == "function" && vt.set(n, Z), Z;
|
|
270
271
|
}
|
|
271
|
-
while (
|
|
272
|
+
while (N >= 1 && F >= 0);
|
|
272
273
|
break;
|
|
273
274
|
}
|
|
274
275
|
}
|
|
275
276
|
} finally {
|
|
276
|
-
|
|
277
|
+
Rt = !1, jt.current = C, yn(), Error.prepareStackTrace = k;
|
|
277
278
|
}
|
|
278
|
-
var
|
|
279
|
-
return typeof n == "function" &&
|
|
279
|
+
var rt = n ? n.displayName || n.name : "", W = rt ? Pt(rt) : "";
|
|
280
|
+
return typeof n == "function" && vt.set(n, W), W;
|
|
280
281
|
}
|
|
281
|
-
function
|
|
282
|
-
return
|
|
282
|
+
function xn(n, c, d) {
|
|
283
|
+
return Ut(n, !1);
|
|
283
284
|
}
|
|
284
|
-
function
|
|
285
|
+
function wn(n) {
|
|
285
286
|
var c = n.prototype;
|
|
286
287
|
return !!(c && c.isReactComponent);
|
|
287
288
|
}
|
|
288
|
-
function
|
|
289
|
+
function yt(n, c, d) {
|
|
289
290
|
if (n == null)
|
|
290
291
|
return "";
|
|
291
292
|
if (typeof n == "function")
|
|
292
|
-
return
|
|
293
|
+
return Ut(n, wn(n));
|
|
293
294
|
if (typeof n == "string")
|
|
294
|
-
return
|
|
295
|
+
return Pt(n);
|
|
295
296
|
switch (n) {
|
|
296
297
|
case l:
|
|
297
|
-
return
|
|
298
|
-
case
|
|
299
|
-
return
|
|
298
|
+
return Pt("Suspense");
|
|
299
|
+
case u:
|
|
300
|
+
return Pt("SuspenseList");
|
|
300
301
|
}
|
|
301
302
|
if (typeof n == "object")
|
|
302
303
|
switch (n.$$typeof) {
|
|
303
|
-
case
|
|
304
|
-
return
|
|
305
|
-
case
|
|
306
|
-
return
|
|
307
|
-
case
|
|
308
|
-
var
|
|
304
|
+
case g:
|
|
305
|
+
return xn(n.render);
|
|
306
|
+
case p:
|
|
307
|
+
return yt(n.type, c, d);
|
|
308
|
+
case f: {
|
|
309
|
+
var P = n, k = P._payload, C = P._init;
|
|
309
310
|
try {
|
|
310
|
-
return
|
|
311
|
+
return yt(C(k), c, d);
|
|
311
312
|
} catch {
|
|
312
313
|
}
|
|
313
314
|
}
|
|
314
315
|
}
|
|
315
316
|
return "";
|
|
316
317
|
}
|
|
317
|
-
var
|
|
318
|
-
function
|
|
318
|
+
var ct = Object.prototype.hasOwnProperty, Jt = {}, Vt = j.ReactDebugCurrentFrame;
|
|
319
|
+
function bt(n) {
|
|
319
320
|
if (n) {
|
|
320
|
-
var c = n._owner,
|
|
321
|
-
|
|
321
|
+
var c = n._owner, d = yt(n.type, n._source, c ? c.type : null);
|
|
322
|
+
Vt.setExtraStackFrame(d);
|
|
322
323
|
} else
|
|
323
|
-
|
|
324
|
+
Vt.setExtraStackFrame(null);
|
|
324
325
|
}
|
|
325
|
-
function
|
|
326
|
+
function An(n, c, d, P, k) {
|
|
326
327
|
{
|
|
327
|
-
var
|
|
328
|
-
for (var
|
|
329
|
-
if (
|
|
330
|
-
var
|
|
328
|
+
var C = Function.call.bind(ct);
|
|
329
|
+
for (var w in n)
|
|
330
|
+
if (C(n, w)) {
|
|
331
|
+
var x = void 0;
|
|
331
332
|
try {
|
|
332
|
-
if (typeof n[
|
|
333
|
-
var
|
|
334
|
-
throw
|
|
333
|
+
if (typeof n[w] != "function") {
|
|
334
|
+
var T = Error((P || "React class") + ": " + d + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
335
|
+
throw T.name = "Invariant Violation", T;
|
|
335
336
|
}
|
|
336
|
-
|
|
337
|
-
} catch (
|
|
338
|
-
|
|
337
|
+
x = n[w](c, w, P, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
338
|
+
} catch (N) {
|
|
339
|
+
x = N;
|
|
339
340
|
}
|
|
340
|
-
|
|
341
|
+
x && !(x instanceof Error) && (bt(k), I("%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", d, w, typeof x), bt(null)), x instanceof Error && !(x.message in Jt) && (Jt[x.message] = !0, bt(k), I("Failed %s type: %s", d, x.message), bt(null));
|
|
341
342
|
}
|
|
342
343
|
}
|
|
343
344
|
}
|
|
344
|
-
var
|
|
345
|
-
function
|
|
346
|
-
return
|
|
345
|
+
var kn = Array.isArray;
|
|
346
|
+
function It(n) {
|
|
347
|
+
return kn(n);
|
|
347
348
|
}
|
|
348
|
-
function
|
|
349
|
+
function jn(n) {
|
|
349
350
|
{
|
|
350
|
-
var c = typeof Symbol == "function" && Symbol.toStringTag,
|
|
351
|
-
return
|
|
351
|
+
var c = typeof Symbol == "function" && Symbol.toStringTag, d = c && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
352
|
+
return d;
|
|
352
353
|
}
|
|
353
354
|
}
|
|
354
|
-
function
|
|
355
|
+
function Cn(n) {
|
|
355
356
|
try {
|
|
356
|
-
return
|
|
357
|
+
return Yt(n), !1;
|
|
357
358
|
} catch {
|
|
358
359
|
return !0;
|
|
359
360
|
}
|
|
360
361
|
}
|
|
361
|
-
function
|
|
362
|
+
function Yt(n) {
|
|
362
363
|
return "" + n;
|
|
363
364
|
}
|
|
364
|
-
function
|
|
365
|
-
if (
|
|
366
|
-
return
|
|
365
|
+
function Gt(n) {
|
|
366
|
+
if (Cn(n))
|
|
367
|
+
return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", jn(n)), Yt(n);
|
|
367
368
|
}
|
|
368
|
-
var
|
|
369
|
+
var Kt = j.ReactCurrentOwner, Rn = {
|
|
369
370
|
key: !0,
|
|
370
371
|
ref: !0,
|
|
371
372
|
__self: !0,
|
|
372
373
|
__source: !0
|
|
373
|
-
},
|
|
374
|
-
function
|
|
375
|
-
if (
|
|
374
|
+
}, Qt, Wt;
|
|
375
|
+
function In(n) {
|
|
376
|
+
if (ct.call(n, "ref")) {
|
|
376
377
|
var c = Object.getOwnPropertyDescriptor(n, "ref").get;
|
|
377
378
|
if (c && c.isReactWarning)
|
|
378
379
|
return !1;
|
|
379
380
|
}
|
|
380
381
|
return n.ref !== void 0;
|
|
381
382
|
}
|
|
382
|
-
function
|
|
383
|
-
if (
|
|
383
|
+
function Sn(n) {
|
|
384
|
+
if (ct.call(n, "key")) {
|
|
384
385
|
var c = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
385
386
|
if (c && c.isReactWarning)
|
|
386
387
|
return !1;
|
|
387
388
|
}
|
|
388
389
|
return n.key !== void 0;
|
|
389
390
|
}
|
|
390
|
-
function
|
|
391
|
-
typeof n.ref == "string" &&
|
|
391
|
+
function Nn(n, c) {
|
|
392
|
+
typeof n.ref == "string" && Kt.current;
|
|
392
393
|
}
|
|
393
|
-
function
|
|
394
|
+
function Fn(n, c) {
|
|
394
395
|
{
|
|
395
|
-
var
|
|
396
|
-
|
|
396
|
+
var d = function() {
|
|
397
|
+
Qt || (Qt = !0, I("%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));
|
|
397
398
|
};
|
|
398
|
-
|
|
399
|
-
get:
|
|
399
|
+
d.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
400
|
+
get: d,
|
|
400
401
|
configurable: !0
|
|
401
402
|
});
|
|
402
403
|
}
|
|
403
404
|
}
|
|
404
|
-
function
|
|
405
|
+
function En(n, c) {
|
|
405
406
|
{
|
|
406
|
-
var
|
|
407
|
-
|
|
407
|
+
var d = function() {
|
|
408
|
+
Wt || (Wt = !0, I("%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));
|
|
408
409
|
};
|
|
409
|
-
|
|
410
|
-
get:
|
|
410
|
+
d.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
411
|
+
get: d,
|
|
411
412
|
configurable: !0
|
|
412
413
|
});
|
|
413
414
|
}
|
|
414
415
|
}
|
|
415
|
-
var
|
|
416
|
-
var
|
|
416
|
+
var zn = function(n, c, d, P, k, C, w) {
|
|
417
|
+
var x = {
|
|
417
418
|
// This tag allows us to uniquely identify this as a React Element
|
|
418
|
-
$$typeof:
|
|
419
|
+
$$typeof: r,
|
|
419
420
|
// Built-in properties that belong on the element
|
|
420
421
|
type: n,
|
|
421
422
|
key: c,
|
|
422
|
-
ref:
|
|
423
|
-
props:
|
|
423
|
+
ref: d,
|
|
424
|
+
props: w,
|
|
424
425
|
// Record the component responsible for creating this element.
|
|
425
|
-
_owner:
|
|
426
|
+
_owner: C
|
|
426
427
|
};
|
|
427
|
-
return
|
|
428
|
+
return x._store = {}, Object.defineProperty(x._store, "validated", {
|
|
428
429
|
configurable: !1,
|
|
429
430
|
enumerable: !1,
|
|
430
431
|
writable: !0,
|
|
431
432
|
value: !1
|
|
432
|
-
}), Object.defineProperty(
|
|
433
|
+
}), Object.defineProperty(x, "_self", {
|
|
433
434
|
configurable: !1,
|
|
434
435
|
enumerable: !1,
|
|
435
436
|
writable: !1,
|
|
436
|
-
value:
|
|
437
|
-
}), Object.defineProperty(
|
|
437
|
+
value: P
|
|
438
|
+
}), Object.defineProperty(x, "_source", {
|
|
438
439
|
configurable: !1,
|
|
439
440
|
enumerable: !1,
|
|
440
441
|
writable: !1,
|
|
441
|
-
value:
|
|
442
|
-
}), Object.freeze && (Object.freeze(
|
|
442
|
+
value: k
|
|
443
|
+
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
443
444
|
};
|
|
444
|
-
function
|
|
445
|
+
function Bn(n, c, d, P, k) {
|
|
445
446
|
{
|
|
446
|
-
var
|
|
447
|
-
|
|
448
|
-
for (
|
|
449
|
-
|
|
447
|
+
var C, w = {}, x = null, T = null;
|
|
448
|
+
d !== void 0 && (Gt(d), x = "" + d), Sn(c) && (Gt(c.key), x = "" + c.key), In(c) && (T = c.ref, Nn(c, k));
|
|
449
|
+
for (C in c)
|
|
450
|
+
ct.call(c, C) && !Rn.hasOwnProperty(C) && (w[C] = c[C]);
|
|
450
451
|
if (n && n.defaultProps) {
|
|
451
|
-
var
|
|
452
|
-
for (
|
|
453
|
-
|
|
452
|
+
var N = n.defaultProps;
|
|
453
|
+
for (C in N)
|
|
454
|
+
w[C] === void 0 && (w[C] = N[C]);
|
|
454
455
|
}
|
|
455
|
-
if (
|
|
456
|
-
var
|
|
457
|
-
|
|
456
|
+
if (x || T) {
|
|
457
|
+
var F = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
458
|
+
x && Fn(w, F), T && En(w, F);
|
|
458
459
|
}
|
|
459
|
-
return
|
|
460
|
+
return zn(n, x, T, k, P, Kt.current, w);
|
|
460
461
|
}
|
|
461
462
|
}
|
|
462
|
-
var
|
|
463
|
-
function
|
|
463
|
+
var St = j.ReactCurrentOwner, Xt = j.ReactDebugCurrentFrame;
|
|
464
|
+
function et(n) {
|
|
464
465
|
if (n) {
|
|
465
|
-
var c = n._owner,
|
|
466
|
-
|
|
466
|
+
var c = n._owner, d = yt(n.type, n._source, c ? c.type : null);
|
|
467
|
+
Xt.setExtraStackFrame(d);
|
|
467
468
|
} else
|
|
468
|
-
|
|
469
|
+
Xt.setExtraStackFrame(null);
|
|
469
470
|
}
|
|
470
|
-
var
|
|
471
|
-
|
|
472
|
-
function
|
|
473
|
-
return typeof n == "object" && n !== null && n.$$typeof ===
|
|
471
|
+
var Nt;
|
|
472
|
+
Nt = !1;
|
|
473
|
+
function Ft(n) {
|
|
474
|
+
return typeof n == "object" && n !== null && n.$$typeof === r;
|
|
474
475
|
}
|
|
475
|
-
function
|
|
476
|
+
function qt() {
|
|
476
477
|
{
|
|
477
|
-
if (
|
|
478
|
-
var n =
|
|
478
|
+
if (St.current) {
|
|
479
|
+
var n = U(St.current.type);
|
|
479
480
|
if (n)
|
|
480
481
|
return `
|
|
481
482
|
|
|
@@ -484,246 +485,246 @@ Check the render method of \`` + n + "`.";
|
|
|
484
485
|
return "";
|
|
485
486
|
}
|
|
486
487
|
}
|
|
487
|
-
function
|
|
488
|
+
function Tn(n) {
|
|
488
489
|
return "";
|
|
489
490
|
}
|
|
490
|
-
var
|
|
491
|
-
function
|
|
491
|
+
var $t = {};
|
|
492
|
+
function Dn(n) {
|
|
492
493
|
{
|
|
493
|
-
var c =
|
|
494
|
+
var c = qt();
|
|
494
495
|
if (!c) {
|
|
495
|
-
var
|
|
496
|
-
|
|
496
|
+
var d = typeof n == "string" ? n : n.displayName || n.name;
|
|
497
|
+
d && (c = `
|
|
497
498
|
|
|
498
|
-
Check the top-level render call using <` +
|
|
499
|
+
Check the top-level render call using <` + d + ">.");
|
|
499
500
|
}
|
|
500
501
|
return c;
|
|
501
502
|
}
|
|
502
503
|
}
|
|
503
|
-
function
|
|
504
|
+
function tn(n, c) {
|
|
504
505
|
{
|
|
505
506
|
if (!n._store || n._store.validated || n.key != null)
|
|
506
507
|
return;
|
|
507
508
|
n._store.validated = !0;
|
|
508
|
-
var
|
|
509
|
-
if (
|
|
509
|
+
var d = Dn(c);
|
|
510
|
+
if ($t[d])
|
|
510
511
|
return;
|
|
511
|
-
|
|
512
|
-
var
|
|
513
|
-
n && n._owner && n._owner !==
|
|
512
|
+
$t[d] = !0;
|
|
513
|
+
var P = "";
|
|
514
|
+
n && n._owner && n._owner !== St.current && (P = " It was passed a child from " + U(n._owner.type) + "."), et(n), I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, P), et(null);
|
|
514
515
|
}
|
|
515
516
|
}
|
|
516
|
-
function
|
|
517
|
+
function nn(n, c) {
|
|
517
518
|
{
|
|
518
519
|
if (typeof n != "object")
|
|
519
520
|
return;
|
|
520
|
-
if (
|
|
521
|
-
for (var
|
|
522
|
-
var
|
|
523
|
-
|
|
521
|
+
if (It(n))
|
|
522
|
+
for (var d = 0; d < n.length; d++) {
|
|
523
|
+
var P = n[d];
|
|
524
|
+
Ft(P) && tn(P, c);
|
|
524
525
|
}
|
|
525
|
-
else if (
|
|
526
|
+
else if (Ft(n))
|
|
526
527
|
n._store && (n._store.validated = !0);
|
|
527
528
|
else if (n) {
|
|
528
|
-
var
|
|
529
|
-
if (typeof
|
|
530
|
-
for (var
|
|
531
|
-
|
|
529
|
+
var k = A(n);
|
|
530
|
+
if (typeof k == "function" && k !== n.entries)
|
|
531
|
+
for (var C = k.call(n), w; !(w = C.next()).done; )
|
|
532
|
+
Ft(w.value) && tn(w.value, c);
|
|
532
533
|
}
|
|
533
534
|
}
|
|
534
535
|
}
|
|
535
|
-
function
|
|
536
|
+
function On(n) {
|
|
536
537
|
{
|
|
537
538
|
var c = n.type;
|
|
538
539
|
if (c == null || typeof c == "string")
|
|
539
540
|
return;
|
|
540
|
-
var
|
|
541
|
+
var d;
|
|
541
542
|
if (typeof c == "function")
|
|
542
|
-
|
|
543
|
-
else if (typeof c == "object" && (c.$$typeof ===
|
|
543
|
+
d = c.propTypes;
|
|
544
|
+
else if (typeof c == "object" && (c.$$typeof === g || // Note: Memo only checks outer props here.
|
|
544
545
|
// Inner props are checked in the reconciler.
|
|
545
|
-
c.$$typeof ===
|
|
546
|
-
|
|
546
|
+
c.$$typeof === p))
|
|
547
|
+
d = c.propTypes;
|
|
547
548
|
else
|
|
548
549
|
return;
|
|
549
|
-
if (
|
|
550
|
-
var
|
|
551
|
-
|
|
552
|
-
} else if (c.PropTypes !== void 0 && !
|
|
553
|
-
|
|
554
|
-
var
|
|
555
|
-
|
|
550
|
+
if (d) {
|
|
551
|
+
var P = U(c);
|
|
552
|
+
An(d, n.props, "prop", P, n);
|
|
553
|
+
} else if (c.PropTypes !== void 0 && !Nt) {
|
|
554
|
+
Nt = !0;
|
|
555
|
+
var k = U(c);
|
|
556
|
+
I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "Unknown");
|
|
556
557
|
}
|
|
557
|
-
typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved &&
|
|
558
|
+
typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
558
559
|
}
|
|
559
560
|
}
|
|
560
|
-
function
|
|
561
|
+
function Zn(n) {
|
|
561
562
|
{
|
|
562
|
-
for (var c = Object.keys(n.props),
|
|
563
|
-
var
|
|
564
|
-
if (
|
|
565
|
-
|
|
563
|
+
for (var c = Object.keys(n.props), d = 0; d < c.length; d++) {
|
|
564
|
+
var P = c[d];
|
|
565
|
+
if (P !== "children" && P !== "key") {
|
|
566
|
+
et(n), I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", P), et(null);
|
|
566
567
|
break;
|
|
567
568
|
}
|
|
568
569
|
}
|
|
569
|
-
n.ref !== null && (
|
|
570
|
+
n.ref !== null && (et(n), I("Invalid attribute `ref` supplied to `React.Fragment`."), et(null));
|
|
570
571
|
}
|
|
571
572
|
}
|
|
572
|
-
var
|
|
573
|
-
function
|
|
573
|
+
var en = {};
|
|
574
|
+
function rn(n, c, d, P, k, C) {
|
|
574
575
|
{
|
|
575
|
-
var
|
|
576
|
-
if (!
|
|
577
|
-
var
|
|
578
|
-
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (
|
|
579
|
-
var
|
|
580
|
-
|
|
581
|
-
var
|
|
582
|
-
n === null ?
|
|
576
|
+
var w = kt(n);
|
|
577
|
+
if (!w) {
|
|
578
|
+
var x = "";
|
|
579
|
+
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (x += " 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 T = Tn();
|
|
581
|
+
T ? x += T : x += qt();
|
|
582
|
+
var N;
|
|
583
|
+
n === null ? N = "null" : It(n) ? N = "array" : n !== void 0 && n.$$typeof === r ? (N = "<" + (U(n.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : N = typeof n, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, x);
|
|
583
584
|
}
|
|
584
|
-
var
|
|
585
|
-
if (
|
|
586
|
-
return
|
|
587
|
-
if (
|
|
588
|
-
var
|
|
589
|
-
if (
|
|
590
|
-
if (
|
|
591
|
-
if (
|
|
592
|
-
for (var
|
|
593
|
-
|
|
594
|
-
Object.freeze && Object.freeze(
|
|
585
|
+
var F = Bn(n, c, d, k, C);
|
|
586
|
+
if (F == null)
|
|
587
|
+
return F;
|
|
588
|
+
if (w) {
|
|
589
|
+
var Z = c.children;
|
|
590
|
+
if (Z !== void 0)
|
|
591
|
+
if (P)
|
|
592
|
+
if (It(Z)) {
|
|
593
|
+
for (var rt = 0; rt < Z.length; rt++)
|
|
594
|
+
nn(Z[rt], n);
|
|
595
|
+
Object.freeze && Object.freeze(Z);
|
|
595
596
|
} else
|
|
596
|
-
|
|
597
|
+
I("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
597
598
|
else
|
|
598
|
-
|
|
599
|
+
nn(Z, n);
|
|
599
600
|
}
|
|
600
|
-
if (
|
|
601
|
-
var
|
|
602
|
-
return
|
|
603
|
-
}),
|
|
604
|
-
if (!
|
|
605
|
-
var
|
|
606
|
-
|
|
601
|
+
if (ct.call(c, "key")) {
|
|
602
|
+
var W = U(n), D = Object.keys(c).filter(function(Vn) {
|
|
603
|
+
return Vn !== "key";
|
|
604
|
+
}), Et = D.length > 0 ? "{key: someKey, " + D.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
605
|
+
if (!en[W + Et]) {
|
|
606
|
+
var Jn = D.length > 0 ? "{" + D.join(": ..., ") + ": ...}" : "{}";
|
|
607
|
+
I(`A props object containing a "key" prop is being spread into JSX:
|
|
607
608
|
let props = %s;
|
|
608
609
|
<%s {...props} />
|
|
609
610
|
React keys must be passed directly to JSX without using spread:
|
|
610
611
|
let props = %s;
|
|
611
|
-
<%s key={someKey} {...props} />`,
|
|
612
|
+
<%s key={someKey} {...props} />`, Et, W, Jn, W), en[W + Et] = !0;
|
|
612
613
|
}
|
|
613
614
|
}
|
|
614
|
-
return n ===
|
|
615
|
+
return n === s ? Zn(F) : On(F), F;
|
|
615
616
|
}
|
|
616
617
|
}
|
|
617
|
-
function
|
|
618
|
-
return
|
|
618
|
+
function Mn(n, c, d) {
|
|
619
|
+
return rn(n, c, d, !0);
|
|
619
620
|
}
|
|
620
|
-
function
|
|
621
|
-
return
|
|
621
|
+
function Ln(n, c, d) {
|
|
622
|
+
return rn(n, c, d, !1);
|
|
622
623
|
}
|
|
623
|
-
var
|
|
624
|
-
|
|
625
|
-
}()),
|
|
624
|
+
var Hn = Ln, Un = Mn;
|
|
625
|
+
_t.Fragment = s, _t.jsx = Hn, _t.jsxs = Un;
|
|
626
|
+
}()), _t;
|
|
626
627
|
}
|
|
627
|
-
process.env.NODE_ENV === "production" ?
|
|
628
|
-
var
|
|
629
|
-
const
|
|
630
|
-
button:
|
|
628
|
+
process.env.NODE_ENV === "production" ? Dt.exports = Qn() : Dt.exports = Wn();
|
|
629
|
+
var e = Dt.exports;
|
|
630
|
+
const Xn = "_button_qg5kh_1", qn = {
|
|
631
|
+
button: Xn
|
|
631
632
|
};
|
|
632
|
-
function
|
|
633
|
-
return /* @__PURE__ */
|
|
633
|
+
function so({ className: t = "", ...r }) {
|
|
634
|
+
return /* @__PURE__ */ e.jsx("button", { className: `${qn.button} ${t}`, ...r, children: "TEST" });
|
|
634
635
|
}
|
|
635
|
-
const
|
|
636
|
-
archive_doicitation:
|
|
637
|
-
doi_badge:
|
|
638
|
-
doi_left:
|
|
639
|
-
doi_right:
|
|
640
|
-
},
|
|
636
|
+
const $n = "_archive_doicitation_y1o5i_1", te = "_doi_badge_y1o5i_9", ne = "_doi_left_y1o5i_13", ee = "_doi_right_y1o5i_27", xt = {
|
|
637
|
+
archive_doicitation: $n,
|
|
638
|
+
doi_badge: te,
|
|
639
|
+
doi_left: ne,
|
|
640
|
+
doi_right: ee
|
|
641
|
+
}, ao = ({
|
|
641
642
|
doi_id: t,
|
|
642
|
-
doi:
|
|
643
|
-
label:
|
|
644
|
-
color:
|
|
645
|
-
className:
|
|
646
|
-
...
|
|
643
|
+
doi: r,
|
|
644
|
+
label: i = "DOI",
|
|
645
|
+
color: s = "#a2cbff",
|
|
646
|
+
className: o = "",
|
|
647
|
+
..._
|
|
647
648
|
}) => {
|
|
648
|
-
let
|
|
649
|
-
return t != null ?
|
|
650
|
-
/* @__PURE__ */
|
|
651
|
-
/* @__PURE__ */
|
|
649
|
+
let m = "";
|
|
650
|
+
return t != null ? m = `10.24435/materialscloud:${t}` : m = r, /* @__PURE__ */ e.jsx("div", { className: `${xt.archive_doicitation} ${o}`, ..._, children: /* @__PURE__ */ e.jsxs("span", { className: xt.doi_badge, children: [
|
|
651
|
+
/* @__PURE__ */ e.jsx("span", { className: xt.doi_left, children: i }),
|
|
652
|
+
/* @__PURE__ */ e.jsx(
|
|
652
653
|
"a",
|
|
653
654
|
{
|
|
654
|
-
href: `https://doi.org/${
|
|
655
|
-
className:
|
|
655
|
+
href: `https://doi.org/${m}`,
|
|
656
|
+
className: xt.doi_right,
|
|
656
657
|
target: "_blank",
|
|
657
|
-
style: { backgroundColor:
|
|
658
|
-
children:
|
|
658
|
+
style: { backgroundColor: s },
|
|
659
|
+
children: m
|
|
659
660
|
}
|
|
660
661
|
)
|
|
661
662
|
] }) });
|
|
662
|
-
},
|
|
663
|
-
function
|
|
664
|
-
const
|
|
665
|
-
return typeof
|
|
663
|
+
}, mt = (...t) => t.filter(Boolean).join(" ");
|
|
664
|
+
function re(t) {
|
|
665
|
+
const r = t == null ? void 0 : t.type, i = (r == null ? void 0 : r.displayName) || (r == null ? void 0 : r.name) || (typeof r == "string" ? r : "");
|
|
666
|
+
return typeof i == "string" && i.toLowerCase().includes("popover");
|
|
666
667
|
}
|
|
667
|
-
function
|
|
668
|
-
let
|
|
669
|
-
for (;
|
|
670
|
-
|
|
671
|
-
return
|
|
668
|
+
function ie(t) {
|
|
669
|
+
let r = t;
|
|
670
|
+
for (; r && typeof r == "object" && "props" in r && re(r); )
|
|
671
|
+
r = r.props.children;
|
|
672
|
+
return r;
|
|
672
673
|
}
|
|
673
|
-
function
|
|
674
|
+
function co({
|
|
674
675
|
popover: t,
|
|
675
|
-
content:
|
|
676
|
-
placement:
|
|
677
|
-
className:
|
|
678
|
-
classes:
|
|
679
|
-
children:
|
|
680
|
-
...
|
|
676
|
+
content: r,
|
|
677
|
+
placement: i = "top",
|
|
678
|
+
className: s,
|
|
679
|
+
classes: o = {},
|
|
680
|
+
children: _ = "?",
|
|
681
|
+
...m
|
|
681
682
|
}) {
|
|
682
|
-
const [a,
|
|
683
|
-
return
|
|
684
|
-
if (!a || !
|
|
685
|
-
const
|
|
686
|
-
l.current && !l.current.contains(
|
|
687
|
-
}, b = (
|
|
688
|
-
|
|
683
|
+
const [a, g] = E(!1), l = Zt(null), u = r !== void 0 ? r : t, p = u != null;
|
|
684
|
+
return nt(() => {
|
|
685
|
+
if (!a || !p) return;
|
|
686
|
+
const f = (y) => {
|
|
687
|
+
l.current && !l.current.contains(y.target) && g(!1);
|
|
688
|
+
}, b = (y) => {
|
|
689
|
+
y.key === "Escape" && g(!1);
|
|
689
690
|
};
|
|
690
|
-
return document.addEventListener("pointerdown",
|
|
691
|
-
document.removeEventListener("pointerdown",
|
|
691
|
+
return document.addEventListener("pointerdown", f), document.addEventListener("keydown", b), () => {
|
|
692
|
+
document.removeEventListener("pointerdown", f), document.removeEventListener("keydown", b);
|
|
692
693
|
};
|
|
693
|
-
}, [a,
|
|
694
|
+
}, [a, p]), p ? /* @__PURE__ */ e.jsxs(
|
|
694
695
|
"div",
|
|
695
696
|
{
|
|
696
697
|
ref: l,
|
|
697
|
-
className:
|
|
698
|
-
...
|
|
698
|
+
className: mt("help-button", s, o.root),
|
|
699
|
+
...m,
|
|
699
700
|
children: [
|
|
700
|
-
/* @__PURE__ */
|
|
701
|
+
/* @__PURE__ */ e.jsx(
|
|
701
702
|
"button",
|
|
702
703
|
{
|
|
703
704
|
type: "button",
|
|
704
|
-
className:
|
|
705
|
-
onClick: () =>
|
|
705
|
+
className: mt("help-button__trigger", o.trigger),
|
|
706
|
+
onClick: () => g((f) => !f),
|
|
706
707
|
"aria-expanded": a,
|
|
707
708
|
"aria-haspopup": "dialog",
|
|
708
|
-
children:
|
|
709
|
+
children: _
|
|
709
710
|
}
|
|
710
711
|
),
|
|
711
|
-
a && /* @__PURE__ */
|
|
712
|
+
a && /* @__PURE__ */ e.jsx(
|
|
712
713
|
"div",
|
|
713
714
|
{
|
|
714
715
|
role: "dialog",
|
|
715
|
-
"data-placement":
|
|
716
|
-
className:
|
|
717
|
-
children:
|
|
716
|
+
"data-placement": i,
|
|
717
|
+
className: mt("help-button__popover", o.popover),
|
|
718
|
+
children: ie(u)
|
|
718
719
|
}
|
|
719
720
|
)
|
|
720
721
|
]
|
|
721
722
|
}
|
|
722
|
-
) : /* @__PURE__ */
|
|
723
|
+
) : /* @__PURE__ */ e.jsx("div", { className: mt("help-button", s, o.root), ...m, children: /* @__PURE__ */ e.jsx("span", { className: mt("help-button__trigger", o.trigger), children: _ }) });
|
|
723
724
|
}
|
|
724
|
-
const
|
|
725
|
-
function
|
|
726
|
-
return /* @__PURE__ */
|
|
725
|
+
const oe = "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";
|
|
726
|
+
function lo({ className: t = "", style: r, ...i }) {
|
|
727
|
+
return /* @__PURE__ */ e.jsx(
|
|
727
728
|
"div",
|
|
728
729
|
{
|
|
729
730
|
className: t,
|
|
@@ -731,13 +732,13 @@ function si({ className: t = "", style: e, ...o }) {
|
|
|
731
732
|
background: "transparent",
|
|
732
733
|
border: "none",
|
|
733
734
|
textAlign: "center",
|
|
734
|
-
...
|
|
735
|
+
...r
|
|
735
736
|
},
|
|
736
|
-
...
|
|
737
|
-
children: /* @__PURE__ */
|
|
737
|
+
...i,
|
|
738
|
+
children: /* @__PURE__ */ e.jsx(
|
|
738
739
|
"img",
|
|
739
740
|
{
|
|
740
|
-
src:
|
|
741
|
+
src: oe,
|
|
741
742
|
alt: "Materials Cloud spinner",
|
|
742
743
|
style: {
|
|
743
744
|
width: "100%",
|
|
@@ -750,8 +751,8 @@ function si({ className: t = "", style: e, ...o }) {
|
|
|
750
751
|
}
|
|
751
752
|
);
|
|
752
753
|
}
|
|
753
|
-
function
|
|
754
|
-
return /* @__PURE__ */
|
|
754
|
+
function gn({ className: t = "h-4 w-4", ...r }) {
|
|
755
|
+
return /* @__PURE__ */ e.jsxs(
|
|
755
756
|
"svg",
|
|
756
757
|
{
|
|
757
758
|
viewBox: "0 0 24 24",
|
|
@@ -762,16 +763,16 @@ function en({ className: t = "h-4 w-4", ...e }) {
|
|
|
762
763
|
strokeLinejoin: "round",
|
|
763
764
|
className: t,
|
|
764
765
|
"aria-hidden": "true",
|
|
765
|
-
...
|
|
766
|
+
...r,
|
|
766
767
|
children: [
|
|
767
|
-
/* @__PURE__ */
|
|
768
|
-
/* @__PURE__ */
|
|
768
|
+
/* @__PURE__ */ e.jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
|
|
769
|
+
/* @__PURE__ */ e.jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
|
|
769
770
|
]
|
|
770
771
|
}
|
|
771
772
|
);
|
|
772
773
|
}
|
|
773
|
-
function
|
|
774
|
-
return /* @__PURE__ */
|
|
774
|
+
function un({ className: t = "h-4 w-4", ...r }) {
|
|
775
|
+
return /* @__PURE__ */ e.jsx(
|
|
775
776
|
"svg",
|
|
776
777
|
{
|
|
777
778
|
viewBox: "0 0 24 24",
|
|
@@ -782,13 +783,13 @@ function rn({ className: t = "h-4 w-4", ...e }) {
|
|
|
782
783
|
strokeLinejoin: "round",
|
|
783
784
|
className: t,
|
|
784
785
|
"aria-hidden": "true",
|
|
785
|
-
...
|
|
786
|
-
children: /* @__PURE__ */
|
|
786
|
+
...r,
|
|
787
|
+
children: /* @__PURE__ */ e.jsx("path", { d: "M20 6 9 17l-5-5" })
|
|
787
788
|
}
|
|
788
789
|
);
|
|
789
790
|
}
|
|
790
|
-
function
|
|
791
|
-
return /* @__PURE__ */
|
|
791
|
+
function Mt({ className: t = "h-4 w-4", ...r }) {
|
|
792
|
+
return /* @__PURE__ */ e.jsxs(
|
|
792
793
|
"svg",
|
|
793
794
|
{
|
|
794
795
|
viewBox: "0 0 24 24",
|
|
@@ -799,17 +800,17 @@ function Nt({ className: t = "h-4 w-4", ...e }) {
|
|
|
799
800
|
strokeLinejoin: "round",
|
|
800
801
|
className: t,
|
|
801
802
|
"aria-hidden": "true",
|
|
802
|
-
...
|
|
803
|
+
...r,
|
|
803
804
|
children: [
|
|
804
|
-
/* @__PURE__ */
|
|
805
|
-
/* @__PURE__ */
|
|
806
|
-
/* @__PURE__ */
|
|
805
|
+
/* @__PURE__ */ e.jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
806
|
+
/* @__PURE__ */ e.jsx("polyline", { points: "7 10 12 15 17 10" }),
|
|
807
|
+
/* @__PURE__ */ e.jsx("line", { x1: "12", y1: "15", x2: "12", y2: "3" })
|
|
807
808
|
]
|
|
808
809
|
}
|
|
809
810
|
);
|
|
810
811
|
}
|
|
811
|
-
function
|
|
812
|
-
return /* @__PURE__ */
|
|
812
|
+
function se({ className: t = "h-4 w-4", ...r }) {
|
|
813
|
+
return /* @__PURE__ */ e.jsxs(
|
|
813
814
|
"svg",
|
|
814
815
|
{
|
|
815
816
|
viewBox: "0 0 24 24",
|
|
@@ -820,85 +821,85 @@ function ne({ className: t = "h-4 w-4", ...e }) {
|
|
|
820
821
|
strokeLinejoin: "round",
|
|
821
822
|
className: t,
|
|
822
823
|
"aria-hidden": "true",
|
|
823
|
-
...
|
|
824
|
+
...r,
|
|
824
825
|
children: [
|
|
825
|
-
/* @__PURE__ */
|
|
826
|
-
/* @__PURE__ */
|
|
826
|
+
/* @__PURE__ */ e.jsx("path", { d: "M12 16V4m0 0L7 9m5-5 5 5" }),
|
|
827
|
+
/* @__PURE__ */ e.jsx("path", { d: "M5 14v4a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-4" })
|
|
827
828
|
]
|
|
828
829
|
}
|
|
829
830
|
);
|
|
830
831
|
}
|
|
831
|
-
const
|
|
832
|
+
const X = (...t) => t.filter(Boolean).join(" "), ae = [
|
|
832
833
|
{ format: "cif", label: "CIF" },
|
|
833
834
|
{ format: "xsf", label: "XSF" },
|
|
834
835
|
{ format: "xyz", label: "XYZ" }
|
|
835
836
|
];
|
|
836
|
-
function
|
|
837
|
+
function _o({
|
|
837
838
|
aiida_rest_url: t,
|
|
838
|
-
uuid:
|
|
839
|
-
download_formats:
|
|
840
|
-
title:
|
|
841
|
-
className:
|
|
842
|
-
classes:
|
|
843
|
-
...
|
|
839
|
+
uuid: r,
|
|
840
|
+
download_formats: i,
|
|
841
|
+
title: s = "Download",
|
|
842
|
+
className: o,
|
|
843
|
+
classes: _ = {},
|
|
844
|
+
...m
|
|
844
845
|
}) {
|
|
845
|
-
const [a,
|
|
846
|
-
return
|
|
846
|
+
const [a, g] = E(!1), l = Zt(null), u = `${t}/nodes/${r}/download`, p = i || ae;
|
|
847
|
+
return nt(() => {
|
|
847
848
|
if (!a) return;
|
|
848
|
-
const
|
|
849
|
-
l.current && !l.current.contains(
|
|
850
|
-
}, b = (
|
|
851
|
-
|
|
849
|
+
const f = (y) => {
|
|
850
|
+
l.current && !l.current.contains(y.target) && g(!1);
|
|
851
|
+
}, b = (y) => {
|
|
852
|
+
y.key === "Escape" && g(!1);
|
|
852
853
|
};
|
|
853
|
-
return document.addEventListener("pointerdown",
|
|
854
|
-
document.removeEventListener("pointerdown",
|
|
854
|
+
return document.addEventListener("pointerdown", f), document.addEventListener("keydown", b), () => {
|
|
855
|
+
document.removeEventListener("pointerdown", f), document.removeEventListener("keydown", b);
|
|
855
856
|
};
|
|
856
|
-
}, [a]), /* @__PURE__ */
|
|
857
|
+
}, [a]), /* @__PURE__ */ e.jsxs(
|
|
857
858
|
"div",
|
|
858
859
|
{
|
|
859
860
|
ref: l,
|
|
860
|
-
className:
|
|
861
|
-
...
|
|
861
|
+
className: X("struct-download", o, _.root),
|
|
862
|
+
...m,
|
|
862
863
|
children: [
|
|
863
|
-
/* @__PURE__ */
|
|
864
|
+
/* @__PURE__ */ e.jsx(
|
|
864
865
|
"button",
|
|
865
866
|
{
|
|
866
867
|
type: "button",
|
|
867
|
-
title:
|
|
868
|
+
title: s,
|
|
868
869
|
"aria-expanded": a,
|
|
869
870
|
"aria-haspopup": "menu",
|
|
870
|
-
onClick: () =>
|
|
871
|
-
className:
|
|
872
|
-
children: /* @__PURE__ */
|
|
873
|
-
|
|
871
|
+
onClick: () => g((f) => !f),
|
|
872
|
+
className: X("struct-download__button", _.button),
|
|
873
|
+
children: /* @__PURE__ */ e.jsx(
|
|
874
|
+
Mt,
|
|
874
875
|
{
|
|
875
|
-
className:
|
|
876
|
+
className: X("struct-download__icon", _.icon)
|
|
876
877
|
}
|
|
877
878
|
)
|
|
878
879
|
}
|
|
879
880
|
),
|
|
880
|
-
a && /* @__PURE__ */
|
|
881
|
+
a && /* @__PURE__ */ e.jsx("div", { className: X("struct-download__dropdown", _.dropdown), children: /* @__PURE__ */ e.jsx(
|
|
881
882
|
"ul",
|
|
882
883
|
{
|
|
883
884
|
role: "menu",
|
|
884
|
-
className:
|
|
885
|
-
children:
|
|
885
|
+
className: X("struct-download__menu", _.menu),
|
|
886
|
+
children: p.map(({ format: f, label: b }) => /* @__PURE__ */ e.jsx(
|
|
886
887
|
"li",
|
|
887
888
|
{
|
|
888
889
|
role: "none",
|
|
889
|
-
className:
|
|
890
|
-
onClick: () =>
|
|
891
|
-
children: /* @__PURE__ */
|
|
890
|
+
className: X(_.menuItem),
|
|
891
|
+
onClick: () => g(!1),
|
|
892
|
+
children: /* @__PURE__ */ e.jsx(
|
|
892
893
|
"a",
|
|
893
894
|
{
|
|
894
895
|
role: "menuitem",
|
|
895
|
-
href: `${
|
|
896
|
-
className:
|
|
896
|
+
href: `${u}?download_format=${f}`,
|
|
897
|
+
className: X(_.menuLink),
|
|
897
898
|
children: b
|
|
898
899
|
}
|
|
899
900
|
)
|
|
900
901
|
},
|
|
901
|
-
|
|
902
|
+
f
|
|
902
903
|
))
|
|
903
904
|
}
|
|
904
905
|
) })
|
|
@@ -906,1319 +907,467 @@ function ai({
|
|
|
906
907
|
}
|
|
907
908
|
);
|
|
908
909
|
}
|
|
909
|
-
const
|
|
910
|
-
function
|
|
910
|
+
const ce = "data:image/png;base64,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", wt = (...t) => t.filter(Boolean).join(" ");
|
|
911
|
+
function mo({
|
|
911
912
|
explore_url: t,
|
|
912
|
-
uuid:
|
|
913
|
-
placement:
|
|
914
|
-
tooltip:
|
|
915
|
-
className:
|
|
916
|
-
classes:
|
|
917
|
-
...
|
|
913
|
+
uuid: r,
|
|
914
|
+
placement: i = "bottom",
|
|
915
|
+
tooltip: s,
|
|
916
|
+
className: o,
|
|
917
|
+
classes: _ = {},
|
|
918
|
+
...m
|
|
918
919
|
}) {
|
|
919
|
-
const a = `${t}/details/${
|
|
920
|
-
return /* @__PURE__ */
|
|
921
|
-
/* @__PURE__ */
|
|
920
|
+
const a = `${t}/details/${r}?nodeType=NODE`;
|
|
921
|
+
return /* @__PURE__ */ e.jsxs("span", { className: wt("explore-button", o, _.root), ...m, children: [
|
|
922
|
+
/* @__PURE__ */ e.jsx(
|
|
922
923
|
"a",
|
|
923
924
|
{
|
|
924
925
|
href: a,
|
|
925
926
|
target: "_blank",
|
|
926
927
|
rel: "noreferrer",
|
|
927
|
-
className:
|
|
928
|
-
children: /* @__PURE__ */
|
|
928
|
+
className: wt("explore-button__link", _.link),
|
|
929
|
+
children: /* @__PURE__ */ e.jsx(
|
|
929
930
|
"img",
|
|
930
931
|
{
|
|
931
|
-
src:
|
|
932
|
+
src: ce,
|
|
932
933
|
alt: "Explore provenance",
|
|
933
|
-
className:
|
|
934
|
+
className: wt("explore-button__logo", _.logo)
|
|
934
935
|
}
|
|
935
936
|
)
|
|
936
937
|
}
|
|
937
938
|
),
|
|
938
|
-
/* @__PURE__ */
|
|
939
|
+
/* @__PURE__ */ e.jsx(
|
|
939
940
|
"span",
|
|
940
941
|
{
|
|
941
942
|
role: "tooltip",
|
|
942
|
-
"data-placement":
|
|
943
|
-
className:
|
|
944
|
-
children:
|
|
943
|
+
"data-placement": i,
|
|
944
|
+
className: wt("explore-button__tooltip", _.tooltip),
|
|
945
|
+
children: s ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
945
946
|
"Browse provenance",
|
|
946
|
-
/* @__PURE__ */
|
|
947
|
-
|
|
947
|
+
/* @__PURE__ */ e.jsx("br", {}),
|
|
948
|
+
r
|
|
948
949
|
] })
|
|
949
950
|
}
|
|
950
951
|
)
|
|
951
952
|
] });
|
|
952
953
|
}
|
|
953
|
-
const
|
|
954
|
-
toggleSwitchWrapper:
|
|
955
|
-
toggleLabel:
|
|
956
|
-
toggleSwitchContainer:
|
|
957
|
-
toggleSwitch:
|
|
958
|
-
thumb:
|
|
959
|
-
toggled:
|
|
954
|
+
const le = "_toggleSwitchWrapper_i81zd_2", _e = "_toggleLabel_i81zd_11", me = "_toggleSwitchContainer_i81zd_16", ge = "_toggleSwitch_i81zd_2", ue = "_thumb_i81zd_34", de = "_toggled_i81zd_46", q = {
|
|
955
|
+
toggleSwitchWrapper: le,
|
|
956
|
+
toggleLabel: _e,
|
|
957
|
+
toggleSwitchContainer: me,
|
|
958
|
+
toggleSwitch: ge,
|
|
959
|
+
thumb: ue,
|
|
960
|
+
toggled: de
|
|
960
961
|
};
|
|
961
|
-
function
|
|
962
|
+
function go({
|
|
962
963
|
switchLength: t = "50px",
|
|
963
|
-
labelLeft:
|
|
964
|
-
labelRight:
|
|
965
|
-
fontSize:
|
|
966
|
-
toggled:
|
|
967
|
-
onToggle:
|
|
964
|
+
labelLeft: r = "Left",
|
|
965
|
+
labelRight: i = "Right",
|
|
966
|
+
fontSize: s = "12px",
|
|
967
|
+
toggled: o,
|
|
968
|
+
onToggle: _ = () => {
|
|
968
969
|
},
|
|
969
|
-
labelClassName:
|
|
970
|
+
labelClassName: m = "",
|
|
970
971
|
containerClassName: a = "",
|
|
971
|
-
switchClassName:
|
|
972
|
+
switchClassName: g = "",
|
|
972
973
|
thumbClassName: l = "",
|
|
973
|
-
...
|
|
974
|
+
...u
|
|
974
975
|
}) {
|
|
975
|
-
const [
|
|
976
|
-
|
|
977
|
-
b &&
|
|
978
|
-
}, [
|
|
976
|
+
const [p, f] = E(!1), b = o !== void 0, y = b ? o : p;
|
|
977
|
+
nt(() => {
|
|
978
|
+
b && f(o);
|
|
979
|
+
}, [o, b]);
|
|
979
980
|
const R = () => {
|
|
980
|
-
const A = !
|
|
981
|
-
b ||
|
|
981
|
+
const A = !y;
|
|
982
|
+
b || f(A), _(A);
|
|
982
983
|
};
|
|
983
|
-
return /* @__PURE__ */
|
|
984
|
+
return /* @__PURE__ */ e.jsxs(
|
|
984
985
|
"div",
|
|
985
986
|
{
|
|
986
|
-
className: `${
|
|
987
|
-
style: { fontSize:
|
|
988
|
-
...
|
|
987
|
+
className: `${q.toggleSwitchWrapper} ${a}`,
|
|
988
|
+
style: { fontSize: s },
|
|
989
|
+
...u,
|
|
989
990
|
children: [
|
|
990
|
-
/* @__PURE__ */
|
|
991
|
-
/* @__PURE__ */
|
|
991
|
+
/* @__PURE__ */ e.jsx("span", { className: `${q.toggleLabel} ${m}`, children: r }),
|
|
992
|
+
/* @__PURE__ */ e.jsx("div", { className: q.toggleSwitchContainer, children: /* @__PURE__ */ e.jsx(
|
|
992
993
|
"button",
|
|
993
994
|
{
|
|
994
995
|
type: "button",
|
|
995
|
-
className: `${
|
|
996
|
+
className: `${q.toggleSwitch} ${y ? q.toggled : ""} ${g}`,
|
|
996
997
|
onClick: R,
|
|
997
998
|
style: { "--switch-length": t },
|
|
998
|
-
children: /* @__PURE__ */
|
|
999
|
+
children: /* @__PURE__ */ e.jsx("div", { className: `${q.thumb} ${l}` })
|
|
999
1000
|
}
|
|
1000
1001
|
) }),
|
|
1001
|
-
/* @__PURE__ */
|
|
1002
|
+
/* @__PURE__ */ e.jsx("span", { className: `${q.toggleLabel} ${m}`, children: i })
|
|
1002
1003
|
]
|
|
1003
1004
|
}
|
|
1004
1005
|
);
|
|
1005
1006
|
}
|
|
1006
|
-
const
|
|
1007
|
-
card:
|
|
1008
|
-
header:
|
|
1009
|
-
body:
|
|
1010
|
-
footer:
|
|
1007
|
+
const pe = "_card_6y0jx_1", he = "_header_6y0jx_13", fe = "_body_6y0jx_18", Pe = "_footer_6y0jx_23", At = {
|
|
1008
|
+
card: pe,
|
|
1009
|
+
header: he,
|
|
1010
|
+
body: fe,
|
|
1011
|
+
footer: Pe
|
|
1011
1012
|
};
|
|
1012
|
-
function
|
|
1013
|
+
function uo({
|
|
1013
1014
|
children: t,
|
|
1014
|
-
header:
|
|
1015
|
-
footer:
|
|
1016
|
-
className:
|
|
1017
|
-
childrenClassName:
|
|
1018
|
-
style:
|
|
1019
|
-
scrollable:
|
|
1015
|
+
header: r,
|
|
1016
|
+
footer: i,
|
|
1017
|
+
className: s = "",
|
|
1018
|
+
childrenClassName: o = "",
|
|
1019
|
+
style: _,
|
|
1020
|
+
scrollable: m = !1,
|
|
1020
1021
|
maxHeight: a,
|
|
1021
|
-
...
|
|
1022
|
+
...g
|
|
1022
1023
|
}) {
|
|
1023
|
-
return /* @__PURE__ */
|
|
1024
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1024
1025
|
"div",
|
|
1025
1026
|
{
|
|
1026
|
-
className: `${
|
|
1027
|
+
className: `${At.card} ${s}`,
|
|
1027
1028
|
style: {
|
|
1028
|
-
...
|
|
1029
|
-
...
|
|
1029
|
+
..._,
|
|
1030
|
+
...m ? {
|
|
1030
1031
|
maxHeight: a ?? 400,
|
|
1031
1032
|
overflow: "auto"
|
|
1032
1033
|
} : {}
|
|
1033
1034
|
},
|
|
1034
|
-
...
|
|
1035
|
+
...g,
|
|
1035
1036
|
children: [
|
|
1036
|
-
|
|
1037
|
-
/* @__PURE__ */
|
|
1038
|
-
|
|
1037
|
+
r && /* @__PURE__ */ e.jsx("div", { className: At.header, children: r }),
|
|
1038
|
+
/* @__PURE__ */ e.jsx("div", { className: `${At.body} ${o}`, children: t }),
|
|
1039
|
+
i && /* @__PURE__ */ e.jsx("div", { className: At.footer, children: i })
|
|
1039
1040
|
]
|
|
1040
1041
|
}
|
|
1041
1042
|
);
|
|
1042
1043
|
}
|
|
1043
|
-
const
|
|
1044
|
-
function
|
|
1044
|
+
const V = (...t) => t.filter(Boolean).join(" ");
|
|
1045
|
+
function ve({
|
|
1045
1046
|
onFile: t,
|
|
1046
|
-
accept:
|
|
1047
|
-
fileName:
|
|
1048
|
-
disabled:
|
|
1049
|
-
title:
|
|
1050
|
-
subtitle:
|
|
1051
|
-
replaceHint:
|
|
1047
|
+
accept: r,
|
|
1048
|
+
fileName: i,
|
|
1049
|
+
disabled: s = !1,
|
|
1050
|
+
title: o = "Drop your file here",
|
|
1051
|
+
subtitle: _,
|
|
1052
|
+
replaceHint: m = "Click or drop another file to replace it",
|
|
1052
1053
|
hint: a,
|
|
1053
|
-
className:
|
|
1054
|
+
className: g,
|
|
1054
1055
|
classes: l = {},
|
|
1055
|
-
...
|
|
1056
|
+
...u
|
|
1056
1057
|
}) {
|
|
1057
|
-
const
|
|
1058
|
-
!A ||
|
|
1058
|
+
const p = Zt(null), [f, b] = E(!1), y = (A) => {
|
|
1059
|
+
!A || s || t == null || t(A);
|
|
1059
1060
|
}, R = (A) => {
|
|
1060
|
-
var
|
|
1061
|
-
A.preventDefault(), b(!1),
|
|
1061
|
+
var j;
|
|
1062
|
+
A.preventDefault(), b(!1), y((j = A.dataTransfer.files) == null ? void 0 : j[0]);
|
|
1062
1063
|
};
|
|
1063
|
-
return /* @__PURE__ */
|
|
1064
|
-
/* @__PURE__ */
|
|
1064
|
+
return /* @__PURE__ */ e.jsxs("div", { className: V("mc-dropzone", g, l.root), ...u, children: [
|
|
1065
|
+
/* @__PURE__ */ e.jsx(
|
|
1065
1066
|
"input",
|
|
1066
1067
|
{
|
|
1067
|
-
ref:
|
|
1068
|
+
ref: p,
|
|
1068
1069
|
type: "file",
|
|
1069
|
-
accept:
|
|
1070
|
-
disabled:
|
|
1071
|
-
className:
|
|
1070
|
+
accept: r,
|
|
1071
|
+
disabled: s,
|
|
1072
|
+
className: V(l.input),
|
|
1072
1073
|
onChange: (A) => {
|
|
1073
|
-
var
|
|
1074
|
-
|
|
1074
|
+
var j;
|
|
1075
|
+
y((j = A.target.files) == null ? void 0 : j[0]), A.target.value = "";
|
|
1075
1076
|
},
|
|
1076
1077
|
hidden: !0
|
|
1077
1078
|
}
|
|
1078
1079
|
),
|
|
1079
|
-
/* @__PURE__ */
|
|
1080
|
+
/* @__PURE__ */ e.jsxs(
|
|
1080
1081
|
"button",
|
|
1081
1082
|
{
|
|
1082
1083
|
type: "button",
|
|
1083
|
-
disabled:
|
|
1084
|
+
disabled: s,
|
|
1084
1085
|
onClick: () => {
|
|
1085
1086
|
var A;
|
|
1086
|
-
return (A =
|
|
1087
|
+
return (A = p.current) == null ? void 0 : A.click();
|
|
1087
1088
|
},
|
|
1088
1089
|
onDragOver: (A) => {
|
|
1089
1090
|
A.preventDefault(), b(!0);
|
|
1090
1091
|
},
|
|
1091
1092
|
onDragLeave: () => b(!1),
|
|
1092
1093
|
onDrop: R,
|
|
1093
|
-
className:
|
|
1094
|
+
className: V(
|
|
1094
1095
|
"mc-dropzone__button",
|
|
1095
|
-
|
|
1096
|
+
f && "mc-dropzone__button--dragging",
|
|
1096
1097
|
l.button
|
|
1097
1098
|
),
|
|
1098
1099
|
children: [
|
|
1099
|
-
/* @__PURE__ */
|
|
1100
|
-
|
|
1101
|
-
/* @__PURE__ */
|
|
1102
|
-
/* @__PURE__ */
|
|
1103
|
-
] }) : /* @__PURE__ */
|
|
1104
|
-
/* @__PURE__ */
|
|
1105
|
-
/* @__PURE__ */
|
|
1100
|
+
/* @__PURE__ */ e.jsx("span", { className: V("mc-dropzone__icon", l.icon), children: /* @__PURE__ */ e.jsx(se, { className: "mc-dropzone__icon-svg" }) }),
|
|
1101
|
+
i ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1102
|
+
/* @__PURE__ */ e.jsx("p", { className: V("mc-dropzone__title", l.fileName), children: i }),
|
|
1103
|
+
/* @__PURE__ */ e.jsx("p", { className: V("mc-dropzone__subtitle", l.subtitle), children: m })
|
|
1104
|
+
] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1105
|
+
/* @__PURE__ */ e.jsx("p", { className: V("mc-dropzone__title", l.title), children: o }),
|
|
1106
|
+
/* @__PURE__ */ e.jsx("p", { className: V("mc-dropzone__subtitle", l.subtitle), children: _ ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1106
1107
|
"or",
|
|
1107
1108
|
" ",
|
|
1108
|
-
/* @__PURE__ */
|
|
1109
|
+
/* @__PURE__ */ e.jsx("span", { className: "mc-dropzone__browse", children: "browse your files" })
|
|
1109
1110
|
] }) }),
|
|
1110
|
-
a && /* @__PURE__ */
|
|
1111
|
+
a && /* @__PURE__ */ e.jsx("p", { className: V("mc-dropzone__hint", l.hint), children: a })
|
|
1111
1112
|
] })
|
|
1112
1113
|
]
|
|
1113
1114
|
}
|
|
1114
1115
|
)
|
|
1115
1116
|
] });
|
|
1116
1117
|
}
|
|
1117
|
-
const
|
|
1118
|
-
function
|
|
1118
|
+
const M = (...t) => t.filter(Boolean).join(" ");
|
|
1119
|
+
function ye(t) {
|
|
1119
1120
|
if (!t) return null;
|
|
1120
|
-
const
|
|
1121
|
-
return Number.isNaN(
|
|
1121
|
+
const r = new Date(t);
|
|
1122
|
+
return Number.isNaN(r.getTime()) ? String(t) : r.toLocaleString();
|
|
1122
1123
|
}
|
|
1123
|
-
function
|
|
1124
|
+
function be({
|
|
1124
1125
|
entries: t = [],
|
|
1125
|
-
onLoad:
|
|
1126
|
-
onDelete:
|
|
1127
|
-
onClear:
|
|
1128
|
-
title:
|
|
1129
|
-
clearLabel:
|
|
1130
|
-
loadLabel:
|
|
1126
|
+
onLoad: r,
|
|
1127
|
+
onDelete: i,
|
|
1128
|
+
onClear: s,
|
|
1129
|
+
title: o = "History",
|
|
1130
|
+
clearLabel: _ = "Clear all",
|
|
1131
|
+
loadLabel: m = "Load",
|
|
1131
1132
|
deleteLabel: a = "Delete",
|
|
1132
|
-
className:
|
|
1133
|
+
className: g,
|
|
1133
1134
|
classes: l = {},
|
|
1134
|
-
...
|
|
1135
|
+
...u
|
|
1135
1136
|
}) {
|
|
1136
|
-
return t.length === 0 ? null : /* @__PURE__ */
|
|
1137
|
-
/* @__PURE__ */
|
|
1138
|
-
/* @__PURE__ */
|
|
1139
|
-
|
|
1137
|
+
return t.length === 0 ? null : /* @__PURE__ */ e.jsxs("div", { className: M("mc-history", g, l.root), ...u, children: [
|
|
1138
|
+
/* @__PURE__ */ e.jsxs("div", { className: M("mc-history__header", l.header), children: [
|
|
1139
|
+
/* @__PURE__ */ e.jsx("p", { className: M("mc-history__title", l.title), children: o }),
|
|
1140
|
+
s && /* @__PURE__ */ e.jsx(
|
|
1140
1141
|
"button",
|
|
1141
1142
|
{
|
|
1142
1143
|
type: "button",
|
|
1143
|
-
onClick:
|
|
1144
|
-
className:
|
|
1145
|
-
children:
|
|
1144
|
+
onClick: s,
|
|
1145
|
+
className: M("mc-history__clear", l.clearButton),
|
|
1146
|
+
children: _
|
|
1146
1147
|
}
|
|
1147
1148
|
)
|
|
1148
1149
|
] }),
|
|
1149
|
-
/* @__PURE__ */
|
|
1150
|
+
/* @__PURE__ */ e.jsx("ul", { className: M("mc-history__list", l.list), children: t.map((p) => /* @__PURE__ */ e.jsxs(
|
|
1150
1151
|
"li",
|
|
1151
1152
|
{
|
|
1152
|
-
className:
|
|
1153
|
+
className: M("mc-history__item", l.item),
|
|
1153
1154
|
children: [
|
|
1154
|
-
/* @__PURE__ */
|
|
1155
|
-
/* @__PURE__ */
|
|
1156
|
-
|
|
1155
|
+
/* @__PURE__ */ e.jsxs("div", { className: M("mc-history__details", l.details), children: [
|
|
1156
|
+
/* @__PURE__ */ e.jsx("p", { className: M("mc-history__name", l.fileName), children: p.fileName }),
|
|
1157
|
+
p.date && /* @__PURE__ */ e.jsx("p", { className: M("mc-history__date", l.date), children: ye(p.date) })
|
|
1157
1158
|
] }),
|
|
1158
|
-
|
|
1159
|
-
|
|
1159
|
+
p.format && /* @__PURE__ */ e.jsx("span", { className: M("mc-history__format", l.format), children: String(p.format).toUpperCase() }),
|
|
1160
|
+
r && /* @__PURE__ */ e.jsx(
|
|
1160
1161
|
"button",
|
|
1161
1162
|
{
|
|
1162
1163
|
type: "button",
|
|
1163
|
-
onClick: () =>
|
|
1164
|
-
className:
|
|
1165
|
-
children:
|
|
1164
|
+
onClick: () => r(p),
|
|
1165
|
+
className: M("mc-history__load", l.loadButton),
|
|
1166
|
+
children: m
|
|
1166
1167
|
}
|
|
1167
1168
|
),
|
|
1168
|
-
|
|
1169
|
+
i && /* @__PURE__ */ e.jsx(
|
|
1169
1170
|
"button",
|
|
1170
1171
|
{
|
|
1171
1172
|
type: "button",
|
|
1172
|
-
onClick: () =>
|
|
1173
|
-
"aria-label": `${a} ${
|
|
1174
|
-
className:
|
|
1173
|
+
onClick: () => i(p.id),
|
|
1174
|
+
"aria-label": `${a} ${p.fileName}`,
|
|
1175
|
+
className: M("mc-history__delete", l.deleteButton),
|
|
1175
1176
|
children: a
|
|
1176
1177
|
}
|
|
1177
1178
|
)
|
|
1178
1179
|
]
|
|
1179
1180
|
},
|
|
1180
|
-
|
|
1181
|
+
p.id
|
|
1181
1182
|
)) })
|
|
1182
1183
|
] });
|
|
1183
1184
|
}
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
symbol: "H",
|
|
1188
|
-
name: "Hydrogen",
|
|
1189
|
-
mass: 1.00794
|
|
1190
|
-
},
|
|
1191
|
-
2: {
|
|
1192
|
-
atomicNumber: 2,
|
|
1193
|
-
symbol: "He",
|
|
1194
|
-
name: "Helium",
|
|
1195
|
-
mass: 4.002602
|
|
1196
|
-
},
|
|
1197
|
-
3: {
|
|
1198
|
-
atomicNumber: 3,
|
|
1199
|
-
symbol: "Li",
|
|
1200
|
-
name: "Lithium",
|
|
1201
|
-
mass: 6.941
|
|
1202
|
-
},
|
|
1203
|
-
4: {
|
|
1204
|
-
atomicNumber: 4,
|
|
1205
|
-
symbol: "Be",
|
|
1206
|
-
name: "Beryllium",
|
|
1207
|
-
mass: 9.012182
|
|
1208
|
-
},
|
|
1209
|
-
5: {
|
|
1210
|
-
atomicNumber: 5,
|
|
1211
|
-
symbol: "B",
|
|
1212
|
-
name: "Boron",
|
|
1213
|
-
mass: 10.811
|
|
1214
|
-
},
|
|
1215
|
-
6: {
|
|
1216
|
-
atomicNumber: 6,
|
|
1217
|
-
symbol: "C",
|
|
1218
|
-
name: "Carbon",
|
|
1219
|
-
mass: 12.0107
|
|
1220
|
-
},
|
|
1221
|
-
7: {
|
|
1222
|
-
atomicNumber: 7,
|
|
1223
|
-
symbol: "N",
|
|
1224
|
-
name: "Nitrogen",
|
|
1225
|
-
mass: 14.0067
|
|
1226
|
-
},
|
|
1227
|
-
8: {
|
|
1228
|
-
atomicNumber: 8,
|
|
1229
|
-
symbol: "O",
|
|
1230
|
-
name: "Oxygen",
|
|
1231
|
-
mass: 15.9994
|
|
1232
|
-
},
|
|
1233
|
-
9: {
|
|
1234
|
-
atomicNumber: 9,
|
|
1235
|
-
symbol: "F",
|
|
1236
|
-
name: "Fluorine",
|
|
1237
|
-
mass: 18.9984032
|
|
1238
|
-
},
|
|
1239
|
-
10: {
|
|
1240
|
-
atomicNumber: 10,
|
|
1241
|
-
symbol: "Ne",
|
|
1242
|
-
name: "Neon",
|
|
1243
|
-
mass: 20.1797
|
|
1244
|
-
},
|
|
1245
|
-
11: {
|
|
1246
|
-
atomicNumber: 11,
|
|
1247
|
-
symbol: "Na",
|
|
1248
|
-
name: "Sodium",
|
|
1249
|
-
mass: 22.98976928
|
|
1250
|
-
},
|
|
1251
|
-
12: {
|
|
1252
|
-
atomicNumber: 12,
|
|
1253
|
-
symbol: "Mg",
|
|
1254
|
-
name: "Magnesium",
|
|
1255
|
-
mass: 24.305
|
|
1256
|
-
},
|
|
1257
|
-
13: {
|
|
1258
|
-
atomicNumber: 13,
|
|
1259
|
-
symbol: "Al",
|
|
1260
|
-
name: "Aluminium",
|
|
1261
|
-
mass: 26.9815386
|
|
1262
|
-
},
|
|
1263
|
-
14: {
|
|
1264
|
-
atomicNumber: 14,
|
|
1265
|
-
symbol: "Si",
|
|
1266
|
-
name: "Silicon",
|
|
1267
|
-
mass: 28.0855
|
|
1268
|
-
},
|
|
1269
|
-
15: {
|
|
1270
|
-
atomicNumber: 15,
|
|
1271
|
-
symbol: "P",
|
|
1272
|
-
name: "Phosphorus",
|
|
1273
|
-
mass: 30.973762
|
|
1274
|
-
},
|
|
1275
|
-
16: {
|
|
1276
|
-
atomicNumber: 16,
|
|
1277
|
-
symbol: "S",
|
|
1278
|
-
name: "Sulfur",
|
|
1279
|
-
mass: 32.065
|
|
1280
|
-
},
|
|
1281
|
-
17: {
|
|
1282
|
-
atomicNumber: 17,
|
|
1283
|
-
symbol: "Cl",
|
|
1284
|
-
name: "Chlorine",
|
|
1285
|
-
mass: 35.453
|
|
1286
|
-
},
|
|
1287
|
-
18: {
|
|
1288
|
-
atomicNumber: 18,
|
|
1289
|
-
symbol: "Ar",
|
|
1290
|
-
name: "Argon",
|
|
1291
|
-
mass: 39.948
|
|
1292
|
-
},
|
|
1293
|
-
19: {
|
|
1294
|
-
atomicNumber: 19,
|
|
1295
|
-
symbol: "K",
|
|
1296
|
-
name: "Potassium",
|
|
1297
|
-
mass: 39.0983
|
|
1298
|
-
},
|
|
1299
|
-
20: {
|
|
1300
|
-
atomicNumber: 20,
|
|
1301
|
-
symbol: "Ca",
|
|
1302
|
-
name: "Calcium",
|
|
1303
|
-
mass: 40.078
|
|
1304
|
-
},
|
|
1305
|
-
21: {
|
|
1306
|
-
atomicNumber: 21,
|
|
1307
|
-
symbol: "Sc",
|
|
1308
|
-
name: "Scandium",
|
|
1309
|
-
mass: 44.955912
|
|
1310
|
-
},
|
|
1311
|
-
22: {
|
|
1312
|
-
atomicNumber: 22,
|
|
1313
|
-
symbol: "Ti",
|
|
1314
|
-
name: "Titanium",
|
|
1315
|
-
mass: 47.867
|
|
1316
|
-
},
|
|
1317
|
-
23: {
|
|
1318
|
-
atomicNumber: 23,
|
|
1319
|
-
symbol: "V",
|
|
1320
|
-
name: "Vanadium",
|
|
1321
|
-
mass: 50.9415
|
|
1322
|
-
},
|
|
1323
|
-
24: {
|
|
1324
|
-
atomicNumber: 24,
|
|
1325
|
-
symbol: "Cr",
|
|
1326
|
-
name: "Chromium",
|
|
1327
|
-
mass: 51.9961
|
|
1328
|
-
},
|
|
1329
|
-
25: {
|
|
1330
|
-
atomicNumber: 25,
|
|
1331
|
-
symbol: "Mn",
|
|
1332
|
-
name: "Manganese",
|
|
1333
|
-
mass: 54.938045
|
|
1334
|
-
},
|
|
1335
|
-
26: {
|
|
1336
|
-
atomicNumber: 26,
|
|
1337
|
-
symbol: "Fe",
|
|
1338
|
-
name: "Iron",
|
|
1339
|
-
mass: 55.845
|
|
1340
|
-
},
|
|
1341
|
-
27: {
|
|
1342
|
-
atomicNumber: 27,
|
|
1343
|
-
symbol: "Co",
|
|
1344
|
-
name: "Cobalt",
|
|
1345
|
-
mass: 58.933195
|
|
1346
|
-
},
|
|
1347
|
-
28: {
|
|
1348
|
-
atomicNumber: 28,
|
|
1349
|
-
symbol: "Ni",
|
|
1350
|
-
name: "Nickel",
|
|
1351
|
-
mass: 58.6934
|
|
1352
|
-
},
|
|
1353
|
-
29: {
|
|
1354
|
-
atomicNumber: 29,
|
|
1355
|
-
symbol: "Cu",
|
|
1356
|
-
name: "Copper",
|
|
1357
|
-
mass: 63.546
|
|
1358
|
-
},
|
|
1359
|
-
30: {
|
|
1360
|
-
atomicNumber: 30,
|
|
1361
|
-
symbol: "Zn",
|
|
1362
|
-
name: "Zinc",
|
|
1363
|
-
mass: 65.38
|
|
1364
|
-
},
|
|
1365
|
-
31: {
|
|
1366
|
-
atomicNumber: 31,
|
|
1367
|
-
symbol: "Ga",
|
|
1368
|
-
name: "Gallium",
|
|
1369
|
-
mass: 69.723
|
|
1370
|
-
},
|
|
1371
|
-
32: {
|
|
1372
|
-
atomicNumber: 32,
|
|
1373
|
-
symbol: "Ge",
|
|
1374
|
-
name: "Germanium",
|
|
1375
|
-
mass: 72.63
|
|
1376
|
-
},
|
|
1377
|
-
33: {
|
|
1378
|
-
atomicNumber: 33,
|
|
1379
|
-
symbol: "As",
|
|
1380
|
-
name: "Arsenic",
|
|
1381
|
-
mass: 74.9216
|
|
1382
|
-
},
|
|
1383
|
-
34: {
|
|
1384
|
-
atomicNumber: 34,
|
|
1385
|
-
symbol: "Se",
|
|
1386
|
-
name: "Selenium",
|
|
1387
|
-
mass: 78.96
|
|
1388
|
-
},
|
|
1389
|
-
35: {
|
|
1390
|
-
atomicNumber: 35,
|
|
1391
|
-
symbol: "Br",
|
|
1392
|
-
name: "Bromine",
|
|
1393
|
-
mass: 79.904
|
|
1394
|
-
},
|
|
1395
|
-
36: {
|
|
1396
|
-
atomicNumber: 36,
|
|
1397
|
-
symbol: "Kr",
|
|
1398
|
-
name: "Krypton",
|
|
1399
|
-
mass: 83.798
|
|
1400
|
-
},
|
|
1401
|
-
37: {
|
|
1402
|
-
atomicNumber: 37,
|
|
1403
|
-
symbol: "Rb",
|
|
1404
|
-
name: "Rubidium",
|
|
1405
|
-
mass: 85.4678
|
|
1406
|
-
},
|
|
1407
|
-
38: {
|
|
1408
|
-
atomicNumber: 38,
|
|
1409
|
-
symbol: "Sr",
|
|
1410
|
-
name: "Strontium",
|
|
1411
|
-
mass: 87.62
|
|
1412
|
-
},
|
|
1413
|
-
39: {
|
|
1414
|
-
atomicNumber: 39,
|
|
1415
|
-
symbol: "Y",
|
|
1416
|
-
name: "Yttrium",
|
|
1417
|
-
mass: 88.90585
|
|
1418
|
-
},
|
|
1419
|
-
40: {
|
|
1420
|
-
atomicNumber: 40,
|
|
1421
|
-
symbol: "Zr",
|
|
1422
|
-
name: "Zirconium",
|
|
1423
|
-
mass: 91.224
|
|
1424
|
-
},
|
|
1425
|
-
41: {
|
|
1426
|
-
atomicNumber: 41,
|
|
1427
|
-
symbol: "Nb",
|
|
1428
|
-
name: "Niobium",
|
|
1429
|
-
mass: 92.90638
|
|
1430
|
-
},
|
|
1431
|
-
42: {
|
|
1432
|
-
atomicNumber: 42,
|
|
1433
|
-
symbol: "Mo",
|
|
1434
|
-
name: "Molybdenum",
|
|
1435
|
-
mass: 95.96
|
|
1436
|
-
},
|
|
1437
|
-
43: {
|
|
1438
|
-
atomicNumber: 43,
|
|
1439
|
-
symbol: "Tc",
|
|
1440
|
-
name: "Technetium",
|
|
1441
|
-
mass: 98
|
|
1442
|
-
},
|
|
1443
|
-
44: {
|
|
1444
|
-
atomicNumber: 44,
|
|
1445
|
-
symbol: "Ru",
|
|
1446
|
-
name: "Ruthenium",
|
|
1447
|
-
mass: 101.07
|
|
1448
|
-
},
|
|
1449
|
-
45: {
|
|
1450
|
-
atomicNumber: 45,
|
|
1451
|
-
symbol: "Rh",
|
|
1452
|
-
name: "Rhodium",
|
|
1453
|
-
mass: 102.9055
|
|
1454
|
-
},
|
|
1455
|
-
46: {
|
|
1456
|
-
atomicNumber: 46,
|
|
1457
|
-
symbol: "Pd",
|
|
1458
|
-
name: "Palladium",
|
|
1459
|
-
mass: 106.42
|
|
1460
|
-
},
|
|
1461
|
-
47: {
|
|
1462
|
-
atomicNumber: 47,
|
|
1463
|
-
symbol: "Ag",
|
|
1464
|
-
name: "Silver",
|
|
1465
|
-
mass: 107.8682
|
|
1466
|
-
},
|
|
1467
|
-
48: {
|
|
1468
|
-
atomicNumber: 48,
|
|
1469
|
-
symbol: "Cd",
|
|
1470
|
-
name: "Cadmium",
|
|
1471
|
-
mass: 112.411
|
|
1472
|
-
},
|
|
1473
|
-
49: {
|
|
1474
|
-
atomicNumber: 49,
|
|
1475
|
-
symbol: "In",
|
|
1476
|
-
name: "Indium",
|
|
1477
|
-
mass: 114.818
|
|
1478
|
-
},
|
|
1479
|
-
50: {
|
|
1480
|
-
atomicNumber: 50,
|
|
1481
|
-
symbol: "Sn",
|
|
1482
|
-
name: "Tin",
|
|
1483
|
-
mass: 118.71
|
|
1484
|
-
},
|
|
1485
|
-
51: {
|
|
1486
|
-
atomicNumber: 51,
|
|
1487
|
-
symbol: "Sb",
|
|
1488
|
-
name: "Antimony",
|
|
1489
|
-
mass: 121.76
|
|
1490
|
-
},
|
|
1491
|
-
52: {
|
|
1492
|
-
atomicNumber: 52,
|
|
1493
|
-
symbol: "Te",
|
|
1494
|
-
name: "Tellurium",
|
|
1495
|
-
mass: 127.6
|
|
1496
|
-
},
|
|
1497
|
-
53: {
|
|
1498
|
-
atomicNumber: 53,
|
|
1499
|
-
symbol: "I",
|
|
1500
|
-
name: "Iodine",
|
|
1501
|
-
mass: 126.90447
|
|
1502
|
-
},
|
|
1503
|
-
54: {
|
|
1504
|
-
atomicNumber: 54,
|
|
1505
|
-
symbol: "Xe",
|
|
1506
|
-
name: "Xenon",
|
|
1507
|
-
mass: 131.293
|
|
1508
|
-
},
|
|
1509
|
-
55: {
|
|
1510
|
-
atomicNumber: 55,
|
|
1511
|
-
symbol: "Cs",
|
|
1512
|
-
name: "Cesium",
|
|
1513
|
-
mass: 132.9054519
|
|
1514
|
-
},
|
|
1515
|
-
56: {
|
|
1516
|
-
atomicNumber: 56,
|
|
1517
|
-
symbol: "Ba",
|
|
1518
|
-
name: "Barium",
|
|
1519
|
-
mass: 137.327
|
|
1520
|
-
},
|
|
1521
|
-
57: {
|
|
1522
|
-
atomicNumber: 57,
|
|
1523
|
-
symbol: "La",
|
|
1524
|
-
name: "Lanthanum",
|
|
1525
|
-
mass: 138.90547
|
|
1526
|
-
},
|
|
1527
|
-
58: {
|
|
1528
|
-
atomicNumber: 58,
|
|
1529
|
-
symbol: "Ce",
|
|
1530
|
-
name: "Cerium",
|
|
1531
|
-
mass: 140.116
|
|
1532
|
-
},
|
|
1533
|
-
59: {
|
|
1534
|
-
atomicNumber: 59,
|
|
1535
|
-
symbol: "Pr",
|
|
1536
|
-
name: "Praseodymium",
|
|
1537
|
-
mass: 140.90765
|
|
1538
|
-
},
|
|
1539
|
-
60: {
|
|
1540
|
-
atomicNumber: 60,
|
|
1541
|
-
symbol: "Nd",
|
|
1542
|
-
name: "Neodymium",
|
|
1543
|
-
mass: 144.242
|
|
1544
|
-
},
|
|
1545
|
-
61: {
|
|
1546
|
-
atomicNumber: 61,
|
|
1547
|
-
symbol: "Pm",
|
|
1548
|
-
name: "Promethium",
|
|
1549
|
-
mass: 145
|
|
1550
|
-
},
|
|
1551
|
-
62: {
|
|
1552
|
-
atomicNumber: 62,
|
|
1553
|
-
symbol: "Sm",
|
|
1554
|
-
name: "Samarium",
|
|
1555
|
-
mass: 150.36
|
|
1556
|
-
},
|
|
1557
|
-
63: {
|
|
1558
|
-
atomicNumber: 63,
|
|
1559
|
-
symbol: "Eu",
|
|
1560
|
-
name: "Europium",
|
|
1561
|
-
mass: 151.964
|
|
1562
|
-
},
|
|
1563
|
-
64: {
|
|
1564
|
-
atomicNumber: 64,
|
|
1565
|
-
symbol: "Gd",
|
|
1566
|
-
name: "Gadolinium",
|
|
1567
|
-
mass: 157.25
|
|
1568
|
-
},
|
|
1569
|
-
65: {
|
|
1570
|
-
atomicNumber: 65,
|
|
1571
|
-
symbol: "Tb",
|
|
1572
|
-
name: "Terbium",
|
|
1573
|
-
mass: 158.92535
|
|
1574
|
-
},
|
|
1575
|
-
66: {
|
|
1576
|
-
atomicNumber: 66,
|
|
1577
|
-
symbol: "Dy",
|
|
1578
|
-
name: "Dysprosium",
|
|
1579
|
-
mass: 162.5
|
|
1580
|
-
},
|
|
1581
|
-
67: {
|
|
1582
|
-
atomicNumber: 67,
|
|
1583
|
-
symbol: "Ho",
|
|
1584
|
-
name: "Holmium",
|
|
1585
|
-
mass: 164.93032
|
|
1586
|
-
},
|
|
1587
|
-
68: {
|
|
1588
|
-
atomicNumber: 68,
|
|
1589
|
-
symbol: "Er",
|
|
1590
|
-
name: "Erbium",
|
|
1591
|
-
mass: 167.259
|
|
1592
|
-
},
|
|
1593
|
-
69: {
|
|
1594
|
-
atomicNumber: 69,
|
|
1595
|
-
symbol: "Tm",
|
|
1596
|
-
name: "Thulium",
|
|
1597
|
-
mass: 168.93421
|
|
1598
|
-
},
|
|
1599
|
-
70: {
|
|
1600
|
-
atomicNumber: 70,
|
|
1601
|
-
symbol: "Yb",
|
|
1602
|
-
name: "Ytterbium",
|
|
1603
|
-
mass: 173.054
|
|
1604
|
-
},
|
|
1605
|
-
71: {
|
|
1606
|
-
atomicNumber: 71,
|
|
1607
|
-
symbol: "Lu",
|
|
1608
|
-
name: "Lutetium",
|
|
1609
|
-
mass: 174.9668
|
|
1610
|
-
},
|
|
1611
|
-
72: {
|
|
1612
|
-
atomicNumber: 72,
|
|
1613
|
-
symbol: "Hf",
|
|
1614
|
-
name: "Hafnium",
|
|
1615
|
-
mass: 178.49
|
|
1616
|
-
},
|
|
1617
|
-
73: {
|
|
1618
|
-
atomicNumber: 73,
|
|
1619
|
-
symbol: "Ta",
|
|
1620
|
-
name: "Tantalum",
|
|
1621
|
-
mass: 180.94788
|
|
1622
|
-
},
|
|
1623
|
-
74: {
|
|
1624
|
-
atomicNumber: 74,
|
|
1625
|
-
symbol: "W",
|
|
1626
|
-
name: "Tungsten",
|
|
1627
|
-
mass: 183.84
|
|
1628
|
-
},
|
|
1629
|
-
75: {
|
|
1630
|
-
atomicNumber: 75,
|
|
1631
|
-
symbol: "Re",
|
|
1632
|
-
name: "Rhenium",
|
|
1633
|
-
mass: 186.207
|
|
1634
|
-
},
|
|
1635
|
-
76: {
|
|
1636
|
-
atomicNumber: 76,
|
|
1637
|
-
symbol: "Os",
|
|
1638
|
-
name: "Osmium",
|
|
1639
|
-
mass: 190.23
|
|
1640
|
-
},
|
|
1641
|
-
77: {
|
|
1642
|
-
atomicNumber: 77,
|
|
1643
|
-
symbol: "Ir",
|
|
1644
|
-
name: "Iridium",
|
|
1645
|
-
mass: 192.217
|
|
1646
|
-
},
|
|
1647
|
-
78: {
|
|
1648
|
-
atomicNumber: 78,
|
|
1649
|
-
symbol: "Pt",
|
|
1650
|
-
name: "Platinum",
|
|
1651
|
-
mass: 195.084
|
|
1652
|
-
},
|
|
1653
|
-
79: {
|
|
1654
|
-
atomicNumber: 79,
|
|
1655
|
-
symbol: "Au",
|
|
1656
|
-
name: "Gold",
|
|
1657
|
-
mass: 196.966569
|
|
1658
|
-
},
|
|
1659
|
-
80: {
|
|
1660
|
-
atomicNumber: 80,
|
|
1661
|
-
symbol: "Hg",
|
|
1662
|
-
name: "Mercury",
|
|
1663
|
-
mass: 200.59
|
|
1664
|
-
},
|
|
1665
|
-
81: {
|
|
1666
|
-
atomicNumber: 81,
|
|
1667
|
-
symbol: "Tl",
|
|
1668
|
-
name: "Thallium",
|
|
1669
|
-
mass: 204.3833
|
|
1670
|
-
},
|
|
1671
|
-
82: {
|
|
1672
|
-
atomicNumber: 82,
|
|
1673
|
-
symbol: "Pb",
|
|
1674
|
-
name: "Lead",
|
|
1675
|
-
mass: 207.2
|
|
1676
|
-
},
|
|
1677
|
-
83: {
|
|
1678
|
-
atomicNumber: 83,
|
|
1679
|
-
symbol: "Bi",
|
|
1680
|
-
name: "Bismuth",
|
|
1681
|
-
mass: 208.9804
|
|
1682
|
-
},
|
|
1683
|
-
84: {
|
|
1684
|
-
atomicNumber: 84,
|
|
1685
|
-
symbol: "Po",
|
|
1686
|
-
name: "Polonium",
|
|
1687
|
-
mass: 209
|
|
1688
|
-
},
|
|
1689
|
-
85: {
|
|
1690
|
-
atomicNumber: 85,
|
|
1691
|
-
symbol: "At",
|
|
1692
|
-
name: "Astatine",
|
|
1693
|
-
mass: 210
|
|
1694
|
-
},
|
|
1695
|
-
86: {
|
|
1696
|
-
atomicNumber: 86,
|
|
1697
|
-
symbol: "Rn",
|
|
1698
|
-
name: "Radon",
|
|
1699
|
-
mass: 222
|
|
1700
|
-
},
|
|
1701
|
-
87: {
|
|
1702
|
-
atomicNumber: 87,
|
|
1703
|
-
symbol: "Fr",
|
|
1704
|
-
name: "Francium",
|
|
1705
|
-
mass: 223
|
|
1706
|
-
},
|
|
1707
|
-
88: {
|
|
1708
|
-
atomicNumber: 88,
|
|
1709
|
-
symbol: "Ra",
|
|
1710
|
-
name: "Radium",
|
|
1711
|
-
mass: 226
|
|
1712
|
-
},
|
|
1713
|
-
89: {
|
|
1714
|
-
atomicNumber: 89,
|
|
1715
|
-
symbol: "Ac",
|
|
1716
|
-
name: "Actinium",
|
|
1717
|
-
mass: 227
|
|
1718
|
-
},
|
|
1719
|
-
90: {
|
|
1720
|
-
atomicNumber: 90,
|
|
1721
|
-
symbol: "Th",
|
|
1722
|
-
name: "Thorium",
|
|
1723
|
-
mass: 232.03806
|
|
1724
|
-
},
|
|
1725
|
-
91: {
|
|
1726
|
-
atomicNumber: 91,
|
|
1727
|
-
symbol: "Pa",
|
|
1728
|
-
name: "Protactinium",
|
|
1729
|
-
mass: 231.03588
|
|
1730
|
-
},
|
|
1731
|
-
92: {
|
|
1732
|
-
atomicNumber: 92,
|
|
1733
|
-
symbol: "U",
|
|
1734
|
-
name: "Uranium",
|
|
1735
|
-
mass: 238.02891
|
|
1736
|
-
},
|
|
1737
|
-
93: {
|
|
1738
|
-
atomicNumber: 93,
|
|
1739
|
-
symbol: "Np",
|
|
1740
|
-
name: "Neptunium",
|
|
1741
|
-
mass: 237
|
|
1742
|
-
},
|
|
1743
|
-
94: {
|
|
1744
|
-
atomicNumber: 94,
|
|
1745
|
-
symbol: "Pu",
|
|
1746
|
-
name: "Plutonium",
|
|
1747
|
-
mass: 244
|
|
1748
|
-
},
|
|
1749
|
-
95: {
|
|
1750
|
-
atomicNumber: 95,
|
|
1751
|
-
symbol: "Am",
|
|
1752
|
-
name: "Americium",
|
|
1753
|
-
mass: 243
|
|
1754
|
-
},
|
|
1755
|
-
96: {
|
|
1756
|
-
atomicNumber: 96,
|
|
1757
|
-
symbol: "Cm",
|
|
1758
|
-
name: "Curium",
|
|
1759
|
-
mass: 247
|
|
1760
|
-
},
|
|
1761
|
-
97: {
|
|
1762
|
-
atomicNumber: 97,
|
|
1763
|
-
symbol: "Bk",
|
|
1764
|
-
name: "Berkelium",
|
|
1765
|
-
mass: 247
|
|
1766
|
-
},
|
|
1767
|
-
98: {
|
|
1768
|
-
atomicNumber: 98,
|
|
1769
|
-
symbol: "Cf",
|
|
1770
|
-
name: "Californium",
|
|
1771
|
-
mass: 251
|
|
1772
|
-
},
|
|
1773
|
-
99: {
|
|
1774
|
-
atomicNumber: 99,
|
|
1775
|
-
symbol: "Es",
|
|
1776
|
-
name: "Einsteinium",
|
|
1777
|
-
mass: 252
|
|
1778
|
-
},
|
|
1779
|
-
100: {
|
|
1780
|
-
atomicNumber: 100,
|
|
1781
|
-
symbol: "Fm",
|
|
1782
|
-
name: "Fermium",
|
|
1783
|
-
mass: 257
|
|
1784
|
-
},
|
|
1785
|
-
101: {
|
|
1786
|
-
atomicNumber: 101,
|
|
1787
|
-
symbol: "Md",
|
|
1788
|
-
name: "Mendelevium",
|
|
1789
|
-
mass: 258
|
|
1790
|
-
},
|
|
1791
|
-
102: {
|
|
1792
|
-
atomicNumber: 102,
|
|
1793
|
-
symbol: "No",
|
|
1794
|
-
name: "Nobelium",
|
|
1795
|
-
mass: 259
|
|
1796
|
-
},
|
|
1797
|
-
103: {
|
|
1798
|
-
atomicNumber: 103,
|
|
1799
|
-
symbol: "Lr",
|
|
1800
|
-
name: "Lawrencium",
|
|
1801
|
-
mass: 262
|
|
1802
|
-
},
|
|
1803
|
-
104: {
|
|
1804
|
-
atomicNumber: 104,
|
|
1805
|
-
symbol: "Rf",
|
|
1806
|
-
name: "Rutherfordium",
|
|
1807
|
-
mass: 267
|
|
1808
|
-
},
|
|
1809
|
-
105: {
|
|
1810
|
-
atomicNumber: 105,
|
|
1811
|
-
symbol: "Db",
|
|
1812
|
-
name: "Dubnium",
|
|
1813
|
-
mass: 268
|
|
1814
|
-
},
|
|
1815
|
-
106: {
|
|
1816
|
-
atomicNumber: 106,
|
|
1817
|
-
symbol: "Sg",
|
|
1818
|
-
name: "Seaborgium",
|
|
1819
|
-
mass: 269
|
|
1820
|
-
},
|
|
1821
|
-
107: {
|
|
1822
|
-
atomicNumber: 107,
|
|
1823
|
-
symbol: "Bh",
|
|
1824
|
-
name: "Bohrium",
|
|
1825
|
-
mass: 270
|
|
1826
|
-
},
|
|
1827
|
-
108: {
|
|
1828
|
-
atomicNumber: 108,
|
|
1829
|
-
symbol: "Hs",
|
|
1830
|
-
name: "Hassium",
|
|
1831
|
-
mass: 269
|
|
1832
|
-
},
|
|
1833
|
-
109: {
|
|
1834
|
-
atomicNumber: 109,
|
|
1835
|
-
symbol: "Mt",
|
|
1836
|
-
name: "Meitnerium",
|
|
1837
|
-
mass: 278
|
|
1838
|
-
},
|
|
1839
|
-
110: {
|
|
1840
|
-
atomicNumber: 110,
|
|
1841
|
-
symbol: "Ds",
|
|
1842
|
-
name: "Darmstadtium",
|
|
1843
|
-
mass: 281
|
|
1844
|
-
},
|
|
1845
|
-
111: {
|
|
1846
|
-
atomicNumber: 111,
|
|
1847
|
-
symbol: "Rg",
|
|
1848
|
-
name: "Roentgenium",
|
|
1849
|
-
mass: 281
|
|
1850
|
-
},
|
|
1851
|
-
112: {
|
|
1852
|
-
atomicNumber: 112,
|
|
1853
|
-
symbol: "Cn",
|
|
1854
|
-
name: "Copernicium",
|
|
1855
|
-
mass: 285
|
|
1856
|
-
},
|
|
1857
|
-
113: {
|
|
1858
|
-
atomicNumber: 113,
|
|
1859
|
-
symbol: "Nh",
|
|
1860
|
-
name: "Nihonium",
|
|
1861
|
-
mass: 286
|
|
1862
|
-
},
|
|
1863
|
-
114: {
|
|
1864
|
-
atomicNumber: 114,
|
|
1865
|
-
symbol: "Fl",
|
|
1866
|
-
name: "Flerovium",
|
|
1867
|
-
mass: 289
|
|
1868
|
-
},
|
|
1869
|
-
115: {
|
|
1870
|
-
atomicNumber: 115,
|
|
1871
|
-
symbol: "Mc",
|
|
1872
|
-
name: "Moscovium",
|
|
1873
|
-
mass: 288
|
|
1874
|
-
},
|
|
1875
|
-
116: {
|
|
1876
|
-
atomicNumber: 116,
|
|
1877
|
-
symbol: "Lv",
|
|
1878
|
-
name: "Livermorium",
|
|
1879
|
-
mass: 293
|
|
1880
|
-
},
|
|
1881
|
-
117: {
|
|
1882
|
-
atomicNumber: 117,
|
|
1883
|
-
symbol: "Ts",
|
|
1884
|
-
name: "Tennessine",
|
|
1885
|
-
mass: 294
|
|
1886
|
-
},
|
|
1887
|
-
118: {
|
|
1888
|
-
atomicNumber: 118,
|
|
1889
|
-
symbol: "Og",
|
|
1890
|
-
name: "Oganesson",
|
|
1891
|
-
mass: 294
|
|
1892
|
-
}
|
|
1893
|
-
};
|
|
1894
|
-
Object.values(lt).reduce((t, e) => (t[e.symbol] = e, t), {});
|
|
1895
|
-
new Map(Object.values(lt).map((t) => [t.symbol, t.atomicNumber]));
|
|
1896
|
-
new Map(Object.values(lt).map((t) => [t.atomicNumber, t.symbol]));
|
|
1897
|
-
function _t(t, e, o) {
|
|
1898
|
-
let i = t * e, s = o ? Float64Array.from(o) : new Float64Array(i);
|
|
1899
|
-
if (s.length !== i) throw Error(`Expected ${i} values, got ${s.length}`);
|
|
1900
|
-
return {
|
|
1901
|
-
rows: t,
|
|
1902
|
-
cols: e,
|
|
1903
|
-
data: s
|
|
1904
|
-
};
|
|
1905
|
-
}
|
|
1906
|
-
function pe(t) {
|
|
1907
|
-
return Math.abs(t) < 1e-12 ? 0 : t;
|
|
1908
|
-
}
|
|
1909
|
-
function on(t) {
|
|
1910
|
-
let e = t instanceof Float64Array ? Array.from(t) : "data" in t ? Array.from(t.data) : t, o;
|
|
1911
|
-
if (e.length === 3) {
|
|
1912
|
-
let [i, s, m] = e;
|
|
1913
|
-
o = new Float64Array([
|
|
1914
|
-
i,
|
|
1915
|
-
0,
|
|
1916
|
-
0,
|
|
1917
|
-
0,
|
|
1918
|
-
s,
|
|
1919
|
-
0,
|
|
1920
|
-
0,
|
|
1921
|
-
0,
|
|
1922
|
-
m
|
|
1923
|
-
]);
|
|
1924
|
-
} else if (e.length === 9) {
|
|
1925
|
-
o = /* @__PURE__ */ new Float64Array(9);
|
|
1926
|
-
for (let i = 0; i < 9; i++) o[i] = pe(e[i]);
|
|
1927
|
-
} else throw Error("Lattice requires 3 or 9 values");
|
|
1928
|
-
return { basis: _t(3, 3, o) };
|
|
1929
|
-
}
|
|
1930
|
-
function he(t, e) {
|
|
1931
|
-
if (t.cols !== e.rows) throw Error("Invalid matrix multiplication dimensions");
|
|
1932
|
-
let o = _t(t.rows, e.cols), i = t.rows, s = t.cols, m = e.cols, _ = t.data, a = e.data, u = o.data;
|
|
1933
|
-
for (let l = 0; l < i; l++) {
|
|
1934
|
-
let f = l * s, d = l * m;
|
|
1935
|
-
for (let p = 0; p < s; p++) {
|
|
1936
|
-
let b = _[f + p], v = p * m;
|
|
1937
|
-
for (let R = 0; R < m; R++) u[d + R] += b * a[v + R];
|
|
1938
|
-
}
|
|
1939
|
-
}
|
|
1940
|
-
return o;
|
|
1941
|
-
}
|
|
1942
|
-
function fe(t) {
|
|
1943
|
-
if (t.rows !== 3 || t.cols !== 3) throw Error("Expected 3x3 matrix");
|
|
1944
|
-
let e = t.data[0], o = t.data[1], i = t.data[2], s = t.data[3], m = t.data[4], _ = t.data[5], a = t.data[6], u = t.data[7], l = t.data[8], f = m * l - _ * u, d = _ * a - s * l, p = s * u - m * a, b = i * u - o * l, v = e * l - i * a, R = o * a - e * u, A = o * _ - i * m, k = i * s - e * _, N = e * m - o * s, z = e * f + o * d + i * p;
|
|
1945
|
-
if (Math.abs(z) < 1e-12) throw Error("Singular matrix");
|
|
1946
|
-
let I = 1 / z, E = _t(3, 3);
|
|
1947
|
-
return E.data[0] = f * I, E.data[1] = b * I, E.data[2] = A * I, E.data[3] = d * I, E.data[4] = v * I, E.data[5] = k * I, E.data[6] = p * I, E.data[7] = R * I, E.data[8] = N * I, E;
|
|
1948
|
-
}
|
|
1949
|
-
function be(t) {
|
|
1950
|
-
let e = t.rows, o = t.cols, i = t.data, s = _t(o, e), m = s.data;
|
|
1951
|
-
for (let _ = 0; _ < e; _++) {
|
|
1952
|
-
let a = _ * o;
|
|
1953
|
-
for (let u = 0; u < o; u++) m[u * e + _] = i[a + u];
|
|
1954
|
-
}
|
|
1955
|
-
return s;
|
|
1956
|
-
}
|
|
1957
|
-
function ye(t) {
|
|
1958
|
-
return fe(t.basis);
|
|
1959
|
-
}
|
|
1960
|
-
function sn(t, e) {
|
|
1961
|
-
let o = {
|
|
1962
|
-
rows: 3,
|
|
1963
|
-
cols: 1,
|
|
1964
|
-
data: e
|
|
1965
|
-
}, i = he(be(ye(t)), o);
|
|
1966
|
-
return new Float64Array([
|
|
1967
|
-
i.data[0],
|
|
1968
|
-
i.data[1],
|
|
1969
|
-
i.data[2]
|
|
1970
|
-
]);
|
|
1971
|
-
}
|
|
1972
|
-
function Pe(t) {
|
|
1973
|
-
let e = on([
|
|
1974
|
-
...t.cell[0],
|
|
1975
|
-
...t.cell[1],
|
|
1976
|
-
...t.cell[2]
|
|
1977
|
-
]), o = new Map(t.kinds.map((i) => [i.name, i]));
|
|
1978
|
-
return {
|
|
1979
|
-
lattice: e,
|
|
1980
|
-
sites: t.sites.map((i) => {
|
|
1981
|
-
let s = o.get(i.kind_name);
|
|
1982
|
-
if (!s) throw Error(`Unknown kind "${i.kind_name}"`);
|
|
1983
|
-
return {
|
|
1984
|
-
species: { symbol: s.symbols[0] },
|
|
1985
|
-
frac: sn(e, new Float64Array(i.position))
|
|
1986
|
-
};
|
|
1987
|
-
})
|
|
1988
|
-
};
|
|
1989
|
-
}
|
|
1990
|
-
function ve(t) {
|
|
1991
|
-
let e = on([
|
|
1992
|
-
...t.attributes.lattice_vectors[0],
|
|
1993
|
-
...t.attributes.lattice_vectors[1],
|
|
1994
|
-
...t.attributes.lattice_vectors[2]
|
|
1995
|
-
]), o = t.attributes.cartesian_site_positions, i = t.attributes.species_at_sites;
|
|
1996
|
-
return {
|
|
1997
|
-
lattice: e,
|
|
1998
|
-
sites: o.map((s, m) => ({
|
|
1999
|
-
species: { symbol: i[m] },
|
|
2000
|
-
frac: sn(e, new Float64Array(s))
|
|
2001
|
-
}))
|
|
2002
|
-
};
|
|
2003
|
-
}
|
|
2004
|
-
function an(t, e, o, i, s) {
|
|
2005
|
-
let m = (u) => (s == null ? void 0 : s[u]) ?? u, _ = m(e), a = m(o);
|
|
2006
|
-
return _ === a ? t : t * i[_] / i[a];
|
|
2007
|
-
}
|
|
2008
|
-
function xe(t, e, o, i, s) {
|
|
2009
|
-
return t.map((m) => an(m, e, o, i, s));
|
|
2010
|
-
}
|
|
2011
|
-
var Pt = {
|
|
2012
|
-
eV: 1,
|
|
2013
|
-
Hartree: 27.2114,
|
|
2014
|
-
Rydberg: 13.6057,
|
|
2015
|
-
"kJ/mol": 0.0103643,
|
|
2016
|
-
"kcal/mol": 0.0433641
|
|
2017
|
-
}, vt = {
|
|
2018
|
-
Ha: "Hartree",
|
|
2019
|
-
Ry: "Rydberg",
|
|
2020
|
-
ev: "eV",
|
|
2021
|
-
electronvolt: "eV"
|
|
2022
|
-
}, mn = {
|
|
2023
|
-
conversions: Pt,
|
|
2024
|
-
aliases: vt,
|
|
2025
|
-
convert(t, e, o) {
|
|
2026
|
-
return an(t, e, o, Pt, vt);
|
|
2027
|
-
},
|
|
2028
|
-
convertArray(t, e, o) {
|
|
2029
|
-
return xe(t, e, o, Pt, vt);
|
|
2030
|
-
}
|
|
2031
|
-
};
|
|
2032
|
-
mn.convert(1, "Hartree", "Rydberg");
|
|
2033
|
-
mn.convert(1, "Rydberg", "Hartree");
|
|
2034
|
-
var Ae = /* @__PURE__ */ new Map();
|
|
2035
|
-
for (let [t, e] of Object.entries(lt)) Ae.set(e.symbol, Number(t));
|
|
2036
|
-
function we(t) {
|
|
2037
|
-
var o;
|
|
2038
|
-
const e = (o = String(t).match(
|
|
1185
|
+
function dn(t) {
|
|
1186
|
+
var i;
|
|
1187
|
+
const r = (i = String(t).match(
|
|
2039
1188
|
/[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}/
|
|
2040
|
-
)) == null ? void 0 :
|
|
2041
|
-
return
|
|
1189
|
+
)) == null ? void 0 : i[0];
|
|
1190
|
+
return r ? r.split("-")[0] : null;
|
|
2042
1191
|
}
|
|
2043
|
-
function
|
|
2044
|
-
var
|
|
2045
|
-
return ((
|
|
1192
|
+
function xe(t) {
|
|
1193
|
+
var r;
|
|
1194
|
+
return ((r = t == null ? void 0 : t.data) == null ? void 0 : r.attributes) ?? (t == null ? void 0 : t.data) ?? t;
|
|
2046
1195
|
}
|
|
2047
|
-
function
|
|
2048
|
-
const
|
|
2049
|
-
return Array.isArray(
|
|
1196
|
+
function we(t) {
|
|
1197
|
+
const r = (t == null ? void 0 : t.data) ?? t;
|
|
1198
|
+
return Array.isArray(r) ? r[0] : r;
|
|
2050
1199
|
}
|
|
2051
|
-
function
|
|
1200
|
+
function Ae({
|
|
2052
1201
|
onLoaded: t,
|
|
2053
|
-
onError:
|
|
2054
|
-
fromURL:
|
|
2055
|
-
format:
|
|
2056
|
-
autoLoad:
|
|
1202
|
+
onError: r,
|
|
1203
|
+
fromURL: i,
|
|
1204
|
+
format: s,
|
|
1205
|
+
autoLoad: o = !0
|
|
2057
1206
|
}) {
|
|
2058
|
-
return
|
|
2059
|
-
if (!
|
|
2060
|
-
const
|
|
2061
|
-
if (!
|
|
2062
|
-
const a =
|
|
2063
|
-
fetch(
|
|
2064
|
-
const
|
|
2065
|
-
structure:
|
|
1207
|
+
return nt(() => {
|
|
1208
|
+
if (!o) return;
|
|
1209
|
+
const _ = new URLSearchParams(window.location.search), m = i ?? _.get("fromURL");
|
|
1210
|
+
if (!m) return;
|
|
1211
|
+
const a = s ?? _.get("format"), g = _.get("tag");
|
|
1212
|
+
fetch(m).then((l) => l.json()).then((l) => {
|
|
1213
|
+
const u = a === "optimade" ? { structure: Gn(we(l)), format: a } : {
|
|
1214
|
+
structure: Kn(xe(l)),
|
|
2066
1215
|
format: "aiida"
|
|
2067
|
-
},
|
|
2068
|
-
t == null || t({ ...
|
|
1216
|
+
}, p = g ?? dn(m) ?? new URL(m).pathname.split("/").filter(Boolean).pop() ?? m;
|
|
1217
|
+
t == null || t({ ...u, fileName: p, sourceUrl: m });
|
|
2069
1218
|
}).catch(
|
|
2070
|
-
(l) =>
|
|
1219
|
+
(l) => r == null ? void 0 : r(l instanceof Error ? l.message : String(l))
|
|
2071
1220
|
);
|
|
2072
1221
|
}, []), null;
|
|
2073
1222
|
}
|
|
2074
|
-
const
|
|
2075
|
-
function
|
|
1223
|
+
const ke = "#", $ = (...t) => t.filter(Boolean).join(" ");
|
|
1224
|
+
function zt() {
|
|
2076
1225
|
const t = typeof window < "u" ? window.location.hash : "";
|
|
2077
|
-
return t.startsWith(
|
|
1226
|
+
return t.startsWith(ke) ? t.slice(1) : t;
|
|
2078
1227
|
}
|
|
2079
|
-
function
|
|
1228
|
+
function po({
|
|
2080
1229
|
hash: t,
|
|
2081
|
-
open:
|
|
2082
|
-
onClose:
|
|
2083
|
-
title:
|
|
2084
|
-
children:
|
|
2085
|
-
maxWidth:
|
|
2086
|
-
className:
|
|
1230
|
+
open: r,
|
|
1231
|
+
onClose: i,
|
|
1232
|
+
title: s,
|
|
1233
|
+
children: o,
|
|
1234
|
+
maxWidth: _ = "48rem",
|
|
1235
|
+
className: m,
|
|
2087
1236
|
classes: a = {},
|
|
2088
|
-
...
|
|
1237
|
+
...g
|
|
2089
1238
|
}) {
|
|
2090
|
-
const [l,
|
|
2091
|
-
|
|
2092
|
-
if (
|
|
2093
|
-
const
|
|
2094
|
-
return
|
|
2095
|
-
}, [t,
|
|
2096
|
-
const
|
|
2097
|
-
if (
|
|
2098
|
-
|
|
1239
|
+
const [l, u] = E(() => zt() === t);
|
|
1240
|
+
nt(() => {
|
|
1241
|
+
if (r !== void 0) return;
|
|
1242
|
+
const y = () => u(zt() === t);
|
|
1243
|
+
return y(), window.addEventListener("hashchange", y), () => window.removeEventListener("hashchange", y);
|
|
1244
|
+
}, [t, r]);
|
|
1245
|
+
const f = r !== void 0 ? r : l, b = () => {
|
|
1246
|
+
if (i) {
|
|
1247
|
+
i();
|
|
2099
1248
|
return;
|
|
2100
1249
|
}
|
|
2101
|
-
|
|
1250
|
+
zt() === t && window.history.replaceState(
|
|
2102
1251
|
null,
|
|
2103
1252
|
"",
|
|
2104
1253
|
window.location.pathname + window.location.search
|
|
2105
|
-
),
|
|
1254
|
+
), u(!1);
|
|
2106
1255
|
};
|
|
2107
|
-
return
|
|
2108
|
-
if (!
|
|
2109
|
-
const
|
|
1256
|
+
return nt(() => {
|
|
1257
|
+
if (!f) return;
|
|
1258
|
+
const y = (R) => {
|
|
2110
1259
|
R.key === "Escape" && b();
|
|
2111
1260
|
};
|
|
2112
|
-
return document.addEventListener("keydown",
|
|
2113
|
-
}, [
|
|
1261
|
+
return document.addEventListener("keydown", y), () => document.removeEventListener("keydown", y);
|
|
1262
|
+
}, [f, i, t]), f ? /* @__PURE__ */ e.jsx(
|
|
2114
1263
|
"div",
|
|
2115
1264
|
{
|
|
2116
|
-
className:
|
|
1265
|
+
className: $("hash-modal", m, a.root),
|
|
2117
1266
|
onClick: b,
|
|
2118
|
-
...
|
|
2119
|
-
children: /* @__PURE__ */
|
|
1267
|
+
...g,
|
|
1268
|
+
children: /* @__PURE__ */ e.jsxs(
|
|
2120
1269
|
"div",
|
|
2121
1270
|
{
|
|
2122
|
-
className:
|
|
2123
|
-
style: { "--hash-modal-max-width":
|
|
2124
|
-
onClick: (
|
|
1271
|
+
className: $("hash-modal__dialog", a.dialog),
|
|
1272
|
+
style: { "--hash-modal-max-width": _ },
|
|
1273
|
+
onClick: (y) => y.stopPropagation(),
|
|
2125
1274
|
role: "dialog",
|
|
2126
1275
|
"aria-modal": "true",
|
|
2127
1276
|
children: [
|
|
2128
|
-
/* @__PURE__ */
|
|
2129
|
-
/* @__PURE__ */
|
|
2130
|
-
/* @__PURE__ */
|
|
1277
|
+
/* @__PURE__ */ e.jsxs("div", { className: $("hash-modal__header", a.header), children: [
|
|
1278
|
+
/* @__PURE__ */ e.jsx("h2", { className: $("hash-modal__title", a.title), children: s }),
|
|
1279
|
+
/* @__PURE__ */ e.jsx(
|
|
2131
1280
|
"button",
|
|
2132
1281
|
{
|
|
2133
1282
|
type: "button",
|
|
2134
1283
|
onClick: b,
|
|
2135
1284
|
"aria-label": "Close",
|
|
2136
|
-
className:
|
|
2137
|
-
children: /* @__PURE__ */
|
|
1285
|
+
className: $("hash-modal__close", a.closeButton),
|
|
1286
|
+
children: /* @__PURE__ */ e.jsx(
|
|
2138
1287
|
"svg",
|
|
2139
1288
|
{
|
|
2140
1289
|
viewBox: "0 0 24 24",
|
|
2141
1290
|
fill: "none",
|
|
2142
|
-
className:
|
|
1291
|
+
className: $("hash-modal__close-icon", a.closeIcon),
|
|
2143
1292
|
stroke: "currentColor",
|
|
2144
1293
|
strokeWidth: "2",
|
|
2145
1294
|
"aria-hidden": "true",
|
|
2146
|
-
children: /* @__PURE__ */
|
|
1295
|
+
children: /* @__PURE__ */ e.jsx("path", { d: "M6 6l12 12M18 6L6 18", strokeLinecap: "round" })
|
|
2147
1296
|
}
|
|
2148
1297
|
)
|
|
2149
1298
|
}
|
|
2150
1299
|
)
|
|
2151
1300
|
] }),
|
|
2152
|
-
/* @__PURE__ */
|
|
1301
|
+
/* @__PURE__ */ e.jsx("div", { className: $("hash-modal__body", a.body), children: o })
|
|
2153
1302
|
]
|
|
2154
1303
|
}
|
|
2155
1304
|
)
|
|
2156
1305
|
}
|
|
2157
1306
|
) : null;
|
|
2158
1307
|
}
|
|
2159
|
-
const
|
|
2160
|
-
function
|
|
1308
|
+
const L = (...t) => t.filter(Boolean).join(" ");
|
|
1309
|
+
function ho({
|
|
2161
1310
|
title: t,
|
|
2162
|
-
text:
|
|
2163
|
-
filename:
|
|
2164
|
-
open:
|
|
2165
|
-
onToggle:
|
|
2166
|
-
className:
|
|
2167
|
-
classes:
|
|
1311
|
+
text: r,
|
|
1312
|
+
filename: i = "text.txt",
|
|
1313
|
+
open: s,
|
|
1314
|
+
onToggle: o,
|
|
1315
|
+
className: _,
|
|
1316
|
+
classes: m = {},
|
|
2168
1317
|
...a
|
|
2169
1318
|
}) {
|
|
2170
|
-
const [
|
|
2171
|
-
const A = !
|
|
2172
|
-
|
|
2173
|
-
},
|
|
1319
|
+
const [g, l] = E(!0), [u, p] = E(!1), f = s !== void 0 ? s : g, b = () => {
|
|
1320
|
+
const A = !f;
|
|
1321
|
+
o ? o(A) : l(A);
|
|
1322
|
+
}, y = async (A) => {
|
|
2174
1323
|
A.stopPropagation();
|
|
2175
1324
|
try {
|
|
2176
|
-
await navigator.clipboard.writeText(
|
|
2177
|
-
|
|
1325
|
+
await navigator.clipboard.writeText(r), p(!0), setTimeout(() => {
|
|
1326
|
+
p(!1);
|
|
2178
1327
|
}, 1500);
|
|
2179
1328
|
} catch {
|
|
2180
|
-
|
|
1329
|
+
p(!1);
|
|
2181
1330
|
}
|
|
2182
1331
|
}, R = (A) => {
|
|
2183
1332
|
A.stopPropagation();
|
|
2184
|
-
const
|
|
1333
|
+
const j = new Blob([r], {
|
|
2185
1334
|
type: "text/plain;charset=utf-8"
|
|
2186
|
-
}),
|
|
2187
|
-
|
|
1335
|
+
}), I = URL.createObjectURL(j), O = document.createElement("a");
|
|
1336
|
+
O.href = I, O.download = i, document.body.appendChild(O), O.click(), O.remove(), URL.revokeObjectURL(I);
|
|
2188
1337
|
};
|
|
2189
|
-
return /* @__PURE__ */
|
|
1338
|
+
return /* @__PURE__ */ e.jsxs(
|
|
2190
1339
|
"div",
|
|
2191
1340
|
{
|
|
2192
|
-
className:
|
|
1341
|
+
className: L(
|
|
2193
1342
|
"mc-acc",
|
|
2194
1343
|
"text-renderer",
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
1344
|
+
f && "mc-acc--open",
|
|
1345
|
+
f && "text-renderer--open",
|
|
1346
|
+
_,
|
|
1347
|
+
m.root
|
|
2199
1348
|
),
|
|
2200
1349
|
...a,
|
|
2201
1350
|
children: [
|
|
2202
|
-
/* @__PURE__ */
|
|
2203
|
-
/* @__PURE__ */
|
|
1351
|
+
/* @__PURE__ */ e.jsxs("div", { className: L("text-renderer__header", m.header), children: [
|
|
1352
|
+
/* @__PURE__ */ e.jsxs(
|
|
2204
1353
|
"button",
|
|
2205
1354
|
{
|
|
2206
1355
|
type: "button",
|
|
2207
1356
|
onClick: b,
|
|
2208
|
-
className:
|
|
2209
|
-
"aria-expanded":
|
|
1357
|
+
className: L("text-renderer__toggle", m.toggle),
|
|
1358
|
+
"aria-expanded": f,
|
|
2210
1359
|
children: [
|
|
2211
|
-
/* @__PURE__ */
|
|
2212
|
-
/* @__PURE__ */
|
|
1360
|
+
/* @__PURE__ */ e.jsx("span", { className: L("text-renderer__title", m.title), children: t }),
|
|
1361
|
+
/* @__PURE__ */ e.jsx(
|
|
2213
1362
|
"span",
|
|
2214
1363
|
{
|
|
2215
|
-
className:
|
|
1364
|
+
className: L(
|
|
2216
1365
|
"mc-acc__chevron",
|
|
2217
1366
|
"text-renderer__chevron",
|
|
2218
|
-
|
|
2219
|
-
|
|
1367
|
+
f && "mc-acc__chevron--open",
|
|
1368
|
+
m.chevron
|
|
2220
1369
|
),
|
|
2221
|
-
children: /* @__PURE__ */
|
|
1370
|
+
children: /* @__PURE__ */ e.jsx(
|
|
2222
1371
|
"svg",
|
|
2223
1372
|
{
|
|
2224
1373
|
viewBox: "0 0 20 20",
|
|
@@ -2227,7 +1376,7 @@ function pi({
|
|
|
2227
1376
|
strokeWidth: "2",
|
|
2228
1377
|
className: "mc-acc__chevron-icon",
|
|
2229
1378
|
"aria-hidden": "true",
|
|
2230
|
-
children: /* @__PURE__ */
|
|
1379
|
+
children: /* @__PURE__ */ e.jsx(
|
|
2231
1380
|
"path",
|
|
2232
1381
|
{
|
|
2233
1382
|
d: "M5 7.5 10 12.5 15 7.5",
|
|
@@ -2242,61 +1391,61 @@ function pi({
|
|
|
2242
1391
|
]
|
|
2243
1392
|
}
|
|
2244
1393
|
),
|
|
2245
|
-
/* @__PURE__ */
|
|
2246
|
-
/* @__PURE__ */
|
|
1394
|
+
/* @__PURE__ */ e.jsxs("div", { className: L("text-renderer__actions", m.actions), children: [
|
|
1395
|
+
/* @__PURE__ */ e.jsxs(
|
|
2247
1396
|
"button",
|
|
2248
1397
|
{
|
|
2249
1398
|
type: "button",
|
|
2250
|
-
onClick:
|
|
2251
|
-
className:
|
|
1399
|
+
onClick: y,
|
|
1400
|
+
className: L(
|
|
2252
1401
|
"text-renderer__action",
|
|
2253
1402
|
"text-renderer__copy-button",
|
|
2254
|
-
|
|
2255
|
-
|
|
1403
|
+
m.action,
|
|
1404
|
+
m.copyButton
|
|
2256
1405
|
),
|
|
2257
1406
|
children: [
|
|
2258
|
-
|
|
2259
|
-
/* @__PURE__ */
|
|
1407
|
+
u ? /* @__PURE__ */ e.jsx(un, { className: "text-renderer__action-icon" }) : /* @__PURE__ */ e.jsx(gn, { className: "text-renderer__action-icon" }),
|
|
1408
|
+
/* @__PURE__ */ e.jsx("span", { children: u ? "Copied!" : "Copy" })
|
|
2260
1409
|
]
|
|
2261
1410
|
}
|
|
2262
1411
|
),
|
|
2263
|
-
/* @__PURE__ */
|
|
1412
|
+
/* @__PURE__ */ e.jsxs(
|
|
2264
1413
|
"button",
|
|
2265
1414
|
{
|
|
2266
1415
|
type: "button",
|
|
2267
1416
|
onClick: R,
|
|
2268
|
-
className:
|
|
1417
|
+
className: L(
|
|
2269
1418
|
"text-renderer__action",
|
|
2270
1419
|
"text-renderer__download-button",
|
|
2271
|
-
|
|
2272
|
-
|
|
1420
|
+
m.action,
|
|
1421
|
+
m.downloadButton
|
|
2273
1422
|
),
|
|
2274
1423
|
children: [
|
|
2275
|
-
/* @__PURE__ */
|
|
2276
|
-
/* @__PURE__ */
|
|
1424
|
+
/* @__PURE__ */ e.jsx(Mt, { className: "text-renderer__action-icon" }),
|
|
1425
|
+
/* @__PURE__ */ e.jsx("span", { children: "Download" })
|
|
2277
1426
|
]
|
|
2278
1427
|
}
|
|
2279
1428
|
)
|
|
2280
1429
|
] })
|
|
2281
1430
|
] }),
|
|
2282
|
-
/* @__PURE__ */
|
|
1431
|
+
/* @__PURE__ */ e.jsx(
|
|
2283
1432
|
"div",
|
|
2284
1433
|
{
|
|
2285
|
-
className:
|
|
1434
|
+
className: L(
|
|
2286
1435
|
"mc-acc__collapse",
|
|
2287
1436
|
"text-renderer__content-wrapper",
|
|
2288
|
-
|
|
2289
|
-
|
|
1437
|
+
f && "mc-acc__collapse--open",
|
|
1438
|
+
m.contentWrapper
|
|
2290
1439
|
),
|
|
2291
|
-
children: /* @__PURE__ */
|
|
1440
|
+
children: /* @__PURE__ */ e.jsx("div", { className: "mc-acc__collapse-inner", children: /* @__PURE__ */ e.jsx(
|
|
2292
1441
|
"div",
|
|
2293
1442
|
{
|
|
2294
|
-
className:
|
|
1443
|
+
className: L(
|
|
2295
1444
|
"mc-acc__panel",
|
|
2296
1445
|
"text-renderer__content",
|
|
2297
|
-
|
|
1446
|
+
m.content
|
|
2298
1447
|
),
|
|
2299
|
-
children: /* @__PURE__ */
|
|
1448
|
+
children: /* @__PURE__ */ e.jsx("div", { className: L("text-renderer__scroll", m.scroll), children: /* @__PURE__ */ e.jsx("pre", { className: L("text-renderer__pre", m.pre), children: r }) })
|
|
2300
1449
|
}
|
|
2301
1450
|
) })
|
|
2302
1451
|
}
|
|
@@ -2305,70 +1454,70 @@ function pi({
|
|
|
2305
1454
|
}
|
|
2306
1455
|
);
|
|
2307
1456
|
}
|
|
2308
|
-
const
|
|
2309
|
-
function
|
|
1457
|
+
const H = (...t) => t.filter(Boolean).join(" ");
|
|
1458
|
+
function fo({
|
|
2310
1459
|
title: t,
|
|
2311
|
-
text:
|
|
2312
|
-
filename:
|
|
2313
|
-
open:
|
|
2314
|
-
onToggle:
|
|
2315
|
-
extraActions:
|
|
2316
|
-
className:
|
|
1460
|
+
text: r,
|
|
1461
|
+
filename: i = "text.txt",
|
|
1462
|
+
open: s,
|
|
1463
|
+
onToggle: o,
|
|
1464
|
+
extraActions: _,
|
|
1465
|
+
className: m,
|
|
2317
1466
|
classes: a = {},
|
|
2318
|
-
...
|
|
1467
|
+
...g
|
|
2319
1468
|
}) {
|
|
2320
|
-
const [l,
|
|
2321
|
-
const
|
|
2322
|
-
|
|
2323
|
-
}, R = async (
|
|
2324
|
-
|
|
1469
|
+
const [l, u] = E(!0), [p, f] = E(!1), b = s !== void 0 ? s : l, y = () => {
|
|
1470
|
+
const j = !b;
|
|
1471
|
+
o ? o(j) : u(j);
|
|
1472
|
+
}, R = async (j) => {
|
|
1473
|
+
j.stopPropagation();
|
|
2325
1474
|
try {
|
|
2326
|
-
await navigator.clipboard.writeText(
|
|
2327
|
-
|
|
1475
|
+
await navigator.clipboard.writeText(r), f(!0), setTimeout(() => {
|
|
1476
|
+
f(!1);
|
|
2328
1477
|
}, 1500);
|
|
2329
1478
|
} catch {
|
|
2330
|
-
|
|
1479
|
+
f(!1);
|
|
2331
1480
|
}
|
|
2332
|
-
}, A = (
|
|
2333
|
-
|
|
2334
|
-
const
|
|
1481
|
+
}, A = (j) => {
|
|
1482
|
+
j.stopPropagation();
|
|
1483
|
+
const I = new Blob([r], {
|
|
2335
1484
|
type: "text/plain;charset=utf-8"
|
|
2336
|
-
}),
|
|
2337
|
-
|
|
1485
|
+
}), O = URL.createObjectURL(I), z = document.createElement("a");
|
|
1486
|
+
z.href = O, z.download = i, document.body.appendChild(z), z.click(), z.remove(), URL.revokeObjectURL(O);
|
|
2338
1487
|
};
|
|
2339
|
-
return /* @__PURE__ */
|
|
1488
|
+
return /* @__PURE__ */ e.jsxs(
|
|
2340
1489
|
"div",
|
|
2341
1490
|
{
|
|
2342
|
-
className:
|
|
1491
|
+
className: H(
|
|
2343
1492
|
"mc-acc",
|
|
2344
1493
|
"text-renderer",
|
|
2345
1494
|
b && "mc-acc--open",
|
|
2346
1495
|
b && "text-renderer--open",
|
|
2347
|
-
|
|
1496
|
+
m,
|
|
2348
1497
|
a.root
|
|
2349
1498
|
),
|
|
2350
|
-
...
|
|
1499
|
+
...g,
|
|
2351
1500
|
children: [
|
|
2352
|
-
/* @__PURE__ */
|
|
2353
|
-
/* @__PURE__ */
|
|
1501
|
+
/* @__PURE__ */ e.jsxs("div", { className: H("text-renderer__header", a.header), children: [
|
|
1502
|
+
/* @__PURE__ */ e.jsxs(
|
|
2354
1503
|
"button",
|
|
2355
1504
|
{
|
|
2356
1505
|
type: "button",
|
|
2357
|
-
onClick:
|
|
2358
|
-
className:
|
|
1506
|
+
onClick: y,
|
|
1507
|
+
className: H("text-renderer__toggle", a.toggle),
|
|
2359
1508
|
"aria-expanded": b,
|
|
2360
1509
|
children: [
|
|
2361
|
-
/* @__PURE__ */
|
|
2362
|
-
/* @__PURE__ */
|
|
1510
|
+
/* @__PURE__ */ e.jsx("span", { className: H("text-renderer__title", a.title), children: t }),
|
|
1511
|
+
/* @__PURE__ */ e.jsx(
|
|
2363
1512
|
"span",
|
|
2364
1513
|
{
|
|
2365
|
-
className:
|
|
1514
|
+
className: H(
|
|
2366
1515
|
"mc-acc__chevron",
|
|
2367
1516
|
"text-renderer__chevron",
|
|
2368
1517
|
b && "mc-acc__chevron--open",
|
|
2369
1518
|
a.chevron
|
|
2370
1519
|
),
|
|
2371
|
-
children: /* @__PURE__ */
|
|
1520
|
+
children: /* @__PURE__ */ e.jsx(
|
|
2372
1521
|
"svg",
|
|
2373
1522
|
{
|
|
2374
1523
|
viewBox: "0 0 20 20",
|
|
@@ -2377,7 +1526,7 @@ function hi({
|
|
|
2377
1526
|
strokeWidth: "2",
|
|
2378
1527
|
className: "mc-acc__chevron-icon",
|
|
2379
1528
|
"aria-hidden": "true",
|
|
2380
|
-
children: /* @__PURE__ */
|
|
1529
|
+
children: /* @__PURE__ */ e.jsx(
|
|
2381
1530
|
"path",
|
|
2382
1531
|
{
|
|
2383
1532
|
d: "M5 7.5 10 12.5 15 7.5",
|
|
@@ -2392,62 +1541,62 @@ function hi({
|
|
|
2392
1541
|
]
|
|
2393
1542
|
}
|
|
2394
1543
|
),
|
|
2395
|
-
/* @__PURE__ */
|
|
2396
|
-
/* @__PURE__ */
|
|
1544
|
+
/* @__PURE__ */ e.jsxs("div", { className: H("text-renderer__actions", a.actions), children: [
|
|
1545
|
+
/* @__PURE__ */ e.jsxs(
|
|
2397
1546
|
"button",
|
|
2398
1547
|
{
|
|
2399
1548
|
type: "button",
|
|
2400
1549
|
onClick: R,
|
|
2401
|
-
className:
|
|
1550
|
+
className: H(
|
|
2402
1551
|
"text-renderer__action",
|
|
2403
1552
|
"text-renderer__copy-button",
|
|
2404
1553
|
a.action,
|
|
2405
1554
|
a.copyButton
|
|
2406
1555
|
),
|
|
2407
1556
|
children: [
|
|
2408
|
-
|
|
2409
|
-
/* @__PURE__ */
|
|
1557
|
+
p ? /* @__PURE__ */ e.jsx(un, { className: "text-renderer__action-icon" }) : /* @__PURE__ */ e.jsx(gn, { className: "text-renderer__action-icon" }),
|
|
1558
|
+
/* @__PURE__ */ e.jsx("span", { children: p ? "Copied!" : "Copy" })
|
|
2410
1559
|
]
|
|
2411
1560
|
}
|
|
2412
1561
|
),
|
|
2413
|
-
/* @__PURE__ */
|
|
1562
|
+
/* @__PURE__ */ e.jsxs(
|
|
2414
1563
|
"button",
|
|
2415
1564
|
{
|
|
2416
1565
|
type: "button",
|
|
2417
1566
|
onClick: A,
|
|
2418
|
-
className:
|
|
1567
|
+
className: H(
|
|
2419
1568
|
"text-renderer__action",
|
|
2420
1569
|
"text-renderer__download-button",
|
|
2421
1570
|
a.action,
|
|
2422
1571
|
a.downloadButton
|
|
2423
1572
|
),
|
|
2424
1573
|
children: [
|
|
2425
|
-
/* @__PURE__ */
|
|
2426
|
-
/* @__PURE__ */
|
|
1574
|
+
/* @__PURE__ */ e.jsx(Mt, { className: "text-renderer__action-icon" }),
|
|
1575
|
+
/* @__PURE__ */ e.jsx("span", { children: "Download" })
|
|
2427
1576
|
]
|
|
2428
1577
|
}
|
|
2429
1578
|
),
|
|
2430
|
-
|
|
1579
|
+
_
|
|
2431
1580
|
] })
|
|
2432
1581
|
] }),
|
|
2433
|
-
/* @__PURE__ */
|
|
1582
|
+
/* @__PURE__ */ e.jsx(
|
|
2434
1583
|
"div",
|
|
2435
1584
|
{
|
|
2436
|
-
className:
|
|
1585
|
+
className: H(
|
|
2437
1586
|
"mc-acc__collapse",
|
|
2438
1587
|
"text-renderer__content-wrapper",
|
|
2439
1588
|
b && "mc-acc__collapse--open",
|
|
2440
1589
|
a.contentWrapper
|
|
2441
1590
|
),
|
|
2442
|
-
children: /* @__PURE__ */
|
|
1591
|
+
children: /* @__PURE__ */ e.jsx("div", { className: "mc-acc__collapse-inner", children: /* @__PURE__ */ e.jsx(
|
|
2443
1592
|
"div",
|
|
2444
1593
|
{
|
|
2445
|
-
className:
|
|
1594
|
+
className: H(
|
|
2446
1595
|
"mc-acc__panel",
|
|
2447
1596
|
"text-renderer__content",
|
|
2448
1597
|
a.content
|
|
2449
1598
|
),
|
|
2450
|
-
children: /* @__PURE__ */
|
|
1599
|
+
children: /* @__PURE__ */ e.jsx("div", { className: H("text-renderer__scroll", a.scroll), children: /* @__PURE__ */ e.jsx("pre", { className: H("text-renderer__pre", a.pre), children: r }) })
|
|
2451
1600
|
}
|
|
2452
1601
|
) })
|
|
2453
1602
|
}
|
|
@@ -2456,52 +1605,52 @@ function hi({
|
|
|
2456
1605
|
}
|
|
2457
1606
|
);
|
|
2458
1607
|
}
|
|
2459
|
-
const
|
|
2460
|
-
function
|
|
1608
|
+
const it = (...t) => t.filter(Boolean).join(" ");
|
|
1609
|
+
function Po({
|
|
2461
1610
|
title: t,
|
|
2462
|
-
children:
|
|
2463
|
-
className:
|
|
2464
|
-
open:
|
|
2465
|
-
onToggle:
|
|
2466
|
-
classes:
|
|
2467
|
-
...
|
|
1611
|
+
children: r,
|
|
1612
|
+
className: i = "",
|
|
1613
|
+
open: s,
|
|
1614
|
+
onToggle: o,
|
|
1615
|
+
classes: _ = {},
|
|
1616
|
+
...m
|
|
2468
1617
|
}) {
|
|
2469
|
-
const [a,
|
|
2470
|
-
const
|
|
2471
|
-
|
|
1618
|
+
const [a, g] = E(!0), l = s !== void 0 ? s : a, u = () => {
|
|
1619
|
+
const p = !l;
|
|
1620
|
+
o ? o(p) : g(p);
|
|
2472
1621
|
};
|
|
2473
|
-
return /* @__PURE__ */
|
|
1622
|
+
return /* @__PURE__ */ e.jsxs(
|
|
2474
1623
|
"div",
|
|
2475
1624
|
{
|
|
2476
|
-
className:
|
|
1625
|
+
className: it(
|
|
2477
1626
|
"mc-acc",
|
|
2478
1627
|
"info-accordion",
|
|
2479
1628
|
l && "mc-acc--open",
|
|
2480
1629
|
l && "info-accordion--open",
|
|
2481
|
-
|
|
2482
|
-
|
|
1630
|
+
i,
|
|
1631
|
+
_.root
|
|
2483
1632
|
),
|
|
2484
|
-
...
|
|
1633
|
+
...m,
|
|
2485
1634
|
children: [
|
|
2486
|
-
/* @__PURE__ */
|
|
1635
|
+
/* @__PURE__ */ e.jsxs(
|
|
2487
1636
|
"button",
|
|
2488
1637
|
{
|
|
2489
1638
|
type: "button",
|
|
2490
|
-
onClick:
|
|
2491
|
-
className:
|
|
1639
|
+
onClick: u,
|
|
1640
|
+
className: it("info-accordion__toggle", _.toggle),
|
|
2492
1641
|
"aria-expanded": l,
|
|
2493
1642
|
children: [
|
|
2494
|
-
/* @__PURE__ */
|
|
2495
|
-
/* @__PURE__ */
|
|
1643
|
+
/* @__PURE__ */ e.jsx("span", { className: it("info-accordion__title", _.title), children: t }),
|
|
1644
|
+
/* @__PURE__ */ e.jsx(
|
|
2496
1645
|
"span",
|
|
2497
1646
|
{
|
|
2498
|
-
className:
|
|
1647
|
+
className: it(
|
|
2499
1648
|
"mc-acc__chevron",
|
|
2500
1649
|
"info-accordion__chevron",
|
|
2501
1650
|
l && "mc-acc__chevron--open",
|
|
2502
|
-
|
|
1651
|
+
_.chevron
|
|
2503
1652
|
),
|
|
2504
|
-
children: /* @__PURE__ */
|
|
1653
|
+
children: /* @__PURE__ */ e.jsx(
|
|
2505
1654
|
"svg",
|
|
2506
1655
|
{
|
|
2507
1656
|
viewBox: "0 0 20 20",
|
|
@@ -2510,7 +1659,7 @@ function fi({
|
|
|
2510
1659
|
strokeWidth: "2",
|
|
2511
1660
|
className: "mc-acc__chevron-icon",
|
|
2512
1661
|
"aria-hidden": "true",
|
|
2513
|
-
children: /* @__PURE__ */
|
|
1662
|
+
children: /* @__PURE__ */ e.jsx(
|
|
2514
1663
|
"path",
|
|
2515
1664
|
{
|
|
2516
1665
|
d: "M5 7.5 10 12.5 15 7.5",
|
|
@@ -2525,24 +1674,24 @@ function fi({
|
|
|
2525
1674
|
]
|
|
2526
1675
|
}
|
|
2527
1676
|
),
|
|
2528
|
-
/* @__PURE__ */
|
|
1677
|
+
/* @__PURE__ */ e.jsx(
|
|
2529
1678
|
"div",
|
|
2530
1679
|
{
|
|
2531
|
-
className:
|
|
1680
|
+
className: it(
|
|
2532
1681
|
"mc-acc__collapse",
|
|
2533
1682
|
"info-accordion__content-wrapper",
|
|
2534
1683
|
l && "mc-acc__collapse--open",
|
|
2535
|
-
|
|
1684
|
+
_.contentWrapper
|
|
2536
1685
|
),
|
|
2537
|
-
children: /* @__PURE__ */
|
|
1686
|
+
children: /* @__PURE__ */ e.jsx("div", { className: "mc-acc__collapse-inner", children: /* @__PURE__ */ e.jsx(
|
|
2538
1687
|
"div",
|
|
2539
1688
|
{
|
|
2540
|
-
className:
|
|
1689
|
+
className: it(
|
|
2541
1690
|
"mc-acc__panel",
|
|
2542
1691
|
"info-accordion__content",
|
|
2543
|
-
|
|
1692
|
+
_.content
|
|
2544
1693
|
),
|
|
2545
|
-
children:
|
|
1694
|
+
children: r
|
|
2546
1695
|
}
|
|
2547
1696
|
) })
|
|
2548
1697
|
}
|
|
@@ -2551,658 +1700,961 @@ function fi({
|
|
|
2551
1700
|
}
|
|
2552
1701
|
);
|
|
2553
1702
|
}
|
|
2554
|
-
function
|
|
2555
|
-
|
|
2556
|
-
}
|
|
2557
|
-
const je = {
|
|
2558
|
-
display: "inline-block",
|
|
2559
|
-
position: "relative"
|
|
2560
|
-
}, Re = {
|
|
2561
|
-
position: "absolute",
|
|
2562
|
-
top: "0.15em",
|
|
2563
|
-
left: 0,
|
|
2564
|
-
right: 0,
|
|
2565
|
-
borderTop: "0.1em solid black",
|
|
2566
|
-
height: 0,
|
|
2567
|
-
zIndex: 1
|
|
2568
|
-
};
|
|
2569
|
-
function yi(t) {
|
|
2570
|
-
let e = !1, o = !1;
|
|
2571
|
-
return /* @__PURE__ */ r.jsx("span", { children: t.split("").map((i, s) => i == "-" ? (o = !0, null) : i == "_" ? (e = !0, null) : o ? (o = !1, /* @__PURE__ */ r.jsxs("span", { style: je, children: [
|
|
2572
|
-
/* @__PURE__ */ r.jsx("span", { style: Re }),
|
|
2573
|
-
i
|
|
2574
|
-
] }, s)) : e ? (e = !1, /* @__PURE__ */ r.jsx("sub", { children: i }, s)) : i) });
|
|
2575
|
-
}
|
|
2576
|
-
function Pi(t, { maxEntries: e = 50 } = {}) {
|
|
2577
|
-
function o() {
|
|
1703
|
+
function je(t, { maxEntries: r = 50 } = {}) {
|
|
1704
|
+
function i() {
|
|
2578
1705
|
try {
|
|
2579
1706
|
const a = localStorage.getItem(t);
|
|
2580
1707
|
if (!a) return [];
|
|
2581
|
-
const
|
|
2582
|
-
return Array.isArray(
|
|
1708
|
+
const g = JSON.parse(a);
|
|
1709
|
+
return Array.isArray(g) ? g : [];
|
|
2583
1710
|
} catch {
|
|
2584
1711
|
return [];
|
|
2585
1712
|
}
|
|
2586
1713
|
}
|
|
2587
|
-
function
|
|
1714
|
+
function s(a) {
|
|
2588
1715
|
try {
|
|
2589
1716
|
return localStorage.setItem(
|
|
2590
1717
|
t,
|
|
2591
|
-
JSON.stringify(a.slice(0,
|
|
1718
|
+
JSON.stringify(a.slice(0, r))
|
|
2592
1719
|
), !0;
|
|
2593
1720
|
} catch {
|
|
2594
1721
|
return !1;
|
|
2595
1722
|
}
|
|
2596
1723
|
}
|
|
2597
|
-
function
|
|
2598
|
-
const
|
|
1724
|
+
function o(a) {
|
|
1725
|
+
const g = [a, ...i().filter((l) => l.id !== a.id)].slice(
|
|
2599
1726
|
0,
|
|
2600
|
-
|
|
1727
|
+
r
|
|
2601
1728
|
);
|
|
2602
|
-
return
|
|
1729
|
+
return s(g), g;
|
|
1730
|
+
}
|
|
1731
|
+
function _(a) {
|
|
1732
|
+
const g = i().filter((l) => l.id !== a);
|
|
1733
|
+
return s(g), g;
|
|
2603
1734
|
}
|
|
2604
|
-
function m(
|
|
2605
|
-
|
|
2606
|
-
return i(u), u;
|
|
1735
|
+
function m() {
|
|
1736
|
+
return s([]), [];
|
|
2607
1737
|
}
|
|
1738
|
+
return { load: i, save: s, add: o, remove: _, clear: m };
|
|
1739
|
+
}
|
|
1740
|
+
const pn = "structure", Ce = 1, vo = ({ structure: t, fileName: r }) => ({
|
|
1741
|
+
kind: pn,
|
|
1742
|
+
version: Ce,
|
|
1743
|
+
fileName: r,
|
|
1744
|
+
structure: mn(t)
|
|
1745
|
+
});
|
|
1746
|
+
function Re(t) {
|
|
1747
|
+
if ((t == null ? void 0 : t.kind) !== pn || !t.structure)
|
|
1748
|
+
throw new Error("this link does not hold a structure");
|
|
1749
|
+
return { structure: Tt(t.structure), fileName: t.fileName };
|
|
1750
|
+
}
|
|
1751
|
+
const tt = (...t) => t.filter(Boolean).join(" "), Ie = (t) => t.split(/[?#]/)[0].split("/").pop();
|
|
1752
|
+
function yo({
|
|
1753
|
+
onStructureParsed: t,
|
|
1754
|
+
validate: r,
|
|
1755
|
+
historyKey: i,
|
|
1756
|
+
historyTitle: s = "Previously uploaded structures",
|
|
1757
|
+
examples: o = [],
|
|
1758
|
+
examplesTitle: _ = "Otherwise, pick an example",
|
|
1759
|
+
label: m = "Upload a crystal structure",
|
|
1760
|
+
title: a = "Drop your crystal structure here",
|
|
1761
|
+
accept: g = ".cif,.xyz,.vasp,.poscar,.xsf,.in,.pwi",
|
|
1762
|
+
hint: l = "CIF, XYZ, POSCAR, XSF and Quantum ESPRESSO files",
|
|
1763
|
+
shareStore: u,
|
|
1764
|
+
className: p,
|
|
1765
|
+
classes: f = {},
|
|
1766
|
+
...b
|
|
1767
|
+
}) {
|
|
1768
|
+
const y = Yn(
|
|
1769
|
+
() => i ? je(i) : null,
|
|
1770
|
+
[i]
|
|
1771
|
+
), [R, A] = E(null), [j, I] = E(null), [O, z] = E(null), [dt, ot] = E(() => (y == null ? void 0 : y.load()) ?? []), [pt, ht] = E(null), [Y] = E(() => {
|
|
1772
|
+
try {
|
|
1773
|
+
const h = new URLSearchParams(window.location.search).get("fromURL"), v = h && dn(h);
|
|
1774
|
+
return v && (y == null ? void 0 : y.load().find((S) => S.fileName === v)) || null;
|
|
1775
|
+
} catch {
|
|
1776
|
+
return null;
|
|
1777
|
+
}
|
|
1778
|
+
}), kt = ({ fileName: h, format: v, structure: S }, { unique: B = !1 } = {}) => {
|
|
1779
|
+
y && (B && y.load().some((K) => K.fileName === h) || ot(
|
|
1780
|
+
y.add({
|
|
1781
|
+
id: crypto.randomUUID(),
|
|
1782
|
+
fileName: h,
|
|
1783
|
+
format: v,
|
|
1784
|
+
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1785
|
+
structure: mn(S)
|
|
1786
|
+
})
|
|
1787
|
+
));
|
|
1788
|
+
}, G = (h, { remember: v = !0, fromLink: S = !1 } = {}) => {
|
|
1789
|
+
z(null);
|
|
1790
|
+
try {
|
|
1791
|
+
r == null || r(h.structure);
|
|
1792
|
+
} catch (B) {
|
|
1793
|
+
return z((B == null ? void 0 : B.message) ?? String(B)), !1;
|
|
1794
|
+
}
|
|
1795
|
+
return S || u == null || u.syncAddressBar(null), t == null || t(h), v && kt(h, { unique: S }), !0;
|
|
1796
|
+
};
|
|
1797
|
+
nt(() => {
|
|
1798
|
+
Y && G(
|
|
1799
|
+
{
|
|
1800
|
+
format: Y.format,
|
|
1801
|
+
structure: Tt(Y.structure),
|
|
1802
|
+
fileName: Y.fileName
|
|
1803
|
+
},
|
|
1804
|
+
{ remember: !1, fromLink: !0 }
|
|
1805
|
+
);
|
|
1806
|
+
const h = u == null ? void 0 : u.idFromLocation();
|
|
1807
|
+
if (!h) return;
|
|
1808
|
+
let v = !1;
|
|
1809
|
+
return I("shared structure"), u.fetch(h).then((S) => {
|
|
1810
|
+
if (v) return;
|
|
1811
|
+
const { structure: B, fileName: K } = Re(S);
|
|
1812
|
+
G(
|
|
1813
|
+
{ format: "shared", structure: B, fileName: K ?? h, shareId: h },
|
|
1814
|
+
{ fromLink: !0 }
|
|
1815
|
+
);
|
|
1816
|
+
}).catch((S) => {
|
|
1817
|
+
v || z(`Loading shared structure failed: ${S.message}`);
|
|
1818
|
+
}).finally(() => {
|
|
1819
|
+
v || I(null);
|
|
1820
|
+
}), () => {
|
|
1821
|
+
v = !0;
|
|
1822
|
+
};
|
|
1823
|
+
}, []);
|
|
1824
|
+
const ft = async (h) => {
|
|
1825
|
+
if (h) {
|
|
1826
|
+
A(h), z(null), I(h.name);
|
|
1827
|
+
try {
|
|
1828
|
+
const v = await h.text(), { format: S, structure: B } = on(v, {
|
|
1829
|
+
fileName: h.name
|
|
1830
|
+
});
|
|
1831
|
+
G({ format: S, structure: B, fileName: h.name });
|
|
1832
|
+
} catch (v) {
|
|
1833
|
+
z((v == null ? void 0 : v.message) ?? String(v));
|
|
1834
|
+
} finally {
|
|
1835
|
+
I(null);
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
}, U = ({ structure: h, format: v, fileName: S }) => {
|
|
1839
|
+
G({ format: v, structure: h, fileName: S }, { fromLink: !0 });
|
|
1840
|
+
}, J = (h) => {
|
|
1841
|
+
try {
|
|
1842
|
+
G(
|
|
1843
|
+
{
|
|
1844
|
+
format: h.format,
|
|
1845
|
+
structure: Tt(h.structure),
|
|
1846
|
+
fileName: h.fileName
|
|
1847
|
+
},
|
|
1848
|
+
{ remember: !1 }
|
|
1849
|
+
);
|
|
1850
|
+
} catch (v) {
|
|
1851
|
+
z((v == null ? void 0 : v.message) ?? String(v));
|
|
1852
|
+
}
|
|
1853
|
+
}, Q = async (h) => {
|
|
1854
|
+
z(null), ht(h.url);
|
|
1855
|
+
try {
|
|
1856
|
+
const v = await fetch(h.url);
|
|
1857
|
+
if (!v.ok) throw new Error(`Failed to load example (${v.status})`);
|
|
1858
|
+
const S = h.fileName ?? Ie(h.url), { format: B, structure: K } = on(await v.text(), {
|
|
1859
|
+
fileName: S
|
|
1860
|
+
});
|
|
1861
|
+
G({ format: B, structure: K, fileName: S }, { remember: !1 });
|
|
1862
|
+
} catch (v) {
|
|
1863
|
+
z((v == null ? void 0 : v.message) ?? String(v));
|
|
1864
|
+
} finally {
|
|
1865
|
+
ht(null);
|
|
1866
|
+
}
|
|
1867
|
+
}, st = o.some((h) => h.family) ? Object.entries(
|
|
1868
|
+
o.reduce((h, v) => {
|
|
1869
|
+
var S;
|
|
1870
|
+
return (h[S = v.family ?? "Other"] || (h[S] = [])).push(v), h;
|
|
1871
|
+
}, {})
|
|
1872
|
+
) : null, at = (h) => /* @__PURE__ */ e.jsx("option", { value: h.url, children: h.label }, h.url);
|
|
1873
|
+
return /* @__PURE__ */ e.jsxs("div", { className: tt("mc-structure-upload", p, f.root), ...b, children: [
|
|
1874
|
+
/* @__PURE__ */ e.jsx("label", { className: tt("mc-structure-upload__label", f.label), children: m }),
|
|
1875
|
+
/* @__PURE__ */ e.jsx(
|
|
1876
|
+
ve,
|
|
1877
|
+
{
|
|
1878
|
+
accept: g,
|
|
1879
|
+
fileName: R == null ? void 0 : R.name,
|
|
1880
|
+
onFile: ft,
|
|
1881
|
+
title: a,
|
|
1882
|
+
hint: l
|
|
1883
|
+
}
|
|
1884
|
+
),
|
|
1885
|
+
j && /* @__PURE__ */ e.jsxs("p", { className: tt("mc-structure-upload__status", f.status), children: [
|
|
1886
|
+
/* @__PURE__ */ e.jsx("span", { className: "mc-structure-upload__spinner" }),
|
|
1887
|
+
"Loading ",
|
|
1888
|
+
j,
|
|
1889
|
+
"…"
|
|
1890
|
+
] }),
|
|
1891
|
+
O && /* @__PURE__ */ e.jsx("p", { className: tt("mc-structure-upload__error", f.error), children: O }),
|
|
1892
|
+
/* @__PURE__ */ e.jsx(
|
|
1893
|
+
Ae,
|
|
1894
|
+
{
|
|
1895
|
+
autoLoad: !Y,
|
|
1896
|
+
onLoaded: U,
|
|
1897
|
+
onError: (h) => z(h)
|
|
1898
|
+
}
|
|
1899
|
+
),
|
|
1900
|
+
o.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: tt("mc-structure-upload__examples", f.examples), children: [
|
|
1901
|
+
/* @__PURE__ */ e.jsx("p", { className: "mc-structure-upload__examples-title", children: _ }),
|
|
1902
|
+
/* @__PURE__ */ e.jsxs(
|
|
1903
|
+
"select",
|
|
1904
|
+
{
|
|
1905
|
+
value: "",
|
|
1906
|
+
onChange: (h) => {
|
|
1907
|
+
const v = o.find((S) => S.url === h.target.value);
|
|
1908
|
+
v && Q(v);
|
|
1909
|
+
},
|
|
1910
|
+
disabled: pt !== null,
|
|
1911
|
+
className: tt("mc-structure-upload__select", f.select),
|
|
1912
|
+
children: [
|
|
1913
|
+
/* @__PURE__ */ e.jsx("option", { value: "", children: pt ? "Loading example…" : "Select an example…" }),
|
|
1914
|
+
st ? st.map(([h, v]) => /* @__PURE__ */ e.jsx("optgroup", { label: h, children: v.map(at) }, h)) : o.map(at)
|
|
1915
|
+
]
|
|
1916
|
+
}
|
|
1917
|
+
)
|
|
1918
|
+
] }),
|
|
1919
|
+
dt.length > 0 && /* @__PURE__ */ e.jsx(
|
|
1920
|
+
be,
|
|
1921
|
+
{
|
|
1922
|
+
className: tt("mc-structure-upload__history", f.history),
|
|
1923
|
+
title: s,
|
|
1924
|
+
entries: dt,
|
|
1925
|
+
onLoad: J,
|
|
1926
|
+
onDelete: (h) => ot(y.remove(h)),
|
|
1927
|
+
onClear: () => ot(y.clear())
|
|
1928
|
+
}
|
|
1929
|
+
)
|
|
1930
|
+
] });
|
|
1931
|
+
}
|
|
1932
|
+
const gt = (...t) => t.filter(Boolean).join(" "), cn = { status: "idle" };
|
|
1933
|
+
function bo({
|
|
1934
|
+
store: t,
|
|
1935
|
+
data: r,
|
|
1936
|
+
toDocument: i = (u) => u,
|
|
1937
|
+
shareId: s,
|
|
1938
|
+
onShared: o,
|
|
1939
|
+
label: _ = "Share",
|
|
1940
|
+
busyLabel: m = "Sharing…",
|
|
1941
|
+
className: a,
|
|
1942
|
+
classes: g = {},
|
|
1943
|
+
...l
|
|
1944
|
+
}) {
|
|
1945
|
+
const [u, p] = E(cn), [f, b] = E(r);
|
|
1946
|
+
if (r !== f && (b(r), p(cn)), !(t != null && t.enabled) || !r) return null;
|
|
1947
|
+
const y = async () => {
|
|
1948
|
+
p({ status: "uploading" });
|
|
1949
|
+
try {
|
|
1950
|
+
const R = u.id ?? s ?? await t.upload(i(r));
|
|
1951
|
+
t.syncAddressBar(R), R !== s && (o == null || o(R));
|
|
1952
|
+
const A = t.linkFor(R);
|
|
1953
|
+
let j = !1;
|
|
1954
|
+
try {
|
|
1955
|
+
await navigator.clipboard.writeText(A), j = !0;
|
|
1956
|
+
} catch {
|
|
1957
|
+
}
|
|
1958
|
+
p({ status: "done", id: R, link: A, copied: j });
|
|
1959
|
+
} catch (R) {
|
|
1960
|
+
p({ status: "error", message: (R == null ? void 0 : R.message) ?? String(R) });
|
|
1961
|
+
}
|
|
1962
|
+
};
|
|
1963
|
+
return /* @__PURE__ */ e.jsxs("div", { className: gt("mc-share", a, g.root), ...l, children: [
|
|
1964
|
+
/* @__PURE__ */ e.jsx(
|
|
1965
|
+
"button",
|
|
1966
|
+
{
|
|
1967
|
+
type: "button",
|
|
1968
|
+
onClick: y,
|
|
1969
|
+
disabled: u.status === "uploading",
|
|
1970
|
+
className: gt("mc-share__button", g.button),
|
|
1971
|
+
children: u.status === "uploading" ? m : _
|
|
1972
|
+
}
|
|
1973
|
+
),
|
|
1974
|
+
u.status === "done" && /* @__PURE__ */ e.jsxs("span", { className: gt("mc-share__link", g.link), children: [
|
|
1975
|
+
u.copied ? "Link copied: " : "Link: ",
|
|
1976
|
+
/* @__PURE__ */ e.jsx("a", { href: u.link, children: u.link })
|
|
1977
|
+
] }),
|
|
1978
|
+
u.status === "error" && /* @__PURE__ */ e.jsxs("span", { className: gt("mc-share__error", g.error), children: [
|
|
1979
|
+
"Sharing failed: ",
|
|
1980
|
+
u.message
|
|
1981
|
+
] }),
|
|
1982
|
+
t.name !== "production" && /* @__PURE__ */ e.jsxs("span", { className: gt("mc-share__store", g.store), children: [
|
|
1983
|
+
"(",
|
|
1984
|
+
t.name,
|
|
1985
|
+
" share store)"
|
|
1986
|
+
] })
|
|
1987
|
+
] });
|
|
1988
|
+
}
|
|
1989
|
+
function xo(t) {
|
|
1990
|
+
return t.split(/(\d+)/).map((i, s) => i.match(/\d+/) ? /* @__PURE__ */ e.jsx("sub", { children: i }, s) : i);
|
|
1991
|
+
}
|
|
1992
|
+
const Se = {
|
|
1993
|
+
display: "inline-block",
|
|
1994
|
+
position: "relative"
|
|
1995
|
+
}, Ne = {
|
|
1996
|
+
position: "absolute",
|
|
1997
|
+
top: "0.15em",
|
|
1998
|
+
left: 0,
|
|
1999
|
+
right: 0,
|
|
2000
|
+
borderTop: "0.1em solid black",
|
|
2001
|
+
height: 0,
|
|
2002
|
+
zIndex: 1
|
|
2003
|
+
};
|
|
2004
|
+
function wo(t) {
|
|
2005
|
+
let r = !1, i = !1;
|
|
2006
|
+
return /* @__PURE__ */ e.jsx("span", { children: t.split("").map((s, o) => s == "-" ? (i = !0, null) : s == "_" ? (r = !0, null) : i ? (i = !1, /* @__PURE__ */ e.jsxs("span", { style: Se, children: [
|
|
2007
|
+
/* @__PURE__ */ e.jsx("span", { style: Ne }),
|
|
2008
|
+
s
|
|
2009
|
+
] }, o)) : r ? (r = !1, /* @__PURE__ */ e.jsx("sub", { children: s }, o)) : s) });
|
|
2010
|
+
}
|
|
2011
|
+
const Bt = {
|
|
2012
|
+
dev: "https://kv-store.dev.materialscloud.org",
|
|
2013
|
+
production: "https://kv-store.materialscloud.org"
|
|
2014
|
+
}, Fe = /^[A-Za-z0-9_-]+$/, ln = () => window.location.origin + window.location.pathname;
|
|
2015
|
+
function Ao(t) {
|
|
2016
|
+
const r = t ? Bt[t] ?? (/^https?:\/\//.test(t) ? t : null) : null;
|
|
2017
|
+
if (t && !r)
|
|
2018
|
+
throw new Error(
|
|
2019
|
+
`Unknown share store '${t}' (expected: ${Object.keys(Bt).join(", ")} or a URL)`
|
|
2020
|
+
);
|
|
2021
|
+
const i = r !== null, s = i ? Bt[t] ? t : r : null, o = i ? `${r.replace(/\/+$/, "")}/api/shares` : null;
|
|
2608
2022
|
function _() {
|
|
2609
|
-
|
|
2023
|
+
if (!i) return null;
|
|
2024
|
+
const p = [...new URLSearchParams(window.location.search)].find(
|
|
2025
|
+
([f, b]) => b === "" && Fe.test(f)
|
|
2026
|
+
);
|
|
2027
|
+
return p ? p[0] : null;
|
|
2028
|
+
}
|
|
2029
|
+
const m = (u) => `${ln()}?${u}`;
|
|
2030
|
+
function a(u) {
|
|
2031
|
+
if (!i) return;
|
|
2032
|
+
const p = u ? m(u) : ln();
|
|
2033
|
+
window.history.replaceState(null, "", p + window.location.hash);
|
|
2034
|
+
}
|
|
2035
|
+
async function g(u) {
|
|
2036
|
+
if (!i) throw new Error("sharing is not enabled");
|
|
2037
|
+
const p = await fetch(o, {
|
|
2038
|
+
method: "POST",
|
|
2039
|
+
headers: { "Content-Type": "application/json" },
|
|
2040
|
+
body: JSON.stringify(u)
|
|
2041
|
+
});
|
|
2042
|
+
if (p.status === 413) throw new Error("this data is too large to share");
|
|
2043
|
+
if (!p.ok) throw new Error(`share service returned ${p.status}`);
|
|
2044
|
+
const { id: f } = await p.json();
|
|
2045
|
+
return f;
|
|
2610
2046
|
}
|
|
2611
|
-
|
|
2047
|
+
async function l(u) {
|
|
2048
|
+
if (!i) throw new Error("sharing is not enabled");
|
|
2049
|
+
const p = await fetch(`${o}/${encodeURIComponent(u)}`);
|
|
2050
|
+
if (p.status === 404)
|
|
2051
|
+
throw new Error("shared data not found (links expire after 30 days)");
|
|
2052
|
+
if (!p.ok) throw new Error(`could not load shared data (${p.status})`);
|
|
2053
|
+
return p.json();
|
|
2054
|
+
}
|
|
2055
|
+
return {
|
|
2056
|
+
enabled: i,
|
|
2057
|
+
name: s,
|
|
2058
|
+
idFromLocation: _,
|
|
2059
|
+
linkFor: m,
|
|
2060
|
+
syncAddressBar: a,
|
|
2061
|
+
upload: g,
|
|
2062
|
+
fetch: l
|
|
2063
|
+
};
|
|
2612
2064
|
}
|
|
2613
|
-
function
|
|
2614
|
-
return Math.sqrt(t.reduce((
|
|
2065
|
+
function hn(t) {
|
|
2066
|
+
return Math.sqrt(t.reduce((r, i) => r + i * i, 0));
|
|
2615
2067
|
}
|
|
2616
|
-
function
|
|
2617
|
-
return t.reduce((
|
|
2068
|
+
function fn(t, r) {
|
|
2069
|
+
return t.reduce((i, s, o) => i + s * r[o], 0);
|
|
2618
2070
|
}
|
|
2619
|
-
function
|
|
2620
|
-
return t[0].map((
|
|
2071
|
+
function Ee(t) {
|
|
2072
|
+
return t[0].map((r, i) => t.map((s) => s[i]));
|
|
2621
2073
|
}
|
|
2622
|
-
function
|
|
2623
|
-
return t.map((
|
|
2074
|
+
function ze(t, r) {
|
|
2075
|
+
return t.map((i) => i.map((s) => s * r));
|
|
2624
2076
|
}
|
|
2625
|
-
function
|
|
2077
|
+
function Be(t) {
|
|
2626
2078
|
return Array.from(
|
|
2627
2079
|
{ length: t },
|
|
2628
|
-
(
|
|
2080
|
+
(r, i) => Array.from({ length: t }, (s, o) => i === o ? 1 : 0)
|
|
2629
2081
|
);
|
|
2630
2082
|
}
|
|
2631
|
-
function
|
|
2632
|
-
for (var
|
|
2633
|
-
|
|
2634
|
-
for (var
|
|
2635
|
-
for (var
|
|
2636
|
-
|
|
2637
|
-
|
|
2083
|
+
function Te(t, r) {
|
|
2084
|
+
for (var i = [], s = 0; s < t.length; s++) {
|
|
2085
|
+
i[s] = [];
|
|
2086
|
+
for (var o = 0; o < r[0].length; o++) {
|
|
2087
|
+
for (var _ = 0, m = 0; m < t[0].length; m++)
|
|
2088
|
+
_ += t[s][m] * r[m][o];
|
|
2089
|
+
i[s][o] = _;
|
|
2638
2090
|
}
|
|
2639
2091
|
}
|
|
2640
|
-
return
|
|
2092
|
+
return i;
|
|
2641
2093
|
}
|
|
2642
|
-
function
|
|
2643
|
-
const
|
|
2644
|
-
for (let
|
|
2645
|
-
for (let
|
|
2646
|
-
if (
|
|
2647
|
-
|
|
2094
|
+
function De(t) {
|
|
2095
|
+
const r = t.length, i = t.map((o) => hn(o)), s = Array.from({ length: r }, () => Array(r).fill(0));
|
|
2096
|
+
for (let o = 0; o < r; o++)
|
|
2097
|
+
for (let _ = 0; _ < r; _++) {
|
|
2098
|
+
if (o === _) {
|
|
2099
|
+
s[o][_] = 0;
|
|
2648
2100
|
continue;
|
|
2649
2101
|
}
|
|
2650
|
-
const
|
|
2651
|
-
if (a > 0 &&
|
|
2652
|
-
let l =
|
|
2102
|
+
const m = fn(t[o], t[_]), a = i[o], g = i[_];
|
|
2103
|
+
if (a > 0 && g > 0) {
|
|
2104
|
+
let l = m / (a * g);
|
|
2653
2105
|
l = Math.max(-1, Math.min(1, l));
|
|
2654
|
-
const
|
|
2655
|
-
|
|
2106
|
+
const u = Math.acos(l);
|
|
2107
|
+
s[o][_] = u * (180 / Math.PI);
|
|
2656
2108
|
} else
|
|
2657
|
-
|
|
2109
|
+
s[o][_] = null;
|
|
2658
2110
|
}
|
|
2659
|
-
return { lengths:
|
|
2111
|
+
return { lengths: i, angles: s };
|
|
2660
2112
|
}
|
|
2661
|
-
function
|
|
2662
|
-
const
|
|
2663
|
-
{ length:
|
|
2664
|
-
(
|
|
2113
|
+
function Oe(t) {
|
|
2114
|
+
const r = t.length, i = t.map((o) => o.slice()), s = Array.from(
|
|
2115
|
+
{ length: r },
|
|
2116
|
+
(o, _) => Array.from({ length: r }, (m, a) => _ === a ? 1 : 0)
|
|
2665
2117
|
);
|
|
2666
|
-
for (let
|
|
2667
|
-
let
|
|
2668
|
-
for (let a =
|
|
2669
|
-
Math.abs(
|
|
2670
|
-
if ([o
|
|
2118
|
+
for (let o = 0; o < r; o++) {
|
|
2119
|
+
let _ = o;
|
|
2120
|
+
for (let a = o + 1; a < r; a++)
|
|
2121
|
+
Math.abs(i[a][o]) > Math.abs(i[_][o]) && (_ = a);
|
|
2122
|
+
if ([i[o], i[_]] = [i[_], i[o]], [s[o], s[_]] = [s[_], s[o]], i[o][o] === 0)
|
|
2671
2123
|
throw new Error("Matrix is singular and cannot be inverted.");
|
|
2672
|
-
const
|
|
2673
|
-
for (let a = 0; a <
|
|
2674
|
-
o
|
|
2675
|
-
for (let a = 0; a <
|
|
2676
|
-
if (a ===
|
|
2677
|
-
const
|
|
2678
|
-
for (let l = 0; l <
|
|
2679
|
-
|
|
2124
|
+
const m = i[o][o];
|
|
2125
|
+
for (let a = 0; a < r; a++)
|
|
2126
|
+
i[o][a] /= m, s[o][a] /= m;
|
|
2127
|
+
for (let a = 0; a < r; a++) {
|
|
2128
|
+
if (a === o) continue;
|
|
2129
|
+
const g = i[a][o];
|
|
2130
|
+
for (let l = 0; l < r; l++)
|
|
2131
|
+
i[a][l] -= g * i[o][l], s[a][l] -= g * s[o][l];
|
|
2680
2132
|
}
|
|
2681
2133
|
}
|
|
2682
|
-
return
|
|
2134
|
+
return s;
|
|
2683
2135
|
}
|
|
2684
|
-
function
|
|
2685
|
-
const
|
|
2686
|
-
if (
|
|
2687
|
-
if (
|
|
2136
|
+
function Pn(t) {
|
|
2137
|
+
const r = t.length;
|
|
2138
|
+
if (r === 1) return t[0][0];
|
|
2139
|
+
if (r === 2)
|
|
2688
2140
|
return t[0][0] * t[1][1] - t[0][1] * t[1][0];
|
|
2689
|
-
let
|
|
2690
|
-
for (let
|
|
2691
|
-
const
|
|
2692
|
-
|
|
2141
|
+
let i = 0;
|
|
2142
|
+
for (let s = 0; s < r; s++) {
|
|
2143
|
+
const o = t.slice(1).map((m) => m.filter((a, g) => g !== s)), _ = s % 2 === 0 ? 1 : -1;
|
|
2144
|
+
i += _ * t[0][s] * Pn(o);
|
|
2693
2145
|
}
|
|
2694
|
-
return
|
|
2146
|
+
return i;
|
|
2695
2147
|
}
|
|
2696
|
-
const
|
|
2148
|
+
const ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2697
2149
|
__proto__: null,
|
|
2698
|
-
determinant:
|
|
2699
|
-
dot:
|
|
2700
|
-
getMatrixParams:
|
|
2701
|
-
identityMatrix:
|
|
2702
|
-
invertMatrix:
|
|
2703
|
-
multiplyMatrices:
|
|
2704
|
-
norm:
|
|
2705
|
-
scalarMultiply:
|
|
2706
|
-
transpose:
|
|
2707
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2150
|
+
determinant: Pn,
|
|
2151
|
+
dot: fn,
|
|
2152
|
+
getMatrixParams: De,
|
|
2153
|
+
identityMatrix: Be,
|
|
2154
|
+
invertMatrix: Oe,
|
|
2155
|
+
multiplyMatrices: Te,
|
|
2156
|
+
norm: hn,
|
|
2157
|
+
scalarMultiply: ze,
|
|
2158
|
+
transpose: Ee
|
|
2159
|
+
}, Symbol.toStringTag, { value: "Module" })), Ze = {
|
|
2708
2160
|
Z: 1,
|
|
2709
2161
|
mz: 1.00794
|
|
2710
2162
|
}, Me = {
|
|
2711
2163
|
Z: 2,
|
|
2712
2164
|
mz: 4.002602
|
|
2713
|
-
},
|
|
2165
|
+
}, Le = {
|
|
2714
2166
|
Z: 3,
|
|
2715
2167
|
mz: 6.941
|
|
2716
|
-
},
|
|
2168
|
+
}, He = {
|
|
2717
2169
|
Z: 4,
|
|
2718
2170
|
mz: 9.012182
|
|
2719
|
-
},
|
|
2171
|
+
}, Ue = {
|
|
2720
2172
|
Z: 5,
|
|
2721
2173
|
mz: 10.811
|
|
2722
|
-
},
|
|
2174
|
+
}, Je = {
|
|
2723
2175
|
Z: 6,
|
|
2724
2176
|
mz: 12.0107
|
|
2725
|
-
},
|
|
2177
|
+
}, Ve = {
|
|
2726
2178
|
Z: 7,
|
|
2727
2179
|
mz: 14.0067
|
|
2728
|
-
},
|
|
2180
|
+
}, Ye = {
|
|
2729
2181
|
Z: 8,
|
|
2730
2182
|
mz: 15.9994
|
|
2731
|
-
},
|
|
2183
|
+
}, Ge = {
|
|
2732
2184
|
Z: 9,
|
|
2733
2185
|
mz: 18.9984032
|
|
2734
|
-
},
|
|
2186
|
+
}, Ke = {
|
|
2735
2187
|
Z: 10,
|
|
2736
2188
|
mz: 20.1797
|
|
2737
|
-
},
|
|
2189
|
+
}, Qe = {
|
|
2738
2190
|
Z: 11,
|
|
2739
2191
|
mz: 22.98976928
|
|
2740
|
-
},
|
|
2192
|
+
}, We = {
|
|
2741
2193
|
Z: 12,
|
|
2742
2194
|
mz: 24.305
|
|
2743
|
-
},
|
|
2195
|
+
}, Xe = {
|
|
2744
2196
|
Z: 13,
|
|
2745
2197
|
mz: 26.9815386
|
|
2746
|
-
},
|
|
2198
|
+
}, qe = {
|
|
2747
2199
|
Z: 14,
|
|
2748
2200
|
mz: 28.0855
|
|
2749
|
-
},
|
|
2201
|
+
}, $e = {
|
|
2750
2202
|
Z: 15,
|
|
2751
2203
|
mz: 30.973762
|
|
2752
|
-
},
|
|
2204
|
+
}, tr = {
|
|
2753
2205
|
Z: 16,
|
|
2754
2206
|
mz: 32.065
|
|
2755
|
-
},
|
|
2207
|
+
}, nr = {
|
|
2756
2208
|
Z: 17,
|
|
2757
2209
|
mz: 35.453
|
|
2758
|
-
},
|
|
2210
|
+
}, er = {
|
|
2759
2211
|
Z: 18,
|
|
2760
2212
|
mz: 39.948
|
|
2761
|
-
},
|
|
2213
|
+
}, rr = {
|
|
2762
2214
|
Z: 19,
|
|
2763
2215
|
mz: 39.0983
|
|
2764
|
-
},
|
|
2216
|
+
}, ir = {
|
|
2765
2217
|
Z: 20,
|
|
2766
2218
|
mz: 40.078
|
|
2767
|
-
},
|
|
2219
|
+
}, or = {
|
|
2768
2220
|
Z: 21,
|
|
2769
2221
|
mz: 44.955912
|
|
2770
|
-
},
|
|
2222
|
+
}, sr = {
|
|
2771
2223
|
Z: 22,
|
|
2772
2224
|
mz: 47.867
|
|
2773
|
-
},
|
|
2225
|
+
}, ar = {
|
|
2774
2226
|
Z: 23,
|
|
2775
2227
|
mz: 50.9415
|
|
2776
|
-
},
|
|
2228
|
+
}, cr = {
|
|
2777
2229
|
Z: 24,
|
|
2778
2230
|
mz: 51.9961
|
|
2779
|
-
},
|
|
2231
|
+
}, lr = {
|
|
2780
2232
|
Z: 25,
|
|
2781
2233
|
mz: 54.938045
|
|
2782
|
-
},
|
|
2234
|
+
}, _r = {
|
|
2783
2235
|
Z: 26,
|
|
2784
2236
|
mz: 55.845
|
|
2785
2237
|
}, mr = {
|
|
2786
2238
|
Z: 27,
|
|
2787
2239
|
mz: 58.933195
|
|
2788
|
-
},
|
|
2240
|
+
}, gr = {
|
|
2789
2241
|
Z: 28,
|
|
2790
2242
|
mz: 58.6934
|
|
2791
|
-
},
|
|
2243
|
+
}, ur = {
|
|
2792
2244
|
Z: 29,
|
|
2793
2245
|
mz: 63.546
|
|
2794
|
-
},
|
|
2246
|
+
}, dr = {
|
|
2795
2247
|
Z: 30,
|
|
2796
2248
|
mz: 65.409
|
|
2797
|
-
},
|
|
2249
|
+
}, pr = {
|
|
2798
2250
|
Z: 31,
|
|
2799
2251
|
mz: 69.723
|
|
2800
|
-
},
|
|
2252
|
+
}, hr = {
|
|
2801
2253
|
Z: 32,
|
|
2802
2254
|
mz: 72.64
|
|
2803
|
-
},
|
|
2255
|
+
}, fr = {
|
|
2804
2256
|
Z: 33,
|
|
2805
2257
|
mz: 74.9216
|
|
2806
|
-
},
|
|
2258
|
+
}, Pr = {
|
|
2807
2259
|
Z: 34,
|
|
2808
2260
|
mz: 78.96
|
|
2809
|
-
},
|
|
2261
|
+
}, vr = {
|
|
2810
2262
|
Z: 35,
|
|
2811
2263
|
mz: 79.904
|
|
2812
|
-
},
|
|
2264
|
+
}, yr = {
|
|
2813
2265
|
Z: 36,
|
|
2814
2266
|
mz: 83.798
|
|
2815
2267
|
}, br = {
|
|
2816
2268
|
Z: 37,
|
|
2817
2269
|
mz: 85.4678
|
|
2818
|
-
},
|
|
2270
|
+
}, xr = {
|
|
2819
2271
|
Z: 38,
|
|
2820
2272
|
mz: 87.62
|
|
2821
|
-
},
|
|
2273
|
+
}, wr = {
|
|
2822
2274
|
Z: 39,
|
|
2823
2275
|
mz: 88.90585
|
|
2824
|
-
},
|
|
2276
|
+
}, Ar = {
|
|
2825
2277
|
Z: 40,
|
|
2826
2278
|
mz: 91.224
|
|
2827
|
-
},
|
|
2279
|
+
}, kr = {
|
|
2828
2280
|
Z: 41,
|
|
2829
2281
|
mz: 92.90638
|
|
2830
|
-
},
|
|
2282
|
+
}, jr = {
|
|
2831
2283
|
Z: 42,
|
|
2832
2284
|
mz: 95.94
|
|
2833
|
-
},
|
|
2285
|
+
}, Cr = {
|
|
2834
2286
|
Z: 43,
|
|
2835
2287
|
mz: 98
|
|
2836
|
-
},
|
|
2288
|
+
}, Rr = {
|
|
2837
2289
|
Z: 44,
|
|
2838
2290
|
mz: 101.07
|
|
2839
|
-
},
|
|
2291
|
+
}, Ir = {
|
|
2840
2292
|
Z: 45,
|
|
2841
2293
|
mz: 102.9055
|
|
2842
|
-
},
|
|
2294
|
+
}, Sr = {
|
|
2843
2295
|
Z: 46,
|
|
2844
2296
|
mz: 106.42
|
|
2845
|
-
},
|
|
2297
|
+
}, Nr = {
|
|
2846
2298
|
Z: 47,
|
|
2847
2299
|
mz: 107.8682
|
|
2848
|
-
},
|
|
2300
|
+
}, Fr = {
|
|
2849
2301
|
Z: 48,
|
|
2850
2302
|
mz: 112.411
|
|
2851
|
-
},
|
|
2303
|
+
}, Er = {
|
|
2852
2304
|
Z: 49,
|
|
2853
2305
|
mz: 114.818
|
|
2854
|
-
},
|
|
2306
|
+
}, zr = {
|
|
2855
2307
|
Z: 50,
|
|
2856
2308
|
mz: 118.71
|
|
2857
|
-
},
|
|
2309
|
+
}, Br = {
|
|
2858
2310
|
Z: 51,
|
|
2859
2311
|
mz: 121.76
|
|
2860
|
-
},
|
|
2312
|
+
}, Tr = {
|
|
2861
2313
|
Z: 52,
|
|
2862
2314
|
mz: 127.6
|
|
2863
|
-
},
|
|
2315
|
+
}, Dr = {
|
|
2864
2316
|
Z: 53,
|
|
2865
2317
|
mz: 126.90447
|
|
2866
|
-
},
|
|
2318
|
+
}, Or = {
|
|
2867
2319
|
Z: 54,
|
|
2868
2320
|
mz: 131.293
|
|
2869
|
-
},
|
|
2321
|
+
}, Zr = {
|
|
2870
2322
|
Z: 55,
|
|
2871
2323
|
mz: 132.9054519
|
|
2872
2324
|
}, Mr = {
|
|
2873
2325
|
Z: 56,
|
|
2874
2326
|
mz: 137.327
|
|
2875
|
-
},
|
|
2327
|
+
}, Lr = {
|
|
2876
2328
|
Z: 57,
|
|
2877
2329
|
mz: 138.90547
|
|
2878
|
-
},
|
|
2330
|
+
}, Hr = {
|
|
2879
2331
|
Z: 58,
|
|
2880
2332
|
mz: 140.116
|
|
2881
|
-
},
|
|
2333
|
+
}, Ur = {
|
|
2882
2334
|
Z: 59,
|
|
2883
2335
|
mz: 140.90765
|
|
2884
|
-
},
|
|
2336
|
+
}, Jr = {
|
|
2885
2337
|
Z: 60,
|
|
2886
2338
|
mz: 144.242
|
|
2887
|
-
},
|
|
2339
|
+
}, Vr = {
|
|
2888
2340
|
Z: 61,
|
|
2889
2341
|
mz: 145
|
|
2890
|
-
},
|
|
2342
|
+
}, Yr = {
|
|
2891
2343
|
Z: 62,
|
|
2892
2344
|
mz: 150.36
|
|
2893
|
-
},
|
|
2345
|
+
}, Gr = {
|
|
2894
2346
|
Z: 63,
|
|
2895
2347
|
mz: 151.964
|
|
2896
|
-
},
|
|
2348
|
+
}, Kr = {
|
|
2897
2349
|
Z: 64,
|
|
2898
2350
|
mz: 157.25
|
|
2899
|
-
},
|
|
2351
|
+
}, Qr = {
|
|
2900
2352
|
Z: 65,
|
|
2901
2353
|
mz: 158.92535
|
|
2902
|
-
},
|
|
2354
|
+
}, Wr = {
|
|
2903
2355
|
Z: 66,
|
|
2904
2356
|
mz: 162.5
|
|
2905
|
-
},
|
|
2357
|
+
}, Xr = {
|
|
2906
2358
|
Z: 67,
|
|
2907
2359
|
mz: 164.93032
|
|
2908
|
-
},
|
|
2360
|
+
}, qr = {
|
|
2909
2361
|
Z: 68,
|
|
2910
2362
|
mz: 167.259
|
|
2911
|
-
},
|
|
2363
|
+
}, $r = {
|
|
2912
2364
|
Z: 69,
|
|
2913
2365
|
mz: 168.93421
|
|
2914
|
-
},
|
|
2366
|
+
}, ti = {
|
|
2915
2367
|
Z: 70,
|
|
2916
2368
|
mz: 173.04
|
|
2917
|
-
},
|
|
2369
|
+
}, ni = {
|
|
2918
2370
|
Z: 71,
|
|
2919
2371
|
mz: 174.967
|
|
2920
|
-
},
|
|
2372
|
+
}, ei = {
|
|
2921
2373
|
Z: 72,
|
|
2922
2374
|
mz: 178.49
|
|
2923
|
-
},
|
|
2375
|
+
}, ri = {
|
|
2924
2376
|
Z: 73,
|
|
2925
2377
|
mz: 180.94788
|
|
2926
|
-
},
|
|
2378
|
+
}, ii = {
|
|
2927
2379
|
Z: 74,
|
|
2928
2380
|
mz: 183.84
|
|
2929
|
-
},
|
|
2381
|
+
}, oi = {
|
|
2930
2382
|
Z: 75,
|
|
2931
2383
|
mz: 186.207
|
|
2932
|
-
},
|
|
2384
|
+
}, si = {
|
|
2933
2385
|
Z: 76,
|
|
2934
2386
|
mz: 190.23
|
|
2935
|
-
},
|
|
2387
|
+
}, ai = {
|
|
2936
2388
|
Z: 77,
|
|
2937
2389
|
mz: 192.217
|
|
2938
|
-
},
|
|
2390
|
+
}, ci = {
|
|
2939
2391
|
Z: 78,
|
|
2940
2392
|
mz: 195.084
|
|
2941
|
-
},
|
|
2393
|
+
}, li = {
|
|
2942
2394
|
Z: 79,
|
|
2943
2395
|
mz: 196.966569
|
|
2944
|
-
},
|
|
2396
|
+
}, _i = {
|
|
2945
2397
|
Z: 80,
|
|
2946
2398
|
mz: 200.59
|
|
2947
|
-
},
|
|
2399
|
+
}, mi = {
|
|
2948
2400
|
Z: 81,
|
|
2949
2401
|
mz: 204.3833
|
|
2950
|
-
},
|
|
2402
|
+
}, gi = {
|
|
2951
2403
|
Z: 82,
|
|
2952
2404
|
mz: 207.2
|
|
2953
|
-
},
|
|
2405
|
+
}, ui = {
|
|
2954
2406
|
Z: 83,
|
|
2955
2407
|
mz: 208.9804
|
|
2956
|
-
},
|
|
2408
|
+
}, di = {
|
|
2957
2409
|
Z: 84,
|
|
2958
2410
|
mz: 210
|
|
2959
|
-
},
|
|
2411
|
+
}, pi = {
|
|
2960
2412
|
Z: 85,
|
|
2961
2413
|
mz: 210
|
|
2962
|
-
},
|
|
2414
|
+
}, hi = {
|
|
2963
2415
|
Z: 86,
|
|
2964
2416
|
mz: 220
|
|
2965
|
-
},
|
|
2417
|
+
}, fi = {
|
|
2966
2418
|
Z: 87,
|
|
2967
2419
|
mz: 223
|
|
2968
|
-
},
|
|
2420
|
+
}, Pi = {
|
|
2969
2421
|
Z: 88,
|
|
2970
2422
|
mz: 226
|
|
2971
|
-
},
|
|
2423
|
+
}, vi = {
|
|
2972
2424
|
Z: 89,
|
|
2973
2425
|
mz: 227
|
|
2974
|
-
},
|
|
2426
|
+
}, yi = {
|
|
2975
2427
|
Z: 90,
|
|
2976
2428
|
mz: 232.03806
|
|
2977
|
-
},
|
|
2429
|
+
}, bi = {
|
|
2978
2430
|
Z: 91,
|
|
2979
2431
|
mz: 231.03588
|
|
2980
|
-
},
|
|
2432
|
+
}, xi = {
|
|
2981
2433
|
Z: 92,
|
|
2982
2434
|
mz: 238.02891
|
|
2983
|
-
},
|
|
2435
|
+
}, wi = {
|
|
2984
2436
|
Z: 93,
|
|
2985
2437
|
mz: 237
|
|
2986
|
-
},
|
|
2438
|
+
}, Ai = {
|
|
2987
2439
|
Z: 94,
|
|
2988
2440
|
mz: 244
|
|
2989
|
-
},
|
|
2441
|
+
}, ki = {
|
|
2990
2442
|
Z: 95,
|
|
2991
2443
|
mz: 243
|
|
2992
|
-
},
|
|
2444
|
+
}, ji = {
|
|
2993
2445
|
Z: 96,
|
|
2994
2446
|
mz: 247
|
|
2995
|
-
},
|
|
2447
|
+
}, Ci = {
|
|
2996
2448
|
Z: 97,
|
|
2997
2449
|
mz: 247
|
|
2998
|
-
},
|
|
2450
|
+
}, Ri = {
|
|
2999
2451
|
Z: 98,
|
|
3000
2452
|
mz: 251
|
|
3001
|
-
},
|
|
2453
|
+
}, Ii = {
|
|
3002
2454
|
Z: 99,
|
|
3003
2455
|
mz: 252
|
|
3004
|
-
},
|
|
2456
|
+
}, Si = {
|
|
3005
2457
|
Z: 100,
|
|
3006
2458
|
mz: 257
|
|
3007
|
-
},
|
|
2459
|
+
}, Ni = {
|
|
3008
2460
|
Z: 101,
|
|
3009
2461
|
mz: 258
|
|
3010
|
-
},
|
|
2462
|
+
}, Fi = {
|
|
3011
2463
|
Z: 102,
|
|
3012
2464
|
mz: 259
|
|
3013
|
-
},
|
|
2465
|
+
}, Ei = {
|
|
3014
2466
|
Z: 103,
|
|
3015
2467
|
mz: 262
|
|
3016
|
-
},
|
|
2468
|
+
}, zi = {
|
|
3017
2469
|
Z: 104,
|
|
3018
2470
|
mz: 267
|
|
3019
|
-
},
|
|
2471
|
+
}, Bi = {
|
|
3020
2472
|
Z: 105,
|
|
3021
2473
|
mz: 268
|
|
3022
|
-
},
|
|
2474
|
+
}, Ti = {
|
|
3023
2475
|
Z: 106,
|
|
3024
2476
|
mz: 269
|
|
3025
|
-
},
|
|
2477
|
+
}, Di = {
|
|
3026
2478
|
Z: 107,
|
|
3027
2479
|
mz: 270
|
|
3028
|
-
},
|
|
2480
|
+
}, Oi = {
|
|
3029
2481
|
Z: 108,
|
|
3030
2482
|
mz: 270
|
|
3031
|
-
},
|
|
2483
|
+
}, Zi = {
|
|
3032
2484
|
Z: 109,
|
|
3033
2485
|
mz: 278
|
|
3034
|
-
},
|
|
2486
|
+
}, Mi = {
|
|
3035
2487
|
Z: 110,
|
|
3036
2488
|
mz: 281
|
|
3037
|
-
},
|
|
2489
|
+
}, Li = {
|
|
3038
2490
|
Z: 111,
|
|
3039
2491
|
mz: 282
|
|
3040
|
-
},
|
|
2492
|
+
}, Hi = {
|
|
3041
2493
|
Z: 112,
|
|
3042
2494
|
mz: 285
|
|
3043
|
-
},
|
|
2495
|
+
}, Ui = {
|
|
3044
2496
|
Z: 113,
|
|
3045
2497
|
mz: 286
|
|
3046
|
-
},
|
|
2498
|
+
}, Ji = {
|
|
3047
2499
|
Z: 114,
|
|
3048
2500
|
mz: 289
|
|
3049
|
-
},
|
|
2501
|
+
}, Vi = {
|
|
3050
2502
|
Z: 115,
|
|
3051
2503
|
mz: 290
|
|
3052
|
-
},
|
|
2504
|
+
}, Yi = {
|
|
3053
2505
|
Z: 116,
|
|
3054
2506
|
mz: 293
|
|
3055
|
-
},
|
|
2507
|
+
}, Gi = {
|
|
3056
2508
|
Z: 117,
|
|
3057
2509
|
mz: 294
|
|
3058
|
-
},
|
|
2510
|
+
}, Ki = {
|
|
3059
2511
|
Z: 118,
|
|
3060
2512
|
mz: 294
|
|
3061
|
-
},
|
|
3062
|
-
H:
|
|
2513
|
+
}, Qi = {
|
|
2514
|
+
H: Ze,
|
|
3063
2515
|
He: Me,
|
|
3064
|
-
Li:
|
|
3065
|
-
Be:
|
|
3066
|
-
B:
|
|
3067
|
-
C:
|
|
3068
|
-
N:
|
|
3069
|
-
O:
|
|
3070
|
-
F:
|
|
3071
|
-
Ne:
|
|
3072
|
-
Na:
|
|
3073
|
-
Mg:
|
|
3074
|
-
Al:
|
|
3075
|
-
Si:
|
|
3076
|
-
P:
|
|
3077
|
-
S:
|
|
3078
|
-
Cl:
|
|
3079
|
-
Ar:
|
|
3080
|
-
K:
|
|
3081
|
-
Ca:
|
|
3082
|
-
Sc:
|
|
3083
|
-
Ti:
|
|
3084
|
-
V:
|
|
3085
|
-
Cr:
|
|
3086
|
-
Mn:
|
|
3087
|
-
Fe:
|
|
2516
|
+
Li: Le,
|
|
2517
|
+
Be: He,
|
|
2518
|
+
B: Ue,
|
|
2519
|
+
C: Je,
|
|
2520
|
+
N: Ve,
|
|
2521
|
+
O: Ye,
|
|
2522
|
+
F: Ge,
|
|
2523
|
+
Ne: Ke,
|
|
2524
|
+
Na: Qe,
|
|
2525
|
+
Mg: We,
|
|
2526
|
+
Al: Xe,
|
|
2527
|
+
Si: qe,
|
|
2528
|
+
P: $e,
|
|
2529
|
+
S: tr,
|
|
2530
|
+
Cl: nr,
|
|
2531
|
+
Ar: er,
|
|
2532
|
+
K: rr,
|
|
2533
|
+
Ca: ir,
|
|
2534
|
+
Sc: or,
|
|
2535
|
+
Ti: sr,
|
|
2536
|
+
V: ar,
|
|
2537
|
+
Cr: cr,
|
|
2538
|
+
Mn: lr,
|
|
2539
|
+
Fe: _r,
|
|
3088
2540
|
Co: mr,
|
|
3089
|
-
Ni:
|
|
3090
|
-
Cu:
|
|
3091
|
-
Zn:
|
|
3092
|
-
Ga:
|
|
3093
|
-
Ge:
|
|
3094
|
-
As:
|
|
3095
|
-
Se:
|
|
3096
|
-
Br:
|
|
3097
|
-
Kr:
|
|
2541
|
+
Ni: gr,
|
|
2542
|
+
Cu: ur,
|
|
2543
|
+
Zn: dr,
|
|
2544
|
+
Ga: pr,
|
|
2545
|
+
Ge: hr,
|
|
2546
|
+
As: fr,
|
|
2547
|
+
Se: Pr,
|
|
2548
|
+
Br: vr,
|
|
2549
|
+
Kr: yr,
|
|
3098
2550
|
Rb: br,
|
|
3099
|
-
Sr:
|
|
3100
|
-
Y:
|
|
3101
|
-
Zr:
|
|
3102
|
-
Nb:
|
|
3103
|
-
Mo:
|
|
3104
|
-
Tc:
|
|
3105
|
-
Ru:
|
|
3106
|
-
Rh:
|
|
3107
|
-
Pd:
|
|
3108
|
-
Ag:
|
|
3109
|
-
Cd:
|
|
3110
|
-
In:
|
|
3111
|
-
Sn:
|
|
3112
|
-
Sb:
|
|
3113
|
-
Te:
|
|
3114
|
-
I:
|
|
3115
|
-
Xe:
|
|
3116
|
-
Cs:
|
|
2551
|
+
Sr: xr,
|
|
2552
|
+
Y: wr,
|
|
2553
|
+
Zr: Ar,
|
|
2554
|
+
Nb: kr,
|
|
2555
|
+
Mo: jr,
|
|
2556
|
+
Tc: Cr,
|
|
2557
|
+
Ru: Rr,
|
|
2558
|
+
Rh: Ir,
|
|
2559
|
+
Pd: Sr,
|
|
2560
|
+
Ag: Nr,
|
|
2561
|
+
Cd: Fr,
|
|
2562
|
+
In: Er,
|
|
2563
|
+
Sn: zr,
|
|
2564
|
+
Sb: Br,
|
|
2565
|
+
Te: Tr,
|
|
2566
|
+
I: Dr,
|
|
2567
|
+
Xe: Or,
|
|
2568
|
+
Cs: Zr,
|
|
3117
2569
|
Ba: Mr,
|
|
3118
|
-
La:
|
|
3119
|
-
Ce:
|
|
3120
|
-
Pr:
|
|
3121
|
-
Nd:
|
|
3122
|
-
Pm:
|
|
3123
|
-
Sm:
|
|
3124
|
-
Eu:
|
|
3125
|
-
Gd:
|
|
3126
|
-
Tb:
|
|
3127
|
-
Dy:
|
|
3128
|
-
Ho:
|
|
3129
|
-
Er:
|
|
3130
|
-
Tm:
|
|
3131
|
-
Yb:
|
|
3132
|
-
Lu:
|
|
3133
|
-
Hf:
|
|
3134
|
-
Ta:
|
|
3135
|
-
W:
|
|
3136
|
-
Re:
|
|
3137
|
-
Os:
|
|
3138
|
-
Ir:
|
|
3139
|
-
Pt:
|
|
3140
|
-
Au:
|
|
3141
|
-
Hg:
|
|
3142
|
-
Tl:
|
|
3143
|
-
Pb:
|
|
3144
|
-
Bi:
|
|
3145
|
-
Po:
|
|
3146
|
-
At:
|
|
3147
|
-
Rn:
|
|
3148
|
-
Fr:
|
|
3149
|
-
Ra:
|
|
3150
|
-
Ac:
|
|
3151
|
-
Th:
|
|
3152
|
-
Pa:
|
|
3153
|
-
U:
|
|
3154
|
-
Np:
|
|
3155
|
-
Pu:
|
|
3156
|
-
Am:
|
|
3157
|
-
Cm:
|
|
3158
|
-
Bk:
|
|
3159
|
-
Cf:
|
|
3160
|
-
Es:
|
|
3161
|
-
Fm:
|
|
3162
|
-
Md:
|
|
3163
|
-
No:
|
|
3164
|
-
Lr:
|
|
3165
|
-
Rf:
|
|
3166
|
-
Db:
|
|
3167
|
-
Sg:
|
|
3168
|
-
Bh:
|
|
3169
|
-
Hs:
|
|
3170
|
-
Mt:
|
|
3171
|
-
Ds:
|
|
3172
|
-
Rg:
|
|
3173
|
-
Cn:
|
|
3174
|
-
Nh:
|
|
3175
|
-
Fl:
|
|
3176
|
-
Mc:
|
|
3177
|
-
Lv:
|
|
3178
|
-
Ts:
|
|
3179
|
-
Og:
|
|
2570
|
+
La: Lr,
|
|
2571
|
+
Ce: Hr,
|
|
2572
|
+
Pr: Ur,
|
|
2573
|
+
Nd: Jr,
|
|
2574
|
+
Pm: Vr,
|
|
2575
|
+
Sm: Yr,
|
|
2576
|
+
Eu: Gr,
|
|
2577
|
+
Gd: Kr,
|
|
2578
|
+
Tb: Qr,
|
|
2579
|
+
Dy: Wr,
|
|
2580
|
+
Ho: Xr,
|
|
2581
|
+
Er: qr,
|
|
2582
|
+
Tm: $r,
|
|
2583
|
+
Yb: ti,
|
|
2584
|
+
Lu: ni,
|
|
2585
|
+
Hf: ei,
|
|
2586
|
+
Ta: ri,
|
|
2587
|
+
W: ii,
|
|
2588
|
+
Re: oi,
|
|
2589
|
+
Os: si,
|
|
2590
|
+
Ir: ai,
|
|
2591
|
+
Pt: ci,
|
|
2592
|
+
Au: li,
|
|
2593
|
+
Hg: _i,
|
|
2594
|
+
Tl: mi,
|
|
2595
|
+
Pb: gi,
|
|
2596
|
+
Bi: ui,
|
|
2597
|
+
Po: di,
|
|
2598
|
+
At: pi,
|
|
2599
|
+
Rn: hi,
|
|
2600
|
+
Fr: fi,
|
|
2601
|
+
Ra: Pi,
|
|
2602
|
+
Ac: vi,
|
|
2603
|
+
Th: yi,
|
|
2604
|
+
Pa: bi,
|
|
2605
|
+
U: xi,
|
|
2606
|
+
Np: wi,
|
|
2607
|
+
Pu: Ai,
|
|
2608
|
+
Am: ki,
|
|
2609
|
+
Cm: ji,
|
|
2610
|
+
Bk: Ci,
|
|
2611
|
+
Cf: Ri,
|
|
2612
|
+
Es: Ii,
|
|
2613
|
+
Fm: Si,
|
|
2614
|
+
Md: Ni,
|
|
2615
|
+
No: Fi,
|
|
2616
|
+
Lr: Ei,
|
|
2617
|
+
Rf: zi,
|
|
2618
|
+
Db: Bi,
|
|
2619
|
+
Sg: Ti,
|
|
2620
|
+
Bh: Di,
|
|
2621
|
+
Hs: Oi,
|
|
2622
|
+
Mt: Zi,
|
|
2623
|
+
Ds: Mi,
|
|
2624
|
+
Rg: Li,
|
|
2625
|
+
Cn: Hi,
|
|
2626
|
+
Nh: Ui,
|
|
2627
|
+
Fl: Ji,
|
|
2628
|
+
Mc: Vi,
|
|
2629
|
+
Lv: Yi,
|
|
2630
|
+
Ts: Gi,
|
|
2631
|
+
Og: Ki
|
|
3180
2632
|
};
|
|
3181
|
-
function
|
|
3182
|
-
var
|
|
3183
|
-
return
|
|
3184
|
-
let
|
|
3185
|
-
|
|
3186
|
-
}),
|
|
2633
|
+
function Wi(t) {
|
|
2634
|
+
var r = t.split(/(?=[A-Z])/), i = 0;
|
|
2635
|
+
return r.forEach((s) => {
|
|
2636
|
+
let o = s.match(/\d+/), _ = o == null ? 1 : parseInt(o[0]);
|
|
2637
|
+
i += _;
|
|
2638
|
+
}), i;
|
|
3187
2639
|
}
|
|
3188
|
-
function
|
|
2640
|
+
function Xi(t) {
|
|
3189
2641
|
return t.split(/(?=[A-Z])/).length;
|
|
3190
2642
|
}
|
|
3191
|
-
function
|
|
3192
|
-
var
|
|
3193
|
-
let
|
|
3194
|
-
return
|
|
2643
|
+
function qi(t, r) {
|
|
2644
|
+
var i = t.split(/(?=[A-Z])/);
|
|
2645
|
+
let s = 0;
|
|
2646
|
+
return i.forEach((o) => {
|
|
3195
2647
|
var l;
|
|
3196
|
-
const
|
|
3197
|
-
|
|
3198
|
-
}), Math.round(
|
|
2648
|
+
const _ = o.match(/([a-zA-Z]+)(\d*)/), m = _[1], a = parseInt(_[2] || "1"), g = ((l = Qi[m]) == null ? void 0 : l.mz) || 0;
|
|
2649
|
+
s += g * a;
|
|
2650
|
+
}), Math.round(s * 1e4 / (r.value * 6.0223));
|
|
3199
2651
|
}
|
|
3200
|
-
const
|
|
2652
|
+
const jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3201
2653
|
__proto__: null,
|
|
3202
|
-
calculateDensity:
|
|
3203
|
-
countNumberOfAtoms:
|
|
3204
|
-
countNumberOfElements:
|
|
3205
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2654
|
+
calculateDensity: qi,
|
|
2655
|
+
countNumberOfAtoms: Wi,
|
|
2656
|
+
countNumberOfElements: Xi
|
|
2657
|
+
}, Symbol.toStringTag, { value: "Module" })), Ot = {
|
|
3206
2658
|
1: {
|
|
3207
2659
|
pg_int: "1",
|
|
3208
2660
|
sg_int: "P1",
|
|
@@ -4353,14 +3805,14 @@ const xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4353
3805
|
sg_int: "Ia-3d",
|
|
4354
3806
|
sg_int_short: "Ia-3d"
|
|
4355
3807
|
}
|
|
4356
|
-
},
|
|
3808
|
+
}, Lt = {
|
|
4357
3809
|
a: "triclinic",
|
|
4358
3810
|
m: "monoclinic",
|
|
4359
3811
|
o: "orthorhombic",
|
|
4360
3812
|
t: "tetragonal",
|
|
4361
3813
|
h: "hexagonal",
|
|
4362
3814
|
c: "cubic"
|
|
4363
|
-
},
|
|
3815
|
+
}, $i = {
|
|
4364
3816
|
aP: "triclinic",
|
|
4365
3817
|
mP: "simple monoclinic",
|
|
4366
3818
|
mS: "base-centered monoclinic",
|
|
@@ -4376,39 +3828,39 @@ const xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4376
3828
|
cI: "body-centered cubic",
|
|
4377
3829
|
cF: "face-centered cubic"
|
|
4378
3830
|
};
|
|
4379
|
-
function
|
|
3831
|
+
function ut(t) {
|
|
4380
3832
|
if (t < 1 || t > 230)
|
|
4381
3833
|
throw new Error(`Invalid space group number ${t}`);
|
|
4382
3834
|
return t < 3 ? "a" : t < 16 ? "m" : t < 75 ? "o" : t < 143 ? "t" : t < 195 ? "h" : "c";
|
|
4383
3835
|
}
|
|
4384
|
-
function
|
|
4385
|
-
return t > 142 && t < 168 ? "trigonal" :
|
|
3836
|
+
function to(t) {
|
|
3837
|
+
return t > 142 && t < 168 ? "trigonal" : Lt[ut(t)];
|
|
4386
3838
|
}
|
|
4387
|
-
function
|
|
4388
|
-
return [146, 148, 155, 160, 161, 166, 167].includes(t) ? "rhombohedral" :
|
|
3839
|
+
function no(t) {
|
|
3840
|
+
return [146, 148, 155, 160, 161, 166, 167].includes(t) ? "rhombohedral" : Lt[ut(t)];
|
|
4389
3841
|
}
|
|
4390
|
-
function
|
|
4391
|
-
let
|
|
4392
|
-
["A", "C"].includes(
|
|
4393
|
-
let
|
|
4394
|
-
return [
|
|
3842
|
+
function eo(t) {
|
|
3843
|
+
let r = Ot[t.toString()].sg_int_short.charAt(0), i = r;
|
|
3844
|
+
["A", "C"].includes(r) && (i = "S");
|
|
3845
|
+
let s = ut(t) + i;
|
|
3846
|
+
return [s, $i[s]];
|
|
4395
3847
|
}
|
|
4396
|
-
function
|
|
3848
|
+
function Co(t) {
|
|
4397
3849
|
if (t < 1 || t > 230)
|
|
4398
3850
|
throw new Error(`Invalid space group number ${t}`);
|
|
4399
|
-
let
|
|
3851
|
+
let r = eo(t);
|
|
4400
3852
|
return {
|
|
4401
|
-
space_group_symbol:
|
|
4402
|
-
point_group_symbol:
|
|
4403
|
-
crystal_family_pearson:
|
|
4404
|
-
crystal_family:
|
|
4405
|
-
crystal_system:
|
|
4406
|
-
lattice_system:
|
|
4407
|
-
bravais_lattice_pearson:
|
|
4408
|
-
bravais_lattice:
|
|
3853
|
+
space_group_symbol: Ot[t.toString()].sg_int_short,
|
|
3854
|
+
point_group_symbol: Ot[t.toString()].pg_int,
|
|
3855
|
+
crystal_family_pearson: ut(t),
|
|
3856
|
+
crystal_family: Lt[ut(t)],
|
|
3857
|
+
crystal_system: to(t),
|
|
3858
|
+
lattice_system: no(t),
|
|
3859
|
+
bravais_lattice_pearson: r[0],
|
|
3860
|
+
bravais_lattice: r[1]
|
|
4409
3861
|
};
|
|
4410
3862
|
}
|
|
4411
|
-
function
|
|
3863
|
+
function Ro(t) {
|
|
4412
3864
|
return t.includes("P") ? [
|
|
4413
3865
|
[1, 0, 0],
|
|
4414
3866
|
[0, 1, 0],
|
|
@@ -4444,27 +3896,33 @@ function wi(t) {
|
|
|
4444
3896
|
]);
|
|
4445
3897
|
}
|
|
4446
3898
|
export {
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
3899
|
+
ao as DoiBadge,
|
|
3900
|
+
mo as ExploreButton,
|
|
3901
|
+
po as HashModal,
|
|
3902
|
+
co as HelpButton,
|
|
3903
|
+
ho as McCopyAccordion,
|
|
3904
|
+
fo as McCopyExtraAccordion,
|
|
3905
|
+
ve as McDropzone,
|
|
3906
|
+
be as McHistoryList,
|
|
3907
|
+
Po as McInfoAccordion,
|
|
3908
|
+
bo as McShareButton,
|
|
3909
|
+
yo as McStructureUpload,
|
|
3910
|
+
uo as McloudCard,
|
|
3911
|
+
lo as McloudSpinner,
|
|
3912
|
+
Ae as RemoteStructureLoader,
|
|
3913
|
+
Bt as SHARE_STORES,
|
|
3914
|
+
_o as StructDownloadButton,
|
|
3915
|
+
so as TestButton,
|
|
3916
|
+
go as ToggleSwitch,
|
|
3917
|
+
je as createHistoryStore,
|
|
3918
|
+
Ao as createShareStore,
|
|
3919
|
+
xo as formatChemicalFormula,
|
|
3920
|
+
wo as formatSpaceGroupSymbol,
|
|
3921
|
+
jo as formula,
|
|
3922
|
+
Re as fromStructureShare,
|
|
3923
|
+
Ro as getPrimToConvMatrix,
|
|
3924
|
+
Co as getSymmetryInfo,
|
|
3925
|
+
ko as matrix,
|
|
3926
|
+
dn as shortHashForUrl,
|
|
3927
|
+
vo as toStructureShare
|
|
4470
3928
|
};
|