@pie-players/pie-tool-periodic-table 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3091 @@
1
+ var as = Object.defineProperty;
2
+ var Ti = (e) => {
3
+ throw TypeError(e);
4
+ };
5
+ var cs = (e, n, t) => n in e ? as(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
6
+ var j = (e, n, t) => cs(e, typeof n != "symbol" ? n + "" : n, t), Xt = (e, n, t) => n.has(e) || Ti("Cannot " + t);
7
+ var c = (e, n, t) => (Xt(e, n, "read from private field"), t ? t.call(e) : n.get(e)), v = (e, n, t) => n.has(e) ? Ti("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(e) : n.set(e, t), b = (e, n, t, i) => (Xt(e, n, "write to private field"), i ? i.call(e, t) : n.set(e, t), t), B = (e, n, t) => (Xt(e, n, "access private method"), t);
8
+ var Ji;
9
+ typeof window < "u" && ((Ji = window.__svelte ?? (window.__svelte = {})).v ?? (Ji.v = /* @__PURE__ */ new Set())).add("5");
10
+ const us = 1, ds = 2, qi = 4, ps = 8, fs = 16, _s = 2, Yi = "[", Nt = "[!", di = "]", Pn = {}, U = /* @__PURE__ */ Symbol(), ms = "http://www.w3.org/1999/xhtml", Vt = !1;
11
+ var Vi = Array.isArray, ys = Array.prototype.indexOf, In = Array.prototype.includes, jt = Array.from, St = Object.keys, Et = Object.defineProperty, Cn = Object.getOwnPropertyDescriptor, hs = Object.getOwnPropertyDescriptors, gs = Object.prototype, bs = Array.prototype, Qi = Object.getPrototypeOf, Ni = Object.isExtensible;
12
+ function vs(e) {
13
+ for (var n = 0; n < e.length; n++)
14
+ e[n]();
15
+ }
16
+ function Zi() {
17
+ var e, n, t = new Promise((i, o) => {
18
+ e = i, n = o;
19
+ });
20
+ return { promise: t, resolve: e, reject: n };
21
+ }
22
+ const X = 2, $t = 4, Lt = 8, eo = 1 << 24, qe = 16, we = 32, ln = 64, pi = 128, fe = 512, H = 1024, Y = 2048, Ye = 4096, le = 8192, Xe = 16384, Mt = 32768, Bn = 65536, ji = 1 << 17, no = 1 << 18, Sn = 1 << 19, ws = 1 << 20, Ge = 1 << 25, wn = 32768, Qt = 1 << 21, fi = 1 << 22, on = 1 << 23, gt = /* @__PURE__ */ Symbol("$state"), xs = /* @__PURE__ */ Symbol("legacy props"), ks = /* @__PURE__ */ Symbol(""), Rn = new class extends Error {
23
+ constructor() {
24
+ super(...arguments);
25
+ j(this, "name", "StaleReactionError");
26
+ j(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
27
+ }
28
+ }(), at = 3, Xn = 8;
29
+ function Ss(e) {
30
+ throw new Error("https://svelte.dev/e/lifecycle_outside_component");
31
+ }
32
+ function Es() {
33
+ throw new Error("https://svelte.dev/e/async_derived_orphan");
34
+ }
35
+ function $s(e) {
36
+ throw new Error("https://svelte.dev/e/effect_in_teardown");
37
+ }
38
+ function As() {
39
+ throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
40
+ }
41
+ function zs(e) {
42
+ throw new Error("https://svelte.dev/e/effect_orphan");
43
+ }
44
+ function Rs() {
45
+ throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
46
+ }
47
+ function Cs() {
48
+ throw new Error("https://svelte.dev/e/hydration_failed");
49
+ }
50
+ function Ts() {
51
+ throw new Error("https://svelte.dev/e/state_descriptors_fixed");
52
+ }
53
+ function Ns() {
54
+ throw new Error("https://svelte.dev/e/state_prototype_fixed");
55
+ }
56
+ function js() {
57
+ throw new Error("https://svelte.dev/e/state_unsafe_mutation");
58
+ }
59
+ function Ls() {
60
+ throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
61
+ }
62
+ function Ot(e) {
63
+ console.warn("https://svelte.dev/e/hydration_mismatch");
64
+ }
65
+ function Ms() {
66
+ console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
67
+ }
68
+ let S = !1;
69
+ function Ue(e) {
70
+ S = e;
71
+ }
72
+ let E;
73
+ function J(e) {
74
+ if (e === null)
75
+ throw Ot(), Pn;
76
+ return E = e;
77
+ }
78
+ function Dt() {
79
+ return J(/* @__PURE__ */ Te(E));
80
+ }
81
+ function k(e) {
82
+ if (S) {
83
+ if (/* @__PURE__ */ Te(E) !== null)
84
+ throw Ot(), Pn;
85
+ E = e;
86
+ }
87
+ }
88
+ function Os(e = 1) {
89
+ if (S) {
90
+ for (var n = e, t = E; n--; )
91
+ t = /** @type {TemplateNode} */
92
+ /* @__PURE__ */ Te(t);
93
+ E = t;
94
+ }
95
+ }
96
+ function At(e = !0) {
97
+ for (var n = 0, t = E; ; ) {
98
+ if (t.nodeType === Xn) {
99
+ var i = (
100
+ /** @type {Comment} */
101
+ t.data
102
+ );
103
+ if (i === di) {
104
+ if (n === 0) return t;
105
+ n -= 1;
106
+ } else (i === Yi || i === Nt) && (n += 1);
107
+ }
108
+ var o = (
109
+ /** @type {TemplateNode} */
110
+ /* @__PURE__ */ Te(t)
111
+ );
112
+ e && t.remove(), t = o;
113
+ }
114
+ }
115
+ function to(e) {
116
+ if (!e || e.nodeType !== Xn)
117
+ throw Ot(), Pn;
118
+ return (
119
+ /** @type {Comment} */
120
+ e.data
121
+ );
122
+ }
123
+ function io(e) {
124
+ return e === this.v;
125
+ }
126
+ function Ds(e, n) {
127
+ return e != e ? n == n : e !== n || e !== null && typeof e == "object" || typeof e == "function";
128
+ }
129
+ function oo(e) {
130
+ return !Ds(e, this.v);
131
+ }
132
+ let Ps = !1, ae = null;
133
+ function Hn(e) {
134
+ ae = e;
135
+ }
136
+ function so(e, n = !1, t) {
137
+ ae = {
138
+ p: ae,
139
+ i: !1,
140
+ c: null,
141
+ e: null,
142
+ s: e,
143
+ x: null,
144
+ l: null
145
+ };
146
+ }
147
+ function ro(e) {
148
+ var n = (
149
+ /** @type {ComponentContext} */
150
+ ae
151
+ ), t = n.e;
152
+ if (t !== null) {
153
+ n.e = null;
154
+ for (var i of t)
155
+ To(i);
156
+ }
157
+ return e !== void 0 && (n.x = e), n.i = !0, ae = n.p, e ?? /** @type {T} */
158
+ {};
159
+ }
160
+ function lo() {
161
+ return !0;
162
+ }
163
+ let dn = [];
164
+ function ao() {
165
+ var e = dn;
166
+ dn = [], vs(e);
167
+ }
168
+ function Ke(e) {
169
+ if (dn.length === 0 && !et) {
170
+ var n = dn;
171
+ queueMicrotask(() => {
172
+ n === dn && ao();
173
+ });
174
+ }
175
+ dn.push(e);
176
+ }
177
+ function Is() {
178
+ for (; dn.length > 0; )
179
+ ao();
180
+ }
181
+ function co(e) {
182
+ var n = $;
183
+ if (n === null)
184
+ return w.f |= on, e;
185
+ if ((n.f & Mt) === 0) {
186
+ if ((n.f & pi) === 0)
187
+ throw e;
188
+ n.b.error(e);
189
+ } else
190
+ Fn(e, n);
191
+ }
192
+ function Fn(e, n) {
193
+ for (; n !== null; ) {
194
+ if ((n.f & pi) !== 0)
195
+ try {
196
+ n.b.error(e);
197
+ return;
198
+ } catch (t) {
199
+ e = t;
200
+ }
201
+ n = n.parent;
202
+ }
203
+ throw e;
204
+ }
205
+ const Bs = -7169;
206
+ function P(e, n) {
207
+ e.f = e.f & Bs | n;
208
+ }
209
+ function _i(e) {
210
+ (e.f & fe) !== 0 || e.deps === null ? P(e, H) : P(e, Ye);
211
+ }
212
+ function uo(e) {
213
+ if (e !== null)
214
+ for (const n of e)
215
+ (n.f & X) === 0 || (n.f & wn) === 0 || (n.f ^= wn, uo(
216
+ /** @type {Derived} */
217
+ n.deps
218
+ ));
219
+ }
220
+ function po(e, n, t) {
221
+ (e.f & Y) !== 0 ? n.add(e) : (e.f & Ye) !== 0 && t.add(e), uo(e.deps), P(e, H);
222
+ }
223
+ const _t = /* @__PURE__ */ new Set();
224
+ let N = null, be = null, re = [], Pt = null, Zt = !1, et = !1;
225
+ var Tn, Nn, fn, jn, it, ot, _n, Ln, Ce, ei, ni, fo;
226
+ const xi = class xi {
227
+ constructor() {
228
+ v(this, Ce);
229
+ j(this, "committed", !1);
230
+ /**
231
+ * The current values of any sources that are updated in this batch
232
+ * They keys of this map are identical to `this.#previous`
233
+ * @type {Map<Source, any>}
234
+ */
235
+ j(this, "current", /* @__PURE__ */ new Map());
236
+ /**
237
+ * The values of any sources that are updated in this batch _before_ those updates took place.
238
+ * They keys of this map are identical to `this.#current`
239
+ * @type {Map<Source, any>}
240
+ */
241
+ j(this, "previous", /* @__PURE__ */ new Map());
242
+ /**
243
+ * When the batch is committed (and the DOM is updated), we need to remove old branches
244
+ * and append new ones by calling the functions added inside (if/each/key/etc) blocks
245
+ * @type {Set<() => void>}
246
+ */
247
+ v(this, Tn, /* @__PURE__ */ new Set());
248
+ /**
249
+ * If a fork is discarded, we need to destroy any effects that are no longer needed
250
+ * @type {Set<(batch: Batch) => void>}
251
+ */
252
+ v(this, Nn, /* @__PURE__ */ new Set());
253
+ /**
254
+ * The number of async effects that are currently in flight
255
+ */
256
+ v(this, fn, 0);
257
+ /**
258
+ * The number of async effects that are currently in flight, _not_ inside a pending boundary
259
+ */
260
+ v(this, jn, 0);
261
+ /**
262
+ * A deferred that resolves when the batch is committed, used with `settled()`
263
+ * TODO replace with Promise.withResolvers once supported widely enough
264
+ * @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
265
+ */
266
+ v(this, it, null);
267
+ /**
268
+ * Deferred effects (which run after async work has completed) that are DIRTY
269
+ * @type {Set<Effect>}
270
+ */
271
+ v(this, ot, /* @__PURE__ */ new Set());
272
+ /**
273
+ * Deferred effects that are MAYBE_DIRTY
274
+ * @type {Set<Effect>}
275
+ */
276
+ v(this, _n, /* @__PURE__ */ new Set());
277
+ /**
278
+ * A set of branches that still exist, but will be destroyed when this batch
279
+ * is committed — we skip over these during `process`
280
+ * @type {Set<Effect>}
281
+ */
282
+ j(this, "skipped_effects", /* @__PURE__ */ new Set());
283
+ j(this, "is_fork", !1);
284
+ v(this, Ln, !1);
285
+ }
286
+ is_deferred() {
287
+ return this.is_fork || c(this, jn) > 0;
288
+ }
289
+ /**
290
+ *
291
+ * @param {Effect[]} root_effects
292
+ */
293
+ process(n) {
294
+ re = [], this.apply();
295
+ var t = [], i = [];
296
+ for (const o of n)
297
+ B(this, Ce, ei).call(this, o, t, i);
298
+ if (this.is_deferred()) {
299
+ B(this, Ce, ni).call(this, i), B(this, Ce, ni).call(this, t);
300
+ for (const o of this.skipped_effects)
301
+ ho(o);
302
+ } else {
303
+ for (const o of c(this, Tn)) o();
304
+ c(this, Tn).clear(), c(this, fn) === 0 && B(this, Ce, fo).call(this), N = null, Li(i), Li(t), c(this, it)?.resolve();
305
+ }
306
+ be = null;
307
+ }
308
+ /**
309
+ * Associate a change to a given source with the current
310
+ * batch, noting its previous and current values
311
+ * @param {Source} source
312
+ * @param {any} value
313
+ */
314
+ capture(n, t) {
315
+ t !== U && !this.previous.has(n) && this.previous.set(n, t), (n.f & on) === 0 && (this.current.set(n, n.v), be?.set(n, n.v));
316
+ }
317
+ activate() {
318
+ N = this, this.apply();
319
+ }
320
+ deactivate() {
321
+ N === this && (N = null, be = null);
322
+ }
323
+ flush() {
324
+ if (this.activate(), re.length > 0) {
325
+ if (_o(), N !== null && N !== this)
326
+ return;
327
+ } else c(this, fn) === 0 && this.process([]);
328
+ this.deactivate();
329
+ }
330
+ discard() {
331
+ for (const n of c(this, Nn)) n(this);
332
+ c(this, Nn).clear();
333
+ }
334
+ /**
335
+ *
336
+ * @param {boolean} blocking
337
+ */
338
+ increment(n) {
339
+ b(this, fn, c(this, fn) + 1), n && b(this, jn, c(this, jn) + 1);
340
+ }
341
+ /**
342
+ *
343
+ * @param {boolean} blocking
344
+ */
345
+ decrement(n) {
346
+ b(this, fn, c(this, fn) - 1), n && b(this, jn, c(this, jn) - 1), !c(this, Ln) && (b(this, Ln, !0), Ke(() => {
347
+ b(this, Ln, !1), this.is_deferred() ? re.length > 0 && this.flush() : this.revive();
348
+ }));
349
+ }
350
+ revive() {
351
+ for (const n of c(this, ot))
352
+ c(this, _n).delete(n), P(n, Y), Je(n);
353
+ for (const n of c(this, _n))
354
+ P(n, Ye), Je(n);
355
+ this.flush();
356
+ }
357
+ /** @param {() => void} fn */
358
+ oncommit(n) {
359
+ c(this, Tn).add(n);
360
+ }
361
+ /** @param {(batch: Batch) => void} fn */
362
+ ondiscard(n) {
363
+ c(this, Nn).add(n);
364
+ }
365
+ settled() {
366
+ return (c(this, it) ?? b(this, it, Zi())).promise;
367
+ }
368
+ static ensure() {
369
+ if (N === null) {
370
+ const n = N = new xi();
371
+ _t.add(N), et || Ke(() => {
372
+ N === n && n.flush();
373
+ });
374
+ }
375
+ return N;
376
+ }
377
+ apply() {
378
+ }
379
+ };
380
+ Tn = new WeakMap(), Nn = new WeakMap(), fn = new WeakMap(), jn = new WeakMap(), it = new WeakMap(), ot = new WeakMap(), _n = new WeakMap(), Ln = new WeakMap(), Ce = new WeakSet(), /**
381
+ * Traverse the effect tree, executing effects or stashing
382
+ * them for later execution as appropriate
383
+ * @param {Effect} root
384
+ * @param {Effect[]} effects
385
+ * @param {Effect[]} render_effects
386
+ */
387
+ ei = function(n, t, i) {
388
+ n.f ^= H;
389
+ for (var o = n.first, s = null; o !== null; ) {
390
+ var r = o.f, l = (r & (we | ln)) !== 0, a = l && (r & H) !== 0, u = a || (r & le) !== 0 || this.skipped_effects.has(o);
391
+ if (!u && o.fn !== null) {
392
+ l ? o.f ^= H : s !== null && (r & ($t | Lt | eo)) !== 0 ? s.b.defer_effect(o) : (r & $t) !== 0 ? t.push(o) : ct(o) && ((r & qe) !== 0 && c(this, _n).add(o), tt(o));
393
+ var d = o.first;
394
+ if (d !== null) {
395
+ o = d;
396
+ continue;
397
+ }
398
+ }
399
+ var m = o.parent;
400
+ for (o = o.next; o === null && m !== null; )
401
+ m === s && (s = null), o = m.next, m = m.parent;
402
+ }
403
+ }, /**
404
+ * @param {Effect[]} effects
405
+ */
406
+ ni = function(n) {
407
+ for (var t = 0; t < n.length; t += 1)
408
+ po(n[t], c(this, ot), c(this, _n));
409
+ }, fo = function() {
410
+ var o;
411
+ if (_t.size > 1) {
412
+ this.previous.clear();
413
+ var n = be, t = !0;
414
+ for (const s of _t) {
415
+ if (s === this) {
416
+ t = !1;
417
+ continue;
418
+ }
419
+ const r = [];
420
+ for (const [a, u] of this.current) {
421
+ if (s.current.has(a))
422
+ if (t && u !== s.current.get(a))
423
+ s.current.set(a, u);
424
+ else
425
+ continue;
426
+ r.push(a);
427
+ }
428
+ if (r.length === 0)
429
+ continue;
430
+ const l = [...s.current.keys()].filter((a) => !this.current.has(a));
431
+ if (l.length > 0) {
432
+ var i = re;
433
+ re = [];
434
+ const a = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map();
435
+ for (const d of r)
436
+ mo(d, l, a, u);
437
+ if (re.length > 0) {
438
+ N = s, s.apply();
439
+ for (const d of re)
440
+ B(o = s, Ce, ei).call(o, d, [], []);
441
+ s.deactivate();
442
+ }
443
+ re = i;
444
+ }
445
+ }
446
+ N = null, be = n;
447
+ }
448
+ this.committed = !0, _t.delete(this);
449
+ };
450
+ let We = xi;
451
+ function bt(e) {
452
+ var n = et;
453
+ et = !0;
454
+ try {
455
+ for (var t; ; ) {
456
+ if (Is(), re.length === 0 && (N?.flush(), re.length === 0))
457
+ return Pt = null, /** @type {T} */
458
+ t;
459
+ _o();
460
+ }
461
+ } finally {
462
+ et = n;
463
+ }
464
+ }
465
+ function _o() {
466
+ Zt = !0;
467
+ var e = null;
468
+ try {
469
+ for (var n = 0; re.length > 0; ) {
470
+ var t = We.ensure();
471
+ if (n++ > 1e3) {
472
+ var i, o;
473
+ Hs();
474
+ }
475
+ t.process(re), sn.clear();
476
+ }
477
+ } finally {
478
+ Zt = !1, Pt = null;
479
+ }
480
+ }
481
+ function Hs() {
482
+ try {
483
+ Rs();
484
+ } catch (e) {
485
+ Fn(e, Pt);
486
+ }
487
+ }
488
+ let Pe = null;
489
+ function Li(e) {
490
+ var n = e.length;
491
+ if (n !== 0) {
492
+ for (var t = 0; t < n; ) {
493
+ var i = e[t++];
494
+ if ((i.f & (Xe | le)) === 0 && ct(i) && (Pe = /* @__PURE__ */ new Set(), tt(i), i.deps === null && i.first === null && i.nodes === null && (i.teardown === null && i.ac === null ? Mo(i) : i.fn = null), Pe?.size > 0)) {
495
+ sn.clear();
496
+ for (const o of Pe) {
497
+ if ((o.f & (Xe | le)) !== 0) continue;
498
+ const s = [o];
499
+ let r = o.parent;
500
+ for (; r !== null; )
501
+ Pe.has(r) && (Pe.delete(r), s.push(r)), r = r.parent;
502
+ for (let l = s.length - 1; l >= 0; l--) {
503
+ const a = s[l];
504
+ (a.f & (Xe | le)) === 0 && tt(a);
505
+ }
506
+ }
507
+ Pe.clear();
508
+ }
509
+ }
510
+ Pe = null;
511
+ }
512
+ }
513
+ function mo(e, n, t, i) {
514
+ if (!t.has(e) && (t.add(e), e.reactions !== null))
515
+ for (const o of e.reactions) {
516
+ const s = o.f;
517
+ (s & X) !== 0 ? mo(
518
+ /** @type {Derived} */
519
+ o,
520
+ n,
521
+ t,
522
+ i
523
+ ) : (s & (fi | qe)) !== 0 && (s & Y) === 0 && yo(o, n, i) && (P(o, Y), Je(
524
+ /** @type {Effect} */
525
+ o
526
+ ));
527
+ }
528
+ }
529
+ function yo(e, n, t) {
530
+ const i = t.get(e);
531
+ if (i !== void 0) return i;
532
+ if (e.deps !== null)
533
+ for (const o of e.deps) {
534
+ if (In.call(n, o))
535
+ return !0;
536
+ if ((o.f & X) !== 0 && yo(
537
+ /** @type {Derived} */
538
+ o,
539
+ n,
540
+ t
541
+ ))
542
+ return t.set(
543
+ /** @type {Derived} */
544
+ o,
545
+ !0
546
+ ), !0;
547
+ }
548
+ return t.set(e, !1), !1;
549
+ }
550
+ function Je(e) {
551
+ for (var n = Pt = e; n.parent !== null; ) {
552
+ n = n.parent;
553
+ var t = n.f;
554
+ if (Zt && n === $ && (t & qe) !== 0 && (t & no) === 0)
555
+ return;
556
+ if ((t & (ln | we)) !== 0) {
557
+ if ((t & H) === 0) return;
558
+ n.f ^= H;
559
+ }
560
+ }
561
+ re.push(n);
562
+ }
563
+ function ho(e) {
564
+ if (!((e.f & we) !== 0 && (e.f & H) !== 0)) {
565
+ P(e, H);
566
+ for (var n = e.first; n !== null; )
567
+ ho(n), n = n.next;
568
+ }
569
+ }
570
+ function Fs(e) {
571
+ let n = 0, t = xn(0), i;
572
+ return () => {
573
+ hi() && (_(t), gi(() => (n === 0 && (i = wi(() => e(() => nt(t)))), n += 1, () => {
574
+ Ke(() => {
575
+ n -= 1, n === 0 && (i?.(), i = void 0, nt(t));
576
+ });
577
+ })));
578
+ };
579
+ }
580
+ var Gs = Bn | Sn | pi;
581
+ function Us(e, n, t) {
582
+ new Xs(e, n, t);
583
+ }
584
+ var oe, st, Ee, mn, $e, ue, Q, Ae, Ie, nn, yn, Be, Mn, hn, On, Dn, He, Ct, L, go, bo, ti, vt, wt, ii;
585
+ class Xs {
586
+ /**
587
+ * @param {TemplateNode} node
588
+ * @param {BoundaryProps} props
589
+ * @param {((anchor: Node) => void)} children
590
+ */
591
+ constructor(n, t, i) {
592
+ v(this, L);
593
+ /** @type {Boundary | null} */
594
+ j(this, "parent");
595
+ j(this, "is_pending", !1);
596
+ /** @type {TemplateNode} */
597
+ v(this, oe);
598
+ /** @type {TemplateNode | null} */
599
+ v(this, st, S ? E : null);
600
+ /** @type {BoundaryProps} */
601
+ v(this, Ee);
602
+ /** @type {((anchor: Node) => void)} */
603
+ v(this, mn);
604
+ /** @type {Effect} */
605
+ v(this, $e);
606
+ /** @type {Effect | null} */
607
+ v(this, ue, null);
608
+ /** @type {Effect | null} */
609
+ v(this, Q, null);
610
+ /** @type {Effect | null} */
611
+ v(this, Ae, null);
612
+ /** @type {DocumentFragment | null} */
613
+ v(this, Ie, null);
614
+ /** @type {TemplateNode | null} */
615
+ v(this, nn, null);
616
+ v(this, yn, 0);
617
+ v(this, Be, 0);
618
+ v(this, Mn, !1);
619
+ v(this, hn, !1);
620
+ /** @type {Set<Effect>} */
621
+ v(this, On, /* @__PURE__ */ new Set());
622
+ /** @type {Set<Effect>} */
623
+ v(this, Dn, /* @__PURE__ */ new Set());
624
+ /**
625
+ * A source containing the number of pending async deriveds/expressions.
626
+ * Only created if `$effect.pending()` is used inside the boundary,
627
+ * otherwise updating the source results in needless `Batch.ensure()`
628
+ * calls followed by no-op flushes
629
+ * @type {Source<number> | null}
630
+ */
631
+ v(this, He, null);
632
+ v(this, Ct, Fs(() => (b(this, He, xn(c(this, yn))), () => {
633
+ b(this, He, null);
634
+ })));
635
+ b(this, oe, n), b(this, Ee, t), b(this, mn, i), this.parent = /** @type {Effect} */
636
+ $.b, this.is_pending = !!c(this, Ee).pending, b(this, $e, bi(() => {
637
+ if ($.b = this, S) {
638
+ const s = c(this, st);
639
+ Dt(), /** @type {Comment} */
640
+ s.nodeType === Xn && /** @type {Comment} */
641
+ s.data === Nt ? B(this, L, bo).call(this) : (B(this, L, go).call(this), c(this, Be) === 0 && (this.is_pending = !1));
642
+ } else {
643
+ var o = B(this, L, ti).call(this);
644
+ try {
645
+ b(this, ue, pe(() => i(o)));
646
+ } catch (s) {
647
+ this.error(s);
648
+ }
649
+ c(this, Be) > 0 ? B(this, L, wt).call(this) : this.is_pending = !1;
650
+ }
651
+ return () => {
652
+ c(this, nn)?.remove();
653
+ };
654
+ }, Gs)), S && b(this, oe, E);
655
+ }
656
+ /**
657
+ * Defer an effect inside a pending boundary until the boundary resolves
658
+ * @param {Effect} effect
659
+ */
660
+ defer_effect(n) {
661
+ po(n, c(this, On), c(this, Dn));
662
+ }
663
+ /**
664
+ * Returns `false` if the effect exists inside a boundary whose pending snippet is shown
665
+ * @returns {boolean}
666
+ */
667
+ is_rendered() {
668
+ return !this.is_pending && (!this.parent || this.parent.is_rendered());
669
+ }
670
+ has_pending_snippet() {
671
+ return !!c(this, Ee).pending;
672
+ }
673
+ /**
674
+ * Update the source that powers `$effect.pending()` inside this boundary,
675
+ * and controls when the current `pending` snippet (if any) is removed.
676
+ * Do not call from inside the class
677
+ * @param {1 | -1} d
678
+ */
679
+ update_pending_count(n) {
680
+ B(this, L, ii).call(this, n), b(this, yn, c(this, yn) + n), !(!c(this, He) || c(this, Mn)) && (b(this, Mn, !0), Ke(() => {
681
+ b(this, Mn, !1), c(this, He) && Gn(c(this, He), c(this, yn));
682
+ }));
683
+ }
684
+ get_effect_pending() {
685
+ return c(this, Ct).call(this), _(
686
+ /** @type {Source<number>} */
687
+ c(this, He)
688
+ );
689
+ }
690
+ /** @param {unknown} error */
691
+ error(n) {
692
+ var t = c(this, Ee).onerror;
693
+ let i = c(this, Ee).failed;
694
+ if (c(this, hn) || !t && !i)
695
+ throw n;
696
+ c(this, ue) && (q(c(this, ue)), b(this, ue, null)), c(this, Q) && (q(c(this, Q)), b(this, Q, null)), c(this, Ae) && (q(c(this, Ae)), b(this, Ae, null)), S && (J(
697
+ /** @type {TemplateNode} */
698
+ c(this, st)
699
+ ), Os(), J(At()));
700
+ var o = !1, s = !1;
701
+ const r = () => {
702
+ if (o) {
703
+ Ms();
704
+ return;
705
+ }
706
+ o = !0, s && Ls(), We.ensure(), b(this, yn, 0), c(this, Ae) !== null && bn(c(this, Ae), () => {
707
+ b(this, Ae, null);
708
+ }), this.is_pending = this.has_pending_snippet(), b(this, ue, B(this, L, vt).call(this, () => (b(this, hn, !1), pe(() => c(this, mn).call(this, c(this, oe)))))), c(this, Be) > 0 ? B(this, L, wt).call(this) : this.is_pending = !1;
709
+ };
710
+ Ke(() => {
711
+ try {
712
+ s = !0, t?.(n, r), s = !1;
713
+ } catch (l) {
714
+ Fn(l, c(this, $e) && c(this, $e).parent);
715
+ }
716
+ i && b(this, Ae, B(this, L, vt).call(this, () => {
717
+ We.ensure(), b(this, hn, !0);
718
+ try {
719
+ return pe(() => {
720
+ i(
721
+ c(this, oe),
722
+ () => n,
723
+ () => r
724
+ );
725
+ });
726
+ } catch (l) {
727
+ return Fn(
728
+ l,
729
+ /** @type {Effect} */
730
+ c(this, $e).parent
731
+ ), null;
732
+ } finally {
733
+ b(this, hn, !1);
734
+ }
735
+ }));
736
+ });
737
+ }
738
+ }
739
+ oe = new WeakMap(), st = new WeakMap(), Ee = new WeakMap(), mn = new WeakMap(), $e = new WeakMap(), ue = new WeakMap(), Q = new WeakMap(), Ae = new WeakMap(), Ie = new WeakMap(), nn = new WeakMap(), yn = new WeakMap(), Be = new WeakMap(), Mn = new WeakMap(), hn = new WeakMap(), On = new WeakMap(), Dn = new WeakMap(), He = new WeakMap(), Ct = new WeakMap(), L = new WeakSet(), go = function() {
740
+ try {
741
+ b(this, ue, pe(() => c(this, mn).call(this, c(this, oe))));
742
+ } catch (n) {
743
+ this.error(n);
744
+ }
745
+ }, bo = function() {
746
+ const n = c(this, Ee).pending;
747
+ n && (b(this, Q, pe(() => n(c(this, oe)))), Ke(() => {
748
+ var t = B(this, L, ti).call(this);
749
+ b(this, ue, B(this, L, vt).call(this, () => (We.ensure(), pe(() => c(this, mn).call(this, t))))), c(this, Be) > 0 ? B(this, L, wt).call(this) : (bn(
750
+ /** @type {Effect} */
751
+ c(this, Q),
752
+ () => {
753
+ b(this, Q, null);
754
+ }
755
+ ), this.is_pending = !1);
756
+ }));
757
+ }, ti = function() {
758
+ var n = c(this, oe);
759
+ return this.is_pending && (b(this, nn, ee()), c(this, oe).before(c(this, nn)), n = c(this, nn)), n;
760
+ }, /**
761
+ * @param {() => Effect | null} fn
762
+ */
763
+ vt = function(n) {
764
+ var t = $, i = w, o = ae;
765
+ Re(c(this, $e)), me(c(this, $e)), Hn(c(this, $e).ctx);
766
+ try {
767
+ return n();
768
+ } catch (s) {
769
+ return co(s), null;
770
+ } finally {
771
+ Re(t), me(i), Hn(o);
772
+ }
773
+ }, wt = function() {
774
+ const n = (
775
+ /** @type {(anchor: Node) => void} */
776
+ c(this, Ee).pending
777
+ );
778
+ c(this, ue) !== null && (b(this, Ie, document.createDocumentFragment()), c(this, Ie).append(
779
+ /** @type {TemplateNode} */
780
+ c(this, nn)
781
+ ), Po(c(this, ue), c(this, Ie))), c(this, Q) === null && b(this, Q, pe(() => n(c(this, oe))));
782
+ }, /**
783
+ * Updates the pending count associated with the currently visible pending snippet,
784
+ * if any, such that we can replace the snippet with content once work is done
785
+ * @param {1 | -1} d
786
+ */
787
+ ii = function(n) {
788
+ var t;
789
+ if (!this.has_pending_snippet()) {
790
+ this.parent && B(t = this.parent, L, ii).call(t, n);
791
+ return;
792
+ }
793
+ if (b(this, Be, c(this, Be) + n), c(this, Be) === 0) {
794
+ this.is_pending = !1;
795
+ for (const i of c(this, On))
796
+ P(i, Y), Je(i);
797
+ for (const i of c(this, Dn))
798
+ P(i, Ye), Je(i);
799
+ c(this, On).clear(), c(this, Dn).clear(), c(this, Q) && bn(c(this, Q), () => {
800
+ b(this, Q, null);
801
+ }), c(this, Ie) && (c(this, oe).before(c(this, Ie)), b(this, Ie, null));
802
+ }
803
+ };
804
+ function Ks(e, n, t, i) {
805
+ const o = It;
806
+ var s = e.filter((p) => !p.settled);
807
+ if (t.length === 0 && s.length === 0) {
808
+ i(n.map(o));
809
+ return;
810
+ }
811
+ var r = N, l = (
812
+ /** @type {Effect} */
813
+ $
814
+ ), a = Ws(), u = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((p) => p.promise)) : null;
815
+ function d(p) {
816
+ a();
817
+ try {
818
+ i(p);
819
+ } catch (y) {
820
+ (l.f & Xe) === 0 && Fn(y, l);
821
+ }
822
+ r?.deactivate(), oi();
823
+ }
824
+ if (t.length === 0) {
825
+ u.then(() => d(n.map(o)));
826
+ return;
827
+ }
828
+ function m() {
829
+ a(), Promise.all(t.map((p) => /* @__PURE__ */ Js(p))).then((p) => d([...n.map(o), ...p])).catch((p) => Fn(p, l));
830
+ }
831
+ u ? u.then(m) : m();
832
+ }
833
+ function Ws() {
834
+ var e = $, n = w, t = ae, i = N;
835
+ return function(s = !0) {
836
+ Re(e), me(n), Hn(t), s && i?.activate();
837
+ };
838
+ }
839
+ function oi() {
840
+ Re(null), me(null), Hn(null);
841
+ }
842
+ // @__NO_SIDE_EFFECTS__
843
+ function It(e) {
844
+ var n = X | Y, t = w !== null && (w.f & X) !== 0 ? (
845
+ /** @type {Derived} */
846
+ w
847
+ ) : null;
848
+ return $ !== null && ($.f |= Sn), {
849
+ ctx: ae,
850
+ deps: null,
851
+ effects: null,
852
+ equals: io,
853
+ f: n,
854
+ fn: e,
855
+ reactions: null,
856
+ rv: 0,
857
+ v: (
858
+ /** @type {V} */
859
+ U
860
+ ),
861
+ wv: 0,
862
+ parent: t ?? $,
863
+ ac: null
864
+ };
865
+ }
866
+ // @__NO_SIDE_EFFECTS__
867
+ function Js(e, n, t) {
868
+ let i = (
869
+ /** @type {Effect | null} */
870
+ $
871
+ );
872
+ i === null && Es();
873
+ var o = (
874
+ /** @type {Boundary} */
875
+ i.b
876
+ ), s = (
877
+ /** @type {Promise<V>} */
878
+ /** @type {unknown} */
879
+ void 0
880
+ ), r = xn(
881
+ /** @type {V} */
882
+ U
883
+ ), l = !w, a = /* @__PURE__ */ new Map();
884
+ return tr(() => {
885
+ var u = Zi();
886
+ s = u.promise;
887
+ try {
888
+ Promise.resolve(e()).then(u.resolve, u.reject).then(() => {
889
+ d === N && d.committed && d.deactivate(), oi();
890
+ });
891
+ } catch (y) {
892
+ u.reject(y), oi();
893
+ }
894
+ var d = (
895
+ /** @type {Batch} */
896
+ N
897
+ );
898
+ if (l) {
899
+ var m = o.is_rendered();
900
+ o.update_pending_count(1), d.increment(m), a.get(d)?.reject(Rn), a.delete(d), a.set(d, u);
901
+ }
902
+ const p = (y, h = void 0) => {
903
+ if (d.activate(), h)
904
+ h !== Rn && (r.f |= on, Gn(r, h));
905
+ else {
906
+ (r.f & on) !== 0 && (r.f ^= on), Gn(r, y);
907
+ for (const [C, f] of a) {
908
+ if (a.delete(C), C === d) break;
909
+ f.reject(Rn);
910
+ }
911
+ }
912
+ l && (o.update_pending_count(-1), d.decrement(m));
913
+ };
914
+ u.promise.then(p, (y) => p(null, y || "unknown"));
915
+ }), Co(() => {
916
+ for (const u of a.values())
917
+ u.reject(Rn);
918
+ }), new Promise((u) => {
919
+ function d(m) {
920
+ function p() {
921
+ m === s ? u(r) : d(s);
922
+ }
923
+ m.then(p, p);
924
+ }
925
+ d(s);
926
+ });
927
+ }
928
+ // @__NO_SIDE_EFFECTS__
929
+ function Mi(e) {
930
+ const n = /* @__PURE__ */ It(e);
931
+ return Io(n), n;
932
+ }
933
+ // @__NO_SIDE_EFFECTS__
934
+ function qs(e) {
935
+ const n = /* @__PURE__ */ It(e);
936
+ return n.equals = oo, n;
937
+ }
938
+ function vo(e) {
939
+ var n = e.effects;
940
+ if (n !== null) {
941
+ e.effects = null;
942
+ for (var t = 0; t < n.length; t += 1)
943
+ q(
944
+ /** @type {Effect} */
945
+ n[t]
946
+ );
947
+ }
948
+ }
949
+ function Ys(e) {
950
+ for (var n = e.parent; n !== null; ) {
951
+ if ((n.f & X) === 0)
952
+ return (n.f & Xe) === 0 ? (
953
+ /** @type {Effect} */
954
+ n
955
+ ) : null;
956
+ n = n.parent;
957
+ }
958
+ return null;
959
+ }
960
+ function mi(e) {
961
+ var n, t = $;
962
+ Re(Ys(e));
963
+ try {
964
+ e.f &= ~wn, vo(e), n = Go(e);
965
+ } finally {
966
+ Re(t);
967
+ }
968
+ return n;
969
+ }
970
+ function wo(e) {
971
+ var n = mi(e);
972
+ if (!e.equals(n) && (e.wv = Ho(), (!N?.is_fork || e.deps === null) && (e.v = n, e.deps === null))) {
973
+ P(e, H);
974
+ return;
975
+ }
976
+ rn || (be !== null ? (hi() || N?.is_fork) && be.set(e, n) : _i(e));
977
+ }
978
+ let si = /* @__PURE__ */ new Set();
979
+ const sn = /* @__PURE__ */ new Map();
980
+ let xo = !1;
981
+ function xn(e, n) {
982
+ var t = {
983
+ f: 0,
984
+ // TODO ideally we could skip this altogether, but it causes type errors
985
+ v: e,
986
+ reactions: null,
987
+ equals: io,
988
+ rv: 0,
989
+ wv: 0
990
+ };
991
+ return t;
992
+ }
993
+ // @__NO_SIDE_EFFECTS__
994
+ function O(e, n) {
995
+ const t = xn(e);
996
+ return Io(t), t;
997
+ }
998
+ // @__NO_SIDE_EFFECTS__
999
+ function ko(e, n = !1, t = !0) {
1000
+ const i = xn(e);
1001
+ return n || (i.equals = oo), i;
1002
+ }
1003
+ function D(e, n, t = !1) {
1004
+ w !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1005
+ // to ensure we error if state is set inside an inspect effect
1006
+ (!ve || (w.f & ji) !== 0) && lo() && (w.f & (X | qe | fi | ji)) !== 0 && (_e === null || !In.call(_e, e)) && js();
1007
+ let i = t ? tn(n) : n;
1008
+ return Gn(e, i);
1009
+ }
1010
+ function Gn(e, n) {
1011
+ if (!e.equals(n)) {
1012
+ var t = e.v;
1013
+ rn ? sn.set(e, n) : sn.set(e, t), e.v = n;
1014
+ var i = We.ensure();
1015
+ if (i.capture(e, t), (e.f & X) !== 0) {
1016
+ const o = (
1017
+ /** @type {Derived} */
1018
+ e
1019
+ );
1020
+ (e.f & Y) !== 0 && mi(o), _i(o);
1021
+ }
1022
+ e.wv = Ho(), So(e, Y), $ !== null && ($.f & H) !== 0 && ($.f & (we | ln)) === 0 && (ce === null ? sr([e]) : ce.push(e)), !i.is_fork && si.size > 0 && !xo && Vs();
1023
+ }
1024
+ return n;
1025
+ }
1026
+ function Vs() {
1027
+ xo = !1;
1028
+ for (const e of si)
1029
+ (e.f & H) !== 0 && P(e, Ye), ct(e) && tt(e);
1030
+ si.clear();
1031
+ }
1032
+ function nt(e) {
1033
+ D(e, e.v + 1);
1034
+ }
1035
+ function So(e, n) {
1036
+ var t = e.reactions;
1037
+ if (t !== null)
1038
+ for (var i = t.length, o = 0; o < i; o++) {
1039
+ var s = t[o], r = s.f, l = (r & Y) === 0;
1040
+ if (l && P(s, n), (r & X) !== 0) {
1041
+ var a = (
1042
+ /** @type {Derived} */
1043
+ s
1044
+ );
1045
+ be?.delete(a), (r & wn) === 0 && (r & fe && (s.f |= wn), So(a, Ye));
1046
+ } else l && ((r & qe) !== 0 && Pe !== null && Pe.add(
1047
+ /** @type {Effect} */
1048
+ s
1049
+ ), Je(
1050
+ /** @type {Effect} */
1051
+ s
1052
+ ));
1053
+ }
1054
+ }
1055
+ function tn(e) {
1056
+ if (typeof e != "object" || e === null || gt in e)
1057
+ return e;
1058
+ const n = Qi(e);
1059
+ if (n !== gs && n !== bs)
1060
+ return e;
1061
+ var t = /* @__PURE__ */ new Map(), i = Vi(e), o = /* @__PURE__ */ O(0), s = vn, r = (l) => {
1062
+ if (vn === s)
1063
+ return l();
1064
+ var a = w, u = vn;
1065
+ me(null), Pi(s);
1066
+ var d = l();
1067
+ return me(a), Pi(u), d;
1068
+ };
1069
+ return i && t.set("length", /* @__PURE__ */ O(
1070
+ /** @type {any[]} */
1071
+ e.length
1072
+ )), new Proxy(
1073
+ /** @type {any} */
1074
+ e,
1075
+ {
1076
+ defineProperty(l, a, u) {
1077
+ (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Ts();
1078
+ var d = t.get(a);
1079
+ return d === void 0 ? d = r(() => {
1080
+ var m = /* @__PURE__ */ O(u.value);
1081
+ return t.set(a, m), m;
1082
+ }) : D(d, u.value, !0), !0;
1083
+ },
1084
+ deleteProperty(l, a) {
1085
+ var u = t.get(a);
1086
+ if (u === void 0) {
1087
+ if (a in l) {
1088
+ const d = r(() => /* @__PURE__ */ O(U));
1089
+ t.set(a, d), nt(o);
1090
+ }
1091
+ } else
1092
+ D(u, U), nt(o);
1093
+ return !0;
1094
+ },
1095
+ get(l, a, u) {
1096
+ if (a === gt)
1097
+ return e;
1098
+ var d = t.get(a), m = a in l;
1099
+ if (d === void 0 && (!m || Cn(l, a)?.writable) && (d = r(() => {
1100
+ var y = tn(m ? l[a] : U), h = /* @__PURE__ */ O(y);
1101
+ return h;
1102
+ }), t.set(a, d)), d !== void 0) {
1103
+ var p = _(d);
1104
+ return p === U ? void 0 : p;
1105
+ }
1106
+ return Reflect.get(l, a, u);
1107
+ },
1108
+ getOwnPropertyDescriptor(l, a) {
1109
+ var u = Reflect.getOwnPropertyDescriptor(l, a);
1110
+ if (u && "value" in u) {
1111
+ var d = t.get(a);
1112
+ d && (u.value = _(d));
1113
+ } else if (u === void 0) {
1114
+ var m = t.get(a), p = m?.v;
1115
+ if (m !== void 0 && p !== U)
1116
+ return {
1117
+ enumerable: !0,
1118
+ configurable: !0,
1119
+ value: p,
1120
+ writable: !0
1121
+ };
1122
+ }
1123
+ return u;
1124
+ },
1125
+ has(l, a) {
1126
+ if (a === gt)
1127
+ return !0;
1128
+ var u = t.get(a), d = u !== void 0 && u.v !== U || Reflect.has(l, a);
1129
+ if (u !== void 0 || $ !== null && (!d || Cn(l, a)?.writable)) {
1130
+ u === void 0 && (u = r(() => {
1131
+ var p = d ? tn(l[a]) : U, y = /* @__PURE__ */ O(p);
1132
+ return y;
1133
+ }), t.set(a, u));
1134
+ var m = _(u);
1135
+ if (m === U)
1136
+ return !1;
1137
+ }
1138
+ return d;
1139
+ },
1140
+ set(l, a, u, d) {
1141
+ var m = t.get(a), p = a in l;
1142
+ if (i && a === "length")
1143
+ for (var y = u; y < /** @type {Source<number>} */
1144
+ m.v; y += 1) {
1145
+ var h = t.get(y + "");
1146
+ h !== void 0 ? D(h, U) : y in l && (h = r(() => /* @__PURE__ */ O(U)), t.set(y + "", h));
1147
+ }
1148
+ if (m === void 0)
1149
+ (!p || Cn(l, a)?.writable) && (m = r(() => /* @__PURE__ */ O(void 0)), D(m, tn(u)), t.set(a, m));
1150
+ else {
1151
+ p = m.v !== U;
1152
+ var C = r(() => tn(u));
1153
+ D(m, C);
1154
+ }
1155
+ var f = Reflect.getOwnPropertyDescriptor(l, a);
1156
+ if (f?.set && f.set.call(d, u), !p) {
1157
+ if (i && typeof a == "string") {
1158
+ var g = (
1159
+ /** @type {Source<number>} */
1160
+ t.get("length")
1161
+ ), K = Number(a);
1162
+ Number.isInteger(K) && K >= g.v && D(g, K + 1);
1163
+ }
1164
+ nt(o);
1165
+ }
1166
+ return !0;
1167
+ },
1168
+ ownKeys(l) {
1169
+ _(o);
1170
+ var a = Reflect.ownKeys(l).filter((m) => {
1171
+ var p = t.get(m);
1172
+ return p === void 0 || p.v !== U;
1173
+ });
1174
+ for (var [u, d] of t)
1175
+ d.v !== U && !(u in l) && a.push(u);
1176
+ return a;
1177
+ },
1178
+ setPrototypeOf() {
1179
+ Ns();
1180
+ }
1181
+ }
1182
+ );
1183
+ }
1184
+ var Oi, Eo, $o, Ao;
1185
+ function ri() {
1186
+ if (Oi === void 0) {
1187
+ Oi = window, Eo = /Firefox/.test(navigator.userAgent);
1188
+ var e = Element.prototype, n = Node.prototype, t = Text.prototype;
1189
+ $o = Cn(n, "firstChild").get, Ao = Cn(n, "nextSibling").get, Ni(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Ni(t) && (t.__t = void 0);
1190
+ }
1191
+ }
1192
+ function ee(e = "") {
1193
+ return document.createTextNode(e);
1194
+ }
1195
+ // @__NO_SIDE_EFFECTS__
1196
+ function Un(e) {
1197
+ return (
1198
+ /** @type {TemplateNode | null} */
1199
+ $o.call(e)
1200
+ );
1201
+ }
1202
+ // @__NO_SIDE_EFFECTS__
1203
+ function Te(e) {
1204
+ return (
1205
+ /** @type {TemplateNode | null} */
1206
+ Ao.call(e)
1207
+ );
1208
+ }
1209
+ function z(e, n) {
1210
+ if (!S)
1211
+ return /* @__PURE__ */ Un(e);
1212
+ var t = /* @__PURE__ */ Un(E);
1213
+ if (t === null)
1214
+ t = E.appendChild(ee());
1215
+ else if (n && t.nodeType !== at) {
1216
+ var i = ee();
1217
+ return t?.before(i), J(i), i;
1218
+ }
1219
+ return n && Bt(
1220
+ /** @type {Text} */
1221
+ t
1222
+ ), J(t), t;
1223
+ }
1224
+ function Kt(e, n = !1) {
1225
+ if (!S) {
1226
+ var t = /* @__PURE__ */ Un(e);
1227
+ return t instanceof Comment && t.data === "" ? /* @__PURE__ */ Te(t) : t;
1228
+ }
1229
+ if (n) {
1230
+ if (E?.nodeType !== at) {
1231
+ var i = ee();
1232
+ return E?.before(i), J(i), i;
1233
+ }
1234
+ Bt(
1235
+ /** @type {Text} */
1236
+ E
1237
+ );
1238
+ }
1239
+ return E;
1240
+ }
1241
+ function M(e, n = 1, t = !1) {
1242
+ let i = S ? E : e;
1243
+ for (var o; n--; )
1244
+ o = i, i = /** @type {TemplateNode} */
1245
+ /* @__PURE__ */ Te(i);
1246
+ if (!S)
1247
+ return i;
1248
+ if (t) {
1249
+ if (i?.nodeType !== at) {
1250
+ var s = ee();
1251
+ return i === null ? o?.after(s) : i.before(s), J(s), s;
1252
+ }
1253
+ Bt(
1254
+ /** @type {Text} */
1255
+ i
1256
+ );
1257
+ }
1258
+ return J(i), i;
1259
+ }
1260
+ function zo(e) {
1261
+ e.textContent = "";
1262
+ }
1263
+ function Ro() {
1264
+ return !1;
1265
+ }
1266
+ function Bt(e) {
1267
+ if (
1268
+ /** @type {string} */
1269
+ e.nodeValue.length < 65536
1270
+ )
1271
+ return;
1272
+ let n = e.nextSibling;
1273
+ for (; n !== null && n.nodeType === at; )
1274
+ n.remove(), e.nodeValue += /** @type {string} */
1275
+ n.nodeValue, n = e.nextSibling;
1276
+ }
1277
+ function yi(e) {
1278
+ var n = w, t = $;
1279
+ me(null), Re(null);
1280
+ try {
1281
+ return e();
1282
+ } finally {
1283
+ me(n), Re(t);
1284
+ }
1285
+ }
1286
+ function Qs(e) {
1287
+ $ === null && (w === null && zs(), As()), rn && $s();
1288
+ }
1289
+ function Zs(e, n) {
1290
+ var t = n.last;
1291
+ t === null ? n.last = n.first = e : (t.next = e, e.prev = t, n.last = e);
1292
+ }
1293
+ function Ne(e, n, t) {
1294
+ var i = $;
1295
+ i !== null && (i.f & le) !== 0 && (e |= le);
1296
+ var o = {
1297
+ ctx: ae,
1298
+ deps: null,
1299
+ nodes: null,
1300
+ f: e | Y | fe,
1301
+ first: null,
1302
+ fn: n,
1303
+ last: null,
1304
+ next: null,
1305
+ parent: i,
1306
+ b: i && i.b,
1307
+ prev: null,
1308
+ teardown: null,
1309
+ wv: 0,
1310
+ ac: null
1311
+ };
1312
+ if (t)
1313
+ try {
1314
+ tt(o), o.f |= Mt;
1315
+ } catch (l) {
1316
+ throw q(o), l;
1317
+ }
1318
+ else n !== null && Je(o);
1319
+ var s = o;
1320
+ if (t && s.deps === null && s.teardown === null && s.nodes === null && s.first === s.last && // either `null`, or a singular child
1321
+ (s.f & Sn) === 0 && (s = s.first, (e & qe) !== 0 && (e & Bn) !== 0 && s !== null && (s.f |= Bn)), s !== null && (s.parent = i, i !== null && Zs(s, i), w !== null && (w.f & X) !== 0 && (e & ln) === 0)) {
1322
+ var r = (
1323
+ /** @type {Derived} */
1324
+ w
1325
+ );
1326
+ (r.effects ?? (r.effects = [])).push(s);
1327
+ }
1328
+ return o;
1329
+ }
1330
+ function hi() {
1331
+ return w !== null && !ve;
1332
+ }
1333
+ function Co(e) {
1334
+ const n = Ne(Lt, null, !1);
1335
+ return P(n, H), n.teardown = e, n;
1336
+ }
1337
+ function li(e) {
1338
+ Qs();
1339
+ var n = (
1340
+ /** @type {Effect} */
1341
+ $.f
1342
+ ), t = !w && (n & we) !== 0 && (n & Mt) === 0;
1343
+ if (t) {
1344
+ var i = (
1345
+ /** @type {ComponentContext} */
1346
+ ae
1347
+ );
1348
+ (i.e ?? (i.e = [])).push(e);
1349
+ } else
1350
+ return To(e);
1351
+ }
1352
+ function To(e) {
1353
+ return Ne($t | ws, e, !1);
1354
+ }
1355
+ function er(e) {
1356
+ We.ensure();
1357
+ const n = Ne(ln | Sn, e, !0);
1358
+ return () => {
1359
+ q(n);
1360
+ };
1361
+ }
1362
+ function nr(e) {
1363
+ We.ensure();
1364
+ const n = Ne(ln | Sn, e, !0);
1365
+ return (t = {}) => new Promise((i) => {
1366
+ t.outro ? bn(n, () => {
1367
+ q(n), i(void 0);
1368
+ }) : (q(n), i(void 0));
1369
+ });
1370
+ }
1371
+ function No(e) {
1372
+ return Ne($t, e, !1);
1373
+ }
1374
+ function tr(e) {
1375
+ return Ne(fi | Sn, e, !0);
1376
+ }
1377
+ function gi(e, n = 0) {
1378
+ return Ne(Lt | n, e, !0);
1379
+ }
1380
+ function mt(e, n = [], t = [], i = []) {
1381
+ Ks(i, n, t, (o) => {
1382
+ Ne(Lt, () => e(...o.map(_)), !0);
1383
+ });
1384
+ }
1385
+ function bi(e, n = 0) {
1386
+ var t = Ne(qe | n, e, !0);
1387
+ return t;
1388
+ }
1389
+ function pe(e) {
1390
+ return Ne(we | Sn, e, !0);
1391
+ }
1392
+ function jo(e) {
1393
+ var n = e.teardown;
1394
+ if (n !== null) {
1395
+ const t = rn, i = w;
1396
+ Di(!0), me(null);
1397
+ try {
1398
+ n.call(null);
1399
+ } finally {
1400
+ Di(t), me(i);
1401
+ }
1402
+ }
1403
+ }
1404
+ function Lo(e, n = !1) {
1405
+ var t = e.first;
1406
+ for (e.first = e.last = null; t !== null; ) {
1407
+ const o = t.ac;
1408
+ o !== null && yi(() => {
1409
+ o.abort(Rn);
1410
+ });
1411
+ var i = t.next;
1412
+ (t.f & ln) !== 0 ? t.parent = null : q(t, n), t = i;
1413
+ }
1414
+ }
1415
+ function ir(e) {
1416
+ for (var n = e.first; n !== null; ) {
1417
+ var t = n.next;
1418
+ (n.f & we) === 0 && q(n), n = t;
1419
+ }
1420
+ }
1421
+ function q(e, n = !0) {
1422
+ var t = !1;
1423
+ (n || (e.f & no) !== 0) && e.nodes !== null && e.nodes.end !== null && (or(
1424
+ e.nodes.start,
1425
+ /** @type {TemplateNode} */
1426
+ e.nodes.end
1427
+ ), t = !0), Lo(e, n && !t), zt(e, 0), P(e, Xe);
1428
+ var i = e.nodes && e.nodes.t;
1429
+ if (i !== null)
1430
+ for (const s of i)
1431
+ s.stop();
1432
+ jo(e);
1433
+ var o = e.parent;
1434
+ o !== null && o.first !== null && Mo(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1435
+ }
1436
+ function or(e, n) {
1437
+ for (; e !== null; ) {
1438
+ var t = e === n ? null : /* @__PURE__ */ Te(e);
1439
+ e.remove(), e = t;
1440
+ }
1441
+ }
1442
+ function Mo(e) {
1443
+ var n = e.parent, t = e.prev, i = e.next;
1444
+ t !== null && (t.next = i), i !== null && (i.prev = t), n !== null && (n.first === e && (n.first = i), n.last === e && (n.last = t));
1445
+ }
1446
+ function bn(e, n, t = !0) {
1447
+ var i = [];
1448
+ Oo(e, i, !0);
1449
+ var o = () => {
1450
+ t && q(e), n && n();
1451
+ }, s = i.length;
1452
+ if (s > 0) {
1453
+ var r = () => --s || o();
1454
+ for (var l of i)
1455
+ l.out(r);
1456
+ } else
1457
+ o();
1458
+ }
1459
+ function Oo(e, n, t) {
1460
+ if ((e.f & le) === 0) {
1461
+ e.f ^= le;
1462
+ var i = e.nodes && e.nodes.t;
1463
+ if (i !== null)
1464
+ for (const l of i)
1465
+ (l.is_global || t) && n.push(l);
1466
+ for (var o = e.first; o !== null; ) {
1467
+ var s = o.next, r = (o.f & Bn) !== 0 || // If this is a branch effect without a block effect parent,
1468
+ // it means the parent block effect was pruned. In that case,
1469
+ // transparency information was transferred to the branch effect.
1470
+ (o.f & we) !== 0 && (e.f & qe) !== 0;
1471
+ Oo(o, n, r ? t : !1), o = s;
1472
+ }
1473
+ }
1474
+ }
1475
+ function vi(e) {
1476
+ Do(e, !0);
1477
+ }
1478
+ function Do(e, n) {
1479
+ if ((e.f & le) !== 0) {
1480
+ e.f ^= le, (e.f & H) === 0 && (P(e, Y), Je(e));
1481
+ for (var t = e.first; t !== null; ) {
1482
+ var i = t.next, o = (t.f & Bn) !== 0 || (t.f & we) !== 0;
1483
+ Do(t, o ? n : !1), t = i;
1484
+ }
1485
+ var s = e.nodes && e.nodes.t;
1486
+ if (s !== null)
1487
+ for (const r of s)
1488
+ (r.is_global || n) && r.in();
1489
+ }
1490
+ }
1491
+ function Po(e, n) {
1492
+ if (e.nodes)
1493
+ for (var t = e.nodes.start, i = e.nodes.end; t !== null; ) {
1494
+ var o = t === i ? null : /* @__PURE__ */ Te(t);
1495
+ n.append(t), t = o;
1496
+ }
1497
+ }
1498
+ let xt = !1, rn = !1;
1499
+ function Di(e) {
1500
+ rn = e;
1501
+ }
1502
+ let w = null, ve = !1;
1503
+ function me(e) {
1504
+ w = e;
1505
+ }
1506
+ let $ = null;
1507
+ function Re(e) {
1508
+ $ = e;
1509
+ }
1510
+ let _e = null;
1511
+ function Io(e) {
1512
+ w !== null && (_e === null ? _e = [e] : _e.push(e));
1513
+ }
1514
+ let Z = null, ie = 0, ce = null;
1515
+ function sr(e) {
1516
+ ce = e;
1517
+ }
1518
+ let Bo = 1, pn = 0, vn = pn;
1519
+ function Pi(e) {
1520
+ vn = e;
1521
+ }
1522
+ function Ho() {
1523
+ return ++Bo;
1524
+ }
1525
+ function ct(e) {
1526
+ var n = e.f;
1527
+ if ((n & Y) !== 0)
1528
+ return !0;
1529
+ if (n & X && (e.f &= ~wn), (n & Ye) !== 0) {
1530
+ for (var t = (
1531
+ /** @type {Value[]} */
1532
+ e.deps
1533
+ ), i = t.length, o = 0; o < i; o++) {
1534
+ var s = t[o];
1535
+ if (ct(
1536
+ /** @type {Derived} */
1537
+ s
1538
+ ) && wo(
1539
+ /** @type {Derived} */
1540
+ s
1541
+ ), s.wv > e.wv)
1542
+ return !0;
1543
+ }
1544
+ (n & fe) !== 0 && // During time traveling we don't want to reset the status so that
1545
+ // traversal of the graph in the other batches still happens
1546
+ be === null && P(e, H);
1547
+ }
1548
+ return !1;
1549
+ }
1550
+ function Fo(e, n, t = !0) {
1551
+ var i = e.reactions;
1552
+ if (i !== null && !(_e !== null && In.call(_e, e)))
1553
+ for (var o = 0; o < i.length; o++) {
1554
+ var s = i[o];
1555
+ (s.f & X) !== 0 ? Fo(
1556
+ /** @type {Derived} */
1557
+ s,
1558
+ n,
1559
+ !1
1560
+ ) : n === s && (t ? P(s, Y) : (s.f & H) !== 0 && P(s, Ye), Je(
1561
+ /** @type {Effect} */
1562
+ s
1563
+ ));
1564
+ }
1565
+ }
1566
+ function Go(e) {
1567
+ var C;
1568
+ var n = Z, t = ie, i = ce, o = w, s = _e, r = ae, l = ve, a = vn, u = e.f;
1569
+ Z = /** @type {null | Value[]} */
1570
+ null, ie = 0, ce = null, w = (u & (we | ln)) === 0 ? e : null, _e = null, Hn(e.ctx), ve = !1, vn = ++pn, e.ac !== null && (yi(() => {
1571
+ e.ac.abort(Rn);
1572
+ }), e.ac = null);
1573
+ try {
1574
+ e.f |= Qt;
1575
+ var d = (
1576
+ /** @type {Function} */
1577
+ e.fn
1578
+ ), m = d(), p = e.deps, y = N?.is_fork;
1579
+ if (Z !== null) {
1580
+ var h;
1581
+ if (y || zt(e, ie), p !== null && ie > 0)
1582
+ for (p.length = ie + Z.length, h = 0; h < Z.length; h++)
1583
+ p[ie + h] = Z[h];
1584
+ else
1585
+ e.deps = p = Z;
1586
+ if (hi() && (e.f & fe) !== 0)
1587
+ for (h = ie; h < p.length; h++)
1588
+ ((C = p[h]).reactions ?? (C.reactions = [])).push(e);
1589
+ } else !y && p !== null && ie < p.length && (zt(e, ie), p.length = ie);
1590
+ if (lo() && ce !== null && !ve && p !== null && (e.f & (X | Ye | Y)) === 0)
1591
+ for (h = 0; h < /** @type {Source[]} */
1592
+ ce.length; h++)
1593
+ Fo(
1594
+ ce[h],
1595
+ /** @type {Effect} */
1596
+ e
1597
+ );
1598
+ if (o !== null && o !== e) {
1599
+ if (pn++, o.deps !== null)
1600
+ for (let f = 0; f < t; f += 1)
1601
+ o.deps[f].rv = pn;
1602
+ if (n !== null)
1603
+ for (const f of n)
1604
+ f.rv = pn;
1605
+ ce !== null && (i === null ? i = ce : i.push(.../** @type {Source[]} */
1606
+ ce));
1607
+ }
1608
+ return (e.f & on) !== 0 && (e.f ^= on), m;
1609
+ } catch (f) {
1610
+ return co(f);
1611
+ } finally {
1612
+ e.f ^= Qt, Z = n, ie = t, ce = i, w = o, _e = s, Hn(r), ve = l, vn = a;
1613
+ }
1614
+ }
1615
+ function rr(e, n) {
1616
+ let t = n.reactions;
1617
+ if (t !== null) {
1618
+ var i = ys.call(t, e);
1619
+ if (i !== -1) {
1620
+ var o = t.length - 1;
1621
+ o === 0 ? t = n.reactions = null : (t[i] = t[o], t.pop());
1622
+ }
1623
+ }
1624
+ if (t === null && (n.f & X) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1625
+ // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
1626
+ // allows us to skip the expensive work of disconnecting and immediately reconnecting it
1627
+ (Z === null || !In.call(Z, n))) {
1628
+ var s = (
1629
+ /** @type {Derived} */
1630
+ n
1631
+ );
1632
+ (s.f & fe) !== 0 && (s.f ^= fe, s.f &= ~wn), _i(s), vo(s), zt(s, 0);
1633
+ }
1634
+ }
1635
+ function zt(e, n) {
1636
+ var t = e.deps;
1637
+ if (t !== null)
1638
+ for (var i = n; i < t.length; i++)
1639
+ rr(e, t[i]);
1640
+ }
1641
+ function tt(e) {
1642
+ var n = e.f;
1643
+ if ((n & Xe) === 0) {
1644
+ P(e, H);
1645
+ var t = $, i = xt;
1646
+ $ = e, xt = !0;
1647
+ try {
1648
+ (n & (qe | eo)) !== 0 ? ir(e) : Lo(e), jo(e);
1649
+ var o = Go(e);
1650
+ e.teardown = typeof o == "function" ? o : null, e.wv = Bo;
1651
+ var s;
1652
+ Vt && Ps && (e.f & Y) !== 0 && e.deps;
1653
+ } finally {
1654
+ xt = i, $ = t;
1655
+ }
1656
+ }
1657
+ }
1658
+ function _(e) {
1659
+ var n = e.f, t = (n & X) !== 0;
1660
+ if (w !== null && !ve) {
1661
+ var i = $ !== null && ($.f & Xe) !== 0;
1662
+ if (!i && (_e === null || !In.call(_e, e))) {
1663
+ var o = w.deps;
1664
+ if ((w.f & Qt) !== 0)
1665
+ e.rv < pn && (e.rv = pn, Z === null && o !== null && o[ie] === e ? ie++ : Z === null ? Z = [e] : Z.push(e));
1666
+ else {
1667
+ (w.deps ?? (w.deps = [])).push(e);
1668
+ var s = e.reactions;
1669
+ s === null ? e.reactions = [w] : In.call(s, w) || s.push(w);
1670
+ }
1671
+ }
1672
+ }
1673
+ if (rn && sn.has(e))
1674
+ return sn.get(e);
1675
+ if (t) {
1676
+ var r = (
1677
+ /** @type {Derived} */
1678
+ e
1679
+ );
1680
+ if (rn) {
1681
+ var l = r.v;
1682
+ return ((r.f & H) === 0 && r.reactions !== null || Xo(r)) && (l = mi(r)), sn.set(r, l), l;
1683
+ }
1684
+ var a = (r.f & fe) === 0 && !ve && w !== null && (xt || (w.f & fe) !== 0), u = r.deps === null;
1685
+ ct(r) && (a && (r.f |= fe), wo(r)), a && !u && Uo(r);
1686
+ }
1687
+ if (be?.has(e))
1688
+ return be.get(e);
1689
+ if ((e.f & on) !== 0)
1690
+ throw e.v;
1691
+ return e.v;
1692
+ }
1693
+ function Uo(e) {
1694
+ if (e.deps !== null) {
1695
+ e.f |= fe;
1696
+ for (const n of e.deps)
1697
+ (n.reactions ?? (n.reactions = [])).push(e), (n.f & X) !== 0 && (n.f & fe) === 0 && Uo(
1698
+ /** @type {Derived} */
1699
+ n
1700
+ );
1701
+ }
1702
+ }
1703
+ function Xo(e) {
1704
+ if (e.v === U) return !0;
1705
+ if (e.deps === null) return !1;
1706
+ for (const n of e.deps)
1707
+ if (sn.has(n) || (n.f & X) !== 0 && Xo(
1708
+ /** @type {Derived} */
1709
+ n
1710
+ ))
1711
+ return !0;
1712
+ return !1;
1713
+ }
1714
+ function wi(e) {
1715
+ var n = ve;
1716
+ try {
1717
+ return ve = !0, e();
1718
+ } finally {
1719
+ ve = n;
1720
+ }
1721
+ }
1722
+ const Ko = /* @__PURE__ */ new Set(), ai = /* @__PURE__ */ new Set();
1723
+ function lr(e, n, t, i = {}) {
1724
+ function o(s) {
1725
+ if (i.capture || Qn.call(n, s), !s.cancelBubble)
1726
+ return yi(() => t?.call(this, s));
1727
+ }
1728
+ return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? Ke(() => {
1729
+ n.addEventListener(e, o, i);
1730
+ }) : n.addEventListener(e, o, i), o;
1731
+ }
1732
+ function ar(e, n, t, i, o) {
1733
+ var s = { capture: i, passive: o }, r = lr(e, n, t, s);
1734
+ (n === document.body || // @ts-ignore
1735
+ n === window || // @ts-ignore
1736
+ n === document || // Firefox has quirky behavior, it can happen that we still get "canplay" events when the element is already removed
1737
+ n instanceof HTMLMediaElement) && Co(() => {
1738
+ n.removeEventListener(e, r, s);
1739
+ });
1740
+ }
1741
+ function cr(e) {
1742
+ for (var n = 0; n < e.length; n++)
1743
+ Ko.add(e[n]);
1744
+ for (var t of ai)
1745
+ t(e);
1746
+ }
1747
+ let Ii = null;
1748
+ function Qn(e) {
1749
+ var n = this, t = (
1750
+ /** @type {Node} */
1751
+ n.ownerDocument
1752
+ ), i = e.type, o = e.composedPath?.() || [], s = (
1753
+ /** @type {null | Element} */
1754
+ o[0] || e.target
1755
+ );
1756
+ Ii = e;
1757
+ var r = 0, l = Ii === e && e.__root;
1758
+ if (l) {
1759
+ var a = o.indexOf(l);
1760
+ if (a !== -1 && (n === document || n === /** @type {any} */
1761
+ window)) {
1762
+ e.__root = n;
1763
+ return;
1764
+ }
1765
+ var u = o.indexOf(n);
1766
+ if (u === -1)
1767
+ return;
1768
+ a <= u && (r = a);
1769
+ }
1770
+ if (s = /** @type {Element} */
1771
+ o[r] || e.target, s !== n) {
1772
+ Et(e, "currentTarget", {
1773
+ configurable: !0,
1774
+ get() {
1775
+ return s || t;
1776
+ }
1777
+ });
1778
+ var d = w, m = $;
1779
+ me(null), Re(null);
1780
+ try {
1781
+ for (var p, y = []; s !== null; ) {
1782
+ var h = s.assignedSlot || s.parentNode || /** @type {any} */
1783
+ s.host || null;
1784
+ try {
1785
+ var C = s["__" + i];
1786
+ C != null && (!/** @type {any} */
1787
+ s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
1788
+ // -> the target could not have been disabled because it emits the event in the first place
1789
+ e.target === s) && C.call(s, e);
1790
+ } catch (f) {
1791
+ p ? y.push(f) : p = f;
1792
+ }
1793
+ if (e.cancelBubble || h === n || h === null)
1794
+ break;
1795
+ s = h;
1796
+ }
1797
+ if (p) {
1798
+ for (let f of y)
1799
+ queueMicrotask(() => {
1800
+ throw f;
1801
+ });
1802
+ throw p;
1803
+ }
1804
+ } finally {
1805
+ e.__root = n, delete e.currentTarget, me(d), Re(m);
1806
+ }
1807
+ }
1808
+ }
1809
+ function ur(e) {
1810
+ var n = document.createElement("template");
1811
+ return n.innerHTML = e.replaceAll("<!>", "<!---->"), n.content;
1812
+ }
1813
+ function kn(e, n) {
1814
+ var t = (
1815
+ /** @type {Effect} */
1816
+ $
1817
+ );
1818
+ t.nodes === null && (t.nodes = { start: e, end: n, a: null, t: null });
1819
+ }
1820
+ // @__NO_SIDE_EFFECTS__
1821
+ function Kn(e, n) {
1822
+ var t = (n & _s) !== 0, i, o = !e.startsWith("<!>");
1823
+ return () => {
1824
+ if (S)
1825
+ return kn(E, null), E;
1826
+ i === void 0 && (i = ur(o ? e : "<!>" + e), i = /** @type {TemplateNode} */
1827
+ /* @__PURE__ */ Un(i));
1828
+ var s = (
1829
+ /** @type {TemplateNode} */
1830
+ t || Eo ? document.importNode(i, !0) : i.cloneNode(!0)
1831
+ );
1832
+ return kn(s, s), s;
1833
+ };
1834
+ }
1835
+ function Wt(e = "") {
1836
+ if (!S) {
1837
+ var n = ee(e + "");
1838
+ return kn(n, n), n;
1839
+ }
1840
+ var t = E;
1841
+ return t.nodeType !== at ? (t.before(t = ee()), J(t)) : Bt(
1842
+ /** @type {Text} */
1843
+ t
1844
+ ), kn(t, t), t;
1845
+ }
1846
+ function Jt() {
1847
+ if (S)
1848
+ return kn(E, null), E;
1849
+ var e = document.createDocumentFragment(), n = document.createComment(""), t = ee();
1850
+ return e.append(n, t), kn(n, t), e;
1851
+ }
1852
+ function te(e, n) {
1853
+ if (S) {
1854
+ var t = (
1855
+ /** @type {Effect & { nodes: EffectNodes }} */
1856
+ $
1857
+ );
1858
+ ((t.f & Mt) === 0 || t.nodes.end === null) && (t.nodes.end = E), Dt();
1859
+ return;
1860
+ }
1861
+ e !== null && e.before(
1862
+ /** @type {Node} */
1863
+ n
1864
+ );
1865
+ }
1866
+ const dr = ["touchstart", "touchmove"];
1867
+ function pr(e) {
1868
+ return dr.includes(e);
1869
+ }
1870
+ function he(e, n) {
1871
+ var t = n == null ? "" : typeof n == "object" ? n + "" : n;
1872
+ t !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = t, e.nodeValue = t + "");
1873
+ }
1874
+ function Wo(e, n) {
1875
+ return Jo(e, n);
1876
+ }
1877
+ function fr(e, n) {
1878
+ ri(), n.intro = n.intro ?? !1;
1879
+ const t = n.target, i = S, o = E;
1880
+ try {
1881
+ for (var s = /* @__PURE__ */ Un(t); s && (s.nodeType !== Xn || /** @type {Comment} */
1882
+ s.data !== Yi); )
1883
+ s = /* @__PURE__ */ Te(s);
1884
+ if (!s)
1885
+ throw Pn;
1886
+ Ue(!0), J(
1887
+ /** @type {Comment} */
1888
+ s
1889
+ );
1890
+ const r = Jo(e, { ...n, anchor: s });
1891
+ return Ue(!1), /** @type {Exports} */
1892
+ r;
1893
+ } catch (r) {
1894
+ if (r instanceof Error && r.message.split(`
1895
+ `).some((l) => l.startsWith("https://svelte.dev/e/")))
1896
+ throw r;
1897
+ return r !== Pn && console.warn("Failed to hydrate: ", r), n.recover === !1 && Cs(), ri(), zo(t), Ue(!1), Wo(e, n);
1898
+ } finally {
1899
+ Ue(i), J(o);
1900
+ }
1901
+ }
1902
+ const zn = /* @__PURE__ */ new Map();
1903
+ function Jo(e, { target: n, anchor: t, props: i = {}, events: o, context: s, intro: r = !0 }) {
1904
+ ri();
1905
+ var l = /* @__PURE__ */ new Set(), a = (m) => {
1906
+ for (var p = 0; p < m.length; p++) {
1907
+ var y = m[p];
1908
+ if (!l.has(y)) {
1909
+ l.add(y);
1910
+ var h = pr(y);
1911
+ n.addEventListener(y, Qn, { passive: h });
1912
+ var C = zn.get(y);
1913
+ C === void 0 ? (document.addEventListener(y, Qn, { passive: h }), zn.set(y, 1)) : zn.set(y, C + 1);
1914
+ }
1915
+ }
1916
+ };
1917
+ a(jt(Ko)), ai.add(a);
1918
+ var u = void 0, d = nr(() => {
1919
+ var m = t ?? n.appendChild(ee());
1920
+ return Us(
1921
+ /** @type {TemplateNode} */
1922
+ m,
1923
+ {
1924
+ pending: () => {
1925
+ }
1926
+ },
1927
+ (p) => {
1928
+ if (s) {
1929
+ so({});
1930
+ var y = (
1931
+ /** @type {ComponentContext} */
1932
+ ae
1933
+ );
1934
+ y.c = s;
1935
+ }
1936
+ if (o && (i.$$events = o), S && kn(
1937
+ /** @type {TemplateNode} */
1938
+ p,
1939
+ null
1940
+ ), u = e(p, i) || {}, S && ($.nodes.end = E, E === null || E.nodeType !== Xn || /** @type {Comment} */
1941
+ E.data !== di))
1942
+ throw Ot(), Pn;
1943
+ s && ro();
1944
+ }
1945
+ ), () => {
1946
+ for (var p of l) {
1947
+ n.removeEventListener(p, Qn);
1948
+ var y = (
1949
+ /** @type {number} */
1950
+ zn.get(p)
1951
+ );
1952
+ --y === 0 ? (document.removeEventListener(p, Qn), zn.delete(p)) : zn.set(p, y);
1953
+ }
1954
+ ai.delete(a), m !== t && m.parentNode?.removeChild(m);
1955
+ };
1956
+ });
1957
+ return ci.set(u, d), u;
1958
+ }
1959
+ let ci = /* @__PURE__ */ new WeakMap();
1960
+ function _r(e, n) {
1961
+ const t = ci.get(e);
1962
+ return t ? (ci.delete(e), t(n)) : Promise.resolve();
1963
+ }
1964
+ var ge, ze, se, gn, rt, lt, Tt;
1965
+ class mr {
1966
+ /**
1967
+ * @param {TemplateNode} anchor
1968
+ * @param {boolean} transition
1969
+ */
1970
+ constructor(n, t = !0) {
1971
+ /** @type {TemplateNode} */
1972
+ j(this, "anchor");
1973
+ /** @type {Map<Batch, Key>} */
1974
+ v(this, ge, /* @__PURE__ */ new Map());
1975
+ /**
1976
+ * Map of keys to effects that are currently rendered in the DOM.
1977
+ * These effects are visible and actively part of the document tree.
1978
+ * Example:
1979
+ * ```
1980
+ * {#if condition}
1981
+ * foo
1982
+ * {:else}
1983
+ * bar
1984
+ * {/if}
1985
+ * ```
1986
+ * Can result in the entries `true->Effect` and `false->Effect`
1987
+ * @type {Map<Key, Effect>}
1988
+ */
1989
+ v(this, ze, /* @__PURE__ */ new Map());
1990
+ /**
1991
+ * Similar to #onscreen with respect to the keys, but contains branches that are not yet
1992
+ * in the DOM, because their insertion is deferred.
1993
+ * @type {Map<Key, Branch>}
1994
+ */
1995
+ v(this, se, /* @__PURE__ */ new Map());
1996
+ /**
1997
+ * Keys of effects that are currently outroing
1998
+ * @type {Set<Key>}
1999
+ */
2000
+ v(this, gn, /* @__PURE__ */ new Set());
2001
+ /**
2002
+ * Whether to pause (i.e. outro) on change, or destroy immediately.
2003
+ * This is necessary for `<svelte:element>`
2004
+ */
2005
+ v(this, rt, !0);
2006
+ v(this, lt, () => {
2007
+ var n = (
2008
+ /** @type {Batch} */
2009
+ N
2010
+ );
2011
+ if (c(this, ge).has(n)) {
2012
+ var t = (
2013
+ /** @type {Key} */
2014
+ c(this, ge).get(n)
2015
+ ), i = c(this, ze).get(t);
2016
+ if (i)
2017
+ vi(i), c(this, gn).delete(t);
2018
+ else {
2019
+ var o = c(this, se).get(t);
2020
+ o && (c(this, ze).set(t, o.effect), c(this, se).delete(t), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), i = o.effect);
2021
+ }
2022
+ for (const [s, r] of c(this, ge)) {
2023
+ if (c(this, ge).delete(s), s === n)
2024
+ break;
2025
+ const l = c(this, se).get(r);
2026
+ l && (q(l.effect), c(this, se).delete(r));
2027
+ }
2028
+ for (const [s, r] of c(this, ze)) {
2029
+ if (s === t || c(this, gn).has(s)) continue;
2030
+ const l = () => {
2031
+ if (Array.from(c(this, ge).values()).includes(s)) {
2032
+ var u = document.createDocumentFragment();
2033
+ Po(r, u), u.append(ee()), c(this, se).set(s, { effect: r, fragment: u });
2034
+ } else
2035
+ q(r);
2036
+ c(this, gn).delete(s), c(this, ze).delete(s);
2037
+ };
2038
+ c(this, rt) || !i ? (c(this, gn).add(s), bn(r, l, !1)) : l();
2039
+ }
2040
+ }
2041
+ });
2042
+ /**
2043
+ * @param {Batch} batch
2044
+ */
2045
+ v(this, Tt, (n) => {
2046
+ c(this, ge).delete(n);
2047
+ const t = Array.from(c(this, ge).values());
2048
+ for (const [i, o] of c(this, se))
2049
+ t.includes(i) || (q(o.effect), c(this, se).delete(i));
2050
+ });
2051
+ this.anchor = n, b(this, rt, t);
2052
+ }
2053
+ /**
2054
+ *
2055
+ * @param {any} key
2056
+ * @param {null | ((target: TemplateNode) => void)} fn
2057
+ */
2058
+ ensure(n, t) {
2059
+ var i = (
2060
+ /** @type {Batch} */
2061
+ N
2062
+ ), o = Ro();
2063
+ if (t && !c(this, ze).has(n) && !c(this, se).has(n))
2064
+ if (o) {
2065
+ var s = document.createDocumentFragment(), r = ee();
2066
+ s.append(r), c(this, se).set(n, {
2067
+ effect: pe(() => t(r)),
2068
+ fragment: s
2069
+ });
2070
+ } else
2071
+ c(this, ze).set(
2072
+ n,
2073
+ pe(() => t(this.anchor))
2074
+ );
2075
+ if (c(this, ge).set(i, n), o) {
2076
+ for (const [l, a] of c(this, ze))
2077
+ l === n ? i.skipped_effects.delete(a) : i.skipped_effects.add(a);
2078
+ for (const [l, a] of c(this, se))
2079
+ l === n ? i.skipped_effects.delete(a.effect) : i.skipped_effects.add(a.effect);
2080
+ i.oncommit(c(this, lt)), i.ondiscard(c(this, Tt));
2081
+ } else
2082
+ S && (this.anchor = E), c(this, lt).call(this);
2083
+ }
2084
+ }
2085
+ ge = new WeakMap(), ze = new WeakMap(), se = new WeakMap(), gn = new WeakMap(), rt = new WeakMap(), lt = new WeakMap(), Tt = new WeakMap();
2086
+ function yr(e) {
2087
+ ae === null && Ss(), li(() => {
2088
+ const n = wi(e);
2089
+ if (typeof n == "function") return (
2090
+ /** @type {() => void} */
2091
+ n
2092
+ );
2093
+ });
2094
+ }
2095
+ function qn(e, n, t = !1) {
2096
+ S && Dt();
2097
+ var i = new mr(e), o = t ? Bn : 0;
2098
+ function s(r, l) {
2099
+ if (S) {
2100
+ const u = to(e) === Nt;
2101
+ if (r === u) {
2102
+ var a = At();
2103
+ J(a), i.anchor = a, Ue(!1), i.ensure(r, l), Ue(!0);
2104
+ return;
2105
+ }
2106
+ }
2107
+ i.ensure(r, l);
2108
+ }
2109
+ bi(() => {
2110
+ var r = !1;
2111
+ n((l, a = !0) => {
2112
+ r = !0, s(a, l);
2113
+ }), r || s(!1, null);
2114
+ }, o);
2115
+ }
2116
+ function Bi(e, n) {
2117
+ return n;
2118
+ }
2119
+ function hr(e, n, t) {
2120
+ for (var i = [], o = n.length, s, r = n.length, l = 0; l < o; l++) {
2121
+ let m = n[l];
2122
+ bn(
2123
+ m,
2124
+ () => {
2125
+ if (s) {
2126
+ if (s.pending.delete(m), s.done.add(m), s.pending.size === 0) {
2127
+ var p = (
2128
+ /** @type {Set<EachOutroGroup>} */
2129
+ e.outrogroups
2130
+ );
2131
+ ui(jt(s.done)), p.delete(s), p.size === 0 && (e.outrogroups = null);
2132
+ }
2133
+ } else
2134
+ r -= 1;
2135
+ },
2136
+ !1
2137
+ );
2138
+ }
2139
+ if (r === 0) {
2140
+ var a = i.length === 0 && t !== null;
2141
+ if (a) {
2142
+ var u = (
2143
+ /** @type {Element} */
2144
+ t
2145
+ ), d = (
2146
+ /** @type {Element} */
2147
+ u.parentNode
2148
+ );
2149
+ zo(d), d.append(u), e.items.clear();
2150
+ }
2151
+ ui(n, !a);
2152
+ } else
2153
+ s = {
2154
+ pending: new Set(n),
2155
+ done: /* @__PURE__ */ new Set()
2156
+ }, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(s);
2157
+ }
2158
+ function ui(e, n = !0) {
2159
+ for (var t = 0; t < e.length; t++)
2160
+ q(e[t], n);
2161
+ }
2162
+ var Hi;
2163
+ function yt(e, n, t, i, o, s = null) {
2164
+ var r = e, l = /* @__PURE__ */ new Map(), a = (n & qi) !== 0;
2165
+ if (a) {
2166
+ var u = (
2167
+ /** @type {Element} */
2168
+ e
2169
+ );
2170
+ r = S ? J(/* @__PURE__ */ Un(u)) : u.appendChild(ee());
2171
+ }
2172
+ S && Dt();
2173
+ var d = null, m = /* @__PURE__ */ qs(() => {
2174
+ var g = t();
2175
+ return Vi(g) ? g : g == null ? [] : jt(g);
2176
+ }), p, y = !0;
2177
+ function h() {
2178
+ f.fallback = d, gr(f, p, r, n, i), d !== null && (p.length === 0 ? (d.f & Ge) === 0 ? vi(d) : (d.f ^= Ge, Zn(d, null, r)) : bn(d, () => {
2179
+ d = null;
2180
+ }));
2181
+ }
2182
+ var C = bi(() => {
2183
+ p = /** @type {V[]} */
2184
+ _(m);
2185
+ var g = p.length;
2186
+ let K = !1;
2187
+ if (S) {
2188
+ var Ve = to(r) === Nt;
2189
+ Ve !== (g === 0) && (r = At(), J(r), Ue(!1), K = !0);
2190
+ }
2191
+ for (var ne = /* @__PURE__ */ new Set(), je = (
2192
+ /** @type {Batch} */
2193
+ N
2194
+ ), Le = Ro(), W = 0; W < g; W += 1) {
2195
+ S && E.nodeType === Xn && /** @type {Comment} */
2196
+ E.data === di && (r = /** @type {Comment} */
2197
+ E, K = !0, Ue(!1));
2198
+ var xe = p[W], Qe = i(xe, W), I = y ? null : l.get(Qe);
2199
+ I ? (I.v && Gn(I.v, xe), I.i && Gn(I.i, W), Le && je.skipped_effects.delete(I.e)) : (I = br(
2200
+ l,
2201
+ y ? r : Hi ?? (Hi = ee()),
2202
+ xe,
2203
+ Qe,
2204
+ W,
2205
+ o,
2206
+ n,
2207
+ t
2208
+ ), y || (I.e.f |= Ge), l.set(Qe, I)), ne.add(Qe);
2209
+ }
2210
+ if (g === 0 && s && !d && (y ? d = pe(() => s(r)) : (d = pe(() => s(Hi ?? (Hi = ee()))), d.f |= Ge)), S && g > 0 && J(At()), !y)
2211
+ if (Le) {
2212
+ for (const [ut, Ht] of l)
2213
+ ne.has(ut) || je.skipped_effects.add(Ht.e);
2214
+ je.oncommit(h), je.ondiscard(() => {
2215
+ });
2216
+ } else
2217
+ h();
2218
+ K && Ue(!0), _(m);
2219
+ }), f = { effect: C, items: l, outrogroups: null, fallback: d };
2220
+ y = !1, S && (r = E);
2221
+ }
2222
+ function Yn(e) {
2223
+ for (; e !== null && (e.f & we) === 0; )
2224
+ e = e.next;
2225
+ return e;
2226
+ }
2227
+ function gr(e, n, t, i, o) {
2228
+ var s = (i & ps) !== 0, r = n.length, l = e.items, a = Yn(e.effect.first), u, d = null, m, p = [], y = [], h, C, f, g;
2229
+ if (s)
2230
+ for (g = 0; g < r; g += 1)
2231
+ h = n[g], C = o(h, g), f = /** @type {EachItem} */
2232
+ l.get(C).e, (f.f & Ge) === 0 && (f.nodes?.a?.measure(), (m ?? (m = /* @__PURE__ */ new Set())).add(f));
2233
+ for (g = 0; g < r; g += 1) {
2234
+ if (h = n[g], C = o(h, g), f = /** @type {EachItem} */
2235
+ l.get(C).e, e.outrogroups !== null)
2236
+ for (const I of e.outrogroups)
2237
+ I.pending.delete(f), I.done.delete(f);
2238
+ if ((f.f & Ge) !== 0)
2239
+ if (f.f ^= Ge, f === a)
2240
+ Zn(f, null, t);
2241
+ else {
2242
+ var K = d ? d.next : a;
2243
+ f === e.effect.last && (e.effect.last = f.prev), f.prev && (f.prev.next = f.next), f.next && (f.next.prev = f.prev), en(e, d, f), en(e, f, K), Zn(f, K, t), d = f, p = [], y = [], a = Yn(d.next);
2244
+ continue;
2245
+ }
2246
+ if ((f.f & le) !== 0 && (vi(f), s && (f.nodes?.a?.unfix(), (m ?? (m = /* @__PURE__ */ new Set())).delete(f))), f !== a) {
2247
+ if (u !== void 0 && u.has(f)) {
2248
+ if (p.length < y.length) {
2249
+ var Ve = y[0], ne;
2250
+ d = Ve.prev;
2251
+ var je = p[0], Le = p[p.length - 1];
2252
+ for (ne = 0; ne < p.length; ne += 1)
2253
+ Zn(p[ne], Ve, t);
2254
+ for (ne = 0; ne < y.length; ne += 1)
2255
+ u.delete(y[ne]);
2256
+ en(e, je.prev, Le.next), en(e, d, je), en(e, Le, Ve), a = Ve, d = Le, g -= 1, p = [], y = [];
2257
+ } else
2258
+ u.delete(f), Zn(f, a, t), en(e, f.prev, f.next), en(e, f, d === null ? e.effect.first : d.next), en(e, d, f), d = f;
2259
+ continue;
2260
+ }
2261
+ for (p = [], y = []; a !== null && a !== f; )
2262
+ (u ?? (u = /* @__PURE__ */ new Set())).add(a), y.push(a), a = Yn(a.next);
2263
+ if (a === null)
2264
+ continue;
2265
+ }
2266
+ (f.f & Ge) === 0 && p.push(f), d = f, a = Yn(f.next);
2267
+ }
2268
+ if (e.outrogroups !== null) {
2269
+ for (const I of e.outrogroups)
2270
+ I.pending.size === 0 && (ui(jt(I.done)), e.outrogroups?.delete(I));
2271
+ e.outrogroups.size === 0 && (e.outrogroups = null);
2272
+ }
2273
+ if (a !== null || u !== void 0) {
2274
+ var W = [];
2275
+ if (u !== void 0)
2276
+ for (f of u)
2277
+ (f.f & le) === 0 && W.push(f);
2278
+ for (; a !== null; )
2279
+ (a.f & le) === 0 && a !== e.fallback && W.push(a), a = Yn(a.next);
2280
+ var xe = W.length;
2281
+ if (xe > 0) {
2282
+ var Qe = (i & qi) !== 0 && r === 0 ? t : null;
2283
+ if (s) {
2284
+ for (g = 0; g < xe; g += 1)
2285
+ W[g].nodes?.a?.measure();
2286
+ for (g = 0; g < xe; g += 1)
2287
+ W[g].nodes?.a?.fix();
2288
+ }
2289
+ hr(e, W, Qe);
2290
+ }
2291
+ }
2292
+ s && Ke(() => {
2293
+ if (m !== void 0)
2294
+ for (f of m)
2295
+ f.nodes?.a?.apply();
2296
+ });
2297
+ }
2298
+ function br(e, n, t, i, o, s, r, l) {
2299
+ var a = (r & us) !== 0 ? (r & fs) === 0 ? /* @__PURE__ */ ko(t, !1, !1) : xn(t) : null, u = (r & ds) !== 0 ? xn(o) : null;
2300
+ return {
2301
+ v: a,
2302
+ i: u,
2303
+ e: pe(() => (s(n, a ?? t, u ?? o, l), () => {
2304
+ e.delete(i);
2305
+ }))
2306
+ };
2307
+ }
2308
+ function Zn(e, n, t) {
2309
+ if (e.nodes)
2310
+ for (var i = e.nodes.start, o = e.nodes.end, s = n && (n.f & Ge) === 0 ? (
2311
+ /** @type {EffectNodes} */
2312
+ n.nodes.start
2313
+ ) : t; i !== null; ) {
2314
+ var r = (
2315
+ /** @type {TemplateNode} */
2316
+ /* @__PURE__ */ Te(i)
2317
+ );
2318
+ if (s.before(i), i === o)
2319
+ return;
2320
+ i = r;
2321
+ }
2322
+ }
2323
+ function en(e, n, t) {
2324
+ n === null ? e.effect.first = t : n.next = t, t === null ? e.effect.last = n : t.prev = n;
2325
+ }
2326
+ function vr(e, n) {
2327
+ No(() => {
2328
+ var t = e.getRootNode(), i = (
2329
+ /** @type {ShadowRoot} */
2330
+ t.host ? (
2331
+ /** @type {ShadowRoot} */
2332
+ t
2333
+ ) : (
2334
+ /** @type {Document} */
2335
+ t.head ?? /** @type {Document} */
2336
+ t.ownerDocument.head
2337
+ )
2338
+ );
2339
+ if (!i.querySelector("#" + n.hash)) {
2340
+ const o = document.createElement("style");
2341
+ o.id = n.hash, o.textContent = n.code, i.appendChild(o);
2342
+ }
2343
+ });
2344
+ }
2345
+ const Fi = [...`
2346
+ \r\f \v\uFEFF`];
2347
+ function wr(e, n, t) {
2348
+ var i = e == null ? "" : "" + e;
2349
+ if (n && (i = i ? i + " " + n : n), t) {
2350
+ for (var o in t)
2351
+ if (t[o])
2352
+ i = i ? i + " " + o : o;
2353
+ else if (i.length)
2354
+ for (var s = o.length, r = 0; (r = i.indexOf(o, r)) >= 0; ) {
2355
+ var l = r + s;
2356
+ (r === 0 || Fi.includes(i[r - 1])) && (l === i.length || Fi.includes(i[l])) ? i = (r === 0 ? "" : i.substring(0, r)) + i.substring(l + 1) : r = l;
2357
+ }
2358
+ }
2359
+ return i === "" ? null : i;
2360
+ }
2361
+ function xr(e, n) {
2362
+ return e == null ? null : String(e);
2363
+ }
2364
+ function ht(e, n, t, i, o, s) {
2365
+ var r = e.__className;
2366
+ if (S || r !== t || r === void 0) {
2367
+ var l = wr(t, i, s);
2368
+ (!S || l !== e.getAttribute("class")) && (l == null ? e.removeAttribute("class") : e.className = l), e.__className = t;
2369
+ } else if (s && o !== s)
2370
+ for (var a in s) {
2371
+ var u = !!s[a];
2372
+ (o == null || u !== !!o[a]) && e.classList.toggle(a, u);
2373
+ }
2374
+ return s;
2375
+ }
2376
+ function qt(e, n, t, i) {
2377
+ var o = e.__style;
2378
+ if (S || o !== n) {
2379
+ var s = xr(n);
2380
+ (!S || s !== e.getAttribute("style")) && (s == null ? e.removeAttribute("style") : e.style.cssText = s), e.__style = n;
2381
+ }
2382
+ return i;
2383
+ }
2384
+ const kr = /* @__PURE__ */ Symbol("is custom element"), Sr = /* @__PURE__ */ Symbol("is html");
2385
+ function Vn(e, n, t, i) {
2386
+ var o = Er(e);
2387
+ S && (o[n] = e.getAttribute(n), n === "src" || n === "srcset" || n === "href" && e.nodeName === "LINK") || o[n] !== (o[n] = t) && (n === "loading" && (e[ks] = t), t == null ? e.removeAttribute(n) : typeof t != "string" && $r(e).includes(n) ? e[n] = t : e.setAttribute(n, t));
2388
+ }
2389
+ function Er(e) {
2390
+ return (
2391
+ /** @type {Record<string | symbol, unknown>} **/
2392
+ // @ts-expect-error
2393
+ e.__attributes ?? (e.__attributes = {
2394
+ [kr]: e.nodeName.includes("-"),
2395
+ [Sr]: e.namespaceURI === ms
2396
+ })
2397
+ );
2398
+ }
2399
+ var Gi = /* @__PURE__ */ new Map();
2400
+ function $r(e) {
2401
+ var n = e.getAttribute("is") || e.nodeName, t = Gi.get(n);
2402
+ if (t) return t;
2403
+ Gi.set(n, t = []);
2404
+ for (var i, o = e, s = Element.prototype; s !== o; ) {
2405
+ i = hs(o);
2406
+ for (var r in i)
2407
+ i[r].set && t.push(r);
2408
+ o = Qi(o);
2409
+ }
2410
+ return t;
2411
+ }
2412
+ function Ui(e, n) {
2413
+ return e === n || e?.[gt] === n;
2414
+ }
2415
+ function Ar(e = {}, n, t, i) {
2416
+ return No(() => {
2417
+ var o, s;
2418
+ return gi(() => {
2419
+ o = s, s = [], wi(() => {
2420
+ e !== t(...s) && (n(e, ...s), o && Ui(t(...o), e) && n(null, ...o));
2421
+ });
2422
+ }), () => {
2423
+ Ke(() => {
2424
+ s && Ui(t(...s), e) && n(null, ...s);
2425
+ });
2426
+ };
2427
+ }), e;
2428
+ }
2429
+ function Yt(e, n, t, i) {
2430
+ var o = (
2431
+ /** @type {V} */
2432
+ i
2433
+ ), s = !0, r = () => (s && (s = !1, o = /** @type {V} */
2434
+ i), o), l;
2435
+ l = /** @type {V} */
2436
+ e[n], l === void 0 && i !== void 0 && (l = r());
2437
+ var a;
2438
+ a = () => {
2439
+ var p = (
2440
+ /** @type {V} */
2441
+ e[n]
2442
+ );
2443
+ return p === void 0 ? r() : (s = !0, p);
2444
+ };
2445
+ var u = !1, d = /* @__PURE__ */ It(() => (u = !1, a())), m = (
2446
+ /** @type {Effect} */
2447
+ $
2448
+ );
2449
+ return (
2450
+ /** @type {() => V} */
2451
+ (function(p, y) {
2452
+ if (arguments.length > 0) {
2453
+ const h = y ? _(d) : p;
2454
+ return D(d, h), u = !0, o !== void 0 && (o = h), p;
2455
+ }
2456
+ return rn && u || (m.f & Xe) !== 0 ? d.v : _(d);
2457
+ })
2458
+ );
2459
+ }
2460
+ function zr(e) {
2461
+ return new Rr(e);
2462
+ }
2463
+ var Fe, de;
2464
+ class Rr {
2465
+ /**
2466
+ * @param {ComponentConstructorOptions & {
2467
+ * component: any;
2468
+ * }} options
2469
+ */
2470
+ constructor(n) {
2471
+ /** @type {any} */
2472
+ v(this, Fe);
2473
+ /** @type {Record<string, any>} */
2474
+ v(this, de);
2475
+ var t = /* @__PURE__ */ new Map(), i = (s, r) => {
2476
+ var l = /* @__PURE__ */ ko(r, !1, !1);
2477
+ return t.set(s, l), l;
2478
+ };
2479
+ const o = new Proxy(
2480
+ { ...n.props || {}, $$events: {} },
2481
+ {
2482
+ get(s, r) {
2483
+ return _(t.get(r) ?? i(r, Reflect.get(s, r)));
2484
+ },
2485
+ has(s, r) {
2486
+ return r === xs ? !0 : (_(t.get(r) ?? i(r, Reflect.get(s, r))), Reflect.has(s, r));
2487
+ },
2488
+ set(s, r, l) {
2489
+ return D(t.get(r) ?? i(r, l), l), Reflect.set(s, r, l);
2490
+ }
2491
+ }
2492
+ );
2493
+ b(this, de, (n.hydrate ? fr : Wo)(n.component, {
2494
+ target: n.target,
2495
+ anchor: n.anchor,
2496
+ props: o,
2497
+ context: n.context,
2498
+ intro: n.intro ?? !1,
2499
+ recover: n.recover
2500
+ })), (!n?.props?.$$host || n.sync === !1) && bt(), b(this, Fe, o.$$events);
2501
+ for (const s of Object.keys(c(this, de)))
2502
+ s === "$set" || s === "$destroy" || s === "$on" || Et(this, s, {
2503
+ get() {
2504
+ return c(this, de)[s];
2505
+ },
2506
+ /** @param {any} value */
2507
+ set(r) {
2508
+ c(this, de)[s] = r;
2509
+ },
2510
+ enumerable: !0
2511
+ });
2512
+ c(this, de).$set = /** @param {Record<string, any>} next */
2513
+ (s) => {
2514
+ Object.assign(o, s);
2515
+ }, c(this, de).$destroy = () => {
2516
+ _r(c(this, de));
2517
+ };
2518
+ }
2519
+ /** @param {Record<string, any>} props */
2520
+ $set(n) {
2521
+ c(this, de).$set(n);
2522
+ }
2523
+ /**
2524
+ * @param {string} event
2525
+ * @param {(...args: any[]) => any} callback
2526
+ * @returns {any}
2527
+ */
2528
+ $on(n, t) {
2529
+ c(this, Fe)[n] = c(this, Fe)[n] || [];
2530
+ const i = (...o) => t.call(this, ...o);
2531
+ return c(this, Fe)[n].push(i), () => {
2532
+ c(this, Fe)[n] = c(this, Fe)[n].filter(
2533
+ /** @param {any} fn */
2534
+ (o) => o !== i
2535
+ );
2536
+ };
2537
+ }
2538
+ $destroy() {
2539
+ c(this, de).$destroy();
2540
+ }
2541
+ }
2542
+ Fe = new WeakMap(), de = new WeakMap();
2543
+ let qo;
2544
+ typeof HTMLElement == "function" && (qo = class extends HTMLElement {
2545
+ /**
2546
+ * @param {*} $$componentCtor
2547
+ * @param {*} $$slots
2548
+ * @param {ShadowRootInit | undefined} shadow_root_init
2549
+ */
2550
+ constructor(n, t, i) {
2551
+ super();
2552
+ /** The Svelte component constructor */
2553
+ j(this, "$$ctor");
2554
+ /** Slots */
2555
+ j(this, "$$s");
2556
+ /** @type {any} The Svelte component instance */
2557
+ j(this, "$$c");
2558
+ /** Whether or not the custom element is connected */
2559
+ j(this, "$$cn", !1);
2560
+ /** @type {Record<string, any>} Component props data */
2561
+ j(this, "$$d", {});
2562
+ /** `true` if currently in the process of reflecting component props back to attributes */
2563
+ j(this, "$$r", !1);
2564
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
2565
+ j(this, "$$p_d", {});
2566
+ /** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
2567
+ j(this, "$$l", {});
2568
+ /** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
2569
+ j(this, "$$l_u", /* @__PURE__ */ new Map());
2570
+ /** @type {any} The managed render effect for reflecting attributes */
2571
+ j(this, "$$me");
2572
+ /** @type {ShadowRoot | null} The ShadowRoot of the custom element */
2573
+ j(this, "$$shadowRoot", null);
2574
+ this.$$ctor = n, this.$$s = t, i && (this.$$shadowRoot = this.attachShadow(i));
2575
+ }
2576
+ /**
2577
+ * @param {string} type
2578
+ * @param {EventListenerOrEventListenerObject} listener
2579
+ * @param {boolean | AddEventListenerOptions} [options]
2580
+ */
2581
+ addEventListener(n, t, i) {
2582
+ if (this.$$l[n] = this.$$l[n] || [], this.$$l[n].push(t), this.$$c) {
2583
+ const o = this.$$c.$on(n, t);
2584
+ this.$$l_u.set(t, o);
2585
+ }
2586
+ super.addEventListener(n, t, i);
2587
+ }
2588
+ /**
2589
+ * @param {string} type
2590
+ * @param {EventListenerOrEventListenerObject} listener
2591
+ * @param {boolean | AddEventListenerOptions} [options]
2592
+ */
2593
+ removeEventListener(n, t, i) {
2594
+ if (super.removeEventListener(n, t, i), this.$$c) {
2595
+ const o = this.$$l_u.get(t);
2596
+ o && (o(), this.$$l_u.delete(t));
2597
+ }
2598
+ }
2599
+ async connectedCallback() {
2600
+ if (this.$$cn = !0, !this.$$c) {
2601
+ let n = function(o) {
2602
+ return (s) => {
2603
+ const r = document.createElement("slot");
2604
+ o !== "default" && (r.name = o), te(s, r);
2605
+ };
2606
+ };
2607
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
2608
+ return;
2609
+ const t = {}, i = Cr(this);
2610
+ for (const o of this.$$s)
2611
+ o in i && (o === "default" && !this.$$d.children ? (this.$$d.children = n(o), t.default = !0) : t[o] = n(o));
2612
+ for (const o of this.attributes) {
2613
+ const s = this.$$g_p(o.name);
2614
+ s in this.$$d || (this.$$d[s] = kt(s, o.value, this.$$p_d, "toProp"));
2615
+ }
2616
+ for (const o in this.$$p_d)
2617
+ !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
2618
+ this.$$c = zr({
2619
+ component: this.$$ctor,
2620
+ target: this.$$shadowRoot || this,
2621
+ props: {
2622
+ ...this.$$d,
2623
+ $$slots: t,
2624
+ $$host: this
2625
+ }
2626
+ }), this.$$me = er(() => {
2627
+ gi(() => {
2628
+ this.$$r = !0;
2629
+ for (const o of St(this.$$c)) {
2630
+ if (!this.$$p_d[o]?.reflect) continue;
2631
+ this.$$d[o] = this.$$c[o];
2632
+ const s = kt(
2633
+ o,
2634
+ this.$$d[o],
2635
+ this.$$p_d,
2636
+ "toAttribute"
2637
+ );
2638
+ s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
2639
+ }
2640
+ this.$$r = !1;
2641
+ });
2642
+ });
2643
+ for (const o in this.$$l)
2644
+ for (const s of this.$$l[o]) {
2645
+ const r = this.$$c.$on(o, s);
2646
+ this.$$l_u.set(s, r);
2647
+ }
2648
+ this.$$l = {};
2649
+ }
2650
+ }
2651
+ // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
2652
+ // and setting attributes through setAttribute etc, this is helpful
2653
+ /**
2654
+ * @param {string} attr
2655
+ * @param {string} _oldValue
2656
+ * @param {string} newValue
2657
+ */
2658
+ attributeChangedCallback(n, t, i) {
2659
+ this.$$r || (n = this.$$g_p(n), this.$$d[n] = kt(n, i, this.$$p_d, "toProp"), this.$$c?.$set({ [n]: this.$$d[n] }));
2660
+ }
2661
+ disconnectedCallback() {
2662
+ this.$$cn = !1, Promise.resolve().then(() => {
2663
+ !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$me(), this.$$c = void 0);
2664
+ });
2665
+ }
2666
+ /**
2667
+ * @param {string} attribute_name
2668
+ */
2669
+ $$g_p(n) {
2670
+ return St(this.$$p_d).find(
2671
+ (t) => this.$$p_d[t].attribute === n || !this.$$p_d[t].attribute && t.toLowerCase() === n
2672
+ ) || n;
2673
+ }
2674
+ });
2675
+ function kt(e, n, t, i) {
2676
+ const o = t[e]?.type;
2677
+ if (n = o === "Boolean" && typeof n != "boolean" ? n != null : n, !i || !t[e])
2678
+ return n;
2679
+ if (i === "toAttribute")
2680
+ switch (o) {
2681
+ case "Object":
2682
+ case "Array":
2683
+ return n == null ? null : JSON.stringify(n);
2684
+ case "Boolean":
2685
+ return n ? "" : null;
2686
+ case "Number":
2687
+ return n ?? null;
2688
+ default:
2689
+ return n;
2690
+ }
2691
+ else
2692
+ switch (o) {
2693
+ case "Object":
2694
+ case "Array":
2695
+ return n && JSON.parse(n);
2696
+ case "Boolean":
2697
+ return n;
2698
+ // conversion already handled above
2699
+ case "Number":
2700
+ return n != null ? +n : n;
2701
+ default:
2702
+ return n;
2703
+ }
2704
+ }
2705
+ function Cr(e) {
2706
+ const n = {};
2707
+ return e.childNodes.forEach((t) => {
2708
+ n[
2709
+ /** @type {Element} node */
2710
+ t.slot || "default"
2711
+ ] = !0;
2712
+ }), n;
2713
+ }
2714
+ function Tr(e, n, t, i, o, s) {
2715
+ let r = class extends qo {
2716
+ constructor() {
2717
+ super(e, t, o), this.$$p_d = n;
2718
+ }
2719
+ static get observedAttributes() {
2720
+ return St(n).map(
2721
+ (l) => (n[l].attribute || l).toLowerCase()
2722
+ );
2723
+ }
2724
+ };
2725
+ return St(n).forEach((l) => {
2726
+ Et(r.prototype, l, {
2727
+ get() {
2728
+ return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
2729
+ },
2730
+ set(a) {
2731
+ a = kt(l, a, n), this.$$d[l] = a;
2732
+ var u = this.$$c;
2733
+ if (u) {
2734
+ var d = Cn(u, l)?.get;
2735
+ d ? u[l] = a : u.$set({ [l]: a });
2736
+ }
2737
+ }
2738
+ });
2739
+ }), i.forEach((l) => {
2740
+ Et(r.prototype, l, {
2741
+ get() {
2742
+ return this.$$c?.[l];
2743
+ }
2744
+ });
2745
+ }), e.element = /** @type {any} */
2746
+ r, r;
2747
+ }
2748
+ var Xi;
2749
+ (function(e) {
2750
+ e.TTS_WORD = "tts-word", e.TTS_SENTENCE = "tts-sentence", e.ANNOTATION = "annotation";
2751
+ })(Xi || (Xi = {}));
2752
+ var Ki;
2753
+ (function(e) {
2754
+ e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange";
2755
+ })(Ki || (Ki = {}));
2756
+ const Nr = {
2757
+ // Standard QTI 3.0 PNP supports
2758
+ textToSpeech: "pie-tool-text-to-speech",
2759
+ calculator: "pie-tool-calculator",
2760
+ ruler: "pie-tool-ruler",
2761
+ protractor: "pie-tool-protractor",
2762
+ highlighter: "pie-tool-annotation-toolbar",
2763
+ lineReader: "pie-tool-line-reader",
2764
+ magnifier: "pie-tool-magnifier",
2765
+ colorContrast: "pie-theme-contrast",
2766
+ answerMasking: "pie-tool-answer-eliminator",
2767
+ dictionaryLookup: "pie-tool-dictionary",
2768
+ // Common extensions (not in QTI standard but widely used)
2769
+ graphingCalculator: "pie-tool-calculator",
2770
+ scientificCalculator: "pie-tool-calculator",
2771
+ basicCalculator: "pie-tool-calculator"
2772
+ };
2773
+ Object.fromEntries(Object.entries(Nr).map(([e, n]) => [n, e]));
2774
+ var Rt;
2775
+ (function(e) {
2776
+ e[e.BASE = 0] = "BASE", e[e.TOOL = 1e3] = "TOOL", e[e.MODAL = 2e3] = "MODAL", e[e.CONTROL = 3e3] = "CONTROL", e[e.HIGHLIGHT = 4e3] = "HIGHLIGHT";
2777
+ })(Rt || (Rt = {}));
2778
+ var Wi;
2779
+ (function(e) {
2780
+ e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
2781
+ })(Wi || (Wi = {}));
2782
+ const jr = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Yo = "https://proxy.pie-api.com", Lr = `${Yo}/bundles/`;
2783
+ function Vo(e) {
2784
+ try {
2785
+ const n = jr?.[e];
2786
+ if (typeof n == "string" && n.length > 0) return n;
2787
+ } catch {
2788
+ }
2789
+ }
2790
+ typeof window < "u" && window.PIE_BUILDER_ORIGIN_URL || Vo("PUBLIC_BUILDER_ORIGIN_URL");
2791
+ typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || Vo("PUBLIC_BUILDER_BUNDLE_URL");
2792
+ var Qo = /* @__PURE__ */ ((e) => (e.player = "player.js", e.clientPlayer = "client-player.js", e.editor = "editor.js", e))(Qo || {});
2793
+ typeof window < "u" && !window.pieHelpers && (window.pieHelpers = {
2794
+ loadingScripts: {},
2795
+ loadingPromises: {}
2796
+ });
2797
+ Qo.player;
2798
+ const Mr = /* @__PURE__ */ JSON.parse('[{"name":"Hydrogen","atomic_mass":1.008,"boil":20.271,"category":"diatomic nonmetal","density":0.08988,"discovered_by":"Henry Cavendish","melt":13.99,"molar_heat":28.836,"named_by":"Antoine Lavoisier","number":1,"period":1,"group":1,"phase":"Gas","symbol":"H","xpos":1,"ypos":1,"wxpos":1,"wypos":1,"shells":[1],"electron_configuration":"1s1","electron_configuration_semantic":"1s1","electron_affinity":72.769,"electronegativity_pauling":2.2,"ionization_energies":[1312],"block":"s"},{"name":"Helium","atomic_mass":4.0026022,"boil":4.222,"category":"noble gas","density":0.1786,"discovered_by":"Pierre Janssen","melt":0.95,"molar_heat":null,"named_by":null,"number":2,"period":1,"group":18,"phase":"Gas","symbol":"He","xpos":18,"ypos":1,"wxpos":32,"wypos":1,"shells":[2],"electron_configuration":"1s2","electron_configuration_semantic":"1s2","electron_affinity":-48,"electronegativity_pauling":null,"ionization_energies":[2372.3,5250.5],"block":"s"},{"name":"Lithium","atomic_mass":6.94,"boil":1603,"category":"alkali metal","density":0.534,"discovered_by":"Johan August Arfwedson","melt":453.65,"molar_heat":24.86,"named_by":null,"number":3,"period":2,"group":1,"phase":"Solid","symbol":"Li","xpos":1,"ypos":2,"wxpos":1,"wypos":2,"shells":[2,1],"electron_configuration":"1s2 2s1","electron_configuration_semantic":"[He] 2s1","electron_affinity":59.6326,"electronegativity_pauling":0.98,"ionization_energies":[520.2,7298.1,11815],"block":"s"},{"name":"Beryllium","atomic_mass":9.01218315,"boil":2742,"category":"alkaline earth metal","density":1.85,"discovered_by":"Louis Nicolas Vauquelin","melt":1560,"molar_heat":16.443,"named_by":null,"number":4,"period":2,"group":2,"phase":"Solid","symbol":"Be","xpos":2,"ypos":2,"wxpos":2,"wypos":2,"shells":[2,2],"electron_configuration":"1s2 2s2","electron_configuration_semantic":"[He] 2s2","electron_affinity":-48,"electronegativity_pauling":1.57,"ionization_energies":[899.5,1757.1,14848.7,21006.6],"block":"s"},{"name":"Boron","atomic_mass":10.81,"boil":4200,"category":"metalloid","density":2.08,"discovered_by":"Joseph Louis Gay-Lussac","melt":2349,"molar_heat":11.087,"named_by":null,"number":5,"period":2,"group":13,"phase":"Solid","symbol":"B","xpos":13,"ypos":2,"wxpos":27,"wypos":2,"shells":[2,3],"electron_configuration":"1s2 2s2 2p1","electron_configuration_semantic":"[He] 2s2 2p1","electron_affinity":26.989,"electronegativity_pauling":2.04,"ionization_energies":[800.6,2427.1,3659.7,25025.8,32826.7],"block":"p"},{"name":"Carbon","atomic_mass":12.011,"boil":null,"category":"polyatomic nonmetal","density":1.821,"discovered_by":"Ancient Egypt","melt":null,"molar_heat":8.517,"named_by":null,"number":6,"period":2,"group":14,"phase":"Solid","symbol":"C","xpos":14,"ypos":2,"wxpos":28,"wypos":2,"shells":[2,4],"electron_configuration":"1s2 2s2 2p2","electron_configuration_semantic":"[He] 2s2 2p2","electron_affinity":121.7763,"electronegativity_pauling":2.55,"ionization_energies":[1086.5,2352.6,4620.5,6222.7,37831,47277],"block":"p"},{"name":"Nitrogen","atomic_mass":14.007,"boil":77.355,"category":"diatomic nonmetal","density":1.251,"discovered_by":"Daniel Rutherford","melt":63.15,"molar_heat":null,"named_by":"Jean-Antoine Chaptal","number":7,"period":2,"group":15,"phase":"Gas","symbol":"N","xpos":15,"ypos":2,"wxpos":29,"wypos":2,"shells":[2,5],"electron_configuration":"1s2 2s2 2p3","electron_configuration_semantic":"[He] 2s2 2p3","electron_affinity":-6.8,"electronegativity_pauling":3.04,"ionization_energies":[1402.3,2856,4578.1,7475,9444.9,53266.6,64360],"block":"p"},{"name":"Oxygen","atomic_mass":15.999,"boil":90.188,"category":"diatomic nonmetal","density":1.429,"discovered_by":"Carl Wilhelm Scheele","melt":54.36,"molar_heat":null,"named_by":"Antoine Lavoisier","number":8,"period":2,"group":16,"phase":"Gas","symbol":"O","xpos":16,"ypos":2,"wxpos":30,"wypos":2,"shells":[2,6],"electron_configuration":"1s2 2s2 2p4","electron_configuration_semantic":"[He] 2s2 2p4","electron_affinity":140.976,"electronegativity_pauling":3.44,"ionization_energies":[1313.9,3388.3,5300.5,7469.2,10989.5,13326.5,71330,84078],"block":"p"},{"name":"Fluorine","atomic_mass":18.9984031636,"boil":85.03,"category":"diatomic nonmetal","density":1.696,"discovered_by":"André-Marie Ampère","melt":53.48,"molar_heat":null,"named_by":"Humphry Davy","number":9,"period":2,"group":17,"phase":"Gas","symbol":"F","xpos":17,"ypos":2,"wxpos":31,"wypos":2,"shells":[2,7],"electron_configuration":"1s2 2s2 2p5","electron_configuration_semantic":"[He] 2s2 2p5","electron_affinity":328.1649,"electronegativity_pauling":3.98,"ionization_energies":[1681,3374.2,6050.4,8407.7,11022.7,15164.1,17868,92038.1,106434.3],"block":"p"},{"name":"Neon","atomic_mass":20.17976,"boil":27.104,"category":"noble gas","density":0.9002,"discovered_by":"Morris Travers","melt":24.56,"molar_heat":null,"named_by":null,"number":10,"period":2,"group":18,"phase":"Gas","symbol":"Ne","xpos":18,"ypos":2,"wxpos":32,"wypos":2,"shells":[2,8],"electron_configuration":"1s2 2s2 2p6","electron_configuration_semantic":"[He] 2s2 2p6","electron_affinity":-116,"electronegativity_pauling":null,"ionization_energies":[2080.7,3952.3,6122,9371,12177,15238,19999,23069.5,115379.5,131432],"block":"p"},{"name":"Sodium","atomic_mass":22.989769282,"boil":1156.09,"category":"alkali metal","density":0.968,"discovered_by":"Humphry Davy","melt":370.944,"molar_heat":28.23,"named_by":null,"number":11,"period":3,"group":1,"phase":"Solid","symbol":"Na","xpos":1,"ypos":3,"wxpos":1,"wypos":3,"shells":[2,8,1],"electron_configuration":"1s2 2s2 2p6 3s1","electron_configuration_semantic":"[Ne] 3s1","electron_affinity":52.867,"electronegativity_pauling":0.93,"ionization_energies":[495.8,4562,6910.3,9543,13354,16613,20117,25496,28932,141362,159076],"block":"s"},{"name":"Magnesium","atomic_mass":24.305,"boil":1363,"category":"alkaline earth metal","density":1.738,"discovered_by":"Joseph Black","melt":923,"molar_heat":24.869,"named_by":null,"number":12,"period":3,"group":2,"phase":"Solid","symbol":"Mg","xpos":2,"ypos":3,"wxpos":2,"wypos":3,"shells":[2,8,2],"electron_configuration":"1s2 2s2 2p6 3s2","electron_configuration_semantic":"[Ne] 3s2","electron_affinity":-40,"electronegativity_pauling":1.31,"ionization_energies":[737.7,1450.7,7732.7,10542.5,13630,18020,21711,25661,31653,35458,169988,189368],"block":"s"},{"name":"Aluminium","atomic_mass":26.98153857,"boil":2743,"category":"post-transition metal","density":2.7,"discovered_by":null,"melt":933.47,"molar_heat":24.2,"named_by":"Humphry Davy","number":13,"period":3,"group":13,"phase":"Solid","symbol":"Al","xpos":13,"ypos":3,"wxpos":27,"wypos":3,"shells":[2,8,3],"electron_configuration":"1s2 2s2 2p6 3s2 3p1","electron_configuration_semantic":"[Ne] 3s2 3p1","electron_affinity":41.762,"electronegativity_pauling":1.61,"ionization_energies":[577.5,1816.7,2744.8,11577,14842,18379,23326,27465,31853,38473,42647,201266,222316],"block":"p"},{"name":"Silicon","atomic_mass":28.085,"boil":3538,"category":"metalloid","density":2.329,"discovered_by":"Jöns Jacob Berzelius","melt":1687,"molar_heat":19.789,"named_by":"Thomas Thomson (chemist)","number":14,"period":3,"group":14,"phase":"Solid","symbol":"Si","xpos":14,"ypos":3,"wxpos":28,"wypos":3,"shells":[2,8,4],"electron_configuration":"1s2 2s2 2p6 3s2 3p2","electron_configuration_semantic":"[Ne] 3s2 3p2","electron_affinity":134.0684,"electronegativity_pauling":1.9,"ionization_energies":[786.5,1577.1,3231.6,4355.5,16091,19805,23780,29287,33878,38726,45962,50502,235196,257923],"block":"p"},{"name":"Phosphorus","atomic_mass":30.9737619985,"boil":null,"category":"polyatomic nonmetal","density":1.823,"discovered_by":"Hennig Brand","melt":null,"molar_heat":23.824,"named_by":null,"number":15,"period":3,"group":15,"phase":"Solid","symbol":"P","xpos":15,"ypos":3,"wxpos":29,"wypos":3,"shells":[2,8,5],"electron_configuration":"1s2 2s2 2p6 3s2 3p3","electron_configuration_semantic":"[Ne] 3s2 3p3","electron_affinity":72.037,"electronegativity_pauling":2.19,"ionization_energies":[1011.8,1907,2914.1,4963.6,6273.9,21267,25431,29872,35905,40950,46261,54110,59024,271791,296195],"block":"p"},{"name":"Sulfur","atomic_mass":32.06,"boil":717.8,"category":"polyatomic nonmetal","density":2.07,"discovered_by":"Ancient china","melt":388.36,"molar_heat":22.75,"named_by":null,"number":16,"period":3,"group":16,"phase":"Solid","symbol":"S","xpos":16,"ypos":3,"wxpos":30,"wypos":3,"shells":[2,8,6],"electron_configuration":"1s2 2s2 2p6 3s2 3p4","electron_configuration_semantic":"[Ne] 3s2 3p4","electron_affinity":200.4101,"electronegativity_pauling":2.58,"ionization_energies":[999.6,2252,3357,4556,7004.3,8495.8,27107,31719,36621,43177,48710,54460,62930,68216,311048,337138],"block":"p"},{"name":"Chlorine","atomic_mass":35.45,"boil":239.11,"category":"diatomic nonmetal","density":3.2,"discovered_by":"Carl Wilhelm Scheele","melt":171.6,"molar_heat":null,"named_by":null,"number":17,"period":3,"group":17,"phase":"Gas","symbol":"Cl","xpos":17,"ypos":3,"wxpos":31,"wypos":3,"shells":[2,8,7],"electron_configuration":"1s2 2s2 2p6 3s2 3p5","electron_configuration_semantic":"[Ne] 3s2 3p5","electron_affinity":348.575,"electronegativity_pauling":3.16,"ionization_energies":[1251.2,2298,3822,5158.6,6542,9362,11018,33604,38600,43961,51068,57119,63363,72341,78095,352994,380760],"block":"p"},{"name":"Argon","atomic_mass":39.9481,"boil":87.302,"category":"noble gas","density":1.784,"discovered_by":"Lord Rayleigh","melt":83.81,"molar_heat":null,"named_by":null,"number":18,"period":3,"group":18,"phase":"Gas","symbol":"Ar","xpos":18,"ypos":3,"wxpos":32,"wypos":3,"shells":[2,8,8],"electron_configuration":"1s2 2s2 2p6 3s2 3p6","electron_configuration_semantic":"[Ne] 3s2 3p6","electron_affinity":-96,"electronegativity_pauling":null,"ionization_energies":[1520.6,2665.8,3931,5771,7238,8781,11995,13842,40760,46186,52002,59653,66199,72918,82473,88576,397605,427066],"block":"p"},{"name":"Potassium","atomic_mass":39.09831,"boil":1032,"category":"alkali metal","density":0.862,"discovered_by":"Humphry Davy","melt":336.7,"molar_heat":29.6,"named_by":null,"number":19,"period":4,"group":1,"phase":"Solid","symbol":"K","xpos":1,"ypos":4,"wxpos":1,"wypos":4,"shells":[2,8,8,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s1","electron_configuration_semantic":"[Ar] 4s1","electron_affinity":48.383,"electronegativity_pauling":0.82,"ionization_energies":[418.8,3052,4420,5877,7975,9590,11343,14944,16963.7,48610,54490,60730,68950,75900,83080,93400,99710,444880,476063],"block":"s"},{"name":"Calcium","atomic_mass":40.0784,"boil":1757,"category":"alkaline earth metal","density":1.55,"discovered_by":"Humphry Davy","melt":1115,"molar_heat":25.929,"named_by":null,"number":20,"period":4,"group":2,"phase":"Solid","symbol":"Ca","xpos":2,"ypos":4,"wxpos":2,"wypos":4,"shells":[2,8,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2","electron_configuration_semantic":"[Ar] 4s2","electron_affinity":2.37,"electronegativity_pauling":1,"ionization_energies":[589.8,1145.4,4912.4,6491,8153,10496,12270,14206,18191,20385,57110,63410,70110,78890,86310,94000,104900,111711,494850,527762],"block":"s"},{"name":"Scandium","atomic_mass":44.9559085,"boil":3109,"category":"transition metal","density":2.985,"discovered_by":"Lars Fredrik Nilson","melt":1814,"molar_heat":25.52,"named_by":null,"number":21,"period":4,"group":3,"phase":"Solid","symbol":"Sc","xpos":3,"ypos":4,"wxpos":17,"wypos":4,"shells":[2,8,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d1","electron_configuration_semantic":"[Ar] 3d1 4s2","electron_affinity":18,"electronegativity_pauling":1.36,"ionization_energies":[633.1,1235,2388.6,7090.6,8843,10679,13310,15250,17370,21726,24102,66320,73010,80160,89490,97400,105600,117000,124270,547530,582163],"block":"d"},{"name":"Titanium","atomic_mass":47.8671,"boil":3560,"category":"transition metal","density":4.506,"discovered_by":"William Gregor","melt":1941,"molar_heat":25.06,"named_by":"Martin Heinrich Klaproth","number":22,"period":4,"group":4,"phase":"Solid","symbol":"Ti","xpos":4,"ypos":4,"wxpos":18,"wypos":4,"shells":[2,8,10,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d2","electron_configuration_semantic":"[Ar] 3d2 4s2","electron_affinity":7.289,"electronegativity_pauling":1.54,"ionization_energies":[658.8,1309.8,2652.5,4174.6,9581,11533,13590,16440,18530,20833,25575,28125,76015,83280,90880,100700,109100,117800,129900,137530,602930,639294],"block":"d"},{"name":"Vanadium","atomic_mass":50.94151,"boil":3680,"category":"transition metal","density":6,"discovered_by":"Andrés Manuel del Río","melt":2183,"molar_heat":24.89,"named_by":"Isotopes of vanadium","number":23,"period":4,"group":5,"phase":"Solid","symbol":"V","xpos":5,"ypos":4,"wxpos":19,"wypos":4,"shells":[2,8,11,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d3","electron_configuration_semantic":"[Ar] 3d3 4s2","electron_affinity":50.911,"electronegativity_pauling":1.63,"ionization_energies":[650.9,1414,2830,4507,6298.7,12363,14530,16730,19860,22240,24670,29730,32446,86450,94170,102300,112700,121600,130700,143400,151440,661050,699144],"block":"d"},{"name":"Chromium","atomic_mass":51.99616,"boil":2944,"category":"transition metal","density":7.19,"discovered_by":"Louis Nicolas Vauquelin","melt":2180,"molar_heat":23.35,"named_by":null,"number":24,"period":4,"group":6,"phase":"Solid","symbol":"Cr","xpos":6,"ypos":4,"wxpos":20,"wypos":4,"shells":[2,8,13,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s1 3d5","electron_configuration_semantic":"[Ar] 3d5 4s1","electron_affinity":65.21,"electronegativity_pauling":1.66,"ionization_energies":[652.9,1590.6,2987,4743,6702,8744.9,15455,17820,20190,23580,26130,28750,34230,37066,97510,105800,114300,125300,134700,144300,157700,166090,721870,761733],"block":"d"},{"name":"Manganese","atomic_mass":54.9380443,"boil":2334,"category":"transition metal","density":7.21,"discovered_by":"Torbern Olof Bergman","melt":1519,"molar_heat":26.32,"named_by":null,"number":25,"period":4,"group":7,"phase":"Solid","symbol":"Mn","xpos":7,"ypos":4,"wxpos":21,"wypos":4,"shells":[2,8,13,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d5","electron_configuration_semantic":"[Ar] 3d5 4s2","electron_affinity":-50,"electronegativity_pauling":1.55,"ionization_energies":[717.3,1509,3248,4940,6990,9220,11500,18770,21400,23960,27590,30330,33150,38880,41987,109480,118100,127100,138600,148500,158600,172500,181380,785450,827067],"block":"d"},{"name":"Iron","atomic_mass":55.8452,"boil":3134,"category":"transition metal","density":7.874,"discovered_by":"5000 BC","melt":1811,"molar_heat":25.1,"named_by":null,"number":26,"period":4,"group":8,"phase":"Solid","symbol":"Fe","xpos":8,"ypos":4,"wxpos":22,"wypos":4,"shells":[2,8,14,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d6","electron_configuration_semantic":"[Ar] 3d6 4s2","electron_affinity":14.785,"electronegativity_pauling":1.83,"ionization_energies":[762.5,1561.9,2957,5290,7240,9560,12060,14580,22540,25290,28000,31920,34830,37840,44100,47206,122200,131000,140500,152600,163000,173600,188100,195200,851800,895161],"block":"d"},{"name":"Cobalt","atomic_mass":58.9331944,"boil":3200,"category":"transition metal","density":8.9,"discovered_by":"Georg Brandt","melt":1768,"molar_heat":24.81,"named_by":null,"number":27,"period":4,"group":9,"phase":"Solid","symbol":"Co","xpos":9,"ypos":4,"wxpos":23,"wypos":4,"shells":[2,8,15,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d7","electron_configuration_semantic":"[Ar] 3d7 4s2","electron_affinity":63.898,"electronegativity_pauling":1.88,"ionization_energies":[760.4,1648,3232,4950,7670,9840,12440,15230,17959,26570,29400,32400,36600,39700,42800,49396,52737,134810,145170,154700,167400,178100,189300,204500,214100,920870,966023],"block":"d"},{"name":"Nickel","atomic_mass":58.69344,"boil":3003,"category":"transition metal","density":8.908,"discovered_by":"Axel Fredrik Cronstedt","melt":1728,"molar_heat":26.07,"named_by":null,"number":28,"period":4,"group":10,"phase":"Solid","symbol":"Ni","xpos":10,"ypos":4,"wxpos":24,"wypos":4,"shells":[2,8,16,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d8","electron_configuration_semantic":"[Ar] 3d8 4s2","electron_affinity":111.65,"electronegativity_pauling":1.91,"ionization_energies":[737.1,1753,3395,5300,7339,10400,12800,15600,18600,21670,30970,34000,37100,41500,44800,48100,55101,58570,148700,159000,169400,182700,194000,205600,221400,231490,992718,1039668],"block":"d"},{"name":"Copper","atomic_mass":63.5463,"boil":2835,"category":"transition metal","density":8.96,"discovered_by":"Middle East","melt":1357.77,"molar_heat":24.44,"named_by":null,"number":29,"period":4,"group":11,"phase":"Solid","symbol":"Cu","xpos":11,"ypos":4,"wxpos":25,"wypos":4,"shells":[2,8,18,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s1 3d10","electron_configuration_semantic":"[Ar] 3d10 4s1","electron_affinity":119.235,"electronegativity_pauling":1.9,"ionization_energies":[745.5,1957.9,3555,5536,7700,9900,13400,16000,19200,22400,25600,35600,38700,42000,46700,50200,53700,61100,64702,163700,174100,184900,198800,210500,222700,239100,249660,1067358,1116105],"block":"d"},{"name":"Zinc","atomic_mass":65.382,"boil":1180,"category":"transition metal","density":7.14,"discovered_by":"India","melt":692.68,"molar_heat":25.47,"named_by":null,"number":30,"period":4,"group":12,"phase":"Solid","symbol":"Zn","xpos":12,"ypos":4,"wxpos":26,"wypos":4,"shells":[2,8,18,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10","electron_configuration_semantic":"[Ar] 3d10 4s2","electron_affinity":-58,"electronegativity_pauling":1.65,"ionization_energies":[906.4,1733.3,3833,5731,7970,10400,12900,16800,19600,23000,26400,29990,40490,43800,47300,52300,55900,59700,67300,71200,179100],"block":"d"},{"name":"Gallium","atomic_mass":69.7231,"boil":2673,"category":"post-transition metal","density":5.91,"discovered_by":"Lecoq de Boisbaudran","melt":302.9146,"molar_heat":25.86,"named_by":null,"number":31,"period":4,"group":13,"phase":"Solid","symbol":"Ga","xpos":13,"ypos":4,"wxpos":27,"wypos":4,"shells":[2,8,18,3],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p1","electron_configuration_semantic":"[Ar] 3d10 4s2 4p1","electron_affinity":41,"electronegativity_pauling":1.81,"ionization_energies":[578.8,1979.3,2963,6180],"block":"p"},{"name":"Germanium","atomic_mass":72.6308,"boil":3106,"category":"metalloid","density":5.323,"discovered_by":"Clemens Winkler","melt":1211.4,"molar_heat":23.222,"named_by":null,"number":32,"period":4,"group":14,"phase":"Solid","symbol":"Ge","xpos":14,"ypos":4,"wxpos":28,"wypos":4,"shells":[2,8,18,4],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p2","electron_configuration_semantic":"[Ar] 3d10 4s2 4p2","electron_affinity":118.9352,"electronegativity_pauling":2.01,"ionization_energies":[762,1537.5,3302.1,4411,9020],"block":"p"},{"name":"Arsenic","atomic_mass":74.9215956,"boil":null,"category":"metalloid","density":5.727,"discovered_by":"Bronze Age","melt":null,"molar_heat":24.64,"named_by":null,"number":33,"period":4,"group":15,"phase":"Solid","symbol":"As","xpos":15,"ypos":4,"wxpos":29,"wypos":4,"shells":[2,8,18,5],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p3","electron_configuration_semantic":"[Ar] 3d10 4s2 4p3","electron_affinity":77.65,"electronegativity_pauling":2.18,"ionization_energies":[947,1798,2735,4837,6043,12310],"block":"p"},{"name":"Selenium","atomic_mass":78.9718,"boil":958,"category":"polyatomic nonmetal","density":4.81,"discovered_by":"Jöns Jakob Berzelius","melt":494,"molar_heat":25.363,"named_by":null,"number":34,"period":4,"group":16,"phase":"Solid","symbol":"Se","xpos":16,"ypos":4,"wxpos":30,"wypos":4,"shells":[2,8,18,6],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p4","electron_configuration_semantic":"[Ar] 3d10 4s2 4p4","electron_affinity":194.9587,"electronegativity_pauling":2.55,"ionization_energies":[941,2045,2973.7,4144,6590,7880,14990],"block":"p"},{"name":"Bromine","atomic_mass":79.904,"boil":332,"category":"diatomic nonmetal","density":3.1028,"discovered_by":"Antoine Jérôme Balard","melt":265.8,"molar_heat":null,"named_by":null,"number":35,"period":4,"group":17,"phase":"Liquid","symbol":"Br","xpos":17,"ypos":4,"wxpos":31,"wypos":4,"shells":[2,8,18,7],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p5","electron_configuration_semantic":"[Ar] 3d10 4s2 4p5","electron_affinity":324.537,"electronegativity_pauling":2.96,"ionization_energies":[1139.9,2103,3470,4560,5760,8550,9940,18600],"block":"p"},{"name":"Krypton","atomic_mass":83.7982,"boil":119.93,"category":"noble gas","density":3.749,"discovered_by":"William Ramsay","melt":115.78,"molar_heat":null,"named_by":null,"number":36,"period":4,"group":18,"phase":"Gas","symbol":"Kr","xpos":18,"ypos":4,"wxpos":32,"wypos":4,"shells":[2,8,18,8],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6","electron_configuration_semantic":"[Ar] 3d10 4s2 4p6","electron_affinity":-96,"electronegativity_pauling":3,"ionization_energies":[1350.8,2350.4,3565,5070,6240,7570,10710,12138,22274,25880,29700,33800,37700,43100,47500,52200,57100,61800,75800,80400,85300,90400,96300,101400,111100,116290,282500,296200,311400,326200],"block":"p"},{"name":"Rubidium","atomic_mass":85.46783,"boil":961,"category":"alkali metal","density":1.532,"discovered_by":"Robert Bunsen","melt":312.45,"molar_heat":31.06,"named_by":null,"number":37,"period":5,"group":1,"phase":"Solid","symbol":"Rb","xpos":1,"ypos":5,"wxpos":1,"wypos":5,"shells":[2,8,18,8,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s1","electron_configuration_semantic":"[Kr] 5s1","electron_affinity":46.884,"electronegativity_pauling":0.82,"ionization_energies":[403,2633,3860,5080,6850,8140,9570,13120,14500,26740],"block":"s"},{"name":"Strontium","atomic_mass":87.621,"boil":1650,"category":"alkaline earth metal","density":2.64,"discovered_by":"William Cruickshank (chemist)","melt":1050,"molar_heat":26.4,"named_by":null,"number":38,"period":5,"group":2,"phase":"Solid","symbol":"Sr","xpos":2,"ypos":5,"wxpos":2,"wypos":5,"shells":[2,8,18,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2","electron_configuration_semantic":"[Kr] 5s2","electron_affinity":5.023,"electronegativity_pauling":0.95,"ionization_energies":[549.5,1064.2,4138,5500,6910,8760,10230,11800,15600,17100,31270],"block":"s"},{"name":"Yttrium","atomic_mass":88.905842,"boil":3203,"category":"transition metal","density":4.472,"discovered_by":"Johan Gadolin","melt":1799,"molar_heat":26.53,"named_by":null,"number":39,"period":5,"group":3,"phase":"Solid","symbol":"Y","xpos":3,"ypos":5,"wxpos":17,"wypos":5,"shells":[2,8,18,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d1","electron_configuration_semantic":"[Kr] 4d1 5s2","electron_affinity":29.6,"electronegativity_pauling":1.22,"ionization_energies":[600,1180,1980,5847,7430,8970,11190,12450,14110,18400,19900,36090],"block":"d"},{"name":"Zirconium","atomic_mass":91.2242,"boil":4650,"category":"transition metal","density":6.52,"discovered_by":"Martin Heinrich Klaproth","melt":2128,"molar_heat":25.36,"named_by":null,"number":40,"period":5,"group":4,"phase":"Solid","symbol":"Zr","xpos":4,"ypos":5,"wxpos":18,"wypos":5,"shells":[2,8,18,10,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d2","electron_configuration_semantic":"[Kr] 4d2 5s2","electron_affinity":41.806,"electronegativity_pauling":1.33,"ionization_energies":[640.1,1270,2218,3313,7752,9500],"block":"d"},{"name":"Niobium","atomic_mass":92.906372,"boil":5017,"category":"transition metal","density":8.57,"discovered_by":"Charles Hatchett","melt":2750,"molar_heat":24.6,"named_by":null,"number":41,"period":5,"group":5,"phase":"Solid","symbol":"Nb","xpos":5,"ypos":5,"wxpos":19,"wypos":5,"shells":[2,8,18,12,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s1 4d4","electron_configuration_semantic":"[Kr] 4d4 5s1","electron_affinity":88.516,"electronegativity_pauling":1.6,"ionization_energies":[652.1,1380,2416,3700,4877,9847,12100],"block":"d"},{"name":"Molybdenum","atomic_mass":95.951,"boil":4912,"category":"transition metal","density":10.28,"discovered_by":"Carl Wilhelm Scheele","melt":2896,"molar_heat":24.06,"named_by":null,"number":42,"period":5,"group":6,"phase":"Solid","symbol":"Mo","xpos":6,"ypos":5,"wxpos":20,"wypos":5,"shells":[2,8,18,13,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s1 4d5","electron_configuration_semantic":"[Kr] 4d5 5s1","electron_affinity":72.1,"electronegativity_pauling":2.16,"ionization_energies":[684.3,1560,2618,4480,5257,6640.8,12125,13860,15835,17980,20190,22219,26930,29196,52490,55000,61400,67700,74000,80400,87000,93400,98420,104400,121900,127700,133800,139800,148100,154500],"block":"d"},{"name":"Technetium","atomic_mass":98,"boil":4538,"category":"transition metal","density":11,"discovered_by":"Emilio Segrè","melt":2430,"molar_heat":24.27,"named_by":null,"number":43,"period":5,"group":7,"phase":"Solid","symbol":"Tc","xpos":7,"ypos":5,"wxpos":21,"wypos":5,"shells":[2,8,18,13,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d5","electron_configuration_semantic":"[Kr] 4d5 5s2","electron_affinity":53,"electronegativity_pauling":1.9,"ionization_energies":[702,1470,2850],"block":"d"},{"name":"Ruthenium","atomic_mass":101.072,"boil":4423,"category":"transition metal","density":12.45,"discovered_by":"Karl Ernst Claus","melt":2607,"molar_heat":24.06,"named_by":null,"number":44,"period":5,"group":8,"phase":"Solid","symbol":"Ru","xpos":8,"ypos":5,"wxpos":22,"wypos":5,"shells":[2,8,18,15,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s1 4d7","electron_configuration_semantic":"[Kr] 4d7 5s1","electron_affinity":100.96,"electronegativity_pauling":2.2,"ionization_energies":[710.2,1620,2747],"block":"d"},{"name":"Rhodium","atomic_mass":102.905502,"boil":3968,"category":"transition metal","density":12.41,"discovered_by":"William Hyde Wollaston","melt":2237,"molar_heat":24.98,"named_by":null,"number":45,"period":5,"group":9,"phase":"Solid","symbol":"Rh","xpos":9,"ypos":5,"wxpos":23,"wypos":5,"shells":[2,8,18,16,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s1 4d8","electron_configuration_semantic":"[Kr] 4d8 5s1","electron_affinity":110.27,"electronegativity_pauling":2.28,"ionization_energies":[719.7,1740,2997],"block":"d"},{"name":"Palladium","atomic_mass":106.421,"boil":3236,"category":"transition metal","density":12.023,"discovered_by":"William Hyde Wollaston","melt":1828.05,"molar_heat":25.98,"named_by":null,"number":46,"period":5,"group":10,"phase":"Solid","symbol":"Pd","xpos":10,"ypos":5,"wxpos":24,"wypos":5,"shells":[2,8,18,18],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 4d10","electron_configuration_semantic":"[Kr] 4d10","electron_affinity":54.24,"electronegativity_pauling":2.2,"ionization_energies":[804.4,1870,3177],"block":"d"},{"name":"Silver","atomic_mass":107.86822,"boil":2435,"category":"transition metal","density":10.49,"discovered_by":"unknown, before 5000 BC","melt":1234.93,"molar_heat":25.35,"named_by":null,"number":47,"period":5,"group":11,"phase":"Solid","symbol":"Ag","xpos":11,"ypos":5,"wxpos":25,"wypos":5,"shells":[2,8,18,18,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s1 4d10","electron_configuration_semantic":"[Kr] 4d10 5s1","electron_affinity":125.862,"electronegativity_pauling":1.93,"ionization_energies":[731,2070,3361],"block":"d"},{"name":"Cadmium","atomic_mass":112.4144,"boil":1040,"category":"transition metal","density":8.65,"discovered_by":"Karl Samuel Leberecht Hermann","melt":594.22,"molar_heat":26.02,"named_by":"Isotopes of cadmium","number":48,"period":5,"group":12,"phase":"Solid","symbol":"Cd","xpos":12,"ypos":5,"wxpos":26,"wypos":5,"shells":[2,8,18,18,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10","electron_configuration_semantic":"[Kr] 4d10 5s2","electron_affinity":-68,"electronegativity_pauling":1.69,"ionization_energies":[867.8,1631.4,3616],"block":"d"},{"name":"Indium","atomic_mass":114.8181,"boil":2345,"category":"post-transition metal","density":7.31,"discovered_by":"Ferdinand Reich","melt":429.7485,"molar_heat":26.74,"named_by":null,"number":49,"period":5,"group":13,"phase":"Solid","symbol":"In","xpos":13,"ypos":5,"wxpos":27,"wypos":5,"shells":[2,8,18,18,3],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p1","electron_configuration_semantic":"[Kr] 4d10 5s2 5p1","electron_affinity":37.043,"electronegativity_pauling":1.78,"ionization_energies":[558.3,1820.7,2704,5210],"block":"p"},{"name":"Tin","atomic_mass":118.7107,"boil":2875,"category":"post-transition metal","density":7.365,"discovered_by":"unknown, before 3500 BC","melt":505.08,"molar_heat":27.112,"named_by":null,"number":50,"period":5,"group":14,"phase":"Solid","symbol":"Sn","xpos":14,"ypos":5,"wxpos":28,"wypos":5,"shells":[2,8,18,18,4],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p2","electron_configuration_semantic":"[Kr] 4d10 5s2 5p2","electron_affinity":107.2984,"electronegativity_pauling":1.96,"ionization_energies":[708.6,1411.8,2943,3930.3,7456],"block":"p"},{"name":"Antimony","atomic_mass":121.7601,"boil":1908,"category":"metalloid","density":6.697,"discovered_by":"unknown, before 3000 BC","melt":903.78,"molar_heat":25.23,"named_by":null,"number":51,"period":5,"group":15,"phase":"Solid","symbol":"Sb","xpos":15,"ypos":5,"wxpos":29,"wypos":5,"shells":[2,8,18,18,5],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p3","electron_configuration_semantic":"[Kr] 4d10 5s2 5p3","electron_affinity":101.059,"electronegativity_pauling":2.05,"ionization_energies":[834,1594.9,2440,4260,5400,10400],"block":"p"},{"name":"Tellurium","atomic_mass":127.603,"boil":1261,"category":"metalloid","density":6.24,"discovered_by":"Franz-Joseph Müller von Reichenstein","melt":722.66,"molar_heat":25.73,"named_by":null,"number":52,"period":5,"group":16,"phase":"Solid","symbol":"Te","xpos":16,"ypos":5,"wxpos":30,"wypos":5,"shells":[2,8,18,18,6],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p4","electron_configuration_semantic":"[Kr] 4d10 5s2 5p4","electron_affinity":190.161,"electronegativity_pauling":2.1,"ionization_energies":[869.3,1790,2698,3610,5668,6820,13200],"block":"p"},{"name":"Iodine","atomic_mass":126.904473,"boil":457.4,"category":"diatomic nonmetal","density":4.933,"discovered_by":"Bernard Courtois","melt":386.85,"molar_heat":null,"named_by":null,"number":53,"period":5,"group":17,"phase":"Solid","symbol":"I","xpos":17,"ypos":5,"wxpos":31,"wypos":5,"shells":[2,8,18,18,7],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p5","electron_configuration_semantic":"[Kr] 4d10 5s2 5p5","electron_affinity":295.1531,"electronegativity_pauling":2.66,"ionization_energies":[1008.4,1845.9,3180],"block":"p"},{"name":"Xenon","atomic_mass":131.2936,"boil":165.051,"category":"noble gas","density":5.894,"discovered_by":"William Ramsay","melt":161.4,"molar_heat":null,"named_by":null,"number":54,"period":5,"group":18,"phase":"Gas","symbol":"Xe","xpos":18,"ypos":5,"wxpos":32,"wypos":5,"shells":[2,8,18,18,8],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6","electron_configuration_semantic":"[Kr] 4d10 5s2 5p6","electron_affinity":-77,"electronegativity_pauling":2.6,"ionization_energies":[1170.4,2046.4,3099.4],"block":"p"},{"name":"Cesium","atomic_mass":132.905451966,"boil":944,"category":"alkali metal","density":1.93,"discovered_by":"Robert Bunsen","melt":301.7,"molar_heat":32.21,"named_by":null,"number":55,"period":6,"group":1,"phase":"Solid","symbol":"Cs","xpos":1,"ypos":6,"wxpos":1,"wypos":6,"shells":[2,8,18,18,8,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s1","electron_configuration_semantic":"[Xe] 6s1","electron_affinity":45.505,"electronegativity_pauling":0.79,"ionization_energies":[375.7,2234.3,3400],"block":"s"},{"name":"Barium","atomic_mass":137.3277,"boil":2118,"category":"alkaline earth metal","density":3.51,"discovered_by":"Carl Wilhelm Scheele","melt":1000,"molar_heat":28.07,"named_by":null,"number":56,"period":6,"group":2,"phase":"Solid","symbol":"Ba","xpos":2,"ypos":6,"wxpos":2,"wypos":6,"shells":[2,8,18,18,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2","electron_configuration_semantic":"[Xe] 6s2","electron_affinity":13.954,"electronegativity_pauling":0.89,"ionization_energies":[502.9,965.2,3600],"block":"s"},{"name":"Lanthanum","atomic_mass":138.905477,"boil":3737,"category":"lanthanide","density":6.162,"discovered_by":"Carl Gustaf Mosander","melt":1193,"molar_heat":27.11,"named_by":null,"number":57,"period":6,"group":3,"phase":"Solid","symbol":"La","xpos":3,"ypos":9,"wxpos":3,"wypos":6,"shells":[2,8,18,18,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 5d1","electron_configuration_semantic":"[Xe] 5d16s2","electron_affinity":53,"electronegativity_pauling":1.1,"ionization_energies":[538.1,1067,1850.3,4819,5940],"block":"f"},{"name":"Cerium","atomic_mass":140.1161,"boil":3716,"category":"lanthanide","density":6.77,"discovered_by":"Martin Heinrich Klaproth","melt":1068,"molar_heat":26.94,"named_by":null,"number":58,"period":6,"group":3,"phase":"Solid","symbol":"Ce","xpos":4,"ypos":9,"wxpos":4,"wypos":6,"shells":[2,8,18,19,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 5d1 4f1","electron_configuration_semantic":"[Xe] 4f1 5d1 6s2","electron_affinity":55,"electronegativity_pauling":1.12,"ionization_energies":[534.4,1050,1949,3547,6325,7490],"block":"f"},{"name":"Praseodymium","atomic_mass":140.907662,"boil":3403,"category":"lanthanide","density":6.77,"discovered_by":"Carl Auer von Welsbach","melt":1208,"molar_heat":27.2,"named_by":null,"number":59,"period":6,"group":3,"phase":"Solid","symbol":"Pr","xpos":5,"ypos":9,"wxpos":5,"wypos":6,"shells":[2,8,18,21,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f3","electron_configuration_semantic":"[Xe] 4f3 6s2","electron_affinity":93,"electronegativity_pauling":1.13,"ionization_energies":[527,1020,2086,3761,5551],"block":"f"},{"name":"Neodymium","atomic_mass":144.2423,"boil":3347,"category":"lanthanide","density":7.01,"discovered_by":"Carl Auer von Welsbach","melt":1297,"molar_heat":27.45,"named_by":null,"number":60,"period":6,"group":3,"phase":"Solid","symbol":"Nd","xpos":6,"ypos":9,"wxpos":6,"wypos":6,"shells":[2,8,18,22,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f4","electron_configuration_semantic":"[Xe] 4f4 6s2","electron_affinity":184.87,"electronegativity_pauling":1.14,"ionization_energies":[533.1,1040,2130,3900],"block":"f"},{"name":"Promethium","atomic_mass":145,"boil":3273,"category":"lanthanide","density":7.26,"discovered_by":"Chien Shiung Wu","melt":1315,"molar_heat":null,"named_by":"Isotopes of promethium","number":61,"period":6,"group":3,"phase":"Solid","symbol":"Pm","xpos":7,"ypos":9,"wxpos":7,"wypos":6,"shells":[2,8,18,23,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f5","electron_configuration_semantic":"[Xe] 4f5 6s2","electron_affinity":12.45,"electronegativity_pauling":1.13,"ionization_energies":[540,1050,2150,3970],"block":"f"},{"name":"Samarium","atomic_mass":150.362,"boil":2173,"category":"lanthanide","density":7.52,"discovered_by":"Lecoq de Boisbaudran","melt":1345,"molar_heat":29.54,"named_by":null,"number":62,"period":6,"group":3,"phase":"Solid","symbol":"Sm","xpos":8,"ypos":9,"wxpos":8,"wypos":6,"shells":[2,8,18,24,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f6","electron_configuration_semantic":"[Xe] 4f6 6s2","electron_affinity":15.63,"electronegativity_pauling":1.17,"ionization_energies":[544.5,1070,2260,3990],"block":"f"},{"name":"Europium","atomic_mass":151.9641,"boil":1802,"category":"lanthanide","density":5.264,"discovered_by":"Eugène-Anatole Demarçay","melt":1099,"molar_heat":27.66,"named_by":null,"number":63,"period":6,"group":3,"phase":"Solid","symbol":"Eu","xpos":9,"ypos":9,"wxpos":9,"wypos":6,"shells":[2,8,18,25,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f7","electron_configuration_semantic":"[Xe] 4f7 6s2","electron_affinity":11.2,"electronegativity_pauling":1.2,"ionization_energies":[547.1,1085,2404,4120],"block":"f"},{"name":"Gadolinium","atomic_mass":157.253,"boil":3273,"category":"lanthanide","density":7.9,"discovered_by":"Jean Charles Galissard de Marignac","melt":1585,"molar_heat":37.03,"named_by":null,"number":64,"period":6,"group":3,"phase":"Solid","symbol":"Gd","xpos":10,"ypos":9,"wxpos":10,"wypos":6,"shells":[2,8,18,25,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f7 5d1","electron_configuration_semantic":"[Xe] 4f7 5d1 6s2","electron_affinity":13.22,"electronegativity_pauling":1.2,"ionization_energies":[593.4,1170,1990,4250],"block":"f"},{"name":"Terbium","atomic_mass":158.925352,"boil":3396,"category":"lanthanide","density":8.23,"discovered_by":"Carl Gustaf Mosander","melt":1629,"molar_heat":28.91,"named_by":null,"number":65,"period":6,"group":3,"phase":"Solid","symbol":"Tb","xpos":11,"ypos":9,"wxpos":11,"wypos":6,"shells":[2,8,18,27,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f9","electron_configuration_semantic":"[Xe] 4f9 6s2","electron_affinity":112.4,"electronegativity_pauling":1.1,"ionization_energies":[565.8,1110,2114,3839],"block":"f"},{"name":"Dysprosium","atomic_mass":162.5001,"boil":2840,"category":"lanthanide","density":8.54,"discovered_by":"Lecoq de Boisbaudran","melt":1680,"molar_heat":27.7,"named_by":null,"number":66,"period":6,"group":3,"phase":"Solid","symbol":"Dy","xpos":12,"ypos":9,"wxpos":12,"wypos":6,"shells":[2,8,18,28,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f10","electron_configuration_semantic":"[Xe] 4f10 6s2","electron_affinity":33.96,"electronegativity_pauling":1.22,"ionization_energies":[573,1130,2200,3990],"block":"f"},{"name":"Holmium","atomic_mass":164.930332,"boil":2873,"category":"lanthanide","density":8.79,"discovered_by":"Marc Delafontaine","melt":1734,"molar_heat":27.15,"named_by":null,"number":67,"period":6,"group":3,"phase":"Solid","symbol":"Ho","xpos":13,"ypos":9,"wxpos":13,"wypos":6,"shells":[2,8,18,29,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f11","electron_configuration_semantic":"[Xe] 4f11 6s2","electron_affinity":32.61,"electronegativity_pauling":1.23,"ionization_energies":[581,1140,2204,4100],"block":"f"},{"name":"Erbium","atomic_mass":167.2593,"boil":3141,"category":"lanthanide","density":9.066,"discovered_by":"Carl Gustaf Mosander","melt":1802,"molar_heat":28.12,"named_by":null,"number":68,"period":6,"group":3,"phase":"Solid","symbol":"Er","xpos":14,"ypos":9,"wxpos":14,"wypos":6,"shells":[2,8,18,30,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f12","electron_configuration_semantic":"[Xe] 4f12 6s2","electron_affinity":30.1,"electronegativity_pauling":1.24,"ionization_energies":[589.3,1150,2194,4120],"block":"f"},{"name":"Thulium","atomic_mass":168.934222,"boil":2223,"category":"lanthanide","density":9.32,"discovered_by":"Per Teodor Cleve","melt":1818,"molar_heat":27.03,"named_by":null,"number":69,"period":6,"group":3,"phase":"Solid","symbol":"Tm","xpos":15,"ypos":9,"wxpos":15,"wypos":6,"shells":[2,8,18,31,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f13","electron_configuration_semantic":"[Xe] 4f13 6s2","electron_affinity":99,"electronegativity_pauling":1.25,"ionization_energies":[596.7,1160,2285,4120],"block":"f"},{"name":"Ytterbium","atomic_mass":173.0451,"boil":1469,"category":"lanthanide","density":6.9,"discovered_by":"Jean Charles Galissard de Marignac","melt":1097,"molar_heat":26.74,"named_by":null,"number":70,"period":6,"group":3,"phase":"Solid","symbol":"Yb","xpos":16,"ypos":9,"wxpos":16,"wypos":6,"shells":[2,8,18,32,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14","electron_configuration_semantic":"[Xe] 4f14 6s2","electron_affinity":-1.93,"electronegativity_pauling":1.1,"ionization_energies":[603.4,1174.8,2417,4203],"block":"f"},{"name":"Lutetium","atomic_mass":174.96681,"boil":3675,"category":"lanthanide","density":9.841,"discovered_by":"Georges Urbain","melt":1925,"molar_heat":26.86,"named_by":null,"number":71,"period":6,"group":3,"phase":"Solid","symbol":"Lu","xpos":17,"ypos":9,"wxpos":17,"wypos":6,"shells":[2,8,18,32,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d1","electron_configuration_semantic":"[Xe] 4f14 5d1 6s2","electron_affinity":33.4,"electronegativity_pauling":1.27,"ionization_energies":[523.5,1340,2022.3,4370,6445],"block":"d"},{"name":"Hafnium","atomic_mass":178.492,"boil":4876,"category":"transition metal","density":13.31,"discovered_by":"Dirk Coster","melt":2506,"molar_heat":25.73,"named_by":null,"number":72,"period":6,"group":4,"phase":"Solid","symbol":"Hf","xpos":4,"ypos":6,"wxpos":18,"wypos":6,"shells":[2,8,18,32,10,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d2","electron_configuration_semantic":"[Xe] 4f14 5d2 6s2","electron_affinity":17.18,"electronegativity_pauling":1.3,"ionization_energies":[658.5,1440,2250,3216],"block":"d"},{"name":"Tantalum","atomic_mass":180.947882,"boil":5731,"category":"transition metal","density":16.69,"discovered_by":"Anders Gustaf Ekeberg","melt":3290,"molar_heat":25.36,"named_by":null,"number":73,"period":6,"group":5,"phase":"Solid","symbol":"Ta","xpos":5,"ypos":6,"wxpos":19,"wypos":6,"shells":[2,8,18,32,11,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d3","electron_configuration_semantic":"[Xe] 4f14 5d3 6s2","electron_affinity":31,"electronegativity_pauling":1.5,"ionization_energies":[761,1500],"block":"d"},{"name":"Tungsten","atomic_mass":183.841,"boil":6203,"category":"transition metal","density":19.25,"discovered_by":"Carl Wilhelm Scheele","melt":3695,"molar_heat":24.27,"named_by":null,"number":74,"period":6,"group":6,"phase":"Solid","symbol":"W","xpos":6,"ypos":6,"wxpos":20,"wypos":6,"shells":[2,8,18,32,12,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d4","electron_configuration_semantic":"[Xe] 4f14 5d4 6s2","electron_affinity":78.76,"electronegativity_pauling":2.36,"ionization_energies":[770,1700],"block":"d"},{"name":"Rhenium","atomic_mass":186.2071,"boil":5869,"category":"transition metal","density":21.02,"discovered_by":"Masataka Ogawa","melt":3459,"molar_heat":25.48,"named_by":"Walter Noddack","number":75,"period":6,"group":7,"phase":"Solid","symbol":"Re","xpos":7,"ypos":6,"wxpos":21,"wypos":6,"shells":[2,8,18,32,13,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d5","electron_configuration_semantic":"[Xe] 4f14 5d5 6s2","electron_affinity":5.8273,"electronegativity_pauling":1.9,"ionization_energies":[760,1260,2510,3640],"block":"d"},{"name":"Osmium","atomic_mass":190.233,"boil":5285,"category":"transition metal","density":22.59,"discovered_by":"Smithson Tennant","melt":3306,"molar_heat":24.7,"named_by":null,"number":76,"period":6,"group":8,"phase":"Solid","symbol":"Os","xpos":8,"ypos":6,"wxpos":22,"wypos":6,"shells":[2,8,18,32,14,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d6","electron_configuration_semantic":"[Xe] 4f14 5d6 6s2","electron_affinity":103.99,"electronegativity_pauling":2.2,"ionization_energies":[840,1600],"block":"d"},{"name":"Iridium","atomic_mass":192.2173,"boil":4403,"category":"transition metal","density":22.56,"discovered_by":"Smithson Tennant","melt":2719,"molar_heat":25.1,"named_by":null,"number":77,"period":6,"group":9,"phase":"Solid","symbol":"Ir","xpos":9,"ypos":6,"wxpos":23,"wypos":6,"shells":[2,8,18,32,15,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d7","electron_configuration_semantic":"[Xe] 4f14 5d7 6s2","electron_affinity":150.94,"electronegativity_pauling":2.2,"ionization_energies":[880,1600],"block":"d"},{"name":"Platinum","atomic_mass":195.0849,"boil":4098,"category":"transition metal","density":21.45,"discovered_by":"Antonio de Ulloa","melt":2041.4,"molar_heat":25.86,"named_by":null,"number":78,"period":6,"group":10,"phase":"Solid","symbol":"Pt","xpos":10,"ypos":6,"wxpos":24,"wypos":6,"shells":[2,8,18,32,17,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s1 4f14 5d9","electron_configuration_semantic":"[Xe] 4f14 5d9 6s1","electron_affinity":205.041,"electronegativity_pauling":2.28,"ionization_energies":[870,1791],"block":"d"},{"name":"Gold","atomic_mass":196.9665695,"boil":3243,"category":"transition metal","density":19.3,"discovered_by":"Middle East","melt":1337.33,"molar_heat":25.418,"named_by":null,"number":79,"period":6,"group":11,"phase":"Solid","symbol":"Au","xpos":11,"ypos":6,"wxpos":25,"wypos":6,"shells":[2,8,18,32,18,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s1 4f14 5d10","electron_configuration_semantic":"[Xe] 4f14 5d10 6s1","electron_affinity":222.747,"electronegativity_pauling":2.54,"ionization_energies":[890.1,1980],"block":"d"},{"name":"Mercury","atomic_mass":200.5923,"boil":629.88,"category":"transition metal","density":13.534,"discovered_by":"unknown, before 2000 BCE","melt":234.321,"molar_heat":27.983,"named_by":null,"number":80,"period":6,"group":12,"phase":"Liquid","symbol":"Hg","xpos":12,"ypos":6,"wxpos":26,"wypos":6,"shells":[2,8,18,32,18,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10","electron_configuration_semantic":"[Xe] 4f14 5d10 6s2","electron_affinity":-48,"electronegativity_pauling":2,"ionization_energies":[1007.1,1810,3300],"block":"d"},{"name":"Thallium","atomic_mass":204.38,"boil":1746,"category":"post-transition metal","density":11.85,"discovered_by":"William Crookes","melt":577,"molar_heat":26.32,"named_by":null,"number":81,"period":6,"group":13,"phase":"Solid","symbol":"Tl","xpos":13,"ypos":6,"wxpos":27,"wypos":6,"shells":[2,8,18,32,18,3],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p1","electron_configuration_semantic":"[Xe] 4f14 5d10 6s2 6p1","electron_affinity":36.4,"electronegativity_pauling":1.62,"ionization_energies":[589.4,1971,2878],"block":"p"},{"name":"Lead","atomic_mass":207.21,"boil":2022,"category":"post-transition metal","density":11.34,"discovered_by":"Middle East","melt":600.61,"molar_heat":26.65,"named_by":null,"number":82,"period":6,"group":14,"phase":"Solid","symbol":"Pb","xpos":14,"ypos":6,"wxpos":28,"wypos":6,"shells":[2,8,18,32,18,4],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p2","electron_configuration_semantic":"[Xe] 4f14 5d10 6s2 6p2","electron_affinity":34.4204,"electronegativity_pauling":1.87,"ionization_energies":[715.6,1450.5,3081.5,4083,6640],"block":"p"},{"name":"Bismuth","atomic_mass":208.980401,"boil":1837,"category":"post-transition metal","density":9.78,"discovered_by":"Claude François Geoffroy","melt":544.7,"molar_heat":25.52,"named_by":null,"number":83,"period":6,"group":15,"phase":"Solid","symbol":"Bi","xpos":15,"ypos":6,"wxpos":29,"wypos":6,"shells":[2,8,18,32,18,5],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p3","electron_configuration_semantic":"[Xe] 4f14 5d10 6s2 6p3","electron_affinity":90.924,"electronegativity_pauling":2.02,"ionization_energies":[703,1610,2466,4370,5400,8520],"block":"p"},{"name":"Polonium","atomic_mass":209,"boil":1235,"category":"post-transition metal","density":9.196,"discovered_by":"Pierre Curie","melt":527,"molar_heat":26.4,"named_by":null,"number":84,"period":6,"group":16,"phase":"Solid","symbol":"Po","xpos":16,"ypos":6,"wxpos":30,"wypos":6,"shells":[2,8,18,32,18,6],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p4","electron_configuration_semantic":"[Xe] 4f14 5d10 6s2 6p4","electron_affinity":136,"electronegativity_pauling":2,"ionization_energies":[812.1],"block":"p"},{"name":"Astatine","atomic_mass":210,"boil":610,"category":"metalloid","density":6.35,"discovered_by":"Dale R. Corson","melt":575,"molar_heat":null,"named_by":null,"number":85,"period":6,"group":17,"phase":"Solid","symbol":"At","xpos":17,"ypos":6,"wxpos":31,"wypos":6,"shells":[2,8,18,32,18,7],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p5","electron_configuration_semantic":"[Xe] 4f14 5d10 6s2 6p5","electron_affinity":233,"electronegativity_pauling":2.2,"ionization_energies":[899.003],"block":"p"},{"name":"Radon","atomic_mass":222,"boil":211.5,"category":"noble gas","density":9.73,"discovered_by":"Friedrich Ernst Dorn","melt":202,"molar_heat":null,"named_by":null,"number":86,"period":6,"group":18,"phase":"Gas","symbol":"Rn","xpos":18,"ypos":6,"wxpos":32,"wypos":6,"shells":[2,8,18,32,18,8],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6","electron_configuration_semantic":"[Xe] 4f14 5d10 6s2 6p6","electron_affinity":-68,"electronegativity_pauling":2.2,"ionization_energies":[1037],"block":"p"},{"name":"Francium","atomic_mass":223,"boil":950,"category":"alkali metal","density":1.87,"discovered_by":"Marguerite Perey","melt":300,"molar_heat":null,"named_by":null,"number":87,"period":7,"group":1,"phase":"Solid","symbol":"Fr","xpos":1,"ypos":7,"wxpos":1,"wypos":7,"shells":[2,8,18,32,18,8,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s1","electron_configuration_semantic":"[Rn] 7s1","electron_affinity":46.89,"electronegativity_pauling":0.79,"ionization_energies":[380],"block":"s"},{"name":"Radium","atomic_mass":226,"boil":2010,"category":"alkaline earth metal","density":5.5,"discovered_by":"Pierre Curie","melt":1233,"molar_heat":null,"named_by":null,"number":88,"period":7,"group":2,"phase":"Solid","symbol":"Ra","xpos":2,"ypos":7,"wxpos":2,"wypos":7,"shells":[2,8,18,32,18,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2","electron_configuration_semantic":"[Rn] 7s2","electron_affinity":9.6485,"electronegativity_pauling":0.9,"ionization_energies":[509.3,979],"block":"s"},{"name":"Actinium","atomic_mass":227,"boil":3500,"category":"actinide","density":10,"discovered_by":"Friedrich Oskar Giesel","melt":1500,"molar_heat":27.2,"named_by":null,"number":89,"period":7,"group":3,"phase":"Solid","symbol":"Ac","xpos":3,"ypos":10,"wxpos":3,"wypos":7,"shells":[2,8,18,32,18,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 6d1","electron_configuration_semantic":"[Rn] 6d1 7s2","electron_affinity":33.77,"electronegativity_pauling":1.1,"ionization_energies":[499,1170],"block":"f"},{"name":"Thorium","atomic_mass":232.03774,"boil":5061,"category":"actinide","density":11.724,"discovered_by":"Jöns Jakob Berzelius","melt":2023,"molar_heat":26.23,"named_by":null,"number":90,"period":7,"group":3,"phase":"Solid","symbol":"Th","xpos":4,"ypos":10,"wxpos":4,"wypos":7,"shells":[2,8,18,32,18,10,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 6d2","electron_configuration_semantic":"[Rn] 6d2 7s2","electron_affinity":112.72,"electronegativity_pauling":1.3,"ionization_energies":[587,1110,1930,2780],"block":"f"},{"name":"Protactinium","atomic_mass":231.035882,"boil":4300,"category":"actinide","density":15.37,"discovered_by":"William Crookes","melt":1841,"molar_heat":null,"named_by":"Otto Hahn","number":91,"period":7,"group":3,"phase":"Solid","symbol":"Pa","xpos":5,"ypos":10,"wxpos":5,"wypos":7,"shells":[2,8,18,32,20,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f2 6d1","electron_configuration_semantic":"[Rn] 5f2 6d1 7s2","electron_affinity":53.03,"electronegativity_pauling":1.5,"ionization_energies":[568],"block":"f"},{"name":"Uranium","atomic_mass":238.028913,"boil":4404,"category":"actinide","density":19.1,"discovered_by":"Martin Heinrich Klaproth","melt":1405.3,"molar_heat":27.665,"named_by":null,"number":92,"period":7,"group":3,"phase":"Solid","symbol":"U","xpos":6,"ypos":10,"wxpos":6,"wypos":7,"shells":[2,8,18,32,21,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f3 6d1","electron_configuration_semantic":"[Rn] 5f3 6d1 7s2","electron_affinity":50.94,"electronegativity_pauling":1.38,"ionization_energies":[597.6,1420],"block":"f"},{"name":"Neptunium","atomic_mass":237,"boil":4447,"category":"actinide","density":20.45,"discovered_by":"Edwin McMillan","melt":912,"molar_heat":29.46,"named_by":null,"number":93,"period":7,"group":3,"phase":"Solid","symbol":"Np","xpos":7,"ypos":10,"wxpos":7,"wypos":7,"shells":[2,8,18,32,22,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f4 6d1","electron_configuration_semantic":"[Rn] 5f4 6d1 7s2","electron_affinity":45.85,"electronegativity_pauling":1.36,"ionization_energies":[604.5],"block":"f"},{"name":"Plutonium","atomic_mass":244,"boil":3505,"category":"actinide","density":19.816,"discovered_by":"Glenn T. Seaborg","melt":912.5,"molar_heat":35.5,"named_by":null,"number":94,"period":7,"group":3,"phase":"Solid","symbol":"Pu","xpos":8,"ypos":10,"wxpos":8,"wypos":7,"shells":[2,8,18,32,24,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f6","electron_configuration_semantic":"[Rn] 5f6 7s2","electron_affinity":-48.33,"electronegativity_pauling":1.28,"ionization_energies":[584.7],"block":"f"},{"name":"Americium","atomic_mass":243,"boil":2880,"category":"actinide","density":12,"discovered_by":"Glenn T. Seaborg","melt":1449,"molar_heat":62.7,"named_by":null,"number":95,"period":7,"group":3,"phase":"Solid","symbol":"Am","xpos":9,"ypos":10,"wxpos":9,"wypos":7,"shells":[2,8,18,32,25,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f7","electron_configuration_semantic":"[Rn] 5f7 7s2","electron_affinity":9.93,"electronegativity_pauling":1.13,"ionization_energies":[578],"block":"f"},{"name":"Curium","atomic_mass":247,"boil":3383,"category":"actinide","density":13.51,"discovered_by":"Glenn T. Seaborg","melt":1613,"molar_heat":null,"named_by":null,"number":96,"period":7,"group":3,"phase":"Solid","symbol":"Cm","xpos":10,"ypos":10,"wxpos":10,"wypos":7,"shells":[2,8,18,32,25,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f7 6d1","electron_configuration_semantic":"[Rn] 5f7 6d1 7s2","electron_affinity":27.17,"electronegativity_pauling":1.28,"ionization_energies":[581],"block":"f"},{"name":"Berkelium","atomic_mass":247,"boil":2900,"category":"actinide","density":14.78,"discovered_by":"Lawrence Berkeley National Laboratory","melt":1259,"molar_heat":null,"named_by":null,"number":97,"period":7,"group":3,"phase":"Solid","symbol":"Bk","xpos":11,"ypos":10,"wxpos":11,"wypos":7,"shells":[2,8,18,32,27,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f9","electron_configuration_semantic":"[Rn] 5f9 7s2","electron_affinity":-165.24,"electronegativity_pauling":1.3,"ionization_energies":[601],"block":"f"},{"name":"Californium","atomic_mass":251,"boil":1743,"category":"actinide","density":15.1,"discovered_by":"Lawrence Berkeley National Laboratory","melt":1173,"molar_heat":null,"named_by":null,"number":98,"period":7,"group":3,"phase":"Solid","symbol":"Cf","xpos":12,"ypos":10,"wxpos":12,"wypos":7,"shells":[2,8,18,32,28,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f10","electron_configuration_semantic":"[Rn] 5f10 7s2","electron_affinity":-97.31,"electronegativity_pauling":1.3,"ionization_energies":[608],"block":"f"},{"name":"Einsteinium","atomic_mass":252,"boil":1269,"category":"actinide","density":8.84,"discovered_by":"Lawrence Berkeley National Laboratory","melt":1133,"molar_heat":null,"named_by":null,"number":99,"period":7,"group":3,"phase":"Solid","symbol":"Es","xpos":13,"ypos":10,"wxpos":13,"wypos":7,"shells":[2,8,18,32,29,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f11","electron_configuration_semantic":"[Rn] 5f11 7s2","electron_affinity":-28.6,"electronegativity_pauling":1.3,"ionization_energies":[619],"block":"f"},{"name":"Fermium","atomic_mass":257,"boil":null,"category":"actinide","density":null,"discovered_by":"Lawrence Berkeley National Laboratory","melt":1800,"molar_heat":null,"named_by":null,"number":100,"period":7,"group":3,"phase":"Solid","symbol":"Fm","xpos":14,"ypos":10,"wxpos":14,"wypos":7,"shells":[2,8,18,32,30,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f12","electron_configuration_semantic":"[Rn] 5f12 7s2","electron_affinity":33.96,"electronegativity_pauling":1.3,"ionization_energies":[627],"block":"f"},{"name":"Mendelevium","atomic_mass":258,"boil":null,"category":"actinide","density":null,"discovered_by":"Lawrence Berkeley National Laboratory","melt":1100,"molar_heat":null,"named_by":null,"number":101,"period":7,"group":3,"phase":"Solid","symbol":"Md","xpos":15,"ypos":10,"wxpos":15,"wypos":7,"shells":[2,8,18,32,31,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f13","electron_configuration_semantic":"[Rn] 5f13 7s2","electron_affinity":93.91,"electronegativity_pauling":1.3,"ionization_energies":[635],"block":"f"},{"name":"Nobelium","atomic_mass":259,"boil":null,"category":"actinide","density":null,"discovered_by":"Joint Institute for Nuclear Research","melt":1100,"molar_heat":null,"named_by":null,"number":102,"period":7,"group":3,"phase":"Solid","symbol":"No","xpos":16,"ypos":10,"wxpos":16,"wypos":7,"shells":[2,8,18,32,32,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14","electron_configuration_semantic":"[Rn] 5f14 7s2","electron_affinity":-223.22,"electronegativity_pauling":1.3,"ionization_energies":[642],"block":"f"},{"name":"Lawrencium","atomic_mass":266,"boil":null,"category":"actinide","density":null,"discovered_by":"Lawrence Berkeley National Laboratory","melt":1900,"molar_heat":null,"named_by":null,"number":103,"period":7,"group":3,"phase":"Solid","symbol":"Lr","xpos":17,"ypos":10,"wxpos":17,"wypos":7,"shells":[2,8,18,32,32,8,3],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 7p1","electron_configuration_semantic":"[Rn] 5f14 7s2 7p1","electron_affinity":-30.04,"electronegativity_pauling":1.3,"ionization_energies":[470],"block":"d"},{"name":"Rutherfordium","atomic_mass":267,"boil":5800,"category":"transition metal","density":23.2,"discovered_by":"Joint Institute for Nuclear Research","melt":2400,"molar_heat":null,"named_by":null,"number":104,"period":7,"group":4,"phase":"Solid","symbol":"Rf","xpos":4,"ypos":7,"wxpos":18,"wypos":7,"shells":[2,8,18,32,32,10,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d2","electron_configuration_semantic":"[Rn] 5f14 6d2 7s2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[580],"block":"d"},{"name":"Dubnium","atomic_mass":268,"boil":null,"category":"transition metal","density":29.3,"discovered_by":"Joint Institute for Nuclear Research","melt":null,"molar_heat":null,"named_by":null,"number":105,"period":7,"group":5,"phase":"Solid","symbol":"Db","xpos":5,"ypos":7,"wxpos":19,"wypos":7,"shells":[2,8,18,32,32,11,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d3","electron_configuration_semantic":"*[Rn] 5f14 6d3 7s2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Seaborgium","atomic_mass":269,"boil":null,"category":"transition metal","density":35,"discovered_by":"Lawrence Berkeley National Laboratory","melt":null,"molar_heat":null,"named_by":null,"number":106,"period":7,"group":6,"phase":"Solid","symbol":"Sg","xpos":6,"ypos":7,"wxpos":20,"wypos":7,"shells":[2,8,18,32,32,12,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d4","electron_configuration_semantic":"*[Rn] 5f14 6d4 7s2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Bohrium","atomic_mass":270,"boil":null,"category":"transition metal","density":37.1,"discovered_by":"Gesellschaft für Schwerionenforschung","melt":null,"molar_heat":null,"named_by":null,"number":107,"period":7,"group":7,"phase":"Solid","symbol":"Bh","xpos":7,"ypos":7,"wxpos":21,"wypos":7,"shells":[2,8,18,32,32,13,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d5","electron_configuration_semantic":"*[Rn] 5f14 6d5 7s2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Hassium","atomic_mass":269,"boil":null,"category":"transition metal","density":40.7,"discovered_by":"Gesellschaft für Schwerionenforschung","melt":126,"molar_heat":null,"named_by":null,"number":108,"period":7,"group":8,"phase":"Solid","symbol":"Hs","xpos":8,"ypos":7,"wxpos":22,"wypos":7,"shells":[2,8,18,32,32,14,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d6","electron_configuration_semantic":"*[Rn] 5f14 6d6 7s2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Meitnerium","atomic_mass":278,"boil":null,"category":"unknown, probably transition metal","density":37.4,"discovered_by":"Gesellschaft für Schwerionenforschung","melt":null,"molar_heat":null,"named_by":null,"number":109,"period":7,"group":9,"phase":"Solid","symbol":"Mt","xpos":9,"ypos":7,"wxpos":23,"wypos":7,"shells":[2,8,18,32,32,15,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d7","electron_configuration_semantic":"*[Rn] 5f14 6d7 7s2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Darmstadtium","atomic_mass":281,"boil":null,"category":"unknown, probably transition metal","density":34.8,"discovered_by":"Gesellschaft für Schwerionenforschung","melt":null,"molar_heat":null,"named_by":null,"number":110,"period":7,"group":10,"phase":"Solid","symbol":"Ds","xpos":10,"ypos":7,"wxpos":24,"wypos":7,"shells":[2,8,18,32,32,16,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d8","electron_configuration_semantic":"*[Rn] 5f14 6d9 7s1","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Roentgenium","atomic_mass":282,"boil":null,"category":"unknown, probably transition metal","density":28.7,"discovered_by":"Gesellschaft für Schwerionenforschung","melt":null,"molar_heat":null,"named_by":null,"number":111,"period":7,"group":11,"phase":"Solid","symbol":"Rg","xpos":11,"ypos":7,"wxpos":25,"wypos":7,"shells":[2,8,18,32,32,17,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d9","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s1","electron_affinity":151,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Copernicium","atomic_mass":285,"boil":3570,"category":"transition metal","density":14,"discovered_by":"Gesellschaft für Schwerionenforschung","melt":null,"molar_heat":null,"named_by":null,"number":112,"period":7,"group":12,"phase":"Liquid","symbol":"Cn","xpos":12,"ypos":7,"wxpos":26,"wypos":7,"shells":[2,8,18,32,32,18,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Nihonium","atomic_mass":286,"boil":1430,"category":"unknown, probably transition metal","density":16,"discovered_by":"RIKEN","melt":700,"molar_heat":null,"named_by":null,"number":113,"period":7,"group":13,"phase":"Solid","symbol":"Nh","xpos":13,"ypos":7,"wxpos":27,"wypos":7,"shells":[2,8,18,32,32,18,3],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p1","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s2 7p1","electron_affinity":66.6,"electronegativity_pauling":null,"ionization_energies":[],"block":"p"},{"name":"Flerovium","atomic_mass":289,"boil":420,"category":"post-transition metal","density":14,"discovered_by":"Joint Institute for Nuclear Research","melt":340,"molar_heat":null,"named_by":null,"number":114,"period":7,"group":14,"phase":"Solid","symbol":"Fl","xpos":14,"ypos":7,"wxpos":28,"wypos":7,"shells":[2,8,18,32,32,18,4],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p2","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s2 7p2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"p"},{"name":"Moscovium","atomic_mass":289,"boil":1400,"category":"unknown, probably post-transition metal","density":13.5,"discovered_by":"Joint Institute for Nuclear Research","melt":670,"molar_heat":null,"named_by":null,"number":115,"period":7,"group":15,"phase":"Solid","symbol":"Mc","xpos":15,"ypos":7,"wxpos":29,"wypos":7,"shells":[2,8,18,32,32,18,5],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p3","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s2 7p3","electron_affinity":35.3,"electronegativity_pauling":null,"ionization_energies":[],"block":"p"},{"name":"Livermorium","atomic_mass":293,"boil":1085,"category":"unknown, probably post-transition metal","density":12.9,"discovered_by":"Joint Institute for Nuclear Research","melt":709,"molar_heat":null,"named_by":null,"number":116,"period":7,"group":16,"phase":"Solid","symbol":"Lv","xpos":16,"ypos":7,"wxpos":30,"wypos":7,"shells":[2,8,18,32,32,18,6],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p4","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s2 7p4","electron_affinity":74.9,"electronegativity_pauling":null,"ionization_energies":[],"block":"p"},{"name":"Tennessine","atomic_mass":294,"boil":883,"category":"unknown, probably metalloid","density":7.17,"discovered_by":"Joint Institute for Nuclear Research","melt":723,"molar_heat":null,"named_by":null,"number":117,"period":7,"group":17,"phase":"Solid","symbol":"Ts","xpos":17,"ypos":7,"wxpos":31,"wypos":7,"shells":[2,8,18,32,32,18,7],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p5","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s2 7p5","electron_affinity":165.9,"electronegativity_pauling":null,"ionization_energies":[],"block":"p"},{"name":"Oganesson","atomic_mass":294,"boil":350,"category":"unknown, predicted to be noble gas","density":4.95,"discovered_by":"Joint Institute for Nuclear Research","melt":null,"molar_heat":null,"named_by":null,"number":118,"period":7,"group":18,"phase":"Solid","symbol":"Og","xpos":18,"ypos":7,"wxpos":32,"wypos":7,"shells":[2,8,18,32,32,18,8],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p6","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s2 7p6","electron_affinity":5.40318,"electronegativity_pauling":null,"ionization_energies":[],"block":"p"},{"name":"Ununennium","atomic_mass":315,"boil":630,"category":"unknown, but predicted to be an alkali metal","density":3,"discovered_by":"GSI Helmholtz Centre for Heavy Ion Research","melt":null,"molar_heat":null,"named_by":null,"number":119,"period":8,"group":1,"phase":"Solid","symbol":"Uue","xpos":1,"ypos":8,"wxpos":1,"wypos":8,"shells":[2,8,18,32,32,18,8,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p6 8s1","electron_configuration_semantic":"*[Uuo] 8s1","electron_affinity":63.87,"electronegativity_pauling":null,"ionization_energies":[],"block":"s"}]'), Or = {
2799
+ elements: Mr
2800
+ };
2801
+ var Dr = /* @__PURE__ */ Kn("<button> </button>"), Pr = /* @__PURE__ */ Kn('<div class="element-overview svelte-1h56j87" style="grid-row: 2 / span 2; grid-column: 3 / span 10;" aria-live="polite"><div><div class="left-col svelte-1h56j87"><div class="symbol-center svelte-1h56j87"> </div> <div class="element-name svelte-1h56j87"> </div></div> <div class="right-col svelte-1h56j87"><div class="top-row svelte-1h56j87"><div class="info-block svelte-1h56j87"><div class="label svelte-1h56j87">Atomic Mass</div> <div class="value svelte-1h56j87"> </div></div> <div class="info-block svelte-1h56j87"><div class="label svelte-1h56j87">Atomic No</div> <div class="value svelte-1h56j87"> </div></div></div> <div class="bottom-row svelte-1h56j87"><div class="info-block svelte-1h56j87"><div class="label svelte-1h56j87">Electron Config</div> <div class="value svelte-1h56j87"> </div></div> <div class="info-block svelte-1h56j87"><div class="label svelte-1h56j87">Phase</div> <div class="value svelte-1h56j87"> </div></div></div></div></div></div>'), Ir = /* @__PURE__ */ Kn('<button tabindex="0"><div class="atomic-number svelte-1h56j87"> </div> <div class="symbol svelte-1h56j87"> </div> <div class="name svelte-1h56j87"> </div> <div class="atomic-mass svelte-1h56j87"> </div></button>'), Br = /* @__PURE__ */ Kn('<div class="group-label svelte-1h56j87"></div>'), Hr = /* @__PURE__ */ Kn('<div class="period-label svelte-1h56j87"><!></div>'), Fr = /* @__PURE__ */ Kn('<div class="periodic-table-container svelte-1h56j87" role="dialog" tabindex="-1" aria-label="Periodic Table - Click elements to view details"><div class="periodic-table-header svelte-1h56j87"><h3 id="periodic-table-title" class="periodic-table-title svelte-1h56j87">Periodic Table</h3> <div class="header-controls svelte-1h56j87"><button class="close-btn svelte-1h56j87" aria-label="Close periodic table"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd"></path></svg></button></div></div> <div class="periodic-table-content svelte-1h56j87"><div class="periodic-table-wrapper svelte-1h56j87"><div class="periodic-table svelte-1h56j87" role="grid" aria-labelledby="periodic-table-title"><div class="element-category-header category-badge-row svelte-1h56j87" role="presentation" style="grid-row: 1; grid-column: 2 / span 16;"><button aria-label="Show all elements">All Elements</button> <!></div> <!> <!></div> <div class="group-labels svelte-1h56j87" aria-hidden="true"></div> <div class="period-labels svelte-1h56j87" aria-hidden="true"></div></div></div></div>');
2802
+ const Gr = {
2803
+ hash: "svelte-1h56j87",
2804
+ code: `.periodic-table-container.svelte-1h56j87 {position:fixed;background:white;box-shadow:0 10px 40px rgba(0, 0, 0, 0.3);user-select:none;touch-action:none;border-radius:12px;overflow:visible; /* Changed from hidden to visible to show all content without clipping */z-index:2000; /* ZIndexLayer.MODAL */min-width:1100px; /* Match default width */display:flex;flex-direction:column;}
2805
+
2806
+ /* Header (matching production implementation: dark teal) */.periodic-table-header.svelte-1h56j87 {padding:12px 16px;background:var(--pie-primary-dark, #2c3e50); /* Dark teal-like color */color:var(--pie-white, white);display:flex;justify-content:space-between;align-items:center;cursor:move;user-select:none;border-radius:12px 12px 0 0;}.periodic-table-title.svelte-1h56j87 {font-weight:600;font-size:16px;color:var(--pie-white, white);margin:0;}.header-controls.svelte-1h56j87 {display:flex;gap:8px;align-items:center;}.close-btn.svelte-1h56j87 {background:transparent;border:none;color:var(--pie-white, white);cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background-color 0.2s;}.close-btn.svelte-1h56j87:hover {background:rgba(255, 255, 255, 0.1);}.close-btn.svelte-1h56j87:focus-visible {outline:2px solid var(--pie-primary, #3f51b5);outline-offset:2px;}
2807
+
2808
+ /* Content wrapper */.periodic-table-content.svelte-1h56j87 {flex:1;display:flex;flex-direction:column;overflow:visible; /* Changed from auto to visible - no scrolling needed */padding:10px 4px 0 16px; /* top | right | bottom | left */}
2809
+
2810
+ /* Wrapper needed for absolute positioning of overlays */.periodic-table-wrapper.svelte-1h56j87 {position:relative;}
2811
+
2812
+ /* Main grid layout */.periodic-table.svelte-1h56j87 {display:grid;grid-gap:3px;grid-template-columns:repeat(18, minmax(35px, 1fr));grid-template-rows:repeat(10, minmax(35px, 1fr));margin:0 auto;width:100%;}
2813
+
2814
+ /* Category badge row (matching production implementation) */.element-category-header.category-badge-row.svelte-1h56j87 {align-items:center;background-color:transparent;display:flex;flex-wrap:wrap;gap:6px;justify-content:center;padding:0.5rem;}.category-badge.svelte-1h56j87 {border:1px solid rgba(0, 0, 0, 0.1);border-radius:1rem;cursor:pointer;font-size:0.7rem;line-height:1;padding:4px 6px;transition:background-color 0.2s ease, color 0.2s ease;white-space:nowrap;background:white;color:#333;}.category-badge.svelte-1h56j87:hover {background:rgba(0, 0, 0, 0.05);}.category-badge.active.svelte-1h56j87 {background-color:var(--pie-primary-dark, #2c3e50);border-color:var(--pie-primary-dark, #2c3e50);color:#fff;}
2815
+
2816
+ /* Element overview section (matching production implementation) */.element-overview.svelte-1h56j87 {align-items:center;display:flex;height:100%;justify-content:center;padding:6px;z-index:2;}.selected-element-box.grid-layout.svelte-1h56j87 {align-items:center;border:2px solid #000;border-radius:8px;box-sizing:border-box;display:flex;gap:16px;padding:12px;background:white;}.left-col.svelte-1h56j87 {align-items:center;display:flex;flex-direction:column;min-width:0;}.symbol-center.svelte-1h56j87 {font-size:2rem;font-weight:bold;line-height:1.2;margin-bottom:4px;}.element-name.svelte-1h56j87 {color:#333;font-size:1rem;font-weight:500;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;}.right-col.svelte-1h56j87 {display:flex;flex-direction:column;gap:8px;justify-content:space-between;min-width:0;}.top-row.svelte-1h56j87,
2817
+ .bottom-row.svelte-1h56j87 {display:flex;gap:8px;justify-content:space-between;min-width:0;}.info-block.svelte-1h56j87 {display:flex;flex-direction:column;min-width:0;text-align:left;}.info-block.svelte-1h56j87 .label:where(.svelte-1h56j87) {color:#444;font-size:0.75rem;font-weight:bold;margin-bottom:2px;}.info-block.svelte-1h56j87 .value:where(.svelte-1h56j87) {color:#000;font-size:0.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
2818
+
2819
+ /* Element styles */.element.svelte-1h56j87 {background-color:white;border:1px solid rgba(0, 0, 0, 0.1);border-radius:4px;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;min-height:50px;padding:3px;position:relative;transition:transform 0.1s ease-in-out;}.element.svelte-1h56j87:hover {border-color:var(--pie-primary-dark, #2c3e50);transform:scale(1.03);z-index:10;}.element.svelte-1h56j87:focus {outline:2px solid var(--pie-primary-dark, #2c3e50);outline-offset:2px;z-index:10;}.element.selected.svelte-1h56j87 {border-color:var(--pie-primary-dark, #2c3e50);box-shadow:0 0 0 2px rgba(0, 0, 0, 0.1);z-index:11;}
2820
+
2821
+ /* Dim out elements not in the selected category */.element.dim.svelte-1h56j87 {filter:grayscale(80%);opacity:0.4;}
2822
+
2823
+ /* Text inside each element box */.atomic-number.svelte-1h56j87 {font-size:9px;opacity:0.8;text-align:left;}.symbol.svelte-1h56j87 {font-size:14px;font-weight:bold;margin:2px 0;text-align:center;}.name.svelte-1h56j87 {font-size:8px;opacity:0.9;overflow:hidden;text-align:center;white-space:nowrap;}.atomic-mass.svelte-1h56j87 {font-size:9px;opacity:0.8;text-align:right;}
2824
+
2825
+ /* Overlay for Group (column) labels */.group-labels.svelte-1h56j87 {color:#333;display:flex;font-size:0.65rem;font-weight:bold;left:0;pointer-events:none;position:absolute;top:-1.2em;width:100%;}.group-label.svelte-1h56j87 {text-align:center;}
2826
+
2827
+ /* Overlay for Period (row) labels */.period-labels.svelte-1h56j87 {color:#333;display:flex;flex-direction:column;font-size:0.65rem;font-weight:bold;height:100%;justify-content:space-evenly;left:-1.2em;pointer-events:none;position:absolute;top:0;}.period-label.svelte-1h56j87 {padding-right:0.2em;text-align:right;}
2828
+
2829
+ /* Category-based background colors (matching production implementation) */.alkali-metal.svelte-1h56j87 {background-color:#ff9e9e;}.alkaline-earth-metal.svelte-1h56j87 {background-color:#ffdc8a;}.alkaline-earth.svelte-1h56j87 {background-color:#ffdc8a; /* Also handle without "-metal" suffix */}.lanthanide.svelte-1h56j87 {background-color:#f9a8d4;}.actinide.svelte-1h56j87 {background-color:#e0aaff;}.transition-metal.svelte-1h56j87 {background-color:#a3d8f4;}.post-transition-metal.svelte-1h56j87 {background-color:#b4f8c8;}.metalloid.svelte-1h56j87 {background-color:#d9f99d;}.diatomic-nonmetal.svelte-1h56j87 {background-color:#f5f5f5;}.noble-gas.svelte-1h56j87 {background-color:#c4b5fd;}.polyatomic-nonmetal.svelte-1h56j87 {background-color:#fbcfe8;}.nonmetal.svelte-1h56j87 {background-color:#f0f0f0; /* Production implementation also has this */}.halogen.svelte-1h56j87 {background-color:#8ef5d0; /* Production implementation has halogen color */}.unknown.svelte-1h56j87 {background-color:#f5f5f5;}`
2830
+ };
2831
+ function Ur(e, n) {
2832
+ so(n, !0), vr(e, Gr);
2833
+ let t = Yt(n, "visible", 7, !1), i = Yt(n, "toolId", 7, "periodicTable"), o = Yt(n, "coordinator");
2834
+ const s = typeof window < "u";
2835
+ let r = /* @__PURE__ */ O(void 0), l = /* @__PURE__ */ O(!1), a = /* @__PURE__ */ O(tn(s ? window.innerWidth / 2 : 400)), u = /* @__PURE__ */ O(tn(s ? window.innerHeight / 2 : 300)), d = /* @__PURE__ */ O(
2836
+ 1100
2837
+ // Increased to show all 18 columns without horizontal scrolling
2838
+ ), m = /* @__PURE__ */ O(
2839
+ 750
2840
+ // Increased to show all 10 rows without vertical scrolling
2841
+ ), p = /* @__PURE__ */ O(0), y = /* @__PURE__ */ O(0), h = /* @__PURE__ */ O(!1);
2842
+ const C = Or.elements;
2843
+ let f = /* @__PURE__ */ O(tn(
2844
+ C[0] || null
2845
+ // Initialize with Hydrogen
2846
+ )), g = /* @__PURE__ */ O("All");
2847
+ function K(x) {
2848
+ const T = x.toLowerCase();
2849
+ return T.indexOf("unknown") !== -1 ? "Unknown" : {
2850
+ "alkali metal": "Alkali Metal",
2851
+ "alkaline earth": "Alkaline Earth Metal",
2852
+ "alkaline earth metal": "Alkaline Earth Metal",
2853
+ "transition metal": "Transition Metal",
2854
+ "post-transition metal": "Post-transition Metal",
2855
+ metalloid: "Metalloid",
2856
+ nonmetal: "Diatomic Nonmetal",
2857
+ "polyatomic nonmetal": "Polyatomic Nonmetal",
2858
+ "diatomic nonmetal": "Diatomic Nonmetal",
2859
+ halogen: "Diatomic Nonmetal",
2860
+ // Halogens are diatomic nonmetals
2861
+ "noble gas": "Noble Gas",
2862
+ lanthanide: "Lanthanide",
2863
+ actinide: "Actinide",
2864
+ metal: "Post-transition Metal"
2865
+ // Some elements might just be 'metal'
2866
+ }[T] || x;
2867
+ }
2868
+ function Ve(x) {
2869
+ return x.split(" ").map((T) => T.charAt(0).toUpperCase() + T.slice(1)).join(" ");
2870
+ }
2871
+ let ne = /* @__PURE__ */ Mi(() => {
2872
+ const x = /* @__PURE__ */ new Set();
2873
+ return C.forEach((T) => {
2874
+ T.category && x.add(K(T.category));
2875
+ }), Array.from(x).sort();
2876
+ }), je = /* @__PURE__ */ Mi(() => _(g) === "All" ? C : C.filter((x) => K(x.category) === _(g)));
2877
+ function Le(x) {
2878
+ D(f, x, !0);
2879
+ }
2880
+ function W(x) {
2881
+ D(g, x, !0);
2882
+ }
2883
+ function xe() {
2884
+ o()?.hideTool(i());
2885
+ }
2886
+ function Qe(x) {
2887
+ const T = x.target;
2888
+ T.closest(".periodic-table-header") && (T.closest("button") || (D(l, !0), D(p, x.clientX - _(a)), D(y, x.clientY - _(u)), _(r) && (_(r).setPointerCapture(x.pointerId), o()?.bringToFront(_(r)))));
2889
+ }
2890
+ function I(x) {
2891
+ if (!_(l)) return;
2892
+ let T = x.clientX - _(p), En = x.clientY - _(y);
2893
+ const Wn = (_(r)?.offsetWidth || _(d)) / 2, dt = (_(r)?.offsetHeight || _(m)) / 2;
2894
+ D(a, Math.max(Wn, Math.min(T, window.innerWidth - Wn)), !0), D(u, Math.max(dt, Math.min(En, window.innerHeight - dt)), !0);
2895
+ }
2896
+ function ut(x) {
2897
+ _(l) && _(r) && (D(l, !1), _(r).releasePointerCapture(x.pointerId));
2898
+ }
2899
+ function Ht(x) {
2900
+ x.key === "Escape" && xe();
2901
+ }
2902
+ li(() => {
2903
+ o() && i() && !_(h) && (_(r) ? o().registerTool(i(), "Periodic Table", _(r), Rt.MODAL) : o().registerTool(i(), "Periodic Table", void 0, Rt.MODAL), D(h, !0));
2904
+ }), li(() => {
2905
+ o() && _(r) && i() && (o().updateToolElement(i(), _(r)), o().bringToFront(_(r)));
2906
+ }), yr(() => () => {
2907
+ o() && i() && o().unregisterTool(i());
2908
+ });
2909
+ var Zo = {
2910
+ get visible() {
2911
+ return t();
2912
+ },
2913
+ set visible(x = !1) {
2914
+ t(x), bt();
2915
+ },
2916
+ get toolId() {
2917
+ return i();
2918
+ },
2919
+ set toolId(x = "periodicTable") {
2920
+ i(x), bt();
2921
+ },
2922
+ get coordinator() {
2923
+ return o();
2924
+ },
2925
+ set coordinator(x) {
2926
+ o(x), bt();
2927
+ }
2928
+ }, ki = Jt(), es = Kt(ki);
2929
+ {
2930
+ var ns = (x) => {
2931
+ var T = Fr();
2932
+ T.__pointerdown = Qe, T.__pointermove = I, T.__pointerup = ut, T.__keydown = Ht;
2933
+ var En = z(T), Wn = M(z(En), 2), dt = z(Wn);
2934
+ dt.__click = xe, k(Wn), k(En);
2935
+ var Si = M(En, 2), Ei = z(Si), Ft = z(Ei), Gt = z(Ft), pt = z(Gt);
2936
+ let $i;
2937
+ pt.__click = () => W("All");
2938
+ var ts = M(pt, 2);
2939
+ yt(ts, 16, () => _(ne), (F) => F, (F, A) => {
2940
+ var R = Dr();
2941
+ let G;
2942
+ R.__click = () => W(A);
2943
+ var ye = z(R, !0);
2944
+ k(R), mt(
2945
+ (an, ke) => {
2946
+ G = ht(R, 1, `category-badge ${an ?? ""}`, "svelte-1h56j87", G, { active: _(g) === A }), Vn(R, "aria-label", `Filter by ${A ?? ""}`), Vn(R, "aria-pressed", _(g) === A), he(ye, ke);
2947
+ },
2948
+ [
2949
+ () => A.replace(" ", "-").toLowerCase(),
2950
+ () => Ve(A)
2951
+ ]
2952
+ ), te(F, R);
2953
+ }), k(Gt);
2954
+ var Ai = M(Gt, 2);
2955
+ {
2956
+ var is = (F) => {
2957
+ var A = Pr(), R = z(A), G = z(R), ye = z(G), an = z(ye, !0);
2958
+ k(ye);
2959
+ var ke = M(ye, 2), Me = z(ke, !0);
2960
+ k(ke), k(G);
2961
+ var Oe = M(G, 2), cn = z(Oe), Ze = z(cn), $n = M(z(Ze), 2), V = z($n, !0);
2962
+ k($n), k(Ze);
2963
+ var De = M(Ze, 2), An = M(z(De), 2), Jn = z(An, !0);
2964
+ k(An), k(De), k(cn);
2965
+ var ft = M(cn, 2), Se = z(ft), un = M(z(Se), 2), ss = z(un, !0);
2966
+ k(un), k(Se);
2967
+ var Ri = M(Se, 2), Ci = M(z(Ri), 2), rs = z(Ci, !0);
2968
+ k(Ci), k(Ri), k(ft), k(Oe), k(R), k(A), mt(
2969
+ (ls) => {
2970
+ ht(R, 1, `selected-element-box grid-layout ${ls ?? ""}`, "svelte-1h56j87"), he(an, _(f).symbol), he(Me, _(f).name), he(V, _(f).atomic_mass), he(Jn, _(f).number), he(ss, _(f).electron_configuration_semantic), he(rs, _(f).phase);
2971
+ },
2972
+ [
2973
+ () => K(_(f).category).replace(" ", "-").toLowerCase()
2974
+ ]
2975
+ ), te(F, A);
2976
+ };
2977
+ qn(Ai, (F) => {
2978
+ _(f) && F(is);
2979
+ });
2980
+ }
2981
+ var os = M(Ai, 2);
2982
+ yt(os, 17, () => _(je), (F) => F.symbol, (F, A) => {
2983
+ var R = Ir();
2984
+ let G;
2985
+ R.__click = () => Le(_(A)), R.__keydown = (V) => {
2986
+ (V.key === "Enter" || V.key === " ") && (V.preventDefault(), Le(_(A)));
2987
+ };
2988
+ var ye = z(R), an = z(ye, !0);
2989
+ k(ye);
2990
+ var ke = M(ye, 2), Me = z(ke, !0);
2991
+ k(ke);
2992
+ var Oe = M(ke, 2), cn = z(Oe, !0);
2993
+ k(Oe);
2994
+ var Ze = M(Oe, 2), $n = z(Ze, !0);
2995
+ k(Ze), k(R), mt(
2996
+ (V, De, An, Jn) => {
2997
+ G = ht(R, 1, `element ${V ?? ""}`, "svelte-1h56j87", G, De), qt(R, `grid-row: ${_(A).ypos ?? ""}; grid-column: ${_(A).xpos ?? ""};`), Vn(R, "title", _(A).name), Vn(R, "aria-label", `${_(A).name ?? ""}, Symbol: ${_(A).symbol ?? ""}, Atomic number: ${_(A).number ?? ""}, Atomic mass: ${An ?? ""}, Category: ${_(A).category ?? ""}`), he(an, _(A).number), he(Me, _(A).symbol), he(cn, _(A).name), he($n, Jn);
2998
+ },
2999
+ [
3000
+ () => K(_(A).category).replace(" ", "-").toLowerCase(),
3001
+ () => ({
3002
+ selected: _(f)?.symbol === _(A).symbol,
3003
+ dim: _(g) !== "All" && K(_(A).category) !== _(g)
3004
+ }),
3005
+ () => _(A).atomic_mass.toFixed(3),
3006
+ () => _(A).atomic_mass.toFixed(3)
3007
+ ]
3008
+ ), te(F, R);
3009
+ }), k(Ft);
3010
+ var Ut = M(Ft, 2);
3011
+ yt(Ut, 20, () => Array(18), Bi, (F, A, R) => {
3012
+ var G = Br();
3013
+ qt(G, `left: ${R * 5.555555555555555}%; width: 5.555555555555555%;`), G.textContent = R + 1, te(F, G);
3014
+ }), k(Ut);
3015
+ var zi = M(Ut, 2);
3016
+ yt(zi, 20, () => Array(10), Bi, (F, A, R) => {
3017
+ var G = Hr(), ye = z(G);
3018
+ {
3019
+ var an = (Me) => {
3020
+ }, ke = (Me) => {
3021
+ var Oe = Jt(), cn = Kt(Oe);
3022
+ {
3023
+ var Ze = (V) => {
3024
+ var De = Wt("6");
3025
+ te(V, De);
3026
+ }, $n = (V) => {
3027
+ var De = Jt(), An = Kt(De);
3028
+ {
3029
+ var Jn = (Se) => {
3030
+ var un = Wt("7");
3031
+ te(Se, un);
3032
+ }, ft = (Se) => {
3033
+ var un = Wt();
3034
+ un.nodeValue = R - 2, te(Se, un);
3035
+ };
3036
+ qn(
3037
+ An,
3038
+ (Se) => {
3039
+ R === 9 ? Se(Jn) : Se(ft, !1);
3040
+ },
3041
+ !0
3042
+ );
3043
+ }
3044
+ te(V, De);
3045
+ };
3046
+ qn(
3047
+ cn,
3048
+ (V) => {
3049
+ R === 8 ? V(Ze) : V($n, !1);
3050
+ },
3051
+ !0
3052
+ );
3053
+ }
3054
+ te(Me, Oe);
3055
+ };
3056
+ qn(ye, (Me) => {
3057
+ R < 3 ? Me(an) : Me(ke, !1);
3058
+ });
3059
+ }
3060
+ k(G), te(F, G);
3061
+ }), k(zi), k(Ei), k(Si), k(T), Ar(T, (F) => D(r, F), () => _(r)), mt(() => {
3062
+ qt(T, `left: ${_(a) ?? ""}px; top: ${_(u) ?? ""}px; width: ${_(d) ?? ""}px; height: ${_(m) ?? ""}px; transform: translate(-50%, -50%);`), $i = ht(pt, 1, "category-badge svelte-1h56j87", null, $i, { active: _(g) === "All" }), Vn(pt, "aria-pressed", _(g) === "All");
3063
+ }), ar("lostpointercapture", T, ut), te(x, T);
3064
+ };
3065
+ qn(es, (x) => {
3066
+ t() && x(ns);
3067
+ });
3068
+ }
3069
+ return te(e, ki), ro(Zo);
3070
+ }
3071
+ cr([
3072
+ "pointerdown",
3073
+ "pointermove",
3074
+ "pointerup",
3075
+ "keydown",
3076
+ "click"
3077
+ ]);
3078
+ customElements.define("pie-tool-periodic-table", Tr(
3079
+ Ur,
3080
+ {
3081
+ visible: { attribute: "visible", type: "Boolean" },
3082
+ toolId: { attribute: "tool-id", type: "String" },
3083
+ coordinator: { type: "Object" }
3084
+ },
3085
+ [],
3086
+ []
3087
+ ));
3088
+ export {
3089
+ Ur as default
3090
+ };
3091
+ //# sourceMappingURL=tool-periodic-table.js.map