@ddict/bubble 1.2.10 → 1.3.0
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.css +1 -1
- package/dist/bubble.es.js +1224 -1002
- package/dist/bubble.umd.js +3 -3
- package/package.json +3 -3
- package/dist/assets/icons/polygon.svg +0 -3
- package/dist/assets/icons/spinning.svg +0 -1
- package/dist/assets/icons/volume-stop.svg +0 -3
- package/dist/assets/icons/volume.svg +0 -3
- package/dist/assets/spinning.gif +0 -0
package/dist/bubble.es.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
const
|
|
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) => ({
|
|
3
3
|
x: e,
|
|
4
4
|
y: e
|
|
5
|
-
}),
|
|
5
|
+
}), mt = {
|
|
6
6
|
left: "right",
|
|
7
7
|
right: "left",
|
|
8
8
|
bottom: "top",
|
|
9
9
|
top: "bottom"
|
|
10
|
-
},
|
|
10
|
+
}, ht = {
|
|
11
11
|
start: "end",
|
|
12
12
|
end: "start"
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
return
|
|
14
|
+
function _e(e, t, n) {
|
|
15
|
+
return F(e, j(t, n));
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function he(e, t) {
|
|
18
18
|
return typeof e == "function" ? e(t) : e;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Y(e) {
|
|
21
21
|
return e.split("-")[0];
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function ge(e) {
|
|
24
24
|
return e.split("-")[1];
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function qe(e) {
|
|
27
27
|
return e === "x" ? "y" : "x";
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Je(e) {
|
|
30
30
|
return e === "y" ? "height" : "width";
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
return ["top", "bottom"].includes(
|
|
32
|
+
function J(e) {
|
|
33
|
+
return ["top", "bottom"].includes(Y(e)) ? "y" : "x";
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
return
|
|
35
|
+
function Qe(e) {
|
|
36
|
+
return qe(J(e));
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function gt(e, t, n) {
|
|
39
39
|
n === void 0 && (n = !1);
|
|
40
|
-
const
|
|
41
|
-
let l =
|
|
42
|
-
return t.reference[s] > t.floating[s] && (l =
|
|
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)];
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
const t =
|
|
46
|
-
return [
|
|
44
|
+
function Ct(e) {
|
|
45
|
+
const t = we(e);
|
|
46
|
+
return [$e(e), t, $e(t)];
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return e.replace(/start|end/g, (t) =>
|
|
48
|
+
function $e(e) {
|
|
49
|
+
return e.replace(/start|end/g, (t) => ht[t]);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
const
|
|
51
|
+
function pt(e, t, n) {
|
|
52
|
+
const o = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], l = ["bottom", "top"];
|
|
53
53
|
switch (e) {
|
|
54
54
|
case "top":
|
|
55
55
|
case "bottom":
|
|
56
|
-
return n ? t ?
|
|
56
|
+
return n ? t ? i : o : t ? o : i;
|
|
57
57
|
case "left":
|
|
58
58
|
case "right":
|
|
59
59
|
return t ? s : l;
|
|
@@ -61,15 +61,15 @@ function m0(e, t, n) {
|
|
|
61
61
|
return [];
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
const
|
|
66
|
-
let s =
|
|
67
|
-
return
|
|
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;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
69
|
+
function we(e) {
|
|
70
|
+
return e.replace(/left|right|bottom|top/g, (t) => mt[t]);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function bt(e) {
|
|
73
73
|
return {
|
|
74
74
|
top: 0,
|
|
75
75
|
right: 0,
|
|
@@ -78,111 +78,111 @@ function p0(e) {
|
|
|
78
78
|
...e
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return typeof e != "number" ?
|
|
81
|
+
function wt(e) {
|
|
82
|
+
return typeof e != "number" ? bt(e) : {
|
|
83
83
|
top: e,
|
|
84
84
|
right: e,
|
|
85
85
|
bottom: e,
|
|
86
86
|
left: e
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function xe(e) {
|
|
90
90
|
const {
|
|
91
91
|
x: t,
|
|
92
92
|
y: n,
|
|
93
|
-
width:
|
|
94
|
-
height:
|
|
93
|
+
width: o,
|
|
94
|
+
height: i
|
|
95
95
|
} = e;
|
|
96
96
|
return {
|
|
97
|
-
width:
|
|
98
|
-
height:
|
|
97
|
+
width: o,
|
|
98
|
+
height: i,
|
|
99
99
|
top: n,
|
|
100
100
|
left: t,
|
|
101
|
-
right: t +
|
|
102
|
-
bottom: n +
|
|
101
|
+
right: t + o,
|
|
102
|
+
bottom: n + i,
|
|
103
103
|
x: t,
|
|
104
104
|
y: n
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Ve(e, t, n) {
|
|
108
108
|
let {
|
|
109
|
-
reference:
|
|
110
|
-
floating:
|
|
109
|
+
reference: o,
|
|
110
|
+
floating: i
|
|
111
111
|
} = e;
|
|
112
|
-
const s =
|
|
113
|
-
let
|
|
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;
|
|
113
|
+
let f;
|
|
114
114
|
switch (a) {
|
|
115
115
|
case "top":
|
|
116
|
-
|
|
117
|
-
x:
|
|
118
|
-
y:
|
|
116
|
+
f = {
|
|
117
|
+
x: u,
|
|
118
|
+
y: o.y - i.height
|
|
119
119
|
};
|
|
120
120
|
break;
|
|
121
121
|
case "bottom":
|
|
122
|
-
|
|
123
|
-
x:
|
|
124
|
-
y:
|
|
122
|
+
f = {
|
|
123
|
+
x: u,
|
|
124
|
+
y: o.y + o.height
|
|
125
125
|
};
|
|
126
126
|
break;
|
|
127
127
|
case "right":
|
|
128
|
-
|
|
129
|
-
x:
|
|
130
|
-
y:
|
|
128
|
+
f = {
|
|
129
|
+
x: o.x + o.width,
|
|
130
|
+
y: d
|
|
131
131
|
};
|
|
132
132
|
break;
|
|
133
133
|
case "left":
|
|
134
|
-
|
|
135
|
-
x:
|
|
136
|
-
y:
|
|
134
|
+
f = {
|
|
135
|
+
x: o.x - i.width,
|
|
136
|
+
y: d
|
|
137
137
|
};
|
|
138
138
|
break;
|
|
139
139
|
default:
|
|
140
|
-
|
|
141
|
-
x:
|
|
142
|
-
y:
|
|
140
|
+
f = {
|
|
141
|
+
x: o.x,
|
|
142
|
+
y: o.y
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
switch (
|
|
145
|
+
switch (ge(t)) {
|
|
146
146
|
case "start":
|
|
147
|
-
|
|
147
|
+
f[l] -= h * (n && c ? -1 : 1);
|
|
148
148
|
break;
|
|
149
149
|
case "end":
|
|
150
|
-
|
|
150
|
+
f[l] += h * (n && c ? -1 : 1);
|
|
151
151
|
break;
|
|
152
152
|
}
|
|
153
|
-
return
|
|
153
|
+
return f;
|
|
154
154
|
}
|
|
155
|
-
const
|
|
155
|
+
const xt = async (e, t, n) => {
|
|
156
156
|
const {
|
|
157
|
-
placement:
|
|
158
|
-
strategy:
|
|
157
|
+
placement: o = "bottom",
|
|
158
|
+
strategy: i = "absolute",
|
|
159
159
|
middleware: s = [],
|
|
160
160
|
platform: l
|
|
161
161
|
} = n, r = s.filter(Boolean), a = 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:
|
|
165
|
+
strategy: i
|
|
166
166
|
}), {
|
|
167
|
-
x:
|
|
168
|
-
y:
|
|
169
|
-
} =
|
|
170
|
-
for (let
|
|
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++) {
|
|
171
171
|
const {
|
|
172
|
-
name:
|
|
173
|
-
fn:
|
|
174
|
-
} = r[
|
|
175
|
-
x:
|
|
176
|
-
y:
|
|
177
|
-
data:
|
|
178
|
-
reset:
|
|
179
|
-
} = await
|
|
180
|
-
x:
|
|
181
|
-
y:
|
|
182
|
-
initialPlacement:
|
|
183
|
-
placement:
|
|
184
|
-
strategy:
|
|
185
|
-
middlewareData:
|
|
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,
|
|
185
|
+
middlewareData: f,
|
|
186
186
|
rects: c,
|
|
187
187
|
platform: l,
|
|
188
188
|
elements: {
|
|
@@ -190,184 +190,147 @@ const v0 = async (e, t, n) => {
|
|
|
190
190
|
floating: t
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
|
-
|
|
194
|
-
...
|
|
195
|
-
[
|
|
196
|
-
...
|
|
197
|
-
|
|
193
|
+
u = L ?? u, d = T ?? d, f = {
|
|
194
|
+
...f,
|
|
195
|
+
[x]: {
|
|
196
|
+
...f[x],
|
|
197
|
+
...$
|
|
198
198
|
}
|
|
199
|
-
},
|
|
199
|
+
}, A && m <= 50 && (m++, typeof A == "object" && (A.placement && (h = A.placement), A.rects && (c = A.rects === !0 ? await l.getElementRects({
|
|
200
200
|
reference: e,
|
|
201
201
|
floating: t,
|
|
202
|
-
strategy:
|
|
203
|
-
}) :
|
|
204
|
-
x:
|
|
205
|
-
y:
|
|
206
|
-
} =
|
|
202
|
+
strategy: i
|
|
203
|
+
}) : A.rects), {
|
|
204
|
+
x: u,
|
|
205
|
+
y: d
|
|
206
|
+
} = Ve(c, h, a)), p = -1);
|
|
207
207
|
}
|
|
208
208
|
return {
|
|
209
|
-
x:
|
|
210
|
-
y:
|
|
211
|
-
placement:
|
|
212
|
-
strategy:
|
|
213
|
-
middlewareData:
|
|
209
|
+
x: u,
|
|
210
|
+
y: d,
|
|
211
|
+
placement: h,
|
|
212
|
+
strategy: i,
|
|
213
|
+
middlewareData: f
|
|
214
214
|
};
|
|
215
215
|
};
|
|
216
|
-
async function
|
|
216
|
+
async function Me(e, t) {
|
|
217
217
|
var n;
|
|
218
218
|
t === void 0 && (t = {});
|
|
219
219
|
const {
|
|
220
|
-
x:
|
|
221
|
-
y:
|
|
220
|
+
x: o,
|
|
221
|
+
y: i,
|
|
222
222
|
platform: s,
|
|
223
223
|
rects: l,
|
|
224
224
|
elements: r,
|
|
225
225
|
strategy: a
|
|
226
226
|
} = e, {
|
|
227
227
|
boundary: c = "clippingAncestors",
|
|
228
|
-
rootBoundary:
|
|
229
|
-
elementContext:
|
|
230
|
-
altBoundary:
|
|
231
|
-
padding:
|
|
232
|
-
} =
|
|
233
|
-
element: (n = await (s.isElement == null ? void 0 : s.isElement(
|
|
228
|
+
rootBoundary: u = "viewport",
|
|
229
|
+
elementContext: d = "floating",
|
|
230
|
+
altBoundary: h = !1,
|
|
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)),
|
|
234
234
|
boundary: c,
|
|
235
|
-
rootBoundary:
|
|
235
|
+
rootBoundary: u,
|
|
236
236
|
strategy: a
|
|
237
|
-
})),
|
|
238
|
-
x:
|
|
239
|
-
y:
|
|
237
|
+
})), L = d === "floating" ? {
|
|
238
|
+
x: o,
|
|
239
|
+
y: i,
|
|
240
240
|
width: l.floating.width,
|
|
241
241
|
height: l.floating.height
|
|
242
|
-
} : l.reference,
|
|
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)) || {
|
|
243
243
|
x: 1,
|
|
244
244
|
y: 1
|
|
245
245
|
} : {
|
|
246
246
|
x: 1,
|
|
247
247
|
y: 1
|
|
248
|
-
},
|
|
248
|
+
}, A = xe(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
249
249
|
elements: r,
|
|
250
|
-
rect:
|
|
251
|
-
offsetParent:
|
|
250
|
+
rect: L,
|
|
251
|
+
offsetParent: T,
|
|
252
252
|
strategy: a
|
|
253
|
-
}) :
|
|
253
|
+
}) : L);
|
|
254
254
|
return {
|
|
255
|
-
top: (
|
|
256
|
-
bottom: (
|
|
257
|
-
left: (
|
|
258
|
-
right: (
|
|
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
|
|
259
259
|
};
|
|
260
260
|
}
|
|
261
|
-
const
|
|
262
|
-
name: "arrow",
|
|
263
|
-
options: e,
|
|
264
|
-
async fn(t) {
|
|
265
|
-
const {
|
|
266
|
-
x: n,
|
|
267
|
-
y: i,
|
|
268
|
-
placement: o,
|
|
269
|
-
rects: s,
|
|
270
|
-
platform: l,
|
|
271
|
-
elements: r,
|
|
272
|
-
middlewareData: a
|
|
273
|
-
} = t, {
|
|
274
|
-
element: c,
|
|
275
|
-
padding: d = 0
|
|
276
|
-
} = c2(e, t) || {};
|
|
277
|
-
if (c == null)
|
|
278
|
-
return {};
|
|
279
|
-
const f = z2(d), C = {
|
|
280
|
-
x: n,
|
|
281
|
-
y: i
|
|
282
|
-
}, u = D2(o), A = k2(u), m = await l.getDimensions(c), w = u === "y", p = w ? "top" : "left", v = w ? "bottom" : "right", b = w ? "clientHeight" : "clientWidth", h = s.reference[A] + s.reference[u] - C[u] - s.floating[A], g = C[u] - s.reference[u], y = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(c));
|
|
283
|
-
let B = y ? y[b] : 0;
|
|
284
|
-
(!B || !await (l.isElement == null ? void 0 : l.isElement(y))) && (B = r.floating[b] || s.floating[A]);
|
|
285
|
-
const D = h / 2 - g / 2, F = B / 2 - m[A] / 2 - 1, R = Y(f[p], F), Z = Y(f[v], F), X = R, u2 = B - m[A] - Z, L = B / 2 - m[A] / 2 + D, i2 = L2(X, L, u2), W = !a.arrow && d2(o) != null && L !== i2 && s.reference[A] / 2 - (L < X ? R : Z) - m[A] / 2 < 0, J = W ? L < X ? L - X : L - u2 : 0;
|
|
286
|
-
return {
|
|
287
|
-
[u]: C[u] + J,
|
|
288
|
-
data: {
|
|
289
|
-
[u]: i2,
|
|
290
|
-
centerOffset: L - i2 - J,
|
|
291
|
-
...W && {
|
|
292
|
-
alignmentOffset: J
|
|
293
|
-
}
|
|
294
|
-
},
|
|
295
|
-
reset: W
|
|
296
|
-
};
|
|
297
|
-
}
|
|
298
|
-
}), b0 = function(e) {
|
|
261
|
+
const yt = function(e) {
|
|
299
262
|
return e === void 0 && (e = {}), {
|
|
300
263
|
name: "flip",
|
|
301
264
|
options: e,
|
|
302
265
|
async fn(t) {
|
|
303
|
-
var n,
|
|
266
|
+
var n, o;
|
|
304
267
|
const {
|
|
305
|
-
placement:
|
|
268
|
+
placement: i,
|
|
306
269
|
middlewareData: s,
|
|
307
270
|
rects: l,
|
|
308
271
|
initialPlacement: r,
|
|
309
272
|
platform: a,
|
|
310
273
|
elements: c
|
|
311
274
|
} = t, {
|
|
312
|
-
mainAxis:
|
|
313
|
-
crossAxis:
|
|
314
|
-
fallbackPlacements:
|
|
315
|
-
fallbackStrategy:
|
|
316
|
-
fallbackAxisSideDirection:
|
|
317
|
-
flipAlignment:
|
|
318
|
-
...
|
|
319
|
-
} =
|
|
275
|
+
mainAxis: u = !0,
|
|
276
|
+
crossAxis: d = !0,
|
|
277
|
+
fallbackPlacements: h,
|
|
278
|
+
fallbackStrategy: f = "bestFit",
|
|
279
|
+
fallbackAxisSideDirection: m = "none",
|
|
280
|
+
flipAlignment: p = !0,
|
|
281
|
+
...x
|
|
282
|
+
} = he(e, t);
|
|
320
283
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
321
284
|
return {};
|
|
322
|
-
const
|
|
323
|
-
!
|
|
324
|
-
const
|
|
325
|
-
let
|
|
326
|
-
if (
|
|
327
|
-
const
|
|
328
|
-
|
|
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]]);
|
|
329
292
|
}
|
|
330
|
-
if (
|
|
331
|
-
placement:
|
|
332
|
-
overflows:
|
|
333
|
-
}], !
|
|
334
|
-
var
|
|
335
|
-
const
|
|
336
|
-
if (
|
|
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)
|
|
337
300
|
return {
|
|
338
301
|
data: {
|
|
339
|
-
index:
|
|
340
|
-
overflows:
|
|
302
|
+
index: E,
|
|
303
|
+
overflows: D
|
|
341
304
|
},
|
|
342
305
|
reset: {
|
|
343
|
-
placement:
|
|
306
|
+
placement: Se
|
|
344
307
|
}
|
|
345
308
|
};
|
|
346
|
-
let
|
|
347
|
-
if (!
|
|
348
|
-
switch (
|
|
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)
|
|
311
|
+
switch (f) {
|
|
349
312
|
case "bestFit": {
|
|
350
|
-
var
|
|
351
|
-
const
|
|
352
|
-
if (
|
|
353
|
-
const
|
|
354
|
-
return
|
|
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
|
|
355
318
|
// reading directions favoring greater width.
|
|
356
|
-
|
|
319
|
+
U === "y";
|
|
357
320
|
}
|
|
358
321
|
return !0;
|
|
359
|
-
}).map((
|
|
360
|
-
|
|
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);
|
|
361
324
|
break;
|
|
362
325
|
}
|
|
363
326
|
case "initialPlacement":
|
|
364
|
-
|
|
327
|
+
re = r;
|
|
365
328
|
break;
|
|
366
329
|
}
|
|
367
|
-
if (
|
|
330
|
+
if (i !== re)
|
|
368
331
|
return {
|
|
369
332
|
reset: {
|
|
370
|
-
placement:
|
|
333
|
+
placement: re
|
|
371
334
|
}
|
|
372
335
|
};
|
|
373
336
|
}
|
|
@@ -375,48 +338,48 @@ const x0 = (e) => ({
|
|
|
375
338
|
}
|
|
376
339
|
};
|
|
377
340
|
};
|
|
378
|
-
async function
|
|
341
|
+
async function Lt(e, t) {
|
|
379
342
|
const {
|
|
380
343
|
placement: n,
|
|
381
|
-
platform:
|
|
382
|
-
elements:
|
|
383
|
-
} = e, s = await (
|
|
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);
|
|
384
347
|
let {
|
|
385
|
-
mainAxis:
|
|
386
|
-
crossAxis:
|
|
387
|
-
alignmentAxis:
|
|
388
|
-
} = typeof
|
|
389
|
-
mainAxis:
|
|
348
|
+
mainAxis: h,
|
|
349
|
+
crossAxis: f,
|
|
350
|
+
alignmentAxis: m
|
|
351
|
+
} = typeof d == "number" ? {
|
|
352
|
+
mainAxis: d,
|
|
390
353
|
crossAxis: 0,
|
|
391
354
|
alignmentAxis: null
|
|
392
355
|
} : {
|
|
393
356
|
mainAxis: 0,
|
|
394
357
|
crossAxis: 0,
|
|
395
358
|
alignmentAxis: null,
|
|
396
|
-
...
|
|
359
|
+
...d
|
|
397
360
|
};
|
|
398
|
-
return r && typeof
|
|
399
|
-
x:
|
|
400
|
-
y:
|
|
361
|
+
return r && typeof m == "number" && (f = r === "end" ? m * -1 : m), a ? {
|
|
362
|
+
x: f * u,
|
|
363
|
+
y: h * c
|
|
401
364
|
} : {
|
|
402
|
-
x:
|
|
403
|
-
y:
|
|
365
|
+
x: h * c,
|
|
366
|
+
y: f * u
|
|
404
367
|
};
|
|
405
368
|
}
|
|
406
|
-
const
|
|
369
|
+
const Tt = function(e) {
|
|
407
370
|
return e === void 0 && (e = 0), {
|
|
408
371
|
name: "offset",
|
|
409
372
|
options: e,
|
|
410
373
|
async fn(t) {
|
|
411
|
-
var n,
|
|
374
|
+
var n, o;
|
|
412
375
|
const {
|
|
413
|
-
x:
|
|
376
|
+
x: i,
|
|
414
377
|
y: s,
|
|
415
378
|
placement: l,
|
|
416
379
|
middlewareData: r
|
|
417
|
-
} = t, a = await
|
|
418
|
-
return l === ((n = r.offset) == null ? void 0 : n.placement) && (
|
|
419
|
-
x:
|
|
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,
|
|
420
383
|
y: s + a.y,
|
|
421
384
|
data: {
|
|
422
385
|
...a,
|
|
@@ -425,91 +388,91 @@ const I0 = function(e) {
|
|
|
425
388
|
};
|
|
426
389
|
}
|
|
427
390
|
};
|
|
428
|
-
},
|
|
391
|
+
}, St = function(e) {
|
|
429
392
|
return e === void 0 && (e = {}), {
|
|
430
393
|
name: "shift",
|
|
431
394
|
options: e,
|
|
432
395
|
async fn(t) {
|
|
433
396
|
const {
|
|
434
397
|
x: n,
|
|
435
|
-
y:
|
|
436
|
-
placement:
|
|
398
|
+
y: o,
|
|
399
|
+
placement: i
|
|
437
400
|
} = t, {
|
|
438
401
|
mainAxis: s = !0,
|
|
439
402
|
crossAxis: l = !1,
|
|
440
403
|
limiter: r = {
|
|
441
|
-
fn: (
|
|
404
|
+
fn: (x) => {
|
|
442
405
|
let {
|
|
443
|
-
x:
|
|
444
|
-
y:
|
|
445
|
-
} =
|
|
406
|
+
x: w,
|
|
407
|
+
y: L
|
|
408
|
+
} = x;
|
|
446
409
|
return {
|
|
447
|
-
x:
|
|
448
|
-
y:
|
|
410
|
+
x: w,
|
|
411
|
+
y: L
|
|
449
412
|
};
|
|
450
413
|
}
|
|
451
414
|
},
|
|
452
415
|
...a
|
|
453
|
-
} =
|
|
416
|
+
} = he(e, t), c = {
|
|
454
417
|
x: n,
|
|
455
|
-
y:
|
|
456
|
-
},
|
|
457
|
-
let
|
|
418
|
+
y: o
|
|
419
|
+
}, u = await Me(t, a), d = J(Y(i)), h = qe(d);
|
|
420
|
+
let f = c[h], m = c[d];
|
|
458
421
|
if (s) {
|
|
459
|
-
const
|
|
460
|
-
|
|
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);
|
|
461
424
|
}
|
|
462
425
|
if (l) {
|
|
463
|
-
const
|
|
464
|
-
|
|
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);
|
|
465
428
|
}
|
|
466
|
-
const
|
|
429
|
+
const p = r.fn({
|
|
467
430
|
...t,
|
|
468
|
-
[
|
|
469
|
-
[
|
|
431
|
+
[h]: f,
|
|
432
|
+
[d]: m
|
|
470
433
|
});
|
|
471
434
|
return {
|
|
472
|
-
...
|
|
435
|
+
...p,
|
|
473
436
|
data: {
|
|
474
|
-
x:
|
|
475
|
-
y:
|
|
437
|
+
x: p.x - n,
|
|
438
|
+
y: p.y - o
|
|
476
439
|
}
|
|
477
440
|
};
|
|
478
441
|
}
|
|
479
442
|
};
|
|
480
|
-
},
|
|
443
|
+
}, Et = function(e) {
|
|
481
444
|
return e === void 0 && (e = {}), {
|
|
482
445
|
name: "size",
|
|
483
446
|
options: e,
|
|
484
447
|
async fn(t) {
|
|
485
448
|
const {
|
|
486
449
|
placement: n,
|
|
487
|
-
rects:
|
|
488
|
-
platform:
|
|
450
|
+
rects: o,
|
|
451
|
+
platform: i,
|
|
489
452
|
elements: s
|
|
490
453
|
} = t, {
|
|
491
454
|
apply: l = () => {
|
|
492
455
|
},
|
|
493
456
|
...r
|
|
494
|
-
} =
|
|
495
|
-
width:
|
|
496
|
-
height:
|
|
497
|
-
} =
|
|
498
|
-
let
|
|
499
|
-
c === "top" || c === "bottom" ? (
|
|
500
|
-
const
|
|
501
|
-
let
|
|
502
|
-
if (
|
|
503
|
-
const
|
|
504
|
-
|
|
457
|
+
} = he(e, t), a = await Me(t, r), c = Y(n), u = ge(n), d = J(n) === "y", {
|
|
458
|
+
width: h,
|
|
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));
|
|
505
468
|
}
|
|
506
469
|
await l({
|
|
507
470
|
...t,
|
|
508
|
-
availableWidth:
|
|
509
|
-
availableHeight:
|
|
471
|
+
availableWidth: M,
|
|
472
|
+
availableHeight: A
|
|
510
473
|
});
|
|
511
|
-
const
|
|
512
|
-
return
|
|
474
|
+
const S = await i.getDimensions(s.floating);
|
|
475
|
+
return h !== S.width || f !== S.height ? {
|
|
513
476
|
reset: {
|
|
514
477
|
rects: !0
|
|
515
478
|
}
|
|
@@ -517,42 +480,42 @@ const I0 = function(e) {
|
|
|
517
480
|
}
|
|
518
481
|
};
|
|
519
482
|
};
|
|
520
|
-
function
|
|
521
|
-
return
|
|
483
|
+
function ee(e) {
|
|
484
|
+
return Be(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
522
485
|
}
|
|
523
|
-
function
|
|
486
|
+
function O(e) {
|
|
524
487
|
var t;
|
|
525
488
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
526
489
|
}
|
|
527
|
-
function
|
|
490
|
+
function z(e) {
|
|
528
491
|
var t;
|
|
529
|
-
return (t = (
|
|
492
|
+
return (t = (Be(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
530
493
|
}
|
|
531
|
-
function
|
|
532
|
-
return e instanceof Node || e instanceof
|
|
494
|
+
function Be(e) {
|
|
495
|
+
return e instanceof Node || e instanceof O(e).Node;
|
|
533
496
|
}
|
|
534
|
-
function
|
|
535
|
-
return e instanceof Element || e instanceof
|
|
497
|
+
function H(e) {
|
|
498
|
+
return e instanceof Element || e instanceof O(e).Element;
|
|
536
499
|
}
|
|
537
|
-
function
|
|
538
|
-
return e instanceof HTMLElement || e instanceof
|
|
500
|
+
function W(e) {
|
|
501
|
+
return e instanceof HTMLElement || e instanceof O(e).HTMLElement;
|
|
539
502
|
}
|
|
540
|
-
function
|
|
541
|
-
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
503
|
+
function Ne(e) {
|
|
504
|
+
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof O(e).ShadowRoot;
|
|
542
505
|
}
|
|
543
|
-
function
|
|
506
|
+
function Ce(e) {
|
|
544
507
|
const {
|
|
545
508
|
overflow: t,
|
|
546
509
|
overflowX: n,
|
|
547
|
-
overflowY:
|
|
548
|
-
display:
|
|
549
|
-
} =
|
|
550
|
-
return /auto|scroll|overlay|hidden|clip/.test(t +
|
|
510
|
+
overflowY: o,
|
|
511
|
+
display: i
|
|
512
|
+
} = P(e);
|
|
513
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(i);
|
|
551
514
|
}
|
|
552
|
-
function
|
|
553
|
-
return ["table", "td", "th"].includes(
|
|
515
|
+
function At(e) {
|
|
516
|
+
return ["table", "td", "th"].includes(ee(e));
|
|
554
517
|
}
|
|
555
|
-
function
|
|
518
|
+
function Le(e) {
|
|
556
519
|
return [":popover-open", ":modal"].some((t) => {
|
|
557
520
|
try {
|
|
558
521
|
return e.matches(t);
|
|
@@ -561,32 +524,32 @@ function B2(e) {
|
|
|
561
524
|
}
|
|
562
525
|
});
|
|
563
526
|
}
|
|
564
|
-
function
|
|
565
|
-
const t =
|
|
566
|
-
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((
|
|
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));
|
|
567
530
|
}
|
|
568
|
-
function
|
|
569
|
-
let t =
|
|
570
|
-
for (;
|
|
571
|
-
if (
|
|
531
|
+
function $t(e) {
|
|
532
|
+
let t = G(e);
|
|
533
|
+
for (; W(t) && !ae(t); ) {
|
|
534
|
+
if (Le(t))
|
|
572
535
|
return null;
|
|
573
|
-
if (
|
|
536
|
+
if (Ie(t))
|
|
574
537
|
return t;
|
|
575
|
-
t =
|
|
538
|
+
t = G(t);
|
|
576
539
|
}
|
|
577
540
|
return null;
|
|
578
541
|
}
|
|
579
|
-
function
|
|
542
|
+
function Fe() {
|
|
580
543
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
581
544
|
}
|
|
582
|
-
function
|
|
583
|
-
return ["html", "body", "#document"].includes(
|
|
545
|
+
function ae(e) {
|
|
546
|
+
return ["html", "body", "#document"].includes(ee(e));
|
|
584
547
|
}
|
|
585
|
-
function
|
|
586
|
-
return
|
|
548
|
+
function P(e) {
|
|
549
|
+
return O(e).getComputedStyle(e);
|
|
587
550
|
}
|
|
588
|
-
function
|
|
589
|
-
return
|
|
551
|
+
function Te(e) {
|
|
552
|
+
return H(e) ? {
|
|
590
553
|
scrollLeft: e.scrollLeft,
|
|
591
554
|
scrollTop: e.scrollTop
|
|
592
555
|
} : {
|
|
@@ -594,139 +557,139 @@ function I2(e) {
|
|
|
594
557
|
scrollTop: e.scrollY
|
|
595
558
|
};
|
|
596
559
|
}
|
|
597
|
-
function
|
|
598
|
-
if (
|
|
560
|
+
function G(e) {
|
|
561
|
+
if (ee(e) === "html")
|
|
599
562
|
return e;
|
|
600
563
|
const t = (
|
|
601
564
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
602
565
|
e.assignedSlot || // DOM Element detected.
|
|
603
566
|
e.parentNode || // ShadowRoot detected.
|
|
604
|
-
|
|
605
|
-
|
|
567
|
+
Ne(e) && e.host || // Fallback.
|
|
568
|
+
z(e)
|
|
606
569
|
);
|
|
607
|
-
return
|
|
570
|
+
return Ne(t) ? t.host : t;
|
|
608
571
|
}
|
|
609
|
-
function
|
|
610
|
-
const t =
|
|
611
|
-
return
|
|
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);
|
|
612
575
|
}
|
|
613
|
-
function
|
|
614
|
-
var
|
|
576
|
+
function fe(e, t, n) {
|
|
577
|
+
var o;
|
|
615
578
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
616
|
-
const
|
|
617
|
-
return s ? t.concat(l, l.visualViewport || [],
|
|
618
|
-
}
|
|
619
|
-
function
|
|
620
|
-
const t =
|
|
621
|
-
let n = parseFloat(t.width) || 0,
|
|
622
|
-
const
|
|
623
|
-
return r && (n = s,
|
|
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));
|
|
581
|
+
}
|
|
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), {
|
|
624
587
|
width: n,
|
|
625
|
-
height:
|
|
588
|
+
height: o,
|
|
626
589
|
$: r
|
|
627
590
|
};
|
|
628
591
|
}
|
|
629
|
-
function
|
|
630
|
-
return
|
|
592
|
+
function Oe(e) {
|
|
593
|
+
return H(e) ? e : e.contextElement;
|
|
631
594
|
}
|
|
632
|
-
function
|
|
633
|
-
const t =
|
|
634
|
-
if (!
|
|
635
|
-
return
|
|
595
|
+
function le(e) {
|
|
596
|
+
const t = Oe(e);
|
|
597
|
+
if (!W(t))
|
|
598
|
+
return X(1);
|
|
636
599
|
const n = t.getBoundingClientRect(), {
|
|
637
|
-
width:
|
|
638
|
-
height:
|
|
600
|
+
width: o,
|
|
601
|
+
height: i,
|
|
639
602
|
$: s
|
|
640
|
-
} =
|
|
641
|
-
let l = (s ?
|
|
603
|
+
} = tt(t);
|
|
604
|
+
let l = (s ? be(n.width) : n.width) / o, r = (s ? be(n.height) : n.height) / i;
|
|
642
605
|
return (!l || !Number.isFinite(l)) && (l = 1), (!r || !Number.isFinite(r)) && (r = 1), {
|
|
643
606
|
x: l,
|
|
644
607
|
y: r
|
|
645
608
|
};
|
|
646
609
|
}
|
|
647
|
-
const
|
|
648
|
-
function
|
|
649
|
-
const t =
|
|
650
|
-
return !
|
|
610
|
+
const kt = /* @__PURE__ */ X(0);
|
|
611
|
+
function nt(e) {
|
|
612
|
+
const t = O(e);
|
|
613
|
+
return !Fe() || !t.visualViewport ? kt : {
|
|
651
614
|
x: t.visualViewport.offsetLeft,
|
|
652
615
|
y: t.visualViewport.offsetTop
|
|
653
616
|
};
|
|
654
617
|
}
|
|
655
|
-
function
|
|
656
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
618
|
+
function Rt(e, t, n) {
|
|
619
|
+
return t === void 0 && (t = !1), !n || t && n !== O(e) ? !1 : t;
|
|
657
620
|
}
|
|
658
|
-
function
|
|
621
|
+
function Q(e, t, n, o) {
|
|
659
622
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
660
|
-
const
|
|
661
|
-
let l =
|
|
662
|
-
t && (
|
|
663
|
-
const r =
|
|
664
|
-
let a = (
|
|
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;
|
|
665
628
|
if (s) {
|
|
666
|
-
const
|
|
667
|
-
let
|
|
668
|
-
for (;
|
|
669
|
-
const
|
|
670
|
-
a *=
|
|
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;
|
|
671
634
|
}
|
|
672
635
|
}
|
|
673
|
-
return
|
|
674
|
-
width:
|
|
675
|
-
height:
|
|
636
|
+
return xe({
|
|
637
|
+
width: u,
|
|
638
|
+
height: d,
|
|
676
639
|
x: a,
|
|
677
640
|
y: c
|
|
678
641
|
});
|
|
679
642
|
}
|
|
680
|
-
function
|
|
643
|
+
function Mt(e) {
|
|
681
644
|
let {
|
|
682
645
|
elements: t,
|
|
683
646
|
rect: n,
|
|
684
|
-
offsetParent:
|
|
685
|
-
strategy:
|
|
647
|
+
offsetParent: o,
|
|
648
|
+
strategy: i
|
|
686
649
|
} = e;
|
|
687
|
-
const s =
|
|
688
|
-
if (
|
|
650
|
+
const s = i === "fixed", l = z(o), r = t ? Le(t.floating) : !1;
|
|
651
|
+
if (o === l || r && s)
|
|
689
652
|
return n;
|
|
690
653
|
let a = {
|
|
691
654
|
scrollLeft: 0,
|
|
692
655
|
scrollTop: 0
|
|
693
|
-
}, c =
|
|
694
|
-
const
|
|
695
|
-
if ((
|
|
696
|
-
const
|
|
697
|
-
c =
|
|
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;
|
|
698
661
|
}
|
|
699
662
|
return {
|
|
700
663
|
width: n.width * c.x,
|
|
701
664
|
height: n.height * c.y,
|
|
702
|
-
x: n.x * c.x - a.scrollLeft * c.x +
|
|
703
|
-
y: n.y * c.y - a.scrollTop * 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
|
|
704
667
|
};
|
|
705
668
|
}
|
|
706
|
-
function
|
|
669
|
+
function Bt(e) {
|
|
707
670
|
return Array.from(e.getClientRects());
|
|
708
671
|
}
|
|
709
|
-
function
|
|
710
|
-
return
|
|
672
|
+
function ot(e) {
|
|
673
|
+
return Q(z(e)).left + Te(e).scrollLeft;
|
|
711
674
|
}
|
|
712
|
-
function
|
|
713
|
-
const t =
|
|
714
|
-
let l = -n.scrollLeft +
|
|
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);
|
|
715
678
|
const r = -n.scrollTop;
|
|
716
|
-
return
|
|
717
|
-
width:
|
|
679
|
+
return P(o).direction === "rtl" && (l += F(t.clientWidth, o.clientWidth) - i), {
|
|
680
|
+
width: i,
|
|
718
681
|
height: s,
|
|
719
682
|
x: l,
|
|
720
683
|
y: r
|
|
721
684
|
};
|
|
722
685
|
}
|
|
723
|
-
function
|
|
724
|
-
const n =
|
|
725
|
-
let s =
|
|
726
|
-
if (
|
|
727
|
-
s =
|
|
728
|
-
const c =
|
|
729
|
-
(!c || c && t === "fixed") && (r =
|
|
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);
|
|
730
693
|
}
|
|
731
694
|
return {
|
|
732
695
|
width: s,
|
|
@@ -735,8 +698,8 @@ function R0(e, t) {
|
|
|
735
698
|
y: a
|
|
736
699
|
};
|
|
737
700
|
}
|
|
738
|
-
function
|
|
739
|
-
const n =
|
|
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;
|
|
740
703
|
return {
|
|
741
704
|
width: l,
|
|
742
705
|
height: r,
|
|
@@ -744,52 +707,52 @@ function T0(e, t) {
|
|
|
744
707
|
y: c
|
|
745
708
|
};
|
|
746
709
|
}
|
|
747
|
-
function
|
|
748
|
-
let
|
|
710
|
+
function Pe(e, t, n) {
|
|
711
|
+
let o;
|
|
749
712
|
if (t === "viewport")
|
|
750
|
-
|
|
713
|
+
o = Ft(e, n);
|
|
751
714
|
else if (t === "document")
|
|
752
|
-
|
|
753
|
-
else if (
|
|
754
|
-
|
|
715
|
+
o = It(z(e));
|
|
716
|
+
else if (H(t))
|
|
717
|
+
o = Ot(t, n);
|
|
755
718
|
else {
|
|
756
|
-
const
|
|
757
|
-
|
|
719
|
+
const i = nt(e);
|
|
720
|
+
o = {
|
|
758
721
|
...t,
|
|
759
|
-
x: t.x -
|
|
760
|
-
y: t.y -
|
|
722
|
+
x: t.x - i.x,
|
|
723
|
+
y: t.y - i.y
|
|
761
724
|
};
|
|
762
725
|
}
|
|
763
|
-
return
|
|
726
|
+
return xe(o);
|
|
764
727
|
}
|
|
765
|
-
function
|
|
766
|
-
const n =
|
|
767
|
-
return n === t || !
|
|
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);
|
|
768
731
|
}
|
|
769
|
-
function
|
|
732
|
+
function Dt(e, t) {
|
|
770
733
|
const n = t.get(e);
|
|
771
734
|
if (n)
|
|
772
735
|
return n;
|
|
773
|
-
let
|
|
774
|
-
const s =
|
|
775
|
-
let l = s ?
|
|
776
|
-
for (;
|
|
777
|
-
const r =
|
|
778
|
-
!a && r.position === "fixed" && (
|
|
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);
|
|
779
742
|
}
|
|
780
|
-
return t.set(e,
|
|
743
|
+
return t.set(e, o), o;
|
|
781
744
|
}
|
|
782
|
-
function
|
|
745
|
+
function _t(e) {
|
|
783
746
|
let {
|
|
784
747
|
element: t,
|
|
785
748
|
boundary: n,
|
|
786
|
-
rootBoundary:
|
|
787
|
-
strategy:
|
|
749
|
+
rootBoundary: o,
|
|
750
|
+
strategy: i
|
|
788
751
|
} = e;
|
|
789
|
-
const l = [...n === "clippingAncestors" ?
|
|
790
|
-
const
|
|
791
|
-
return c.top =
|
|
792
|
-
},
|
|
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));
|
|
793
756
|
return {
|
|
794
757
|
width: a.right - a.left,
|
|
795
758
|
height: a.bottom - a.top,
|
|
@@ -797,330 +760,324 @@ function O0(e) {
|
|
|
797
760
|
y: a.top
|
|
798
761
|
};
|
|
799
762
|
}
|
|
800
|
-
function
|
|
763
|
+
function Vt(e) {
|
|
801
764
|
const {
|
|
802
765
|
width: t,
|
|
803
766
|
height: n
|
|
804
|
-
} =
|
|
767
|
+
} = tt(e);
|
|
805
768
|
return {
|
|
806
769
|
width: t,
|
|
807
770
|
height: n
|
|
808
771
|
};
|
|
809
772
|
}
|
|
810
|
-
function
|
|
811
|
-
const
|
|
773
|
+
function Nt(e, t, n) {
|
|
774
|
+
const o = W(t), i = z(t), s = n === "fixed", l = Q(e, !0, s, t);
|
|
812
775
|
let r = {
|
|
813
776
|
scrollLeft: 0,
|
|
814
777
|
scrollTop: 0
|
|
815
778
|
};
|
|
816
|
-
const a =
|
|
817
|
-
if (
|
|
818
|
-
if ((
|
|
819
|
-
const
|
|
820
|
-
a.x =
|
|
821
|
-
} else
|
|
822
|
-
const c = l.left + r.scrollLeft - a.x,
|
|
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;
|
|
823
786
|
return {
|
|
824
787
|
x: c,
|
|
825
|
-
y:
|
|
788
|
+
y: u,
|
|
826
789
|
width: l.width,
|
|
827
790
|
height: l.height
|
|
828
791
|
};
|
|
829
792
|
}
|
|
830
|
-
function
|
|
831
|
-
return
|
|
793
|
+
function Ee(e) {
|
|
794
|
+
return P(e).position === "static";
|
|
832
795
|
}
|
|
833
|
-
function
|
|
834
|
-
return !
|
|
796
|
+
function He(e, t) {
|
|
797
|
+
return !W(e) || P(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
835
798
|
}
|
|
836
|
-
function
|
|
837
|
-
const n =
|
|
838
|
-
if (
|
|
799
|
+
function st(e, t) {
|
|
800
|
+
const n = O(e);
|
|
801
|
+
if (Le(e))
|
|
839
802
|
return n;
|
|
840
|
-
if (!
|
|
841
|
-
let
|
|
842
|
-
for (;
|
|
843
|
-
if (
|
|
844
|
-
return
|
|
845
|
-
|
|
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);
|
|
846
809
|
}
|
|
847
810
|
return n;
|
|
848
811
|
}
|
|
849
|
-
let
|
|
850
|
-
for (;
|
|
851
|
-
|
|
852
|
-
return
|
|
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;
|
|
853
816
|
}
|
|
854
|
-
const
|
|
855
|
-
const t = this.getOffsetParent ||
|
|
817
|
+
const Pt = async function(e) {
|
|
818
|
+
const t = this.getOffsetParent || st, n = this.getDimensions, o = await n(e.floating);
|
|
856
819
|
return {
|
|
857
|
-
reference:
|
|
820
|
+
reference: Nt(e.reference, await t(e.floating), e.strategy),
|
|
858
821
|
floating: {
|
|
859
822
|
x: 0,
|
|
860
823
|
y: 0,
|
|
861
|
-
width:
|
|
862
|
-
height:
|
|
824
|
+
width: o.width,
|
|
825
|
+
height: o.height
|
|
863
826
|
}
|
|
864
827
|
};
|
|
865
828
|
};
|
|
866
|
-
function
|
|
867
|
-
return
|
|
868
|
-
}
|
|
869
|
-
const
|
|
870
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
871
|
-
getDocumentElement:
|
|
872
|
-
getClippingRect:
|
|
873
|
-
getOffsetParent:
|
|
874
|
-
getElementRects:
|
|
875
|
-
getClientRects:
|
|
876
|
-
getDimensions:
|
|
877
|
-
getScale:
|
|
878
|
-
isElement:
|
|
879
|
-
isRTL:
|
|
829
|
+
function Ht(e) {
|
|
830
|
+
return P(e).direction === "rtl";
|
|
831
|
+
}
|
|
832
|
+
const Wt = {
|
|
833
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Mt,
|
|
834
|
+
getDocumentElement: z,
|
|
835
|
+
getClippingRect: _t,
|
|
836
|
+
getOffsetParent: st,
|
|
837
|
+
getElementRects: Pt,
|
|
838
|
+
getClientRects: Bt,
|
|
839
|
+
getDimensions: Vt,
|
|
840
|
+
getScale: le,
|
|
841
|
+
isElement: H,
|
|
842
|
+
isRTL: Ht
|
|
880
843
|
};
|
|
881
|
-
function
|
|
882
|
-
let n = null,
|
|
883
|
-
const
|
|
844
|
+
function zt(e, t) {
|
|
845
|
+
let n = null, o;
|
|
846
|
+
const i = z(e);
|
|
884
847
|
function s() {
|
|
885
848
|
var r;
|
|
886
|
-
clearTimeout(
|
|
849
|
+
clearTimeout(o), (r = n) == null || r.disconnect(), n = null;
|
|
887
850
|
}
|
|
888
851
|
function l(r, a) {
|
|
889
852
|
r === void 0 && (r = !1), a === void 0 && (a = 1), s();
|
|
890
853
|
const {
|
|
891
854
|
left: c,
|
|
892
|
-
top:
|
|
893
|
-
width:
|
|
894
|
-
height:
|
|
855
|
+
top: u,
|
|
856
|
+
width: d,
|
|
857
|
+
height: h
|
|
895
858
|
} = e.getBoundingClientRect();
|
|
896
|
-
if (r || t(), !
|
|
859
|
+
if (r || t(), !d || !h)
|
|
897
860
|
return;
|
|
898
|
-
const
|
|
899
|
-
rootMargin: -
|
|
900
|
-
threshold:
|
|
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
|
|
901
864
|
};
|
|
902
|
-
let
|
|
903
|
-
function
|
|
904
|
-
const
|
|
905
|
-
if (
|
|
906
|
-
if (!
|
|
865
|
+
let T = !0;
|
|
866
|
+
function $(A) {
|
|
867
|
+
const M = A[0].intersectionRatio;
|
|
868
|
+
if (M !== a) {
|
|
869
|
+
if (!T)
|
|
907
870
|
return l();
|
|
908
|
-
|
|
871
|
+
M ? l(!1, M) : o = setTimeout(() => {
|
|
909
872
|
l(!1, 1e-7);
|
|
910
873
|
}, 1e3);
|
|
911
874
|
}
|
|
912
|
-
|
|
875
|
+
T = !1;
|
|
913
876
|
}
|
|
914
877
|
try {
|
|
915
|
-
n = new IntersectionObserver(
|
|
916
|
-
...
|
|
878
|
+
n = new IntersectionObserver($, {
|
|
879
|
+
...L,
|
|
917
880
|
// Handle <iframe>s
|
|
918
|
-
root:
|
|
881
|
+
root: i.ownerDocument
|
|
919
882
|
});
|
|
920
883
|
} catch {
|
|
921
|
-
n = new IntersectionObserver(
|
|
884
|
+
n = new IntersectionObserver($, L);
|
|
922
885
|
}
|
|
923
886
|
n.observe(e);
|
|
924
887
|
}
|
|
925
888
|
return l(!0), s;
|
|
926
889
|
}
|
|
927
|
-
function
|
|
928
|
-
|
|
890
|
+
function Zt(e, t, n, o) {
|
|
891
|
+
o === void 0 && (o = {});
|
|
929
892
|
const {
|
|
930
|
-
ancestorScroll:
|
|
893
|
+
ancestorScroll: i = !0,
|
|
931
894
|
ancestorResize: s = !0,
|
|
932
895
|
elementResize: l = typeof ResizeObserver == "function",
|
|
933
896
|
layoutShift: r = typeof IntersectionObserver == "function",
|
|
934
897
|
animationFrame: a = !1
|
|
935
|
-
} =
|
|
936
|
-
|
|
937
|
-
|
|
898
|
+
} = o, c = Oe(e), u = i || s ? [...c ? fe(c) : [], ...fe(t)] : [];
|
|
899
|
+
u.forEach((w) => {
|
|
900
|
+
i && w.addEventListener("scroll", n, {
|
|
938
901
|
passive: !0
|
|
939
|
-
}), s &&
|
|
902
|
+
}), s && w.addEventListener("resize", n);
|
|
940
903
|
});
|
|
941
|
-
const
|
|
942
|
-
let
|
|
943
|
-
l && (
|
|
944
|
-
let [
|
|
945
|
-
|
|
946
|
-
var
|
|
947
|
-
(
|
|
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);
|
|
948
911
|
})), n();
|
|
949
|
-
}), c && !a &&
|
|
950
|
-
let
|
|
951
|
-
a &&
|
|
952
|
-
function
|
|
953
|
-
const
|
|
954
|
-
|
|
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);
|
|
955
918
|
}
|
|
956
919
|
return n(), () => {
|
|
957
|
-
var
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
}),
|
|
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);
|
|
961
924
|
};
|
|
962
925
|
}
|
|
963
|
-
const
|
|
964
|
-
const
|
|
965
|
-
platform:
|
|
926
|
+
const Ut = Tt, jt = St, Kt = yt, Xt = Et, Yt = (e, t, n) => {
|
|
927
|
+
const o = /* @__PURE__ */ new Map(), i = {
|
|
928
|
+
platform: Wt,
|
|
966
929
|
...n
|
|
967
930
|
}, s = {
|
|
968
|
-
...
|
|
969
|
-
_c:
|
|
931
|
+
...i.platform,
|
|
932
|
+
_c: o
|
|
970
933
|
};
|
|
971
|
-
return
|
|
972
|
-
...
|
|
934
|
+
return xt(e, t, {
|
|
935
|
+
...i,
|
|
973
936
|
platform: s
|
|
974
937
|
});
|
|
975
938
|
};
|
|
976
|
-
function
|
|
939
|
+
function Gt(e) {
|
|
977
940
|
return e != null && typeof e == "object" && "$el" in e;
|
|
978
941
|
}
|
|
979
|
-
function
|
|
980
|
-
if (
|
|
942
|
+
function We(e) {
|
|
943
|
+
if (Gt(e)) {
|
|
981
944
|
const t = e.$el;
|
|
982
|
-
return
|
|
945
|
+
return Be(t) && ee(t) === "#comment" ? null : t;
|
|
983
946
|
}
|
|
984
947
|
return e;
|
|
985
948
|
}
|
|
986
|
-
function
|
|
987
|
-
return typeof e == "function" ? e() :
|
|
949
|
+
function ce(e) {
|
|
950
|
+
return typeof e == "function" ? e() : ve(e);
|
|
988
951
|
}
|
|
989
|
-
function
|
|
990
|
-
return {
|
|
991
|
-
name: "arrow",
|
|
992
|
-
options: e,
|
|
993
|
-
fn(t) {
|
|
994
|
-
const n = F2(s2(e.element));
|
|
995
|
-
return n == null ? {} : P0({
|
|
996
|
-
element: n,
|
|
997
|
-
padding: e.padding
|
|
998
|
-
}).fn(t);
|
|
999
|
-
}
|
|
1000
|
-
};
|
|
1001
|
-
}
|
|
1002
|
-
function i0(e) {
|
|
952
|
+
function lt(e) {
|
|
1003
953
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1004
954
|
}
|
|
1005
|
-
function
|
|
1006
|
-
const n =
|
|
955
|
+
function ze(e, t) {
|
|
956
|
+
const n = lt(e);
|
|
1007
957
|
return Math.round(t * n) / n;
|
|
1008
958
|
}
|
|
1009
|
-
function
|
|
959
|
+
function qt(e, t, n) {
|
|
1010
960
|
n === void 0 && (n = {});
|
|
1011
|
-
const
|
|
1012
|
-
var
|
|
1013
|
-
return (
|
|
1014
|
-
}), s =
|
|
1015
|
-
var
|
|
1016
|
-
return (
|
|
1017
|
-
}), r =
|
|
1018
|
-
var
|
|
1019
|
-
return (
|
|
1020
|
-
}), a =
|
|
1021
|
-
var
|
|
1022
|
-
return (
|
|
1023
|
-
}), c =
|
|
1024
|
-
const
|
|
1025
|
-
position:
|
|
961
|
+
const o = n.whileElementsMounted, i = _(() => {
|
|
962
|
+
var S;
|
|
963
|
+
return (S = ce(n.open)) != null ? S : !0;
|
|
964
|
+
}), s = _(() => ce(n.middleware)), l = _(() => {
|
|
965
|
+
var S;
|
|
966
|
+
return (S = ce(n.placement)) != null ? S : "bottom";
|
|
967
|
+
}), r = _(() => {
|
|
968
|
+
var S;
|
|
969
|
+
return (S = ce(n.strategy)) != null ? S : "absolute";
|
|
970
|
+
}), a = _(() => {
|
|
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 = _(() => {
|
|
974
|
+
const S = {
|
|
975
|
+
position: f.value,
|
|
1026
976
|
left: "0",
|
|
1027
977
|
top: "0"
|
|
1028
978
|
};
|
|
1029
|
-
if (!
|
|
1030
|
-
return
|
|
1031
|
-
const
|
|
979
|
+
if (!u.value)
|
|
980
|
+
return S;
|
|
981
|
+
const I = ze(u.value, d.value), B = ze(u.value, h.value);
|
|
1032
982
|
return a.value ? {
|
|
1033
|
-
...
|
|
1034
|
-
transform: "translate(" +
|
|
1035
|
-
...
|
|
983
|
+
...S,
|
|
984
|
+
transform: "translate(" + I + "px, " + B + "px)",
|
|
985
|
+
...lt(u.value) >= 1.5 && {
|
|
1036
986
|
willChange: "transform"
|
|
1037
987
|
}
|
|
1038
988
|
} : {
|
|
1039
|
-
position:
|
|
1040
|
-
left:
|
|
1041
|
-
top:
|
|
989
|
+
position: f.value,
|
|
990
|
+
left: I + "px",
|
|
991
|
+
top: B + "px"
|
|
1042
992
|
};
|
|
1043
993
|
});
|
|
1044
|
-
let
|
|
1045
|
-
function
|
|
1046
|
-
c.value == null ||
|
|
994
|
+
let L;
|
|
995
|
+
function T() {
|
|
996
|
+
c.value == null || u.value == null || Yt(c.value, u.value, {
|
|
1047
997
|
middleware: s.value,
|
|
1048
998
|
placement: l.value,
|
|
1049
999
|
strategy: r.value
|
|
1050
|
-
}).then((
|
|
1051
|
-
|
|
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;
|
|
1052
1002
|
});
|
|
1053
1003
|
}
|
|
1054
|
-
function
|
|
1055
|
-
typeof
|
|
1004
|
+
function $() {
|
|
1005
|
+
typeof L == "function" && (L(), L = void 0);
|
|
1056
1006
|
}
|
|
1057
|
-
function
|
|
1058
|
-
if (
|
|
1059
|
-
|
|
1007
|
+
function A() {
|
|
1008
|
+
if ($(), o === void 0) {
|
|
1009
|
+
T();
|
|
1060
1010
|
return;
|
|
1061
1011
|
}
|
|
1062
|
-
if (c.value != null &&
|
|
1063
|
-
|
|
1012
|
+
if (c.value != null && u.value != null) {
|
|
1013
|
+
L = o(c.value, u.value, T);
|
|
1064
1014
|
return;
|
|
1065
1015
|
}
|
|
1066
1016
|
}
|
|
1067
|
-
function
|
|
1068
|
-
|
|
1017
|
+
function M() {
|
|
1018
|
+
i.value || (x.value = !1);
|
|
1069
1019
|
}
|
|
1070
|
-
return
|
|
1020
|
+
return se([s, l, r], T, {
|
|
1071
1021
|
flush: "sync"
|
|
1072
|
-
}),
|
|
1022
|
+
}), se([c, u], A, {
|
|
1073
1023
|
flush: "sync"
|
|
1074
|
-
}),
|
|
1024
|
+
}), se(i, M, {
|
|
1075
1025
|
flush: "sync"
|
|
1076
|
-
}),
|
|
1077
|
-
x:
|
|
1078
|
-
y:
|
|
1079
|
-
strategy:
|
|
1080
|
-
placement:
|
|
1081
|
-
middlewareData:
|
|
1082
|
-
isPositioned:
|
|
1083
|
-
floatingStyles:
|
|
1084
|
-
update:
|
|
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
|
|
1085
1035
|
};
|
|
1086
1036
|
}
|
|
1087
|
-
const
|
|
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) => {
|
|
1088
1038
|
const n = e.__vccOpts || e;
|
|
1089
|
-
for (const [
|
|
1090
|
-
n[
|
|
1039
|
+
for (const [o, i] of t)
|
|
1040
|
+
n[o] = i;
|
|
1091
1041
|
return n;
|
|
1092
|
-
},
|
|
1042
|
+
}, Qt = {
|
|
1093
1043
|
name: "Logo"
|
|
1094
|
-
},
|
|
1095
|
-
src:
|
|
1044
|
+
}, en = {
|
|
1045
|
+
src: Jt,
|
|
1096
1046
|
alt: "DDict Logo",
|
|
1097
1047
|
class: "w-6 h-6 cursor-pointer"
|
|
1098
1048
|
};
|
|
1099
|
-
function
|
|
1100
|
-
return
|
|
1101
|
-
}
|
|
1102
|
-
const oe = /* @__PURE__ */ h2(te, [["render", ie]]), se = "data:image/gif;base64,R0lGODlhQAAmAPQAAM3Nzerq6sbGxu3t7dnZ2eHh4bW1tfv7+/Ly8re3t7y8vPz8/MLCwvX19fj4+N7e3rq6ur6+vsDAwPb29tLS0vDw8MnJydzc3OTk5NTU1NDQ0NbW1ufn57Ozs////////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAwAfACwAAAAAQAAmAAAF/6AnjmRpnmiqrmzrvnAsz3Rt33guL8vb67EFhwGosA4FCaUBbC0Glo40sWGehAJpB3JxNFMVgEGr5XpHT8uY3IkUDl/SJJNgs909hGZtlzI4cSIbfXYGRgCEbAZnX4OJZEZRj1KLgY6THZGYHZVxl5OamJ2Nm5kekpOjTZ+PoamMq6Wuj6pArISGp5u1OhVqjxAbcAECfH0KFz9xBxzFdgkaRiNIDH3BVk0LARvSDgXVlBYDPcwECCIOFxFa0NJIBBM5YXXXIhMXCgIccGljyPEeGmxQYCFAD23O3MCK0SADhDtd7J2poKEOGQkFzjTgN0AMmz9wYNxTkIjBGxECH7v2MaDvRwUKFgsVVLZigQRRGjxMWJeKgIcKJCclwODigLFEAjwgOEooZ4BSPlsY3ZR06SanUIsy7VN1qx2sm6Ie8cqm61UPT8NqpaqULBmwmMSumIrJLCa4k+SqoDupaim8j/SmWIAqkQGfDrIILaD05iQIgFwIASdznAgkPAtFG5Eu6LMM2F5g/siBJroLKsNZLjFhQ0xORWw4IPDQTUgUc+r8MV1CzxgBBnM0wLAwBQIMt1cMKB2ouYsQACH5BAUDAB8ALA8ABQARABMAAAVm4CeOX3NhB6mKzgV1HcMt63cUUTd2hjXQogWHAVvxNAibxaCriTqQh6Pp3FmmVdWVmv1su6Mv2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SEGYOEWFygZiMgAqxc+ikjzlDgdE5RLpQTIN1mTbMzARDGlPpAh4MnsjCQ+BJAQeFIUfBoSKH4eJhYyOj4iKk46Ql42KmpKchZ6BmJ2Wn5SHG4oQBagePxJ1GggTAHp7AmAfHg4XXCUGFgNOCwECPQo6YR4NGUoiEk3LBwVtJQkEKy0eFQAKD9onvL4iBrNhLQsL6OINGsJXJCEAIfkEBQMAHwAsGAASACIAFAAABcLgJ45kaY6Ld65eu5KDU1yT+n6ec1HBch8BgeEjKThsJc8BwxAlKBWkCOOoABIlAcc38iwGwhKEUBM5EBnIymAZqDxW7EryOHgekZsIkmk01HoGGx5NeiMPCIYiGoSKIoiOjIWKkIqSjh+VhpeOmnqclImWjZ2im6SUE3mBF6iGDx4TBIAmbD0eAZMvCkYiHg0UciMSGCm+BwWrJgkbZSRfAHsPRyY5BMIfBgAIUiULAQ8N3UkIGkMCA1w3LooeA1vjIQAh+QQFAwAfACwpABMAEQATAAAFZuAnjovTeGOaloUEbROqfsfCCcYYPY4sLgNAbibgLEQISmKWMlgGHguTCVlIp6qEFZvdckfa6/cTHovKZvRYCzB/FKWHgpvYnD6eCWGpMgAQPiIeCBpDHwIBR1NAAhEYB4GLC5EiIQAh+QQFQwAfACwpABMAEQATAAAFYuAnjp/nkSjpNQQ1nKnoOU8kQhsCj97BMQaU4uGAeQKWYOzDwCw+g8SSZCgcpyjCFTvSBrjdLdgLFpHL57GnogAbMKZGRhozAF48BEA5YgSeKQsBAiIKGAc7KT0YBUVlJkshADs=", le = {
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
}, null, -1)), de = [
|
|
1109
|
-
ce
|
|
1049
|
+
function tn(e, t, n, o, i, s) {
|
|
1050
|
+
return g(), b("img", en);
|
|
1051
|
+
}
|
|
1052
|
+
const nn = /* @__PURE__ */ te(Qt, [["render", tn]]), on = {}, sn = {
|
|
1053
|
+
class: "w-12 h-12 text-primary",
|
|
1054
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
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 = [
|
|
1057
|
+
ln
|
|
1110
1058
|
];
|
|
1111
|
-
function
|
|
1112
|
-
return
|
|
1059
|
+
function rn(e, t) {
|
|
1060
|
+
return g(), b("svg", sn, an);
|
|
1113
1061
|
}
|
|
1114
|
-
const
|
|
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 = {
|
|
1063
|
+
__name: "Loading",
|
|
1064
|
+
setup(e) {
|
|
1065
|
+
return (t, n) => (g(), b("div", un, [
|
|
1066
|
+
y("div", dn, [
|
|
1067
|
+
K(cn)
|
|
1068
|
+
])
|
|
1069
|
+
]));
|
|
1070
|
+
}
|
|
1071
|
+
}, mn = {
|
|
1115
1072
|
name: "Phonetic",
|
|
1116
1073
|
props: ["phonetic"]
|
|
1117
|
-
},
|
|
1118
|
-
function
|
|
1119
|
-
return
|
|
1120
|
-
|
|
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)
|
|
1121
1078
|
]);
|
|
1122
1079
|
}
|
|
1123
|
-
const
|
|
1080
|
+
const pn = /* @__PURE__ */ te(mn, [["render", Cn]]), vn = { class: "flex flex-col gap-2" }, bn = {
|
|
1124
1081
|
__name: "Sentences",
|
|
1125
1082
|
props: {
|
|
1126
1083
|
sentences: {
|
|
@@ -1129,56 +1086,68 @@ const me = /* @__PURE__ */ h2(Ae, [["render", he]]), we = { class: "flex flex-co
|
|
|
1129
1086
|
}
|
|
1130
1087
|
},
|
|
1131
1088
|
setup(e) {
|
|
1132
|
-
const t = e, n =
|
|
1089
|
+
const t = e, n = _(() => t.sentences.split(`
|
|
1133
1090
|
`));
|
|
1134
|
-
return (
|
|
1135
|
-
(
|
|
1091
|
+
return (o, i) => (g(), b("div", vn, [
|
|
1092
|
+
(g(!0), b(me, null, ye(n.value, (s, l) => (g(), b("p", {
|
|
1136
1093
|
key: l,
|
|
1137
|
-
class: "text-base text-
|
|
1138
|
-
},
|
|
1094
|
+
class: "text-base text-base-content leading-tight p-0 mr-2"
|
|
1095
|
+
}, de(s), 1))), 128))
|
|
1139
1096
|
]));
|
|
1140
1097
|
}
|
|
1141
|
-
},
|
|
1098
|
+
}, wn = { class: "capitalize text-base italic font-normal text-base-content/60" }, xn = { class: "text-base leading-6 text-base-content" }, yn = {
|
|
1142
1099
|
__name: "Dict",
|
|
1143
1100
|
props: {
|
|
1144
1101
|
dictionary: Array
|
|
1145
1102
|
},
|
|
1146
1103
|
setup(e) {
|
|
1147
|
-
return (t, n) => (
|
|
1148
|
-
(
|
|
1149
|
-
key:
|
|
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,
|
|
1150
1107
|
class: "mt-2"
|
|
1151
1108
|
}, [
|
|
1152
|
-
|
|
1153
|
-
|
|
1109
|
+
y("p", wn, de(o.pos), 1),
|
|
1110
|
+
y("span", xn, de(o.terms.join(", ")), 1)
|
|
1154
1111
|
]))), 128))
|
|
1155
1112
|
]));
|
|
1156
1113
|
}
|
|
1157
|
-
},
|
|
1114
|
+
}, Ln = { class: "" }, Tn = /* @__PURE__ */ y("p", { class: "capitalize text-base italic font-normal text-base-content/60 mt-2" }, "AI Summary", -1), Sn = {
|
|
1158
1115
|
key: 0,
|
|
1159
1116
|
class: "list-none list-outside mt-2"
|
|
1160
|
-
},
|
|
1117
|
+
}, En = ["innerHTML"], An = {
|
|
1161
1118
|
__name: "Explanation",
|
|
1162
1119
|
props: {
|
|
1163
1120
|
explanation: Object
|
|
1164
1121
|
},
|
|
1165
1122
|
setup(e) {
|
|
1166
1123
|
return (t, n) => {
|
|
1167
|
-
var
|
|
1168
|
-
return
|
|
1169
|
-
|
|
1170
|
-
(
|
|
1171
|
-
(
|
|
1172
|
-
`)) || [], (s, l) => (
|
|
1124
|
+
var o, i;
|
|
1125
|
+
return g(), b("div", Ln, [
|
|
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", {
|
|
1173
1130
|
key: `${s}-${l}`,
|
|
1174
1131
|
innerHTML: s,
|
|
1175
|
-
class: "text-base text-
|
|
1176
|
-
}, null, 8,
|
|
1177
|
-
])) :
|
|
1132
|
+
class: "text-base text-base-content"
|
|
1133
|
+
}, null, 8, En))), 128))
|
|
1134
|
+
])) : N("", !0)
|
|
1178
1135
|
]);
|
|
1179
1136
|
};
|
|
1180
1137
|
}
|
|
1181
|
-
},
|
|
1138
|
+
}, $n = ["disabled"], kn = /* @__PURE__ */ y("path", {
|
|
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
|
+
fill: "currentColor"
|
|
1141
|
+
}, null, -1), Rn = [
|
|
1142
|
+
kn
|
|
1143
|
+
], Mn = ["disabled"], Bn = /* @__PURE__ */ y("path", {
|
|
1144
|
+
"fill-rule": "evenodd",
|
|
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
|
+
"clip-rule": "evenodd",
|
|
1147
|
+
fill: "currentColor"
|
|
1148
|
+
}, null, -1), In = [
|
|
1149
|
+
Bn
|
|
1150
|
+
], Fn = {
|
|
1182
1151
|
__name: "Player",
|
|
1183
1152
|
props: {
|
|
1184
1153
|
tts: {
|
|
@@ -1192,122 +1161,158 @@ const me = /* @__PURE__ */ h2(Ae, [["render", he]]), we = { class: "flex flex-co
|
|
|
1192
1161
|
},
|
|
1193
1162
|
emits: ["loadTTS"],
|
|
1194
1163
|
setup(e, { emit: t }) {
|
|
1195
|
-
const n = e,
|
|
1164
|
+
const n = e, o = t, i = _(() => n.tts), s = R(!1), l = new Audio(), r = new (window.AudioContext || window.webkitAudioContext)();
|
|
1196
1165
|
let a = null;
|
|
1197
|
-
|
|
1198
|
-
|
|
1166
|
+
se(
|
|
1167
|
+
i,
|
|
1199
1168
|
() => {
|
|
1200
|
-
if (!
|
|
1169
|
+
if (!i.value) {
|
|
1201
1170
|
s.value = !1;
|
|
1202
1171
|
return;
|
|
1203
1172
|
}
|
|
1204
|
-
|
|
1173
|
+
u();
|
|
1205
1174
|
},
|
|
1206
1175
|
{ immediate: !0 }
|
|
1207
|
-
),
|
|
1208
|
-
|
|
1176
|
+
), Re(() => {
|
|
1177
|
+
h(), l.src = "", r.close();
|
|
1209
1178
|
});
|
|
1210
1179
|
function c() {
|
|
1211
|
-
if (
|
|
1212
|
-
|
|
1180
|
+
if (i.value) {
|
|
1181
|
+
u();
|
|
1213
1182
|
return;
|
|
1214
1183
|
}
|
|
1215
|
-
s.value = !0,
|
|
1184
|
+
s.value = !0, o("loadTTS");
|
|
1216
1185
|
}
|
|
1217
|
-
async function
|
|
1218
|
-
if (
|
|
1186
|
+
async function u() {
|
|
1187
|
+
if (i.value) {
|
|
1219
1188
|
s.value = !0;
|
|
1220
1189
|
try {
|
|
1221
|
-
l.src =
|
|
1190
|
+
l.src = i.value, l.playbackRate = 0.7, await l.play(), l.onended = () => {
|
|
1222
1191
|
s.value = !1;
|
|
1223
1192
|
};
|
|
1224
1193
|
} catch {
|
|
1225
|
-
await
|
|
1194
|
+
await d();
|
|
1226
1195
|
}
|
|
1227
1196
|
}
|
|
1228
1197
|
}
|
|
1229
|
-
async function
|
|
1198
|
+
async function d() {
|
|
1230
1199
|
try {
|
|
1231
|
-
const
|
|
1232
|
-
a = r.createBufferSource(), a.buffer =
|
|
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 = () => {
|
|
1233
1202
|
s.value = !1, a = null;
|
|
1234
1203
|
};
|
|
1235
1204
|
} catch {
|
|
1236
1205
|
s.value = !1;
|
|
1237
1206
|
}
|
|
1238
1207
|
}
|
|
1239
|
-
function
|
|
1208
|
+
function h() {
|
|
1240
1209
|
a && (a.stop(), a.disconnect(), a = null), l.pause(), l.currentTime = 0, s.value = !1;
|
|
1241
1210
|
}
|
|
1242
|
-
return (
|
|
1211
|
+
return (f, m) => s.value ? (g(), b("button", {
|
|
1243
1212
|
key: 1,
|
|
1244
1213
|
class: k(["btn btn-xs btn-circle", [
|
|
1245
1214
|
{ "btn-ghost": !e.disabled },
|
|
1246
|
-
{ "!bg-
|
|
1215
|
+
{ "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
|
|
1247
1216
|
]]),
|
|
1248
1217
|
disabled: e.disabled,
|
|
1249
|
-
onClick:
|
|
1218
|
+
onClick: h
|
|
1250
1219
|
}, [
|
|
1251
|
-
|
|
1252
|
-
class: k(["w-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1220
|
+
(g(), b("svg", {
|
|
1221
|
+
class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
|
|
1222
|
+
viewBox: "0 0 24 24",
|
|
1223
|
+
fill: "none",
|
|
1224
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1225
|
+
}, In, 2))
|
|
1226
|
+
], 10, Mn)) : (g(), b("button", {
|
|
1257
1227
|
key: 0,
|
|
1258
1228
|
class: k(["btn btn-xs btn-circle", [
|
|
1259
1229
|
{ "btn-ghost": !e.disabled },
|
|
1260
|
-
{ "!bg-
|
|
1230
|
+
{ "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
|
|
1261
1231
|
]]),
|
|
1262
1232
|
disabled: e.disabled,
|
|
1263
1233
|
onClick: c
|
|
1264
1234
|
}, [
|
|
1265
|
-
|
|
1266
|
-
class: k(["w-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1235
|
+
(g(), b("svg", {
|
|
1236
|
+
class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
|
|
1237
|
+
viewBox: "0 0 16 16",
|
|
1238
|
+
fill: "none",
|
|
1239
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1240
|
+
}, Rn, 2))
|
|
1241
|
+
], 10, $n));
|
|
1271
1242
|
}
|
|
1272
|
-
},
|
|
1273
|
-
class: "bg-
|
|
1243
|
+
}, On = {
|
|
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",
|
|
1274
1245
|
"data-tip": "Favorite"
|
|
1275
|
-
},
|
|
1246
|
+
}, Dn = ["disabled"], _n = /* @__PURE__ */ y("path", {
|
|
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
|
+
fill: "currentColor"
|
|
1249
|
+
}, null, -1), Vn = [
|
|
1250
|
+
_n
|
|
1251
|
+
], Nn = /* @__PURE__ */ y("path", {
|
|
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
|
+
fill: "currentColor"
|
|
1254
|
+
}, null, -1), Pn = [
|
|
1255
|
+
Nn
|
|
1256
|
+
], Hn = {
|
|
1276
1257
|
__name: "Favorite",
|
|
1277
1258
|
props: {
|
|
1278
1259
|
isFilled: Boolean,
|
|
1279
1260
|
disabled: Boolean
|
|
1280
1261
|
},
|
|
1281
1262
|
setup(e) {
|
|
1282
|
-
return (t, n) => (
|
|
1283
|
-
|
|
1263
|
+
return (t, n) => (g(), b("div", On, [
|
|
1264
|
+
y("button", {
|
|
1284
1265
|
class: k(["btn btn-xs btn-circle", [
|
|
1285
1266
|
{ "btn-ghost": !e.disabled },
|
|
1286
1267
|
{ "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
|
|
1287
1268
|
]]),
|
|
1288
1269
|
disabled: e.disabled
|
|
1289
1270
|
}, [
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1271
|
+
e.isFilled ? (g(), b("svg", {
|
|
1272
|
+
key: 1,
|
|
1273
|
+
class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
|
|
1274
|
+
viewBox: "0 0 16 16",
|
|
1275
|
+
fill: "none",
|
|
1276
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1277
|
+
}, Pn, 2)) : (g(), b("svg", {
|
|
1278
|
+
key: 0,
|
|
1279
|
+
class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
|
|
1280
|
+
viewBox: "0 0 16 16",
|
|
1281
|
+
fill: "none",
|
|
1282
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1283
|
+
}, Vn, 2))
|
|
1284
|
+
], 10, Dn)
|
|
1296
1285
|
]));
|
|
1297
1286
|
}
|
|
1298
|
-
},
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1287
|
+
}, Wn = {}, zn = {
|
|
1288
|
+
class: "w-6 h-6 text-primary",
|
|
1289
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
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 = [
|
|
1292
|
+
Zn
|
|
1293
|
+
];
|
|
1294
|
+
function jn(e, t) {
|
|
1295
|
+
return g(), b("svg", zn, Un);
|
|
1296
|
+
}
|
|
1297
|
+
const at = /* @__PURE__ */ te(Wn, [["render", jn]]), Kn = {
|
|
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",
|
|
1309
1299
|
"data-tip": "AI Translate"
|
|
1310
|
-
},
|
|
1300
|
+
}, Xn = ["disabled"], Yn = /* @__PURE__ */ y("path", {
|
|
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
|
+
fill: "currentColor"
|
|
1303
|
+
}, null, -1), Gn = /* @__PURE__ */ y("path", {
|
|
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
|
+
fill: "currentColor"
|
|
1306
|
+
}, null, -1), qn = /* @__PURE__ */ y("path", {
|
|
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
|
+
fill: "currentColor"
|
|
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 = [
|
|
1314
|
+
Qn
|
|
1315
|
+
], to = {
|
|
1311
1316
|
__name: "AITranslateBtn",
|
|
1312
1317
|
props: {
|
|
1313
1318
|
isLoading: Boolean,
|
|
@@ -1315,11 +1320,11 @@ const me = /* @__PURE__ */ h2(Ae, [["render", he]]), we = { class: "flex flex-co
|
|
|
1315
1320
|
isFilled: Boolean
|
|
1316
1321
|
},
|
|
1317
1322
|
setup(e) {
|
|
1318
|
-
return (t, n) => (
|
|
1319
|
-
e.isLoading ? (
|
|
1323
|
+
return (t, n) => (g(), b("div", Kn, [
|
|
1324
|
+
e.isLoading ? (g(), V(at, {
|
|
1320
1325
|
key: 0,
|
|
1321
1326
|
class: "inset-0 flex items-center justify-center"
|
|
1322
|
-
})) : (
|
|
1327
|
+
})) : (g(), b("button", {
|
|
1323
1328
|
key: 1,
|
|
1324
1329
|
class: k(["btn btn-xs btn-circle", [
|
|
1325
1330
|
{ "btn-ghost": !e.disabled },
|
|
@@ -1327,18 +1332,46 @@ const me = /* @__PURE__ */ h2(Ae, [["render", he]]), we = { class: "flex flex-co
|
|
|
1327
1332
|
]]),
|
|
1328
1333
|
disabled: e.disabled
|
|
1329
1334
|
}, [
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1335
|
+
e.isFilled ? (g(), b("svg", {
|
|
1336
|
+
key: 1,
|
|
1337
|
+
class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
|
|
1338
|
+
viewBox: "0 0 12 12",
|
|
1339
|
+
fill: "none",
|
|
1340
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1341
|
+
}, eo, 2)) : (g(), b("svg", {
|
|
1342
|
+
key: 0,
|
|
1343
|
+
class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
|
|
1344
|
+
viewBox: "0 0 12 12",
|
|
1345
|
+
fill: "none",
|
|
1346
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1347
|
+
}, Jn, 2))
|
|
1348
|
+
], 10, Xn))
|
|
1336
1349
|
]));
|
|
1337
1350
|
}
|
|
1338
|
-
},
|
|
1339
|
-
class: "bg-
|
|
1351
|
+
}, no = {
|
|
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",
|
|
1340
1353
|
"data-tip": "AI Summarize"
|
|
1341
|
-
},
|
|
1354
|
+
}, oo = ["disabled"], io = /* @__PURE__ */ y("path", {
|
|
1355
|
+
stroke: "currentColor",
|
|
1356
|
+
"stroke-linecap": "round",
|
|
1357
|
+
"stroke-linejoin": "round",
|
|
1358
|
+
"stroke-width": "2",
|
|
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", {
|
|
1363
|
+
fill: "currentColor",
|
|
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", {
|
|
1366
|
+
stroke: "currentColor",
|
|
1367
|
+
"stroke-linecap": "round",
|
|
1368
|
+
"stroke-linejoin": "round",
|
|
1369
|
+
"stroke-width": "2",
|
|
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 = {
|
|
1342
1375
|
__name: "AIExplainBtn",
|
|
1343
1376
|
props: {
|
|
1344
1377
|
isLoading: Boolean,
|
|
@@ -1346,8 +1379,8 @@ const me = /* @__PURE__ */ h2(Ae, [["render", he]]), we = { class: "flex flex-co
|
|
|
1346
1379
|
isFilled: Boolean
|
|
1347
1380
|
},
|
|
1348
1381
|
setup(e) {
|
|
1349
|
-
return (t, n) => (
|
|
1350
|
-
e.isLoading ? (
|
|
1382
|
+
return (t, n) => (g(), b("div", no, [
|
|
1383
|
+
e.isLoading ? (g(), V(at, { key: 0 })) : (g(), b("button", {
|
|
1351
1384
|
key: 1,
|
|
1352
1385
|
class: k(["btn btn-xs btn-circle", [
|
|
1353
1386
|
{ "btn-ghost": !e.disabled },
|
|
@@ -1355,35 +1388,152 @@ const me = /* @__PURE__ */ h2(Ae, [["render", he]]), we = { class: "flex flex-co
|
|
|
1355
1388
|
]]),
|
|
1356
1389
|
disabled: e.disabled
|
|
1357
1390
|
}, [
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1391
|
+
e.isFilled ? (g(), b("svg", {
|
|
1392
|
+
key: 1,
|
|
1393
|
+
class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
|
|
1394
|
+
viewBox: "0 0 24 24",
|
|
1395
|
+
fill: "none",
|
|
1396
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1397
|
+
}, ro, 2)) : (g(), b("svg", {
|
|
1398
|
+
key: 0,
|
|
1399
|
+
class: k(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
|
|
1400
|
+
viewBox: "0 0 24 24",
|
|
1401
|
+
fill: "none",
|
|
1402
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1403
|
+
}, so, 2))
|
|
1404
|
+
], 10, oo))
|
|
1364
1405
|
]));
|
|
1365
1406
|
}
|
|
1366
|
-
},
|
|
1367
|
-
class: "w-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1407
|
+
}, uo = {}, fo = { class: "btn btn-xs btn-ghost btn-circle" }, mo = /* @__PURE__ */ y("svg", {
|
|
1408
|
+
class: "w-4 h-4 text-primary",
|
|
1409
|
+
viewBox: "0 0 24 24",
|
|
1410
|
+
fill: "none",
|
|
1411
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1412
|
+
}, [
|
|
1413
|
+
/* @__PURE__ */ y("path", {
|
|
1414
|
+
d: "M9.12596 1.63869C9.46935 1.54364 9.83221 1.70329 9.99413 2.02068C10.3672 2.75191 11.1261 3.25 12 3.25C12.8739 3.25 13.6328 2.75191 14.0059 2.02068C14.1678 1.70329 14.5307 1.54364 14.874 1.63869C16.5585 2.10497 18.0759 2.9704 19.3184 4.12574C19.5611 4.35137 19.6269 4.70948 19.4804 5.00666C19.3331 5.30535 19.25 5.6419 19.25 6C19.25 7.24263 20.2574 8.25 21.5 8.25L21.5314 8.24977C21.8629 8.24504 22.1583 8.45859 22.2576 8.77495C22.5777 9.79397 22.75 10.8776 22.75 12C22.75 12.7408 22.6749 13.4649 22.5318 14.1648C22.4548 14.5411 22.1059 14.7985 21.7237 14.7609C21.6504 14.7537 21.5758 14.75 21.5 14.75C20.2574 14.75 19.25 15.7574 19.25 17C19.25 17.5531 19.4486 18.0579 19.7793 18.4498C20.027 18.7434 20.0128 19.1767 19.7465 19.4535C18.4777 20.7719 16.8745 21.7678 15.0721 22.3044C14.6807 22.4209 14.2681 22.2029 14.1437 21.814C13.8535 20.906 13.0024 20.25 12 20.25C10.9976 20.25 10.1465 20.906 9.85629 21.814C9.73195 22.2029 9.31927 22.4209 8.92789 22.3044C7.12545 21.7678 5.52229 20.7719 4.25353 19.4535C3.98716 19.1767 3.97299 18.7434 4.22072 18.4498C4.55139 18.0579 4.75 17.5531 4.75 17C4.75 15.7574 3.74264 14.75 2.5 14.75C2.42423 14.75 2.34963 14.7537 2.27634 14.7609C1.89406 14.7985 1.54519 14.5411 1.46821 14.1648C1.32505 13.4649 1.25 12.7408 1.25 12C1.25 10.8776 1.42227 9.79398 1.74236 8.77494C1.84173 8.45859 2.13705 8.24504 2.4686 8.24977L2.5 8.25C3.74264 8.25 4.75 7.24263 4.75 6C4.75 5.6419 4.66689 5.30535 4.51962 5.00666C4.3731 4.70948 4.43894 4.35137 4.68159 4.12574C5.92411 2.9704 7.44153 2.10497 9.12596 1.63869ZM6.08277 4.88991C6.19152 5.24123 6.25 5.61424 6.25 6C6.25 7.88945 4.85261 9.45253 3.03493 9.71213C2.84898 10.4432 2.75 11.2096 2.75 12C2.75 12.4294 2.77921 12.8516 2.83567 13.2648C4.74948 13.4346 6.25 15.0421 6.25 17C6.25 17.6669 6.0754 18.2941 5.76971 18.8372C6.62645 19.6184 7.63002 20.2404 8.73362 20.657C9.37706 19.5189 10.598 18.75 12 18.75C13.402 18.75 14.6229 19.5189 15.2664 20.657C16.37 20.2404 17.3735 19.6184 18.2303 18.8372C17.9246 18.2941 17.75 17.6669 17.75 17C17.75 15.0421 19.2505 13.4346 21.1643 13.2648C21.2208 12.8516 21.25 12.4294 21.25 12C21.25 11.2096 21.151 10.4432 20.9651 9.71213C19.1474 9.45252 17.75 7.88945 17.75 6C17.75 5.61424 17.8085 5.24123 17.9172 4.88991C17.0618 4.1771 16.0762 3.61614 15.0018 3.24775C14.3184 4.15897 13.2287 4.75 12 4.75C10.7713 4.75 9.68158 4.15897 8.99819 3.24775C7.92382 3.61614 6.93823 4.1771 6.08277 4.88991Z",
|
|
1415
|
+
fill: "currentColor"
|
|
1416
|
+
}),
|
|
1417
|
+
/* @__PURE__ */ y("path", {
|
|
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
|
+
fill: "currentColor"
|
|
1420
|
+
})
|
|
1421
|
+
], -1), ho = [
|
|
1422
|
+
mo
|
|
1372
1423
|
];
|
|
1373
|
-
function
|
|
1374
|
-
return
|
|
1375
|
-
}
|
|
1376
|
-
const
|
|
1377
|
-
class: "w-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1424
|
+
function go(e, t) {
|
|
1425
|
+
return g(), b("button", fo, ho);
|
|
1426
|
+
}
|
|
1427
|
+
const Co = /* @__PURE__ */ te(uo, [["render", go]]), po = {}, vo = { class: "btn btn-xs btn-circle btn-ghost" }, bo = /* @__PURE__ */ y("svg", {
|
|
1428
|
+
class: "w-4 h-4 text-primary",
|
|
1429
|
+
viewBox: "0 0 16 16",
|
|
1430
|
+
fill: "none",
|
|
1431
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1432
|
+
}, [
|
|
1433
|
+
/* @__PURE__ */ y("path", {
|
|
1434
|
+
"fill-rule": "evenodd",
|
|
1435
|
+
"clip-rule": "evenodd",
|
|
1436
|
+
d: "M3.19102 3.19102C3.44571 2.93633 3.85864 2.93633 4.11333 3.19102L12.809 11.8867C13.0637 12.1414 13.0637 12.5543 12.809 12.809C12.5543 13.0637 12.1414 13.0637 11.8867 12.809L3.19102 4.11333C2.93633 3.85864 2.93633 3.44571 3.19102 3.19102Z",
|
|
1437
|
+
fill: "currentColor"
|
|
1438
|
+
}),
|
|
1439
|
+
/* @__PURE__ */ y("path", {
|
|
1440
|
+
"fill-rule": "evenodd",
|
|
1441
|
+
"clip-rule": "evenodd",
|
|
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
|
+
fill: "currentColor"
|
|
1444
|
+
})
|
|
1445
|
+
], -1), wo = [
|
|
1446
|
+
bo
|
|
1382
1447
|
];
|
|
1383
|
-
function
|
|
1384
|
-
return
|
|
1448
|
+
function xo(e, t) {
|
|
1449
|
+
return g(), b("button", vo, wo);
|
|
1385
1450
|
}
|
|
1386
|
-
const
|
|
1451
|
+
const yo = /* @__PURE__ */ te(po, [["render", xo]]), Lo = {
|
|
1452
|
+
name: "ThemeSelector",
|
|
1453
|
+
props: {
|
|
1454
|
+
currentTheme: {
|
|
1455
|
+
type: String,
|
|
1456
|
+
default: "lofi"
|
|
1457
|
+
}
|
|
1458
|
+
},
|
|
1459
|
+
data() {
|
|
1460
|
+
return {
|
|
1461
|
+
availableThemes: [
|
|
1462
|
+
{ value: "lofi", name: "Lo-Fi", color: "#0f0f23" },
|
|
1463
|
+
{ value: "pastel", name: "Pastel", color: "#d1c1d7" },
|
|
1464
|
+
{ value: "fantasy", name: "Fantasy", color: "#6e0b75" },
|
|
1465
|
+
{ value: "autumn", name: "Autumn", color: "#8c0327" },
|
|
1466
|
+
{ value: "retro", name: "Retro", color: "#ef9995" },
|
|
1467
|
+
{ value: "synthwave", name: "Synthwave", color: "#e779c1" },
|
|
1468
|
+
{ value: "halloween", name: "Halloween", color: "#f28c18" },
|
|
1469
|
+
{ value: "dracula", name: "Dracula", color: "#ff79c6" },
|
|
1470
|
+
{ value: "coffee", name: "Coffee", color: "#db924b" },
|
|
1471
|
+
{ value: "dim", name: "Dim", color: "#9fe88d" },
|
|
1472
|
+
{ value: "sunset", name: "Sunset", color: "#ff865b" },
|
|
1473
|
+
{ value: "cyberpunk", name: "Cyberpunk", color: "#ff7598" }
|
|
1474
|
+
]
|
|
1475
|
+
};
|
|
1476
|
+
},
|
|
1477
|
+
methods: {
|
|
1478
|
+
handleThemeChange(e) {
|
|
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
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
}, To = { class: "dropdown dropdown-end z-50" }, So = /* @__PURE__ */ y("div", {
|
|
1489
|
+
tabindex: "0",
|
|
1490
|
+
role: "button",
|
|
1491
|
+
class: "btn btn-ghost btn-circle btn-xs"
|
|
1492
|
+
}, [
|
|
1493
|
+
/* @__PURE__ */ y("svg", {
|
|
1494
|
+
class: "w-4 h-4 text-primary",
|
|
1495
|
+
fill: "currentColor",
|
|
1496
|
+
viewBox: "0 0 20 20"
|
|
1497
|
+
}, [
|
|
1498
|
+
/* @__PURE__ */ y("path", { d: "M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z" })
|
|
1499
|
+
])
|
|
1500
|
+
], -1), Eo = {
|
|
1501
|
+
tabindex: "0",
|
|
1502
|
+
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", {
|
|
1509
|
+
key: l.value
|
|
1510
|
+
}, [
|
|
1511
|
+
y("input", {
|
|
1512
|
+
type: "radio",
|
|
1513
|
+
id: `theme-${l.value}`,
|
|
1514
|
+
value: l.value,
|
|
1515
|
+
checked: n.currentTheme === l.value,
|
|
1516
|
+
onChange: (r) => s.handleThemeChange(l.value),
|
|
1517
|
+
class: "theme-controller sr-only"
|
|
1518
|
+
}, null, 40, Ao),
|
|
1519
|
+
y("label", {
|
|
1520
|
+
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))
|
|
1523
|
+
}, [
|
|
1524
|
+
y("span", ko, [
|
|
1525
|
+
y("span", {
|
|
1526
|
+
class: "w-3 h-3 rounded-full",
|
|
1527
|
+
style: Ye({ backgroundColor: l.color })
|
|
1528
|
+
}, null, 4),
|
|
1529
|
+
ft(" " + de(l.name), 1)
|
|
1530
|
+
])
|
|
1531
|
+
], 10, $o)
|
|
1532
|
+
]))), 128))
|
|
1533
|
+
])
|
|
1534
|
+
]);
|
|
1535
|
+
}
|
|
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 = {
|
|
1387
1537
|
__name: "Header",
|
|
1388
1538
|
props: {
|
|
1389
1539
|
tts: String,
|
|
@@ -1395,68 +1545,89 @@ const ft = /* @__PURE__ */ h2(at, [["render", ut]]), At = { class: "flex flex-co
|
|
|
1395
1545
|
isAITranslationLoading: Boolean,
|
|
1396
1546
|
isAIExplainLoading: Boolean,
|
|
1397
1547
|
isAIExplainVisible: Boolean,
|
|
1398
|
-
isAITranslateVisible: Boolean
|
|
1548
|
+
isAITranslateVisible: Boolean,
|
|
1549
|
+
theme: {
|
|
1550
|
+
type: String,
|
|
1551
|
+
default: "lofi"
|
|
1552
|
+
},
|
|
1553
|
+
showThemeSelector: {
|
|
1554
|
+
type: Boolean,
|
|
1555
|
+
default: !0
|
|
1556
|
+
}
|
|
1399
1557
|
},
|
|
1400
|
-
emits: [
|
|
1558
|
+
emits: [
|
|
1559
|
+
"favorite",
|
|
1560
|
+
"setting",
|
|
1561
|
+
"close",
|
|
1562
|
+
"loadTTS",
|
|
1563
|
+
"aiTranslate",
|
|
1564
|
+
"aiExplain",
|
|
1565
|
+
"themeChange"
|
|
1566
|
+
],
|
|
1401
1567
|
setup(e, { emit: t }) {
|
|
1402
|
-
const n = e,
|
|
1403
|
-
return (
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
e.isServiceUnavailable ?
|
|
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, {
|
|
1407
1573
|
key: 0,
|
|
1408
1574
|
disabled: e.isAITranslationLoading || e.isAIExplainLoading,
|
|
1409
1575
|
tts: n.tts,
|
|
1410
|
-
onLoadTTS: s[0] || (s[0] = (l) =>
|
|
1576
|
+
onLoadTTS: s[0] || (s[0] = (l) => i.$emit("loadTTS"))
|
|
1411
1577
|
}, null, 8, ["disabled", "tts"]))
|
|
1412
1578
|
]),
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
!e.isServiceUnavailable && e.isAITranslateVisible ? (
|
|
1579
|
+
y("div", Oo, [
|
|
1580
|
+
Do,
|
|
1581
|
+
!e.isServiceUnavailable && e.isAITranslateVisible ? (g(), V(to, {
|
|
1416
1582
|
key: 0,
|
|
1417
1583
|
isLoading: e.isAITranslationLoading,
|
|
1418
1584
|
isFilled: e.isAITranslate,
|
|
1419
|
-
onClick: s[1] || (s[1] = (l) =>
|
|
1420
|
-
}, null, 8, ["isLoading", "isFilled"])) :
|
|
1421
|
-
!e.isServiceUnavailable && e.isAIExplainVisible ? (
|
|
1585
|
+
onClick: s[1] || (s[1] = (l) => o("aiTranslate"))
|
|
1586
|
+
}, null, 8, ["isLoading", "isFilled"])) : N("", !0),
|
|
1587
|
+
!e.isServiceUnavailable && e.isAIExplainVisible ? (g(), V(co, {
|
|
1422
1588
|
key: 1,
|
|
1423
1589
|
isLoading: e.isAIExplainLoading,
|
|
1424
1590
|
isFilled: e.isAIExplain,
|
|
1425
|
-
onClick: s[2] || (s[2] = (l) =>
|
|
1426
|
-
}, null, 8, ["isLoading", "isFilled"])) :
|
|
1427
|
-
!e.isServiceUnavailable && n.isFavoriteFeatureEnabled ? (
|
|
1591
|
+
onClick: s[2] || (s[2] = (l) => o("aiExplain"))
|
|
1592
|
+
}, null, 8, ["isLoading", "isFilled"])) : N("", !0),
|
|
1593
|
+
!e.isServiceUnavailable && n.isFavoriteFeatureEnabled ? (g(), V(Hn, {
|
|
1428
1594
|
key: 2,
|
|
1429
1595
|
isFilled: n.isFavorite,
|
|
1430
|
-
onClick: s[3] || (s[3] = (l) =>
|
|
1596
|
+
onClick: s[3] || (s[3] = (l) => o("favorite")),
|
|
1431
1597
|
disabled: e.isAITranslationLoading || e.isAIExplainLoading
|
|
1432
|
-
}, null, 8, ["isFilled", "disabled"])) :
|
|
1598
|
+
}, null, 8, ["isFilled", "disabled"])) : N("", !0)
|
|
1433
1599
|
]),
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1600
|
+
y("div", _o, [
|
|
1601
|
+
e.showThemeSelector ? (g(), V(Mo, {
|
|
1602
|
+
key: 0,
|
|
1603
|
+
"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"))
|
|
1437
1608
|
}),
|
|
1438
|
-
|
|
1439
|
-
onClick: s[
|
|
1609
|
+
K(yo, {
|
|
1610
|
+
onClick: s[6] || (s[6] = (l) => o("close"))
|
|
1440
1611
|
})
|
|
1441
1612
|
])
|
|
1442
1613
|
])
|
|
1443
1614
|
]));
|
|
1444
1615
|
}
|
|
1445
|
-
},
|
|
1616
|
+
}, ue = {
|
|
1446
1617
|
LOGO: "LOGO",
|
|
1447
1618
|
LOADING: "LOADING",
|
|
1448
1619
|
DATA: "DATA",
|
|
1449
1620
|
ERROR: "ERROR",
|
|
1450
1621
|
HIDDEN: "HIDDEN"
|
|
1451
|
-
},
|
|
1622
|
+
}, Ue = 500, Vo = ["ar", "fa", "iw", "yi", "ur", "pa"], No = {
|
|
1452
1623
|
key: 0,
|
|
1453
1624
|
class: "flex justify-center"
|
|
1454
|
-
},
|
|
1625
|
+
}, Po = {
|
|
1455
1626
|
key: 1,
|
|
1456
1627
|
class: "flex justify-center"
|
|
1457
|
-
},
|
|
1458
|
-
class: /* @__PURE__ */ k(["bg-
|
|
1459
|
-
},
|
|
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 = {
|
|
1460
1631
|
name: "Bubble",
|
|
1461
1632
|
props: [
|
|
1462
1633
|
"translation",
|
|
@@ -1467,9 +1638,20 @@ const ft = /* @__PURE__ */ h2(at, [["render", ut]]), At = { class: "flex flex-co
|
|
|
1467
1638
|
"isFavoriteFeatureEnabled",
|
|
1468
1639
|
"isAITranslate",
|
|
1469
1640
|
"isAIExplain",
|
|
1470
|
-
"aiExplainMinLength"
|
|
1641
|
+
"aiExplainMinLength",
|
|
1642
|
+
"theme",
|
|
1643
|
+
"showThemeSelector"
|
|
1644
|
+
],
|
|
1645
|
+
emits: [
|
|
1646
|
+
"logo",
|
|
1647
|
+
"favorite",
|
|
1648
|
+
"settings",
|
|
1649
|
+
"close",
|
|
1650
|
+
"loadTTS",
|
|
1651
|
+
"aiTranslate",
|
|
1652
|
+
"aiExplain",
|
|
1653
|
+
"themeChange"
|
|
1471
1654
|
],
|
|
1472
|
-
emits: ["logo", "favorite", "settings", "close", "loadTTS", "aiTranslate", "aiExplain"],
|
|
1473
1655
|
data() {
|
|
1474
1656
|
return {
|
|
1475
1657
|
data: null,
|
|
@@ -1490,9 +1672,9 @@ const ft = /* @__PURE__ */ h2(at, [["render", ut]]), At = { class: "flex flex-co
|
|
|
1490
1672
|
watch: {
|
|
1491
1673
|
translation: {
|
|
1492
1674
|
handler() {
|
|
1493
|
-
var e, t, n,
|
|
1675
|
+
var e, t, n, o;
|
|
1494
1676
|
try {
|
|
1495
|
-
this.data = this.translation, this.isLongSentence = !((t = (e = this.data) == null ? void 0 : e.phonetic) != null && t.src || ((
|
|
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;
|
|
1496
1678
|
} catch {
|
|
1497
1679
|
this.isServiceUnavailable = !0;
|
|
1498
1680
|
} finally {
|
|
@@ -1508,164 +1690,172 @@ const ft = /* @__PURE__ */ h2(at, [["render", ut]]), At = { class: "flex flex-co
|
|
|
1508
1690
|
immediate: !0
|
|
1509
1691
|
},
|
|
1510
1692
|
status() {
|
|
1511
|
-
this.status ===
|
|
1693
|
+
this.status === ue.ERROR && (this.isServiceUnavailable = !0);
|
|
1512
1694
|
}
|
|
1513
1695
|
}
|
|
1514
|
-
},
|
|
1696
|
+
}, Zo = /* @__PURE__ */ Object.assign(zo, {
|
|
1515
1697
|
setup(e) {
|
|
1516
1698
|
return (t, n) => {
|
|
1517
|
-
var
|
|
1518
|
-
return e.status ===
|
|
1519
|
-
|
|
1520
|
-
onClick: n[0] || (n[0] = (
|
|
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"))
|
|
1521
1703
|
})
|
|
1522
|
-
])) : e.status ===
|
|
1523
|
-
|
|
1524
|
-
])) : e.status !==
|
|
1704
|
+
])) : e.status === ve(ue).LOADING ? (g(), b("div", Po, [
|
|
1705
|
+
K(fn)
|
|
1706
|
+
])) : e.status !== ve(ue).HIDDEN ? (g(), b("div", {
|
|
1525
1707
|
key: 2,
|
|
1526
1708
|
class: k([
|
|
1527
|
-
"wrapper rounded-lg text-
|
|
1709
|
+
"wrapper rounded-lg text-base-content text-sm shadow-lg relative bg-[length:300%_300%] bg-[position:0%_50%]",
|
|
1528
1710
|
{
|
|
1529
|
-
"p-0.5 bg-gradient-to-br from-
|
|
1530
|
-
"p-0.5 bg-
|
|
1711
|
+
"p-0.5 bg-gradient-to-br from-primary via-secondary via-accent to-info animate-moveGradient": e.isAITranslate || e.isAIExplain,
|
|
1712
|
+
"p-0.5 bg-base-300": !e.isAITranslate && !e.isAIExplain
|
|
1531
1713
|
}
|
|
1532
1714
|
])
|
|
1533
1715
|
}, [
|
|
1534
|
-
|
|
1535
|
-
t.isServiceUnavailable ? (
|
|
1716
|
+
y("div", Ho, [
|
|
1717
|
+
t.isServiceUnavailable ? (g(), V(Ze, {
|
|
1536
1718
|
key: 0,
|
|
1537
1719
|
isServiceUnavailable: t.isServiceUnavailable,
|
|
1538
1720
|
isLongSentence: !1,
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1721
|
+
theme: e.theme,
|
|
1722
|
+
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, {
|
|
1544
1729
|
key: 1,
|
|
1545
1730
|
tts: e.tts,
|
|
1546
1731
|
isFavorite: e.isFavorite,
|
|
1547
1732
|
isAITranslate: e.isAITranslate,
|
|
1548
|
-
isAITranslateVisible: ((
|
|
1733
|
+
isAITranslateVisible: ((i = (o = t.data) == null ? void 0 : o.dictionary) == null ? void 0 : i.length) === 0,
|
|
1549
1734
|
isAIExplain: e.isAIExplain,
|
|
1550
1735
|
isAIExplainVisible: ((l = (s = t.data) == null ? void 0 : s.text) == null ? void 0 : l.length) >= e.aiExplainMinLength,
|
|
1551
1736
|
isAITranslationLoading: t.isAITranslationLoading,
|
|
1552
1737
|
isAIExplainLoading: t.isAIExplainLoading,
|
|
1553
1738
|
isFavoriteFeatureEnabled: e.isFavoriteFeatureEnabled,
|
|
1554
1739
|
isLongSentence: t.isLongSentence,
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1740
|
+
theme: e.theme,
|
|
1741
|
+
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")),
|
|
1559
1746
|
onAiTranslate: t.handleAITranslate,
|
|
1560
|
-
onAiExplain: t.handleAIExplain
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1747
|
+
onAiExplain: t.handleAIExplain,
|
|
1748
|
+
onThemeChange: n[10] || (n[10] = (m) => t.$emit("themeChange", m))
|
|
1749
|
+
}, 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, {
|
|
1564
1752
|
key: 0,
|
|
1565
|
-
phonetic: (
|
|
1566
|
-
}, null, 8, ["phonetic"])) :
|
|
1567
|
-
|
|
1568
|
-
sentences: t.isServiceUnavailable ? "Service Unavailable" : (
|
|
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
|
|
1569
1757
|
}, null, 8, ["sentences"])
|
|
1570
1758
|
]),
|
|
1571
|
-
!t.isServiceUnavailable && ((
|
|
1759
|
+
!t.isServiceUnavailable && ((f = (h = t.data) == null ? void 0 : h.dictionary) == null ? void 0 : f.length) > 0 ? (g(), V(yn, {
|
|
1572
1760
|
key: 2,
|
|
1573
|
-
class: "p-3 pt-0 border-t border-
|
|
1761
|
+
class: "p-3 pt-0 border-t border-base-300",
|
|
1574
1762
|
dictionary: t.data.dictionary
|
|
1575
|
-
}, null, 8, ["dictionary"])) :
|
|
1576
|
-
!t.isServiceUnavailable && e.isAIExplain && e.explanation ? (
|
|
1763
|
+
}, null, 8, ["dictionary"])) : N("", !0),
|
|
1764
|
+
!t.isServiceUnavailable && e.isAIExplain && e.explanation ? (g(), V(An, {
|
|
1577
1765
|
key: 3,
|
|
1578
|
-
class: "p-3 pt-0 border-t border-
|
|
1766
|
+
class: "p-3 pt-0 border-t border-base-300",
|
|
1579
1767
|
explanation: e.explanation
|
|
1580
|
-
}, null, 8, ["explanation"])) :
|
|
1768
|
+
}, null, 8, ["explanation"])) : N("", !0)
|
|
1581
1769
|
])
|
|
1582
|
-
], 2)) :
|
|
1770
|
+
], 2)) : N("", !0);
|
|
1583
1771
|
};
|
|
1584
1772
|
}
|
|
1585
1773
|
});
|
|
1586
|
-
function
|
|
1774
|
+
function Uo(e) {
|
|
1587
1775
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1588
1776
|
}
|
|
1589
|
-
var
|
|
1590
|
-
|
|
1591
|
-
(function() {
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1777
|
+
var Ae = { exports: {} }, je;
|
|
1778
|
+
function jo() {
|
|
1779
|
+
return je || (je = 1, function(e) {
|
|
1780
|
+
(function() {
|
|
1781
|
+
var t = [
|
|
1782
|
+
"direction",
|
|
1783
|
+
// RTL support
|
|
1784
|
+
"boxSizing",
|
|
1785
|
+
"width",
|
|
1786
|
+
// on Chrome and IE, exclude the scrollbar, so the mirror div wraps exactly as the textarea does
|
|
1787
|
+
"height",
|
|
1788
|
+
"overflowX",
|
|
1789
|
+
"overflowY",
|
|
1790
|
+
// copy the scrollbar for IE
|
|
1791
|
+
"borderTopWidth",
|
|
1792
|
+
"borderRightWidth",
|
|
1793
|
+
"borderBottomWidth",
|
|
1794
|
+
"borderLeftWidth",
|
|
1795
|
+
"borderStyle",
|
|
1796
|
+
"paddingTop",
|
|
1797
|
+
"paddingRight",
|
|
1798
|
+
"paddingBottom",
|
|
1799
|
+
"paddingLeft",
|
|
1800
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/font
|
|
1801
|
+
"fontStyle",
|
|
1802
|
+
"fontVariant",
|
|
1803
|
+
"fontWeight",
|
|
1804
|
+
"fontStretch",
|
|
1805
|
+
"fontSize",
|
|
1806
|
+
"fontSizeAdjust",
|
|
1807
|
+
"lineHeight",
|
|
1808
|
+
"fontFamily",
|
|
1809
|
+
"textAlign",
|
|
1810
|
+
"textTransform",
|
|
1811
|
+
"textIndent",
|
|
1812
|
+
"textDecoration",
|
|
1813
|
+
// might not make a difference, but better be safe
|
|
1814
|
+
"letterSpacing",
|
|
1815
|
+
"wordSpacing",
|
|
1816
|
+
"tabSize",
|
|
1817
|
+
"MozTabSize"
|
|
1818
|
+
], n = typeof window < "u", o = n && window.mozInnerScreenX != null;
|
|
1819
|
+
function i(s, l, r) {
|
|
1820
|
+
if (!n)
|
|
1821
|
+
throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");
|
|
1822
|
+
var a = r && r.debug || !1;
|
|
1823
|
+
if (a) {
|
|
1824
|
+
var c = document.querySelector("#input-textarea-caret-position-mirror-div");
|
|
1825
|
+
c && c.parentNode.removeChild(c);
|
|
1826
|
+
}
|
|
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)
|
|
1839
|
+
};
|
|
1840
|
+
return a ? m.style.backgroundColor = "#aaa" : document.body.removeChild(u), p;
|
|
1637
1841
|
}
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
A.textContent = s.value.substring(l) || ".", d.appendChild(A);
|
|
1646
|
-
var m = {
|
|
1647
|
-
top: A.offsetTop + parseInt(C.borderTopWidth),
|
|
1648
|
-
left: A.offsetLeft + parseInt(C.borderLeftWidth),
|
|
1649
|
-
height: parseInt(C.lineHeight)
|
|
1650
|
-
};
|
|
1651
|
-
return a ? A.style.backgroundColor = "#aaa" : document.body.removeChild(d), m;
|
|
1652
|
-
}
|
|
1653
|
-
e.exports = o;
|
|
1654
|
-
})();
|
|
1655
|
-
})(s0);
|
|
1656
|
-
var Lt = s0.exports;
|
|
1657
|
-
const Z2 = /* @__PURE__ */ Et(Lt);
|
|
1658
|
-
function f2(e) {
|
|
1842
|
+
e.exports = i;
|
|
1843
|
+
})();
|
|
1844
|
+
}(Ae)), Ae.exports;
|
|
1845
|
+
}
|
|
1846
|
+
var Ko = jo();
|
|
1847
|
+
const Ke = /* @__PURE__ */ Uo(Ko);
|
|
1848
|
+
function ie(e) {
|
|
1659
1849
|
const t = window.getSelection();
|
|
1660
1850
|
let n = t + "";
|
|
1661
1851
|
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)))
|
|
1662
1852
|
return !1;
|
|
1663
|
-
let
|
|
1853
|
+
let i = t.getRangeAt(0).getBoundingClientRect(), { top: s, bottom: l, left: r, width: a, height: c } = i;
|
|
1664
1854
|
if (!l && !r) {
|
|
1665
1855
|
if (!e.selectionEnd)
|
|
1666
1856
|
return !1;
|
|
1667
|
-
let
|
|
1668
|
-
|
|
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;
|
|
1669
1859
|
}
|
|
1670
1860
|
return c === 0 && (c = l - s), {
|
|
1671
1861
|
text: n,
|
|
@@ -1680,7 +1870,7 @@ function f2(e) {
|
|
|
1680
1870
|
height: c
|
|
1681
1871
|
};
|
|
1682
1872
|
}
|
|
1683
|
-
function
|
|
1873
|
+
function Xo() {
|
|
1684
1874
|
const e = document.getElementsByTagName("ddict-div");
|
|
1685
1875
|
for (let t of e)
|
|
1686
1876
|
if (!t.parentNode.matches('wrapper[dir="rtl"]')) {
|
|
@@ -1688,24 +1878,24 @@ function Qt() {
|
|
|
1688
1878
|
n.setAttribute("dir", "rtl"), t.parentNode.insertBefore(n, t), n.appendChild(t);
|
|
1689
1879
|
}
|
|
1690
1880
|
}
|
|
1691
|
-
function
|
|
1881
|
+
function Yo() {
|
|
1692
1882
|
const e = document.querySelectorAll('wrapper[dir="rtl"]');
|
|
1693
1883
|
for (let t of e) {
|
|
1694
1884
|
const n = t.querySelector("ddict-div");
|
|
1695
1885
|
n && (t.parentNode.insertBefore(n, t), t.remove());
|
|
1696
1886
|
}
|
|
1697
1887
|
}
|
|
1698
|
-
const
|
|
1699
|
-
supportRTL:
|
|
1700
|
-
removeRTL:
|
|
1701
|
-
},
|
|
1888
|
+
const Xe = {
|
|
1889
|
+
supportRTL: Xo,
|
|
1890
|
+
removeRTL: Yo
|
|
1891
|
+
}, Go = {
|
|
1702
1892
|
__name: "HotKeysListener",
|
|
1703
1893
|
props: {
|
|
1704
1894
|
textSelected: String
|
|
1705
1895
|
},
|
|
1706
1896
|
emits: ["toggleKey", "close"],
|
|
1707
1897
|
setup(e, { emit: t }) {
|
|
1708
|
-
const n = e,
|
|
1898
|
+
const n = e, o = t, i = () => {
|
|
1709
1899
|
setTimeout(() => {
|
|
1710
1900
|
n.textSelected && r("DoubleClick");
|
|
1711
1901
|
}, 50);
|
|
@@ -1716,26 +1906,26 @@ const q2 = {
|
|
|
1716
1906
|
}, r = (a) => {
|
|
1717
1907
|
switch (a) {
|
|
1718
1908
|
case "DoubleClick":
|
|
1719
|
-
|
|
1909
|
+
o("toggleKey", "DoubleClick");
|
|
1720
1910
|
break;
|
|
1721
1911
|
case "Shift":
|
|
1722
|
-
|
|
1912
|
+
o("toggleKey", "Shift");
|
|
1723
1913
|
break;
|
|
1724
1914
|
case "Alt+W":
|
|
1725
|
-
|
|
1915
|
+
o("toggleKey", "Alt+W");
|
|
1726
1916
|
break;
|
|
1727
1917
|
case "Escape":
|
|
1728
|
-
|
|
1918
|
+
o("close");
|
|
1729
1919
|
break;
|
|
1730
1920
|
}
|
|
1731
1921
|
};
|
|
1732
|
-
return
|
|
1733
|
-
window.addEventListener("dblclick",
|
|
1734
|
-
}),
|
|
1735
|
-
window.removeEventListener("dblclick",
|
|
1736
|
-
}), (a, c) => (
|
|
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"));
|
|
1737
1927
|
}
|
|
1738
|
-
},
|
|
1928
|
+
}, qo = ["data-theme"], Qo = {
|
|
1739
1929
|
__name: "BubbleWrapper",
|
|
1740
1930
|
props: {
|
|
1741
1931
|
translation: Object,
|
|
@@ -1753,6 +1943,14 @@ const q2 = {
|
|
|
1753
1943
|
aiExplainMinLength: {
|
|
1754
1944
|
type: Number,
|
|
1755
1945
|
default: 0
|
|
1946
|
+
},
|
|
1947
|
+
theme: {
|
|
1948
|
+
type: String,
|
|
1949
|
+
default: "lofi"
|
|
1950
|
+
},
|
|
1951
|
+
showThemeSelector: {
|
|
1952
|
+
type: Boolean,
|
|
1953
|
+
default: !0
|
|
1756
1954
|
}
|
|
1757
1955
|
},
|
|
1758
1956
|
emits: [
|
|
@@ -1763,132 +1961,153 @@ const q2 = {
|
|
|
1763
1961
|
"close",
|
|
1764
1962
|
"loadTTS",
|
|
1765
1963
|
"aiTranslate",
|
|
1766
|
-
"aiExplain"
|
|
1964
|
+
"aiExplain",
|
|
1965
|
+
"themeChange"
|
|
1767
1966
|
],
|
|
1768
1967
|
setup(e, { emit: t }) {
|
|
1769
|
-
const n = e,
|
|
1770
|
-
getBoundingClientRect: () =>
|
|
1771
|
-
getClientRects: () =>
|
|
1772
|
-
}),
|
|
1773
|
-
if (!u.value.arrow || n.status === a2.LOGO)
|
|
1774
|
-
return {
|
|
1775
|
-
display: "none"
|
|
1776
|
-
};
|
|
1777
|
-
const { x: h, y: g } = u.value.arrow, y = {
|
|
1778
|
-
top: "bottom",
|
|
1779
|
-
right: "left",
|
|
1780
|
-
bottom: "top",
|
|
1781
|
-
left: "right"
|
|
1782
|
-
}[u.value.offset.placement];
|
|
1783
|
-
return {
|
|
1784
|
-
left: h != null ? `${h}px` : "",
|
|
1785
|
-
top: g != null ? `${g}px` : "",
|
|
1786
|
-
[y]: "-8px",
|
|
1787
|
-
position: "absolute"
|
|
1788
|
-
};
|
|
1789
|
-
}), f = Q(() => {
|
|
1790
|
-
var g;
|
|
1791
|
-
switch ((g = u.value.offset) == null ? void 0 : g.placement) {
|
|
1792
|
-
case "top":
|
|
1793
|
-
return { transform: "rotate(180deg)" };
|
|
1794
|
-
case "left":
|
|
1795
|
-
return { transform: "rotate(90deg)" };
|
|
1796
|
-
case "right":
|
|
1797
|
-
return { transform: "rotate(-90deg)" };
|
|
1798
|
-
default:
|
|
1799
|
-
return {};
|
|
1800
|
-
}
|
|
1801
|
-
}), { floatingStyles: C, middlewareData: u, update: A } = _0(c, o, {
|
|
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, {
|
|
1802
1972
|
placement: "bottom",
|
|
1803
1973
|
middleware: [
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
Object.assign(
|
|
1811
|
-
maxWidth:
|
|
1974
|
+
Ut(4),
|
|
1975
|
+
Kt(),
|
|
1976
|
+
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",
|
|
1812
1982
|
zIndex: 9999
|
|
1813
1983
|
});
|
|
1814
1984
|
}
|
|
1815
1985
|
})
|
|
1816
1986
|
],
|
|
1817
|
-
whileElementsMounted(
|
|
1818
|
-
return
|
|
1987
|
+
whileElementsMounted(C, v, E) {
|
|
1988
|
+
return Zt(C, v, E, {
|
|
1819
1989
|
ancestorScroll: !0
|
|
1820
1990
|
});
|
|
1821
1991
|
}
|
|
1822
|
-
}),
|
|
1823
|
-
|
|
1824
|
-
|
|
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 || "";
|
|
1825
2014
|
return {
|
|
1826
|
-
...C
|
|
1827
|
-
transform: `${
|
|
2015
|
+
...C,
|
|
2016
|
+
transform: `${v} scale(${n.scale})`
|
|
1828
2017
|
};
|
|
1829
2018
|
});
|
|
1830
|
-
|
|
1831
|
-
document.addEventListener("keyup", (
|
|
1832
|
-
if (!
|
|
1833
|
-
|
|
2019
|
+
Ge(() => {
|
|
2020
|
+
document.addEventListener("keyup", (C) => {
|
|
2021
|
+
if (!ie(C.target)) {
|
|
2022
|
+
r.value = "", T();
|
|
1834
2023
|
return;
|
|
1835
2024
|
}
|
|
1836
|
-
}), document.documentElement.onclick = (
|
|
1837
|
-
const
|
|
1838
|
-
if (!
|
|
1839
|
-
|
|
2025
|
+
}), document.documentElement.onclick = (C) => {
|
|
2026
|
+
const v = ie(C.target);
|
|
2027
|
+
if (!v) {
|
|
2028
|
+
r.value = "", T();
|
|
1840
2029
|
return;
|
|
1841
2030
|
}
|
|
1842
|
-
w(
|
|
1843
|
-
}, document.documentElement.ontouchend = (
|
|
1844
|
-
const
|
|
1845
|
-
if (!
|
|
1846
|
-
|
|
2031
|
+
w(v, C);
|
|
2032
|
+
}, document.documentElement.ontouchend = (C) => {
|
|
2033
|
+
const v = ie(C.target);
|
|
2034
|
+
if (!v) {
|
|
2035
|
+
r.value = "", T();
|
|
1847
2036
|
return;
|
|
1848
2037
|
}
|
|
1849
|
-
w(
|
|
2038
|
+
w(v, C);
|
|
1850
2039
|
};
|
|
1851
|
-
}),
|
|
1852
|
-
document.documentElement.onclick = null, document.documentElement.ontouchend = null;
|
|
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);
|
|
1853
2042
|
});
|
|
1854
|
-
const w = (
|
|
1855
|
-
n.status !==
|
|
1856
|
-
},
|
|
1857
|
-
|
|
1858
|
-
},
|
|
1859
|
-
|
|
1860
|
-
},
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
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();
|
|
1864
2087
|
};
|
|
1865
|
-
return
|
|
2088
|
+
return se(
|
|
1866
2089
|
() => n.status,
|
|
1867
2090
|
() => {
|
|
1868
|
-
|
|
2091
|
+
l.value && De(p), q();
|
|
2092
|
+
}
|
|
2093
|
+
), se(
|
|
2094
|
+
() => n.theme,
|
|
2095
|
+
(C) => {
|
|
2096
|
+
a.value = C;
|
|
1869
2097
|
}
|
|
1870
|
-
), (
|
|
1871
|
-
|
|
2098
|
+
), (C, v) => (g(), b(me, null, [
|
|
2099
|
+
l.value ? (g(), b("div", {
|
|
1872
2100
|
key: 0,
|
|
1873
2101
|
ref_key: "floatingEl",
|
|
1874
|
-
ref:
|
|
1875
|
-
|
|
1876
|
-
|
|
2102
|
+
ref: i,
|
|
2103
|
+
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
|
|
1877
2109
|
}, [
|
|
1878
|
-
|
|
1879
|
-
ref_key: "arrowEl",
|
|
1880
|
-
ref: s,
|
|
1881
|
-
style: y2(d.value),
|
|
1882
|
-
class: "absolute transform"
|
|
1883
|
-
}, [
|
|
1884
|
-
E("img", {
|
|
1885
|
-
style: y2(f.value),
|
|
1886
|
-
class: "w-5",
|
|
1887
|
-
src: f0,
|
|
1888
|
-
alt: "arrow"
|
|
1889
|
-
}, null, 4)
|
|
1890
|
-
], 4),
|
|
1891
|
-
_(yt, {
|
|
2110
|
+
K(Zo, {
|
|
1892
2111
|
translation: n.translation,
|
|
1893
2112
|
explanation: n.explanation,
|
|
1894
2113
|
tts: n.tts,
|
|
@@ -1898,23 +2117,26 @@ const q2 = {
|
|
|
1898
2117
|
isAITranslate: n.isAITranslate,
|
|
1899
2118
|
isAIExplain: n.isAIExplain,
|
|
1900
2119
|
aiExplainMinLength: n.aiExplainMinLength,
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
2120
|
+
theme: a.value,
|
|
2121
|
+
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: $
|
|
2130
|
+
}, 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
|
|
1914
2136
|
}, null, 8, ["textSelected"])
|
|
1915
2137
|
], 64));
|
|
1916
2138
|
}
|
|
1917
2139
|
};
|
|
1918
2140
|
export {
|
|
1919
|
-
|
|
2141
|
+
Qo as default
|
|
1920
2142
|
};
|