@pie-element/simple-cloze 0.1.4-next.16 → 0.1.4-next.18
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/author/index.js +146 -144
- package/dist/author/index.js.map +1 -1
- package/dist/browser/author/index.js +1 -1
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/{client-C4zbv8nl.js → client-e4ZTphpa.js} +727 -712
- package/dist/browser/client-e4ZTphpa.js.map +1 -0
- package/dist/browser/delivery/index.js +2 -2
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/editor-runtime/author/index.js +1 -1
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/{client-C4zbv8nl.js → client-e4ZTphpa.js} +727 -712
- package/dist/browser/editor-runtime/client-e4ZTphpa.js.map +1 -0
- package/dist/browser/editor-runtime/delivery/index.js +2 -2
- package/dist/browser/editor-runtime/delivery/index.js.map +1 -1
- package/dist/browser/editor-runtime/{i18n-C7YV9VIN.js → i18n-D6nL3i8G.js} +168 -172
- package/dist/browser/editor-runtime/i18n-D6nL3i8G.js.map +1 -0
- package/dist/browser/editor-runtime/print/index.js +2 -2
- package/dist/browser/editor-runtime/print/index.js.map +1 -1
- package/dist/browser/{i18n-C7YV9VIN.js → i18n-D6nL3i8G.js} +168 -172
- package/dist/browser/i18n-D6nL3i8G.js.map +1 -0
- package/dist/browser/print/index.js +2 -2
- package/dist/browser/print/index.js.map +1 -1
- package/dist/delivery/index.js +146 -148
- package/dist/delivery/index.js.map +1 -1
- package/dist/index.iife.js +4 -4
- package/dist/print/index.js +144 -146
- package/dist/print/index.js.map +1 -1
- package/module/print.js +729 -718
- package/module/print.js.map +1 -1
- package/package.json +3 -3
- package/dist/browser/client-C4zbv8nl.js.map +0 -1
- package/dist/browser/editor-runtime/client-C4zbv8nl.js.map +0 -1
- package/dist/browser/editor-runtime/i18n-C7YV9VIN.js.map +0 -1
- package/dist/browser/i18n-C7YV9VIN.js.map +0 -1
package/module/print.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
1
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/disclose-version.js
|
|
2
2
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
|
|
3
3
|
//#endregion
|
|
4
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
4
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/constants.js
|
|
5
5
|
var e = {}, t = Symbol("uninitialized"), n = "http://www.w3.org/1999/xhtml", r = "http://www.w3.org/2000/svg", i = "http://www.w3.org/1998/Math/MathML", a = Array.isArray, o = Array.prototype.indexOf, s = Array.prototype.includes, c = Array.from, l = Object.keys, u = Object.defineProperty, d = Object.getOwnPropertyDescriptor, f = Object.getOwnPropertyDescriptors, p = Object.prototype, m = Array.prototype, h = Object.getPrototypeOf, g = Object.isExtensible, ee = () => {};
|
|
6
6
|
function _(e) {
|
|
7
7
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
@@ -16,46 +16,46 @@ function v() {
|
|
|
16
16
|
reject: t
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
var y = 1024, b = 2048, te = 4096, ne = 8192, re = 16384, x = 32768, S = 1 << 25, ie = 65536, ae = 1 << 19, oe = 1 << 20, se =
|
|
19
|
+
var y = 1024, b = 2048, te = 4096, ne = 8192, re = 16384, x = 32768, S = 1 << 25, ie = 65536, ae = 1 << 19, oe = 1 << 20, se = 1 << 21, ce = 1 << 22, le = 1 << 23, ue = Symbol("$state"), de = Symbol("component"), fe = Symbol("legacy props"), pe = Symbol(""), me = Symbol("attributes"), he = Symbol("class"), ge = Symbol("style"), _e = Symbol("text"), ve = new class extends Error {
|
|
20
20
|
name = "StaleReactionError";
|
|
21
21
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
22
|
-
}(),
|
|
23
|
-
function
|
|
22
|
+
}(), ye = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
23
|
+
function be() {
|
|
24
24
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function xe(e) {
|
|
27
27
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Se() {
|
|
30
30
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
33
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
34
34
|
var C = !1;
|
|
35
|
-
function
|
|
35
|
+
function Ce(e) {
|
|
36
36
|
C = e;
|
|
37
37
|
}
|
|
38
38
|
var w;
|
|
39
39
|
function T(t) {
|
|
40
|
-
if (t === null) throw
|
|
40
|
+
if (t === null) throw xe(), e;
|
|
41
41
|
return w = t;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function we() {
|
|
44
44
|
return T(/* @__PURE__ */ F(w));
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Te(t) {
|
|
47
47
|
if (C) {
|
|
48
|
-
if (/* @__PURE__ */ F(w) !== null) throw
|
|
48
|
+
if (/* @__PURE__ */ F(w) !== null) throw xe(), e;
|
|
49
49
|
w = t;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Ee(e = 1) {
|
|
53
53
|
if (C) {
|
|
54
54
|
for (var t = e, n = w; t--;) n = /* @__PURE__ */ F(n);
|
|
55
55
|
w = n;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function De(e = !0) {
|
|
59
59
|
for (var t = 0, n = w;;) {
|
|
60
60
|
if (n.nodeType === 8) {
|
|
61
61
|
var r = n.data;
|
|
@@ -68,63 +68,63 @@ function Oe(e = !0) {
|
|
|
68
68
|
e && n.remove(), n = i;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
if (!t || t.nodeType !== 8) throw
|
|
71
|
+
function Oe(t) {
|
|
72
|
+
if (!t || t.nodeType !== 8) throw xe(), e;
|
|
73
73
|
return t.data;
|
|
74
74
|
}
|
|
75
75
|
//#endregion
|
|
76
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
77
|
-
function
|
|
76
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
77
|
+
function ke(e) {
|
|
78
78
|
return e === this.v;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Ae(e, t) {
|
|
81
81
|
return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return !
|
|
83
|
+
function je(e) {
|
|
84
|
+
return !Ae(e, this.v);
|
|
85
85
|
}
|
|
86
86
|
//#endregion
|
|
87
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
88
|
-
function
|
|
87
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/errors.js
|
|
88
|
+
function Me() {
|
|
89
89
|
throw Error("https://svelte.dev/e/async_derived_orphan");
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Ne(e) {
|
|
92
92
|
throw Error("https://svelte.dev/e/effect_in_teardown");
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Pe() {
|
|
95
95
|
throw Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function Fe(e) {
|
|
98
98
|
throw Error("https://svelte.dev/e/effect_orphan");
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Ie() {
|
|
101
101
|
throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Le() {
|
|
104
104
|
throw Error("https://svelte.dev/e/hydration_failed");
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Re(e) {
|
|
107
107
|
throw Error("https://svelte.dev/e/props_invalid_value");
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function ze() {
|
|
110
110
|
throw Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Be() {
|
|
113
113
|
throw Error("https://svelte.dev/e/state_prototype_fixed");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function Ve() {
|
|
116
116
|
throw Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function He() {
|
|
119
119
|
throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
120
120
|
}
|
|
121
121
|
//#endregion
|
|
122
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
122
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/context.js
|
|
123
123
|
var E = null;
|
|
124
|
-
function
|
|
124
|
+
function Ue(e) {
|
|
125
125
|
E = e;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function We(e, t = !1, n) {
|
|
128
128
|
E = {
|
|
129
129
|
p: E,
|
|
130
130
|
i: !1,
|
|
@@ -136,70 +136,56 @@ function Ge(e, t = !1, n) {
|
|
|
136
136
|
l: null
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function Ge(e) {
|
|
140
140
|
var t = E, n = t.e;
|
|
141
141
|
if (n !== null) {
|
|
142
142
|
t.e = null;
|
|
143
|
-
for (var r of n)
|
|
143
|
+
for (var r of n) fn(r);
|
|
144
144
|
}
|
|
145
|
-
return e !== void 0 && (t.x = e), t.i = !0, E = t.p,
|
|
145
|
+
return e !== void 0 && (t.x = e), t.i = !0, E = t.p, Ke(e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
return u(e,
|
|
147
|
+
function Ke(e = {}) {
|
|
148
|
+
return u(e, de, { value: !0 }), e;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function qe() {
|
|
151
151
|
return !0;
|
|
152
152
|
}
|
|
153
153
|
//#endregion
|
|
154
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
155
|
-
var
|
|
156
|
-
function
|
|
157
|
-
var e =
|
|
158
|
-
|
|
159
|
-
}
|
|
160
|
-
function
|
|
161
|
-
if (
|
|
162
|
-
var t =
|
|
154
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/task.js
|
|
155
|
+
var Je = [];
|
|
156
|
+
function Ye() {
|
|
157
|
+
var e = Je;
|
|
158
|
+
Je = [], _(e);
|
|
159
|
+
}
|
|
160
|
+
function Xe(e) {
|
|
161
|
+
if (Je.length === 0 && !yt) {
|
|
162
|
+
var t = Je;
|
|
163
163
|
queueMicrotask(() => {
|
|
164
|
-
t ===
|
|
164
|
+
t === Je && Ye();
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
|
-
|
|
167
|
+
Je.push(e);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
for (;
|
|
169
|
+
function Ze() {
|
|
170
|
+
for (; Je.length > 0;) Ye();
|
|
171
171
|
}
|
|
172
172
|
//#endregion
|
|
173
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
174
|
-
var
|
|
173
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/status.js
|
|
174
|
+
var Qe = ~(b | te | y);
|
|
175
175
|
function D(e, t) {
|
|
176
|
-
e.f = e.f &
|
|
176
|
+
e.f = e.f & Qe | t;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function $e(e) {
|
|
179
179
|
e.f & 512 || e.deps === null ? D(e, y) : D(e, te);
|
|
180
180
|
}
|
|
181
181
|
//#endregion
|
|
182
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
183
|
-
function
|
|
184
|
-
|
|
185
|
-
}
|
|
186
|
-
function nt(e, t, n) {
|
|
187
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), tt(e.deps), D(e, y);
|
|
182
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/utils.js
|
|
183
|
+
function et(e, t, n) {
|
|
184
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), D(e, y);
|
|
188
185
|
}
|
|
189
186
|
//#endregion
|
|
190
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
191
|
-
|
|
192
|
-
function it(e) {
|
|
193
|
-
var t = rt;
|
|
194
|
-
try {
|
|
195
|
-
return rt = !1, [e(), rt];
|
|
196
|
-
} finally {
|
|
197
|
-
rt = t;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
//#endregion
|
|
201
|
-
//#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
|
|
202
|
-
function at(e) {
|
|
187
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
|
|
188
|
+
function tt(e) {
|
|
203
189
|
var t = V, n = W;
|
|
204
190
|
U(null), G(null);
|
|
205
191
|
try {
|
|
@@ -209,15 +195,15 @@ function at(e) {
|
|
|
209
195
|
}
|
|
210
196
|
}
|
|
211
197
|
//#endregion
|
|
212
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
213
|
-
function
|
|
214
|
-
let i =
|
|
198
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/async.js
|
|
199
|
+
function nt(e, t, n, r) {
|
|
200
|
+
let i = qe() ? ot : ut;
|
|
215
201
|
var a = e.filter((e) => !e.settled), o = t.map(i);
|
|
216
202
|
if (n.length === 0 && a.length === 0) {
|
|
217
203
|
r(o);
|
|
218
204
|
return;
|
|
219
205
|
}
|
|
220
|
-
var s = W, c =
|
|
206
|
+
var s = W, c = rt(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
|
|
221
207
|
function u(e) {
|
|
222
208
|
if (!(s.f & 16384)) {
|
|
223
209
|
c();
|
|
@@ -226,44 +212,44 @@ function ot(e, t, n, r) {
|
|
|
226
212
|
} catch (e) {
|
|
227
213
|
I(e, s);
|
|
228
214
|
}
|
|
229
|
-
|
|
215
|
+
it();
|
|
230
216
|
}
|
|
231
217
|
}
|
|
232
|
-
var d =
|
|
218
|
+
var d = at();
|
|
233
219
|
if (n.length === 0) {
|
|
234
220
|
l.then(() => u([])).finally(d);
|
|
235
221
|
return;
|
|
236
222
|
}
|
|
237
223
|
function f() {
|
|
238
|
-
Promise.all(n.map((e) => /* @__PURE__ */
|
|
224
|
+
Promise.all(n.map((e) => /* @__PURE__ */ ct(e))).then(u).catch((e) => I(e, s)).finally(d);
|
|
239
225
|
}
|
|
240
226
|
l ? l.then(() => {
|
|
241
|
-
c(), f(),
|
|
227
|
+
c(), f(), it();
|
|
242
228
|
}) : f();
|
|
243
229
|
}
|
|
244
|
-
function
|
|
230
|
+
function rt() {
|
|
245
231
|
var e = W, t = V, n = E, r = O;
|
|
246
232
|
return function(i = !0) {
|
|
247
|
-
G(e), U(t),
|
|
233
|
+
G(e), U(t), Ue(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
|
|
248
234
|
};
|
|
249
235
|
}
|
|
250
|
-
function
|
|
251
|
-
G(null), U(null),
|
|
236
|
+
function it(e = !0) {
|
|
237
|
+
G(null), U(null), Ue(null), e && O?.deactivate();
|
|
252
238
|
}
|
|
253
|
-
function
|
|
239
|
+
function at() {
|
|
254
240
|
var e = W, t = e.b, n = O, r = !!t?.is_rendered();
|
|
255
241
|
return t?.update_pending_count(1, n), n.increment(r, e), () => {
|
|
256
242
|
t?.update_pending_count(-1, n), n.decrement(r, e);
|
|
257
243
|
};
|
|
258
244
|
}
|
|
259
245
|
/*#__NO_SIDE_EFFECTS__*/
|
|
260
|
-
function
|
|
246
|
+
function ot(e) {
|
|
261
247
|
var n = 2 | b;
|
|
262
248
|
return W !== null && (W.f |= ae), {
|
|
263
249
|
ctx: E,
|
|
264
250
|
deps: null,
|
|
265
251
|
effects: null,
|
|
266
|
-
equals:
|
|
252
|
+
equals: ke,
|
|
267
253
|
f: n,
|
|
268
254
|
fn: e,
|
|
269
255
|
reactions: null,
|
|
@@ -274,35 +260,35 @@ function ut(e) {
|
|
|
274
260
|
ac: null
|
|
275
261
|
};
|
|
276
262
|
}
|
|
277
|
-
var
|
|
263
|
+
var st = Symbol("obsolete");
|
|
278
264
|
/*#__NO_SIDE_EFFECTS__*/
|
|
279
|
-
function
|
|
265
|
+
function ct(e, n, r) {
|
|
280
266
|
let i = W;
|
|
281
|
-
i === null &&
|
|
282
|
-
var a = void 0, o =
|
|
283
|
-
return
|
|
267
|
+
i === null && Me();
|
|
268
|
+
var a = void 0, o = It(t), s = !V, c = /* @__PURE__ */ new Set();
|
|
269
|
+
return gn(() => {
|
|
284
270
|
var t = W, n = v();
|
|
285
271
|
a = n.promise;
|
|
286
272
|
try {
|
|
287
273
|
Promise.resolve(e()).then(n.resolve, (e) => {
|
|
288
|
-
e !==
|
|
289
|
-
}).finally(
|
|
274
|
+
e !== ve && n.reject(e);
|
|
275
|
+
}).finally(it);
|
|
290
276
|
} catch (e) {
|
|
291
|
-
n.reject(e),
|
|
277
|
+
n.reject(e), it();
|
|
292
278
|
}
|
|
293
279
|
var r = O;
|
|
294
280
|
if (s) {
|
|
295
|
-
if (t.f & 32768) var l =
|
|
296
|
-
if (i.b?.is_rendered()) r.async_deriveds.get(t)?.reject(
|
|
297
|
-
else for (let e of c.values()) e.reject(
|
|
281
|
+
if (t.f & 32768) var l = at();
|
|
282
|
+
if (i.b?.is_rendered()) r.async_deriveds.get(t)?.reject(st);
|
|
283
|
+
else for (let e of c.values()) e.reject(st);
|
|
298
284
|
c.add(n), r.async_deriveds.set(t, n);
|
|
299
285
|
}
|
|
300
286
|
let u = (e, t = void 0) => {
|
|
301
|
-
l?.(), c.delete(n), t !==
|
|
287
|
+
l?.(), c.delete(n), t !== st && (r.activate(), t ? (o.f |= le, Bt(o, t)) : (o.f & 8388608 && (o.f ^= le), Bt(o, e)), r.deactivate());
|
|
302
288
|
};
|
|
303
289
|
n.promise.then(u, (e) => u(null, e || "unknown"));
|
|
304
|
-
}),
|
|
305
|
-
for (let e of c) e.reject(
|
|
290
|
+
}), un(() => {
|
|
291
|
+
for (let e of c) e.reject(st);
|
|
306
292
|
}), new Promise((e) => {
|
|
307
293
|
function t(n) {
|
|
308
294
|
function r() {
|
|
@@ -314,53 +300,53 @@ function ft(e, n, r) {
|
|
|
314
300
|
});
|
|
315
301
|
}
|
|
316
302
|
/*#__NO_SIDE_EFFECTS__*/
|
|
317
|
-
function
|
|
318
|
-
let t = /* @__PURE__ */
|
|
319
|
-
return
|
|
303
|
+
function lt(e) {
|
|
304
|
+
let t = /* @__PURE__ */ ot(e);
|
|
305
|
+
return Nn(t), t;
|
|
320
306
|
}
|
|
321
307
|
/*#__NO_SIDE_EFFECTS__*/
|
|
322
|
-
function
|
|
323
|
-
let t = /* @__PURE__ */
|
|
324
|
-
return t.equals =
|
|
308
|
+
function ut(e) {
|
|
309
|
+
let t = /* @__PURE__ */ ot(e);
|
|
310
|
+
return t.equals = je, t;
|
|
325
311
|
}
|
|
326
|
-
function
|
|
312
|
+
function dt(e) {
|
|
327
313
|
var t = e.effects;
|
|
328
314
|
if (t !== null) {
|
|
329
315
|
e.effects = null;
|
|
330
316
|
for (var n = 0; n < t.length; n += 1) z(t[n]);
|
|
331
317
|
}
|
|
332
318
|
}
|
|
333
|
-
function
|
|
319
|
+
function ft(e) {
|
|
334
320
|
var n, r = W, i = e.parent;
|
|
335
|
-
if (!B && i !== null && e.v !== t && i.f & 24576) return
|
|
321
|
+
if (!B && i !== null && e.v !== t && i.f & 24576) return be(), e.v;
|
|
336
322
|
G(i);
|
|
337
323
|
try {
|
|
338
|
-
|
|
324
|
+
dt(e), n = Hn(e);
|
|
339
325
|
} finally {
|
|
340
326
|
G(r);
|
|
341
327
|
}
|
|
342
328
|
return n;
|
|
343
329
|
}
|
|
344
|
-
function
|
|
345
|
-
var t =
|
|
346
|
-
if (!e.equals(t) && (e.wv =
|
|
330
|
+
function pt(e) {
|
|
331
|
+
var t = ft(e);
|
|
332
|
+
if (!e.equals(t) && (e.wv = zn(), (!O?.is_fork || e.deps === null) && (O === null ? e.v = t : (O.capture(e, t, !0), _t?.capture(e, t, !0)), e.deps === null))) {
|
|
347
333
|
D(e, y);
|
|
348
334
|
return;
|
|
349
335
|
}
|
|
350
|
-
B || (k === null ?
|
|
336
|
+
B || (k === null ? $e(e) : (ln() || O?.is_fork) && k.set(e, t));
|
|
351
337
|
}
|
|
352
|
-
function
|
|
353
|
-
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null &&
|
|
354
|
-
t.ac.abort(
|
|
355
|
-
}), t.fn !== null && (t.teardown = ee),
|
|
338
|
+
function mt(e) {
|
|
339
|
+
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && tt(() => {
|
|
340
|
+
t.ac.abort(ve), t.ac = null;
|
|
341
|
+
}), t.fn !== null && (t.teardown = ee), Gn(t, 0), xn(t));
|
|
356
342
|
}
|
|
357
|
-
function
|
|
358
|
-
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null &&
|
|
343
|
+
function ht(e) {
|
|
344
|
+
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Kn(t);
|
|
359
345
|
}
|
|
360
346
|
//#endregion
|
|
361
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
362
|
-
var
|
|
363
|
-
id =
|
|
347
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
348
|
+
var gt = null, O = null, _t = null, k = null, vt = null, yt = !1, bt = !1, xt = null, St = null, Ct = 0, wt = 1, Tt = class e {
|
|
349
|
+
id = wt++;
|
|
364
350
|
#e = !1;
|
|
365
351
|
linked = !0;
|
|
366
352
|
#t = null;
|
|
@@ -382,7 +368,7 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
|
|
|
382
368
|
is_fork = !1;
|
|
383
369
|
#m = !1;
|
|
384
370
|
constructor() {
|
|
385
|
-
|
|
371
|
+
gt === null ? gt = this : (gt.#n = this, this.#t = gt), gt = this;
|
|
386
372
|
}
|
|
387
373
|
#h() {
|
|
388
374
|
if (this.is_fork) return !0;
|
|
@@ -414,48 +400,67 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
|
|
|
414
400
|
this.#p.add(e);
|
|
415
401
|
}
|
|
416
402
|
#g() {
|
|
417
|
-
|
|
403
|
+
var e = [];
|
|
404
|
+
for (let i of this.#c) if (!(i.f & 16384 || !(i.f & 6144))) {
|
|
405
|
+
for (var t = i, n = !1; t.parent !== null;) {
|
|
406
|
+
t = t.parent;
|
|
407
|
+
var r = t.f;
|
|
408
|
+
if (r & 96) {
|
|
409
|
+
if (!(r & 1024)) {
|
|
410
|
+
n = !0;
|
|
411
|
+
break;
|
|
412
|
+
}
|
|
413
|
+
t.f ^= y;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
n || e.push(t);
|
|
417
|
+
}
|
|
418
|
+
return this.#c = [], e;
|
|
419
|
+
}
|
|
420
|
+
#_() {
|
|
421
|
+
this.#e = !0;
|
|
418
422
|
for (let e of this.#u) this.#d.delete(e), D(e, b), this.schedule(e);
|
|
419
423
|
for (let e of this.#d) D(e, te), this.schedule(e);
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
424
|
+
this.apply();
|
|
425
|
+
for (var t = xt = [], n = [], r = St = []; this.#c.length > 0;) {
|
|
426
|
+
Ct++ > 1e3 && (this.#S(), Dt());
|
|
427
|
+
for (let e of this.#g()) try {
|
|
428
|
+
this.#v(e, t, n);
|
|
429
|
+
} catch (t) {
|
|
430
|
+
throw Nt(e), this.#h() || this.discard(), t;
|
|
431
|
+
}
|
|
427
432
|
}
|
|
428
|
-
if (O = null,
|
|
429
|
-
var
|
|
430
|
-
for (let e of
|
|
433
|
+
if (O = null, r.length > 0) {
|
|
434
|
+
var i = e.ensure();
|
|
435
|
+
for (let e of r) i.schedule(e);
|
|
431
436
|
}
|
|
432
|
-
if (
|
|
433
|
-
this.#
|
|
434
|
-
for (let [e, t] of this.#f)
|
|
435
|
-
|
|
437
|
+
if (xt = null, St = null, this.#h()) {
|
|
438
|
+
this.#x(n), this.#x(t);
|
|
439
|
+
for (let [e, t] of this.#f) Mt(e, t);
|
|
440
|
+
r.length > 0 && O.#_();
|
|
436
441
|
return;
|
|
437
442
|
}
|
|
438
|
-
let
|
|
439
|
-
if (
|
|
440
|
-
this.#
|
|
443
|
+
let a = this.#y();
|
|
444
|
+
if (a) {
|
|
445
|
+
this.#x(n), this.#x(t), a.#b(this);
|
|
441
446
|
return;
|
|
442
447
|
}
|
|
443
448
|
this.#u.clear(), this.#d.clear();
|
|
444
449
|
for (let e of this.#r) e(this);
|
|
445
|
-
this.#r.clear(),
|
|
446
|
-
var
|
|
447
|
-
if (this.#a === 0 && (this.#c.length === 0 ||
|
|
448
|
-
let e
|
|
449
|
-
|
|
450
|
-
} else
|
|
451
|
-
|
|
452
|
-
}
|
|
453
|
-
#
|
|
450
|
+
this.#r.clear(), _t = this, Ot(n), Ot(t), _t = null, this.#s?.resolve();
|
|
451
|
+
var o = O;
|
|
452
|
+
if (this.#a === 0 && (this.#c.length === 0 || o !== null) && this.#S(), this.#c.length > 0) if (o !== null) {
|
|
453
|
+
for (let e of this.#c) o.#c.push(e);
|
|
454
|
+
this.#c = [];
|
|
455
|
+
} else o = this;
|
|
456
|
+
o !== null && (j.clear(), o.#_());
|
|
457
|
+
}
|
|
458
|
+
#v(e, t, n) {
|
|
454
459
|
e.f ^= y;
|
|
455
460
|
for (var r = e.first; r !== null;) {
|
|
456
461
|
var i = r.f, a = (i & 96) != 0;
|
|
457
462
|
if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
|
|
458
|
-
a ? r.f ^= y : i & 4 ? t.push(r) :
|
|
463
|
+
a ? r.f ^= y : i & 4 ? t.push(r) : Bn(r) && (i & 16 && this.#d.add(r), Kn(r));
|
|
459
464
|
var o = r.first;
|
|
460
465
|
if (o !== null) {
|
|
461
466
|
r = o;
|
|
@@ -472,7 +477,7 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
|
|
|
472
477
|
}
|
|
473
478
|
}
|
|
474
479
|
}
|
|
475
|
-
#
|
|
480
|
+
#y() {
|
|
476
481
|
for (var e = this.#t; e !== null;) {
|
|
477
482
|
if (!e.is_fork) {
|
|
478
483
|
for (let [t, [, n]] of this.current) if (e.current.has(t) && !n) return e;
|
|
@@ -481,7 +486,7 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
|
|
|
481
486
|
}
|
|
482
487
|
return null;
|
|
483
488
|
}
|
|
484
|
-
#
|
|
489
|
+
#b(e) {
|
|
485
490
|
for (let [t, n] of e.current) !this.previous.has(t) && e.previous.has(t) && this.previous.set(t, e.previous.get(t)), this.current.set(t, n);
|
|
486
491
|
for (let [t, n] of e.async_deriveds) {
|
|
487
492
|
let e = this.async_deriveds.get(t);
|
|
@@ -500,10 +505,10 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
|
|
|
500
505
|
}
|
|
501
506
|
};
|
|
502
507
|
for (let e of this.current.keys()) t(e);
|
|
503
|
-
this.oncommit(() => e.discard()), e.#
|
|
508
|
+
this.oncommit(() => e.discard()), e.#S(), O = this, this.#_();
|
|
504
509
|
}
|
|
505
|
-
#
|
|
506
|
-
for (var t = 0; t < e.length; t += 1)
|
|
510
|
+
#x(e) {
|
|
511
|
+
for (var t = 0; t < e.length; t += 1) et(e[t], this.#u, this.#d);
|
|
507
512
|
}
|
|
508
513
|
capture(e, n, r = !1) {
|
|
509
514
|
e.v !== t && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [n, r]), k?.set(e, n)), this.is_fork || (e.v = n);
|
|
@@ -516,16 +521,16 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
|
|
|
516
521
|
}
|
|
517
522
|
flush() {
|
|
518
523
|
try {
|
|
519
|
-
|
|
524
|
+
bt = !0, O = this, this.#_();
|
|
520
525
|
} finally {
|
|
521
|
-
|
|
526
|
+
Ct = 0, vt = null, xt = null, St = null, bt = !1, O = null, k = null, j.clear();
|
|
522
527
|
}
|
|
523
528
|
}
|
|
524
529
|
discard() {
|
|
525
530
|
for (let e of this.#i) e(this);
|
|
526
531
|
this.#i.clear();
|
|
527
|
-
for (let e of this.async_deriveds.values()) e.reject(
|
|
528
|
-
this.#
|
|
532
|
+
for (let e of this.async_deriveds.values()) e.reject(st);
|
|
533
|
+
this.#S(), this.#s?.resolve();
|
|
529
534
|
}
|
|
530
535
|
register_created_effect(e) {
|
|
531
536
|
this.#l.push(e);
|
|
@@ -541,7 +546,7 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
|
|
|
541
546
|
let e = this.#o.get(t) ?? 0;
|
|
542
547
|
e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
|
|
543
548
|
}
|
|
544
|
-
this.#m || (this.#m = !0,
|
|
549
|
+
this.#m || (this.#m = !0, Xe(() => {
|
|
545
550
|
this.#m = !1, this.linked && this.flush();
|
|
546
551
|
}));
|
|
547
552
|
}
|
|
@@ -562,7 +567,7 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
|
|
|
562
567
|
static ensure() {
|
|
563
568
|
if (O === null) {
|
|
564
569
|
let t = O = new e();
|
|
565
|
-
!
|
|
570
|
+
!bt && !yt && Xe(() => {
|
|
566
571
|
t.#e || t.flush();
|
|
567
572
|
});
|
|
568
573
|
}
|
|
@@ -572,55 +577,46 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
|
|
|
572
577
|
k = null;
|
|
573
578
|
}
|
|
574
579
|
schedule(e) {
|
|
575
|
-
if (
|
|
580
|
+
if (vt = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
|
|
576
581
|
e.b.defer_effect(e);
|
|
577
582
|
return;
|
|
578
583
|
}
|
|
579
|
-
|
|
580
|
-
t = t.parent;
|
|
581
|
-
var n = t.f;
|
|
582
|
-
if (Tt !== null && t === W && (V === null || !(V.f & 2))) return;
|
|
583
|
-
if (n & 96) {
|
|
584
|
-
if (!(n & 1024)) return;
|
|
585
|
-
t.f ^= y;
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
this.#c.push(t);
|
|
584
|
+
this.#c.push(e);
|
|
589
585
|
}
|
|
590
|
-
#
|
|
586
|
+
#S() {
|
|
591
587
|
if (this.linked) {
|
|
592
588
|
var e = this.#t, t = this.#n;
|
|
593
|
-
e === null || (e.#n = t), t === null ?
|
|
589
|
+
e === null || (e.#n = t), t === null ? gt = e : t.#t = e, this.linked = !1;
|
|
594
590
|
}
|
|
595
591
|
}
|
|
596
592
|
};
|
|
597
|
-
function
|
|
598
|
-
var t =
|
|
599
|
-
|
|
593
|
+
function Et(e) {
|
|
594
|
+
var t = yt;
|
|
595
|
+
yt = !0;
|
|
600
596
|
try {
|
|
601
597
|
var n;
|
|
602
598
|
for (e && (O !== null && !O.is_fork && O.flush(), n = e());;) {
|
|
603
|
-
if (
|
|
599
|
+
if (Ze(), O === null) return n;
|
|
604
600
|
O.flush();
|
|
605
601
|
}
|
|
606
602
|
} finally {
|
|
607
|
-
|
|
603
|
+
yt = t;
|
|
608
604
|
}
|
|
609
605
|
}
|
|
610
|
-
function
|
|
606
|
+
function Dt() {
|
|
611
607
|
try {
|
|
612
|
-
|
|
608
|
+
Ie();
|
|
613
609
|
} catch (e) {
|
|
614
|
-
I(e,
|
|
610
|
+
I(e, vt);
|
|
615
611
|
}
|
|
616
612
|
}
|
|
617
613
|
var A = null;
|
|
618
|
-
function
|
|
614
|
+
function Ot(e) {
|
|
619
615
|
var t = e.length;
|
|
620
616
|
if (t !== 0) {
|
|
621
617
|
for (var n = 0; n < t;) {
|
|
622
618
|
var r = e[n++];
|
|
623
|
-
if (!(r.f & 24576) &&
|
|
619
|
+
if (!(r.f & 24576) && Bn(r) && (A = /* @__PURE__ */ new Set(), Kn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && wn(r), A?.size > 0)) {
|
|
624
620
|
j.clear();
|
|
625
621
|
for (let e of A) {
|
|
626
622
|
if (e.f & 24576) continue;
|
|
@@ -628,7 +624,7 @@ function Mt(e) {
|
|
|
628
624
|
for (; n !== null;) A.has(n) && (A.delete(n), t.push(n)), n = n.parent;
|
|
629
625
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
630
626
|
let n = t[e];
|
|
631
|
-
n.f & 24576 ||
|
|
627
|
+
n.f & 24576 || Kn(n);
|
|
632
628
|
}
|
|
633
629
|
}
|
|
634
630
|
A.clear();
|
|
@@ -637,120 +633,128 @@ function Mt(e) {
|
|
|
637
633
|
A = null;
|
|
638
634
|
}
|
|
639
635
|
}
|
|
640
|
-
function
|
|
636
|
+
function kt(e, t, n, r) {
|
|
641
637
|
if (!n.has(e) && (n.add(e), e.reactions !== null)) for (let i of e.reactions) {
|
|
642
638
|
let e = i.f;
|
|
643
|
-
e & 2 ?
|
|
639
|
+
e & 2 ? kt(i, t, n, r) : e & 4194320 && !(e & 2048) && At(i, t, r) && (D(i, b), jt(i));
|
|
644
640
|
}
|
|
645
641
|
}
|
|
646
|
-
function
|
|
642
|
+
function At(e, t, n) {
|
|
647
643
|
let r = n.get(e);
|
|
648
644
|
if (r !== void 0) return r;
|
|
649
645
|
if (e.deps !== null) for (let r of e.deps) {
|
|
650
646
|
if (s.call(t, r)) return !0;
|
|
651
|
-
if (r.f & 2 &&
|
|
647
|
+
if (r.f & 2 && At(r, t, n)) return n.set(r, !0), !0;
|
|
652
648
|
}
|
|
653
649
|
return n.set(e, !1), !1;
|
|
654
650
|
}
|
|
655
|
-
function
|
|
651
|
+
function jt(e) {
|
|
656
652
|
O.schedule(e);
|
|
657
653
|
}
|
|
658
|
-
function
|
|
654
|
+
function Mt(e, t) {
|
|
659
655
|
if (!(e.f & 32 && e.f & 1024)) {
|
|
660
656
|
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), D(e, y);
|
|
661
|
-
for (var n = e.first; n !== null;)
|
|
657
|
+
for (var n = e.first; n !== null;) Mt(n, t), n = n.next;
|
|
662
658
|
}
|
|
663
659
|
}
|
|
664
|
-
function
|
|
660
|
+
function Nt(e) {
|
|
665
661
|
D(e, y);
|
|
666
|
-
for (var t = e.first; t !== null;)
|
|
662
|
+
for (var t = e.first; t !== null;) Nt(t), t = t.next;
|
|
667
663
|
}
|
|
668
664
|
//#endregion
|
|
669
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
670
|
-
var
|
|
671
|
-
function
|
|
665
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/sources.js
|
|
666
|
+
var Pt = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Map(), Ft = !1;
|
|
667
|
+
function It(e, t) {
|
|
672
668
|
return {
|
|
673
669
|
f: 0,
|
|
674
670
|
v: e,
|
|
675
671
|
reactions: null,
|
|
676
|
-
equals:
|
|
672
|
+
equals: ke,
|
|
677
673
|
rv: 0,
|
|
678
674
|
wv: 0
|
|
679
675
|
};
|
|
680
676
|
}
|
|
681
677
|
/*#__NO_SIDE_EFFECTS__*/
|
|
682
678
|
function M(e, t) {
|
|
683
|
-
let n =
|
|
684
|
-
return
|
|
679
|
+
let n = It(e, t);
|
|
680
|
+
return Nn(n), n;
|
|
685
681
|
}
|
|
686
682
|
/*#__NO_SIDE_EFFECTS__*/
|
|
687
|
-
function
|
|
688
|
-
let r =
|
|
689
|
-
return t || (r.equals =
|
|
683
|
+
function Lt(e, t = !1, n = !0) {
|
|
684
|
+
let r = It(e);
|
|
685
|
+
return t || (r.equals = je), r;
|
|
690
686
|
}
|
|
691
687
|
function N(e, t, n = !1) {
|
|
692
|
-
return V !== null && (!H || V.f & 131072) &&
|
|
688
|
+
return V !== null && (!H || V.f & 131072) && qe() && V.f & 4325394 && (K === null || !K.has(e)) && Ve(), Bt(e, n ? Wt(t) : t, St);
|
|
693
689
|
}
|
|
694
|
-
|
|
690
|
+
var Rt = null, zt = 0;
|
|
691
|
+
function Bt(e, t, n = null) {
|
|
695
692
|
if (!e.equals(t)) {
|
|
696
693
|
B ? j.set(e, t) : j.has(e) || j.set(e, e.v);
|
|
697
|
-
var r =
|
|
694
|
+
var r = Tt.ensure();
|
|
698
695
|
if (r.capture(e, t), e.f & 2) {
|
|
699
696
|
let t = e;
|
|
700
|
-
e.f & 2048 &&
|
|
697
|
+
e.f & 2048 && ft(t), k === null && $e(t);
|
|
701
698
|
}
|
|
702
|
-
e.wv =
|
|
699
|
+
e.wv = zn(), Rt = null, zt = 0, Ut(e, b, n), Rt = null, qe() && W !== null && W.f & 1024 && !(W.f & 96) && (Y === null ? Pn([e]) : Y.push(e)), !r.is_fork && Pt.size > 0 && !Ft && Vt();
|
|
703
700
|
}
|
|
704
701
|
return t;
|
|
705
702
|
}
|
|
706
|
-
function
|
|
707
|
-
|
|
708
|
-
for (let e of
|
|
703
|
+
function Vt() {
|
|
704
|
+
Ft = !1;
|
|
705
|
+
for (let e of Pt) {
|
|
709
706
|
e.f & 1024 && D(e, te);
|
|
710
707
|
let t;
|
|
711
708
|
try {
|
|
712
|
-
t =
|
|
709
|
+
t = Bn(e);
|
|
713
710
|
} catch {
|
|
714
711
|
t = !0;
|
|
715
712
|
}
|
|
716
|
-
t &&
|
|
713
|
+
t && Kn(e);
|
|
717
714
|
}
|
|
718
|
-
|
|
715
|
+
Pt.clear();
|
|
719
716
|
}
|
|
720
|
-
function
|
|
717
|
+
function Ht(e) {
|
|
721
718
|
N(e, e.v + 1);
|
|
722
719
|
}
|
|
723
|
-
function
|
|
720
|
+
function Ut(e, t, n) {
|
|
724
721
|
var r = e.reactions;
|
|
725
|
-
if (r !== null)
|
|
726
|
-
var
|
|
727
|
-
if (
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
var
|
|
735
|
-
|
|
722
|
+
if (r !== null) {
|
|
723
|
+
var i = qe(), a = r.length;
|
|
724
|
+
if (zt += a, zt > 1e5 && Rt === null && (Rt = /* @__PURE__ */ new Set()), Rt !== null) {
|
|
725
|
+
if (Rt.has(e)) return;
|
|
726
|
+
Rt.add(e);
|
|
727
|
+
}
|
|
728
|
+
for (var o = 0; o < a; o++) {
|
|
729
|
+
var s = r[o], c = s.f;
|
|
730
|
+
if (!(!i && s === W)) {
|
|
731
|
+
var l = (c & b) === 0;
|
|
732
|
+
if (l && D(s, t), c & 131072) Pt.add(s);
|
|
733
|
+
else if (c & 2) {
|
|
734
|
+
var u = s;
|
|
735
|
+
k?.delete(u), Ut(u, te, n);
|
|
736
|
+
} else if (l) {
|
|
737
|
+
var d = s;
|
|
738
|
+
c & 16 && A !== null && A.add(d), n === null ? jt(d) : n.push(d);
|
|
739
|
+
}
|
|
736
740
|
}
|
|
737
741
|
}
|
|
738
742
|
}
|
|
739
743
|
}
|
|
740
|
-
function
|
|
741
|
-
if (typeof e != "object" || !e ||
|
|
744
|
+
function Wt(e) {
|
|
745
|
+
if (typeof e != "object" || !e || ue in e || de in e) return e;
|
|
742
746
|
let n = h(e);
|
|
743
747
|
if (n !== p && n !== m) return e;
|
|
744
|
-
var r = /* @__PURE__ */ new Map(), i = a(e), o = /* @__PURE__ */ M(0), s = null, c =
|
|
745
|
-
if (
|
|
746
|
-
var t = V, n =
|
|
747
|
-
U(null),
|
|
748
|
+
var r = /* @__PURE__ */ new Map(), i = a(e), o = /* @__PURE__ */ M(0), s = null, c = Ln, l = (e) => {
|
|
749
|
+
if (Ln === c) return e();
|
|
750
|
+
var t = V, n = Ln;
|
|
751
|
+
U(null), Rn(c);
|
|
748
752
|
var r = e();
|
|
749
|
-
return U(t),
|
|
753
|
+
return U(t), Rn(n), r;
|
|
750
754
|
};
|
|
751
755
|
return i && r.set("length", /* @__PURE__ */ M(e.length, s)), new Proxy(e, {
|
|
752
756
|
defineProperty(e, t, n) {
|
|
753
|
-
(!("value" in n) || n.configurable === !1 || n.enumerable === !1 || n.writable === !1) &&
|
|
757
|
+
(!("value" in n) || n.configurable === !1 || n.enumerable === !1 || n.writable === !1) && ze();
|
|
754
758
|
var i = r.get(t);
|
|
755
759
|
return i === void 0 ? l(() => {
|
|
756
760
|
var e = /* @__PURE__ */ M(n.value, s);
|
|
@@ -762,40 +766,40 @@ function Kt(e) {
|
|
|
762
766
|
if (i === void 0) {
|
|
763
767
|
if (n in e) {
|
|
764
768
|
let e = l(() => /* @__PURE__ */ M(t, s));
|
|
765
|
-
r.set(n, e),
|
|
769
|
+
r.set(n, e), Ht(o);
|
|
766
770
|
}
|
|
767
|
-
} else N(i, t),
|
|
771
|
+
} else N(i, t), Ht(o);
|
|
768
772
|
return !0;
|
|
769
773
|
},
|
|
770
774
|
get(n, i, a) {
|
|
771
|
-
if (i ===
|
|
775
|
+
if (i === ue) return e;
|
|
772
776
|
var o = r.get(i), c = i in n;
|
|
773
|
-
if (o === void 0 && (!c || d(n, i)?.writable) && (o = l(() => /* @__PURE__ */ M(
|
|
777
|
+
if (o === void 0 && (!c || d(n, i)?.writable) && (o = l(() => /* @__PURE__ */ M(Wt(c ? n[i] : t), s)), r.set(i, o)), o !== void 0) {
|
|
774
778
|
var u = X(o);
|
|
775
779
|
return u === t ? void 0 : u;
|
|
776
780
|
}
|
|
777
781
|
return Reflect.get(n, i, a);
|
|
778
782
|
},
|
|
779
783
|
getOwnPropertyDescriptor(e, n) {
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
784
|
+
this.has?.(e, n);
|
|
785
|
+
var i = Reflect.getOwnPropertyDescriptor(e, n), a = r.get(n);
|
|
786
|
+
if (a !== void 0) {
|
|
787
|
+
var o = X(a);
|
|
788
|
+
if (o === t) return;
|
|
789
|
+
if (i && "value" in i) i.value = o;
|
|
790
|
+
else return {
|
|
787
791
|
enumerable: !0,
|
|
788
792
|
configurable: !0,
|
|
789
|
-
value:
|
|
793
|
+
value: o,
|
|
790
794
|
writable: !0
|
|
791
795
|
};
|
|
792
796
|
}
|
|
793
797
|
return i;
|
|
794
798
|
},
|
|
795
799
|
has(e, n) {
|
|
796
|
-
if (n ===
|
|
800
|
+
if (n === ue) return !0;
|
|
797
801
|
var i = r.get(n), a = i !== void 0 && i.v !== t || Reflect.has(e, n);
|
|
798
|
-
return (i !== void 0 || W !== null && (!a || d(e, n)?.writable)) && (i === void 0 && (i = l(() => /* @__PURE__ */ M(a ?
|
|
802
|
+
return (i !== void 0 || W !== null && (!a || d(e, n)?.writable)) && (i === void 0 && (i = l(() => /* @__PURE__ */ M(a ? Wt(e[n]) : t, s)), r.set(n, i)), X(i) === t) ? !1 : a;
|
|
799
803
|
},
|
|
800
804
|
set(e, n, a, c) {
|
|
801
805
|
var u = r.get(n), f = n in e;
|
|
@@ -803,10 +807,10 @@ function Kt(e) {
|
|
|
803
807
|
var m = r.get(p + "");
|
|
804
808
|
m === void 0 ? p in e && (m = l(() => /* @__PURE__ */ M(t, s)), r.set(p + "", m)) : N(m, t);
|
|
805
809
|
}
|
|
806
|
-
if (u === void 0) (!f || d(e, n)?.writable) && (u = l(() => /* @__PURE__ */ M(void 0, s)), N(u,
|
|
810
|
+
if (u === void 0) (!f || d(e, n)?.writable) && (u = l(() => /* @__PURE__ */ M(void 0, s)), N(u, Wt(a)), r.set(n, u));
|
|
807
811
|
else {
|
|
808
812
|
f = u.v !== t;
|
|
809
|
-
var h = l(() =>
|
|
813
|
+
var h = l(() => Wt(a));
|
|
810
814
|
N(u, h);
|
|
811
815
|
}
|
|
812
816
|
var g = Reflect.getOwnPropertyDescriptor(e, n);
|
|
@@ -815,7 +819,7 @@ function Kt(e) {
|
|
|
815
819
|
var ee = r.get("length"), _ = Number(n);
|
|
816
820
|
Number.isInteger(_) && _ >= ee.v && N(ee, _ + 1);
|
|
817
821
|
}
|
|
818
|
-
|
|
822
|
+
Ht(o);
|
|
819
823
|
}
|
|
820
824
|
return !0;
|
|
821
825
|
},
|
|
@@ -829,88 +833,88 @@ function Kt(e) {
|
|
|
829
833
|
return n;
|
|
830
834
|
},
|
|
831
835
|
setPrototypeOf() {
|
|
832
|
-
|
|
836
|
+
Be();
|
|
833
837
|
}
|
|
834
838
|
});
|
|
835
839
|
}
|
|
836
|
-
var
|
|
837
|
-
function
|
|
838
|
-
if (
|
|
839
|
-
|
|
840
|
+
var Gt, Kt, qt, Jt;
|
|
841
|
+
function Yt() {
|
|
842
|
+
if (Gt === void 0) {
|
|
843
|
+
Gt = window, Kt = /Firefox/.test(navigator.userAgent);
|
|
840
844
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
841
|
-
|
|
845
|
+
qt = d(t, "firstChild").get, Jt = d(t, "nextSibling").get, g(e) && (e[he] = void 0, e[me] = null, e[ge] = void 0, e.__e = void 0), g(n) && (n[_e] = void 0);
|
|
842
846
|
}
|
|
843
847
|
}
|
|
844
|
-
function
|
|
848
|
+
function Xt(e = "") {
|
|
845
849
|
return document.createTextNode(e);
|
|
846
850
|
}
|
|
847
851
|
/*@__NO_SIDE_EFFECTS__*/
|
|
848
852
|
function P(e) {
|
|
849
|
-
return
|
|
853
|
+
return qt.call(e);
|
|
850
854
|
}
|
|
851
855
|
/*@__NO_SIDE_EFFECTS__*/
|
|
852
856
|
function F(e) {
|
|
853
|
-
return
|
|
857
|
+
return Jt.call(e);
|
|
854
858
|
}
|
|
855
|
-
function
|
|
859
|
+
function Zt(e, t) {
|
|
856
860
|
if (!C) return /* @__PURE__ */ P(e);
|
|
857
861
|
var n = /* @__PURE__ */ P(w);
|
|
858
|
-
if (n === null) n = w.appendChild(
|
|
862
|
+
if (n === null) n = w.appendChild(Xt());
|
|
859
863
|
else if (t && n.nodeType !== 3) {
|
|
860
|
-
var r =
|
|
864
|
+
var r = Xt();
|
|
861
865
|
return n?.before(r), T(r), r;
|
|
862
866
|
}
|
|
863
|
-
return t &&
|
|
867
|
+
return t && an(n), T(n), n;
|
|
864
868
|
}
|
|
865
|
-
function
|
|
869
|
+
function Qt(e, t = !1) {
|
|
866
870
|
if (!C) {
|
|
867
871
|
var n = /* @__PURE__ */ P(e);
|
|
868
872
|
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ F(n) : n;
|
|
869
873
|
}
|
|
870
874
|
if (t) {
|
|
871
875
|
if (w?.nodeType !== 3) {
|
|
872
|
-
var r =
|
|
876
|
+
var r = Xt();
|
|
873
877
|
return w?.before(r), T(r), r;
|
|
874
878
|
}
|
|
875
|
-
|
|
879
|
+
an(w);
|
|
876
880
|
}
|
|
877
881
|
return w;
|
|
878
882
|
}
|
|
879
|
-
function
|
|
883
|
+
function $t(e, t = !1) {
|
|
880
884
|
if (!C) return /* @__PURE__ */ P(e);
|
|
881
|
-
var n =
|
|
882
|
-
return
|
|
885
|
+
var n = Zt(e, t);
|
|
886
|
+
return Te(e), n;
|
|
883
887
|
}
|
|
884
|
-
function
|
|
888
|
+
function en(e, t = 1, n = !1) {
|
|
885
889
|
let r = C ? w : e;
|
|
886
890
|
for (var i; t--;) i = r, r = /* @__PURE__ */ F(r);
|
|
887
891
|
if (!C) return r;
|
|
888
892
|
if (n) {
|
|
889
893
|
if (r?.nodeType !== 3) {
|
|
890
|
-
var a =
|
|
894
|
+
var a = Xt();
|
|
891
895
|
return r === null ? i?.after(a) : r.before(a), T(a), a;
|
|
892
896
|
}
|
|
893
|
-
|
|
897
|
+
an(r);
|
|
894
898
|
}
|
|
895
899
|
return T(r), r;
|
|
896
900
|
}
|
|
897
|
-
function
|
|
901
|
+
function tn(e) {
|
|
898
902
|
e.textContent = "";
|
|
899
903
|
}
|
|
900
|
-
function
|
|
904
|
+
function nn() {
|
|
901
905
|
return !1;
|
|
902
906
|
}
|
|
903
|
-
function
|
|
907
|
+
function rn(e, t, n) {
|
|
904
908
|
return t == null || t === "http://www.w3.org/1999/xhtml" ? n ? document.createElement(e, { is: n }) : document.createElement(e) : n ? document.createElementNS(t, e, { is: n }) : document.createElementNS(t, e);
|
|
905
909
|
}
|
|
906
|
-
function
|
|
910
|
+
function an(e) {
|
|
907
911
|
if (e.nodeValue.length < 65536) return;
|
|
908
912
|
let t = e.nextSibling;
|
|
909
913
|
for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
910
914
|
}
|
|
911
|
-
function
|
|
915
|
+
function on(e) {
|
|
912
916
|
var t = W;
|
|
913
|
-
if (t === null) return V.f |=
|
|
917
|
+
if (t === null) return V.f |= le, e;
|
|
914
918
|
if (!(t.f & 32768) && !(t.f & 4)) throw e;
|
|
915
919
|
I(e, t);
|
|
916
920
|
}
|
|
@@ -932,11 +936,11 @@ function I(e, t) {
|
|
|
932
936
|
}
|
|
933
937
|
}
|
|
934
938
|
//#endregion
|
|
935
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
936
|
-
function
|
|
937
|
-
W === null && (V === null &&
|
|
939
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/effects.js
|
|
940
|
+
function sn(e) {
|
|
941
|
+
W === null && (V === null && Fe(e), Pe()), B && Ne(e);
|
|
938
942
|
}
|
|
939
|
-
function
|
|
943
|
+
function cn(e, t) {
|
|
940
944
|
var n = t.last;
|
|
941
945
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
942
946
|
}
|
|
@@ -961,103 +965,103 @@ function L(e, t) {
|
|
|
961
965
|
};
|
|
962
966
|
O?.register_created_effect(r);
|
|
963
967
|
var i = r;
|
|
964
|
-
if (e & 4)
|
|
968
|
+
if (e & 4) xt === null ? Tt.ensure().schedule(r) : xt.push(r);
|
|
965
969
|
else if (t !== null) {
|
|
966
970
|
try {
|
|
967
|
-
|
|
971
|
+
Kn(r);
|
|
968
972
|
} catch (e) {
|
|
969
973
|
throw z(r), e;
|
|
970
974
|
}
|
|
971
975
|
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= ie));
|
|
972
976
|
}
|
|
973
|
-
if (i !== null && (i.parent = n, n !== null &&
|
|
977
|
+
if (i !== null && (i.parent = n, n !== null && cn(i, n), V !== null && V.f & 2 && !(e & 64))) {
|
|
974
978
|
var a = V;
|
|
975
979
|
(a.effects ??= []).push(i);
|
|
976
980
|
}
|
|
977
981
|
return r;
|
|
978
982
|
}
|
|
979
|
-
function
|
|
983
|
+
function ln() {
|
|
980
984
|
return V !== null && !H;
|
|
981
985
|
}
|
|
982
|
-
function
|
|
986
|
+
function un(e) {
|
|
983
987
|
let t = L(8, null);
|
|
984
988
|
return D(t, y), t.teardown = e, t;
|
|
985
989
|
}
|
|
986
|
-
function
|
|
987
|
-
|
|
990
|
+
function dn(e) {
|
|
991
|
+
sn("$effect");
|
|
988
992
|
var t = W.f;
|
|
989
993
|
if (!V && t & 32 && E !== null && !E.i) {
|
|
990
994
|
var n = E;
|
|
991
995
|
(n.e ??= []).push(e);
|
|
992
|
-
} else return
|
|
996
|
+
} else return fn(e);
|
|
993
997
|
}
|
|
994
|
-
function
|
|
998
|
+
function fn(e) {
|
|
995
999
|
return L(4 | oe, e);
|
|
996
1000
|
}
|
|
997
|
-
function
|
|
998
|
-
|
|
1001
|
+
function pn(e) {
|
|
1002
|
+
Tt.ensure();
|
|
999
1003
|
let t = L(64 | ae, e);
|
|
1000
1004
|
return () => {
|
|
1001
1005
|
z(t);
|
|
1002
1006
|
};
|
|
1003
1007
|
}
|
|
1004
|
-
function
|
|
1005
|
-
|
|
1008
|
+
function mn(e) {
|
|
1009
|
+
Tt.ensure();
|
|
1006
1010
|
let t = L(64 | ae, e);
|
|
1007
1011
|
return (e = {}) => new Promise((n) => {
|
|
1008
|
-
e.outro ?
|
|
1012
|
+
e.outro ? Tn(t, () => {
|
|
1009
1013
|
z(t), n(void 0);
|
|
1010
1014
|
}) : (z(t), n(void 0));
|
|
1011
1015
|
});
|
|
1012
1016
|
}
|
|
1013
|
-
function
|
|
1017
|
+
function hn(e) {
|
|
1014
1018
|
return L(4, e);
|
|
1015
1019
|
}
|
|
1016
|
-
function
|
|
1017
|
-
return L(
|
|
1020
|
+
function gn(e) {
|
|
1021
|
+
return L(ce | ae, e);
|
|
1018
1022
|
}
|
|
1019
|
-
function
|
|
1023
|
+
function _n(e, t = 0) {
|
|
1020
1024
|
return L(8 | t, e);
|
|
1021
1025
|
}
|
|
1022
|
-
function
|
|
1023
|
-
|
|
1026
|
+
function vn(e, t = [], n = [], r = []) {
|
|
1027
|
+
nt(r, t, n, (t) => {
|
|
1024
1028
|
L(8, () => {
|
|
1025
1029
|
e(...t.map(X));
|
|
1026
1030
|
});
|
|
1027
1031
|
});
|
|
1028
1032
|
}
|
|
1029
|
-
function
|
|
1033
|
+
function yn(e, t = 0) {
|
|
1030
1034
|
return L(16 | t, e);
|
|
1031
1035
|
}
|
|
1032
1036
|
function R(e) {
|
|
1033
1037
|
return L(32 | ae, e);
|
|
1034
1038
|
}
|
|
1035
|
-
function
|
|
1039
|
+
function bn(e) {
|
|
1036
1040
|
var t = e.teardown;
|
|
1037
1041
|
if (t !== null) {
|
|
1038
1042
|
let n = B, r = V;
|
|
1039
|
-
|
|
1043
|
+
Mn(!0), U(null);
|
|
1040
1044
|
try {
|
|
1041
1045
|
t.call(null);
|
|
1042
1046
|
} catch (t) {
|
|
1043
1047
|
I(t, e.parent);
|
|
1044
1048
|
} finally {
|
|
1045
|
-
|
|
1049
|
+
Mn(n), U(r);
|
|
1046
1050
|
}
|
|
1047
1051
|
}
|
|
1048
1052
|
}
|
|
1049
|
-
function
|
|
1053
|
+
function xn(e, t = !1) {
|
|
1050
1054
|
var n = e.first;
|
|
1051
1055
|
for (e.first = e.last = null; n !== null;) {
|
|
1052
1056
|
let e = n.ac;
|
|
1053
|
-
e !== null &&
|
|
1054
|
-
e.abort(
|
|
1057
|
+
e !== null && tt(() => {
|
|
1058
|
+
e.abort(ve);
|
|
1055
1059
|
});
|
|
1056
1060
|
var r = n.next;
|
|
1057
1061
|
n.f & 64 ? n.parent = null : z(n, t), n = r;
|
|
1058
1062
|
}
|
|
1059
1063
|
}
|
|
1060
|
-
function
|
|
1064
|
+
function Sn(e) {
|
|
1061
1065
|
for (var t = e.first; t !== null;) {
|
|
1062
1066
|
var n = t.next;
|
|
1063
1067
|
t.f & 32 || z(t), t = n;
|
|
@@ -1065,26 +1069,26 @@ function wn(e) {
|
|
|
1065
1069
|
}
|
|
1066
1070
|
function z(e, t = !0) {
|
|
1067
1071
|
var n = !1;
|
|
1068
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (
|
|
1072
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Cn(e.nodes.start, e.nodes.end), n = !0), e.f |= S, xn(e, t && !n), Gn(e, 0);
|
|
1069
1073
|
var r = e.nodes && e.nodes.t;
|
|
1070
1074
|
if (r !== null) for (let e of r) e.stop();
|
|
1071
|
-
|
|
1075
|
+
bn(e), e.f ^= S, e.f |= re;
|
|
1072
1076
|
var i = e.parent;
|
|
1073
|
-
i !== null && i.first !== null &&
|
|
1077
|
+
i !== null && i.first !== null && wn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1074
1078
|
}
|
|
1075
|
-
function
|
|
1079
|
+
function Cn(e, t) {
|
|
1076
1080
|
for (; e !== null;) {
|
|
1077
1081
|
var n = e === t ? null : /* @__PURE__ */ F(e);
|
|
1078
1082
|
e.remove(), e = n;
|
|
1079
1083
|
}
|
|
1080
1084
|
}
|
|
1081
|
-
function
|
|
1085
|
+
function wn(e) {
|
|
1082
1086
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1083
1087
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1084
1088
|
}
|
|
1085
|
-
function
|
|
1089
|
+
function Tn(e, t, n = !0) {
|
|
1086
1090
|
var r = [];
|
|
1087
|
-
e.f |= 256,
|
|
1091
|
+
e.f |= 256, En(e, r, !0);
|
|
1088
1092
|
var i = () => {
|
|
1089
1093
|
n && z(e), t && t();
|
|
1090
1094
|
}, a = r.length;
|
|
@@ -1093,7 +1097,7 @@ function Dn(e, t, n = !0) {
|
|
|
1093
1097
|
for (var s of r) s.out(o);
|
|
1094
1098
|
} else i();
|
|
1095
1099
|
}
|
|
1096
|
-
function
|
|
1100
|
+
function En(e, t, n) {
|
|
1097
1101
|
if (!(e.f & 8192)) {
|
|
1098
1102
|
e.f ^= ne;
|
|
1099
1103
|
var r = e.nodes && e.nodes.t;
|
|
@@ -1102,36 +1106,36 @@ function On(e, t, n) {
|
|
|
1102
1106
|
var a = i.next;
|
|
1103
1107
|
if (!(i.f & 64)) {
|
|
1104
1108
|
var o = (i.f & 65536) != 0 || (i.f & 32) != 0 && (e.f & 16) != 0;
|
|
1105
|
-
|
|
1109
|
+
En(i, t, o ? n : !1);
|
|
1106
1110
|
}
|
|
1107
1111
|
i = a;
|
|
1108
1112
|
}
|
|
1109
1113
|
}
|
|
1110
1114
|
}
|
|
1111
|
-
function
|
|
1112
|
-
e.f &= -257,
|
|
1115
|
+
function Dn(e) {
|
|
1116
|
+
e.f &= -257, On(e, !0);
|
|
1113
1117
|
}
|
|
1114
|
-
function
|
|
1118
|
+
function On(e, t) {
|
|
1115
1119
|
if (!(e.f & 256) && e.f & 8192) {
|
|
1116
|
-
e.f ^= ne, e.f & 1024 || (D(e, b),
|
|
1120
|
+
e.f ^= ne, e.f & 1024 || (D(e, b), Tt.ensure().schedule(e));
|
|
1117
1121
|
for (var n = e.first; n !== null;) {
|
|
1118
1122
|
var r = n.next, i = (n.f & 65536) != 0 || (n.f & 32) != 0;
|
|
1119
|
-
|
|
1123
|
+
On(n, i ? t : !1), n = r;
|
|
1120
1124
|
}
|
|
1121
1125
|
var a = e.nodes && e.nodes.t;
|
|
1122
1126
|
if (a !== null) for (let e of a) (e.is_global || t) && e.in();
|
|
1123
1127
|
}
|
|
1124
1128
|
}
|
|
1125
|
-
function
|
|
1129
|
+
function kn(e, t) {
|
|
1126
1130
|
if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
|
|
1127
1131
|
var i = n === r ? null : /* @__PURE__ */ F(n);
|
|
1128
1132
|
t.append(n), n = i;
|
|
1129
1133
|
}
|
|
1130
1134
|
}
|
|
1131
1135
|
//#endregion
|
|
1132
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
1133
|
-
var
|
|
1134
|
-
function
|
|
1136
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/legacy.js
|
|
1137
|
+
var An = null, jn = !1, B = !1;
|
|
1138
|
+
function Mn(e) {
|
|
1135
1139
|
B = e;
|
|
1136
1140
|
}
|
|
1137
1141
|
var V = null, H = !1;
|
|
@@ -1143,73 +1147,73 @@ function G(e) {
|
|
|
1143
1147
|
W = e;
|
|
1144
1148
|
}
|
|
1145
1149
|
var K = null;
|
|
1146
|
-
function
|
|
1147
|
-
V !== null && (K ??= /* @__PURE__ */ new Set()).add(e);
|
|
1150
|
+
function Nn(e) {
|
|
1151
|
+
V !== null && (V.f & 2097152 || V.f & 2) && (K ??= /* @__PURE__ */ new Set()).add(e);
|
|
1148
1152
|
}
|
|
1149
1153
|
var q = null, J = 0, Y = null;
|
|
1150
|
-
function
|
|
1154
|
+
function Pn(e) {
|
|
1151
1155
|
Y = e;
|
|
1152
1156
|
}
|
|
1153
|
-
var
|
|
1154
|
-
function
|
|
1155
|
-
|
|
1157
|
+
var Fn = 1, In = 0, Ln = In;
|
|
1158
|
+
function Rn(e) {
|
|
1159
|
+
Ln = e;
|
|
1156
1160
|
}
|
|
1157
|
-
function
|
|
1158
|
-
return ++
|
|
1161
|
+
function zn() {
|
|
1162
|
+
return ++Fn;
|
|
1159
1163
|
}
|
|
1160
|
-
function
|
|
1164
|
+
function Bn(e) {
|
|
1161
1165
|
var t = e.f;
|
|
1162
1166
|
if (t & 2048) return !0;
|
|
1163
|
-
if (t &
|
|
1167
|
+
if (t & 4096) {
|
|
1164
1168
|
for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
|
|
1165
1169
|
var a = n[i];
|
|
1166
|
-
if (
|
|
1170
|
+
if (Bn(a) && pt(a), a.wv > e.wv) return !0;
|
|
1167
1171
|
}
|
|
1168
1172
|
t & 512 && k === null && D(e, y);
|
|
1169
1173
|
}
|
|
1170
1174
|
return !1;
|
|
1171
1175
|
}
|
|
1172
|
-
function
|
|
1176
|
+
function Vn(e, t, n = !0) {
|
|
1173
1177
|
var r = e.reactions;
|
|
1174
1178
|
if (r !== null && !(K !== null && K.has(e))) for (var i = 0; i < r.length; i++) {
|
|
1175
1179
|
var a = r[i];
|
|
1176
|
-
a.f & 2 ?
|
|
1180
|
+
a.f & 2 ? Vn(a, t, !1) : t === a && (n ? D(a, b) : a.f & 1024 && D(a, te), jt(a));
|
|
1177
1181
|
}
|
|
1178
1182
|
}
|
|
1179
|
-
function
|
|
1180
|
-
var t = q, n = J, r = Y, i = V, a = K, o = E, s = H, c =
|
|
1181
|
-
q = null, J = 0, Y = null, V = l & 96 ? null : e, K = null,
|
|
1182
|
-
e.ac.abort(
|
|
1183
|
+
function Hn(e) {
|
|
1184
|
+
var t = q, n = J, r = Y, i = V, a = K, o = E, s = H, c = Ln, l = e.f;
|
|
1185
|
+
q = null, J = 0, Y = null, V = l & 96 ? null : e, K = null, Ue(e.ctx), H = !1, Ln = ++In, e.ac !== null && (tt(() => {
|
|
1186
|
+
e.ac.abort(ve);
|
|
1183
1187
|
}), e.ac = null);
|
|
1184
1188
|
try {
|
|
1185
|
-
e.f |=
|
|
1189
|
+
e.f |= se;
|
|
1186
1190
|
var u = e.fn, d = u();
|
|
1187
1191
|
e.f |= x;
|
|
1188
|
-
var f =
|
|
1189
|
-
if (
|
|
1192
|
+
var f = Un(e);
|
|
1193
|
+
if (qe() && Y !== null && !H && f !== null && !(e.f & 6146)) for (var p = 0; p < Y.length; p++) Vn(Y[p], e);
|
|
1190
1194
|
if (i !== null && i !== e) {
|
|
1191
|
-
if (
|
|
1192
|
-
if (t !== null) for (let e of t) e.rv =
|
|
1195
|
+
if (In++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = In;
|
|
1196
|
+
if (t !== null) for (let e of t) e.rv = In;
|
|
1193
1197
|
Y !== null && (r === null ? r = Y : r.push(...Y));
|
|
1194
1198
|
}
|
|
1195
|
-
return e.f & 8388608 && (e.f ^=
|
|
1199
|
+
return e.f & 8388608 && (e.f ^= le), d;
|
|
1196
1200
|
} catch (t) {
|
|
1197
|
-
return
|
|
1201
|
+
return Un(e), on(t);
|
|
1198
1202
|
} finally {
|
|
1199
|
-
e.f ^=
|
|
1203
|
+
e.f ^= se, q = t, J = n, Y = r, V = i, K = a, Ue(o), H = s, Ln = c;
|
|
1200
1204
|
}
|
|
1201
1205
|
}
|
|
1202
|
-
function
|
|
1206
|
+
function Un(e) {
|
|
1203
1207
|
var t = e.deps, n = O?.is_fork;
|
|
1204
1208
|
if (q !== null) {
|
|
1205
1209
|
var r;
|
|
1206
|
-
if (n ||
|
|
1210
|
+
if (n || Gn(e, J), t !== null && J > 0) for (t.length = J + q.length, r = 0; r < q.length; r++) t[J + r] = q[r];
|
|
1207
1211
|
else e.deps = t = q;
|
|
1208
|
-
if (
|
|
1209
|
-
} else !n && t !== null && J < t.length && (
|
|
1212
|
+
if (ln() && e.f & 512) for (r = J; r < t.length; r++) (t[r].reactions ??= []).push(e);
|
|
1213
|
+
} else !n && t !== null && J < t.length && (Gn(e, J), t.length = J);
|
|
1210
1214
|
return t;
|
|
1211
1215
|
}
|
|
1212
|
-
function
|
|
1216
|
+
function Wn(e, n) {
|
|
1213
1217
|
let r = n.reactions;
|
|
1214
1218
|
if (r !== null) {
|
|
1215
1219
|
var i = o.call(r, e);
|
|
@@ -1220,35 +1224,35 @@ function Kn(e, n) {
|
|
|
1220
1224
|
}
|
|
1221
1225
|
if (r === null && n.f & 2 && (q === null || !s.call(q, n))) {
|
|
1222
1226
|
var c = n;
|
|
1223
|
-
c.f & 512 && (c.f ^= 512
|
|
1224
|
-
c.ac.abort(
|
|
1225
|
-
}),
|
|
1227
|
+
c.f & 512 && (c.f ^= 512), c.v !== t && $e(c), c.ac !== null && tt(() => {
|
|
1228
|
+
c.ac.abort(ve), c.ac = null, D(c, b);
|
|
1229
|
+
}), mt(c), Gn(c, 0);
|
|
1226
1230
|
}
|
|
1227
1231
|
}
|
|
1228
|
-
function
|
|
1232
|
+
function Gn(e, t) {
|
|
1229
1233
|
var n = e.deps;
|
|
1230
|
-
if (n !== null) for (var r = t; r < n.length; r++)
|
|
1234
|
+
if (n !== null) for (var r = t; r < n.length; r++) Wn(e, n[r]);
|
|
1231
1235
|
}
|
|
1232
|
-
function
|
|
1236
|
+
function Kn(e) {
|
|
1233
1237
|
var t = e.f;
|
|
1234
1238
|
if (!(t & 16384)) {
|
|
1235
1239
|
D(e, y);
|
|
1236
|
-
var n = W, r =
|
|
1237
|
-
W = e,
|
|
1240
|
+
var n = W, r = jn;
|
|
1241
|
+
W = e, jn = (t & 96) == 0;
|
|
1238
1242
|
try {
|
|
1239
|
-
t & 16777232 ?
|
|
1240
|
-
var i =
|
|
1241
|
-
e.teardown = typeof i == "function" ? i : null, e.wv =
|
|
1243
|
+
t & 16777232 ? Sn(e) : xn(e), bn(e);
|
|
1244
|
+
var i = Hn(e);
|
|
1245
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = Fn;
|
|
1242
1246
|
} finally {
|
|
1243
|
-
|
|
1247
|
+
jn = r, W = n;
|
|
1244
1248
|
}
|
|
1245
1249
|
}
|
|
1246
1250
|
}
|
|
1247
1251
|
function X(e) {
|
|
1248
1252
|
var t = (e.f & 2) != 0;
|
|
1249
|
-
if (
|
|
1253
|
+
if (An?.add(e), V !== null && !H && !(W !== null && W.f & 16384) && (K === null || !K.has(e))) {
|
|
1250
1254
|
var n = V.deps;
|
|
1251
|
-
if (V.f & 2097152) e.rv <
|
|
1255
|
+
if (V.f & 2097152) e.rv < In && (e.rv = In, q === null && n !== null && n[J] === e ? J++ : q === null ? q = [e] : q.push(e));
|
|
1252
1256
|
else {
|
|
1253
1257
|
V.deps ??= [], s.call(V.deps, e) || V.deps.push(e);
|
|
1254
1258
|
var r = e.reactions;
|
|
@@ -1260,25 +1264,25 @@ function X(e) {
|
|
|
1260
1264
|
var i = e;
|
|
1261
1265
|
if (B) {
|
|
1262
1266
|
var a = i.v;
|
|
1263
|
-
return (!(i.f & 1024) && i.reactions !== null ||
|
|
1267
|
+
return (!(i.f & 1024) && i.reactions !== null || Jn(i)) && (a = ft(i)), j.set(i, a), a;
|
|
1264
1268
|
}
|
|
1265
|
-
var o = (i.f & 512) == 0 && !H && V !== null && (
|
|
1266
|
-
|
|
1269
|
+
var o = (i.f & 512) == 0 && !H && V !== null && (jn || (V.f & 512) != 0), c = (i.f & x) === 0;
|
|
1270
|
+
Bn(i) && (o && (i.f |= 512), pt(i)), o && !c && (ht(i), qn(i));
|
|
1267
1271
|
}
|
|
1268
1272
|
if (k?.has(e)) return k.get(e);
|
|
1269
1273
|
if (e.f & 8388608) throw e.v;
|
|
1270
1274
|
return e.v;
|
|
1271
1275
|
}
|
|
1272
|
-
function
|
|
1273
|
-
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (
|
|
1276
|
+
function qn(e) {
|
|
1277
|
+
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (ht(t), qn(t));
|
|
1274
1278
|
}
|
|
1275
|
-
function
|
|
1279
|
+
function Jn(e) {
|
|
1276
1280
|
if (e.v === t) return !0;
|
|
1277
1281
|
if (e.deps === null) return !1;
|
|
1278
|
-
for (let t of e.deps) if (j.has(t) || t.f & 2 &&
|
|
1282
|
+
for (let t of e.deps) if (j.has(t) || t.f & 2 && Jn(t)) return !0;
|
|
1279
1283
|
return !1;
|
|
1280
1284
|
}
|
|
1281
|
-
function
|
|
1285
|
+
function Yn(e) {
|
|
1282
1286
|
var t = H;
|
|
1283
1287
|
try {
|
|
1284
1288
|
return H = !0, e();
|
|
@@ -1287,18 +1291,18 @@ function Zn(e) {
|
|
|
1287
1291
|
}
|
|
1288
1292
|
}
|
|
1289
1293
|
//#endregion
|
|
1290
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
1291
|
-
var
|
|
1292
|
-
function
|
|
1294
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/events.js
|
|
1295
|
+
var Xn = Symbol("events"), Zn = /* @__PURE__ */ new Set(), Qn = /* @__PURE__ */ new Set(), $n = null, er = !1;
|
|
1296
|
+
function tr(e) {
|
|
1293
1297
|
var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
|
|
1294
|
-
|
|
1295
|
-
|
|
1298
|
+
$n = e, er || (er = !0, setTimeout(() => {
|
|
1299
|
+
er = !1, $n = null;
|
|
1296
1300
|
}));
|
|
1297
|
-
var o = 0, s =
|
|
1301
|
+
var o = 0, s = $n === e && e[Xn];
|
|
1298
1302
|
if (s) {
|
|
1299
1303
|
var c = i.indexOf(s);
|
|
1300
1304
|
if (c !== -1 && (t === document || t === window)) {
|
|
1301
|
-
e[
|
|
1305
|
+
e[Xn] = t;
|
|
1302
1306
|
return;
|
|
1303
1307
|
}
|
|
1304
1308
|
var l = i.indexOf(t);
|
|
@@ -1317,7 +1321,7 @@ function rr(e) {
|
|
|
1317
1321
|
try {
|
|
1318
1322
|
for (var p, m = []; a !== null && a !== t;) {
|
|
1319
1323
|
try {
|
|
1320
|
-
var h = a[
|
|
1324
|
+
var h = a[Xn]?.[r];
|
|
1321
1325
|
h != null && (!a.disabled || e.target === a) && h.call(a, e);
|
|
1322
1326
|
} catch (e) {
|
|
1323
1327
|
p ? m.push(e) : p = e;
|
|
@@ -1332,23 +1336,23 @@ function rr(e) {
|
|
|
1332
1336
|
throw p;
|
|
1333
1337
|
}
|
|
1334
1338
|
} finally {
|
|
1335
|
-
e[
|
|
1339
|
+
e[Xn] = t, delete e.currentTarget, U(d), G(f);
|
|
1336
1340
|
}
|
|
1337
1341
|
}
|
|
1338
1342
|
}
|
|
1339
1343
|
//#endregion
|
|
1340
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
1341
|
-
var
|
|
1342
|
-
function
|
|
1343
|
-
return
|
|
1344
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/reconciler.js
|
|
1345
|
+
var nr = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1346
|
+
function rr(e) {
|
|
1347
|
+
return nr?.createHTML(e) ?? e;
|
|
1344
1348
|
}
|
|
1345
|
-
function
|
|
1346
|
-
var t =
|
|
1347
|
-
return t.innerHTML =
|
|
1349
|
+
function ir(e) {
|
|
1350
|
+
var t = rn("template");
|
|
1351
|
+
return t.innerHTML = rr(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1348
1352
|
}
|
|
1349
1353
|
//#endregion
|
|
1350
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
1351
|
-
function
|
|
1354
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/template.js
|
|
1355
|
+
function ar(e, t) {
|
|
1352
1356
|
var n = W;
|
|
1353
1357
|
n.nodes === null && (n.nodes = {
|
|
1354
1358
|
start: e,
|
|
@@ -1358,51 +1362,51 @@ function sr(e, t) {
|
|
|
1358
1362
|
});
|
|
1359
1363
|
}
|
|
1360
1364
|
/*#__NO_SIDE_EFFECTS__*/
|
|
1361
|
-
function
|
|
1365
|
+
function or(e, t) {
|
|
1362
1366
|
var n = (t & 1) != 0, r = (t & 2) != 0, i, a = !e.startsWith("<!>");
|
|
1363
1367
|
return () => {
|
|
1364
|
-
if (C) return
|
|
1365
|
-
i === void 0 && (i =
|
|
1366
|
-
var t = r ||
|
|
1368
|
+
if (C) return ar(w, null), w;
|
|
1369
|
+
i === void 0 && (i = ir(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ P(i)));
|
|
1370
|
+
var t = r || Kt ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1367
1371
|
if (n) {
|
|
1368
1372
|
var o = /* @__PURE__ */ P(t), s = t.lastChild;
|
|
1369
|
-
|
|
1370
|
-
} else
|
|
1373
|
+
ar(o, s);
|
|
1374
|
+
} else ar(t, t);
|
|
1371
1375
|
return t;
|
|
1372
1376
|
};
|
|
1373
1377
|
}
|
|
1374
|
-
function
|
|
1378
|
+
function sr(e, t) {
|
|
1375
1379
|
if (C) {
|
|
1376
1380
|
var n = W;
|
|
1377
|
-
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = w),
|
|
1381
|
+
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = w), we();
|
|
1378
1382
|
return;
|
|
1379
1383
|
}
|
|
1380
1384
|
e !== null && e.before(t);
|
|
1381
1385
|
}
|
|
1382
1386
|
[.../* @__PURE__ */ "allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback".split(".")];
|
|
1383
|
-
var
|
|
1384
|
-
function
|
|
1385
|
-
return
|
|
1387
|
+
var cr = ["touchstart", "touchmove"];
|
|
1388
|
+
function lr(e) {
|
|
1389
|
+
return cr.includes(e);
|
|
1386
1390
|
}
|
|
1387
1391
|
//#endregion
|
|
1388
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
1389
|
-
function
|
|
1390
|
-
let t = 0, n =
|
|
1392
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/reactivity/create-subscriber.js
|
|
1393
|
+
function ur(e) {
|
|
1394
|
+
let t = 0, n = It(0), r;
|
|
1391
1395
|
return () => {
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
--t, t === 0 && (r?.(), r = void 0,
|
|
1396
|
+
ln() && (X(n), _n(() => (t === 0 && (r = Yn(() => e(() => Ht(n)))), t += 1, () => {
|
|
1397
|
+
Xe(() => {
|
|
1398
|
+
--t, t === 0 && (r?.(), r = void 0, Ht(n));
|
|
1395
1399
|
});
|
|
1396
1400
|
})));
|
|
1397
1401
|
};
|
|
1398
1402
|
}
|
|
1399
1403
|
//#endregion
|
|
1400
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
1401
|
-
var
|
|
1402
|
-
function
|
|
1403
|
-
new
|
|
1404
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
1405
|
+
var dr = ie | ae;
|
|
1406
|
+
function fr(e, t, n, r) {
|
|
1407
|
+
new pr(e, t, n, r);
|
|
1404
1408
|
}
|
|
1405
|
-
var
|
|
1409
|
+
var pr = class {
|
|
1406
1410
|
parent;
|
|
1407
1411
|
is_pending = !1;
|
|
1408
1412
|
transform_error;
|
|
@@ -1421,24 +1425,24 @@ var hr = class {
|
|
|
1421
1425
|
#f = /* @__PURE__ */ new Set();
|
|
1422
1426
|
#p = /* @__PURE__ */ new Set();
|
|
1423
1427
|
#m = null;
|
|
1424
|
-
#h =
|
|
1428
|
+
#h = ur(() => (this.#m = It(this.#l), () => {
|
|
1425
1429
|
this.#m = null;
|
|
1426
1430
|
}));
|
|
1427
1431
|
constructor(e, t, n, r) {
|
|
1428
1432
|
this.#e = e, this.#n = t, this.#r = (e) => {
|
|
1429
1433
|
var t = W;
|
|
1430
1434
|
t.b = this, t.f |= 128, n(e);
|
|
1431
|
-
}, this.parent = W.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i =
|
|
1435
|
+
}, this.parent = W.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = yn(() => {
|
|
1432
1436
|
if (C) {
|
|
1433
1437
|
let e = this.#t;
|
|
1434
|
-
|
|
1438
|
+
we();
|
|
1435
1439
|
let t = e.data === "[!";
|
|
1436
1440
|
if (e.data.startsWith("[?")) {
|
|
1437
1441
|
let t = JSON.parse(e.data.slice(2));
|
|
1438
1442
|
this.#_(t);
|
|
1439
1443
|
} else t ? this.#y() : this.#g();
|
|
1440
1444
|
} else this.#b();
|
|
1441
|
-
},
|
|
1445
|
+
}, dr), C && (this.#e = w);
|
|
1442
1446
|
}
|
|
1443
1447
|
#g() {
|
|
1444
1448
|
try {
|
|
@@ -1449,7 +1453,7 @@ var hr = class {
|
|
|
1449
1453
|
}
|
|
1450
1454
|
#_(e) {
|
|
1451
1455
|
let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
|
|
1452
|
-
|
|
1456
|
+
Xe(r), t && (this.#s = R(() => {
|
|
1453
1457
|
t(this.#e, () => e, () => n);
|
|
1454
1458
|
}));
|
|
1455
1459
|
}
|
|
@@ -1457,10 +1461,10 @@ var hr = class {
|
|
|
1457
1461
|
var t = !1, n = !1;
|
|
1458
1462
|
let r = () => {
|
|
1459
1463
|
if (t) {
|
|
1460
|
-
|
|
1464
|
+
Se();
|
|
1461
1465
|
return;
|
|
1462
1466
|
}
|
|
1463
|
-
t = !0, n &&
|
|
1467
|
+
t = !0, n && He(), this.#s !== null && Tn(this.#s, () => {
|
|
1464
1468
|
this.#s = null;
|
|
1465
1469
|
}), this.#S(() => {
|
|
1466
1470
|
this.#b();
|
|
@@ -1479,8 +1483,8 @@ var hr = class {
|
|
|
1479
1483
|
}
|
|
1480
1484
|
#y() {
|
|
1481
1485
|
let e = this.#n.pending;
|
|
1482
|
-
e && (this.is_pending = !0, this.#o = R(() => e(this.#e)),
|
|
1483
|
-
var e = this.#c = document.createDocumentFragment(), t =
|
|
1486
|
+
e && (this.is_pending = !0, this.#o = R(() => e(this.#e)), Xe(() => {
|
|
1487
|
+
var e = this.#c = document.createDocumentFragment(), t = Xt(), n = !1;
|
|
1484
1488
|
if (e.append(t), this.#a = this.#S(() => {
|
|
1485
1489
|
try {
|
|
1486
1490
|
return R(() => this.#r(t));
|
|
@@ -1496,7 +1500,7 @@ var hr = class {
|
|
|
1496
1500
|
this.#c = null, n && this.#x(O);
|
|
1497
1501
|
return;
|
|
1498
1502
|
}
|
|
1499
|
-
this.#u === 0 && (this.#e.before(e), this.#c = null,
|
|
1503
|
+
this.#u === 0 && (this.#e.before(e), this.#c = null, Tn(this.#o, () => {
|
|
1500
1504
|
this.#o = null;
|
|
1501
1505
|
}), this.#x(O));
|
|
1502
1506
|
}));
|
|
@@ -1507,7 +1511,7 @@ var hr = class {
|
|
|
1507
1511
|
this.#r(this.#e);
|
|
1508
1512
|
}), this.#u > 0) {
|
|
1509
1513
|
var e = this.#c = document.createDocumentFragment();
|
|
1510
|
-
|
|
1514
|
+
kn(this.#a, e);
|
|
1511
1515
|
let t = this.#n.pending;
|
|
1512
1516
|
this.#o = R(() => t(this.#e));
|
|
1513
1517
|
} else this.#x(O);
|
|
@@ -1519,7 +1523,7 @@ var hr = class {
|
|
|
1519
1523
|
this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
|
|
1520
1524
|
}
|
|
1521
1525
|
defer_effect(e) {
|
|
1522
|
-
|
|
1526
|
+
et(e, this.#f, this.#p);
|
|
1523
1527
|
}
|
|
1524
1528
|
is_rendered() {
|
|
1525
1529
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -1529,11 +1533,11 @@ var hr = class {
|
|
|
1529
1533
|
}
|
|
1530
1534
|
#S(e) {
|
|
1531
1535
|
var t = W, n = V, r = E;
|
|
1532
|
-
G(this.#i), U(this.#i),
|
|
1536
|
+
G(this.#i), U(this.#i), Ue(this.#i.ctx);
|
|
1533
1537
|
try {
|
|
1534
|
-
return
|
|
1538
|
+
return Tt.ensure(), e();
|
|
1535
1539
|
} finally {
|
|
1536
|
-
G(t), U(n),
|
|
1540
|
+
G(t), U(n), Ue(r);
|
|
1537
1541
|
}
|
|
1538
1542
|
}
|
|
1539
1543
|
#C(e, t) {
|
|
@@ -1541,13 +1545,13 @@ var hr = class {
|
|
|
1541
1545
|
this.parent && this.parent.#C(e, t);
|
|
1542
1546
|
return;
|
|
1543
1547
|
}
|
|
1544
|
-
this.#u += e, this.#u === 0 && (this.#x(t), this.#o &&
|
|
1548
|
+
this.#u += e, this.#u === 0 && (this.#x(t), this.#o && Tn(this.#o, () => {
|
|
1545
1549
|
this.#o = null;
|
|
1546
1550
|
}), this.#c &&= (this.#e.before(this.#c), null));
|
|
1547
1551
|
}
|
|
1548
1552
|
update_pending_count(e, t) {
|
|
1549
|
-
this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0,
|
|
1550
|
-
this.#d = !1, this.#m &&
|
|
1553
|
+
this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Xe(() => {
|
|
1554
|
+
this.#d = !1, this.#m && Bt(this.#m, this.#l);
|
|
1551
1555
|
}));
|
|
1552
1556
|
}
|
|
1553
1557
|
get_effect_pending() {
|
|
@@ -1560,7 +1564,7 @@ var hr = class {
|
|
|
1560
1564
|
})) : this.#w(e);
|
|
1561
1565
|
}
|
|
1562
1566
|
#w(e) {
|
|
1563
|
-
this.#a &&= (z(this.#a), null), this.#o &&= (z(this.#o), null), this.#s &&= (z(this.#s), null), C && (T(this.#t),
|
|
1567
|
+
this.#a &&= (z(this.#a), null), this.#o &&= (z(this.#o), null), this.#s &&= (z(this.#s), null), C && (T(this.#t), Ee(), T(De()));
|
|
1564
1568
|
let t = this.#n.failed, n = (e) => {
|
|
1565
1569
|
let { reset: n, invoke_onerror: r } = this.#v(e);
|
|
1566
1570
|
r(), t && (this.#s = this.#S(() => {
|
|
@@ -1574,7 +1578,7 @@ var hr = class {
|
|
|
1574
1578
|
}
|
|
1575
1579
|
}));
|
|
1576
1580
|
};
|
|
1577
|
-
|
|
1581
|
+
Xe(() => {
|
|
1578
1582
|
var t;
|
|
1579
1583
|
try {
|
|
1580
1584
|
t = this.transform_error(e);
|
|
@@ -1586,76 +1590,76 @@ var hr = class {
|
|
|
1586
1590
|
});
|
|
1587
1591
|
}
|
|
1588
1592
|
};
|
|
1589
|
-
function
|
|
1593
|
+
function mr(e, t) {
|
|
1590
1594
|
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1591
|
-
n !== (e[
|
|
1595
|
+
n !== (e[_e] ??= e.nodeValue) && (e[_e] = n, e.nodeValue = `${n}`);
|
|
1592
1596
|
}
|
|
1593
|
-
function
|
|
1594
|
-
return
|
|
1597
|
+
function hr(e, t) {
|
|
1598
|
+
return vr(e, t);
|
|
1595
1599
|
}
|
|
1596
|
-
function
|
|
1597
|
-
|
|
1600
|
+
function gr(t, n) {
|
|
1601
|
+
Yt(), n.intro = n.intro ?? !1;
|
|
1598
1602
|
let r = n.target, i = C, a = w;
|
|
1599
1603
|
try {
|
|
1600
1604
|
for (var o = /* @__PURE__ */ P(r); o && (o.nodeType !== 8 || o.data !== "[");) o = /* @__PURE__ */ F(o);
|
|
1601
1605
|
if (!o) throw e;
|
|
1602
|
-
|
|
1603
|
-
let i =
|
|
1606
|
+
Ce(!0), T(o);
|
|
1607
|
+
let i = vr(t, {
|
|
1604
1608
|
...n,
|
|
1605
1609
|
anchor: o
|
|
1606
1610
|
});
|
|
1607
|
-
return
|
|
1611
|
+
return Ce(!1), i;
|
|
1608
1612
|
} catch (i) {
|
|
1609
1613
|
if (i instanceof Error && i.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw i;
|
|
1610
|
-
return i !== e && console.warn("Failed to hydrate: ", i), n.recover === !1 &&
|
|
1614
|
+
return i !== e && console.warn("Failed to hydrate: ", i), n.recover === !1 && Le(), Yt(), tn(r), Ce(!1), hr(t, n);
|
|
1611
1615
|
} finally {
|
|
1612
|
-
|
|
1616
|
+
Ce(i), T(a);
|
|
1613
1617
|
}
|
|
1614
1618
|
}
|
|
1615
|
-
var
|
|
1616
|
-
function
|
|
1617
|
-
|
|
1618
|
-
var u = void 0, d =
|
|
1619
|
-
var s = r ?? n.appendChild(
|
|
1620
|
-
|
|
1621
|
-
|
|
1619
|
+
var _r = /* @__PURE__ */ new Map();
|
|
1620
|
+
function vr(t, { target: n, anchor: r, props: i = {}, events: a, context: o, intro: s = !0, transformError: l }) {
|
|
1621
|
+
Yt();
|
|
1622
|
+
var u = void 0, d = mn(() => {
|
|
1623
|
+
var s = r ?? n.appendChild(Xt());
|
|
1624
|
+
fr(s, { pending: () => {} }, (n) => {
|
|
1625
|
+
We({});
|
|
1622
1626
|
var r = E;
|
|
1623
|
-
if (o && (r.c = o), a && (i.$$events = a), C &&
|
|
1624
|
-
|
|
1627
|
+
if (o && (r.c = o), a && (i.$$events = a), C && ar(n, null), u = t(n, i) || Ke(), C && (W.nodes.end = w, w === null || w.nodeType !== 8 || w.data !== "]")) throw xe(), e;
|
|
1628
|
+
Ge();
|
|
1625
1629
|
}, l);
|
|
1626
1630
|
var d = /* @__PURE__ */ new Set(), f = (e) => {
|
|
1627
1631
|
for (var t = 0; t < e.length; t++) {
|
|
1628
1632
|
var r = e[t];
|
|
1629
1633
|
if (!d.has(r)) {
|
|
1630
1634
|
d.add(r);
|
|
1631
|
-
var i =
|
|
1635
|
+
var i = lr(r);
|
|
1632
1636
|
for (let e of [n, document]) {
|
|
1633
|
-
var a =
|
|
1634
|
-
a === void 0 && (a = /* @__PURE__ */ new Map(),
|
|
1637
|
+
var a = _r.get(e);
|
|
1638
|
+
a === void 0 && (a = /* @__PURE__ */ new Map(), _r.set(e, a));
|
|
1635
1639
|
var o = a.get(r);
|
|
1636
|
-
o === void 0 ? (e.addEventListener(r,
|
|
1640
|
+
o === void 0 ? (e.addEventListener(r, tr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
|
|
1637
1641
|
}
|
|
1638
1642
|
}
|
|
1639
1643
|
}
|
|
1640
1644
|
};
|
|
1641
|
-
return f(c(
|
|
1645
|
+
return f(c(Zn)), Qn.add(f), () => {
|
|
1642
1646
|
for (var e of d) for (let r of [n, document]) {
|
|
1643
|
-
var t =
|
|
1644
|
-
--i == 0 ? (r.removeEventListener(e,
|
|
1647
|
+
var t = _r.get(r), i = t.get(e);
|
|
1648
|
+
--i == 0 ? (r.removeEventListener(e, tr), t.delete(e), t.size === 0 && _r.delete(r)) : t.set(e, i);
|
|
1645
1649
|
}
|
|
1646
|
-
|
|
1650
|
+
Qn.delete(f), s !== r && s.parentNode?.removeChild(s);
|
|
1647
1651
|
};
|
|
1648
1652
|
});
|
|
1649
|
-
return
|
|
1653
|
+
return yr.set(u, d), u;
|
|
1650
1654
|
}
|
|
1651
|
-
var
|
|
1652
|
-
function
|
|
1653
|
-
let n =
|
|
1654
|
-
return n ? (
|
|
1655
|
+
var yr = /* @__PURE__ */ new WeakMap();
|
|
1656
|
+
function br(e, t) {
|
|
1657
|
+
let n = yr.get(e);
|
|
1658
|
+
return n ? (yr.delete(e), n(t)) : Promise.resolve();
|
|
1655
1659
|
}
|
|
1656
1660
|
//#endregion
|
|
1657
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
1658
|
-
var
|
|
1661
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/branches.js
|
|
1662
|
+
var xr = class {
|
|
1659
1663
|
anchor;
|
|
1660
1664
|
#e = /* @__PURE__ */ new Map();
|
|
1661
1665
|
#t = /* @__PURE__ */ new Map();
|
|
@@ -1668,10 +1672,10 @@ var Cr = class {
|
|
|
1668
1672
|
#a = (e) => {
|
|
1669
1673
|
if (this.#e.has(e)) {
|
|
1670
1674
|
var t = this.#e.get(e), n = this.#t.get(t);
|
|
1671
|
-
if (n)
|
|
1675
|
+
if (n) Dn(n), this.#r.delete(t);
|
|
1672
1676
|
else {
|
|
1673
1677
|
var r = this.#n.get(t);
|
|
1674
|
-
r && (
|
|
1678
|
+
r && (Dn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
|
|
1675
1679
|
}
|
|
1676
1680
|
for (let [t, n] of this.#e) {
|
|
1677
1681
|
if (this.#e.delete(t), t === e) break;
|
|
@@ -1683,14 +1687,14 @@ var Cr = class {
|
|
|
1683
1687
|
let i = () => {
|
|
1684
1688
|
if (Array.from(this.#e.values()).includes(e)) {
|
|
1685
1689
|
var t = document.createDocumentFragment();
|
|
1686
|
-
|
|
1690
|
+
kn(r, t), t.append(Xt()), this.#n.set(e, {
|
|
1687
1691
|
effect: r,
|
|
1688
1692
|
fragment: t
|
|
1689
1693
|
});
|
|
1690
1694
|
} else z(r);
|
|
1691
1695
|
this.#r.delete(e), this.#t.delete(e);
|
|
1692
1696
|
};
|
|
1693
|
-
this.#i || !n ? (this.#r.add(e),
|
|
1697
|
+
this.#i || !n ? (this.#r.add(e), Tn(r, i, !1)) : i();
|
|
1694
1698
|
}
|
|
1695
1699
|
}
|
|
1696
1700
|
};
|
|
@@ -1700,9 +1704,9 @@ var Cr = class {
|
|
|
1700
1704
|
for (let [e, n] of this.#n) t.includes(e) || (z(n.effect), this.#n.delete(e));
|
|
1701
1705
|
};
|
|
1702
1706
|
ensure(e, t) {
|
|
1703
|
-
var n = O, r =
|
|
1707
|
+
var n = O, r = nn();
|
|
1704
1708
|
if (t && !this.#t.has(e) && !this.#n.has(e)) if (r) {
|
|
1705
|
-
var i = document.createDocumentFragment(), a =
|
|
1709
|
+
var i = document.createDocumentFragment(), a = Xt();
|
|
1706
1710
|
i.append(a), this.#n.set(e, {
|
|
1707
1711
|
effect: R(() => t(a)),
|
|
1708
1712
|
fragment: i
|
|
@@ -1716,90 +1720,90 @@ var Cr = class {
|
|
|
1716
1720
|
}
|
|
1717
1721
|
};
|
|
1718
1722
|
//#endregion
|
|
1719
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
1720
|
-
function
|
|
1723
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/if.js
|
|
1724
|
+
function Sr(e, t, n = !1) {
|
|
1721
1725
|
var r;
|
|
1722
|
-
C && (r = w,
|
|
1723
|
-
var i = new
|
|
1726
|
+
C && (r = w, we());
|
|
1727
|
+
var i = new xr(e), a = n ? ie : 0;
|
|
1724
1728
|
function o(e, t) {
|
|
1725
1729
|
if (C) {
|
|
1726
|
-
var n =
|
|
1730
|
+
var n = Oe(r);
|
|
1727
1731
|
if (e !== parseInt(n.substring(1))) {
|
|
1728
|
-
var a =
|
|
1729
|
-
T(a), i.anchor = a,
|
|
1732
|
+
var a = De();
|
|
1733
|
+
T(a), i.anchor = a, Ce(!1), i.ensure(e, t), Ce(!0);
|
|
1730
1734
|
return;
|
|
1731
1735
|
}
|
|
1732
1736
|
}
|
|
1733
1737
|
i.ensure(e, t);
|
|
1734
1738
|
}
|
|
1735
|
-
|
|
1739
|
+
yn(() => {
|
|
1736
1740
|
var e = !1;
|
|
1737
1741
|
t((t, n = 0) => {
|
|
1738
1742
|
e = !0, o(n, t);
|
|
1739
1743
|
}), e || o(-1, null);
|
|
1740
1744
|
}, a);
|
|
1741
1745
|
}
|
|
1742
|
-
function
|
|
1746
|
+
function Cr(t, n, a = !1, o = !1, s = !1, c = !1) {
|
|
1743
1747
|
var l = t, u = "";
|
|
1744
1748
|
if (a) {
|
|
1745
1749
|
var d = t;
|
|
1746
1750
|
C && (l = T(/* @__PURE__ */ P(d)));
|
|
1747
1751
|
}
|
|
1748
|
-
|
|
1752
|
+
vn(() => {
|
|
1749
1753
|
var t = W;
|
|
1750
1754
|
if (u === (u = n() ?? "")) {
|
|
1751
|
-
C &&
|
|
1755
|
+
C && we();
|
|
1752
1756
|
return;
|
|
1753
1757
|
}
|
|
1754
1758
|
if (a && !C) {
|
|
1755
|
-
t.nodes = null, d.innerHTML = u, u !== "" &&
|
|
1759
|
+
t.nodes = null, d.innerHTML = u, u !== "" && ar(/* @__PURE__ */ P(d), d.lastChild);
|
|
1756
1760
|
return;
|
|
1757
1761
|
}
|
|
1758
|
-
if (t.nodes !== null && (
|
|
1762
|
+
if (t.nodes !== null && (Cn(t.nodes.start, t.nodes.end), t.nodes = null), u !== "") {
|
|
1759
1763
|
if (C) {
|
|
1760
|
-
for (var c = w.data, f =
|
|
1761
|
-
if (f === null) throw
|
|
1762
|
-
|
|
1764
|
+
for (var c = w.data, f = we(), p = f; f !== null && (f.nodeType !== 8 || f.data !== "");) p = f, f = /* @__PURE__ */ F(f);
|
|
1765
|
+
if (f === null) throw xe(), e;
|
|
1766
|
+
ar(w, p), l = T(f);
|
|
1763
1767
|
return;
|
|
1764
1768
|
}
|
|
1765
|
-
var m =
|
|
1769
|
+
var m = rn(o ? "svg" : s ? "math" : "template", o ? r : s ? i : void 0);
|
|
1766
1770
|
m.innerHTML = u;
|
|
1767
1771
|
var h = o || s ? m : m.content;
|
|
1768
|
-
if (
|
|
1772
|
+
if (ar(/* @__PURE__ */ P(h), h.lastChild), o || s) for (; /* @__PURE__ */ P(h);) l.before(/* @__PURE__ */ P(h));
|
|
1769
1773
|
else l.before(h);
|
|
1770
1774
|
}
|
|
1771
1775
|
});
|
|
1772
1776
|
}
|
|
1773
1777
|
//#endregion
|
|
1774
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
1775
|
-
function
|
|
1776
|
-
|
|
1778
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/css.js
|
|
1779
|
+
function wr(e, t) {
|
|
1780
|
+
hn(() => {
|
|
1777
1781
|
e = W?.parent?.nodes?.start ?? e;
|
|
1778
1782
|
var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
|
|
1779
1783
|
if (!r.querySelector("#" + t.hash)) {
|
|
1780
|
-
let e =
|
|
1784
|
+
let e = rn("style");
|
|
1781
1785
|
e.id = t.hash, e.textContent = t.code, r.appendChild(e);
|
|
1782
1786
|
}
|
|
1783
1787
|
});
|
|
1784
1788
|
}
|
|
1785
1789
|
//#endregion
|
|
1786
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
1787
|
-
var
|
|
1788
|
-
function
|
|
1789
|
-
var i =
|
|
1790
|
-
C && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName ===
|
|
1791
|
-
}
|
|
1792
|
-
function
|
|
1793
|
-
return e[
|
|
1794
|
-
[
|
|
1795
|
-
[
|
|
1790
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/attributes.js
|
|
1791
|
+
var Tr = Symbol("is custom element"), Er = Symbol("is html"), Dr = ye ? "link" : "LINK";
|
|
1792
|
+
function Or(e, t, n, r) {
|
|
1793
|
+
var i = kr(e);
|
|
1794
|
+
C && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Dr) || i[t] !== (i[t] = n) && (t === "loading" && (e[pe] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && jr(e).has(t) ? e[t] = n : e.setAttribute(t, n));
|
|
1795
|
+
}
|
|
1796
|
+
function kr(e) {
|
|
1797
|
+
return e[me] ??= {
|
|
1798
|
+
[Tr]: e.nodeName.includes("-"),
|
|
1799
|
+
[Er]: e.namespaceURI === n
|
|
1796
1800
|
};
|
|
1797
1801
|
}
|
|
1798
|
-
var
|
|
1799
|
-
function
|
|
1800
|
-
var t = e.getAttribute("is") || e.nodeName, n =
|
|
1802
|
+
var Ar = /* @__PURE__ */ new Map();
|
|
1803
|
+
function jr(e) {
|
|
1804
|
+
var t = e.getAttribute("is") || e.nodeName, n = Ar.get(t);
|
|
1801
1805
|
if (n) return n;
|
|
1802
|
-
|
|
1806
|
+
Ar.set(t, n = /* @__PURE__ */ new Set());
|
|
1803
1807
|
for (var r, i = e, a = Element.prototype; a !== i;) {
|
|
1804
1808
|
for (var o in r = f(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.add(o);
|
|
1805
1809
|
i = h(i);
|
|
@@ -1807,23 +1811,23 @@ function Nr(e) {
|
|
|
1807
1811
|
return n;
|
|
1808
1812
|
}
|
|
1809
1813
|
//#endregion
|
|
1810
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
1811
|
-
function
|
|
1812
|
-
return e === t || e?.[
|
|
1814
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
|
|
1815
|
+
function Mr(e, t) {
|
|
1816
|
+
return e === t || e?.[ue] === t;
|
|
1813
1817
|
}
|
|
1814
|
-
function
|
|
1818
|
+
function Nr(e = Ke(), t, n, r) {
|
|
1815
1819
|
var i = E.r, a = W;
|
|
1816
|
-
return
|
|
1820
|
+
return hn(() => {
|
|
1817
1821
|
var o, s;
|
|
1818
|
-
return
|
|
1819
|
-
o = s, s = r?.() || [],
|
|
1820
|
-
|
|
1822
|
+
return _n(() => {
|
|
1823
|
+
o = s, s = r?.() || [], Yn(() => {
|
|
1824
|
+
Mr(n(...s), e) || (t(e, ...s), o && Mr(n(...o), e) && t(null, ...o));
|
|
1821
1825
|
});
|
|
1822
1826
|
}), () => {
|
|
1823
1827
|
let r = a;
|
|
1824
1828
|
for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
|
|
1825
1829
|
let o = () => {
|
|
1826
|
-
s &&
|
|
1830
|
+
s && Mr(n(...s), e) && t(null, ...s);
|
|
1827
1831
|
}, c = r.teardown;
|
|
1828
1832
|
r.teardown = () => {
|
|
1829
1833
|
o(), c?.();
|
|
@@ -1832,16 +1836,27 @@ function Fr(e = qe(), t, n, r) {
|
|
|
1832
1836
|
}), e;
|
|
1833
1837
|
}
|
|
1834
1838
|
//#endregion
|
|
1835
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
1839
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/store.js
|
|
1840
|
+
var Pr = !1;
|
|
1841
|
+
function Fr(e) {
|
|
1842
|
+
var t = Pr;
|
|
1843
|
+
try {
|
|
1844
|
+
return Pr = !1, [e(), Pr];
|
|
1845
|
+
} finally {
|
|
1846
|
+
Pr = t;
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
//#endregion
|
|
1850
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/props.js
|
|
1836
1851
|
function Ir(e, t, n, r) {
|
|
1837
|
-
var i = !0, a = (n & 8) != 0, o = (n & 16) != 0, s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */
|
|
1852
|
+
var i = !0, a = (n & 8) != 0, o = (n & 16) != 0, s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ ot(r), X(l)) : (c && (c = !1, s = o ? Yn(r) : r), s);
|
|
1838
1853
|
let f;
|
|
1839
1854
|
if (a) {
|
|
1840
|
-
var p =
|
|
1855
|
+
var p = ue in e || fe in e;
|
|
1841
1856
|
f = d(e, t)?.set ?? (p && t in e ? (n) => e[t] = n : void 0);
|
|
1842
1857
|
}
|
|
1843
1858
|
var m, h = !1;
|
|
1844
|
-
a ? [m, h] =
|
|
1859
|
+
a ? [m, h] = Fr(() => e[t]) : m = e[t], m === void 0 && r !== void 0 && (m = u(), f && (i && Re(t), f(m)));
|
|
1845
1860
|
var g = i ? () => {
|
|
1846
1861
|
var n = e[t];
|
|
1847
1862
|
return n === void 0 ? u() : (c = !0, n);
|
|
@@ -1856,19 +1871,19 @@ function Ir(e, t, n, r) {
|
|
|
1856
1871
|
return arguments.length > 0 ? ((!i || !t || ee || h) && f(t ? g() : e), e) : g();
|
|
1857
1872
|
});
|
|
1858
1873
|
}
|
|
1859
|
-
var _ = !1, v = (n & 1 ?
|
|
1874
|
+
var _ = !1, v = (n & 1 ? ot : ut)(() => (_ = !1, g()));
|
|
1860
1875
|
a && X(v);
|
|
1861
1876
|
var y = W;
|
|
1862
1877
|
return (function(e, t) {
|
|
1863
1878
|
if (arguments.length > 0) {
|
|
1864
|
-
let n = t ? X(v) : i && a ?
|
|
1879
|
+
let n = t ? X(v) : i && a ? Wt(e) : e;
|
|
1865
1880
|
return N(v, n), _ = !0, s !== void 0 && (s = n), e;
|
|
1866
1881
|
}
|
|
1867
1882
|
return B && _ || y.f & 16384 ? v.v : X(v);
|
|
1868
1883
|
});
|
|
1869
1884
|
}
|
|
1870
1885
|
//#endregion
|
|
1871
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
1886
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/legacy/legacy-client.js
|
|
1872
1887
|
function Lr(e) {
|
|
1873
1888
|
return new Rr(e);
|
|
1874
1889
|
}
|
|
@@ -1877,7 +1892,7 @@ var Rr = class {
|
|
|
1877
1892
|
#t;
|
|
1878
1893
|
constructor(e) {
|
|
1879
1894
|
var t = /* @__PURE__ */ new Map(), n = (e, n) => {
|
|
1880
|
-
var r = /* @__PURE__ */
|
|
1895
|
+
var r = /* @__PURE__ */ Lt(n, !1, !1);
|
|
1881
1896
|
return t.set(e, r), r;
|
|
1882
1897
|
};
|
|
1883
1898
|
let r = new Proxy({
|
|
@@ -1888,13 +1903,13 @@ var Rr = class {
|
|
|
1888
1903
|
return X(t.get(r) ?? n(r, Reflect.get(e, r)));
|
|
1889
1904
|
},
|
|
1890
1905
|
has(e, r) {
|
|
1891
|
-
return r ===
|
|
1906
|
+
return r === fe ? !0 : (X(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
|
|
1892
1907
|
},
|
|
1893
1908
|
set(e, r, i) {
|
|
1894
1909
|
return N(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
|
|
1895
1910
|
}
|
|
1896
1911
|
});
|
|
1897
|
-
this.#t = (e.hydrate ?
|
|
1912
|
+
this.#t = (e.hydrate ? gr : hr)(e.component, {
|
|
1898
1913
|
target: e.target,
|
|
1899
1914
|
anchor: e.anchor,
|
|
1900
1915
|
props: r,
|
|
@@ -1902,7 +1917,7 @@ var Rr = class {
|
|
|
1902
1917
|
intro: e.intro ?? !1,
|
|
1903
1918
|
recover: e.recover,
|
|
1904
1919
|
transformError: e.transformError
|
|
1905
|
-
}), (!e?.props?.$$host || e.sync === !1) &&
|
|
1920
|
+
}), (!e?.props?.$$host || e.sync === !1) && Et(), this.#e = r.$$events;
|
|
1906
1921
|
for (let e of Object.keys(this.#t)) e === "$set" || e === "$destroy" || e === "$on" || u(this, e, {
|
|
1907
1922
|
get() {
|
|
1908
1923
|
return this.#t[e];
|
|
@@ -1915,7 +1930,7 @@ var Rr = class {
|
|
|
1915
1930
|
this.#t.$set = (e) => {
|
|
1916
1931
|
Object.assign(r, e);
|
|
1917
1932
|
}, this.#t.$destroy = () => {
|
|
1918
|
-
|
|
1933
|
+
br(this.#t);
|
|
1919
1934
|
};
|
|
1920
1935
|
}
|
|
1921
1936
|
$set(e) {
|
|
@@ -1965,8 +1980,8 @@ typeof HTMLElement == "function" && (zr = class extends HTMLElement {
|
|
|
1965
1980
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
1966
1981
|
function e(e) {
|
|
1967
1982
|
return (t) => {
|
|
1968
|
-
let n =
|
|
1969
|
-
e !== "default" && (n.name = e),
|
|
1983
|
+
let n = rn("slot");
|
|
1984
|
+
e !== "default" && (n.name = e), sr(t, n);
|
|
1970
1985
|
};
|
|
1971
1986
|
}
|
|
1972
1987
|
let t = {}, n = Vr(this);
|
|
@@ -1984,8 +1999,8 @@ typeof HTMLElement == "function" && (zr = class extends HTMLElement {
|
|
|
1984
1999
|
$$slots: t,
|
|
1985
2000
|
$$host: this
|
|
1986
2001
|
}
|
|
1987
|
-
}), this.$$me =
|
|
1988
|
-
|
|
2002
|
+
}), this.$$me = pn(() => {
|
|
2003
|
+
_n(() => {
|
|
1989
2004
|
this.$$r = !0;
|
|
1990
2005
|
for (let e of l(this.$$c)) {
|
|
1991
2006
|
if (!this.$$p_d[e]?.reflect) continue;
|
|
@@ -2248,24 +2263,20 @@ function Di() {
|
|
|
2248
2263
|
let e = window[Si];
|
|
2249
2264
|
return typeof e?.renderMath == "function" ? e : null;
|
|
2250
2265
|
}
|
|
2251
|
-
|
|
2252
|
-
let e = qr();
|
|
2253
|
-
e && Kr("legacy-renderer-delegation", `window['${Si}'] renders this element's math with MathJax ${e}`);
|
|
2254
|
-
}
|
|
2255
|
-
var ki = async (e) => {
|
|
2266
|
+
var Oi = async (e) => {
|
|
2256
2267
|
if (typeof window > "u") return;
|
|
2257
2268
|
let t = typeof e == "string", n;
|
|
2258
2269
|
t ? (n = document.createElement("div"), n.innerHTML = e) : n = e || document.body;
|
|
2259
2270
|
let r = Di();
|
|
2260
|
-
return r ?
|
|
2261
|
-
},
|
|
2271
|
+
return r ? await r.renderMath?.(n) : await Ei()(n), t ? n.innerHTML : void 0;
|
|
2272
|
+
}, ki = [
|
|
2262
2273
|
"nbsp iexcl cent pound curren yen brvbar sect uml copy ordf laquo not shy reg macr",
|
|
2263
2274
|
"deg plusmn sup2 sup3 acute micro para middot cedil sup1 ordm raquo frac14 frac12 frac34 iquest",
|
|
2264
2275
|
"Agrave Aacute Acirc Atilde Auml Aring AElig Ccedil Egrave Eacute Ecirc Euml Igrave Iacute Icirc Iuml",
|
|
2265
2276
|
"ETH Ntilde Ograve Oacute Ocirc Otilde Ouml times Oslash Ugrave Uacute Ucirc Uuml Yacute THORN szlig",
|
|
2266
2277
|
"agrave aacute acirc atilde auml aring aelig ccedil egrave eacute ecirc euml igrave iacute icirc iuml",
|
|
2267
2278
|
"eth ntilde ograve oacute ocirc otilde ouml divide oslash ugrave uacute ucirc uuml yacute thorn yuml"
|
|
2268
|
-
].join(" "),
|
|
2279
|
+
].join(" "), Ai = "alpha beta gamma delta epsilon zeta eta theta iota kappa lambda mu nu xi omicron pi rho sigmaf sigma tau upsilon phi chi psi omega", ji = new Map(Object.entries({
|
|
2269
2280
|
quot: 34,
|
|
2270
2281
|
amp: 38,
|
|
2271
2282
|
apos: 39,
|
|
@@ -2296,16 +2307,16 @@ var ki = async (e) => {
|
|
|
2296
2307
|
le: 8804,
|
|
2297
2308
|
ge: 8805
|
|
2298
2309
|
}));
|
|
2299
|
-
for (let [e, t] of
|
|
2300
|
-
for (let [e, t] of
|
|
2301
|
-
var
|
|
2310
|
+
for (let [e, t] of ki.split(" ").entries()) ji.set(t, 160 + e);
|
|
2311
|
+
for (let [e, t] of Ai.split(" ").entries()) ji.set(t, 945 + e), t !== "sigmaf" && ji.set(t[0].toUpperCase() + t.slice(1), 913 + e);
|
|
2312
|
+
var Mi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Ni = /<\/?[a-z][^>]*>|<!--[\s\S]*?-->/gi, Pi = /&(#[0-9]+|#x[0-9a-f]+|[a-z][a-z0-9]*);/gi, Fi = (e, t) => {
|
|
2302
2313
|
if (t[0] === "#") {
|
|
2303
2314
|
let e = t[1] === "x" || t[1] === "X", n = Number.parseInt(t.slice(e ? 2 : 1), e ? 16 : 10), r = n > 0 && n <= 1114111 && (n < 55296 || n > 57343);
|
|
2304
2315
|
return String.fromCodePoint(r ? n : 65533);
|
|
2305
2316
|
}
|
|
2306
|
-
let n =
|
|
2317
|
+
let n = ji.get(t);
|
|
2307
2318
|
return n === void 0 ? e : String.fromCodePoint(n);
|
|
2308
|
-
},
|
|
2319
|
+
}, Ii = (e) => typeof e == "string" ? e.replace(Mi, " ").replace(Ni, "").replace(Pi, Fi).replace(/\s+/g, " ").trim() : "", Li = {
|
|
2309
2320
|
translation: {
|
|
2310
2321
|
categorize: {
|
|
2311
2322
|
limitMaxChoicesPerCategory: "You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",
|
|
@@ -2445,7 +2456,7 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
|
|
|
2445
2456
|
hideNote: "Hide Note",
|
|
2446
2457
|
cancel: "Cancel"
|
|
2447
2458
|
}
|
|
2448
|
-
},
|
|
2459
|
+
}, Ri = {
|
|
2449
2460
|
translation: {
|
|
2450
2461
|
categorize: {
|
|
2451
2462
|
limitMaxChoicesPerCategory: "Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",
|
|
@@ -2585,55 +2596,55 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
|
|
|
2585
2596
|
hideNote: "Ocultar Nota",
|
|
2586
2597
|
cancel: "Cancelar"
|
|
2587
2598
|
}
|
|
2588
|
-
}, Z = (e) => typeof e == "string",
|
|
2599
|
+
}, Z = (e) => typeof e == "string", zi = () => {
|
|
2589
2600
|
let e, t, n = new Promise((n, r) => {
|
|
2590
2601
|
e = n, t = r;
|
|
2591
2602
|
});
|
|
2592
2603
|
return n.resolve = e, n.reject = t, n;
|
|
2593
|
-
},
|
|
2604
|
+
}, Bi = (e) => e == null ? "" : "" + e, Vi = (e, t, n) => {
|
|
2594
2605
|
e.forEach((e) => {
|
|
2595
2606
|
t[e] && (n[e] = t[e]);
|
|
2596
2607
|
});
|
|
2597
|
-
},
|
|
2608
|
+
}, Hi = /###/g, Ui = (e) => e && e.indexOf("###") > -1 ? e.replace(Hi, ".") : e, Wi = (e) => !e || Z(e), Gi = (e, t, n) => {
|
|
2598
2609
|
let r = Z(t) ? t.split(".") : t, i = 0;
|
|
2599
2610
|
for (; i < r.length - 1;) {
|
|
2600
|
-
if (
|
|
2601
|
-
let t =
|
|
2611
|
+
if (Wi(e)) return {};
|
|
2612
|
+
let t = Ui(r[i]);
|
|
2602
2613
|
!e[t] && n && (e[t] = new n()), e = Object.prototype.hasOwnProperty.call(e, t) ? e[t] : {}, ++i;
|
|
2603
2614
|
}
|
|
2604
|
-
return
|
|
2615
|
+
return Wi(e) ? {} : {
|
|
2605
2616
|
obj: e,
|
|
2606
|
-
k:
|
|
2617
|
+
k: Ui(r[i])
|
|
2607
2618
|
};
|
|
2608
|
-
},
|
|
2609
|
-
let { obj: r, k: i } =
|
|
2619
|
+
}, Ki = (e, t, n) => {
|
|
2620
|
+
let { obj: r, k: i } = Gi(e, t, Object);
|
|
2610
2621
|
if (r !== void 0 || t.length === 1) {
|
|
2611
2622
|
r[i] = n;
|
|
2612
2623
|
return;
|
|
2613
2624
|
}
|
|
2614
|
-
let a = t[t.length - 1], o = t.slice(0, t.length - 1), s =
|
|
2615
|
-
for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s =
|
|
2625
|
+
let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = Gi(e, o, Object);
|
|
2626
|
+
for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = Gi(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
|
|
2616
2627
|
s.obj[`${s.k}.${a}`] = n;
|
|
2617
|
-
},
|
|
2618
|
-
let { obj: i, k: a } =
|
|
2628
|
+
}, qi = (e, t, n, r) => {
|
|
2629
|
+
let { obj: i, k: a } = Gi(e, t, Object);
|
|
2619
2630
|
i[a] = i[a] || [], i[a].push(n);
|
|
2620
|
-
},
|
|
2621
|
-
let { obj: n, k: r } =
|
|
2631
|
+
}, Ji = (e, t) => {
|
|
2632
|
+
let { obj: n, k: r } = Gi(e, t);
|
|
2622
2633
|
if (n && Object.prototype.hasOwnProperty.call(n, r)) return n[r];
|
|
2634
|
+
}, Yi = (e, t, n) => {
|
|
2635
|
+
let r = Ji(e, n);
|
|
2636
|
+
return r === void 0 ? Ji(t, n) : r;
|
|
2623
2637
|
}, Xi = (e, t, n) => {
|
|
2624
|
-
let r =
|
|
2625
|
-
return r === void 0 ? Yi(t, n) : r;
|
|
2626
|
-
}, Zi = (e, t, n) => {
|
|
2627
|
-
for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ? Z(e[r]) || e[r] instanceof String || Z(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : Zi(e[r], t[r], n) : e[r] = t[r]);
|
|
2638
|
+
for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ? Z(e[r]) || e[r] instanceof String || Z(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : Xi(e[r], t[r], n) : e[r] = t[r]);
|
|
2628
2639
|
return e;
|
|
2629
|
-
},
|
|
2640
|
+
}, Zi = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), Qi = {
|
|
2630
2641
|
"&": "&",
|
|
2631
2642
|
"<": "<",
|
|
2632
2643
|
">": ">",
|
|
2633
2644
|
"\"": """,
|
|
2634
2645
|
"'": "'",
|
|
2635
2646
|
"/": "/"
|
|
2636
|
-
},
|
|
2647
|
+
}, $i = (e) => Z(e) ? e.replace(/[&<>"'\/]/g, (e) => Qi[e]) : e, ea = class {
|
|
2637
2648
|
constructor(e) {
|
|
2638
2649
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
2639
2650
|
}
|
|
@@ -2643,23 +2654,23 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
|
|
|
2643
2654
|
let n = new RegExp(e);
|
|
2644
2655
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
|
|
2645
2656
|
}
|
|
2646
|
-
},
|
|
2657
|
+
}, ta = [
|
|
2647
2658
|
" ",
|
|
2648
2659
|
",",
|
|
2649
2660
|
"?",
|
|
2650
2661
|
"!",
|
|
2651
2662
|
";"
|
|
2652
|
-
],
|
|
2663
|
+
], na = new ea(20), ra = (e, t, n) => {
|
|
2653
2664
|
t ||= "", n ||= "";
|
|
2654
|
-
let r =
|
|
2665
|
+
let r = ta.filter((e) => t.indexOf(e) < 0 && n.indexOf(e) < 0);
|
|
2655
2666
|
if (r.length === 0) return !0;
|
|
2656
|
-
let i =
|
|
2667
|
+
let i = na.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
|
|
2657
2668
|
if (!a) {
|
|
2658
2669
|
let t = e.indexOf(n);
|
|
2659
2670
|
t > 0 && !i.test(e.substring(0, t)) && (a = !0);
|
|
2660
2671
|
}
|
|
2661
2672
|
return a;
|
|
2662
|
-
},
|
|
2673
|
+
}, ia = (e, t, n = ".") => {
|
|
2663
2674
|
if (!e) return;
|
|
2664
2675
|
if (e[t]) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0;
|
|
2665
2676
|
let r = t.split(n), i = e;
|
|
@@ -2678,7 +2689,7 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
|
|
|
2678
2689
|
i = t;
|
|
2679
2690
|
}
|
|
2680
2691
|
return i;
|
|
2681
|
-
},
|
|
2692
|
+
}, aa = (e) => e?.replace(/_/g, "-"), oa = {
|
|
2682
2693
|
type: "logger",
|
|
2683
2694
|
log(e) {
|
|
2684
2695
|
this.output("log", e);
|
|
@@ -2697,7 +2708,7 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
|
|
|
2697
2708
|
this.init(e, t);
|
|
2698
2709
|
}
|
|
2699
2710
|
init(e, t = {}) {
|
|
2700
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
2711
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || oa, this.options = t, this.debug = t.debug;
|
|
2701
2712
|
}
|
|
2702
2713
|
log(...e) {
|
|
2703
2714
|
return this.forward(e, "log", "", !0);
|
|
@@ -2723,7 +2734,7 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
|
|
|
2723
2734
|
clone(t) {
|
|
2724
2735
|
return t ||= this.options, t.prefix = t.prefix || this.prefix, new e(this.logger, t);
|
|
2725
2736
|
}
|
|
2726
|
-
}(),
|
|
2737
|
+
}(), sa = class {
|
|
2727
2738
|
constructor() {
|
|
2728
2739
|
this.observers = {};
|
|
2729
2740
|
}
|
|
@@ -2750,7 +2761,7 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
|
|
|
2750
2761
|
for (let i = 0; i < r; i++) n.apply(n, [e, ...t]);
|
|
2751
2762
|
});
|
|
2752
2763
|
}
|
|
2753
|
-
},
|
|
2764
|
+
}, ca = class extends sa {
|
|
2754
2765
|
constructor(e, t = {
|
|
2755
2766
|
ns: ["translation"],
|
|
2756
2767
|
defaultNS: "translation"
|
|
@@ -2767,12 +2778,12 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
|
|
|
2767
2778
|
getResource(e, t, n, r = {}) {
|
|
2768
2779
|
let i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = r.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r.ignoreJSONStructure, o;
|
|
2769
2780
|
e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : Z(n) && i ? o.push(...n.split(i)) : o.push(n)));
|
|
2770
|
-
let s =
|
|
2771
|
-
return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !Z(n) ? s :
|
|
2781
|
+
let s = Ji(this.data, o);
|
|
2782
|
+
return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !Z(n) ? s : ia(this.data?.[e]?.[t], n, i);
|
|
2772
2783
|
}
|
|
2773
2784
|
addResource(e, t, n, r, i = { silent: !1 }) {
|
|
2774
2785
|
let a = i.keySeparator === void 0 ? this.options.keySeparator : i.keySeparator, o = [e, t];
|
|
2775
|
-
n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t),
|
|
2786
|
+
n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), Ki(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
|
|
2776
2787
|
}
|
|
2777
2788
|
addResources(e, t, n, r = { silent: !1 }) {
|
|
2778
2789
|
for (let r in n) (Z(n[r]) || Array.isArray(n[r])) && this.addResource(e, t, r, n[r], { silent: !0 });
|
|
@@ -2784,11 +2795,11 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
|
|
|
2784
2795
|
}) {
|
|
2785
2796
|
let o = [e, t];
|
|
2786
2797
|
e.indexOf(".") > -1 && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
|
|
2787
|
-
let s =
|
|
2788
|
-
a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ?
|
|
2798
|
+
let s = Ji(this.data, o) || {};
|
|
2799
|
+
a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? Xi(s, n, i) : s = {
|
|
2789
2800
|
...s,
|
|
2790
2801
|
...n
|
|
2791
|
-
},
|
|
2802
|
+
}, Ki(this.data, o, s), a.silent || this.emit("added", e, t, n);
|
|
2792
2803
|
}
|
|
2793
2804
|
removeResourceBundle(e, t) {
|
|
2794
2805
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -2809,7 +2820,7 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
|
|
|
2809
2820
|
toJSON() {
|
|
2810
2821
|
return this.data;
|
|
2811
2822
|
}
|
|
2812
|
-
},
|
|
2823
|
+
}, la = {
|
|
2813
2824
|
processors: {},
|
|
2814
2825
|
addPostProcessor(e) {
|
|
2815
2826
|
this.processors[e.name] = e;
|
|
@@ -2819,22 +2830,22 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
|
|
|
2819
2830
|
t = this.processors[e]?.process(t, n, r, i) ?? t;
|
|
2820
2831
|
}), t;
|
|
2821
2832
|
}
|
|
2822
|
-
},
|
|
2823
|
-
function
|
|
2833
|
+
}, ua = Symbol("i18next/PATH_KEY");
|
|
2834
|
+
function da() {
|
|
2824
2835
|
let e = [], t = Object.create(null), n;
|
|
2825
|
-
return t.get = (r, i) => (n?.revoke?.(), i ===
|
|
2836
|
+
return t.get = (r, i) => (n?.revoke?.(), i === ua ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
|
|
2826
2837
|
}
|
|
2827
|
-
function
|
|
2828
|
-
let { [
|
|
2838
|
+
function fa(e, t) {
|
|
2839
|
+
let { [ua]: n } = e(da()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":";
|
|
2829
2840
|
if (n.length > 1 && i) {
|
|
2830
2841
|
let e = t?.ns, a = Array.isArray(e) ? e : null;
|
|
2831
2842
|
if (a && a.length > 1 && a.slice(1).includes(n[0])) return `${n[0]}${i}${n.slice(1).join(r)}`;
|
|
2832
2843
|
}
|
|
2833
2844
|
return n.join(r);
|
|
2834
2845
|
}
|
|
2835
|
-
var
|
|
2846
|
+
var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number", ha = class e extends sa {
|
|
2836
2847
|
constructor(e, t = {}) {
|
|
2837
|
-
super(),
|
|
2848
|
+
super(), Vi([
|
|
2838
2849
|
"resourceStore",
|
|
2839
2850
|
"languageUtils",
|
|
2840
2851
|
"pluralResolver",
|
|
@@ -2852,13 +2863,13 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
2852
2863
|
if (e == null) return !1;
|
|
2853
2864
|
let r = this.resolve(e, n);
|
|
2854
2865
|
if (r?.res === void 0) return !1;
|
|
2855
|
-
let i =
|
|
2866
|
+
let i = ma(r.res);
|
|
2856
2867
|
return !(n.returnObjects === !1 && i);
|
|
2857
2868
|
}
|
|
2858
2869
|
extractFromKey(e, t) {
|
|
2859
2870
|
let n = t.nsSeparator === void 0 ? this.options.nsSeparator : t.nsSeparator;
|
|
2860
2871
|
n === void 0 && (n = ":");
|
|
2861
|
-
let r = t.keySeparator === void 0 ? this.options.keySeparator : t.keySeparator, i = t.ns || this.options.defaultNS || [], a = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !
|
|
2872
|
+
let r = t.keySeparator === void 0 ? this.options.keySeparator : t.keySeparator, i = t.ns || this.options.defaultNS || [], a = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !ra(e, n, r);
|
|
2862
2873
|
if (a && !o) {
|
|
2863
2874
|
let t = e.match(this.interpolator.nestingRegexp);
|
|
2864
2875
|
if (t && t.length > 0) return {
|
|
@@ -2876,10 +2887,10 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
2876
2887
|
translate(t, n, r) {
|
|
2877
2888
|
let i = typeof n == "object" ? { ...n } : n;
|
|
2878
2889
|
if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof i == "object" && (i = { ...i }), i ||= {}, t == null) return "";
|
|
2879
|
-
typeof t == "function" && (t =
|
|
2890
|
+
typeof t == "function" && (t = fa(t, {
|
|
2880
2891
|
...this.options,
|
|
2881
2892
|
...i
|
|
2882
|
-
})), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ?
|
|
2893
|
+
})), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? fa(e, {
|
|
2883
2894
|
...this.options,
|
|
2884
2895
|
...i
|
|
2885
2896
|
}) : String(e));
|
|
@@ -2907,7 +2918,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
2907
2918
|
"[object RegExp]"
|
|
2908
2919
|
], _ = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays, v = !this.i18nFormat || this.i18nFormat.handleAsObject, y = i.count !== void 0 && !Z(i.count), b = e.hasDefaultValue(i), te = y ? this.pluralResolver.getSuffix(d, i.count, i) : "", ne = i.ordinal && y ? this.pluralResolver.getSuffix(d, i.count, { ordinal: !1 }) : "", re = y && !i.ordinal && i.count === 0, x = re && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${te}`] || i[`defaultValue${ne}`] || i.defaultValue, S = m;
|
|
2909
2920
|
v && !m && b && (S = x);
|
|
2910
|
-
let ie =
|
|
2921
|
+
let ie = ma(S), ae = Object.prototype.toString.apply(S);
|
|
2911
2922
|
if (v && S && ie && ee.indexOf(ae) < 0 && !(Z(_) && Array.isArray(S))) {
|
|
2912
2923
|
if (!i.returnObjects && !this.options.returnObjects) {
|
|
2913
2924
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
@@ -2923,7 +2934,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
2923
2934
|
let r = `${n}${o}${e}`;
|
|
2924
2935
|
b && !m ? t[e] = this.translate(r, {
|
|
2925
2936
|
...i,
|
|
2926
|
-
defaultValue:
|
|
2937
|
+
defaultValue: ma(x) ? x[e] : void 0,
|
|
2927
2938
|
joinArrays: !1,
|
|
2928
2939
|
ns: c
|
|
2929
2940
|
}) : t[e] = this.translate(r, {
|
|
@@ -2994,7 +3005,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
2994
3005
|
!n.lng && r && r.res && (n.lng = this.language || r.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...e) => i?.[0] === e[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`), null) : this.translate(...e, t), n)), n.interpolation && this.interpolator.reset();
|
|
2995
3006
|
}
|
|
2996
3007
|
let a = n.postProcess || this.options.postProcess, o = Z(a) ? [a] : a;
|
|
2997
|
-
return e != null && o?.length && n.applyPostProcessor !== !1 && (e =
|
|
3008
|
+
return e != null && o?.length && n.applyPostProcessor !== !1 && (e = la.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
2998
3009
|
i18nResolved: {
|
|
2999
3010
|
...r,
|
|
3000
3011
|
usedParams: this.getUsedParamsDetails(n)
|
|
@@ -3004,7 +3015,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3004
3015
|
}
|
|
3005
3016
|
resolve(e, t = {}) {
|
|
3006
3017
|
let n, r, i, a, o;
|
|
3007
|
-
return Z(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ?
|
|
3018
|
+
return Z(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? fa(e, {
|
|
3008
3019
|
...this.options,
|
|
3009
3020
|
...t
|
|
3010
3021
|
}) : e)), e.forEach((e) => {
|
|
@@ -3015,7 +3026,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3015
3026
|
this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
|
|
3016
3027
|
let u = t.count !== void 0 && !Z(t.count), d = u && !t.ordinal && t.count === 0, f = t.context !== void 0 && (Z(t.context) || typeof t.context == "number") && t.context !== "", p = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
3017
3028
|
l.forEach((e) => {
|
|
3018
|
-
this.isValidLookup(n) || (o = e, !
|
|
3029
|
+
this.isValidLookup(n) || (o = e, !pa[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (pa[`${p[0]}-${e}`] = !0, this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), p.forEach((r) => {
|
|
3019
3030
|
if (this.isValidLookup(n)) return;
|
|
3020
3031
|
a = r;
|
|
3021
3032
|
let o = [c];
|
|
@@ -3078,17 +3089,17 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3078
3089
|
for (let t in e) if (Object.prototype.hasOwnProperty.call(e, t) && t.substring(0, 12) === "defaultValue" && e[t] !== void 0) return !0;
|
|
3079
3090
|
return !1;
|
|
3080
3091
|
}
|
|
3081
|
-
},
|
|
3092
|
+
}, ga = class {
|
|
3082
3093
|
constructor(e) {
|
|
3083
3094
|
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Q.create("languageUtils");
|
|
3084
3095
|
}
|
|
3085
3096
|
getScriptPartFromCode(e) {
|
|
3086
|
-
if (e =
|
|
3097
|
+
if (e = aa(e), !e || e.indexOf("-") < 0) return null;
|
|
3087
3098
|
let t = e.split("-");
|
|
3088
3099
|
return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
|
|
3089
3100
|
}
|
|
3090
3101
|
getLanguagePartFromCode(e) {
|
|
3091
|
-
if (e =
|
|
3102
|
+
if (e = aa(e), !e || e.indexOf("-") < 0) return e;
|
|
3092
3103
|
let t = e.split("-");
|
|
3093
3104
|
return this.formatLanguageCode(t[0]);
|
|
3094
3105
|
}
|
|
@@ -3138,17 +3149,17 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3138
3149
|
r.indexOf(e) < 0 && i(this.formatLanguageCode(e));
|
|
3139
3150
|
}), r;
|
|
3140
3151
|
}
|
|
3141
|
-
},
|
|
3152
|
+
}, _a = {
|
|
3142
3153
|
zero: 0,
|
|
3143
3154
|
one: 1,
|
|
3144
3155
|
two: 2,
|
|
3145
3156
|
few: 3,
|
|
3146
3157
|
many: 4,
|
|
3147
3158
|
other: 5
|
|
3148
|
-
},
|
|
3159
|
+
}, va = {
|
|
3149
3160
|
select: (e) => e === 1 ? "one" : "other",
|
|
3150
3161
|
resolvedOptions: () => ({ pluralCategories: ["one", "other"] })
|
|
3151
|
-
},
|
|
3162
|
+
}, ya = class {
|
|
3152
3163
|
constructor(e, t = {}) {
|
|
3153
3164
|
this.languageUtils = e, this.options = t, this.logger = Q.create("pluralResolver"), this.pluralRulesCache = {};
|
|
3154
3165
|
}
|
|
@@ -3156,7 +3167,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3156
3167
|
this.pluralRulesCache = {};
|
|
3157
3168
|
}
|
|
3158
3169
|
getRule(e, t = {}) {
|
|
3159
|
-
let n =
|
|
3170
|
+
let n = aa(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
|
|
3160
3171
|
cleanedCode: n,
|
|
3161
3172
|
type: r
|
|
3162
3173
|
});
|
|
@@ -3165,8 +3176,8 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3165
3176
|
try {
|
|
3166
3177
|
a = new Intl.PluralRules(n, { type: r });
|
|
3167
3178
|
} catch {
|
|
3168
|
-
if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"),
|
|
3169
|
-
if (!e.match(/-|_/)) return
|
|
3179
|
+
if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), va;
|
|
3180
|
+
if (!e.match(/-|_/)) return va;
|
|
3170
3181
|
let n = this.languageUtils.getLanguagePartFromCode(e);
|
|
3171
3182
|
a = this.getRule(n, t);
|
|
3172
3183
|
}
|
|
@@ -3181,23 +3192,23 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3181
3192
|
}
|
|
3182
3193
|
getSuffixes(e, t = {}) {
|
|
3183
3194
|
let n = this.getRule(e, t);
|
|
3184
|
-
return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) =>
|
|
3195
|
+
return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => _a[e] - _a[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
|
|
3185
3196
|
}
|
|
3186
3197
|
getSuffix(e, t, n = {}) {
|
|
3187
3198
|
let r = this.getRule(e, n);
|
|
3188
3199
|
return r ? `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${r.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, n));
|
|
3189
3200
|
}
|
|
3190
|
-
},
|
|
3191
|
-
let a =
|
|
3192
|
-
return !a && i && Z(n) && (a =
|
|
3193
|
-
},
|
|
3201
|
+
}, ba = (e, t, n, r = ".", i = !0) => {
|
|
3202
|
+
let a = Yi(e, t, n);
|
|
3203
|
+
return !a && i && Z(n) && (a = ia(e, n, r), a === void 0 && (a = ia(t, n, r))), a;
|
|
3204
|
+
}, xa = (e) => e.replace(/\$/g, "$$$$"), Sa = class {
|
|
3194
3205
|
constructor(e = {}) {
|
|
3195
3206
|
this.logger = Q.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((e) => e), this.init(e);
|
|
3196
3207
|
}
|
|
3197
3208
|
init(e = {}) {
|
|
3198
3209
|
e.interpolation ||= { escapeValue: !0 };
|
|
3199
3210
|
let { escape: t, escapeValue: n, useRawValueToEscape: r, prefix: i, prefixEscaped: a, suffix: o, suffixEscaped: s, formatSeparator: c, unescapeSuffix: l, unescapePrefix: u, nestingPrefix: d, nestingPrefixEscaped: f, nestingSuffix: p, nestingSuffixEscaped: m, nestingOptionsSeparator: h, maxReplaces: g, alwaysFormat: ee } = e.interpolation;
|
|
3200
|
-
this.escape = t === void 0 ?
|
|
3211
|
+
this.escape = t === void 0 ? $i : t, this.escapeValue = n === void 0 || n, this.useRawValueToEscape = r !== void 0 && r, this.prefix = i ? Zi(i) : a || "{{", this.suffix = o ? Zi(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? Zi(d) : f || Zi("$t("), this.nestingSuffix = p ? Zi(p) : m || Zi(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = ee !== void 0 && ee, this.resetRegExp();
|
|
3201
3212
|
}
|
|
3202
3213
|
reset() {
|
|
3203
3214
|
this.options && this.init(this.options);
|
|
@@ -3209,7 +3220,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3209
3220
|
interpolate(e, t, n, r) {
|
|
3210
3221
|
let i, a, o, s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (e) => {
|
|
3211
3222
|
if (e.indexOf(this.formatSeparator) < 0) {
|
|
3212
|
-
let i =
|
|
3223
|
+
let i = ba(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3213
3224
|
return this.alwaysFormat ? this.format(i, void 0, n, {
|
|
3214
3225
|
...r,
|
|
3215
3226
|
...t,
|
|
@@ -3217,7 +3228,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3217
3228
|
}) : i;
|
|
3218
3229
|
}
|
|
3219
3230
|
let i = e.split(this.formatSeparator), a = i.shift().trim(), o = i.join(this.formatSeparator).trim();
|
|
3220
|
-
return this.format(
|
|
3231
|
+
return this.format(ba(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
|
|
3221
3232
|
...r,
|
|
3222
3233
|
...t,
|
|
3223
3234
|
interpolationkey: a
|
|
@@ -3227,10 +3238,10 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3227
3238
|
let l = r?.missingInterpolationHandler || this.options.missingInterpolationHandler, u = r?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r.interpolation.skipOnVariables;
|
|
3228
3239
|
return [{
|
|
3229
3240
|
regex: this.regexpUnescape,
|
|
3230
|
-
safeValue: (e) =>
|
|
3241
|
+
safeValue: (e) => xa(e)
|
|
3231
3242
|
}, {
|
|
3232
3243
|
regex: this.regexp,
|
|
3233
|
-
safeValue: (e) => this.escapeValue ?
|
|
3244
|
+
safeValue: (e) => this.escapeValue ? xa(this.escape(e)) : xa(e)
|
|
3234
3245
|
}].forEach((t) => {
|
|
3235
3246
|
for (o = 0; i = t.regex.exec(e);) {
|
|
3236
3247
|
let n = i[1].trim();
|
|
@@ -3242,7 +3253,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3242
3253
|
a = i[0];
|
|
3243
3254
|
continue;
|
|
3244
3255
|
} else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`), a = "";
|
|
3245
|
-
else !Z(a) && !this.useRawValueToEscape && (a =
|
|
3256
|
+
else !Z(a) && !this.useRawValueToEscape && (a = Bi(a));
|
|
3246
3257
|
let s = t.safeValue(a);
|
|
3247
3258
|
if (e = e.replace(i[0], s), u ? (t.regex.lastIndex += a.length, t.regex.lastIndex -= i[0].length) : t.regex.lastIndex = 0, o++, o >= this.maxReplaces) break;
|
|
3248
3259
|
}
|
|
@@ -3252,7 +3263,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3252
3263
|
let r, i, a, o = (e, t) => {
|
|
3253
3264
|
let n = this.nestingOptionsSeparator;
|
|
3254
3265
|
if (e.indexOf(n) < 0) return e;
|
|
3255
|
-
let r = e.split(RegExp(`${
|
|
3266
|
+
let r = e.split(RegExp(`${Zi(n)}[ ]*{`)), i = `{${r[1]}`;
|
|
3256
3267
|
e = r[0], i = this.interpolate(i, a);
|
|
3257
3268
|
let o = i.match(/'/g), s = i.match(/"/g);
|
|
3258
3269
|
((o?.length ?? 0) % 2 == 0 && !s || (s?.length ?? 0) % 2 != 0) && (i = i.replace(/'/g, "\""));
|
|
@@ -3271,14 +3282,14 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3271
3282
|
a = { ...n }, a = a.replace && !Z(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
|
|
3272
3283
|
let c = /{.*}/.test(r[1]) ? r[1].lastIndexOf("}") + 1 : r[1].indexOf(this.formatSeparator);
|
|
3273
3284
|
if (c !== -1 && (s = r[1].slice(c).split(this.formatSeparator).map((e) => e.trim()).filter(Boolean), r[1] = r[1].slice(0, c)), i = t(o.call(this, r[1].trim(), a), a), i && r[0] === e && !Z(i)) return i;
|
|
3274
|
-
Z(i) || (i =
|
|
3285
|
+
Z(i) || (i = Bi(i)), i ||= (this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`), ""), s.length && (i = s.reduce((e, t) => this.format(e, t, n.lng, {
|
|
3275
3286
|
...n,
|
|
3276
3287
|
interpolationkey: r[1].trim()
|
|
3277
3288
|
}), i.trim())), e = e.replace(r[0], i), this.regexp.lastIndex = 0;
|
|
3278
3289
|
}
|
|
3279
3290
|
return e;
|
|
3280
3291
|
}
|
|
3281
|
-
},
|
|
3292
|
+
}, Ca = (e) => {
|
|
3282
3293
|
let t = e.toLowerCase().trim(), n = {};
|
|
3283
3294
|
if (e.indexOf("(") > -1) {
|
|
3284
3295
|
let r = e.split("(");
|
|
@@ -3295,7 +3306,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3295
3306
|
formatName: t,
|
|
3296
3307
|
formatOptions: n
|
|
3297
3308
|
};
|
|
3298
|
-
},
|
|
3309
|
+
}, wa = (e) => {
|
|
3299
3310
|
let t = {};
|
|
3300
3311
|
return (n, r, i) => {
|
|
3301
3312
|
let a = i;
|
|
@@ -3304,15 +3315,15 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3304
3315
|
[i.interpolationkey]: void 0
|
|
3305
3316
|
});
|
|
3306
3317
|
let o = r + JSON.stringify(a), s = t[o];
|
|
3307
|
-
return s || (s = e(
|
|
3318
|
+
return s || (s = e(aa(r), i), t[o] = s), s(n);
|
|
3308
3319
|
};
|
|
3309
|
-
},
|
|
3320
|
+
}, Ta = (e) => (t, n, r) => e(aa(n), r)(t), Ea = class {
|
|
3310
3321
|
constructor(e = {}) {
|
|
3311
3322
|
this.logger = Q.create("formatter"), this.options = e, this.init(e);
|
|
3312
3323
|
}
|
|
3313
3324
|
init(e, t = { interpolation: {} }) {
|
|
3314
3325
|
this.formatSeparator = t.interpolation.formatSeparator || ",";
|
|
3315
|
-
let n = t.cacheInBuiltFormats ?
|
|
3326
|
+
let n = t.cacheInBuiltFormats ? wa : Ta;
|
|
3316
3327
|
this.formats = {
|
|
3317
3328
|
number: n((e, t) => {
|
|
3318
3329
|
let n = new Intl.NumberFormat(e, { ...t });
|
|
@@ -3343,7 +3354,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3343
3354
|
this.formats[e.toLowerCase().trim()] = t;
|
|
3344
3355
|
}
|
|
3345
3356
|
addCached(e, t) {
|
|
3346
|
-
this.formats[e.toLowerCase().trim()] =
|
|
3357
|
+
this.formats[e.toLowerCase().trim()] = wa(t);
|
|
3347
3358
|
}
|
|
3348
3359
|
format(e, t, n, r = {}) {
|
|
3349
3360
|
let i = t.split(this.formatSeparator);
|
|
@@ -3352,7 +3363,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3352
3363
|
i[0] = [i[0], ...i.splice(1, e)].join(this.formatSeparator);
|
|
3353
3364
|
}
|
|
3354
3365
|
return i.reduce((e, t) => {
|
|
3355
|
-
let { formatName: i, formatOptions: a } =
|
|
3366
|
+
let { formatName: i, formatOptions: a } = Ca(t);
|
|
3356
3367
|
if (this.formats[i]) {
|
|
3357
3368
|
let t = e;
|
|
3358
3369
|
try {
|
|
@@ -3370,9 +3381,9 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3370
3381
|
return e;
|
|
3371
3382
|
}, e);
|
|
3372
3383
|
}
|
|
3373
|
-
},
|
|
3384
|
+
}, Da = (e, t) => {
|
|
3374
3385
|
e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
|
|
3375
|
-
},
|
|
3386
|
+
}, Oa = class extends sa {
|
|
3376
3387
|
constructor(e, t, n, r = {}) {
|
|
3377
3388
|
super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = r, this.logger = Q.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = r.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r.maxRetries >= 0 ? r.maxRetries : 5, this.retryTimeout = r.retryTimeout >= 1 ? r.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n, r.backend, r);
|
|
3378
3389
|
}
|
|
@@ -3402,7 +3413,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3402
3413
|
t && this.emit("failedLoading", i, a, t), !t && n && this.store.addResourceBundle(i, a, n, void 0, void 0, { skipCopy: !0 }), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
|
|
3403
3414
|
let o = {};
|
|
3404
3415
|
this.queue.forEach((n) => {
|
|
3405
|
-
|
|
3416
|
+
qi(n.loaded, [i], a), Da(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
|
|
3406
3417
|
o[e] || (o[e] = {});
|
|
3407
3418
|
let t = n.loaded[e];
|
|
3408
3419
|
t.length && t.forEach((t) => {
|
|
@@ -3492,7 +3503,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3492
3503
|
!e || !e[0] || this.store.addResource(e[0], t, n, r);
|
|
3493
3504
|
}
|
|
3494
3505
|
}
|
|
3495
|
-
},
|
|
3506
|
+
}, ka = () => ({
|
|
3496
3507
|
debug: !1,
|
|
3497
3508
|
initAsync: !0,
|
|
3498
3509
|
ns: ["translation"],
|
|
@@ -3549,15 +3560,15 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3549
3560
|
skipOnVariables: !0
|
|
3550
3561
|
},
|
|
3551
3562
|
cacheInBuiltFormats: !0
|
|
3552
|
-
}),
|
|
3563
|
+
}), Aa = (e) => (Z(e.ns) && (e.ns = [e.ns]), Z(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), Z(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs?.indexOf?.("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e), ja = () => {}, Ma = (e) => {
|
|
3553
3564
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((t) => {
|
|
3554
3565
|
typeof e[t] == "function" && (e[t] = e[t].bind(e));
|
|
3555
3566
|
});
|
|
3556
|
-
},
|
|
3557
|
-
typeof globalThis < "u" && (globalThis[
|
|
3558
|
-
},
|
|
3567
|
+
}, Na = "__i18next_supportNoticeShown", Pa = () => !!(typeof globalThis < "u" && globalThis[Na] || typeof process < "u" && process.env && process.env.I18NEXT_NO_SUPPORT_NOTICE || typeof process < "u" && process.env), Fa = () => {
|
|
3568
|
+
typeof globalThis < "u" && (globalThis[Na] = !0);
|
|
3569
|
+
}, Ia = (e) => !!(e?.modules?.backend?.name?.indexOf("Locize") > 0 || e?.modules?.backend?.constructor?.name?.indexOf("Locize") > 0 || e?.options?.backend?.backends && e.options.backend.backends.some((e) => e?.name?.indexOf("Locize") > 0 || e?.constructor?.name?.indexOf("Locize") > 0) || e?.options?.backend?.projectId || e?.options?.backend?.backendOptions && e.options.backend.backendOptions.some((e) => e?.projectId)), $ = class e extends sa {
|
|
3559
3570
|
constructor(e = {}, t) {
|
|
3560
|
-
if (super(), this.options =
|
|
3571
|
+
if (super(), this.options = Aa(e), this.services = {}, this.logger = Q, this.modules = { external: [] }, Ma(this), t && !this.isInitialized && !e.isClone) {
|
|
3561
3572
|
if (!this.options.initAsync) return this.init(e, t), this;
|
|
3562
3573
|
setTimeout(() => {
|
|
3563
3574
|
this.init(e, t);
|
|
@@ -3566,35 +3577,35 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3566
3577
|
}
|
|
3567
3578
|
init(e = {}, t) {
|
|
3568
3579
|
this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (Z(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
|
|
3569
|
-
let n =
|
|
3580
|
+
let n = ka();
|
|
3570
3581
|
this.options = {
|
|
3571
3582
|
...n,
|
|
3572
3583
|
...this.options,
|
|
3573
|
-
...
|
|
3584
|
+
...Aa(e)
|
|
3574
3585
|
}, this.options.interpolation = {
|
|
3575
3586
|
...n.interpolation,
|
|
3576
3587
|
...this.options.interpolation
|
|
3577
|
-
}, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator), typeof this.options.overloadTranslationOptionHandler != "function" && (this.options.overloadTranslationOptionHandler = n.overloadTranslationOptionHandler), this.options.showSupportNotice !== !1 && !
|
|
3588
|
+
}, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator), typeof this.options.overloadTranslationOptionHandler != "function" && (this.options.overloadTranslationOptionHandler = n.overloadTranslationOptionHandler), this.options.showSupportNotice !== !1 && !Ia(this) && !Pa() && (typeof console < "u" && console.info !== void 0 && console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"), Fa());
|
|
3578
3589
|
let r = (e) => e ? typeof e == "function" ? new e() : e : null;
|
|
3579
3590
|
if (!this.options.isClone) {
|
|
3580
3591
|
this.modules.logger ? Q.init(r(this.modules.logger), this.options) : Q.init(null, this.options);
|
|
3581
3592
|
let e;
|
|
3582
|
-
e = this.modules.formatter ? this.modules.formatter :
|
|
3583
|
-
let t = new
|
|
3584
|
-
this.store = new
|
|
3593
|
+
e = this.modules.formatter ? this.modules.formatter : Ea;
|
|
3594
|
+
let t = new ga(this.options);
|
|
3595
|
+
this.store = new ca(this.options.resources, this.options);
|
|
3585
3596
|
let i = this.services;
|
|
3586
|
-
i.logger = Q, i.resourceStore = this.store, i.languageUtils = t, i.pluralResolver = new
|
|
3597
|
+
i.logger = Q, i.resourceStore = this.store, i.languageUtils = t, i.pluralResolver = new ya(t, {
|
|
3587
3598
|
prepend: this.options.pluralSeparator,
|
|
3588
3599
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3589
|
-
}), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), e && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (i.formatter = r(e), i.formatter.init && i.formatter.init(i, this.options), this.options.interpolation.format = i.formatter.format.bind(i.formatter)), i.interpolator = new
|
|
3600
|
+
}), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), e && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (i.formatter = r(e), i.formatter.init && i.formatter.init(i, this.options), this.options.interpolation.format = i.formatter.format.bind(i.formatter)), i.interpolator = new Sa(this.options), i.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i.backendConnector = new Oa(r(this.modules.backend), i.resourceStore, i, this.options), i.backendConnector.on("*", (e, ...t) => {
|
|
3590
3601
|
this.emit(e, ...t);
|
|
3591
|
-
}), this.modules.languageDetector && (i.languageDetector = r(this.modules.languageDetector), i.languageDetector.init && i.languageDetector.init(i, this.options.detection, this.options)), this.modules.i18nFormat && (i.i18nFormat = r(this.modules.i18nFormat), i.i18nFormat.init && i.i18nFormat.init(this)), this.translator = new
|
|
3602
|
+
}), this.modules.languageDetector && (i.languageDetector = r(this.modules.languageDetector), i.languageDetector.init && i.languageDetector.init(i, this.options.detection, this.options)), this.modules.i18nFormat && (i.i18nFormat = r(this.modules.i18nFormat), i.i18nFormat.init && i.i18nFormat.init(this)), this.translator = new ha(this.services, this.options), this.translator.on("*", (e, ...t) => {
|
|
3592
3603
|
this.emit(e, ...t);
|
|
3593
3604
|
}), this.modules.external.forEach((e) => {
|
|
3594
3605
|
e.init && e.init(this);
|
|
3595
3606
|
});
|
|
3596
3607
|
}
|
|
3597
|
-
if (this.format = this.options.interpolation.format, t ||=
|
|
3608
|
+
if (this.format = this.options.interpolation.format, t ||= ja, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
3598
3609
|
let e = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
3599
3610
|
e.length > 0 && e[0] !== "dev" && (this.options.lng = e[0]);
|
|
3600
3611
|
}
|
|
@@ -3613,7 +3624,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3613
3624
|
].forEach((e) => {
|
|
3614
3625
|
this[e] = (...t) => (this.store[e](...t), this);
|
|
3615
3626
|
});
|
|
3616
|
-
let i =
|
|
3627
|
+
let i = zi(), a = () => {
|
|
3617
3628
|
let e = (e, n) => {
|
|
3618
3629
|
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), i.resolve(n), t(e, n);
|
|
3619
3630
|
};
|
|
@@ -3622,7 +3633,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3622
3633
|
};
|
|
3623
3634
|
return this.options.resources || !this.options.initAsync ? a() : setTimeout(a, 0), i;
|
|
3624
3635
|
}
|
|
3625
|
-
loadResources(e, t =
|
|
3636
|
+
loadResources(e, t = ja) {
|
|
3626
3637
|
let n = t, r = Z(e) ? e : this.language;
|
|
3627
3638
|
if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
3628
3639
|
if (r?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
|
|
@@ -3637,15 +3648,15 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3637
3648
|
} else n(null);
|
|
3638
3649
|
}
|
|
3639
3650
|
reloadResources(e, t, n) {
|
|
3640
|
-
let r =
|
|
3641
|
-
return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e ||= this.languages, t ||= this.options.ns, n ||=
|
|
3651
|
+
let r = zi();
|
|
3652
|
+
return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e ||= this.languages, t ||= this.options.ns, n ||= ja, this.services.backendConnector.reload(e, t, (e) => {
|
|
3642
3653
|
r.resolve(), n(e);
|
|
3643
3654
|
}), r;
|
|
3644
3655
|
}
|
|
3645
3656
|
use(e) {
|
|
3646
3657
|
if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
3647
3658
|
if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
3648
|
-
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" &&
|
|
3659
|
+
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && la.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
3649
3660
|
}
|
|
3650
3661
|
setResolvedLanguage(e) {
|
|
3651
3662
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
|
|
@@ -3661,7 +3672,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3661
3672
|
}
|
|
3662
3673
|
changeLanguage(e, t) {
|
|
3663
3674
|
this.isLanguageChangingTo = e;
|
|
3664
|
-
let n =
|
|
3675
|
+
let n = zi();
|
|
3665
3676
|
this.emit("languageChanging", e);
|
|
3666
3677
|
let r = (e) => {
|
|
3667
3678
|
this.language = e, this.languages = this.services.languageUtils.toResolveHierarchy(e), this.resolvedLanguage = void 0, this.setResolvedLanguage(e);
|
|
@@ -3684,9 +3695,9 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3684
3695
|
...this.options,
|
|
3685
3696
|
...a
|
|
3686
3697
|
};
|
|
3687
|
-
typeof a.keyPrefix == "function" && (a.keyPrefix =
|
|
3698
|
+
typeof a.keyPrefix == "function" && (a.keyPrefix = fa(a.keyPrefix, o));
|
|
3688
3699
|
let s = this.options.keySeparator || ".", c;
|
|
3689
|
-
return a.keyPrefix && Array.isArray(e) ? c = e.map((e) => (typeof e == "function" && (e =
|
|
3700
|
+
return a.keyPrefix && Array.isArray(e) ? c = e.map((e) => (typeof e == "function" && (e = fa(e, o)), `${a.keyPrefix}${s}${e}`)) : (typeof e == "function" && (e = fa(e, o)), c = a.keyPrefix ? `${a.keyPrefix}${s}${e}` : e), this.t(c, a);
|
|
3690
3701
|
};
|
|
3691
3702
|
return Z(e) ? r.lng = e : r.lngs = e, r.ns = t, r.keyPrefix = n, r;
|
|
3692
3703
|
}
|
|
@@ -3715,7 +3726,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3715
3726
|
return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(n, e) && (!r || a(i, e)));
|
|
3716
3727
|
}
|
|
3717
3728
|
loadNamespaces(e, t) {
|
|
3718
|
-
let n =
|
|
3729
|
+
let n = zi();
|
|
3719
3730
|
return this.options.ns ? (Z(e) && (e = [e]), e.forEach((e) => {
|
|
3720
3731
|
this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
|
|
3721
3732
|
}), this.loadResources((e) => {
|
|
@@ -3723,7 +3734,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3723
3734
|
}), n) : (t && t(), Promise.resolve());
|
|
3724
3735
|
}
|
|
3725
3736
|
loadLanguages(e, t) {
|
|
3726
|
-
let n =
|
|
3737
|
+
let n = zi();
|
|
3727
3738
|
Z(e) && (e = [e]);
|
|
3728
3739
|
let r = this.options.preload || [], i = e.filter((e) => r.indexOf(e) < 0 && this.services.languageUtils.isSupportedCode(e));
|
|
3729
3740
|
return i.length ? (this.options.preload = r.concat(i), this.loadResources((e) => {
|
|
@@ -3739,14 +3750,14 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3739
3750
|
if (e && e.direction) return e.direction;
|
|
3740
3751
|
}
|
|
3741
3752
|
} catch {}
|
|
3742
|
-
let t = /* @__PURE__ */ "ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb".split("."), n = this.services?.languageUtils || new
|
|
3753
|
+
let t = /* @__PURE__ */ "ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb".split("."), n = this.services?.languageUtils || new ga(ka());
|
|
3743
3754
|
return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
3744
3755
|
}
|
|
3745
3756
|
static createInstance(t = {}, n) {
|
|
3746
3757
|
let r = new e(t, n);
|
|
3747
3758
|
return r.createInstance = e.createInstance, r;
|
|
3748
3759
|
}
|
|
3749
|
-
cloneInstance(t = {}, n =
|
|
3760
|
+
cloneInstance(t = {}, n = ja) {
|
|
3750
3761
|
let r = t.forkResourceStore;
|
|
3751
3762
|
r && delete t.forkResourceStore;
|
|
3752
3763
|
let i = {
|
|
@@ -3760,18 +3771,18 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3760
3771
|
"language"
|
|
3761
3772
|
].forEach((e) => {
|
|
3762
3773
|
a[e] = this[e];
|
|
3763
|
-
}), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new
|
|
3774
|
+
}), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new ca(Object.keys(this.store.data).reduce((e, t) => (e[t] = { ...this.store.data[t] }, e[t] = Object.keys(e[t]).reduce((n, r) => (n[r] = { ...e[t][r] }, n), e[t]), e), {}), i), a.services.resourceStore = a.store), t.interpolation) {
|
|
3764
3775
|
let e = {
|
|
3765
|
-
...
|
|
3776
|
+
...ka().interpolation,
|
|
3766
3777
|
...this.options.interpolation,
|
|
3767
3778
|
...t.interpolation
|
|
3768
3779
|
}, n = {
|
|
3769
3780
|
...i,
|
|
3770
3781
|
interpolation: e
|
|
3771
3782
|
};
|
|
3772
|
-
a.services.interpolator = new
|
|
3783
|
+
a.services.interpolator = new Sa(n);
|
|
3773
3784
|
}
|
|
3774
|
-
return a.translator = new
|
|
3785
|
+
return a.translator = new ha(a.services, i), a.translator.on("*", (e, ...t) => {
|
|
3775
3786
|
a.emit(e, ...t);
|
|
3776
3787
|
}), a.init(i, n), a.translator.options = i, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
|
|
3777
3788
|
}
|
|
@@ -3792,13 +3803,13 @@ $.createInstance, $.dir, $.init, $.loadResources, $.reloadResources, $.use, $.ch
|
|
|
3792
3803
|
lng: "en",
|
|
3793
3804
|
showSupportNotice: !1,
|
|
3794
3805
|
resources: {
|
|
3795
|
-
en:
|
|
3796
|
-
es:
|
|
3806
|
+
en: Li,
|
|
3807
|
+
es: Ri
|
|
3797
3808
|
}
|
|
3798
3809
|
});
|
|
3799
3810
|
//#endregion
|
|
3800
3811
|
//#region src/i18n.ts
|
|
3801
|
-
var { translator:
|
|
3812
|
+
var { translator: La } = {
|
|
3802
3813
|
translator: {
|
|
3803
3814
|
...$,
|
|
3804
3815
|
t: (e, t) => {
|
|
@@ -3830,23 +3841,23 @@ var { translator: Ra } = {
|
|
|
3830
3841
|
label: "Spanish"
|
|
3831
3842
|
}]
|
|
3832
3843
|
};
|
|
3833
|
-
function
|
|
3834
|
-
return
|
|
3844
|
+
function Ra(e, t) {
|
|
3845
|
+
return La.t(`translation:simpleCloze:${e}`, { lng: t });
|
|
3835
3846
|
}
|
|
3836
3847
|
//#endregion
|
|
3837
3848
|
//#region src/print/Print.svelte
|
|
3838
|
-
var
|
|
3849
|
+
var za = /* @__PURE__ */ or("<div class=\"simple-cloze-print-teacher-instructions svelte-1fx5wwa\"></div>"), Ba = /* @__PURE__ */ or("<div class=\"simple-cloze-print-prompt svelte-1fx5wwa\"></div>"), Va = /* @__PURE__ */ or("<span class=\"simple-cloze-print-key-label svelte-1fx5wwa\"> </span> <span class=\"simple-cloze-print-blank simple-cloze-print-blank--key svelte-1fx5wwa\"> </span>", 1), Ha = /* @__PURE__ */ or("<span class=\"simple-cloze-print-blank svelte-1fx5wwa\" role=\"img\"></span>"), Ua = /* @__PURE__ */ or("<div class=\"simple-cloze-print svelte-1fx5wwa\"><!> <!> <div class=\"simple-cloze-print-response svelte-1fx5wwa\"><!></div></div>"), Wa = {
|
|
3839
3850
|
hash: "svelte-1fx5wwa",
|
|
3840
3851
|
code: "\n /* Self-contained: print players ship no Tailwind or CSS reset. */.simple-cloze-print.svelte-1fx5wwa {padding:1rem;color:var(--pie-text, black);}.simple-cloze-print-teacher-instructions.svelte-1fx5wwa,\n .simple-cloze-print-prompt.svelte-1fx5wwa {margin-bottom:1rem;}.simple-cloze-print-teacher-instructions.svelte-1fx5wwa p,\n .simple-cloze-print-prompt.svelte-1fx5wwa p {margin:0.5em 0;}.simple-cloze-print-prompt.svelte-1fx5wwa strong {font-weight:600;}.simple-cloze-print-response.svelte-1fx5wwa {display:inline-flex;align-items:baseline;gap:0.5rem;}.simple-cloze-print-key-label.svelte-1fx5wwa {font-size:0.875rem;line-height:1.25rem;font-weight:600;}.simple-cloze-print-blank.svelte-1fx5wwa {display:inline-block;min-width:12rem;min-height:1.5rem;padding:0.5rem 0.75rem;border-bottom:2px solid var(--pie-text, black);}.simple-cloze-print-blank--key.svelte-1fx5wwa {min-width:6rem;font-weight:600;}\n\n @media print {.simple-cloze-print.svelte-1fx5wwa {padding:0;}\n }"
|
|
3841
3852
|
};
|
|
3842
|
-
function
|
|
3843
|
-
|
|
3844
|
-
let n = Ir(t, "model", 7, null), r = Ir(t, "options", 7, null), i = /* @__PURE__ */
|
|
3845
|
-
|
|
3853
|
+
function Ga(e, t) {
|
|
3854
|
+
We(t, !0), wr(e, Wa);
|
|
3855
|
+
let n = Ir(t, "model", 7, null), r = Ir(t, "options", 7, null), i = /* @__PURE__ */ lt(() => r()?.role === "instructor"), a = /* @__PURE__ */ lt(() => n()?.promptEnabled !== !1 && typeof n()?.prompt == "string" ? n().prompt : ""), o = /* @__PURE__ */ lt(() => Ii(n()?.correctAnswer)), s = /* @__PURE__ */ lt(() => X(i) && !!X(o)), c = /* @__PURE__ */ lt(() => X(i) && n()?.teacherInstructionsEnabled !== !1 && n()?.teacherInstructions || ""), l = /* @__PURE__ */ M(null);
|
|
3856
|
+
dn(() => {
|
|
3846
3857
|
if (!X(l) || !X(a)) return;
|
|
3847
3858
|
let e = (e) => console.warn("simple-cloze: MathJax render failed", e);
|
|
3848
3859
|
try {
|
|
3849
|
-
Promise.resolve(
|
|
3860
|
+
Promise.resolve(Oi(X(l))).catch(e);
|
|
3850
3861
|
} catch (t) {
|
|
3851
3862
|
e(t);
|
|
3852
3863
|
}
|
|
@@ -3856,49 +3867,49 @@ function Ka(e, t) {
|
|
|
3856
3867
|
return n();
|
|
3857
3868
|
},
|
|
3858
3869
|
set model(e = null) {
|
|
3859
|
-
n(e),
|
|
3870
|
+
n(e), Et();
|
|
3860
3871
|
},
|
|
3861
3872
|
get options() {
|
|
3862
3873
|
return r();
|
|
3863
3874
|
},
|
|
3864
3875
|
set options(e = null) {
|
|
3865
|
-
r(e),
|
|
3876
|
+
r(e), Et();
|
|
3866
3877
|
}
|
|
3867
|
-
}, d =
|
|
3868
|
-
var t =
|
|
3869
|
-
|
|
3878
|
+
}, d = Ua(), f = Zt(d), p = (e) => {
|
|
3879
|
+
var t = za();
|
|
3880
|
+
Cr(t, () => X(c), !0), Te(t), sr(e, t);
|
|
3870
3881
|
};
|
|
3871
|
-
|
|
3882
|
+
Sr(f, (e) => {
|
|
3872
3883
|
X(c) && e(p);
|
|
3873
3884
|
});
|
|
3874
|
-
var m =
|
|
3875
|
-
var t =
|
|
3876
|
-
|
|
3885
|
+
var m = en(f, 2), h = (e) => {
|
|
3886
|
+
var t = Ba();
|
|
3887
|
+
Cr(t, () => X(a), !0), Te(t), Nr(t, (e) => N(l, e), () => X(l)), sr(e, t);
|
|
3877
3888
|
};
|
|
3878
|
-
|
|
3889
|
+
Sr(m, (e) => {
|
|
3879
3890
|
X(a) && e(h);
|
|
3880
3891
|
});
|
|
3881
|
-
var g =
|
|
3882
|
-
var t =
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
}, [() =>
|
|
3892
|
+
var g = en(m, 2), ee = Zt(g), _ = (e) => {
|
|
3893
|
+
var t = Va(), r = Qt(t), i = $t(r, !0), a = $t(en(r, 2), !0);
|
|
3894
|
+
vn((e) => {
|
|
3895
|
+
mr(i, e), mr(a, X(o));
|
|
3896
|
+
}, [() => Ra("printCorrectAnswer", n()?.language)]), sr(e, t);
|
|
3886
3897
|
}, v = (e) => {
|
|
3887
|
-
var t =
|
|
3888
|
-
|
|
3898
|
+
var t = Ha();
|
|
3899
|
+
vn((e) => Or(t, "aria-label", e), [() => Ra("printAnswerBlank", n()?.language)]), sr(e, t);
|
|
3889
3900
|
};
|
|
3890
|
-
return
|
|
3901
|
+
return Sr(ee, (e) => {
|
|
3891
3902
|
X(s) ? e(_) : e(v, -1);
|
|
3892
|
-
}),
|
|
3903
|
+
}), Te(g), Te(d), sr(e, d), Ge(u);
|
|
3893
3904
|
}
|
|
3894
|
-
Hr(
|
|
3905
|
+
Hr(Ga, {
|
|
3895
3906
|
model: { type: "Object" },
|
|
3896
3907
|
options: { type: "Object" }
|
|
3897
3908
|
}, [], []);
|
|
3898
3909
|
//#endregion
|
|
3899
3910
|
//#region src/print/index.ts
|
|
3900
|
-
var
|
|
3911
|
+
var Ka = Ga.element;
|
|
3901
3912
|
//#endregion
|
|
3902
|
-
export {
|
|
3913
|
+
export { Ka as default };
|
|
3903
3914
|
|
|
3904
3915
|
//# sourceMappingURL=print.js.map
|