@ddict/bubble 1.3.11 → 1.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bubble.es.js CHANGED
@@ -1,54 +1,54 @@
1
- import { computed as B, ref as R, shallowRef as nn, watch as te, getCurrentScope as on, onScopeDispose as rn, shallowReadonly as ce, unref as Ce, createElementBlock as v, openBlock as p, createStaticVNode as Je, createElementVNode as C, createVNode as W, toDisplayString as oe, Fragment as K, renderList as me, createCommentVNode as M, normalizeClass as k, createTextVNode as we, onUnmounted as Qe, createBlock as P, normalizeStyle as Ke, withModifiers as sn, onMounted as kt, nextTick as ht } from "vue";
2
- const Re = Math.min, ne = Math.max, Be = Math.round, $e = Math.floor, X = (e) => ({
1
+ import { computed as B, ref as R, shallowRef as an, watch as ne, getCurrentScope as cn, onScopeDispose as un, shallowReadonly as ue, unref as ye, createElementBlock as b, openBlock as p, createStaticVNode as Ge, createElementVNode as C, createVNode as W, toDisplayString as ie, Fragment as K, renderList as he, createCommentVNode as M, normalizeClass as k, createTextVNode as xe, onUnmounted as Je, createBlock as P, normalizeStyle as Xe, withModifiers as dn, onMounted as Ft, nextTick as Ct } from "vue";
2
+ const Re = Math.min, oe = Math.max, Be = Math.round, ke = Math.floor, X = (e) => ({
3
3
  x: e,
4
4
  y: e
5
- }), ln = {
5
+ }), fn = {
6
6
  left: "right",
7
7
  right: "left",
8
8
  bottom: "top",
9
9
  top: "bottom"
10
- }, an = {
10
+ }, mn = {
11
11
  start: "end",
12
12
  end: "start"
13
13
  };
14
- function pt(e, t, n) {
15
- return ne(e, Re(t, n));
14
+ function wt(e, t, n) {
15
+ return oe(e, Re(t, n));
16
16
  }
17
- function Oe(e, t) {
17
+ function De(e, t) {
18
18
  return typeof e == "function" ? e(t) : e;
19
19
  }
20
- function ie(e) {
20
+ function re(e) {
21
21
  return e.split("-")[0];
22
22
  }
23
- function De(e) {
23
+ function Fe(e) {
24
24
  return e.split("-")[1];
25
25
  }
26
- function Rt(e) {
26
+ function Ot(e) {
27
27
  return e === "x" ? "y" : "x";
28
28
  }
29
- function Bt(e) {
29
+ function Wt(e) {
30
30
  return e === "y" ? "height" : "width";
31
31
  }
32
- function de(e) {
33
- return ["top", "bottom"].includes(ie(e)) ? "y" : "x";
32
+ function fe(e) {
33
+ return ["top", "bottom"].includes(re(e)) ? "y" : "x";
34
34
  }
35
- function It(e) {
36
- return Rt(de(e));
35
+ function zt(e) {
36
+ return Ot(fe(e));
37
37
  }
38
- function cn(e, t, n) {
38
+ function hn(e, t, n) {
39
39
  n === void 0 && (n = !1);
40
- const o = De(e), i = It(e), s = Bt(i);
40
+ const o = Fe(e), i = zt(e), s = Wt(i);
41
41
  let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
42
42
  return t.reference[s] > t.floating[s] && (r = Ie(r)), [r, Ie(r)];
43
43
  }
44
- function un(e) {
44
+ function pn(e) {
45
45
  const t = Ie(e);
46
- return [Ge(e), t, Ge(t)];
46
+ return [Ye(e), t, Ye(t)];
47
47
  }
48
- function Ge(e) {
49
- return e.replace(/start|end/g, (t) => an[t]);
48
+ function Ye(e) {
49
+ return e.replace(/start|end/g, (t) => mn[t]);
50
50
  }
51
- function dn(e, t, n) {
51
+ function gn(e, t, n) {
52
52
  const o = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
53
53
  switch (e) {
54
54
  case "top":
@@ -61,15 +61,15 @@ function dn(e, t, n) {
61
61
  return [];
62
62
  }
63
63
  }
64
- function fn(e, t, n, o) {
65
- const i = De(e);
66
- let s = dn(ie(e), n === "start", o);
67
- return i && (s = s.map((r) => r + "-" + i), t && (s = s.concat(s.map(Ge)))), s;
64
+ function vn(e, t, n, o) {
65
+ const i = Fe(e);
66
+ let s = gn(re(e), n === "start", o);
67
+ return i && (s = s.map((r) => r + "-" + i), t && (s = s.concat(s.map(Ye)))), s;
68
68
  }
69
69
  function Ie(e) {
70
- return e.replace(/left|right|bottom|top/g, (t) => ln[t]);
70
+ return e.replace(/left|right|bottom|top/g, (t) => fn[t]);
71
71
  }
72
- function mn(e) {
72
+ function bn(e) {
73
73
  return {
74
74
  top: 0,
75
75
  right: 0,
@@ -78,8 +78,8 @@ function mn(e) {
78
78
  ...e
79
79
  };
80
80
  }
81
- function hn(e) {
82
- return typeof e != "number" ? mn(e) : {
81
+ function Cn(e) {
82
+ return typeof e != "number" ? bn(e) : {
83
83
  top: e,
84
84
  right: e,
85
85
  bottom: e,
@@ -104,12 +104,12 @@ function Me(e) {
104
104
  y: n
105
105
  };
106
106
  }
107
- function gt(e, t, n) {
107
+ function yt(e, t, n) {
108
108
  let {
109
109
  reference: o,
110
110
  floating: i
111
111
  } = e;
112
- const s = de(t), r = It(t), a = Bt(r), l = ie(t), c = s === "y", d = o.x + o.width / 2 - i.width / 2, h = o.y + o.height / 2 - i.height / 2, g = o[a] / 2 - i[a] / 2;
112
+ const s = fe(t), r = zt(t), a = Wt(r), l = re(t), c = s === "y", d = o.x + o.width / 2 - i.width / 2, h = o.y + o.height / 2 - i.height / 2, g = o[a] / 2 - i[a] / 2;
113
113
  let f;
114
114
  switch (l) {
115
115
  case "top":
@@ -142,7 +142,7 @@ function gt(e, t, n) {
142
142
  y: o.y
143
143
  };
144
144
  }
145
- switch (De(t)) {
145
+ switch (Fe(t)) {
146
146
  case "start":
147
147
  f[r] -= g * (n && c ? -1 : 1);
148
148
  break;
@@ -152,7 +152,7 @@ function gt(e, t, n) {
152
152
  }
153
153
  return f;
154
154
  }
155
- const pn = async (e, t, n) => {
155
+ const wn = async (e, t, n) => {
156
156
  const {
157
157
  placement: o = "bottom",
158
158
  strategy: i = "absolute",
@@ -166,7 +166,7 @@ const pn = async (e, t, n) => {
166
166
  }), {
167
167
  x: d,
168
168
  y: h
169
- } = gt(c, o, l), g = o, f = {}, m = 0;
169
+ } = yt(c, o, l), g = o, f = {}, m = 0;
170
170
  for (let w = 0; w < a.length; w++) {
171
171
  const {
172
172
  name: y,
@@ -203,7 +203,7 @@ const pn = async (e, t, n) => {
203
203
  }) : E.rects), {
204
204
  x: d,
205
205
  y: h
206
- } = gt(c, g, l)), w = -1);
206
+ } = yt(c, g, l)), w = -1);
207
207
  }
208
208
  return {
209
209
  x: d,
@@ -213,7 +213,7 @@ const pn = async (e, t, n) => {
213
213
  middlewareData: f
214
214
  };
215
215
  };
216
- async function Mt(e, t) {
216
+ async function _t(e, t) {
217
217
  var n;
218
218
  t === void 0 && (t = {});
219
219
  const {
@@ -229,7 +229,7 @@ async function Mt(e, t) {
229
229
  elementContext: h = "floating",
230
230
  altBoundary: g = !1,
231
231
  padding: f = 0
232
- } = Oe(t, e), m = hn(f), y = a[g ? h === "floating" ? "reference" : "floating" : h], L = Me(await s.getClippingRect({
232
+ } = De(t, e), m = Cn(f), y = a[g ? h === "floating" ? "reference" : "floating" : h], L = Me(await s.getClippingRect({
233
233
  element: (n = await (s.isElement == null ? void 0 : s.isElement(y))) == null || n ? y : y.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
234
234
  boundary: c,
235
235
  rootBoundary: d,
@@ -258,7 +258,7 @@ async function Mt(e, t) {
258
258
  right: (E.right - L.right + m.right) / $.x
259
259
  };
260
260
  }
261
- const gn = function(e) {
261
+ const yn = function(e) {
262
262
  return e === void 0 && (e = {}), {
263
263
  name: "flip",
264
264
  options: e,
@@ -279,48 +279,48 @@ const gn = function(e) {
279
279
  fallbackAxisSideDirection: m = "none",
280
280
  flipAlignment: w = !0,
281
281
  ...y
282
- } = Oe(e, t);
282
+ } = De(e, t);
283
283
  if ((n = s.arrow) != null && n.alignmentOffset)
284
284
  return {};
285
- const L = ie(i), S = de(a), x = ie(a) === a, $ = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), E = g || (x || !w ? [Ie(a)] : un(a)), I = m !== "none";
286
- !g && I && E.push(...fn(a, w, m, $));
287
- const T = [a, ...E], z = await Mt(t, y), N = [];
285
+ const L = re(i), S = fe(a), x = re(a) === a, $ = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), E = g || (x || !w ? [Ie(a)] : pn(a)), I = m !== "none";
286
+ !g && I && E.push(...vn(a, w, m, $));
287
+ const T = [a, ...E], z = await _t(t, y), U = [];
288
288
  let G = ((o = s.flip) == null ? void 0 : o.overflows) || [];
289
- if (d && N.push(z[L]), h) {
290
- const O = cn(i, r, $);
291
- N.push(z[O[0]], z[O[1]]);
289
+ if (d && U.push(z[L]), h) {
290
+ const D = hn(i, r, $);
291
+ U.push(z[D[0]], z[D[1]]);
292
292
  }
293
293
  if (G = [...G, {
294
294
  placement: i,
295
- overflows: N
296
- }], !N.every((O) => O <= 0)) {
297
- var Le, he;
298
- const O = (((Le = s.flip) == null ? void 0 : Le.index) || 0) + 1, Se = T[O];
299
- if (Se)
295
+ overflows: U
296
+ }], !U.every((D) => D <= 0)) {
297
+ var Te, pe;
298
+ const D = (((Te = s.flip) == null ? void 0 : Te.index) || 0) + 1, Ee = T[D];
299
+ if (Ee)
300
300
  return {
301
301
  data: {
302
- index: O,
302
+ index: D,
303
303
  overflows: G
304
304
  },
305
305
  reset: {
306
- placement: Se
306
+ placement: Ee
307
307
  }
308
308
  };
309
- let J = (he = G.filter((H) => H.overflows[0] <= 0).sort((H, D) => H.overflows[1] - D.overflows[1])[0]) == null ? void 0 : he.placement;
309
+ let J = (pe = G.filter((N) => N.overflows[0] <= 0).sort((N, F) => N.overflows[1] - F.overflows[1])[0]) == null ? void 0 : pe.placement;
310
310
  if (!J)
311
311
  switch (f) {
312
312
  case "bestFit": {
313
- var pe;
314
- const H = (pe = G.filter((D) => {
313
+ var ge;
314
+ const N = (ge = G.filter((F) => {
315
315
  if (I) {
316
- const F = de(D.placement);
317
- return F === S || // Create a bias to the `y` side axis due to horizontal
316
+ const O = fe(F.placement);
317
+ return O === S || // Create a bias to the `y` side axis due to horizontal
318
318
  // reading directions favoring greater width.
319
- F === "y";
319
+ O === "y";
320
320
  }
321
321
  return !0;
322
- }).map((D) => [D.placement, D.overflows.filter((F) => F > 0).reduce((F, Q) => F + Q, 0)]).sort((D, F) => D[1] - F[1])[0]) == null ? void 0 : pe[0];
323
- H && (J = H);
322
+ }).map((F) => [F.placement, F.overflows.filter((O) => O > 0).reduce((O, Q) => O + Q, 0)]).sort((F, O) => F[1] - O[1])[0]) == null ? void 0 : ge[0];
323
+ N && (J = N);
324
324
  break;
325
325
  }
326
326
  case "initialPlacement":
@@ -338,12 +338,12 @@ const gn = function(e) {
338
338
  }
339
339
  };
340
340
  };
341
- async function vn(e, t) {
341
+ async function xn(e, t) {
342
342
  const {
343
343
  placement: n,
344
344
  platform: o,
345
345
  elements: i
346
- } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = ie(n), a = De(n), l = de(n) === "y", c = ["left", "top"].includes(r) ? -1 : 1, d = s && l ? -1 : 1, h = Oe(t, e);
346
+ } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = re(n), a = Fe(n), l = fe(n) === "y", c = ["left", "top"].includes(r) ? -1 : 1, d = s && l ? -1 : 1, h = De(t, e);
347
347
  let {
348
348
  mainAxis: g,
349
349
  crossAxis: f,
@@ -366,7 +366,7 @@ async function vn(e, t) {
366
366
  y: f * d
367
367
  };
368
368
  }
369
- const bn = function(e) {
369
+ const Ln = function(e) {
370
370
  return e === void 0 && (e = 0), {
371
371
  name: "offset",
372
372
  options: e,
@@ -377,7 +377,7 @@ const bn = function(e) {
377
377
  y: s,
378
378
  placement: r,
379
379
  middlewareData: a
380
- } = t, l = await vn(t, e);
380
+ } = t, l = await xn(t, e);
381
381
  return r === ((n = a.offset) == null ? void 0 : n.placement) && (o = a.arrow) != null && o.alignmentOffset ? {} : {
382
382
  x: i + l.x,
383
383
  y: s + l.y,
@@ -388,7 +388,7 @@ const bn = function(e) {
388
388
  };
389
389
  }
390
390
  };
391
- }, Cn = function(e) {
391
+ }, Sn = function(e) {
392
392
  return e === void 0 && (e = {}), {
393
393
  name: "shift",
394
394
  options: e,
@@ -413,18 +413,18 @@ const bn = function(e) {
413
413
  }
414
414
  },
415
415
  ...l
416
- } = Oe(e, t), c = {
416
+ } = De(e, t), c = {
417
417
  x: n,
418
418
  y: o
419
- }, d = await Mt(t, l), h = de(ie(i)), g = Rt(h);
419
+ }, d = await _t(t, l), h = fe(re(i)), g = Ot(h);
420
420
  let f = c[g], m = c[h];
421
421
  if (s) {
422
422
  const y = g === "y" ? "top" : "left", L = g === "y" ? "bottom" : "right", S = f + d[y], x = f - d[L];
423
- f = pt(S, f, x);
423
+ f = wt(S, f, x);
424
424
  }
425
425
  if (r) {
426
426
  const y = h === "y" ? "top" : "left", L = h === "y" ? "bottom" : "right", S = m + d[y], x = m - d[L];
427
- m = pt(S, m, x);
427
+ m = wt(S, m, x);
428
428
  }
429
429
  const w = a.fn({
430
430
  ...t,
@@ -441,8 +441,8 @@ const bn = function(e) {
441
441
  }
442
442
  };
443
443
  };
444
- function se(e) {
445
- return et(e) ? (e.nodeName || "").toLowerCase() : "#document";
444
+ function le(e) {
445
+ return Qe(e) ? (e.nodeName || "").toLowerCase() : "#document";
446
446
  }
447
447
  function _(e) {
448
448
  var t;
@@ -450,33 +450,33 @@ function _(e) {
450
450
  }
451
451
  function q(e) {
452
452
  var t;
453
- return (t = (et(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
453
+ return (t = (Qe(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
454
454
  }
455
- function et(e) {
455
+ function Qe(e) {
456
456
  return e instanceof Node || e instanceof _(e).Node;
457
457
  }
458
- function U(e) {
458
+ function Z(e) {
459
459
  return e instanceof Element || e instanceof _(e).Element;
460
460
  }
461
- function Z(e) {
461
+ function j(e) {
462
462
  return e instanceof HTMLElement || e instanceof _(e).HTMLElement;
463
463
  }
464
- function vt(e) {
464
+ function xt(e) {
465
465
  return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof _(e).ShadowRoot;
466
466
  }
467
- function xe(e) {
467
+ function Se(e) {
468
468
  const {
469
469
  overflow: t,
470
470
  overflowX: n,
471
471
  overflowY: o,
472
472
  display: i
473
- } = V(e);
473
+ } = H(e);
474
474
  return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(i);
475
475
  }
476
- function wn(e) {
477
- return ["table", "td", "th"].includes(se(e));
476
+ function Tn(e) {
477
+ return ["table", "td", "th"].includes(le(e));
478
478
  }
479
- function Fe(e) {
479
+ function Oe(e) {
480
480
  return [":popover-open", ":modal"].some((t) => {
481
481
  try {
482
482
  return e.matches(t);
@@ -485,32 +485,32 @@ function Fe(e) {
485
485
  }
486
486
  });
487
487
  }
488
- function tt(e) {
489
- const t = nt(), n = V(e);
488
+ function et(e) {
489
+ const t = tt(), n = H(e);
490
490
  return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
491
491
  }
492
- function yn(e) {
492
+ function En(e) {
493
493
  let t = Y(e);
494
- for (; Z(t) && !fe(t); ) {
495
- if (Fe(t))
494
+ for (; j(t) && !me(t); ) {
495
+ if (Oe(t))
496
496
  return null;
497
- if (tt(t))
497
+ if (et(t))
498
498
  return t;
499
499
  t = Y(t);
500
500
  }
501
501
  return null;
502
502
  }
503
- function nt() {
503
+ function tt() {
504
504
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
505
505
  }
506
- function fe(e) {
507
- return ["html", "body", "#document"].includes(se(e));
506
+ function me(e) {
507
+ return ["html", "body", "#document"].includes(le(e));
508
508
  }
509
- function V(e) {
509
+ function H(e) {
510
510
  return _(e).getComputedStyle(e);
511
511
  }
512
512
  function We(e) {
513
- return U(e) ? {
513
+ return Z(e) ? {
514
514
  scrollLeft: e.scrollLeft,
515
515
  scrollTop: e.scrollTop
516
516
  } : {
@@ -519,78 +519,78 @@ function We(e) {
519
519
  };
520
520
  }
521
521
  function Y(e) {
522
- if (se(e) === "html")
522
+ if (le(e) === "html")
523
523
  return e;
524
524
  const t = (
525
525
  // Step into the shadow DOM of the parent of a slotted node.
526
526
  e.assignedSlot || // DOM Element detected.
527
527
  e.parentNode || // ShadowRoot detected.
528
- vt(e) && e.host || // Fallback.
528
+ xt(e) && e.host || // Fallback.
529
529
  q(e)
530
530
  );
531
- return vt(t) ? t.host : t;
531
+ return xt(t) ? t.host : t;
532
532
  }
533
- function Ot(e) {
533
+ function Pt(e) {
534
534
  const t = Y(e);
535
- return fe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && xe(t) ? t : Ot(t);
535
+ return me(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : j(t) && Se(t) ? t : Pt(t);
536
536
  }
537
- function ye(e, t, n) {
537
+ function Le(e, t, n) {
538
538
  var o;
539
539
  t === void 0 && (t = []), n === void 0 && (n = !0);
540
- const i = Ot(e), s = i === ((o = e.ownerDocument) == null ? void 0 : o.body), r = _(i);
541
- return s ? t.concat(r, r.visualViewport || [], xe(i) ? i : [], r.frameElement && n ? ye(r.frameElement) : []) : t.concat(i, ye(i, [], n));
540
+ const i = Pt(e), s = i === ((o = e.ownerDocument) == null ? void 0 : o.body), r = _(i);
541
+ return s ? t.concat(r, r.visualViewport || [], Se(i) ? i : [], r.frameElement && n ? Le(r.frameElement) : []) : t.concat(i, Le(i, [], n));
542
542
  }
543
- function Dt(e) {
544
- const t = V(e);
543
+ function Nt(e) {
544
+ const t = H(e);
545
545
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
546
- const i = Z(e), s = i ? e.offsetWidth : n, r = i ? e.offsetHeight : o, a = Be(n) !== s || Be(o) !== r;
546
+ const i = j(e), s = i ? e.offsetWidth : n, r = i ? e.offsetHeight : o, a = Be(n) !== s || Be(o) !== r;
547
547
  return a && (n = s, o = r), {
548
548
  width: n,
549
549
  height: o,
550
550
  $: a
551
551
  };
552
552
  }
553
- function ot(e) {
554
- return U(e) ? e : e.contextElement;
553
+ function nt(e) {
554
+ return Z(e) ? e : e.contextElement;
555
555
  }
556
- function ue(e) {
557
- const t = ot(e);
558
- if (!Z(t))
556
+ function de(e) {
557
+ const t = nt(e);
558
+ if (!j(t))
559
559
  return X(1);
560
560
  const n = t.getBoundingClientRect(), {
561
561
  width: o,
562
562
  height: i,
563
563
  $: s
564
- } = Dt(t);
564
+ } = Nt(t);
565
565
  let r = (s ? Be(n.width) : n.width) / o, a = (s ? Be(n.height) : n.height) / i;
566
566
  return (!r || !Number.isFinite(r)) && (r = 1), (!a || !Number.isFinite(a)) && (a = 1), {
567
567
  x: r,
568
568
  y: a
569
569
  };
570
570
  }
571
- const xn = /* @__PURE__ */ X(0);
572
- function Ft(e) {
571
+ const An = /* @__PURE__ */ X(0);
572
+ function Vt(e) {
573
573
  const t = _(e);
574
- return !nt() || !t.visualViewport ? xn : {
574
+ return !tt() || !t.visualViewport ? An : {
575
575
  x: t.visualViewport.offsetLeft,
576
576
  y: t.visualViewport.offsetTop
577
577
  };
578
578
  }
579
- function Ln(e, t, n) {
579
+ function $n(e, t, n) {
580
580
  return t === void 0 && (t = !1), !n || t && n !== _(e) ? !1 : t;
581
581
  }
582
- function re(e, t, n, o) {
582
+ function se(e, t, n, o) {
583
583
  t === void 0 && (t = !1), n === void 0 && (n = !1);
584
- const i = e.getBoundingClientRect(), s = ot(e);
584
+ const i = e.getBoundingClientRect(), s = nt(e);
585
585
  let r = X(1);
586
- t && (o ? U(o) && (r = ue(o)) : r = ue(e));
587
- const a = Ln(s, n, o) ? Ft(s) : X(0);
586
+ t && (o ? Z(o) && (r = de(o)) : r = de(e));
587
+ const a = $n(s, n, o) ? Vt(s) : X(0);
588
588
  let l = (i.left + a.x) / r.x, c = (i.top + a.y) / r.y, d = i.width / r.x, h = i.height / r.y;
589
589
  if (s) {
590
- const g = _(s), f = o && U(o) ? _(o) : o;
590
+ const g = _(s), f = o && Z(o) ? _(o) : o;
591
591
  let m = g, w = m.frameElement;
592
592
  for (; w && o && f !== m; ) {
593
- const y = ue(w), L = w.getBoundingClientRect(), S = V(w), x = L.left + (w.clientLeft + parseFloat(S.paddingLeft)) * y.x, $ = L.top + (w.clientTop + parseFloat(S.paddingTop)) * y.y;
593
+ const y = de(w), L = w.getBoundingClientRect(), S = H(w), x = L.left + (w.clientLeft + parseFloat(S.paddingLeft)) * y.x, $ = L.top + (w.clientTop + parseFloat(S.paddingTop)) * y.y;
594
594
  l *= y.x, c *= y.y, d *= y.x, h *= y.y, l += x, c += $, m = _(w), w = m.frameElement;
595
595
  }
596
596
  }
@@ -601,24 +601,24 @@ function re(e, t, n, o) {
601
601
  y: c
602
602
  });
603
603
  }
604
- function Sn(e) {
604
+ function kn(e) {
605
605
  let {
606
606
  elements: t,
607
607
  rect: n,
608
608
  offsetParent: o,
609
609
  strategy: i
610
610
  } = e;
611
- const s = i === "fixed", r = q(o), a = t ? Fe(t.floating) : !1;
611
+ const s = i === "fixed", r = q(o), a = t ? Oe(t.floating) : !1;
612
612
  if (o === r || a && s)
613
613
  return n;
614
614
  let l = {
615
615
  scrollLeft: 0,
616
616
  scrollTop: 0
617
617
  }, c = X(1);
618
- const d = X(0), h = Z(o);
619
- if ((h || !h && !s) && ((se(o) !== "body" || xe(r)) && (l = We(o)), Z(o))) {
620
- const g = re(o);
621
- c = ue(o), d.x = g.x + o.clientLeft, d.y = g.y + o.clientTop;
618
+ const d = X(0), h = j(o);
619
+ if ((h || !h && !s) && ((le(o) !== "body" || Se(r)) && (l = We(o)), j(o))) {
620
+ const g = se(o);
621
+ c = de(o), d.x = g.x + o.clientLeft, d.y = g.y + o.clientTop;
622
622
  }
623
623
  return {
624
624
  width: n.width * c.x,
@@ -627,29 +627,29 @@ function Sn(e) {
627
627
  y: n.y * c.y - l.scrollTop * c.y + d.y
628
628
  };
629
629
  }
630
- function Tn(e) {
630
+ function Rn(e) {
631
631
  return Array.from(e.getClientRects());
632
632
  }
633
- function Wt(e) {
634
- return re(q(e)).left + We(e).scrollLeft;
633
+ function Ht(e) {
634
+ return se(q(e)).left + We(e).scrollLeft;
635
635
  }
636
- function En(e) {
637
- const t = q(e), n = We(e), o = e.ownerDocument.body, i = ne(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), s = ne(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
638
- let r = -n.scrollLeft + Wt(e);
636
+ function Bn(e) {
637
+ const t = q(e), n = We(e), o = e.ownerDocument.body, i = oe(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), s = oe(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
638
+ let r = -n.scrollLeft + Ht(e);
639
639
  const a = -n.scrollTop;
640
- return V(o).direction === "rtl" && (r += ne(t.clientWidth, o.clientWidth) - i), {
640
+ return H(o).direction === "rtl" && (r += oe(t.clientWidth, o.clientWidth) - i), {
641
641
  width: i,
642
642
  height: s,
643
643
  x: r,
644
644
  y: a
645
645
  };
646
646
  }
647
- function An(e, t) {
647
+ function In(e, t) {
648
648
  const n = _(e), o = q(e), i = n.visualViewport;
649
649
  let s = o.clientWidth, r = o.clientHeight, a = 0, l = 0;
650
650
  if (i) {
651
651
  s = i.width, r = i.height;
652
- const c = nt();
652
+ const c = tt();
653
653
  (!c || c && t === "fixed") && (a = i.offsetLeft, l = i.offsetTop);
654
654
  }
655
655
  return {
@@ -659,8 +659,8 @@ function An(e, t) {
659
659
  y: l
660
660
  };
661
661
  }
662
- function $n(e, t) {
663
- const n = re(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, s = Z(e) ? ue(e) : X(1), r = e.clientWidth * s.x, a = e.clientHeight * s.y, l = i * s.x, c = o * s.y;
662
+ function Mn(e, t) {
663
+ const n = se(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, s = j(e) ? de(e) : X(1), r = e.clientWidth * s.x, a = e.clientHeight * s.y, l = i * s.x, c = o * s.y;
664
664
  return {
665
665
  width: r,
666
666
  height: a,
@@ -668,16 +668,16 @@ function $n(e, t) {
668
668
  y: c
669
669
  };
670
670
  }
671
- function bt(e, t, n) {
671
+ function Lt(e, t, n) {
672
672
  let o;
673
673
  if (t === "viewport")
674
- o = An(e, n);
674
+ o = In(e, n);
675
675
  else if (t === "document")
676
- o = En(q(e));
677
- else if (U(t))
678
- o = $n(t, n);
676
+ o = Bn(q(e));
677
+ else if (Z(t))
678
+ o = Mn(t, n);
679
679
  else {
680
- const i = Ft(e);
680
+ const i = Vt(e);
681
681
  o = {
682
682
  ...t,
683
683
  x: t.x - i.x,
@@ -686,34 +686,34 @@ function bt(e, t, n) {
686
686
  }
687
687
  return Me(o);
688
688
  }
689
- function zt(e, t) {
689
+ function Ut(e, t) {
690
690
  const n = Y(e);
691
- return n === t || !U(n) || fe(n) ? !1 : V(n).position === "fixed" || zt(n, t);
691
+ return n === t || !Z(n) || me(n) ? !1 : H(n).position === "fixed" || Ut(n, t);
692
692
  }
693
- function kn(e, t) {
693
+ function Dn(e, t) {
694
694
  const n = t.get(e);
695
695
  if (n)
696
696
  return n;
697
- let o = ye(e, [], !1).filter((a) => U(a) && se(a) !== "body"), i = null;
698
- const s = V(e).position === "fixed";
697
+ let o = Le(e, [], !1).filter((a) => Z(a) && le(a) !== "body"), i = null;
698
+ const s = H(e).position === "fixed";
699
699
  let r = s ? Y(e) : e;
700
- for (; U(r) && !fe(r); ) {
701
- const a = V(r), l = tt(r);
702
- !l && a.position === "fixed" && (i = null), (s ? !l && !i : !l && a.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || xe(r) && !l && zt(e, r)) ? o = o.filter((d) => d !== r) : i = a, r = Y(r);
700
+ for (; Z(r) && !me(r); ) {
701
+ const a = H(r), l = et(r);
702
+ !l && a.position === "fixed" && (i = null), (s ? !l && !i : !l && a.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Se(r) && !l && Ut(e, r)) ? o = o.filter((d) => d !== r) : i = a, r = Y(r);
703
703
  }
704
704
  return t.set(e, o), o;
705
705
  }
706
- function Rn(e) {
706
+ function Fn(e) {
707
707
  let {
708
708
  element: t,
709
709
  boundary: n,
710
710
  rootBoundary: o,
711
711
  strategy: i
712
712
  } = e;
713
- const r = [...n === "clippingAncestors" ? Fe(t) ? [] : kn(t, this._c) : [].concat(n), o], a = r[0], l = r.reduce((c, d) => {
714
- const h = bt(t, d, i);
715
- return c.top = ne(h.top, c.top), c.right = Re(h.right, c.right), c.bottom = Re(h.bottom, c.bottom), c.left = ne(h.left, c.left), c;
716
- }, bt(t, a, i));
713
+ const r = [...n === "clippingAncestors" ? Oe(t) ? [] : Dn(t, this._c) : [].concat(n), o], a = r[0], l = r.reduce((c, d) => {
714
+ const h = Lt(t, d, i);
715
+ return c.top = oe(h.top, c.top), c.right = Re(h.right, c.right), c.bottom = Re(h.bottom, c.bottom), c.left = oe(h.left, c.left), c;
716
+ }, Lt(t, a, i));
717
717
  return {
718
718
  width: l.right - l.left,
719
719
  height: l.bottom - l.top,
@@ -721,28 +721,28 @@ function Rn(e) {
721
721
  y: l.top
722
722
  };
723
723
  }
724
- function Bn(e) {
724
+ function On(e) {
725
725
  const {
726
726
  width: t,
727
727
  height: n
728
- } = Dt(e);
728
+ } = Nt(e);
729
729
  return {
730
730
  width: t,
731
731
  height: n
732
732
  };
733
733
  }
734
- function In(e, t, n) {
735
- const o = Z(t), i = q(t), s = n === "fixed", r = re(e, !0, s, t);
734
+ function Wn(e, t, n) {
735
+ const o = j(t), i = q(t), s = n === "fixed", r = se(e, !0, s, t);
736
736
  let a = {
737
737
  scrollLeft: 0,
738
738
  scrollTop: 0
739
739
  };
740
740
  const l = X(0);
741
741
  if (o || !o && !s)
742
- if ((se(t) !== "body" || xe(i)) && (a = We(t)), o) {
743
- const h = re(t, !0, s, t);
742
+ if ((le(t) !== "body" || Se(i)) && (a = We(t)), o) {
743
+ const h = se(t, !0, s, t);
744
744
  l.x = h.x + t.clientLeft, l.y = h.y + t.clientTop;
745
- } else i && (l.x = Wt(i));
745
+ } else i && (l.x = Ht(i));
746
746
  const c = r.left + a.scrollLeft - l.x, d = r.top + a.scrollTop - l.y;
747
747
  return {
748
748
  x: c,
@@ -751,34 +751,34 @@ function In(e, t, n) {
751
751
  height: r.height
752
752
  };
753
753
  }
754
- function qe(e) {
755
- return V(e).position === "static";
754
+ function Ze(e) {
755
+ return H(e).position === "static";
756
756
  }
757
- function Ct(e, t) {
758
- return !Z(e) || V(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
757
+ function St(e, t) {
758
+ return !j(e) || H(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
759
759
  }
760
- function _t(e, t) {
760
+ function Zt(e, t) {
761
761
  const n = _(e);
762
- if (Fe(e))
762
+ if (Oe(e))
763
763
  return n;
764
- if (!Z(e)) {
764
+ if (!j(e)) {
765
765
  let i = Y(e);
766
- for (; i && !fe(i); ) {
767
- if (U(i) && !qe(i))
766
+ for (; i && !me(i); ) {
767
+ if (Z(i) && !Ze(i))
768
768
  return i;
769
769
  i = Y(i);
770
770
  }
771
771
  return n;
772
772
  }
773
- let o = Ct(e, t);
774
- for (; o && wn(o) && qe(o); )
775
- o = Ct(o, t);
776
- return o && fe(o) && qe(o) && !tt(o) ? n : o || yn(e) || n;
773
+ let o = St(e, t);
774
+ for (; o && Tn(o) && Ze(o); )
775
+ o = St(o, t);
776
+ return o && me(o) && Ze(o) && !et(o) ? n : o || En(e) || n;
777
777
  }
778
- const Mn = async function(e) {
779
- const t = this.getOffsetParent || _t, n = this.getDimensions, o = await n(e.floating);
778
+ const zn = async function(e) {
779
+ const t = this.getOffsetParent || Zt, n = this.getDimensions, o = await n(e.floating);
780
780
  return {
781
- reference: In(e.reference, await t(e.floating), e.strategy),
781
+ reference: Wn(e.reference, await t(e.floating), e.strategy),
782
782
  floating: {
783
783
  x: 0,
784
784
  y: 0,
@@ -787,22 +787,22 @@ const Mn = async function(e) {
787
787
  }
788
788
  };
789
789
  };
790
- function On(e) {
791
- return V(e).direction === "rtl";
790
+ function _n(e) {
791
+ return H(e).direction === "rtl";
792
792
  }
793
- const Dn = {
794
- convertOffsetParentRelativeRectToViewportRelativeRect: Sn,
793
+ const Pn = {
794
+ convertOffsetParentRelativeRectToViewportRelativeRect: kn,
795
795
  getDocumentElement: q,
796
- getClippingRect: Rn,
797
- getOffsetParent: _t,
798
- getElementRects: Mn,
799
- getClientRects: Tn,
800
- getDimensions: Bn,
801
- getScale: ue,
802
- isElement: U,
803
- isRTL: On
796
+ getClippingRect: Fn,
797
+ getOffsetParent: Zt,
798
+ getElementRects: zn,
799
+ getClientRects: Rn,
800
+ getDimensions: On,
801
+ getScale: de,
802
+ isElement: Z,
803
+ isRTL: _n
804
804
  };
805
- function Fn(e, t) {
805
+ function Nn(e, t) {
806
806
  let n = null, o;
807
807
  const i = q(e);
808
808
  function s() {
@@ -819,9 +819,9 @@ function Fn(e, t) {
819
819
  } = e.getBoundingClientRect();
820
820
  if (a || t(), !h || !g)
821
821
  return;
822
- const f = $e(d), m = $e(i.clientWidth - (c + h)), w = $e(i.clientHeight - (d + g)), y = $e(c), S = {
822
+ const f = ke(d), m = ke(i.clientWidth - (c + h)), w = ke(i.clientHeight - (d + g)), y = ke(c), S = {
823
823
  rootMargin: -f + "px " + -m + "px " + -w + "px " + -y + "px",
824
- threshold: ne(0, Re(1, l)) || 1
824
+ threshold: oe(0, Re(1, l)) || 1
825
825
  };
826
826
  let x = !0;
827
827
  function $(E) {
@@ -848,7 +848,7 @@ function Fn(e, t) {
848
848
  }
849
849
  return r(!0), s;
850
850
  }
851
- function Wn(e, t, n, o) {
851
+ function Vn(e, t, n, o) {
852
852
  o === void 0 && (o = {});
853
853
  const {
854
854
  ancestorScroll: i = !0,
@@ -856,13 +856,13 @@ function Wn(e, t, n, o) {
856
856
  elementResize: r = typeof ResizeObserver == "function",
857
857
  layoutShift: a = typeof IntersectionObserver == "function",
858
858
  animationFrame: l = !1
859
- } = o, c = ot(e), d = i || s ? [...c ? ye(c) : [], ...ye(t)] : [];
859
+ } = o, c = nt(e), d = i || s ? [...c ? Le(c) : [], ...Le(t)] : [];
860
860
  d.forEach((L) => {
861
861
  i && L.addEventListener("scroll", n, {
862
862
  passive: !0
863
863
  }), s && L.addEventListener("resize", n);
864
864
  });
865
- const h = c && a ? Fn(c, n) : null;
865
+ const h = c && a ? Nn(c, n) : null;
866
866
  let g = -1, f = null;
867
867
  r && (f = new ResizeObserver((L) => {
868
868
  let [S] = L;
@@ -871,10 +871,10 @@ function Wn(e, t, n, o) {
871
871
  (x = f) == null || x.observe(t);
872
872
  })), n();
873
873
  }), c && !l && f.observe(c), f.observe(t));
874
- let m, w = l ? re(e) : null;
874
+ let m, w = l ? se(e) : null;
875
875
  l && y();
876
876
  function y() {
877
- const L = re(e);
877
+ const L = se(e);
878
878
  w && (L.x !== w.x || L.y !== w.y || L.width !== w.width || L.height !== w.height) && n(), w = L, m = requestAnimationFrame(y);
879
879
  }
880
880
  return n(), () => {
@@ -884,54 +884,54 @@ function Wn(e, t, n, o) {
884
884
  }), h == null || h(), (L = f) == null || L.disconnect(), f = null, l && cancelAnimationFrame(m);
885
885
  };
886
886
  }
887
- const zn = bn, _n = Cn, Pn = gn, Vn = (e, t, n) => {
887
+ const Hn = Ln, Un = Sn, Zn = yn, jn = (e, t, n) => {
888
888
  const o = /* @__PURE__ */ new Map(), i = {
889
- platform: Dn,
889
+ platform: Pn,
890
890
  ...n
891
891
  }, s = {
892
892
  ...i.platform,
893
893
  _c: o
894
894
  };
895
- return pn(e, t, {
895
+ return wn(e, t, {
896
896
  ...i,
897
897
  platform: s
898
898
  });
899
899
  };
900
- function Nn(e) {
900
+ function qn(e) {
901
901
  return e != null && typeof e == "object" && "$el" in e;
902
902
  }
903
- function wt(e) {
904
- if (Nn(e)) {
903
+ function Tt(e) {
904
+ if (qn(e)) {
905
905
  const t = e.$el;
906
- return et(t) && se(t) === "#comment" ? null : t;
906
+ return Qe(t) && le(t) === "#comment" ? null : t;
907
907
  }
908
908
  return e;
909
909
  }
910
- function ve(e) {
911
- return typeof e == "function" ? e() : Ce(e);
910
+ function Ce(e) {
911
+ return typeof e == "function" ? e() : ye(e);
912
912
  }
913
- function Pt(e) {
913
+ function jt(e) {
914
914
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
915
915
  }
916
- function yt(e, t) {
917
- const n = Pt(e);
916
+ function Et(e, t) {
917
+ const n = jt(e);
918
918
  return Math.round(t * n) / n;
919
919
  }
920
- function Hn(e, t, n) {
920
+ function Xn(e, t, n) {
921
921
  n === void 0 && (n = {});
922
922
  const o = n.whileElementsMounted, i = B(() => {
923
923
  var T;
924
- return (T = ve(n.open)) != null ? T : !0;
925
- }), s = B(() => ve(n.middleware)), r = B(() => {
924
+ return (T = Ce(n.open)) != null ? T : !0;
925
+ }), s = B(() => Ce(n.middleware)), r = B(() => {
926
926
  var T;
927
- return (T = ve(n.placement)) != null ? T : "bottom";
927
+ return (T = Ce(n.placement)) != null ? T : "bottom";
928
928
  }), a = B(() => {
929
929
  var T;
930
- return (T = ve(n.strategy)) != null ? T : "absolute";
930
+ return (T = Ce(n.strategy)) != null ? T : "absolute";
931
931
  }), l = B(() => {
932
932
  var T;
933
- return (T = ve(n.transform)) != null ? T : !0;
934
- }), c = B(() => wt(e.value)), d = B(() => wt(t.value)), h = R(0), g = R(0), f = R(a.value), m = R(r.value), w = nn({}), y = R(!1), L = B(() => {
933
+ return (T = Ce(n.transform)) != null ? T : !0;
934
+ }), c = B(() => Tt(e.value)), d = B(() => Tt(t.value)), h = R(0), g = R(0), f = R(a.value), m = R(r.value), w = an({}), y = R(!1), L = B(() => {
935
935
  const T = {
936
936
  position: f.value,
937
937
  left: "0",
@@ -939,22 +939,22 @@ function Hn(e, t, n) {
939
939
  };
940
940
  if (!d.value)
941
941
  return T;
942
- const z = yt(d.value, h.value), N = yt(d.value, g.value);
942
+ const z = Et(d.value, h.value), U = Et(d.value, g.value);
943
943
  return l.value ? {
944
944
  ...T,
945
- transform: "translate(" + z + "px, " + N + "px)",
946
- ...Pt(d.value) >= 1.5 && {
945
+ transform: "translate(" + z + "px, " + U + "px)",
946
+ ...jt(d.value) >= 1.5 && {
947
947
  willChange: "transform"
948
948
  }
949
949
  } : {
950
950
  position: f.value,
951
951
  left: z + "px",
952
- top: N + "px"
952
+ top: U + "px"
953
953
  };
954
954
  });
955
955
  let S;
956
956
  function x() {
957
- c.value == null || d.value == null || Vn(c.value, d.value, {
957
+ c.value == null || d.value == null || jn(c.value, d.value, {
958
958
  middleware: s.value,
959
959
  placement: r.value,
960
960
  strategy: a.value
@@ -978,67 +978,67 @@ function Hn(e, t, n) {
978
978
  function I() {
979
979
  i.value || (y.value = !1);
980
980
  }
981
- return te([s, r, a], x, {
981
+ return ne([s, r, a], x, {
982
982
  flush: "sync"
983
- }), te([c, d], E, {
983
+ }), ne([c, d], E, {
984
984
  flush: "sync"
985
- }), te(i, I, {
985
+ }), ne(i, I, {
986
986
  flush: "sync"
987
- }), on() && rn($), {
988
- x: ce(h),
989
- y: ce(g),
990
- strategy: ce(f),
991
- placement: ce(m),
992
- middlewareData: ce(w),
993
- isPositioned: ce(y),
987
+ }), cn() && un($), {
988
+ x: ue(h),
989
+ y: ue(g),
990
+ strategy: ue(f),
991
+ placement: ue(m),
992
+ middlewareData: ue(w),
993
+ isPositioned: ue(y),
994
994
  floatingStyles: L,
995
995
  update: x
996
996
  };
997
997
  }
998
- const Un = "data:image/svg+xml,%3csvg%20width='1324'%20height='1326'%20viewBox='0%200%201324%201326'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='141'%20y='78'%20width='1042'%20height='1170'%20fill='white'/%3e%3cpath%20d='M184.533%201.99984C135.867%207.19984%2089.8666%2029.8665%2056.4%2065.1998C29.6%2093.4665%2012.5333%20126.266%203.73329%20166.4L0.666626%20180V663.333V1146.67L3.73329%201160.27C12.5333%201200.4%2029.6%201233.2%2056.4%201261.47C90.4%201297.33%20135.333%201319.33%20185.6%201324.67C203.333%201326.53%201122.53%201326.4%201139.73%201324.53C1188.53%201319.33%201229.07%201299.73%201264.13%201264.8C1294.27%201234.67%201311.47%201202.67%201320.8%201159.33C1323.2%201148.4%201323.33%201130%201323.33%20663.333C1323.33%20196.667%201323.2%20178.266%201320.8%20167.333C1311.47%20124%201294.27%2091.9998%201264.13%2061.8664C1229.07%2026.9331%201188.53%207.33314%201139.73%202.13314C1124.67%200.399809%20200%200.399842%20184.533%201.99984ZM732.933%20151.466C746.8%20152.933%20763.333%20157.6%20774%20163.067C800.267%20176.267%20822.4%20200.4%20833.2%20227.333C841.867%20249.333%20841.467%20233.467%20841.067%20502C840.533%20777.6%20841.733%20750.267%20829.2%20776.133C822.133%20790.933%20810.667%20806.533%20800.267%20815.2C795.2%20819.6%20793.2%20822.267%20792%20827.067C786.133%20848.267%20768.667%20885.867%20755.2%20906.133C724.533%20952%20681.2%20986.133%20624%201009.33C615.6%201012.8%20608.4%201015.87%20608.133%201016.13C607.867%201016.27%20614.533%201023.33%20622.933%201031.6C633.467%201042.13%20639.333%201049.07%20642.133%201054.4C646.933%201063.87%20645.467%201064%20672.667%201050.8C724.933%201025.47%20762.933%20994.8%20794.933%20952C811.467%20929.867%20829.867%20895.333%20839.333%20868.267C841.333%20862.667%20843.467%20858%20844.133%20858C844.667%20858%20845.6%20859.333%20846.133%20860.933C848.267%20868.133%20863.333%20900.8%20870.133%20913.2C898%20963.867%20931.6%201001.2%20975.333%201030.27C989.867%201040%201017.2%201054.4%201031.6%201059.73L1037.2%201061.87L1041.33%201054.67C1048.4%201042.4%201056.67%201032.27%201067.87%201022.4L1078.67%201012.8L1071.6%201010.27C1067.87%201008.8%201060.53%201006%201055.6%201004.13C1040.93%20998.533%201013.73%20984%201000%20974.267C985.733%20964.133%20960.8%20940.667%20948.933%20926.267C935.067%20909.333%20921.467%20887.467%20910%20864C900.133%20844%20887.2%20812.133%20884.667%20801.6L883.733%20798H971.867H1060V769.333V740.667H963.333H866.533L867.333%20736.267C868.4%20729.867%20870.4%20693.067%20871.467%20662.933C872.267%20639.067%20872.533%20636.4%20874.8%20635.2C878.667%20633.2%20881.333%20626.667%20882.267%20617.333L883.067%20608.667H872.133C864.133%20608.667%20861.067%20608.133%20860.533%20606.8C860%20605.467%20881.2%20466%20886.133%20438.267L886.933%20433.867L977.867%20434.4C1066.67%20434.8%201068.93%20434.8%201079.87%20437.733C1124.8%20449.6%201158.67%20482.533%201172.93%20528L1176.67%20540V808V1076L1172.93%201087.73C1158.53%201133.6%201126.13%201164.93%201078.93%201178.4L1068.67%201181.33L812.667%201181.73C638.8%201182%20552.667%201181.73%20544.4%201180.67C488.667%201174.4%20443.2%201132.13%20432.533%201076.93C431.067%201068.93%20430.667%201046.4%20430.667%20956.667V846.133L340.4%20845.6C252.8%20845.2%20249.6%20845.067%20239.067%20842.267C196.533%20831.067%20164.533%20800.133%20151.067%20757.333L147.333%20745.333V499.333V253.333L150.4%20242C159.067%20209.067%20180.4%20181.866%20210.667%20164.933C221.2%20159.066%20240.4%20152.933%20252.667%20151.6C268.533%20149.733%20716.933%20149.6%20732.933%20151.466Z'%20fill='%233B5695'/%3e%3cpath%20d='M256.533%20213.333C232.933%20218.533%20214.133%20237.067%20209.333%20259.733C208.4%20264.533%20208%20337.2%20208.267%20502L208.667%20737.333L211.733%20744.933C218.533%20761.733%20231.733%20774.533%20248.667%20780.933L256.667%20784L490%20784.4C749.2%20784.8%20734.4%20785.333%20750.133%20776C764.267%20767.6%20775.467%20752.4%20778.667%20737.067C779.6%20732.8%20780%20652.133%20779.733%20494L779.333%20257.333L775.067%20248.267C767.2%20231.6%20756.933%20222%20740.133%20215.467L731.333%20212L498%20211.733C306.8%20211.6%20263.2%20211.867%20256.533%20213.333ZM492%20281.2C546.267%20290.267%20590.267%20311.2%20622.533%20343.333C653.867%20374.667%20671.867%20409.867%20680.267%20456.667C684.133%20478.533%20684.133%20516.267%20680.133%20538.533C665.467%20621.067%20606.933%20684.4%20524%20707.467C490%20716.933%20488.4%20716.933%20392.4%20717.6L305.333%20718.133V498V277.867L391.733%20278.4C465.733%20278.8%20480%20279.2%20492%20281.2Z'%20fill='%233B5695'/%3e%3cpath%20d='M384%20462.933V576.133L345.067%20611.467C306.533%20646.267%20306.133%20646.667%20310.667%20647.067C313.2%20647.333%20348.933%20647.333%20390%20646.933C472.667%20646.267%20477.6%20645.867%20503.6%20637.333C527.6%20629.333%20543.333%20620%20560.267%20603.6C590.133%20574.667%20604.4%20536.267%20602.267%20489.733C600.533%20450.267%20588.267%20420%20564%20395.333C546.8%20377.867%20531.6%20368.4%20506.267%20360C482.933%20352.133%20474.533%20351.2%20427.067%20350.4L384%20349.733V462.933Z'%20fill='%233B5695'/%3e%3c/svg%3e", le = (e, t) => {
998
+ const Yn = "data:image/svg+xml,%3csvg%20width='1324'%20height='1326'%20viewBox='0%200%201324%201326'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='141'%20y='78'%20width='1042'%20height='1170'%20fill='white'/%3e%3cpath%20d='M184.533%201.99984C135.867%207.19984%2089.8666%2029.8665%2056.4%2065.1998C29.6%2093.4665%2012.5333%20126.266%203.73329%20166.4L0.666626%20180V663.333V1146.67L3.73329%201160.27C12.5333%201200.4%2029.6%201233.2%2056.4%201261.47C90.4%201297.33%20135.333%201319.33%20185.6%201324.67C203.333%201326.53%201122.53%201326.4%201139.73%201324.53C1188.53%201319.33%201229.07%201299.73%201264.13%201264.8C1294.27%201234.67%201311.47%201202.67%201320.8%201159.33C1323.2%201148.4%201323.33%201130%201323.33%20663.333C1323.33%20196.667%201323.2%20178.266%201320.8%20167.333C1311.47%20124%201294.27%2091.9998%201264.13%2061.8664C1229.07%2026.9331%201188.53%207.33314%201139.73%202.13314C1124.67%200.399809%20200%200.399842%20184.533%201.99984ZM732.933%20151.466C746.8%20152.933%20763.333%20157.6%20774%20163.067C800.267%20176.267%20822.4%20200.4%20833.2%20227.333C841.867%20249.333%20841.467%20233.467%20841.067%20502C840.533%20777.6%20841.733%20750.267%20829.2%20776.133C822.133%20790.933%20810.667%20806.533%20800.267%20815.2C795.2%20819.6%20793.2%20822.267%20792%20827.067C786.133%20848.267%20768.667%20885.867%20755.2%20906.133C724.533%20952%20681.2%20986.133%20624%201009.33C615.6%201012.8%20608.4%201015.87%20608.133%201016.13C607.867%201016.27%20614.533%201023.33%20622.933%201031.6C633.467%201042.13%20639.333%201049.07%20642.133%201054.4C646.933%201063.87%20645.467%201064%20672.667%201050.8C724.933%201025.47%20762.933%20994.8%20794.933%20952C811.467%20929.867%20829.867%20895.333%20839.333%20868.267C841.333%20862.667%20843.467%20858%20844.133%20858C844.667%20858%20845.6%20859.333%20846.133%20860.933C848.267%20868.133%20863.333%20900.8%20870.133%20913.2C898%20963.867%20931.6%201001.2%20975.333%201030.27C989.867%201040%201017.2%201054.4%201031.6%201059.73L1037.2%201061.87L1041.33%201054.67C1048.4%201042.4%201056.67%201032.27%201067.87%201022.4L1078.67%201012.8L1071.6%201010.27C1067.87%201008.8%201060.53%201006%201055.6%201004.13C1040.93%20998.533%201013.73%20984%201000%20974.267C985.733%20964.133%20960.8%20940.667%20948.933%20926.267C935.067%20909.333%20921.467%20887.467%20910%20864C900.133%20844%20887.2%20812.133%20884.667%20801.6L883.733%20798H971.867H1060V769.333V740.667H963.333H866.533L867.333%20736.267C868.4%20729.867%20870.4%20693.067%20871.467%20662.933C872.267%20639.067%20872.533%20636.4%20874.8%20635.2C878.667%20633.2%20881.333%20626.667%20882.267%20617.333L883.067%20608.667H872.133C864.133%20608.667%20861.067%20608.133%20860.533%20606.8C860%20605.467%20881.2%20466%20886.133%20438.267L886.933%20433.867L977.867%20434.4C1066.67%20434.8%201068.93%20434.8%201079.87%20437.733C1124.8%20449.6%201158.67%20482.533%201172.93%20528L1176.67%20540V808V1076L1172.93%201087.73C1158.53%201133.6%201126.13%201164.93%201078.93%201178.4L1068.67%201181.33L812.667%201181.73C638.8%201182%20552.667%201181.73%20544.4%201180.67C488.667%201174.4%20443.2%201132.13%20432.533%201076.93C431.067%201068.93%20430.667%201046.4%20430.667%20956.667V846.133L340.4%20845.6C252.8%20845.2%20249.6%20845.067%20239.067%20842.267C196.533%20831.067%20164.533%20800.133%20151.067%20757.333L147.333%20745.333V499.333V253.333L150.4%20242C159.067%20209.067%20180.4%20181.866%20210.667%20164.933C221.2%20159.066%20240.4%20152.933%20252.667%20151.6C268.533%20149.733%20716.933%20149.6%20732.933%20151.466Z'%20fill='%233B5695'/%3e%3cpath%20d='M256.533%20213.333C232.933%20218.533%20214.133%20237.067%20209.333%20259.733C208.4%20264.533%20208%20337.2%20208.267%20502L208.667%20737.333L211.733%20744.933C218.533%20761.733%20231.733%20774.533%20248.667%20780.933L256.667%20784L490%20784.4C749.2%20784.8%20734.4%20785.333%20750.133%20776C764.267%20767.6%20775.467%20752.4%20778.667%20737.067C779.6%20732.8%20780%20652.133%20779.733%20494L779.333%20257.333L775.067%20248.267C767.2%20231.6%20756.933%20222%20740.133%20215.467L731.333%20212L498%20211.733C306.8%20211.6%20263.2%20211.867%20256.533%20213.333ZM492%20281.2C546.267%20290.267%20590.267%20311.2%20622.533%20343.333C653.867%20374.667%20671.867%20409.867%20680.267%20456.667C684.133%20478.533%20684.133%20516.267%20680.133%20538.533C665.467%20621.067%20606.933%20684.4%20524%20707.467C490%20716.933%20488.4%20716.933%20392.4%20717.6L305.333%20718.133V498V277.867L391.733%20278.4C465.733%20278.8%20480%20279.2%20492%20281.2Z'%20fill='%233B5695'/%3e%3cpath%20d='M384%20462.933V576.133L345.067%20611.467C306.533%20646.267%20306.133%20646.667%20310.667%20647.067C313.2%20647.333%20348.933%20647.333%20390%20646.933C472.667%20646.267%20477.6%20645.867%20503.6%20637.333C527.6%20629.333%20543.333%20620%20560.267%20603.6C590.133%20574.667%20604.4%20536.267%20602.267%20489.733C600.533%20450.267%20588.267%20420%20564%20395.333C546.8%20377.867%20531.6%20368.4%20506.267%20360C482.933%20352.133%20474.533%20351.2%20427.067%20350.4L384%20349.733V462.933Z'%20fill='%233B5695'/%3e%3c/svg%3e", ae = (e, t) => {
999
999
  const n = e.__vccOpts || e;
1000
1000
  for (const [o, i] of t)
1001
1001
  n[o] = i;
1002
1002
  return n;
1003
- }, Zn = {
1003
+ }, Kn = {
1004
1004
  name: "Logo"
1005
- }, jn = {
1006
- src: Un,
1005
+ }, Gn = {
1006
+ src: Yn,
1007
1007
  alt: "DDict Logo",
1008
1008
  class: "w-6 h-6 cursor-pointer"
1009
1009
  };
1010
- function qn(e, t, n, o, i, s) {
1011
- return p(), v("img", jn);
1010
+ function Jn(e, t, n, o, i, s) {
1011
+ return p(), b("img", Gn);
1012
1012
  }
1013
- const Xn = /* @__PURE__ */ le(Zn, [["render", qn]]), Yn = {}, Kn = {
1013
+ const Qn = /* @__PURE__ */ ae(Kn, [["render", Jn]]), eo = {}, to = {
1014
1014
  class: "w-12 h-12 text-primary",
1015
1015
  xmlns: "http://www.w3.org/2000/svg",
1016
1016
  viewBox: "0 0 24 24"
1017
- }, Gn = /* @__PURE__ */ Je('<circle cx="18" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="12" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="6" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle>', 3), Jn = [
1018
- Gn
1017
+ }, no = /* @__PURE__ */ Ge('<circle cx="18" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="12" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="6" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle>', 3), oo = [
1018
+ no
1019
1019
  ];
1020
- function Qn(e, t) {
1021
- return p(), v("svg", Kn, Jn);
1020
+ function io(e, t) {
1021
+ return p(), b("svg", to, oo);
1022
1022
  }
1023
- const eo = /* @__PURE__ */ le(Yn, [["render", Qn]]), to = { class: "rounded-lg bg-base-100 px-4 py-2 border border-base-300 shadow-lg" }, no = { class: "flex justify-center" }, oo = {
1023
+ const ro = /* @__PURE__ */ ae(eo, [["render", io]]), so = { class: "rounded-lg bg-base-100 px-4 py-2 border border-base-300 shadow-lg" }, lo = { class: "flex justify-center" }, ao = {
1024
1024
  __name: "Loading",
1025
1025
  setup(e) {
1026
- return (t, n) => (p(), v("div", to, [
1027
- C("div", no, [
1028
- W(eo)
1026
+ return (t, n) => (p(), b("div", so, [
1027
+ C("div", lo, [
1028
+ W(ro)
1029
1029
  ])
1030
1030
  ]));
1031
1031
  }
1032
- }, io = {
1032
+ }, co = {
1033
1033
  name: "Phonetic",
1034
1034
  props: ["phonetic"]
1035
- }, ro = { class: "p-0 m-0" }, so = { class: "text-xs font-md text-base-content/60" };
1036
- function lo(e, t, n, o, i, s) {
1037
- return p(), v("p", ro, [
1038
- C("span", so, "/" + oe(n.phonetic) + "/", 1)
1035
+ }, uo = { class: "p-0 m-0" }, fo = { class: "text-xs font-md text-base-content/60" };
1036
+ function mo(e, t, n, o, i, s) {
1037
+ return p(), b("p", uo, [
1038
+ C("span", fo, "/" + ie(n.phonetic) + "/", 1)
1039
1039
  ]);
1040
1040
  }
1041
- const ao = /* @__PURE__ */ le(io, [["render", lo]]), co = { class: "flex flex-col gap-2" }, uo = {
1041
+ const ho = /* @__PURE__ */ ae(co, [["render", mo]]), po = { class: "flex flex-col gap-2" }, go = {
1042
1042
  __name: "Sentences",
1043
1043
  props: {
1044
1044
  sentences: {
@@ -1049,20 +1049,20 @@ const ao = /* @__PURE__ */ le(io, [["render", lo]]), co = { class: "flex flex-co
1049
1049
  setup(e) {
1050
1050
  const t = e, n = B(() => t.sentences.split(`
1051
1051
  `));
1052
- return (o, i) => (p(), v("div", co, [
1053
- (p(!0), v(K, null, me(n.value, (s, r) => (p(), v("p", {
1052
+ return (o, i) => (p(), b("div", po, [
1053
+ (p(!0), b(K, null, he(n.value, (s, r) => (p(), b("p", {
1054
1054
  key: r,
1055
1055
  class: "text-base text-base-content leading-tight p-0 mr-2"
1056
- }, oe(s), 1))), 128))
1056
+ }, ie(s), 1))), 128))
1057
1057
  ]));
1058
1058
  }
1059
- }, fo = /* @__PURE__ */ C("p", { class: "text-sm font-medium text-primary text-center" }, [
1060
- /* @__PURE__ */ we(" 🤔 Don't understand? "),
1059
+ }, vo = /* @__PURE__ */ C("p", { class: "text-sm font-medium text-primary text-center" }, [
1060
+ /* @__PURE__ */ xe(" 🤔 Don't understand? "),
1061
1061
  /* @__PURE__ */ C("span", { class: "text-secondary font-semibold" }, "Try AI"),
1062
- /* @__PURE__ */ we(" ✨ ")
1063
- ], -1), mo = [
1064
- fo
1065
- ], ho = {
1062
+ /* @__PURE__ */ xe(" ✨ ")
1063
+ ], -1), bo = [
1064
+ vo
1065
+ ], Co = {
1066
1066
  __name: "AIPromptButton",
1067
1067
  props: {
1068
1068
  show: {
@@ -1076,18 +1076,18 @@ const ao = /* @__PURE__ */ le(io, [["render", lo]]), co = { class: "flex flex-co
1076
1076
  },
1077
1077
  emits: ["click"],
1078
1078
  setup(e) {
1079
- return (t, n) => e.show ? (p(), v("div", {
1079
+ return (t, n) => e.show ? (p(), b("div", {
1080
1080
  key: 0,
1081
1081
  class: k([
1082
1082
  "mt-2 p-2 bg-gradient-to-r rounded-lg border transition-all duration-200",
1083
1083
  e.isLoading ? "from-primary/5 to-secondary/5 border-primary/10 cursor-not-allowed opacity-75" : "from-primary/10 to-secondary/10 border-primary/20 cursor-pointer hover:from-primary/20 hover:to-secondary/20 hover:border-primary/30"
1084
1084
  ]),
1085
1085
  onClick: n[0] || (n[0] = (o) => !e.isLoading && t.$emit("click"))
1086
- }, mo, 2)) : M("", !0);
1086
+ }, bo, 2)) : M("", !0);
1087
1087
  }
1088
- }, po = /* @__PURE__ */ C("p", { class: "text-sm font-medium text-accent text-center" }, "💡 Need Summary? ✨", -1), go = [
1089
- po
1090
- ], vo = {
1088
+ }, wo = /* @__PURE__ */ C("p", { class: "text-sm font-medium text-accent text-center" }, "💡 Need Summary? ✨", -1), yo = [
1089
+ wo
1090
+ ], xo = {
1091
1091
  __name: "AIExplainPromptButton",
1092
1092
  props: {
1093
1093
  show: {
@@ -1101,22 +1101,22 @@ const ao = /* @__PURE__ */ le(io, [["render", lo]]), co = { class: "flex flex-co
1101
1101
  },
1102
1102
  emits: ["click"],
1103
1103
  setup(e) {
1104
- return (t, n) => e.show ? (p(), v("div", {
1104
+ return (t, n) => e.show ? (p(), b("div", {
1105
1105
  key: 0,
1106
1106
  class: k([
1107
1107
  "mt-2 p-2 bg-gradient-to-r rounded-lg border transition-all duration-200",
1108
1108
  e.isLoading ? "from-accent/5 to-info/5 border-accent/10 cursor-not-allowed opacity-75" : "from-accent/10 to-info/10 border-accent/20 cursor-pointer hover:from-accent/20 hover:to-info/20 hover:border-accent/30"
1109
1109
  ]),
1110
1110
  onClick: n[0] || (n[0] = (o) => !e.isLoading && t.$emit("click"))
1111
- }, go, 2)) : M("", !0);
1111
+ }, yo, 2)) : M("", !0);
1112
1112
  }
1113
- }, bo = /* @__PURE__ */ C("p", { class: "text-sm font-medium text-success text-center" }, [
1114
- /* @__PURE__ */ we(" 📚 Learn this? "),
1113
+ }, Lo = /* @__PURE__ */ C("p", { class: "text-sm font-medium text-success text-center" }, [
1114
+ /* @__PURE__ */ xe(" 📚 Learn this? "),
1115
1115
  /* @__PURE__ */ C("span", { class: "text-warning font-semibold" }, "Study now"),
1116
- /* @__PURE__ */ we(" 🎯 ")
1117
- ], -1), Co = [
1118
- bo
1119
- ], wo = {
1116
+ /* @__PURE__ */ xe(" 🎯 ")
1117
+ ], -1), So = [
1118
+ Lo
1119
+ ], To = {
1120
1120
  __name: "LearnPromptButton",
1121
1121
  props: {
1122
1122
  show: {
@@ -1126,35 +1126,35 @@ const ao = /* @__PURE__ */ le(io, [["render", lo]]), co = { class: "flex flex-co
1126
1126
  },
1127
1127
  emits: ["click"],
1128
1128
  setup(e) {
1129
- return (t, n) => e.show ? (p(), v("div", {
1129
+ return (t, n) => e.show ? (p(), b("div", {
1130
1130
  key: 0,
1131
1131
  class: k([
1132
1132
  "mt-2 p-2 bg-gradient-to-r rounded-lg border transition-all duration-200",
1133
1133
  "from-success/10 to-warning/10 border-success/20 cursor-pointer hover:from-success/20 hover:to-warning/20 hover:border-success/30"
1134
1134
  ]),
1135
1135
  onClick: n[0] || (n[0] = (o) => t.$emit("click"))
1136
- }, Co)) : M("", !0);
1136
+ }, So)) : M("", !0);
1137
1137
  }
1138
- }, yo = { class: "capitalize text-base italic font-normal text-base-content/60" }, xo = { class: "text-base leading-6 text-base-content" }, Lo = {
1138
+ }, Eo = { class: "capitalize text-base italic font-normal text-base-content/60" }, Ao = { class: "text-base leading-6 text-base-content" }, $o = {
1139
1139
  __name: "Dict",
1140
1140
  props: {
1141
1141
  dictionary: Array
1142
1142
  },
1143
1143
  setup(e) {
1144
- return (t, n) => (p(), v("div", null, [
1145
- (p(!0), v(K, null, me(e.dictionary, (o, i) => (p(), v("div", {
1144
+ return (t, n) => (p(), b("div", null, [
1145
+ (p(!0), b(K, null, he(e.dictionary, (o, i) => (p(), b("div", {
1146
1146
  key: i,
1147
1147
  class: "mt-2"
1148
1148
  }, [
1149
- C("p", yo, oe(o.pos), 1),
1150
- C("span", xo, oe(o.terms.join(", ")), 1)
1149
+ C("p", Eo, ie(o.pos), 1),
1150
+ C("span", Ao, ie(o.terms.join(", ")), 1)
1151
1151
  ]))), 128))
1152
1152
  ]));
1153
1153
  }
1154
- }, So = { class: "" }, To = /* @__PURE__ */ C("p", { class: "capitalize text-base italic font-normal text-base-content/60 mt-2" }, "Summary", -1), Eo = {
1154
+ }, ko = { class: "" }, Ro = /* @__PURE__ */ C("p", { class: "capitalize text-base italic font-normal text-base-content/60 mt-2" }, "Summary", -1), Bo = {
1155
1155
  key: 0,
1156
1156
  class: "list-none list-outside mt-2"
1157
- }, Ao = ["innerHTML"], $o = {
1157
+ }, Io = ["innerHTML"], Mo = {
1158
1158
  __name: "Explanation",
1159
1159
  props: {
1160
1160
  explanation: Object
@@ -1162,32 +1162,32 @@ const ao = /* @__PURE__ */ le(io, [["render", lo]]), co = { class: "flex flex-co
1162
1162
  setup(e) {
1163
1163
  return (t, n) => {
1164
1164
  var o, i;
1165
- return p(), v("div", So, [
1166
- To,
1167
- (o = e.explanation) != null && o.result ? (p(), v("ul", Eo, [
1168
- (p(!0), v(K, null, me(((i = e.explanation) == null ? void 0 : i.result.split(`
1169
- `)) || [], (s, r) => (p(), v("li", {
1165
+ return p(), b("div", ko, [
1166
+ Ro,
1167
+ (o = e.explanation) != null && o.result ? (p(), b("ul", Bo, [
1168
+ (p(!0), b(K, null, he(((i = e.explanation) == null ? void 0 : i.result.split(`
1169
+ `)) || [], (s, r) => (p(), b("li", {
1170
1170
  key: `${s}-${r}`,
1171
1171
  innerHTML: s,
1172
1172
  class: "text-base text-base-content"
1173
- }, null, 8, Ao))), 128))
1173
+ }, null, 8, Io))), 128))
1174
1174
  ])) : M("", !0)
1175
1175
  ]);
1176
1176
  };
1177
1177
  }
1178
- }, ko = ["disabled"], Ro = /* @__PURE__ */ C("path", {
1178
+ }, Do = ["disabled"], Fo = /* @__PURE__ */ C("path", {
1179
1179
  d: "M2.33325 4.66667H3.51125C3.82693 4.6667 4.13239 4.55473 4.37325 4.35067L6.83392 2.26667C6.99592 2.12953 7.19374 2.04156 7.40407 2.01312C7.61441 1.98468 7.82849 2.01696 8.02109 2.10615C8.21369 2.19534 8.37678 2.33772 8.49114 2.51652C8.60551 2.69532 8.66638 2.90309 8.66659 3.11534V12.8847C8.66649 13.097 8.60565 13.305 8.49125 13.4839C8.37685 13.6628 8.21367 13.8053 8.02094 13.8945C7.82822 13.9837 7.614 14.0159 7.40356 13.9874C7.19312 13.9588 6.99523 13.8707 6.83325 13.7333L4.37325 11.6487C4.13229 11.4449 3.82685 11.3331 3.51125 11.3333H2.33325C2.06804 11.3333 1.81368 11.228 1.62615 11.0404C1.43861 10.8529 1.33325 10.5986 1.33325 10.3333V5.66667C1.33325 5.40145 1.43861 5.1471 1.62615 4.95956C1.81368 4.77203 2.06804 4.66667 2.33325 4.66667ZM11.1779 11.18C11.5969 10.763 11.9294 10.2674 12.1562 9.72156C12.3831 9.17572 12.4999 8.59044 12.4999 7.99934C12.4999 7.40823 12.3831 6.82295 12.1562 6.27711C11.9294 5.73127 11.5969 5.23564 11.1779 4.81867C11.1317 4.77098 11.0765 4.73297 11.0155 4.70686C10.9544 4.68075 10.8888 4.66705 10.8224 4.66657C10.756 4.66609 10.6902 4.67883 10.6288 4.70406C10.5674 4.72929 10.5116 4.76649 10.4647 4.8135C10.4179 4.86051 10.3808 4.91639 10.3558 4.97787C10.3307 5.03935 10.3181 5.10521 10.3188 5.17159C10.3195 5.23798 10.3334 5.30357 10.3597 5.36453C10.3859 5.42549 10.4241 5.48061 10.4719 5.52667C10.7977 5.85079 11.0562 6.23609 11.2326 6.66043C11.409 7.08477 11.4998 7.53979 11.4998 7.99934C11.4998 8.45888 11.409 8.9139 11.2326 9.33824C11.0562 9.76258 10.7977 10.1479 10.4719 10.472C10.4241 10.5181 10.3859 10.5732 10.3597 10.6341C10.3334 10.6951 10.3195 10.7607 10.3188 10.8271C10.3181 10.8935 10.3307 10.9593 10.3558 11.0208C10.3808 11.0823 10.4179 11.1382 10.4647 11.1852C10.5116 11.2322 10.5674 11.2694 10.6288 11.2946C10.6902 11.3198 10.756 11.3326 10.8224 11.3321C10.8888 11.3316 10.9544 11.3179 11.0155 11.2918C11.0765 11.2657 11.1317 11.2277 11.1779 11.18ZM12.7113 13.2127C12.6123 13.2126 12.5157 13.1832 12.4335 13.1281C12.3513 13.0731 12.2873 12.9949 12.2495 12.9035C12.2118 12.8121 12.202 12.7115 12.2214 12.6146C12.2408 12.5176 12.2886 12.4285 12.3586 12.3587C12.9317 11.7866 13.3865 11.1071 13.6967 10.359C14.0069 9.61101 14.1666 8.80915 14.1666 7.99934C14.1666 7.18952 14.0069 6.38766 13.6967 5.63963C13.3865 4.8916 12.9317 4.2121 12.3586 3.64C12.3122 3.59351 12.2754 3.53834 12.2503 3.47764C12.2252 3.41693 12.2124 3.35188 12.2124 3.2862C12.2125 3.22052 12.2255 3.15549 12.2507 3.09483C12.2759 3.03417 12.3128 2.97907 12.3593 2.93267C12.4057 2.88627 12.4609 2.84948 12.5216 2.8244C12.5823 2.79932 12.6474 2.78645 12.7131 2.78651C12.7787 2.78657 12.8438 2.79957 12.9044 2.82476C12.9651 2.84995 13.0202 2.88685 13.0666 2.93334C13.7327 3.59825 14.2612 4.38801 14.6218 5.25741C14.9824 6.12681 15.168 7.05879 15.168 8C15.168 8.94122 14.9824 9.87319 14.6218 10.7426C14.2612 11.612 13.7327 12.4018 13.0666 13.0667C13.02 13.1134 12.9646 13.1504 12.9036 13.1756C12.8426 13.2007 12.7772 13.2129 12.7113 13.2127Z",
1180
1180
  fill: "currentColor"
1181
- }, null, -1), Bo = [
1182
- Ro
1183
- ], Io = ["disabled"], Mo = /* @__PURE__ */ C("path", {
1181
+ }, null, -1), Oo = [
1182
+ Fo
1183
+ ], Wo = ["disabled"], zo = /* @__PURE__ */ C("path", {
1184
1184
  "fill-rule": "evenodd",
1185
1185
  d: "M4.5 7.5a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3h-9a3 3 0 0 1-3-3v-9Z",
1186
1186
  "clip-rule": "evenodd",
1187
1187
  fill: "currentColor"
1188
- }, null, -1), Oo = [
1189
- Mo
1190
- ], Do = {
1188
+ }, null, -1), _o = [
1189
+ zo
1190
+ ], Po = {
1191
1191
  __name: "Player",
1192
1192
  props: {
1193
1193
  tts: {
@@ -1203,7 +1203,7 @@ const ao = /* @__PURE__ */ le(io, [["render", lo]]), co = { class: "flex flex-co
1203
1203
  setup(e, { emit: t }) {
1204
1204
  const n = e, o = t, i = B(() => n.tts), s = R(!1), r = new Audio(), a = new (window.AudioContext || window.webkitAudioContext)();
1205
1205
  let l = null;
1206
- te(
1206
+ ne(
1207
1207
  i,
1208
1208
  () => {
1209
1209
  if (!i.value) {
@@ -1213,7 +1213,7 @@ const ao = /* @__PURE__ */ le(io, [["render", lo]]), co = { class: "flex flex-co
1213
1213
  d();
1214
1214
  },
1215
1215
  { immediate: !0 }
1216
- ), Qe(() => {
1216
+ ), Je(() => {
1217
1217
  g(), r.src = "", a.close();
1218
1218
  });
1219
1219
  function c() {
@@ -1248,7 +1248,7 @@ const ao = /* @__PURE__ */ le(io, [["render", lo]]), co = { class: "flex flex-co
1248
1248
  function g() {
1249
1249
  l && (l.stop(), l.disconnect(), l = null), r.pause(), r.currentTime = 0, s.value = !1;
1250
1250
  }
1251
- return (f, m) => s.value ? (p(), v("button", {
1251
+ return (f, m) => s.value ? (p(), b("button", {
1252
1252
  key: 1,
1253
1253
  class: k(["btn btn-xs btn-circle", [
1254
1254
  { "btn-ghost": !e.disabled },
@@ -1257,13 +1257,13 @@ const ao = /* @__PURE__ */ le(io, [["render", lo]]), co = { class: "flex flex-co
1257
1257
  disabled: e.disabled,
1258
1258
  onClick: g
1259
1259
  }, [
1260
- (p(), v("svg", {
1260
+ (p(), b("svg", {
1261
1261
  class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1262
1262
  viewBox: "0 0 24 24",
1263
1263
  fill: "none",
1264
1264
  xmlns: "http://www.w3.org/2000/svg"
1265
- }, Oo, 2))
1266
- ], 10, Io)) : (p(), v("button", {
1265
+ }, _o, 2))
1266
+ ], 10, Wo)) : (p(), b("button", {
1267
1267
  key: 0,
1268
1268
  class: k(["btn btn-xs btn-circle", [
1269
1269
  { "btn-ghost": !e.disabled },
@@ -1272,35 +1272,35 @@ const ao = /* @__PURE__ */ le(io, [["render", lo]]), co = { class: "flex flex-co
1272
1272
  disabled: e.disabled,
1273
1273
  onClick: c
1274
1274
  }, [
1275
- (p(), v("svg", {
1275
+ (p(), b("svg", {
1276
1276
  class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1277
1277
  viewBox: "0 0 16 16",
1278
1278
  fill: "none",
1279
1279
  xmlns: "http://www.w3.org/2000/svg"
1280
- }, Bo, 2))
1281
- ], 10, ko));
1280
+ }, Oo, 2))
1281
+ ], 10, Do));
1282
1282
  }
1283
- }, Fo = {
1283
+ }, No = {
1284
1284
  class: "bg-base-100 tooltip tooltip-top before:!bottom-[100%] before:!bg-base-100 before:!border before:!border-solid before:!border-base-300 before:!shadow-lg before:!rounded-md before:!text-base-content after:!border-transparent",
1285
1285
  "data-tip": "Favorite"
1286
- }, Wo = ["disabled"], zo = /* @__PURE__ */ C("path", {
1286
+ }, Vo = ["disabled"], Ho = /* @__PURE__ */ C("path", {
1287
1287
  d: "M14.9491 5.89315C14.8278 5.53128 14.5111 5.27252 14.1226 5.21783L10.5264 4.7114L8.91813 1.55315C8.74435 1.21195 8.39257 1 7.99998 1C7.60739 1 7.25557 1.21195 7.08183 1.55315L5.47358 4.7114L1.8774 5.21783C1.48888 5.27252 1.17219 5.53128 1.05086 5.89315C0.929554 6.25501 1.02881 6.64477 1.30993 6.91038L3.91217 9.36871L3.29786 12.8399C3.2315 13.215 3.38755 13.5868 3.7052 13.8105C3.88128 13.9344 4.08938 14 4.30704 14C4.47232 14 4.63705 13.9606 4.78341 13.886L7.99995 12.2471L11.2165 13.886C11.3628 13.9606 11.5276 14 11.6929 14C11.9106 14 12.1187 13.9345 12.2948 13.8105C12.6124 13.5868 12.7685 13.215 12.7021 12.84L12.0878 9.36871L14.6901 6.91035C14.9712 6.64477 15.0704 6.25498 14.9491 5.89315ZM14.0266 6.25082L11.2455 8.87813C11.1335 8.98392 11.0824 9.13637 11.1089 9.28575L11.7654 12.9956C11.7701 13.0226 11.759 13.0493 11.7362 13.0653C11.7202 13.0766 11.7038 13.079 11.6929 13.079C11.6809 13.079 11.6694 13.0762 11.6587 13.0708L8.22108 11.3192C8.15189 11.284 8.07593 11.2663 7.99998 11.2663C7.92402 11.2663 7.84807 11.284 7.77882 11.3193L4.34118 13.0708C4.33052 13.0763 4.31904 13.079 4.30701 13.079C4.29611 13.079 4.27969 13.0767 4.26373 13.0654C4.24092 13.0494 4.22975 13.0226 4.2345 12.9957L4.89104 9.28584C4.91747 9.13646 4.86637 8.98401 4.75439 8.87822L1.97327 6.25091C1.95308 6.23184 1.94595 6.20383 1.95466 6.17786C1.9634 6.15185 1.98612 6.13326 2.01405 6.12933L5.85743 5.58807C6.0122 5.56626 6.14599 5.47208 6.21521 5.33616L7.93404 1.9608C7.94653 1.9363 7.97178 1.92107 7.99998 1.92107C8.02818 1.92107 8.05343 1.9363 8.06591 1.9608L9.78468 5.33607C9.85391 5.47199 9.9877 5.5662 10.1425 5.58799L13.9859 6.12924C14.0138 6.1332 14.0365 6.15176 14.0452 6.17777C14.0539 6.20374 14.0468 6.23175 14.0266 6.25082Z",
1288
1288
  fill: "currentColor"
1289
- }, null, -1), _o = [
1290
- zo
1291
- ], Po = /* @__PURE__ */ C("path", {
1289
+ }, null, -1), Uo = [
1290
+ Ho
1291
+ ], Zo = /* @__PURE__ */ C("path", {
1292
1292
  d: "M7.47207 1.31905C7.57125 1.12371 7.77589 1 8.00001 1C8.22413 1 8.42877 1.12367 8.52795 1.31905L10.3721 4.95175L14.4959 5.53427C14.7177 5.5656 14.9019 5.7166 14.9712 5.9238C15.0404 6.13101 14.9827 6.35843 14.8222 6.51049L11.8382 9.33816L12.5427 13.3309C12.5806 13.5456 12.4897 13.7626 12.3084 13.8906C12.1272 14.0187 11.8868 14.0356 11.6884 13.9342L8.00004 12.0491L4.31158 13.9343C4.11323 14.0356 3.87286 14.0187 3.69157 13.8907C3.51028 13.7627 3.4195 13.5457 3.45736 13.3309L4.1618 9.33819L1.17781 6.51052C1.01735 6.35846 0.959571 6.13101 1.02884 5.92383C1.09807 5.71663 1.28232 5.56563 1.50409 5.53431L5.62787 4.95178L7.47207 1.31905Z",
1293
1293
  fill: "currentColor"
1294
- }, null, -1), Vo = [
1295
- Po
1296
- ], No = {
1294
+ }, null, -1), jo = [
1295
+ Zo
1296
+ ], qo = {
1297
1297
  __name: "Favorite",
1298
1298
  props: {
1299
1299
  isFilled: Boolean,
1300
1300
  disabled: Boolean
1301
1301
  },
1302
1302
  setup(e) {
1303
- return (t, n) => (p(), v("div", Fo, [
1303
+ return (t, n) => (p(), b("div", No, [
1304
1304
  C("button", {
1305
1305
  class: k(["btn btn-xs btn-circle", [
1306
1306
  { "btn-ghost": !e.disabled },
@@ -1308,51 +1308,51 @@ const ao = /* @__PURE__ */ le(io, [["render", lo]]), co = { class: "flex flex-co
1308
1308
  ]]),
1309
1309
  disabled: e.disabled
1310
1310
  }, [
1311
- e.isFilled ? (p(), v("svg", {
1311
+ e.isFilled ? (p(), b("svg", {
1312
1312
  key: 1,
1313
1313
  class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1314
1314
  viewBox: "0 0 16 16",
1315
1315
  fill: "none",
1316
1316
  xmlns: "http://www.w3.org/2000/svg"
1317
- }, Vo, 2)) : (p(), v("svg", {
1317
+ }, jo, 2)) : (p(), b("svg", {
1318
1318
  key: 0,
1319
1319
  class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1320
1320
  viewBox: "0 0 16 16",
1321
1321
  fill: "none",
1322
1322
  xmlns: "http://www.w3.org/2000/svg"
1323
- }, _o, 2))
1324
- ], 10, Wo)
1323
+ }, Uo, 2))
1324
+ ], 10, Vo)
1325
1325
  ]));
1326
1326
  }
1327
- }, Ho = {}, Uo = {
1327
+ }, Xo = {}, Yo = {
1328
1328
  class: "w-6 h-6 text-primary",
1329
1329
  xmlns: "http://www.w3.org/2000/svg",
1330
1330
  viewBox: "0 0 24 24"
1331
- }, Zo = /* @__PURE__ */ Je('<circle cx="18" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="12" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="6" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle>', 3), jo = [
1332
- Zo
1331
+ }, Ko = /* @__PURE__ */ Ge('<circle cx="18" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="12" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="6" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle>', 3), Go = [
1332
+ Ko
1333
1333
  ];
1334
- function qo(e, t) {
1335
- return p(), v("svg", Uo, jo);
1334
+ function Jo(e, t) {
1335
+ return p(), b("svg", Yo, Go);
1336
1336
  }
1337
- const it = /* @__PURE__ */ le(Ho, [["render", qo]]), Xo = {
1337
+ const ot = /* @__PURE__ */ ae(Xo, [["render", Jo]]), Qo = {
1338
1338
  class: "bg-base-100 tooltip tooltip-top before:!bottom-[100%] before:!bg-base-100 before:!border before:!border-solid before:!border-base-300 before:!shadow-lg before:!rounded-md before:!text-base-content after:!border-transparent",
1339
1339
  "data-tip": "AI Translate"
1340
- }, Yo = ["disabled"], Ko = /* @__PURE__ */ C("path", {
1340
+ }, ei = ["disabled"], ti = /* @__PURE__ */ C("path", {
1341
1341
  d: "M6.8544 3.20309C5.39975 2.89815 4.26277 1.76117 3.95787 0.30649C3.92042 0.12792 3.76292 0 3.58041 0C3.3979 0 3.2404 0.12792 3.20297 0.30652C2.89805 1.76117 1.76107 2.89812 0.306418 3.20302C0.127818 3.24045 -0.00012207 3.39798 -0.00012207 3.58046C-0.00012207 3.76295 0.127798 3.92047 0.306418 3.9579C1.76105 4.26285 2.89798 5.3998 3.2029 6.85448C3.24033 7.03307 3.39783 7.16102 3.58034 7.16102C3.76282 7.16102 3.92035 7.0331 3.95778 6.85448C4.26272 5.39983 5.39973 4.26287 6.85438 3.95799C7.03297 3.92056 7.16092 3.76306 7.16092 3.58056C7.1609 3.39805 7.03297 3.24052 6.8544 3.20309ZM3.58036 5.60938C3.14292 4.73132 2.42956 4.01792 1.55151 3.58049C2.42958 3.14305 3.14297 2.42968 3.58041 1.55161C4.01785 2.4297 4.73122 3.14307 5.60926 3.58053C4.73119 4.01797 4.0178 4.73132 3.58036 5.60938Z",
1342
1342
  fill: "currentColor"
1343
- }, null, -1), Go = /* @__PURE__ */ C("path", {
1343
+ }, null, -1), ni = /* @__PURE__ */ C("path", {
1344
1344
  d: "M6.21683 9.574C5.53147 9.4303 4.99578 8.8947 4.85209 8.2093C4.81466 8.0307 4.65716 7.90271 4.47465 7.90271C4.29217 7.90271 4.13464 8.0306 4.09721 8.2092C3.95352 8.8946 3.4178 9.4303 2.73244 9.574C2.55385 9.6114 2.4259 9.7689 2.4259 9.9514C2.4259 10.1339 2.55383 10.2914 2.73244 10.3288C3.41778 10.4725 3.95349 11.0082 4.09716 11.6936C4.13459 11.8722 4.2921 12.0002 4.4746 12.0002C4.65709 12.0002 4.81461 11.8723 4.85204 11.6936C4.99574 11.0082 5.53145 10.4725 6.21683 10.3289C6.39543 10.2914 6.52337 10.1339 6.52337 9.9514C6.52337 9.7689 6.39545 9.6114 6.21683 9.574ZM4.47463 10.6408C4.29163 10.3688 4.05725 10.1345 3.78526 9.9515C4.0573 9.7684 4.29163 9.5341 4.47463 9.2621C4.65765 9.5341 4.892 9.7685 5.164 9.9515C4.892 10.1345 4.65763 10.3688 4.47463 10.6408Z",
1345
1345
  fill: "currentColor"
1346
- }, null, -1), Jo = /* @__PURE__ */ C("path", {
1346
+ }, null, -1), oi = /* @__PURE__ */ C("path", {
1347
1347
  d: "M11.4271 6.00324C10.5007 5.80904 9.7766 5.08496 9.5825 4.15859C9.545 3.98 9.3875 3.85205 9.205 3.85205C9.0225 3.85205 8.865 3.97995 8.8276 4.15857C8.6334 5.08496 7.90932 5.80902 6.98293 6.0032C6.80434 6.04063 6.67639 6.19815 6.67639 6.38064C6.67639 6.56312 6.80431 6.72062 6.98293 6.75807C7.9093 6.95228 8.6334 7.67633 8.8275 8.6027C8.865 8.7813 9.0225 8.9093 9.205 8.9093C9.3875 8.9093 9.545 8.7814 9.5824 8.6027C9.7766 7.67633 10.5007 6.95228 11.4271 6.75812C11.6057 6.72067 11.7336 6.56317 11.7336 6.38068C11.7336 6.1982 11.6057 6.04067 11.4271 6.00324ZM9.205 7.47681C8.9365 7.02634 8.5593 6.64914 8.1089 6.38066C8.5593 6.11218 8.9365 5.73502 9.205 5.28453C9.4735 5.73502 9.8507 6.11221 10.3012 6.38068C9.8507 6.64916 9.4735 7.02636 9.205 7.47681Z",
1348
1348
  fill: "currentColor"
1349
- }, null, -1), Qo = [
1350
- Ko,
1351
- Go,
1352
- Jo
1353
- ], ei = /* @__PURE__ */ Je('<path d="M6.8544 3.20309C5.39975 2.89815 4.26277 1.76117 3.95787 0.30649C3.92042 0.12792 3.76292 0 3.58041 0C3.3979 0 3.2404 0.12792 3.20297 0.30652C2.89805 1.76117 1.76107 2.89812 0.306418 3.20302C0.127818 3.24045 -0.00012207 3.39798 -0.00012207 3.58046C-0.00012207 3.76295 0.127798 3.92047 0.306418 3.9579C1.76105 4.26285 2.89798 5.3998 3.2029 6.85448C3.24033 7.03307 3.39783 7.16102 3.58034 7.16102C3.76282 7.16102 3.92035 7.0331 3.95778 6.85448C4.26272 5.39983 5.39973 4.26287 6.85438 3.95799C7.03297 3.92056 7.16092 3.76306 7.16092 3.58056C7.1609 3.39805 7.03297 3.24052 6.8544 3.20309ZM3.58036 5.60938C3.14292 4.73132 2.42956 4.01792 1.55151 3.58049C2.42958 3.14305 3.14297 2.42968 3.58041 1.55161C4.01785 2.4297 4.73122 3.14307 5.60926 3.58053C4.73119 4.01797 4.0178 4.73132 3.58036 5.60938Z" fill="currentColor"></path><path d="M6.21683 9.574C5.53147 9.4303 4.99578 8.8947 4.85209 8.2093C4.81466 8.0307 4.65716 7.90271 4.47465 7.90271C4.29217 7.90271 4.13464 8.0306 4.09721 8.2092C3.95352 8.8946 3.4178 9.4303 2.73244 9.574C2.55385 9.6114 2.4259 9.7689 2.4259 9.9514C2.4259 10.1339 2.55383 10.2914 2.73244 10.3288C3.41778 10.4725 3.95349 11.0082 4.09716 11.6936C4.13459 11.8722 4.2921 12.0002 4.4746 12.0002C4.65709 12.0002 4.81461 11.8723 4.85204 11.6936C4.99574 11.0082 5.53145 10.4725 6.21683 10.3289C6.39543 10.2914 6.52337 10.1339 6.52337 9.9514C6.52337 9.7689 6.39545 9.6114 6.21683 9.574ZM4.47463 10.6408C4.29163 10.3688 4.05725 10.1345 3.78526 9.9515C4.0573 9.7684 4.29163 9.5341 4.47463 9.2621C4.65765 9.5341 4.892 9.7685 5.164 9.9515C4.892 10.1345 4.65763 10.3688 4.47463 10.6408Z" fill="currentColor"></path><path d="M11.4271 6.00324C10.5007 5.80904 9.7766 5.08496 9.5825 4.15859C9.545 3.98 9.3875 3.85205 9.205 3.85205C9.0225 3.85205 8.865 3.97995 8.8276 4.15857C8.6334 5.08496 7.90932 5.80902 6.98293 6.0032C6.80434 6.04063 6.67639 6.19815 6.67639 6.38064C6.67639 6.56312 6.80431 6.72062 6.98293 6.75807C7.9093 6.95228 8.6334 7.67633 8.8275 8.6027C8.865 8.7813 9.0225 8.9093 9.205 8.9093C9.3875 8.9093 9.545 8.7814 9.5824 8.6027C9.7766 7.67633 10.5007 6.95228 11.4271 6.75812C11.6057 6.72067 11.7336 6.56317 11.7336 6.38068C11.7336 6.1982 11.6057 6.04067 11.4271 6.00324ZM9.205 7.47681C8.9365 7.02634 8.5593 6.64914 8.1089 6.38066C8.5593 6.11218 8.9365 5.73502 9.205 5.28453C9.4735 5.73502 9.8507 6.11221 10.3012 6.38068C9.8507 6.64916 9.4735 7.02636 9.205 7.47681Z" fill="currentColor"></path><circle cx="3.5" cy="3.5" r="1.5" fill="currentColor"></circle><ellipse cx="4.5" cy="10" rx="0.5" ry="1" fill="currentColor"></ellipse><circle cx="9" cy="6" r="1" fill="currentColor"></circle>', 6), ti = [
1354
- ei
1355
- ], ni = {
1349
+ }, null, -1), ii = [
1350
+ ti,
1351
+ ni,
1352
+ oi
1353
+ ], ri = /* @__PURE__ */ Ge('<path d="M6.8544 3.20309C5.39975 2.89815 4.26277 1.76117 3.95787 0.30649C3.92042 0.12792 3.76292 0 3.58041 0C3.3979 0 3.2404 0.12792 3.20297 0.30652C2.89805 1.76117 1.76107 2.89812 0.306418 3.20302C0.127818 3.24045 -0.00012207 3.39798 -0.00012207 3.58046C-0.00012207 3.76295 0.127798 3.92047 0.306418 3.9579C1.76105 4.26285 2.89798 5.3998 3.2029 6.85448C3.24033 7.03307 3.39783 7.16102 3.58034 7.16102C3.76282 7.16102 3.92035 7.0331 3.95778 6.85448C4.26272 5.39983 5.39973 4.26287 6.85438 3.95799C7.03297 3.92056 7.16092 3.76306 7.16092 3.58056C7.1609 3.39805 7.03297 3.24052 6.8544 3.20309ZM3.58036 5.60938C3.14292 4.73132 2.42956 4.01792 1.55151 3.58049C2.42958 3.14305 3.14297 2.42968 3.58041 1.55161C4.01785 2.4297 4.73122 3.14307 5.60926 3.58053C4.73119 4.01797 4.0178 4.73132 3.58036 5.60938Z" fill="currentColor"></path><path d="M6.21683 9.574C5.53147 9.4303 4.99578 8.8947 4.85209 8.2093C4.81466 8.0307 4.65716 7.90271 4.47465 7.90271C4.29217 7.90271 4.13464 8.0306 4.09721 8.2092C3.95352 8.8946 3.4178 9.4303 2.73244 9.574C2.55385 9.6114 2.4259 9.7689 2.4259 9.9514C2.4259 10.1339 2.55383 10.2914 2.73244 10.3288C3.41778 10.4725 3.95349 11.0082 4.09716 11.6936C4.13459 11.8722 4.2921 12.0002 4.4746 12.0002C4.65709 12.0002 4.81461 11.8723 4.85204 11.6936C4.99574 11.0082 5.53145 10.4725 6.21683 10.3289C6.39543 10.2914 6.52337 10.1339 6.52337 9.9514C6.52337 9.7689 6.39545 9.6114 6.21683 9.574ZM4.47463 10.6408C4.29163 10.3688 4.05725 10.1345 3.78526 9.9515C4.0573 9.7684 4.29163 9.5341 4.47463 9.2621C4.65765 9.5341 4.892 9.7685 5.164 9.9515C4.892 10.1345 4.65763 10.3688 4.47463 10.6408Z" fill="currentColor"></path><path d="M11.4271 6.00324C10.5007 5.80904 9.7766 5.08496 9.5825 4.15859C9.545 3.98 9.3875 3.85205 9.205 3.85205C9.0225 3.85205 8.865 3.97995 8.8276 4.15857C8.6334 5.08496 7.90932 5.80902 6.98293 6.0032C6.80434 6.04063 6.67639 6.19815 6.67639 6.38064C6.67639 6.56312 6.80431 6.72062 6.98293 6.75807C7.9093 6.95228 8.6334 7.67633 8.8275 8.6027C8.865 8.7813 9.0225 8.9093 9.205 8.9093C9.3875 8.9093 9.545 8.7814 9.5824 8.6027C9.7766 7.67633 10.5007 6.95228 11.4271 6.75812C11.6057 6.72067 11.7336 6.56317 11.7336 6.38068C11.7336 6.1982 11.6057 6.04067 11.4271 6.00324ZM9.205 7.47681C8.9365 7.02634 8.5593 6.64914 8.1089 6.38066C8.5593 6.11218 8.9365 5.73502 9.205 5.28453C9.4735 5.73502 9.8507 6.11221 10.3012 6.38068C9.8507 6.64916 9.4735 7.02636 9.205 7.47681Z" fill="currentColor"></path><circle cx="3.5" cy="3.5" r="1.5" fill="currentColor"></circle><ellipse cx="4.5" cy="10" rx="0.5" ry="1" fill="currentColor"></ellipse><circle cx="9" cy="6" r="1" fill="currentColor"></circle>', 6), si = [
1354
+ ri
1355
+ ], li = {
1356
1356
  __name: "AITranslateBtn",
1357
1357
  props: {
1358
1358
  isLoading: Boolean,
@@ -1360,11 +1360,11 @@ const it = /* @__PURE__ */ le(Ho, [["render", qo]]), Xo = {
1360
1360
  isFilled: Boolean
1361
1361
  },
1362
1362
  setup(e) {
1363
- return (t, n) => (p(), v("div", Xo, [
1364
- e.isLoading ? (p(), P(it, {
1363
+ return (t, n) => (p(), b("div", Qo, [
1364
+ e.isLoading ? (p(), P(ot, {
1365
1365
  key: 0,
1366
1366
  class: "inset-0 flex items-center justify-center"
1367
- })) : (p(), v("button", {
1367
+ })) : (p(), b("button", {
1368
1368
  key: 1,
1369
1369
  class: k(["btn btn-xs btn-circle", [
1370
1370
  { "btn-ghost": !e.disabled },
@@ -1372,46 +1372,46 @@ const it = /* @__PURE__ */ le(Ho, [["render", qo]]), Xo = {
1372
1372
  ]]),
1373
1373
  disabled: e.disabled
1374
1374
  }, [
1375
- e.isFilled ? (p(), v("svg", {
1375
+ e.isFilled ? (p(), b("svg", {
1376
1376
  key: 1,
1377
1377
  class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1378
1378
  viewBox: "0 0 12 12",
1379
1379
  fill: "none",
1380
1380
  xmlns: "http://www.w3.org/2000/svg"
1381
- }, ti, 2)) : (p(), v("svg", {
1381
+ }, si, 2)) : (p(), b("svg", {
1382
1382
  key: 0,
1383
1383
  class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1384
1384
  viewBox: "0 0 12 12",
1385
1385
  fill: "none",
1386
1386
  xmlns: "http://www.w3.org/2000/svg"
1387
- }, Qo, 2))
1388
- ], 10, Yo))
1387
+ }, ii, 2))
1388
+ ], 10, ei))
1389
1389
  ]));
1390
1390
  }
1391
- }, oi = {
1391
+ }, ai = {
1392
1392
  class: "bg-base-100 tooltip tooltip-top before:!bottom-[100%] before:!bg-base-100 before:!border before:!border-solid before:!border-base-300 before:!shadow-lg before:!rounded-md before:!text-base-content after:!border-transparent",
1393
1393
  "data-tip": "AI Summarize"
1394
- }, ii = ["disabled"], ri = /* @__PURE__ */ C("path", {
1394
+ }, ci = ["disabled"], ui = /* @__PURE__ */ C("path", {
1395
1395
  stroke: "currentColor",
1396
1396
  "stroke-linecap": "round",
1397
1397
  "stroke-linejoin": "round",
1398
1398
  "stroke-width": "2",
1399
1399
  d: "M21 12h1m-3.5-6.5 1-1M12 3V2M5.5 5.5l-1-1M3 12H2m8 10h4m3-10a5 5 0 1 0-7 4.584V19h4v-2.416A5.001 5.001 0 0 0 17 12z"
1400
- }, null, -1), si = [
1401
- ri
1402
- ], li = /* @__PURE__ */ C("path", {
1400
+ }, null, -1), di = [
1401
+ ui
1402
+ ], fi = /* @__PURE__ */ C("path", {
1403
1403
  fill: "currentColor",
1404
1404
  d: "M12 7a5 5 0 0 0-2 9.584V19h4v-2.416A5.001 5.001 0 0 0 12 7z"
1405
- }, null, -1), ai = /* @__PURE__ */ C("path", {
1405
+ }, null, -1), mi = /* @__PURE__ */ C("path", {
1406
1406
  stroke: "currentColor",
1407
1407
  "stroke-linecap": "round",
1408
1408
  "stroke-linejoin": "round",
1409
1409
  "stroke-width": "2",
1410
1410
  d: "M21 12h1m-3.5-6.5 1-1M12 3V2M5.5 5.5l-1-1M3 12H2m8 10h4m3-10a5 5 0 1 0-7 4.584V19h4v-2.416A5.001 5.001 0 0 0 17 12z"
1411
- }, null, -1), ci = [
1412
- li,
1413
- ai
1414
- ], ui = {
1411
+ }, null, -1), hi = [
1412
+ fi,
1413
+ mi
1414
+ ], pi = {
1415
1415
  __name: "AIExplainBtn",
1416
1416
  props: {
1417
1417
  isLoading: Boolean,
@@ -1419,8 +1419,8 @@ const it = /* @__PURE__ */ le(Ho, [["render", qo]]), Xo = {
1419
1419
  isFilled: Boolean
1420
1420
  },
1421
1421
  setup(e) {
1422
- return (t, n) => (p(), v("div", oi, [
1423
- e.isLoading ? (p(), P(it, { key: 0 })) : (p(), v("button", {
1422
+ return (t, n) => (p(), b("div", ai, [
1423
+ e.isLoading ? (p(), P(ot, { key: 0 })) : (p(), b("button", {
1424
1424
  key: 1,
1425
1425
  class: k(["btn btn-xs btn-circle", [
1426
1426
  { "btn-ghost": !e.disabled },
@@ -1428,23 +1428,23 @@ const it = /* @__PURE__ */ le(Ho, [["render", qo]]), Xo = {
1428
1428
  ]]),
1429
1429
  disabled: e.disabled
1430
1430
  }, [
1431
- e.isFilled ? (p(), v("svg", {
1431
+ e.isFilled ? (p(), b("svg", {
1432
1432
  key: 1,
1433
1433
  class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1434
1434
  viewBox: "0 0 24 24",
1435
1435
  fill: "none",
1436
1436
  xmlns: "http://www.w3.org/2000/svg"
1437
- }, ci, 2)) : (p(), v("svg", {
1437
+ }, hi, 2)) : (p(), b("svg", {
1438
1438
  key: 0,
1439
1439
  class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1440
1440
  viewBox: "0 0 24 24",
1441
1441
  fill: "none",
1442
1442
  xmlns: "http://www.w3.org/2000/svg"
1443
- }, si, 2))
1444
- ], 10, ii))
1443
+ }, di, 2))
1444
+ ], 10, ci))
1445
1445
  ]));
1446
1446
  }
1447
- }, di = {}, fi = { class: "btn btn-xs btn-ghost btn-circle" }, mi = /* @__PURE__ */ C("svg", {
1447
+ }, gi = {}, vi = { class: "btn btn-xs btn-ghost btn-circle" }, bi = /* @__PURE__ */ C("svg", {
1448
1448
  class: "w-4 h-4 text-primary",
1449
1449
  viewBox: "0 0 24 24",
1450
1450
  fill: "none",
@@ -1458,13 +1458,13 @@ const it = /* @__PURE__ */ le(Ho, [["render", qo]]), Xo = {
1458
1458
  d: "M7.75 12C7.75 9.65278 9.65279 7.75 12 7.75C14.3472 7.75 16.25 9.65278 16.25 12C16.25 14.3472 14.3472 16.25 12 16.25C9.65279 16.25 7.75 14.3472 7.75 12ZM12 9.25C10.4812 9.25 9.25 10.4812 9.25 12C9.25 13.5188 10.4812 14.75 12 14.75C13.5188 14.75 14.75 13.5188 14.75 12C14.75 10.4812 13.5188 9.25 12 9.25Z",
1459
1459
  fill: "currentColor"
1460
1460
  })
1461
- ], -1), hi = [
1462
- mi
1461
+ ], -1), Ci = [
1462
+ bi
1463
1463
  ];
1464
- function pi(e, t) {
1465
- return p(), v("button", fi, hi);
1464
+ function wi(e, t) {
1465
+ return p(), b("button", vi, Ci);
1466
1466
  }
1467
- const gi = /* @__PURE__ */ le(di, [["render", pi]]), vi = {}, bi = { class: "btn btn-xs btn-circle btn-ghost" }, Ci = /* @__PURE__ */ C("svg", {
1467
+ const yi = /* @__PURE__ */ ae(gi, [["render", wi]]), xi = {}, Li = { class: "btn btn-xs btn-circle btn-ghost" }, Si = /* @__PURE__ */ C("svg", {
1468
1468
  class: "w-4 h-4 text-primary",
1469
1469
  viewBox: "0 0 16 16",
1470
1470
  fill: "none",
@@ -1482,13 +1482,13 @@ const gi = /* @__PURE__ */ le(di, [["render", pi]]), vi = {}, bi = { class: "btn
1482
1482
  d: "M12.809 3.19102C13.0637 3.44571 13.0637 3.85864 12.809 4.11333L4.11333 12.809C3.85864 13.0637 3.44571 13.0637 3.19102 12.809C2.93633 12.5543 2.93633 12.1414 3.19102 11.8867L11.8867 3.19102C12.1414 2.93633 12.5543 2.93633 12.809 3.19102Z",
1483
1483
  fill: "currentColor"
1484
1484
  })
1485
- ], -1), wi = [
1486
- Ci
1485
+ ], -1), Ti = [
1486
+ Si
1487
1487
  ];
1488
- function yi(e, t) {
1489
- return p(), v("button", bi, wi);
1488
+ function Ei(e, t) {
1489
+ return p(), b("button", Li, Ti);
1490
1490
  }
1491
- const xi = /* @__PURE__ */ le(vi, [["render", yi]]), Li = {
1491
+ const Ai = /* @__PURE__ */ ae(xi, [["render", Ei]]), $i = {
1492
1492
  name: "ThemeSelector",
1493
1493
  props: {
1494
1494
  currentTheme: {
@@ -1525,7 +1525,7 @@ const xi = /* @__PURE__ */ le(vi, [["render", yi]]), Li = {
1525
1525
  });
1526
1526
  }
1527
1527
  }
1528
- }, Si = { class: "dropdown dropdown-end z-50" }, Ti = /* @__PURE__ */ C("div", {
1528
+ }, ki = { class: "dropdown dropdown-end z-50" }, Ri = /* @__PURE__ */ C("div", {
1529
1529
  tabindex: "0",
1530
1530
  role: "button",
1531
1531
  class: "btn btn-ghost btn-circle btn-xs"
@@ -1537,15 +1537,15 @@ const xi = /* @__PURE__ */ le(vi, [["render", yi]]), Li = {
1537
1537
  }, [
1538
1538
  /* @__PURE__ */ C("path", { d: "M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z" })
1539
1539
  ])
1540
- ], -1), Ei = {
1540
+ ], -1), Bi = {
1541
1541
  tabindex: "0",
1542
1542
  class: "dropdown-content menu p-2 shadow bg-base-100 rounded-box w-52 max-h-96 overflow-y-auto z-50 border border-base-300"
1543
- }, Ai = ["id", "value", "checked", "onChange"], $i = ["for"], ki = { class: "flex items-center gap-2" };
1544
- function Ri(e, t, n, o, i, s) {
1545
- return p(), v("div", Si, [
1546
- Ti,
1547
- C("ul", Ei, [
1548
- (p(!0), v(K, null, me(i.availableThemes, (r) => (p(), v("li", {
1543
+ }, Ii = ["id", "value", "checked", "onChange"], Mi = ["for"], Di = { class: "flex items-center gap-2" };
1544
+ function Fi(e, t, n, o, i, s) {
1545
+ return p(), b("div", ki, [
1546
+ Ri,
1547
+ C("ul", Bi, [
1548
+ (p(!0), b(K, null, he(i.availableThemes, (r) => (p(), b("li", {
1549
1549
  key: r.value
1550
1550
  }, [
1551
1551
  C("input", {
@@ -1555,31 +1555,31 @@ function Ri(e, t, n, o, i, s) {
1555
1555
  checked: n.currentTheme === r.value,
1556
1556
  onChange: (a) => s.handleThemeChange(r.value),
1557
1557
  class: "theme-controller sr-only"
1558
- }, null, 40, Ai),
1558
+ }, null, 40, Ii),
1559
1559
  C("label", {
1560
1560
  for: `theme-${r.value}`,
1561
1561
  class: k(["cursor-pointer rounded-lg px-2 py-1 hover:bg-base-200", { "bg-primary text-primary-content": n.currentTheme === r.value }]),
1562
1562
  onClick: t[0] || (t[0] = (...a) => s.handleLabelClick && s.handleLabelClick(...a))
1563
1563
  }, [
1564
- C("span", ki, [
1564
+ C("span", Di, [
1565
1565
  C("span", {
1566
1566
  class: "w-3 h-3 rounded-full",
1567
- style: Ke({ backgroundColor: r.color })
1567
+ style: Xe({ backgroundColor: r.color })
1568
1568
  }, null, 4),
1569
- we(" " + oe(r.name), 1)
1569
+ xe(" " + ie(r.name), 1)
1570
1570
  ])
1571
- ], 10, $i)
1571
+ ], 10, Mi)
1572
1572
  ]))), 128))
1573
1573
  ])
1574
1574
  ]);
1575
1575
  }
1576
- const Bi = /* @__PURE__ */ le(Li, [["render", Ri]]), Ii = { class: "flex flex-col" }, Mi = {
1576
+ const Oi = /* @__PURE__ */ ae($i, [["render", Fi]]), Wi = { class: "flex flex-col" }, zi = {
1577
1577
  class: "flex min-w-0 gap-1",
1578
1578
  "data-mode-toggle": ""
1579
- }, Oi = ["disabled"], Di = { class: "flex shrink-0 items-center" }, Fi = {
1579
+ }, _i = ["disabled"], Pi = { class: "flex shrink-0 items-center" }, Ni = {
1580
1580
  key: 0,
1581
1581
  class: "flex items-center gap-1 px-2 pb-1"
1582
- }, xt = {
1582
+ }, At = {
1583
1583
  __name: "Header",
1584
1584
  props: {
1585
1585
  tts: String,
@@ -1627,13 +1627,13 @@ const Bi = /* @__PURE__ */ le(Li, [["render", Ri]]), Ii = { class: "flex flex-co
1627
1627
  }, r = (a) => {
1628
1628
  a.target.closest('button, input, select, textarea, [role="button"]') || (i("dragStart", { type: "touch", event: a }), a.preventDefault());
1629
1629
  };
1630
- return (a, l) => (p(), v("div", Ii, [
1630
+ return (a, l) => (p(), b("div", Wi, [
1631
1631
  C("div", {
1632
1632
  class: "flex cursor-grab flex-row items-center justify-between gap-1 p-2 pb-1 active:cursor-grabbing",
1633
1633
  onMousedown: s,
1634
1634
  onTouchstart: r
1635
1635
  }, [
1636
- C("div", Mi, [
1636
+ C("div", zi, [
1637
1637
  C("button", {
1638
1638
  type: "button",
1639
1639
  class: k(["btn btn-xs", e.mode === "write" ? "btn-ghost" : "btn-primary"]),
@@ -1646,41 +1646,41 @@ const Bi = /* @__PURE__ */ le(Li, [["render", Ri]]), Ii = { class: "flex flex-co
1646
1646
  disabled: !e.canWrite,
1647
1647
  "data-mode": "write",
1648
1648
  onClick: l[1] || (l[1] = (c) => i("requestWrite"))
1649
- }, " Write ", 10, Oi)
1649
+ }, " Write ", 10, _i)
1650
1650
  ]),
1651
- C("div", Di, [
1652
- e.showThemeSelector ? (p(), P(Bi, {
1651
+ C("div", Pi, [
1652
+ e.showThemeSelector ? (p(), P(Oi, {
1653
1653
  key: 0,
1654
1654
  "current-theme": e.theme,
1655
1655
  onThemeChange: l[2] || (l[2] = (c) => i("themeChange", c))
1656
1656
  }, null, 8, ["current-theme"])) : M("", !0),
1657
- W(gi, {
1657
+ W(yi, {
1658
1658
  onClick: l[3] || (l[3] = (c) => i("setting"))
1659
1659
  }),
1660
- W(xi, {
1660
+ W(Ai, {
1661
1661
  onClick: l[4] || (l[4] = (c) => i("close"))
1662
1662
  })
1663
1663
  ])
1664
1664
  ], 32),
1665
- o.value ? (p(), v("div", Fi, [
1666
- W(Do, {
1665
+ o.value ? (p(), b("div", Ni, [
1666
+ W(Po, {
1667
1667
  disabled: e.isAITranslationLoading || e.isAIExplainLoading,
1668
1668
  tts: n.tts,
1669
1669
  onLoadTTS: l[5] || (l[5] = (c) => a.$emit("loadTTS"))
1670
1670
  }, null, 8, ["disabled", "tts"]),
1671
- e.isAITranslateVisible ? (p(), P(ni, {
1671
+ e.isAITranslateVisible ? (p(), P(li, {
1672
1672
  key: 0,
1673
1673
  isLoading: e.isAITranslationLoading,
1674
1674
  isFilled: e.isAITranslate,
1675
1675
  onClick: l[6] || (l[6] = (c) => i("aiTranslate"))
1676
1676
  }, null, 8, ["isLoading", "isFilled"])) : M("", !0),
1677
- e.isAIExplainVisible ? (p(), P(ui, {
1677
+ e.isAIExplainVisible ? (p(), P(pi, {
1678
1678
  key: 1,
1679
1679
  isLoading: e.isAIExplainLoading,
1680
1680
  isFilled: e.isAIExplain,
1681
1681
  onClick: l[7] || (l[7] = (c) => i("aiExplain"))
1682
1682
  }, null, 8, ["isLoading", "isFilled"])) : M("", !0),
1683
- n.isFavoriteFeatureEnabled ? (p(), P(No, {
1683
+ n.isFavoriteFeatureEnabled ? (p(), P(qo, {
1684
1684
  key: 2,
1685
1685
  isFilled: n.isFavorite,
1686
1686
  onClick: l[8] || (l[8] = (c) => i("favorite")),
@@ -1689,7 +1689,7 @@ const Bi = /* @__PURE__ */ le(Li, [["render", Ri]]), Ii = { class: "flex flex-co
1689
1689
  ])) : M("", !0)
1690
1690
  ]));
1691
1691
  }
1692
- }, Wi = { class: "pointer-events-none absolute inset-0 z-20" }, zi = ["data-resize", "aria-label", "onPointerdown"], _i = {
1692
+ }, Vi = { class: "pointer-events-none absolute inset-0 z-20" }, Hi = ["data-resize", "aria-label", "onPointerdown"], Ui = {
1693
1693
  __name: "ResizeHandle",
1694
1694
  emits: ["resizeStart"],
1695
1695
  setup(e, { emit: t }) {
@@ -1706,38 +1706,41 @@ const Bi = /* @__PURE__ */ le(Li, [["render", Ri]]), Ii = { class: "flex flex-co
1706
1706
  var a, l;
1707
1707
  r.pointerType === "mouse" && r.button !== 0 || (r.preventDefault(), r.stopPropagation(), (l = (a = r.currentTarget).setPointerCapture) == null || l.call(a, r.pointerId), n("resizeStart", { edge: s, event: r }));
1708
1708
  };
1709
- return (s, r) => (p(), v("div", Wi, [
1710
- (p(), v(K, null, me(o, (a) => C("div", {
1709
+ return (s, r) => (p(), b("div", Vi, [
1710
+ (p(), b(K, null, he(o, (a) => C("div", {
1711
1711
  key: a.name,
1712
1712
  "data-resize": a.name,
1713
1713
  class: k(["pointer-events-auto absolute touch-none hover:bg-base-content/20", a.class]),
1714
1714
  "aria-label": `Resize from the ${a.name} border`,
1715
1715
  onPointerdown: (l) => i(a.name, l),
1716
- onClick: r[0] || (r[0] = sn(() => {
1716
+ onClick: r[0] || (r[0] = dn(() => {
1717
1717
  }, ["stop"]))
1718
- }, null, 42, zi)), 64))
1718
+ }, null, 42, Hi)), 64))
1719
1719
  ]));
1720
1720
  }
1721
- }, rt = 4, ke = "check", Pi = [
1721
+ }, it = 4, Ke = "check", Zi = [
1722
1722
  { value: "check", label: "Check" },
1723
1723
  { value: "improve", label: "Improve" },
1724
1724
  { value: "improve-plus", label: "Academy" },
1725
1725
  { value: "friendly", label: "Friendly" },
1726
1726
  { value: "simplify", label: "Simplify" },
1727
1727
  { value: "more-detailed", label: "More detailed" }
1728
- ], Vi = /* @__PURE__ */ new Set(["", "text", "search", "email", "url", "tel"]), Ni = 4e4;
1729
- function Vt(e, t) {
1730
- return !!e && String(t || "").trim().length >= rt;
1728
+ ], ji = /* @__PURE__ */ new Set(["", "text", "search", "email", "url", "tel"]), qi = 4e4;
1729
+ function Xi(e, t) {
1730
+ return !!e && String(t || "").trim().length >= it;
1731
1731
  }
1732
- function Hi(e) {
1732
+ function Yi(e) {
1733
+ return { event: "toggleKey", key: e };
1734
+ }
1735
+ function Ki(e) {
1733
1736
  const t = (e == null ? void 0 : e.nodeType) === 3 ? e.parentElement : e;
1734
1737
  if (!t || t.nodeType !== 1) return !1;
1735
- if (Ui(t)) return !0;
1738
+ if (Gi(t)) return !0;
1736
1739
  if (t.disabled || t.readOnly) return !1;
1737
1740
  const n = t.tagName;
1738
- return n === "TEXTAREA" ? !0 : n === "INPUT" ? Vi.has((t.type || "text").toLowerCase()) : !1;
1741
+ return n === "TEXTAREA" ? !0 : n === "INPUT" ? ji.has((t.type || "text").toLowerCase()) : !1;
1739
1742
  }
1740
- function Ui(e) {
1743
+ function Gi(e) {
1741
1744
  var n;
1742
1745
  let t = e;
1743
1746
  for (; t && t.nodeType === 1; ) {
@@ -1749,30 +1752,30 @@ function Ui(e) {
1749
1752
  }
1750
1753
  return !1;
1751
1754
  }
1752
- function Zi(e, t) {
1753
- const n = Lt(e), o = Lt(t);
1754
- return !n.length && !o.length ? [] : n.length * o.length > Ni ? [{ value: String(t || ""), added: !1, removed: !1 }] : Yi(n, o, Xi(n, o));
1755
+ function Ji(e, t) {
1756
+ const n = $t(e), o = $t(t);
1757
+ return !n.length && !o.length ? [] : n.length * o.length > qi ? [{ value: String(t || ""), added: !1, removed: !1 }] : nr(n, o, tr(n, o));
1755
1758
  }
1756
- function ji(e) {
1759
+ function Qi(e) {
1757
1760
  return String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
1758
1761
  }
1759
- function qi(e, t) {
1760
- return Zi(e, t).map((n) => {
1761
- const o = ji(n.value);
1762
+ function er(e, t) {
1763
+ return Ji(e, t).map((n) => {
1764
+ const o = Qi(n.value);
1762
1765
  return n.added ? `<span class="bg-success/40">${o}</span>` : n.removed ? `<span class="bg-error/30 line-through">${o}</span>` : o;
1763
1766
  }).join("");
1764
1767
  }
1765
- function Lt(e) {
1768
+ function $t(e) {
1766
1769
  return String(e || "").split(/(\s+)/).filter((t) => t.length);
1767
1770
  }
1768
- function Xi(e, t) {
1771
+ function tr(e, t) {
1769
1772
  const n = Array.from({ length: e.length + 1 }, () => new Array(t.length + 1).fill(0));
1770
1773
  for (let o = e.length - 1; o >= 0; o--)
1771
1774
  for (let i = t.length - 1; i >= 0; i--)
1772
1775
  n[o][i] = e[o] === t[i] ? n[o + 1][i + 1] + 1 : Math.max(n[o + 1][i], n[o][i + 1]);
1773
1776
  return n;
1774
1777
  }
1775
- function Yi(e, t, n) {
1778
+ function nr(e, t, n) {
1776
1779
  const o = [];
1777
1780
  let i = 0, s = 0;
1778
1781
  const r = (a, l, c) => {
@@ -1791,20 +1794,20 @@ function Yi(e, t, n) {
1791
1794
  r(t[s], !0, !1), s += 1;
1792
1795
  return o;
1793
1796
  }
1794
- const Ki = {
1797
+ const or = {
1795
1798
  class: "flex flex-col gap-2 border-t border-base-300 p-3",
1796
1799
  "data-write-view": ""
1797
- }, Gi = { class: "flex items-center gap-1" }, Ji = ["value", "disabled"], Qi = ["value"], er = ["disabled"], tr = {
1800
+ }, ir = { class: "flex items-center gap-1" }, rr = ["value", "disabled"], sr = ["value"], lr = ["disabled"], ar = {
1798
1801
  key: 0,
1799
1802
  "data-write-loading": ""
1800
- }, nr = {
1803
+ }, cr = {
1801
1804
  key: 1,
1802
1805
  class: "text-base leading-tight text-base-content"
1803
- }, or = ["innerHTML"], ir = {
1806
+ }, ur = ["innerHTML"], dr = {
1804
1807
  key: 3,
1805
1808
  class: "whitespace-pre-wrap break-words text-base leading-tight text-base-content",
1806
1809
  "data-result": ""
1807
- }, rr = {
1810
+ }, fr = {
1808
1811
  __name: "WriteView",
1809
1812
  props: {
1810
1813
  text: {
@@ -1825,15 +1828,15 @@ const Ki = {
1825
1828
  },
1826
1829
  emits: ["action", "copy", "replace"],
1827
1830
  setup(e, { emit: t }) {
1828
- const n = e, o = t, i = B(() => n.text.trim().length < rt), s = B(() => !n.loading && !!n.result), r = B(() => n.editable && s.value), a = B(() => n.action === "check" && !!n.result), l = B(() => a.value ? qi(n.text, n.result) : "");
1831
+ const n = e, o = t, i = B(() => n.text.trim().length < it), s = B(() => !n.loading && !!n.result), r = B(() => n.editable && s.value), a = B(() => n.action === "check" && !!n.result), l = B(() => a.value ? er(n.text, n.result) : "");
1829
1832
  function c() {
1830
1833
  s.value && o("copy", n.result);
1831
1834
  }
1832
1835
  function d() {
1833
1836
  r.value && o("replace", { text: n.text, result: n.result });
1834
1837
  }
1835
- return (h, g) => (p(), v("div", Ki, [
1836
- C("div", Gi, [
1838
+ return (h, g) => (p(), b("div", or, [
1839
+ C("div", ir, [
1837
1840
  C("select", {
1838
1841
  class: "select select-bordered select-xs min-w-0 flex-1",
1839
1842
  value: e.action,
@@ -1841,19 +1844,19 @@ const Ki = {
1841
1844
  "data-write-action": "",
1842
1845
  onChange: g[0] || (g[0] = (f) => o("action", f.target.value))
1843
1846
  }, [
1844
- (p(!0), v(K, null, me(Ce(Pi), (f) => (p(), v("option", {
1847
+ (p(!0), b(K, null, he(ye(Zi), (f) => (p(), b("option", {
1845
1848
  key: f.value,
1846
1849
  value: f.value
1847
- }, oe(f.label), 9, Qi))), 128))
1848
- ], 40, Ji),
1850
+ }, ie(f.label), 9, sr))), 128))
1851
+ ], 40, rr),
1849
1852
  C("button", {
1850
1853
  type: "button",
1851
1854
  class: "btn btn-xs",
1852
1855
  disabled: !s.value,
1853
1856
  "data-copy": "",
1854
1857
  onClick: c
1855
- }, " Copy ", 8, er),
1856
- r.value ? (p(), v("button", {
1858
+ }, " Copy ", 8, lr),
1859
+ r.value ? (p(), b("button", {
1857
1860
  key: 0,
1858
1861
  type: "button",
1859
1862
  class: "btn btn-xs btn-primary",
@@ -1861,29 +1864,29 @@ const Ki = {
1861
1864
  onClick: d
1862
1865
  }, " Replace ")) : M("", !0)
1863
1866
  ]),
1864
- e.loading ? (p(), v("div", tr, [
1865
- W(it)
1866
- ])) : e.unavailable ? (p(), v("p", nr, " Service Unavailable ")) : a.value ? (p(), v("pre", {
1867
+ e.loading ? (p(), b("div", ar, [
1868
+ W(ot)
1869
+ ])) : e.unavailable ? (p(), b("p", cr, " Service Unavailable ")) : a.value ? (p(), b("pre", {
1867
1870
  key: 2,
1868
1871
  class: "m-0 whitespace-pre-wrap break-words text-base leading-tight text-base-content",
1869
1872
  "data-diff": "",
1870
1873
  innerHTML: l.value
1871
- }, null, 8, or)) : e.result ? (p(), v("p", ir, oe(e.result), 1)) : M("", !0)
1874
+ }, null, 8, ur)) : e.result ? (p(), b("p", dr, ie(e.result), 1)) : M("", !0)
1872
1875
  ]));
1873
1876
  }
1874
- }, j = {
1877
+ }, V = {
1875
1878
  LOGO: "LOGO",
1876
1879
  LOADING: "LOADING",
1877
1880
  DATA: "DATA",
1878
1881
  ERROR: "ERROR",
1879
1882
  HIDDEN: "HIDDEN"
1880
- }, St = 320, sr = 240, Tt = 250, lr = 120, ar = 8, cr = ["ar", "fa", "iw", "yi", "ur", "pa"], ur = {
1883
+ }, kt = 320, mr = 240, Rt = 250, hr = 120, pr = 8, gr = ["ar", "fa", "iw", "yi", "ur", "pa"], vr = {
1881
1884
  key: 0,
1882
1885
  class: "flex justify-center"
1883
- }, dr = {
1886
+ }, br = {
1884
1887
  key: 1,
1885
1888
  class: "flex justify-center"
1886
- }, fr = { class: "p-3 border-t border-base-300" }, mr = {
1889
+ }, Cr = { class: "p-3 border-t border-base-300" }, wr = {
1887
1890
  name: "Bubble",
1888
1891
  props: [
1889
1892
  "translation",
@@ -1948,14 +1951,14 @@ const Ki = {
1948
1951
  },
1949
1952
  currentAction() {
1950
1953
  var e;
1951
- return this.writeAction || ((e = this.writing) == null ? void 0 : e.action) || ke;
1954
+ return this.writeAction || ((e = this.writing) == null ? void 0 : e.action) || Ke;
1952
1955
  },
1953
1956
  activeText() {
1954
1957
  var e, t;
1955
1958
  return this.selectedText || ((e = this.writing) == null ? void 0 : e.text) || ((t = this.data) == null ? void 0 : t.text) || "";
1956
1959
  },
1957
1960
  canWrite() {
1958
- return this.activeText.trim().length >= rt;
1961
+ return this.activeText.trim().length >= it;
1959
1962
  },
1960
1963
  shownResult() {
1961
1964
  var e;
@@ -1964,7 +1967,7 @@ const Ki = {
1964
1967
  },
1965
1968
  methods: {
1966
1969
  handleLogo() {
1967
- if (Vt(this.editable, this.selectedText)) {
1970
+ if (Xi(this.editable, this.selectedText)) {
1968
1971
  this.$emit("write", { text: this.selectedText, action: this.currentAction });
1969
1972
  return;
1970
1973
  }
@@ -2021,18 +2024,18 @@ const Ki = {
2021
2024
  immediate: !0
2022
2025
  },
2023
2026
  status() {
2024
- this.status === j.ERROR && (this.isServiceUnavailable = !0);
2027
+ this.status === V.ERROR && (this.isServiceUnavailable = !0);
2025
2028
  }
2026
2029
  }
2027
- }, hr = /* @__PURE__ */ Object.assign(mr, {
2030
+ }, yr = /* @__PURE__ */ Object.assign(wr, {
2028
2031
  setup(e) {
2029
2032
  return (t, n) => {
2030
2033
  var o, i, s, r, a, l, c, d, h, g, f;
2031
- return e.status === Ce(j).LOGO ? (p(), v("div", ur, [
2032
- W(Xn, { onClick: t.handleLogo }, null, 8, ["onClick"])
2033
- ])) : e.status === Ce(j).LOADING ? (p(), v("div", dr, [
2034
- W(oo)
2035
- ])) : e.status !== Ce(j).HIDDEN ? (p(), v("div", {
2034
+ return e.status === ye(V).LOGO ? (p(), b("div", vr, [
2035
+ W(Qn, { onClick: t.handleLogo }, null, 8, ["onClick"])
2036
+ ])) : e.status === ye(V).LOADING ? (p(), b("div", br, [
2037
+ W(ao)
2038
+ ])) : e.status !== ye(V).HIDDEN ? (p(), b("div", {
2036
2039
  key: 2,
2037
2040
  class: k([
2038
2041
  "wrapper rounded-lg text-base-content text-sm shadow-lg relative bg-[length:300%_300%] bg-[position:0%_50%]",
@@ -2049,7 +2052,7 @@ const Ki = {
2049
2052
  e.constrained ? "flex min-h-0 min-w-0 flex-1 flex-col" : ""
2050
2053
  ])
2051
2054
  }, [
2052
- t.isServiceUnavailable ? (p(), P(xt, {
2055
+ t.isServiceUnavailable ? (p(), P(At, {
2053
2056
  key: 0,
2054
2057
  class: "shrink-0",
2055
2058
  isServiceUnavailable: t.isServiceUnavailable,
@@ -2065,7 +2068,7 @@ const Ki = {
2065
2068
  onThemeChange: n[4] || (n[4] = (m) => t.$emit("themeChange", m)),
2066
2069
  onRequestTranslate: t.requestTranslate,
2067
2070
  onRequestWrite: t.requestWrite
2068
- }, null, 8, ["isServiceUnavailable", "theme", "showThemeSelector", "mode", "canWrite", "onRequestTranslate", "onRequestWrite"])) : (p(), P(xt, {
2071
+ }, null, 8, ["isServiceUnavailable", "theme", "showThemeSelector", "mode", "canWrite", "onRequestTranslate", "onRequestWrite"])) : (p(), P(At, {
2069
2072
  key: 1,
2070
2073
  class: "shrink-0",
2071
2074
  tts: e.tts,
@@ -2098,7 +2101,7 @@ const Ki = {
2098
2101
  e.constrained ? "min-h-0 min-w-0 flex-1 overflow-y-auto overflow-x-hidden break-words overscroll-contain" : ""
2099
2102
  )
2100
2103
  }, [
2101
- t.isWrite ? (p(), P(rr, {
2104
+ t.isWrite ? (p(), P(fr, {
2102
2105
  key: 0,
2103
2106
  text: t.activeText,
2104
2107
  result: t.shownResult,
@@ -2109,43 +2112,43 @@ const Ki = {
2109
2112
  onAction: t.handleWriteAction,
2110
2113
  onCopy: t.handleCopy,
2111
2114
  onReplace: t.handleReplace
2112
- }, null, 8, ["text", "result", "action", "loading", "editable", "unavailable", "onAction", "onCopy", "onReplace"])) : (p(), v(K, { key: 1 }, [
2113
- C("div", fr, [
2114
- (l = (a = t.data) == null ? void 0 : a.phonetic) != null && l.src ? (p(), P(ao, {
2115
+ }, null, 8, ["text", "result", "action", "loading", "editable", "unavailable", "onAction", "onCopy", "onReplace"])) : (p(), b(K, { key: 1 }, [
2116
+ C("div", Cr, [
2117
+ (l = (a = t.data) == null ? void 0 : a.phonetic) != null && l.src ? (p(), P(ho, {
2115
2118
  key: 0,
2116
2119
  phonetic: (d = (c = t.data) == null ? void 0 : c.phonetic) == null ? void 0 : d.src
2117
2120
  }, null, 8, ["phonetic"])) : M("", !0),
2118
- W(uo, {
2121
+ W(go, {
2119
2122
  sentences: t.isServiceUnavailable ? "Service Unavailable" : (h = t.data) == null ? void 0 : h.result
2120
2123
  }, null, 8, ["sentences"]),
2121
- W(ho, {
2124
+ W(Co, {
2122
2125
  show: t.showAIPrompt,
2123
2126
  isLoading: t.isAITranslationLoading,
2124
2127
  onClick: t.handleAITranslate
2125
2128
  }, null, 8, ["show", "isLoading", "onClick"]),
2126
- W(vo, {
2129
+ W(xo, {
2127
2130
  show: t.showAIExplainPrompt,
2128
2131
  isLoading: t.isAIExplainLoading,
2129
2132
  onClick: t.handleAIExplain
2130
2133
  }, null, 8, ["show", "isLoading", "onClick"]),
2131
- W(wo, {
2134
+ W(To, {
2132
2135
  show: t.showLearnPrompt,
2133
2136
  onClick: t.handleLearn
2134
2137
  }, null, 8, ["show", "onClick"])
2135
2138
  ]),
2136
- !t.isServiceUnavailable && ((f = (g = t.data) == null ? void 0 : g.dictionary) == null ? void 0 : f.length) > 0 ? (p(), P(Lo, {
2139
+ !t.isServiceUnavailable && ((f = (g = t.data) == null ? void 0 : g.dictionary) == null ? void 0 : f.length) > 0 ? (p(), P($o, {
2137
2140
  key: 0,
2138
2141
  class: "p-3 pt-0 border-t border-base-300",
2139
2142
  dictionary: t.data.dictionary
2140
2143
  }, null, 8, ["dictionary"])) : M("", !0),
2141
- !t.isServiceUnavailable && e.isAIExplain && e.explanation ? (p(), P($o, {
2144
+ !t.isServiceUnavailable && e.isAIExplain && e.explanation ? (p(), P(Mo, {
2142
2145
  key: 1,
2143
2146
  class: "p-3 pt-0 border-t border-base-300",
2144
2147
  explanation: e.explanation
2145
2148
  }, null, 8, ["explanation"])) : M("", !0)
2146
2149
  ], 64))
2147
2150
  ], 2),
2148
- W(_i, {
2151
+ W(Ui, {
2149
2152
  onResizeStart: n[11] || (n[11] = (m) => t.$emit("resizeStart", m))
2150
2153
  })
2151
2154
  ], 2)
@@ -2153,12 +2156,12 @@ const Ki = {
2153
2156
  };
2154
2157
  }
2155
2158
  });
2156
- function pr(e) {
2159
+ function xr(e) {
2157
2160
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2158
2161
  }
2159
- var Xe = { exports: {} }, Et;
2160
- function gr() {
2161
- return Et || (Et = 1, function(e) {
2162
+ var je = { exports: {} }, Bt;
2163
+ function Lr() {
2164
+ return Bt || (Bt = 1, function(e) {
2162
2165
  (function() {
2163
2166
  var t = [
2164
2167
  "direction",
@@ -2223,19 +2226,19 @@ function gr() {
2223
2226
  }
2224
2227
  e.exports = i;
2225
2228
  })();
2226
- }(Xe)), Xe.exports;
2229
+ }(je)), je.exports;
2227
2230
  }
2228
- var vr = gr();
2229
- const At = /* @__PURE__ */ pr(vr);
2230
- function ee(e) {
2231
+ var Sr = Lr();
2232
+ const It = /* @__PURE__ */ xr(Sr);
2233
+ function te(e) {
2231
2234
  const t = window.getSelection();
2232
2235
  let n = t + "";
2233
2236
  if (n = n.trim(), e && e.type === "password" || !n.length && (!e || e.selectionStart == null || e.selectionEnd == null || e.selectionStart === e.selectionEnd || (n = e.value.substring(e.selectionStart, e.selectionEnd), n = n.trim(), !n.length)))
2234
2237
  return !1;
2235
- let o = wr(t), { top: i, bottom: s, left: r, width: a, height: l } = o;
2238
+ let o = $r(t), { top: i, bottom: s, left: r, width: a, height: l } = o;
2236
2239
  if (!s && !r) {
2237
2240
  if (!e || e.selectionStart == null || e.selectionEnd == null) return !1;
2238
- let c = At(e, e.selectionStart), d = At(e, e.selectionEnd);
2241
+ let c = It(e, e.selectionStart), d = It(e, e.selectionEnd);
2239
2242
  o = e.getBoundingClientRect(), r = o.left + c.left, a = d.left - c.left, c.top != d.top && (r = o.left, a = o.width), i = o.top + c.top, s = o.top + d.top + 20;
2240
2243
  }
2241
2244
  return l === 0 && (l = s - i), {
@@ -2251,17 +2254,23 @@ function ee(e) {
2251
2254
  height: l
2252
2255
  };
2253
2256
  }
2254
- function br(e) {
2257
+ function Mt(e) {
2255
2258
  var t;
2256
2259
  return ((t = e == null ? void 0 : e.key) == null ? void 0 : t.toLowerCase()) === "a" && !!(e.ctrlKey || e.metaKey);
2257
2260
  }
2258
- function Ye(e, t) {
2261
+ function qe(e, t) {
2259
2262
  return !!(e || t);
2260
2263
  }
2261
- function Cr(e) {
2264
+ function Tr(e, t, n) {
2265
+ return !e || !n ? !1 : e.text === n && (!e.el || e.el === t);
2266
+ }
2267
+ function Er(e, t) {
2268
+ return !!t && e === t;
2269
+ }
2270
+ function Ar(e) {
2262
2271
  return (e == null ? void 0 : e.key) === "Control" || (e == null ? void 0 : e.key) === "Meta" || (e == null ? void 0 : e.key) === "Shift" || (e == null ? void 0 : e.key) === "Alt";
2263
2272
  }
2264
- function wr(e) {
2273
+ function $r(e) {
2265
2274
  if (!e || e.rangeCount === 0)
2266
2275
  return { top: 0, bottom: 0, left: 0, width: 0, height: 0 };
2267
2276
  try {
@@ -2270,7 +2279,7 @@ function wr(e) {
2270
2279
  return { top: 0, bottom: 0, left: 0, width: 0, height: 0 };
2271
2280
  }
2272
2281
  }
2273
- function yr() {
2282
+ function kr() {
2274
2283
  const e = document.getElementsByTagName("ddict-div");
2275
2284
  for (let t of e)
2276
2285
  if (!t.parentNode.matches('wrapper[dir="rtl"]')) {
@@ -2278,17 +2287,17 @@ function yr() {
2278
2287
  n.setAttribute("dir", "rtl"), t.parentNode.insertBefore(n, t), n.appendChild(t);
2279
2288
  }
2280
2289
  }
2281
- function xr() {
2290
+ function Rr() {
2282
2291
  const e = document.querySelectorAll('wrapper[dir="rtl"]');
2283
2292
  for (let t of e) {
2284
2293
  const n = t.querySelector("ddict-div");
2285
2294
  n && (t.parentNode.insertBefore(n, t), t.remove());
2286
2295
  }
2287
2296
  }
2288
- const $t = {
2289
- supportRTL: yr,
2290
- removeRTL: xr
2291
- }, Lr = 2, Sr = {
2297
+ const Dt = {
2298
+ supportRTL: kr,
2299
+ removeRTL: Rr
2300
+ }, Br = 2, Ir = {
2292
2301
  n: { x: !1, y: !0, fromStartX: !1, fromStartY: !0 },
2293
2302
  s: { x: !1, y: !0, fromStartX: !1, fromStartY: !1 },
2294
2303
  e: { x: !0, y: !1, fromStartX: !1, fromStartY: !1 },
@@ -2298,14 +2307,14 @@ const $t = {
2298
2307
  se: { x: !0, y: !0, fromStartX: !1, fromStartY: !1 },
2299
2308
  sw: { x: !0, y: !0, fromStartX: !0, fromStartY: !1 }
2300
2309
  };
2301
- function Tr(e, t, n = Lr) {
2310
+ function Mr(e, t, n = Br) {
2302
2311
  return Math.abs(e) >= n || Math.abs(t) >= n;
2303
2312
  }
2304
- function be(e, t, n) {
2313
+ function we(e, t, n) {
2305
2314
  const o = n > t ? n : t;
2306
2315
  return Math.min(o, Math.max(t, e));
2307
2316
  }
2308
- function Er({
2317
+ function Dr({
2309
2318
  x: e,
2310
2319
  y: t,
2311
2320
  width: n,
@@ -2320,22 +2329,22 @@ function Er({
2320
2329
  viewportHeight: h,
2321
2330
  margin: g = 8
2322
2331
  }) {
2323
- const f = Sr[a];
2332
+ const f = Ir[a];
2324
2333
  if (!f) return { x: e, y: t, width: n, height: o };
2325
2334
  const m = r > 0 ? r : 1, w = e + n * m, y = t + o * m, L = d - g, S = h - g;
2326
2335
  let x = e, $ = t, E = n, I = o;
2327
2336
  if (f.x && f.fromStartX) {
2328
2337
  const T = g, z = w - l * m;
2329
- x = be(e + i, T, z), E = (w - x) / m;
2330
- } else f.x && (E = be(
2338
+ x = we(e + i, T, z), E = (w - x) / m;
2339
+ } else f.x && (E = we(
2331
2340
  n + i / m,
2332
2341
  l,
2333
2342
  Math.max(l, (L - e) / m)
2334
2343
  ));
2335
2344
  if (f.y && f.fromStartY) {
2336
2345
  const T = g, z = y - c * m;
2337
- $ = be(t + s, T, z), I = (y - $) / m;
2338
- } else f.y && (I = be(
2346
+ $ = we(t + s, T, z), I = (y - $) / m;
2347
+ } else f.y && (I = we(
2339
2348
  o + s / m,
2340
2349
  c,
2341
2350
  Math.max(c, (S - t) / m)
@@ -2347,10 +2356,10 @@ function Er({
2347
2356
  height: Math.round(I)
2348
2357
  };
2349
2358
  }
2350
- function Ar(e) {
2351
- const t = Or(e);
2359
+ function Fr(e) {
2360
+ const t = Vr(e);
2352
2361
  if (!t) return null;
2353
- if (Dr(t)) {
2362
+ if (Hr(t)) {
2354
2363
  const s = t.selectionStart, r = t.selectionEnd;
2355
2364
  return s == null || r == null || s === r ? null : {
2356
2365
  kind: "value",
@@ -2365,10 +2374,10 @@ function Ar(e) {
2365
2374
  const o = n.getRangeAt(0).cloneRange(), i = o.toString();
2366
2375
  return i ? { kind: "range", element: t, range: o, text: i } : null;
2367
2376
  }
2368
- function $r(e, t) {
2369
- return !e || t == null ? !1 : e.kind === "value" ? Rr(e, t) : Br(e, t);
2377
+ function Or(e, t) {
2378
+ return !e || t == null ? !1 : e.kind === "value" ? zr(e, t) : _r(e, t);
2370
2379
  }
2371
- async function kr(e) {
2380
+ async function Wr(e) {
2372
2381
  var t;
2373
2382
  if (!e) return !1;
2374
2383
  try {
@@ -2376,32 +2385,32 @@ async function kr(e) {
2376
2385
  return await navigator.clipboard.writeText(e), !0;
2377
2386
  } catch {
2378
2387
  }
2379
- return Mr(e);
2388
+ return Nr(e);
2380
2389
  }
2381
- function Rr(e, t) {
2390
+ function zr(e, t) {
2382
2391
  const n = e.element;
2383
2392
  if (!n || n.value.slice(e.start, e.end) !== e.text) return !1;
2384
2393
  const o = n.value.slice(0, e.start) + t + n.value.slice(e.end);
2385
- Ir(n, o);
2394
+ Pr(n, o);
2386
2395
  const i = e.start + t.length;
2387
- return n.focus(), n.setSelectionRange(i, i), Nt(n), !0;
2396
+ return n.focus(), n.setSelectionRange(i, i), qt(n), !0;
2388
2397
  }
2389
- function Br(e, t) {
2398
+ function _r(e, t) {
2390
2399
  const n = e.range;
2391
2400
  if (!n || n.toString() !== e.text) return !1;
2392
2401
  n.deleteContents();
2393
2402
  const o = n.startContainer.ownerDocument.createTextNode(t);
2394
- return n.insertNode(o), n.setStartAfter(o), n.collapse(!0), Nt(e.element), !0;
2403
+ return n.insertNode(o), n.setStartAfter(o), n.collapse(!0), qt(e.element), !0;
2395
2404
  }
2396
- function Ir(e, t) {
2405
+ function Pr(e, t) {
2397
2406
  var o;
2398
2407
  const n = (o = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), "value")) == null ? void 0 : o.set;
2399
2408
  n ? n.call(e, t) : e.value = t;
2400
2409
  }
2401
- function Nt(e) {
2410
+ function qt(e) {
2402
2411
  e.dispatchEvent(new Event("input", { bubbles: !0 })), e.dispatchEvent(new Event("change", { bubbles: !0 }));
2403
2412
  }
2404
- function Mr(e) {
2413
+ function Nr(e) {
2405
2414
  const t = document.createElement("textarea");
2406
2415
  t.value = e, t.setAttribute("readonly", ""), t.style.position = "fixed", t.style.left = "-9999px", document.body.appendChild(t), t.select();
2407
2416
  let n = !1;
@@ -2412,13 +2421,13 @@ function Mr(e) {
2412
2421
  }
2413
2422
  return t.remove(), n;
2414
2423
  }
2415
- function Or(e) {
2424
+ function Vr(e) {
2416
2425
  return e ? e.nodeType === 3 ? e.parentElement : e : null;
2417
2426
  }
2418
- function Dr(e) {
2427
+ function Hr(e) {
2419
2428
  return e.tagName === "TEXTAREA" || e.tagName === "INPUT";
2420
2429
  }
2421
- const Fr = {
2430
+ const Ur = {
2422
2431
  __name: "HotKeysListener",
2423
2432
  props: {
2424
2433
  textSelected: String
@@ -2449,13 +2458,13 @@ const Fr = {
2449
2458
  break;
2450
2459
  }
2451
2460
  };
2452
- return kt(() => {
2461
+ return Ft(() => {
2453
2462
  window.addEventListener("dblclick", i), window.addEventListener("keydown", s), window.addEventListener("keyup", r);
2454
- }), Qe(() => {
2463
+ }), Je(() => {
2455
2464
  window.removeEventListener("dblclick", i), window.removeEventListener("keydown", s), window.removeEventListener("keyup", r);
2456
- }), (l, c) => (p(), v("div"));
2465
+ }), (l, c) => (p(), b("div"));
2457
2466
  }
2458
- }, Wr = ["data-theme"], _r = {
2467
+ }, Zr = ["data-theme"], qr = {
2459
2468
  __name: "BubbleWrapper",
2460
2469
  props: {
2461
2470
  translation: Object,
@@ -2492,7 +2501,7 @@ const Fr = {
2492
2501
  },
2493
2502
  writeAction: {
2494
2503
  type: String,
2495
- default: ke
2504
+ default: Ke
2496
2505
  },
2497
2506
  isWriteLoading: {
2498
2507
  type: Boolean,
@@ -2515,40 +2524,40 @@ const Fr = {
2515
2524
  "copy"
2516
2525
  ],
2517
2526
  setup(e, { emit: t }) {
2518
- const n = e, o = t, i = R(null), s = R(null), r = R(null), a = R(!1), l = R(""), c = R(!1), d = R(n.writeAction || ke);
2527
+ const n = e, o = t, i = R(null), s = R(null), r = R(null), a = R(!1), l = R(""), c = R(!1), d = R(n.writeAction || Ke);
2519
2528
  let h = null;
2520
- te(
2529
+ ne(
2521
2530
  () => n.writeAction,
2522
- (u, b) => {
2523
- u && u !== b && (d.value = u);
2531
+ (u, v) => {
2532
+ u && u !== v && (d.value = u);
2524
2533
  }
2525
2534
  );
2526
2535
  const g = R(n.theme), f = R(!1), m = R(!1), w = R({ x: 0, y: 0 }), y = R(null), L = R(null), S = R(null), x = R(null), $ = R(!1);
2527
- let E = !1, I = 0, T = !1, z = "", N = "";
2536
+ let E = !1, I = 0, T = !1, z = "", U = "";
2528
2537
  const G = B(() => typeof window > "u" || !r.value || !l.value ? null : {
2529
- getBoundingClientRect: () => ee(r.value),
2530
- getClientRects: () => ee(r.value)
2531
- }), { floatingStyles: Le, update: he } = Hn(G, i, {
2538
+ getBoundingClientRect: () => te(r.value),
2539
+ getClientRects: () => te(r.value)
2540
+ }), { floatingStyles: Te, update: pe } = Xn(G, i, {
2532
2541
  placement: "bottom",
2533
- middleware: [zn(4), Pn(), _n()],
2534
- whileElementsMounted(u, b, A) {
2535
- return Wn(u, b, A, {
2542
+ middleware: [Hn(4), Zn(), Un()],
2543
+ whileElementsMounted(u, v, A) {
2544
+ return Vn(u, v, A, {
2536
2545
  ancestorScroll: !0,
2537
2546
  elementResize: !1
2538
2547
  });
2539
2548
  }
2540
- }), pe = B(
2541
- () => n.status === j.DATA || n.status === j.ERROR
2542
- ), O = B(() => {
2543
- var b, A;
2544
- if (!pe.value) return null;
2545
- const u = S.value ? be(S.value, Tt, St) : St;
2549
+ }), ge = B(
2550
+ () => n.status === V.DATA || n.status === V.ERROR
2551
+ ), D = B(() => {
2552
+ var v, A;
2553
+ if (!ge.value) return null;
2554
+ const u = S.value ? we(S.value, Rt, kt) : kt;
2546
2555
  return {
2547
- width: ((b = L.value) == null ? void 0 : b.width) ?? u,
2548
- height: ((A = L.value) == null ? void 0 : A.height) ?? sr
2556
+ width: ((v = L.value) == null ? void 0 : v.width) ?? u,
2557
+ height: ((A = L.value) == null ? void 0 : A.height) ?? mr
2549
2558
  };
2550
- }), Se = B(() => {
2551
- let u = Le.value;
2559
+ }), Ee = B(() => {
2560
+ let u = Te.value;
2552
2561
  if (y.value)
2553
2562
  u = {
2554
2563
  ...u,
@@ -2558,23 +2567,23 @@ const Fr = {
2558
2567
  transform: "none"
2559
2568
  };
2560
2569
  else if ($.value && r.value && l.value) {
2561
- const b = ee(r.value);
2562
- b && (u = {
2570
+ const v = te(r.value);
2571
+ v && (u = {
2563
2572
  ...u,
2564
2573
  position: "fixed",
2565
- left: `${b.x}px`,
2566
- top: `${b.y + b.height + 4}px`,
2574
+ left: `${v.x}px`,
2575
+ top: `${v.y + v.height + 4}px`,
2567
2576
  transform: "none"
2568
2577
  });
2569
2578
  }
2570
2579
  return u = {
2571
2580
  ...u,
2572
2581
  zIndex: 9999
2573
- }, O.value && (u = {
2582
+ }, D.value && (u = {
2574
2583
  ...u,
2575
- width: `${O.value.width}px`,
2576
- height: `${O.value.height}px`,
2577
- maxWidth: `${O.value.width}px`,
2584
+ width: `${D.value.width}px`,
2585
+ height: `${D.value.height}px`,
2586
+ maxWidth: `${D.value.width}px`,
2578
2587
  boxSizing: "border-box"
2579
2588
  }), u;
2580
2589
  }), J = B(() => {
@@ -2582,119 +2591,114 @@ const Fr = {
2582
2591
  transform: n.scale !== 1 ? `scale(${n.scale})` : "none",
2583
2592
  transformOrigin: "top left"
2584
2593
  };
2585
- return O.value && (u.width = `${O.value.width}px`, u.height = `${O.value.height}px`, u.boxSizing = "border-box"), u;
2594
+ return D.value && (u.width = `${D.value.width}px`, u.height = `${D.value.height}px`, u.boxSizing = "border-box"), u;
2586
2595
  });
2587
- kt(() => {
2588
- document.addEventListener("keyup", ct), document.addEventListener("select", ut), document.addEventListener("selectionchange", dt), document.addEventListener("pointerdown", st), document.addEventListener("pointerup", lt), document.addEventListener("pointercancel", at), document.documentElement.onclick = (u) => {
2589
- if (ze(), ft()) return;
2590
- const b = ee(u.target);
2591
- if (!b) {
2592
- Pe();
2593
- return;
2594
- }
2595
- _e(b, u);
2596
+ Ft(() => {
2597
+ document.addEventListener("keydown", ut), document.addEventListener("keyup", dt), document.addEventListener("select", ft), document.addEventListener("selectionchange", mt), document.addEventListener("pointerdown", st), document.addEventListener("pointerup", lt), document.addEventListener("pointercancel", at), document.documentElement.onclick = (u) => {
2598
+ ze(), !vt() && ct(u.target);
2596
2599
  }, document.documentElement.ontouchend = (u) => {
2597
- if (ze(), ft()) return;
2598
- const b = ee(u.target);
2599
- if (!b) {
2600
- Pe();
2601
- return;
2602
- }
2603
- _e(b, u);
2600
+ ze(), !vt() && ct(u.target);
2604
2601
  };
2605
- }), Qe(() => {
2606
- document.removeEventListener("keyup", ct), document.removeEventListener("select", ut), document.removeEventListener("selectionchange", dt), document.removeEventListener("pointerdown", st), document.removeEventListener("pointerup", lt), document.removeEventListener("pointercancel", at), cancelAnimationFrame(H), clearTimeout(Q), document.documentElement.onclick = null, document.documentElement.ontouchend = null, clearTimeout(I), document.removeEventListener("mousemove", Ve), document.removeEventListener("mouseup", He), document.removeEventListener("touchmove", Ne), document.removeEventListener("touchend", Ue), je();
2602
+ }), Je(() => {
2603
+ document.removeEventListener("keydown", ut), document.removeEventListener("keyup", dt), document.removeEventListener("select", ft), document.removeEventListener("selectionchange", mt), document.removeEventListener("pointerdown", st), document.removeEventListener("pointerup", lt), document.removeEventListener("pointercancel", at), cancelAnimationFrame(N), clearTimeout(Q), document.documentElement.onclick = null, document.documentElement.ontouchend = null, clearTimeout(I), document.removeEventListener("mousemove", _e), document.removeEventListener("mouseup", Ne), document.removeEventListener("touchmove", Pe), document.removeEventListener("touchend", Ve), Ue();
2607
2604
  });
2608
- let H = 0, D = !1, F = !1, Q = 0;
2609
- const st = () => {
2610
- D = !0, F = !0, clearTimeout(Q);
2605
+ let N = 0, F = !1, O = !1, Q = 0, ee = null, rt = "";
2606
+ const st = (u) => {
2607
+ F = !0, O = !0, clearTimeout(Q);
2608
+ const v = te(u.target);
2609
+ rt = v ? v.text : "";
2611
2610
  }, lt = () => {
2612
- D = !1, clearTimeout(Q), Q = window.setTimeout(() => {
2613
- F = !1, Te();
2611
+ F = !1, clearTimeout(Q), Q = window.setTimeout(() => {
2612
+ O = !1, ve();
2614
2613
  }, 50);
2615
2614
  }, at = () => {
2616
- D = !1, ze();
2615
+ F = !1, ze();
2617
2616
  }, ze = () => {
2618
- F = !1, clearTimeout(Q);
2617
+ O = !1, clearTimeout(Q);
2619
2618
  }, ct = (u) => {
2620
- if (!Cr(u)) {
2621
- if (br(u)) {
2622
- Te();
2619
+ const v = te(u);
2620
+ if (!v || Er(rt, v.text)) {
2621
+ a.value && gt();
2622
+ return;
2623
+ }
2624
+ ee = null, ht(v, { target: u });
2625
+ }, ut = (u) => {
2626
+ Mt(u) && (ee = null, ve());
2627
+ }, dt = (u) => {
2628
+ if (!Ar(u)) {
2629
+ if (Mt(u)) {
2630
+ ee = null, ve();
2623
2631
  return;
2624
2632
  }
2625
- ee(u.target) || Pe();
2633
+ te(u.target) || gt();
2626
2634
  }
2627
- }, ut = (u) => {
2628
- Ye(D, F) || Te(u.target);
2629
- }, dt = () => {
2630
- Ye(D, F) || n.status === j.DATA || n.status === j.LOADING || Te();
2631
- }, Te = (u) => {
2632
- cancelAnimationFrame(H), H = requestAnimationFrame(() => {
2633
- if (Ye(D, F)) return;
2634
- const b = u || document.activeElement, A = ee(b);
2635
- A && (a.value && l.value === A.text || _e(A, { target: b }));
2635
+ }, ft = (u) => {
2636
+ qe(F, O) || (ee = null, ve(u.target));
2637
+ }, mt = () => {
2638
+ qe(F, O) || n.status === V.DATA || n.status === V.LOADING || ve();
2639
+ }, ve = (u) => {
2640
+ cancelAnimationFrame(N), N = requestAnimationFrame(() => {
2641
+ if (qe(F, O)) return;
2642
+ const v = u || document.activeElement, A = te(v);
2643
+ A && (a.value && l.value === A.text || Tr(ee, v, A.text) || (ee = null, ht(A, { target: v })));
2636
2644
  });
2637
- }, _e = (u, b) => {
2638
- n.status !== j.LOGO && o("close"), a.value && !$.value && ($.value = !0), r.value = b.target, u.width && (S.value = u.width), c.value = Hi(b.target), h = c.value ? Ar(b.target) : null, l.value = u.text, a.value = !0, ht(he);
2639
- }, Pe = () => {
2640
- l.value = "", c.value = !1, h = null, ge();
2641
- }, Ht = (u) => {
2642
- kr(u), o("copy", u), ge();
2643
- }, Ut = (u) => {
2644
- $r(h, u == null ? void 0 : u.result), h = null, o("replace", u), ge();
2645
- }, Zt = (u) => {
2645
+ }, ht = (u, v) => {
2646
+ (n.status === V.DATA || n.status === V.LOADING || n.status === V.ERROR) && o("close"), a.value && !$.value && ($.value = !0), r.value = v.target, u.width && (S.value = u.width), c.value = Ki(v.target), h = c.value ? Fr(v.target) : null, l.value = u.text, a.value = !0, Ct(pe);
2647
+ }, pt = () => {
2648
+ l.value && (ee = { text: l.value, el: r.value });
2649
+ }, gt = () => {
2650
+ pt(), cancelAnimationFrame(N), l.value = "", c.value = !1, h = null, be();
2651
+ }, Xt = (u) => {
2652
+ Wr(u), o("copy", u), be();
2653
+ }, Yt = (u) => {
2654
+ Or(h, u == null ? void 0 : u.result), h = null, o("replace", u), be();
2655
+ }, Kt = (u) => {
2646
2656
  u != null && u.action && (d.value = u.action), o("write", u);
2647
- }, jt = (u) => {
2648
- if (Vt(c.value, l.value)) {
2649
- o("write", {
2650
- text: l.value,
2651
- action: d.value || ke
2652
- });
2653
- return;
2654
- }
2655
- o("toggleKey", u);
2656
- }, qt = (u) => {
2657
+ }, Gt = (u) => {
2658
+ const v = Yi(u);
2659
+ o(v.event, v.key);
2660
+ }, Jt = (u) => {
2657
2661
  u.stopPropagation();
2658
- }, ge = async () => {
2659
- je(), a.value = !1, y.value = null, $.value = !1, o("close");
2660
- }, Xt = (u) => {
2662
+ }, be = async () => {
2663
+ pt(), Ue(), a.value = !1, y.value = null, $.value = !1, o("close");
2664
+ }, Qt = (u) => {
2661
2665
  g.value = u, o("themeChange", u);
2662
- }, Yt = ({ type: u, event: b }) => {
2666
+ }, en = ({ type: u, event: v }) => {
2663
2667
  f.value = !0;
2664
2668
  const A = i.value.getBoundingClientRect();
2665
2669
  if (u === "mouse")
2666
2670
  w.value = {
2667
- x: b.clientX - A.left,
2668
- y: b.clientY - A.top
2669
- }, document.addEventListener("mousemove", Ve), document.addEventListener("mouseup", He);
2671
+ x: v.clientX - A.left,
2672
+ y: v.clientY - A.top
2673
+ }, document.addEventListener("mousemove", _e), document.addEventListener("mouseup", Ne);
2670
2674
  else if (u === "touch") {
2671
- const ae = b.touches[0];
2675
+ const ce = v.touches[0];
2672
2676
  w.value = {
2673
- x: ae.clientX - A.left,
2674
- y: ae.clientY - A.top
2675
- }, document.addEventListener("touchmove", Ne), document.addEventListener("touchend", Ue);
2677
+ x: ce.clientX - A.left,
2678
+ y: ce.clientY - A.top
2679
+ }, document.addEventListener("touchmove", Pe), document.addEventListener("touchend", Ve);
2676
2680
  }
2677
- }, Ve = (u) => {
2681
+ }, _e = (u) => {
2678
2682
  f.value && (y.value = {
2679
2683
  x: u.clientX - w.value.x,
2680
2684
  y: u.clientY - w.value.y
2681
2685
  });
2682
- }, Ne = (u) => {
2686
+ }, Pe = (u) => {
2683
2687
  if (!f.value) return;
2684
- const b = u.touches[0];
2688
+ const v = u.touches[0];
2685
2689
  y.value = {
2686
- x: b.clientX - w.value.x,
2687
- y: b.clientY - w.value.y
2690
+ x: v.clientX - w.value.x,
2691
+ y: v.clientY - w.value.y
2688
2692
  };
2689
- }, He = () => {
2690
- f.value && Ze(), f.value = !1, document.removeEventListener("mousemove", Ve), document.removeEventListener("mouseup", He);
2691
- }, Ue = () => {
2692
- f.value && Ze(), f.value = !1, document.removeEventListener("touchmove", Ne), document.removeEventListener("touchend", Ue);
2693
- }, ft = () => f.value || m.value ? !0 : E ? (E = !1, clearTimeout(I), !0) : !1, Ze = () => {
2693
+ }, Ne = () => {
2694
+ f.value && He(), f.value = !1, document.removeEventListener("mousemove", _e), document.removeEventListener("mouseup", Ne);
2695
+ }, Ve = () => {
2696
+ f.value && He(), f.value = !1, document.removeEventListener("touchmove", Pe), document.removeEventListener("touchend", Ve);
2697
+ }, vt = () => f.value || m.value ? !0 : E ? (E = !1, clearTimeout(I), !0) : !1, He = () => {
2694
2698
  E = !0, clearTimeout(I), I = window.setTimeout(() => {
2695
2699
  E = !1;
2696
2700
  }, 50);
2697
- }, Kt = {
2701
+ }, tn = {
2698
2702
  n: "ns-resize",
2699
2703
  s: "ns-resize",
2700
2704
  e: "ew-resize",
@@ -2703,81 +2707,81 @@ const Fr = {
2703
2707
  sw: "nesw-resize",
2704
2708
  nw: "nwse-resize",
2705
2709
  se: "nwse-resize"
2706
- }, Gt = (u) => {
2707
- !document.body || T || (z = document.body.style.cursor, N = document.body.style.userSelect, document.body.style.cursor = Kt[u] || "nwse-resize", document.body.style.userSelect = "none", T = !0);
2708
- }, Jt = () => {
2709
- !document.body || !T || (document.body.style.cursor = z, document.body.style.userSelect = N, T = !1);
2710
- }, Qt = ({ edge: u, event: b }) => {
2710
+ }, nn = (u) => {
2711
+ !document.body || T || (z = document.body.style.cursor, U = document.body.style.userSelect, document.body.style.cursor = tn[u] || "nwse-resize", document.body.style.userSelect = "none", T = !0);
2712
+ }, on = () => {
2713
+ !document.body || !T || (document.body.style.cursor = z, document.body.style.userSelect = U, T = !1);
2714
+ }, rn = ({ edge: u, event: v }) => {
2711
2715
  if (!s.value || !i.value || !s.value.offsetWidth || !s.value.offsetHeight) return;
2712
2716
  const A = i.value.getBoundingClientRect();
2713
2717
  m.value = !0, x.value = {
2714
- pointerX: b.clientX,
2715
- pointerY: b.clientY,
2718
+ pointerX: v.clientX,
2719
+ pointerY: v.clientY,
2716
2720
  left: A.left,
2717
2721
  top: A.top,
2718
2722
  width: s.value.offsetWidth,
2719
2723
  height: s.value.offsetHeight,
2720
2724
  edge: u,
2721
2725
  moved: !1
2722
- }, Gt(u), document.addEventListener("pointermove", mt), document.addEventListener("pointerup", Ee), document.addEventListener("pointercancel", Ee);
2723
- }, en = (u, b) => {
2726
+ }, nn(u), document.addEventListener("pointermove", bt), document.addEventListener("pointerup", Ae), document.addEventListener("pointercancel", Ae);
2727
+ }, sn = (u, v) => {
2724
2728
  if (!m.value || !x.value || !i.value) return;
2725
- const A = u - x.value.pointerX, ae = b - x.value.pointerY;
2726
- if (!x.value.moved && !Tr(A, ae)) return;
2729
+ const A = u - x.value.pointerX, ce = v - x.value.pointerY;
2730
+ if (!x.value.moved && !Mr(A, ce)) return;
2727
2731
  x.value.moved = !0;
2728
- const Ae = Er({
2732
+ const $e = Dr({
2729
2733
  x: x.value.left,
2730
2734
  y: x.value.top,
2731
2735
  width: x.value.width,
2732
2736
  height: x.value.height,
2733
2737
  dx: A,
2734
- dy: ae,
2738
+ dy: ce,
2735
2739
  scale: n.scale,
2736
2740
  edge: x.value.edge,
2737
- minWidth: Tt,
2738
- minHeight: lr,
2741
+ minWidth: Rt,
2742
+ minHeight: hr,
2739
2743
  viewportWidth: window.innerWidth,
2740
2744
  viewportHeight: window.innerHeight,
2741
- margin: ar
2745
+ margin: pr
2742
2746
  });
2743
- y.value = { x: Ae.x, y: Ae.y }, L.value = { width: Ae.width, height: Ae.height };
2744
- }, mt = (u) => {
2745
- u.cancelable && u.preventDefault(), en(u.clientX, u.clientY);
2746
- }, Ee = () => {
2747
- je();
2748
- }, je = () => {
2749
- m.value && Ze(), m.value = !1, x.value = null, Jt(), document.removeEventListener("pointermove", mt), document.removeEventListener("pointerup", Ee), document.removeEventListener("pointercancel", Ee);
2750
- }, tn = () => {
2751
- var b;
2752
- const u = (b = n == null ? void 0 : n.translation) == null ? void 0 : b.target;
2753
- cr.includes(u) ? $t.supportRTL() : $t.removeRTL();
2747
+ y.value = { x: $e.x, y: $e.y }, L.value = { width: $e.width, height: $e.height };
2748
+ }, bt = (u) => {
2749
+ u.cancelable && u.preventDefault(), sn(u.clientX, u.clientY);
2750
+ }, Ae = () => {
2751
+ Ue();
2752
+ }, Ue = () => {
2753
+ m.value && He(), m.value = !1, x.value = null, on(), document.removeEventListener("pointermove", bt), document.removeEventListener("pointerup", Ae), document.removeEventListener("pointercancel", Ae);
2754
+ }, ln = () => {
2755
+ var v;
2756
+ const u = (v = n == null ? void 0 : n.translation) == null ? void 0 : v.target;
2757
+ gr.includes(u) ? Dt.supportRTL() : Dt.removeRTL();
2754
2758
  };
2755
- return te(
2759
+ return ne(
2756
2760
  () => n.status,
2757
2761
  () => {
2758
- a.value && ht(he), tn();
2762
+ a.value && Ct(pe), ln();
2759
2763
  }
2760
- ), te(
2764
+ ), ne(
2761
2765
  () => n.theme,
2762
2766
  (u) => {
2763
2767
  g.value = u;
2764
2768
  }
2765
- ), (u, b) => (p(), v(K, null, [
2766
- a.value ? (p(), v("div", {
2769
+ ), (u, v) => (p(), b(K, null, [
2770
+ a.value ? (p(), b("div", {
2767
2771
  key: 0,
2768
2772
  ref_key: "floatingEl",
2769
2773
  ref: i,
2770
- style: Ke(Se.value),
2771
- onClick: qt
2774
+ style: Xe(Ee.value),
2775
+ onClick: Jt
2772
2776
  }, [
2773
2777
  C("div", {
2774
2778
  ref_key: "contentEl",
2775
2779
  ref: s,
2776
2780
  class: "relative rounded-lg",
2777
- style: Ke(J.value),
2781
+ style: Xe(J.value),
2778
2782
  "data-theme": g.value
2779
2783
  }, [
2780
- W(hr, {
2784
+ W(yr, {
2781
2785
  translation: n.translation,
2782
2786
  explanation: n.explanation,
2783
2787
  tts: n.tts,
@@ -2789,38 +2793,38 @@ const Fr = {
2789
2793
  aiExplainMinLength: n.aiExplainMinLength,
2790
2794
  theme: g.value,
2791
2795
  showThemeSelector: n.showThemeSelector,
2792
- constrained: pe.value,
2796
+ constrained: ge.value,
2793
2797
  mode: n.mode,
2794
2798
  writing: n.writing,
2795
2799
  writeAction: d.value,
2796
2800
  isWriteLoading: n.isWriteLoading,
2797
2801
  editable: c.value,
2798
2802
  selectedText: l.value,
2799
- onLogo: b[0] || (b[0] = (A) => o("logo")),
2800
- onWrite: Zt,
2801
- onReplace: Ut,
2802
- onCopy: Ht,
2803
- onFavorite: b[1] || (b[1] = (A) => o("favorite")),
2804
- onSettings: b[2] || (b[2] = (A) => o("settings")),
2805
- onClose: ge,
2806
- onLoadTTS: b[3] || (b[3] = (A) => o("loadTTS")),
2807
- onAiTranslate: b[4] || (b[4] = (A) => o("aiTranslate")),
2808
- onAiExplain: b[5] || (b[5] = (A) => o("aiExplain")),
2809
- onLearn: b[6] || (b[6] = (A) => o("learn", A)),
2810
- onThemeChange: Xt,
2811
- onDragStart: Yt,
2812
- onResizeStart: Qt
2803
+ onLogo: v[0] || (v[0] = (A) => o("logo")),
2804
+ onWrite: Kt,
2805
+ onReplace: Yt,
2806
+ onCopy: Xt,
2807
+ onFavorite: v[1] || (v[1] = (A) => o("favorite")),
2808
+ onSettings: v[2] || (v[2] = (A) => o("settings")),
2809
+ onClose: be,
2810
+ onLoadTTS: v[3] || (v[3] = (A) => o("loadTTS")),
2811
+ onAiTranslate: v[4] || (v[4] = (A) => o("aiTranslate")),
2812
+ onAiExplain: v[5] || (v[5] = (A) => o("aiExplain")),
2813
+ onLearn: v[6] || (v[6] = (A) => o("learn", A)),
2814
+ onThemeChange: Qt,
2815
+ onDragStart: en,
2816
+ onResizeStart: rn
2813
2817
  }, null, 8, ["translation", "explanation", "tts", "status", "isFavorite", "isFavoriteFeatureEnabled", "isAITranslate", "isAIExplain", "aiExplainMinLength", "theme", "showThemeSelector", "constrained", "mode", "writing", "writeAction", "isWriteLoading", "editable", "selectedText"])
2814
- ], 12, Wr)
2818
+ ], 12, Zr)
2815
2819
  ], 4)) : M("", !0),
2816
- W(Fr, {
2820
+ W(Ur, {
2817
2821
  textSelected: l.value,
2818
- onToggleKey: jt,
2819
- onClose: ge
2822
+ onToggleKey: Gt,
2823
+ onClose: be
2820
2824
  }, null, 8, ["textSelected"])
2821
2825
  ], 64));
2822
2826
  }
2823
2827
  };
2824
2828
  export {
2825
- _r as default
2829
+ qr as default
2826
2830
  };