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