@pie-players/pie-section-player-tools-shared 0.3.10 → 0.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/floating-panel.d.ts +2 -0
- package/dist/floating-panel.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +439 -433
- package/floating-panel.ts +22 -0
- package/index.ts +1 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
var
|
|
1
|
+
var nn = Object.defineProperty;
|
|
2
2
|
var he = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var U = (t, e, n) =>
|
|
7
|
-
var o = (t, e, n) => (qt(t, e, "read from private field"), n ? n.call(t) : e.get(t)), g = (t, e, n) => e.has(t) ? he("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n),
|
|
8
|
-
var
|
|
9
|
-
typeof window < "u" && ((
|
|
10
|
-
const
|
|
11
|
-
var
|
|
12
|
-
const
|
|
5
|
+
var rn = (t, e, n) => e in t ? nn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
6
|
+
var U = (t, e, n) => rn(t, typeof e != "symbol" ? e + "" : e, n), qt = (t, e, n) => e.has(t) || he("Cannot " + n);
|
|
7
|
+
var o = (t, e, n) => (qt(t, e, "read from private field"), n ? n.call(t) : e.get(t)), g = (t, e, n) => e.has(t) ? he("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), j = (t, e, n, r) => (qt(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), V = (t, e, n) => (qt(t, e, "access private method"), n);
|
|
8
|
+
var Ee;
|
|
9
|
+
typeof window < "u" && ((Ee = window.__svelte ?? (window.__svelte = {})).v ?? (Ee.v = /* @__PURE__ */ new Set())).add("5");
|
|
10
|
+
const sn = 1, ln = 2, Xt = /* @__PURE__ */ Symbol(), ye = "http://www.w3.org/1999/xhtml", Gt = !1;
|
|
11
|
+
var on = Array.prototype.indexOf, Et = Array.prototype.includes, an = Object.getOwnPropertyDescriptors, fn = Object.getPrototypeOf;
|
|
12
|
+
const un = () => {
|
|
13
13
|
};
|
|
14
|
-
function
|
|
14
|
+
function cn(t) {
|
|
15
15
|
for (var e = 0; e < t.length; e++)
|
|
16
16
|
t[e]();
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function ke() {
|
|
19
19
|
var t, e, n = new Promise((r, i) => {
|
|
20
20
|
t = r, e = i;
|
|
21
21
|
});
|
|
22
22
|
return { promise: n, resolve: t, reject: e };
|
|
23
23
|
}
|
|
24
|
-
const E = 2, bt = 4, yt = 8, le = 1 << 24, st = 16, W = 32, xt = 64,
|
|
24
|
+
const E = 2, bt = 4, yt = 8, le = 1 << 24, st = 16, W = 32, xt = 64, hn = 128, F = 512, b = 1024, x = 2048, H = 4096, I = 8192, K = 16384, Tt = 32768, kt = 65536, dn = 1 << 18, jt = 1 << 19, vn = 1 << 20, it = 65536, Kt = 1 << 21, Me = 1 << 22, J = 1 << 23, _n = /* @__PURE__ */ Symbol(""), tt = new class extends Error {
|
|
25
25
|
constructor() {
|
|
26
26
|
super(...arguments);
|
|
27
27
|
U(this, "name", "StaleReactionError");
|
|
28
28
|
U(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
29
29
|
}
|
|
30
30
|
}();
|
|
31
|
-
function
|
|
31
|
+
function pn() {
|
|
32
32
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function mn() {
|
|
35
35
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Se(t) {
|
|
38
38
|
return t === this.v;
|
|
39
39
|
}
|
|
40
40
|
let wn = !1, B = null;
|
|
41
|
-
function
|
|
41
|
+
function It(t) {
|
|
42
42
|
B = t;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function gn(t, e = !1, n) {
|
|
45
45
|
B = {
|
|
46
46
|
p: B,
|
|
47
47
|
i: !1,
|
|
@@ -52,7 +52,7 @@ function mn(t, e = !1, n) {
|
|
|
52
52
|
l: null
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function bn(t) {
|
|
56
56
|
var e = (
|
|
57
57
|
/** @type {ComponentContext} */
|
|
58
58
|
B
|
|
@@ -60,29 +60,29 @@ function gn(t) {
|
|
|
60
60
|
if (n !== null) {
|
|
61
61
|
e.e = null;
|
|
62
62
|
for (var r of n)
|
|
63
|
-
|
|
63
|
+
qn(r);
|
|
64
64
|
}
|
|
65
65
|
return e.i = !0, B = e.p, /** @type {T} */
|
|
66
66
|
{};
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function xn() {
|
|
69
69
|
return !0;
|
|
70
70
|
}
|
|
71
71
|
let ot = [];
|
|
72
|
-
function
|
|
72
|
+
function En() {
|
|
73
73
|
var t = ot;
|
|
74
|
-
ot = [],
|
|
74
|
+
ot = [], cn(t);
|
|
75
75
|
}
|
|
76
76
|
function de(t) {
|
|
77
77
|
if (ot.length === 0) {
|
|
78
78
|
var e = ot;
|
|
79
79
|
queueMicrotask(() => {
|
|
80
|
-
e === ot &&
|
|
80
|
+
e === ot && En();
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
ot.push(t);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function yn(t) {
|
|
86
86
|
var e = _;
|
|
87
87
|
if (e === null)
|
|
88
88
|
return h.f |= J, t;
|
|
@@ -92,7 +92,7 @@ function En(t) {
|
|
|
92
92
|
}
|
|
93
93
|
function Lt(t, e) {
|
|
94
94
|
for (; e !== null; ) {
|
|
95
|
-
if ((e.f &
|
|
95
|
+
if ((e.f & hn) !== 0) {
|
|
96
96
|
if ((e.f & Tt) === 0)
|
|
97
97
|
throw t;
|
|
98
98
|
try {
|
|
@@ -106,32 +106,32 @@ function Lt(t, e) {
|
|
|
106
106
|
}
|
|
107
107
|
throw t;
|
|
108
108
|
}
|
|
109
|
-
const
|
|
110
|
-
function
|
|
111
|
-
t.f = t.f &
|
|
109
|
+
const kn = -7169;
|
|
110
|
+
function w(t, e) {
|
|
111
|
+
t.f = t.f & kn | e;
|
|
112
112
|
}
|
|
113
113
|
function oe(t) {
|
|
114
|
-
(t.f &
|
|
114
|
+
(t.f & F) !== 0 || t.deps === null ? w(t, b) : w(t, H);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Ce(t) {
|
|
117
117
|
if (t !== null)
|
|
118
118
|
for (const e of t)
|
|
119
|
-
(e.f & E) === 0 || (e.f & it) === 0 || (e.f ^= it,
|
|
119
|
+
(e.f & E) === 0 || (e.f & it) === 0 || (e.f ^= it, Ce(
|
|
120
120
|
/** @type {Derived} */
|
|
121
121
|
e.deps
|
|
122
122
|
));
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
(t.f & x) !== 0 ? e.add(t) : (t.f &
|
|
124
|
+
function Mn(t, e, n) {
|
|
125
|
+
(t.f & x) !== 0 ? e.add(t) : (t.f & H) !== 0 && n.add(t), Ce(t.deps), w(t, b);
|
|
126
126
|
}
|
|
127
|
-
const
|
|
128
|
-
let p = null,
|
|
129
|
-
var q,
|
|
127
|
+
const Nt = /* @__PURE__ */ new Set();
|
|
128
|
+
let p = null, D = null, R = [], ae = null, vt = null, Sn = 1;
|
|
129
|
+
var q, ft, nt, ut, ct, ht, Z, P, dt, k, Jt, Qt, $t, te;
|
|
130
130
|
const ce = class ce {
|
|
131
131
|
constructor() {
|
|
132
132
|
g(this, k);
|
|
133
133
|
// for debugging. TODO remove once async is stable
|
|
134
|
-
U(this, "id",
|
|
134
|
+
U(this, "id", Sn++);
|
|
135
135
|
/**
|
|
136
136
|
* The current values of any sources that are updated in this batch
|
|
137
137
|
* They keys of this map are identical to `this.#previous`
|
|
@@ -154,7 +154,7 @@ const ce = class ce {
|
|
|
154
154
|
* If a fork is discarded, we need to destroy any effects that are no longer needed
|
|
155
155
|
* @type {Set<(batch: Batch) => void>}
|
|
156
156
|
*/
|
|
157
|
-
g(this,
|
|
157
|
+
g(this, ft, /* @__PURE__ */ new Set());
|
|
158
158
|
/**
|
|
159
159
|
* The number of async effects that are currently in flight
|
|
160
160
|
*/
|
|
@@ -178,7 +178,7 @@ const ce = class ce {
|
|
|
178
178
|
* Deferred effects that are MAYBE_DIRTY
|
|
179
179
|
* @type {Set<Effect>}
|
|
180
180
|
*/
|
|
181
|
-
g(this,
|
|
181
|
+
g(this, Z, /* @__PURE__ */ new Set());
|
|
182
182
|
/**
|
|
183
183
|
* A map of branches that still exist, but will be destroyed when this batch
|
|
184
184
|
* is committed — we skip over these during `process`.
|
|
@@ -207,9 +207,9 @@ const ce = class ce {
|
|
|
207
207
|
if (n) {
|
|
208
208
|
o(this, P).delete(e);
|
|
209
209
|
for (var r of n.d)
|
|
210
|
-
|
|
210
|
+
w(r, x), G(r);
|
|
211
211
|
for (r of n.m)
|
|
212
|
-
|
|
212
|
+
w(r, H), G(r);
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
@@ -217,20 +217,20 @@ const ce = class ce {
|
|
|
217
217
|
* @param {Effect[]} root_effects
|
|
218
218
|
*/
|
|
219
219
|
process(e) {
|
|
220
|
-
|
|
220
|
+
R = [], this.apply();
|
|
221
221
|
var n = vt = [], r = [];
|
|
222
222
|
for (const i of e)
|
|
223
223
|
V(this, k, Qt).call(this, i, n, r);
|
|
224
224
|
if (vt = null, V(this, k, Jt).call(this)) {
|
|
225
225
|
V(this, k, $t).call(this, r), V(this, k, $t).call(this, n);
|
|
226
226
|
for (const [i, s] of o(this, P))
|
|
227
|
-
|
|
227
|
+
Ne(i, s);
|
|
228
228
|
} else {
|
|
229
229
|
p = null;
|
|
230
230
|
for (const i of o(this, q)) i(this);
|
|
231
|
-
o(this, q).clear(), o(this, nt) === 0 && V(this, k, te).call(this), ve(r), ve(n), o(this, ht).clear(), o(this,
|
|
231
|
+
o(this, q).clear(), o(this, nt) === 0 && V(this, k, te).call(this), ve(r), ve(n), o(this, ht).clear(), o(this, Z).clear(), o(this, ct)?.resolve();
|
|
232
232
|
}
|
|
233
|
-
|
|
233
|
+
D = null;
|
|
234
234
|
}
|
|
235
235
|
/**
|
|
236
236
|
* Associate a change to a given source with the current
|
|
@@ -239,17 +239,17 @@ const ce = class ce {
|
|
|
239
239
|
* @param {any} value
|
|
240
240
|
*/
|
|
241
241
|
capture(e, n) {
|
|
242
|
-
n !==
|
|
242
|
+
n !== Xt && !this.previous.has(e) && this.previous.set(e, n), (e.f & J) === 0 && (this.current.set(e, e.v), D?.set(e, e.v));
|
|
243
243
|
}
|
|
244
244
|
activate() {
|
|
245
245
|
p = this, this.apply();
|
|
246
246
|
}
|
|
247
247
|
deactivate() {
|
|
248
|
-
p === this && (p = null,
|
|
248
|
+
p === this && (p = null, D = null);
|
|
249
249
|
}
|
|
250
250
|
flush() {
|
|
251
|
-
if (
|
|
252
|
-
p = this,
|
|
251
|
+
if (R.length > 0)
|
|
252
|
+
p = this, Cn();
|
|
253
253
|
else if (o(this, nt) === 0 && !this.is_fork) {
|
|
254
254
|
for (const e of o(this, q)) e(this);
|
|
255
255
|
o(this, q).clear(), V(this, k, te).call(this), o(this, ct)?.resolve();
|
|
@@ -257,30 +257,30 @@ const ce = class ce {
|
|
|
257
257
|
this.deactivate();
|
|
258
258
|
}
|
|
259
259
|
discard() {
|
|
260
|
-
for (const e of o(this,
|
|
261
|
-
o(this,
|
|
260
|
+
for (const e of o(this, ft)) e(this);
|
|
261
|
+
o(this, ft).clear();
|
|
262
262
|
}
|
|
263
263
|
/**
|
|
264
264
|
*
|
|
265
265
|
* @param {boolean} blocking
|
|
266
266
|
*/
|
|
267
267
|
increment(e) {
|
|
268
|
-
|
|
268
|
+
j(this, nt, o(this, nt) + 1), e && j(this, ut, o(this, ut) + 1);
|
|
269
269
|
}
|
|
270
270
|
/**
|
|
271
271
|
*
|
|
272
272
|
* @param {boolean} blocking
|
|
273
273
|
*/
|
|
274
274
|
decrement(e) {
|
|
275
|
-
|
|
276
|
-
|
|
275
|
+
j(this, nt, o(this, nt) - 1), e && j(this, ut, o(this, ut) - 1), !o(this, dt) && (j(this, dt, !0), de(() => {
|
|
276
|
+
j(this, dt, !1), V(this, k, Jt).call(this) ? R.length > 0 && this.flush() : this.revive();
|
|
277
277
|
}));
|
|
278
278
|
}
|
|
279
279
|
revive() {
|
|
280
280
|
for (const e of o(this, ht))
|
|
281
|
-
o(this,
|
|
282
|
-
for (const e of o(this,
|
|
283
|
-
|
|
281
|
+
o(this, Z).delete(e), w(e, x), G(e);
|
|
282
|
+
for (const e of o(this, Z))
|
|
283
|
+
w(e, H), G(e);
|
|
284
284
|
this.flush();
|
|
285
285
|
}
|
|
286
286
|
/** @param {(batch: Batch) => void} fn */
|
|
@@ -289,15 +289,15 @@ const ce = class ce {
|
|
|
289
289
|
}
|
|
290
290
|
/** @param {(batch: Batch) => void} fn */
|
|
291
291
|
ondiscard(e) {
|
|
292
|
-
o(this,
|
|
292
|
+
o(this, ft).add(e);
|
|
293
293
|
}
|
|
294
294
|
settled() {
|
|
295
|
-
return (o(this, ct) ??
|
|
295
|
+
return (o(this, ct) ?? j(this, ct, ke())).promise;
|
|
296
296
|
}
|
|
297
297
|
static ensure() {
|
|
298
298
|
if (p === null) {
|
|
299
299
|
const e = p = new ce();
|
|
300
|
-
|
|
300
|
+
Nt.add(p), de(() => {
|
|
301
301
|
p === e && e.flush();
|
|
302
302
|
});
|
|
303
303
|
}
|
|
@@ -306,7 +306,7 @@ const ce = class ce {
|
|
|
306
306
|
apply() {
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
|
-
q = new WeakMap(),
|
|
309
|
+
q = new WeakMap(), ft = new WeakMap(), nt = new WeakMap(), ut = new WeakMap(), ct = new WeakMap(), ht = new WeakMap(), Z = new WeakMap(), P = new WeakMap(), dt = new WeakMap(), k = new WeakSet(), Jt = function() {
|
|
310
310
|
return this.is_fork || o(this, ut) > 0;
|
|
311
311
|
}, /**
|
|
312
312
|
* Traverse the effect tree, executing effects or stashing
|
|
@@ -318,9 +318,9 @@ q = new WeakMap(), at = new WeakMap(), nt = new WeakMap(), ut = new WeakMap(), c
|
|
|
318
318
|
Qt = function(e, n, r) {
|
|
319
319
|
e.f ^= b;
|
|
320
320
|
for (var i = e.first; i !== null; ) {
|
|
321
|
-
var s = i.f, l = (s & (W | xt)) !== 0,
|
|
321
|
+
var s = i.f, l = (s & (W | xt)) !== 0, a = l && (s & b) !== 0, f = (s & I) !== 0, c = a || o(this, P).has(i);
|
|
322
322
|
if (!c && i.fn !== null) {
|
|
323
|
-
l ?
|
|
323
|
+
l ? f || (i.f ^= b) : (s & bt) !== 0 ? n.push(i) : (s & (yt | le)) !== 0 && f ? r.push(i) : At(i) && (gt(i), (s & st) !== 0 && (o(this, Z).add(i), f && w(i, x)));
|
|
324
324
|
var d = i.first;
|
|
325
325
|
if (d !== null) {
|
|
326
326
|
i = d;
|
|
@@ -341,69 +341,69 @@ Qt = function(e, n, r) {
|
|
|
341
341
|
*/
|
|
342
342
|
$t = function(e) {
|
|
343
343
|
for (var n = 0; n < e.length; n += 1)
|
|
344
|
-
|
|
344
|
+
Mn(e[n], o(this, ht), o(this, Z));
|
|
345
345
|
}, te = function() {
|
|
346
346
|
var s;
|
|
347
|
-
if (
|
|
347
|
+
if (Nt.size > 1) {
|
|
348
348
|
this.previous.clear();
|
|
349
|
-
var e = p, n =
|
|
350
|
-
for (const l of
|
|
349
|
+
var e = p, n = D, r = !0;
|
|
350
|
+
for (const l of Nt) {
|
|
351
351
|
if (l === this) {
|
|
352
352
|
r = !1;
|
|
353
353
|
continue;
|
|
354
354
|
}
|
|
355
|
-
const
|
|
355
|
+
const a = [];
|
|
356
356
|
for (const [c, d] of this.current) {
|
|
357
357
|
if (l.current.has(c))
|
|
358
358
|
if (r && d !== l.current.get(c))
|
|
359
359
|
l.current.set(c, d);
|
|
360
360
|
else
|
|
361
361
|
continue;
|
|
362
|
-
|
|
362
|
+
a.push(c);
|
|
363
363
|
}
|
|
364
|
-
if (
|
|
364
|
+
if (a.length === 0)
|
|
365
365
|
continue;
|
|
366
|
-
const
|
|
367
|
-
if (
|
|
368
|
-
var i =
|
|
369
|
-
|
|
366
|
+
const f = [...l.current.keys()].filter((c) => !this.current.has(c));
|
|
367
|
+
if (f.length > 0) {
|
|
368
|
+
var i = R;
|
|
369
|
+
R = [];
|
|
370
370
|
const c = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Map();
|
|
371
|
-
for (const u of
|
|
372
|
-
|
|
373
|
-
if (
|
|
371
|
+
for (const u of a)
|
|
372
|
+
Te(u, f, c, d);
|
|
373
|
+
if (R.length > 0) {
|
|
374
374
|
p = l, l.apply();
|
|
375
|
-
for (const u of
|
|
375
|
+
for (const u of R)
|
|
376
376
|
V(s = l, k, Qt).call(s, u, [], []);
|
|
377
377
|
l.deactivate();
|
|
378
378
|
}
|
|
379
|
-
|
|
379
|
+
R = i;
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
p = e,
|
|
382
|
+
p = e, D = n;
|
|
383
383
|
}
|
|
384
|
-
o(this, P).clear(),
|
|
384
|
+
o(this, P).clear(), Nt.delete(this);
|
|
385
385
|
};
|
|
386
|
-
let
|
|
387
|
-
function
|
|
386
|
+
let Dt = ce;
|
|
387
|
+
function Cn() {
|
|
388
388
|
var t = null;
|
|
389
389
|
try {
|
|
390
|
-
for (var e = 0;
|
|
391
|
-
var n =
|
|
390
|
+
for (var e = 0; R.length > 0; ) {
|
|
391
|
+
var n = Dt.ensure();
|
|
392
392
|
if (e++ > 1e3) {
|
|
393
393
|
var r, i;
|
|
394
|
-
|
|
394
|
+
Tn();
|
|
395
395
|
}
|
|
396
|
-
n.process(
|
|
396
|
+
n.process(R), Q.clear();
|
|
397
397
|
}
|
|
398
398
|
} finally {
|
|
399
|
-
|
|
399
|
+
R = [], ae = null, vt = null;
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function Tn() {
|
|
403
403
|
try {
|
|
404
|
-
|
|
404
|
+
mn();
|
|
405
405
|
} catch (t) {
|
|
406
|
-
Lt(t,
|
|
406
|
+
Lt(t, ae);
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
let z = null;
|
|
@@ -412,17 +412,17 @@ function ve(t) {
|
|
|
412
412
|
if (e !== 0) {
|
|
413
413
|
for (var n = 0; n < e; ) {
|
|
414
414
|
var r = t[n++];
|
|
415
|
-
if ((r.f & (K |
|
|
415
|
+
if ((r.f & (K | I)) === 0 && At(r) && (z = /* @__PURE__ */ new Set(), gt(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Ve(r), z?.size > 0)) {
|
|
416
416
|
Q.clear();
|
|
417
417
|
for (const i of z) {
|
|
418
|
-
if ((i.f & (K |
|
|
418
|
+
if ((i.f & (K | I)) !== 0) continue;
|
|
419
419
|
const s = [i];
|
|
420
420
|
let l = i.parent;
|
|
421
421
|
for (; l !== null; )
|
|
422
422
|
z.has(l) && (z.delete(l), s.push(l)), l = l.parent;
|
|
423
|
-
for (let
|
|
424
|
-
const
|
|
425
|
-
(
|
|
423
|
+
for (let a = s.length - 1; a >= 0; a--) {
|
|
424
|
+
const f = s[a];
|
|
425
|
+
(f.f & (K | I)) === 0 && gt(f);
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
428
|
z.clear();
|
|
@@ -431,30 +431,30 @@ function ve(t) {
|
|
|
431
431
|
z = null;
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function Te(t, e, n, r) {
|
|
435
435
|
if (!n.has(t) && (n.add(t), t.reactions !== null))
|
|
436
436
|
for (const i of t.reactions) {
|
|
437
437
|
const s = i.f;
|
|
438
|
-
(s & E) !== 0 ?
|
|
438
|
+
(s & E) !== 0 ? Te(
|
|
439
439
|
/** @type {Derived} */
|
|
440
440
|
i,
|
|
441
441
|
e,
|
|
442
442
|
n,
|
|
443
443
|
r
|
|
444
|
-
) : (s & (
|
|
444
|
+
) : (s & (Me | st)) !== 0 && (s & x) === 0 && Ae(i, e, r) && (w(i, x), G(
|
|
445
445
|
/** @type {Effect} */
|
|
446
446
|
i
|
|
447
447
|
));
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function Ae(t, e, n) {
|
|
451
451
|
const r = n.get(t);
|
|
452
452
|
if (r !== void 0) return r;
|
|
453
453
|
if (t.deps !== null)
|
|
454
454
|
for (const i of t.deps) {
|
|
455
455
|
if (Et.call(e, i))
|
|
456
456
|
return !0;
|
|
457
|
-
if ((i.f & E) !== 0 &&
|
|
457
|
+
if ((i.f & E) !== 0 && Ae(
|
|
458
458
|
/** @type {Derived} */
|
|
459
459
|
i,
|
|
460
460
|
e,
|
|
@@ -468,8 +468,8 @@ function Te(t, e, n) {
|
|
|
468
468
|
}
|
|
469
469
|
return n.set(t, !1), !1;
|
|
470
470
|
}
|
|
471
|
-
function
|
|
472
|
-
var e =
|
|
471
|
+
function G(t) {
|
|
472
|
+
var e = ae = t, n = e.b;
|
|
473
473
|
if (n?.is_pending && (t.f & (bt | yt | le)) !== 0 && (t.f & Tt) === 0) {
|
|
474
474
|
n.defer_effect(t);
|
|
475
475
|
return;
|
|
@@ -485,16 +485,16 @@ function Z(t) {
|
|
|
485
485
|
e.f ^= b;
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
|
|
488
|
+
R.push(e);
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function Ne(t, e) {
|
|
491
491
|
if (!((t.f & W) !== 0 && (t.f & b) !== 0)) {
|
|
492
|
-
(t.f & x) !== 0 ? e.d.push(t) : (t.f &
|
|
492
|
+
(t.f & x) !== 0 ? e.d.push(t) : (t.f & H) !== 0 && e.m.push(t), w(t, b);
|
|
493
493
|
for (var n = t.first; n !== null; )
|
|
494
|
-
|
|
494
|
+
Ne(n, e), n = n.next;
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function An(t, e, n, r) {
|
|
498
498
|
const i = Re;
|
|
499
499
|
var s = t.filter((u) => !u.settled);
|
|
500
500
|
if (n.length === 0 && s.length === 0) {
|
|
@@ -504,33 +504,33 @@ function Tn(t, e, n, r) {
|
|
|
504
504
|
var l = (
|
|
505
505
|
/** @type {Effect} */
|
|
506
506
|
_
|
|
507
|
-
),
|
|
507
|
+
), a = Nn(), f = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((u) => u.promise)) : null;
|
|
508
508
|
function c(u) {
|
|
509
|
-
|
|
509
|
+
a();
|
|
510
510
|
try {
|
|
511
511
|
r(u);
|
|
512
|
-
} catch (
|
|
513
|
-
(l.f & K) === 0 && Lt(
|
|
512
|
+
} catch (m) {
|
|
513
|
+
(l.f & K) === 0 && Lt(m, l);
|
|
514
514
|
}
|
|
515
515
|
ee();
|
|
516
516
|
}
|
|
517
517
|
if (n.length === 0) {
|
|
518
|
-
|
|
518
|
+
f.then(() => c(e.map(i)));
|
|
519
519
|
return;
|
|
520
520
|
}
|
|
521
521
|
function d() {
|
|
522
|
-
|
|
522
|
+
a(), Promise.all(n.map((u) => /* @__PURE__ */ Fn(u))).then((u) => c([...e.map(i), ...u])).catch((u) => Lt(u, l));
|
|
523
523
|
}
|
|
524
|
-
|
|
524
|
+
f ? f.then(d) : d();
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function Nn() {
|
|
527
527
|
var t = _, e = h, n = B, r = p;
|
|
528
528
|
return function(s = !0) {
|
|
529
|
-
|
|
529
|
+
wt(t), mt(e), It(n), s && r?.activate();
|
|
530
530
|
};
|
|
531
531
|
}
|
|
532
532
|
function ee(t = !0) {
|
|
533
|
-
|
|
533
|
+
wt(null), mt(null), It(null), t && p?.deactivate();
|
|
534
534
|
}
|
|
535
535
|
function Rn() {
|
|
536
536
|
var t = (
|
|
@@ -551,18 +551,18 @@ function Re(t) {
|
|
|
551
551
|
/** @type {Derived} */
|
|
552
552
|
h
|
|
553
553
|
) : null;
|
|
554
|
-
return _ !== null && (_.f |=
|
|
554
|
+
return _ !== null && (_.f |= jt), {
|
|
555
555
|
ctx: B,
|
|
556
556
|
deps: null,
|
|
557
557
|
effects: null,
|
|
558
|
-
equals:
|
|
558
|
+
equals: Se,
|
|
559
559
|
f: e,
|
|
560
560
|
fn: t,
|
|
561
561
|
reactions: null,
|
|
562
562
|
rv: 0,
|
|
563
563
|
v: (
|
|
564
564
|
/** @type {V} */
|
|
565
|
-
|
|
565
|
+
Xt
|
|
566
566
|
),
|
|
567
567
|
wv: 0,
|
|
568
568
|
parent: n ?? _,
|
|
@@ -570,24 +570,24 @@ function Re(t) {
|
|
|
570
570
|
};
|
|
571
571
|
}
|
|
572
572
|
// @__NO_SIDE_EFFECTS__
|
|
573
|
-
function
|
|
573
|
+
function Fn(t, e, n) {
|
|
574
574
|
/** @type {Effect | null} */
|
|
575
|
-
_ === null &&
|
|
575
|
+
_ === null && pn();
|
|
576
576
|
var i = (
|
|
577
577
|
/** @type {Promise<V>} */
|
|
578
578
|
/** @type {unknown} */
|
|
579
579
|
void 0
|
|
580
|
-
), s =
|
|
580
|
+
), s = On(
|
|
581
581
|
/** @type {V} */
|
|
582
|
-
|
|
583
|
-
), l = !h,
|
|
582
|
+
Xt
|
|
583
|
+
), l = !h, a = /* @__PURE__ */ new Map();
|
|
584
584
|
return Gn(() => {
|
|
585
|
-
var
|
|
586
|
-
i =
|
|
585
|
+
var f = ke();
|
|
586
|
+
i = f.promise;
|
|
587
587
|
try {
|
|
588
|
-
Promise.resolve(t()).then(
|
|
589
|
-
} catch (
|
|
590
|
-
|
|
588
|
+
Promise.resolve(t()).then(f.resolve, f.reject).finally(ee);
|
|
589
|
+
} catch (m) {
|
|
590
|
+
f.reject(m), ee();
|
|
591
591
|
}
|
|
592
592
|
var c = (
|
|
593
593
|
/** @type {Batch} */
|
|
@@ -595,28 +595,28 @@ function Nn(t, e, n) {
|
|
|
595
595
|
);
|
|
596
596
|
if (l) {
|
|
597
597
|
var d = Rn();
|
|
598
|
-
|
|
598
|
+
a.get(c)?.reject(tt), a.delete(c), a.set(c, f);
|
|
599
599
|
}
|
|
600
|
-
const u = (
|
|
600
|
+
const u = (m, v = void 0) => {
|
|
601
601
|
if (c.activate(), v)
|
|
602
602
|
v !== tt && (s.f |= J, _e(s, v));
|
|
603
603
|
else {
|
|
604
|
-
(s.f & J) !== 0 && (s.f ^= J), _e(s,
|
|
605
|
-
for (const [
|
|
606
|
-
if (
|
|
604
|
+
(s.f & J) !== 0 && (s.f ^= J), _e(s, m);
|
|
605
|
+
for (const [X, M] of a) {
|
|
606
|
+
if (a.delete(X), X === c) break;
|
|
607
607
|
M.reject(tt);
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
d && d();
|
|
611
611
|
};
|
|
612
|
-
|
|
613
|
-
}),
|
|
614
|
-
for (const
|
|
615
|
-
|
|
616
|
-
}), new Promise((
|
|
612
|
+
f.promise.then(u, (m) => u(null, m || "unknown"));
|
|
613
|
+
}), Un(() => {
|
|
614
|
+
for (const f of a.values())
|
|
615
|
+
f.reject(tt);
|
|
616
|
+
}), new Promise((f) => {
|
|
617
617
|
function c(d) {
|
|
618
618
|
function u() {
|
|
619
|
-
d === i ?
|
|
619
|
+
d === i ? f(s) : c(i);
|
|
620
620
|
}
|
|
621
621
|
d.then(u, u);
|
|
622
622
|
}
|
|
@@ -624,11 +624,11 @@ function Nn(t, e, n) {
|
|
|
624
624
|
});
|
|
625
625
|
}
|
|
626
626
|
// @__NO_SIDE_EFFECTS__
|
|
627
|
-
function
|
|
627
|
+
function In(t) {
|
|
628
628
|
const e = /* @__PURE__ */ Re(t);
|
|
629
|
-
return
|
|
629
|
+
return nr(e), e;
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function Ln(t) {
|
|
632
632
|
var e = t.effects;
|
|
633
633
|
if (e !== null) {
|
|
634
634
|
t.effects = null;
|
|
@@ -639,7 +639,7 @@ function Fn(t) {
|
|
|
639
639
|
);
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function Dn(t) {
|
|
643
643
|
for (var e = t.parent; e !== null; ) {
|
|
644
644
|
if ((e.f & E) === 0)
|
|
645
645
|
return (e.f & K) === 0 ? (
|
|
@@ -650,44 +650,44 @@ function Ln(t) {
|
|
|
650
650
|
}
|
|
651
651
|
return null;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function fe(t) {
|
|
654
654
|
var e, n = _;
|
|
655
|
-
|
|
655
|
+
wt(Dn(t));
|
|
656
656
|
try {
|
|
657
|
-
t.f &= ~it,
|
|
657
|
+
t.f &= ~it, Ln(t), e = Ze(t);
|
|
658
658
|
} finally {
|
|
659
|
-
|
|
659
|
+
wt(n);
|
|
660
660
|
}
|
|
661
661
|
return e;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
664
|
-
var e =
|
|
665
|
-
if (!t.equals(e) && (t.wv =
|
|
666
|
-
|
|
663
|
+
function Fe(t) {
|
|
664
|
+
var e = fe(t);
|
|
665
|
+
if (!t.equals(e) && (t.wv = Ue(), (!p?.is_fork || t.deps === null) && (t.v = e, t.deps === null))) {
|
|
666
|
+
w(t, b);
|
|
667
667
|
return;
|
|
668
668
|
}
|
|
669
|
-
pt || (
|
|
669
|
+
pt || (D !== null ? (He() || p?.is_fork) && D.set(t, e) : oe(t));
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function Pn(t) {
|
|
672
672
|
if (t.effects !== null)
|
|
673
673
|
for (const e of t.effects)
|
|
674
|
-
(e.teardown || e.ac) && (e.teardown?.(), e.ac?.abort(tt), e.teardown =
|
|
674
|
+
(e.teardown || e.ac) && (e.teardown?.(), e.ac?.abort(tt), e.teardown = un, e.ac = null, Mt(e, 0), ue(e));
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function Ie(t) {
|
|
677
677
|
if (t.effects !== null)
|
|
678
678
|
for (const e of t.effects)
|
|
679
679
|
e.teardown && gt(e);
|
|
680
680
|
}
|
|
681
681
|
let ne = /* @__PURE__ */ new Set();
|
|
682
682
|
const Q = /* @__PURE__ */ new Map();
|
|
683
|
-
let
|
|
684
|
-
function
|
|
683
|
+
let Le = !1;
|
|
684
|
+
function On(t, e) {
|
|
685
685
|
var n = {
|
|
686
686
|
f: 0,
|
|
687
687
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
688
688
|
v: t,
|
|
689
689
|
reactions: null,
|
|
690
|
-
equals:
|
|
690
|
+
equals: Se,
|
|
691
691
|
rv: 0,
|
|
692
692
|
wv: 0
|
|
693
693
|
};
|
|
@@ -697,45 +697,45 @@ function _e(t, e) {
|
|
|
697
697
|
if (!t.equals(e)) {
|
|
698
698
|
var n = t.v;
|
|
699
699
|
pt ? Q.set(t, e) : Q.set(t, n), t.v = e;
|
|
700
|
-
var r =
|
|
700
|
+
var r = Dt.ensure();
|
|
701
701
|
if (r.capture(t, n), (t.f & E) !== 0) {
|
|
702
702
|
const i = (
|
|
703
703
|
/** @type {Derived} */
|
|
704
704
|
t
|
|
705
705
|
);
|
|
706
|
-
(t.f & x) !== 0 &&
|
|
706
|
+
(t.f & x) !== 0 && fe(i), oe(i);
|
|
707
707
|
}
|
|
708
|
-
t.wv =
|
|
708
|
+
t.wv = Ue(), De(t, x), _ !== null && (_.f & b) !== 0 && (_.f & (W | xt)) === 0 && (N === null ? rr([t]) : N.push(t)), !r.is_fork && ne.size > 0 && !Le && Yn();
|
|
709
709
|
}
|
|
710
710
|
return e;
|
|
711
711
|
}
|
|
712
|
-
function
|
|
713
|
-
|
|
712
|
+
function Yn() {
|
|
713
|
+
Le = !1;
|
|
714
714
|
for (const t of ne)
|
|
715
|
-
(t.f & b) !== 0 &&
|
|
715
|
+
(t.f & b) !== 0 && w(t, H), At(t) && gt(t);
|
|
716
716
|
ne.clear();
|
|
717
717
|
}
|
|
718
|
-
function
|
|
718
|
+
function De(t, e) {
|
|
719
719
|
var n = t.reactions;
|
|
720
720
|
if (n !== null)
|
|
721
721
|
for (var r = n.length, i = 0; i < r; i++) {
|
|
722
|
-
var s = n[i], l = s.f,
|
|
723
|
-
if (
|
|
724
|
-
var
|
|
722
|
+
var s = n[i], l = s.f, a = (l & x) === 0;
|
|
723
|
+
if (a && w(s, e), (l & E) !== 0) {
|
|
724
|
+
var f = (
|
|
725
725
|
/** @type {Derived} */
|
|
726
726
|
s
|
|
727
727
|
);
|
|
728
|
-
|
|
729
|
-
} else
|
|
728
|
+
D?.delete(f), (l & it) === 0 && (l & F && (s.f |= it), De(f, H));
|
|
729
|
+
} else a && ((l & st) !== 0 && z !== null && z.add(
|
|
730
730
|
/** @type {Effect} */
|
|
731
731
|
s
|
|
732
|
-
),
|
|
732
|
+
), G(
|
|
733
733
|
/** @type {Effect} */
|
|
734
734
|
s
|
|
735
735
|
));
|
|
736
736
|
}
|
|
737
737
|
}
|
|
738
|
-
var
|
|
738
|
+
var Hn, Xn, jn;
|
|
739
739
|
function pe(t = "") {
|
|
740
740
|
return document.createTextNode(t);
|
|
741
741
|
}
|
|
@@ -743,7 +743,7 @@ function pe(t = "") {
|
|
|
743
743
|
function _t(t) {
|
|
744
744
|
return (
|
|
745
745
|
/** @type {TemplateNode | null} */
|
|
746
|
-
|
|
746
|
+
Xn.call(t)
|
|
747
747
|
);
|
|
748
748
|
}
|
|
749
749
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -753,52 +753,52 @@ function Vt(t) {
|
|
|
753
753
|
jn.call(t)
|
|
754
754
|
);
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function Pe(t, e) {
|
|
757
757
|
return /* @__PURE__ */ _t(t);
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function Vn(t, e = !1) {
|
|
760
760
|
{
|
|
761
761
|
var n = /* @__PURE__ */ _t(t);
|
|
762
762
|
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Vt(n) : n;
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function zn(t, e = 1, n = !1) {
|
|
766
766
|
let r = t;
|
|
767
767
|
for (; e--; )
|
|
768
768
|
r = /** @type {TemplateNode} */
|
|
769
769
|
/* @__PURE__ */ Vt(r);
|
|
770
770
|
return r;
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function Bn() {
|
|
773
773
|
return !1;
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function Oe(t, e, n) {
|
|
776
776
|
return (
|
|
777
777
|
/** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
|
|
778
|
-
document.createElementNS(
|
|
778
|
+
document.createElementNS(ye, t, void 0)
|
|
779
779
|
);
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function Ye(t) {
|
|
782
782
|
var e = h, n = _;
|
|
783
|
-
|
|
783
|
+
mt(null), wt(null);
|
|
784
784
|
try {
|
|
785
785
|
return t();
|
|
786
786
|
} finally {
|
|
787
|
-
|
|
787
|
+
mt(e), wt(n);
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function Wn(t, e) {
|
|
791
791
|
var n = e.last;
|
|
792
792
|
n === null ? e.last = e.first = t : (n.next = t, t.prev = n, e.last = t);
|
|
793
793
|
}
|
|
794
794
|
function lt(t, e) {
|
|
795
795
|
var n = _;
|
|
796
|
-
n !== null && (n.f &
|
|
796
|
+
n !== null && (n.f & I) !== 0 && (t |= I);
|
|
797
797
|
var r = {
|
|
798
798
|
ctx: B,
|
|
799
799
|
deps: null,
|
|
800
800
|
nodes: null,
|
|
801
|
-
f: t | x |
|
|
801
|
+
f: t | x | F,
|
|
802
802
|
first: null,
|
|
803
803
|
fn: e,
|
|
804
804
|
last: null,
|
|
@@ -811,7 +811,7 @@ function lt(t, e) {
|
|
|
811
811
|
ac: null
|
|
812
812
|
}, i = r;
|
|
813
813
|
if ((t & bt) !== 0)
|
|
814
|
-
vt !== null ? vt.push(r) :
|
|
814
|
+
vt !== null ? vt.push(r) : G(r);
|
|
815
815
|
else if (e !== null) {
|
|
816
816
|
try {
|
|
817
817
|
gt(r);
|
|
@@ -819,9 +819,9 @@ function lt(t, e) {
|
|
|
819
819
|
throw $(r), l;
|
|
820
820
|
}
|
|
821
821
|
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
|
|
822
|
-
(i.f &
|
|
822
|
+
(i.f & jt) === 0 && (i = i.first, (t & st) !== 0 && (t & kt) !== 0 && i !== null && (i.f |= kt));
|
|
823
823
|
}
|
|
824
|
-
if (i !== null && (i.parent = n, n !== null &&
|
|
824
|
+
if (i !== null && (i.parent = n, n !== null && Wn(i, n), h !== null && (h.f & E) !== 0 && (t & xt) === 0)) {
|
|
825
825
|
var s = (
|
|
826
826
|
/** @type {Derived} */
|
|
827
827
|
h
|
|
@@ -830,43 +830,43 @@ function lt(t, e) {
|
|
|
830
830
|
}
|
|
831
831
|
return r;
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function He() {
|
|
834
834
|
return h !== null && !et;
|
|
835
835
|
}
|
|
836
|
-
function Wn(t) {
|
|
837
|
-
const e = lt(yt, null);
|
|
838
|
-
return m(e, b), e.teardown = t, e;
|
|
839
|
-
}
|
|
840
836
|
function Un(t) {
|
|
841
|
-
|
|
837
|
+
const e = lt(yt, null);
|
|
838
|
+
return w(e, b), e.teardown = t, e;
|
|
842
839
|
}
|
|
843
840
|
function qn(t) {
|
|
841
|
+
return lt(bt | vn, t);
|
|
842
|
+
}
|
|
843
|
+
function Zn(t) {
|
|
844
844
|
return lt(bt, t);
|
|
845
845
|
}
|
|
846
846
|
function Gn(t) {
|
|
847
|
-
return lt(
|
|
847
|
+
return lt(Me | jt, t);
|
|
848
848
|
}
|
|
849
|
-
function
|
|
850
|
-
|
|
849
|
+
function Xe(t, e = [], n = [], r = []) {
|
|
850
|
+
An(r, e, n, (i) => {
|
|
851
851
|
lt(yt, () => t(...i.map(re)));
|
|
852
852
|
});
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function Kn(t, e = 0) {
|
|
855
855
|
var n = lt(st | e, t);
|
|
856
856
|
return n;
|
|
857
857
|
}
|
|
858
|
-
function
|
|
859
|
-
return lt(W |
|
|
858
|
+
function me(t) {
|
|
859
|
+
return lt(W | jt, t);
|
|
860
860
|
}
|
|
861
861
|
function je(t) {
|
|
862
862
|
var e = t.teardown;
|
|
863
863
|
if (e !== null) {
|
|
864
864
|
const n = pt, r = h;
|
|
865
|
-
|
|
865
|
+
we(!0), mt(null);
|
|
866
866
|
try {
|
|
867
867
|
e.call(null);
|
|
868
868
|
} finally {
|
|
869
|
-
|
|
869
|
+
we(n), mt(r);
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
872
|
}
|
|
@@ -874,14 +874,14 @@ function ue(t, e = !1) {
|
|
|
874
874
|
var n = t.first;
|
|
875
875
|
for (t.first = t.last = null; n !== null; ) {
|
|
876
876
|
const i = n.ac;
|
|
877
|
-
i !== null &&
|
|
877
|
+
i !== null && Ye(() => {
|
|
878
878
|
i.abort(tt);
|
|
879
879
|
});
|
|
880
880
|
var r = n.next;
|
|
881
881
|
(n.f & xt) !== 0 ? n.parent = null : $(n, e), n = r;
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function Jn(t) {
|
|
885
885
|
for (var e = t.first; e !== null; ) {
|
|
886
886
|
var n = e.next;
|
|
887
887
|
(e.f & W) === 0 && $(e), e = n;
|
|
@@ -889,67 +889,67 @@ function Kn(t) {
|
|
|
889
889
|
}
|
|
890
890
|
function $(t, e = !0) {
|
|
891
891
|
var n = !1;
|
|
892
|
-
(e || (t.f &
|
|
892
|
+
(e || (t.f & dn) !== 0) && t.nodes !== null && t.nodes.end !== null && (Qn(
|
|
893
893
|
t.nodes.start,
|
|
894
894
|
/** @type {TemplateNode} */
|
|
895
895
|
t.nodes.end
|
|
896
|
-
), n = !0), ue(t, e && !n), Mt(t, 0),
|
|
896
|
+
), n = !0), ue(t, e && !n), Mt(t, 0), w(t, K);
|
|
897
897
|
var r = t.nodes && t.nodes.t;
|
|
898
898
|
if (r !== null)
|
|
899
899
|
for (const s of r)
|
|
900
900
|
s.stop();
|
|
901
901
|
je(t);
|
|
902
902
|
var i = t.parent;
|
|
903
|
-
i !== null && i.first !== null &&
|
|
903
|
+
i !== null && i.first !== null && Ve(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes = t.ac = null;
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function Qn(t, e) {
|
|
906
906
|
for (; t !== null; ) {
|
|
907
907
|
var n = t === e ? null : /* @__PURE__ */ Vt(t);
|
|
908
908
|
t.remove(), t = n;
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
|
-
function
|
|
911
|
+
function Ve(t) {
|
|
912
912
|
var e = t.parent, n = t.prev, r = t.next;
|
|
913
913
|
n !== null && (n.next = r), r !== null && (r.prev = n), e !== null && (e.first === t && (e.first = r), e.last === t && (e.last = n));
|
|
914
914
|
}
|
|
915
|
-
function
|
|
915
|
+
function $n(t, e, n = !0) {
|
|
916
916
|
var r = [];
|
|
917
|
-
|
|
917
|
+
ze(t, r, !0);
|
|
918
918
|
var i = () => {
|
|
919
919
|
n && $(t), e && e();
|
|
920
920
|
}, s = r.length;
|
|
921
921
|
if (s > 0) {
|
|
922
922
|
var l = () => --s || i();
|
|
923
|
-
for (var
|
|
924
|
-
|
|
923
|
+
for (var a of r)
|
|
924
|
+
a.out(l);
|
|
925
925
|
} else
|
|
926
926
|
i();
|
|
927
927
|
}
|
|
928
|
-
function
|
|
929
|
-
if ((t.f &
|
|
930
|
-
t.f ^=
|
|
928
|
+
function ze(t, e, n) {
|
|
929
|
+
if ((t.f & I) === 0) {
|
|
930
|
+
t.f ^= I;
|
|
931
931
|
var r = t.nodes && t.nodes.t;
|
|
932
932
|
if (r !== null)
|
|
933
|
-
for (const
|
|
934
|
-
(
|
|
933
|
+
for (const a of r)
|
|
934
|
+
(a.is_global || n) && e.push(a);
|
|
935
935
|
for (var i = t.first; i !== null; ) {
|
|
936
936
|
var s = i.next, l = (i.f & kt) !== 0 || // If this is a branch effect without a block effect parent,
|
|
937
937
|
// it means the parent block effect was pruned. In that case,
|
|
938
938
|
// transparency information was transferred to the branch effect.
|
|
939
939
|
(i.f & W) !== 0 && (t.f & st) !== 0;
|
|
940
|
-
|
|
940
|
+
ze(i, e, l ? n : !1), i = s;
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
|
-
function
|
|
945
|
-
|
|
944
|
+
function tr(t) {
|
|
945
|
+
Be(t, !0);
|
|
946
946
|
}
|
|
947
|
-
function
|
|
948
|
-
if ((t.f &
|
|
949
|
-
t.f ^=
|
|
947
|
+
function Be(t, e) {
|
|
948
|
+
if ((t.f & I) !== 0) {
|
|
949
|
+
t.f ^= I;
|
|
950
950
|
for (var n = t.first; n !== null; ) {
|
|
951
951
|
var r = n.next, i = (n.f & kt) !== 0 || (n.f & W) !== 0;
|
|
952
|
-
|
|
952
|
+
Be(n, i ? e : !1), n = r;
|
|
953
953
|
}
|
|
954
954
|
var s = t.nodes && t.nodes.t;
|
|
955
955
|
if (s !== null)
|
|
@@ -957,42 +957,42 @@ function ze(t, e) {
|
|
|
957
957
|
(l.is_global || e) && l.in();
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
|
-
function
|
|
960
|
+
function er(t, e) {
|
|
961
961
|
if (t.nodes)
|
|
962
962
|
for (var n = t.nodes.start, r = t.nodes.end; n !== null; ) {
|
|
963
963
|
var i = n === r ? null : /* @__PURE__ */ Vt(n);
|
|
964
964
|
e.append(n), n = i;
|
|
965
965
|
}
|
|
966
966
|
}
|
|
967
|
-
let
|
|
968
|
-
function
|
|
967
|
+
let Rt = !1, pt = !1;
|
|
968
|
+
function we(t) {
|
|
969
969
|
pt = t;
|
|
970
970
|
}
|
|
971
971
|
let h = null, et = !1;
|
|
972
|
-
function
|
|
972
|
+
function mt(t) {
|
|
973
973
|
h = t;
|
|
974
974
|
}
|
|
975
975
|
let _ = null;
|
|
976
|
-
function
|
|
976
|
+
function wt(t) {
|
|
977
977
|
_ = t;
|
|
978
978
|
}
|
|
979
|
-
let
|
|
980
|
-
function er(t) {
|
|
981
|
-
h !== null && (O === null ? O = [t] : O.push(t));
|
|
982
|
-
}
|
|
983
|
-
let y = null, C = 0, R = null;
|
|
979
|
+
let Y = null;
|
|
984
980
|
function nr(t) {
|
|
985
|
-
|
|
981
|
+
h !== null && (Y === null ? Y = [t] : Y.push(t));
|
|
982
|
+
}
|
|
983
|
+
let y = null, C = 0, N = null;
|
|
984
|
+
function rr(t) {
|
|
985
|
+
N = t;
|
|
986
986
|
}
|
|
987
|
-
let
|
|
988
|
-
function
|
|
989
|
-
return ++
|
|
987
|
+
let We = 1, at = 0;
|
|
988
|
+
function Ue() {
|
|
989
|
+
return ++We;
|
|
990
990
|
}
|
|
991
991
|
function At(t) {
|
|
992
992
|
var e = t.f;
|
|
993
993
|
if ((e & x) !== 0)
|
|
994
994
|
return !0;
|
|
995
|
-
if (e & E && (t.f &= ~it), (e &
|
|
995
|
+
if (e & E && (t.f &= ~it), (e & H) !== 0) {
|
|
996
996
|
for (var n = (
|
|
997
997
|
/** @type {Value[]} */
|
|
998
998
|
t.deps
|
|
@@ -1001,39 +1001,39 @@ function At(t) {
|
|
|
1001
1001
|
if (At(
|
|
1002
1002
|
/** @type {Derived} */
|
|
1003
1003
|
s
|
|
1004
|
-
) &&
|
|
1004
|
+
) && Fe(
|
|
1005
1005
|
/** @type {Derived} */
|
|
1006
1006
|
s
|
|
1007
1007
|
), s.wv > t.wv)
|
|
1008
1008
|
return !0;
|
|
1009
1009
|
}
|
|
1010
|
-
(e &
|
|
1010
|
+
(e & F) !== 0 && // During time traveling we don't want to reset the status so that
|
|
1011
1011
|
// traversal of the graph in the other batches still happens
|
|
1012
|
-
|
|
1012
|
+
D === null && w(t, b);
|
|
1013
1013
|
}
|
|
1014
1014
|
return !1;
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1016
|
+
function qe(t, e, n = !0) {
|
|
1017
1017
|
var r = t.reactions;
|
|
1018
|
-
if (r !== null && !(
|
|
1018
|
+
if (r !== null && !(Y !== null && Et.call(Y, t)))
|
|
1019
1019
|
for (var i = 0; i < r.length; i++) {
|
|
1020
1020
|
var s = r[i];
|
|
1021
|
-
(s.f & E) !== 0 ?
|
|
1021
|
+
(s.f & E) !== 0 ? qe(
|
|
1022
1022
|
/** @type {Derived} */
|
|
1023
1023
|
s,
|
|
1024
1024
|
e,
|
|
1025
1025
|
!1
|
|
1026
|
-
) : e === s && (n ?
|
|
1026
|
+
) : e === s && (n ? w(s, x) : (s.f & b) !== 0 && w(s, H), G(
|
|
1027
1027
|
/** @type {Effect} */
|
|
1028
1028
|
s
|
|
1029
1029
|
));
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1033
|
-
var
|
|
1034
|
-
var e = y, n = C, r =
|
|
1032
|
+
function Ze(t) {
|
|
1033
|
+
var X;
|
|
1034
|
+
var e = y, n = C, r = N, i = h, s = Y, l = B, a = et, f = t.f;
|
|
1035
1035
|
y = /** @type {null | Value[]} */
|
|
1036
|
-
null, C = 0,
|
|
1036
|
+
null, C = 0, N = null, h = (f & (W | xt)) === 0 ? t : null, Y = null, It(t.ctx), et = !1, ++at, t.ac !== null && (Ye(() => {
|
|
1037
1037
|
t.ac.abort(tt);
|
|
1038
1038
|
}), t.ac = null);
|
|
1039
1039
|
try {
|
|
@@ -1043,47 +1043,47 @@ function qe(t) {
|
|
|
1043
1043
|
t.fn
|
|
1044
1044
|
), d = c();
|
|
1045
1045
|
t.f |= Tt;
|
|
1046
|
-
var u = t.deps,
|
|
1046
|
+
var u = t.deps, m = p?.is_fork;
|
|
1047
1047
|
if (y !== null) {
|
|
1048
1048
|
var v;
|
|
1049
|
-
if (
|
|
1049
|
+
if (m || Mt(t, C), u !== null && C > 0)
|
|
1050
1050
|
for (u.length = C + y.length, v = 0; v < y.length; v++)
|
|
1051
1051
|
u[C + v] = y[v];
|
|
1052
1052
|
else
|
|
1053
1053
|
t.deps = u = y;
|
|
1054
|
-
if (
|
|
1054
|
+
if (He() && (t.f & F) !== 0)
|
|
1055
1055
|
for (v = C; v < u.length; v++)
|
|
1056
|
-
((
|
|
1057
|
-
} else !
|
|
1058
|
-
if (
|
|
1056
|
+
((X = u[v]).reactions ?? (X.reactions = [])).push(t);
|
|
1057
|
+
} else !m && u !== null && C < u.length && (Mt(t, C), u.length = C);
|
|
1058
|
+
if (xn() && N !== null && !et && u !== null && (t.f & (E | H | x)) === 0)
|
|
1059
1059
|
for (v = 0; v < /** @type {Source[]} */
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1060
|
+
N.length; v++)
|
|
1061
|
+
qe(
|
|
1062
|
+
N[v],
|
|
1063
1063
|
/** @type {Effect} */
|
|
1064
1064
|
t
|
|
1065
1065
|
);
|
|
1066
1066
|
if (i !== null && i !== t) {
|
|
1067
|
-
if (
|
|
1067
|
+
if (at++, i.deps !== null)
|
|
1068
1068
|
for (let M = 0; M < n; M += 1)
|
|
1069
|
-
i.deps[M].rv =
|
|
1069
|
+
i.deps[M].rv = at;
|
|
1070
1070
|
if (e !== null)
|
|
1071
1071
|
for (const M of e)
|
|
1072
|
-
M.rv =
|
|
1073
|
-
|
|
1074
|
-
|
|
1072
|
+
M.rv = at;
|
|
1073
|
+
N !== null && (r === null ? r = N : r.push(.../** @type {Source[]} */
|
|
1074
|
+
N));
|
|
1075
1075
|
}
|
|
1076
1076
|
return (t.f & J) !== 0 && (t.f ^= J), d;
|
|
1077
1077
|
} catch (M) {
|
|
1078
|
-
return
|
|
1078
|
+
return yn(M);
|
|
1079
1079
|
} finally {
|
|
1080
|
-
t.f ^= Kt, y = e, C = n,
|
|
1080
|
+
t.f ^= Kt, y = e, C = n, N = r, h = i, Y = s, It(l), et = a;
|
|
1081
1081
|
}
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1083
|
+
function ir(t, e) {
|
|
1084
1084
|
let n = e.reactions;
|
|
1085
1085
|
if (n !== null) {
|
|
1086
|
-
var r =
|
|
1086
|
+
var r = on.call(n, t);
|
|
1087
1087
|
if (r !== -1) {
|
|
1088
1088
|
var i = n.length - 1;
|
|
1089
1089
|
i === 0 ? n = e.reactions = null : (n[r] = n[i], n.pop());
|
|
@@ -1097,29 +1097,29 @@ function rr(t, e) {
|
|
|
1097
1097
|
/** @type {Derived} */
|
|
1098
1098
|
e
|
|
1099
1099
|
);
|
|
1100
|
-
(s.f &
|
|
1100
|
+
(s.f & F) !== 0 && (s.f ^= F, s.f &= ~it), oe(s), Pn(s), Mt(s, 0);
|
|
1101
1101
|
}
|
|
1102
1102
|
}
|
|
1103
1103
|
function Mt(t, e) {
|
|
1104
1104
|
var n = t.deps;
|
|
1105
1105
|
if (n !== null)
|
|
1106
1106
|
for (var r = e; r < n.length; r++)
|
|
1107
|
-
|
|
1107
|
+
ir(t, n[r]);
|
|
1108
1108
|
}
|
|
1109
1109
|
function gt(t) {
|
|
1110
1110
|
var e = t.f;
|
|
1111
1111
|
if ((e & K) === 0) {
|
|
1112
|
-
|
|
1113
|
-
var n = _, r =
|
|
1114
|
-
_ = t,
|
|
1112
|
+
w(t, b);
|
|
1113
|
+
var n = _, r = Rt;
|
|
1114
|
+
_ = t, Rt = !0;
|
|
1115
1115
|
try {
|
|
1116
|
-
(e & (st | le)) !== 0 ?
|
|
1117
|
-
var i =
|
|
1118
|
-
t.teardown = typeof i == "function" ? i : null, t.wv =
|
|
1116
|
+
(e & (st | le)) !== 0 ? Jn(t) : ue(t), je(t);
|
|
1117
|
+
var i = Ze(t);
|
|
1118
|
+
t.teardown = typeof i == "function" ? i : null, t.wv = We;
|
|
1119
1119
|
var s;
|
|
1120
|
-
|
|
1120
|
+
Gt && wn && (t.f & x) !== 0 && t.deps;
|
|
1121
1121
|
} finally {
|
|
1122
|
-
|
|
1122
|
+
Rt = r, _ = n;
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
1125
|
}
|
|
@@ -1127,10 +1127,10 @@ function re(t) {
|
|
|
1127
1127
|
var e = t.f, n = (e & E) !== 0;
|
|
1128
1128
|
if (h !== null && !et) {
|
|
1129
1129
|
var r = _ !== null && (_.f & K) !== 0;
|
|
1130
|
-
if (!r && (
|
|
1130
|
+
if (!r && (Y === null || !Et.call(Y, t))) {
|
|
1131
1131
|
var i = h.deps;
|
|
1132
1132
|
if ((h.f & Kt) !== 0)
|
|
1133
|
-
t.rv <
|
|
1133
|
+
t.rv < at && (t.rv = at, y === null && i !== null && i[C] === t ? C++ : y === null ? y = [t] : y.push(t));
|
|
1134
1134
|
else {
|
|
1135
1135
|
(h.deps ?? (h.deps = [])).push(t);
|
|
1136
1136
|
var s = t.reactions;
|
|
@@ -1146,22 +1146,22 @@ function re(t) {
|
|
|
1146
1146
|
t
|
|
1147
1147
|
);
|
|
1148
1148
|
if (pt) {
|
|
1149
|
-
var
|
|
1150
|
-
return ((l.f & b) === 0 && l.reactions !== null ||
|
|
1149
|
+
var a = l.v;
|
|
1150
|
+
return ((l.f & b) === 0 && l.reactions !== null || Ke(l)) && (a = fe(l)), Q.set(l, a), a;
|
|
1151
1151
|
}
|
|
1152
|
-
var
|
|
1153
|
-
At(l) && (
|
|
1152
|
+
var f = (l.f & F) === 0 && !et && h !== null && (Rt || (h.f & F) !== 0), c = (l.f & Tt) === 0;
|
|
1153
|
+
At(l) && (f && (l.f |= F), Fe(l)), f && !c && (Ie(l), Ge(l));
|
|
1154
1154
|
}
|
|
1155
|
-
if (
|
|
1156
|
-
return
|
|
1155
|
+
if (D?.has(t))
|
|
1156
|
+
return D.get(t);
|
|
1157
1157
|
if ((t.f & J) !== 0)
|
|
1158
1158
|
throw t.v;
|
|
1159
1159
|
return t.v;
|
|
1160
1160
|
}
|
|
1161
1161
|
function Ge(t) {
|
|
1162
|
-
if (t.f |=
|
|
1162
|
+
if (t.f |= F, t.deps !== null)
|
|
1163
1163
|
for (const e of t.deps)
|
|
1164
|
-
(e.reactions ?? (e.reactions = [])).push(t), (e.f & E) !== 0 && (e.f &
|
|
1164
|
+
(e.reactions ?? (e.reactions = [])).push(t), (e.f & E) !== 0 && (e.f & F) === 0 && (Ie(
|
|
1165
1165
|
/** @type {Derived} */
|
|
1166
1166
|
e
|
|
1167
1167
|
), Ge(
|
|
@@ -1169,43 +1169,43 @@ function Ge(t) {
|
|
|
1169
1169
|
e
|
|
1170
1170
|
));
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1173
|
-
if (t.v ===
|
|
1172
|
+
function Ke(t) {
|
|
1173
|
+
if (t.v === Xt) return !0;
|
|
1174
1174
|
if (t.deps === null) return !1;
|
|
1175
1175
|
for (const e of t.deps)
|
|
1176
|
-
if (Q.has(e) || (e.f & E) !== 0 &&
|
|
1176
|
+
if (Q.has(e) || (e.f & E) !== 0 && Ke(
|
|
1177
1177
|
/** @type {Derived} */
|
|
1178
1178
|
e
|
|
1179
1179
|
))
|
|
1180
1180
|
return !0;
|
|
1181
1181
|
return !1;
|
|
1182
1182
|
}
|
|
1183
|
-
const
|
|
1183
|
+
const Zt = /* @__PURE__ */ Symbol("events"), sr = /* @__PURE__ */ new Set(), lr = /* @__PURE__ */ new Set();
|
|
1184
1184
|
function ie(t, e, n) {
|
|
1185
|
-
(e[
|
|
1185
|
+
(e[Zt] ?? (e[Zt] = {}))[t] = n;
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1187
|
+
function Je(t) {
|
|
1188
1188
|
for (var e = 0; e < t.length; e++)
|
|
1189
|
-
|
|
1190
|
-
for (var n of
|
|
1189
|
+
sr.add(t[e]);
|
|
1190
|
+
for (var n of lr)
|
|
1191
1191
|
n(t);
|
|
1192
1192
|
}
|
|
1193
|
-
const
|
|
1193
|
+
const or = (
|
|
1194
1194
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
1195
1195
|
globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
|
|
1196
1196
|
/** @param {string} html */
|
|
1197
1197
|
createHTML: (t) => t
|
|
1198
1198
|
})
|
|
1199
1199
|
);
|
|
1200
|
-
function
|
|
1200
|
+
function ar(t) {
|
|
1201
1201
|
return (
|
|
1202
1202
|
/** @type {string} */
|
|
1203
|
-
|
|
1203
|
+
or?.createHTML(t) ?? t
|
|
1204
1204
|
);
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1207
|
-
var e =
|
|
1208
|
-
return e.innerHTML =
|
|
1206
|
+
function Qe(t) {
|
|
1207
|
+
var e = Oe("template");
|
|
1208
|
+
return e.innerHTML = ar(t.replaceAll("<!>", "<!---->")), e.content;
|
|
1209
1209
|
}
|
|
1210
1210
|
function se(t, e) {
|
|
1211
1211
|
var n = (
|
|
@@ -1215,24 +1215,24 @@ function se(t, e) {
|
|
|
1215
1215
|
n.nodes === null && (n.nodes = { start: t, end: e, a: null, t: null });
|
|
1216
1216
|
}
|
|
1217
1217
|
// @__NO_SIDE_EFFECTS__
|
|
1218
|
-
function
|
|
1219
|
-
var n = (e &
|
|
1218
|
+
function $e(t, e) {
|
|
1219
|
+
var n = (e & sn) !== 0, r = (e & ln) !== 0, i, s = !t.startsWith("<!>");
|
|
1220
1220
|
return () => {
|
|
1221
|
-
i === void 0 && (i =
|
|
1221
|
+
i === void 0 && (i = Qe(s ? t : "<!>" + t), n || (i = /** @type {TemplateNode} */
|
|
1222
1222
|
/* @__PURE__ */ _t(i)));
|
|
1223
1223
|
var l = (
|
|
1224
1224
|
/** @type {TemplateNode} */
|
|
1225
|
-
r ||
|
|
1225
|
+
r || Hn ? document.importNode(i, !0) : i.cloneNode(!0)
|
|
1226
1226
|
);
|
|
1227
1227
|
if (n) {
|
|
1228
|
-
var
|
|
1228
|
+
var a = (
|
|
1229
1229
|
/** @type {TemplateNode} */
|
|
1230
1230
|
/* @__PURE__ */ _t(l)
|
|
1231
|
-
),
|
|
1231
|
+
), f = (
|
|
1232
1232
|
/** @type {TemplateNode} */
|
|
1233
1233
|
l.lastChild
|
|
1234
1234
|
);
|
|
1235
|
-
se(
|
|
1235
|
+
se(a, f);
|
|
1236
1236
|
} else
|
|
1237
1237
|
se(l, l);
|
|
1238
1238
|
return l;
|
|
@@ -1245,33 +1245,33 @@ function fr(t, e, n = "svg") {
|
|
|
1245
1245
|
if (!s) {
|
|
1246
1246
|
var l = (
|
|
1247
1247
|
/** @type {DocumentFragment} */
|
|
1248
|
-
|
|
1249
|
-
),
|
|
1248
|
+
Qe(i)
|
|
1249
|
+
), a = (
|
|
1250
1250
|
/** @type {Element} */
|
|
1251
1251
|
/* @__PURE__ */ _t(l)
|
|
1252
1252
|
);
|
|
1253
1253
|
s = /** @type {Element} */
|
|
1254
|
-
/* @__PURE__ */ _t(
|
|
1254
|
+
/* @__PURE__ */ _t(a);
|
|
1255
1255
|
}
|
|
1256
|
-
var
|
|
1256
|
+
var f = (
|
|
1257
1257
|
/** @type {TemplateNode} */
|
|
1258
1258
|
s.cloneNode(!0)
|
|
1259
1259
|
);
|
|
1260
|
-
return se(
|
|
1260
|
+
return se(f, f), f;
|
|
1261
1261
|
};
|
|
1262
1262
|
}
|
|
1263
1263
|
// @__NO_SIDE_EFFECTS__
|
|
1264
|
-
function
|
|
1264
|
+
function tn(t, e) {
|
|
1265
1265
|
return /* @__PURE__ */ fr(t, e, "svg");
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1267
|
+
function Ft(t, e) {
|
|
1268
1268
|
t !== null && t.before(
|
|
1269
1269
|
/** @type {Node} */
|
|
1270
1270
|
e
|
|
1271
1271
|
);
|
|
1272
1272
|
}
|
|
1273
|
-
var L,
|
|
1274
|
-
class
|
|
1273
|
+
var L, O, T, rt, St, Ct, Ht;
|
|
1274
|
+
class ur {
|
|
1275
1275
|
/**
|
|
1276
1276
|
* @param {TemplateNode} anchor
|
|
1277
1277
|
* @param {boolean} transition
|
|
@@ -1295,7 +1295,7 @@ class ar {
|
|
|
1295
1295
|
* Can result in the entries `true->Effect` and `false->Effect`
|
|
1296
1296
|
* @type {Map<Key, Effect>}
|
|
1297
1297
|
*/
|
|
1298
|
-
g(this,
|
|
1298
|
+
g(this, O, /* @__PURE__ */ new Map());
|
|
1299
1299
|
/**
|
|
1300
1300
|
* Similar to #onscreen with respect to the keys, but contains branches that are not yet
|
|
1301
1301
|
* in the DOM, because their insertion is deferred.
|
|
@@ -1320,43 +1320,43 @@ class ar {
|
|
|
1320
1320
|
var n = (
|
|
1321
1321
|
/** @type {Key} */
|
|
1322
1322
|
o(this, L).get(e)
|
|
1323
|
-
), r = o(this,
|
|
1323
|
+
), r = o(this, O).get(n);
|
|
1324
1324
|
if (r)
|
|
1325
|
-
|
|
1325
|
+
tr(r), o(this, rt).delete(n);
|
|
1326
1326
|
else {
|
|
1327
1327
|
var i = o(this, T).get(n);
|
|
1328
|
-
i && (i.effect.f &
|
|
1328
|
+
i && (i.effect.f & I) === 0 && (o(this, O).set(n, i.effect), o(this, T).delete(n), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), r = i.effect);
|
|
1329
1329
|
}
|
|
1330
1330
|
for (const [s, l] of o(this, L)) {
|
|
1331
1331
|
if (o(this, L).delete(s), s === e)
|
|
1332
1332
|
break;
|
|
1333
|
-
const
|
|
1334
|
-
|
|
1333
|
+
const a = o(this, T).get(l);
|
|
1334
|
+
a && ($(a.effect), o(this, T).delete(l));
|
|
1335
1335
|
}
|
|
1336
|
-
for (const [s, l] of o(this,
|
|
1337
|
-
if (s === n || o(this, rt).has(s) || (l.f &
|
|
1338
|
-
const
|
|
1336
|
+
for (const [s, l] of o(this, O)) {
|
|
1337
|
+
if (s === n || o(this, rt).has(s) || (l.f & I) !== 0) continue;
|
|
1338
|
+
const a = () => {
|
|
1339
1339
|
if (Array.from(o(this, L).values()).includes(s)) {
|
|
1340
1340
|
var c = document.createDocumentFragment();
|
|
1341
|
-
|
|
1341
|
+
er(l, c), c.append(pe()), o(this, T).set(s, { effect: l, fragment: c });
|
|
1342
1342
|
} else
|
|
1343
1343
|
$(l);
|
|
1344
|
-
o(this, rt).delete(s), o(this,
|
|
1344
|
+
o(this, rt).delete(s), o(this, O).delete(s);
|
|
1345
1345
|
};
|
|
1346
|
-
o(this, St) || !r ? (o(this, rt).add(s),
|
|
1346
|
+
o(this, St) || !r ? (o(this, rt).add(s), $n(l, a, !1)) : a();
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
1349
|
});
|
|
1350
1350
|
/**
|
|
1351
1351
|
* @param {Batch} batch
|
|
1352
1352
|
*/
|
|
1353
|
-
g(this,
|
|
1353
|
+
g(this, Ht, (e) => {
|
|
1354
1354
|
o(this, L).delete(e);
|
|
1355
1355
|
const n = Array.from(o(this, L).values());
|
|
1356
1356
|
for (const [r, i] of o(this, T))
|
|
1357
1357
|
n.includes(r) || ($(i.effect), o(this, T).delete(r));
|
|
1358
1358
|
});
|
|
1359
|
-
this.anchor = e,
|
|
1359
|
+
this.anchor = e, j(this, St, n);
|
|
1360
1360
|
}
|
|
1361
1361
|
/**
|
|
1362
1362
|
*
|
|
@@ -1367,44 +1367,44 @@ class ar {
|
|
|
1367
1367
|
var r = (
|
|
1368
1368
|
/** @type {Batch} */
|
|
1369
1369
|
p
|
|
1370
|
-
), i =
|
|
1371
|
-
if (n && !o(this,
|
|
1370
|
+
), i = Bn();
|
|
1371
|
+
if (n && !o(this, O).has(e) && !o(this, T).has(e))
|
|
1372
1372
|
if (i) {
|
|
1373
1373
|
var s = document.createDocumentFragment(), l = pe();
|
|
1374
1374
|
s.append(l), o(this, T).set(e, {
|
|
1375
|
-
effect:
|
|
1375
|
+
effect: me(() => n(l)),
|
|
1376
1376
|
fragment: s
|
|
1377
1377
|
});
|
|
1378
1378
|
} else
|
|
1379
|
-
o(this,
|
|
1379
|
+
o(this, O).set(
|
|
1380
1380
|
e,
|
|
1381
|
-
|
|
1381
|
+
me(() => n(this.anchor))
|
|
1382
1382
|
);
|
|
1383
1383
|
if (o(this, L).set(r, e), i) {
|
|
1384
|
-
for (const [
|
|
1385
|
-
|
|
1386
|
-
for (const [
|
|
1387
|
-
|
|
1388
|
-
r.oncommit(o(this, Ct)), r.ondiscard(o(this,
|
|
1384
|
+
for (const [a, f] of o(this, O))
|
|
1385
|
+
a === e ? r.unskip_effect(f) : r.skip_effect(f);
|
|
1386
|
+
for (const [a, f] of o(this, T))
|
|
1387
|
+
a === e ? r.unskip_effect(f.effect) : r.skip_effect(f.effect);
|
|
1388
|
+
r.oncommit(o(this, Ct)), r.ondiscard(o(this, Ht));
|
|
1389
1389
|
} else
|
|
1390
1390
|
o(this, Ct).call(this, r);
|
|
1391
1391
|
}
|
|
1392
1392
|
}
|
|
1393
|
-
L = new WeakMap(),
|
|
1394
|
-
function
|
|
1395
|
-
var r = new
|
|
1396
|
-
function s(l,
|
|
1397
|
-
r.ensure(l,
|
|
1393
|
+
L = new WeakMap(), O = new WeakMap(), T = new WeakMap(), rt = new WeakMap(), St = new WeakMap(), Ct = new WeakMap(), Ht = new WeakMap();
|
|
1394
|
+
function cr(t, e, n = !1) {
|
|
1395
|
+
var r = new ur(t), i = n ? kt : 0;
|
|
1396
|
+
function s(l, a) {
|
|
1397
|
+
r.ensure(l, a);
|
|
1398
1398
|
}
|
|
1399
|
-
|
|
1399
|
+
Kn(() => {
|
|
1400
1400
|
var l = !1;
|
|
1401
|
-
e((
|
|
1402
|
-
l = !0, s(
|
|
1401
|
+
e((a, f = 0) => {
|
|
1402
|
+
l = !0, s(f, a);
|
|
1403
1403
|
}), l || s(-1, null);
|
|
1404
1404
|
}, i);
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1407
|
-
|
|
1406
|
+
function hr(t, e) {
|
|
1407
|
+
Zn(() => {
|
|
1408
1408
|
var n = t.getRootNode(), r = (
|
|
1409
1409
|
/** @type {ShadowRoot} */
|
|
1410
1410
|
n.host ? (
|
|
@@ -1417,51 +1417,51 @@ function cr(t, e) {
|
|
|
1417
1417
|
)
|
|
1418
1418
|
);
|
|
1419
1419
|
if (!r.querySelector("#" + e.hash)) {
|
|
1420
|
-
const i =
|
|
1420
|
+
const i = Oe("style");
|
|
1421
1421
|
i.id = e.hash, i.textContent = e.code, r.appendChild(i);
|
|
1422
1422
|
}
|
|
1423
1423
|
});
|
|
1424
1424
|
}
|
|
1425
|
-
function
|
|
1425
|
+
function en(t) {
|
|
1426
1426
|
var e, n, r = "";
|
|
1427
1427
|
if (typeof t == "string" || typeof t == "number") r += t;
|
|
1428
1428
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
1429
1429
|
var i = t.length;
|
|
1430
|
-
for (e = 0; e < i; e++) t[e] && (n =
|
|
1430
|
+
for (e = 0; e < i; e++) t[e] && (n = en(t[e])) && (r && (r += " "), r += n);
|
|
1431
1431
|
} else for (n in t) t[n] && (r && (r += " "), r += n);
|
|
1432
1432
|
return r;
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1435
|
-
for (var t, e, n = 0, r = "", i = arguments.length; n < i; n++) (t = arguments[n]) && (e =
|
|
1434
|
+
function dr() {
|
|
1435
|
+
for (var t, e, n = 0, r = "", i = arguments.length; n < i; n++) (t = arguments[n]) && (e = en(t)) && (r && (r += " "), r += e);
|
|
1436
1436
|
return r;
|
|
1437
1437
|
}
|
|
1438
1438
|
function Pt(t) {
|
|
1439
|
-
return typeof t == "object" ?
|
|
1439
|
+
return typeof t == "object" ? dr(t) : t ?? "";
|
|
1440
1440
|
}
|
|
1441
|
-
function
|
|
1441
|
+
function vr(t, e, n) {
|
|
1442
1442
|
var r = t == null ? "" : "" + t;
|
|
1443
1443
|
return e && (r = r ? r + " " + e : e), r === "" ? null : r;
|
|
1444
1444
|
}
|
|
1445
|
-
function
|
|
1445
|
+
function Ot(t, e, n, r, i, s) {
|
|
1446
1446
|
var l = t.__className;
|
|
1447
1447
|
if (l !== n || l === void 0) {
|
|
1448
|
-
var
|
|
1449
|
-
|
|
1448
|
+
var a = vr(n, r);
|
|
1449
|
+
a == null ? t.removeAttribute("class") : e ? t.className = a : t.setAttribute("class", a), t.__className = n;
|
|
1450
1450
|
}
|
|
1451
1451
|
return s;
|
|
1452
1452
|
}
|
|
1453
|
-
const
|
|
1453
|
+
const _r = /* @__PURE__ */ Symbol("is custom element"), pr = /* @__PURE__ */ Symbol("is html");
|
|
1454
1454
|
function ge(t, e, n, r) {
|
|
1455
|
-
var i =
|
|
1456
|
-
i[e] !== (i[e] = n) && (e === "loading" && (t[
|
|
1455
|
+
var i = mr(t);
|
|
1456
|
+
i[e] !== (i[e] = n) && (e === "loading" && (t[_n] = n), n == null ? t.removeAttribute(e) : typeof n != "string" && wr(t).includes(e) ? t[e] = n : t.setAttribute(e, n));
|
|
1457
1457
|
}
|
|
1458
|
-
function
|
|
1458
|
+
function mr(t) {
|
|
1459
1459
|
return (
|
|
1460
1460
|
/** @type {Record<string | symbol, unknown>} **/
|
|
1461
1461
|
// @ts-expect-error
|
|
1462
1462
|
t.__attributes ?? (t.__attributes = {
|
|
1463
|
-
[
|
|
1464
|
-
[
|
|
1463
|
+
[_r]: t.nodeName.includes("-"),
|
|
1464
|
+
[pr]: t.namespaceURI === ye
|
|
1465
1465
|
})
|
|
1466
1466
|
);
|
|
1467
1467
|
}
|
|
@@ -1471,75 +1471,80 @@ function wr(t) {
|
|
|
1471
1471
|
if (n) return n;
|
|
1472
1472
|
be.set(e, n = []);
|
|
1473
1473
|
for (var r, i = t, s = Element.prototype; s !== i; ) {
|
|
1474
|
-
r =
|
|
1474
|
+
r = an(i);
|
|
1475
1475
|
for (var l in r)
|
|
1476
1476
|
r[l].set && n.push(l);
|
|
1477
1477
|
i = fn(i);
|
|
1478
1478
|
}
|
|
1479
1479
|
return n;
|
|
1480
1480
|
}
|
|
1481
|
-
function
|
|
1481
|
+
function Yt(t, e, n, r) {
|
|
1482
1482
|
var i = (
|
|
1483
1483
|
/** @type {V} */
|
|
1484
1484
|
r
|
|
1485
1485
|
), s = !0, l = () => (s && (s = !1, i = /** @type {V} */
|
|
1486
|
-
r), i),
|
|
1487
|
-
|
|
1488
|
-
t[e],
|
|
1489
|
-
var
|
|
1490
|
-
return
|
|
1486
|
+
r), i), a;
|
|
1487
|
+
a = /** @type {V} */
|
|
1488
|
+
t[e], a === void 0 && r !== void 0 && (a = l());
|
|
1489
|
+
var f;
|
|
1490
|
+
return f = () => {
|
|
1491
1491
|
var c = (
|
|
1492
1492
|
/** @type {V} */
|
|
1493
1493
|
t[e]
|
|
1494
1494
|
);
|
|
1495
1495
|
return c === void 0 ? l() : (s = !0, c);
|
|
1496
|
-
},
|
|
1496
|
+
}, f;
|
|
1497
1497
|
}
|
|
1498
|
-
var
|
|
1499
|
-
const
|
|
1498
|
+
var gr = /* @__PURE__ */ tn('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-7vww0g" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 15l7-7 7 7"></path></svg>'), br = /* @__PURE__ */ tn('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-7vww0g" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>'), xr = /* @__PURE__ */ $e('<button><!></button> <button title="Close" aria-label="Close panel"><svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-7vww0g" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button>', 1);
|
|
1499
|
+
const Er = {
|
|
1500
1500
|
hash: "svelte-7vww0g",
|
|
1501
1501
|
code: ".pie-window-controls__button.svelte-7vww0g {display:inline-flex;align-items:center;justify-content:center;width:1.35rem;height:1.35rem;padding:0;border:1px solid rgba(148, 163, 184, 0.7);border-radius:9999px;background:rgba(255, 255, 255, 0.65);color:#334155;cursor:pointer;}.pie-window-controls__button.svelte-7vww0g:hover {background:rgba(241, 245, 249, 0.95);}.pie-window-controls__button.svelte-7vww0g:focus-visible {outline:2px solid #3b82f6;outline-offset:1px;}.pie-window-controls__icon.svelte-7vww0g {display:block;}"
|
|
1502
1502
|
};
|
|
1503
|
-
function
|
|
1504
|
-
|
|
1505
|
-
let n =
|
|
1506
|
-
const i = /* @__PURE__ */
|
|
1507
|
-
var s =
|
|
1503
|
+
function Tr(t, e) {
|
|
1504
|
+
gn(e, !0), hr(t, Er);
|
|
1505
|
+
let n = Yt(e, "minimized", 3, !1), r = Yt(e, "buttonClass", 3, "");
|
|
1506
|
+
const i = /* @__PURE__ */ In(() => (r() || "").trim() || "pie-window-controls__button");
|
|
1507
|
+
var s = xr(), l = Vn(s), a = Pe(l);
|
|
1508
1508
|
{
|
|
1509
|
-
var
|
|
1510
|
-
var
|
|
1511
|
-
|
|
1509
|
+
var f = (u) => {
|
|
1510
|
+
var m = gr();
|
|
1511
|
+
Ft(u, m);
|
|
1512
1512
|
}, c = (u) => {
|
|
1513
|
-
var
|
|
1514
|
-
|
|
1513
|
+
var m = br();
|
|
1514
|
+
Ft(u, m);
|
|
1515
1515
|
};
|
|
1516
|
-
|
|
1517
|
-
n() ? u(
|
|
1516
|
+
cr(a, (u) => {
|
|
1517
|
+
n() ? u(f) : u(c, -1);
|
|
1518
1518
|
});
|
|
1519
1519
|
}
|
|
1520
|
-
var d =
|
|
1521
|
-
|
|
1522
|
-
|
|
1520
|
+
var d = zn(l, 2);
|
|
1521
|
+
Xe(() => {
|
|
1522
|
+
Ot(l, 1, Pt(re(i)), "svelte-7vww0g"), ge(l, "title", n() ? "Maximize" : "Minimize"), ge(l, "aria-label", n() ? "Maximize panel" : "Minimize panel"), Ot(d, 1, Pt(re(i)), "svelte-7vww0g");
|
|
1523
1523
|
}), ie("click", l, function(...u) {
|
|
1524
1524
|
e.onToggle?.apply(this, u);
|
|
1525
1525
|
}), ie("click", d, function(...u) {
|
|
1526
1526
|
e.onClose?.apply(this, u);
|
|
1527
|
-
}),
|
|
1528
|
-
}
|
|
1529
|
-
|
|
1530
|
-
var
|
|
1531
|
-
function
|
|
1532
|
-
let n =
|
|
1533
|
-
var i =
|
|
1534
|
-
|
|
1535
|
-
|
|
1527
|
+
}), Ft(t, s), bn();
|
|
1528
|
+
}
|
|
1529
|
+
Je(["click"]);
|
|
1530
|
+
var yr = /* @__PURE__ */ $e('<div role="button" tabindex="0" title="Resize window"><svg viewBox="0 0 16 16" fill="currentColor"><path d="M16 16V14H14V16H16Z"></path><path d="M16 11V9H14V11H16Z"></path><path d="M13 16V14H11V16H13Z"></path></svg></div>');
|
|
1531
|
+
function Ar(t, e) {
|
|
1532
|
+
let n = Yt(e, "handleClass", 3, "absolute bottom-0 right-0 w-4 h-4 cursor-se-resize"), r = Yt(e, "iconClass", 3, "w-full h-full text-base-content/30");
|
|
1533
|
+
var i = yr(), s = Pe(i);
|
|
1534
|
+
Xe(() => {
|
|
1535
|
+
Ot(i, 1, Pt(n())), Ot(s, 0, Pt(r()));
|
|
1536
1536
|
}), ie("mousedown", i, function(...l) {
|
|
1537
1537
|
e.onPointerDown?.apply(this, l);
|
|
1538
|
-
}),
|
|
1538
|
+
}), Ft(t, i);
|
|
1539
1539
|
}
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1540
|
+
Je(["mousedown"]);
|
|
1541
|
+
const kr = 9999, xe = "__pieFloatingPanelZIndex";
|
|
1542
|
+
function Nr() {
|
|
1543
|
+
const t = globalThis, e = t[xe], r = (typeof e == "number" && Number.isFinite(e) ? e : kr) + 1;
|
|
1544
|
+
return t[xe] = r, r;
|
|
1545
|
+
}
|
|
1546
|
+
function Rr(t, e) {
|
|
1547
|
+
const n = (u, m, v) => Math.max(m, Math.min(u, v)), r = n(
|
|
1543
1548
|
Math.round(t.width * e.widthRatio),
|
|
1544
1549
|
e.minWidth,
|
|
1545
1550
|
e.maxWidth
|
|
@@ -1547,23 +1552,23 @@ function Tr(t, e) {
|
|
|
1547
1552
|
Math.round(t.height * e.heightRatio),
|
|
1548
1553
|
e.minHeight,
|
|
1549
1554
|
e.maxHeight
|
|
1550
|
-
), s = e.paddingX ?? 16, l = e.paddingY ?? 16,
|
|
1555
|
+
), s = e.paddingX ?? 16, l = e.paddingY ?? 16, a = Math.max(s, t.width - r - s), f = Math.max(l, t.height - i - l), c = e.alignX === "left" ? s : e.alignX === "right" ? a : Math.max(s, Math.round((t.width - r) / 2)), d = e.alignY === "top" ? l : e.alignY === "bottom" ? f : Math.max(l, Math.round((t.height - i) / 2));
|
|
1551
1556
|
return { x: c, y: d, width: r, height: i };
|
|
1552
1557
|
}
|
|
1553
|
-
function
|
|
1558
|
+
function Fr(t) {
|
|
1554
1559
|
const e = t.padding ?? 0;
|
|
1555
|
-
let n = !1, r = !1, i = 0, s = 0, l = 0,
|
|
1556
|
-
const
|
|
1560
|
+
let n = !1, r = !1, i = 0, s = 0, l = 0, a = 0, f = 0, c = 0, d = 0, u = 0;
|
|
1561
|
+
const m = (S) => {
|
|
1557
1562
|
if (!n) return;
|
|
1558
1563
|
const A = t.getState(), zt = S.clientX - i, Bt = S.clientY - s, Wt = Math.max(e, window.innerWidth - A.width - e), Ut = Math.max(e, window.innerHeight - 100 - e);
|
|
1559
1564
|
t.setState({
|
|
1560
1565
|
...A,
|
|
1561
1566
|
x: Math.max(e, Math.min(l + zt, Wt)),
|
|
1562
|
-
y: Math.max(e, Math.min(
|
|
1567
|
+
y: Math.max(e, Math.min(a + Bt, Ut))
|
|
1563
1568
|
});
|
|
1564
1569
|
}, v = (S) => {
|
|
1565
1570
|
if (!r) return;
|
|
1566
|
-
const A = t.getState(), zt = S.clientX -
|
|
1571
|
+
const A = t.getState(), zt = S.clientX - f, Bt = S.clientY - c, Wt = Math.max(
|
|
1567
1572
|
t.minWidth,
|
|
1568
1573
|
window.innerWidth - A.x - e
|
|
1569
1574
|
), Ut = Math.max(
|
|
@@ -1581,46 +1586,47 @@ function Ar(t) {
|
|
|
1581
1586
|
Math.min(u + Bt, Ut)
|
|
1582
1587
|
)
|
|
1583
1588
|
});
|
|
1584
|
-
},
|
|
1585
|
-
n = !1, document.removeEventListener("mousemove",
|
|
1589
|
+
}, X = () => {
|
|
1590
|
+
n = !1, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", X);
|
|
1586
1591
|
}, M = () => {
|
|
1587
1592
|
r = !1, document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", M);
|
|
1588
1593
|
};
|
|
1589
1594
|
return {
|
|
1590
1595
|
startDrag(S) {
|
|
1591
|
-
n = !0, i = S.clientX, s = S.clientY;
|
|
1596
|
+
t.onFocus?.(), n = !0, i = S.clientX, s = S.clientY;
|
|
1592
1597
|
const A = t.getState();
|
|
1593
|
-
l = A.x,
|
|
1598
|
+
l = A.x, a = A.y, document.addEventListener("mousemove", m), document.addEventListener("mouseup", X);
|
|
1594
1599
|
},
|
|
1595
1600
|
startResize(S) {
|
|
1596
|
-
r = !0,
|
|
1601
|
+
t.onFocus?.(), r = !0, f = S.clientX, c = S.clientY;
|
|
1597
1602
|
const A = t.getState();
|
|
1598
1603
|
d = A.width, u = A.height, document.addEventListener("mousemove", v), document.addEventListener("mouseup", M), S.preventDefault(), S.stopPropagation();
|
|
1599
1604
|
},
|
|
1600
1605
|
stop() {
|
|
1601
|
-
|
|
1606
|
+
X(), M();
|
|
1602
1607
|
}
|
|
1603
1608
|
};
|
|
1604
1609
|
}
|
|
1605
|
-
function
|
|
1610
|
+
function Mr(t, e) {
|
|
1606
1611
|
return (t || void 0) === (e || void 0);
|
|
1607
1612
|
}
|
|
1608
|
-
function
|
|
1613
|
+
function Ir(t, e, n) {
|
|
1609
1614
|
const r = t?.key?.sectionId || "", i = t?.key?.attemptId || void 0;
|
|
1610
|
-
return r !== e ? !1 :
|
|
1615
|
+
return r !== e ? !1 : Mr(i, n);
|
|
1611
1616
|
}
|
|
1612
|
-
function
|
|
1617
|
+
function Lr(t, e, n) {
|
|
1613
1618
|
return !t?.getSectionController || !e ? null : t.getSectionController({
|
|
1614
1619
|
sectionId: e,
|
|
1615
1620
|
attemptId: n
|
|
1616
1621
|
}) || null;
|
|
1617
1622
|
}
|
|
1618
1623
|
export {
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1624
|
+
Ar as PanelResizeHandle,
|
|
1625
|
+
Tr as PanelWindowControls,
|
|
1626
|
+
Nr as claimNextFloatingPanelZIndex,
|
|
1627
|
+
Rr as computePanelSizeFromViewport,
|
|
1628
|
+
Fr as createFloatingPanelPointerController,
|
|
1629
|
+
Lr as getSectionControllerFromCoordinator,
|
|
1630
|
+
Ir as isMatchingSectionControllerLifecycleEvent,
|
|
1631
|
+
Mr as optionalIdsEqual
|
|
1626
1632
|
};
|