@bygga.dev/editor 1.9.4 → 1.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, J as c, K as l, L as u, M as d, O as f, P as p, Q as m, R as h, T as g, U as _, V as v, W as y, X as b, Y as x, Z as S, _ as C, _t as w, at as T, dt as E, et as ee, ft as D, gt as te, it as ne, j as re, k as ie, m as ae, mt as oe, pt as se, q as ce, rt as le, st as ue, tt as de, ut as fe, v as pe, y as me, z as he } from "./providerKeys-ZUO3LJ3M.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@intlify+shared@11.4.6/node_modules/@intlify/shared/dist/shared.mjs
|
|
3
|
-
function
|
|
3
|
+
function ge(e, t) {
|
|
4
4
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
5
5
|
}
|
|
6
|
-
var
|
|
6
|
+
var _e = typeof window < "u", ve = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), ye = (e, t, n) => be({
|
|
7
7
|
l: e,
|
|
8
8
|
k: t,
|
|
9
9
|
s: n
|
|
10
|
-
}),
|
|
11
|
-
function
|
|
10
|
+
}), be = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), O = (e) => typeof e == "number" && isFinite(e), xe = (e) => Ve(e) === "[object Date]", Se = (e) => Ve(e) === "[object RegExp]", Ce = (e) => P(e) && Object.keys(e).length === 0, we = Object.assign, Te = Object.create, k = (e = null) => Te(e), Ee, De = () => Ee ||= typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : k();
|
|
11
|
+
function Oe(e) {
|
|
12
12
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function ke(e) {
|
|
15
15
|
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
16
16
|
}
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
return
|
|
17
|
+
var Ae = /^\s*javascript\s*(?::|�*58;?|�*3a;?|:?)/i, je = /^(?:href|src|action|formaction)$/i;
|
|
18
|
+
function Me(e) {
|
|
19
|
+
return Ae.test(e);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Ne(e) {
|
|
22
22
|
let t = /url\s*\(/gi, n = "", r = 0, i;
|
|
23
23
|
for (; (i = t.exec(e)) !== null;) {
|
|
24
24
|
let a = i.index, o = t.lastIndex - 1, s = o + 1, c = 1, l = null;
|
|
@@ -34,25 +34,25 @@ function Pe(e) {
|
|
|
34
34
|
}
|
|
35
35
|
if (c !== 0) break;
|
|
36
36
|
let u = e.slice(o + 1, s).trim(), d = u.startsWith("\"") && u.endsWith("\"") || u.startsWith("'") && u.endsWith("'") ? u.slice(1, -1).trim() : u;
|
|
37
|
-
n += e.slice(r, a), n +=
|
|
37
|
+
n += e.slice(r, a), n += Me(d) ? "url(about:blank)" : e.slice(a, s + 1), r = s + 1;
|
|
38
38
|
}
|
|
39
39
|
return n + e.slice(r);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
return
|
|
41
|
+
function Pe(e, t) {
|
|
42
|
+
return je.test(e) && Me(t) ? "about:blank" : ke(e.toLowerCase() === "style" ? Ne(t) : t);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
return e = e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g, (e, t, n) => `${t}="${
|
|
44
|
+
function Fe(e) {
|
|
45
|
+
return e = e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g, (e, t, n) => `${t}="${Pe(t, n)}"`), e = e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g, (e, t, n) => `${t}='${Pe(t, n)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), e = e.replace(/(\s+(?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi, (e, t, n) => Me(n) ? `${t}about:blank` : e), e;
|
|
46
46
|
}
|
|
47
|
-
var
|
|
48
|
-
function
|
|
49
|
-
return
|
|
47
|
+
var Ie = Object.prototype.hasOwnProperty;
|
|
48
|
+
function Le(e, t) {
|
|
49
|
+
return Ie.call(e, t);
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var Re = Array.isArray, A = (e) => typeof e == "function", j = (e) => typeof e == "string", M = (e) => typeof e == "boolean", N = (e) => typeof e == "object" && !!e, ze = (e) => N(e) && A(e.then) && A(e.catch), Be = Object.prototype.toString, Ve = (e) => Be.call(e), P = (e) => Ve(e) === "[object Object]", He = (e) => e == null ? "" : Re(e) || P(e) && e.toString === Be ? JSON.stringify(e, null, 2) : String(e);
|
|
52
52
|
function Ue(e, t = "") {
|
|
53
53
|
return e.reduce((e, n, r) => r === 0 ? e + n : e + t + n, "");
|
|
54
54
|
}
|
|
55
|
-
var We = (e) => !N(e) ||
|
|
55
|
+
var We = (e) => !N(e) || Re(e);
|
|
56
56
|
function Ge(e, t) {
|
|
57
57
|
if (We(e) || We(t)) throw Error("Invalid value");
|
|
58
58
|
let n = [{
|
|
@@ -62,7 +62,7 @@ function Ge(e, t) {
|
|
|
62
62
|
for (; n.length;) {
|
|
63
63
|
let { src: e, des: t } = n.pop();
|
|
64
64
|
Object.keys(e).forEach((r) => {
|
|
65
|
-
r !== "__proto__" && (N(e[r]) && !N(t[r]) && (t[r] = Array.isArray(e[r]) ? [] :
|
|
65
|
+
r !== "__proto__" && (N(e[r]) && !N(t[r]) && (t[r] = Array.isArray(e[r]) ? [] : k()), We(t[r]) || We(e[r]) ? t[r] = e[r] : n.push({
|
|
66
66
|
src: e[r],
|
|
67
67
|
des: t[r]
|
|
68
68
|
}));
|
|
@@ -126,7 +126,7 @@ function tt(e) {
|
|
|
126
126
|
function x(e = 0) {
|
|
127
127
|
a = e;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function S() {
|
|
130
130
|
let e = n + a;
|
|
131
131
|
for (; e !== n;) v();
|
|
132
132
|
a = 0;
|
|
@@ -143,7 +143,7 @@ function tt(e) {
|
|
|
143
143
|
peek: y,
|
|
144
144
|
reset: b,
|
|
145
145
|
resetPeek: x,
|
|
146
|
-
skipToPeek:
|
|
146
|
+
skipToPeek: S
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
149
|
var nt = void 0, rt = "'", it = "tokenizer";
|
|
@@ -217,86 +217,86 @@ function at(e, t = {}) {
|
|
|
217
217
|
let r = e.currentPeek() === rt;
|
|
218
218
|
return e.resetPeek(), r;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function S(e, t) {
|
|
221
221
|
let { currentType: n } = t;
|
|
222
222
|
if (n !== 7) return !1;
|
|
223
223
|
h(e);
|
|
224
224
|
let r = e.currentPeek() === ".";
|
|
225
225
|
return e.resetPeek(), r;
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function C(e, t) {
|
|
228
228
|
let { currentType: n } = t;
|
|
229
229
|
if (n !== 8) return !1;
|
|
230
230
|
h(e);
|
|
231
231
|
let r = _(e.currentPeek());
|
|
232
232
|
return e.resetPeek(), r;
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function w(e, t) {
|
|
235
235
|
let { currentType: n } = t;
|
|
236
236
|
if (!(n === 7 || n === 11)) return !1;
|
|
237
237
|
h(e);
|
|
238
238
|
let r = e.currentPeek() === ":";
|
|
239
239
|
return e.resetPeek(), r;
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function T(e, t) {
|
|
242
242
|
let { currentType: n } = t;
|
|
243
243
|
if (n !== 9) return !1;
|
|
244
244
|
let r = () => {
|
|
245
245
|
let t = e.currentPeek();
|
|
246
|
-
return t === "{" ? _(e.peek()) : t === "@" || t === "|" || t === ":" || t === "." || t === Xe || !t ? !1 : t === Qe ? (e.peek(), r()) :
|
|
246
|
+
return t === "{" ? _(e.peek()) : t === "@" || t === "|" || t === ":" || t === "." || t === Xe || !t ? !1 : t === Qe ? (e.peek(), r()) : ee(e, !1);
|
|
247
247
|
}, i = r();
|
|
248
248
|
return e.resetPeek(), i;
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function E(e) {
|
|
251
251
|
h(e);
|
|
252
252
|
let t = e.currentPeek() === "|";
|
|
253
253
|
return e.resetPeek(), t;
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function ee(e, t = !0) {
|
|
256
256
|
let n = (t = !1, r = "") => {
|
|
257
257
|
let i = e.currentPeek();
|
|
258
258
|
return i === "{" || i === "@" || !i ? t : i === "|" ? !(r === Xe || r === Qe) : i === Xe ? (e.peek(), n(!0, Xe)) : i === Qe ? (e.peek(), n(!0, Qe)) : !0;
|
|
259
259
|
}, r = n();
|
|
260
260
|
return t && e.resetPeek(), r;
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function D(e, t) {
|
|
263
263
|
let n = e.currentChar();
|
|
264
264
|
if (n !== nt) return t(n) ? (e.next(), n) : null;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function te(e) {
|
|
267
267
|
let t = e.charCodeAt(0);
|
|
268
268
|
return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36;
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
return
|
|
270
|
+
function ne(e) {
|
|
271
|
+
return D(e, te);
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function re(e) {
|
|
274
274
|
let t = e.charCodeAt(0);
|
|
275
275
|
return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36 || t === 45;
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
return
|
|
277
|
+
function ie(e) {
|
|
278
|
+
return D(e, re);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function ae(e) {
|
|
281
281
|
let t = e.charCodeAt(0);
|
|
282
282
|
return t >= 48 && t <= 57;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
285
|
-
return
|
|
284
|
+
function oe(e) {
|
|
285
|
+
return D(e, ae);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function se(e) {
|
|
288
288
|
let t = e.charCodeAt(0);
|
|
289
289
|
return t >= 48 && t <= 57 || t >= 65 && t <= 70 || t >= 97 && t <= 102;
|
|
290
290
|
}
|
|
291
|
-
function
|
|
292
|
-
return
|
|
291
|
+
function ce(e) {
|
|
292
|
+
return D(e, se);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function le(e) {
|
|
295
295
|
let t = "", n = "";
|
|
296
|
-
for (; t =
|
|
296
|
+
for (; t = oe(e);) n += t;
|
|
297
297
|
return n;
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function ue(e) {
|
|
300
300
|
let t = "";
|
|
301
301
|
for (;;) {
|
|
302
302
|
let n = e.currentChar();
|
|
@@ -304,54 +304,54 @@ function at(e, t = {}) {
|
|
|
304
304
|
let r = e.peek();
|
|
305
305
|
r === "{" || r === "}" || r === "@" || r === "|" || r === "\\" ? (t += n + r, e.next(), e.next()) : (e.resetPeek(), t += n, e.next());
|
|
306
306
|
} else if (n === "{" || n === "}" || n === "@" || n === "|" || !n) break;
|
|
307
|
-
else if (n === Xe || n === Qe) if (
|
|
308
|
-
else if (
|
|
307
|
+
else if (n === Xe || n === Qe) if (ee(e)) t += n, e.next();
|
|
308
|
+
else if (E(e)) break;
|
|
309
309
|
else t += n, e.next();
|
|
310
310
|
else t += n, e.next();
|
|
311
311
|
}
|
|
312
312
|
return t;
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function de(e) {
|
|
315
315
|
g(e);
|
|
316
316
|
let t = "", n = "";
|
|
317
|
-
for (; t =
|
|
317
|
+
for (; t = ie(e);) n += t;
|
|
318
318
|
let r = e.currentChar();
|
|
319
319
|
if (r && r !== "}" && r !== nt && r !== Xe && r !== Qe && r !== " ") {
|
|
320
|
-
let t =
|
|
320
|
+
let t = ve(e);
|
|
321
321
|
return d(F.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n + t), n + t;
|
|
322
322
|
}
|
|
323
323
|
return e.currentChar() === nt && d(F.UNTERMINATED_CLOSING_BRACE, a(), 0), n;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function fe(e) {
|
|
326
326
|
g(e);
|
|
327
327
|
let t = "";
|
|
328
|
-
return e.currentChar() === "-" ? (e.next(), t += `-${
|
|
328
|
+
return e.currentChar() === "-" ? (e.next(), t += `-${le(e)}`) : t += le(e), e.currentChar() === nt && d(F.UNTERMINATED_CLOSING_BRACE, a(), 0), t;
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function pe(e) {
|
|
331
331
|
return e !== rt && e !== Qe;
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function me(e) {
|
|
334
334
|
g(e), m(e, "'");
|
|
335
335
|
let t = "", n = "";
|
|
336
|
-
for (; t =
|
|
336
|
+
for (; t = D(e, pe);) t === "\\" ? n += he(e) : n += t;
|
|
337
337
|
let r = e.currentChar();
|
|
338
338
|
return r === Qe || r === nt ? (d(F.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), r === Qe && (e.next(), m(e, "'")), n) : (m(e, "'"), n);
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function he(e) {
|
|
341
341
|
let t = e.currentChar();
|
|
342
342
|
switch (t) {
|
|
343
343
|
case "\\":
|
|
344
344
|
case "'": return e.next(), `\\${t}`;
|
|
345
|
-
case "u": return
|
|
346
|
-
case "U": return
|
|
345
|
+
case "u": return ge(e, t, 4);
|
|
346
|
+
case "U": return ge(e, t, 6);
|
|
347
347
|
default: return d(F.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, t), "";
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function ge(e, t, n) {
|
|
351
351
|
m(e, t);
|
|
352
352
|
let r = "";
|
|
353
353
|
for (let i = 0; i < n; i++) {
|
|
354
|
-
let n =
|
|
354
|
+
let n = ce(e);
|
|
355
355
|
if (!n) {
|
|
356
356
|
d(F.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${t}${r}${e.currentChar()}`);
|
|
357
357
|
break;
|
|
@@ -360,81 +360,81 @@ function at(e, t = {}) {
|
|
|
360
360
|
}
|
|
361
361
|
return `\\${t}${r}`;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function _e(e) {
|
|
364
364
|
return e !== "{" && e !== "}" && e !== Xe && e !== Qe;
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function ve(e) {
|
|
367
367
|
g(e);
|
|
368
368
|
let t = "", n = "";
|
|
369
|
-
for (; t =
|
|
369
|
+
for (; t = D(e, _e);) n += t;
|
|
370
370
|
return n;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function ye(e) {
|
|
373
373
|
let t = "", n = "";
|
|
374
|
-
for (; t =
|
|
374
|
+
for (; t = ne(e);) n += t;
|
|
375
375
|
return n;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function be(e) {
|
|
378
378
|
let t = (n) => {
|
|
379
379
|
let r = e.currentChar();
|
|
380
380
|
return r === "{" || r === "@" || r === "|" || r === "(" || r === ")" || !r || r === Xe ? n : (n += r, e.next(), t(n));
|
|
381
381
|
};
|
|
382
382
|
return t("");
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function O(e) {
|
|
385
385
|
g(e);
|
|
386
386
|
let t = m(e, "|");
|
|
387
387
|
return g(e), t;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function xe(e, t) {
|
|
390
390
|
let n = null;
|
|
391
391
|
switch (e.currentChar()) {
|
|
392
392
|
case "{": return t.braceNest >= 1 && d(F.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), e.next(), n = f(t, 2, "{"), g(e), t.braceNest++, n;
|
|
393
393
|
case "}": return t.braceNest > 0 && t.currentType === 2 && d(F.EMPTY_PLACEHOLDER, a(), 0), e.next(), n = f(t, 3, "}"), t.braceNest--, t.braceNest > 0 && g(e), t.inLinked && t.braceNest === 0 && (t.inLinked = !1), n;
|
|
394
|
-
case "@": return t.braceNest > 0 && d(F.UNTERMINATED_CLOSING_BRACE, a(), 0), n =
|
|
394
|
+
case "@": return t.braceNest > 0 && d(F.UNTERMINATED_CLOSING_BRACE, a(), 0), n = Se(e, t) || p(t), t.braceNest = 0, n;
|
|
395
395
|
default: {
|
|
396
396
|
let r = !0, i = !0, o = !0;
|
|
397
|
-
if (
|
|
398
|
-
if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6)) return d(F.UNTERMINATED_CLOSING_BRACE, a(), 0), t.braceNest = 0,
|
|
399
|
-
if (r = y(e, t)) return n = f(t, 4,
|
|
400
|
-
if (i = b(e, t)) return n = f(t, 5,
|
|
401
|
-
if (o = x(e, t)) return n = f(t, 6,
|
|
402
|
-
if (!r && !i && !o) return n = f(t, 12,
|
|
397
|
+
if (E(e)) return t.braceNest > 0 && d(F.UNTERMINATED_CLOSING_BRACE, a(), 0), n = f(t, 1, O(e)), t.braceNest = 0, t.inLinked = !1, n;
|
|
398
|
+
if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6)) return d(F.UNTERMINATED_CLOSING_BRACE, a(), 0), t.braceNest = 0, Ce(e, t);
|
|
399
|
+
if (r = y(e, t)) return n = f(t, 4, de(e)), g(e), n;
|
|
400
|
+
if (i = b(e, t)) return n = f(t, 5, fe(e)), g(e), n;
|
|
401
|
+
if (o = x(e, t)) return n = f(t, 6, me(e)), g(e), n;
|
|
402
|
+
if (!r && !i && !o) return n = f(t, 12, ve(e)), d(F.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n.value), g(e), n;
|
|
403
403
|
break;
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
return n;
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Se(e, t) {
|
|
409
409
|
let { currentType: n } = t, r = null, i = e.currentChar();
|
|
410
410
|
switch ((n === 7 || n === 8 || n === 11 || n === 9) && (i === Qe || i === Xe) && d(F.INVALID_LINKED_FORMAT, a(), 0), i) {
|
|
411
411
|
case "@": return e.next(), r = f(t, 7, "@"), t.inLinked = !0, r;
|
|
412
412
|
case ".": return g(e), e.next(), f(t, 8, ".");
|
|
413
413
|
case ":": return g(e), e.next(), f(t, 9, ":");
|
|
414
|
-
default: return
|
|
414
|
+
default: return E(e) ? (r = f(t, 1, O(e)), t.braceNest = 0, t.inLinked = !1, r) : S(e, t) || w(e, t) ? (g(e), Se(e, t)) : C(e, t) ? (g(e), f(t, 11, ye(e))) : T(e, t) ? (g(e), i === "{" ? xe(e, t) || r : f(t, 10, be(e))) : (n === 7 && d(F.INVALID_LINKED_FORMAT, a(), 0), t.braceNest = 0, t.inLinked = !1, Ce(e, t));
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function Ce(e, t) {
|
|
418
418
|
let n = { type: 13 };
|
|
419
|
-
if (t.braceNest > 0) return
|
|
420
|
-
if (t.inLinked) return
|
|
419
|
+
if (t.braceNest > 0) return xe(e, t) || p(t);
|
|
420
|
+
if (t.inLinked) return Se(e, t) || p(t);
|
|
421
421
|
switch (e.currentChar()) {
|
|
422
|
-
case "{": return
|
|
422
|
+
case "{": return xe(e, t) || p(t);
|
|
423
423
|
case "}": return d(F.UNBALANCED_CLOSING_BRACE, a(), 0), e.next(), f(t, 3, "}");
|
|
424
|
-
case "@": return
|
|
424
|
+
case "@": return Se(e, t) || p(t);
|
|
425
425
|
default:
|
|
426
|
-
if (
|
|
427
|
-
if (
|
|
426
|
+
if (E(e)) return n = f(t, 1, O(e)), t.braceNest = 0, t.inLinked = !1, n;
|
|
427
|
+
if (ee(e)) return f(t, 0, ue(e));
|
|
428
428
|
break;
|
|
429
429
|
}
|
|
430
430
|
return n;
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function we() {
|
|
433
433
|
let { currentType: e, offset: t, startLoc: n, endLoc: o } = c;
|
|
434
|
-
return c.lastType = e, c.lastOffset = t, c.lastStartLoc = n, c.lastEndLoc = o, c.offset = i(), c.startLoc = a(), r.currentChar() === nt ? f(c, 13) :
|
|
434
|
+
return c.lastType = e, c.lastOffset = t, c.lastStartLoc = n, c.lastEndLoc = o, c.offset = i(), c.startLoc = a(), r.currentChar() === nt ? f(c, 13) : Ce(r, c);
|
|
435
435
|
}
|
|
436
436
|
return {
|
|
437
|
-
nextToken:
|
|
437
|
+
nextToken: we,
|
|
438
438
|
currentOffset: i,
|
|
439
439
|
currentPosition: a,
|
|
440
440
|
context: l
|
|
@@ -572,7 +572,7 @@ function dt(e = {}) {
|
|
|
572
572
|
return t.currentType === 13 ? i : m(e, n, r, i);
|
|
573
573
|
}
|
|
574
574
|
function g(n) {
|
|
575
|
-
let o = at(n,
|
|
575
|
+
let o = at(n, we({}, e)), s = o.context(), c = i(0, s.offset, s.startLoc);
|
|
576
576
|
return t && c.loc && (c.loc.source = n), c.body = h(o), e.onCacheKey && (c.cacheKey = e.onCacheKey(n)), s.currentType !== 13 && r(o, F.UNEXPECTED_LEXICAL_ANALYSIS, s.lastStartLoc, 0, n[s.offset] || ""), a(c, o.currentOffset(), o.currentPosition()), c;
|
|
577
577
|
}
|
|
578
578
|
return { parse: g };
|
|
@@ -808,7 +808,7 @@ var Et = (e, t = {}) => {
|
|
|
808
808
|
};
|
|
809
809
|
};
|
|
810
810
|
function Dt(e, t = {}) {
|
|
811
|
-
let n =
|
|
811
|
+
let n = we({}, t), r = !!n.jit, i = !!n.minify, a = n.optimize == null ? !0 : n.optimize, o = dt(n).parse(e);
|
|
812
812
|
return r ? (a && _t(o), i && yt(o), {
|
|
813
813
|
ast: o,
|
|
814
814
|
code: ""
|
|
@@ -817,10 +817,10 @@ function Dt(e, t = {}) {
|
|
|
817
817
|
//#endregion
|
|
818
818
|
//#region ../../node_modules/.pnpm/@intlify+core-base@11.4.6/node_modules/@intlify/core-base/dist/core-base.mjs
|
|
819
819
|
function Ot() {
|
|
820
|
-
typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (
|
|
820
|
+
typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (De().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
821
821
|
}
|
|
822
822
|
function kt(e) {
|
|
823
|
-
return N(e) && zt(e) === 0 && (
|
|
823
|
+
return N(e) && zt(e) === 0 && (Le(e, "b") || Le(e, "body"));
|
|
824
824
|
}
|
|
825
825
|
var At = ["b", "body"];
|
|
826
826
|
function jt(e) {
|
|
@@ -861,7 +861,7 @@ function Gt(e) {
|
|
|
861
861
|
function Kt(e, t, n) {
|
|
862
862
|
for (let n = 0; n < t.length; n++) {
|
|
863
863
|
let r = t[n];
|
|
864
|
-
if (
|
|
864
|
+
if (Le(e, r) && e[r] != null) return e[r];
|
|
865
865
|
}
|
|
866
866
|
return n;
|
|
867
867
|
}
|
|
@@ -904,14 +904,14 @@ function Qt(e, t) {
|
|
|
904
904
|
case 9: return Vt(t, n);
|
|
905
905
|
case 4: {
|
|
906
906
|
let r = t;
|
|
907
|
-
if (
|
|
908
|
-
if (
|
|
907
|
+
if (Le(r, "k") && r.k) return e.interpolate(e.named(r.k));
|
|
908
|
+
if (Le(r, "key") && r.key) return e.interpolate(e.named(r.key));
|
|
909
909
|
throw Jt(n);
|
|
910
910
|
}
|
|
911
911
|
case 5: {
|
|
912
912
|
let r = t;
|
|
913
|
-
if (
|
|
914
|
-
if (
|
|
913
|
+
if (Le(r, "i") && O(r.i)) return e.interpolate(e.list(r.i));
|
|
914
|
+
if (Le(r, "index") && O(r.index)) return e.interpolate(e.list(r.index));
|
|
915
915
|
throw Jt(n);
|
|
916
916
|
}
|
|
917
917
|
case 6: {
|
|
@@ -923,7 +923,7 @@ function Qt(e, t) {
|
|
|
923
923
|
default: throw Error(`unhandled node on format message part: ${n}`);
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
|
-
var $t = (e) => e, en =
|
|
926
|
+
var $t = (e) => e, en = k();
|
|
927
927
|
function tn(e, t = {}) {
|
|
928
928
|
let n = !1, r = t.onError || Ye;
|
|
929
929
|
return t.onError = (e) => {
|
|
@@ -979,7 +979,7 @@ function cn(e) {
|
|
|
979
979
|
} else throw an(rn.NOT_SUPPORT_LOCALE_TYPE);
|
|
980
980
|
}
|
|
981
981
|
function ln(e, t, n) {
|
|
982
|
-
return [.../* @__PURE__ */ new Set([n, ...
|
|
982
|
+
return [.../* @__PURE__ */ new Set([n, ...Re(t) ? t : N(t) ? Object.keys(t) : j(t) ? [t] : [n]])];
|
|
983
983
|
}
|
|
984
984
|
function un(e, t, n) {
|
|
985
985
|
let r = j(n) ? n : En, i = e;
|
|
@@ -988,9 +988,9 @@ function un(e, t, n) {
|
|
|
988
988
|
if (!a) {
|
|
989
989
|
a = [];
|
|
990
990
|
let e = [n];
|
|
991
|
-
for (;
|
|
992
|
-
let o =
|
|
993
|
-
e = j(o) ? [o] : o,
|
|
991
|
+
for (; Re(e);) e = dn(a, e, t);
|
|
992
|
+
let o = Re(t) || !P(t) ? t : t.default ? t.default : null;
|
|
993
|
+
e = j(o) ? [o] : o, Re(e) && dn(a, e, !1), i.__localeChainCache.set(r, a);
|
|
994
994
|
}
|
|
995
995
|
return a;
|
|
996
996
|
}
|
|
@@ -1014,7 +1014,7 @@ function pn(e, t, n) {
|
|
|
1014
1014
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1015
1015
|
r = t[t.length - 1] !== "!";
|
|
1016
1016
|
let i = t.replace(/!/g, "");
|
|
1017
|
-
e.push(i), (
|
|
1017
|
+
e.push(i), (Re(n) || P(n)) && n[i] && (r = n[i]);
|
|
1018
1018
|
}
|
|
1019
1019
|
return r;
|
|
1020
1020
|
}
|
|
@@ -1124,7 +1124,7 @@ function Cn(e, t) {
|
|
|
1124
1124
|
let r = n.length, i = e, a = 0;
|
|
1125
1125
|
for (; a < r;) {
|
|
1126
1126
|
let e = n[a];
|
|
1127
|
-
if (qt.includes(e) && kt(i) || !N(i) || !
|
|
1127
|
+
if (qt.includes(e) && kt(i) || !N(i) || !Le(i, e)) return null;
|
|
1128
1128
|
let t = i[e];
|
|
1129
1129
|
if (t === void 0 || A(i)) return null;
|
|
1130
1130
|
i = t, a++;
|
|
@@ -1167,9 +1167,9 @@ var Fn = null, In = (e) => {
|
|
|
1167
1167
|
Fn = e;
|
|
1168
1168
|
}, Ln = () => Fn, Rn = 0;
|
|
1169
1169
|
function zn(e = {}) {
|
|
1170
|
-
let t = A(e.onWarn) ? e.onWarn :
|
|
1170
|
+
let t = A(e.onWarn) ? e.onWarn : ge, n = j(e.version) ? e.version : Tn, r = j(e.locale) || A(e.locale) ? e.locale : En, i = A(r) ? En : r, a = Re(e.fallbackLocale) || P(e.fallbackLocale) || j(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i, o = P(e.messages) ? e.messages : Bn(i), s = P(e.datetimeFormats) ? e.datetimeFormats : Bn(i), c = P(e.numberFormats) ? e.numberFormats : Bn(i), l = we(k(), e.modifiers, On()), u = e.pluralRules || k(), d = A(e.missing) ? e.missing : null, f = M(e.missingWarn) || Se(e.missingWarn) ? e.missingWarn : !0, p = M(e.fallbackWarn) || Se(e.fallbackWarn) ? e.fallbackWarn : !0, m = !!e.fallbackFormat, h = !!e.unresolving, g = A(e.postTranslation) ? e.postTranslation : null, _ = P(e.processor) ? e.processor : null, v = M(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter, b = A(e.messageCompiler) ? e.messageCompiler : kn, x = A(e.messageResolver) ? e.messageResolver : jn || Sn, S = A(e.localeFallbacker) ? e.localeFallbacker : Nn || ln, C = N(e.fallbackContext) ? e.fallbackContext : void 0, w = e, T = N(w.__datetimeFormatters) ? w.__datetimeFormatters : /* @__PURE__ */ new Map(), E = N(w.__numberFormatters) ? w.__numberFormatters : /* @__PURE__ */ new Map(), ee = N(w.__meta) ? w.__meta : {};
|
|
1171
1171
|
Rn++;
|
|
1172
|
-
let
|
|
1172
|
+
let D = {
|
|
1173
1173
|
version: n,
|
|
1174
1174
|
cid: Rn,
|
|
1175
1175
|
locale: r,
|
|
@@ -1188,14 +1188,14 @@ function zn(e = {}) {
|
|
|
1188
1188
|
escapeParameter: y,
|
|
1189
1189
|
messageCompiler: b,
|
|
1190
1190
|
messageResolver: x,
|
|
1191
|
-
localeFallbacker:
|
|
1192
|
-
fallbackContext:
|
|
1191
|
+
localeFallbacker: S,
|
|
1192
|
+
fallbackContext: C,
|
|
1193
1193
|
onWarn: t,
|
|
1194
|
-
__meta:
|
|
1194
|
+
__meta: ee
|
|
1195
1195
|
};
|
|
1196
|
-
return
|
|
1196
|
+
return D.datetimeFormats = s, D.numberFormats = c, D.__datetimeFormatters = T, D.__numberFormatters = E, D;
|
|
1197
1197
|
}
|
|
1198
|
-
var Bn = (e) => ({ [e]:
|
|
1198
|
+
var Bn = (e) => ({ [e]: k() });
|
|
1199
1199
|
function Vn(e, t, n, r, i) {
|
|
1200
1200
|
let { missing: a, onWarn: o } = e;
|
|
1201
1201
|
if (a !== null) {
|
|
@@ -1220,7 +1220,7 @@ var Gn = typeof Intl < "u";
|
|
|
1220
1220
|
Gn && Intl.DateTimeFormat, Gn && Intl.NumberFormat;
|
|
1221
1221
|
function Kn(e, ...t) {
|
|
1222
1222
|
let { datetimeFormats: n, unresolving: r, fallbackLocale: i, onWarn: a, localeFallbacker: o } = e, { __datetimeFormatters: s } = e;
|
|
1223
|
-
if (!j(t[0]) && !
|
|
1223
|
+
if (!j(t[0]) && !xe(t[0]) && !O(t[0])) return "";
|
|
1224
1224
|
let [c, l, u, d] = Jn(...t), f = M(u.missingWarn) ? u.missingWarn : e.missingWarn;
|
|
1225
1225
|
M(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn;
|
|
1226
1226
|
let p = !!u.part, m = on(e, u), h = o(e, i, m);
|
|
@@ -1232,9 +1232,9 @@ function Kn(e, ...t) {
|
|
|
1232
1232
|
for (let t = 0; t < h.length && (_ = h[t], g = n[_] || {}, v = g[c], !P(v)); t++) Vn(e, c, _, f, "datetime format");
|
|
1233
1233
|
if (!P(v) || !j(_)) return r ? -1 : c;
|
|
1234
1234
|
let y = `${_}__${c}`;
|
|
1235
|
-
|
|
1235
|
+
Ce(d) || (y = `${y}__${JSON.stringify(d)}`);
|
|
1236
1236
|
let b = s.get(y);
|
|
1237
|
-
return b || (b = new Intl.DateTimeFormat(_,
|
|
1237
|
+
return b || (b = new Intl.DateTimeFormat(_, we({}, v, d)), s.set(y, b)), p ? b.formatToParts(l) : b.format(l);
|
|
1238
1238
|
}
|
|
1239
1239
|
var qn = [
|
|
1240
1240
|
"localeMatcher",
|
|
@@ -1259,7 +1259,7 @@ var qn = [
|
|
|
1259
1259
|
"fractionalSecondDigits"
|
|
1260
1260
|
];
|
|
1261
1261
|
function Jn(...e) {
|
|
1262
|
-
let [t, n, r, i] = e, a =
|
|
1262
|
+
let [t, n, r, i] = e, a = k(), o = k(), s;
|
|
1263
1263
|
if (j(t)) {
|
|
1264
1264
|
let e = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1265
1265
|
if (!e) throw an(rn.INVALID_ISO_DATE_ARGUMENT);
|
|
@@ -1270,10 +1270,10 @@ function Jn(...e) {
|
|
|
1270
1270
|
} catch {
|
|
1271
1271
|
throw an(rn.INVALID_ISO_DATE_ARGUMENT);
|
|
1272
1272
|
}
|
|
1273
|
-
} else if (
|
|
1273
|
+
} else if (xe(t)) {
|
|
1274
1274
|
if (isNaN(t.getTime())) throw an(rn.INVALID_DATE_ARGUMENT);
|
|
1275
1275
|
s = t;
|
|
1276
|
-
} else if (
|
|
1276
|
+
} else if (O(t)) s = t;
|
|
1277
1277
|
else throw an(rn.INVALID_ARGUMENT);
|
|
1278
1278
|
return j(n) ? a.key = n : P(n) && Object.keys(n).forEach((e) => {
|
|
1279
1279
|
qn.includes(e) ? o[e] = n[e] : a[e] = n[e];
|
|
@@ -1293,7 +1293,7 @@ function Yn(e, t, n) {
|
|
|
1293
1293
|
}
|
|
1294
1294
|
function Xn(e, ...t) {
|
|
1295
1295
|
let { numberFormats: n, unresolving: r, fallbackLocale: i, onWarn: a, localeFallbacker: o } = e, { __numberFormatters: s } = e;
|
|
1296
|
-
if (!
|
|
1296
|
+
if (!O(t[0])) return "";
|
|
1297
1297
|
let [c, l, u, d] = Qn(...t), f = M(u.missingWarn) ? u.missingWarn : e.missingWarn;
|
|
1298
1298
|
M(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn;
|
|
1299
1299
|
let p = !!u.part, m = on(e, u), h = o(e, i, m);
|
|
@@ -1305,9 +1305,9 @@ function Xn(e, ...t) {
|
|
|
1305
1305
|
for (let t = 0; t < h.length && (_ = h[t], g = n[_] || {}, v = g[c], !P(v)); t++) Vn(e, c, _, f, "number format");
|
|
1306
1306
|
if (!P(v) || !j(_)) return r ? -1 : c;
|
|
1307
1307
|
let y = `${_}__${c}`;
|
|
1308
|
-
|
|
1308
|
+
Ce(d) || (y = `${y}__${JSON.stringify(d)}`);
|
|
1309
1309
|
let b = s.get(y);
|
|
1310
|
-
return b || (b = new Intl.NumberFormat(_,
|
|
1310
|
+
return b || (b = new Intl.NumberFormat(_, we({}, v, d)), s.set(y, b)), p ? b.formatToParts(l) : b.format(l);
|
|
1311
1311
|
}
|
|
1312
1312
|
var Zn = [
|
|
1313
1313
|
"localeMatcher",
|
|
@@ -1332,8 +1332,8 @@ var Zn = [
|
|
|
1332
1332
|
"trailingZeroDisplay"
|
|
1333
1333
|
];
|
|
1334
1334
|
function Qn(...e) {
|
|
1335
|
-
let [t, n, r, i] = e, a =
|
|
1336
|
-
if (!
|
|
1335
|
+
let [t, n, r, i] = e, a = k(), o = k();
|
|
1336
|
+
if (!O(t)) throw an(rn.INVALID_ARGUMENT);
|
|
1337
1337
|
let s = t;
|
|
1338
1338
|
return j(n) ? a.key = n : P(n) && Object.keys(n).forEach((e) => {
|
|
1339
1339
|
Zn.includes(e) ? o[e] = n[e] : a[e] = n[e];
|
|
@@ -1356,12 +1356,12 @@ function ar(e, t) {
|
|
|
1356
1356
|
return e = Math.abs(e), t === 2 ? e === 1 ? 0 : 1 : Math.min(e, 2);
|
|
1357
1357
|
}
|
|
1358
1358
|
function or(e) {
|
|
1359
|
-
let t =
|
|
1360
|
-
return
|
|
1359
|
+
let t = O(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1360
|
+
return O(e.named?.count) ? e.named.count : O(e.named?.n) ? e.named.n : t;
|
|
1361
1361
|
}
|
|
1362
1362
|
function sr(e = {}) {
|
|
1363
|
-
let t = e.locale, n = or(e), r = j(t) && A(e.pluralRules?.[t]) ? e.pluralRules[t] : ar, i = r === ar ? void 0 : ar, a = (e) => e[r(n, e.length, i)], o = e.list || [], s = (e) => o[e], c = e.named ||
|
|
1364
|
-
|
|
1363
|
+
let t = e.locale, n = or(e), r = j(t) && A(e.pluralRules?.[t]) ? e.pluralRules[t] : ar, i = r === ar ? void 0 : ar, a = (e) => e[r(n, e.length, i)], o = e.list || [], s = (e) => o[e], c = e.named || k();
|
|
1364
|
+
O(e.pluralIndex) && (c.count ||= e.pluralIndex, c.n ||= e.pluralIndex);
|
|
1365
1365
|
let l = (e) => c[e];
|
|
1366
1366
|
function u(t, n) {
|
|
1367
1367
|
return (A(e.messages) ? e.messages(t, !!n) : N(e.messages) ? e.messages[t] : !1) || (e.parent ? e.parent.message(t) : tr);
|
|
@@ -1373,14 +1373,14 @@ function sr(e = {}) {
|
|
|
1373
1373
|
linked: (e, ...t) => {
|
|
1374
1374
|
let [n, r] = t, i = "text", a = "";
|
|
1375
1375
|
t.length === 1 ? N(n) ? (a = n.modifier || a, i = n.type || i) : j(n) && (a = n || a) : t.length === 2 && (j(n) && (a = n || a), j(r) && (i = r || i));
|
|
1376
|
-
let o = u(e, !0)(m), s = o === "" || o === void 0 ? e : o, c = i === "vnode" &&
|
|
1376
|
+
let o = u(e, !0)(m), s = o === "" || o === void 0 ? e : o, c = i === "vnode" && Re(s) && a ? s[0] : s;
|
|
1377
1377
|
return a ? d(a)(c, i) : c;
|
|
1378
1378
|
},
|
|
1379
1379
|
message: u,
|
|
1380
1380
|
type: j(e.processor?.type) ? e.processor.type : nr,
|
|
1381
1381
|
interpolate: p,
|
|
1382
1382
|
normalize: f,
|
|
1383
|
-
values:
|
|
1383
|
+
values: we(k(), o, c)
|
|
1384
1384
|
};
|
|
1385
1385
|
return m;
|
|
1386
1386
|
}
|
|
@@ -1391,24 +1391,24 @@ function ur(e, ...t) {
|
|
|
1391
1391
|
let [_, v, y] = p ? [
|
|
1392
1392
|
c,
|
|
1393
1393
|
g,
|
|
1394
|
-
s[g] ||
|
|
1394
|
+
s[g] || k()
|
|
1395
1395
|
] : fr(e, c, g, o, d, u), b = _, x = c;
|
|
1396
1396
|
if (!p && !(j(b) || kt(b) || lr(b)) && h && (b = m, x = b), !p && (!(j(b) || kt(b) || lr(b)) || !j(v))) return i ? -1 : c;
|
|
1397
|
-
let
|
|
1398
|
-
|
|
1397
|
+
let S = !1, C = lr(b) ? b : pr(e, c, v, b, x, () => {
|
|
1398
|
+
S = !0;
|
|
1399
1399
|
});
|
|
1400
|
-
if (
|
|
1401
|
-
let
|
|
1402
|
-
return f && j(
|
|
1400
|
+
if (S) return b;
|
|
1401
|
+
let w = mr(e, C, sr(_r(e, v, y, l))), T = r ? r(w, c) : w;
|
|
1402
|
+
return f && j(T) && (T = Fe(T)), T;
|
|
1403
1403
|
}
|
|
1404
1404
|
function dr(e) {
|
|
1405
|
-
|
|
1406
|
-
j(e.named[t]) && (e.named[t] =
|
|
1405
|
+
Re(e.list) ? e.list = e.list.map((e) => j(e) ? Oe(e) : e) : N(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1406
|
+
j(e.named[t]) && (e.named[t] = Oe(e.named[t]));
|
|
1407
1407
|
});
|
|
1408
1408
|
}
|
|
1409
1409
|
function fr(e, t, n, r, i, a) {
|
|
1410
|
-
let { messages: o, onWarn: s, messageResolver: c, localeFallbacker: l } = e, u = l(e, r, n), d =
|
|
1411
|
-
for (let n = 0; n < u.length && (f = u[n], d = o[f] ||
|
|
1410
|
+
let { messages: o, onWarn: s, messageResolver: c, localeFallbacker: l } = e, u = l(e, r, n), d = k(), f, p = null;
|
|
1411
|
+
for (let n = 0; n < u.length && (f = u[n], d = o[f] || k(), (p = c(d, t)) === null && (p = d[t]), !(j(p) || kt(p) || lr(p))); n++) if (!Wn(f, u)) {
|
|
1412
1412
|
let n = Vn(e, t, f, a, "translate");
|
|
1413
1413
|
n !== t && (p = n);
|
|
1414
1414
|
}
|
|
@@ -1435,10 +1435,10 @@ function mr(e, t, n) {
|
|
|
1435
1435
|
return t(n);
|
|
1436
1436
|
}
|
|
1437
1437
|
function hr(...e) {
|
|
1438
|
-
let [t, n, r] = e, i =
|
|
1439
|
-
if (!j(t) && !
|
|
1440
|
-
let a =
|
|
1441
|
-
return
|
|
1438
|
+
let [t, n, r] = e, i = k();
|
|
1439
|
+
if (!j(t) && !O(t) && !lr(t) && !kt(t)) throw an(rn.INVALID_ARGUMENT);
|
|
1440
|
+
let a = O(t) ? String(t) : (lr(t), t);
|
|
1441
|
+
return O(n) ? i.plural = n : j(n) ? i.default = n : P(n) && !Ce(n) ? i.named = n : Re(n) && (i.list = n), O(r) ? i.plural = r : j(r) ? i.default = r : P(r) && we(i, r), [a, i];
|
|
1442
1442
|
}
|
|
1443
1443
|
function gr(e, t, n, r, i, a) {
|
|
1444
1444
|
return {
|
|
@@ -1448,7 +1448,7 @@ function gr(e, t, n, r, i, a) {
|
|
|
1448
1448
|
onError: (e) => {
|
|
1449
1449
|
throw a && a(e), e;
|
|
1450
1450
|
},
|
|
1451
|
-
onCacheKey: (e) =>
|
|
1451
|
+
onCacheKey: (e) => ye(t, n, e)
|
|
1452
1452
|
};
|
|
1453
1453
|
}
|
|
1454
1454
|
function _r(e, t, n, r) {
|
|
@@ -1471,14 +1471,14 @@ function _r(e, t, n, r) {
|
|
|
1471
1471
|
else return cr;
|
|
1472
1472
|
}
|
|
1473
1473
|
};
|
|
1474
|
-
return e.processor && (d.processor = e.processor), r.list && (d.list = r.list), r.named && (d.named = r.named),
|
|
1474
|
+
return e.processor && (d.processor = e.processor), r.list && (d.list = r.list), r.named && (d.named = r.named), O(r.plural) && (d.pluralIndex = r.plural), d;
|
|
1475
1475
|
}
|
|
1476
1476
|
Ot();
|
|
1477
1477
|
//#endregion
|
|
1478
1478
|
//#region ../../node_modules/.pnpm/vue-i18n@11.4.6_vue@3.5.39_typescript@6.0.3_/node_modules/vue-i18n/dist/vue-i18n.mjs
|
|
1479
1479
|
var vr = "11.4.6";
|
|
1480
1480
|
function yr() {
|
|
1481
|
-
typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (
|
|
1481
|
+
typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (De().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1482
1482
|
}
|
|
1483
1483
|
var I = {
|
|
1484
1484
|
UNEXPECTED_RETURN_TYPE: 24,
|
|
@@ -1497,9 +1497,9 @@ function br(e, ...t) {
|
|
|
1497
1497
|
return Je(e, null, void 0);
|
|
1498
1498
|
}
|
|
1499
1499
|
I.UNEXPECTED_RETURN_TYPE, I.INVALID_ARGUMENT, I.MUST_BE_CALL_SETUP_TOP, I.NOT_INSTALLED, I.UNEXPECTED_ERROR, I.REQUIRED_VALUE, I.INVALID_VALUE, I.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN, I.NOT_INSTALLED_WITH_PROVIDE, I.NOT_COMPATIBLE_LEGACY_VUE_I18N, I.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;
|
|
1500
|
-
var xr = /* #__PURE__*/
|
|
1501
|
-
|
|
1502
|
-
var Tr = /* #__PURE__*/
|
|
1500
|
+
var xr = /* #__PURE__*/ ve("__translateVNode"), Sr = /* #__PURE__*/ ve("__datetimeParts"), Cr = /* #__PURE__*/ ve("__numberParts"), wr = ve("__setPluralRules");
|
|
1501
|
+
ve("__intlifyMeta");
|
|
1502
|
+
var Tr = /* #__PURE__*/ ve("__injectWithOption"), Er = /* #__PURE__*/ ve("__dispose"), Dr = {
|
|
1503
1503
|
FALLBACK_TO_ROOT: 10,
|
|
1504
1504
|
NOT_FOUND_PARENT_SCOPE: 11,
|
|
1505
1505
|
IGNORE_OBJ_FLATTEN: 12,
|
|
@@ -1510,12 +1510,12 @@ var Tr = /* #__PURE__*/ ye("__injectWithOption"), Er = /* #__PURE__*/ ye("__disp
|
|
|
1510
1510
|
Dr.FALLBACK_TO_ROOT, Dr.NOT_FOUND_PARENT_SCOPE, Dr.IGNORE_OBJ_FLATTEN, Dr.DEPRECATE_LEGACY_MODE, Dr.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE, Dr.DUPLICATE_USE_I18N_CALLING;
|
|
1511
1511
|
function Or(e) {
|
|
1512
1512
|
if (!N(e) || kt(e)) return e;
|
|
1513
|
-
for (let t in e) if (
|
|
1513
|
+
for (let t in e) if (Le(e, t)) if (!t.includes(".")) N(e[t]) && Or(e[t]);
|
|
1514
1514
|
else {
|
|
1515
1515
|
let n = t.split("."), r = n.length - 1, i = e, a = !1;
|
|
1516
1516
|
for (let e = 0; e < r; e++) {
|
|
1517
1517
|
if (n[e] === "__proto__") throw Error(`unsafe key: ${n[e]}`);
|
|
1518
|
-
if (n[e] in i || (i[n[e]] =
|
|
1518
|
+
if (n[e] in i || (i[n[e]] = k()), !N(i[n[e]])) {
|
|
1519
1519
|
a = !0;
|
|
1520
1520
|
break;
|
|
1521
1521
|
}
|
|
@@ -1529,20 +1529,20 @@ function Or(e) {
|
|
|
1529
1529
|
return e;
|
|
1530
1530
|
}
|
|
1531
1531
|
function kr(e, t) {
|
|
1532
|
-
let { messages: n, __i18n: r, messageResolver: i, flatJson: a } = t, o = P(n) ? n :
|
|
1533
|
-
if (
|
|
1532
|
+
let { messages: n, __i18n: r, messageResolver: i, flatJson: a } = t, o = P(n) ? n : Re(r) ? k() : { [e]: k() };
|
|
1533
|
+
if (Re(r) && r.forEach((e) => {
|
|
1534
1534
|
if ("locale" in e && "resource" in e) {
|
|
1535
1535
|
let { locale: t, resource: n } = e;
|
|
1536
|
-
t ? (o[t] = o[t] ||
|
|
1536
|
+
t ? (o[t] = o[t] || k(), Ge(n, o[t])) : Ge(n, o);
|
|
1537
1537
|
} else j(e) && Ge(JSON.parse(e), o);
|
|
1538
|
-
}), i == null && a) for (let e in o)
|
|
1538
|
+
}), i == null && a) for (let e in o) Le(o, e) && Or(o[e]);
|
|
1539
1539
|
return o;
|
|
1540
1540
|
}
|
|
1541
1541
|
function Ar(e) {
|
|
1542
1542
|
return e.type;
|
|
1543
1543
|
}
|
|
1544
1544
|
function jr(e, t, n) {
|
|
1545
|
-
let r = N(t.messages) ? t.messages :
|
|
1545
|
+
let r = N(t.messages) ? t.messages : k();
|
|
1546
1546
|
"__i18nGlobal" in n && (r = kr(e.locale.value, {
|
|
1547
1547
|
messages: r,
|
|
1548
1548
|
__i18n: n.__i18nGlobal
|
|
@@ -1564,148 +1564,148 @@ function jr(e, t, n) {
|
|
|
1564
1564
|
}
|
|
1565
1565
|
}
|
|
1566
1566
|
function Mr(e) {
|
|
1567
|
-
return
|
|
1567
|
+
return d(g, null, e, 0);
|
|
1568
1568
|
}
|
|
1569
1569
|
function Nr() {
|
|
1570
1570
|
let e = "currentInstance";
|
|
1571
|
-
return e in
|
|
1571
|
+
return e in ae ? ae[e] : a();
|
|
1572
1572
|
}
|
|
1573
1573
|
var Pr = () => [], Fr = () => !1, Ir = 0;
|
|
1574
1574
|
function Lr(e) {
|
|
1575
1575
|
return ((t, n, r, i) => e(n, r, Nr() || void 0, i));
|
|
1576
1576
|
}
|
|
1577
1577
|
function Rr(e = {}) {
|
|
1578
|
-
let { __root: t, __injectWithOption: n } = e, r = t === void 0,
|
|
1579
|
-
|
|
1578
|
+
let { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, o = _e ? fe : E, s = M(e.inheritLocale) ? e.inheritLocale : !0, c = o(t && s ? t.locale.value : j(e.locale) ? e.locale : En), l = o(t && s ? t.fallbackLocale.value : j(e.fallbackLocale) || Re(e.fallbackLocale) || P(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value), u = o(kr(c.value, e)), d = o(P(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), f = o(P(e.numberFormats) ? e.numberFormats : { [c.value]: {} }), p = t ? t.missingWarn : M(e.missingWarn) || Se(e.missingWarn) ? e.missingWarn : !0, h = t ? t.fallbackWarn : M(e.fallbackWarn) || Se(e.fallbackWarn) ? e.fallbackWarn : !0, g = t ? t.fallbackRoot : M(e.fallbackRoot) ? e.fallbackRoot : !0, _ = !!e.fallbackFormat, v = A(e.missing) ? e.missing : null, y = A(e.missing) ? Lr(e.missing) : null, b = A(e.postTranslation) ? e.postTranslation : null, x = t ? t.warnHtmlMessage : M(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, C = t ? t.modifiers : P(e.modifiers) ? e.modifiers : {}, w = e.pluralRules || t && t.pluralRules, T;
|
|
1579
|
+
T = (() => {
|
|
1580
1580
|
r && In(null);
|
|
1581
1581
|
let t = {
|
|
1582
1582
|
version: vr,
|
|
1583
|
-
locale:
|
|
1584
|
-
fallbackLocale:
|
|
1585
|
-
messages:
|
|
1586
|
-
modifiers:
|
|
1587
|
-
pluralRules:
|
|
1588
|
-
missing:
|
|
1589
|
-
missingWarn:
|
|
1590
|
-
fallbackWarn:
|
|
1591
|
-
fallbackFormat:
|
|
1583
|
+
locale: c.value,
|
|
1584
|
+
fallbackLocale: l.value,
|
|
1585
|
+
messages: u.value,
|
|
1586
|
+
modifiers: C,
|
|
1587
|
+
pluralRules: w,
|
|
1588
|
+
missing: y === null ? void 0 : y,
|
|
1589
|
+
missingWarn: p,
|
|
1590
|
+
fallbackWarn: h,
|
|
1591
|
+
fallbackFormat: _,
|
|
1592
1592
|
unresolving: !0,
|
|
1593
|
-
postTranslation:
|
|
1594
|
-
warnHtmlMessage:
|
|
1595
|
-
escapeParameter:
|
|
1593
|
+
postTranslation: b === null ? void 0 : b,
|
|
1594
|
+
warnHtmlMessage: x,
|
|
1595
|
+
escapeParameter: S,
|
|
1596
1596
|
messageResolver: e.messageResolver,
|
|
1597
1597
|
messageCompiler: e.messageCompiler,
|
|
1598
1598
|
__meta: { framework: "vue" }
|
|
1599
1599
|
};
|
|
1600
|
-
t.datetimeFormats =
|
|
1600
|
+
t.datetimeFormats = d.value, t.numberFormats = f.value, t.__datetimeFormatters = P(T) ? T.__datetimeFormatters : void 0, t.__numberFormatters = P(T) ? T.__numberFormatters : void 0;
|
|
1601
1601
|
let n = zn(t);
|
|
1602
1602
|
return r && In(n), n;
|
|
1603
|
-
})(), Hn(
|
|
1604
|
-
function
|
|
1603
|
+
})(), Hn(T, c.value, l.value);
|
|
1604
|
+
function ee() {
|
|
1605
1605
|
return [
|
|
1606
|
-
s.value,
|
|
1607
1606
|
c.value,
|
|
1608
1607
|
l.value,
|
|
1609
1608
|
u.value,
|
|
1610
|
-
d.value
|
|
1609
|
+
d.value,
|
|
1610
|
+
f.value
|
|
1611
1611
|
];
|
|
1612
1612
|
}
|
|
1613
|
-
let
|
|
1614
|
-
get: () =>
|
|
1613
|
+
let D = i({
|
|
1614
|
+
get: () => c.value,
|
|
1615
1615
|
set: (e) => {
|
|
1616
|
-
|
|
1616
|
+
T.locale = e, c.value = e;
|
|
1617
1617
|
}
|
|
1618
|
-
}),
|
|
1619
|
-
get: () =>
|
|
1618
|
+
}), te = i({
|
|
1619
|
+
get: () => l.value,
|
|
1620
1620
|
set: (e) => {
|
|
1621
|
-
|
|
1621
|
+
T.fallbackLocale = e, l.value = e, Hn(T, c.value, e);
|
|
1622
1622
|
}
|
|
1623
|
-
}),
|
|
1624
|
-
function
|
|
1625
|
-
return A(
|
|
1623
|
+
}), ne = i(() => u.value), re = /* #__PURE__*/ i(() => d.value), ie = /* #__PURE__*/ i(() => f.value);
|
|
1624
|
+
function ae() {
|
|
1625
|
+
return A(b) ? b : null;
|
|
1626
1626
|
}
|
|
1627
|
-
function
|
|
1628
|
-
|
|
1627
|
+
function oe(e) {
|
|
1628
|
+
b = e, T.postTranslation = e;
|
|
1629
1629
|
}
|
|
1630
|
-
function
|
|
1631
|
-
return
|
|
1630
|
+
function se() {
|
|
1631
|
+
return v;
|
|
1632
1632
|
}
|
|
1633
|
-
function
|
|
1634
|
-
e !== null && (
|
|
1633
|
+
function ce(e) {
|
|
1634
|
+
e !== null && (y = Lr(e)), v = e, T.missing = y;
|
|
1635
1635
|
}
|
|
1636
|
-
let
|
|
1637
|
-
|
|
1636
|
+
let le = (e, n, i, a, o, s) => {
|
|
1637
|
+
ee();
|
|
1638
1638
|
let c;
|
|
1639
1639
|
try {
|
|
1640
|
-
r || (
|
|
1640
|
+
r || (T.fallbackContext = t ? Ln() : void 0), c = e(T);
|
|
1641
1641
|
} finally {
|
|
1642
|
-
r || (
|
|
1642
|
+
r || (T.fallbackContext = void 0);
|
|
1643
1643
|
}
|
|
1644
|
-
if (i !== "translate exists" &&
|
|
1644
|
+
if (i !== "translate exists" && O(c) && c === -1 || i === "translate exists" && !c) {
|
|
1645
1645
|
let [e, r] = n();
|
|
1646
|
-
return t &&
|
|
1646
|
+
return t && g ? a(t) : o(e);
|
|
1647
1647
|
} else if (s(c)) return c;
|
|
1648
1648
|
else
|
|
1649
1649
|
/* istanbul ignore next */
|
|
1650
1650
|
throw br(I.UNEXPECTED_RETURN_TYPE);
|
|
1651
1651
|
};
|
|
1652
|
-
function
|
|
1653
|
-
return
|
|
1652
|
+
function ue(...e) {
|
|
1653
|
+
return le((t) => Reflect.apply(ur, null, [t, ...e]), () => hr(...e), "translate", (t) => Reflect.apply(t.t, t, [...e]), (e) => e, (e) => j(e));
|
|
1654
1654
|
}
|
|
1655
|
-
function
|
|
1655
|
+
function de(...e) {
|
|
1656
1656
|
let [t, n, r] = e;
|
|
1657
1657
|
if (r && !N(r)) throw br(I.INVALID_ARGUMENT);
|
|
1658
|
-
return
|
|
1658
|
+
return ue(t, n, we({ resolvedMessage: !0 }, r || {}));
|
|
1659
1659
|
}
|
|
1660
|
-
function
|
|
1661
|
-
return
|
|
1660
|
+
function pe(...e) {
|
|
1661
|
+
return le((t) => Reflect.apply(Kn, null, [t, ...e]), () => Jn(...e), "datetime format", (t) => Reflect.apply(t.d, t, [...e]), () => "", (e) => j(e) || Re(e));
|
|
1662
1662
|
}
|
|
1663
|
-
function
|
|
1664
|
-
return
|
|
1663
|
+
function me(...e) {
|
|
1664
|
+
return le((t) => Reflect.apply(Xn, null, [t, ...e]), () => Qn(...e), "number format", (t) => Reflect.apply(t.n, t, [...e]), () => "", (e) => j(e) || Re(e));
|
|
1665
1665
|
}
|
|
1666
|
-
function
|
|
1667
|
-
return e.map((e) => j(e) ||
|
|
1666
|
+
function he(e) {
|
|
1667
|
+
return e.map((e) => j(e) || O(e) || M(e) ? Mr(String(e)) : e);
|
|
1668
1668
|
}
|
|
1669
|
-
let
|
|
1670
|
-
normalize:
|
|
1669
|
+
let ge = {
|
|
1670
|
+
normalize: he,
|
|
1671
1671
|
interpolate: (e) => e,
|
|
1672
1672
|
type: "vnode"
|
|
1673
1673
|
};
|
|
1674
|
-
function
|
|
1675
|
-
return
|
|
1674
|
+
function ve(...e) {
|
|
1675
|
+
return le((t) => {
|
|
1676
1676
|
let n, r = t;
|
|
1677
1677
|
try {
|
|
1678
|
-
r.processor =
|
|
1678
|
+
r.processor = ge, n = Reflect.apply(ur, null, [r, ...e]);
|
|
1679
1679
|
} finally {
|
|
1680
1680
|
r.processor = null;
|
|
1681
1681
|
}
|
|
1682
1682
|
return n;
|
|
1683
|
-
}, () => hr(...e), "translate", (t) => t[xr](...e), (e) => [Mr(e)], (e) =>
|
|
1683
|
+
}, () => hr(...e), "translate", (t) => t[xr](...e), (e) => [Mr(e)], (e) => Re(e));
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1686
|
-
return
|
|
1685
|
+
function ye(...e) {
|
|
1686
|
+
return le((t) => Reflect.apply(Xn, null, [t, ...e]), () => Qn(...e), "number format", (t) => t[Cr](...e), Pr, (e) => j(e) || Re(e));
|
|
1687
1687
|
}
|
|
1688
|
-
function
|
|
1689
|
-
return
|
|
1688
|
+
function be(...e) {
|
|
1689
|
+
return le((t) => Reflect.apply(Kn, null, [t, ...e]), () => Jn(...e), "datetime format", (t) => t[Sr](...e), Pr, (e) => j(e) || Re(e));
|
|
1690
1690
|
}
|
|
1691
|
-
function
|
|
1692
|
-
|
|
1691
|
+
function xe(e) {
|
|
1692
|
+
w = e, T.pluralRules = w;
|
|
1693
1693
|
}
|
|
1694
|
-
function
|
|
1695
|
-
return
|
|
1694
|
+
function Ce(e, t) {
|
|
1695
|
+
return le(() => {
|
|
1696
1696
|
if (!e) return !1;
|
|
1697
|
-
let n = j(t) ? t :
|
|
1697
|
+
let n = j(t) ? t : c.value, r = j(t) ? [n] : un(T, l.value, n);
|
|
1698
1698
|
for (let t = 0; t < r.length; t++) {
|
|
1699
|
-
let n =
|
|
1699
|
+
let n = Ee(r[t]), i = T.messageResolver(n, e);
|
|
1700
1700
|
if (i === null && (i = n[e]), kt(i) || lr(i) || j(i)) return !0;
|
|
1701
1701
|
}
|
|
1702
1702
|
return !1;
|
|
1703
1703
|
}, () => [e], "translate exists", (n) => Reflect.apply(n.te, n, [e, t]), Fr, (e) => M(e));
|
|
1704
1704
|
}
|
|
1705
|
-
function
|
|
1706
|
-
let t = null, n = un(
|
|
1705
|
+
function Te(e) {
|
|
1706
|
+
let t = null, n = un(T, l.value, c.value);
|
|
1707
1707
|
for (let r = 0; r < n.length; r++) {
|
|
1708
|
-
let i =
|
|
1708
|
+
let i = u.value[n[r]] || {}, a = T.messageResolver(i, e);
|
|
1709
1709
|
if (a != null) {
|
|
1710
1710
|
t = a;
|
|
1711
1711
|
break;
|
|
@@ -1713,119 +1713,119 @@ function Rr(e = {}) {
|
|
|
1713
1713
|
}
|
|
1714
1714
|
return t;
|
|
1715
1715
|
}
|
|
1716
|
-
function
|
|
1717
|
-
return
|
|
1716
|
+
function k(e) {
|
|
1717
|
+
return Te(e) ?? (t && t.tm(e) || {});
|
|
1718
1718
|
}
|
|
1719
|
-
function
|
|
1720
|
-
return
|
|
1719
|
+
function Ee(e) {
|
|
1720
|
+
return u.value[e] || {};
|
|
1721
1721
|
}
|
|
1722
|
-
function
|
|
1723
|
-
if (
|
|
1722
|
+
function De(e, t) {
|
|
1723
|
+
if (a) {
|
|
1724
1724
|
let n = { [e]: t };
|
|
1725
|
-
for (let e in n)
|
|
1725
|
+
for (let e in n) Le(n, e) && Or(n[e]);
|
|
1726
1726
|
t = n[e];
|
|
1727
1727
|
}
|
|
1728
|
-
|
|
1728
|
+
u.value[e] = t, T.messages = u.value;
|
|
1729
1729
|
}
|
|
1730
|
-
function
|
|
1731
|
-
|
|
1730
|
+
function Oe(e, t) {
|
|
1731
|
+
u.value[e] = u.value[e] || {};
|
|
1732
1732
|
let n = { [e]: t };
|
|
1733
|
-
if (
|
|
1734
|
-
t = n[e], Ge(t,
|
|
1733
|
+
if (a) for (let e in n) Le(n, e) && Or(n[e]);
|
|
1734
|
+
t = n[e], Ge(t, u.value[e]), T.messages = u.value;
|
|
1735
1735
|
}
|
|
1736
|
-
function
|
|
1737
|
-
return
|
|
1736
|
+
function ke(e) {
|
|
1737
|
+
return d.value[e] || {};
|
|
1738
|
+
}
|
|
1739
|
+
function Ae(e, t) {
|
|
1740
|
+
d.value[e] = t, T.datetimeFormats = d.value, Yn(T, e, t);
|
|
1738
1741
|
}
|
|
1739
1742
|
function je(e, t) {
|
|
1740
|
-
|
|
1743
|
+
d.value[e] = we(d.value[e] || {}, t), T.datetimeFormats = d.value, Yn(T, e, t);
|
|
1741
1744
|
}
|
|
1742
|
-
function Me(e
|
|
1743
|
-
|
|
1745
|
+
function Me(e) {
|
|
1746
|
+
return f.value[e] || {};
|
|
1744
1747
|
}
|
|
1745
|
-
function Ne(e) {
|
|
1746
|
-
|
|
1748
|
+
function Ne(e, t) {
|
|
1749
|
+
f.value[e] = t, T.numberFormats = f.value, $n(T, e, t);
|
|
1747
1750
|
}
|
|
1748
1751
|
function Pe(e, t) {
|
|
1749
|
-
|
|
1750
|
-
}
|
|
1751
|
-
function Fe(e, t) {
|
|
1752
|
-
d.value[e] = Te(d.value[e] || {}, t), w.numberFormats = d.value, $n(w, e, t);
|
|
1752
|
+
f.value[e] = we(f.value[e] || {}, t), T.numberFormats = f.value, $n(T, e, t);
|
|
1753
1753
|
}
|
|
1754
|
-
Ir++, t &&
|
|
1755
|
-
|
|
1756
|
-
}),
|
|
1757
|
-
|
|
1754
|
+
Ir++, t && _e && (m(t.locale, (e) => {
|
|
1755
|
+
s && (c.value = e, T.locale = e, Hn(T, c.value, l.value));
|
|
1756
|
+
}), m(t.fallbackLocale, (e) => {
|
|
1757
|
+
s && (l.value = e, T.fallbackLocale = e, Hn(T, c.value, l.value));
|
|
1758
1758
|
}));
|
|
1759
|
-
let
|
|
1759
|
+
let Fe = {
|
|
1760
1760
|
id: Ir,
|
|
1761
|
-
locale:
|
|
1762
|
-
fallbackLocale:
|
|
1761
|
+
locale: D,
|
|
1762
|
+
fallbackLocale: te,
|
|
1763
1763
|
get inheritLocale() {
|
|
1764
|
-
return
|
|
1764
|
+
return s;
|
|
1765
1765
|
},
|
|
1766
1766
|
set inheritLocale(e) {
|
|
1767
|
-
|
|
1767
|
+
s = e, e && t && (c.value = t.locale.value, l.value = t.fallbackLocale.value, Hn(T, c.value, l.value));
|
|
1768
1768
|
},
|
|
1769
1769
|
get availableLocales() {
|
|
1770
|
-
return Object.keys(
|
|
1770
|
+
return Object.keys(u.value).sort();
|
|
1771
1771
|
},
|
|
1772
|
-
messages:
|
|
1772
|
+
messages: ne,
|
|
1773
1773
|
get modifiers() {
|
|
1774
|
-
return
|
|
1774
|
+
return C;
|
|
1775
1775
|
},
|
|
1776
1776
|
get pluralRules() {
|
|
1777
|
-
return
|
|
1777
|
+
return w || {};
|
|
1778
1778
|
},
|
|
1779
1779
|
get isGlobal() {
|
|
1780
1780
|
return r;
|
|
1781
1781
|
},
|
|
1782
1782
|
get missingWarn() {
|
|
1783
|
-
return
|
|
1783
|
+
return p;
|
|
1784
1784
|
},
|
|
1785
1785
|
set missingWarn(e) {
|
|
1786
|
-
|
|
1786
|
+
p = e, T.missingWarn = p;
|
|
1787
1787
|
},
|
|
1788
1788
|
get fallbackWarn() {
|
|
1789
|
-
return
|
|
1789
|
+
return h;
|
|
1790
1790
|
},
|
|
1791
1791
|
set fallbackWarn(e) {
|
|
1792
|
-
|
|
1792
|
+
h = e, T.fallbackWarn = h;
|
|
1793
1793
|
},
|
|
1794
1794
|
get fallbackRoot() {
|
|
1795
|
-
return
|
|
1795
|
+
return g;
|
|
1796
1796
|
},
|
|
1797
1797
|
set fallbackRoot(e) {
|
|
1798
|
-
|
|
1798
|
+
g = e;
|
|
1799
1799
|
},
|
|
1800
1800
|
get fallbackFormat() {
|
|
1801
|
-
return
|
|
1801
|
+
return _;
|
|
1802
1802
|
},
|
|
1803
1803
|
set fallbackFormat(e) {
|
|
1804
|
-
|
|
1804
|
+
_ = e, T.fallbackFormat = _;
|
|
1805
1805
|
},
|
|
1806
1806
|
get warnHtmlMessage() {
|
|
1807
|
-
return
|
|
1807
|
+
return x;
|
|
1808
1808
|
},
|
|
1809
1809
|
set warnHtmlMessage(e) {
|
|
1810
|
-
|
|
1810
|
+
x = e, T.warnHtmlMessage = e;
|
|
1811
1811
|
},
|
|
1812
1812
|
get escapeParameter() {
|
|
1813
|
-
return
|
|
1813
|
+
return S;
|
|
1814
1814
|
},
|
|
1815
1815
|
set escapeParameter(e) {
|
|
1816
|
-
|
|
1816
|
+
S = e, T.escapeParameter = e;
|
|
1817
1817
|
},
|
|
1818
|
-
t:
|
|
1819
|
-
getLocaleMessage:
|
|
1820
|
-
setLocaleMessage:
|
|
1821
|
-
mergeLocaleMessage:
|
|
1822
|
-
getPostTranslationHandler:
|
|
1823
|
-
setPostTranslationHandler:
|
|
1824
|
-
getMissingHandler:
|
|
1825
|
-
setMissingHandler:
|
|
1826
|
-
[wr]:
|
|
1818
|
+
t: ue,
|
|
1819
|
+
getLocaleMessage: Ee,
|
|
1820
|
+
setLocaleMessage: De,
|
|
1821
|
+
mergeLocaleMessage: Oe,
|
|
1822
|
+
getPostTranslationHandler: ae,
|
|
1823
|
+
setPostTranslationHandler: oe,
|
|
1824
|
+
getMissingHandler: se,
|
|
1825
|
+
setMissingHandler: ce,
|
|
1826
|
+
[wr]: xe
|
|
1827
1827
|
};
|
|
1828
|
-
return
|
|
1828
|
+
return Fe.datetimeFormats = re, Fe.numberFormats = ie, Fe.rt = de, Fe.te = Ce, Fe.tm = k, Fe.d = pe, Fe.n = me, Fe.getDateTimeFormat = ke, Fe.setDateTimeFormat = Ae, Fe.mergeDateTimeFormat = je, Fe.getNumberFormat = Me, Fe.setNumberFormat = Ne, Fe.mergeNumberFormat = Pe, Fe[Tr] = n, Fe[xr] = ve, Fe[Sr] = be, Fe[Cr] = ye, Fe;
|
|
1829
1829
|
}
|
|
1830
1830
|
var zr = {
|
|
1831
1831
|
tag: { type: [String, Object] },
|
|
@@ -1837,25 +1837,25 @@ var zr = {
|
|
|
1837
1837
|
},
|
|
1838
1838
|
i18n: { type: Object }
|
|
1839
1839
|
};
|
|
1840
|
-
|
|
1840
|
+
we({
|
|
1841
1841
|
keypath: {
|
|
1842
1842
|
type: String,
|
|
1843
1843
|
required: !0
|
|
1844
1844
|
},
|
|
1845
1845
|
plural: {
|
|
1846
1846
|
type: [Number, String],
|
|
1847
|
-
validator: (e) =>
|
|
1847
|
+
validator: (e) => O(e) || !isNaN(e)
|
|
1848
1848
|
}
|
|
1849
|
-
}, zr),
|
|
1849
|
+
}, zr), we({
|
|
1850
1850
|
value: {
|
|
1851
1851
|
type: Number,
|
|
1852
1852
|
required: !0
|
|
1853
1853
|
},
|
|
1854
1854
|
format: { type: [String, Object] }
|
|
1855
1855
|
}, zr);
|
|
1856
|
-
var Br = /* #__PURE__*/
|
|
1856
|
+
var Br = /* #__PURE__*/ ve("global-vue-i18n");
|
|
1857
1857
|
function Vr(e = {}) {
|
|
1858
|
-
let t = M(e.globalInjection) ? e.globalInjection : !0, n = /* @__PURE__ */ new Map(), [r, i] = Ur(e, !1), a = /* #__PURE__*/
|
|
1858
|
+
let t = M(e.globalInjection) ? e.globalInjection : !0, n = /* @__PURE__ */ new Map(), [r, i] = Ur(e, !1), a = /* #__PURE__*/ ve("");
|
|
1859
1859
|
function o(e) {
|
|
1860
1860
|
return n.get(e) || null;
|
|
1861
1861
|
}
|
|
@@ -1906,34 +1906,34 @@ function Hr(e = {}) {
|
|
|
1906
1906
|
}
|
|
1907
1907
|
if (a === "isolated") {
|
|
1908
1908
|
if (n.mode !== "composition") throw br(I.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
|
|
1909
|
-
let i = n, a =
|
|
1909
|
+
let i = n, a = we({}, e);
|
|
1910
1910
|
a.__root = qr(n, t) || r;
|
|
1911
1911
|
let o = Rr(a);
|
|
1912
|
-
return i.__composerExtend && (o[Er] = i.__composerExtend(o)),
|
|
1912
|
+
return i.__composerExtend && (o[Er] = i.__composerExtend(o)), ne() && ue(() => {
|
|
1913
1913
|
let e = o[Er];
|
|
1914
1914
|
e && (e(), delete o[Er]);
|
|
1915
1915
|
}), o;
|
|
1916
1916
|
}
|
|
1917
1917
|
let o = n, s = o.__getInstance(t);
|
|
1918
1918
|
if (s == null) {
|
|
1919
|
-
let n =
|
|
1919
|
+
let n = we({}, e);
|
|
1920
1920
|
"__i18n" in i && (n.__i18n = i.__i18n), r && (n.__root = r), s = Rr(n), o.__composerExtend && (s[Er] = o.__composerExtend(s)), Yr(o, t, s), o.__setInstance(t, s);
|
|
1921
1921
|
}
|
|
1922
1922
|
return s;
|
|
1923
1923
|
}
|
|
1924
1924
|
function Ur(e, t) {
|
|
1925
|
-
let n =
|
|
1925
|
+
let n = le(), r = n.run(() => Rr(e));
|
|
1926
1926
|
if (r == null) throw br(I.UNEXPECTED_ERROR);
|
|
1927
1927
|
return [n, r];
|
|
1928
1928
|
}
|
|
1929
1929
|
function Wr(e) {
|
|
1930
|
-
let t =
|
|
1930
|
+
let t = u(e.isCE ? Br : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
1931
1931
|
/* istanbul ignore if */
|
|
1932
1932
|
if (!t) throw br(e.isCE ? I.NOT_INSTALLED_WITH_PROVIDE : I.UNEXPECTED_ERROR);
|
|
1933
1933
|
return t;
|
|
1934
1934
|
}
|
|
1935
1935
|
function Gr(e, t) {
|
|
1936
|
-
return
|
|
1936
|
+
return Ce(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
1937
1937
|
}
|
|
1938
1938
|
function Kr(e) {
|
|
1939
1939
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
@@ -1951,7 +1951,7 @@ function Jr(e, t = !1) {
|
|
|
1951
1951
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
1952
1952
|
}
|
|
1953
1953
|
function Yr(e, t, n) {
|
|
1954
|
-
|
|
1954
|
+
s(() => {}, t), _(() => {
|
|
1955
1955
|
let r = n;
|
|
1956
1956
|
e.__deleteInstance(t);
|
|
1957
1957
|
let i = r[Er];
|
|
@@ -1975,7 +1975,7 @@ function Qr(e, t) {
|
|
|
1975
1975
|
return Xr.forEach((e) => {
|
|
1976
1976
|
let r = Object.getOwnPropertyDescriptor(t, e);
|
|
1977
1977
|
if (!r) throw br(I.UNEXPECTED_ERROR);
|
|
1978
|
-
let i =
|
|
1978
|
+
let i = T(r.value) ? {
|
|
1979
1979
|
get() {
|
|
1980
1980
|
return r.value.value;
|
|
1981
1981
|
},
|
|
@@ -1996,7 +1996,7 @@ function Qr(e, t) {
|
|
|
1996
1996
|
});
|
|
1997
1997
|
};
|
|
1998
1998
|
}
|
|
1999
|
-
|
|
1999
|
+
we({
|
|
2000
2000
|
value: {
|
|
2001
2001
|
type: [Number, Date],
|
|
2002
2002
|
required: !0
|
|
@@ -9477,14 +9477,14 @@ function Fp(e, t, n, r, i) {
|
|
|
9477
9477
|
t && !(Zl && e.composing && t.empty && (m.start != m.endB || e.input.lastChromeDelete < Date.now() - 100) && (t.head == y || t.head == n.mapping.map(b) - 1) || ql && t.empty && t.head == y) && n.setSelection(t);
|
|
9478
9478
|
}
|
|
9479
9479
|
return a && n.setMeta("composition", a), n.scrollIntoView();
|
|
9480
|
-
},
|
|
9480
|
+
}, S;
|
|
9481
9481
|
if (v) if (h.pos == g.pos) {
|
|
9482
9482
|
ql && Jl <= 11 && h.parentOffset == 0 && (e.domObserver.suppressSelectionUpdates(), setTimeout(() => hd(e), 20));
|
|
9483
9483
|
let t = x(e.state.tr.delete(y, b)), n = u.resolve(m.start).marksAcross(u.resolve(m.endA));
|
|
9484
9484
|
n && t.ensureMarks(n), e.dispatch(t);
|
|
9485
|
-
} else if (m.endA == m.endB && (
|
|
9485
|
+
} else if (m.endA == m.endB && (S = Lp(h.parent.content.cut(h.parentOffset, g.parentOffset), _.parent.content.cut(_.parentOffset, m.endA - _.start())))) {
|
|
9486
9486
|
let t = x(e.state.tr);
|
|
9487
|
-
|
|
9487
|
+
S.type == "add" ? t.addMark(y, b, S.mark) : t.removeMark(y, b, S.mark), e.dispatch(t);
|
|
9488
9488
|
} else if (h.parent.child(h.index()).isText && h.index() == g.index() - +!g.textOffset) {
|
|
9489
9489
|
let t = h.parent.textBetween(h.parentOffset, g.parentOffset), n = () => x(e.state.tr.insertText(t, y, b));
|
|
9490
9490
|
e.someProp("handleTextInput", (r) => r(e, y, b, t, n)) || e.dispatch(n());
|
|
@@ -11193,17 +11193,17 @@ function Fg(e) {
|
|
|
11193
11193
|
var Ig = (e, t, n, r = {}) => ({ editor: i, tr: a, state: o, dispatch: s, chain: c, commands: l, can: u }) => {
|
|
11194
11194
|
let { extensions: d, splittableMarks: f } = i.extensionManager, p = xm(e, o.schema), m = xm(t, o.schema), { selection: h, storedMarks: g } = o, { $from: _, $to: v } = h, y = _.blockRange(v), b = g || h.$to.parentOffset && h.$from.marks();
|
|
11195
11195
|
if (!y) return !1;
|
|
11196
|
-
let x = Mh((e) => pg(e.type.name, d))(h),
|
|
11197
|
-
node:
|
|
11196
|
+
let x = Mh((e) => pg(e.type.name, d))(h), S = h.from === 0 && h.to === o.doc.content.size, C = o.doc.content.content, w = C.length === 1 ? C[0] : null, T = S && w && pg(w.type.name, d) ? {
|
|
11197
|
+
node: w,
|
|
11198
11198
|
pos: 0,
|
|
11199
11199
|
depth: 0
|
|
11200
|
-
} : null,
|
|
11201
|
-
if ((
|
|
11202
|
-
if (
|
|
11200
|
+
} : null, E = x ?? T, ee = !!x && y.depth >= 1 && y.depth - x.depth <= 1, D = !!T;
|
|
11201
|
+
if ((ee || D) && E) {
|
|
11202
|
+
if (E.node.type === p) return S && D ? c().command(({ tr: e, dispatch: t }) => {
|
|
11203
11203
|
let n = Fg(e);
|
|
11204
11204
|
return n ? (e.setSelection(n), t && t(e), !0) : !1;
|
|
11205
11205
|
}).liftListItem(m).run() : l.liftListItem(m);
|
|
11206
|
-
if (pg(
|
|
11206
|
+
if (pg(E.node.type.name, d) && p.validContent(E.node.content)) return c().command(() => (a.setNodeMarkup(E.pos, p), !0)).command(() => Ng(a, p)).command(() => Pg(a, p)).run();
|
|
11207
11207
|
}
|
|
11208
11208
|
return !n || !b || !s ? c().command(() => u().wrapInList(p, r) ? !0 : l.clearNodes()).wrapInList(p, r).command(() => Ng(a, p)).command(() => Pg(a, p)).run() : c().command(() => {
|
|
11209
11209
|
let e = u().wrapInList(p, r), t = b.filter((e) => f.includes(e.type.name));
|
|
@@ -14899,9 +14899,9 @@ function lS({ groups: e }) {
|
|
|
14899
14899
|
X(v, e.numeric, y);
|
|
14900
14900
|
let b = cS(sS), x = cS();
|
|
14901
14901
|
X(b, t, b), X(b, n, x), X(x, t, b), X(x, n, x), Q(_, Ax, b), Q(y, Ax, b);
|
|
14902
|
-
let
|
|
14903
|
-
X(s, e.domain, o), Q(s, vx, g), Q(s, xx, h), X(c, e.domain, o), Q(c, vx, g), Q(c, xx, h), X(
|
|
14904
|
-
let
|
|
14902
|
+
let S = Q(s, hx), C = Q(Q(Q(c, hx), Ax), Ax);
|
|
14903
|
+
X(s, e.domain, o), Q(s, vx, g), Q(s, xx, h), X(c, e.domain, o), Q(c, vx, g), Q(c, xx, h), X(S, e.domain, b), Q(S, Ax, b), Q(S, Ex, b), X(C, e.domain, b), X(C, t, b), Q(C, Ax, b);
|
|
14904
|
+
let w = [
|
|
14905
14905
|
[Kb, qb],
|
|
14906
14906
|
[Jb, Yb],
|
|
14907
14907
|
[Xb, Zb],
|
|
@@ -14911,8 +14911,8 @@ function lS({ groups: e }) {
|
|
|
14911
14911
|
[ix, ax],
|
|
14912
14912
|
[ox, sx]
|
|
14913
14913
|
];
|
|
14914
|
-
for (let e = 0; e <
|
|
14915
|
-
let [r, i] =
|
|
14914
|
+
for (let e = 0; e < w.length; e++) {
|
|
14915
|
+
let [r, i] = w[e], a = Q(b, r);
|
|
14916
14916
|
Q(x, r, a);
|
|
14917
14917
|
let o = cS(sS);
|
|
14918
14918
|
X(a, t, o);
|
|
@@ -16431,14 +16431,23 @@ function Fw(e, t, n, r = 0) {
|
|
|
16431
16431
|
}
|
|
16432
16432
|
//#endregion
|
|
16433
16433
|
//#region ../core/src/blockStyle.ts
|
|
16434
|
-
|
|
16434
|
+
var Iw = [
|
|
16435
|
+
"left",
|
|
16436
|
+
"center",
|
|
16437
|
+
"right",
|
|
16438
|
+
"justify"
|
|
16439
|
+
];
|
|
16440
|
+
function Lw(e) {
|
|
16441
|
+
return Iw.includes(e);
|
|
16442
|
+
}
|
|
16443
|
+
function Rw(e) {
|
|
16435
16444
|
return `${e}px`;
|
|
16436
16445
|
}
|
|
16437
|
-
function
|
|
16446
|
+
function zw(e, t) {
|
|
16438
16447
|
if (!e) return [];
|
|
16439
16448
|
let n = null;
|
|
16440
16449
|
e.customFont === void 0 ? e.font !== void 0 && e.font !== t && (n = Ti(e.font)) : n = e.customFont;
|
|
16441
|
-
let r = e.color?.type === "color" ? _i(e.color) : null, i = e.fontSize === void 0 ? null :
|
|
16450
|
+
let r = e.color?.type === "color" ? _i(e.color) : null, i = e.fontSize === void 0 ? null : Rw(e.fontSize), a = [];
|
|
16442
16451
|
return (n !== null || r !== null || i !== null) && a.push({
|
|
16443
16452
|
type: "textStyle",
|
|
16444
16453
|
attrs: {
|
|
@@ -16448,12 +16457,12 @@ function Lw(e, t) {
|
|
|
16448
16457
|
}
|
|
16449
16458
|
}), e.bold && a.push({ type: "bold" }), e.italic && a.push({ type: "italic" }), e.underline && a.push({ type: "underline" }), a;
|
|
16450
16459
|
}
|
|
16451
|
-
function
|
|
16460
|
+
function Bw(e, t, n) {
|
|
16452
16461
|
let r = ga(e, t), { data: i } = r;
|
|
16453
16462
|
switch (i.type) {
|
|
16454
16463
|
case "text": {
|
|
16455
16464
|
let e = n?.text;
|
|
16456
|
-
e && (i.text = Ii(e.align),
|
|
16465
|
+
e && (i.text = Ii(e.align), Vw(i, e), e.paragraphSpacing !== void 0 && (i.paragraphSpacing = e.paragraphSpacing));
|
|
16457
16466
|
break;
|
|
16458
16467
|
}
|
|
16459
16468
|
case "header": {
|
|
@@ -16461,8 +16470,8 @@ function Rw(e, t, n) {
|
|
|
16461
16470
|
e && (i.text = zi(Li, {
|
|
16462
16471
|
level: e.level,
|
|
16463
16472
|
align: e.align,
|
|
16464
|
-
marks:
|
|
16465
|
-
}),
|
|
16473
|
+
marks: zw(e, t)
|
|
16474
|
+
}), Vw(i, e));
|
|
16466
16475
|
break;
|
|
16467
16476
|
}
|
|
16468
16477
|
case "button": {
|
|
@@ -16483,7 +16492,7 @@ function Rw(e, t, n) {
|
|
|
16483
16492
|
}
|
|
16484
16493
|
return r;
|
|
16485
16494
|
}
|
|
16486
|
-
function
|
|
16495
|
+
function Vw(e, t) {
|
|
16487
16496
|
t.background && (e.background = {
|
|
16488
16497
|
type: "solid",
|
|
16489
16498
|
color: t.background
|
|
@@ -16491,23 +16500,23 @@ function zw(e, t) {
|
|
|
16491
16500
|
}
|
|
16492
16501
|
//#endregion
|
|
16493
16502
|
//#region \0plugin-vue:export-helper
|
|
16494
|
-
var
|
|
16503
|
+
var Hw = (e, t) => {
|
|
16495
16504
|
let n = e.__vccOpts || e;
|
|
16496
16505
|
for (let [e, r] of t) n[e] = r;
|
|
16497
16506
|
return n;
|
|
16498
16507
|
};
|
|
16499
16508
|
//#endregion
|
|
16500
16509
|
//#region src/customFonts.ts
|
|
16501
|
-
function
|
|
16510
|
+
function Uw(e) {
|
|
16502
16511
|
return e.map((e) => ({
|
|
16503
16512
|
...e,
|
|
16504
16513
|
stack: Ai(e)
|
|
16505
16514
|
}));
|
|
16506
16515
|
}
|
|
16507
|
-
var
|
|
16508
|
-
function
|
|
16516
|
+
var Ww = /* @__PURE__ */ new Set();
|
|
16517
|
+
function Gw(e) {
|
|
16509
16518
|
if (!(typeof document > "u")) {
|
|
16510
|
-
for (let t of e) if (!
|
|
16519
|
+
for (let t of e) if (!Ww.has(t.href)) if (Ww.add(t.href), Ni(t) === "file") {
|
|
16511
16520
|
if (typeof FontFace > "u") continue;
|
|
16512
16521
|
let e = new FontFace(t.name, `url("${t.href}")`, { display: "swap" });
|
|
16513
16522
|
document.fonts.add(e), e.load().catch((e) => {
|
|
@@ -16521,9 +16530,9 @@ function Uw(e) {
|
|
|
16521
16530
|
}
|
|
16522
16531
|
}
|
|
16523
16532
|
}
|
|
16524
|
-
function
|
|
16533
|
+
function Kw(e, t) {
|
|
16525
16534
|
if (Array.isArray(e)) {
|
|
16526
|
-
for (let n of e)
|
|
16535
|
+
for (let n of e) Kw(n, t);
|
|
16527
16536
|
return;
|
|
16528
16537
|
}
|
|
16529
16538
|
if (typeof e != "object" || !e) return;
|
|
@@ -16533,9 +16542,9 @@ function Ww(e, t) {
|
|
|
16533
16542
|
typeof e?.fontFamily == "string" && t.stacks.add(e.fontFamily);
|
|
16534
16543
|
}
|
|
16535
16544
|
n.type === "button" && typeof n.customFont == "string" && t.stacks.add(n.customFont), n.type === "custom" && typeof n.html == "string" && t.pluginHtml.push(n.html);
|
|
16536
|
-
for (let e of Object.values(n))
|
|
16545
|
+
for (let e of Object.values(n)) Kw(e, t);
|
|
16537
16546
|
}
|
|
16538
|
-
var
|
|
16547
|
+
var qw = /&(?:quot|#34|#x22|apos|#39|#x27|amp|#38|#x26);/gi, Jw = {
|
|
16539
16548
|
""": "\"",
|
|
16540
16549
|
""": "\"",
|
|
16541
16550
|
""": "\"",
|
|
@@ -16546,31 +16555,31 @@ var Gw = /&(?:quot|#34|#x22|apos|#39|#x27|amp|#38|#x26);/gi, Kw = {
|
|
|
16546
16555
|
"&": "&",
|
|
16547
16556
|
"&": "&"
|
|
16548
16557
|
};
|
|
16549
|
-
function
|
|
16550
|
-
return e.replace(
|
|
16558
|
+
function Yw(e) {
|
|
16559
|
+
return e.replace(qw, (e) => Jw[e.toLowerCase()] ?? e);
|
|
16551
16560
|
}
|
|
16552
|
-
function
|
|
16561
|
+
function Xw(e) {
|
|
16553
16562
|
let t = (Ai(e).split(",")[0] ?? "").replace(/["']/g, "").trim();
|
|
16554
16563
|
return [.../* @__PURE__ */ new Set([e.name.trim(), t])].filter((e) => e !== "");
|
|
16555
16564
|
}
|
|
16556
|
-
var
|
|
16557
|
-
function
|
|
16565
|
+
var Zw = /[.*+?^${}()|[\]\\]/g;
|
|
16566
|
+
function Qw(e, t) {
|
|
16558
16567
|
if (e.length === 0) return !1;
|
|
16559
|
-
let n = e.map(
|
|
16560
|
-
return
|
|
16561
|
-
let t = RegExp(`(^|[^\\w-])${e.replace(
|
|
16568
|
+
let n = e.map(Yw);
|
|
16569
|
+
return Xw(t).some((e) => {
|
|
16570
|
+
let t = RegExp(`(^|[^\\w-])${e.replace(Zw, "\\$&")}(?![\\w-])`, "i");
|
|
16562
16571
|
return n.some((e) => t.test(e));
|
|
16563
16572
|
});
|
|
16564
16573
|
}
|
|
16565
|
-
function
|
|
16574
|
+
function $w(e, t) {
|
|
16566
16575
|
let n = {
|
|
16567
16576
|
stacks: /* @__PURE__ */ new Set(),
|
|
16568
16577
|
pluginHtml: []
|
|
16569
16578
|
};
|
|
16570
|
-
|
|
16579
|
+
Kw(e.root, n);
|
|
16571
16580
|
let r = e.customFonts ?? [], i = [], a = (e) => {
|
|
16572
16581
|
let t = Ai(e);
|
|
16573
|
-
(n.stacks.has(t) ||
|
|
16582
|
+
(n.stacks.has(t) || Qw(n.pluginHtml, e)) && !i.some((e) => Ai(e) === t) && i.push(e);
|
|
16574
16583
|
};
|
|
16575
16584
|
for (let { stack: e, ...n } of t) a(n);
|
|
16576
16585
|
for (let e of r) a(e);
|
|
@@ -16579,35 +16588,35 @@ function Zw(e, t) {
|
|
|
16579
16588
|
}
|
|
16580
16589
|
//#endregion
|
|
16581
16590
|
//#region src/assets/icons/board.svg?component
|
|
16582
|
-
var
|
|
16591
|
+
var eT = {
|
|
16583
16592
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16584
16593
|
width: "55",
|
|
16585
16594
|
height: "55",
|
|
16586
16595
|
fill: "none",
|
|
16587
16596
|
viewBox: "0 0 54.64 54.64"
|
|
16588
16597
|
};
|
|
16589
|
-
function
|
|
16590
|
-
return
|
|
16598
|
+
function tT(t, n) {
|
|
16599
|
+
return y(), e("svg", eT, [...n[0] ||= [r("path", {
|
|
16591
16600
|
stroke: "currentColor",
|
|
16592
16601
|
"stroke-linejoin": "round",
|
|
16593
16602
|
"stroke-width": "2",
|
|
16594
16603
|
d: "M47.051 52.965c3.203-.26 5.653-2.711 5.913-5.914.33-4.046.676-10.501.676-19.731s-.347-15.685-.675-19.731c-.26-3.203-2.711-5.653-5.914-5.913C43.005 1.346 36.55 1 27.32 1s-15.685.347-19.731.676c-3.203.26-5.653 2.71-5.913 5.913C1.346 11.635 1 18.09 1 27.32s.347 15.685.676 19.731c.26 3.203 2.71 5.653 5.913 5.913 4.046.33 10.501.676 19.731.676s15.685-.347 19.731-.675Z"
|
|
16595
|
-
}, null, -1),
|
|
16604
|
+
}, null, -1), r("path", {
|
|
16596
16605
|
stroke: "currentColor",
|
|
16597
16606
|
"stroke-linejoin": "round",
|
|
16598
16607
|
"stroke-width": "2",
|
|
16599
16608
|
d: "M20.984 10.07c1.403.219 2.302 1.43 2.356 2.85.095 2.522.22 7.192.22 14.4s-.125 11.878-.22 14.4c-.054 1.42-.953 2.631-2.356 2.85-1.042.161-2.467.297-4.317.297s-3.276-.136-4.317-.298c-1.404-.218-2.303-1.429-2.356-2.848-.096-2.523-.22-7.193-.22-14.401s.124-11.878.22-14.4c.053-1.42.952-2.631 2.356-2.85 1.041-.161 2.466-.297 4.317-.297s3.275.136 4.317.298ZM34.03 9.903c-1.582.116-2.734 1.369-2.813 2.953-.072 1.45-.137 3.529-.137 6.317s.065 4.868.137 6.318c.08 1.584 1.23 2.836 2.813 2.952 1 .073 2.305.13 3.943.13 1.639 0 2.943-.057 3.944-.13 1.582-.116 2.734-1.368 2.813-2.952.072-1.45.137-3.529.137-6.318s-.065-4.868-.137-6.317c-.08-1.584-1.231-2.837-2.813-2.953-1-.073-2.305-.13-3.944-.13s-2.943.057-3.943.13Z"
|
|
16600
16609
|
}, null, -1)]]);
|
|
16601
16610
|
}
|
|
16602
|
-
var
|
|
16611
|
+
var nT = { render: tT }, rT = {
|
|
16603
16612
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16604
16613
|
width: "16",
|
|
16605
16614
|
height: "16",
|
|
16606
16615
|
fill: "none",
|
|
16607
16616
|
viewBox: "0 0 16 16"
|
|
16608
16617
|
};
|
|
16609
|
-
function
|
|
16610
|
-
return
|
|
16618
|
+
function iT(t, n) {
|
|
16619
|
+
return y(), e("svg", rT, [...n[0] ||= [r("path", {
|
|
16611
16620
|
stroke: "currentColor",
|
|
16612
16621
|
"stroke-linecap": "round",
|
|
16613
16622
|
"stroke-linejoin": "round",
|
|
@@ -16615,15 +16624,15 @@ function nT(e, t) {
|
|
|
16615
16624
|
d: "m12.33 13.67-4.33-3-4.33 3v-10c0-.74.6-1.34 1.33-1.34h6c.74 0 1.33.6 1.33 1.34z"
|
|
16616
16625
|
}, null, -1)]]);
|
|
16617
16626
|
}
|
|
16618
|
-
var
|
|
16627
|
+
var aT = { render: iT }, oT = {
|
|
16619
16628
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16620
16629
|
width: "16",
|
|
16621
16630
|
height: "16",
|
|
16622
16631
|
fill: "none",
|
|
16623
16632
|
viewBox: "0 0 16 16"
|
|
16624
16633
|
};
|
|
16625
|
-
function
|
|
16626
|
-
return
|
|
16634
|
+
function sT(t, n) {
|
|
16635
|
+
return y(), e("svg", oT, [...n[0] ||= [r("path", {
|
|
16627
16636
|
stroke: "currentColor",
|
|
16628
16637
|
"stroke-linecap": "round",
|
|
16629
16638
|
"stroke-linejoin": "round",
|
|
@@ -16631,15 +16640,15 @@ function aT(e, t) {
|
|
|
16631
16640
|
d: "M6.5 3c-1 0-1 1-1 2 0 1.5-1 2-1 3s1 1.5 1 3c0 1 0 2 1 2M9.5 3c1 0 1 1 1 2 0 1.5 1 2 1 3s-1 1.5-1 3c0 1 0 2-1 2"
|
|
16632
16641
|
}, null, -1)]]);
|
|
16633
16642
|
}
|
|
16634
|
-
var
|
|
16643
|
+
var cT = { render: sT }, lT = {
|
|
16635
16644
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16636
16645
|
width: "40",
|
|
16637
16646
|
height: "40",
|
|
16638
16647
|
fill: "none",
|
|
16639
16648
|
viewBox: "0 0 40 40"
|
|
16640
16649
|
};
|
|
16641
|
-
function
|
|
16642
|
-
return
|
|
16650
|
+
function uT(t, n) {
|
|
16651
|
+
return y(), e("svg", lT, [...n[0] ||= [r("rect", {
|
|
16643
16652
|
width: "28",
|
|
16644
16653
|
height: "14",
|
|
16645
16654
|
x: "6",
|
|
@@ -16648,22 +16657,22 @@ function cT(e, t) {
|
|
|
16648
16657
|
"stroke-linejoin": "round",
|
|
16649
16658
|
"stroke-width": "1.2",
|
|
16650
16659
|
rx: "5"
|
|
16651
|
-
}, null, -1),
|
|
16660
|
+
}, null, -1), r("path", {
|
|
16652
16661
|
stroke: "currentColor",
|
|
16653
16662
|
"stroke-linecap": "round",
|
|
16654
16663
|
"stroke-width": "1.2",
|
|
16655
16664
|
d: "M14 20h12"
|
|
16656
16665
|
}, null, -1)]]);
|
|
16657
16666
|
}
|
|
16658
|
-
var
|
|
16667
|
+
var dT = { render: uT }, fT = {
|
|
16659
16668
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16660
16669
|
width: "16",
|
|
16661
16670
|
height: "16",
|
|
16662
16671
|
fill: "none",
|
|
16663
16672
|
viewBox: "0 0 16 16"
|
|
16664
16673
|
};
|
|
16665
|
-
function
|
|
16666
|
-
return
|
|
16674
|
+
function pT(t, n) {
|
|
16675
|
+
return y(), e("svg", fT, [...n[0] ||= [r("path", {
|
|
16667
16676
|
stroke: "currentColor",
|
|
16668
16677
|
"stroke-linecap": "round",
|
|
16669
16678
|
"stroke-linejoin": "round",
|
|
@@ -16671,30 +16680,30 @@ function dT(e, t) {
|
|
|
16671
16680
|
d: "m4 6 4 4 4-4"
|
|
16672
16681
|
}, null, -1)]]);
|
|
16673
16682
|
}
|
|
16674
|
-
var
|
|
16683
|
+
var mT = { render: pT }, hT = {
|
|
16675
16684
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16676
16685
|
width: "16",
|
|
16677
16686
|
height: "16",
|
|
16678
16687
|
fill: "none",
|
|
16679
16688
|
viewBox: "0 0 16 16"
|
|
16680
16689
|
};
|
|
16681
|
-
function
|
|
16682
|
-
return
|
|
16690
|
+
function gT(t, n) {
|
|
16691
|
+
return y(), e("svg", hT, [...n[0] ||= [r("path", {
|
|
16683
16692
|
stroke: "currentColor",
|
|
16684
16693
|
"stroke-linecap": "round",
|
|
16685
16694
|
"stroke-width": "1.2",
|
|
16686
16695
|
d: "m4 4 8 8M12 4l-8 8"
|
|
16687
16696
|
}, null, -1)]]);
|
|
16688
16697
|
}
|
|
16689
|
-
var
|
|
16698
|
+
var _T = { render: gT }, vT = {
|
|
16690
16699
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16691
16700
|
width: "40",
|
|
16692
16701
|
height: "40",
|
|
16693
16702
|
fill: "none",
|
|
16694
16703
|
viewBox: "0 0 40 40"
|
|
16695
16704
|
};
|
|
16696
|
-
function
|
|
16697
|
-
return
|
|
16705
|
+
function yT(t, n) {
|
|
16706
|
+
return y(), e("svg", vT, [...n[0] ||= [r("rect", {
|
|
16698
16707
|
width: "28",
|
|
16699
16708
|
height: "22",
|
|
16700
16709
|
x: "6",
|
|
@@ -16703,22 +16712,22 @@ function _T(e, t) {
|
|
|
16703
16712
|
"stroke-linejoin": "round",
|
|
16704
16713
|
"stroke-width": "1.2",
|
|
16705
16714
|
rx: "3"
|
|
16706
|
-
}, null, -1),
|
|
16715
|
+
}, null, -1), r("path", {
|
|
16707
16716
|
stroke: "currentColor",
|
|
16708
16717
|
"stroke-linecap": "round",
|
|
16709
16718
|
"stroke-width": "1.2",
|
|
16710
16719
|
d: "M15.33 9.6v20.8M24.67 9.6v20.8"
|
|
16711
16720
|
}, null, -1)]]);
|
|
16712
16721
|
}
|
|
16713
|
-
var
|
|
16722
|
+
var bT = { render: yT }, xT = {
|
|
16714
16723
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16715
16724
|
width: "16",
|
|
16716
16725
|
height: "16",
|
|
16717
16726
|
fill: "none",
|
|
16718
16727
|
viewBox: "0 0 16 16"
|
|
16719
16728
|
};
|
|
16720
|
-
function
|
|
16721
|
-
return
|
|
16729
|
+
function ST(t, n) {
|
|
16730
|
+
return y(), e("svg", xT, [...n[0] ||= [r("rect", {
|
|
16722
16731
|
width: "7.33",
|
|
16723
16732
|
height: "7.67",
|
|
16724
16733
|
x: "6",
|
|
@@ -16727,7 +16736,7 @@ function bT(e, t) {
|
|
|
16727
16736
|
"stroke-linejoin": "round",
|
|
16728
16737
|
"stroke-width": "1.2",
|
|
16729
16738
|
rx: "1.33"
|
|
16730
|
-
}, null, -1),
|
|
16739
|
+
}, null, -1), r("path", {
|
|
16731
16740
|
stroke: "currentColor",
|
|
16732
16741
|
"stroke-linecap": "round",
|
|
16733
16742
|
"stroke-linejoin": "round",
|
|
@@ -16735,15 +16744,15 @@ function bT(e, t) {
|
|
|
16735
16744
|
d: "M10 4.33v-.66c0-.74-.6-1.34-1.33-1.34h-5c-.74 0-1.34.6-1.34 1.34v5c0 .73.6 1.33 1.34 1.33h.66"
|
|
16736
16745
|
}, null, -1)]]);
|
|
16737
16746
|
}
|
|
16738
|
-
var
|
|
16747
|
+
var CT = { render: ST }, wT = {
|
|
16739
16748
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16740
16749
|
width: "16",
|
|
16741
16750
|
height: "16",
|
|
16742
16751
|
fill: "none",
|
|
16743
16752
|
viewBox: "0 0 16 16"
|
|
16744
16753
|
};
|
|
16745
|
-
function
|
|
16746
|
-
return
|
|
16754
|
+
function TT(t, n) {
|
|
16755
|
+
return y(), e("svg", wT, [...n[0] ||= [r("rect", {
|
|
16747
16756
|
width: "13",
|
|
16748
16757
|
height: "8.5",
|
|
16749
16758
|
x: "1.5",
|
|
@@ -16752,44 +16761,44 @@ function CT(e, t) {
|
|
|
16752
16761
|
"stroke-linejoin": "round",
|
|
16753
16762
|
"stroke-width": "1.2",
|
|
16754
16763
|
rx: "1.5"
|
|
16755
|
-
}, null, -1),
|
|
16764
|
+
}, null, -1), r("path", {
|
|
16756
16765
|
stroke: "currentColor",
|
|
16757
16766
|
"stroke-linecap": "round",
|
|
16758
16767
|
"stroke-width": "1.2",
|
|
16759
16768
|
d: "M6 14.5h4M8 11v3.5"
|
|
16760
16769
|
}, null, -1)]]);
|
|
16761
16770
|
}
|
|
16762
|
-
var
|
|
16771
|
+
var ET = { render: TT }, DT = {
|
|
16763
16772
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16764
16773
|
width: "40",
|
|
16765
16774
|
height: "40",
|
|
16766
16775
|
fill: "none",
|
|
16767
16776
|
viewBox: "0 0 20 20"
|
|
16768
16777
|
};
|
|
16769
|
-
function
|
|
16770
|
-
return
|
|
16778
|
+
function OT(t, n) {
|
|
16779
|
+
return y(), e("svg", DT, [...n[0] ||= [r("g", {
|
|
16771
16780
|
stroke: "currentColor",
|
|
16772
16781
|
"stroke-linecap": "round",
|
|
16773
16782
|
"stroke-linejoin": "round",
|
|
16774
16783
|
"stroke-width": ".7"
|
|
16775
|
-
}, [
|
|
16784
|
+
}, [r("path", {
|
|
16776
16785
|
"stroke-width": ".595",
|
|
16777
16786
|
d: "M11.046 5.442a76 76 0 0 1-.065 2.172c-.016.353-.234.651-.586.68a4.5 4.5 0 0 1-.721 0c-.387-.03-.64-.358-.657-.746a77 77 0 0 1-.062-2.107l-.301.265c-.294.257-.72.369-1.011.11a1 1 0 0 1-.118-.122 2 2 0 0 1-.14-.186c-.217-.326-.159-.75.094-1.05a8.5 8.5 0 0 1 1.65-1.487c.532-.37 1.231-.405 1.76-.033.513.359 1.093.865 1.635 1.52.25.3.309.724.091 1.05q-.064.096-.14.186a1 1 0 0 1-.118.121c-.291.26-.717.148-1.01-.11zM8.954 14.587a76 76 0 0 1 .065-2.173c.016-.352.234-.651.586-.68a4.5 4.5 0 0 1 .721 0c.387.03.64.358.657.746.021.48.047 1.207.062 2.107l.301-.264c.294-.258.72-.37 1.011-.11q.062.055.118.12.075.091.14.188c.217.325.159.75-.094 1.048a8.5 8.5 0 0 1-1.65 1.488c-.532.37-1.231.405-1.76.034a8.5 8.5 0 0 1-1.635-1.52c-.25-.301-.308-.725-.091-1.05a2 2 0 0 1 .14-.187q.056-.067.118-.121c.291-.26.717-.148 1.01.11zM3.342 10h13.316"
|
|
16778
16787
|
})], -1)]]);
|
|
16779
16788
|
}
|
|
16780
|
-
var
|
|
16789
|
+
var kT = { render: OT }, AT = {
|
|
16781
16790
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16782
16791
|
width: "16",
|
|
16783
16792
|
height: "16",
|
|
16784
16793
|
fill: "none",
|
|
16785
16794
|
viewBox: "0 0 16 16"
|
|
16786
16795
|
};
|
|
16787
|
-
function
|
|
16788
|
-
return
|
|
16796
|
+
function jT(t, n) {
|
|
16797
|
+
return y(), e("svg", AT, [...n[0] ||= [r("path", {
|
|
16789
16798
|
stroke: "currentColor",
|
|
16790
16799
|
"stroke-width": "1.2",
|
|
16791
16800
|
d: "M1.148 8.293a1.05 1.05 0 0 1 0-.581C1.983 4.806 4.735 2.673 8 2.673c3.264 0 6.014 2.13 6.851 5.034.055.19.055.391 0 .581-.835 2.906-3.587 5.039-6.852 5.039-3.264 0-6.014-2.13-6.851-5.034Z"
|
|
16792
|
-
}, null, -1),
|
|
16801
|
+
}, null, -1), r("path", {
|
|
16793
16802
|
stroke: "currentColor",
|
|
16794
16803
|
"stroke-linecap": "round",
|
|
16795
16804
|
"stroke-linejoin": "round",
|
|
@@ -16797,15 +16806,15 @@ function kT(e, t) {
|
|
|
16797
16806
|
d: "M11.133 8a3.133 3.133 0 1 1-6.266 0 3.133 3.133 0 0 1 6.266 0"
|
|
16798
16807
|
}, null, -1)]]);
|
|
16799
16808
|
}
|
|
16800
|
-
var
|
|
16809
|
+
var MT = { render: jT }, NT = {
|
|
16801
16810
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16802
16811
|
width: "40",
|
|
16803
16812
|
height: "40",
|
|
16804
16813
|
fill: "none",
|
|
16805
16814
|
viewBox: "0 0 40 40"
|
|
16806
16815
|
};
|
|
16807
|
-
function
|
|
16808
|
-
return
|
|
16816
|
+
function PT(t, n) {
|
|
16817
|
+
return y(), e("svg", NT, [...n[0] ||= [r("path", {
|
|
16809
16818
|
stroke: "currentColor",
|
|
16810
16819
|
"stroke-linecap": "round",
|
|
16811
16820
|
"stroke-linejoin": "round",
|
|
@@ -16813,15 +16822,15 @@ function MT(e, t) {
|
|
|
16813
16822
|
d: "M10 8v24M24 8v24M10 20h14M30 26l3-2v8"
|
|
16814
16823
|
}, null, -1)]]);
|
|
16815
16824
|
}
|
|
16816
|
-
var
|
|
16825
|
+
var FT = { render: PT }, IT = {
|
|
16817
16826
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16818
16827
|
width: "40",
|
|
16819
16828
|
height: "40",
|
|
16820
16829
|
fill: "none",
|
|
16821
16830
|
viewBox: "0 0 40 40"
|
|
16822
16831
|
};
|
|
16823
|
-
function
|
|
16824
|
-
return
|
|
16832
|
+
function LT(t, n) {
|
|
16833
|
+
return y(), e("svg", IT, [...n[0] ||= [r("rect", {
|
|
16825
16834
|
width: "28",
|
|
16826
16835
|
height: "22",
|
|
16827
16836
|
x: "6",
|
|
@@ -16830,7 +16839,7 @@ function FT(e, t) {
|
|
|
16830
16839
|
"stroke-linejoin": "round",
|
|
16831
16840
|
"stroke-width": "1.2",
|
|
16832
16841
|
rx: "3"
|
|
16833
|
-
}, null, -1),
|
|
16842
|
+
}, null, -1), r("path", {
|
|
16834
16843
|
stroke: "currentColor",
|
|
16835
16844
|
"stroke-linecap": "round",
|
|
16836
16845
|
"stroke-linejoin": "round",
|
|
@@ -16838,16 +16847,16 @@ function FT(e, t) {
|
|
|
16838
16847
|
d: "m17 16-4 4 4 4M23 16l4 4-4 4"
|
|
16839
16848
|
}, null, -1)]]);
|
|
16840
16849
|
}
|
|
16841
|
-
var
|
|
16850
|
+
var RT = { render: LT }, zT = {
|
|
16842
16851
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16843
16852
|
width: "40",
|
|
16844
16853
|
height: "40",
|
|
16845
16854
|
fill: "none",
|
|
16846
16855
|
viewBox: "0 0 40 40"
|
|
16847
16856
|
};
|
|
16848
|
-
function
|
|
16849
|
-
return
|
|
16850
|
-
|
|
16857
|
+
function BT(t, n) {
|
|
16858
|
+
return y(), e("svg", zT, [...n[0] ||= [
|
|
16859
|
+
r("rect", {
|
|
16851
16860
|
width: "28",
|
|
16852
16861
|
height: "22",
|
|
16853
16862
|
x: "6",
|
|
@@ -16857,21 +16866,21 @@ function RT(e, t) {
|
|
|
16857
16866
|
"stroke-width": "1.2",
|
|
16858
16867
|
rx: "3"
|
|
16859
16868
|
}, null, -1),
|
|
16860
|
-
|
|
16869
|
+
r("circle", {
|
|
16861
16870
|
cx: "14",
|
|
16862
16871
|
cy: "16",
|
|
16863
16872
|
r: "2.5",
|
|
16864
16873
|
stroke: "currentColor",
|
|
16865
16874
|
"stroke-width": "1.2"
|
|
16866
16875
|
}, null, -1),
|
|
16867
|
-
|
|
16876
|
+
r("path", {
|
|
16868
16877
|
stroke: "currentColor",
|
|
16869
16878
|
"stroke-linecap": "round",
|
|
16870
16879
|
"stroke-linejoin": "round",
|
|
16871
16880
|
"stroke-width": "1.2",
|
|
16872
16881
|
d: "m8 28.5 8-8 5.5 5.5"
|
|
16873
16882
|
}, null, -1),
|
|
16874
|
-
|
|
16883
|
+
r("path", {
|
|
16875
16884
|
stroke: "currentColor",
|
|
16876
16885
|
"stroke-linecap": "round",
|
|
16877
16886
|
"stroke-linejoin": "round",
|
|
@@ -16880,35 +16889,35 @@ function RT(e, t) {
|
|
|
16880
16889
|
}, null, -1)
|
|
16881
16890
|
]]);
|
|
16882
16891
|
}
|
|
16883
|
-
var
|
|
16892
|
+
var VT = { render: BT }, HT = {
|
|
16884
16893
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16885
16894
|
width: "16",
|
|
16886
16895
|
height: "16",
|
|
16887
16896
|
fill: "none",
|
|
16888
16897
|
viewBox: "0 0 16 16"
|
|
16889
16898
|
};
|
|
16890
|
-
function
|
|
16891
|
-
return
|
|
16899
|
+
function UT(t, n) {
|
|
16900
|
+
return y(), e("svg", HT, [...n[0] ||= [r("path", {
|
|
16892
16901
|
fill: "currentColor",
|
|
16893
16902
|
"fill-rule": "evenodd",
|
|
16894
16903
|
d: "M8 15.833A7.833 7.833 0 1 1 8 .167a7.833 7.833 0 0 1 0 15.666M6.333 4.5A1.333 1.333 0 1 1 9 4.5a1.333 1.333 0 0 1-2.667 0M8.96 7.038c-.023-.38-.266-.674-.645-.696A6 6 0 0 0 8 6.333H6.833q-.291 0-.493.013c-.396.022-.66.313-.67.71a11 11 0 0 0 0 .555c.01.396.274.688.67.71A9 9 0 0 0 7 8.332L7 8.667v2.01c-.423.008-.74.022-.97.036-.365.022-.658.247-.685.61a5 5 0 0 0 0 .686c.027.365.32.59.684.611.387.024 1.008.047 1.971.047s1.584-.023 1.97-.046c.365-.023.658-.247.685-.612a5 5 0 0 0 0-.685c-.027-.364-.32-.589-.684-.611A24 24 0 0 0 9 10.676v-2.01c0-.767-.019-1.286-.04-1.628",
|
|
16895
16904
|
"clip-rule": "evenodd"
|
|
16896
16905
|
}, null, -1)]]);
|
|
16897
16906
|
}
|
|
16898
|
-
var
|
|
16907
|
+
var WT = { render: UT }, GT = {
|
|
16899
16908
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16900
16909
|
width: "16",
|
|
16901
16910
|
height: "16",
|
|
16902
16911
|
fill: "none",
|
|
16903
16912
|
viewBox: "0 0 16 16"
|
|
16904
16913
|
};
|
|
16905
|
-
function
|
|
16906
|
-
return
|
|
16914
|
+
function KT(t, n) {
|
|
16915
|
+
return y(), e("svg", GT, [...n[0] ||= [r("path", {
|
|
16907
16916
|
stroke: "currentColor",
|
|
16908
16917
|
"stroke-linecap": "round",
|
|
16909
16918
|
"stroke-width": "1.2",
|
|
16910
16919
|
d: "m6.5 9.5 3-3"
|
|
16911
|
-
}, null, -1),
|
|
16920
|
+
}, null, -1), r("path", {
|
|
16912
16921
|
stroke: "currentColor",
|
|
16913
16922
|
"stroke-linecap": "round",
|
|
16914
16923
|
"stroke-linejoin": "round",
|
|
@@ -16916,16 +16925,16 @@ function WT(e, t) {
|
|
|
16916
16925
|
d: "m7 4.5 1-1c1.1-1.1 2.9-1.1 4 0s1.1 2.9 0 4l-1 1M9 11.5l-1 1c-1.1 1.1-2.9 1.1-4 0s-1.1-2.9 0-4l1-1"
|
|
16917
16926
|
}, null, -1)]]);
|
|
16918
16927
|
}
|
|
16919
|
-
var
|
|
16928
|
+
var qT = { render: KT }, JT = {
|
|
16920
16929
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16921
16930
|
width: "16",
|
|
16922
16931
|
height: "16",
|
|
16923
16932
|
fill: "none",
|
|
16924
16933
|
viewBox: "0 0 16 16"
|
|
16925
16934
|
};
|
|
16926
|
-
function
|
|
16927
|
-
return
|
|
16928
|
-
|
|
16935
|
+
function YT(t, n) {
|
|
16936
|
+
return y(), e("svg", JT, [...n[0] ||= [
|
|
16937
|
+
r("rect", {
|
|
16929
16938
|
width: "9.33",
|
|
16930
16939
|
height: "7",
|
|
16931
16940
|
x: "3.33",
|
|
@@ -16935,14 +16944,14 @@ function qT(e, t) {
|
|
|
16935
16944
|
"stroke-width": "1.2",
|
|
16936
16945
|
rx: "1.33"
|
|
16937
16946
|
}, null, -1),
|
|
16938
|
-
|
|
16947
|
+
r("path", {
|
|
16939
16948
|
stroke: "currentColor",
|
|
16940
16949
|
"stroke-linecap": "round",
|
|
16941
16950
|
"stroke-linejoin": "round",
|
|
16942
16951
|
"stroke-width": "1.2",
|
|
16943
16952
|
d: "M5.33 7V5c0-1.47 1.2-2.67 2.67-2.67s2.67 1.2 2.67 2.67v2"
|
|
16944
16953
|
}, null, -1),
|
|
16945
|
-
|
|
16954
|
+
r("path", {
|
|
16946
16955
|
stroke: "currentColor",
|
|
16947
16956
|
"stroke-linecap": "round",
|
|
16948
16957
|
"stroke-width": "1.2",
|
|
@@ -16950,15 +16959,15 @@ function qT(e, t) {
|
|
|
16950
16959
|
}, null, -1)
|
|
16951
16960
|
]]);
|
|
16952
16961
|
}
|
|
16953
|
-
var
|
|
16962
|
+
var XT = { render: YT }, ZT = {
|
|
16954
16963
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16955
16964
|
width: "16",
|
|
16956
16965
|
height: "16",
|
|
16957
16966
|
fill: "none",
|
|
16958
16967
|
viewBox: "0 0 16 16"
|
|
16959
16968
|
};
|
|
16960
|
-
function
|
|
16961
|
-
return
|
|
16969
|
+
function QT(t, n) {
|
|
16970
|
+
return y(), e("svg", ZT, [...n[0] ||= [r("rect", {
|
|
16962
16971
|
width: "7",
|
|
16963
16972
|
height: "13",
|
|
16964
16973
|
x: "4.5",
|
|
@@ -16967,22 +16976,22 @@ function XT(e, t) {
|
|
|
16967
16976
|
"stroke-linejoin": "round",
|
|
16968
16977
|
"stroke-width": "1.2",
|
|
16969
16978
|
rx: "1.5"
|
|
16970
|
-
}, null, -1),
|
|
16979
|
+
}, null, -1), r("path", {
|
|
16971
16980
|
stroke: "currentColor",
|
|
16972
16981
|
"stroke-linecap": "round",
|
|
16973
16982
|
"stroke-width": "1.2",
|
|
16974
16983
|
d: "M6.5 12.5h3"
|
|
16975
16984
|
}, null, -1)]]);
|
|
16976
16985
|
}
|
|
16977
|
-
var
|
|
16986
|
+
var $T = { render: QT }, eE = {
|
|
16978
16987
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16979
16988
|
width: "40",
|
|
16980
16989
|
height: "40",
|
|
16981
16990
|
fill: "none",
|
|
16982
16991
|
viewBox: "0 0 40 40"
|
|
16983
16992
|
};
|
|
16984
|
-
function
|
|
16985
|
-
return
|
|
16993
|
+
function tE(t, n) {
|
|
16994
|
+
return y(), e("svg", eE, [...n[0] ||= [r("path", {
|
|
16986
16995
|
stroke: "currentColor",
|
|
16987
16996
|
"stroke-linecap": "round",
|
|
16988
16997
|
"stroke-linejoin": "round",
|
|
@@ -16990,28 +16999,28 @@ function $T(e, t) {
|
|
|
16990
16999
|
d: "M35 10H5M35 20H5M20 30H5"
|
|
16991
17000
|
}, null, -1)]]);
|
|
16992
17001
|
}
|
|
16993
|
-
var
|
|
17002
|
+
var nE = { render: tE }, rE = {
|
|
16994
17003
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16995
17004
|
width: "18",
|
|
16996
17005
|
height: "18",
|
|
16997
17006
|
fill: "none",
|
|
16998
17007
|
viewBox: "0 0 18.092 18.419"
|
|
16999
17008
|
};
|
|
17000
|
-
function
|
|
17001
|
-
return
|
|
17002
|
-
|
|
17009
|
+
function iE(t, n) {
|
|
17010
|
+
return y(), e("svg", rE, [...n[0] ||= [
|
|
17011
|
+
r("path", {
|
|
17003
17012
|
stroke: "currentColor",
|
|
17004
17013
|
"stroke-linejoin": "round",
|
|
17005
17014
|
"stroke-width": "1.2",
|
|
17006
17015
|
d: "M15.562 6.157c.683-.683.882-1.71.32-2.494a12 12 0 0 0-1.26-1.475 12 12 0 0 0-1.475-1.26c-.785-.562-1.812-.363-2.494.32l-8.755 8.755a1.43 1.43 0 0 0-.425.879c-.058.654-.122 1.922.005 3.727a.78.78 0 0 0 .723.723c1.805.127 3.073.063 3.727.005.335-.03.641-.187.88-.425z"
|
|
17007
17016
|
}, null, -1),
|
|
17008
|
-
|
|
17017
|
+
r("path", {
|
|
17009
17018
|
stroke: "currentColor",
|
|
17010
17019
|
"stroke-linejoin": "round",
|
|
17011
17020
|
"stroke-width": "1.2",
|
|
17012
17021
|
d: "m6.54 15.126-.02-.058c-.202-.505-.726-1.536-1.984-2.794s-2.289-1.782-2.795-1.984l-.057-.021a1.4 1.4 0 0 0-.21.613c-.06.654-.123 1.922.004 3.726a.78.78 0 0 0 .723.724c1.805.127 3.073.063 3.727.005.22-.02.429-.095.613-.211Z"
|
|
17013
17022
|
}, null, -1),
|
|
17014
|
-
|
|
17023
|
+
r("path", {
|
|
17015
17024
|
stroke: "currentColor",
|
|
17016
17025
|
"stroke-linecap": "round",
|
|
17017
17026
|
"stroke-linejoin": "round",
|
|
@@ -17020,20 +17029,20 @@ function nE(e, t) {
|
|
|
17020
17029
|
}, null, -1)
|
|
17021
17030
|
]]);
|
|
17022
17031
|
}
|
|
17023
|
-
var
|
|
17032
|
+
var aE = { render: iE }, oE = {
|
|
17024
17033
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17025
17034
|
width: "40",
|
|
17026
17035
|
height: "40",
|
|
17027
17036
|
fill: "none",
|
|
17028
17037
|
viewBox: "0 0 40 40"
|
|
17029
17038
|
};
|
|
17030
|
-
function
|
|
17031
|
-
return
|
|
17039
|
+
function sE(t, n) {
|
|
17040
|
+
return y(), e("svg", oE, [...n[0] ||= [r("path", {
|
|
17032
17041
|
stroke: "currentColor",
|
|
17033
17042
|
"stroke-linecap": "round",
|
|
17034
17043
|
"stroke-width": "1.2",
|
|
17035
17044
|
d: "M8 9h24M8 31h24M20 14v12"
|
|
17036
|
-
}, null, -1),
|
|
17045
|
+
}, null, -1), r("path", {
|
|
17037
17046
|
stroke: "currentColor",
|
|
17038
17047
|
"stroke-linecap": "round",
|
|
17039
17048
|
"stroke-linejoin": "round",
|
|
@@ -17041,15 +17050,15 @@ function aE(e, t) {
|
|
|
17041
17050
|
d: "M16.5 17.5 20 14l3.5 3.5M16.5 22.5 20 26l3.5-3.5"
|
|
17042
17051
|
}, null, -1)]]);
|
|
17043
17052
|
}
|
|
17044
|
-
var
|
|
17053
|
+
var cE = { render: sE }, lE = {
|
|
17045
17054
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17046
17055
|
width: "16",
|
|
17047
17056
|
height: "16",
|
|
17048
17057
|
fill: "none",
|
|
17049
17058
|
viewBox: "0 0 16 16"
|
|
17050
17059
|
};
|
|
17051
|
-
function
|
|
17052
|
-
return
|
|
17060
|
+
function uE(t, n) {
|
|
17061
|
+
return y(), e("svg", lE, [...n[0] ||= [r("path", {
|
|
17053
17062
|
stroke: "currentColor",
|
|
17054
17063
|
"stroke-linecap": "round",
|
|
17055
17064
|
"stroke-linejoin": "round",
|
|
@@ -17057,35 +17066,35 @@ function cE(e, t) {
|
|
|
17057
17066
|
d: "m6.5 2.5 1.1 2.9 2.9 1.1-2.9 1.1-1.1 2.9-1.1-2.9-2.9-1.1 2.9-1.1zM11.5 9l.6 1.9 1.9.6-1.9.6-.6 1.9-.6-1.9-1.9-.6 1.9-.6z"
|
|
17058
17067
|
}, null, -1)]]);
|
|
17059
17068
|
}
|
|
17060
|
-
var
|
|
17069
|
+
var dE = { render: uE }, fE = {
|
|
17061
17070
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17062
17071
|
width: "16",
|
|
17063
17072
|
height: "16",
|
|
17064
17073
|
fill: "none",
|
|
17065
17074
|
viewBox: "0 0 16 16"
|
|
17066
17075
|
};
|
|
17067
|
-
function
|
|
17068
|
-
return
|
|
17069
|
-
|
|
17076
|
+
function pE(t, n) {
|
|
17077
|
+
return y(), e("svg", fE, [...n[0] ||= [
|
|
17078
|
+
r("path", {
|
|
17070
17079
|
stroke: "currentColor",
|
|
17071
17080
|
"stroke-linecap": "round",
|
|
17072
17081
|
"stroke-width": "1.2",
|
|
17073
17082
|
d: "M2.67 4.33h10.66"
|
|
17074
17083
|
}, null, -1),
|
|
17075
|
-
|
|
17084
|
+
r("path", {
|
|
17076
17085
|
stroke: "currentColor",
|
|
17077
17086
|
"stroke-linejoin": "round",
|
|
17078
17087
|
"stroke-width": "1.2",
|
|
17079
17088
|
d: "M6 4.33v-1c0-.55.45-1 1-1h2c.55 0 1 .45 1 1v1"
|
|
17080
17089
|
}, null, -1),
|
|
17081
|
-
|
|
17090
|
+
r("path", {
|
|
17082
17091
|
stroke: "currentColor",
|
|
17083
17092
|
"stroke-linecap": "round",
|
|
17084
17093
|
"stroke-linejoin": "round",
|
|
17085
17094
|
"stroke-width": "1.2",
|
|
17086
17095
|
d: "m4.33 4.33.46 8.47c.03.56.49 1 1.05 1h4.32c.56 0 1.02-.44 1.05-1l.46-8.47"
|
|
17087
17096
|
}, null, -1),
|
|
17088
|
-
|
|
17097
|
+
r("path", {
|
|
17089
17098
|
stroke: "currentColor",
|
|
17090
17099
|
"stroke-linecap": "round",
|
|
17091
17100
|
"stroke-width": "1.2",
|
|
@@ -17093,28 +17102,28 @@ function dE(e, t) {
|
|
|
17093
17102
|
}, null, -1)
|
|
17094
17103
|
]]);
|
|
17095
17104
|
}
|
|
17096
|
-
var
|
|
17105
|
+
var mE = { render: pE }, hE = {
|
|
17097
17106
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17098
17107
|
width: "20",
|
|
17099
17108
|
height: "20",
|
|
17100
17109
|
fill: "none",
|
|
17101
17110
|
viewBox: "0 0 20 20"
|
|
17102
17111
|
};
|
|
17103
|
-
function
|
|
17104
|
-
return
|
|
17105
|
-
|
|
17112
|
+
function gE(t, n) {
|
|
17113
|
+
return y(), e("svg", hE, [...n[0] ||= [
|
|
17114
|
+
r("path", {
|
|
17106
17115
|
stroke: "currentColor",
|
|
17107
17116
|
"stroke-linejoin": "round",
|
|
17108
17117
|
"stroke-width": "1.2",
|
|
17109
17118
|
d: "M10 2.2 1.8 17h16.4z"
|
|
17110
17119
|
}, null, -1),
|
|
17111
|
-
|
|
17120
|
+
r("path", {
|
|
17112
17121
|
stroke: "currentColor",
|
|
17113
17122
|
"stroke-linecap": "round",
|
|
17114
17123
|
"stroke-width": "1.4",
|
|
17115
17124
|
d: "M10 8v4"
|
|
17116
17125
|
}, null, -1),
|
|
17117
|
-
|
|
17126
|
+
r("circle", {
|
|
17118
17127
|
cx: "10",
|
|
17119
17128
|
cy: "14.4",
|
|
17120
17129
|
r: ".9",
|
|
@@ -17122,7 +17131,7 @@ function mE(e, t) {
|
|
|
17122
17131
|
}, null, -1)
|
|
17123
17132
|
]]);
|
|
17124
17133
|
}
|
|
17125
|
-
var
|
|
17134
|
+
var _E = { render: gE }, vE = /* @__PURE__ */ p({
|
|
17126
17135
|
__name: "AppIcon",
|
|
17127
17136
|
props: {
|
|
17128
17137
|
name: { type: String },
|
|
@@ -17133,34 +17142,34 @@ var hE = { render: mE }, gE = /* @__PURE__ */ d({
|
|
|
17133
17142
|
},
|
|
17134
17143
|
setup(e) {
|
|
17135
17144
|
let t = e, n = {
|
|
17136
|
-
pencil:
|
|
17137
|
-
eye:
|
|
17138
|
-
info:
|
|
17139
|
-
board:
|
|
17140
|
-
braces:
|
|
17141
|
-
button:
|
|
17142
|
-
trash:
|
|
17143
|
-
warning:
|
|
17144
|
-
close:
|
|
17145
|
-
copy:
|
|
17146
|
-
link:
|
|
17147
|
-
columns:
|
|
17148
|
-
paragraph:
|
|
17149
|
-
image:
|
|
17150
|
-
mobile:
|
|
17151
|
-
desktop:
|
|
17152
|
-
spacer:
|
|
17153
|
-
sparkles:
|
|
17154
|
-
divider:
|
|
17155
|
-
html:
|
|
17156
|
-
"chevron-down":
|
|
17157
|
-
bookmark:
|
|
17158
|
-
heading:
|
|
17159
|
-
lock:
|
|
17160
|
-
},
|
|
17161
|
-
return (e, t) => (
|
|
17145
|
+
pencil: aE,
|
|
17146
|
+
eye: MT,
|
|
17147
|
+
info: WT,
|
|
17148
|
+
board: nT,
|
|
17149
|
+
braces: cT,
|
|
17150
|
+
button: dT,
|
|
17151
|
+
trash: mE,
|
|
17152
|
+
warning: _E,
|
|
17153
|
+
close: _T,
|
|
17154
|
+
copy: CT,
|
|
17155
|
+
link: qT,
|
|
17156
|
+
columns: bT,
|
|
17157
|
+
paragraph: nE,
|
|
17158
|
+
image: VT,
|
|
17159
|
+
mobile: $T,
|
|
17160
|
+
desktop: ET,
|
|
17161
|
+
spacer: cE,
|
|
17162
|
+
sparkles: dE,
|
|
17163
|
+
divider: kT,
|
|
17164
|
+
html: RT,
|
|
17165
|
+
"chevron-down": mT,
|
|
17166
|
+
bookmark: aT,
|
|
17167
|
+
heading: FT,
|
|
17168
|
+
lock: XT
|
|
17169
|
+
}, r = i(() => n[t.name]), a = i(() => typeof t.size == "number" ? `${t.size}px` : t.size);
|
|
17170
|
+
return (e, t) => (y(), f(c(r.value), {
|
|
17162
17171
|
class: "app-icon",
|
|
17163
|
-
style:
|
|
17172
|
+
style: te({
|
|
17164
17173
|
width: a.value,
|
|
17165
17174
|
height: a.value,
|
|
17166
17175
|
display: "block",
|
|
@@ -17169,10 +17178,10 @@ var hE = { render: mE }, gE = /* @__PURE__ */ d({
|
|
|
17169
17178
|
"aria-hidden": "true"
|
|
17170
17179
|
}, null, 8, ["style"]));
|
|
17171
17180
|
}
|
|
17172
|
-
}),
|
|
17173
|
-
function
|
|
17174
|
-
let e =
|
|
17175
|
-
message:
|
|
17181
|
+
}), yE = Symbol("errorDialog");
|
|
17182
|
+
function bE() {
|
|
17183
|
+
let e = fe(null), t = {
|
|
17184
|
+
message: i(() => e.value),
|
|
17176
17185
|
show: (t) => {
|
|
17177
17186
|
e.value = t;
|
|
17178
17187
|
},
|
|
@@ -17180,20 +17189,26 @@ function vE() {
|
|
|
17180
17189
|
e.value = null;
|
|
17181
17190
|
}
|
|
17182
17191
|
};
|
|
17183
|
-
return
|
|
17192
|
+
return o(yE, t), t;
|
|
17184
17193
|
}
|
|
17185
|
-
function
|
|
17186
|
-
return
|
|
17194
|
+
function xE() {
|
|
17195
|
+
return u(yE);
|
|
17187
17196
|
}
|
|
17188
17197
|
//#endregion
|
|
17189
17198
|
//#region src/i18n/useAppI18n.ts
|
|
17190
|
-
function
|
|
17199
|
+
function SE() {
|
|
17191
17200
|
return Hr({ useScope: "global" });
|
|
17192
17201
|
}
|
|
17193
17202
|
//#endregion
|
|
17194
17203
|
//#region src/providerKeys.ts
|
|
17195
|
-
var
|
|
17196
|
-
|
|
17204
|
+
var CE = Symbol("editorConfig"), wE = Symbol("mergeTags"), TE = Symbol("brand"), EE = Symbol("blockStyles"), DE = Symbol("permission"), OE = Symbol("savedBlocks"), kE = Symbol("blockPlugins"), AE = Symbol("imageSearch");
|
|
17205
|
+
//#endregion
|
|
17206
|
+
//#region src/popoverPlacement.ts
|
|
17207
|
+
function jE(e, t, n) {
|
|
17208
|
+
return Math.max(n.top + t, Math.min(e, n.bottom));
|
|
17209
|
+
}
|
|
17210
|
+
var ME = 8;
|
|
17211
|
+
function NE(e, t, n = ME) {
|
|
17197
17212
|
let r = t - e.bottom - n, i = e.top - n;
|
|
17198
17213
|
return r >= i ? {
|
|
17199
17214
|
side: "below",
|
|
@@ -17207,15 +17222,15 @@ function AE(e, t, n = kE) {
|
|
|
17207
17222
|
}
|
|
17208
17223
|
//#endregion
|
|
17209
17224
|
//#region src/components/CheckboxOption.vue?vue&type=script&setup=true&lang.ts
|
|
17210
|
-
var
|
|
17225
|
+
var PE = { class: "checkbox-option" }, FE = {
|
|
17211
17226
|
"aria-hidden": "true",
|
|
17212
17227
|
class: "box"
|
|
17213
|
-
},
|
|
17228
|
+
}, IE = {
|
|
17214
17229
|
key: 0,
|
|
17215
17230
|
class: "mark"
|
|
17216
|
-
},
|
|
17231
|
+
}, LE = /*#__PURE__*/ Hw(/* @__PURE__ */ p({
|
|
17217
17232
|
__name: "CheckboxOption",
|
|
17218
|
-
props: /*@__PURE__*/
|
|
17233
|
+
props: /*@__PURE__*/ h({ label: { type: String } }, {
|
|
17219
17234
|
modelValue: {
|
|
17220
17235
|
type: Boolean,
|
|
17221
17236
|
required: !0
|
|
@@ -17223,22 +17238,22 @@ var jE = { class: "checkbox-option" }, ME = {
|
|
|
17223
17238
|
modelModifiers: {}
|
|
17224
17239
|
}),
|
|
17225
17240
|
emits: ["update:modelValue"],
|
|
17226
|
-
setup(
|
|
17227
|
-
let n =
|
|
17228
|
-
return (
|
|
17229
|
-
|
|
17241
|
+
setup(t) {
|
|
17242
|
+
let n = b(t, "modelValue");
|
|
17243
|
+
return (i, a) => (y(), e("label", PE, [
|
|
17244
|
+
de(r("input", {
|
|
17230
17245
|
"onUpdate:modelValue": a[0] ||= (e) => n.value = e,
|
|
17231
17246
|
class: "checkbox-input",
|
|
17232
17247
|
type: "checkbox"
|
|
17233
|
-
}, null, 512), [[
|
|
17234
|
-
|
|
17235
|
-
|
|
17248
|
+
}, null, 512), [[C, n.value]]),
|
|
17249
|
+
r("span", FE, [n.value ? (y(), e("span", IE)) : ie("", !0)]),
|
|
17250
|
+
re(" " + w(t.label), 1)
|
|
17236
17251
|
]));
|
|
17237
17252
|
}
|
|
17238
|
-
}), [["styles", [".checkbox-option[data-v-8716b30b]{color:var(--bygga-color-text-muted);cursor:pointer;align-items:center;gap:8px;font-size:13px;line-height:20px;display:flex;position:relative}.checkbox-option[data-v-8716b30b]:hover{color:var(--bygga-color-text)}.checkbox-option[data-v-8716b30b]:has(.checkbox-input:checked){color:var(--bygga-color-text)}.checkbox-option[data-v-8716b30b]:has(.checkbox-input:focus-visible){outline:2px solid var(--bygga-color-accent);outline-offset:2px}.checkbox-input[data-v-8716b30b]{cursor:pointer;opacity:0;width:100%;height:100%;margin:0;position:absolute;inset:0}.box[data-v-8716b30b]{background:var(--bygga-color-surface);border:2px solid var(--bygga-color-control-border,var(--bygga-color-border));box-sizing:border-box;pointer-events:none;border-radius:4px;flex-shrink:0;width:16px;height:16px;position:relative}.box[data-v-8716b30b]:has(.mark){border-color:var(--bygga-color-success)}.mark[data-v-8716b30b]{background:var(--bygga-color-selected,var(--bygga-color-success));forced-color-adjust:none;border-radius:1px;width:8px;height:8px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}"]], ["__scopeId", "data-v-8716b30b"]]),
|
|
17253
|
+
}), [["styles", [".checkbox-option[data-v-8716b30b]{color:var(--bygga-color-text-muted);cursor:pointer;align-items:center;gap:8px;font-size:13px;line-height:20px;display:flex;position:relative}.checkbox-option[data-v-8716b30b]:hover{color:var(--bygga-color-text)}.checkbox-option[data-v-8716b30b]:has(.checkbox-input:checked){color:var(--bygga-color-text)}.checkbox-option[data-v-8716b30b]:has(.checkbox-input:focus-visible){outline:2px solid var(--bygga-color-accent);outline-offset:2px}.checkbox-input[data-v-8716b30b]{cursor:pointer;opacity:0;width:100%;height:100%;margin:0;position:absolute;inset:0}.box[data-v-8716b30b]{background:var(--bygga-color-surface);border:2px solid var(--bygga-color-control-border,var(--bygga-color-border));box-sizing:border-box;pointer-events:none;border-radius:4px;flex-shrink:0;width:16px;height:16px;position:relative}.box[data-v-8716b30b]:has(.mark){border-color:var(--bygga-color-success)}.mark[data-v-8716b30b]{background:var(--bygga-color-selected,var(--bygga-color-success));forced-color-adjust:none;border-radius:1px;width:8px;height:8px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}"]], ["__scopeId", "data-v-8716b30b"]]), RE = ["for"], zE = { class: "field-shell" }, BE = {
|
|
17239
17254
|
key: 0,
|
|
17240
17255
|
class: "field-trailing"
|
|
17241
|
-
},
|
|
17256
|
+
}, VE = /*#__PURE__*/ Hw(/* @__PURE__ */ p({
|
|
17242
17257
|
__name: "FieldShell",
|
|
17243
17258
|
props: {
|
|
17244
17259
|
disabled: {
|
|
@@ -17254,17 +17269,17 @@ var jE = { class: "checkbox-option" }, ME = {
|
|
|
17254
17269
|
type: String
|
|
17255
17270
|
}
|
|
17256
17271
|
},
|
|
17257
|
-
setup(
|
|
17258
|
-
return (
|
|
17272
|
+
setup(t) {
|
|
17273
|
+
return (n, i) => (y(), e("div", { class: oe(["field-wrap", { "is-disabled": t.disabled }]) }, [t.label ? (y(), e("label", {
|
|
17259
17274
|
key: 0,
|
|
17260
17275
|
class: "field-label",
|
|
17261
|
-
for:
|
|
17262
|
-
},
|
|
17276
|
+
for: t.labelFor
|
|
17277
|
+
}, w(t.label), 9, RE)) : ie("", !0), r("div", zE, [ce(n.$slots, "default", {}, void 0, !0), n.$slots.trailing ? (y(), e("div", BE, [ce(n.$slots, "trailing", {}, void 0, !0)])) : ie("", !0)])], 2));
|
|
17263
17278
|
}
|
|
17264
|
-
}), [["styles", [".field-wrap[data-v-01af217c]{width:100%;position:relative}.field-shell[data-v-01af217c]{background:var(--bygga-color-surface);border:1px solid var(--bygga-color-control-border,var(--bygga-color-border));border-radius:var(--bygga-radius-sm);box-sizing:border-box;color:var(--bygga-color-text);align-items:center;gap:8px;width:100%;min-width:0;min-height:40px;padding:0 12px;font-size:16px;line-height:20px;display:flex}.field-label[data-v-01af217c]{background:var(--bygga-color-surface);color:var(--bygga-color-text-muted);pointer-events:none;z-index:1;padding:0 4px;font-size:12px;line-height:1;transition:color .15s;position:absolute;top:0;left:12px;transform:translateY(-50%)}.field-wrap:has(:is(input,textarea,select):focus-visible) .field-label[data-v-01af217c]{color:var(--bygga-color-accent)}.field-wrap.is-disabled .field-label[data-v-01af217c]{opacity:.55}.field-shell[data-v-01af217c]:has(:is(input,textarea,select):focus-visible){outline:2px solid var(--bygga-color-ring,var(--bygga-color-accent));outline-offset:2px}.field-shell[data-v-01af217c]:has(:is(input,textarea)[aria-invalid=true]){border-color:var(--bygga-color-danger,var(--bygga-color-control-border,var(--bygga-color-border)))}.field-wrap.is-disabled .field-shell[data-v-01af217c]{cursor:not-allowed;opacity:.55}.field-trailing[data-v-01af217c]{color:var(--bygga-color-text-muted);flex-shrink:0;align-items:center;gap:8px;display:flex}@media (prefers-reduced-motion:reduce){.field-label[data-v-01af217c]{transition:none}}"]], ["__scopeId", "data-v-01af217c"]]),
|
|
17279
|
+
}), [["styles", [".field-wrap[data-v-01af217c]{width:100%;position:relative}.field-shell[data-v-01af217c]{background:var(--bygga-color-surface);border:1px solid var(--bygga-color-control-border,var(--bygga-color-border));border-radius:var(--bygga-radius-sm);box-sizing:border-box;color:var(--bygga-color-text);align-items:center;gap:8px;width:100%;min-width:0;min-height:40px;padding:0 12px;font-size:16px;line-height:20px;display:flex}.field-label[data-v-01af217c]{background:var(--bygga-color-surface);color:var(--bygga-color-text-muted);pointer-events:none;z-index:1;padding:0 4px;font-size:12px;line-height:1;transition:color .15s;position:absolute;top:0;left:12px;transform:translateY(-50%)}.field-wrap:has(:is(input,textarea,select):focus-visible) .field-label[data-v-01af217c]{color:var(--bygga-color-accent)}.field-wrap.is-disabled .field-label[data-v-01af217c]{opacity:.55}.field-shell[data-v-01af217c]:has(:is(input,textarea,select):focus-visible){outline:2px solid var(--bygga-color-ring,var(--bygga-color-accent));outline-offset:2px}.field-shell[data-v-01af217c]:has(:is(input,textarea)[aria-invalid=true]){border-color:var(--bygga-color-danger,var(--bygga-color-control-border,var(--bygga-color-border)))}.field-wrap.is-disabled .field-shell[data-v-01af217c]{cursor:not-allowed;opacity:.55}.field-trailing[data-v-01af217c]{color:var(--bygga-color-text-muted);flex-shrink:0;align-items:center;gap:8px;display:flex}@media (prefers-reduced-motion:reduce){.field-label[data-v-01af217c]{transition:none}}"]], ["__scopeId", "data-v-01af217c"]]), HE = ["id", "disabled"], UE = /*#__PURE__*/ Hw(/* @__PURE__ */ p({
|
|
17265
17280
|
inheritAttrs: !1,
|
|
17266
17281
|
__name: "TextInput",
|
|
17267
|
-
props: /*@__PURE__*/
|
|
17282
|
+
props: /*@__PURE__*/ h({
|
|
17268
17283
|
disabled: {
|
|
17269
17284
|
type: Boolean,
|
|
17270
17285
|
default: !1
|
|
@@ -17278,25 +17293,25 @@ var jE = { class: "checkbox-option" }, ME = {
|
|
|
17278
17293
|
modelModifiers: {}
|
|
17279
17294
|
}),
|
|
17280
17295
|
emits: ["update:modelValue"],
|
|
17281
|
-
setup(
|
|
17282
|
-
let
|
|
17283
|
-
return
|
|
17284
|
-
focus: () =>
|
|
17285
|
-
select: () =>
|
|
17286
|
-
}), (
|
|
17287
|
-
disabled:
|
|
17288
|
-
label:
|
|
17289
|
-
"label-for":
|
|
17296
|
+
setup(e, { expose: t }) {
|
|
17297
|
+
let n = b(e, "modelValue"), i = e, a = x(), o = S("input");
|
|
17298
|
+
return t({
|
|
17299
|
+
focus: () => o.value?.focus(),
|
|
17300
|
+
select: () => o.value?.select()
|
|
17301
|
+
}), (t, s) => (y(), f(VE, {
|
|
17302
|
+
disabled: e.disabled,
|
|
17303
|
+
label: i.label,
|
|
17304
|
+
"label-for": se(a)
|
|
17290
17305
|
}, {
|
|
17291
|
-
default:
|
|
17292
|
-
id:
|
|
17306
|
+
default: ee(() => [de(r("input", he({
|
|
17307
|
+
id: se(a),
|
|
17293
17308
|
ref_key: "input",
|
|
17294
|
-
ref:
|
|
17295
|
-
"onUpdate:modelValue":
|
|
17309
|
+
ref: o,
|
|
17310
|
+
"onUpdate:modelValue": s[0] ||= (e) => n.value = e,
|
|
17296
17311
|
class: "field-input",
|
|
17297
17312
|
type: "text",
|
|
17298
|
-
disabled:
|
|
17299
|
-
},
|
|
17313
|
+
disabled: e.disabled
|
|
17314
|
+
}, t.$attrs), null, 16, HE), [[me, n.value]])]),
|
|
17300
17315
|
_: 1
|
|
17301
17316
|
}, 8, [
|
|
17302
17317
|
"disabled",
|
|
@@ -17304,29 +17319,29 @@ var jE = { class: "checkbox-option" }, ME = {
|
|
|
17304
17319
|
"label-for"
|
|
17305
17320
|
]));
|
|
17306
17321
|
}
|
|
17307
|
-
}), [["styles", [".field-input[data-v-3c7d74c6]{color:inherit;font:inherit;background:0 0;border:none;outline:none;flex:1 1 0;min-width:0;padding:0}.field-input[data-v-3c7d74c6]::placeholder{color:var(--bygga-color-text-muted);opacity:1}"]], ["__scopeId", "data-v-3c7d74c6"]]),
|
|
17322
|
+
}), [["styles", [".field-input[data-v-3c7d74c6]{color:inherit;font:inherit;background:0 0;border:none;outline:none;flex:1 1 0;min-width:0;padding:0}.field-input[data-v-3c7d74c6]::placeholder{color:var(--bygga-color-text-muted);opacity:1}"]], ["__scopeId", "data-v-3c7d74c6"]]), WE = {
|
|
17308
17323
|
key: 0,
|
|
17309
17324
|
class: "picker-label"
|
|
17310
|
-
},
|
|
17325
|
+
}, GE = [
|
|
17311
17326
|
"popovertarget",
|
|
17312
17327
|
"aria-expanded",
|
|
17313
17328
|
"aria-label"
|
|
17314
|
-
],
|
|
17329
|
+
], KE = {
|
|
17315
17330
|
key: 0,
|
|
17316
17331
|
class: "value"
|
|
17317
|
-
},
|
|
17332
|
+
}, qE = ["id", "aria-label"], JE = ["id"], YE = ["aria-label", "aria-labelledby"], XE = [
|
|
17318
17333
|
"aria-checked",
|
|
17319
17334
|
"aria-label",
|
|
17320
17335
|
"tabindex",
|
|
17321
17336
|
"onClick",
|
|
17322
17337
|
"onKeydown"
|
|
17323
|
-
],
|
|
17338
|
+
], ZE = [
|
|
17324
17339
|
"aria-label",
|
|
17325
17340
|
"aria-valuenow",
|
|
17326
17341
|
"aria-valuetext"
|
|
17327
|
-
],
|
|
17342
|
+
], QE = ["aria-label", "aria-valuenow"], $E = /*#__PURE__*/ Hw(/* @__PURE__ */ p({
|
|
17328
17343
|
__name: "ColorPicker",
|
|
17329
|
-
props: /*@__PURE__*/
|
|
17344
|
+
props: /*@__PURE__*/ h({
|
|
17330
17345
|
label: { type: String },
|
|
17331
17346
|
allowTransparent: {
|
|
17332
17347
|
type: Boolean,
|
|
@@ -17335,15 +17350,19 @@ var jE = { class: "checkbox-option" }, ME = {
|
|
|
17335
17350
|
compact: {
|
|
17336
17351
|
type: Boolean,
|
|
17337
17352
|
default: !1
|
|
17353
|
+
},
|
|
17354
|
+
keepFocus: {
|
|
17355
|
+
type: Boolean,
|
|
17356
|
+
default: !1
|
|
17338
17357
|
}
|
|
17339
17358
|
}, {
|
|
17340
17359
|
modelValue: { required: !0 },
|
|
17341
17360
|
modelModifiers: {}
|
|
17342
17361
|
}),
|
|
17343
17362
|
emits: ["update:modelValue"],
|
|
17344
|
-
setup(
|
|
17345
|
-
let
|
|
17346
|
-
let e =
|
|
17363
|
+
setup(t) {
|
|
17364
|
+
let a = b(t, "modelValue"), { t: o } = SE(), s = u(TE, void 0), c = i(() => {
|
|
17365
|
+
let e = s?.value;
|
|
17347
17366
|
return [{
|
|
17348
17367
|
key: "global",
|
|
17349
17368
|
label: e?.colorsLabel ?? o("colorPicker.palette"),
|
|
@@ -17355,14 +17374,14 @@ var jE = { class: "checkbox-option" }, ME = {
|
|
|
17355
17374
|
named: e?.localColorsLabel !== void 0,
|
|
17356
17375
|
colors: e?.localColors ?? []
|
|
17357
17376
|
}].filter((e) => e.colors.length > 0);
|
|
17358
|
-
}), d =
|
|
17377
|
+
}), d = i(() => c.value.flatMap((e) => e.colors)), p = i(() => c.value.length > 1 || c.value.some((e) => e.named)), h = i(() => c.value.length > 0 && !s?.value.anyColor), g = x(), _ = fe(!1), C = fe(0), T = fe(0), E = fe(0), ee = fe({
|
|
17359
17378
|
r: 0,
|
|
17360
17379
|
g: 0,
|
|
17361
17380
|
b: 0
|
|
17362
|
-
}),
|
|
17363
|
-
|
|
17381
|
+
}), D = fe(_i(ee.value)), ne = fe(!1), re = S("trigger"), ae = S("popover"), ce = S("svArea");
|
|
17382
|
+
m(a, (e) => {
|
|
17364
17383
|
if (e.type === "transparent") {
|
|
17365
|
-
|
|
17384
|
+
ne.value || (D.value = _i(ee.value));
|
|
17366
17385
|
return;
|
|
17367
17386
|
}
|
|
17368
17387
|
let t = {
|
|
@@ -17370,65 +17389,65 @@ var jE = { class: "checkbox-option" }, ME = {
|
|
|
17370
17389
|
g: e.g,
|
|
17371
17390
|
b: e.b
|
|
17372
17391
|
};
|
|
17373
|
-
|
|
17392
|
+
ee.value = t, ne.value || (D.value = _i(t));
|
|
17374
17393
|
let n = hi({
|
|
17375
|
-
h:
|
|
17376
|
-
s:
|
|
17377
|
-
v:
|
|
17394
|
+
h: C.value,
|
|
17395
|
+
s: T.value,
|
|
17396
|
+
v: E.value
|
|
17378
17397
|
});
|
|
17379
17398
|
if (n.r === t.r && n.g === t.g && n.b === t.b) return;
|
|
17380
17399
|
let r = mi(t);
|
|
17381
|
-
|
|
17400
|
+
T.value = r.s, E.value = r.v, r.s > 0 && (C.value = r.h);
|
|
17382
17401
|
}, { immediate: !0 });
|
|
17383
|
-
function
|
|
17384
|
-
|
|
17402
|
+
function le() {
|
|
17403
|
+
a.value = {
|
|
17385
17404
|
type: "color",
|
|
17386
17405
|
...hi({
|
|
17387
|
-
h:
|
|
17388
|
-
s:
|
|
17389
|
-
v:
|
|
17406
|
+
h: C.value,
|
|
17407
|
+
s: T.value,
|
|
17408
|
+
v: E.value
|
|
17390
17409
|
})
|
|
17391
17410
|
};
|
|
17392
17411
|
}
|
|
17393
|
-
let
|
|
17394
|
-
h:
|
|
17395
|
-
s:
|
|
17396
|
-
v:
|
|
17397
|
-
}))),
|
|
17398
|
-
s: Math.round(
|
|
17399
|
-
v: Math.round(
|
|
17400
|
-
hex:
|
|
17401
|
-
})),
|
|
17402
|
-
function
|
|
17403
|
-
|
|
17412
|
+
let ue = i(() => a.value.type === "transparent"), de = i(() => bi(a.value)), pe = i(() => ue.value ? o("colorPicker.transparent") : xi(a.value) ?? ""), me = i(() => ue.value ? o("colorPicker.transparentValue") : o("colorPicker.colorValue", { value: xi(a.value) ?? "" })), he = i(() => t.label ? `${t.label}: ${me.value}` : me.value), ge = i(() => `hsl(${C.value}, 100%, 50%)`), _e = i(() => _i(hi({
|
|
17413
|
+
h: C.value,
|
|
17414
|
+
s: T.value,
|
|
17415
|
+
v: E.value
|
|
17416
|
+
}))), ve = i(() => o("colorPicker.svValue", {
|
|
17417
|
+
s: Math.round(T.value * 100),
|
|
17418
|
+
v: Math.round(E.value * 100),
|
|
17419
|
+
hex: _e.value
|
|
17420
|
+
})), ye = null, be = null;
|
|
17421
|
+
function O() {
|
|
17422
|
+
ye && window.removeEventListener("pointermove", ye), be && (window.removeEventListener("pointerup", be), window.removeEventListener("pointercancel", be)), ye = null, be = null;
|
|
17404
17423
|
}
|
|
17405
|
-
function
|
|
17406
|
-
|
|
17424
|
+
function xe(e) {
|
|
17425
|
+
O();
|
|
17407
17426
|
let t = (t) => e(t);
|
|
17408
|
-
|
|
17427
|
+
ye = t, be = O, window.addEventListener("pointermove", t), window.addEventListener("pointerup", O), window.addEventListener("pointercancel", O);
|
|
17409
17428
|
}
|
|
17410
|
-
function
|
|
17429
|
+
function Se(e) {
|
|
17411
17430
|
e.preventDefault();
|
|
17412
|
-
let t =
|
|
17431
|
+
let t = ce.value;
|
|
17413
17432
|
if (!t) return;
|
|
17414
17433
|
let n = (e) => {
|
|
17415
17434
|
let n = t.getBoundingClientRect();
|
|
17416
|
-
|
|
17435
|
+
T.value = fi((e.clientX - n.left) / n.width), E.value = 1 - fi((e.clientY - n.top) / n.height), le();
|
|
17417
17436
|
};
|
|
17418
|
-
n(e),
|
|
17437
|
+
n(e), xe(n);
|
|
17419
17438
|
}
|
|
17420
|
-
function
|
|
17439
|
+
function Ce(e) {
|
|
17421
17440
|
e.preventDefault();
|
|
17422
17441
|
let t = e.currentTarget;
|
|
17423
17442
|
if (!(t instanceof HTMLElement)) return;
|
|
17424
17443
|
let n = (e) => {
|
|
17425
17444
|
let n = t.getBoundingClientRect();
|
|
17426
|
-
|
|
17445
|
+
C.value = fi((e.clientX - n.left) / n.width) * 360, le();
|
|
17427
17446
|
};
|
|
17428
|
-
n(e),
|
|
17447
|
+
n(e), xe(n);
|
|
17429
17448
|
}
|
|
17430
|
-
function
|
|
17431
|
-
let t = e.shiftKey ? .1 : .02, n =
|
|
17449
|
+
function we(e) {
|
|
17450
|
+
let t = e.shiftKey ? .1 : .02, n = T.value, r = E.value;
|
|
17432
17451
|
switch (e.key) {
|
|
17433
17452
|
case "ArrowLeft":
|
|
17434
17453
|
n -= t;
|
|
@@ -17456,10 +17475,10 @@ var jE = { class: "checkbox-option" }, ME = {
|
|
|
17456
17475
|
break;
|
|
17457
17476
|
default: return;
|
|
17458
17477
|
}
|
|
17459
|
-
e.preventDefault(),
|
|
17478
|
+
e.preventDefault(), T.value = fi(n), E.value = fi(r), le();
|
|
17460
17479
|
}
|
|
17461
|
-
function
|
|
17462
|
-
let t = e.shiftKey ? 10 : 1, n =
|
|
17480
|
+
function Te(e) {
|
|
17481
|
+
let t = e.shiftKey ? 10 : 1, n = C.value;
|
|
17463
17482
|
switch (e.key) {
|
|
17464
17483
|
case "ArrowLeft":
|
|
17465
17484
|
case "ArrowDown":
|
|
@@ -17483,34 +17502,34 @@ var jE = { class: "checkbox-option" }, ME = {
|
|
|
17483
17502
|
break;
|
|
17484
17503
|
default: return;
|
|
17485
17504
|
}
|
|
17486
|
-
e.preventDefault(),
|
|
17505
|
+
e.preventDefault(), C.value = Math.max(0, Math.min(360, n)), le();
|
|
17487
17506
|
}
|
|
17488
|
-
function
|
|
17489
|
-
let e = vi(
|
|
17490
|
-
e && (
|
|
17507
|
+
function k() {
|
|
17508
|
+
let e = vi(D.value);
|
|
17509
|
+
e && (a.value = {
|
|
17491
17510
|
type: "color",
|
|
17492
17511
|
...e
|
|
17493
17512
|
});
|
|
17494
17513
|
}
|
|
17495
|
-
function
|
|
17496
|
-
|
|
17514
|
+
function Ee() {
|
|
17515
|
+
ne.value = !1, D.value = _i(ee.value);
|
|
17497
17516
|
}
|
|
17498
|
-
let
|
|
17499
|
-
let e =
|
|
17500
|
-
return
|
|
17501
|
-
}),
|
|
17502
|
-
let n =
|
|
17517
|
+
let De = i(() => a.value.type === "transparent" ? void 0 : _i(a.value)), Oe = i(() => {
|
|
17518
|
+
let e = De.value;
|
|
17519
|
+
return h.value && e && !d.value.includes(e) ? e : void 0;
|
|
17520
|
+
}), ke = i(() => c.value.map((e, t) => {
|
|
17521
|
+
let n = Oe.value;
|
|
17503
17522
|
return t === 0 && n ? [...e.colors, n] : [...e.colors];
|
|
17504
17523
|
}));
|
|
17505
|
-
function
|
|
17506
|
-
let
|
|
17507
|
-
|
|
17524
|
+
function Ae(e) {
|
|
17525
|
+
let t = vi(e);
|
|
17526
|
+
t && (a.value = {
|
|
17508
17527
|
type: "color",
|
|
17509
|
-
...
|
|
17528
|
+
...t
|
|
17510
17529
|
});
|
|
17511
17530
|
}
|
|
17512
|
-
function
|
|
17513
|
-
let r =
|
|
17531
|
+
function je(e, t, n) {
|
|
17532
|
+
let r = ke.value[t] ?? [], i = n;
|
|
17514
17533
|
switch (e.key) {
|
|
17515
17534
|
case "ArrowLeft":
|
|
17516
17535
|
case "ArrowUp":
|
|
@@ -17530,169 +17549,173 @@ var jE = { class: "checkbox-option" }, ME = {
|
|
|
17530
17549
|
}
|
|
17531
17550
|
e.preventDefault();
|
|
17532
17551
|
let a = r[(i + r.length) % r.length];
|
|
17533
|
-
a && (
|
|
17552
|
+
a && (Ae(a), Me.value[t]?.[r.indexOf(a)]?.focus());
|
|
17534
17553
|
}
|
|
17535
|
-
let
|
|
17536
|
-
function
|
|
17554
|
+
let Me = fe([]);
|
|
17555
|
+
function Ne(e, t, n) {
|
|
17537
17556
|
if (e instanceof HTMLElement) {
|
|
17538
|
-
let r =
|
|
17539
|
-
r[n] = e,
|
|
17557
|
+
let r = Me.value[t] ?? [];
|
|
17558
|
+
r[n] = e, Me.value[t] = r;
|
|
17540
17559
|
}
|
|
17541
17560
|
}
|
|
17542
|
-
function
|
|
17543
|
-
let r =
|
|
17561
|
+
function Pe(e, t, n) {
|
|
17562
|
+
let r = ke.value[e] ?? [], i = De.value;
|
|
17544
17563
|
return (i !== void 0 && r.includes(i) ? t === i : n === 0) ? 0 : -1;
|
|
17545
17564
|
}
|
|
17546
|
-
function
|
|
17547
|
-
|
|
17565
|
+
function Fe(e) {
|
|
17566
|
+
a.value = e ? { type: "transparent" } : {
|
|
17548
17567
|
type: "color",
|
|
17549
|
-
...
|
|
17568
|
+
...ee.value
|
|
17550
17569
|
};
|
|
17551
17570
|
}
|
|
17552
|
-
function
|
|
17571
|
+
function Ie(e) {
|
|
17553
17572
|
if (e.newState !== "open") return;
|
|
17554
|
-
let t =
|
|
17573
|
+
let t = re.value, n = ae.value;
|
|
17555
17574
|
if (!(t && n)) return;
|
|
17556
|
-
let r = t.getBoundingClientRect(), i =
|
|
17575
|
+
let r = t.getBoundingClientRect(), i = NE(r, window.innerHeight);
|
|
17557
17576
|
n.style.left = `${r.left}px`, n.style.top = i.side === "below" ? `${i.offset}px` : "auto", n.style.bottom = i.side === "above" ? `${i.offset}px` : "auto", n.style.maxHeight = `${i.maxHeight}px`;
|
|
17558
17577
|
}
|
|
17578
|
+
function Le(e) {
|
|
17579
|
+
t.keepFocus && e.preventDefault();
|
|
17580
|
+
}
|
|
17559
17581
|
function Re(e) {
|
|
17560
|
-
if (
|
|
17561
|
-
let t =
|
|
17582
|
+
if (_.value = e.newState === "open", e.newState !== "open") return;
|
|
17583
|
+
let t = De.value, n = t ? ke.value.findIndex((e) => e.includes(t)) : -1;
|
|
17562
17584
|
if (t && n !== -1) {
|
|
17563
|
-
let e =
|
|
17564
|
-
|
|
17585
|
+
let e = ke.value[n]?.indexOf(t) ?? 0;
|
|
17586
|
+
Me.value[n]?.[e]?.focus();
|
|
17565
17587
|
return;
|
|
17566
17588
|
}
|
|
17567
|
-
if (!
|
|
17568
|
-
|
|
17589
|
+
if (!h.value) {
|
|
17590
|
+
ce.value?.focus();
|
|
17569
17591
|
return;
|
|
17570
17592
|
}
|
|
17571
|
-
|
|
17593
|
+
Me.value[0]?.[0]?.focus();
|
|
17572
17594
|
}
|
|
17573
|
-
function
|
|
17595
|
+
function A(e) {
|
|
17574
17596
|
let t = e.relatedTarget;
|
|
17575
|
-
t instanceof Node &&
|
|
17597
|
+
t instanceof Node && ae.value?.contains(t) || ae.value?.matches(":popover-open") && ae.value.hidePopover();
|
|
17576
17598
|
}
|
|
17577
|
-
return
|
|
17578
|
-
|
|
17579
|
-
|
|
17599
|
+
return v(O), (i, a) => (y(), e("div", { class: oe(["color-picker", { "has-label": t.label && !t.compact }]) }, [
|
|
17600
|
+
t.label && !t.compact ? (y(), e("span", WE, w(t.label), 1)) : ie("", !0),
|
|
17601
|
+
r("button", {
|
|
17580
17602
|
ref_key: "trigger",
|
|
17581
|
-
ref:
|
|
17603
|
+
ref: re,
|
|
17582
17604
|
type: "button",
|
|
17583
|
-
class:
|
|
17584
|
-
popovertarget:
|
|
17605
|
+
class: oe(["trigger", { compact: t.compact }]),
|
|
17606
|
+
popovertarget: se(g),
|
|
17585
17607
|
"aria-haspopup": "dialog",
|
|
17586
|
-
"aria-expanded":
|
|
17587
|
-
"aria-label":
|
|
17588
|
-
|
|
17589
|
-
|
|
17590
|
-
|
|
17591
|
-
|
|
17592
|
-
|
|
17593
|
-
|
|
17608
|
+
"aria-expanded": _.value,
|
|
17609
|
+
"aria-label": he.value,
|
|
17610
|
+
onMousedown: Le
|
|
17611
|
+
}, [r("span", {
|
|
17612
|
+
class: oe(["swatch", { checker: ue.value }]),
|
|
17613
|
+
style: te(ue.value ? {} : { backgroundColor: de.value })
|
|
17614
|
+
}, null, 6), t.compact ? ie("", !0) : (y(), e("span", KE, w(pe.value), 1))], 42, GE),
|
|
17615
|
+
r("div", {
|
|
17616
|
+
id: se(g),
|
|
17594
17617
|
ref_key: "popover",
|
|
17595
|
-
ref:
|
|
17618
|
+
ref: ae,
|
|
17596
17619
|
popover: "",
|
|
17597
17620
|
class: "popover",
|
|
17598
17621
|
role: "dialog",
|
|
17599
17622
|
tabindex: "-1",
|
|
17600
|
-
"aria-label":
|
|
17601
|
-
onBeforetoggle:
|
|
17623
|
+
"aria-label": t.label ?? se(o)("colorPicker.open"),
|
|
17624
|
+
onBeforetoggle: Ie,
|
|
17602
17625
|
onToggle: Re,
|
|
17603
|
-
onFocusout:
|
|
17626
|
+
onFocusout: A
|
|
17604
17627
|
}, [
|
|
17605
|
-
(
|
|
17606
|
-
key:
|
|
17628
|
+
(y(!0), e(n, null, l(c.value, (t, i) => (y(), e("div", {
|
|
17629
|
+
key: t.key,
|
|
17607
17630
|
class: "palette-section"
|
|
17608
|
-
}, [p.value ? (
|
|
17631
|
+
}, [p.value ? (y(), e("span", {
|
|
17609
17632
|
key: 0,
|
|
17610
|
-
id: `${
|
|
17633
|
+
id: `${se(g)}-${t.key}`,
|
|
17611
17634
|
class: "palette-heading"
|
|
17612
|
-
},
|
|
17635
|
+
}, w(t.label), 9, JE)) : ie("", !0), r("div", {
|
|
17613
17636
|
class: "palette",
|
|
17614
17637
|
role: "radiogroup",
|
|
17615
|
-
"aria-label": p.value ? void 0 :
|
|
17616
|
-
"aria-labelledby": p.value ? `${
|
|
17617
|
-
}, [(
|
|
17618
|
-
key:
|
|
17638
|
+
"aria-label": p.value ? void 0 : t.label,
|
|
17639
|
+
"aria-labelledby": p.value ? `${se(g)}-${t.key}` : void 0
|
|
17640
|
+
}, [(y(!0), e(n, null, l(ke.value[i], (t, n) => (y(), e("button", {
|
|
17641
|
+
key: t,
|
|
17619
17642
|
ref_for: !0,
|
|
17620
|
-
ref: (e) =>
|
|
17643
|
+
ref: (e) => Ne(e, i, n),
|
|
17621
17644
|
type: "button",
|
|
17622
17645
|
role: "radio",
|
|
17623
|
-
class:
|
|
17624
|
-
"aria-checked":
|
|
17625
|
-
"aria-label":
|
|
17626
|
-
tabindex:
|
|
17627
|
-
style:
|
|
17628
|
-
onClick: (
|
|
17629
|
-
onKeydown: (e) =>
|
|
17630
|
-
}, null, 46,
|
|
17631
|
-
|
|
17646
|
+
class: oe(["palette-swatch", { "off-brand": t === Oe.value }]),
|
|
17647
|
+
"aria-checked": t === De.value,
|
|
17648
|
+
"aria-label": t === Oe.value ? se(o)("colorPicker.offBrandValue", { value: t }) : se(o)("colorPicker.colorValue", { value: t }),
|
|
17649
|
+
tabindex: Pe(i, t, n),
|
|
17650
|
+
style: te({ backgroundColor: t }),
|
|
17651
|
+
onClick: (e) => Ae(t),
|
|
17652
|
+
onKeydown: (e) => je(e, i, n)
|
|
17653
|
+
}, null, 46, XE))), 128))], 8, YE)]))), 128)),
|
|
17654
|
+
h.value ? ie("", !0) : (y(), e(n, { key: 0 }, [r("div", {
|
|
17632
17655
|
ref_key: "svArea",
|
|
17633
|
-
ref:
|
|
17656
|
+
ref: ce,
|
|
17634
17657
|
class: "sv-area",
|
|
17635
17658
|
role: "slider",
|
|
17636
17659
|
tabindex: "0",
|
|
17637
|
-
"aria-label":
|
|
17660
|
+
"aria-label": se(o)("colorPicker.saturationValue"),
|
|
17638
17661
|
"aria-valuemin": "0",
|
|
17639
17662
|
"aria-valuemax": "100",
|
|
17640
|
-
"aria-valuenow": Math.round(
|
|
17641
|
-
"aria-valuetext":
|
|
17642
|
-
style:
|
|
17643
|
-
onPointerdown:
|
|
17644
|
-
onKeydown:
|
|
17645
|
-
}, [
|
|
17663
|
+
"aria-valuenow": Math.round(E.value * 100),
|
|
17664
|
+
"aria-valuetext": ve.value,
|
|
17665
|
+
style: te({ backgroundColor: ge.value }),
|
|
17666
|
+
onPointerdown: Se,
|
|
17667
|
+
onKeydown: we
|
|
17668
|
+
}, [r("div", {
|
|
17646
17669
|
class: "sv-thumb",
|
|
17647
|
-
style:
|
|
17648
|
-
left: `${
|
|
17649
|
-
top: `${(1 -
|
|
17650
|
-
backgroundColor:
|
|
17670
|
+
style: te({
|
|
17671
|
+
left: `${T.value * 100}%`,
|
|
17672
|
+
top: `${(1 - E.value) * 100}%`,
|
|
17673
|
+
backgroundColor: _e.value
|
|
17651
17674
|
})
|
|
17652
|
-
}, null, 4)], 44,
|
|
17675
|
+
}, null, 4)], 44, ZE), r("div", {
|
|
17653
17676
|
class: "hue-track",
|
|
17654
17677
|
role: "slider",
|
|
17655
17678
|
tabindex: "0",
|
|
17656
|
-
"aria-label":
|
|
17679
|
+
"aria-label": se(o)("colorPicker.hue"),
|
|
17657
17680
|
"aria-valuemin": "0",
|
|
17658
17681
|
"aria-valuemax": "360",
|
|
17659
|
-
"aria-valuenow": Math.round(
|
|
17660
|
-
onPointerdown:
|
|
17661
|
-
onKeydown:
|
|
17662
|
-
}, [
|
|
17682
|
+
"aria-valuenow": Math.round(C.value),
|
|
17683
|
+
onPointerdown: Ce,
|
|
17684
|
+
onKeydown: Te
|
|
17685
|
+
}, [r("div", {
|
|
17663
17686
|
class: "hue-thumb",
|
|
17664
|
-
style:
|
|
17665
|
-
}, null, 4)], 40,
|
|
17666
|
-
|
|
17687
|
+
style: te({ left: `${C.value / 360 * 100}%` })
|
|
17688
|
+
}, null, 4)], 40, QE)], 64)),
|
|
17689
|
+
h.value ? ie("", !0) : (y(), f(UE, {
|
|
17667
17690
|
key: 1,
|
|
17668
|
-
modelValue:
|
|
17669
|
-
"onUpdate:modelValue":
|
|
17691
|
+
modelValue: D.value,
|
|
17692
|
+
"onUpdate:modelValue": a[0] ||= (e) => D.value = e,
|
|
17670
17693
|
spellcheck: "false",
|
|
17671
17694
|
autocomplete: "off",
|
|
17672
|
-
"aria-label":
|
|
17673
|
-
"aria-invalid": !
|
|
17674
|
-
onFocus:
|
|
17675
|
-
onInput:
|
|
17676
|
-
onBlur:
|
|
17695
|
+
"aria-label": se(o)("colorPicker.hex"),
|
|
17696
|
+
"aria-invalid": !se(vi)(D.value),
|
|
17697
|
+
onFocus: a[1] ||= (e) => ne.value = !0,
|
|
17698
|
+
onInput: k,
|
|
17699
|
+
onBlur: Ee
|
|
17677
17700
|
}, null, 8, [
|
|
17678
17701
|
"modelValue",
|
|
17679
17702
|
"aria-label",
|
|
17680
17703
|
"aria-invalid"
|
|
17681
17704
|
])),
|
|
17682
|
-
|
|
17705
|
+
t.allowTransparent ? (y(), f(LE, {
|
|
17683
17706
|
key: 2,
|
|
17684
17707
|
class: "transparent-toggle",
|
|
17685
|
-
label:
|
|
17686
|
-
"model-value":
|
|
17687
|
-
"onUpdate:modelValue":
|
|
17688
|
-
}, null, 8, ["label", "model-value"])) :
|
|
17689
|
-
], 40,
|
|
17708
|
+
label: se(o)("colorPicker.transparent"),
|
|
17709
|
+
"model-value": ue.value,
|
|
17710
|
+
"onUpdate:modelValue": Fe
|
|
17711
|
+
}, null, 8, ["label", "model-value"])) : ie("", !0)
|
|
17712
|
+
], 40, qE)
|
|
17690
17713
|
], 2));
|
|
17691
17714
|
}
|
|
17692
|
-
}), [["styles", [".color-picker[data-v-
|
|
17715
|
+
}), [["styles", [".color-picker[data-v-268fdbed]{flex-direction:column;gap:.5em;display:flex}.picker-label[data-v-268fdbed]{background:var(--bygga-color-surface);color:var(--bygga-color-text-muted);pointer-events:none;z-index:1;padding:0 4px;font-size:12px;line-height:1;position:absolute;top:0;left:12px;transform:translateY(-50%)}.color-picker.has-label[data-v-268fdbed]{position:relative}.color-picker.has-label:has(.trigger:focus-visible) .picker-label[data-v-268fdbed]{color:var(--bygga-color-accent)}.trigger[data-v-268fdbed]{background:var(--bygga-color-surface);border:1px solid var(--bygga-color-border);border-radius:var(--bygga-radius-sm);box-sizing:border-box;cursor:pointer;align-items:center;gap:8px;min-height:40px;padding:0 12px;display:inline-flex}.trigger[data-v-268fdbed]:hover,.trigger[data-v-268fdbed]:focus-visible{border-color:var(--bygga-color-accent)}.trigger.compact[data-v-268fdbed]{border-color:#0000;border-radius:4px;justify-content:center;width:30px;height:30px;min-height:0;padding:0}.trigger.compact .swatch[data-v-268fdbed]{border-color:var(--bygga-color-border-subtle)}.trigger.compact[data-v-268fdbed]:hover,.trigger.compact[data-v-268fdbed]:focus-visible{background:color-mix(in srgb, var(--bygga-color-text) 10%, transparent);border-color:#0000}.swatch[data-v-268fdbed]{border:1px solid var(--bygga-color-border);border-radius:4px;flex-shrink:0;width:20px;height:20px}.value[data-v-268fdbed]{color:var(--bygga-color-text-muted);font-variant-numeric:tabular-nums}.checker[data-v-268fdbed]{background-color:#fff;background-image:linear-gradient(45deg,#ccc 25%,#0000 25%),linear-gradient(-45deg,#ccc 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#ccc 75%),linear-gradient(-45deg,#0000 75%,#ccc 75%);background-position:0 0,0 5px,5px -5px,-5px 0;background-size:10px 10px}.popover[data-v-268fdbed]{background:var(--bygga-color-surface);border:1px solid var(--bygga-color-border);border-radius:var(--bygga-radius-md);box-shadow:var(--bygga-shadow-card);box-sizing:border-box;flex-direction:column;gap:12px;width:224px;max-height:calc(100vh - 16px);margin:0;padding:12px;position:fixed;inset:auto;overflow-y:auto}.popover[data-v-268fdbed]:popover-open{display:flex}.sv-area[data-v-268fdbed]{border-radius:var(--bygga-radius-sm);cursor:crosshair;touch-action:none;background-image:linear-gradient(#0000,#000),linear-gradient(90deg,#fff,#fff0);width:100%;height:160px;position:relative}.sv-area[data-v-268fdbed]:focus-visible{outline:2px solid var(--bygga-color-accent);outline-offset:2px}.sv-thumb[data-v-268fdbed]{box-sizing:border-box;pointer-events:none;border:2px solid #fff;border-radius:50%;width:14px;height:14px;margin:-7px 0 0 -7px;position:absolute;box-shadow:0 0 0 1px #0000004d}.hue-track[data-v-268fdbed]{cursor:pointer;touch-action:none;background:linear-gradient(90deg,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);border-radius:999px;width:100%;height:12px;position:relative}.hue-track[data-v-268fdbed]:focus-visible{outline:2px solid var(--bygga-color-accent);outline-offset:2px}.hue-thumb[data-v-268fdbed]{border:1px solid var(--bygga-color-border);box-shadow:var(--bygga-shadow-raised);box-sizing:border-box;pointer-events:none;background:#fff;border-radius:50%;width:16px;height:16px;margin-left:-8px;position:absolute;top:50%;transform:translateY(-50%)}.palette-section[data-v-268fdbed]{flex-direction:column;gap:6px;display:flex}.palette-heading[data-v-268fdbed]{color:var(--bygga-color-text-muted);font-size:12px;font-weight:500;line-height:16px}.palette[data-v-268fdbed]{grid-template-columns:repeat(auto-fill,minmax(32px,1fr));gap:8px;display:grid}.palette-swatch[data-v-268fdbed]{aspect-ratio:1;border:1px solid var(--bygga-color-border);border-radius:var(--bygga-radius-sm);cursor:pointer;width:100%;padding:0}.palette-swatch[data-v-268fdbed]:hover,.palette-swatch[data-v-268fdbed]:focus-visible{outline:2px solid var(--bygga-color-accent);outline-offset:2px}.palette-swatch[aria-checked=true][data-v-268fdbed]{box-shadow:inset 0 0 0 2px var(--bygga-color-surface), inset 0 0 0 4px var(--bygga-color-accent,currentcolor)}.palette-swatch.off-brand[data-v-268fdbed]{border-style:dashed;border-width:2px}.transparent-toggle[data-v-268fdbed]{align-self:flex-start}.swatch[data-v-268fdbed],.checker[data-v-268fdbed],.sv-area[data-v-268fdbed],.sv-thumb[data-v-268fdbed],.hue-track[data-v-268fdbed],.hue-thumb[data-v-268fdbed],.palette-swatch[data-v-268fdbed]{forced-color-adjust:none}"]], ["__scopeId", "data-v-268fdbed"]]), eD = { class: "select-wrap" }, tD = ["id", "disabled"], nD = /*#__PURE__*/ Hw(/* @__PURE__ */ p({
|
|
17693
17716
|
inheritAttrs: !1,
|
|
17694
17717
|
__name: "SelectInput",
|
|
17695
|
-
props: /*@__PURE__*/
|
|
17718
|
+
props: /*@__PURE__*/ h({
|
|
17696
17719
|
label: {
|
|
17697
17720
|
default: void 0,
|
|
17698
17721
|
type: String
|
|
@@ -17710,23 +17733,23 @@ var jE = { class: "checkbox-option" }, ME = {
|
|
|
17710
17733
|
modelModifiers: {}
|
|
17711
17734
|
}),
|
|
17712
17735
|
emits: ["update:modelValue"],
|
|
17713
|
-
setup(
|
|
17714
|
-
let
|
|
17715
|
-
return
|
|
17716
|
-
await
|
|
17717
|
-
}), (
|
|
17718
|
-
disabled:
|
|
17719
|
-
label:
|
|
17720
|
-
"label-for":
|
|
17736
|
+
setup(n) {
|
|
17737
|
+
let a = b(n, "modelValue"), o = n, s = x(), c = i(() => a.value === "" && !o.emptyIsValue), l = S("select");
|
|
17738
|
+
return m(a, async (e) => {
|
|
17739
|
+
await t(), l.value && l.value.value !== e && (l.value.value = e);
|
|
17740
|
+
}), (t, i) => (y(), e("div", { class: oe(["select-input", { "is-empty": c.value }]) }, [d(VE, {
|
|
17741
|
+
disabled: n.disabled,
|
|
17742
|
+
label: o.label,
|
|
17743
|
+
"label-for": se(s)
|
|
17721
17744
|
}, {
|
|
17722
|
-
default:
|
|
17723
|
-
id:
|
|
17745
|
+
default: ee(() => [r("span", eD, [de(r("select", he({
|
|
17746
|
+
id: se(s),
|
|
17724
17747
|
ref_key: "select",
|
|
17725
|
-
ref:
|
|
17726
|
-
"onUpdate:modelValue":
|
|
17748
|
+
ref: l,
|
|
17749
|
+
"onUpdate:modelValue": i[0] ||= (e) => a.value = e,
|
|
17727
17750
|
class: "field-select",
|
|
17728
|
-
disabled:
|
|
17729
|
-
},
|
|
17751
|
+
disabled: n.disabled
|
|
17752
|
+
}, t.$attrs), [ce(t.$slots, "default", {}, void 0, !0)], 16, tD), [[pe, a.value]]), d(vE, {
|
|
17730
17753
|
class: "chevron",
|
|
17731
17754
|
name: "chevron-down",
|
|
17732
17755
|
size: 12
|
|
@@ -17741,18 +17764,18 @@ var jE = { class: "checkbox-option" }, ME = {
|
|
|
17741
17764
|
}), [["styles", [".select-input[data-v-bc9ef2fc]{width:100%;position:relative}.select-wrap[data-v-bc9ef2fc]{flex:1 1 0;min-width:0;display:flex;position:relative}.field-select[data-v-bc9ef2fc]{appearance:none;color:inherit;cursor:pointer;font:inherit;text-overflow:ellipsis;white-space:nowrap;background:0 0;border:none;outline:none;width:100%;min-width:0;padding:0 20px 0 0}.field-select[data-v-bc9ef2fc]:disabled{cursor:not-allowed}.select-input.is-empty .field-select[data-v-bc9ef2fc]{color:var(--bygga-color-text-muted)}.chevron[data-v-bc9ef2fc]{color:var(--bygga-color-text-muted);pointer-events:none;position:absolute;top:50%;right:0;transform:translateY(-50%)}"]], ["__scopeId", "data-v-bc9ef2fc"]]);
|
|
17742
17765
|
//#endregion
|
|
17743
17766
|
//#region src/composables/useBrandCustomFonts.ts
|
|
17744
|
-
function
|
|
17745
|
-
let e =
|
|
17746
|
-
return
|
|
17767
|
+
function rD() {
|
|
17768
|
+
let e = u(TE, void 0);
|
|
17769
|
+
return i(() => Uw(e?.value.customFonts ?? []));
|
|
17747
17770
|
}
|
|
17748
17771
|
//#endregion
|
|
17749
17772
|
//#region src/composables/useBrandFonts.ts
|
|
17750
|
-
function
|
|
17751
|
-
let t =
|
|
17752
|
-
return
|
|
17773
|
+
function iD(e) {
|
|
17774
|
+
let t = u(TE, void 0);
|
|
17775
|
+
return i(() => {
|
|
17753
17776
|
let n = t?.value.fonts ?? [];
|
|
17754
17777
|
if (n.length === 0) return Ci;
|
|
17755
|
-
let r = n.flatMap((e) => Ci.find((t) => t.key === e) ?? []), i =
|
|
17778
|
+
let r = n.flatMap((e) => Ci.find((t) => t.key === e) ?? []), i = D(e);
|
|
17756
17779
|
if (i && !n.includes(i)) {
|
|
17757
17780
|
let e = Ci.find((e) => e.key === i);
|
|
17758
17781
|
if (e) return [...r, e];
|
|
@@ -17762,25 +17785,25 @@ function tD(e) {
|
|
|
17762
17785
|
}
|
|
17763
17786
|
//#endregion
|
|
17764
17787
|
//#region src/i18n/locales.ts
|
|
17765
|
-
var
|
|
17766
|
-
function
|
|
17767
|
-
return
|
|
17788
|
+
var aD = ["en", "sv"], oD = "sv";
|
|
17789
|
+
function sD(e) {
|
|
17790
|
+
return aD.includes(e);
|
|
17768
17791
|
}
|
|
17769
17792
|
//#endregion
|
|
17770
17793
|
//#region src/mergeTags.ts
|
|
17771
|
-
function
|
|
17794
|
+
function cD(e) {
|
|
17772
17795
|
return Object.keys(e).filter((t) => !e[t]?.conditionOnly);
|
|
17773
17796
|
}
|
|
17774
|
-
function
|
|
17797
|
+
function lD(e, t, n) {
|
|
17775
17798
|
let r = e[t];
|
|
17776
17799
|
return r ? r[n] ?? r.sv ?? t : t;
|
|
17777
17800
|
}
|
|
17778
17801
|
//#endregion
|
|
17779
17802
|
//#region src/urls.ts
|
|
17780
|
-
var
|
|
17781
|
-
function
|
|
17803
|
+
var uD = /^[a-z][a-z0-9+.-]*:/i, dD = /^(?:https?|ftps?|mailto|tel|callto|sms|cid|xmpp):/i, fD = /^[/#?]/;
|
|
17804
|
+
function pD(e) {
|
|
17782
17805
|
let t = e.trim();
|
|
17783
|
-
return
|
|
17806
|
+
return uD.test(t) ? dD.test(t) ? t : "" : t === "" || fD.test(t) ? t : `https://${t}`;
|
|
17784
17807
|
}
|
|
17785
17808
|
//#endregion
|
|
17786
|
-
export {
|
|
17809
|
+
export { Sw as $, Vi as $t, $w as A, oi as An, cp as At, Tw as B, ei as Bn, Bi as Bt, OE as C, Fi as Cn, Jg as Ct, vE as D, Ei as Dn, gg as Dt, xE as E, Ti as En, hg as Et, zw as F, ni as Fn, H as Ft, sw as G, Wi as Gt, Ew as H, Vr as Hn, la as Ht, iw as I, ri as In, cs as It, Mw as J, Xi as Jt, ew as K, Qi as Kt, tw as L, ii as Ln, Ws as Lt, Bw as M, yi as Mn, Ac as Mt, Rw as N, vi as Nn, Nc as Nt, Gw as O, si as On, cm as Ot, Lw as P, _i as Pn, V as Pt, Aw as Q, Ki as Qt, yw as R, $r as Rn, R as Rt, DE as S, Ri as Sn, G as St, bE as T, ki as Tn, mg as Tt, ww as U, ua as Ut, Dw as V, Br as Vn, ca as Vt, cw as W, da as Wt, jw as X, Ui as Xt, Nw as Y, na as Yt, kw as Z, sa as Zt, EE as _, wa as _n, tb as _t, aD as a, ga as an, pw as at, AE as b, ia as bn, K as bt, rD as c, ea as cn, fw as ct, UE as d, ta as dn, QC as dt, qi as en, Cw as et, VE as f, ra as fn, $C as ft, kE as g, oa as gn, oC as gt, NE as h, Sa as hn, rC as ht, oD as i, xa as in, gw as it, Hw as j, xi as jn, U as jt, Uw as k, ai as kn, ap as kt, nD as l, Gi as ln, kC as lt, jE as m, Hi as mn, sC as mt, cD as n, Ca as nn, mw as nt, sD as o, _a as on, bw as ot, LE as p, ba as pn, nC as pt, Fw as q, Zi as qt, lD as r, ya as rn, vw as rt, iD as s, Ta as sn, Ow as st, pD as t, va as tn, hw as tt, $E as u, $i as un, cC as ut, TE as v, Yi as vn, eb as vt, SE as w, wi as wn, W as wt, wE as x, Pi as xn, B_ as xt, CE as y, aa as yn, I_ as yt, xw as z, ti as zn, B as zt };
|