@qualityunit/liveagent-components-editor 0.0.88 → 0.0.89
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region \0rolldown/runtime.js
|
|
2
|
-
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), s = (e, i, o, s) => {
|
|
2
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, i, o, s) => {
|
|
3
3
|
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
4
4
|
get: ((e) => i[e]).bind(null, d),
|
|
5
5
|
enumerable: !(s = n(i, d)) || s.enumerable
|
|
@@ -85,39 +85,42 @@ function We() {
|
|
|
85
85
|
function Ge() {
|
|
86
86
|
throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
87
87
|
}
|
|
88
|
-
function Ke(
|
|
88
|
+
function Ke() {
|
|
89
|
+
console.warn("https://svelte.dev/e/derived_inert");
|
|
90
|
+
}
|
|
91
|
+
function qe(e) {
|
|
89
92
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
90
93
|
}
|
|
91
|
-
function
|
|
94
|
+
function Je() {
|
|
92
95
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
93
96
|
}
|
|
94
97
|
//#endregion
|
|
95
98
|
//#region node_modules/svelte/src/internal/client/dom/hydration.js
|
|
96
99
|
var v = !1;
|
|
97
|
-
function
|
|
100
|
+
function Ye(e) {
|
|
98
101
|
v = e;
|
|
99
102
|
}
|
|
100
103
|
var y;
|
|
101
|
-
function
|
|
102
|
-
if (e === null) throw
|
|
104
|
+
function Xe(e) {
|
|
105
|
+
if (e === null) throw qe(), f;
|
|
103
106
|
return y = e;
|
|
104
107
|
}
|
|
105
|
-
function
|
|
106
|
-
return
|
|
108
|
+
function Ze() {
|
|
109
|
+
return Xe(/* @__PURE__ */ Tn(y));
|
|
107
110
|
}
|
|
108
|
-
function
|
|
111
|
+
function Qe(e) {
|
|
109
112
|
if (v) {
|
|
110
|
-
if (/* @__PURE__ */ Tn(y) !== null) throw
|
|
113
|
+
if (/* @__PURE__ */ Tn(y) !== null) throw qe(), f;
|
|
111
114
|
y = e;
|
|
112
115
|
}
|
|
113
116
|
}
|
|
114
|
-
function
|
|
117
|
+
function $e(e = 1) {
|
|
115
118
|
if (v) {
|
|
116
119
|
for (var t = e, n = y; t--;) n = /* @__PURE__ */ Tn(n);
|
|
117
120
|
y = n;
|
|
118
121
|
}
|
|
119
122
|
}
|
|
120
|
-
function
|
|
123
|
+
function et(e = !0) {
|
|
121
124
|
for (var t = 0, n = y;;) {
|
|
122
125
|
if (n.nodeType === 8) {
|
|
123
126
|
var r = n.data;
|
|
@@ -130,28 +133,28 @@ function $e(e = !0) {
|
|
|
130
133
|
e && n.remove(), n = i;
|
|
131
134
|
}
|
|
132
135
|
}
|
|
133
|
-
function
|
|
134
|
-
if (!e || e.nodeType !== 8) throw
|
|
136
|
+
function tt(e) {
|
|
137
|
+
if (!e || e.nodeType !== 8) throw qe(), f;
|
|
135
138
|
return e.data;
|
|
136
139
|
}
|
|
137
140
|
//#endregion
|
|
138
141
|
//#region node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
139
|
-
function
|
|
142
|
+
function nt(e) {
|
|
140
143
|
return e === this.v;
|
|
141
144
|
}
|
|
142
|
-
function
|
|
145
|
+
function rt(e, t) {
|
|
143
146
|
return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
|
|
144
147
|
}
|
|
145
|
-
function
|
|
146
|
-
return !
|
|
148
|
+
function it(e) {
|
|
149
|
+
return !rt(e, this.v);
|
|
147
150
|
}
|
|
148
151
|
//#endregion
|
|
149
152
|
//#region node_modules/svelte/src/internal/client/context.js
|
|
150
153
|
var b = null;
|
|
151
|
-
function
|
|
154
|
+
function at(e) {
|
|
152
155
|
b = e;
|
|
153
156
|
}
|
|
154
|
-
function
|
|
157
|
+
function ot(e, t = !1, n) {
|
|
155
158
|
b = {
|
|
156
159
|
p: b,
|
|
157
160
|
i: !1,
|
|
@@ -167,7 +170,7 @@ function at(e, t = !1, n) {
|
|
|
167
170
|
} : null
|
|
168
171
|
};
|
|
169
172
|
}
|
|
170
|
-
function
|
|
173
|
+
function st(e) {
|
|
171
174
|
var t = b, n = t.e;
|
|
172
175
|
if (n !== null) {
|
|
173
176
|
t.e = null;
|
|
@@ -175,35 +178,35 @@ function ot(e) {
|
|
|
175
178
|
}
|
|
176
179
|
return e !== void 0 && (t.x = e), t.i = !0, b = t.p, e ?? {};
|
|
177
180
|
}
|
|
178
|
-
function
|
|
181
|
+
function ct() {
|
|
179
182
|
return !u || b !== null && b.l === null;
|
|
180
183
|
}
|
|
181
184
|
//#endregion
|
|
182
185
|
//#region node_modules/svelte/src/internal/client/dom/task.js
|
|
183
|
-
var
|
|
184
|
-
function
|
|
185
|
-
var e =
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
function
|
|
189
|
-
if (
|
|
190
|
-
var t =
|
|
186
|
+
var lt = [];
|
|
187
|
+
function ut() {
|
|
188
|
+
var e = lt;
|
|
189
|
+
lt = [], de(e);
|
|
190
|
+
}
|
|
191
|
+
function dt(e) {
|
|
192
|
+
if (lt.length === 0 && !Dt) {
|
|
193
|
+
var t = lt;
|
|
191
194
|
queueMicrotask(() => {
|
|
192
|
-
t ===
|
|
195
|
+
t === lt && ut();
|
|
193
196
|
});
|
|
194
197
|
}
|
|
195
|
-
|
|
198
|
+
lt.push(e);
|
|
196
199
|
}
|
|
197
|
-
function
|
|
198
|
-
for (;
|
|
200
|
+
function ft() {
|
|
201
|
+
for (; lt.length > 0;) ut();
|
|
199
202
|
}
|
|
200
|
-
function
|
|
203
|
+
function pt(e) {
|
|
201
204
|
var t = C;
|
|
202
205
|
if (t === null) return S.f |= De, e;
|
|
203
206
|
if (!(t.f & 32768) && !(t.f & 4)) throw e;
|
|
204
|
-
|
|
207
|
+
mt(e, t);
|
|
205
208
|
}
|
|
206
|
-
function
|
|
209
|
+
function mt(e, t) {
|
|
207
210
|
for (; t !== null;) {
|
|
208
211
|
if (t.f & 128) {
|
|
209
212
|
if (!(t.f & 32768)) throw e;
|
|
@@ -220,58 +223,60 @@ function pt(e, t) {
|
|
|
220
223
|
}
|
|
221
224
|
//#endregion
|
|
222
225
|
//#region node_modules/svelte/src/internal/client/reactivity/status.js
|
|
223
|
-
var
|
|
224
|
-
function
|
|
225
|
-
e.f = e.f &
|
|
226
|
+
var ht = ~(me | he | pe);
|
|
227
|
+
function gt(e, t) {
|
|
228
|
+
e.f = e.f & ht | t;
|
|
226
229
|
}
|
|
227
|
-
function
|
|
228
|
-
e.f & 512 || e.deps === null ?
|
|
230
|
+
function _t(e) {
|
|
231
|
+
e.f & 512 || e.deps === null ? gt(e, pe) : gt(e, he);
|
|
229
232
|
}
|
|
230
233
|
//#endregion
|
|
231
234
|
//#region node_modules/svelte/src/internal/client/reactivity/utils.js
|
|
232
|
-
function
|
|
233
|
-
if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= we,
|
|
235
|
+
function vt(e) {
|
|
236
|
+
if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= we, vt(t.deps));
|
|
234
237
|
}
|
|
235
|
-
function
|
|
236
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e),
|
|
238
|
+
function yt(e, t, n) {
|
|
239
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), vt(e.deps), gt(e, pe);
|
|
237
240
|
}
|
|
238
241
|
//#endregion
|
|
239
242
|
//#region node_modules/svelte/src/internal/client/reactivity/store.js
|
|
240
|
-
var
|
|
241
|
-
function
|
|
242
|
-
var t =
|
|
243
|
+
var bt = !1, xt = !1;
|
|
244
|
+
function St(e) {
|
|
245
|
+
var t = xt;
|
|
243
246
|
try {
|
|
244
|
-
return
|
|
247
|
+
return xt = !1, [e(), xt];
|
|
245
248
|
} finally {
|
|
246
|
-
|
|
249
|
+
xt = t;
|
|
247
250
|
}
|
|
248
251
|
}
|
|
249
252
|
//#endregion
|
|
250
253
|
//#region node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
251
|
-
var
|
|
252
|
-
id =
|
|
254
|
+
var Ct = /* @__PURE__ */ new Set(), x = null, wt = null, Tt = null, Et = null, Dt = !1, Ot = !1, kt = null, At = null, jt = 0, Mt = 1, Nt = class e {
|
|
255
|
+
id = Mt++;
|
|
253
256
|
current = /* @__PURE__ */ new Map();
|
|
254
257
|
previous = /* @__PURE__ */ new Map();
|
|
255
258
|
#e = /* @__PURE__ */ new Set();
|
|
256
259
|
#t = /* @__PURE__ */ new Set();
|
|
257
|
-
#n = /* @__PURE__ */ new
|
|
260
|
+
#n = /* @__PURE__ */ new Set();
|
|
258
261
|
#r = /* @__PURE__ */ new Map();
|
|
259
|
-
#i =
|
|
260
|
-
#a =
|
|
262
|
+
#i = /* @__PURE__ */ new Map();
|
|
263
|
+
#a = null;
|
|
261
264
|
#o = [];
|
|
262
|
-
#s =
|
|
265
|
+
#s = [];
|
|
263
266
|
#c = /* @__PURE__ */ new Set();
|
|
264
|
-
#l = /* @__PURE__ */ new
|
|
265
|
-
|
|
266
|
-
#u = !1;
|
|
267
|
+
#l = /* @__PURE__ */ new Set();
|
|
268
|
+
#u = /* @__PURE__ */ new Map();
|
|
267
269
|
#d = /* @__PURE__ */ new Set();
|
|
268
|
-
|
|
269
|
-
|
|
270
|
+
is_fork = !1;
|
|
271
|
+
#f = !1;
|
|
272
|
+
#p = /* @__PURE__ */ new Set();
|
|
273
|
+
#m() {
|
|
274
|
+
return this.is_fork || this.#i.size > 0;
|
|
270
275
|
}
|
|
271
|
-
#
|
|
272
|
-
for (let n of this.#
|
|
276
|
+
#h() {
|
|
277
|
+
for (let n of this.#p) for (let r of n.#i.keys()) {
|
|
273
278
|
for (var e = !1, t = r; t.parent !== null;) {
|
|
274
|
-
if (this.#
|
|
279
|
+
if (this.#u.has(t)) {
|
|
275
280
|
e = !0;
|
|
276
281
|
break;
|
|
277
282
|
}
|
|
@@ -282,57 +287,58 @@ var St = /* @__PURE__ */ new Set(), x = null, Ct = null, wt = null, Tt = null, E
|
|
|
282
287
|
return !1;
|
|
283
288
|
}
|
|
284
289
|
skip_effect(e) {
|
|
285
|
-
this.#
|
|
290
|
+
this.#u.has(e) || this.#u.set(e, {
|
|
286
291
|
d: [],
|
|
287
292
|
m: []
|
|
288
|
-
});
|
|
293
|
+
}), this.#d.delete(e);
|
|
289
294
|
}
|
|
290
|
-
unskip_effect(e) {
|
|
291
|
-
var
|
|
292
|
-
if (
|
|
293
|
-
this.#
|
|
294
|
-
for (var
|
|
295
|
-
for (
|
|
295
|
+
unskip_effect(e, t = (e) => this.schedule(e)) {
|
|
296
|
+
var n = this.#u.get(e);
|
|
297
|
+
if (n) {
|
|
298
|
+
this.#u.delete(e);
|
|
299
|
+
for (var r of n.d) gt(r, me), t(r);
|
|
300
|
+
for (r of n.m) gt(r, he), t(r);
|
|
296
301
|
}
|
|
302
|
+
this.#d.add(e);
|
|
297
303
|
}
|
|
298
|
-
#
|
|
299
|
-
if (
|
|
300
|
-
for (let e of this.#
|
|
301
|
-
for (let e of this.#
|
|
304
|
+
#g() {
|
|
305
|
+
if (jt++ > 1e3 && (Ct.delete(this), Ft()), !this.#m()) {
|
|
306
|
+
for (let e of this.#c) this.#l.delete(e), gt(e, me), this.schedule(e);
|
|
307
|
+
for (let e of this.#l) gt(e, he), this.schedule(e);
|
|
302
308
|
}
|
|
303
|
-
let t = this.#
|
|
304
|
-
this.#
|
|
305
|
-
var n =
|
|
309
|
+
let t = this.#o;
|
|
310
|
+
this.#o = [], this.apply();
|
|
311
|
+
var n = kt = [], r = [], i = At = [];
|
|
306
312
|
for (let e of t) try {
|
|
307
|
-
this.#
|
|
313
|
+
this.#_(e, n, r);
|
|
308
314
|
} catch (t) {
|
|
309
|
-
throw
|
|
315
|
+
throw Ht(e), t;
|
|
310
316
|
}
|
|
311
317
|
if (x = null, i.length > 0) {
|
|
312
318
|
var a = e.ensure();
|
|
313
319
|
for (let e of i) a.schedule(e);
|
|
314
320
|
}
|
|
315
|
-
if (
|
|
316
|
-
this.#
|
|
317
|
-
for (let [e, t] of this.#
|
|
321
|
+
if (kt = null, At = null, this.#m() || this.#h()) {
|
|
322
|
+
this.#v(r), this.#v(n);
|
|
323
|
+
for (let [e, t] of this.#u) Vt(e, t);
|
|
318
324
|
} else {
|
|
319
|
-
this.#
|
|
325
|
+
this.#r.size === 0 && Ct.delete(this), this.#c.clear(), this.#l.clear();
|
|
320
326
|
for (let e of this.#e) e(this);
|
|
321
|
-
this.#e.clear(),
|
|
327
|
+
this.#e.clear(), wt = this, Lt(r), Lt(n), wt = null, this.#a?.resolve();
|
|
322
328
|
}
|
|
323
329
|
var o = x;
|
|
324
|
-
if (this.#
|
|
330
|
+
if (this.#o.length > 0) {
|
|
325
331
|
let e = o ??= this;
|
|
326
|
-
e.#
|
|
332
|
+
e.#o.push(...this.#o.filter((t) => !e.#o.includes(t)));
|
|
327
333
|
}
|
|
328
|
-
o !== null && (
|
|
334
|
+
o !== null && (Ct.add(o), o.#g()), l && !Ct.has(this) && this.#y();
|
|
329
335
|
}
|
|
330
|
-
#
|
|
336
|
+
#_(e, t, n) {
|
|
331
337
|
e.f ^= pe;
|
|
332
338
|
for (var r = e.first; r !== null;) {
|
|
333
339
|
var i = r.f, a = (i & 96) != 0;
|
|
334
|
-
if (!(a && i & 1024 || i & 8192 || this.#
|
|
335
|
-
a ? r.f ^= pe : i & 4 ? t.push(r) : l && i & 16777224 ? n.push(r) : Ar(r) && (i & 16 && this.#
|
|
340
|
+
if (!(a && i & 1024 || i & 8192 || this.#u.has(r)) && r.fn !== null) {
|
|
341
|
+
a ? r.f ^= pe : i & 4 ? t.push(r) : l && i & 16777224 ? n.push(r) : Ar(r) && (i & 16 && this.#l.add(r), Fr(r));
|
|
336
342
|
var o = r.first;
|
|
337
343
|
if (o !== null) {
|
|
338
344
|
r = o;
|
|
@@ -349,34 +355,34 @@ var St = /* @__PURE__ */ new Set(), x = null, Ct = null, wt = null, Tt = null, E
|
|
|
349
355
|
}
|
|
350
356
|
}
|
|
351
357
|
}
|
|
352
|
-
#
|
|
353
|
-
for (var t = 0; t < e.length; t += 1)
|
|
358
|
+
#v(e) {
|
|
359
|
+
for (var t = 0; t < e.length; t += 1) yt(e[t], this.#c, this.#l);
|
|
354
360
|
}
|
|
355
361
|
capture(e, t, n = !1) {
|
|
356
|
-
|
|
362
|
+
e.v !== p && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), Tt?.set(e, t)), this.is_fork || (e.v = t);
|
|
357
363
|
}
|
|
358
364
|
activate() {
|
|
359
365
|
x = this;
|
|
360
366
|
}
|
|
361
367
|
deactivate() {
|
|
362
|
-
x = null,
|
|
368
|
+
x = null, Tt = null;
|
|
363
369
|
}
|
|
364
370
|
flush() {
|
|
365
371
|
try {
|
|
366
|
-
|
|
372
|
+
Ot = !0, x = this, this.#g();
|
|
367
373
|
} finally {
|
|
368
|
-
|
|
374
|
+
jt = 0, Et = null, kt = null, At = null, Ot = !1, x = null, Tt = null, sn.clear();
|
|
369
375
|
}
|
|
370
376
|
}
|
|
371
377
|
discard() {
|
|
372
378
|
for (let e of this.#t) e(this);
|
|
373
|
-
this.#t.clear(),
|
|
379
|
+
this.#t.clear(), this.#n.clear(), Ct.delete(this);
|
|
374
380
|
}
|
|
375
381
|
register_created_effect(e) {
|
|
376
|
-
this.#
|
|
382
|
+
this.#s.push(e);
|
|
377
383
|
}
|
|
378
|
-
#
|
|
379
|
-
for (let l of
|
|
384
|
+
#y() {
|
|
385
|
+
for (let l of Ct) {
|
|
380
386
|
var e = l.id < this.id, t = [];
|
|
381
387
|
for (let [r, [i, a]] of this.current) {
|
|
382
388
|
if (l.current.has(r)) {
|
|
@@ -389,42 +395,45 @@ var St = /* @__PURE__ */ new Set(), x = null, Ct = null, wt = null, Tt = null, E
|
|
|
389
395
|
var r = [...l.current.keys()].filter((e) => !this.current.has(e));
|
|
390
396
|
if (r.length === 0) e && l.discard();
|
|
391
397
|
else if (t.length > 0) {
|
|
398
|
+
if (e) for (let e of this.#d) l.unskip_effect(e, (e) => {
|
|
399
|
+
e.f & 4194320 ? l.schedule(e) : l.#v([e]);
|
|
400
|
+
});
|
|
392
401
|
l.activate();
|
|
393
402
|
var i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
|
|
394
|
-
for (var o of t)
|
|
403
|
+
for (var o of t) Rt(o, r, i, a);
|
|
395
404
|
a = /* @__PURE__ */ new Map();
|
|
396
405
|
var s = [...l.current.keys()].filter((e) => this.current.has(e) ? this.current.get(e)[0] !== e : !0);
|
|
397
|
-
for (let e of this.#
|
|
398
|
-
if (l.#
|
|
406
|
+
for (let e of this.#s) !(e.f & 155648) && zt(e, s, a) && (e.f & 4194320 ? (gt(e, me), l.schedule(e)) : l.#c.add(e));
|
|
407
|
+
if (l.#o.length > 0) {
|
|
399
408
|
l.apply();
|
|
400
|
-
for (var c of l.#
|
|
401
|
-
l.#
|
|
409
|
+
for (var c of l.#o) l.#_(c, [], []);
|
|
410
|
+
l.#o = [];
|
|
402
411
|
}
|
|
403
412
|
l.deactivate();
|
|
404
413
|
}
|
|
405
414
|
}
|
|
406
|
-
for (let e of
|
|
415
|
+
for (let e of Ct) e.#p.has(this) && (e.#p.delete(this), e.#p.size === 0 && !e.#m() && (e.activate(), e.#g()));
|
|
407
416
|
}
|
|
408
417
|
increment(e, t) {
|
|
409
|
-
let n = this.#
|
|
410
|
-
if (this.#
|
|
411
|
-
let e = this.#
|
|
412
|
-
this.#
|
|
418
|
+
let n = this.#r.get(t) ?? 0;
|
|
419
|
+
if (this.#r.set(t, n + 1), e) {
|
|
420
|
+
let e = this.#i.get(t) ?? 0;
|
|
421
|
+
this.#i.set(t, e + 1);
|
|
413
422
|
}
|
|
414
423
|
}
|
|
415
424
|
decrement(e, t, n) {
|
|
416
|
-
let r = this.#
|
|
417
|
-
if (r === 1 ? this.#
|
|
418
|
-
let e = this.#
|
|
419
|
-
e === 1 ? this.#
|
|
425
|
+
let r = this.#r.get(t) ?? 0;
|
|
426
|
+
if (r === 1 ? this.#r.delete(t) : this.#r.set(t, r - 1), e) {
|
|
427
|
+
let e = this.#i.get(t) ?? 0;
|
|
428
|
+
e === 1 ? this.#i.delete(t) : this.#i.set(t, e - 1);
|
|
420
429
|
}
|
|
421
|
-
this.#
|
|
422
|
-
this.#
|
|
430
|
+
this.#f || n || (this.#f = !0, dt(() => {
|
|
431
|
+
this.#f = !1, this.flush();
|
|
423
432
|
}));
|
|
424
433
|
}
|
|
425
434
|
transfer_effects(e, t) {
|
|
426
|
-
for (let t of e) this.#
|
|
427
|
-
for (let e of t) this.#
|
|
435
|
+
for (let t of e) this.#c.add(t);
|
|
436
|
+
for (let e of t) this.#l.add(e);
|
|
428
437
|
e.clear(), t.clear();
|
|
429
438
|
}
|
|
430
439
|
oncommit(e) {
|
|
@@ -433,127 +442,134 @@ var St = /* @__PURE__ */ new Set(), x = null, Ct = null, wt = null, Tt = null, E
|
|
|
433
442
|
ondiscard(e) {
|
|
434
443
|
this.#t.add(e);
|
|
435
444
|
}
|
|
445
|
+
on_fork_commit(e) {
|
|
446
|
+
this.#n.add(e);
|
|
447
|
+
}
|
|
448
|
+
run_fork_commit_callbacks() {
|
|
449
|
+
for (let e of this.#n) e(this);
|
|
450
|
+
this.#n.clear();
|
|
451
|
+
}
|
|
436
452
|
settled() {
|
|
437
|
-
return (this.#
|
|
453
|
+
return (this.#a ??= fe()).promise;
|
|
438
454
|
}
|
|
439
455
|
static ensure() {
|
|
440
456
|
if (x === null) {
|
|
441
457
|
let t = x = new e();
|
|
442
|
-
|
|
458
|
+
Ot || (Ct.add(x), Dt || dt(() => {
|
|
443
459
|
x === t && t.flush();
|
|
444
460
|
}));
|
|
445
461
|
}
|
|
446
462
|
return x;
|
|
447
463
|
}
|
|
448
464
|
apply() {
|
|
449
|
-
if (!l || !this.is_fork &&
|
|
450
|
-
|
|
465
|
+
if (!l || !this.is_fork && Ct.size === 1) {
|
|
466
|
+
Tt = null;
|
|
451
467
|
return;
|
|
452
468
|
}
|
|
453
|
-
|
|
454
|
-
for (let [e, [t]] of this.current)
|
|
455
|
-
for (let n of
|
|
469
|
+
Tt = /* @__PURE__ */ new Map();
|
|
470
|
+
for (let [e, [t]] of this.current) Tt.set(e, t);
|
|
471
|
+
for (let n of Ct) if (!(n === this || n.is_fork)) {
|
|
456
472
|
var e = !1, t = !1;
|
|
457
473
|
if (n.id < this.id) for (let [r, [, i]] of n.current) i || (e ||= this.current.has(r), t ||= !this.current.has(r));
|
|
458
|
-
if (e && t) this.#
|
|
459
|
-
else for (let [e, t] of n.previous)
|
|
474
|
+
if (e && t) this.#p.add(n);
|
|
475
|
+
else for (let [e, t] of n.previous) Tt.has(e) || Tt.set(e, t);
|
|
460
476
|
}
|
|
461
477
|
}
|
|
462
478
|
schedule(e) {
|
|
463
|
-
if (
|
|
479
|
+
if (Et = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
|
|
464
480
|
e.b.defer_effect(e);
|
|
465
481
|
return;
|
|
466
482
|
}
|
|
467
483
|
for (var t = e; t.parent !== null;) {
|
|
468
484
|
t = t.parent;
|
|
469
485
|
var n = t.f;
|
|
470
|
-
if (
|
|
486
|
+
if (kt !== null && t === C && (l || (S === null || !(S.f & 2)) && !bt)) return;
|
|
471
487
|
if (n & 96) {
|
|
472
488
|
if (!(n & 1024)) return;
|
|
473
489
|
t.f ^= pe;
|
|
474
490
|
}
|
|
475
491
|
}
|
|
476
|
-
this.#
|
|
492
|
+
this.#o.push(t);
|
|
477
493
|
}
|
|
478
494
|
};
|
|
479
|
-
function
|
|
480
|
-
var t =
|
|
481
|
-
|
|
495
|
+
function Pt(e) {
|
|
496
|
+
var t = Dt;
|
|
497
|
+
Dt = !0;
|
|
482
498
|
try {
|
|
483
499
|
var n;
|
|
484
500
|
for (e && (x !== null && !x.is_fork && x.flush(), n = e());;) {
|
|
485
|
-
if (
|
|
501
|
+
if (ft(), x === null) return n;
|
|
486
502
|
x.flush();
|
|
487
503
|
}
|
|
488
504
|
} finally {
|
|
489
|
-
|
|
505
|
+
Dt = t;
|
|
490
506
|
}
|
|
491
507
|
}
|
|
492
|
-
function
|
|
508
|
+
function Ft() {
|
|
493
509
|
try {
|
|
494
510
|
ze();
|
|
495
511
|
} catch (e) {
|
|
496
|
-
|
|
512
|
+
mt(e, Et);
|
|
497
513
|
}
|
|
498
514
|
}
|
|
499
|
-
var
|
|
500
|
-
function
|
|
515
|
+
var It = null;
|
|
516
|
+
function Lt(e) {
|
|
501
517
|
var t = e.length;
|
|
502
518
|
if (t !== 0) {
|
|
503
519
|
for (var n = 0; n < t;) {
|
|
504
520
|
var r = e[n++];
|
|
505
|
-
if (!(r.f & 24576) && Ar(r) && (
|
|
521
|
+
if (!(r.f & 24576) && Ar(r) && (It = /* @__PURE__ */ new Set(), Fr(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && or(r), It?.size > 0)) {
|
|
506
522
|
sn.clear();
|
|
507
|
-
for (let e of
|
|
523
|
+
for (let e of It) {
|
|
508
524
|
if (e.f & 24576) continue;
|
|
509
525
|
let t = [e], n = e.parent;
|
|
510
|
-
for (; n !== null;)
|
|
526
|
+
for (; n !== null;) It.has(n) && (It.delete(n), t.push(n)), n = n.parent;
|
|
511
527
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
512
528
|
let n = t[e];
|
|
513
529
|
n.f & 24576 || Fr(n);
|
|
514
530
|
}
|
|
515
531
|
}
|
|
516
|
-
|
|
532
|
+
It.clear();
|
|
517
533
|
}
|
|
518
534
|
}
|
|
519
|
-
|
|
535
|
+
It = null;
|
|
520
536
|
}
|
|
521
537
|
}
|
|
522
|
-
function
|
|
538
|
+
function Rt(e, t, n, r) {
|
|
523
539
|
if (!n.has(e) && (n.add(e), e.reactions !== null)) for (let i of e.reactions) {
|
|
524
540
|
let e = i.f;
|
|
525
|
-
e & 2 ?
|
|
541
|
+
e & 2 ? Rt(i, t, n, r) : e & 4194320 && !(e & 2048) && zt(i, t, r) && (gt(i, me), Bt(i));
|
|
526
542
|
}
|
|
527
543
|
}
|
|
528
|
-
function
|
|
544
|
+
function zt(e, t, n) {
|
|
529
545
|
let r = n.get(e);
|
|
530
546
|
if (r !== void 0) return r;
|
|
531
547
|
if (e.deps !== null) for (let r of e.deps) {
|
|
532
548
|
if (_.call(t, r)) return !0;
|
|
533
|
-
if (r.f & 2 &&
|
|
549
|
+
if (r.f & 2 && zt(r, t, n)) return n.set(r, !0), !0;
|
|
534
550
|
}
|
|
535
551
|
return n.set(e, !1), !1;
|
|
536
552
|
}
|
|
537
|
-
function
|
|
553
|
+
function Bt(e) {
|
|
538
554
|
x.schedule(e);
|
|
539
555
|
}
|
|
540
|
-
function
|
|
556
|
+
function Vt(e, t) {
|
|
541
557
|
if (!(e.f & 32 && e.f & 1024)) {
|
|
542
|
-
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e),
|
|
543
|
-
for (var n = e.first; n !== null;)
|
|
558
|
+
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), gt(e, pe);
|
|
559
|
+
for (var n = e.first; n !== null;) Vt(n, t), n = n.next;
|
|
544
560
|
}
|
|
545
561
|
}
|
|
546
|
-
function
|
|
547
|
-
|
|
548
|
-
for (var t = e.first; t !== null;)
|
|
562
|
+
function Ht(e) {
|
|
563
|
+
gt(e, pe);
|
|
564
|
+
for (var t = e.first; t !== null;) Ht(t), t = t.next;
|
|
549
565
|
}
|
|
550
566
|
//#endregion
|
|
551
567
|
//#region node_modules/svelte/src/reactivity/create-subscriber.js
|
|
552
|
-
function
|
|
568
|
+
function Ut(e) {
|
|
553
569
|
let t = 0, n = ln(0), r;
|
|
554
570
|
return () => {
|
|
555
571
|
Bn() && (w(n), Zn(() => (t === 0 && (r = zr(() => e(() => hn(n)))), t += 1, () => {
|
|
556
|
-
|
|
572
|
+
dt(() => {
|
|
557
573
|
--t, t === 0 && (r?.(), r = void 0, hn(n));
|
|
558
574
|
});
|
|
559
575
|
})));
|
|
@@ -561,11 +577,11 @@ function Ht(e) {
|
|
|
561
577
|
}
|
|
562
578
|
//#endregion
|
|
563
579
|
//#region node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
564
|
-
var
|
|
565
|
-
function
|
|
566
|
-
new
|
|
580
|
+
var Wt = be | xe;
|
|
581
|
+
function Gt(e, t, n, r) {
|
|
582
|
+
new Kt(e, t, n, r);
|
|
567
583
|
}
|
|
568
|
-
var
|
|
584
|
+
var Kt = class {
|
|
569
585
|
parent;
|
|
570
586
|
is_pending = !1;
|
|
571
587
|
transform_error;
|
|
@@ -584,7 +600,7 @@ var Gt = class {
|
|
|
584
600
|
#f = /* @__PURE__ */ new Set();
|
|
585
601
|
#p = /* @__PURE__ */ new Set();
|
|
586
602
|
#m = null;
|
|
587
|
-
#h =
|
|
603
|
+
#h = Ut(() => (this.#m = ln(this.#l), () => {
|
|
588
604
|
this.#m = null;
|
|
589
605
|
}));
|
|
590
606
|
constructor(e, t, n, r) {
|
|
@@ -594,14 +610,14 @@ var Gt = class {
|
|
|
594
610
|
}, this.parent = C.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = $n(() => {
|
|
595
611
|
if (v) {
|
|
596
612
|
let e = this.#t;
|
|
597
|
-
|
|
613
|
+
Ze();
|
|
598
614
|
let t = e.data === "[!";
|
|
599
615
|
if (e.data.startsWith("[?")) {
|
|
600
616
|
let t = JSON.parse(e.data.slice(2));
|
|
601
617
|
this.#_(t);
|
|
602
618
|
} else t ? this.#v() : this.#g();
|
|
603
619
|
} else this.#y();
|
|
604
|
-
},
|
|
620
|
+
}, Wt), v && (this.#e = y);
|
|
605
621
|
}
|
|
606
622
|
#g() {
|
|
607
623
|
try {
|
|
@@ -618,7 +634,7 @@ var Gt = class {
|
|
|
618
634
|
}
|
|
619
635
|
#v() {
|
|
620
636
|
let e = this.#n.pending;
|
|
621
|
-
e && (this.is_pending = !0, this.#o = er(() => e(this.#e)),
|
|
637
|
+
e && (this.is_pending = !0, this.#o = er(() => e(this.#e)), dt(() => {
|
|
622
638
|
var e = this.#c = document.createDocumentFragment(), t = Cn();
|
|
623
639
|
e.append(t), this.#a = this.#x(() => er(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null, sr(this.#o, () => {
|
|
624
640
|
this.#o = null;
|
|
@@ -643,7 +659,7 @@ var Gt = class {
|
|
|
643
659
|
this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
|
|
644
660
|
}
|
|
645
661
|
defer_effect(e) {
|
|
646
|
-
|
|
662
|
+
yt(e, this.#f, this.#p);
|
|
647
663
|
}
|
|
648
664
|
is_rendered() {
|
|
649
665
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -653,13 +669,13 @@ var Gt = class {
|
|
|
653
669
|
}
|
|
654
670
|
#x(e) {
|
|
655
671
|
var t = C, n = S, r = b;
|
|
656
|
-
vr(this.#i), _r(this.#i),
|
|
672
|
+
vr(this.#i), _r(this.#i), at(this.#i.ctx);
|
|
657
673
|
try {
|
|
658
|
-
return
|
|
674
|
+
return Nt.ensure(), e();
|
|
659
675
|
} catch (e) {
|
|
660
|
-
return
|
|
676
|
+
return pt(e), null;
|
|
661
677
|
} finally {
|
|
662
|
-
vr(t), _r(n),
|
|
678
|
+
vr(t), _r(n), at(r);
|
|
663
679
|
}
|
|
664
680
|
}
|
|
665
681
|
#S(e, t) {
|
|
@@ -672,7 +688,7 @@ var Gt = class {
|
|
|
672
688
|
}), this.#c &&= (this.#e.before(this.#c), null));
|
|
673
689
|
}
|
|
674
690
|
update_pending_count(e, t) {
|
|
675
|
-
this.#S(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0,
|
|
691
|
+
this.#S(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, dt(() => {
|
|
676
692
|
this.#d = !1, this.#m && pn(this.#m, this.#l);
|
|
677
693
|
}));
|
|
678
694
|
}
|
|
@@ -680,14 +696,19 @@ var Gt = class {
|
|
|
680
696
|
return this.#h(), w(this.#m);
|
|
681
697
|
}
|
|
682
698
|
error(e) {
|
|
699
|
+
if (!this.#n.onerror && !this.#n.failed) throw e;
|
|
700
|
+
x?.is_fork ? (this.#a && x.skip_effect(this.#a), this.#o && x.skip_effect(this.#o), this.#s && x.skip_effect(this.#s), x.on_fork_commit(() => {
|
|
701
|
+
this.#C(e);
|
|
702
|
+
})) : this.#C(e);
|
|
703
|
+
}
|
|
704
|
+
#C(e) {
|
|
705
|
+
this.#a &&= (ir(this.#a), null), this.#o &&= (ir(this.#o), null), this.#s &&= (ir(this.#s), null), v && (Xe(this.#t), $e(), Xe(et()));
|
|
683
706
|
var t = this.#n.onerror;
|
|
684
707
|
let n = this.#n.failed;
|
|
685
|
-
if (!t && !n) throw e;
|
|
686
|
-
this.#a &&= (ir(this.#a), null), this.#o &&= (ir(this.#o), null), this.#s &&= (ir(this.#s), null), v && (Ye(this.#t), Qe(), Ye($e()));
|
|
687
708
|
var r = !1, i = !1;
|
|
688
709
|
let a = () => {
|
|
689
710
|
if (r) {
|
|
690
|
-
|
|
711
|
+
Je();
|
|
691
712
|
return;
|
|
692
713
|
}
|
|
693
714
|
r = !0, i && Ge(), this.#s !== null && sr(this.#s, () => {
|
|
@@ -699,7 +720,7 @@ var Gt = class {
|
|
|
699
720
|
try {
|
|
700
721
|
i = !0, t?.(e, a), i = !1;
|
|
701
722
|
} catch (e) {
|
|
702
|
-
|
|
723
|
+
mt(e, this.#i && this.#i.parent);
|
|
703
724
|
}
|
|
704
725
|
n && (this.#s = this.#x(() => {
|
|
705
726
|
try {
|
|
@@ -708,88 +729,88 @@ var Gt = class {
|
|
|
708
729
|
t.b = this, t.f |= 128, n(this.#e, () => e, () => a);
|
|
709
730
|
});
|
|
710
731
|
} catch (e) {
|
|
711
|
-
return
|
|
732
|
+
return mt(e, this.#i.parent), null;
|
|
712
733
|
}
|
|
713
734
|
}));
|
|
714
735
|
};
|
|
715
|
-
|
|
736
|
+
dt(() => {
|
|
716
737
|
var t;
|
|
717
738
|
try {
|
|
718
739
|
t = this.transform_error(e);
|
|
719
740
|
} catch (e) {
|
|
720
|
-
|
|
741
|
+
mt(e, this.#i && this.#i.parent);
|
|
721
742
|
return;
|
|
722
743
|
}
|
|
723
|
-
typeof t == "object" && t && typeof t.then == "function" ? t.then(o, (e) =>
|
|
744
|
+
typeof t == "object" && t && typeof t.then == "function" ? t.then(o, (e) => mt(e, this.#i && this.#i.parent)) : o(t);
|
|
724
745
|
});
|
|
725
746
|
}
|
|
726
747
|
};
|
|
727
748
|
//#endregion
|
|
728
749
|
//#region node_modules/svelte/src/internal/client/reactivity/async.js
|
|
729
|
-
function
|
|
730
|
-
let i =
|
|
750
|
+
function qt(e, t, n, r) {
|
|
751
|
+
let i = ct() ? Zt : $t;
|
|
731
752
|
var a = e.filter((e) => !e.settled);
|
|
732
753
|
if (n.length === 0 && a.length === 0) {
|
|
733
754
|
r(t.map(i));
|
|
734
755
|
return;
|
|
735
756
|
}
|
|
736
|
-
var o = C, s =
|
|
757
|
+
var o = C, s = Jt(), c = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
|
|
737
758
|
function l(e) {
|
|
738
759
|
s();
|
|
739
760
|
try {
|
|
740
761
|
r(e);
|
|
741
762
|
} catch (e) {
|
|
742
|
-
o.f & 16384 ||
|
|
763
|
+
o.f & 16384 || mt(e, o);
|
|
743
764
|
}
|
|
744
|
-
|
|
765
|
+
Yt();
|
|
745
766
|
}
|
|
746
767
|
if (n.length === 0) {
|
|
747
768
|
c.then(() => l(t.map(i)));
|
|
748
769
|
return;
|
|
749
770
|
}
|
|
750
|
-
var u =
|
|
771
|
+
var u = Xt();
|
|
751
772
|
function d() {
|
|
752
|
-
Promise.all(n.map((e) => /* @__PURE__ */
|
|
773
|
+
Promise.all(n.map((e) => /* @__PURE__ */ Qt(e))).then((e) => l([...t.map(i), ...e])).catch((e) => mt(e, o)).finally(() => u());
|
|
753
774
|
}
|
|
754
775
|
c ? c.then(() => {
|
|
755
|
-
s(), d(),
|
|
776
|
+
s(), d(), Yt();
|
|
756
777
|
}) : d();
|
|
757
778
|
}
|
|
758
|
-
function
|
|
779
|
+
function Jt() {
|
|
759
780
|
var e = C, t = S, n = b, r = x;
|
|
760
781
|
return function(i = !0) {
|
|
761
|
-
vr(e), _r(t),
|
|
782
|
+
vr(e), _r(t), at(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
|
|
762
783
|
};
|
|
763
784
|
}
|
|
764
|
-
function
|
|
765
|
-
vr(null), _r(null),
|
|
785
|
+
function Yt(e = !0) {
|
|
786
|
+
vr(null), _r(null), at(null), e && x?.deactivate();
|
|
766
787
|
}
|
|
767
|
-
function
|
|
788
|
+
function Xt() {
|
|
768
789
|
var e = C, t = e.b, n = x, r = t.is_rendered();
|
|
769
790
|
return t.update_pending_count(1, n), n.increment(r, e), (i = !1) => {
|
|
770
791
|
t.update_pending_count(-1, n), n.decrement(r, e, i);
|
|
771
792
|
};
|
|
772
793
|
}
|
|
773
794
|
/* @__NO_SIDE_EFFECTS__ */
|
|
774
|
-
function
|
|
775
|
-
var t = 2 | me
|
|
795
|
+
function Zt(e) {
|
|
796
|
+
var t = 2 | me;
|
|
776
797
|
return C !== null && (C.f |= xe), {
|
|
777
798
|
ctx: b,
|
|
778
799
|
deps: null,
|
|
779
800
|
effects: null,
|
|
780
|
-
equals:
|
|
801
|
+
equals: nt,
|
|
781
802
|
f: t,
|
|
782
803
|
fn: e,
|
|
783
804
|
reactions: null,
|
|
784
805
|
rv: 0,
|
|
785
806
|
v: p,
|
|
786
807
|
wv: 0,
|
|
787
|
-
parent:
|
|
808
|
+
parent: C,
|
|
788
809
|
ac: null
|
|
789
810
|
};
|
|
790
811
|
}
|
|
791
812
|
/* @__NO_SIDE_EFFECTS__ */
|
|
792
|
-
function
|
|
813
|
+
function Qt(e, t, n) {
|
|
793
814
|
let r = C;
|
|
794
815
|
r === null && Pe();
|
|
795
816
|
var i = void 0, a = ln(p), o = !S, s = /* @__PURE__ */ new Map();
|
|
@@ -797,13 +818,13 @@ function Zt(e, t, n) {
|
|
|
797
818
|
var t = C, n = fe();
|
|
798
819
|
i = n.promise;
|
|
799
820
|
try {
|
|
800
|
-
Promise.resolve(e()).then(n.resolve, n.reject).finally(
|
|
821
|
+
Promise.resolve(e()).then(n.resolve, n.reject).finally(Yt);
|
|
801
822
|
} catch (e) {
|
|
802
|
-
n.reject(e),
|
|
823
|
+
n.reject(e), Yt();
|
|
803
824
|
}
|
|
804
825
|
var c = x;
|
|
805
826
|
if (o) {
|
|
806
|
-
if (t.f & 32768) var l =
|
|
827
|
+
if (t.f & 32768) var l = Xt();
|
|
807
828
|
if (r.b.is_rendered()) s.get(c)?.reject(je), s.delete(c);
|
|
808
829
|
else {
|
|
809
830
|
for (let e of s.values()) e.reject(je);
|
|
@@ -838,41 +859,35 @@ function Zt(e, t, n) {
|
|
|
838
859
|
});
|
|
839
860
|
}
|
|
840
861
|
/* @__NO_SIDE_EFFECTS__ */
|
|
841
|
-
function Qt(e) {
|
|
842
|
-
let t = /* @__PURE__ */ Xt(e);
|
|
843
|
-
return t.equals = rt, t;
|
|
844
|
-
}
|
|
845
862
|
function $t(e) {
|
|
863
|
+
let t = /* @__PURE__ */ Zt(e);
|
|
864
|
+
return t.equals = it, t;
|
|
865
|
+
}
|
|
866
|
+
function en(e) {
|
|
846
867
|
var t = e.effects;
|
|
847
868
|
if (t !== null) {
|
|
848
869
|
e.effects = null;
|
|
849
870
|
for (var n = 0; n < t.length; n += 1) ir(t[n]);
|
|
850
871
|
}
|
|
851
872
|
}
|
|
852
|
-
function en(e) {
|
|
853
|
-
for (var t = e.parent; t !== null;) {
|
|
854
|
-
if (!(t.f & 2)) return t.f & 16384 ? null : t;
|
|
855
|
-
t = t.parent;
|
|
856
|
-
}
|
|
857
|
-
return null;
|
|
858
|
-
}
|
|
859
873
|
function tn(e) {
|
|
860
|
-
var t, n = C;
|
|
861
|
-
|
|
874
|
+
var t, n = C, r = e.parent;
|
|
875
|
+
if (!mr && r !== null && r.f & 24576) return Ke(), e.v;
|
|
876
|
+
vr(r);
|
|
862
877
|
try {
|
|
863
|
-
e.f &= ~we,
|
|
878
|
+
e.f &= ~we, en(e), t = Mr(e);
|
|
864
879
|
} finally {
|
|
865
880
|
vr(n);
|
|
866
881
|
}
|
|
867
882
|
return t;
|
|
868
883
|
}
|
|
869
884
|
function nn(e) {
|
|
870
|
-
var t =
|
|
871
|
-
if (!e.equals(
|
|
872
|
-
|
|
885
|
+
var t = tn(e);
|
|
886
|
+
if (!e.equals(t) && (e.wv = kr(), (!x?.is_fork || e.deps === null) && (x === null ? e.v = t : x.capture(e, t, !0), e.deps === null))) {
|
|
887
|
+
gt(e, pe);
|
|
873
888
|
return;
|
|
874
889
|
}
|
|
875
|
-
mr || (
|
|
890
|
+
mr || (Tt === null ? _t(e) : (Bn() || x?.is_fork) && Tt.set(e, t));
|
|
876
891
|
}
|
|
877
892
|
function rn(e) {
|
|
878
893
|
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(je), t.teardown = le, t.ac = null, Pr(t, 0), nr(t));
|
|
@@ -888,7 +903,7 @@ function ln(e, t) {
|
|
|
888
903
|
f: 0,
|
|
889
904
|
v: e,
|
|
890
905
|
reactions: null,
|
|
891
|
-
equals:
|
|
906
|
+
equals: nt,
|
|
892
907
|
rv: 0,
|
|
893
908
|
wv: 0
|
|
894
909
|
};
|
|
@@ -901,27 +916,26 @@ function un(e, t) {
|
|
|
901
916
|
/* @__NO_SIDE_EFFECTS__ */
|
|
902
917
|
function dn(e, t = !1, n = !0) {
|
|
903
918
|
let r = ln(e);
|
|
904
|
-
return t || (r.equals =
|
|
919
|
+
return t || (r.equals = it), u && n && b !== null && b.l !== null && (b.l.s ??= []).push(r), r;
|
|
905
920
|
}
|
|
906
921
|
function fn(e, t, n = !1) {
|
|
907
|
-
return S !== null && (!gr || S.f & 131072) &&
|
|
922
|
+
return S !== null && (!gr || S.f & 131072) && ct() && S.f & 4325394 && (yr === null || !_.call(yr, e)) && We(), pn(e, n ? _n(t) : t, At);
|
|
908
923
|
}
|
|
909
924
|
function pn(e, t, n = null) {
|
|
910
925
|
if (!e.equals(t)) {
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
if (i.capture(e, r), e.f & 2) {
|
|
926
|
+
sn.set(e, mr ? t : e.v);
|
|
927
|
+
var r = Nt.ensure();
|
|
928
|
+
if (r.capture(e, t), e.f & 2) {
|
|
915
929
|
let t = e;
|
|
916
|
-
e.f & 2048 && tn(t),
|
|
930
|
+
e.f & 2048 && tn(t), Tt === null && _t(t);
|
|
917
931
|
}
|
|
918
|
-
e.wv = kr(), gn(e, me, n),
|
|
932
|
+
e.wv = kr(), gn(e, me, n), ct() && C !== null && C.f & 1024 && !(C.f & 96) && (Cr === null ? wr([e]) : Cr.push(e)), !r.is_fork && on.size > 0 && !cn && mn();
|
|
919
933
|
}
|
|
920
934
|
return t;
|
|
921
935
|
}
|
|
922
936
|
function mn() {
|
|
923
937
|
cn = !1;
|
|
924
|
-
for (let e of on) e.f & 1024 &&
|
|
938
|
+
for (let e of on) e.f & 1024 && gt(e, he), Ar(e) && Fr(e);
|
|
925
939
|
on.clear();
|
|
926
940
|
}
|
|
927
941
|
function hn(e) {
|
|
@@ -929,16 +943,16 @@ function hn(e) {
|
|
|
929
943
|
}
|
|
930
944
|
function gn(e, t, n) {
|
|
931
945
|
var r = e.reactions;
|
|
932
|
-
if (r !== null) for (var i =
|
|
946
|
+
if (r !== null) for (var i = ct(), a = r.length, o = 0; o < a; o++) {
|
|
933
947
|
var s = r[o], c = s.f;
|
|
934
948
|
if (!(!i && s === C)) {
|
|
935
949
|
var l = (c & me) === 0;
|
|
936
|
-
if (l &&
|
|
950
|
+
if (l && gt(s, t), c & 2) {
|
|
937
951
|
var u = s;
|
|
938
|
-
|
|
952
|
+
Tt?.delete(u), c & 65536 || (c & 512 && (C === null || !(C.f & 2097152)) && (s.f |= we), gn(u, he, n));
|
|
939
953
|
} else if (l) {
|
|
940
954
|
var d = s;
|
|
941
|
-
c & 16 &&
|
|
955
|
+
c & 16 && It !== null && It.add(d), n === null ? Bt(d) : n.push(d);
|
|
942
956
|
}
|
|
943
957
|
}
|
|
944
958
|
}
|
|
@@ -1064,9 +1078,9 @@ function En(e, t) {
|
|
|
1064
1078
|
if (n === null) n = y.appendChild(Cn());
|
|
1065
1079
|
else if (t && n.nodeType !== 3) {
|
|
1066
1080
|
var r = Cn();
|
|
1067
|
-
return n?.before(r),
|
|
1081
|
+
return n?.before(r), Xe(r), r;
|
|
1068
1082
|
}
|
|
1069
|
-
return t && jn(n),
|
|
1083
|
+
return t && jn(n), Xe(n), n;
|
|
1070
1084
|
}
|
|
1071
1085
|
function Dn(e, t = 1, n = !1) {
|
|
1072
1086
|
let r = v ? y : e;
|
|
@@ -1075,17 +1089,17 @@ function Dn(e, t = 1, n = !1) {
|
|
|
1075
1089
|
if (n) {
|
|
1076
1090
|
if (r?.nodeType !== 3) {
|
|
1077
1091
|
var a = Cn();
|
|
1078
|
-
return r === null ? i?.after(a) : r.before(a),
|
|
1092
|
+
return r === null ? i?.after(a) : r.before(a), Xe(a), a;
|
|
1079
1093
|
}
|
|
1080
1094
|
jn(r);
|
|
1081
1095
|
}
|
|
1082
|
-
return
|
|
1096
|
+
return Xe(r), r;
|
|
1083
1097
|
}
|
|
1084
1098
|
function On(e) {
|
|
1085
1099
|
e.textContent = "";
|
|
1086
1100
|
}
|
|
1087
1101
|
function kn() {
|
|
1088
|
-
return !l ||
|
|
1102
|
+
return !l || It !== null ? !1 : (C.f & ve) !== 0;
|
|
1089
1103
|
}
|
|
1090
1104
|
function An(e, t, n) {
|
|
1091
1105
|
let r = n ? { is: n } : void 0;
|
|
@@ -1157,7 +1171,7 @@ function zn(e, t) {
|
|
|
1157
1171
|
};
|
|
1158
1172
|
x?.register_created_effect(r);
|
|
1159
1173
|
var i = r;
|
|
1160
|
-
if (e & 4)
|
|
1174
|
+
if (e & 4) kt === null ? Nt.ensure().schedule(r) : kt.push(r);
|
|
1161
1175
|
else if (t !== null) {
|
|
1162
1176
|
try {
|
|
1163
1177
|
Fr(r);
|
|
@@ -1177,7 +1191,7 @@ function Bn() {
|
|
|
1177
1191
|
}
|
|
1178
1192
|
function Vn(e) {
|
|
1179
1193
|
let t = zn(8, null);
|
|
1180
|
-
return
|
|
1194
|
+
return gt(t, pe), t.teardown = e, t;
|
|
1181
1195
|
}
|
|
1182
1196
|
function Hn(e) {
|
|
1183
1197
|
Ln("$effect");
|
|
@@ -1194,14 +1208,14 @@ function Wn(e) {
|
|
|
1194
1208
|
return Ln("$effect.pre"), zn(8 | Se, e);
|
|
1195
1209
|
}
|
|
1196
1210
|
function Gn(e) {
|
|
1197
|
-
|
|
1211
|
+
Nt.ensure();
|
|
1198
1212
|
let t = zn(64 | xe, e);
|
|
1199
1213
|
return () => {
|
|
1200
1214
|
ir(t);
|
|
1201
1215
|
};
|
|
1202
1216
|
}
|
|
1203
1217
|
function Kn(e) {
|
|
1204
|
-
|
|
1218
|
+
Nt.ensure();
|
|
1205
1219
|
let t = zn(64 | xe, e);
|
|
1206
1220
|
return (e = {}) => new Promise((n) => {
|
|
1207
1221
|
e.outro ? sr(t, () => {
|
|
@@ -1236,7 +1250,7 @@ function Yn() {
|
|
|
1236
1250
|
for (var t of e.l.$) {
|
|
1237
1251
|
t.deps();
|
|
1238
1252
|
var n = t.effect;
|
|
1239
|
-
n.f & 1024 && n.deps !== null &&
|
|
1253
|
+
n.f & 1024 && n.deps !== null && gt(n, he), Ar(n) && Fr(n), t.ran = !1;
|
|
1240
1254
|
}
|
|
1241
1255
|
});
|
|
1242
1256
|
}
|
|
@@ -1247,7 +1261,7 @@ function Zn(e, t = 0) {
|
|
|
1247
1261
|
return zn(8 | t, e);
|
|
1248
1262
|
}
|
|
1249
1263
|
function Qn(e, t = [], n = [], r = []) {
|
|
1250
|
-
|
|
1264
|
+
qt(r, t, n, (t) => {
|
|
1251
1265
|
zn(8, () => e(...t.map(w)));
|
|
1252
1266
|
});
|
|
1253
1267
|
}
|
|
@@ -1288,7 +1302,7 @@ function rr(e) {
|
|
|
1288
1302
|
}
|
|
1289
1303
|
function ir(e, t = !0) {
|
|
1290
1304
|
var n = !1;
|
|
1291
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (ar(e.nodes.start, e.nodes.end), n = !0),
|
|
1305
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (ar(e.nodes.start, e.nodes.end), n = !0), gt(e, ye), nr(e, t && !n), Pr(e, 0);
|
|
1292
1306
|
var r = e.nodes && e.nodes.t;
|
|
1293
1307
|
if (r !== null) for (let e of r) e.stop();
|
|
1294
1308
|
tr(e), e.f ^= ye, e.f |= _e;
|
|
@@ -1322,8 +1336,12 @@ function cr(e, t, n) {
|
|
|
1322
1336
|
var r = e.nodes && e.nodes.t;
|
|
1323
1337
|
if (r !== null) for (let e of r) (e.is_global || n) && t.push(e);
|
|
1324
1338
|
for (var i = e.first; i !== null;) {
|
|
1325
|
-
var a = i.next
|
|
1326
|
-
|
|
1339
|
+
var a = i.next;
|
|
1340
|
+
if (!(i.f & 64)) {
|
|
1341
|
+
var o = (i.f & 65536) != 0 || (i.f & 32) != 0 && (e.f & 16) != 0;
|
|
1342
|
+
cr(i, t, o ? n : !1);
|
|
1343
|
+
}
|
|
1344
|
+
i = a;
|
|
1327
1345
|
}
|
|
1328
1346
|
}
|
|
1329
1347
|
}
|
|
@@ -1332,7 +1350,7 @@ function lr(e) {
|
|
|
1332
1350
|
}
|
|
1333
1351
|
function ur(e, t) {
|
|
1334
1352
|
if (e.f & 8192) {
|
|
1335
|
-
e.f ^= ge, e.f & 1024 || (
|
|
1353
|
+
e.f ^= ge, e.f & 1024 || (gt(e, me), Nt.ensure().schedule(e));
|
|
1336
1354
|
for (var n = e.first; n !== null;) {
|
|
1337
1355
|
var r = n.next, i = (n.f & 65536) != 0 || (n.f & 32) != 0;
|
|
1338
1356
|
ur(n, i ? t : !1), n = r;
|
|
@@ -1384,7 +1402,7 @@ function Ar(e) {
|
|
|
1384
1402
|
var a = n[i];
|
|
1385
1403
|
if (Ar(a) && nn(a), a.wv > e.wv) return !0;
|
|
1386
1404
|
}
|
|
1387
|
-
t & 512 &&
|
|
1405
|
+
t & 512 && Tt === null && gt(e, pe);
|
|
1388
1406
|
}
|
|
1389
1407
|
return !1;
|
|
1390
1408
|
}
|
|
@@ -1392,12 +1410,12 @@ function jr(e, t, n = !0) {
|
|
|
1392
1410
|
var r = e.reactions;
|
|
1393
1411
|
if (r !== null && !(!l && yr !== null && _.call(yr, e))) for (var i = 0; i < r.length; i++) {
|
|
1394
1412
|
var a = r[i];
|
|
1395
|
-
a.f & 2 ? jr(a, t, !1) : t === a && (n ?
|
|
1413
|
+
a.f & 2 ? jr(a, t, !1) : t === a && (n ? gt(a, me) : a.f & 1024 && gt(a, he), Bt(a));
|
|
1396
1414
|
}
|
|
1397
1415
|
}
|
|
1398
1416
|
function Mr(e) {
|
|
1399
1417
|
var t = xr, n = Sr, r = Cr, i = S, a = yr, o = b, s = gr, c = Dr, l = e.f;
|
|
1400
|
-
xr = null, Sr = 0, Cr = null, S = l & 96 ? null : e, yr = null,
|
|
1418
|
+
xr = null, Sr = 0, Cr = null, S = l & 96 ? null : e, yr = null, at(e.ctx), gr = !1, Dr = ++Er, e.ac !== null && (Fn(() => {
|
|
1401
1419
|
e.ac.abort(je);
|
|
1402
1420
|
}), e.ac = null);
|
|
1403
1421
|
try {
|
|
@@ -1411,7 +1429,7 @@ function Mr(e) {
|
|
|
1411
1429
|
else e.deps = f = xr;
|
|
1412
1430
|
if (Bn() && e.f & 512) for (m = Sr; m < f.length; m++) (f[m].reactions ??= []).push(e);
|
|
1413
1431
|
} else !p && f !== null && Sr < f.length && (Pr(e, Sr), f.length = Sr);
|
|
1414
|
-
if (
|
|
1432
|
+
if (ct() && Cr !== null && !gr && f !== null && !(e.f & 6146)) for (m = 0; m < Cr.length; m++) jr(Cr[m], e);
|
|
1415
1433
|
if (i !== null && i !== e) {
|
|
1416
1434
|
if (Er++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Er;
|
|
1417
1435
|
if (t !== null) for (let e of t) e.rv = Er;
|
|
@@ -1419,9 +1437,9 @@ function Mr(e) {
|
|
|
1419
1437
|
}
|
|
1420
1438
|
return e.f & 8388608 && (e.f ^= De), d;
|
|
1421
1439
|
} catch (e) {
|
|
1422
|
-
return
|
|
1440
|
+
return pt(e);
|
|
1423
1441
|
} finally {
|
|
1424
|
-
e.f ^= Te, xr = t, Sr = n, Cr = r, S = i, yr = a,
|
|
1442
|
+
e.f ^= Te, xr = t, Sr = n, Cr = r, S = i, yr = a, at(o), gr = s, Dr = c;
|
|
1425
1443
|
}
|
|
1426
1444
|
}
|
|
1427
1445
|
function Nr(e, t) {
|
|
@@ -1435,7 +1453,7 @@ function Nr(e, t) {
|
|
|
1435
1453
|
}
|
|
1436
1454
|
if (n === null && t.f & 2 && (xr === null || !_.call(xr, t))) {
|
|
1437
1455
|
var a = t;
|
|
1438
|
-
a.f & 512 && (a.f ^= 512, a.f &= ~we),
|
|
1456
|
+
a.f & 512 && (a.f ^= 512, a.f &= ~we), a.v !== p && _t(a), rn(a), Pr(a, 0);
|
|
1439
1457
|
}
|
|
1440
1458
|
}
|
|
1441
1459
|
function Pr(e, t) {
|
|
@@ -1445,7 +1463,7 @@ function Pr(e, t) {
|
|
|
1445
1463
|
function Fr(e) {
|
|
1446
1464
|
var t = e.f;
|
|
1447
1465
|
if (!(t & 16384)) {
|
|
1448
|
-
|
|
1466
|
+
gt(e, pe);
|
|
1449
1467
|
var n = C, r = pr;
|
|
1450
1468
|
C = e, pr = !0;
|
|
1451
1469
|
try {
|
|
@@ -1461,7 +1479,7 @@ async function Ir() {
|
|
|
1461
1479
|
if (l) return new Promise((e) => {
|
|
1462
1480
|
requestAnimationFrame(() => e()), setTimeout(() => e());
|
|
1463
1481
|
});
|
|
1464
|
-
await Promise.resolve(),
|
|
1482
|
+
await Promise.resolve(), Pt();
|
|
1465
1483
|
}
|
|
1466
1484
|
function w(e) {
|
|
1467
1485
|
var t = (e.f & 2) != 0;
|
|
@@ -1484,7 +1502,7 @@ function w(e) {
|
|
|
1484
1502
|
var o = (i.f & 512) == 0 && !gr && S !== null && (pr || (S.f & 512) != 0), s = (i.f & ve) === 0;
|
|
1485
1503
|
Ar(i) && (o && (i.f |= 512), nn(i)), o && !s && (an(i), Lr(i));
|
|
1486
1504
|
}
|
|
1487
|
-
if (
|
|
1505
|
+
if (Tt?.has(e)) return Tt.get(e);
|
|
1488
1506
|
if (e.f & 8388608) throw e.v;
|
|
1489
1507
|
return e.v;
|
|
1490
1508
|
}
|
|
@@ -1539,7 +1557,7 @@ function Gr(e, t, n, r = {}) {
|
|
|
1539
1557
|
function i(e) {
|
|
1540
1558
|
if (r.capture || Jr.call(t, e), !e.cancelBubble) return Fn(() => n?.call(this, e));
|
|
1541
1559
|
}
|
|
1542
|
-
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ?
|
|
1560
|
+
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? dt(() => {
|
|
1543
1561
|
t.addEventListener(e, i, r);
|
|
1544
1562
|
}) : t.addEventListener(e, i, r), i;
|
|
1545
1563
|
}
|
|
@@ -1637,7 +1655,7 @@ function $r(e, t) {
|
|
|
1637
1655
|
function ei(e, t) {
|
|
1638
1656
|
if (v) {
|
|
1639
1657
|
var n = C;
|
|
1640
|
-
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = y),
|
|
1658
|
+
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = y), Ze();
|
|
1641
1659
|
return;
|
|
1642
1660
|
}
|
|
1643
1661
|
e !== null && e.before(t);
|
|
@@ -1660,17 +1678,17 @@ function ai(e, t) {
|
|
|
1660
1678
|
try {
|
|
1661
1679
|
for (var a = /* @__PURE__ */ wn(n); a && (a.nodeType !== 8 || a.data !== "[");) a = /* @__PURE__ */ Tn(a);
|
|
1662
1680
|
if (!a) throw f;
|
|
1663
|
-
|
|
1681
|
+
Ye(!0), Xe(a);
|
|
1664
1682
|
let r = si(e, {
|
|
1665
1683
|
...t,
|
|
1666
1684
|
anchor: a
|
|
1667
1685
|
});
|
|
1668
|
-
return
|
|
1686
|
+
return Ye(!1), r;
|
|
1669
1687
|
} catch (r) {
|
|
1670
1688
|
if (r instanceof Error && r.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw r;
|
|
1671
|
-
return r !== f && console.warn("Failed to hydrate: ", r), t.recover === !1 && Be(), Sn(), On(n),
|
|
1689
|
+
return r !== f && console.warn("Failed to hydrate: ", r), t.recover === !1 && Be(), Sn(), On(n), Ye(!1), ii(e, t);
|
|
1672
1690
|
} finally {
|
|
1673
|
-
|
|
1691
|
+
Ye(r), Xe(i);
|
|
1674
1692
|
}
|
|
1675
1693
|
}
|
|
1676
1694
|
var oi = /* @__PURE__ */ new Map();
|
|
@@ -1678,11 +1696,11 @@ function si(e, { target: t, anchor: n, props: r = {}, events: i, context: a, int
|
|
|
1678
1696
|
Sn();
|
|
1679
1697
|
var c = void 0, l = Kn(() => {
|
|
1680
1698
|
var o = n ?? t.appendChild(Cn());
|
|
1681
|
-
|
|
1682
|
-
|
|
1699
|
+
Gt(o, { pending: () => {} }, (t) => {
|
|
1700
|
+
ot({});
|
|
1683
1701
|
var n = b;
|
|
1684
|
-
if (a && (n.c = a), i && (r.$$events = i), v && Qr(t, null), c = e(t, r) || {}, v && (C.nodes.end = y, y === null || y.nodeType !== 8 || y.data !== "]")) throw
|
|
1685
|
-
|
|
1702
|
+
if (a && (n.c = a), i && (r.$$events = i), v && Qr(t, null), c = e(t, r) || {}, v && (C.nodes.end = y, y === null || y.nodeType !== 8 || y.data !== "]")) throw qe(), f;
|
|
1703
|
+
st();
|
|
1686
1704
|
}, s);
|
|
1687
1705
|
var l = /* @__PURE__ */ new Set(), u = (e) => {
|
|
1688
1706
|
for (var n = 0; n < e.length; n++) {
|
|
@@ -1816,14 +1834,14 @@ function hi(e) {
|
|
|
1816
1834
|
//#region node_modules/svelte/src/internal/client/dom/blocks/if.js
|
|
1817
1835
|
function gi(e, t, n = !1) {
|
|
1818
1836
|
var r;
|
|
1819
|
-
v && (r = y,
|
|
1837
|
+
v && (r = y, Ze());
|
|
1820
1838
|
var i = new ui(e), a = n ? be : 0;
|
|
1821
1839
|
function o(e, t) {
|
|
1822
1840
|
if (v) {
|
|
1823
|
-
var n =
|
|
1841
|
+
var n = tt(r);
|
|
1824
1842
|
if (e !== parseInt(n.substring(1))) {
|
|
1825
|
-
var a =
|
|
1826
|
-
|
|
1843
|
+
var a = et();
|
|
1844
|
+
Xe(a), i.anchor = a, Ye(!1), i.ensure(e, t), Ye(!0);
|
|
1827
1845
|
return;
|
|
1828
1846
|
}
|
|
1829
1847
|
}
|
|
@@ -1881,10 +1899,10 @@ function xi(e, t, n, r, i, a = null) {
|
|
|
1881
1899
|
var o = e, s = /* @__PURE__ */ new Map();
|
|
1882
1900
|
if (t & 4) {
|
|
1883
1901
|
var c = e;
|
|
1884
|
-
o = v ?
|
|
1902
|
+
o = v ? Xe(/* @__PURE__ */ wn(c)) : c.appendChild(Cn());
|
|
1885
1903
|
}
|
|
1886
|
-
v &&
|
|
1887
|
-
var l = null, u = /* @__PURE__ */
|
|
1904
|
+
v && Ze();
|
|
1905
|
+
var l = null, u = /* @__PURE__ */ $t(() => {
|
|
1888
1906
|
var e = n();
|
|
1889
1907
|
return h(e) ? e : e == null ? [] : ee(e);
|
|
1890
1908
|
}), d, f = /* @__PURE__ */ new Map(), p = !0;
|
|
@@ -1901,17 +1919,17 @@ function xi(e, t, n, r, i, a = null) {
|
|
|
1901
1919
|
d = w(u);
|
|
1902
1920
|
var e = d.length;
|
|
1903
1921
|
let c = !1;
|
|
1904
|
-
v &&
|
|
1922
|
+
v && tt(o) === "[!" != (e === 0) && (o = et(), Xe(o), Ye(!1), c = !0);
|
|
1905
1923
|
for (var h = /* @__PURE__ */ new Set(), _ = x, ee = kn(), te = 0; te < e; te += 1) {
|
|
1906
|
-
v && y.nodeType === 8 && y.data === "]" && (o = y, c = !0,
|
|
1924
|
+
v && y.nodeType === 8 && y.data === "]" && (o = y, c = !0, Ye(!1));
|
|
1907
1925
|
var ne = d[te], re = r(ne, te), ie = p ? null : s.get(re);
|
|
1908
1926
|
ie ? (ie.v && pn(ie.v, ne), ie.i && pn(ie.i, te), ee && _.unskip_effect(ie.e)) : (ie = wi(s, p ? o : bi ??= Cn(), ne, re, te, i, t, n), p || (ie.e.f |= Ce), s.set(re, ie)), h.add(re);
|
|
1909
1927
|
}
|
|
1910
|
-
if (e === 0 && a && !l && (p ? l = er(() => a(o)) : (l = er(() => a(bi ??= Cn())), l.f |= Ce)), e > h.size && Fe("", "", ""), v && e > 0 &&
|
|
1928
|
+
if (e === 0 && a && !l && (p ? l = er(() => a(o)) : (l = er(() => a(bi ??= Cn())), l.f |= Ce)), e > h.size && Fe("", "", ""), v && e > 0 && Xe(et()), !p) if (f.set(_, h), ee) {
|
|
1911
1929
|
for (let [e, t] of s) h.has(e) || _.skip_effect(t.e);
|
|
1912
1930
|
_.oncommit(m), _.ondiscard(g);
|
|
1913
1931
|
} else m(_);
|
|
1914
|
-
c &&
|
|
1932
|
+
c && Ye(!0), w(u);
|
|
1915
1933
|
}),
|
|
1916
1934
|
flags: t,
|
|
1917
1935
|
items: s,
|
|
@@ -1971,7 +1989,7 @@ function Ci(e, t, n, r, i) {
|
|
|
1971
1989
|
vi(e, oe, ce);
|
|
1972
1990
|
}
|
|
1973
1991
|
}
|
|
1974
|
-
a &&
|
|
1992
|
+
a && dt(() => {
|
|
1975
1993
|
if (d !== void 0) for (g of d) g.nodes?.a?.apply();
|
|
1976
1994
|
});
|
|
1977
1995
|
}
|
|
@@ -2080,7 +2098,7 @@ function Bi(e, t, n = t) {
|
|
|
2080
2098
|
}), (v && e.defaultValue !== e.value || zr(t) == null && e.value) && (n(Vi(e) ? Hi(e.value) : e.value), x !== null && r.add(x)), Zn(() => {
|
|
2081
2099
|
var n = t();
|
|
2082
2100
|
if (e === document.activeElement) {
|
|
2083
|
-
var i = l ?
|
|
2101
|
+
var i = l ? wt : x;
|
|
2084
2102
|
if (r.has(i)) return;
|
|
2085
2103
|
}
|
|
2086
2104
|
Vi(e) && n === Hi(e.value) || e.type === "date" && !n && !e.value || n !== e.value && (e.value = n ?? "");
|
|
@@ -2133,7 +2151,7 @@ function Ki(e = !1) {
|
|
|
2133
2151
|
if (!n) return;
|
|
2134
2152
|
let r = () => Br(t.s);
|
|
2135
2153
|
if (e) {
|
|
2136
|
-
let e = 0, n = {}, i = /* @__PURE__ */
|
|
2154
|
+
let e = 0, n = {}, i = /* @__PURE__ */ Zt(() => {
|
|
2137
2155
|
let r = !1, i = t.s;
|
|
2138
2156
|
for (let e in i) i[e] !== n[e] && (n[e] = i[e], r = !0);
|
|
2139
2157
|
return r && e++, e;
|
|
@@ -2165,7 +2183,7 @@ function Ji(e, t, n, r) {
|
|
|
2165
2183
|
d = re(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);
|
|
2166
2184
|
}
|
|
2167
2185
|
var p, m = !1;
|
|
2168
|
-
a ? [p, m] =
|
|
2186
|
+
a ? [p, m] = St(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = l(), d && (i && Ve(t), d(p)));
|
|
2169
2187
|
var h = i ? () => {
|
|
2170
2188
|
var n = e[t];
|
|
2171
2189
|
return n === void 0 ? l() : (c = !0, n);
|
|
@@ -2180,7 +2198,7 @@ function Ji(e, t, n, r) {
|
|
|
2180
2198
|
return arguments.length > 0 ? ((!i || !t || g || m) && d(t ? h() : e), e) : h();
|
|
2181
2199
|
});
|
|
2182
2200
|
}
|
|
2183
|
-
var _ = !1, ee = (n & 1 ?
|
|
2201
|
+
var _ = !1, ee = (n & 1 ? Zt : $t)(() => (_ = !1, h()));
|
|
2184
2202
|
a && w(ee);
|
|
2185
2203
|
var te = C;
|
|
2186
2204
|
return (function(e, t) {
|
|
@@ -2226,7 +2244,7 @@ var Xi = class {
|
|
|
2226
2244
|
intro: e.intro ?? !1,
|
|
2227
2245
|
recover: e.recover,
|
|
2228
2246
|
transformError: e.transformError
|
|
2229
|
-
}), !l && (!e?.props?.$$host || e.sync === !1) &&
|
|
2247
|
+
}), !l && (!e?.props?.$$host || e.sync === !1) && Pt(), this.#e = r.$$events;
|
|
2230
2248
|
for (let e of Object.keys(this.#t)) e === "$set" || e === "$destroy" || e === "$on" || ne(this, e, {
|
|
2231
2249
|
get() {
|
|
2232
2250
|
return this.#t[e];
|
|
@@ -19937,14 +19955,18 @@ var eC = class extends J {
|
|
|
19937
19955
|
_startPinning(e) {
|
|
19938
19956
|
if (!this.attachTo(e)) return !1;
|
|
19939
19957
|
let t = pC(e.target), n = e.limiter ? pC(e.limiter) : T.document.body;
|
|
19940
|
-
|
|
19958
|
+
if (this.listenTo(T.document, "scroll", (r, i) => {
|
|
19941
19959
|
let a = i.target, o = t && a.contains(t), s = n && a.contains(n);
|
|
19942
19960
|
(o || s || !t || !n) && this.attachTo(e);
|
|
19943
19961
|
}, { useCapture: !0 }), this.listenTo(T.window, "resize", () => {
|
|
19944
19962
|
this.attachTo(e);
|
|
19945
|
-
}), this._resizeObserver
|
|
19946
|
-
|
|
19947
|
-
|
|
19963
|
+
}), !this._resizeObserver && (t && j(t) && (t = t.parentElement), t)) {
|
|
19964
|
+
let e = () => {
|
|
19965
|
+
ll(t) || this.unpin();
|
|
19966
|
+
};
|
|
19967
|
+
this._resizeObserver = new nl(t, e);
|
|
19968
|
+
}
|
|
19969
|
+
return !0;
|
|
19948
19970
|
}
|
|
19949
19971
|
_stopPinning() {
|
|
19950
19972
|
this.stopListening(T.document, "scroll"), this.stopListening(T.window, "resize"), this._resizeObserver &&= (this._resizeObserver.destroy(), null);
|
|
@@ -31369,7 +31391,8 @@ var ZM = class extends If {
|
|
|
31369
31391
|
e.plugins.has("ImageBlockEditing") || t === "block" && O("image-block-plugin-required"), e.plugins.has("ImageInlineEditing") || t === "inline" && O("image-inline-plugin-required");
|
|
31370
31392
|
}
|
|
31371
31393
|
refresh() {
|
|
31372
|
-
|
|
31394
|
+
let e = this.editor.plugins.get("ImageUtils");
|
|
31395
|
+
this.isEnabled = e.isImageAllowed();
|
|
31373
31396
|
}
|
|
31374
31397
|
execute(e) {
|
|
31375
31398
|
let t = P(e.source), n = this.editor.model.document.selection, r = this.editor.plugins.get("ImageUtils"), i = Object.fromEntries(n.getAttributes());
|
|
@@ -40127,8 +40150,8 @@ var Rz = class extends K {
|
|
|
40127
40150
|
super(e), this.order = t.order || "below";
|
|
40128
40151
|
}
|
|
40129
40152
|
refresh() {
|
|
40130
|
-
let e = this.editor.model.document.selection;
|
|
40131
|
-
this.isEnabled =
|
|
40153
|
+
let e = this.editor.model.document.selection, t = !!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(e).length;
|
|
40154
|
+
this.isEnabled = t;
|
|
40132
40155
|
}
|
|
40133
40156
|
execute() {
|
|
40134
40157
|
let e = this.editor, t = e.model.document.selection, n = e.plugins.get("TableUtils"), r = this.order === "above", i = n.getSelectionAffectedTableCells(t), a = n.getRowIndexes(i), o = r ? a.first : a.last, s = i[0].findAncestor("table");
|
|
@@ -40143,8 +40166,8 @@ var Rz = class extends K {
|
|
|
40143
40166
|
super(e), this.order = t.order || "right";
|
|
40144
40167
|
}
|
|
40145
40168
|
refresh() {
|
|
40146
|
-
let e = this.editor.model.document.selection;
|
|
40147
|
-
this.isEnabled =
|
|
40169
|
+
let e = this.editor.model.document.selection, t = !!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(e).length;
|
|
40170
|
+
this.isEnabled = t;
|
|
40148
40171
|
}
|
|
40149
40172
|
execute() {
|
|
40150
40173
|
let e = this.editor, t = e.model.document.selection, n = e.plugins.get("TableUtils"), r = this.order === "left", i = n.getSelectionAffectedTableCells(t), a = n.getColumnIndexes(i), o = r ? a.first : a.last, s = i[0].findAncestor("table");
|
|
@@ -40159,7 +40182,8 @@ var Rz = class extends K {
|
|
|
40159
40182
|
super(e), this.direction = t.direction || "horizontally";
|
|
40160
40183
|
}
|
|
40161
40184
|
refresh() {
|
|
40162
|
-
|
|
40185
|
+
let e = this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);
|
|
40186
|
+
this.isEnabled = e.length === 1;
|
|
40163
40187
|
}
|
|
40164
40188
|
execute() {
|
|
40165
40189
|
let e = this.editor.plugins.get("TableUtils"), t = e.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];
|
|
@@ -40220,8 +40244,8 @@ var Kz = class extends K {
|
|
|
40220
40244
|
refresh() {
|
|
40221
40245
|
let e = this.editor.plugins.get("TableUtils"), t = e.getSelectionAffectedTableCells(this.editor.model.document.selection), n = t[0];
|
|
40222
40246
|
if (n) {
|
|
40223
|
-
let r = n.findAncestor("table"), i = e.getRows(r) - 1, a = e.getRowIndexes(t);
|
|
40224
|
-
this.isEnabled = !
|
|
40247
|
+
let r = n.findAncestor("table"), i = e.getRows(r) - 1, a = e.getRowIndexes(t), o = a.first === 0 && a.last === i;
|
|
40248
|
+
this.isEnabled = !o;
|
|
40225
40249
|
} else this.isEnabled = !1;
|
|
40226
40250
|
}
|
|
40227
40251
|
execute() {
|
|
@@ -40777,7 +40801,8 @@ var _B = class extends K {
|
|
|
40777
40801
|
super(e), this.affectsData = !1;
|
|
40778
40802
|
}
|
|
40779
40803
|
refresh() {
|
|
40780
|
-
|
|
40804
|
+
let e = this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);
|
|
40805
|
+
this.isEnabled = e.length > 0;
|
|
40781
40806
|
}
|
|
40782
40807
|
execute() {
|
|
40783
40808
|
let e = this.editor.model, t = this.editor.plugins.get("TableUtils"), n = t.getSelectionAffectedTableCells(e.document.selection), r = t.getRowIndexes(n), i = n[0].findAncestor("table"), a = [];
|
|
@@ -40791,7 +40816,8 @@ var _B = class extends K {
|
|
|
40791
40816
|
super(e), this.affectsData = !1;
|
|
40792
40817
|
}
|
|
40793
40818
|
refresh() {
|
|
40794
|
-
|
|
40819
|
+
let e = this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);
|
|
40820
|
+
this.isEnabled = e.length > 0;
|
|
40795
40821
|
}
|
|
40796
40822
|
execute() {
|
|
40797
40823
|
let e = this.editor.plugins.get("TableUtils"), t = this.editor.model, n = e.getSelectionAffectedTableCells(t.document.selection), r = n[0], i = n.pop(), a = r.findAncestor("table"), o = e.getCellLocation(r), s = e.getCellLocation(i), c = Math.min(o.column, s.column), l = Math.max(o.column, s.column), u = [];
|
|
@@ -41900,7 +41926,6 @@ var aV = class extends G {
|
|
|
41900
41926
|
}), e.model.schema.extend("$block", { allowAttributes: ["dir", "alignment"] }), e.model.schema.register("div", {
|
|
41901
41927
|
inheritAllFrom: "$container",
|
|
41902
41928
|
allowIn: ["$root", "$block"],
|
|
41903
|
-
allowContentOf: "$block",
|
|
41904
41929
|
allowAttributes: ["dir", "alignment"]
|
|
41905
41930
|
}), e.conversion.attributeToAttribute({
|
|
41906
41931
|
model: "dir",
|
|
@@ -42364,7 +42389,7 @@ var hV = class {
|
|
|
42364
42389
|
}
|
|
42365
42390
|
}, gV = /* @__PURE__ */ $r("<div></div>");
|
|
42366
42391
|
function _V(e, t) {
|
|
42367
|
-
|
|
42392
|
+
ot(t, !1);
|
|
42368
42393
|
let n = Ji(t, "csrfToken", 12, ""), r = Ji(t, "insertImageServiceUrl", 12, ""), i = Ji(t, "items", 28, () => /* @__PURE__ */ "undo.redo.|.heading.bold.italic.strikethrough.underline.fontColor.fontBackgroundColor.fontFamily.fontSize.|.numberedList.bulletedList.|.outdent.indent.blockQuote.|.alignment.|.link.imageUpload.mediaEmbed.horizontalLine.specialCharacters.code.codeBlock.insertTable.|.style.|.removeFormat.selectAll.|.sourceEditing.|.textDirection".split(".")), a = Ji(t, "allowHtmlSupport", 12, !1), o = Ji(t, "value", 12, ""), s = Ji(t, "placeHolder", 12, ""), c = Ji(t, "lang", 12, null), l = Ji(t, "valueChange", 12, (e, t) => {}), u = Ji(t, "stateChange", 12, (e, t) => {}), d = Ji(t, "sourceEditingModeChange", 12, (e, t) => {}), f = Ji(t, "selectionRangeChange", 12, (e, t) => {}), p = () => w(m), m = /* @__PURE__ */ dn(null), h = /* @__PURE__ */ dn(null);
|
|
42369
42394
|
fi(() => {
|
|
42370
42395
|
w(m) != null && w(m).destroy();
|
|
@@ -42703,72 +42728,72 @@ function _V(e, t) {
|
|
|
42703
42728
|
return n();
|
|
42704
42729
|
},
|
|
42705
42730
|
set csrfToken(e) {
|
|
42706
|
-
n(e),
|
|
42731
|
+
n(e), Pt();
|
|
42707
42732
|
},
|
|
42708
42733
|
get insertImageServiceUrl() {
|
|
42709
42734
|
return r();
|
|
42710
42735
|
},
|
|
42711
42736
|
set insertImageServiceUrl(e) {
|
|
42712
|
-
r(e),
|
|
42737
|
+
r(e), Pt();
|
|
42713
42738
|
},
|
|
42714
42739
|
get items() {
|
|
42715
42740
|
return i();
|
|
42716
42741
|
},
|
|
42717
42742
|
set items(e) {
|
|
42718
|
-
i(e),
|
|
42743
|
+
i(e), Pt();
|
|
42719
42744
|
},
|
|
42720
42745
|
get allowHtmlSupport() {
|
|
42721
42746
|
return a();
|
|
42722
42747
|
},
|
|
42723
42748
|
set allowHtmlSupport(e) {
|
|
42724
|
-
a(e),
|
|
42749
|
+
a(e), Pt();
|
|
42725
42750
|
},
|
|
42726
42751
|
get value() {
|
|
42727
42752
|
return o();
|
|
42728
42753
|
},
|
|
42729
42754
|
set value(e) {
|
|
42730
|
-
o(e),
|
|
42755
|
+
o(e), Pt();
|
|
42731
42756
|
},
|
|
42732
42757
|
get placeHolder() {
|
|
42733
42758
|
return s();
|
|
42734
42759
|
},
|
|
42735
42760
|
set placeHolder(e) {
|
|
42736
|
-
s(e),
|
|
42761
|
+
s(e), Pt();
|
|
42737
42762
|
},
|
|
42738
42763
|
get lang() {
|
|
42739
42764
|
return c();
|
|
42740
42765
|
},
|
|
42741
42766
|
set lang(e) {
|
|
42742
|
-
c(e),
|
|
42767
|
+
c(e), Pt();
|
|
42743
42768
|
},
|
|
42744
42769
|
get valueChange() {
|
|
42745
42770
|
return l();
|
|
42746
42771
|
},
|
|
42747
42772
|
set valueChange(e) {
|
|
42748
|
-
l(e),
|
|
42773
|
+
l(e), Pt();
|
|
42749
42774
|
},
|
|
42750
42775
|
get stateChange() {
|
|
42751
42776
|
return u();
|
|
42752
42777
|
},
|
|
42753
42778
|
set stateChange(e) {
|
|
42754
|
-
u(e),
|
|
42779
|
+
u(e), Pt();
|
|
42755
42780
|
},
|
|
42756
42781
|
get sourceEditingModeChange() {
|
|
42757
42782
|
return d();
|
|
42758
42783
|
},
|
|
42759
42784
|
set sourceEditingModeChange(e) {
|
|
42760
|
-
d(e),
|
|
42785
|
+
d(e), Pt();
|
|
42761
42786
|
},
|
|
42762
42787
|
get selectionRangeChange() {
|
|
42763
42788
|
return f();
|
|
42764
42789
|
},
|
|
42765
42790
|
set selectionRangeChange(e) {
|
|
42766
|
-
f(e),
|
|
42791
|
+
f(e), Pt();
|
|
42767
42792
|
}
|
|
42768
42793
|
};
|
|
42769
42794
|
Ki();
|
|
42770
42795
|
var le = gV();
|
|
42771
|
-
return Gi(le, (e) => fn(h, e), () => w(h)), ei(e, le), Ui(t, "getEditor", p), Ui(t, "setCursorPositionAtPlaceholder", oe), Ui(t, "setSelectionFromRangeJSONString", se),
|
|
42796
|
+
return Gi(le, (e) => fn(h, e), () => w(h)), ei(e, le), Ui(t, "getEditor", p), Ui(t, "setCursorPositionAtPlaceholder", oe), Ui(t, "setSelectionFromRangeJSONString", se), st(ce);
|
|
42772
42797
|
}
|
|
42773
42798
|
customElements.define("ckeditor5-classic", ea(_V, {
|
|
42774
42799
|
csrfToken: {},
|
|
@@ -42788,4 +42813,4 @@ customElements.define("ckeditor5-classic", ea(_V, {
|
|
|
42788
42813
|
"setSelectionFromRangeJSONString"
|
|
42789
42814
|
]));
|
|
42790
42815
|
//#endregion
|
|
42791
|
-
export {
|
|
42816
|
+
export { Pt as C, Qe as E, Dn as S, ot as T, w as _, Bi as a, Mn as b, ki as c, gi as d, mi as f, Kr as g, $r as h, Ki as i, xi as l, ei as m, ea as n, Ii as o, ri as p, Ji as r, Mi as s, _V as t, _i as u, zr as v, st as w, En as x, Qn as y };
|