@bygga.dev/editor 1.9.3 → 1.9.5

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 { $ as e, A as t, B as n, D as r, E as i, G as a, H as o, I as s, J as c, K as l, L as u, N as d, O as f, P as p, R as m, S as h, T as g, U as _, V as v, W as y, X as b, Y as x, Z as ee, _ as S, dt as C, et as w, ft as T, g as te, gt as ne, ht as re, it as ie, j as ae, k as E, lt as oe, nt as se, ot as ce, p as le, pt as ue, q as de, rt as fe, ut as pe, v as me, w as he, z as ge } from "./providerKeys-ZibeU1i6.js";
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 _e(e, t) {
3
+ function ge(e, t) {
4
4
  typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
5
5
  }
6
- var ve = typeof window < "u", ye = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), be = (e, t, n) => xe({
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
- }), xe = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), D = (e) => typeof e == "number" && isFinite(e), Se = (e) => Ve(e) === "[object Date]", Ce = (e) => Ve(e) === "[object RegExp]", we = (e) => P(e) && Object.keys(e).length === 0, Te = Object.assign, Ee = Object.create, O = (e = null) => Ee(e), De, Oe = () => De ||= typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : O();
11
- function ke(e) {
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, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\//g, "&#x2F;").replace(/=/g, "&#x3D;");
13
13
  }
14
- function Ae(e) {
14
+ function ke(e) {
15
15
  return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
16
16
  }
17
- var je = /^\s*javascript\s*(?::|&#0*58;?|&#x0*3a;?|&colon;?)/i, Me = /^(?:href|src|action|formaction)$/i;
18
- function Ne(e) {
19
- return je.test(e);
17
+ var Ae = /^\s*javascript\s*(?::|&#0*58;?|&#x0*3a;?|&colon;?)/i, je = /^(?:href|src|action|formaction)$/i;
18
+ function Me(e) {
19
+ return Ae.test(e);
20
20
  }
21
- function Pe(e) {
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,15 +34,15 @@ 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 += Ne(d) ? "url(about:blank)" : e.slice(a, s + 1), r = s + 1;
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 Fe(e, t) {
42
- return Me.test(e) && Ne(t) ? "about:blank" : Ae(e.toLowerCase() === "style" ? Pe(t) : t);
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 k(e) {
45
- return e = e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g, (e, t, n) => `${t}="${Fe(t, n)}"`), e = e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g, (e, t, n) => `${t}='${Fe(t, n)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1&#111;n$3")), e = e.replace(/(\s+(?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi, (e, t, n) => Ne(n) ? `${t}about:blank` : e), e;
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, "$1&#111;n$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
47
  var Ie = Object.prototype.hasOwnProperty;
48
48
  function Le(e, t) {
@@ -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]) ? [] : O()), We(t[r]) || We(e[r]) ? t[r] = e[r] : n.push({
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 ee() {
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: ee
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 ee(e, t) {
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 S(e, t) {
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 C(e, t) {
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 w(e, t) {
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()) : te(e, !1);
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 T(e) {
250
+ function E(e) {
251
251
  h(e);
252
252
  let t = e.currentPeek() === "|";
253
253
  return e.resetPeek(), t;
254
254
  }
255
- function te(e, t = !0) {
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 ne(e, t) {
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 re(e) {
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 ie(e) {
271
- return ne(e, re);
270
+ function ne(e) {
271
+ return D(e, te);
272
272
  }
273
- function ae(e) {
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 E(e) {
278
- return ne(e, ae);
277
+ function ie(e) {
278
+ return D(e, re);
279
279
  }
280
- function oe(e) {
280
+ function ae(e) {
281
281
  let t = e.charCodeAt(0);
282
282
  return t >= 48 && t <= 57;
283
283
  }
284
- function se(e) {
285
- return ne(e, oe);
284
+ function oe(e) {
285
+ return D(e, ae);
286
286
  }
287
- function ce(e) {
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 le(e) {
292
- return ne(e, ce);
291
+ function ce(e) {
292
+ return D(e, se);
293
293
  }
294
- function ue(e) {
294
+ function le(e) {
295
295
  let t = "", n = "";
296
- for (; t = se(e);) n += t;
296
+ for (; t = oe(e);) n += t;
297
297
  return n;
298
298
  }
299
- function de(e) {
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 (te(e)) t += n, e.next();
308
- else if (T(e)) break;
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 fe(e) {
314
+ function de(e) {
315
315
  g(e);
316
316
  let t = "", n = "";
317
- for (; t = E(e);) n += 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 = ye(e);
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 pe(e) {
325
+ function fe(e) {
326
326
  g(e);
327
327
  let t = "";
328
- return e.currentChar() === "-" ? (e.next(), t += `-${ue(e)}`) : t += ue(e), e.currentChar() === nt && d(F.UNTERMINATED_CLOSING_BRACE, a(), 0), 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 me(e) {
330
+ function pe(e) {
331
331
  return e !== rt && e !== Qe;
332
332
  }
333
- function he(e) {
333
+ function me(e) {
334
334
  g(e), m(e, "'");
335
335
  let t = "", n = "";
336
- for (; t = ne(e, me);) t === "\\" ? n += ge(e) : n += 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 ge(e) {
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 _e(e, t, 4);
346
- case "U": return _e(e, t, 6);
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 _e(e, t, n) {
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 = le(e);
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 ve(e) {
363
+ function _e(e) {
364
364
  return e !== "{" && e !== "}" && e !== Xe && e !== Qe;
365
365
  }
366
- function ye(e) {
366
+ function ve(e) {
367
367
  g(e);
368
368
  let t = "", n = "";
369
- for (; t = ne(e, ve);) n += t;
369
+ for (; t = D(e, _e);) n += t;
370
370
  return n;
371
371
  }
372
- function be(e) {
372
+ function ye(e) {
373
373
  let t = "", n = "";
374
- for (; t = ie(e);) n += t;
374
+ for (; t = ne(e);) n += t;
375
375
  return n;
376
376
  }
377
- function xe(e) {
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 D(e) {
384
+ function O(e) {
385
385
  g(e);
386
386
  let t = m(e, "|");
387
387
  return g(e), t;
388
388
  }
389
- function Se(e, t) {
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 = Ce(e, t) || p(t), t.braceNest = 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 (T(e)) return t.braceNest > 0 && d(F.UNTERMINATED_CLOSING_BRACE, a(), 0), n = f(t, 1, D(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, we(e, t);
399
- if (r = y(e, t)) return n = f(t, 4, fe(e)), g(e), n;
400
- if (i = b(e, t)) return n = f(t, 5, pe(e)), g(e), n;
401
- if (o = x(e, t)) return n = f(t, 6, he(e)), g(e), n;
402
- if (!r && !i && !o) return n = f(t, 12, ye(e)), d(F.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n.value), g(e), n;
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 Ce(e, t) {
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 T(e) ? (r = f(t, 1, D(e)), t.braceNest = 0, t.inLinked = !1, r) : ee(e, t) || C(e, t) ? (g(e), Ce(e, t)) : S(e, t) ? (g(e), f(t, 11, be(e))) : w(e, t) ? (g(e), i === "{" ? Se(e, t) || r : f(t, 10, xe(e))) : (n === 7 && d(F.INVALID_LINKED_FORMAT, a(), 0), t.braceNest = 0, t.inLinked = !1, we(e, t));
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 we(e, t) {
417
+ function Ce(e, t) {
418
418
  let n = { type: 13 };
419
- if (t.braceNest > 0) return Se(e, t) || p(t);
420
- if (t.inLinked) return Ce(e, t) || p(t);
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 Se(e, t) || p(t);
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 Ce(e, t) || p(t);
424
+ case "@": return Se(e, t) || p(t);
425
425
  default:
426
- if (T(e)) return n = f(t, 1, D(e)), t.braceNest = 0, t.inLinked = !1, n;
427
- if (te(e)) return f(t, 0, de(e));
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 Te() {
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) : we(r, 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) : Ce(r, c);
435
435
  }
436
436
  return {
437
- nextToken: Te,
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, Te({}, e)), s = o.context(), c = i(0, s.offset, s.startLoc);
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 = Te({}, t), r = !!n.jit, i = !!n.minify, a = n.optimize == null ? !0 : n.optimize, o = dt(n).parse(e);
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,7 +817,7 @@ 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" && (Oe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
820
+ typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (De().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
821
821
  }
822
822
  function kt(e) {
823
823
  return N(e) && zt(e) === 0 && (Le(e, "b") || Le(e, "body"));
@@ -910,8 +910,8 @@ function Qt(e, t) {
910
910
  }
911
911
  case 5: {
912
912
  let r = t;
913
- if (Le(r, "i") && D(r.i)) return e.interpolate(e.list(r.i));
914
- if (Le(r, "index") && D(r.index)) return e.interpolate(e.list(r.index));
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 = O();
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) => {
@@ -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 : _e, 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 = Te(O(), e.modifiers, On()), u = e.pluralRules || O(), d = A(e.missing) ? e.missing : null, f = M(e.missingWarn) || Ce(e.missingWarn) ? e.missingWarn : !0, p = M(e.fallbackWarn) || Ce(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, ee = A(e.localeFallbacker) ? e.localeFallbacker : Nn || ln, S = N(e.fallbackContext) ? e.fallbackContext : void 0, C = e, w = N(C.__datetimeFormatters) ? C.__datetimeFormatters : /* @__PURE__ */ new Map(), T = N(C.__numberFormatters) ? C.__numberFormatters : /* @__PURE__ */ new Map(), te = N(C.__meta) ? C.__meta : {};
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 ne = {
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: ee,
1192
- fallbackContext: S,
1191
+ localeFallbacker: S,
1192
+ fallbackContext: C,
1193
1193
  onWarn: t,
1194
- __meta: te
1194
+ __meta: ee
1195
1195
  };
1196
- return ne.datetimeFormats = s, ne.numberFormats = c, ne.__datetimeFormatters = w, ne.__numberFormatters = T, ne;
1196
+ return D.datetimeFormats = s, D.numberFormats = c, D.__datetimeFormatters = T, D.__numberFormatters = E, D;
1197
1197
  }
1198
- var Bn = (e) => ({ [e]: O() });
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]) && !Se(t[0]) && !D(t[0])) return "";
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
- we(d) || (y = `${y}__${JSON.stringify(d)}`);
1235
+ Ce(d) || (y = `${y}__${JSON.stringify(d)}`);
1236
1236
  let b = s.get(y);
1237
- return b || (b = new Intl.DateTimeFormat(_, Te({}, v, d)), s.set(y, b)), p ? b.formatToParts(l) : b.format(l);
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 = O(), o = O(), s;
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 (Se(t)) {
1273
+ } else if (xe(t)) {
1274
1274
  if (isNaN(t.getTime())) throw an(rn.INVALID_DATE_ARGUMENT);
1275
1275
  s = t;
1276
- } else if (D(t)) s = t;
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 (!D(t[0])) return "";
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
- we(d) || (y = `${y}__${JSON.stringify(d)}`);
1308
+ Ce(d) || (y = `${y}__${JSON.stringify(d)}`);
1309
1309
  let b = s.get(y);
1310
- return b || (b = new Intl.NumberFormat(_, Te({}, v, d)), s.set(y, b)), p ? b.formatToParts(l) : b.format(l);
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 = O(), o = O();
1336
- if (!D(t)) throw an(rn.INVALID_ARGUMENT);
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 = D(e.pluralIndex) ? e.pluralIndex : -1;
1360
- return D(e.named?.count) ? e.named.count : D(e.named?.n) ? e.named.n : t;
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 || O();
1364
- D(e.pluralIndex) && (c.count ||= e.pluralIndex, c.n ||= e.pluralIndex);
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);
@@ -1380,7 +1380,7 @@ function sr(e = {}) {
1380
1380
  type: j(e.processor?.type) ? e.processor.type : nr,
1381
1381
  interpolate: p,
1382
1382
  normalize: f,
1383
- values: Te(O(), o, c)
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] || O()
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 ee = !1, S = lr(b) ? b : pr(e, c, v, b, x, () => {
1398
- ee = !0;
1397
+ let S = !1, C = lr(b) ? b : pr(e, c, v, b, x, () => {
1398
+ S = !0;
1399
1399
  });
1400
- if (ee) return b;
1401
- let C = mr(e, S, sr(_r(e, v, y, l))), w = r ? r(C, c) : C;
1402
- return f && j(w) && (w = k(w)), w;
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
- Re(e.list) ? e.list = e.list.map((e) => j(e) ? ke(e) : e) : N(e.named) && Object.keys(e.named).forEach((t) => {
1406
- j(e.named[t]) && (e.named[t] = ke(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 = O(), f, p = null;
1411
- for (let n = 0; n < u.length && (f = u[n], d = o[f] || O(), (p = c(d, t)) === null && (p = d[t]), !(j(p) || kt(p) || lr(p))); n++) if (!Wn(f, u)) {
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 = O();
1439
- if (!j(t) && !D(t) && !lr(t) && !kt(t)) throw an(rn.INVALID_ARGUMENT);
1440
- let a = D(t) ? String(t) : (lr(t), t);
1441
- return D(n) ? i.plural = n : j(n) ? i.default = n : P(n) && !we(n) ? i.named = n : Re(n) && (i.list = n), D(r) ? i.plural = r : j(r) ? i.default = r : P(r) && Te(i, r), [a, i];
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) => be(t, n, 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), D(r.plural) && (d.pluralIndex = r.plural), d;
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" && (Oe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
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__*/ ye("__translateVNode"), Sr = /* #__PURE__*/ ye("__datetimeParts"), Cr = /* #__PURE__*/ ye("__numberParts"), wr = ye("__setPluralRules");
1501
- ye("__intlifyMeta");
1502
- var Tr = /* #__PURE__*/ ye("__injectWithOption"), Er = /* #__PURE__*/ ye("__dispose"), Dr = {
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,
@@ -1515,7 +1515,7 @@ function Or(e) {
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]] = O()), !N(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,11 +1529,11 @@ 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 : Re(r) ? O() : { [e]: O() };
1532
+ let { messages: n, __i18n: r, messageResolver: i, flatJson: a } = t, o = P(n) ? n : Re(r) ? k() : { [e]: k() };
1533
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] || O(), Ge(n, o[t])) : Ge(n, o);
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
1538
  }), i == null && a) for (let e in o) Le(o, e) && Or(o[e]);
1539
1539
  return o;
@@ -1542,7 +1542,7 @@ 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 : O();
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 ae(he, null, e, 0);
1567
+ return d(g, null, e, 0);
1568
1568
  }
1569
1569
  function Nr() {
1570
1570
  let e = "currentInstance";
1571
- return e in le ? le[e] : p();
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, i = e.flatJson, a = ve ? oe : pe, o = M(e.inheritLocale) ? e.inheritLocale : !0, s = a(t && o ? t.locale.value : j(e.locale) ? e.locale : En), c = a(t && o ? t.fallbackLocale.value : j(e.fallbackLocale) || Re(e.fallbackLocale) || P(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s.value), l = a(kr(s.value, e)), u = a(P(e.datetimeFormats) ? e.datetimeFormats : { [s.value]: {} }), d = a(P(e.numberFormats) ? e.numberFormats : { [s.value]: {} }), f = t ? t.missingWarn : M(e.missingWarn) || Ce(e.missingWarn) ? e.missingWarn : !0, p = t ? t.fallbackWarn : M(e.fallbackWarn) || Ce(e.fallbackWarn) ? e.fallbackWarn : !0, m = t ? t.fallbackRoot : M(e.fallbackRoot) ? e.fallbackRoot : !0, h = !!e.fallbackFormat, _ = A(e.missing) ? e.missing : null, v = A(e.missing) ? Lr(e.missing) : null, y = A(e.postTranslation) ? e.postTranslation : null, b = t ? t.warnHtmlMessage : M(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, x = !!e.escapeParameter, S = t ? t.modifiers : P(e.modifiers) ? e.modifiers : {}, C = e.pluralRules || t && t.pluralRules, w;
1579
- w = (() => {
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: s.value,
1584
- fallbackLocale: c.value,
1585
- messages: l.value,
1586
- modifiers: S,
1587
- pluralRules: C,
1588
- missing: v === null ? void 0 : v,
1589
- missingWarn: f,
1590
- fallbackWarn: p,
1591
- fallbackFormat: h,
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: y === null ? void 0 : y,
1594
- warnHtmlMessage: b,
1595
- escapeParameter: x,
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 = u.value, t.numberFormats = d.value, t.__datetimeFormatters = P(w) ? w.__datetimeFormatters : void 0, t.__numberFormatters = P(w) ? w.__numberFormatters : void 0;
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(w, s.value, c.value);
1604
- function T() {
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 te = g({
1614
- get: () => s.value,
1613
+ let D = i({
1614
+ get: () => c.value,
1615
1615
  set: (e) => {
1616
- w.locale = e, s.value = e;
1616
+ T.locale = e, c.value = e;
1617
1617
  }
1618
- }), ne = g({
1619
- get: () => c.value,
1618
+ }), te = i({
1619
+ get: () => l.value,
1620
1620
  set: (e) => {
1621
- w.fallbackLocale = e, c.value = e, Hn(w, s.value, e);
1621
+ T.fallbackLocale = e, l.value = e, Hn(T, c.value, e);
1622
1622
  }
1623
- }), re = g(() => l.value), ie = /* #__PURE__*/ g(() => u.value), ae = /* #__PURE__*/ g(() => d.value);
1624
- function E() {
1625
- return A(y) ? y : null;
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 se(e) {
1628
- y = e, w.postTranslation = e;
1627
+ function oe(e) {
1628
+ b = e, T.postTranslation = e;
1629
1629
  }
1630
- function ce() {
1631
- return _;
1630
+ function se() {
1631
+ return v;
1632
1632
  }
1633
- function le(e) {
1634
- e !== null && (v = Lr(e)), _ = e, w.missing = v;
1633
+ function ce(e) {
1634
+ e !== null && (y = Lr(e)), v = e, T.missing = y;
1635
1635
  }
1636
- let ue = (e, n, i, a, o, s) => {
1637
- T();
1636
+ let le = (e, n, i, a, o, s) => {
1637
+ ee();
1638
1638
  let c;
1639
1639
  try {
1640
- r || (w.fallbackContext = t ? Ln() : void 0), c = e(w);
1640
+ r || (T.fallbackContext = t ? Ln() : void 0), c = e(T);
1641
1641
  } finally {
1642
- r || (w.fallbackContext = void 0);
1642
+ r || (T.fallbackContext = void 0);
1643
1643
  }
1644
- if (i !== "translate exists" && D(c) && c === -1 || i === "translate exists" && !c) {
1644
+ if (i !== "translate exists" && O(c) && c === -1 || i === "translate exists" && !c) {
1645
1645
  let [e, r] = n();
1646
- return t && m ? a(t) : o(e);
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 de(...e) {
1653
- return ue((t) => Reflect.apply(ur, null, [t, ...e]), () => hr(...e), "translate", (t) => Reflect.apply(t.t, t, [...e]), (e) => e, (e) => j(e));
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 fe(...e) {
1655
+ function de(...e) {
1656
1656
  let [t, n, r] = e;
1657
1657
  if (r && !N(r)) throw br(I.INVALID_ARGUMENT);
1658
- return de(t, n, Te({ resolvedMessage: !0 }, r || {}));
1658
+ return ue(t, n, we({ resolvedMessage: !0 }, r || {}));
1659
1659
  }
1660
- function me(...e) {
1661
- return ue((t) => Reflect.apply(Kn, null, [t, ...e]), () => Jn(...e), "datetime format", (t) => Reflect.apply(t.d, t, [...e]), () => "", (e) => j(e) || Re(e));
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 he(...e) {
1664
- return ue((t) => Reflect.apply(Xn, null, [t, ...e]), () => Qn(...e), "number format", (t) => Reflect.apply(t.n, t, [...e]), () => "", (e) => j(e) || Re(e));
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 ge(e) {
1667
- return e.map((e) => j(e) || D(e) || M(e) ? Mr(String(e)) : e);
1666
+ function he(e) {
1667
+ return e.map((e) => j(e) || O(e) || M(e) ? Mr(String(e)) : e);
1668
1668
  }
1669
- let _e = {
1670
- normalize: ge,
1669
+ let ge = {
1670
+ normalize: he,
1671
1671
  interpolate: (e) => e,
1672
1672
  type: "vnode"
1673
1673
  };
1674
- function ye(...e) {
1675
- return ue((t) => {
1674
+ function ve(...e) {
1675
+ return le((t) => {
1676
1676
  let n, r = t;
1677
1677
  try {
1678
- r.processor = _e, n = Reflect.apply(ur, null, [r, ...e]);
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
1683
  }, () => hr(...e), "translate", (t) => t[xr](...e), (e) => [Mr(e)], (e) => Re(e));
1684
1684
  }
1685
- function be(...e) {
1686
- return ue((t) => Reflect.apply(Xn, null, [t, ...e]), () => Qn(...e), "number format", (t) => t[Cr](...e), Pr, (e) => j(e) || Re(e));
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 xe(...e) {
1689
- return ue((t) => Reflect.apply(Kn, null, [t, ...e]), () => Jn(...e), "datetime format", (t) => t[Sr](...e), Pr, (e) => j(e) || Re(e));
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 Se(e) {
1692
- C = e, w.pluralRules = C;
1691
+ function xe(e) {
1692
+ w = e, T.pluralRules = w;
1693
1693
  }
1694
- function we(e, t) {
1695
- return ue(() => {
1694
+ function Ce(e, t) {
1695
+ return le(() => {
1696
1696
  if (!e) return !1;
1697
- let n = j(t) ? t : s.value, r = j(t) ? [n] : un(w, c.value, n);
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 = De(r[t]), i = w.messageResolver(n, e);
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 Ee(e) {
1706
- let t = null, n = un(w, c.value, s.value);
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 = l.value[n[r]] || {}, a = w.messageResolver(i, e);
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 O(e) {
1717
- return Ee(e) ?? (t && t.tm(e) || {});
1716
+ function k(e) {
1717
+ return Te(e) ?? (t && t.tm(e) || {});
1718
1718
  }
1719
- function De(e) {
1720
- return l.value[e] || {};
1719
+ function Ee(e) {
1720
+ return u.value[e] || {};
1721
1721
  }
1722
- function Oe(e, t) {
1723
- if (i) {
1722
+ function De(e, t) {
1723
+ if (a) {
1724
1724
  let n = { [e]: t };
1725
1725
  for (let e in n) Le(n, e) && Or(n[e]);
1726
1726
  t = n[e];
1727
1727
  }
1728
- l.value[e] = t, w.messages = l.value;
1728
+ u.value[e] = t, T.messages = u.value;
1729
1729
  }
1730
- function ke(e, t) {
1731
- l.value[e] = l.value[e] || {};
1730
+ function Oe(e, t) {
1731
+ u.value[e] = u.value[e] || {};
1732
1732
  let n = { [e]: t };
1733
- if (i) for (let e in n) Le(n, e) && Or(n[e]);
1734
- t = n[e], Ge(t, l.value[e]), w.messages = l.value;
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 Ae(e) {
1737
- return u.value[e] || {};
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
- u.value[e] = t, w.datetimeFormats = u.value, Yn(w, e, t);
1743
+ d.value[e] = we(d.value[e] || {}, t), T.datetimeFormats = d.value, Yn(T, e, t);
1741
1744
  }
1742
- function Me(e, t) {
1743
- u.value[e] = Te(u.value[e] || {}, t), w.datetimeFormats = u.value, Yn(w, e, t);
1745
+ function Me(e) {
1746
+ return f.value[e] || {};
1744
1747
  }
1745
- function Ne(e) {
1746
- return d.value[e] || {};
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
- d.value[e] = t, w.numberFormats = d.value, $n(w, e, t);
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 && ve && (ee(t.locale, (e) => {
1755
- o && (s.value = e, w.locale = e, Hn(w, s.value, c.value));
1756
- }), ee(t.fallbackLocale, (e) => {
1757
- o && (c.value = e, w.fallbackLocale = e, Hn(w, s.value, c.value));
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 k = {
1759
+ let Fe = {
1760
1760
  id: Ir,
1761
- locale: te,
1762
- fallbackLocale: ne,
1761
+ locale: D,
1762
+ fallbackLocale: te,
1763
1763
  get inheritLocale() {
1764
- return o;
1764
+ return s;
1765
1765
  },
1766
1766
  set inheritLocale(e) {
1767
- o = e, e && t && (s.value = t.locale.value, c.value = t.fallbackLocale.value, Hn(w, s.value, c.value));
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(l.value).sort();
1770
+ return Object.keys(u.value).sort();
1771
1771
  },
1772
- messages: re,
1772
+ messages: ne,
1773
1773
  get modifiers() {
1774
- return S;
1774
+ return C;
1775
1775
  },
1776
1776
  get pluralRules() {
1777
- return C || {};
1777
+ return w || {};
1778
1778
  },
1779
1779
  get isGlobal() {
1780
1780
  return r;
1781
1781
  },
1782
1782
  get missingWarn() {
1783
- return f;
1783
+ return p;
1784
1784
  },
1785
1785
  set missingWarn(e) {
1786
- f = e, w.missingWarn = f;
1786
+ p = e, T.missingWarn = p;
1787
1787
  },
1788
1788
  get fallbackWarn() {
1789
- return p;
1789
+ return h;
1790
1790
  },
1791
1791
  set fallbackWarn(e) {
1792
- p = e, w.fallbackWarn = p;
1792
+ h = e, T.fallbackWarn = h;
1793
1793
  },
1794
1794
  get fallbackRoot() {
1795
- return m;
1795
+ return g;
1796
1796
  },
1797
1797
  set fallbackRoot(e) {
1798
- m = e;
1798
+ g = e;
1799
1799
  },
1800
1800
  get fallbackFormat() {
1801
- return h;
1801
+ return _;
1802
1802
  },
1803
1803
  set fallbackFormat(e) {
1804
- h = e, w.fallbackFormat = h;
1804
+ _ = e, T.fallbackFormat = _;
1805
1805
  },
1806
1806
  get warnHtmlMessage() {
1807
- return b;
1807
+ return x;
1808
1808
  },
1809
1809
  set warnHtmlMessage(e) {
1810
- b = e, w.warnHtmlMessage = e;
1810
+ x = e, T.warnHtmlMessage = e;
1811
1811
  },
1812
1812
  get escapeParameter() {
1813
- return x;
1813
+ return S;
1814
1814
  },
1815
1815
  set escapeParameter(e) {
1816
- x = e, w.escapeParameter = e;
1816
+ S = e, T.escapeParameter = e;
1817
1817
  },
1818
- t: de,
1819
- getLocaleMessage: De,
1820
- setLocaleMessage: Oe,
1821
- mergeLocaleMessage: ke,
1822
- getPostTranslationHandler: E,
1823
- setPostTranslationHandler: se,
1824
- getMissingHandler: ce,
1825
- setMissingHandler: le,
1826
- [wr]: Se
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 k.datetimeFormats = ie, k.numberFormats = ae, k.rt = fe, k.te = we, k.tm = O, k.d = me, k.n = he, k.getDateTimeFormat = Ae, k.setDateTimeFormat = je, k.mergeDateTimeFormat = Me, k.getNumberFormat = Ne, k.setNumberFormat = Pe, k.mergeNumberFormat = Fe, k[Tr] = n, k[xr] = ye, k[Sr] = xe, k[Cr] = be, k;
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
- Te({
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) => D(e) || !isNaN(e)
1847
+ validator: (e) => O(e) || !isNaN(e)
1848
1848
  }
1849
- }, zr), Te({
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__*/ ye("global-vue-i18n");
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__*/ ye("");
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 = Te({}, e);
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)), fe() && ce(() => {
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 = Te({}, e);
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 = se(), r = n.run(() => Rr(e));
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 = s(e.isCE ? Br : e.appContext.app.__VUE_I18N_SYMBOL__);
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 we(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
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
- v(() => {}, t), o(() => {
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 = ie(r.value) ? {
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
- Te({
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
- }, ee;
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 && (ee = Lp(h.parent.content.cut(h.parentOffset, g.parentOffset), _.parent.content.cut(_.parentOffset, m.endA - _.start())))) {
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
- ee.type == "add" ? t.addMark(y, b, ee.mark) : t.removeMark(y, b, ee.mark), e.dispatch(t);
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), ee = h.from === 0 && h.to === o.doc.content.size, S = o.doc.content.content, C = S.length === 1 ? S[0] : null, w = ee && C && pg(C.type.name, d) ? {
11197
- node: C,
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, T = x ?? w, te = !!x && y.depth >= 1 && y.depth - x.depth <= 1, ne = !!w;
11201
- if ((te || ne) && T) {
11202
- if (T.node.type === p) return ee && ne ? c().command(({ tr: e, dispatch: t }) => {
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(T.node.type.name, d) && p.validContent(T.node.content)) return c().command(() => (a.setNodeMarkup(T.pos, p), !0)).command(() => Ng(a, p)).command(() => Pg(a, p)).run();
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 ee = Q(s, hx), S = 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(ee, e.domain, b), Q(ee, Ax, b), Q(ee, Ex, b), X(S, e.domain, b), X(S, t, b), Q(S, Ax, b);
14904
- let C = [
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 < C.length; e++) {
14915
- let [r, i] = C[e], a = Q(b, r);
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);
@@ -16586,13 +16586,13 @@ var Qw = {
16586
16586
  fill: "none",
16587
16587
  viewBox: "0 0 54.64 54.64"
16588
16588
  };
16589
- function $w(e, t) {
16590
- return _(), E("svg", Qw, [...t[0] ||= [i("path", {
16589
+ function $w(t, n) {
16590
+ return y(), e("svg", Qw, [...n[0] ||= [r("path", {
16591
16591
  stroke: "currentColor",
16592
16592
  "stroke-linejoin": "round",
16593
16593
  "stroke-width": "2",
16594
16594
  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), i("path", {
16595
+ }, null, -1), r("path", {
16596
16596
  stroke: "currentColor",
16597
16597
  "stroke-linejoin": "round",
16598
16598
  "stroke-width": "2",
@@ -16606,8 +16606,8 @@ var eT = { render: $w }, tT = {
16606
16606
  fill: "none",
16607
16607
  viewBox: "0 0 16 16"
16608
16608
  };
16609
- function nT(e, t) {
16610
- return _(), E("svg", tT, [...t[0] ||= [i("path", {
16609
+ function nT(t, n) {
16610
+ return y(), e("svg", tT, [...n[0] ||= [r("path", {
16611
16611
  stroke: "currentColor",
16612
16612
  "stroke-linecap": "round",
16613
16613
  "stroke-linejoin": "round",
@@ -16622,8 +16622,8 @@ var rT = { render: nT }, iT = {
16622
16622
  fill: "none",
16623
16623
  viewBox: "0 0 16 16"
16624
16624
  };
16625
- function aT(e, t) {
16626
- return _(), E("svg", iT, [...t[0] ||= [i("path", {
16625
+ function aT(t, n) {
16626
+ return y(), e("svg", iT, [...n[0] ||= [r("path", {
16627
16627
  stroke: "currentColor",
16628
16628
  "stroke-linecap": "round",
16629
16629
  "stroke-linejoin": "round",
@@ -16638,8 +16638,8 @@ var oT = { render: aT }, sT = {
16638
16638
  fill: "none",
16639
16639
  viewBox: "0 0 40 40"
16640
16640
  };
16641
- function cT(e, t) {
16642
- return _(), E("svg", sT, [...t[0] ||= [i("rect", {
16641
+ function cT(t, n) {
16642
+ return y(), e("svg", sT, [...n[0] ||= [r("rect", {
16643
16643
  width: "28",
16644
16644
  height: "14",
16645
16645
  x: "6",
@@ -16648,7 +16648,7 @@ function cT(e, t) {
16648
16648
  "stroke-linejoin": "round",
16649
16649
  "stroke-width": "1.2",
16650
16650
  rx: "5"
16651
- }, null, -1), i("path", {
16651
+ }, null, -1), r("path", {
16652
16652
  stroke: "currentColor",
16653
16653
  "stroke-linecap": "round",
16654
16654
  "stroke-width": "1.2",
@@ -16662,8 +16662,8 @@ var lT = { render: cT }, uT = {
16662
16662
  fill: "none",
16663
16663
  viewBox: "0 0 16 16"
16664
16664
  };
16665
- function dT(e, t) {
16666
- return _(), E("svg", uT, [...t[0] ||= [i("path", {
16665
+ function dT(t, n) {
16666
+ return y(), e("svg", uT, [...n[0] ||= [r("path", {
16667
16667
  stroke: "currentColor",
16668
16668
  "stroke-linecap": "round",
16669
16669
  "stroke-linejoin": "round",
@@ -16678,8 +16678,8 @@ var fT = { render: dT }, pT = {
16678
16678
  fill: "none",
16679
16679
  viewBox: "0 0 16 16"
16680
16680
  };
16681
- function mT(e, t) {
16682
- return _(), E("svg", pT, [...t[0] ||= [i("path", {
16681
+ function mT(t, n) {
16682
+ return y(), e("svg", pT, [...n[0] ||= [r("path", {
16683
16683
  stroke: "currentColor",
16684
16684
  "stroke-linecap": "round",
16685
16685
  "stroke-width": "1.2",
@@ -16693,8 +16693,8 @@ var hT = { render: mT }, gT = {
16693
16693
  fill: "none",
16694
16694
  viewBox: "0 0 40 40"
16695
16695
  };
16696
- function _T(e, t) {
16697
- return _(), E("svg", gT, [...t[0] ||= [i("rect", {
16696
+ function _T(t, n) {
16697
+ return y(), e("svg", gT, [...n[0] ||= [r("rect", {
16698
16698
  width: "28",
16699
16699
  height: "22",
16700
16700
  x: "6",
@@ -16703,7 +16703,7 @@ function _T(e, t) {
16703
16703
  "stroke-linejoin": "round",
16704
16704
  "stroke-width": "1.2",
16705
16705
  rx: "3"
16706
- }, null, -1), i("path", {
16706
+ }, null, -1), r("path", {
16707
16707
  stroke: "currentColor",
16708
16708
  "stroke-linecap": "round",
16709
16709
  "stroke-width": "1.2",
@@ -16717,8 +16717,8 @@ var vT = { render: _T }, yT = {
16717
16717
  fill: "none",
16718
16718
  viewBox: "0 0 16 16"
16719
16719
  };
16720
- function bT(e, t) {
16721
- return _(), E("svg", yT, [...t[0] ||= [i("rect", {
16720
+ function bT(t, n) {
16721
+ return y(), e("svg", yT, [...n[0] ||= [r("rect", {
16722
16722
  width: "7.33",
16723
16723
  height: "7.67",
16724
16724
  x: "6",
@@ -16727,7 +16727,7 @@ function bT(e, t) {
16727
16727
  "stroke-linejoin": "round",
16728
16728
  "stroke-width": "1.2",
16729
16729
  rx: "1.33"
16730
- }, null, -1), i("path", {
16730
+ }, null, -1), r("path", {
16731
16731
  stroke: "currentColor",
16732
16732
  "stroke-linecap": "round",
16733
16733
  "stroke-linejoin": "round",
@@ -16742,8 +16742,8 @@ var xT = { render: bT }, ST = {
16742
16742
  fill: "none",
16743
16743
  viewBox: "0 0 16 16"
16744
16744
  };
16745
- function CT(e, t) {
16746
- return _(), E("svg", ST, [...t[0] ||= [i("rect", {
16745
+ function CT(t, n) {
16746
+ return y(), e("svg", ST, [...n[0] ||= [r("rect", {
16747
16747
  width: "13",
16748
16748
  height: "8.5",
16749
16749
  x: "1.5",
@@ -16752,7 +16752,7 @@ function CT(e, t) {
16752
16752
  "stroke-linejoin": "round",
16753
16753
  "stroke-width": "1.2",
16754
16754
  rx: "1.5"
16755
- }, null, -1), i("path", {
16755
+ }, null, -1), r("path", {
16756
16756
  stroke: "currentColor",
16757
16757
  "stroke-linecap": "round",
16758
16758
  "stroke-width": "1.2",
@@ -16766,13 +16766,13 @@ var wT = { render: CT }, TT = {
16766
16766
  fill: "none",
16767
16767
  viewBox: "0 0 20 20"
16768
16768
  };
16769
- function ET(e, t) {
16770
- return _(), E("svg", TT, [...t[0] ||= [i("g", {
16769
+ function ET(t, n) {
16770
+ return y(), e("svg", TT, [...n[0] ||= [r("g", {
16771
16771
  stroke: "currentColor",
16772
16772
  "stroke-linecap": "round",
16773
16773
  "stroke-linejoin": "round",
16774
16774
  "stroke-width": ".7"
16775
- }, [i("path", {
16775
+ }, [r("path", {
16776
16776
  "stroke-width": ".595",
16777
16777
  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
16778
  })], -1)]]);
@@ -16784,12 +16784,12 @@ var DT = { render: ET }, OT = {
16784
16784
  fill: "none",
16785
16785
  viewBox: "0 0 16 16"
16786
16786
  };
16787
- function kT(e, t) {
16788
- return _(), E("svg", OT, [...t[0] ||= [i("path", {
16787
+ function kT(t, n) {
16788
+ return y(), e("svg", OT, [...n[0] ||= [r("path", {
16789
16789
  stroke: "currentColor",
16790
16790
  "stroke-width": "1.2",
16791
16791
  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), i("path", {
16792
+ }, null, -1), r("path", {
16793
16793
  stroke: "currentColor",
16794
16794
  "stroke-linecap": "round",
16795
16795
  "stroke-linejoin": "round",
@@ -16804,8 +16804,8 @@ var AT = { render: kT }, jT = {
16804
16804
  fill: "none",
16805
16805
  viewBox: "0 0 40 40"
16806
16806
  };
16807
- function MT(e, t) {
16808
- return _(), E("svg", jT, [...t[0] ||= [i("path", {
16807
+ function MT(t, n) {
16808
+ return y(), e("svg", jT, [...n[0] ||= [r("path", {
16809
16809
  stroke: "currentColor",
16810
16810
  "stroke-linecap": "round",
16811
16811
  "stroke-linejoin": "round",
@@ -16820,8 +16820,8 @@ var NT = { render: MT }, PT = {
16820
16820
  fill: "none",
16821
16821
  viewBox: "0 0 40 40"
16822
16822
  };
16823
- function FT(e, t) {
16824
- return _(), E("svg", PT, [...t[0] ||= [i("rect", {
16823
+ function FT(t, n) {
16824
+ return y(), e("svg", PT, [...n[0] ||= [r("rect", {
16825
16825
  width: "28",
16826
16826
  height: "22",
16827
16827
  x: "6",
@@ -16830,7 +16830,7 @@ function FT(e, t) {
16830
16830
  "stroke-linejoin": "round",
16831
16831
  "stroke-width": "1.2",
16832
16832
  rx: "3"
16833
- }, null, -1), i("path", {
16833
+ }, null, -1), r("path", {
16834
16834
  stroke: "currentColor",
16835
16835
  "stroke-linecap": "round",
16836
16836
  "stroke-linejoin": "round",
@@ -16845,9 +16845,9 @@ var IT = { render: FT }, LT = {
16845
16845
  fill: "none",
16846
16846
  viewBox: "0 0 40 40"
16847
16847
  };
16848
- function RT(e, t) {
16849
- return _(), E("svg", LT, [...t[0] ||= [
16850
- i("rect", {
16848
+ function RT(t, n) {
16849
+ return y(), e("svg", LT, [...n[0] ||= [
16850
+ r("rect", {
16851
16851
  width: "28",
16852
16852
  height: "22",
16853
16853
  x: "6",
@@ -16857,21 +16857,21 @@ function RT(e, t) {
16857
16857
  "stroke-width": "1.2",
16858
16858
  rx: "3"
16859
16859
  }, null, -1),
16860
- i("circle", {
16860
+ r("circle", {
16861
16861
  cx: "14",
16862
16862
  cy: "16",
16863
16863
  r: "2.5",
16864
16864
  stroke: "currentColor",
16865
16865
  "stroke-width": "1.2"
16866
16866
  }, null, -1),
16867
- i("path", {
16867
+ r("path", {
16868
16868
  stroke: "currentColor",
16869
16869
  "stroke-linecap": "round",
16870
16870
  "stroke-linejoin": "round",
16871
16871
  "stroke-width": "1.2",
16872
16872
  d: "m8 28.5 8-8 5.5 5.5"
16873
16873
  }, null, -1),
16874
- i("path", {
16874
+ r("path", {
16875
16875
  stroke: "currentColor",
16876
16876
  "stroke-linecap": "round",
16877
16877
  "stroke-linejoin": "round",
@@ -16887,8 +16887,8 @@ var zT = { render: RT }, BT = {
16887
16887
  fill: "none",
16888
16888
  viewBox: "0 0 16 16"
16889
16889
  };
16890
- function VT(e, t) {
16891
- return _(), E("svg", BT, [...t[0] ||= [i("path", {
16890
+ function VT(t, n) {
16891
+ return y(), e("svg", BT, [...n[0] ||= [r("path", {
16892
16892
  fill: "currentColor",
16893
16893
  "fill-rule": "evenodd",
16894
16894
  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",
@@ -16902,13 +16902,13 @@ var HT = { render: VT }, UT = {
16902
16902
  fill: "none",
16903
16903
  viewBox: "0 0 16 16"
16904
16904
  };
16905
- function WT(e, t) {
16906
- return _(), E("svg", UT, [...t[0] ||= [i("path", {
16905
+ function WT(t, n) {
16906
+ return y(), e("svg", UT, [...n[0] ||= [r("path", {
16907
16907
  stroke: "currentColor",
16908
16908
  "stroke-linecap": "round",
16909
16909
  "stroke-width": "1.2",
16910
16910
  d: "m6.5 9.5 3-3"
16911
- }, null, -1), i("path", {
16911
+ }, null, -1), r("path", {
16912
16912
  stroke: "currentColor",
16913
16913
  "stroke-linecap": "round",
16914
16914
  "stroke-linejoin": "round",
@@ -16923,9 +16923,9 @@ var GT = { render: WT }, KT = {
16923
16923
  fill: "none",
16924
16924
  viewBox: "0 0 16 16"
16925
16925
  };
16926
- function qT(e, t) {
16927
- return _(), E("svg", KT, [...t[0] ||= [
16928
- i("rect", {
16926
+ function qT(t, n) {
16927
+ return y(), e("svg", KT, [...n[0] ||= [
16928
+ r("rect", {
16929
16929
  width: "9.33",
16930
16930
  height: "7",
16931
16931
  x: "3.33",
@@ -16935,14 +16935,14 @@ function qT(e, t) {
16935
16935
  "stroke-width": "1.2",
16936
16936
  rx: "1.33"
16937
16937
  }, null, -1),
16938
- i("path", {
16938
+ r("path", {
16939
16939
  stroke: "currentColor",
16940
16940
  "stroke-linecap": "round",
16941
16941
  "stroke-linejoin": "round",
16942
16942
  "stroke-width": "1.2",
16943
16943
  d: "M5.33 7V5c0-1.47 1.2-2.67 2.67-2.67s2.67 1.2 2.67 2.67v2"
16944
16944
  }, null, -1),
16945
- i("path", {
16945
+ r("path", {
16946
16946
  stroke: "currentColor",
16947
16947
  "stroke-linecap": "round",
16948
16948
  "stroke-width": "1.2",
@@ -16957,8 +16957,8 @@ var JT = { render: qT }, YT = {
16957
16957
  fill: "none",
16958
16958
  viewBox: "0 0 16 16"
16959
16959
  };
16960
- function XT(e, t) {
16961
- return _(), E("svg", YT, [...t[0] ||= [i("rect", {
16960
+ function XT(t, n) {
16961
+ return y(), e("svg", YT, [...n[0] ||= [r("rect", {
16962
16962
  width: "7",
16963
16963
  height: "13",
16964
16964
  x: "4.5",
@@ -16967,7 +16967,7 @@ function XT(e, t) {
16967
16967
  "stroke-linejoin": "round",
16968
16968
  "stroke-width": "1.2",
16969
16969
  rx: "1.5"
16970
- }, null, -1), i("path", {
16970
+ }, null, -1), r("path", {
16971
16971
  stroke: "currentColor",
16972
16972
  "stroke-linecap": "round",
16973
16973
  "stroke-width": "1.2",
@@ -16981,8 +16981,8 @@ var ZT = { render: XT }, QT = {
16981
16981
  fill: "none",
16982
16982
  viewBox: "0 0 40 40"
16983
16983
  };
16984
- function $T(e, t) {
16985
- return _(), E("svg", QT, [...t[0] ||= [i("path", {
16984
+ function $T(t, n) {
16985
+ return y(), e("svg", QT, [...n[0] ||= [r("path", {
16986
16986
  stroke: "currentColor",
16987
16987
  "stroke-linecap": "round",
16988
16988
  "stroke-linejoin": "round",
@@ -16997,21 +16997,21 @@ var eE = { render: $T }, tE = {
16997
16997
  fill: "none",
16998
16998
  viewBox: "0 0 18.092 18.419"
16999
16999
  };
17000
- function nE(e, t) {
17001
- return _(), E("svg", tE, [...t[0] ||= [
17002
- i("path", {
17000
+ function nE(t, n) {
17001
+ return y(), e("svg", tE, [...n[0] ||= [
17002
+ r("path", {
17003
17003
  stroke: "currentColor",
17004
17004
  "stroke-linejoin": "round",
17005
17005
  "stroke-width": "1.2",
17006
17006
  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
17007
  }, null, -1),
17008
- i("path", {
17008
+ r("path", {
17009
17009
  stroke: "currentColor",
17010
17010
  "stroke-linejoin": "round",
17011
17011
  "stroke-width": "1.2",
17012
17012
  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
17013
  }, null, -1),
17014
- i("path", {
17014
+ r("path", {
17015
17015
  stroke: "currentColor",
17016
17016
  "stroke-linecap": "round",
17017
17017
  "stroke-linejoin": "round",
@@ -17027,13 +17027,13 @@ var rE = { render: nE }, iE = {
17027
17027
  fill: "none",
17028
17028
  viewBox: "0 0 40 40"
17029
17029
  };
17030
- function aE(e, t) {
17031
- return _(), E("svg", iE, [...t[0] ||= [i("path", {
17030
+ function aE(t, n) {
17031
+ return y(), e("svg", iE, [...n[0] ||= [r("path", {
17032
17032
  stroke: "currentColor",
17033
17033
  "stroke-linecap": "round",
17034
17034
  "stroke-width": "1.2",
17035
17035
  d: "M8 9h24M8 31h24M20 14v12"
17036
- }, null, -1), i("path", {
17036
+ }, null, -1), r("path", {
17037
17037
  stroke: "currentColor",
17038
17038
  "stroke-linecap": "round",
17039
17039
  "stroke-linejoin": "round",
@@ -17048,8 +17048,8 @@ var oE = { render: aE }, sE = {
17048
17048
  fill: "none",
17049
17049
  viewBox: "0 0 16 16"
17050
17050
  };
17051
- function cE(e, t) {
17052
- return _(), E("svg", sE, [...t[0] ||= [i("path", {
17051
+ function cE(t, n) {
17052
+ return y(), e("svg", sE, [...n[0] ||= [r("path", {
17053
17053
  stroke: "currentColor",
17054
17054
  "stroke-linecap": "round",
17055
17055
  "stroke-linejoin": "round",
@@ -17064,28 +17064,28 @@ var lE = { render: cE }, uE = {
17064
17064
  fill: "none",
17065
17065
  viewBox: "0 0 16 16"
17066
17066
  };
17067
- function dE(e, t) {
17068
- return _(), E("svg", uE, [...t[0] ||= [
17069
- i("path", {
17067
+ function dE(t, n) {
17068
+ return y(), e("svg", uE, [...n[0] ||= [
17069
+ r("path", {
17070
17070
  stroke: "currentColor",
17071
17071
  "stroke-linecap": "round",
17072
17072
  "stroke-width": "1.2",
17073
17073
  d: "M2.67 4.33h10.66"
17074
17074
  }, null, -1),
17075
- i("path", {
17075
+ r("path", {
17076
17076
  stroke: "currentColor",
17077
17077
  "stroke-linejoin": "round",
17078
17078
  "stroke-width": "1.2",
17079
17079
  d: "M6 4.33v-1c0-.55.45-1 1-1h2c.55 0 1 .45 1 1v1"
17080
17080
  }, null, -1),
17081
- i("path", {
17081
+ r("path", {
17082
17082
  stroke: "currentColor",
17083
17083
  "stroke-linecap": "round",
17084
17084
  "stroke-linejoin": "round",
17085
17085
  "stroke-width": "1.2",
17086
17086
  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
17087
  }, null, -1),
17088
- i("path", {
17088
+ r("path", {
17089
17089
  stroke: "currentColor",
17090
17090
  "stroke-linecap": "round",
17091
17091
  "stroke-width": "1.2",
@@ -17100,21 +17100,21 @@ var fE = { render: dE }, pE = {
17100
17100
  fill: "none",
17101
17101
  viewBox: "0 0 20 20"
17102
17102
  };
17103
- function mE(e, t) {
17104
- return _(), E("svg", pE, [...t[0] ||= [
17105
- i("path", {
17103
+ function mE(t, n) {
17104
+ return y(), e("svg", pE, [...n[0] ||= [
17105
+ r("path", {
17106
17106
  stroke: "currentColor",
17107
17107
  "stroke-linejoin": "round",
17108
17108
  "stroke-width": "1.2",
17109
17109
  d: "M10 2.2 1.8 17h16.4z"
17110
17110
  }, null, -1),
17111
- i("path", {
17111
+ r("path", {
17112
17112
  stroke: "currentColor",
17113
17113
  "stroke-linecap": "round",
17114
17114
  "stroke-width": "1.4",
17115
17115
  d: "M10 8v4"
17116
17116
  }, null, -1),
17117
- i("circle", {
17117
+ r("circle", {
17118
17118
  cx: "10",
17119
17119
  cy: "14.4",
17120
17120
  r: ".9",
@@ -17122,7 +17122,7 @@ function mE(e, t) {
17122
17122
  }, null, -1)
17123
17123
  ]]);
17124
17124
  }
17125
- var hE = { render: mE }, gE = /* @__PURE__ */ d({
17125
+ var hE = { render: mE }, gE = /* @__PURE__ */ p({
17126
17126
  __name: "AppIcon",
17127
17127
  props: {
17128
17128
  name: { type: String },
@@ -17157,10 +17157,10 @@ var hE = { render: mE }, gE = /* @__PURE__ */ d({
17157
17157
  bookmark: rT,
17158
17158
  heading: NT,
17159
17159
  lock: JT
17160
- }, i = g(() => n[t.name]), a = g(() => typeof t.size == "number" ? `${t.size}px` : t.size);
17161
- return (e, t) => (_(), r(de(i.value), {
17160
+ }, r = i(() => n[t.name]), a = i(() => typeof t.size == "number" ? `${t.size}px` : t.size);
17161
+ return (e, t) => (y(), f(c(r.value), {
17162
17162
  class: "app-icon",
17163
- style: re({
17163
+ style: te({
17164
17164
  width: a.value,
17165
17165
  height: a.value,
17166
17166
  display: "block",
@@ -17171,8 +17171,8 @@ var hE = { render: mE }, gE = /* @__PURE__ */ d({
17171
17171
  }
17172
17172
  }), _E = Symbol("errorDialog");
17173
17173
  function vE() {
17174
- let e = oe(null), t = {
17175
- message: g(() => e.value),
17174
+ let e = fe(null), t = {
17175
+ message: i(() => e.value),
17176
17176
  show: (t) => {
17177
17177
  e.value = t;
17178
17178
  },
@@ -17180,10 +17180,10 @@ function vE() {
17180
17180
  e.value = null;
17181
17181
  }
17182
17182
  };
17183
- return y(_E, t), t;
17183
+ return o(_E, t), t;
17184
17184
  }
17185
17185
  function yE() {
17186
- return s(_E);
17186
+ return u(_E);
17187
17187
  }
17188
17188
  //#endregion
17189
17189
  //#region src/i18n/useAppI18n.ts
@@ -17192,8 +17192,14 @@ function bE() {
17192
17192
  }
17193
17193
  //#endregion
17194
17194
  //#region src/providerKeys.ts
17195
- var xE = Symbol("editorConfig"), SE = Symbol("mergeTags"), CE = Symbol("brand"), wE = Symbol("blockStyles"), TE = Symbol("permission"), EE = Symbol("savedBlocks"), DE = Symbol("blockPlugins"), OE = Symbol("imageSearch"), kE = 8;
17196
- function AE(e, t, n = kE) {
17195
+ var xE = Symbol("editorConfig"), SE = Symbol("mergeTags"), CE = Symbol("brand"), wE = Symbol("blockStyles"), TE = Symbol("permission"), EE = Symbol("savedBlocks"), DE = Symbol("blockPlugins"), OE = Symbol("imageSearch");
17196
+ //#endregion
17197
+ //#region src/popoverPlacement.ts
17198
+ function kE(e, t, n) {
17199
+ return Math.max(n.top + t, Math.min(e, n.bottom));
17200
+ }
17201
+ var AE = 8;
17202
+ function jE(e, t, n = AE) {
17197
17203
  let r = t - e.bottom - n, i = e.top - n;
17198
17204
  return r >= i ? {
17199
17205
  side: "below",
@@ -17207,15 +17213,15 @@ function AE(e, t, n = kE) {
17207
17213
  }
17208
17214
  //#endregion
17209
17215
  //#region src/components/CheckboxOption.vue?vue&type=script&setup=true&lang.ts
17210
- var jE = { class: "checkbox-option" }, ME = {
17216
+ var ME = { class: "checkbox-option" }, NE = {
17211
17217
  "aria-hidden": "true",
17212
17218
  class: "box"
17213
- }, NE = {
17219
+ }, PE = {
17214
17220
  key: 0,
17215
17221
  class: "mark"
17216
- }, PE = /*#__PURE__*/ Bw(/* @__PURE__ */ d({
17222
+ }, FE = /*#__PURE__*/ Bw(/* @__PURE__ */ p({
17217
17223
  __name: "CheckboxOption",
17218
- props: /*@__PURE__*/ u({ label: { type: String } }, {
17224
+ props: /*@__PURE__*/ h({ label: { type: String } }, {
17219
17225
  modelValue: {
17220
17226
  type: Boolean,
17221
17227
  required: !0
@@ -17223,22 +17229,22 @@ var jE = { class: "checkbox-option" }, ME = {
17223
17229
  modelModifiers: {}
17224
17230
  }),
17225
17231
  emits: ["update:modelValue"],
17226
- setup(e) {
17227
- let n = x(e, "modelValue");
17228
- return (r, a) => (_(), E("label", jE, [
17229
- w(i("input", {
17232
+ setup(t) {
17233
+ let n = b(t, "modelValue");
17234
+ return (i, a) => (y(), e("label", ME, [
17235
+ de(r("input", {
17230
17236
  "onUpdate:modelValue": a[0] ||= (e) => n.value = e,
17231
17237
  class: "checkbox-input",
17232
17238
  type: "checkbox"
17233
- }, null, 512), [[te, n.value]]),
17234
- i("span", ME, [n.value ? (_(), E("span", NE)) : f("", !0)]),
17235
- t(" " + ne(e.label), 1)
17239
+ }, null, 512), [[C, n.value]]),
17240
+ r("span", NE, [n.value ? (y(), e("span", PE)) : ie("", !0)]),
17241
+ re(" " + w(t.label), 1)
17236
17242
  ]));
17237
17243
  }
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"]]), FE = ["for"], IE = { class: "field-shell" }, LE = {
17244
+ }), [["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"]]), IE = ["for"], LE = { class: "field-shell" }, RE = {
17239
17245
  key: 0,
17240
17246
  class: "field-trailing"
17241
- }, RE = /*#__PURE__*/ Bw(/* @__PURE__ */ d({
17247
+ }, zE = /*#__PURE__*/ Bw(/* @__PURE__ */ p({
17242
17248
  __name: "FieldShell",
17243
17249
  props: {
17244
17250
  disabled: {
@@ -17254,17 +17260,17 @@ var jE = { class: "checkbox-option" }, ME = {
17254
17260
  type: String
17255
17261
  }
17256
17262
  },
17257
- setup(e) {
17258
- return (t, n) => (_(), E("div", { class: ue(["field-wrap", { "is-disabled": e.disabled }]) }, [e.label ? (_(), E("label", {
17263
+ setup(t) {
17264
+ return (n, i) => (y(), e("div", { class: oe(["field-wrap", { "is-disabled": t.disabled }]) }, [t.label ? (y(), e("label", {
17259
17265
  key: 0,
17260
17266
  class: "field-label",
17261
- for: e.labelFor
17262
- }, ne(e.label), 9, FE)) : f("", !0), i("div", IE, [l(t.$slots, "default", {}, void 0, !0), t.$slots.trailing ? (_(), E("div", LE, [l(t.$slots, "trailing", {}, void 0, !0)])) : f("", !0)])], 2));
17267
+ for: t.labelFor
17268
+ }, w(t.label), 9, IE)) : ie("", !0), r("div", LE, [ce(n.$slots, "default", {}, void 0, !0), n.$slots.trailing ? (y(), e("div", RE, [ce(n.$slots, "trailing", {}, void 0, !0)])) : ie("", !0)])], 2));
17263
17269
  }
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"]]), zE = ["id", "disabled"], BE = /*#__PURE__*/ Bw(/* @__PURE__ */ d({
17270
+ }), [["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"]]), BE = ["id", "disabled"], VE = /*#__PURE__*/ Bw(/* @__PURE__ */ p({
17265
17271
  inheritAttrs: !1,
17266
17272
  __name: "TextInput",
17267
- props: /*@__PURE__*/ u({
17273
+ props: /*@__PURE__*/ h({
17268
17274
  disabled: {
17269
17275
  type: Boolean,
17270
17276
  default: !1
@@ -17278,25 +17284,25 @@ var jE = { class: "checkbox-option" }, ME = {
17278
17284
  modelModifiers: {}
17279
17285
  }),
17280
17286
  emits: ["update:modelValue"],
17281
- setup(t, { expose: n }) {
17282
- let a = x(t, "modelValue"), o = t, s = c(), l = b("input");
17283
- return n({
17284
- focus: () => l.value?.focus(),
17285
- select: () => l.value?.select()
17286
- }), (n, c) => (_(), r(RE, {
17287
- disabled: t.disabled,
17288
- label: o.label,
17289
- "label-for": T(s)
17287
+ setup(e, { expose: t }) {
17288
+ let n = b(e, "modelValue"), i = e, a = x(), o = S("input");
17289
+ return t({
17290
+ focus: () => o.value?.focus(),
17291
+ select: () => o.value?.select()
17292
+ }), (t, s) => (y(), f(zE, {
17293
+ disabled: e.disabled,
17294
+ label: i.label,
17295
+ "label-for": se(a)
17290
17296
  }, {
17291
- default: e(() => [w(i("input", m({
17292
- id: T(s),
17297
+ default: ee(() => [de(r("input", he({
17298
+ id: se(a),
17293
17299
  ref_key: "input",
17294
- ref: l,
17295
- "onUpdate:modelValue": c[0] ||= (e) => a.value = e,
17300
+ ref: o,
17301
+ "onUpdate:modelValue": s[0] ||= (e) => n.value = e,
17296
17302
  class: "field-input",
17297
17303
  type: "text",
17298
- disabled: t.disabled
17299
- }, n.$attrs), null, 16, zE), [[me, a.value]])]),
17304
+ disabled: e.disabled
17305
+ }, t.$attrs), null, 16, BE), [[me, n.value]])]),
17300
17306
  _: 1
17301
17307
  }, 8, [
17302
17308
  "disabled",
@@ -17304,29 +17310,29 @@ var jE = { class: "checkbox-option" }, ME = {
17304
17310
  "label-for"
17305
17311
  ]));
17306
17312
  }
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"]]), VE = {
17313
+ }), [["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"]]), HE = {
17308
17314
  key: 0,
17309
17315
  class: "picker-label"
17310
- }, HE = [
17316
+ }, UE = [
17311
17317
  "popovertarget",
17312
17318
  "aria-expanded",
17313
17319
  "aria-label"
17314
- ], UE = {
17320
+ ], WE = {
17315
17321
  key: 0,
17316
17322
  class: "value"
17317
- }, WE = ["id", "aria-label"], GE = ["aria-label"], KE = [
17323
+ }, GE = ["id", "aria-label"], KE = ["id"], qE = ["aria-label", "aria-labelledby"], JE = [
17318
17324
  "aria-checked",
17319
17325
  "aria-label",
17320
17326
  "tabindex",
17321
17327
  "onClick",
17322
17328
  "onKeydown"
17323
- ], qE = [
17329
+ ], YE = [
17324
17330
  "aria-label",
17325
17331
  "aria-valuenow",
17326
17332
  "aria-valuetext"
17327
- ], JE = ["aria-label", "aria-valuenow"], YE = /*#__PURE__*/ Bw(/* @__PURE__ */ d({
17333
+ ], XE = ["aria-label", "aria-valuenow"], ZE = /*#__PURE__*/ Bw(/* @__PURE__ */ p({
17328
17334
  __name: "ColorPicker",
17329
- props: /*@__PURE__*/ u({
17335
+ props: /*@__PURE__*/ h({
17330
17336
  label: { type: String },
17331
17337
  allowTransparent: {
17332
17338
  type: Boolean,
@@ -17335,21 +17341,38 @@ var jE = { class: "checkbox-option" }, ME = {
17335
17341
  compact: {
17336
17342
  type: Boolean,
17337
17343
  default: !1
17344
+ },
17345
+ keepFocus: {
17346
+ type: Boolean,
17347
+ default: !1
17338
17348
  }
17339
17349
  }, {
17340
17350
  modelValue: { required: !0 },
17341
17351
  modelModifiers: {}
17342
17352
  }),
17343
17353
  emits: ["update:modelValue"],
17344
- setup(e) {
17345
- let t = x(e, "modelValue"), { t: o } = bE(), l = s(CE, void 0), u = g(() => l?.value.colors ?? []), d = g(() => u.value.length > 0), p = c(), m = oe(!1), v = oe(0), y = oe(0), S = oe(0), C = oe({
17354
+ setup(t) {
17355
+ let a = b(t, "modelValue"), { t: o } = bE(), s = u(CE, void 0), c = i(() => {
17356
+ let e = s?.value;
17357
+ return [{
17358
+ key: "global",
17359
+ label: e?.colorsLabel ?? o("colorPicker.palette"),
17360
+ named: e?.colorsLabel !== void 0,
17361
+ colors: e?.colors ?? []
17362
+ }, {
17363
+ key: "local",
17364
+ label: e?.localColorsLabel ?? o("colorPicker.localPalette"),
17365
+ named: e?.localColorsLabel !== void 0,
17366
+ colors: e?.localColors ?? []
17367
+ }].filter((e) => e.colors.length > 0);
17368
+ }), 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({
17346
17369
  r: 0,
17347
17370
  g: 0,
17348
17371
  b: 0
17349
- }), w = oe(_i(C.value)), te = oe(!1), ie = b("trigger"), ae = b("popover"), se = b("svArea");
17350
- ee(t, (e) => {
17372
+ }), D = fe(_i(ee.value)), ne = fe(!1), re = S("trigger"), ae = S("popover"), ce = S("svArea");
17373
+ m(a, (e) => {
17351
17374
  if (e.type === "transparent") {
17352
- te.value || (w.value = _i(C.value));
17375
+ ne.value || (D.value = _i(ee.value));
17353
17376
  return;
17354
17377
  }
17355
17378
  let t = {
@@ -17357,65 +17380,65 @@ var jE = { class: "checkbox-option" }, ME = {
17357
17380
  g: e.g,
17358
17381
  b: e.b
17359
17382
  };
17360
- C.value = t, te.value || (w.value = _i(t));
17383
+ ee.value = t, ne.value || (D.value = _i(t));
17361
17384
  let n = hi({
17362
- h: v.value,
17363
- s: y.value,
17364
- v: S.value
17385
+ h: C.value,
17386
+ s: T.value,
17387
+ v: E.value
17365
17388
  });
17366
17389
  if (n.r === t.r && n.g === t.g && n.b === t.b) return;
17367
17390
  let r = mi(t);
17368
- y.value = r.s, S.value = r.v, r.s > 0 && (v.value = r.h);
17391
+ T.value = r.s, E.value = r.v, r.s > 0 && (C.value = r.h);
17369
17392
  }, { immediate: !0 });
17370
- function ce() {
17371
- t.value = {
17393
+ function le() {
17394
+ a.value = {
17372
17395
  type: "color",
17373
17396
  ...hi({
17374
- h: v.value,
17375
- s: y.value,
17376
- v: S.value
17397
+ h: C.value,
17398
+ s: T.value,
17399
+ v: E.value
17377
17400
  })
17378
17401
  };
17379
17402
  }
17380
- let le = g(() => t.value.type === "transparent"), de = g(() => bi(t.value)), fe = g(() => le.value ? o("colorPicker.transparent") : xi(t.value) ?? ""), pe = g(() => le.value ? o("colorPicker.transparentValue") : o("colorPicker.colorValue", { value: xi(t.value) ?? "" })), me = g(() => e.label ? `${e.label}: ${pe.value}` : pe.value), he = g(() => `hsl(${v.value}, 100%, 50%)`), ge = g(() => _i(hi({
17381
- h: v.value,
17382
- s: y.value,
17383
- v: S.value
17384
- }))), _e = g(() => o("colorPicker.svValue", {
17385
- s: Math.round(y.value * 100),
17386
- v: Math.round(S.value * 100),
17387
- hex: ge.value
17388
- })), ve = null, ye = null;
17389
- function be() {
17390
- ve && window.removeEventListener("pointermove", ve), ye && (window.removeEventListener("pointerup", ye), window.removeEventListener("pointercancel", ye)), ve = null, ye = null;
17403
+ 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({
17404
+ h: C.value,
17405
+ s: T.value,
17406
+ v: E.value
17407
+ }))), ve = i(() => o("colorPicker.svValue", {
17408
+ s: Math.round(T.value * 100),
17409
+ v: Math.round(E.value * 100),
17410
+ hex: _e.value
17411
+ })), ye = null, be = null;
17412
+ function O() {
17413
+ ye && window.removeEventListener("pointermove", ye), be && (window.removeEventListener("pointerup", be), window.removeEventListener("pointercancel", be)), ye = null, be = null;
17391
17414
  }
17392
17415
  function xe(e) {
17393
- be();
17416
+ O();
17394
17417
  let t = (t) => e(t);
17395
- ve = t, ye = be, window.addEventListener("pointermove", t), window.addEventListener("pointerup", be), window.addEventListener("pointercancel", be);
17418
+ ye = t, be = O, window.addEventListener("pointermove", t), window.addEventListener("pointerup", O), window.addEventListener("pointercancel", O);
17396
17419
  }
17397
- function D(e) {
17420
+ function Se(e) {
17398
17421
  e.preventDefault();
17399
- let t = se.value;
17422
+ let t = ce.value;
17400
17423
  if (!t) return;
17401
17424
  let n = (e) => {
17402
17425
  let n = t.getBoundingClientRect();
17403
- y.value = fi((e.clientX - n.left) / n.width), S.value = 1 - fi((e.clientY - n.top) / n.height), ce();
17426
+ T.value = fi((e.clientX - n.left) / n.width), E.value = 1 - fi((e.clientY - n.top) / n.height), le();
17404
17427
  };
17405
17428
  n(e), xe(n);
17406
17429
  }
17407
- function Se(e) {
17430
+ function Ce(e) {
17408
17431
  e.preventDefault();
17409
17432
  let t = e.currentTarget;
17410
17433
  if (!(t instanceof HTMLElement)) return;
17411
17434
  let n = (e) => {
17412
17435
  let n = t.getBoundingClientRect();
17413
- v.value = fi((e.clientX - n.left) / n.width) * 360, ce();
17436
+ C.value = fi((e.clientX - n.left) / n.width) * 360, le();
17414
17437
  };
17415
17438
  n(e), xe(n);
17416
17439
  }
17417
- function Ce(e) {
17418
- let t = e.shiftKey ? .1 : .02, n = y.value, r = S.value;
17440
+ function we(e) {
17441
+ let t = e.shiftKey ? .1 : .02, n = T.value, r = E.value;
17419
17442
  switch (e.key) {
17420
17443
  case "ArrowLeft":
17421
17444
  n -= t;
@@ -17443,10 +17466,10 @@ var jE = { class: "checkbox-option" }, ME = {
17443
17466
  break;
17444
17467
  default: return;
17445
17468
  }
17446
- e.preventDefault(), y.value = fi(n), S.value = fi(r), ce();
17469
+ e.preventDefault(), T.value = fi(n), E.value = fi(r), le();
17447
17470
  }
17448
- function we(e) {
17449
- let t = e.shiftKey ? 10 : 1, n = v.value;
17471
+ function Te(e) {
17472
+ let t = e.shiftKey ? 10 : 1, n = C.value;
17450
17473
  switch (e.key) {
17451
17474
  case "ArrowLeft":
17452
17475
  case "ArrowDown":
@@ -17470,196 +17493,220 @@ var jE = { class: "checkbox-option" }, ME = {
17470
17493
  break;
17471
17494
  default: return;
17472
17495
  }
17473
- e.preventDefault(), v.value = Math.max(0, Math.min(360, n)), ce();
17496
+ e.preventDefault(), C.value = Math.max(0, Math.min(360, n)), le();
17474
17497
  }
17475
- function Te() {
17476
- let e = vi(w.value);
17477
- e && (t.value = {
17498
+ function k() {
17499
+ let e = vi(D.value);
17500
+ e && (a.value = {
17478
17501
  type: "color",
17479
17502
  ...e
17480
17503
  });
17481
17504
  }
17482
17505
  function Ee() {
17483
- te.value = !1, w.value = _i(C.value);
17506
+ ne.value = !1, D.value = _i(ee.value);
17484
17507
  }
17485
- let O = g(() => t.value.type === "transparent" ? void 0 : _i(t.value)), De = g(() => {
17486
- let e = O.value;
17487
- return e && !u.value.includes(e) ? e : void 0;
17488
- }), Oe = g(() => {
17508
+ let De = i(() => a.value.type === "transparent" ? void 0 : _i(a.value)), Oe = i(() => {
17489
17509
  let e = De.value;
17490
- return e ? [...u.value, e] : u.value;
17491
- });
17492
- function ke(e) {
17493
- let n = vi(e);
17494
- n && (t.value = {
17510
+ return h.value && e && !d.value.includes(e) ? e : void 0;
17511
+ }), ke = i(() => c.value.map((e, t) => {
17512
+ let n = Oe.value;
17513
+ return t === 0 && n ? [...e.colors, n] : [...e.colors];
17514
+ }));
17515
+ function Ae(e) {
17516
+ let t = vi(e);
17517
+ t && (a.value = {
17495
17518
  type: "color",
17496
- ...n
17519
+ ...t
17497
17520
  });
17498
17521
  }
17499
- function Ae(e, t) {
17500
- let n = Oe.value, r = t;
17522
+ function je(e, t, n) {
17523
+ let r = ke.value[t] ?? [], i = n;
17501
17524
  switch (e.key) {
17502
17525
  case "ArrowLeft":
17503
17526
  case "ArrowUp":
17504
- r = t - 1;
17527
+ i = n - 1;
17505
17528
  break;
17506
17529
  case "ArrowRight":
17507
17530
  case "ArrowDown":
17508
- r = t + 1;
17531
+ i = n + 1;
17509
17532
  break;
17510
17533
  case "Home":
17511
- r = 0;
17534
+ i = 0;
17512
17535
  break;
17513
17536
  case "End":
17514
- r = n.length - 1;
17537
+ i = r.length - 1;
17515
17538
  break;
17516
17539
  default: return;
17517
17540
  }
17518
17541
  e.preventDefault();
17519
- let i = n[(r + n.length) % n.length];
17520
- i && (ke(i), je.value[n.indexOf(i)]?.focus());
17542
+ let a = r[(i + r.length) % r.length];
17543
+ a && (Ae(a), Me.value[t]?.[r.indexOf(a)]?.focus());
17544
+ }
17545
+ let Me = fe([]);
17546
+ function Ne(e, t, n) {
17547
+ if (e instanceof HTMLElement) {
17548
+ let r = Me.value[t] ?? [];
17549
+ r[n] = e, Me.value[t] = r;
17550
+ }
17521
17551
  }
17522
- let je = oe([]);
17523
- function Me(e, t) {
17524
- e instanceof HTMLElement && (je.value[t] = e);
17552
+ function Pe(e, t, n) {
17553
+ let r = ke.value[e] ?? [], i = De.value;
17554
+ return (i !== void 0 && r.includes(i) ? t === i : n === 0) ? 0 : -1;
17525
17555
  }
17526
- function Ne(e) {
17527
- t.value = e ? { type: "transparent" } : {
17556
+ function Fe(e) {
17557
+ a.value = e ? { type: "transparent" } : {
17528
17558
  type: "color",
17529
- ...C.value
17559
+ ...ee.value
17530
17560
  };
17531
17561
  }
17532
- function Pe(e) {
17562
+ function Ie(e) {
17533
17563
  if (e.newState !== "open") return;
17534
- let t = ie.value, n = ae.value;
17564
+ let t = re.value, n = ae.value;
17535
17565
  if (!(t && n)) return;
17536
- let r = t.getBoundingClientRect(), i = AE(r, window.innerHeight);
17566
+ let r = t.getBoundingClientRect(), i = jE(r, window.innerHeight);
17537
17567
  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`;
17538
17568
  }
17539
- function Fe(e) {
17540
- if (m.value = e.newState === "open", e.newState !== "open") return;
17541
- if (!d.value) {
17542
- se.value?.focus();
17569
+ function Le(e) {
17570
+ t.keepFocus && e.preventDefault();
17571
+ }
17572
+ function Re(e) {
17573
+ if (_.value = e.newState === "open", e.newState !== "open") return;
17574
+ let t = De.value, n = t ? ke.value.findIndex((e) => e.includes(t)) : -1;
17575
+ if (t && n !== -1) {
17576
+ let e = ke.value[n]?.indexOf(t) ?? 0;
17577
+ Me.value[n]?.[e]?.focus();
17578
+ return;
17579
+ }
17580
+ if (!h.value) {
17581
+ ce.value?.focus();
17543
17582
  return;
17544
17583
  }
17545
- let t = O.value ? Oe.value.indexOf(O.value) : -1;
17546
- je.value[t === -1 ? 0 : t]?.focus();
17584
+ Me.value[0]?.[0]?.focus();
17547
17585
  }
17548
- function k(e) {
17586
+ function A(e) {
17549
17587
  let t = e.relatedTarget;
17550
17588
  t instanceof Node && ae.value?.contains(t) || ae.value?.matches(":popover-open") && ae.value.hidePopover();
17551
17589
  }
17552
- return n(be), (t, n) => (_(), E("div", { class: ue(["color-picker", { "has-label": e.label && !e.compact }]) }, [
17553
- e.label && !e.compact ? (_(), E("span", VE, ne(e.label), 1)) : f("", !0),
17554
- i("button", {
17590
+ return v(O), (i, a) => (y(), e("div", { class: oe(["color-picker", { "has-label": t.label && !t.compact }]) }, [
17591
+ t.label && !t.compact ? (y(), e("span", HE, w(t.label), 1)) : ie("", !0),
17592
+ r("button", {
17555
17593
  ref_key: "trigger",
17556
- ref: ie,
17594
+ ref: re,
17557
17595
  type: "button",
17558
- class: ue(["trigger", { compact: e.compact }]),
17559
- popovertarget: T(p),
17596
+ class: oe(["trigger", { compact: t.compact }]),
17597
+ popovertarget: se(g),
17560
17598
  "aria-haspopup": "dialog",
17561
- "aria-expanded": m.value,
17562
- "aria-label": me.value
17563
- }, [i("span", {
17564
- class: ue(["swatch", { checker: le.value }]),
17565
- style: re(le.value ? {} : { backgroundColor: de.value })
17566
- }, null, 6), e.compact ? f("", !0) : (_(), E("span", UE, ne(fe.value), 1))], 10, HE),
17567
- i("div", {
17568
- id: T(p),
17599
+ "aria-expanded": _.value,
17600
+ "aria-label": he.value,
17601
+ onMousedown: Le
17602
+ }, [r("span", {
17603
+ class: oe(["swatch", { checker: ue.value }]),
17604
+ style: te(ue.value ? {} : { backgroundColor: de.value })
17605
+ }, null, 6), t.compact ? ie("", !0) : (y(), e("span", WE, w(pe.value), 1))], 42, UE),
17606
+ r("div", {
17607
+ id: se(g),
17569
17608
  ref_key: "popover",
17570
17609
  ref: ae,
17571
17610
  popover: "",
17572
17611
  class: "popover",
17573
17612
  role: "dialog",
17574
17613
  tabindex: "-1",
17575
- "aria-label": e.label ?? T(o)("colorPicker.open"),
17576
- onBeforetoggle: Pe,
17577
- onToggle: Fe,
17578
- onFocusout: k
17614
+ "aria-label": t.label ?? se(o)("colorPicker.open"),
17615
+ onBeforetoggle: Ie,
17616
+ onToggle: Re,
17617
+ onFocusout: A
17579
17618
  }, [
17580
- d.value ? (_(), E("div", {
17619
+ (y(!0), e(n, null, l(c.value, (t, i) => (y(), e("div", {
17620
+ key: t.key,
17621
+ class: "palette-section"
17622
+ }, [p.value ? (y(), e("span", {
17581
17623
  key: 0,
17624
+ id: `${se(g)}-${t.key}`,
17625
+ class: "palette-heading"
17626
+ }, w(t.label), 9, KE)) : ie("", !0), r("div", {
17582
17627
  class: "palette",
17583
17628
  role: "radiogroup",
17584
- "aria-label": T(o)("colorPicker.palette")
17585
- }, [(_(!0), E(h, null, a(Oe.value, (e, t) => (_(), E("button", {
17586
- key: e,
17629
+ "aria-label": p.value ? void 0 : t.label,
17630
+ "aria-labelledby": p.value ? `${se(g)}-${t.key}` : void 0
17631
+ }, [(y(!0), e(n, null, l(ke.value[i], (t, n) => (y(), e("button", {
17632
+ key: t,
17587
17633
  ref_for: !0,
17588
- ref: (e) => Me(e, t),
17634
+ ref: (e) => Ne(e, i, n),
17589
17635
  type: "button",
17590
17636
  role: "radio",
17591
- class: ue(["palette-swatch", { "off-brand": e === De.value }]),
17592
- "aria-checked": e === O.value,
17593
- "aria-label": e === De.value ? T(o)("colorPicker.offBrandValue", { value: e }) : T(o)("colorPicker.colorValue", { value: e }),
17594
- tabindex: e === O.value || !O.value && t === 0 ? 0 : -1,
17595
- style: re({ backgroundColor: e }),
17596
- onClick: (t) => ke(e),
17597
- onKeydown: (e) => Ae(e, t)
17598
- }, null, 46, KE))), 128))], 8, GE)) : (_(), E(h, { key: 1 }, [i("div", {
17637
+ class: oe(["palette-swatch", { "off-brand": t === Oe.value }]),
17638
+ "aria-checked": t === De.value,
17639
+ "aria-label": t === Oe.value ? se(o)("colorPicker.offBrandValue", { value: t }) : se(o)("colorPicker.colorValue", { value: t }),
17640
+ tabindex: Pe(i, t, n),
17641
+ style: te({ backgroundColor: t }),
17642
+ onClick: (e) => Ae(t),
17643
+ onKeydown: (e) => je(e, i, n)
17644
+ }, null, 46, JE))), 128))], 8, qE)]))), 128)),
17645
+ h.value ? ie("", !0) : (y(), e(n, { key: 0 }, [r("div", {
17599
17646
  ref_key: "svArea",
17600
- ref: se,
17647
+ ref: ce,
17601
17648
  class: "sv-area",
17602
17649
  role: "slider",
17603
17650
  tabindex: "0",
17604
- "aria-label": T(o)("colorPicker.saturationValue"),
17651
+ "aria-label": se(o)("colorPicker.saturationValue"),
17605
17652
  "aria-valuemin": "0",
17606
17653
  "aria-valuemax": "100",
17607
- "aria-valuenow": Math.round(S.value * 100),
17608
- "aria-valuetext": _e.value,
17609
- style: re({ backgroundColor: he.value }),
17610
- onPointerdown: D,
17611
- onKeydown: Ce
17612
- }, [i("div", {
17654
+ "aria-valuenow": Math.round(E.value * 100),
17655
+ "aria-valuetext": ve.value,
17656
+ style: te({ backgroundColor: ge.value }),
17657
+ onPointerdown: Se,
17658
+ onKeydown: we
17659
+ }, [r("div", {
17613
17660
  class: "sv-thumb",
17614
- style: re({
17615
- left: `${y.value * 100}%`,
17616
- top: `${(1 - S.value) * 100}%`,
17617
- backgroundColor: ge.value
17661
+ style: te({
17662
+ left: `${T.value * 100}%`,
17663
+ top: `${(1 - E.value) * 100}%`,
17664
+ backgroundColor: _e.value
17618
17665
  })
17619
- }, null, 4)], 44, qE), i("div", {
17666
+ }, null, 4)], 44, YE), r("div", {
17620
17667
  class: "hue-track",
17621
17668
  role: "slider",
17622
17669
  tabindex: "0",
17623
- "aria-label": T(o)("colorPicker.hue"),
17670
+ "aria-label": se(o)("colorPicker.hue"),
17624
17671
  "aria-valuemin": "0",
17625
17672
  "aria-valuemax": "360",
17626
- "aria-valuenow": Math.round(v.value),
17627
- onPointerdown: Se,
17628
- onKeydown: we
17629
- }, [i("div", {
17673
+ "aria-valuenow": Math.round(C.value),
17674
+ onPointerdown: Ce,
17675
+ onKeydown: Te
17676
+ }, [r("div", {
17630
17677
  class: "hue-thumb",
17631
- style: re({ left: `${v.value / 360 * 100}%` })
17632
- }, null, 4)], 40, JE)], 64)),
17633
- d.value ? f("", !0) : (_(), r(BE, {
17634
- key: 2,
17635
- modelValue: w.value,
17636
- "onUpdate:modelValue": n[0] ||= (e) => w.value = e,
17678
+ style: te({ left: `${C.value / 360 * 100}%` })
17679
+ }, null, 4)], 40, XE)], 64)),
17680
+ h.value ? ie("", !0) : (y(), f(VE, {
17681
+ key: 1,
17682
+ modelValue: D.value,
17683
+ "onUpdate:modelValue": a[0] ||= (e) => D.value = e,
17637
17684
  spellcheck: "false",
17638
17685
  autocomplete: "off",
17639
- "aria-label": T(o)("colorPicker.hex"),
17640
- "aria-invalid": !T(vi)(w.value),
17641
- onFocus: n[1] ||= (e) => te.value = !0,
17642
- onInput: Te,
17686
+ "aria-label": se(o)("colorPicker.hex"),
17687
+ "aria-invalid": !se(vi)(D.value),
17688
+ onFocus: a[1] ||= (e) => ne.value = !0,
17689
+ onInput: k,
17643
17690
  onBlur: Ee
17644
17691
  }, null, 8, [
17645
17692
  "modelValue",
17646
17693
  "aria-label",
17647
17694
  "aria-invalid"
17648
17695
  ])),
17649
- e.allowTransparent ? (_(), r(PE, {
17650
- key: 3,
17696
+ t.allowTransparent ? (y(), f(FE, {
17697
+ key: 2,
17651
17698
  class: "transparent-toggle",
17652
- label: T(o)("colorPicker.transparent"),
17653
- "model-value": le.value,
17654
- "onUpdate:modelValue": Ne
17655
- }, null, 8, ["label", "model-value"])) : f("", !0)
17656
- ], 40, WE)
17699
+ label: se(o)("colorPicker.transparent"),
17700
+ "model-value": ue.value,
17701
+ "onUpdate:modelValue": Fe
17702
+ }, null, 8, ["label", "model-value"])) : ie("", !0)
17703
+ ], 40, GE)
17657
17704
  ], 2));
17658
17705
  }
17659
- }), [["styles", [".color-picker[data-v-5291d465]{flex-direction:column;gap:.5em;display:flex}.picker-label[data-v-5291d465]{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-5291d465]{position:relative}.color-picker.has-label:has(.trigger:focus-visible) .picker-label[data-v-5291d465]{color:var(--bygga-color-accent)}.trigger[data-v-5291d465]{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-5291d465]:hover,.trigger[data-v-5291d465]:focus-visible{border-color:var(--bygga-color-accent)}.trigger.compact[data-v-5291d465]{border-color:#0000;border-radius:4px;justify-content:center;width:30px;height:30px;min-height:0;padding:0}.trigger.compact .swatch[data-v-5291d465]{border-color:var(--bygga-color-border-subtle)}.trigger.compact[data-v-5291d465]:hover,.trigger.compact[data-v-5291d465]:focus-visible{background:color-mix(in srgb, var(--bygga-color-text) 10%, transparent);border-color:#0000}.swatch[data-v-5291d465]{border:1px solid var(--bygga-color-border);border-radius:4px;flex-shrink:0;width:20px;height:20px}.value[data-v-5291d465]{color:var(--bygga-color-text-muted);font-variant-numeric:tabular-nums}.checker[data-v-5291d465]{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-5291d465]{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-5291d465]:popover-open{display:flex}.sv-area[data-v-5291d465]{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-5291d465]:focus-visible{outline:2px solid var(--bygga-color-accent);outline-offset:2px}.sv-thumb[data-v-5291d465]{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-5291d465]{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-5291d465]:focus-visible{outline:2px solid var(--bygga-color-accent);outline-offset:2px}.hue-thumb[data-v-5291d465]{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[data-v-5291d465]{grid-template-columns:repeat(auto-fill,minmax(32px,1fr));gap:8px;display:grid}.palette-swatch[data-v-5291d465]{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-5291d465]:hover,.palette-swatch[data-v-5291d465]:focus-visible{outline:2px solid var(--bygga-color-accent);outline-offset:2px}.palette-swatch[aria-checked=true][data-v-5291d465]{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-5291d465]{border-style:dashed;border-width:2px}.transparent-toggle[data-v-5291d465]{align-self:flex-start}.swatch[data-v-5291d465],.checker[data-v-5291d465],.sv-area[data-v-5291d465],.sv-thumb[data-v-5291d465],.hue-track[data-v-5291d465],.hue-thumb[data-v-5291d465],.palette-swatch[data-v-5291d465]{forced-color-adjust:none}"]], ["__scopeId", "data-v-5291d465"]]), XE = { class: "select-wrap" }, ZE = ["id", "disabled"], QE = /*#__PURE__*/ Bw(/* @__PURE__ */ d({
17706
+ }), [["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"]]), QE = { class: "select-wrap" }, $E = ["id", "disabled"], eD = /*#__PURE__*/ Bw(/* @__PURE__ */ p({
17660
17707
  inheritAttrs: !1,
17661
17708
  __name: "SelectInput",
17662
- props: /*@__PURE__*/ u({
17709
+ props: /*@__PURE__*/ h({
17663
17710
  label: {
17664
17711
  default: void 0,
17665
17712
  type: String
@@ -17677,23 +17724,23 @@ var jE = { class: "checkbox-option" }, ME = {
17677
17724
  modelModifiers: {}
17678
17725
  }),
17679
17726
  emits: ["update:modelValue"],
17680
- setup(t) {
17681
- let n = x(t, "modelValue"), r = t, a = c(), o = g(() => n.value === "" && !r.emptyIsValue), s = b("select");
17682
- return ee(n, async (e) => {
17683
- await ge(), s.value && s.value.value !== e && (s.value.value = e);
17684
- }), (c, u) => (_(), E("div", { class: ue(["select-input", { "is-empty": o.value }]) }, [ae(RE, {
17685
- disabled: t.disabled,
17686
- label: r.label,
17687
- "label-for": T(a)
17727
+ setup(n) {
17728
+ let a = b(n, "modelValue"), o = n, s = x(), c = i(() => a.value === "" && !o.emptyIsValue), l = S("select");
17729
+ return m(a, async (e) => {
17730
+ await t(), l.value && l.value.value !== e && (l.value.value = e);
17731
+ }), (t, i) => (y(), e("div", { class: oe(["select-input", { "is-empty": c.value }]) }, [d(zE, {
17732
+ disabled: n.disabled,
17733
+ label: o.label,
17734
+ "label-for": se(s)
17688
17735
  }, {
17689
- default: e(() => [i("span", XE, [w(i("select", m({
17690
- id: T(a),
17736
+ default: ee(() => [r("span", QE, [de(r("select", he({
17737
+ id: se(s),
17691
17738
  ref_key: "select",
17692
- ref: s,
17693
- "onUpdate:modelValue": u[0] ||= (e) => n.value = e,
17739
+ ref: l,
17740
+ "onUpdate:modelValue": i[0] ||= (e) => a.value = e,
17694
17741
  class: "field-select",
17695
- disabled: t.disabled
17696
- }, c.$attrs), [l(c.$slots, "default", {}, void 0, !0)], 16, ZE), [[S, n.value]]), ae(gE, {
17742
+ disabled: n.disabled
17743
+ }, t.$attrs), [ce(t.$slots, "default", {}, void 0, !0)], 16, $E), [[pe, a.value]]), d(gE, {
17697
17744
  class: "chevron",
17698
17745
  name: "chevron-down",
17699
17746
  size: 12
@@ -17708,18 +17755,18 @@ var jE = { class: "checkbox-option" }, ME = {
17708
17755
  }), [["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"]]);
17709
17756
  //#endregion
17710
17757
  //#region src/composables/useBrandCustomFonts.ts
17711
- function $E() {
17712
- let e = s(CE, void 0);
17713
- return g(() => Vw(e?.value.customFonts ?? []));
17758
+ function tD() {
17759
+ let e = u(CE, void 0);
17760
+ return i(() => Vw(e?.value.customFonts ?? []));
17714
17761
  }
17715
17762
  //#endregion
17716
17763
  //#region src/composables/useBrandFonts.ts
17717
- function eD(e) {
17718
- let t = s(CE, void 0);
17719
- return g(() => {
17764
+ function nD(e) {
17765
+ let t = u(CE, void 0);
17766
+ return i(() => {
17720
17767
  let n = t?.value.fonts ?? [];
17721
17768
  if (n.length === 0) return Ci;
17722
- let r = n.flatMap((e) => Ci.find((t) => t.key === e) ?? []), i = C(e);
17769
+ let r = n.flatMap((e) => Ci.find((t) => t.key === e) ?? []), i = D(e);
17723
17770
  if (i && !n.includes(i)) {
17724
17771
  let e = Ci.find((e) => e.key === i);
17725
17772
  if (e) return [...r, e];
@@ -17729,25 +17776,25 @@ function eD(e) {
17729
17776
  }
17730
17777
  //#endregion
17731
17778
  //#region src/i18n/locales.ts
17732
- var tD = ["en", "sv"], nD = "sv";
17733
- function rD(e) {
17734
- return tD.includes(e);
17779
+ var rD = ["en", "sv"], iD = "sv";
17780
+ function aD(e) {
17781
+ return rD.includes(e);
17735
17782
  }
17736
17783
  //#endregion
17737
17784
  //#region src/mergeTags.ts
17738
- function iD(e) {
17785
+ function oD(e) {
17739
17786
  return Object.keys(e).filter((t) => !e[t]?.conditionOnly);
17740
17787
  }
17741
- function aD(e, t, n) {
17788
+ function sD(e, t, n) {
17742
17789
  let r = e[t];
17743
17790
  return r ? r[n] ?? r.sv ?? t : t;
17744
17791
  }
17745
17792
  //#endregion
17746
17793
  //#region src/urls.ts
17747
- var oD = /^[a-z][a-z0-9+.-]*:/i, sD = /^(?:https?|ftps?|mailto|tel|callto|sms|cid|xmpp):/i, cD = /^[/#?]/;
17748
- function lD(e) {
17794
+ var cD = /^[a-z][a-z0-9+.-]*:/i, lD = /^(?:https?|ftps?|mailto|tel|callto|sms|cid|xmpp):/i, uD = /^[/#?]/;
17795
+ function dD(e) {
17749
17796
  let t = e.trim();
17750
- return oD.test(t) ? sD.test(t) ? t : "" : t === "" || cD.test(t) ? t : `https://${t}`;
17797
+ return cD.test(t) ? lD.test(t) ? t : "" : t === "" || uD.test(t) ? t : `https://${t}`;
17751
17798
  }
17752
17799
  //#endregion
17753
- export { mw as $, Ca as $t, Rw as A, vi as An, Nc as At, ww as B, ua as Bt, vE as C, Ti as Cn, hg as Ct, Vw as D, oi as Dn, cp as Dt, Uw as E, ai as En, ap as Et, yw as F, $r as Fn, R as Ft, Mw as G, Xi as Gt, sw as H, Wi as Ht, xw as I, ti as In, B as It, kw as J, sa as Jt, Nw as K, na as Kt, Tw as L, ei as Ln, Bi as Lt, Lw as M, ni as Mn, H as Mt, iw as N, ri as Nn, cs as Nt, Zw as O, xi as On, U as Ot, tw as P, ii as Pn, Ws as Pt, hw as Q, va as Qt, Dw as R, Br as Rn, ca as Rt, bE as S, ki as Sn, mg as St, gE as T, si as Tn, cm as Tt, ew as U, Qi as Ut, cw as V, da as Vt, Fw as W, Zi as Wt, Sw as X, Vi as Xt, Aw as Y, Ki as Yt, Cw as Z, qi as Zt, xE as _, ia as _n, K as _t, tD as a, ea as an, fw as at, TE as b, Fi as bn, Jg as bt, $E as c, ta as cn, QC as ct, BE as d, Hi as dn, sC as dt, ya as en, vw as et, RE as f, Sa as fn, rC as ft, CE as g, aa as gn, I_ as gt, wE as h, Yi as hn, eb as ht, nD as i, Ta as in, Ow as it, Iw as j, _i as jn, V as jt, Bw as k, yi as kn, Ac as kt, QE as l, ra as ln, $C as lt, DE as m, wa as mn, tb as mt, iD as n, ga as nn, pw as nt, rD as o, Gi as on, kC as ot, PE as p, oa as pn, oC as pt, jw as q, Ui as qt, aD as r, _a as rn, bw as rt, eD as s, $i as sn, cC as st, lD as t, xa as tn, gw as tt, YE as u, ba as un, nC as ut, OE as v, Pi as vn, B_ as vt, yE as w, Ei as wn, gg as wt, EE as x, wi as xn, W as xt, SE as y, Ri as yn, G as yt, Ew as z, Vr as zn, la as zt };
17800
+ export { Cw as $, qi as $t, Zw as A, xi as An, U as At, Dw as B, Br as Bn, ca as Bt, EE as C, wi as Cn, W as Ct, gE as D, si as Dn, cm as Dt, yE as E, Ei as En, gg as Et, iw as F, ri as Fn, cs as Ft, ew as G, Qi as Gt, ww as H, ua as Ht, tw as I, ii as In, Ws as It, Nw as J, na as Jt, Fw as K, Zi as Kt, yw as L, $r as Ln, R as Lt, Rw as M, vi as Mn, Nc as Mt, Iw as N, _i as Nn, V as Nt, Uw as O, ai as On, ap as Ot, Lw as P, ni as Pn, H as Pt, Sw as Q, Vi as Qt, xw as R, ti as Rn, B as Rt, TE as S, Fi as Sn, Jg as St, vE as T, Ti as Tn, hg as Tt, cw as U, da as Ut, Ew as V, Vr as Vn, la as Vt, sw as W, Wi as Wt, kw as X, sa as Xt, jw as Y, Ui as Yt, Aw as Z, Ki as Zt, wE as _, Yi as _n, eb as _t, rD as a, _a as an, bw as at, OE as b, Pi as bn, B_ as bt, tD as c, Gi as cn, kC as ct, VE as d, ra as dn, $C as dt, va as en, hw as et, zE as f, ba as fn, nC as ft, DE as g, wa as gn, tb as gt, jE as h, oa as hn, oC as ht, iD as i, ga as in, pw as it, Bw as j, yi as jn, Ac as jt, Vw as k, oi as kn, cp as kt, eD as l, $i as ln, cC as lt, kE as m, Sa as mn, rC as mt, oD as n, ya as nn, vw as nt, aD as o, Ta as on, Ow as ot, FE as p, Hi as pn, sC as pt, Mw as q, Xi as qt, sD as r, xa as rn, gw as rt, nD as s, ea as sn, fw as st, dD as t, Ca as tn, mw as tt, ZE as u, ta as un, QC as ut, CE as v, aa as vn, I_ as vt, bE as w, ki as wn, mg as wt, SE as x, Ri as xn, G as xt, xE as y, ia as yn, K as yt, Tw as z, ei as zn, Bi as zt };