@ddict/bubble 1.3.0 → 1.3.1

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,5 +1,5 @@
1
- import { computed as _, ref as R, shallowRef as ct, watch as se, getCurrentScope as ut, onScopeDispose as dt, shallowReadonly as oe, unref as ve, createElementBlock as b, openBlock as g, createStaticVNode as ke, createElementVNode as y, createVNode as K, toDisplayString as de, Fragment as me, renderList as ye, createCommentVNode as N, onUnmounted as Re, normalizeClass as k, createBlock as V, createTextVNode as ft, normalizeStyle as Ye, onMounted as Ge, nextTick as De } from "vue";
2
- const j = Math.min, F = Math.max, be = Math.round, pe = Math.floor, X = (e) => ({
1
+ import { computed as R, ref as B, shallowRef as ct, watch as te, getCurrentScope as dt, onScopeDispose as ut, shallowReadonly as ee, unref as ge, createElementBlock as b, openBlock as p, createStaticVNode as Ae, createElementVNode as y, createVNode as Z, toDisplayString as ce, Fragment as ue, renderList as we, createCommentVNode as M, onUnmounted as $e, normalizeClass as A, createBlock as I, createTextVNode as ft, normalizeStyle as Xe, onMounted as qe, nextTick as _e } from "vue";
2
+ const z = Math.min, $ = Math.max, pe = Math.round, Ce = Math.floor, U = (e) => ({
3
3
  x: e,
4
4
  y: e
5
5
  }), mt = {
@@ -11,49 +11,49 @@ const j = Math.min, F = Math.max, be = Math.round, pe = Math.floor, X = (e) => (
11
11
  start: "end",
12
12
  end: "start"
13
13
  };
14
- function _e(e, t, n) {
15
- return F(e, j(t, n));
14
+ function De(e, t, n) {
15
+ return $(e, z(t, n));
16
16
  }
17
- function he(e, t) {
17
+ function fe(e, t) {
18
18
  return typeof e == "function" ? e(t) : e;
19
19
  }
20
- function Y(e) {
20
+ function j(e) {
21
21
  return e.split("-")[0];
22
22
  }
23
- function ge(e) {
23
+ function me(e) {
24
24
  return e.split("-")[1];
25
25
  }
26
- function qe(e) {
26
+ function Ye(e) {
27
27
  return e === "x" ? "y" : "x";
28
28
  }
29
29
  function Je(e) {
30
30
  return e === "y" ? "height" : "width";
31
31
  }
32
- function J(e) {
33
- return ["top", "bottom"].includes(Y(e)) ? "y" : "x";
32
+ function X(e) {
33
+ return ["top", "bottom"].includes(j(e)) ? "y" : "x";
34
34
  }
35
35
  function Qe(e) {
36
- return qe(J(e));
36
+ return Ye(X(e));
37
37
  }
38
- function gt(e, t, n) {
38
+ function Ct(e, t, n) {
39
39
  n === void 0 && (n = !1);
40
- const o = ge(e), i = Qe(e), s = Je(i);
41
- let l = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
42
- return t.reference[s] > t.floating[s] && (l = we(l)), [l, we(l)];
40
+ const i = me(e), o = Qe(e), s = Je(o);
41
+ let l = o === "x" ? i === (n ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
42
+ return t.reference[s] > t.floating[s] && (l = ve(l)), [l, ve(l)];
43
43
  }
44
- function Ct(e) {
45
- const t = we(e);
46
- return [$e(e), t, $e(t)];
44
+ function gt(e) {
45
+ const t = ve(e);
46
+ return [Se(e), t, Se(t)];
47
47
  }
48
- function $e(e) {
48
+ function Se(e) {
49
49
  return e.replace(/start|end/g, (t) => ht[t]);
50
50
  }
51
51
  function pt(e, t, n) {
52
- const o = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], l = ["bottom", "top"];
52
+ const i = ["left", "right"], o = ["right", "left"], s = ["top", "bottom"], l = ["bottom", "top"];
53
53
  switch (e) {
54
54
  case "top":
55
55
  case "bottom":
56
- return n ? t ? i : o : t ? o : i;
56
+ return n ? t ? o : i : t ? i : o;
57
57
  case "left":
58
58
  case "right":
59
59
  return t ? s : l;
@@ -61,12 +61,12 @@ function pt(e, t, n) {
61
61
  return [];
62
62
  }
63
63
  }
64
- function vt(e, t, n, o) {
65
- const i = ge(e);
66
- let s = pt(Y(e), n === "start", o);
67
- return i && (s = s.map((l) => l + "-" + i), t && (s = s.concat(s.map($e)))), s;
64
+ function vt(e, t, n, i) {
65
+ const o = me(e);
66
+ let s = pt(j(e), n === "start", i);
67
+ return o && (s = s.map((l) => l + "-" + o), t && (s = s.concat(s.map(Se)))), s;
68
68
  }
69
- function we(e) {
69
+ function ve(e) {
70
70
  return e.replace(/left|right|bottom|top/g, (t) => mt[t]);
71
71
  }
72
72
  function bt(e) {
@@ -86,102 +86,102 @@ function wt(e) {
86
86
  left: e
87
87
  };
88
88
  }
89
- function xe(e) {
89
+ function be(e) {
90
90
  const {
91
91
  x: t,
92
92
  y: n,
93
- width: o,
94
- height: i
93
+ width: i,
94
+ height: o
95
95
  } = e;
96
96
  return {
97
- width: o,
98
- height: i,
97
+ width: i,
98
+ height: o,
99
99
  top: n,
100
100
  left: t,
101
- right: t + o,
102
- bottom: n + i,
101
+ right: t + i,
102
+ bottom: n + o,
103
103
  x: t,
104
104
  y: n
105
105
  };
106
106
  }
107
107
  function Ve(e, t, n) {
108
108
  let {
109
- reference: o,
110
- floating: i
109
+ reference: i,
110
+ floating: o
111
111
  } = e;
112
- const s = J(t), l = Qe(t), r = Je(l), a = Y(t), c = s === "y", u = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, h = o[r] / 2 - i[r] / 2;
112
+ const s = X(t), l = Qe(t), a = Je(l), r = j(t), c = s === "y", d = i.x + i.width / 2 - o.width / 2, u = i.y + i.height / 2 - o.height / 2, g = i[a] / 2 - o[a] / 2;
113
113
  let f;
114
- switch (a) {
114
+ switch (r) {
115
115
  case "top":
116
116
  f = {
117
- x: u,
118
- y: o.y - i.height
117
+ x: d,
118
+ y: i.y - o.height
119
119
  };
120
120
  break;
121
121
  case "bottom":
122
122
  f = {
123
- x: u,
124
- y: o.y + o.height
123
+ x: d,
124
+ y: i.y + i.height
125
125
  };
126
126
  break;
127
127
  case "right":
128
128
  f = {
129
- x: o.x + o.width,
130
- y: d
129
+ x: i.x + i.width,
130
+ y: u
131
131
  };
132
132
  break;
133
133
  case "left":
134
134
  f = {
135
- x: o.x - i.width,
136
- y: d
135
+ x: i.x - o.width,
136
+ y: u
137
137
  };
138
138
  break;
139
139
  default:
140
140
  f = {
141
- x: o.x,
142
- y: o.y
141
+ x: i.x,
142
+ y: i.y
143
143
  };
144
144
  }
145
- switch (ge(t)) {
145
+ switch (me(t)) {
146
146
  case "start":
147
- f[l] -= h * (n && c ? -1 : 1);
147
+ f[l] -= g * (n && c ? -1 : 1);
148
148
  break;
149
149
  case "end":
150
- f[l] += h * (n && c ? -1 : 1);
150
+ f[l] += g * (n && c ? -1 : 1);
151
151
  break;
152
152
  }
153
153
  return f;
154
154
  }
155
155
  const xt = async (e, t, n) => {
156
156
  const {
157
- placement: o = "bottom",
158
- strategy: i = "absolute",
157
+ placement: i = "bottom",
158
+ strategy: o = "absolute",
159
159
  middleware: s = [],
160
160
  platform: l
161
- } = n, r = s.filter(Boolean), a = await (l.isRTL == null ? void 0 : l.isRTL(t));
161
+ } = n, a = s.filter(Boolean), r = await (l.isRTL == null ? void 0 : l.isRTL(t));
162
162
  let c = await l.getElementRects({
163
163
  reference: e,
164
164
  floating: t,
165
- strategy: i
165
+ strategy: o
166
166
  }), {
167
- x: u,
168
- y: d
169
- } = Ve(c, o, a), h = o, f = {}, m = 0;
170
- for (let p = 0; p < r.length; p++) {
167
+ x: d,
168
+ y: u
169
+ } = Ve(c, i, r), g = i, f = {}, h = 0;
170
+ for (let v = 0; v < a.length; v++) {
171
171
  const {
172
- name: x,
173
- fn: w
174
- } = r[p], {
175
- x: L,
176
- y: T,
177
- data: $,
178
- reset: A
179
- } = await w({
180
- x: u,
181
- y: d,
182
- initialPlacement: o,
183
- placement: h,
184
- strategy: i,
172
+ name: w,
173
+ fn: x
174
+ } = a[v], {
175
+ x: m,
176
+ y: C,
177
+ data: L,
178
+ reset: T
179
+ } = await x({
180
+ x: d,
181
+ y: u,
182
+ initialPlacement: i,
183
+ placement: g,
184
+ strategy: o,
185
185
  middlewareData: f,
186
186
  rects: c,
187
187
  platform: l,
@@ -190,72 +190,72 @@ const xt = async (e, t, n) => {
190
190
  floating: t
191
191
  }
192
192
  });
193
- u = L ?? u, d = T ?? d, f = {
193
+ d = m ?? d, u = C ?? u, f = {
194
194
  ...f,
195
- [x]: {
196
- ...f[x],
197
- ...$
195
+ [w]: {
196
+ ...f[w],
197
+ ...L
198
198
  }
199
- }, A && m <= 50 && (m++, typeof A == "object" && (A.placement && (h = A.placement), A.rects && (c = A.rects === !0 ? await l.getElementRects({
199
+ }, T && h <= 50 && (h++, typeof T == "object" && (T.placement && (g = T.placement), T.rects && (c = T.rects === !0 ? await l.getElementRects({
200
200
  reference: e,
201
201
  floating: t,
202
- strategy: i
203
- }) : A.rects), {
204
- x: u,
205
- y: d
206
- } = Ve(c, h, a)), p = -1);
202
+ strategy: o
203
+ }) : T.rects), {
204
+ x: d,
205
+ y: u
206
+ } = Ve(c, g, r)), v = -1);
207
207
  }
208
208
  return {
209
- x: u,
210
- y: d,
211
- placement: h,
212
- strategy: i,
209
+ x: d,
210
+ y: u,
211
+ placement: g,
212
+ strategy: o,
213
213
  middlewareData: f
214
214
  };
215
215
  };
216
- async function Me(e, t) {
216
+ async function Ee(e, t) {
217
217
  var n;
218
218
  t === void 0 && (t = {});
219
219
  const {
220
- x: o,
221
- y: i,
220
+ x: i,
221
+ y: o,
222
222
  platform: s,
223
223
  rects: l,
224
- elements: r,
225
- strategy: a
224
+ elements: a,
225
+ strategy: r
226
226
  } = e, {
227
227
  boundary: c = "clippingAncestors",
228
- rootBoundary: u = "viewport",
229
- elementContext: d = "floating",
230
- altBoundary: h = !1,
228
+ rootBoundary: d = "viewport",
229
+ elementContext: u = "floating",
230
+ altBoundary: g = !1,
231
231
  padding: f = 0
232
- } = he(t, e), m = wt(f), x = r[h ? d === "floating" ? "reference" : "floating" : d], w = xe(await s.getClippingRect({
233
- element: (n = await (s.isElement == null ? void 0 : s.isElement(x))) == null || n ? x : x.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(r.floating)),
232
+ } = fe(t, e), h = wt(f), w = a[g ? u === "floating" ? "reference" : "floating" : u], x = be(await s.getClippingRect({
233
+ element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
234
234
  boundary: c,
235
- rootBoundary: u,
236
- strategy: a
237
- })), L = d === "floating" ? {
238
- x: o,
239
- y: i,
235
+ rootBoundary: d,
236
+ strategy: r
237
+ })), m = u === "floating" ? {
238
+ x: i,
239
+ y: o,
240
240
  width: l.floating.width,
241
241
  height: l.floating.height
242
- } : l.reference, T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(r.floating)), $ = await (s.isElement == null ? void 0 : s.isElement(T)) ? await (s.getScale == null ? void 0 : s.getScale(T)) || {
242
+ } : l.reference, C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating)), L = await (s.isElement == null ? void 0 : s.isElement(C)) ? await (s.getScale == null ? void 0 : s.getScale(C)) || {
243
243
  x: 1,
244
244
  y: 1
245
245
  } : {
246
246
  x: 1,
247
247
  y: 1
248
- }, A = xe(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
249
- elements: r,
250
- rect: L,
251
- offsetParent: T,
252
- strategy: a
253
- }) : L);
248
+ }, T = be(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
249
+ elements: a,
250
+ rect: m,
251
+ offsetParent: C,
252
+ strategy: r
253
+ }) : m);
254
254
  return {
255
- top: (w.top - A.top + m.top) / $.y,
256
- bottom: (A.bottom - w.bottom + m.bottom) / $.y,
257
- left: (w.left - A.left + m.left) / $.x,
258
- right: (A.right - w.right + m.right) / $.x
255
+ top: (x.top - T.top + h.top) / L.y,
256
+ bottom: (T.bottom - x.bottom + h.bottom) / L.y,
257
+ left: (x.left - T.left + h.left) / L.x,
258
+ right: (T.right - x.right + h.right) / L.x
259
259
  };
260
260
  }
261
261
  const yt = function(e) {
@@ -263,74 +263,74 @@ const yt = function(e) {
263
263
  name: "flip",
264
264
  options: e,
265
265
  async fn(t) {
266
- var n, o;
266
+ var n, i;
267
267
  const {
268
- placement: i,
268
+ placement: o,
269
269
  middlewareData: s,
270
270
  rects: l,
271
- initialPlacement: r,
272
- platform: a,
271
+ initialPlacement: a,
272
+ platform: r,
273
273
  elements: c
274
274
  } = t, {
275
- mainAxis: u = !0,
276
- crossAxis: d = !0,
277
- fallbackPlacements: h,
275
+ mainAxis: d = !0,
276
+ crossAxis: u = !0,
277
+ fallbackPlacements: g,
278
278
  fallbackStrategy: f = "bestFit",
279
- fallbackAxisSideDirection: m = "none",
280
- flipAlignment: p = !0,
281
- ...x
282
- } = he(e, t);
279
+ fallbackAxisSideDirection: h = "none",
280
+ flipAlignment: v = !0,
281
+ ...w
282
+ } = fe(e, t);
283
283
  if ((n = s.arrow) != null && n.alignmentOffset)
284
284
  return {};
285
- const w = Y(i), L = J(r), T = Y(r) === r, $ = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), A = h || (T || !p ? [we(r)] : Ct(r)), M = m !== "none";
286
- !h && M && A.push(...vt(r, p, m, $));
287
- const S = [r, ...A], I = await Me(t, x), B = [];
288
- let D = ((o = s.flip) == null ? void 0 : o.overflows) || [];
289
- if (u && B.push(I[w]), d) {
290
- const E = gt(i, l, $);
291
- B.push(I[E[0]], I[E[1]]);
285
+ const x = j(o), m = X(a), C = j(a) === a, L = await (r.isRTL == null ? void 0 : r.isRTL(c.floating)), T = g || (C || !v ? [ve(a)] : gt(a)), k = h !== "none";
286
+ !g && k && T.push(...vt(a, v, h, L));
287
+ const S = [a, ...T], V = await Ee(t, w), O = [];
288
+ let P = ((i = s.flip) == null ? void 0 : i.overflows) || [];
289
+ if (d && O.push(V[x]), u) {
290
+ const G = Ct(o, l, L);
291
+ O.push(V[G[0]], V[G[1]]);
292
292
  }
293
- if (D = [...D, {
294
- placement: i,
295
- overflows: B
296
- }], !B.every((E) => E <= 0)) {
297
- var q, C;
298
- const E = (((q = s.flip) == null ? void 0 : q.index) || 0) + 1, Se = S[E];
299
- if (Se)
293
+ if (P = [...P, {
294
+ placement: o,
295
+ overflows: O
296
+ }], !O.every((G) => G <= 0)) {
297
+ var oe, Me;
298
+ const G = (((oe = s.flip) == null ? void 0 : oe.index) || 0) + 1, Oe = S[G];
299
+ if (Oe)
300
300
  return {
301
301
  data: {
302
- index: E,
303
- overflows: D
302
+ index: G,
303
+ overflows: P
304
304
  },
305
305
  reset: {
306
- placement: Se
306
+ placement: Oe
307
307
  }
308
308
  };
309
- let re = (C = D.filter((ne) => ne.overflows[0] <= 0).sort((ne, Z) => ne.overflows[1] - Z.overflows[1])[0]) == null ? void 0 : C.placement;
310
- if (!re)
309
+ let se = (Me = P.filter((Q) => Q.overflows[0] <= 0).sort((Q, H) => Q.overflows[1] - H.overflows[1])[0]) == null ? void 0 : Me.placement;
310
+ if (!se)
311
311
  switch (f) {
312
312
  case "bestFit": {
313
- var v;
314
- const ne = (v = D.filter((Z) => {
315
- if (M) {
316
- const U = J(Z.placement);
317
- return U === L || // Create a bias to the `y` side axis due to horizontal
313
+ var Fe;
314
+ const Q = (Fe = P.filter((H) => {
315
+ if (k) {
316
+ const W = X(H.placement);
317
+ return W === m || // Create a bias to the `y` side axis due to horizontal
318
318
  // reading directions favoring greater width.
319
- U === "y";
319
+ W === "y";
320
320
  }
321
321
  return !0;
322
- }).map((Z) => [Z.placement, Z.overflows.filter((U) => U > 0).reduce((U, rt) => U + rt, 0)]).sort((Z, U) => Z[1] - U[1])[0]) == null ? void 0 : v[0];
323
- ne && (re = ne);
322
+ }).map((H) => [H.placement, H.overflows.filter((W) => W > 0).reduce((W, at) => W + at, 0)]).sort((H, W) => H[1] - W[1])[0]) == null ? void 0 : Fe[0];
323
+ Q && (se = Q);
324
324
  break;
325
325
  }
326
326
  case "initialPlacement":
327
- re = r;
327
+ se = a;
328
328
  break;
329
329
  }
330
- if (i !== re)
330
+ if (o !== se)
331
331
  return {
332
332
  reset: {
333
- placement: re
333
+ placement: se
334
334
  }
335
335
  };
336
336
  }
@@ -341,29 +341,29 @@ const yt = function(e) {
341
341
  async function Lt(e, t) {
342
342
  const {
343
343
  placement: n,
344
- platform: o,
345
- elements: i
346
- } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), l = Y(n), r = ge(n), a = J(n) === "y", c = ["left", "top"].includes(l) ? -1 : 1, u = s && a ? -1 : 1, d = he(t, e);
344
+ platform: i,
345
+ elements: o
346
+ } = e, s = await (i.isRTL == null ? void 0 : i.isRTL(o.floating)), l = j(n), a = me(n), r = X(n) === "y", c = ["left", "top"].includes(l) ? -1 : 1, d = s && r ? -1 : 1, u = fe(t, e);
347
347
  let {
348
- mainAxis: h,
348
+ mainAxis: g,
349
349
  crossAxis: f,
350
- alignmentAxis: m
351
- } = typeof d == "number" ? {
352
- mainAxis: d,
350
+ alignmentAxis: h
351
+ } = typeof u == "number" ? {
352
+ mainAxis: u,
353
353
  crossAxis: 0,
354
354
  alignmentAxis: null
355
355
  } : {
356
356
  mainAxis: 0,
357
357
  crossAxis: 0,
358
358
  alignmentAxis: null,
359
- ...d
359
+ ...u
360
360
  };
361
- return r && typeof m == "number" && (f = r === "end" ? m * -1 : m), a ? {
362
- x: f * u,
363
- y: h * c
361
+ return a && typeof h == "number" && (f = a === "end" ? h * -1 : h), r ? {
362
+ x: f * d,
363
+ y: g * c
364
364
  } : {
365
- x: h * c,
366
- y: f * u
365
+ x: g * c,
366
+ y: f * d
367
367
  };
368
368
  }
369
369
  const Tt = function(e) {
@@ -371,18 +371,18 @@ const Tt = function(e) {
371
371
  name: "offset",
372
372
  options: e,
373
373
  async fn(t) {
374
- var n, o;
374
+ var n, i;
375
375
  const {
376
- x: i,
376
+ x: o,
377
377
  y: s,
378
378
  placement: l,
379
- middlewareData: r
380
- } = t, a = await Lt(t, e);
381
- return l === ((n = r.offset) == null ? void 0 : n.placement) && (o = r.arrow) != null && o.alignmentOffset ? {} : {
382
- x: i + a.x,
383
- y: s + a.y,
379
+ middlewareData: a
380
+ } = t, r = await Lt(t, e);
381
+ return l === ((n = a.offset) == null ? void 0 : n.placement) && (i = a.arrow) != null && i.alignmentOffset ? {} : {
382
+ x: o + r.x,
383
+ y: s + r.y,
384
384
  data: {
385
- ...a,
385
+ ...r,
386
386
  placement: l
387
387
  }
388
388
  };
@@ -395,84 +395,84 @@ const Tt = function(e) {
395
395
  async fn(t) {
396
396
  const {
397
397
  x: n,
398
- y: o,
399
- placement: i
398
+ y: i,
399
+ placement: o
400
400
  } = t, {
401
401
  mainAxis: s = !0,
402
402
  crossAxis: l = !1,
403
- limiter: r = {
404
- fn: (x) => {
403
+ limiter: a = {
404
+ fn: (w) => {
405
405
  let {
406
- x: w,
407
- y: L
408
- } = x;
406
+ x,
407
+ y: m
408
+ } = w;
409
409
  return {
410
- x: w,
411
- y: L
410
+ x,
411
+ y: m
412
412
  };
413
413
  }
414
414
  },
415
- ...a
416
- } = he(e, t), c = {
415
+ ...r
416
+ } = fe(e, t), c = {
417
417
  x: n,
418
- y: o
419
- }, u = await Me(t, a), d = J(Y(i)), h = qe(d);
420
- let f = c[h], m = c[d];
418
+ y: i
419
+ }, d = await Ee(t, r), u = X(j(o)), g = Ye(u);
420
+ let f = c[g], h = c[u];
421
421
  if (s) {
422
- const x = h === "y" ? "top" : "left", w = h === "y" ? "bottom" : "right", L = f + u[x], T = f - u[w];
423
- f = _e(L, f, T);
422
+ const w = g === "y" ? "top" : "left", x = g === "y" ? "bottom" : "right", m = f + d[w], C = f - d[x];
423
+ f = De(m, f, C);
424
424
  }
425
425
  if (l) {
426
- const x = d === "y" ? "top" : "left", w = d === "y" ? "bottom" : "right", L = m + u[x], T = m - u[w];
427
- m = _e(L, m, T);
426
+ const w = u === "y" ? "top" : "left", x = u === "y" ? "bottom" : "right", m = h + d[w], C = h - d[x];
427
+ h = De(m, h, C);
428
428
  }
429
- const p = r.fn({
429
+ const v = a.fn({
430
430
  ...t,
431
- [h]: f,
432
- [d]: m
431
+ [g]: f,
432
+ [u]: h
433
433
  });
434
434
  return {
435
- ...p,
435
+ ...v,
436
436
  data: {
437
- x: p.x - n,
438
- y: p.y - o
437
+ x: v.x - n,
438
+ y: v.y - i
439
439
  }
440
440
  };
441
441
  }
442
442
  };
443
- }, Et = function(e) {
443
+ }, At = function(e) {
444
444
  return e === void 0 && (e = {}), {
445
445
  name: "size",
446
446
  options: e,
447
447
  async fn(t) {
448
448
  const {
449
449
  placement: n,
450
- rects: o,
451
- platform: i,
450
+ rects: i,
451
+ platform: o,
452
452
  elements: s
453
453
  } = t, {
454
454
  apply: l = () => {
455
455
  },
456
- ...r
457
- } = he(e, t), a = await Me(t, r), c = Y(n), u = ge(n), d = J(n) === "y", {
458
- width: h,
456
+ ...a
457
+ } = fe(e, t), r = await Ee(t, a), c = j(n), d = me(n), u = X(n) === "y", {
458
+ width: g,
459
459
  height: f
460
- } = o.floating;
461
- let m, p;
462
- c === "top" || c === "bottom" ? (m = c, p = u === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (p = c, m = u === "end" ? "top" : "bottom");
463
- const x = f - a.top - a.bottom, w = h - a.left - a.right, L = j(f - a[m], x), T = j(h - a[p], w), $ = !t.middlewareData.shift;
464
- let A = L, M = T;
465
- if (d ? M = u || $ ? j(T, w) : w : A = u || $ ? j(L, x) : x, $ && !u) {
466
- const I = F(a.left, 0), B = F(a.right, 0), D = F(a.top, 0), q = F(a.bottom, 0);
467
- d ? M = h - 2 * (I !== 0 || B !== 0 ? I + B : F(a.left, a.right)) : A = f - 2 * (D !== 0 || q !== 0 ? D + q : F(a.top, a.bottom));
460
+ } = i.floating;
461
+ let h, v;
462
+ c === "top" || c === "bottom" ? (h = c, v = d === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (v = c, h = d === "end" ? "top" : "bottom");
463
+ const w = f - r.top - r.bottom, x = g - r.left - r.right, m = z(f - r[h], w), C = z(g - r[v], x), L = !t.middlewareData.shift;
464
+ let T = m, k = C;
465
+ if (u ? k = d || L ? z(C, x) : x : T = d || L ? z(m, w) : w, L && !d) {
466
+ const V = $(r.left, 0), O = $(r.right, 0), P = $(r.top, 0), oe = $(r.bottom, 0);
467
+ u ? k = g - 2 * (V !== 0 || O !== 0 ? V + O : $(r.left, r.right)) : T = f - 2 * (P !== 0 || oe !== 0 ? P + oe : $(r.top, r.bottom));
468
468
  }
469
469
  await l({
470
470
  ...t,
471
- availableWidth: M,
472
- availableHeight: A
471
+ availableWidth: k,
472
+ availableHeight: T
473
473
  });
474
- const S = await i.getDimensions(s.floating);
475
- return h !== S.width || f !== S.height ? {
474
+ const S = await o.getDimensions(s.floating);
475
+ return g !== S.width || f !== S.height ? {
476
476
  reset: {
477
477
  rects: !0
478
478
  }
@@ -480,42 +480,42 @@ const Tt = function(e) {
480
480
  }
481
481
  };
482
482
  };
483
- function ee(e) {
484
- return Be(e) ? (e.nodeName || "").toLowerCase() : "#document";
483
+ function Y(e) {
484
+ return ke(e) ? (e.nodeName || "").toLowerCase() : "#document";
485
485
  }
486
- function O(e) {
486
+ function E(e) {
487
487
  var t;
488
488
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
489
489
  }
490
- function z(e) {
490
+ function N(e) {
491
491
  var t;
492
- return (t = (Be(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
492
+ return (t = (ke(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
493
493
  }
494
- function Be(e) {
495
- return e instanceof Node || e instanceof O(e).Node;
494
+ function ke(e) {
495
+ return e instanceof Node || e instanceof E(e).Node;
496
496
  }
497
- function H(e) {
498
- return e instanceof Element || e instanceof O(e).Element;
497
+ function _(e) {
498
+ return e instanceof Element || e instanceof E(e).Element;
499
499
  }
500
- function W(e) {
501
- return e instanceof HTMLElement || e instanceof O(e).HTMLElement;
500
+ function D(e) {
501
+ return e instanceof HTMLElement || e instanceof E(e).HTMLElement;
502
502
  }
503
503
  function Ne(e) {
504
- return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof O(e).ShadowRoot;
504
+ return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof E(e).ShadowRoot;
505
505
  }
506
- function Ce(e) {
506
+ function he(e) {
507
507
  const {
508
508
  overflow: t,
509
509
  overflowX: n,
510
- overflowY: o,
511
- display: i
512
- } = P(e);
513
- return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(i);
510
+ overflowY: i,
511
+ display: o
512
+ } = F(e);
513
+ return /auto|scroll|overlay|hidden|clip/.test(t + i + n) && !["inline", "contents"].includes(o);
514
514
  }
515
- function At(e) {
516
- return ["table", "td", "th"].includes(ee(e));
515
+ function $t(e) {
516
+ return ["table", "td", "th"].includes(Y(e));
517
517
  }
518
- function Le(e) {
518
+ function xe(e) {
519
519
  return [":popover-open", ":modal"].some((t) => {
520
520
  try {
521
521
  return e.matches(t);
@@ -524,32 +524,32 @@ function Le(e) {
524
524
  }
525
525
  });
526
526
  }
527
- function Ie(e) {
528
- const t = Fe(), n = P(e);
529
- 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));
527
+ function Re(e) {
528
+ const t = Ie(), n = F(e);
529
+ 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((i) => (n.willChange || "").includes(i)) || ["paint", "layout", "strict", "content"].some((i) => (n.contain || "").includes(i));
530
530
  }
531
- function $t(e) {
532
- let t = G(e);
533
- for (; W(t) && !ae(t); ) {
534
- if (Le(t))
531
+ function Et(e) {
532
+ let t = K(e);
533
+ for (; D(t) && !ie(t); ) {
534
+ if (xe(t))
535
535
  return null;
536
- if (Ie(t))
536
+ if (Re(t))
537
537
  return t;
538
- t = G(t);
538
+ t = K(t);
539
539
  }
540
540
  return null;
541
541
  }
542
- function Fe() {
542
+ function Ie() {
543
543
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
544
544
  }
545
- function ae(e) {
546
- return ["html", "body", "#document"].includes(ee(e));
545
+ function ie(e) {
546
+ return ["html", "body", "#document"].includes(Y(e));
547
547
  }
548
- function P(e) {
549
- return O(e).getComputedStyle(e);
548
+ function F(e) {
549
+ return E(e).getComputedStyle(e);
550
550
  }
551
- function Te(e) {
552
- return H(e) ? {
551
+ function ye(e) {
552
+ return _(e) ? {
553
553
  scrollLeft: e.scrollLeft,
554
554
  scrollTop: e.scrollTop
555
555
  } : {
@@ -557,207 +557,207 @@ function Te(e) {
557
557
  scrollTop: e.scrollY
558
558
  };
559
559
  }
560
- function G(e) {
561
- if (ee(e) === "html")
560
+ function K(e) {
561
+ if (Y(e) === "html")
562
562
  return e;
563
563
  const t = (
564
564
  // Step into the shadow DOM of the parent of a slotted node.
565
565
  e.assignedSlot || // DOM Element detected.
566
566
  e.parentNode || // ShadowRoot detected.
567
567
  Ne(e) && e.host || // Fallback.
568
- z(e)
568
+ N(e)
569
569
  );
570
570
  return Ne(t) ? t.host : t;
571
571
  }
572
572
  function et(e) {
573
- const t = G(e);
574
- return ae(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : W(t) && Ce(t) ? t : et(t);
573
+ const t = K(e);
574
+ return ie(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : D(t) && he(t) ? t : et(t);
575
575
  }
576
- function fe(e, t, n) {
577
- var o;
576
+ function de(e, t, n) {
577
+ var i;
578
578
  t === void 0 && (t = []), n === void 0 && (n = !0);
579
- const i = et(e), s = i === ((o = e.ownerDocument) == null ? void 0 : o.body), l = O(i);
580
- return s ? t.concat(l, l.visualViewport || [], Ce(i) ? i : [], l.frameElement && n ? fe(l.frameElement) : []) : t.concat(i, fe(i, [], n));
579
+ const o = et(e), s = o === ((i = e.ownerDocument) == null ? void 0 : i.body), l = E(o);
580
+ return s ? t.concat(l, l.visualViewport || [], he(o) ? o : [], l.frameElement && n ? de(l.frameElement) : []) : t.concat(o, de(o, [], n));
581
581
  }
582
582
  function tt(e) {
583
- const t = P(e);
584
- let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
585
- const i = W(e), s = i ? e.offsetWidth : n, l = i ? e.offsetHeight : o, r = be(n) !== s || be(o) !== l;
586
- return r && (n = s, o = l), {
583
+ const t = F(e);
584
+ let n = parseFloat(t.width) || 0, i = parseFloat(t.height) || 0;
585
+ const o = D(e), s = o ? e.offsetWidth : n, l = o ? e.offsetHeight : i, a = pe(n) !== s || pe(i) !== l;
586
+ return a && (n = s, i = l), {
587
587
  width: n,
588
- height: o,
589
- $: r
588
+ height: i,
589
+ $: a
590
590
  };
591
591
  }
592
- function Oe(e) {
593
- return H(e) ? e : e.contextElement;
592
+ function Be(e) {
593
+ return _(e) ? e : e.contextElement;
594
594
  }
595
- function le(e) {
596
- const t = Oe(e);
597
- if (!W(t))
598
- return X(1);
595
+ function ne(e) {
596
+ const t = Be(e);
597
+ if (!D(t))
598
+ return U(1);
599
599
  const n = t.getBoundingClientRect(), {
600
- width: o,
601
- height: i,
600
+ width: i,
601
+ height: o,
602
602
  $: s
603
603
  } = tt(t);
604
- let l = (s ? be(n.width) : n.width) / o, r = (s ? be(n.height) : n.height) / i;
605
- return (!l || !Number.isFinite(l)) && (l = 1), (!r || !Number.isFinite(r)) && (r = 1), {
604
+ let l = (s ? pe(n.width) : n.width) / i, a = (s ? pe(n.height) : n.height) / o;
605
+ return (!l || !Number.isFinite(l)) && (l = 1), (!a || !Number.isFinite(a)) && (a = 1), {
606
606
  x: l,
607
- y: r
607
+ y: a
608
608
  };
609
609
  }
610
- const kt = /* @__PURE__ */ X(0);
610
+ const kt = /* @__PURE__ */ U(0);
611
611
  function nt(e) {
612
- const t = O(e);
613
- return !Fe() || !t.visualViewport ? kt : {
612
+ const t = E(e);
613
+ return !Ie() || !t.visualViewport ? kt : {
614
614
  x: t.visualViewport.offsetLeft,
615
615
  y: t.visualViewport.offsetTop
616
616
  };
617
617
  }
618
618
  function Rt(e, t, n) {
619
- return t === void 0 && (t = !1), !n || t && n !== O(e) ? !1 : t;
619
+ return t === void 0 && (t = !1), !n || t && n !== E(e) ? !1 : t;
620
620
  }
621
- function Q(e, t, n, o) {
621
+ function q(e, t, n, i) {
622
622
  t === void 0 && (t = !1), n === void 0 && (n = !1);
623
- const i = e.getBoundingClientRect(), s = Oe(e);
624
- let l = X(1);
625
- t && (o ? H(o) && (l = le(o)) : l = le(e));
626
- const r = Rt(s, n, o) ? nt(s) : X(0);
627
- let a = (i.left + r.x) / l.x, c = (i.top + r.y) / l.y, u = i.width / l.x, d = i.height / l.y;
623
+ const o = e.getBoundingClientRect(), s = Be(e);
624
+ let l = U(1);
625
+ t && (i ? _(i) && (l = ne(i)) : l = ne(e));
626
+ const a = Rt(s, n, i) ? nt(s) : U(0);
627
+ let r = (o.left + a.x) / l.x, c = (o.top + a.y) / l.y, d = o.width / l.x, u = o.height / l.y;
628
628
  if (s) {
629
- const h = O(s), f = o && H(o) ? O(o) : o;
630
- let m = h, p = m.frameElement;
631
- for (; p && o && f !== m; ) {
632
- const x = le(p), w = p.getBoundingClientRect(), L = P(p), T = w.left + (p.clientLeft + parseFloat(L.paddingLeft)) * x.x, $ = w.top + (p.clientTop + parseFloat(L.paddingTop)) * x.y;
633
- a *= x.x, c *= x.y, u *= x.x, d *= x.y, a += T, c += $, m = O(p), p = m.frameElement;
629
+ const g = E(s), f = i && _(i) ? E(i) : i;
630
+ let h = g, v = h.frameElement;
631
+ for (; v && i && f !== h; ) {
632
+ const w = ne(v), x = v.getBoundingClientRect(), m = F(v), C = x.left + (v.clientLeft + parseFloat(m.paddingLeft)) * w.x, L = x.top + (v.clientTop + parseFloat(m.paddingTop)) * w.y;
633
+ r *= w.x, c *= w.y, d *= w.x, u *= w.y, r += C, c += L, h = E(v), v = h.frameElement;
634
634
  }
635
635
  }
636
- return xe({
637
- width: u,
638
- height: d,
639
- x: a,
636
+ return be({
637
+ width: d,
638
+ height: u,
639
+ x: r,
640
640
  y: c
641
641
  });
642
642
  }
643
- function Mt(e) {
643
+ function It(e) {
644
644
  let {
645
645
  elements: t,
646
646
  rect: n,
647
- offsetParent: o,
648
- strategy: i
647
+ offsetParent: i,
648
+ strategy: o
649
649
  } = e;
650
- const s = i === "fixed", l = z(o), r = t ? Le(t.floating) : !1;
651
- if (o === l || r && s)
650
+ const s = o === "fixed", l = N(i), a = t ? xe(t.floating) : !1;
651
+ if (i === l || a && s)
652
652
  return n;
653
- let a = {
653
+ let r = {
654
654
  scrollLeft: 0,
655
655
  scrollTop: 0
656
- }, c = X(1);
657
- const u = X(0), d = W(o);
658
- if ((d || !d && !s) && ((ee(o) !== "body" || Ce(l)) && (a = Te(o)), W(o))) {
659
- const h = Q(o);
660
- c = le(o), u.x = h.x + o.clientLeft, u.y = h.y + o.clientTop;
656
+ }, c = U(1);
657
+ const d = U(0), u = D(i);
658
+ if ((u || !u && !s) && ((Y(i) !== "body" || he(l)) && (r = ye(i)), D(i))) {
659
+ const g = q(i);
660
+ c = ne(i), d.x = g.x + i.clientLeft, d.y = g.y + i.clientTop;
661
661
  }
662
662
  return {
663
663
  width: n.width * c.x,
664
664
  height: n.height * c.y,
665
- x: n.x * c.x - a.scrollLeft * c.x + u.x,
666
- y: n.y * c.y - a.scrollTop * c.y + u.y
665
+ x: n.x * c.x - r.scrollLeft * c.x + d.x,
666
+ y: n.y * c.y - r.scrollTop * c.y + d.y
667
667
  };
668
668
  }
669
669
  function Bt(e) {
670
670
  return Array.from(e.getClientRects());
671
671
  }
672
- function ot(e) {
673
- return Q(z(e)).left + Te(e).scrollLeft;
672
+ function it(e) {
673
+ return q(N(e)).left + ye(e).scrollLeft;
674
674
  }
675
- function It(e) {
676
- const t = z(e), n = Te(e), o = e.ownerDocument.body, i = F(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), s = F(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
677
- let l = -n.scrollLeft + ot(e);
678
- const r = -n.scrollTop;
679
- return P(o).direction === "rtl" && (l += F(t.clientWidth, o.clientWidth) - i), {
680
- width: i,
675
+ function Mt(e) {
676
+ const t = N(e), n = ye(e), i = e.ownerDocument.body, o = $(t.scrollWidth, t.clientWidth, i.scrollWidth, i.clientWidth), s = $(t.scrollHeight, t.clientHeight, i.scrollHeight, i.clientHeight);
677
+ let l = -n.scrollLeft + it(e);
678
+ const a = -n.scrollTop;
679
+ return F(i).direction === "rtl" && (l += $(t.clientWidth, i.clientWidth) - o), {
680
+ width: o,
681
681
  height: s,
682
682
  x: l,
683
- y: r
683
+ y: a
684
684
  };
685
685
  }
686
686
  function Ft(e, t) {
687
- const n = O(e), o = z(e), i = n.visualViewport;
688
- let s = o.clientWidth, l = o.clientHeight, r = 0, a = 0;
689
- if (i) {
690
- s = i.width, l = i.height;
691
- const c = Fe();
692
- (!c || c && t === "fixed") && (r = i.offsetLeft, a = i.offsetTop);
687
+ const n = E(e), i = N(e), o = n.visualViewport;
688
+ let s = i.clientWidth, l = i.clientHeight, a = 0, r = 0;
689
+ if (o) {
690
+ s = o.width, l = o.height;
691
+ const c = Ie();
692
+ (!c || c && t === "fixed") && (a = o.offsetLeft, r = o.offsetTop);
693
693
  }
694
694
  return {
695
695
  width: s,
696
696
  height: l,
697
- x: r,
698
- y: a
697
+ x: a,
698
+ y: r
699
699
  };
700
700
  }
701
701
  function Ot(e, t) {
702
- const n = Q(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, s = W(e) ? le(e) : X(1), l = e.clientWidth * s.x, r = e.clientHeight * s.y, a = i * s.x, c = o * s.y;
702
+ const n = q(e, !0, t === "fixed"), i = n.top + e.clientTop, o = n.left + e.clientLeft, s = D(e) ? ne(e) : U(1), l = e.clientWidth * s.x, a = e.clientHeight * s.y, r = o * s.x, c = i * s.y;
703
703
  return {
704
704
  width: l,
705
- height: r,
706
- x: a,
705
+ height: a,
706
+ x: r,
707
707
  y: c
708
708
  };
709
709
  }
710
710
  function Pe(e, t, n) {
711
- let o;
711
+ let i;
712
712
  if (t === "viewport")
713
- o = Ft(e, n);
713
+ i = Ft(e, n);
714
714
  else if (t === "document")
715
- o = It(z(e));
716
- else if (H(t))
717
- o = Ot(t, n);
715
+ i = Mt(N(e));
716
+ else if (_(t))
717
+ i = Ot(t, n);
718
718
  else {
719
- const i = nt(e);
720
- o = {
719
+ const o = nt(e);
720
+ i = {
721
721
  ...t,
722
- x: t.x - i.x,
723
- y: t.y - i.y
722
+ x: t.x - o.x,
723
+ y: t.y - o.y
724
724
  };
725
725
  }
726
- return xe(o);
726
+ return be(i);
727
727
  }
728
- function it(e, t) {
729
- const n = G(e);
730
- return n === t || !H(n) || ae(n) ? !1 : P(n).position === "fixed" || it(n, t);
728
+ function ot(e, t) {
729
+ const n = K(e);
730
+ return n === t || !_(n) || ie(n) ? !1 : F(n).position === "fixed" || ot(n, t);
731
731
  }
732
- function Dt(e, t) {
732
+ function _t(e, t) {
733
733
  const n = t.get(e);
734
734
  if (n)
735
735
  return n;
736
- let o = fe(e, [], !1).filter((r) => H(r) && ee(r) !== "body"), i = null;
737
- const s = P(e).position === "fixed";
738
- let l = s ? G(e) : e;
739
- for (; H(l) && !ae(l); ) {
740
- const r = P(l), a = Ie(l);
741
- !a && r.position === "fixed" && (i = null), (s ? !a && !i : !a && r.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Ce(l) && !a && it(e, l)) ? o = o.filter((u) => u !== l) : i = r, l = G(l);
736
+ let i = de(e, [], !1).filter((a) => _(a) && Y(a) !== "body"), o = null;
737
+ const s = F(e).position === "fixed";
738
+ let l = s ? K(e) : e;
739
+ for (; _(l) && !ie(l); ) {
740
+ const a = F(l), r = Re(l);
741
+ !r && a.position === "fixed" && (o = null), (s ? !r && !o : !r && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || he(l) && !r && ot(e, l)) ? i = i.filter((d) => d !== l) : o = a, l = K(l);
742
742
  }
743
- return t.set(e, o), o;
743
+ return t.set(e, i), i;
744
744
  }
745
- function _t(e) {
745
+ function Dt(e) {
746
746
  let {
747
747
  element: t,
748
748
  boundary: n,
749
- rootBoundary: o,
750
- strategy: i
749
+ rootBoundary: i,
750
+ strategy: o
751
751
  } = e;
752
- const l = [...n === "clippingAncestors" ? Le(t) ? [] : Dt(t, this._c) : [].concat(n), o], r = l[0], a = l.reduce((c, u) => {
753
- const d = Pe(t, u, i);
754
- return c.top = F(d.top, c.top), c.right = j(d.right, c.right), c.bottom = j(d.bottom, c.bottom), c.left = F(d.left, c.left), c;
755
- }, Pe(t, r, i));
752
+ const l = [...n === "clippingAncestors" ? xe(t) ? [] : _t(t, this._c) : [].concat(n), i], a = l[0], r = l.reduce((c, d) => {
753
+ const u = Pe(t, d, o);
754
+ return c.top = $(u.top, c.top), c.right = z(u.right, c.right), c.bottom = z(u.bottom, c.bottom), c.left = $(u.left, c.left), c;
755
+ }, Pe(t, a, o));
756
756
  return {
757
- width: a.right - a.left,
758
- height: a.bottom - a.top,
759
- x: a.left,
760
- y: a.top
757
+ width: r.right - r.left,
758
+ height: r.bottom - r.top,
759
+ x: r.left,
760
+ y: r.top
761
761
  };
762
762
  }
763
763
  function Vt(e) {
@@ -771,183 +771,183 @@ function Vt(e) {
771
771
  };
772
772
  }
773
773
  function Nt(e, t, n) {
774
- const o = W(t), i = z(t), s = n === "fixed", l = Q(e, !0, s, t);
775
- let r = {
774
+ const i = D(t), o = N(t), s = n === "fixed", l = q(e, !0, s, t);
775
+ let a = {
776
776
  scrollLeft: 0,
777
777
  scrollTop: 0
778
778
  };
779
- const a = X(0);
780
- if (o || !o && !s)
781
- if ((ee(t) !== "body" || Ce(i)) && (r = Te(t)), o) {
782
- const d = Q(t, !0, s, t);
783
- a.x = d.x + t.clientLeft, a.y = d.y + t.clientTop;
784
- } else i && (a.x = ot(i));
785
- const c = l.left + r.scrollLeft - a.x, u = l.top + r.scrollTop - a.y;
779
+ const r = U(0);
780
+ if (i || !i && !s)
781
+ if ((Y(t) !== "body" || he(o)) && (a = ye(t)), i) {
782
+ const u = q(t, !0, s, t);
783
+ r.x = u.x + t.clientLeft, r.y = u.y + t.clientTop;
784
+ } else o && (r.x = it(o));
785
+ const c = l.left + a.scrollLeft - r.x, d = l.top + a.scrollTop - r.y;
786
786
  return {
787
787
  x: c,
788
- y: u,
788
+ y: d,
789
789
  width: l.width,
790
790
  height: l.height
791
791
  };
792
792
  }
793
- function Ee(e) {
794
- return P(e).position === "static";
793
+ function Le(e) {
794
+ return F(e).position === "static";
795
795
  }
796
796
  function He(e, t) {
797
- return !W(e) || P(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
797
+ return !D(e) || F(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
798
798
  }
799
799
  function st(e, t) {
800
- const n = O(e);
801
- if (Le(e))
800
+ const n = E(e);
801
+ if (xe(e))
802
802
  return n;
803
- if (!W(e)) {
804
- let i = G(e);
805
- for (; i && !ae(i); ) {
806
- if (H(i) && !Ee(i))
807
- return i;
808
- i = G(i);
803
+ if (!D(e)) {
804
+ let o = K(e);
805
+ for (; o && !ie(o); ) {
806
+ if (_(o) && !Le(o))
807
+ return o;
808
+ o = K(o);
809
809
  }
810
810
  return n;
811
811
  }
812
- let o = He(e, t);
813
- for (; o && At(o) && Ee(o); )
814
- o = He(o, t);
815
- return o && ae(o) && Ee(o) && !Ie(o) ? n : o || $t(e) || n;
812
+ let i = He(e, t);
813
+ for (; i && $t(i) && Le(i); )
814
+ i = He(i, t);
815
+ return i && ie(i) && Le(i) && !Re(i) ? n : i || Et(e) || n;
816
816
  }
817
817
  const Pt = async function(e) {
818
- const t = this.getOffsetParent || st, n = this.getDimensions, o = await n(e.floating);
818
+ const t = this.getOffsetParent || st, n = this.getDimensions, i = await n(e.floating);
819
819
  return {
820
820
  reference: Nt(e.reference, await t(e.floating), e.strategy),
821
821
  floating: {
822
822
  x: 0,
823
823
  y: 0,
824
- width: o.width,
825
- height: o.height
824
+ width: i.width,
825
+ height: i.height
826
826
  }
827
827
  };
828
828
  };
829
829
  function Ht(e) {
830
- return P(e).direction === "rtl";
830
+ return F(e).direction === "rtl";
831
831
  }
832
832
  const Wt = {
833
- convertOffsetParentRelativeRectToViewportRelativeRect: Mt,
834
- getDocumentElement: z,
835
- getClippingRect: _t,
833
+ convertOffsetParentRelativeRectToViewportRelativeRect: It,
834
+ getDocumentElement: N,
835
+ getClippingRect: Dt,
836
836
  getOffsetParent: st,
837
837
  getElementRects: Pt,
838
838
  getClientRects: Bt,
839
839
  getDimensions: Vt,
840
- getScale: le,
841
- isElement: H,
840
+ getScale: ne,
841
+ isElement: _,
842
842
  isRTL: Ht
843
843
  };
844
844
  function zt(e, t) {
845
- let n = null, o;
846
- const i = z(e);
845
+ let n = null, i;
846
+ const o = N(e);
847
847
  function s() {
848
- var r;
849
- clearTimeout(o), (r = n) == null || r.disconnect(), n = null;
848
+ var a;
849
+ clearTimeout(i), (a = n) == null || a.disconnect(), n = null;
850
850
  }
851
- function l(r, a) {
852
- r === void 0 && (r = !1), a === void 0 && (a = 1), s();
851
+ function l(a, r) {
852
+ a === void 0 && (a = !1), r === void 0 && (r = 1), s();
853
853
  const {
854
854
  left: c,
855
- top: u,
856
- width: d,
857
- height: h
855
+ top: d,
856
+ width: u,
857
+ height: g
858
858
  } = e.getBoundingClientRect();
859
- if (r || t(), !d || !h)
859
+ if (a || t(), !u || !g)
860
860
  return;
861
- const f = pe(u), m = pe(i.clientWidth - (c + d)), p = pe(i.clientHeight - (u + h)), x = pe(c), L = {
862
- rootMargin: -f + "px " + -m + "px " + -p + "px " + -x + "px",
863
- threshold: F(0, j(1, a)) || 1
861
+ const f = Ce(d), h = Ce(o.clientWidth - (c + u)), v = Ce(o.clientHeight - (d + g)), w = Ce(c), m = {
862
+ rootMargin: -f + "px " + -h + "px " + -v + "px " + -w + "px",
863
+ threshold: $(0, z(1, r)) || 1
864
864
  };
865
- let T = !0;
866
- function $(A) {
867
- const M = A[0].intersectionRatio;
868
- if (M !== a) {
869
- if (!T)
865
+ let C = !0;
866
+ function L(T) {
867
+ const k = T[0].intersectionRatio;
868
+ if (k !== r) {
869
+ if (!C)
870
870
  return l();
871
- M ? l(!1, M) : o = setTimeout(() => {
871
+ k ? l(!1, k) : i = setTimeout(() => {
872
872
  l(!1, 1e-7);
873
873
  }, 1e3);
874
874
  }
875
- T = !1;
875
+ C = !1;
876
876
  }
877
877
  try {
878
- n = new IntersectionObserver($, {
879
- ...L,
878
+ n = new IntersectionObserver(L, {
879
+ ...m,
880
880
  // Handle <iframe>s
881
- root: i.ownerDocument
881
+ root: o.ownerDocument
882
882
  });
883
883
  } catch {
884
- n = new IntersectionObserver($, L);
884
+ n = new IntersectionObserver(L, m);
885
885
  }
886
886
  n.observe(e);
887
887
  }
888
888
  return l(!0), s;
889
889
  }
890
- function Zt(e, t, n, o) {
891
- o === void 0 && (o = {});
890
+ function Zt(e, t, n, i) {
891
+ i === void 0 && (i = {});
892
892
  const {
893
- ancestorScroll: i = !0,
893
+ ancestorScroll: o = !0,
894
894
  ancestorResize: s = !0,
895
895
  elementResize: l = typeof ResizeObserver == "function",
896
- layoutShift: r = typeof IntersectionObserver == "function",
897
- animationFrame: a = !1
898
- } = o, c = Oe(e), u = i || s ? [...c ? fe(c) : [], ...fe(t)] : [];
899
- u.forEach((w) => {
900
- i && w.addEventListener("scroll", n, {
896
+ layoutShift: a = typeof IntersectionObserver == "function",
897
+ animationFrame: r = !1
898
+ } = i, c = Be(e), d = o || s ? [...c ? de(c) : [], ...de(t)] : [];
899
+ d.forEach((x) => {
900
+ o && x.addEventListener("scroll", n, {
901
901
  passive: !0
902
- }), s && w.addEventListener("resize", n);
902
+ }), s && x.addEventListener("resize", n);
903
903
  });
904
- const d = c && r ? zt(c, n) : null;
905
- let h = -1, f = null;
906
- l && (f = new ResizeObserver((w) => {
907
- let [L] = w;
908
- L && L.target === c && f && (f.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
909
- var T;
910
- (T = f) == null || T.observe(t);
904
+ const u = c && a ? zt(c, n) : null;
905
+ let g = -1, f = null;
906
+ l && (f = new ResizeObserver((x) => {
907
+ let [m] = x;
908
+ m && m.target === c && f && (f.unobserve(t), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
909
+ var C;
910
+ (C = f) == null || C.observe(t);
911
911
  })), n();
912
- }), c && !a && f.observe(c), f.observe(t));
913
- let m, p = a ? Q(e) : null;
914
- a && x();
915
- function x() {
916
- const w = Q(e);
917
- p && (w.x !== p.x || w.y !== p.y || w.width !== p.width || w.height !== p.height) && n(), p = w, m = requestAnimationFrame(x);
912
+ }), c && !r && f.observe(c), f.observe(t));
913
+ let h, v = r ? q(e) : null;
914
+ r && w();
915
+ function w() {
916
+ const x = q(e);
917
+ v && (x.x !== v.x || x.y !== v.y || x.width !== v.width || x.height !== v.height) && n(), v = x, h = requestAnimationFrame(w);
918
918
  }
919
919
  return n(), () => {
920
- var w;
921
- u.forEach((L) => {
922
- i && L.removeEventListener("scroll", n), s && L.removeEventListener("resize", n);
923
- }), d == null || d(), (w = f) == null || w.disconnect(), f = null, a && cancelAnimationFrame(m);
920
+ var x;
921
+ d.forEach((m) => {
922
+ o && m.removeEventListener("scroll", n), s && m.removeEventListener("resize", n);
923
+ }), u == null || u(), (x = f) == null || x.disconnect(), f = null, r && cancelAnimationFrame(h);
924
924
  };
925
925
  }
926
- const Ut = Tt, jt = St, Kt = yt, Xt = Et, Yt = (e, t, n) => {
927
- const o = /* @__PURE__ */ new Map(), i = {
926
+ const Ut = Tt, jt = St, Kt = yt, Gt = At, Xt = (e, t, n) => {
927
+ const i = /* @__PURE__ */ new Map(), o = {
928
928
  platform: Wt,
929
929
  ...n
930
930
  }, s = {
931
- ...i.platform,
932
- _c: o
931
+ ...o.platform,
932
+ _c: i
933
933
  };
934
934
  return xt(e, t, {
935
- ...i,
935
+ ...o,
936
936
  platform: s
937
937
  });
938
938
  };
939
- function Gt(e) {
939
+ function qt(e) {
940
940
  return e != null && typeof e == "object" && "$el" in e;
941
941
  }
942
942
  function We(e) {
943
- if (Gt(e)) {
943
+ if (qt(e)) {
944
944
  const t = e.$el;
945
- return Be(t) && ee(t) === "#comment" ? null : t;
945
+ return ke(t) && Y(t) === "#comment" ? null : t;
946
946
  }
947
947
  return e;
948
948
  }
949
- function ce(e) {
950
- return typeof e == "function" ? e() : ve(e);
949
+ function le(e) {
950
+ return typeof e == "function" ? e() : ge(e);
951
951
  }
952
952
  function lt(e) {
953
953
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
@@ -956,88 +956,88 @@ function ze(e, t) {
956
956
  const n = lt(e);
957
957
  return Math.round(t * n) / n;
958
958
  }
959
- function qt(e, t, n) {
959
+ function Yt(e, t, n) {
960
960
  n === void 0 && (n = {});
961
- const o = n.whileElementsMounted, i = _(() => {
961
+ const i = n.whileElementsMounted, o = R(() => {
962
962
  var S;
963
- return (S = ce(n.open)) != null ? S : !0;
964
- }), s = _(() => ce(n.middleware)), l = _(() => {
963
+ return (S = le(n.open)) != null ? S : !0;
964
+ }), s = R(() => le(n.middleware)), l = R(() => {
965
965
  var S;
966
- return (S = ce(n.placement)) != null ? S : "bottom";
967
- }), r = _(() => {
966
+ return (S = le(n.placement)) != null ? S : "bottom";
967
+ }), a = R(() => {
968
968
  var S;
969
- return (S = ce(n.strategy)) != null ? S : "absolute";
970
- }), a = _(() => {
969
+ return (S = le(n.strategy)) != null ? S : "absolute";
970
+ }), r = R(() => {
971
971
  var S;
972
- return (S = ce(n.transform)) != null ? S : !0;
973
- }), c = _(() => We(e.value)), u = _(() => We(t.value)), d = R(0), h = R(0), f = R(r.value), m = R(l.value), p = ct({}), x = R(!1), w = _(() => {
972
+ return (S = le(n.transform)) != null ? S : !0;
973
+ }), c = R(() => We(e.value)), d = R(() => We(t.value)), u = B(0), g = B(0), f = B(a.value), h = B(l.value), v = ct({}), w = B(!1), x = R(() => {
974
974
  const S = {
975
975
  position: f.value,
976
976
  left: "0",
977
977
  top: "0"
978
978
  };
979
- if (!u.value)
979
+ if (!d.value)
980
980
  return S;
981
- const I = ze(u.value, d.value), B = ze(u.value, h.value);
982
- return a.value ? {
981
+ const V = ze(d.value, u.value), O = ze(d.value, g.value);
982
+ return r.value ? {
983
983
  ...S,
984
- transform: "translate(" + I + "px, " + B + "px)",
985
- ...lt(u.value) >= 1.5 && {
984
+ transform: "translate(" + V + "px, " + O + "px)",
985
+ ...lt(d.value) >= 1.5 && {
986
986
  willChange: "transform"
987
987
  }
988
988
  } : {
989
989
  position: f.value,
990
- left: I + "px",
991
- top: B + "px"
990
+ left: V + "px",
991
+ top: O + "px"
992
992
  };
993
993
  });
994
- let L;
995
- function T() {
996
- c.value == null || u.value == null || Yt(c.value, u.value, {
994
+ let m;
995
+ function C() {
996
+ c.value == null || d.value == null || Xt(c.value, d.value, {
997
997
  middleware: s.value,
998
998
  placement: l.value,
999
- strategy: r.value
999
+ strategy: a.value
1000
1000
  }).then((S) => {
1001
- d.value = S.x, h.value = S.y, f.value = S.strategy, m.value = S.placement, p.value = S.middlewareData, x.value = !0;
1001
+ u.value = S.x, g.value = S.y, f.value = S.strategy, h.value = S.placement, v.value = S.middlewareData, w.value = !0;
1002
1002
  });
1003
1003
  }
1004
- function $() {
1005
- typeof L == "function" && (L(), L = void 0);
1004
+ function L() {
1005
+ typeof m == "function" && (m(), m = void 0);
1006
1006
  }
1007
- function A() {
1008
- if ($(), o === void 0) {
1009
- T();
1007
+ function T() {
1008
+ if (L(), i === void 0) {
1009
+ C();
1010
1010
  return;
1011
1011
  }
1012
- if (c.value != null && u.value != null) {
1013
- L = o(c.value, u.value, T);
1012
+ if (c.value != null && d.value != null) {
1013
+ m = i(c.value, d.value, C);
1014
1014
  return;
1015
1015
  }
1016
1016
  }
1017
- function M() {
1018
- i.value || (x.value = !1);
1017
+ function k() {
1018
+ o.value || (w.value = !1);
1019
1019
  }
1020
- return se([s, l, r], T, {
1020
+ return te([s, l, a], C, {
1021
1021
  flush: "sync"
1022
- }), se([c, u], A, {
1022
+ }), te([c, d], T, {
1023
1023
  flush: "sync"
1024
- }), se(i, M, {
1024
+ }), te(o, k, {
1025
1025
  flush: "sync"
1026
- }), ut() && dt($), {
1027
- x: oe(d),
1028
- y: oe(h),
1029
- strategy: oe(f),
1030
- placement: oe(m),
1031
- middlewareData: oe(p),
1032
- isPositioned: oe(x),
1033
- floatingStyles: w,
1034
- update: T
1026
+ }), dt() && ut(L), {
1027
+ x: ee(u),
1028
+ y: ee(g),
1029
+ strategy: ee(f),
1030
+ placement: ee(h),
1031
+ middlewareData: ee(v),
1032
+ isPositioned: ee(w),
1033
+ floatingStyles: x,
1034
+ update: C
1035
1035
  };
1036
1036
  }
1037
- const Jt = "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", te = (e, t) => {
1037
+ const Jt = "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", J = (e, t) => {
1038
1038
  const n = e.__vccOpts || e;
1039
- for (const [o, i] of t)
1040
- n[o] = i;
1039
+ for (const [i, o] of t)
1040
+ n[i] = o;
1041
1041
  return n;
1042
1042
  }, Qt = {
1043
1043
  name: "Logo"
@@ -1046,38 +1046,38 @@ const Jt = "data:image/svg+xml,%3csvg%20width='1324'%20height='1326'%20viewBox='
1046
1046
  alt: "DDict Logo",
1047
1047
  class: "w-6 h-6 cursor-pointer"
1048
1048
  };
1049
- function tn(e, t, n, o, i, s) {
1050
- return g(), b("img", en);
1049
+ function tn(e, t, n, i, o, s) {
1050
+ return p(), b("img", en);
1051
1051
  }
1052
- const nn = /* @__PURE__ */ te(Qt, [["render", tn]]), on = {}, sn = {
1052
+ const nn = /* @__PURE__ */ J(Qt, [["render", tn]]), on = {}, sn = {
1053
1053
  class: "w-12 h-12 text-primary",
1054
1054
  xmlns: "http://www.w3.org/2000/svg",
1055
1055
  viewBox: "0 0 24 24"
1056
- }, ln = /* @__PURE__ */ ke('<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), an = [
1056
+ }, ln = /* @__PURE__ */ Ae('<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), rn = [
1057
1057
  ln
1058
1058
  ];
1059
- function rn(e, t) {
1060
- return g(), b("svg", sn, an);
1059
+ function an(e, t) {
1060
+ return p(), b("svg", sn, rn);
1061
1061
  }
1062
- const cn = /* @__PURE__ */ te(on, [["render", rn]]), un = { class: "rounded-lg bg-base-100 px-4 py-2 border border-base-300 shadow-lg" }, dn = { class: "flex justify-center" }, fn = {
1062
+ const cn = /* @__PURE__ */ J(on, [["render", an]]), dn = { class: "rounded-lg bg-base-100 px-4 py-2 border border-base-300 shadow-lg" }, un = { class: "flex justify-center" }, fn = {
1063
1063
  __name: "Loading",
1064
1064
  setup(e) {
1065
- return (t, n) => (g(), b("div", un, [
1066
- y("div", dn, [
1067
- K(cn)
1065
+ return (t, n) => (p(), b("div", dn, [
1066
+ y("div", un, [
1067
+ Z(cn)
1068
1068
  ])
1069
1069
  ]));
1070
1070
  }
1071
1071
  }, mn = {
1072
1072
  name: "Phonetic",
1073
1073
  props: ["phonetic"]
1074
- }, hn = { class: "p-0 m-0" }, gn = { class: "text-xs font-md text-base-content/60" };
1075
- function Cn(e, t, n, o, i, s) {
1076
- return g(), b("p", hn, [
1077
- y("span", gn, "/" + de(n.phonetic) + "/", 1)
1074
+ }, hn = { class: "p-0 m-0" }, Cn = { class: "text-xs font-md text-base-content/60" };
1075
+ function gn(e, t, n, i, o, s) {
1076
+ return p(), b("p", hn, [
1077
+ y("span", Cn, "/" + ce(n.phonetic) + "/", 1)
1078
1078
  ]);
1079
1079
  }
1080
- const pn = /* @__PURE__ */ te(mn, [["render", Cn]]), vn = { class: "flex flex-col gap-2" }, bn = {
1080
+ const pn = /* @__PURE__ */ J(mn, [["render", gn]]), vn = { class: "flex flex-col gap-2" }, bn = {
1081
1081
  __name: "Sentences",
1082
1082
  props: {
1083
1083
  sentences: {
@@ -1086,13 +1086,13 @@ const pn = /* @__PURE__ */ te(mn, [["render", Cn]]), vn = { class: "flex flex-co
1086
1086
  }
1087
1087
  },
1088
1088
  setup(e) {
1089
- const t = e, n = _(() => t.sentences.split(`
1089
+ const t = e, n = R(() => t.sentences.split(`
1090
1090
  `));
1091
- return (o, i) => (g(), b("div", vn, [
1092
- (g(!0), b(me, null, ye(n.value, (s, l) => (g(), b("p", {
1091
+ return (i, o) => (p(), b("div", vn, [
1092
+ (p(!0), b(ue, null, we(n.value, (s, l) => (p(), b("p", {
1093
1093
  key: l,
1094
1094
  class: "text-base text-base-content leading-tight p-0 mr-2"
1095
- }, de(s), 1))), 128))
1095
+ }, ce(s), 1))), 128))
1096
1096
  ]));
1097
1097
  }
1098
1098
  }, wn = { class: "capitalize text-base italic font-normal text-base-content/60" }, xn = { class: "text-base leading-6 text-base-content" }, yn = {
@@ -1101,51 +1101,51 @@ const pn = /* @__PURE__ */ te(mn, [["render", Cn]]), vn = { class: "flex flex-co
1101
1101
  dictionary: Array
1102
1102
  },
1103
1103
  setup(e) {
1104
- return (t, n) => (g(), b("div", null, [
1105
- (g(!0), b(me, null, ye(e.dictionary, (o, i) => (g(), b("div", {
1106
- key: i,
1104
+ return (t, n) => (p(), b("div", null, [
1105
+ (p(!0), b(ue, null, we(e.dictionary, (i, o) => (p(), b("div", {
1106
+ key: o,
1107
1107
  class: "mt-2"
1108
1108
  }, [
1109
- y("p", wn, de(o.pos), 1),
1110
- y("span", xn, de(o.terms.join(", ")), 1)
1109
+ y("p", wn, ce(i.pos), 1),
1110
+ y("span", xn, ce(i.terms.join(", ")), 1)
1111
1111
  ]))), 128))
1112
1112
  ]));
1113
1113
  }
1114
1114
  }, Ln = { class: "" }, Tn = /* @__PURE__ */ y("p", { class: "capitalize text-base italic font-normal text-base-content/60 mt-2" }, "AI Summary", -1), Sn = {
1115
1115
  key: 0,
1116
1116
  class: "list-none list-outside mt-2"
1117
- }, En = ["innerHTML"], An = {
1117
+ }, An = ["innerHTML"], $n = {
1118
1118
  __name: "Explanation",
1119
1119
  props: {
1120
1120
  explanation: Object
1121
1121
  },
1122
1122
  setup(e) {
1123
1123
  return (t, n) => {
1124
- var o, i;
1125
- return g(), b("div", Ln, [
1124
+ var i, o;
1125
+ return p(), b("div", Ln, [
1126
1126
  Tn,
1127
- (o = e.explanation) != null && o.result ? (g(), b("ul", Sn, [
1128
- (g(!0), b(me, null, ye(((i = e.explanation) == null ? void 0 : i.result.split(`
1129
- `)) || [], (s, l) => (g(), b("li", {
1127
+ (i = e.explanation) != null && i.result ? (p(), b("ul", Sn, [
1128
+ (p(!0), b(ue, null, we(((o = e.explanation) == null ? void 0 : o.result.split(`
1129
+ `)) || [], (s, l) => (p(), b("li", {
1130
1130
  key: `${s}-${l}`,
1131
1131
  innerHTML: s,
1132
1132
  class: "text-base text-base-content"
1133
- }, null, 8, En))), 128))
1134
- ])) : N("", !0)
1133
+ }, null, 8, An))), 128))
1134
+ ])) : M("", !0)
1135
1135
  ]);
1136
1136
  };
1137
1137
  }
1138
- }, $n = ["disabled"], kn = /* @__PURE__ */ y("path", {
1138
+ }, En = ["disabled"], kn = /* @__PURE__ */ y("path", {
1139
1139
  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",
1140
1140
  fill: "currentColor"
1141
1141
  }, null, -1), Rn = [
1142
1142
  kn
1143
- ], Mn = ["disabled"], Bn = /* @__PURE__ */ y("path", {
1143
+ ], In = ["disabled"], Bn = /* @__PURE__ */ y("path", {
1144
1144
  "fill-rule": "evenodd",
1145
1145
  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",
1146
1146
  "clip-rule": "evenodd",
1147
1147
  fill: "currentColor"
1148
- }, null, -1), In = [
1148
+ }, null, -1), Mn = [
1149
1149
  Bn
1150
1150
  ], Fn = {
1151
1151
  __name: "Player",
@@ -1161,93 +1161,93 @@ const pn = /* @__PURE__ */ te(mn, [["render", Cn]]), vn = { class: "flex flex-co
1161
1161
  },
1162
1162
  emits: ["loadTTS"],
1163
1163
  setup(e, { emit: t }) {
1164
- const n = e, o = t, i = _(() => n.tts), s = R(!1), l = new Audio(), r = new (window.AudioContext || window.webkitAudioContext)();
1165
- let a = null;
1166
- se(
1167
- i,
1164
+ const n = e, i = t, o = R(() => n.tts), s = B(!1), l = new Audio(), a = new (window.AudioContext || window.webkitAudioContext)();
1165
+ let r = null;
1166
+ te(
1167
+ o,
1168
1168
  () => {
1169
- if (!i.value) {
1169
+ if (!o.value) {
1170
1170
  s.value = !1;
1171
1171
  return;
1172
1172
  }
1173
- u();
1173
+ d();
1174
1174
  },
1175
1175
  { immediate: !0 }
1176
- ), Re(() => {
1177
- h(), l.src = "", r.close();
1176
+ ), $e(() => {
1177
+ g(), l.src = "", a.close();
1178
1178
  });
1179
1179
  function c() {
1180
- if (i.value) {
1181
- u();
1180
+ if (o.value) {
1181
+ d();
1182
1182
  return;
1183
1183
  }
1184
- s.value = !0, o("loadTTS");
1184
+ s.value = !0, i("loadTTS");
1185
1185
  }
1186
- async function u() {
1187
- if (i.value) {
1186
+ async function d() {
1187
+ if (o.value) {
1188
1188
  s.value = !0;
1189
1189
  try {
1190
- l.src = i.value, l.playbackRate = 0.7, await l.play(), l.onended = () => {
1190
+ l.src = o.value, l.playbackRate = 0.7, await l.play(), l.onended = () => {
1191
1191
  s.value = !1;
1192
1192
  };
1193
1193
  } catch {
1194
- await d();
1194
+ await u();
1195
1195
  }
1196
1196
  }
1197
1197
  }
1198
- async function d() {
1198
+ async function u() {
1199
1199
  try {
1200
- const m = await (await fetch(i.value)).arrayBuffer(), p = await r.decodeAudioData(m);
1201
- a = r.createBufferSource(), a.buffer = p, a.playbackRate.value = 0.7, a.connect(r.destination), a.start(), a.onended = () => {
1202
- s.value = !1, a = null;
1200
+ const h = await (await fetch(o.value)).arrayBuffer(), v = await a.decodeAudioData(h);
1201
+ r = a.createBufferSource(), r.buffer = v, r.playbackRate.value = 0.7, r.connect(a.destination), r.start(), r.onended = () => {
1202
+ s.value = !1, r = null;
1203
1203
  };
1204
1204
  } catch {
1205
1205
  s.value = !1;
1206
1206
  }
1207
1207
  }
1208
- function h() {
1209
- a && (a.stop(), a.disconnect(), a = null), l.pause(), l.currentTime = 0, s.value = !1;
1208
+ function g() {
1209
+ r && (r.stop(), r.disconnect(), r = null), l.pause(), l.currentTime = 0, s.value = !1;
1210
1210
  }
1211
- return (f, m) => s.value ? (g(), b("button", {
1211
+ return (f, h) => s.value ? (p(), b("button", {
1212
1212
  key: 1,
1213
- class: k(["btn btn-xs btn-circle", [
1213
+ class: A(["btn btn-xs btn-circle", [
1214
1214
  { "btn-ghost": !e.disabled },
1215
1215
  { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
1216
1216
  ]]),
1217
1217
  disabled: e.disabled,
1218
- onClick: h
1218
+ onClick: g
1219
1219
  }, [
1220
- (g(), b("svg", {
1221
- class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1220
+ (p(), b("svg", {
1221
+ class: A(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1222
1222
  viewBox: "0 0 24 24",
1223
1223
  fill: "none",
1224
1224
  xmlns: "http://www.w3.org/2000/svg"
1225
- }, In, 2))
1226
- ], 10, Mn)) : (g(), b("button", {
1225
+ }, Mn, 2))
1226
+ ], 10, In)) : (p(), b("button", {
1227
1227
  key: 0,
1228
- class: k(["btn btn-xs btn-circle", [
1228
+ class: A(["btn btn-xs btn-circle", [
1229
1229
  { "btn-ghost": !e.disabled },
1230
1230
  { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
1231
1231
  ]]),
1232
1232
  disabled: e.disabled,
1233
1233
  onClick: c
1234
1234
  }, [
1235
- (g(), b("svg", {
1236
- class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1235
+ (p(), b("svg", {
1236
+ class: A(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1237
1237
  viewBox: "0 0 16 16",
1238
1238
  fill: "none",
1239
1239
  xmlns: "http://www.w3.org/2000/svg"
1240
1240
  }, Rn, 2))
1241
- ], 10, $n));
1241
+ ], 10, En));
1242
1242
  }
1243
1243
  }, On = {
1244
1244
  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",
1245
1245
  "data-tip": "Favorite"
1246
- }, Dn = ["disabled"], _n = /* @__PURE__ */ y("path", {
1246
+ }, _n = ["disabled"], Dn = /* @__PURE__ */ y("path", {
1247
1247
  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",
1248
1248
  fill: "currentColor"
1249
1249
  }, null, -1), Vn = [
1250
- _n
1250
+ Dn
1251
1251
  ], Nn = /* @__PURE__ */ y("path", {
1252
1252
  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",
1253
1253
  fill: "currentColor"
@@ -1260,59 +1260,59 @@ const pn = /* @__PURE__ */ te(mn, [["render", Cn]]), vn = { class: "flex flex-co
1260
1260
  disabled: Boolean
1261
1261
  },
1262
1262
  setup(e) {
1263
- return (t, n) => (g(), b("div", On, [
1263
+ return (t, n) => (p(), b("div", On, [
1264
1264
  y("button", {
1265
- class: k(["btn btn-xs btn-circle", [
1265
+ class: A(["btn btn-xs btn-circle", [
1266
1266
  { "btn-ghost": !e.disabled },
1267
1267
  { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
1268
1268
  ]]),
1269
1269
  disabled: e.disabled
1270
1270
  }, [
1271
- e.isFilled ? (g(), b("svg", {
1271
+ e.isFilled ? (p(), b("svg", {
1272
1272
  key: 1,
1273
- class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1273
+ class: A(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1274
1274
  viewBox: "0 0 16 16",
1275
1275
  fill: "none",
1276
1276
  xmlns: "http://www.w3.org/2000/svg"
1277
- }, Pn, 2)) : (g(), b("svg", {
1277
+ }, Pn, 2)) : (p(), b("svg", {
1278
1278
  key: 0,
1279
- class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1279
+ class: A(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1280
1280
  viewBox: "0 0 16 16",
1281
1281
  fill: "none",
1282
1282
  xmlns: "http://www.w3.org/2000/svg"
1283
1283
  }, Vn, 2))
1284
- ], 10, Dn)
1284
+ ], 10, _n)
1285
1285
  ]));
1286
1286
  }
1287
1287
  }, Wn = {}, zn = {
1288
1288
  class: "w-6 h-6 text-primary",
1289
1289
  xmlns: "http://www.w3.org/2000/svg",
1290
1290
  viewBox: "0 0 24 24"
1291
- }, Zn = /* @__PURE__ */ ke('<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), Un = [
1291
+ }, Zn = /* @__PURE__ */ Ae('<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), Un = [
1292
1292
  Zn
1293
1293
  ];
1294
1294
  function jn(e, t) {
1295
- return g(), b("svg", zn, Un);
1295
+ return p(), b("svg", zn, Un);
1296
1296
  }
1297
- const at = /* @__PURE__ */ te(Wn, [["render", jn]]), Kn = {
1297
+ const rt = /* @__PURE__ */ J(Wn, [["render", jn]]), Kn = {
1298
1298
  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",
1299
1299
  "data-tip": "AI Translate"
1300
- }, Xn = ["disabled"], Yn = /* @__PURE__ */ y("path", {
1300
+ }, Gn = ["disabled"], Xn = /* @__PURE__ */ y("path", {
1301
1301
  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",
1302
1302
  fill: "currentColor"
1303
- }, null, -1), Gn = /* @__PURE__ */ y("path", {
1303
+ }, null, -1), qn = /* @__PURE__ */ y("path", {
1304
1304
  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",
1305
1305
  fill: "currentColor"
1306
- }, null, -1), qn = /* @__PURE__ */ y("path", {
1306
+ }, null, -1), Yn = /* @__PURE__ */ y("path", {
1307
1307
  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",
1308
1308
  fill: "currentColor"
1309
1309
  }, null, -1), Jn = [
1310
- Yn,
1311
- Gn,
1312
- qn
1313
- ], Qn = /* @__PURE__ */ ke('<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), eo = [
1310
+ Xn,
1311
+ qn,
1312
+ Yn
1313
+ ], Qn = /* @__PURE__ */ Ae('<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), e1 = [
1314
1314
  Qn
1315
- ], to = {
1315
+ ], t1 = {
1316
1316
  __name: "AITranslateBtn",
1317
1317
  props: {
1318
1318
  isLoading: Boolean,
@@ -1320,58 +1320,58 @@ const at = /* @__PURE__ */ te(Wn, [["render", jn]]), Kn = {
1320
1320
  isFilled: Boolean
1321
1321
  },
1322
1322
  setup(e) {
1323
- return (t, n) => (g(), b("div", Kn, [
1324
- e.isLoading ? (g(), V(at, {
1323
+ return (t, n) => (p(), b("div", Kn, [
1324
+ e.isLoading ? (p(), I(rt, {
1325
1325
  key: 0,
1326
1326
  class: "inset-0 flex items-center justify-center"
1327
- })) : (g(), b("button", {
1327
+ })) : (p(), b("button", {
1328
1328
  key: 1,
1329
- class: k(["btn btn-xs btn-circle", [
1329
+ class: A(["btn btn-xs btn-circle", [
1330
1330
  { "btn-ghost": !e.disabled },
1331
1331
  { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
1332
1332
  ]]),
1333
1333
  disabled: e.disabled
1334
1334
  }, [
1335
- e.isFilled ? (g(), b("svg", {
1335
+ e.isFilled ? (p(), b("svg", {
1336
1336
  key: 1,
1337
- class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1337
+ class: A(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1338
1338
  viewBox: "0 0 12 12",
1339
1339
  fill: "none",
1340
1340
  xmlns: "http://www.w3.org/2000/svg"
1341
- }, eo, 2)) : (g(), b("svg", {
1341
+ }, e1, 2)) : (p(), b("svg", {
1342
1342
  key: 0,
1343
- class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1343
+ class: A(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1344
1344
  viewBox: "0 0 12 12",
1345
1345
  fill: "none",
1346
1346
  xmlns: "http://www.w3.org/2000/svg"
1347
1347
  }, Jn, 2))
1348
- ], 10, Xn))
1348
+ ], 10, Gn))
1349
1349
  ]));
1350
1350
  }
1351
- }, no = {
1351
+ }, n1 = {
1352
1352
  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",
1353
1353
  "data-tip": "AI Summarize"
1354
- }, oo = ["disabled"], io = /* @__PURE__ */ y("path", {
1354
+ }, i1 = ["disabled"], o1 = /* @__PURE__ */ y("path", {
1355
1355
  stroke: "currentColor",
1356
1356
  "stroke-linecap": "round",
1357
1357
  "stroke-linejoin": "round",
1358
1358
  "stroke-width": "2",
1359
1359
  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"
1360
- }, null, -1), so = [
1361
- io
1362
- ], lo = /* @__PURE__ */ y("path", {
1360
+ }, null, -1), s1 = [
1361
+ o1
1362
+ ], l1 = /* @__PURE__ */ y("path", {
1363
1363
  fill: "currentColor",
1364
1364
  d: "M12 7a5 5 0 0 0-2 9.584V19h4v-2.416A5.001 5.001 0 0 0 12 7z"
1365
- }, null, -1), ao = /* @__PURE__ */ y("path", {
1365
+ }, null, -1), r1 = /* @__PURE__ */ y("path", {
1366
1366
  stroke: "currentColor",
1367
1367
  "stroke-linecap": "round",
1368
1368
  "stroke-linejoin": "round",
1369
1369
  "stroke-width": "2",
1370
1370
  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"
1371
- }, null, -1), ro = [
1372
- lo,
1373
- ao
1374
- ], co = {
1371
+ }, null, -1), a1 = [
1372
+ l1,
1373
+ r1
1374
+ ], c1 = {
1375
1375
  __name: "AIExplainBtn",
1376
1376
  props: {
1377
1377
  isLoading: Boolean,
@@ -1379,32 +1379,32 @@ const at = /* @__PURE__ */ te(Wn, [["render", jn]]), Kn = {
1379
1379
  isFilled: Boolean
1380
1380
  },
1381
1381
  setup(e) {
1382
- return (t, n) => (g(), b("div", no, [
1383
- e.isLoading ? (g(), V(at, { key: 0 })) : (g(), b("button", {
1382
+ return (t, n) => (p(), b("div", n1, [
1383
+ e.isLoading ? (p(), I(rt, { key: 0 })) : (p(), b("button", {
1384
1384
  key: 1,
1385
- class: k(["btn btn-xs btn-circle", [
1385
+ class: A(["btn btn-xs btn-circle", [
1386
1386
  { "btn-ghost": !e.disabled },
1387
1387
  { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
1388
1388
  ]]),
1389
1389
  disabled: e.disabled
1390
1390
  }, [
1391
- e.isFilled ? (g(), b("svg", {
1391
+ e.isFilled ? (p(), b("svg", {
1392
1392
  key: 1,
1393
- class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1393
+ class: A(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1394
1394
  viewBox: "0 0 24 24",
1395
1395
  fill: "none",
1396
1396
  xmlns: "http://www.w3.org/2000/svg"
1397
- }, ro, 2)) : (g(), b("svg", {
1397
+ }, a1, 2)) : (p(), b("svg", {
1398
1398
  key: 0,
1399
- class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1399
+ class: A(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1400
1400
  viewBox: "0 0 24 24",
1401
1401
  fill: "none",
1402
1402
  xmlns: "http://www.w3.org/2000/svg"
1403
- }, so, 2))
1404
- ], 10, oo))
1403
+ }, s1, 2))
1404
+ ], 10, i1))
1405
1405
  ]));
1406
1406
  }
1407
- }, uo = {}, fo = { class: "btn btn-xs btn-ghost btn-circle" }, mo = /* @__PURE__ */ y("svg", {
1407
+ }, d1 = {}, u1 = { class: "btn btn-xs btn-ghost btn-circle" }, f1 = /* @__PURE__ */ y("svg", {
1408
1408
  class: "w-4 h-4 text-primary",
1409
1409
  viewBox: "0 0 24 24",
1410
1410
  fill: "none",
@@ -1418,13 +1418,13 @@ const at = /* @__PURE__ */ te(Wn, [["render", jn]]), Kn = {
1418
1418
  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",
1419
1419
  fill: "currentColor"
1420
1420
  })
1421
- ], -1), ho = [
1422
- mo
1421
+ ], -1), m1 = [
1422
+ f1
1423
1423
  ];
1424
- function go(e, t) {
1425
- return g(), b("button", fo, ho);
1424
+ function h1(e, t) {
1425
+ return p(), b("button", u1, m1);
1426
1426
  }
1427
- const Co = /* @__PURE__ */ te(uo, [["render", go]]), po = {}, vo = { class: "btn btn-xs btn-circle btn-ghost" }, bo = /* @__PURE__ */ y("svg", {
1427
+ const C1 = /* @__PURE__ */ J(d1, [["render", h1]]), g1 = {}, p1 = { class: "btn btn-xs btn-circle btn-ghost" }, v1 = /* @__PURE__ */ y("svg", {
1428
1428
  class: "w-4 h-4 text-primary",
1429
1429
  viewBox: "0 0 16 16",
1430
1430
  fill: "none",
@@ -1442,13 +1442,13 @@ const Co = /* @__PURE__ */ te(uo, [["render", go]]), po = {}, vo = { class: "btn
1442
1442
  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",
1443
1443
  fill: "currentColor"
1444
1444
  })
1445
- ], -1), wo = [
1446
- bo
1445
+ ], -1), b1 = [
1446
+ v1
1447
1447
  ];
1448
- function xo(e, t) {
1449
- return g(), b("button", vo, wo);
1448
+ function w1(e, t) {
1449
+ return p(), b("button", p1, b1);
1450
1450
  }
1451
- const yo = /* @__PURE__ */ te(po, [["render", xo]]), Lo = {
1451
+ const x1 = /* @__PURE__ */ J(g1, [["render", w1]]), y1 = {
1452
1452
  name: "ThemeSelector",
1453
1453
  props: {
1454
1454
  currentTheme: {
@@ -1477,15 +1477,9 @@ const yo = /* @__PURE__ */ te(po, [["render", xo]]), Lo = {
1477
1477
  methods: {
1478
1478
  handleThemeChange(e) {
1479
1479
  this.$emit("themeChange", e);
1480
- },
1481
- handleLabelClick(e) {
1482
- e.stopPropagation(), this.$nextTick(() => {
1483
- const t = this.$el.querySelector('[role="button"]');
1484
- t && t.blur();
1485
- });
1486
1480
  }
1487
1481
  }
1488
- }, To = { class: "dropdown dropdown-end z-50" }, So = /* @__PURE__ */ y("div", {
1482
+ }, L1 = { class: "dropdown dropdown-end z-50" }, T1 = /* @__PURE__ */ y("div", {
1489
1483
  tabindex: "0",
1490
1484
  role: "button",
1491
1485
  class: "btn btn-ghost btn-circle btn-xs"
@@ -1497,15 +1491,15 @@ const yo = /* @__PURE__ */ te(po, [["render", xo]]), Lo = {
1497
1491
  }, [
1498
1492
  /* @__PURE__ */ y("path", { d: "M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z" })
1499
1493
  ])
1500
- ], -1), Eo = {
1494
+ ], -1), S1 = {
1501
1495
  tabindex: "0",
1502
1496
  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"
1503
- }, Ao = ["id", "value", "checked", "onChange"], $o = ["for"], ko = { class: "flex items-center gap-2" };
1504
- function Ro(e, t, n, o, i, s) {
1505
- return g(), b("div", To, [
1506
- So,
1507
- y("ul", Eo, [
1508
- (g(!0), b(me, null, ye(i.availableThemes, (l) => (g(), b("li", {
1497
+ }, A1 = ["id", "value", "checked", "onChange"], $1 = ["for"], E1 = { class: "flex items-center gap-2" };
1498
+ function k1(e, t, n, i, o, s) {
1499
+ return p(), b("div", L1, [
1500
+ T1,
1501
+ y("ul", S1, [
1502
+ (p(!0), b(ue, null, we(o.availableThemes, (l) => (p(), b("li", {
1509
1503
  key: l.value
1510
1504
  }, [
1511
1505
  y("input", {
@@ -1513,27 +1507,26 @@ function Ro(e, t, n, o, i, s) {
1513
1507
  id: `theme-${l.value}`,
1514
1508
  value: l.value,
1515
1509
  checked: n.currentTheme === l.value,
1516
- onChange: (r) => s.handleThemeChange(l.value),
1510
+ onChange: (a) => s.handleThemeChange(l.value),
1517
1511
  class: "theme-controller sr-only"
1518
- }, null, 40, Ao),
1512
+ }, null, 40, A1),
1519
1513
  y("label", {
1520
1514
  for: `theme-${l.value}`,
1521
- class: k(["cursor-pointer rounded-lg px-2 py-1 hover:bg-base-200", { "bg-primary text-primary-content": n.currentTheme === l.value }]),
1522
- onClick: t[0] || (t[0] = (...r) => s.handleLabelClick && s.handleLabelClick(...r))
1515
+ class: A(["cursor-pointer rounded-lg px-2 py-1 hover:bg-base-200", { "bg-primary text-primary-content": n.currentTheme === l.value }])
1523
1516
  }, [
1524
- y("span", ko, [
1517
+ y("span", E1, [
1525
1518
  y("span", {
1526
1519
  class: "w-3 h-3 rounded-full",
1527
- style: Ye({ backgroundColor: l.color })
1520
+ style: Xe({ backgroundColor: l.color })
1528
1521
  }, null, 4),
1529
- ft(" " + de(l.name), 1)
1522
+ ft(" " + ce(l.name), 1)
1530
1523
  ])
1531
- ], 10, $o)
1524
+ ], 10, $1)
1532
1525
  ]))), 128))
1533
1526
  ])
1534
1527
  ]);
1535
1528
  }
1536
- const Mo = /* @__PURE__ */ te(Lo, [["render", Ro]]), Bo = { class: "flex flex-col" }, Io = { class: "flex p-2 pt-2 pb-1 flex-row justify-between" }, Fo = { class: "flex justify-start items-center" }, Oo = { class: "flex items-center gap-1" }, Do = /* @__PURE__ */ y("div", { class: "w-5" }, null, -1), _o = { class: "flex justify-end items-center" }, Ze = {
1529
+ const R1 = /* @__PURE__ */ J(y1, [["render", k1]]), I1 = { class: "flex flex-col" }, B1 = { class: "flex p-2 pt-2 pb-1 flex-row justify-between" }, M1 = { class: "flex justify-start items-center" }, F1 = { class: "flex items-center gap-1" }, O1 = /* @__PURE__ */ y("div", { class: "w-5" }, null, -1), _1 = { class: "flex justify-end items-center" }, Ze = {
1537
1530
  __name: "Header",
1538
1531
  props: {
1539
1532
  tts: String,
@@ -1565,69 +1558,69 @@ const Mo = /* @__PURE__ */ te(Lo, [["render", Ro]]), Bo = { class: "flex flex-co
1565
1558
  "themeChange"
1566
1559
  ],
1567
1560
  setup(e, { emit: t }) {
1568
- const n = e, o = t;
1569
- return (i, s) => (g(), b("div", Bo, [
1570
- y("div", Io, [
1571
- y("div", Fo, [
1572
- e.isServiceUnavailable ? N("", !0) : (g(), V(Fn, {
1561
+ const n = e, i = t;
1562
+ return (o, s) => (p(), b("div", I1, [
1563
+ y("div", B1, [
1564
+ y("div", M1, [
1565
+ e.isServiceUnavailable ? M("", !0) : (p(), I(Fn, {
1573
1566
  key: 0,
1574
1567
  disabled: e.isAITranslationLoading || e.isAIExplainLoading,
1575
1568
  tts: n.tts,
1576
- onLoadTTS: s[0] || (s[0] = (l) => i.$emit("loadTTS"))
1569
+ onLoadTTS: s[0] || (s[0] = (l) => o.$emit("loadTTS"))
1577
1570
  }, null, 8, ["disabled", "tts"]))
1578
1571
  ]),
1579
- y("div", Oo, [
1580
- Do,
1581
- !e.isServiceUnavailable && e.isAITranslateVisible ? (g(), V(to, {
1572
+ y("div", F1, [
1573
+ O1,
1574
+ !e.isServiceUnavailable && e.isAITranslateVisible ? (p(), I(t1, {
1582
1575
  key: 0,
1583
1576
  isLoading: e.isAITranslationLoading,
1584
1577
  isFilled: e.isAITranslate,
1585
- onClick: s[1] || (s[1] = (l) => o("aiTranslate"))
1586
- }, null, 8, ["isLoading", "isFilled"])) : N("", !0),
1587
- !e.isServiceUnavailable && e.isAIExplainVisible ? (g(), V(co, {
1578
+ onClick: s[1] || (s[1] = (l) => i("aiTranslate"))
1579
+ }, null, 8, ["isLoading", "isFilled"])) : M("", !0),
1580
+ !e.isServiceUnavailable && e.isAIExplainVisible ? (p(), I(c1, {
1588
1581
  key: 1,
1589
1582
  isLoading: e.isAIExplainLoading,
1590
1583
  isFilled: e.isAIExplain,
1591
- onClick: s[2] || (s[2] = (l) => o("aiExplain"))
1592
- }, null, 8, ["isLoading", "isFilled"])) : N("", !0),
1593
- !e.isServiceUnavailable && n.isFavoriteFeatureEnabled ? (g(), V(Hn, {
1584
+ onClick: s[2] || (s[2] = (l) => i("aiExplain"))
1585
+ }, null, 8, ["isLoading", "isFilled"])) : M("", !0),
1586
+ !e.isServiceUnavailable && n.isFavoriteFeatureEnabled ? (p(), I(Hn, {
1594
1587
  key: 2,
1595
1588
  isFilled: n.isFavorite,
1596
- onClick: s[3] || (s[3] = (l) => o("favorite")),
1589
+ onClick: s[3] || (s[3] = (l) => i("favorite")),
1597
1590
  disabled: e.isAITranslationLoading || e.isAIExplainLoading
1598
- }, null, 8, ["isFilled", "disabled"])) : N("", !0)
1591
+ }, null, 8, ["isFilled", "disabled"])) : M("", !0)
1599
1592
  ]),
1600
- y("div", _o, [
1601
- e.showThemeSelector ? (g(), V(Mo, {
1593
+ y("div", _1, [
1594
+ e.showThemeSelector ? (p(), I(R1, {
1602
1595
  key: 0,
1603
1596
  "current-theme": e.theme,
1604
- onThemeChange: s[4] || (s[4] = (l) => o("themeChange", l))
1605
- }, null, 8, ["current-theme"])) : N("", !0),
1606
- K(Co, {
1607
- onClick: s[5] || (s[5] = (l) => o("setting"))
1597
+ onThemeChange: s[4] || (s[4] = (l) => i("themeChange", l))
1598
+ }, null, 8, ["current-theme"])) : M("", !0),
1599
+ Z(C1, {
1600
+ onClick: s[5] || (s[5] = (l) => i("setting"))
1608
1601
  }),
1609
- K(yo, {
1610
- onClick: s[6] || (s[6] = (l) => o("close"))
1602
+ Z(x1, {
1603
+ onClick: s[6] || (s[6] = (l) => i("close"))
1611
1604
  })
1612
1605
  ])
1613
1606
  ])
1614
1607
  ]));
1615
1608
  }
1616
- }, ue = {
1609
+ }, ae = {
1617
1610
  LOGO: "LOGO",
1618
1611
  LOADING: "LOADING",
1619
1612
  DATA: "DATA",
1620
1613
  ERROR: "ERROR",
1621
1614
  HIDDEN: "HIDDEN"
1622
- }, Ue = 500, Vo = ["ar", "fa", "iw", "yi", "ur", "pa"], No = {
1615
+ }, Ue = 500, D1 = ["ar", "fa", "iw", "yi", "ur", "pa"], V1 = {
1623
1616
  key: 0,
1624
1617
  class: "flex justify-center"
1625
- }, Po = {
1618
+ }, N1 = {
1626
1619
  key: 1,
1627
1620
  class: "flex justify-center"
1628
- }, Ho = {
1629
- class: /* @__PURE__ */ k(["bg-base-100 rounded-md relative z-10"])
1630
- }, Wo = { class: "p-3 border-t border-base-300" }, zo = {
1621
+ }, P1 = {
1622
+ class: /* @__PURE__ */ A(["bg-base-100 rounded-md relative z-10"])
1623
+ }, H1 = { class: "p-3 border-t border-base-300" }, W1 = {
1631
1624
  name: "Bubble",
1632
1625
  props: [
1633
1626
  "translation",
@@ -1672,9 +1665,9 @@ const Mo = /* @__PURE__ */ te(Lo, [["render", Ro]]), Bo = { class: "flex flex-co
1672
1665
  watch: {
1673
1666
  translation: {
1674
1667
  handler() {
1675
- var e, t, n, o;
1668
+ var e, t, n, i;
1676
1669
  try {
1677
- this.data = this.translation, this.isLongSentence = !((t = (e = this.data) == null ? void 0 : e.phonetic) != null && t.src || ((o = (n = this.data) == null ? void 0 : n.dictionary) == null ? void 0 : o.length) > 0), this.isServiceUnavailable = !1;
1670
+ this.data = this.translation, this.isLongSentence = !((t = (e = this.data) == null ? void 0 : e.phonetic) != null && t.src || ((i = (n = this.data) == null ? void 0 : n.dictionary) == null ? void 0 : i.length) > 0), this.isServiceUnavailable = !1;
1678
1671
  } catch {
1679
1672
  this.isServiceUnavailable = !0;
1680
1673
  } finally {
@@ -1690,22 +1683,22 @@ const Mo = /* @__PURE__ */ te(Lo, [["render", Ro]]), Bo = { class: "flex flex-co
1690
1683
  immediate: !0
1691
1684
  },
1692
1685
  status() {
1693
- this.status === ue.ERROR && (this.isServiceUnavailable = !0);
1686
+ this.status === ae.ERROR && (this.isServiceUnavailable = !0);
1694
1687
  }
1695
1688
  }
1696
- }, Zo = /* @__PURE__ */ Object.assign(zo, {
1689
+ }, z1 = /* @__PURE__ */ Object.assign(W1, {
1697
1690
  setup(e) {
1698
1691
  return (t, n) => {
1699
- var o, i, s, l, r, a, c, u, d, h, f;
1700
- return e.status === ve(ue).LOGO ? (g(), b("div", No, [
1701
- K(nn, {
1702
- onClick: n[0] || (n[0] = (m) => t.$emit("logo"))
1692
+ var i, o, s, l, a, r, c, d, u, g, f;
1693
+ return e.status === ge(ae).LOGO ? (p(), b("div", V1, [
1694
+ Z(nn, {
1695
+ onClick: n[0] || (n[0] = (h) => t.$emit("logo"))
1703
1696
  })
1704
- ])) : e.status === ve(ue).LOADING ? (g(), b("div", Po, [
1705
- K(fn)
1706
- ])) : e.status !== ve(ue).HIDDEN ? (g(), b("div", {
1697
+ ])) : e.status === ge(ae).LOADING ? (p(), b("div", N1, [
1698
+ Z(fn)
1699
+ ])) : e.status !== ge(ae).HIDDEN ? (p(), b("div", {
1707
1700
  key: 2,
1708
- class: k([
1701
+ class: A([
1709
1702
  "wrapper rounded-lg text-base-content text-sm shadow-lg relative bg-[length:300%_300%] bg-[position:0%_50%]",
1710
1703
  {
1711
1704
  "p-0.5 bg-gradient-to-br from-primary via-secondary via-accent to-info animate-moveGradient": e.isAITranslate || e.isAIExplain,
@@ -1713,24 +1706,24 @@ const Mo = /* @__PURE__ */ te(Lo, [["render", Ro]]), Bo = { class: "flex flex-co
1713
1706
  }
1714
1707
  ])
1715
1708
  }, [
1716
- y("div", Ho, [
1717
- t.isServiceUnavailable ? (g(), V(Ze, {
1709
+ y("div", P1, [
1710
+ t.isServiceUnavailable ? (p(), I(Ze, {
1718
1711
  key: 0,
1719
1712
  isServiceUnavailable: t.isServiceUnavailable,
1720
1713
  isLongSentence: !1,
1721
1714
  theme: e.theme,
1722
1715
  showThemeSelector: e.showThemeSelector,
1723
- onFavorite: n[1] || (n[1] = (m) => t.$emit("favorite")),
1724
- onSetting: n[2] || (n[2] = (m) => t.$emit("settings")),
1725
- onClose: n[3] || (n[3] = (m) => t.$emit("close")),
1726
- onLoadTTS: n[4] || (n[4] = (m) => t.$emit("loadTTS")),
1727
- onThemeChange: n[5] || (n[5] = (m) => t.$emit("themeChange", m))
1728
- }, null, 8, ["isServiceUnavailable", "theme", "showThemeSelector"])) : (g(), V(Ze, {
1716
+ onFavorite: n[1] || (n[1] = (h) => t.$emit("favorite")),
1717
+ onSetting: n[2] || (n[2] = (h) => t.$emit("settings")),
1718
+ onClose: n[3] || (n[3] = (h) => t.$emit("close")),
1719
+ onLoadTTS: n[4] || (n[4] = (h) => t.$emit("loadTTS")),
1720
+ onThemeChange: n[5] || (n[5] = (h) => t.$emit("themeChange", h))
1721
+ }, null, 8, ["isServiceUnavailable", "theme", "showThemeSelector"])) : (p(), I(Ze, {
1729
1722
  key: 1,
1730
1723
  tts: e.tts,
1731
1724
  isFavorite: e.isFavorite,
1732
1725
  isAITranslate: e.isAITranslate,
1733
- isAITranslateVisible: ((i = (o = t.data) == null ? void 0 : o.dictionary) == null ? void 0 : i.length) === 0,
1726
+ isAITranslateVisible: ((o = (i = t.data) == null ? void 0 : i.dictionary) == null ? void 0 : o.length) === 0,
1734
1727
  isAIExplain: e.isAIExplain,
1735
1728
  isAIExplainVisible: ((l = (s = t.data) == null ? void 0 : s.text) == null ? void 0 : l.length) >= e.aiExplainMinLength,
1736
1729
  isAITranslationLoading: t.isAITranslationLoading,
@@ -1739,43 +1732,43 @@ const Mo = /* @__PURE__ */ te(Lo, [["render", Ro]]), Bo = { class: "flex flex-co
1739
1732
  isLongSentence: t.isLongSentence,
1740
1733
  theme: e.theme,
1741
1734
  showThemeSelector: e.showThemeSelector,
1742
- onFavorite: n[6] || (n[6] = (m) => t.$emit("favorite")),
1743
- onSetting: n[7] || (n[7] = (m) => t.$emit("settings")),
1744
- onClose: n[8] || (n[8] = (m) => t.$emit("close")),
1745
- onLoadTTS: n[9] || (n[9] = (m) => t.$emit("loadTTS")),
1735
+ onFavorite: n[6] || (n[6] = (h) => t.$emit("favorite")),
1736
+ onSetting: n[7] || (n[7] = (h) => t.$emit("settings")),
1737
+ onClose: n[8] || (n[8] = (h) => t.$emit("close")),
1738
+ onLoadTTS: n[9] || (n[9] = (h) => t.$emit("loadTTS")),
1746
1739
  onAiTranslate: t.handleAITranslate,
1747
1740
  onAiExplain: t.handleAIExplain,
1748
- onThemeChange: n[10] || (n[10] = (m) => t.$emit("themeChange", m))
1741
+ onThemeChange: n[10] || (n[10] = (h) => t.$emit("themeChange", h))
1749
1742
  }, null, 8, ["tts", "isFavorite", "isAITranslate", "isAITranslateVisible", "isAIExplain", "isAIExplainVisible", "isAITranslationLoading", "isAIExplainLoading", "isFavoriteFeatureEnabled", "isLongSentence", "theme", "showThemeSelector", "onAiTranslate", "onAiExplain"])),
1750
- y("div", Wo, [
1751
- (a = (r = t.data) == null ? void 0 : r.phonetic) != null && a.src ? (g(), V(pn, {
1743
+ y("div", H1, [
1744
+ (r = (a = t.data) == null ? void 0 : a.phonetic) != null && r.src ? (p(), I(pn, {
1752
1745
  key: 0,
1753
- phonetic: (u = (c = t.data) == null ? void 0 : c.phonetic) == null ? void 0 : u.src
1754
- }, null, 8, ["phonetic"])) : N("", !0),
1755
- K(bn, {
1756
- sentences: t.isServiceUnavailable ? "Service Unavailable" : (d = t.data) == null ? void 0 : d.result
1746
+ phonetic: (d = (c = t.data) == null ? void 0 : c.phonetic) == null ? void 0 : d.src
1747
+ }, null, 8, ["phonetic"])) : M("", !0),
1748
+ Z(bn, {
1749
+ sentences: t.isServiceUnavailable ? "Service Unavailable" : (u = t.data) == null ? void 0 : u.result
1757
1750
  }, null, 8, ["sentences"])
1758
1751
  ]),
1759
- !t.isServiceUnavailable && ((f = (h = t.data) == null ? void 0 : h.dictionary) == null ? void 0 : f.length) > 0 ? (g(), V(yn, {
1752
+ !t.isServiceUnavailable && ((f = (g = t.data) == null ? void 0 : g.dictionary) == null ? void 0 : f.length) > 0 ? (p(), I(yn, {
1760
1753
  key: 2,
1761
1754
  class: "p-3 pt-0 border-t border-base-300",
1762
1755
  dictionary: t.data.dictionary
1763
- }, null, 8, ["dictionary"])) : N("", !0),
1764
- !t.isServiceUnavailable && e.isAIExplain && e.explanation ? (g(), V(An, {
1756
+ }, null, 8, ["dictionary"])) : M("", !0),
1757
+ !t.isServiceUnavailable && e.isAIExplain && e.explanation ? (p(), I($n, {
1765
1758
  key: 3,
1766
1759
  class: "p-3 pt-0 border-t border-base-300",
1767
1760
  explanation: e.explanation
1768
- }, null, 8, ["explanation"])) : N("", !0)
1761
+ }, null, 8, ["explanation"])) : M("", !0)
1769
1762
  ])
1770
- ], 2)) : N("", !0);
1763
+ ], 2)) : M("", !0);
1771
1764
  };
1772
1765
  }
1773
1766
  });
1774
- function Uo(e) {
1767
+ function Z1(e) {
1775
1768
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1776
1769
  }
1777
- var Ae = { exports: {} }, je;
1778
- function jo() {
1770
+ var Te = { exports: {} }, je;
1771
+ function U1() {
1779
1772
  return je || (je = 1, function(e) {
1780
1773
  (function() {
1781
1774
  var t = [
@@ -1815,62 +1808,62 @@ function jo() {
1815
1808
  "wordSpacing",
1816
1809
  "tabSize",
1817
1810
  "MozTabSize"
1818
- ], n = typeof window < "u", o = n && window.mozInnerScreenX != null;
1819
- function i(s, l, r) {
1811
+ ], n = typeof window < "u", i = n && window.mozInnerScreenX != null;
1812
+ function o(s, l, a) {
1820
1813
  if (!n)
1821
1814
  throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");
1822
- var a = r && r.debug || !1;
1823
- if (a) {
1815
+ var r = a && a.debug || !1;
1816
+ if (r) {
1824
1817
  var c = document.querySelector("#input-textarea-caret-position-mirror-div");
1825
1818
  c && c.parentNode.removeChild(c);
1826
1819
  }
1827
- var u = document.createElement("div");
1828
- u.id = "input-textarea-caret-position-mirror-div", document.body.appendChild(u);
1829
- var d = u.style, h = window.getComputedStyle ? window.getComputedStyle(s) : s.currentStyle, f = s.nodeName === "INPUT";
1830
- d.whiteSpace = "pre-wrap", f || (d.wordWrap = "break-word"), d.position = "absolute", a || (d.visibility = "hidden"), t.forEach(function(x) {
1831
- f && x === "lineHeight" ? d.lineHeight = h.height : d[x] = h[x];
1832
- }), o ? s.scrollHeight > parseInt(h.height) && (d.overflowY = "scroll") : d.overflow = "hidden", u.textContent = s.value.substring(0, l), f && (u.textContent = u.textContent.replace(/\s/g, " "));
1833
- var m = document.createElement("span");
1834
- m.textContent = s.value.substring(l) || ".", u.appendChild(m);
1835
- var p = {
1836
- top: m.offsetTop + parseInt(h.borderTopWidth),
1837
- left: m.offsetLeft + parseInt(h.borderLeftWidth),
1838
- height: parseInt(h.lineHeight)
1820
+ var d = document.createElement("div");
1821
+ d.id = "input-textarea-caret-position-mirror-div", document.body.appendChild(d);
1822
+ var u = d.style, g = window.getComputedStyle ? window.getComputedStyle(s) : s.currentStyle, f = s.nodeName === "INPUT";
1823
+ u.whiteSpace = "pre-wrap", f || (u.wordWrap = "break-word"), u.position = "absolute", r || (u.visibility = "hidden"), t.forEach(function(w) {
1824
+ f && w === "lineHeight" ? u.lineHeight = g.height : u[w] = g[w];
1825
+ }), i ? s.scrollHeight > parseInt(g.height) && (u.overflowY = "scroll") : u.overflow = "hidden", d.textContent = s.value.substring(0, l), f && (d.textContent = d.textContent.replace(/\s/g, " "));
1826
+ var h = document.createElement("span");
1827
+ h.textContent = s.value.substring(l) || ".", d.appendChild(h);
1828
+ var v = {
1829
+ top: h.offsetTop + parseInt(g.borderTopWidth),
1830
+ left: h.offsetLeft + parseInt(g.borderLeftWidth),
1831
+ height: parseInt(g.lineHeight)
1839
1832
  };
1840
- return a ? m.style.backgroundColor = "#aaa" : document.body.removeChild(u), p;
1833
+ return r ? h.style.backgroundColor = "#aaa" : document.body.removeChild(d), v;
1841
1834
  }
1842
- e.exports = i;
1835
+ e.exports = o;
1843
1836
  })();
1844
- }(Ae)), Ae.exports;
1837
+ }(Te)), Te.exports;
1845
1838
  }
1846
- var Ko = jo();
1847
- const Ke = /* @__PURE__ */ Uo(Ko);
1848
- function ie(e) {
1839
+ var j1 = U1();
1840
+ const Ke = /* @__PURE__ */ Z1(j1);
1841
+ function re(e) {
1849
1842
  const t = window.getSelection();
1850
1843
  let n = t + "";
1851
1844
  if (n = n.trim(), e && e.type === "password" || !n.length && (!(e && e.selectionEnd) || (n = e.value.substring(e.selectionStart, e.selectionEnd), n = n.trim(), !n.length)))
1852
1845
  return !1;
1853
- let i = t.getRangeAt(0).getBoundingClientRect(), { top: s, bottom: l, left: r, width: a, height: c } = i;
1854
- if (!l && !r) {
1846
+ let o = t.getRangeAt(0).getBoundingClientRect(), { top: s, bottom: l, left: a, width: r, height: c } = o;
1847
+ if (!l && !a) {
1855
1848
  if (!e.selectionEnd)
1856
1849
  return !1;
1857
- let u = Ke(e, e.selectionStart), d = Ke(e, e.selectionEnd);
1858
- i = e.getBoundingClientRect(), r = i.left + u.left, a = d.left - u.left, u.top != d.top && (r = i.left, a = i.width), s = i.top + u.top, l = i.top + d.top + 20;
1850
+ let d = Ke(e, e.selectionStart), u = Ke(e, e.selectionEnd);
1851
+ o = e.getBoundingClientRect(), a = o.left + d.left, r = u.left - d.left, d.top != u.top && (a = o.left, r = o.width), s = o.top + d.top, l = o.top + u.top + 20;
1859
1852
  }
1860
1853
  return c === 0 && (c = l - s), {
1861
1854
  text: n,
1862
1855
  // position
1863
- x: r,
1856
+ x: a,
1864
1857
  y: s,
1865
1858
  top: s,
1866
1859
  bottom: l,
1867
- left: r,
1868
- right: r + a,
1869
- width: a,
1860
+ left: a,
1861
+ right: a + r,
1862
+ width: r,
1870
1863
  height: c
1871
1864
  };
1872
1865
  }
1873
- function Xo() {
1866
+ function K1() {
1874
1867
  const e = document.getElementsByTagName("ddict-div");
1875
1868
  for (let t of e)
1876
1869
  if (!t.parentNode.matches('wrapper[dir="rtl"]')) {
@@ -1878,54 +1871,54 @@ function Xo() {
1878
1871
  n.setAttribute("dir", "rtl"), t.parentNode.insertBefore(n, t), n.appendChild(t);
1879
1872
  }
1880
1873
  }
1881
- function Yo() {
1874
+ function G1() {
1882
1875
  const e = document.querySelectorAll('wrapper[dir="rtl"]');
1883
1876
  for (let t of e) {
1884
1877
  const n = t.querySelector("ddict-div");
1885
1878
  n && (t.parentNode.insertBefore(n, t), t.remove());
1886
1879
  }
1887
1880
  }
1888
- const Xe = {
1889
- supportRTL: Xo,
1890
- removeRTL: Yo
1891
- }, Go = {
1881
+ const Ge = {
1882
+ supportRTL: K1,
1883
+ removeRTL: G1
1884
+ }, X1 = {
1892
1885
  __name: "HotKeysListener",
1893
1886
  props: {
1894
1887
  textSelected: String
1895
1888
  },
1896
1889
  emits: ["toggleKey", "close"],
1897
1890
  setup(e, { emit: t }) {
1898
- const n = e, o = t, i = () => {
1891
+ const n = e, i = t, o = () => {
1899
1892
  setTimeout(() => {
1900
- n.textSelected && r("DoubleClick");
1893
+ n.textSelected && a("DoubleClick");
1901
1894
  }, 50);
1902
- }, s = (a) => {
1903
- (a.altKey && a.key.toLowerCase() === "w" || a.key === "∑") && n.textSelected && (r("Alt+W"), a.preventDefault()), a.key === "Escape" && (r("Escape"), a.preventDefault());
1904
- }, l = (a) => {
1905
- a.key === "Shift" && n.textSelected && r("Shift");
1906
- }, r = (a) => {
1907
- switch (a) {
1895
+ }, s = (r) => {
1896
+ (r.altKey && r.key.toLowerCase() === "w" || r.key === "∑") && n.textSelected && (a("Alt+W"), r.preventDefault()), r.key === "Escape" && (a("Escape"), r.preventDefault());
1897
+ }, l = (r) => {
1898
+ r.key === "Shift" && n.textSelected && a("Shift");
1899
+ }, a = (r) => {
1900
+ switch (r) {
1908
1901
  case "DoubleClick":
1909
- o("toggleKey", "DoubleClick");
1902
+ i("toggleKey", "DoubleClick");
1910
1903
  break;
1911
1904
  case "Shift":
1912
- o("toggleKey", "Shift");
1905
+ i("toggleKey", "Shift");
1913
1906
  break;
1914
1907
  case "Alt+W":
1915
- o("toggleKey", "Alt+W");
1908
+ i("toggleKey", "Alt+W");
1916
1909
  break;
1917
1910
  case "Escape":
1918
- o("close");
1911
+ i("close");
1919
1912
  break;
1920
1913
  }
1921
1914
  };
1922
- return Ge(() => {
1923
- window.addEventListener("dblclick", i), window.addEventListener("keydown", s), window.addEventListener("keyup", l);
1924
- }), Re(() => {
1925
- window.removeEventListener("dblclick", i), window.removeEventListener("keydown", s), window.removeEventListener("keyup", l);
1926
- }), (a, c) => (g(), b("div"));
1915
+ return qe(() => {
1916
+ window.addEventListener("dblclick", o), window.addEventListener("keydown", s), window.addEventListener("keyup", l);
1917
+ }), $e(() => {
1918
+ window.removeEventListener("dblclick", o), window.removeEventListener("keydown", s), window.removeEventListener("keyup", l);
1919
+ }), (r, c) => (p(), b("div"));
1927
1920
  }
1928
- }, qo = ["data-theme"], Qo = {
1921
+ }, q1 = ["data-theme"], J1 = {
1929
1922
  __name: "BubbleWrapper",
1930
1923
  props: {
1931
1924
  translation: Object,
@@ -1965,149 +1958,97 @@ const Xe = {
1965
1958
  "themeChange"
1966
1959
  ],
1967
1960
  setup(e, { emit: t }) {
1968
- const n = e, o = t, i = R(null), s = R(null), l = R(!1), r = R(""), a = R(n.theme), c = R(!1), u = R({ x: 0, y: 0 }), d = R(null), h = R(!1), f = _(() => typeof window > "u" || !s.value || !r.value ? null : {
1969
- getBoundingClientRect: () => ie(s.value),
1970
- getClientRects: () => ie(s.value)
1971
- }), { floatingStyles: m, update: p } = qt(f, i, {
1961
+ const n = e, i = t, o = B(null), s = B(null), l = B(!1), a = B(""), r = B(n.theme), c = R(() => typeof window > "u" || !s.value || !a.value ? null : {
1962
+ getBoundingClientRect: () => re(s.value),
1963
+ getClientRects: () => re(s.value)
1964
+ }), { floatingStyles: d, update: u } = Yt(c, o, {
1972
1965
  placement: "bottom",
1973
1966
  middleware: [
1974
1967
  Ut(4),
1975
1968
  Kt(),
1976
1969
  jt(),
1977
- Xt({
1978
- apply({ rects: C, elements: v }) {
1979
- let E = C.reference.width > 250 ? C.reference.width / n.scale : 250;
1980
- E > Ue && (E = Ue), Object.assign(v.floating.style, {
1981
- maxWidth: E + "px",
1970
+ Gt({
1971
+ apply({ rects: m, elements: C }) {
1972
+ let L = m.reference.width > 250 ? m.reference.width / n.scale : 250;
1973
+ L > Ue && (L = Ue), Object.assign(C.floating.style, {
1974
+ maxWidth: L + "px",
1982
1975
  zIndex: 9999
1983
1976
  });
1984
1977
  }
1985
1978
  })
1986
1979
  ],
1987
- whileElementsMounted(C, v, E) {
1988
- return Zt(C, v, E, {
1980
+ whileElementsMounted(m, C, L) {
1981
+ return Zt(m, C, L, {
1989
1982
  ancestorScroll: !0
1990
1983
  });
1991
1984
  }
1992
- }), x = _(() => {
1993
- let C = m.value;
1994
- if (d.value)
1995
- C = {
1996
- ...C,
1997
- position: "fixed",
1998
- left: `${d.value.x}px`,
1999
- top: `${d.value.y}px`,
2000
- transform: "none"
2001
- };
2002
- else if (h.value && s.value && r.value) {
2003
- const E = ie(s.value);
2004
- E && (C = {
2005
- ...C,
2006
- position: "fixed",
2007
- left: `${E.x}px`,
2008
- top: `${E.y + E.height + 4}px`,
2009
- transform: "none"
2010
- });
2011
- }
2012
- if (n.scale === 1) return C;
2013
- const v = C.transform || "";
1985
+ }), g = R(() => {
1986
+ const m = d.value;
1987
+ if (n.scale === 1) return m;
1988
+ const C = m.transform || "";
2014
1989
  return {
2015
- ...C,
2016
- transform: `${v} scale(${n.scale})`
1990
+ ...m,
1991
+ transform: `${C} scale(${n.scale})`
2017
1992
  };
2018
1993
  });
2019
- Ge(() => {
2020
- document.addEventListener("keyup", (C) => {
2021
- if (!ie(C.target)) {
2022
- r.value = "", T();
1994
+ qe(() => {
1995
+ document.addEventListener("keyup", (m) => {
1996
+ if (!re(m.target)) {
1997
+ a.value = "", v();
2023
1998
  return;
2024
1999
  }
2025
- }), document.documentElement.onclick = (C) => {
2026
- const v = ie(C.target);
2027
- if (!v) {
2028
- r.value = "", T();
2000
+ }), document.documentElement.onclick = (m) => {
2001
+ const C = re(m.target);
2002
+ if (!C) {
2003
+ a.value = "", v();
2029
2004
  return;
2030
2005
  }
2031
- w(v, C);
2032
- }, document.documentElement.ontouchend = (C) => {
2033
- const v = ie(C.target);
2034
- if (!v) {
2035
- r.value = "", T();
2006
+ f(C, m);
2007
+ }, document.documentElement.ontouchend = (m) => {
2008
+ const C = re(m.target);
2009
+ if (!C) {
2010
+ a.value = "", v();
2036
2011
  return;
2037
2012
  }
2038
- w(v, C);
2013
+ f(C, m);
2039
2014
  };
2040
- }), Re(() => {
2041
- document.documentElement.onclick = null, document.documentElement.ontouchend = null, document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", B), document.removeEventListener("touchmove", I), document.removeEventListener("touchend", D);
2015
+ }), $e(() => {
2016
+ document.documentElement.onclick = null, document.documentElement.ontouchend = null;
2042
2017
  });
2043
- const w = (C, v) => {
2044
- n.status !== ue.LOGO && o("close"), l.value && !h.value && (h.value = !0), s.value = v.target, r.value = C.text, l.value = !0, De(p);
2045
- }, L = (C) => {
2046
- C.stopPropagation();
2047
- }, T = async () => {
2048
- l.value = !1, d.value = null, h.value = !1, o("close");
2049
- }, $ = (C) => {
2050
- a.value = C, o("themeChange", C);
2051
- }, A = (C) => {
2052
- if (C.target.closest('button, input, select, textarea, [role="button"]')) return;
2053
- c.value = !0;
2054
- const v = i.value.getBoundingClientRect();
2055
- u.value = {
2056
- x: C.clientX - v.left,
2057
- y: C.clientY - v.top
2058
- }, document.addEventListener("mousemove", S), document.addEventListener("mouseup", B), C.preventDefault();
2059
- }, M = (C) => {
2060
- if (C.target.closest('button, input, select, textarea, [role="button"]')) return;
2061
- c.value = !0;
2062
- const v = C.touches[0], E = i.value.getBoundingClientRect();
2063
- u.value = {
2064
- x: v.clientX - E.left,
2065
- y: v.clientY - E.top
2066
- }, document.addEventListener("touchmove", I), document.addEventListener("touchend", D), C.preventDefault();
2067
- }, S = (C) => {
2068
- c.value && (d.value = {
2069
- x: C.clientX - u.value.x,
2070
- y: C.clientY - u.value.y
2071
- });
2072
- }, I = (C) => {
2073
- if (!c.value) return;
2074
- const v = C.touches[0];
2075
- d.value = {
2076
- x: v.clientX - u.value.x,
2077
- y: v.clientY - u.value.y
2078
- };
2079
- }, B = () => {
2080
- c.value = !1, document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", B);
2081
- }, D = () => {
2082
- c.value = !1, document.removeEventListener("touchmove", I), document.removeEventListener("touchend", D);
2083
- }, q = () => {
2084
- var v;
2085
- const C = (v = n == null ? void 0 : n.translation) == null ? void 0 : v.target;
2086
- Vo.includes(C) ? Xe.supportRTL() : Xe.removeRTL();
2018
+ const f = (m, C) => {
2019
+ n.status !== ae.LOGO && i("close"), s.value = C.target, a.value = m.text, l.value = !0, _e(u);
2020
+ }, h = (m) => {
2021
+ m.stopPropagation();
2022
+ }, v = async () => {
2023
+ l.value = !1, i("close");
2024
+ }, w = (m) => {
2025
+ r.value = m, i("themeChange", m);
2026
+ }, x = () => {
2027
+ var C;
2028
+ const m = (C = n == null ? void 0 : n.translation) == null ? void 0 : C.target;
2029
+ D1.includes(m) ? Ge.supportRTL() : Ge.removeRTL();
2087
2030
  };
2088
- return se(
2031
+ return te(
2089
2032
  () => n.status,
2090
2033
  () => {
2091
- l.value && De(p), q();
2034
+ l.value && _e(u), x();
2092
2035
  }
2093
- ), se(
2036
+ ), te(
2094
2037
  () => n.theme,
2095
- (C) => {
2096
- a.value = C;
2038
+ (m) => {
2039
+ r.value = m;
2097
2040
  }
2098
- ), (C, v) => (g(), b(me, null, [
2099
- l.value ? (g(), b("div", {
2041
+ ), (m, C) => (p(), b(ue, null, [
2042
+ l.value ? (p(), b("div", {
2100
2043
  key: 0,
2101
2044
  ref_key: "floatingEl",
2102
- ref: i,
2045
+ ref: o,
2103
2046
  class: "rounded-lg",
2104
- style: Ye({ ...x.value, cursor: c.value ? "grabbing" : "grab" }),
2105
- "data-theme": a.value,
2106
- onClick: L,
2107
- onMousedown: A,
2108
- onTouchstart: M
2047
+ style: Xe(g.value),
2048
+ "data-theme": r.value,
2049
+ onClick: h
2109
2050
  }, [
2110
- K(Zo, {
2051
+ Z(z1, {
2111
2052
  translation: n.translation,
2112
2053
  explanation: n.explanation,
2113
2054
  tts: n.tts,
@@ -2117,26 +2058,26 @@ const Xe = {
2117
2058
  isAITranslate: n.isAITranslate,
2118
2059
  isAIExplain: n.isAIExplain,
2119
2060
  aiExplainMinLength: n.aiExplainMinLength,
2120
- theme: a.value,
2061
+ theme: r.value,
2121
2062
  showThemeSelector: n.showThemeSelector,
2122
- onLogo: v[0] || (v[0] = (E) => o("logo")),
2123
- onFavorite: v[1] || (v[1] = (E) => o("favorite")),
2124
- onSettings: v[2] || (v[2] = (E) => o("settings")),
2125
- onClose: T,
2126
- onLoadTTS: v[3] || (v[3] = (E) => o("loadTTS")),
2127
- onAiTranslate: v[4] || (v[4] = (E) => o("aiTranslate")),
2128
- onAiExplain: v[5] || (v[5] = (E) => o("aiExplain")),
2129
- onThemeChange: $
2063
+ onLogo: C[0] || (C[0] = (L) => i("logo")),
2064
+ onFavorite: C[1] || (C[1] = (L) => i("favorite")),
2065
+ onSettings: C[2] || (C[2] = (L) => i("settings")),
2066
+ onClose: v,
2067
+ onLoadTTS: C[3] || (C[3] = (L) => i("loadTTS")),
2068
+ onAiTranslate: C[4] || (C[4] = (L) => i("aiTranslate")),
2069
+ onAiExplain: C[5] || (C[5] = (L) => i("aiExplain")),
2070
+ onThemeChange: w
2130
2071
  }, null, 8, ["translation", "explanation", "tts", "status", "isFavorite", "isFavoriteFeatureEnabled", "isAITranslate", "isAIExplain", "aiExplainMinLength", "theme", "showThemeSelector"])
2131
- ], 44, qo)) : N("", !0),
2132
- K(Go, {
2133
- textSelected: r.value,
2134
- onToggleKey: v[6] || (v[6] = (E) => o("toggleKey", E)),
2135
- onClose: T
2072
+ ], 12, q1)) : M("", !0),
2073
+ Z(X1, {
2074
+ textSelected: a.value,
2075
+ onToggleKey: C[6] || (C[6] = (L) => i("toggleKey", L)),
2076
+ onClose: v
2136
2077
  }, null, 8, ["textSelected"])
2137
2078
  ], 64));
2138
2079
  }
2139
2080
  };
2140
2081
  export {
2141
- Qo as default
2082
+ J1 as default
2142
2083
  };